@gem-sdk/components 2.0.0-dev.305 → 2.0.0-dev.328

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 (1091) hide show
  1. package/dist/cjs/accordion/components/AccordionItem.liquid.js +2 -2
  2. package/dist/cjs/accordion/hooks/useAccordion.js +8 -1
  3. package/dist/cjs/accordion/index.js +17 -0
  4. package/dist/cjs/accordion/setting/configs/settings.js +5 -2
  5. package/dist/cjs/article/components/ArticleAuthor.js +3 -2
  6. package/dist/cjs/article/components/ArticleList.js +1 -1
  7. package/dist/cjs/article/components/ArticleList.liquid.js +7 -7
  8. package/dist/cjs/article/components/ArticlePagination.js +1 -1
  9. package/dist/cjs/article/components/ArticleReadMore.js +1 -1
  10. package/dist/cjs/article/index.js +39 -0
  11. package/dist/cjs/article/next.js +31 -41
  12. package/dist/cjs/article/setting/ArticleExcerpt.js +4 -4
  13. package/dist/cjs/article/setting/ArticleList.js +48 -15
  14. package/dist/cjs/article/setting/configs/ArticleAuthor/presets.js +28 -1
  15. package/dist/cjs/article/setting/configs/ArticleAuthor/uiV2.js +3 -12
  16. package/dist/cjs/article/setting/configs/ArticleCategory/presets.js +19 -1
  17. package/dist/cjs/article/setting/configs/ArticleCategory/uiV2.js +8 -0
  18. package/dist/cjs/article/setting/configs/ArticleDate/presets.js +19 -1
  19. package/dist/cjs/article/setting/configs/ArticleDate/uiV2.js +8 -0
  20. package/dist/cjs/article/setting/configs/ArticleImage/settings.js +41 -7
  21. package/dist/cjs/article/setting/configs/ArticleTag/settings.js +1 -4
  22. package/dist/cjs/article/setting/configs/ArticleTitle/uiV2.js +8 -16
  23. package/dist/cjs/banner/components/HeroBanner.liquid.js +2 -2
  24. package/dist/cjs/banner/components/HeroBannerItem.js +6 -6
  25. package/dist/cjs/banner/components/HeroBannerItem.liquid.js +8 -146
  26. package/dist/cjs/banner/components/hooks/useHeroBanner.js +1 -1
  27. package/dist/cjs/banner/index.js +18 -0
  28. package/dist/cjs/banner/setting/HeroBanner.js +1 -2
  29. package/dist/cjs/banner/setting/setting.js +24 -1180
  30. package/dist/cjs/banner/setting/uiV2.js +77 -11
  31. package/dist/cjs/breadcrumb/index.js +13 -0
  32. package/dist/cjs/builder.js +227 -226
  33. package/dist/cjs/button/components/Button.js +2 -2
  34. package/dist/cjs/button/components/common/classes.js +1 -1
  35. package/dist/cjs/button/components/common/data.js +3 -2
  36. package/dist/cjs/button/components/common/styles.js +32 -33
  37. package/dist/cjs/button/index.js +14 -0
  38. package/dist/cjs/carousel/components/Arrow.liquid.js +1 -1
  39. package/dist/cjs/carousel/components/Carousel.js +31 -12
  40. package/dist/cjs/carousel/components/common/carousel.js +5 -5
  41. package/dist/cjs/carousel/index.js +18 -0
  42. package/dist/cjs/cart/components/CartList.js +1 -1
  43. package/dist/cjs/cart/index.js +46 -0
  44. package/dist/cjs/code/components/CSSCode.js +0 -1
  45. package/dist/cjs/code/index.js +14 -0
  46. package/dist/cjs/collection/components/collection-banner/common/classes.js +36 -0
  47. package/dist/cjs/collection/components/collection-banner/common/index.js +19 -0
  48. package/dist/cjs/collection/components/collection-banner/common/styles.js +46 -0
  49. package/dist/cjs/collection/components/collection-banner/components/CollectionBanner.js +106 -0
  50. package/dist/cjs/collection/components/collection-banner/components/CollectionBanner.liquid.js +94 -0
  51. package/dist/cjs/collection/components/collection-description/common/classes.js +21 -0
  52. package/dist/cjs/collection/components/collection-description/common/constant.js +9 -0
  53. package/dist/cjs/collection/components/collection-description/common/index.js +36 -0
  54. package/dist/cjs/collection/components/collection-description/common/styles.js +86 -0
  55. package/dist/cjs/collection/components/collection-description/components/CollectionDescription.js +103 -0
  56. package/dist/cjs/collection/components/collection-description/components/CollectionDescription.liquid.js +99 -0
  57. package/dist/cjs/collection/components/collection-description/hook/useDescription.js +89 -0
  58. package/dist/cjs/collection/components/collection-paginator/common/classes.js +25 -0
  59. package/dist/cjs/collection/components/collection-paginator/common/index.js +195 -0
  60. package/dist/cjs/collection/components/collection-paginator/common/styles.js +61 -0
  61. package/dist/cjs/collection/components/collection-paginator/components/CollectionPaginator.js +42 -0
  62. package/dist/cjs/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +62 -0
  63. package/dist/cjs/collection/components/{CollectionTitle.js → collection-title/components/CollectionTitle.js} +3 -4
  64. package/dist/cjs/collection/components/{CollectionTitle.liquid.js → collection-title/components/CollectionTitle.liquid.js} +1 -1
  65. package/dist/cjs/collection/components/collection-toolbar/common/classes.js +33 -0
  66. package/dist/cjs/collection/components/collection-toolbar/common/constant.js +40 -0
  67. package/dist/cjs/collection/components/collection-toolbar/common/index.js +28 -0
  68. package/dist/cjs/collection/components/collection-toolbar/common/style.js +51 -0
  69. package/dist/cjs/collection/components/collection-toolbar/components/CollectionToolbar.js +99 -0
  70. package/dist/cjs/collection/components/collection-toolbar/components/CollectionToolbar.liquid.js +101 -0
  71. package/dist/cjs/collection/index.js +26 -0
  72. package/dist/cjs/collection/next.js +5 -5
  73. package/dist/cjs/collection/setting/collection-paginator/configs/settings.js +5 -0
  74. package/dist/cjs/countdown-timer/components/Countdown.js +1 -1
  75. package/dist/cjs/countdown-timer/index.js +14 -0
  76. package/dist/cjs/coupon/common/classes.js +9 -0
  77. package/dist/cjs/coupon/common/index.js +16 -0
  78. package/dist/cjs/coupon/common/styles.js +46 -0
  79. package/dist/cjs/coupon/components/Coupon.js +42 -84
  80. package/dist/cjs/coupon/components/Coupon.liquid.js +29 -40
  81. package/dist/cjs/coupon/hooks/useCoupon.js +32 -0
  82. package/dist/cjs/coupon/index.js +14 -0
  83. package/dist/cjs/coupon/setting/Coupon.js +8 -1191
  84. package/dist/cjs/coupon/setting/config/settings.js +832 -0
  85. package/dist/cjs/coupon/setting/config/uiV1.js +367 -0
  86. package/dist/cjs/coupon/setting/config/uiV2.js +352 -0
  87. package/dist/cjs/dialog/index.js +14 -0
  88. package/dist/cjs/estimate-delivery/index.js +14 -0
  89. package/dist/cjs/form/components/form-email/FormEmail.liquid.js +1 -1
  90. package/dist/cjs/form/components/submit-button/SubmitButton.js +8 -10
  91. package/dist/cjs/form/components/textinput/common/composeStyles.js +0 -2
  92. package/dist/cjs/form/index.js +30 -0
  93. package/dist/cjs/form/setting/contact/Contact.js +2 -0
  94. package/dist/cjs/form/setting/form-checkbox/FormCheckbox.js +2 -2
  95. package/dist/cjs/form/setting/form-checkbox/configs/settings.js +3 -1
  96. package/dist/cjs/form/setting/form-dropdown/FormDropdown.js +3 -3
  97. package/dist/cjs/form/setting/form-dropdown/configs/settings.js +3 -1
  98. package/dist/cjs/form/setting/form-email/configs/FormEmail.js +3 -3
  99. package/dist/cjs/form/setting/form-email/configs/settings.js +3 -1
  100. package/dist/cjs/form/setting/form-textarea/Textarea.js +3 -3
  101. package/dist/cjs/form/setting/form-textarea/configs/settings.js +3 -1
  102. package/dist/cjs/form/setting/newsletter/Newsletter.js +2 -2
  103. package/dist/cjs/form/setting/newsletter/configs/settings.js +3 -1
  104. package/dist/cjs/form/setting/submit-button/SubmitButton.js +2 -2
  105. package/dist/cjs/form/setting/submit-button/configs/settings.js +3 -1
  106. package/dist/cjs/form/setting/text-field/TextField.js +3 -3
  107. package/dist/cjs/form/setting/text-field/configs/settings.js +3 -1
  108. package/dist/cjs/form/setting/text-input/TextInput.js +3 -3
  109. package/dist/cjs/form/setting/text-input/configs/settings.js +3 -1
  110. package/dist/cjs/grid/index.js +22 -0
  111. package/dist/cjs/grid/row/Row.js +5 -3
  112. package/dist/cjs/grid/row/Row.liquid.js +1 -4
  113. package/dist/cjs/grid/row/commons/getAttr.js +2 -5
  114. package/dist/cjs/header/components/kind/basic/index.js +3 -3
  115. package/dist/cjs/header/components/kind/modern/index.js +4 -4
  116. package/dist/cjs/header/index.js +24 -0
  117. package/dist/cjs/heading/index.js +14 -0
  118. package/dist/cjs/helpers.js +25 -6
  119. package/dist/cjs/icon/index.js +14 -0
  120. package/dist/cjs/icon/setting/Icon.js +2 -2
  121. package/dist/cjs/icon-list/index.js +16 -0
  122. package/dist/cjs/icon-list-hoz/index.js +16 -0
  123. package/dist/cjs/icon-list-v2/common/classes.js +31 -0
  124. package/dist/cjs/icon-list-v2/common/index.js +33 -0
  125. package/dist/cjs/icon-list-v2/common/styles.js +97 -0
  126. package/dist/cjs/icon-list-v2/components/IconList.js +111 -131
  127. package/dist/cjs/icon-list-v2/components/IconList.liquid.js +99 -92
  128. package/dist/cjs/icon-list-v2/index.js +14 -0
  129. package/dist/cjs/image/components/common/attributes.js +4 -2
  130. package/dist/cjs/image/components/common/helpers.js +4 -0
  131. package/dist/cjs/image/components/helpers/getNextImageLiquidAttrs.js +3 -2
  132. package/dist/cjs/image/helpers/getSrcSet.js +1 -1
  133. package/dist/cjs/image/index.js +16 -0
  134. package/dist/cjs/image/setting/configs/presets.js +3 -0
  135. package/dist/cjs/image/setting/configs/settings.js +69 -11
  136. package/dist/cjs/image/setting/configs/uiV2.js +127 -1
  137. package/dist/cjs/image-comparison/components/CompareImage.js +230 -562
  138. package/dist/cjs/image-comparison/components/CompareImage.liquid.js +249 -322
  139. package/dist/cjs/image-comparison/components/ImageComparison.js +16 -34
  140. package/dist/cjs/image-comparison/components/ImageComparison.liquid.js +16 -10
  141. package/dist/cjs/image-comparison/components/Label.js +31 -0
  142. package/dist/cjs/image-comparison/components/Label.liquid.js +18 -44
  143. package/dist/cjs/image-comparison/components/SlideHandle.js +57 -0
  144. package/dist/cjs/image-comparison/components/SlideHandle.liquid.js +37 -0
  145. package/dist/cjs/image-comparison/components/common/attributes.js +68 -0
  146. package/dist/cjs/image-comparison/components/common/classes.js +40 -0
  147. package/dist/cjs/image-comparison/components/common/constant.js +10 -0
  148. package/dist/cjs/image-comparison/components/common/data.js +61 -0
  149. package/dist/cjs/image-comparison/components/common/helpers.js +135 -5
  150. package/dist/cjs/image-comparison/components/common/styles.js +182 -0
  151. package/dist/cjs/image-comparison/components/helpers/getReactStyles.js +50 -0
  152. package/dist/cjs/image-comparison/components/hooks/useCompareImage.js +192 -0
  153. package/dist/cjs/image-comparison/index.js +14 -0
  154. package/dist/cjs/image-comparison/setting/configs/settings.js +94 -40
  155. package/dist/cjs/image-comparison/setting/configs/uiV2.js +97 -30
  156. package/dist/cjs/image-detection/index.js +12 -0
  157. package/dist/cjs/image-detection/setting/ImageDetection.js +1 -1
  158. package/dist/cjs/index.js +344 -372
  159. package/dist/cjs/index.liquid.js +108 -126
  160. package/dist/cjs/input/index.js +12 -0
  161. package/dist/cjs/line/index.js +12 -0
  162. package/dist/cjs/link/index.js +13 -0
  163. package/dist/cjs/marquee/common/classes.js +23 -0
  164. package/dist/cjs/marquee/common/index.js +23 -0
  165. package/dist/cjs/marquee/common/styles.js +224 -0
  166. package/dist/cjs/marquee/components/Marquee.js +125 -128
  167. package/dist/cjs/marquee/components/Marquee.liquid.js +81 -197
  168. package/dist/cjs/marquee/components/MarqueeBase.js +15 -156
  169. package/dist/cjs/marquee/components/MarqueeBase.liquid.js +36 -78
  170. package/dist/cjs/marquee/components/MarqueeItem.js +28 -72
  171. package/dist/cjs/marquee/components/MarqueeItem.liquid.js +18 -26
  172. package/dist/cjs/marquee/hooks/useMarquee.js +47 -0
  173. package/dist/cjs/marquee/hooks/useMarqueeBase.js +164 -0
  174. package/dist/cjs/marquee/hooks/useMarqueeItem.js +61 -0
  175. package/dist/cjs/marquee/hooks/useMarqueeScrollToItem.js +5 -2
  176. package/dist/cjs/marquee/hooks/useMarqueeStyles.js +4 -126
  177. package/dist/cjs/marquee/index.js +16 -0
  178. package/dist/cjs/marquee/setting/configs/uiV2.js +3 -1
  179. package/dist/cjs/menu/index.js +14 -0
  180. package/dist/cjs/modal/index.js +15 -0
  181. package/dist/cjs/next.js +61 -45
  182. package/dist/cjs/pagination/index.js +12 -0
  183. package/dist/cjs/post-purchase/advanced-list/components/common/getClasses.js +1 -1
  184. package/dist/cjs/post-purchase/advanced-list/index.js +15 -0
  185. package/dist/cjs/post-purchase/advanced-list/next.js +7 -2
  186. package/dist/cjs/post-purchase/advanced-list/setting/template.js +1 -4
  187. package/dist/cjs/post-purchase/button/common/getStyles.js +2 -2
  188. package/dist/cjs/post-purchase/button/index.js +14 -0
  189. package/dist/cjs/post-purchase/button/next.js +6 -1
  190. package/dist/cjs/post-purchase/button/setting/configs/settings.js +1 -0
  191. package/dist/cjs/post-purchase/callout-banner/components/CalloutBox.js +2 -2
  192. package/dist/cjs/post-purchase/callout-banner/index.js +19 -0
  193. package/dist/cjs/post-purchase/callout-banner/next.js +7 -2
  194. package/dist/cjs/post-purchase/countdown-timer/components/TextCountdown.js +6 -1
  195. package/dist/cjs/post-purchase/countdown-timer/hooks/useCountdownTimer.js +2 -3
  196. package/dist/cjs/post-purchase/countdown-timer/index.js +13 -0
  197. package/dist/cjs/post-purchase/countdown-timer/next.js +6 -1
  198. package/dist/cjs/post-purchase/image/index.js +14 -0
  199. package/dist/cjs/post-purchase/image/next.js +6 -1
  200. package/dist/cjs/post-purchase/image/setting/setting-v2.js +2 -2
  201. package/dist/cjs/post-purchase/line/components/PostPurchaseLine.js +0 -7
  202. package/dist/cjs/post-purchase/line/components/common/getStyle.js +4 -4
  203. package/dist/cjs/post-purchase/line/index.js +13 -0
  204. package/dist/cjs/post-purchase/line/next.js +6 -1
  205. package/dist/cjs/post-purchase/line/setting/configs/settings.js +1 -3
  206. package/dist/cjs/post-purchase/line/types/index.js +9 -0
  207. package/dist/cjs/post-purchase/link/index.js +14 -0
  208. package/dist/cjs/post-purchase/link/next.js +6 -1
  209. package/dist/cjs/post-purchase/product/components/ProductDiscountTag.js +5 -2
  210. package/dist/cjs/post-purchase/product/components/ProductOffer.js +4 -4
  211. package/dist/cjs/post-purchase/product/components/priceBreakdown/MoneyLine.js +3 -1
  212. package/dist/cjs/post-purchase/product/components/product-image/FeatureImage.js +3 -4
  213. package/dist/cjs/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +2 -2
  214. package/dist/cjs/post-purchase/product/components/product-image/ItemGridPostPurchase.js +2 -2
  215. package/dist/cjs/post-purchase/product/helpers/product-price-breakdown/getStyles.js +8 -0
  216. package/dist/cjs/post-purchase/product/helpers/product-quantity/getStyles.js +1 -6
  217. package/dist/cjs/post-purchase/product/hooks/product-quantity/useHandleQuantity.js +3 -2
  218. package/dist/cjs/post-purchase/product/index.js +37 -0
  219. package/dist/cjs/post-purchase/product/next.js +15 -10
  220. package/dist/cjs/post-purchase/product/settings/product-discount-tag/settingV2.js +97 -0
  221. package/dist/cjs/post-purchase/product/settings/product-discount-tag/uiV2.js +44 -0
  222. package/dist/cjs/post-purchase/product/settings/product-image/ProductImages.js +5 -15
  223. package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +21 -9
  224. package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +52 -46
  225. package/dist/cjs/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
  226. package/dist/cjs/post-purchase/product/settings/product-variants/settings/settingsV2.js +2 -0
  227. package/dist/cjs/post-purchase/text/index.js +7 -3
  228. package/dist/cjs/post-purchase/text/next.js +7 -2
  229. package/dist/cjs/product/components/DynamicCheckout/common/styles.js +2 -2
  230. package/dist/cjs/product/components/FileUpload/components/common/index.js +0 -140
  231. package/dist/cjs/product/components/FileUpload/components/config/setting.js +2 -2
  232. package/dist/cjs/product/components/ProductBadge/utils/stylesV2.js +9 -2
  233. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountItem.js +3 -1
  234. package/dist/cjs/product/components/ProductButton/ProductButton.js +47 -0
  235. package/dist/cjs/product/components/ProductButton/ProductButton.liquid.js +66 -0
  236. package/dist/cjs/product/components/ProductButton/common/classes.js +38 -0
  237. package/dist/cjs/product/components/ProductButton/common/constants.js +35 -0
  238. package/dist/cjs/product/components/ProductButton/common/data.js +57 -0
  239. package/dist/cjs/product/components/ProductButton/common/helpers.js +80 -0
  240. package/dist/cjs/product/components/ProductButton/common/styles.js +157 -0
  241. package/dist/cjs/product/components/ProductButton/common/types.js +7 -0
  242. package/dist/cjs/product/components/ProductButton/components/AddToCartButton.js +42 -0
  243. package/dist/cjs/product/components/ProductButton/components/AddToCartButton.liquid.js +40 -0
  244. package/dist/cjs/product/components/ProductButton/components/BlankSpace.js +14 -0
  245. package/dist/cjs/product/components/ProductButton/components/BlankSpace.liquid.js +12 -0
  246. package/dist/cjs/product/components/ProductButton/components/CartMessage.js +20 -0
  247. package/dist/cjs/product/components/ProductButton/components/PriceComponent.js +23 -0
  248. package/dist/cjs/product/components/ProductButton/components/PriceComponent.liquid.js +22 -0
  249. package/dist/cjs/product/components/ProductButton/components/PriceLayout.js +28 -0
  250. package/dist/cjs/product/components/ProductButton/components/PriceLayout.liquid.js +23 -0
  251. package/dist/cjs/product/components/ProductButton/components/ProductButtonPrice.js +42 -0
  252. package/dist/cjs/product/components/ProductButton/components/ProductButtonPrice.liquid.js +40 -0
  253. package/dist/cjs/product/components/ProductButton/components/Separator.js +18 -0
  254. package/dist/cjs/product/components/ProductButton/components/Separator.liquid.js +17 -0
  255. package/dist/cjs/product/components/ProductButton/components/SoldOutButton.js +38 -0
  256. package/dist/cjs/product/components/ProductButton/components/SoldOutButton.liquid.js +42 -0
  257. package/dist/cjs/product/components/ProductButton/helpers/getButtonDynamicSourceLocales.js +36 -0
  258. package/dist/cjs/product/components/ProductButton/hooks/useAddToCart.js +99 -0
  259. package/dist/cjs/product/components/ProductButton/hooks/useCartMessage.js +35 -0
  260. package/dist/cjs/product/components/ProductButton/hooks/useCartOperations.js +73 -0
  261. package/dist/cjs/product/components/ProductButton/hooks/useDispatchAfterSubmitEvent.js +27 -0
  262. package/dist/cjs/product/components/ProductDescription/index.js +40 -38
  263. package/dist/cjs/product/components/ProductImages/ProductImagesLightBox.js +1 -1
  264. package/dist/cjs/product/components/ProductImages.js +6 -6
  265. package/dist/cjs/product/components/ProductImagesV2/common/getAttr.js +19 -2
  266. package/dist/cjs/product/components/ProductImagesV2/common/getClasses.js +1 -1
  267. package/dist/cjs/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +109 -0
  268. package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/child}/ProductGalleryGrid.js +5 -97
  269. package/dist/cjs/product/components/ProductImagesV2/{jsx/layouts → components/feature-gallery}/FeatureImageWithGallery.js +14 -52
  270. package/dist/cjs/product/components/ProductImagesV2/{liquid/ProductFeaturedImageCarousel.liquid.js → components/feature-gallery/FeatureImageWithGallery.liquid.js} +15 -15
  271. package/dist/cjs/product/components/ProductImagesV2/{jsx/layouts → components/feature-only}/OnlyFeatureImage.js +4 -2
  272. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +87 -0
  273. package/dist/cjs/product/components/ProductImagesV2/{liquid/ProductGalleryCarousel.liquid.js → components/gallery-carousel/GalleryCarousel.liquid.js} +13 -13
  274. package/dist/cjs/product/components/ProductImagesV2/{jsx/layouts → components/gallery-grid}/GalleryGrid.js +4 -2
  275. package/dist/cjs/product/components/ProductImagesV2/{liquid/ProductGalleryGrid.liquid.js → components/gallery-grid/GalleryGrid.liquid.js} +10 -10
  276. package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/lightbox}/ProductImagesLightBox.js +3 -3
  277. package/dist/cjs/product/components/ProductImagesV2/hooks/useFeatureImageWithGallery.js +55 -0
  278. package/dist/cjs/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +135 -0
  279. package/dist/cjs/product/components/ProductImagesV2/{jsx/components/ProductFeaturedImageCarousel.js → hooks/useProductFeaturedImageCarousel.js} +54 -137
  280. package/dist/cjs/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +87 -0
  281. package/dist/cjs/product/components/ProductImagesV2/{jsx/ProductImages.js → index.js} +8 -8
  282. package/dist/cjs/product/components/ProductImagesV2/{liquid/ProductImages.liquid.js → index.liquid.js} +15 -15
  283. package/dist/cjs/product/components/{ProductList.js → ProductList/ProductList.js} +158 -245
  284. package/dist/cjs/product/components/ProductList/ProductList.liquid.js +242 -0
  285. package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.js +48 -0
  286. package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.liquid.js +63 -0
  287. package/dist/cjs/product/components/ProductList/ProductListGridLayout.js +38 -0
  288. package/dist/cjs/product/components/ProductList/ProductListGridLayout.liquid.js +62 -0
  289. package/dist/cjs/product/components/ProductList/ProductListItem.liquid.js +26 -0
  290. package/dist/cjs/product/components/ProductList/common/const.js +7 -0
  291. package/dist/cjs/product/components/ProductList/common/getAttr.js +26 -0
  292. package/dist/cjs/product/components/ProductList/common/getClass.js +36 -0
  293. package/dist/cjs/product/components/ProductList/common/getStyle.js +47 -0
  294. package/dist/cjs/product/components/ProductList/common/index.js +106 -0
  295. package/dist/cjs/product/components/ProductPrice/hooks/useGpPrice.js +1 -1
  296. package/dist/cjs/product/components/{ProductProperties.js → ProductProperties/ProductProperties.js} +52 -45
  297. package/dist/cjs/product/components/ProductProperties/ProductProperties.liquid.js +121 -0
  298. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js +63 -0
  299. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.liquid.js +73 -0
  300. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceAttrs.js +10 -0
  301. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceClasses.js +20 -0
  302. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceInlineCss.js +17 -0
  303. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceStyles.js +28 -0
  304. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.js +65 -0
  305. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.liquid.js +59 -0
  306. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getAttrs.js +10 -0
  307. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getClasses.js +17 -0
  308. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getContents.js +19 -0
  309. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getStyles.js +24 -0
  310. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/ProductPropertySelect.js +38 -0
  311. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/ProductPropertySelect.liquid.js +58 -0
  312. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/common/getAttrs.js +12 -0
  313. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/common/getClasses.js +16 -0
  314. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/common/getStyles.js +30 -0
  315. package/dist/cjs/product/components/ProductProperties/common/getAttrs.js +34 -0
  316. package/dist/cjs/product/components/ProductProperties/common/getClasses.js +36 -0
  317. package/dist/cjs/product/components/ProductProperties/common/getContents.js +56 -0
  318. package/dist/cjs/product/components/ProductProperties/common/getStyles.js +43 -0
  319. package/dist/cjs/product/components/ProductQuantity/common/common.js +31 -0
  320. package/dist/cjs/product/components/ProductQuantity/common/getAttrs.js +36 -0
  321. package/dist/cjs/product/components/ProductQuantity/common/getClasses.js +53 -0
  322. package/dist/cjs/product/components/ProductQuantity/common/getStyles.js +127 -0
  323. package/dist/cjs/product/components/ProductQuantity/index.liquid.js +177 -0
  324. package/dist/cjs/product/components/ProductQuantity.js +1 -1
  325. package/dist/cjs/product/components/ProductQuickView/ProductQuickView.js +7 -7
  326. package/dist/cjs/product/components/{Sku.js → ProductSKU/Sku.js} +3 -3
  327. package/dist/cjs/product/components/{Sku.liquid.js → ProductSKU/Sku.liquid.js} +3 -3
  328. package/dist/cjs/product/components/{ProductTag.js → ProductTag/ProductTag.js} +10 -11
  329. package/dist/cjs/product/components/{ProductTag.liquid.js → ProductTag/ProductTag.liquid.js} +2 -2
  330. package/dist/cjs/product/components/ProductVariants/common/base/attrs.js +29 -0
  331. package/dist/cjs/product/components/ProductVariants/common/base/classes.js +52 -0
  332. package/dist/cjs/product/components/ProductVariants/common/base/styles.js +170 -0
  333. package/dist/cjs/product/components/ProductVariants/common/dropdown/attrs.js +22 -0
  334. package/dist/cjs/product/components/ProductVariants/common/dropdown/classes.js +29 -0
  335. package/dist/cjs/product/components/ProductVariants/common/dropdown/styles.js +42 -0
  336. package/dist/cjs/product/components/ProductVariants/common/main/classes.js +27 -0
  337. package/dist/cjs/product/components/ProductVariants/common/main/getAttr.js +10 -0
  338. package/dist/cjs/product/components/ProductVariants/common/main/getData.js +73 -0
  339. package/dist/cjs/product/components/ProductVariants/common/main/styles.js +29 -0
  340. package/dist/cjs/product/components/ProductVariants/common/variants/attrs.js +18 -0
  341. package/dist/cjs/product/components/ProductVariants/common/variants/classes.js +44 -0
  342. package/dist/cjs/product/components/ProductVariants/common/variants/styles.js +11 -0
  343. package/dist/cjs/product/components/ProductVariants/components/base/base.js +168 -0
  344. package/dist/cjs/product/components/ProductVariants/components/base/base.liquid.js +101 -0
  345. package/dist/cjs/product/components/ProductVariants/{variants/Color.js → components/color/color.js} +2 -2
  346. package/dist/cjs/product/components/ProductVariants/{variants/Color.liquid.js → components/color/color.liquid.js} +4 -4
  347. package/dist/cjs/product/components/ProductVariants/{variants/VariantGroup.js → components/dropdown-group/DropdownGroup.js} +4 -4
  348. package/dist/cjs/product/components/ProductVariants/components/dropdown-group/DropdownGroup.liquid.js +18 -0
  349. package/dist/cjs/product/components/ProductVariants/components/dropdown-option/render-liquid/index.js +64 -0
  350. package/dist/cjs/product/components/ProductVariants/components/dropdown-swatches/Dropdown.js +86 -0
  351. package/dist/cjs/product/components/ProductVariants/components/dropdown-swatches/Dropdown.liquid.js +51 -0
  352. package/dist/cjs/product/components/ProductVariants/components/dropdown-swatches/hooks/useDropdownSwatches.js +55 -0
  353. package/dist/cjs/product/components/ProductVariants/{variants → components/image}/Image.js +2 -2
  354. package/dist/cjs/product/components/ProductVariants/{variants → components/image}/Image.liquid.js +3 -3
  355. package/dist/cjs/product/components/ProductVariants/{variants → components/image-shopify}/ImageShopify.js +2 -2
  356. package/dist/cjs/product/components/ProductVariants/{variants → components/image-shopify}/ImageShopify.liquid.js +3 -3
  357. package/dist/cjs/product/components/ProductVariants/{variants → components/variants}/index.js +30 -23
  358. package/dist/cjs/product/components/ProductVariants/{variants → components/variants}/index.liquid.js +49 -44
  359. package/dist/cjs/product/components/ProductVariants/hooks/useGpVariants.js +178 -0
  360. package/dist/cjs/product/components/ProductVariants/index.js +103 -337
  361. package/dist/cjs/product/components/ProductVariants/index.liquid.js +167 -233
  362. package/dist/cjs/product/components/{Vendor.js → ProductVendor/Vendor.js} +2 -2
  363. package/dist/cjs/product/components/{Vendor.liquid.js → ProductVendor/Vendor.liquid.js} +2 -2
  364. package/dist/cjs/product/components/ProductViewMore/ProductViewMore.js +30 -0
  365. package/dist/cjs/product/components/{ProductViewMore.liquid.js → ProductViewMore/ProductViewMore.liquid.js} +2 -2
  366. package/dist/cjs/product/components/ProductWrap/Product.js +70 -0
  367. package/dist/cjs/product/components/ProductWrap/Product.liquid.js +147 -0
  368. package/dist/cjs/product/components/ProductWrap/common/const.js +15 -0
  369. package/dist/cjs/product/components/ProductWrap/common/index.js +33 -0
  370. package/dist/cjs/product/components/ProductWrap/hook/useProductSetting.js +58 -0
  371. package/dist/cjs/product/helpers/product.js +6 -30
  372. package/dist/cjs/product/index.js +73 -0
  373. package/dist/cjs/product/next.js +10 -10
  374. package/dist/cjs/product/setting/ProductProperties.js +2 -2
  375. package/dist/cjs/product/setting/product/configs/presets.js +0 -11
  376. package/dist/cjs/product/setting/product-button/configs/settings.js +78 -180
  377. package/dist/cjs/product/setting/product-button/configs/uiV2.js +123 -153
  378. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +7 -6
  379. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +8 -7
  380. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +1 -1
  381. package/dist/cjs/product/setting/product-image-v2/configs/uiV2.js +157 -86
  382. package/dist/cjs/product/setting/product-list/configs/presets.js +4 -2
  383. package/dist/cjs/product/setting/product-list/configs/uiV1.js +1 -1
  384. package/dist/{esm/product/setting/product-properties/configs/settings.js → cjs/product/setting/product-properties/configs/settingsV2.js} +57 -25
  385. package/dist/cjs/product/setting/product-properties/configs/uiV2.js +367 -180
  386. package/dist/cjs/product/setting/product-quantity/configs/settings.js +201 -156
  387. package/dist/cjs/product/setting/product-quantity/configs/uiV2.js +417 -24
  388. package/dist/cjs/product/setting/product-variant/configs/uiV2.js +2 -3
  389. package/dist/cjs/select/setting/Select.js +65 -0
  390. package/dist/cjs/setting.js +109 -196
  391. package/dist/cjs/shop-pay-installment/components/ShopPayInstallments.js +3 -9
  392. package/dist/cjs/shop-pay-installment/components/common/const.js +10 -0
  393. package/dist/cjs/shop-pay-installment/settings/ShopPayInstallments.js +3 -3
  394. package/dist/cjs/sticky/components/Sticky.js +6 -6
  395. package/dist/cjs/sticky/components/Sticky.liquid.js +1 -5
  396. package/dist/cjs/stock-counter/components/StockCounter.liquid.js +4 -4
  397. package/dist/cjs/stock-counter/index.js +12 -0
  398. package/dist/cjs/tab/components/TabItem.js +19 -9
  399. package/dist/cjs/tab/components/TabItem.liquid.js +20 -8
  400. package/dist/cjs/tab/components/Tabs.js +137 -116
  401. package/dist/cjs/tab/components/Tabs.liquid.js +153 -104
  402. package/dist/cjs/tab/components/{common.js → common/common.js} +49 -34
  403. package/dist/cjs/tab/components/common/getAttr.js +15 -0
  404. package/dist/cjs/tab/components/common/getClasses.js +108 -0
  405. package/dist/cjs/tab/components/common/getStyle.js +92 -0
  406. package/dist/cjs/tab/components/hooks/useTab.js +35 -0
  407. package/dist/cjs/tab/index.js +16 -0
  408. package/dist/cjs/text/components/common/getClasses.js +2 -1
  409. package/dist/cjs/text/index.js +12 -8
  410. package/dist/cjs/text/utils/dynamic-source.js +1 -0
  411. package/dist/cjs/third-party/components/Wiser/WiserSampleContent.js +3 -3
  412. package/dist/cjs/third-party/components/Wiser.liquid.js +2 -2
  413. package/dist/cjs/third-party/setting/Wiser.js +3 -7
  414. package/dist/cjs/third-party/types/index.js +8 -0
  415. package/dist/cjs/third-party-instant/components/InstantThirdPartyPreview.js +53 -55
  416. package/dist/cjs/third-party-instant/components/Judgeme/JudgemeSampleContent.js +7 -9
  417. package/dist/cjs/third-party-instant/components/Judgeme/WithoutProduct.js +39 -41
  418. package/dist/cjs/third-party-instant/components/Klaviyo/KlaviyoSampleContent.js +7 -9
  419. package/dist/cjs/third-party-instant/components/LooxReviews/LooxReviewsSampleContent.js +7 -9
  420. package/dist/cjs/third-party-instant/components/LooxReviews/SingleProduct.js +13 -15
  421. package/dist/cjs/third-party-instant/components/LooxReviews/WithoutProduct.js +19 -21
  422. package/dist/cjs/third-party-instant/components/YotpoLoyalty/YotpoLoyaltySampleContent.js +7 -9
  423. package/dist/cjs/third-party-instant/index.js +27 -0
  424. package/dist/cjs/third-party-slot/common/classes.js +22 -0
  425. package/dist/cjs/third-party-slot/common/index.js +57 -0
  426. package/dist/cjs/third-party-slot/common/styles.js +9 -0
  427. package/dist/cjs/third-party-slot/components/ThirdPartySlot.js +29 -31
  428. package/dist/cjs/third-party-slot/components/ThirdPartySlot.liquid.js +24 -50
  429. package/dist/cjs/third-party-slot/setting/index.js +1 -1
  430. package/dist/cjs/video/components/LiteYouTubeEmbed.js +39 -41
  431. package/dist/esm/accordion/components/AccordionItem.liquid.js +2 -2
  432. package/dist/esm/accordion/hooks/useAccordion.js +8 -1
  433. package/dist/esm/accordion/index.js +15 -0
  434. package/dist/esm/accordion/setting/configs/settings.js +5 -2
  435. package/dist/esm/article/components/ArticleAuthor.js +3 -2
  436. package/dist/esm/article/components/ArticleList.js +1 -1
  437. package/dist/esm/article/components/ArticleList.liquid.js +6 -6
  438. package/dist/esm/article/components/ArticlePagination.js +1 -1
  439. package/dist/esm/article/components/ArticleReadMore.js +1 -1
  440. package/dist/esm/article/index.js +37 -0
  441. package/dist/esm/article/next.js +31 -41
  442. package/dist/esm/article/setting/ArticleExcerpt.js +4 -4
  443. package/dist/esm/article/setting/ArticleList.js +48 -15
  444. package/dist/esm/article/setting/configs/ArticleAuthor/presets.js +28 -1
  445. package/dist/esm/article/setting/configs/ArticleAuthor/uiV2.js +3 -12
  446. package/dist/esm/article/setting/configs/ArticleCategory/presets.js +19 -1
  447. package/dist/esm/article/setting/configs/ArticleCategory/uiV2.js +8 -0
  448. package/dist/esm/article/setting/configs/ArticleDate/presets.js +19 -1
  449. package/dist/esm/article/setting/configs/ArticleDate/uiV2.js +8 -0
  450. package/dist/esm/article/setting/configs/ArticleImage/settings.js +41 -7
  451. package/dist/esm/article/setting/configs/ArticleTag/settings.js +1 -4
  452. package/dist/esm/article/setting/configs/ArticleTitle/uiV2.js +8 -16
  453. package/dist/esm/banner/components/HeroBanner.liquid.js +2 -2
  454. package/dist/esm/banner/components/HeroBannerItem.js +6 -6
  455. package/dist/esm/banner/components/HeroBannerItem.liquid.js +8 -146
  456. package/dist/esm/banner/components/hooks/useHeroBanner.js +1 -1
  457. package/dist/esm/banner/index.js +16 -0
  458. package/dist/esm/banner/setting/HeroBanner.js +2 -3
  459. package/dist/esm/banner/setting/setting.js +25 -1180
  460. package/dist/esm/banner/setting/uiV2.js +77 -11
  461. package/dist/esm/breadcrumb/index.js +11 -0
  462. package/dist/esm/builder.js +212 -211
  463. package/dist/esm/button/components/Button.js +2 -2
  464. package/dist/esm/button/components/common/classes.js +1 -1
  465. package/dist/esm/button/components/common/data.js +3 -2
  466. package/dist/esm/button/components/common/styles.js +34 -34
  467. package/dist/esm/button/index.js +12 -0
  468. package/dist/esm/carousel/components/Arrow.liquid.js +1 -1
  469. package/dist/esm/carousel/components/Carousel.js +31 -12
  470. package/dist/esm/carousel/components/common/carousel.js +1 -1
  471. package/dist/esm/carousel/index.js +16 -0
  472. package/dist/esm/cart/components/CartList.js +1 -1
  473. package/dist/esm/cart/index.js +43 -0
  474. package/dist/esm/code/components/CSSCode.js +0 -1
  475. package/dist/esm/code/index.js +12 -0
  476. package/dist/esm/collection/components/collection-banner/common/classes.js +31 -0
  477. package/dist/esm/collection/components/collection-banner/common/index.js +16 -0
  478. package/dist/esm/collection/components/collection-banner/common/styles.js +42 -0
  479. package/dist/esm/collection/components/collection-banner/components/CollectionBanner.js +102 -0
  480. package/dist/esm/collection/components/collection-banner/components/CollectionBanner.liquid.js +90 -0
  481. package/dist/esm/collection/components/collection-description/common/classes.js +18 -0
  482. package/dist/esm/collection/components/collection-description/common/constant.js +6 -0
  483. package/dist/esm/collection/components/collection-description/common/index.js +32 -0
  484. package/dist/esm/collection/components/collection-description/common/styles.js +80 -0
  485. package/dist/esm/collection/components/collection-description/components/CollectionDescription.js +99 -0
  486. package/dist/esm/collection/components/collection-description/components/CollectionDescription.liquid.js +95 -0
  487. package/dist/esm/collection/components/collection-description/hook/useDescription.js +87 -0
  488. package/dist/esm/collection/components/collection-paginator/common/classes.js +21 -0
  489. package/dist/esm/collection/components/collection-paginator/common/index.js +193 -0
  490. package/dist/esm/collection/components/collection-paginator/common/styles.js +58 -0
  491. package/dist/esm/collection/components/collection-paginator/components/CollectionPaginator.js +38 -0
  492. package/dist/esm/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +58 -0
  493. package/dist/esm/collection/components/{CollectionTitle.js → collection-title/components/CollectionTitle.js} +3 -4
  494. package/dist/esm/collection/components/{CollectionTitle.liquid.js → collection-title/components/CollectionTitle.liquid.js} +1 -1
  495. package/dist/esm/collection/components/collection-toolbar/common/classes.js +27 -0
  496. package/dist/esm/collection/components/collection-toolbar/common/constant.js +37 -0
  497. package/dist/esm/collection/components/collection-toolbar/common/index.js +25 -0
  498. package/dist/esm/collection/components/collection-toolbar/common/style.js +46 -0
  499. package/dist/esm/collection/components/collection-toolbar/components/CollectionToolbar.js +95 -0
  500. package/dist/esm/collection/components/collection-toolbar/components/CollectionToolbar.liquid.js +97 -0
  501. package/dist/esm/collection/index.js +24 -0
  502. package/dist/esm/collection/next.js +5 -5
  503. package/dist/esm/collection/setting/collection-paginator/configs/settings.js +5 -0
  504. package/dist/esm/countdown-timer/components/Countdown.js +1 -1
  505. package/dist/esm/countdown-timer/index.js +12 -0
  506. package/dist/esm/coupon/common/classes.js +7 -0
  507. package/dist/esm/coupon/common/index.js +14 -0
  508. package/dist/esm/coupon/common/styles.js +41 -0
  509. package/dist/esm/coupon/components/Coupon.js +42 -84
  510. package/dist/esm/coupon/components/Coupon.liquid.js +28 -39
  511. package/dist/esm/coupon/hooks/useCoupon.js +28 -0
  512. package/dist/esm/coupon/index.js +12 -0
  513. package/dist/esm/coupon/setting/Coupon.js +8 -1191
  514. package/dist/esm/coupon/setting/config/settings.js +829 -0
  515. package/dist/esm/coupon/setting/config/uiV1.js +365 -0
  516. package/dist/esm/coupon/setting/config/uiV2.js +350 -0
  517. package/dist/esm/dialog/index.js +12 -0
  518. package/dist/esm/estimate-delivery/index.js +12 -0
  519. package/dist/esm/form/components/form-email/FormEmail.liquid.js +1 -1
  520. package/dist/esm/form/components/submit-button/SubmitButton.js +9 -11
  521. package/dist/esm/form/components/textinput/common/composeStyles.js +0 -2
  522. package/dist/esm/form/index.js +28 -0
  523. package/dist/esm/form/setting/contact/Contact.js +2 -0
  524. package/dist/esm/form/setting/form-checkbox/FormCheckbox.js +1 -1
  525. package/dist/esm/form/setting/form-checkbox/configs/settings.js +1 -1
  526. package/dist/esm/form/setting/form-dropdown/FormDropdown.js +2 -2
  527. package/dist/esm/form/setting/form-dropdown/configs/settings.js +1 -1
  528. package/dist/esm/form/setting/form-email/configs/FormEmail.js +2 -2
  529. package/dist/esm/form/setting/form-email/configs/settings.js +1 -1
  530. package/dist/esm/form/setting/form-textarea/Textarea.js +2 -2
  531. package/dist/esm/form/setting/form-textarea/configs/settings.js +1 -1
  532. package/dist/esm/form/setting/newsletter/Newsletter.js +1 -1
  533. package/dist/esm/form/setting/newsletter/configs/settings.js +1 -1
  534. package/dist/esm/form/setting/submit-button/SubmitButton.js +1 -1
  535. package/dist/esm/form/setting/submit-button/configs/settings.js +1 -1
  536. package/dist/esm/form/setting/text-field/TextField.js +2 -2
  537. package/dist/esm/form/setting/text-field/configs/settings.js +1 -1
  538. package/dist/esm/form/setting/text-input/TextInput.js +2 -2
  539. package/dist/esm/form/setting/text-input/configs/settings.js +1 -1
  540. package/dist/esm/grid/index.js +20 -0
  541. package/dist/esm/grid/row/Row.js +5 -3
  542. package/dist/esm/grid/row/Row.liquid.js +1 -4
  543. package/dist/esm/grid/row/commons/getAttr.js +2 -5
  544. package/dist/esm/header/components/kind/basic/index.js +3 -3
  545. package/dist/esm/header/components/kind/modern/index.js +4 -4
  546. package/dist/esm/header/index.js +20 -0
  547. package/dist/esm/heading/index.js +12 -0
  548. package/dist/esm/helpers.js +24 -6
  549. package/dist/esm/icon/index.js +12 -0
  550. package/dist/esm/icon/setting/Icon.js +2 -2
  551. package/dist/esm/icon-list/index.js +14 -0
  552. package/dist/esm/icon-list-hoz/index.js +14 -0
  553. package/dist/esm/icon-list-v2/common/classes.js +24 -0
  554. package/dist/esm/icon-list-v2/common/index.js +29 -0
  555. package/dist/esm/icon-list-v2/common/styles.js +89 -0
  556. package/dist/esm/icon-list-v2/components/IconList.js +112 -132
  557. package/dist/esm/icon-list-v2/components/IconList.liquid.js +101 -94
  558. package/dist/esm/icon-list-v2/index.js +12 -0
  559. package/dist/esm/image/components/common/attributes.js +4 -2
  560. package/dist/esm/image/components/common/helpers.js +4 -1
  561. package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +3 -2
  562. package/dist/esm/image/helpers/getSrcSet.js +1 -1
  563. package/dist/esm/image/index.js +14 -0
  564. package/dist/esm/image/setting/configs/presets.js +3 -0
  565. package/dist/esm/image/setting/configs/settings.js +69 -11
  566. package/dist/esm/image/setting/configs/uiV2.js +127 -1
  567. package/dist/esm/image-comparison/components/CompareImage.js +230 -562
  568. package/dist/esm/image-comparison/components/CompareImage.liquid.js +250 -323
  569. package/dist/esm/image-comparison/components/ImageComparison.js +16 -34
  570. package/dist/esm/image-comparison/components/ImageComparison.liquid.js +16 -10
  571. package/dist/esm/image-comparison/components/Label.js +27 -0
  572. package/dist/esm/image-comparison/components/Label.liquid.js +19 -45
  573. package/dist/esm/image-comparison/components/SlideHandle.js +53 -0
  574. package/dist/esm/image-comparison/components/SlideHandle.liquid.js +33 -0
  575. package/dist/esm/image-comparison/components/common/attributes.js +61 -0
  576. package/dist/esm/image-comparison/components/common/classes.js +34 -0
  577. package/dist/esm/image-comparison/components/common/constant.js +8 -0
  578. package/dist/esm/image-comparison/components/common/data.js +59 -0
  579. package/dist/esm/image-comparison/components/common/helpers.js +130 -6
  580. package/dist/esm/image-comparison/components/common/styles.js +167 -0
  581. package/dist/esm/image-comparison/components/helpers/getReactStyles.js +45 -0
  582. package/dist/esm/image-comparison/components/hooks/useCompareImage.js +190 -0
  583. package/dist/esm/image-comparison/index.js +12 -0
  584. package/dist/esm/image-comparison/setting/configs/settings.js +94 -40
  585. package/dist/esm/image-comparison/setting/configs/uiV2.js +97 -30
  586. package/dist/esm/image-detection/index.js +10 -0
  587. package/dist/esm/image-detection/setting/ImageDetection.js +1 -1
  588. package/dist/esm/index.js +167 -182
  589. package/dist/esm/index.liquid.js +58 -65
  590. package/dist/esm/input/index.js +10 -0
  591. package/dist/esm/line/index.js +10 -0
  592. package/dist/esm/link/index.js +11 -0
  593. package/dist/esm/marquee/common/classes.js +13 -0
  594. package/dist/esm/marquee/common/index.js +21 -0
  595. package/dist/esm/marquee/common/styles.js +214 -0
  596. package/dist/esm/marquee/components/Marquee.js +126 -129
  597. package/dist/esm/marquee/components/Marquee.liquid.js +76 -192
  598. package/dist/esm/marquee/components/MarqueeBase.js +16 -157
  599. package/dist/esm/marquee/components/MarqueeBase.liquid.js +37 -79
  600. package/dist/esm/marquee/components/MarqueeItem.js +30 -74
  601. package/dist/esm/marquee/components/MarqueeItem.liquid.js +19 -27
  602. package/dist/esm/marquee/hooks/useMarquee.js +45 -0
  603. package/dist/esm/marquee/hooks/useMarqueeBase.js +162 -0
  604. package/dist/esm/marquee/hooks/useMarqueeItem.js +59 -0
  605. package/dist/esm/marquee/hooks/useMarqueeScrollToItem.js +5 -2
  606. package/dist/esm/marquee/hooks/useMarqueeStyles.js +6 -128
  607. package/dist/esm/marquee/index.js +14 -0
  608. package/dist/esm/marquee/setting/configs/uiV2.js +3 -1
  609. package/dist/esm/menu/index.js +12 -0
  610. package/dist/esm/modal/index.js +12 -0
  611. package/dist/esm/next.js +49 -33
  612. package/dist/esm/pagination/index.js +10 -0
  613. package/dist/esm/post-purchase/advanced-list/components/common/getClasses.js +1 -1
  614. package/dist/esm/post-purchase/advanced-list/index.js +13 -0
  615. package/dist/esm/post-purchase/advanced-list/next.js +5 -1
  616. package/dist/esm/post-purchase/advanced-list/setting/template.js +1 -4
  617. package/dist/esm/post-purchase/button/common/getStyles.js +2 -2
  618. package/dist/esm/post-purchase/button/index.js +12 -0
  619. package/dist/esm/post-purchase/button/next.js +4 -1
  620. package/dist/esm/post-purchase/button/setting/configs/settings.js +1 -0
  621. package/dist/esm/post-purchase/callout-banner/components/CalloutBox.js +2 -2
  622. package/dist/esm/post-purchase/callout-banner/index.js +17 -0
  623. package/dist/esm/post-purchase/callout-banner/next.js +5 -1
  624. package/dist/esm/post-purchase/countdown-timer/components/TextCountdown.js +6 -1
  625. package/dist/esm/post-purchase/countdown-timer/hooks/useCountdownTimer.js +2 -3
  626. package/dist/esm/post-purchase/countdown-timer/index.js +11 -0
  627. package/dist/esm/post-purchase/countdown-timer/next.js +4 -1
  628. package/dist/esm/post-purchase/image/index.js +12 -0
  629. package/dist/esm/post-purchase/image/next.js +4 -1
  630. package/dist/esm/post-purchase/image/setting/setting-v2.js +2 -2
  631. package/dist/esm/post-purchase/line/components/PostPurchaseLine.js +1 -8
  632. package/dist/esm/post-purchase/line/components/common/getStyle.js +1 -1
  633. package/dist/esm/post-purchase/line/index.js +11 -0
  634. package/dist/esm/post-purchase/line/next.js +4 -1
  635. package/dist/esm/post-purchase/line/setting/configs/settings.js +1 -3
  636. package/dist/esm/post-purchase/line/types/index.js +9 -0
  637. package/dist/esm/post-purchase/link/index.js +12 -0
  638. package/dist/esm/post-purchase/link/next.js +4 -1
  639. package/dist/esm/post-purchase/product/components/ProductDiscountTag.js +5 -2
  640. package/dist/esm/post-purchase/product/components/ProductOffer.js +4 -4
  641. package/dist/esm/post-purchase/product/components/priceBreakdown/MoneyLine.js +3 -1
  642. package/dist/esm/post-purchase/product/components/product-image/FeatureImage.js +3 -4
  643. package/dist/esm/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +1 -1
  644. package/dist/esm/post-purchase/product/components/product-image/ItemGridPostPurchase.js +1 -1
  645. package/dist/esm/post-purchase/product/helpers/product-price-breakdown/getStyles.js +8 -1
  646. package/dist/esm/post-purchase/product/helpers/product-quantity/getStyles.js +2 -7
  647. package/dist/esm/post-purchase/product/hooks/product-quantity/useHandleQuantity.js +3 -2
  648. package/dist/esm/post-purchase/product/index.js +35 -0
  649. package/dist/esm/post-purchase/product/next.js +13 -1
  650. package/dist/esm/post-purchase/product/settings/product-discount-tag/settingV2.js +97 -0
  651. package/dist/esm/post-purchase/product/settings/product-discount-tag/uiV2.js +44 -0
  652. package/dist/esm/post-purchase/product/settings/product-image/ProductImages.js +5 -15
  653. package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +21 -9
  654. package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +52 -46
  655. package/dist/esm/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
  656. package/dist/esm/post-purchase/product/settings/product-variants/settings/settingsV2.js +2 -0
  657. package/dist/esm/post-purchase/text/index.js +7 -1
  658. package/dist/esm/post-purchase/text/next.js +5 -1
  659. package/dist/esm/product/components/DynamicCheckout/common/styles.js +2 -2
  660. package/dist/esm/product/components/FileUpload/components/common/index.js +0 -140
  661. package/dist/esm/product/components/FileUpload/components/config/setting.js +2 -2
  662. package/dist/esm/product/components/ProductBadge/utils/stylesV2.js +9 -2
  663. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountItem.js +4 -2
  664. package/dist/esm/product/components/ProductButton/ProductButton.js +43 -0
  665. package/dist/esm/product/components/ProductButton/ProductButton.liquid.js +62 -0
  666. package/dist/esm/product/components/ProductButton/common/classes.js +33 -0
  667. package/dist/esm/product/components/ProductButton/common/constants.js +32 -0
  668. package/dist/esm/product/components/ProductButton/common/data.js +54 -0
  669. package/dist/esm/product/components/ProductButton/common/helpers.js +72 -0
  670. package/dist/esm/product/components/ProductButton/common/styles.js +149 -0
  671. package/dist/esm/product/components/ProductButton/common/types.js +7 -0
  672. package/dist/esm/product/components/ProductButton/components/AddToCartButton.js +38 -0
  673. package/dist/esm/product/components/ProductButton/components/AddToCartButton.liquid.js +38 -0
  674. package/dist/esm/product/components/ProductButton/components/BlankSpace.js +10 -0
  675. package/dist/esm/product/components/ProductButton/components/BlankSpace.liquid.js +8 -0
  676. package/dist/esm/product/components/ProductButton/components/CartMessage.js +18 -0
  677. package/dist/esm/product/components/ProductButton/components/PriceComponent.js +19 -0
  678. package/dist/esm/product/components/ProductButton/components/PriceComponent.liquid.js +18 -0
  679. package/dist/esm/product/components/ProductButton/components/PriceLayout.js +24 -0
  680. package/dist/esm/product/components/ProductButton/components/PriceLayout.liquid.js +19 -0
  681. package/dist/esm/product/components/ProductButton/components/ProductButtonPrice.js +38 -0
  682. package/dist/esm/product/components/ProductButton/components/ProductButtonPrice.liquid.js +36 -0
  683. package/dist/esm/product/components/ProductButton/components/Separator.js +14 -0
  684. package/dist/esm/product/components/ProductButton/components/Separator.liquid.js +13 -0
  685. package/dist/esm/product/components/ProductButton/components/SoldOutButton.js +34 -0
  686. package/dist/esm/product/components/ProductButton/components/SoldOutButton.liquid.js +40 -0
  687. package/dist/esm/product/components/ProductButton/helpers/getButtonDynamicSourceLocales.js +34 -0
  688. package/dist/esm/product/components/ProductButton/hooks/useAddToCart.js +97 -0
  689. package/dist/esm/product/components/ProductButton/hooks/useCartMessage.js +33 -0
  690. package/dist/esm/product/components/ProductButton/hooks/useCartOperations.js +71 -0
  691. package/dist/esm/product/components/ProductButton/hooks/useDispatchAfterSubmitEvent.js +25 -0
  692. package/dist/esm/product/components/ProductDescription/index.js +41 -39
  693. package/dist/esm/product/components/ProductImages/ProductImagesLightBox.js +1 -1
  694. package/dist/esm/product/components/ProductImages.js +6 -6
  695. package/dist/esm/product/components/ProductImagesV2/common/getAttr.js +19 -2
  696. package/dist/esm/product/components/ProductImagesV2/common/getClasses.js +1 -1
  697. package/dist/esm/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +105 -0
  698. package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/child}/ProductGalleryGrid.js +7 -99
  699. package/dist/esm/product/components/ProductImagesV2/{jsx/layouts → components/feature-gallery}/FeatureImageWithGallery.js +16 -54
  700. package/dist/esm/product/components/ProductImagesV2/{liquid/ProductFeaturedImageCarousel.liquid.js → components/feature-gallery/FeatureImageWithGallery.liquid.js} +15 -15
  701. package/dist/esm/product/components/ProductImagesV2/{jsx/layouts → components/feature-only}/OnlyFeatureImage.js +5 -3
  702. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +83 -0
  703. package/dist/esm/product/components/ProductImagesV2/{liquid/ProductGalleryCarousel.liquid.js → components/gallery-carousel/GalleryCarousel.liquid.js} +13 -13
  704. package/dist/esm/product/components/ProductImagesV2/{jsx/layouts → components/gallery-grid}/GalleryGrid.js +5 -3
  705. package/dist/esm/product/components/ProductImagesV2/{liquid/ProductGalleryGrid.liquid.js → components/gallery-grid/GalleryGrid.liquid.js} +10 -10
  706. package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/lightbox}/ProductImagesLightBox.js +3 -3
  707. package/dist/esm/product/components/ProductImagesV2/hooks/useFeatureImageWithGallery.js +53 -0
  708. package/dist/esm/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +133 -0
  709. package/dist/esm/product/components/ProductImagesV2/{jsx/components/ProductFeaturedImageCarousel.js → hooks/useProductFeaturedImageCarousel.js} +56 -137
  710. package/dist/esm/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +85 -0
  711. package/dist/esm/product/components/ProductImagesV2/{jsx/ProductImages.js → index.js} +8 -8
  712. package/dist/esm/product/components/ProductImagesV2/{liquid/ProductImages.liquid.js → index.liquid.js} +13 -13
  713. package/dist/esm/product/components/ProductList/ProductList.js +380 -0
  714. package/dist/esm/product/components/ProductList/ProductList.liquid.js +238 -0
  715. package/dist/esm/product/components/ProductList/ProductListCarouselLayout.js +44 -0
  716. package/dist/esm/product/components/ProductList/ProductListCarouselLayout.liquid.js +59 -0
  717. package/dist/esm/product/components/ProductList/ProductListGridLayout.js +34 -0
  718. package/dist/esm/product/components/ProductList/ProductListGridLayout.liquid.js +58 -0
  719. package/dist/esm/product/components/ProductList/ProductListItem.liquid.js +22 -0
  720. package/dist/esm/product/components/ProductList/common/const.js +4 -0
  721. package/dist/esm/product/components/ProductList/common/getAttr.js +24 -0
  722. package/dist/esm/product/components/ProductList/common/getClass.js +34 -0
  723. package/dist/esm/product/components/ProductList/common/getStyle.js +45 -0
  724. package/dist/esm/product/components/ProductList/common/index.js +103 -0
  725. package/dist/esm/product/components/ProductPrice/hooks/useGpPrice.js +1 -1
  726. package/dist/esm/product/components/{ProductProperties.js → ProductProperties/ProductProperties.js} +53 -46
  727. package/dist/esm/product/components/ProductProperties/ProductProperties.liquid.js +117 -0
  728. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js +59 -0
  729. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.liquid.js +69 -0
  730. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceAttrs.js +8 -0
  731. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceClasses.js +17 -0
  732. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceInlineCss.js +15 -0
  733. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceStyles.js +24 -0
  734. package/dist/esm/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.js +61 -0
  735. package/dist/esm/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.liquid.js +55 -0
  736. package/dist/esm/product/components/ProductProperties/ProductPropertyInput/common/getAttrs.js +8 -0
  737. package/dist/esm/product/components/ProductProperties/ProductPropertyInput/common/getClasses.js +15 -0
  738. package/dist/esm/product/components/ProductProperties/ProductPropertyInput/common/getContents.js +17 -0
  739. package/dist/esm/product/components/ProductProperties/ProductPropertyInput/common/getStyles.js +22 -0
  740. package/dist/esm/product/components/ProductProperties/ProductPropertySelect/ProductPropertySelect.js +34 -0
  741. package/dist/esm/product/components/ProductProperties/ProductPropertySelect/ProductPropertySelect.liquid.js +54 -0
  742. package/dist/esm/product/components/ProductProperties/ProductPropertySelect/common/getAttrs.js +10 -0
  743. package/dist/esm/product/components/ProductProperties/ProductPropertySelect/common/getClasses.js +14 -0
  744. package/dist/esm/product/components/ProductProperties/ProductPropertySelect/common/getStyles.js +27 -0
  745. package/dist/esm/product/components/ProductProperties/common/getAttrs.js +30 -0
  746. package/dist/esm/product/components/ProductProperties/common/getClasses.js +31 -0
  747. package/dist/esm/product/components/ProductProperties/common/getContents.js +53 -0
  748. package/dist/esm/product/components/ProductProperties/common/getStyles.js +38 -0
  749. package/dist/esm/product/components/ProductQuantity/common/common.js +28 -0
  750. package/dist/esm/product/components/ProductQuantity/common/getAttrs.js +32 -0
  751. package/dist/esm/product/components/ProductQuantity/common/getClasses.js +47 -0
  752. package/dist/esm/product/components/ProductQuantity/common/getStyles.js +122 -0
  753. package/dist/esm/product/components/ProductQuantity/index.liquid.js +173 -0
  754. package/dist/esm/product/components/ProductQuantity.js +1 -1
  755. package/dist/esm/product/components/ProductQuickView/ProductQuickView.js +7 -7
  756. package/dist/esm/product/components/{Sku.js → ProductSKU/Sku.js} +3 -3
  757. package/dist/esm/product/components/{Sku.liquid.js → ProductSKU/Sku.liquid.js} +3 -3
  758. package/dist/esm/product/components/{ProductTag.js → ProductTag/ProductTag.js} +10 -11
  759. package/dist/esm/product/components/{ProductTag.liquid.js → ProductTag/ProductTag.liquid.js} +2 -2
  760. package/dist/esm/product/components/ProductVariants/common/base/attrs.js +27 -0
  761. package/dist/esm/product/components/ProductVariants/common/base/classes.js +47 -0
  762. package/dist/esm/product/components/ProductVariants/common/base/styles.js +164 -0
  763. package/dist/esm/product/components/ProductVariants/common/dropdown/attrs.js +20 -0
  764. package/dist/esm/product/components/ProductVariants/common/dropdown/classes.js +27 -0
  765. package/dist/esm/product/components/ProductVariants/common/dropdown/styles.js +40 -0
  766. package/dist/esm/product/components/ProductVariants/common/main/classes.js +24 -0
  767. package/dist/esm/product/components/ProductVariants/common/main/getAttr.js +8 -0
  768. package/dist/esm/product/components/ProductVariants/common/main/getData.js +69 -0
  769. package/dist/esm/product/components/ProductVariants/common/main/styles.js +26 -0
  770. package/dist/esm/product/components/ProductVariants/common/variants/attrs.js +16 -0
  771. package/dist/esm/product/components/ProductVariants/common/variants/classes.js +38 -0
  772. package/dist/esm/product/components/ProductVariants/common/variants/styles.js +9 -0
  773. package/dist/esm/product/components/ProductVariants/components/base/base.js +164 -0
  774. package/dist/esm/product/components/ProductVariants/components/base/base.liquid.js +97 -0
  775. package/dist/esm/product/components/ProductVariants/{variants/Color.js → components/color/color.js} +1 -1
  776. package/dist/esm/product/components/ProductVariants/{variants/Color.liquid.js → components/color/color.liquid.js} +3 -3
  777. package/dist/esm/product/components/ProductVariants/{variants/VariantGroup.js → components/dropdown-group/DropdownGroup.js} +4 -4
  778. package/dist/esm/product/components/ProductVariants/components/dropdown-group/DropdownGroup.liquid.js +14 -0
  779. package/dist/esm/product/components/ProductVariants/components/dropdown-option/render-liquid/index.js +60 -0
  780. package/dist/esm/product/components/ProductVariants/components/dropdown-swatches/Dropdown.js +82 -0
  781. package/dist/esm/product/components/ProductVariants/components/dropdown-swatches/Dropdown.liquid.js +47 -0
  782. package/dist/esm/product/components/ProductVariants/components/dropdown-swatches/hooks/useDropdownSwatches.js +53 -0
  783. package/dist/esm/product/components/ProductVariants/{variants → components/image}/Image.js +1 -1
  784. package/dist/esm/product/components/ProductVariants/{variants → components/image}/Image.liquid.js +2 -2
  785. package/dist/esm/product/components/ProductVariants/{variants → components/image-shopify}/ImageShopify.js +1 -1
  786. package/dist/esm/product/components/ProductVariants/{variants → components/image-shopify}/ImageShopify.liquid.js +2 -2
  787. package/dist/esm/product/components/ProductVariants/{variants → components/variants}/index.js +29 -22
  788. package/dist/esm/product/components/ProductVariants/{variants → components/variants}/index.liquid.js +46 -41
  789. package/dist/esm/product/components/ProductVariants/hooks/useGpVariants.js +176 -0
  790. package/dist/esm/product/components/ProductVariants/index.js +105 -339
  791. package/dist/esm/product/components/ProductVariants/index.liquid.js +163 -229
  792. package/dist/esm/product/components/{Vendor.js → ProductVendor/Vendor.js} +2 -2
  793. package/dist/esm/product/components/{Vendor.liquid.js → ProductVendor/Vendor.liquid.js} +2 -2
  794. package/dist/esm/product/components/ProductViewMore/ProductViewMore.js +26 -0
  795. package/dist/esm/product/components/{ProductViewMore.liquid.js → ProductViewMore/ProductViewMore.liquid.js} +2 -2
  796. package/dist/esm/product/components/ProductWrap/Product.js +66 -0
  797. package/dist/esm/product/components/ProductWrap/Product.liquid.js +143 -0
  798. package/dist/esm/product/components/ProductWrap/common/const.js +8 -0
  799. package/dist/esm/product/components/ProductWrap/common/index.js +31 -0
  800. package/dist/esm/product/components/ProductWrap/hook/useProductSetting.js +56 -0
  801. package/dist/esm/product/helpers/product.js +6 -28
  802. package/dist/esm/product/index.js +68 -0
  803. package/dist/esm/product/next.js +10 -10
  804. package/dist/esm/product/setting/ProductProperties.js +2 -2
  805. package/dist/esm/product/setting/product/configs/presets.js +0 -11
  806. package/dist/esm/product/setting/product-button/configs/settings.js +78 -180
  807. package/dist/esm/product/setting/product-button/configs/uiV2.js +123 -153
  808. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +7 -6
  809. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +8 -7
  810. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +1 -1
  811. package/dist/esm/product/setting/product-image-v2/configs/uiV2.js +157 -86
  812. package/dist/esm/product/setting/product-list/configs/presets.js +4 -2
  813. package/dist/esm/product/setting/product-list/configs/uiV1.js +1 -1
  814. package/dist/{cjs/product/setting/product-properties/configs/settings.js → esm/product/setting/product-properties/configs/settingsV2.js} +55 -27
  815. package/dist/esm/product/setting/product-properties/configs/uiV2.js +367 -180
  816. package/dist/esm/product/setting/product-quantity/configs/settings.js +201 -156
  817. package/dist/esm/product/setting/product-quantity/configs/uiV2.js +417 -24
  818. package/dist/esm/product/setting/product-variant/configs/uiV2.js +2 -3
  819. package/dist/esm/select/setting/Select.js +61 -0
  820. package/dist/esm/setting.js +86 -173
  821. package/dist/esm/shop-pay-installment/components/ShopPayInstallments.js +4 -9
  822. package/dist/esm/shop-pay-installment/components/common/const.js +8 -0
  823. package/dist/esm/shop-pay-installment/settings/ShopPayInstallments.js +3 -3
  824. package/dist/esm/sticky/components/Sticky.js +6 -6
  825. package/dist/esm/sticky/components/Sticky.liquid.js +1 -5
  826. package/dist/esm/stock-counter/components/StockCounter.liquid.js +4 -4
  827. package/dist/esm/stock-counter/index.js +10 -0
  828. package/dist/esm/tab/components/TabItem.js +20 -10
  829. package/dist/esm/tab/components/TabItem.liquid.js +21 -9
  830. package/dist/esm/tab/components/Tabs.js +139 -118
  831. package/dist/esm/tab/components/Tabs.liquid.js +154 -105
  832. package/dist/esm/tab/components/{common.js → common/common.js} +48 -35
  833. package/dist/esm/tab/components/common/getAttr.js +12 -0
  834. package/dist/esm/tab/components/common/getClasses.js +97 -0
  835. package/dist/esm/tab/components/common/getStyle.js +85 -0
  836. package/dist/esm/tab/components/hooks/useTab.js +33 -0
  837. package/dist/esm/tab/index.js +14 -0
  838. package/dist/esm/text/components/common/getClasses.js +2 -1
  839. package/dist/esm/text/index.js +10 -3
  840. package/dist/esm/text/utils/dynamic-source.js +1 -0
  841. package/dist/esm/third-party/components/Wiser/WiserSampleContent.js +1 -1
  842. package/dist/esm/third-party/components/Wiser.liquid.js +1 -1
  843. package/dist/esm/third-party/setting/Wiser.js +2 -5
  844. package/dist/esm/third-party/types/index.js +6 -0
  845. package/dist/esm/third-party-instant/components/InstantThirdPartyPreview.js +54 -56
  846. package/dist/esm/third-party-instant/components/Judgeme/JudgemeSampleContent.js +8 -10
  847. package/dist/esm/third-party-instant/components/Judgeme/WithoutProduct.js +40 -42
  848. package/dist/esm/third-party-instant/components/Klaviyo/KlaviyoSampleContent.js +8 -10
  849. package/dist/esm/third-party-instant/components/LooxReviews/LooxReviewsSampleContent.js +8 -10
  850. package/dist/esm/third-party-instant/components/LooxReviews/SingleProduct.js +14 -16
  851. package/dist/esm/third-party-instant/components/LooxReviews/WithoutProduct.js +20 -22
  852. package/dist/esm/third-party-instant/components/YotpoLoyalty/YotpoLoyaltySampleContent.js +8 -10
  853. package/dist/esm/third-party-instant/index.js +22 -0
  854. package/dist/esm/third-party-slot/common/classes.js +17 -0
  855. package/dist/esm/third-party-slot/common/index.js +54 -0
  856. package/dist/esm/third-party-slot/common/styles.js +7 -0
  857. package/dist/esm/third-party-slot/components/ThirdPartySlot.js +30 -32
  858. package/dist/esm/third-party-slot/components/ThirdPartySlot.liquid.js +23 -49
  859. package/dist/esm/third-party-slot/setting/index.js +1 -1
  860. package/dist/esm/video/components/LiteYouTubeEmbed.js +40 -42
  861. package/dist/types/index.d.ts +4702 -5431
  862. package/package.json +4 -4
  863. package/dist/cjs/accordion/setting/index.js +0 -13
  864. package/dist/cjs/article/components/ArticleAuthor.liquid.js +0 -27
  865. package/dist/cjs/article/components/ArticleCategory.liquid.js +0 -27
  866. package/dist/cjs/article/components/ArticleContent.liquid.js +0 -42
  867. package/dist/cjs/article/components/ArticleDate.liquid.js +0 -35
  868. package/dist/cjs/article/components/ArticleExcerpt.liquid.js +0 -26
  869. package/dist/cjs/article/components/ArticleImage.liquid.js +0 -67
  870. package/dist/cjs/article/components/ArticlePagination.liquid.js +0 -17
  871. package/dist/cjs/article/components/ArticleReadMore.liquid.js +0 -58
  872. package/dist/cjs/article/components/ArticleTag.liquid.js +0 -27
  873. package/dist/cjs/article/components/ArticleTitle.liquid.js +0 -46
  874. package/dist/cjs/article/setting/index.js +0 -31
  875. package/dist/cjs/banner/setting/index.js +0 -11
  876. package/dist/cjs/breadcrumb/setting/index.js +0 -11
  877. package/dist/cjs/button/setting/index.js +0 -11
  878. package/dist/cjs/carousel/setting/index.js +0 -13
  879. package/dist/cjs/cart/setting/index.js +0 -37
  880. package/dist/cjs/code/setting/index.js +0 -11
  881. package/dist/cjs/collection/components/CollectionBanner.js +0 -99
  882. package/dist/cjs/collection/components/CollectionBanner.liquid.js +0 -96
  883. package/dist/cjs/collection/components/CollectionDescription.js +0 -115
  884. package/dist/cjs/collection/components/CollectionDescription.liquid.js +0 -114
  885. package/dist/cjs/collection/components/CollectionPaginator.js +0 -151
  886. package/dist/cjs/collection/components/CollectionPaginator.liquid.js +0 -72
  887. package/dist/cjs/collection/components/CollectionToolbar.js +0 -112
  888. package/dist/cjs/collection/components/CollectionToolbar.liquid.js +0 -108
  889. package/dist/cjs/collection/setting/index.js +0 -19
  890. package/dist/cjs/countdown-timer/setting/index.js +0 -11
  891. package/dist/cjs/coupon/setting/index.js +0 -11
  892. package/dist/cjs/dialog/setting/index.js +0 -11
  893. package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +0 -234
  894. package/dist/cjs/estimate-delivery/setting/index.js +0 -11
  895. package/dist/cjs/form/setting/index.js +0 -27
  896. package/dist/cjs/grid/setting/index.js +0 -17
  897. package/dist/cjs/header/setting/index.js +0 -11
  898. package/dist/cjs/heading/setting/index.js +0 -11
  899. package/dist/cjs/icon/setting/index.js +0 -11
  900. package/dist/cjs/icon-list/setting/index.js +0 -13
  901. package/dist/cjs/icon-list-hoz/setting/index.js +0 -13
  902. package/dist/cjs/icon-list-v2/setting/index.js +0 -11
  903. package/dist/cjs/image/setting/index.js +0 -11
  904. package/dist/cjs/image-comparison/constants/commonStyles.js +0 -62
  905. package/dist/cjs/image-comparison/setting/index.js +0 -11
  906. package/dist/cjs/image-detection/setting/index.js +0 -11
  907. package/dist/cjs/input/setting/index.js +0 -11
  908. package/dist/cjs/line/setting/index.js +0 -11
  909. package/dist/cjs/link/setting/index.js +0 -11
  910. package/dist/cjs/marquee/setting/index.js +0 -13
  911. package/dist/cjs/menu/setting/index.js +0 -11
  912. package/dist/cjs/modal/setting/index.js +0 -11
  913. package/dist/cjs/pagination/setting/index.js +0 -11
  914. package/dist/cjs/post-purchase/advanced-list/setting/index.js +0 -13
  915. package/dist/cjs/post-purchase/button/setting/index.js +0 -11
  916. package/dist/cjs/post-purchase/callout-banner/setting/index.js +0 -13
  917. package/dist/cjs/post-purchase/countdown-timer/settings/index.js +0 -11
  918. package/dist/cjs/post-purchase/image/setting/index.js +0 -11
  919. package/dist/cjs/post-purchase/line/setting/index.js +0 -11
  920. package/dist/cjs/post-purchase/link/setting/index.js +0 -11
  921. package/dist/cjs/post-purchase/next.js +0 -39
  922. package/dist/cjs/post-purchase/product/settings/index.js +0 -29
  923. package/dist/cjs/post-purchase/product/settings/product-image/ProductFeatureImage.js +0 -142
  924. package/dist/cjs/post-purchase/product/settings/product-image/ProductGalleryImage.js +0 -105
  925. package/dist/cjs/post-purchase/product/settings/product-image/ProductImageLayoutSetting.js +0 -152
  926. package/dist/cjs/post-purchase/product/settings/product-image/setting-v1.js +0 -163
  927. package/dist/cjs/post-purchase/product/settings/product-image/uiV1.js +0 -42
  928. package/dist/cjs/post-purchase/text/settings/index.js +0 -13
  929. package/dist/cjs/product/components/DynamicCheckout.js +0 -28
  930. package/dist/cjs/product/components/Product.js +0 -115
  931. package/dist/cjs/product/components/Product.liquid.js +0 -135
  932. package/dist/cjs/product/components/ProductButton.js +0 -552
  933. package/dist/cjs/product/components/ProductButton.liquid.js +0 -383
  934. package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +0 -196
  935. package/dist/cjs/product/components/ProductList.liquid.js +0 -426
  936. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice.js +0 -57
  937. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice.liquid.js +0 -64
  938. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput.js +0 -74
  939. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput.liquid.js +0 -57
  940. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect.js +0 -42
  941. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect.liquid.js +0 -57
  942. package/dist/cjs/product/components/ProductProperties.liquid.js +0 -148
  943. package/dist/cjs/product/components/ProductQuantity.liquid.js +0 -218
  944. package/dist/cjs/product/components/ProductVariants/variants/Base.js +0 -293
  945. package/dist/cjs/product/components/ProductVariants/variants/Base.liquid.js +0 -168
  946. package/dist/cjs/product/components/ProductVariants/variants/Dropdown.js +0 -159
  947. package/dist/cjs/product/components/ProductVariants/variants/Dropdown.liquid.js +0 -135
  948. package/dist/cjs/product/components/ProductVariants/variants/DropdownGroup.liquid.js +0 -57
  949. package/dist/cjs/product/components/ProductVariants/variants/RadioButtons.js +0 -63
  950. package/dist/cjs/product/components/ProductVariants/variants/combine/index.js +0 -47
  951. package/dist/cjs/product/components/ProductViewMore.js +0 -32
  952. package/dist/cjs/product/setting/index.js +0 -49
  953. package/dist/cjs/radio/setting/index.js +0 -11
  954. package/dist/cjs/select/setting/index.js +0 -11
  955. package/dist/cjs/shop-pay-installment/settings/index.js +0 -11
  956. package/dist/cjs/sticky/setting/index.js +0 -11
  957. package/dist/cjs/stock-counter/setting/index.js +0 -11
  958. package/dist/cjs/tab/setting/index.js +0 -13
  959. package/dist/cjs/text/setting/index.js +0 -11
  960. package/dist/cjs/textarea/setting/index.js +0 -11
  961. package/dist/cjs/third-party-instant/setting/index.js +0 -17
  962. package/dist/cjs/video/setting/index.js +0 -11
  963. package/dist/esm/accordion/setting/index.js +0 -9
  964. package/dist/esm/article/components/ArticleAuthor.liquid.js +0 -23
  965. package/dist/esm/article/components/ArticleCategory.liquid.js +0 -23
  966. package/dist/esm/article/components/ArticleContent.liquid.js +0 -38
  967. package/dist/esm/article/components/ArticleDate.liquid.js +0 -31
  968. package/dist/esm/article/components/ArticleExcerpt.liquid.js +0 -22
  969. package/dist/esm/article/components/ArticleImage.liquid.js +0 -63
  970. package/dist/esm/article/components/ArticlePagination.liquid.js +0 -13
  971. package/dist/esm/article/components/ArticleReadMore.liquid.js +0 -54
  972. package/dist/esm/article/components/ArticleTag.liquid.js +0 -23
  973. package/dist/esm/article/components/ArticleTitle.liquid.js +0 -42
  974. package/dist/esm/article/setting/index.js +0 -27
  975. package/dist/esm/banner/setting/index.js +0 -7
  976. package/dist/esm/breadcrumb/setting/index.js +0 -7
  977. package/dist/esm/button/setting/index.js +0 -7
  978. package/dist/esm/carousel/setting/index.js +0 -9
  979. package/dist/esm/cart/setting/index.js +0 -33
  980. package/dist/esm/code/setting/index.js +0 -7
  981. package/dist/esm/collection/components/CollectionBanner.js +0 -95
  982. package/dist/esm/collection/components/CollectionBanner.liquid.js +0 -92
  983. package/dist/esm/collection/components/CollectionDescription.js +0 -111
  984. package/dist/esm/collection/components/CollectionDescription.liquid.js +0 -110
  985. package/dist/esm/collection/components/CollectionPaginator.js +0 -147
  986. package/dist/esm/collection/components/CollectionPaginator.liquid.js +0 -68
  987. package/dist/esm/collection/components/CollectionToolbar.js +0 -107
  988. package/dist/esm/collection/components/CollectionToolbar.liquid.js +0 -104
  989. package/dist/esm/collection/setting/index.js +0 -15
  990. package/dist/esm/countdown-timer/setting/index.js +0 -7
  991. package/dist/esm/coupon/setting/index.js +0 -7
  992. package/dist/esm/dialog/setting/index.js +0 -7
  993. package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +0 -230
  994. package/dist/esm/estimate-delivery/setting/index.js +0 -7
  995. package/dist/esm/form/setting/index.js +0 -23
  996. package/dist/esm/grid/setting/index.js +0 -13
  997. package/dist/esm/header/setting/index.js +0 -7
  998. package/dist/esm/heading/setting/index.js +0 -7
  999. package/dist/esm/icon/setting/index.js +0 -7
  1000. package/dist/esm/icon-list/setting/index.js +0 -9
  1001. package/dist/esm/icon-list-hoz/setting/index.js +0 -9
  1002. package/dist/esm/icon-list-v2/setting/index.js +0 -7
  1003. package/dist/esm/image/setting/index.js +0 -7
  1004. package/dist/esm/image-comparison/constants/commonStyles.js +0 -58
  1005. package/dist/esm/image-comparison/setting/index.js +0 -7
  1006. package/dist/esm/image-detection/setting/index.js +0 -7
  1007. package/dist/esm/input/setting/index.js +0 -7
  1008. package/dist/esm/line/setting/index.js +0 -7
  1009. package/dist/esm/link/setting/index.js +0 -7
  1010. package/dist/esm/marquee/setting/index.js +0 -9
  1011. package/dist/esm/menu/setting/index.js +0 -7
  1012. package/dist/esm/modal/setting/index.js +0 -7
  1013. package/dist/esm/pagination/setting/index.js +0 -7
  1014. package/dist/esm/post-purchase/advanced-list/setting/index.js +0 -9
  1015. package/dist/esm/post-purchase/button/setting/index.js +0 -7
  1016. package/dist/esm/post-purchase/callout-banner/setting/index.js +0 -9
  1017. package/dist/esm/post-purchase/countdown-timer/settings/index.js +0 -7
  1018. package/dist/esm/post-purchase/image/setting/index.js +0 -7
  1019. package/dist/esm/post-purchase/line/setting/index.js +0 -7
  1020. package/dist/esm/post-purchase/link/setting/index.js +0 -7
  1021. package/dist/esm/post-purchase/next.js +0 -35
  1022. package/dist/esm/post-purchase/product/settings/index.js +0 -25
  1023. package/dist/esm/post-purchase/product/settings/product-image/ProductFeatureImage.js +0 -139
  1024. package/dist/esm/post-purchase/product/settings/product-image/ProductGalleryImage.js +0 -102
  1025. package/dist/esm/post-purchase/product/settings/product-image/ProductImageLayoutSetting.js +0 -149
  1026. package/dist/esm/post-purchase/product/settings/product-image/setting-v1.js +0 -161
  1027. package/dist/esm/post-purchase/product/settings/product-image/uiV1.js +0 -40
  1028. package/dist/esm/post-purchase/text/settings/index.js +0 -9
  1029. package/dist/esm/product/components/DynamicCheckout.js +0 -24
  1030. package/dist/esm/product/components/Product.js +0 -111
  1031. package/dist/esm/product/components/Product.liquid.js +0 -131
  1032. package/dist/esm/product/components/ProductButton.js +0 -548
  1033. package/dist/esm/product/components/ProductButton.liquid.js +0 -379
  1034. package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +0 -192
  1035. package/dist/esm/product/components/ProductList.js +0 -467
  1036. package/dist/esm/product/components/ProductList.liquid.js +0 -422
  1037. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice.js +0 -53
  1038. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice.liquid.js +0 -60
  1039. package/dist/esm/product/components/ProductProperties/ProductPropertyInput.js +0 -70
  1040. package/dist/esm/product/components/ProductProperties/ProductPropertyInput.liquid.js +0 -53
  1041. package/dist/esm/product/components/ProductProperties/ProductPropertySelect.js +0 -38
  1042. package/dist/esm/product/components/ProductProperties/ProductPropertySelect.liquid.js +0 -53
  1043. package/dist/esm/product/components/ProductProperties.liquid.js +0 -144
  1044. package/dist/esm/product/components/ProductQuantity.liquid.js +0 -214
  1045. package/dist/esm/product/components/ProductVariants/variants/Base.js +0 -289
  1046. package/dist/esm/product/components/ProductVariants/variants/Base.liquid.js +0 -164
  1047. package/dist/esm/product/components/ProductVariants/variants/Dropdown.js +0 -155
  1048. package/dist/esm/product/components/ProductVariants/variants/Dropdown.liquid.js +0 -131
  1049. package/dist/esm/product/components/ProductVariants/variants/DropdownGroup.liquid.js +0 -53
  1050. package/dist/esm/product/components/ProductVariants/variants/RadioButtons.js +0 -59
  1051. package/dist/esm/product/components/ProductVariants/variants/combine/index.js +0 -44
  1052. package/dist/esm/product/components/ProductViewMore.js +0 -28
  1053. package/dist/esm/product/setting/index.js +0 -45
  1054. package/dist/esm/radio/setting/index.js +0 -7
  1055. package/dist/esm/select/setting/index.js +0 -7
  1056. package/dist/esm/shop-pay-installment/settings/index.js +0 -7
  1057. package/dist/esm/sticky/setting/index.js +0 -7
  1058. package/dist/esm/stock-counter/setting/index.js +0 -7
  1059. package/dist/esm/tab/setting/index.js +0 -9
  1060. package/dist/esm/text/setting/index.js +0 -7
  1061. package/dist/esm/textarea/setting/index.js +0 -7
  1062. package/dist/esm/third-party-instant/setting/index.js +0 -13
  1063. package/dist/esm/video/setting/index.js +0 -7
  1064. /package/dist/cjs/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/presets.js +0 -0
  1065. /package/dist/cjs/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/settings.js +0 -0
  1066. /package/dist/cjs/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/uiV1.js +0 -0
  1067. /package/dist/cjs/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/uiV2.js +0 -0
  1068. /package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/child}/MediaIcon.js +0 -0
  1069. /package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/child}/ProductFeatureVideo.js +0 -0
  1070. /package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/child}/ProductFeaturedImageOnly.js +0 -0
  1071. /package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/lightbox}/ButtonOpenLightBox.js +0 -0
  1072. /package/dist/cjs/product/components/ProductImagesV2/{jsx/hooks → hooks}/useFilterImagesByVariant.js +0 -0
  1073. /package/dist/cjs/product/components/ProductVariants/{common.js → common/common.js} +0 -0
  1074. /package/dist/cjs/product/components/ProductVariants/{variants → components/dropdown-option}/DropdownOption.js +0 -0
  1075. /package/dist/cjs/product/components/ProductVariants/{variants/VariantOption/index.js → components/dropdown-option/VariantOption.js} +0 -0
  1076. /package/dist/cjs/product/components/ProductVariants/{variants → components/rectangle-list}/RectangleList.js +0 -0
  1077. /package/dist/cjs/tab/{hooks → components/hooks}/useTabInteraction.js +0 -0
  1078. /package/dist/esm/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/presets.js +0 -0
  1079. /package/dist/esm/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/settings.js +0 -0
  1080. /package/dist/esm/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/uiV1.js +0 -0
  1081. /package/dist/esm/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/uiV2.js +0 -0
  1082. /package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/child}/MediaIcon.js +0 -0
  1083. /package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/child}/ProductFeatureVideo.js +0 -0
  1084. /package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/child}/ProductFeaturedImageOnly.js +0 -0
  1085. /package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/lightbox}/ButtonOpenLightBox.js +0 -0
  1086. /package/dist/esm/product/components/ProductImagesV2/{jsx/hooks → hooks}/useFilterImagesByVariant.js +0 -0
  1087. /package/dist/esm/product/components/ProductVariants/{common.js → common/common.js} +0 -0
  1088. /package/dist/esm/product/components/ProductVariants/{variants → components/dropdown-option}/DropdownOption.js +0 -0
  1089. /package/dist/esm/product/components/ProductVariants/{variants/VariantOption/index.js → components/dropdown-option/VariantOption.js} +0 -0
  1090. /package/dist/esm/product/components/ProductVariants/{variants → components/rectangle-list}/RectangleList.js +0 -0
  1091. /package/dist/esm/tab/{hooks → components/hooks}/useTabInteraction.js +0 -0
@@ -1,552 +0,0 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var jsxRuntime = require('react/jsx-runtime');
7
- var core = require('@gem-sdk/core');
8
- var React = require('react');
9
- var Button = require('../../button/components/Button.js');
10
- var useNotification = require('../../notification/hooks/use-notification.js');
11
- require('../../notification/components/Notice.js');
12
- var Text = require('../../text/components/Text.js');
13
- var tracking = require('../helpers/tracking.js');
14
- var index = require('./ProductPrice/index.js');
15
-
16
- const NODE_PRICE_EMPTY = null;
17
- const minusIcon = `
18
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
19
- <path d="M16 10C16 10.2486 15.9241 10.4871 15.7891 10.6629C15.6541 10.8387 15.471 10.9375 15.28 10.9375H4.72C4.52904 10.9375 4.34591 10.8387 4.21088 10.6629C4.07586 10.4871 4 10.2486 4 10C4 9.75136 4.07586 9.5129 4.21088 9.33709C4.34591 9.16127 4.52904 9.0625 4.72 9.0625H15.28C15.471 9.0625 15.6541 9.16127 15.7891 9.33709C15.9241 9.5129 16 9.75136 16 10Z" fill="currentColor"/>
20
- </svg>`;
21
- const ProductButton = ({ setting, builderProps, builderAttrs, style, styles, advanced, children })=>{
22
- const { successColor, successTypo, errorColor, errorTypo, isCustomOutOfStock, oosBackground, oosTextColor, oosBorder, oosEnableShadow, oosShadow, oosRounded, oosIconColor, oosBackgroundV2, oosTextColorV2, oosBorderV2, oosShadowV2, oosRoundedV2, ...buttonStyles } = styles ?? {};
23
- const { storefrontToken } = core.useStoreFront();
24
- const { currency } = core.useCurrency();
25
- const mode = core.useEditorMode();
26
- const { cartId, updateCartId } = core.useCartId();
27
- const { openCart } = core.useCartUI();
28
- const [noti, notiComponent] = useNotification.default({
29
- closable: true,
30
- maxCount: 3
31
- });
32
- const { trigger } = core.useInteraction();
33
- const getErrorMessage = (customMessage)=>/*#__PURE__*/ jsxRuntime.jsx("div", {
34
- children: /*#__PURE__*/ jsxRuntime.jsx(Text.default, {
35
- setting: {
36
- text: customMessage || setting?.errorMessage,
37
- excludeFlex: true
38
- },
39
- styles: {
40
- typo: styles?.errorTypo,
41
- color: {
42
- normal: styles?.errorColor
43
- }
44
- }
45
- })
46
- });
47
- const dispatchEventAddToCart = ()=>{
48
- const element = document.querySelector(`[data-id="${builderProps?.uid}"]`);
49
- if (!element) return;
50
- const gpInteractionAfterSubmit = JSON.parse(element?.getAttribute('gp-interaction-after-submit') ?? '{}');
51
- if (Object.keys(gpInteractionAfterSubmit).length <= 0) return;
52
- Object.entries(gpInteractionAfterSubmit).map(([value])=>{
53
- trigger({
54
- event: 'gp:after-submit',
55
- selector: `[data-id="${builderProps?.uid}"]`,
56
- data: Number(value),
57
- element
58
- });
59
- });
60
- };
61
- const onSuccess = React.useCallback((result)=>{
62
- if (setting?.actionEffect === 'continue-shopping') {
63
- if (!setting?.enableSuccessMessage) return;
64
- noti.open({
65
- content: /*#__PURE__*/ jsxRuntime.jsx("div", {
66
- children: /*#__PURE__*/ jsxRuntime.jsx(Text.default, {
67
- setting: {
68
- text: setting?.successMessage,
69
- excludeFlex: true
70
- },
71
- styles: {
72
- typo: styles?.successTypo,
73
- color: {
74
- normal: styles?.successColor
75
- }
76
- }
77
- })
78
- }),
79
- placement: 'top'
80
- });
81
- openCart();
82
- }
83
- if (setting?.actionEffect !== 'buy-now') {
84
- updateCartId(result.id);
85
- }
86
- if (setting?.actionEffect === 'buy-now') {
87
- if (result.checkoutUrl) {
88
- window.location.href = storefrontToken ? `${result.checkoutUrl}?access_token=${storefrontToken}` : result.checkoutUrl;
89
- }
90
- } else if (setting?.actionEffect === 'open-cart-drawer') {
91
- openCart();
92
- } else if (setting?.actionEffect === 'go-to-url' && setting.customURL?.link) {
93
- if (setting.customURL?.target === '_blank') {
94
- window.open(setting.customURL.link, '_blank');
95
- } else {
96
- window.location.href = setting.customURL.link;
97
- }
98
- }
99
- dispatchEventAddToCart();
100
- }, // eslint-disable-next-line react-hooks/exhaustive-deps
101
- [
102
- setting?.actionEffect,
103
- setting?.customURL?.link,
104
- setting?.customURL?.target,
105
- setting?.enableSuccessMessage,
106
- setting?.successMessage,
107
- noti,
108
- styles?.successTypo,
109
- styles?.successColor,
110
- openCart,
111
- updateCartId,
112
- storefrontToken
113
- ]);
114
- const { isMutating: createCartLoading, trigger: createCart } = core.useCreateCart({
115
- onSuccess,
116
- onError: ()=>{
117
- if (!setting?.enableErrorMessage) return;
118
- noti.open({
119
- content: getErrorMessage(),
120
- placement: 'top'
121
- });
122
- }
123
- });
124
- const { isMutating: addToCartLoading, trigger: addToCartAction } = core.useAddToCart({
125
- onSuccess,
126
- onError: (error)=>{
127
- if (!setting?.enableErrorMessage) return;
128
- // https://shopify.dev/docs/api/storefront/2024-10/enums/CartErrorCode
129
- const firstError = error[0];
130
- if (firstError && firstError.code === 'INVALID') {
131
- return noti.open({
132
- content: getErrorMessage(firstError.message),
133
- placement: 'top'
134
- });
135
- }
136
- noti.open({
137
- content: getErrorMessage(),
138
- placement: 'top'
139
- });
140
- }
141
- });
142
- const currentVariant = core.useCurrentVariant();
143
- const { quantity } = core.useQuantity();
144
- const product = core.useProduct();
145
- const properties = core.useProductProperties();
146
- const updateProductSubmit = core.useProductStore((s)=>s.updateIsSubmit);
147
- const { hasPreSelected } = core.useHasPreSelected();
148
- const addToCart = React.useCallback(()=>{
149
- if (!currentVariant?.baseID || !quantity || !product?.baseID || hasPreSelected !== undefined && hasPreSelected === false || mode === 'edit') return;
150
- const checkInvalid = properties?.some((item)=>item.required && !item.value);
151
- updateProductSubmit(true);
152
- if (checkInvalid) return;
153
- const attributes = properties?.filter((v)=>!!v.value)?.map((item)=>({
154
- key: item.key,
155
- value: item.value
156
- }));
157
- tracking.addToCartTracking({
158
- id: product?.baseID,
159
- name: product?.title,
160
- sku: currentVariant.sku,
161
- quantity,
162
- price: currentVariant?.price,
163
- variant: currentVariant.title,
164
- brand: product?.vendor,
165
- currency
166
- });
167
- if (setting?.actionEffect === 'buy-now') {
168
- createCart({
169
- items: [
170
- {
171
- quantity,
172
- variantId: currentVariant.baseID,
173
- attributes
174
- }
175
- ]
176
- });
177
- } else {
178
- if (cartId) {
179
- addToCartAction({
180
- cartId,
181
- lines: [
182
- {
183
- quantity,
184
- variantId: currentVariant.baseID,
185
- attributes
186
- }
187
- ]
188
- });
189
- } else {
190
- createCart({
191
- items: [
192
- {
193
- quantity,
194
- variantId: currentVariant.baseID,
195
- attributes
196
- }
197
- ]
198
- });
199
- }
200
- }
201
- }, [
202
- currentVariant?.baseID,
203
- currentVariant?.price,
204
- currentVariant?.title,
205
- currentVariant?.sku,
206
- quantity,
207
- product?.baseID,
208
- product?.title,
209
- product?.vendor,
210
- mode,
211
- properties,
212
- updateProductSubmit,
213
- currency,
214
- setting?.actionEffect,
215
- createCart,
216
- cartId,
217
- addToCartAction,
218
- hasPreSelected
219
- ]);
220
- const isInStock = core.useCurrentVariantInStock();
221
- const isDisable = !isInStock || createCartLoading || addToCartLoading;
222
- const label = !isInStock ? !currentVariant ? 'Unavailable' : setting?.outOfStockLabel : setting?.label;
223
- if (!isInStock && isCustomOutOfStock) {
224
- buttonStyles.backgroundColor = {
225
- normal: oosBackground
226
- };
227
- buttonStyles.textColor = {
228
- normal: oosTextColor
229
- };
230
- buttonStyles.borderBtn = oosBorder;
231
- buttonStyles.hasBoxShadowBtn = {
232
- normal: oosEnableShadow
233
- };
234
- buttonStyles.boxShadowBtn = {
235
- normal: oosShadow
236
- };
237
- buttonStyles.roundedBtn = {
238
- normal: oosRounded
239
- };
240
- }
241
- if (!isInStock) {
242
- if (oosBackgroundV2) {
243
- buttonStyles.backgroundColorV2 = {
244
- desktop: {
245
- normal: oosBackgroundV2?.desktop?.normal
246
- },
247
- tablet: {
248
- normal: oosBackgroundV2?.tablet?.normal
249
- },
250
- mobile: {
251
- normal: oosBackgroundV2?.mobile?.normal
252
- }
253
- };
254
- }
255
- if (oosShadowV2) {
256
- buttonStyles.boxShadowBtnV2 = {
257
- desktop: {
258
- normal: oosShadowV2?.desktop?.normal
259
- },
260
- tablet: {
261
- normal: oosShadowV2?.tablet?.normal
262
- },
263
- mobile: {
264
- normal: oosShadowV2?.mobile?.normal
265
- }
266
- };
267
- }
268
- if (oosRoundedV2) {
269
- buttonStyles.roundedBtnV2 = {
270
- desktop: {
271
- normal: oosRoundedV2?.desktop?.normal
272
- },
273
- tablet: {
274
- normal: oosRoundedV2?.tablet?.normal
275
- },
276
- mobile: {
277
- normal: oosRoundedV2?.mobile?.normal
278
- }
279
- };
280
- }
281
- if (oosBorderV2) {
282
- buttonStyles.borderBtnV2 = {
283
- desktop: {
284
- normal: oosBorderV2?.desktop?.normal
285
- },
286
- tablet: {
287
- normal: oosBorderV2?.tablet?.normal
288
- },
289
- mobile: {
290
- normal: oosBorderV2?.mobile?.normal
291
- }
292
- };
293
- }
294
- if (oosTextColorV2) {
295
- buttonStyles.typo = buttonStyles.typo ?? {};
296
- buttonStyles.typo.attrs = buttonStyles.typo.attrs ?? {};
297
- if (oosTextColorV2.desktop?.normal) {
298
- buttonStyles.typo = {
299
- attrs: {
300
- color: oosTextColorV2.desktop.normal
301
- }
302
- };
303
- }
304
- }
305
- }
306
- const generateProductPrice = React.useCallback((priceType, settings)=>{
307
- const { lineThrough, typo, hasBoxShadowPrice, boxShadowPrice } = settings;
308
- return /*#__PURE__*/ jsxRuntime.jsx(index.default, {
309
- styles: {
310
- priceType,
311
- lineThrough,
312
- typo,
313
- parentTextColor: styles?.textColor
314
- },
315
- setting: {
316
- hasBoxShadowPrice,
317
- boxShadowPrice,
318
- opacityPrice: settings.opacityPrice
319
- },
320
- classNames: "gp-button-price gp-transition-colors gp-duration-300"
321
- });
322
- }, [
323
- styles?.textColor
324
- ]);
325
- const composePriceOnlyLayout = React.useMemo(()=>/*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
326
- children: [
327
- /*#__PURE__*/ jsxRuntime.jsx("div", {
328
- className: "gp-product-dot-price gp-transition-colors gp-duration-300",
329
- style: {
330
- ...core.getGlobalColorStateStyle('c', styles?.textColor),
331
- ...core.makeStyle({
332
- mr: '8px',
333
- ml: '8px',
334
- op: `${setting?.opacityPrice?.compareAtPrice}%`
335
- })
336
- },
337
- dangerouslySetInnerHTML: {
338
- __html: minusIcon
339
- }
340
- }),
341
- generateProductPrice('regular', {
342
- lineThrough: false,
343
- typo: setting?.priceTypo?.price,
344
- hasBoxShadowPrice: setting?.hasShadowPrice?.price,
345
- boxShadowPrice: setting?.shadowPrice?.price,
346
- opacityPrice: 100
347
- })
348
- ]
349
- }), [
350
- generateProductPrice,
351
- setting?.hasShadowPrice?.price,
352
- setting?.opacityPrice?.compareAtPrice,
353
- setting?.priceTypo?.price,
354
- setting?.shadowPrice?.price,
355
- styles?.textColor
356
- ]);
357
- const composePriceAfter = React.useMemo(()=>/*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
358
- children: [
359
- /*#__PURE__*/ jsxRuntime.jsx("div", {
360
- className: "gp-product-dot-price gp-transition-colors gp-duration-300",
361
- style: {
362
- ...core.getGlobalColorStateStyle('c', styles?.textColor),
363
- ...core.makeStyle({
364
- mr: '8px',
365
- ml: '8px',
366
- op: `${setting?.opacityPrice?.compareAtPrice}%`
367
- })
368
- },
369
- dangerouslySetInnerHTML: {
370
- __html: minusIcon
371
- }
372
- }),
373
- generateProductPrice('compare', {
374
- lineThrough: true,
375
- typo: setting?.priceTypo?.compareAtPrice,
376
- hasBoxShadowPrice: setting?.hasShadowPrice?.compareAtPrice,
377
- boxShadowPrice: setting?.shadowPrice?.compareAtPrice,
378
- opacityPrice: setting?.opacityPrice?.compareAtPrice
379
- }),
380
- /*#__PURE__*/ jsxRuntime.jsx("div", {
381
- style: {
382
- '--mr': '2px',
383
- '--ml': '2px'
384
- }
385
- }),
386
- generateProductPrice('regular', {
387
- lineThrough: false,
388
- typo: setting?.priceTypo?.price,
389
- hasBoxShadowPrice: setting?.hasShadowPrice?.price,
390
- boxShadowPrice: setting?.shadowPrice?.price,
391
- opacityPrice: 100
392
- })
393
- ]
394
- }), [
395
- generateProductPrice,
396
- setting?.hasShadowPrice?.compareAtPrice,
397
- setting?.hasShadowPrice?.price,
398
- setting?.opacityPrice?.compareAtPrice,
399
- setting?.priceTypo?.compareAtPrice,
400
- setting?.priceTypo?.price,
401
- setting?.shadowPrice?.compareAtPrice,
402
- setting?.shadowPrice?.price,
403
- styles?.textColor
404
- ]);
405
- const composePriceBefore = React.useMemo(()=>/*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
406
- children: [
407
- /*#__PURE__*/ jsxRuntime.jsx("div", {
408
- className: "gp-product-dot-price gp-transition-colors gp-duration-300",
409
- style: {
410
- ...core.getGlobalColorStateStyle('c', styles?.textColor),
411
- ...core.makeStyle({
412
- mr: '8px',
413
- ml: '8px',
414
- op: `${setting?.opacityPrice?.compareAtPrice}%`
415
- })
416
- },
417
- dangerouslySetInnerHTML: {
418
- __html: minusIcon
419
- }
420
- }),
421
- generateProductPrice('regular', {
422
- lineThrough: false,
423
- typo: setting?.priceTypo?.price,
424
- hasBoxShadowPrice: setting?.hasShadowPrice?.price,
425
- boxShadowPrice: setting?.shadowPrice?.price,
426
- opacityPrice: 100
427
- }),
428
- /*#__PURE__*/ jsxRuntime.jsx("div", {
429
- style: {
430
- '--mr': '2px',
431
- '--ml': '2px'
432
- }
433
- }),
434
- generateProductPrice('compare', {
435
- lineThrough: true,
436
- typo: setting?.priceTypo?.compareAtPrice,
437
- hasBoxShadowPrice: setting?.hasShadowPrice?.compareAtPrice,
438
- boxShadowPrice: setting?.shadowPrice?.compareAtPrice,
439
- opacityPrice: setting?.opacityPrice?.compareAtPrice
440
- })
441
- ]
442
- }), [
443
- generateProductPrice,
444
- setting?.hasShadowPrice?.compareAtPrice,
445
- setting?.hasShadowPrice?.price,
446
- setting?.opacityPrice?.compareAtPrice,
447
- setting?.priceTypo?.compareAtPrice,
448
- setting?.priceTypo?.price,
449
- setting?.shadowPrice?.compareAtPrice,
450
- setting?.shadowPrice?.price,
451
- styles?.textColor
452
- ]);
453
- const composeNodePrice = React.useMemo(()=>{
454
- if (!setting?.buttonLayout) return NODE_PRICE_EMPTY;
455
- if ([
456
- 'cart-only',
457
- 'cart-icon'
458
- ].includes(setting?.buttonLayout)) return NODE_PRICE_EMPTY;
459
- if (!setting?.priceLayout) {
460
- return composePriceOnlyLayout;
461
- }
462
- switch(setting?.priceLayout){
463
- case 'price-only':
464
- return composePriceOnlyLayout;
465
- case 'price-after':
466
- return composePriceAfter;
467
- case 'price-before':
468
- return composePriceBefore;
469
- }
470
- }, [
471
- composePriceBefore,
472
- composePriceAfter,
473
- composePriceOnlyLayout,
474
- setting?.buttonLayout,
475
- setting?.priceLayout
476
- ]);
477
- return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
478
- children: [
479
- /*#__PURE__*/ jsxRuntime.jsxs(Button.default, {
480
- className: core.cls({
481
- 'gp-cursor-default gp-opacity-30': isDisable
482
- }),
483
- builderProps: builderProps,
484
- builderAttrs: {
485
- ...builderAttrs,
486
- 'data-is-in-stock': isInStock
487
- },
488
- advanced: advanced,
489
- setting: {
490
- label,
491
- htmlType: 'button',
492
- loading: addToCartLoading || createCartLoading,
493
- iconAlign: setting?.iconAlign,
494
- iconSvg: setting?.iconSvg,
495
- iconVisible: styles?.enableIcon === true && (setting?.buttonLayout === 'cart-price-icon' || setting?.buttonLayout === 'cart-icon'),
496
- shouldClearSpace: setting?.shouldClearSpace
497
- },
498
- style: style,
499
- styles: {
500
- ...buttonStyles,
501
- size: {
502
- desktop: '1em',
503
- tablet: '1em',
504
- mobile: '1em'
505
- }
506
- },
507
- onClick: addToCart,
508
- nodePrice: composeNodePrice,
509
- children: [
510
- children,
511
- setting?.messageLayout === 'inline' && /*#__PURE__*/ jsxRuntime.jsxs("div", {
512
- className: "gp-w-full gp-flex gp-gap-2 gp-items-center gp-justify-center",
513
- children: [
514
- /*#__PURE__*/ jsxRuntime.jsx("div", {
515
- className: "gp-w-4 gp-h-4",
516
- children: /*#__PURE__*/ jsxRuntime.jsx("svg", {
517
- width: "16",
518
- height: "16",
519
- viewBox: "0 0 16 16",
520
- fill: "none",
521
- xmlns: "http://www.w3.org/2000/svg",
522
- children: /*#__PURE__*/ jsxRuntime.jsx("path", {
523
- d: "M8 1C4.1 1 1 4.1 1 8C1 11.9 4.1 15 8 15C11.9 15 15 11.9 15 8C15 4.1 11.9 1 8 1ZM6.4 11.2L3.8 8.6L4.5 7.9L6.4 9.8L11.5 4.8L12.2 5.5L6.4 11.2Z",
524
- fill: "#00C853"
525
- })
526
- })
527
- }),
528
- /*#__PURE__*/ jsxRuntime.jsx("div", {
529
- className: "gp-w-fit",
530
- children: /*#__PURE__*/ jsxRuntime.jsx(Text.default, {
531
- setting: {
532
- text: setting?.successMessage,
533
- htmlTag: 'div'
534
- },
535
- styles: {
536
- typo: styles?.successTypo,
537
- color: {
538
- normal: styles?.successColor
539
- }
540
- }
541
- })
542
- })
543
- ]
544
- })
545
- ]
546
- }),
547
- notiComponent
548
- ]
549
- });
550
- };
551
-
552
- exports.default = ProductButton;