@adobe/spectrum-design-data 0.4.0 → 0.6.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 +87 -0
  71. package/guidelines/app-frame-creating-bluelines.json +61 -0
  72. package/guidelines/app-frame-header.json +75 -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 +41 -0
  77. package/guidelines/brand.json +50 -0
  78. package/guidelines/colors.json +65 -0
  79. package/guidelines/containers.json +65 -0
  80. package/guidelines/developer-overview.json +38 -0
  81. package/guidelines/faqs.json +35 -0
  82. package/guidelines/fonts.json +58 -0
  83. package/guidelines/grays.json +69 -0
  84. package/guidelines/icon-fundamentals.json +45 -0
  85. package/guidelines/illustrations.json +114 -0
  86. package/guidelines/introduction.json +34 -0
  87. package/guidelines/manifest.json +204 -0
  88. package/guidelines/motion.json +41 -0
  89. package/guidelines/object-styles.json +105 -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 +145 -0
  95. package/guidelines/using-icons.json +110 -0
  96. package/package.json +5 -2
@@ -9,82 +9,85 @@
9
9
  "category": "inputs",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/rating/"
11
11
  },
12
- "options": {
13
- "value": {
14
- "type": "number",
15
- "minimum": 0,
16
- "maximum": 5,
17
- "default": 0,
18
- "multipleOf": 0.5,
19
- "description": "From 0 to 5, can be a decimal to represent half stars"
20
- },
21
- "isEmphasized": {
22
- "type": "boolean",
23
- "default": false
24
- },
25
- "isDisabled": {
26
- "type": "boolean",
27
- "default": false
28
- }
29
- },
30
- "states": [
12
+ "documentBlocks": [
31
13
  {
32
- "name": "hover",
33
- "trigger": "interaction"
14
+ "type": "purpose",
15
+ "content": "The rating component lets users apply a rating to an item or experience, such as an image, a forum post, an item for sale in a marketplace, and more."
34
16
  },
35
17
  {
36
- "name": "down",
37
- "trigger": "interaction"
18
+ "type": "guideline",
19
+ "content": "Ratings allow scoring of an item or experience based on quality or preference. Common examples include images, forum posts, or products."
38
20
  },
39
21
  {
40
- "name": "keyboard-focus",
41
- "trigger": "interaction"
42
- }
43
- ],
44
- "lifecycle": {
45
- "introduced": "1.0.0-draft"
46
- },
47
- "tokenBindings": [
48
- {
49
- "token": "worfklow-icon-size-75",
50
- "context": "Layout"
22
+ "type": "guideline",
23
+ "content": "A rating in a disabled state shows that the component exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that an action may become available later."
51
24
  },
52
25
  {
53
- "token": "workflow-icon-size-100",
54
- "context": "Layout"
26
+ "type": "guideline",
27
+ "content": "By default, ratings are not emphasized (dark gray). This version is optimal for when the rating is not the core part of an interface, such as in application panels, where all visual components are monochrome in order to direct focus to the content."
55
28
  },
56
29
  {
57
- "token": "rating-width-small",
58
- "context": "Width"
30
+ "type": "guideline",
31
+ "content": "The emphasized (blue) version provides a visual prominence that is optimal for forms, dialogs, and other situations where a rating needs to be noticed."
59
32
  },
60
33
  {
61
- "token": "rating-width-medium",
62
- "context": "Width"
34
+ "type": "guideline",
35
+ "content": "The value is the number of the rating selected, on a sentiment scale from 0 to 5 (0 being the lowest, 5 being the highest)."
63
36
  },
64
37
  {
65
- "token": "rating-height-small",
66
- "context": "Height"
38
+ "type": "guideline",
39
+ "content": "The rating component supports two main use cases: inputting and aggregating. Inputting allows users to select a rating, while aggregating displays the average rating, which may include fractional stars. Interactive ratings show only whole stars to avoid confusion during selection."
67
40
  },
68
41
  {
69
- "token": "rating-height-medium",
70
- "context": "Height"
42
+ "type": "guideline",
43
+ "content": "When a user interacts with a rating component that shows a previously entered value, a tooltip appears when they hover over a star. The language in the tooltip is phrased as a call-to-action to edit their rating. For example, “Edit 4 star rating”."
71
44
  },
72
45
  {
73
- "token": "corner-radius-medium-size-small",
74
- "context": "Rounding"
46
+ "type": "guideline",
47
+ "content": "A user’s previously entered rating can be cleared if they select the “highest” star (for example, clicking or tapping the fourth star from the left on a four-star rating). On keyboard focus, the left/down arrow keys will decrease the rating until the last star is removed. A tooltip appears on hover with alt text that describes the action, for example “Clear 4 star rating”."
75
48
  },
76
49
  {
77
- "token": "corner-radius-medium-size-medium",
78
- "context": "Rounding"
50
+ "type": "guideline",
51
+ "content": "Rating can display approximate value or precise value depending on the needs of the product or service. For example, Amazon.com uses approximate rating, but Apple's App Store uses precise rating."
79
52
  },
80
53
  {
81
- "token": "focus-indicator-thickness",
82
- "context": "Focus ring"
54
+ "type": "guideline",
55
+ "content": "When representing multiple values (e.g., rating 2 photos at the same time), the rating is shown as empty if the ratings are not the same. This behavior is consistent with how a radio button group works, as well."
83
56
  },
84
57
  {
85
- "token": "focus-indicator-grap",
86
- "context": "Focus ring"
58
+ "type": "guideline",
59
+ "content": "Star ratings should always have 5 available stars. This shouldn’t be increased or decreased to fit various containers."
60
+ }
61
+ ],
62
+ "options": {
63
+ "value": {
64
+ "type": "number",
65
+ "minimum": 0,
66
+ "maximum": 5,
67
+ "default": 0,
68
+ "multipleOf": 0.5,
69
+ "description": "From 0 to 5, can be a decimal to represent half stars"
87
70
  },
71
+ "isEmphasized": { "type": "boolean", "default": false },
72
+ "isDisabled": { "type": "boolean", "default": false }
73
+ },
74
+ "states": [
75
+ { "name": "hover", "trigger": "interaction" },
76
+ { "name": "down", "trigger": "interaction" },
77
+ { "name": "keyboard-focus", "trigger": "interaction" }
78
+ ],
79
+ "lifecycle": { "introduced": "1.0.0-draft" },
80
+ "tokenBindings": [
81
+ { "token": "worfklow-icon-size-75", "context": "Layout" },
82
+ { "token": "workflow-icon-size-100", "context": "Layout" },
83
+ { "token": "rating-width-small", "context": "Width" },
84
+ { "token": "rating-width-medium", "context": "Width" },
85
+ { "token": "rating-height-small", "context": "Height" },
86
+ { "token": "rating-height-medium", "context": "Height" },
87
+ { "token": "corner-radius-medium-size-small", "context": "Rounding" },
88
+ { "token": "corner-radius-medium-size-medium", "context": "Rounding" },
89
+ { "token": "focus-indicator-thickness", "context": "Focus ring" },
90
+ { "token": "focus-indicator-grap", "context": "Focus ring" },
88
91
  {
89
92
  "token": "rating-top-to-content-area-small",
90
93
  "context": "Spacing (padding)"
@@ -109,38 +112,14 @@
109
112
  "token": "rating-edge-to-content-area-medium",
110
113
  "context": "Spacing (padding)"
111
114
  },
112
- {
113
- "token": "spacing-75",
114
- "context": "Spacing"
115
- },
116
- {
117
- "token": "neutral-content-color-default",
118
- "context": "Default"
119
- },
120
- {
121
- "token": "accent-content-color-default",
122
- "context": "Emphasized"
123
- },
124
- {
125
- "token": "accent-content-color-hover",
126
- "context": "Hover"
127
- },
128
- {
129
- "token": "neutral-content-color-hover",
130
- "context": "Hover"
131
- },
132
- {
133
- "token": "neutral-content-color-down",
134
- "context": "Down"
135
- },
136
- {
137
- "token": "accent-content-color-down",
138
- "context": "Down"
139
- },
140
- {
141
- "token": "disabled-content-color",
142
- "context": "Disabled"
143
- }
115
+ { "token": "spacing-75", "context": "Spacing" },
116
+ { "token": "neutral-content-color-default", "context": "Default" },
117
+ { "token": "accent-content-color-default", "context": "Emphasized" },
118
+ { "token": "accent-content-color-hover", "context": "Hover" },
119
+ { "token": "neutral-content-color-hover", "context": "Hover" },
120
+ { "token": "neutral-content-color-down", "context": "Down" },
121
+ { "token": "accent-content-color-down", "context": "Down" },
122
+ { "token": "disabled-content-color", "context": "Disabled" }
144
123
  ],
145
124
  "accessibility": {
146
125
  "role": "slider",
@@ -148,21 +127,9 @@
148
127
  "focusable": true,
149
128
  "keyboardIntents": ["increment", "decrement"],
150
129
  "wcag": [
151
- {
152
- "criterion": "1.3.1",
153
- "level": "A",
154
- "title": "Info and Relationships"
155
- },
156
- {
157
- "criterion": "2.1.1",
158
- "level": "A",
159
- "title": "Keyboard"
160
- },
161
- {
162
- "criterion": "4.1.2",
163
- "level": "A",
164
- "title": "Name, Role, Value"
165
- }
130
+ { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
131
+ { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
132
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
166
133
  ]
167
134
  }
168
135
  }
@@ -9,136 +9,153 @@
9
9
  "category": "inputs",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/search-field/"
11
11
  },
12
- "options": {
13
- "label": {
14
- "type": "string"
15
- },
16
- "hideLabel": {
17
- "type": "boolean",
18
- "default": false
19
- },
20
- "icon": {
21
- "$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/workflow-icon.json",
22
- "description": "Icon must be present if the label is not defined."
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "A search field is used for searching and filtering items."
23
16
  },
24
- "value": {
25
- "type": "string"
17
+ {
18
+ "type": "guideline",
19
+ "content": "Search fields enable finding or filtering items based on text input."
26
20
  },
27
- "width": {
28
- "type": "number"
21
+ {
22
+ "type": "guideline",
23
+ "content": "A search field should include a label and a search icon. In the default state before a search term is input, the label is in regular body text style to meet contrast ratios and to show that this is a field label, not placeholder text. 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)."
29
24
  },
30
- "size": {
31
- "type": "string",
32
- "default": "m",
33
- "pattern": "^(x?s|m|x{0,3}l)$",
34
- "values": [
35
- {
36
- "value": "s"
37
- },
38
- {
39
- "value": "m"
40
- },
41
- {
42
- "value": "l"
43
- },
44
- {
45
- "value": "xl"
46
- }
47
- ]
25
+ {
26
+ "type": "guideline",
27
+ "content": "The value shows a user’s entered text in regular body text style."
48
28
  },
49
- "helpText": {
50
- "type": "string"
29
+ {
30
+ "type": "guideline",
31
+ "content": "The width of a search field can be customized appropriately for its context."
51
32
  },
52
- "placeholder": {
53
- "type": "string"
33
+ {
34
+ "type": "guideline",
35
+ "content": "Search 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."
54
36
  },
55
- "isDisabled": {
56
- "type": "boolean",
57
- "default": false
58
- }
59
- },
60
- "states": [
61
37
  {
62
- "name": "down",
63
- "trigger": "interaction"
38
+ "type": "guideline",
39
+ "content": "A search field can have help text below the field to give extra context or instruction about what a user should input. The description communicates a hint or helpful information, such as a search’s scope."
64
40
  },
65
41
  {
66
- "name": "hover",
67
- "trigger": "interaction"
42
+ "type": "guideline",
43
+ "content": "Placeholder text provides hints about expected input values."
68
44
  },
69
45
  {
70
- "name": "focus-+-hover",
71
- "trigger": "prop"
46
+ "type": "guideline",
47
+ "content": "A search field in a disabled state shows that a search option exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that it may become available later."
72
48
  },
73
49
  {
74
- "name": "focus-+-not-hover",
75
- "trigger": "prop"
50
+ "type": "guideline",
51
+ "content": "The minimum width for a search field is 3× the height of the field, for both standard and quiet style. This minimum width guarantees that small search fields are readable and easy to target on touch devices."
76
52
  },
77
53
  {
78
- "name": "keyboard-focus",
79
- "trigger": "interaction"
80
- }
81
- ],
82
- "lifecycle": {
83
- "introduced": "1.0.0-draft"
84
- },
85
- "tokenBindings": [
54
+ "type": "guideline",
55
+ "content": "When the entered text is too long for the available horizontal space in the field, the text truncates."
56
+ },
86
57
  {
87
- "token": "in-field",
88
- "context": "Components"
58
+ "type": "guideline",
59
+ "content": "When the help text is too long for the available horizontal space, it wraps to form another line."
89
60
  },
90
61
  {
91
- "token": "search-field-minimum-width-multiplier",
92
- "context": "Width (minimum)"
62
+ "type": "guideline",
63
+ "content": "A search field can be navigated using a keyboard. The keyboard focus state takes the field’s visual hover state and adds a blue ring to the field in focus."
93
64
  },
94
65
  {
95
- "token": "field-width",
96
- "context": "Width (default)"
66
+ "type": "guideline",
67
+ "content": "The in-field button offers an option to clear any input search term."
97
68
  },
98
69
  {
99
- "token": "component-height-75",
100
- "context": "Height"
70
+ "type": "guideline",
71
+ "content": "If search results are being shown in a menu or popover, selecting this button will close the menu and clear the field. If a search term has been entered and the results have appeared, selecting this will only clear the field and not affect the list of results."
101
72
  },
102
73
  {
103
- "token": "component-height-100",
104
- "context": "Height"
74
+ "type": "guideline",
75
+ "content": "Search fields do not have an error state. Search functionality should anticipate spelling mistakes in search queries, and accommodate multiple spellings of words in search results — not treating any search term as an error."
105
76
  },
106
77
  {
107
- "token": "component-height-200",
108
- "context": "Height"
78
+ "type": "guideline",
79
+ "content": "Instead of showing an error, show a “No results” page or a section with any suggestions for how to get results to appear."
109
80
  },
110
81
  {
111
- "token": "component-height-300",
112
- "context": "Height"
82
+ "type": "guideline",
83
+ "content": "In a searching scenario, a user inputs a search term for a specific thing they’re looking for. In a filtering scenario, a user generally knows what they’re looking for, but may not have a specific thing in mind."
113
84
  },
114
85
  {
115
- "token": "help-text-to-component",
116
- "context": "Spacing (search field to help text)"
86
+ "type": "guideline",
87
+ "content": "The search field can be used for both of these contexts. For a search experience, use the search field as-is. For a filtering experience, add a filter icon next to the search field, where a user can narrow down their search results before (or instead of) searching using a specific term. Filters can appear below the search field as tags."
117
88
  },
118
89
  {
119
- "token": "corner-radius-full",
120
- "context": "Rounding"
90
+ "type": "guideline",
91
+ "content": "Spectrum previously had a specific “search within” component that would allow a user to filter down a search field category before searching for a particular term. It was deprecated because it did not meet accessibility and localization requirements."
121
92
  },
122
93
  {
123
- "token": "border-width-200",
124
- "context": "Border"
94
+ "type": "guideline",
95
+ "content": "Any search field should include a label inside the field, in the default state. The default label text is Search, but this can be customized to be more specific for use cases like scoped search, wayfinding, or building context — acting like a prompt for a user to search more specifically."
125
96
  },
126
97
  {
127
- "token": "workflow-icon-size-75",
128
- "context": "Icon"
98
+ "type": "guideline",
99
+ "content": "Keep in mind that once a search term is entered the label text is no longer viewable. Use help text to show search formatting examples or give hints about what to input. It can be distracting or redundant if the search field label and its help text are both communicating the same thing, so write these thoughtfully."
129
100
  },
130
101
  {
131
- "token": "workflow-icon-size-100",
132
- "context": "Icon"
102
+ "type": "guideline",
103
+ "content": "The label within the search field should be in sentence case, following Spectrum’s UX writing standards for capitalization."
104
+ }
105
+ ],
106
+ "options": {
107
+ "label": { "type": "string" },
108
+ "hideLabel": { "type": "boolean", "default": false },
109
+ "icon": {
110
+ "$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/workflow-icon.json",
111
+ "description": "Icon must be present if the label is not defined."
133
112
  },
113
+ "value": { "type": "string" },
114
+ "width": { "type": "number" },
115
+ "size": {
116
+ "type": "string",
117
+ "default": "m",
118
+ "pattern": "^(x?s|m|x{0,3}l)$",
119
+ "values": [
120
+ { "value": "s" },
121
+ { "value": "m" },
122
+ { "value": "l" },
123
+ { "value": "xl" }
124
+ ]
125
+ },
126
+ "helpText": { "type": "string" },
127
+ "placeholder": { "type": "string" },
128
+ "isDisabled": { "type": "boolean", "default": false }
129
+ },
130
+ "states": [
131
+ { "name": "down", "trigger": "interaction" },
132
+ { "name": "hover", "trigger": "interaction" },
133
+ { "name": "focus-+-hover", "trigger": "prop" },
134
+ { "name": "focus-+-not-hover", "trigger": "prop" },
135
+ { "name": "keyboard-focus", "trigger": "interaction" }
136
+ ],
137
+ "lifecycle": { "introduced": "1.0.0-draft" },
138
+ "tokenBindings": [
139
+ { "token": "in-field", "context": "Components" },
134
140
  {
135
- "token": "workflow-icon-size-200",
136
- "context": "Icon"
141
+ "token": "search-field-minimum-width-multiplier",
142
+ "context": "Width (minimum)"
137
143
  },
144
+ { "token": "field-width", "context": "Width (default)" },
145
+ { "token": "component-height-75", "context": "Height" },
146
+ { "token": "component-height-100", "context": "Height" },
147
+ { "token": "component-height-200", "context": "Height" },
148
+ { "token": "component-height-300", "context": "Height" },
138
149
  {
139
- "token": "workflow-icon-size-300",
140
- "context": "Icon"
150
+ "token": "help-text-to-component",
151
+ "context": "Spacing (search field to help text)"
141
152
  },
153
+ { "token": "corner-radius-full", "context": "Rounding" },
154
+ { "token": "border-width-200", "context": "Border" },
155
+ { "token": "workflow-icon-size-75", "context": "Icon" },
156
+ { "token": "workflow-icon-size-100", "context": "Icon" },
157
+ { "token": "workflow-icon-size-200", "context": "Icon" },
158
+ { "token": "workflow-icon-size-300", "context": "Icon" },
142
159
  {
143
160
  "token": "component-pill-edge-to-text-75",
144
161
  "context": "Spacing (start/end edge to text)"
@@ -171,22 +188,10 @@
171
188
  "token": "component-pill-edge-to-visual-300",
172
189
  "context": "Spacing (start/end edge to text)"
173
190
  },
174
- {
175
- "token": "text-to-visual-75",
176
- "context": "Spacing (icon to text)"
177
- },
178
- {
179
- "token": "text-to-visual-100",
180
- "context": "Spacing (icon to text)"
181
- },
182
- {
183
- "token": "text-to-visual-200",
184
- "context": "Spacing (icon to text)"
185
- },
186
- {
187
- "token": "text-to-visual-300",
188
- "context": "Spacing (icon to text)"
189
- },
191
+ { "token": "text-to-visual-75", "context": "Spacing (icon to text)" },
192
+ { "token": "text-to-visual-100", "context": "Spacing (icon to text)" },
193
+ { "token": "text-to-visual-200", "context": "Spacing (icon to text)" },
194
+ { "token": "text-to-visual-300", "context": "Spacing (icon to text)" },
190
195
  {
191
196
  "token": "component-top-to-workflow-icon-75",
192
197
  "context": "Spacing (top edge to icon)"
@@ -203,82 +208,25 @@
203
208
  "token": "component-top-to-workflow-icon-300",
204
209
  "context": "Spacing (top edge to icon)"
205
210
  },
206
- {
207
- "token": "focus-indicator-thickness",
208
- "context": "Focus indicator"
209
- },
210
- {
211
- "token": "focus-indicator-gap",
212
- "context": "Focus indicator"
213
- },
214
- {
215
- "token": "default-font-family",
216
- "context": "Label"
217
- },
218
- {
219
- "token": "regular-font-weight",
220
- "context": "Label"
221
- },
222
- {
223
- "token": "default-font-style",
224
- "context": "Label"
225
- },
226
- {
227
- "token": "component-s-regular",
228
- "context": "Label"
229
- },
230
- {
231
- "token": "component-m-regular",
232
- "context": "Label"
233
- },
234
- {
235
- "token": "component-l-regular",
236
- "context": "Label"
237
- },
238
- {
239
- "token": "component-xl-regular",
240
- "context": "Label"
241
- },
242
- {
243
- "token": "line-height-font-size-75",
244
- "context": "Label"
245
- },
246
- {
247
- "token": "line-height-font-size-100",
248
- "context": "Label"
249
- },
250
- {
251
- "token": "line-height-font-size-200",
252
- "context": "Label"
253
- },
254
- {
255
- "token": "line-height-font-size-300",
256
- "context": "Label"
257
- },
258
- {
259
- "token": "cjk-line-height-100",
260
- "context": "Label"
261
- },
262
- {
263
- "token": "gray-25",
264
- "context": "Background and border"
265
- },
266
- {
267
- "token": "gray-300",
268
- "context": "Background and border"
269
- },
270
- {
271
- "token": "gray-400",
272
- "context": "Background and border"
273
- },
274
- {
275
- "token": "gray-900",
276
- "context": "Background and border"
277
- },
278
- {
279
- "token": "gray-800",
280
- "context": "Background and border"
281
- },
211
+ { "token": "focus-indicator-thickness", "context": "Focus indicator" },
212
+ { "token": "focus-indicator-gap", "context": "Focus indicator" },
213
+ { "token": "default-font-family", "context": "Label" },
214
+ { "token": "regular-font-weight", "context": "Label" },
215
+ { "token": "default-font-style", "context": "Label" },
216
+ { "token": "component-s-regular", "context": "Label" },
217
+ { "token": "component-m-regular", "context": "Label" },
218
+ { "token": "component-l-regular", "context": "Label" },
219
+ { "token": "component-xl-regular", "context": "Label" },
220
+ { "token": "line-height-font-size-75", "context": "Label" },
221
+ { "token": "line-height-font-size-100", "context": "Label" },
222
+ { "token": "line-height-font-size-200", "context": "Label" },
223
+ { "token": "line-height-font-size-300", "context": "Label" },
224
+ { "token": "cjk-line-height-100", "context": "Label" },
225
+ { "token": "gray-25", "context": "Background and border" },
226
+ { "token": "gray-300", "context": "Background and border" },
227
+ { "token": "gray-400", "context": "Background and border" },
228
+ { "token": "gray-900", "context": "Background and border" },
229
+ { "token": "gray-800", "context": "Background and border" },
282
230
  {
283
231
  "token": "neutral-content-color-default",
284
232
  "context": "Value, label and icon"
@@ -299,10 +247,7 @@
299
247
  "token": "neutral-content-color-key-focus",
300
248
  "context": "Value, label and icon"
301
249
  },
302
- {
303
- "token": "gray-600",
304
- "context": "Value, label and icon"
305
- },
250
+ { "token": "gray-600", "context": "Value, label and icon" },
306
251
  {
307
252
  "token": "disabled-content-color",
308
253
  "context": "Background and border (disabled)"
@@ -311,36 +256,21 @@
311
256
  "token": "disabled-border-color",
312
257
  "context": "Background and border (disabled)"
313
258
  },
314
- {
315
- "token": "focus-indicator-color",
316
- "context": "Focus ring"
317
- }
259
+ { "token": "focus-indicator-color", "context": "Focus ring" }
318
260
  ],
319
261
  "accessibility": {
320
262
  "role": "textbox",
321
263
  "intents": ["input"],
322
264
  "focusable": true,
323
265
  "wcag": [
324
- {
325
- "criterion": "1.3.1",
326
- "level": "A",
327
- "title": "Info and Relationships"
328
- },
266
+ { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
329
267
  {
330
268
  "criterion": "1.3.5",
331
269
  "level": "AA",
332
270
  "title": "Identify Input Purpose"
333
271
  },
334
- {
335
- "criterion": "2.1.1",
336
- "level": "A",
337
- "title": "Keyboard"
338
- },
339
- {
340
- "criterion": "4.1.2",
341
- "level": "A",
342
- "title": "Name, Role, Value"
343
- }
272
+ { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
273
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
344
274
  ]
345
275
  }
346
276
  }