@adobe/spectrum-design-data 0.4.0 → 0.7.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.
Files changed (96) hide show
  1. package/components/accordion.json +108 -194
  2. package/components/action-bar.json +64 -97
  3. package/components/action-button.json +95 -230
  4. package/components/action-group.json +88 -86
  5. package/components/alert-banner.json +104 -76
  6. package/components/alert-dialog.json +78 -126
  7. package/components/avatar-group.json +61 -119
  8. package/components/avatar.json +98 -212
  9. package/components/badge.json +138 -256
  10. package/components/breadcrumbs.json +95 -89
  11. package/components/button-group.json +57 -48
  12. package/components/button.json +151 -368
  13. package/components/calendar.json +97 -34
  14. package/components/cards.json +109 -250
  15. package/components/checkbox-group.json +50 -58
  16. package/components/checkbox.json +121 -186
  17. package/components/close-button.json +61 -124
  18. package/components/coach-indicator.json +63 -72
  19. package/components/coach-mark.json +89 -93
  20. package/components/color-area.json +68 -94
  21. package/components/color-handle.json +39 -79
  22. package/components/color-loupe.json +35 -52
  23. package/components/color-slider.json +95 -116
  24. package/components/color-wheel.json +67 -73
  25. package/components/combo-box.json +243 -331
  26. package/components/contextual-help.json +86 -175
  27. package/components/date-picker.json +139 -179
  28. package/components/divider.json +30 -69
  29. package/components/drop-zone.json +51 -92
  30. package/components/field-label.json +75 -117
  31. package/components/help-text.json +81 -105
  32. package/components/illustrated-message.json +106 -73
  33. package/components/in-line-alert.json +50 -83
  34. package/components/link.json +63 -85
  35. package/components/list-view.json +107 -146
  36. package/components/menu.json +180 -274
  37. package/components/meter.json +72 -118
  38. package/components/number-field.json +213 -305
  39. package/components/picker.json +208 -320
  40. package/components/popover.json +94 -129
  41. package/components/progress-bar.json +94 -131
  42. package/components/progress-circle.json +45 -72
  43. package/components/radio-button.json +87 -156
  44. package/components/radio-group.json +107 -74
  45. package/components/rating.json +66 -99
  46. package/components/search-field.json +132 -202
  47. package/components/segmented-control.json +94 -109
  48. package/components/select-box.json +119 -179
  49. package/components/side-navigation.json +108 -118
  50. package/components/slider.json +143 -228
  51. package/components/standard-dialog.json +96 -114
  52. package/components/standard-panel.json +105 -53
  53. package/components/status-light.json +104 -240
  54. package/components/steplist.json +77 -161
  55. package/components/swatch-group.json +42 -58
  56. package/components/swatch.json +75 -162
  57. package/components/switch.json +101 -189
  58. package/components/table.json +97 -102
  59. package/components/tabs.json +77 -104
  60. package/components/tag-field.json +86 -150
  61. package/components/tag-group.json +50 -44
  62. package/components/tag.json +81 -198
  63. package/components/takeover-dialog.json +59 -57
  64. package/components/text-area.json +200 -323
  65. package/components/text-field.json +183 -304
  66. package/components/thumbnail.json +63 -105
  67. package/components/toast.json +97 -83
  68. package/components/tooltip.json +104 -96
  69. package/components/tree-view.json +169 -181
  70. package/guidelines/app-frame-content-area.json +81 -0
  71. package/guidelines/app-frame-creating-bluelines.json +58 -0
  72. package/guidelines/app-frame-header.json +72 -0
  73. package/guidelines/app-frame-overview.json +167 -0
  74. package/guidelines/app-frame-side-navigation.json +138 -0
  75. package/guidelines/attention-hierarchy.json +42 -0
  76. package/guidelines/background-layers.json +38 -0
  77. package/guidelines/brand.json +50 -0
  78. package/guidelines/colors.json +62 -0
  79. package/guidelines/containers.json +62 -0
  80. package/guidelines/developer-overview.json +35 -0
  81. package/guidelines/faqs.json +35 -0
  82. package/guidelines/fonts.json +58 -0
  83. package/guidelines/grays.json +66 -0
  84. package/guidelines/icon-fundamentals.json +45 -0
  85. package/guidelines/illustrations.json +111 -0
  86. package/guidelines/introduction.json +31 -0
  87. package/guidelines/manifest.json +204 -0
  88. package/guidelines/motion.json +41 -0
  89. package/guidelines/object-styles.json +102 -0
  90. package/guidelines/principles.json +30 -0
  91. package/guidelines/resources.json +59 -0
  92. package/guidelines/spacing.json +25 -0
  93. package/guidelines/states.json +34 -0
  94. package/guidelines/typography-fundamentals.json +142 -0
  95. package/guidelines/using-icons.json +107 -0
  96. package/package.json +4 -2
@@ -9,67 +9,169 @@
9
9
  "category": "inputs",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/number-field/"
11
11
  },
12
- "options": {
13
- "label": {
14
- "type": "string"
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "Number fields allow users to enter a numeric value, with optional increment and decrement buttons."
16
+ },
17
+ {
18
+ "type": "guideline",
19
+ "content": "Number fields accept numeric inputs and allow values to be incremented or decremented. They are commonly used when a defined range or step value is required."
20
+ },
21
+ {
22
+ "type": "guideline",
23
+ "content": "Number fields can have optional stepper buttons to the side of the field. Regardless of if a number field has these buttons or not, is should always accommodate arrow key shortcuts to increase or decrease the number."
24
+ },
25
+ {
26
+ "type": "guideline",
27
+ "content": "If true, hides in-field increment and decrement buttons (stepper)."
28
+ },
29
+ {
30
+ "type": "guideline",
31
+ "content": "Number fields can be marked as optional or required, depending on the situation. For required number fields, there are two styling options: a “(required)” label or an asterisk. If you use an asterisk, be sure to include hint text to explain what the asterisk means. Optional number fields are either denoted with text added to the end of the label — “(optional)” — or have no indication at all."
32
+ },
33
+ {
34
+ "type": "guideline",
35
+ "content": "The asterisk used in this component is an icon that has specific spacing from the label text — not part of the label text itself."
36
+ },
37
+ {
38
+ "type": "guideline",
39
+ "content": "A number field can be marked as having an error to show that a value needs to be entered in order to move forward or that a value that was entered is invalid. For this component, an incorrect value should typically revert back to either the previously entered number or to the default value, rather than showing an error."
15
40
  },
41
+ {
42
+ "type": "guideline",
43
+ "content": "A number field in a disabled state shows that an input exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that the field may become available later."
44
+ },
45
+ {
46
+ "type": "guideline",
47
+ "content": "Number fields should always have an accessible name, typically provided by a visible text label. In rare cases where context is sufficient and an accessibility expert has reviewed the design, the visible label may be hidden or omitted. When no visible label is present, the input must still expose an accessible name (for example, in HTML via “aria-label” or “aria-labelledby,” and on other platforms via the platform’s accessible-name mechanism)."
48
+ },
49
+ {
50
+ "type": "guideline",
51
+ "content": "Number fields can show or hide the visible label."
52
+ },
53
+ {
54
+ "type": "guideline",
55
+ "content": "Labels can be placed either on top or on the side,. Top labels are the default and are recommended because they work better with long copy, localization, and responsive layouts. Side labels are most useful when vertical space is limited."
56
+ },
57
+ {
58
+ "type": "guideline",
59
+ "content": "Number fields come in four different sizes: small, medium, large, and extra-large. The medium size is the default and most frequently used option. Use the other sizes sparingly; they should be used to create a hierarchy of importance within the page."
60
+ },
61
+ {
62
+ "type": "guideline",
63
+ "content": "The value shows a user’s entered text or a default value, plus the units of measurement, if applicable."
64
+ },
65
+ {
66
+ "type": "guideline",
67
+ "content": "A number field can be marked as having an error to show that a value needs to be entered in order to move forward or that a value that was entered is invalid. The error message communicates an error for when the field requirements aren’t met, prompting a user to adjust what they had originally input. If an error exists, the error icon always overrides the validation icon."
68
+ },
69
+ {
70
+ "type": "guideline",
71
+ "content": "When an error message is displayed, it replaces the help text. If an error exists, the error icon always overrides the validation icon."
72
+ },
73
+ {
74
+ "type": "guideline",
75
+ "content": "A number field can have help text below the field to give extra context or instruction about what a user should input in the field. The help text communicates a hint or helpful information, such as specific requirements for correctly filling out the field."
76
+ },
77
+ {
78
+ "type": "guideline",
79
+ "content": "Help text is replaced by error messages when validation fails."
80
+ },
81
+ {
82
+ "type": "guideline",
83
+ "content": "When the field label is too long for the available horizontal space, it wraps to form another line. The text inside the field truncates."
84
+ },
85
+ {
86
+ "type": "guideline",
87
+ "content": "When a number field presents multiple values that are not identical, the field should show an en dash (–)."
88
+ },
89
+ {
90
+ "type": "guideline",
91
+ "content": "When the help text is too long for the available horizontal space, it wraps to form another line."
92
+ },
93
+ {
94
+ "type": "guideline",
95
+ "content": "Number fields should always allow users to add, subtract, multiply, and divide, with the field automatically calculating the result."
96
+ },
97
+ {
98
+ "type": "guideline",
99
+ "content": "Number fields can include units of measurement in the value. When focused or entering text, the units disappear. When scrolling, the units stay. If a user enters a unit that does not match the unit that the field requires, the field should automatically calculate a conversion and display the input value in the correct unit."
100
+ },
101
+ {
102
+ "type": "guideline",
103
+ "content": "Choose a default value for a field to revert back to if an invalid entry is input. If a user enters a valid number and then enters an invalid number, revert to the most recent valid entry."
104
+ },
105
+ {
106
+ "type": "guideline",
107
+ "content": "Most number fields should have a label. A field without a label is ambiguous and not accessible. In rare cases where context is sufficient and a label could be absent, make sure to have the design reviewed and approved by an accessibility expert. These should still include an aria-label in HTML (depending on the context, “aria-label” or “aria-labelledby”)."
108
+ },
109
+ {
110
+ "type": "guideline",
111
+ "content": "Labels for number fields should be in sentence case."
112
+ },
113
+ {
114
+ "type": "guideline",
115
+ "content": "When labeling number fields in a form, only mark the minority type—either required or optional—to reduce visual clutter:"
116
+ },
117
+ {
118
+ "type": "guideline",
119
+ "content": "Important: Never use an asterisk to indicate an optional number field."
120
+ },
121
+ {
122
+ "type": "guideline",
123
+ "content": "Putting instructions for how to complete an input, requirements, or any other essential information into placeholder text is not accessible, and should be avoided. Once a value is entered, placeholder text is no longer viewable; if someone is using an automatic form filler, they will never get the information in the placeholder text."
124
+ },
125
+ {
126
+ "type": "guideline",
127
+ "content": "Instead of placeholder text, choose a default value to include in the field in default state. Use the help text description to convey requirements or to show any formatting examples that would help user comprehension."
128
+ },
129
+ {
130
+ "type": "guideline",
131
+ "content": "The help text’s message should not simply restate the same information in the label in order to prompt someone to interact with it. Don’t add help text if it isn’t actually relevant or meaningful to a user in order to try to maintain layout continuity with other inputs that require help text."
132
+ },
133
+ {
134
+ "type": "guideline",
135
+ "content": "The help text area also displays an error message. When a number field already includes help text and an error is triggered, the help text is replaced with error text. Once the error is resolved, the help text description reappears below the field."
136
+ },
137
+ {
138
+ "type": "guideline",
139
+ "content": "Since one gets replaced by the other, the language of the help text and error text need to work together to convey the same messaging. Help text explains the requirement or adds supplementary context for how to successfully complete the input. Error text tells a user how to fix the error by re-stating the input requirements or describing the necessary interaction. Make sure that the help text and the error text include the same essential information so that it isn’t lost if one replaces the other like formatting requirements."
140
+ },
141
+ {
142
+ "type": "guideline",
143
+ "content": "Write error messaging in a human-centered way by guiding a user and showing them a solution — don’t simply state what’s wrong and then leave them guessing as to how to resolve it. Ambiguous error messages can be frustrating and even shame-inducing for users. Also, keep in mind that something that a system may deem an error may not actually be perceived as an error to a user."
144
+ },
145
+ {
146
+ "type": "guideline",
147
+ "content": "Error text should be written in 1-2 short, complete sentences and in a clear and straightforward way. Never end with an exclamation point. For number fields, the nature of the error is often related to something that needs to be fixed for in-line validation, so a helpful tone is most appropriate."
148
+ }
149
+ ],
150
+ "options": {
151
+ "label": { "type": "string" },
16
152
  "size": {
17
153
  "type": "string",
18
154
  "default": "m",
19
155
  "values": [
20
- {
21
- "value": "s"
22
- },
23
- {
24
- "value": "m"
25
- },
26
- {
27
- "value": "l"
28
- },
29
- {
30
- "value": "xl"
31
- }
156
+ { "value": "s" },
157
+ { "value": "m" },
158
+ { "value": "l" },
159
+ { "value": "xl" }
32
160
  ]
33
161
  },
34
162
  "labelPosition": {
35
163
  "type": "string",
36
164
  "default": "top",
37
- "values": [
38
- {
39
- "value": "top"
40
- },
41
- {
42
- "value": "side"
43
- }
44
- ]
45
- },
46
- "hideLabel": {
47
- "type": "boolean",
48
- "default": false
49
- },
50
- "isDisabled": {
51
- "type": "boolean",
52
- "default": false
53
- },
54
- "isError": {
55
- "type": "boolean",
56
- "default": false
57
- },
58
- "isRequired": {
59
- "type": "boolean",
60
- "default": false
165
+ "values": [{ "value": "top" }, { "value": "side" }]
61
166
  },
167
+ "hideLabel": { "type": "boolean", "default": false },
168
+ "isDisabled": { "type": "boolean", "default": false },
169
+ "isError": { "type": "boolean", "default": false },
170
+ "isRequired": { "type": "boolean", "default": false },
62
171
  "necessityIndicator": {
63
172
  "type": "string",
64
173
  "default": "icon",
65
- "values": [
66
- {
67
- "value": "text"
68
- },
69
- {
70
- "value": "icon"
71
- }
72
- ]
174
+ "values": [{ "value": "text" }, { "value": "icon" }]
73
175
  },
74
176
  "hideStepper": {
75
177
  "type": "boolean",
@@ -78,27 +180,13 @@
78
180
  }
79
181
  },
80
182
  "states": [
81
- {
82
- "name": "hover",
83
- "trigger": "interaction"
84
- },
85
- {
86
- "name": "focus-+-hover",
87
- "trigger": "prop"
88
- },
89
- {
90
- "name": "focus-+-not-hover",
91
- "trigger": "prop"
92
- }
183
+ { "name": "hover", "trigger": "interaction" },
184
+ { "name": "focus-+-hover", "trigger": "prop" },
185
+ { "name": "focus-+-not-hover", "trigger": "prop" }
93
186
  ],
94
- "lifecycle": {
95
- "introduced": "1.0.0-draft"
96
- },
187
+ "lifecycle": { "introduced": "1.0.0-draft" },
97
188
  "tokenBindings": [
98
- {
99
- "token": "in-field",
100
- "context": "Components"
101
- },
189
+ { "token": "in-field", "context": "Components" },
102
190
  {
103
191
  "token": "field-label-to-component",
104
192
  "context": "Spacing (field label to number field)"
@@ -123,18 +211,9 @@
123
211
  "token": "help-text-to-component",
124
212
  "context": "Spacing (number field to help text)"
125
213
  },
126
- {
127
- "token": "field-default-width-small",
128
- "context": "Width (default)"
129
- },
130
- {
131
- "token": "field-default-width-medium",
132
- "context": "Width (default)"
133
- },
134
- {
135
- "token": "field-default-width-large",
136
- "context": "Width (default)"
137
- },
214
+ { "token": "field-default-width-small", "context": "Width (default)" },
215
+ { "token": "field-default-width-medium", "context": "Width (default)" },
216
+ { "token": "field-default-width-large", "context": "Width (default)" },
138
217
  {
139
218
  "token": "field-default-width-extra-large",
140
219
  "context": "Width (default)"
@@ -159,38 +238,14 @@
159
238
  "token": "number-field-with-stepper-minimum-width-extra-large",
160
239
  "context": "Width (minimum)"
161
240
  },
162
- {
163
- "token": "component-height-75",
164
- "context": "Height"
165
- },
166
- {
167
- "token": "component-height-100",
168
- "context": "Height"
169
- },
170
- {
171
- "token": "component-height-200",
172
- "context": "Height"
173
- },
174
- {
175
- "token": "component-height-300",
176
- "context": "Height"
177
- },
178
- {
179
- "token": "corner-radius-medium-size-small",
180
- "context": "Rounding"
181
- },
182
- {
183
- "token": "corner-radius-medium-size-medium",
184
- "context": "Rounding"
185
- },
186
- {
187
- "token": "corner-radius-medium-size-large",
188
- "context": "Rounding"
189
- },
190
- {
191
- "token": "corner-radius-medium-size-extra-large",
192
- "context": "Rounding"
193
- },
241
+ { "token": "component-height-75", "context": "Height" },
242
+ { "token": "component-height-100", "context": "Height" },
243
+ { "token": "component-height-200", "context": "Height" },
244
+ { "token": "component-height-300", "context": "Height" },
245
+ { "token": "corner-radius-medium-size-small", "context": "Rounding" },
246
+ { "token": "corner-radius-medium-size-medium", "context": "Rounding" },
247
+ { "token": "corner-radius-medium-size-large", "context": "Rounding" },
248
+ { "token": "corner-radius-medium-size-extra-large", "context": "Rounding" },
194
249
  {
195
250
  "token": "component-edge-to-text-75",
196
251
  "context": "Spacing (start/end edge to value)"
@@ -239,38 +294,17 @@
239
294
  "token": "text-to-visual-300",
240
295
  "context": "Spacing (minimum, text to stepper)"
241
296
  },
242
- {
243
- "token": "border-width-200",
244
- "context": "Border"
245
- },
246
- {
247
- "token": "focus-indicator-thickness",
248
- "context": "Focus indicator"
249
- },
250
- {
251
- "token": "focus-indicator-gap",
252
- "context": "Focus indicator"
253
- },
297
+ { "token": "border-width-200", "context": "Border" },
298
+ { "token": "focus-indicator-thickness", "context": "Focus indicator" },
299
+ { "token": "focus-indicator-gap", "context": "Focus indicator" },
254
300
  {
255
301
  "token": "spacing-200",
256
302
  "context": "Spacing (minimum, field label to field)"
257
303
  },
258
- {
259
- "token": "workflow-icon-size-75",
260
- "context": "Prefix min-width"
261
- },
262
- {
263
- "token": "workflow-icon-size-100",
264
- "context": "Prefix min-width"
265
- },
266
- {
267
- "token": "workflow-icon-size-200",
268
- "context": "Prefix min-width"
269
- },
270
- {
271
- "token": "workflow-icon-size-300",
272
- "context": "Prefix min-width"
273
- },
304
+ { "token": "workflow-icon-size-75", "context": "Prefix min-width" },
305
+ { "token": "workflow-icon-size-100", "context": "Prefix min-width" },
306
+ { "token": "workflow-icon-size-200", "context": "Prefix min-width" },
307
+ { "token": "workflow-icon-size-300", "context": "Prefix min-width" },
274
308
  {
275
309
  "token": "component-top-to-workflow-icon-75",
276
310
  "context": "Spacing (top/bottom edge to alert icon)"
@@ -319,158 +353,47 @@
319
353
  "token": "field-edge-to-alert-icon-extra-large",
320
354
  "context": "Spacing (alert icon to end edge)"
321
355
  },
322
- {
323
- "token": "gray-25",
324
- "context": "Background and border"
325
- },
326
- {
327
- "token": "gray-300",
328
- "context": "Background and border"
329
- },
330
- {
331
- "token": "gray-400",
332
- "context": "Background and border"
333
- },
334
- {
335
- "token": "gray-900",
336
- "context": "Background and border"
337
- },
338
- {
339
- "token": "gray-800",
340
- "context": "Background and border"
341
- },
342
- {
343
- "token": "negative-border-color-default",
344
- "context": "Border (error)"
345
- },
346
- {
347
- "token": "negative-border-color-hover",
348
- "context": "Border (error)"
349
- },
356
+ { "token": "gray-25", "context": "Background and border" },
357
+ { "token": "gray-300", "context": "Background and border" },
358
+ { "token": "gray-400", "context": "Background and border" },
359
+ { "token": "gray-900", "context": "Background and border" },
360
+ { "token": "gray-800", "context": "Background and border" },
361
+ { "token": "negative-border-color-default", "context": "Border (error)" },
362
+ { "token": "negative-border-color-hover", "context": "Border (error)" },
350
363
  {
351
364
  "token": "negative-border-color-focus-hover",
352
365
  "context": "Border (error)"
353
366
  },
354
- {
355
- "token": "negative-border-color-focus",
356
- "context": "Border (error)"
357
- },
358
- {
359
- "token": "negative-border-color-key-focus",
360
- "context": "Border (error)"
361
- },
362
- {
363
- "token": "neutral-content-color-default",
364
- "context": "Value"
365
- },
366
- {
367
- "token": "neutral-content-color-hover",
368
- "context": "Value"
369
- },
370
- {
371
- "token": "neutral-content-color-focus-hover",
372
- "context": "Value"
373
- },
374
- {
375
- "token": "neutral-content-color-focus",
376
- "context": "Value"
377
- },
378
- {
379
- "token": "neutral-content-color-key-focus",
380
- "context": "Value"
381
- },
382
- {
383
- "token": "negative-visual-color",
384
- "context": "Alert icon"
385
- },
386
- {
387
- "token": "disabled-content-color",
388
- "context": "Disabled"
389
- },
390
- {
391
- "token": "disabled-border-color",
392
- "context": "Disabled"
393
- },
394
- {
395
- "token": "disabled-background-color",
396
- "context": "Disabled"
397
- },
398
- {
399
- "token": "focus-indicator-color",
400
- "context": "Focus ring"
401
- },
402
- {
403
- "token": "gray-600",
404
- "context": "Leading icon"
405
- },
406
- {
407
- "token": "default-font-family",
408
- "context": "Value"
409
- },
410
- {
411
- "token": "regular-font-weight",
412
- "context": "Value"
413
- },
414
- {
415
- "token": "default-font-style",
416
- "context": "Value"
417
- },
418
- {
419
- "token": "component-s-regular",
420
- "context": "Value"
421
- },
422
- {
423
- "token": "component-m-regular",
424
- "context": "Value"
425
- },
426
- {
427
- "token": "component-l-regular",
428
- "context": "Value"
429
- },
430
- {
431
- "token": "component-xl-regular",
432
- "context": "Value"
433
- },
434
- {
435
- "token": "line-height-font-size-75",
436
- "context": "Value"
437
- },
438
- {
439
- "token": "line-height-font-size-100",
440
- "context": "Value"
441
- },
442
- {
443
- "token": "line-height-font-size-200",
444
- "context": "Value"
445
- },
446
- {
447
- "token": "line-height-font-size-300",
448
- "context": "Value"
449
- },
450
- {
451
- "token": "cjk-line-height-100",
452
- "context": "Value"
453
- },
454
- {
455
- "token": "medium-font-weight",
456
- "context": "Prefix"
457
- },
458
- {
459
- "token": "component-s-medium",
460
- "context": "Prefix"
461
- },
462
- {
463
- "token": "component-m-medium",
464
- "context": "Prefix"
465
- },
466
- {
467
- "token": "component-l-medium",
468
- "context": "Prefix"
469
- },
470
- {
471
- "token": "component-xl-medium",
472
- "context": "Prefix"
473
- },
367
+ { "token": "negative-border-color-focus", "context": "Border (error)" },
368
+ { "token": "negative-border-color-key-focus", "context": "Border (error)" },
369
+ { "token": "neutral-content-color-default", "context": "Value" },
370
+ { "token": "neutral-content-color-hover", "context": "Value" },
371
+ { "token": "neutral-content-color-focus-hover", "context": "Value" },
372
+ { "token": "neutral-content-color-focus", "context": "Value" },
373
+ { "token": "neutral-content-color-key-focus", "context": "Value" },
374
+ { "token": "negative-visual-color", "context": "Alert icon" },
375
+ { "token": "disabled-content-color", "context": "Disabled" },
376
+ { "token": "disabled-border-color", "context": "Disabled" },
377
+ { "token": "disabled-background-color", "context": "Disabled" },
378
+ { "token": "focus-indicator-color", "context": "Focus ring" },
379
+ { "token": "gray-600", "context": "Leading icon" },
380
+ { "token": "default-font-family", "context": "Value" },
381
+ { "token": "regular-font-weight", "context": "Value" },
382
+ { "token": "default-font-style", "context": "Value" },
383
+ { "token": "component-s-regular", "context": "Value" },
384
+ { "token": "component-m-regular", "context": "Value" },
385
+ { "token": "component-l-regular", "context": "Value" },
386
+ { "token": "component-xl-regular", "context": "Value" },
387
+ { "token": "line-height-font-size-75", "context": "Value" },
388
+ { "token": "line-height-font-size-100", "context": "Value" },
389
+ { "token": "line-height-font-size-200", "context": "Value" },
390
+ { "token": "line-height-font-size-300", "context": "Value" },
391
+ { "token": "cjk-line-height-100", "context": "Value" },
392
+ { "token": "medium-font-weight", "context": "Prefix" },
393
+ { "token": "component-s-medium", "context": "Prefix" },
394
+ { "token": "component-m-medium", "context": "Prefix" },
395
+ { "token": "component-l-medium", "context": "Prefix" },
396
+ { "token": "component-xl-medium", "context": "Prefix" },
474
397
  {
475
398
  "token": "component-padding-vertical-200",
476
399
  "context": "Spacing (top/bottom edge to text)"
@@ -487,10 +410,7 @@
487
410
  "token": "component-top-to-workflow-icon-400",
488
411
  "context": "Leading icon (top/bottom edge to leading icon)"
489
412
  },
490
- {
491
- "token": "positive-visual-color",
492
- "context": "Positive icon"
493
- }
413
+ { "token": "positive-visual-color", "context": "Positive icon" }
494
414
  ],
495
415
  "accessibility": {
496
416
  "role": "spinbutton",
@@ -498,21 +418,9 @@
498
418
  "focusable": true,
499
419
  "keyboardIntents": ["increment", "decrement"],
500
420
  "wcag": [
501
- {
502
- "criterion": "1.3.1",
503
- "level": "A",
504
- "title": "Info and Relationships"
505
- },
506
- {
507
- "criterion": "2.1.1",
508
- "level": "A",
509
- "title": "Keyboard"
510
- },
511
- {
512
- "criterion": "4.1.2",
513
- "level": "A",
514
- "title": "Name, Role, Value"
515
- }
421
+ { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
422
+ { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
423
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
516
424
  ]
517
425
  }
518
426
  }