@gem-sdk/components 2.0.0-dev.306 → 2.0.0-dev.329

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 (1089) 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.liquid.js +7 -7
  7. package/dist/cjs/article/components/ArticlePagination.js +1 -1
  8. package/dist/cjs/article/components/ArticleReadMore.js +1 -1
  9. package/dist/cjs/article/index.js +39 -0
  10. package/dist/cjs/article/next.js +31 -41
  11. package/dist/cjs/article/setting/ArticleExcerpt.js +4 -4
  12. package/dist/cjs/article/setting/ArticleList.js +48 -15
  13. package/dist/cjs/article/setting/configs/ArticleAuthor/presets.js +28 -1
  14. package/dist/cjs/article/setting/configs/ArticleAuthor/uiV2.js +3 -12
  15. package/dist/cjs/article/setting/configs/ArticleCategory/presets.js +19 -1
  16. package/dist/cjs/article/setting/configs/ArticleCategory/uiV2.js +8 -0
  17. package/dist/cjs/article/setting/configs/ArticleDate/presets.js +19 -1
  18. package/dist/cjs/article/setting/configs/ArticleDate/uiV2.js +8 -0
  19. package/dist/cjs/article/setting/configs/ArticleImage/settings.js +41 -7
  20. package/dist/cjs/article/setting/configs/ArticleTag/settings.js +1 -4
  21. package/dist/cjs/article/setting/configs/ArticleTitle/uiV2.js +8 -16
  22. package/dist/cjs/banner/components/HeroBanner.liquid.js +2 -2
  23. package/dist/cjs/banner/components/HeroBannerItem.js +6 -6
  24. package/dist/cjs/banner/components/HeroBannerItem.liquid.js +8 -146
  25. package/dist/cjs/banner/components/hooks/useHeroBanner.js +1 -1
  26. package/dist/cjs/banner/index.js +18 -0
  27. package/dist/cjs/banner/setting/HeroBanner.js +1 -2
  28. package/dist/cjs/banner/setting/setting.js +24 -1180
  29. package/dist/cjs/banner/setting/uiV2.js +77 -11
  30. package/dist/cjs/breadcrumb/index.js +13 -0
  31. package/dist/cjs/builder.js +227 -226
  32. package/dist/cjs/button/components/Button.js +2 -2
  33. package/dist/cjs/button/components/common/classes.js +1 -1
  34. package/dist/cjs/button/components/common/data.js +3 -2
  35. package/dist/cjs/button/components/common/styles.js +32 -33
  36. package/dist/cjs/button/index.js +14 -0
  37. package/dist/cjs/carousel/components/Arrow.liquid.js +1 -1
  38. package/dist/cjs/carousel/components/Carousel.js +31 -12
  39. package/dist/cjs/carousel/components/common/carousel.js +5 -5
  40. package/dist/cjs/carousel/index.js +18 -0
  41. package/dist/cjs/cart/components/CartList.js +1 -1
  42. package/dist/cjs/cart/index.js +46 -0
  43. package/dist/cjs/code/components/CSSCode.js +0 -1
  44. package/dist/cjs/code/index.js +14 -0
  45. package/dist/cjs/collection/components/collection-banner/common/classes.js +36 -0
  46. package/dist/cjs/collection/components/collection-banner/common/index.js +19 -0
  47. package/dist/cjs/collection/components/collection-banner/common/styles.js +46 -0
  48. package/dist/cjs/collection/components/collection-banner/components/CollectionBanner.js +106 -0
  49. package/dist/cjs/collection/components/collection-banner/components/CollectionBanner.liquid.js +94 -0
  50. package/dist/cjs/collection/components/collection-description/common/classes.js +21 -0
  51. package/dist/cjs/collection/components/collection-description/common/constant.js +9 -0
  52. package/dist/cjs/collection/components/collection-description/common/index.js +36 -0
  53. package/dist/cjs/collection/components/collection-description/common/styles.js +86 -0
  54. package/dist/cjs/collection/components/collection-description/components/CollectionDescription.js +103 -0
  55. package/dist/cjs/collection/components/collection-description/components/CollectionDescription.liquid.js +99 -0
  56. package/dist/cjs/collection/components/collection-description/hook/useDescription.js +89 -0
  57. package/dist/cjs/collection/components/collection-paginator/common/classes.js +25 -0
  58. package/dist/cjs/collection/components/collection-paginator/common/index.js +195 -0
  59. package/dist/cjs/collection/components/collection-paginator/common/styles.js +61 -0
  60. package/dist/cjs/collection/components/collection-paginator/components/CollectionPaginator.js +42 -0
  61. package/dist/cjs/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +62 -0
  62. package/dist/cjs/collection/components/{CollectionTitle.js → collection-title/components/CollectionTitle.js} +3 -4
  63. package/dist/cjs/collection/components/{CollectionTitle.liquid.js → collection-title/components/CollectionTitle.liquid.js} +1 -1
  64. package/dist/cjs/collection/components/collection-toolbar/common/classes.js +33 -0
  65. package/dist/cjs/collection/components/collection-toolbar/common/constant.js +40 -0
  66. package/dist/cjs/collection/components/collection-toolbar/common/index.js +28 -0
  67. package/dist/cjs/collection/components/collection-toolbar/common/style.js +51 -0
  68. package/dist/cjs/collection/components/collection-toolbar/components/CollectionToolbar.js +99 -0
  69. package/dist/cjs/collection/components/collection-toolbar/components/CollectionToolbar.liquid.js +101 -0
  70. package/dist/cjs/collection/index.js +26 -0
  71. package/dist/cjs/collection/next.js +5 -5
  72. package/dist/cjs/collection/setting/collection-paginator/configs/settings.js +5 -0
  73. package/dist/cjs/countdown-timer/components/Countdown.js +1 -1
  74. package/dist/cjs/countdown-timer/index.js +14 -0
  75. package/dist/cjs/coupon/common/classes.js +9 -0
  76. package/dist/cjs/coupon/common/index.js +16 -0
  77. package/dist/cjs/coupon/common/styles.js +46 -0
  78. package/dist/cjs/coupon/components/Coupon.js +42 -84
  79. package/dist/cjs/coupon/components/Coupon.liquid.js +29 -40
  80. package/dist/cjs/coupon/hooks/useCoupon.js +32 -0
  81. package/dist/cjs/coupon/index.js +14 -0
  82. package/dist/cjs/coupon/setting/Coupon.js +8 -1191
  83. package/dist/cjs/coupon/setting/config/settings.js +832 -0
  84. package/dist/cjs/coupon/setting/config/uiV1.js +367 -0
  85. package/dist/cjs/coupon/setting/config/uiV2.js +352 -0
  86. package/dist/cjs/dialog/index.js +14 -0
  87. package/dist/cjs/estimate-delivery/index.js +14 -0
  88. package/dist/cjs/form/components/form-email/FormEmail.liquid.js +1 -1
  89. package/dist/cjs/form/components/submit-button/SubmitButton.js +8 -10
  90. package/dist/cjs/form/components/textinput/common/composeStyles.js +0 -2
  91. package/dist/cjs/form/index.js +30 -0
  92. package/dist/cjs/form/setting/contact/Contact.js +2 -0
  93. package/dist/cjs/form/setting/form-checkbox/FormCheckbox.js +2 -2
  94. package/dist/cjs/form/setting/form-checkbox/configs/settings.js +3 -1
  95. package/dist/cjs/form/setting/form-dropdown/FormDropdown.js +3 -3
  96. package/dist/cjs/form/setting/form-dropdown/configs/settings.js +3 -1
  97. package/dist/cjs/form/setting/form-email/configs/FormEmail.js +3 -3
  98. package/dist/cjs/form/setting/form-email/configs/settings.js +3 -1
  99. package/dist/cjs/form/setting/form-textarea/Textarea.js +3 -3
  100. package/dist/cjs/form/setting/form-textarea/configs/settings.js +3 -1
  101. package/dist/cjs/form/setting/newsletter/Newsletter.js +2 -2
  102. package/dist/cjs/form/setting/newsletter/configs/settings.js +3 -1
  103. package/dist/cjs/form/setting/submit-button/SubmitButton.js +2 -2
  104. package/dist/cjs/form/setting/submit-button/configs/settings.js +3 -1
  105. package/dist/cjs/form/setting/text-field/TextField.js +3 -3
  106. package/dist/cjs/form/setting/text-field/configs/settings.js +3 -1
  107. package/dist/cjs/form/setting/text-input/TextInput.js +3 -3
  108. package/dist/cjs/form/setting/text-input/configs/settings.js +3 -1
  109. package/dist/cjs/grid/index.js +22 -0
  110. package/dist/cjs/grid/row/Row.js +5 -3
  111. package/dist/cjs/grid/row/Row.liquid.js +1 -4
  112. package/dist/cjs/grid/row/commons/getAttr.js +2 -5
  113. package/dist/cjs/header/components/kind/basic/index.js +3 -3
  114. package/dist/cjs/header/components/kind/modern/index.js +4 -4
  115. package/dist/cjs/header/index.js +24 -0
  116. package/dist/cjs/heading/index.js +14 -0
  117. package/dist/cjs/helpers.js +25 -6
  118. package/dist/cjs/icon/index.js +14 -0
  119. package/dist/cjs/icon/setting/Icon.js +2 -2
  120. package/dist/cjs/icon-list/index.js +16 -0
  121. package/dist/cjs/icon-list-hoz/index.js +16 -0
  122. package/dist/cjs/icon-list-v2/common/classes.js +31 -0
  123. package/dist/cjs/icon-list-v2/common/index.js +33 -0
  124. package/dist/cjs/icon-list-v2/common/styles.js +97 -0
  125. package/dist/cjs/icon-list-v2/components/IconList.js +111 -131
  126. package/dist/cjs/icon-list-v2/components/IconList.liquid.js +99 -92
  127. package/dist/cjs/icon-list-v2/index.js +14 -0
  128. package/dist/cjs/image/components/common/attributes.js +4 -2
  129. package/dist/cjs/image/components/common/helpers.js +4 -0
  130. package/dist/cjs/image/components/helpers/getNextImageLiquidAttrs.js +3 -2
  131. package/dist/cjs/image/helpers/getSrcSet.js +1 -1
  132. package/dist/cjs/image/index.js +16 -0
  133. package/dist/cjs/image/setting/configs/presets.js +3 -0
  134. package/dist/cjs/image/setting/configs/settings.js +69 -11
  135. package/dist/cjs/image/setting/configs/uiV2.js +127 -1
  136. package/dist/cjs/image-comparison/components/CompareImage.js +230 -562
  137. package/dist/cjs/image-comparison/components/CompareImage.liquid.js +249 -322
  138. package/dist/cjs/image-comparison/components/ImageComparison.js +16 -34
  139. package/dist/cjs/image-comparison/components/ImageComparison.liquid.js +16 -10
  140. package/dist/cjs/image-comparison/components/Label.js +31 -0
  141. package/dist/cjs/image-comparison/components/Label.liquid.js +18 -44
  142. package/dist/cjs/image-comparison/components/SlideHandle.js +57 -0
  143. package/dist/cjs/image-comparison/components/SlideHandle.liquid.js +37 -0
  144. package/dist/cjs/image-comparison/components/common/attributes.js +68 -0
  145. package/dist/cjs/image-comparison/components/common/classes.js +40 -0
  146. package/dist/cjs/image-comparison/components/common/constant.js +10 -0
  147. package/dist/cjs/image-comparison/components/common/data.js +61 -0
  148. package/dist/cjs/image-comparison/components/common/helpers.js +135 -5
  149. package/dist/cjs/image-comparison/components/common/styles.js +182 -0
  150. package/dist/cjs/image-comparison/components/helpers/getReactStyles.js +50 -0
  151. package/dist/cjs/image-comparison/components/hooks/useCompareImage.js +192 -0
  152. package/dist/cjs/image-comparison/index.js +14 -0
  153. package/dist/cjs/image-comparison/setting/configs/settings.js +94 -40
  154. package/dist/cjs/image-comparison/setting/configs/uiV2.js +97 -30
  155. package/dist/cjs/image-detection/index.js +12 -0
  156. package/dist/cjs/image-detection/setting/ImageDetection.js +1 -1
  157. package/dist/cjs/index.js +344 -372
  158. package/dist/cjs/index.liquid.js +108 -126
  159. package/dist/cjs/input/index.js +12 -0
  160. package/dist/cjs/line/index.js +12 -0
  161. package/dist/cjs/link/index.js +13 -0
  162. package/dist/cjs/marquee/common/classes.js +23 -0
  163. package/dist/cjs/marquee/common/index.js +23 -0
  164. package/dist/cjs/marquee/common/styles.js +224 -0
  165. package/dist/cjs/marquee/components/Marquee.js +125 -128
  166. package/dist/cjs/marquee/components/Marquee.liquid.js +81 -197
  167. package/dist/cjs/marquee/components/MarqueeBase.js +15 -156
  168. package/dist/cjs/marquee/components/MarqueeBase.liquid.js +36 -78
  169. package/dist/cjs/marquee/components/MarqueeItem.js +28 -72
  170. package/dist/cjs/marquee/components/MarqueeItem.liquid.js +18 -26
  171. package/dist/cjs/marquee/hooks/useMarquee.js +47 -0
  172. package/dist/cjs/marquee/hooks/useMarqueeBase.js +164 -0
  173. package/dist/cjs/marquee/hooks/useMarqueeItem.js +61 -0
  174. package/dist/cjs/marquee/hooks/useMarqueeScrollToItem.js +5 -2
  175. package/dist/cjs/marquee/hooks/useMarqueeStyles.js +4 -126
  176. package/dist/cjs/marquee/index.js +16 -0
  177. package/dist/cjs/marquee/setting/configs/uiV2.js +3 -1
  178. package/dist/cjs/menu/index.js +14 -0
  179. package/dist/cjs/modal/index.js +15 -0
  180. package/dist/cjs/next.js +61 -45
  181. package/dist/cjs/pagination/index.js +12 -0
  182. package/dist/cjs/post-purchase/advanced-list/components/common/getClasses.js +1 -1
  183. package/dist/cjs/post-purchase/advanced-list/index.js +15 -0
  184. package/dist/cjs/post-purchase/advanced-list/next.js +7 -2
  185. package/dist/cjs/post-purchase/advanced-list/setting/template.js +1 -4
  186. package/dist/cjs/post-purchase/button/common/getStyles.js +2 -2
  187. package/dist/cjs/post-purchase/button/index.js +14 -0
  188. package/dist/cjs/post-purchase/button/next.js +6 -1
  189. package/dist/cjs/post-purchase/button/setting/configs/settings.js +1 -0
  190. package/dist/cjs/post-purchase/callout-banner/components/CalloutBox.js +2 -2
  191. package/dist/cjs/post-purchase/callout-banner/index.js +19 -0
  192. package/dist/cjs/post-purchase/callout-banner/next.js +7 -2
  193. package/dist/cjs/post-purchase/countdown-timer/components/TextCountdown.js +6 -1
  194. package/dist/cjs/post-purchase/countdown-timer/hooks/useCountdownTimer.js +2 -3
  195. package/dist/cjs/post-purchase/countdown-timer/index.js +13 -0
  196. package/dist/cjs/post-purchase/countdown-timer/next.js +6 -1
  197. package/dist/cjs/post-purchase/image/index.js +14 -0
  198. package/dist/cjs/post-purchase/image/next.js +6 -1
  199. package/dist/cjs/post-purchase/image/setting/setting-v2.js +2 -2
  200. package/dist/cjs/post-purchase/line/components/PostPurchaseLine.js +0 -7
  201. package/dist/cjs/post-purchase/line/components/common/getStyle.js +4 -4
  202. package/dist/cjs/post-purchase/line/index.js +13 -0
  203. package/dist/cjs/post-purchase/line/next.js +6 -1
  204. package/dist/cjs/post-purchase/line/setting/configs/settings.js +1 -3
  205. package/dist/cjs/post-purchase/line/types/index.js +9 -0
  206. package/dist/cjs/post-purchase/link/index.js +14 -0
  207. package/dist/cjs/post-purchase/link/next.js +6 -1
  208. package/dist/cjs/post-purchase/product/components/ProductDiscountTag.js +5 -2
  209. package/dist/cjs/post-purchase/product/components/ProductOffer.js +4 -4
  210. package/dist/cjs/post-purchase/product/components/priceBreakdown/MoneyLine.js +3 -1
  211. package/dist/cjs/post-purchase/product/components/product-image/FeatureImage.js +3 -4
  212. package/dist/cjs/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +2 -2
  213. package/dist/cjs/post-purchase/product/components/product-image/ItemGridPostPurchase.js +2 -2
  214. package/dist/cjs/post-purchase/product/helpers/product-price-breakdown/getStyles.js +8 -0
  215. package/dist/cjs/post-purchase/product/helpers/product-quantity/getStyles.js +1 -6
  216. package/dist/cjs/post-purchase/product/hooks/product-quantity/useHandleQuantity.js +3 -2
  217. package/dist/cjs/post-purchase/product/index.js +37 -0
  218. package/dist/cjs/post-purchase/product/next.js +15 -10
  219. package/dist/cjs/post-purchase/product/settings/product-discount-tag/settingV2.js +97 -0
  220. package/dist/cjs/post-purchase/product/settings/product-discount-tag/uiV2.js +44 -0
  221. package/dist/cjs/post-purchase/product/settings/product-image/ProductImages.js +5 -15
  222. package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +21 -9
  223. package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +52 -46
  224. package/dist/cjs/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
  225. package/dist/cjs/post-purchase/product/settings/product-variants/settings/settingsV2.js +2 -0
  226. package/dist/cjs/post-purchase/text/index.js +7 -3
  227. package/dist/cjs/post-purchase/text/next.js +7 -2
  228. package/dist/cjs/product/components/DynamicCheckout/common/styles.js +2 -2
  229. package/dist/cjs/product/components/FileUpload/components/common/index.js +0 -140
  230. package/dist/cjs/product/components/FileUpload/components/config/setting.js +2 -2
  231. package/dist/cjs/product/components/ProductBadge/utils/stylesV2.js +9 -2
  232. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountItem.js +3 -1
  233. package/dist/cjs/product/components/ProductButton/ProductButton.js +47 -0
  234. package/dist/cjs/product/components/ProductButton/ProductButton.liquid.js +66 -0
  235. package/dist/cjs/product/components/ProductButton/common/classes.js +38 -0
  236. package/dist/cjs/product/components/ProductButton/common/constants.js +35 -0
  237. package/dist/cjs/product/components/ProductButton/common/data.js +57 -0
  238. package/dist/cjs/product/components/ProductButton/common/helpers.js +80 -0
  239. package/dist/cjs/product/components/ProductButton/common/styles.js +157 -0
  240. package/dist/cjs/product/components/ProductButton/common/types.js +7 -0
  241. package/dist/cjs/product/components/ProductButton/components/AddToCartButton.js +42 -0
  242. package/dist/cjs/product/components/ProductButton/components/AddToCartButton.liquid.js +40 -0
  243. package/dist/cjs/product/components/ProductButton/components/BlankSpace.js +14 -0
  244. package/dist/cjs/product/components/ProductButton/components/BlankSpace.liquid.js +12 -0
  245. package/dist/cjs/product/components/ProductButton/components/CartMessage.js +20 -0
  246. package/dist/cjs/product/components/ProductButton/components/PriceComponent.js +23 -0
  247. package/dist/cjs/product/components/ProductButton/components/PriceComponent.liquid.js +22 -0
  248. package/dist/cjs/product/components/ProductButton/components/PriceLayout.js +28 -0
  249. package/dist/cjs/product/components/ProductButton/components/PriceLayout.liquid.js +23 -0
  250. package/dist/cjs/product/components/ProductButton/components/ProductButtonPrice.js +42 -0
  251. package/dist/cjs/product/components/ProductButton/components/ProductButtonPrice.liquid.js +40 -0
  252. package/dist/cjs/product/components/ProductButton/components/Separator.js +18 -0
  253. package/dist/cjs/product/components/ProductButton/components/Separator.liquid.js +17 -0
  254. package/dist/cjs/product/components/ProductButton/components/SoldOutButton.js +38 -0
  255. package/dist/cjs/product/components/ProductButton/components/SoldOutButton.liquid.js +42 -0
  256. package/dist/cjs/product/components/ProductButton/helpers/getButtonDynamicSourceLocales.js +36 -0
  257. package/dist/cjs/product/components/ProductButton/hooks/useAddToCart.js +99 -0
  258. package/dist/cjs/product/components/ProductButton/hooks/useCartMessage.js +35 -0
  259. package/dist/cjs/product/components/ProductButton/hooks/useCartOperations.js +73 -0
  260. package/dist/cjs/product/components/ProductButton/hooks/useDispatchAfterSubmitEvent.js +27 -0
  261. package/dist/cjs/product/components/ProductDescription/index.js +40 -38
  262. package/dist/cjs/product/components/ProductImages/ProductImagesLightBox.js +1 -1
  263. package/dist/cjs/product/components/ProductImages.js +6 -6
  264. package/dist/cjs/product/components/ProductImagesV2/common/getAttr.js +19 -2
  265. package/dist/cjs/product/components/ProductImagesV2/common/getClasses.js +1 -1
  266. package/dist/cjs/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +109 -0
  267. package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/child}/ProductGalleryGrid.js +5 -97
  268. package/dist/cjs/product/components/ProductImagesV2/{jsx/layouts → components/feature-gallery}/FeatureImageWithGallery.js +14 -52
  269. package/dist/cjs/product/components/ProductImagesV2/{liquid/ProductFeaturedImageCarousel.liquid.js → components/feature-gallery/FeatureImageWithGallery.liquid.js} +15 -15
  270. package/dist/cjs/product/components/ProductImagesV2/{jsx/layouts → components/feature-only}/OnlyFeatureImage.js +4 -2
  271. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +87 -0
  272. package/dist/cjs/product/components/ProductImagesV2/{liquid/ProductGalleryCarousel.liquid.js → components/gallery-carousel/GalleryCarousel.liquid.js} +13 -13
  273. package/dist/cjs/product/components/ProductImagesV2/{jsx/layouts → components/gallery-grid}/GalleryGrid.js +4 -2
  274. package/dist/cjs/product/components/ProductImagesV2/{liquid/ProductGalleryGrid.liquid.js → components/gallery-grid/GalleryGrid.liquid.js} +10 -10
  275. package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/lightbox}/ProductImagesLightBox.js +3 -3
  276. package/dist/cjs/product/components/ProductImagesV2/hooks/useFeatureImageWithGallery.js +55 -0
  277. package/dist/cjs/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +135 -0
  278. package/dist/cjs/product/components/ProductImagesV2/{jsx/components/ProductFeaturedImageCarousel.js → hooks/useProductFeaturedImageCarousel.js} +54 -137
  279. package/dist/cjs/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +87 -0
  280. package/dist/cjs/product/components/ProductImagesV2/{jsx/ProductImages.js → index.js} +8 -8
  281. package/dist/cjs/product/components/ProductImagesV2/{liquid/ProductImages.liquid.js → index.liquid.js} +15 -15
  282. package/dist/cjs/product/components/{ProductList.js → ProductList/ProductList.js} +158 -245
  283. package/dist/cjs/product/components/ProductList/ProductList.liquid.js +242 -0
  284. package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.js +48 -0
  285. package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.liquid.js +63 -0
  286. package/dist/cjs/product/components/ProductList/ProductListGridLayout.js +38 -0
  287. package/dist/cjs/product/components/ProductList/ProductListGridLayout.liquid.js +62 -0
  288. package/dist/cjs/product/components/ProductList/ProductListItem.liquid.js +26 -0
  289. package/dist/cjs/product/components/ProductList/common/const.js +7 -0
  290. package/dist/cjs/product/components/ProductList/common/getAttr.js +26 -0
  291. package/dist/cjs/product/components/ProductList/common/getClass.js +36 -0
  292. package/dist/cjs/product/components/ProductList/common/getStyle.js +47 -0
  293. package/dist/cjs/product/components/ProductList/common/index.js +106 -0
  294. package/dist/cjs/product/components/ProductPrice/hooks/useGpPrice.js +1 -1
  295. package/dist/cjs/product/components/{ProductProperties.js → ProductProperties/ProductProperties.js} +52 -45
  296. package/dist/cjs/product/components/ProductProperties/ProductProperties.liquid.js +121 -0
  297. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js +63 -0
  298. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.liquid.js +73 -0
  299. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceAttrs.js +10 -0
  300. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceClasses.js +20 -0
  301. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceInlineCss.js +17 -0
  302. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceStyles.js +28 -0
  303. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.js +65 -0
  304. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.liquid.js +59 -0
  305. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getAttrs.js +10 -0
  306. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getClasses.js +17 -0
  307. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getContents.js +19 -0
  308. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getStyles.js +24 -0
  309. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/ProductPropertySelect.js +38 -0
  310. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/ProductPropertySelect.liquid.js +58 -0
  311. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/common/getAttrs.js +12 -0
  312. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/common/getClasses.js +16 -0
  313. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/common/getStyles.js +30 -0
  314. package/dist/cjs/product/components/ProductProperties/common/getAttrs.js +34 -0
  315. package/dist/cjs/product/components/ProductProperties/common/getClasses.js +36 -0
  316. package/dist/cjs/product/components/ProductProperties/common/getContents.js +56 -0
  317. package/dist/cjs/product/components/ProductProperties/common/getStyles.js +43 -0
  318. package/dist/cjs/product/components/ProductQuantity/common/common.js +31 -0
  319. package/dist/cjs/product/components/ProductQuantity/common/getAttrs.js +36 -0
  320. package/dist/cjs/product/components/ProductQuantity/common/getClasses.js +53 -0
  321. package/dist/cjs/product/components/ProductQuantity/common/getStyles.js +127 -0
  322. package/dist/cjs/product/components/ProductQuantity/index.liquid.js +177 -0
  323. package/dist/cjs/product/components/ProductQuantity.js +1 -1
  324. package/dist/cjs/product/components/ProductQuickView/ProductQuickView.js +7 -7
  325. package/dist/cjs/product/components/{Sku.js → ProductSKU/Sku.js} +3 -3
  326. package/dist/cjs/product/components/{Sku.liquid.js → ProductSKU/Sku.liquid.js} +3 -3
  327. package/dist/cjs/product/components/{ProductTag.js → ProductTag/ProductTag.js} +10 -11
  328. package/dist/cjs/product/components/{ProductTag.liquid.js → ProductTag/ProductTag.liquid.js} +2 -2
  329. package/dist/cjs/product/components/ProductVariants/common/base/attrs.js +29 -0
  330. package/dist/cjs/product/components/ProductVariants/common/base/classes.js +52 -0
  331. package/dist/cjs/product/components/ProductVariants/common/base/styles.js +170 -0
  332. package/dist/cjs/product/components/ProductVariants/common/dropdown/attrs.js +22 -0
  333. package/dist/cjs/product/components/ProductVariants/common/dropdown/classes.js +29 -0
  334. package/dist/cjs/product/components/ProductVariants/common/dropdown/styles.js +42 -0
  335. package/dist/cjs/product/components/ProductVariants/common/main/classes.js +27 -0
  336. package/dist/cjs/product/components/ProductVariants/common/main/getAttr.js +10 -0
  337. package/dist/cjs/product/components/ProductVariants/common/main/getData.js +73 -0
  338. package/dist/cjs/product/components/ProductVariants/common/main/styles.js +29 -0
  339. package/dist/cjs/product/components/ProductVariants/common/variants/attrs.js +18 -0
  340. package/dist/cjs/product/components/ProductVariants/common/variants/classes.js +44 -0
  341. package/dist/cjs/product/components/ProductVariants/common/variants/styles.js +11 -0
  342. package/dist/cjs/product/components/ProductVariants/components/base/base.js +168 -0
  343. package/dist/cjs/product/components/ProductVariants/components/base/base.liquid.js +101 -0
  344. package/dist/cjs/product/components/ProductVariants/{variants/Color.js → components/color/color.js} +2 -2
  345. package/dist/cjs/product/components/ProductVariants/{variants/Color.liquid.js → components/color/color.liquid.js} +4 -4
  346. package/dist/cjs/product/components/ProductVariants/{variants/VariantGroup.js → components/dropdown-group/DropdownGroup.js} +4 -4
  347. package/dist/cjs/product/components/ProductVariants/components/dropdown-group/DropdownGroup.liquid.js +18 -0
  348. package/dist/cjs/product/components/ProductVariants/components/dropdown-option/render-liquid/index.js +64 -0
  349. package/dist/cjs/product/components/ProductVariants/components/dropdown-swatches/Dropdown.js +86 -0
  350. package/dist/cjs/product/components/ProductVariants/components/dropdown-swatches/Dropdown.liquid.js +51 -0
  351. package/dist/cjs/product/components/ProductVariants/components/dropdown-swatches/hooks/useDropdownSwatches.js +55 -0
  352. package/dist/cjs/product/components/ProductVariants/{variants → components/image}/Image.js +2 -2
  353. package/dist/cjs/product/components/ProductVariants/{variants → components/image}/Image.liquid.js +3 -3
  354. package/dist/cjs/product/components/ProductVariants/{variants → components/image-shopify}/ImageShopify.js +2 -2
  355. package/dist/cjs/product/components/ProductVariants/{variants → components/image-shopify}/ImageShopify.liquid.js +3 -3
  356. package/dist/cjs/product/components/ProductVariants/{variants → components/variants}/index.js +30 -23
  357. package/dist/cjs/product/components/ProductVariants/{variants → components/variants}/index.liquid.js +49 -44
  358. package/dist/cjs/product/components/ProductVariants/hooks/useGpVariants.js +178 -0
  359. package/dist/cjs/product/components/ProductVariants/index.js +103 -337
  360. package/dist/cjs/product/components/ProductVariants/index.liquid.js +167 -233
  361. package/dist/cjs/product/components/{Vendor.js → ProductVendor/Vendor.js} +2 -2
  362. package/dist/cjs/product/components/{Vendor.liquid.js → ProductVendor/Vendor.liquid.js} +2 -2
  363. package/dist/cjs/product/components/ProductViewMore/ProductViewMore.js +30 -0
  364. package/dist/cjs/product/components/{ProductViewMore.liquid.js → ProductViewMore/ProductViewMore.liquid.js} +2 -2
  365. package/dist/cjs/product/components/ProductWrap/Product.js +70 -0
  366. package/dist/cjs/product/components/ProductWrap/Product.liquid.js +147 -0
  367. package/dist/cjs/product/components/ProductWrap/common/const.js +15 -0
  368. package/dist/cjs/product/components/ProductWrap/common/index.js +33 -0
  369. package/dist/cjs/product/components/ProductWrap/hook/useProductSetting.js +58 -0
  370. package/dist/cjs/product/helpers/product.js +6 -30
  371. package/dist/cjs/product/index.js +73 -0
  372. package/dist/cjs/product/next.js +10 -10
  373. package/dist/cjs/product/setting/ProductProperties.js +2 -2
  374. package/dist/cjs/product/setting/product/configs/presets.js +0 -11
  375. package/dist/cjs/product/setting/product-button/configs/settings.js +78 -180
  376. package/dist/cjs/product/setting/product-button/configs/uiV2.js +123 -153
  377. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +7 -6
  378. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +8 -7
  379. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +1 -1
  380. package/dist/cjs/product/setting/product-image-v2/configs/uiV2.js +157 -86
  381. package/dist/cjs/product/setting/product-list/configs/presets.js +4 -2
  382. package/dist/cjs/product/setting/product-list/configs/uiV1.js +1 -1
  383. package/dist/{esm/product/setting/product-properties/configs/settings.js → cjs/product/setting/product-properties/configs/settingsV2.js} +57 -25
  384. package/dist/cjs/product/setting/product-properties/configs/uiV2.js +367 -180
  385. package/dist/cjs/product/setting/product-quantity/configs/settings.js +201 -156
  386. package/dist/cjs/product/setting/product-quantity/configs/uiV2.js +417 -24
  387. package/dist/cjs/product/setting/product-variant/configs/uiV2.js +2 -3
  388. package/dist/cjs/select/setting/Select.js +65 -0
  389. package/dist/cjs/setting.js +109 -196
  390. package/dist/cjs/shop-pay-installment/components/ShopPayInstallments.js +3 -9
  391. package/dist/cjs/shop-pay-installment/components/common/const.js +10 -0
  392. package/dist/cjs/shop-pay-installment/settings/ShopPayInstallments.js +3 -3
  393. package/dist/cjs/sticky/components/Sticky.js +6 -6
  394. package/dist/cjs/sticky/components/Sticky.liquid.js +1 -5
  395. package/dist/cjs/stock-counter/components/StockCounter.liquid.js +4 -4
  396. package/dist/cjs/stock-counter/index.js +12 -0
  397. package/dist/cjs/tab/components/TabItem.js +19 -9
  398. package/dist/cjs/tab/components/TabItem.liquid.js +20 -8
  399. package/dist/cjs/tab/components/Tabs.js +137 -116
  400. package/dist/cjs/tab/components/Tabs.liquid.js +153 -104
  401. package/dist/cjs/tab/components/{common.js → common/common.js} +49 -34
  402. package/dist/cjs/tab/components/common/getAttr.js +15 -0
  403. package/dist/cjs/tab/components/common/getClasses.js +108 -0
  404. package/dist/cjs/tab/components/common/getStyle.js +92 -0
  405. package/dist/cjs/tab/components/hooks/useTab.js +35 -0
  406. package/dist/cjs/tab/index.js +16 -0
  407. package/dist/cjs/text/components/common/getClasses.js +2 -1
  408. package/dist/cjs/text/index.js +12 -8
  409. package/dist/cjs/text/utils/dynamic-source.js +1 -0
  410. package/dist/cjs/third-party/components/Wiser/WiserSampleContent.js +3 -3
  411. package/dist/cjs/third-party/components/Wiser.liquid.js +2 -2
  412. package/dist/cjs/third-party/setting/Wiser.js +3 -7
  413. package/dist/cjs/third-party/types/index.js +8 -0
  414. package/dist/cjs/third-party-instant/components/InstantThirdPartyPreview.js +53 -55
  415. package/dist/cjs/third-party-instant/components/Judgeme/JudgemeSampleContent.js +7 -9
  416. package/dist/cjs/third-party-instant/components/Judgeme/WithoutProduct.js +39 -41
  417. package/dist/cjs/third-party-instant/components/Klaviyo/KlaviyoSampleContent.js +7 -9
  418. package/dist/cjs/third-party-instant/components/LooxReviews/LooxReviewsSampleContent.js +7 -9
  419. package/dist/cjs/third-party-instant/components/LooxReviews/SingleProduct.js +13 -15
  420. package/dist/cjs/third-party-instant/components/LooxReviews/WithoutProduct.js +19 -21
  421. package/dist/cjs/third-party-instant/components/YotpoLoyalty/YotpoLoyaltySampleContent.js +7 -9
  422. package/dist/cjs/third-party-instant/index.js +27 -0
  423. package/dist/cjs/third-party-slot/common/classes.js +22 -0
  424. package/dist/cjs/third-party-slot/common/index.js +57 -0
  425. package/dist/cjs/third-party-slot/common/styles.js +9 -0
  426. package/dist/cjs/third-party-slot/components/ThirdPartySlot.js +29 -31
  427. package/dist/cjs/third-party-slot/components/ThirdPartySlot.liquid.js +24 -50
  428. package/dist/cjs/third-party-slot/setting/index.js +1 -1
  429. package/dist/cjs/video/components/LiteYouTubeEmbed.js +39 -41
  430. package/dist/esm/accordion/components/AccordionItem.liquid.js +2 -2
  431. package/dist/esm/accordion/hooks/useAccordion.js +8 -1
  432. package/dist/esm/accordion/index.js +15 -0
  433. package/dist/esm/accordion/setting/configs/settings.js +5 -2
  434. package/dist/esm/article/components/ArticleAuthor.js +3 -2
  435. package/dist/esm/article/components/ArticleList.liquid.js +6 -6
  436. package/dist/esm/article/components/ArticlePagination.js +1 -1
  437. package/dist/esm/article/components/ArticleReadMore.js +1 -1
  438. package/dist/esm/article/index.js +37 -0
  439. package/dist/esm/article/next.js +31 -41
  440. package/dist/esm/article/setting/ArticleExcerpt.js +4 -4
  441. package/dist/esm/article/setting/ArticleList.js +48 -15
  442. package/dist/esm/article/setting/configs/ArticleAuthor/presets.js +28 -1
  443. package/dist/esm/article/setting/configs/ArticleAuthor/uiV2.js +3 -12
  444. package/dist/esm/article/setting/configs/ArticleCategory/presets.js +19 -1
  445. package/dist/esm/article/setting/configs/ArticleCategory/uiV2.js +8 -0
  446. package/dist/esm/article/setting/configs/ArticleDate/presets.js +19 -1
  447. package/dist/esm/article/setting/configs/ArticleDate/uiV2.js +8 -0
  448. package/dist/esm/article/setting/configs/ArticleImage/settings.js +41 -7
  449. package/dist/esm/article/setting/configs/ArticleTag/settings.js +1 -4
  450. package/dist/esm/article/setting/configs/ArticleTitle/uiV2.js +8 -16
  451. package/dist/esm/banner/components/HeroBanner.liquid.js +2 -2
  452. package/dist/esm/banner/components/HeroBannerItem.js +6 -6
  453. package/dist/esm/banner/components/HeroBannerItem.liquid.js +8 -146
  454. package/dist/esm/banner/components/hooks/useHeroBanner.js +1 -1
  455. package/dist/esm/banner/index.js +16 -0
  456. package/dist/esm/banner/setting/HeroBanner.js +2 -3
  457. package/dist/esm/banner/setting/setting.js +25 -1180
  458. package/dist/esm/banner/setting/uiV2.js +77 -11
  459. package/dist/esm/breadcrumb/index.js +11 -0
  460. package/dist/esm/builder.js +212 -211
  461. package/dist/esm/button/components/Button.js +2 -2
  462. package/dist/esm/button/components/common/classes.js +1 -1
  463. package/dist/esm/button/components/common/data.js +3 -2
  464. package/dist/esm/button/components/common/styles.js +34 -34
  465. package/dist/esm/button/index.js +12 -0
  466. package/dist/esm/carousel/components/Arrow.liquid.js +1 -1
  467. package/dist/esm/carousel/components/Carousel.js +31 -12
  468. package/dist/esm/carousel/components/common/carousel.js +1 -1
  469. package/dist/esm/carousel/index.js +16 -0
  470. package/dist/esm/cart/components/CartList.js +1 -1
  471. package/dist/esm/cart/index.js +43 -0
  472. package/dist/esm/code/components/CSSCode.js +0 -1
  473. package/dist/esm/code/index.js +12 -0
  474. package/dist/esm/collection/components/collection-banner/common/classes.js +31 -0
  475. package/dist/esm/collection/components/collection-banner/common/index.js +16 -0
  476. package/dist/esm/collection/components/collection-banner/common/styles.js +42 -0
  477. package/dist/esm/collection/components/collection-banner/components/CollectionBanner.js +102 -0
  478. package/dist/esm/collection/components/collection-banner/components/CollectionBanner.liquid.js +90 -0
  479. package/dist/esm/collection/components/collection-description/common/classes.js +18 -0
  480. package/dist/esm/collection/components/collection-description/common/constant.js +6 -0
  481. package/dist/esm/collection/components/collection-description/common/index.js +32 -0
  482. package/dist/esm/collection/components/collection-description/common/styles.js +80 -0
  483. package/dist/esm/collection/components/collection-description/components/CollectionDescription.js +99 -0
  484. package/dist/esm/collection/components/collection-description/components/CollectionDescription.liquid.js +95 -0
  485. package/dist/esm/collection/components/collection-description/hook/useDescription.js +87 -0
  486. package/dist/esm/collection/components/collection-paginator/common/classes.js +21 -0
  487. package/dist/esm/collection/components/collection-paginator/common/index.js +193 -0
  488. package/dist/esm/collection/components/collection-paginator/common/styles.js +58 -0
  489. package/dist/esm/collection/components/collection-paginator/components/CollectionPaginator.js +38 -0
  490. package/dist/esm/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +58 -0
  491. package/dist/esm/collection/components/{CollectionTitle.js → collection-title/components/CollectionTitle.js} +3 -4
  492. package/dist/esm/collection/components/{CollectionTitle.liquid.js → collection-title/components/CollectionTitle.liquid.js} +1 -1
  493. package/dist/esm/collection/components/collection-toolbar/common/classes.js +27 -0
  494. package/dist/esm/collection/components/collection-toolbar/common/constant.js +37 -0
  495. package/dist/esm/collection/components/collection-toolbar/common/index.js +25 -0
  496. package/dist/esm/collection/components/collection-toolbar/common/style.js +46 -0
  497. package/dist/esm/collection/components/collection-toolbar/components/CollectionToolbar.js +95 -0
  498. package/dist/esm/collection/components/collection-toolbar/components/CollectionToolbar.liquid.js +97 -0
  499. package/dist/esm/collection/index.js +24 -0
  500. package/dist/esm/collection/next.js +5 -5
  501. package/dist/esm/collection/setting/collection-paginator/configs/settings.js +5 -0
  502. package/dist/esm/countdown-timer/components/Countdown.js +1 -1
  503. package/dist/esm/countdown-timer/index.js +12 -0
  504. package/dist/esm/coupon/common/classes.js +7 -0
  505. package/dist/esm/coupon/common/index.js +14 -0
  506. package/dist/esm/coupon/common/styles.js +41 -0
  507. package/dist/esm/coupon/components/Coupon.js +42 -84
  508. package/dist/esm/coupon/components/Coupon.liquid.js +28 -39
  509. package/dist/esm/coupon/hooks/useCoupon.js +28 -0
  510. package/dist/esm/coupon/index.js +12 -0
  511. package/dist/esm/coupon/setting/Coupon.js +8 -1191
  512. package/dist/esm/coupon/setting/config/settings.js +829 -0
  513. package/dist/esm/coupon/setting/config/uiV1.js +365 -0
  514. package/dist/esm/coupon/setting/config/uiV2.js +350 -0
  515. package/dist/esm/dialog/index.js +12 -0
  516. package/dist/esm/estimate-delivery/index.js +12 -0
  517. package/dist/esm/form/components/form-email/FormEmail.liquid.js +1 -1
  518. package/dist/esm/form/components/submit-button/SubmitButton.js +9 -11
  519. package/dist/esm/form/components/textinput/common/composeStyles.js +0 -2
  520. package/dist/esm/form/index.js +28 -0
  521. package/dist/esm/form/setting/contact/Contact.js +2 -0
  522. package/dist/esm/form/setting/form-checkbox/FormCheckbox.js +1 -1
  523. package/dist/esm/form/setting/form-checkbox/configs/settings.js +1 -1
  524. package/dist/esm/form/setting/form-dropdown/FormDropdown.js +2 -2
  525. package/dist/esm/form/setting/form-dropdown/configs/settings.js +1 -1
  526. package/dist/esm/form/setting/form-email/configs/FormEmail.js +2 -2
  527. package/dist/esm/form/setting/form-email/configs/settings.js +1 -1
  528. package/dist/esm/form/setting/form-textarea/Textarea.js +2 -2
  529. package/dist/esm/form/setting/form-textarea/configs/settings.js +1 -1
  530. package/dist/esm/form/setting/newsletter/Newsletter.js +1 -1
  531. package/dist/esm/form/setting/newsletter/configs/settings.js +1 -1
  532. package/dist/esm/form/setting/submit-button/SubmitButton.js +1 -1
  533. package/dist/esm/form/setting/submit-button/configs/settings.js +1 -1
  534. package/dist/esm/form/setting/text-field/TextField.js +2 -2
  535. package/dist/esm/form/setting/text-field/configs/settings.js +1 -1
  536. package/dist/esm/form/setting/text-input/TextInput.js +2 -2
  537. package/dist/esm/form/setting/text-input/configs/settings.js +1 -1
  538. package/dist/esm/grid/index.js +20 -0
  539. package/dist/esm/grid/row/Row.js +5 -3
  540. package/dist/esm/grid/row/Row.liquid.js +1 -4
  541. package/dist/esm/grid/row/commons/getAttr.js +2 -5
  542. package/dist/esm/header/components/kind/basic/index.js +3 -3
  543. package/dist/esm/header/components/kind/modern/index.js +4 -4
  544. package/dist/esm/header/index.js +20 -0
  545. package/dist/esm/heading/index.js +12 -0
  546. package/dist/esm/helpers.js +24 -6
  547. package/dist/esm/icon/index.js +12 -0
  548. package/dist/esm/icon/setting/Icon.js +2 -2
  549. package/dist/esm/icon-list/index.js +14 -0
  550. package/dist/esm/icon-list-hoz/index.js +14 -0
  551. package/dist/esm/icon-list-v2/common/classes.js +24 -0
  552. package/dist/esm/icon-list-v2/common/index.js +29 -0
  553. package/dist/esm/icon-list-v2/common/styles.js +89 -0
  554. package/dist/esm/icon-list-v2/components/IconList.js +112 -132
  555. package/dist/esm/icon-list-v2/components/IconList.liquid.js +101 -94
  556. package/dist/esm/icon-list-v2/index.js +12 -0
  557. package/dist/esm/image/components/common/attributes.js +4 -2
  558. package/dist/esm/image/components/common/helpers.js +4 -1
  559. package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +3 -2
  560. package/dist/esm/image/helpers/getSrcSet.js +1 -1
  561. package/dist/esm/image/index.js +14 -0
  562. package/dist/esm/image/setting/configs/presets.js +3 -0
  563. package/dist/esm/image/setting/configs/settings.js +69 -11
  564. package/dist/esm/image/setting/configs/uiV2.js +127 -1
  565. package/dist/esm/image-comparison/components/CompareImage.js +230 -562
  566. package/dist/esm/image-comparison/components/CompareImage.liquid.js +250 -323
  567. package/dist/esm/image-comparison/components/ImageComparison.js +16 -34
  568. package/dist/esm/image-comparison/components/ImageComparison.liquid.js +16 -10
  569. package/dist/esm/image-comparison/components/Label.js +27 -0
  570. package/dist/esm/image-comparison/components/Label.liquid.js +19 -45
  571. package/dist/esm/image-comparison/components/SlideHandle.js +53 -0
  572. package/dist/esm/image-comparison/components/SlideHandle.liquid.js +33 -0
  573. package/dist/esm/image-comparison/components/common/attributes.js +61 -0
  574. package/dist/esm/image-comparison/components/common/classes.js +34 -0
  575. package/dist/esm/image-comparison/components/common/constant.js +8 -0
  576. package/dist/esm/image-comparison/components/common/data.js +59 -0
  577. package/dist/esm/image-comparison/components/common/helpers.js +130 -6
  578. package/dist/esm/image-comparison/components/common/styles.js +167 -0
  579. package/dist/esm/image-comparison/components/helpers/getReactStyles.js +45 -0
  580. package/dist/esm/image-comparison/components/hooks/useCompareImage.js +190 -0
  581. package/dist/esm/image-comparison/index.js +12 -0
  582. package/dist/esm/image-comparison/setting/configs/settings.js +94 -40
  583. package/dist/esm/image-comparison/setting/configs/uiV2.js +97 -30
  584. package/dist/esm/image-detection/index.js +10 -0
  585. package/dist/esm/image-detection/setting/ImageDetection.js +1 -1
  586. package/dist/esm/index.js +167 -182
  587. package/dist/esm/index.liquid.js +58 -65
  588. package/dist/esm/input/index.js +10 -0
  589. package/dist/esm/line/index.js +10 -0
  590. package/dist/esm/link/index.js +11 -0
  591. package/dist/esm/marquee/common/classes.js +13 -0
  592. package/dist/esm/marquee/common/index.js +21 -0
  593. package/dist/esm/marquee/common/styles.js +214 -0
  594. package/dist/esm/marquee/components/Marquee.js +126 -129
  595. package/dist/esm/marquee/components/Marquee.liquid.js +76 -192
  596. package/dist/esm/marquee/components/MarqueeBase.js +16 -157
  597. package/dist/esm/marquee/components/MarqueeBase.liquid.js +37 -79
  598. package/dist/esm/marquee/components/MarqueeItem.js +30 -74
  599. package/dist/esm/marquee/components/MarqueeItem.liquid.js +19 -27
  600. package/dist/esm/marquee/hooks/useMarquee.js +45 -0
  601. package/dist/esm/marquee/hooks/useMarqueeBase.js +162 -0
  602. package/dist/esm/marquee/hooks/useMarqueeItem.js +59 -0
  603. package/dist/esm/marquee/hooks/useMarqueeScrollToItem.js +5 -2
  604. package/dist/esm/marquee/hooks/useMarqueeStyles.js +6 -128
  605. package/dist/esm/marquee/index.js +14 -0
  606. package/dist/esm/marquee/setting/configs/uiV2.js +3 -1
  607. package/dist/esm/menu/index.js +12 -0
  608. package/dist/esm/modal/index.js +12 -0
  609. package/dist/esm/next.js +49 -33
  610. package/dist/esm/pagination/index.js +10 -0
  611. package/dist/esm/post-purchase/advanced-list/components/common/getClasses.js +1 -1
  612. package/dist/esm/post-purchase/advanced-list/index.js +13 -0
  613. package/dist/esm/post-purchase/advanced-list/next.js +5 -1
  614. package/dist/esm/post-purchase/advanced-list/setting/template.js +1 -4
  615. package/dist/esm/post-purchase/button/common/getStyles.js +2 -2
  616. package/dist/esm/post-purchase/button/index.js +12 -0
  617. package/dist/esm/post-purchase/button/next.js +4 -1
  618. package/dist/esm/post-purchase/button/setting/configs/settings.js +1 -0
  619. package/dist/esm/post-purchase/callout-banner/components/CalloutBox.js +2 -2
  620. package/dist/esm/post-purchase/callout-banner/index.js +17 -0
  621. package/dist/esm/post-purchase/callout-banner/next.js +5 -1
  622. package/dist/esm/post-purchase/countdown-timer/components/TextCountdown.js +6 -1
  623. package/dist/esm/post-purchase/countdown-timer/hooks/useCountdownTimer.js +2 -3
  624. package/dist/esm/post-purchase/countdown-timer/index.js +11 -0
  625. package/dist/esm/post-purchase/countdown-timer/next.js +4 -1
  626. package/dist/esm/post-purchase/image/index.js +12 -0
  627. package/dist/esm/post-purchase/image/next.js +4 -1
  628. package/dist/esm/post-purchase/image/setting/setting-v2.js +2 -2
  629. package/dist/esm/post-purchase/line/components/PostPurchaseLine.js +1 -8
  630. package/dist/esm/post-purchase/line/components/common/getStyle.js +1 -1
  631. package/dist/esm/post-purchase/line/index.js +11 -0
  632. package/dist/esm/post-purchase/line/next.js +4 -1
  633. package/dist/esm/post-purchase/line/setting/configs/settings.js +1 -3
  634. package/dist/esm/post-purchase/line/types/index.js +9 -0
  635. package/dist/esm/post-purchase/link/index.js +12 -0
  636. package/dist/esm/post-purchase/link/next.js +4 -1
  637. package/dist/esm/post-purchase/product/components/ProductDiscountTag.js +5 -2
  638. package/dist/esm/post-purchase/product/components/ProductOffer.js +4 -4
  639. package/dist/esm/post-purchase/product/components/priceBreakdown/MoneyLine.js +3 -1
  640. package/dist/esm/post-purchase/product/components/product-image/FeatureImage.js +3 -4
  641. package/dist/esm/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +1 -1
  642. package/dist/esm/post-purchase/product/components/product-image/ItemGridPostPurchase.js +1 -1
  643. package/dist/esm/post-purchase/product/helpers/product-price-breakdown/getStyles.js +8 -1
  644. package/dist/esm/post-purchase/product/helpers/product-quantity/getStyles.js +2 -7
  645. package/dist/esm/post-purchase/product/hooks/product-quantity/useHandleQuantity.js +3 -2
  646. package/dist/esm/post-purchase/product/index.js +35 -0
  647. package/dist/esm/post-purchase/product/next.js +13 -1
  648. package/dist/esm/post-purchase/product/settings/product-discount-tag/settingV2.js +97 -0
  649. package/dist/esm/post-purchase/product/settings/product-discount-tag/uiV2.js +44 -0
  650. package/dist/esm/post-purchase/product/settings/product-image/ProductImages.js +5 -15
  651. package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +21 -9
  652. package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +52 -46
  653. package/dist/esm/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
  654. package/dist/esm/post-purchase/product/settings/product-variants/settings/settingsV2.js +2 -0
  655. package/dist/esm/post-purchase/text/index.js +7 -1
  656. package/dist/esm/post-purchase/text/next.js +5 -1
  657. package/dist/esm/product/components/DynamicCheckout/common/styles.js +2 -2
  658. package/dist/esm/product/components/FileUpload/components/common/index.js +0 -140
  659. package/dist/esm/product/components/FileUpload/components/config/setting.js +2 -2
  660. package/dist/esm/product/components/ProductBadge/utils/stylesV2.js +9 -2
  661. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountItem.js +4 -2
  662. package/dist/esm/product/components/ProductButton/ProductButton.js +43 -0
  663. package/dist/esm/product/components/ProductButton/ProductButton.liquid.js +62 -0
  664. package/dist/esm/product/components/ProductButton/common/classes.js +33 -0
  665. package/dist/esm/product/components/ProductButton/common/constants.js +32 -0
  666. package/dist/esm/product/components/ProductButton/common/data.js +54 -0
  667. package/dist/esm/product/components/ProductButton/common/helpers.js +72 -0
  668. package/dist/esm/product/components/ProductButton/common/styles.js +149 -0
  669. package/dist/esm/product/components/ProductButton/common/types.js +7 -0
  670. package/dist/esm/product/components/ProductButton/components/AddToCartButton.js +38 -0
  671. package/dist/esm/product/components/ProductButton/components/AddToCartButton.liquid.js +38 -0
  672. package/dist/esm/product/components/ProductButton/components/BlankSpace.js +10 -0
  673. package/dist/esm/product/components/ProductButton/components/BlankSpace.liquid.js +8 -0
  674. package/dist/esm/product/components/ProductButton/components/CartMessage.js +18 -0
  675. package/dist/esm/product/components/ProductButton/components/PriceComponent.js +19 -0
  676. package/dist/esm/product/components/ProductButton/components/PriceComponent.liquid.js +18 -0
  677. package/dist/esm/product/components/ProductButton/components/PriceLayout.js +24 -0
  678. package/dist/esm/product/components/ProductButton/components/PriceLayout.liquid.js +19 -0
  679. package/dist/esm/product/components/ProductButton/components/ProductButtonPrice.js +38 -0
  680. package/dist/esm/product/components/ProductButton/components/ProductButtonPrice.liquid.js +36 -0
  681. package/dist/esm/product/components/ProductButton/components/Separator.js +14 -0
  682. package/dist/esm/product/components/ProductButton/components/Separator.liquid.js +13 -0
  683. package/dist/esm/product/components/ProductButton/components/SoldOutButton.js +34 -0
  684. package/dist/esm/product/components/ProductButton/components/SoldOutButton.liquid.js +40 -0
  685. package/dist/esm/product/components/ProductButton/helpers/getButtonDynamicSourceLocales.js +34 -0
  686. package/dist/esm/product/components/ProductButton/hooks/useAddToCart.js +97 -0
  687. package/dist/esm/product/components/ProductButton/hooks/useCartMessage.js +33 -0
  688. package/dist/esm/product/components/ProductButton/hooks/useCartOperations.js +71 -0
  689. package/dist/esm/product/components/ProductButton/hooks/useDispatchAfterSubmitEvent.js +25 -0
  690. package/dist/esm/product/components/ProductDescription/index.js +41 -39
  691. package/dist/esm/product/components/ProductImages/ProductImagesLightBox.js +1 -1
  692. package/dist/esm/product/components/ProductImages.js +6 -6
  693. package/dist/esm/product/components/ProductImagesV2/common/getAttr.js +19 -2
  694. package/dist/esm/product/components/ProductImagesV2/common/getClasses.js +1 -1
  695. package/dist/esm/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +105 -0
  696. package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/child}/ProductGalleryGrid.js +7 -99
  697. package/dist/esm/product/components/ProductImagesV2/{jsx/layouts → components/feature-gallery}/FeatureImageWithGallery.js +16 -54
  698. package/dist/esm/product/components/ProductImagesV2/{liquid/ProductFeaturedImageCarousel.liquid.js → components/feature-gallery/FeatureImageWithGallery.liquid.js} +15 -15
  699. package/dist/esm/product/components/ProductImagesV2/{jsx/layouts → components/feature-only}/OnlyFeatureImage.js +5 -3
  700. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +83 -0
  701. package/dist/esm/product/components/ProductImagesV2/{liquid/ProductGalleryCarousel.liquid.js → components/gallery-carousel/GalleryCarousel.liquid.js} +13 -13
  702. package/dist/esm/product/components/ProductImagesV2/{jsx/layouts → components/gallery-grid}/GalleryGrid.js +5 -3
  703. package/dist/esm/product/components/ProductImagesV2/{liquid/ProductGalleryGrid.liquid.js → components/gallery-grid/GalleryGrid.liquid.js} +10 -10
  704. package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/lightbox}/ProductImagesLightBox.js +3 -3
  705. package/dist/esm/product/components/ProductImagesV2/hooks/useFeatureImageWithGallery.js +53 -0
  706. package/dist/esm/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +133 -0
  707. package/dist/esm/product/components/ProductImagesV2/{jsx/components/ProductFeaturedImageCarousel.js → hooks/useProductFeaturedImageCarousel.js} +56 -137
  708. package/dist/esm/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +85 -0
  709. package/dist/esm/product/components/ProductImagesV2/{jsx/ProductImages.js → index.js} +8 -8
  710. package/dist/esm/product/components/ProductImagesV2/{liquid/ProductImages.liquid.js → index.liquid.js} +13 -13
  711. package/dist/esm/product/components/ProductList/ProductList.js +380 -0
  712. package/dist/esm/product/components/ProductList/ProductList.liquid.js +238 -0
  713. package/dist/esm/product/components/ProductList/ProductListCarouselLayout.js +44 -0
  714. package/dist/esm/product/components/ProductList/ProductListCarouselLayout.liquid.js +59 -0
  715. package/dist/esm/product/components/ProductList/ProductListGridLayout.js +34 -0
  716. package/dist/esm/product/components/ProductList/ProductListGridLayout.liquid.js +58 -0
  717. package/dist/esm/product/components/ProductList/ProductListItem.liquid.js +22 -0
  718. package/dist/esm/product/components/ProductList/common/const.js +4 -0
  719. package/dist/esm/product/components/ProductList/common/getAttr.js +24 -0
  720. package/dist/esm/product/components/ProductList/common/getClass.js +34 -0
  721. package/dist/esm/product/components/ProductList/common/getStyle.js +45 -0
  722. package/dist/esm/product/components/ProductList/common/index.js +103 -0
  723. package/dist/esm/product/components/ProductPrice/hooks/useGpPrice.js +1 -1
  724. package/dist/esm/product/components/{ProductProperties.js → ProductProperties/ProductProperties.js} +53 -46
  725. package/dist/esm/product/components/ProductProperties/ProductProperties.liquid.js +117 -0
  726. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js +59 -0
  727. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.liquid.js +69 -0
  728. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceAttrs.js +8 -0
  729. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceClasses.js +17 -0
  730. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceInlineCss.js +15 -0
  731. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceStyles.js +24 -0
  732. package/dist/esm/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.js +61 -0
  733. package/dist/esm/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.liquid.js +55 -0
  734. package/dist/esm/product/components/ProductProperties/ProductPropertyInput/common/getAttrs.js +8 -0
  735. package/dist/esm/product/components/ProductProperties/ProductPropertyInput/common/getClasses.js +15 -0
  736. package/dist/esm/product/components/ProductProperties/ProductPropertyInput/common/getContents.js +17 -0
  737. package/dist/esm/product/components/ProductProperties/ProductPropertyInput/common/getStyles.js +22 -0
  738. package/dist/esm/product/components/ProductProperties/ProductPropertySelect/ProductPropertySelect.js +34 -0
  739. package/dist/esm/product/components/ProductProperties/ProductPropertySelect/ProductPropertySelect.liquid.js +54 -0
  740. package/dist/esm/product/components/ProductProperties/ProductPropertySelect/common/getAttrs.js +10 -0
  741. package/dist/esm/product/components/ProductProperties/ProductPropertySelect/common/getClasses.js +14 -0
  742. package/dist/esm/product/components/ProductProperties/ProductPropertySelect/common/getStyles.js +27 -0
  743. package/dist/esm/product/components/ProductProperties/common/getAttrs.js +30 -0
  744. package/dist/esm/product/components/ProductProperties/common/getClasses.js +31 -0
  745. package/dist/esm/product/components/ProductProperties/common/getContents.js +53 -0
  746. package/dist/esm/product/components/ProductProperties/common/getStyles.js +38 -0
  747. package/dist/esm/product/components/ProductQuantity/common/common.js +28 -0
  748. package/dist/esm/product/components/ProductQuantity/common/getAttrs.js +32 -0
  749. package/dist/esm/product/components/ProductQuantity/common/getClasses.js +47 -0
  750. package/dist/esm/product/components/ProductQuantity/common/getStyles.js +122 -0
  751. package/dist/esm/product/components/ProductQuantity/index.liquid.js +173 -0
  752. package/dist/esm/product/components/ProductQuantity.js +1 -1
  753. package/dist/esm/product/components/ProductQuickView/ProductQuickView.js +7 -7
  754. package/dist/esm/product/components/{Sku.js → ProductSKU/Sku.js} +3 -3
  755. package/dist/esm/product/components/{Sku.liquid.js → ProductSKU/Sku.liquid.js} +3 -3
  756. package/dist/esm/product/components/{ProductTag.js → ProductTag/ProductTag.js} +10 -11
  757. package/dist/esm/product/components/{ProductTag.liquid.js → ProductTag/ProductTag.liquid.js} +2 -2
  758. package/dist/esm/product/components/ProductVariants/common/base/attrs.js +27 -0
  759. package/dist/esm/product/components/ProductVariants/common/base/classes.js +47 -0
  760. package/dist/esm/product/components/ProductVariants/common/base/styles.js +164 -0
  761. package/dist/esm/product/components/ProductVariants/common/dropdown/attrs.js +20 -0
  762. package/dist/esm/product/components/ProductVariants/common/dropdown/classes.js +27 -0
  763. package/dist/esm/product/components/ProductVariants/common/dropdown/styles.js +40 -0
  764. package/dist/esm/product/components/ProductVariants/common/main/classes.js +24 -0
  765. package/dist/esm/product/components/ProductVariants/common/main/getAttr.js +8 -0
  766. package/dist/esm/product/components/ProductVariants/common/main/getData.js +69 -0
  767. package/dist/esm/product/components/ProductVariants/common/main/styles.js +26 -0
  768. package/dist/esm/product/components/ProductVariants/common/variants/attrs.js +16 -0
  769. package/dist/esm/product/components/ProductVariants/common/variants/classes.js +38 -0
  770. package/dist/esm/product/components/ProductVariants/common/variants/styles.js +9 -0
  771. package/dist/esm/product/components/ProductVariants/components/base/base.js +164 -0
  772. package/dist/esm/product/components/ProductVariants/components/base/base.liquid.js +97 -0
  773. package/dist/esm/product/components/ProductVariants/{variants/Color.js → components/color/color.js} +1 -1
  774. package/dist/esm/product/components/ProductVariants/{variants/Color.liquid.js → components/color/color.liquid.js} +3 -3
  775. package/dist/esm/product/components/ProductVariants/{variants/VariantGroup.js → components/dropdown-group/DropdownGroup.js} +4 -4
  776. package/dist/esm/product/components/ProductVariants/components/dropdown-group/DropdownGroup.liquid.js +14 -0
  777. package/dist/esm/product/components/ProductVariants/components/dropdown-option/render-liquid/index.js +60 -0
  778. package/dist/esm/product/components/ProductVariants/components/dropdown-swatches/Dropdown.js +82 -0
  779. package/dist/esm/product/components/ProductVariants/components/dropdown-swatches/Dropdown.liquid.js +47 -0
  780. package/dist/esm/product/components/ProductVariants/components/dropdown-swatches/hooks/useDropdownSwatches.js +53 -0
  781. package/dist/esm/product/components/ProductVariants/{variants → components/image}/Image.js +1 -1
  782. package/dist/esm/product/components/ProductVariants/{variants → components/image}/Image.liquid.js +2 -2
  783. package/dist/esm/product/components/ProductVariants/{variants → components/image-shopify}/ImageShopify.js +1 -1
  784. package/dist/esm/product/components/ProductVariants/{variants → components/image-shopify}/ImageShopify.liquid.js +2 -2
  785. package/dist/esm/product/components/ProductVariants/{variants → components/variants}/index.js +29 -22
  786. package/dist/esm/product/components/ProductVariants/{variants → components/variants}/index.liquid.js +46 -41
  787. package/dist/esm/product/components/ProductVariants/hooks/useGpVariants.js +176 -0
  788. package/dist/esm/product/components/ProductVariants/index.js +105 -339
  789. package/dist/esm/product/components/ProductVariants/index.liquid.js +163 -229
  790. package/dist/esm/product/components/{Vendor.js → ProductVendor/Vendor.js} +2 -2
  791. package/dist/esm/product/components/{Vendor.liquid.js → ProductVendor/Vendor.liquid.js} +2 -2
  792. package/dist/esm/product/components/ProductViewMore/ProductViewMore.js +26 -0
  793. package/dist/esm/product/components/{ProductViewMore.liquid.js → ProductViewMore/ProductViewMore.liquid.js} +2 -2
  794. package/dist/esm/product/components/ProductWrap/Product.js +66 -0
  795. package/dist/esm/product/components/ProductWrap/Product.liquid.js +143 -0
  796. package/dist/esm/product/components/ProductWrap/common/const.js +8 -0
  797. package/dist/esm/product/components/ProductWrap/common/index.js +31 -0
  798. package/dist/esm/product/components/ProductWrap/hook/useProductSetting.js +56 -0
  799. package/dist/esm/product/helpers/product.js +6 -28
  800. package/dist/esm/product/index.js +68 -0
  801. package/dist/esm/product/next.js +10 -10
  802. package/dist/esm/product/setting/ProductProperties.js +2 -2
  803. package/dist/esm/product/setting/product/configs/presets.js +0 -11
  804. package/dist/esm/product/setting/product-button/configs/settings.js +78 -180
  805. package/dist/esm/product/setting/product-button/configs/uiV2.js +123 -153
  806. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +7 -6
  807. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +8 -7
  808. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +1 -1
  809. package/dist/esm/product/setting/product-image-v2/configs/uiV2.js +157 -86
  810. package/dist/esm/product/setting/product-list/configs/presets.js +4 -2
  811. package/dist/esm/product/setting/product-list/configs/uiV1.js +1 -1
  812. package/dist/{cjs/product/setting/product-properties/configs/settings.js → esm/product/setting/product-properties/configs/settingsV2.js} +55 -27
  813. package/dist/esm/product/setting/product-properties/configs/uiV2.js +367 -180
  814. package/dist/esm/product/setting/product-quantity/configs/settings.js +201 -156
  815. package/dist/esm/product/setting/product-quantity/configs/uiV2.js +417 -24
  816. package/dist/esm/product/setting/product-variant/configs/uiV2.js +2 -3
  817. package/dist/esm/select/setting/Select.js +61 -0
  818. package/dist/esm/setting.js +86 -173
  819. package/dist/esm/shop-pay-installment/components/ShopPayInstallments.js +4 -9
  820. package/dist/esm/shop-pay-installment/components/common/const.js +8 -0
  821. package/dist/esm/shop-pay-installment/settings/ShopPayInstallments.js +3 -3
  822. package/dist/esm/sticky/components/Sticky.js +6 -6
  823. package/dist/esm/sticky/components/Sticky.liquid.js +1 -5
  824. package/dist/esm/stock-counter/components/StockCounter.liquid.js +4 -4
  825. package/dist/esm/stock-counter/index.js +10 -0
  826. package/dist/esm/tab/components/TabItem.js +20 -10
  827. package/dist/esm/tab/components/TabItem.liquid.js +21 -9
  828. package/dist/esm/tab/components/Tabs.js +139 -118
  829. package/dist/esm/tab/components/Tabs.liquid.js +154 -105
  830. package/dist/esm/tab/components/{common.js → common/common.js} +48 -35
  831. package/dist/esm/tab/components/common/getAttr.js +12 -0
  832. package/dist/esm/tab/components/common/getClasses.js +97 -0
  833. package/dist/esm/tab/components/common/getStyle.js +85 -0
  834. package/dist/esm/tab/components/hooks/useTab.js +33 -0
  835. package/dist/esm/tab/index.js +14 -0
  836. package/dist/esm/text/components/common/getClasses.js +2 -1
  837. package/dist/esm/text/index.js +10 -3
  838. package/dist/esm/text/utils/dynamic-source.js +1 -0
  839. package/dist/esm/third-party/components/Wiser/WiserSampleContent.js +1 -1
  840. package/dist/esm/third-party/components/Wiser.liquid.js +1 -1
  841. package/dist/esm/third-party/setting/Wiser.js +2 -5
  842. package/dist/esm/third-party/types/index.js +6 -0
  843. package/dist/esm/third-party-instant/components/InstantThirdPartyPreview.js +54 -56
  844. package/dist/esm/third-party-instant/components/Judgeme/JudgemeSampleContent.js +8 -10
  845. package/dist/esm/third-party-instant/components/Judgeme/WithoutProduct.js +40 -42
  846. package/dist/esm/third-party-instant/components/Klaviyo/KlaviyoSampleContent.js +8 -10
  847. package/dist/esm/third-party-instant/components/LooxReviews/LooxReviewsSampleContent.js +8 -10
  848. package/dist/esm/third-party-instant/components/LooxReviews/SingleProduct.js +14 -16
  849. package/dist/esm/third-party-instant/components/LooxReviews/WithoutProduct.js +20 -22
  850. package/dist/esm/third-party-instant/components/YotpoLoyalty/YotpoLoyaltySampleContent.js +8 -10
  851. package/dist/esm/third-party-instant/index.js +22 -0
  852. package/dist/esm/third-party-slot/common/classes.js +17 -0
  853. package/dist/esm/third-party-slot/common/index.js +54 -0
  854. package/dist/esm/third-party-slot/common/styles.js +7 -0
  855. package/dist/esm/third-party-slot/components/ThirdPartySlot.js +30 -32
  856. package/dist/esm/third-party-slot/components/ThirdPartySlot.liquid.js +23 -49
  857. package/dist/esm/third-party-slot/setting/index.js +1 -1
  858. package/dist/esm/video/components/LiteYouTubeEmbed.js +40 -42
  859. package/dist/types/index.d.ts +4762 -5491
  860. package/package.json +4 -4
  861. package/dist/cjs/accordion/setting/index.js +0 -13
  862. package/dist/cjs/article/components/ArticleAuthor.liquid.js +0 -27
  863. package/dist/cjs/article/components/ArticleCategory.liquid.js +0 -27
  864. package/dist/cjs/article/components/ArticleContent.liquid.js +0 -42
  865. package/dist/cjs/article/components/ArticleDate.liquid.js +0 -35
  866. package/dist/cjs/article/components/ArticleExcerpt.liquid.js +0 -26
  867. package/dist/cjs/article/components/ArticleImage.liquid.js +0 -67
  868. package/dist/cjs/article/components/ArticlePagination.liquid.js +0 -17
  869. package/dist/cjs/article/components/ArticleReadMore.liquid.js +0 -58
  870. package/dist/cjs/article/components/ArticleTag.liquid.js +0 -27
  871. package/dist/cjs/article/components/ArticleTitle.liquid.js +0 -46
  872. package/dist/cjs/article/setting/index.js +0 -31
  873. package/dist/cjs/banner/setting/index.js +0 -11
  874. package/dist/cjs/breadcrumb/setting/index.js +0 -11
  875. package/dist/cjs/button/setting/index.js +0 -11
  876. package/dist/cjs/carousel/setting/index.js +0 -13
  877. package/dist/cjs/cart/setting/index.js +0 -37
  878. package/dist/cjs/code/setting/index.js +0 -11
  879. package/dist/cjs/collection/components/CollectionBanner.js +0 -99
  880. package/dist/cjs/collection/components/CollectionBanner.liquid.js +0 -96
  881. package/dist/cjs/collection/components/CollectionDescription.js +0 -115
  882. package/dist/cjs/collection/components/CollectionDescription.liquid.js +0 -114
  883. package/dist/cjs/collection/components/CollectionPaginator.js +0 -151
  884. package/dist/cjs/collection/components/CollectionPaginator.liquid.js +0 -72
  885. package/dist/cjs/collection/components/CollectionToolbar.js +0 -112
  886. package/dist/cjs/collection/components/CollectionToolbar.liquid.js +0 -108
  887. package/dist/cjs/collection/setting/index.js +0 -19
  888. package/dist/cjs/countdown-timer/setting/index.js +0 -11
  889. package/dist/cjs/coupon/setting/index.js +0 -11
  890. package/dist/cjs/dialog/setting/index.js +0 -11
  891. package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +0 -234
  892. package/dist/cjs/estimate-delivery/setting/index.js +0 -11
  893. package/dist/cjs/form/setting/index.js +0 -27
  894. package/dist/cjs/grid/setting/index.js +0 -17
  895. package/dist/cjs/header/setting/index.js +0 -11
  896. package/dist/cjs/heading/setting/index.js +0 -11
  897. package/dist/cjs/icon/setting/index.js +0 -11
  898. package/dist/cjs/icon-list/setting/index.js +0 -13
  899. package/dist/cjs/icon-list-hoz/setting/index.js +0 -13
  900. package/dist/cjs/icon-list-v2/setting/index.js +0 -11
  901. package/dist/cjs/image/setting/index.js +0 -11
  902. package/dist/cjs/image-comparison/constants/commonStyles.js +0 -62
  903. package/dist/cjs/image-comparison/setting/index.js +0 -11
  904. package/dist/cjs/image-detection/setting/index.js +0 -11
  905. package/dist/cjs/input/setting/index.js +0 -11
  906. package/dist/cjs/line/setting/index.js +0 -11
  907. package/dist/cjs/link/setting/index.js +0 -11
  908. package/dist/cjs/marquee/setting/index.js +0 -13
  909. package/dist/cjs/menu/setting/index.js +0 -11
  910. package/dist/cjs/modal/setting/index.js +0 -11
  911. package/dist/cjs/pagination/setting/index.js +0 -11
  912. package/dist/cjs/post-purchase/advanced-list/setting/index.js +0 -13
  913. package/dist/cjs/post-purchase/button/setting/index.js +0 -11
  914. package/dist/cjs/post-purchase/callout-banner/setting/index.js +0 -13
  915. package/dist/cjs/post-purchase/countdown-timer/settings/index.js +0 -11
  916. package/dist/cjs/post-purchase/image/setting/index.js +0 -11
  917. package/dist/cjs/post-purchase/line/setting/index.js +0 -11
  918. package/dist/cjs/post-purchase/link/setting/index.js +0 -11
  919. package/dist/cjs/post-purchase/next.js +0 -39
  920. package/dist/cjs/post-purchase/product/settings/index.js +0 -29
  921. package/dist/cjs/post-purchase/product/settings/product-image/ProductFeatureImage.js +0 -142
  922. package/dist/cjs/post-purchase/product/settings/product-image/ProductGalleryImage.js +0 -105
  923. package/dist/cjs/post-purchase/product/settings/product-image/ProductImageLayoutSetting.js +0 -152
  924. package/dist/cjs/post-purchase/product/settings/product-image/setting-v1.js +0 -163
  925. package/dist/cjs/post-purchase/product/settings/product-image/uiV1.js +0 -42
  926. package/dist/cjs/post-purchase/text/settings/index.js +0 -13
  927. package/dist/cjs/product/components/DynamicCheckout.js +0 -28
  928. package/dist/cjs/product/components/Product.js +0 -115
  929. package/dist/cjs/product/components/Product.liquid.js +0 -135
  930. package/dist/cjs/product/components/ProductButton.js +0 -552
  931. package/dist/cjs/product/components/ProductButton.liquid.js +0 -383
  932. package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +0 -196
  933. package/dist/cjs/product/components/ProductList.liquid.js +0 -426
  934. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice.js +0 -57
  935. package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice.liquid.js +0 -64
  936. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput.js +0 -74
  937. package/dist/cjs/product/components/ProductProperties/ProductPropertyInput.liquid.js +0 -57
  938. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect.js +0 -42
  939. package/dist/cjs/product/components/ProductProperties/ProductPropertySelect.liquid.js +0 -57
  940. package/dist/cjs/product/components/ProductProperties.liquid.js +0 -148
  941. package/dist/cjs/product/components/ProductQuantity.liquid.js +0 -218
  942. package/dist/cjs/product/components/ProductVariants/variants/Base.js +0 -293
  943. package/dist/cjs/product/components/ProductVariants/variants/Base.liquid.js +0 -168
  944. package/dist/cjs/product/components/ProductVariants/variants/Dropdown.js +0 -159
  945. package/dist/cjs/product/components/ProductVariants/variants/Dropdown.liquid.js +0 -135
  946. package/dist/cjs/product/components/ProductVariants/variants/DropdownGroup.liquid.js +0 -57
  947. package/dist/cjs/product/components/ProductVariants/variants/RadioButtons.js +0 -63
  948. package/dist/cjs/product/components/ProductVariants/variants/combine/index.js +0 -47
  949. package/dist/cjs/product/components/ProductViewMore.js +0 -32
  950. package/dist/cjs/product/setting/index.js +0 -49
  951. package/dist/cjs/radio/setting/index.js +0 -11
  952. package/dist/cjs/select/setting/index.js +0 -11
  953. package/dist/cjs/shop-pay-installment/settings/index.js +0 -11
  954. package/dist/cjs/sticky/setting/index.js +0 -11
  955. package/dist/cjs/stock-counter/setting/index.js +0 -11
  956. package/dist/cjs/tab/setting/index.js +0 -13
  957. package/dist/cjs/text/setting/index.js +0 -11
  958. package/dist/cjs/textarea/setting/index.js +0 -11
  959. package/dist/cjs/third-party-instant/setting/index.js +0 -17
  960. package/dist/cjs/video/setting/index.js +0 -11
  961. package/dist/esm/accordion/setting/index.js +0 -9
  962. package/dist/esm/article/components/ArticleAuthor.liquid.js +0 -23
  963. package/dist/esm/article/components/ArticleCategory.liquid.js +0 -23
  964. package/dist/esm/article/components/ArticleContent.liquid.js +0 -38
  965. package/dist/esm/article/components/ArticleDate.liquid.js +0 -31
  966. package/dist/esm/article/components/ArticleExcerpt.liquid.js +0 -22
  967. package/dist/esm/article/components/ArticleImage.liquid.js +0 -63
  968. package/dist/esm/article/components/ArticlePagination.liquid.js +0 -13
  969. package/dist/esm/article/components/ArticleReadMore.liquid.js +0 -54
  970. package/dist/esm/article/components/ArticleTag.liquid.js +0 -23
  971. package/dist/esm/article/components/ArticleTitle.liquid.js +0 -42
  972. package/dist/esm/article/setting/index.js +0 -27
  973. package/dist/esm/banner/setting/index.js +0 -7
  974. package/dist/esm/breadcrumb/setting/index.js +0 -7
  975. package/dist/esm/button/setting/index.js +0 -7
  976. package/dist/esm/carousel/setting/index.js +0 -9
  977. package/dist/esm/cart/setting/index.js +0 -33
  978. package/dist/esm/code/setting/index.js +0 -7
  979. package/dist/esm/collection/components/CollectionBanner.js +0 -95
  980. package/dist/esm/collection/components/CollectionBanner.liquid.js +0 -92
  981. package/dist/esm/collection/components/CollectionDescription.js +0 -111
  982. package/dist/esm/collection/components/CollectionDescription.liquid.js +0 -110
  983. package/dist/esm/collection/components/CollectionPaginator.js +0 -147
  984. package/dist/esm/collection/components/CollectionPaginator.liquid.js +0 -68
  985. package/dist/esm/collection/components/CollectionToolbar.js +0 -107
  986. package/dist/esm/collection/components/CollectionToolbar.liquid.js +0 -104
  987. package/dist/esm/collection/setting/index.js +0 -15
  988. package/dist/esm/countdown-timer/setting/index.js +0 -7
  989. package/dist/esm/coupon/setting/index.js +0 -7
  990. package/dist/esm/dialog/setting/index.js +0 -7
  991. package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +0 -230
  992. package/dist/esm/estimate-delivery/setting/index.js +0 -7
  993. package/dist/esm/form/setting/index.js +0 -23
  994. package/dist/esm/grid/setting/index.js +0 -13
  995. package/dist/esm/header/setting/index.js +0 -7
  996. package/dist/esm/heading/setting/index.js +0 -7
  997. package/dist/esm/icon/setting/index.js +0 -7
  998. package/dist/esm/icon-list/setting/index.js +0 -9
  999. package/dist/esm/icon-list-hoz/setting/index.js +0 -9
  1000. package/dist/esm/icon-list-v2/setting/index.js +0 -7
  1001. package/dist/esm/image/setting/index.js +0 -7
  1002. package/dist/esm/image-comparison/constants/commonStyles.js +0 -58
  1003. package/dist/esm/image-comparison/setting/index.js +0 -7
  1004. package/dist/esm/image-detection/setting/index.js +0 -7
  1005. package/dist/esm/input/setting/index.js +0 -7
  1006. package/dist/esm/line/setting/index.js +0 -7
  1007. package/dist/esm/link/setting/index.js +0 -7
  1008. package/dist/esm/marquee/setting/index.js +0 -9
  1009. package/dist/esm/menu/setting/index.js +0 -7
  1010. package/dist/esm/modal/setting/index.js +0 -7
  1011. package/dist/esm/pagination/setting/index.js +0 -7
  1012. package/dist/esm/post-purchase/advanced-list/setting/index.js +0 -9
  1013. package/dist/esm/post-purchase/button/setting/index.js +0 -7
  1014. package/dist/esm/post-purchase/callout-banner/setting/index.js +0 -9
  1015. package/dist/esm/post-purchase/countdown-timer/settings/index.js +0 -7
  1016. package/dist/esm/post-purchase/image/setting/index.js +0 -7
  1017. package/dist/esm/post-purchase/line/setting/index.js +0 -7
  1018. package/dist/esm/post-purchase/link/setting/index.js +0 -7
  1019. package/dist/esm/post-purchase/next.js +0 -35
  1020. package/dist/esm/post-purchase/product/settings/index.js +0 -25
  1021. package/dist/esm/post-purchase/product/settings/product-image/ProductFeatureImage.js +0 -139
  1022. package/dist/esm/post-purchase/product/settings/product-image/ProductGalleryImage.js +0 -102
  1023. package/dist/esm/post-purchase/product/settings/product-image/ProductImageLayoutSetting.js +0 -149
  1024. package/dist/esm/post-purchase/product/settings/product-image/setting-v1.js +0 -161
  1025. package/dist/esm/post-purchase/product/settings/product-image/uiV1.js +0 -40
  1026. package/dist/esm/post-purchase/text/settings/index.js +0 -9
  1027. package/dist/esm/product/components/DynamicCheckout.js +0 -24
  1028. package/dist/esm/product/components/Product.js +0 -111
  1029. package/dist/esm/product/components/Product.liquid.js +0 -131
  1030. package/dist/esm/product/components/ProductButton.js +0 -548
  1031. package/dist/esm/product/components/ProductButton.liquid.js +0 -379
  1032. package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +0 -192
  1033. package/dist/esm/product/components/ProductList.js +0 -467
  1034. package/dist/esm/product/components/ProductList.liquid.js +0 -422
  1035. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice.js +0 -53
  1036. package/dist/esm/product/components/ProductProperties/ProductPropertyChoice.liquid.js +0 -60
  1037. package/dist/esm/product/components/ProductProperties/ProductPropertyInput.js +0 -70
  1038. package/dist/esm/product/components/ProductProperties/ProductPropertyInput.liquid.js +0 -53
  1039. package/dist/esm/product/components/ProductProperties/ProductPropertySelect.js +0 -38
  1040. package/dist/esm/product/components/ProductProperties/ProductPropertySelect.liquid.js +0 -53
  1041. package/dist/esm/product/components/ProductProperties.liquid.js +0 -144
  1042. package/dist/esm/product/components/ProductQuantity.liquid.js +0 -214
  1043. package/dist/esm/product/components/ProductVariants/variants/Base.js +0 -289
  1044. package/dist/esm/product/components/ProductVariants/variants/Base.liquid.js +0 -164
  1045. package/dist/esm/product/components/ProductVariants/variants/Dropdown.js +0 -155
  1046. package/dist/esm/product/components/ProductVariants/variants/Dropdown.liquid.js +0 -131
  1047. package/dist/esm/product/components/ProductVariants/variants/DropdownGroup.liquid.js +0 -53
  1048. package/dist/esm/product/components/ProductVariants/variants/RadioButtons.js +0 -59
  1049. package/dist/esm/product/components/ProductVariants/variants/combine/index.js +0 -44
  1050. package/dist/esm/product/components/ProductViewMore.js +0 -28
  1051. package/dist/esm/product/setting/index.js +0 -45
  1052. package/dist/esm/radio/setting/index.js +0 -7
  1053. package/dist/esm/select/setting/index.js +0 -7
  1054. package/dist/esm/shop-pay-installment/settings/index.js +0 -7
  1055. package/dist/esm/sticky/setting/index.js +0 -7
  1056. package/dist/esm/stock-counter/setting/index.js +0 -7
  1057. package/dist/esm/tab/setting/index.js +0 -9
  1058. package/dist/esm/text/setting/index.js +0 -7
  1059. package/dist/esm/textarea/setting/index.js +0 -7
  1060. package/dist/esm/third-party-instant/setting/index.js +0 -13
  1061. package/dist/esm/video/setting/index.js +0 -7
  1062. /package/dist/cjs/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/presets.js +0 -0
  1063. /package/dist/cjs/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/settings.js +0 -0
  1064. /package/dist/cjs/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/uiV1.js +0 -0
  1065. /package/dist/cjs/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/uiV2.js +0 -0
  1066. /package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/child}/MediaIcon.js +0 -0
  1067. /package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/child}/ProductFeatureVideo.js +0 -0
  1068. /package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/child}/ProductFeaturedImageOnly.js +0 -0
  1069. /package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/lightbox}/ButtonOpenLightBox.js +0 -0
  1070. /package/dist/cjs/product/components/ProductImagesV2/{jsx/hooks → hooks}/useFilterImagesByVariant.js +0 -0
  1071. /package/dist/cjs/product/components/ProductVariants/{common.js → common/common.js} +0 -0
  1072. /package/dist/cjs/product/components/ProductVariants/{variants → components/dropdown-option}/DropdownOption.js +0 -0
  1073. /package/dist/cjs/product/components/ProductVariants/{variants/VariantOption/index.js → components/dropdown-option/VariantOption.js} +0 -0
  1074. /package/dist/cjs/product/components/ProductVariants/{variants → components/rectangle-list}/RectangleList.js +0 -0
  1075. /package/dist/cjs/tab/{hooks → components/hooks}/useTabInteraction.js +0 -0
  1076. /package/dist/esm/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/presets.js +0 -0
  1077. /package/dist/esm/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/settings.js +0 -0
  1078. /package/dist/esm/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/uiV1.js +0 -0
  1079. /package/dist/esm/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/uiV2.js +0 -0
  1080. /package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/child}/MediaIcon.js +0 -0
  1081. /package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/child}/ProductFeatureVideo.js +0 -0
  1082. /package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/child}/ProductFeaturedImageOnly.js +0 -0
  1083. /package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/lightbox}/ButtonOpenLightBox.js +0 -0
  1084. /package/dist/esm/product/components/ProductImagesV2/{jsx/hooks → hooks}/useFilterImagesByVariant.js +0 -0
  1085. /package/dist/esm/product/components/ProductVariants/{common.js → common/common.js} +0 -0
  1086. /package/dist/esm/product/components/ProductVariants/{variants → components/dropdown-option}/DropdownOption.js +0 -0
  1087. /package/dist/esm/product/components/ProductVariants/{variants/VariantOption/index.js → components/dropdown-option/VariantOption.js} +0 -0
  1088. /package/dist/esm/product/components/ProductVariants/{variants → components/rectangle-list}/RectangleList.js +0 -0
  1089. /package/dist/esm/tab/{hooks → components/hooks}/useTabInteraction.js +0 -0
@@ -1,289 +0,0 @@
1
- 'use client';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import { makeStyle, getSingleColorVariable, composeTypographyClassName, composeTypographyStyle, getStyleShadow, getStyleShadowState, getRadiusStyleActiveState, composeRadius, getGlobalColorStateStyle, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertBorderColor, cls, getGlobalColorStateClass, getGlobalColorClass } from '@gem-sdk/core';
4
- import { useMemo, Fragment } from 'react';
5
- import { isColorDark } from '../common.js';
6
-
7
- const BaseVariant = ({ value, isVariantOutStock, checked: selected, optionTransform, optionTypography, optionTypo, swatchesImage, swatchesColor, preset, optionType, available, variantKey, soldOutMarkLine })=>{
8
- const isColorType = useMemo(()=>{
9
- return optionType === 'color';
10
- }, [
11
- optionType
12
- ]);
13
- const optionBgColor = preset?.optionBgColor;
14
- const optionTextColor = preset?.optionTextColor;
15
- const optionBorder = preset?.optionBorder;
16
- const optionHasShadow = preset?.optionHasShadow;
17
- const optionShadow = preset?.optionShadow;
18
- const optionRounded = preset?.optionRounded;
19
- const isUploadImageType = useMemo(()=>{
20
- return optionType === 'image' || optionType === 'image_shopify';
21
- }, [
22
- optionType
23
- ]);
24
- const getCustomCSSActiveState = useMemo(()=>{
25
- return makeStyle({
26
- bgc: !isColorType && getSingleColorVariable(optionBgColor?.active),
27
- bs: optionBorder?.active?.border,
28
- bw: optionBorder?.active?.width,
29
- bc: getSingleColorVariable(optionBorder?.active?.color)
30
- });
31
- }, [
32
- optionBorder,
33
- optionBgColor,
34
- isColorType
35
- ]);
36
- const swatchPaddingResponsive = useMemo(()=>{
37
- const paddingWidthDefault = '0px';
38
- const paddingWidth = '16px';
39
- const paddingHeight = '8px';
40
- const padding = {
41
- '--pl': paddingWidthDefault,
42
- '--pr': paddingWidthDefault,
43
- '--pl-tablet': paddingWidthDefault,
44
- '--pr-tablet': paddingWidthDefault,
45
- '--pl-mobile': paddingWidthDefault,
46
- '--pr-mobile': paddingWidthDefault,
47
- '--pt': paddingWidthDefault,
48
- '--pb': paddingWidthDefault
49
- };
50
- if (preset?.width?.desktop?.toLowerCase() === 'auto' || !preset?.width?.desktop) {
51
- padding['--pl'] = paddingWidth;
52
- padding['--pr'] = paddingWidth;
53
- }
54
- if (preset?.width?.tablet?.toLowerCase() === 'auto' || !preset?.width?.tablet) {
55
- padding['--pl-tablet'] = paddingWidth;
56
- padding['--pr-tablet'] = paddingWidth;
57
- }
58
- if (preset?.width?.mobile?.toLowerCase() === 'auto' || !preset?.width?.mobile) {
59
- padding['--pl-mobile'] = paddingWidth;
60
- padding['--pr-mobile'] = paddingWidth;
61
- }
62
- if (preset?.height?.toLowerCase() === 'auto' || preset?.height) {
63
- padding['--pt'] = paddingHeight;
64
- padding['--pb'] = paddingHeight;
65
- }
66
- return padding;
67
- }, [
68
- preset?.width,
69
- preset?.height
70
- ]);
71
- const appendTypoClass = composeTypographyClassName(optionTypo, optionTypography);
72
- const appendTypoStyle = composeTypographyStyle(optionTypo, optionTypography);
73
- const activeRounded = useMemo(()=>{
74
- return {
75
- ...optionRounded,
76
- active: {
77
- ...optionRounded?.active || {},
78
- radiusType: 'custom'
79
- }
80
- };
81
- }, [
82
- optionRounded
83
- ]);
84
- const styleShadowByState = useMemo(()=>{
85
- const { active: activeShadow, ...withoutActiveStateShadow } = optionShadow ?? {};
86
- return selected ? getStyleShadow({
87
- value: activeShadow,
88
- state: 'active',
89
- styleAppliedFor: 'box-shadow',
90
- isEnableShadow: optionHasShadow?.active
91
- }, true) : getStyleShadowState(withoutActiveStateShadow, 'box-shadow', optionHasShadow);
92
- }, [
93
- selected,
94
- optionShadow,
95
- optionHasShadow
96
- ]);
97
- const styleRadiusByState = useMemo(()=>{
98
- return selected ? getRadiusStyleActiveState(activeRounded) : isColorType ? composeRadius({
99
- normal: optionRounded?.normal
100
- }) : composeRadius(optionRounded);
101
- }, [
102
- selected,
103
- optionRounded,
104
- activeRounded,
105
- isColorType
106
- ]);
107
- const styleRadiusByStateForColor = useMemo(()=>{
108
- return selected ? getRadiusStyleActiveState(activeRounded) : composeRadius(optionRounded);
109
- }, [
110
- selected,
111
- optionRounded,
112
- activeRounded
113
- ]);
114
- const styleTextByState = useMemo(()=>{
115
- return !selected ? getGlobalColorStateStyle('c', optionTextColor) : makeStyle({
116
- c: getSingleColorVariable(optionTextColor?.active)
117
- });
118
- }, [
119
- selected,
120
- optionTextColor
121
- ]);
122
- const styleByState = useMemo(()=>{
123
- return {
124
- ...styleRadiusByState,
125
- ...styleShadowByState,
126
- ...!isColorType && !isUploadImageType && styleTextByState,
127
- ...selected ? getCustomCSSActiveState : {},
128
- ...!selected && !isColorType ? getGlobalColorStateStyle('bg', optionBgColor) : {},
129
- ...!selected && !isColorType && swatchesImage ? handleConvertBorderStyle(optionBorder) : {},
130
- ...!selected && !isColorType && swatchesImage ? handleConvertBorderWidth(optionBorder) : {},
131
- ...!selected && !isColorType && swatchesImage ? handleConvertBorderColor(optionBorder) : {}
132
- };
133
- }, [
134
- swatchesImage,
135
- styleRadiusByState,
136
- styleShadowByState,
137
- isColorType,
138
- isUploadImageType,
139
- styleTextByState,
140
- selected,
141
- getCustomCSSActiveState,
142
- optionBgColor,
143
- optionBorder
144
- ]);
145
- const classByState = useMemo(()=>{
146
- if (isColorType) return '';
147
- return cls(!selected ? getGlobalColorStateClass('bg', optionBgColor) : getGlobalColorClass('bg', optionBgColor?.active), !selected ? getGlobalColorStateClass('text', optionTextColor) : getGlobalColorClass('text', optionTextColor?.active));
148
- }, [
149
- selected,
150
- optionBgColor,
151
- optionTextColor,
152
- isColorType
153
- ]);
154
- const lineBorderColor = useMemo(()=>{
155
- if (selected) {
156
- return isColorDark(optionBgColor?.active) ? '#fff' : '#121212';
157
- }
158
- return isColorDark(optionBgColor?.normal) ? '#fff' : '#121212';
159
- }, [
160
- optionBgColor?.active,
161
- optionBgColor?.normal,
162
- selected
163
- ]);
164
- const lineBorderColorBy = (color)=>{
165
- return isColorDark(color) ? '#fff' : '#121212';
166
- };
167
- return /*#__PURE__*/ jsxs("div", {
168
- className: cls('gp-relative gp-box-border gp-flex gp-h-full gp-w-full gp-cursor-pointer gp-items-center gp-justify-center gp-overflow-hidden', {
169
- 'gp-pointer-events-none !gp-cursor-not-allowed': isVariantOutStock,
170
- 'gp-p-[4px]': isColorType,
171
- 'before:gp-absolute before:gp-top-[50%] before:gp-z-1 before:gp-block before:gp-w-full before:-gp-rotate-45 before:gp-border-t before:gp-border-[#A1A1A1] before:gp-bg-[#333] before:gp-content-[""]': soldOutMarkLine && !available && !isColorType
172
- }, classByState, appendTypoClass, variantKey),
173
- style: {
174
- ...makeStyle({
175
- tt: optionTransform
176
- }),
177
- ...makeStyle({
178
- h: preset?.height
179
- }),
180
- ...appendTypoStyle,
181
- ...styleByState
182
- },
183
- children: [
184
- soldOutMarkLine && /*#__PURE__*/ jsx("style", {
185
- children: `
186
- .${variantKey}:before {
187
- width: ${isColorType && swatchesColor?.length ? `calc(${preset?.height} - 12px) !important` : '200px !important'};
188
- border-color: ${isColorType ? '#121212' : lineBorderColor};
189
- }
190
- `
191
- }),
192
- swatchesImage && /*#__PURE__*/ jsx("img", {
193
- className: "gp-h-full gp-w-full gp-object-cover",
194
- src: swatchesImage,
195
- alt: ""
196
- }),
197
- isUploadImageType && !available && /*#__PURE__*/ jsx("div", {
198
- className: "gp-absolute gp-h-full gp-w-full gp-bg-white gp-opacity-0"
199
- }),
200
- swatchesColor && swatchesColor.length > 0 && swatchesColor?.map((color)=>{
201
- let colorLine = color;
202
- const isGradient = color.startsWith('linear-gradient');
203
- if (isGradient) {
204
- colorLine = color.match(/#(([\da-fA-F]{2}){3,4}|([\da-fA-F]){3,4})/g)?.[0];
205
- }
206
- return /*#__PURE__*/ jsxs(Fragment, {
207
- children: [
208
- /*#__PURE__*/ jsx("style", {
209
- children: `
210
- .${variantKey} .color:before {
211
- border-color: ${lineBorderColorBy(colorLine)} !important;
212
- }
213
- `
214
- }),
215
- /*#__PURE__*/ jsx("div", {
216
- className: cls('color gp-relative gp-h-full gp-w-full gp-overflow-hidden', {
217
- 'before:gp-absolute before:gp-top-[50%] before:gp-block before:gp-w-full before:gp--rotate-45 before:gp-border before:gp-content-[""]': soldOutMarkLine && !available
218
- }),
219
- style: {
220
- ...color.startsWith('linear-gradient') ? {
221
- backgroundImage: color
222
- } : {
223
- backgroundColor: color
224
- },
225
- ...!selected ? handleConvertBorderStyle(optionBorder) : {},
226
- ...!selected ? handleConvertBorderWidth(optionBorder) : {},
227
- ...!selected ? handleConvertBorderColor(optionBorder) : {},
228
- ...styleRadiusByStateForColor
229
- }
230
- }, color)
231
- ]
232
- }, color);
233
- }),
234
- !swatchesImage && !swatchesColor?.length && /*#__PURE__*/ jsxs("div", {
235
- className: cls('gp-relative gp-line-clamp-2 gp-flex gp-h-full gp-w-full gp-items-center gp-justify-center gp-overflow-hidden', {
236
- 'before:gp-absolute before:gp-top-[50%] before:gp-z-1 before:gp-block before:gp-w-full before:-gp-rotate-45 before:gp-border-t before:gp-border-[#A1A1A1] before:gp-bg-[#333] before:gp-content-[""]': soldOutMarkLine && !available && isColorType,
237
- 'gp-flex-col gp-gap-[6px]': isUploadImageType
238
- }),
239
- style: {
240
- ...!isColorType ? swatchPaddingResponsive : {},
241
- ...!selected ? handleConvertBorderStyle(optionBorder) : {},
242
- ...!selected ? handleConvertBorderWidth(optionBorder) : {},
243
- ...!selected ? handleConvertBorderColor(optionBorder) : {},
244
- ...styleRadiusByStateForColor
245
- },
246
- children: [
247
- soldOutMarkLine && isColorType && /*#__PURE__*/ jsx("style", {
248
- children: `
249
- .${variantKey}:before {
250
- width: ${swatchesColor?.length ? `calc(${preset?.height} - 12px) !important` : '200px !important'};
251
- border-color: '#121212 !important';
252
- }
253
- `
254
- }),
255
- isUploadImageType && /*#__PURE__*/ jsxs("svg", {
256
- width: "15",
257
- height: "12",
258
- viewBox: "0 0 15 12",
259
- fill: "none",
260
- xmlns: "http://www.w3.org/2000/svg",
261
- children: [
262
- /*#__PURE__*/ jsx("circle", {
263
- cx: "2",
264
- cy: "2",
265
- r: "2",
266
- fill: "#D6D6D6"
267
- }),
268
- /*#__PURE__*/ jsx("path", {
269
- d: "M0.196854 10.6453L2.40968 8.05946C2.4846 7.97175 2.57719 7.9008 2.68141 7.85124C2.78562 7.80168 2.89913 7.77461 3.01452 7.77181C3.12991 7.76902 3.2446 7.79055 3.3511 7.835C3.45761 7.87945 3.55353 7.94583 3.63262 8.02981L4.66733 9.12714L8.71205 4.29464C8.79123 4.19995 8.89077 4.1243 9.00325 4.07333C9.11573 4.02236 9.23827 3.99737 9.36176 4.00022C9.48524 4.00307 9.6065 4.03369 9.71651 4.08979C9.82651 4.1459 9.92245 4.22605 9.99717 4.32429L14.8329 10.6772C14.9254 10.7989 14.982 10.9441 14.9964 11.0962C15.0107 11.2484 14.9823 11.4016 14.9144 11.5385C14.8464 11.6754 14.7415 11.7907 14.6115 11.8713C14.4815 11.952 14.3316 11.9948 14.1786 11.995L0.822048 12C0.664945 11.9999 0.511148 11.9549 0.378853 11.8703C0.246557 11.7857 0.141299 11.6649 0.0755311 11.5224C0.00976323 11.3799 -0.013762 11.2216 0.00773837 11.0661C0.0292388 10.9107 0.0948652 10.7646 0.196854 10.6453Z",
270
- fill: "#D6D6D6"
271
- })
272
- ]
273
- }),
274
- /*#__PURE__*/ jsx("span", {
275
- className: cls({
276
- 'gp-overflow-hidden gp-text-ellipsis gp-px-1': isColorType || isUploadImageType
277
- }, 'gp-text-center', appendTypoClass),
278
- style: {
279
- ...appendTypoStyle
280
- },
281
- children: value?.label
282
- })
283
- ]
284
- })
285
- ]
286
- });
287
- };
288
-
289
- export { BaseVariant as default };
@@ -1,164 +0,0 @@
1
- import { composeTypographyStyle, composeTypographyClassName, template, cls, makeStyle, getSingleColorVariable, getStyleShadow, getRadiusStyleActiveState, makeStyleResponsive, composeRadius, getStyleShadowState, getGlobalColorStateStyle, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertBorderColor } from '@gem-sdk/core';
2
- import { getStyleOfObject } from '../../../helpers/function.js';
3
-
4
- const BaseVariant = ({ optionTransform, optionTypography, optionBgColor, optionTextColor, optionBorder, optionRounded, optionHasShadow, optionShadow, optionTypo, type, swatchHeight, swatchWidth })=>{
5
- const isColorType = type === 'color';
6
- const isUploadImageType = type === 'image' || type === 'image_shopify';
7
- const getCustomCSSActiveState = (isActiveBg)=>{
8
- return makeStyle({
9
- bg: isActiveBg && getSingleColorVariable(optionBgColor?.active),
10
- bs: optionBorder?.active?.border,
11
- bw: optionBorder?.active?.width,
12
- bc: getSingleColorVariable(optionBorder?.active?.color)
13
- });
14
- };
15
- const appendTypoStyle = composeTypographyStyle(optionTypo, optionTypography);
16
- const appendTypoClass = `${composeTypographyClassName(optionTypo, optionTypography)}`;
17
- const getClassesWrapper = ()=>{
18
- return `
19
- {%- if selectedValue == value -%}
20
- ${cls(`gp-relative gp-flex gp-cursor-pointer gp-items-center gp-justify-center gp-text-center option-value-wrapper gp-overflow-hidden gp-w-full gp-h-full`, `data-[disabled='disabled']:gp-pointer-events-none data-[disabled='disabled']:!gp-cursor-not-allowed
21
- data-[hidden='false']:gp-flex`, specialClass())}
22
- {%- else -%}
23
- ${cls(`gp-relative gp-flex gp-cursor-pointer gp-items-center gp-justify-center gp-text-center option-value-wrapper gp-overflow-hidden gp-w-full gp-h-full`, `data-[disabled='disabled']:gp-pointer-events-none data-[disabled='disabled']:!gp-cursor-not-allowed
24
- data-[hidden='false']:gp-flex`, specialClass())}
25
- {%- endif -%}
26
- `;
27
- };
28
- const getColorStyleByState = (active)=>{
29
- return getStyleOfObject({
30
- '--d': 'flex',
31
- '--jc': 'center',
32
- ' --ai': 'center',
33
- '--w': '100%',
34
- '--h': '100%',
35
- '--of': 'hidden',
36
- '--bs': active ? 'none' : 'solid',
37
- ...handleConvertBorderWidth(optionBorder),
38
- ...handleConvertBorderColor(optionBorder),
39
- ...composeRadius(optionRounded)
40
- });
41
- };
42
- const getColorStyle = ()=>{
43
- return `
44
- {%- if selectedValue == value -%}
45
- ${getColorStyleByState(true)}
46
- {%- else -%}
47
- ${getColorStyleByState(false)}
48
- {%- endif -%}
49
- `;
50
- };
51
- const getWrapperActiveStyle = ()=>{
52
- return getStyleOfObject({
53
- ...getCustomCSSActiveState(!isColorType),
54
- ...!isColorType && !isUploadImageType && makeStyle({
55
- c: optionTransform
56
- }),
57
- ...!isColorType && !isUploadImageType && makeStyle({
58
- c: getSingleColorVariable(optionTextColor?.active)
59
- }),
60
- ...getStyleShadow({
61
- value: optionShadow?.active,
62
- state: 'active',
63
- styleAppliedFor: 'box-shadow',
64
- isEnableShadow: optionHasShadow?.active
65
- }, true),
66
- ...getRadiusStyleActiveState(optionRounded),
67
- ...appendTypoStyle,
68
- ...makeStyleResponsive('h', swatchHeight),
69
- ...makeStyleResponsive('w', swatchWidth)
70
- });
71
- };
72
- const getWrapperNormalAndHoverStyle = ()=>{
73
- return getStyleOfObject({
74
- ...composeRadius(optionRounded),
75
- ...getStyleShadowState(optionShadow, 'box-shadow', optionHasShadow),
76
- ...!isColorType && getGlobalColorStateStyle('bg', optionBgColor),
77
- ...!isColorType && handleConvertBorderStyle(optionBorder),
78
- ...!isColorType && handleConvertBorderWidth(optionBorder),
79
- ...!isColorType && handleConvertBorderColor(optionBorder),
80
- ...!isColorType && !isUploadImageType && makeStyle({
81
- c: optionTransform
82
- }),
83
- ...!isColorType && !isUploadImageType && getGlobalColorStateStyle('c', optionTextColor),
84
- ...appendTypoStyle,
85
- ...makeStyleResponsive('h', swatchHeight),
86
- ...makeStyleResponsive('w', swatchWidth)
87
- });
88
- };
89
- const renderColors = ()=>{
90
- return template`
91
- {%- for color in colors -%}
92
- {% assign backgroundType = "background-color" %}
93
- {% if color contains "linear-gradient" %}
94
- {% assign backgroundType = "background-image" %}
95
- {% endif %}
96
- <div
97
- class="gp-relative gp-h-full gp-w-full gp-min-w-fit gp-flex gp-color-circle before:gp-hidden before:gp-absolute before:gp-top-[50%] before:-gp-rotate-45 before:gp-border-t before:gp-z-1 before:gp-content-[''] before:gp-w-full"
98
- data-test="{{ backgroundType }}: {{ color }}"
99
- style="{{ backgroundType }}: {{ color }}; ${getColorStyle()}"></div>
100
- {%- endfor -%}
101
- `;
102
- };
103
- const renderText = ()=>{
104
- return template`
105
- <div class="option-value gp-overflow-hidden gp-relative ${isUploadImageType ? 'gp-flex gp-flex-col gp-justify-center gp-items-center gp-gap-[6px]' : ''}
106
- "
107
- style="${isColorType ? getColorStyle() : ''}${!isUploadImageType && !isColorType ? '--pl: 16px;--pr: 16px;--pt: 8px;--pb: 8px;' : ''}">
108
- ${isUploadImageType ? '<svg width="15" height="12" viewBox="0 0 15 12" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="#D6D6D6"></circle><path d="M0.196854 10.6453L2.40968 8.05946C2.4846 7.97175 2.57719 7.9008 2.68141 7.85124C2.78562 7.80168 2.89913 7.77461 3.01452 7.77181C3.12991 7.76902 3.2446 7.79055 3.3511 7.835C3.45761 7.87945 3.55353 7.94583 3.63262 8.02981L4.66733 9.12714L8.71205 4.29464C8.79123 4.19995 8.89077 4.1243 9.00325 4.07333C9.11573 4.02236 9.23827 3.99737 9.36176 4.00022C9.48524 4.00307 9.6065 4.03369 9.71651 4.08979C9.82651 4.1459 9.92245 4.22605 9.99717 4.32429L14.8329 10.6772C14.9254 10.7989 14.982 10.9441 14.9964 11.0962C15.0107 11.2484 14.9823 11.4016 14.9144 11.5385C14.8464 11.6754 14.7415 11.7907 14.6115 11.8713C14.4815 11.952 14.3316 11.9948 14.1786 11.995L0.822048 12C0.664945 11.9999 0.511148 11.9549 0.378853 11.8703C0.246557 11.7857 0.141299 11.6649 0.0755311 11.5224C0.00976323 11.3799 -0.013762 11.2216 0.00773837 11.0661C0.0292388 10.9107 0.0948652 10.7646 0.196854 10.6453Z" fill="#D6D6D6"></path></svg>' : ''}
109
- <span class="${cls('gp-text-center', {
110
- 'gp-overflow-hidden gp-text-ellipsis gp-px-1': isColorType || isUploadImageType
111
- }, appendTypoClass)}" style="${{
112
- ...appendTypoStyle
113
- }}">{{value}}</span>
114
- </div>
115
- `;
116
- };
117
- const renderImage = ()=>{
118
- return template`
119
- <img style="width: 64px; height: 64px" class="gp-object-cover gp-rounded-none" src="{{imageUrl}}" alt="" />
120
- `;
121
- };
122
- const renderTemplate = ()=>{
123
- switch(type){
124
- case 'color':
125
- return template`{%- if colors != null and colors.size > 0 -%} ${renderColors()} {% else %} ${renderText()} {%- endif -%}`;
126
- case 'image':
127
- case 'image_shopify':
128
- return template`{%- if imageUrl != null and imageUrl != "" -%} ${renderImage()} {% else %} ${renderText()} {%- endif -%}`;
129
- default:
130
- return template`${renderText()}`;
131
- }
132
- };
133
- const getStylesWrapper = ()=>{
134
- return `
135
- {%- if selectedValue == value -%}
136
- ${getWrapperActiveStyle()}
137
- {%- else -%}
138
- ${getWrapperNormalAndHoverStyle()}
139
- {%- endif -%}
140
- `;
141
- };
142
- const specialClass = ()=>{
143
- if (isColorType) {
144
- return `${appendTypoClass} gp-p-[4px]`;
145
- }
146
- return `${appendTypoClass}`;
147
- };
148
- return template`<div
149
- class="${cls(getClassesWrapper())}"
150
- style="${getStylesWrapper()}"
151
- id="value-wrapper-{{option.name | escape | strip}}-{{value | escape | strip}}"
152
- option-data="{{option.name | escape}}"
153
- option-value="{{value | escape}}"
154
- option-position="{{option.position}}"
155
- data-gp-option-available="{{value.available}}"
156
- option-type="${type || 'rectangle_list'}"
157
- data-disabled="{%- if option_disabled == true -%} disabled {%- endif -%}"
158
- data-hidden='true'
159
- >
160
- ${renderTemplate()}
161
- </div>`;
162
- };
163
-
164
- export { BaseVariant as default };
@@ -1,155 +0,0 @@
1
- 'use client';
2
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
- import { useSelectedOption, useProduct, composeTypographyClassName, composeTypographyStyle, makeStyleResponsive, makeWidth, cls, handleConvertClassColor, getGlobalColorStateClass, getStyleShadowState, makeStyle, getGlobalColorStateStyle, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertBorderColor, composeRadius, getSingleColorVariable } from '@gem-sdk/core';
4
- import { parseSelectedOption } from '../../../helpers/product.js';
5
- import VariantOption from './VariantOption/index.js';
6
- import DropdownVariantOption from './DropdownOption.js';
7
- import { useMemo, useState, useEffect } from 'react';
8
-
9
- const DropdownVariant = ({ option, optionPosition, optionNumber, variantGroup, variants, price, blankText, swatchHeight, optionTypography, optionBgColor, optionTextColor, optionRounded, optionShadow, // optionHasShadow,
10
- optionBorder, optionTransform, initValue, hasPreSelected, optionTypo, presetConfiguration, combineHeight, combineWidth, soldOutStyle })=>{
11
- const { setSelectedOption, forceSelectedOption, selectedOptions } = useSelectedOption();
12
- const product = useProduct();
13
- const isSoldOutMark = useMemo(()=>{
14
- return soldOutStyle === 'disable';
15
- }, [
16
- soldOutStyle
17
- ]);
18
- const preset = useMemo(()=>{
19
- if (!presetConfiguration) return undefined;
20
- const { presets, optionType } = presetConfiguration;
21
- return presets?.[optionType || 'rectangle_list'];
22
- }, [
23
- presetConfiguration
24
- ]);
25
- if (!variantGroup) {
26
- optionBgColor = preset?.optionBgColor;
27
- optionTextColor = preset?.optionTextColor;
28
- optionBorder = preset?.optionBorder;
29
- // optionHasShadow = preset?.optionHasShadow;
30
- optionShadow = preset?.optionShadow;
31
- optionRounded = preset?.optionRounded;
32
- }
33
- const getCustomCSSActiveState = ()=>{
34
- return makeStyle({
35
- bg: getSingleColorVariable(optionBgColor?.active),
36
- bs: optionBorder?.active?.border,
37
- bw: optionBorder?.active?.width,
38
- bc: optionBorder?.active?.color
39
- });
40
- };
41
- const handleSelectVariant = (variantId)=>{
42
- const selectedVariant = variants?.find((va)=>va?.id === variantId);
43
- if (selectedVariant && selectedVariant.selectedOptions) {
44
- const selectedOption = parseSelectedOption(selectedVariant.selectedOptions);
45
- if (selectedOption) {
46
- forceSelectedOption(selectedOption, product?.id);
47
- }
48
- }
49
- };
50
- const [value, setValue] = useState(!hasPreSelected ? 'blank' : initValue);
51
- useEffect(()=>{
52
- setValue(selectedOptions?.[option?.name ?? 'blank']);
53
- }, [
54
- selectedOptions,
55
- option
56
- ]);
57
- useEffect(()=>{
58
- if (!hasPreSelected) {
59
- setValue('blank');
60
- }
61
- }, [
62
- hasPreSelected
63
- ]);
64
- const checkVariantInStock = (matchedVariant)=>{
65
- if (!matchedVariant) return false;
66
- return matchedVariant?.inventoryQuantity && matchedVariant.inventoryQuantity > 0 || !matchedVariant?.manageInventory || matchedVariant.inventoryPolicy === 'CONTINUE';
67
- };
68
- const appendTypoClass = composeTypographyClassName(optionTypo, optionTypography);
69
- const appendTypoStyle = composeTypographyStyle(optionTypo, optionTypography);
70
- const composeWidthResponsive = useMemo(()=>{
71
- if (variantGroup) {
72
- return makeStyleResponsive('w', makeWidth(combineWidth));
73
- }
74
- return makeStyleResponsive('w', makeWidth(preset?.width));
75
- }, [
76
- preset?.width,
77
- combineWidth,
78
- variantGroup
79
- ]);
80
- // const minWidthResponsive = useMemo(() => {
81
- // if (variantGroup) {
82
- // return makeStyleResponsive('minw', makeWidth(combineWidth, combineFullWidth));
83
- // }
84
- // return makeStyleResponsive('minw', makeWidth(preset?.width, preset?.fullWidth));
85
- // }, [preset?.width, preset?.fullWidth, combineWidth, combineFullWidth, variantGroup]);
86
- const composeHeight = useMemo(()=>{
87
- if (variantGroup) {
88
- return combineHeight;
89
- }
90
- return preset?.height ? preset.height : swatchHeight;
91
- }, [
92
- preset?.height,
93
- swatchHeight,
94
- combineHeight,
95
- variantGroup
96
- ]);
97
- return /*#__PURE__*/ jsx("select", {
98
- autoComplete: "off",
99
- name: option?.name || 'Select Option',
100
- className: cls('gp-truncate gp-bg-auto gp-pl-4 gp-pr-6 gp-outline-none', handleConvertClassColor(optionBorder), appendTypoClass, getGlobalColorStateClass('text', optionTextColor), getGlobalColorStateClass('bg', optionBgColor)),
101
- value: value ?? initValue,
102
- style: {
103
- ...composeWidthResponsive,
104
- ...getStyleShadowState(optionShadow, 'box-shadow', {
105
- normal: optionShadow?.normal?.type !== 'none',
106
- hover: optionShadow?.hover?.type !== 'none',
107
- active: optionShadow?.active?.type !== 'none'
108
- }),
109
- ...getCustomCSSActiveState(),
110
- ...makeStyle({
111
- tt: optionTransform
112
- }),
113
- ...appendTypoStyle,
114
- ...getGlobalColorStateStyle('c', optionTextColor),
115
- ...getGlobalColorStateStyle('bg', optionBgColor),
116
- ...makeStyle({
117
- h: composeHeight
118
- }),
119
- ...handleConvertBorderStyle(optionBorder),
120
- ...handleConvertBorderWidth(optionBorder),
121
- ...handleConvertBorderColor(optionBorder),
122
- ...composeRadius(optionRounded),
123
- appearance: 'none',
124
- backgroundImage: 'url(https://cdn.shopify.com/s/files/1/1827/4239/t/1/assets/ico-select.svg?v=155563818344741998551488860031)',
125
- backgroundRepeat: 'no-repeat',
126
- backgroundPosition: 'right 16px center'
127
- },
128
- onChange: (e)=>{
129
- variantGroup ? handleSelectVariant(e.target?.value) : setSelectedOption(option?.name, e.target?.value, product?.id);
130
- },
131
- children: /*#__PURE__*/ jsxs(Fragment, {
132
- children: [
133
- !hasPreSelected && /*#__PURE__*/ jsx("option", {
134
- value: "blank",
135
- children: blankText ?? 'Please select an option'
136
- }),
137
- option?.values?.map((item)=>/*#__PURE__*/ jsx(DropdownVariantOption, {
138
- value: item,
139
- optionName: option.name,
140
- optionPosition: optionPosition,
141
- optionNumber: optionNumber,
142
- isSoldOutMark: isSoldOutMark
143
- }, item?.id)),
144
- variantGroup && variants?.map((variant)=>/*#__PURE__*/ jsx(VariantOption, {
145
- disabled: !checkVariantInStock(variant) && isSoldOutMark,
146
- value: variant?.id,
147
- variant: variant,
148
- includePrice: price
149
- }, variant?.id))
150
- ]
151
- })
152
- });
153
- };
154
-
155
- export { DropdownVariant as default };