@gem-sdk/components 2.0.0-dev.274 → 2.0.0-dev.277

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 (148) hide show
  1. package/dist/cjs/article/components/ArticleReadMore.js +2 -4
  2. package/dist/cjs/banner/components/HeroBannerItem.liquid.js +5 -5
  3. package/dist/cjs/builder.js +17 -21
  4. package/dist/cjs/button/components/Button.js +111 -184
  5. package/dist/cjs/button/components/Button.liquid.js +108 -171
  6. package/dist/cjs/button/components/ButtonIcon.js +17 -0
  7. package/dist/cjs/button/components/ButtonIcon.liquid.js +16 -0
  8. package/dist/cjs/button/components/ButtonLabel.js +18 -0
  9. package/dist/cjs/button/components/ButtonLabel.liquid.js +15 -0
  10. package/dist/cjs/button/components/ButtonLoadingIndicator.liquid.js +12 -0
  11. package/dist/cjs/button/components/common/attributes.js +15 -0
  12. package/dist/cjs/button/components/common/classes.js +55 -0
  13. package/dist/cjs/button/components/common/constants.js +26 -0
  14. package/dist/cjs/button/components/common/data.js +76 -0
  15. package/dist/cjs/button/components/common/helpers.js +131 -0
  16. package/dist/cjs/button/components/common/styles.js +157 -0
  17. package/dist/cjs/button/next.js +2 -6
  18. package/dist/cjs/button/setting/configs/settings.js +5 -1
  19. package/dist/cjs/cart/components/CheckoutNow.js +0 -2
  20. package/dist/cjs/cart/components/ShopPayButton/ShopPayButton.js +70 -0
  21. package/dist/cjs/cart/components/ShopPayButton/ShopPayButton.liquid.js +71 -0
  22. package/dist/cjs/cart/components/ShopPayButton/common/classes.js +18 -0
  23. package/dist/cjs/cart/components/ShopPayButton/common/helpers.js +31 -0
  24. package/dist/cjs/cart/components/ShopPayButton/common/styles.js +12 -0
  25. package/dist/cjs/cart/components/ShopPayButton/hooks/useShopPayButton.js +70 -0
  26. package/dist/cjs/cart/next.js +1 -1
  27. package/dist/cjs/coupon/components/Coupon.js +1 -3
  28. package/dist/cjs/dialog/setting/Dialog.js +7 -580
  29. package/dist/cjs/dialog/setting/configs/settings.js +325 -0
  30. package/dist/cjs/dialog/setting/configs/uiV1.js +288 -0
  31. package/dist/cjs/dialog/setting/configs/uiV2.js +258 -0
  32. package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +4 -4
  33. package/dist/cjs/form/components/submit-button/SubmitButton.js +0 -4
  34. package/dist/cjs/header/components/kind/basic/index.js +1 -1
  35. package/dist/cjs/header/components/kind/modern/index.js +1 -1
  36. package/dist/cjs/index.js +41 -43
  37. package/dist/cjs/index.liquid.js +10 -12
  38. package/dist/cjs/product/components/DynamicCheckout/DynamicCheckout.js +25 -0
  39. package/dist/cjs/product/components/DynamicCheckout/DynamicCheckout.liquid.js +23 -0
  40. package/dist/cjs/product/components/DynamicCheckout/common/classes.js +32 -0
  41. package/dist/cjs/product/components/DynamicCheckout/common/styles.js +181 -0
  42. package/dist/cjs/product/components/DynamicCheckout/components/Button.liquid.js +58 -0
  43. package/dist/cjs/product/components/DynamicCheckout.js +2 -5
  44. package/dist/cjs/product/components/FileUpload/components/common/index.js +2 -2
  45. package/dist/cjs/product/components/ProductButton.js +2 -3
  46. package/dist/cjs/product/components/ProductButton.liquid.js +3 -3
  47. package/dist/cjs/product/components/ProductDescription/common/const.js +9 -0
  48. package/dist/cjs/product/components/ProductDescription/common/getClasses.js +30 -0
  49. package/dist/cjs/product/components/ProductDescription/common/getStyle.js +81 -0
  50. package/dist/cjs/product/components/ProductDescription/hooks/useGpDescription.js +90 -0
  51. package/dist/cjs/product/components/ProductDescription/index.js +115 -0
  52. package/dist/cjs/product/components/ProductDescription/index.liquid.js +85 -0
  53. package/dist/cjs/product/components/ProductViewMore.js +2 -5
  54. package/dist/cjs/product/components/ProductViewMore.liquid.js +2 -2
  55. package/dist/cjs/product/next.js +1 -1
  56. package/dist/cjs/setting.js +3 -3
  57. package/dist/cjs/text/components/common/getClasses.js +1 -1
  58. package/dist/cjs/third-party/components/PushOwl.js +0 -5
  59. package/dist/esm/article/components/ArticleReadMore.js +1 -3
  60. package/dist/esm/banner/components/HeroBannerItem.liquid.js +5 -5
  61. package/dist/esm/builder.js +4 -8
  62. package/dist/esm/button/components/Button.js +113 -186
  63. package/dist/esm/button/components/Button.liquid.js +109 -172
  64. package/dist/esm/button/components/ButtonIcon.js +13 -0
  65. package/dist/esm/button/components/ButtonIcon.liquid.js +12 -0
  66. package/dist/esm/button/components/ButtonLabel.js +14 -0
  67. package/dist/esm/button/components/ButtonLabel.liquid.js +11 -0
  68. package/dist/esm/button/components/ButtonLoadingIndicator.liquid.js +8 -0
  69. package/dist/esm/button/components/common/attributes.js +13 -0
  70. package/dist/esm/button/components/common/classes.js +49 -0
  71. package/dist/esm/button/components/common/constants.js +24 -0
  72. package/dist/esm/button/components/common/data.js +74 -0
  73. package/dist/esm/button/components/common/helpers.js +118 -0
  74. package/dist/esm/button/components/common/styles.js +148 -0
  75. package/dist/esm/button/next.js +2 -6
  76. package/dist/esm/button/setting/configs/settings.js +5 -1
  77. package/dist/esm/cart/components/CheckoutNow.js +0 -2
  78. package/dist/esm/cart/components/ShopPayButton/ShopPayButton.js +66 -0
  79. package/dist/esm/cart/components/ShopPayButton/ShopPayButton.liquid.js +67 -0
  80. package/dist/esm/cart/components/ShopPayButton/common/classes.js +15 -0
  81. package/dist/esm/cart/components/ShopPayButton/common/helpers.js +27 -0
  82. package/dist/esm/cart/components/ShopPayButton/common/styles.js +10 -0
  83. package/dist/esm/cart/components/ShopPayButton/hooks/useShopPayButton.js +68 -0
  84. package/dist/esm/cart/next.js +1 -1
  85. package/dist/esm/coupon/components/Coupon.js +1 -3
  86. package/dist/esm/dialog/setting/Dialog.js +7 -580
  87. package/dist/esm/dialog/setting/configs/settings.js +323 -0
  88. package/dist/esm/dialog/setting/configs/uiV1.js +286 -0
  89. package/dist/esm/dialog/setting/configs/uiV2.js +256 -0
  90. package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +4 -4
  91. package/dist/esm/form/components/submit-button/SubmitButton.js +0 -4
  92. package/dist/esm/header/components/kind/basic/index.js +1 -1
  93. package/dist/esm/header/components/kind/modern/index.js +1 -1
  94. package/dist/esm/index.js +4 -5
  95. package/dist/esm/index.liquid.js +4 -5
  96. package/dist/esm/product/components/DynamicCheckout/DynamicCheckout.js +21 -0
  97. package/dist/esm/product/components/DynamicCheckout/DynamicCheckout.liquid.js +19 -0
  98. package/dist/esm/product/components/DynamicCheckout/common/classes.js +30 -0
  99. package/dist/esm/product/components/DynamicCheckout/common/styles.js +179 -0
  100. package/dist/esm/product/components/DynamicCheckout/components/Button.liquid.js +54 -0
  101. package/dist/esm/product/components/DynamicCheckout.js +1 -4
  102. package/dist/esm/product/components/FileUpload/components/common/index.js +2 -2
  103. package/dist/esm/product/components/ProductButton.js +1 -2
  104. package/dist/esm/product/components/ProductButton.liquid.js +1 -1
  105. package/dist/esm/product/components/ProductDescription/common/const.js +6 -0
  106. package/dist/esm/product/components/ProductDescription/common/getClasses.js +27 -0
  107. package/dist/esm/product/components/ProductDescription/common/getStyle.js +77 -0
  108. package/dist/esm/product/components/ProductDescription/hooks/useGpDescription.js +88 -0
  109. package/dist/esm/product/components/ProductDescription/index.js +111 -0
  110. package/dist/esm/product/components/ProductDescription/index.liquid.js +81 -0
  111. package/dist/esm/product/components/ProductViewMore.js +1 -4
  112. package/dist/esm/product/components/ProductViewMore.liquid.js +1 -1
  113. package/dist/esm/product/next.js +1 -1
  114. package/dist/esm/setting.js +3 -3
  115. package/dist/esm/text/components/common/getClasses.js +1 -1
  116. package/dist/esm/third-party/components/PushOwl.js +0 -5
  117. package/dist/types/index.d.ts +200 -360
  118. package/package.json +2 -2
  119. package/dist/cjs/button/components/v2/ButtonIcon.js +0 -18
  120. package/dist/cjs/button/components/v2/ButtonLabel.js +0 -25
  121. package/dist/cjs/button/components/v2/ButtonV2.js +0 -140
  122. package/dist/cjs/button/components/v2/ButtonV2.liquid.js +0 -181
  123. package/dist/cjs/button/hooks/useButtonCustomCss.js +0 -88
  124. package/dist/cjs/button/hooks/useButtonStyles.js +0 -93
  125. package/dist/cjs/cart/components/ShopPayButton/ShopPayButtonCommon.js +0 -20
  126. package/dist/cjs/cart/components/ShopPayButton/index.js +0 -113
  127. package/dist/cjs/cart/components/ShopPayButton/index.liquid.js +0 -51
  128. package/dist/cjs/product/components/DynamicCheckout.liquid.js +0 -250
  129. package/dist/cjs/product/components/ProductDescription/const.js +0 -5
  130. package/dist/cjs/product/components/ProductDescription.js +0 -172
  131. package/dist/cjs/product/components/ProductDescription.liquid.js +0 -120
  132. package/dist/esm/button/components/v2/ButtonIcon.js +0 -14
  133. package/dist/esm/button/components/v2/ButtonLabel.js +0 -21
  134. package/dist/esm/button/components/v2/ButtonV2.js +0 -136
  135. package/dist/esm/button/components/v2/ButtonV2.liquid.js +0 -177
  136. package/dist/esm/button/hooks/useButtonCustomCss.js +0 -84
  137. package/dist/esm/button/hooks/useButtonStyles.js +0 -91
  138. package/dist/esm/cart/components/ShopPayButton/ShopPayButtonCommon.js +0 -17
  139. package/dist/esm/cart/components/ShopPayButton/index.js +0 -109
  140. package/dist/esm/cart/components/ShopPayButton/index.liquid.js +0 -47
  141. package/dist/esm/product/components/DynamicCheckout.liquid.js +0 -246
  142. package/dist/esm/product/components/ProductDescription/const.js +0 -3
  143. package/dist/esm/product/components/ProductDescription.js +0 -168
  144. package/dist/esm/product/components/ProductDescription.liquid.js +0 -116
  145. /package/dist/cjs/button/components/{v2/ButtonLoadingIndicator.js → ButtonLoadingIndicator.js} +0 -0
  146. /package/dist/cjs/product/components/ProductDescription/{common.js → common/getMaxHeight.js} +0 -0
  147. /package/dist/esm/button/components/{v2/ButtonLoadingIndicator.js → ButtonLoadingIndicator.js} +0 -0
  148. /package/dist/esm/product/components/ProductDescription/{common.js → common/getMaxHeight.js} +0 -0
@@ -0,0 +1,323 @@
1
+ const DialogSettings = [
2
+ {
3
+ id: 'setting',
4
+ controls: [
5
+ {
6
+ id: 'closeButtonPosition',
7
+ type: 'segment',
8
+ options: [
9
+ {
10
+ label: 'Inside',
11
+ value: 'inside'
12
+ },
13
+ {
14
+ label: 'Outside',
15
+ value: 'outside'
16
+ }
17
+ ],
18
+ default: 'inside'
19
+ },
20
+ {
21
+ id: 'position',
22
+ type: 'position:square',
23
+ default: 'center'
24
+ },
25
+ {
26
+ id: 'effectType',
27
+ type: 'select',
28
+ options: [
29
+ {
30
+ label: 'Fade',
31
+ value: 'fade'
32
+ },
33
+ {
34
+ label: 'Zoom',
35
+ value: 'zoom'
36
+ },
37
+ {
38
+ label: 'Zoom out',
39
+ value: 'zoom-out'
40
+ },
41
+ {
42
+ label: 'Horizontal move',
43
+ value: 'horizontal'
44
+ },
45
+ {
46
+ label: 'Vertical move',
47
+ value: 'vertical'
48
+ },
49
+ {
50
+ label: '3d Unfold',
51
+ value: 'unfold'
52
+ },
53
+ {
54
+ label: 'None',
55
+ value: 'none'
56
+ }
57
+ ],
58
+ default: 'fade'
59
+ },
60
+ {
61
+ id: 'closeOnClickOutside',
62
+ type: 'toggle',
63
+ default: true
64
+ },
65
+ {
66
+ id: 'name',
67
+ type: 'input',
68
+ placeholder: 'E.g. New popup',
69
+ clearButton: false
70
+ },
71
+ {
72
+ id: 'width',
73
+ type: 'input:unit',
74
+ placeholder: 'Auto',
75
+ units: [
76
+ 'px',
77
+ '%'
78
+ ],
79
+ devices: {
80
+ desktop: {
81
+ default: '600px'
82
+ },
83
+ mobile: {
84
+ default: '100%'
85
+ }
86
+ }
87
+ },
88
+ {
89
+ id: 'height',
90
+ type: 'input:unit',
91
+ placeholder: 'Auto',
92
+ units: [
93
+ 'px',
94
+ '%'
95
+ ],
96
+ devices: {
97
+ desktop: {
98
+ default: undefined
99
+ }
100
+ }
101
+ },
102
+ {
103
+ id: 'fullScreen',
104
+ type: 'toggle',
105
+ devices: {
106
+ desktop: {
107
+ default: false
108
+ }
109
+ }
110
+ },
111
+ {
112
+ id: 'isOverlay',
113
+ type: 'toggle',
114
+ default: true
115
+ },
116
+ {
117
+ id: 'overlayColor',
118
+ type: 'color-picker-v2',
119
+ default: '#121212'
120
+ },
121
+ {
122
+ id: 'overlayOpacity',
123
+ type: 'input:slider',
124
+ min: 0,
125
+ step: 1,
126
+ max: 100,
127
+ default: 70,
128
+ units: [
129
+ '%'
130
+ ],
131
+ useOnlyUnitInit: true
132
+ },
133
+ {
134
+ id: 'triggerTime',
135
+ type: 'input:slider',
136
+ min: 0,
137
+ default: 10,
138
+ max: 100,
139
+ units: [
140
+ 's'
141
+ ],
142
+ useOnlyUnitInit: true
143
+ },
144
+ {
145
+ id: 'triggerPercentage',
146
+ type: 'input:slider',
147
+ units: [
148
+ '%'
149
+ ],
150
+ min: 0,
151
+ max: 100,
152
+ default: 10,
153
+ useOnlyUnitInit: true
154
+ },
155
+ {
156
+ id: 'frequency',
157
+ type: 'input:slider',
158
+ min: 1,
159
+ max: 30,
160
+ default: 3,
161
+ units: [
162
+ 'days'
163
+ ],
164
+ useOnlyUnitInit: true
165
+ },
166
+ {
167
+ id: 'frequencyMode',
168
+ type: 'select',
169
+ options: [
170
+ {
171
+ label: 'Once per user',
172
+ value: 'once'
173
+ },
174
+ {
175
+ label: 'Each visit time',
176
+ value: 'every'
177
+ },
178
+ {
179
+ label: 'After a time',
180
+ value: 'after-period-time'
181
+ }
182
+ ],
183
+ default: 'once'
184
+ },
185
+ {
186
+ id: 'btnSize',
187
+ type: 'input:number',
188
+ default: 32
189
+ },
190
+ {
191
+ id: 'iconSize',
192
+ type: 'input:unit',
193
+ units: [
194
+ 'px'
195
+ ],
196
+ default: '12px'
197
+ },
198
+ {
199
+ id: 'btnBg',
200
+ type: 'color-picker-v2',
201
+ default: '#ffffff'
202
+ },
203
+ {
204
+ id: 'btnColor',
205
+ type: 'color-picker-v2',
206
+ default: 'line-3'
207
+ },
208
+ {
209
+ id: 'trigger',
210
+ type: 'select',
211
+ options: [
212
+ {
213
+ label: 'None',
214
+ value: 'none'
215
+ },
216
+ {
217
+ label: 'After loaded',
218
+ value: 'show-on-page-load'
219
+ },
220
+ {
221
+ label: 'After a time',
222
+ value: 'show-after-time'
223
+ },
224
+ {
225
+ label: 'Scroll partially',
226
+ value: 'show-after-scroll'
227
+ },
228
+ {
229
+ label: 'About to exit',
230
+ value: 'show-when-about-exit'
231
+ }
232
+ ],
233
+ default: 'none'
234
+ },
235
+ {
236
+ id: 'mobileTrigger',
237
+ type: 'select',
238
+ options: [
239
+ {
240
+ label: 'None',
241
+ value: 'none'
242
+ },
243
+ {
244
+ label: 'Timer',
245
+ value: 'timer'
246
+ }
247
+ ],
248
+ default: 'none'
249
+ },
250
+ {
251
+ id: 'mobileTriggerTime',
252
+ type: 'input:slider',
253
+ min: 0,
254
+ default: 10,
255
+ max: 100,
256
+ units: [
257
+ 's'
258
+ ],
259
+ useOnlyUnitInit: true
260
+ },
261
+ {
262
+ id: 'btnRounded',
263
+ type: 'radius-preset',
264
+ default: {
265
+ radiusType: 'none'
266
+ }
267
+ },
268
+ {
269
+ id: 'background',
270
+ type: 'background-media',
271
+ ignoreReRender: true,
272
+ allowBackgroundImageAndVideo: false,
273
+ devices: {
274
+ desktop: {
275
+ default: {
276
+ type: 'color',
277
+ color: '#FFFFFF',
278
+ image: {
279
+ src: '',
280
+ width: 0,
281
+ height: 0
282
+ },
283
+ size: 'cover',
284
+ position: {
285
+ x: 50,
286
+ y: 50
287
+ },
288
+ repeat: 'no-repeat',
289
+ attachment: 'scroll'
290
+ }
291
+ }
292
+ },
293
+ compoDefaultValue: {
294
+ desktop: {
295
+ default: {
296
+ type: 'color',
297
+ color: '#CCCCCC',
298
+ image: {
299
+ src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
300
+ width: 1200,
301
+ height: 480
302
+ },
303
+ size: 'cover',
304
+ position: {
305
+ x: 50,
306
+ y: 50
307
+ },
308
+ repeat: 'no-repeat',
309
+ attachment: 'scroll',
310
+ preload: false,
311
+ video: 'https://youtu.be/KOxfzBp72uk',
312
+ videoHtml5: 'https://media.w3.org/2010/05/sintel/trailer.mp4',
313
+ videoType: 'youtube',
314
+ loop: false
315
+ }
316
+ }
317
+ }
318
+ }
319
+ ]
320
+ }
321
+ ];
322
+
323
+ export { DialogSettings };
@@ -0,0 +1,286 @@
1
+ const SettingUIV1 = [
2
+ {
3
+ type: 'group',
4
+ label: {
5
+ en: 'Display'
6
+ },
7
+ controls: [
8
+ {
9
+ type: 'control',
10
+ label: {
11
+ en: 'Name'
12
+ },
13
+ setting: {
14
+ id: 'name'
15
+ }
16
+ },
17
+ {
18
+ type: 'control',
19
+ label: {
20
+ en: 'Show when'
21
+ },
22
+ setting: {
23
+ id: 'trigger'
24
+ }
25
+ },
26
+ {
27
+ type: 'control',
28
+ condition: `trigger === 'show-after-time'`,
29
+ label: {
30
+ en: 'Time'
31
+ },
32
+ setting: {
33
+ id: 'triggerTime'
34
+ }
35
+ },
36
+ {
37
+ type: 'control',
38
+ condition: `trigger === 'show-after-scroll'`,
39
+ label: {
40
+ en: 'Scroll'
41
+ },
42
+ setting: {
43
+ id: 'triggerPercentage'
44
+ }
45
+ },
46
+ {
47
+ type: 'control',
48
+ condition: `trigger === 'show-when-about-exit'`,
49
+ label: {
50
+ en: 'On mobile'
51
+ },
52
+ setting: {
53
+ id: 'mobileTrigger'
54
+ }
55
+ },
56
+ {
57
+ type: 'control',
58
+ condition: `trigger === 'show-when-about-exit' && mobileTrigger === 'timer'`,
59
+ label: {
60
+ en: 'After load'
61
+ },
62
+ setting: {
63
+ id: 'mobileTriggerTime'
64
+ }
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ type: 'group',
70
+ label: {
71
+ en: 'Show frequency'
72
+ },
73
+ controls: [
74
+ {
75
+ type: 'control',
76
+ label: {
77
+ en: 'Show mode'
78
+ },
79
+ setting: {
80
+ id: 'frequencyMode'
81
+ }
82
+ },
83
+ {
84
+ type: 'control',
85
+ condition: `frequencyMode === 'after-period-time'`,
86
+ label: {
87
+ en: 'Display time'
88
+ },
89
+ setting: {
90
+ id: 'frequency'
91
+ }
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ type: 'group',
97
+ label: {
98
+ en: 'Button close popup'
99
+ },
100
+ controls: [
101
+ {
102
+ type: 'control',
103
+ setting: {
104
+ id: 'closeButtonPosition'
105
+ },
106
+ label: {
107
+ en: 'Position'
108
+ }
109
+ },
110
+ {
111
+ type: 'control',
112
+ label: {
113
+ en: 'Background'
114
+ },
115
+ setting: {
116
+ id: 'btnBg'
117
+ }
118
+ },
119
+ {
120
+ type: 'control',
121
+ label: {
122
+ en: 'Color'
123
+ },
124
+ setting: {
125
+ id: 'btnColor'
126
+ }
127
+ },
128
+ {
129
+ type: 'control',
130
+ label: {
131
+ en: 'Corner'
132
+ },
133
+ setting: {
134
+ id: 'btnRounded'
135
+ }
136
+ },
137
+ {
138
+ type: 'control',
139
+ label: {
140
+ en: 'Button size'
141
+ },
142
+ setting: {
143
+ id: 'btnSize'
144
+ }
145
+ },
146
+ {
147
+ type: 'control',
148
+ label: {
149
+ en: 'Icon size'
150
+ },
151
+ setting: {
152
+ id: 'iconSize'
153
+ }
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ type: 'group',
159
+ label: {
160
+ en: 'Size'
161
+ },
162
+ controls: [
163
+ {
164
+ type: 'control',
165
+ label: {
166
+ en: 'Full screen'
167
+ },
168
+ setting: {
169
+ id: 'fullScreen'
170
+ }
171
+ },
172
+ {
173
+ type: 'control',
174
+ condition: `!fullScreen`,
175
+ label: {
176
+ en: 'Width'
177
+ },
178
+ setting: {
179
+ id: 'width'
180
+ }
181
+ },
182
+ {
183
+ type: 'control',
184
+ condition: `!fullScreen`,
185
+ label: {
186
+ en: 'Height'
187
+ },
188
+ setting: {
189
+ id: 'height'
190
+ }
191
+ }
192
+ ]
193
+ },
194
+ {
195
+ type: 'control',
196
+ label: {
197
+ en: 'Background'
198
+ },
199
+ options: {
200
+ label: 'large',
201
+ styleLabel: {
202
+ marginBottom: '4px'
203
+ }
204
+ },
205
+ setting: {
206
+ id: 'background'
207
+ },
208
+ layout: 'vertical'
209
+ },
210
+ {
211
+ type: 'group',
212
+ controls: [
213
+ {
214
+ type: 'control',
215
+ label: {
216
+ en: 'Overlay'
217
+ },
218
+ options: {
219
+ label: 'large'
220
+ },
221
+ setting: {
222
+ id: 'isOverlay'
223
+ }
224
+ },
225
+ {
226
+ type: 'control',
227
+ condition: `isOverlay === true`,
228
+ label: {
229
+ en: 'Color'
230
+ },
231
+ setting: {
232
+ id: 'overlayColor'
233
+ }
234
+ },
235
+ {
236
+ type: 'control',
237
+ condition: `isOverlay === true`,
238
+ label: {
239
+ en: 'Opacity'
240
+ },
241
+ setting: {
242
+ id: 'overlayOpacity'
243
+ }
244
+ },
245
+ {
246
+ type: 'control',
247
+ condition: `isOverlay === true`,
248
+ label: {
249
+ en: 'Click overlay to close popup'
250
+ },
251
+ setting: {
252
+ id: 'closeOnClickOutside'
253
+ },
254
+ options: {
255
+ styleControl: {
256
+ width: 'auto'
257
+ }
258
+ }
259
+ }
260
+ ]
261
+ },
262
+ {
263
+ type: 'control',
264
+ setting: {
265
+ id: 'position'
266
+ },
267
+ options: {
268
+ labelPosition: 'start'
269
+ },
270
+ label: {
271
+ en: 'Position'
272
+ },
273
+ condition: `!fullScreen`
274
+ },
275
+ {
276
+ type: 'control',
277
+ setting: {
278
+ id: 'effectType'
279
+ },
280
+ label: {
281
+ en: 'Effect'
282
+ }
283
+ }
284
+ ];
285
+
286
+ export { SettingUIV1 };