@adobe/spectrum-design-data 0.1.0 → 0.2.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 (144) hide show
  1. package/components/accordion.json +557 -0
  2. package/components/action-bar.json +214 -0
  3. package/components/action-button.json +522 -0
  4. package/components/action-group.json +134 -0
  5. package/components/alert-banner.json +134 -0
  6. package/components/alert-dialog.json +180 -0
  7. package/components/avatar-group.json +166 -0
  8. package/components/avatar.json +246 -0
  9. package/components/badge.json +594 -0
  10. package/components/body.json +54 -0
  11. package/components/bottom-navigation-android.json +72 -0
  12. package/components/breadcrumbs.json +307 -0
  13. package/components/button-group.json +86 -0
  14. package/components/button.json +586 -0
  15. package/components/calendar.json +133 -0
  16. package/components/cards.json +541 -0
  17. package/components/checkbox-group.json +91 -0
  18. package/components/checkbox.json +339 -0
  19. package/components/close-button.json +208 -0
  20. package/components/coach-indicator.json +105 -0
  21. package/components/coach-mark.json +169 -0
  22. package/components/code.json +44 -0
  23. package/components/color-area.json +138 -0
  24. package/components/color-handle.json +111 -0
  25. package/components/color-loupe.json +77 -0
  26. package/components/color-slider.json +165 -0
  27. package/components/color-wheel.json +117 -0
  28. package/components/combo-box.json +543 -0
  29. package/components/contextual-help.json +230 -0
  30. package/components/date-picker.json +471 -0
  31. package/components/detail.json +53 -0
  32. package/components/divider.json +93 -0
  33. package/components/drop-zone.json +238 -0
  34. package/components/field-label.json +219 -0
  35. package/components/heading.json +68 -0
  36. package/components/help-text.json +209 -0
  37. package/components/illustrated-message.json +175 -0
  38. package/components/in-field-progress-button.json +88 -0
  39. package/components/in-field-progress-circle.json +116 -0
  40. package/components/in-line-alert.json +233 -0
  41. package/components/link.json +167 -0
  42. package/components/list-view.json +382 -0
  43. package/components/menu.json +597 -0
  44. package/components/meter.json +199 -0
  45. package/components/number-field.json +518 -0
  46. package/components/opacity-checkerboard.json +69 -0
  47. package/components/picker.json +579 -0
  48. package/components/popover.json +174 -0
  49. package/components/progress-bar.json +229 -0
  50. package/components/progress-circle.json +132 -0
  51. package/components/radio-button.json +308 -0
  52. package/components/radio-group.json +113 -0
  53. package/components/rating.json +168 -0
  54. package/components/scroll-zoom-bar.json +82 -0
  55. package/components/search-field.json +346 -0
  56. package/components/segmented-control.json +248 -0
  57. package/components/select-box.json +272 -0
  58. package/components/side-navigation.json +320 -0
  59. package/components/slider.json +407 -0
  60. package/components/standard-dialog.json +179 -0
  61. package/components/standard-panel.json +83 -0
  62. package/components/status-light.json +334 -0
  63. package/components/steplist.json +294 -0
  64. package/components/swatch-group.json +114 -0
  65. package/components/swatch.json +240 -0
  66. package/components/switch.json +336 -0
  67. package/components/tab-bar-ios.json +72 -0
  68. package/components/table.json +435 -0
  69. package/components/tabs.json +253 -0
  70. package/components/tag-field.json +243 -0
  71. package/components/tag-group.json +87 -0
  72. package/components/tag.json +393 -0
  73. package/components/takeover-dialog.json +117 -0
  74. package/components/text-area.json +555 -0
  75. package/components/text-field.json +555 -0
  76. package/components/thumbnail.json +149 -0
  77. package/components/title.json +91 -0
  78. package/components/toast.json +156 -0
  79. package/components/tooltip.json +179 -0
  80. package/components/tray.json +32 -0
  81. package/components/tree-view.json +393 -0
  82. package/fields/alignment.json +15 -0
  83. package/fields/anatomy.json +15 -0
  84. package/fields/color-scheme.json +15 -0
  85. package/fields/colorFamily.json +15 -0
  86. package/fields/component.json +15 -0
  87. package/fields/contrast.json +15 -0
  88. package/fields/density.json +15 -0
  89. package/fields/easing.json +15 -0
  90. package/fields/family.json +15 -0
  91. package/fields/motionRole.json +15 -0
  92. package/fields/object.json +15 -0
  93. package/fields/orientation.json +15 -0
  94. package/fields/position.json +15 -0
  95. package/fields/property.json +15 -0
  96. package/fields/scale.json +15 -0
  97. package/fields/scaleIndex.json +15 -0
  98. package/fields/shape.json +15 -0
  99. package/fields/size.json +15 -0
  100. package/fields/state.json +15 -0
  101. package/fields/structure.json +15 -0
  102. package/fields/style.json +15 -0
  103. package/fields/substructure.json +15 -0
  104. package/fields/variant.json +15 -0
  105. package/fields/weight.json +15 -0
  106. package/mode-sets/color-scheme.json +8 -0
  107. package/mode-sets/contrast.json +8 -0
  108. package/mode-sets/scale.json +8 -0
  109. package/package.json +41 -2
  110. package/registry/alignments.json +22 -0
  111. package/registry/anatomy-terms.json +739 -0
  112. package/registry/categories.json +55 -0
  113. package/registry/color-families.json +177 -0
  114. package/registry/components.json +277 -0
  115. package/registry/densities.json +17 -0
  116. package/registry/easing-curves.json +42 -0
  117. package/registry/glossary.json +181 -0
  118. package/registry/motion-roles.json +32 -0
  119. package/registry/navigation-terms.json +241 -0
  120. package/registry/orientations.json +17 -0
  121. package/registry/platform-extensions/ios-states.json +59 -0
  122. package/registry/platform-extensions/web-components-states.json +58 -0
  123. package/registry/platforms.json +37 -0
  124. package/registry/positions.json +32 -0
  125. package/registry/property-terms.json +212 -0
  126. package/registry/scale-values.json +126 -0
  127. package/registry/shapes.json +12 -0
  128. package/registry/sizes.json +71 -0
  129. package/registry/states.json +184 -0
  130. package/registry/structures.json +57 -0
  131. package/registry/substructures.json +12 -0
  132. package/registry/token-objects.json +32 -0
  133. package/registry/token-terminology.json +925 -0
  134. package/registry/typography-families.json +27 -0
  135. package/registry/typography-styles.json +22 -0
  136. package/registry/typography-weights.json +37 -0
  137. package/registry/variants.json +282 -0
  138. package/tokens/color-aliases.tokens.json +332 -328
  139. package/tokens/color-component.tokens.json +74 -74
  140. package/tokens/icons.tokens.json +191 -191
  141. package/tokens/layout-component.tokens.json +373 -316
  142. package/tokens/layout.tokens.json +110 -98
  143. package/tokens/semantic-color-palette.tokens.json +104 -104
  144. package/tokens/typography.tokens.json +233 -233
@@ -0,0 +1,346 @@
1
+ {
2
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
3
+ "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/search-field.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "search-field",
6
+ "displayName": "Search field",
7
+ "description": "A search field is used for searching and filtering items.",
8
+ "meta": {
9
+ "category": "inputs",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/search-field/"
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."
23
+ },
24
+ "value": {
25
+ "type": "string"
26
+ },
27
+ "width": {
28
+ "type": "number"
29
+ },
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
+ ]
48
+ },
49
+ "helpText": {
50
+ "type": "string"
51
+ },
52
+ "placeholder": {
53
+ "type": "string"
54
+ },
55
+ "isDisabled": {
56
+ "type": "boolean",
57
+ "default": false
58
+ }
59
+ },
60
+ "states": [
61
+ {
62
+ "name": "down",
63
+ "trigger": "interaction"
64
+ },
65
+ {
66
+ "name": "hover",
67
+ "trigger": "interaction"
68
+ },
69
+ {
70
+ "name": "focus-+-hover",
71
+ "trigger": "prop"
72
+ },
73
+ {
74
+ "name": "focus-+-not-hover",
75
+ "trigger": "prop"
76
+ },
77
+ {
78
+ "name": "keyboard-focus",
79
+ "trigger": "interaction"
80
+ }
81
+ ],
82
+ "lifecycle": {
83
+ "introduced": "1.0.0-draft"
84
+ },
85
+ "tokenBindings": [
86
+ {
87
+ "token": "in-field",
88
+ "context": "Components"
89
+ },
90
+ {
91
+ "token": "search-field-minimum-width-multiplier",
92
+ "context": "Width (minimum)"
93
+ },
94
+ {
95
+ "token": "field-width",
96
+ "context": "Width (default)"
97
+ },
98
+ {
99
+ "token": "component-height-75",
100
+ "context": "Height"
101
+ },
102
+ {
103
+ "token": "component-height-100",
104
+ "context": "Height"
105
+ },
106
+ {
107
+ "token": "component-height-200",
108
+ "context": "Height"
109
+ },
110
+ {
111
+ "token": "component-height-300",
112
+ "context": "Height"
113
+ },
114
+ {
115
+ "token": "help-text-to-component",
116
+ "context": "Spacing (search field to help text)"
117
+ },
118
+ {
119
+ "token": "corner-radius-full",
120
+ "context": "Rounding"
121
+ },
122
+ {
123
+ "token": "border-width-200",
124
+ "context": "Border"
125
+ },
126
+ {
127
+ "token": "workflow-icon-size-75",
128
+ "context": "Icon"
129
+ },
130
+ {
131
+ "token": "workflow-icon-size-100",
132
+ "context": "Icon"
133
+ },
134
+ {
135
+ "token": "workflow-icon-size-200",
136
+ "context": "Icon"
137
+ },
138
+ {
139
+ "token": "workflow-icon-size-300",
140
+ "context": "Icon"
141
+ },
142
+ {
143
+ "token": "component-pill-edge-to-text-75",
144
+ "context": "Spacing (start/end edge to text)"
145
+ },
146
+ {
147
+ "token": "component-pill-edge-to-text-100",
148
+ "context": "Spacing (start/end edge to text)"
149
+ },
150
+ {
151
+ "token": "component-pill-edge-to-text-200",
152
+ "context": "Spacing (start/end edge to text)"
153
+ },
154
+ {
155
+ "token": "component-pill-edge-to-text-300",
156
+ "context": "Spacing (start/end edge to text)"
157
+ },
158
+ {
159
+ "token": "component-pill-edge-to-visual-75",
160
+ "context": "Spacing (start/end edge to text)"
161
+ },
162
+ {
163
+ "token": "component-pill-edge-to-visual-100",
164
+ "context": "Spacing (start/end edge to text)"
165
+ },
166
+ {
167
+ "token": "component-pill-edge-to-visual-200",
168
+ "context": "Spacing (start/end edge to text)"
169
+ },
170
+ {
171
+ "token": "component-pill-edge-to-visual-300",
172
+ "context": "Spacing (start/end edge to text)"
173
+ },
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
+ },
190
+ {
191
+ "token": "component-top-to-workflow-icon-75",
192
+ "context": "Spacing (top edge to icon)"
193
+ },
194
+ {
195
+ "token": "component-top-to-workflow-icon-100",
196
+ "context": "Spacing (top edge to icon)"
197
+ },
198
+ {
199
+ "token": "component-top-to-workflow-icon-200",
200
+ "context": "Spacing (top edge to icon)"
201
+ },
202
+ {
203
+ "token": "component-top-to-workflow-icon-300",
204
+ "context": "Spacing (top edge to icon)"
205
+ },
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
+ },
282
+ {
283
+ "token": "neutral-content-color-default",
284
+ "context": "Value, label and icon"
285
+ },
286
+ {
287
+ "token": "neutral-content-color-hover",
288
+ "context": "Value, label and icon"
289
+ },
290
+ {
291
+ "token": "neutral-content-color-focus-hover",
292
+ "context": "Value, label and icon"
293
+ },
294
+ {
295
+ "token": "neutral-content-color-focus",
296
+ "context": "Value, label and icon"
297
+ },
298
+ {
299
+ "token": "neutral-content-color-key-focus",
300
+ "context": "Value, label and icon"
301
+ },
302
+ {
303
+ "token": "gray-600",
304
+ "context": "Value, label and icon"
305
+ },
306
+ {
307
+ "token": "disabled-content-color",
308
+ "context": "Background and border (disabled)"
309
+ },
310
+ {
311
+ "token": "disabled-border-color",
312
+ "context": "Background and border (disabled)"
313
+ },
314
+ {
315
+ "token": "focus-indicator-color",
316
+ "context": "Focus ring"
317
+ }
318
+ ],
319
+ "accessibility": {
320
+ "role": "textbox",
321
+ "intents": ["input"],
322
+ "focusable": true,
323
+ "wcag": [
324
+ {
325
+ "criterion": "1.3.1",
326
+ "level": "A",
327
+ "title": "Info and Relationships"
328
+ },
329
+ {
330
+ "criterion": "1.3.5",
331
+ "level": "AA",
332
+ "title": "Identify Input Purpose"
333
+ },
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
+ }
344
+ ]
345
+ }
346
+ }
@@ -0,0 +1,248 @@
1
+ {
2
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
3
+ "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/segmented-control.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "segmented-control",
6
+ "displayName": "Segmented Control",
7
+ "description": "Segmented controls allow users to select one option from a set of mutually exclusive options.",
8
+ "meta": {
9
+ "category": "navigation",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/segmented-control/"
11
+ },
12
+ "options": {
13
+ "orientation": {
14
+ "type": "string",
15
+ "default": "horizontal",
16
+ "values": [
17
+ {
18
+ "value": "horizontal"
19
+ },
20
+ {
21
+ "value": "vertical"
22
+ }
23
+ ]
24
+ },
25
+ "isFluid": {
26
+ "type": "boolean",
27
+ "default": false,
28
+ "description": "If true, the control takes up the full width of its container. Only applicable to horizontal segmented controls."
29
+ },
30
+ "alignment": {
31
+ "type": "string",
32
+ "default": "start",
33
+ "values": [
34
+ {
35
+ "value": "start"
36
+ },
37
+ {
38
+ "value": "center"
39
+ }
40
+ ]
41
+ },
42
+ "hideTracker": {
43
+ "type": "boolean",
44
+ "default": false,
45
+ "description": "If true, the tracker that indicates the selected item is hidden."
46
+ },
47
+ "selectedItem": {
48
+ "type": "string",
49
+ "description": "The identifier of the currently selected item."
50
+ },
51
+ "keyboardActivation": {
52
+ "type": "string",
53
+ "default": "manual",
54
+ "values": [
55
+ {
56
+ "value": "manual"
57
+ },
58
+ {
59
+ "value": "automatic"
60
+ }
61
+ ]
62
+ },
63
+ "items": {
64
+ "type": "array",
65
+ "description": "An array of segmented control items.",
66
+ "items": {
67
+ "type": "object",
68
+ "properties": {
69
+ "label": {
70
+ "type": "string",
71
+ "description": "The text displayed for the segmented control item."
72
+ },
73
+ "isDisabled": {
74
+ "type": "boolean",
75
+ "default": false,
76
+ "description": "Whether the segmented control item is disabled."
77
+ },
78
+ "state": {
79
+ "type": "string",
80
+ "enum": ["default", "hover", "keyboard focus"],
81
+ "default": "default",
82
+ "description": "The interaction state of the segmented control item."
83
+ },
84
+ "contentVariant": {
85
+ "type": "string",
86
+ "enum": ["label-only", "icon-only", "icon-label"],
87
+ "default": "icon-label",
88
+ "description": "Controls whether the segmented control item displays a label, an icon, or both."
89
+ }
90
+ }
91
+ }
92
+ }
93
+ },
94
+ "lifecycle": {
95
+ "introduced": "1.0.0-draft"
96
+ },
97
+ "tokenBindings": [
98
+ {
99
+ "token": "segmented-control-item-height",
100
+ "context": "Height "
101
+ },
102
+ {
103
+ "token": "corner-radius-medium-default",
104
+ "context": "Corner radius"
105
+ },
106
+ {
107
+ "token": "workflow-icon-size-100",
108
+ "context": "Icon "
109
+ },
110
+ {
111
+ "token": "component-edge-to-visual-only-100",
112
+ "context": "Spacing (top/bottom to edge, workflow icon only)"
113
+ },
114
+ {
115
+ "token": "text-to-visual-100",
116
+ "context": "Spacing (icon to label)"
117
+ },
118
+ {
119
+ "token": "component-edge-to-visual-100",
120
+ "context": "Spacing (start/end edges, workflow icon with label)"
121
+ },
122
+ {
123
+ "token": "component-edge-to-text-100",
124
+ "context": "Spacing (start/end edges, workflow icon with label)"
125
+ },
126
+ {
127
+ "token": "component-top-to-text-100",
128
+ "context": "Spacing (top/bottom to edge, workflow icon with label)"
129
+ },
130
+ {
131
+ "token": "component-bottom-to-text-100",
132
+ "context": "Spacing (top/bottom to edge, workflow icon with label)"
133
+ },
134
+ {
135
+ "token": "component-top-to-workflow-icon-100",
136
+ "context": "Spacing (top/bottom edge to icon, workflow icon with label)"
137
+ },
138
+ {
139
+ "token": "spacing-50",
140
+ "context": "Spacing (between segmented control items)"
141
+ },
142
+ {
143
+ "token": "spacing-75",
144
+ "context": "Spacing (between segmented control items)"
145
+ },
146
+ {
147
+ "token": "focus-indicator-thickness",
148
+ "context": "Focus ring"
149
+ },
150
+ {
151
+ "token": "focus-indicator-gap",
152
+ "context": "Focus ring"
153
+ },
154
+ {
155
+ "token": "segmented-control-selection-border-width",
156
+ "context": "Selection border"
157
+ },
158
+ {
159
+ "token": "gray-600",
160
+ "context": "Segmented control items (no track)"
161
+ },
162
+ {
163
+ "token": "neutral-subdued-content-color-hover",
164
+ "context": "Segmented control items (no track)"
165
+ },
166
+ {
167
+ "token": "neutral-subdued-content-color-key-focus",
168
+ "context": "Segmented control items (no track)"
169
+ },
170
+ {
171
+ "token": "neutral-content-color-default",
172
+ "context": "Segmented control items (no track)"
173
+ },
174
+ {
175
+ "token": "neutral-content-color-hover",
176
+ "context": "Segmented control items (no track)"
177
+ },
178
+ {
179
+ "token": "neutral-content-color-key-focus",
180
+ "context": "Segmented control items (no track)"
181
+ },
182
+ {
183
+ "token": "gray-200",
184
+ "context": "Segmented control items (no track)"
185
+ },
186
+ {
187
+ "token": "neutral-subdued-content-color-default",
188
+ "context": "Segmented control items (with track)"
189
+ },
190
+ {
191
+ "token": "gray-25",
192
+ "context": "Segmented control items (with track)"
193
+ },
194
+ {
195
+ "token": "gray-100",
196
+ "context": "Segmented control items (with track)"
197
+ },
198
+ {
199
+ "token": "disabled-content-color",
200
+ "context": "Disabled"
201
+ },
202
+ {
203
+ "token": "disabled-background-color",
204
+ "context": "Disabled"
205
+ },
206
+ {
207
+ "token": "focus-indicator-color",
208
+ "context": "Focus ring"
209
+ },
210
+ {
211
+ "token": "default-font-family",
212
+ "context": "Label"
213
+ },
214
+ {
215
+ "token": "default-font-style",
216
+ "context": "Label"
217
+ },
218
+ {
219
+ "token": "regular-font-weight",
220
+ "context": "Label"
221
+ },
222
+ {
223
+ "token": "font-size-100",
224
+ "context": "Label"
225
+ },
226
+ {
227
+ "token": "line-height-100",
228
+ "context": "Label"
229
+ }
230
+ ],
231
+ "accessibility": {
232
+ "intents": ["choose"],
233
+ "focusable": true,
234
+ "keyboardIntents": ["navigate-items", "activate"],
235
+ "wcag": [
236
+ {
237
+ "criterion": "2.1.1",
238
+ "level": "A",
239
+ "title": "Keyboard"
240
+ },
241
+ {
242
+ "criterion": "4.1.2",
243
+ "level": "A",
244
+ "title": "Name, Role, Value"
245
+ }
246
+ ]
247
+ }
248
+ }