@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
|
@@ -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
|
@@ -700,6 +700,7 @@ type Setting$4 = {
|
|
|
700
700
|
link?: {
|
|
701
701
|
link?: string;
|
|
702
702
|
target?: string;
|
|
703
|
+
type?: string;
|
|
703
704
|
};
|
|
704
705
|
preload?: boolean;
|
|
705
706
|
order?: ObjectDevices$1<number>;
|
|
@@ -1901,6 +1902,12 @@ type IconListProps$1 = BasePropsWrap<{
|
|
|
1901
1902
|
align?: ObjectDevices$1<AlignProp>;
|
|
1902
1903
|
horizontalSpacing?: ObjectDevices$1<Property.Padding>;
|
|
1903
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>;
|
|
1904
1911
|
}> & {
|
|
1905
1912
|
children?: React.ReactNode;
|
|
1906
1913
|
rawChildren?: any[];
|
|
@@ -1911,6 +1918,7 @@ type IconListItemProps$1 = BasePropsWrap & React.ComponentPropsWithoutRef<'div'>
|
|
|
1911
1918
|
parentUid?: string;
|
|
1912
1919
|
dataIndex?: number;
|
|
1913
1920
|
index?: number;
|
|
1921
|
+
parentStyles?: IconListProps$1['styles'];
|
|
1914
1922
|
};
|
|
1915
1923
|
|
|
1916
1924
|
declare const IconList$1: React$1.FC<IconListProps$1>;
|
|
@@ -6228,7 +6236,7 @@ declare const Heading: ({ styles, builderAttrs, style, setting, advanced, builde
|
|
|
6228
6236
|
|
|
6229
6237
|
declare const Icon: ({ style, builderAttrs, builderProps, setting, styles, advanced }: IconProps) => string;
|
|
6230
6238
|
|
|
6231
|
-
declare const IconListItem: ({ children,
|
|
6239
|
+
declare const IconListItem: ({ children, dataIndex, parentUid, builderProps, parentStyles, }: IconListItemProps$1) => string | null;
|
|
6232
6240
|
|
|
6233
6241
|
declare const IconList: ({ builderProps, style, setting, rawChildren, styles, advanced, }: IconListProps$1) => string;
|
|
6234
6242
|
|