@gem-sdk/components 2.0.0-dev.278 → 2.0.0-dev.289
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/components/CalloutText.js +2 -1
- package/dist/cjs/post-purchase/callout-banner/components/common/getClasses.js +5 -2
- package/dist/cjs/post-purchase/callout-banner/components/common/getStyles.js +2 -4
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-box/setting.js +4 -10
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +1 -11
- 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/settings/product-image/setting-v2.js +5 -5
- 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/product/components/FileUpload/components/common/index.js +3 -0
- package/dist/cjs/product/components/Product.liquid.js +1 -1
- 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/components/CalloutText.js +2 -1
- package/dist/esm/post-purchase/callout-banner/components/common/getClasses.js +5 -2
- package/dist/esm/post-purchase/callout-banner/components/common/getStyles.js +2 -4
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-box/setting.js +4 -10
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +1 -11
- 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/settings/product-image/setting-v2.js +5 -5
- 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/product/components/FileUpload/components/common/index.js +3 -0
- package/dist/esm/product/components/Product.liquid.js +1 -1
- 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 +174 -257
- 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
|
@@ -37,6 +37,7 @@ const SettingUIV2 = [
|
|
|
37
37
|
},
|
|
38
38
|
controls: [
|
|
39
39
|
{
|
|
40
|
+
type: 'control',
|
|
40
41
|
label: {
|
|
41
42
|
en: 'Gap'
|
|
42
43
|
},
|
|
@@ -46,6 +47,142 @@ const SettingUIV2 = [
|
|
|
46
47
|
}
|
|
47
48
|
]
|
|
48
49
|
},
|
|
50
|
+
{
|
|
51
|
+
label: {
|
|
52
|
+
en: 'Size'
|
|
53
|
+
},
|
|
54
|
+
controls: [
|
|
55
|
+
{
|
|
56
|
+
id: 'Width',
|
|
57
|
+
label: {
|
|
58
|
+
en: 'Width'
|
|
59
|
+
},
|
|
60
|
+
controlConfig: {
|
|
61
|
+
id: 'width',
|
|
62
|
+
type: 'dropdown:input',
|
|
63
|
+
label: 'Width',
|
|
64
|
+
inputType: 'number',
|
|
65
|
+
units: [
|
|
66
|
+
'px',
|
|
67
|
+
'%'
|
|
68
|
+
],
|
|
69
|
+
hideUnit: false,
|
|
70
|
+
linkWithSetting: {
|
|
71
|
+
name: 'globalSize',
|
|
72
|
+
field: 'width'
|
|
73
|
+
},
|
|
74
|
+
displayOptions: [
|
|
75
|
+
{
|
|
76
|
+
label: 'Fit content',
|
|
77
|
+
value: 'Auto',
|
|
78
|
+
showValue: true
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: 'Full',
|
|
82
|
+
value: '100%',
|
|
83
|
+
showValue: true
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: 'Small',
|
|
87
|
+
value: '100px',
|
|
88
|
+
showValue: true
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: 'Medium',
|
|
92
|
+
value: '116px',
|
|
93
|
+
showValue: true
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: 'Large',
|
|
97
|
+
value: '132px',
|
|
98
|
+
showValue: true
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
layout: 'horizontal'
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
label: {
|
|
106
|
+
en: 'Padding'
|
|
107
|
+
},
|
|
108
|
+
controlConfig: {
|
|
109
|
+
id: 'padding',
|
|
110
|
+
type: 'padding-v2',
|
|
111
|
+
linkWithSetting: {
|
|
112
|
+
name: 'globalSize',
|
|
113
|
+
field: 'padding'
|
|
114
|
+
},
|
|
115
|
+
compoDefaultValue: {
|
|
116
|
+
desktop: {
|
|
117
|
+
default: {
|
|
118
|
+
type: 'medium',
|
|
119
|
+
top: '12px',
|
|
120
|
+
bottom: '12px',
|
|
121
|
+
left: '24px',
|
|
122
|
+
right: '24px'
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
label: {
|
|
132
|
+
en: 'Background'
|
|
133
|
+
},
|
|
134
|
+
controls: [
|
|
135
|
+
{
|
|
136
|
+
setting: {
|
|
137
|
+
id: 'background'
|
|
138
|
+
},
|
|
139
|
+
layout: 'vertical'
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
label: {
|
|
145
|
+
en: 'Shape'
|
|
146
|
+
},
|
|
147
|
+
controls: [
|
|
148
|
+
{
|
|
149
|
+
label: {
|
|
150
|
+
en: 'Border'
|
|
151
|
+
},
|
|
152
|
+
controlConfig: {
|
|
153
|
+
id: 'border',
|
|
154
|
+
type: 'border-v2',
|
|
155
|
+
linkWithSetting: {
|
|
156
|
+
name: 'wrapperBorder'
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
label: {
|
|
162
|
+
en: 'Corner'
|
|
163
|
+
},
|
|
164
|
+
controlConfig: {
|
|
165
|
+
id: 'corner',
|
|
166
|
+
type: 'corner-v2',
|
|
167
|
+
linkWithSetting: {
|
|
168
|
+
name: 'borderRadius'
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
label: {
|
|
174
|
+
en: 'Shadow'
|
|
175
|
+
},
|
|
176
|
+
controlConfig: {
|
|
177
|
+
id: 'shadow',
|
|
178
|
+
type: 'shadow-v2',
|
|
179
|
+
linkWithSetting: {
|
|
180
|
+
name: 'shadow'
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
49
186
|
{
|
|
50
187
|
label: {
|
|
51
188
|
en: 'Configuration'
|
|
@@ -127,6 +127,153 @@ const FormDropdownSettings = [
|
|
|
127
127
|
default: 'left'
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
id: 'background',
|
|
133
|
+
type: 'background-media',
|
|
134
|
+
ignoreReRender: true,
|
|
135
|
+
devices: {
|
|
136
|
+
desktop: {
|
|
137
|
+
default: {
|
|
138
|
+
type: 'color',
|
|
139
|
+
color: 'transparent',
|
|
140
|
+
image: {
|
|
141
|
+
src: '',
|
|
142
|
+
width: 0,
|
|
143
|
+
height: 0
|
|
144
|
+
},
|
|
145
|
+
size: 'cover',
|
|
146
|
+
position: {
|
|
147
|
+
x: 50,
|
|
148
|
+
y: 50
|
|
149
|
+
},
|
|
150
|
+
repeat: 'no-repeat',
|
|
151
|
+
attachment: 'scroll'
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
compoDefaultValue: {
|
|
156
|
+
desktop: {
|
|
157
|
+
default: {
|
|
158
|
+
type: 'color',
|
|
159
|
+
color: '#DDDDDD',
|
|
160
|
+
image: {
|
|
161
|
+
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
162
|
+
width: 1200,
|
|
163
|
+
height: 480
|
|
164
|
+
},
|
|
165
|
+
size: 'cover',
|
|
166
|
+
position: {
|
|
167
|
+
x: 50,
|
|
168
|
+
y: 50
|
|
169
|
+
},
|
|
170
|
+
repeat: 'no-repeat',
|
|
171
|
+
attachment: 'scroll',
|
|
172
|
+
preload: false
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
id: 'style',
|
|
181
|
+
controls: [
|
|
182
|
+
{
|
|
183
|
+
id: 'globalSize',
|
|
184
|
+
type: 'size-setting',
|
|
185
|
+
devices: {
|
|
186
|
+
desktop: {
|
|
187
|
+
default: {
|
|
188
|
+
width: 'Auto',
|
|
189
|
+
height: 'Auto',
|
|
190
|
+
padding: {
|
|
191
|
+
type: 'medium',
|
|
192
|
+
top: '12px',
|
|
193
|
+
bottom: '12px',
|
|
194
|
+
left: '24px',
|
|
195
|
+
right: '24px'
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
settingConfig: {
|
|
201
|
+
width: {
|
|
202
|
+
displayOptions: [
|
|
203
|
+
'full',
|
|
204
|
+
'auto',
|
|
205
|
+
'small',
|
|
206
|
+
'large',
|
|
207
|
+
'medium'
|
|
208
|
+
],
|
|
209
|
+
sizeConfig: {
|
|
210
|
+
small: '100px',
|
|
211
|
+
medium: '116px',
|
|
212
|
+
large: '132px'
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
height: {
|
|
216
|
+
displayOptions: [
|
|
217
|
+
'auto',
|
|
218
|
+
'small',
|
|
219
|
+
'large',
|
|
220
|
+
'medium'
|
|
221
|
+
],
|
|
222
|
+
sizeConfig: {
|
|
223
|
+
small: '28px',
|
|
224
|
+
medium: '36px',
|
|
225
|
+
large: '44px'
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
hiddenSettings: [
|
|
230
|
+
'shape',
|
|
231
|
+
'gap'
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: 'border',
|
|
236
|
+
type: 'border-v2',
|
|
237
|
+
devices: {
|
|
238
|
+
desktop: {
|
|
239
|
+
default: {
|
|
240
|
+
normal: {
|
|
241
|
+
borderType: 'none',
|
|
242
|
+
border: 'none',
|
|
243
|
+
borderWidth: '1px',
|
|
244
|
+
width: '1px 1px 1px 1px',
|
|
245
|
+
color: '#121212',
|
|
246
|
+
isCustom: true
|
|
247
|
+
},
|
|
248
|
+
hover: {
|
|
249
|
+
borderType: 'none',
|
|
250
|
+
border: 'none',
|
|
251
|
+
borderWidth: '1px',
|
|
252
|
+
width: '1px 1px 1px 1px',
|
|
253
|
+
color: '#121212',
|
|
254
|
+
isCustom: true
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
compoDefaultValue: {
|
|
260
|
+
desktop: {
|
|
261
|
+
default: {
|
|
262
|
+
normal: {
|
|
263
|
+
border: 'solid',
|
|
264
|
+
color: '#121212',
|
|
265
|
+
width: '1px',
|
|
266
|
+
borderWidth: '1px'
|
|
267
|
+
},
|
|
268
|
+
hover: {
|
|
269
|
+
border: 'solid',
|
|
270
|
+
color: '#121212',
|
|
271
|
+
width: '1px',
|
|
272
|
+
borderWidth: '1px'
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
130
277
|
}
|
|
131
278
|
]
|
|
132
279
|
}
|
|
@@ -35,19 +35,171 @@ const SettingUIV2 = [
|
|
|
35
35
|
},
|
|
36
36
|
controls: [
|
|
37
37
|
{
|
|
38
|
+
id: 'Width',
|
|
38
39
|
label: {
|
|
39
40
|
en: 'Width'
|
|
40
41
|
},
|
|
41
|
-
|
|
42
|
-
id: 'width'
|
|
43
|
-
|
|
42
|
+
controlConfig: {
|
|
43
|
+
id: 'width',
|
|
44
|
+
type: 'dropdown:input',
|
|
45
|
+
label: 'Width',
|
|
46
|
+
inputType: 'number',
|
|
47
|
+
units: [
|
|
48
|
+
'px',
|
|
49
|
+
'%'
|
|
50
|
+
],
|
|
51
|
+
hideUnit: false,
|
|
52
|
+
linkWithSetting: {
|
|
53
|
+
name: 'globalSize',
|
|
54
|
+
field: 'width'
|
|
55
|
+
},
|
|
56
|
+
displayOptions: [
|
|
57
|
+
{
|
|
58
|
+
label: 'Fit content',
|
|
59
|
+
value: 'Auto',
|
|
60
|
+
showValue: true
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'Full',
|
|
64
|
+
value: '100%',
|
|
65
|
+
showValue: true
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: 'Small',
|
|
69
|
+
value: '100px',
|
|
70
|
+
showValue: true
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: 'Medium',
|
|
74
|
+
value: '116px',
|
|
75
|
+
showValue: true
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: 'Large',
|
|
79
|
+
value: '132px',
|
|
80
|
+
showValue: true
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
layout: 'horizontal'
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: 'height',
|
|
88
|
+
label: {
|
|
89
|
+
en: 'Height'
|
|
90
|
+
},
|
|
91
|
+
controlConfig: {
|
|
92
|
+
id: 'height',
|
|
93
|
+
type: 'dropdown:input',
|
|
94
|
+
label: 'Height',
|
|
95
|
+
inputType: 'number',
|
|
96
|
+
units: [
|
|
97
|
+
'px',
|
|
98
|
+
'%'
|
|
99
|
+
],
|
|
100
|
+
hideUnit: false,
|
|
101
|
+
linkWithSetting: {
|
|
102
|
+
name: 'globalSizeBtn',
|
|
103
|
+
field: 'height'
|
|
104
|
+
},
|
|
105
|
+
displayOptions: [
|
|
106
|
+
{
|
|
107
|
+
label: 'Fit content',
|
|
108
|
+
value: 'Auto',
|
|
109
|
+
showValue: true
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
label: 'Full',
|
|
113
|
+
value: '100%',
|
|
114
|
+
showValue: true
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
label: 'Default',
|
|
118
|
+
value: 'default',
|
|
119
|
+
showValue: true
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
layout: 'horizontal'
|
|
44
124
|
},
|
|
45
125
|
{
|
|
46
126
|
label: {
|
|
47
127
|
en: 'Padding'
|
|
48
128
|
},
|
|
129
|
+
controlConfig: {
|
|
130
|
+
id: 'padding',
|
|
131
|
+
type: 'padding-v2',
|
|
132
|
+
linkWithSetting: {
|
|
133
|
+
name: 'globalSize',
|
|
134
|
+
field: 'padding'
|
|
135
|
+
},
|
|
136
|
+
compoDefaultValue: {
|
|
137
|
+
desktop: {
|
|
138
|
+
default: {
|
|
139
|
+
type: 'medium',
|
|
140
|
+
top: '12px',
|
|
141
|
+
bottom: '12px',
|
|
142
|
+
left: '24px',
|
|
143
|
+
right: '24px'
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
label: {
|
|
153
|
+
en: 'Background'
|
|
154
|
+
},
|
|
155
|
+
controls: [
|
|
156
|
+
{
|
|
49
157
|
setting: {
|
|
50
|
-
id: '
|
|
158
|
+
id: 'background'
|
|
159
|
+
},
|
|
160
|
+
layout: 'vertical'
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
label: {
|
|
166
|
+
en: 'Shape'
|
|
167
|
+
},
|
|
168
|
+
controls: [
|
|
169
|
+
{
|
|
170
|
+
label: {
|
|
171
|
+
en: 'Border'
|
|
172
|
+
},
|
|
173
|
+
controlConfig: {
|
|
174
|
+
id: 'border',
|
|
175
|
+
type: 'border-v2',
|
|
176
|
+
linkWithSetting: {
|
|
177
|
+
name: 'wrapperBorder'
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
label: {
|
|
183
|
+
en: 'Corner'
|
|
184
|
+
},
|
|
185
|
+
controlConfig: {
|
|
186
|
+
id: 'corner',
|
|
187
|
+
type: 'corner-v2',
|
|
188
|
+
linkWithSetting: {
|
|
189
|
+
name: 'borderRadius'
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
label: {
|
|
195
|
+
en: 'Shadow'
|
|
196
|
+
},
|
|
197
|
+
controlConfig: {
|
|
198
|
+
id: 'shadow',
|
|
199
|
+
type: 'shadow-v2',
|
|
200
|
+
linkWithSetting: {
|
|
201
|
+
name: 'shadow'
|
|
202
|
+
}
|
|
51
203
|
}
|
|
52
204
|
}
|
|
53
205
|
]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const NewsletterSettings = [
|
|
4
4
|
{
|
|
5
5
|
id: 'setting',
|
|
6
|
-
note: `
|
|
6
|
+
note: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`,
|
|
7
7
|
controls: [
|
|
8
8
|
{
|
|
9
9
|
id: 'afterSubmitAction',
|
|
@@ -33,8 +33,8 @@ const NewsletterSettings = [
|
|
|
33
33
|
target: '_self'
|
|
34
34
|
},
|
|
35
35
|
hiddenOptions: {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
'scroll-to': true,
|
|
37
|
+
'open-popup': true,
|
|
38
38
|
'send-email': true,
|
|
39
39
|
'call-phone': true
|
|
40
40
|
}
|
|
@@ -57,6 +57,135 @@ const NewsletterSettings = [
|
|
|
57
57
|
id: 'translate',
|
|
58
58
|
type: 'input',
|
|
59
59
|
default: 'successMessage,errorMessage'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 'background',
|
|
63
|
+
type: 'background-media',
|
|
64
|
+
ignoreReRender: true,
|
|
65
|
+
devices: {
|
|
66
|
+
desktop: {
|
|
67
|
+
default: {
|
|
68
|
+
type: 'color',
|
|
69
|
+
color: 'transparent',
|
|
70
|
+
image: {
|
|
71
|
+
src: '',
|
|
72
|
+
width: 0,
|
|
73
|
+
height: 0
|
|
74
|
+
},
|
|
75
|
+
size: 'cover',
|
|
76
|
+
position: {
|
|
77
|
+
x: 50,
|
|
78
|
+
y: 50
|
|
79
|
+
},
|
|
80
|
+
repeat: 'no-repeat',
|
|
81
|
+
attachment: 'scroll'
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
compoDefaultValue: {
|
|
86
|
+
desktop: {
|
|
87
|
+
default: {
|
|
88
|
+
type: 'color',
|
|
89
|
+
color: '#DDDDDD',
|
|
90
|
+
image: {
|
|
91
|
+
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
92
|
+
width: 1200,
|
|
93
|
+
height: 480
|
|
94
|
+
},
|
|
95
|
+
size: 'cover',
|
|
96
|
+
position: {
|
|
97
|
+
x: 50,
|
|
98
|
+
y: 50
|
|
99
|
+
},
|
|
100
|
+
repeat: 'no-repeat',
|
|
101
|
+
attachment: 'scroll',
|
|
102
|
+
preload: false
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: 'width',
|
|
109
|
+
type: 'input:unit',
|
|
110
|
+
label: 'Width',
|
|
111
|
+
placeholder: 'Auto Width',
|
|
112
|
+
min: 0,
|
|
113
|
+
units: [
|
|
114
|
+
'px',
|
|
115
|
+
'%'
|
|
116
|
+
],
|
|
117
|
+
hide: true,
|
|
118
|
+
devices: {
|
|
119
|
+
desktop: {
|
|
120
|
+
default: '100%'
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
id: 'size',
|
|
126
|
+
label: 'Field size',
|
|
127
|
+
type: 'size',
|
|
128
|
+
default: {
|
|
129
|
+
type: 'medium'
|
|
130
|
+
},
|
|
131
|
+
ignoreReRender: true
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: 'style',
|
|
137
|
+
controls: [
|
|
138
|
+
{
|
|
139
|
+
id: 'globalSize',
|
|
140
|
+
type: 'size-setting',
|
|
141
|
+
devices: {
|
|
142
|
+
desktop: {
|
|
143
|
+
default: {
|
|
144
|
+
width: 'Auto',
|
|
145
|
+
height: 'Auto',
|
|
146
|
+
padding: {
|
|
147
|
+
type: 'medium',
|
|
148
|
+
top: '12px',
|
|
149
|
+
bottom: '12px',
|
|
150
|
+
left: '24px',
|
|
151
|
+
right: '24px'
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
settingConfig: {
|
|
157
|
+
width: {
|
|
158
|
+
displayOptions: [
|
|
159
|
+
'full',
|
|
160
|
+
'auto',
|
|
161
|
+
'small',
|
|
162
|
+
'large',
|
|
163
|
+
'medium'
|
|
164
|
+
],
|
|
165
|
+
sizeConfig: {
|
|
166
|
+
small: '100px',
|
|
167
|
+
medium: '116px',
|
|
168
|
+
large: '132px'
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
height: {
|
|
172
|
+
displayOptions: [
|
|
173
|
+
'auto',
|
|
174
|
+
'small',
|
|
175
|
+
'large',
|
|
176
|
+
'medium'
|
|
177
|
+
],
|
|
178
|
+
sizeConfig: {
|
|
179
|
+
small: '28px',
|
|
180
|
+
medium: '36px',
|
|
181
|
+
large: '44px'
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
hiddenSettings: [
|
|
186
|
+
'shape',
|
|
187
|
+
'gap'
|
|
188
|
+
]
|
|
60
189
|
}
|
|
61
190
|
]
|
|
62
191
|
}
|