@gem-sdk/components 2.0.0-dev.423 → 2.0.0-dev.425
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/banner/components/HeroBanner.liquid.js +2 -1
- package/dist/cjs/banner/components/common/getClasses.js +5 -2
- package/dist/cjs/banner/setting/setting.js +1 -3
- package/dist/cjs/banner/setting/uiV2.js +34 -29
- package/dist/cjs/icon-list/common/styles.js +16 -6
- package/dist/cjs/icon-list/components/IconList.js +3 -3
- package/dist/cjs/icon-list/components/IconList.liquid.js +4 -4
- package/dist/cjs/icon-list/components/IconListItem.js +2 -2
- package/dist/cjs/icon-list/components/IconListItem.liquid.js +2 -2
- package/dist/cjs/icon-list/setting/configs/ItemTemplate.js +26 -0
- package/dist/cjs/icon-list/setting/configs/settings.js +131 -5
- package/dist/cjs/icon-list/setting/configs/uiV2.js +175 -5
- package/dist/cjs/product/setting/product-title/configs/settings.js +4 -1
- package/dist/esm/banner/components/HeroBanner.liquid.js +2 -1
- package/dist/esm/banner/components/common/getClasses.js +5 -2
- package/dist/esm/banner/setting/setting.js +1 -3
- package/dist/esm/banner/setting/uiV2.js +34 -29
- package/dist/esm/icon-list/common/styles.js +17 -7
- package/dist/esm/icon-list/components/IconList.js +3 -3
- package/dist/esm/icon-list/components/IconList.liquid.js +4 -4
- package/dist/esm/icon-list/components/IconListItem.js +2 -2
- package/dist/esm/icon-list/components/IconListItem.liquid.js +2 -2
- package/dist/esm/icon-list/setting/configs/ItemTemplate.js +26 -0
- package/dist/esm/icon-list/setting/configs/settings.js +131 -5
- package/dist/esm/icon-list/setting/configs/uiV2.js +175 -5
- package/dist/esm/product/setting/product-title/configs/settings.js +4 -1
- package/dist/types/index.d.ts +9 -1
- package/package.json +1 -1
|
@@ -28,7 +28,8 @@ const HeroBanner = (props)=>{
|
|
|
28
28
|
contentPosition2Col: styles?.contentPosition2Col,
|
|
29
29
|
aspectRatio: setting?.aspectRatio,
|
|
30
30
|
target: urlData?.target ?? '_blank',
|
|
31
|
-
href: urlData?.href ?? ''
|
|
31
|
+
href: urlData?.href ?? '',
|
|
32
|
+
linkType: link?.type ?? ''
|
|
32
33
|
});
|
|
33
34
|
const hasLinkCover = !!link?.link;
|
|
34
35
|
const attrs = system.createAttr({
|
|
@@ -45,8 +45,11 @@ const getRowClasses = (styles, setting)=>{
|
|
|
45
45
|
const fitContentClass = common.getClassForContentByFitContent(sizeSetting, background);
|
|
46
46
|
const stretchContentClass = common.getClassForStretchContent(verticalAlign);
|
|
47
47
|
const layoutClass = common.getClassSpaceBetween(setting?.layout || {}, styles?.contentPosition1Col || {}, styles?.contentPosition2Col || {});
|
|
48
|
-
const classList = `gp-hero-banner-row gp-
|
|
49
|
-
return
|
|
48
|
+
const classList = `gp-hero-banner-row gp-transition-all gp-duration-300 group-hover/hero:gp-bg-[color:var(--hvr-bgc,_var(--bgc))] group-hover/hero:gp-opacity-[var(--hvr-op,_var(--op))] ${fitContentClass} ${stretchContentClass}`;
|
|
49
|
+
return {
|
|
50
|
+
...composeClasses(classList),
|
|
51
|
+
...layoutClass
|
|
52
|
+
};
|
|
50
53
|
};
|
|
51
54
|
const getAdaptiveClasses = ()=>{
|
|
52
55
|
const classList = `adaptive-hero-banner`;
|
|
@@ -164,6 +164,7 @@ const SettingsV2 = [
|
|
|
164
164
|
label: 'Speed',
|
|
165
165
|
useOnlyUnitInit: true,
|
|
166
166
|
hideUnit: true,
|
|
167
|
+
isNumber: true,
|
|
167
168
|
min: 0,
|
|
168
169
|
max: 1,
|
|
169
170
|
step: 0.1,
|
|
@@ -670,9 +671,6 @@ const SettingsV2 = [
|
|
|
670
671
|
id: 'overlayColor',
|
|
671
672
|
label: 'Color',
|
|
672
673
|
type: 'color-picker-v2',
|
|
673
|
-
default: {
|
|
674
|
-
normal: '#121212'
|
|
675
|
-
},
|
|
676
674
|
state: {
|
|
677
675
|
normal: true,
|
|
678
676
|
hover: true
|
|
@@ -104,36 +104,41 @@ const SettingUIV2 = [
|
|
|
104
104
|
id: 'background'
|
|
105
105
|
},
|
|
106
106
|
layout: 'vertical'
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
controls: [
|
|
116
|
-
{
|
|
117
|
-
setting: {
|
|
118
|
-
id: 'overlayColor',
|
|
119
|
-
state: 'normal'
|
|
120
|
-
},
|
|
121
|
-
label: {
|
|
122
|
-
en: 'Color'
|
|
123
|
-
}
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
moreSettings: {
|
|
110
|
+
type: 'collapse',
|
|
111
|
+
controls: [
|
|
112
|
+
{
|
|
113
|
+
label: {
|
|
114
|
+
en: 'Overlay'
|
|
124
115
|
},
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
116
|
+
type: 'combo',
|
|
117
|
+
comboType: 'color',
|
|
118
|
+
getValueFromSettingID: 'overlayColor.normal',
|
|
119
|
+
controls: [
|
|
120
|
+
{
|
|
121
|
+
setting: {
|
|
122
|
+
id: 'overlayColor',
|
|
123
|
+
state: 'normal'
|
|
124
|
+
},
|
|
125
|
+
label: {
|
|
126
|
+
en: 'Color'
|
|
127
|
+
}
|
|
129
128
|
},
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
{
|
|
130
|
+
setting: {
|
|
131
|
+
id: 'overlayOpacity',
|
|
132
|
+
state: 'normal'
|
|
133
|
+
},
|
|
134
|
+
label: {
|
|
135
|
+
en: 'Opacity'
|
|
136
|
+
}
|
|
132
137
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
}
|
|
137
142
|
},
|
|
138
143
|
{
|
|
139
144
|
label: {
|
|
@@ -247,7 +252,7 @@ const SettingUIV2 = [
|
|
|
247
252
|
{
|
|
248
253
|
type: 'combo',
|
|
249
254
|
fixedValue: 'Effect',
|
|
250
|
-
iconName: 'polaris-
|
|
255
|
+
iconName: 'polaris-check-clicked',
|
|
251
256
|
label: {
|
|
252
257
|
en: 'Hover'
|
|
253
258
|
},
|
|
@@ -311,7 +316,7 @@ const SettingUIV2 = [
|
|
|
311
316
|
label: {
|
|
312
317
|
en: 'Parallax scroll'
|
|
313
318
|
},
|
|
314
|
-
iconName: 'polaris-
|
|
319
|
+
iconName: 'polaris-parallax-effect',
|
|
315
320
|
getValueFromSettingID: 'speedParallax',
|
|
316
321
|
defaultValueWhenClear: 0,
|
|
317
322
|
controls: [
|
|
@@ -3,24 +3,34 @@
|
|
|
3
3
|
var core = require('@gem-sdk/core');
|
|
4
4
|
|
|
5
5
|
const getContainerStyles = (style, styles, extraData)=>{
|
|
6
|
-
const { align, background } = styles || {};
|
|
6
|
+
const { align, background, globalSize } = styles || {};
|
|
7
|
+
const composePadding = core.makeGlobalSize(globalSize);
|
|
7
8
|
return {
|
|
8
9
|
...style,
|
|
9
10
|
...extraData?.advancedClasses,
|
|
11
|
+
...composePadding.width,
|
|
12
|
+
...composePadding.padding,
|
|
10
13
|
...core.makeStyleResponsive('ta', align),
|
|
11
14
|
...core.getStyleBackgroundByDevice(background, {
|
|
12
15
|
liquid: extraData?.isLiquid
|
|
13
|
-
})
|
|
16
|
+
}),
|
|
17
|
+
...core.getGradientBgrStyleByDevice(background)
|
|
14
18
|
};
|
|
15
19
|
};
|
|
16
|
-
const getItemStyles = (
|
|
20
|
+
const getItemStyles = (parentStyles)=>{
|
|
21
|
+
const composePadding = core.makeGlobalSize(parentStyles?.itemPadding);
|
|
17
22
|
return {
|
|
18
|
-
...
|
|
23
|
+
...composePadding.padding,
|
|
24
|
+
...core.getResponsiveStyleShadowWithoutState(parentStyles?.itemBoxShadow, 'box-shadow', parentStyles?.itemBoxShadow),
|
|
25
|
+
...core.composeRadiusResponsive(parentStyles?.itemRounded),
|
|
26
|
+
...core.composeBorderResponsive(parentStyles?.itemBorder),
|
|
27
|
+
...core.getGlobalColorResponsiveStyle('bgc', parentStyles?.itemBackgroundColor),
|
|
28
|
+
...core.makeStyleResponsive('cg', parentStyles?.horizontalSpacing)
|
|
19
29
|
};
|
|
20
30
|
};
|
|
21
|
-
const getUlStyles = (
|
|
31
|
+
const getUlStyles = (parentStyles)=>{
|
|
22
32
|
return {
|
|
23
|
-
...core.makeStyleResponsive('
|
|
33
|
+
...core.makeStyleResponsive('gg', parentStyles?.verticalSpacing)
|
|
24
34
|
};
|
|
25
35
|
};
|
|
26
36
|
|
|
@@ -13,13 +13,13 @@ var classes = require('../common/classes.js');
|
|
|
13
13
|
|
|
14
14
|
const IconList = ({ style, setting, children, styles: styles$1, builderProps, advanced })=>{
|
|
15
15
|
const { preload } = setting || {};
|
|
16
|
-
const { background
|
|
16
|
+
const { background } = styles$1 ?? {};
|
|
17
17
|
const advancedStyle = core.composeAdvanceStyle(advanced);
|
|
18
18
|
const computedContainerStyles = system.createStyle(styles.getContainerStyles(style, styles$1, {
|
|
19
19
|
advancedClasses: advancedStyle
|
|
20
20
|
}));
|
|
21
21
|
const computedUlClasses = system.createClass(classes.getUlClasses(advanced?.cssClass));
|
|
22
|
-
const computedUlStyles = system.createStyle(styles.getUlStyles(
|
|
22
|
+
const computedUlStyles = system.createStyle(styles.getUlStyles(styles$1));
|
|
23
23
|
return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
24
24
|
children: [
|
|
25
25
|
system.If(preload, /*#__PURE__*/ jsxRuntime.jsxs(Head, {
|
|
@@ -56,7 +56,7 @@ const IconList = ({ style, setting, children, styles: styles$1, builderProps, ad
|
|
|
56
56
|
return /*#__PURE__*/ jsxRuntime.jsx(child.type, {
|
|
57
57
|
...child.props,
|
|
58
58
|
parentUid: builderProps?.uid,
|
|
59
|
-
|
|
59
|
+
parentStyles: styles$1,
|
|
60
60
|
dataIndex: key
|
|
61
61
|
});
|
|
62
62
|
}
|
|
@@ -10,14 +10,14 @@ var classes = require('../common/classes.js');
|
|
|
10
10
|
|
|
11
11
|
const IconList = ({ builderProps, style, setting, rawChildren, styles: styles$1, advanced })=>{
|
|
12
12
|
const { preload } = setting || {};
|
|
13
|
-
const { background
|
|
13
|
+
const { background } = styles$1 || {};
|
|
14
14
|
const advancedStyle = core.composeAdvanceStyle(advanced);
|
|
15
15
|
const computedContainerStyles = system.createStyle(styles.getContainerStyles(style, styles$1, {
|
|
16
16
|
advancedClasses: advancedStyle,
|
|
17
17
|
isLiquid: true
|
|
18
18
|
}));
|
|
19
19
|
const computedUlClasses = system.createClass(classes.getUlClasses(advanced?.cssClass));
|
|
20
|
-
const computedUlStyles = system.createStyle(styles.getUlStyles(
|
|
20
|
+
const computedUlStyles = system.createStyle(styles.getUlStyles(styles$1));
|
|
21
21
|
return core.template`
|
|
22
22
|
${system.If(!!preload, `${system.If(!!background?.desktop?.image?.src, `<link rel="preload" href="${background?.desktop?.image?.src}" as="image" />`)}
|
|
23
23
|
${system.If(!!background?.tablet?.image?.src, `<link rel="preload" href="${background?.tablet?.image?.src}" as="image" />`)}
|
|
@@ -37,9 +37,9 @@ const IconList = ({ builderProps, style, setting, rawChildren, styles: styles$1,
|
|
|
37
37
|
if (child) {
|
|
38
38
|
return core.RenderChildren({
|
|
39
39
|
...child,
|
|
40
|
-
horizontalSpacing: horizontalSpacing,
|
|
41
40
|
dataIndex: index,
|
|
42
|
-
parentUid: builderProps?.uid
|
|
41
|
+
parentUid: builderProps?.uid,
|
|
42
|
+
parentStyles: styles$1
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
}))}
|
|
@@ -11,7 +11,7 @@ var classes = require('../common/classes.js');
|
|
|
11
11
|
var attrs = require('../common/attrs.js');
|
|
12
12
|
var styles = require('../common/styles.js');
|
|
13
13
|
|
|
14
|
-
const IconListItem = ({ children,
|
|
14
|
+
const IconListItem = ({ children, parentUid, builderProps, dataIndex, parentStyles })=>{
|
|
15
15
|
if (core.isEmptyChildren(children)) {
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
@@ -19,7 +19,7 @@ const IconListItem = ({ children, horizontalSpacing, parentUid, builderProps, da
|
|
|
19
19
|
const computedItemAttrs = system.createAttr({
|
|
20
20
|
...attrs.getItemAttrs(builderProps?.uid, dataIndex)
|
|
21
21
|
});
|
|
22
|
-
const computedItemStyles = system.createStyle(styles.getItemStyles(
|
|
22
|
+
const computedItemStyles = system.createStyle(styles.getItemStyles(parentStyles));
|
|
23
23
|
return /*#__PURE__*/ jsxRuntime.jsx("li", {
|
|
24
24
|
className: computedItemClasses,
|
|
25
25
|
...computedItemAttrs,
|
|
@@ -8,7 +8,7 @@ var classes = require('../common/classes.js');
|
|
|
8
8
|
var attrs = require('../common/attrs.js');
|
|
9
9
|
var styles = require('../common/styles.js');
|
|
10
10
|
|
|
11
|
-
const IconListItem = ({ children,
|
|
11
|
+
const IconListItem = ({ children, dataIndex, parentUid, builderProps, parentStyles })=>{
|
|
12
12
|
if (core.isEmptyChildren(children)) {
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
@@ -16,7 +16,7 @@ const IconListItem = ({ children, horizontalSpacing, dataIndex, parentUid, build
|
|
|
16
16
|
const computedItemAttrs = system.createAttr({
|
|
17
17
|
...attrs.getItemAttrs(builderProps?.uid, dataIndex)
|
|
18
18
|
});
|
|
19
|
-
const computedItemStyles = system.createStyle(styles.getItemStyles(
|
|
19
|
+
const computedItemStyles = system.createStyle(styles.getItemStyles(parentStyles));
|
|
20
20
|
return core.template`
|
|
21
21
|
<li
|
|
22
22
|
${computedItemAttrs}
|
|
@@ -38,6 +38,32 @@ const itemChildrenTemplateImage = (src)=>({
|
|
|
38
38
|
}
|
|
39
39
|
]
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
tag: 'Col',
|
|
43
|
+
styles: {
|
|
44
|
+
fullWidth: true
|
|
45
|
+
},
|
|
46
|
+
advanced: {
|
|
47
|
+
w: {
|
|
48
|
+
desktop: '100%'
|
|
49
|
+
},
|
|
50
|
+
boxShadow: {
|
|
51
|
+
desktop: {
|
|
52
|
+
normal: {}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
childrens: [
|
|
57
|
+
{
|
|
58
|
+
tag: 'Text',
|
|
59
|
+
settings: {
|
|
60
|
+
text: 'Your custom text goes here',
|
|
61
|
+
htmlTag: 'div'
|
|
62
|
+
},
|
|
63
|
+
childrens: []
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
41
67
|
{
|
|
42
68
|
tag: 'Col',
|
|
43
69
|
styles: {
|
|
@@ -59,7 +59,7 @@ const IconListSettings = [
|
|
|
59
59
|
desktop: {
|
|
60
60
|
default: {
|
|
61
61
|
type: 'color',
|
|
62
|
-
color: '
|
|
62
|
+
color: 'bg-2',
|
|
63
63
|
image: {
|
|
64
64
|
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
65
65
|
width: 1200,
|
|
@@ -112,28 +112,154 @@ const IconListSettings = [
|
|
|
112
112
|
{
|
|
113
113
|
id: 'horizontalSpacing',
|
|
114
114
|
label: 'Horizontal Spacing',
|
|
115
|
-
type: 'input:
|
|
115
|
+
type: 'input:slider',
|
|
116
116
|
units: [
|
|
117
117
|
'px'
|
|
118
118
|
],
|
|
119
|
+
step: 1,
|
|
120
|
+
min: 0,
|
|
121
|
+
max: 40,
|
|
119
122
|
devices: {
|
|
120
123
|
desktop: {
|
|
121
|
-
default: '
|
|
124
|
+
default: '12px'
|
|
122
125
|
}
|
|
123
126
|
}
|
|
124
127
|
},
|
|
125
128
|
{
|
|
126
129
|
id: 'verticalSpacing',
|
|
127
130
|
label: 'Vertical Spacing',
|
|
128
|
-
type: 'input:
|
|
131
|
+
type: 'input:slider',
|
|
129
132
|
units: [
|
|
130
133
|
'px'
|
|
131
134
|
],
|
|
135
|
+
step: 1,
|
|
136
|
+
min: 0,
|
|
137
|
+
max: 40,
|
|
132
138
|
devices: {
|
|
133
139
|
desktop: {
|
|
134
|
-
default: '
|
|
140
|
+
default: '12px'
|
|
135
141
|
}
|
|
136
142
|
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: 'itemPadding',
|
|
146
|
+
type: 'size-setting',
|
|
147
|
+
devices: {
|
|
148
|
+
desktop: {
|
|
149
|
+
default: {
|
|
150
|
+
padding: {}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
hiddenSettings: [
|
|
155
|
+
'shape',
|
|
156
|
+
'gap',
|
|
157
|
+
'height',
|
|
158
|
+
'width'
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: 'itemBackgroundColor',
|
|
163
|
+
type: 'color-picker-v2',
|
|
164
|
+
devices: {
|
|
165
|
+
desktop: {
|
|
166
|
+
default: 'transparent'
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
compoDefaultValue: {
|
|
170
|
+
desktop: {
|
|
171
|
+
default: 'bg-2'
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
enableGradient: true
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
id: 'itemBorder',
|
|
178
|
+
type: 'border-v2',
|
|
179
|
+
devices: {
|
|
180
|
+
desktop: {
|
|
181
|
+
default: {}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
compoDefaultValue: {
|
|
185
|
+
desktop: {
|
|
186
|
+
default: {
|
|
187
|
+
border: 'solid',
|
|
188
|
+
color: '#121212',
|
|
189
|
+
width: '1px',
|
|
190
|
+
borderWidth: '1px'
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
id: 'itemRounded',
|
|
197
|
+
type: 'corner-v2',
|
|
198
|
+
devices: {
|
|
199
|
+
desktop: {}
|
|
200
|
+
},
|
|
201
|
+
compoDefaultValue: {
|
|
202
|
+
desktop: {
|
|
203
|
+
default: {
|
|
204
|
+
btrr: '8px',
|
|
205
|
+
bblr: '8px',
|
|
206
|
+
bbrr: '8px',
|
|
207
|
+
btlr: '8px',
|
|
208
|
+
radiusType: 'rounded'
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
id: 'itemBoxShadow',
|
|
215
|
+
type: 'shadow-v2',
|
|
216
|
+
devices: {
|
|
217
|
+
desktop: {
|
|
218
|
+
default: {}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
compoDefaultValue: {
|
|
222
|
+
desktop: {
|
|
223
|
+
default: {
|
|
224
|
+
type: 'shadow-1',
|
|
225
|
+
distance: '4px',
|
|
226
|
+
blur: '4px',
|
|
227
|
+
spread: '0px',
|
|
228
|
+
color: '#121212',
|
|
229
|
+
angle: 45
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: 'globalSize',
|
|
236
|
+
type: 'size-setting',
|
|
237
|
+
devices: {
|
|
238
|
+
desktop: {
|
|
239
|
+
default: {
|
|
240
|
+
width: '100%',
|
|
241
|
+
padding: {}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
mobile: {
|
|
245
|
+
default: {
|
|
246
|
+
width: '100%'
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
settingConfig: {
|
|
251
|
+
width: {
|
|
252
|
+
displayOptions: [
|
|
253
|
+
'full',
|
|
254
|
+
'auto'
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
hiddenSettings: [
|
|
259
|
+
'shape',
|
|
260
|
+
'gap',
|
|
261
|
+
'height'
|
|
262
|
+
]
|
|
137
263
|
}
|
|
138
264
|
]
|
|
139
265
|
}
|
|
@@ -8,7 +8,7 @@ const SettingUIV2 = [
|
|
|
8
8
|
controls: [
|
|
9
9
|
{
|
|
10
10
|
label: {
|
|
11
|
-
en: '
|
|
11
|
+
en: 'Order'
|
|
12
12
|
},
|
|
13
13
|
setting: {
|
|
14
14
|
id: 'childItem'
|
|
@@ -16,10 +16,85 @@ const SettingUIV2 = [
|
|
|
16
16
|
}
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
|
+
{
|
|
20
|
+
label: {
|
|
21
|
+
en: 'Item spacing'
|
|
22
|
+
},
|
|
23
|
+
controls: [
|
|
24
|
+
{
|
|
25
|
+
label: {
|
|
26
|
+
en: 'Gap'
|
|
27
|
+
},
|
|
28
|
+
setting: {
|
|
29
|
+
id: 'verticalSpacing'
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
19
34
|
{
|
|
20
35
|
label: {
|
|
21
36
|
en: 'Item style'
|
|
22
37
|
},
|
|
38
|
+
moreSettings: {
|
|
39
|
+
controls: [
|
|
40
|
+
{
|
|
41
|
+
label: {
|
|
42
|
+
en: 'Padding'
|
|
43
|
+
},
|
|
44
|
+
controlConfig: {
|
|
45
|
+
id: 'padding',
|
|
46
|
+
type: 'padding-v2',
|
|
47
|
+
linkWithSetting: {
|
|
48
|
+
name: 'itemPadding',
|
|
49
|
+
field: 'padding'
|
|
50
|
+
},
|
|
51
|
+
compoDefaultValue: {
|
|
52
|
+
desktop: {
|
|
53
|
+
default: {
|
|
54
|
+
type: 'medium',
|
|
55
|
+
top: '8px',
|
|
56
|
+
bottom: '8px',
|
|
57
|
+
left: '12px',
|
|
58
|
+
right: '12px'
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: {
|
|
66
|
+
en: 'Background'
|
|
67
|
+
},
|
|
68
|
+
setting: {
|
|
69
|
+
id: 'itemBackgroundColor'
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: {
|
|
74
|
+
en: 'Border'
|
|
75
|
+
},
|
|
76
|
+
setting: {
|
|
77
|
+
id: 'itemBorder'
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: {
|
|
82
|
+
en: 'Corner'
|
|
83
|
+
},
|
|
84
|
+
setting: {
|
|
85
|
+
id: 'itemRounded'
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
label: {
|
|
90
|
+
en: 'Shadow'
|
|
91
|
+
},
|
|
92
|
+
setting: {
|
|
93
|
+
id: 'itemBoxShadow'
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
23
98
|
controls: [
|
|
24
99
|
{
|
|
25
100
|
label: {
|
|
@@ -33,15 +108,66 @@ const SettingUIV2 = [
|
|
|
33
108
|
},
|
|
34
109
|
{
|
|
35
110
|
label: {
|
|
36
|
-
en: '
|
|
111
|
+
en: 'Size'
|
|
37
112
|
},
|
|
38
113
|
controls: [
|
|
39
114
|
{
|
|
115
|
+
id: 'Width',
|
|
40
116
|
label: {
|
|
41
|
-
en: '
|
|
117
|
+
en: 'Width'
|
|
42
118
|
},
|
|
43
|
-
|
|
44
|
-
id: '
|
|
119
|
+
controlConfig: {
|
|
120
|
+
id: 'width',
|
|
121
|
+
type: 'dropdown:input',
|
|
122
|
+
label: 'Width',
|
|
123
|
+
inputType: 'number',
|
|
124
|
+
units: [
|
|
125
|
+
'px',
|
|
126
|
+
'%'
|
|
127
|
+
],
|
|
128
|
+
hideUnit: false,
|
|
129
|
+
fallbackValue: 'Auto',
|
|
130
|
+
linkWithSetting: {
|
|
131
|
+
name: 'globalSize',
|
|
132
|
+
field: 'width'
|
|
133
|
+
},
|
|
134
|
+
displayOptions: [
|
|
135
|
+
{
|
|
136
|
+
label: 'Fit content',
|
|
137
|
+
value: 'Auto',
|
|
138
|
+
showValue: true
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
label: 'Full',
|
|
142
|
+
value: '100%',
|
|
143
|
+
showValue: true
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
layout: 'horizontal'
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
label: {
|
|
151
|
+
en: 'Padding'
|
|
152
|
+
},
|
|
153
|
+
controlConfig: {
|
|
154
|
+
id: 'padding',
|
|
155
|
+
type: 'padding-v2',
|
|
156
|
+
linkWithSetting: {
|
|
157
|
+
name: 'globalSize',
|
|
158
|
+
field: 'padding'
|
|
159
|
+
},
|
|
160
|
+
compoDefaultValue: {
|
|
161
|
+
desktop: {
|
|
162
|
+
default: {
|
|
163
|
+
type: 'medium',
|
|
164
|
+
top: '16px',
|
|
165
|
+
bottom: '12px',
|
|
166
|
+
left: '16px',
|
|
167
|
+
right: '16px'
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
45
171
|
}
|
|
46
172
|
}
|
|
47
173
|
]
|
|
@@ -113,6 +239,50 @@ const SettingUIV2 = [
|
|
|
113
239
|
setting: {
|
|
114
240
|
id: 'boxShadow',
|
|
115
241
|
state: 'normal'
|
|
242
|
+
},
|
|
243
|
+
options: {
|
|
244
|
+
updateFields: [
|
|
245
|
+
{
|
|
246
|
+
field: 'normal.enable',
|
|
247
|
+
settingId: 'hasBoxShadow',
|
|
248
|
+
state: 'normal'
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
controlChangeTrigger: {
|
|
253
|
+
settings: [
|
|
254
|
+
{
|
|
255
|
+
condition: `boxShadow.normal.enable === true`,
|
|
256
|
+
source: [
|
|
257
|
+
'boxShadow',
|
|
258
|
+
'hasBoxShadow'
|
|
259
|
+
],
|
|
260
|
+
action: {
|
|
261
|
+
controlId: 'hasBoxShadow',
|
|
262
|
+
groupType: 'advanced',
|
|
263
|
+
controlType: 'advanced',
|
|
264
|
+
state: 'normal',
|
|
265
|
+
newValue: true
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
condition: `boxShadow.normal.enable === false`,
|
|
270
|
+
source: [
|
|
271
|
+
'boxShadow',
|
|
272
|
+
'hasBoxShadow'
|
|
273
|
+
],
|
|
274
|
+
action: {
|
|
275
|
+
controlId: 'hasBoxShadow',
|
|
276
|
+
groupType: 'advanced',
|
|
277
|
+
controlType: 'advanced',
|
|
278
|
+
state: 'normal',
|
|
279
|
+
newValue: false
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
options: {
|
|
284
|
+
noRecordHistory: true
|
|
285
|
+
}
|
|
116
286
|
}
|
|
117
287
|
}
|
|
118
288
|
]
|