@gem-sdk/components 2.0.0-dev.479 → 2.0.0-dev.481

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.
@@ -28,24 +28,27 @@ const TabsSettings = [
28
28
  },
29
29
  {
30
30
  id: 'position',
31
- type: 'layout-segment',
31
+ type: 'layout-selector',
32
32
  label: 'Layout',
33
- disableToggle: true,
33
+ iconViewBox: '0 0 74 48',
34
+ enableItemBackground: true,
35
+ itemPerRow: 2,
36
+ itemSpacing: 'large',
34
37
  options: [
35
38
  {
36
39
  value: 'top',
37
40
  label: 'Top',
38
- type: 'layout-align'
41
+ iconName: 'gp-tab-top'
39
42
  },
40
43
  {
41
44
  value: 'left',
42
45
  label: 'Left',
43
- type: 'layout-align'
46
+ iconName: 'gp-tab-top'
44
47
  },
45
48
  {
46
49
  value: 'right',
47
50
  label: 'Right',
48
- type: 'layout-align'
51
+ iconName: 'gp-tab-top'
49
52
  }
50
53
  ],
51
54
  devices: {
@@ -142,7 +145,7 @@ const TabsSettings = [
142
145
  ],
143
146
  devices: {
144
147
  desktop: {
145
- default: '200px'
148
+ default: 'auto'
146
149
  }
147
150
  }
148
151
  },
@@ -16,32 +16,17 @@ const SettingUIV2 = [
16
16
  },
17
17
  {
18
18
  label: {
19
- en: 'Item management'
19
+ en: 'Tabs'
20
20
  },
21
21
  controls: [
22
22
  {
23
23
  label: {
24
- en: 'Items'
24
+ en: 'Order'
25
25
  },
26
26
  setting: {
27
27
  id: 'childItem'
28
28
  }
29
29
  },
30
- {
31
- label: {
32
- en: 'Default active tab'
33
- },
34
- setting: {
35
- id: 'activeKey'
36
- }
37
- }
38
- ]
39
- },
40
- {
41
- label: {
42
- en: 'Tab item style'
43
- },
44
- controls: [
45
30
  {
46
31
  label: {
47
32
  en: 'Text style'
@@ -83,8 +68,8 @@ const SettingUIV2 = [
83
68
  action: {
84
69
  controlId: 'labelColor',
85
70
  valueFromField: 'attrs.color',
86
- groupType: 'style',
87
- controlType: 'style',
71
+ groupType: 'setting',
72
+ controlType: 'setting',
88
73
  removeDevice: true,
89
74
  state: 'normal'
90
75
  }
@@ -105,112 +90,252 @@ const SettingUIV2 = [
105
90
  setting: {
106
91
  id: 'panelWidth'
107
92
  }
108
- },
109
- {
110
- conditionDisplay: 'position != "top"',
111
- label: {
112
- en: 'Width'
93
+ }
94
+ ],
95
+ moreSettings: {
96
+ type: 'collapse',
97
+ controls: [
98
+ {
99
+ id: 'Width',
100
+ label: {
101
+ en: 'Width'
102
+ },
103
+ conditionDisplay: 'position != "top"',
104
+ controlConfig: {
105
+ id: 'width',
106
+ type: 'dropdown:input',
107
+ label: 'Width',
108
+ inputType: 'number',
109
+ units: [
110
+ 'px',
111
+ '%'
112
+ ],
113
+ hideUnit: false,
114
+ fallbackValue: 'Auto',
115
+ linkWithSetting: {
116
+ name: 'labelWidth'
117
+ },
118
+ displayOptions: [
119
+ {
120
+ label: 'Fit content',
121
+ value: 'Auto',
122
+ showValue: true
123
+ },
124
+ {
125
+ label: 'Full',
126
+ value: '100%',
127
+ showValue: true
128
+ }
129
+ ]
130
+ },
131
+ layout: 'horizontal'
113
132
  },
114
- setting: {
115
- id: 'labelWidth'
116
- }
117
- },
118
- {
119
- label: {
120
- en: 'Border'
133
+ {
134
+ label: {
135
+ en: 'Background'
136
+ },
137
+ setting: {
138
+ id: 'labelBgColor',
139
+ state: 'normal'
140
+ }
121
141
  },
122
- setting: {
123
- id: 'borderTab',
124
- state: 'normal'
125
- }
126
- },
127
- {
128
- label: {
129
- en: 'Effect'
142
+ {
143
+ label: {
144
+ en: 'Border'
145
+ },
146
+ setting: {
147
+ id: 'borderTab',
148
+ state: 'normal'
149
+ }
130
150
  },
131
- type: 'combo',
132
- iconName: 'polaris-edit',
133
- fixedValue: 'Hover',
134
- isHideClear: true,
135
- popoverLabel: {
136
- en: 'Hover effect'
151
+ {
152
+ conditionDisplay: 'position == "top" && labelWidth != "100%"',
153
+ label: {
154
+ en: 'Tabs align'
155
+ },
156
+ setting: {
157
+ id: 'panelAlign'
158
+ }
137
159
  },
138
- controls: [
139
- {
140
- label: {
141
- en: 'Background color'
142
- },
143
- setting: {
144
- id: 'labelBgColor',
145
- state: 'hover'
146
- }
160
+ {
161
+ label: {
162
+ en: 'Hover effect'
147
163
  },
148
- {
149
- label: {
150
- en: 'Text color'
164
+ type: 'combo',
165
+ iconName: 'polaris-edit',
166
+ fixedValue: 'Enabled',
167
+ isHideClear: true,
168
+ popoverLabel: {
169
+ en: 'Tabs hover effect'
170
+ },
171
+ controls: [
172
+ {
173
+ label: {
174
+ en: 'Text color'
175
+ },
176
+ setting: {
177
+ id: 'labelColor',
178
+ state: 'hover'
179
+ }
151
180
  },
152
- setting: {
153
- id: 'labelColor',
154
- state: 'hover'
181
+ {
182
+ label: {
183
+ en: 'Border'
184
+ },
185
+ setting: {
186
+ id: 'borderTab',
187
+ state: 'hover'
188
+ }
155
189
  }
190
+ ]
191
+ },
192
+ {
193
+ label: {
194
+ en: 'Active state'
156
195
  },
157
- {
158
- label: {
159
- en: 'Border'
196
+ type: 'combo',
197
+ iconName: 'polaris-edit',
198
+ fixedValue: 'Enabled',
199
+ isHideClear: true,
200
+ popoverLabel: {
201
+ en: 'Tabs active state'
202
+ },
203
+ controls: [
204
+ {
205
+ label: {
206
+ en: 'Text color'
207
+ },
208
+ setting: {
209
+ id: 'labelColor',
210
+ state: 'active'
211
+ }
160
212
  },
161
- setting: {
162
- id: 'borderTab',
163
- state: 'hover'
213
+ {
214
+ label: {
215
+ en: 'Background'
216
+ },
217
+ setting: {
218
+ id: 'labelBgColor',
219
+ state: 'active'
220
+ }
221
+ },
222
+ {
223
+ label: {
224
+ en: 'Border'
225
+ },
226
+ setting: {
227
+ id: 'borderTab',
228
+ state: 'active'
229
+ }
164
230
  }
165
- }
166
- ]
231
+ ]
232
+ }
233
+ ]
234
+ }
235
+ },
236
+ {
237
+ label: {
238
+ en: 'Background'
239
+ },
240
+ controls: [
241
+ {
242
+ setting: {
243
+ id: 'background'
244
+ },
245
+ layout: 'vertical'
167
246
  }
168
247
  ]
169
248
  },
170
249
  {
171
250
  label: {
172
- en: 'Active tab item'
251
+ en: 'Shape'
173
252
  },
174
253
  controls: [
175
254
  {
176
255
  label: {
177
- en: 'Background color'
256
+ en: 'Border'
178
257
  },
179
258
  setting: {
180
- id: 'labelBgColor',
181
- state: 'active'
259
+ id: 'border',
260
+ state: 'normal'
182
261
  }
183
262
  },
184
263
  {
185
264
  label: {
186
- en: 'Text color'
265
+ en: 'Corner'
187
266
  },
188
267
  setting: {
189
- id: 'labelColor',
190
- state: 'active'
268
+ id: 'rounded',
269
+ state: 'normal'
191
270
  }
192
271
  },
193
272
  {
194
273
  label: {
195
- en: 'Border'
274
+ en: 'Shadow'
196
275
  },
197
276
  setting: {
198
- id: 'borderTab',
199
- state: 'active'
277
+ id: 'boxShadow',
278
+ state: 'normal'
279
+ },
280
+ options: {
281
+ updateFields: [
282
+ {
283
+ field: 'enable',
284
+ settingId: 'advanced.hasBoxShadow',
285
+ state: 'normal'
286
+ }
287
+ ]
288
+ },
289
+ controlChangeTrigger: {
290
+ settings: [
291
+ {
292
+ condition: `boxShadow.normal.enable === true`,
293
+ source: [
294
+ 'boxShadow',
295
+ 'hasBoxShadow'
296
+ ],
297
+ action: {
298
+ controlId: 'hasBoxShadow',
299
+ groupType: 'advanced',
300
+ controlType: 'advanced',
301
+ state: 'normal',
302
+ newValue: true
303
+ }
304
+ },
305
+ {
306
+ condition: `boxShadow.normal.enable === false`,
307
+ source: [
308
+ 'boxShadow',
309
+ 'hasBoxShadow'
310
+ ],
311
+ action: {
312
+ controlId: 'hasBoxShadow',
313
+ groupType: 'advanced',
314
+ controlType: 'advanced',
315
+ state: 'normal',
316
+ newValue: false
317
+ }
318
+ }
319
+ ],
320
+ options: {
321
+ noRecordHistory: true
322
+ }
200
323
  }
201
324
  }
202
325
  ]
203
326
  },
204
327
  {
205
328
  label: {
206
- en: 'Background'
329
+ en: 'Display option'
207
330
  },
208
331
  controls: [
209
332
  {
210
- setting: {
211
- id: 'background'
333
+ label: {
334
+ en: 'Default active'
212
335
  },
213
- layout: 'vertical'
336
+ setting: {
337
+ id: 'activeKey'
338
+ }
214
339
  }
215
340
  ]
216
341
  }
@@ -463,7 +463,7 @@ const ArticleReadMoreSettings = [
463
463
  ],
464
464
  devices: {
465
465
  desktop: {
466
- default: 'center'
466
+ default: 'left'
467
467
  }
468
468
  }
469
469
  },
@@ -139,6 +139,12 @@ const SettingsV2 = [
139
139
  label: 'Preload',
140
140
  default: false
141
141
  },
142
+ {
143
+ id: 'enableLink',
144
+ label: '',
145
+ type: 'toggle',
146
+ default: true
147
+ },
142
148
  {
143
149
  id: 'link',
144
150
  type: 'pick-link',
@@ -328,11 +328,21 @@ const SettingUIV2 = [
328
328
  ]
329
329
  },
330
330
  {
331
- label: {
332
- en: 'Link'
333
- },
334
331
  controls: [
335
332
  {
333
+ label: {
334
+ en: 'Link'
335
+ },
336
+ setting: {
337
+ id: 'enableLink'
338
+ },
339
+ options: {
340
+ labelVariant: 'primary',
341
+ toggleStyle: 'switch'
342
+ }
343
+ },
344
+ {
345
+ conditionDisplay: 'enableLink == true',
336
346
  setting: {
337
347
  id: 'link'
338
348
  },
@@ -17,7 +17,7 @@ const CountdownSettings = [
17
17
  id: 'behaviour',
18
18
  label: 'Type',
19
19
  type: 'select',
20
- default: 'standard',
20
+ default: 'evergreen',
21
21
  options: [
22
22
  {
23
23
  label: 'To specific date',
@@ -378,6 +378,18 @@ const CountdownSettings = [
378
378
  {
379
379
  id: 'style',
380
380
  controls: [
381
+ {
382
+ id: 'enableLabelTextStyle',
383
+ label: '',
384
+ type: 'toggle',
385
+ default: true
386
+ },
387
+ {
388
+ id: 'enableNumberTextStyle',
389
+ label: '',
390
+ type: 'toggle',
391
+ default: true
392
+ },
381
393
  {
382
394
  id: 'textNumberGroup',
383
395
  label: 'Text Number',
@@ -470,6 +482,36 @@ const CountdownSettings = [
470
482
  }
471
483
  }
472
484
  },
485
+ {
486
+ id: 'padding',
487
+ type: 'padding-v2',
488
+ devices: {
489
+ desktop: {
490
+ default: {
491
+ padding: {
492
+ type: 'custom',
493
+ top: '12px',
494
+ left: '24px',
495
+ bottom: '12px',
496
+ right: '24px'
497
+ }
498
+ }
499
+ }
500
+ },
501
+ compoDefaultValue: {
502
+ desktop: {
503
+ default: {
504
+ padding: {
505
+ type: 'custom',
506
+ top: '12px',
507
+ left: '24px',
508
+ bottom: '12px',
509
+ right: '24px'
510
+ }
511
+ }
512
+ }
513
+ }
514
+ },
473
515
  {
474
516
  id: 'itemSettingGroup',
475
517
  type: 'group',
@@ -484,7 +526,9 @@ const CountdownSettings = [
484
526
  {
485
527
  id: 'verticalGap',
486
528
  label: 'Vertical Gap',
487
- type: 'input:unit',
529
+ type: 'input:slider',
530
+ min: 0,
531
+ max: 120,
488
532
  units: [
489
533
  'px'
490
534
  ],
@@ -494,17 +538,18 @@ const CountdownSettings = [
494
538
  {
495
539
  id: 'horizontalGap',
496
540
  label: 'Horizontal Gap',
497
- type: 'input:unit',
541
+ type: 'input:slider',
542
+ min: 0,
543
+ max: 120,
498
544
  units: [
499
545
  'px'
500
546
  ],
501
- default: '8px',
502
- placeholder: 'Auto'
547
+ default: '8px'
503
548
  },
504
549
  {
505
550
  id: 'itemPadding',
506
551
  label: 'Padding',
507
- type: 'size',
552
+ type: 'padding-v2',
508
553
  default: {
509
554
  type: 'medium'
510
555
  },