@gem-sdk/components 2.0.0-dev.357 → 2.0.0-dev.359
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/HeroBannerItem.js +15 -13
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +3 -2
- package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +1 -1
- package/dist/cjs/product/setting/product-quantity/configs/settings.js +1 -0
- package/dist/cjs/product/setting/product-quantity/configs/uiV2.js +13 -6
- package/dist/esm/banner/components/HeroBannerItem.js +15 -13
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +3 -2
- package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +1 -1
- package/dist/esm/product/setting/product-quantity/configs/settings.js +1 -0
- package/dist/esm/product/setting/product-quantity/configs/uiV2.js +13 -6
- package/package.json +1 -1
|
@@ -126,24 +126,26 @@ const HeroBannerItem = (props)=>{
|
|
|
126
126
|
className: containerClasses,
|
|
127
127
|
style: containerStyle,
|
|
128
128
|
children: [
|
|
129
|
-
/*#__PURE__*/ jsxRuntime.
|
|
129
|
+
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
130
130
|
ref: elementRef,
|
|
131
131
|
"aria-label": "Background Image",
|
|
132
132
|
role: "banner",
|
|
133
133
|
className: containBackgroundClasses,
|
|
134
134
|
style: containBackground,
|
|
135
|
-
children:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
135
|
+
children: [
|
|
136
|
+
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
137
|
+
ref: bgRef,
|
|
138
|
+
className: backgroundClasses,
|
|
139
|
+
style: backgroundStyle,
|
|
140
|
+
children: embed
|
|
141
|
+
}),
|
|
142
|
+
!!overlayColor && /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
143
|
+
"aria-label": "Overlay",
|
|
144
|
+
role: "banner",
|
|
145
|
+
className: overlayClasses,
|
|
146
|
+
style: overlayStyle
|
|
147
|
+
})
|
|
148
|
+
]
|
|
147
149
|
}),
|
|
148
150
|
/*#__PURE__*/ jsxRuntime.jsx(Row.default, {
|
|
149
151
|
className: rowClasses,
|
|
@@ -145,8 +145,8 @@ const HeroBannerItem = (props)=>{
|
|
|
145
145
|
${backgroundImageLazyload()}
|
|
146
146
|
${embed()}
|
|
147
147
|
</div>
|
|
148
|
+
${system.If(!!overlayColor, core.template`<div aria-label="Overlay" role="banner" class="${overlayClasses}" style="${overlayStyle}"></div>`)}
|
|
148
149
|
</div>
|
|
149
|
-
${system.If(!!overlayColor?.normal, core.template`<div aria-label="Overlay" role="banner" class="${overlayClasses}" style="${overlayStyle}"></div>`)}
|
|
150
150
|
${Row_liquid.default({
|
|
151
151
|
className: rowClasses,
|
|
152
152
|
style: rowStyle,
|
|
@@ -74,14 +74,15 @@ const SettingV2 = [
|
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
id: 'spacingHoz',
|
|
77
|
-
type: '
|
|
77
|
+
type: 'input:slider',
|
|
78
78
|
min: 0,
|
|
79
79
|
max: 100,
|
|
80
80
|
step: 1,
|
|
81
81
|
units: [
|
|
82
82
|
'%'
|
|
83
83
|
],
|
|
84
|
-
|
|
84
|
+
hide: true,
|
|
85
|
+
default: '1%'
|
|
85
86
|
},
|
|
86
87
|
{
|
|
87
88
|
id: 'spacingVertical',
|
|
@@ -191,7 +191,8 @@ const SettingUIV2 = [
|
|
|
191
191
|
},
|
|
192
192
|
setting: {
|
|
193
193
|
id: 'buttonWidth'
|
|
194
|
-
}
|
|
194
|
+
},
|
|
195
|
+
conditionDisplay: 'hasButton === true'
|
|
195
196
|
},
|
|
196
197
|
{
|
|
197
198
|
label: {
|
|
@@ -200,7 +201,8 @@ const SettingUIV2 = [
|
|
|
200
201
|
setting: {
|
|
201
202
|
id: 'buttonBackgroundColor',
|
|
202
203
|
state: 'normal'
|
|
203
|
-
}
|
|
204
|
+
},
|
|
205
|
+
conditionDisplay: 'hasButton === true'
|
|
204
206
|
},
|
|
205
207
|
{
|
|
206
208
|
label: {
|
|
@@ -208,7 +210,8 @@ const SettingUIV2 = [
|
|
|
208
210
|
},
|
|
209
211
|
setting: {
|
|
210
212
|
id: 'plusIcon'
|
|
211
|
-
}
|
|
213
|
+
},
|
|
214
|
+
conditionDisplay: 'hasButton === true'
|
|
212
215
|
},
|
|
213
216
|
{
|
|
214
217
|
label: {
|
|
@@ -216,7 +219,8 @@ const SettingUIV2 = [
|
|
|
216
219
|
},
|
|
217
220
|
setting: {
|
|
218
221
|
id: 'minusIcon'
|
|
219
|
-
}
|
|
222
|
+
},
|
|
223
|
+
conditionDisplay: 'hasButton === true'
|
|
220
224
|
},
|
|
221
225
|
{
|
|
222
226
|
label: {
|
|
@@ -225,7 +229,8 @@ const SettingUIV2 = [
|
|
|
225
229
|
setting: {
|
|
226
230
|
id: 'iconColor',
|
|
227
231
|
state: 'normal'
|
|
228
|
-
}
|
|
232
|
+
},
|
|
233
|
+
conditionDisplay: 'hasButton === true'
|
|
229
234
|
}
|
|
230
235
|
],
|
|
231
236
|
moreSettings: {
|
|
@@ -237,7 +242,8 @@ const SettingUIV2 = [
|
|
|
237
242
|
},
|
|
238
243
|
setting: {
|
|
239
244
|
id: 'iconSizeCustom'
|
|
240
|
-
}
|
|
245
|
+
},
|
|
246
|
+
conditionDisplay: 'hasButton === true'
|
|
241
247
|
},
|
|
242
248
|
{
|
|
243
249
|
label: {
|
|
@@ -250,6 +256,7 @@ const SettingUIV2 = [
|
|
|
250
256
|
popoverLabel: {
|
|
251
257
|
en: 'Hover effect'
|
|
252
258
|
},
|
|
259
|
+
conditionDisplay: 'hasButton === true',
|
|
253
260
|
controls: [
|
|
254
261
|
{
|
|
255
262
|
label: {
|
|
@@ -122,24 +122,26 @@ const HeroBannerItem = (props)=>{
|
|
|
122
122
|
className: containerClasses,
|
|
123
123
|
style: containerStyle,
|
|
124
124
|
children: [
|
|
125
|
-
/*#__PURE__*/
|
|
125
|
+
/*#__PURE__*/ jsxs("div", {
|
|
126
126
|
ref: elementRef,
|
|
127
127
|
"aria-label": "Background Image",
|
|
128
128
|
role: "banner",
|
|
129
129
|
className: containBackgroundClasses,
|
|
130
130
|
style: containBackground,
|
|
131
|
-
children:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
131
|
+
children: [
|
|
132
|
+
/*#__PURE__*/ jsx("div", {
|
|
133
|
+
ref: bgRef,
|
|
134
|
+
className: backgroundClasses,
|
|
135
|
+
style: backgroundStyle,
|
|
136
|
+
children: embed
|
|
137
|
+
}),
|
|
138
|
+
!!overlayColor && /*#__PURE__*/ jsx("div", {
|
|
139
|
+
"aria-label": "Overlay",
|
|
140
|
+
role: "banner",
|
|
141
|
+
className: overlayClasses,
|
|
142
|
+
style: overlayStyle
|
|
143
|
+
})
|
|
144
|
+
]
|
|
143
145
|
}),
|
|
144
146
|
/*#__PURE__*/ jsx(Row, {
|
|
145
147
|
className: rowClasses,
|
|
@@ -141,8 +141,8 @@ const HeroBannerItem = (props)=>{
|
|
|
141
141
|
${backgroundImageLazyload()}
|
|
142
142
|
${embed()}
|
|
143
143
|
</div>
|
|
144
|
+
${If(!!overlayColor, template`<div aria-label="Overlay" role="banner" class="${overlayClasses}" style="${overlayStyle}"></div>`)}
|
|
144
145
|
</div>
|
|
145
|
-
${If(!!overlayColor?.normal, template`<div aria-label="Overlay" role="banner" class="${overlayClasses}" style="${overlayStyle}"></div>`)}
|
|
146
146
|
${Row({
|
|
147
147
|
className: rowClasses,
|
|
148
148
|
style: rowStyle,
|
|
@@ -72,14 +72,15 @@ const SettingV2 = [
|
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
id: 'spacingHoz',
|
|
75
|
-
type: '
|
|
75
|
+
type: 'input:slider',
|
|
76
76
|
min: 0,
|
|
77
77
|
max: 100,
|
|
78
78
|
step: 1,
|
|
79
79
|
units: [
|
|
80
80
|
'%'
|
|
81
81
|
],
|
|
82
|
-
|
|
82
|
+
hide: true,
|
|
83
|
+
default: '1%'
|
|
83
84
|
},
|
|
84
85
|
{
|
|
85
86
|
id: 'spacingVertical',
|
|
@@ -189,7 +189,8 @@ const SettingUIV2 = [
|
|
|
189
189
|
},
|
|
190
190
|
setting: {
|
|
191
191
|
id: 'buttonWidth'
|
|
192
|
-
}
|
|
192
|
+
},
|
|
193
|
+
conditionDisplay: 'hasButton === true'
|
|
193
194
|
},
|
|
194
195
|
{
|
|
195
196
|
label: {
|
|
@@ -198,7 +199,8 @@ const SettingUIV2 = [
|
|
|
198
199
|
setting: {
|
|
199
200
|
id: 'buttonBackgroundColor',
|
|
200
201
|
state: 'normal'
|
|
201
|
-
}
|
|
202
|
+
},
|
|
203
|
+
conditionDisplay: 'hasButton === true'
|
|
202
204
|
},
|
|
203
205
|
{
|
|
204
206
|
label: {
|
|
@@ -206,7 +208,8 @@ const SettingUIV2 = [
|
|
|
206
208
|
},
|
|
207
209
|
setting: {
|
|
208
210
|
id: 'plusIcon'
|
|
209
|
-
}
|
|
211
|
+
},
|
|
212
|
+
conditionDisplay: 'hasButton === true'
|
|
210
213
|
},
|
|
211
214
|
{
|
|
212
215
|
label: {
|
|
@@ -214,7 +217,8 @@ const SettingUIV2 = [
|
|
|
214
217
|
},
|
|
215
218
|
setting: {
|
|
216
219
|
id: 'minusIcon'
|
|
217
|
-
}
|
|
220
|
+
},
|
|
221
|
+
conditionDisplay: 'hasButton === true'
|
|
218
222
|
},
|
|
219
223
|
{
|
|
220
224
|
label: {
|
|
@@ -223,7 +227,8 @@ const SettingUIV2 = [
|
|
|
223
227
|
setting: {
|
|
224
228
|
id: 'iconColor',
|
|
225
229
|
state: 'normal'
|
|
226
|
-
}
|
|
230
|
+
},
|
|
231
|
+
conditionDisplay: 'hasButton === true'
|
|
227
232
|
}
|
|
228
233
|
],
|
|
229
234
|
moreSettings: {
|
|
@@ -235,7 +240,8 @@ const SettingUIV2 = [
|
|
|
235
240
|
},
|
|
236
241
|
setting: {
|
|
237
242
|
id: 'iconSizeCustom'
|
|
238
|
-
}
|
|
243
|
+
},
|
|
244
|
+
conditionDisplay: 'hasButton === true'
|
|
239
245
|
},
|
|
240
246
|
{
|
|
241
247
|
label: {
|
|
@@ -248,6 +254,7 @@ const SettingUIV2 = [
|
|
|
248
254
|
popoverLabel: {
|
|
249
255
|
en: 'Hover effect'
|
|
250
256
|
},
|
|
257
|
+
conditionDisplay: 'hasButton === true',
|
|
251
258
|
controls: [
|
|
252
259
|
{
|
|
253
260
|
label: {
|