Last active
July 23, 2023 07:19
-
-
Save mdalaminbey/9a06ffdc154db7ef310d8ed3aeae403e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { v4 as uuidv4 } from 'uuid'; | |
| const question = { | |
| id: uuidv4(), | |
| title: 'Address', | |
| screen_type: 'address', | |
| icon: 'marker', | |
| isPro: false, | |
| isComing: false, | |
| position: { x: -150, y: 0 }, | |
| fields: [ | |
| { | |
| id: 'address', | |
| label: 'Address', | |
| text: '', | |
| isRequired: true, | |
| isVisible: true, | |
| }, | |
| { | |
| id: 'address_two', | |
| label: 'Address line 2', | |
| text: '', | |
| isRequired: true, | |
| isVisible: true, | |
| }, | |
| { | |
| id: 'city', | |
| label: 'City', | |
| text: '', | |
| isRequired: true, | |
| isVisible: true, | |
| }, | |
| { | |
| id: 'state', | |
| label: 'State/Region', | |
| text: '', | |
| isRequired: true, | |
| isVisible: true, | |
| }, | |
| { | |
| id: 'zipcode', | |
| label: 'Zip/Post code', | |
| text: '', | |
| isRequired: true, | |
| isVisible: true, | |
| }, | |
| { | |
| id: 'country', | |
| label: 'Country', | |
| text: '', | |
| isRequired: true, | |
| isVisible: true, | |
| }, | |
| ], | |
| controls: { | |
| general: [ | |
| { | |
| key: 'label', | |
| text: '', | |
| }, | |
| { | |
| key: 'description', | |
| text: '', | |
| }, | |
| { | |
| key: 'placeholder', | |
| text: '', | |
| }, | |
| { | |
| key: 'required', | |
| isActive: '0', | |
| }, | |
| { | |
| key: 'action-btn', | |
| isActive: '0', | |
| }, | |
| { | |
| key: 'btn-text', | |
| button_text: 'Submit', | |
| }, | |
| ], | |
| fieldDesign: [ | |
| { | |
| labelStyle: [ | |
| { | |
| key: 'font-size', | |
| font_size: '20', | |
| }, | |
| { | |
| key: 'font-weight', | |
| font_weight: '600', | |
| }, | |
| { | |
| key: 'text-color', | |
| text_color: '#000000', | |
| }, | |
| ], | |
| }, | |
| { | |
| buttonStyle: [ | |
| { | |
| key: 'btn-color', | |
| button_color: '#6551F2', | |
| }, | |
| { | |
| key: 'btn-radius', | |
| button_radius: '10', | |
| }, | |
| { | |
| key: 'btn-text-color', | |
| text_color: '#ffffff', | |
| }, | |
| { | |
| key: 'btn-font-size', | |
| font_size: '15', | |
| }, | |
| ], | |
| }, | |
| { | |
| mediaStyle: [ | |
| { | |
| key: 'video-overlay', | |
| is_video_overlay_active: '1', | |
| }, | |
| { | |
| key: 'overlay-color', | |
| overlay_color: '#000000', | |
| }, | |
| { | |
| key: 'overlay-opacity', | |
| overlay_opacity: '30', | |
| }, | |
| ], | |
| }, | |
| ], | |
| fieldLogic: [], | |
| }, | |
| groupName: 'contact', | |
| medias: [], | |
| layout: 'content-right', | |
| }; | |
| export default question; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment