@gem-sdk/components 2.0.0-dev.293 → 2.0.0-dev.303
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/common/index.js +2 -2
- package/dist/cjs/article/components/ArticleAuthor.js +1 -1
- package/dist/cjs/article/components/ArticleTitle.js +3 -1
- package/dist/cjs/article/components/ArticleTitle.liquid.js +5 -2
- package/dist/cjs/article/setting/ArticleList.js +0 -30
- package/dist/cjs/article/setting/configs/ArticleAuthor/presets.js +0 -9
- package/dist/cjs/article/setting/configs/ArticleAuthor/settings.js +9 -5
- package/dist/cjs/article/setting/configs/ArticleAuthor/uiV2.js +16 -0
- package/dist/cjs/article/setting/configs/ArticleCategory/presets.js +0 -9
- package/dist/cjs/article/setting/configs/ArticleCategory/settings.js +9 -5
- package/dist/cjs/article/setting/configs/ArticleDate/presets.js +0 -9
- package/dist/cjs/article/setting/configs/ArticleDate/settings.js +9 -5
- package/dist/cjs/article/setting/configs/ArticleImage/settings.js +22 -1
- package/dist/cjs/article/setting/configs/ArticleTitle/settings.js +36 -7
- package/dist/cjs/article/setting/configs/ArticleTitle/uiV2.js +47 -2
- package/dist/cjs/builder.js +6 -2
- package/dist/cjs/button/components/Button.js +1 -1
- package/dist/cjs/button/components/Button.liquid.js +1 -1
- package/dist/cjs/button/components/ButtonIcon.liquid.js +3 -1
- package/dist/cjs/button/components/ButtonLabel.liquid.js +3 -1
- package/dist/cjs/button/components/common/attributes.js +2 -2
- package/dist/cjs/button/components/common/classes.js +2 -1
- package/dist/cjs/button/components/common/styles.js +9 -11
- package/dist/cjs/button/setting/configs/settings.js +7 -8
- package/dist/cjs/button/setting/configs/uiV2.js +4 -50
- package/dist/cjs/dialog/components/Dialog.js +109 -394
- package/dist/cjs/dialog/components/Dialog.liquid.js +129 -153
- package/dist/cjs/dialog/components/common/common.js +130 -0
- package/dist/cjs/dialog/components/common/getAttr.js +27 -0
- package/dist/cjs/dialog/components/common/getClasses.js +88 -0
- package/dist/cjs/dialog/components/common/getStyle.js +107 -0
- package/dist/cjs/dialog/components/hooks/useDialog.js +233 -0
- package/dist/cjs/dialog/setting/configs/settings.js +1 -1
- package/dist/cjs/dialog/setting/configs/uiV2.js +35 -25
- package/dist/cjs/form/components/form-checkbox/FormCheckbox.js +0 -4
- package/dist/cjs/form/components/textinput/TextInput.js +58 -0
- package/dist/cjs/form/components/textinput/TextInput.liquid.js +60 -0
- package/dist/cjs/form/components/textinput/common/composeClasses.js +33 -0
- package/dist/cjs/form/components/textinput/common/composeStyles.js +70 -0
- package/dist/cjs/form/next.js +5 -1
- package/dist/cjs/form/setting/index.js +3 -1
- package/dist/cjs/form/setting/newsletter/configs/settings.js +4 -2
- package/dist/cjs/form/setting/newsletter/configs/uiV2.js +2 -0
- package/dist/cjs/form/setting/text-input/TextInput.js +53 -0
- package/dist/cjs/form/setting/text-input/configs/settings.js +307 -0
- package/dist/cjs/form/setting/text-input/configs/uiV1.js +106 -0
- package/dist/cjs/form/setting/text-input/configs/uiV2.js +303 -0
- package/dist/cjs/grid/row/setting/configs/settings.js +6 -3
- package/dist/cjs/helpers.js +8 -0
- package/dist/cjs/icon-list/common/attrs.js +10 -0
- package/dist/cjs/icon-list/common/classes.js +9 -0
- package/dist/cjs/icon-list/common/styles.js +29 -0
- package/dist/cjs/icon-list/components/IconList.js +19 -30
- package/dist/cjs/icon-list/components/IconList.liquid.js +21 -24
- package/dist/cjs/icon-list/components/IconListItem.js +13 -7
- package/dist/cjs/icon-list/components/IconListItem.liquid.js +13 -7
- package/dist/cjs/icon-list-hoz/components/IconListHoz.js +37 -25
- package/dist/cjs/icon-list-hoz/components/IconListHoz.liquid.js +31 -25
- package/dist/cjs/icon-list-hoz/components/IconListHozItem.js +12 -6
- package/dist/cjs/icon-list-hoz/components/IconListIHozItem.liquid.js +26 -0
- package/dist/cjs/icon-list-hoz/components/common/getAttr.js +9 -0
- package/dist/cjs/icon-list-hoz/components/common/getClasses.js +24 -0
- package/dist/cjs/icon-list-hoz/components/common/getStyle.js +30 -0
- package/dist/cjs/image/components/AdaptiveImage.js +1 -1
- package/dist/cjs/image/components/AdaptiveImage.liquid.js +4 -4
- package/dist/cjs/image/components/Image.js +1 -5
- package/dist/cjs/image/components/common/styles.js +2 -2
- package/dist/cjs/image/components/helpers/getNextImageLiquidAttrs.js +6 -24
- package/dist/cjs/image/components/helpers/getNextImageReactAttrs.js +3 -3
- package/dist/cjs/index.js +6 -1
- package/dist/cjs/index.liquid.js +7 -3
- package/dist/cjs/line/common/classes.js +66 -0
- package/dist/cjs/line/common/index.js +16 -0
- package/dist/cjs/line/common/styles.js +120 -0
- package/dist/cjs/line/components/Divider.js +26 -0
- package/dist/cjs/line/components/Divider.liquid.js +22 -0
- package/dist/cjs/line/components/Line.js +98 -0
- package/dist/cjs/line/components/Line.liquid.js +86 -0
- package/dist/cjs/line/next.js +1 -1
- package/dist/cjs/post-purchase/line/setting/configs/uiV2.js +1 -1
- package/dist/cjs/post-purchase/link/setting/configs/settings.js +2 -1
- package/dist/cjs/post-purchase/link/setting/configs/uiV2.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
- package/dist/cjs/product/components/FileUpload/components/config/setting.js +24 -26
- package/dist/cjs/product/components/FileUpload/components/config/uiV2.js +12 -179
- package/dist/cjs/product/components/ProductList.js +1 -1
- package/dist/cjs/product/components/ProductVariants/index.js +2 -2
- package/dist/cjs/product/components/ProductVariants/index.liquid.js +2 -2
- package/dist/cjs/product/components/ProductVariants/variants/Dropdown.js +8 -3
- package/dist/cjs/product/components/ProductVariants/variants/Dropdown.liquid.js +7 -2
- package/dist/cjs/product/setting/ProductVariants.js +8 -1374
- package/dist/cjs/product/setting/product/configs/uiV2.js +2 -2
- package/dist/cjs/product/setting/product-list/configs/uiV2.js +0 -3
- package/dist/cjs/product/setting/product-variant/configs/presets.js +168 -0
- package/dist/cjs/product/setting/product-variant/configs/settings.js +732 -0
- package/dist/cjs/product/setting/product-variant/configs/uiV1.js +509 -0
- package/dist/cjs/product/setting/product-variant/configs/uiV2.js +347 -0
- package/dist/cjs/third-party/components/EcoboostifyShoppableReelUgc.js +33 -0
- package/dist/cjs/third-party/components/EcoboostifyShoppableReelUgc.liquid.js +12 -0
- package/dist/cjs/third-party/components/RechargeSubscriptions.liquid.js +1 -1
- package/dist/cjs/third-party/configs/EcoboostifyShoppableReelUgc.js +12 -0
- package/dist/cjs/third-party/next.js +5 -0
- package/dist/cjs/third-party/setting/EcoboostifyShoppableReelUgc.js +142 -0
- package/dist/cjs/third-party/setting/RechargeSubscriptions.js +5 -2
- package/dist/cjs/third-party/setting/index.js +3 -1
- package/dist/esm/accordion/components/common/index.js +2 -2
- package/dist/esm/article/components/ArticleAuthor.js +1 -1
- package/dist/esm/article/components/ArticleTitle.js +3 -1
- package/dist/esm/article/components/ArticleTitle.liquid.js +5 -2
- package/dist/esm/article/setting/ArticleList.js +0 -30
- package/dist/esm/article/setting/configs/ArticleAuthor/presets.js +0 -9
- package/dist/esm/article/setting/configs/ArticleAuthor/settings.js +9 -5
- package/dist/esm/article/setting/configs/ArticleAuthor/uiV2.js +16 -0
- package/dist/esm/article/setting/configs/ArticleCategory/presets.js +0 -9
- package/dist/esm/article/setting/configs/ArticleCategory/settings.js +9 -5
- package/dist/esm/article/setting/configs/ArticleDate/presets.js +0 -9
- package/dist/esm/article/setting/configs/ArticleDate/settings.js +9 -5
- package/dist/esm/article/setting/configs/ArticleImage/settings.js +22 -1
- package/dist/esm/article/setting/configs/ArticleTitle/settings.js +36 -7
- package/dist/esm/article/setting/configs/ArticleTitle/uiV2.js +47 -2
- package/dist/esm/builder.js +6 -2
- package/dist/esm/button/components/Button.js +1 -1
- package/dist/esm/button/components/Button.liquid.js +1 -1
- package/dist/esm/button/components/ButtonIcon.liquid.js +3 -1
- package/dist/esm/button/components/ButtonLabel.liquid.js +3 -1
- package/dist/esm/button/components/common/attributes.js +2 -2
- package/dist/esm/button/components/common/classes.js +3 -2
- package/dist/esm/button/components/common/styles.js +10 -12
- package/dist/esm/button/setting/configs/settings.js +7 -8
- package/dist/esm/button/setting/configs/uiV2.js +4 -50
- package/dist/esm/dialog/components/Dialog.js +110 -395
- package/dist/esm/dialog/components/Dialog.liquid.js +130 -154
- package/dist/esm/dialog/components/common/common.js +117 -0
- package/dist/esm/dialog/components/common/getAttr.js +22 -0
- package/dist/esm/dialog/components/common/getClasses.js +79 -0
- package/dist/esm/dialog/components/common/getStyle.js +98 -0
- package/dist/esm/dialog/components/hooks/useDialog.js +231 -0
- package/dist/esm/dialog/setting/configs/settings.js +1 -1
- package/dist/esm/dialog/setting/configs/uiV2.js +35 -25
- package/dist/esm/form/components/form-checkbox/FormCheckbox.js +0 -4
- package/dist/esm/form/components/textinput/TextInput.js +54 -0
- package/dist/esm/form/components/textinput/TextInput.liquid.js +56 -0
- package/dist/esm/form/components/textinput/common/composeClasses.js +29 -0
- package/dist/esm/form/components/textinput/common/composeStyles.js +67 -0
- package/dist/esm/form/next.js +5 -1
- package/dist/esm/form/setting/index.js +3 -1
- package/dist/esm/form/setting/newsletter/configs/settings.js +4 -2
- package/dist/esm/form/setting/newsletter/configs/uiV2.js +2 -0
- package/dist/esm/form/setting/text-input/TextInput.js +49 -0
- package/dist/esm/form/setting/text-input/configs/settings.js +305 -0
- package/dist/esm/form/setting/text-input/configs/uiV1.js +104 -0
- package/dist/esm/form/setting/text-input/configs/uiV2.js +301 -0
- package/dist/esm/grid/row/setting/configs/settings.js +6 -3
- package/dist/esm/helpers.js +8 -1
- package/dist/esm/icon-list/common/attrs.js +8 -0
- package/dist/esm/icon-list/common/classes.js +6 -0
- package/dist/esm/icon-list/common/styles.js +25 -0
- package/dist/esm/icon-list/components/IconList.js +21 -32
- package/dist/esm/icon-list/components/IconList.liquid.js +21 -24
- package/dist/esm/icon-list/components/IconListItem.js +13 -7
- package/dist/esm/icon-list/components/IconListItem.liquid.js +14 -8
- package/dist/esm/icon-list-hoz/components/IconListHoz.js +38 -26
- package/dist/esm/icon-list-hoz/components/IconListHoz.liquid.js +32 -26
- package/dist/esm/icon-list-hoz/components/IconListHozItem.js +12 -6
- package/dist/esm/icon-list-hoz/components/IconListIHozItem.liquid.js +22 -0
- package/dist/esm/icon-list-hoz/components/common/getAttr.js +7 -0
- package/dist/esm/icon-list-hoz/components/common/getClasses.js +21 -0
- package/dist/esm/icon-list-hoz/components/common/getStyle.js +27 -0
- package/dist/esm/image/components/AdaptiveImage.js +2 -2
- package/dist/esm/image/components/AdaptiveImage.liquid.js +4 -4
- package/dist/esm/image/components/Image.js +2 -6
- package/dist/esm/image/components/common/styles.js +2 -2
- package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +6 -24
- package/dist/esm/image/components/helpers/getNextImageReactAttrs.js +3 -3
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.liquid.js +4 -2
- package/dist/esm/line/common/classes.js +59 -0
- package/dist/esm/line/common/index.js +14 -0
- package/dist/esm/line/common/styles.js +114 -0
- package/dist/esm/line/components/Divider.js +22 -0
- package/dist/esm/line/components/Divider.liquid.js +18 -0
- package/dist/esm/line/components/Line.js +94 -0
- package/dist/esm/line/components/Line.liquid.js +82 -0
- package/dist/esm/line/next.js +1 -1
- package/dist/esm/post-purchase/line/setting/configs/uiV2.js +1 -1
- package/dist/esm/post-purchase/link/setting/configs/settings.js +2 -1
- package/dist/esm/post-purchase/link/setting/configs/uiV2.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
- package/dist/esm/product/components/FileUpload/components/config/setting.js +24 -26
- package/dist/esm/product/components/FileUpload/components/config/uiV2.js +12 -179
- package/dist/esm/product/components/ProductList.js +1 -1
- package/dist/esm/product/components/ProductVariants/index.js +2 -2
- package/dist/esm/product/components/ProductVariants/index.liquid.js +2 -2
- package/dist/esm/product/components/ProductVariants/variants/Dropdown.js +8 -3
- package/dist/esm/product/components/ProductVariants/variants/Dropdown.liquid.js +7 -2
- package/dist/esm/product/setting/ProductVariants.js +8 -1374
- package/dist/esm/product/setting/product/configs/uiV2.js +2 -2
- package/dist/esm/product/setting/product-list/configs/uiV2.js +0 -3
- package/dist/esm/product/setting/product-variant/configs/presets.js +166 -0
- package/dist/esm/product/setting/product-variant/configs/settings.js +730 -0
- package/dist/esm/product/setting/product-variant/configs/uiV1.js +507 -0
- package/dist/esm/product/setting/product-variant/configs/uiV2.js +345 -0
- package/dist/esm/third-party/components/EcoboostifyShoppableReelUgc.js +29 -0
- package/dist/esm/third-party/components/EcoboostifyShoppableReelUgc.liquid.js +8 -0
- package/dist/esm/third-party/components/RechargeSubscriptions.liquid.js +1 -1
- package/dist/esm/third-party/configs/EcoboostifyShoppableReelUgc.js +8 -0
- package/dist/esm/third-party/next.js +5 -0
- package/dist/esm/third-party/setting/EcoboostifyShoppableReelUgc.js +138 -0
- package/dist/esm/third-party/setting/RechargeSubscriptions.js +5 -2
- package/dist/esm/third-party/setting/index.js +3 -1
- package/dist/types/index.d.ts +184 -166
- package/package.json +2 -2
- package/dist/cjs/dialog/helpers/common.js +0 -55
- package/dist/cjs/icon-list-hoz/components/IconListItemHoz.liquid.js +0 -23
- package/dist/cjs/line/Divider.js +0 -35
- package/dist/cjs/line/Divider.liquid.js +0 -35
- package/dist/cjs/line/Line.js +0 -167
- package/dist/cjs/line/Line.liquid.js +0 -163
- package/dist/esm/dialog/helpers/common.js +0 -47
- package/dist/esm/icon-list-hoz/components/IconListItemHoz.liquid.js +0 -19
- package/dist/esm/line/Divider.js +0 -31
- package/dist/esm/line/Divider.liquid.js +0 -31
- package/dist/esm/line/Line.js +0 -163
- package/dist/esm/line/Line.liquid.js +0 -159
- /package/dist/cjs/dialog/{hooks/use-scroll-percentage.js → components/hooks/useScrollPercentage.js} +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/color.js +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/dropdown.js +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image-shopify.js +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image.js +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/rectangle-list.js +0 -0
- /package/dist/esm/dialog/{hooks/use-scroll-percentage.js → components/hooks/useScrollPercentage.js} +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/color.js +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/dropdown.js +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image-shopify.js +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image.js +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/rectangle-list.js +0 -0
|
@@ -611,11 +611,6 @@ const config = {
|
|
|
611
611
|
mobile: '12px'
|
|
612
612
|
},
|
|
613
613
|
fontWeight: '400',
|
|
614
|
-
lineHeight: {
|
|
615
|
-
desktop: '180%',
|
|
616
|
-
tablet: '180%',
|
|
617
|
-
mobile: '180%'
|
|
618
|
-
},
|
|
619
614
|
fontFamily: 'Assistant'
|
|
620
615
|
}
|
|
621
616
|
},
|
|
@@ -626,9 +621,6 @@ const config = {
|
|
|
626
621
|
advanced: {
|
|
627
622
|
'spacing-setting': {
|
|
628
623
|
desktop: {
|
|
629
|
-
margin: {
|
|
630
|
-
bottom: 'var(--g-s-s)'
|
|
631
|
-
},
|
|
632
624
|
padding: {
|
|
633
625
|
right: 'var(--g-s-s)',
|
|
634
626
|
top: '0px'
|
|
@@ -674,11 +666,6 @@ const config = {
|
|
|
674
666
|
mobile: '12px'
|
|
675
667
|
},
|
|
676
668
|
fontWeight: '400',
|
|
677
|
-
lineHeight: {
|
|
678
|
-
desktop: '180%',
|
|
679
|
-
tablet: '180%',
|
|
680
|
-
mobile: '180%'
|
|
681
|
-
},
|
|
682
669
|
fontFamily: 'Assistant'
|
|
683
670
|
}
|
|
684
671
|
},
|
|
@@ -689,9 +676,6 @@ const config = {
|
|
|
689
676
|
advanced: {
|
|
690
677
|
'spacing-setting': {
|
|
691
678
|
desktop: {
|
|
692
|
-
margin: {
|
|
693
|
-
bottom: 'var(--g-s-s)'
|
|
694
|
-
},
|
|
695
679
|
padding: {
|
|
696
680
|
right: 'var(--g-s-s)',
|
|
697
681
|
top: '0px'
|
|
@@ -737,26 +721,12 @@ const config = {
|
|
|
737
721
|
mobile: '12px'
|
|
738
722
|
},
|
|
739
723
|
fontWeight: '400',
|
|
740
|
-
lineHeight: {
|
|
741
|
-
desktop: '180%',
|
|
742
|
-
tablet: '180%',
|
|
743
|
-
mobile: '180%'
|
|
744
|
-
},
|
|
745
724
|
fontFamily: 'Assistant'
|
|
746
725
|
}
|
|
747
726
|
},
|
|
748
727
|
color: {
|
|
749
728
|
normal: 'text-2'
|
|
750
729
|
}
|
|
751
|
-
},
|
|
752
|
-
advanced: {
|
|
753
|
-
'spacing-setting': {
|
|
754
|
-
desktop: {
|
|
755
|
-
margin: {
|
|
756
|
-
bottom: 'var(--g-s-s)'
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
730
|
}
|
|
761
731
|
}
|
|
762
732
|
]
|
|
@@ -54,12 +54,16 @@ const ArticleAuthorSettings = [
|
|
|
54
54
|
id: 'typo',
|
|
55
55
|
type: 'typography-v2',
|
|
56
56
|
default: {
|
|
57
|
-
type: 'subheading-3'
|
|
57
|
+
type: 'subheading-3',
|
|
58
|
+
custom: {
|
|
59
|
+
lineHeight: {
|
|
60
|
+
desktop: '120%',
|
|
61
|
+
tablet: '120%',
|
|
62
|
+
mobile: '120%'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
58
65
|
},
|
|
59
|
-
ignoreReRender: true
|
|
60
|
-
hiddenSetting: {
|
|
61
|
-
color: true
|
|
62
|
-
}
|
|
66
|
+
ignoreReRender: true
|
|
63
67
|
},
|
|
64
68
|
{
|
|
65
69
|
id: 'textAlign',
|
|
@@ -47,12 +47,16 @@ const ArticleCategorySettings = [
|
|
|
47
47
|
id: 'typo',
|
|
48
48
|
type: 'typography-v2',
|
|
49
49
|
default: {
|
|
50
|
-
type: 'subheading-3'
|
|
50
|
+
type: 'subheading-3',
|
|
51
|
+
custom: {
|
|
52
|
+
lineHeight: {
|
|
53
|
+
desktop: '120%',
|
|
54
|
+
tablet: '120%',
|
|
55
|
+
mobile: '120%'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
51
58
|
},
|
|
52
|
-
ignoreReRender: true
|
|
53
|
-
hiddenSetting: {
|
|
54
|
-
color: true
|
|
55
|
-
}
|
|
59
|
+
ignoreReRender: true
|
|
56
60
|
},
|
|
57
61
|
{
|
|
58
62
|
id: 'textAlign',
|
|
@@ -80,12 +80,16 @@ const ArticleDateSettings = [
|
|
|
80
80
|
id: 'typo',
|
|
81
81
|
type: 'typography-v2',
|
|
82
82
|
default: {
|
|
83
|
-
type: 'subheading-3'
|
|
83
|
+
type: 'subheading-3',
|
|
84
|
+
custom: {
|
|
85
|
+
lineHeight: {
|
|
86
|
+
desktop: '120%',
|
|
87
|
+
tablet: '120%',
|
|
88
|
+
mobile: '120%'
|
|
89
|
+
}
|
|
90
|
+
}
|
|
84
91
|
},
|
|
85
|
-
ignoreReRender: true
|
|
86
|
-
hiddenSetting: {
|
|
87
|
-
color: true
|
|
88
|
-
}
|
|
92
|
+
ignoreReRender: true
|
|
89
93
|
},
|
|
90
94
|
{
|
|
91
95
|
id: 'textAlign',
|
|
@@ -48,13 +48,19 @@ const ArticleImageSettings = [
|
|
|
48
48
|
}
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
|
+
{
|
|
52
|
+
id: 'enableLink',
|
|
53
|
+
type: 'toggle',
|
|
54
|
+
label: 'Link',
|
|
55
|
+
default: true
|
|
56
|
+
},
|
|
51
57
|
{
|
|
52
58
|
id: 'linkArticle',
|
|
53
59
|
label: 'After click',
|
|
54
60
|
type: 'select',
|
|
55
61
|
options: [
|
|
56
62
|
{
|
|
57
|
-
label: '
|
|
63
|
+
label: 'View article',
|
|
58
64
|
value: true
|
|
59
65
|
},
|
|
60
66
|
{
|
|
@@ -64,6 +70,21 @@ const ArticleImageSettings = [
|
|
|
64
70
|
],
|
|
65
71
|
default: true,
|
|
66
72
|
info: 'Ability to click on article title to go to article detail page.'
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 'openNewTab',
|
|
76
|
+
type: 'segment',
|
|
77
|
+
label: 'Open new tab',
|
|
78
|
+
options: [
|
|
79
|
+
{
|
|
80
|
+
label: 'Yes',
|
|
81
|
+
value: true
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: 'No',
|
|
85
|
+
value: false
|
|
86
|
+
}
|
|
87
|
+
]
|
|
67
88
|
}
|
|
68
89
|
]
|
|
69
90
|
},
|
|
@@ -38,6 +38,12 @@ const ArticleTitleSettings = [
|
|
|
38
38
|
],
|
|
39
39
|
default: 'h1'
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
id: 'enableLink',
|
|
43
|
+
type: 'toggle',
|
|
44
|
+
label: 'Link',
|
|
45
|
+
default: true
|
|
46
|
+
},
|
|
41
47
|
{
|
|
42
48
|
id: 'linkArticle',
|
|
43
49
|
label: 'After click',
|
|
@@ -54,6 +60,22 @@ const ArticleTitleSettings = [
|
|
|
54
60
|
],
|
|
55
61
|
default: true,
|
|
56
62
|
info: 'Ability to click on article title to go to article detail page.'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: 'openNewTab',
|
|
66
|
+
type: 'segment',
|
|
67
|
+
label: 'Open new tab',
|
|
68
|
+
options: [
|
|
69
|
+
{
|
|
70
|
+
label: 'Yes',
|
|
71
|
+
value: true
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: 'No',
|
|
75
|
+
value: false
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
default: true
|
|
57
79
|
}
|
|
58
80
|
]
|
|
59
81
|
},
|
|
@@ -66,10 +88,7 @@ const ArticleTitleSettings = [
|
|
|
66
88
|
default: {
|
|
67
89
|
type: 'subheading-3'
|
|
68
90
|
},
|
|
69
|
-
ignoreReRender: true
|
|
70
|
-
hiddenSetting: {
|
|
71
|
-
color: true
|
|
72
|
-
}
|
|
91
|
+
ignoreReRender: true
|
|
73
92
|
},
|
|
74
93
|
{
|
|
75
94
|
id: 'textAlign',
|
|
@@ -113,8 +132,18 @@ const ArticleTitleSettings = [
|
|
|
113
132
|
},
|
|
114
133
|
{
|
|
115
134
|
id: 'hasLineClamp',
|
|
116
|
-
type: '
|
|
135
|
+
type: 'segment',
|
|
117
136
|
label: 'Has Line Clamp',
|
|
137
|
+
options: [
|
|
138
|
+
{
|
|
139
|
+
label: 'Yes',
|
|
140
|
+
value: true
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: 'No',
|
|
144
|
+
value: false
|
|
145
|
+
}
|
|
146
|
+
],
|
|
118
147
|
devices: {
|
|
119
148
|
desktop: {
|
|
120
149
|
default: false
|
|
@@ -123,7 +152,7 @@ const ArticleTitleSettings = [
|
|
|
123
152
|
},
|
|
124
153
|
{
|
|
125
154
|
id: 'lineClamp',
|
|
126
|
-
type: 'input:
|
|
155
|
+
type: 'input:stepper',
|
|
127
156
|
min: 1,
|
|
128
157
|
label: 'Line Clamp',
|
|
129
158
|
disableDecimal: true,
|
|
@@ -137,7 +166,7 @@ const ArticleTitleSettings = [
|
|
|
137
166
|
{
|
|
138
167
|
id: 'color',
|
|
139
168
|
label: 'Text Color',
|
|
140
|
-
type: '
|
|
169
|
+
type: 'color-picker-v2',
|
|
141
170
|
default: {
|
|
142
171
|
normal: 'text-2'
|
|
143
172
|
},
|
|
@@ -49,8 +49,18 @@ const uiV2 = [
|
|
|
49
49
|
{
|
|
50
50
|
id: 'hasLineClamp',
|
|
51
51
|
label: {
|
|
52
|
-
en: 'Max
|
|
52
|
+
en: 'Max lines'
|
|
53
53
|
},
|
|
54
|
+
setting: {
|
|
55
|
+
id: 'hasLineClamp'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: 'lineClamp',
|
|
60
|
+
label: {
|
|
61
|
+
en: 'Number of lines'
|
|
62
|
+
},
|
|
63
|
+
conditionDisplay: 'hasLineClamp === true',
|
|
54
64
|
setting: {
|
|
55
65
|
id: 'lineClamp'
|
|
56
66
|
}
|
|
@@ -75,16 +85,51 @@ const uiV2 = [
|
|
|
75
85
|
},
|
|
76
86
|
{
|
|
77
87
|
label: {
|
|
78
|
-
en: '
|
|
88
|
+
en: 'SEO'
|
|
79
89
|
},
|
|
80
90
|
controls: [
|
|
81
91
|
{
|
|
92
|
+
type: 'control',
|
|
93
|
+
label: {
|
|
94
|
+
en: 'HTML tag'
|
|
95
|
+
},
|
|
96
|
+
setting: {
|
|
97
|
+
id: 'htmlTag'
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
controls: [
|
|
104
|
+
{
|
|
105
|
+
label: {
|
|
106
|
+
en: 'Link'
|
|
107
|
+
},
|
|
108
|
+
setting: {
|
|
109
|
+
id: 'enableLink'
|
|
110
|
+
},
|
|
111
|
+
options: {
|
|
112
|
+
labelVariant: 'primary',
|
|
113
|
+
toggleStyle: 'switch'
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
conditionDisplay: 'enableLink === true',
|
|
82
118
|
label: {
|
|
83
119
|
en: 'After click'
|
|
84
120
|
},
|
|
85
121
|
setting: {
|
|
86
122
|
id: 'linkArticle'
|
|
87
123
|
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
conditionDisplay: 'enableLink === true',
|
|
127
|
+
label: {
|
|
128
|
+
en: 'Open new tab'
|
|
129
|
+
},
|
|
130
|
+
setting: {
|
|
131
|
+
id: 'openNewTab'
|
|
132
|
+
}
|
|
88
133
|
}
|
|
89
134
|
]
|
|
90
135
|
}
|
package/dist/esm/builder.js
CHANGED
|
@@ -119,6 +119,7 @@ import GloColorSwatchvariantImage from './third-party/components/GloColorSwatchv
|
|
|
119
119
|
import BfSizeChartSizeGuide from './third-party/components/BfSizeChartSizeGuide.js';
|
|
120
120
|
import AlsoBoughtCbb from './third-party/components/AlsoBoughtCbb.js';
|
|
121
121
|
import HextomFreeShippingBar from './third-party/components/HextomFreeShippingBar.js';
|
|
122
|
+
import EcoboostifyShoppableReelUgc from './third-party/components/EcoboostifyShoppableReelUgc.js';
|
|
122
123
|
import CartLineVariant from './cart/components/CartLineVariant.js';
|
|
123
124
|
import Cart from './cart/components/Cart.js';
|
|
124
125
|
import CartList from './cart/components/CartList.js';
|
|
@@ -155,7 +156,7 @@ import Icon from './icon/components/Icon.js';
|
|
|
155
156
|
import Image from './image/components/Image.js';
|
|
156
157
|
import ImageComparison from './image-comparison/components/ImageComparison.js';
|
|
157
158
|
import Input from './input/Input.js';
|
|
158
|
-
import Line from './line/Line.js';
|
|
159
|
+
import Line from './line/components/Line.js';
|
|
159
160
|
import Link from './link/components/Link.js';
|
|
160
161
|
import './modal/components/confirm.js';
|
|
161
162
|
import Modal from './modal/components/Modal.js';
|
|
@@ -238,6 +239,7 @@ import TextField from './form/components/textfield/TextField.js';
|
|
|
238
239
|
import FormTextArea from './form/components/textarea/TextArea.js';
|
|
239
240
|
import FormDropdown from './form/components/form-dropdown/FormDropdown.js';
|
|
240
241
|
import FormCheckbox from './form/components/form-checkbox/FormCheckbox.js';
|
|
242
|
+
import TextInput from './form/components/textinput/TextInput.js';
|
|
241
243
|
import Sticky from './sticky/components/Sticky.js';
|
|
242
244
|
import Marquee from './marquee/components/Marquee.js';
|
|
243
245
|
import MarqueeItem from './marquee/components/MarqueeItem.js';
|
|
@@ -448,6 +450,7 @@ var builder = {
|
|
|
448
450
|
FormEmail,
|
|
449
451
|
SubmitButton,
|
|
450
452
|
TextField,
|
|
453
|
+
TextInput,
|
|
451
454
|
FormTextarea: FormTextArea,
|
|
452
455
|
FormDropdown,
|
|
453
456
|
FormCheckbox,
|
|
@@ -500,7 +503,8 @@ var builder = {
|
|
|
500
503
|
GloColorSwatchvariantImage,
|
|
501
504
|
BfSizeChartSizeGuide,
|
|
502
505
|
AlsoBoughtCbb,
|
|
503
|
-
HextomFreeShippingBar
|
|
506
|
+
HextomFreeShippingBar,
|
|
507
|
+
EcoboostifyShoppableReelUgc
|
|
504
508
|
};
|
|
505
509
|
|
|
506
510
|
export { builder as default };
|
|
@@ -23,7 +23,7 @@ const Button = (props)=>{
|
|
|
23
23
|
});
|
|
24
24
|
const ButtonWrapper = getButtonWrapper(HTMLTag, isScrollToElement);
|
|
25
25
|
const buttonStyles = createStyle({
|
|
26
|
-
...getButtonStyles(styles
|
|
26
|
+
...getButtonStyles(styles)
|
|
27
27
|
});
|
|
28
28
|
const buttonIconStyles = createStyle({
|
|
29
29
|
...getButtonIconStyles(styles, setting)
|
|
@@ -22,7 +22,7 @@ const Button = (props)=>{
|
|
|
22
22
|
});
|
|
23
23
|
const ButtonWrapper = getButtonWrapper(HTMLTag, isScrollToElement);
|
|
24
24
|
const buttonStyles = createStyle({
|
|
25
|
-
...getButtonStyles(styles
|
|
25
|
+
...getButtonStyles(styles)
|
|
26
26
|
});
|
|
27
27
|
const buttonIconStyles = createStyle({
|
|
28
28
|
...getButtonIconStyles(styles, setting)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getGlobalColorStateClass } from '@gem-sdk/core';
|
|
1
|
+
import { getGlobalColorStateClass, composeTypographyClassName } from '@gem-sdk/core';
|
|
2
2
|
|
|
3
3
|
const getButtonClasses = ({ uid, styles, className, shouldRenderLink })=>{
|
|
4
4
|
return {
|
|
@@ -15,7 +15,8 @@ const getButtonClasses = ({ uid, styles, className, shouldRenderLink })=>{
|
|
|
15
15
|
'hover:gp-scale-[1.1]': styles?.animation?.hover === 'grow',
|
|
16
16
|
'hover:gp-animate-bounce': styles?.animation?.hover === 'bounce',
|
|
17
17
|
'gp-button-base gp-group gp-relative gp-inline-flex gp-max-w-full gp-items-center gp-justify-center gp-no-underline gp-transition-colors gp-duration-300 disabled:gp-btn-disabled disabled:gp-opacity-30': true,
|
|
18
|
-
[getGlobalColorStateClass('text', styles?.textColor)]: true
|
|
18
|
+
[getGlobalColorStateClass('text', styles?.textColor)]: true,
|
|
19
|
+
[composeTypographyClassName(styles?.typo, styles?.typography)]: true
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
22
|
const getButtonWrapperClasses = (wrapClassName, className, advancedCssClass)=>{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeStyleResponsive, getStyleShadowState, composeRadius, makeGlobalSize, makeStyleResponsiveState,
|
|
1
|
+
import { makeStyleResponsive, removeUndefinedValuesFromObject, getStyleShadowState, composeRadius, makeGlobalSize, makeStyleResponsiveState, getStyleShadow, composeTypographyStyle, getStyleBackgroundImageByDevice, getGlobalColorStateResponsiveStyle, composeBorderCss, composeCornerCss, getSingleColorVariable } from '@gem-sdk/core';
|
|
2
2
|
|
|
3
3
|
const MEDIA_QUERIES = {
|
|
4
4
|
TABLET: '@media only screen and (max-width: 1024px) and (min-width: 768px)',
|
|
@@ -8,19 +8,21 @@ const getButtonWrapperStyles = (style, styles)=>({
|
|
|
8
8
|
...style,
|
|
9
9
|
...makeStyleResponsive('ta', styles?.align)
|
|
10
10
|
});
|
|
11
|
-
const getButtonStyles = (styles
|
|
11
|
+
const getButtonStyles = (styles)=>({
|
|
12
12
|
...getSizeStyles(styles),
|
|
13
13
|
...getRadiusStyles(styles),
|
|
14
14
|
...getShadowStyles(styles),
|
|
15
15
|
...getBackgroundStyles(styles),
|
|
16
|
-
...getTypoStyles(styles
|
|
16
|
+
...getTypoStyles(styles)
|
|
17
17
|
});
|
|
18
|
-
const getButtonIconStyles = (styles, settings)=>
|
|
18
|
+
const getButtonIconStyles = (styles, settings)=>{
|
|
19
|
+
return removeUndefinedValuesFromObject({
|
|
19
20
|
...getIconSpacingStyle(styles, settings),
|
|
20
21
|
'--height-desktop': `${styles?.size?.desktop}`,
|
|
21
22
|
'--height-tablet': `${styles?.size?.desktop || styles?.size?.tablet}`,
|
|
22
23
|
'--height-mobile': `${styles?.size?.mobile || styles?.size?.tablet || styles?.size?.desktop}`
|
|
23
24
|
});
|
|
25
|
+
};
|
|
24
26
|
const isEnableShadowStateForDevice = (deviceStyles)=>({
|
|
25
27
|
normal: deviceStyles?.normal?.type !== 'none',
|
|
26
28
|
hover: deviceStyles?.hover?.type !== 'none'
|
|
@@ -48,19 +50,15 @@ const getSizeStyles = (styles)=>{
|
|
|
48
50
|
...composeGlobalSize.padding
|
|
49
51
|
};
|
|
50
52
|
};
|
|
51
|
-
const getTypoStyles = (styles
|
|
52
|
-
const appendTypoStyle = {
|
|
53
|
-
...makeStyleResponsiveState('c', styles?.textColorHover),
|
|
54
|
-
...composeTypographyStyle(styles?.typo, styles?.typography)
|
|
55
|
-
};
|
|
53
|
+
const getTypoStyles = (styles)=>{
|
|
56
54
|
return {
|
|
57
|
-
|
|
58
|
-
...getGlobalColorStateStyle('c', styles?.textColor),
|
|
55
|
+
...makeStyleResponsiveState('c', styles?.textColorHover),
|
|
59
56
|
...getStyleShadow({
|
|
60
57
|
styleAppliedFor: 'text-shadow',
|
|
61
58
|
value: styles?.typo?.custom?.textShadow,
|
|
62
59
|
isEnableShadow: styles?.typo?.custom?.textShadow?.type !== 'none'
|
|
63
|
-
})
|
|
60
|
+
}),
|
|
61
|
+
...composeTypographyStyle(styles?.typo, styles?.typography)
|
|
64
62
|
};
|
|
65
63
|
};
|
|
66
64
|
const getBackgroundStyles = (styles)=>{
|
|
@@ -505,16 +505,18 @@ const ButtonSettings = [
|
|
|
505
505
|
right: '24px'
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
+
},
|
|
509
|
+
mobile: {
|
|
510
|
+
default: {
|
|
511
|
+
width: '100%'
|
|
512
|
+
}
|
|
508
513
|
}
|
|
509
514
|
},
|
|
510
515
|
settingConfig: {
|
|
511
516
|
width: {
|
|
512
517
|
displayOptions: [
|
|
513
518
|
'full',
|
|
514
|
-
'auto'
|
|
515
|
-
'small',
|
|
516
|
-
'large',
|
|
517
|
-
'medium'
|
|
519
|
+
'auto'
|
|
518
520
|
],
|
|
519
521
|
sizeConfig: {
|
|
520
522
|
small: '100px',
|
|
@@ -524,10 +526,7 @@ const ButtonSettings = [
|
|
|
524
526
|
},
|
|
525
527
|
height: {
|
|
526
528
|
displayOptions: [
|
|
527
|
-
'auto'
|
|
528
|
-
'small',
|
|
529
|
-
'large',
|
|
530
|
-
'medium'
|
|
529
|
+
'auto'
|
|
531
530
|
],
|
|
532
531
|
sizeConfig: {
|
|
533
532
|
small: '28px',
|