@gem-sdk/components 2.0.0-dev.391 → 2.0.0-dev.392
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/form/components/form-email/FormEmail.js +29 -20
- package/dist/cjs/form/components/form-email/FormEmail.liquid.js +7 -5
- package/dist/cjs/form/components/form-email/common/composeClasses.js +11 -2
- package/dist/cjs/form/components/form-email/common/composeStyles.js +62 -2
- package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +1 -0
- package/dist/cjs/form/components/newsletter/common/composeAttrs.js +1 -2
- package/dist/cjs/form/setting/contact/ContactInitConfig.js +3 -1
- package/dist/cjs/form/setting/form-email/configs/settings.js +190 -28
- package/dist/cjs/form/setting/form-email/configs/uiV2.js +262 -18
- package/dist/cjs/form/setting/text-input/configs/settings.js +6 -3
- package/dist/cjs/form/setting/text-input/configs/uiV2.js +2 -2
- package/dist/esm/form/components/form-email/FormEmail.js +32 -23
- package/dist/esm/form/components/form-email/FormEmail.liquid.js +8 -6
- package/dist/esm/form/components/form-email/common/composeClasses.js +11 -3
- package/dist/esm/form/components/form-email/common/composeStyles.js +63 -4
- package/dist/esm/form/components/newsletter/Newsletter.liquid.js +1 -0
- package/dist/esm/form/components/newsletter/common/composeAttrs.js +1 -2
- package/dist/esm/form/setting/contact/ContactInitConfig.js +3 -1
- package/dist/esm/form/setting/form-email/configs/settings.js +190 -28
- package/dist/esm/form/setting/form-email/configs/uiV2.js +262 -18
- package/dist/esm/form/setting/text-input/configs/settings.js +6 -3
- package/dist/esm/form/setting/text-input/configs/uiV2.js +2 -2
- package/dist/types/index.d.ts +25 -4
- package/package.json +2 -2
|
@@ -8,6 +8,12 @@ const FormEmailSettings = [
|
|
|
8
8
|
label: 'Placeholder',
|
|
9
9
|
default: 'Enter your email address'
|
|
10
10
|
},
|
|
11
|
+
{
|
|
12
|
+
id: 'placeholderColor',
|
|
13
|
+
type: 'color-picker-v2',
|
|
14
|
+
label: 'Color',
|
|
15
|
+
default: '#A3A3A3'
|
|
16
|
+
},
|
|
11
17
|
{
|
|
12
18
|
id: 'translate',
|
|
13
19
|
type: 'input',
|
|
@@ -39,10 +45,12 @@ const FormEmailSettings = [
|
|
|
39
45
|
type: 'paragraph-1'
|
|
40
46
|
},
|
|
41
47
|
hiddenSetting: {
|
|
42
|
-
color: true,
|
|
43
48
|
textAlign: true,
|
|
44
|
-
textShadow: true
|
|
49
|
+
textShadow: true,
|
|
50
|
+
fontWeight: true,
|
|
51
|
+
transform: true
|
|
45
52
|
},
|
|
53
|
+
disableCollapse: true,
|
|
46
54
|
ignoreReRender: true
|
|
47
55
|
},
|
|
48
56
|
{
|
|
@@ -88,36 +96,190 @@ const FormEmailSettings = [
|
|
|
88
96
|
}
|
|
89
97
|
},
|
|
90
98
|
{
|
|
91
|
-
id: '
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
label: 'Center',
|
|
104
|
-
value: 'center',
|
|
105
|
-
type: 'align',
|
|
106
|
-
tooltip: 'Align center',
|
|
107
|
-
iconName: 'gp-align-center'
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
label: 'Right',
|
|
111
|
-
value: 'right',
|
|
112
|
-
type: 'align',
|
|
113
|
-
tooltip: 'Align right',
|
|
114
|
-
iconName: 'gp-align-right'
|
|
99
|
+
id: 'background',
|
|
100
|
+
type: 'background-media',
|
|
101
|
+
ignoreReRender: true,
|
|
102
|
+
hideImage: true,
|
|
103
|
+
devices: {
|
|
104
|
+
desktop: {
|
|
105
|
+
default: {
|
|
106
|
+
type: 'color',
|
|
107
|
+
color: 'transparent'
|
|
108
|
+
}
|
|
115
109
|
}
|
|
116
|
-
|
|
110
|
+
},
|
|
111
|
+
compoDefaultValue: {
|
|
112
|
+
desktop: {
|
|
113
|
+
default: {
|
|
114
|
+
type: 'color',
|
|
115
|
+
color: '#FFFFFF'
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: 'style',
|
|
124
|
+
controls: [
|
|
125
|
+
{
|
|
126
|
+
id: 'globalSize',
|
|
127
|
+
type: 'size-setting',
|
|
117
128
|
devices: {
|
|
118
129
|
desktop: {
|
|
119
|
-
default:
|
|
130
|
+
default: {
|
|
131
|
+
width: '100%',
|
|
132
|
+
height: 'Auto',
|
|
133
|
+
padding: {
|
|
134
|
+
type: 'medium',
|
|
135
|
+
top: '4px',
|
|
136
|
+
bottom: '4px',
|
|
137
|
+
left: '16px',
|
|
138
|
+
right: '16px'
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
settingConfig: {
|
|
144
|
+
width: {},
|
|
145
|
+
height: {
|
|
146
|
+
displayOptions: [
|
|
147
|
+
'auto',
|
|
148
|
+
'small',
|
|
149
|
+
'large',
|
|
150
|
+
'medium'
|
|
151
|
+
],
|
|
152
|
+
sizeConfig: {
|
|
153
|
+
small: '28px',
|
|
154
|
+
medium: '36px',
|
|
155
|
+
large: '44px'
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
hiddenSettings: [
|
|
160
|
+
'shape',
|
|
161
|
+
'gap'
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
id: 'wrapperBorder',
|
|
166
|
+
type: 'border-v2',
|
|
167
|
+
label: 'Border',
|
|
168
|
+
default: {
|
|
169
|
+
border: 'solid',
|
|
170
|
+
width: '1px 1px 1px 1px',
|
|
171
|
+
position: 'all',
|
|
172
|
+
borderWidth: '1px',
|
|
173
|
+
color: '#7D7D7D',
|
|
174
|
+
isCustom: true
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
id: 'backgroundColorV2Hover',
|
|
179
|
+
type: 'color-picker-v2',
|
|
180
|
+
enableGradient: true
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: 'textColorHover',
|
|
184
|
+
type: 'color-picker-v2',
|
|
185
|
+
label: 'Text Color',
|
|
186
|
+
state: {
|
|
187
|
+
hover: true
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
id: 'borderEmailHover',
|
|
192
|
+
type: 'border',
|
|
193
|
+
emptyOnClear: true,
|
|
194
|
+
state: {
|
|
195
|
+
hover: true
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
id: 'roundedEmailHover',
|
|
200
|
+
type: 'radius-preset',
|
|
201
|
+
default: {
|
|
202
|
+
hover: {
|
|
203
|
+
radiusType: 'small'
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
state: {
|
|
207
|
+
hover: true
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
id: 'boxShadowEmailHover',
|
|
212
|
+
type: 'shadow-v2',
|
|
213
|
+
label: 'Button Shadow',
|
|
214
|
+
hideOnState: {
|
|
215
|
+
hover: true
|
|
216
|
+
},
|
|
217
|
+
default: {
|
|
218
|
+
hover: {
|
|
219
|
+
type: 'shadow-1',
|
|
220
|
+
distance: '4px',
|
|
221
|
+
blur: '12px',
|
|
222
|
+
spread: '0px',
|
|
223
|
+
color: 'rgba(0, 0, 0, 0.20)',
|
|
224
|
+
angle: 90
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
state: {
|
|
228
|
+
hover: true
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
id: 'backgroundColorV2Active',
|
|
233
|
+
type: 'color-picker-v2',
|
|
234
|
+
enableGradient: true
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
id: 'textColorActive',
|
|
238
|
+
type: 'color-picker-v2',
|
|
239
|
+
label: 'Text Color',
|
|
240
|
+
state: {
|
|
241
|
+
active: true
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
id: 'borderEmailActive',
|
|
246
|
+
type: 'border',
|
|
247
|
+
emptyOnClear: true,
|
|
248
|
+
state: {
|
|
249
|
+
active: true
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
id: 'roundedEmailActive',
|
|
254
|
+
type: 'radius-preset',
|
|
255
|
+
default: {
|
|
256
|
+
active: {
|
|
257
|
+
radiusType: 'small'
|
|
120
258
|
}
|
|
259
|
+
},
|
|
260
|
+
state: {
|
|
261
|
+
active: true
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
id: 'boxShadowEmailActive',
|
|
266
|
+
type: 'shadow-v2',
|
|
267
|
+
label: 'Button Shadow',
|
|
268
|
+
hideOnState: {
|
|
269
|
+
active: true
|
|
270
|
+
},
|
|
271
|
+
default: {
|
|
272
|
+
active: {
|
|
273
|
+
type: 'shadow-1',
|
|
274
|
+
distance: '4px',
|
|
275
|
+
blur: '12px',
|
|
276
|
+
spread: '0px',
|
|
277
|
+
color: 'rgba(0, 0, 0, 0.20)',
|
|
278
|
+
angle: 90
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
state: {
|
|
282
|
+
active: true
|
|
121
283
|
}
|
|
122
284
|
}
|
|
123
285
|
]
|
|
@@ -14,10 +14,20 @@ const SettingUIV2 = [
|
|
|
14
14
|
isHideClear: true,
|
|
15
15
|
controls: [
|
|
16
16
|
{
|
|
17
|
-
|
|
17
|
+
label: {
|
|
18
|
+
en: 'Content'
|
|
19
|
+
},
|
|
18
20
|
setting: {
|
|
19
21
|
id: 'placeholder'
|
|
20
22
|
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
setting: {
|
|
26
|
+
id: 'placeholderColor'
|
|
27
|
+
},
|
|
28
|
+
label: {
|
|
29
|
+
en: 'Color'
|
|
30
|
+
}
|
|
21
31
|
}
|
|
22
32
|
]
|
|
23
33
|
},
|
|
@@ -38,65 +48,299 @@ const SettingUIV2 = [
|
|
|
38
48
|
label: {
|
|
39
49
|
en: 'Width'
|
|
40
50
|
},
|
|
51
|
+
controlConfig: {
|
|
52
|
+
id: 'width',
|
|
53
|
+
type: 'dropdown:input',
|
|
54
|
+
label: 'Width',
|
|
55
|
+
inputType: 'number',
|
|
56
|
+
units: [
|
|
57
|
+
'px',
|
|
58
|
+
'%'
|
|
59
|
+
],
|
|
60
|
+
hideUnit: false,
|
|
61
|
+
linkWithSetting: {
|
|
62
|
+
name: 'globalSize',
|
|
63
|
+
field: 'width'
|
|
64
|
+
},
|
|
65
|
+
displayOptions: [
|
|
66
|
+
{
|
|
67
|
+
label: 'Default',
|
|
68
|
+
value: '1200px',
|
|
69
|
+
showValue: true
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: 'Full',
|
|
73
|
+
value: '100%',
|
|
74
|
+
showValue: true
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
layout: 'horizontal'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: {
|
|
82
|
+
en: 'Height'
|
|
83
|
+
},
|
|
84
|
+
controlConfig: {
|
|
85
|
+
id: 'height',
|
|
86
|
+
type: 'dropdown:input',
|
|
87
|
+
label: 'Height',
|
|
88
|
+
inputType: 'number',
|
|
89
|
+
units: [
|
|
90
|
+
'px',
|
|
91
|
+
'%'
|
|
92
|
+
],
|
|
93
|
+
hideUnit: false,
|
|
94
|
+
linkWithSetting: {
|
|
95
|
+
name: 'globalSize',
|
|
96
|
+
field: 'height'
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
layout: 'horizontal'
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: {
|
|
103
|
+
en: 'Padding'
|
|
104
|
+
},
|
|
105
|
+
controlConfig: {
|
|
106
|
+
id: 'padding',
|
|
107
|
+
type: 'padding-v2',
|
|
108
|
+
linkWithSetting: {
|
|
109
|
+
name: 'globalSize',
|
|
110
|
+
field: 'padding'
|
|
111
|
+
},
|
|
112
|
+
compoDefaultValue: {
|
|
113
|
+
desktop: {
|
|
114
|
+
default: {
|
|
115
|
+
type: 'medium',
|
|
116
|
+
top: '12px',
|
|
117
|
+
bottom: '12px',
|
|
118
|
+
left: '24px',
|
|
119
|
+
right: '24px'
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
label: {
|
|
129
|
+
en: 'Background'
|
|
130
|
+
},
|
|
131
|
+
controls: [
|
|
132
|
+
{
|
|
41
133
|
setting: {
|
|
42
|
-
id: '
|
|
134
|
+
id: 'background'
|
|
135
|
+
},
|
|
136
|
+
layout: 'vertical'
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
label: {
|
|
142
|
+
en: 'Shape'
|
|
143
|
+
},
|
|
144
|
+
controls: [
|
|
145
|
+
{
|
|
146
|
+
label: {
|
|
147
|
+
en: 'Border'
|
|
148
|
+
},
|
|
149
|
+
controlConfig: {
|
|
150
|
+
id: 'border',
|
|
151
|
+
type: 'border-v2',
|
|
152
|
+
linkWithSetting: {
|
|
153
|
+
name: 'wrapperBorder'
|
|
154
|
+
}
|
|
43
155
|
}
|
|
44
156
|
},
|
|
45
157
|
{
|
|
46
158
|
label: {
|
|
47
|
-
en: '
|
|
159
|
+
en: 'Corner'
|
|
48
160
|
},
|
|
49
161
|
setting: {
|
|
50
|
-
id: '
|
|
162
|
+
id: 'rounded',
|
|
163
|
+
state: 'normal'
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
label: {
|
|
168
|
+
en: 'Shadow'
|
|
169
|
+
},
|
|
170
|
+
setting: {
|
|
171
|
+
id: 'boxShadow',
|
|
172
|
+
state: 'normal'
|
|
173
|
+
},
|
|
174
|
+
options: {
|
|
175
|
+
updateFields: [
|
|
176
|
+
{
|
|
177
|
+
field: 'enable',
|
|
178
|
+
settingId: 'hasBoxShadow',
|
|
179
|
+
state: 'normal'
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
controlChangeTrigger: {
|
|
184
|
+
settings: [
|
|
185
|
+
{
|
|
186
|
+
condition: `boxShadow.normal.enable === true`,
|
|
187
|
+
source: [
|
|
188
|
+
'boxShadow',
|
|
189
|
+
'hasBoxShadow'
|
|
190
|
+
],
|
|
191
|
+
action: {
|
|
192
|
+
controlId: 'hasBoxShadow',
|
|
193
|
+
groupType: 'advanced',
|
|
194
|
+
controlType: 'advanced',
|
|
195
|
+
state: 'normal',
|
|
196
|
+
newValue: true
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
condition: `boxShadow.normal.enable === false`,
|
|
201
|
+
source: [
|
|
202
|
+
'boxShadow',
|
|
203
|
+
'hasBoxShadow'
|
|
204
|
+
],
|
|
205
|
+
action: {
|
|
206
|
+
controlId: 'hasBoxShadow',
|
|
207
|
+
groupType: 'advanced',
|
|
208
|
+
controlType: 'advanced',
|
|
209
|
+
state: 'normal',
|
|
210
|
+
newValue: false
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
options: {
|
|
215
|
+
noRecordHistory: true
|
|
216
|
+
}
|
|
51
217
|
}
|
|
52
218
|
}
|
|
53
219
|
]
|
|
54
220
|
},
|
|
55
221
|
{
|
|
56
222
|
label: {
|
|
57
|
-
en: '
|
|
223
|
+
en: 'Hover effect'
|
|
58
224
|
},
|
|
59
225
|
controls: [
|
|
60
226
|
{
|
|
61
227
|
label: {
|
|
62
|
-
en: '
|
|
228
|
+
en: 'Text color'
|
|
63
229
|
},
|
|
64
230
|
setting: {
|
|
65
|
-
id: '
|
|
231
|
+
id: 'textColorHover',
|
|
232
|
+
state: 'hover'
|
|
66
233
|
}
|
|
67
234
|
},
|
|
68
235
|
{
|
|
69
236
|
label: {
|
|
70
|
-
en: '
|
|
237
|
+
en: 'Background'
|
|
71
238
|
},
|
|
72
239
|
setting: {
|
|
73
|
-
id: '
|
|
240
|
+
id: 'backgroundColorV2Hover',
|
|
241
|
+
state: 'hover'
|
|
74
242
|
}
|
|
75
243
|
},
|
|
76
244
|
{
|
|
77
245
|
label: {
|
|
78
|
-
en: '
|
|
246
|
+
en: 'Border'
|
|
79
247
|
},
|
|
80
248
|
setting: {
|
|
81
|
-
id: '
|
|
249
|
+
id: 'borderEmailHover',
|
|
250
|
+
state: 'hover'
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
label: {
|
|
255
|
+
en: 'Corner'
|
|
256
|
+
},
|
|
257
|
+
setting: {
|
|
258
|
+
id: 'roundedEmailHover',
|
|
259
|
+
state: 'hover'
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
label: {
|
|
264
|
+
en: 'Shadow'
|
|
265
|
+
},
|
|
266
|
+
setting: {
|
|
267
|
+
id: 'boxShadowEmailHover',
|
|
268
|
+
state: 'hover'
|
|
82
269
|
}
|
|
83
270
|
}
|
|
84
271
|
]
|
|
85
272
|
},
|
|
86
273
|
{
|
|
274
|
+
label: {
|
|
275
|
+
en: 'Active state'
|
|
276
|
+
},
|
|
87
277
|
controls: [
|
|
88
278
|
{
|
|
89
279
|
label: {
|
|
90
|
-
en: '
|
|
280
|
+
en: 'Text color'
|
|
281
|
+
},
|
|
282
|
+
setting: {
|
|
283
|
+
id: 'textColorActive',
|
|
284
|
+
state: 'active'
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
label: {
|
|
289
|
+
en: 'Background'
|
|
91
290
|
},
|
|
92
|
-
conditionEnable: '!(parseInt(width) >= 100 && width?.includes("%"))',
|
|
93
291
|
setting: {
|
|
94
|
-
id: '
|
|
292
|
+
id: 'backgroundColorV2Active',
|
|
293
|
+
state: 'active'
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
label: {
|
|
298
|
+
en: 'Border'
|
|
95
299
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
300
|
+
setting: {
|
|
301
|
+
id: 'borderEmailActive',
|
|
302
|
+
state: 'active'
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
label: {
|
|
307
|
+
en: 'Corner'
|
|
308
|
+
},
|
|
309
|
+
setting: {
|
|
310
|
+
id: 'roundedEmailActive',
|
|
311
|
+
state: 'active'
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
label: {
|
|
316
|
+
en: 'Shadow'
|
|
317
|
+
},
|
|
318
|
+
setting: {
|
|
319
|
+
id: 'boxShadowEmailActive',
|
|
320
|
+
state: 'active'
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
label: {
|
|
327
|
+
en: 'Configuration'
|
|
328
|
+
},
|
|
329
|
+
controls: [
|
|
330
|
+
{
|
|
331
|
+
label: {
|
|
332
|
+
en: 'Required'
|
|
333
|
+
},
|
|
334
|
+
setting: {
|
|
335
|
+
id: 'required'
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
label: {
|
|
340
|
+
en: 'Hide on client'
|
|
341
|
+
},
|
|
342
|
+
setting: {
|
|
343
|
+
id: 'hideOnClient'
|
|
100
344
|
}
|
|
101
345
|
}
|
|
102
346
|
]
|
|
@@ -82,7 +82,10 @@ const TextInputSettings = [
|
|
|
82
82
|
label: 'Text styles',
|
|
83
83
|
type: 'typography-v2',
|
|
84
84
|
default: {
|
|
85
|
-
type: 'paragraph-1'
|
|
85
|
+
type: 'paragraph-1',
|
|
86
|
+
attrs: {
|
|
87
|
+
color: 'text-2'
|
|
88
|
+
}
|
|
86
89
|
},
|
|
87
90
|
hiddenSetting: {
|
|
88
91
|
textAlign: true,
|
|
@@ -199,8 +202,8 @@ const TextInputSettings = [
|
|
|
199
202
|
type: 'medium',
|
|
200
203
|
top: '12px',
|
|
201
204
|
bottom: '12px',
|
|
202
|
-
left: '
|
|
203
|
-
right: '
|
|
205
|
+
left: '12px',
|
|
206
|
+
right: '12px'
|
|
204
207
|
}
|
|
205
208
|
}
|
|
206
209
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1545,8 +1545,29 @@ type FormEmailSetting = {
|
|
|
1545
1545
|
fullWidth?: ObjectDevices$1<boolean>;
|
|
1546
1546
|
width?: ObjectDevices$1<string | number | undefined>;
|
|
1547
1547
|
align?: ObjectDevices$1<AlignProp>;
|
|
1548
|
+
wrapperBorder?: Border;
|
|
1549
|
+
background?: ObjectDevices$1<BackgroundMedia>;
|
|
1550
|
+
placeholderColor?: ColorValueType$1;
|
|
1551
|
+
title?: string;
|
|
1552
|
+
showTitle?: boolean;
|
|
1548
1553
|
};
|
|
1549
|
-
type
|
|
1554
|
+
type FormEmailStyle = {
|
|
1555
|
+
globalSize?: ObjectDevices$1<SizeSettingGlobal>;
|
|
1556
|
+
horizontalSpacing?: ObjectDevices$1<Property.Padding>;
|
|
1557
|
+
borderRadius?: CornerRadius;
|
|
1558
|
+
wrapperBorder?: Border;
|
|
1559
|
+
borderEmailHover?: StateProp<Border>;
|
|
1560
|
+
textColorHover?: StateProp<ColorValueType$1>;
|
|
1561
|
+
backgroundColorV2Hover?: StateProp<ColorValueType$1>;
|
|
1562
|
+
roundedEmailHover?: StateProp<CornerRadius>;
|
|
1563
|
+
boxShadowEmailHover?: StateProp<ShadowProps$1>;
|
|
1564
|
+
borderEmailActive?: StateProp<Border>;
|
|
1565
|
+
textColorActive?: StateProp<ColorValueType$1>;
|
|
1566
|
+
backgroundColorV2Active?: StateProp<ColorValueType$1>;
|
|
1567
|
+
roundedEmailActive?: StateProp<CornerRadius>;
|
|
1568
|
+
boxShadowEmailActive?: StateProp<ShadowProps$1>;
|
|
1569
|
+
};
|
|
1570
|
+
type FormEmailProps = BasePropsWrap<FormEmailSetting, FormEmailStyle, Advanced> & {
|
|
1550
1571
|
children: React.ReactNode;
|
|
1551
1572
|
};
|
|
1552
1573
|
type NewsLetterSetting = {
|
|
@@ -1653,7 +1674,7 @@ declare const Newsletter$1: ({ children, setting, styles }: NewsletterProps) =>
|
|
|
1653
1674
|
|
|
1654
1675
|
declare const ContactForm$1: ({ children, styles, setting }: NewsletterProps) => React.JSX.Element;
|
|
1655
1676
|
|
|
1656
|
-
declare const FormEmail$1: ({ builderProps, builderAttrs, setting, advanced, children }: FormEmailProps) => React.JSX.Element;
|
|
1677
|
+
declare const FormEmail$1: ({ builderProps, builderAttrs, setting, advanced, children, styles, }: FormEmailProps) => React.JSX.Element;
|
|
1657
1678
|
|
|
1658
1679
|
declare const SubmitButton$1: ({ setting, builderProps, builderAttrs, style, styles, advanced, children, }: SubmitButtonProps) => React.JSX.Element;
|
|
1659
1680
|
|
|
@@ -6044,7 +6065,7 @@ declare const Newsletter: ({ builderProps, setting, children, style, formType, a
|
|
|
6044
6065
|
|
|
6045
6066
|
declare const ContactForm: ({ builderProps, setting, children, style, advanced, pageContext, styles, }: NewsletterProps) => string;
|
|
6046
6067
|
|
|
6047
|
-
declare const FormEmail: ({ builderProps, builderAttrs, setting, advanced, pageContext, }: _gem_sdk_core.BaseProps<FormEmailSetting,
|
|
6068
|
+
declare const FormEmail: ({ builderProps, builderAttrs, setting, advanced, pageContext, styles, }: _gem_sdk_core.BaseProps<FormEmailSetting, FormEmailStyle, any> & {
|
|
6048
6069
|
builderAttrs?: Record<string, any> | undefined;
|
|
6049
6070
|
style?: React.CSSProperties | undefined;
|
|
6050
6071
|
} & {
|
|
@@ -7220,7 +7241,7 @@ declare const _default$1: {
|
|
|
7220
7241
|
EstimateDate: React.FC<EstimateDateProps>;
|
|
7221
7242
|
Newsletter: ({ children, setting, styles }: NewsletterProps) => React.JSX.Element;
|
|
7222
7243
|
ContactForm: ({ children, styles, setting }: NewsletterProps) => React.JSX.Element;
|
|
7223
|
-
FormEmail: ({ builderProps, builderAttrs, setting, advanced, children }: FormEmailProps) => React.JSX.Element;
|
|
7244
|
+
FormEmail: ({ builderProps, builderAttrs, setting, advanced, children, styles, }: FormEmailProps) => React.JSX.Element;
|
|
7224
7245
|
SubmitButton: ({ setting, builderProps, builderAttrs, style, styles, advanced, children, }: SubmitButtonProps) => React.JSX.Element;
|
|
7225
7246
|
TextField: React.FC<TextFieldProps>;
|
|
7226
7247
|
TextInput: React.FC<TextInputProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.392",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/get-control-relationship.js && node ./scripts/get-element-relationship.js"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
25
|
+
"@gem-sdk/core": "2.0.0-dev.392",
|
|
26
26
|
"@gem-sdk/styles": "2.0.0-dev.381",
|
|
27
27
|
"@gem-sdk/system": "2.0.0-dev.371",
|
|
28
28
|
"@types/react-transition-group": "^4.4.5"
|