@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.
Files changed (80) hide show
  1. package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +1 -1
  2. package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +4 -0
  3. package/dist/cjs/breadcrumb/setting/configs/settings.js +1 -1
  4. package/dist/cjs/breadcrumb/setting/configs/uiV2.js +2 -1
  5. package/dist/cjs/button/setting/configs/settings.js +1 -1
  6. package/dist/cjs/button/setting/configs/uiV2.js +2 -1
  7. package/dist/cjs/collection/setting/collection-description/configs/settings.js +1 -1
  8. package/dist/cjs/collection/setting/collection-description/configs/uiV2.js +2 -1
  9. package/dist/cjs/collection/setting/collection-toolbar/configs/settings.js +1 -1
  10. package/dist/cjs/collection/setting/collection-toolbar/configs/uiV2.js +2 -1
  11. package/dist/cjs/form/setting/submit-button/configs/settings.js +1 -1
  12. package/dist/cjs/form/setting/submit-button/configs/uiV2.js +2 -1
  13. package/dist/cjs/image-comparison/setting/configs/settings.js +1 -1
  14. package/dist/cjs/image-comparison/setting/configs/uiV2.js +2 -1
  15. package/dist/cjs/marquee/setting/configs/settingsV2.js +1 -1
  16. package/dist/cjs/marquee/setting/configs/uiV2.js +2 -1
  17. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +21 -3
  18. package/dist/cjs/post-purchase/product/common/getAttrs.js +10 -0
  19. package/dist/cjs/post-purchase/product/common/getClasses.js +12 -0
  20. package/dist/cjs/post-purchase/product/common/getSettings.js +9 -0
  21. package/dist/cjs/post-purchase/product/common/getStyles.js +10 -0
  22. package/dist/cjs/post-purchase/product/components/ProductDiscountTag.js +34 -13
  23. package/dist/cjs/post-purchase/product/settings/index.js +1 -1
  24. package/dist/cjs/post-purchase/product/settings/{ProductDiscountTag.js → product-discount-tag/ProductDiscountTag.js} +7 -89
  25. package/dist/cjs/post-purchase/product/settings/product-discount-tag/settingV2.js +63 -0
  26. package/dist/cjs/post-purchase/product/settings/product-discount-tag/uiV1.js +52 -0
  27. package/dist/cjs/post-purchase/product/settings/product-discount-tag/uiV2.js +67 -0
  28. package/dist/cjs/product/setting/product-button/configs/settings.js +2 -2
  29. package/dist/cjs/product/setting/product-button/configs/uiV2.js +4 -2
  30. package/dist/cjs/product/setting/product-description/configs/settings.js +1 -1
  31. package/dist/cjs/product/setting/product-description/configs/uiV2.js +2 -1
  32. package/dist/cjs/product/setting/product-list/configs/settingsV2.js +2 -2
  33. package/dist/cjs/product/setting/product-list/configs/uiV2.js +2 -1
  34. package/dist/cjs/product/setting/product-title/configs/settings.js +2 -2
  35. package/dist/cjs/product/setting/product-title/configs/uiV2.js +2 -1
  36. package/dist/cjs/product/setting/product-vendor/configs/settings.js +1 -1
  37. package/dist/cjs/product/setting/product-vendor/configs/uiV2.js +2 -1
  38. package/dist/cjs/stock-counter/setting/configs/settings.js +2 -2
  39. package/dist/cjs/stock-counter/setting/configs/uiV2.js +2 -1
  40. package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +1 -1
  41. package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +4 -0
  42. package/dist/esm/breadcrumb/setting/configs/settings.js +1 -1
  43. package/dist/esm/breadcrumb/setting/configs/uiV2.js +2 -1
  44. package/dist/esm/button/setting/configs/settings.js +1 -1
  45. package/dist/esm/button/setting/configs/uiV2.js +2 -1
  46. package/dist/esm/collection/setting/collection-description/configs/settings.js +1 -1
  47. package/dist/esm/collection/setting/collection-description/configs/uiV2.js +2 -1
  48. package/dist/esm/collection/setting/collection-toolbar/configs/settings.js +1 -1
  49. package/dist/esm/collection/setting/collection-toolbar/configs/uiV2.js +2 -1
  50. package/dist/esm/form/setting/submit-button/configs/settings.js +1 -1
  51. package/dist/esm/form/setting/submit-button/configs/uiV2.js +2 -1
  52. package/dist/esm/image-comparison/setting/configs/settings.js +1 -1
  53. package/dist/esm/image-comparison/setting/configs/uiV2.js +2 -1
  54. package/dist/esm/marquee/setting/configs/settingsV2.js +1 -1
  55. package/dist/esm/marquee/setting/configs/uiV2.js +2 -1
  56. package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +21 -3
  57. package/dist/esm/post-purchase/product/common/getAttrs.js +8 -0
  58. package/dist/esm/post-purchase/product/common/getClasses.js +10 -0
  59. package/dist/esm/post-purchase/product/common/getSettings.js +7 -0
  60. package/dist/esm/post-purchase/product/common/getStyles.js +8 -0
  61. package/dist/esm/post-purchase/product/components/ProductDiscountTag.js +35 -14
  62. package/dist/esm/post-purchase/product/settings/index.js +1 -1
  63. package/dist/esm/post-purchase/product/settings/{ProductDiscountTag.js → product-discount-tag/ProductDiscountTag.js} +7 -89
  64. package/dist/esm/post-purchase/product/settings/product-discount-tag/settingV2.js +61 -0
  65. package/dist/esm/post-purchase/product/settings/product-discount-tag/uiV1.js +50 -0
  66. package/dist/esm/post-purchase/product/settings/product-discount-tag/uiV2.js +65 -0
  67. package/dist/esm/product/setting/product-button/configs/settings.js +2 -2
  68. package/dist/esm/product/setting/product-button/configs/uiV2.js +4 -2
  69. package/dist/esm/product/setting/product-description/configs/settings.js +1 -1
  70. package/dist/esm/product/setting/product-description/configs/uiV2.js +2 -1
  71. package/dist/esm/product/setting/product-list/configs/settingsV2.js +2 -2
  72. package/dist/esm/product/setting/product-list/configs/uiV2.js +2 -1
  73. package/dist/esm/product/setting/product-title/configs/settings.js +2 -2
  74. package/dist/esm/product/setting/product-title/configs/uiV2.js +2 -1
  75. package/dist/esm/product/setting/product-vendor/configs/settings.js +1 -1
  76. package/dist/esm/product/setting/product-vendor/configs/uiV2.js +2 -1
  77. package/dist/esm/stock-counter/setting/configs/settings.js +2 -2
  78. package/dist/esm/stock-counter/setting/configs/uiV2.js +2 -1
  79. package/dist/types/index.d.ts +16 -14
  80. package/package.json +2 -2
@@ -40,7 +40,7 @@ const ArticleReadMoreSettings = [
40
40
  {
41
41
  id: 'iconVisible',
42
42
  label: 'Icon Visible',
43
- type: 'switch',
43
+ type: 'toggle',
44
44
  default: false
45
45
  },
46
46
  {
@@ -324,6 +324,10 @@ const uiV2 = [
324
324
  },
325
325
  setting: {
326
326
  id: 'iconVisible'
327
+ },
328
+ options: {
329
+ labelVariant: 'primary',
330
+ toggleStyle: 'switch'
327
331
  }
328
332
  }
329
333
  ]
@@ -6,7 +6,7 @@ const BreadcrumbSettings = [
6
6
  controls: [
7
7
  {
8
8
  id: 'hideCurrentPage',
9
- type: 'switch',
9
+ type: 'toggle',
10
10
  label: 'Hide current page',
11
11
  devices: {
12
12
  desktop: {
@@ -11,7 +11,8 @@ const SettingUIV2 = [
11
11
  id: 'hideCurrentPage'
12
12
  },
13
13
  options: {
14
- labelVariant: 'primary'
14
+ labelVariant: 'primary',
15
+ toggleStyle: 'switch'
15
16
  }
16
17
  }
17
18
  ]
@@ -37,7 +37,7 @@ const ButtonSettings = [
37
37
  {
38
38
  id: 'iconVisible',
39
39
  label: 'Icon Visible',
40
- type: 'switch',
40
+ type: 'toggle',
41
41
  default: false
42
42
  },
43
43
  {
@@ -199,7 +199,8 @@ const SettingUIV2 = [
199
199
  id: 'iconVisible'
200
200
  },
201
201
  options: {
202
- labelVariant: 'primary'
202
+ labelVariant: 'primary',
203
+ toggleStyle: 'switch'
203
204
  }
204
205
  },
205
206
  {
@@ -29,7 +29,7 @@ const CollectionDescriptionSettings = [
29
29
  {
30
30
  id: 'hasLineClamp',
31
31
  label: 'Enable View More',
32
- type: 'switch',
32
+ type: 'toggle',
33
33
  devices: {
34
34
  desktop: {
35
35
  default: true
@@ -53,7 +53,8 @@ const SettingUIV2 = [
53
53
  id: 'hasLineClamp'
54
54
  },
55
55
  options: {
56
- labelVariant: 'primary'
56
+ labelVariant: 'primary',
57
+ toggleStyle: 'switch'
57
58
  }
58
59
  },
59
60
  {
@@ -12,7 +12,7 @@ const CollectionToolbarSettings = [
12
12
  },
13
13
  {
14
14
  id: 'displayQuantity',
15
- type: 'switch',
15
+ type: 'toggle',
16
16
  label: 'Quantity text',
17
17
  default: true
18
18
  },
@@ -42,7 +42,8 @@ const SettingUIV2 = [
42
42
  id: 'displayQuantity'
43
43
  },
44
44
  options: {
45
- labelVariant: 'primary'
45
+ labelVariant: 'primary',
46
+ toggleStyle: 'switch'
46
47
  }
47
48
  },
48
49
  {
@@ -18,7 +18,7 @@ const SubmitButtonSettings = [
18
18
  {
19
19
  id: 'iconVisible',
20
20
  label: 'Icon Visible',
21
- type: 'switch',
21
+ type: 'toggle',
22
22
  default: false
23
23
  },
24
24
  {
@@ -169,7 +169,8 @@ const SettingUIV2 = [
169
169
  id: 'iconVisible'
170
170
  },
171
171
  options: {
172
- labelVariant: 'primary'
172
+ labelVariant: 'primary',
173
+ toggleStyle: 'switch'
173
174
  }
174
175
  },
175
176
  {
@@ -123,7 +123,7 @@ const ImageComparisonSettings = [
123
123
  },
124
124
  {
125
125
  id: 'enableLabel',
126
- type: 'switch',
126
+ type: 'toggle',
127
127
  default: false
128
128
  },
129
129
  {
@@ -173,7 +173,8 @@ const SettingUIV2 = [
173
173
  id: 'enableLabel'
174
174
  },
175
175
  options: {
176
- labelVariant: 'primary'
176
+ labelVariant: 'primary',
177
+ toggleStyle: 'switch'
177
178
  }
178
179
  },
179
180
  {
@@ -31,7 +31,7 @@ const MarqueeSettingsV2 = [
31
31
  {
32
32
  id: 'isShowIconSeparator',
33
33
  label: 'isShowIconSeparator',
34
- type: 'switch',
34
+ type: 'toggle',
35
35
  default: false
36
36
  },
37
37
  {
@@ -104,7 +104,8 @@ const SettingUIV2 = [
104
104
  id: 'isShowIconSeparator'
105
105
  },
106
106
  options: {
107
- labelVariant: 'primary'
107
+ labelVariant: 'primary',
108
+ toggleStyle: 'switch'
108
109
  }
109
110
  },
110
111
  {
@@ -91,13 +91,14 @@ const CalloutTextSettings = [
91
91
  },
92
92
  {
93
93
  id: 'width',
94
- type: 'input:unit-width',
94
+ type: 'dropdown:input',
95
95
  label: 'Width',
96
- min: 0,
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',
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ const getContainerAttrs = ({ currentProductId, uid })=>{
4
+ return {
5
+ id: `shopify-text-element-${uid}`,
6
+ 'data-product-id': currentProductId || ''
7
+ };
8
+ };
9
+
10
+ exports.getContainerAttrs = getContainerAttrs;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var core = require('@gem-sdk/core');
4
+
5
+ const getContainerClasses = ({ uid })=>{
6
+ return {
7
+ ...core.composeClasses(uid),
8
+ ...core.composeClasses('gp-flex gp-w-full')
9
+ };
10
+ };
11
+
12
+ exports.getContainerClasses = getContainerClasses;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const getTextSettings = ({ hasDiscount, message })=>{
4
+ return {
5
+ text: hasDiscount ? message : message?.replace(new RegExp(/\{\{Discount\}\}/, 'gi'), '0%')
6
+ };
7
+ };
8
+
9
+ exports.getTextSettings = getTextSettings;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ const getContainerStyles = ({ style, hasDiscount })=>{
4
+ return {
5
+ ...style,
6
+ opacity: hasDiscount ? 1 : 0.2
7
+ };
8
+ };
9
+
10
+ exports.getContainerStyles = getContainerStyles;
@@ -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
- ...builderAttrs,
21
- className: core.cls(builderProps?.uid, 'gp-flex gp-w-full'),
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
- id: 'setting',
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: 'switch',
852
+ type: 'toggle',
853
853
  default: true
854
854
  },
855
855
  {
856
856
  id: 'enableTextStyle',
857
- type: 'switch',
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
  {