@gem-sdk/components 2.0.0-dev.278 → 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/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/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/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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var common = require('../../../helpers/common.js');
|
|
4
|
+
var core = require('@gem-sdk/core');
|
|
5
|
+
|
|
6
|
+
const composeStyles = (styles)=>common.filterTruthy(styles);
|
|
7
|
+
const composeContainerStyles = (setting, styles)=>{
|
|
8
|
+
const { background } = setting ?? {};
|
|
9
|
+
const { globalSize } = styles ?? {};
|
|
10
|
+
const composeGlobalSize = core.makeGlobalSize(globalSize);
|
|
11
|
+
return composeStyles({
|
|
12
|
+
...styles,
|
|
13
|
+
...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
|
|
14
|
+
'--w': '100%'
|
|
15
|
+
},
|
|
16
|
+
...composeGlobalSize.padding,
|
|
17
|
+
...core.getStyleBackgroundByDevice(background)
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.composeContainerStyles = composeContainerStyles;
|
|
@@ -8,15 +8,18 @@ var system = require('@gem-sdk/system');
|
|
|
8
8
|
var composeStyles = require('./common/composeStyles.js');
|
|
9
9
|
var composeClasses = require('./common/composeClasses.js');
|
|
10
10
|
|
|
11
|
-
const FormCheckbox = ({ builderProps, setting, advanced })=>{
|
|
11
|
+
const FormCheckbox = ({ builderProps, setting, advanced, styles })=>{
|
|
12
12
|
const { name, description, selected, required } = setting ?? {};
|
|
13
13
|
const composedContainerStyles = system.createStyle(composeStyles.composeContainerStyles(setting));
|
|
14
|
-
const
|
|
15
|
-
const composedFormCheckboxStyles = system.createStyle(composeStyles.composeFormCheckboxStyles(setting));
|
|
14
|
+
const composedFormCheckboxStyles = system.createStyle(composeStyles.composeFormCheckboxStyles(setting, styles, builderProps));
|
|
16
15
|
const composedFormCheckboxInputStyles = system.createStyle(composeStyles.composeFormCheckboxInputStyles());
|
|
17
16
|
const composedContainerClasses = system.createClass(composeClasses.composeContainerClasses(setting, advanced, builderProps));
|
|
18
17
|
const composedFormCheckboxInputClasses = system.createClass(composeClasses.composeFormCheckboxInputClasses());
|
|
19
18
|
const composedFormCheckboxLabelClasses = system.createClass(composeClasses.composeFormCheckboxLabelClasses());
|
|
19
|
+
console.log({
|
|
20
|
+
setting,
|
|
21
|
+
styles
|
|
22
|
+
});
|
|
20
23
|
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
21
24
|
"data-id": builderProps?.uid,
|
|
22
25
|
style: composedContainerStyles,
|
|
@@ -35,7 +38,6 @@ const FormCheckbox = ({ builderProps, setting, advanced })=>{
|
|
|
35
38
|
}),
|
|
36
39
|
/*#__PURE__*/ jsxRuntime.jsx("span", {
|
|
37
40
|
className: composedFormCheckboxLabelClasses,
|
|
38
|
-
style: composedFormCheckboxSpanStyles,
|
|
39
41
|
children: description
|
|
40
42
|
})
|
|
41
43
|
]
|
|
@@ -8,7 +8,7 @@ var system = require('@gem-sdk/system');
|
|
|
8
8
|
var composeStyles = require('./common/composeStyles.js');
|
|
9
9
|
var composeClasses = require('./common/composeClasses.js');
|
|
10
10
|
|
|
11
|
-
const FromCheckbox = ({ builderProps, setting, advanced, pageContext })=>{
|
|
11
|
+
const FromCheckbox = ({ builderProps, setting, advanced, pageContext, styles })=>{
|
|
12
12
|
const { name, description, selected, required, translate } = setting ?? {};
|
|
13
13
|
const descriptionDisplay = helpers.getDynamicSourceLocales({
|
|
14
14
|
val: description,
|
|
@@ -18,9 +18,8 @@ const FromCheckbox = ({ builderProps, setting, advanced, pageContext })=>{
|
|
|
18
18
|
translate
|
|
19
19
|
});
|
|
20
20
|
const composedContainerStyles = system.createStyle(composeStyles.composeContainerStyles(setting));
|
|
21
|
-
const composedFormCheckboxStyles = system.createStyle(composeStyles.composeFormCheckboxStyles(setting));
|
|
21
|
+
const composedFormCheckboxStyles = system.createStyle(composeStyles.composeFormCheckboxStyles(setting, styles, builderProps));
|
|
22
22
|
const composedFormCheckboxInputStyles = system.createStyle(composeStyles.composeFormCheckboxInputStyles());
|
|
23
|
-
const composedFormCheckboxSpanStyles = system.createStyle(composeStyles.composeFormCheckboxSpanStyles(setting));
|
|
24
23
|
const composedContainerClasses = system.createClass(composeClasses.composeContainerClasses(setting, advanced, builderProps));
|
|
25
24
|
const composedFormCheckboxInputClasses = system.createClass(composeClasses.composeFormCheckboxInputClasses());
|
|
26
25
|
const composedFormCheckboxLabelClasses = system.createClass(composeClasses.composeFormCheckboxLabelClasses());
|
|
@@ -45,7 +44,6 @@ const FromCheckbox = ({ builderProps, setting, advanced, pageContext })=>{
|
|
|
45
44
|
</input>
|
|
46
45
|
<span
|
|
47
46
|
class=${composedFormCheckboxLabelClasses}
|
|
48
|
-
style="${composedFormCheckboxSpanStyles}"
|
|
49
47
|
>
|
|
50
48
|
${descriptionDisplay}
|
|
51
49
|
</span>
|
|
@@ -10,7 +10,7 @@ const composeContainerClasses = (setting, advanced, builderProps)=>{
|
|
|
10
10
|
return composeClasses({
|
|
11
11
|
[builderProps?.uid]: !!builderProps?.uid,
|
|
12
12
|
[advanced?.cssClass]: !!advanced?.cssClass,
|
|
13
|
-
'gp-flex gp-items-center !gp-normal-case': true,
|
|
13
|
+
'gp-flex gp-flex-wrap gp-items-center !gp-normal-case': true,
|
|
14
14
|
[appendTypoClass]: !!appendTypoClass
|
|
15
15
|
});
|
|
16
16
|
};
|
|
@@ -21,7 +21,7 @@ const composeFormCheckboxInputClasses = ()=>{
|
|
|
21
21
|
};
|
|
22
22
|
const composeFormCheckboxLabelClasses = ()=>{
|
|
23
23
|
return composeClasses({
|
|
24
|
-
'
|
|
24
|
+
'w-auto': true
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var common = require('../../../helpers/common.js');
|
|
4
4
|
var core = require('@gem-sdk/core');
|
|
5
|
+
var helpers = require('../../../../image/components/common/helpers.js');
|
|
5
6
|
|
|
6
7
|
const composeStyles = (styles)=>common.filterTruthy(styles);
|
|
7
8
|
const composeContainerStyles = (setting)=>{
|
|
@@ -9,11 +10,30 @@ const composeContainerStyles = (setting)=>{
|
|
|
9
10
|
...core.makeStyleResponsive('ta', setting?.align)
|
|
10
11
|
});
|
|
11
12
|
};
|
|
12
|
-
const composeFormCheckboxStyles = (setting)=>{
|
|
13
|
-
const { typography } = setting ?? {};
|
|
13
|
+
const composeFormCheckboxStyles = (setting, styles, builderProps)=>{
|
|
14
|
+
const { typography, horizontalSpacing } = setting ?? {};
|
|
15
|
+
const { wrapperBorder, borderRadius, shadow, globalSize } = styles ?? {};
|
|
14
16
|
const appendTypoStyle = core.composeTypographyStyle(setting?.typo, typography);
|
|
17
|
+
const composeGlobalSize = core.makeGlobalSize(globalSize);
|
|
18
|
+
console.log(123, horizontalSpacing);
|
|
15
19
|
return composeStyles({
|
|
16
|
-
...
|
|
20
|
+
...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
|
|
21
|
+
'--w': '100%'
|
|
22
|
+
},
|
|
23
|
+
...appendTypoStyle,
|
|
24
|
+
...core.getStyleBackgroundByDevice(setting?.background),
|
|
25
|
+
...core.makeStyle({
|
|
26
|
+
cg: horizontalSpacing
|
|
27
|
+
}),
|
|
28
|
+
...core.getBorderStyle(wrapperBorder),
|
|
29
|
+
...core.getBorderRadiusStyle(borderRadius),
|
|
30
|
+
...helpers.overwriteDefaultRadius(builderProps?.builderData?.advanced?.rounded),
|
|
31
|
+
...core.getStyleShadow({
|
|
32
|
+
value: shadow,
|
|
33
|
+
styleAppliedFor: 'box-shadow',
|
|
34
|
+
isEnableShadow: shadow?.type !== 'none'
|
|
35
|
+
}),
|
|
36
|
+
...composeGlobalSize.padding
|
|
17
37
|
});
|
|
18
38
|
};
|
|
19
39
|
const composeFormCheckboxInputStyles = ()=>{
|
|
@@ -21,14 +41,7 @@ const composeFormCheckboxInputStyles = ()=>{
|
|
|
21
41
|
appearance: 'auto'
|
|
22
42
|
});
|
|
23
43
|
};
|
|
24
|
-
const composeFormCheckboxSpanStyles = (setting)=>{
|
|
25
|
-
const { horizontalSpacing } = setting ?? {};
|
|
26
|
-
return composeStyles({
|
|
27
|
-
...core.makeStyleResponsive('pl', horizontalSpacing)
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
44
|
|
|
31
45
|
exports.composeContainerStyles = composeContainerStyles;
|
|
32
46
|
exports.composeFormCheckboxInputStyles = composeFormCheckboxInputStyles;
|
|
33
|
-
exports.composeFormCheckboxSpanStyles = composeFormCheckboxSpanStyles;
|
|
34
47
|
exports.composeFormCheckboxStyles = composeFormCheckboxStyles;
|
|
@@ -15,7 +15,7 @@ const composeFormDropdownClasses = (setting)=>{
|
|
|
15
15
|
const appendTypoClass = core.composeTypographyClassName(setting?.typo, typography);
|
|
16
16
|
return composeClasses({
|
|
17
17
|
[appendTypoClass]: !!appendTypoClass,
|
|
18
|
-
[
|
|
18
|
+
[`${core.genSizeClass(setting?.size?.type)}`]: !!setting?.size?.type,
|
|
19
19
|
'gp-form-item !gp-outline-none !gp-h-auto focus:!gp-shadow-none hover:!gp-shadow-none': true
|
|
20
20
|
});
|
|
21
21
|
};
|
|
@@ -21,17 +21,25 @@ const FormEmail = ({ builderProps, builderAttrs, setting, advanced, children })=
|
|
|
21
21
|
className: containerClasses,
|
|
22
22
|
style: containerStyles,
|
|
23
23
|
children: [
|
|
24
|
-
/*#__PURE__*/ jsxRuntime.jsx("
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
style: innerStyles,
|
|
28
|
-
placeholder: placeholder,
|
|
29
|
-
name: name,
|
|
30
|
-
required: required,
|
|
31
|
-
autoComplete: "email",
|
|
32
|
-
value: hideOnClient ? defaultEmail : ''
|
|
24
|
+
/*#__PURE__*/ jsxRuntime.jsx("span", {
|
|
25
|
+
className: "gp-text-16 gp-text-[#121212]",
|
|
26
|
+
children: placeholder
|
|
33
27
|
}),
|
|
34
|
-
|
|
28
|
+
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
29
|
+
children: [
|
|
30
|
+
/*#__PURE__*/ jsxRuntime.jsx("input", {
|
|
31
|
+
type: "email",
|
|
32
|
+
className: innerClasses,
|
|
33
|
+
style: innerStyles,
|
|
34
|
+
placeholder: placeholder,
|
|
35
|
+
name: name,
|
|
36
|
+
required: required,
|
|
37
|
+
autoComplete: "email",
|
|
38
|
+
value: hideOnClient ? defaultEmail : ''
|
|
39
|
+
}),
|
|
40
|
+
children
|
|
41
|
+
]
|
|
42
|
+
})
|
|
35
43
|
]
|
|
36
44
|
});
|
|
37
45
|
};
|
|
@@ -9,7 +9,8 @@ const composeContainerClasses = (setting, advanced, builderProps)=>{
|
|
|
9
9
|
return composeClasses({
|
|
10
10
|
[builderProps?.uid]: !!builderProps?.uid,
|
|
11
11
|
'!gp-hidden': hideOnClient,
|
|
12
|
-
[advanced?.cssClass]: !!advanced?.cssClass
|
|
12
|
+
[advanced?.cssClass]: !!advanced?.cssClass,
|
|
13
|
+
'flex flex-col': true
|
|
13
14
|
});
|
|
14
15
|
};
|
|
15
16
|
const composeInnerClasses = (setting)=>{
|
|
@@ -6,9 +6,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var core = require('@gem-sdk/core');
|
|
8
8
|
var ChildrenDroppable = require('../../../grid/components/ChildrenDroppable.js');
|
|
9
|
+
var system = require('@gem-sdk/system');
|
|
10
|
+
var composeStyles = require('../contact/common/composeStyles.js');
|
|
9
11
|
|
|
10
|
-
const Newsletter = ({ children })=>{
|
|
11
|
-
|
|
12
|
+
const Newsletter = ({ children, setting, styles })=>{
|
|
13
|
+
const containerStyle = system.createStyle(composeStyles.composeContainerStyles(setting, styles));
|
|
14
|
+
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
15
|
+
className: "gp-border-box",
|
|
16
|
+
style: containerStyle,
|
|
12
17
|
children: core.isEmptyChildren(children) ? /*#__PURE__*/ jsxRuntime.jsx(ChildrenDroppable.default, {}) : children
|
|
13
18
|
});
|
|
14
19
|
};
|
|
@@ -30,7 +30,7 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
|
|
|
30
30
|
const composedContainerStyles = system.createStyle(composeStyles.composeContainerStyles(style));
|
|
31
31
|
const anchorAttrs = composeAttrs.composeAnchorAttrs(builderProps, setting);
|
|
32
32
|
const composedFormClasses = system.createClass(composeClasses.composeFormClasses());
|
|
33
|
-
const composedFormStyles = system.createStyle(composeStyles.composeFormStyles());
|
|
33
|
+
const composedFormStyles = system.createStyle(composeStyles.composeFormStyles(setting));
|
|
34
34
|
const formAttrs = composeAttrs.composeFormAttrs(builderProps);
|
|
35
35
|
const popoverAttrs = composeAttrs.composePopoverAttrs(builderProps);
|
|
36
36
|
const generatedPopoverStyles = composeStyles.popoverStyles(builderProps);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var common = require('../../../helpers/common.js');
|
|
4
|
+
var core = require('@gem-sdk/core');
|
|
4
5
|
|
|
5
6
|
const composeStyles = (styles)=>common.filterTruthy(styles);
|
|
6
7
|
const composeContainerStyles = (style)=>{
|
|
@@ -8,9 +9,10 @@ const composeContainerStyles = (style)=>{
|
|
|
8
9
|
...style
|
|
9
10
|
});
|
|
10
11
|
};
|
|
11
|
-
const composeFormStyles = ()=>{
|
|
12
|
+
const composeFormStyles = (setting)=>{
|
|
13
|
+
const { background } = setting ?? {};
|
|
12
14
|
return composeStyles({
|
|
13
|
-
|
|
15
|
+
...core.getStyleBackgroundByDevice(background),
|
|
14
16
|
left: '50%',
|
|
15
17
|
transform: 'translateX(-50%)',
|
|
16
18
|
color: '#EA3335'
|
|
@@ -21,15 +21,23 @@ const FormTextArea = ({ setting, builderProps, className, builderAttrs, advanced
|
|
|
21
21
|
className: composedContainerClasses,
|
|
22
22
|
style: composedContainerStyles,
|
|
23
23
|
children: [
|
|
24
|
-
/*#__PURE__*/ jsxRuntime.jsx("
|
|
25
|
-
className:
|
|
26
|
-
|
|
27
|
-
style: composedTextareaStyles,
|
|
28
|
-
required: required,
|
|
29
|
-
name: defaultName,
|
|
30
|
-
value: text
|
|
24
|
+
/*#__PURE__*/ jsxRuntime.jsx("span", {
|
|
25
|
+
className: "gp-text-16 gp-text-[#121212]",
|
|
26
|
+
children: placeholder
|
|
31
27
|
}),
|
|
32
|
-
|
|
28
|
+
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
29
|
+
children: [
|
|
30
|
+
/*#__PURE__*/ jsxRuntime.jsx("textarea", {
|
|
31
|
+
className: composedTextareaClasses,
|
|
32
|
+
placeholder: placeholder,
|
|
33
|
+
style: composedTextareaStyles,
|
|
34
|
+
required: required,
|
|
35
|
+
name: defaultName,
|
|
36
|
+
value: text
|
|
37
|
+
}),
|
|
38
|
+
children
|
|
39
|
+
]
|
|
40
|
+
})
|
|
33
41
|
]
|
|
34
42
|
});
|
|
35
43
|
};
|
|
@@ -19,7 +19,7 @@ const composeTextareaClasses = (setting, builderProps, className)=>{
|
|
|
19
19
|
[builderProps?.uid]: !!builderProps?.uid,
|
|
20
20
|
[appendTypoClass]: !!appendTypoClass,
|
|
21
21
|
[globalColorClass]: !!globalColorClass,
|
|
22
|
-
[
|
|
22
|
+
[`${core.genSizeClass(setting?.size?.type)}`]: !!setting?.size?.type,
|
|
23
23
|
'gp-form-item !gp-outline-none !gp-h-auto focus:!gp-shadow-none hover:!gp-shadow-none !gp-bg-none gp-min-h-[150px]': true
|
|
24
24
|
});
|
|
25
25
|
};
|
|
@@ -21,16 +21,24 @@ const TextField = ({ setting, builderProps, className, builderAttrs, advanced, c
|
|
|
21
21
|
className: composedContainerClasses,
|
|
22
22
|
style: composedContainerStyles,
|
|
23
23
|
children: [
|
|
24
|
-
/*#__PURE__*/ jsxRuntime.jsx("
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
style: composedTextFieldStyles,
|
|
28
|
-
placeholder: placeholder,
|
|
29
|
-
required: required,
|
|
30
|
-
name: defaultName,
|
|
31
|
-
value: text
|
|
24
|
+
/*#__PURE__*/ jsxRuntime.jsx("span", {
|
|
25
|
+
className: "gp-text-16 gp-text-[#121212]",
|
|
26
|
+
children: placeholder
|
|
32
27
|
}),
|
|
33
|
-
|
|
28
|
+
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
29
|
+
children: [
|
|
30
|
+
/*#__PURE__*/ jsxRuntime.jsx("input", {
|
|
31
|
+
type: "text",
|
|
32
|
+
className: composedTextFieldClasses,
|
|
33
|
+
style: composedTextFieldStyles,
|
|
34
|
+
placeholder: placeholder,
|
|
35
|
+
required: required,
|
|
36
|
+
name: defaultName,
|
|
37
|
+
value: text
|
|
38
|
+
}),
|
|
39
|
+
children
|
|
40
|
+
]
|
|
41
|
+
})
|
|
34
42
|
]
|
|
35
43
|
});
|
|
36
44
|
};
|
|
@@ -19,8 +19,8 @@ const composeTextFieldClasses = (setting, builderProps, className)=>{
|
|
|
19
19
|
[builderProps?.uid]: !!builderProps?.uid,
|
|
20
20
|
[appendTypoClass]: !!appendTypoClass,
|
|
21
21
|
[globalColorClass]: !!globalColorClass,
|
|
22
|
-
[
|
|
23
|
-
'gp-form-item !gp-outline-none !gp-h-auto focus:!gp-shadow-none hover:!gp-shadow-none !gp-bg-none
|
|
22
|
+
[`${core.genSizeClass(setting?.size?.type)}`]: !!setting?.size?.type,
|
|
23
|
+
'gp-form-item !gp-outline-none !gp-h-auto focus:!gp-shadow-none hover:!gp-shadow-none !gp-bg-none': true
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -21,8 +21,12 @@ const config = {
|
|
|
21
21
|
settings: [
|
|
22
22
|
{
|
|
23
23
|
id: 'setting',
|
|
24
|
-
note: `
|
|
24
|
+
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>`,
|
|
25
25
|
controls: Newsletter.default.settings?.find((item)=>item.id === 'setting')?.controls || []
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 'style',
|
|
29
|
+
controls: Newsletter.default.settings?.find((item)=>item.id === 'style')?.controls || []
|
|
26
30
|
}
|
|
27
31
|
],
|
|
28
32
|
ui: Newsletter.default.ui,
|
|
@@ -59,16 +59,12 @@ const FormCheckboxSettings = [
|
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
id: 'horizontalSpacing',
|
|
62
|
-
label: 'Checkbox & text spacing',
|
|
63
62
|
type: 'input:unit',
|
|
64
63
|
units: [
|
|
65
64
|
'px'
|
|
66
65
|
],
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
default: 'var(--g-s-xs)'
|
|
70
|
-
}
|
|
71
|
-
}
|
|
66
|
+
label: 'Icon Spacing',
|
|
67
|
+
default: '4px'
|
|
72
68
|
},
|
|
73
69
|
{
|
|
74
70
|
id: 'align',
|
|
@@ -102,6 +98,157 @@ const FormCheckboxSettings = [
|
|
|
102
98
|
default: 'left'
|
|
103
99
|
}
|
|
104
100
|
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: 'background',
|
|
104
|
+
type: 'background-media',
|
|
105
|
+
ignoreReRender: true,
|
|
106
|
+
devices: {
|
|
107
|
+
desktop: {
|
|
108
|
+
default: {
|
|
109
|
+
type: 'color',
|
|
110
|
+
color: 'transparent',
|
|
111
|
+
image: {
|
|
112
|
+
src: '',
|
|
113
|
+
width: 0,
|
|
114
|
+
height: 0
|
|
115
|
+
},
|
|
116
|
+
size: 'cover',
|
|
117
|
+
position: {
|
|
118
|
+
x: 50,
|
|
119
|
+
y: 50
|
|
120
|
+
},
|
|
121
|
+
repeat: 'no-repeat',
|
|
122
|
+
attachment: 'scroll'
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
compoDefaultValue: {
|
|
127
|
+
desktop: {
|
|
128
|
+
default: {
|
|
129
|
+
type: 'color',
|
|
130
|
+
color: '#DDDDDD',
|
|
131
|
+
image: {
|
|
132
|
+
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
133
|
+
width: 1200,
|
|
134
|
+
height: 480
|
|
135
|
+
},
|
|
136
|
+
size: 'cover',
|
|
137
|
+
position: {
|
|
138
|
+
x: 50,
|
|
139
|
+
y: 50
|
|
140
|
+
},
|
|
141
|
+
repeat: 'no-repeat',
|
|
142
|
+
attachment: 'scroll',
|
|
143
|
+
preload: false
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: 'style',
|
|
152
|
+
controls: [
|
|
153
|
+
{
|
|
154
|
+
id: 'globalSize',
|
|
155
|
+
type: 'size-setting',
|
|
156
|
+
devices: {
|
|
157
|
+
desktop: {
|
|
158
|
+
default: {
|
|
159
|
+
width: 'Auto',
|
|
160
|
+
height: 'Auto',
|
|
161
|
+
padding: {
|
|
162
|
+
type: 'medium',
|
|
163
|
+
top: '12px',
|
|
164
|
+
bottom: '12px',
|
|
165
|
+
left: '24px',
|
|
166
|
+
right: '24px'
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
settingConfig: {
|
|
172
|
+
width: {
|
|
173
|
+
displayOptions: [
|
|
174
|
+
'full',
|
|
175
|
+
'auto',
|
|
176
|
+
'small',
|
|
177
|
+
'large',
|
|
178
|
+
'medium'
|
|
179
|
+
],
|
|
180
|
+
sizeConfig: {
|
|
181
|
+
small: '100px',
|
|
182
|
+
medium: '116px',
|
|
183
|
+
large: '132px'
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
height: {
|
|
187
|
+
displayOptions: [
|
|
188
|
+
'auto',
|
|
189
|
+
'small',
|
|
190
|
+
'large',
|
|
191
|
+
'medium'
|
|
192
|
+
],
|
|
193
|
+
sizeConfig: {
|
|
194
|
+
small: '28px',
|
|
195
|
+
medium: '36px',
|
|
196
|
+
large: '44px'
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
hiddenSettings: [
|
|
201
|
+
'shape',
|
|
202
|
+
'gap'
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
id: 'wrapperBorder',
|
|
207
|
+
type: 'border',
|
|
208
|
+
label: 'Border',
|
|
209
|
+
default: {
|
|
210
|
+
borderType: 'none',
|
|
211
|
+
border: 'none',
|
|
212
|
+
width: '1px 1px 1px 1px',
|
|
213
|
+
position: 'all',
|
|
214
|
+
borderWidth: '1px',
|
|
215
|
+
color: '#000000',
|
|
216
|
+
isCustom: true
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
id: 'borderRadius',
|
|
221
|
+
type: 'radius-preset',
|
|
222
|
+
label: 'Corner',
|
|
223
|
+
default: {
|
|
224
|
+
radiusType: 'none'
|
|
225
|
+
},
|
|
226
|
+
compoDefaultValue: {
|
|
227
|
+
bblr: '20px',
|
|
228
|
+
btrr: '20px',
|
|
229
|
+
bbrr: '20px',
|
|
230
|
+
btlr: '20px',
|
|
231
|
+
radiusType: 'rounded'
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: 'hasActiveShadow',
|
|
236
|
+
type: 'toggle',
|
|
237
|
+
label: 'Enable Button Shadow',
|
|
238
|
+
default: false
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
id: 'shadow',
|
|
242
|
+
type: 'boxShadow',
|
|
243
|
+
label: 'Button Shadow',
|
|
244
|
+
default: {
|
|
245
|
+
type: 'none',
|
|
246
|
+
distance: '10px',
|
|
247
|
+
blur: '12px',
|
|
248
|
+
spread: '10px',
|
|
249
|
+
color: 'rgba(18, 18, 18, 0.77)',
|
|
250
|
+
angle: 40
|
|
251
|
+
}
|
|
105
252
|
}
|
|
106
253
|
]
|
|
107
254
|
}
|