@synergy-design-system/tokens 1.0.0-main.8 → 1.0.0
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.
- package/CHANGELOG.md +19 -47
- package/LICENSE +5 -24
- package/README.md +1 -1
- package/dist/js/index.d.ts +935 -0
- package/dist/js/index.js +4 -4
- package/dist/scss/_tokens.scss +4 -4
- package/dist/themes/dark.css +7 -10
- package/dist/themes/light.css +7 -10
- package/package.json +11 -12
- package/src/figma-tokens/$metadata.json +1 -1
- package/src/figma-tokens/$themes.json +1 -1
- package/src/figma-tokens/_docs.json +280 -23
- package/src/figma-tokens/semantic/focus-ring.json +3 -3
- package/src/figma-tokens/semantic/input.json +0 -6
- package/src/figma-tokens/semantic/toggle.json +18 -0
- package/src/figma-tokens/semantic/toggles.json +0 -16
package/dist/js/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 1.0.0-main.
|
|
2
|
+
* @synergy-design-system/tokens version 1.0.0-main.14
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -581,17 +581,17 @@ export const SynInputFontSizeLarge = 'var(--syn-input-font-size-large)';
|
|
|
581
581
|
/**
|
|
582
582
|
* @type {string}
|
|
583
583
|
*/
|
|
584
|
-
export const
|
|
584
|
+
export const SynToggleSizeSmall = 'var(--syn-toggle-size-small)';
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
587
|
* @type {string}
|
|
588
588
|
*/
|
|
589
|
-
export const
|
|
589
|
+
export const SynToggleSizeMedium = 'var(--syn-toggle-size-medium)';
|
|
590
590
|
|
|
591
591
|
/**
|
|
592
592
|
* @type {string}
|
|
593
593
|
*/
|
|
594
|
-
export const
|
|
594
|
+
export const SynToggleSizeLarge = 'var(--syn-toggle-size-large)';
|
|
595
595
|
|
|
596
596
|
/**
|
|
597
597
|
* @type {string}
|
package/dist/scss/_tokens.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 1.0.0-main.
|
|
2
|
+
* @synergy-design-system/tokens version 1.0.0-main.14
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
*/
|
|
5
5
|
$SynFontSize2xSmall: var(--syn-font-size-2x-small) !default;
|
|
@@ -117,9 +117,9 @@ $SynInputReadonlyColorFocus: var(--syn-input-readonly-color-focus) !default;
|
|
|
117
117
|
$SynInputFontSizeSmall: var(--syn-input-font-size-small) !default;
|
|
118
118
|
$SynInputFontSizeMedium: var(--syn-input-font-size-medium) !default;
|
|
119
119
|
$SynInputFontSizeLarge: var(--syn-input-font-size-large) !default;
|
|
120
|
-
$
|
|
121
|
-
$
|
|
122
|
-
$
|
|
120
|
+
$SynToggleSizeSmall: var(--syn-toggle-size-small) !default;
|
|
121
|
+
$SynToggleSizeMedium: var(--syn-toggle-size-medium) !default;
|
|
122
|
+
$SynToggleSizeLarge: var(--syn-toggle-size-large) !default;
|
|
123
123
|
$SynColorPrimary50: var(--syn-color-primary-50) !default;
|
|
124
124
|
$SynColorPrimary100: var(--syn-color-primary-100) !default;
|
|
125
125
|
$SynColorPrimary200: var(--syn-color-primary-200) !default;
|
package/dist/themes/dark.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 1.0.0-main.
|
|
2
|
+
* @synergy-design-system/tokens version 1.0.0-main.14
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly
|
|
5
|
-
* Generated on
|
|
5
|
+
* Generated on Wed, 06 Dec 2023 07:43:47 GMT
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
:root {
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
--syn-button-font-size-small: var(--syn-font-size-x-small);
|
|
63
63
|
--syn-button-font-size-medium: var(--syn-font-size-medium);
|
|
64
64
|
--syn-button-font-size-large: var(--syn-font-size-large);
|
|
65
|
-
--syn-focus-ring-color: var(--syn-color-primary-
|
|
65
|
+
--syn-focus-ring-color: var(--syn-color-primary-400);
|
|
66
66
|
--syn-focus-ring-width: var(--syn-border-width-medium);
|
|
67
|
-
--syn-focus-ring-offset:
|
|
67
|
+
--syn-focus-ring-offset: var(--syn-spacing-3x-small);
|
|
68
68
|
--syn-input-color: var(--syn-color-neutral-950);
|
|
69
69
|
--syn-input-color-hover: var(--syn-color-neutral-950);
|
|
70
70
|
--syn-input-color-focus: var(--syn-color-neutral-950);
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
--syn-input-font-size-small: var(--syn-font-size-small);
|
|
123
123
|
--syn-input-font-size-medium: var(--syn-font-size-medium);
|
|
124
124
|
--syn-input-font-size-large: var(--syn-font-size-large);
|
|
125
|
-
--syn-size-small: 14px;
|
|
126
|
-
--syn-size-medium: var(--syn-spacing-medium);
|
|
127
|
-
--syn-size-large: var(--syn-spacing-large);
|
|
125
|
+
--syn-toggle-size-small: 14px;
|
|
126
|
+
--syn-toggle-size-medium: var(--syn-spacing-medium);
|
|
127
|
+
--syn-toggle-size-large: var(--syn-spacing-large);
|
|
128
128
|
--syn-color-primary-50: #072E4A;
|
|
129
129
|
--syn-color-primary-100: #0B486F;
|
|
130
130
|
--syn-color-primary-200: #065786;
|
|
@@ -230,9 +230,6 @@
|
|
|
230
230
|
--syn-input-filled-color-hover: var(--syn-color-neutral-800);
|
|
231
231
|
--syn-input-filled-color-focus: var(--syn-color-neutral-700);
|
|
232
232
|
--syn-input-filled-color-disabled: var(--syn-color-neutral-800);
|
|
233
|
-
--syn-toggle-size-small: 0.875rem;
|
|
234
|
-
--syn-toggle-size-medium: 1.125rem;
|
|
235
|
-
--syn-toggle-size-large: 1.375rem;
|
|
236
233
|
--syn-overlay-background-color: hsl(0 0% 0% / 43%);
|
|
237
234
|
--syn-panel-background-color: var(--syn-color-neutral-50);
|
|
238
235
|
--syn-panel-border-color: var(--syn-color-neutral-200);
|
package/dist/themes/light.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 1.0.0-main.
|
|
2
|
+
* @synergy-design-system/tokens version 1.0.0-main.14
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly
|
|
5
|
-
* Generated on
|
|
5
|
+
* Generated on Wed, 06 Dec 2023 07:43:47 GMT
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
:root {
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
--syn-button-font-size-small: var(--syn-font-size-x-small);
|
|
63
63
|
--syn-button-font-size-medium: var(--syn-font-size-medium);
|
|
64
64
|
--syn-button-font-size-large: var(--syn-font-size-large);
|
|
65
|
-
--syn-focus-ring-color: var(--syn-color-primary-
|
|
65
|
+
--syn-focus-ring-color: var(--syn-color-primary-400);
|
|
66
66
|
--syn-focus-ring-width: var(--syn-border-width-medium);
|
|
67
|
-
--syn-focus-ring-offset:
|
|
67
|
+
--syn-focus-ring-offset: var(--syn-spacing-3x-small);
|
|
68
68
|
--syn-input-color: var(--syn-color-neutral-950);
|
|
69
69
|
--syn-input-color-hover: var(--syn-color-neutral-950);
|
|
70
70
|
--syn-input-color-focus: var(--syn-color-neutral-950);
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
--syn-input-font-size-small: var(--syn-font-size-small);
|
|
123
123
|
--syn-input-font-size-medium: var(--syn-font-size-medium);
|
|
124
124
|
--syn-input-font-size-large: var(--syn-font-size-large);
|
|
125
|
-
--syn-size-small: 14px;
|
|
126
|
-
--syn-size-medium: var(--syn-spacing-medium);
|
|
127
|
-
--syn-size-large: var(--syn-spacing-large);
|
|
125
|
+
--syn-toggle-size-small: 14px;
|
|
126
|
+
--syn-toggle-size-medium: var(--syn-spacing-medium);
|
|
127
|
+
--syn-toggle-size-large: var(--syn-spacing-large);
|
|
128
128
|
--syn-color-primary-50: #f0f9ff;
|
|
129
129
|
--syn-color-primary-100: #e0f1FE;
|
|
130
130
|
--syn-color-primary-200: #b9e5fe;
|
|
@@ -230,9 +230,6 @@
|
|
|
230
230
|
--syn-input-filled-color-hover: var(--syn-color-neutral-800);
|
|
231
231
|
--syn-input-filled-color-focus: var(--syn-color-neutral-700);
|
|
232
232
|
--syn-input-filled-color-disabled: var(--syn-color-neutral-800);
|
|
233
|
-
--syn-toggle-size-small: 0.875rem;
|
|
234
|
-
--syn-toggle-size-medium: 1.125rem;
|
|
235
|
-
--syn-toggle-size-large: 1.375rem;
|
|
236
233
|
--syn-overlay-background-color: hsl(240 3.8% 46.1% / 33%);
|
|
237
234
|
--syn-panel-background-color: var(--syn-color-neutral-0);
|
|
238
235
|
--syn-panel-border-color: var(--syn-color-neutral-200);
|
package/package.json
CHANGED
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
"@synergy-design-system/eslint-config-syn": "0.1.0"
|
|
21
21
|
},
|
|
22
22
|
"exports": {
|
|
23
|
-
".":
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/js/index.d.ts",
|
|
25
|
+
"import": "./dist/js/index.js"
|
|
26
|
+
},
|
|
24
27
|
"./themes/*": "./dist/themes/*",
|
|
25
28
|
"./scss": "./dist/scss/_tokens.scss"
|
|
26
29
|
},
|
|
@@ -29,27 +32,23 @@
|
|
|
29
32
|
"CHANGELOG.md",
|
|
30
33
|
"src/figma-tokens"
|
|
31
34
|
],
|
|
32
|
-
"homepage": "https://github.com/
|
|
35
|
+
"homepage": "https://github.com/synergy-design-system/synergy-design-system/tree/main/packages/tokens",
|
|
33
36
|
"keywords": [
|
|
34
37
|
"SDS",
|
|
35
38
|
"SICK",
|
|
36
39
|
"Synergy Design System",
|
|
37
40
|
"Design Tokens"
|
|
38
41
|
],
|
|
39
|
-
"license": "
|
|
42
|
+
"license": "MIT",
|
|
40
43
|
"name": "@synergy-design-system/tokens",
|
|
41
44
|
"repository": {
|
|
42
45
|
"type": "git",
|
|
43
|
-
"url": "https://github.com/
|
|
46
|
+
"url": "https://github.com/synergy-design-system/synergy-design-system.git",
|
|
44
47
|
"directory": "packages/tokens"
|
|
45
48
|
},
|
|
46
49
|
"release": {
|
|
47
50
|
"branches": [
|
|
48
|
-
"
|
|
49
|
-
{
|
|
50
|
-
"name": "main",
|
|
51
|
-
"prerelease": true
|
|
52
|
-
},
|
|
51
|
+
"main",
|
|
53
52
|
{
|
|
54
53
|
"name": "beta",
|
|
55
54
|
"prerelease": true
|
|
@@ -57,8 +56,7 @@
|
|
|
57
56
|
{
|
|
58
57
|
"name": "alpha",
|
|
59
58
|
"prerelease": true
|
|
60
|
-
}
|
|
61
|
-
"release-fallback"
|
|
59
|
+
}
|
|
62
60
|
],
|
|
63
61
|
"plugins": [
|
|
64
62
|
"@semantic-release/commit-analyzer",
|
|
@@ -100,7 +98,8 @@
|
|
|
100
98
|
]
|
|
101
99
|
},
|
|
102
100
|
"type": "module",
|
|
103
|
-
"
|
|
101
|
+
"types": "./dist/js/index.d.ts",
|
|
102
|
+
"version": "1.0.0",
|
|
104
103
|
"scripts": {
|
|
105
104
|
"build": "pnpm clean && node scripts/build.js",
|
|
106
105
|
"clean": "rimraf build",
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
"color/primitives": "source",
|
|
318
318
|
"semantic/input": "enabled",
|
|
319
319
|
"semantic/button": "enabled",
|
|
320
|
-
"semantic/
|
|
320
|
+
"semantic/toggle": "enabled"
|
|
321
321
|
},
|
|
322
322
|
"$figmaCollectionId": "VariableCollectionId:790:67393",
|
|
323
323
|
"$figmaModeId": "790:0",
|
|
@@ -160,6 +160,16 @@
|
|
|
160
160
|
"value": "Use the disabled attribute to disable a button.",
|
|
161
161
|
"type": "text"
|
|
162
162
|
}
|
|
163
|
+
},
|
|
164
|
+
"focus": {
|
|
165
|
+
"title": {
|
|
166
|
+
"value": "Focus",
|
|
167
|
+
"type": "text"
|
|
168
|
+
},
|
|
169
|
+
"description": {
|
|
170
|
+
"value": "The focus event gives the user feedback that the Button has been focused by the keyboard interaction and that the button component is ready for use.",
|
|
171
|
+
"type": "text"
|
|
172
|
+
}
|
|
163
173
|
}
|
|
164
174
|
},
|
|
165
175
|
"button-group": {
|
|
@@ -203,13 +213,85 @@
|
|
|
203
213
|
}
|
|
204
214
|
},
|
|
205
215
|
"checkbox": {
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
|
|
216
|
+
"default": {
|
|
217
|
+
"description": {
|
|
218
|
+
"value": "Checkboxes allow the user to toggle an option on or off.",
|
|
219
|
+
"type": "text"
|
|
220
|
+
},
|
|
221
|
+
"title": {
|
|
222
|
+
"value": "Checkbox",
|
|
223
|
+
"type": "text"
|
|
224
|
+
}
|
|
209
225
|
},
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
|
|
226
|
+
"checked": {
|
|
227
|
+
"title": {
|
|
228
|
+
"value": "Checked",
|
|
229
|
+
"type": "text"
|
|
230
|
+
},
|
|
231
|
+
"description": {
|
|
232
|
+
"value": "Use the checked attribute to activate the checkbox.",
|
|
233
|
+
"type": "text"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"indeterminate": {
|
|
237
|
+
"title": {
|
|
238
|
+
"value": "Indeterminate",
|
|
239
|
+
"type": "text"
|
|
240
|
+
},
|
|
241
|
+
"description": {
|
|
242
|
+
"value": "Use the indeterminate attribute to make the checkbox indeterminate.",
|
|
243
|
+
"type": "text"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"focus": {
|
|
247
|
+
"title": {
|
|
248
|
+
"value": "Focus",
|
|
249
|
+
"type": "text"
|
|
250
|
+
},
|
|
251
|
+
"description": {
|
|
252
|
+
"value": "The focus event gives the user feedback that the Checkbox has been focused by the keyboard interaction.",
|
|
253
|
+
"type": "text"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"disabled": {
|
|
257
|
+
"title": {
|
|
258
|
+
"value": "Disabled",
|
|
259
|
+
"type": "text"
|
|
260
|
+
},
|
|
261
|
+
"description": {
|
|
262
|
+
"value": "Use the disabled attribute to disable the checkbox.",
|
|
263
|
+
"type": "text"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"sizes": {
|
|
267
|
+
"title": {
|
|
268
|
+
"value": "Sizes",
|
|
269
|
+
"type": "text"
|
|
270
|
+
},
|
|
271
|
+
"description": {
|
|
272
|
+
"value": "Use the size attribute to change a checkbox’s size.",
|
|
273
|
+
"type": "text"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"invalid": {
|
|
277
|
+
"title": {
|
|
278
|
+
"value": "Invalid",
|
|
279
|
+
"type": "text"
|
|
280
|
+
},
|
|
281
|
+
"description": {
|
|
282
|
+
"value": "The invalid status is used to warn the user that the Checkbox is invalid. For example, if the check is mandatory and nothing has been checked.",
|
|
283
|
+
"type": "text"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"validity": {
|
|
287
|
+
"title": {
|
|
288
|
+
"value": "Custom Validity",
|
|
289
|
+
"type": "text"
|
|
290
|
+
},
|
|
291
|
+
"description": {
|
|
292
|
+
"value": "Use the setCustomValidity() method to set a custom validation message. This will prevent the form from submitting and make the browser display the error message you provide. To clear the error, call this function with an empty string.",
|
|
293
|
+
"type": "text"
|
|
294
|
+
}
|
|
213
295
|
}
|
|
214
296
|
},
|
|
215
297
|
"color-picker": {
|
|
@@ -313,13 +395,65 @@
|
|
|
313
395
|
}
|
|
314
396
|
},
|
|
315
397
|
"icon-button": {
|
|
316
|
-
"
|
|
317
|
-
"
|
|
318
|
-
|
|
398
|
+
"default": {
|
|
399
|
+
"description": {
|
|
400
|
+
"value": "Icons buttons are simple, icon-only buttons that can be used for actions and in toolbars.\n\nFor a full list of icons that come bundled with Synergy, refer to the Assets.",
|
|
401
|
+
"type": "text"
|
|
402
|
+
},
|
|
403
|
+
"title": {
|
|
404
|
+
"value": "Icon Button",
|
|
405
|
+
"type": "text"
|
|
406
|
+
}
|
|
319
407
|
},
|
|
320
|
-
"
|
|
321
|
-
"
|
|
322
|
-
|
|
408
|
+
"sizes": {
|
|
409
|
+
"title": {
|
|
410
|
+
"value": "Sizes",
|
|
411
|
+
"type": "text"
|
|
412
|
+
},
|
|
413
|
+
"description": {
|
|
414
|
+
"value": "Use the size attribute to change a icon-button size.",
|
|
415
|
+
"type": "text"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"disabled": {
|
|
419
|
+
"title": {
|
|
420
|
+
"value": "Disabled",
|
|
421
|
+
"type": "text"
|
|
422
|
+
},
|
|
423
|
+
"description": {
|
|
424
|
+
"value": "Use the disabled attribute to disable the icon button.",
|
|
425
|
+
"type": "text"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"focus": {
|
|
429
|
+
"title": {
|
|
430
|
+
"value": "Focus",
|
|
431
|
+
"type": "text"
|
|
432
|
+
},
|
|
433
|
+
"description": {
|
|
434
|
+
"value": "The focus event gives the user feedback that the icon-button has been focused by the keyboard interaction.",
|
|
435
|
+
"type": "text"
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"color": {
|
|
439
|
+
"title": {
|
|
440
|
+
"value": "Color",
|
|
441
|
+
"type": "text"
|
|
442
|
+
},
|
|
443
|
+
"description": {
|
|
444
|
+
"value": "The Icon button can have two color variants, Primary or Neutral Color.",
|
|
445
|
+
"type": "text"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"label": {
|
|
449
|
+
"titel": {
|
|
450
|
+
"value": "Accessibility Label",
|
|
451
|
+
"type": "text"
|
|
452
|
+
},
|
|
453
|
+
"description": {
|
|
454
|
+
"value": "A description that gets read by assistive devices. For optimal accessibility, you have to include a label that describes what the icon button does.",
|
|
455
|
+
"type": "text"
|
|
456
|
+
}
|
|
323
457
|
}
|
|
324
458
|
},
|
|
325
459
|
"icon": {
|
|
@@ -445,11 +579,11 @@
|
|
|
445
579
|
},
|
|
446
580
|
"prefix-suffix": {
|
|
447
581
|
"title": {
|
|
448
|
-
"value": "Prefix Suffix Icons",
|
|
582
|
+
"value": "Prefix Suffix Text and Icons",
|
|
449
583
|
"type": "text"
|
|
450
584
|
},
|
|
451
585
|
"description": {
|
|
452
|
-
"value": "Use the prefix and suffix slots to add icons.",
|
|
586
|
+
"value": "Use the prefix and suffix slots to add text and icons.",
|
|
453
587
|
"type": "text"
|
|
454
588
|
}
|
|
455
589
|
},
|
|
@@ -585,6 +719,16 @@
|
|
|
585
719
|
"type": "text"
|
|
586
720
|
}
|
|
587
721
|
},
|
|
722
|
+
"labels": {
|
|
723
|
+
"title": {
|
|
724
|
+
"value": "Labels",
|
|
725
|
+
"type": "text"
|
|
726
|
+
},
|
|
727
|
+
"description": {
|
|
728
|
+
"value": "Use the label attribute to give the radio-group an accessible label. For labels that contain HTML, use the label slot instead.",
|
|
729
|
+
"type": "text"
|
|
730
|
+
}
|
|
731
|
+
},
|
|
588
732
|
"help-text": {
|
|
589
733
|
"title": {
|
|
590
734
|
"value": "Help Text",
|
|
@@ -634,6 +778,26 @@
|
|
|
634
778
|
"value": "Use the setCustomValidity() method to set a custom validation message. This will prevent the form from submitting and make the browser display the error message you provide. To clear the error, call this function with an empty string.",
|
|
635
779
|
"type": "text"
|
|
636
780
|
}
|
|
781
|
+
},
|
|
782
|
+
"focus": {
|
|
783
|
+
"title": {
|
|
784
|
+
"value": "Focus",
|
|
785
|
+
"type": "text"
|
|
786
|
+
},
|
|
787
|
+
"description": {
|
|
788
|
+
"value": "The focus event gives the user feedback that one of the Checkboxes has been focused by the keyboard interaction.",
|
|
789
|
+
"type": "text"
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
"invalid": {
|
|
793
|
+
"title": {
|
|
794
|
+
"value": "Invalid",
|
|
795
|
+
"type": "text"
|
|
796
|
+
},
|
|
797
|
+
"description": {
|
|
798
|
+
"value": "The invalid status is used to warn the user that the Radio Group is invalid. For example, if the radio is mandatory and nothing has been checked.",
|
|
799
|
+
"type": "text"
|
|
800
|
+
}
|
|
637
801
|
}
|
|
638
802
|
},
|
|
639
803
|
"range": {
|
|
@@ -756,6 +920,26 @@
|
|
|
756
920
|
"value": "Use the size attribute to change a switch’s size.",
|
|
757
921
|
"type": "text"
|
|
758
922
|
}
|
|
923
|
+
},
|
|
924
|
+
"focus": {
|
|
925
|
+
"title": {
|
|
926
|
+
"value": "Focus",
|
|
927
|
+
"type": "text"
|
|
928
|
+
},
|
|
929
|
+
"description": {
|
|
930
|
+
"value": "The focus event gives the user feedback that the Switch has been focused by the keyboard interaction.",
|
|
931
|
+
"type": "text"
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
"invalid": {
|
|
935
|
+
"title": {
|
|
936
|
+
"value": "Invalid",
|
|
937
|
+
"type": "text"
|
|
938
|
+
},
|
|
939
|
+
"description": {
|
|
940
|
+
"value": "The invalid status is used to warn the user that the Switch is invalid.",
|
|
941
|
+
"type": "text"
|
|
942
|
+
}
|
|
759
943
|
}
|
|
760
944
|
},
|
|
761
945
|
"tab-group": {
|
|
@@ -789,13 +973,35 @@
|
|
|
789
973
|
}
|
|
790
974
|
},
|
|
791
975
|
"tag": {
|
|
792
|
-
"
|
|
793
|
-
"
|
|
794
|
-
|
|
976
|
+
"default": {
|
|
977
|
+
"description": {
|
|
978
|
+
"value": "Tags are used as labels to organize things or to indicate a selection.",
|
|
979
|
+
"type": "text"
|
|
980
|
+
},
|
|
981
|
+
"title": {
|
|
982
|
+
"value": "Tag",
|
|
983
|
+
"type": "text"
|
|
984
|
+
}
|
|
795
985
|
},
|
|
796
|
-
"
|
|
797
|
-
"
|
|
798
|
-
|
|
986
|
+
"size": {
|
|
987
|
+
"title": {
|
|
988
|
+
"value": "Sizes",
|
|
989
|
+
"type": "text"
|
|
990
|
+
},
|
|
991
|
+
"description": {
|
|
992
|
+
"value": "Use the size attribute to change a tab’s size.",
|
|
993
|
+
"type": "text"
|
|
994
|
+
}
|
|
995
|
+
},
|
|
996
|
+
"removable": {
|
|
997
|
+
"title": {
|
|
998
|
+
"value": "Removable",
|
|
999
|
+
"type": "text"
|
|
1000
|
+
},
|
|
1001
|
+
"description": {
|
|
1002
|
+
"value": "Use the removable attribute to add a remove button to the tag.",
|
|
1003
|
+
"type": "text"
|
|
1004
|
+
}
|
|
799
1005
|
}
|
|
800
1006
|
},
|
|
801
1007
|
"textarea": {
|
|
@@ -962,15 +1168,66 @@
|
|
|
962
1168
|
},
|
|
963
1169
|
"radio": {
|
|
964
1170
|
"default": {
|
|
1171
|
+
"description": {
|
|
1172
|
+
"value": "Radios allow the user to select a single option from a group. \\nRadios are designed to be used with radio groups.",
|
|
1173
|
+
"type": "text"
|
|
1174
|
+
},
|
|
965
1175
|
"title": {
|
|
966
1176
|
"value": "Radio",
|
|
967
1177
|
"type": "text"
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
"focus": {
|
|
1181
|
+
"title": {
|
|
1182
|
+
"value": "Focus",
|
|
1183
|
+
"type": "text"
|
|
968
1184
|
},
|
|
969
1185
|
"description": {
|
|
970
|
-
"value": "
|
|
1186
|
+
"value": "The focus event gives the user feedback that the Radio has been focused by the keyboard interaction.",
|
|
971
1187
|
"type": "text"
|
|
972
1188
|
}
|
|
973
|
-
}
|
|
1189
|
+
},
|
|
1190
|
+
"disabled": {
|
|
1191
|
+
"title": {
|
|
1192
|
+
"value": "Disabled",
|
|
1193
|
+
"type": "text"
|
|
1194
|
+
},
|
|
1195
|
+
"description": {
|
|
1196
|
+
"value": "Use the disabled attribute to disable a radio.",
|
|
1197
|
+
"type": "text"
|
|
1198
|
+
}
|
|
1199
|
+
},
|
|
1200
|
+
"sizes": {
|
|
1201
|
+
"title": {
|
|
1202
|
+
"value": "Sizes",
|
|
1203
|
+
"type": "text"
|
|
1204
|
+
},
|
|
1205
|
+
"description": {
|
|
1206
|
+
"value": "Add the size attribute to the Radio Group to change the radios’ size.",
|
|
1207
|
+
"type": "text"
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
"invalid": {
|
|
1211
|
+
"title": {
|
|
1212
|
+
"value": "Invalid",
|
|
1213
|
+
"type": "text"
|
|
1214
|
+
},
|
|
1215
|
+
"description": {
|
|
1216
|
+
"value": "The invalid status is used to warn the user that the Radio is invalid. For example, if the radio is mandatory and nothing has been checked.",
|
|
1217
|
+
"type": "text"
|
|
1218
|
+
}
|
|
1219
|
+
},
|
|
1220
|
+
"value": {
|
|
1221
|
+
"title": {
|
|
1222
|
+
"value": "Initial Value",
|
|
1223
|
+
"type": "text"
|
|
1224
|
+
},
|
|
1225
|
+
"description": {
|
|
1226
|
+
"value": "To set the initial value and checked state, use the value attribute on the containing radio group.",
|
|
1227
|
+
"type": "text"
|
|
1228
|
+
}
|
|
1229
|
+
},
|
|
1230
|
+
"type": "other"
|
|
974
1231
|
}
|
|
975
1232
|
},
|
|
976
1233
|
"frameworks": {
|
|
@@ -1233,4 +1490,4 @@
|
|
|
1233
1490
|
}
|
|
1234
1491
|
}
|
|
1235
1492
|
}
|
|
1236
|
-
}
|
|
1493
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"focus-ring": {
|
|
3
3
|
"color": {
|
|
4
|
-
"value": "{primary.
|
|
4
|
+
"value": "{primary.400}",
|
|
5
5
|
"type": "color"
|
|
6
6
|
},
|
|
7
7
|
"width": {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"type": "borderWidth"
|
|
10
10
|
},
|
|
11
11
|
"offset": {
|
|
12
|
-
"value": "{spacing.
|
|
12
|
+
"value": "{spacing.3x-small}",
|
|
13
13
|
"type": "spacing"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
}
|
|
16
|
+
}
|