@gem-sdk/components 2.0.0-dev.620 → 2.0.0-dev.621
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/collection/components/collection-banner/components/CollectionBanner.liquid.js +3 -2
- package/dist/cjs/collection/components/collection-description/common/classes.js +1 -1
- package/dist/cjs/collection/setting/collection-banner/configs/settings.js +11 -8
- package/dist/cjs/collection/setting/collection-banner/configs/uiV2.js +1 -1
- package/dist/cjs/collection/setting/collection-description/configs/settings.js +2 -2
- package/dist/cjs/collection/setting/collection-toolbar/configs/settings.js +1 -1
- package/dist/esm/collection/components/collection-banner/components/CollectionBanner.liquid.js +3 -2
- package/dist/esm/collection/components/collection-description/common/classes.js +1 -1
- package/dist/esm/collection/setting/collection-banner/configs/settings.js +11 -8
- package/dist/esm/collection/setting/collection-banner/configs/uiV2.js +1 -1
- package/dist/esm/collection/setting/collection-description/configs/settings.js +2 -2
- package/dist/esm/collection/setting/collection-toolbar/configs/settings.js +1 -1
- package/package.json +2 -2
package/dist/cjs/collection/components/collection-banner/components/CollectionBanner.liquid.js
CHANGED
|
@@ -61,8 +61,9 @@ const CollectionBanner = ({ builderAttrs, builderProps, setting, style, children
|
|
|
61
61
|
role="banner"
|
|
62
62
|
class="${classContainerBackgoundImage}"
|
|
63
63
|
style="${styleContainerBackgoundImage}"
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
>
|
|
65
|
+
</div>
|
|
66
|
+
<div aria-label="Overlay" role="banner" class="${classOverlayBanner}" style="${styleOverlay}" ></div>
|
|
66
67
|
${core.RenderIf(!!link?.link, `<a
|
|
67
68
|
href="${link?.link}"
|
|
68
69
|
target="${link?.target}"
|
|
@@ -14,7 +14,7 @@ const getDescriptionClasses = ({ advanced })=>{
|
|
|
14
14
|
return composeClasses(core.cls('gp-collection-description', advanced?.cssClass));
|
|
15
15
|
};
|
|
16
16
|
const getShowMoreIconClasses = ()=>{
|
|
17
|
-
return composeClasses(core.cls('gp-show-more-icon gp-ml-1'));
|
|
17
|
+
return composeClasses(core.cls('gp-show-more-icon gp-ml-1 gp-flex gp-items-center'));
|
|
18
18
|
};
|
|
19
19
|
const getShowMoreTextClasses = ()=>{
|
|
20
20
|
return composeClasses(core.cls('gp-show-more-text'));
|
|
@@ -127,7 +127,7 @@ const CollectionBannerSettings = [
|
|
|
127
127
|
options: [
|
|
128
128
|
{
|
|
129
129
|
label: 'Start',
|
|
130
|
-
value: '
|
|
130
|
+
value: 'top',
|
|
131
131
|
tooltip: 'Align top',
|
|
132
132
|
iconName: 'gp-align-top'
|
|
133
133
|
},
|
|
@@ -139,12 +139,12 @@ const CollectionBannerSettings = [
|
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
label: 'End',
|
|
142
|
-
value: '
|
|
142
|
+
value: 'bottom',
|
|
143
143
|
tooltip: 'Align bottom',
|
|
144
144
|
iconName: 'gp-align-bottom'
|
|
145
145
|
}
|
|
146
146
|
],
|
|
147
|
-
default: '
|
|
147
|
+
default: 'center'
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
id: 'fullWidth',
|
|
@@ -164,16 +164,15 @@ const CollectionBannerSettings = [
|
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
id: 'width',
|
|
167
|
-
type: 'input:unit
|
|
167
|
+
type: 'input:unit',
|
|
168
168
|
label: 'Width',
|
|
169
169
|
min: 0,
|
|
170
170
|
units: [
|
|
171
|
-
'px'
|
|
172
|
-
'%'
|
|
171
|
+
'px'
|
|
173
172
|
],
|
|
174
173
|
devices: {
|
|
175
174
|
desktop: {
|
|
176
|
-
default: '
|
|
175
|
+
default: '1200px'
|
|
177
176
|
}
|
|
178
177
|
}
|
|
179
178
|
},
|
|
@@ -184,12 +183,14 @@ const CollectionBannerSettings = [
|
|
|
184
183
|
'px'
|
|
185
184
|
],
|
|
186
185
|
min: 0,
|
|
186
|
+
max: 120,
|
|
187
187
|
label: 'Spacing',
|
|
188
188
|
devices: {
|
|
189
189
|
desktop: {
|
|
190
190
|
default: '32px'
|
|
191
191
|
}
|
|
192
|
-
}
|
|
192
|
+
},
|
|
193
|
+
ignoreMax: true
|
|
193
194
|
}
|
|
194
195
|
]
|
|
195
196
|
},
|
|
@@ -202,6 +203,8 @@ const CollectionBannerSettings = [
|
|
|
202
203
|
id: 'background',
|
|
203
204
|
type: 'background-image',
|
|
204
205
|
ignoreReRender: true,
|
|
206
|
+
isBackground: true,
|
|
207
|
+
isHideClear: true,
|
|
205
208
|
devices: {
|
|
206
209
|
desktop: {
|
|
207
210
|
default: {
|
|
@@ -45,7 +45,7 @@ const CollectionDescriptionSettings = [
|
|
|
45
45
|
disableDecimal: true,
|
|
46
46
|
devices: {
|
|
47
47
|
desktop: {
|
|
48
|
-
default:
|
|
48
|
+
default: 3
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
},
|
|
@@ -116,7 +116,7 @@ const CollectionDescriptionSettings = [
|
|
|
116
116
|
],
|
|
117
117
|
devices: {
|
|
118
118
|
desktop: {
|
|
119
|
-
default: '
|
|
119
|
+
default: 'left'
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
},
|
package/dist/esm/collection/components/collection-banner/components/CollectionBanner.liquid.js
CHANGED
|
@@ -57,8 +57,9 @@ const CollectionBanner = ({ builderAttrs, builderProps, setting, style, children
|
|
|
57
57
|
role="banner"
|
|
58
58
|
class="${classContainerBackgoundImage}"
|
|
59
59
|
style="${styleContainerBackgoundImage}"
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
>
|
|
61
|
+
</div>
|
|
62
|
+
<div aria-label="Overlay" role="banner" class="${classOverlayBanner}" style="${styleOverlay}" ></div>
|
|
62
63
|
${RenderIf(!!link?.link, `<a
|
|
63
64
|
href="${link?.link}"
|
|
64
65
|
target="${link?.target}"
|
|
@@ -12,7 +12,7 @@ const getDescriptionClasses = ({ advanced })=>{
|
|
|
12
12
|
return composeClasses(cls('gp-collection-description', advanced?.cssClass));
|
|
13
13
|
};
|
|
14
14
|
const getShowMoreIconClasses = ()=>{
|
|
15
|
-
return composeClasses(cls('gp-show-more-icon gp-ml-1'));
|
|
15
|
+
return composeClasses(cls('gp-show-more-icon gp-ml-1 gp-flex gp-items-center'));
|
|
16
16
|
};
|
|
17
17
|
const getShowMoreTextClasses = ()=>{
|
|
18
18
|
return composeClasses(cls('gp-show-more-text'));
|
|
@@ -125,7 +125,7 @@ const CollectionBannerSettings = [
|
|
|
125
125
|
options: [
|
|
126
126
|
{
|
|
127
127
|
label: 'Start',
|
|
128
|
-
value: '
|
|
128
|
+
value: 'top',
|
|
129
129
|
tooltip: 'Align top',
|
|
130
130
|
iconName: 'gp-align-top'
|
|
131
131
|
},
|
|
@@ -137,12 +137,12 @@ const CollectionBannerSettings = [
|
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
label: 'End',
|
|
140
|
-
value: '
|
|
140
|
+
value: 'bottom',
|
|
141
141
|
tooltip: 'Align bottom',
|
|
142
142
|
iconName: 'gp-align-bottom'
|
|
143
143
|
}
|
|
144
144
|
],
|
|
145
|
-
default: '
|
|
145
|
+
default: 'center'
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
id: 'fullWidth',
|
|
@@ -162,16 +162,15 @@ const CollectionBannerSettings = [
|
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
id: 'width',
|
|
165
|
-
type: 'input:unit
|
|
165
|
+
type: 'input:unit',
|
|
166
166
|
label: 'Width',
|
|
167
167
|
min: 0,
|
|
168
168
|
units: [
|
|
169
|
-
'px'
|
|
170
|
-
'%'
|
|
169
|
+
'px'
|
|
171
170
|
],
|
|
172
171
|
devices: {
|
|
173
172
|
desktop: {
|
|
174
|
-
default: '
|
|
173
|
+
default: '1200px'
|
|
175
174
|
}
|
|
176
175
|
}
|
|
177
176
|
},
|
|
@@ -182,12 +181,14 @@ const CollectionBannerSettings = [
|
|
|
182
181
|
'px'
|
|
183
182
|
],
|
|
184
183
|
min: 0,
|
|
184
|
+
max: 120,
|
|
185
185
|
label: 'Spacing',
|
|
186
186
|
devices: {
|
|
187
187
|
desktop: {
|
|
188
188
|
default: '32px'
|
|
189
189
|
}
|
|
190
|
-
}
|
|
190
|
+
},
|
|
191
|
+
ignoreMax: true
|
|
191
192
|
}
|
|
192
193
|
]
|
|
193
194
|
},
|
|
@@ -200,6 +201,8 @@ const CollectionBannerSettings = [
|
|
|
200
201
|
id: 'background',
|
|
201
202
|
type: 'background-image',
|
|
202
203
|
ignoreReRender: true,
|
|
204
|
+
isBackground: true,
|
|
205
|
+
isHideClear: true,
|
|
203
206
|
devices: {
|
|
204
207
|
desktop: {
|
|
205
208
|
default: {
|
|
@@ -43,7 +43,7 @@ const CollectionDescriptionSettings = [
|
|
|
43
43
|
disableDecimal: true,
|
|
44
44
|
devices: {
|
|
45
45
|
desktop: {
|
|
46
|
-
default:
|
|
46
|
+
default: 3
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
},
|
|
@@ -114,7 +114,7 @@ const CollectionDescriptionSettings = [
|
|
|
114
114
|
],
|
|
115
115
|
devices: {
|
|
116
116
|
desktop: {
|
|
117
|
-
default: '
|
|
117
|
+
default: 'left'
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.621",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"scan-all-text": "node ./scripts/scan-all-text.js"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
28
|
+
"@gem-sdk/core": "2.0.0-dev.621",
|
|
29
29
|
"@gem-sdk/styles": "2.0.0-dev.571",
|
|
30
30
|
"@gem-sdk/system": "2.0.0-dev.504",
|
|
31
31
|
"@types/react-transition-group": "^4.4.5",
|