@gem-sdk/components 23.0.0-dev.15 → 23.0.0-dev.17
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/settings/configs/settings.js +2 -17
- package/dist/cjs/article/settings/ArticleAuthor.js +1 -1
- package/dist/cjs/article/settings/ArticleCategory.js +1 -1
- package/dist/cjs/article/settings/ArticleContent.js +1 -1
- package/dist/cjs/article/settings/ArticleDate.js +1 -1
- package/dist/cjs/article/settings/ArticleExcerpt.js +1 -1
- package/dist/cjs/article/settings/ArticleImage.js +1 -1
- package/dist/cjs/article/settings/ArticleList.js +1 -1
- package/dist/cjs/article/settings/ArticleReadMore.js +1 -1
- package/dist/cjs/article/settings/ArticleTag.js +1 -1
- package/dist/cjs/article/settings/ArticleTitle.js +1 -1
- package/dist/cjs/article/settings/configs/article-image/settings.js +1 -1
- package/dist/cjs/article/settings/configs/article-list/settings.js +1 -1
- package/dist/cjs/article/settings/configs/article-read-more/settings.js +2 -2
- package/dist/cjs/breadcrumb/settings/configs/settings.js +1 -1
- package/dist/cjs/button/common/helpers.js +1 -1
- package/dist/cjs/button/common/styles.js +1 -1
- package/dist/cjs/button/settings/configs/settings.js +2 -2
- package/dist/cjs/carousel/settings/Carousel.js +1 -1
- package/dist/cjs/carousel-v3/settings/Carousel.js +1 -1
- package/dist/cjs/code/settings/configs/settings.js +1 -1
- package/dist/cjs/collection/settings/collection-banner/configs/settings.js +1 -1
- package/dist/cjs/collection/settings/collection-description/configs/settings.js +1 -1
- package/dist/cjs/collection/settings/collection-paginator/configs/settings.js +1 -1
- package/dist/cjs/collection/settings/collection-title/configs/settings.js +1 -1
- package/dist/cjs/collection/settings/collection-toolbar/configs/settings.js +1 -1
- package/dist/cjs/coupon/settings/configs/settings.js +2 -2
- package/dist/cjs/dialog/settings/configs/settings.js +1 -1
- package/dist/cjs/estimate-delivery/settings/configs/settings.js +1 -1
- package/dist/cjs/form/settings/contact/configs/settings.js +1 -1
- package/dist/cjs/form/settings/submit-button/configs/settings.js +2 -2
- package/dist/cjs/grid/settings/configs/section/settings.js +1 -1
- package/dist/cjs/header/settings/configs/settings.js +2 -2
- package/dist/cjs/hero-banner/components/HeroBannerItem.js +1 -1
- package/dist/cjs/hero-banner/components/HeroBannerItem.liquid.js +6 -6
- package/dist/cjs/hero-banner/settings/configs/settings.js +1 -1
- package/dist/cjs/image/settings/configs/settings.js +1 -1
- package/dist/cjs/image-comparison/settings/configs/settings.js +1 -1
- package/dist/cjs/line/common/helpers.js +1 -1
- package/dist/cjs/line/common/styles.js +1 -1
- package/dist/cjs/line/settings/configs/settings.js +1 -1
- package/dist/cjs/marquee/settings/Marquee.js +1 -1
- package/dist/cjs/post-purchase/image/settings/Image.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-description/ProductDescription.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-discount-tag/ProductDiscountTag.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-image/ProductImages.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-offer/index.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-price/ProductPrice.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-title/ProductTitle.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-variants/ProductVariant.js +2 -2
- package/dist/cjs/post-purchase/text/settings/text/Text.js +1 -1
- package/dist/cjs/product/components/file-upload/settings/configs/settings.js +2 -2
- package/dist/cjs/product/components/product-variants/ProductVariants.liquid.js +5 -6
- package/dist/cjs/product/components/product-wrap/Product.liquid.js +16 -15
- package/dist/cjs/product/settings/ProductList.js +1 -1
- package/dist/cjs/product/settings/ProductListV3.js +1 -1
- package/dist/cjs/product/settings/ProductProperties.js +1 -1
- package/dist/cjs/product/settings/dynamic-checkout/configs/settings.js +1 -1
- package/dist/cjs/product/settings/product/configs/settings.js +1 -1
- package/dist/cjs/product/settings/product-badge/configs/settings.js +1 -1
- package/dist/cjs/product/settings/product-button/configs/settings.js +2 -2
- package/dist/cjs/product/settings/product-image-v2/ProductImages.js +1 -1
- package/dist/cjs/product/settings/product-image-v3/ProductImages.js +1 -1
- package/dist/cjs/product/settings/product-list/configs/settings.js +1 -0
- package/dist/cjs/product/settings/product-list-v3/configs/settings.js +1 -0
- package/dist/cjs/product/settings/product-quantity/configs/settings.js +1 -1
- package/dist/cjs/product/settings/product-variant/configs/settings.js +1 -1
- package/dist/cjs/stock-counter/common/attrs.js +1 -1
- package/dist/cjs/stock-counter/common/helpers.js +1 -1
- package/dist/cjs/stock-counter/common/styles.js +1 -1
- package/dist/cjs/stock-counter/hooks/useStockCounter.js +1 -1
- package/dist/cjs/stock-counter/settings/StockCounter.js +1 -1
- package/dist/cjs/stock-counter/settings/configs/settings.js +2 -0
- package/dist/cjs/tab/settings/configs/settings.js +1 -1
- package/dist/cjs/text/settings/configs/settings.js +1 -1
- package/dist/esm/accordion/settings/configs/settings.js +2 -17
- package/dist/esm/article/settings/ArticleAuthor.js +2 -2
- package/dist/esm/article/settings/ArticleCategory.js +2 -2
- package/dist/esm/article/settings/ArticleContent.js +1 -1
- package/dist/esm/article/settings/ArticleDate.js +1 -1
- package/dist/esm/article/settings/ArticleExcerpt.js +1 -1
- package/dist/esm/article/settings/ArticleImage.js +1 -1
- package/dist/esm/article/settings/ArticleList.js +1 -1
- package/dist/esm/article/settings/ArticleReadMore.js +1 -1
- package/dist/esm/article/settings/ArticleTag.js +1 -1
- package/dist/esm/article/settings/ArticleTitle.js +1 -1
- package/dist/esm/article/settings/configs/article-image/settings.js +1 -1
- package/dist/esm/article/settings/configs/article-list/settings.js +1 -1
- package/dist/esm/article/settings/configs/article-read-more/settings.js +2 -2
- package/dist/esm/breadcrumb/settings/configs/settings.js +1 -1
- package/dist/esm/button/common/helpers.js +1 -1
- package/dist/esm/button/common/styles.js +1 -1
- package/dist/esm/button/settings/configs/settings.js +2 -2
- package/dist/esm/carousel/settings/Carousel.js +1 -1
- package/dist/esm/carousel-v3/settings/Carousel.js +1 -1
- package/dist/esm/code/settings/configs/settings.js +1 -1
- package/dist/esm/collection/settings/collection-banner/configs/settings.js +1 -1
- package/dist/esm/collection/settings/collection-description/configs/settings.js +1 -1
- package/dist/esm/collection/settings/collection-paginator/configs/settings.js +1 -1
- package/dist/esm/collection/settings/collection-title/configs/settings.js +1 -1
- package/dist/esm/collection/settings/collection-toolbar/configs/settings.js +1 -1
- package/dist/esm/coupon/settings/configs/settings.js +2 -2
- package/dist/esm/dialog/settings/configs/settings.js +1 -1
- package/dist/esm/estimate-delivery/settings/configs/settings.js +1 -1
- package/dist/esm/form/settings/contact/configs/settings.js +1 -1
- package/dist/esm/form/settings/submit-button/configs/settings.js +2 -2
- package/dist/esm/grid/settings/configs/section/settings.js +1 -1
- package/dist/esm/header/settings/configs/settings.js +2 -2
- package/dist/esm/hero-banner/components/HeroBannerItem.js +1 -1
- package/dist/esm/hero-banner/components/HeroBannerItem.liquid.js +6 -6
- package/dist/esm/hero-banner/settings/configs/settings.js +1 -1
- package/dist/esm/image/settings/configs/settings.js +1 -1
- package/dist/esm/image-comparison/settings/configs/settings.js +1 -1
- package/dist/esm/line/common/helpers.js +1 -1
- package/dist/esm/line/common/styles.js +1 -1
- package/dist/esm/line/settings/configs/settings.js +1 -1
- package/dist/esm/marquee/settings/Marquee.js +1 -1
- package/dist/esm/post-purchase/image/settings/Image.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-description/ProductDescription.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-discount-tag/ProductDiscountTag.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-image/ProductImages.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-offer/index.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-price/ProductPrice.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-title/ProductTitle.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-variants/ProductVariant.js +2 -2
- package/dist/esm/post-purchase/text/settings/text/Text.js +1 -1
- package/dist/esm/product/components/file-upload/settings/configs/settings.js +2 -2
- package/dist/esm/product/components/product-variants/ProductVariants.liquid.js +12 -13
- package/dist/esm/product/components/product-wrap/Product.liquid.js +23 -22
- package/dist/esm/product/settings/ProductList.js +1 -1
- package/dist/esm/product/settings/ProductListV3.js +1 -1
- package/dist/esm/product/settings/ProductProperties.js +1 -1
- package/dist/esm/product/settings/dynamic-checkout/configs/settings.js +1 -1
- package/dist/esm/product/settings/product/configs/settings.js +1 -1
- package/dist/esm/product/settings/product-badge/configs/settings.js +1 -1
- package/dist/esm/product/settings/product-button/configs/settings.js +2 -2
- package/dist/esm/product/settings/product-image-v2/ProductImages.js +1 -1
- package/dist/esm/product/settings/product-image-v3/ProductImages.js +1 -1
- package/dist/esm/product/settings/product-list/configs/settings.js +1 -0
- package/dist/esm/product/settings/product-list-v3/configs/settings.js +1 -0
- package/dist/esm/product/settings/product-quantity/configs/settings.js +1 -1
- package/dist/esm/product/settings/product-variant/configs/settings.js +1 -1
- package/dist/esm/stock-counter/common/attrs.js +1 -1
- package/dist/esm/stock-counter/common/helpers.js +4 -4
- package/dist/esm/stock-counter/common/styles.js +1 -1
- package/dist/esm/stock-counter/hooks/useStockCounter.js +1 -1
- package/dist/esm/stock-counter/settings/StockCounter.js +1 -1
- package/dist/esm/stock-counter/settings/configs/settings.js +2 -0
- package/dist/esm/tab/settings/configs/settings.js +1 -1
- package/dist/esm/text/settings/configs/settings.js +1 -1
- package/dist/types/index.d.ts +15 -29
- package/package.json +1 -1
- package/dist/cjs/product/settings/product-list/configs/settings-v2.js +0 -1
- package/dist/cjs/product/settings/product-list-v3/configs/settings-v2.js +0 -1
- package/dist/cjs/stock-counter/settings/configs/settings-v2.js +0 -2
- package/dist/esm/product/settings/product-list/configs/settings-v2.js +0 -1
- package/dist/esm/product/settings/product-list-v3/configs/settings-v2.js +0 -1
- package/dist/esm/stock-counter/settings/configs/settings-v2.js +0 -2
- /package/dist/cjs/carousel/settings/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/carousel-v3/settings/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/marquee/settings/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/image/settings/configs/{setting-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-description/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-discount-tag/configs/{setting-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-image/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-offer/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-price/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-title/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-variants/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/text/settings/text/configs/{setting-v2.js → settings.js} +0 -0
- /package/dist/cjs/product/settings/product-image-v2/configs/{setting-v2 → settings}/ProductFeatureImage.js +0 -0
- /package/dist/cjs/product/settings/product-image-v2/configs/{setting-v2 → settings}/ProductGalleryImage.js +0 -0
- /package/dist/cjs/product/settings/product-image-v2/configs/{setting-v2 → settings}/index.js +0 -0
- /package/dist/cjs/product/settings/product-image-v3/configs/{setting-v2 → settings}/ProductFeatureImage.js +0 -0
- /package/dist/cjs/product/settings/product-image-v3/configs/{setting-v2 → settings}/ProductGalleryImage.js +0 -0
- /package/dist/cjs/product/settings/product-image-v3/configs/{setting-v2 → settings}/index.js +0 -0
- /package/dist/cjs/product/settings/product-properties/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/carousel/settings/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/carousel-v3/settings/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/marquee/settings/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/image/settings/configs/{setting-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-description/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-discount-tag/configs/{setting-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-image/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-offer/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-price/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-title/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-variants/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/text/settings/text/configs/{setting-v2.js → settings.js} +0 -0
- /package/dist/esm/product/settings/product-image-v2/configs/{setting-v2 → settings}/ProductFeatureImage.js +0 -0
- /package/dist/esm/product/settings/product-image-v2/configs/{setting-v2 → settings}/ProductGalleryImage.js +0 -0
- /package/dist/esm/product/settings/product-image-v2/configs/{setting-v2 → settings}/index.js +0 -0
- /package/dist/esm/product/settings/product-image-v3/configs/{setting-v2 → settings}/ProductFeatureImage.js +0 -0
- /package/dist/esm/product/settings/product-image-v3/configs/{setting-v2 → settings}/ProductGalleryImage.js +0 -0
- /package/dist/esm/product/settings/product-image-v3/configs/{setting-v2 → settings}/index.js +0 -0
- /package/dist/esm/product/settings/product-properties/configs/{settings-v2.js → settings.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ProductListSettingsV2 as t}from"./product-list-v3/configs/settings
|
|
1
|
+
import{ProductListSettingsV2 as t}from"./product-list-v3/configs/settings.js";import{ProductListPreset as o}from"./product-list-v3/configs/presets.js";import{SettingUIV2 as r}from"./product-list-v3/configs/ui-v2.js";let C={tag:"ProductListV3",label:"Product List",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.9075 7.10422C14.6295 6.47277 13.981 6.06462 13.268 6.12193C12.8111 6.15866 12.0129 6.23149 11.1972 6.34772C10.4162 6.459 9.4973 6.62566 8.86739 6.88284C8.4425 7.05632 7.96973 7.41721 7.56476 7.7561C7.12514 8.12398 6.63889 8.57624 6.16347 9.03928C5.21082 9.96712 4.25521 10.9838 3.72156 11.5611C3.02665 12.3128 3.18213 13.4862 4.00429 14.0501L7.14594 16.205V26.2444C7.14594 27.1568 7.8833 27.9057 8.80445 27.9057H23.246C24.1672 27.9057 24.9045 27.1568 24.9045 26.2444V16.205L28.0603 14.0405C28.8678 13.4866 29.0361 12.3395 28.3699 11.5829C27.861 11.005 26.9438 9.98417 26.0115 9.05136C25.5463 8.58586 25.0644 8.12923 24.6192 7.75674C24.2068 7.41161 23.7187 7.04517 23.2589 6.87191C22.0504 6.41643 20.0388 6.19802 19.2897 6.12638C18.6177 6.06213 17.9943 6.4147 17.6856 6.98594L16.1261 9.87237L14.9075 7.10422ZM11.5075 8.52572C12.0668 8.44603 12.6236 8.38769 13.0516 8.3486L14.5589 11.7725C15.1148 13.0353 16.8782 13.1086 17.535 11.8929L19.4471 8.35398C20.3297 8.45016 21.7155 8.64129 22.4831 8.93056C22.5609 8.9599 22.7999 9.10299 23.2073 9.44391C23.582 9.75746 24.0125 10.1634 24.4555 10.6066C25.1311 11.2825 25.8054 12.0148 26.3079 12.5747L23.426 14.5514C22.9732 14.862 22.7045 15.3755 22.7045 15.9221V25.7057H9.34594V15.9221C9.34594 15.3755 9.07722 14.862 8.62448 14.5514L5.76791 12.592C6.29559 12.03 7.00098 11.2946 7.69845 10.6153C8.1553 10.1703 8.59719 9.76082 8.97664 9.44329C9.16639 9.2845 9.33077 9.15694 9.46645 9.06238C9.53381 9.01545 9.58879 8.98036 9.63189 8.95523C9.65312 8.94286 9.66967 8.93395 9.68177 8.92783C9.69405 8.92163 9.69897 8.91962 9.69897 8.91962C10.0488 8.7768 10.7201 8.63792 11.5075 8.52572Z" fill="currentColor"/>
|
|
4
4
|
<path d="M30.2528 21.8121C29.8846 21.8121 29.5862 21.5136 29.5862 21.1454V20.0645C29.5862 19.6963 29.8846 19.3978 30.2528 19.3978H36.3481C36.7163 19.3978 37.0147 19.6963 37.0147 20.0645V21.1454C37.0147 21.5136 36.7163 21.8121 36.3481 21.8121H30.2528Z" fill="currentColor"/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ProductPropertiesSettingsV2 as C}from"./product-properties/configs/settings
|
|
1
|
+
import{ProductPropertiesSettingsV2 as C}from"./product-properties/configs/settings.js";import{ProductPropertiesPreset as o}from"./product-properties/configs/presets.js";import{SettingUIV2 as r}from"./product-properties/configs/ui-v2.js";let t={tag:"ProductProperties",label:"Product Custom Field",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.9075 7.10422C14.6295 6.47277 13.981 6.06462 13.268 6.12193C12.8111 6.15866 12.0129 6.23149 11.1972 6.34772C10.4162 6.459 9.4973 6.62566 8.86739 6.88284C8.4425 7.05632 7.96973 7.41721 7.56476 7.7561C7.12514 8.12398 6.63889 8.57624 6.16347 9.03928C5.21082 9.96712 4.25521 10.9838 3.72156 11.5611C3.02665 12.3128 3.18213 13.4862 4.00429 14.0501L7.14594 16.205V26.2444C7.14594 27.1568 7.8833 27.9057 8.80445 27.9057H23.246C24.1672 27.9057 24.9045 27.1568 24.9045 26.2444V16.205L28.0603 14.0405C28.8678 13.4866 29.0361 12.3395 28.3699 11.5829C27.861 11.005 26.9438 9.98417 26.0115 9.05136C25.5463 8.58586 25.0644 8.12923 24.6192 7.75674C24.2068 7.41161 23.7187 7.04517 23.2589 6.87191C22.0504 6.41643 20.0388 6.19802 19.2897 6.12638C18.6177 6.06213 17.9943 6.4147 17.6856 6.98594L16.1261 9.87237L14.9075 7.10422ZM11.5075 8.52572C12.0668 8.44603 12.6236 8.38769 13.0516 8.3486L14.5589 11.7725C15.1148 13.0353 16.8782 13.1086 17.535 11.8929L19.4471 8.35398C20.3297 8.45016 21.7155 8.64129 22.4831 8.93056C22.5609 8.9599 22.7999 9.10299 23.2073 9.44391C23.582 9.75746 24.0125 10.1634 24.4555 10.6066C25.1311 11.2825 25.8054 12.0148 26.3079 12.5747L23.426 14.5514C22.9732 14.862 22.7045 15.3755 22.7045 15.9221V25.7057H9.34594V15.9221C9.34594 15.3755 9.07722 14.862 8.62448 14.5514L5.76791 12.592C6.29559 12.03 7.00098 11.2946 7.69845 10.6153C8.1553 10.1703 8.59719 9.76082 8.97664 9.44329C9.16639 9.2845 9.33077 9.15694 9.46645 9.06238C9.53381 9.01545 9.58879 8.98036 9.63189 8.95523C9.65312 8.94286 9.66967 8.93395 9.68177 8.92783C9.69405 8.92163 9.69897 8.91962 9.69897 8.91962C10.0488 8.7768 10.7201 8.63792 11.5075 8.52572Z" fill="currentColor"/>
|
|
4
4
|
<path d="M30.2528 21.8121C29.8846 21.8121 29.5862 21.5136 29.5862 21.1454V20.0645C29.5862 19.6963 29.8846 19.3978 30.2528 19.3978H36.3481C36.7163 19.3978 37.0147 19.6963 37.0147 20.0645V21.1454C37.0147 21.5136 36.7163 21.8121 36.3481 21.8121H30.2528Z" fill="currentColor"/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let e=[{id:"setting",note:'This button will be changed dynamically based on the third-party accelerated checkout method. <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/online-store/dynamic-checkout">Learn more</a>',controls:[{id:"label",label:"Label",type:"input",default:"Buy it now"},{id:"enableHoverEffect",type:"toggle",default:!0}]},{id:"style",controls:[{id:"typo",type:"typography-v2",label:"Typography",default:{type:"paragraph-1",attrs:{color:"text-3"}},compoDefaultValue:{attrs:{color:"text-3"}},hiddenSetting:{textAlign:!0},ignoreReRender:!0},{id:"transform",label:"Text Transform",type:"select",options:[{value:"default",label:"None"},{value:"capitalize",label:"Capitalize"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}],default:"default"},{id:"backgroundColorV2",type:"color-picker-v2",default:{normal:"brand",hover:"highlight"},compoDefaultValue:{normal:"brand",hover:"highlight"},enableGradient:!0},{id:"backgroundImage",type:"background-image",compoDefaultValue:{normal:{size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480,hiddenSEO:!0}},hover:{size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480,hiddenSEO:!0}}}},{id:"behavior-state",type:"behavior-state",controls:[{id:"backgroundColor",type:"colorpicker",label:"Background Color",default:{normal:"brand",hover:"highlight"},state:{hover:!0,normal:!0}},{id:"textColor",type:"color-picker-v2",default:{normal:"text-3"},compoDefaultValue:{normal:"text-3"},state:{hover:!0,normal:!0},enableGradient:!1},{id:"borderBtnV2",type:"border-v2",default:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}},compoDefaultValue:{normal:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"},hover:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"}}},{id:"borderBtn",type:"border",label:"Border Style",default:{normal:{border:"none",isCustom:!0,position:"all",borderWidth:"1px",width:"1px 1px 1px 1px"}},state:{hover:!0,normal:!0}},{id:"hasBoxShadowBtn",type:"toggle",label:"Enable Button Shadow",default:{normal:!1},state:{normal:!0,hover:!0}},{id:"boxShadowBtn",type:"shadow-v2",default:{normal:{}},compoDefaultValue:{normal:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}},{id:"roundedBtnV2",type:"corner-v2",default:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}},compoDefaultValue:{normal:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"},hover:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}},{id:"roundedBtn",type:"radius-preset",label:"Border Radius",default:{normal:{radiusType:"none"}},state:{hover:!0,normal:!0}}]},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"
|
|
1
|
+
let e=[{id:"setting",note:'This button will be changed dynamically based on the third-party accelerated checkout method. <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/online-store/dynamic-checkout">Learn more</a>',controls:[{id:"label",label:"Label",type:"input",default:"Buy it now"},{id:"enableHoverEffect",type:"toggle",default:!0}]},{id:"style",controls:[{id:"typo",type:"typography-v2",label:"Typography",default:{type:"paragraph-1",attrs:{color:"text-3"}},compoDefaultValue:{attrs:{color:"text-3"}},hiddenSetting:{textAlign:!0},ignoreReRender:!0},{id:"transform",label:"Text Transform",type:"select",options:[{value:"default",label:"None"},{value:"capitalize",label:"Capitalize"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}],default:"default"},{id:"backgroundColorV2",type:"color-picker-v2",default:{normal:"brand",hover:"highlight"},compoDefaultValue:{normal:"brand",hover:"highlight"},enableGradient:!0},{id:"backgroundImage",type:"background-image",compoDefaultValue:{normal:{size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480,hiddenSEO:!0}},hover:{size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480,hiddenSEO:!0}}}},{id:"behavior-state",type:"behavior-state",controls:[{id:"backgroundColor",type:"colorpicker",label:"Background Color",default:{normal:"brand",hover:"highlight"},state:{hover:!0,normal:!0}},{id:"textColor",type:"color-picker-v2",default:{normal:"text-3"},compoDefaultValue:{normal:"text-3"},state:{hover:!0,normal:!0},enableGradient:!1},{id:"borderBtnV2",type:"border-v2",default:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}},compoDefaultValue:{normal:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"},hover:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"}}},{id:"borderBtn",type:"border",label:"Border Style",default:{normal:{border:"none",isCustom:!0,position:"all",borderWidth:"1px",width:"1px 1px 1px 1px"}},state:{hover:!0,normal:!0}},{id:"hasBoxShadowBtn",type:"toggle",label:"Enable Button Shadow",default:{normal:!1},state:{normal:!0,hover:!0}},{id:"boxShadowBtn",type:"shadow-v2",default:{normal:{}},compoDefaultValue:{normal:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}},{id:"roundedBtnV2",type:"corner-v2",default:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}},compoDefaultValue:{normal:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"},hover:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}},{id:"roundedBtn",type:"radius-preset",label:"Border Radius",default:{normal:{radiusType:"none"}},state:{hover:!0,normal:!0}}]},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"btnSpacing",label:"Inside space",type:"size",default:{type:"medium"},ignoreReRender:!0},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0}}},{id:"width",type:"input:unit",label:"Width",emptyOnClear:!0,placeholder:"Auto",min:0,units:["px","%"],devices:{desktop:{default:void 0}}},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"100%",height:"Auto",padding:{type:"medium",top:"12px",bottom:"12px",left:"24px",right:"24px"}}}},settingConfig:{width:{displayOptions:["full","auto","small","large","medium"],sizeConfig:{small:"100px",medium:"116px",large:"132px"}},height:{displayOptions:["auto","small","large","medium"],sizeConfig:{small:"28px",medium:"36px",large:"44px"}}},hiddenSettings:["shape","gap"]}]}];export{e as DynamicCheckoutSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let e=[{id:"setting",controls:[{id:"layout",type:"layout",isProductLayout:!0,devices:{desktop:{default:{cols:[6,6],display:"fill"}}}},{id:"horizontalAlign",type:"option:value",options:[{label:"Start",value:"start",iconName:"gp-align-left"},{label:"Center",value:"center",iconName:"gp-align-center"},{label:"End",value:"end",iconName:"gp-align-right"}],devices:{desktop:{default:"start"}}},{id:"verticalAlign",type:"option:value",options:[{label:"Start",value:"start",tooltip:"Align top",iconName:"gp-align-top"},{label:"Center",value:"center",tooltip:"Align center",iconName:"gp-align-center-vertical"},{label:"End",value:"end",tooltip:"Align bottom",iconName:"gp-align-bottom"},{label:"Between",value:"space-between",tooltip:"Distribute vertical spacing",iconName:"gp-justify-content-space-between"}],devices:{desktop:{default:"start"}}},{id:"productSetting",type:"product",label:"Select Product",isMultiple:!1},{id:"isSyncProduct",type:"sync-product-properties",default:!0},{id:"
|
|
1
|
+
let e=[{id:"setting",controls:[{id:"layout",type:"layout",isProductLayout:!0,devices:{desktop:{default:{cols:[6,6],display:"fill"}}}},{id:"horizontalAlign",type:"option:value",options:[{label:"Start",value:"start",iconName:"gp-align-left"},{label:"Center",value:"center",iconName:"gp-align-center"},{label:"End",value:"end",iconName:"gp-align-right"}],devices:{desktop:{default:"start"}}},{id:"verticalAlign",type:"option:value",options:[{label:"Start",value:"start",tooltip:"Align top",iconName:"gp-align-top"},{label:"Center",value:"center",tooltip:"Align center",iconName:"gp-align-center-vertical"},{label:"End",value:"end",tooltip:"Align bottom",iconName:"gp-align-bottom"},{label:"Between",value:"space-between",tooltip:"Distribute vertical spacing",iconName:"gp-justify-content-space-between"}],devices:{desktop:{default:"start"}}},{id:"productSetting",type:"product",label:"Select Product",isMultiple:!1},{id:"isSyncProduct",type:"sync-product-properties",default:!0},{id:"selectVariantDefault",type:"select-variant",label:"Select Default Variant",hide:!0},{id:"inlineAlignment",type:"option:value",options:[{label:"Start",value:"start",iconName:"gp-justify-content-top"},{label:"Center",value:"center",iconName:"gp-justify-content-center"},{label:"End",value:"end",iconName:"gp-justify-content-bottom"}],default:"start"},{id:"blockAlignment",type:"option:value",options:[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"End",value:"end"}],default:"start"},{id:"discountType",label:"Discount",type:"select",options:[{label:"Percentage",value:"PERCENTAGE"},{label:"Fixed change",value:"FIXED_AMOUNT"}],default:"PERCENTAGE"},{id:"discountValue",type:"product-input-currency-unit",label:"",default:0},{id:"shippingFeeType",label:"Shipping fee",type:"select",options:[{label:"Free",value:"free"},{label:"Fixed change",value:"fixedChange"},{label:"Charge per unit",value:"chargePerUnit"}],default:"free"},{id:"shippingFeeValue",type:"product-input-currency-unit",label:"",default:0}]},{id:"style",controls:[{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1},tablet:{default:!1},mobile:{default:!1}}},{id:"width",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,isRowWith:!0,devices:{desktop:{default:"default"}},displayOptions:[{label:"Full",value:"100%",showValue:!0},{label:"Default",value:"default",showValue:!0}]},{id:"verticalGutter",type:"input:slider",units:["px"],min:0,max:80,ignoreMax:!0,devices:{desktop:{default:"32px"}}},{id:"verticalGutterMobile",type:"input:slider",units:["px"],min:0,max:80,ignoreMax:!0,devices:{desktop:{default:"16px"}}},{id:"columnGap",type:"input:slider",min:0,max:100,step:1,units:["%"],ignoreMax:!0,devices:{desktop:{default:"1%"}}},{id:"background",type:"background-media",ignoreReRender:!0,showVideo:!1,hideImage:!0,devices:{desktop:{default:{type:"color",color:"transparent"}}},compoDefaultValue:{desktop:{default:{type:"color",color:"#DDDDDD"}}}},{id:"preloadBgImage",type:"toggle",label:"Preload",default:!1}]}];export{e as ProductSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let e=[{id:"setting",controls:[{id:"displayTrigger",type:"display-trigger-badge",default:[{triggerEvent:"inventory_status",type:"in_stock",quantityType:"exact_or_above",from:"1",to:"15",priority:0,conditionType:"exact_or_above"}]},{id:"
|
|
1
|
+
let e=[{id:"setting",controls:[{id:"displayTrigger",type:"display-trigger-badge",default:[{triggerEvent:"inventory_status",type:"in_stock",quantityType:"exact_or_above",from:"1",to:"15",priority:0,conditionType:"exact_or_above"}]},{id:"image",type:"image",label:"Pick Image",default:{src:"https://cdn.shopify.com/s/files/1/0697/6182/7064/files/gempages_523190969722471488-fc9fecb6-26b8-4836-b417-2dfb9ea43bd5.png?v=1723733677"}},{id:"shape",type:"badge-style",label:"Content",iconViewBox:"0 0 80 48",enableItemBackground:!0,itemPerRow:2,itemSpacing:"large",default:"horizontal_rectangle",options:[{value:"image",label:"Image",type:"badge-layout",iconName:"gp-product-badge-image"},{value:"horizontal_rectangle",label:"Text horizontal",type:"badge-layout",iconName:"gp-product-badge-horizontal-rectangle"},{value:"ribbon",label:"Text corner 1",type:"badge-layout",iconName:"gp-product-badge-ribbon"},{value:"ribbon_2",label:"Text ribbon 1",type:"badge-layout",iconName:"gp-product-badge-ribbon-2"},{value:"triangle",label:"Text corner 2",type:"badge-layout",iconName:"gp-product-badge-triangle"},{value:"ribbon_3",label:"Text ribbon 2",type:"badge-layout",iconName:"gp-product-badge-ribbon-3"},{value:"vertical_rectangle",label:"Text vertical",type:"badge-layout",iconName:"gp-product-badge-vertical-rectangle"},{value:"star",label:"Text star",type:"badge-layout",iconName:"gp-product-badge-star"},{value:"square",label:"Text square",type:"badge-layout",iconName:"gp-product-badge-square"}]},{id:"displayContent",type:"textarea",default:"Sale {percent_discount} off",minHeight:72,inputClass:"!pr-36",autoHeight:!0,showPlusBtn:!0,isFocusToBottom:!0,defaultRows:1,suggestContents:[{message:"{percent_discount}",eg:"E.g: Save 20%"},{message:"{amount_discount}",eg:"E.g: Save $20"},{message:"{min_price}",eg:"E.g: Start from $20"},{message:"{inventory_quantity}",eg:"E.g: Only 3 items left",tooltip:`Only work with product enable “Track inventory”`}]},{id:"contentBanner",type:"banner",message:`{inventory_quantity} Only work with product enable “Track inventory”`,closable:!0},{id:"contentType",label:"Shape",type:"input",default:"text"},{id:"positionWithImage",type:"input",default:"outside"}]},{id:"style",controls:[{id:"typo",type:"typography-v2",ignoreReRender:!0,default:{type:"paragraph-1",attrs:{color:"#EAEAEA"}},compoDefaultValue:{attrs:{color:"#EAEAEA"}},hiddenSetting:{textAlign:!0}},{id:"position",type:"custom-position",ignoreValue:["center"],devices:{desktop:{default:{placement:"top-left",topGap:"0",leftGap:"0",bottomGap:"0",rightGap:"0"}}}},{id:"badgeColorV2",type:"color-picker-v2",devices:{desktop:{default:"#C62A33"}},enableGradient:!0,compoDefaultValue:{desktop:{default:"#C62A33"}}},{id:"textColor",type:"background-color-picker",label:"Text color",mode:"solid",default:"text-3"},{id:"wrapperBorder",type:"border"},{id:"textBadgeBorder",type:"border-v2",devices:{desktop:{default:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"line-3",isCustom:!0}}},compoDefaultValue:{desktop:{default:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"}}}},{id:"imageBadgeBorder",type:"border-v2",devices:{desktop:{default:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"line-1",isCustom:!0}}},compoDefaultValue:{desktop:{default:{border:"solid",color:"line-1",width:"1px",borderWidth:"1px"}}}},{id:"textBadgeCorner",type:"corner-v2",devices:{desktop:{default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},compoDefaultValue:{desktop:{default:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}}},{id:"imageBadgeCorner",type:"corner-v2",devices:{desktop:{default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},compoDefaultValue:{desktop:{default:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}}},{id:"hasShadow",type:"toggle",default:!1},{id:"textSizeV2",type:"size-setting",hiddenShowMore:!0,disableShapeLinkedTooltip:"The ratio is locked to ensure the badge shape displays correctly",devices:{desktop:{default:{width:"auto",height:"auto",shapeLinked:!1,disableShapeLinked:!0,hiddenShape:!0,shape:"custom",padding:{top:"8px",bottom:"8px",left:"12px",right:"12px"}}}},settingConfig:{width:{displayOptions:["auto"]},height:{displayOptions:["auto"]}},hiddenSettings:["gap","proportion","padding"]},{id:"imageSizeV2",type:"size-setting",hiddenShowMore:!0,disableShapeLinkedTooltip:"The ratio is locked to ensure the badge shape displays correctly",devices:{desktop:{default:{width:"20%",height:"auto",shapeLinked:!0,hiddenShape:!1,shape:"original",disableShapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","auto","small","large","medium"],sizeConfig:{small:"100px",medium:"116px",large:"132px"}},height:{displayOptions:["auto","small","large","medium"],sizeConfig:{small:"28px",medium:"36px",large:"44px"}}},hiddenSettings:["gap","padding","proportion"]},{id:"align",label:"Align",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"textBadgeShadow",type:"shadow-v2",devices:{desktop:{default:{}}},compoDefaultValue:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}}},{id:"imageBadgeShadow",type:"shadow-v2",devices:{desktop:{}},compoDefaultValue:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}}}]}];export{e as ProductBadgeSettings};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
let e=[{id:"setting",controls:[{id:"
|
|
1
|
+
let e=[{id:"setting",controls:[{id:"buttonLayout",label:"Layout",type:"layout-selector",iconViewBox:"0 0 72 72",enableItemBackground:!0,itemSpacing:"large",itemPerRow:1,default:"cart-icon",options:[{value:"cart-full",iconName:"gp-product-button-cart-full-layout"},{value:"cart-price",iconName:"gp-product-button-cart-price-layout"},{value:"cart-only",iconName:"gp-product-button-cart-only-layout"},{value:"cart-price-icon",iconName:"gp-product-button-price-icon-layout"},{value:"cart-icon",iconName:"gp-product-button-cart-item-layout"}]},{id:"priceTypo",type:"typography-v2",default:{type:"paragraph-1",attrs:{color:"text-3"}},hiddenSetting:{color:!0,textAlign:!0},ignoreReRender:!0},{id:"compareAtPriceTypo",type:"typography-v2",default:{type:"paragraph-1",attrs:{color:"text-3"}},hiddenSetting:{color:!0,textAlign:!0},ignoreReRender:!0},{id:"opacityPrice",type:"input:slider",step:1,min:0,max:100,ignoreMax:!0,default:50},{id:"priceLayout",type:"option:illustration",enableTooltip:!1,label:"Layout",options:[{value:"price-only",type:"image",svgName:"gp-product-button-price-only-layout"},{value:"price-before",type:"image",svgName:"gp-product-button-price-before-layout"},{value:"price-after",type:"image",svgName:"gp-product-button-price-after-layout"}],default:"price-only"},{id:"label",type:"input",label:"Button Text",default:"Add to cart"},{id:"outOfStockLabel",type:"input",label:"Out Of Stock Message",clearButton:!1,default:"Out of stock"},{id:"unavailableLabel",type:"input",label:"Unavailable",default:"Unavailable"},{id:"actionEffect",label:"After Add To Cart Action",type:"select",options:[{title:"Keep shopping",value:"continue-shopping"},{title:"Go to checkout",value:"buy-now"},{title:"Open cart",value:"open-cart-drawer"},{title:"Open page",value:"go-to-url"}],default:"open-cart-drawer"},{id:"customURL",label:"Custom URL",type:"pick-link",default:{link:"/cart",target:"_self"},isHiddenOpenLinkSelect:!0,hide:!0},{id:"enableMessage",type:"toggle",default:!0},{id:"successMessage",type:"textarea",label:"Success",minHeight:58,default:"Add product to cart successfully",autoHeight:!0},{id:"errorMessage",type:"textarea",label:"Error",minHeight:58,default:"Cannot add product to cart",autoHeight:!0},{id:"variantSelectionRequiredMessage",type:"textarea",label:"Error Message",minHeight:78,default:"Please select a variant to add product to cart",autoHeight:!0},{id:"iconSvg",label:"SVG icon",type:"icon",hide:!0,default:`<svg height="20" width="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508414779109605736">
|
|
2
2
|
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M233.21,56.31A12,12,0,0,0,224,52H66L60.53,21.85A12,12,0,0,0,48.73,12H24a12,12,0,0,0,0,24H38.71L63.62,173a28,28,0,0,0,4.07,10.21A32,32,0,1,0,123,196h34a32,32,0,1,0,31-24H91.17a4,4,0,0,1-3.93-3.28L84.92,156H196.1a28,28,0,0,0,27.55-23l12.16-66.86A12,12,0,0,0,233.21,56.31ZM100,204a8,8,0,1,1-8-8A8,8,0,0,1,100,204Zm88,8a8,8,0,1,1,8-8A8,8,0,0,1,188,212Zm12-83.28A4,4,0,0,1,196.1,132H80.56L70.38,76H209.62Z"></path></svg>`,compoDefaultValue:`<svg height="20" width="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508414779109605736">
|
|
3
|
-
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M233.21,56.31A12,12,0,0,0,224,52H66L60.53,21.85A12,12,0,0,0,48.73,12H24a12,12,0,0,0,0,24H38.71L63.62,173a28,28,0,0,0,4.07,10.21A32,32,0,1,0,123,196h34a32,32,0,1,0,31-24H91.17a4,4,0,0,1-3.93-3.28L84.92,156H196.1a28,28,0,0,0,27.55-23l12.16-66.86A12,12,0,0,0,233.21,56.31ZM100,204a8,8,0,1,1-8-8A8,8,0,0,1,100,204Zm88,8a8,8,0,1,1,8-8A8,8,0,0,1,188,212Zm12-83.28A4,4,0,0,1,196.1,132H80.56L70.38,76H209.62Z"></path></svg>`},{id:"iconAlign",label:"Icon Alignment",type:"option:value",hide:!0,options:[{label:"Left",value:"left"},{label:"Right",value:"right"}],default:"left"}
|
|
3
|
+
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M233.21,56.31A12,12,0,0,0,224,52H66L60.53,21.85A12,12,0,0,0,48.73,12H24a12,12,0,0,0,0,24H38.71L63.62,173a28,28,0,0,0,4.07,10.21A32,32,0,1,0,123,196h34a32,32,0,1,0,31-24H91.17a4,4,0,0,1-3.93-3.28L84.92,156H196.1a28,28,0,0,0,27.55-23l12.16-66.86A12,12,0,0,0,233.21,56.31ZM100,204a8,8,0,1,1-8-8A8,8,0,0,1,100,204Zm88,8a8,8,0,1,1,8-8A8,8,0,0,1,188,212Zm12-83.28A4,4,0,0,1,196.1,132H80.56L70.38,76H209.62Z"></path></svg>`},{id:"iconAlign",label:"Icon Alignment",type:"option:value",hide:!0,options:[{label:"Left",value:"left"},{label:"Right",value:"right"}],default:"left"},{id:"errorType",type:"option:value",options:[{value:"built-in",label:"Shopify",tooltip:"Show default error message from Shopify"},{value:"custom",label:"Custom",tooltip:"Customize error message"}],default:"built-in"},{id:"shouldClearSpace",label:"",type:"toggle",default:!1},{id:"separator",label:"Separator",type:"option:value",options:[{value:"horizontal-line",iconName:"gp-product-button-horizontal-line-separator"},{value:"dot",iconName:"gp-product-button-dot-separator"},{value:"vertical-line",iconName:"gp-product-button-vertical-line-separator"}],default:"horizontal-line"},{id:"enableHoverEffect",label:"",type:"toggle",default:!0}]},{id:"style",controls:[{id:"iconSpacing",type:"input:slider",units:["px"],step:1,min:0,max:40,ignoreMax:!0,devices:{desktop:{default:"8px"}}},{id:"behavior-state",type:"behavior-state",controls:[{id:"backgroundColor",type:"colorpicker",label:"Background Color",default:{normal:"brand",hover:"highlight"},state:{hover:!0,normal:!0}},{id:"textColor",type:"color-picker-v2",default:{normal:"text-3"},compoDefaultValue:{normal:"text-3"},state:{hover:!0,normal:!0},enableGradient:!1},{id:"borderBtn",type:"border",label:"Border Style",default:{normal:{border:"none",isCustom:!0,position:"all",borderWidth:"1px",width:"1px 1px 1px 1px"}},state:{hover:!0,normal:!0}},{id:"hasBoxShadowBtn",type:"toggle",label:"Enable Button Shadow",default:{normal:!1},state:{normal:!0,hover:!0}},{id:"roundedBtn",type:"radius-preset",label:"Border Radius",default:{normal:{radiusType:"none"}},state:{hover:!0,normal:!0}}]},{id:"backgroundColorV2",type:"color-picker-v2",default:{normal:"brand",hover:"highlight"},compoDefaultValue:{normal:"brand",hover:"highlight"},enableGradient:!0},{id:"boxShadowBtn",type:"shadow-v2",default:{normal:{}},compoDefaultValue:{normal:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}},{id:"roundedBtnV2",type:"corner-v2",default:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}},compoDefaultValue:{normal:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"},hover:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}},{id:"borderBtnV2",type:"border-v2",default:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}},compoDefaultValue:{normal:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"},hover:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"}}},{id:"oosBackgroundV2",type:"color-picker-v2",default:{normal:"#B7B7B7"},compoDefaultValue:{normal:"#B7B7B7"},enableGradient:!0},{id:"oosTextColorV2",type:"color-picker-v2",default:{normal:"text-3"},compoDefaultValue:{normal:"text-3"}},{id:"oosBorderV2",type:"border-v2"},{id:"oosEnableShadow",type:"toggle",label:"Enable Button Shadow",default:!1,hide:!0},{id:"oosShadow",type:"shadow-v2",compoDefaultValue:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}},{id:"oosRoundedV2",label:"Border Radius",type:"corner-v2",compoDefaultValue:{normal:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"typo",type:"typography-v2",label:"Typography",default:{type:"paragraph-1",attrs:{color:"text-3"}},compoDefaultValue:{attrs:{color:"text-3"}},hiddenSetting:{textAlign:!0},ignoreReRender:!0},{id:"enableIcon",type:"toggle",default:!0},{id:"enablePrice",type:"toggle",default:!1},{id:"enableSeparator",type:"toggle",default:!1},{id:"transform",label:"Text Transform",type:"select",options:[{value:"default",title:"None"},{value:"capitalize",title:"Capitalize"},{value:"uppercase",title:"Uppercase"},{value:"lowercase",title:"Lowercase"}],default:"default"},{id:"btnSpacing",label:"Inside space",type:"size",default:{type:"medium"},ignoreReRender:!0},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"width",type:"input:unit",label:"Width",emptyOnClear:!0,min:0,units:["px","%"],hide:!0,devices:{desktop:{default:"100%"}}},{hide:!0,id:"iconSizeAuto",type:"toggle",label:"Auto Size",default:!0},{hide:!0,id:"size",label:"Size Icon",type:"select",options:[{title:"Large",value:"1.2em"},{title:"medium",value:"1em"},{title:"Small",value:"0.8em"}],devices:{desktop:{default:"1em"}}},{id:"iconDimension",type:"input:slider",label:"Size",hide:!0,min:0,max:100,step:1,units:["px","em","rem"],devices:{desktop:{default:"24px"}}},{id:"successTypo",type:"typography-v2",label:"Typography",default:{type:"paragraph-2",attrs:{color:"success"}},ignoreReRender:!0,hiddenSetting:{textAlign:!0}},{id:"successColor",type:"colorpicker",label:"Text Color",default:"success"},{id:"errorTypo",type:"typography-v2",label:"Typography",default:{type:"paragraph-2",attrs:{color:"error"}},ignoreReRender:!0,hiddenSetting:{textAlign:!0}},{id:"errorColor",type:"colorpicker",label:"Text Color",default:"error"},{id:"isCustomOutOfStock",label:"Custom Style",type:"toggle",default:!1},{id:"oosBackground",type:"colorpicker",label:"Background Color",default:"brand",hide:!0},{id:"oosTextColor",type:"colorpicker",label:"Text Color",default:"text-3",hide:!0},{id:"oosBorder",type:"border",label:"Border Style",default:{normal:{borderType:"none",border:"none",isCustom:!1,borderWidth:"1px",width:"1px 1px 1px 1px"}},hide:!0},{id:"oosRounded",type:"radius-preset",label:"Border Radius",default:{radiusType:"none"},hide:!0},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"100%",height:"Auto",padding:{type:"medium",top:"12px",bottom:"12px",left:"24px",right:"24px"}}}},settingConfig:{width:{displayOptions:["full","auto"]},height:{displayOptions:["auto"]}},hiddenSettings:["shape","gap"]}]}];export{e as ProductButtonSettings};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ProductImageSettingsV2 as t}from"./configs/
|
|
1
|
+
import{ProductImageSettingsV2 as t}from"./configs/settings/index.js";import{SettingUIV2 as e}from"./configs/ui-v2.js";import{SettingUIV1 as i}from"./configs/ui-v1.js";let o={tag:"ProductImagesV2",label:"Product Images",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M13.3337 14.6666C13.3337 16.1333 12.1337 17.3333 10.667 17.3333C9.20033 17.3333 8.00033 16.1333 8.00033 14.6666C8.00033 13.2 9.20033 12 10.667 12C12.1337 12 13.3337 13.2 13.3337 14.6666ZM27.3741 14.8404C26.9836 14.4499 26.3504 14.4499 25.9599 14.8404L16.667 24.1333L14.0346 21.6062C13.6442 21.2314 13.0267 21.2352 12.6409 21.6145L5.33366 28.8V9.33329H34.667V22.1333L27.3741 14.8404ZM34.667 30.6666H23.2003L18.5337 26L26.667 17.8666L34.667 25.8666V30.6666ZM7.33366 30.6666L13.467 24.6666L19.467 30.6666H7.33366ZM3.66699 6.66663C3.11471 6.66663 2.66699 7.11434 2.66699 7.66663V31.4666V32.3333C2.66699 32.8856 3.11471 33.3333 3.66699 33.3333H25.867H36.3337C36.8859 33.3333 37.3337 32.8856 37.3337 32.3333V30.6666V28.5333V24.8V7.66662C37.3337 7.11434 36.8859 6.66663 36.3337 6.66663H3.66699Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ProductImageSettingsV2 as t}from"./configs/
|
|
1
|
+
import{ProductImageSettingsV2 as t}from"./configs/settings/index.js";import{SettingUIV2 as e}from"./configs/ui-v2.js";import{SettingUIV1 as i}from"./configs/ui-v1.js";let o={tag:"ProductImagesV3",label:"Product Images",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M13.3337 14.6666C13.3337 16.1333 12.1337 17.3333 10.667 17.3333C9.20033 17.3333 8.00033 16.1333 8.00033 14.6666C8.00033 13.2 9.20033 12 10.667 12C12.1337 12 13.3337 13.2 13.3337 14.6666ZM27.3741 14.8404C26.9836 14.4499 26.3504 14.4499 25.9599 14.8404L16.667 24.1333L14.0346 21.6062C13.6442 21.2314 13.0267 21.2352 12.6409 21.6145L5.33366 28.8V9.33329H34.667V22.1333L27.3741 14.8404ZM34.667 30.6666H23.2003L18.5337 26L26.667 17.8666L34.667 25.8666V30.6666ZM7.33366 30.6666L13.467 24.6666L19.467 30.6666H7.33366ZM3.66699 6.66663C3.11471 6.66663 2.66699 7.11434 2.66699 7.66663V31.4666V32.3333C2.66699 32.8856 3.11471 33.3333 3.66699 33.3333H25.867H36.3337C36.8859 33.3333 37.3337 32.8856 37.3337 32.3333V30.6666V28.5333V24.8V7.66662C37.3337 7.11434 36.8859 6.66663 36.3337 6.66663H3.66699Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CarouselSettingsV2Setting as e,CarouselSettingsV2Style as t}from"../../../../carousel/settings/configs/settings.js";let l=[{id:"setting",controls:[{id:"productSetting",type:"product-list",label:"Select product list",default:{productSrc:"PickProduct",productIds:[],collectionId:"Latest",collectionHandle:"",relatedType:"related-product",relatedTag:["collection"],hasRelatedExclude:!1}},{id:"slidesToShow",type:"input:slider",min:1,max:6,isNumber:!0,label:"Products per rows ",devices:{desktop:{default:4},tablet:{default:3},mobile:{default:2}}},{id:"numberOfProducts",type:"input:slider",min:1,max:50,label:"Number of products",isNumber:!0,default:10,ignoreMax:!0},{id:"sameHeight",label:"Enable same height",type:"select",options:[{label:"Same height",value:!0},{label:"Fit content height",value:!1}],default:!0},...e]},{id:"style",controls:[{id:"layout",label:"Layout",type:"layout-selector",iconViewBox:"0 0 78 52",itemPerRow:2,itemSpacing:"large",default:"grid",options:[{label:"Grid",value:"grid",iconName:"gp-grid-layout"},{label:"Slider",value:"slider",iconName:"gp-slider-layout"}]},{id:"width",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,isRowWith:!0,devices:{desktop:{default:"default"}},displayOptions:[{label:"Full",value:"100%",showValue:!0},{label:"Default",value:"default",showValue:!0}]},{id:"height",label:"Height",type:"dropdown:input",inputType:"number",units:["px"],displayOptions:[{label:"Fit content",value:"Auto"}],devices:{}},{id:"horizontalGutter",label:"Row gap",type:"input:unit",fallbackValue:!0,min:0,units:["px","%"],devices:{desktop:{default:"16px"},mobile:{default:"16px"}}},{id:"verticalGutter",label:"Column gap",type:"input:unit",units:["px","%"],fallbackValue:!0,min:0,devices:{desktop:{default:"16px"},mobile:{default:"16px"}}},{id:"backgroundColor",type:"color-picker-v2",devices:{desktop:{default:"transparent"}},compoDefaultValue:{desktop:{default:"#DDDDDD"}},enableGradient:!0},{id:"backgroundImage",type:"background-image",devices:{desktop:{default:{}}},compoDefaultValue:{desktop:{default:{type:"image",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480,hiddenSEO:!0},repeat:"no-repeat",size:"cover",position:{x:50,y:50},attachment:"scroll",preload:!1}}}},{id:"preloadBgImage",type:"toggle",label:"Preload",default:!1},{id:"align",label:"Align",type:"segment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left"},{label:"Center",value:"center",type:"align",tooltip:"Align center"},{label:"Right",value:"right",type:"align",tooltip:"Align right"}],devices:{desktop:{default:"center"}}},...t]}];export{l as ProductListSettingsV2};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CarouselSettingsV2Setting as e,CarouselSettingsV2Style as t}from"../../../../carousel-v3/settings/configs/settings.js";let l=[{id:"setting",controls:[{id:"productSetting",type:"product-list",label:"Select product list",default:{productSrc:"PickProduct",productIds:[],collectionId:"Latest",collectionHandle:"",relatedType:"related-product",relatedTag:["collection"],hasRelatedExclude:!1}},{id:"slidesToShow",type:"input:slider",min:1,max:6,isNumber:!0,label:"Products per rows ",devices:{desktop:{default:4},tablet:{default:3},mobile:{default:2}},disableDecimal:!0},{id:"numberOfProducts",type:"input:slider",min:1,max:50,label:"Number of products",isNumber:!0,default:10,ignoreMax:!0,disableDecimal:!0},{id:"sameHeight",label:"Enable same height",type:"select",options:[{label:"Same height",value:!0},{label:"Fit content height",value:!1}],default:!0},...e]},{id:"style",controls:[{id:"layout",label:"Layout",type:"layout-selector",iconViewBox:"0 0 78 52",itemPerRow:2,itemSpacing:"large",default:"grid",options:[{label:"Grid",value:"grid",iconName:"gp-grid-layout"},{label:"Slider",value:"slider",iconName:"gp-slider-layout"}]},{id:"width",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,isRowWith:!0,devices:{desktop:{default:"default"}},displayOptions:[{label:"Full",value:"100%",showValue:!0},{label:"Default",value:"default",showValue:!0}]},{id:"height",label:"Height",type:"dropdown:input",inputType:"number",units:["px"],displayOptions:[{label:"Fit content",value:"Auto"}],devices:{}},{id:"horizontalGutter",label:"Row gap",type:"input:unit",fallbackValue:!0,min:0,units:["px","%"],devices:{desktop:{default:"16px"},mobile:{default:"16px"}}},{id:"verticalGutter",label:"Column gap",type:"input:unit",units:["px","%"],fallbackValue:!0,min:0,devices:{desktop:{default:"16px"},mobile:{default:"16px"}}},{id:"backgroundColor",type:"color-picker-v2",devices:{desktop:{default:"transparent"}},compoDefaultValue:{desktop:{default:"#DDDDDD"}},enableGradient:!0},{id:"backgroundImage",type:"background-image",devices:{desktop:{default:{}}},compoDefaultValue:{desktop:{default:{type:"image",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480,hiddenSEO:!0},repeat:"no-repeat",size:"cover",position:{x:50,y:50},attachment:"scroll",preload:!1}}}},{id:"preloadBgImage",type:"toggle",label:"Preload",default:!1},{id:"align",label:"Align",type:"segment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left"},{label:"Center",value:"center",type:"align",tooltip:"Align center"},{label:"Right",value:"right",type:"align",tooltip:"Align right"}],devices:{desktop:{default:"center"}}},...t]}];export{l as ProductListSettingsV2};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
let e=[{id:"setting",controls:[{id:"updatePrice",label:"Update price",type:"toggle",default:!0},{id:"hasButton",label:"Button",type:"toggle",default:!0},{id:"defaultQtyValue",label:"Text",type:"input:stepper",min:1,default:1},{id:"plusIcon",type:"icon",isHideClear:!0,customLabel:"Plus",info:"Choose from list or paste any SVG icon",default:`<svg height="20px" width="20px" data-name="plus-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817698760687976">
|
|
2
2
|
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"></path></svg>`},{id:"minusIcon",type:"icon",isHideClear:!0,customLabel:"Minus",info:"Choose from list or paste any SVG icon",default:`<svg height="20px" width="20px" data-name="minus-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817690725712232">
|
|
3
|
-
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"></path></svg>`},{id:"enableHoverInput",label:"Enable hover input",type:"toggle",default:!1},{id:"enableHoverButton",label:"Enable hover input",type:"toggle",default:!1}]},{id:"style",controls:[{id:"quantityLayout",label:"Style",type:"layout-selector",popoverLabel:"Style",iconViewBox:"0 0 80 48",enableItemBackground:!0,itemPerRow:2,itemSpacing:"large",options:[{label:"Square",value:"product-quantity-square",type:"p-quantity-layout",iconName:"gp-product-quantity-square"},{label:"Square with divider",value:"product-quantity-square-divider",type:"p-quantity-layout",iconName:"gp-product-quantity-square-divider"},{label:"Rounded",value:"product-quantity-rounded",type:"p-quantity-layout",iconName:"gp-product-quantity-rounded"},{label:"Rounded with divider",value:"product-quantity-rounded-divider",type:"p-quantity-layout",iconName:"gp-product-quantity-rounded-divider"},{label:"Square input only",value:"product-quantity-square-input-only",type:"p-quantity-layout",iconName:"gp-product-quantity-square-input-only"},{label:"Rounded input only",value:"product-quantity-rounded-input-only",type:"p-quantity-layout",iconName:"gp-product-quantity-rounded-input-only"}],default:"product-quantity-square"},{id:"
|
|
3
|
+
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"></path></svg>`},{id:"enableHoverInput",label:"Enable hover input",type:"toggle",default:!1},{id:"enableHoverButton",label:"Enable hover input",type:"toggle",default:!1}]},{id:"style",controls:[{id:"quantityLayout",label:"Style",type:"layout-selector",popoverLabel:"Style",iconViewBox:"0 0 80 48",enableItemBackground:!0,itemPerRow:2,itemSpacing:"large",options:[{label:"Square",value:"product-quantity-square",type:"p-quantity-layout",iconName:"gp-product-quantity-square"},{label:"Square with divider",value:"product-quantity-square-divider",type:"p-quantity-layout",iconName:"gp-product-quantity-square-divider"},{label:"Rounded",value:"product-quantity-rounded",type:"p-quantity-layout",iconName:"gp-product-quantity-rounded"},{label:"Rounded with divider",value:"product-quantity-rounded-divider",type:"p-quantity-layout",iconName:"gp-product-quantity-rounded-divider"},{label:"Square input only",value:"product-quantity-square-input-only",type:"p-quantity-layout",iconName:"gp-product-quantity-square-input-only"},{label:"Rounded input only",value:"product-quantity-rounded-input-only",type:"p-quantity-layout",iconName:"gp-product-quantity-rounded-input-only"}],default:"product-quantity-square"},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"quantityWidth",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,displayOptions:[{label:"Full",value:"100%",showValue:!0}],devices:{desktop:{default:"160px"}}},{id:"inputHeight",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,displayOptions:[{label:"Full",value:"100%",showValue:!0}],devices:{desktop:{default:"45px"}}},{id:"buttonWidth",type:"dropdown:input",label:"Button Width",inputType:"number",units:["px","%"],hideUnit:!1,displayOptions:[{label:"Full",value:"100%",showValue:!0}],devices:{desktop:{default:"45px"}}},{id:"iconSizeCustom",type:"input:stepper",includeUnit:"px",min:1,devices:{desktop:{default:"16px"}}},{id:"typo",type:"typography-combo",default:{type:"paragraph-1",attrs:{color:"text-1"},custom:{fontSize:{desktop:"16px",tablet:"16px",mobile:"14px"},lineHeight:{desktop:"120%",tablet:"180%",mobile:"180%"},fontWeight:"400",fontFamily:{value:"Assistant",type:"google"},hasShadowText:!1,textShadow:{enable:!1}}},ignoreReRender:!0,hiddenSetting:{transform:!0,textAlign:!0}},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"button-behavior-state",type:"behavior-state",label:"Button Style",hide:!0,controls:[{id:"textColor",type:"color-picker-v2",label:"Text Color",default:{normal:"text-1"},compoDefaultValue:{hover:"text-1"},state:{hover:!0,normal:!0}},{id:"inputBackgroundColor",type:"color-picker-v2",label:"Background Color",state:{hover:!0,normal:!0},compoDefaultValue:{normal:"highlight",hover:"highlight"},enableGradient:!0},{id:"buttonBackgroundColor",type:"color-picker-v2",label:"Button Background Color",state:{hover:!0,normal:!0},enableGradient:!0,compoDefaultValue:{normal:"brand",hover:"highlight"}},{id:"iconColor",type:"color-picker-v2",label:"Icon Color",default:{normal:"#121212"},compoDefaultValue:{hover:"text-2"},state:{hover:!0,normal:!0}}]},{id:"borderBtn",label:"Border",type:"border-v2",default:{normal:{}},compoDefaultValue:{normal:{border:"solid",color:"#212121",width:"1px",borderWidth:"1px"},hover:{border:"solid",color:"#212121",width:"1px",borderWidth:"1px"}},state:{hover:!0,normal:!0}},{id:"corner",label:"Corner",type:"corner-v2",default:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},{id:"backgroundColor",type:"color-picker-v2",label:"Background Color",devices:{desktop:{default:"#FFFFFF"}},enableGradient:!0},{id:"dividerColor",type:"color-picker-v2",label:"Divider Color",default:{normal:"line-3"},compoDefaultValue:{normal:"line-3"},state:{hover:!0,normal:!0}},{id:"dividerStroke",label:"Thickness",type:"input:stepper",min:1,default:{normal:1},state:{hover:!0,normal:!0}},{id:"inputBorder",label:"Input Border",type:"border-v2",default:{hover:{}},state:{hover:!0,normal:!0}},{id:"shapeBorder",type:"border-v2",devices:{desktop:{default:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"}}}},{id:"shapeRounded",type:"corner-v2",devices:{desktop:{default:{radiusType:"none"}}}},{id:"shapeShadow",type:"shadow-v2",devices:{desktop:{default:{}}},compoDefaultValue:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.20)",angle:45,enable:!0}}}}]}];export{e as ProductQuantitySettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{rectangleListPresetConfig as e}from"../swatches-style-config/rectangle-list.js";import{imageShopifyPresetConfig as t}from"../swatches-style-config/image-shopify.js";import{dropdownPresetConfig as l}from"../swatches-style-config/dropdown.js";import{imagePresetConfig as a}from"../swatches-style-config/image.js";import{colorPresetConfig as i}from"../swatches-style-config/color.js";let o=[{id:"setting",controls:[{id:"
|
|
1
|
+
import{rectangleListPresetConfig as e}from"../swatches-style-config/rectangle-list.js";import{imageShopifyPresetConfig as t}from"../swatches-style-config/image-shopify.js";import{dropdownPresetConfig as l}from"../swatches-style-config/dropdown.js";import{imagePresetConfig as a}from"../swatches-style-config/image.js";import{colorPresetConfig as i}from"../swatches-style-config/color.js";let o=[{id:"setting",controls:[{id:"optionType",label:"Option Label",type:"select",default:"singleOption",options:[{label:"Separated",value:"singleOption"},{label:"Combine",value:"groupOption"}]},{id:"label",label:"Option Label",type:"toggle",default:!0},{id:"optionAlign",label:"Alignment",type:"segment",devices:{desktop:{default:"left"}},options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}]},{id:"price",label:"Option Price",type:"option:value",hide:!0,default:!0,options:[{value:!0,label:"Yes"},{value:!1,label:"No"}]},{id:"showAsSwatches",label:"Use Option Swatches",type:"swatchesLink",hide:!0,default:!0,hyperlinkInfo:{beforeText:"Go to ",hyperlinkText:"Manage Swatches",afterText:" to configure options display as swatches",modal:"manage_swatches"}},{id:"combineFullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0}}},{id:"combineWidth",type:"input:unit",label:"Width",placeholder:"Auto",min:0,units:["px","%"],hide:!0,devices:{desktop:{default:"100%"}}},{id:"combineHeight",type:"input:unit",label:"Height",placeholder:"Auto",min:0,units:["px"],default:"45px"},{id:"variantPresets",label:"Use Option Swatches",type:"variant:presets",default:[{optionName:"base",optionType:"rectangle_list",presets:{...i,...e,...a,...t,...l}}],hyperlinkInfo:{modal:"manage_swatches"}},{id:"soldOutStyle",type:"select",default:"line",options:[{label:"None",value:"none"},{label:"Unclickable",value:"disable"},{label:"Cross-out",value:"line",icon:"gp-cross-out-one-line"}]},{id:"layout",label:"Layout",type:"option:illustration",iconViewBox:"0 0 66 45",enableItemBackground:!0,devices:{desktop:{default:"vertical"}},options:[{label:"Vertical",value:"vertical",type:"arrange",svgName:"gp-arrange-vertical"},{label:"Horizontal",value:"horizontal",type:"arrange",svgName:"gp-arrange-horizontal"}]},{id:"column",label:"Column",type:"select",devices:{desktop:{default:1}},options:[{label:"1 column",value:1},{label:"2 columns",value:2},{label:"3 columns",value:3},{label:"4 columns",value:4}]},{id:"hasPreSelected",type:"toggle",label:"hasPreSelected",default:!0},{id:"selectVariantDefault",type:"select-variant",label:"Select Default Variant",hide:!0},{id:"blankText",label:"Blank Option Text",type:"input",hide:!0,default:"Please select an option"},{id:"hasOnlyDefaultVariant",label:"Blank Option Text",type:"variant:default",hide:!0,default:!1}]},{id:"style",controls:[{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0}}},{id:"width",type:"input:unit",label:"Width",min:0,units:["px","%"],hide:!0,devices:{desktop:{default:"100%"}}},{id:"optionSpacing",label:"Option Spacing",type:"input:unit",units:["px"],placeholder:"Auto",default:"30px"},{id:"labelGap",label:"Gap",type:"input:slider",units:["px"],ignoreMax:!0,max:40,default:"8px"},{id:"swatchAutoWidth",label:"Auto Width",type:"toggle",devices:{desktop:{default:!0}}},{id:"swatchWidth",type:"input:unit",label:"Width",placeholder:"Auto Width",min:0,units:["px","%"],hide:!0,devices:{desktop:{default:"80px"}}},{id:"swatchHeight",type:"input:unit",label:"Height",placeholder:"Auto Height",min:0,units:["px"],devices:{desktop:{default:"45px"}}},{id:"swatchSpacing",label:"Swatch Spacing",type:"input:unit",units:["px"],placeholder:"Auto",default:"var(--g-s-m)"},{id:"marginBottom",label:"Margin Bottom",type:"input:slider",units:["px"],ignoreMax:!0,max:40,devices:{desktop:{default:"16px"}}},{id:"align",label:"Align",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"labelTypo",type:"typography-combo",label:"Typography",default:{type:"paragraph-2",attrs:{color:"text-1",bold:!0}},ignoreReRender:!0,hiddenSetting:{textAlign:!0}},{id:"labelColor",type:"color-picker-v2",label:"Text Color",default:"text-1"},{id:"optionTypo",type:"typography-v2",label:"Typography",default:{type:"paragraph-2"},compoDefaultValue:{attrs:{color:"text-2"}},hiddenSetting:{},ignoreReRender:!0},{id:"behavior-state",type:"behavior-state",label:"Option Value",controls:[{id:"optionBgColor",type:"color-picker-v2",label:"Background Color",default:{normal:"#FFFFFF"},compoDefaultValue:{normal:"#FFFFFF",hover:"highlight",active:"highlight"},state:{active:!0,hover:!0,normal:!0}},{id:"optionTextColor",type:"color-picker-v2",label:"Text Color",default:{normal:"text-2"},compoDefaultValue:{normal:"text-2"},state:{active:!0,hover:!0,normal:!0}},{id:"optionBorder",type:"border",label:"Border",default:{normal:{borderType:"style-2",border:"solid",color:"line-2",isCustom:!1,width:"1px 1px 1px 1px",borderWidth:"1px"},active:{borderType:"style-3",border:"solid",color:"line-3",isCustom:!1,width:"2px 2px 2px 2px",borderWidth:"2px"},hover:{borderType:"style-3",border:"solid",color:"line-3",isCustom:!1,width:"1px 1px 1px 1px",borderWidth:"1px"}},compoDefaultValue:{normal:{borderType:"style-2",border:"solid",color:"line-2"}}},{id:"optionRounded",type:"radius-preset",label:"Border Radius",default:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},{id:"optionHasShadow",type:"toggle",default:{normal:!1}},{id:"optionShadow",type:"shadow-v2",label:"Shadow",default:{normal:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.20)",angle:45,enable:!1}},compoDefaultValue:{normal:{type:"shadow-1",enable:!0,distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.20)",angle:45}}}]},{id:"dropdownItemWidth",type:"segment",label:"Dropdown Width",devices:{desktop:{default:"fill"},mobile:{default:"fill"},tablet:{default:"fill"}},options:[{label:"Fill",value:"fill"},{label:"Fixed",value:"fixed"}]},{id:"fixedDropdownWidth",type:"input:unit",label:"Fixed Width",units:["px","%"],devices:{desktop:{default:"240px"},mobile:{default:"240px"},tablet:{default:"240px"}}},{id:"swatchItemWidth",type:"segment",label:"Swatch Width",devices:{desktop:{default:"auto"}},options:[{label:"Fill",value:"auto"},{label:"Fixed",value:"fixed"}]},{id:"fixedDropdownWidth",type:"input:unit",label:"Fixed Width",units:["px","%"],devices:{desktop:{default:"240px"}}}]}];export{o as ProductVariantSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let t=(t,a
|
|
1
|
+
let t=(t,e,a)=>{let{displayByDefault:i,scarcityThreshold:s=0,template:l,outOfStockMessage:o,continueSelling:r,unlimitedQuantityMessage:d,hiddenCounterWhenOutOfStock:p}=e??{},{displayProgressBar:c,textColor:g,oosTextColor:n,typo:u}=a??{},y=u?.attrs?.color;return{"data-id":t?.uid??"","data-visible":"{{ should_display }}","data-policy":"{{ variant_policy_list | escape }}","gp-setting":JSON.stringify({displayByDefault:i,displayProgressBar:c,scarcityThreshold:s,template:l,outOfStockMessage:o,continueSelling:r,unlimitedQuantityMessage:d,color:g||"text-2",hiddenCounterWhenOutOfStock:p,oosTextColor:n,typoColor:y}).replaceAll('"',""")}},e=()=>({"data-slot-type":"message"}),a=t=>({"data-id":t?.uid??""}),i=(t,e)=>({"data-slot-type":t?"oos-icon":"has-stock-icon","data-visible":e?"true":"false"});export{i as getIconAttrs,t as getLiquidTagAttrs,e as getLiquidTextAttrs,a as getWrapperAttrs};
|
|
@@ -46,13 +46,13 @@ let e={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",t="
|
|
|
46
46
|
"{{ variant.id }}_management":"{{ variant.inventory_management }}"{% if forloop.last == false %},{% endif %}
|
|
47
47
|
{% endfor %}
|
|
48
48
|
}
|
|
49
|
-
{% endcapture %}`},$=(e,a)=>{let{templateStringDisplay:i,outOfStockMessageDisplay:t,continueSellingDisplay:n,unlimitedQuantityMessageDisplay:r}=e??{},{textColor:s}=a??{},l=s||"
|
|
49
|
+
{% endcapture %}`},$=(e,a)=>{let{templateStringDisplay:i,outOfStockMessageDisplay:t,continueSellingDisplay:n,unlimitedQuantityMessageDisplay:r}=e??{},{textColor:s}=a??{},l=s||"text-2";return`
|
|
50
50
|
<div class="gp-hidden gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px] gp-text-g-${l} gp-bg-g-${l}" >
|
|
51
51
|
<div id="template">${i}</div>
|
|
52
52
|
<div id="out-of-stock-message">${t}</div>
|
|
53
53
|
<div id="continue-selling">${n}</div>
|
|
54
54
|
<div id="unlimited-quantity-message">${r}</div>
|
|
55
|
-
</div>`},
|
|
55
|
+
</div>`},E=(e,a)=>{let i=b(a);if(e)return`
|
|
56
56
|
[data-id="${e}"] {
|
|
57
57
|
.gp-sc-progress-bar{
|
|
58
58
|
${i}
|
|
@@ -60,7 +60,7 @@ let e={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",t="
|
|
|
60
60
|
.gp-sc-progress-bar:before{
|
|
61
61
|
${i}
|
|
62
62
|
}
|
|
63
|
-
}`},
|
|
63
|
+
}`},b=e=>`
|
|
64
64
|
border-top-left-radius: ${e?.bbrr??"0px"};
|
|
65
65
|
border-top-right-radius: ${e?.bblr??"0px"};
|
|
66
66
|
border-bottom-left-radius: ${e?.btrr??"0px"};
|
|
@@ -68,4 +68,4 @@ let e={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",t="
|
|
|
68
68
|
<${t} class='${i}' style='background-color: ${a}'>
|
|
69
69
|
`:`
|
|
70
70
|
<${t} class='${i} gp-bg-g-${a}'>
|
|
71
|
-
`,e.replaceAll(`<${t}>`,n)},A=(e,a,t)=>{if(!e.includes(i))return e;let n="";return n=a.includes("#")?`<span style='--c: ${a}'><$quantity$></span>`:`<span class='gp-text-g-${a}'><$quantity$></span>`,t&&(n=n.replace("<$quantity$>",t.toString())),e.replaceAll(i,n)},N=e=>{let a={};return e["--size"]&&(a["--w"]=e["--size"]),e["--size-tablet"]&&(a["--w-tablet"]=e["--size-tablet"]),e["--size-mobile"]&&(a["--w-mobile"]=e["--size-mobile"]),a};export{T as CONTINUE_SELLING_WHEN_OUT_OF_STOCK,u as DEFAULT_FONT_SIZE,t as DEFAULT_HIGHLIGHT_TAG,p as DEFAULT_PROGRESS_BAR_HEIGHT,i as DEFAULT_QUANTITY_TEMPLATE,g as DEFAULT_RANGE_STEP,l as DEFAULT_REMAINING_PERCENT,s as DEFAULT_REMAINING_QUANTITY,r as DEFAULT_SCARCITY_THRESHOLD,v as MAX_PROGRESS_BAR_HEIGHT,d as MAX_REMAINING_PERCENT,y as MIN_PROGRESS_BAR_HEIGHT,_ as MIN_REMAINING_PERCENT,o as MIN_REMAINING_QUANTITY,n as NO_PRODUCT_LEFT,a as OUT_OF_STOCK,e as QUANTITY_SOURCE,N as convertSizeToWidth,
|
|
71
|
+
`,e.replaceAll(`<${t}>`,n)},A=(e,a,t)=>{if(!e.includes(i))return e;let n="";return n=a.includes("#")?`<span style='--c: ${a}'><$quantity$></span>`:`<span class='gp-text-g-${a}'><$quantity$></span>`,t&&(n=n.replace("<$quantity$>",t.toString())),e.replaceAll(i,n)},N=e=>{let a={};return e["--size"]&&(a["--w"]=e["--size"]),e["--size-tablet"]&&(a["--w-tablet"]=e["--size-tablet"]),e["--size-mobile"]&&(a["--w-mobile"]=e["--size-mobile"]),a};export{T as CONTINUE_SELLING_WHEN_OUT_OF_STOCK,u as DEFAULT_FONT_SIZE,t as DEFAULT_HIGHLIGHT_TAG,p as DEFAULT_PROGRESS_BAR_HEIGHT,i as DEFAULT_QUANTITY_TEMPLATE,g as DEFAULT_RANGE_STEP,l as DEFAULT_REMAINING_PERCENT,s as DEFAULT_REMAINING_QUANTITY,r as DEFAULT_SCARCITY_THRESHOLD,v as MAX_PROGRESS_BAR_HEIGHT,d as MAX_REMAINING_PERCENT,y as MIN_PROGRESS_BAR_HEIGHT,_ as MIN_REMAINING_PERCENT,o as MIN_REMAINING_QUANTITY,n as NO_PRODUCT_LEFT,a as OUT_OF_STOCK,e as QUANTITY_SOURCE,N as convertSizeToWidth,E as getInlineCss,f as getLiquidInitData,c as getLiquidTextContent,$ as getTextDisplayData,m as transformHighlighTag,A as transformNumberTag};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyle as t,getSingleColorVariable as e,makeStyleResponsive as r,makeWidth as o,composeTypographyStyle as s,getStyleShadow as l,genVariable as p,getShortName as a,composeTypographyV2 as c}from"@gem-sdk/core";import{convertSizeToWidth as n}from"./helpers.js";let u=s=>{let{width:l,textColor:p}=s??{};return{...r("w",o(l)),...t({c:e(p)})}},m=t=>{let{alignment:e}=t??{};return{...r("jc",e)}},y=(s,l,u)=>{let{iconColor:m,oosIconColor:y}=s??{};return{...t({c:e(u?y:m)}),...function(e,s){let{typo:l}=e??{},{iconSize:u}=s??{};if(u?.desktop)return{...r("w",o(u),"px")};let m=l&&!l.custom?p(a(`typography-${l.type}-fontSize`)):void 0,y=l&&l.custom?n(c(l.custom)):{};return m?t({w:m}):y}(s,l)}},i=(t,e)=>{let{typo:r,oosTextColor:o}=t??{},p={...r,attrs:{...r?.attrs,color:e?o:r?.attrs?.color}},a=s(p,t?.typography);return{...a,...l({value:r?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:r?.custom?.hasShadowText})}};export{u as getContainerStyles,y as getIconStyles,i as getTextStyles,m as getWrapperStyles};
|
|
1
|
+
import{makeStyle as t,getSingleColorVariable as e,makeStyleResponsive as r,makeWidth as o,composeTypographyStyle as s,getStyleShadow as l,genVariable as p,getShortName as a,composeTypographyV2 as c}from"@gem-sdk/core";import{convertSizeToWidth as n}from"./helpers.js";let u=s=>{let{width:l,textColor:p}=s??{};return{...r("w",o(l)),...t({c:e(p||"text-2")})}},m=t=>{let{alignment:e}=t??{};return{...r("jc",e)}},y=(s,l,u)=>{let{iconColor:m,oosIconColor:y}=s??{};return{...t({c:e(u?y:m)}),...function(e,s){let{typo:l}=e??{},{iconSize:u}=s??{};if(u?.desktop)return{...r("w",o(u),"px")};let m=l&&!l.custom?p(a(`typography-${l.type}-fontSize`)):void 0,y=l&&l.custom?n(c(l.custom)):{};return m?t({w:m}):y}(s,l)}},i=(t,e)=>{let{typo:r,oosTextColor:o}=t??{},p={...r,attrs:{...r?.attrs,color:e?o:r?.attrs?.color}},a=s(p,t?.typography);return{...a,...l({value:r?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:r?.custom?.hasShadowText})}};export{u as getContainerStyles,y as getIconStyles,i as getTextStyles,m as getWrapperStyles};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{NO_PRODUCT_LEFT as t,CONTINUE_SELLING_WHEN_OUT_OF_STOCK as e,transformHighlighTag as r,transformNumberTag as o}from"../common/helpers.js";import{useEditorMode as n,useCurrentVariant as
|
|
1
|
+
import{NO_PRODUCT_LEFT as t,CONTINUE_SELLING_WHEN_OUT_OF_STOCK as e,transformHighlighTag as r,transformNumberTag as o}from"../common/helpers.js";import{useEditorMode as n,useCurrentVariant as i}from"@gem-sdk/core";import{useMemo as u}from"react";let a=(a,l)=>{let s=n(),{template:c,outOfStockMessage:y,continueSelling:m,unlimitedQuantityMessage:d}=a??{},{textColor:f}=l??{},p=f||"text-2",h=i(),k=u(()=>Number(h?h.inventoryQuantity:0),[h]),C=!h||h.manageInventory,O=h?h.inventoryPolicy:"deny",g=C&&k<=t&&O!==e,v=O===e&&k<=t,S=!C&&d;function x(){return S?r(d,p):g?r(y||"",p):v?r(m||"",p):r(o(c||"",p,k),p)}let B=u(()=>{if("edit"===s)return!1;let t=!a?.displayByDefault&&k>=(a?.scarcityThreshold??0),e=a?.hiddenCounterWhenOutOfStock&&g;return t||e},[k,g,s,a?.displayByDefault,a?.hiddenCounterWhenOutOfStock,a?.scarcityThreshold]);return{outputMessage:()=>{let t=l?.typo?.attrs?.transform==="capitalize";return t?x()?.toLocaleLowerCase():x()},isOutOfStock:g,inventoryQuantity:k,shouldHideCounter:B}};export{a as useStockCounter};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{StockCounterSettingsV2 as o}from"./configs/settings
|
|
1
|
+
import{StockCounterSettingsV2 as o}from"./configs/settings.js";import{StockCounterPreset as t}from"./configs/presets.js";import{SettingUIV2 as e}from"./configs/ui-v2.js";let C={tag:"StockCounter",label:"Stock Counter",icon:`
|
|
2
2
|
<svg width="32" height="32" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M33.3905 11.2545C33.1953 11.4498 32.8787 11.4498 32.6834 11.2545L29.8643 8.43541C29.6691 8.24014 29.6691 7.92356 29.8643 7.7283L30.9203 6.67231C31.1156 6.47705 31.4322 6.47705 31.6274 6.67231L34.4465 9.49139C34.6418 9.68666 34.6418 10.0032 34.4465 10.1985L33.3905 11.2545ZM15.7838 4.68533C15.7838 4.96148 16.0077 5.18534 16.2838 5.18534H22.84C23.1161 5.18534 23.34 4.96148 23.34 4.68534V3.16663C23.34 2.89048 23.1161 2.66663 22.84 2.66663H16.2838C16.0077 2.66663 15.7838 2.89048 15.7838 3.16663V4.68533ZM28.3774 28.6093L20.8212 21.0532V10.3487C26.4883 10.9784 30.8961 15.7639 30.8961 21.5569C30.8961 24.2016 30.0145 26.7203 28.3774 28.6093ZM8.22769 21.5569C8.22769 15.7639 12.6354 10.9784 18.3025 10.3487V21.7724C18.3025 22.0376 18.4079 22.292 18.5954 22.4795L26.6143 30.4984C24.7252 32.0096 22.2065 33.0171 19.5619 33.0171C13.2651 32.8911 8.22769 27.8537 8.22769 21.5569ZM19.5619 7.70404C11.8798 7.70404 5.70898 13.8749 5.70898 21.5569C5.70898 29.239 11.8798 35.4098 19.5619 35.4098C27.2439 35.4098 33.4148 29.239 33.4148 21.5569C33.4148 13.8749 27.2439 7.70404 19.5619 7.70404Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{DEFAULT_SCARCITY_THRESHOLD as e,DEFAULT_QUANTITY_TEMPLATE as t,DEFAULT_RANGE_STEP as l,MAX_REMAINING_PERCENT as o,MIN_REMAINING_PERCENT as a,DEFAULT_REMAINING_PERCENT as i}from"../../common/helpers.js";let n=[{id:"setting",controls:[{id:"layout",label:"layout",type:"layout-selector",iconViewBox:"0 0 72 72",enableItemBackground:!0,itemPerRow:2,itemSpacing:"large",popoverLabel:"Layout",enableItemOpacity:!0,options:[{label:"Full",value:"full",type:"p-image-layout",iconName:"gp-stock-counter-full"},{label:"Text & progress bar",value:"text-and-progress-bar",type:"p-image-layout",iconName:"gp-stock-counter-text-and-progress-bar"},{label:"Icon & Text",value:"icon-and-text",type:"p-image-layout",iconName:"gp-stock-counter-icon-and-text"},{label:"Text only",value:"text-only",type:"p-image-layout",iconName:"gp-stock-counter-text-only"},{label:"Progress bar only",value:"progress-bar",type:"p-image-layout",iconName:"gp-stock-counter-progress-bar"}],default:"full"},{id:"displayByDefault",label:"Display By Default",type:"select",options:[{label:"Always show",value:!0},{label:"Show if under",value:!1}],default:!0},{id:"scarcityThreshold",label:"Scarcity Threshold",type:"input:stepper",default:e,info:"Only show if inventory quantity less than or equal to the above number."},{id:"oosIcon",label:"",type:"icon",default:'<svg data-name="package-regular" style="width: 100%; height: 100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"></path></svg>'},{id:"hiddenCounterWhenOutOfStock",type:"select",options:[{value:!1,label:"Show message"},{value:!0,label:"Hide counter"}],default:!1},{id:"template",label:"Template",type:"textarea",autoHeight:!0,showPlusBtn:!0,default:`Only ${t} left`,info:`Use ${t} to represent remaining number`,minHeight:56,suggestContents:[{message:"%number%",eg:"E.g: Only 2 left"}]},{id:"outOfStockMessage",label:"Out Of Stock Message",type:"input",default:"OUT OF STOCK"},{id:"continueSelling",label:"Continue Selling When Out Of Stock Message",type:"textarea",autoHeight:!0,default:"Restock soon! PREORDER NOW",info:"Turn out-of-stock productions into pre-orders"},{id:"unlimitedQuantityMessage",label:"Unlimited Quantity Message",type:"textarea",autoHeight:!0,default:"Hurry! LET BUY NOW"},{id:"showIcon",label:"Show Icon",type:"toggle",default:!0},{id:"icon",label:"",type:"icon",default:`<svg height="20px" width="20px" data-name="lightning-filled" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817742720598376">
|
|
2
|
+
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"></path></svg>`},{id:"progressBarPosition",type:"option:value",options:[{value:"top",label:"Top"},{value:"bottom",label:"Bottom"}],default:"bottom"},{id:"iconPosition",type:"option:value",options:[{value:"left",label:"Left"},{value:"right",label:"Right"}],default:"left"},{id:"iconSize",type:"input:stepper",allowEmptyValue:!0,placeholder:"Enter size",devices:{desktop:{default:16}}},{id:"remainingPercentage",label:"Remaining Percentage (%)",type:"input:slider",default:i,min:a,max:o,step:l,units:["%"],showDefaultUnit:!0,isNumber:!0,useOnlyUnitInit:!0}]},{id:"style",controls:[{id:"fullWidth",label:"Full width",type:"toggle",devices:{desktop:{default:!0}}},{id:"width",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"100%"}}},{id:"alignment",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"typo",type:"typography-v2",label:"Typography",default:{type:"paragraph-1",attrs:{color:"text-1"}},ignoreReRender:!0,hiddenSetting:{textAlign:!0}},{id:"color",label:"Color",type:"color-picker-v2",default:"line-3"},{id:"iconColor",label:"Color",type:"color-picker-v2",default:"text-2"},{id:"oosIconColor",label:"Color",type:"color-picker-v2",default:"#DDDDDD"},{id:"oosTextColor",label:"Color",type:"color-picker-v2",default:"#DDDDDD"},{id:"displayProgressBar",label:"Display",type:"toggle",default:!0},{id:"progressBarHeight",type:"input:stepper",min:5,max:20,devices:{desktop:{default:10}}},{id:"effect",label:"Effect",type:"toggle",default:!0},{id:"borderRadius",type:"corner-v2",default:{btrr:"99999px",bblr:"99999px",bbrr:"99999px",btlr:"99999px",radiusType:"circle"},compoDefaultValue:{btrr:"99999px",bblr:"99999px",bbrr:"99999px",btlr:"99999px",radiusType:"circle"}}]}];export{n as StockCounterSettingsV2};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let e=[{id:"setting",controls:[{id:"childItem",label:"Tabs Item",type:"child-item",default:["Tab 1","Tab 2","Tab 3"]},{id:"activeKey",type:"select-custom-options",label:"Order",controlOption:"childItem",default:0},{id:"position",type:"layout-selector",label:"Layout",iconViewBox:"0 0 74 48",enableItemBackground:!0,itemPerRow:2,options:[{value:"top",label:"Top",iconName:"gp-tab-top"},{value:"left",label:"Left",iconName:"gp-tab-left"},{value:"right",label:"Right",iconName:"gp-tab-bottom"}],devices:{desktop:{default:"top"}}},{id:"
|
|
1
|
+
let e=[{id:"setting",controls:[{id:"childItem",label:"Tabs Item",type:"child-item",default:["Tab 1","Tab 2","Tab 3"]},{id:"activeKey",type:"select-custom-options",label:"Order",controlOption:"childItem",default:0},{id:"position",type:"layout-selector",label:"Layout",iconViewBox:"0 0 74 48",enableItemBackground:!0,itemPerRow:2,options:[{value:"top",label:"Top",iconName:"gp-tab-top"},{value:"left",label:"Left",iconName:"gp-tab-left"},{value:"right",label:"Right",iconName:"gp-tab-bottom"}],devices:{desktop:{default:"top"}}},{id:"labelTypoV2",type:"typography-v2",default:{type:"paragraph-1",attrs:{color:"text-1"}},compoDefaultValue:{custom:{textShadow:{angle:135,blur:"2px",distance:"2px",type:"custom",color:"rgba(18, 18, 18, 0.5)"}}},ignoreReRender:!0},{id:"panelWidth",label:"Width",type:"dropdown:input",units:["px","%"],displayOptions:[{label:"Fit content",value:"Auto",showValue:!0},{label:"Full",value:"100%",showValue:!0}],devices:{desktop:{default:"Auto"}}},{id:"panelAlign",type:"option:value",label:"Alignment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"panelAlignVertical",type:"option:value",label:"Alignment",options:[{label:"Top",value:"start",type:"align",tooltip:"Align Top",iconName:"gp-align-top"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Bottom",value:"end",type:"align",tooltip:"Align Bottom",iconName:"gp-align-bottom"}],devices:{desktop:{default:"start"}}},{id:"labelWidth",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"auto"}}},{id:"labelAlign",type:"option:value",label:"Text alignment",options:[{label:"Left",value:"left",type:"text"},{label:"Center",value:"center",type:"text"},{label:"Right",value:"right",type:"text"}],devices:{desktop:{default:"left"}}},{id:"enableHoverEffect",label:"",type:"toggle",default:!1},{id:"enableActiveEffect",label:"",type:"toggle",default:!0},{id:"behavior-state-group",type:"behavior-state",controls:[{id:"labelBgColor",label:"Background Color",type:"color-picker-v2",default:{active:"bg-1"},compoDefaultValue:{normal:"bg-2",hover:"bg-2",active:"bg-1"}},{id:"labelColor",label:"Text Color",type:"color-picker-v2",default:{normal:"text-1"},compoDefaultValue:{normal:"text-1"}},{id:"borderTab",type:"border",label:"Border",default:{active:{border:"solid",width:"0px 0px 1px 0px",borderWidth:"1px",color:"line-3",position:"bottom",isCustom:!0}}}]},{id:"containWidth",type:"input:unit",placeholder:"Auto",units:["px","%"],devices:{desktop:{default:"100%"}}},{id:"background",type:"background-media",ignoreReRender:!0,devices:{desktop:{default:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}},compoDefaultValue:{desktop:{default:{type:"color",color:"#DDDDDD",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:1200},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}}},{id:"align",label:"Align",type:"option:value",options:[{label:"Left",value:"start",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"end",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"center"}}}]}];export{e as TabsSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BackgroundSettingValidate as e}from"../../../validates/background.js";let t=[{id:"setting",controls:[{id:"
|
|
1
|
+
import{BackgroundSettingValidate as e}from"../../../validates/background.js";let t=[{id:"setting",controls:[{id:"text",label:"Content",type:"texteditor",options:["bold","italic","underline","foreColor","createlink"],default:"Replace this text with your content"},{id:"translateSetting",type:"input",label:"Translate",default:"text"},{id:"htmlTag",label:"HTML Tag",type:"select",options:[{value:"p",label:"P"},{value:"span",label:"Span"},{value:"div",label:"Div"}],default:"div"},{id:"background",type:"background-media",ignoreReRender:!0,showVideo:!1,devices:{desktop:{default:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}},validate:e,compoDefaultValue:{desktop:{default:{type:"color",color:"#DDDDDD",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll",preload:!1,video:"https://youtu.be/KOxfzBp72uk",videoHtml5:"https://media.w3.org/2010/05/sintel/trailer.mp4",videoType:"youtube",loop:!0}}}},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"100%",padding:{type:"custom"}}}},settingConfig:{width:{displayOptions:["full","auto","default"]},padding:{paddingConfig:{small:{vertical:"4px",horizontal:"4px"},medium:{vertical:"8px",horizontal:"8px"},large:{vertical:"16px",horizontal:"16px"},custom:{vertical:"0px",horizontal:"0px"}}}},hiddenSettings:["shape","height","gap"]}]},{id:"style",controls:[{id:"typo",type:"typography-v2",default:{type:"paragraph-1",attrs:{color:"text-1",transform:"none",isAlwaysLoadBold:!1}},ignoreReRender:!0},{id:"textAlign",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"text",tooltip:"Align left"},{label:"Center",value:"center",type:"text",tooltip:"Align center"},{label:"Right",value:"right",type:"text",tooltip:"Align right"},{label:"Justify",value:"justify",type:"text",tooltip:"Align justify"}],devices:{desktop:{default:"left"}}},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"shapeBorder",type:"border-v2",devices:{desktop:{default:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}}},compoDefaultValue:{desktop:{default:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"}}}},{id:"shapeRounded",type:"corner-v2",devices:{desktop:{default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},compoDefaultValue:{desktop:{default:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}}},{id:"shapeBoxShadow",type:"shadow-v2",devices:{desktop:{default:{enable:!1}}},compoDefaultValue:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}}}]}];export{t as TextSettings};
|