@gem-sdk/components 2.0.0-dev.252 → 2.0.0-dev.254

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 (29) hide show
  1. package/dist/cjs/post-purchase/button/setting/configs/settings.js +7 -20
  2. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-box/setting.js +12 -22
  3. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +16 -25
  4. package/dist/cjs/post-purchase/product/settings/accept-button/configs/settings.js +7 -20
  5. package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/settings.js +7 -20
  6. package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +9 -21
  7. package/dist/cjs/post-purchase/text/settings/text/uiV2.js +1 -1
  8. package/dist/cjs/product/components/FileUpload/components/common/style.js +2 -2
  9. package/dist/cjs/product/components/FileUpload/components/config/presets.js +27 -0
  10. package/dist/cjs/product/components/FileUpload/components/config/setting.js +522 -0
  11. package/dist/cjs/product/components/FileUpload/components/config/uiV1.js +402 -0
  12. package/dist/cjs/product/components/FileUpload/components/config/uiV2.js +643 -0
  13. package/dist/cjs/product/components/FileUpload/components/setting/index.js +9 -939
  14. package/dist/cjs/product/components/ProductImages.js +1 -1
  15. package/dist/esm/post-purchase/button/setting/configs/settings.js +7 -20
  16. package/dist/esm/post-purchase/callout-banner/setting/config/callout-box/setting.js +12 -22
  17. package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +16 -25
  18. package/dist/esm/post-purchase/product/settings/accept-button/configs/settings.js +7 -20
  19. package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/settings.js +7 -20
  20. package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +9 -21
  21. package/dist/esm/post-purchase/text/settings/text/uiV2.js +1 -1
  22. package/dist/esm/product/components/FileUpload/components/common/style.js +2 -2
  23. package/dist/esm/product/components/FileUpload/components/config/presets.js +25 -0
  24. package/dist/esm/product/components/FileUpload/components/config/setting.js +520 -0
  25. package/dist/esm/product/components/FileUpload/components/config/uiV1.js +400 -0
  26. package/dist/esm/product/components/FileUpload/components/config/uiV2.js +641 -0
  27. package/dist/esm/product/components/FileUpload/components/setting/index.js +9 -939
  28. package/dist/esm/product/components/ProductImages.js +1 -1
  29. package/package.json +1 -1
@@ -0,0 +1,400 @@
1
+ const SettingUIV1 = [
2
+ {
3
+ type: 'group',
4
+ label: {
5
+ en: 'Layout'
6
+ },
7
+ controls: [
8
+ {
9
+ type: 'control',
10
+ setting: {
11
+ id: 'fileUploadLayout'
12
+ },
13
+ layout: 'vertical'
14
+ },
15
+ {
16
+ type: 'control',
17
+ label: {
18
+ en: 'Arrange content'
19
+ },
20
+ setting: {
21
+ id: 'arrangeContent'
22
+ }
23
+ },
24
+ {
25
+ type: 'control',
26
+ label: {
27
+ en: 'Icon position'
28
+ },
29
+ setting: {
30
+ id: 'positionVertical'
31
+ },
32
+ isMoreSetting: true,
33
+ condition: "fileUploadLayout === 'vertical'"
34
+ },
35
+ {
36
+ type: 'control',
37
+ label: {
38
+ en: 'Icon position'
39
+ },
40
+ setting: {
41
+ id: 'positionHorizontal'
42
+ },
43
+ isMoreSetting: true,
44
+ condition: "fileUploadLayout !== 'vertical'"
45
+ }
46
+ ]
47
+ },
48
+ {
49
+ type: 'group',
50
+ label: {
51
+ en: 'Upload setting'
52
+ },
53
+ controls: [
54
+ {
55
+ type: 'control',
56
+ label: {
57
+ en: 'Required'
58
+ },
59
+ setting: {
60
+ id: 'isRequired'
61
+ }
62
+ },
63
+ {
64
+ type: 'control',
65
+ label: {
66
+ en: 'Click image to preview'
67
+ },
68
+ setting: {
69
+ id: 'isShowPreviewImage'
70
+ }
71
+ },
72
+ {
73
+ type: 'control',
74
+ label: {
75
+ en: 'Number of files'
76
+ },
77
+ setting: {
78
+ id: 'numberOfFiles'
79
+ }
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ type: 'group',
85
+ controls: [
86
+ {
87
+ type: 'control',
88
+ label: {
89
+ en: 'Icon'
90
+ },
91
+ setting: {
92
+ id: 'iconVisible'
93
+ },
94
+ options: {
95
+ label: 'large'
96
+ }
97
+ },
98
+ {
99
+ type: 'control',
100
+ label: {
101
+ en: 'Choose icon'
102
+ },
103
+ setting: {
104
+ id: 'iconSvg'
105
+ },
106
+ condition: 'iconVisible === true'
107
+ },
108
+ {
109
+ type: 'control',
110
+ label: {
111
+ en: 'Size'
112
+ },
113
+ setting: {
114
+ id: 'iconSize'
115
+ },
116
+ condition: 'iconVisible === true'
117
+ },
118
+ {
119
+ type: 'control',
120
+ label: {
121
+ en: 'Position'
122
+ },
123
+ setting: {
124
+ id: 'iconAlignVertical'
125
+ },
126
+ condition: 'iconVisible === true && fileUploadLayout === "vertical"'
127
+ },
128
+ {
129
+ type: 'control',
130
+ label: {
131
+ en: 'Position'
132
+ },
133
+ setting: {
134
+ id: 'iconAlignHorizontal'
135
+ },
136
+ condition: 'iconVisible === true && fileUploadLayout === "horizontal"'
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ type: 'group',
142
+ label: {
143
+ en: 'Size'
144
+ },
145
+ controls: [
146
+ {
147
+ type: 'control',
148
+ setting: {
149
+ id: 'size'
150
+ }
151
+ },
152
+ {
153
+ type: 'control',
154
+ setting: {
155
+ id: 'paddingSize'
156
+ },
157
+ layout: 'vertical',
158
+ isMoreSetting: true
159
+ },
160
+ {
161
+ type: 'control',
162
+ label: {
163
+ en: 'Content width'
164
+ },
165
+ setting: {
166
+ id: 'contentWidth'
167
+ },
168
+ isMoreSetting: true
169
+ }
170
+ ]
171
+ },
172
+ {
173
+ type: 'group',
174
+ label: {
175
+ en: 'States'
176
+ },
177
+ options: {
178
+ labelSpacing: 'small'
179
+ },
180
+ controls: [
181
+ {
182
+ type: 'tab',
183
+ controls: [
184
+ {
185
+ type: 'group',
186
+ label: {
187
+ en: 'Normal'
188
+ },
189
+ controls: [
190
+ {
191
+ type: 'control',
192
+ label: {
193
+ en: 'Background color'
194
+ },
195
+ setting: {
196
+ id: 'backgroundColor',
197
+ state: 'normal'
198
+ }
199
+ },
200
+ {
201
+ type: 'control',
202
+ label: {
203
+ en: 'Text color'
204
+ },
205
+ setting: {
206
+ id: 'textColor',
207
+ state: 'normal'
208
+ }
209
+ },
210
+ {
211
+ type: 'control',
212
+ options: {
213
+ labelPosition: 'start'
214
+ },
215
+ label: {
216
+ en: 'Border'
217
+ },
218
+ setting: {
219
+ id: 'borderBtn',
220
+ state: 'normal'
221
+ }
222
+ },
223
+ {
224
+ type: 'control',
225
+ label: {
226
+ en: 'Corner'
227
+ },
228
+ setting: {
229
+ id: 'roundedBtn',
230
+ state: 'normal'
231
+ }
232
+ },
233
+ {
234
+ type: 'control',
235
+ label: {
236
+ en: 'Shadow'
237
+ },
238
+ setting: {
239
+ id: 'hasBoxShadowBtn',
240
+ state: 'normal'
241
+ }
242
+ },
243
+ {
244
+ type: 'control',
245
+ label: {
246
+ en: ''
247
+ },
248
+ condition: 'hasBoxShadowBtn.normal == true',
249
+ layout: 'vertical',
250
+ setting: {
251
+ id: 'boxShadowBtn',
252
+ state: 'normal'
253
+ }
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ type: 'group',
259
+ label: {
260
+ en: 'Hover'
261
+ },
262
+ controls: [
263
+ {
264
+ type: 'control',
265
+ label: {
266
+ en: 'Background color'
267
+ },
268
+ setting: {
269
+ id: 'backgroundColor',
270
+ state: 'hover'
271
+ }
272
+ },
273
+ {
274
+ type: 'control',
275
+ label: {
276
+ en: 'Text color'
277
+ },
278
+ setting: {
279
+ id: 'textColor',
280
+ state: 'hover'
281
+ }
282
+ },
283
+ {
284
+ type: 'control',
285
+ options: {
286
+ labelPosition: 'start'
287
+ },
288
+ label: {
289
+ en: 'Border'
290
+ },
291
+ setting: {
292
+ id: 'borderBtn',
293
+ state: 'hover'
294
+ }
295
+ },
296
+ {
297
+ type: 'control',
298
+ label: {
299
+ en: 'Corner'
300
+ },
301
+ setting: {
302
+ id: 'roundedBtn',
303
+ state: 'hover'
304
+ }
305
+ },
306
+ {
307
+ type: 'control',
308
+ label: {
309
+ en: 'Shadow'
310
+ },
311
+ setting: {
312
+ id: 'hasBoxShadowBtn',
313
+ state: 'hover'
314
+ }
315
+ },
316
+ {
317
+ type: 'control',
318
+ label: {
319
+ en: ''
320
+ },
321
+ layout: 'vertical',
322
+ condition: 'hasBoxShadowBtn.hover == true',
323
+ setting: {
324
+ id: 'boxShadowBtn',
325
+ state: 'hover'
326
+ }
327
+ }
328
+ ]
329
+ }
330
+ ]
331
+ }
332
+ ]
333
+ },
334
+ {
335
+ type: 'group',
336
+ label: {
337
+ en: 'Text'
338
+ },
339
+ controls: [
340
+ {
341
+ type: 'control',
342
+ label: {
343
+ en: 'Content'
344
+ },
345
+ layout: 'horizontal',
346
+ setting: {
347
+ id: 'textContent'
348
+ }
349
+ },
350
+ {
351
+ type: 'control',
352
+ setting: {
353
+ id: 'typo'
354
+ },
355
+ layout: 'vertical'
356
+ }
357
+ ]
358
+ },
359
+ {
360
+ type: 'group',
361
+ label: {
362
+ en: 'Spacing'
363
+ },
364
+ controls: [
365
+ {
366
+ type: 'control',
367
+ label: {
368
+ en: 'Icon & text'
369
+ },
370
+ setting: {
371
+ id: 'spacing'
372
+ }
373
+ }
374
+ ]
375
+ },
376
+ {
377
+ type: 'control',
378
+ label: {
379
+ en: 'Text align'
380
+ },
381
+ setting: {
382
+ id: 'textAlign'
383
+ }
384
+ },
385
+ {
386
+ type: 'control',
387
+ label: {
388
+ en: 'Align'
389
+ },
390
+ condition: `size.width !== '100%'`,
391
+ options: {
392
+ label: 'large'
393
+ },
394
+ setting: {
395
+ id: 'align'
396
+ }
397
+ }
398
+ ];
399
+
400
+ export { SettingUIV1 };