@gem-sdk/components 2.0.0-dev.293 → 2.0.0-dev.303

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 (236) hide show
  1. package/dist/cjs/accordion/components/common/index.js +2 -2
  2. package/dist/cjs/article/components/ArticleAuthor.js +1 -1
  3. package/dist/cjs/article/components/ArticleTitle.js +3 -1
  4. package/dist/cjs/article/components/ArticleTitle.liquid.js +5 -2
  5. package/dist/cjs/article/setting/ArticleList.js +0 -30
  6. package/dist/cjs/article/setting/configs/ArticleAuthor/presets.js +0 -9
  7. package/dist/cjs/article/setting/configs/ArticleAuthor/settings.js +9 -5
  8. package/dist/cjs/article/setting/configs/ArticleAuthor/uiV2.js +16 -0
  9. package/dist/cjs/article/setting/configs/ArticleCategory/presets.js +0 -9
  10. package/dist/cjs/article/setting/configs/ArticleCategory/settings.js +9 -5
  11. package/dist/cjs/article/setting/configs/ArticleDate/presets.js +0 -9
  12. package/dist/cjs/article/setting/configs/ArticleDate/settings.js +9 -5
  13. package/dist/cjs/article/setting/configs/ArticleImage/settings.js +22 -1
  14. package/dist/cjs/article/setting/configs/ArticleTitle/settings.js +36 -7
  15. package/dist/cjs/article/setting/configs/ArticleTitle/uiV2.js +47 -2
  16. package/dist/cjs/builder.js +6 -2
  17. package/dist/cjs/button/components/Button.js +1 -1
  18. package/dist/cjs/button/components/Button.liquid.js +1 -1
  19. package/dist/cjs/button/components/ButtonIcon.liquid.js +3 -1
  20. package/dist/cjs/button/components/ButtonLabel.liquid.js +3 -1
  21. package/dist/cjs/button/components/common/attributes.js +2 -2
  22. package/dist/cjs/button/components/common/classes.js +2 -1
  23. package/dist/cjs/button/components/common/styles.js +9 -11
  24. package/dist/cjs/button/setting/configs/settings.js +7 -8
  25. package/dist/cjs/button/setting/configs/uiV2.js +4 -50
  26. package/dist/cjs/dialog/components/Dialog.js +109 -394
  27. package/dist/cjs/dialog/components/Dialog.liquid.js +129 -153
  28. package/dist/cjs/dialog/components/common/common.js +130 -0
  29. package/dist/cjs/dialog/components/common/getAttr.js +27 -0
  30. package/dist/cjs/dialog/components/common/getClasses.js +88 -0
  31. package/dist/cjs/dialog/components/common/getStyle.js +107 -0
  32. package/dist/cjs/dialog/components/hooks/useDialog.js +233 -0
  33. package/dist/cjs/dialog/setting/configs/settings.js +1 -1
  34. package/dist/cjs/dialog/setting/configs/uiV2.js +35 -25
  35. package/dist/cjs/form/components/form-checkbox/FormCheckbox.js +0 -4
  36. package/dist/cjs/form/components/textinput/TextInput.js +58 -0
  37. package/dist/cjs/form/components/textinput/TextInput.liquid.js +60 -0
  38. package/dist/cjs/form/components/textinput/common/composeClasses.js +33 -0
  39. package/dist/cjs/form/components/textinput/common/composeStyles.js +70 -0
  40. package/dist/cjs/form/next.js +5 -1
  41. package/dist/cjs/form/setting/index.js +3 -1
  42. package/dist/cjs/form/setting/newsletter/configs/settings.js +4 -2
  43. package/dist/cjs/form/setting/newsletter/configs/uiV2.js +2 -0
  44. package/dist/cjs/form/setting/text-input/TextInput.js +53 -0
  45. package/dist/cjs/form/setting/text-input/configs/settings.js +307 -0
  46. package/dist/cjs/form/setting/text-input/configs/uiV1.js +106 -0
  47. package/dist/cjs/form/setting/text-input/configs/uiV2.js +303 -0
  48. package/dist/cjs/grid/row/setting/configs/settings.js +6 -3
  49. package/dist/cjs/helpers.js +8 -0
  50. package/dist/cjs/icon-list/common/attrs.js +10 -0
  51. package/dist/cjs/icon-list/common/classes.js +9 -0
  52. package/dist/cjs/icon-list/common/styles.js +29 -0
  53. package/dist/cjs/icon-list/components/IconList.js +19 -30
  54. package/dist/cjs/icon-list/components/IconList.liquid.js +21 -24
  55. package/dist/cjs/icon-list/components/IconListItem.js +13 -7
  56. package/dist/cjs/icon-list/components/IconListItem.liquid.js +13 -7
  57. package/dist/cjs/icon-list-hoz/components/IconListHoz.js +37 -25
  58. package/dist/cjs/icon-list-hoz/components/IconListHoz.liquid.js +31 -25
  59. package/dist/cjs/icon-list-hoz/components/IconListHozItem.js +12 -6
  60. package/dist/cjs/icon-list-hoz/components/IconListIHozItem.liquid.js +26 -0
  61. package/dist/cjs/icon-list-hoz/components/common/getAttr.js +9 -0
  62. package/dist/cjs/icon-list-hoz/components/common/getClasses.js +24 -0
  63. package/dist/cjs/icon-list-hoz/components/common/getStyle.js +30 -0
  64. package/dist/cjs/image/components/AdaptiveImage.js +1 -1
  65. package/dist/cjs/image/components/AdaptiveImage.liquid.js +4 -4
  66. package/dist/cjs/image/components/Image.js +1 -5
  67. package/dist/cjs/image/components/common/styles.js +2 -2
  68. package/dist/cjs/image/components/helpers/getNextImageLiquidAttrs.js +6 -24
  69. package/dist/cjs/image/components/helpers/getNextImageReactAttrs.js +3 -3
  70. package/dist/cjs/index.js +6 -1
  71. package/dist/cjs/index.liquid.js +7 -3
  72. package/dist/cjs/line/common/classes.js +66 -0
  73. package/dist/cjs/line/common/index.js +16 -0
  74. package/dist/cjs/line/common/styles.js +120 -0
  75. package/dist/cjs/line/components/Divider.js +26 -0
  76. package/dist/cjs/line/components/Divider.liquid.js +22 -0
  77. package/dist/cjs/line/components/Line.js +98 -0
  78. package/dist/cjs/line/components/Line.liquid.js +86 -0
  79. package/dist/cjs/line/next.js +1 -1
  80. package/dist/cjs/post-purchase/line/setting/configs/uiV2.js +1 -1
  81. package/dist/cjs/post-purchase/link/setting/configs/settings.js +2 -1
  82. package/dist/cjs/post-purchase/link/setting/configs/uiV2.js +1 -1
  83. package/dist/cjs/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
  84. package/dist/cjs/product/components/FileUpload/components/config/setting.js +24 -26
  85. package/dist/cjs/product/components/FileUpload/components/config/uiV2.js +12 -179
  86. package/dist/cjs/product/components/ProductList.js +1 -1
  87. package/dist/cjs/product/components/ProductVariants/index.js +2 -2
  88. package/dist/cjs/product/components/ProductVariants/index.liquid.js +2 -2
  89. package/dist/cjs/product/components/ProductVariants/variants/Dropdown.js +8 -3
  90. package/dist/cjs/product/components/ProductVariants/variants/Dropdown.liquid.js +7 -2
  91. package/dist/cjs/product/setting/ProductVariants.js +8 -1374
  92. package/dist/cjs/product/setting/product/configs/uiV2.js +2 -2
  93. package/dist/cjs/product/setting/product-list/configs/uiV2.js +0 -3
  94. package/dist/cjs/product/setting/product-variant/configs/presets.js +168 -0
  95. package/dist/cjs/product/setting/product-variant/configs/settings.js +732 -0
  96. package/dist/cjs/product/setting/product-variant/configs/uiV1.js +509 -0
  97. package/dist/cjs/product/setting/product-variant/configs/uiV2.js +347 -0
  98. package/dist/cjs/third-party/components/EcoboostifyShoppableReelUgc.js +33 -0
  99. package/dist/cjs/third-party/components/EcoboostifyShoppableReelUgc.liquid.js +12 -0
  100. package/dist/cjs/third-party/components/RechargeSubscriptions.liquid.js +1 -1
  101. package/dist/cjs/third-party/configs/EcoboostifyShoppableReelUgc.js +12 -0
  102. package/dist/cjs/third-party/next.js +5 -0
  103. package/dist/cjs/third-party/setting/EcoboostifyShoppableReelUgc.js +142 -0
  104. package/dist/cjs/third-party/setting/RechargeSubscriptions.js +5 -2
  105. package/dist/cjs/third-party/setting/index.js +3 -1
  106. package/dist/esm/accordion/components/common/index.js +2 -2
  107. package/dist/esm/article/components/ArticleAuthor.js +1 -1
  108. package/dist/esm/article/components/ArticleTitle.js +3 -1
  109. package/dist/esm/article/components/ArticleTitle.liquid.js +5 -2
  110. package/dist/esm/article/setting/ArticleList.js +0 -30
  111. package/dist/esm/article/setting/configs/ArticleAuthor/presets.js +0 -9
  112. package/dist/esm/article/setting/configs/ArticleAuthor/settings.js +9 -5
  113. package/dist/esm/article/setting/configs/ArticleAuthor/uiV2.js +16 -0
  114. package/dist/esm/article/setting/configs/ArticleCategory/presets.js +0 -9
  115. package/dist/esm/article/setting/configs/ArticleCategory/settings.js +9 -5
  116. package/dist/esm/article/setting/configs/ArticleDate/presets.js +0 -9
  117. package/dist/esm/article/setting/configs/ArticleDate/settings.js +9 -5
  118. package/dist/esm/article/setting/configs/ArticleImage/settings.js +22 -1
  119. package/dist/esm/article/setting/configs/ArticleTitle/settings.js +36 -7
  120. package/dist/esm/article/setting/configs/ArticleTitle/uiV2.js +47 -2
  121. package/dist/esm/builder.js +6 -2
  122. package/dist/esm/button/components/Button.js +1 -1
  123. package/dist/esm/button/components/Button.liquid.js +1 -1
  124. package/dist/esm/button/components/ButtonIcon.liquid.js +3 -1
  125. package/dist/esm/button/components/ButtonLabel.liquid.js +3 -1
  126. package/dist/esm/button/components/common/attributes.js +2 -2
  127. package/dist/esm/button/components/common/classes.js +3 -2
  128. package/dist/esm/button/components/common/styles.js +10 -12
  129. package/dist/esm/button/setting/configs/settings.js +7 -8
  130. package/dist/esm/button/setting/configs/uiV2.js +4 -50
  131. package/dist/esm/dialog/components/Dialog.js +110 -395
  132. package/dist/esm/dialog/components/Dialog.liquid.js +130 -154
  133. package/dist/esm/dialog/components/common/common.js +117 -0
  134. package/dist/esm/dialog/components/common/getAttr.js +22 -0
  135. package/dist/esm/dialog/components/common/getClasses.js +79 -0
  136. package/dist/esm/dialog/components/common/getStyle.js +98 -0
  137. package/dist/esm/dialog/components/hooks/useDialog.js +231 -0
  138. package/dist/esm/dialog/setting/configs/settings.js +1 -1
  139. package/dist/esm/dialog/setting/configs/uiV2.js +35 -25
  140. package/dist/esm/form/components/form-checkbox/FormCheckbox.js +0 -4
  141. package/dist/esm/form/components/textinput/TextInput.js +54 -0
  142. package/dist/esm/form/components/textinput/TextInput.liquid.js +56 -0
  143. package/dist/esm/form/components/textinput/common/composeClasses.js +29 -0
  144. package/dist/esm/form/components/textinput/common/composeStyles.js +67 -0
  145. package/dist/esm/form/next.js +5 -1
  146. package/dist/esm/form/setting/index.js +3 -1
  147. package/dist/esm/form/setting/newsletter/configs/settings.js +4 -2
  148. package/dist/esm/form/setting/newsletter/configs/uiV2.js +2 -0
  149. package/dist/esm/form/setting/text-input/TextInput.js +49 -0
  150. package/dist/esm/form/setting/text-input/configs/settings.js +305 -0
  151. package/dist/esm/form/setting/text-input/configs/uiV1.js +104 -0
  152. package/dist/esm/form/setting/text-input/configs/uiV2.js +301 -0
  153. package/dist/esm/grid/row/setting/configs/settings.js +6 -3
  154. package/dist/esm/helpers.js +8 -1
  155. package/dist/esm/icon-list/common/attrs.js +8 -0
  156. package/dist/esm/icon-list/common/classes.js +6 -0
  157. package/dist/esm/icon-list/common/styles.js +25 -0
  158. package/dist/esm/icon-list/components/IconList.js +21 -32
  159. package/dist/esm/icon-list/components/IconList.liquid.js +21 -24
  160. package/dist/esm/icon-list/components/IconListItem.js +13 -7
  161. package/dist/esm/icon-list/components/IconListItem.liquid.js +14 -8
  162. package/dist/esm/icon-list-hoz/components/IconListHoz.js +38 -26
  163. package/dist/esm/icon-list-hoz/components/IconListHoz.liquid.js +32 -26
  164. package/dist/esm/icon-list-hoz/components/IconListHozItem.js +12 -6
  165. package/dist/esm/icon-list-hoz/components/IconListIHozItem.liquid.js +22 -0
  166. package/dist/esm/icon-list-hoz/components/common/getAttr.js +7 -0
  167. package/dist/esm/icon-list-hoz/components/common/getClasses.js +21 -0
  168. package/dist/esm/icon-list-hoz/components/common/getStyle.js +27 -0
  169. package/dist/esm/image/components/AdaptiveImage.js +2 -2
  170. package/dist/esm/image/components/AdaptiveImage.liquid.js +4 -4
  171. package/dist/esm/image/components/Image.js +2 -6
  172. package/dist/esm/image/components/common/styles.js +2 -2
  173. package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +6 -24
  174. package/dist/esm/image/components/helpers/getNextImageReactAttrs.js +3 -3
  175. package/dist/esm/index.js +4 -2
  176. package/dist/esm/index.liquid.js +4 -2
  177. package/dist/esm/line/common/classes.js +59 -0
  178. package/dist/esm/line/common/index.js +14 -0
  179. package/dist/esm/line/common/styles.js +114 -0
  180. package/dist/esm/line/components/Divider.js +22 -0
  181. package/dist/esm/line/components/Divider.liquid.js +18 -0
  182. package/dist/esm/line/components/Line.js +94 -0
  183. package/dist/esm/line/components/Line.liquid.js +82 -0
  184. package/dist/esm/line/next.js +1 -1
  185. package/dist/esm/post-purchase/line/setting/configs/uiV2.js +1 -1
  186. package/dist/esm/post-purchase/link/setting/configs/settings.js +2 -1
  187. package/dist/esm/post-purchase/link/setting/configs/uiV2.js +1 -1
  188. package/dist/esm/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
  189. package/dist/esm/product/components/FileUpload/components/config/setting.js +24 -26
  190. package/dist/esm/product/components/FileUpload/components/config/uiV2.js +12 -179
  191. package/dist/esm/product/components/ProductList.js +1 -1
  192. package/dist/esm/product/components/ProductVariants/index.js +2 -2
  193. package/dist/esm/product/components/ProductVariants/index.liquid.js +2 -2
  194. package/dist/esm/product/components/ProductVariants/variants/Dropdown.js +8 -3
  195. package/dist/esm/product/components/ProductVariants/variants/Dropdown.liquid.js +7 -2
  196. package/dist/esm/product/setting/ProductVariants.js +8 -1374
  197. package/dist/esm/product/setting/product/configs/uiV2.js +2 -2
  198. package/dist/esm/product/setting/product-list/configs/uiV2.js +0 -3
  199. package/dist/esm/product/setting/product-variant/configs/presets.js +166 -0
  200. package/dist/esm/product/setting/product-variant/configs/settings.js +730 -0
  201. package/dist/esm/product/setting/product-variant/configs/uiV1.js +507 -0
  202. package/dist/esm/product/setting/product-variant/configs/uiV2.js +345 -0
  203. package/dist/esm/third-party/components/EcoboostifyShoppableReelUgc.js +29 -0
  204. package/dist/esm/third-party/components/EcoboostifyShoppableReelUgc.liquid.js +8 -0
  205. package/dist/esm/third-party/components/RechargeSubscriptions.liquid.js +1 -1
  206. package/dist/esm/third-party/configs/EcoboostifyShoppableReelUgc.js +8 -0
  207. package/dist/esm/third-party/next.js +5 -0
  208. package/dist/esm/third-party/setting/EcoboostifyShoppableReelUgc.js +138 -0
  209. package/dist/esm/third-party/setting/RechargeSubscriptions.js +5 -2
  210. package/dist/esm/third-party/setting/index.js +3 -1
  211. package/dist/types/index.d.ts +184 -166
  212. package/package.json +2 -2
  213. package/dist/cjs/dialog/helpers/common.js +0 -55
  214. package/dist/cjs/icon-list-hoz/components/IconListItemHoz.liquid.js +0 -23
  215. package/dist/cjs/line/Divider.js +0 -35
  216. package/dist/cjs/line/Divider.liquid.js +0 -35
  217. package/dist/cjs/line/Line.js +0 -167
  218. package/dist/cjs/line/Line.liquid.js +0 -163
  219. package/dist/esm/dialog/helpers/common.js +0 -47
  220. package/dist/esm/icon-list-hoz/components/IconListItemHoz.liquid.js +0 -19
  221. package/dist/esm/line/Divider.js +0 -31
  222. package/dist/esm/line/Divider.liquid.js +0 -31
  223. package/dist/esm/line/Line.js +0 -163
  224. package/dist/esm/line/Line.liquid.js +0 -159
  225. /package/dist/cjs/dialog/{hooks/use-scroll-percentage.js → components/hooks/useScrollPercentage.js} +0 -0
  226. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/color.js +0 -0
  227. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/dropdown.js +0 -0
  228. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image-shopify.js +0 -0
  229. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image.js +0 -0
  230. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/rectangle-list.js +0 -0
  231. /package/dist/esm/dialog/{hooks/use-scroll-percentage.js → components/hooks/useScrollPercentage.js} +0 -0
  232. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/color.js +0 -0
  233. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/dropdown.js +0 -0
  234. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image-shopify.js +0 -0
  235. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image.js +0 -0
  236. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/rectangle-list.js +0 -0
@@ -81,12 +81,15 @@ const SettingUIV2 = [
81
81
  {
82
82
  controls: [
83
83
  {
84
- type: 'control',
85
84
  label: {
86
85
  en: 'Icon'
87
86
  },
88
87
  setting: {
89
88
  id: 'iconVisible'
89
+ },
90
+ options: {
91
+ labelVariant: 'primary',
92
+ toggleStyle: 'switch'
90
93
  }
91
94
  },
92
95
  {
@@ -308,164 +311,6 @@ const SettingUIV2 = [
308
311
  }
309
312
  ]
310
313
  },
311
- // {
312
- // label: {
313
- // en: 'States',
314
- // },
315
- // controls: [
316
- // {
317
- // type: 'tab',
318
- // controls: [
319
- // {
320
- // type: 'toggleGroup',
321
- // label: {
322
- // en: 'Normal',
323
- // },
324
- // controls: [
325
- // {
326
- // type: 'control',
327
- // label: {
328
- // en: 'Background color',
329
- // },
330
- // setting: {
331
- // id: 'backgroundColor',
332
- // state: 'normal',
333
- // },
334
- // },
335
- // {
336
- // type: 'control',
337
- // label: {
338
- // en: 'Text color',
339
- // },
340
- // setting: {
341
- // id: 'textColor',
342
- // state: 'normal',
343
- // },
344
- // },
345
- // {
346
- // type: 'control',
347
- // // options: {
348
- // // labelPosition: 'start',
349
- // // },
350
- // label: {
351
- // en: 'Border',
352
- // },
353
- // setting: {
354
- // id: 'borderBtn',
355
- // state: 'normal',
356
- // },
357
- // },
358
- // {
359
- // type: 'control',
360
- // label: {
361
- // en: 'Corner',
362
- // },
363
- // setting: {
364
- // id: 'roundedBtn',
365
- // state: 'normal',
366
- // },
367
- // },
368
- // {
369
- // type: 'control',
370
- // label: {
371
- // en: 'Shadow',
372
- // },
373
- // setting: {
374
- // id: 'hasBoxShadowBtn',
375
- // state: 'normal',
376
- // },
377
- // },
378
- // {
379
- // type: 'control',
380
- // label: {
381
- // en: '',
382
- // },
383
- // conditionDisplay: 'hasBoxShadowBtn.normal == true',
384
- // layout: 'vertical',
385
- // setting: {
386
- // id: 'boxShadowBtn',
387
- // state: 'normal',
388
- // },
389
- // },
390
- // ],
391
- // },
392
- // {
393
- // type: 'toggleGroup',
394
- // label: {
395
- // en: 'Hover',
396
- // },
397
- // controls: [
398
- // {
399
- // type: 'control',
400
- // label: {
401
- // en: 'Background color',
402
- // },
403
- // setting: {
404
- // id: 'backgroundColor',
405
- // state: 'hover',
406
- // },
407
- // },
408
- // {
409
- // type: 'control',
410
- // label: {
411
- // en: 'Text color',
412
- // },
413
- // setting: {
414
- // id: 'textColor',
415
- // state: 'hover',
416
- // },
417
- // },
418
- // {
419
- // type: 'control',
420
- // // options: {
421
- // // labelPosition: 'start',
422
- // // },
423
- // label: {
424
- // en: 'Border',
425
- // },
426
- // setting: {
427
- // id: 'borderBtn',
428
- // state: 'hover',
429
- // },
430
- // },
431
- // {
432
- // type: 'control',
433
- // label: {
434
- // en: 'Corner',
435
- // },
436
- // setting: {
437
- // id: 'roundedBtn',
438
- // state: 'hover',
439
- // },
440
- // },
441
- // {
442
- // type: 'control',
443
- // label: {
444
- // en: 'Shadow',
445
- // },
446
- // setting: {
447
- // id: 'hasBoxShadowBtn',
448
- // state: 'hover',
449
- // },
450
- // },
451
- // {
452
- // type: 'control',
453
- // label: {
454
- // en: '',
455
- // },
456
- // layout: 'vertical',
457
- // conditionDisplay: 'hasBoxShadowBtn.hover == true',
458
- // setting: {
459
- // id: 'boxShadowBtn',
460
- // state: 'hover',
461
- // },
462
- // },
463
- // ],
464
- // },
465
- // ],
466
- // },
467
- // ],
468
- // },
469
314
  {
470
315
  label: {
471
316
  en: 'Text style'
@@ -573,7 +418,7 @@ const SettingUIV2 = [
573
418
  en: 'Corner'
574
419
  },
575
420
  setting: {
576
- id: 'roundedBtnV2',
421
+ id: 'roundedBtn',
577
422
  state: 'hover'
578
423
  }
579
424
  },
@@ -582,7 +427,7 @@ const SettingUIV2 = [
582
427
  en: 'Shadow'
583
428
  },
584
429
  setting: {
585
- id: 'boxShadowBtnV2',
430
+ id: 'boxShadowBtn',
586
431
  state: 'hover'
587
432
  },
588
433
  controlConfig: {
@@ -608,32 +453,20 @@ const SettingUIV2 = [
608
453
  }
609
454
  ]
610
455
  },
611
- // {
612
- // controls: [
613
- // {
614
- // label: {
615
- // en: 'Text align',
616
- // },
617
- // type: 'control',
618
- // setting: {
619
- // id: 'textAlign',
620
- // },
621
- // options: {
622
- // fullWidth: true,
623
- // },
624
- // },
625
- // ],
626
- // },
627
456
  {
628
- conditionDisplay: `size.width !== '100%'`,
629
457
  controls: [
630
458
  {
631
459
  label: {
632
460
  en: 'Align'
633
461
  },
634
- type: 'control',
462
+ conditionEnable: `size.width !== '100%'`,
635
463
  setting: {
636
464
  id: 'align'
465
+ },
466
+ options: {
467
+ labelVariant: 'primary',
468
+ fullWidth: true,
469
+ disableMessage: 'Horizontal alignment is disabled when the width is set to 100% or greater'
637
470
  }
638
471
  }
639
472
  ]
@@ -16,7 +16,7 @@ var dots = require('../../carousel/components/common/dots.js');
16
16
  var carousel = require('../../carousel/components/common/carousel.js');
17
17
  var product = require('../helpers/product.js');
18
18
  var SalePageProductListWarning = require('./SalePageProductListWarning.js');
19
- var common = require('../../dialog/helpers/common.js');
19
+ var common = require('../../dialog/components/common/common.js');
20
20
  var Head = require('next/head');
21
21
  var helpers = require('../../grid/row/commons/helpers.js');
22
22
 
@@ -26,7 +26,7 @@ const DEVICES = [
26
26
  const VARIANT_PARAM_PATH = 'variant';
27
27
  let isMounted = false;
28
28
  const ProductVariants = ({ builderProps, style, styles, setting })=>{
29
- const { fullWidth, width, align, optionTypo, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, labelGap } = styles ?? {};
29
+ const { width, align, optionTypo, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, labelGap } = styles ?? {};
30
30
  const { label, optionType, showAsSwatches, layout, column, hasPreSelected } = setting ?? {};
31
31
  const { uid } = builderProps ?? {};
32
32
  const variants = core.useVariants();
@@ -42,7 +42,7 @@ const ProductVariants = ({ builderProps, style, styles, setting })=>{
42
42
  const mode = core.useEditorMode();
43
43
  const { selectedOptions, setSelectedOption, forceSelectedOption } = core.useSelectedOption();
44
44
  const { setHasPreSelected } = core.useHasPreSelected();
45
- const variantsWidth = core.makeStyleResponsive('w', core.makeWidth(width, fullWidth));
45
+ const variantsWidth = core.makeStyleResponsive('w', core.makeWidth(width));
46
46
  const [variantId, setVariantId] = React.useState('');
47
47
  React.useEffect(()=>{
48
48
  const url = new URL(window.location.href);
@@ -18,12 +18,12 @@ const DEVICES = [
18
18
  'mobile'
19
19
  ];
20
20
  const ProductVariants = ({ builderProps, style, styles, setting, advanced })=>{
21
- const { width, fullWidth, align, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, optionTypo, labelGap } = styles ?? {};
21
+ const { width, align, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, optionTypo, labelGap } = styles ?? {};
22
22
  const { label, optionType, showAsSwatches, layout, column, hasPreSelected } = setting ?? {};
23
23
  const advancedDisplay = advanced?.d;
24
24
  const { uid } = builderProps ?? {};
25
25
  // full width
26
- const variantsWidth = core.makeStyleResponsive('w', core.makeWidth(width, fullWidth));
26
+ const variantsWidth = core.makeStyleResponsive('w', core.makeWidth(width));
27
27
  const variantGroup = optionType === 'groupOption';
28
28
  const getSwatchAutoWidth = ()=>{
29
29
  const result = {};
@@ -10,7 +10,8 @@ var index = require('./VariantOption/index.js');
10
10
  var DropdownOption = require('./DropdownOption.js');
11
11
  var React = require('react');
12
12
 
13
- const DropdownVariant = ({ option, optionPosition, optionNumber, variantGroup, variants, price, blankText, swatchHeight, optionTypography, optionBgColor, optionTextColor, optionRounded, optionShadow, optionHasShadow, optionBorder, optionTransform, initValue, hasPreSelected, optionTypo, presetConfiguration, combineHeight, combineWidth, soldOutStyle })=>{
13
+ const DropdownVariant = ({ option, optionPosition, optionNumber, variantGroup, variants, price, blankText, swatchHeight, optionTypography, optionBgColor, optionTextColor, optionRounded, optionShadow, // optionHasShadow,
14
+ optionBorder, optionTransform, initValue, hasPreSelected, optionTypo, presetConfiguration, combineHeight, combineWidth, soldOutStyle })=>{
14
15
  const { setSelectedOption, forceSelectedOption, selectedOptions } = core.useSelectedOption();
15
16
  const product$1 = core.useProduct();
16
17
  const isSoldOutMark = React.useMemo(()=>{
@@ -29,7 +30,7 @@ const DropdownVariant = ({ option, optionPosition, optionNumber, variantGroup, v
29
30
  optionBgColor = preset?.optionBgColor;
30
31
  optionTextColor = preset?.optionTextColor;
31
32
  optionBorder = preset?.optionBorder;
32
- optionHasShadow = preset?.optionHasShadow;
33
+ // optionHasShadow = preset?.optionHasShadow;
33
34
  optionShadow = preset?.optionShadow;
34
35
  optionRounded = preset?.optionRounded;
35
36
  }
@@ -104,7 +105,11 @@ const DropdownVariant = ({ option, optionPosition, optionNumber, variantGroup, v
104
105
  value: value ?? initValue,
105
106
  style: {
106
107
  ...composeWidthResponsive,
107
- ...core.getStyleShadowState(optionShadow, 'box-shadow', optionHasShadow),
108
+ ...core.getStyleShadowState(optionShadow, 'box-shadow', {
109
+ normal: optionShadow?.normal?.type !== 'none',
110
+ hover: optionShadow?.hover?.type !== 'none',
111
+ active: optionShadow?.active?.type !== 'none'
112
+ }),
108
113
  ...getCustomCSSActiveState(),
109
114
  ...core.makeStyle({
110
115
  tt: optionTransform
@@ -5,7 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var core = require('@gem-sdk/core');
6
6
  var helpers = require('../../../../helpers.js');
7
7
 
8
- const DropdownVariant = ({ variantGroup, blankText, swatchAutoWidth, swatchHeight, optionTypography, optionBgColor, optionTextColor, optionRounded, optionShadow, optionHasShadow, optionBorder, optionTransform, fixedDropdownWidth, hasPreSelected, optionTypo, soldOutStyle })=>{
8
+ const DropdownVariant = ({ variantGroup, blankText, swatchAutoWidth, swatchHeight, optionTypography, optionBgColor, optionTextColor, optionRounded, optionShadow, // optionHasShadow,
9
+ optionBorder, optionTransform, fixedDropdownWidth, hasPreSelected, optionTypo, soldOutStyle })=>{
9
10
  const swatchWidthResponsive = core.makeStyleResponsive('w', core.makeWidth(fixedDropdownWidth, swatchAutoWidth));
10
11
  const isSoldOutMark = soldOutStyle === 'disable';
11
12
  const getCustomCSSActiveState = ()=>{
@@ -39,7 +40,11 @@ const DropdownVariant = ({ variantGroup, blankText, swatchAutoWidth, swatchHeigh
39
40
  class="${core.cls('gp-truncate gp-bg-auto gp-pl-4 gp-pr-6 gp-outline-none dropdown-option-item', core.handleConvertClassColor(optionBorder), appendTypoClass, core.getGlobalColorStateClass('text', optionTextColor), core.getGlobalColorStateClass('bg', optionBgColor), 'gp-outline-none', 'gp-shadow-none')}"
40
41
 
41
42
  style="${{
42
- ...core.getStyleShadowState(optionShadow, 'box-shadow', optionHasShadow),
43
+ ...core.getStyleShadowState(optionShadow, 'box-shadow', {
44
+ normal: optionShadow?.normal?.type !== 'none',
45
+ hover: optionShadow?.hover?.type !== 'none',
46
+ active: optionShadow?.active?.type !== 'none'
47
+ }),
43
48
  ...getCustomCSSActiveState(),
44
49
  ...core.makeStyle({
45
50
  tt: optionTransform