@gem-sdk/components 2.0.0-dev.461 → 2.0.0-dev.462
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/form-dropdown/common/composeClasses.js +1 -1
- package/dist/cjs/form/components/form-dropdown/common/composeStyles.js +1 -34
- package/dist/cjs/form/components/form-dropdown/hooks/index.js +2 -2
- package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +9 -7
- package/dist/cjs/form/components/newsletter/common/composeAttrs.js +6 -1
- package/dist/cjs/form/components/newsletter/common/composeStyles.js +10 -4
- package/dist/cjs/form/setting/form-checkbox/configs/uiV2.js +3 -0
- package/dist/cjs/form/setting/form-textarea/configs/uiV2.js +3 -0
- package/dist/cjs/form/setting/text-field/configs/uiV2.js +3 -0
- package/dist/cjs/product/setting/product-list/configs/presets.js +4 -6
- package/dist/cjs/product/setting/product-title/configs/settings.js +2 -2
- package/dist/esm/form/components/form-dropdown/common/composeClasses.js +1 -1
- package/dist/esm/form/components/form-dropdown/common/composeStyles.js +3 -35
- package/dist/esm/form/components/form-dropdown/hooks/index.js +2 -2
- package/dist/esm/form/components/newsletter/Newsletter.liquid.js +9 -7
- package/dist/esm/form/components/newsletter/common/composeAttrs.js +6 -1
- package/dist/esm/form/components/newsletter/common/composeStyles.js +10 -4
- package/dist/esm/form/setting/form-checkbox/configs/uiV2.js +3 -0
- package/dist/esm/form/setting/form-textarea/configs/uiV2.js +3 -0
- package/dist/esm/form/setting/text-field/configs/uiV2.js +3 -0
- package/dist/esm/product/setting/product-list/configs/presets.js +4 -6
- package/dist/esm/product/setting/product-title/configs/settings.js +2 -2
- package/package.json +2 -2
|
@@ -16,7 +16,7 @@ const composeFormDropdownClasses = (setting)=>{
|
|
|
16
16
|
return composeClasses({
|
|
17
17
|
[appendTypoClass]: !!appendTypoClass,
|
|
18
18
|
[`${core.genSizeClass(setting?.size?.type)}`]: !!setting?.size?.type,
|
|
19
|
-
'gp-form-item !gp-outline-none
|
|
19
|
+
'gp-form-item !gp-outline-none ': true
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -28,7 +28,7 @@ const composeContainerStyles = (advanced, setting)=>{
|
|
|
28
28
|
const composeFormDropdownStyles = (advanced, setting, styles)=>{
|
|
29
29
|
const { border, rounded, hasBoxShadow, boxShadow } = advanced ?? {};
|
|
30
30
|
const { background, size } = setting ?? {};
|
|
31
|
-
const { globalSize,
|
|
31
|
+
const { globalSize, backgroundColorV2Active } = styles ?? {};
|
|
32
32
|
const inputStyle = core.composeAdvanceStyle({
|
|
33
33
|
border,
|
|
34
34
|
rounded,
|
|
@@ -48,18 +48,6 @@ const composeFormDropdownStyles = (advanced, setting, styles)=>{
|
|
|
48
48
|
...!size?.type ? core.composeSize(size?.custom) : {},
|
|
49
49
|
appearance: 'none',
|
|
50
50
|
...core.getStyleBackgroundByDevice(background),
|
|
51
|
-
...generateStylesTarget({
|
|
52
|
-
state: 'focus',
|
|
53
|
-
borderStyle: borderActive?.active,
|
|
54
|
-
background: backgroundColorV2Active?.active,
|
|
55
|
-
radius: roundedActive?.active
|
|
56
|
-
}),
|
|
57
|
-
...core.getStyleShadow({
|
|
58
|
-
value: boxShadowActive?.active,
|
|
59
|
-
state: 'focus',
|
|
60
|
-
styleAppliedFor: 'box-shadow',
|
|
61
|
-
isEnableShadow: true
|
|
62
|
-
}),
|
|
63
51
|
'--bgi': getBgImageUrl(background?.desktop?.color),
|
|
64
52
|
'background-repeat': 'no-repeat',
|
|
65
53
|
'background-position': 'right 10px center, 0 0',
|
|
@@ -70,26 +58,6 @@ const getBgImageUrl = (color)=>{
|
|
|
70
58
|
const iconDropDown = 'url(https://cdn.shopify.com/s/files/1/1827/4239/t/1/assets/ico-select.svg?v=155563818344741998551488860031)';
|
|
71
59
|
return `${iconDropDown} ${color?.includes('linear-gradient') ? ',' + color : ''}`;
|
|
72
60
|
};
|
|
73
|
-
const generateStylesTarget = ({ state, borderStyle, background, radius })=>{
|
|
74
|
-
const { border, width, color } = borderStyle ?? {};
|
|
75
|
-
const getState = {
|
|
76
|
-
hover: 'hvr',
|
|
77
|
-
focus: 'focus'
|
|
78
|
-
};
|
|
79
|
-
const currentState = getState[state];
|
|
80
|
-
return {
|
|
81
|
-
...width && {
|
|
82
|
-
[`--${currentState}-bw`]: `${width}`
|
|
83
|
-
},
|
|
84
|
-
...border && {
|
|
85
|
-
[`--${currentState}-b`]: `${border} ${core.getSingleColorVariable(color)}`
|
|
86
|
-
},
|
|
87
|
-
...background && {
|
|
88
|
-
[`--${currentState}-bgc`]: `${core.getSingleColorVariable(background)}`
|
|
89
|
-
},
|
|
90
|
-
...core.getCustomRadius(state, radius)
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
61
|
const getAppendTypoStyleFirstTime = (setting)=>{
|
|
94
62
|
const appendTypoStyle = core.composeTypographyStyle(setting?.typo, setting?.typography);
|
|
95
63
|
return composeStyles({
|
|
@@ -109,6 +77,5 @@ const getStyleOption = (setting)=>{
|
|
|
109
77
|
|
|
110
78
|
exports.composeContainerStyles = composeContainerStyles;
|
|
111
79
|
exports.composeFormDropdownStyles = composeFormDropdownStyles;
|
|
112
|
-
exports.generateStylesTarget = generateStylesTarget;
|
|
113
80
|
exports.getAppendTypoStyleFirstTime = getAppendTypoStyleFirstTime;
|
|
114
81
|
exports.getStyleOption = getStyleOption;
|
|
@@ -5,7 +5,7 @@ var core = require('@gem-sdk/core');
|
|
|
5
5
|
|
|
6
6
|
const useGetColorContent = (setting)=>{
|
|
7
7
|
const [showPlaceholder, setShowPlaceholder] = React.useState(true);
|
|
8
|
-
const { typography, placeholderColor } = setting ?? {};
|
|
8
|
+
const { typography, placeholderColor, defaultOption } = setting ?? {};
|
|
9
9
|
const appendTypoStyle = core.composeTypographyStyle(setting?.typo, typography);
|
|
10
10
|
const handleOnChange = ()=>{
|
|
11
11
|
if (showPlaceholder) {
|
|
@@ -16,7 +16,7 @@ const useGetColorContent = (setting)=>{
|
|
|
16
16
|
handleOnChange,
|
|
17
17
|
getTextColor: {
|
|
18
18
|
...appendTypoStyle,
|
|
19
|
-
...showPlaceholder && {
|
|
19
|
+
...showPlaceholder && Number(defaultOption) === 0 && {
|
|
20
20
|
'--c': placeholderColor
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -31,8 +31,10 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
|
|
|
31
31
|
const composedContainerStyles = system.createStyle(composeStyles.composeContainerStylesForm(style));
|
|
32
32
|
const anchorAttrs = composeAttrs.composeAnchorAttrs(builderProps, setting);
|
|
33
33
|
const composedFormClasses = system.createClass(composeClasses.composeFormClasses());
|
|
34
|
-
const
|
|
35
|
-
const
|
|
34
|
+
const composedFormStylesError = system.createStyle(composeStyles.composeFormStyles('error'));
|
|
35
|
+
const composedFormStylesSuccess = system.createStyle(composeStyles.composeFormStyles('success'));
|
|
36
|
+
const formAttrsError = composeAttrs.composeFormAttrs(builderProps, 'error');
|
|
37
|
+
const formAttrsSuccess = composeAttrs.composeFormAttrs(builderProps, 'success');
|
|
36
38
|
const popoverAttrs = composeAttrs.composePopoverAttrs(builderProps);
|
|
37
39
|
const generatedPopoverStyles = composeStyles.popoverStyles(builderProps);
|
|
38
40
|
const containerStyle = system.createStyle(composeStyles$1.composeContainerStyles(setting, styles));
|
|
@@ -55,10 +57,10 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
|
|
|
55
57
|
{% if form.errors %}
|
|
56
58
|
<div
|
|
57
59
|
${{
|
|
58
|
-
...
|
|
60
|
+
...formAttrsError
|
|
59
61
|
}}
|
|
60
62
|
class="${composedFormClasses}"
|
|
61
|
-
style="${
|
|
63
|
+
style="${composedFormStylesError}"
|
|
62
64
|
>
|
|
63
65
|
${errorMessage}
|
|
64
66
|
</div>
|
|
@@ -67,14 +69,14 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
|
|
|
67
69
|
...popoverAttrs
|
|
68
70
|
}}>
|
|
69
71
|
<style>
|
|
70
|
-
|
|
72
|
+
${generatedPopoverStyles}
|
|
71
73
|
</style>
|
|
72
74
|
<div
|
|
73
75
|
${{
|
|
74
|
-
...
|
|
76
|
+
...formAttrsSuccess
|
|
75
77
|
}}
|
|
76
78
|
class="${composedFormClasses}"
|
|
77
|
-
style="${
|
|
79
|
+
style="${composedFormStylesSuccess}"
|
|
78
80
|
>
|
|
79
81
|
${successMessage}
|
|
80
82
|
</div>
|
|
@@ -19,7 +19,12 @@ const composeAnchorAttrs = (builderProps, setting)=>{
|
|
|
19
19
|
target: urlData?.target
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
-
const composeFormAttrs = (builderProps)=>{
|
|
22
|
+
const composeFormAttrs = (builderProps, type)=>{
|
|
23
|
+
if (type === 'success') {
|
|
24
|
+
return composeAttribute({
|
|
25
|
+
id: `gp-form-success-${builderProps?.uid}`
|
|
26
|
+
});
|
|
27
|
+
}
|
|
23
28
|
return composeAttribute({
|
|
24
29
|
id: `gp-form-error-${builderProps?.uid}`
|
|
25
30
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var common = require('../../../helpers/common.js');
|
|
4
|
-
var core = require('@gem-sdk/core');
|
|
5
4
|
|
|
6
5
|
const composeStyles = (styles)=>common.filterTruthy(styles);
|
|
7
6
|
const composeContainerStylesForm = (style)=>{
|
|
@@ -9,10 +8,17 @@ const composeContainerStylesForm = (style)=>{
|
|
|
9
8
|
...style
|
|
10
9
|
});
|
|
11
10
|
};
|
|
12
|
-
const composeFormStyles = (
|
|
13
|
-
|
|
11
|
+
const composeFormStyles = (type)=>{
|
|
12
|
+
if (type === 'success') {
|
|
13
|
+
return composeStyles({
|
|
14
|
+
'background-color': '#F2FFEC',
|
|
15
|
+
left: '50%',
|
|
16
|
+
transform: 'translateX(-50%)',
|
|
17
|
+
color: '#009D3E'
|
|
18
|
+
});
|
|
19
|
+
}
|
|
14
20
|
return composeStyles({
|
|
15
|
-
|
|
21
|
+
'background-color': '#FFE9E9',
|
|
16
22
|
left: '50%',
|
|
17
23
|
transform: 'translateX(-50%)',
|
|
18
24
|
color: '#EA3335'
|
|
@@ -147,7 +147,7 @@ const ProductListPreset = [
|
|
|
147
147
|
},
|
|
148
148
|
styles: {
|
|
149
149
|
typo: {
|
|
150
|
-
type: 'subheading-
|
|
150
|
+
type: 'subheading-1'
|
|
151
151
|
},
|
|
152
152
|
textAlign: {
|
|
153
153
|
desktop: 'left'
|
|
@@ -156,8 +156,7 @@ const ProductListPreset = [
|
|
|
156
156
|
desktop: true
|
|
157
157
|
},
|
|
158
158
|
lineClamp: {
|
|
159
|
-
desktop: 2
|
|
160
|
-
mobile: 0
|
|
159
|
+
desktop: 2
|
|
161
160
|
},
|
|
162
161
|
color: {
|
|
163
162
|
normal: 'text-1'
|
|
@@ -538,7 +537,7 @@ const ProductListPreset = [
|
|
|
538
537
|
},
|
|
539
538
|
styles: {
|
|
540
539
|
typo: {
|
|
541
|
-
type: 'subheading-
|
|
540
|
+
type: 'subheading-1'
|
|
542
541
|
},
|
|
543
542
|
textAlign: {
|
|
544
543
|
desktop: 'left'
|
|
@@ -547,8 +546,7 @@ const ProductListPreset = [
|
|
|
547
546
|
desktop: true
|
|
548
547
|
},
|
|
549
548
|
lineClamp: {
|
|
550
|
-
desktop: 2
|
|
551
|
-
mobile: 0
|
|
549
|
+
desktop: 2
|
|
552
550
|
},
|
|
553
551
|
color: {
|
|
554
552
|
normal: 'text-1'
|
|
@@ -56,7 +56,7 @@ const ProductTitleSettings = [
|
|
|
56
56
|
id: 'typo',
|
|
57
57
|
type: 'typography-v2',
|
|
58
58
|
default: {
|
|
59
|
-
type: '
|
|
59
|
+
type: 'heading-2',
|
|
60
60
|
attrs: {
|
|
61
61
|
transform: 'none'
|
|
62
62
|
}
|
|
@@ -123,7 +123,7 @@ const ProductTitleSettings = [
|
|
|
123
123
|
disableDecimal: true,
|
|
124
124
|
devices: {
|
|
125
125
|
desktop: {
|
|
126
|
-
default:
|
|
126
|
+
default: 2
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
hide: true
|
|
@@ -14,7 +14,7 @@ const composeFormDropdownClasses = (setting)=>{
|
|
|
14
14
|
return composeClasses({
|
|
15
15
|
[appendTypoClass]: !!appendTypoClass,
|
|
16
16
|
[`${genSizeClass(setting?.size?.type)}`]: !!setting?.size?.type,
|
|
17
|
-
'gp-form-item !gp-outline-none
|
|
17
|
+
'gp-form-item !gp-outline-none ': true
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { filterTruthy } from '../../../helpers/common.js';
|
|
2
|
-
import { composeAdvanceStyle, makeStyleResponsive, makeGlobalSize, composeSize, getStyleBackgroundByDevice,
|
|
2
|
+
import { composeAdvanceStyle, makeStyleResponsive, makeGlobalSize, composeSize, getStyleBackgroundByDevice, composeTypographyStyle } from '@gem-sdk/core';
|
|
3
3
|
|
|
4
4
|
const composeStyles = (styles)=>filterTruthy(styles);
|
|
5
5
|
const composeContainerStyles = (advanced, setting)=>{
|
|
@@ -26,7 +26,7 @@ const composeContainerStyles = (advanced, setting)=>{
|
|
|
26
26
|
const composeFormDropdownStyles = (advanced, setting, styles)=>{
|
|
27
27
|
const { border, rounded, hasBoxShadow, boxShadow } = advanced ?? {};
|
|
28
28
|
const { background, size } = setting ?? {};
|
|
29
|
-
const { globalSize,
|
|
29
|
+
const { globalSize, backgroundColorV2Active } = styles ?? {};
|
|
30
30
|
const inputStyle = composeAdvanceStyle({
|
|
31
31
|
border,
|
|
32
32
|
rounded,
|
|
@@ -46,18 +46,6 @@ const composeFormDropdownStyles = (advanced, setting, styles)=>{
|
|
|
46
46
|
...!size?.type ? composeSize(size?.custom) : {},
|
|
47
47
|
appearance: 'none',
|
|
48
48
|
...getStyleBackgroundByDevice(background),
|
|
49
|
-
...generateStylesTarget({
|
|
50
|
-
state: 'focus',
|
|
51
|
-
borderStyle: borderActive?.active,
|
|
52
|
-
background: backgroundColorV2Active?.active,
|
|
53
|
-
radius: roundedActive?.active
|
|
54
|
-
}),
|
|
55
|
-
...getStyleShadow({
|
|
56
|
-
value: boxShadowActive?.active,
|
|
57
|
-
state: 'focus',
|
|
58
|
-
styleAppliedFor: 'box-shadow',
|
|
59
|
-
isEnableShadow: true
|
|
60
|
-
}),
|
|
61
49
|
'--bgi': getBgImageUrl(background?.desktop?.color),
|
|
62
50
|
'background-repeat': 'no-repeat',
|
|
63
51
|
'background-position': 'right 10px center, 0 0',
|
|
@@ -68,26 +56,6 @@ const getBgImageUrl = (color)=>{
|
|
|
68
56
|
const iconDropDown = 'url(https://cdn.shopify.com/s/files/1/1827/4239/t/1/assets/ico-select.svg?v=155563818344741998551488860031)';
|
|
69
57
|
return `${iconDropDown} ${color?.includes('linear-gradient') ? ',' + color : ''}`;
|
|
70
58
|
};
|
|
71
|
-
const generateStylesTarget = ({ state, borderStyle, background, radius })=>{
|
|
72
|
-
const { border, width, color } = borderStyle ?? {};
|
|
73
|
-
const getState = {
|
|
74
|
-
hover: 'hvr',
|
|
75
|
-
focus: 'focus'
|
|
76
|
-
};
|
|
77
|
-
const currentState = getState[state];
|
|
78
|
-
return {
|
|
79
|
-
...width && {
|
|
80
|
-
[`--${currentState}-bw`]: `${width}`
|
|
81
|
-
},
|
|
82
|
-
...border && {
|
|
83
|
-
[`--${currentState}-b`]: `${border} ${getSingleColorVariable(color)}`
|
|
84
|
-
},
|
|
85
|
-
...background && {
|
|
86
|
-
[`--${currentState}-bgc`]: `${getSingleColorVariable(background)}`
|
|
87
|
-
},
|
|
88
|
-
...getCustomRadius(state, radius)
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
59
|
const getAppendTypoStyleFirstTime = (setting)=>{
|
|
92
60
|
const appendTypoStyle = composeTypographyStyle(setting?.typo, setting?.typography);
|
|
93
61
|
return composeStyles({
|
|
@@ -105,4 +73,4 @@ const getStyleOption = (setting)=>{
|
|
|
105
73
|
});
|
|
106
74
|
};
|
|
107
75
|
|
|
108
|
-
export { composeContainerStyles, composeFormDropdownStyles,
|
|
76
|
+
export { composeContainerStyles, composeFormDropdownStyles, getAppendTypoStyleFirstTime, getStyleOption };
|
|
@@ -3,7 +3,7 @@ import { composeTypographyStyle } from '@gem-sdk/core';
|
|
|
3
3
|
|
|
4
4
|
const useGetColorContent = (setting)=>{
|
|
5
5
|
const [showPlaceholder, setShowPlaceholder] = useState(true);
|
|
6
|
-
const { typography, placeholderColor } = setting ?? {};
|
|
6
|
+
const { typography, placeholderColor, defaultOption } = setting ?? {};
|
|
7
7
|
const appendTypoStyle = composeTypographyStyle(setting?.typo, typography);
|
|
8
8
|
const handleOnChange = ()=>{
|
|
9
9
|
if (showPlaceholder) {
|
|
@@ -14,7 +14,7 @@ const useGetColorContent = (setting)=>{
|
|
|
14
14
|
handleOnChange,
|
|
15
15
|
getTextColor: {
|
|
16
16
|
...appendTypoStyle,
|
|
17
|
-
...showPlaceholder && {
|
|
17
|
+
...showPlaceholder && Number(defaultOption) === 0 && {
|
|
18
18
|
'--c': placeholderColor
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -27,8 +27,10 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
|
|
|
27
27
|
const composedContainerStyles = createStyle(composeContainerStylesForm(style));
|
|
28
28
|
const anchorAttrs = composeAnchorAttrs(builderProps, setting);
|
|
29
29
|
const composedFormClasses = createClass(composeFormClasses());
|
|
30
|
-
const
|
|
31
|
-
const
|
|
30
|
+
const composedFormStylesError = createStyle(composeFormStyles('error'));
|
|
31
|
+
const composedFormStylesSuccess = createStyle(composeFormStyles('success'));
|
|
32
|
+
const formAttrsError = composeFormAttrs(builderProps, 'error');
|
|
33
|
+
const formAttrsSuccess = composeFormAttrs(builderProps, 'success');
|
|
32
34
|
const popoverAttrs = composePopoverAttrs(builderProps);
|
|
33
35
|
const generatedPopoverStyles = popoverStyles(builderProps);
|
|
34
36
|
const containerStyle = createStyle(composeContainerStyles(setting, styles));
|
|
@@ -51,10 +53,10 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
|
|
|
51
53
|
{% if form.errors %}
|
|
52
54
|
<div
|
|
53
55
|
${{
|
|
54
|
-
...
|
|
56
|
+
...formAttrsError
|
|
55
57
|
}}
|
|
56
58
|
class="${composedFormClasses}"
|
|
57
|
-
style="${
|
|
59
|
+
style="${composedFormStylesError}"
|
|
58
60
|
>
|
|
59
61
|
${errorMessage}
|
|
60
62
|
</div>
|
|
@@ -63,14 +65,14 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
|
|
|
63
65
|
...popoverAttrs
|
|
64
66
|
}}>
|
|
65
67
|
<style>
|
|
66
|
-
|
|
68
|
+
${generatedPopoverStyles}
|
|
67
69
|
</style>
|
|
68
70
|
<div
|
|
69
71
|
${{
|
|
70
|
-
...
|
|
72
|
+
...formAttrsSuccess
|
|
71
73
|
}}
|
|
72
74
|
class="${composedFormClasses}"
|
|
73
|
-
style="${
|
|
75
|
+
style="${composedFormStylesSuccess}"
|
|
74
76
|
>
|
|
75
77
|
${successMessage}
|
|
76
78
|
</div>
|
|
@@ -17,7 +17,12 @@ const composeAnchorAttrs = (builderProps, setting)=>{
|
|
|
17
17
|
target: urlData?.target
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
const composeFormAttrs = (builderProps)=>{
|
|
20
|
+
const composeFormAttrs = (builderProps, type)=>{
|
|
21
|
+
if (type === 'success') {
|
|
22
|
+
return composeAttribute({
|
|
23
|
+
id: `gp-form-success-${builderProps?.uid}`
|
|
24
|
+
});
|
|
25
|
+
}
|
|
21
26
|
return composeAttribute({
|
|
22
27
|
id: `gp-form-error-${builderProps?.uid}`
|
|
23
28
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { filterTruthy } from '../../../helpers/common.js';
|
|
2
|
-
import { getStyleBackgroundByDevice } from '@gem-sdk/core';
|
|
3
2
|
|
|
4
3
|
const composeStyles = (styles)=>filterTruthy(styles);
|
|
5
4
|
const composeContainerStylesForm = (style)=>{
|
|
@@ -7,10 +6,17 @@ const composeContainerStylesForm = (style)=>{
|
|
|
7
6
|
...style
|
|
8
7
|
});
|
|
9
8
|
};
|
|
10
|
-
const composeFormStyles = (
|
|
11
|
-
|
|
9
|
+
const composeFormStyles = (type)=>{
|
|
10
|
+
if (type === 'success') {
|
|
11
|
+
return composeStyles({
|
|
12
|
+
'background-color': '#F2FFEC',
|
|
13
|
+
left: '50%',
|
|
14
|
+
transform: 'translateX(-50%)',
|
|
15
|
+
color: '#009D3E'
|
|
16
|
+
});
|
|
17
|
+
}
|
|
12
18
|
return composeStyles({
|
|
13
|
-
|
|
19
|
+
'background-color': '#FFE9E9',
|
|
14
20
|
left: '50%',
|
|
15
21
|
transform: 'translateX(-50%)',
|
|
16
22
|
color: '#EA3335'
|
|
@@ -145,7 +145,7 @@ const ProductListPreset = [
|
|
|
145
145
|
},
|
|
146
146
|
styles: {
|
|
147
147
|
typo: {
|
|
148
|
-
type: 'subheading-
|
|
148
|
+
type: 'subheading-1'
|
|
149
149
|
},
|
|
150
150
|
textAlign: {
|
|
151
151
|
desktop: 'left'
|
|
@@ -154,8 +154,7 @@ const ProductListPreset = [
|
|
|
154
154
|
desktop: true
|
|
155
155
|
},
|
|
156
156
|
lineClamp: {
|
|
157
|
-
desktop: 2
|
|
158
|
-
mobile: 0
|
|
157
|
+
desktop: 2
|
|
159
158
|
},
|
|
160
159
|
color: {
|
|
161
160
|
normal: 'text-1'
|
|
@@ -536,7 +535,7 @@ const ProductListPreset = [
|
|
|
536
535
|
},
|
|
537
536
|
styles: {
|
|
538
537
|
typo: {
|
|
539
|
-
type: 'subheading-
|
|
538
|
+
type: 'subheading-1'
|
|
540
539
|
},
|
|
541
540
|
textAlign: {
|
|
542
541
|
desktop: 'left'
|
|
@@ -545,8 +544,7 @@ const ProductListPreset = [
|
|
|
545
544
|
desktop: true
|
|
546
545
|
},
|
|
547
546
|
lineClamp: {
|
|
548
|
-
desktop: 2
|
|
549
|
-
mobile: 0
|
|
547
|
+
desktop: 2
|
|
550
548
|
},
|
|
551
549
|
color: {
|
|
552
550
|
normal: 'text-1'
|
|
@@ -54,7 +54,7 @@ const ProductTitleSettings = [
|
|
|
54
54
|
id: 'typo',
|
|
55
55
|
type: 'typography-v2',
|
|
56
56
|
default: {
|
|
57
|
-
type: '
|
|
57
|
+
type: 'heading-2',
|
|
58
58
|
attrs: {
|
|
59
59
|
transform: 'none'
|
|
60
60
|
}
|
|
@@ -121,7 +121,7 @@ const ProductTitleSettings = [
|
|
|
121
121
|
disableDecimal: true,
|
|
122
122
|
devices: {
|
|
123
123
|
desktop: {
|
|
124
|
-
default:
|
|
124
|
+
default: 2
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
hide: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.462",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"update-img-src-3rd": "node ./scripts/update-img-src-3rd.js"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
26
|
+
"@gem-sdk/core": "2.0.0-dev.462",
|
|
27
27
|
"@gem-sdk/styles": "2.0.0-dev.381",
|
|
28
28
|
"@gem-sdk/system": "2.0.0-dev.451",
|
|
29
29
|
"@types/react-transition-group": "^4.4.5"
|