@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.
- package/dist/cjs/accordion/components/AccordionItem.liquid.js +2 -2
- package/dist/cjs/accordion/hooks/useAccordion.js +8 -1
- package/dist/cjs/accordion/index.js +17 -0
- package/dist/cjs/accordion/setting/configs/settings.js +5 -2
- package/dist/cjs/article/components/ArticleAuthor.js +3 -2
- package/dist/cjs/article/components/ArticleList.liquid.js +7 -7
- package/dist/cjs/article/components/ArticlePagination.js +1 -1
- package/dist/cjs/article/components/ArticleReadMore.js +1 -1
- package/dist/cjs/article/index.js +39 -0
- package/dist/cjs/article/next.js +31 -41
- package/dist/cjs/article/setting/ArticleExcerpt.js +4 -4
- package/dist/cjs/article/setting/ArticleList.js +48 -15
- package/dist/cjs/article/setting/configs/ArticleAuthor/presets.js +28 -1
- package/dist/cjs/article/setting/configs/ArticleAuthor/uiV2.js +3 -12
- package/dist/cjs/article/setting/configs/ArticleCategory/presets.js +19 -1
- package/dist/cjs/article/setting/configs/ArticleCategory/uiV2.js +8 -0
- package/dist/cjs/article/setting/configs/ArticleDate/presets.js +19 -1
- package/dist/cjs/article/setting/configs/ArticleDate/uiV2.js +8 -0
- package/dist/cjs/article/setting/configs/ArticleImage/settings.js +41 -7
- package/dist/cjs/article/setting/configs/ArticleTag/settings.js +1 -4
- package/dist/cjs/article/setting/configs/ArticleTitle/uiV2.js +8 -16
- package/dist/cjs/banner/components/HeroBanner.liquid.js +2 -2
- package/dist/cjs/banner/components/HeroBannerItem.js +6 -6
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +8 -146
- package/dist/cjs/banner/components/hooks/useHeroBanner.js +1 -1
- package/dist/cjs/banner/index.js +18 -0
- package/dist/cjs/banner/setting/HeroBanner.js +1 -2
- package/dist/cjs/banner/setting/setting.js +24 -1180
- package/dist/cjs/banner/setting/uiV2.js +77 -11
- package/dist/cjs/breadcrumb/index.js +13 -0
- package/dist/cjs/builder.js +227 -226
- package/dist/cjs/button/components/Button.js +2 -2
- package/dist/cjs/button/components/common/classes.js +1 -1
- package/dist/cjs/button/components/common/data.js +3 -2
- package/dist/cjs/button/components/common/styles.js +32 -33
- package/dist/cjs/button/index.js +14 -0
- package/dist/cjs/carousel/components/Arrow.liquid.js +1 -1
- package/dist/cjs/carousel/components/Carousel.js +31 -12
- package/dist/cjs/carousel/components/common/carousel.js +5 -5
- package/dist/cjs/carousel/index.js +18 -0
- package/dist/cjs/cart/components/CartList.js +1 -1
- package/dist/cjs/cart/index.js +46 -0
- package/dist/cjs/code/components/CSSCode.js +0 -1
- package/dist/cjs/code/index.js +14 -0
- package/dist/cjs/collection/components/collection-banner/common/classes.js +36 -0
- package/dist/cjs/collection/components/collection-banner/common/index.js +19 -0
- package/dist/cjs/collection/components/collection-banner/common/styles.js +46 -0
- package/dist/cjs/collection/components/collection-banner/components/CollectionBanner.js +106 -0
- package/dist/cjs/collection/components/collection-banner/components/CollectionBanner.liquid.js +94 -0
- package/dist/cjs/collection/components/collection-description/common/classes.js +21 -0
- package/dist/cjs/collection/components/collection-description/common/constant.js +9 -0
- package/dist/cjs/collection/components/collection-description/common/index.js +36 -0
- package/dist/cjs/collection/components/collection-description/common/styles.js +86 -0
- package/dist/cjs/collection/components/collection-description/components/CollectionDescription.js +103 -0
- package/dist/cjs/collection/components/collection-description/components/CollectionDescription.liquid.js +99 -0
- package/dist/cjs/collection/components/collection-description/hook/useDescription.js +89 -0
- package/dist/cjs/collection/components/collection-paginator/common/classes.js +25 -0
- package/dist/cjs/collection/components/collection-paginator/common/index.js +195 -0
- package/dist/cjs/collection/components/collection-paginator/common/styles.js +61 -0
- package/dist/cjs/collection/components/collection-paginator/components/CollectionPaginator.js +42 -0
- package/dist/cjs/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +62 -0
- package/dist/cjs/collection/components/{CollectionTitle.js → collection-title/components/CollectionTitle.js} +3 -4
- package/dist/cjs/collection/components/{CollectionTitle.liquid.js → collection-title/components/CollectionTitle.liquid.js} +1 -1
- package/dist/cjs/collection/components/collection-toolbar/common/classes.js +33 -0
- package/dist/cjs/collection/components/collection-toolbar/common/constant.js +40 -0
- package/dist/cjs/collection/components/collection-toolbar/common/index.js +28 -0
- package/dist/cjs/collection/components/collection-toolbar/common/style.js +51 -0
- package/dist/cjs/collection/components/collection-toolbar/components/CollectionToolbar.js +99 -0
- package/dist/cjs/collection/components/collection-toolbar/components/CollectionToolbar.liquid.js +101 -0
- package/dist/cjs/collection/index.js +26 -0
- package/dist/cjs/collection/next.js +5 -5
- package/dist/cjs/collection/setting/collection-paginator/configs/settings.js +5 -0
- package/dist/cjs/countdown-timer/components/Countdown.js +1 -1
- package/dist/cjs/countdown-timer/index.js +14 -0
- package/dist/cjs/coupon/common/classes.js +9 -0
- package/dist/cjs/coupon/common/index.js +16 -0
- package/dist/cjs/coupon/common/styles.js +46 -0
- package/dist/cjs/coupon/components/Coupon.js +42 -84
- package/dist/cjs/coupon/components/Coupon.liquid.js +29 -40
- package/dist/cjs/coupon/hooks/useCoupon.js +32 -0
- package/dist/cjs/coupon/index.js +14 -0
- package/dist/cjs/coupon/setting/Coupon.js +8 -1191
- package/dist/cjs/coupon/setting/config/settings.js +832 -0
- package/dist/cjs/coupon/setting/config/uiV1.js +367 -0
- package/dist/cjs/coupon/setting/config/uiV2.js +352 -0
- package/dist/cjs/dialog/index.js +14 -0
- package/dist/cjs/estimate-delivery/index.js +14 -0
- package/dist/cjs/form/components/form-email/FormEmail.liquid.js +1 -1
- package/dist/cjs/form/components/submit-button/SubmitButton.js +8 -10
- package/dist/cjs/form/components/textinput/common/composeStyles.js +0 -2
- package/dist/cjs/form/index.js +30 -0
- package/dist/cjs/form/setting/contact/Contact.js +2 -0
- package/dist/cjs/form/setting/form-checkbox/FormCheckbox.js +2 -2
- package/dist/cjs/form/setting/form-checkbox/configs/settings.js +3 -1
- package/dist/cjs/form/setting/form-dropdown/FormDropdown.js +3 -3
- package/dist/cjs/form/setting/form-dropdown/configs/settings.js +3 -1
- package/dist/cjs/form/setting/form-email/configs/FormEmail.js +3 -3
- package/dist/cjs/form/setting/form-email/configs/settings.js +3 -1
- package/dist/cjs/form/setting/form-textarea/Textarea.js +3 -3
- package/dist/cjs/form/setting/form-textarea/configs/settings.js +3 -1
- package/dist/cjs/form/setting/newsletter/Newsletter.js +2 -2
- package/dist/cjs/form/setting/newsletter/configs/settings.js +3 -1
- package/dist/cjs/form/setting/submit-button/SubmitButton.js +2 -2
- package/dist/cjs/form/setting/submit-button/configs/settings.js +3 -1
- package/dist/cjs/form/setting/text-field/TextField.js +3 -3
- package/dist/cjs/form/setting/text-field/configs/settings.js +3 -1
- package/dist/cjs/form/setting/text-input/TextInput.js +3 -3
- package/dist/cjs/form/setting/text-input/configs/settings.js +3 -1
- package/dist/cjs/grid/index.js +22 -0
- package/dist/cjs/grid/row/Row.js +5 -3
- package/dist/cjs/grid/row/Row.liquid.js +1 -4
- package/dist/cjs/grid/row/commons/getAttr.js +2 -5
- package/dist/cjs/header/components/kind/basic/index.js +3 -3
- package/dist/cjs/header/components/kind/modern/index.js +4 -4
- package/dist/cjs/header/index.js +24 -0
- package/dist/cjs/heading/index.js +14 -0
- package/dist/cjs/helpers.js +25 -6
- package/dist/cjs/icon/index.js +14 -0
- package/dist/cjs/icon/setting/Icon.js +2 -2
- package/dist/cjs/icon-list/index.js +16 -0
- package/dist/cjs/icon-list-hoz/index.js +16 -0
- package/dist/cjs/icon-list-v2/common/classes.js +31 -0
- package/dist/cjs/icon-list-v2/common/index.js +33 -0
- package/dist/cjs/icon-list-v2/common/styles.js +97 -0
- package/dist/cjs/icon-list-v2/components/IconList.js +111 -131
- package/dist/cjs/icon-list-v2/components/IconList.liquid.js +99 -92
- package/dist/cjs/icon-list-v2/index.js +14 -0
- package/dist/cjs/image/components/common/attributes.js +4 -2
- package/dist/cjs/image/components/common/helpers.js +4 -0
- package/dist/cjs/image/components/helpers/getNextImageLiquidAttrs.js +3 -2
- package/dist/cjs/image/helpers/getSrcSet.js +1 -1
- package/dist/cjs/image/index.js +16 -0
- package/dist/cjs/image/setting/configs/presets.js +3 -0
- package/dist/cjs/image/setting/configs/settings.js +69 -11
- package/dist/cjs/image/setting/configs/uiV2.js +127 -1
- package/dist/cjs/image-comparison/components/CompareImage.js +230 -562
- package/dist/cjs/image-comparison/components/CompareImage.liquid.js +249 -322
- package/dist/cjs/image-comparison/components/ImageComparison.js +16 -34
- package/dist/cjs/image-comparison/components/ImageComparison.liquid.js +16 -10
- package/dist/cjs/image-comparison/components/Label.js +31 -0
- package/dist/cjs/image-comparison/components/Label.liquid.js +18 -44
- package/dist/cjs/image-comparison/components/SlideHandle.js +57 -0
- package/dist/cjs/image-comparison/components/SlideHandle.liquid.js +37 -0
- package/dist/cjs/image-comparison/components/common/attributes.js +68 -0
- package/dist/cjs/image-comparison/components/common/classes.js +40 -0
- package/dist/cjs/image-comparison/components/common/constant.js +10 -0
- package/dist/cjs/image-comparison/components/common/data.js +61 -0
- package/dist/cjs/image-comparison/components/common/helpers.js +135 -5
- package/dist/cjs/image-comparison/components/common/styles.js +182 -0
- package/dist/cjs/image-comparison/components/helpers/getReactStyles.js +50 -0
- package/dist/cjs/image-comparison/components/hooks/useCompareImage.js +192 -0
- package/dist/cjs/image-comparison/index.js +14 -0
- package/dist/cjs/image-comparison/setting/configs/settings.js +94 -40
- package/dist/cjs/image-comparison/setting/configs/uiV2.js +97 -30
- package/dist/cjs/image-detection/index.js +12 -0
- package/dist/cjs/image-detection/setting/ImageDetection.js +1 -1
- package/dist/cjs/index.js +344 -372
- package/dist/cjs/index.liquid.js +108 -126
- package/dist/cjs/input/index.js +12 -0
- package/dist/cjs/line/index.js +12 -0
- package/dist/cjs/link/index.js +13 -0
- package/dist/cjs/marquee/common/classes.js +23 -0
- package/dist/cjs/marquee/common/index.js +23 -0
- package/dist/cjs/marquee/common/styles.js +224 -0
- package/dist/cjs/marquee/components/Marquee.js +125 -128
- package/dist/cjs/marquee/components/Marquee.liquid.js +81 -197
- package/dist/cjs/marquee/components/MarqueeBase.js +15 -156
- package/dist/cjs/marquee/components/MarqueeBase.liquid.js +36 -78
- package/dist/cjs/marquee/components/MarqueeItem.js +28 -72
- package/dist/cjs/marquee/components/MarqueeItem.liquid.js +18 -26
- package/dist/cjs/marquee/hooks/useMarquee.js +47 -0
- package/dist/cjs/marquee/hooks/useMarqueeBase.js +164 -0
- package/dist/cjs/marquee/hooks/useMarqueeItem.js +61 -0
- package/dist/cjs/marquee/hooks/useMarqueeScrollToItem.js +5 -2
- package/dist/cjs/marquee/hooks/useMarqueeStyles.js +4 -126
- package/dist/cjs/marquee/index.js +16 -0
- package/dist/cjs/marquee/setting/configs/uiV2.js +3 -1
- package/dist/cjs/menu/index.js +14 -0
- package/dist/cjs/modal/index.js +15 -0
- package/dist/cjs/next.js +61 -45
- package/dist/cjs/pagination/index.js +12 -0
- package/dist/cjs/post-purchase/advanced-list/components/common/getClasses.js +1 -1
- package/dist/cjs/post-purchase/advanced-list/index.js +15 -0
- package/dist/cjs/post-purchase/advanced-list/next.js +7 -2
- package/dist/cjs/post-purchase/advanced-list/setting/template.js +1 -4
- package/dist/cjs/post-purchase/button/common/getStyles.js +2 -2
- package/dist/cjs/post-purchase/button/index.js +14 -0
- package/dist/cjs/post-purchase/button/next.js +6 -1
- package/dist/cjs/post-purchase/button/setting/configs/settings.js +1 -0
- package/dist/cjs/post-purchase/callout-banner/components/CalloutBox.js +2 -2
- package/dist/cjs/post-purchase/callout-banner/index.js +19 -0
- package/dist/cjs/post-purchase/callout-banner/next.js +7 -2
- package/dist/cjs/post-purchase/countdown-timer/components/TextCountdown.js +6 -1
- package/dist/cjs/post-purchase/countdown-timer/hooks/useCountdownTimer.js +2 -3
- package/dist/cjs/post-purchase/countdown-timer/index.js +13 -0
- package/dist/cjs/post-purchase/countdown-timer/next.js +6 -1
- package/dist/cjs/post-purchase/image/index.js +14 -0
- package/dist/cjs/post-purchase/image/next.js +6 -1
- package/dist/cjs/post-purchase/image/setting/setting-v2.js +2 -2
- package/dist/cjs/post-purchase/line/components/PostPurchaseLine.js +0 -7
- package/dist/cjs/post-purchase/line/components/common/getStyle.js +4 -4
- package/dist/cjs/post-purchase/line/index.js +13 -0
- package/dist/cjs/post-purchase/line/next.js +6 -1
- package/dist/cjs/post-purchase/line/setting/configs/settings.js +1 -3
- package/dist/cjs/post-purchase/line/types/index.js +9 -0
- package/dist/cjs/post-purchase/link/index.js +14 -0
- package/dist/cjs/post-purchase/link/next.js +6 -1
- package/dist/cjs/post-purchase/product/components/ProductDiscountTag.js +5 -2
- package/dist/cjs/post-purchase/product/components/ProductOffer.js +4 -4
- package/dist/cjs/post-purchase/product/components/priceBreakdown/MoneyLine.js +3 -1
- package/dist/cjs/post-purchase/product/components/product-image/FeatureImage.js +3 -4
- package/dist/cjs/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +2 -2
- package/dist/cjs/post-purchase/product/components/product-image/ItemGridPostPurchase.js +2 -2
- package/dist/cjs/post-purchase/product/helpers/product-price-breakdown/getStyles.js +8 -0
- package/dist/cjs/post-purchase/product/helpers/product-quantity/getStyles.js +1 -6
- package/dist/cjs/post-purchase/product/hooks/product-quantity/useHandleQuantity.js +3 -2
- package/dist/cjs/post-purchase/product/index.js +37 -0
- package/dist/cjs/post-purchase/product/next.js +15 -10
- package/dist/cjs/post-purchase/product/settings/product-discount-tag/settingV2.js +97 -0
- package/dist/cjs/post-purchase/product/settings/product-discount-tag/uiV2.js +44 -0
- package/dist/cjs/post-purchase/product/settings/product-image/ProductImages.js +5 -15
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +21 -9
- package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +52 -46
- package/dist/cjs/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-variants/settings/settingsV2.js +2 -0
- package/dist/cjs/post-purchase/text/index.js +7 -3
- package/dist/cjs/post-purchase/text/next.js +7 -2
- package/dist/cjs/product/components/DynamicCheckout/common/styles.js +2 -2
- package/dist/cjs/product/components/FileUpload/components/common/index.js +0 -140
- package/dist/cjs/product/components/FileUpload/components/config/setting.js +2 -2
- package/dist/cjs/product/components/ProductBadge/utils/stylesV2.js +9 -2
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountItem.js +3 -1
- package/dist/cjs/product/components/ProductButton/ProductButton.js +47 -0
- package/dist/cjs/product/components/ProductButton/ProductButton.liquid.js +66 -0
- package/dist/cjs/product/components/ProductButton/common/classes.js +38 -0
- package/dist/cjs/product/components/ProductButton/common/constants.js +35 -0
- package/dist/cjs/product/components/ProductButton/common/data.js +57 -0
- package/dist/cjs/product/components/ProductButton/common/helpers.js +80 -0
- package/dist/cjs/product/components/ProductButton/common/styles.js +157 -0
- package/dist/cjs/product/components/ProductButton/common/types.js +7 -0
- package/dist/cjs/product/components/ProductButton/components/AddToCartButton.js +42 -0
- package/dist/cjs/product/components/ProductButton/components/AddToCartButton.liquid.js +40 -0
- package/dist/cjs/product/components/ProductButton/components/BlankSpace.js +14 -0
- package/dist/cjs/product/components/ProductButton/components/BlankSpace.liquid.js +12 -0
- package/dist/cjs/product/components/ProductButton/components/CartMessage.js +20 -0
- package/dist/cjs/product/components/ProductButton/components/PriceComponent.js +23 -0
- package/dist/cjs/product/components/ProductButton/components/PriceComponent.liquid.js +22 -0
- package/dist/cjs/product/components/ProductButton/components/PriceLayout.js +28 -0
- package/dist/cjs/product/components/ProductButton/components/PriceLayout.liquid.js +23 -0
- package/dist/cjs/product/components/ProductButton/components/ProductButtonPrice.js +42 -0
- package/dist/cjs/product/components/ProductButton/components/ProductButtonPrice.liquid.js +40 -0
- package/dist/cjs/product/components/ProductButton/components/Separator.js +18 -0
- package/dist/cjs/product/components/ProductButton/components/Separator.liquid.js +17 -0
- package/dist/cjs/product/components/ProductButton/components/SoldOutButton.js +38 -0
- package/dist/cjs/product/components/ProductButton/components/SoldOutButton.liquid.js +42 -0
- package/dist/cjs/product/components/ProductButton/helpers/getButtonDynamicSourceLocales.js +36 -0
- package/dist/cjs/product/components/ProductButton/hooks/useAddToCart.js +99 -0
- package/dist/cjs/product/components/ProductButton/hooks/useCartMessage.js +35 -0
- package/dist/cjs/product/components/ProductButton/hooks/useCartOperations.js +73 -0
- package/dist/cjs/product/components/ProductButton/hooks/useDispatchAfterSubmitEvent.js +27 -0
- package/dist/cjs/product/components/ProductDescription/index.js +40 -38
- package/dist/cjs/product/components/ProductImages/ProductImagesLightBox.js +1 -1
- package/dist/cjs/product/components/ProductImages.js +6 -6
- package/dist/cjs/product/components/ProductImagesV2/common/getAttr.js +19 -2
- package/dist/cjs/product/components/ProductImagesV2/common/getClasses.js +1 -1
- package/dist/cjs/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +109 -0
- package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/child}/ProductGalleryGrid.js +5 -97
- package/dist/cjs/product/components/ProductImagesV2/{jsx/layouts → components/feature-gallery}/FeatureImageWithGallery.js +14 -52
- package/dist/cjs/product/components/ProductImagesV2/{liquid/ProductFeaturedImageCarousel.liquid.js → components/feature-gallery/FeatureImageWithGallery.liquid.js} +15 -15
- package/dist/cjs/product/components/ProductImagesV2/{jsx/layouts → components/feature-only}/OnlyFeatureImage.js +4 -2
- package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +87 -0
- package/dist/cjs/product/components/ProductImagesV2/{liquid/ProductGalleryCarousel.liquid.js → components/gallery-carousel/GalleryCarousel.liquid.js} +13 -13
- package/dist/cjs/product/components/ProductImagesV2/{jsx/layouts → components/gallery-grid}/GalleryGrid.js +4 -2
- package/dist/cjs/product/components/ProductImagesV2/{liquid/ProductGalleryGrid.liquid.js → components/gallery-grid/GalleryGrid.liquid.js} +10 -10
- package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/lightbox}/ProductImagesLightBox.js +3 -3
- package/dist/cjs/product/components/ProductImagesV2/hooks/useFeatureImageWithGallery.js +55 -0
- package/dist/cjs/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +135 -0
- package/dist/cjs/product/components/ProductImagesV2/{jsx/components/ProductFeaturedImageCarousel.js → hooks/useProductFeaturedImageCarousel.js} +54 -137
- package/dist/cjs/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +87 -0
- package/dist/cjs/product/components/ProductImagesV2/{jsx/ProductImages.js → index.js} +8 -8
- package/dist/cjs/product/components/ProductImagesV2/{liquid/ProductImages.liquid.js → index.liquid.js} +15 -15
- package/dist/cjs/product/components/{ProductList.js → ProductList/ProductList.js} +158 -245
- package/dist/cjs/product/components/ProductList/ProductList.liquid.js +242 -0
- package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.js +48 -0
- package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.liquid.js +63 -0
- package/dist/cjs/product/components/ProductList/ProductListGridLayout.js +38 -0
- package/dist/cjs/product/components/ProductList/ProductListGridLayout.liquid.js +62 -0
- package/dist/cjs/product/components/ProductList/ProductListItem.liquid.js +26 -0
- package/dist/cjs/product/components/ProductList/common/const.js +7 -0
- package/dist/cjs/product/components/ProductList/common/getAttr.js +26 -0
- package/dist/cjs/product/components/ProductList/common/getClass.js +36 -0
- package/dist/cjs/product/components/ProductList/common/getStyle.js +47 -0
- package/dist/cjs/product/components/ProductList/common/index.js +106 -0
- package/dist/cjs/product/components/ProductPrice/hooks/useGpPrice.js +1 -1
- package/dist/cjs/product/components/{ProductProperties.js → ProductProperties/ProductProperties.js} +52 -45
- package/dist/cjs/product/components/ProductProperties/ProductProperties.liquid.js +121 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js +63 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.liquid.js +73 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceAttrs.js +10 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceClasses.js +20 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceInlineCss.js +17 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceStyles.js +28 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.js +65 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.liquid.js +59 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getAttrs.js +10 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getClasses.js +17 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getContents.js +19 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyInput/common/getStyles.js +24 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/ProductPropertySelect.js +38 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/ProductPropertySelect.liquid.js +58 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/common/getAttrs.js +12 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/common/getClasses.js +16 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertySelect/common/getStyles.js +30 -0
- package/dist/cjs/product/components/ProductProperties/common/getAttrs.js +34 -0
- package/dist/cjs/product/components/ProductProperties/common/getClasses.js +36 -0
- package/dist/cjs/product/components/ProductProperties/common/getContents.js +56 -0
- package/dist/cjs/product/components/ProductProperties/common/getStyles.js +43 -0
- package/dist/cjs/product/components/ProductQuantity/common/common.js +31 -0
- package/dist/cjs/product/components/ProductQuantity/common/getAttrs.js +36 -0
- package/dist/cjs/product/components/ProductQuantity/common/getClasses.js +53 -0
- package/dist/cjs/product/components/ProductQuantity/common/getStyles.js +127 -0
- package/dist/cjs/product/components/ProductQuantity/index.liquid.js +177 -0
- package/dist/cjs/product/components/ProductQuantity.js +1 -1
- package/dist/cjs/product/components/ProductQuickView/ProductQuickView.js +7 -7
- package/dist/cjs/product/components/{Sku.js → ProductSKU/Sku.js} +3 -3
- package/dist/cjs/product/components/{Sku.liquid.js → ProductSKU/Sku.liquid.js} +3 -3
- package/dist/cjs/product/components/{ProductTag.js → ProductTag/ProductTag.js} +10 -11
- package/dist/cjs/product/components/{ProductTag.liquid.js → ProductTag/ProductTag.liquid.js} +2 -2
- package/dist/cjs/product/components/ProductVariants/common/base/attrs.js +29 -0
- package/dist/cjs/product/components/ProductVariants/common/base/classes.js +52 -0
- package/dist/cjs/product/components/ProductVariants/common/base/styles.js +170 -0
- package/dist/cjs/product/components/ProductVariants/common/dropdown/attrs.js +22 -0
- package/dist/cjs/product/components/ProductVariants/common/dropdown/classes.js +29 -0
- package/dist/cjs/product/components/ProductVariants/common/dropdown/styles.js +42 -0
- package/dist/cjs/product/components/ProductVariants/common/main/classes.js +27 -0
- package/dist/cjs/product/components/ProductVariants/common/main/getAttr.js +10 -0
- package/dist/cjs/product/components/ProductVariants/common/main/getData.js +73 -0
- package/dist/cjs/product/components/ProductVariants/common/main/styles.js +29 -0
- package/dist/cjs/product/components/ProductVariants/common/variants/attrs.js +18 -0
- package/dist/cjs/product/components/ProductVariants/common/variants/classes.js +44 -0
- package/dist/cjs/product/components/ProductVariants/common/variants/styles.js +11 -0
- package/dist/cjs/product/components/ProductVariants/components/base/base.js +168 -0
- package/dist/cjs/product/components/ProductVariants/components/base/base.liquid.js +101 -0
- package/dist/cjs/product/components/ProductVariants/{variants/Color.js → components/color/color.js} +2 -2
- package/dist/cjs/product/components/ProductVariants/{variants/Color.liquid.js → components/color/color.liquid.js} +4 -4
- package/dist/cjs/product/components/ProductVariants/{variants/VariantGroup.js → components/dropdown-group/DropdownGroup.js} +4 -4
- package/dist/cjs/product/components/ProductVariants/components/dropdown-group/DropdownGroup.liquid.js +18 -0
- package/dist/cjs/product/components/ProductVariants/components/dropdown-option/render-liquid/index.js +64 -0
- package/dist/cjs/product/components/ProductVariants/components/dropdown-swatches/Dropdown.js +86 -0
- package/dist/cjs/product/components/ProductVariants/components/dropdown-swatches/Dropdown.liquid.js +51 -0
- package/dist/cjs/product/components/ProductVariants/components/dropdown-swatches/hooks/useDropdownSwatches.js +55 -0
- package/dist/cjs/product/components/ProductVariants/{variants → components/image}/Image.js +2 -2
- package/dist/cjs/product/components/ProductVariants/{variants → components/image}/Image.liquid.js +3 -3
- package/dist/cjs/product/components/ProductVariants/{variants → components/image-shopify}/ImageShopify.js +2 -2
- package/dist/cjs/product/components/ProductVariants/{variants → components/image-shopify}/ImageShopify.liquid.js +3 -3
- package/dist/cjs/product/components/ProductVariants/{variants → components/variants}/index.js +30 -23
- package/dist/cjs/product/components/ProductVariants/{variants → components/variants}/index.liquid.js +49 -44
- package/dist/cjs/product/components/ProductVariants/hooks/useGpVariants.js +178 -0
- package/dist/cjs/product/components/ProductVariants/index.js +103 -337
- package/dist/cjs/product/components/ProductVariants/index.liquid.js +167 -233
- package/dist/cjs/product/components/{Vendor.js → ProductVendor/Vendor.js} +2 -2
- package/dist/cjs/product/components/{Vendor.liquid.js → ProductVendor/Vendor.liquid.js} +2 -2
- package/dist/cjs/product/components/ProductViewMore/ProductViewMore.js +30 -0
- package/dist/cjs/product/components/{ProductViewMore.liquid.js → ProductViewMore/ProductViewMore.liquid.js} +2 -2
- package/dist/cjs/product/components/ProductWrap/Product.js +70 -0
- package/dist/cjs/product/components/ProductWrap/Product.liquid.js +147 -0
- package/dist/cjs/product/components/ProductWrap/common/const.js +15 -0
- package/dist/cjs/product/components/ProductWrap/common/index.js +33 -0
- package/dist/cjs/product/components/ProductWrap/hook/useProductSetting.js +58 -0
- package/dist/cjs/product/helpers/product.js +6 -30
- package/dist/cjs/product/index.js +73 -0
- package/dist/cjs/product/next.js +10 -10
- package/dist/cjs/product/setting/ProductProperties.js +2 -2
- package/dist/cjs/product/setting/product/configs/presets.js +0 -11
- package/dist/cjs/product/setting/product-button/configs/settings.js +78 -180
- package/dist/cjs/product/setting/product-button/configs/uiV2.js +123 -153
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +7 -6
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +8 -7
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +1 -1
- package/dist/cjs/product/setting/product-image-v2/configs/uiV2.js +157 -86
- package/dist/cjs/product/setting/product-list/configs/presets.js +4 -2
- package/dist/cjs/product/setting/product-list/configs/uiV1.js +1 -1
- package/dist/{esm/product/setting/product-properties/configs/settings.js → cjs/product/setting/product-properties/configs/settingsV2.js} +57 -25
- package/dist/cjs/product/setting/product-properties/configs/uiV2.js +367 -180
- package/dist/cjs/product/setting/product-quantity/configs/settings.js +201 -156
- package/dist/cjs/product/setting/product-quantity/configs/uiV2.js +417 -24
- package/dist/cjs/product/setting/product-variant/configs/uiV2.js +2 -3
- package/dist/cjs/select/setting/Select.js +65 -0
- package/dist/cjs/setting.js +109 -196
- package/dist/cjs/shop-pay-installment/components/ShopPayInstallments.js +3 -9
- package/dist/cjs/shop-pay-installment/components/common/const.js +10 -0
- package/dist/cjs/shop-pay-installment/settings/ShopPayInstallments.js +3 -3
- package/dist/cjs/sticky/components/Sticky.js +6 -6
- package/dist/cjs/sticky/components/Sticky.liquid.js +1 -5
- package/dist/cjs/stock-counter/components/StockCounter.liquid.js +4 -4
- package/dist/cjs/stock-counter/index.js +12 -0
- package/dist/cjs/tab/components/TabItem.js +19 -9
- package/dist/cjs/tab/components/TabItem.liquid.js +20 -8
- package/dist/cjs/tab/components/Tabs.js +137 -116
- package/dist/cjs/tab/components/Tabs.liquid.js +153 -104
- package/dist/cjs/tab/components/{common.js → common/common.js} +49 -34
- package/dist/cjs/tab/components/common/getAttr.js +15 -0
- package/dist/cjs/tab/components/common/getClasses.js +108 -0
- package/dist/cjs/tab/components/common/getStyle.js +92 -0
- package/dist/cjs/tab/components/hooks/useTab.js +35 -0
- package/dist/cjs/tab/index.js +16 -0
- package/dist/cjs/text/components/common/getClasses.js +2 -1
- package/dist/cjs/text/index.js +12 -8
- package/dist/cjs/text/utils/dynamic-source.js +1 -0
- package/dist/cjs/third-party/components/Wiser/WiserSampleContent.js +3 -3
- package/dist/cjs/third-party/components/Wiser.liquid.js +2 -2
- package/dist/cjs/third-party/setting/Wiser.js +3 -7
- package/dist/cjs/third-party/types/index.js +8 -0
- package/dist/cjs/third-party-instant/components/InstantThirdPartyPreview.js +53 -55
- package/dist/cjs/third-party-instant/components/Judgeme/JudgemeSampleContent.js +7 -9
- package/dist/cjs/third-party-instant/components/Judgeme/WithoutProduct.js +39 -41
- package/dist/cjs/third-party-instant/components/Klaviyo/KlaviyoSampleContent.js +7 -9
- package/dist/cjs/third-party-instant/components/LooxReviews/LooxReviewsSampleContent.js +7 -9
- package/dist/cjs/third-party-instant/components/LooxReviews/SingleProduct.js +13 -15
- package/dist/cjs/third-party-instant/components/LooxReviews/WithoutProduct.js +19 -21
- package/dist/cjs/third-party-instant/components/YotpoLoyalty/YotpoLoyaltySampleContent.js +7 -9
- package/dist/cjs/third-party-instant/index.js +27 -0
- package/dist/cjs/third-party-slot/common/classes.js +22 -0
- package/dist/cjs/third-party-slot/common/index.js +57 -0
- package/dist/cjs/third-party-slot/common/styles.js +9 -0
- package/dist/cjs/third-party-slot/components/ThirdPartySlot.js +29 -31
- package/dist/cjs/third-party-slot/components/ThirdPartySlot.liquid.js +24 -50
- package/dist/cjs/third-party-slot/setting/index.js +1 -1
- package/dist/cjs/video/components/LiteYouTubeEmbed.js +39 -41
- package/dist/esm/accordion/components/AccordionItem.liquid.js +2 -2
- package/dist/esm/accordion/hooks/useAccordion.js +8 -1
- package/dist/esm/accordion/index.js +15 -0
- package/dist/esm/accordion/setting/configs/settings.js +5 -2
- package/dist/esm/article/components/ArticleAuthor.js +3 -2
- package/dist/esm/article/components/ArticleList.liquid.js +6 -6
- package/dist/esm/article/components/ArticlePagination.js +1 -1
- package/dist/esm/article/components/ArticleReadMore.js +1 -1
- package/dist/esm/article/index.js +37 -0
- package/dist/esm/article/next.js +31 -41
- package/dist/esm/article/setting/ArticleExcerpt.js +4 -4
- package/dist/esm/article/setting/ArticleList.js +48 -15
- package/dist/esm/article/setting/configs/ArticleAuthor/presets.js +28 -1
- package/dist/esm/article/setting/configs/ArticleAuthor/uiV2.js +3 -12
- package/dist/esm/article/setting/configs/ArticleCategory/presets.js +19 -1
- package/dist/esm/article/setting/configs/ArticleCategory/uiV2.js +8 -0
- package/dist/esm/article/setting/configs/ArticleDate/presets.js +19 -1
- package/dist/esm/article/setting/configs/ArticleDate/uiV2.js +8 -0
- package/dist/esm/article/setting/configs/ArticleImage/settings.js +41 -7
- package/dist/esm/article/setting/configs/ArticleTag/settings.js +1 -4
- package/dist/esm/article/setting/configs/ArticleTitle/uiV2.js +8 -16
- package/dist/esm/banner/components/HeroBanner.liquid.js +2 -2
- package/dist/esm/banner/components/HeroBannerItem.js +6 -6
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +8 -146
- package/dist/esm/banner/components/hooks/useHeroBanner.js +1 -1
- package/dist/esm/banner/index.js +16 -0
- package/dist/esm/banner/setting/HeroBanner.js +2 -3
- package/dist/esm/banner/setting/setting.js +25 -1180
- package/dist/esm/banner/setting/uiV2.js +77 -11
- package/dist/esm/breadcrumb/index.js +11 -0
- package/dist/esm/builder.js +212 -211
- package/dist/esm/button/components/Button.js +2 -2
- package/dist/esm/button/components/common/classes.js +1 -1
- package/dist/esm/button/components/common/data.js +3 -2
- package/dist/esm/button/components/common/styles.js +34 -34
- package/dist/esm/button/index.js +12 -0
- package/dist/esm/carousel/components/Arrow.liquid.js +1 -1
- package/dist/esm/carousel/components/Carousel.js +31 -12
- package/dist/esm/carousel/components/common/carousel.js +1 -1
- package/dist/esm/carousel/index.js +16 -0
- package/dist/esm/cart/components/CartList.js +1 -1
- package/dist/esm/cart/index.js +43 -0
- package/dist/esm/code/components/CSSCode.js +0 -1
- package/dist/esm/code/index.js +12 -0
- package/dist/esm/collection/components/collection-banner/common/classes.js +31 -0
- package/dist/esm/collection/components/collection-banner/common/index.js +16 -0
- package/dist/esm/collection/components/collection-banner/common/styles.js +42 -0
- package/dist/esm/collection/components/collection-banner/components/CollectionBanner.js +102 -0
- package/dist/esm/collection/components/collection-banner/components/CollectionBanner.liquid.js +90 -0
- package/dist/esm/collection/components/collection-description/common/classes.js +18 -0
- package/dist/esm/collection/components/collection-description/common/constant.js +6 -0
- package/dist/esm/collection/components/collection-description/common/index.js +32 -0
- package/dist/esm/collection/components/collection-description/common/styles.js +80 -0
- package/dist/esm/collection/components/collection-description/components/CollectionDescription.js +99 -0
- package/dist/esm/collection/components/collection-description/components/CollectionDescription.liquid.js +95 -0
- package/dist/esm/collection/components/collection-description/hook/useDescription.js +87 -0
- package/dist/esm/collection/components/collection-paginator/common/classes.js +21 -0
- package/dist/esm/collection/components/collection-paginator/common/index.js +193 -0
- package/dist/esm/collection/components/collection-paginator/common/styles.js +58 -0
- package/dist/esm/collection/components/collection-paginator/components/CollectionPaginator.js +38 -0
- package/dist/esm/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +58 -0
- package/dist/esm/collection/components/{CollectionTitle.js → collection-title/components/CollectionTitle.js} +3 -4
- package/dist/esm/collection/components/{CollectionTitle.liquid.js → collection-title/components/CollectionTitle.liquid.js} +1 -1
- package/dist/esm/collection/components/collection-toolbar/common/classes.js +27 -0
- package/dist/esm/collection/components/collection-toolbar/common/constant.js +37 -0
- package/dist/esm/collection/components/collection-toolbar/common/index.js +25 -0
- package/dist/esm/collection/components/collection-toolbar/common/style.js +46 -0
- package/dist/esm/collection/components/collection-toolbar/components/CollectionToolbar.js +95 -0
- package/dist/esm/collection/components/collection-toolbar/components/CollectionToolbar.liquid.js +97 -0
- package/dist/esm/collection/index.js +24 -0
- package/dist/esm/collection/next.js +5 -5
- package/dist/esm/collection/setting/collection-paginator/configs/settings.js +5 -0
- package/dist/esm/countdown-timer/components/Countdown.js +1 -1
- package/dist/esm/countdown-timer/index.js +12 -0
- package/dist/esm/coupon/common/classes.js +7 -0
- package/dist/esm/coupon/common/index.js +14 -0
- package/dist/esm/coupon/common/styles.js +41 -0
- package/dist/esm/coupon/components/Coupon.js +42 -84
- package/dist/esm/coupon/components/Coupon.liquid.js +28 -39
- package/dist/esm/coupon/hooks/useCoupon.js +28 -0
- package/dist/esm/coupon/index.js +12 -0
- package/dist/esm/coupon/setting/Coupon.js +8 -1191
- package/dist/esm/coupon/setting/config/settings.js +829 -0
- package/dist/esm/coupon/setting/config/uiV1.js +365 -0
- package/dist/esm/coupon/setting/config/uiV2.js +350 -0
- package/dist/esm/dialog/index.js +12 -0
- package/dist/esm/estimate-delivery/index.js +12 -0
- package/dist/esm/form/components/form-email/FormEmail.liquid.js +1 -1
- package/dist/esm/form/components/submit-button/SubmitButton.js +9 -11
- package/dist/esm/form/components/textinput/common/composeStyles.js +0 -2
- package/dist/esm/form/index.js +28 -0
- package/dist/esm/form/setting/contact/Contact.js +2 -0
- package/dist/esm/form/setting/form-checkbox/FormCheckbox.js +1 -1
- package/dist/esm/form/setting/form-checkbox/configs/settings.js +1 -1
- package/dist/esm/form/setting/form-dropdown/FormDropdown.js +2 -2
- package/dist/esm/form/setting/form-dropdown/configs/settings.js +1 -1
- package/dist/esm/form/setting/form-email/configs/FormEmail.js +2 -2
- package/dist/esm/form/setting/form-email/configs/settings.js +1 -1
- package/dist/esm/form/setting/form-textarea/Textarea.js +2 -2
- package/dist/esm/form/setting/form-textarea/configs/settings.js +1 -1
- package/dist/esm/form/setting/newsletter/Newsletter.js +1 -1
- package/dist/esm/form/setting/newsletter/configs/settings.js +1 -1
- package/dist/esm/form/setting/submit-button/SubmitButton.js +1 -1
- package/dist/esm/form/setting/submit-button/configs/settings.js +1 -1
- package/dist/esm/form/setting/text-field/TextField.js +2 -2
- package/dist/esm/form/setting/text-field/configs/settings.js +1 -1
- package/dist/esm/form/setting/text-input/TextInput.js +2 -2
- package/dist/esm/form/setting/text-input/configs/settings.js +1 -1
- package/dist/esm/grid/index.js +20 -0
- package/dist/esm/grid/row/Row.js +5 -3
- package/dist/esm/grid/row/Row.liquid.js +1 -4
- package/dist/esm/grid/row/commons/getAttr.js +2 -5
- package/dist/esm/header/components/kind/basic/index.js +3 -3
- package/dist/esm/header/components/kind/modern/index.js +4 -4
- package/dist/esm/header/index.js +20 -0
- package/dist/esm/heading/index.js +12 -0
- package/dist/esm/helpers.js +24 -6
- package/dist/esm/icon/index.js +12 -0
- package/dist/esm/icon/setting/Icon.js +2 -2
- package/dist/esm/icon-list/index.js +14 -0
- package/dist/esm/icon-list-hoz/index.js +14 -0
- package/dist/esm/icon-list-v2/common/classes.js +24 -0
- package/dist/esm/icon-list-v2/common/index.js +29 -0
- package/dist/esm/icon-list-v2/common/styles.js +89 -0
- package/dist/esm/icon-list-v2/components/IconList.js +112 -132
- package/dist/esm/icon-list-v2/components/IconList.liquid.js +101 -94
- package/dist/esm/icon-list-v2/index.js +12 -0
- package/dist/esm/image/components/common/attributes.js +4 -2
- package/dist/esm/image/components/common/helpers.js +4 -1
- package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +3 -2
- package/dist/esm/image/helpers/getSrcSet.js +1 -1
- package/dist/esm/image/index.js +14 -0
- package/dist/esm/image/setting/configs/presets.js +3 -0
- package/dist/esm/image/setting/configs/settings.js +69 -11
- package/dist/esm/image/setting/configs/uiV2.js +127 -1
- package/dist/esm/image-comparison/components/CompareImage.js +230 -562
- package/dist/esm/image-comparison/components/CompareImage.liquid.js +250 -323
- package/dist/esm/image-comparison/components/ImageComparison.js +16 -34
- package/dist/esm/image-comparison/components/ImageComparison.liquid.js +16 -10
- package/dist/esm/image-comparison/components/Label.js +27 -0
- package/dist/esm/image-comparison/components/Label.liquid.js +19 -45
- package/dist/esm/image-comparison/components/SlideHandle.js +53 -0
- package/dist/esm/image-comparison/components/SlideHandle.liquid.js +33 -0
- package/dist/esm/image-comparison/components/common/attributes.js +61 -0
- package/dist/esm/image-comparison/components/common/classes.js +34 -0
- package/dist/esm/image-comparison/components/common/constant.js +8 -0
- package/dist/esm/image-comparison/components/common/data.js +59 -0
- package/dist/esm/image-comparison/components/common/helpers.js +130 -6
- package/dist/esm/image-comparison/components/common/styles.js +167 -0
- package/dist/esm/image-comparison/components/helpers/getReactStyles.js +45 -0
- package/dist/esm/image-comparison/components/hooks/useCompareImage.js +190 -0
- package/dist/esm/image-comparison/index.js +12 -0
- package/dist/esm/image-comparison/setting/configs/settings.js +94 -40
- package/dist/esm/image-comparison/setting/configs/uiV2.js +97 -30
- package/dist/esm/image-detection/index.js +10 -0
- package/dist/esm/image-detection/setting/ImageDetection.js +1 -1
- package/dist/esm/index.js +167 -182
- package/dist/esm/index.liquid.js +58 -65
- package/dist/esm/input/index.js +10 -0
- package/dist/esm/line/index.js +10 -0
- package/dist/esm/link/index.js +11 -0
- package/dist/esm/marquee/common/classes.js +13 -0
- package/dist/esm/marquee/common/index.js +21 -0
- package/dist/esm/marquee/common/styles.js +214 -0
- package/dist/esm/marquee/components/Marquee.js +126 -129
- package/dist/esm/marquee/components/Marquee.liquid.js +76 -192
- package/dist/esm/marquee/components/MarqueeBase.js +16 -157
- package/dist/esm/marquee/components/MarqueeBase.liquid.js +37 -79
- package/dist/esm/marquee/components/MarqueeItem.js +30 -74
- package/dist/esm/marquee/components/MarqueeItem.liquid.js +19 -27
- package/dist/esm/marquee/hooks/useMarquee.js +45 -0
- package/dist/esm/marquee/hooks/useMarqueeBase.js +162 -0
- package/dist/esm/marquee/hooks/useMarqueeItem.js +59 -0
- package/dist/esm/marquee/hooks/useMarqueeScrollToItem.js +5 -2
- package/dist/esm/marquee/hooks/useMarqueeStyles.js +6 -128
- package/dist/esm/marquee/index.js +14 -0
- package/dist/esm/marquee/setting/configs/uiV2.js +3 -1
- package/dist/esm/menu/index.js +12 -0
- package/dist/esm/modal/index.js +12 -0
- package/dist/esm/next.js +49 -33
- package/dist/esm/pagination/index.js +10 -0
- package/dist/esm/post-purchase/advanced-list/components/common/getClasses.js +1 -1
- package/dist/esm/post-purchase/advanced-list/index.js +13 -0
- package/dist/esm/post-purchase/advanced-list/next.js +5 -1
- package/dist/esm/post-purchase/advanced-list/setting/template.js +1 -4
- package/dist/esm/post-purchase/button/common/getStyles.js +2 -2
- package/dist/esm/post-purchase/button/index.js +12 -0
- package/dist/esm/post-purchase/button/next.js +4 -1
- package/dist/esm/post-purchase/button/setting/configs/settings.js +1 -0
- package/dist/esm/post-purchase/callout-banner/components/CalloutBox.js +2 -2
- package/dist/esm/post-purchase/callout-banner/index.js +17 -0
- package/dist/esm/post-purchase/callout-banner/next.js +5 -1
- package/dist/esm/post-purchase/countdown-timer/components/TextCountdown.js +6 -1
- package/dist/esm/post-purchase/countdown-timer/hooks/useCountdownTimer.js +2 -3
- package/dist/esm/post-purchase/countdown-timer/index.js +11 -0
- package/dist/esm/post-purchase/countdown-timer/next.js +4 -1
- package/dist/esm/post-purchase/image/index.js +12 -0
- package/dist/esm/post-purchase/image/next.js +4 -1
- package/dist/esm/post-purchase/image/setting/setting-v2.js +2 -2
- package/dist/esm/post-purchase/line/components/PostPurchaseLine.js +1 -8
- package/dist/esm/post-purchase/line/components/common/getStyle.js +1 -1
- package/dist/esm/post-purchase/line/index.js +11 -0
- package/dist/esm/post-purchase/line/next.js +4 -1
- package/dist/esm/post-purchase/line/setting/configs/settings.js +1 -3
- package/dist/esm/post-purchase/line/types/index.js +9 -0
- package/dist/esm/post-purchase/link/index.js +12 -0
- package/dist/esm/post-purchase/link/next.js +4 -1
- package/dist/esm/post-purchase/product/components/ProductDiscountTag.js +5 -2
- package/dist/esm/post-purchase/product/components/ProductOffer.js +4 -4
- package/dist/esm/post-purchase/product/components/priceBreakdown/MoneyLine.js +3 -1
- package/dist/esm/post-purchase/product/components/product-image/FeatureImage.js +3 -4
- package/dist/esm/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +1 -1
- package/dist/esm/post-purchase/product/components/product-image/ItemGridPostPurchase.js +1 -1
- package/dist/esm/post-purchase/product/helpers/product-price-breakdown/getStyles.js +8 -1
- package/dist/esm/post-purchase/product/helpers/product-quantity/getStyles.js +2 -7
- package/dist/esm/post-purchase/product/hooks/product-quantity/useHandleQuantity.js +3 -2
- package/dist/esm/post-purchase/product/index.js +35 -0
- package/dist/esm/post-purchase/product/next.js +13 -1
- package/dist/esm/post-purchase/product/settings/product-discount-tag/settingV2.js +97 -0
- package/dist/esm/post-purchase/product/settings/product-discount-tag/uiV2.js +44 -0
- package/dist/esm/post-purchase/product/settings/product-image/ProductImages.js +5 -15
- package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +21 -9
- package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +52 -46
- package/dist/esm/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-variants/settings/settingsV2.js +2 -0
- package/dist/esm/post-purchase/text/index.js +7 -1
- package/dist/esm/post-purchase/text/next.js +5 -1
- package/dist/esm/product/components/DynamicCheckout/common/styles.js +2 -2
- package/dist/esm/product/components/FileUpload/components/common/index.js +0 -140
- package/dist/esm/product/components/FileUpload/components/config/setting.js +2 -2
- package/dist/esm/product/components/ProductBadge/utils/stylesV2.js +9 -2
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountItem.js +4 -2
- package/dist/esm/product/components/ProductButton/ProductButton.js +43 -0
- package/dist/esm/product/components/ProductButton/ProductButton.liquid.js +62 -0
- package/dist/esm/product/components/ProductButton/common/classes.js +33 -0
- package/dist/esm/product/components/ProductButton/common/constants.js +32 -0
- package/dist/esm/product/components/ProductButton/common/data.js +54 -0
- package/dist/esm/product/components/ProductButton/common/helpers.js +72 -0
- package/dist/esm/product/components/ProductButton/common/styles.js +149 -0
- package/dist/esm/product/components/ProductButton/common/types.js +7 -0
- package/dist/esm/product/components/ProductButton/components/AddToCartButton.js +38 -0
- package/dist/esm/product/components/ProductButton/components/AddToCartButton.liquid.js +38 -0
- package/dist/esm/product/components/ProductButton/components/BlankSpace.js +10 -0
- package/dist/esm/product/components/ProductButton/components/BlankSpace.liquid.js +8 -0
- package/dist/esm/product/components/ProductButton/components/CartMessage.js +18 -0
- package/dist/esm/product/components/ProductButton/components/PriceComponent.js +19 -0
- package/dist/esm/product/components/ProductButton/components/PriceComponent.liquid.js +18 -0
- package/dist/esm/product/components/ProductButton/components/PriceLayout.js +24 -0
- package/dist/esm/product/components/ProductButton/components/PriceLayout.liquid.js +19 -0
- package/dist/esm/product/components/ProductButton/components/ProductButtonPrice.js +38 -0
- package/dist/esm/product/components/ProductButton/components/ProductButtonPrice.liquid.js +36 -0
- package/dist/esm/product/components/ProductButton/components/Separator.js +14 -0
- package/dist/esm/product/components/ProductButton/components/Separator.liquid.js +13 -0
- package/dist/esm/product/components/ProductButton/components/SoldOutButton.js +34 -0
- package/dist/esm/product/components/ProductButton/components/SoldOutButton.liquid.js +40 -0
- package/dist/esm/product/components/ProductButton/helpers/getButtonDynamicSourceLocales.js +34 -0
- package/dist/esm/product/components/ProductButton/hooks/useAddToCart.js +97 -0
- package/dist/esm/product/components/ProductButton/hooks/useCartMessage.js +33 -0
- package/dist/esm/product/components/ProductButton/hooks/useCartOperations.js +71 -0
- package/dist/esm/product/components/ProductButton/hooks/useDispatchAfterSubmitEvent.js +25 -0
- package/dist/esm/product/components/ProductDescription/index.js +41 -39
- package/dist/esm/product/components/ProductImages/ProductImagesLightBox.js +1 -1
- package/dist/esm/product/components/ProductImages.js +6 -6
- package/dist/esm/product/components/ProductImagesV2/common/getAttr.js +19 -2
- package/dist/esm/product/components/ProductImagesV2/common/getClasses.js +1 -1
- package/dist/esm/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +105 -0
- package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/child}/ProductGalleryGrid.js +7 -99
- package/dist/esm/product/components/ProductImagesV2/{jsx/layouts → components/feature-gallery}/FeatureImageWithGallery.js +16 -54
- package/dist/esm/product/components/ProductImagesV2/{liquid/ProductFeaturedImageCarousel.liquid.js → components/feature-gallery/FeatureImageWithGallery.liquid.js} +15 -15
- package/dist/esm/product/components/ProductImagesV2/{jsx/layouts → components/feature-only}/OnlyFeatureImage.js +5 -3
- package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +83 -0
- package/dist/esm/product/components/ProductImagesV2/{liquid/ProductGalleryCarousel.liquid.js → components/gallery-carousel/GalleryCarousel.liquid.js} +13 -13
- package/dist/esm/product/components/ProductImagesV2/{jsx/layouts → components/gallery-grid}/GalleryGrid.js +5 -3
- package/dist/esm/product/components/ProductImagesV2/{liquid/ProductGalleryGrid.liquid.js → components/gallery-grid/GalleryGrid.liquid.js} +10 -10
- package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/lightbox}/ProductImagesLightBox.js +3 -3
- package/dist/esm/product/components/ProductImagesV2/hooks/useFeatureImageWithGallery.js +53 -0
- package/dist/esm/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +133 -0
- package/dist/esm/product/components/ProductImagesV2/{jsx/components/ProductFeaturedImageCarousel.js → hooks/useProductFeaturedImageCarousel.js} +56 -137
- package/dist/esm/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +85 -0
- package/dist/esm/product/components/ProductImagesV2/{jsx/ProductImages.js → index.js} +8 -8
- package/dist/esm/product/components/ProductImagesV2/{liquid/ProductImages.liquid.js → index.liquid.js} +13 -13
- package/dist/esm/product/components/ProductList/ProductList.js +380 -0
- package/dist/esm/product/components/ProductList/ProductList.liquid.js +238 -0
- package/dist/esm/product/components/ProductList/ProductListCarouselLayout.js +44 -0
- package/dist/esm/product/components/ProductList/ProductListCarouselLayout.liquid.js +59 -0
- package/dist/esm/product/components/ProductList/ProductListGridLayout.js +34 -0
- package/dist/esm/product/components/ProductList/ProductListGridLayout.liquid.js +58 -0
- package/dist/esm/product/components/ProductList/ProductListItem.liquid.js +22 -0
- package/dist/esm/product/components/ProductList/common/const.js +4 -0
- package/dist/esm/product/components/ProductList/common/getAttr.js +24 -0
- package/dist/esm/product/components/ProductList/common/getClass.js +34 -0
- package/dist/esm/product/components/ProductList/common/getStyle.js +45 -0
- package/dist/esm/product/components/ProductList/common/index.js +103 -0
- package/dist/esm/product/components/ProductPrice/hooks/useGpPrice.js +1 -1
- package/dist/esm/product/components/{ProductProperties.js → ProductProperties/ProductProperties.js} +53 -46
- package/dist/esm/product/components/ProductProperties/ProductProperties.liquid.js +117 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js +59 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.liquid.js +69 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceAttrs.js +8 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceClasses.js +17 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceInlineCss.js +15 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/common/getProductPropertiesChoiceStyles.js +24 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.js +61 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyInput/ProductPropertyInput.liquid.js +55 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyInput/common/getAttrs.js +8 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyInput/common/getClasses.js +15 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyInput/common/getContents.js +17 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyInput/common/getStyles.js +22 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertySelect/ProductPropertySelect.js +34 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertySelect/ProductPropertySelect.liquid.js +54 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertySelect/common/getAttrs.js +10 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertySelect/common/getClasses.js +14 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertySelect/common/getStyles.js +27 -0
- package/dist/esm/product/components/ProductProperties/common/getAttrs.js +30 -0
- package/dist/esm/product/components/ProductProperties/common/getClasses.js +31 -0
- package/dist/esm/product/components/ProductProperties/common/getContents.js +53 -0
- package/dist/esm/product/components/ProductProperties/common/getStyles.js +38 -0
- package/dist/esm/product/components/ProductQuantity/common/common.js +28 -0
- package/dist/esm/product/components/ProductQuantity/common/getAttrs.js +32 -0
- package/dist/esm/product/components/ProductQuantity/common/getClasses.js +47 -0
- package/dist/esm/product/components/ProductQuantity/common/getStyles.js +122 -0
- package/dist/esm/product/components/ProductQuantity/index.liquid.js +173 -0
- package/dist/esm/product/components/ProductQuantity.js +1 -1
- package/dist/esm/product/components/ProductQuickView/ProductQuickView.js +7 -7
- package/dist/esm/product/components/{Sku.js → ProductSKU/Sku.js} +3 -3
- package/dist/esm/product/components/{Sku.liquid.js → ProductSKU/Sku.liquid.js} +3 -3
- package/dist/esm/product/components/{ProductTag.js → ProductTag/ProductTag.js} +10 -11
- package/dist/esm/product/components/{ProductTag.liquid.js → ProductTag/ProductTag.liquid.js} +2 -2
- package/dist/esm/product/components/ProductVariants/common/base/attrs.js +27 -0
- package/dist/esm/product/components/ProductVariants/common/base/classes.js +47 -0
- package/dist/esm/product/components/ProductVariants/common/base/styles.js +164 -0
- package/dist/esm/product/components/ProductVariants/common/dropdown/attrs.js +20 -0
- package/dist/esm/product/components/ProductVariants/common/dropdown/classes.js +27 -0
- package/dist/esm/product/components/ProductVariants/common/dropdown/styles.js +40 -0
- package/dist/esm/product/components/ProductVariants/common/main/classes.js +24 -0
- package/dist/esm/product/components/ProductVariants/common/main/getAttr.js +8 -0
- package/dist/esm/product/components/ProductVariants/common/main/getData.js +69 -0
- package/dist/esm/product/components/ProductVariants/common/main/styles.js +26 -0
- package/dist/esm/product/components/ProductVariants/common/variants/attrs.js +16 -0
- package/dist/esm/product/components/ProductVariants/common/variants/classes.js +38 -0
- package/dist/esm/product/components/ProductVariants/common/variants/styles.js +9 -0
- package/dist/esm/product/components/ProductVariants/components/base/base.js +164 -0
- package/dist/esm/product/components/ProductVariants/components/base/base.liquid.js +97 -0
- package/dist/esm/product/components/ProductVariants/{variants/Color.js → components/color/color.js} +1 -1
- package/dist/esm/product/components/ProductVariants/{variants/Color.liquid.js → components/color/color.liquid.js} +3 -3
- package/dist/esm/product/components/ProductVariants/{variants/VariantGroup.js → components/dropdown-group/DropdownGroup.js} +4 -4
- package/dist/esm/product/components/ProductVariants/components/dropdown-group/DropdownGroup.liquid.js +14 -0
- package/dist/esm/product/components/ProductVariants/components/dropdown-option/render-liquid/index.js +60 -0
- package/dist/esm/product/components/ProductVariants/components/dropdown-swatches/Dropdown.js +82 -0
- package/dist/esm/product/components/ProductVariants/components/dropdown-swatches/Dropdown.liquid.js +47 -0
- package/dist/esm/product/components/ProductVariants/components/dropdown-swatches/hooks/useDropdownSwatches.js +53 -0
- package/dist/esm/product/components/ProductVariants/{variants → components/image}/Image.js +1 -1
- package/dist/esm/product/components/ProductVariants/{variants → components/image}/Image.liquid.js +2 -2
- package/dist/esm/product/components/ProductVariants/{variants → components/image-shopify}/ImageShopify.js +1 -1
- package/dist/esm/product/components/ProductVariants/{variants → components/image-shopify}/ImageShopify.liquid.js +2 -2
- package/dist/esm/product/components/ProductVariants/{variants → components/variants}/index.js +29 -22
- package/dist/esm/product/components/ProductVariants/{variants → components/variants}/index.liquid.js +46 -41
- package/dist/esm/product/components/ProductVariants/hooks/useGpVariants.js +176 -0
- package/dist/esm/product/components/ProductVariants/index.js +105 -339
- package/dist/esm/product/components/ProductVariants/index.liquid.js +163 -229
- package/dist/esm/product/components/{Vendor.js → ProductVendor/Vendor.js} +2 -2
- package/dist/esm/product/components/{Vendor.liquid.js → ProductVendor/Vendor.liquid.js} +2 -2
- package/dist/esm/product/components/ProductViewMore/ProductViewMore.js +26 -0
- package/dist/esm/product/components/{ProductViewMore.liquid.js → ProductViewMore/ProductViewMore.liquid.js} +2 -2
- package/dist/esm/product/components/ProductWrap/Product.js +66 -0
- package/dist/esm/product/components/ProductWrap/Product.liquid.js +143 -0
- package/dist/esm/product/components/ProductWrap/common/const.js +8 -0
- package/dist/esm/product/components/ProductWrap/common/index.js +31 -0
- package/dist/esm/product/components/ProductWrap/hook/useProductSetting.js +56 -0
- package/dist/esm/product/helpers/product.js +6 -28
- package/dist/esm/product/index.js +68 -0
- package/dist/esm/product/next.js +10 -10
- package/dist/esm/product/setting/ProductProperties.js +2 -2
- package/dist/esm/product/setting/product/configs/presets.js +0 -11
- package/dist/esm/product/setting/product-button/configs/settings.js +78 -180
- package/dist/esm/product/setting/product-button/configs/uiV2.js +123 -153
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +7 -6
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +8 -7
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +1 -1
- package/dist/esm/product/setting/product-image-v2/configs/uiV2.js +157 -86
- package/dist/esm/product/setting/product-list/configs/presets.js +4 -2
- package/dist/esm/product/setting/product-list/configs/uiV1.js +1 -1
- package/dist/{cjs/product/setting/product-properties/configs/settings.js → esm/product/setting/product-properties/configs/settingsV2.js} +55 -27
- package/dist/esm/product/setting/product-properties/configs/uiV2.js +367 -180
- package/dist/esm/product/setting/product-quantity/configs/settings.js +201 -156
- package/dist/esm/product/setting/product-quantity/configs/uiV2.js +417 -24
- package/dist/esm/product/setting/product-variant/configs/uiV2.js +2 -3
- package/dist/esm/select/setting/Select.js +61 -0
- package/dist/esm/setting.js +86 -173
- package/dist/esm/shop-pay-installment/components/ShopPayInstallments.js +4 -9
- package/dist/esm/shop-pay-installment/components/common/const.js +8 -0
- package/dist/esm/shop-pay-installment/settings/ShopPayInstallments.js +3 -3
- package/dist/esm/sticky/components/Sticky.js +6 -6
- package/dist/esm/sticky/components/Sticky.liquid.js +1 -5
- package/dist/esm/stock-counter/components/StockCounter.liquid.js +4 -4
- package/dist/esm/stock-counter/index.js +10 -0
- package/dist/esm/tab/components/TabItem.js +20 -10
- package/dist/esm/tab/components/TabItem.liquid.js +21 -9
- package/dist/esm/tab/components/Tabs.js +139 -118
- package/dist/esm/tab/components/Tabs.liquid.js +154 -105
- package/dist/esm/tab/components/{common.js → common/common.js} +48 -35
- package/dist/esm/tab/components/common/getAttr.js +12 -0
- package/dist/esm/tab/components/common/getClasses.js +97 -0
- package/dist/esm/tab/components/common/getStyle.js +85 -0
- package/dist/esm/tab/components/hooks/useTab.js +33 -0
- package/dist/esm/tab/index.js +14 -0
- package/dist/esm/text/components/common/getClasses.js +2 -1
- package/dist/esm/text/index.js +10 -3
- package/dist/esm/text/utils/dynamic-source.js +1 -0
- package/dist/esm/third-party/components/Wiser/WiserSampleContent.js +1 -1
- package/dist/esm/third-party/components/Wiser.liquid.js +1 -1
- package/dist/esm/third-party/setting/Wiser.js +2 -5
- package/dist/esm/third-party/types/index.js +6 -0
- package/dist/esm/third-party-instant/components/InstantThirdPartyPreview.js +54 -56
- package/dist/esm/third-party-instant/components/Judgeme/JudgemeSampleContent.js +8 -10
- package/dist/esm/third-party-instant/components/Judgeme/WithoutProduct.js +40 -42
- package/dist/esm/third-party-instant/components/Klaviyo/KlaviyoSampleContent.js +8 -10
- package/dist/esm/third-party-instant/components/LooxReviews/LooxReviewsSampleContent.js +8 -10
- package/dist/esm/third-party-instant/components/LooxReviews/SingleProduct.js +14 -16
- package/dist/esm/third-party-instant/components/LooxReviews/WithoutProduct.js +20 -22
- package/dist/esm/third-party-instant/components/YotpoLoyalty/YotpoLoyaltySampleContent.js +8 -10
- package/dist/esm/third-party-instant/index.js +22 -0
- package/dist/esm/third-party-slot/common/classes.js +17 -0
- package/dist/esm/third-party-slot/common/index.js +54 -0
- package/dist/esm/third-party-slot/common/styles.js +7 -0
- package/dist/esm/third-party-slot/components/ThirdPartySlot.js +30 -32
- package/dist/esm/third-party-slot/components/ThirdPartySlot.liquid.js +23 -49
- package/dist/esm/third-party-slot/setting/index.js +1 -1
- package/dist/esm/video/components/LiteYouTubeEmbed.js +40 -42
- package/dist/types/index.d.ts +4762 -5491
- package/package.json +4 -4
- package/dist/cjs/accordion/setting/index.js +0 -13
- package/dist/cjs/article/components/ArticleAuthor.liquid.js +0 -27
- package/dist/cjs/article/components/ArticleCategory.liquid.js +0 -27
- package/dist/cjs/article/components/ArticleContent.liquid.js +0 -42
- package/dist/cjs/article/components/ArticleDate.liquid.js +0 -35
- package/dist/cjs/article/components/ArticleExcerpt.liquid.js +0 -26
- package/dist/cjs/article/components/ArticleImage.liquid.js +0 -67
- package/dist/cjs/article/components/ArticlePagination.liquid.js +0 -17
- package/dist/cjs/article/components/ArticleReadMore.liquid.js +0 -58
- package/dist/cjs/article/components/ArticleTag.liquid.js +0 -27
- package/dist/cjs/article/components/ArticleTitle.liquid.js +0 -46
- package/dist/cjs/article/setting/index.js +0 -31
- package/dist/cjs/banner/setting/index.js +0 -11
- package/dist/cjs/breadcrumb/setting/index.js +0 -11
- package/dist/cjs/button/setting/index.js +0 -11
- package/dist/cjs/carousel/setting/index.js +0 -13
- package/dist/cjs/cart/setting/index.js +0 -37
- package/dist/cjs/code/setting/index.js +0 -11
- package/dist/cjs/collection/components/CollectionBanner.js +0 -99
- package/dist/cjs/collection/components/CollectionBanner.liquid.js +0 -96
- package/dist/cjs/collection/components/CollectionDescription.js +0 -115
- package/dist/cjs/collection/components/CollectionDescription.liquid.js +0 -114
- package/dist/cjs/collection/components/CollectionPaginator.js +0 -151
- package/dist/cjs/collection/components/CollectionPaginator.liquid.js +0 -72
- package/dist/cjs/collection/components/CollectionToolbar.js +0 -112
- package/dist/cjs/collection/components/CollectionToolbar.liquid.js +0 -108
- package/dist/cjs/collection/setting/index.js +0 -19
- package/dist/cjs/countdown-timer/setting/index.js +0 -11
- package/dist/cjs/coupon/setting/index.js +0 -11
- package/dist/cjs/dialog/setting/index.js +0 -11
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +0 -234
- package/dist/cjs/estimate-delivery/setting/index.js +0 -11
- package/dist/cjs/form/setting/index.js +0 -27
- package/dist/cjs/grid/setting/index.js +0 -17
- package/dist/cjs/header/setting/index.js +0 -11
- package/dist/cjs/heading/setting/index.js +0 -11
- package/dist/cjs/icon/setting/index.js +0 -11
- package/dist/cjs/icon-list/setting/index.js +0 -13
- package/dist/cjs/icon-list-hoz/setting/index.js +0 -13
- package/dist/cjs/icon-list-v2/setting/index.js +0 -11
- package/dist/cjs/image/setting/index.js +0 -11
- package/dist/cjs/image-comparison/constants/commonStyles.js +0 -62
- package/dist/cjs/image-comparison/setting/index.js +0 -11
- package/dist/cjs/image-detection/setting/index.js +0 -11
- package/dist/cjs/input/setting/index.js +0 -11
- package/dist/cjs/line/setting/index.js +0 -11
- package/dist/cjs/link/setting/index.js +0 -11
- package/dist/cjs/marquee/setting/index.js +0 -13
- package/dist/cjs/menu/setting/index.js +0 -11
- package/dist/cjs/modal/setting/index.js +0 -11
- package/dist/cjs/pagination/setting/index.js +0 -11
- package/dist/cjs/post-purchase/advanced-list/setting/index.js +0 -13
- package/dist/cjs/post-purchase/button/setting/index.js +0 -11
- package/dist/cjs/post-purchase/callout-banner/setting/index.js +0 -13
- package/dist/cjs/post-purchase/countdown-timer/settings/index.js +0 -11
- package/dist/cjs/post-purchase/image/setting/index.js +0 -11
- package/dist/cjs/post-purchase/line/setting/index.js +0 -11
- package/dist/cjs/post-purchase/link/setting/index.js +0 -11
- package/dist/cjs/post-purchase/next.js +0 -39
- package/dist/cjs/post-purchase/product/settings/index.js +0 -29
- package/dist/cjs/post-purchase/product/settings/product-image/ProductFeatureImage.js +0 -142
- package/dist/cjs/post-purchase/product/settings/product-image/ProductGalleryImage.js +0 -105
- package/dist/cjs/post-purchase/product/settings/product-image/ProductImageLayoutSetting.js +0 -152
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v1.js +0 -163
- package/dist/cjs/post-purchase/product/settings/product-image/uiV1.js +0 -42
- package/dist/cjs/post-purchase/text/settings/index.js +0 -13
- package/dist/cjs/product/components/DynamicCheckout.js +0 -28
- package/dist/cjs/product/components/Product.js +0 -115
- package/dist/cjs/product/components/Product.liquid.js +0 -135
- package/dist/cjs/product/components/ProductButton.js +0 -552
- package/dist/cjs/product/components/ProductButton.liquid.js +0 -383
- package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +0 -196
- package/dist/cjs/product/components/ProductList.liquid.js +0 -426
- package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice.js +0 -57
- package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice.liquid.js +0 -64
- package/dist/cjs/product/components/ProductProperties/ProductPropertyInput.js +0 -74
- package/dist/cjs/product/components/ProductProperties/ProductPropertyInput.liquid.js +0 -57
- package/dist/cjs/product/components/ProductProperties/ProductPropertySelect.js +0 -42
- package/dist/cjs/product/components/ProductProperties/ProductPropertySelect.liquid.js +0 -57
- package/dist/cjs/product/components/ProductProperties.liquid.js +0 -148
- package/dist/cjs/product/components/ProductQuantity.liquid.js +0 -218
- package/dist/cjs/product/components/ProductVariants/variants/Base.js +0 -293
- package/dist/cjs/product/components/ProductVariants/variants/Base.liquid.js +0 -168
- package/dist/cjs/product/components/ProductVariants/variants/Dropdown.js +0 -159
- package/dist/cjs/product/components/ProductVariants/variants/Dropdown.liquid.js +0 -135
- package/dist/cjs/product/components/ProductVariants/variants/DropdownGroup.liquid.js +0 -57
- package/dist/cjs/product/components/ProductVariants/variants/RadioButtons.js +0 -63
- package/dist/cjs/product/components/ProductVariants/variants/combine/index.js +0 -47
- package/dist/cjs/product/components/ProductViewMore.js +0 -32
- package/dist/cjs/product/setting/index.js +0 -49
- package/dist/cjs/radio/setting/index.js +0 -11
- package/dist/cjs/select/setting/index.js +0 -11
- package/dist/cjs/shop-pay-installment/settings/index.js +0 -11
- package/dist/cjs/sticky/setting/index.js +0 -11
- package/dist/cjs/stock-counter/setting/index.js +0 -11
- package/dist/cjs/tab/setting/index.js +0 -13
- package/dist/cjs/text/setting/index.js +0 -11
- package/dist/cjs/textarea/setting/index.js +0 -11
- package/dist/cjs/third-party-instant/setting/index.js +0 -17
- package/dist/cjs/video/setting/index.js +0 -11
- package/dist/esm/accordion/setting/index.js +0 -9
- package/dist/esm/article/components/ArticleAuthor.liquid.js +0 -23
- package/dist/esm/article/components/ArticleCategory.liquid.js +0 -23
- package/dist/esm/article/components/ArticleContent.liquid.js +0 -38
- package/dist/esm/article/components/ArticleDate.liquid.js +0 -31
- package/dist/esm/article/components/ArticleExcerpt.liquid.js +0 -22
- package/dist/esm/article/components/ArticleImage.liquid.js +0 -63
- package/dist/esm/article/components/ArticlePagination.liquid.js +0 -13
- package/dist/esm/article/components/ArticleReadMore.liquid.js +0 -54
- package/dist/esm/article/components/ArticleTag.liquid.js +0 -23
- package/dist/esm/article/components/ArticleTitle.liquid.js +0 -42
- package/dist/esm/article/setting/index.js +0 -27
- package/dist/esm/banner/setting/index.js +0 -7
- package/dist/esm/breadcrumb/setting/index.js +0 -7
- package/dist/esm/button/setting/index.js +0 -7
- package/dist/esm/carousel/setting/index.js +0 -9
- package/dist/esm/cart/setting/index.js +0 -33
- package/dist/esm/code/setting/index.js +0 -7
- package/dist/esm/collection/components/CollectionBanner.js +0 -95
- package/dist/esm/collection/components/CollectionBanner.liquid.js +0 -92
- package/dist/esm/collection/components/CollectionDescription.js +0 -111
- package/dist/esm/collection/components/CollectionDescription.liquid.js +0 -110
- package/dist/esm/collection/components/CollectionPaginator.js +0 -147
- package/dist/esm/collection/components/CollectionPaginator.liquid.js +0 -68
- package/dist/esm/collection/components/CollectionToolbar.js +0 -107
- package/dist/esm/collection/components/CollectionToolbar.liquid.js +0 -104
- package/dist/esm/collection/setting/index.js +0 -15
- package/dist/esm/countdown-timer/setting/index.js +0 -7
- package/dist/esm/coupon/setting/index.js +0 -7
- package/dist/esm/dialog/setting/index.js +0 -7
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +0 -230
- package/dist/esm/estimate-delivery/setting/index.js +0 -7
- package/dist/esm/form/setting/index.js +0 -23
- package/dist/esm/grid/setting/index.js +0 -13
- package/dist/esm/header/setting/index.js +0 -7
- package/dist/esm/heading/setting/index.js +0 -7
- package/dist/esm/icon/setting/index.js +0 -7
- package/dist/esm/icon-list/setting/index.js +0 -9
- package/dist/esm/icon-list-hoz/setting/index.js +0 -9
- package/dist/esm/icon-list-v2/setting/index.js +0 -7
- package/dist/esm/image/setting/index.js +0 -7
- package/dist/esm/image-comparison/constants/commonStyles.js +0 -58
- package/dist/esm/image-comparison/setting/index.js +0 -7
- package/dist/esm/image-detection/setting/index.js +0 -7
- package/dist/esm/input/setting/index.js +0 -7
- package/dist/esm/line/setting/index.js +0 -7
- package/dist/esm/link/setting/index.js +0 -7
- package/dist/esm/marquee/setting/index.js +0 -9
- package/dist/esm/menu/setting/index.js +0 -7
- package/dist/esm/modal/setting/index.js +0 -7
- package/dist/esm/pagination/setting/index.js +0 -7
- package/dist/esm/post-purchase/advanced-list/setting/index.js +0 -9
- package/dist/esm/post-purchase/button/setting/index.js +0 -7
- package/dist/esm/post-purchase/callout-banner/setting/index.js +0 -9
- package/dist/esm/post-purchase/countdown-timer/settings/index.js +0 -7
- package/dist/esm/post-purchase/image/setting/index.js +0 -7
- package/dist/esm/post-purchase/line/setting/index.js +0 -7
- package/dist/esm/post-purchase/link/setting/index.js +0 -7
- package/dist/esm/post-purchase/next.js +0 -35
- package/dist/esm/post-purchase/product/settings/index.js +0 -25
- package/dist/esm/post-purchase/product/settings/product-image/ProductFeatureImage.js +0 -139
- package/dist/esm/post-purchase/product/settings/product-image/ProductGalleryImage.js +0 -102
- package/dist/esm/post-purchase/product/settings/product-image/ProductImageLayoutSetting.js +0 -149
- package/dist/esm/post-purchase/product/settings/product-image/setting-v1.js +0 -161
- package/dist/esm/post-purchase/product/settings/product-image/uiV1.js +0 -40
- package/dist/esm/post-purchase/text/settings/index.js +0 -9
- package/dist/esm/product/components/DynamicCheckout.js +0 -24
- package/dist/esm/product/components/Product.js +0 -111
- package/dist/esm/product/components/Product.liquid.js +0 -131
- package/dist/esm/product/components/ProductButton.js +0 -548
- package/dist/esm/product/components/ProductButton.liquid.js +0 -379
- package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +0 -192
- package/dist/esm/product/components/ProductList.js +0 -467
- package/dist/esm/product/components/ProductList.liquid.js +0 -422
- package/dist/esm/product/components/ProductProperties/ProductPropertyChoice.js +0 -53
- package/dist/esm/product/components/ProductProperties/ProductPropertyChoice.liquid.js +0 -60
- package/dist/esm/product/components/ProductProperties/ProductPropertyInput.js +0 -70
- package/dist/esm/product/components/ProductProperties/ProductPropertyInput.liquid.js +0 -53
- package/dist/esm/product/components/ProductProperties/ProductPropertySelect.js +0 -38
- package/dist/esm/product/components/ProductProperties/ProductPropertySelect.liquid.js +0 -53
- package/dist/esm/product/components/ProductProperties.liquid.js +0 -144
- package/dist/esm/product/components/ProductQuantity.liquid.js +0 -214
- package/dist/esm/product/components/ProductVariants/variants/Base.js +0 -289
- package/dist/esm/product/components/ProductVariants/variants/Base.liquid.js +0 -164
- package/dist/esm/product/components/ProductVariants/variants/Dropdown.js +0 -155
- package/dist/esm/product/components/ProductVariants/variants/Dropdown.liquid.js +0 -131
- package/dist/esm/product/components/ProductVariants/variants/DropdownGroup.liquid.js +0 -53
- package/dist/esm/product/components/ProductVariants/variants/RadioButtons.js +0 -59
- package/dist/esm/product/components/ProductVariants/variants/combine/index.js +0 -44
- package/dist/esm/product/components/ProductViewMore.js +0 -28
- package/dist/esm/product/setting/index.js +0 -45
- package/dist/esm/radio/setting/index.js +0 -7
- package/dist/esm/select/setting/index.js +0 -7
- package/dist/esm/shop-pay-installment/settings/index.js +0 -7
- package/dist/esm/sticky/setting/index.js +0 -7
- package/dist/esm/stock-counter/setting/index.js +0 -7
- package/dist/esm/tab/setting/index.js +0 -9
- package/dist/esm/text/setting/index.js +0 -7
- package/dist/esm/textarea/setting/index.js +0 -7
- package/dist/esm/third-party-instant/setting/index.js +0 -13
- package/dist/esm/video/setting/index.js +0 -7
- /package/dist/cjs/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/presets.js +0 -0
- /package/dist/cjs/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/settings.js +0 -0
- /package/dist/cjs/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/uiV1.js +0 -0
- /package/dist/cjs/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/uiV2.js +0 -0
- /package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/child}/MediaIcon.js +0 -0
- /package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/child}/ProductFeatureVideo.js +0 -0
- /package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/child}/ProductFeaturedImageOnly.js +0 -0
- /package/dist/cjs/product/components/ProductImagesV2/{jsx/components → components/lightbox}/ButtonOpenLightBox.js +0 -0
- /package/dist/cjs/product/components/ProductImagesV2/{jsx/hooks → hooks}/useFilterImagesByVariant.js +0 -0
- /package/dist/cjs/product/components/ProductVariants/{common.js → common/common.js} +0 -0
- /package/dist/cjs/product/components/ProductVariants/{variants → components/dropdown-option}/DropdownOption.js +0 -0
- /package/dist/cjs/product/components/ProductVariants/{variants/VariantOption/index.js → components/dropdown-option/VariantOption.js} +0 -0
- /package/dist/cjs/product/components/ProductVariants/{variants → components/rectangle-list}/RectangleList.js +0 -0
- /package/dist/cjs/tab/{hooks → components/hooks}/useTabInteraction.js +0 -0
- /package/dist/esm/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/presets.js +0 -0
- /package/dist/esm/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/settings.js +0 -0
- /package/dist/esm/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/uiV1.js +0 -0
- /package/dist/esm/article/setting/configs/{ArticleExerpt → ArticleExcerpt}/uiV2.js +0 -0
- /package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/child}/MediaIcon.js +0 -0
- /package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/child}/ProductFeatureVideo.js +0 -0
- /package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/child}/ProductFeaturedImageOnly.js +0 -0
- /package/dist/esm/product/components/ProductImagesV2/{jsx/components → components/lightbox}/ButtonOpenLightBox.js +0 -0
- /package/dist/esm/product/components/ProductImagesV2/{jsx/hooks → hooks}/useFilterImagesByVariant.js +0 -0
- /package/dist/esm/product/components/ProductVariants/{common.js → common/common.js} +0 -0
- /package/dist/esm/product/components/ProductVariants/{variants → components/dropdown-option}/DropdownOption.js +0 -0
- /package/dist/esm/product/components/ProductVariants/{variants/VariantOption/index.js → components/dropdown-option/VariantOption.js} +0 -0
- /package/dist/esm/product/components/ProductVariants/{variants → components/rectangle-list}/RectangleList.js +0 -0
- /package/dist/esm/tab/{hooks → components/hooks}/useTabInteraction.js +0 -0
|
@@ -1,422 +0,0 @@
|
|
|
1
|
-
import { getSizeSetting } from '../helpers/product.js';
|
|
2
|
-
import { template, RenderIf, isLocalEnv, baseAssetURL, makeStyleResponsive, getStyleBackgroundByDevice, cls, getResponsiveValueByScreen } from '@gem-sdk/core';
|
|
3
|
-
import CarouselItem from '../../carousel/components/CarouselItem.liquid.js';
|
|
4
|
-
import Carousel from '../../carousel/components/Carousel.liquid.js';
|
|
5
|
-
import { getInitialWidthForCarouselItem } from '../../carousel/components/common/carousel.js';
|
|
6
|
-
import { getUpdatedArrowDisplay } from '../../carousel/components/common/arrow.js';
|
|
7
|
-
import { getUpdatedDotStyle } from '../../carousel/components/common/dots.js';
|
|
8
|
-
import { convertUnitToNumber } from './ProductImages/common/productFeaturedImage.js';
|
|
9
|
-
import { getSettingPreloadData, getStaticLocale } from '../../helpers.js';
|
|
10
|
-
import { createStyleObject } from '../../grid/row/commons/helpers.js';
|
|
11
|
-
|
|
12
|
-
const ProductList = ({ setting, builderProps, styles, className, children, advanced, pageContext, style })=>{
|
|
13
|
-
const PREFIX_COLLECTION_ID = 'gid://shopify/Collection/';
|
|
14
|
-
const PREFIX_PRODUCT_ID = 'gid://shopify/Product/';
|
|
15
|
-
const productSetting = setting?.productSetting;
|
|
16
|
-
const relatedTag = productSetting?.relatedTag;
|
|
17
|
-
const hasRelatedExclude = productSetting?.hasRelatedExclude;
|
|
18
|
-
const mainRelatedExclude = (relatedTag && relatedTag[0] === 'collection' ? productSetting?.relatedCollectionExclude : productSetting?.relatedTagsExclude) || '';
|
|
19
|
-
const relatedExcludeTrim = mainRelatedExclude?.split(',').map((item)=>item.trim()).toString();
|
|
20
|
-
const productSrc = productSetting?.productSrc ?? 'Collection';
|
|
21
|
-
const collectionID = productSetting?.collectionId?.replace(PREFIX_COLLECTION_ID, '') ?? 'latest';
|
|
22
|
-
const isLatest = productSetting?.productSrc === 'PickProduct' && productSetting?.productIds?.length === 0;
|
|
23
|
-
const isGrid = styles?.layout === 'grid';
|
|
24
|
-
const numberOfProducts = convertUnitToNumber(setting?.numberOfProducts, 4);
|
|
25
|
-
const productListId = productSrc === 'PickProduct' && productSetting?.productIds?.length ? productSetting?.productIds.map((p)=>p.replace(PREFIX_PRODUCT_ID, '')) : [];
|
|
26
|
-
const productListHandles = productSrc === 'PickProduct' && productSetting?.productHandles?.length ? productSetting?.productHandles : [];
|
|
27
|
-
const updatedArrowSetting = getUpdatedArrowDisplay(setting?.arrow, setting?.controlOverContent);
|
|
28
|
-
const updatedDotStyleFromOldData = getUpdatedDotStyle(setting?.dot, setting?.dotStyle);
|
|
29
|
-
const isSorted = setting?.orderBy && setting?.orderBy !== 'none';
|
|
30
|
-
const sortedArray = (productSetting?.productSrc === 'Collection' || productSetting?.productSrc === 'DynamicCollection') && isSorted ? setting?.orderBy?.split('_') : 'none';
|
|
31
|
-
const sortedBy = isSorted && sortedArray?.[0] === 'TITLE' ? "| sort: 'title'" : "| sort: 'updated_at'";
|
|
32
|
-
const isReverse = sortedArray?.[sortedArray.length - 1] === 'DESC';
|
|
33
|
-
const renderSameHeightGrid = (children)=>{
|
|
34
|
-
return template /* liquid */ `
|
|
35
|
-
<gp-same-height-v2
|
|
36
|
-
class="gp-contents"
|
|
37
|
-
style="visibility: hidden"
|
|
38
|
-
gp-data='${JSON.stringify({
|
|
39
|
-
targetUid: builderProps?.builderData?.childrens?.[0],
|
|
40
|
-
slidesToShow: setting?.slidesToShow,
|
|
41
|
-
rowGap: styles?.horizontalGutter
|
|
42
|
-
})}'>
|
|
43
|
-
${children}
|
|
44
|
-
</gp-same-height-v2>
|
|
45
|
-
`;
|
|
46
|
-
};
|
|
47
|
-
const renderGrid = (children)=>{
|
|
48
|
-
return template /* liquid */ `
|
|
49
|
-
<div items-repeat data-id="${builderProps?.uid}" style="${{
|
|
50
|
-
...!setting?.sameHeight && makeStyleResponsive('rg', styles?.horizontalGutter),
|
|
51
|
-
...makeStyleResponsive('cg', styles?.verticalGutter),
|
|
52
|
-
...makeStyleResponsive('gtc', {
|
|
53
|
-
desktop: `repeat(${getResponsiveValueByScreen(setting?.slidesToShow, 'desktop')}, minmax(0, 1fr))`,
|
|
54
|
-
tablet: setting?.slidesToShow?.tablet && `repeat(${getResponsiveValueByScreen(setting?.slidesToShow, 'tablet')}, minmax(0, 1fr))`,
|
|
55
|
-
mobile: setting?.slidesToShow?.mobile && `repeat(${getResponsiveValueByScreen(setting?.slidesToShow, 'mobile')}, minmax(0, 1fr))`
|
|
56
|
-
})
|
|
57
|
-
}}"
|
|
58
|
-
class="${cls(className, 'gp-grid !gp-m-auto gp-w-full', setting?.sameHeight ? ' gp-grid-flow-row' : '', advanced?.cssClass)}"
|
|
59
|
-
>
|
|
60
|
-
${RenderIf(setting?.sameHeight, renderSameHeightGrid(children))}
|
|
61
|
-
${RenderIf(!setting?.sameHeight, template /* liquid */ `${children}`)}
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
`;
|
|
65
|
-
};
|
|
66
|
-
const renderCarousel = (children)=>{
|
|
67
|
-
return template /* liquid */ `
|
|
68
|
-
${Carousel({
|
|
69
|
-
advanced: advanced,
|
|
70
|
-
builderProps: {
|
|
71
|
-
...builderProps
|
|
72
|
-
},
|
|
73
|
-
rootAttr: 'items-repeat',
|
|
74
|
-
setting: {
|
|
75
|
-
loop: setting?.loop,
|
|
76
|
-
slidesToShow: setting?.slidesToShow,
|
|
77
|
-
dot: setting?.dot,
|
|
78
|
-
dotSize: {
|
|
79
|
-
desktop: 12
|
|
80
|
-
},
|
|
81
|
-
dotGapToCarousel: {
|
|
82
|
-
desktop: 16
|
|
83
|
-
},
|
|
84
|
-
dotStyle: updatedDotStyleFromOldData,
|
|
85
|
-
navigationStyle: updatedArrowSetting,
|
|
86
|
-
arrowCustom: setting?.arrowCustom,
|
|
87
|
-
controlOverContent: setting?.controlOverContent,
|
|
88
|
-
enableDrag: {
|
|
89
|
-
desktop: setting?.dragToScroll,
|
|
90
|
-
tablet: setting?.dragToScroll,
|
|
91
|
-
mobile: setting?.dragToScroll
|
|
92
|
-
},
|
|
93
|
-
speed: setting?.speed,
|
|
94
|
-
dotActiveColor: setting?.dotActiveColor,
|
|
95
|
-
dotColor: setting?.dotColor,
|
|
96
|
-
autoplay: setting?.autoplay,
|
|
97
|
-
pauseOnHover: setting?.pauseOnHover,
|
|
98
|
-
autoplayTimeout: setting?.autoplayTimeout,
|
|
99
|
-
arrowCustomColor: setting?.arrowCustomColor,
|
|
100
|
-
arrowButtonSize: {
|
|
101
|
-
desktop: {
|
|
102
|
-
width: '24px',
|
|
103
|
-
height: '24px'
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
rootId: `product-list-carousel-${builderProps?.uid}`,
|
|
108
|
-
rootClass: 'gp-justify-center',
|
|
109
|
-
styles: {
|
|
110
|
-
sizeSetting: {
|
|
111
|
-
...getSizeSetting({
|
|
112
|
-
adaptiveHeight: styles?.adaptiveHeight,
|
|
113
|
-
height: styles?.height,
|
|
114
|
-
fullWidth: {
|
|
115
|
-
desktop: true
|
|
116
|
-
}
|
|
117
|
-
})
|
|
118
|
-
},
|
|
119
|
-
spacing: styles?.spacing
|
|
120
|
-
},
|
|
121
|
-
children: `
|
|
122
|
-
${children}
|
|
123
|
-
`
|
|
124
|
-
})}
|
|
125
|
-
`;
|
|
126
|
-
};
|
|
127
|
-
const renderGridProductList = ()=>{
|
|
128
|
-
return template /* liquid */ `
|
|
129
|
-
${renderGrid(`
|
|
130
|
-
{%- assign count = 0 -%}
|
|
131
|
-
{%- for product in products limit: limit -%}
|
|
132
|
-
{%- if product.id != empty -%}
|
|
133
|
-
{%- assign count = count | plus: 1 -%}
|
|
134
|
-
{%- assign variant = product.selected_or_first_available_variant -%}
|
|
135
|
-
{%- assign product_form_id = 'product-form-' | append: "${builderProps?.uid}" | append: product.id -%}
|
|
136
|
-
<gp-product
|
|
137
|
-
class="${cls(`gp-child-item-${builderProps?.uid}`, setting?.sameHeight ? ' gp-contents' : '')}"
|
|
138
|
-
gp-context='{"variantSelected": {{ variant | json | escape }}, "quantity": 1 , "formId": "{{ product_form_id }}"}'
|
|
139
|
-
gp-data='{"variantSelected": {{ variant | json | escape }}, "quantity": 1, "productUrl":{{ product.url | json | escape }}, "productHandle":{{ product.handle | json | escape }}, "collectionUrl": {{ collection.url | json | escape }}, "collectionHandle": {{ collection.handle | json | escape }},"pageContext" : ${JSON.stringify(pageContext)}}'
|
|
140
|
-
>
|
|
141
|
-
{%- form 'product', product, id: product_form_id, class: 'form contents ${setting?.sameHeight ? ' gp-contents [&_*[data-same-height-display-contents="true"]]:gp-contents [&_*[parenttag="ProductList"]]:gp-grid [&_*[parenttag="ProductList"]]:gp-grid-rows-[subgrid] [&_*[parenttag="ProductList"]]:gp-gap-y-0 [&_*[parenttag="ProductList"]]:gp-grid-col-[subgrid]' : ''}', data-type: 'add-to-cart-form', autocomplete: 'off' -%}
|
|
142
|
-
<input type="hidden" name="id" value="{{ variant.id }}" />
|
|
143
|
-
<input type="hidden" min="1" name="quantity" value="{{ quantity }}" />
|
|
144
|
-
<button type="submit" onclick="return false;" style="display:none;"></button>
|
|
145
|
-
${children ?? ''}
|
|
146
|
-
{%- endform -%}
|
|
147
|
-
</gp-product>
|
|
148
|
-
{%- endif -%}
|
|
149
|
-
{% endfor %}
|
|
150
|
-
{%- if count == 0 and ${productListId.length} == 0 -%}
|
|
151
|
-
{% if '${productSrc}' == 'RelatedProduct' -%}
|
|
152
|
-
<div>${getStaticLocale('ProductList', 'no_related_products')}</div>
|
|
153
|
-
{% else %}
|
|
154
|
-
<div>${getStaticLocale('ProductList', 'no_products_found')}</div>
|
|
155
|
-
{%- endif -%}
|
|
156
|
-
{%- endif -%}
|
|
157
|
-
`)}
|
|
158
|
-
`;
|
|
159
|
-
};
|
|
160
|
-
const renderCarouselProductList = ()=>{
|
|
161
|
-
return template /* liquid */ `
|
|
162
|
-
${renderCarousel(`
|
|
163
|
-
{%- assign count = 0 -%}
|
|
164
|
-
{%- for product in products limit: limit -%}
|
|
165
|
-
{%- if product.id != empty -%}
|
|
166
|
-
{%- assign count = count | plus: 1 -%}
|
|
167
|
-
{%- assign variant = product.selected_or_first_available_variant -%}
|
|
168
|
-
{%- assign product_form_id = 'product-form-' | append: "${builderProps?.uid}" | append: product.id -%}
|
|
169
|
-
${CarouselItem({
|
|
170
|
-
builderProps: {
|
|
171
|
-
...builderProps
|
|
172
|
-
},
|
|
173
|
-
style: {
|
|
174
|
-
...getInitialWidthForCarouselItem({
|
|
175
|
-
spacing: styles?.spacing,
|
|
176
|
-
slidesToShow: setting?.slidesToShow
|
|
177
|
-
})
|
|
178
|
-
},
|
|
179
|
-
parentId: `product-list-carousel-${builderProps?.uid} gp-child-item-${builderProps?.uid}`,
|
|
180
|
-
children: `<gp-product gp-context='{"variantSelected": {{ variant | json | escape }}, "quantity": 1 , "formId": "{{ product_form_id }}"}' gp-data='{"variantSelected": {{ variant | json | escape }}, "quantity": 1, "productUrl":{{ product.url | json | escape }}, "productHandle":{{ product.handle | json | escape }}, "collectionUrl": {{ collection.url | json | escape }}, "collectionHandle": {{ collection.handle | json | escape }},"pageContext" : ${JSON.stringify(pageContext)}}'>
|
|
181
|
-
{%- form 'product', product, id: product_form_id, class: 'form contents AddToCartForm', data-type: 'add-to-cart-form',autocomplete: 'off' -%}
|
|
182
|
-
<input type="hidden" name="id" value="{{ variant.id }}" />
|
|
183
|
-
<input type="hidden" min="1" name="quantity" value="{{ quantity }}" />
|
|
184
|
-
<button type="submit" onclick="return false;" style="display:none;"></button>
|
|
185
|
-
${children ?? ''}
|
|
186
|
-
{%- endform -%}
|
|
187
|
-
</gp-product>`
|
|
188
|
-
})}
|
|
189
|
-
{%- endif -%}
|
|
190
|
-
{%- endfor -%}
|
|
191
|
-
{%- if count == 0 and ${productListId.length} == 0 -%}
|
|
192
|
-
{% if '${productSrc}' == 'RelatedProduct' -%}
|
|
193
|
-
<div>${getStaticLocale('ProductList', 'no_related_products')}</div>
|
|
194
|
-
{% else %}
|
|
195
|
-
<div>${getStaticLocale('ProductList', 'no_products_found')}</div>
|
|
196
|
-
{%- endif -%}
|
|
197
|
-
{%- endif -%}
|
|
198
|
-
`)}
|
|
199
|
-
`;
|
|
200
|
-
};
|
|
201
|
-
const renderProductList = ()=>{
|
|
202
|
-
return template /* liquid */ `
|
|
203
|
-
{%- if products == null -%}
|
|
204
|
-
{%- if count == 0 and ${productListId.length} == 0 -%}
|
|
205
|
-
{% if '${productSrc}' == 'RelatedProduct' -%}
|
|
206
|
-
<div>${getStaticLocale('ProductList', 'no_related_products')}</div>
|
|
207
|
-
{% else %}
|
|
208
|
-
<div>${getStaticLocale('ProductList', 'no_products_found')}</div>
|
|
209
|
-
{%- endif -%}
|
|
210
|
-
{%- endif -%}
|
|
211
|
-
{%-else-%}
|
|
212
|
-
${RenderIf(isGrid, renderGridProductList())}
|
|
213
|
-
${RenderIf(!isGrid, renderCarouselProductList())}
|
|
214
|
-
{%- endif -%}
|
|
215
|
-
`;
|
|
216
|
-
};
|
|
217
|
-
const renderRelatedProduct = ()=>{
|
|
218
|
-
return template /* liquid */ `
|
|
219
|
-
${RenderIf(productSrc === 'RelatedProduct', `
|
|
220
|
-
assign relatedTag = '${relatedTag}'
|
|
221
|
-
assign assignProduct = product
|
|
222
|
-
assign idAssignProduct = assignProduct.id
|
|
223
|
-
paginate collections.all.products by 10000
|
|
224
|
-
assign allProductsPaginated = collections.all.products
|
|
225
|
-
endpaginate
|
|
226
|
-
assign handleAssignProduct = assignProduct.handle
|
|
227
|
-
case relatedTag
|
|
228
|
-
when 'collection'
|
|
229
|
-
assign hasRelatedExclude = ${hasRelatedExclude}
|
|
230
|
-
if hasRelatedExclude
|
|
231
|
-
assign relatedExclude = '${relatedExcludeTrim}'
|
|
232
|
-
else
|
|
233
|
-
assign relatedExclude = ''
|
|
234
|
-
endif
|
|
235
|
-
assign arrayRelatedExclude = relatedExclude | split: ","
|
|
236
|
-
assign idSelectedList = ''
|
|
237
|
-
for collection in collections
|
|
238
|
-
assign collectionId = collection.id
|
|
239
|
-
assign isInCollection = false
|
|
240
|
-
assign collectionsAssignProduct = assignProduct.collections
|
|
241
|
-
for item in collectionsAssignProduct
|
|
242
|
-
unless arrayRelatedExclude contains item.handle
|
|
243
|
-
if item.id == collectionId
|
|
244
|
-
for product in collection.products
|
|
245
|
-
assign product_ids_array = idSelectedList | split: ","
|
|
246
|
-
if product_ids_array contains product.id or product.id == idAssignProduct
|
|
247
|
-
elsif product_ids_array.size > limit
|
|
248
|
-
break
|
|
249
|
-
else
|
|
250
|
-
assign idSelectedList = idSelectedList | append: "," | append: product.id
|
|
251
|
-
endif
|
|
252
|
-
endfor
|
|
253
|
-
endif
|
|
254
|
-
endunless
|
|
255
|
-
endfor
|
|
256
|
-
endfor
|
|
257
|
-
for item in allProductsPaginated
|
|
258
|
-
assign handle = item.handle
|
|
259
|
-
assign productF = item | sort
|
|
260
|
-
if idSelectedList contains item.id
|
|
261
|
-
assign products = products | concat: productF
|
|
262
|
-
endif
|
|
263
|
-
endfor
|
|
264
|
-
assign products = products | uniq
|
|
265
|
-
when 'vendor'
|
|
266
|
-
assign vendorAssignProduct = assignProduct.vendor
|
|
267
|
-
assign productFilter = allProductsPaginated | where: 'vendor', vendorAssignProduct
|
|
268
|
-
for item in productFilter
|
|
269
|
-
assign itemHandle = item.handle
|
|
270
|
-
assign productF = item | sort
|
|
271
|
-
if itemHandle != handleAssignProduct
|
|
272
|
-
assign products = products | concat: productF
|
|
273
|
-
endif
|
|
274
|
-
endfor
|
|
275
|
-
when 'production-type'
|
|
276
|
-
assign typeAssignProduct = assignProduct.type
|
|
277
|
-
assign productFilter = allProductsPaginated | where: 'type', typeAssignProduct
|
|
278
|
-
for item in productFilter
|
|
279
|
-
assign itemHandle = item.handle
|
|
280
|
-
assign productF = item | sort
|
|
281
|
-
if itemHandle != handleAssignProduct
|
|
282
|
-
assign products = products | concat: productF
|
|
283
|
-
endif
|
|
284
|
-
endfor
|
|
285
|
-
when 'tags'
|
|
286
|
-
assign tagsAssignProduct = assignProduct.tags
|
|
287
|
-
assign hasRelatedExclude = ${hasRelatedExclude}
|
|
288
|
-
if hasRelatedExclude
|
|
289
|
-
assign relatedExclude = '${relatedExcludeTrim}'
|
|
290
|
-
else
|
|
291
|
-
assign relatedExclude = ''
|
|
292
|
-
endif
|
|
293
|
-
assign arrayRelatedExclude = relatedExclude | split: ","
|
|
294
|
-
for item in allProductsPaginated
|
|
295
|
-
unless unique_products contains item.handle
|
|
296
|
-
assign isExcludedProduct = false
|
|
297
|
-
for tagExclude in arrayRelatedExclude
|
|
298
|
-
if item.tags contains tagExclude
|
|
299
|
-
assign isExcludedProduct = true
|
|
300
|
-
endif
|
|
301
|
-
endfor
|
|
302
|
-
unless isExcludedProduct
|
|
303
|
-
for tag in tagsAssignProduct
|
|
304
|
-
if item.tags contains tag and assignProduct.handle != item.handle
|
|
305
|
-
assign productF = item | sort
|
|
306
|
-
assign products = products | concat: productF
|
|
307
|
-
break
|
|
308
|
-
endif
|
|
309
|
-
endfor
|
|
310
|
-
endunless
|
|
311
|
-
endunless
|
|
312
|
-
endfor
|
|
313
|
-
assign products = products | uniq
|
|
314
|
-
endcase
|
|
315
|
-
paginate products by ${numberOfProducts || 4}
|
|
316
|
-
assign products = products
|
|
317
|
-
endpaginate
|
|
318
|
-
`)}
|
|
319
|
-
`;
|
|
320
|
-
};
|
|
321
|
-
if (pageContext?.pageType === 'GP_FUNNEL_PAGE') {
|
|
322
|
-
return '';
|
|
323
|
-
}
|
|
324
|
-
return template /* liquid */ `
|
|
325
|
-
${RenderIf(isLocalEnv, `
|
|
326
|
-
<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="{{ 'gp-product.v2.js' | asset_url }}" defer="defer"></script>
|
|
327
|
-
${setting?.sameHeight ? `<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="{{ 'gp-same-height.v2.js' | asset_url }}" defer="defer"></script>` : ''}
|
|
328
|
-
`, `
|
|
329
|
-
<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="${baseAssetURL}/assets-v2/gp-product.v2.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>
|
|
330
|
-
${setting?.sameHeight ? `<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="${baseAssetURL}/assets-v2/gp-same-height.v2.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>` : ''}
|
|
331
|
-
`)}
|
|
332
|
-
|
|
333
|
-
${RenderIf(!!styles?.preloadBgImage, `${RenderIf(!!styles?.backgroundImage?.desktop?.image?.src, `<link rel="preload" href="${styles?.backgroundImage?.desktop?.image?.src}" as="image" />`)}${RenderIf(!!styles?.backgroundImage?.tablet?.image?.src, `<link rel="preload" href="${styles?.backgroundImage?.tablet?.image?.src}" as="image" />`)}${RenderIf(!!styles?.backgroundImage?.mobile?.image?.src, `<link rel="preload" href="${styles?.backgroundImage?.mobile?.image?.src}" as="image" />`)}`)}
|
|
334
|
-
|
|
335
|
-
<div style="${{
|
|
336
|
-
...style,
|
|
337
|
-
...makeStyleResponsive('bgc', styles?.backgroundColor),
|
|
338
|
-
...getStyleBackgroundByDevice(styles?.backgroundImage)
|
|
339
|
-
}}">
|
|
340
|
-
<div
|
|
341
|
-
class="gp-relative gp-flex"
|
|
342
|
-
style="${{
|
|
343
|
-
...makeStyleResponsive('jc', styles?.align)
|
|
344
|
-
}}"
|
|
345
|
-
>
|
|
346
|
-
<div
|
|
347
|
-
style="${{
|
|
348
|
-
...makeStyleResponsive('w', createStyleObject(styles?.width).content)
|
|
349
|
-
}}"
|
|
350
|
-
>
|
|
351
|
-
|
|
352
|
-
{%- assign gpBkProduct = product -%}
|
|
353
|
-
{%- assign gpBkProducts = products -%}
|
|
354
|
-
{%- liquid
|
|
355
|
-
assign productHandles = '${productListHandles.toString()}'| split: ','
|
|
356
|
-
assign products = null
|
|
357
|
-
assign target_collection = null
|
|
358
|
-
assign productSrc = '${productSrc}'
|
|
359
|
-
assign c = 0
|
|
360
|
-
assign limit = ${isGrid ? collectionID === 'latest' ? productSrc === 'RelatedProduct' ? numberOfProducts : productSetting?.numOfSelectedProducts || 4 : numberOfProducts : numberOfProducts}
|
|
361
|
-
if request.page_type == 'collection' or preview_page_type == 'collection'
|
|
362
|
-
assign target_collection = collection
|
|
363
|
-
if target_collection == empty or target_collection == null
|
|
364
|
-
if '${collectionID.toLowerCase()}' == 'latest'
|
|
365
|
-
assign target_collection = collections | sort: 'updated_at' ${isReverse ? '| reverse' : ''} | first
|
|
366
|
-
else
|
|
367
|
-
for collection in collections
|
|
368
|
-
if collection.id == ${collectionID}
|
|
369
|
-
assign target_collection = collection
|
|
370
|
-
break
|
|
371
|
-
endif
|
|
372
|
-
endfor
|
|
373
|
-
endif
|
|
374
|
-
endif
|
|
375
|
-
paginate target_collection.products by ${numberOfProducts || 4}
|
|
376
|
-
assign products = target_collection.products ${isSorted ? sortedBy : ''} ${isReverse ? '| reverse' : ''}
|
|
377
|
-
endpaginate
|
|
378
|
-
else
|
|
379
|
-
if productSrc == 'RelatedProduct'
|
|
380
|
-
${renderRelatedProduct()}
|
|
381
|
-
elsif productSrc == 'PickProduct'
|
|
382
|
-
unless ${isLatest}
|
|
383
|
-
assign products = null | sort
|
|
384
|
-
for handle in productHandles
|
|
385
|
-
assign productH = all_products[handle] | sort
|
|
386
|
-
assign products = products | concat: productH
|
|
387
|
-
endfor
|
|
388
|
-
assign limit = products.length
|
|
389
|
-
else
|
|
390
|
-
if ${productListId.length} == 0
|
|
391
|
-
paginate collections.all.products by 100000
|
|
392
|
-
assign products = collections.all.products | sort : "created_at" | reverse
|
|
393
|
-
endpaginate
|
|
394
|
-
endif
|
|
395
|
-
endunless
|
|
396
|
-
else
|
|
397
|
-
if '${collectionID.toLowerCase()}' == 'latest'
|
|
398
|
-
assign target_collection = collections | sort: 'updated_at' ${isReverse ? '| reverse' : ''} | first
|
|
399
|
-
else
|
|
400
|
-
for collection in collections
|
|
401
|
-
if collection.id == ${collectionID}
|
|
402
|
-
assign target_collection = collection
|
|
403
|
-
break
|
|
404
|
-
endif
|
|
405
|
-
endfor
|
|
406
|
-
endif
|
|
407
|
-
paginate target_collection.products by ${numberOfProducts || 4}
|
|
408
|
-
assign products = target_collection.products ${isSorted ? sortedBy : ''} ${isReverse ? '| reverse' : ''}
|
|
409
|
-
endpaginate
|
|
410
|
-
endif
|
|
411
|
-
endif
|
|
412
|
-
-%}
|
|
413
|
-
${renderProductList()}
|
|
414
|
-
{%- assign product = gpBkProduct -%}
|
|
415
|
-
{%- assign products = gpBkProducts -%}
|
|
416
|
-
</div>
|
|
417
|
-
</div>
|
|
418
|
-
</div>
|
|
419
|
-
`;
|
|
420
|
-
};
|
|
421
|
-
|
|
422
|
-
export { ProductList as default };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { useUniqProductID, makeStyleResponsive, makeWidth, composeTypographyClassName, composeTypographyStyle, makeStyle, cls, getGlobalColorStateClass, getGlobalColorStateResponsiveClass, getGlobalColorClass, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getSingleColorVariable } from '@gem-sdk/core';
|
|
4
|
-
|
|
5
|
-
const ProductPropertyChoice = ({ setting, styles, defaultName })=>{
|
|
6
|
-
const uniqId = useUniqProductID();
|
|
7
|
-
const { name, value, type, handleChange, childItem } = setting ?? {};
|
|
8
|
-
const { valueBgColor, specialValueTextColor, valueTypography, valueTypo, fullWidth, width, height, spacing } = styles ?? {};
|
|
9
|
-
const inputName = name || defaultName;
|
|
10
|
-
const widthStyle = makeStyleResponsive('w', makeWidth(width, fullWidth));
|
|
11
|
-
const appendTypoClass = composeTypographyClassName(valueTypo, valueTypography);
|
|
12
|
-
const appendTypoStyle = composeTypographyStyle(valueTypo, valueTypography);
|
|
13
|
-
return /*#__PURE__*/ jsx("div", {
|
|
14
|
-
style: {
|
|
15
|
-
...widthStyle
|
|
16
|
-
},
|
|
17
|
-
children: childItem?.map((item, index)=>/*#__PURE__*/ jsxs("div", {
|
|
18
|
-
style: {
|
|
19
|
-
...makeStyleResponsive('h', height)
|
|
20
|
-
},
|
|
21
|
-
className: "gp-flex gp-items-center",
|
|
22
|
-
children: [
|
|
23
|
-
/*#__PURE__*/ jsx("input", {
|
|
24
|
-
type: type,
|
|
25
|
-
id: `${uniqId}-${inputName}-${index}`,
|
|
26
|
-
name: inputName,
|
|
27
|
-
value: item,
|
|
28
|
-
onChange: handleChange,
|
|
29
|
-
style: {
|
|
30
|
-
...makeStyle({
|
|
31
|
-
mr: spacing
|
|
32
|
-
})
|
|
33
|
-
}
|
|
34
|
-
}),
|
|
35
|
-
/*#__PURE__*/ jsx("label", {
|
|
36
|
-
htmlFor: `${uniqId}-${inputName}-${index}`,
|
|
37
|
-
className: cls('gp-p-2 gp-outline-none', getGlobalColorStateClass('text', specialValueTextColor), getGlobalColorStateResponsiveClass('bg', valueBgColor), appendTypoClass, value?.includes(item) ? getGlobalColorClass('text', specialValueTextColor?.active) : ''),
|
|
38
|
-
style: {
|
|
39
|
-
...getGlobalColorStateResponsiveStyle('bg', valueBgColor),
|
|
40
|
-
...getGlobalColorStateStyle('c', specialValueTextColor),
|
|
41
|
-
...appendTypoStyle,
|
|
42
|
-
...value?.includes(item) ? makeStyle({
|
|
43
|
-
c: getSingleColorVariable(specialValueTextColor?.active)
|
|
44
|
-
}) : {}
|
|
45
|
-
},
|
|
46
|
-
children: item
|
|
47
|
-
})
|
|
48
|
-
]
|
|
49
|
-
}, index))
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export { ProductPropertyChoice as default };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { makeStyleResponsive, makeWidth, composeTypographyClassName, composeTypographyStyle, template, makeStyle, cls, getGlobalColorStateClass, getGlobalColorStateResponsiveClass, getGlobalColorClass, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getSingleColorVariable } from '@gem-sdk/core';
|
|
2
|
-
import { getDynamicSourceLocales } from '../../../helpers.js';
|
|
3
|
-
|
|
4
|
-
const ProductPropertyChoice = ({ setting, styles, builderProps, pageContext, attributes })=>{
|
|
5
|
-
const uniqId = builderProps?.uid;
|
|
6
|
-
const { name, value, type, childItem, translate } = setting ?? {};
|
|
7
|
-
const { valueBgColor, specialValueTextColor, valueTypography, valueTypo, fullWidth, width, height, spacing } = styles ?? {};
|
|
8
|
-
const widthStyle = makeStyleResponsive('w', makeWidth(width, fullWidth));
|
|
9
|
-
const inputName = `properties[${name}]`;
|
|
10
|
-
const appendTypoClass = composeTypographyClassName(valueTypo, valueTypography);
|
|
11
|
-
const appendTypoStyle = composeTypographyStyle(valueTypo, valueTypography);
|
|
12
|
-
return template`<div style="${{
|
|
13
|
-
...widthStyle
|
|
14
|
-
}}">
|
|
15
|
-
${childItem?.map((val, index)=>{
|
|
16
|
-
const item = getDynamicSourceLocales({
|
|
17
|
-
val: val,
|
|
18
|
-
uid: uniqId,
|
|
19
|
-
settingId: `childItem_${index}`,
|
|
20
|
-
pageContext,
|
|
21
|
-
translate
|
|
22
|
-
});
|
|
23
|
-
return template`
|
|
24
|
-
<div class="gp-flex gp-items-center">
|
|
25
|
-
<input
|
|
26
|
-
type="${type}"
|
|
27
|
-
id="${uniqId}-${name}-${index}"
|
|
28
|
-
data-id="${attributes?.dataId}"
|
|
29
|
-
name="${type === 'radio' || type === 'checkbox' ? inputName : `${inputName}[]`}"
|
|
30
|
-
data-slot-type="input"
|
|
31
|
-
value="${item}"
|
|
32
|
-
style="${{
|
|
33
|
-
...makeStyle({
|
|
34
|
-
mr: spacing
|
|
35
|
-
}),
|
|
36
|
-
...makeStyleResponsive('h', height)
|
|
37
|
-
}}"
|
|
38
|
-
form="{{ product_form_id }}"
|
|
39
|
-
/>
|
|
40
|
-
<label
|
|
41
|
-
for="${uniqId}-${name}-${index}"
|
|
42
|
-
class="${cls('gp-p-[0.5em] gp-outline-none', getGlobalColorStateClass('text', specialValueTextColor), getGlobalColorStateResponsiveClass('bg', valueBgColor), appendTypoClass, value?.includes(val) ? getGlobalColorClass('text', specialValueTextColor?.active) : '')}"
|
|
43
|
-
style="${{
|
|
44
|
-
...getGlobalColorStateResponsiveStyle('bg', valueBgColor),
|
|
45
|
-
...getGlobalColorStateStyle('c', specialValueTextColor),
|
|
46
|
-
...appendTypoStyle,
|
|
47
|
-
...value?.includes(val) ? makeStyle({
|
|
48
|
-
c: getSingleColorVariable(specialValueTextColor?.active)
|
|
49
|
-
}) : {}
|
|
50
|
-
}}"
|
|
51
|
-
>
|
|
52
|
-
${item}
|
|
53
|
-
</label>
|
|
54
|
-
</div>`;
|
|
55
|
-
}).join('')}
|
|
56
|
-
</div>
|
|
57
|
-
`;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export { ProductPropertyChoice as default };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { useUniqProductID, makeStyleResponsive, makeWidth, composeTypographyClassName, composeTypographyStyle, cls, getGlobalColorStateClass, getGlobalColorStateResponsiveClass, handleConvertClassColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertBorderColor, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, composeShadow, composeRadius, makeStyle } from '@gem-sdk/core';
|
|
4
|
-
import { useMemo } from 'react';
|
|
5
|
-
|
|
6
|
-
const ProductPropertyInput = ({ setting, styles })=>{
|
|
7
|
-
const uniqId = useUniqProductID();
|
|
8
|
-
const { name, type, valueHidden, placeholder, required, minChar, maxChar, handleChange, validationData, label } = setting ?? {};
|
|
9
|
-
const { valueBgColor, valueTextColor, valueTypography, valueTypo, fullWidth, width, height, borderInput, borderRadius, shadowInput } = styles ?? {};
|
|
10
|
-
const Element = useMemo(()=>{
|
|
11
|
-
switch(type){
|
|
12
|
-
case 'textarea':
|
|
13
|
-
return 'textarea';
|
|
14
|
-
case 'hidden':
|
|
15
|
-
return 'textarea';
|
|
16
|
-
default:
|
|
17
|
-
return 'input';
|
|
18
|
-
}
|
|
19
|
-
}, [
|
|
20
|
-
type
|
|
21
|
-
]);
|
|
22
|
-
const isReadOnly = useMemo(()=>{
|
|
23
|
-
if (type === 'hidden') {
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
return false;
|
|
27
|
-
}, [
|
|
28
|
-
type
|
|
29
|
-
]);
|
|
30
|
-
const widthStyle = makeStyleResponsive('w', makeWidth(width, fullWidth));
|
|
31
|
-
const appendTypoClass = composeTypographyClassName(valueTypo, valueTypography);
|
|
32
|
-
const appendTypoStyle = composeTypographyStyle(valueTypo, valueTypography);
|
|
33
|
-
const placeholderWithRequireMark = `${placeholder}${!!placeholder && required && !label ? ' *' : ''}`;
|
|
34
|
-
return /*#__PURE__*/ jsx(Element, {
|
|
35
|
-
id: `${uniqId}-${name}`,
|
|
36
|
-
type: type === 'hidden' ? 'textarea' : type,
|
|
37
|
-
value: type === 'hidden' ? valueHidden : undefined,
|
|
38
|
-
placeholder: placeholderWithRequireMark,
|
|
39
|
-
name: name,
|
|
40
|
-
readOnly: isReadOnly,
|
|
41
|
-
className: cls('gemx-border-focus gp-px-4 gp-py-2 gp-outline-none', getGlobalColorStateClass('text', valueTextColor), getGlobalColorStateResponsiveClass('bg', valueBgColor), appendTypoClass, handleConvertClassColor(borderInput), type === 'hidden' ? 'gp-cursor-default' : null),
|
|
42
|
-
style: {
|
|
43
|
-
...widthStyle,
|
|
44
|
-
...handleConvertBorderStyle(borderInput),
|
|
45
|
-
...handleConvertBorderWidth(borderInput),
|
|
46
|
-
...handleConvertBorderColor(borderInput),
|
|
47
|
-
...getGlobalColorStateResponsiveStyle('bg', valueBgColor),
|
|
48
|
-
...getGlobalColorStateStyle('c', valueTextColor),
|
|
49
|
-
...composeShadow(shadowInput),
|
|
50
|
-
...makeStyleResponsive('h', height),
|
|
51
|
-
...composeRadius(borderRadius),
|
|
52
|
-
...appendTypoStyle,
|
|
53
|
-
...!validationData?.isValid && type !== 'hidden' ? makeStyle({
|
|
54
|
-
bc: '#F44336'
|
|
55
|
-
}) : {}
|
|
56
|
-
},
|
|
57
|
-
required: required,
|
|
58
|
-
minLength: [
|
|
59
|
-
'text',
|
|
60
|
-
'textarea'
|
|
61
|
-
].includes(type) ? minChar : undefined,
|
|
62
|
-
maxLength: [
|
|
63
|
-
'text',
|
|
64
|
-
'textarea'
|
|
65
|
-
].includes(type) ? maxChar : undefined,
|
|
66
|
-
onChange: handleChange
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export { ProductPropertyInput as default };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { makeStyleResponsive, makeWidth, composeTypographyClassName, composeTypographyStyle, template, cls, getGlobalColorStateClass, getGlobalColorStateResponsiveClass, handleConvertClassColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertBorderColor, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, composeRadius, composeShadow } from '@gem-sdk/core';
|
|
2
|
-
import { getDynamicSourceLocales } from '../../../helpers.js';
|
|
3
|
-
|
|
4
|
-
const ProductPropertyInput = ({ setting, styles, builderProps, pageContext, attributes })=>{
|
|
5
|
-
const { name, type, placeholder, required, minChar, maxChar, label, valueHidden, translate } = setting ?? {
|
|
6
|
-
minChar: Number,
|
|
7
|
-
maxChar: Number,
|
|
8
|
-
minNumber: Number,
|
|
9
|
-
maxNumber: Number
|
|
10
|
-
};
|
|
11
|
-
const { valueBgColor, valueTextColor, valueTypography, valueTypo, fullWidth, width, height, borderInput, borderRadius, shadowInput } = styles ?? {};
|
|
12
|
-
const element = type === 'textarea' ? 'textarea' : 'input';
|
|
13
|
-
const widthStyle = makeStyleResponsive('w', makeWidth(width, fullWidth));
|
|
14
|
-
const appendTypoClass = composeTypographyClassName(valueTypo, valueTypography);
|
|
15
|
-
const appendTypoStyle = composeTypographyStyle(valueTypo, valueTypography);
|
|
16
|
-
const placeholderVal = getDynamicSourceLocales({
|
|
17
|
-
val: placeholder,
|
|
18
|
-
uid: builderProps?.uid,
|
|
19
|
-
settingId: 'placeholder',
|
|
20
|
-
pageContext,
|
|
21
|
-
translate
|
|
22
|
-
});
|
|
23
|
-
const placeholderWithRequireMark = `${placeholderVal}${!!placeholder && required && !label ? ' *' : ''}`;
|
|
24
|
-
return template /* liquid */ `
|
|
25
|
-
<${element}
|
|
26
|
-
type="${type}"
|
|
27
|
-
placeholder="${placeholderWithRequireMark}"
|
|
28
|
-
name="properties[${name}]"
|
|
29
|
-
form="{{ product_form_id }}"
|
|
30
|
-
data-id="${attributes?.dataId}"
|
|
31
|
-
data-slot-type="input"
|
|
32
|
-
value="${type === 'hidden' ? valueHidden : ''}"
|
|
33
|
-
class="${cls('gemx-border-focus gp-py-2 gp-px-4 gp-outline-none gp-shadow-none group-data-[invalid=true]:gp-border-[#F44336]', getGlobalColorStateClass('text', valueTextColor), getGlobalColorStateResponsiveClass('bg', valueBgColor), appendTypoClass, handleConvertClassColor(borderInput))}"
|
|
34
|
-
style="${{
|
|
35
|
-
...widthStyle,
|
|
36
|
-
...handleConvertBorderStyle(borderInput),
|
|
37
|
-
...handleConvertBorderWidth(borderInput),
|
|
38
|
-
...handleConvertBorderColor(borderInput),
|
|
39
|
-
...getGlobalColorStateResponsiveStyle('bg', valueBgColor),
|
|
40
|
-
...getGlobalColorStateStyle('c', valueTextColor),
|
|
41
|
-
...makeStyleResponsive('h', height),
|
|
42
|
-
...composeRadius(borderRadius),
|
|
43
|
-
...composeShadow(shadowInput),
|
|
44
|
-
...appendTypoStyle
|
|
45
|
-
}}"
|
|
46
|
-
${required ? `required="${required}"` : ''}
|
|
47
|
-
minlength="${minChar}"
|
|
48
|
-
maxlength="${maxChar}"
|
|
49
|
-
></${element}>
|
|
50
|
-
`;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export { ProductPropertyInput as default };
|