@gem-sdk/components 2.0.0-dev.424 → 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/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/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 +8 -1
- package/package.json +1 -1
|
@@ -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
|
]
|
|
@@ -1,24 +1,34 @@
|
|
|
1
|
-
import { makeStyleResponsive, getStyleBackgroundByDevice } from '@gem-sdk/core';
|
|
1
|
+
import { makeGlobalSize, makeStyleResponsive, getStyleBackgroundByDevice, getGradientBgrStyleByDevice, getResponsiveStyleShadowWithoutState, composeRadiusResponsive, composeBorderResponsive, getGlobalColorResponsiveStyle } from '@gem-sdk/core';
|
|
2
2
|
|
|
3
3
|
const getContainerStyles = (style, styles, extraData)=>{
|
|
4
|
-
const { align, background } = styles || {};
|
|
4
|
+
const { align, background, globalSize } = styles || {};
|
|
5
|
+
const composePadding = makeGlobalSize(globalSize);
|
|
5
6
|
return {
|
|
6
7
|
...style,
|
|
7
8
|
...extraData?.advancedClasses,
|
|
9
|
+
...composePadding.width,
|
|
10
|
+
...composePadding.padding,
|
|
8
11
|
...makeStyleResponsive('ta', align),
|
|
9
12
|
...getStyleBackgroundByDevice(background, {
|
|
10
13
|
liquid: extraData?.isLiquid
|
|
11
|
-
})
|
|
14
|
+
}),
|
|
15
|
+
...getGradientBgrStyleByDevice(background)
|
|
12
16
|
};
|
|
13
17
|
};
|
|
14
|
-
const getItemStyles = (
|
|
18
|
+
const getItemStyles = (parentStyles)=>{
|
|
19
|
+
const composePadding = makeGlobalSize(parentStyles?.itemPadding);
|
|
15
20
|
return {
|
|
16
|
-
...
|
|
21
|
+
...composePadding.padding,
|
|
22
|
+
...getResponsiveStyleShadowWithoutState(parentStyles?.itemBoxShadow, 'box-shadow', parentStyles?.itemBoxShadow),
|
|
23
|
+
...composeRadiusResponsive(parentStyles?.itemRounded),
|
|
24
|
+
...composeBorderResponsive(parentStyles?.itemBorder),
|
|
25
|
+
...getGlobalColorResponsiveStyle('bgc', parentStyles?.itemBackgroundColor),
|
|
26
|
+
...makeStyleResponsive('cg', parentStyles?.horizontalSpacing)
|
|
17
27
|
};
|
|
18
28
|
};
|
|
19
|
-
const getUlStyles = (
|
|
29
|
+
const getUlStyles = (parentStyles)=>{
|
|
20
30
|
return {
|
|
21
|
-
...makeStyleResponsive('
|
|
31
|
+
...makeStyleResponsive('gg', parentStyles?.verticalSpacing)
|
|
22
32
|
};
|
|
23
33
|
};
|
|
24
34
|
|
|
@@ -9,13 +9,13 @@ import { getUlClasses } from '../common/classes.js';
|
|
|
9
9
|
|
|
10
10
|
const IconList = ({ style, setting, children, styles, builderProps, advanced })=>{
|
|
11
11
|
const { preload } = setting || {};
|
|
12
|
-
const { background
|
|
12
|
+
const { background } = styles ?? {};
|
|
13
13
|
const advancedStyle = composeAdvanceStyle(advanced);
|
|
14
14
|
const computedContainerStyles = createStyle(getContainerStyles(style, styles, {
|
|
15
15
|
advancedClasses: advancedStyle
|
|
16
16
|
}));
|
|
17
17
|
const computedUlClasses = createClass(getUlClasses(advanced?.cssClass));
|
|
18
|
-
const computedUlStyles = createStyle(getUlStyles(
|
|
18
|
+
const computedUlStyles = createStyle(getUlStyles(styles));
|
|
19
19
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
20
20
|
children: [
|
|
21
21
|
If(preload, /*#__PURE__*/ jsxs(Head, {
|
|
@@ -52,7 +52,7 @@ const IconList = ({ style, setting, children, styles, builderProps, advanced })=
|
|
|
52
52
|
return /*#__PURE__*/ jsx(child.type, {
|
|
53
53
|
...child.props,
|
|
54
54
|
parentUid: builderProps?.uid,
|
|
55
|
-
|
|
55
|
+
parentStyles: styles,
|
|
56
56
|
dataIndex: key
|
|
57
57
|
});
|
|
58
58
|
}
|
|
@@ -6,14 +6,14 @@ import { getUlClasses } from '../common/classes.js';
|
|
|
6
6
|
|
|
7
7
|
const IconList = ({ builderProps, style, setting, rawChildren, styles, advanced })=>{
|
|
8
8
|
const { preload } = setting || {};
|
|
9
|
-
const { background
|
|
9
|
+
const { background } = styles || {};
|
|
10
10
|
const advancedStyle = composeAdvanceStyle(advanced);
|
|
11
11
|
const computedContainerStyles = createStyle(getContainerStyles(style, styles, {
|
|
12
12
|
advancedClasses: advancedStyle,
|
|
13
13
|
isLiquid: true
|
|
14
14
|
}));
|
|
15
15
|
const computedUlClasses = createClass(getUlClasses(advanced?.cssClass));
|
|
16
|
-
const computedUlStyles = createStyle(getUlStyles(
|
|
16
|
+
const computedUlStyles = createStyle(getUlStyles(styles));
|
|
17
17
|
return template`
|
|
18
18
|
${If(!!preload, `${If(!!background?.desktop?.image?.src, `<link rel="preload" href="${background?.desktop?.image?.src}" as="image" />`)}
|
|
19
19
|
${If(!!background?.tablet?.image?.src, `<link rel="preload" href="${background?.tablet?.image?.src}" as="image" />`)}
|
|
@@ -33,9 +33,9 @@ const IconList = ({ builderProps, style, setting, rawChildren, styles, advanced
|
|
|
33
33
|
if (child) {
|
|
34
34
|
return RenderChildren({
|
|
35
35
|
...child,
|
|
36
|
-
horizontalSpacing: horizontalSpacing,
|
|
37
36
|
dataIndex: index,
|
|
38
|
-
parentUid: builderProps?.uid
|
|
37
|
+
parentUid: builderProps?.uid,
|
|
38
|
+
parentStyles: styles
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
}))}
|
|
@@ -7,7 +7,7 @@ import { getItemClasses } from '../common/classes.js';
|
|
|
7
7
|
import { getItemAttrs } from '../common/attrs.js';
|
|
8
8
|
import { getItemStyles } from '../common/styles.js';
|
|
9
9
|
|
|
10
|
-
const IconListItem = ({ children,
|
|
10
|
+
const IconListItem = ({ children, parentUid, builderProps, dataIndex, parentStyles })=>{
|
|
11
11
|
if (isEmptyChildren(children)) {
|
|
12
12
|
return null;
|
|
13
13
|
}
|
|
@@ -15,7 +15,7 @@ const IconListItem = ({ children, horizontalSpacing, parentUid, builderProps, da
|
|
|
15
15
|
const computedItemAttrs = createAttr({
|
|
16
16
|
...getItemAttrs(builderProps?.uid, dataIndex)
|
|
17
17
|
});
|
|
18
|
-
const computedItemStyles = createStyle(getItemStyles(
|
|
18
|
+
const computedItemStyles = createStyle(getItemStyles(parentStyles));
|
|
19
19
|
return /*#__PURE__*/ jsx("li", {
|
|
20
20
|
className: computedItemClasses,
|
|
21
21
|
...computedItemAttrs,
|
|
@@ -4,7 +4,7 @@ import { getItemClasses } from '../common/classes.js';
|
|
|
4
4
|
import { getItemAttrs } from '../common/attrs.js';
|
|
5
5
|
import { getItemStyles } from '../common/styles.js';
|
|
6
6
|
|
|
7
|
-
const IconListItem = ({ children,
|
|
7
|
+
const IconListItem = ({ children, dataIndex, parentUid, builderProps, parentStyles })=>{
|
|
8
8
|
if (isEmptyChildren(children)) {
|
|
9
9
|
return null;
|
|
10
10
|
}
|
|
@@ -12,7 +12,7 @@ const IconListItem = ({ children, horizontalSpacing, dataIndex, parentUid, build
|
|
|
12
12
|
const computedItemAttrs = createAttr({
|
|
13
13
|
...getItemAttrs(builderProps?.uid, dataIndex)
|
|
14
14
|
});
|
|
15
|
-
const computedItemStyles = createStyle(getItemStyles(
|
|
15
|
+
const computedItemStyles = createStyle(getItemStyles(parentStyles));
|
|
16
16
|
return template`
|
|
17
17
|
<li
|
|
18
18
|
${computedItemAttrs}
|
|
@@ -36,6 +36,32 @@ const itemChildrenTemplateImage = (src)=>({
|
|
|
36
36
|
}
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
|
+
{
|
|
40
|
+
tag: 'Col',
|
|
41
|
+
styles: {
|
|
42
|
+
fullWidth: true
|
|
43
|
+
},
|
|
44
|
+
advanced: {
|
|
45
|
+
w: {
|
|
46
|
+
desktop: '100%'
|
|
47
|
+
},
|
|
48
|
+
boxShadow: {
|
|
49
|
+
desktop: {
|
|
50
|
+
normal: {}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
childrens: [
|
|
55
|
+
{
|
|
56
|
+
tag: 'Text',
|
|
57
|
+
settings: {
|
|
58
|
+
text: 'Your custom text goes here',
|
|
59
|
+
htmlTag: 'div'
|
|
60
|
+
},
|
|
61
|
+
childrens: []
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
39
65
|
{
|
|
40
66
|
tag: 'Col',
|
|
41
67
|
styles: {
|
|
@@ -57,7 +57,7 @@ const IconListSettings = [
|
|
|
57
57
|
desktop: {
|
|
58
58
|
default: {
|
|
59
59
|
type: 'color',
|
|
60
|
-
color: '
|
|
60
|
+
color: 'bg-2',
|
|
61
61
|
image: {
|
|
62
62
|
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
63
63
|
width: 1200,
|
|
@@ -110,28 +110,154 @@ const IconListSettings = [
|
|
|
110
110
|
{
|
|
111
111
|
id: 'horizontalSpacing',
|
|
112
112
|
label: 'Horizontal Spacing',
|
|
113
|
-
type: 'input:
|
|
113
|
+
type: 'input:slider',
|
|
114
114
|
units: [
|
|
115
115
|
'px'
|
|
116
116
|
],
|
|
117
|
+
step: 1,
|
|
118
|
+
min: 0,
|
|
119
|
+
max: 40,
|
|
117
120
|
devices: {
|
|
118
121
|
desktop: {
|
|
119
|
-
default: '
|
|
122
|
+
default: '12px'
|
|
120
123
|
}
|
|
121
124
|
}
|
|
122
125
|
},
|
|
123
126
|
{
|
|
124
127
|
id: 'verticalSpacing',
|
|
125
128
|
label: 'Vertical Spacing',
|
|
126
|
-
type: 'input:
|
|
129
|
+
type: 'input:slider',
|
|
127
130
|
units: [
|
|
128
131
|
'px'
|
|
129
132
|
],
|
|
133
|
+
step: 1,
|
|
134
|
+
min: 0,
|
|
135
|
+
max: 40,
|
|
130
136
|
devices: {
|
|
131
137
|
desktop: {
|
|
132
|
-
default: '
|
|
138
|
+
default: '12px'
|
|
133
139
|
}
|
|
134
140
|
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: 'itemPadding',
|
|
144
|
+
type: 'size-setting',
|
|
145
|
+
devices: {
|
|
146
|
+
desktop: {
|
|
147
|
+
default: {
|
|
148
|
+
padding: {}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
hiddenSettings: [
|
|
153
|
+
'shape',
|
|
154
|
+
'gap',
|
|
155
|
+
'height',
|
|
156
|
+
'width'
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: 'itemBackgroundColor',
|
|
161
|
+
type: 'color-picker-v2',
|
|
162
|
+
devices: {
|
|
163
|
+
desktop: {
|
|
164
|
+
default: 'transparent'
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
compoDefaultValue: {
|
|
168
|
+
desktop: {
|
|
169
|
+
default: 'bg-2'
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
enableGradient: true
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
id: 'itemBorder',
|
|
176
|
+
type: 'border-v2',
|
|
177
|
+
devices: {
|
|
178
|
+
desktop: {
|
|
179
|
+
default: {}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
compoDefaultValue: {
|
|
183
|
+
desktop: {
|
|
184
|
+
default: {
|
|
185
|
+
border: 'solid',
|
|
186
|
+
color: '#121212',
|
|
187
|
+
width: '1px',
|
|
188
|
+
borderWidth: '1px'
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: 'itemRounded',
|
|
195
|
+
type: 'corner-v2',
|
|
196
|
+
devices: {
|
|
197
|
+
desktop: {}
|
|
198
|
+
},
|
|
199
|
+
compoDefaultValue: {
|
|
200
|
+
desktop: {
|
|
201
|
+
default: {
|
|
202
|
+
btrr: '8px',
|
|
203
|
+
bblr: '8px',
|
|
204
|
+
bbrr: '8px',
|
|
205
|
+
btlr: '8px',
|
|
206
|
+
radiusType: 'rounded'
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
id: 'itemBoxShadow',
|
|
213
|
+
type: 'shadow-v2',
|
|
214
|
+
devices: {
|
|
215
|
+
desktop: {
|
|
216
|
+
default: {}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
compoDefaultValue: {
|
|
220
|
+
desktop: {
|
|
221
|
+
default: {
|
|
222
|
+
type: 'shadow-1',
|
|
223
|
+
distance: '4px',
|
|
224
|
+
blur: '4px',
|
|
225
|
+
spread: '0px',
|
|
226
|
+
color: '#121212',
|
|
227
|
+
angle: 45
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
id: 'globalSize',
|
|
234
|
+
type: 'size-setting',
|
|
235
|
+
devices: {
|
|
236
|
+
desktop: {
|
|
237
|
+
default: {
|
|
238
|
+
width: '100%',
|
|
239
|
+
padding: {}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
mobile: {
|
|
243
|
+
default: {
|
|
244
|
+
width: '100%'
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
settingConfig: {
|
|
249
|
+
width: {
|
|
250
|
+
displayOptions: [
|
|
251
|
+
'full',
|
|
252
|
+
'auto'
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
hiddenSettings: [
|
|
257
|
+
'shape',
|
|
258
|
+
'gap',
|
|
259
|
+
'height'
|
|
260
|
+
]
|
|
135
261
|
}
|
|
136
262
|
]
|
|
137
263
|
}
|
|
@@ -6,7 +6,7 @@ const SettingUIV2 = [
|
|
|
6
6
|
controls: [
|
|
7
7
|
{
|
|
8
8
|
label: {
|
|
9
|
-
en: '
|
|
9
|
+
en: 'Order'
|
|
10
10
|
},
|
|
11
11
|
setting: {
|
|
12
12
|
id: 'childItem'
|
|
@@ -14,10 +14,85 @@ const SettingUIV2 = [
|
|
|
14
14
|
}
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
|
+
{
|
|
18
|
+
label: {
|
|
19
|
+
en: 'Item spacing'
|
|
20
|
+
},
|
|
21
|
+
controls: [
|
|
22
|
+
{
|
|
23
|
+
label: {
|
|
24
|
+
en: 'Gap'
|
|
25
|
+
},
|
|
26
|
+
setting: {
|
|
27
|
+
id: 'verticalSpacing'
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
17
32
|
{
|
|
18
33
|
label: {
|
|
19
34
|
en: 'Item style'
|
|
20
35
|
},
|
|
36
|
+
moreSettings: {
|
|
37
|
+
controls: [
|
|
38
|
+
{
|
|
39
|
+
label: {
|
|
40
|
+
en: 'Padding'
|
|
41
|
+
},
|
|
42
|
+
controlConfig: {
|
|
43
|
+
id: 'padding',
|
|
44
|
+
type: 'padding-v2',
|
|
45
|
+
linkWithSetting: {
|
|
46
|
+
name: 'itemPadding',
|
|
47
|
+
field: 'padding'
|
|
48
|
+
},
|
|
49
|
+
compoDefaultValue: {
|
|
50
|
+
desktop: {
|
|
51
|
+
default: {
|
|
52
|
+
type: 'medium',
|
|
53
|
+
top: '8px',
|
|
54
|
+
bottom: '8px',
|
|
55
|
+
left: '12px',
|
|
56
|
+
right: '12px'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: {
|
|
64
|
+
en: 'Background'
|
|
65
|
+
},
|
|
66
|
+
setting: {
|
|
67
|
+
id: 'itemBackgroundColor'
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: {
|
|
72
|
+
en: 'Border'
|
|
73
|
+
},
|
|
74
|
+
setting: {
|
|
75
|
+
id: 'itemBorder'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: {
|
|
80
|
+
en: 'Corner'
|
|
81
|
+
},
|
|
82
|
+
setting: {
|
|
83
|
+
id: 'itemRounded'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: {
|
|
88
|
+
en: 'Shadow'
|
|
89
|
+
},
|
|
90
|
+
setting: {
|
|
91
|
+
id: 'itemBoxShadow'
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
21
96
|
controls: [
|
|
22
97
|
{
|
|
23
98
|
label: {
|
|
@@ -31,15 +106,66 @@ const SettingUIV2 = [
|
|
|
31
106
|
},
|
|
32
107
|
{
|
|
33
108
|
label: {
|
|
34
|
-
en: '
|
|
109
|
+
en: 'Size'
|
|
35
110
|
},
|
|
36
111
|
controls: [
|
|
37
112
|
{
|
|
113
|
+
id: 'Width',
|
|
38
114
|
label: {
|
|
39
|
-
en: '
|
|
115
|
+
en: 'Width'
|
|
40
116
|
},
|
|
41
|
-
|
|
42
|
-
id: '
|
|
117
|
+
controlConfig: {
|
|
118
|
+
id: 'width',
|
|
119
|
+
type: 'dropdown:input',
|
|
120
|
+
label: 'Width',
|
|
121
|
+
inputType: 'number',
|
|
122
|
+
units: [
|
|
123
|
+
'px',
|
|
124
|
+
'%'
|
|
125
|
+
],
|
|
126
|
+
hideUnit: false,
|
|
127
|
+
fallbackValue: 'Auto',
|
|
128
|
+
linkWithSetting: {
|
|
129
|
+
name: 'globalSize',
|
|
130
|
+
field: 'width'
|
|
131
|
+
},
|
|
132
|
+
displayOptions: [
|
|
133
|
+
{
|
|
134
|
+
label: 'Fit content',
|
|
135
|
+
value: 'Auto',
|
|
136
|
+
showValue: true
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
label: 'Full',
|
|
140
|
+
value: '100%',
|
|
141
|
+
showValue: true
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
layout: 'horizontal'
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: {
|
|
149
|
+
en: 'Padding'
|
|
150
|
+
},
|
|
151
|
+
controlConfig: {
|
|
152
|
+
id: 'padding',
|
|
153
|
+
type: 'padding-v2',
|
|
154
|
+
linkWithSetting: {
|
|
155
|
+
name: 'globalSize',
|
|
156
|
+
field: 'padding'
|
|
157
|
+
},
|
|
158
|
+
compoDefaultValue: {
|
|
159
|
+
desktop: {
|
|
160
|
+
default: {
|
|
161
|
+
type: 'medium',
|
|
162
|
+
top: '16px',
|
|
163
|
+
bottom: '12px',
|
|
164
|
+
left: '16px',
|
|
165
|
+
right: '16px'
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
43
169
|
}
|
|
44
170
|
}
|
|
45
171
|
]
|
|
@@ -111,6 +237,50 @@ const SettingUIV2 = [
|
|
|
111
237
|
setting: {
|
|
112
238
|
id: 'boxShadow',
|
|
113
239
|
state: 'normal'
|
|
240
|
+
},
|
|
241
|
+
options: {
|
|
242
|
+
updateFields: [
|
|
243
|
+
{
|
|
244
|
+
field: 'normal.enable',
|
|
245
|
+
settingId: 'hasBoxShadow',
|
|
246
|
+
state: 'normal'
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
controlChangeTrigger: {
|
|
251
|
+
settings: [
|
|
252
|
+
{
|
|
253
|
+
condition: `boxShadow.normal.enable === true`,
|
|
254
|
+
source: [
|
|
255
|
+
'boxShadow',
|
|
256
|
+
'hasBoxShadow'
|
|
257
|
+
],
|
|
258
|
+
action: {
|
|
259
|
+
controlId: 'hasBoxShadow',
|
|
260
|
+
groupType: 'advanced',
|
|
261
|
+
controlType: 'advanced',
|
|
262
|
+
state: 'normal',
|
|
263
|
+
newValue: true
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
condition: `boxShadow.normal.enable === false`,
|
|
268
|
+
source: [
|
|
269
|
+
'boxShadow',
|
|
270
|
+
'hasBoxShadow'
|
|
271
|
+
],
|
|
272
|
+
action: {
|
|
273
|
+
controlId: 'hasBoxShadow',
|
|
274
|
+
groupType: 'advanced',
|
|
275
|
+
controlType: 'advanced',
|
|
276
|
+
state: 'normal',
|
|
277
|
+
newValue: false
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
],
|
|
281
|
+
options: {
|
|
282
|
+
noRecordHistory: true
|
|
283
|
+
}
|
|
114
284
|
}
|
|
115
285
|
}
|
|
116
286
|
]
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1902,6 +1902,12 @@ type IconListProps$1 = BasePropsWrap<{
|
|
|
1902
1902
|
align?: ObjectDevices$1<AlignProp>;
|
|
1903
1903
|
horizontalSpacing?: ObjectDevices$1<Property.Padding>;
|
|
1904
1904
|
verticalSpacing?: ObjectDevices$1<Property.Padding>;
|
|
1905
|
+
itemPadding?: ObjectDevices$1<SizeSettingGlobal>;
|
|
1906
|
+
itemBackgroundColor?: ObjectDevices$1<ColorValueType$1>;
|
|
1907
|
+
itemBorder?: ObjectDevices$1<Border>;
|
|
1908
|
+
itemBoxShadow?: ObjectDevices$1<ShadowProps$1>;
|
|
1909
|
+
itemRounded?: ObjectDevices$1<CornerRadius>;
|
|
1910
|
+
globalSize?: ObjectDevices$1<SizeSettingGlobal>;
|
|
1905
1911
|
}> & {
|
|
1906
1912
|
children?: React.ReactNode;
|
|
1907
1913
|
rawChildren?: any[];
|
|
@@ -1912,6 +1918,7 @@ type IconListItemProps$1 = BasePropsWrap & React.ComponentPropsWithoutRef<'div'>
|
|
|
1912
1918
|
parentUid?: string;
|
|
1913
1919
|
dataIndex?: number;
|
|
1914
1920
|
index?: number;
|
|
1921
|
+
parentStyles?: IconListProps$1['styles'];
|
|
1915
1922
|
};
|
|
1916
1923
|
|
|
1917
1924
|
declare const IconList$1: React$1.FC<IconListProps$1>;
|
|
@@ -6229,7 +6236,7 @@ declare const Heading: ({ styles, builderAttrs, style, setting, advanced, builde
|
|
|
6229
6236
|
|
|
6230
6237
|
declare const Icon: ({ style, builderAttrs, builderProps, setting, styles, advanced }: IconProps) => string;
|
|
6231
6238
|
|
|
6232
|
-
declare const IconListItem: ({ children,
|
|
6239
|
+
declare const IconListItem: ({ children, dataIndex, parentUid, builderProps, parentStyles, }: IconListItemProps$1) => string | null;
|
|
6233
6240
|
|
|
6234
6241
|
declare const IconList: ({ builderProps, style, setting, rawChildren, styles, advanced, }: IconListProps$1) => string;
|
|
6235
6242
|
|