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