@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
|
@@ -0,0 +1,730 @@
|
|
|
1
|
+
import { rectangleListPresetConfig } from '../swatches-style-config/rectangle-list.js';
|
|
2
|
+
import { colorPresetConfig } from '../swatches-style-config/color.js';
|
|
3
|
+
import { imagePresetConfig } from '../swatches-style-config/image.js';
|
|
4
|
+
import { imageShopifyPresetConfig } from '../swatches-style-config/image-shopify.js';
|
|
5
|
+
import { dropdownPresetConfig } from '../swatches-style-config/dropdown.js';
|
|
6
|
+
|
|
7
|
+
const ProductVariantSettings = [
|
|
8
|
+
{
|
|
9
|
+
id: 'setting',
|
|
10
|
+
controls: [
|
|
11
|
+
{
|
|
12
|
+
id: 'variantsOption',
|
|
13
|
+
type: 'group',
|
|
14
|
+
label: 'Variants Options',
|
|
15
|
+
controls: [
|
|
16
|
+
{
|
|
17
|
+
id: 'optionType',
|
|
18
|
+
label: 'Option Label',
|
|
19
|
+
type: 'select',
|
|
20
|
+
default: 'singleOption',
|
|
21
|
+
options: [
|
|
22
|
+
{
|
|
23
|
+
label: 'Separate',
|
|
24
|
+
value: 'singleOption'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: 'Combine',
|
|
28
|
+
value: 'groupOption'
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 'label',
|
|
34
|
+
label: 'Option Label',
|
|
35
|
+
type: 'toggle',
|
|
36
|
+
default: true
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: 'optionAlign',
|
|
40
|
+
label: 'Alignment',
|
|
41
|
+
type: 'segment',
|
|
42
|
+
devices: {
|
|
43
|
+
desktop: {
|
|
44
|
+
default: 'left'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
options: [
|
|
48
|
+
{
|
|
49
|
+
label: 'Left',
|
|
50
|
+
value: 'left',
|
|
51
|
+
type: 'align'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: 'Center',
|
|
55
|
+
value: 'center',
|
|
56
|
+
type: 'align'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: 'Right',
|
|
60
|
+
value: 'right',
|
|
61
|
+
type: 'align'
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'price',
|
|
67
|
+
label: 'Option Price',
|
|
68
|
+
type: 'option:value',
|
|
69
|
+
hide: true,
|
|
70
|
+
default: true,
|
|
71
|
+
options: [
|
|
72
|
+
{
|
|
73
|
+
value: true,
|
|
74
|
+
label: 'Yes'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
value: false,
|
|
78
|
+
label: 'No'
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'showAsSwatches',
|
|
84
|
+
label: 'Use Option Swatches',
|
|
85
|
+
type: 'swatchesLink',
|
|
86
|
+
hide: true,
|
|
87
|
+
default: true,
|
|
88
|
+
hyperlinkInfo: {
|
|
89
|
+
beforeText: 'Go to ',
|
|
90
|
+
hyperlinkText: 'Manage Swatches',
|
|
91
|
+
afterText: ' to configure options display as swatches',
|
|
92
|
+
modal: 'manage_swatches'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: 'combineFullWidth',
|
|
97
|
+
label: 'Full Width',
|
|
98
|
+
type: 'toggle',
|
|
99
|
+
devices: {
|
|
100
|
+
desktop: {
|
|
101
|
+
default: true
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: 'combineWidth',
|
|
107
|
+
type: 'input:unit',
|
|
108
|
+
label: 'Width',
|
|
109
|
+
placeholder: 'Auto',
|
|
110
|
+
min: 0,
|
|
111
|
+
units: [
|
|
112
|
+
'px',
|
|
113
|
+
'%'
|
|
114
|
+
],
|
|
115
|
+
hide: true,
|
|
116
|
+
devices: {
|
|
117
|
+
desktop: {
|
|
118
|
+
default: '100%'
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: 'combineHeight',
|
|
124
|
+
type: 'input:unit',
|
|
125
|
+
label: 'Height',
|
|
126
|
+
placeholder: 'Auto',
|
|
127
|
+
min: 0,
|
|
128
|
+
units: [
|
|
129
|
+
'px'
|
|
130
|
+
],
|
|
131
|
+
default: '45px'
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
id: 'variantPresets',
|
|
135
|
+
label: 'Use Option Swatches',
|
|
136
|
+
type: 'variant:presets',
|
|
137
|
+
default: [
|
|
138
|
+
{
|
|
139
|
+
optionName: 'base',
|
|
140
|
+
optionType: 'rectangle_list',
|
|
141
|
+
presets: {
|
|
142
|
+
...colorPresetConfig,
|
|
143
|
+
...rectangleListPresetConfig,
|
|
144
|
+
...imagePresetConfig,
|
|
145
|
+
...imageShopifyPresetConfig,
|
|
146
|
+
...dropdownPresetConfig
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
hyperlinkInfo: {
|
|
151
|
+
modal: 'manage_swatches'
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
id: 'soldOutStyle',
|
|
156
|
+
type: 'select',
|
|
157
|
+
default: 'line',
|
|
158
|
+
options: [
|
|
159
|
+
{
|
|
160
|
+
label: 'None',
|
|
161
|
+
value: 'none'
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
label: 'Unclickable',
|
|
165
|
+
value: 'disable'
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
label: 'Cross-out',
|
|
169
|
+
value: 'line',
|
|
170
|
+
icon: `sold-out-mark-line`
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
id: 'options',
|
|
178
|
+
type: 'group',
|
|
179
|
+
label: 'Options',
|
|
180
|
+
controls: [
|
|
181
|
+
{
|
|
182
|
+
id: 'layout',
|
|
183
|
+
label: 'Layout',
|
|
184
|
+
type: 'layout-segment',
|
|
185
|
+
iconViewBox: '0 0 66 45',
|
|
186
|
+
enableItemBackground: true,
|
|
187
|
+
devices: {
|
|
188
|
+
desktop: {
|
|
189
|
+
default: 'vertical'
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
options: [
|
|
193
|
+
{
|
|
194
|
+
label: 'Horizontal',
|
|
195
|
+
value: 'horizontal',
|
|
196
|
+
type: 'arrange'
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
label: 'Vertical',
|
|
200
|
+
value: 'vertical',
|
|
201
|
+
type: 'arrange'
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
id: 'column',
|
|
207
|
+
label: 'Column',
|
|
208
|
+
type: 'select',
|
|
209
|
+
devices: {
|
|
210
|
+
desktop: {
|
|
211
|
+
default: 1
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
options: [
|
|
215
|
+
{
|
|
216
|
+
label: '1 column',
|
|
217
|
+
value: 1
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
label: '2 columns',
|
|
221
|
+
value: 2
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
label: '3 columns',
|
|
225
|
+
value: 3
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
label: '4 columns',
|
|
229
|
+
value: 4
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
id: 'variantDisplay',
|
|
237
|
+
type: 'group',
|
|
238
|
+
label: 'Variant Display',
|
|
239
|
+
controls: [
|
|
240
|
+
{
|
|
241
|
+
id: 'hasPreSelected',
|
|
242
|
+
type: 'toggle',
|
|
243
|
+
label: 'hasPreSelected',
|
|
244
|
+
default: true
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
id: 'selectVariantDefault',
|
|
248
|
+
type: 'select-variant',
|
|
249
|
+
label: 'Select Default Variant',
|
|
250
|
+
hide: true
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
id: 'blankText',
|
|
256
|
+
label: 'Blank Option Text',
|
|
257
|
+
type: 'input',
|
|
258
|
+
hide: true,
|
|
259
|
+
default: 'Please select an option'
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
id: 'hasOnlyDefaultVariant',
|
|
263
|
+
label: 'Blank Option Text',
|
|
264
|
+
type: 'variant:default',
|
|
265
|
+
hide: true,
|
|
266
|
+
default: false
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
id: 'style',
|
|
272
|
+
controls: [
|
|
273
|
+
{
|
|
274
|
+
id: 'dimension',
|
|
275
|
+
type: 'group',
|
|
276
|
+
label: 'Variants Dimension',
|
|
277
|
+
controls: [
|
|
278
|
+
{
|
|
279
|
+
id: 'fullWidth',
|
|
280
|
+
label: 'Full Width',
|
|
281
|
+
type: 'toggle',
|
|
282
|
+
devices: {
|
|
283
|
+
desktop: {
|
|
284
|
+
default: true
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
id: 'width',
|
|
290
|
+
type: 'input:unit',
|
|
291
|
+
label: 'Width',
|
|
292
|
+
min: 0,
|
|
293
|
+
units: [
|
|
294
|
+
'px',
|
|
295
|
+
'%'
|
|
296
|
+
],
|
|
297
|
+
hide: true,
|
|
298
|
+
devices: {
|
|
299
|
+
desktop: {
|
|
300
|
+
default: '100%'
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
id: 'optionSpacing',
|
|
306
|
+
label: 'Option Spacing',
|
|
307
|
+
type: 'input:unit',
|
|
308
|
+
units: [
|
|
309
|
+
'px'
|
|
310
|
+
],
|
|
311
|
+
placeholder: 'Auto',
|
|
312
|
+
default: '30px'
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
id: 'labelGap',
|
|
316
|
+
label: 'Gap',
|
|
317
|
+
type: 'input:unit',
|
|
318
|
+
units: [
|
|
319
|
+
'px'
|
|
320
|
+
],
|
|
321
|
+
default: '8px'
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
id: 'swatchDimension',
|
|
327
|
+
type: 'group',
|
|
328
|
+
label: 'Swatch Dimension',
|
|
329
|
+
controls: [
|
|
330
|
+
{
|
|
331
|
+
id: 'swatchAutoWidth',
|
|
332
|
+
label: 'Auto Width',
|
|
333
|
+
type: 'toggle',
|
|
334
|
+
devices: {
|
|
335
|
+
desktop: {
|
|
336
|
+
default: true
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
id: 'swatchWidth',
|
|
342
|
+
type: 'input:unit',
|
|
343
|
+
label: 'Width',
|
|
344
|
+
placeholder: 'Auto Width',
|
|
345
|
+
min: 0,
|
|
346
|
+
units: [
|
|
347
|
+
'px',
|
|
348
|
+
'%'
|
|
349
|
+
],
|
|
350
|
+
hide: true,
|
|
351
|
+
devices: {
|
|
352
|
+
desktop: {
|
|
353
|
+
default: '80px'
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
id: 'swatchHeight',
|
|
359
|
+
type: 'input:unit',
|
|
360
|
+
label: 'Height',
|
|
361
|
+
placeholder: 'Auto Height',
|
|
362
|
+
min: 0,
|
|
363
|
+
units: [
|
|
364
|
+
'px'
|
|
365
|
+
],
|
|
366
|
+
devices: {
|
|
367
|
+
desktop: {
|
|
368
|
+
default: '45px'
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
id: 'swatchSpacing',
|
|
374
|
+
label: 'Swatch Spacing',
|
|
375
|
+
type: 'input:unit',
|
|
376
|
+
units: [
|
|
377
|
+
'px'
|
|
378
|
+
],
|
|
379
|
+
placeholder: 'Auto',
|
|
380
|
+
default: 'var(--g-s-m)'
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
id: 'marginBottom',
|
|
384
|
+
label: 'Margin Bottom',
|
|
385
|
+
type: 'input:unit',
|
|
386
|
+
units: [
|
|
387
|
+
'px'
|
|
388
|
+
],
|
|
389
|
+
devices: {
|
|
390
|
+
desktop: {
|
|
391
|
+
default: 'var(--g-s-xl)'
|
|
392
|
+
},
|
|
393
|
+
mobile: {
|
|
394
|
+
default: 'var(--g-s-xl)'
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
]
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
id: 'align',
|
|
402
|
+
label: 'Align',
|
|
403
|
+
type: 'option:value',
|
|
404
|
+
options: [
|
|
405
|
+
{
|
|
406
|
+
label: 'Left',
|
|
407
|
+
value: 'left',
|
|
408
|
+
type: 'align',
|
|
409
|
+
tooltip: 'Align left',
|
|
410
|
+
iconName: 'gp-align-left'
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
label: 'Center',
|
|
414
|
+
value: 'center',
|
|
415
|
+
type: 'align',
|
|
416
|
+
tooltip: 'Align center',
|
|
417
|
+
iconName: 'gp-align-center'
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
label: 'Right',
|
|
421
|
+
value: 'right',
|
|
422
|
+
type: 'align',
|
|
423
|
+
tooltip: 'Align right',
|
|
424
|
+
iconName: 'gp-align-right'
|
|
425
|
+
}
|
|
426
|
+
],
|
|
427
|
+
devices: {
|
|
428
|
+
desktop: {
|
|
429
|
+
default: 'left'
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
id: 'labelGroup',
|
|
435
|
+
type: 'group',
|
|
436
|
+
label: 'Label',
|
|
437
|
+
controls: [
|
|
438
|
+
{
|
|
439
|
+
id: 'labelTypo',
|
|
440
|
+
type: 'typography-v2',
|
|
441
|
+
label: 'Typography',
|
|
442
|
+
default: {
|
|
443
|
+
type: 'paragraph-2',
|
|
444
|
+
attrs: {
|
|
445
|
+
color: 'text-1',
|
|
446
|
+
bold: true
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
ignoreReRender: true,
|
|
450
|
+
hiddenSetting: {
|
|
451
|
+
textAlign: true,
|
|
452
|
+
textShadow: true
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
id: 'labelColor',
|
|
457
|
+
type: 'color-picker-v2',
|
|
458
|
+
label: 'Text Color',
|
|
459
|
+
default: 'text-2'
|
|
460
|
+
}
|
|
461
|
+
]
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
id: 'labelGroup',
|
|
465
|
+
type: 'group',
|
|
466
|
+
label: 'Option Value',
|
|
467
|
+
controls: [
|
|
468
|
+
{
|
|
469
|
+
id: 'optionTypo',
|
|
470
|
+
type: 'typography-v2',
|
|
471
|
+
label: 'Typography',
|
|
472
|
+
default: {
|
|
473
|
+
type: 'paragraph-2'
|
|
474
|
+
},
|
|
475
|
+
hiddenSetting: {
|
|
476
|
+
// color: true,
|
|
477
|
+
textAlign: true,
|
|
478
|
+
textShadow: true
|
|
479
|
+
},
|
|
480
|
+
ignoreReRender: true
|
|
481
|
+
}
|
|
482
|
+
]
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
id: 'behavior-state',
|
|
486
|
+
type: 'behavior-state',
|
|
487
|
+
label: 'Option Value',
|
|
488
|
+
controls: [
|
|
489
|
+
{
|
|
490
|
+
id: 'optionBgColor',
|
|
491
|
+
type: 'color-picker-v2',
|
|
492
|
+
label: 'Background Color',
|
|
493
|
+
default: {
|
|
494
|
+
normal: 'bg-3',
|
|
495
|
+
hover: 'bg-3',
|
|
496
|
+
active: 'bg-3'
|
|
497
|
+
},
|
|
498
|
+
state: {
|
|
499
|
+
active: true,
|
|
500
|
+
hover: true,
|
|
501
|
+
normal: true
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
id: 'optionTextColor',
|
|
506
|
+
type: 'color-picker-v2',
|
|
507
|
+
label: 'Text Color',
|
|
508
|
+
default: {
|
|
509
|
+
normal: 'text-2',
|
|
510
|
+
hover: 'text-2',
|
|
511
|
+
active: 'text-2'
|
|
512
|
+
},
|
|
513
|
+
state: {
|
|
514
|
+
active: true,
|
|
515
|
+
hover: true,
|
|
516
|
+
normal: true
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
id: 'optionBorder',
|
|
521
|
+
type: 'border',
|
|
522
|
+
label: 'Border',
|
|
523
|
+
default: {
|
|
524
|
+
normal: {
|
|
525
|
+
borderType: 'style-2',
|
|
526
|
+
border: 'solid',
|
|
527
|
+
color: 'line-2',
|
|
528
|
+
isCustom: false,
|
|
529
|
+
width: '1px 1px 1px 1px',
|
|
530
|
+
borderWidth: '1px'
|
|
531
|
+
},
|
|
532
|
+
active: {
|
|
533
|
+
borderType: 'style-3',
|
|
534
|
+
border: 'solid',
|
|
535
|
+
color: 'line-3',
|
|
536
|
+
isCustom: false,
|
|
537
|
+
width: '2px 2px 2px 2px',
|
|
538
|
+
borderWidth: '2px'
|
|
539
|
+
},
|
|
540
|
+
hover: {
|
|
541
|
+
borderType: 'style-3',
|
|
542
|
+
border: 'solid',
|
|
543
|
+
color: 'line-3',
|
|
544
|
+
isCustom: false,
|
|
545
|
+
width: '1px 1px 1px 1px',
|
|
546
|
+
borderWidth: '1px'
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
state: {
|
|
550
|
+
active: true,
|
|
551
|
+
hover: true,
|
|
552
|
+
normal: true
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
id: 'optionRounded',
|
|
557
|
+
type: 'radius-preset',
|
|
558
|
+
label: 'Border Radius',
|
|
559
|
+
default: {
|
|
560
|
+
normal: {
|
|
561
|
+
btrr: '0px',
|
|
562
|
+
bblr: '0px',
|
|
563
|
+
bbrr: '0px',
|
|
564
|
+
btlr: '0px',
|
|
565
|
+
radiusType: 'custom'
|
|
566
|
+
},
|
|
567
|
+
hover: {
|
|
568
|
+
btrr: '0px',
|
|
569
|
+
bblr: '0px',
|
|
570
|
+
bbrr: '0px',
|
|
571
|
+
btlr: '0px',
|
|
572
|
+
radiusType: 'custom'
|
|
573
|
+
},
|
|
574
|
+
active: {
|
|
575
|
+
btrr: '0px',
|
|
576
|
+
bblr: '0px',
|
|
577
|
+
bbrr: '0px',
|
|
578
|
+
btlr: '0px',
|
|
579
|
+
radiusType: 'custom'
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
state: {
|
|
583
|
+
active: true,
|
|
584
|
+
hover: true,
|
|
585
|
+
normal: true
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
id: 'optionHasShadow',
|
|
590
|
+
type: 'toggle',
|
|
591
|
+
label: 'Shadow Enable',
|
|
592
|
+
default: {
|
|
593
|
+
normal: false,
|
|
594
|
+
hover: false,
|
|
595
|
+
active: false
|
|
596
|
+
},
|
|
597
|
+
state: {
|
|
598
|
+
normal: true,
|
|
599
|
+
hover: true,
|
|
600
|
+
active: true
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
id: 'optionShadow',
|
|
605
|
+
type: 'shadow-v2',
|
|
606
|
+
label: 'Shadow',
|
|
607
|
+
hideOnState: {
|
|
608
|
+
normal: true,
|
|
609
|
+
hover: true,
|
|
610
|
+
active: true
|
|
611
|
+
},
|
|
612
|
+
default: {
|
|
613
|
+
normal: {
|
|
614
|
+
type: 'shadow-1',
|
|
615
|
+
distance: '4px',
|
|
616
|
+
blur: '12px',
|
|
617
|
+
spread: '0px',
|
|
618
|
+
color: 'rgba(0, 0, 0, 0.20)',
|
|
619
|
+
angle: 90
|
|
620
|
+
},
|
|
621
|
+
hover: {
|
|
622
|
+
type: 'shadow-1',
|
|
623
|
+
distance: '4px',
|
|
624
|
+
blur: '12px',
|
|
625
|
+
spread: '0px',
|
|
626
|
+
color: 'rgba(0, 0, 0, 0.20)',
|
|
627
|
+
angle: 90
|
|
628
|
+
},
|
|
629
|
+
active: {
|
|
630
|
+
type: 'shadow-1',
|
|
631
|
+
distance: '4px',
|
|
632
|
+
blur: '12px',
|
|
633
|
+
spread: '0px',
|
|
634
|
+
color: 'rgba(0, 0, 0, 0.20)',
|
|
635
|
+
angle: 90
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
state: {
|
|
639
|
+
normal: true,
|
|
640
|
+
hover: true,
|
|
641
|
+
active: true
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
]
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
id: 'dropdownItemWidth',
|
|
648
|
+
type: 'segment',
|
|
649
|
+
label: 'Dropdown Width',
|
|
650
|
+
devices: {
|
|
651
|
+
desktop: {
|
|
652
|
+
default: 'fill'
|
|
653
|
+
},
|
|
654
|
+
mobile: {
|
|
655
|
+
default: 'fill'
|
|
656
|
+
},
|
|
657
|
+
tablet: {
|
|
658
|
+
default: 'fill'
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
options: [
|
|
662
|
+
{
|
|
663
|
+
label: 'Fill',
|
|
664
|
+
value: 'fill'
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
label: 'Fixed',
|
|
668
|
+
value: 'fixed'
|
|
669
|
+
}
|
|
670
|
+
]
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
id: 'fixedDropdownWidth',
|
|
674
|
+
type: 'input:unit',
|
|
675
|
+
label: 'Fixed Width',
|
|
676
|
+
units: [
|
|
677
|
+
'px',
|
|
678
|
+
'%'
|
|
679
|
+
],
|
|
680
|
+
devices: {
|
|
681
|
+
desktop: {
|
|
682
|
+
default: '240px'
|
|
683
|
+
},
|
|
684
|
+
mobile: {
|
|
685
|
+
default: '240px'
|
|
686
|
+
},
|
|
687
|
+
tablet: {
|
|
688
|
+
default: '240px'
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
id: 'swatchItemWidth',
|
|
694
|
+
type: 'segment',
|
|
695
|
+
label: 'Swatch Width',
|
|
696
|
+
devices: {
|
|
697
|
+
desktop: {
|
|
698
|
+
default: 'auto'
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
options: [
|
|
702
|
+
{
|
|
703
|
+
label: 'Fill',
|
|
704
|
+
value: 'auto'
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
label: 'Fixed',
|
|
708
|
+
value: 'fixed'
|
|
709
|
+
}
|
|
710
|
+
]
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
id: 'fixedDropdownWidth',
|
|
714
|
+
type: 'input:unit',
|
|
715
|
+
label: 'Fixed Width',
|
|
716
|
+
units: [
|
|
717
|
+
'px',
|
|
718
|
+
'%'
|
|
719
|
+
],
|
|
720
|
+
devices: {
|
|
721
|
+
desktop: {
|
|
722
|
+
default: '240px'
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
]
|
|
727
|
+
}
|
|
728
|
+
];
|
|
729
|
+
|
|
730
|
+
export { ProductVariantSettings };
|