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