@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
@@ -79,12 +79,15 @@ const SettingUIV2 = [
79
79
  {
80
80
  controls: [
81
81
  {
82
- type: 'control',
83
82
  label: {
84
83
  en: 'Icon'
85
84
  },
86
85
  setting: {
87
86
  id: 'iconVisible'
87
+ },
88
+ options: {
89
+ labelVariant: 'primary',
90
+ toggleStyle: 'switch'
88
91
  }
89
92
  },
90
93
  {
@@ -306,164 +309,6 @@ const SettingUIV2 = [
306
309
  }
307
310
  ]
308
311
  },
309
- // {
310
- // label: {
311
- // en: 'States',
312
- // },
313
- // controls: [
314
- // {
315
- // type: 'tab',
316
- // controls: [
317
- // {
318
- // type: 'toggleGroup',
319
- // label: {
320
- // en: 'Normal',
321
- // },
322
- // controls: [
323
- // {
324
- // type: 'control',
325
- // label: {
326
- // en: 'Background color',
327
- // },
328
- // setting: {
329
- // id: 'backgroundColor',
330
- // state: 'normal',
331
- // },
332
- // },
333
- // {
334
- // type: 'control',
335
- // label: {
336
- // en: 'Text color',
337
- // },
338
- // setting: {
339
- // id: 'textColor',
340
- // state: 'normal',
341
- // },
342
- // },
343
- // {
344
- // type: 'control',
345
- // // options: {
346
- // // labelPosition: 'start',
347
- // // },
348
- // label: {
349
- // en: 'Border',
350
- // },
351
- // setting: {
352
- // id: 'borderBtn',
353
- // state: 'normal',
354
- // },
355
- // },
356
- // {
357
- // type: 'control',
358
- // label: {
359
- // en: 'Corner',
360
- // },
361
- // setting: {
362
- // id: 'roundedBtn',
363
- // state: 'normal',
364
- // },
365
- // },
366
- // {
367
- // type: 'control',
368
- // label: {
369
- // en: 'Shadow',
370
- // },
371
- // setting: {
372
- // id: 'hasBoxShadowBtn',
373
- // state: 'normal',
374
- // },
375
- // },
376
- // {
377
- // type: 'control',
378
- // label: {
379
- // en: '',
380
- // },
381
- // conditionDisplay: 'hasBoxShadowBtn.normal == true',
382
- // layout: 'vertical',
383
- // setting: {
384
- // id: 'boxShadowBtn',
385
- // state: 'normal',
386
- // },
387
- // },
388
- // ],
389
- // },
390
- // {
391
- // type: 'toggleGroup',
392
- // label: {
393
- // en: 'Hover',
394
- // },
395
- // controls: [
396
- // {
397
- // type: 'control',
398
- // label: {
399
- // en: 'Background color',
400
- // },
401
- // setting: {
402
- // id: 'backgroundColor',
403
- // state: 'hover',
404
- // },
405
- // },
406
- // {
407
- // type: 'control',
408
- // label: {
409
- // en: 'Text color',
410
- // },
411
- // setting: {
412
- // id: 'textColor',
413
- // state: 'hover',
414
- // },
415
- // },
416
- // {
417
- // type: 'control',
418
- // // options: {
419
- // // labelPosition: 'start',
420
- // // },
421
- // label: {
422
- // en: 'Border',
423
- // },
424
- // setting: {
425
- // id: 'borderBtn',
426
- // state: 'hover',
427
- // },
428
- // },
429
- // {
430
- // type: 'control',
431
- // label: {
432
- // en: 'Corner',
433
- // },
434
- // setting: {
435
- // id: 'roundedBtn',
436
- // state: 'hover',
437
- // },
438
- // },
439
- // {
440
- // type: 'control',
441
- // label: {
442
- // en: 'Shadow',
443
- // },
444
- // setting: {
445
- // id: 'hasBoxShadowBtn',
446
- // state: 'hover',
447
- // },
448
- // },
449
- // {
450
- // type: 'control',
451
- // label: {
452
- // en: '',
453
- // },
454
- // layout: 'vertical',
455
- // conditionDisplay: 'hasBoxShadowBtn.hover == true',
456
- // setting: {
457
- // id: 'boxShadowBtn',
458
- // state: 'hover',
459
- // },
460
- // },
461
- // ],
462
- // },
463
- // ],
464
- // },
465
- // ],
466
- // },
467
312
  {
468
313
  label: {
469
314
  en: 'Text style'
@@ -571,7 +416,7 @@ const SettingUIV2 = [
571
416
  en: 'Corner'
572
417
  },
573
418
  setting: {
574
- id: 'roundedBtnV2',
419
+ id: 'roundedBtn',
575
420
  state: 'hover'
576
421
  }
577
422
  },
@@ -580,7 +425,7 @@ const SettingUIV2 = [
580
425
  en: 'Shadow'
581
426
  },
582
427
  setting: {
583
- id: 'boxShadowBtnV2',
428
+ id: 'boxShadowBtn',
584
429
  state: 'hover'
585
430
  },
586
431
  controlConfig: {
@@ -606,32 +451,20 @@ const SettingUIV2 = [
606
451
  }
607
452
  ]
608
453
  },
609
- // {
610
- // controls: [
611
- // {
612
- // label: {
613
- // en: 'Text align',
614
- // },
615
- // type: 'control',
616
- // setting: {
617
- // id: 'textAlign',
618
- // },
619
- // options: {
620
- // fullWidth: true,
621
- // },
622
- // },
623
- // ],
624
- // },
625
454
  {
626
- conditionDisplay: `size.width !== '100%'`,
627
455
  controls: [
628
456
  {
629
457
  label: {
630
458
  en: 'Align'
631
459
  },
632
- type: 'control',
460
+ conditionEnable: `size.width !== '100%'`,
633
461
  setting: {
634
462
  id: 'align'
463
+ },
464
+ options: {
465
+ labelVariant: 'primary',
466
+ fullWidth: true,
467
+ disableMessage: 'Horizontal alignment is disabled when the width is set to 100% or greater'
635
468
  }
636
469
  }
637
470
  ]
@@ -12,7 +12,7 @@ import { getUpdatedDotStyle } from '../../carousel/components/common/dots.js';
12
12
  import { getInitialWidthForCarouselItem } from '../../carousel/components/common/carousel.js';
13
13
  import { getSizeSetting } from '../helpers/product.js';
14
14
  import SalePageProductListWarning from './SalePageProductListWarning.js';
15
- import { getPropertyByDevice } from '../../dialog/helpers/common.js';
15
+ import { getPropertyByDevice } from '../../dialog/components/common/common.js';
16
16
  import Head from 'next/head';
17
17
  import { createStyleObject } from '../../grid/row/commons/helpers.js';
18
18
 
@@ -22,7 +22,7 @@ const DEVICES = [
22
22
  const VARIANT_PARAM_PATH = 'variant';
23
23
  let isMounted = false;
24
24
  const ProductVariants = ({ builderProps, style, styles, setting })=>{
25
- const { fullWidth, width, align, optionTypo, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, labelGap } = styles ?? {};
25
+ const { width, align, optionTypo, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, labelGap } = styles ?? {};
26
26
  const { label, optionType, showAsSwatches, layout, column, hasPreSelected } = setting ?? {};
27
27
  const { uid } = builderProps ?? {};
28
28
  const variants = useVariants();
@@ -38,7 +38,7 @@ const ProductVariants = ({ builderProps, style, styles, setting })=>{
38
38
  const mode = useEditorMode();
39
39
  const { selectedOptions, setSelectedOption, forceSelectedOption } = useSelectedOption();
40
40
  const { setHasPreSelected } = useHasPreSelected();
41
- const variantsWidth = makeStyleResponsive('w', makeWidth(width, fullWidth));
41
+ const variantsWidth = makeStyleResponsive('w', makeWidth(width));
42
42
  const [variantId, setVariantId] = useState('');
43
43
  useEffect(()=>{
44
44
  const url = new URL(window.location.href);
@@ -14,12 +14,12 @@ const DEVICES = [
14
14
  'mobile'
15
15
  ];
16
16
  const ProductVariants = ({ builderProps, style, styles, setting, advanced })=>{
17
- const { width, fullWidth, align, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, optionTypo, labelGap } = styles ?? {};
17
+ const { width, align, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, optionTypo, labelGap } = styles ?? {};
18
18
  const { label, optionType, showAsSwatches, layout, column, hasPreSelected } = setting ?? {};
19
19
  const advancedDisplay = advanced?.d;
20
20
  const { uid } = builderProps ?? {};
21
21
  // full width
22
- const variantsWidth = makeStyleResponsive('w', makeWidth(width, fullWidth));
22
+ const variantsWidth = makeStyleResponsive('w', makeWidth(width));
23
23
  const variantGroup = optionType === 'groupOption';
24
24
  const getSwatchAutoWidth = ()=>{
25
25
  const result = {};
@@ -6,7 +6,8 @@ import VariantOption from './VariantOption/index.js';
6
6
  import DropdownVariantOption from './DropdownOption.js';
7
7
  import { useMemo, useState, useEffect } from 'react';
8
8
 
9
- 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 })=>{
9
+ const DropdownVariant = ({ option, optionPosition, optionNumber, variantGroup, variants, price, blankText, swatchHeight, optionTypography, optionBgColor, optionTextColor, optionRounded, optionShadow, // optionHasShadow,
10
+ optionBorder, optionTransform, initValue, hasPreSelected, optionTypo, presetConfiguration, combineHeight, combineWidth, soldOutStyle })=>{
10
11
  const { setSelectedOption, forceSelectedOption, selectedOptions } = useSelectedOption();
11
12
  const product = useProduct();
12
13
  const isSoldOutMark = useMemo(()=>{
@@ -25,7 +26,7 @@ const DropdownVariant = ({ option, optionPosition, optionNumber, variantGroup, v
25
26
  optionBgColor = preset?.optionBgColor;
26
27
  optionTextColor = preset?.optionTextColor;
27
28
  optionBorder = preset?.optionBorder;
28
- optionHasShadow = preset?.optionHasShadow;
29
+ // optionHasShadow = preset?.optionHasShadow;
29
30
  optionShadow = preset?.optionShadow;
30
31
  optionRounded = preset?.optionRounded;
31
32
  }
@@ -100,7 +101,11 @@ const DropdownVariant = ({ option, optionPosition, optionNumber, variantGroup, v
100
101
  value: value ?? initValue,
101
102
  style: {
102
103
  ...composeWidthResponsive,
103
- ...getStyleShadowState(optionShadow, 'box-shadow', optionHasShadow),
104
+ ...getStyleShadowState(optionShadow, 'box-shadow', {
105
+ normal: optionShadow?.normal?.type !== 'none',
106
+ hover: optionShadow?.hover?.type !== 'none',
107
+ active: optionShadow?.active?.type !== 'none'
108
+ }),
104
109
  ...getCustomCSSActiveState(),
105
110
  ...makeStyle({
106
111
  tt: optionTransform
@@ -1,7 +1,8 @@
1
1
  import { makeStyleResponsive, makeWidth, composeTypographyClassName, composeTypographyStyle, template, cls, handleConvertClassColor, getGlobalColorStateClass, getStyleShadowState, makeStyle, getGlobalColorStateStyle, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertBorderColor, composeRadius, getSingleColorVariable } from '@gem-sdk/core';
2
2
  import { getStaticLocale } from '../../../../helpers.js';
3
3
 
4
- const DropdownVariant = ({ variantGroup, blankText, swatchAutoWidth, swatchHeight, optionTypography, optionBgColor, optionTextColor, optionRounded, optionShadow, optionHasShadow, optionBorder, optionTransform, fixedDropdownWidth, hasPreSelected, optionTypo, soldOutStyle })=>{
4
+ const DropdownVariant = ({ variantGroup, blankText, swatchAutoWidth, swatchHeight, optionTypography, optionBgColor, optionTextColor, optionRounded, optionShadow, // optionHasShadow,
5
+ optionBorder, optionTransform, fixedDropdownWidth, hasPreSelected, optionTypo, soldOutStyle })=>{
5
6
  const swatchWidthResponsive = makeStyleResponsive('w', makeWidth(fixedDropdownWidth, swatchAutoWidth));
6
7
  const isSoldOutMark = soldOutStyle === 'disable';
7
8
  const getCustomCSSActiveState = ()=>{
@@ -35,7 +36,11 @@ const DropdownVariant = ({ variantGroup, blankText, swatchAutoWidth, swatchHeigh
35
36
  class="${cls('gp-truncate gp-bg-auto gp-pl-4 gp-pr-6 gp-outline-none dropdown-option-item', handleConvertClassColor(optionBorder), appendTypoClass, getGlobalColorStateClass('text', optionTextColor), getGlobalColorStateClass('bg', optionBgColor), 'gp-outline-none', 'gp-shadow-none')}"
36
37
 
37
38
  style="${{
38
- ...getStyleShadowState(optionShadow, 'box-shadow', optionHasShadow),
39
+ ...getStyleShadowState(optionShadow, 'box-shadow', {
40
+ normal: optionShadow?.normal?.type !== 'none',
41
+ hover: optionShadow?.hover?.type !== 'none',
42
+ active: optionShadow?.active?.type !== 'none'
43
+ }),
39
44
  ...getCustomCSSActiveState(),
40
45
  ...makeStyle({
41
46
  tt: optionTransform