@gem-sdk/components 2.0.0-dev.411 → 2.0.0-dev.413

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.
Files changed (58) hide show
  1. package/dist/cjs/button/setting/configs/settings.js +1 -2
  2. package/dist/cjs/form/components/contact/common/composeStyles.js +3 -0
  3. package/dist/cjs/form/components/form-email/FormEmail.js +19 -18
  4. package/dist/cjs/form/components/form-email/FormEmail.liquid.js +6 -1
  5. package/dist/cjs/form/components/form-email/common/composeClasses.js +2 -2
  6. package/dist/cjs/form/components/textarea/TextArea.js +10 -18
  7. package/dist/cjs/form/components/textarea/TextArea.liquid.js +2 -2
  8. package/dist/cjs/form/components/textarea/common/composeStyles.js +8 -4
  9. package/dist/cjs/form/components/textfield/TextField.js +11 -19
  10. package/dist/cjs/form/components/textfield/TextField.liquid.js +2 -2
  11. package/dist/cjs/form/components/textfield/common/composeClasses.js +1 -1
  12. package/dist/cjs/form/components/textfield/common/composeStyles.js +11 -4
  13. package/dist/cjs/form/components/textinput/common/composeClasses.js +1 -1
  14. package/dist/cjs/form/setting/contact/ContactInitConfig.js +243 -12
  15. package/dist/cjs/form/setting/form-checkbox/configs/uiV2.js +56 -56
  16. package/dist/cjs/form/setting/form-dropdown/configs/uiV2.js +115 -121
  17. package/dist/cjs/form/setting/form-email/configs/settings.js +2 -1
  18. package/dist/cjs/form/setting/form-email/configs/uiV2.js +200 -205
  19. package/dist/cjs/form/setting/form-textarea/configs/settings.js +56 -0
  20. package/dist/cjs/form/setting/form-textarea/configs/uiV2.js +61 -5
  21. package/dist/cjs/form/setting/newsletter/NewsletterInitConfig.js +15 -0
  22. package/dist/cjs/form/setting/newsletter/configs/settings.js +77 -1
  23. package/dist/cjs/form/setting/newsletter/configs/uiV2.js +5 -8
  24. package/dist/cjs/form/setting/text-field/configs/settings.js +57 -0
  25. package/dist/cjs/form/setting/text-field/configs/uiV2.js +82 -5
  26. package/dist/cjs/grid/row/commons/getClass.js +1 -1
  27. package/dist/cjs/grid/row/hooks/useRowSetting.js +1 -1
  28. package/dist/cjs/grid/row/setting/configs/settings.js +1 -16
  29. package/dist/esm/button/setting/configs/settings.js +1 -2
  30. package/dist/esm/form/components/contact/common/composeStyles.js +4 -1
  31. package/dist/esm/form/components/form-email/FormEmail.js +19 -18
  32. package/dist/esm/form/components/form-email/FormEmail.liquid.js +6 -1
  33. package/dist/esm/form/components/form-email/common/composeClasses.js +2 -2
  34. package/dist/esm/form/components/textarea/TextArea.js +10 -18
  35. package/dist/esm/form/components/textarea/TextArea.liquid.js +2 -2
  36. package/dist/esm/form/components/textarea/common/composeStyles.js +9 -5
  37. package/dist/esm/form/components/textfield/TextField.js +11 -19
  38. package/dist/esm/form/components/textfield/TextField.liquid.js +2 -2
  39. package/dist/esm/form/components/textfield/common/composeClasses.js +1 -1
  40. package/dist/esm/form/components/textfield/common/composeStyles.js +12 -5
  41. package/dist/esm/form/components/textinput/common/composeClasses.js +1 -1
  42. package/dist/esm/form/setting/contact/ContactInitConfig.js +243 -12
  43. package/dist/esm/form/setting/form-checkbox/configs/uiV2.js +56 -56
  44. package/dist/esm/form/setting/form-dropdown/configs/uiV2.js +115 -121
  45. package/dist/esm/form/setting/form-email/configs/settings.js +2 -1
  46. package/dist/esm/form/setting/form-email/configs/uiV2.js +200 -205
  47. package/dist/esm/form/setting/form-textarea/configs/settings.js +56 -0
  48. package/dist/esm/form/setting/form-textarea/configs/uiV2.js +61 -5
  49. package/dist/esm/form/setting/newsletter/NewsletterInitConfig.js +15 -0
  50. package/dist/esm/form/setting/newsletter/configs/settings.js +77 -1
  51. package/dist/esm/form/setting/newsletter/configs/uiV2.js +5 -8
  52. package/dist/esm/form/setting/text-field/configs/settings.js +57 -0
  53. package/dist/esm/form/setting/text-field/configs/uiV2.js +82 -5
  54. package/dist/esm/grid/row/commons/getClass.js +1 -1
  55. package/dist/esm/grid/row/hooks/useRowSetting.js +2 -2
  56. package/dist/esm/grid/row/setting/configs/settings.js +1 -16
  57. package/dist/types/index.d.ts +17 -34
  58. package/package.json +2 -2
@@ -22,14 +22,6 @@ const SettingUIV2 = [
22
22
  setting: {
23
23
  id: 'placeholder'
24
24
  }
25
- },
26
- {
27
- setting: {
28
- id: 'placeholderColor'
29
- },
30
- label: {
31
- en: 'Color'
32
- }
33
25
  }
34
26
  ]
35
27
  },
@@ -126,224 +118,227 @@ const SettingUIV2 = [
126
118
  }
127
119
  ]
128
120
  },
121
+ // {
122
+ // label: {
123
+ // en: 'Background',
124
+ // },
125
+ // controls: [
126
+ // {
127
+ // setting: {
128
+ // id: 'background',
129
+ // },
130
+ // layout: 'vertical',
131
+ // },
132
+ // ],
133
+ // },
134
+ // {
135
+ // label: {
136
+ // en: 'Shape',
137
+ // },
138
+ // controls: [
139
+ // {
140
+ // label: {
141
+ // en: 'Border',
142
+ // },
143
+ // controlConfig: {
144
+ // id: 'border',
145
+ // type: 'border-v2',
146
+ // linkWithSetting: {
147
+ // name: 'wrapperBorder',
148
+ // },
149
+ // },
150
+ // },
151
+ // {
152
+ // label: {
153
+ // en: 'Corner',
154
+ // },
155
+ // setting: {
156
+ // id: 'rounded',
157
+ // state: 'normal',
158
+ // },
159
+ // },
160
+ // {
161
+ // label: {
162
+ // en: 'Shadow',
163
+ // },
164
+ // setting: {
165
+ // id: 'boxShadow',
166
+ // state: 'normal',
167
+ // },
168
+ // options: {
169
+ // updateFields: [
170
+ // {
171
+ // field: 'enable',
172
+ // settingId: 'hasBoxShadow',
173
+ // state: 'normal',
174
+ // },
175
+ // ],
176
+ // },
177
+ // controlChangeTrigger: {
178
+ // settings: [
179
+ // {
180
+ // condition: `boxShadow.normal.enable === true`,
181
+ // source: ['boxShadow', 'hasBoxShadow'],
182
+ // action: {
183
+ // controlId: 'hasBoxShadow',
184
+ // groupType: 'advanced',
185
+ // controlType: 'advanced',
186
+ // state: 'normal',
187
+ // newValue: true,
188
+ // },
189
+ // },
190
+ // {
191
+ // condition: `boxShadow.normal.enable === false`,
192
+ // source: ['boxShadow', 'hasBoxShadow'],
193
+ // action: {
194
+ // controlId: 'hasBoxShadow',
195
+ // groupType: 'advanced',
196
+ // controlType: 'advanced',
197
+ // state: 'normal',
198
+ // newValue: false,
199
+ // },
200
+ // },
201
+ // ],
202
+ // options: {
203
+ // noRecordHistory: true,
204
+ // },
205
+ // },
206
+ // },
207
+ // ],
208
+ // },
209
+ // {
210
+ // label: {
211
+ // en: 'Hover effect',
212
+ // },
213
+ // controls: [
214
+ // {
215
+ // label: {
216
+ // en: 'Text color',
217
+ // },
218
+ // setting: {
219
+ // id: 'textColorHover',
220
+ // state: 'hover',
221
+ // },
222
+ // },
223
+ // {
224
+ // label: {
225
+ // en: 'Background',
226
+ // },
227
+ // setting: {
228
+ // id: 'backgroundColorV2Hover',
229
+ // state: 'hover',
230
+ // },
231
+ // },
232
+ // {
233
+ // label: {
234
+ // en: 'Border',
235
+ // },
236
+ // setting: {
237
+ // id: 'borderEmailHover',
238
+ // state: 'hover',
239
+ // },
240
+ // },
241
+ // {
242
+ // label: {
243
+ // en: 'Corner',
244
+ // },
245
+ // setting: {
246
+ // id: 'roundedEmailHover',
247
+ // state: 'hover',
248
+ // },
249
+ // },
250
+ // {
251
+ // label: {
252
+ // en: 'Shadow',
253
+ // },
254
+ // setting: {
255
+ // id: 'boxShadowEmailHover',
256
+ // state: 'hover',
257
+ // },
258
+ // },
259
+ // ],
260
+ // },
261
+ // {
262
+ // label: {
263
+ // en: 'Active state',
264
+ // },
265
+ // controls: [
266
+ // {
267
+ // label: {
268
+ // en: 'Text color',
269
+ // },
270
+ // setting: {
271
+ // id: 'textColorActive',
272
+ // state: 'active',
273
+ // },
274
+ // },
275
+ // {
276
+ // label: {
277
+ // en: 'Background',
278
+ // },
279
+ // setting: {
280
+ // id: 'backgroundColorV2Active',
281
+ // state: 'active',
282
+ // },
283
+ // },
284
+ // {
285
+ // label: {
286
+ // en: 'Border',
287
+ // },
288
+ // setting: {
289
+ // id: 'borderEmailActive',
290
+ // state: 'active',
291
+ // },
292
+ // },
293
+ // {
294
+ // label: {
295
+ // en: 'Corner',
296
+ // },
297
+ // setting: {
298
+ // id: 'roundedEmailActive',
299
+ // state: 'active',
300
+ // },
301
+ // },
302
+ // {
303
+ // label: {
304
+ // en: 'Shadow',
305
+ // },
306
+ // setting: {
307
+ // id: 'boxShadowEmailActive',
308
+ // state: 'active',
309
+ // },
310
+ // },
311
+ // ],
312
+ // },
129
313
  {
130
314
  label: {
131
- en: 'Background'
132
- },
133
- controls: [
134
- {
135
- setting: {
136
- id: 'background'
137
- },
138
- layout: 'vertical'
139
- }
140
- ]
141
- },
142
- {
143
- label: {
144
- en: 'Shape'
145
- },
146
- controls: [
147
- {
148
- label: {
149
- en: 'Border'
150
- },
151
- controlConfig: {
152
- id: 'border',
153
- type: 'border-v2',
154
- linkWithSetting: {
155
- name: 'wrapperBorder'
156
- }
157
- }
158
- },
159
- {
160
- label: {
161
- en: 'Corner'
162
- },
163
- setting: {
164
- id: 'rounded',
165
- state: 'normal'
166
- }
167
- },
168
- {
169
- label: {
170
- en: 'Shadow'
171
- },
172
- setting: {
173
- id: 'boxShadow',
174
- state: 'normal'
175
- },
176
- options: {
177
- updateFields: [
178
- {
179
- field: 'enable',
180
- settingId: 'hasBoxShadow',
181
- state: 'normal'
182
- }
183
- ]
184
- },
185
- controlChangeTrigger: {
186
- settings: [
187
- {
188
- condition: `boxShadow.normal.enable === true`,
189
- source: [
190
- 'boxShadow',
191
- 'hasBoxShadow'
192
- ],
193
- action: {
194
- controlId: 'hasBoxShadow',
195
- groupType: 'advanced',
196
- controlType: 'advanced',
197
- state: 'normal',
198
- newValue: true
199
- }
200
- },
201
- {
202
- condition: `boxShadow.normal.enable === false`,
203
- source: [
204
- 'boxShadow',
205
- 'hasBoxShadow'
206
- ],
207
- action: {
208
- controlId: 'hasBoxShadow',
209
- groupType: 'advanced',
210
- controlType: 'advanced',
211
- state: 'normal',
212
- newValue: false
213
- }
214
- }
215
- ],
216
- options: {
217
- noRecordHistory: true
218
- }
219
- }
220
- }
221
- ]
222
- },
223
- {
224
- label: {
225
- en: 'Hover effect'
226
- },
227
- controls: [
228
- {
229
- label: {
230
- en: 'Text color'
231
- },
232
- setting: {
233
- id: 'textColorHover',
234
- state: 'hover'
235
- }
236
- },
237
- {
238
- label: {
239
- en: 'Background'
240
- },
241
- setting: {
242
- id: 'backgroundColorV2Hover',
243
- state: 'hover'
244
- }
245
- },
246
- {
247
- label: {
248
- en: 'Border'
249
- },
250
- setting: {
251
- id: 'borderEmailHover',
252
- state: 'hover'
253
- }
254
- },
255
- {
256
- label: {
257
- en: 'Corner'
258
- },
259
- setting: {
260
- id: 'roundedEmailHover',
261
- state: 'hover'
262
- }
263
- },
264
- {
265
- label: {
266
- en: 'Shadow'
267
- },
268
- setting: {
269
- id: 'boxShadowEmailHover',
270
- state: 'hover'
271
- }
272
- }
273
- ]
274
- },
275
- {
276
- label: {
277
- en: 'Active state'
315
+ en: 'Configuration'
278
316
  },
279
317
  controls: [
280
318
  {
281
319
  label: {
282
- en: 'Text color'
283
- },
284
- setting: {
285
- id: 'textColorActive',
286
- state: 'active'
287
- }
288
- },
289
- {
290
- label: {
291
- en: 'Background'
292
- },
293
- setting: {
294
- id: 'backgroundColorV2Active',
295
- state: 'active'
296
- }
297
- },
298
- {
299
- label: {
300
- en: 'Border'
320
+ en: 'Required'
301
321
  },
302
322
  setting: {
303
- id: 'borderEmailActive',
304
- state: 'active'
323
+ id: 'required'
305
324
  }
306
325
  },
307
326
  {
308
327
  label: {
309
- en: 'Corner'
328
+ en: 'Hide on client'
310
329
  },
311
330
  setting: {
312
- id: 'roundedEmailActive',
313
- state: 'active'
331
+ id: 'hideOnClient'
314
332
  }
315
333
  },
316
334
  {
317
335
  label: {
318
- en: 'Shadow'
319
- },
320
- setting: {
321
- id: 'boxShadowEmailActive',
322
- state: 'active'
323
- }
324
- }
325
- ]
326
- },
327
- {
328
- label: {
329
- en: 'Configuration'
330
- },
331
- controls: [
332
- {
333
- label: {
334
- en: 'Required'
336
+ en: 'Default value'
335
337
  },
336
338
  setting: {
337
- id: 'required'
338
- }
339
- },
340
- {
341
- label: {
342
- en: 'Hide on client'
339
+ id: 'defaultEmail'
343
340
  },
344
- setting: {
345
- id: 'hideOnClient'
346
- }
341
+ conditionDisplay: 'hideOnClient === true'
347
342
  }
348
343
  ]
349
344
  }
@@ -146,6 +146,62 @@ const TextareaSettings = [
146
146
  }
147
147
  }
148
148
  ]
149
+ },
150
+ {
151
+ id: 'style',
152
+ controls: [
153
+ {
154
+ id: 'globalSize',
155
+ type: 'size-setting',
156
+ devices: {
157
+ desktop: {
158
+ default: {
159
+ width: '100%',
160
+ padding: {
161
+ type: 'medium',
162
+ top: '12px',
163
+ bottom: '12px',
164
+ left: '12px',
165
+ right: '12px'
166
+ }
167
+ }
168
+ }
169
+ },
170
+ settingConfig: {
171
+ width: {
172
+ displayOptions: [
173
+ 'full',
174
+ 'auto',
175
+ 'small',
176
+ 'large',
177
+ 'medium'
178
+ ],
179
+ sizeConfig: {
180
+ small: '100px',
181
+ medium: '116px',
182
+ large: '132px'
183
+ }
184
+ },
185
+ height: {
186
+ displayOptions: [
187
+ 'auto',
188
+ 'small',
189
+ 'large',
190
+ 'medium'
191
+ ],
192
+ sizeConfig: {
193
+ small: '28px',
194
+ medium: '36px',
195
+ large: '44px'
196
+ }
197
+ }
198
+ },
199
+ hiddenSettings: [
200
+ 'shape',
201
+ 'gap'
202
+ ]
203
+ }
204
+ ]
149
205
  }
150
206
  ];
151
207
 
@@ -40,16 +40,72 @@ const SettingUIV2 = [
40
40
  label: {
41
41
  en: 'Width'
42
42
  },
43
- setting: {
44
- id: 'width'
45
- }
43
+ controlConfig: {
44
+ id: 'width',
45
+ type: 'dropdown:input',
46
+ label: 'Width',
47
+ inputType: 'number',
48
+ units: [
49
+ 'px',
50
+ '%'
51
+ ],
52
+ hideUnit: false,
53
+ linkWithSetting: {
54
+ name: 'globalSize',
55
+ field: 'width'
56
+ },
57
+ displayOptions: [
58
+ {
59
+ label: 'Fit content',
60
+ value: 'Auto',
61
+ showValue: true
62
+ },
63
+ {
64
+ label: 'Full',
65
+ value: '100%',
66
+ showValue: true
67
+ },
68
+ {
69
+ label: 'Small',
70
+ value: '100px',
71
+ showValue: true
72
+ },
73
+ {
74
+ label: 'Medium',
75
+ value: '116px',
76
+ showValue: true
77
+ },
78
+ {
79
+ label: 'Large',
80
+ value: '132px',
81
+ showValue: true
82
+ }
83
+ ]
84
+ },
85
+ layout: 'horizontal'
46
86
  },
47
87
  {
48
88
  label: {
49
89
  en: 'Padding'
50
90
  },
51
- setting: {
52
- id: 'size'
91
+ controlConfig: {
92
+ id: 'padding',
93
+ type: 'padding-v2',
94
+ linkWithSetting: {
95
+ name: 'globalSize',
96
+ field: 'padding'
97
+ },
98
+ compoDefaultValue: {
99
+ desktop: {
100
+ default: {
101
+ type: 'medium',
102
+ top: '12px',
103
+ bottom: '12px',
104
+ left: '12px',
105
+ right: '12px'
106
+ }
107
+ }
108
+ }
53
109
  }
54
110
  }
55
111
  ]
@@ -66,6 +66,21 @@ const newsletterInitConfig = [
66
66
  tablet: '313px'
67
67
  }
68
68
  },
69
+ styles: {
70
+ globalSize: {
71
+ desktop: {
72
+ width: '100%',
73
+ height: 'Auto',
74
+ padding: {
75
+ type: 'medium',
76
+ top: '12px',
77
+ bottom: '12px',
78
+ left: '12px',
79
+ right: '12px'
80
+ }
81
+ }
82
+ }
83
+ },
69
84
  advanced: {
70
85
  border: {
71
86
  desktop: {
@@ -158,7 +158,7 @@ const NewsletterSettings = [
158
158
  devices: {
159
159
  desktop: {
160
160
  default: {
161
- width: 'Auto',
161
+ width: '480px',
162
162
  height: 'Auto',
163
163
  padding: {
164
164
  type: 'medium',
@@ -203,6 +203,82 @@ const NewsletterSettings = [
203
203
  'shape',
204
204
  'gap'
205
205
  ]
206
+ },
207
+ {
208
+ id: 'shapeBorder',
209
+ type: 'border-v2',
210
+ devices: {
211
+ desktop: {
212
+ default: {
213
+ borderType: 'none',
214
+ border: 'none',
215
+ borderWidth: '1px',
216
+ width: '1px 1px 1px 1px',
217
+ color: '#121212',
218
+ isCustom: true
219
+ }
220
+ }
221
+ },
222
+ compoDefaultValue: {
223
+ desktop: {
224
+ default: {
225
+ border: 'solid',
226
+ color: '#121212',
227
+ width: '1px',
228
+ borderWidth: '1px'
229
+ }
230
+ }
231
+ }
232
+ },
233
+ {
234
+ id: 'shapeRounded',
235
+ type: 'corner-v2',
236
+ devices: {
237
+ desktop: {
238
+ default: {
239
+ btrr: '0px',
240
+ bblr: '0px',
241
+ bbrr: '0px',
242
+ btlr: '0px',
243
+ radiusType: 'none'
244
+ }
245
+ }
246
+ },
247
+ compoDefaultValue: {
248
+ desktop: {
249
+ default: {
250
+ btrr: '8px',
251
+ bblr: '8px',
252
+ bbrr: '8px',
253
+ btlr: '8px',
254
+ radiusType: 'rounded'
255
+ }
256
+ }
257
+ }
258
+ },
259
+ {
260
+ id: 'shapeBoxShadow',
261
+ type: 'shadow-v2',
262
+ devices: {
263
+ desktop: {
264
+ default: {
265
+ enable: false
266
+ }
267
+ }
268
+ },
269
+ compoDefaultValue: {
270
+ desktop: {
271
+ default: {
272
+ type: 'shadow-2',
273
+ distance: '12px',
274
+ blur: '12px',
275
+ spread: '0px',
276
+ color: 'rgba(18, 18, 18, 0.2)',
277
+ angle: 45,
278
+ enable: true
279
+ }
280
+ }
281
+ }
206
282
  }
207
283
  ]
208
284
  }