@gem-sdk/components 2.0.0-dev.369 → 2.0.0-dev.371

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 (142) hide show
  1. package/dist/cjs/article/components/ArticleDate.js +0 -1
  2. package/dist/cjs/article/components/ArticleReadMore.liquid.js +1 -1
  3. package/dist/cjs/article/setting/configs/ArticleContent/settings.js +1 -1
  4. package/dist/cjs/article/setting/configs/ArticleContent/uiV2.js +11 -1
  5. package/dist/cjs/article/setting/configs/ArticleExcerpt/settings.js +1 -1
  6. package/dist/cjs/article/setting/configs/ArticleImage/settings.js +5 -4
  7. package/dist/cjs/article/setting/configs/ArticleImage/uiV2.js +48 -4
  8. package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +96 -64
  9. package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +380 -97
  10. package/dist/cjs/builder.js +2 -2
  11. package/dist/cjs/button/setting/configs/settings.js +0 -14
  12. package/dist/cjs/carousel/arrow/Arrow.js +52 -0
  13. package/dist/cjs/carousel/arrow/Arrow.liquid.js +46 -0
  14. package/dist/cjs/carousel/{components/common/arrow.js → arrow/common/common.js} +13 -11
  15. package/dist/cjs/carousel/arrow/common/getClass.js +50 -0
  16. package/dist/cjs/carousel/arrow/common/getStyle.js +84 -0
  17. package/dist/cjs/carousel/carousel-item/CarouselItem.js +32 -0
  18. package/dist/cjs/carousel/carousel-item/CarouselItem.liquid.js +38 -0
  19. package/dist/cjs/carousel/carousel-item/common/getClass.js +29 -0
  20. package/dist/cjs/carousel/{components/CarouselItem.liquid.js → carousel-item/common/getStyle.js} +30 -47
  21. package/dist/cjs/carousel/carousel-item/hook/useCarouseItem.js +14 -0
  22. package/dist/cjs/carousel/components/const/index.js +5 -0
  23. package/dist/cjs/carousel/dots/Dots.js +51 -0
  24. package/dist/cjs/carousel/dots/Dots.liquid.js +26 -0
  25. package/dist/cjs/carousel/dots/common/common.js +46 -0
  26. package/dist/cjs/carousel/dots/common/getClass.js +40 -0
  27. package/dist/cjs/carousel/dots/common/getStyle.js +33 -0
  28. package/dist/cjs/carousel/dots/hook/useDotsSetting.js +21 -0
  29. package/dist/cjs/carousel/index.js +1 -2
  30. package/dist/cjs/carousel/next.js +2 -2
  31. package/dist/cjs/carousel/root/Carousel.js +129 -0
  32. package/dist/cjs/carousel/root/Carousel.liquid.js +104 -0
  33. package/dist/cjs/carousel/root/common/getAttr.js +25 -0
  34. package/dist/cjs/carousel/root/common/getClass.js +135 -0
  35. package/dist/cjs/carousel/root/common/getData.js +56 -0
  36. package/dist/cjs/carousel/root/common/getStyle.js +64 -0
  37. package/dist/cjs/carousel/{components/Carousel.js → root/hook/useCarousel.js} +153 -321
  38. package/dist/cjs/carousel/setting/Carousel.js +8 -1555
  39. package/dist/cjs/carousel/setting/configs/presets.js +380 -0
  40. package/dist/cjs/carousel/setting/configs/settingV2.js +771 -0
  41. package/dist/cjs/carousel/setting/configs/uiV1.js +434 -0
  42. package/dist/cjs/carousel/setting/configs/uiV2.js +627 -0
  43. package/dist/cjs/common/components/NoDataState.js +5 -5
  44. package/dist/cjs/grid/row/commons/common.js +3 -3
  45. package/dist/cjs/index.js +2 -2
  46. package/dist/cjs/index.liquid.js +2 -2
  47. package/dist/cjs/product/components/ProductImages/ProductGalleryCarousel.js +2 -2
  48. package/dist/cjs/product/components/ProductImages/ProductImagesLightBox.js +2 -2
  49. package/dist/cjs/product/components/ProductImages/liquid/ProductGalleryCarousel.liquid.js +5 -3
  50. package/dist/cjs/product/components/ProductImagesV2/common/getAttr.js +1 -0
  51. package/dist/cjs/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  52. package/dist/cjs/product/components/ProductImagesV2/common/productGallery.js +1 -1
  53. package/dist/cjs/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +5 -5
  54. package/dist/cjs/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +8 -4
  55. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +2 -2
  56. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +6 -3
  57. package/dist/cjs/product/components/ProductImagesV2/components/lightbox/ProductImagesLightBox.js +2 -2
  58. package/dist/cjs/product/components/ProductImagesV2/hooks/useProductFeaturedImageCarousel.js +3 -3
  59. package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.js +2 -2
  60. package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.liquid.js +5 -3
  61. package/dist/cjs/product/components/ProductList/common/index.js +5 -5
  62. package/dist/cjs/product/components/ProductVariants/common/main/getAttr.js +1 -1
  63. package/dist/cjs/text/components/Text.js +3 -3
  64. package/dist/esm/article/components/ArticleDate.js +0 -1
  65. package/dist/esm/article/components/ArticleReadMore.liquid.js +1 -1
  66. package/dist/esm/article/setting/configs/ArticleContent/settings.js +1 -1
  67. package/dist/esm/article/setting/configs/ArticleContent/uiV2.js +11 -1
  68. package/dist/esm/article/setting/configs/ArticleExcerpt/settings.js +1 -1
  69. package/dist/esm/article/setting/configs/ArticleImage/settings.js +5 -4
  70. package/dist/esm/article/setting/configs/ArticleImage/uiV2.js +48 -4
  71. package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +96 -64
  72. package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +380 -97
  73. package/dist/esm/builder.js +2 -2
  74. package/dist/esm/button/setting/configs/settings.js +0 -14
  75. package/dist/esm/carousel/arrow/Arrow.js +48 -0
  76. package/dist/esm/carousel/arrow/Arrow.liquid.js +42 -0
  77. package/dist/esm/carousel/{components/common/arrow.js → arrow/common/common.js} +12 -10
  78. package/dist/esm/carousel/arrow/common/getClass.js +48 -0
  79. package/dist/esm/carousel/arrow/common/getStyle.js +82 -0
  80. package/dist/esm/carousel/carousel-item/CarouselItem.js +28 -0
  81. package/dist/esm/carousel/carousel-item/CarouselItem.liquid.js +34 -0
  82. package/dist/esm/carousel/carousel-item/common/getClass.js +27 -0
  83. package/dist/esm/carousel/{components/CarouselItem.liquid.js → carousel-item/common/getStyle.js} +31 -46
  84. package/dist/esm/carousel/carousel-item/hook/useCarouseItem.js +12 -0
  85. package/dist/esm/carousel/components/const/index.js +3 -0
  86. package/dist/esm/carousel/dots/Dots.js +47 -0
  87. package/dist/esm/carousel/dots/Dots.liquid.js +22 -0
  88. package/dist/esm/carousel/dots/common/common.js +43 -0
  89. package/dist/esm/carousel/dots/common/getClass.js +38 -0
  90. package/dist/esm/carousel/dots/common/getStyle.js +31 -0
  91. package/dist/esm/carousel/dots/hook/useDotsSetting.js +19 -0
  92. package/dist/esm/carousel/index.js +1 -2
  93. package/dist/esm/carousel/next.js +2 -2
  94. package/dist/esm/carousel/root/Carousel.js +125 -0
  95. package/dist/esm/carousel/root/Carousel.liquid.js +100 -0
  96. package/dist/esm/carousel/root/common/getAttr.js +23 -0
  97. package/dist/esm/carousel/root/common/getClass.js +133 -0
  98. package/dist/esm/carousel/root/common/getData.js +54 -0
  99. package/dist/esm/carousel/root/common/getStyle.js +62 -0
  100. package/dist/esm/carousel/{components/Carousel.js → root/hook/useCarousel.js} +150 -316
  101. package/dist/esm/carousel/setting/Carousel.js +8 -1555
  102. package/dist/esm/carousel/setting/configs/presets.js +378 -0
  103. package/dist/esm/carousel/setting/configs/settingV2.js +769 -0
  104. package/dist/esm/carousel/setting/configs/uiV1.js +432 -0
  105. package/dist/esm/carousel/setting/configs/uiV2.js +625 -0
  106. package/dist/esm/common/components/NoDataState.js +6 -6
  107. package/dist/esm/grid/row/commons/common.js +1 -1
  108. package/dist/esm/index.js +2 -2
  109. package/dist/esm/index.liquid.js +2 -2
  110. package/dist/esm/product/components/ProductImages/ProductGalleryCarousel.js +2 -2
  111. package/dist/esm/product/components/ProductImages/ProductImagesLightBox.js +2 -2
  112. package/dist/esm/product/components/ProductImages/liquid/ProductGalleryCarousel.liquid.js +5 -3
  113. package/dist/esm/product/components/ProductImagesV2/common/getAttr.js +1 -0
  114. package/dist/esm/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  115. package/dist/esm/product/components/ProductImagesV2/common/productGallery.js +1 -1
  116. package/dist/esm/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +5 -5
  117. package/dist/esm/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +8 -4
  118. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +2 -2
  119. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +6 -3
  120. package/dist/esm/product/components/ProductImagesV2/components/lightbox/ProductImagesLightBox.js +2 -2
  121. package/dist/esm/product/components/ProductImagesV2/hooks/useProductFeaturedImageCarousel.js +3 -3
  122. package/dist/esm/product/components/ProductList/ProductListCarouselLayout.js +2 -2
  123. package/dist/esm/product/components/ProductList/ProductListCarouselLayout.liquid.js +5 -3
  124. package/dist/esm/product/components/ProductList/common/index.js +3 -3
  125. package/dist/esm/product/components/ProductVariants/common/main/getAttr.js +1 -1
  126. package/dist/esm/text/components/Text.js +4 -4
  127. package/dist/types/index.d.ts +165 -68
  128. package/package.json +3 -3
  129. package/dist/cjs/carousel/components/Arrow.js +0 -110
  130. package/dist/cjs/carousel/components/Arrow.liquid.js +0 -103
  131. package/dist/cjs/carousel/components/Carousel.liquid.js +0 -256
  132. package/dist/cjs/carousel/components/CarouselItem.js +0 -88
  133. package/dist/cjs/carousel/components/Dots.js +0 -69
  134. package/dist/cjs/carousel/components/Dots.liquid.js +0 -23
  135. package/dist/cjs/carousel/components/common/dots.js +0 -57
  136. package/dist/esm/carousel/components/Arrow.js +0 -106
  137. package/dist/esm/carousel/components/Arrow.liquid.js +0 -99
  138. package/dist/esm/carousel/components/Carousel.liquid.js +0 -252
  139. package/dist/esm/carousel/components/CarouselItem.js +0 -84
  140. package/dist/esm/carousel/components/Dots.js +0 -65
  141. package/dist/esm/carousel/components/Dots.liquid.js +0 -19
  142. package/dist/esm/carousel/components/common/dots.js +0 -53
@@ -7,6 +7,194 @@ const uiV2 = [
7
7
  },
8
8
  setting: {
9
9
  id: 'readMoreType'
10
+ },
11
+ layout: 'vertical',
12
+ controlChangeTrigger: {
13
+ settings: [
14
+ {
15
+ condition: `readMoreType === 'outline'`,
16
+ source: [
17
+ 'readMoreType'
18
+ ],
19
+ action: {
20
+ controlId: 'borderBtnV2',
21
+ groupType: 'style',
22
+ controlType: 'style',
23
+ newValue: {
24
+ normal: {
25
+ border: 'solid',
26
+ color: '#121212',
27
+ width: '1px',
28
+ borderWidth: '1px',
29
+ borderType: '1px'
30
+ },
31
+ hover: {
32
+ border: 'solid',
33
+ color: '#121212',
34
+ width: '1px',
35
+ borderWidth: '1px',
36
+ borderType: '1px'
37
+ }
38
+ }
39
+ }
40
+ },
41
+ {
42
+ condition: `readMoreType === 'button'`,
43
+ source: [
44
+ 'readMoreType'
45
+ ],
46
+ action: {
47
+ controlId: 'roundedBtnV2',
48
+ groupType: 'style',
49
+ controlType: 'style',
50
+ newValue: {
51
+ normal: {},
52
+ hover: {}
53
+ }
54
+ }
55
+ },
56
+ {
57
+ condition: `readMoreType === 'outline'`,
58
+ source: [
59
+ 'readMoreType'
60
+ ],
61
+ action: {
62
+ controlId: 'backgroundColorV2',
63
+ groupType: 'style',
64
+ controlType: 'style',
65
+ newValue: {
66
+ normal: '#212121',
67
+ hover: '#303030'
68
+ }
69
+ }
70
+ },
71
+ {
72
+ condition: `readMoreType === 'button' || readMoreType === 'rounded'`,
73
+ source: [
74
+ 'readMoreType'
75
+ ],
76
+ action: {
77
+ controlId: 'backgroundColorV2',
78
+ groupType: 'style',
79
+ controlType: 'style',
80
+ newValue: {
81
+ normal: '#212121',
82
+ hover: '#303030'
83
+ }
84
+ }
85
+ },
86
+ {
87
+ condition: `readMoreType === 'outline'`,
88
+ source: [
89
+ 'readMoreType'
90
+ ],
91
+ action: {
92
+ controlId: 'borderBtnV2',
93
+ groupType: 'style',
94
+ controlType: 'style',
95
+ newValue: {
96
+ normal: {},
97
+ hover: {}
98
+ }
99
+ }
100
+ },
101
+ {
102
+ condition: `readMoreType === 'outline'`,
103
+ source: [
104
+ 'readMoreType'
105
+ ],
106
+ action: {
107
+ controlId: 'backgroundColorV2',
108
+ groupType: 'style',
109
+ controlType: 'style',
110
+ newValue: {
111
+ normal: 'transparent',
112
+ hover: '#ECECEC'
113
+ }
114
+ }
115
+ },
116
+ {
117
+ condition: `readMoreType === 'rounded'`,
118
+ source: [
119
+ 'readMoreType'
120
+ ],
121
+ action: {
122
+ controlId: 'roundedBtnV2',
123
+ groupType: 'style',
124
+ controlType: 'style',
125
+ newValue: {
126
+ normal: {
127
+ btrr: '99999px',
128
+ bblr: '99999px',
129
+ bbrr: '99999px',
130
+ btlr: '99999px',
131
+ radiusType: 'circle'
132
+ },
133
+ hover: {
134
+ btrr: '99999px',
135
+ bblr: '99999px',
136
+ bbrr: '99999px',
137
+ btlr: '99999px',
138
+ radiusType: 'circle'
139
+ }
140
+ }
141
+ }
142
+ },
143
+ {
144
+ condition: `readMoreType === 'rounded'`,
145
+ source: [
146
+ 'readMoreType'
147
+ ],
148
+ action: {
149
+ controlId: 'roundedBtnV2',
150
+ groupType: 'style',
151
+ controlType: 'style',
152
+ newValue: {
153
+ normal: {
154
+ btrr: '99999px',
155
+ bblr: '99999px',
156
+ bbrr: '99999px',
157
+ btlr: '99999px',
158
+ radiusType: 'circle'
159
+ },
160
+ hover: {
161
+ btrr: '99999px',
162
+ bblr: '99999px',
163
+ bbrr: '99999px',
164
+ btlr: '99999px',
165
+ radiusType: 'circle'
166
+ }
167
+ }
168
+ }
169
+ },
170
+ {
171
+ condition: `readMoreType !== 'rounded'`,
172
+ source: [
173
+ 'readMoreType'
174
+ ],
175
+ action: {
176
+ controlId: 'roundedBtnV2',
177
+ groupType: 'style',
178
+ controlType: 'style',
179
+ newValue: {
180
+ normal: {},
181
+ hover: {}
182
+ }
183
+ }
184
+ }
185
+ ],
186
+ options: {
187
+ noRecordHistory: true
188
+ }
189
+ }
190
+ },
191
+ {
192
+ label: {
193
+ en: 'Content'
194
+ },
195
+ conditionDisplay: `readMoreType === 'text'`,
196
+ setting: {
197
+ id: 'label'
10
198
  }
11
199
  }
12
200
  ]
@@ -15,7 +203,7 @@ const uiV2 = [
15
203
  label: {
16
204
  en: 'Size'
17
205
  },
18
- conditionDisplay: `readMoreType == 'button'`,
206
+ conditionDisplay: `readMoreType !== 'text'`,
19
207
  controls: [
20
208
  {
21
209
  id: 'Width',
@@ -104,79 +292,6 @@ const uiV2 = [
104
292
  }
105
293
  ]
106
294
  },
107
- {
108
- label: {
109
- en: 'Background'
110
- },
111
- controls: [
112
- {
113
- setting: {
114
- id: 'backgroundColor'
115
- },
116
- layout: 'vertical'
117
- }
118
- ]
119
- },
120
- {
121
- conditionDisplay: `readMoreType == 'button'`,
122
- controls: [
123
- {
124
- label: {
125
- en: 'Icon'
126
- },
127
- setting: {
128
- id: 'iconVisible'
129
- },
130
- options: {
131
- labelVariant: 'primary',
132
- toggleStyle: 'switch'
133
- }
134
- }
135
- ]
136
- },
137
- {
138
- label: {
139
- en: 'Text style'
140
- },
141
- conditionDisplay: `readMoreType == 'button'`,
142
- controls: [
143
- {
144
- id: 'typo',
145
- label: {
146
- en: 'Basic'
147
- },
148
- setting: {
149
- id: 'typoBtn'
150
- },
151
- options: {
152
- hideLabel: true,
153
- fullWidth: true,
154
- updateFields: [
155
- {
156
- field: 'attrs.textAlign',
157
- settingId: 'textAlign'
158
- }
159
- ]
160
- },
161
- layout: 'vertical',
162
- controlChangeTrigger: {
163
- settings: [
164
- {
165
- action: {
166
- controlId: 'textAlign',
167
- valueFromField: 'attrs.textAlign',
168
- groupType: 'style',
169
- controlType: 'style'
170
- }
171
- }
172
- ],
173
- options: {
174
- noRecordHistory: true
175
- }
176
- }
177
- }
178
- ]
179
- },
180
295
  {
181
296
  label: {
182
297
  en: 'Size'
@@ -285,11 +400,154 @@ const uiV2 = [
285
400
  }
286
401
  ]
287
402
  },
403
+ {
404
+ label: {
405
+ en: 'Background'
406
+ },
407
+ controls: [
408
+ {
409
+ label: {
410
+ en: 'Color'
411
+ },
412
+ setting: {
413
+ id: 'backgroundColorV2',
414
+ state: 'normal'
415
+ }
416
+ },
417
+ {
418
+ label: {
419
+ en: 'Image'
420
+ },
421
+ setting: {
422
+ id: 'backgroundImage',
423
+ state: 'normal'
424
+ }
425
+ }
426
+ ]
427
+ },
428
+ {
429
+ label: {
430
+ en: 'Shape'
431
+ },
432
+ controls: [
433
+ {
434
+ label: {
435
+ en: 'Border'
436
+ },
437
+ setting: {
438
+ id: 'borderBtnV2',
439
+ state: 'normal'
440
+ }
441
+ },
442
+ {
443
+ label: {
444
+ en: 'Corner'
445
+ },
446
+ setting: {
447
+ id: 'roundedBtnV2',
448
+ state: 'normal'
449
+ }
450
+ },
451
+ {
452
+ label: {
453
+ en: 'Shadow'
454
+ },
455
+ setting: {
456
+ id: 'boxShadowBtnV2',
457
+ state: 'normal'
458
+ },
459
+ controlConfig: {
460
+ id: 'boxShadowBtnV2',
461
+ type: 'shadow-v2'
462
+ }
463
+ }
464
+ ]
465
+ },
466
+ {
467
+ controls: [
468
+ {
469
+ label: {
470
+ en: 'Icon'
471
+ },
472
+ setting: {
473
+ id: 'iconVisible'
474
+ },
475
+ options: {
476
+ labelVariant: 'primary',
477
+ toggleStyle: 'switch'
478
+ }
479
+ },
480
+ {
481
+ label: {
482
+ en: 'Icon'
483
+ },
484
+ setting: {
485
+ id: 'iconSvg'
486
+ },
487
+ conditionDisplay: 'iconVisible == true'
488
+ },
489
+ // {
490
+ // label: {
491
+ // en: 'Icon',
492
+ // },
493
+ // controlConfig: {
494
+ // id: 'iconColor',
495
+ // type: 'color-picker-v2',
496
+ // linkWithSetting: {
497
+ // name: 'textColorTextState',
498
+ // field: 'normal',
499
+ // },
500
+ // },
501
+ // conditionDisplay: 'iconVisible == true',
502
+ // },
503
+ // {
504
+ // label: {
505
+ // en: 'Size',
506
+ // },
507
+ // conditionDisplay: 'iconVisible == true',
508
+ // controlConfig: {
509
+ // id: 'iconSize',
510
+ // type: 'input:stepper',
511
+ // includeUnit: 'px',
512
+ // linkWithSetting: {
513
+ // name: 'iconSize',
514
+ // field: 'width',
515
+ // },
516
+ // compoDefaultValue: {
517
+ // default: {
518
+ // value: 16,
519
+ // unit: 'px',
520
+ // },
521
+ // },
522
+ // },
523
+ // },
524
+ {
525
+ type: 'control',
526
+ label: {
527
+ en: 'Position'
528
+ },
529
+ setting: {
530
+ id: 'iconAlign'
531
+ },
532
+ conditionDisplay: 'iconVisible == true'
533
+ },
534
+ {
535
+ type: 'control',
536
+ label: {
537
+ en: 'Gap'
538
+ },
539
+ setting: {
540
+ id: 'spacing'
541
+ },
542
+ conditionDisplay: 'iconVisible == true'
543
+ }
544
+ ]
545
+ },
288
546
  {
289
547
  label: {
290
548
  en: 'Text style'
291
549
  },
292
- conditionDisplay: `readMoreType == 'text'`,
550
+ conditionDisplay: `readMoreType !== 'text'`,
293
551
  controls: [
294
552
  {
295
553
  id: 'typo',
@@ -297,7 +555,7 @@ const uiV2 = [
297
555
  en: 'Basic'
298
556
  },
299
557
  setting: {
300
- id: 'typoText'
558
+ id: 'typoBtn'
301
559
  },
302
560
  options: {
303
561
  hideLabel: true,
@@ -329,32 +587,44 @@ const uiV2 = [
329
587
  ]
330
588
  },
331
589
  {
332
- conditionDisplay: "iconVisible == true && readMoreType == 'button'",
590
+ label: {
591
+ en: 'Text style'
592
+ },
593
+ conditionDisplay: `readMoreType == 'text'`,
333
594
  controls: [
334
595
  {
596
+ id: 'typo',
335
597
  label: {
336
- en: 'Choose icon'
598
+ en: 'Basic'
337
599
  },
338
600
  setting: {
339
- id: 'iconSvg'
340
- }
341
- },
342
- {
343
- type: 'control',
344
- label: {
345
- en: 'Position'
601
+ id: 'typoText'
346
602
  },
347
- setting: {
348
- id: 'iconAlign'
349
- }
350
- },
351
- {
352
- type: 'control',
353
- label: {
354
- en: 'Spacing'
603
+ options: {
604
+ hideLabel: true,
605
+ fullWidth: true,
606
+ updateFields: [
607
+ {
608
+ field: 'attrs.textAlign',
609
+ settingId: 'textAlign'
610
+ }
611
+ ]
355
612
  },
356
- setting: {
357
- id: 'iconSpacing'
613
+ layout: 'vertical',
614
+ controlChangeTrigger: {
615
+ settings: [
616
+ {
617
+ action: {
618
+ controlId: 'textAlign',
619
+ valueFromField: 'attrs.textAlign',
620
+ groupType: 'style',
621
+ controlType: 'style'
622
+ }
623
+ }
624
+ ],
625
+ options: {
626
+ noRecordHistory: true
627
+ }
358
628
  }
359
629
  }
360
630
  ]
@@ -363,7 +633,7 @@ const uiV2 = [
363
633
  label: {
364
634
  en: 'Hover effect'
365
635
  },
366
- conditionDisplay: `readMoreType == 'button'`,
636
+ conditionDisplay: `readMoreType !== 'text'`,
367
637
  controls: [
368
638
  {
369
639
  label: {
@@ -400,6 +670,19 @@ const uiV2 = [
400
670
  id: 'roundedBtnV2',
401
671
  state: 'hover'
402
672
  }
673
+ },
674
+ {
675
+ label: {
676
+ en: 'Shadow'
677
+ },
678
+ setting: {
679
+ id: 'boxShadowBtnV2',
680
+ state: 'hover'
681
+ },
682
+ controlConfig: {
683
+ id: 'boxShadowBtnV2',
684
+ type: 'shadow-v2'
685
+ }
403
686
  }
404
687
  ]
405
688
  },
@@ -429,7 +712,7 @@ const uiV2 = [
429
712
  setting: {
430
713
  id: 'alignBtn'
431
714
  },
432
- conditionDisplay: `readMoreType == 'button'`,
715
+ conditionDisplay: `readMoreType !== 'text'`,
433
716
  conditionEnable: "globalSizeBtn.width !== '100%'",
434
717
  options: {
435
718
  labelVariant: 'primary',
@@ -16,8 +16,8 @@ import ArticleReadMore from './article/components/ArticleReadMore.js';
16
16
  import HeroBanner from './banner/components/HeroBanner.js';
17
17
  import Breadcrumb from './breadcrumb/components/Breadcrumb.js';
18
18
  import Button from './button/components/Button.js';
19
- import Carousel from './carousel/components/Carousel.js';
20
- import CarouselItem from './carousel/components/CarouselItem.js';
19
+ import Carousel from './carousel/root/Carousel.js';
20
+ import CarouselItem from './carousel/carousel-item/CarouselItem.js';
21
21
  import Cart from './cart/components/Cart.js';
22
22
  import CartList from './cart/components/CartList.js';
23
23
  import CartLinePrice from './cart/components/CartLinePrice.js';
@@ -195,13 +195,6 @@ const ButtonSettings = [
195
195
  bbrr: '0px',
196
196
  btlr: '0px',
197
197
  radiusType: 'none'
198
- },
199
- hover: {
200
- btrr: '0px',
201
- bblr: '0px',
202
- bbrr: '0px',
203
- btlr: '0px',
204
- radiusType: 'none'
205
198
  }
206
199
  }
207
200
  }
@@ -215,13 +208,6 @@ const ButtonSettings = [
215
208
  bbrr: '8px',
216
209
  btlr: '8px',
217
210
  radiusType: 'rounded'
218
- },
219
- hover: {
220
- btrr: '8px',
221
- bblr: '8px',
222
- bbrr: '8px',
223
- btlr: '8px',
224
- radiusType: 'rounded'
225
211
  }
226
212
  }
227
213
  }
@@ -0,0 +1,48 @@
1
+ 'use client';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { getClass } from './common/getClass.js';
4
+ import { getStyle } from './common/getStyle.js';
5
+ import { getData } from './common/common.js';
6
+ import { If } from '@gem-sdk/system';
7
+
8
+ const Arrow = (props)=>{
9
+ const { custom, left, onClick } = props;
10
+ const { isRenderCustomIcon } = getData(props);
11
+ const { buttonClass, buttonContentClass } = getClass(props);
12
+ const { buttonStyle, buttonContentStyle, innerBorderCss } = getStyle(props, 'react');
13
+ const customIcon = If(isRenderCustomIcon, custom ?? '', /*#__PURE__*/ jsx("svg", {
14
+ height: "100%",
15
+ width: "100%",
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ viewBox: "0 0 24 24",
18
+ fill: "currentColor",
19
+ children: /*#__PURE__*/ jsx("path", {
20
+ d: "M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z"
21
+ })
22
+ }));
23
+ const buttonContent = /*#__PURE__*/ jsx("div", {
24
+ className: buttonContentClass,
25
+ style: buttonContentStyle,
26
+ dangerouslySetInnerHTML: {
27
+ __html: customIcon || ''
28
+ }
29
+ });
30
+ return /*#__PURE__*/ jsxs("button", {
31
+ type: "button",
32
+ "aria-label": `Carousel ${left ? 'Back' : 'Next'} Arrow`,
33
+ className: buttonClass,
34
+ style: buttonStyle,
35
+ onClick: onClick,
36
+ children: [
37
+ /*#__PURE__*/ jsx("style", {
38
+ type: "text/css",
39
+ dangerouslySetInnerHTML: {
40
+ __html: innerBorderCss
41
+ }
42
+ }),
43
+ buttonContent
44
+ ]
45
+ });
46
+ };
47
+
48
+ export { Arrow as default };
@@ -0,0 +1,42 @@
1
+ import { template } from '@gem-sdk/core';
2
+ import { getClass } from './common/getClass.js';
3
+ import { getStyle } from './common/getStyle.js';
4
+ import { getData } from './common/common.js';
5
+ import { If } from '@gem-sdk/system';
6
+
7
+ const Arrow = (props)=>{
8
+ const { custom, left } = props;
9
+ const { isRenderCustomIcon } = getData(props);
10
+ const { buttonClass, buttonContentClass } = getClass(props);
11
+ const { buttonStyle, buttonContentStyle, innerBorderCss } = getStyle(props);
12
+ const customIcon = If(isRenderCustomIcon, custom ?? '', `<svg
13
+ height="100%"
14
+ width="100%"
15
+ xmlns="http://www.w3.org/2000/svg"
16
+ viewBox="0 0 24 24"
17
+ fill="currentColor"
18
+ >
19
+ <path d="M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z" />
20
+ </svg>`);
21
+ const buttonContent = template`
22
+ <div
23
+ class="${buttonContentClass}"
24
+ style="${buttonContentStyle}"
25
+ >
26
+ ${customIcon || ''}
27
+ </div>
28
+ `;
29
+ return template`
30
+ <button
31
+ type="button"
32
+ aria-label='Carousel ${left ? 'Back' : 'Next'} Arrow'
33
+ class="${buttonClass}"
34
+ style="${buttonStyle}"
35
+ >
36
+ <style type="text/css">${innerBorderCss}</style>
37
+ ${buttonContent}
38
+ </button>
39
+ `;
40
+ };
41
+
42
+ export { Arrow as default };