@gem-sdk/components 2.0.0-dev.390 → 2.0.0-dev.392
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/carousel/root/common/getData.js +4 -4
- package/dist/cjs/form/components/form-email/FormEmail.js +29 -20
- package/dist/cjs/form/components/form-email/FormEmail.liquid.js +7 -5
- package/dist/cjs/form/components/form-email/common/composeClasses.js +11 -2
- package/dist/cjs/form/components/form-email/common/composeStyles.js +62 -2
- package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +1 -0
- package/dist/cjs/form/components/newsletter/common/composeAttrs.js +1 -2
- package/dist/cjs/form/setting/contact/ContactInitConfig.js +3 -1
- package/dist/cjs/form/setting/form-email/configs/settings.js +190 -28
- package/dist/cjs/form/setting/form-email/configs/uiV2.js +262 -18
- package/dist/cjs/form/setting/text-input/configs/settings.js +6 -3
- package/dist/cjs/form/setting/text-input/configs/uiV2.js +2 -2
- package/dist/cjs/product/components/ProductList/ProductListGridLayout.liquid.js +15 -12
- package/dist/cjs/product/setting/product/configs/settings.js +5 -33
- package/dist/cjs/product/setting/product/configs/uiV2.js +44 -0
- package/dist/cjs/product/setting/product-list/configs/settingsV2.js +4 -7
- package/dist/cjs/product/setting/product-list/configs/uiV2.js +5 -2
- package/dist/esm/carousel/root/common/getData.js +5 -5
- package/dist/esm/form/components/form-email/FormEmail.js +32 -23
- package/dist/esm/form/components/form-email/FormEmail.liquid.js +8 -6
- package/dist/esm/form/components/form-email/common/composeClasses.js +11 -3
- package/dist/esm/form/components/form-email/common/composeStyles.js +63 -4
- package/dist/esm/form/components/newsletter/Newsletter.liquid.js +1 -0
- package/dist/esm/form/components/newsletter/common/composeAttrs.js +1 -2
- package/dist/esm/form/setting/contact/ContactInitConfig.js +3 -1
- package/dist/esm/form/setting/form-email/configs/settings.js +190 -28
- package/dist/esm/form/setting/form-email/configs/uiV2.js +262 -18
- package/dist/esm/form/setting/text-input/configs/settings.js +6 -3
- package/dist/esm/form/setting/text-input/configs/uiV2.js +2 -2
- package/dist/esm/product/components/ProductList/ProductListGridLayout.liquid.js +15 -12
- package/dist/esm/product/setting/product/configs/settings.js +5 -33
- package/dist/esm/product/setting/product/configs/uiV2.js +44 -0
- package/dist/esm/product/setting/product-list/configs/settingsV2.js +4 -7
- package/dist/esm/product/setting/product-list/configs/uiV2.js +5 -2
- package/dist/types/index.d.ts +25 -4
- package/package.json +2 -2
|
@@ -39,14 +39,14 @@ const getData = (props)=>{
|
|
|
39
39
|
};
|
|
40
40
|
const stateData = system.createStateOrContext({
|
|
41
41
|
id: uniqueComponentId,
|
|
42
|
-
setting,
|
|
43
|
-
styles,
|
|
44
42
|
moveToIdx,
|
|
45
|
-
isHiddenArrowWhenDisabled
|
|
43
|
+
isHiddenArrowWhenDisabled,
|
|
44
|
+
setting,
|
|
45
|
+
styles
|
|
46
46
|
});
|
|
47
47
|
return {
|
|
48
48
|
loopConfig: getLoopSetting(),
|
|
49
|
-
stateData:
|
|
49
|
+
stateData: JSON.stringify(stateData).replaceAll("'", '''),
|
|
50
50
|
uniqueComponentId,
|
|
51
51
|
arrowShowConfig: getArrowType(),
|
|
52
52
|
sliderSelector
|
|
@@ -8,33 +8,42 @@ var system = require('@gem-sdk/system');
|
|
|
8
8
|
var composeStyles = require('./common/composeStyles.js');
|
|
9
9
|
var composeClasses = require('./common/composeClasses.js');
|
|
10
10
|
|
|
11
|
-
const FormEmail = ({ builderProps, builderAttrs, setting, advanced, children })=>{
|
|
12
|
-
const { placeholder, required, defaultEmail, hideOnClient } = setting ?? {};
|
|
11
|
+
const FormEmail = ({ builderProps, builderAttrs, setting, advanced, children, styles })=>{
|
|
12
|
+
const { placeholder, required, defaultEmail, hideOnClient, title, showTitle } = setting ?? {};
|
|
13
13
|
const name = 'contact[email]';
|
|
14
14
|
const containerStyles = system.createStyle(composeStyles.composeContainerStyles(setting, advanced));
|
|
15
|
-
const innerStyles = system.createStyle(composeStyles.composeInnerStyles(setting, advanced));
|
|
15
|
+
const innerStyles = system.createStyle(composeStyles.composeInnerStyles(setting, advanced, styles));
|
|
16
16
|
const containerClasses = system.createClass(composeClasses.composeContainerClasses(setting, advanced, builderProps));
|
|
17
|
-
const innerClasses = system.createClass(composeClasses.composeInnerClasses(setting));
|
|
18
|
-
|
|
17
|
+
const innerClasses = system.createClass(composeClasses.composeInnerClasses(setting, builderProps));
|
|
18
|
+
const classTitle = system.createClass(composeClasses.getClassTitle());
|
|
19
|
+
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
19
20
|
...builderAttrs,
|
|
20
21
|
"data-id": builderProps?.uid,
|
|
21
22
|
className: containerClasses,
|
|
22
23
|
style: containerStyles,
|
|
23
|
-
children:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
24
|
+
children: [
|
|
25
|
+
system.If(showTitle, /*#__PURE__*/ jsxRuntime.jsx("span", {
|
|
26
|
+
className: classTitle,
|
|
27
|
+
children: title
|
|
28
|
+
})),
|
|
29
|
+
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
30
|
+
children: [
|
|
31
|
+
/*#__PURE__*/ jsxRuntime.jsx("input", {
|
|
32
|
+
type: "email",
|
|
33
|
+
className: innerClasses,
|
|
34
|
+
style: innerStyles,
|
|
35
|
+
placeholder: placeholder,
|
|
36
|
+
name: name,
|
|
37
|
+
required: required,
|
|
38
|
+
autoComplete: "email",
|
|
39
|
+
...hideOnClient && {
|
|
40
|
+
value: defaultEmail
|
|
41
|
+
}
|
|
42
|
+
}),
|
|
43
|
+
children
|
|
44
|
+
]
|
|
45
|
+
})
|
|
46
|
+
]
|
|
38
47
|
});
|
|
39
48
|
};
|
|
40
49
|
|
|
@@ -8,8 +8,8 @@ var system = require('@gem-sdk/system');
|
|
|
8
8
|
var composeStyles = require('./common/composeStyles.js');
|
|
9
9
|
var composeClasses = require('./common/composeClasses.js');
|
|
10
10
|
|
|
11
|
-
const FormEmail = ({ builderProps, builderAttrs, setting, advanced, pageContext })=>{
|
|
12
|
-
const { placeholder, required, hideOnClient, defaultEmail, translate } = setting ?? {};
|
|
11
|
+
const FormEmail = ({ builderProps, builderAttrs, setting, advanced, pageContext, styles })=>{
|
|
12
|
+
const { placeholder, required, hideOnClient, defaultEmail, translate, showTitle, title } = setting ?? {};
|
|
13
13
|
const name = 'contact[email]';
|
|
14
14
|
const placeholderVal = helpers.getDynamicSourceLocales({
|
|
15
15
|
val: placeholder,
|
|
@@ -19,9 +19,10 @@ const FormEmail = ({ builderProps, builderAttrs, setting, advanced, pageContext
|
|
|
19
19
|
translate
|
|
20
20
|
});
|
|
21
21
|
const containerStyles = system.createStyle(composeStyles.composeContainerStyles(setting, advanced));
|
|
22
|
-
const innerStyles = system.createStyle(composeStyles.composeInnerStyles(setting, advanced));
|
|
22
|
+
const innerStyles = system.createStyle(composeStyles.composeInnerStyles(setting, advanced, styles));
|
|
23
23
|
const containerClasses = system.createClass(composeClasses.composeContainerClasses(setting, advanced, builderProps));
|
|
24
|
-
const innerClasses = system.createClass(composeClasses.composeInnerClasses(setting));
|
|
24
|
+
const innerClasses = system.createClass(composeClasses.composeInnerClasses(setting, builderProps));
|
|
25
|
+
const classTitle = system.createClass(composeClasses.getClassTitle());
|
|
25
26
|
return core.template`
|
|
26
27
|
<div
|
|
27
28
|
${{
|
|
@@ -31,6 +32,7 @@ const FormEmail = ({ builderProps, builderAttrs, setting, advanced, pageContext
|
|
|
31
32
|
class="${containerClasses}"
|
|
32
33
|
style="${containerStyles}"
|
|
33
34
|
>
|
|
35
|
+
${system.If(showTitle, `<span className="${classTitle}">${title}</span>`)}
|
|
34
36
|
<input
|
|
35
37
|
type="email"
|
|
36
38
|
class="${innerClasses}"
|
|
@@ -39,7 +41,7 @@ const FormEmail = ({ builderProps, builderAttrs, setting, advanced, pageContext
|
|
|
39
41
|
name="${name}"
|
|
40
42
|
${system.If(required, 'required')}
|
|
41
43
|
autocomplete="email"
|
|
42
|
-
value="${
|
|
44
|
+
${system.If(hideOnClient, `value="${defaultEmail}`)}
|
|
43
45
|
></input>
|
|
44
46
|
</div>
|
|
45
47
|
`;
|
|
@@ -13,16 +13,25 @@ const composeContainerClasses = (setting, advanced, builderProps)=>{
|
|
|
13
13
|
'flex flex-col': true
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
|
-
const composeInnerClasses = (setting)=>{
|
|
16
|
+
const composeInnerClasses = (setting, builderProps)=>{
|
|
17
17
|
const { typography, size } = setting ?? {};
|
|
18
|
+
const { uid } = builderProps ?? {};
|
|
18
19
|
const appendTypoClass = core.composeTypographyClassName(setting?.typo, typography);
|
|
19
20
|
return composeClasses({
|
|
20
21
|
'gp-form-item': true,
|
|
21
22
|
[appendTypoClass]: !!appendTypoClass,
|
|
22
23
|
[core.genSizeClass(size?.type)]: !!size?.type,
|
|
23
|
-
'!gp-outline-none
|
|
24
|
+
'!gp-outline-none focus:!gp-shadow-none hover:!gp-shadow-none !gp-bg-none': true,
|
|
25
|
+
[`email-form-${uid}`]: true
|
|
24
26
|
});
|
|
25
27
|
};
|
|
28
|
+
const getClassTitle = ()=>{
|
|
29
|
+
return {
|
|
30
|
+
'gp-text-16': true,
|
|
31
|
+
'gp-text-[#121212]': true
|
|
32
|
+
};
|
|
33
|
+
};
|
|
26
34
|
|
|
27
35
|
exports.composeContainerClasses = composeContainerClasses;
|
|
28
36
|
exports.composeInnerClasses = composeInnerClasses;
|
|
37
|
+
exports.getClassTitle = getClassTitle;
|
|
@@ -26,9 +26,10 @@ const composeContainerStyles = (setting, advanced)=>{
|
|
|
26
26
|
...core.makeStyleResponsive('ta', align)
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
const composeInnerStyles = (setting, advanced)=>{
|
|
29
|
+
const composeInnerStyles = (setting, advanced, styles)=>{
|
|
30
30
|
const { border, rounded, hasBoxShadow, boxShadow } = advanced ?? {};
|
|
31
|
-
const {
|
|
31
|
+
const { wrapperBorder, borderRadius, globalSize, boxShadowEmailHover, boxShadowEmailActive, roundedEmailHover, textColorActive, roundedEmailActive, textColorHover, borderEmailHover, borderEmailActive, backgroundColorV2Active, backgroundColorV2Hover } = styles ?? {};
|
|
32
|
+
const { typography, size, width, background } = setting ?? {};
|
|
32
33
|
const inputStyle = core.composeAdvanceStyle({
|
|
33
34
|
border,
|
|
34
35
|
rounded,
|
|
@@ -37,18 +38,77 @@ const composeInnerStyles = (setting, advanced)=>{
|
|
|
37
38
|
});
|
|
38
39
|
const appendTypoStyle = core.composeTypographyStyle(setting?.typo, typography);
|
|
39
40
|
const inputWidth = core.makeStyleResponsive('w', core.makeWidth(width));
|
|
41
|
+
const composeGlobalSize = core.makeGlobalSize(globalSize);
|
|
40
42
|
return composeStyles({
|
|
43
|
+
...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
|
|
44
|
+
'--w': '100%'
|
|
45
|
+
},
|
|
46
|
+
...composeGlobalSize?.height?.['--h'] ? composeGlobalSize.height : {
|
|
47
|
+
'--h': 'auto'
|
|
48
|
+
},
|
|
49
|
+
...composeGlobalSize.padding,
|
|
41
50
|
...appendTypoStyle,
|
|
42
51
|
...!size?.type ? core.composeSize(size?.custom) : {},
|
|
52
|
+
...core.getBorderStyle(wrapperBorder),
|
|
53
|
+
...core.getBorderRadiusStyle(borderRadius),
|
|
43
54
|
...inputWidth,
|
|
44
55
|
...inputStyle,
|
|
45
56
|
...core.getStyleShadow({
|
|
46
57
|
value: boxShadow,
|
|
47
58
|
styleAppliedFor: 'box-shadow',
|
|
48
59
|
isEnableShadow: hasBoxShadow
|
|
60
|
+
}),
|
|
61
|
+
...core.getStyleBackgroundByDevice(background),
|
|
62
|
+
...core.getGradientBgrStyleByDevice(background),
|
|
63
|
+
...core.getStyleShadow({
|
|
64
|
+
value: boxShadowEmailActive?.active,
|
|
65
|
+
state: 'focus',
|
|
66
|
+
styleAppliedFor: 'box-shadow',
|
|
67
|
+
isEnableShadow: true
|
|
68
|
+
}),
|
|
69
|
+
...core.getStyleShadow({
|
|
70
|
+
value: boxShadowEmailHover?.hover,
|
|
71
|
+
state: 'hover',
|
|
72
|
+
styleAppliedFor: 'box-shadow',
|
|
73
|
+
isEnableShadow: true
|
|
74
|
+
}),
|
|
75
|
+
'--hvr-c': textColorHover?.hover ?? '',
|
|
76
|
+
'--focus-c': textColorActive?.active ?? '',
|
|
77
|
+
...generateStylesTarget({
|
|
78
|
+
state: 'hover',
|
|
79
|
+
borderStyle: borderEmailHover?.hover,
|
|
80
|
+
background: backgroundColorV2Hover?.hover,
|
|
81
|
+
radius: roundedEmailHover?.hover
|
|
82
|
+
}),
|
|
83
|
+
...generateStylesTarget({
|
|
84
|
+
state: 'focus',
|
|
85
|
+
borderStyle: borderEmailActive?.active,
|
|
86
|
+
background: backgroundColorV2Active?.active,
|
|
87
|
+
radius: roundedEmailActive?.active
|
|
49
88
|
})
|
|
50
89
|
});
|
|
51
90
|
};
|
|
91
|
+
const generateStylesTarget = ({ state, borderStyle, background, radius })=>{
|
|
92
|
+
const { border, width, color } = borderStyle ?? {};
|
|
93
|
+
const getState = {
|
|
94
|
+
hover: 'hvr',
|
|
95
|
+
focus: 'focus'
|
|
96
|
+
};
|
|
97
|
+
const currentState = getState[state];
|
|
98
|
+
return {
|
|
99
|
+
...width && {
|
|
100
|
+
[`--${currentState}-bw`]: `${width}`
|
|
101
|
+
},
|
|
102
|
+
...border && {
|
|
103
|
+
[`--${currentState}-b`]: `${border} ${core.getSingleColorVariable(color)}`
|
|
104
|
+
},
|
|
105
|
+
...background && {
|
|
106
|
+
[`--${currentState}-bgc`]: `${core.getSingleColorVariable(background)}`
|
|
107
|
+
},
|
|
108
|
+
...core.getCustomRadius(state, radius)
|
|
109
|
+
};
|
|
110
|
+
};
|
|
52
111
|
|
|
53
112
|
exports.composeContainerStyles = composeContainerStyles;
|
|
54
113
|
exports.composeInnerStyles = composeInnerStyles;
|
|
114
|
+
exports.generateStylesTarget = generateStylesTarget;
|
|
@@ -7,8 +7,7 @@ const composeContainerAttrs = (builderProps, setting)=>{
|
|
|
7
7
|
return composeAttribute({
|
|
8
8
|
'data-id': builderProps?.uid,
|
|
9
9
|
id: builderProps?.uid,
|
|
10
|
-
'data-submit-action': setting?.afterSubmitAction
|
|
11
|
-
'data-callback': JSON.stringify(setting?.callbackURL)
|
|
10
|
+
'data-submit-action': setting?.afterSubmitAction
|
|
12
11
|
});
|
|
13
12
|
};
|
|
14
13
|
const composeAnchorAttrs = (builderProps, setting)=>{
|
|
@@ -12,6 +12,12 @@ const FormEmailSettings = [
|
|
|
12
12
|
label: 'Placeholder',
|
|
13
13
|
default: 'Enter your email address'
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
id: 'placeholderColor',
|
|
17
|
+
type: 'color-picker-v2',
|
|
18
|
+
label: 'Color',
|
|
19
|
+
default: '#A3A3A3'
|
|
20
|
+
},
|
|
15
21
|
{
|
|
16
22
|
id: 'translate',
|
|
17
23
|
type: 'input',
|
|
@@ -43,10 +49,12 @@ const FormEmailSettings = [
|
|
|
43
49
|
type: 'paragraph-1'
|
|
44
50
|
},
|
|
45
51
|
hiddenSetting: {
|
|
46
|
-
color: true,
|
|
47
52
|
textAlign: true,
|
|
48
|
-
textShadow: true
|
|
53
|
+
textShadow: true,
|
|
54
|
+
fontWeight: true,
|
|
55
|
+
transform: true
|
|
49
56
|
},
|
|
57
|
+
disableCollapse: true,
|
|
50
58
|
ignoreReRender: true
|
|
51
59
|
},
|
|
52
60
|
{
|
|
@@ -92,36 +100,190 @@ const FormEmailSettings = [
|
|
|
92
100
|
}
|
|
93
101
|
},
|
|
94
102
|
{
|
|
95
|
-
id: '
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
label: 'Center',
|
|
108
|
-
value: 'center',
|
|
109
|
-
type: 'align',
|
|
110
|
-
tooltip: 'Align center',
|
|
111
|
-
iconName: 'gp-align-center'
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
label: 'Right',
|
|
115
|
-
value: 'right',
|
|
116
|
-
type: 'align',
|
|
117
|
-
tooltip: 'Align right',
|
|
118
|
-
iconName: 'gp-align-right'
|
|
103
|
+
id: 'background',
|
|
104
|
+
type: 'background-media',
|
|
105
|
+
ignoreReRender: true,
|
|
106
|
+
hideImage: true,
|
|
107
|
+
devices: {
|
|
108
|
+
desktop: {
|
|
109
|
+
default: {
|
|
110
|
+
type: 'color',
|
|
111
|
+
color: 'transparent'
|
|
112
|
+
}
|
|
119
113
|
}
|
|
120
|
-
|
|
114
|
+
},
|
|
115
|
+
compoDefaultValue: {
|
|
116
|
+
desktop: {
|
|
117
|
+
default: {
|
|
118
|
+
type: 'color',
|
|
119
|
+
color: '#FFFFFF'
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: 'style',
|
|
128
|
+
controls: [
|
|
129
|
+
{
|
|
130
|
+
id: 'globalSize',
|
|
131
|
+
type: 'size-setting',
|
|
121
132
|
devices: {
|
|
122
133
|
desktop: {
|
|
123
|
-
default:
|
|
134
|
+
default: {
|
|
135
|
+
width: '100%',
|
|
136
|
+
height: 'Auto',
|
|
137
|
+
padding: {
|
|
138
|
+
type: 'medium',
|
|
139
|
+
top: '4px',
|
|
140
|
+
bottom: '4px',
|
|
141
|
+
left: '16px',
|
|
142
|
+
right: '16px'
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
settingConfig: {
|
|
148
|
+
width: {},
|
|
149
|
+
height: {
|
|
150
|
+
displayOptions: [
|
|
151
|
+
'auto',
|
|
152
|
+
'small',
|
|
153
|
+
'large',
|
|
154
|
+
'medium'
|
|
155
|
+
],
|
|
156
|
+
sizeConfig: {
|
|
157
|
+
small: '28px',
|
|
158
|
+
medium: '36px',
|
|
159
|
+
large: '44px'
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
hiddenSettings: [
|
|
164
|
+
'shape',
|
|
165
|
+
'gap'
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
id: 'wrapperBorder',
|
|
170
|
+
type: 'border-v2',
|
|
171
|
+
label: 'Border',
|
|
172
|
+
default: {
|
|
173
|
+
border: 'solid',
|
|
174
|
+
width: '1px 1px 1px 1px',
|
|
175
|
+
position: 'all',
|
|
176
|
+
borderWidth: '1px',
|
|
177
|
+
color: '#7D7D7D',
|
|
178
|
+
isCustom: true
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
id: 'backgroundColorV2Hover',
|
|
183
|
+
type: 'color-picker-v2',
|
|
184
|
+
enableGradient: true
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
id: 'textColorHover',
|
|
188
|
+
type: 'color-picker-v2',
|
|
189
|
+
label: 'Text Color',
|
|
190
|
+
state: {
|
|
191
|
+
hover: true
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: 'borderEmailHover',
|
|
196
|
+
type: 'border',
|
|
197
|
+
emptyOnClear: true,
|
|
198
|
+
state: {
|
|
199
|
+
hover: true
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
id: 'roundedEmailHover',
|
|
204
|
+
type: 'radius-preset',
|
|
205
|
+
default: {
|
|
206
|
+
hover: {
|
|
207
|
+
radiusType: 'small'
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
state: {
|
|
211
|
+
hover: true
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
id: 'boxShadowEmailHover',
|
|
216
|
+
type: 'shadow-v2',
|
|
217
|
+
label: 'Button Shadow',
|
|
218
|
+
hideOnState: {
|
|
219
|
+
hover: true
|
|
220
|
+
},
|
|
221
|
+
default: {
|
|
222
|
+
hover: {
|
|
223
|
+
type: 'shadow-1',
|
|
224
|
+
distance: '4px',
|
|
225
|
+
blur: '12px',
|
|
226
|
+
spread: '0px',
|
|
227
|
+
color: 'rgba(0, 0, 0, 0.20)',
|
|
228
|
+
angle: 90
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
state: {
|
|
232
|
+
hover: true
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
id: 'backgroundColorV2Active',
|
|
237
|
+
type: 'color-picker-v2',
|
|
238
|
+
enableGradient: true
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
id: 'textColorActive',
|
|
242
|
+
type: 'color-picker-v2',
|
|
243
|
+
label: 'Text Color',
|
|
244
|
+
state: {
|
|
245
|
+
active: true
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
id: 'borderEmailActive',
|
|
250
|
+
type: 'border',
|
|
251
|
+
emptyOnClear: true,
|
|
252
|
+
state: {
|
|
253
|
+
active: true
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
id: 'roundedEmailActive',
|
|
258
|
+
type: 'radius-preset',
|
|
259
|
+
default: {
|
|
260
|
+
active: {
|
|
261
|
+
radiusType: 'small'
|
|
124
262
|
}
|
|
263
|
+
},
|
|
264
|
+
state: {
|
|
265
|
+
active: true
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
id: 'boxShadowEmailActive',
|
|
270
|
+
type: 'shadow-v2',
|
|
271
|
+
label: 'Button Shadow',
|
|
272
|
+
hideOnState: {
|
|
273
|
+
active: true
|
|
274
|
+
},
|
|
275
|
+
default: {
|
|
276
|
+
active: {
|
|
277
|
+
type: 'shadow-1',
|
|
278
|
+
distance: '4px',
|
|
279
|
+
blur: '12px',
|
|
280
|
+
spread: '0px',
|
|
281
|
+
color: 'rgba(0, 0, 0, 0.20)',
|
|
282
|
+
angle: 90
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
state: {
|
|
286
|
+
active: true
|
|
125
287
|
}
|
|
126
288
|
}
|
|
127
289
|
]
|