@gem-sdk/components 2.0.0-dev.294 → 2.0.0-dev.304
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/banner/setting/presets/heroBanner1Col.js +14 -0
- package/dist/cjs/banner/setting/presets/heroBannerContentLeft.js +13 -0
- package/dist/cjs/banner/setting/presets/heroBannerContentRight.js +12 -0
- package/dist/cjs/banner/setting/presets/heroBannerParallax.js +14 -0
- package/dist/cjs/banner/setting/setting.js +6 -18
- package/dist/cjs/banner/setting/uiV1.js +1 -2
- package/dist/cjs/banner/setting/uiV2.js +4 -5
- 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/form-dropdown/configs/uiV2.js +12 -0
- 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/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/ProductTag.js +9 -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-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/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/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/banner/setting/presets/heroBanner1Col.js +14 -0
- package/dist/esm/banner/setting/presets/heroBannerContentLeft.js +13 -0
- package/dist/esm/banner/setting/presets/heroBannerContentRight.js +12 -0
- package/dist/esm/banner/setting/presets/heroBannerParallax.js +14 -0
- package/dist/esm/banner/setting/setting.js +6 -18
- package/dist/esm/banner/setting/uiV1.js +1 -2
- package/dist/esm/banner/setting/uiV2.js +4 -5
- 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/form-dropdown/configs/uiV2.js +12 -0
- 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/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/ProductTag.js +10 -2
- 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-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/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/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
|
@@ -15,7 +15,7 @@ const getDataState = (props, rawChildren)=>{
|
|
|
15
15
|
const expanded = expandedMode === 'multiple';
|
|
16
16
|
const parseActiveKeys = (key)=>{
|
|
17
17
|
if (!key) return [];
|
|
18
|
-
return key.toLowerCase().split(',').map((item)=>parseInt(item.trim()) - 1).map((item)=>item.toString());
|
|
18
|
+
return key.toString().toLowerCase().split(',').map((item)=>parseInt(item.trim()) - 1).map((item)=>item.toString());
|
|
19
19
|
};
|
|
20
20
|
const activeIndex = expandItem ? parseActiveKeys(activeKey) : [];
|
|
21
21
|
const accordions = expanded ? [
|
|
@@ -36,7 +36,7 @@ const getDataState = (props, rawChildren)=>{
|
|
|
36
36
|
expandedMode,
|
|
37
37
|
configIconSize,
|
|
38
38
|
parentUid: builderProps?.uid,
|
|
39
|
-
childListNumber: expandItem ? activeKey?.toLowerCase() === 'all' ? rawChildren?.map((_, index)=>index.toString()) : accordions : [],
|
|
39
|
+
childListNumber: expandItem ? activeKey?.toString().toLowerCase() === 'all' ? rawChildren?.map((_, index)=>index.toString()) : accordions : [],
|
|
40
40
|
chidlrenUid: rawChildren?.map((item)=>item.uid)
|
|
41
41
|
});
|
|
42
42
|
const getStyles = ()=>({
|
|
@@ -12,7 +12,7 @@ const ArticleAuthor = ({ setting, builderProps, styles })=>{
|
|
|
12
12
|
const { prefix } = setting;
|
|
13
13
|
const article = core.useArticleStore((s)=>s.article);
|
|
14
14
|
const author = React.useMemo(()=>{
|
|
15
|
-
return `${prefix} ${article?.author || 'Unknown'}`;
|
|
15
|
+
return `${prefix ?? ''} ${article?.author || 'Unknown'}`;
|
|
16
16
|
}, [
|
|
17
17
|
article?.author,
|
|
18
18
|
prefix
|
|
@@ -12,11 +12,13 @@ var useArticleLink = require('../hooks/useArticleLink.js');
|
|
|
12
12
|
const ArticleTitle = ({ setting, builderProps, styles })=>{
|
|
13
13
|
const article = core.useArticleStore((s)=>s.article);
|
|
14
14
|
const { shopifyArticleLink } = useArticleLink.useArticleLink();
|
|
15
|
+
const target = setting?.openNewTab ? '_blank' : '_self';
|
|
15
16
|
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
16
17
|
id: `shopify-text-element-${builderProps?.uid}`,
|
|
17
18
|
"data-article-id": article?.baseID?.replace('gid://shopify/OnlineStoreArticle/', ''),
|
|
18
|
-
children: !article ? null : setting?.linkArticle ? /*#__PURE__*/ jsxRuntime.jsx(Link, {
|
|
19
|
+
children: !article ? null : setting?.enableLink && setting?.linkArticle ? /*#__PURE__*/ jsxRuntime.jsx(Link, {
|
|
19
20
|
href: shopifyArticleLink,
|
|
21
|
+
target: target,
|
|
20
22
|
title: article?.title,
|
|
21
23
|
children: /*#__PURE__*/ jsxRuntime.jsx(Text.default, {
|
|
22
24
|
builderProps: builderProps,
|
|
@@ -7,9 +7,12 @@ var core = require('@gem-sdk/core');
|
|
|
7
7
|
var Text_liquid = require('../../text/components/Text.liquid.js');
|
|
8
8
|
|
|
9
9
|
const ArticleTitle = ({ setting, styles, advanced, builderProps })=>{
|
|
10
|
+
const target = setting?.openNewTab ? '_blank' : '_self';
|
|
10
11
|
return core.template`
|
|
11
|
-
${setting?.linkArticle ? `
|
|
12
|
-
<a href="{{article.url}}"
|
|
12
|
+
${setting?.enableLink && setting?.linkArticle ? `
|
|
13
|
+
<a href="{{article.url}}" target="${{
|
|
14
|
+
target
|
|
15
|
+
}}" title="{{article.title}}">
|
|
13
16
|
${Text_liquid.default({
|
|
14
17
|
styles: styles,
|
|
15
18
|
setting: {
|
|
@@ -615,11 +615,6 @@ const config = {
|
|
|
615
615
|
mobile: '12px'
|
|
616
616
|
},
|
|
617
617
|
fontWeight: '400',
|
|
618
|
-
lineHeight: {
|
|
619
|
-
desktop: '180%',
|
|
620
|
-
tablet: '180%',
|
|
621
|
-
mobile: '180%'
|
|
622
|
-
},
|
|
623
618
|
fontFamily: 'Assistant'
|
|
624
619
|
}
|
|
625
620
|
},
|
|
@@ -630,9 +625,6 @@ const config = {
|
|
|
630
625
|
advanced: {
|
|
631
626
|
'spacing-setting': {
|
|
632
627
|
desktop: {
|
|
633
|
-
margin: {
|
|
634
|
-
bottom: 'var(--g-s-s)'
|
|
635
|
-
},
|
|
636
628
|
padding: {
|
|
637
629
|
right: 'var(--g-s-s)',
|
|
638
630
|
top: '0px'
|
|
@@ -678,11 +670,6 @@ const config = {
|
|
|
678
670
|
mobile: '12px'
|
|
679
671
|
},
|
|
680
672
|
fontWeight: '400',
|
|
681
|
-
lineHeight: {
|
|
682
|
-
desktop: '180%',
|
|
683
|
-
tablet: '180%',
|
|
684
|
-
mobile: '180%'
|
|
685
|
-
},
|
|
686
673
|
fontFamily: 'Assistant'
|
|
687
674
|
}
|
|
688
675
|
},
|
|
@@ -693,9 +680,6 @@ const config = {
|
|
|
693
680
|
advanced: {
|
|
694
681
|
'spacing-setting': {
|
|
695
682
|
desktop: {
|
|
696
|
-
margin: {
|
|
697
|
-
bottom: 'var(--g-s-s)'
|
|
698
|
-
},
|
|
699
683
|
padding: {
|
|
700
684
|
right: 'var(--g-s-s)',
|
|
701
685
|
top: '0px'
|
|
@@ -741,26 +725,12 @@ const config = {
|
|
|
741
725
|
mobile: '12px'
|
|
742
726
|
},
|
|
743
727
|
fontWeight: '400',
|
|
744
|
-
lineHeight: {
|
|
745
|
-
desktop: '180%',
|
|
746
|
-
tablet: '180%',
|
|
747
|
-
mobile: '180%'
|
|
748
|
-
},
|
|
749
728
|
fontFamily: 'Assistant'
|
|
750
729
|
}
|
|
751
730
|
},
|
|
752
731
|
color: {
|
|
753
732
|
normal: 'text-2'
|
|
754
733
|
}
|
|
755
|
-
},
|
|
756
|
-
advanced: {
|
|
757
|
-
'spacing-setting': {
|
|
758
|
-
desktop: {
|
|
759
|
-
margin: {
|
|
760
|
-
bottom: 'var(--g-s-s)'
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
734
|
}
|
|
765
735
|
}
|
|
766
736
|
]
|
|
@@ -56,12 +56,16 @@ const ArticleAuthorSettings = [
|
|
|
56
56
|
id: 'typo',
|
|
57
57
|
type: 'typography-v2',
|
|
58
58
|
default: {
|
|
59
|
-
type: 'subheading-3'
|
|
59
|
+
type: 'subheading-3',
|
|
60
|
+
custom: {
|
|
61
|
+
lineHeight: {
|
|
62
|
+
desktop: '120%',
|
|
63
|
+
tablet: '120%',
|
|
64
|
+
mobile: '120%'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
60
67
|
},
|
|
61
|
-
ignoreReRender: true
|
|
62
|
-
hiddenSetting: {
|
|
63
|
-
color: true
|
|
64
|
-
}
|
|
68
|
+
ignoreReRender: true
|
|
65
69
|
},
|
|
66
70
|
{
|
|
67
71
|
id: 'textAlign',
|
|
@@ -49,12 +49,16 @@ const ArticleCategorySettings = [
|
|
|
49
49
|
id: 'typo',
|
|
50
50
|
type: 'typography-v2',
|
|
51
51
|
default: {
|
|
52
|
-
type: 'subheading-3'
|
|
52
|
+
type: 'subheading-3',
|
|
53
|
+
custom: {
|
|
54
|
+
lineHeight: {
|
|
55
|
+
desktop: '120%',
|
|
56
|
+
tablet: '120%',
|
|
57
|
+
mobile: '120%'
|
|
58
|
+
}
|
|
59
|
+
}
|
|
53
60
|
},
|
|
54
|
-
ignoreReRender: true
|
|
55
|
-
hiddenSetting: {
|
|
56
|
-
color: true
|
|
57
|
-
}
|
|
61
|
+
ignoreReRender: true
|
|
58
62
|
},
|
|
59
63
|
{
|
|
60
64
|
id: 'textAlign',
|
|
@@ -82,12 +82,16 @@ const ArticleDateSettings = [
|
|
|
82
82
|
id: 'typo',
|
|
83
83
|
type: 'typography-v2',
|
|
84
84
|
default: {
|
|
85
|
-
type: 'subheading-3'
|
|
85
|
+
type: 'subheading-3',
|
|
86
|
+
custom: {
|
|
87
|
+
lineHeight: {
|
|
88
|
+
desktop: '120%',
|
|
89
|
+
tablet: '120%',
|
|
90
|
+
mobile: '120%'
|
|
91
|
+
}
|
|
92
|
+
}
|
|
86
93
|
},
|
|
87
|
-
ignoreReRender: true
|
|
88
|
-
hiddenSetting: {
|
|
89
|
-
color: true
|
|
90
|
-
}
|
|
94
|
+
ignoreReRender: true
|
|
91
95
|
},
|
|
92
96
|
{
|
|
93
97
|
id: 'textAlign',
|
|
@@ -50,13 +50,19 @@ const ArticleImageSettings = [
|
|
|
50
50
|
}
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
|
+
{
|
|
54
|
+
id: 'enableLink',
|
|
55
|
+
type: 'toggle',
|
|
56
|
+
label: 'Link',
|
|
57
|
+
default: true
|
|
58
|
+
},
|
|
53
59
|
{
|
|
54
60
|
id: 'linkArticle',
|
|
55
61
|
label: 'After click',
|
|
56
62
|
type: 'select',
|
|
57
63
|
options: [
|
|
58
64
|
{
|
|
59
|
-
label: '
|
|
65
|
+
label: 'View article',
|
|
60
66
|
value: true
|
|
61
67
|
},
|
|
62
68
|
{
|
|
@@ -66,6 +72,21 @@ const ArticleImageSettings = [
|
|
|
66
72
|
],
|
|
67
73
|
default: true,
|
|
68
74
|
info: 'Ability to click on article title to go to article detail page.'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 'openNewTab',
|
|
78
|
+
type: 'segment',
|
|
79
|
+
label: 'Open new tab',
|
|
80
|
+
options: [
|
|
81
|
+
{
|
|
82
|
+
label: 'Yes',
|
|
83
|
+
value: true
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: 'No',
|
|
87
|
+
value: false
|
|
88
|
+
}
|
|
89
|
+
]
|
|
69
90
|
}
|
|
70
91
|
]
|
|
71
92
|
},
|
|
@@ -40,6 +40,12 @@ const ArticleTitleSettings = [
|
|
|
40
40
|
],
|
|
41
41
|
default: 'h1'
|
|
42
42
|
},
|
|
43
|
+
{
|
|
44
|
+
id: 'enableLink',
|
|
45
|
+
type: 'toggle',
|
|
46
|
+
label: 'Link',
|
|
47
|
+
default: true
|
|
48
|
+
},
|
|
43
49
|
{
|
|
44
50
|
id: 'linkArticle',
|
|
45
51
|
label: 'After click',
|
|
@@ -56,6 +62,22 @@ const ArticleTitleSettings = [
|
|
|
56
62
|
],
|
|
57
63
|
default: true,
|
|
58
64
|
info: 'Ability to click on article title to go to article detail page.'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: 'openNewTab',
|
|
68
|
+
type: 'segment',
|
|
69
|
+
label: 'Open new tab',
|
|
70
|
+
options: [
|
|
71
|
+
{
|
|
72
|
+
label: 'Yes',
|
|
73
|
+
value: true
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: 'No',
|
|
77
|
+
value: false
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
default: true
|
|
59
81
|
}
|
|
60
82
|
]
|
|
61
83
|
},
|
|
@@ -68,10 +90,7 @@ const ArticleTitleSettings = [
|
|
|
68
90
|
default: {
|
|
69
91
|
type: 'subheading-3'
|
|
70
92
|
},
|
|
71
|
-
ignoreReRender: true
|
|
72
|
-
hiddenSetting: {
|
|
73
|
-
color: true
|
|
74
|
-
}
|
|
93
|
+
ignoreReRender: true
|
|
75
94
|
},
|
|
76
95
|
{
|
|
77
96
|
id: 'textAlign',
|
|
@@ -115,8 +134,18 @@ const ArticleTitleSettings = [
|
|
|
115
134
|
},
|
|
116
135
|
{
|
|
117
136
|
id: 'hasLineClamp',
|
|
118
|
-
type: '
|
|
137
|
+
type: 'segment',
|
|
119
138
|
label: 'Has Line Clamp',
|
|
139
|
+
options: [
|
|
140
|
+
{
|
|
141
|
+
label: 'Yes',
|
|
142
|
+
value: true
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: 'No',
|
|
146
|
+
value: false
|
|
147
|
+
}
|
|
148
|
+
],
|
|
120
149
|
devices: {
|
|
121
150
|
desktop: {
|
|
122
151
|
default: false
|
|
@@ -125,7 +154,7 @@ const ArticleTitleSettings = [
|
|
|
125
154
|
},
|
|
126
155
|
{
|
|
127
156
|
id: 'lineClamp',
|
|
128
|
-
type: 'input:
|
|
157
|
+
type: 'input:stepper',
|
|
129
158
|
min: 1,
|
|
130
159
|
label: 'Line Clamp',
|
|
131
160
|
disableDecimal: true,
|
|
@@ -139,7 +168,7 @@ const ArticleTitleSettings = [
|
|
|
139
168
|
{
|
|
140
169
|
id: 'color',
|
|
141
170
|
label: 'Text Color',
|
|
142
|
-
type: '
|
|
171
|
+
type: 'color-picker-v2',
|
|
143
172
|
default: {
|
|
144
173
|
normal: 'text-2'
|
|
145
174
|
},
|
|
@@ -51,8 +51,18 @@ const uiV2 = [
|
|
|
51
51
|
{
|
|
52
52
|
id: 'hasLineClamp',
|
|
53
53
|
label: {
|
|
54
|
-
en: 'Max
|
|
54
|
+
en: 'Max lines'
|
|
55
55
|
},
|
|
56
|
+
setting: {
|
|
57
|
+
id: 'hasLineClamp'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: 'lineClamp',
|
|
62
|
+
label: {
|
|
63
|
+
en: 'Number of lines'
|
|
64
|
+
},
|
|
65
|
+
conditionDisplay: 'hasLineClamp === true',
|
|
56
66
|
setting: {
|
|
57
67
|
id: 'lineClamp'
|
|
58
68
|
}
|
|
@@ -77,16 +87,51 @@ const uiV2 = [
|
|
|
77
87
|
},
|
|
78
88
|
{
|
|
79
89
|
label: {
|
|
80
|
-
en: '
|
|
90
|
+
en: 'SEO'
|
|
81
91
|
},
|
|
82
92
|
controls: [
|
|
83
93
|
{
|
|
94
|
+
type: 'control',
|
|
95
|
+
label: {
|
|
96
|
+
en: 'HTML tag'
|
|
97
|
+
},
|
|
98
|
+
setting: {
|
|
99
|
+
id: 'htmlTag'
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
controls: [
|
|
106
|
+
{
|
|
107
|
+
label: {
|
|
108
|
+
en: 'Link'
|
|
109
|
+
},
|
|
110
|
+
setting: {
|
|
111
|
+
id: 'enableLink'
|
|
112
|
+
},
|
|
113
|
+
options: {
|
|
114
|
+
labelVariant: 'primary',
|
|
115
|
+
toggleStyle: 'switch'
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
conditionDisplay: 'enableLink === true',
|
|
84
120
|
label: {
|
|
85
121
|
en: 'After click'
|
|
86
122
|
},
|
|
87
123
|
setting: {
|
|
88
124
|
id: 'linkArticle'
|
|
89
125
|
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
conditionDisplay: 'enableLink === true',
|
|
129
|
+
label: {
|
|
130
|
+
en: 'Open new tab'
|
|
131
|
+
},
|
|
132
|
+
setting: {
|
|
133
|
+
id: 'openNewTab'
|
|
134
|
+
}
|
|
90
135
|
}
|
|
91
136
|
]
|
|
92
137
|
}
|
|
@@ -42,6 +42,20 @@ const heroBanner1Col = {
|
|
|
42
42
|
contentWidth: {
|
|
43
43
|
desktop: '1200px'
|
|
44
44
|
},
|
|
45
|
+
sizeSetting: {
|
|
46
|
+
desktop: {
|
|
47
|
+
shape: 'custom',
|
|
48
|
+
widthHeightLinked: false,
|
|
49
|
+
width: '100%',
|
|
50
|
+
height: '600px'
|
|
51
|
+
},
|
|
52
|
+
mobile: {
|
|
53
|
+
shape: 'custom',
|
|
54
|
+
widthHeightLinked: false,
|
|
55
|
+
width: '1200px',
|
|
56
|
+
height: '600px'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
45
59
|
background: {
|
|
46
60
|
desktop: {
|
|
47
61
|
image: {
|
|
@@ -48,6 +48,19 @@ const heroBannerContentLeft = {
|
|
|
48
48
|
contentWidth: {
|
|
49
49
|
desktop: '1200px'
|
|
50
50
|
},
|
|
51
|
+
sizeSetting: {
|
|
52
|
+
desktop: {
|
|
53
|
+
shape: 'original',
|
|
54
|
+
widthHeightLinked: true,
|
|
55
|
+
width: '100%'
|
|
56
|
+
},
|
|
57
|
+
mobile: {
|
|
58
|
+
shape: 'custom',
|
|
59
|
+
widthHeightLinked: false,
|
|
60
|
+
width: '100%',
|
|
61
|
+
height: 'auto'
|
|
62
|
+
}
|
|
63
|
+
},
|
|
51
64
|
background: {
|
|
52
65
|
desktop: {
|
|
53
66
|
image: {
|
|
@@ -57,6 +57,18 @@ const heroBannerContentRight = {
|
|
|
57
57
|
contentWidth: {
|
|
58
58
|
desktop: '1200px'
|
|
59
59
|
},
|
|
60
|
+
sizeSetting: {
|
|
61
|
+
desktop: {
|
|
62
|
+
shape: 'original',
|
|
63
|
+
widthHeightLinked: true,
|
|
64
|
+
width: '100%'
|
|
65
|
+
},
|
|
66
|
+
mobile: {
|
|
67
|
+
shape: 'original',
|
|
68
|
+
widthHeightLinked: true,
|
|
69
|
+
width: '100%'
|
|
70
|
+
}
|
|
71
|
+
},
|
|
60
72
|
background: {
|
|
61
73
|
desktop: {
|
|
62
74
|
image: {
|
|
@@ -42,6 +42,20 @@ const heroBannerParallax = {
|
|
|
42
42
|
contentWidth: {
|
|
43
43
|
desktop: '1200px'
|
|
44
44
|
},
|
|
45
|
+
sizeSetting: {
|
|
46
|
+
desktop: {
|
|
47
|
+
shape: 'custom',
|
|
48
|
+
widthHeightLinked: false,
|
|
49
|
+
width: '100%',
|
|
50
|
+
height: '600px'
|
|
51
|
+
},
|
|
52
|
+
mobile: {
|
|
53
|
+
shape: 'custom',
|
|
54
|
+
widthHeightLinked: false,
|
|
55
|
+
width: '1200px',
|
|
56
|
+
height: '600px'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
45
59
|
background: {
|
|
46
60
|
desktop: {
|
|
47
61
|
image: {
|
|
@@ -402,16 +402,18 @@ const SettingsV1 = [
|
|
|
402
402
|
devices: {
|
|
403
403
|
desktop: {
|
|
404
404
|
default: {
|
|
405
|
-
shape: '
|
|
405
|
+
shape: 'custom',
|
|
406
406
|
widthHeightLinked: false,
|
|
407
|
-
width: '100%'
|
|
407
|
+
width: '100%',
|
|
408
|
+
height: '600px'
|
|
408
409
|
}
|
|
409
410
|
},
|
|
410
411
|
mobile: {
|
|
411
412
|
default: {
|
|
412
413
|
shape: 'custom',
|
|
413
|
-
|
|
414
|
-
width: '
|
|
414
|
+
widthHeightLinked: false,
|
|
415
|
+
width: '1200px',
|
|
416
|
+
height: '600px'
|
|
415
417
|
}
|
|
416
418
|
}
|
|
417
419
|
},
|
|
@@ -783,20 +785,6 @@ const SettingsV1 = [
|
|
|
783
785
|
hover: true
|
|
784
786
|
}
|
|
785
787
|
},
|
|
786
|
-
{
|
|
787
|
-
id: 'borderBg',
|
|
788
|
-
type: 'border',
|
|
789
|
-
label: 'Border',
|
|
790
|
-
default: {
|
|
791
|
-
borderType: 'style-1',
|
|
792
|
-
border: 'solid',
|
|
793
|
-
width: '0px 0px 0px 0px',
|
|
794
|
-
position: 'all',
|
|
795
|
-
borderWidth: '0px',
|
|
796
|
-
color: '#000000',
|
|
797
|
-
isCustom: true
|
|
798
|
-
}
|
|
799
|
-
},
|
|
800
788
|
{
|
|
801
789
|
id: 'cornerBg',
|
|
802
790
|
type: 'radius-preset',
|
|
@@ -102,10 +102,10 @@ const SettingUIV2 = [
|
|
|
102
102
|
type: 'padding-v2',
|
|
103
103
|
compoDefaultValue: {
|
|
104
104
|
default: {
|
|
105
|
-
top: '
|
|
106
|
-
right: '
|
|
107
|
-
bottom: '
|
|
108
|
-
left: '
|
|
105
|
+
top: '80px',
|
|
106
|
+
right: '0px',
|
|
107
|
+
bottom: '80px',
|
|
108
|
+
left: '0px',
|
|
109
109
|
linked: false
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -198,7 +198,6 @@ const SettingUIV2 = [
|
|
|
198
198
|
},
|
|
199
199
|
iconName: 'polaris-star',
|
|
200
200
|
getValueFromSettingID: 'speedParallax',
|
|
201
|
-
isHideClear: true,
|
|
202
201
|
controls: [
|
|
203
202
|
{
|
|
204
203
|
layout: 'vertical',
|