@gem-sdk/components 2.0.0-dev.418 → 2.0.0-dev.420
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/button/components/common/styles.js +1 -1
- package/dist/cjs/collection/components/collection-description/common/styles.js +1 -1
- package/dist/cjs/dialog/components/Dialog.js +0 -4
- package/dist/cjs/dialog/components/Dialog.liquid.js +10 -12
- package/dist/cjs/dialog/components/common/getClasses.js +0 -7
- package/dist/cjs/form/setting/form-dropdown/configs/settings.js +5 -5
- package/dist/cjs/form/setting/form-dropdown/configs/uiV2.js +76 -87
- package/dist/cjs/image-comparison/components/common/styles.js +1 -1
- package/dist/cjs/product/components/FileUpload/components/config/setting.js +2 -3
- package/dist/cjs/product/components/ProductDescription/common/getStyle.js +1 -1
- package/dist/cjs/stock-counter/components/common/getStyles.js +1 -1
- package/dist/esm/button/components/common/styles.js +1 -1
- package/dist/esm/collection/components/collection-description/common/styles.js +1 -1
- package/dist/esm/dialog/components/Dialog.js +1 -5
- package/dist/esm/dialog/components/Dialog.liquid.js +11 -13
- package/dist/esm/dialog/components/common/getClasses.js +1 -7
- package/dist/esm/form/setting/form-dropdown/configs/settings.js +5 -5
- package/dist/esm/form/setting/form-dropdown/configs/uiV2.js +76 -87
- package/dist/esm/image-comparison/components/common/styles.js +1 -1
- package/dist/esm/product/components/FileUpload/components/config/setting.js +2 -3
- package/dist/esm/product/components/ProductDescription/common/getStyle.js +1 -1
- package/dist/esm/stock-counter/components/common/getStyles.js +1 -1
- package/package.json +1 -1
|
@@ -59,7 +59,7 @@ const getTypoStyles = (styles)=>{
|
|
|
59
59
|
...core.getStyleShadow({
|
|
60
60
|
styleAppliedFor: 'text-shadow',
|
|
61
61
|
value: styles?.typo?.custom?.textShadow,
|
|
62
|
-
isEnableShadow: styles?.typo?.custom?.
|
|
62
|
+
isEnableShadow: styles?.typo?.custom?.hasShadowText
|
|
63
63
|
})
|
|
64
64
|
};
|
|
65
65
|
};
|
|
@@ -31,7 +31,7 @@ const getDefaultStyleCollectionDes = (setting)=>{
|
|
|
31
31
|
...core.getStyleShadow({
|
|
32
32
|
value: setting?.typo?.custom?.textShadow,
|
|
33
33
|
styleAppliedFor: 'text-shadow',
|
|
34
|
-
isEnableShadow: setting?.typo?.custom?.
|
|
34
|
+
isEnableShadow: setting?.typo?.custom?.hasShadowText
|
|
35
35
|
}),
|
|
36
36
|
...core.makeStyleResponsive('ta', setting?.textAlign),
|
|
37
37
|
...core.makeStyle({
|
|
@@ -28,9 +28,6 @@ const Dialog = (props)=>{
|
|
|
28
28
|
const wrapperDialogStyle = system.createStyle({
|
|
29
29
|
...getStyle.getWrapperStyle(display)
|
|
30
30
|
});
|
|
31
|
-
const wrapperClasses = system.createClass({
|
|
32
|
-
...getClasses.getWrapperClasses()
|
|
33
|
-
});
|
|
34
31
|
const containClasses = system.createClass({
|
|
35
32
|
...getClasses.getContainClasses(advanced?.cssClass)
|
|
36
33
|
});
|
|
@@ -95,7 +92,6 @@ const Dialog = (props)=>{
|
|
|
95
92
|
});
|
|
96
93
|
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
97
94
|
...attrs,
|
|
98
|
-
className: wrapperClasses,
|
|
99
95
|
style: wrapperDialogStyle,
|
|
100
96
|
children: (open || mode !== 'edit') && /*#__PURE__*/ jsxRuntime.jsx("dialog", {
|
|
101
97
|
ref: ref,
|
|
@@ -7,6 +7,7 @@ var system = require('@gem-sdk/system');
|
|
|
7
7
|
var getAttr = require('./common/getAttr.js');
|
|
8
8
|
var getStyle = require('./common/getStyle.js');
|
|
9
9
|
var getClasses = require('./common/getClasses.js');
|
|
10
|
+
var helpers = require('../../helpers.js');
|
|
10
11
|
|
|
11
12
|
const Dialog = (props)=>{
|
|
12
13
|
const { setting, children, builderProps, style, advanced, builderAttrs } = props;
|
|
@@ -36,9 +37,6 @@ const Dialog = (props)=>{
|
|
|
36
37
|
const wrapperDialogStyle = system.createStyle({
|
|
37
38
|
...getStyle.getWrapperStyle(display)
|
|
38
39
|
});
|
|
39
|
-
const wrapperClasses = system.createClass({
|
|
40
|
-
...getClasses.getWrapperClasses()
|
|
41
|
-
});
|
|
42
40
|
const containClasses = system.createClass({
|
|
43
41
|
...getClasses.getContainClasses(advanced?.cssClass)
|
|
44
42
|
});
|
|
@@ -109,7 +107,7 @@ const Dialog = (props)=>{
|
|
|
109
107
|
${{
|
|
110
108
|
...attrs
|
|
111
109
|
}}
|
|
112
|
-
class="${
|
|
110
|
+
class="${helpers.getSettingPreloadData('gps-lazy')}"
|
|
113
111
|
style="${wrapperDialogStyle}"
|
|
114
112
|
data-gp-setting='${JSON.stringify(stateData)}'>
|
|
115
113
|
<dialog
|
|
@@ -121,16 +119,16 @@ const Dialog = (props)=>{
|
|
|
121
119
|
style="${containStyle}"
|
|
122
120
|
>
|
|
123
121
|
<div aria-label="Backdrop" class="${backdropClasses}" style="${backdropStyle}">
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
${system.If(!!overlayColor, core.template`
|
|
123
|
+
<div
|
|
124
|
+
${{
|
|
127
125
|
...overlayAttrs
|
|
128
126
|
}}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
class="${overlayClasses}"
|
|
128
|
+
style="${overlayStyle}"
|
|
129
|
+
aria-hidden=true
|
|
130
|
+
></div>
|
|
131
|
+
`)}
|
|
134
132
|
<span class="${headContentClasses}"></span>
|
|
135
133
|
<div
|
|
136
134
|
role="dialog"
|
|
@@ -8,12 +8,6 @@ function composeClasses(classList) {
|
|
|
8
8
|
return acc;
|
|
9
9
|
}, {});
|
|
10
10
|
}
|
|
11
|
-
const getWrapperClasses = ()=>{
|
|
12
|
-
const classList = 'gps-lazy';
|
|
13
|
-
return {
|
|
14
|
-
...composeClasses(classList)
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
11
|
const getContainClasses = (advancedCssClass)=>{
|
|
18
12
|
let classList = 'gp-dialog gp-bg-transparent';
|
|
19
13
|
if (advancedCssClass) classList += ` ${advancedCssClass}`;
|
|
@@ -85,4 +79,3 @@ exports.getContainClasses = getContainClasses;
|
|
|
85
79
|
exports.getDialogContentClasses = getDialogContentClasses;
|
|
86
80
|
exports.getHeadContentClasses = getHeadContentClasses;
|
|
87
81
|
exports.getOverlayClasses = getOverlayClasses;
|
|
88
|
-
exports.getWrapperClasses = getWrapperClasses;
|
|
@@ -49,7 +49,7 @@ const FormDropdownSettings = [
|
|
|
49
49
|
id: 'required',
|
|
50
50
|
type: 'toggle',
|
|
51
51
|
label: 'Placeholder',
|
|
52
|
-
default:
|
|
52
|
+
default: true
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
id: 'typo',
|
|
@@ -168,10 +168,10 @@ const FormDropdownSettings = [
|
|
|
168
168
|
height: 'Auto',
|
|
169
169
|
padding: {
|
|
170
170
|
type: 'medium',
|
|
171
|
-
top: '
|
|
172
|
-
bottom: '
|
|
173
|
-
left: '
|
|
174
|
-
right: '
|
|
171
|
+
top: '4px',
|
|
172
|
+
bottom: '4px',
|
|
173
|
+
left: '16px',
|
|
174
|
+
right: '16px'
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
}
|
|
@@ -6,33 +6,33 @@ const SettingUIV2 = [
|
|
|
6
6
|
en: 'Item management'
|
|
7
7
|
},
|
|
8
8
|
controls: [
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
9
|
+
// {
|
|
10
|
+
// type: 'combo',
|
|
11
|
+
// label: {
|
|
12
|
+
// en: 'Placeholder',
|
|
13
|
+
// },
|
|
14
|
+
// iconName: 'polaris-text-block',
|
|
15
|
+
// getValueFromSettingID: 'placeholder',
|
|
16
|
+
// isHideClear: true,
|
|
17
|
+
// controls: [
|
|
18
|
+
// {
|
|
19
|
+
// label: {
|
|
20
|
+
// en: 'Content',
|
|
21
|
+
// },
|
|
22
|
+
// setting: {
|
|
23
|
+
// id: 'placeholder',
|
|
24
|
+
// },
|
|
25
|
+
// },
|
|
26
|
+
// {
|
|
27
|
+
// setting: {
|
|
28
|
+
// id: 'placeholderColor',
|
|
29
|
+
// },
|
|
30
|
+
// label: {
|
|
31
|
+
// en: 'Color',
|
|
32
|
+
// },
|
|
33
|
+
// },
|
|
34
|
+
// ],
|
|
35
|
+
// },
|
|
36
36
|
{
|
|
37
37
|
label: {
|
|
38
38
|
en: 'Options'
|
|
@@ -40,14 +40,6 @@ const SettingUIV2 = [
|
|
|
40
40
|
setting: {
|
|
41
41
|
id: 'childItem'
|
|
42
42
|
}
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
label: {
|
|
46
|
-
en: 'Default option'
|
|
47
|
-
},
|
|
48
|
-
setting: {
|
|
49
|
-
id: 'defaultOption'
|
|
50
|
-
}
|
|
51
43
|
}
|
|
52
44
|
]
|
|
53
45
|
},
|
|
@@ -118,45 +110,42 @@ const SettingUIV2 = [
|
|
|
118
110
|
},
|
|
119
111
|
layout: 'horizontal'
|
|
120
112
|
},
|
|
121
|
-
{
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
},
|
|
158
|
-
layout: 'horizontal'
|
|
159
|
-
},
|
|
113
|
+
// {
|
|
114
|
+
// id: 'height',
|
|
115
|
+
// label: {
|
|
116
|
+
// en: 'Height',
|
|
117
|
+
// },
|
|
118
|
+
// controlConfig: {
|
|
119
|
+
// id: 'height',
|
|
120
|
+
// type: 'dropdown:input',
|
|
121
|
+
// label: 'Height',
|
|
122
|
+
// inputType: 'number',
|
|
123
|
+
// units: ['px', '%'],
|
|
124
|
+
// hideUnit: false,
|
|
125
|
+
// linkWithSetting: {
|
|
126
|
+
// name: 'globalSize',
|
|
127
|
+
// field: 'height',
|
|
128
|
+
// },
|
|
129
|
+
// displayOptions: [
|
|
130
|
+
// {
|
|
131
|
+
// label: 'Fit content',
|
|
132
|
+
// value: 'Auto',
|
|
133
|
+
// showValue: true,
|
|
134
|
+
// },
|
|
135
|
+
// {
|
|
136
|
+
// label: 'Full',
|
|
137
|
+
// value: '100%',
|
|
138
|
+
// showValue: true,
|
|
139
|
+
// },
|
|
140
|
+
// {
|
|
141
|
+
// label: 'Default',
|
|
142
|
+
// value: 'default',
|
|
143
|
+
// showValue: true,
|
|
144
|
+
// },
|
|
145
|
+
// ],
|
|
146
|
+
// },
|
|
147
|
+
// layout: 'horizontal',
|
|
148
|
+
// },
|
|
160
149
|
{
|
|
161
150
|
label: {
|
|
162
151
|
en: 'Padding'
|
|
@@ -183,19 +172,19 @@ const SettingUIV2 = [
|
|
|
183
172
|
}
|
|
184
173
|
]
|
|
185
174
|
},
|
|
186
|
-
{
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
},
|
|
175
|
+
// {
|
|
176
|
+
// label: {
|
|
177
|
+
// en: 'Background',
|
|
178
|
+
// },
|
|
179
|
+
// controls: [
|
|
180
|
+
// {
|
|
181
|
+
// setting: {
|
|
182
|
+
// id: 'background',
|
|
183
|
+
// },
|
|
184
|
+
// layout: 'vertical',
|
|
185
|
+
// },
|
|
186
|
+
// ],
|
|
187
|
+
// },
|
|
199
188
|
// {
|
|
200
189
|
// label: {
|
|
201
190
|
// en: 'Shape',
|
|
@@ -70,7 +70,7 @@ const getLabelStyles = ({ type, styles, isHorizontal })=>{
|
|
|
70
70
|
...core.getStyleShadow({
|
|
71
71
|
styleAppliedFor: 'text-shadow',
|
|
72
72
|
value: styles?.typo?.custom?.textShadow,
|
|
73
|
-
isEnableShadow: styles?.typo?.custom?.
|
|
73
|
+
isEnableShadow: styles?.typo?.custom?.hasShadowText
|
|
74
74
|
}),
|
|
75
75
|
...core.makeStyle({
|
|
76
76
|
tt: styles?.transform,
|
|
@@ -343,8 +343,7 @@ const Settings = [
|
|
|
343
343
|
type: 'color-picker-v2',
|
|
344
344
|
label: 'Text Color',
|
|
345
345
|
default: {
|
|
346
|
-
normal: 'text-1'
|
|
347
|
-
hover: 'transparent'
|
|
346
|
+
normal: 'text-1'
|
|
348
347
|
},
|
|
349
348
|
state: {
|
|
350
349
|
hover: true,
|
|
@@ -388,7 +387,7 @@ const Settings = [
|
|
|
388
387
|
},
|
|
389
388
|
{
|
|
390
389
|
id: 'boxShadowBtn',
|
|
391
|
-
type: '
|
|
390
|
+
type: 'shadow-v2',
|
|
392
391
|
label: 'Shadow Style',
|
|
393
392
|
hideOnState: {
|
|
394
393
|
normal: true,
|
|
@@ -24,7 +24,7 @@ const getTextStyle = ({ setting, renderMaxHeight })=>{
|
|
|
24
24
|
...core.getStyleShadow({
|
|
25
25
|
value: setting?.typo?.custom?.textShadow,
|
|
26
26
|
styleAppliedFor: 'text-shadow',
|
|
27
|
-
isEnableShadow: setting?.typo?.custom?.
|
|
27
|
+
isEnableShadow: setting?.typo?.custom?.hasShadowText
|
|
28
28
|
}),
|
|
29
29
|
...core.makeStyleResponsive('ta', setting?.textAlign),
|
|
30
30
|
...core.getGlobalColorStyle(setting?.color),
|
|
@@ -61,7 +61,7 @@ const getTextStyles = (styles, isOutOfStock)=>{
|
|
|
61
61
|
...core.getStyleShadow({
|
|
62
62
|
value: typo?.custom?.textShadow,
|
|
63
63
|
styleAppliedFor: 'text-shadow',
|
|
64
|
-
isEnableShadow: typo?.custom?.
|
|
64
|
+
isEnableShadow: typo?.custom?.hasShadowText
|
|
65
65
|
})
|
|
66
66
|
};
|
|
67
67
|
};
|
|
@@ -57,7 +57,7 @@ const getTypoStyles = (styles)=>{
|
|
|
57
57
|
...getStyleShadow({
|
|
58
58
|
styleAppliedFor: 'text-shadow',
|
|
59
59
|
value: styles?.typo?.custom?.textShadow,
|
|
60
|
-
isEnableShadow: styles?.typo?.custom?.
|
|
60
|
+
isEnableShadow: styles?.typo?.custom?.hasShadowText
|
|
61
61
|
})
|
|
62
62
|
};
|
|
63
63
|
};
|
|
@@ -29,7 +29,7 @@ const getDefaultStyleCollectionDes = (setting)=>{
|
|
|
29
29
|
...getStyleShadow({
|
|
30
30
|
value: setting?.typo?.custom?.textShadow,
|
|
31
31
|
styleAppliedFor: 'text-shadow',
|
|
32
|
-
isEnableShadow: setting?.typo?.custom?.
|
|
32
|
+
isEnableShadow: setting?.typo?.custom?.hasShadowText
|
|
33
33
|
}),
|
|
34
34
|
...makeStyleResponsive('ta', setting?.textAlign),
|
|
35
35
|
...makeStyle({
|
|
@@ -6,7 +6,7 @@ import { useDialog } from './hooks/useDialog.js';
|
|
|
6
6
|
import { createAttr, createStyle, createClass, If } from '@gem-sdk/system';
|
|
7
7
|
import { getAttr, getAttrContainer, getAttrOverlay, getAttrClose } from './common/getAttr.js';
|
|
8
8
|
import { getWrapperStyle, getContainStyle, getBackdropStyle, getOverlayStyle, getDialogContentStyle, getButtonContentStyle, getSvgContentStyle, getBodyContentStyle } from './common/getStyle.js';
|
|
9
|
-
import {
|
|
9
|
+
import { getContainClasses, getBackdropClasses, getOverlayClasses, getDialogContentClasses, getHeadContentClasses, getButtonContentClasses, getBodyContentClasses } from './common/getClasses.js';
|
|
10
10
|
|
|
11
11
|
const Dialog = (props)=>{
|
|
12
12
|
const { setting, children, builderProps, style, advanced, builderAttrs } = props;
|
|
@@ -24,9 +24,6 @@ const Dialog = (props)=>{
|
|
|
24
24
|
const wrapperDialogStyle = createStyle({
|
|
25
25
|
...getWrapperStyle(display)
|
|
26
26
|
});
|
|
27
|
-
const wrapperClasses = createClass({
|
|
28
|
-
...getWrapperClasses()
|
|
29
|
-
});
|
|
30
27
|
const containClasses = createClass({
|
|
31
28
|
...getContainClasses(advanced?.cssClass)
|
|
32
29
|
});
|
|
@@ -91,7 +88,6 @@ const Dialog = (props)=>{
|
|
|
91
88
|
});
|
|
92
89
|
return /*#__PURE__*/ jsx("div", {
|
|
93
90
|
...attrs,
|
|
94
|
-
className: wrapperClasses,
|
|
95
91
|
style: wrapperDialogStyle,
|
|
96
92
|
children: (open || mode !== 'edit') && /*#__PURE__*/ jsx("dialog", {
|
|
97
93
|
ref: ref,
|
|
@@ -2,7 +2,8 @@ import { template, RenderIf, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
|
|
|
2
2
|
import { createStateOrContext, createAttr, createStyle, createClass, If } from '@gem-sdk/system';
|
|
3
3
|
import { getAttr, getAttrContainer, getAttrOverlay, getAttrClose } from './common/getAttr.js';
|
|
4
4
|
import { getWrapperStyle, getContainStyle, getBackdropStyle, getOverlayStyle, getDialogContentStyle, getButtonContentStyle, getSvgContentStyle, getBodyContentStyle } from './common/getStyle.js';
|
|
5
|
-
import {
|
|
5
|
+
import { getContainClasses, getBackdropClasses, getOverlayClasses, getDialogContentClasses, getHeadContentClasses, getButtonContentClasses, getBodyContentClasses } from './common/getClasses.js';
|
|
6
|
+
import { getSettingPreloadData } from '../../helpers.js';
|
|
6
7
|
|
|
7
8
|
const Dialog = (props)=>{
|
|
8
9
|
const { setting, children, builderProps, style, advanced, builderAttrs } = props;
|
|
@@ -32,9 +33,6 @@ const Dialog = (props)=>{
|
|
|
32
33
|
const wrapperDialogStyle = createStyle({
|
|
33
34
|
...getWrapperStyle(display)
|
|
34
35
|
});
|
|
35
|
-
const wrapperClasses = createClass({
|
|
36
|
-
...getWrapperClasses()
|
|
37
|
-
});
|
|
38
36
|
const containClasses = createClass({
|
|
39
37
|
...getContainClasses(advanced?.cssClass)
|
|
40
38
|
});
|
|
@@ -105,7 +103,7 @@ const Dialog = (props)=>{
|
|
|
105
103
|
${{
|
|
106
104
|
...attrs
|
|
107
105
|
}}
|
|
108
|
-
class="${
|
|
106
|
+
class="${getSettingPreloadData('gps-lazy')}"
|
|
109
107
|
style="${wrapperDialogStyle}"
|
|
110
108
|
data-gp-setting='${JSON.stringify(stateData)}'>
|
|
111
109
|
<dialog
|
|
@@ -117,16 +115,16 @@ const Dialog = (props)=>{
|
|
|
117
115
|
style="${containStyle}"
|
|
118
116
|
>
|
|
119
117
|
<div aria-label="Backdrop" class="${backdropClasses}" style="${backdropStyle}">
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
${If(!!overlayColor, template`
|
|
119
|
+
<div
|
|
120
|
+
${{
|
|
123
121
|
...overlayAttrs
|
|
124
122
|
}}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
class="${overlayClasses}"
|
|
124
|
+
style="${overlayStyle}"
|
|
125
|
+
aria-hidden=true
|
|
126
|
+
></div>
|
|
127
|
+
`)}
|
|
130
128
|
<span class="${headContentClasses}"></span>
|
|
131
129
|
<div
|
|
132
130
|
role="dialog"
|
|
@@ -6,12 +6,6 @@ function composeClasses(classList) {
|
|
|
6
6
|
return acc;
|
|
7
7
|
}, {});
|
|
8
8
|
}
|
|
9
|
-
const getWrapperClasses = ()=>{
|
|
10
|
-
const classList = 'gps-lazy';
|
|
11
|
-
return {
|
|
12
|
-
...composeClasses(classList)
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
9
|
const getContainClasses = (advancedCssClass)=>{
|
|
16
10
|
let classList = 'gp-dialog gp-bg-transparent';
|
|
17
11
|
if (advancedCssClass) classList += ` ${advancedCssClass}`;
|
|
@@ -76,4 +70,4 @@ const getBodyContentClasses = ()=>{
|
|
|
76
70
|
};
|
|
77
71
|
};
|
|
78
72
|
|
|
79
|
-
export { getBackdropClasses, getBodyContentClasses, getButtonContentClasses, getContainClasses, getDialogContentClasses, getHeadContentClasses, getOverlayClasses
|
|
73
|
+
export { getBackdropClasses, getBodyContentClasses, getButtonContentClasses, getContainClasses, getDialogContentClasses, getHeadContentClasses, getOverlayClasses };
|
|
@@ -45,7 +45,7 @@ const FormDropdownSettings = [
|
|
|
45
45
|
id: 'required',
|
|
46
46
|
type: 'toggle',
|
|
47
47
|
label: 'Placeholder',
|
|
48
|
-
default:
|
|
48
|
+
default: true
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
id: 'typo',
|
|
@@ -164,10 +164,10 @@ const FormDropdownSettings = [
|
|
|
164
164
|
height: 'Auto',
|
|
165
165
|
padding: {
|
|
166
166
|
type: 'medium',
|
|
167
|
-
top: '
|
|
168
|
-
bottom: '
|
|
169
|
-
left: '
|
|
170
|
-
right: '
|
|
167
|
+
top: '4px',
|
|
168
|
+
bottom: '4px',
|
|
169
|
+
left: '16px',
|
|
170
|
+
right: '16px'
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
}
|
|
@@ -4,33 +4,33 @@ const SettingUIV2 = [
|
|
|
4
4
|
en: 'Item management'
|
|
5
5
|
},
|
|
6
6
|
controls: [
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
},
|
|
7
|
+
// {
|
|
8
|
+
// type: 'combo',
|
|
9
|
+
// label: {
|
|
10
|
+
// en: 'Placeholder',
|
|
11
|
+
// },
|
|
12
|
+
// iconName: 'polaris-text-block',
|
|
13
|
+
// getValueFromSettingID: 'placeholder',
|
|
14
|
+
// isHideClear: true,
|
|
15
|
+
// controls: [
|
|
16
|
+
// {
|
|
17
|
+
// label: {
|
|
18
|
+
// en: 'Content',
|
|
19
|
+
// },
|
|
20
|
+
// setting: {
|
|
21
|
+
// id: 'placeholder',
|
|
22
|
+
// },
|
|
23
|
+
// },
|
|
24
|
+
// {
|
|
25
|
+
// setting: {
|
|
26
|
+
// id: 'placeholderColor',
|
|
27
|
+
// },
|
|
28
|
+
// label: {
|
|
29
|
+
// en: 'Color',
|
|
30
|
+
// },
|
|
31
|
+
// },
|
|
32
|
+
// ],
|
|
33
|
+
// },
|
|
34
34
|
{
|
|
35
35
|
label: {
|
|
36
36
|
en: 'Options'
|
|
@@ -38,14 +38,6 @@ const SettingUIV2 = [
|
|
|
38
38
|
setting: {
|
|
39
39
|
id: 'childItem'
|
|
40
40
|
}
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: {
|
|
44
|
-
en: 'Default option'
|
|
45
|
-
},
|
|
46
|
-
setting: {
|
|
47
|
-
id: 'defaultOption'
|
|
48
|
-
}
|
|
49
41
|
}
|
|
50
42
|
]
|
|
51
43
|
},
|
|
@@ -116,45 +108,42 @@ const SettingUIV2 = [
|
|
|
116
108
|
},
|
|
117
109
|
layout: 'horizontal'
|
|
118
110
|
},
|
|
119
|
-
{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
},
|
|
156
|
-
layout: 'horizontal'
|
|
157
|
-
},
|
|
111
|
+
// {
|
|
112
|
+
// id: 'height',
|
|
113
|
+
// label: {
|
|
114
|
+
// en: 'Height',
|
|
115
|
+
// },
|
|
116
|
+
// controlConfig: {
|
|
117
|
+
// id: 'height',
|
|
118
|
+
// type: 'dropdown:input',
|
|
119
|
+
// label: 'Height',
|
|
120
|
+
// inputType: 'number',
|
|
121
|
+
// units: ['px', '%'],
|
|
122
|
+
// hideUnit: false,
|
|
123
|
+
// linkWithSetting: {
|
|
124
|
+
// name: 'globalSize',
|
|
125
|
+
// field: 'height',
|
|
126
|
+
// },
|
|
127
|
+
// displayOptions: [
|
|
128
|
+
// {
|
|
129
|
+
// label: 'Fit content',
|
|
130
|
+
// value: 'Auto',
|
|
131
|
+
// showValue: true,
|
|
132
|
+
// },
|
|
133
|
+
// {
|
|
134
|
+
// label: 'Full',
|
|
135
|
+
// value: '100%',
|
|
136
|
+
// showValue: true,
|
|
137
|
+
// },
|
|
138
|
+
// {
|
|
139
|
+
// label: 'Default',
|
|
140
|
+
// value: 'default',
|
|
141
|
+
// showValue: true,
|
|
142
|
+
// },
|
|
143
|
+
// ],
|
|
144
|
+
// },
|
|
145
|
+
// layout: 'horizontal',
|
|
146
|
+
// },
|
|
158
147
|
{
|
|
159
148
|
label: {
|
|
160
149
|
en: 'Padding'
|
|
@@ -181,19 +170,19 @@ const SettingUIV2 = [
|
|
|
181
170
|
}
|
|
182
171
|
]
|
|
183
172
|
},
|
|
184
|
-
{
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
},
|
|
173
|
+
// {
|
|
174
|
+
// label: {
|
|
175
|
+
// en: 'Background',
|
|
176
|
+
// },
|
|
177
|
+
// controls: [
|
|
178
|
+
// {
|
|
179
|
+
// setting: {
|
|
180
|
+
// id: 'background',
|
|
181
|
+
// },
|
|
182
|
+
// layout: 'vertical',
|
|
183
|
+
// },
|
|
184
|
+
// ],
|
|
185
|
+
// },
|
|
197
186
|
// {
|
|
198
187
|
// label: {
|
|
199
188
|
// en: 'Shape',
|
|
@@ -68,7 +68,7 @@ const getLabelStyles = ({ type, styles, isHorizontal })=>{
|
|
|
68
68
|
...getStyleShadow({
|
|
69
69
|
styleAppliedFor: 'text-shadow',
|
|
70
70
|
value: styles?.typo?.custom?.textShadow,
|
|
71
|
-
isEnableShadow: styles?.typo?.custom?.
|
|
71
|
+
isEnableShadow: styles?.typo?.custom?.hasShadowText
|
|
72
72
|
}),
|
|
73
73
|
...makeStyle({
|
|
74
74
|
tt: styles?.transform,
|
|
@@ -341,8 +341,7 @@ const Settings = [
|
|
|
341
341
|
type: 'color-picker-v2',
|
|
342
342
|
label: 'Text Color',
|
|
343
343
|
default: {
|
|
344
|
-
normal: 'text-1'
|
|
345
|
-
hover: 'transparent'
|
|
344
|
+
normal: 'text-1'
|
|
346
345
|
},
|
|
347
346
|
state: {
|
|
348
347
|
hover: true,
|
|
@@ -386,7 +385,7 @@ const Settings = [
|
|
|
386
385
|
},
|
|
387
386
|
{
|
|
388
387
|
id: 'boxShadowBtn',
|
|
389
|
-
type: '
|
|
388
|
+
type: 'shadow-v2',
|
|
390
389
|
label: 'Shadow Style',
|
|
391
390
|
hideOnState: {
|
|
392
391
|
normal: true,
|
|
@@ -22,7 +22,7 @@ const getTextStyle = ({ setting, renderMaxHeight })=>{
|
|
|
22
22
|
...getStyleShadow({
|
|
23
23
|
value: setting?.typo?.custom?.textShadow,
|
|
24
24
|
styleAppliedFor: 'text-shadow',
|
|
25
|
-
isEnableShadow: setting?.typo?.custom?.
|
|
25
|
+
isEnableShadow: setting?.typo?.custom?.hasShadowText
|
|
26
26
|
}),
|
|
27
27
|
...makeStyleResponsive('ta', setting?.textAlign),
|
|
28
28
|
...getGlobalColorStyle(setting?.color),
|
|
@@ -59,7 +59,7 @@ const getTextStyles = (styles, isOutOfStock)=>{
|
|
|
59
59
|
...getStyleShadow({
|
|
60
60
|
value: typo?.custom?.textShadow,
|
|
61
61
|
styleAppliedFor: 'text-shadow',
|
|
62
|
-
isEnableShadow: typo?.custom?.
|
|
62
|
+
isEnableShadow: typo?.custom?.hasShadowText
|
|
63
63
|
})
|
|
64
64
|
};
|
|
65
65
|
};
|