@gem-sdk/components 2.0.0-dev.294 → 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/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-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/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/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/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-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/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/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
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { dropdownPresetConfig } from './swatches-style-config/dropdown.js';
|
|
1
|
+
import { ProductVariantPreset } from './product-variant/configs/presets.js';
|
|
2
|
+
import { ProductVariantSettings } from './product-variant/configs/settings.js';
|
|
3
|
+
import { SettingUIV1 } from './product-variant/configs/uiV1.js';
|
|
4
|
+
import { SettingUIV2 } from './product-variant/configs/uiV2.js';
|
|
6
5
|
|
|
7
6
|
const config = {
|
|
8
7
|
tag: 'ProductVariants',
|
|
@@ -12,1211 +11,9 @@ const config = {
|
|
|
12
11
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.33301 9.16663C1.33301 8.89048 1.55687 8.66663 1.83301 8.66663H14.833C15.1091 8.66663 15.333 8.89048 15.333 9.16663V17.7105C15.333 17.9866 15.1091 18.2105 14.833 18.2105H1.83301C1.55687 18.2105 1.33301 17.9866 1.33301 17.7105V9.16663ZM3.66634 15.8245H12.9997V11.0526H3.66634V15.8245ZM18.833 9.16663C18.833 8.89048 19.0569 8.66663 19.333 8.66663H32.333C32.6091 8.66663 32.833 8.89048 32.833 9.16663V17.7105C32.833 17.9866 32.6091 18.2105 32.333 18.2105H19.333C19.0569 18.2105 18.833 17.9866 18.833 17.7105V9.16663ZM21.1663 15.8245H30.4997V11.0526H21.1663V15.8245ZM7.16634 30.8333C7.16634 31.1094 7.3902 31.3333 7.66634 31.3333H20.6663C20.9425 31.3333 21.1663 31.1094 21.1663 30.8333V22.2894C21.1663 22.0133 20.9425 21.7894 20.6663 21.7894H7.66634C7.3902 21.7894 7.16634 22.0133 7.16634 22.2894V30.8333ZM9.49967 24.1754H18.833V28.9473H9.49967V24.1754ZM25.1663 31.3333C24.8902 31.3333 24.6663 31.1094 24.6663 30.8333V22.2894C24.6663 22.0133 24.8902 21.7894 25.1663 21.7894H38.1663C38.4425 21.7894 38.6663 22.0133 38.6663 22.2894V30.8333C38.6663 31.1094 38.4425 31.3333 38.1663 31.3333H25.1663ZM26.9997 28.9473H36.333V24.1754H26.9997V28.9473Z" fill="currentColor"/>
|
|
13
12
|
</svg>
|
|
14
13
|
`,
|
|
15
|
-
settings:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
controls: [
|
|
19
|
-
{
|
|
20
|
-
id: 'variantsOption',
|
|
21
|
-
type: 'group',
|
|
22
|
-
label: 'Variants Options',
|
|
23
|
-
controls: [
|
|
24
|
-
{
|
|
25
|
-
id: 'optionType',
|
|
26
|
-
label: 'Option Label',
|
|
27
|
-
type: 'segment',
|
|
28
|
-
default: 'singleOption',
|
|
29
|
-
options: [
|
|
30
|
-
{
|
|
31
|
-
label: 'Separate',
|
|
32
|
-
value: 'singleOption'
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
label: 'Combine',
|
|
36
|
-
value: 'groupOption'
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
id: 'label',
|
|
42
|
-
label: 'Option Label',
|
|
43
|
-
type: 'toggle',
|
|
44
|
-
default: true
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
id: 'optionAlign',
|
|
48
|
-
label: 'Alignment',
|
|
49
|
-
type: 'segment',
|
|
50
|
-
devices: {
|
|
51
|
-
desktop: {
|
|
52
|
-
default: 'left'
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
options: [
|
|
56
|
-
{
|
|
57
|
-
label: 'Left',
|
|
58
|
-
value: 'left',
|
|
59
|
-
type: 'align'
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
label: 'Center',
|
|
63
|
-
value: 'center',
|
|
64
|
-
type: 'align'
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
label: 'Right',
|
|
68
|
-
value: 'right',
|
|
69
|
-
type: 'align'
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
id: 'price',
|
|
75
|
-
label: 'Option Price',
|
|
76
|
-
type: 'toggle',
|
|
77
|
-
hide: true,
|
|
78
|
-
default: true
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
id: 'showAsSwatches',
|
|
82
|
-
label: 'Use Option Swatches',
|
|
83
|
-
type: 'swatchesLink',
|
|
84
|
-
hide: true,
|
|
85
|
-
default: true,
|
|
86
|
-
hyperlinkInfo: {
|
|
87
|
-
beforeText: 'Go to ',
|
|
88
|
-
hyperlinkText: 'Manage Swatches',
|
|
89
|
-
afterText: ' to configure options display as swatches',
|
|
90
|
-
modal: 'manage_swatches'
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
id: 'combineFullWidth',
|
|
95
|
-
label: 'Full Width',
|
|
96
|
-
type: 'toggle',
|
|
97
|
-
devices: {
|
|
98
|
-
desktop: {
|
|
99
|
-
default: true
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
id: 'combineWidth',
|
|
105
|
-
type: 'input:unit',
|
|
106
|
-
label: 'Width',
|
|
107
|
-
placeholder: 'Auto',
|
|
108
|
-
min: 0,
|
|
109
|
-
units: [
|
|
110
|
-
'px',
|
|
111
|
-
'%'
|
|
112
|
-
],
|
|
113
|
-
hide: true,
|
|
114
|
-
devices: {
|
|
115
|
-
desktop: {
|
|
116
|
-
default: '100%'
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
id: 'combineHeight',
|
|
122
|
-
type: 'input:unit',
|
|
123
|
-
label: 'Height',
|
|
124
|
-
placeholder: 'Auto',
|
|
125
|
-
min: 0,
|
|
126
|
-
units: [
|
|
127
|
-
'px'
|
|
128
|
-
],
|
|
129
|
-
default: '45px'
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
id: 'variantPresets',
|
|
133
|
-
label: 'Use Option Swatches',
|
|
134
|
-
type: 'variant:presets',
|
|
135
|
-
default: [
|
|
136
|
-
{
|
|
137
|
-
optionName: 'base',
|
|
138
|
-
optionType: 'rectangle_list',
|
|
139
|
-
presets: {
|
|
140
|
-
...colorPresetConfig,
|
|
141
|
-
...rectangleListPresetConfig,
|
|
142
|
-
...imagePresetConfig,
|
|
143
|
-
...imageShopifyPresetConfig,
|
|
144
|
-
...dropdownPresetConfig
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
],
|
|
148
|
-
hyperlinkInfo: {
|
|
149
|
-
modal: 'manage_swatches'
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
id: 'soldOutStyle',
|
|
154
|
-
type: 'select',
|
|
155
|
-
default: 'line',
|
|
156
|
-
options: [
|
|
157
|
-
{
|
|
158
|
-
label: 'None',
|
|
159
|
-
value: 'none'
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
label: 'Unclickable',
|
|
163
|
-
value: 'disable'
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
label: 'Cross-out',
|
|
167
|
-
value: 'line',
|
|
168
|
-
icon: `sold-out-mark-line`
|
|
169
|
-
}
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
]
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
id: 'options',
|
|
176
|
-
type: 'group',
|
|
177
|
-
label: 'Options',
|
|
178
|
-
controls: [
|
|
179
|
-
{
|
|
180
|
-
id: 'layout',
|
|
181
|
-
label: 'Layout',
|
|
182
|
-
type: 'layout-segment',
|
|
183
|
-
iconViewBox: '0 0 66 45',
|
|
184
|
-
enableItemBackground: true,
|
|
185
|
-
devices: {
|
|
186
|
-
desktop: {
|
|
187
|
-
default: 'vertical'
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
options: [
|
|
191
|
-
{
|
|
192
|
-
label: 'Horizontal',
|
|
193
|
-
value: 'horizontal',
|
|
194
|
-
type: 'arrange'
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
label: 'Vertical',
|
|
198
|
-
value: 'vertical',
|
|
199
|
-
type: 'arrange'
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
id: 'column',
|
|
205
|
-
label: 'Column',
|
|
206
|
-
type: 'select',
|
|
207
|
-
devices: {
|
|
208
|
-
desktop: {
|
|
209
|
-
default: 1
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
options: [
|
|
213
|
-
{
|
|
214
|
-
label: '1 column',
|
|
215
|
-
value: 1
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
label: '2 columns',
|
|
219
|
-
value: 2
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
label: '3 columns',
|
|
223
|
-
value: 3
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
label: '4 columns',
|
|
227
|
-
value: 4
|
|
228
|
-
}
|
|
229
|
-
]
|
|
230
|
-
}
|
|
231
|
-
]
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
id: 'variantDisplay',
|
|
235
|
-
type: 'group',
|
|
236
|
-
label: 'Variant Display',
|
|
237
|
-
controls: [
|
|
238
|
-
{
|
|
239
|
-
id: 'hasPreSelected',
|
|
240
|
-
type: 'toggle',
|
|
241
|
-
label: 'hasPreSelected',
|
|
242
|
-
default: true
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
id: 'selectVariantDefault',
|
|
246
|
-
type: 'select-variant',
|
|
247
|
-
label: 'Select Default Variant',
|
|
248
|
-
hide: true
|
|
249
|
-
}
|
|
250
|
-
]
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
id: 'blankText',
|
|
254
|
-
label: 'Blank Option Text',
|
|
255
|
-
type: 'input',
|
|
256
|
-
hide: true,
|
|
257
|
-
default: 'Please select an option'
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
id: 'hasOnlyDefaultVariant',
|
|
261
|
-
label: 'Blank Option Text',
|
|
262
|
-
type: 'variant:default',
|
|
263
|
-
hide: true,
|
|
264
|
-
default: false
|
|
265
|
-
}
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
id: 'style',
|
|
270
|
-
controls: [
|
|
271
|
-
{
|
|
272
|
-
id: 'dimension',
|
|
273
|
-
type: 'group',
|
|
274
|
-
label: 'Variants Dimension',
|
|
275
|
-
controls: [
|
|
276
|
-
{
|
|
277
|
-
id: 'fullWidth',
|
|
278
|
-
label: 'Full Width',
|
|
279
|
-
type: 'toggle',
|
|
280
|
-
devices: {
|
|
281
|
-
desktop: {
|
|
282
|
-
default: true
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
id: 'width',
|
|
288
|
-
type: 'input:unit',
|
|
289
|
-
label: 'Width',
|
|
290
|
-
min: 0,
|
|
291
|
-
units: [
|
|
292
|
-
'px',
|
|
293
|
-
'%'
|
|
294
|
-
],
|
|
295
|
-
hide: true,
|
|
296
|
-
devices: {
|
|
297
|
-
desktop: {
|
|
298
|
-
default: '100%'
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
id: 'optionSpacing',
|
|
304
|
-
label: 'Option Spacing',
|
|
305
|
-
type: 'input:unit',
|
|
306
|
-
units: [
|
|
307
|
-
'px'
|
|
308
|
-
],
|
|
309
|
-
placeholder: 'Auto',
|
|
310
|
-
default: '30px'
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
id: 'labelGap',
|
|
314
|
-
label: 'Gap',
|
|
315
|
-
type: 'input:unit',
|
|
316
|
-
units: [
|
|
317
|
-
'px'
|
|
318
|
-
],
|
|
319
|
-
default: '8px'
|
|
320
|
-
}
|
|
321
|
-
]
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
id: 'swatchDimension',
|
|
325
|
-
type: 'group',
|
|
326
|
-
label: 'Swatch Dimension',
|
|
327
|
-
controls: [
|
|
328
|
-
{
|
|
329
|
-
id: 'swatchAutoWidth',
|
|
330
|
-
label: 'Auto Width',
|
|
331
|
-
type: 'toggle',
|
|
332
|
-
devices: {
|
|
333
|
-
desktop: {
|
|
334
|
-
default: true
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
id: 'swatchWidth',
|
|
340
|
-
type: 'input:unit',
|
|
341
|
-
label: 'Width',
|
|
342
|
-
placeholder: 'Auto Width',
|
|
343
|
-
min: 0,
|
|
344
|
-
units: [
|
|
345
|
-
'px',
|
|
346
|
-
'%'
|
|
347
|
-
],
|
|
348
|
-
hide: true,
|
|
349
|
-
devices: {
|
|
350
|
-
desktop: {
|
|
351
|
-
default: '80px'
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
id: 'swatchHeight',
|
|
357
|
-
type: 'input:unit',
|
|
358
|
-
label: 'Height',
|
|
359
|
-
placeholder: 'Auto Height',
|
|
360
|
-
min: 0,
|
|
361
|
-
units: [
|
|
362
|
-
'px'
|
|
363
|
-
],
|
|
364
|
-
devices: {
|
|
365
|
-
desktop: {
|
|
366
|
-
default: '45px'
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
id: 'swatchSpacing',
|
|
372
|
-
label: 'Swatch Spacing',
|
|
373
|
-
type: 'input:unit',
|
|
374
|
-
units: [
|
|
375
|
-
'px'
|
|
376
|
-
],
|
|
377
|
-
placeholder: 'Auto',
|
|
378
|
-
default: 'var(--g-s-m)'
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
id: 'marginBottom',
|
|
382
|
-
label: 'Margin Bottom',
|
|
383
|
-
type: 'input:unit',
|
|
384
|
-
units: [
|
|
385
|
-
'px'
|
|
386
|
-
],
|
|
387
|
-
devices: {
|
|
388
|
-
desktop: {
|
|
389
|
-
default: 'var(--g-s-xl)'
|
|
390
|
-
},
|
|
391
|
-
mobile: {
|
|
392
|
-
default: 'var(--g-s-xl)'
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
]
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
id: 'align',
|
|
400
|
-
label: 'Align',
|
|
401
|
-
type: 'segment',
|
|
402
|
-
options: [
|
|
403
|
-
{
|
|
404
|
-
label: 'Left',
|
|
405
|
-
value: 'left',
|
|
406
|
-
type: 'align'
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
label: 'Center',
|
|
410
|
-
value: 'center',
|
|
411
|
-
type: 'align'
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
label: 'Right',
|
|
415
|
-
value: 'right',
|
|
416
|
-
type: 'align'
|
|
417
|
-
}
|
|
418
|
-
],
|
|
419
|
-
devices: {
|
|
420
|
-
desktop: {
|
|
421
|
-
default: 'left'
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
id: 'labelGroup',
|
|
427
|
-
type: 'group',
|
|
428
|
-
label: 'Label',
|
|
429
|
-
controls: [
|
|
430
|
-
{
|
|
431
|
-
id: 'labelTypo',
|
|
432
|
-
type: 'typography-v2',
|
|
433
|
-
label: 'Typography',
|
|
434
|
-
default: {
|
|
435
|
-
type: 'paragraph-2',
|
|
436
|
-
attrs: {
|
|
437
|
-
color: 'text-1',
|
|
438
|
-
bold: true
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
ignoreReRender: true
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
id: 'labelColor',
|
|
445
|
-
type: 'colorpicker',
|
|
446
|
-
label: 'Text Color',
|
|
447
|
-
default: 'text-2'
|
|
448
|
-
}
|
|
449
|
-
]
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
id: 'labelGroup',
|
|
453
|
-
type: 'group',
|
|
454
|
-
label: 'Option Value',
|
|
455
|
-
controls: [
|
|
456
|
-
{
|
|
457
|
-
id: 'optionTypo',
|
|
458
|
-
type: 'typography-v2',
|
|
459
|
-
label: 'Typography',
|
|
460
|
-
default: {
|
|
461
|
-
type: 'paragraph-2'
|
|
462
|
-
},
|
|
463
|
-
hiddenSetting: {
|
|
464
|
-
color: true
|
|
465
|
-
},
|
|
466
|
-
ignoreReRender: true
|
|
467
|
-
}
|
|
468
|
-
]
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
id: 'behavior-state',
|
|
472
|
-
type: 'behavior-state',
|
|
473
|
-
label: 'Option Value',
|
|
474
|
-
controls: [
|
|
475
|
-
{
|
|
476
|
-
id: 'optionBgColor',
|
|
477
|
-
type: 'colorpicker',
|
|
478
|
-
label: 'Background Color',
|
|
479
|
-
default: {
|
|
480
|
-
normal: 'bg-3',
|
|
481
|
-
hover: 'bg-3',
|
|
482
|
-
active: 'bg-3'
|
|
483
|
-
},
|
|
484
|
-
state: {
|
|
485
|
-
active: true,
|
|
486
|
-
hover: true,
|
|
487
|
-
normal: true
|
|
488
|
-
}
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
id: 'optionTextColor',
|
|
492
|
-
type: 'colorpicker',
|
|
493
|
-
label: 'Text Color',
|
|
494
|
-
default: {
|
|
495
|
-
normal: 'text-2',
|
|
496
|
-
hover: 'text-2',
|
|
497
|
-
active: 'text-2'
|
|
498
|
-
},
|
|
499
|
-
state: {
|
|
500
|
-
active: true,
|
|
501
|
-
hover: true,
|
|
502
|
-
normal: true
|
|
503
|
-
}
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
id: 'optionBorder',
|
|
507
|
-
type: 'border',
|
|
508
|
-
label: 'Border',
|
|
509
|
-
default: {
|
|
510
|
-
normal: {
|
|
511
|
-
borderType: 'style-2',
|
|
512
|
-
border: 'solid',
|
|
513
|
-
color: 'line-2',
|
|
514
|
-
isCustom: false,
|
|
515
|
-
width: '1px 1px 1px 1px',
|
|
516
|
-
borderWidth: '1px'
|
|
517
|
-
},
|
|
518
|
-
active: {
|
|
519
|
-
borderType: 'style-3',
|
|
520
|
-
border: 'solid',
|
|
521
|
-
color: 'line-3',
|
|
522
|
-
isCustom: false,
|
|
523
|
-
width: '2px 2px 2px 2px',
|
|
524
|
-
borderWidth: '2px'
|
|
525
|
-
},
|
|
526
|
-
hover: {
|
|
527
|
-
borderType: 'style-3',
|
|
528
|
-
border: 'solid',
|
|
529
|
-
color: 'line-3',
|
|
530
|
-
isCustom: false,
|
|
531
|
-
width: '1px 1px 1px 1px',
|
|
532
|
-
borderWidth: '1px'
|
|
533
|
-
}
|
|
534
|
-
},
|
|
535
|
-
state: {
|
|
536
|
-
active: true,
|
|
537
|
-
hover: true,
|
|
538
|
-
normal: true
|
|
539
|
-
}
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
id: 'optionRounded',
|
|
543
|
-
type: 'radius-preset',
|
|
544
|
-
label: 'Border Radius',
|
|
545
|
-
default: {
|
|
546
|
-
normal: {
|
|
547
|
-
btrr: '0px',
|
|
548
|
-
bblr: '0px',
|
|
549
|
-
bbrr: '0px',
|
|
550
|
-
btlr: '0px',
|
|
551
|
-
radiusType: 'custom'
|
|
552
|
-
},
|
|
553
|
-
hover: {
|
|
554
|
-
btrr: '0px',
|
|
555
|
-
bblr: '0px',
|
|
556
|
-
bbrr: '0px',
|
|
557
|
-
btlr: '0px',
|
|
558
|
-
radiusType: 'custom'
|
|
559
|
-
},
|
|
560
|
-
active: {
|
|
561
|
-
btrr: '0px',
|
|
562
|
-
bblr: '0px',
|
|
563
|
-
bbrr: '0px',
|
|
564
|
-
btlr: '0px',
|
|
565
|
-
radiusType: 'custom'
|
|
566
|
-
}
|
|
567
|
-
},
|
|
568
|
-
state: {
|
|
569
|
-
active: true,
|
|
570
|
-
hover: true,
|
|
571
|
-
normal: true
|
|
572
|
-
}
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
id: 'optionHasShadow',
|
|
576
|
-
type: 'toggle',
|
|
577
|
-
label: 'Shadow Enable',
|
|
578
|
-
default: {
|
|
579
|
-
normal: false,
|
|
580
|
-
hover: false,
|
|
581
|
-
active: false
|
|
582
|
-
},
|
|
583
|
-
state: {
|
|
584
|
-
normal: true,
|
|
585
|
-
hover: true,
|
|
586
|
-
active: true
|
|
587
|
-
}
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
id: 'optionShadow',
|
|
591
|
-
type: 'boxShadow',
|
|
592
|
-
label: 'Shadow',
|
|
593
|
-
hideOnState: {
|
|
594
|
-
normal: true,
|
|
595
|
-
hover: true,
|
|
596
|
-
active: true
|
|
597
|
-
},
|
|
598
|
-
default: {
|
|
599
|
-
normal: {
|
|
600
|
-
type: 'shadow-1',
|
|
601
|
-
distance: '4px',
|
|
602
|
-
blur: '12px',
|
|
603
|
-
spread: '0px',
|
|
604
|
-
color: 'rgba(0, 0, 0, 0.20)',
|
|
605
|
-
angle: 90
|
|
606
|
-
},
|
|
607
|
-
hover: {
|
|
608
|
-
type: 'shadow-1',
|
|
609
|
-
distance: '4px',
|
|
610
|
-
blur: '12px',
|
|
611
|
-
spread: '0px',
|
|
612
|
-
color: 'rgba(0, 0, 0, 0.20)',
|
|
613
|
-
angle: 90
|
|
614
|
-
},
|
|
615
|
-
active: {
|
|
616
|
-
type: 'shadow-1',
|
|
617
|
-
distance: '4px',
|
|
618
|
-
blur: '12px',
|
|
619
|
-
spread: '0px',
|
|
620
|
-
color: 'rgba(0, 0, 0, 0.20)',
|
|
621
|
-
angle: 90
|
|
622
|
-
}
|
|
623
|
-
},
|
|
624
|
-
state: {
|
|
625
|
-
normal: true,
|
|
626
|
-
hover: true,
|
|
627
|
-
active: true
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
]
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
id: 'dropdownItemWidth',
|
|
634
|
-
type: 'segment',
|
|
635
|
-
label: 'Dropdown Width',
|
|
636
|
-
devices: {
|
|
637
|
-
desktop: {
|
|
638
|
-
default: 'fill'
|
|
639
|
-
},
|
|
640
|
-
mobile: {
|
|
641
|
-
default: 'fill'
|
|
642
|
-
},
|
|
643
|
-
tablet: {
|
|
644
|
-
default: 'fill'
|
|
645
|
-
}
|
|
646
|
-
},
|
|
647
|
-
options: [
|
|
648
|
-
{
|
|
649
|
-
label: 'Fill',
|
|
650
|
-
value: 'fill'
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
label: 'Fixed',
|
|
654
|
-
value: 'fixed'
|
|
655
|
-
}
|
|
656
|
-
]
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
id: 'fixedDropdownWidth',
|
|
660
|
-
type: 'input:unit',
|
|
661
|
-
label: 'Fixed Width',
|
|
662
|
-
units: [
|
|
663
|
-
'px',
|
|
664
|
-
'%'
|
|
665
|
-
],
|
|
666
|
-
devices: {
|
|
667
|
-
desktop: {
|
|
668
|
-
default: '240px'
|
|
669
|
-
},
|
|
670
|
-
mobile: {
|
|
671
|
-
default: '240px'
|
|
672
|
-
},
|
|
673
|
-
tablet: {
|
|
674
|
-
default: '240px'
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
id: 'swatchItemWidth',
|
|
680
|
-
type: 'segment',
|
|
681
|
-
label: 'Swatch Width',
|
|
682
|
-
devices: {
|
|
683
|
-
desktop: {
|
|
684
|
-
default: 'auto'
|
|
685
|
-
}
|
|
686
|
-
},
|
|
687
|
-
options: [
|
|
688
|
-
{
|
|
689
|
-
label: 'Fill',
|
|
690
|
-
value: 'auto'
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
label: 'Fixed',
|
|
694
|
-
value: 'fixed'
|
|
695
|
-
}
|
|
696
|
-
]
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
id: 'fixedDropdownWidth',
|
|
700
|
-
type: 'input:unit',
|
|
701
|
-
label: 'Fixed Width',
|
|
702
|
-
units: [
|
|
703
|
-
'px',
|
|
704
|
-
'%'
|
|
705
|
-
],
|
|
706
|
-
devices: {
|
|
707
|
-
desktop: {
|
|
708
|
-
default: '240px'
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
]
|
|
713
|
-
}
|
|
714
|
-
],
|
|
715
|
-
ui: [
|
|
716
|
-
{
|
|
717
|
-
type: 'group',
|
|
718
|
-
label: {
|
|
719
|
-
en: 'Variants settings'
|
|
720
|
-
},
|
|
721
|
-
controls: [
|
|
722
|
-
{
|
|
723
|
-
type: 'control',
|
|
724
|
-
label: {
|
|
725
|
-
en: 'Type'
|
|
726
|
-
},
|
|
727
|
-
setting: {
|
|
728
|
-
id: 'optionType'
|
|
729
|
-
}
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
type: 'control',
|
|
733
|
-
label: {
|
|
734
|
-
en: 'Options price'
|
|
735
|
-
},
|
|
736
|
-
setting: {
|
|
737
|
-
id: 'price'
|
|
738
|
-
},
|
|
739
|
-
condition: "optionType == 'groupOption'"
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
type: 'control',
|
|
743
|
-
label: {
|
|
744
|
-
en: 'Sold out style'
|
|
745
|
-
},
|
|
746
|
-
setting: {
|
|
747
|
-
id: 'soldOutStyle'
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
]
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
type: 'control',
|
|
754
|
-
condition: 'false',
|
|
755
|
-
layout: 'vertical',
|
|
756
|
-
label: {
|
|
757
|
-
en: 'Variant style'
|
|
758
|
-
},
|
|
759
|
-
setting: {
|
|
760
|
-
id: 'showAsSwatches'
|
|
761
|
-
}
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
type: 'control',
|
|
765
|
-
condition: "optionType == 'singleOption'",
|
|
766
|
-
layout: 'vertical',
|
|
767
|
-
label: {
|
|
768
|
-
en: 'Variant style'
|
|
769
|
-
},
|
|
770
|
-
setting: {
|
|
771
|
-
id: 'variantPresets'
|
|
772
|
-
}
|
|
773
|
-
},
|
|
774
|
-
{
|
|
775
|
-
type: 'group',
|
|
776
|
-
condition: "optionType === 'groupOption'",
|
|
777
|
-
layout: 'vertical',
|
|
778
|
-
label: {
|
|
779
|
-
en: 'Variant style'
|
|
780
|
-
},
|
|
781
|
-
controls: [
|
|
782
|
-
{
|
|
783
|
-
type: 'control',
|
|
784
|
-
label: {
|
|
785
|
-
en: ''
|
|
786
|
-
},
|
|
787
|
-
setting: {
|
|
788
|
-
id: 'hasOnlyDefaultVariant'
|
|
789
|
-
},
|
|
790
|
-
layout: 'vertical',
|
|
791
|
-
condition: 'hasOnlyDefaultVariant === true'
|
|
792
|
-
},
|
|
793
|
-
{
|
|
794
|
-
type: 'control',
|
|
795
|
-
label: {
|
|
796
|
-
en: 'Width'
|
|
797
|
-
},
|
|
798
|
-
setting: {
|
|
799
|
-
id: 'combineWidth'
|
|
800
|
-
},
|
|
801
|
-
condition: 'hasOnlyDefaultVariant === false'
|
|
802
|
-
},
|
|
803
|
-
{
|
|
804
|
-
type: 'control',
|
|
805
|
-
label: {
|
|
806
|
-
en: 'Height'
|
|
807
|
-
},
|
|
808
|
-
setting: {
|
|
809
|
-
id: 'combineHeight'
|
|
810
|
-
},
|
|
811
|
-
condition: 'hasOnlyDefaultVariant === false'
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
type: 'tab',
|
|
815
|
-
label: {
|
|
816
|
-
en: 'States'
|
|
817
|
-
},
|
|
818
|
-
isMoreSetting: true,
|
|
819
|
-
condition: 'hasOnlyDefaultVariant === false',
|
|
820
|
-
controls: [
|
|
821
|
-
{
|
|
822
|
-
type: 'group',
|
|
823
|
-
label: {
|
|
824
|
-
en: 'Normal'
|
|
825
|
-
},
|
|
826
|
-
controls: [
|
|
827
|
-
{
|
|
828
|
-
type: 'control',
|
|
829
|
-
label: {
|
|
830
|
-
en: 'Background color'
|
|
831
|
-
},
|
|
832
|
-
setting: {
|
|
833
|
-
id: 'optionBgColor',
|
|
834
|
-
state: 'normal'
|
|
835
|
-
}
|
|
836
|
-
},
|
|
837
|
-
{
|
|
838
|
-
type: 'control',
|
|
839
|
-
label: {
|
|
840
|
-
en: 'Text color'
|
|
841
|
-
},
|
|
842
|
-
setting: {
|
|
843
|
-
id: 'optionTextColor',
|
|
844
|
-
state: 'normal'
|
|
845
|
-
}
|
|
846
|
-
},
|
|
847
|
-
{
|
|
848
|
-
type: 'control',
|
|
849
|
-
options: {
|
|
850
|
-
labelPosition: 'start'
|
|
851
|
-
},
|
|
852
|
-
label: {
|
|
853
|
-
en: 'Border'
|
|
854
|
-
},
|
|
855
|
-
setting: {
|
|
856
|
-
id: 'optionBorder',
|
|
857
|
-
state: 'normal'
|
|
858
|
-
}
|
|
859
|
-
},
|
|
860
|
-
{
|
|
861
|
-
type: 'control',
|
|
862
|
-
label: {
|
|
863
|
-
en: 'Corner'
|
|
864
|
-
},
|
|
865
|
-
setting: {
|
|
866
|
-
id: 'optionRounded',
|
|
867
|
-
state: 'normal'
|
|
868
|
-
}
|
|
869
|
-
},
|
|
870
|
-
{
|
|
871
|
-
type: 'control',
|
|
872
|
-
label: {
|
|
873
|
-
en: 'Shadow'
|
|
874
|
-
},
|
|
875
|
-
setting: {
|
|
876
|
-
id: 'optionHasShadow',
|
|
877
|
-
state: 'normal'
|
|
878
|
-
}
|
|
879
|
-
},
|
|
880
|
-
{
|
|
881
|
-
type: 'control',
|
|
882
|
-
label: {
|
|
883
|
-
en: ''
|
|
884
|
-
},
|
|
885
|
-
condition: 'optionHasShadow.normal === true',
|
|
886
|
-
layout: 'vertical',
|
|
887
|
-
setting: {
|
|
888
|
-
id: 'optionShadow',
|
|
889
|
-
state: 'normal'
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
]
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
type: 'group',
|
|
896
|
-
label: {
|
|
897
|
-
en: 'Hover'
|
|
898
|
-
},
|
|
899
|
-
controls: [
|
|
900
|
-
{
|
|
901
|
-
type: 'control',
|
|
902
|
-
label: {
|
|
903
|
-
en: 'Background color'
|
|
904
|
-
},
|
|
905
|
-
setting: {
|
|
906
|
-
id: 'optionBgColor',
|
|
907
|
-
state: 'hover'
|
|
908
|
-
}
|
|
909
|
-
},
|
|
910
|
-
{
|
|
911
|
-
type: 'control',
|
|
912
|
-
label: {
|
|
913
|
-
en: 'Text color'
|
|
914
|
-
},
|
|
915
|
-
setting: {
|
|
916
|
-
id: 'optionTextColor',
|
|
917
|
-
state: 'hover'
|
|
918
|
-
}
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
type: 'control',
|
|
922
|
-
options: {
|
|
923
|
-
labelPosition: 'start'
|
|
924
|
-
},
|
|
925
|
-
label: {
|
|
926
|
-
en: 'Border'
|
|
927
|
-
},
|
|
928
|
-
setting: {
|
|
929
|
-
id: 'optionBorder',
|
|
930
|
-
state: 'hover'
|
|
931
|
-
}
|
|
932
|
-
},
|
|
933
|
-
{
|
|
934
|
-
type: 'control',
|
|
935
|
-
label: {
|
|
936
|
-
en: 'Corner'
|
|
937
|
-
},
|
|
938
|
-
setting: {
|
|
939
|
-
id: 'optionRounded',
|
|
940
|
-
state: 'hover'
|
|
941
|
-
}
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
type: 'control',
|
|
945
|
-
label: {
|
|
946
|
-
en: 'Shadow'
|
|
947
|
-
},
|
|
948
|
-
setting: {
|
|
949
|
-
id: 'optionHasShadow',
|
|
950
|
-
state: 'hover'
|
|
951
|
-
}
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
type: 'control',
|
|
955
|
-
label: {
|
|
956
|
-
en: ''
|
|
957
|
-
},
|
|
958
|
-
condition: 'optionHasShadow.hover === true',
|
|
959
|
-
layout: 'vertical',
|
|
960
|
-
setting: {
|
|
961
|
-
id: 'optionShadow',
|
|
962
|
-
state: 'hover'
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
]
|
|
966
|
-
},
|
|
967
|
-
{
|
|
968
|
-
type: 'group',
|
|
969
|
-
label: {
|
|
970
|
-
en: 'Active'
|
|
971
|
-
},
|
|
972
|
-
controls: [
|
|
973
|
-
{
|
|
974
|
-
type: 'control',
|
|
975
|
-
label: {
|
|
976
|
-
en: 'Background color'
|
|
977
|
-
},
|
|
978
|
-
setting: {
|
|
979
|
-
id: 'optionBgColor',
|
|
980
|
-
state: 'active'
|
|
981
|
-
}
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
type: 'control',
|
|
985
|
-
label: {
|
|
986
|
-
en: 'Text color'
|
|
987
|
-
},
|
|
988
|
-
setting: {
|
|
989
|
-
id: 'optionTextColor',
|
|
990
|
-
state: 'active'
|
|
991
|
-
}
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
type: 'control',
|
|
995
|
-
options: {
|
|
996
|
-
labelPosition: 'start'
|
|
997
|
-
},
|
|
998
|
-
label: {
|
|
999
|
-
en: 'Border'
|
|
1000
|
-
},
|
|
1001
|
-
setting: {
|
|
1002
|
-
id: 'optionBorder',
|
|
1003
|
-
state: 'active'
|
|
1004
|
-
}
|
|
1005
|
-
},
|
|
1006
|
-
{
|
|
1007
|
-
type: 'control',
|
|
1008
|
-
label: {
|
|
1009
|
-
en: 'Corner'
|
|
1010
|
-
},
|
|
1011
|
-
setting: {
|
|
1012
|
-
id: 'optionRounded',
|
|
1013
|
-
state: 'active'
|
|
1014
|
-
}
|
|
1015
|
-
},
|
|
1016
|
-
{
|
|
1017
|
-
type: 'control',
|
|
1018
|
-
label: {
|
|
1019
|
-
en: 'Shadow'
|
|
1020
|
-
},
|
|
1021
|
-
setting: {
|
|
1022
|
-
id: 'optionHasShadow',
|
|
1023
|
-
state: 'active'
|
|
1024
|
-
}
|
|
1025
|
-
},
|
|
1026
|
-
{
|
|
1027
|
-
type: 'control',
|
|
1028
|
-
label: {
|
|
1029
|
-
en: ''
|
|
1030
|
-
},
|
|
1031
|
-
layout: 'vertical',
|
|
1032
|
-
condition: 'optionHasShadow.active === true',
|
|
1033
|
-
setting: {
|
|
1034
|
-
id: 'optionShadow',
|
|
1035
|
-
state: 'active'
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
]
|
|
1039
|
-
}
|
|
1040
|
-
]
|
|
1041
|
-
}
|
|
1042
|
-
]
|
|
1043
|
-
},
|
|
1044
|
-
{
|
|
1045
|
-
type: 'group',
|
|
1046
|
-
label: {
|
|
1047
|
-
en: ''
|
|
1048
|
-
},
|
|
1049
|
-
condition: "optionType !== 'groupOption'",
|
|
1050
|
-
controls: [
|
|
1051
|
-
{
|
|
1052
|
-
type: 'control',
|
|
1053
|
-
label: {
|
|
1054
|
-
en: 'Title'
|
|
1055
|
-
},
|
|
1056
|
-
setting: {
|
|
1057
|
-
id: 'label'
|
|
1058
|
-
},
|
|
1059
|
-
options: {
|
|
1060
|
-
label: 'large',
|
|
1061
|
-
styleControl: {
|
|
1062
|
-
width: 'auto'
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
type: 'control',
|
|
1068
|
-
setting: {
|
|
1069
|
-
id: 'labelTypo'
|
|
1070
|
-
},
|
|
1071
|
-
layout: 'vertical'
|
|
1072
|
-
},
|
|
1073
|
-
{
|
|
1074
|
-
type: 'control',
|
|
1075
|
-
condition: 'label == true',
|
|
1076
|
-
setting: {
|
|
1077
|
-
id: 'labelTypography'
|
|
1078
|
-
},
|
|
1079
|
-
layout: 'vertical'
|
|
1080
|
-
},
|
|
1081
|
-
{
|
|
1082
|
-
type: 'control',
|
|
1083
|
-
condition: 'label == true',
|
|
1084
|
-
label: {
|
|
1085
|
-
en: 'Arrangement'
|
|
1086
|
-
},
|
|
1087
|
-
setting: {
|
|
1088
|
-
id: 'layout'
|
|
1089
|
-
}
|
|
1090
|
-
},
|
|
1091
|
-
{
|
|
1092
|
-
type: 'control',
|
|
1093
|
-
condition: 'label == true',
|
|
1094
|
-
label: {
|
|
1095
|
-
en: 'Gap'
|
|
1096
|
-
},
|
|
1097
|
-
setting: {
|
|
1098
|
-
id: 'labelGap'
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
]
|
|
1102
|
-
},
|
|
1103
|
-
{
|
|
1104
|
-
type: 'group',
|
|
1105
|
-
label: {
|
|
1106
|
-
en: 'Option value text'
|
|
1107
|
-
},
|
|
1108
|
-
controls: [
|
|
1109
|
-
{
|
|
1110
|
-
type: 'control',
|
|
1111
|
-
setting: {
|
|
1112
|
-
id: 'optionTypography'
|
|
1113
|
-
},
|
|
1114
|
-
layout: 'vertical'
|
|
1115
|
-
},
|
|
1116
|
-
{
|
|
1117
|
-
type: 'control',
|
|
1118
|
-
setting: {
|
|
1119
|
-
id: 'optionTypo'
|
|
1120
|
-
},
|
|
1121
|
-
layout: 'vertical'
|
|
1122
|
-
}
|
|
1123
|
-
]
|
|
1124
|
-
},
|
|
1125
|
-
{
|
|
1126
|
-
type: 'group',
|
|
1127
|
-
label: {
|
|
1128
|
-
en: ''
|
|
1129
|
-
},
|
|
1130
|
-
controls: [
|
|
1131
|
-
{
|
|
1132
|
-
type: 'control',
|
|
1133
|
-
label: {
|
|
1134
|
-
en: 'Pre-selected option'
|
|
1135
|
-
},
|
|
1136
|
-
setting: {
|
|
1137
|
-
id: 'hasPreSelected'
|
|
1138
|
-
},
|
|
1139
|
-
options: {
|
|
1140
|
-
label: 'large',
|
|
1141
|
-
styleControl: {
|
|
1142
|
-
width: 'auto'
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
},
|
|
1146
|
-
{
|
|
1147
|
-
type: 'control',
|
|
1148
|
-
condition: 'hasPreSelected == true',
|
|
1149
|
-
layout: 'vertical',
|
|
1150
|
-
setting: {
|
|
1151
|
-
id: 'selectVariantDefault'
|
|
1152
|
-
},
|
|
1153
|
-
options: {
|
|
1154
|
-
styleControl: {
|
|
1155
|
-
'max-width': '100%'
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
},
|
|
1159
|
-
{
|
|
1160
|
-
type: 'control',
|
|
1161
|
-
condition: 'hasPreSelected == false',
|
|
1162
|
-
label: {
|
|
1163
|
-
en: 'Blank option text'
|
|
1164
|
-
},
|
|
1165
|
-
setting: {
|
|
1166
|
-
id: 'blankText'
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
]
|
|
1170
|
-
},
|
|
1171
|
-
{
|
|
1172
|
-
type: 'group',
|
|
1173
|
-
label: {
|
|
1174
|
-
en: 'Size'
|
|
1175
|
-
},
|
|
1176
|
-
controls: [
|
|
1177
|
-
{
|
|
1178
|
-
type: 'control',
|
|
1179
|
-
label: {
|
|
1180
|
-
en: 'Full width'
|
|
1181
|
-
},
|
|
1182
|
-
setting: {
|
|
1183
|
-
id: 'fullWidth'
|
|
1184
|
-
}
|
|
1185
|
-
},
|
|
1186
|
-
{
|
|
1187
|
-
type: 'control',
|
|
1188
|
-
label: {
|
|
1189
|
-
en: 'Width'
|
|
1190
|
-
},
|
|
1191
|
-
condition: 'fullWidth == false',
|
|
1192
|
-
setting: {
|
|
1193
|
-
id: 'width'
|
|
1194
|
-
}
|
|
1195
|
-
},
|
|
1196
|
-
{
|
|
1197
|
-
type: 'control',
|
|
1198
|
-
label: {
|
|
1199
|
-
en: 'Spacing'
|
|
1200
|
-
},
|
|
1201
|
-
setting: {
|
|
1202
|
-
id: 'marginBottom'
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
]
|
|
1206
|
-
},
|
|
1207
|
-
{
|
|
1208
|
-
type: 'control',
|
|
1209
|
-
label: {
|
|
1210
|
-
en: 'Align'
|
|
1211
|
-
},
|
|
1212
|
-
setting: {
|
|
1213
|
-
id: 'align'
|
|
1214
|
-
},
|
|
1215
|
-
options: {
|
|
1216
|
-
label: 'large'
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
],
|
|
14
|
+
settings: ProductVariantSettings,
|
|
15
|
+
ui: SettingUIV1,
|
|
16
|
+
uiV2: SettingUIV2,
|
|
1220
17
|
editorConfigs: {
|
|
1221
18
|
placeholder: {
|
|
1222
19
|
flowTag: [
|
|
@@ -1224,170 +21,7 @@ const config = {
|
|
|
1224
21
|
]
|
|
1225
22
|
}
|
|
1226
23
|
},
|
|
1227
|
-
presets:
|
|
1228
|
-
{
|
|
1229
|
-
id: 'product-swatches',
|
|
1230
|
-
name: {
|
|
1231
|
-
en: 'Product Swatches'
|
|
1232
|
-
},
|
|
1233
|
-
icon: {
|
|
1234
|
-
desktop: `
|
|
1235
|
-
<svg width="96" height="42" viewBox="0 0 96 42" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1236
|
-
<path d="M7.08159 6.5H6.20091C6.14882 6.24669 6.05768 6.02415 5.92747 5.83239C5.79963 5.64062 5.64338 5.47964 5.45872 5.34943C5.27643 5.21686 5.07401 5.11742 4.85147 5.05114C4.62894 4.98485 4.39693 4.9517 4.15545 4.9517C3.71511 4.9517 3.3162 5.06297 2.95872 5.28551C2.6036 5.50805 2.3207 5.83594 2.11 6.26918C1.90166 6.70241 1.7975 7.2339 1.7975 7.86364C1.7975 8.49337 1.90166 9.02486 2.11 9.4581C2.3207 9.89134 2.6036 10.2192 2.95872 10.4418C3.3162 10.6643 3.71511 10.7756 4.15545 10.7756C4.39693 10.7756 4.62894 10.7424 4.85147 10.6761C5.07401 10.6098 5.27643 10.5116 5.45872 10.3814C5.64338 10.2488 5.79963 10.0866 5.92747 9.89489C6.05768 9.70076 6.14882 9.47822 6.20091 9.22727H7.08159C7.0153 9.59896 6.89456 9.93158 6.71937 10.2251C6.54418 10.5187 6.32638 10.7685 6.06596 10.9744C5.80555 11.178 5.51317 11.3331 5.18883 11.4396C4.86686 11.5462 4.5224 11.5994 4.15545 11.5994C3.53519 11.5994 2.98358 11.4479 2.50062 11.1449C2.01767 10.8419 1.6377 10.411 1.36071 9.85227C1.08372 9.29356 0.945224 8.63068 0.945224 7.86364C0.945224 7.09659 1.08372 6.43371 1.36071 5.875C1.6377 5.31629 2.01767 4.88542 2.50062 4.58239C2.98358 4.27936 3.53519 4.12784 4.15545 4.12784C4.5224 4.12784 4.86686 4.18111 5.18883 4.28764C5.51317 4.39418 5.80555 4.55043 6.06596 4.75639C6.32638 4.95999 6.54418 5.20857 6.71937 5.50213C6.89456 5.79332 7.0153 6.12595 7.08159 6.5ZM10.607 11.6136C10.1146 11.6136 9.6825 11.4964 9.31081 11.2621C8.9415 11.0277 8.65267 10.6998 8.44434 10.2784C8.23837 9.85701 8.13539 9.36458 8.13539 8.80114C8.13539 8.23295 8.23837 7.73698 8.44434 7.31321C8.65267 6.88944 8.9415 6.56037 9.31081 6.32599C9.6825 6.09162 10.1146 5.97443 10.607 5.97443C11.0994 5.97443 11.5303 6.09162 11.8996 6.32599C12.2713 6.56037 12.5601 6.88944 12.7661 7.31321C12.9744 7.73698 13.0786 8.23295 13.0786 8.80114C13.0786 9.36458 12.9744 9.85701 12.7661 10.2784C12.5601 10.6998 12.2713 11.0277 11.8996 11.2621C11.5303 11.4964 11.0994 11.6136 10.607 11.6136ZM10.607 10.8608C10.981 10.8608 11.2888 10.7649 11.5303 10.5732C11.7718 10.3814 11.9505 10.1293 12.0665 9.81676C12.1825 9.50426 12.2405 9.16572 12.2405 8.80114C12.2405 8.43655 12.1825 8.09683 12.0665 7.78196C11.9505 7.46709 11.7718 7.21259 11.5303 7.01847C11.2888 6.82434 10.981 6.72727 10.607 6.72727C10.2329 6.72727 9.92516 6.82434 9.68368 7.01847C9.44221 7.21259 9.26346 7.46709 9.14746 7.78196C9.03146 8.09683 8.97346 8.43655 8.97346 8.80114C8.97346 9.16572 9.03146 9.50426 9.14746 9.81676C9.26346 10.1293 9.44221 10.3814 9.68368 10.5732C9.92516 10.7649 10.2329 10.8608 10.607 10.8608ZM15.1959 4.22727V11.5H14.3579V4.22727H15.1959ZM18.9468 11.6136C18.4544 11.6136 18.0223 11.4964 17.6507 11.2621C17.2813 11.0277 16.9925 10.6998 16.7842 10.2784C16.5782 9.85701 16.4752 9.36458 16.4752 8.80114C16.4752 8.23295 16.5782 7.73698 16.7842 7.31321C16.9925 6.88944 17.2813 6.56037 17.6507 6.32599C18.0223 6.09162 18.4544 5.97443 18.9468 5.97443C19.4392 5.97443 19.8701 6.09162 20.2394 6.32599C20.6111 6.56037 20.8999 6.88944 21.1059 7.31321C21.3142 7.73698 21.4184 8.23295 21.4184 8.80114C21.4184 9.36458 21.3142 9.85701 21.1059 10.2784C20.8999 10.6998 20.6111 11.0277 20.2394 11.2621C19.8701 11.4964 19.4392 11.6136 18.9468 11.6136ZM18.9468 10.8608C19.3209 10.8608 19.6286 10.7649 19.8701 10.5732C20.1116 10.3814 20.2903 10.1293 20.4063 9.81676C20.5223 9.50426 20.5803 9.16572 20.5803 8.80114C20.5803 8.43655 20.5223 8.09683 20.4063 7.78196C20.2903 7.46709 20.1116 7.21259 19.8701 7.01847C19.6286 6.82434 19.3209 6.72727 18.9468 6.72727C18.5728 6.72727 18.265 6.82434 18.0235 7.01847C17.782 7.21259 17.6033 7.46709 17.4873 7.78196C17.3713 8.09683 17.3133 8.43655 17.3133 8.80114C17.3133 9.16572 17.3713 9.50426 17.4873 9.81676C17.6033 10.1293 17.782 10.3814 18.0235 10.5732C18.265 10.7649 18.5728 10.8608 18.9468 10.8608ZM22.6977 11.5V6.04545H23.5074V6.86932H23.5642C23.6636 6.59943 23.8435 6.38045 24.104 6.21236C24.3644 6.04427 24.6579 5.96023 24.9846 5.96023C25.0462 5.96023 25.1231 5.96141 25.2155 5.96378C25.3078 5.96615 25.3776 5.9697 25.425 5.97443V6.8267C25.3966 6.8196 25.3315 6.80895 25.2297 6.79474C25.1302 6.77817 25.0249 6.76989 24.9136 6.76989C24.6485 6.76989 24.4117 6.82552 24.2034 6.93679C23.9974 7.04569 23.8341 7.19721 23.7133 7.39134C23.595 7.5831 23.5358 7.80208 23.5358 8.0483V11.5H22.6977Z" fill="#D6D6D6"/>
|
|
1237
|
-
<g clip-path="url(#clip0_9753_94241)">
|
|
1238
|
-
<rect x="0.5" y="21" width="20" height="20" rx="10" fill="#252525" stroke="#757575"/>
|
|
1239
|
-
</g>
|
|
1240
|
-
<rect x="25" y="20.5" width="21" height="21" rx="10.5" fill="#5B5B5B"/>
|
|
1241
|
-
<rect x="25" y="20.5" width="21" height="21" rx="10.5" fill="#494949"/>
|
|
1242
|
-
<rect x="50" y="20.5" width="21" height="21" rx="10.5" fill="#5B5B5B"/>
|
|
1243
|
-
<rect x="75" y="20.5" width="21" height="21" rx="10.5" fill="#D6D6D6"/>
|
|
1244
|
-
<defs>
|
|
1245
|
-
<clipPath id="clip0_9753_94241">
|
|
1246
|
-
<rect width="21" height="21" fill="white" transform="translate(0 20.5)"/>
|
|
1247
|
-
</clipPath>
|
|
1248
|
-
</defs>
|
|
1249
|
-
</svg>
|
|
1250
|
-
`
|
|
1251
|
-
},
|
|
1252
|
-
components: [
|
|
1253
|
-
{
|
|
1254
|
-
tag: 'ProductVariants',
|
|
1255
|
-
settings: {
|
|
1256
|
-
showAsSwatches: true
|
|
1257
|
-
},
|
|
1258
|
-
advanced: {
|
|
1259
|
-
'spacing-setting': {
|
|
1260
|
-
desktop: {
|
|
1261
|
-
margin: {
|
|
1262
|
-
bottom: 'var(--g-s-l)'
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
]
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
id: 'product-variant',
|
|
1272
|
-
name: {
|
|
1273
|
-
en: 'Product Variants'
|
|
1274
|
-
},
|
|
1275
|
-
icon: {
|
|
1276
|
-
desktop: `
|
|
1277
|
-
<svg width="96" height="40" viewBox="0 0 96 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1278
|
-
<path d="M4.94585 5.54545C4.90323 5.18561 4.73041 4.90625 4.42738 4.70739C4.12435 4.50852 3.75266 4.40909 3.31232 4.40909C2.99035 4.40909 2.70863 4.46117 2.46715 4.56534C2.22804 4.66951 2.04102 4.81274 1.90607 4.99503C1.7735 5.17732 1.70721 5.38447 1.70721 5.61648C1.70721 5.81061 1.75337 5.97751 1.8457 6.11719C1.9404 6.2545 2.06114 6.36932 2.20792 6.46165C2.3547 6.55161 2.50858 6.62618 2.66957 6.68537C2.83055 6.74219 2.97852 6.78835 3.11346 6.82386L3.8521 7.02273C4.04149 7.07244 4.25219 7.1411 4.4842 7.22869C4.71857 7.31629 4.94229 7.43584 5.15536 7.58736C5.3708 7.73651 5.54835 7.92827 5.68803 8.16264C5.82771 8.39702 5.89755 8.68466 5.89755 9.02557C5.89755 9.41856 5.79457 9.77367 5.5886 10.0909C5.385 10.4081 5.08671 10.6603 4.69371 10.8473C4.30309 11.0343 3.82842 11.1278 3.26971 11.1278C2.74888 11.1278 2.29788 11.0438 1.91673 10.8757C1.53794 10.7076 1.23964 10.4732 1.02184 10.1726C0.806404 9.87192 0.684482 9.52273 0.656072 9.125H1.56516C1.58884 9.39962 1.68117 9.62689 1.84215 9.80682C2.0055 9.98437 2.21147 10.117 2.46005 10.2045C2.711 10.2898 2.98088 10.3324 3.26971 10.3324C3.60588 10.3324 3.90773 10.2779 4.17525 10.169C4.44277 10.0578 4.65465 9.90388 4.8109 9.70739C4.96715 9.50852 5.04528 9.27652 5.04528 9.01136C5.04528 8.76989 4.97781 8.57339 4.84286 8.42188C4.70792 8.27036 4.53036 8.14725 4.31019 8.05256C4.09002 7.95786 3.8521 7.875 3.59641 7.80398L2.70153 7.5483C2.13335 7.38494 1.68353 7.15175 1.3521 6.84872C1.02066 6.54569 0.854936 6.14915 0.854936 5.65909C0.854936 5.25189 0.965021 4.89678 1.18519 4.59375C1.40773 4.28835 1.70603 4.05161 2.08008 3.88352C2.4565 3.71307 2.87672 3.62784 3.34073 3.62784C3.80948 3.62784 4.22615 3.71188 4.59073 3.87997C4.95532 4.04569 5.24414 4.27296 5.45721 4.56179C5.67264 4.85062 5.78628 5.1785 5.79812 5.54545H4.94585ZM7.23189 11V5.54545H8.06996V11H7.23189ZM7.65803 4.63636C7.49467 4.63636 7.35381 4.58073 7.23544 4.46946C7.11944 4.35819 7.06143 4.22443 7.06143 4.06818C7.06143 3.91193 7.11944 3.77817 7.23544 3.6669C7.35381 3.55563 7.49467 3.5 7.65803 3.5C7.82138 3.5 7.96106 3.55563 8.07706 3.6669C8.19543 3.77817 8.25462 3.91193 8.25462 4.06818C8.25462 4.22443 8.19543 4.35819 8.07706 4.46946C7.96106 4.58073 7.82138 4.63636 7.65803 4.63636ZM9.44869 11V10.3608L12.5453 6.38352V6.3267H9.54812V5.54545H13.6248V6.21307L10.6135 10.1619V10.2188H13.7243V11H9.44869ZM17.1458 11.1136C16.6202 11.1136 16.1668 10.9976 15.7857 10.7656C15.4069 10.5312 15.1145 10.2045 14.9086 9.78551C14.705 9.36411 14.6032 8.87405 14.6032 8.31534C14.6032 7.75663 14.705 7.2642 14.9086 6.83807C15.1145 6.40956 15.401 6.07576 15.7679 5.83665C16.1373 5.59517 16.5681 5.47443 17.0605 5.47443C17.3446 5.47443 17.6252 5.52178 17.9022 5.61648C18.1792 5.71117 18.4313 5.86506 18.6586 6.07812C18.8858 6.28883 19.0669 6.56818 19.2019 6.91619C19.3368 7.2642 19.4043 7.69271 19.4043 8.2017V8.55682H15.1998V7.83239H18.552C18.552 7.52462 18.4905 7.25 18.3674 7.00852C18.2466 6.76705 18.0738 6.57647 17.8489 6.43679C17.6264 6.29711 17.3636 6.22727 17.0605 6.22727C16.7267 6.22727 16.4379 6.31013 16.1941 6.47585C15.9526 6.6392 15.7667 6.85227 15.6365 7.11506C15.5063 7.37784 15.4412 7.65956 15.4412 7.96023V8.44318C15.4412 8.85511 15.5123 9.20431 15.6543 9.49077C15.7987 9.77486 15.9988 9.99148 16.2544 10.1406C16.5101 10.2874 16.8072 10.3608 17.1458 10.3608C17.3659 10.3608 17.5648 10.33 17.7424 10.2685C17.9223 10.2045 18.0774 10.1098 18.2076 9.98438C18.3378 9.85653 18.4384 9.69792 18.5094 9.50852L19.3191 9.7358C19.2338 10.0104 19.0906 10.2519 18.8894 10.4602C18.6882 10.6662 18.4396 10.8272 18.1436 10.9432C17.8477 11.0568 17.5151 11.1136 17.1458 11.1136Z" fill="#D6D6D6"/>
|
|
1279
|
-
<path d="M13.1695 28.0455C13.1269 27.6856 12.954 27.4062 12.651 27.2074C12.348 27.0085 11.9763 26.9091 11.536 26.9091C11.214 26.9091 10.9323 26.9612 10.6908 27.0653C10.4517 27.1695 10.2646 27.3127 10.1297 27.495C9.99713 27.6773 9.93084 27.8845 9.93084 28.1165C9.93084 28.3106 9.97701 28.4775 10.0693 28.6172C10.164 28.7545 10.2848 28.8693 10.4316 28.9616C10.5783 29.0516 10.7322 29.1262 10.8932 29.1854C11.0542 29.2422 11.2021 29.2884 11.3371 29.3239L12.0757 29.5227C12.2651 29.5724 12.4758 29.6411 12.7078 29.7287C12.9422 29.8163 13.1659 29.9358 13.379 30.0874C13.5944 30.2365 13.772 30.4283 13.9117 30.6626C14.0513 30.897 14.1212 31.1847 14.1212 31.5256C14.1212 31.9186 14.0182 32.2737 13.8122 32.5909C13.6086 32.9081 13.3103 33.1603 12.9173 33.3473C12.5267 33.5343 12.0521 33.6278 11.4933 33.6278C10.9725 33.6278 10.5215 33.5438 10.1404 33.3757C9.76157 33.2076 9.46328 32.9732 9.24547 32.6726C9.03004 32.3719 8.90811 32.0227 8.87971 31.625H9.7888C9.81247 31.8996 9.9048 32.1269 10.0658 32.3068C10.2291 32.4844 10.4351 32.617 10.6837 32.7045C10.9346 32.7898 11.2045 32.8324 11.4933 32.8324C11.8295 32.8324 12.1314 32.7779 12.3989 32.669C12.6664 32.5578 12.8783 32.4039 13.0345 32.2074C13.1908 32.0085 13.2689 31.7765 13.2689 31.5114C13.2689 31.2699 13.2014 31.0734 13.0665 30.9219C12.9316 30.7704 12.754 30.6473 12.5338 30.5526C12.3137 30.4579 12.0757 30.375 11.82 30.304L10.9252 30.0483C10.357 29.8849 9.90717 29.6518 9.57573 29.3487C9.24429 29.0457 9.07857 28.6491 9.07857 28.1591C9.07857 27.7519 9.18865 27.3968 9.40882 27.0938C9.63136 26.7884 9.92966 26.5516 10.3037 26.3835C10.6801 26.2131 11.1003 26.1278 11.5644 26.1278C12.0331 26.1278 12.4498 26.2119 12.8144 26.38C13.1789 26.5457 13.4678 26.773 13.6808 27.0618C13.8963 27.3506 14.0099 27.6785 14.0218 28.0455H13.1695Z" fill="#AAABAC"/>
|
|
1280
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M86.1928 30.9268C86.0863 31.0244 85.9137 31.0244 85.8072 30.9268L83.0799 28.4268C82.9734 28.3291 82.9734 28.1709 83.0799 28.0732C83.1864 27.9756 83.3591 27.9756 83.4656 28.0732L86 30.3964L88.5344 28.0732C88.6409 27.9756 88.8136 27.9756 88.9201 28.0732C89.0266 28.1709 89.0266 28.3291 88.9201 28.4268L86.1928 30.9268Z" fill="#AAABAC"/>
|
|
1281
|
-
<rect x="0.5" y="19.5" width="95" height="20" rx="2.5" stroke="#5B5B5B"/>
|
|
1282
|
-
</svg>
|
|
1283
|
-
`
|
|
1284
|
-
},
|
|
1285
|
-
components: [
|
|
1286
|
-
{
|
|
1287
|
-
tag: 'ProductVariants',
|
|
1288
|
-
settings: {
|
|
1289
|
-
variantPresets: [
|
|
1290
|
-
{
|
|
1291
|
-
optionName: 'base',
|
|
1292
|
-
optionType: 'dropdown',
|
|
1293
|
-
presets: {
|
|
1294
|
-
dropdown: {
|
|
1295
|
-
fullWidth: {
|
|
1296
|
-
desktop: false,
|
|
1297
|
-
tablet: false,
|
|
1298
|
-
mobile: false
|
|
1299
|
-
},
|
|
1300
|
-
width: {
|
|
1301
|
-
desktop: '100%',
|
|
1302
|
-
tablet: '100%',
|
|
1303
|
-
mobile: '100%'
|
|
1304
|
-
},
|
|
1305
|
-
height: '45px'
|
|
1306
|
-
},
|
|
1307
|
-
color: {
|
|
1308
|
-
width: {
|
|
1309
|
-
desktop: '45px',
|
|
1310
|
-
tablet: '45px',
|
|
1311
|
-
mobile: '45px'
|
|
1312
|
-
},
|
|
1313
|
-
height: '45px',
|
|
1314
|
-
spacing: '16px',
|
|
1315
|
-
optionRounded: {
|
|
1316
|
-
normal: {
|
|
1317
|
-
btrr: '999999px',
|
|
1318
|
-
bblr: '999999px',
|
|
1319
|
-
bbrr: '999999px',
|
|
1320
|
-
btlr: '999999px',
|
|
1321
|
-
radiusType: 'custom'
|
|
1322
|
-
},
|
|
1323
|
-
hover: {
|
|
1324
|
-
btrr: '999999px',
|
|
1325
|
-
bblr: '999999px',
|
|
1326
|
-
bbrr: '999999px',
|
|
1327
|
-
btlr: '999999px',
|
|
1328
|
-
radiusType: 'custom'
|
|
1329
|
-
},
|
|
1330
|
-
active: {
|
|
1331
|
-
btrr: '999999px',
|
|
1332
|
-
bblr: '999999px',
|
|
1333
|
-
bbrr: '999999px',
|
|
1334
|
-
btlr: '999999px',
|
|
1335
|
-
radiusType: 'custom'
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
},
|
|
1339
|
-
rectangle_list: {
|
|
1340
|
-
width: {
|
|
1341
|
-
desktop: ''
|
|
1342
|
-
},
|
|
1343
|
-
height: '45px',
|
|
1344
|
-
spacing: '16px'
|
|
1345
|
-
},
|
|
1346
|
-
image: {
|
|
1347
|
-
width: {
|
|
1348
|
-
desktop: '64px',
|
|
1349
|
-
tablet: '64px',
|
|
1350
|
-
mobile: '64px'
|
|
1351
|
-
},
|
|
1352
|
-
height: '64px',
|
|
1353
|
-
spacing: '16px',
|
|
1354
|
-
optionBgColor: {
|
|
1355
|
-
normal: 'bg-3',
|
|
1356
|
-
hover: 'bg-3',
|
|
1357
|
-
active: 'bg-3'
|
|
1358
|
-
}
|
|
1359
|
-
},
|
|
1360
|
-
image_shopify: {
|
|
1361
|
-
width: {
|
|
1362
|
-
desktop: '64px',
|
|
1363
|
-
tablet: '64px',
|
|
1364
|
-
mobile: '64px'
|
|
1365
|
-
},
|
|
1366
|
-
height: '64px',
|
|
1367
|
-
spacing: '16px',
|
|
1368
|
-
optionBgColor: {
|
|
1369
|
-
normal: 'bg-3',
|
|
1370
|
-
hover: 'bg-3',
|
|
1371
|
-
active: 'bg-3'
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
]
|
|
1377
|
-
},
|
|
1378
|
-
advanced: {
|
|
1379
|
-
'spacing-setting': {
|
|
1380
|
-
desktop: {
|
|
1381
|
-
margin: {
|
|
1382
|
-
bottom: 'var(--g-s-l)'
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
]
|
|
1389
|
-
}
|
|
1390
|
-
],
|
|
24
|
+
presets: ProductVariantPreset,
|
|
1391
25
|
locales: {
|
|
1392
26
|
editor: {
|
|
1393
27
|
en: {
|