@gem-sdk/components 2.0.0-dev.246 → 2.0.0-dev.248
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +4 -0
- package/dist/cjs/breadcrumb/setting/configs/settings.js +1 -1
- package/dist/cjs/breadcrumb/setting/configs/uiV2.js +2 -1
- package/dist/cjs/button/setting/configs/settings.js +1 -1
- package/dist/cjs/button/setting/configs/uiV2.js +2 -1
- package/dist/cjs/collection/setting/collection-description/configs/settings.js +1 -1
- package/dist/cjs/collection/setting/collection-description/configs/uiV2.js +2 -1
- package/dist/cjs/collection/setting/collection-toolbar/configs/settings.js +1 -1
- package/dist/cjs/collection/setting/collection-toolbar/configs/uiV2.js +2 -1
- package/dist/cjs/form/setting/submit-button/configs/settings.js +1 -1
- package/dist/cjs/form/setting/submit-button/configs/uiV2.js +2 -1
- package/dist/cjs/image-comparison/setting/configs/settings.js +1 -1
- package/dist/cjs/image-comparison/setting/configs/uiV2.js +2 -1
- package/dist/cjs/marquee/setting/configs/settingsV2.js +1 -1
- package/dist/cjs/marquee/setting/configs/uiV2.js +2 -1
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +21 -3
- package/dist/cjs/post-purchase/product/common/getAttrs.js +10 -0
- package/dist/cjs/post-purchase/product/common/getClasses.js +12 -0
- package/dist/cjs/post-purchase/product/common/getSettings.js +9 -0
- package/dist/cjs/post-purchase/product/common/getStyles.js +10 -0
- package/dist/cjs/post-purchase/product/components/ProductDiscountTag.js +34 -13
- package/dist/cjs/post-purchase/product/settings/index.js +1 -1
- package/dist/cjs/post-purchase/product/settings/{ProductDiscountTag.js → product-discount-tag/ProductDiscountTag.js} +7 -89
- package/dist/cjs/post-purchase/product/settings/product-discount-tag/settingV2.js +63 -0
- package/dist/cjs/post-purchase/product/settings/product-discount-tag/uiV1.js +52 -0
- package/dist/cjs/post-purchase/product/settings/product-discount-tag/uiV2.js +67 -0
- package/dist/cjs/product/setting/product-button/configs/settings.js +2 -2
- package/dist/cjs/product/setting/product-button/configs/uiV2.js +4 -2
- package/dist/cjs/product/setting/product-description/configs/settings.js +1 -1
- package/dist/cjs/product/setting/product-description/configs/uiV2.js +2 -1
- package/dist/cjs/product/setting/product-list/configs/settingsV2.js +2 -2
- package/dist/cjs/product/setting/product-list/configs/uiV2.js +2 -1
- package/dist/cjs/product/setting/product-title/configs/settings.js +2 -2
- package/dist/cjs/product/setting/product-title/configs/uiV2.js +2 -1
- package/dist/cjs/product/setting/product-vendor/configs/settings.js +1 -1
- package/dist/cjs/product/setting/product-vendor/configs/uiV2.js +2 -1
- package/dist/cjs/stock-counter/setting/configs/settings.js +2 -2
- package/dist/cjs/stock-counter/setting/configs/uiV2.js +2 -1
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +1 -1
- package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +4 -0
- package/dist/esm/breadcrumb/setting/configs/settings.js +1 -1
- package/dist/esm/breadcrumb/setting/configs/uiV2.js +2 -1
- package/dist/esm/button/setting/configs/settings.js +1 -1
- package/dist/esm/button/setting/configs/uiV2.js +2 -1
- package/dist/esm/collection/setting/collection-description/configs/settings.js +1 -1
- package/dist/esm/collection/setting/collection-description/configs/uiV2.js +2 -1
- package/dist/esm/collection/setting/collection-toolbar/configs/settings.js +1 -1
- package/dist/esm/collection/setting/collection-toolbar/configs/uiV2.js +2 -1
- package/dist/esm/form/setting/submit-button/configs/settings.js +1 -1
- package/dist/esm/form/setting/submit-button/configs/uiV2.js +2 -1
- package/dist/esm/image-comparison/setting/configs/settings.js +1 -1
- package/dist/esm/image-comparison/setting/configs/uiV2.js +2 -1
- package/dist/esm/marquee/setting/configs/settingsV2.js +1 -1
- package/dist/esm/marquee/setting/configs/uiV2.js +2 -1
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +21 -3
- package/dist/esm/post-purchase/product/common/getAttrs.js +8 -0
- package/dist/esm/post-purchase/product/common/getClasses.js +10 -0
- package/dist/esm/post-purchase/product/common/getSettings.js +7 -0
- package/dist/esm/post-purchase/product/common/getStyles.js +8 -0
- package/dist/esm/post-purchase/product/components/ProductDiscountTag.js +35 -14
- package/dist/esm/post-purchase/product/settings/index.js +1 -1
- package/dist/esm/post-purchase/product/settings/{ProductDiscountTag.js → product-discount-tag/ProductDiscountTag.js} +7 -89
- package/dist/esm/post-purchase/product/settings/product-discount-tag/settingV2.js +61 -0
- package/dist/esm/post-purchase/product/settings/product-discount-tag/uiV1.js +50 -0
- package/dist/esm/post-purchase/product/settings/product-discount-tag/uiV2.js +65 -0
- package/dist/esm/product/setting/product-button/configs/settings.js +2 -2
- package/dist/esm/product/setting/product-button/configs/uiV2.js +4 -2
- package/dist/esm/product/setting/product-description/configs/settings.js +1 -1
- package/dist/esm/product/setting/product-description/configs/uiV2.js +2 -1
- package/dist/esm/product/setting/product-list/configs/settingsV2.js +2 -2
- package/dist/esm/product/setting/product-list/configs/uiV2.js +2 -1
- package/dist/esm/product/setting/product-title/configs/settings.js +2 -2
- package/dist/esm/product/setting/product-title/configs/uiV2.js +2 -1
- package/dist/esm/product/setting/product-vendor/configs/settings.js +1 -1
- package/dist/esm/product/setting/product-vendor/configs/uiV2.js +2 -1
- package/dist/esm/stock-counter/setting/configs/settings.js +2 -2
- package/dist/esm/stock-counter/setting/configs/uiV2.js +2 -1
- package/dist/types/index.d.ts +16 -14
- package/package.json +2 -2
|
@@ -91,13 +91,14 @@ const CalloutTextSettings = [
|
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
id: 'width',
|
|
94
|
-
type: 'input
|
|
94
|
+
type: 'dropdown:input',
|
|
95
95
|
label: 'Width',
|
|
96
|
-
|
|
96
|
+
inputType: 'number',
|
|
97
97
|
units: [
|
|
98
98
|
'px',
|
|
99
99
|
'%'
|
|
100
100
|
],
|
|
101
|
+
hideUnit: false,
|
|
101
102
|
devices: {
|
|
102
103
|
desktop: {
|
|
103
104
|
default: '100%'
|
|
@@ -108,7 +109,24 @@ const CalloutTextSettings = [
|
|
|
108
109
|
mobile: {
|
|
109
110
|
default: '100%'
|
|
110
111
|
}
|
|
111
|
-
}
|
|
112
|
+
},
|
|
113
|
+
displayOptions: [
|
|
114
|
+
{
|
|
115
|
+
label: 'Fit content',
|
|
116
|
+
value: 'Auto',
|
|
117
|
+
showValue: true
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
label: 'Full',
|
|
121
|
+
value: '100%',
|
|
122
|
+
showValue: true
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
label: 'Default',
|
|
126
|
+
value: 'default',
|
|
127
|
+
showValue: true
|
|
128
|
+
}
|
|
129
|
+
]
|
|
112
130
|
},
|
|
113
131
|
{
|
|
114
132
|
id: 'direction',
|
|
@@ -7,31 +7,52 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
7
7
|
var core = require('@gem-sdk/core');
|
|
8
8
|
var Text = require('../../text/components/Text.js');
|
|
9
9
|
var useDynamicProduct = require('../hooks/useDynamicProduct.js');
|
|
10
|
+
var system = require('@gem-sdk/system');
|
|
11
|
+
var getAttrs = require('../common/getAttrs.js');
|
|
12
|
+
var getClasses = require('../common/getClasses.js');
|
|
13
|
+
var getStyles = require('../common/getStyles.js');
|
|
14
|
+
var getSettings = require('../common/getSettings.js');
|
|
10
15
|
|
|
11
16
|
const PostPurchaseProductDiscountTag = ({ setting = {}, styles = {}, style, builderAttrs, builderProps, children })=>{
|
|
12
17
|
const currentProduct = core.useProduct();
|
|
13
18
|
const currentProductId = currentProduct?.baseID?.replace('gid://shopify/Product/', '');
|
|
14
19
|
const currentOfferDiscount = core.useProductOfferDiscount();
|
|
15
20
|
const { isDynamicProduct, isEnableDynamicDiscount } = useDynamicProduct.useDynamicProduct();
|
|
16
|
-
const { typo } = styles;
|
|
21
|
+
const { typo, direction } = styles;
|
|
17
22
|
const { message } = setting;
|
|
18
23
|
const hasDiscount = !!currentOfferDiscount || isDynamicProduct && isEnableDynamicDiscount;
|
|
24
|
+
const containerClasses = system.createClass({
|
|
25
|
+
...getClasses.getContainerClasses({
|
|
26
|
+
uid: builderProps?.uid
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
const containerAttrs = system.createAttr({
|
|
30
|
+
...getAttrs.getContainerAttrs({
|
|
31
|
+
...builderAttrs,
|
|
32
|
+
currentProductId,
|
|
33
|
+
uid: builderProps?.uid
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
const containerStyles = system.createStyle({
|
|
37
|
+
...getStyles.getContainerStyles({
|
|
38
|
+
style,
|
|
39
|
+
hasDiscount
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
const textSettings = getSettings.getTextSettings({
|
|
43
|
+
hasDiscount,
|
|
44
|
+
message
|
|
45
|
+
});
|
|
19
46
|
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
20
|
-
...
|
|
21
|
-
className:
|
|
22
|
-
style:
|
|
23
|
-
...style,
|
|
24
|
-
opacity: hasDiscount ? 1 : 0.2
|
|
25
|
-
},
|
|
26
|
-
id: `shopify-text-element-${builderProps?.uid}`,
|
|
27
|
-
"data-product-id": currentProductId,
|
|
47
|
+
...containerAttrs,
|
|
48
|
+
className: containerClasses,
|
|
49
|
+
style: containerStyles,
|
|
28
50
|
children: [
|
|
29
51
|
/*#__PURE__*/ jsxRuntime.jsx(Text.default, {
|
|
30
|
-
setting:
|
|
31
|
-
text: hasDiscount ? message : message?.replace(new RegExp(/\{\{Discount\}\}/, 'gi'), '0%')
|
|
32
|
-
},
|
|
52
|
+
setting: textSettings,
|
|
33
53
|
styles: {
|
|
34
|
-
typo
|
|
54
|
+
typo,
|
|
55
|
+
direction
|
|
35
56
|
}
|
|
36
57
|
}),
|
|
37
58
|
children
|
|
@@ -10,7 +10,7 @@ var ProductVariant = require('./product-variants/ProductVariant.js');
|
|
|
10
10
|
var index$1 = require('./product-quantity/index.js');
|
|
11
11
|
var ProductOffer = require('./ProductOffer.js');
|
|
12
12
|
var index$2 = require('./product-price-breakdown/index.js');
|
|
13
|
-
var ProductDiscountTag = require('./ProductDiscountTag.js');
|
|
13
|
+
var ProductDiscountTag = require('./product-discount-tag/ProductDiscountTag.js');
|
|
14
14
|
var ProductImages = require('./product-image/ProductImages.js');
|
|
15
15
|
|
|
16
16
|
var postPurchaseProductSetting = {
|
|
@@ -2,99 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var settingV2 = require('./settingV2.js');
|
|
6
|
+
var uiV1 = require('./uiV1.js');
|
|
7
|
+
var uiV2 = require('./uiV2.js');
|
|
8
|
+
|
|
5
9
|
const config = {
|
|
6
10
|
tag: 'PostPurchaseProductDiscountTag',
|
|
7
11
|
label: 'Discount Tag',
|
|
8
12
|
icon: ``,
|
|
9
|
-
settings:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
controls: [
|
|
13
|
-
{
|
|
14
|
-
id: 'discountAndShippingFee',
|
|
15
|
-
type: 'discount-and-shipping-fee-product-offer',
|
|
16
|
-
multiple: false
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
id: 'message',
|
|
20
|
-
label: '',
|
|
21
|
-
type: 'textarea',
|
|
22
|
-
autoHeight: true,
|
|
23
|
-
default: '(Save {{Discount}})',
|
|
24
|
-
suggestContents: [
|
|
25
|
-
{
|
|
26
|
-
message: '{{Discount}}',
|
|
27
|
-
eg: '20%'
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: 'style',
|
|
35
|
-
controls: [
|
|
36
|
-
{
|
|
37
|
-
id: 'typo',
|
|
38
|
-
label: 'Label',
|
|
39
|
-
type: 'typography-post-purchase',
|
|
40
|
-
default: {
|
|
41
|
-
fontSize: 'default',
|
|
42
|
-
textColor: 'critical',
|
|
43
|
-
fontWeight: 'bold',
|
|
44
|
-
textTransform: 'none'
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
ui: [
|
|
51
|
-
{
|
|
52
|
-
type: 'group',
|
|
53
|
-
label: {
|
|
54
|
-
en: ''
|
|
55
|
-
},
|
|
56
|
-
controls: [
|
|
57
|
-
{
|
|
58
|
-
type: 'control',
|
|
59
|
-
label: {
|
|
60
|
-
en: ''
|
|
61
|
-
},
|
|
62
|
-
setting: {
|
|
63
|
-
id: 'discountAndShippingFee'
|
|
64
|
-
},
|
|
65
|
-
layout: 'vertical'
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
type: 'group',
|
|
71
|
-
label: {
|
|
72
|
-
en: 'Text'
|
|
73
|
-
},
|
|
74
|
-
controls: [
|
|
75
|
-
{
|
|
76
|
-
type: 'control',
|
|
77
|
-
label: {
|
|
78
|
-
en: ''
|
|
79
|
-
},
|
|
80
|
-
setting: {
|
|
81
|
-
id: 'message'
|
|
82
|
-
},
|
|
83
|
-
layout: 'vertical'
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
type: 'control',
|
|
87
|
-
label: {
|
|
88
|
-
en: ''
|
|
89
|
-
},
|
|
90
|
-
setting: {
|
|
91
|
-
id: 'typo'
|
|
92
|
-
},
|
|
93
|
-
layout: 'vertical'
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
],
|
|
13
|
+
settings: settingV2.settingV2,
|
|
14
|
+
ui: uiV1.uiV1,
|
|
15
|
+
uiV2: uiV2.uiV2,
|
|
98
16
|
editorConfigs: {
|
|
99
17
|
placeholder: {
|
|
100
18
|
flowTag: [
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const settingV2 = [
|
|
4
|
+
{
|
|
5
|
+
id: 'setting',
|
|
6
|
+
controls: [
|
|
7
|
+
{
|
|
8
|
+
id: 'discountAndShippingFee',
|
|
9
|
+
type: 'discount-and-shipping-fee-product-offer',
|
|
10
|
+
multiple: false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: 'message',
|
|
14
|
+
label: '',
|
|
15
|
+
type: 'textarea',
|
|
16
|
+
defaultRows: 4,
|
|
17
|
+
showPlusBtn: true,
|
|
18
|
+
autoHeight: true,
|
|
19
|
+
default: '(Save {{Discount}})',
|
|
20
|
+
suggestContents: [
|
|
21
|
+
{
|
|
22
|
+
message: '{{Discount}}',
|
|
23
|
+
eg: '20%'
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: 'style',
|
|
31
|
+
controls: [
|
|
32
|
+
{
|
|
33
|
+
id: 'direction',
|
|
34
|
+
label: 'Direction',
|
|
35
|
+
type: 'segment',
|
|
36
|
+
options: [
|
|
37
|
+
{
|
|
38
|
+
label: 'LTR',
|
|
39
|
+
value: 'ltr'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: 'RTL',
|
|
43
|
+
value: 'rtl'
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
default: 'ltr'
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 'typo',
|
|
50
|
+
label: 'Label',
|
|
51
|
+
type: 'typography-post-purchase',
|
|
52
|
+
default: {
|
|
53
|
+
fontSize: 'default',
|
|
54
|
+
textColor: 'critical',
|
|
55
|
+
fontWeight: 'bold',
|
|
56
|
+
textTransform: 'none'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
exports.settingV2 = settingV2;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const uiV1 = [
|
|
4
|
+
{
|
|
5
|
+
type: 'group',
|
|
6
|
+
label: {
|
|
7
|
+
en: ''
|
|
8
|
+
},
|
|
9
|
+
controls: [
|
|
10
|
+
{
|
|
11
|
+
type: 'control',
|
|
12
|
+
label: {
|
|
13
|
+
en: ''
|
|
14
|
+
},
|
|
15
|
+
setting: {
|
|
16
|
+
id: 'discountAndShippingFee'
|
|
17
|
+
},
|
|
18
|
+
layout: 'vertical'
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: 'group',
|
|
24
|
+
label: {
|
|
25
|
+
en: 'Text'
|
|
26
|
+
},
|
|
27
|
+
controls: [
|
|
28
|
+
{
|
|
29
|
+
type: 'control',
|
|
30
|
+
label: {
|
|
31
|
+
en: ''
|
|
32
|
+
},
|
|
33
|
+
setting: {
|
|
34
|
+
id: 'message'
|
|
35
|
+
},
|
|
36
|
+
layout: 'vertical'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: 'control',
|
|
40
|
+
label: {
|
|
41
|
+
en: ''
|
|
42
|
+
},
|
|
43
|
+
setting: {
|
|
44
|
+
id: 'typo'
|
|
45
|
+
},
|
|
46
|
+
layout: 'vertical'
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
exports.uiV1 = uiV1;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const uiV2 = [
|
|
4
|
+
{
|
|
5
|
+
controls: [
|
|
6
|
+
{
|
|
7
|
+
type: 'control',
|
|
8
|
+
label: {
|
|
9
|
+
en: ''
|
|
10
|
+
},
|
|
11
|
+
setting: {
|
|
12
|
+
id: 'discountAndShippingFee'
|
|
13
|
+
},
|
|
14
|
+
layout: 'vertical'
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: {
|
|
20
|
+
en: 'Text'
|
|
21
|
+
},
|
|
22
|
+
controls: [
|
|
23
|
+
{
|
|
24
|
+
type: 'control',
|
|
25
|
+
label: {
|
|
26
|
+
en: 'Direction'
|
|
27
|
+
},
|
|
28
|
+
setting: {
|
|
29
|
+
id: 'direction'
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: 'combo',
|
|
34
|
+
label: {
|
|
35
|
+
en: 'Content'
|
|
36
|
+
},
|
|
37
|
+
iconName: 'polaris-text-block',
|
|
38
|
+
getValueFromSettingID: 'message',
|
|
39
|
+
isHideClear: true,
|
|
40
|
+
controls: [
|
|
41
|
+
{
|
|
42
|
+
label: {
|
|
43
|
+
en: 'Content'
|
|
44
|
+
},
|
|
45
|
+
setting: {
|
|
46
|
+
id: 'message'
|
|
47
|
+
},
|
|
48
|
+
layout: 'vertical'
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
layout: 'horizontal'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: 'control',
|
|
55
|
+
label: {
|
|
56
|
+
en: ''
|
|
57
|
+
},
|
|
58
|
+
setting: {
|
|
59
|
+
id: 'typo'
|
|
60
|
+
},
|
|
61
|
+
layout: 'vertical'
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
];
|
|
66
|
+
|
|
67
|
+
exports.uiV2 = uiV2;
|
|
@@ -849,12 +849,12 @@ const ProductButtonSettings = [
|
|
|
849
849
|
},
|
|
850
850
|
{
|
|
851
851
|
id: 'enableIcon',
|
|
852
|
-
type: '
|
|
852
|
+
type: 'toggle',
|
|
853
853
|
default: true
|
|
854
854
|
},
|
|
855
855
|
{
|
|
856
856
|
id: 'enableTextStyle',
|
|
857
|
-
type: '
|
|
857
|
+
type: 'toggle',
|
|
858
858
|
default: true
|
|
859
859
|
},
|
|
860
860
|
{
|
|
@@ -213,7 +213,8 @@ const SettingUIV2 = [
|
|
|
213
213
|
id: 'enableIcon'
|
|
214
214
|
},
|
|
215
215
|
options: {
|
|
216
|
-
labelVariant: 'primary'
|
|
216
|
+
labelVariant: 'primary',
|
|
217
|
+
toggleStyle: 'switch'
|
|
217
218
|
}
|
|
218
219
|
},
|
|
219
220
|
{
|
|
@@ -258,7 +259,8 @@ const SettingUIV2 = [
|
|
|
258
259
|
id: 'enableTextStyle'
|
|
259
260
|
},
|
|
260
261
|
options: {
|
|
261
|
-
labelVariant: 'primary'
|
|
262
|
+
labelVariant: 'primary',
|
|
263
|
+
toggleStyle: 'switch'
|
|
262
264
|
}
|
|
263
265
|
},
|
|
264
266
|
{
|