PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 0.0.3
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v0.0.3
2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 0.0.2 0.0.3 All 96 releases
sureforms / src / blocks-attributes / getBlocksDefaultAttributes.js
getBlocksDefaultAttributes.js
64 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import inputAttributes from '@Blocks/input/block.json';
2 import emailAttributes from '@Blocks/email/block.json';
3 import phoneAttributes from '@Blocks/phone/block.json';
4 import textareaAttributes from '@Blocks/textarea/block.json';
5 import urlAttributes from '@Blocks/url/block.json';
6 import numberAttributes from '@Blocks/number/block.json';
7 import checkboxAttributes from '@Blocks/checkbox/block.json';
8 import addressAttributes from '@Blocks/address/block.json';
9 import multiChoiceAttributes from '@Blocks/multi-choice/block.json';
10 import dropdownAttributes from '@Blocks/dropdown/block.json';
11
12 const default_keys = {
13 // General Tab
14 // Submit button
15 _srfm_submit_button_text: { default: 'SUBMIT' },
16 // Page Break
17 _srfm_first_page_label: { default: 'Page break' },
18 _srfm_previous_button_text: { default: 'Previous' },
19 _srfm_next_button_text: { default: 'Next' },
20 // Style Tab
21 // Form Container
22 _srfm_form_container_width: { default: 650 },
23 _srfm_color1: { default: '#0e4372' },
24 _srfm_bg_color: { default: '#ffffff' },
25 _srfm_fontsize: { default: 20 },
26 _srfm_label_color: { default: '#1f2937' },
27 _srfm_help_color: { default: '#6b7280' },
28 // Input
29 _srfm_input_text_color: { default: '#4B5563' },
30 _srfm_input_placeholder_color: { default: '#9CA3AF' },
31 _srfm_input_bg_color: { default: '#ffffff' },
32 _srfm_input_border_color: { default: '#D0D5DD' },
33 _srfm_input_border_width: { default: 1 },
34 _srfm_input_border_radius: { default: 4 },
35 // Error
36 _srfm_field_error_color: { default: '#DC2626' },
37 _srfm_field_error_surface_color: { default: '#EF4444' },
38 _srfm_field_error_bg_color: { default: '#FEF2F2' },
39 // Submit
40 _srfm_button_text_color: { default: '#ffffff' },
41 _srfm_button_bg_color: { default: '#0e4372' },
42 _srfm_button_border_color: { default: '#ffffff' },
43 _srfm_button_border_width: { default: 0 },
44 _srfm_button_border_radius: { default: 6 },
45 // Advanced Tab
46 _srfm_thankyou_message_title: { default: 'Thank you' },
47 _srfm_thankyou_message: { default: 'Form submitted successfully!' },
48 _srfm_submit_url: { default: '' },
49 };
50
51 export const blocksAttributes = {
52 input: inputAttributes.attributes,
53 email: emailAttributes.attributes,
54 checkbox: checkboxAttributes.attributes,
55 address: addressAttributes.attributes,
56 'multi-choice': multiChoiceAttributes.attributes,
57 dropdown: dropdownAttributes.attributes,
58 phone: phoneAttributes.attributes,
59 textarea: textareaAttributes.attributes,
60 url: urlAttributes.attributes,
61 number: numberAttributes.attributes,
62 form_specific: default_keys,
63 };
64