@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
|
@@ -75,37 +75,40 @@ const SettingUIV2 = [
|
|
|
75
75
|
state: 'normal'
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
]
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: {
|
|
82
|
+
en: 'Shape'
|
|
83
|
+
},
|
|
84
|
+
controls: [
|
|
85
|
+
{
|
|
86
|
+
label: {
|
|
87
|
+
en: 'Border'
|
|
89
88
|
},
|
|
90
|
-
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
89
|
+
setting: {
|
|
90
|
+
id: 'iconBorder',
|
|
91
|
+
state: 'normal'
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: {
|
|
96
|
+
en: 'Corner'
|
|
98
97
|
},
|
|
99
|
-
{
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
setting: {
|
|
104
|
-
id: 'iconShadow'
|
|
105
|
-
}
|
|
98
|
+
setting: {
|
|
99
|
+
id: 'iconRounded',
|
|
100
|
+
state: 'normal'
|
|
106
101
|
}
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: {
|
|
105
|
+
en: 'Shadow'
|
|
106
|
+
},
|
|
107
|
+
setting: {
|
|
108
|
+
id: 'iconShadow'
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
]
|
|
109
112
|
},
|
|
110
113
|
{
|
|
111
114
|
label: {
|
|
@@ -9,6 +9,11 @@ const getRootClass = (styles)=>{
|
|
|
9
9
|
return core.filterTruthyStyles(composeStyles);
|
|
10
10
|
};
|
|
11
11
|
const getWrapperTextStyle = (styles)=>{
|
|
12
|
+
const globalRadiusTypeList = [
|
|
13
|
+
'small',
|
|
14
|
+
'medium',
|
|
15
|
+
'large'
|
|
16
|
+
];
|
|
12
17
|
const { backgroundColor, roundedTag, borderTag, textColor } = styles ?? {};
|
|
13
18
|
const composeGlobalSize = core.makeGlobalSize(styles?.size);
|
|
14
19
|
const borderColorClass = core.getGlobalColorClass('border', borderTag?.color);
|
|
@@ -24,7 +29,7 @@ const getWrapperTextStyle = (styles)=>{
|
|
|
24
29
|
c: textColorClass === '' ? textColor : undefined,
|
|
25
30
|
bg: backgroundColorClass === '' ? backgroundColor : undefined
|
|
26
31
|
}),
|
|
27
|
-
...roundedTag?.radiusType
|
|
32
|
+
...globalRadiusTypeList.includes(roundedTag?.radiusType || '') && core.getRadiusCSSFromGlobal('normal', roundedTag?.radiusType),
|
|
28
33
|
...core.getCustomRadius('normal', roundedTag)
|
|
29
34
|
};
|
|
30
35
|
return core.filterTruthyStyles(composeStyles);
|
|
@@ -981,6 +981,7 @@ const StickyPresetScrollToTop = {
|
|
|
981
981
|
tag: 'Button',
|
|
982
982
|
label: 'Button',
|
|
983
983
|
settings: {
|
|
984
|
+
enableBtnLink: true,
|
|
984
985
|
btnLink: {
|
|
985
986
|
link: '#scroll-to-top',
|
|
986
987
|
selectedTab: 'scrollToList',
|
|
@@ -998,6 +999,7 @@ const StickyPresetScrollToTop = {
|
|
|
998
999
|
translate: 'label'
|
|
999
1000
|
},
|
|
1000
1001
|
styles: {
|
|
1002
|
+
enableTextStyle: false,
|
|
1001
1003
|
align: {
|
|
1002
1004
|
desktop: 'right'
|
|
1003
1005
|
},
|
|
@@ -1043,6 +1045,19 @@ const StickyPresetScrollToTop = {
|
|
|
1043
1045
|
type: 'custom'
|
|
1044
1046
|
},
|
|
1045
1047
|
width: 'Auto'
|
|
1048
|
+
},
|
|
1049
|
+
mobile: {
|
|
1050
|
+
gap: '',
|
|
1051
|
+
height: 'Auto',
|
|
1052
|
+
padding: {
|
|
1053
|
+
bottom: '12px',
|
|
1054
|
+
left: '12px',
|
|
1055
|
+
linked: true,
|
|
1056
|
+
right: '12px',
|
|
1057
|
+
top: '12px',
|
|
1058
|
+
type: 'custom'
|
|
1059
|
+
},
|
|
1060
|
+
width: 'Auto'
|
|
1046
1061
|
}
|
|
1047
1062
|
},
|
|
1048
1063
|
hasBoxShadowBtn: {
|
|
@@ -64,6 +64,7 @@ const Text = ({ styles, builderAttrs, style, setting, advanced, builderProps, cl
|
|
|
64
64
|
}}
|
|
65
65
|
class="${wrapperClasses}"
|
|
66
66
|
style="${wrapperStyle}"
|
|
67
|
+
data-test-force-publish="${new Date().getTime()}"
|
|
67
68
|
>
|
|
68
69
|
<div class="${containerClasses}" style="${containerStyle}">
|
|
69
70
|
<${Element}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { filterTruthy } from '../../../helpers/common.js';
|
|
2
|
-
import { makeGlobalSize, composeBorderResponsive, composeRadiusResponsive,
|
|
2
|
+
import { makeGlobalSize, composeBorderResponsive, composeRadiusResponsive, getStyleBackgroundByDevice, getGradientBgrStyleByDevice } from '@gem-sdk/core';
|
|
3
3
|
|
|
4
4
|
const composeStyles = (styles)=>filterTruthy(styles);
|
|
5
5
|
const composeContainerStyles = (setting, styles)=>{
|
|
@@ -7,14 +7,12 @@ const composeContainerStyles = (setting, styles)=>{
|
|
|
7
7
|
const { globalSize } = styles ?? {};
|
|
8
8
|
const composeGlobalSize = makeGlobalSize(globalSize);
|
|
9
9
|
return composeStyles({
|
|
10
|
-
...styles,
|
|
11
10
|
...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
|
|
12
11
|
'--w': '100%'
|
|
13
12
|
},
|
|
14
13
|
...composeGlobalSize.padding,
|
|
15
14
|
...composeBorderResponsive(styles?.border),
|
|
16
15
|
...composeRadiusResponsive(styles?.rounded),
|
|
17
|
-
...getResponsiveStyleShadowWithoutState(styles?.boxShadow, 'box-shadow', styles?.boxShadow),
|
|
18
16
|
...getStyleBackgroundByDevice(background),
|
|
19
17
|
...getGradientBgrStyleByDevice(background)
|
|
20
18
|
});
|
|
@@ -42,7 +42,7 @@ const FormEmail = ({ builderProps, builderAttrs, setting, advanced, pageContext,
|
|
|
42
42
|
name="${name}"
|
|
43
43
|
${If(required, 'required')}
|
|
44
44
|
autocomplete="email"
|
|
45
|
-
${If(hideOnClient, `value="${defaultEmail}`)}
|
|
45
|
+
${If(hideOnClient, `value="${defaultEmail}"`)}
|
|
46
46
|
></input>
|
|
47
47
|
</div>
|
|
48
48
|
`;
|