@gem-sdk/components 2.0.0-dev.293 → 2.0.0-dev.303

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