@gem-sdk/components 2.0.0-dev.294 → 2.0.0-dev.304
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/banner/setting/presets/heroBanner1Col.js +14 -0
- package/dist/cjs/banner/setting/presets/heroBannerContentLeft.js +13 -0
- package/dist/cjs/banner/setting/presets/heroBannerContentRight.js +12 -0
- package/dist/cjs/banner/setting/presets/heroBannerParallax.js +14 -0
- package/dist/cjs/banner/setting/setting.js +6 -18
- package/dist/cjs/banner/setting/uiV1.js +1 -2
- package/dist/cjs/banner/setting/uiV2.js +4 -5
- 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/form-dropdown/configs/uiV2.js +12 -0
- 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/ProductTag.js +9 -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/banner/setting/presets/heroBanner1Col.js +14 -0
- package/dist/esm/banner/setting/presets/heroBannerContentLeft.js +13 -0
- package/dist/esm/banner/setting/presets/heroBannerContentRight.js +12 -0
- package/dist/esm/banner/setting/presets/heroBannerParallax.js +14 -0
- package/dist/esm/banner/setting/setting.js +6 -18
- package/dist/esm/banner/setting/uiV1.js +1 -2
- package/dist/esm/banner/setting/uiV2.js +4 -5
- 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/form-dropdown/configs/uiV2.js +12 -0
- 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/ProductTag.js +10 -2
- 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,507 @@
|
|
|
1
|
+
const SettingUIV1 = [
|
|
2
|
+
{
|
|
3
|
+
type: 'group',
|
|
4
|
+
label: {
|
|
5
|
+
en: 'Variants settings'
|
|
6
|
+
},
|
|
7
|
+
controls: [
|
|
8
|
+
{
|
|
9
|
+
type: 'control',
|
|
10
|
+
label: {
|
|
11
|
+
en: 'Type'
|
|
12
|
+
},
|
|
13
|
+
setting: {
|
|
14
|
+
id: 'optionType'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
type: 'control',
|
|
19
|
+
label: {
|
|
20
|
+
en: 'Options price'
|
|
21
|
+
},
|
|
22
|
+
setting: {
|
|
23
|
+
id: 'price'
|
|
24
|
+
},
|
|
25
|
+
condition: "optionType == 'groupOption'"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: 'control',
|
|
29
|
+
label: {
|
|
30
|
+
en: 'Sold out style'
|
|
31
|
+
},
|
|
32
|
+
setting: {
|
|
33
|
+
id: 'soldOutStyle'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: 'control',
|
|
40
|
+
condition: 'false',
|
|
41
|
+
layout: 'vertical',
|
|
42
|
+
label: {
|
|
43
|
+
en: 'Variant style'
|
|
44
|
+
},
|
|
45
|
+
setting: {
|
|
46
|
+
id: 'showAsSwatches'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: 'control',
|
|
51
|
+
condition: "optionType == 'singleOption'",
|
|
52
|
+
layout: 'vertical',
|
|
53
|
+
label: {
|
|
54
|
+
en: 'Variant style'
|
|
55
|
+
},
|
|
56
|
+
setting: {
|
|
57
|
+
id: 'variantPresets'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
type: 'group',
|
|
62
|
+
condition: "optionType === 'groupOption'",
|
|
63
|
+
layout: 'vertical',
|
|
64
|
+
label: {
|
|
65
|
+
en: 'Variant style'
|
|
66
|
+
},
|
|
67
|
+
controls: [
|
|
68
|
+
{
|
|
69
|
+
type: 'control',
|
|
70
|
+
label: {
|
|
71
|
+
en: ''
|
|
72
|
+
},
|
|
73
|
+
setting: {
|
|
74
|
+
id: 'hasOnlyDefaultVariant'
|
|
75
|
+
},
|
|
76
|
+
layout: 'vertical',
|
|
77
|
+
condition: 'hasOnlyDefaultVariant === true'
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
type: 'control',
|
|
81
|
+
label: {
|
|
82
|
+
en: 'Width'
|
|
83
|
+
},
|
|
84
|
+
setting: {
|
|
85
|
+
id: 'combineWidth'
|
|
86
|
+
},
|
|
87
|
+
condition: 'hasOnlyDefaultVariant === false'
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
type: 'control',
|
|
91
|
+
label: {
|
|
92
|
+
en: 'Height'
|
|
93
|
+
},
|
|
94
|
+
setting: {
|
|
95
|
+
id: 'combineHeight'
|
|
96
|
+
},
|
|
97
|
+
condition: 'hasOnlyDefaultVariant === false'
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: 'tab',
|
|
101
|
+
label: {
|
|
102
|
+
en: 'States'
|
|
103
|
+
},
|
|
104
|
+
isMoreSetting: true,
|
|
105
|
+
condition: 'hasOnlyDefaultVariant === false',
|
|
106
|
+
controls: [
|
|
107
|
+
{
|
|
108
|
+
type: 'group',
|
|
109
|
+
label: {
|
|
110
|
+
en: 'Normal'
|
|
111
|
+
},
|
|
112
|
+
controls: [
|
|
113
|
+
{
|
|
114
|
+
type: 'control',
|
|
115
|
+
label: {
|
|
116
|
+
en: 'Background color'
|
|
117
|
+
},
|
|
118
|
+
setting: {
|
|
119
|
+
id: 'optionBgColor',
|
|
120
|
+
state: 'normal'
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
type: 'control',
|
|
125
|
+
label: {
|
|
126
|
+
en: 'Text color'
|
|
127
|
+
},
|
|
128
|
+
setting: {
|
|
129
|
+
id: 'optionTextColor',
|
|
130
|
+
state: 'normal'
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
type: 'control',
|
|
135
|
+
options: {
|
|
136
|
+
labelPosition: 'start'
|
|
137
|
+
},
|
|
138
|
+
label: {
|
|
139
|
+
en: 'Border'
|
|
140
|
+
},
|
|
141
|
+
setting: {
|
|
142
|
+
id: 'optionBorder',
|
|
143
|
+
state: 'normal'
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
type: 'control',
|
|
148
|
+
label: {
|
|
149
|
+
en: 'Corner'
|
|
150
|
+
},
|
|
151
|
+
setting: {
|
|
152
|
+
id: 'optionRounded',
|
|
153
|
+
state: 'normal'
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
type: 'control',
|
|
158
|
+
label: {
|
|
159
|
+
en: 'Shadow'
|
|
160
|
+
},
|
|
161
|
+
setting: {
|
|
162
|
+
id: 'optionHasShadow',
|
|
163
|
+
state: 'normal'
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
type: 'control',
|
|
168
|
+
label: {
|
|
169
|
+
en: ''
|
|
170
|
+
},
|
|
171
|
+
condition: 'optionHasShadow.normal === true',
|
|
172
|
+
layout: 'vertical',
|
|
173
|
+
setting: {
|
|
174
|
+
id: 'optionShadow',
|
|
175
|
+
state: 'normal'
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
type: 'group',
|
|
182
|
+
label: {
|
|
183
|
+
en: 'Hover'
|
|
184
|
+
},
|
|
185
|
+
controls: [
|
|
186
|
+
{
|
|
187
|
+
type: 'control',
|
|
188
|
+
label: {
|
|
189
|
+
en: 'Background color'
|
|
190
|
+
},
|
|
191
|
+
setting: {
|
|
192
|
+
id: 'optionBgColor',
|
|
193
|
+
state: 'hover'
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
type: 'control',
|
|
198
|
+
label: {
|
|
199
|
+
en: 'Text color'
|
|
200
|
+
},
|
|
201
|
+
setting: {
|
|
202
|
+
id: 'optionTextColor',
|
|
203
|
+
state: 'hover'
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
type: 'control',
|
|
208
|
+
options: {
|
|
209
|
+
labelPosition: 'start'
|
|
210
|
+
},
|
|
211
|
+
label: {
|
|
212
|
+
en: 'Border'
|
|
213
|
+
},
|
|
214
|
+
setting: {
|
|
215
|
+
id: 'optionBorder',
|
|
216
|
+
state: 'hover'
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
type: 'control',
|
|
221
|
+
label: {
|
|
222
|
+
en: 'Corner'
|
|
223
|
+
},
|
|
224
|
+
setting: {
|
|
225
|
+
id: 'optionRounded',
|
|
226
|
+
state: 'hover'
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
type: 'control',
|
|
231
|
+
label: {
|
|
232
|
+
en: 'Shadow'
|
|
233
|
+
},
|
|
234
|
+
setting: {
|
|
235
|
+
id: 'optionHasShadow',
|
|
236
|
+
state: 'hover'
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
type: 'control',
|
|
241
|
+
label: {
|
|
242
|
+
en: ''
|
|
243
|
+
},
|
|
244
|
+
condition: 'optionHasShadow.hover === true',
|
|
245
|
+
layout: 'vertical',
|
|
246
|
+
setting: {
|
|
247
|
+
id: 'optionShadow',
|
|
248
|
+
state: 'hover'
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
type: 'group',
|
|
255
|
+
label: {
|
|
256
|
+
en: 'Active'
|
|
257
|
+
},
|
|
258
|
+
controls: [
|
|
259
|
+
{
|
|
260
|
+
type: 'control',
|
|
261
|
+
label: {
|
|
262
|
+
en: 'Background color'
|
|
263
|
+
},
|
|
264
|
+
setting: {
|
|
265
|
+
id: 'optionBgColor',
|
|
266
|
+
state: 'active'
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
type: 'control',
|
|
271
|
+
label: {
|
|
272
|
+
en: 'Text color'
|
|
273
|
+
},
|
|
274
|
+
setting: {
|
|
275
|
+
id: 'optionTextColor',
|
|
276
|
+
state: 'active'
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
type: 'control',
|
|
281
|
+
options: {
|
|
282
|
+
labelPosition: 'start'
|
|
283
|
+
},
|
|
284
|
+
label: {
|
|
285
|
+
en: 'Border'
|
|
286
|
+
},
|
|
287
|
+
setting: {
|
|
288
|
+
id: 'optionBorder',
|
|
289
|
+
state: 'active'
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
type: 'control',
|
|
294
|
+
label: {
|
|
295
|
+
en: 'Corner'
|
|
296
|
+
},
|
|
297
|
+
setting: {
|
|
298
|
+
id: 'optionRounded',
|
|
299
|
+
state: 'active'
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
type: 'control',
|
|
304
|
+
label: {
|
|
305
|
+
en: 'Shadow'
|
|
306
|
+
},
|
|
307
|
+
setting: {
|
|
308
|
+
id: 'optionHasShadow',
|
|
309
|
+
state: 'active'
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
type: 'control',
|
|
314
|
+
label: {
|
|
315
|
+
en: ''
|
|
316
|
+
},
|
|
317
|
+
layout: 'vertical',
|
|
318
|
+
condition: 'optionHasShadow.active === true',
|
|
319
|
+
setting: {
|
|
320
|
+
id: 'optionShadow',
|
|
321
|
+
state: 'active'
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
}
|
|
328
|
+
]
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
type: 'group',
|
|
332
|
+
label: {
|
|
333
|
+
en: ''
|
|
334
|
+
},
|
|
335
|
+
condition: "optionType !== 'groupOption'",
|
|
336
|
+
controls: [
|
|
337
|
+
{
|
|
338
|
+
type: 'control',
|
|
339
|
+
label: {
|
|
340
|
+
en: 'Title'
|
|
341
|
+
},
|
|
342
|
+
setting: {
|
|
343
|
+
id: 'label'
|
|
344
|
+
},
|
|
345
|
+
options: {
|
|
346
|
+
label: 'large',
|
|
347
|
+
styleControl: {
|
|
348
|
+
width: 'auto'
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
type: 'control',
|
|
354
|
+
setting: {
|
|
355
|
+
id: 'labelTypo'
|
|
356
|
+
},
|
|
357
|
+
layout: 'vertical'
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
type: 'control',
|
|
361
|
+
condition: 'label == true',
|
|
362
|
+
setting: {
|
|
363
|
+
id: 'labelTypography'
|
|
364
|
+
},
|
|
365
|
+
layout: 'vertical'
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
type: 'control',
|
|
369
|
+
condition: 'label == true',
|
|
370
|
+
label: {
|
|
371
|
+
en: 'Arrangement'
|
|
372
|
+
},
|
|
373
|
+
setting: {
|
|
374
|
+
id: 'layout'
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
type: 'control',
|
|
379
|
+
condition: 'label == true',
|
|
380
|
+
label: {
|
|
381
|
+
en: 'Gap'
|
|
382
|
+
},
|
|
383
|
+
setting: {
|
|
384
|
+
id: 'labelGap'
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
type: 'group',
|
|
391
|
+
label: {
|
|
392
|
+
en: 'Option value text'
|
|
393
|
+
},
|
|
394
|
+
controls: [
|
|
395
|
+
{
|
|
396
|
+
type: 'control',
|
|
397
|
+
setting: {
|
|
398
|
+
id: 'optionTypography'
|
|
399
|
+
},
|
|
400
|
+
layout: 'vertical'
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
type: 'control',
|
|
404
|
+
setting: {
|
|
405
|
+
id: 'optionTypo'
|
|
406
|
+
},
|
|
407
|
+
layout: 'vertical'
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
type: 'group',
|
|
413
|
+
label: {
|
|
414
|
+
en: ''
|
|
415
|
+
},
|
|
416
|
+
controls: [
|
|
417
|
+
{
|
|
418
|
+
type: 'control',
|
|
419
|
+
label: {
|
|
420
|
+
en: 'Pre-selected option'
|
|
421
|
+
},
|
|
422
|
+
setting: {
|
|
423
|
+
id: 'hasPreSelected'
|
|
424
|
+
},
|
|
425
|
+
options: {
|
|
426
|
+
label: 'large',
|
|
427
|
+
styleControl: {
|
|
428
|
+
width: 'auto'
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
type: 'control',
|
|
434
|
+
condition: 'hasPreSelected == true',
|
|
435
|
+
layout: 'vertical',
|
|
436
|
+
setting: {
|
|
437
|
+
id: 'selectVariantDefault'
|
|
438
|
+
},
|
|
439
|
+
options: {
|
|
440
|
+
styleControl: {
|
|
441
|
+
'max-width': '100%'
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
type: 'control',
|
|
447
|
+
condition: 'hasPreSelected == false',
|
|
448
|
+
label: {
|
|
449
|
+
en: 'Blank option text'
|
|
450
|
+
},
|
|
451
|
+
setting: {
|
|
452
|
+
id: 'blankText'
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
]
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
type: 'group',
|
|
459
|
+
label: {
|
|
460
|
+
en: 'Size'
|
|
461
|
+
},
|
|
462
|
+
controls: [
|
|
463
|
+
{
|
|
464
|
+
type: 'control',
|
|
465
|
+
label: {
|
|
466
|
+
en: 'Full width'
|
|
467
|
+
},
|
|
468
|
+
setting: {
|
|
469
|
+
id: 'fullWidth'
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
type: 'control',
|
|
474
|
+
label: {
|
|
475
|
+
en: 'Width'
|
|
476
|
+
},
|
|
477
|
+
condition: 'fullWidth == false',
|
|
478
|
+
setting: {
|
|
479
|
+
id: 'width'
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
type: 'control',
|
|
484
|
+
label: {
|
|
485
|
+
en: 'Spacing'
|
|
486
|
+
},
|
|
487
|
+
setting: {
|
|
488
|
+
id: 'marginBottom'
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
]
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
type: 'control',
|
|
495
|
+
label: {
|
|
496
|
+
en: 'Align'
|
|
497
|
+
},
|
|
498
|
+
setting: {
|
|
499
|
+
id: 'align'
|
|
500
|
+
},
|
|
501
|
+
options: {
|
|
502
|
+
label: 'large'
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
];
|
|
506
|
+
|
|
507
|
+
export { SettingUIV1 };
|