@gem-sdk/components 2.0.0-dev.277 → 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/setting/config/callout-box/setting.js +4 -10
  89. package/dist/cjs/post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js +9 -23
  90. package/dist/cjs/post-purchase/countdown-timer/components/TextCountdown.js +12 -26
  91. package/dist/cjs/post-purchase/countdown-timer/components/common/getClasses.js +24 -0
  92. package/dist/cjs/post-purchase/countdown-timer/components/common/getStyles.js +21 -0
  93. package/dist/cjs/post-purchase/countdown-timer/hooks/useCountdownTimer.js +18 -1
  94. package/dist/cjs/post-purchase/countdown-timer/hooks/useGetTimeExpired.js +18 -0
  95. package/dist/cjs/post-purchase/countdown-timer/settings/CountdownTimer.js +9 -358
  96. package/dist/cjs/post-purchase/countdown-timer/settings/config/preset.js +26 -0
  97. package/dist/cjs/post-purchase/countdown-timer/settings/config/setting.js +243 -0
  98. package/dist/cjs/post-purchase/countdown-timer/settings/config/uiV1.js +125 -0
  99. package/dist/cjs/post-purchase/countdown-timer/settings/config/uiV2.js +185 -0
  100. package/dist/cjs/post-purchase/image/common/getClasses.js +1 -1
  101. package/dist/cjs/post-purchase/image/setting/setting-v2.js +5 -5
  102. package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +24 -26
  103. package/dist/cjs/post-purchase/product/hooks/product-image/useListCarousel.js +1 -1
  104. package/dist/cjs/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +4 -1
  105. package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +20 -7
  106. package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +3 -1
  107. package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/settings.js +2 -2
  108. package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
  109. package/dist/cjs/post-purchase/utils/constants.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/setting/config/callout-box/setting.js +4 -10
  229. package/dist/esm/post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js +9 -23
  230. package/dist/esm/post-purchase/countdown-timer/components/TextCountdown.js +13 -27
  231. package/dist/esm/post-purchase/countdown-timer/components/common/getClasses.js +21 -0
  232. package/dist/esm/post-purchase/countdown-timer/components/common/getStyles.js +19 -0
  233. package/dist/esm/post-purchase/countdown-timer/hooks/useCountdownTimer.js +19 -3
  234. package/dist/esm/post-purchase/countdown-timer/hooks/useGetTimeExpired.js +16 -0
  235. package/dist/esm/post-purchase/countdown-timer/settings/CountdownTimer.js +9 -358
  236. package/dist/esm/post-purchase/countdown-timer/settings/config/preset.js +24 -0
  237. package/dist/esm/post-purchase/countdown-timer/settings/config/setting.js +241 -0
  238. package/dist/esm/post-purchase/countdown-timer/settings/config/uiV1.js +123 -0
  239. package/dist/esm/post-purchase/countdown-timer/settings/config/uiV2.js +183 -0
  240. package/dist/esm/post-purchase/image/common/getClasses.js +1 -1
  241. package/dist/esm/post-purchase/image/setting/setting-v2.js +5 -5
  242. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +25 -27
  243. package/dist/esm/post-purchase/product/hooks/product-image/useListCarousel.js +1 -1
  244. package/dist/esm/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +4 -1
  245. package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +20 -7
  246. package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +3 -1
  247. package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/settings.js +2 -2
  248. package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
  249. package/dist/esm/post-purchase/utils/constants.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 +173 -256
  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
@@ -1,10 +1,10 @@
1
1
  import { template } from '@gem-sdk/core';
2
2
  import { getDynamicSourceLocales } from '../../../helpers.js';
3
3
  import { createStyle, createClass, If } from '@gem-sdk/system';
4
- import { composeContainerStyles, composeFormCheckboxStyles, composeFormCheckboxInputStyles, composeFormCheckboxSpanStyles } from './common/composeStyles.js';
4
+ import { composeContainerStyles, composeFormCheckboxStyles, composeFormCheckboxInputStyles } from './common/composeStyles.js';
5
5
  import { composeContainerClasses, composeFormCheckboxInputClasses, composeFormCheckboxLabelClasses } from './common/composeClasses.js';
6
6
 
7
- const FromCheckbox = ({ builderProps, setting, advanced, pageContext })=>{
7
+ const FromCheckbox = ({ builderProps, setting, advanced, pageContext, styles })=>{
8
8
  const { name, description, selected, required, translate } = setting ?? {};
9
9
  const descriptionDisplay = getDynamicSourceLocales({
10
10
  val: description,
@@ -14,9 +14,8 @@ const FromCheckbox = ({ builderProps, setting, advanced, pageContext })=>{
14
14
  translate
15
15
  });
16
16
  const composedContainerStyles = createStyle(composeContainerStyles(setting));
17
- const composedFormCheckboxStyles = createStyle(composeFormCheckboxStyles(setting));
17
+ const composedFormCheckboxStyles = createStyle(composeFormCheckboxStyles(setting, styles, builderProps));
18
18
  const composedFormCheckboxInputStyles = createStyle(composeFormCheckboxInputStyles());
19
- const composedFormCheckboxSpanStyles = createStyle(composeFormCheckboxSpanStyles(setting));
20
19
  const composedContainerClasses = createClass(composeContainerClasses(setting, advanced, builderProps));
21
20
  const composedFormCheckboxInputClasses = createClass(composeFormCheckboxInputClasses());
22
21
  const composedFormCheckboxLabelClasses = createClass(composeFormCheckboxLabelClasses());
@@ -41,7 +40,6 @@ const FromCheckbox = ({ builderProps, setting, advanced, pageContext })=>{
41
40
  </input>
42
41
  <span
43
42
  class=${composedFormCheckboxLabelClasses}
44
- style="${composedFormCheckboxSpanStyles}"
45
43
  >
46
44
  ${descriptionDisplay}
47
45
  </span>
@@ -8,7 +8,7 @@ const composeContainerClasses = (setting, advanced, builderProps)=>{
8
8
  return composeClasses({
9
9
  [builderProps?.uid]: !!builderProps?.uid,
10
10
  [advanced?.cssClass]: !!advanced?.cssClass,
11
- 'gp-flex gp-items-center !gp-normal-case': true,
11
+ 'gp-flex gp-flex-wrap gp-items-center !gp-normal-case': true,
12
12
  [appendTypoClass]: !!appendTypoClass
13
13
  });
14
14
  };
@@ -19,7 +19,7 @@ const composeFormCheckboxInputClasses = ()=>{
19
19
  };
20
20
  const composeFormCheckboxLabelClasses = ()=>{
21
21
  return composeClasses({
22
- 'gp-w-[calc(100%_-_20px)]': true
22
+ 'w-auto': true
23
23
  });
24
24
  };
25
25
 
@@ -1,5 +1,6 @@
1
1
  import { filterTruthy } from '../../../helpers/common.js';
2
- import { makeStyleResponsive, composeTypographyStyle } from '@gem-sdk/core';
2
+ import { makeStyleResponsive, composeTypographyStyle, makeGlobalSize, getStyleBackgroundByDevice, makeStyle, getBorderStyle, getBorderRadiusStyle, getStyleShadow } from '@gem-sdk/core';
3
+ import { overwriteDefaultRadius } from '../../../../image/components/common/helpers.js';
3
4
 
4
5
  const composeStyles = (styles)=>filterTruthy(styles);
5
6
  const composeContainerStyles = (setting)=>{
@@ -7,11 +8,30 @@ const composeContainerStyles = (setting)=>{
7
8
  ...makeStyleResponsive('ta', setting?.align)
8
9
  });
9
10
  };
10
- const composeFormCheckboxStyles = (setting)=>{
11
- const { typography } = setting ?? {};
11
+ const composeFormCheckboxStyles = (setting, styles, builderProps)=>{
12
+ const { typography, horizontalSpacing } = setting ?? {};
13
+ const { wrapperBorder, borderRadius, shadow, globalSize } = styles ?? {};
12
14
  const appendTypoStyle = composeTypographyStyle(setting?.typo, typography);
15
+ const composeGlobalSize = makeGlobalSize(globalSize);
16
+ console.log(123, horizontalSpacing);
13
17
  return composeStyles({
14
- ...appendTypoStyle
18
+ ...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
19
+ '--w': '100%'
20
+ },
21
+ ...appendTypoStyle,
22
+ ...getStyleBackgroundByDevice(setting?.background),
23
+ ...makeStyle({
24
+ cg: horizontalSpacing
25
+ }),
26
+ ...getBorderStyle(wrapperBorder),
27
+ ...getBorderRadiusStyle(borderRadius),
28
+ ...overwriteDefaultRadius(builderProps?.builderData?.advanced?.rounded),
29
+ ...getStyleShadow({
30
+ value: shadow,
31
+ styleAppliedFor: 'box-shadow',
32
+ isEnableShadow: shadow?.type !== 'none'
33
+ }),
34
+ ...composeGlobalSize.padding
15
35
  });
16
36
  };
17
37
  const composeFormCheckboxInputStyles = ()=>{
@@ -19,11 +39,5 @@ const composeFormCheckboxInputStyles = ()=>{
19
39
  appearance: 'auto'
20
40
  });
21
41
  };
22
- const composeFormCheckboxSpanStyles = (setting)=>{
23
- const { horizontalSpacing } = setting ?? {};
24
- return composeStyles({
25
- ...makeStyleResponsive('pl', horizontalSpacing)
26
- });
27
- };
28
42
 
29
- export { composeContainerStyles, composeFormCheckboxInputStyles, composeFormCheckboxSpanStyles, composeFormCheckboxStyles };
43
+ export { composeContainerStyles, composeFormCheckboxInputStyles, composeFormCheckboxStyles };
@@ -13,7 +13,7 @@ const composeFormDropdownClasses = (setting)=>{
13
13
  const appendTypoClass = composeTypographyClassName(setting?.typo, typography);
14
14
  return composeClasses({
15
15
  [appendTypoClass]: !!appendTypoClass,
16
- [`!${genSizeClass(setting?.size?.type)}`]: !!setting?.size?.type,
16
+ [`${genSizeClass(setting?.size?.type)}`]: !!setting?.size?.type,
17
17
  'gp-form-item !gp-outline-none !gp-h-auto focus:!gp-shadow-none hover:!gp-shadow-none': true
18
18
  });
19
19
  };
@@ -17,17 +17,25 @@ const FormEmail = ({ builderProps, builderAttrs, setting, advanced, children })=
17
17
  className: containerClasses,
18
18
  style: containerStyles,
19
19
  children: [
20
- /*#__PURE__*/ jsx("input", {
21
- type: "email",
22
- className: innerClasses,
23
- style: innerStyles,
24
- placeholder: placeholder,
25
- name: name,
26
- required: required,
27
- autoComplete: "email",
28
- value: hideOnClient ? defaultEmail : ''
20
+ /*#__PURE__*/ jsx("span", {
21
+ className: "gp-text-16 gp-text-[#121212]",
22
+ children: placeholder
29
23
  }),
30
- children
24
+ /*#__PURE__*/ jsxs("div", {
25
+ children: [
26
+ /*#__PURE__*/ jsx("input", {
27
+ type: "email",
28
+ className: innerClasses,
29
+ style: innerStyles,
30
+ placeholder: placeholder,
31
+ name: name,
32
+ required: required,
33
+ autoComplete: "email",
34
+ value: hideOnClient ? defaultEmail : ''
35
+ }),
36
+ children
37
+ ]
38
+ })
31
39
  ]
32
40
  });
33
41
  };
@@ -7,7 +7,8 @@ const composeContainerClasses = (setting, advanced, builderProps)=>{
7
7
  return composeClasses({
8
8
  [builderProps?.uid]: !!builderProps?.uid,
9
9
  '!gp-hidden': hideOnClient,
10
- [advanced?.cssClass]: !!advanced?.cssClass
10
+ [advanced?.cssClass]: !!advanced?.cssClass,
11
+ 'flex flex-col': true
11
12
  });
12
13
  };
13
14
  const composeInnerClasses = (setting)=>{
@@ -1,10 +1,15 @@
1
1
  'use client';
2
- import { jsx, Fragment } from 'react/jsx-runtime';
2
+ import { jsx } from 'react/jsx-runtime';
3
3
  import { isEmptyChildren } from '@gem-sdk/core';
4
4
  import ChildrenDroppable from '../../../grid/components/ChildrenDroppable.js';
5
+ import { createStyle } from '@gem-sdk/system';
6
+ import { composeContainerStyles } from '../contact/common/composeStyles.js';
5
7
 
6
- const Newsletter = ({ children })=>{
7
- return /*#__PURE__*/ jsx(Fragment, {
8
+ const Newsletter = ({ children, setting, styles })=>{
9
+ const containerStyle = createStyle(composeContainerStyles(setting, styles));
10
+ return /*#__PURE__*/ jsx("div", {
11
+ className: "gp-border-box",
12
+ style: containerStyle,
8
13
  children: isEmptyChildren(children) ? /*#__PURE__*/ jsx(ChildrenDroppable, {}) : children
9
14
  });
10
15
  };
@@ -26,7 +26,7 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
26
26
  const composedContainerStyles = createStyle(composeContainerStyles(style));
27
27
  const anchorAttrs = composeAnchorAttrs(builderProps, setting);
28
28
  const composedFormClasses = createClass(composeFormClasses());
29
- const composedFormStyles = createStyle(composeFormStyles());
29
+ const composedFormStyles = createStyle(composeFormStyles(setting));
30
30
  const formAttrs = composeFormAttrs(builderProps);
31
31
  const popoverAttrs = composePopoverAttrs(builderProps);
32
32
  const generatedPopoverStyles = popoverStyles(builderProps);
@@ -1,4 +1,5 @@
1
1
  import { filterTruthy } from '../../../helpers/common.js';
2
+ import { getStyleBackgroundByDevice } from '@gem-sdk/core';
2
3
 
3
4
  const composeStyles = (styles)=>filterTruthy(styles);
4
5
  const composeContainerStyles = (style)=>{
@@ -6,9 +7,10 @@ const composeContainerStyles = (style)=>{
6
7
  ...style
7
8
  });
8
9
  };
9
- const composeFormStyles = ()=>{
10
+ const composeFormStyles = (setting)=>{
11
+ const { background } = setting ?? {};
10
12
  return composeStyles({
11
- 'background-color': '#FFE9E9',
13
+ ...getStyleBackgroundByDevice(background),
12
14
  left: '50%',
13
15
  transform: 'translateX(-50%)',
14
16
  color: '#EA3335'
@@ -17,15 +17,23 @@ const FormTextArea = ({ setting, builderProps, className, builderAttrs, advanced
17
17
  className: composedContainerClasses,
18
18
  style: composedContainerStyles,
19
19
  children: [
20
- /*#__PURE__*/ jsx("textarea", {
21
- className: composedTextareaClasses,
22
- placeholder: placeholder,
23
- style: composedTextareaStyles,
24
- required: required,
25
- name: defaultName,
26
- value: text
20
+ /*#__PURE__*/ jsx("span", {
21
+ className: "gp-text-16 gp-text-[#121212]",
22
+ children: placeholder
27
23
  }),
28
- children
24
+ /*#__PURE__*/ jsxs("div", {
25
+ children: [
26
+ /*#__PURE__*/ jsx("textarea", {
27
+ className: composedTextareaClasses,
28
+ placeholder: placeholder,
29
+ style: composedTextareaStyles,
30
+ required: required,
31
+ name: defaultName,
32
+ value: text
33
+ }),
34
+ children
35
+ ]
36
+ })
29
37
  ]
30
38
  });
31
39
  };
@@ -17,7 +17,7 @@ const composeTextareaClasses = (setting, builderProps, className)=>{
17
17
  [builderProps?.uid]: !!builderProps?.uid,
18
18
  [appendTypoClass]: !!appendTypoClass,
19
19
  [globalColorClass]: !!globalColorClass,
20
- [`!${genSizeClass(setting?.size?.type)}`]: !!setting?.size?.type,
20
+ [`${genSizeClass(setting?.size?.type)}`]: !!setting?.size?.type,
21
21
  'gp-form-item !gp-outline-none !gp-h-auto focus:!gp-shadow-none hover:!gp-shadow-none !gp-bg-none gp-min-h-[150px]': true
22
22
  });
23
23
  };
@@ -17,16 +17,24 @@ const TextField = ({ setting, builderProps, className, builderAttrs, advanced, c
17
17
  className: composedContainerClasses,
18
18
  style: composedContainerStyles,
19
19
  children: [
20
- /*#__PURE__*/ jsx("input", {
21
- type: "text",
22
- className: composedTextFieldClasses,
23
- style: composedTextFieldStyles,
24
- placeholder: placeholder,
25
- required: required,
26
- name: defaultName,
27
- value: text
20
+ /*#__PURE__*/ jsx("span", {
21
+ className: "gp-text-16 gp-text-[#121212]",
22
+ children: placeholder
28
23
  }),
29
- children
24
+ /*#__PURE__*/ jsxs("div", {
25
+ children: [
26
+ /*#__PURE__*/ jsx("input", {
27
+ type: "text",
28
+ className: composedTextFieldClasses,
29
+ style: composedTextFieldStyles,
30
+ placeholder: placeholder,
31
+ required: required,
32
+ name: defaultName,
33
+ value: text
34
+ }),
35
+ children
36
+ ]
37
+ })
30
38
  ]
31
39
  });
32
40
  };
@@ -17,8 +17,8 @@ const composeTextFieldClasses = (setting, builderProps, className)=>{
17
17
  [builderProps?.uid]: !!builderProps?.uid,
18
18
  [appendTypoClass]: !!appendTypoClass,
19
19
  [globalColorClass]: !!globalColorClass,
20
- [`!${genSizeClass(setting?.size?.type)}`]: !!setting?.size?.type,
21
- 'gp-form-item !gp-outline-none !gp-h-auto focus:!gp-shadow-none hover:!gp-shadow-none !gp-bg-none gp-min-h-[150px]': true
20
+ [`${genSizeClass(setting?.size?.type)}`]: !!setting?.size?.type,
21
+ 'gp-form-item !gp-outline-none !gp-h-auto focus:!gp-shadow-none hover:!gp-shadow-none !gp-bg-none': true
22
22
  });
23
23
  };
24
24
 
@@ -17,8 +17,12 @@ const config = {
17
17
  settings: [
18
18
  {
19
19
  id: 'setting',
20
- note: `Contact Form sends all submissions to the Sender email address of your store (you can change the Sender email address in the <a class="no-underline text-primary-250" target="_blank" href="https://www.shopify.com/admin/settings/notifications">Notifications settings</a> of your Shopify admin)`,
20
+ 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>`,
21
21
  controls: config$1.settings?.find((item)=>item.id === 'setting')?.controls || []
22
+ },
23
+ {
24
+ id: 'style',
25
+ controls: config$1.settings?.find((item)=>item.id === 'style')?.controls || []
22
26
  }
23
27
  ],
24
28
  ui: config$1.ui,
@@ -57,16 +57,12 @@ const FormCheckboxSettings = [
57
57
  },
58
58
  {
59
59
  id: 'horizontalSpacing',
60
- label: 'Checkbox & text spacing',
61
60
  type: 'input:unit',
62
61
  units: [
63
62
  'px'
64
63
  ],
65
- devices: {
66
- desktop: {
67
- default: 'var(--g-s-xs)'
68
- }
69
- }
64
+ label: 'Icon Spacing',
65
+ default: '4px'
70
66
  },
71
67
  {
72
68
  id: 'align',
@@ -100,6 +96,157 @@ const FormCheckboxSettings = [
100
96
  default: 'left'
101
97
  }
102
98
  }
99
+ },
100
+ {
101
+ id: 'background',
102
+ type: 'background-media',
103
+ ignoreReRender: true,
104
+ devices: {
105
+ desktop: {
106
+ default: {
107
+ type: 'color',
108
+ color: 'transparent',
109
+ image: {
110
+ src: '',
111
+ width: 0,
112
+ height: 0
113
+ },
114
+ size: 'cover',
115
+ position: {
116
+ x: 50,
117
+ y: 50
118
+ },
119
+ repeat: 'no-repeat',
120
+ attachment: 'scroll'
121
+ }
122
+ }
123
+ },
124
+ compoDefaultValue: {
125
+ desktop: {
126
+ default: {
127
+ type: 'color',
128
+ color: '#DDDDDD',
129
+ image: {
130
+ src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
131
+ width: 1200,
132
+ height: 480
133
+ },
134
+ size: 'cover',
135
+ position: {
136
+ x: 50,
137
+ y: 50
138
+ },
139
+ repeat: 'no-repeat',
140
+ attachment: 'scroll',
141
+ preload: false
142
+ }
143
+ }
144
+ }
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ id: 'style',
150
+ controls: [
151
+ {
152
+ id: 'globalSize',
153
+ type: 'size-setting',
154
+ devices: {
155
+ desktop: {
156
+ default: {
157
+ width: 'Auto',
158
+ height: 'Auto',
159
+ padding: {
160
+ type: 'medium',
161
+ top: '12px',
162
+ bottom: '12px',
163
+ left: '24px',
164
+ right: '24px'
165
+ }
166
+ }
167
+ }
168
+ },
169
+ settingConfig: {
170
+ width: {
171
+ displayOptions: [
172
+ 'full',
173
+ 'auto',
174
+ 'small',
175
+ 'large',
176
+ 'medium'
177
+ ],
178
+ sizeConfig: {
179
+ small: '100px',
180
+ medium: '116px',
181
+ large: '132px'
182
+ }
183
+ },
184
+ height: {
185
+ displayOptions: [
186
+ 'auto',
187
+ 'small',
188
+ 'large',
189
+ 'medium'
190
+ ],
191
+ sizeConfig: {
192
+ small: '28px',
193
+ medium: '36px',
194
+ large: '44px'
195
+ }
196
+ }
197
+ },
198
+ hiddenSettings: [
199
+ 'shape',
200
+ 'gap'
201
+ ]
202
+ },
203
+ {
204
+ id: 'wrapperBorder',
205
+ type: 'border',
206
+ label: 'Border',
207
+ default: {
208
+ borderType: 'none',
209
+ border: 'none',
210
+ width: '1px 1px 1px 1px',
211
+ position: 'all',
212
+ borderWidth: '1px',
213
+ color: '#000000',
214
+ isCustom: true
215
+ }
216
+ },
217
+ {
218
+ id: 'borderRadius',
219
+ type: 'radius-preset',
220
+ label: 'Corner',
221
+ default: {
222
+ radiusType: 'none'
223
+ },
224
+ compoDefaultValue: {
225
+ bblr: '20px',
226
+ btrr: '20px',
227
+ bbrr: '20px',
228
+ btlr: '20px',
229
+ radiusType: 'rounded'
230
+ }
231
+ },
232
+ {
233
+ id: 'hasActiveShadow',
234
+ type: 'toggle',
235
+ label: 'Enable Button Shadow',
236
+ default: false
237
+ },
238
+ {
239
+ id: 'shadow',
240
+ type: 'boxShadow',
241
+ label: 'Button Shadow',
242
+ default: {
243
+ type: 'none',
244
+ distance: '10px',
245
+ blur: '12px',
246
+ spread: '10px',
247
+ color: 'rgba(18, 18, 18, 0.77)',
248
+ angle: 40
249
+ }
103
250
  }
104
251
  ]
105
252
  }
@@ -35,6 +35,7 @@ const SettingUIV2 = [
35
35
  },
36
36
  controls: [
37
37
  {
38
+ type: 'control',
38
39
  label: {
39
40
  en: 'Gap'
40
41
  },
@@ -44,6 +45,142 @@ const SettingUIV2 = [
44
45
  }
45
46
  ]
46
47
  },
48
+ {
49
+ label: {
50
+ en: 'Size'
51
+ },
52
+ controls: [
53
+ {
54
+ id: 'Width',
55
+ label: {
56
+ en: 'Width'
57
+ },
58
+ controlConfig: {
59
+ id: 'width',
60
+ type: 'dropdown:input',
61
+ label: 'Width',
62
+ inputType: 'number',
63
+ units: [
64
+ 'px',
65
+ '%'
66
+ ],
67
+ hideUnit: false,
68
+ linkWithSetting: {
69
+ name: 'globalSize',
70
+ field: 'width'
71
+ },
72
+ displayOptions: [
73
+ {
74
+ label: 'Fit content',
75
+ value: 'Auto',
76
+ showValue: true
77
+ },
78
+ {
79
+ label: 'Full',
80
+ value: '100%',
81
+ showValue: true
82
+ },
83
+ {
84
+ label: 'Small',
85
+ value: '100px',
86
+ showValue: true
87
+ },
88
+ {
89
+ label: 'Medium',
90
+ value: '116px',
91
+ showValue: true
92
+ },
93
+ {
94
+ label: 'Large',
95
+ value: '132px',
96
+ showValue: true
97
+ }
98
+ ]
99
+ },
100
+ layout: 'horizontal'
101
+ },
102
+ {
103
+ label: {
104
+ en: 'Padding'
105
+ },
106
+ controlConfig: {
107
+ id: 'padding',
108
+ type: 'padding-v2',
109
+ linkWithSetting: {
110
+ name: 'globalSize',
111
+ field: 'padding'
112
+ },
113
+ compoDefaultValue: {
114
+ desktop: {
115
+ default: {
116
+ type: 'medium',
117
+ top: '12px',
118
+ bottom: '12px',
119
+ left: '24px',
120
+ right: '24px'
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ label: {
130
+ en: 'Background'
131
+ },
132
+ controls: [
133
+ {
134
+ setting: {
135
+ id: 'background'
136
+ },
137
+ layout: 'vertical'
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ label: {
143
+ en: 'Shape'
144
+ },
145
+ controls: [
146
+ {
147
+ label: {
148
+ en: 'Border'
149
+ },
150
+ controlConfig: {
151
+ id: 'border',
152
+ type: 'border-v2',
153
+ linkWithSetting: {
154
+ name: 'wrapperBorder'
155
+ }
156
+ }
157
+ },
158
+ {
159
+ label: {
160
+ en: 'Corner'
161
+ },
162
+ controlConfig: {
163
+ id: 'corner',
164
+ type: 'corner-v2',
165
+ linkWithSetting: {
166
+ name: 'borderRadius'
167
+ }
168
+ }
169
+ },
170
+ {
171
+ label: {
172
+ en: 'Shadow'
173
+ },
174
+ controlConfig: {
175
+ id: 'shadow',
176
+ type: 'shadow-v2',
177
+ linkWithSetting: {
178
+ name: 'shadow'
179
+ }
180
+ }
181
+ }
182
+ ]
183
+ },
47
184
  {
48
185
  label: {
49
186
  en: 'Configuration'