@gem-sdk/components 2.0.0-dev.278 → 2.0.0-dev.288

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 (300) hide show
  1. package/dist/cjs/accordion/components/Accordion.js +60 -179
  2. package/dist/cjs/accordion/components/Accordion.liquid.js +77 -101
  3. package/dist/cjs/accordion/components/AccordionItem.js +126 -280
  4. package/dist/cjs/accordion/components/AccordionItem.liquid.js +77 -215
  5. package/dist/cjs/accordion/components/common/classes.js +55 -0
  6. package/dist/cjs/accordion/components/common/index.js +146 -0
  7. package/dist/cjs/accordion/components/common/styles.js +131 -0
  8. package/dist/cjs/accordion/hooks/useAccordion.js +145 -0
  9. package/dist/cjs/accordion/hooks/useAccordionItem.js +119 -0
  10. package/dist/cjs/article/components/ArticleImage.js +0 -1
  11. package/dist/cjs/article/components/ArticlePagination.js +1 -1
  12. package/dist/cjs/article/components/ArticlePagination.liquid.js +3 -3
  13. package/dist/cjs/article/setting/configs/ArticleImage/settings.js +5 -5
  14. package/dist/cjs/banner/components/HeroBannerItem.js +0 -6
  15. package/dist/cjs/banner/components/HeroBannerItem.liquid.js +3 -0
  16. package/dist/cjs/banner/setting/setting.js +28 -3
  17. package/dist/cjs/banner/setting/uiV2.js +10 -97
  18. package/dist/cjs/builder.js +18 -20
  19. package/dist/cjs/cart/components/CartLineImage.js +0 -2
  20. package/dist/cjs/code/common/classes.js +11 -0
  21. package/dist/cjs/code/common/styles.js +15 -0
  22. package/dist/cjs/code/components/CSSCode.js +9 -99
  23. package/dist/cjs/code/components/CSSCode.liquid.js +11 -11
  24. package/dist/cjs/code/hooks/useCSSCode.js +102 -0
  25. package/dist/cjs/code/setting/CSSCode.js +7 -121
  26. package/dist/cjs/code/setting/config/setting.js +77 -0
  27. package/dist/cjs/code/setting/config/uiV1.js +52 -0
  28. package/dist/cjs/code/setting/config/uiV2.js +58 -0
  29. package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +4 -1
  30. package/dist/cjs/form/components/contact/Contact.js +6 -2
  31. package/dist/cjs/form/components/contact/common/composeStyles.js +21 -0
  32. package/dist/cjs/form/components/form-checkbox/FormCheckbox.js +6 -4
  33. package/dist/cjs/form/components/form-checkbox/FormCheckbox.liquid.js +2 -4
  34. package/dist/cjs/form/components/form-checkbox/common/composeClasses.js +2 -2
  35. package/dist/cjs/form/components/form-checkbox/common/composeStyles.js +23 -10
  36. package/dist/cjs/form/components/form-dropdown/common/composeClasses.js +1 -1
  37. package/dist/cjs/form/components/form-email/FormEmail.js +18 -10
  38. package/dist/cjs/form/components/form-email/common/composeClasses.js +2 -1
  39. package/dist/cjs/form/components/newsletter/Newsletter.js +7 -2
  40. package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +1 -1
  41. package/dist/cjs/form/components/newsletter/common/composeStyles.js +4 -2
  42. package/dist/cjs/form/components/textarea/TextArea.js +16 -8
  43. package/dist/cjs/form/components/textarea/common/composeClasses.js +1 -1
  44. package/dist/cjs/form/components/textfield/TextField.js +17 -9
  45. package/dist/cjs/form/components/textfield/common/composeClasses.js +2 -2
  46. package/dist/cjs/form/setting/contact/Contact.js +5 -1
  47. package/dist/cjs/form/setting/form-checkbox/configs/settings.js +153 -6
  48. package/dist/cjs/form/setting/form-checkbox/configs/uiV2.js +137 -0
  49. package/dist/cjs/form/setting/form-dropdown/configs/settings.js +147 -0
  50. package/dist/cjs/form/setting/form-dropdown/configs/uiV2.js +156 -4
  51. package/dist/cjs/form/setting/newsletter/configs/settings.js +132 -3
  52. package/dist/cjs/form/setting/newsletter/configs/uiV2.js +93 -0
  53. package/dist/cjs/form/setting/submit-button/configs/settings.js +37 -0
  54. package/dist/cjs/form/setting/submit-button/configs/uiV2.js +13 -0
  55. package/dist/cjs/grid/row/commons/getInnerRadius.js +11 -10
  56. package/dist/cjs/grid/row/setting/configs/uiV2.js +1 -1
  57. package/dist/cjs/header/components/kind/basic/index.js +1 -0
  58. package/dist/cjs/header/components/kind/modern/index.js +1 -1
  59. package/dist/cjs/helpers.js +53 -0
  60. package/dist/cjs/icon-list/setting/configs/uiV2.js +1 -1
  61. package/dist/cjs/icon-list-v2/setting/configs/settings.js +5 -5
  62. package/dist/cjs/image/components/AdaptiveImage.js +63 -49
  63. package/dist/cjs/image/components/AdaptiveImage.liquid.js +56 -44
  64. package/dist/cjs/image/components/Image.js +65 -154
  65. package/dist/cjs/image/components/Image.liquid.js +68 -103
  66. package/dist/cjs/image/components/Modal3d.liquid.js +54 -21
  67. package/dist/cjs/image/components/NextImage.js +26 -59
  68. package/dist/cjs/image/components/NextImage.liquid.js +27 -115
  69. package/dist/cjs/image/components/Video.liquid.js +38 -13
  70. package/dist/cjs/image/components/common/attributes.js +115 -0
  71. package/dist/cjs/image/components/common/classes.js +57 -0
  72. package/dist/cjs/image/components/common/constants.js +15 -0
  73. package/dist/cjs/image/components/common/data.js +24 -0
  74. package/dist/cjs/image/components/common/helpers.js +75 -0
  75. package/dist/cjs/image/components/common/styles.js +88 -0
  76. package/dist/cjs/image/components/helpers/getNextImageLiquidAttrs.js +80 -0
  77. package/dist/cjs/image/components/helpers/getNextImageReactAttrs.js +40 -0
  78. package/dist/cjs/image/components/hooks/useCheckNoImage.js +25 -0
  79. package/dist/cjs/image/helpers/getSrcSet.js +0 -2
  80. package/dist/cjs/image/next.js +1 -5
  81. package/dist/cjs/image/setting/configs/settings.js +14 -8
  82. package/dist/cjs/image/setting/configs/uiV2.js +61 -15
  83. package/dist/cjs/image/setting/index.js +1 -3
  84. package/dist/cjs/image-comparison/components/CompareImage.js +1 -1
  85. package/dist/cjs/image-comparison/components/CompareImage.liquid.js +1 -1
  86. package/dist/cjs/index.js +91 -91
  87. package/dist/cjs/index.liquid.js +8 -8
  88. package/dist/cjs/post-purchase/callout-banner/components/CalloutText.js +2 -1
  89. package/dist/cjs/post-purchase/callout-banner/components/common/getClasses.js +5 -2
  90. package/dist/cjs/post-purchase/callout-banner/components/common/getStyles.js +2 -4
  91. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-box/setting.js +4 -10
  92. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +1 -11
  93. package/dist/cjs/post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js +9 -23
  94. package/dist/cjs/post-purchase/countdown-timer/components/TextCountdown.js +12 -26
  95. package/dist/cjs/post-purchase/countdown-timer/components/common/getClasses.js +24 -0
  96. package/dist/cjs/post-purchase/countdown-timer/components/common/getStyles.js +21 -0
  97. package/dist/cjs/post-purchase/countdown-timer/hooks/useCountdownTimer.js +18 -1
  98. package/dist/cjs/post-purchase/countdown-timer/hooks/useGetTimeExpired.js +18 -0
  99. package/dist/cjs/post-purchase/countdown-timer/settings/CountdownTimer.js +9 -358
  100. package/dist/cjs/post-purchase/countdown-timer/settings/config/preset.js +26 -0
  101. package/dist/cjs/post-purchase/countdown-timer/settings/config/setting.js +243 -0
  102. package/dist/cjs/post-purchase/countdown-timer/settings/config/uiV1.js +125 -0
  103. package/dist/cjs/post-purchase/countdown-timer/settings/config/uiV2.js +185 -0
  104. package/dist/cjs/post-purchase/image/common/getClasses.js +1 -1
  105. package/dist/cjs/post-purchase/image/setting/setting-v2.js +5 -5
  106. package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +24 -26
  107. package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +5 -5
  108. package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/settings.js +2 -2
  109. package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
  110. package/dist/cjs/product/components/FileUpload/components/common/index.js +3 -0
  111. package/dist/cjs/product/components/ProductBundle/common/classes.js +25 -0
  112. package/dist/cjs/product/components/ProductBundle/common/index.js +5 -0
  113. package/dist/cjs/product/components/ProductBundle/common/styles.js +89 -0
  114. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscount.js +82 -0
  115. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js +74 -0
  116. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +69 -0
  117. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +46 -0
  118. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountItem.js +23 -0
  119. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountItem.liquid.js +14 -0
  120. package/dist/cjs/product/components/{ProductBundleDiscount.js → ProductBundle/hooks/useProductBundleDataState.js} +20 -215
  121. package/dist/cjs/product/components/ProductBundle/hooks/useProductBundleDiscountState.js +56 -0
  122. package/dist/cjs/product/{setting → components/ProductBundle/setting}/ProductBundleDiscount.js +7 -7
  123. package/dist/cjs/product/{setting → components/ProductBundle/setting}/ProductBundleDiscountItem.js +3 -0
  124. package/dist/cjs/product/components/ProductButton.js +2 -2
  125. package/dist/cjs/product/components/ProductButton.liquid.js +2 -2
  126. package/dist/cjs/product/components/ProductPrice/common/getAttr.js +23 -0
  127. package/dist/cjs/product/components/ProductPrice/common/getClasses.js +19 -0
  128. package/dist/cjs/product/components/ProductPrice/common/getTextData.js +40 -0
  129. package/dist/cjs/product/components/ProductPrice/hooks/useGpPrice.js +126 -0
  130. package/dist/cjs/product/components/ProductPrice/index.js +54 -0
  131. package/dist/cjs/product/components/ProductPrice/index.liquid.js +43 -0
  132. package/dist/cjs/product/components/ProductQuickView/ProductQuickView.js +5 -5
  133. package/dist/cjs/product/next.js +3 -3
  134. package/dist/cjs/product/setting/index.js +2 -2
  135. package/dist/cjs/product/setting/product/configs/presets.js +1 -0
  136. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +6 -7
  137. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +11 -12
  138. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +6 -5
  139. package/dist/cjs/product/setting/product-list/configs/settingsV2.js +10 -8
  140. package/dist/cjs/setting.js +5 -2
  141. package/dist/esm/accordion/components/Accordion.js +61 -180
  142. package/dist/esm/accordion/components/Accordion.liquid.js +78 -102
  143. package/dist/esm/accordion/components/AccordionItem.js +129 -281
  144. package/dist/esm/accordion/components/AccordionItem.liquid.js +76 -214
  145. package/dist/esm/accordion/components/common/classes.js +44 -0
  146. package/dist/esm/accordion/components/common/index.js +136 -0
  147. package/dist/esm/accordion/components/common/styles.js +122 -0
  148. package/dist/esm/accordion/hooks/useAccordion.js +141 -0
  149. package/dist/esm/accordion/hooks/useAccordionItem.js +115 -0
  150. package/dist/esm/article/components/ArticleImage.js +0 -1
  151. package/dist/esm/article/components/ArticlePagination.js +1 -1
  152. package/dist/esm/article/components/ArticlePagination.liquid.js +3 -3
  153. package/dist/esm/article/setting/configs/ArticleImage/settings.js +5 -5
  154. package/dist/esm/banner/components/HeroBannerItem.js +0 -6
  155. package/dist/esm/banner/components/HeroBannerItem.liquid.js +3 -0
  156. package/dist/esm/banner/setting/setting.js +28 -3
  157. package/dist/esm/banner/setting/uiV2.js +10 -97
  158. package/dist/esm/builder.js +3 -5
  159. package/dist/esm/cart/components/CartLineImage.js +0 -2
  160. package/dist/esm/code/common/classes.js +9 -0
  161. package/dist/esm/code/common/styles.js +13 -0
  162. package/dist/esm/code/components/CSSCode.js +9 -99
  163. package/dist/esm/code/components/CSSCode.liquid.js +12 -12
  164. package/dist/esm/code/hooks/useCSSCode.js +98 -0
  165. package/dist/esm/code/setting/CSSCode.js +7 -121
  166. package/dist/esm/code/setting/config/setting.js +75 -0
  167. package/dist/esm/code/setting/config/uiV1.js +50 -0
  168. package/dist/esm/code/setting/config/uiV2.js +56 -0
  169. package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +4 -1
  170. package/dist/esm/form/components/contact/Contact.js +7 -3
  171. package/dist/esm/form/components/contact/common/composeStyles.js +19 -0
  172. package/dist/esm/form/components/form-checkbox/FormCheckbox.js +7 -5
  173. package/dist/esm/form/components/form-checkbox/FormCheckbox.liquid.js +3 -5
  174. package/dist/esm/form/components/form-checkbox/common/composeClasses.js +2 -2
  175. package/dist/esm/form/components/form-checkbox/common/composeStyles.js +25 -11
  176. package/dist/esm/form/components/form-dropdown/common/composeClasses.js +1 -1
  177. package/dist/esm/form/components/form-email/FormEmail.js +18 -10
  178. package/dist/esm/form/components/form-email/common/composeClasses.js +2 -1
  179. package/dist/esm/form/components/newsletter/Newsletter.js +8 -3
  180. package/dist/esm/form/components/newsletter/Newsletter.liquid.js +1 -1
  181. package/dist/esm/form/components/newsletter/common/composeStyles.js +4 -2
  182. package/dist/esm/form/components/textarea/TextArea.js +16 -8
  183. package/dist/esm/form/components/textarea/common/composeClasses.js +1 -1
  184. package/dist/esm/form/components/textfield/TextField.js +17 -9
  185. package/dist/esm/form/components/textfield/common/composeClasses.js +2 -2
  186. package/dist/esm/form/setting/contact/Contact.js +5 -1
  187. package/dist/esm/form/setting/form-checkbox/configs/settings.js +153 -6
  188. package/dist/esm/form/setting/form-checkbox/configs/uiV2.js +137 -0
  189. package/dist/esm/form/setting/form-dropdown/configs/settings.js +147 -0
  190. package/dist/esm/form/setting/form-dropdown/configs/uiV2.js +156 -4
  191. package/dist/esm/form/setting/newsletter/configs/settings.js +132 -3
  192. package/dist/esm/form/setting/newsletter/configs/uiV2.js +93 -0
  193. package/dist/esm/form/setting/submit-button/configs/settings.js +37 -0
  194. package/dist/esm/form/setting/submit-button/configs/uiV2.js +13 -0
  195. package/dist/esm/grid/row/commons/getInnerRadius.js +11 -10
  196. package/dist/esm/grid/row/setting/configs/uiV2.js +1 -1
  197. package/dist/esm/header/components/kind/basic/index.js +1 -0
  198. package/dist/esm/header/components/kind/modern/index.js +1 -1
  199. package/dist/esm/helpers.js +52 -1
  200. package/dist/esm/icon-list/setting/configs/uiV2.js +1 -1
  201. package/dist/esm/icon-list-v2/setting/configs/settings.js +5 -5
  202. package/dist/esm/image/components/AdaptiveImage.js +64 -50
  203. package/dist/esm/image/components/AdaptiveImage.liquid.js +57 -45
  204. package/dist/esm/image/components/Image.js +66 -155
  205. package/dist/esm/image/components/Image.liquid.js +69 -104
  206. package/dist/esm/image/components/Modal3d.liquid.js +55 -22
  207. package/dist/esm/image/components/NextImage.js +26 -59
  208. package/dist/esm/image/components/NextImage.liquid.js +28 -116
  209. package/dist/esm/image/components/Video.liquid.js +38 -13
  210. package/dist/esm/image/components/common/attributes.js +108 -0
  211. package/dist/esm/image/components/common/classes.js +51 -0
  212. package/dist/esm/image/components/common/constants.js +11 -0
  213. package/dist/esm/image/components/common/data.js +22 -0
  214. package/dist/esm/image/components/common/helpers.js +69 -0
  215. package/dist/esm/image/components/common/styles.js +80 -0
  216. package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +78 -0
  217. package/dist/esm/image/components/helpers/getNextImageReactAttrs.js +38 -0
  218. package/dist/esm/image/components/hooks/useCheckNoImage.js +23 -0
  219. package/dist/esm/image/helpers/getSrcSet.js +1 -2
  220. package/dist/esm/image/next.js +1 -5
  221. package/dist/esm/image/setting/configs/settings.js +14 -8
  222. package/dist/esm/image/setting/configs/uiV2.js +61 -15
  223. package/dist/esm/image/setting/index.js +1 -3
  224. package/dist/esm/image-comparison/components/CompareImage.js +1 -1
  225. package/dist/esm/image-comparison/components/CompareImage.liquid.js +1 -1
  226. package/dist/esm/index.js +4 -5
  227. package/dist/esm/index.liquid.js +3 -3
  228. package/dist/esm/post-purchase/callout-banner/components/CalloutText.js +2 -1
  229. package/dist/esm/post-purchase/callout-banner/components/common/getClasses.js +5 -2
  230. package/dist/esm/post-purchase/callout-banner/components/common/getStyles.js +2 -4
  231. package/dist/esm/post-purchase/callout-banner/setting/config/callout-box/setting.js +4 -10
  232. package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +1 -11
  233. package/dist/esm/post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js +9 -23
  234. package/dist/esm/post-purchase/countdown-timer/components/TextCountdown.js +13 -27
  235. package/dist/esm/post-purchase/countdown-timer/components/common/getClasses.js +21 -0
  236. package/dist/esm/post-purchase/countdown-timer/components/common/getStyles.js +19 -0
  237. package/dist/esm/post-purchase/countdown-timer/hooks/useCountdownTimer.js +19 -3
  238. package/dist/esm/post-purchase/countdown-timer/hooks/useGetTimeExpired.js +16 -0
  239. package/dist/esm/post-purchase/countdown-timer/settings/CountdownTimer.js +9 -358
  240. package/dist/esm/post-purchase/countdown-timer/settings/config/preset.js +24 -0
  241. package/dist/esm/post-purchase/countdown-timer/settings/config/setting.js +241 -0
  242. package/dist/esm/post-purchase/countdown-timer/settings/config/uiV1.js +123 -0
  243. package/dist/esm/post-purchase/countdown-timer/settings/config/uiV2.js +183 -0
  244. package/dist/esm/post-purchase/image/common/getClasses.js +1 -1
  245. package/dist/esm/post-purchase/image/setting/setting-v2.js +5 -5
  246. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +25 -27
  247. package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +5 -5
  248. package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/settings.js +2 -2
  249. package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
  250. package/dist/esm/product/components/FileUpload/components/common/index.js +3 -0
  251. package/dist/esm/product/components/ProductBundle/common/classes.js +19 -0
  252. package/dist/esm/product/components/ProductBundle/common/index.js +3 -0
  253. package/dist/esm/product/components/ProductBundle/common/styles.js +80 -0
  254. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscount.js +78 -0
  255. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js +70 -0
  256. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +65 -0
  257. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +42 -0
  258. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountItem.js +19 -0
  259. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountItem.liquid.js +10 -0
  260. package/dist/esm/product/components/{ProductBundleDiscount.js → ProductBundle/hooks/useProductBundleDataState.js} +21 -216
  261. package/dist/esm/product/components/ProductBundle/hooks/useProductBundleDiscountState.js +52 -0
  262. package/dist/esm/product/{setting → components/ProductBundle/setting}/ProductBundleDiscount.js +7 -7
  263. package/dist/esm/product/{setting → components/ProductBundle/setting}/ProductBundleDiscountItem.js +3 -0
  264. package/dist/esm/product/components/ProductButton.js +1 -1
  265. package/dist/esm/product/components/ProductButton.liquid.js +1 -1
  266. package/dist/esm/product/components/ProductPrice/common/getAttr.js +21 -0
  267. package/dist/esm/product/components/ProductPrice/common/getClasses.js +17 -0
  268. package/dist/esm/product/components/ProductPrice/common/getTextData.js +38 -0
  269. package/dist/esm/product/components/ProductPrice/hooks/useGpPrice.js +124 -0
  270. package/dist/esm/product/components/ProductPrice/index.js +50 -0
  271. package/dist/esm/product/components/ProductPrice/index.liquid.js +38 -0
  272. package/dist/esm/product/components/ProductQuickView/ProductQuickView.js +1 -1
  273. package/dist/esm/product/next.js +3 -3
  274. package/dist/esm/product/setting/index.js +2 -2
  275. package/dist/esm/product/setting/product/configs/presets.js +1 -0
  276. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +6 -7
  277. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +11 -12
  278. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +6 -5
  279. package/dist/esm/product/setting/product-list/configs/settingsV2.js +10 -8
  280. package/dist/esm/setting.js +5 -2
  281. package/dist/types/index.d.ts +174 -257
  282. package/package.json +2 -2
  283. package/dist/cjs/image/components/BackgroundImage.js +0 -102
  284. package/dist/cjs/image/components/Img.js +0 -28
  285. package/dist/cjs/image/components/helpers.js +0 -12
  286. package/dist/cjs/image/setting/BackgroundImage.js +0 -364
  287. package/dist/cjs/product/components/ProductBundleDiscount.liquid.js +0 -81
  288. package/dist/cjs/product/components/ProductBundleDiscountItem.js +0 -42
  289. package/dist/cjs/product/components/ProductBundleDiscountItem.liquid.js +0 -103
  290. package/dist/cjs/product/components/ProductPrice.js +0 -209
  291. package/dist/cjs/product/components/ProductPrice.liquid.js +0 -88
  292. package/dist/esm/image/components/BackgroundImage.js +0 -98
  293. package/dist/esm/image/components/Img.js +0 -24
  294. package/dist/esm/image/components/helpers.js +0 -9
  295. package/dist/esm/image/setting/BackgroundImage.js +0 -360
  296. package/dist/esm/product/components/ProductBundleDiscount.liquid.js +0 -77
  297. package/dist/esm/product/components/ProductBundleDiscountItem.js +0 -36
  298. package/dist/esm/product/components/ProductBundleDiscountItem.liquid.js +0 -99
  299. package/dist/esm/product/components/ProductPrice.js +0 -205
  300. package/dist/esm/product/components/ProductPrice.liquid.js +0 -83
@@ -125,6 +125,153 @@ const FormDropdownSettings = [
125
125
  default: 'left'
126
126
  }
127
127
  }
128
+ },
129
+ {
130
+ id: 'background',
131
+ type: 'background-media',
132
+ ignoreReRender: true,
133
+ devices: {
134
+ desktop: {
135
+ default: {
136
+ type: 'color',
137
+ color: 'transparent',
138
+ image: {
139
+ src: '',
140
+ width: 0,
141
+ height: 0
142
+ },
143
+ size: 'cover',
144
+ position: {
145
+ x: 50,
146
+ y: 50
147
+ },
148
+ repeat: 'no-repeat',
149
+ attachment: 'scroll'
150
+ }
151
+ }
152
+ },
153
+ compoDefaultValue: {
154
+ desktop: {
155
+ default: {
156
+ type: 'color',
157
+ color: '#DDDDDD',
158
+ image: {
159
+ src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
160
+ width: 1200,
161
+ height: 480
162
+ },
163
+ size: 'cover',
164
+ position: {
165
+ x: 50,
166
+ y: 50
167
+ },
168
+ repeat: 'no-repeat',
169
+ attachment: 'scroll',
170
+ preload: false
171
+ }
172
+ }
173
+ }
174
+ }
175
+ ]
176
+ },
177
+ {
178
+ id: 'style',
179
+ controls: [
180
+ {
181
+ id: 'globalSize',
182
+ type: 'size-setting',
183
+ devices: {
184
+ desktop: {
185
+ default: {
186
+ width: 'Auto',
187
+ height: 'Auto',
188
+ padding: {
189
+ type: 'medium',
190
+ top: '12px',
191
+ bottom: '12px',
192
+ left: '24px',
193
+ right: '24px'
194
+ }
195
+ }
196
+ }
197
+ },
198
+ settingConfig: {
199
+ width: {
200
+ displayOptions: [
201
+ 'full',
202
+ 'auto',
203
+ 'small',
204
+ 'large',
205
+ 'medium'
206
+ ],
207
+ sizeConfig: {
208
+ small: '100px',
209
+ medium: '116px',
210
+ large: '132px'
211
+ }
212
+ },
213
+ height: {
214
+ displayOptions: [
215
+ 'auto',
216
+ 'small',
217
+ 'large',
218
+ 'medium'
219
+ ],
220
+ sizeConfig: {
221
+ small: '28px',
222
+ medium: '36px',
223
+ large: '44px'
224
+ }
225
+ }
226
+ },
227
+ hiddenSettings: [
228
+ 'shape',
229
+ 'gap'
230
+ ]
231
+ },
232
+ {
233
+ id: 'border',
234
+ type: 'border-v2',
235
+ devices: {
236
+ desktop: {
237
+ default: {
238
+ normal: {
239
+ borderType: 'none',
240
+ border: 'none',
241
+ borderWidth: '1px',
242
+ width: '1px 1px 1px 1px',
243
+ color: '#121212',
244
+ isCustom: true
245
+ },
246
+ hover: {
247
+ borderType: 'none',
248
+ border: 'none',
249
+ borderWidth: '1px',
250
+ width: '1px 1px 1px 1px',
251
+ color: '#121212',
252
+ isCustom: true
253
+ }
254
+ }
255
+ }
256
+ },
257
+ compoDefaultValue: {
258
+ desktop: {
259
+ default: {
260
+ normal: {
261
+ border: 'solid',
262
+ color: '#121212',
263
+ width: '1px',
264
+ borderWidth: '1px'
265
+ },
266
+ hover: {
267
+ border: 'solid',
268
+ color: '#121212',
269
+ width: '1px',
270
+ borderWidth: '1px'
271
+ }
272
+ }
273
+ }
274
+ }
128
275
  }
129
276
  ]
130
277
  }
@@ -33,19 +33,171 @@ const SettingUIV2 = [
33
33
  },
34
34
  controls: [
35
35
  {
36
+ id: 'Width',
36
37
  label: {
37
38
  en: 'Width'
38
39
  },
39
- setting: {
40
- id: 'width'
41
- }
40
+ controlConfig: {
41
+ id: 'width',
42
+ type: 'dropdown:input',
43
+ label: 'Width',
44
+ inputType: 'number',
45
+ units: [
46
+ 'px',
47
+ '%'
48
+ ],
49
+ hideUnit: false,
50
+ linkWithSetting: {
51
+ name: 'globalSize',
52
+ field: 'width'
53
+ },
54
+ displayOptions: [
55
+ {
56
+ label: 'Fit content',
57
+ value: 'Auto',
58
+ showValue: true
59
+ },
60
+ {
61
+ label: 'Full',
62
+ value: '100%',
63
+ showValue: true
64
+ },
65
+ {
66
+ label: 'Small',
67
+ value: '100px',
68
+ showValue: true
69
+ },
70
+ {
71
+ label: 'Medium',
72
+ value: '116px',
73
+ showValue: true
74
+ },
75
+ {
76
+ label: 'Large',
77
+ value: '132px',
78
+ showValue: true
79
+ }
80
+ ]
81
+ },
82
+ layout: 'horizontal'
83
+ },
84
+ {
85
+ id: 'height',
86
+ label: {
87
+ en: 'Height'
88
+ },
89
+ controlConfig: {
90
+ id: 'height',
91
+ type: 'dropdown:input',
92
+ label: 'Height',
93
+ inputType: 'number',
94
+ units: [
95
+ 'px',
96
+ '%'
97
+ ],
98
+ hideUnit: false,
99
+ linkWithSetting: {
100
+ name: 'globalSizeBtn',
101
+ field: 'height'
102
+ },
103
+ displayOptions: [
104
+ {
105
+ label: 'Fit content',
106
+ value: 'Auto',
107
+ showValue: true
108
+ },
109
+ {
110
+ label: 'Full',
111
+ value: '100%',
112
+ showValue: true
113
+ },
114
+ {
115
+ label: 'Default',
116
+ value: 'default',
117
+ showValue: true
118
+ }
119
+ ]
120
+ },
121
+ layout: 'horizontal'
42
122
  },
43
123
  {
44
124
  label: {
45
125
  en: 'Padding'
46
126
  },
127
+ controlConfig: {
128
+ id: 'padding',
129
+ type: 'padding-v2',
130
+ linkWithSetting: {
131
+ name: 'globalSize',
132
+ field: 'padding'
133
+ },
134
+ compoDefaultValue: {
135
+ desktop: {
136
+ default: {
137
+ type: 'medium',
138
+ top: '12px',
139
+ bottom: '12px',
140
+ left: '24px',
141
+ right: '24px'
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ label: {
151
+ en: 'Background'
152
+ },
153
+ controls: [
154
+ {
47
155
  setting: {
48
- id: 'size'
156
+ id: 'background'
157
+ },
158
+ layout: 'vertical'
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ label: {
164
+ en: 'Shape'
165
+ },
166
+ controls: [
167
+ {
168
+ label: {
169
+ en: 'Border'
170
+ },
171
+ controlConfig: {
172
+ id: 'border',
173
+ type: 'border-v2',
174
+ linkWithSetting: {
175
+ name: 'wrapperBorder'
176
+ }
177
+ }
178
+ },
179
+ {
180
+ label: {
181
+ en: 'Corner'
182
+ },
183
+ controlConfig: {
184
+ id: 'corner',
185
+ type: 'corner-v2',
186
+ linkWithSetting: {
187
+ name: 'borderRadius'
188
+ }
189
+ }
190
+ },
191
+ {
192
+ label: {
193
+ en: 'Shadow'
194
+ },
195
+ controlConfig: {
196
+ id: 'shadow',
197
+ type: 'shadow-v2',
198
+ linkWithSetting: {
199
+ name: 'shadow'
200
+ }
49
201
  }
50
202
  }
51
203
  ]
@@ -1,7 +1,7 @@
1
1
  const NewsletterSettings = [
2
2
  {
3
3
  id: 'setting',
4
- note: `Collect customer emails to send them newsletters <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">via Shopify</a>`,
4
+ note: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`,
5
5
  controls: [
6
6
  {
7
7
  id: 'afterSubmitAction',
@@ -31,8 +31,8 @@ const NewsletterSettings = [
31
31
  target: '_self'
32
32
  },
33
33
  hiddenOptions: {
34
- // 'scroll-to': true,
35
- // 'open-popup': true,
34
+ 'scroll-to': true,
35
+ 'open-popup': true,
36
36
  'send-email': true,
37
37
  'call-phone': true
38
38
  }
@@ -55,6 +55,135 @@ const NewsletterSettings = [
55
55
  id: 'translate',
56
56
  type: 'input',
57
57
  default: 'successMessage,errorMessage'
58
+ },
59
+ {
60
+ id: 'background',
61
+ type: 'background-media',
62
+ ignoreReRender: true,
63
+ devices: {
64
+ desktop: {
65
+ default: {
66
+ type: 'color',
67
+ color: 'transparent',
68
+ image: {
69
+ src: '',
70
+ width: 0,
71
+ height: 0
72
+ },
73
+ size: 'cover',
74
+ position: {
75
+ x: 50,
76
+ y: 50
77
+ },
78
+ repeat: 'no-repeat',
79
+ attachment: 'scroll'
80
+ }
81
+ }
82
+ },
83
+ compoDefaultValue: {
84
+ desktop: {
85
+ default: {
86
+ type: 'color',
87
+ color: '#DDDDDD',
88
+ image: {
89
+ src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
90
+ width: 1200,
91
+ height: 480
92
+ },
93
+ size: 'cover',
94
+ position: {
95
+ x: 50,
96
+ y: 50
97
+ },
98
+ repeat: 'no-repeat',
99
+ attachment: 'scroll',
100
+ preload: false
101
+ }
102
+ }
103
+ }
104
+ },
105
+ {
106
+ id: 'width',
107
+ type: 'input:unit',
108
+ label: 'Width',
109
+ placeholder: 'Auto Width',
110
+ min: 0,
111
+ units: [
112
+ 'px',
113
+ '%'
114
+ ],
115
+ hide: true,
116
+ devices: {
117
+ desktop: {
118
+ default: '100%'
119
+ }
120
+ }
121
+ },
122
+ {
123
+ id: 'size',
124
+ label: 'Field size',
125
+ type: 'size',
126
+ default: {
127
+ type: 'medium'
128
+ },
129
+ ignoreReRender: true
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ id: 'style',
135
+ controls: [
136
+ {
137
+ id: 'globalSize',
138
+ type: 'size-setting',
139
+ devices: {
140
+ desktop: {
141
+ default: {
142
+ width: 'Auto',
143
+ height: 'Auto',
144
+ padding: {
145
+ type: 'medium',
146
+ top: '12px',
147
+ bottom: '12px',
148
+ left: '24px',
149
+ right: '24px'
150
+ }
151
+ }
152
+ }
153
+ },
154
+ settingConfig: {
155
+ width: {
156
+ displayOptions: [
157
+ 'full',
158
+ 'auto',
159
+ 'small',
160
+ 'large',
161
+ 'medium'
162
+ ],
163
+ sizeConfig: {
164
+ small: '100px',
165
+ medium: '116px',
166
+ large: '132px'
167
+ }
168
+ },
169
+ height: {
170
+ displayOptions: [
171
+ 'auto',
172
+ 'small',
173
+ 'large',
174
+ 'medium'
175
+ ],
176
+ sizeConfig: {
177
+ small: '28px',
178
+ medium: '36px',
179
+ large: '44px'
180
+ }
181
+ }
182
+ },
183
+ hiddenSettings: [
184
+ 'shape',
185
+ 'gap'
186
+ ]
58
187
  }
59
188
  ]
60
189
  }
@@ -59,6 +59,99 @@ const SettingUIV2 = [
59
59
  }
60
60
  ]
61
61
  },
62
+ {
63
+ label: {
64
+ en: 'Size'
65
+ },
66
+ controls: [
67
+ {
68
+ id: 'Width',
69
+ label: {
70
+ en: 'Width'
71
+ },
72
+ controlConfig: {
73
+ id: 'width',
74
+ type: 'dropdown:input',
75
+ label: 'Width',
76
+ inputType: 'number',
77
+ units: [
78
+ 'px',
79
+ '%'
80
+ ],
81
+ hideUnit: false,
82
+ linkWithSetting: {
83
+ name: 'globalSize',
84
+ field: 'width'
85
+ },
86
+ displayOptions: [
87
+ {
88
+ label: 'Fit content',
89
+ value: 'Auto',
90
+ showValue: true
91
+ },
92
+ {
93
+ label: 'Full',
94
+ value: '100%',
95
+ showValue: true
96
+ },
97
+ {
98
+ label: 'Small',
99
+ value: '100px',
100
+ showValue: true
101
+ },
102
+ {
103
+ label: 'Medium',
104
+ value: '116px',
105
+ showValue: true
106
+ },
107
+ {
108
+ label: 'Large',
109
+ value: '132px',
110
+ showValue: true
111
+ }
112
+ ]
113
+ },
114
+ layout: 'horizontal'
115
+ },
116
+ {
117
+ label: {
118
+ en: 'Padding'
119
+ },
120
+ controlConfig: {
121
+ id: 'padding',
122
+ type: 'padding-v2',
123
+ linkWithSetting: {
124
+ name: 'globalSize',
125
+ field: 'padding'
126
+ },
127
+ compoDefaultValue: {
128
+ desktop: {
129
+ default: {
130
+ type: 'medium',
131
+ top: '12px',
132
+ bottom: '12px',
133
+ left: '24px',
134
+ right: '24px'
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ label: {
144
+ en: 'Background'
145
+ },
146
+ controls: [
147
+ {
148
+ setting: {
149
+ id: 'background'
150
+ },
151
+ layout: 'vertical'
152
+ }
153
+ ]
154
+ },
62
155
  {
63
156
  label: {
64
157
  en: 'Shape'
@@ -2,6 +2,43 @@ const SubmitButtonSettings = [
2
2
  {
3
3
  id: 'setting',
4
4
  controls: [
5
+ {
6
+ id: 'buttonLayoutGroup',
7
+ type: 'group',
8
+ controls: [
9
+ {
10
+ id: 'layout',
11
+ type: 'button-layout',
12
+ default: 'default',
13
+ options: [
14
+ {
15
+ id: 'default',
16
+ value: 'default',
17
+ name: `<div class="h-40 w-[200px] rounded-medium bg-dark-200 p-10 flex items-center justify-center gap-4">SUBMIT</div>`,
18
+ icon: true
19
+ },
20
+ {
21
+ id: 'rounded',
22
+ value: 'rounded',
23
+ name: `<div class="h-40 w-[200px] rounded-medium bg-dark-200 p-10 flex items-center justify-center gap-4">SUBMIT</div>`,
24
+ icon: true
25
+ },
26
+ {
27
+ id: 'bordered',
28
+ value: 'bordered',
29
+ name: '<div class="h-40 w-[200px] rounded-medium bg-dark-200 p-10">SUBMIT</div>',
30
+ icon: false
31
+ },
32
+ {
33
+ id: 'underlined',
34
+ value: 'underlined',
35
+ name: '<div class="h-40 w-[200px] rounded-medium bg-dark-200 p-10">SUBMIT</div>',
36
+ icon: false
37
+ }
38
+ ]
39
+ }
40
+ ]
41
+ },
5
42
  {
6
43
  id: 'label',
7
44
  label: 'Text',
@@ -1,4 +1,17 @@
1
1
  const SettingUIV2 = [
2
+ {
3
+ label: {
4
+ en: 'Layout'
5
+ },
6
+ controls: [
7
+ {
8
+ setting: {
9
+ id: 'layout'
10
+ },
11
+ layout: 'vertical'
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  label: {
4
17
  en: 'Size'
@@ -1,17 +1,18 @@
1
1
  function reduceRadiusForState(borderWidth, radiusSettings) {
2
2
  if (!borderWidth || !radiusSettings) return {};
3
- const borderWidthValues = borderWidth.split(' ').map((value)=>parseInt(value, 10));
4
- const borderRadiusValues = [
5
- parseInt(radiusSettings.btrr ?? '0', 10),
6
- parseInt(radiusSettings.bblr ?? '0', 10),
7
- parseInt(radiusSettings.bbrr ?? '0', 10),
8
- parseInt(radiusSettings.btlr ?? '0', 10)
3
+ const borderWidthValues = (typeof borderWidth === 'string' ? borderWidth.split(' ') : []).map((value)=>parseInt(value, 10) || 0);
4
+ const keys = [
5
+ 'btrr',
6
+ 'bblr',
7
+ 'bbrr',
8
+ 'btlr'
9
9
  ];
10
+ const result = Object.fromEntries(keys.map((key, index)=>[
11
+ key,
12
+ Math.max(0, (parseInt(radiusSettings[key] ?? '0', 10) || 0) - (borderWidthValues[index] || 0)) + 'px'
13
+ ]));
10
14
  return {
11
- btrr: Math.max(0, (borderRadiusValues?.[0] ?? 0) - (borderWidthValues?.[0] ?? 0)) + 'px',
12
- bblr: Math.max(0, (borderRadiusValues?.[1] ?? 0) - (borderWidthValues?.[1] ?? 0)) + 'px',
13
- bbrr: Math.max(0, (borderRadiusValues?.[2] ?? 0) - (borderWidthValues?.[2] ?? 0)) + 'px',
14
- btlr: Math.max(0, (borderRadiusValues?.[3] ?? 0) - (borderWidthValues?.[3] ?? 0)) + 'px',
15
+ ...result,
15
16
  radiusType: radiusSettings.radiusType
16
17
  };
17
18
  }
@@ -83,7 +83,7 @@ const SettingUIV2 = [
83
83
  options: {
84
84
  fullWidth: true
85
85
  },
86
- conditionDisplay: `pageType == "POST_PURCHASE"`,
86
+ conditionDisplay: `pageType == "POST_PURCHASE" && !!layout.cols && layout.cols.length > 1`,
87
87
  conditionEnable: '!!layout.cols && layout.cols.length > 1'
88
88
  }
89
89
  ]