@gem-sdk/components 2.0.0-dev.293 → 2.0.0-dev.303
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/accordion/components/common/index.js +2 -2
- package/dist/cjs/article/components/ArticleAuthor.js +1 -1
- package/dist/cjs/article/components/ArticleTitle.js +3 -1
- package/dist/cjs/article/components/ArticleTitle.liquid.js +5 -2
- package/dist/cjs/article/setting/ArticleList.js +0 -30
- package/dist/cjs/article/setting/configs/ArticleAuthor/presets.js +0 -9
- package/dist/cjs/article/setting/configs/ArticleAuthor/settings.js +9 -5
- package/dist/cjs/article/setting/configs/ArticleAuthor/uiV2.js +16 -0
- package/dist/cjs/article/setting/configs/ArticleCategory/presets.js +0 -9
- package/dist/cjs/article/setting/configs/ArticleCategory/settings.js +9 -5
- package/dist/cjs/article/setting/configs/ArticleDate/presets.js +0 -9
- package/dist/cjs/article/setting/configs/ArticleDate/settings.js +9 -5
- package/dist/cjs/article/setting/configs/ArticleImage/settings.js +22 -1
- package/dist/cjs/article/setting/configs/ArticleTitle/settings.js +36 -7
- package/dist/cjs/article/setting/configs/ArticleTitle/uiV2.js +47 -2
- package/dist/cjs/builder.js +6 -2
- package/dist/cjs/button/components/Button.js +1 -1
- package/dist/cjs/button/components/Button.liquid.js +1 -1
- package/dist/cjs/button/components/ButtonIcon.liquid.js +3 -1
- package/dist/cjs/button/components/ButtonLabel.liquid.js +3 -1
- package/dist/cjs/button/components/common/attributes.js +2 -2
- package/dist/cjs/button/components/common/classes.js +2 -1
- package/dist/cjs/button/components/common/styles.js +9 -11
- package/dist/cjs/button/setting/configs/settings.js +7 -8
- package/dist/cjs/button/setting/configs/uiV2.js +4 -50
- package/dist/cjs/dialog/components/Dialog.js +109 -394
- package/dist/cjs/dialog/components/Dialog.liquid.js +129 -153
- package/dist/cjs/dialog/components/common/common.js +130 -0
- package/dist/cjs/dialog/components/common/getAttr.js +27 -0
- package/dist/cjs/dialog/components/common/getClasses.js +88 -0
- package/dist/cjs/dialog/components/common/getStyle.js +107 -0
- package/dist/cjs/dialog/components/hooks/useDialog.js +233 -0
- package/dist/cjs/dialog/setting/configs/settings.js +1 -1
- package/dist/cjs/dialog/setting/configs/uiV2.js +35 -25
- package/dist/cjs/form/components/form-checkbox/FormCheckbox.js +0 -4
- package/dist/cjs/form/components/textinput/TextInput.js +58 -0
- package/dist/cjs/form/components/textinput/TextInput.liquid.js +60 -0
- package/dist/cjs/form/components/textinput/common/composeClasses.js +33 -0
- package/dist/cjs/form/components/textinput/common/composeStyles.js +70 -0
- package/dist/cjs/form/next.js +5 -1
- package/dist/cjs/form/setting/index.js +3 -1
- 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/form/setting/text-input/TextInput.js +53 -0
- package/dist/cjs/form/setting/text-input/configs/settings.js +307 -0
- package/dist/cjs/form/setting/text-input/configs/uiV1.js +106 -0
- package/dist/cjs/form/setting/text-input/configs/uiV2.js +303 -0
- package/dist/cjs/grid/row/setting/configs/settings.js +6 -3
- package/dist/cjs/helpers.js +8 -0
- package/dist/cjs/icon-list/common/attrs.js +10 -0
- package/dist/cjs/icon-list/common/classes.js +9 -0
- package/dist/cjs/icon-list/common/styles.js +29 -0
- package/dist/cjs/icon-list/components/IconList.js +19 -30
- package/dist/cjs/icon-list/components/IconList.liquid.js +21 -24
- package/dist/cjs/icon-list/components/IconListItem.js +13 -7
- package/dist/cjs/icon-list/components/IconListItem.liquid.js +13 -7
- package/dist/cjs/icon-list-hoz/components/IconListHoz.js +37 -25
- package/dist/cjs/icon-list-hoz/components/IconListHoz.liquid.js +31 -25
- package/dist/cjs/icon-list-hoz/components/IconListHozItem.js +12 -6
- package/dist/cjs/icon-list-hoz/components/IconListIHozItem.liquid.js +26 -0
- package/dist/cjs/icon-list-hoz/components/common/getAttr.js +9 -0
- package/dist/cjs/icon-list-hoz/components/common/getClasses.js +24 -0
- package/dist/cjs/icon-list-hoz/components/common/getStyle.js +30 -0
- package/dist/cjs/image/components/AdaptiveImage.js +1 -1
- package/dist/cjs/image/components/AdaptiveImage.liquid.js +4 -4
- package/dist/cjs/image/components/Image.js +1 -5
- package/dist/cjs/image/components/common/styles.js +2 -2
- package/dist/cjs/image/components/helpers/getNextImageLiquidAttrs.js +6 -24
- package/dist/cjs/image/components/helpers/getNextImageReactAttrs.js +3 -3
- package/dist/cjs/index.js +6 -1
- package/dist/cjs/index.liquid.js +7 -3
- package/dist/cjs/line/common/classes.js +66 -0
- package/dist/cjs/line/common/index.js +16 -0
- package/dist/cjs/line/common/styles.js +120 -0
- package/dist/cjs/line/components/Divider.js +26 -0
- package/dist/cjs/line/components/Divider.liquid.js +22 -0
- package/dist/cjs/line/components/Line.js +98 -0
- package/dist/cjs/line/components/Line.liquid.js +86 -0
- package/dist/cjs/line/next.js +1 -1
- package/dist/cjs/post-purchase/line/setting/configs/uiV2.js +1 -1
- package/dist/cjs/post-purchase/link/setting/configs/settings.js +2 -1
- package/dist/cjs/post-purchase/link/setting/configs/uiV2.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
- package/dist/cjs/product/components/FileUpload/components/config/setting.js +24 -26
- package/dist/cjs/product/components/FileUpload/components/config/uiV2.js +12 -179
- package/dist/cjs/product/components/ProductList.js +1 -1
- package/dist/cjs/product/components/ProductVariants/index.js +2 -2
- package/dist/cjs/product/components/ProductVariants/index.liquid.js +2 -2
- package/dist/cjs/product/components/ProductVariants/variants/Dropdown.js +8 -3
- package/dist/cjs/product/components/ProductVariants/variants/Dropdown.liquid.js +7 -2
- package/dist/cjs/product/setting/ProductVariants.js +8 -1374
- package/dist/cjs/product/setting/product/configs/uiV2.js +2 -2
- package/dist/cjs/product/setting/product-list/configs/uiV2.js +0 -3
- package/dist/cjs/product/setting/product-variant/configs/presets.js +168 -0
- package/dist/cjs/product/setting/product-variant/configs/settings.js +732 -0
- package/dist/cjs/product/setting/product-variant/configs/uiV1.js +509 -0
- package/dist/cjs/product/setting/product-variant/configs/uiV2.js +347 -0
- package/dist/cjs/third-party/components/EcoboostifyShoppableReelUgc.js +33 -0
- package/dist/cjs/third-party/components/EcoboostifyShoppableReelUgc.liquid.js +12 -0
- package/dist/cjs/third-party/components/RechargeSubscriptions.liquid.js +1 -1
- package/dist/cjs/third-party/configs/EcoboostifyShoppableReelUgc.js +12 -0
- package/dist/cjs/third-party/next.js +5 -0
- package/dist/cjs/third-party/setting/EcoboostifyShoppableReelUgc.js +142 -0
- package/dist/cjs/third-party/setting/RechargeSubscriptions.js +5 -2
- package/dist/cjs/third-party/setting/index.js +3 -1
- package/dist/esm/accordion/components/common/index.js +2 -2
- package/dist/esm/article/components/ArticleAuthor.js +1 -1
- package/dist/esm/article/components/ArticleTitle.js +3 -1
- package/dist/esm/article/components/ArticleTitle.liquid.js +5 -2
- package/dist/esm/article/setting/ArticleList.js +0 -30
- package/dist/esm/article/setting/configs/ArticleAuthor/presets.js +0 -9
- package/dist/esm/article/setting/configs/ArticleAuthor/settings.js +9 -5
- package/dist/esm/article/setting/configs/ArticleAuthor/uiV2.js +16 -0
- package/dist/esm/article/setting/configs/ArticleCategory/presets.js +0 -9
- package/dist/esm/article/setting/configs/ArticleCategory/settings.js +9 -5
- package/dist/esm/article/setting/configs/ArticleDate/presets.js +0 -9
- package/dist/esm/article/setting/configs/ArticleDate/settings.js +9 -5
- package/dist/esm/article/setting/configs/ArticleImage/settings.js +22 -1
- package/dist/esm/article/setting/configs/ArticleTitle/settings.js +36 -7
- package/dist/esm/article/setting/configs/ArticleTitle/uiV2.js +47 -2
- package/dist/esm/builder.js +6 -2
- package/dist/esm/button/components/Button.js +1 -1
- package/dist/esm/button/components/Button.liquid.js +1 -1
- package/dist/esm/button/components/ButtonIcon.liquid.js +3 -1
- package/dist/esm/button/components/ButtonLabel.liquid.js +3 -1
- package/dist/esm/button/components/common/attributes.js +2 -2
- package/dist/esm/button/components/common/classes.js +3 -2
- package/dist/esm/button/components/common/styles.js +10 -12
- package/dist/esm/button/setting/configs/settings.js +7 -8
- package/dist/esm/button/setting/configs/uiV2.js +4 -50
- package/dist/esm/dialog/components/Dialog.js +110 -395
- package/dist/esm/dialog/components/Dialog.liquid.js +130 -154
- package/dist/esm/dialog/components/common/common.js +117 -0
- package/dist/esm/dialog/components/common/getAttr.js +22 -0
- package/dist/esm/dialog/components/common/getClasses.js +79 -0
- package/dist/esm/dialog/components/common/getStyle.js +98 -0
- package/dist/esm/dialog/components/hooks/useDialog.js +231 -0
- package/dist/esm/dialog/setting/configs/settings.js +1 -1
- package/dist/esm/dialog/setting/configs/uiV2.js +35 -25
- package/dist/esm/form/components/form-checkbox/FormCheckbox.js +0 -4
- package/dist/esm/form/components/textinput/TextInput.js +54 -0
- package/dist/esm/form/components/textinput/TextInput.liquid.js +56 -0
- package/dist/esm/form/components/textinput/common/composeClasses.js +29 -0
- package/dist/esm/form/components/textinput/common/composeStyles.js +67 -0
- package/dist/esm/form/next.js +5 -1
- package/dist/esm/form/setting/index.js +3 -1
- 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/form/setting/text-input/TextInput.js +49 -0
- package/dist/esm/form/setting/text-input/configs/settings.js +305 -0
- package/dist/esm/form/setting/text-input/configs/uiV1.js +104 -0
- package/dist/esm/form/setting/text-input/configs/uiV2.js +301 -0
- package/dist/esm/grid/row/setting/configs/settings.js +6 -3
- package/dist/esm/helpers.js +8 -1
- package/dist/esm/icon-list/common/attrs.js +8 -0
- package/dist/esm/icon-list/common/classes.js +6 -0
- package/dist/esm/icon-list/common/styles.js +25 -0
- package/dist/esm/icon-list/components/IconList.js +21 -32
- package/dist/esm/icon-list/components/IconList.liquid.js +21 -24
- package/dist/esm/icon-list/components/IconListItem.js +13 -7
- package/dist/esm/icon-list/components/IconListItem.liquid.js +14 -8
- package/dist/esm/icon-list-hoz/components/IconListHoz.js +38 -26
- package/dist/esm/icon-list-hoz/components/IconListHoz.liquid.js +32 -26
- package/dist/esm/icon-list-hoz/components/IconListHozItem.js +12 -6
- package/dist/esm/icon-list-hoz/components/IconListIHozItem.liquid.js +22 -0
- package/dist/esm/icon-list-hoz/components/common/getAttr.js +7 -0
- package/dist/esm/icon-list-hoz/components/common/getClasses.js +21 -0
- package/dist/esm/icon-list-hoz/components/common/getStyle.js +27 -0
- package/dist/esm/image/components/AdaptiveImage.js +2 -2
- package/dist/esm/image/components/AdaptiveImage.liquid.js +4 -4
- package/dist/esm/image/components/Image.js +2 -6
- package/dist/esm/image/components/common/styles.js +2 -2
- package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +6 -24
- package/dist/esm/image/components/helpers/getNextImageReactAttrs.js +3 -3
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.liquid.js +4 -2
- package/dist/esm/line/common/classes.js +59 -0
- package/dist/esm/line/common/index.js +14 -0
- package/dist/esm/line/common/styles.js +114 -0
- package/dist/esm/line/components/Divider.js +22 -0
- package/dist/esm/line/components/Divider.liquid.js +18 -0
- package/dist/esm/line/components/Line.js +94 -0
- package/dist/esm/line/components/Line.liquid.js +82 -0
- package/dist/esm/line/next.js +1 -1
- package/dist/esm/post-purchase/line/setting/configs/uiV2.js +1 -1
- package/dist/esm/post-purchase/link/setting/configs/settings.js +2 -1
- package/dist/esm/post-purchase/link/setting/configs/uiV2.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
- package/dist/esm/product/components/FileUpload/components/config/setting.js +24 -26
- package/dist/esm/product/components/FileUpload/components/config/uiV2.js +12 -179
- package/dist/esm/product/components/ProductList.js +1 -1
- package/dist/esm/product/components/ProductVariants/index.js +2 -2
- package/dist/esm/product/components/ProductVariants/index.liquid.js +2 -2
- package/dist/esm/product/components/ProductVariants/variants/Dropdown.js +8 -3
- package/dist/esm/product/components/ProductVariants/variants/Dropdown.liquid.js +7 -2
- package/dist/esm/product/setting/ProductVariants.js +8 -1374
- package/dist/esm/product/setting/product/configs/uiV2.js +2 -2
- package/dist/esm/product/setting/product-list/configs/uiV2.js +0 -3
- package/dist/esm/product/setting/product-variant/configs/presets.js +166 -0
- package/dist/esm/product/setting/product-variant/configs/settings.js +730 -0
- package/dist/esm/product/setting/product-variant/configs/uiV1.js +507 -0
- package/dist/esm/product/setting/product-variant/configs/uiV2.js +345 -0
- package/dist/esm/third-party/components/EcoboostifyShoppableReelUgc.js +29 -0
- package/dist/esm/third-party/components/EcoboostifyShoppableReelUgc.liquid.js +8 -0
- package/dist/esm/third-party/components/RechargeSubscriptions.liquid.js +1 -1
- package/dist/esm/third-party/configs/EcoboostifyShoppableReelUgc.js +8 -0
- package/dist/esm/third-party/next.js +5 -0
- package/dist/esm/third-party/setting/EcoboostifyShoppableReelUgc.js +138 -0
- package/dist/esm/third-party/setting/RechargeSubscriptions.js +5 -2
- package/dist/esm/third-party/setting/index.js +3 -1
- package/dist/types/index.d.ts +184 -166
- package/package.json +2 -2
- package/dist/cjs/dialog/helpers/common.js +0 -55
- package/dist/cjs/icon-list-hoz/components/IconListItemHoz.liquid.js +0 -23
- package/dist/cjs/line/Divider.js +0 -35
- package/dist/cjs/line/Divider.liquid.js +0 -35
- package/dist/cjs/line/Line.js +0 -167
- package/dist/cjs/line/Line.liquid.js +0 -163
- package/dist/esm/dialog/helpers/common.js +0 -47
- package/dist/esm/icon-list-hoz/components/IconListItemHoz.liquid.js +0 -19
- package/dist/esm/line/Divider.js +0 -31
- package/dist/esm/line/Divider.liquid.js +0 -31
- package/dist/esm/line/Line.js +0 -163
- package/dist/esm/line/Line.liquid.js +0 -159
- /package/dist/cjs/dialog/{hooks/use-scroll-percentage.js → components/hooks/useScrollPercentage.js} +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/color.js +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/dropdown.js +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image-shopify.js +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image.js +0 -0
- /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/rectangle-list.js +0 -0
- /package/dist/esm/dialog/{hooks/use-scroll-percentage.js → components/hooks/useScrollPercentage.js} +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/color.js +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/dropdown.js +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image-shopify.js +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image.js +0 -0
- /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/rectangle-list.js +0 -0
|
@@ -81,12 +81,15 @@ const SettingUIV2 = [
|
|
|
81
81
|
{
|
|
82
82
|
controls: [
|
|
83
83
|
{
|
|
84
|
-
type: 'control',
|
|
85
84
|
label: {
|
|
86
85
|
en: 'Icon'
|
|
87
86
|
},
|
|
88
87
|
setting: {
|
|
89
88
|
id: 'iconVisible'
|
|
89
|
+
},
|
|
90
|
+
options: {
|
|
91
|
+
labelVariant: 'primary',
|
|
92
|
+
toggleStyle: 'switch'
|
|
90
93
|
}
|
|
91
94
|
},
|
|
92
95
|
{
|
|
@@ -308,164 +311,6 @@ const SettingUIV2 = [
|
|
|
308
311
|
}
|
|
309
312
|
]
|
|
310
313
|
},
|
|
311
|
-
// {
|
|
312
|
-
// label: {
|
|
313
|
-
// en: 'States',
|
|
314
|
-
// },
|
|
315
|
-
// controls: [
|
|
316
|
-
// {
|
|
317
|
-
// type: 'tab',
|
|
318
|
-
// controls: [
|
|
319
|
-
// {
|
|
320
|
-
// type: 'toggleGroup',
|
|
321
|
-
// label: {
|
|
322
|
-
// en: 'Normal',
|
|
323
|
-
// },
|
|
324
|
-
// controls: [
|
|
325
|
-
// {
|
|
326
|
-
// type: 'control',
|
|
327
|
-
// label: {
|
|
328
|
-
// en: 'Background color',
|
|
329
|
-
// },
|
|
330
|
-
// setting: {
|
|
331
|
-
// id: 'backgroundColor',
|
|
332
|
-
// state: 'normal',
|
|
333
|
-
// },
|
|
334
|
-
// },
|
|
335
|
-
// {
|
|
336
|
-
// type: 'control',
|
|
337
|
-
// label: {
|
|
338
|
-
// en: 'Text color',
|
|
339
|
-
// },
|
|
340
|
-
// setting: {
|
|
341
|
-
// id: 'textColor',
|
|
342
|
-
// state: 'normal',
|
|
343
|
-
// },
|
|
344
|
-
// },
|
|
345
|
-
// {
|
|
346
|
-
// type: 'control',
|
|
347
|
-
// // options: {
|
|
348
|
-
// // labelPosition: 'start',
|
|
349
|
-
// // },
|
|
350
|
-
// label: {
|
|
351
|
-
// en: 'Border',
|
|
352
|
-
// },
|
|
353
|
-
// setting: {
|
|
354
|
-
// id: 'borderBtn',
|
|
355
|
-
// state: 'normal',
|
|
356
|
-
// },
|
|
357
|
-
// },
|
|
358
|
-
// {
|
|
359
|
-
// type: 'control',
|
|
360
|
-
// label: {
|
|
361
|
-
// en: 'Corner',
|
|
362
|
-
// },
|
|
363
|
-
// setting: {
|
|
364
|
-
// id: 'roundedBtn',
|
|
365
|
-
// state: 'normal',
|
|
366
|
-
// },
|
|
367
|
-
// },
|
|
368
|
-
// {
|
|
369
|
-
// type: 'control',
|
|
370
|
-
// label: {
|
|
371
|
-
// en: 'Shadow',
|
|
372
|
-
// },
|
|
373
|
-
// setting: {
|
|
374
|
-
// id: 'hasBoxShadowBtn',
|
|
375
|
-
// state: 'normal',
|
|
376
|
-
// },
|
|
377
|
-
// },
|
|
378
|
-
// {
|
|
379
|
-
// type: 'control',
|
|
380
|
-
// label: {
|
|
381
|
-
// en: '',
|
|
382
|
-
// },
|
|
383
|
-
// conditionDisplay: 'hasBoxShadowBtn.normal == true',
|
|
384
|
-
// layout: 'vertical',
|
|
385
|
-
// setting: {
|
|
386
|
-
// id: 'boxShadowBtn',
|
|
387
|
-
// state: 'normal',
|
|
388
|
-
// },
|
|
389
|
-
// },
|
|
390
|
-
// ],
|
|
391
|
-
// },
|
|
392
|
-
// {
|
|
393
|
-
// type: 'toggleGroup',
|
|
394
|
-
// label: {
|
|
395
|
-
// en: 'Hover',
|
|
396
|
-
// },
|
|
397
|
-
// controls: [
|
|
398
|
-
// {
|
|
399
|
-
// type: 'control',
|
|
400
|
-
// label: {
|
|
401
|
-
// en: 'Background color',
|
|
402
|
-
// },
|
|
403
|
-
// setting: {
|
|
404
|
-
// id: 'backgroundColor',
|
|
405
|
-
// state: 'hover',
|
|
406
|
-
// },
|
|
407
|
-
// },
|
|
408
|
-
// {
|
|
409
|
-
// type: 'control',
|
|
410
|
-
// label: {
|
|
411
|
-
// en: 'Text color',
|
|
412
|
-
// },
|
|
413
|
-
// setting: {
|
|
414
|
-
// id: 'textColor',
|
|
415
|
-
// state: 'hover',
|
|
416
|
-
// },
|
|
417
|
-
// },
|
|
418
|
-
// {
|
|
419
|
-
// type: 'control',
|
|
420
|
-
// // options: {
|
|
421
|
-
// // labelPosition: 'start',
|
|
422
|
-
// // },
|
|
423
|
-
// label: {
|
|
424
|
-
// en: 'Border',
|
|
425
|
-
// },
|
|
426
|
-
// setting: {
|
|
427
|
-
// id: 'borderBtn',
|
|
428
|
-
// state: 'hover',
|
|
429
|
-
// },
|
|
430
|
-
// },
|
|
431
|
-
// {
|
|
432
|
-
// type: 'control',
|
|
433
|
-
// label: {
|
|
434
|
-
// en: 'Corner',
|
|
435
|
-
// },
|
|
436
|
-
// setting: {
|
|
437
|
-
// id: 'roundedBtn',
|
|
438
|
-
// state: 'hover',
|
|
439
|
-
// },
|
|
440
|
-
// },
|
|
441
|
-
// {
|
|
442
|
-
// type: 'control',
|
|
443
|
-
// label: {
|
|
444
|
-
// en: 'Shadow',
|
|
445
|
-
// },
|
|
446
|
-
// setting: {
|
|
447
|
-
// id: 'hasBoxShadowBtn',
|
|
448
|
-
// state: 'hover',
|
|
449
|
-
// },
|
|
450
|
-
// },
|
|
451
|
-
// {
|
|
452
|
-
// type: 'control',
|
|
453
|
-
// label: {
|
|
454
|
-
// en: '',
|
|
455
|
-
// },
|
|
456
|
-
// layout: 'vertical',
|
|
457
|
-
// conditionDisplay: 'hasBoxShadowBtn.hover == true',
|
|
458
|
-
// setting: {
|
|
459
|
-
// id: 'boxShadowBtn',
|
|
460
|
-
// state: 'hover',
|
|
461
|
-
// },
|
|
462
|
-
// },
|
|
463
|
-
// ],
|
|
464
|
-
// },
|
|
465
|
-
// ],
|
|
466
|
-
// },
|
|
467
|
-
// ],
|
|
468
|
-
// },
|
|
469
314
|
{
|
|
470
315
|
label: {
|
|
471
316
|
en: 'Text style'
|
|
@@ -573,7 +418,7 @@ const SettingUIV2 = [
|
|
|
573
418
|
en: 'Corner'
|
|
574
419
|
},
|
|
575
420
|
setting: {
|
|
576
|
-
id: '
|
|
421
|
+
id: 'roundedBtn',
|
|
577
422
|
state: 'hover'
|
|
578
423
|
}
|
|
579
424
|
},
|
|
@@ -582,7 +427,7 @@ const SettingUIV2 = [
|
|
|
582
427
|
en: 'Shadow'
|
|
583
428
|
},
|
|
584
429
|
setting: {
|
|
585
|
-
id: '
|
|
430
|
+
id: 'boxShadowBtn',
|
|
586
431
|
state: 'hover'
|
|
587
432
|
},
|
|
588
433
|
controlConfig: {
|
|
@@ -608,32 +453,20 @@ const SettingUIV2 = [
|
|
|
608
453
|
}
|
|
609
454
|
]
|
|
610
455
|
},
|
|
611
|
-
// {
|
|
612
|
-
// controls: [
|
|
613
|
-
// {
|
|
614
|
-
// label: {
|
|
615
|
-
// en: 'Text align',
|
|
616
|
-
// },
|
|
617
|
-
// type: 'control',
|
|
618
|
-
// setting: {
|
|
619
|
-
// id: 'textAlign',
|
|
620
|
-
// },
|
|
621
|
-
// options: {
|
|
622
|
-
// fullWidth: true,
|
|
623
|
-
// },
|
|
624
|
-
// },
|
|
625
|
-
// ],
|
|
626
|
-
// },
|
|
627
456
|
{
|
|
628
|
-
conditionDisplay: `size.width !== '100%'`,
|
|
629
457
|
controls: [
|
|
630
458
|
{
|
|
631
459
|
label: {
|
|
632
460
|
en: 'Align'
|
|
633
461
|
},
|
|
634
|
-
|
|
462
|
+
conditionEnable: `size.width !== '100%'`,
|
|
635
463
|
setting: {
|
|
636
464
|
id: 'align'
|
|
465
|
+
},
|
|
466
|
+
options: {
|
|
467
|
+
labelVariant: 'primary',
|
|
468
|
+
fullWidth: true,
|
|
469
|
+
disableMessage: 'Horizontal alignment is disabled when the width is set to 100% or greater'
|
|
637
470
|
}
|
|
638
471
|
}
|
|
639
472
|
]
|
|
@@ -16,7 +16,7 @@ var dots = require('../../carousel/components/common/dots.js');
|
|
|
16
16
|
var carousel = require('../../carousel/components/common/carousel.js');
|
|
17
17
|
var product = require('../helpers/product.js');
|
|
18
18
|
var SalePageProductListWarning = require('./SalePageProductListWarning.js');
|
|
19
|
-
var common = require('../../dialog/
|
|
19
|
+
var common = require('../../dialog/components/common/common.js');
|
|
20
20
|
var Head = require('next/head');
|
|
21
21
|
var helpers = require('../../grid/row/commons/helpers.js');
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ const DEVICES = [
|
|
|
26
26
|
const VARIANT_PARAM_PATH = 'variant';
|
|
27
27
|
let isMounted = false;
|
|
28
28
|
const ProductVariants = ({ builderProps, style, styles, setting })=>{
|
|
29
|
-
const {
|
|
29
|
+
const { width, align, optionTypo, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, labelGap } = styles ?? {};
|
|
30
30
|
const { label, optionType, showAsSwatches, layout, column, hasPreSelected } = setting ?? {};
|
|
31
31
|
const { uid } = builderProps ?? {};
|
|
32
32
|
const variants = core.useVariants();
|
|
@@ -42,7 +42,7 @@ const ProductVariants = ({ builderProps, style, styles, setting })=>{
|
|
|
42
42
|
const mode = core.useEditorMode();
|
|
43
43
|
const { selectedOptions, setSelectedOption, forceSelectedOption } = core.useSelectedOption();
|
|
44
44
|
const { setHasPreSelected } = core.useHasPreSelected();
|
|
45
|
-
const variantsWidth = core.makeStyleResponsive('w', core.makeWidth(width
|
|
45
|
+
const variantsWidth = core.makeStyleResponsive('w', core.makeWidth(width));
|
|
46
46
|
const [variantId, setVariantId] = React.useState('');
|
|
47
47
|
React.useEffect(()=>{
|
|
48
48
|
const url = new URL(window.location.href);
|
|
@@ -18,12 +18,12 @@ const DEVICES = [
|
|
|
18
18
|
'mobile'
|
|
19
19
|
];
|
|
20
20
|
const ProductVariants = ({ builderProps, style, styles, setting, advanced })=>{
|
|
21
|
-
const { width,
|
|
21
|
+
const { width, align, swatchItemWidth, dropdownItemWidth, marginBottom, swatchSpacing, optionTypo, labelGap } = styles ?? {};
|
|
22
22
|
const { label, optionType, showAsSwatches, layout, column, hasPreSelected } = setting ?? {};
|
|
23
23
|
const advancedDisplay = advanced?.d;
|
|
24
24
|
const { uid } = builderProps ?? {};
|
|
25
25
|
// full width
|
|
26
|
-
const variantsWidth = core.makeStyleResponsive('w', core.makeWidth(width
|
|
26
|
+
const variantsWidth = core.makeStyleResponsive('w', core.makeWidth(width));
|
|
27
27
|
const variantGroup = optionType === 'groupOption';
|
|
28
28
|
const getSwatchAutoWidth = ()=>{
|
|
29
29
|
const result = {};
|
|
@@ -10,7 +10,8 @@ var index = require('./VariantOption/index.js');
|
|
|
10
10
|
var DropdownOption = require('./DropdownOption.js');
|
|
11
11
|
var React = require('react');
|
|
12
12
|
|
|
13
|
-
const DropdownVariant = ({ option, optionPosition, optionNumber, variantGroup, variants, price, blankText, swatchHeight, optionTypography, optionBgColor, optionTextColor, optionRounded, optionShadow, optionHasShadow,
|
|
13
|
+
const DropdownVariant = ({ option, optionPosition, optionNumber, variantGroup, variants, price, blankText, swatchHeight, optionTypography, optionBgColor, optionTextColor, optionRounded, optionShadow, // optionHasShadow,
|
|
14
|
+
optionBorder, optionTransform, initValue, hasPreSelected, optionTypo, presetConfiguration, combineHeight, combineWidth, soldOutStyle })=>{
|
|
14
15
|
const { setSelectedOption, forceSelectedOption, selectedOptions } = core.useSelectedOption();
|
|
15
16
|
const product$1 = core.useProduct();
|
|
16
17
|
const isSoldOutMark = React.useMemo(()=>{
|
|
@@ -29,7 +30,7 @@ const DropdownVariant = ({ option, optionPosition, optionNumber, variantGroup, v
|
|
|
29
30
|
optionBgColor = preset?.optionBgColor;
|
|
30
31
|
optionTextColor = preset?.optionTextColor;
|
|
31
32
|
optionBorder = preset?.optionBorder;
|
|
32
|
-
optionHasShadow = preset?.optionHasShadow;
|
|
33
|
+
// optionHasShadow = preset?.optionHasShadow;
|
|
33
34
|
optionShadow = preset?.optionShadow;
|
|
34
35
|
optionRounded = preset?.optionRounded;
|
|
35
36
|
}
|
|
@@ -104,7 +105,11 @@ const DropdownVariant = ({ option, optionPosition, optionNumber, variantGroup, v
|
|
|
104
105
|
value: value ?? initValue,
|
|
105
106
|
style: {
|
|
106
107
|
...composeWidthResponsive,
|
|
107
|
-
...core.getStyleShadowState(optionShadow, 'box-shadow',
|
|
108
|
+
...core.getStyleShadowState(optionShadow, 'box-shadow', {
|
|
109
|
+
normal: optionShadow?.normal?.type !== 'none',
|
|
110
|
+
hover: optionShadow?.hover?.type !== 'none',
|
|
111
|
+
active: optionShadow?.active?.type !== 'none'
|
|
112
|
+
}),
|
|
108
113
|
...getCustomCSSActiveState(),
|
|
109
114
|
...core.makeStyle({
|
|
110
115
|
tt: optionTransform
|
|
@@ -5,7 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var core = require('@gem-sdk/core');
|
|
6
6
|
var helpers = require('../../../../helpers.js');
|
|
7
7
|
|
|
8
|
-
const DropdownVariant = ({ variantGroup, blankText, swatchAutoWidth, swatchHeight, optionTypography, optionBgColor, optionTextColor, optionRounded, optionShadow, optionHasShadow,
|
|
8
|
+
const DropdownVariant = ({ variantGroup, blankText, swatchAutoWidth, swatchHeight, optionTypography, optionBgColor, optionTextColor, optionRounded, optionShadow, // optionHasShadow,
|
|
9
|
+
optionBorder, optionTransform, fixedDropdownWidth, hasPreSelected, optionTypo, soldOutStyle })=>{
|
|
9
10
|
const swatchWidthResponsive = core.makeStyleResponsive('w', core.makeWidth(fixedDropdownWidth, swatchAutoWidth));
|
|
10
11
|
const isSoldOutMark = soldOutStyle === 'disable';
|
|
11
12
|
const getCustomCSSActiveState = ()=>{
|
|
@@ -39,7 +40,11 @@ const DropdownVariant = ({ variantGroup, blankText, swatchAutoWidth, swatchHeigh
|
|
|
39
40
|
class="${core.cls('gp-truncate gp-bg-auto gp-pl-4 gp-pr-6 gp-outline-none dropdown-option-item', core.handleConvertClassColor(optionBorder), appendTypoClass, core.getGlobalColorStateClass('text', optionTextColor), core.getGlobalColorStateClass('bg', optionBgColor), 'gp-outline-none', 'gp-shadow-none')}"
|
|
40
41
|
|
|
41
42
|
style="${{
|
|
42
|
-
...core.getStyleShadowState(optionShadow, 'box-shadow',
|
|
43
|
+
...core.getStyleShadowState(optionShadow, 'box-shadow', {
|
|
44
|
+
normal: optionShadow?.normal?.type !== 'none',
|
|
45
|
+
hover: optionShadow?.hover?.type !== 'none',
|
|
46
|
+
active: optionShadow?.active?.type !== 'none'
|
|
47
|
+
}),
|
|
43
48
|
...getCustomCSSActiveState(),
|
|
44
49
|
...core.makeStyle({
|
|
45
50
|
tt: optionTransform
|