@gem-sdk/components 2.0.0-dev.443 → 2.0.0-dev.445
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/form/components/contact/common/composeStyles.js +0 -2
- package/dist/cjs/form/components/form-email/FormEmail.liquid.js +1 -1
- package/dist/cjs/form/setting/contact/ContactInitConfig.js +271 -150
- package/dist/cjs/form/setting/contact/configs/settings.js +20 -13
- package/dist/cjs/form/setting/contact/configs/uiV2.js +3 -12
- package/dist/cjs/form/setting/form-textarea/configs/uiV2.js +1 -1
- package/dist/cjs/form/setting/text-field/configs/settings.js +2 -2
- package/dist/cjs/icon/setting/configs/uiV2.js +31 -28
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -0
- package/dist/cjs/product/components/ProductDiscountTag/common/getStyle.js +6 -1
- package/dist/cjs/product/setting/product-price/configs/uiV2.js +2 -0
- package/dist/cjs/sticky/setting/preset-config.js +15 -0
- package/dist/cjs/text/components/Text.liquid.js +1 -0
- package/dist/esm/form/components/contact/common/composeStyles.js +1 -3
- package/dist/esm/form/components/form-email/FormEmail.liquid.js +1 -1
- package/dist/esm/form/setting/contact/ContactInitConfig.js +271 -150
- package/dist/esm/form/setting/contact/configs/settings.js +20 -13
- package/dist/esm/form/setting/contact/configs/uiV2.js +3 -12
- package/dist/esm/form/setting/form-textarea/configs/uiV2.js +1 -1
- package/dist/esm/form/setting/text-field/configs/settings.js +2 -2
- package/dist/esm/icon/setting/configs/uiV2.js +31 -28
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -0
- package/dist/esm/product/components/ProductDiscountTag/common/getStyle.js +6 -1
- package/dist/esm/product/setting/product-price/configs/uiV2.js +2 -0
- package/dist/esm/sticky/setting/preset-config.js +15 -0
- package/dist/esm/text/components/Text.liquid.js +1 -0
- package/package.json +1 -1
|
@@ -73,37 +73,40 @@ const SettingUIV2 = [
|
|
|
73
73
|
state: 'normal'
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
]
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: {
|
|
80
|
+
en: 'Shape'
|
|
81
|
+
},
|
|
82
|
+
controls: [
|
|
83
|
+
{
|
|
84
|
+
label: {
|
|
85
|
+
en: 'Border'
|
|
87
86
|
},
|
|
88
|
-
{
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
87
|
+
setting: {
|
|
88
|
+
id: 'iconBorder',
|
|
89
|
+
state: 'normal'
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
label: {
|
|
94
|
+
en: 'Corner'
|
|
96
95
|
},
|
|
97
|
-
{
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
setting: {
|
|
102
|
-
id: 'iconShadow'
|
|
103
|
-
}
|
|
96
|
+
setting: {
|
|
97
|
+
id: 'iconRounded',
|
|
98
|
+
state: 'normal'
|
|
104
99
|
}
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: {
|
|
103
|
+
en: 'Shadow'
|
|
104
|
+
},
|
|
105
|
+
setting: {
|
|
106
|
+
id: 'iconShadow'
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
]
|
|
107
110
|
},
|
|
108
111
|
{
|
|
109
112
|
label: {
|
|
@@ -7,6 +7,11 @@ const getRootClass = (styles)=>{
|
|
|
7
7
|
return filterTruthyStyles(composeStyles);
|
|
8
8
|
};
|
|
9
9
|
const getWrapperTextStyle = (styles)=>{
|
|
10
|
+
const globalRadiusTypeList = [
|
|
11
|
+
'small',
|
|
12
|
+
'medium',
|
|
13
|
+
'large'
|
|
14
|
+
];
|
|
10
15
|
const { backgroundColor, roundedTag, borderTag, textColor } = styles ?? {};
|
|
11
16
|
const composeGlobalSize = makeGlobalSize(styles?.size);
|
|
12
17
|
const borderColorClass = getGlobalColorClass('border', borderTag?.color);
|
|
@@ -22,7 +27,7 @@ const getWrapperTextStyle = (styles)=>{
|
|
|
22
27
|
c: textColorClass === '' ? textColor : undefined,
|
|
23
28
|
bg: backgroundColorClass === '' ? backgroundColor : undefined
|
|
24
29
|
}),
|
|
25
|
-
...roundedTag?.radiusType
|
|
30
|
+
...globalRadiusTypeList.includes(roundedTag?.radiusType || '') && getRadiusCSSFromGlobal('normal', roundedTag?.radiusType),
|
|
26
31
|
...getCustomRadius('normal', roundedTag)
|
|
27
32
|
};
|
|
28
33
|
return filterTruthyStyles(composeStyles);
|
|
@@ -979,6 +979,7 @@ const StickyPresetScrollToTop = {
|
|
|
979
979
|
tag: 'Button',
|
|
980
980
|
label: 'Button',
|
|
981
981
|
settings: {
|
|
982
|
+
enableBtnLink: true,
|
|
982
983
|
btnLink: {
|
|
983
984
|
link: '#scroll-to-top',
|
|
984
985
|
selectedTab: 'scrollToList',
|
|
@@ -996,6 +997,7 @@ const StickyPresetScrollToTop = {
|
|
|
996
997
|
translate: 'label'
|
|
997
998
|
},
|
|
998
999
|
styles: {
|
|
1000
|
+
enableTextStyle: false,
|
|
999
1001
|
align: {
|
|
1000
1002
|
desktop: 'right'
|
|
1001
1003
|
},
|
|
@@ -1041,6 +1043,19 @@ const StickyPresetScrollToTop = {
|
|
|
1041
1043
|
type: 'custom'
|
|
1042
1044
|
},
|
|
1043
1045
|
width: 'Auto'
|
|
1046
|
+
},
|
|
1047
|
+
mobile: {
|
|
1048
|
+
gap: '',
|
|
1049
|
+
height: 'Auto',
|
|
1050
|
+
padding: {
|
|
1051
|
+
bottom: '12px',
|
|
1052
|
+
left: '12px',
|
|
1053
|
+
linked: true,
|
|
1054
|
+
right: '12px',
|
|
1055
|
+
top: '12px',
|
|
1056
|
+
type: 'custom'
|
|
1057
|
+
},
|
|
1058
|
+
width: 'Auto'
|
|
1044
1059
|
}
|
|
1045
1060
|
},
|
|
1046
1061
|
hasBoxShadowBtn: {
|
|
@@ -60,6 +60,7 @@ const Text = ({ styles, builderAttrs, style, setting, advanced, builderProps, cl
|
|
|
60
60
|
}}
|
|
61
61
|
class="${wrapperClasses}"
|
|
62
62
|
style="${wrapperStyle}"
|
|
63
|
+
data-test-force-publish="${new Date().getTime()}"
|
|
63
64
|
>
|
|
64
65
|
<div class="${containerClasses}" style="${containerStyle}">
|
|
65
66
|
<${Element}
|