@gem-sdk/components 2.0.0-dev.277 → 2.0.0-dev.288
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/accordion/components/Accordion.js +60 -179
- package/dist/cjs/accordion/components/Accordion.liquid.js +77 -101
- package/dist/cjs/accordion/components/AccordionItem.js +126 -280
- package/dist/cjs/accordion/components/AccordionItem.liquid.js +77 -215
- package/dist/cjs/accordion/components/common/classes.js +55 -0
- package/dist/cjs/accordion/components/common/index.js +146 -0
- package/dist/cjs/accordion/components/common/styles.js +131 -0
- package/dist/cjs/accordion/hooks/useAccordion.js +145 -0
- package/dist/cjs/accordion/hooks/useAccordionItem.js +119 -0
- package/dist/cjs/article/components/ArticleImage.js +0 -1
- package/dist/cjs/article/components/ArticlePagination.js +1 -1
- package/dist/cjs/article/components/ArticlePagination.liquid.js +3 -3
- package/dist/cjs/article/setting/configs/ArticleImage/settings.js +5 -5
- package/dist/cjs/banner/components/HeroBannerItem.js +0 -6
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +3 -0
- package/dist/cjs/banner/setting/setting.js +28 -3
- package/dist/cjs/banner/setting/uiV2.js +10 -97
- package/dist/cjs/builder.js +18 -20
- package/dist/cjs/cart/components/CartLineImage.js +0 -2
- package/dist/cjs/code/common/classes.js +11 -0
- package/dist/cjs/code/common/styles.js +15 -0
- package/dist/cjs/code/components/CSSCode.js +9 -99
- package/dist/cjs/code/components/CSSCode.liquid.js +11 -11
- package/dist/cjs/code/hooks/useCSSCode.js +102 -0
- package/dist/cjs/code/setting/CSSCode.js +7 -121
- package/dist/cjs/code/setting/config/setting.js +77 -0
- package/dist/cjs/code/setting/config/uiV1.js +52 -0
- package/dist/cjs/code/setting/config/uiV2.js +58 -0
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +4 -1
- package/dist/cjs/form/components/contact/Contact.js +6 -2
- package/dist/cjs/form/components/contact/common/composeStyles.js +21 -0
- package/dist/cjs/form/components/form-checkbox/FormCheckbox.js +6 -4
- package/dist/cjs/form/components/form-checkbox/FormCheckbox.liquid.js +2 -4
- package/dist/cjs/form/components/form-checkbox/common/composeClasses.js +2 -2
- package/dist/cjs/form/components/form-checkbox/common/composeStyles.js +23 -10
- package/dist/cjs/form/components/form-dropdown/common/composeClasses.js +1 -1
- package/dist/cjs/form/components/form-email/FormEmail.js +18 -10
- package/dist/cjs/form/components/form-email/common/composeClasses.js +2 -1
- package/dist/cjs/form/components/newsletter/Newsletter.js +7 -2
- package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +1 -1
- package/dist/cjs/form/components/newsletter/common/composeStyles.js +4 -2
- package/dist/cjs/form/components/textarea/TextArea.js +16 -8
- package/dist/cjs/form/components/textarea/common/composeClasses.js +1 -1
- package/dist/cjs/form/components/textfield/TextField.js +17 -9
- package/dist/cjs/form/components/textfield/common/composeClasses.js +2 -2
- package/dist/cjs/form/setting/contact/Contact.js +5 -1
- package/dist/cjs/form/setting/form-checkbox/configs/settings.js +153 -6
- package/dist/cjs/form/setting/form-checkbox/configs/uiV2.js +137 -0
- package/dist/cjs/form/setting/form-dropdown/configs/settings.js +147 -0
- package/dist/cjs/form/setting/form-dropdown/configs/uiV2.js +156 -4
- package/dist/cjs/form/setting/newsletter/configs/settings.js +132 -3
- package/dist/cjs/form/setting/newsletter/configs/uiV2.js +93 -0
- package/dist/cjs/form/setting/submit-button/configs/settings.js +37 -0
- package/dist/cjs/form/setting/submit-button/configs/uiV2.js +13 -0
- package/dist/cjs/grid/row/commons/getInnerRadius.js +11 -10
- package/dist/cjs/grid/row/setting/configs/uiV2.js +1 -1
- package/dist/cjs/header/components/kind/basic/index.js +1 -0
- package/dist/cjs/header/components/kind/modern/index.js +1 -1
- package/dist/cjs/helpers.js +53 -0
- package/dist/cjs/icon-list/setting/configs/uiV2.js +1 -1
- package/dist/cjs/icon-list-v2/setting/configs/settings.js +5 -5
- package/dist/cjs/image/components/AdaptiveImage.js +63 -49
- package/dist/cjs/image/components/AdaptiveImage.liquid.js +56 -44
- package/dist/cjs/image/components/Image.js +65 -154
- package/dist/cjs/image/components/Image.liquid.js +68 -103
- package/dist/cjs/image/components/Modal3d.liquid.js +54 -21
- package/dist/cjs/image/components/NextImage.js +26 -59
- package/dist/cjs/image/components/NextImage.liquid.js +27 -115
- package/dist/cjs/image/components/Video.liquid.js +38 -13
- package/dist/cjs/image/components/common/attributes.js +115 -0
- package/dist/cjs/image/components/common/classes.js +57 -0
- package/dist/cjs/image/components/common/constants.js +15 -0
- package/dist/cjs/image/components/common/data.js +24 -0
- package/dist/cjs/image/components/common/helpers.js +75 -0
- package/dist/cjs/image/components/common/styles.js +88 -0
- package/dist/cjs/image/components/helpers/getNextImageLiquidAttrs.js +80 -0
- package/dist/cjs/image/components/helpers/getNextImageReactAttrs.js +40 -0
- package/dist/cjs/image/components/hooks/useCheckNoImage.js +25 -0
- package/dist/cjs/image/helpers/getSrcSet.js +0 -2
- package/dist/cjs/image/next.js +1 -5
- package/dist/cjs/image/setting/configs/settings.js +14 -8
- package/dist/cjs/image/setting/configs/uiV2.js +61 -15
- package/dist/cjs/image/setting/index.js +1 -3
- package/dist/cjs/image-comparison/components/CompareImage.js +1 -1
- package/dist/cjs/image-comparison/components/CompareImage.liquid.js +1 -1
- package/dist/cjs/index.js +91 -91
- package/dist/cjs/index.liquid.js +8 -8
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-box/setting.js +4 -10
- package/dist/cjs/post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js +9 -23
- package/dist/cjs/post-purchase/countdown-timer/components/TextCountdown.js +12 -26
- package/dist/cjs/post-purchase/countdown-timer/components/common/getClasses.js +24 -0
- package/dist/cjs/post-purchase/countdown-timer/components/common/getStyles.js +21 -0
- package/dist/cjs/post-purchase/countdown-timer/hooks/useCountdownTimer.js +18 -1
- package/dist/cjs/post-purchase/countdown-timer/hooks/useGetTimeExpired.js +18 -0
- package/dist/cjs/post-purchase/countdown-timer/settings/CountdownTimer.js +9 -358
- package/dist/cjs/post-purchase/countdown-timer/settings/config/preset.js +26 -0
- package/dist/cjs/post-purchase/countdown-timer/settings/config/setting.js +243 -0
- package/dist/cjs/post-purchase/countdown-timer/settings/config/uiV1.js +125 -0
- package/dist/cjs/post-purchase/countdown-timer/settings/config/uiV2.js +185 -0
- package/dist/cjs/post-purchase/image/common/getClasses.js +1 -1
- package/dist/cjs/post-purchase/image/setting/setting-v2.js +5 -5
- package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +24 -26
- package/dist/cjs/post-purchase/product/hooks/product-image/useListCarousel.js +1 -1
- package/dist/cjs/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +4 -1
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +20 -7
- package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +3 -1
- package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/settings.js +2 -2
- package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
- package/dist/cjs/post-purchase/utils/constants.js +1 -1
- package/dist/cjs/product/components/FileUpload/components/common/index.js +3 -0
- package/dist/cjs/product/components/ProductBundle/common/classes.js +25 -0
- package/dist/cjs/product/components/ProductBundle/common/index.js +5 -0
- package/dist/cjs/product/components/ProductBundle/common/styles.js +89 -0
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscount.js +82 -0
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js +74 -0
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +69 -0
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +46 -0
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountItem.js +23 -0
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountItem.liquid.js +14 -0
- package/dist/cjs/product/components/{ProductBundleDiscount.js → ProductBundle/hooks/useProductBundleDataState.js} +20 -215
- package/dist/cjs/product/components/ProductBundle/hooks/useProductBundleDiscountState.js +56 -0
- package/dist/cjs/product/{setting → components/ProductBundle/setting}/ProductBundleDiscount.js +7 -7
- package/dist/cjs/product/{setting → components/ProductBundle/setting}/ProductBundleDiscountItem.js +3 -0
- package/dist/cjs/product/components/ProductButton.js +2 -2
- package/dist/cjs/product/components/ProductButton.liquid.js +2 -2
- package/dist/cjs/product/components/ProductPrice/common/getAttr.js +23 -0
- package/dist/cjs/product/components/ProductPrice/common/getClasses.js +19 -0
- package/dist/cjs/product/components/ProductPrice/common/getTextData.js +40 -0
- package/dist/cjs/product/components/ProductPrice/hooks/useGpPrice.js +126 -0
- package/dist/cjs/product/components/ProductPrice/index.js +54 -0
- package/dist/cjs/product/components/ProductPrice/index.liquid.js +43 -0
- package/dist/cjs/product/components/ProductQuickView/ProductQuickView.js +5 -5
- package/dist/cjs/product/next.js +3 -3
- package/dist/cjs/product/setting/index.js +2 -2
- package/dist/cjs/product/setting/product/configs/presets.js +1 -0
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +6 -7
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +11 -12
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +6 -5
- package/dist/cjs/product/setting/product-list/configs/settingsV2.js +10 -8
- package/dist/cjs/setting.js +5 -2
- package/dist/esm/accordion/components/Accordion.js +61 -180
- package/dist/esm/accordion/components/Accordion.liquid.js +78 -102
- package/dist/esm/accordion/components/AccordionItem.js +129 -281
- package/dist/esm/accordion/components/AccordionItem.liquid.js +76 -214
- package/dist/esm/accordion/components/common/classes.js +44 -0
- package/dist/esm/accordion/components/common/index.js +136 -0
- package/dist/esm/accordion/components/common/styles.js +122 -0
- package/dist/esm/accordion/hooks/useAccordion.js +141 -0
- package/dist/esm/accordion/hooks/useAccordionItem.js +115 -0
- package/dist/esm/article/components/ArticleImage.js +0 -1
- package/dist/esm/article/components/ArticlePagination.js +1 -1
- package/dist/esm/article/components/ArticlePagination.liquid.js +3 -3
- package/dist/esm/article/setting/configs/ArticleImage/settings.js +5 -5
- package/dist/esm/banner/components/HeroBannerItem.js +0 -6
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +3 -0
- package/dist/esm/banner/setting/setting.js +28 -3
- package/dist/esm/banner/setting/uiV2.js +10 -97
- package/dist/esm/builder.js +3 -5
- package/dist/esm/cart/components/CartLineImage.js +0 -2
- package/dist/esm/code/common/classes.js +9 -0
- package/dist/esm/code/common/styles.js +13 -0
- package/dist/esm/code/components/CSSCode.js +9 -99
- package/dist/esm/code/components/CSSCode.liquid.js +12 -12
- package/dist/esm/code/hooks/useCSSCode.js +98 -0
- package/dist/esm/code/setting/CSSCode.js +7 -121
- package/dist/esm/code/setting/config/setting.js +75 -0
- package/dist/esm/code/setting/config/uiV1.js +50 -0
- package/dist/esm/code/setting/config/uiV2.js +56 -0
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +4 -1
- package/dist/esm/form/components/contact/Contact.js +7 -3
- package/dist/esm/form/components/contact/common/composeStyles.js +19 -0
- package/dist/esm/form/components/form-checkbox/FormCheckbox.js +7 -5
- package/dist/esm/form/components/form-checkbox/FormCheckbox.liquid.js +3 -5
- package/dist/esm/form/components/form-checkbox/common/composeClasses.js +2 -2
- package/dist/esm/form/components/form-checkbox/common/composeStyles.js +25 -11
- package/dist/esm/form/components/form-dropdown/common/composeClasses.js +1 -1
- package/dist/esm/form/components/form-email/FormEmail.js +18 -10
- package/dist/esm/form/components/form-email/common/composeClasses.js +2 -1
- package/dist/esm/form/components/newsletter/Newsletter.js +8 -3
- package/dist/esm/form/components/newsletter/Newsletter.liquid.js +1 -1
- package/dist/esm/form/components/newsletter/common/composeStyles.js +4 -2
- package/dist/esm/form/components/textarea/TextArea.js +16 -8
- package/dist/esm/form/components/textarea/common/composeClasses.js +1 -1
- package/dist/esm/form/components/textfield/TextField.js +17 -9
- package/dist/esm/form/components/textfield/common/composeClasses.js +2 -2
- package/dist/esm/form/setting/contact/Contact.js +5 -1
- package/dist/esm/form/setting/form-checkbox/configs/settings.js +153 -6
- package/dist/esm/form/setting/form-checkbox/configs/uiV2.js +137 -0
- package/dist/esm/form/setting/form-dropdown/configs/settings.js +147 -0
- package/dist/esm/form/setting/form-dropdown/configs/uiV2.js +156 -4
- package/dist/esm/form/setting/newsletter/configs/settings.js +132 -3
- package/dist/esm/form/setting/newsletter/configs/uiV2.js +93 -0
- package/dist/esm/form/setting/submit-button/configs/settings.js +37 -0
- package/dist/esm/form/setting/submit-button/configs/uiV2.js +13 -0
- package/dist/esm/grid/row/commons/getInnerRadius.js +11 -10
- package/dist/esm/grid/row/setting/configs/uiV2.js +1 -1
- package/dist/esm/header/components/kind/basic/index.js +1 -0
- package/dist/esm/header/components/kind/modern/index.js +1 -1
- package/dist/esm/helpers.js +52 -1
- package/dist/esm/icon-list/setting/configs/uiV2.js +1 -1
- package/dist/esm/icon-list-v2/setting/configs/settings.js +5 -5
- package/dist/esm/image/components/AdaptiveImage.js +64 -50
- package/dist/esm/image/components/AdaptiveImage.liquid.js +57 -45
- package/dist/esm/image/components/Image.js +66 -155
- package/dist/esm/image/components/Image.liquid.js +69 -104
- package/dist/esm/image/components/Modal3d.liquid.js +55 -22
- package/dist/esm/image/components/NextImage.js +26 -59
- package/dist/esm/image/components/NextImage.liquid.js +28 -116
- package/dist/esm/image/components/Video.liquid.js +38 -13
- package/dist/esm/image/components/common/attributes.js +108 -0
- package/dist/esm/image/components/common/classes.js +51 -0
- package/dist/esm/image/components/common/constants.js +11 -0
- package/dist/esm/image/components/common/data.js +22 -0
- package/dist/esm/image/components/common/helpers.js +69 -0
- package/dist/esm/image/components/common/styles.js +80 -0
- package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +78 -0
- package/dist/esm/image/components/helpers/getNextImageReactAttrs.js +38 -0
- package/dist/esm/image/components/hooks/useCheckNoImage.js +23 -0
- package/dist/esm/image/helpers/getSrcSet.js +1 -2
- package/dist/esm/image/next.js +1 -5
- package/dist/esm/image/setting/configs/settings.js +14 -8
- package/dist/esm/image/setting/configs/uiV2.js +61 -15
- package/dist/esm/image/setting/index.js +1 -3
- package/dist/esm/image-comparison/components/CompareImage.js +1 -1
- package/dist/esm/image-comparison/components/CompareImage.liquid.js +1 -1
- package/dist/esm/index.js +4 -5
- package/dist/esm/index.liquid.js +3 -3
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-box/setting.js +4 -10
- package/dist/esm/post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js +9 -23
- package/dist/esm/post-purchase/countdown-timer/components/TextCountdown.js +13 -27
- package/dist/esm/post-purchase/countdown-timer/components/common/getClasses.js +21 -0
- package/dist/esm/post-purchase/countdown-timer/components/common/getStyles.js +19 -0
- package/dist/esm/post-purchase/countdown-timer/hooks/useCountdownTimer.js +19 -3
- package/dist/esm/post-purchase/countdown-timer/hooks/useGetTimeExpired.js +16 -0
- package/dist/esm/post-purchase/countdown-timer/settings/CountdownTimer.js +9 -358
- package/dist/esm/post-purchase/countdown-timer/settings/config/preset.js +24 -0
- package/dist/esm/post-purchase/countdown-timer/settings/config/setting.js +241 -0
- package/dist/esm/post-purchase/countdown-timer/settings/config/uiV1.js +123 -0
- package/dist/esm/post-purchase/countdown-timer/settings/config/uiV2.js +183 -0
- package/dist/esm/post-purchase/image/common/getClasses.js +1 -1
- package/dist/esm/post-purchase/image/setting/setting-v2.js +5 -5
- package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +25 -27
- package/dist/esm/post-purchase/product/hooks/product-image/useListCarousel.js +1 -1
- package/dist/esm/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +4 -1
- package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +20 -7
- package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +3 -1
- package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/settings.js +2 -2
- package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
- package/dist/esm/post-purchase/utils/constants.js +1 -1
- package/dist/esm/product/components/FileUpload/components/common/index.js +3 -0
- package/dist/esm/product/components/ProductBundle/common/classes.js +19 -0
- package/dist/esm/product/components/ProductBundle/common/index.js +3 -0
- package/dist/esm/product/components/ProductBundle/common/styles.js +80 -0
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscount.js +78 -0
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js +70 -0
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +65 -0
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +42 -0
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountItem.js +19 -0
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountItem.liquid.js +10 -0
- package/dist/esm/product/components/{ProductBundleDiscount.js → ProductBundle/hooks/useProductBundleDataState.js} +21 -216
- package/dist/esm/product/components/ProductBundle/hooks/useProductBundleDiscountState.js +52 -0
- package/dist/esm/product/{setting → components/ProductBundle/setting}/ProductBundleDiscount.js +7 -7
- package/dist/esm/product/{setting → components/ProductBundle/setting}/ProductBundleDiscountItem.js +3 -0
- package/dist/esm/product/components/ProductButton.js +1 -1
- package/dist/esm/product/components/ProductButton.liquid.js +1 -1
- package/dist/esm/product/components/ProductPrice/common/getAttr.js +21 -0
- package/dist/esm/product/components/ProductPrice/common/getClasses.js +17 -0
- package/dist/esm/product/components/ProductPrice/common/getTextData.js +38 -0
- package/dist/esm/product/components/ProductPrice/hooks/useGpPrice.js +124 -0
- package/dist/esm/product/components/ProductPrice/index.js +50 -0
- package/dist/esm/product/components/ProductPrice/index.liquid.js +38 -0
- package/dist/esm/product/components/ProductQuickView/ProductQuickView.js +1 -1
- package/dist/esm/product/next.js +3 -3
- package/dist/esm/product/setting/index.js +2 -2
- package/dist/esm/product/setting/product/configs/presets.js +1 -0
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +6 -7
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +11 -12
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +6 -5
- package/dist/esm/product/setting/product-list/configs/settingsV2.js +10 -8
- package/dist/esm/setting.js +5 -2
- package/dist/types/index.d.ts +173 -256
- package/package.json +2 -2
- package/dist/cjs/image/components/BackgroundImage.js +0 -102
- package/dist/cjs/image/components/Img.js +0 -28
- package/dist/cjs/image/components/helpers.js +0 -12
- package/dist/cjs/image/setting/BackgroundImage.js +0 -364
- package/dist/cjs/product/components/ProductBundleDiscount.liquid.js +0 -81
- package/dist/cjs/product/components/ProductBundleDiscountItem.js +0 -42
- package/dist/cjs/product/components/ProductBundleDiscountItem.liquid.js +0 -103
- package/dist/cjs/product/components/ProductPrice.js +0 -209
- package/dist/cjs/product/components/ProductPrice.liquid.js +0 -88
- package/dist/esm/image/components/BackgroundImage.js +0 -98
- package/dist/esm/image/components/Img.js +0 -24
- package/dist/esm/image/components/helpers.js +0 -9
- package/dist/esm/image/setting/BackgroundImage.js +0 -360
- package/dist/esm/product/components/ProductBundleDiscount.liquid.js +0 -77
- package/dist/esm/product/components/ProductBundleDiscountItem.js +0 -36
- package/dist/esm/product/components/ProductBundleDiscountItem.liquid.js +0 -99
- package/dist/esm/product/components/ProductPrice.js +0 -205
- package/dist/esm/product/components/ProductPrice.liquid.js +0 -83
|
@@ -61,6 +61,99 @@ const SettingUIV2 = [
|
|
|
61
61
|
}
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
|
+
{
|
|
65
|
+
label: {
|
|
66
|
+
en: 'Size'
|
|
67
|
+
},
|
|
68
|
+
controls: [
|
|
69
|
+
{
|
|
70
|
+
id: 'Width',
|
|
71
|
+
label: {
|
|
72
|
+
en: 'Width'
|
|
73
|
+
},
|
|
74
|
+
controlConfig: {
|
|
75
|
+
id: 'width',
|
|
76
|
+
type: 'dropdown:input',
|
|
77
|
+
label: 'Width',
|
|
78
|
+
inputType: 'number',
|
|
79
|
+
units: [
|
|
80
|
+
'px',
|
|
81
|
+
'%'
|
|
82
|
+
],
|
|
83
|
+
hideUnit: false,
|
|
84
|
+
linkWithSetting: {
|
|
85
|
+
name: 'globalSize',
|
|
86
|
+
field: 'width'
|
|
87
|
+
},
|
|
88
|
+
displayOptions: [
|
|
89
|
+
{
|
|
90
|
+
label: 'Fit content',
|
|
91
|
+
value: 'Auto',
|
|
92
|
+
showValue: true
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: 'Full',
|
|
96
|
+
value: '100%',
|
|
97
|
+
showValue: true
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
label: 'Small',
|
|
101
|
+
value: '100px',
|
|
102
|
+
showValue: true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
label: 'Medium',
|
|
106
|
+
value: '116px',
|
|
107
|
+
showValue: true
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
label: 'Large',
|
|
111
|
+
value: '132px',
|
|
112
|
+
showValue: true
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
layout: 'horizontal'
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
label: {
|
|
120
|
+
en: 'Padding'
|
|
121
|
+
},
|
|
122
|
+
controlConfig: {
|
|
123
|
+
id: 'padding',
|
|
124
|
+
type: 'padding-v2',
|
|
125
|
+
linkWithSetting: {
|
|
126
|
+
name: 'globalSize',
|
|
127
|
+
field: 'padding'
|
|
128
|
+
},
|
|
129
|
+
compoDefaultValue: {
|
|
130
|
+
desktop: {
|
|
131
|
+
default: {
|
|
132
|
+
type: 'medium',
|
|
133
|
+
top: '12px',
|
|
134
|
+
bottom: '12px',
|
|
135
|
+
left: '24px',
|
|
136
|
+
right: '24px'
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: {
|
|
146
|
+
en: 'Background'
|
|
147
|
+
},
|
|
148
|
+
controls: [
|
|
149
|
+
{
|
|
150
|
+
setting: {
|
|
151
|
+
id: 'background'
|
|
152
|
+
},
|
|
153
|
+
layout: 'vertical'
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
64
157
|
{
|
|
65
158
|
label: {
|
|
66
159
|
en: 'Shape'
|
|
@@ -4,6 +4,43 @@ const SubmitButtonSettings = [
|
|
|
4
4
|
{
|
|
5
5
|
id: 'setting',
|
|
6
6
|
controls: [
|
|
7
|
+
{
|
|
8
|
+
id: 'buttonLayoutGroup',
|
|
9
|
+
type: 'group',
|
|
10
|
+
controls: [
|
|
11
|
+
{
|
|
12
|
+
id: 'layout',
|
|
13
|
+
type: 'button-layout',
|
|
14
|
+
default: 'default',
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
id: 'default',
|
|
18
|
+
value: 'default',
|
|
19
|
+
name: `<div class="h-40 w-[200px] rounded-medium bg-dark-200 p-10 flex items-center justify-center gap-4">SUBMIT</div>`,
|
|
20
|
+
icon: true
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 'rounded',
|
|
24
|
+
value: 'rounded',
|
|
25
|
+
name: `<div class="h-40 w-[200px] rounded-medium bg-dark-200 p-10 flex items-center justify-center gap-4">SUBMIT</div>`,
|
|
26
|
+
icon: true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: 'bordered',
|
|
30
|
+
value: 'bordered',
|
|
31
|
+
name: '<div class="h-40 w-[200px] rounded-medium bg-dark-200 p-10">SUBMIT</div>',
|
|
32
|
+
icon: false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'underlined',
|
|
36
|
+
value: 'underlined',
|
|
37
|
+
name: '<div class="h-40 w-[200px] rounded-medium bg-dark-200 p-10">SUBMIT</div>',
|
|
38
|
+
icon: false
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
7
44
|
{
|
|
8
45
|
id: 'label',
|
|
9
46
|
label: 'Text',
|
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
function reduceRadiusForState(borderWidth, radiusSettings) {
|
|
4
4
|
if (!borderWidth || !radiusSettings) return {};
|
|
5
|
-
const borderWidthValues = borderWidth.split(' ').map((value)=>parseInt(value, 10));
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
const borderWidthValues = (typeof borderWidth === 'string' ? borderWidth.split(' ') : []).map((value)=>parseInt(value, 10) || 0);
|
|
6
|
+
const keys = [
|
|
7
|
+
'btrr',
|
|
8
|
+
'bblr',
|
|
9
|
+
'bbrr',
|
|
10
|
+
'btlr'
|
|
11
11
|
];
|
|
12
|
+
const result = Object.fromEntries(keys.map((key, index)=>[
|
|
13
|
+
key,
|
|
14
|
+
Math.max(0, (parseInt(radiusSettings[key] ?? '0', 10) || 0) - (borderWidthValues[index] || 0)) + 'px'
|
|
15
|
+
]));
|
|
12
16
|
return {
|
|
13
|
-
|
|
14
|
-
bblr: Math.max(0, (borderRadiusValues?.[1] ?? 0) - (borderWidthValues?.[1] ?? 0)) + 'px',
|
|
15
|
-
bbrr: Math.max(0, (borderRadiusValues?.[2] ?? 0) - (borderWidthValues?.[2] ?? 0)) + 'px',
|
|
16
|
-
btlr: Math.max(0, (borderRadiusValues?.[3] ?? 0) - (borderWidthValues?.[3] ?? 0)) + 'px',
|
|
17
|
+
...result,
|
|
17
18
|
radiusType: radiusSettings.radiusType
|
|
18
19
|
};
|
|
19
20
|
}
|
|
@@ -85,7 +85,7 @@ const SettingUIV2 = [
|
|
|
85
85
|
options: {
|
|
86
86
|
fullWidth: true
|
|
87
87
|
},
|
|
88
|
-
conditionDisplay: `pageType == "POST_PURCHASE"`,
|
|
88
|
+
conditionDisplay: `pageType == "POST_PURCHASE" && !!layout.cols && layout.cols.length > 1`,
|
|
89
89
|
conditionEnable: '!!layout.cols && layout.cols.length > 1'
|
|
90
90
|
}
|
|
91
91
|
]
|
|
@@ -8,6 +8,7 @@ var core = require('@gem-sdk/core');
|
|
|
8
8
|
var dynamic = require('next/dynamic');
|
|
9
9
|
require('react');
|
|
10
10
|
require('@gem-sdk/system');
|
|
11
|
+
require('next/link');
|
|
11
12
|
var Cart = require('../../../../cart/components/Cart.js');
|
|
12
13
|
require('next/head');
|
|
13
14
|
require('next/image');
|
|
@@ -7,11 +7,11 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
7
7
|
var core = require('@gem-sdk/core');
|
|
8
8
|
require('react');
|
|
9
9
|
require('@gem-sdk/system');
|
|
10
|
+
require('next/link');
|
|
10
11
|
var Cart = require('../../../../cart/components/Cart.js');
|
|
11
12
|
require('next/head');
|
|
12
13
|
require('next/image');
|
|
13
14
|
require('react-youtube');
|
|
14
|
-
require('next/link');
|
|
15
15
|
require('../../../../image/components/AdaptiveImage.js');
|
|
16
16
|
require('../../../../cart/components/ShopPayButton/ShopPayButton.js');
|
|
17
17
|
|
package/dist/cjs/helpers.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var Link = require('./link/components/Link.js');
|
|
4
|
+
|
|
3
5
|
const isTransparentColor = (str)=>{
|
|
4
6
|
if (!str) return false;
|
|
5
7
|
if (str.startsWith('#')) {
|
|
@@ -110,6 +112,52 @@ const getInsertLinkData = (defaultWrap, setting, htmlType)=>{
|
|
|
110
112
|
shouldRenderLink
|
|
111
113
|
};
|
|
112
114
|
};
|
|
115
|
+
const getLinkData = ({ setting, htmlType, defaultWrap, isLiquid = false, enableImageLink = false })=>{
|
|
116
|
+
const URL_INCLUDES = [
|
|
117
|
+
'product.url'
|
|
118
|
+
];
|
|
119
|
+
const URL_START_WITH = [
|
|
120
|
+
'#',
|
|
121
|
+
'mailto:',
|
|
122
|
+
'tel:'
|
|
123
|
+
];
|
|
124
|
+
const urlHref = setting?.link ?? '';
|
|
125
|
+
const isHomePageHref = urlHref === '/';
|
|
126
|
+
const isHyperlink = setting?.link !== undefined && setting.link !== '';
|
|
127
|
+
const regexHttp = new RegExp(/^https?:\/\//i);
|
|
128
|
+
const isDomain = isHyperlink && regexHttp.test(urlHref);
|
|
129
|
+
const regexPageType = new RegExp(/^\/?(?:collections|pages|products|blogs|checkout|cart)\/?/i);
|
|
130
|
+
const isShopifyDomain = isHyperlink && !regexHttp.test(urlHref) && regexPageType.test(urlHref);
|
|
131
|
+
const isLink = ()=>{
|
|
132
|
+
if (URL_INCLUDES.find((el)=>urlHref.includes(el))) return true;
|
|
133
|
+
if (URL_START_WITH.find((el)=>urlHref.startsWith(el))) return true;
|
|
134
|
+
return false;
|
|
135
|
+
};
|
|
136
|
+
const shouldRenderLink = enableImageLink && (isDomain || isShopifyDomain || isLink() || isHomePageHref);
|
|
137
|
+
let transformedUrl = urlHref;
|
|
138
|
+
if (isLiquid && (isShopifyDomain || isHomePageHref)) {
|
|
139
|
+
transformedUrl = setting?.isTranslate ? '$locationOrigin' + urlHref : "{{ request.origin }}{{ routes.root_url | split: '/' | join: '/' }}" + urlHref;
|
|
140
|
+
}
|
|
141
|
+
const Wrapper = shouldRenderLink ? isLiquid ? 'a' : Link.default : defaultWrap;
|
|
142
|
+
const baseUrlData = {
|
|
143
|
+
href: transformedUrl,
|
|
144
|
+
target: setting?.target,
|
|
145
|
+
...setting?.noFollow && {
|
|
146
|
+
rel: 'nofollow'
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
const urlData = shouldRenderLink ? baseUrlData : isHyperlink ? {
|
|
150
|
+
...baseUrlData,
|
|
151
|
+
type: htmlType
|
|
152
|
+
} : {
|
|
153
|
+
type: htmlType
|
|
154
|
+
};
|
|
155
|
+
return {
|
|
156
|
+
Wrapper,
|
|
157
|
+
urlData,
|
|
158
|
+
shouldRenderLink
|
|
159
|
+
};
|
|
160
|
+
};
|
|
113
161
|
const replaceLinkData = (text, isTranslate)=>{
|
|
114
162
|
const regex = /<a\s[^>]*>.*?<\/a>/;
|
|
115
163
|
if (text && regex.test(text)) {
|
|
@@ -132,10 +180,15 @@ const replaceLinkData = (text, isTranslate)=>{
|
|
|
132
180
|
function filterTruthyStyles(styles) {
|
|
133
181
|
return Object.fromEntries(Object.entries(styles || {}).filter(([, value])=>!!value));
|
|
134
182
|
}
|
|
183
|
+
function filterTruthyObject(obj) {
|
|
184
|
+
return Object.fromEntries(Object.entries(obj || {}).filter(([, value])=>!!value));
|
|
185
|
+
}
|
|
135
186
|
|
|
187
|
+
exports.filterTruthyObject = filterTruthyObject;
|
|
136
188
|
exports.filterTruthyStyles = filterTruthyStyles;
|
|
137
189
|
exports.getDynamicSourceLocales = getDynamicSourceLocales;
|
|
138
190
|
exports.getInsertLinkData = getInsertLinkData;
|
|
191
|
+
exports.getLinkData = getLinkData;
|
|
139
192
|
exports.getSettingPreloadData = getSettingPreloadData;
|
|
140
193
|
exports.getStaticLocale = getStaticLocale;
|
|
141
194
|
exports.isHexTransparent = isHexTransparent;
|
|
@@ -226,21 +226,21 @@ const IconListSettings = [
|
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
id: 'position',
|
|
229
|
-
type: '
|
|
230
|
-
iconViewBox: '0 0 66 48',
|
|
231
|
-
enableItemBackground: true,
|
|
229
|
+
type: 'option:illustration',
|
|
232
230
|
enableTooltip: true,
|
|
233
231
|
label: 'Position',
|
|
234
232
|
options: [
|
|
235
233
|
{
|
|
236
234
|
label: 'Align center',
|
|
237
235
|
value: 'center',
|
|
238
|
-
type: 'align-pos'
|
|
236
|
+
type: 'align-pos',
|
|
237
|
+
svgName: 'gp-align-position-center'
|
|
239
238
|
},
|
|
240
239
|
{
|
|
241
240
|
label: 'Align top',
|
|
242
241
|
value: 'baseline',
|
|
243
|
-
type: 'align-pos'
|
|
242
|
+
type: 'align-pos',
|
|
243
|
+
svgName: 'gp-align-position-top'
|
|
244
244
|
}
|
|
245
245
|
],
|
|
246
246
|
devices: {
|
|
@@ -4,56 +4,70 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
7
|
+
var constants = require('./common/constants.js');
|
|
8
|
+
var system = require('@gem-sdk/system');
|
|
9
|
+
var attributes = require('./common/attributes.js');
|
|
10
|
+
var classes = require('./common/classes.js');
|
|
11
|
+
var data = require('./common/data.js');
|
|
12
|
+
var styles = require('./common/styles.js');
|
|
10
13
|
|
|
11
|
-
const AdaptiveImage = (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
14
|
+
const AdaptiveImage = (props)=>{
|
|
15
|
+
const { alt, style, srcSet, layout, priority, className, aspectRatio, borderRadius, pictureClass, enableLazyloadImage, ...restProps } = props;
|
|
16
|
+
const { getDeviceSource } = data.getAdaptiveImageData(props);
|
|
17
|
+
const { srcDesktop, srcTablet, srcMobile } = getDeviceSource();
|
|
18
|
+
const loadingAttrs = system.createAttr(attributes.getLoadingAdaptiveImageAttrs({
|
|
19
|
+
srcDesktop,
|
|
20
|
+
enableLazyLoadImage: enableLazyloadImage
|
|
21
|
+
}));
|
|
22
|
+
const pictureStyle = system.createStyle({
|
|
23
|
+
...styles.getAdaptivePictureStyles()
|
|
24
|
+
});
|
|
25
|
+
const adaptiveImageStyles = system.createStyle({
|
|
26
|
+
...styles.getAdaptiveImageStyles({
|
|
27
|
+
layout,
|
|
28
|
+
aspectRatio,
|
|
29
|
+
borderRadius
|
|
30
|
+
}),
|
|
31
|
+
...style
|
|
32
|
+
});
|
|
33
|
+
const adaptiveImageClasses = system.createClass({
|
|
34
|
+
...classes.getAdaptiveImageClasses({
|
|
35
|
+
className,
|
|
36
|
+
hasLazyLoad: enableLazyloadImage
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
const renderSource = ()=>{
|
|
40
|
+
return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
41
|
+
children: [
|
|
42
|
+
srcMobile && /*#__PURE__*/ jsxRuntime.jsx("source", {
|
|
43
|
+
media: "(max-width: 767px)",
|
|
44
|
+
srcSet: enableLazyloadImage ? constants.IMAGE_PLACEHOLDER : srcMobile
|
|
45
|
+
}),
|
|
46
|
+
srcTablet && /*#__PURE__*/ jsxRuntime.jsx("source", {
|
|
47
|
+
media: "(max-width: 1024px)",
|
|
48
|
+
srcSet: enableLazyloadImage ? constants.IMAGE_PLACEHOLDER : srcTablet
|
|
49
|
+
})
|
|
50
|
+
]
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
const renderImage = ()=>{
|
|
54
|
+
return /*#__PURE__*/ jsxRuntime.jsx("img", {
|
|
55
|
+
...restProps,
|
|
56
|
+
...loadingAttrs,
|
|
57
|
+
alt: alt,
|
|
58
|
+
style: adaptiveImageStyles,
|
|
59
|
+
className: adaptiveImageClasses
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
63
|
+
children: /*#__PURE__*/ jsxRuntime.jsxs("picture", {
|
|
64
|
+
style: pictureStyle,
|
|
65
|
+
className: pictureClass,
|
|
66
|
+
children: [
|
|
67
|
+
renderSource(),
|
|
68
|
+
renderImage()
|
|
69
|
+
]
|
|
70
|
+
})
|
|
57
71
|
});
|
|
58
72
|
};
|
|
59
73
|
AdaptiveImage.defaultProps = {
|
|
@@ -3,56 +3,68 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var core = require('@gem-sdk/core');
|
|
6
|
-
var
|
|
6
|
+
var system = require('@gem-sdk/system');
|
|
7
|
+
var attributes = require('./common/attributes.js');
|
|
8
|
+
var classes = require('./common/classes.js');
|
|
9
|
+
var constants = require('./common/constants.js');
|
|
10
|
+
var data = require('./common/data.js');
|
|
11
|
+
var styles = require('./common/styles.js');
|
|
7
12
|
|
|
8
|
-
const AdaptiveImage = (
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
style="${{
|
|
28
|
-
...core.makeStyleResponsive('aspect', aspectRatio),
|
|
29
|
-
...core.makeStyleResponsive('objf', layout),
|
|
13
|
+
const AdaptiveImage = (props)=>{
|
|
14
|
+
const { alt, style, layout, srcSet, priority, className, aspectRatio, pageContext, pictureClass, borderRadius, enableLazyLoadImage = true, ...restProps } = props;
|
|
15
|
+
const { getDeviceSource } = data.getAdaptiveImageData(props);
|
|
16
|
+
const { srcDesktop, srcTablet, srcMobile } = getDeviceSource({
|
|
17
|
+
isLiquid: true
|
|
18
|
+
});
|
|
19
|
+
const loadingAttrs = system.createAttr(attributes.getLoadingAdaptiveImageAttrs({
|
|
20
|
+
srcDesktop,
|
|
21
|
+
enableLazyLoadImage
|
|
22
|
+
}));
|
|
23
|
+
const pictureStyle = system.createStyle({
|
|
24
|
+
...styles.getAdaptivePictureStyles()
|
|
25
|
+
});
|
|
26
|
+
const adaptiveImageStyles = system.createStyle({
|
|
27
|
+
...styles.getAdaptiveImageStyles({
|
|
28
|
+
layout,
|
|
29
|
+
aspectRatio,
|
|
30
|
+
borderRadius
|
|
31
|
+
}),
|
|
30
32
|
...style
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
});
|
|
34
|
+
const adaptiveImageClasses = system.createClass({
|
|
35
|
+
...classes.getAdaptiveImageClasses({
|
|
36
|
+
className,
|
|
37
|
+
hasLazyLoad: enableLazyLoadImage,
|
|
38
|
+
hasForceLoad: pageContext?.isOptimizePlan
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
const renderSource = ()=>{
|
|
42
|
+
return `
|
|
43
|
+
${srcMobile ? `<source media="(max-width: 767px)" srcset="${enableLazyLoadImage ? constants.IMAGE_PLACEHOLDER : srcMobile}" />` : ``}
|
|
44
|
+
${srcTablet ? `<source media="(max-width: 1024px)" srcset="${enableLazyLoadImage ? constants.IMAGE_PLACEHOLDER : srcTablet}" />` : ``}
|
|
45
|
+
`;
|
|
46
|
+
};
|
|
47
|
+
const renderImage = ()=>{
|
|
48
|
+
return `
|
|
36
49
|
<img
|
|
37
50
|
${{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
})}"
|
|
44
|
-
src="${enableLazyLoadImage ? imagePlaceholder : srcDesktop}"
|
|
45
|
-
data-src="${srcDesktop}"
|
|
46
|
-
width="100%"
|
|
51
|
+
...restProps
|
|
52
|
+
}}
|
|
53
|
+
${{
|
|
54
|
+
...loadingAttrs
|
|
55
|
+
}}
|
|
47
56
|
alt="${alt}"
|
|
48
|
-
style="${
|
|
49
|
-
|
|
50
|
-
...core.makeStyleResponsive('objf', layout),
|
|
51
|
-
...style
|
|
52
|
-
}}"
|
|
57
|
+
style="${adaptiveImageStyles}"
|
|
58
|
+
class="${adaptiveImageClasses}"
|
|
53
59
|
/>
|
|
54
|
-
|
|
55
|
-
|
|
60
|
+
`;
|
|
61
|
+
};
|
|
62
|
+
return core.template`
|
|
63
|
+
<picture style="${pictureStyle}" class="${pictureClass}">
|
|
64
|
+
${renderSource()}
|
|
65
|
+
${renderImage()}
|
|
66
|
+
</picture>
|
|
67
|
+
`;
|
|
56
68
|
};
|
|
57
69
|
|
|
58
70
|
exports.default = AdaptiveImage;
|