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

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 (302) 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/Product.liquid.js +1 -1
  112. package/dist/cjs/product/components/ProductBundle/common/classes.js +25 -0
  113. package/dist/cjs/product/components/ProductBundle/common/index.js +5 -0
  114. package/dist/cjs/product/components/ProductBundle/common/styles.js +89 -0
  115. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscount.js +82 -0
  116. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js +74 -0
  117. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +69 -0
  118. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +46 -0
  119. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountItem.js +23 -0
  120. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountItem.liquid.js +14 -0
  121. package/dist/cjs/product/components/{ProductBundleDiscount.js → ProductBundle/hooks/useProductBundleDataState.js} +20 -215
  122. package/dist/cjs/product/components/ProductBundle/hooks/useProductBundleDiscountState.js +56 -0
  123. package/dist/cjs/product/{setting → components/ProductBundle/setting}/ProductBundleDiscount.js +7 -7
  124. package/dist/cjs/product/{setting → components/ProductBundle/setting}/ProductBundleDiscountItem.js +3 -0
  125. package/dist/cjs/product/components/ProductButton.js +2 -2
  126. package/dist/cjs/product/components/ProductButton.liquid.js +2 -2
  127. package/dist/cjs/product/components/ProductPrice/common/getAttr.js +23 -0
  128. package/dist/cjs/product/components/ProductPrice/common/getClasses.js +19 -0
  129. package/dist/cjs/product/components/ProductPrice/common/getTextData.js +40 -0
  130. package/dist/cjs/product/components/ProductPrice/hooks/useGpPrice.js +126 -0
  131. package/dist/cjs/product/components/ProductPrice/index.js +54 -0
  132. package/dist/cjs/product/components/ProductPrice/index.liquid.js +43 -0
  133. package/dist/cjs/product/components/ProductQuickView/ProductQuickView.js +5 -5
  134. package/dist/cjs/product/next.js +3 -3
  135. package/dist/cjs/product/setting/index.js +2 -2
  136. package/dist/cjs/product/setting/product/configs/presets.js +1 -0
  137. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +6 -7
  138. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +11 -12
  139. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +6 -5
  140. package/dist/cjs/product/setting/product-list/configs/settingsV2.js +10 -8
  141. package/dist/cjs/setting.js +5 -2
  142. package/dist/esm/accordion/components/Accordion.js +61 -180
  143. package/dist/esm/accordion/components/Accordion.liquid.js +78 -102
  144. package/dist/esm/accordion/components/AccordionItem.js +129 -281
  145. package/dist/esm/accordion/components/AccordionItem.liquid.js +76 -214
  146. package/dist/esm/accordion/components/common/classes.js +44 -0
  147. package/dist/esm/accordion/components/common/index.js +136 -0
  148. package/dist/esm/accordion/components/common/styles.js +122 -0
  149. package/dist/esm/accordion/hooks/useAccordion.js +141 -0
  150. package/dist/esm/accordion/hooks/useAccordionItem.js +115 -0
  151. package/dist/esm/article/components/ArticleImage.js +0 -1
  152. package/dist/esm/article/components/ArticlePagination.js +1 -1
  153. package/dist/esm/article/components/ArticlePagination.liquid.js +3 -3
  154. package/dist/esm/article/setting/configs/ArticleImage/settings.js +5 -5
  155. package/dist/esm/banner/components/HeroBannerItem.js +0 -6
  156. package/dist/esm/banner/components/HeroBannerItem.liquid.js +3 -0
  157. package/dist/esm/banner/setting/setting.js +28 -3
  158. package/dist/esm/banner/setting/uiV2.js +10 -97
  159. package/dist/esm/builder.js +3 -5
  160. package/dist/esm/cart/components/CartLineImage.js +0 -2
  161. package/dist/esm/code/common/classes.js +9 -0
  162. package/dist/esm/code/common/styles.js +13 -0
  163. package/dist/esm/code/components/CSSCode.js +9 -99
  164. package/dist/esm/code/components/CSSCode.liquid.js +12 -12
  165. package/dist/esm/code/hooks/useCSSCode.js +98 -0
  166. package/dist/esm/code/setting/CSSCode.js +7 -121
  167. package/dist/esm/code/setting/config/setting.js +75 -0
  168. package/dist/esm/code/setting/config/uiV1.js +50 -0
  169. package/dist/esm/code/setting/config/uiV2.js +56 -0
  170. package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +4 -1
  171. package/dist/esm/form/components/contact/Contact.js +7 -3
  172. package/dist/esm/form/components/contact/common/composeStyles.js +19 -0
  173. package/dist/esm/form/components/form-checkbox/FormCheckbox.js +7 -5
  174. package/dist/esm/form/components/form-checkbox/FormCheckbox.liquid.js +3 -5
  175. package/dist/esm/form/components/form-checkbox/common/composeClasses.js +2 -2
  176. package/dist/esm/form/components/form-checkbox/common/composeStyles.js +25 -11
  177. package/dist/esm/form/components/form-dropdown/common/composeClasses.js +1 -1
  178. package/dist/esm/form/components/form-email/FormEmail.js +18 -10
  179. package/dist/esm/form/components/form-email/common/composeClasses.js +2 -1
  180. package/dist/esm/form/components/newsletter/Newsletter.js +8 -3
  181. package/dist/esm/form/components/newsletter/Newsletter.liquid.js +1 -1
  182. package/dist/esm/form/components/newsletter/common/composeStyles.js +4 -2
  183. package/dist/esm/form/components/textarea/TextArea.js +16 -8
  184. package/dist/esm/form/components/textarea/common/composeClasses.js +1 -1
  185. package/dist/esm/form/components/textfield/TextField.js +17 -9
  186. package/dist/esm/form/components/textfield/common/composeClasses.js +2 -2
  187. package/dist/esm/form/setting/contact/Contact.js +5 -1
  188. package/dist/esm/form/setting/form-checkbox/configs/settings.js +153 -6
  189. package/dist/esm/form/setting/form-checkbox/configs/uiV2.js +137 -0
  190. package/dist/esm/form/setting/form-dropdown/configs/settings.js +147 -0
  191. package/dist/esm/form/setting/form-dropdown/configs/uiV2.js +156 -4
  192. package/dist/esm/form/setting/newsletter/configs/settings.js +132 -3
  193. package/dist/esm/form/setting/newsletter/configs/uiV2.js +93 -0
  194. package/dist/esm/form/setting/submit-button/configs/settings.js +37 -0
  195. package/dist/esm/form/setting/submit-button/configs/uiV2.js +13 -0
  196. package/dist/esm/grid/row/commons/getInnerRadius.js +11 -10
  197. package/dist/esm/grid/row/setting/configs/uiV2.js +1 -1
  198. package/dist/esm/header/components/kind/basic/index.js +1 -0
  199. package/dist/esm/header/components/kind/modern/index.js +1 -1
  200. package/dist/esm/helpers.js +52 -1
  201. package/dist/esm/icon-list/setting/configs/uiV2.js +1 -1
  202. package/dist/esm/icon-list-v2/setting/configs/settings.js +5 -5
  203. package/dist/esm/image/components/AdaptiveImage.js +64 -50
  204. package/dist/esm/image/components/AdaptiveImage.liquid.js +57 -45
  205. package/dist/esm/image/components/Image.js +66 -155
  206. package/dist/esm/image/components/Image.liquid.js +69 -104
  207. package/dist/esm/image/components/Modal3d.liquid.js +55 -22
  208. package/dist/esm/image/components/NextImage.js +26 -59
  209. package/dist/esm/image/components/NextImage.liquid.js +28 -116
  210. package/dist/esm/image/components/Video.liquid.js +38 -13
  211. package/dist/esm/image/components/common/attributes.js +108 -0
  212. package/dist/esm/image/components/common/classes.js +51 -0
  213. package/dist/esm/image/components/common/constants.js +11 -0
  214. package/dist/esm/image/components/common/data.js +22 -0
  215. package/dist/esm/image/components/common/helpers.js +69 -0
  216. package/dist/esm/image/components/common/styles.js +80 -0
  217. package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +78 -0
  218. package/dist/esm/image/components/helpers/getNextImageReactAttrs.js +38 -0
  219. package/dist/esm/image/components/hooks/useCheckNoImage.js +23 -0
  220. package/dist/esm/image/helpers/getSrcSet.js +1 -2
  221. package/dist/esm/image/next.js +1 -5
  222. package/dist/esm/image/setting/configs/settings.js +14 -8
  223. package/dist/esm/image/setting/configs/uiV2.js +61 -15
  224. package/dist/esm/image/setting/index.js +1 -3
  225. package/dist/esm/image-comparison/components/CompareImage.js +1 -1
  226. package/dist/esm/image-comparison/components/CompareImage.liquid.js +1 -1
  227. package/dist/esm/index.js +4 -5
  228. package/dist/esm/index.liquid.js +3 -3
  229. package/dist/esm/post-purchase/callout-banner/components/CalloutText.js +2 -1
  230. package/dist/esm/post-purchase/callout-banner/components/common/getClasses.js +5 -2
  231. package/dist/esm/post-purchase/callout-banner/components/common/getStyles.js +2 -4
  232. package/dist/esm/post-purchase/callout-banner/setting/config/callout-box/setting.js +4 -10
  233. package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +1 -11
  234. package/dist/esm/post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js +9 -23
  235. package/dist/esm/post-purchase/countdown-timer/components/TextCountdown.js +13 -27
  236. package/dist/esm/post-purchase/countdown-timer/components/common/getClasses.js +21 -0
  237. package/dist/esm/post-purchase/countdown-timer/components/common/getStyles.js +19 -0
  238. package/dist/esm/post-purchase/countdown-timer/hooks/useCountdownTimer.js +19 -3
  239. package/dist/esm/post-purchase/countdown-timer/hooks/useGetTimeExpired.js +16 -0
  240. package/dist/esm/post-purchase/countdown-timer/settings/CountdownTimer.js +9 -358
  241. package/dist/esm/post-purchase/countdown-timer/settings/config/preset.js +24 -0
  242. package/dist/esm/post-purchase/countdown-timer/settings/config/setting.js +241 -0
  243. package/dist/esm/post-purchase/countdown-timer/settings/config/uiV1.js +123 -0
  244. package/dist/esm/post-purchase/countdown-timer/settings/config/uiV2.js +183 -0
  245. package/dist/esm/post-purchase/image/common/getClasses.js +1 -1
  246. package/dist/esm/post-purchase/image/setting/setting-v2.js +5 -5
  247. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +25 -27
  248. package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +5 -5
  249. package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/settings.js +2 -2
  250. package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
  251. package/dist/esm/product/components/FileUpload/components/common/index.js +3 -0
  252. package/dist/esm/product/components/Product.liquid.js +1 -1
  253. package/dist/esm/product/components/ProductBundle/common/classes.js +19 -0
  254. package/dist/esm/product/components/ProductBundle/common/index.js +3 -0
  255. package/dist/esm/product/components/ProductBundle/common/styles.js +80 -0
  256. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscount.js +78 -0
  257. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js +70 -0
  258. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +65 -0
  259. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +42 -0
  260. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountItem.js +19 -0
  261. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountItem.liquid.js +10 -0
  262. package/dist/esm/product/components/{ProductBundleDiscount.js → ProductBundle/hooks/useProductBundleDataState.js} +21 -216
  263. package/dist/esm/product/components/ProductBundle/hooks/useProductBundleDiscountState.js +52 -0
  264. package/dist/esm/product/{setting → components/ProductBundle/setting}/ProductBundleDiscount.js +7 -7
  265. package/dist/esm/product/{setting → components/ProductBundle/setting}/ProductBundleDiscountItem.js +3 -0
  266. package/dist/esm/product/components/ProductButton.js +1 -1
  267. package/dist/esm/product/components/ProductButton.liquid.js +1 -1
  268. package/dist/esm/product/components/ProductPrice/common/getAttr.js +21 -0
  269. package/dist/esm/product/components/ProductPrice/common/getClasses.js +17 -0
  270. package/dist/esm/product/components/ProductPrice/common/getTextData.js +38 -0
  271. package/dist/esm/product/components/ProductPrice/hooks/useGpPrice.js +124 -0
  272. package/dist/esm/product/components/ProductPrice/index.js +50 -0
  273. package/dist/esm/product/components/ProductPrice/index.liquid.js +38 -0
  274. package/dist/esm/product/components/ProductQuickView/ProductQuickView.js +1 -1
  275. package/dist/esm/product/next.js +3 -3
  276. package/dist/esm/product/setting/index.js +2 -2
  277. package/dist/esm/product/setting/product/configs/presets.js +1 -0
  278. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +6 -7
  279. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +11 -12
  280. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +6 -5
  281. package/dist/esm/product/setting/product-list/configs/settingsV2.js +10 -8
  282. package/dist/esm/setting.js +5 -2
  283. package/dist/types/index.d.ts +174 -257
  284. package/package.json +2 -2
  285. package/dist/cjs/image/components/BackgroundImage.js +0 -102
  286. package/dist/cjs/image/components/Img.js +0 -28
  287. package/dist/cjs/image/components/helpers.js +0 -12
  288. package/dist/cjs/image/setting/BackgroundImage.js +0 -364
  289. package/dist/cjs/product/components/ProductBundleDiscount.liquid.js +0 -81
  290. package/dist/cjs/product/components/ProductBundleDiscountItem.js +0 -42
  291. package/dist/cjs/product/components/ProductBundleDiscountItem.liquid.js +0 -103
  292. package/dist/cjs/product/components/ProductPrice.js +0 -209
  293. package/dist/cjs/product/components/ProductPrice.liquid.js +0 -88
  294. package/dist/esm/image/components/BackgroundImage.js +0 -98
  295. package/dist/esm/image/components/Img.js +0 -24
  296. package/dist/esm/image/components/helpers.js +0 -9
  297. package/dist/esm/image/setting/BackgroundImage.js +0 -360
  298. package/dist/esm/product/components/ProductBundleDiscount.liquid.js +0 -77
  299. package/dist/esm/product/components/ProductBundleDiscountItem.js +0 -36
  300. package/dist/esm/product/components/ProductBundleDiscountItem.liquid.js +0 -99
  301. package/dist/esm/product/components/ProductPrice.js +0 -205
  302. package/dist/esm/product/components/ProductPrice.liquid.js +0 -83
@@ -0,0 +1,241 @@
1
+ const CountdownTimerSettings = [
2
+ {
3
+ id: 'setting',
4
+ controls: [
5
+ {
6
+ id: 'conditionGroup',
7
+ type: 'group',
8
+ label: 'Condition',
9
+ controls: [
10
+ {
11
+ id: 'conditionText',
12
+ label: 'Message',
13
+ type: 'input',
14
+ default: 'Offer expires in:',
15
+ clearButton: false
16
+ },
17
+ {
18
+ id: 'expired',
19
+ label: 'Expired after',
20
+ type: 'input:unit',
21
+ units: [
22
+ 'min'
23
+ ],
24
+ min: 1,
25
+ isNumber: true,
26
+ showDefaultUnit: false,
27
+ default: '30',
28
+ fallbackValue: 30
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ id: 'expiredGroup',
34
+ type: 'group',
35
+ label: 'After expiry',
36
+ controls: [
37
+ {
38
+ id: 'expiredText',
39
+ label: 'Message',
40
+ type: 'input',
41
+ default: 'Offer expired',
42
+ clearButton: false
43
+ },
44
+ {
45
+ id: 'whenTimeOut',
46
+ label: 'When times out',
47
+ type: 'select',
48
+ options: [
49
+ {
50
+ value: 'next-offer',
51
+ label: 'Show next offer'
52
+ },
53
+ {
54
+ value: 'hide-offer',
55
+ label: 'Hide timer'
56
+ },
57
+ {
58
+ value: 'thank-you',
59
+ label: 'Go to thank you'
60
+ }
61
+ ],
62
+ default: 'next-offer'
63
+ }
64
+ ]
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ id: 'style',
70
+ controls: [
71
+ {
72
+ id: 'bgColor',
73
+ type: 'select',
74
+ label: 'Background Color',
75
+ showSelectedIcon: true,
76
+ options: [
77
+ {
78
+ label: 'Red',
79
+ value: 'critical',
80
+ icon: 'gp-bg-color-red'
81
+ },
82
+ {
83
+ label: 'Blue',
84
+ value: 'info',
85
+ icon: 'gp-bg-color-blue'
86
+ },
87
+ {
88
+ label: 'Green',
89
+ value: 'success',
90
+ icon: 'gp-bg-color-green'
91
+ },
92
+ {
93
+ label: 'Yellow',
94
+ value: 'warning',
95
+ icon: 'gp-bg-color-yellow'
96
+ }
97
+ ],
98
+ default: 'critical'
99
+ },
100
+ {
101
+ id: 'direction',
102
+ label: 'Direction',
103
+ type: 'segment',
104
+ options: [
105
+ {
106
+ label: 'LTR',
107
+ value: 'ltr'
108
+ },
109
+ {
110
+ label: 'RTL',
111
+ value: 'rtl'
112
+ }
113
+ ],
114
+ default: 'ltr'
115
+ },
116
+ {
117
+ id: 'typo',
118
+ label: 'Label',
119
+ type: 'typography-post-purchase',
120
+ default: {
121
+ fontSize: 'xlarge',
122
+ textColor: 'default',
123
+ fontWeight: 'bold',
124
+ textTransform: 'none'
125
+ },
126
+ configLabel: {
127
+ fontSize: 'Font size',
128
+ textColor: 'Text color',
129
+ fontWeight: 'Font weight',
130
+ textTransform: 'Text transform'
131
+ }
132
+ },
133
+ {
134
+ id: 'textAlign',
135
+ label: 'Alignment',
136
+ type: 'option:value',
137
+ options: [
138
+ {
139
+ label: 'Left',
140
+ value: 'left',
141
+ type: 'text',
142
+ tooltip: 'Align left',
143
+ iconName: 'polaris-text-align-left'
144
+ },
145
+ {
146
+ label: 'Center',
147
+ value: 'center',
148
+ type: 'text',
149
+ tooltip: 'Align center',
150
+ iconName: 'polaris-text-align-center'
151
+ },
152
+ {
153
+ label: 'Right',
154
+ value: 'right',
155
+ type: 'text',
156
+ tooltip: 'Align right',
157
+ iconName: 'polaris-text-align-right'
158
+ },
159
+ {
160
+ label: 'Justify',
161
+ value: 'justify',
162
+ type: 'text',
163
+ tooltip: 'Align justify',
164
+ iconName: 'gp-text-align-justify'
165
+ }
166
+ ],
167
+ default: 'left'
168
+ },
169
+ {
170
+ id: 'width',
171
+ type: 'dropdown:input',
172
+ label: 'Width',
173
+ inputType: 'number',
174
+ units: [
175
+ 'px',
176
+ '%'
177
+ ],
178
+ hideUnit: false,
179
+ devices: {
180
+ desktop: {
181
+ default: '100%'
182
+ },
183
+ tablet: {
184
+ default: '100%'
185
+ },
186
+ mobile: {
187
+ default: '100%'
188
+ }
189
+ },
190
+ displayOptions: [
191
+ {
192
+ label: 'Fit content',
193
+ value: 'Auto',
194
+ showValue: true
195
+ },
196
+ {
197
+ label: 'Full',
198
+ value: '100%',
199
+ showValue: true
200
+ },
201
+ {
202
+ label: 'Default',
203
+ value: 'default',
204
+ showValue: true
205
+ }
206
+ ]
207
+ },
208
+ {
209
+ id: 'align',
210
+ label: 'Alignment',
211
+ type: 'option:value',
212
+ options: [
213
+ {
214
+ label: 'Left',
215
+ value: 'left',
216
+ type: 'align',
217
+ tooltip: 'Align left',
218
+ iconName: 'gp-align-left'
219
+ },
220
+ {
221
+ label: 'Center',
222
+ value: 'center',
223
+ type: 'align',
224
+ tooltip: 'Align center',
225
+ iconName: 'gp-align-center'
226
+ },
227
+ {
228
+ label: 'Right',
229
+ value: 'right',
230
+ type: 'align',
231
+ tooltip: 'Align right',
232
+ iconName: 'gp-align-right'
233
+ }
234
+ ],
235
+ default: 'left'
236
+ }
237
+ ]
238
+ }
239
+ ];
240
+
241
+ export { CountdownTimerSettings };
@@ -0,0 +1,123 @@
1
+ const SettingUIV1 = [
2
+ {
3
+ type: 'group',
4
+ label: {
5
+ en: 'Condition'
6
+ },
7
+ controls: [
8
+ {
9
+ type: 'control',
10
+ label: {
11
+ en: 'Message'
12
+ },
13
+ setting: {
14
+ id: 'conditionText'
15
+ },
16
+ layout: 'vertical'
17
+ },
18
+ {
19
+ type: 'control',
20
+ label: {
21
+ en: 'Expired after'
22
+ },
23
+ setting: {
24
+ id: 'expired'
25
+ }
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ type: 'group',
31
+ label: {
32
+ en: 'After expiry'
33
+ },
34
+ controls: [
35
+ {
36
+ type: 'control',
37
+ label: {
38
+ en: 'Message'
39
+ },
40
+ setting: {
41
+ id: 'expiredText'
42
+ },
43
+ layout: 'vertical'
44
+ },
45
+ {
46
+ type: 'control',
47
+ label: {
48
+ en: 'When times out'
49
+ },
50
+ setting: {
51
+ id: 'whenTimeOut'
52
+ }
53
+ }
54
+ ]
55
+ },
56
+ {
57
+ type: 'group',
58
+ label: {
59
+ en: 'Style'
60
+ },
61
+ controls: [
62
+ {
63
+ type: 'control',
64
+ label: {
65
+ en: 'Background color'
66
+ },
67
+ setting: {
68
+ id: 'bgColor'
69
+ }
70
+ },
71
+ {
72
+ type: 'control',
73
+ label: {
74
+ en: ''
75
+ },
76
+ setting: {
77
+ id: 'typo'
78
+ },
79
+ layout: 'vertical'
80
+ },
81
+ {
82
+ type: 'control',
83
+ setting: {
84
+ id: 'textAlign'
85
+ },
86
+ label: {
87
+ en: 'Text align'
88
+ }
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ type: 'group',
94
+ label: {
95
+ en: 'Size'
96
+ },
97
+ controls: [
98
+ {
99
+ type: 'control',
100
+ label: {
101
+ en: 'Width'
102
+ },
103
+ setting: {
104
+ id: 'width'
105
+ }
106
+ }
107
+ ]
108
+ },
109
+ {
110
+ type: 'control',
111
+ label: {
112
+ en: 'Align'
113
+ },
114
+ setting: {
115
+ id: 'align'
116
+ },
117
+ options: {
118
+ label: 'large'
119
+ }
120
+ }
121
+ ];
122
+
123
+ export { SettingUIV1 };
@@ -0,0 +1,183 @@
1
+ const SettingUIV2 = [
2
+ {
3
+ label: {
4
+ en: 'Condition'
5
+ },
6
+ controls: [
7
+ {
8
+ type: 'combo',
9
+ label: {
10
+ en: 'Message'
11
+ },
12
+ iconName: 'polaris-text-block',
13
+ getValueFromSettingID: 'conditionText',
14
+ isHideClear: true,
15
+ controls: [
16
+ {
17
+ type: 'control',
18
+ label: {
19
+ en: 'Content'
20
+ },
21
+ setting: {
22
+ id: 'conditionText'
23
+ },
24
+ layout: 'vertical'
25
+ }
26
+ ],
27
+ layout: 'horizontal'
28
+ },
29
+ {
30
+ type: 'control',
31
+ label: {
32
+ en: 'Expired after'
33
+ },
34
+ setting: {
35
+ id: 'expired'
36
+ },
37
+ layout: 'horizontal'
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ label: {
43
+ en: 'After expiry'
44
+ },
45
+ controls: [
46
+ {
47
+ type: 'combo',
48
+ label: {
49
+ en: 'Message'
50
+ },
51
+ iconName: 'polaris-text-block',
52
+ getValueFromSettingID: 'expiredText',
53
+ isHideClear: true,
54
+ controls: [
55
+ {
56
+ type: 'control',
57
+ label: {
58
+ en: 'Content'
59
+ },
60
+ setting: {
61
+ id: 'expiredText'
62
+ },
63
+ layout: 'vertical'
64
+ }
65
+ ],
66
+ layout: 'horizontal'
67
+ },
68
+ {
69
+ type: 'control',
70
+ label: {
71
+ en: 'When times out'
72
+ },
73
+ setting: {
74
+ id: 'whenTimeOut'
75
+ },
76
+ layout: 'horizontal'
77
+ }
78
+ ]
79
+ },
80
+ {
81
+ label: {
82
+ en: 'Text'
83
+ },
84
+ controls: [
85
+ {
86
+ type: 'control',
87
+ label: {
88
+ en: 'Direction'
89
+ },
90
+ setting: {
91
+ id: 'direction'
92
+ },
93
+ controlChangeTrigger: {
94
+ settings: [
95
+ {
96
+ action: {
97
+ controlId: 'textAlign',
98
+ newValue: 'right',
99
+ groupType: 'style',
100
+ controlType: 'style'
101
+ },
102
+ condition: `direction === 'rtl'`,
103
+ source: [
104
+ 'direction'
105
+ ]
106
+ }
107
+ ],
108
+ options: {
109
+ noRecordHistory: true
110
+ }
111
+ }
112
+ },
113
+ {
114
+ type: 'control',
115
+ label: {
116
+ en: 'Background color'
117
+ },
118
+ setting: {
119
+ id: 'bgColor'
120
+ },
121
+ layout: 'horizontal'
122
+ },
123
+ {
124
+ id: 'typo',
125
+ type: 'control',
126
+ label: {
127
+ en: ''
128
+ },
129
+ setting: {
130
+ id: 'typo'
131
+ },
132
+ layout: 'vertical'
133
+ },
134
+ {
135
+ type: 'control',
136
+ label: {
137
+ en: 'Align'
138
+ },
139
+ setting: {
140
+ id: 'textAlign'
141
+ },
142
+ layout: 'horizontal'
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ label: {
148
+ en: 'Size'
149
+ },
150
+ controls: [
151
+ {
152
+ label: {
153
+ en: 'Width'
154
+ },
155
+ setting: {
156
+ id: 'width'
157
+ },
158
+ type: 'control'
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ controls: [
164
+ {
165
+ label: {
166
+ en: 'Align'
167
+ },
168
+ conditionEnable: '!(parseInt(width) >= 100 && width?.includes("%"))',
169
+ options: {
170
+ labelVariant: 'primary',
171
+ fullWidth: true,
172
+ disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
173
+ },
174
+ setting: {
175
+ id: 'align'
176
+ },
177
+ layout: 'horizontal'
178
+ }
179
+ ]
180
+ }
181
+ ];
182
+
183
+ export { SettingUIV2 };
@@ -1,7 +1,7 @@
1
1
  import { composeClasses } from '@gem-sdk/core';
2
2
 
3
3
  const getFigureClass = ()=>{
4
- const classList = 'gp-relative gp-inline-block gp-w-auto gp-align-middle gp-pointer-events-none';
4
+ const classList = 'gp-relative gp-inline-block gp-w-full gp-align-middle gp-pointer-events-none';
5
5
  return composeClasses(classList);
6
6
  };
7
7
  const getAdaptiveClass = ()=>{
@@ -94,21 +94,21 @@ const ImagePostPurchaseSettingV2 = [
94
94
  },
95
95
  {
96
96
  id: 'objectFit',
97
- type: 'layout-segment',
98
- iconViewBox: '0 0 66 48',
99
- enableItemBackground: true,
97
+ type: 'option:illustration',
100
98
  enableTooltip: true,
101
99
  label: 'Image scale',
102
100
  options: [
103
101
  {
104
102
  label: 'Fill image',
105
103
  value: 'cover',
106
- type: 'image'
104
+ type: 'image',
105
+ svgName: 'gp-image-cover'
107
106
  },
108
107
  {
109
108
  label: 'Fit image',
110
109
  value: 'contain',
111
- type: 'image'
110
+ type: 'image',
111
+ svgName: 'gp-image-contain'
112
112
  }
113
113
  ],
114
114
  default: 'cover'
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useEffect } from 'react';
4
4
  import { postPurchaseSpacing } from '../../../../utils/helper.js';
5
5
  import { getImageListClass } from '../../../common/getClasses.js';
@@ -41,32 +41,30 @@ const CarouselWrapperPostPurchase = ({ styles, setting, productImages, objectFit
41
41
  itemPerSlide,
42
42
  setMoveToIdx
43
43
  ]);
44
- return /*#__PURE__*/ jsx("div", {
45
- children: /*#__PURE__*/ jsxs("div", {
46
- className: classes,
47
- style: style,
48
- children: [
49
- /*#__PURE__*/ jsx(ArrowPostPurchase, {
50
- type: "prev",
51
- navigation: navigation,
52
- vertical: vertical,
53
- hidden: isHiddenIcon
54
- }),
55
- /*#__PURE__*/ jsx(CarouselPostPurchase, {
56
- productImages: productImages,
57
- itemPerRow: itemPerSlide,
58
- border: border,
59
- aspectRatio: aspectRatio,
60
- objectFit: objectFit
61
- }),
62
- /*#__PURE__*/ jsx(ArrowPostPurchase, {
63
- type: "next",
64
- navigation: navigation,
65
- vertical: vertical,
66
- hidden: isHiddenIcon
67
- })
68
- ]
69
- })
44
+ return /*#__PURE__*/ jsxs("div", {
45
+ className: classes,
46
+ style: style,
47
+ children: [
48
+ /*#__PURE__*/ jsx(ArrowPostPurchase, {
49
+ type: "prev",
50
+ navigation: navigation,
51
+ vertical: vertical,
52
+ hidden: isHiddenIcon
53
+ }),
54
+ /*#__PURE__*/ jsx(CarouselPostPurchase, {
55
+ productImages: productImages,
56
+ itemPerRow: itemPerSlide,
57
+ border: border,
58
+ aspectRatio: aspectRatio,
59
+ objectFit: objectFit
60
+ }),
61
+ /*#__PURE__*/ jsx(ArrowPostPurchase, {
62
+ type: "next",
63
+ navigation: navigation,
64
+ vertical: vertical,
65
+ hidden: isHiddenIcon
66
+ })
67
+ ]
70
68
  });
71
69
  };
72
70
 
@@ -281,21 +281,21 @@ const SettingV2 = [
281
281
  },
282
282
  {
283
283
  id: 'ilObjectFit',
284
- type: 'layout-segment',
285
- iconViewBox: '0 0 66 48',
286
- enableItemBackground: true,
284
+ type: 'option:illustration',
287
285
  enableTooltip: true,
288
286
  label: 'Image scale',
289
287
  options: [
290
288
  {
291
289
  label: 'Fill image',
292
290
  value: 'cover',
293
- type: 'image'
291
+ type: 'image',
292
+ svgName: 'gp-image-cover'
294
293
  },
295
294
  {
296
295
  label: 'Fit image',
297
296
  value: 'contain',
298
- type: 'image'
297
+ type: 'image',
298
+ svgName: 'gp-image-contain'
299
299
  }
300
300
  ],
301
301
  default: 'cover'
@@ -43,14 +43,14 @@ const ProductPriceBreakdownSettings = [
43
43
  id: 'contentShow',
44
44
  type: 'input',
45
45
  default: 'Show price breakdown',
46
- defaultValue: 'Show price breakdown',
46
+ fallbackValue: 'Show price breakdown',
47
47
  clearButton: false
48
48
  },
49
49
  {
50
50
  id: 'contentHide',
51
51
  type: 'input',
52
52
  default: 'Hide price breakdown',
53
- defaultValue: 'Hide price breakdown',
53
+ fallbackValue: 'Hide price breakdown',
54
54
  clearButton: false
55
55
  }
56
56
  ]