@gem-sdk/components 2.0.0-dev.481 → 2.0.0-dev.483
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/article/components/ArticleList.js +1 -2
- package/dist/cjs/article/components/ArticleList.liquid.js +1 -1
- package/dist/cjs/article/setting/ArticleList.js +7 -591
- package/dist/cjs/article/setting/configs/ArticleList/presets.js +346 -0
- package/dist/cjs/article/setting/configs/ArticleList/settings.js +315 -0
- package/dist/cjs/article/setting/configs/ArticleList/uiV2.js +201 -0
- package/dist/cjs/banner/components/HeroBanner.liquid.js +2 -2
- package/dist/cjs/banner/components/HeroBannerItem.js +15 -7
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +13 -11
- package/dist/cjs/banner/components/common/common.js +13 -29
- package/dist/cjs/banner/components/common/getClasses.js +2 -1
- package/dist/cjs/banner/components/common/getStyle.js +2 -0
- package/dist/cjs/banner/components/hooks/useHeroBanner.js +2 -7
- package/dist/cjs/banner/setting/setting.js +6 -0
- package/dist/cjs/banner/setting/uiV2.js +15 -3
- package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +2 -2
- package/dist/cjs/form/components/newsletter/common/composeStyles.js +4 -3
- package/dist/cjs/form/setting/newsletter/configs/settings.js +4 -2
- package/dist/cjs/form/setting/newsletter/configs/uiV2.js +2 -0
- package/dist/cjs/product/components/ProductDiscountTag/index.liquid.js +3 -2
- package/dist/cjs/product/components/ProductSKU/Sku.liquid.js +3 -2
- package/dist/cjs/product/setting/product-price/configs/uiV2.js +1 -1
- package/dist/cjs/stock-counter/setting/configs/settingsV2.js +7 -6
- package/dist/cjs/stock-counter/setting/configs/uiV2.js +36 -6
- package/dist/esm/article/components/ArticleList.js +1 -2
- package/dist/esm/article/components/ArticleList.liquid.js +1 -1
- package/dist/esm/article/setting/ArticleList.js +7 -591
- package/dist/esm/article/setting/configs/ArticleList/presets.js +344 -0
- package/dist/esm/article/setting/configs/ArticleList/settings.js +313 -0
- package/dist/esm/article/setting/configs/ArticleList/uiV2.js +199 -0
- package/dist/esm/banner/components/HeroBanner.liquid.js +2 -2
- package/dist/esm/banner/components/HeroBannerItem.js +16 -8
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +12 -10
- package/dist/esm/banner/components/common/common.js +15 -30
- package/dist/esm/banner/components/common/getClasses.js +2 -1
- package/dist/esm/banner/components/common/getStyle.js +2 -0
- package/dist/esm/banner/components/hooks/useHeroBanner.js +4 -9
- package/dist/esm/banner/setting/setting.js +6 -0
- package/dist/esm/banner/setting/uiV2.js +15 -3
- package/dist/esm/form/components/newsletter/Newsletter.liquid.js +2 -2
- package/dist/esm/form/components/newsletter/common/composeStyles.js +4 -3
- package/dist/esm/form/setting/newsletter/configs/settings.js +4 -2
- package/dist/esm/form/setting/newsletter/configs/uiV2.js +2 -0
- package/dist/esm/product/components/ProductDiscountTag/index.liquid.js +3 -2
- package/dist/esm/product/components/ProductSKU/Sku.liquid.js +4 -3
- package/dist/esm/product/setting/product-price/configs/uiV2.js +1 -1
- package/dist/esm/stock-counter/setting/configs/settingsV2.js +8 -7
- package/dist/esm/stock-counter/setting/configs/uiV2.js +36 -6
- package/dist/types/index.d.ts +2 -0
- package/package.json +2 -2
|
@@ -67,7 +67,7 @@ const StockCounterSettingsV2 = [
|
|
|
67
67
|
{
|
|
68
68
|
id: 'remaining',
|
|
69
69
|
type: 'input:stepper',
|
|
70
|
-
default:
|
|
70
|
+
default: 4
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
id: 'displayCondition',
|
|
@@ -103,7 +103,7 @@ const StockCounterSettingsV2 = [
|
|
|
103
103
|
id: 'oosIcon',
|
|
104
104
|
label: '',
|
|
105
105
|
type: 'icon',
|
|
106
|
-
default: `<svg width="100%" height="100%" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M7.75193 0.0658784C7.90565 -0.0219595 8.09435 -0.0219595 8.24807 0.0658784L11.9981 2.20874C12.1539 2.29776 12.25 2.46343 12.25 2.64286V6.63841L15.7481 8.63731C15.9039 8.72633 16 8.892 16 9.07143V13.3571C16 13.5366 15.9039 13.7022 15.7481 13.7913L11.9981 15.9341C11.8444 16.022 11.6556 16.022 11.5019 15.9341L8 13.933L4.49807 15.9341C4.34435 16.022 4.15565 16.022 4.00193 15.9341L0.25193 13.7913C0.096143 13.7022 0 13.5366 0 13.3571V9.07143C0 8.892 0.096143 8.72633 0.251931 8.63731L3.75 6.63841V2.64286C3.75 2.46343 3.84614 2.29776 4.00193 2.20874L7.75193 0.0658784ZM4.25 7.50445L1.50778 9.07143L4.25 10.6384L6.99222 9.07143L4.25 7.50445ZM7.5 9.93302L4.75 11.5044V14.6384L7.5 13.067V9.93302ZM8.5 13.067L11.25 14.6384V11.5044L8.5 9.93302V13.067ZM9.00778 9.07143L11.75 10.6384L14.4922 9.07143L11.75 7.50445L9.00778 9.07143ZM11.25 6.63841V3.50445L8.5 5.07588V8.20984L11.25 6.63841ZM7.5 8.20984V5.07588L4.75 3.50445V6.63841L7.5 8.20984ZM5.25778 2.64286L8 4.20984L10.7422 2.64286L8 1.07588L5.25778 2.64286ZM15 9.93302L12.25 11.5044V14.6384L15 13.067V9.93302ZM3.75 14.6384V11.5044L1 9.93302V13.067L3.75 14.6384Z" fill="currentColor"/> </svg>`
|
|
106
|
+
default: `<svg data-name="boxes" width="100%" height="100%" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M7.75193 0.0658784C7.90565 -0.0219595 8.09435 -0.0219595 8.24807 0.0658784L11.9981 2.20874C12.1539 2.29776 12.25 2.46343 12.25 2.64286V6.63841L15.7481 8.63731C15.9039 8.72633 16 8.892 16 9.07143V13.3571C16 13.5366 15.9039 13.7022 15.7481 13.7913L11.9981 15.9341C11.8444 16.022 11.6556 16.022 11.5019 15.9341L8 13.933L4.49807 15.9341C4.34435 16.022 4.15565 16.022 4.00193 15.9341L0.25193 13.7913C0.096143 13.7022 0 13.5366 0 13.3571V9.07143C0 8.892 0.096143 8.72633 0.251931 8.63731L3.75 6.63841V2.64286C3.75 2.46343 3.84614 2.29776 4.00193 2.20874L7.75193 0.0658784ZM4.25 7.50445L1.50778 9.07143L4.25 10.6384L6.99222 9.07143L4.25 7.50445ZM7.5 9.93302L4.75 11.5044V14.6384L7.5 13.067V9.93302ZM8.5 13.067L11.25 14.6384V11.5044L8.5 9.93302V13.067ZM9.00778 9.07143L11.75 10.6384L14.4922 9.07143L11.75 7.50445L9.00778 9.07143ZM11.25 6.63841V3.50445L8.5 5.07588V8.20984L11.25 6.63841ZM7.5 8.20984V5.07588L4.75 3.50445V6.63841L7.5 8.20984ZM5.25778 2.64286L8 4.20984L10.7422 2.64286L8 1.07588L5.25778 2.64286ZM15 9.93302L12.25 11.5044V14.6384L15 13.067V9.93302ZM3.75 14.6384V11.5044L1 9.93302V13.067L3.75 14.6384Z" fill="currentColor"/> </svg>`
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
id: 'hiddenCounterWhenOutOfStock',
|
|
@@ -131,8 +131,9 @@ const StockCounterSettingsV2 = [
|
|
|
131
131
|
type: 'textarea',
|
|
132
132
|
autoHeight: true,
|
|
133
133
|
showPlusBtn: true,
|
|
134
|
-
default:
|
|
134
|
+
default: `Only ${_const.DEFAULT_QUANTITY_TEMPLATE} left`,
|
|
135
135
|
info: `Use ${_const.DEFAULT_QUANTITY_TEMPLATE} to represent remaining number`,
|
|
136
|
+
minHeight: 56,
|
|
136
137
|
suggestContents: [
|
|
137
138
|
{
|
|
138
139
|
message: '%number%',
|
|
@@ -151,7 +152,7 @@ const StockCounterSettingsV2 = [
|
|
|
151
152
|
label: 'Continue Selling When Out Of Stock Message',
|
|
152
153
|
type: 'textarea',
|
|
153
154
|
autoHeight: true,
|
|
154
|
-
default: '
|
|
155
|
+
default: 'Restock soon! PREORDER NOW',
|
|
155
156
|
info: 'Turn out-of-stock productions into pre-orders'
|
|
156
157
|
},
|
|
157
158
|
{
|
|
@@ -159,7 +160,7 @@ const StockCounterSettingsV2 = [
|
|
|
159
160
|
label: 'Unlimited Quantity Message',
|
|
160
161
|
type: 'textarea',
|
|
161
162
|
autoHeight: true,
|
|
162
|
-
default: '
|
|
163
|
+
default: 'Hurry! LET BUY NOW'
|
|
163
164
|
}
|
|
164
165
|
]
|
|
165
166
|
},
|
|
@@ -178,7 +179,7 @@ const StockCounterSettingsV2 = [
|
|
|
178
179
|
id: 'icon',
|
|
179
180
|
label: '',
|
|
180
181
|
type: 'icon',
|
|
181
|
-
default: `<svg style="width: 100%; height: 100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"> <path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M176.64 11.488A16 16 0 0 1 192 0h128a16 16 0 0 1 15.168 21.056L278.208 192H400a16 16 0 0 1 12.64 25.824l-224 288a16 16 0 0 1 -27.936 -14.528L218.336 304H112a16 16 0 0 1 -15.36 -20.512l80 -272z" /></svg>`
|
|
182
|
+
default: `<svg data-name="Lightning" style="width: 100%; height: 100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"> <path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M176.64 11.488A16 16 0 0 1 192 0h128a16 16 0 0 1 15.168 21.056L278.208 192H400a16 16 0 0 1 12.64 25.824l-224 288a16 16 0 0 1 -27.936 -14.528L218.336 304H112a16 16 0 0 1 -15.36 -20.512l80 -272z" /></svg>`
|
|
182
183
|
}
|
|
183
184
|
]
|
|
184
185
|
},
|
|
@@ -363,19 +363,49 @@ const SettingUIV2 = [
|
|
|
363
363
|
controls: [
|
|
364
364
|
{
|
|
365
365
|
label: {
|
|
366
|
+
en: 'Sell when OOS'
|
|
367
|
+
},
|
|
368
|
+
type: 'combo',
|
|
369
|
+
iconName: 'polaris-text-block',
|
|
370
|
+
getValueFromSettingID: 'continueSelling',
|
|
371
|
+
isHideClear: true,
|
|
372
|
+
popoverLabel: {
|
|
366
373
|
en: 'Out of stock sell'
|
|
367
374
|
},
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
375
|
+
controls: [
|
|
376
|
+
{
|
|
377
|
+
label: {
|
|
378
|
+
en: 'Content'
|
|
379
|
+
},
|
|
380
|
+
setting: {
|
|
381
|
+
id: 'continueSelling'
|
|
382
|
+
},
|
|
383
|
+
layout: 'vertical'
|
|
384
|
+
}
|
|
385
|
+
]
|
|
371
386
|
},
|
|
372
387
|
{
|
|
373
388
|
label: {
|
|
389
|
+
en: 'Unlimited stock'
|
|
390
|
+
},
|
|
391
|
+
type: 'combo',
|
|
392
|
+
iconName: 'polaris-text-block',
|
|
393
|
+
getValueFromSettingID: 'unlimitedQuantityMessage',
|
|
394
|
+
isHideClear: true,
|
|
395
|
+
popoverLabel: {
|
|
374
396
|
en: 'Unlimited quantity'
|
|
375
397
|
},
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
398
|
+
controls: [
|
|
399
|
+
{
|
|
400
|
+
label: {
|
|
401
|
+
en: 'Content'
|
|
402
|
+
},
|
|
403
|
+
setting: {
|
|
404
|
+
id: 'unlimitedQuantityMessage'
|
|
405
|
+
},
|
|
406
|
+
layout: 'vertical'
|
|
407
|
+
}
|
|
408
|
+
]
|
|
379
409
|
}
|
|
380
410
|
]
|
|
381
411
|
},
|
|
@@ -81,7 +81,6 @@ const ArticleList = ({ styles, setting, className, children, builderProps })=>{
|
|
|
81
81
|
styles: {
|
|
82
82
|
horizontalGutter: styles?.horizontalGutter,
|
|
83
83
|
verticalGutter: styles?.verticalGutter,
|
|
84
|
-
fullWidth: styles?.fullWidth,
|
|
85
84
|
spacing: styles?.spacing,
|
|
86
85
|
width: styles?.width,
|
|
87
86
|
height: styles?.height
|
|
@@ -108,7 +107,7 @@ const ArticleList = ({ styles, setting, className, children, builderProps })=>{
|
|
|
108
107
|
},
|
|
109
108
|
children: /*#__PURE__*/ jsx("div", {
|
|
110
109
|
style: {
|
|
111
|
-
...makeStyleResponsive('w', makeWidth(styles?.width
|
|
110
|
+
...makeStyleResponsive('w', makeWidth(styles?.width)),
|
|
112
111
|
...makeStyleResponsive('rg', styles?.horizontalGutter),
|
|
113
112
|
...makeStyleResponsive('cg', styles?.verticalGutter),
|
|
114
113
|
...getStyleBackgroundByDevice(setting?.background),
|
|
@@ -27,7 +27,7 @@ const ArticleList = ({ setting, styles, className, children, advanced, builderPr
|
|
|
27
27
|
}}"
|
|
28
28
|
>
|
|
29
29
|
<div style="${{
|
|
30
|
-
...makeStyleResponsive('w', makeWidth(styles?.width
|
|
30
|
+
...makeStyleResponsive('w', makeWidth(styles?.width)),
|
|
31
31
|
...makeStyleResponsive('rg', styles?.horizontalGutter),
|
|
32
32
|
...makeStyleResponsive('cg', styles?.verticalGutter),
|
|
33
33
|
...getStyleBackgroundByDevice(setting?.background),
|