@gem-sdk/components 2.0.0-dev.418 → 2.0.0-dev.419
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/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/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({
|
|
@@ -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({
|
|
@@ -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
|
};
|