@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.
@@ -14,32 +14,17 @@ const SettingUIV2 = [
14
14
  },
15
15
  {
16
16
  label: {
17
- en: 'Item management'
17
+ en: 'Tabs'
18
18
  },
19
19
  controls: [
20
20
  {
21
21
  label: {
22
- en: 'Items'
22
+ en: 'Order'
23
23
  },
24
24
  setting: {
25
25
  id: 'childItem'
26
26
  }
27
27
  },
28
- {
29
- label: {
30
- en: 'Default active tab'
31
- },
32
- setting: {
33
- id: 'activeKey'
34
- }
35
- }
36
- ]
37
- },
38
- {
39
- label: {
40
- en: 'Tab item style'
41
- },
42
- controls: [
43
28
  {
44
29
  label: {
45
30
  en: 'Text style'
@@ -81,8 +66,8 @@ const SettingUIV2 = [
81
66
  action: {
82
67
  controlId: 'labelColor',
83
68
  valueFromField: 'attrs.color',
84
- groupType: 'style',
85
- controlType: 'style',
69
+ groupType: 'setting',
70
+ controlType: 'setting',
86
71
  removeDevice: true,
87
72
  state: 'normal'
88
73
  }
@@ -103,112 +88,252 @@ const SettingUIV2 = [
103
88
  setting: {
104
89
  id: 'panelWidth'
105
90
  }
106
- },
107
- {
108
- conditionDisplay: 'position != "top"',
109
- label: {
110
- en: 'Width'
91
+ }
92
+ ],
93
+ moreSettings: {
94
+ type: 'collapse',
95
+ controls: [
96
+ {
97
+ id: 'Width',
98
+ label: {
99
+ en: 'Width'
100
+ },
101
+ conditionDisplay: 'position != "top"',
102
+ controlConfig: {
103
+ id: 'width',
104
+ type: 'dropdown:input',
105
+ label: 'Width',
106
+ inputType: 'number',
107
+ units: [
108
+ 'px',
109
+ '%'
110
+ ],
111
+ hideUnit: false,
112
+ fallbackValue: 'Auto',
113
+ linkWithSetting: {
114
+ name: 'labelWidth'
115
+ },
116
+ displayOptions: [
117
+ {
118
+ label: 'Fit content',
119
+ value: 'Auto',
120
+ showValue: true
121
+ },
122
+ {
123
+ label: 'Full',
124
+ value: '100%',
125
+ showValue: true
126
+ }
127
+ ]
128
+ },
129
+ layout: 'horizontal'
111
130
  },
112
- setting: {
113
- id: 'labelWidth'
114
- }
115
- },
116
- {
117
- label: {
118
- en: 'Border'
131
+ {
132
+ label: {
133
+ en: 'Background'
134
+ },
135
+ setting: {
136
+ id: 'labelBgColor',
137
+ state: 'normal'
138
+ }
119
139
  },
120
- setting: {
121
- id: 'borderTab',
122
- state: 'normal'
123
- }
124
- },
125
- {
126
- label: {
127
- en: 'Effect'
140
+ {
141
+ label: {
142
+ en: 'Border'
143
+ },
144
+ setting: {
145
+ id: 'borderTab',
146
+ state: 'normal'
147
+ }
128
148
  },
129
- type: 'combo',
130
- iconName: 'polaris-edit',
131
- fixedValue: 'Hover',
132
- isHideClear: true,
133
- popoverLabel: {
134
- en: 'Hover effect'
149
+ {
150
+ conditionDisplay: 'position == "top" && labelWidth != "100%"',
151
+ label: {
152
+ en: 'Tabs align'
153
+ },
154
+ setting: {
155
+ id: 'panelAlign'
156
+ }
135
157
  },
136
- controls: [
137
- {
138
- label: {
139
- en: 'Background color'
140
- },
141
- setting: {
142
- id: 'labelBgColor',
143
- state: 'hover'
144
- }
158
+ {
159
+ label: {
160
+ en: 'Hover effect'
145
161
  },
146
- {
147
- label: {
148
- en: 'Text color'
162
+ type: 'combo',
163
+ iconName: 'polaris-edit',
164
+ fixedValue: 'Enabled',
165
+ isHideClear: true,
166
+ popoverLabel: {
167
+ en: 'Tabs hover effect'
168
+ },
169
+ controls: [
170
+ {
171
+ label: {
172
+ en: 'Text color'
173
+ },
174
+ setting: {
175
+ id: 'labelColor',
176
+ state: 'hover'
177
+ }
149
178
  },
150
- setting: {
151
- id: 'labelColor',
152
- state: 'hover'
179
+ {
180
+ label: {
181
+ en: 'Border'
182
+ },
183
+ setting: {
184
+ id: 'borderTab',
185
+ state: 'hover'
186
+ }
153
187
  }
188
+ ]
189
+ },
190
+ {
191
+ label: {
192
+ en: 'Active state'
154
193
  },
155
- {
156
- label: {
157
- en: 'Border'
194
+ type: 'combo',
195
+ iconName: 'polaris-edit',
196
+ fixedValue: 'Enabled',
197
+ isHideClear: true,
198
+ popoverLabel: {
199
+ en: 'Tabs active state'
200
+ },
201
+ controls: [
202
+ {
203
+ label: {
204
+ en: 'Text color'
205
+ },
206
+ setting: {
207
+ id: 'labelColor',
208
+ state: 'active'
209
+ }
158
210
  },
159
- setting: {
160
- id: 'borderTab',
161
- state: 'hover'
211
+ {
212
+ label: {
213
+ en: 'Background'
214
+ },
215
+ setting: {
216
+ id: 'labelBgColor',
217
+ state: 'active'
218
+ }
219
+ },
220
+ {
221
+ label: {
222
+ en: 'Border'
223
+ },
224
+ setting: {
225
+ id: 'borderTab',
226
+ state: 'active'
227
+ }
162
228
  }
163
- }
164
- ]
229
+ ]
230
+ }
231
+ ]
232
+ }
233
+ },
234
+ {
235
+ label: {
236
+ en: 'Background'
237
+ },
238
+ controls: [
239
+ {
240
+ setting: {
241
+ id: 'background'
242
+ },
243
+ layout: 'vertical'
165
244
  }
166
245
  ]
167
246
  },
168
247
  {
169
248
  label: {
170
- en: 'Active tab item'
249
+ en: 'Shape'
171
250
  },
172
251
  controls: [
173
252
  {
174
253
  label: {
175
- en: 'Background color'
254
+ en: 'Border'
176
255
  },
177
256
  setting: {
178
- id: 'labelBgColor',
179
- state: 'active'
257
+ id: 'border',
258
+ state: 'normal'
180
259
  }
181
260
  },
182
261
  {
183
262
  label: {
184
- en: 'Text color'
263
+ en: 'Corner'
185
264
  },
186
265
  setting: {
187
- id: 'labelColor',
188
- state: 'active'
266
+ id: 'rounded',
267
+ state: 'normal'
189
268
  }
190
269
  },
191
270
  {
192
271
  label: {
193
- en: 'Border'
272
+ en: 'Shadow'
194
273
  },
195
274
  setting: {
196
- id: 'borderTab',
197
- state: 'active'
275
+ id: 'boxShadow',
276
+ state: 'normal'
277
+ },
278
+ options: {
279
+ updateFields: [
280
+ {
281
+ field: 'enable',
282
+ settingId: 'advanced.hasBoxShadow',
283
+ state: 'normal'
284
+ }
285
+ ]
286
+ },
287
+ controlChangeTrigger: {
288
+ settings: [
289
+ {
290
+ condition: `boxShadow.normal.enable === true`,
291
+ source: [
292
+ 'boxShadow',
293
+ 'hasBoxShadow'
294
+ ],
295
+ action: {
296
+ controlId: 'hasBoxShadow',
297
+ groupType: 'advanced',
298
+ controlType: 'advanced',
299
+ state: 'normal',
300
+ newValue: true
301
+ }
302
+ },
303
+ {
304
+ condition: `boxShadow.normal.enable === false`,
305
+ source: [
306
+ 'boxShadow',
307
+ 'hasBoxShadow'
308
+ ],
309
+ action: {
310
+ controlId: 'hasBoxShadow',
311
+ groupType: 'advanced',
312
+ controlType: 'advanced',
313
+ state: 'normal',
314
+ newValue: false
315
+ }
316
+ }
317
+ ],
318
+ options: {
319
+ noRecordHistory: true
320
+ }
198
321
  }
199
322
  }
200
323
  ]
201
324
  },
202
325
  {
203
326
  label: {
204
- en: 'Background'
327
+ en: 'Display option'
205
328
  },
206
329
  controls: [
207
330
  {
208
- setting: {
209
- id: 'background'
331
+ label: {
332
+ en: 'Default active'
210
333
  },
211
- layout: 'vertical'
334
+ setting: {
335
+ id: 'activeKey'
336
+ }
212
337
  }
213
338
  ]
214
339
  }
@@ -717,6 +717,7 @@ type Setting$4 = {
717
717
  title?: string;
718
718
  aspectRatio?: ObjectDevices$1<string>;
719
719
  ratioOptions?: ObjectDevices$1<Ratio>;
720
+ enableLink?: boolean;
720
721
  } & Pick<NonNullable<RowProps['setting']>, 'layout' | 'horizontalAlign'>;
721
722
  type Styles$2 = {
722
723
  height?: ObjectDevices$1<string>;
@@ -1331,6 +1332,9 @@ type CountdownProps = BaseProps<{
1331
1332
  minWidth?: string;
1332
1333
  colorNumber?: ColorValueType$1;
1333
1334
  colorLabel?: ColorValueType$1;
1335
+ enableNumberTextStyle?: boolean;
1336
+ enableLabelTextStyle?: boolean;
1337
+ padding?: ObjectDevices$1<SizeSettingGlobal>;
1334
1338
  /**
1335
1339
  * @deprecated use `numTypo` instead
1336
1340
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.479",
3
+ "version": "2.0.0-dev.481",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",