@adobe/spectrum-design-data 0.1.0 → 0.3.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 +133 -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 +379 -305
@@ -0,0 +1,393 @@
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/tag.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "tag",
6
+ "displayName": "Tag",
7
+ "description": "Tags allow users to categorize content. They can represent keywords or people, and are grouped to describe an item or a search request.",
8
+ "meta": {
9
+ "category": "navigation",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/tag/"
11
+ },
12
+ "options": {
13
+ "label": {
14
+ "type": "string"
15
+ },
16
+ "hasAvatar": {
17
+ "type": "boolean",
18
+ "default": false
19
+ },
20
+ "isRemovable": {
21
+ "type": "boolean",
22
+ "default": false
23
+ },
24
+ "isError": {
25
+ "type": "boolean",
26
+ "default": false
27
+ },
28
+ "isDisabled": {
29
+ "type": "boolean",
30
+ "default": false
31
+ },
32
+ "isReadOnly": {
33
+ "type": "boolean",
34
+ "default": false
35
+ }
36
+ },
37
+ "states": [
38
+ {
39
+ "name": "hover",
40
+ "trigger": "interaction"
41
+ },
42
+ {
43
+ "name": "down",
44
+ "trigger": "interaction"
45
+ },
46
+ {
47
+ "name": "keyboard-focus",
48
+ "trigger": "interaction"
49
+ }
50
+ ],
51
+ "lifecycle": {
52
+ "introduced": "1.0.0-draft"
53
+ },
54
+ "tokenBindings": [
55
+ {
56
+ "token": "avatar-size-50",
57
+ "context": "Components"
58
+ },
59
+ {
60
+ "token": "avatar-size-100",
61
+ "context": "Components"
62
+ },
63
+ {
64
+ "token": "thumbnail-size-50",
65
+ "context": "Components"
66
+ },
67
+ {
68
+ "token": "thumbnail-size-75",
69
+ "context": "Components"
70
+ },
71
+ {
72
+ "token": "thumbnail-size-100",
73
+ "context": "Components"
74
+ },
75
+ {
76
+ "token": "component-height-75",
77
+ "context": "Minimum height"
78
+ },
79
+ {
80
+ "token": "component-height-100",
81
+ "context": "Minimum height"
82
+ },
83
+ {
84
+ "token": "component-height-200",
85
+ "context": "Minimum height"
86
+ },
87
+ {
88
+ "token": "tag-minimum-width-small",
89
+ "context": "Minimum width (with label)"
90
+ },
91
+ {
92
+ "token": "tag-minimum-width-medium",
93
+ "context": "Minimum width (with label)"
94
+ },
95
+ {
96
+ "token": "tag-minimum-width-large",
97
+ "context": "Minimum width (with label)"
98
+ },
99
+ {
100
+ "token": "tag-maximum-width-multiplier",
101
+ "context": "Maximum width (with label)"
102
+ },
103
+ {
104
+ "token": "component-size-difference-down",
105
+ "context": "Component size (down)"
106
+ },
107
+ {
108
+ "token": "component-size-width-ratio-down",
109
+ "context": "Component size (down)"
110
+ },
111
+ {
112
+ "token": "component-size-minimum-perspective-down",
113
+ "context": "Component size (down)"
114
+ },
115
+ {
116
+ "token": "corner-radius-medium-size-small",
117
+ "context": "Rounding"
118
+ },
119
+ {
120
+ "token": "corner-radius-medium-size-medium",
121
+ "context": "Rounding"
122
+ },
123
+ {
124
+ "token": "corner-radius-medium-size-large",
125
+ "context": "Rounding"
126
+ },
127
+ {
128
+ "token": "workflow-icon-size-75",
129
+ "context": "Icon"
130
+ },
131
+ {
132
+ "token": "workflow-icon-size-100",
133
+ "context": "Icon"
134
+ },
135
+ {
136
+ "token": "workflow-icon-size-200",
137
+ "context": "Icon"
138
+ },
139
+ {
140
+ "token": "cross-icon-size-75",
141
+ "context": "Cross icon"
142
+ },
143
+ {
144
+ "token": "cross-icon-size-100",
145
+ "context": "Cross icon"
146
+ },
147
+ {
148
+ "token": "cross-icon-size-200",
149
+ "context": "Cross icon"
150
+ },
151
+ {
152
+ "token": "component-edge-to-visual-75",
153
+ "context": "Spacing (start/end edges)"
154
+ },
155
+ {
156
+ "token": "component-edge-to-visual-100",
157
+ "context": "Spacing (start/end edges)"
158
+ },
159
+ {
160
+ "token": "component-edge-to-visual-200",
161
+ "context": "Spacing (start/end edges)"
162
+ },
163
+ {
164
+ "token": "component-edge-to-text-75",
165
+ "context": "Spacing (start/end edges)"
166
+ },
167
+ {
168
+ "token": "component-edge-to-text-100",
169
+ "context": "Spacing (start/end edges)"
170
+ },
171
+ {
172
+ "token": "component-edge-to-text-200",
173
+ "context": "Spacing (start/end edges)"
174
+ },
175
+ {
176
+ "token": "text-to-visual-75",
177
+ "context": "Spacing (visual to label)"
178
+ },
179
+ {
180
+ "token": "text-to-visual-100",
181
+ "context": "Spacing (visual to label)"
182
+ },
183
+ {
184
+ "token": "text-to-visual-200",
185
+ "context": "Spacing (visual to label)"
186
+ },
187
+ {
188
+ "token": "tag-label-to-clear-icon-small",
189
+ "context": "Spacing (label to cross icon)"
190
+ },
191
+ {
192
+ "token": "tag-label-to-clear-icon-medium",
193
+ "context": "Spacing (label to cross icon)"
194
+ },
195
+ {
196
+ "token": "tag-label-to-clear-icon-large",
197
+ "context": "Spacing (label to cross icon)"
198
+ },
199
+ {
200
+ "token": "tag-edge-to-clear-icon-small",
201
+ "context": "Spacing (cross icon to end edge)"
202
+ },
203
+ {
204
+ "token": "tag-edge-to-clear-icon-medium",
205
+ "context": "Spacing (cross icon to end edge)"
206
+ },
207
+ {
208
+ "token": "tag-edge-to-clear-icon-large",
209
+ "context": "Spacing (cross icon to end edge)"
210
+ },
211
+ {
212
+ "token": "component-top-to-workflow-icon-75",
213
+ "context": "Spacing (top/bottom edge to icon)"
214
+ },
215
+ {
216
+ "token": "component-top-to-workflow-icon-100",
217
+ "context": "Spacing (top/bottom edge to icon)"
218
+ },
219
+ {
220
+ "token": "component-top-to-workflow-icon-200",
221
+ "context": "Spacing (top/bottom edge to icon)"
222
+ },
223
+ {
224
+ "token": "tag-top-to-avatar-small",
225
+ "context": "Spacing (top/bottom edge to avatar)"
226
+ },
227
+ {
228
+ "token": "tag-top-to-avatar-medium",
229
+ "context": "Spacing (top/bottom edge to avatar)"
230
+ },
231
+ {
232
+ "token": "tag-top-to-avatar-large",
233
+ "context": "Spacing (top/bottom edge to avatar)"
234
+ },
235
+ {
236
+ "token": "component-top-to-text-75",
237
+ "context": "Spacing (top edge to label)"
238
+ },
239
+ {
240
+ "token": "component-top-to-text-100",
241
+ "context": "Spacing (top edge to label)"
242
+ },
243
+ {
244
+ "token": "component-top-to-text-200",
245
+ "context": "Spacing (top edge to label)"
246
+ },
247
+ {
248
+ "token": "tag-top-to-cross-icon-small",
249
+ "context": "Spacing (top/bottom edge to cross icon)"
250
+ },
251
+ {
252
+ "token": "tag-top-to-cross-icon-medium",
253
+ "context": "Spacing (top/bottom edge to cross icon)"
254
+ },
255
+ {
256
+ "token": "tag-top-to-cross-icon-large",
257
+ "context": "Spacing (top/bottom edge to cross icon)"
258
+ },
259
+ {
260
+ "token": "focus-indicator-thickness",
261
+ "context": "Focus indicator"
262
+ },
263
+ {
264
+ "token": "focus-indicator-gap",
265
+ "context": "Focus indicator"
266
+ },
267
+ {
268
+ "token": "default-font-family",
269
+ "context": "Label"
270
+ },
271
+ {
272
+ "token": "medium-font-weight",
273
+ "context": "Label"
274
+ },
275
+ {
276
+ "token": "default-font-style",
277
+ "context": "Label"
278
+ },
279
+ {
280
+ "token": "font-size-75",
281
+ "context": "Label"
282
+ },
283
+ {
284
+ "token": "font-size-100",
285
+ "context": "Label"
286
+ },
287
+ {
288
+ "token": "font-size-200",
289
+ "context": "Label"
290
+ },
291
+ {
292
+ "token": "line-height-100",
293
+ "context": "Label"
294
+ },
295
+ {
296
+ "token": "cjk-line-height-100",
297
+ "context": "Label"
298
+ },
299
+ {
300
+ "token": "accent-background-color-default",
301
+ "context": "Background"
302
+ },
303
+ {
304
+ "token": "accent-background-color-hover",
305
+ "context": "Background"
306
+ },
307
+ {
308
+ "token": "accent-background-color-down",
309
+ "context": "Background"
310
+ },
311
+ {
312
+ "token": "accent-background-color-key-focus",
313
+ "context": "Background"
314
+ },
315
+ {
316
+ "token": "white",
317
+ "context": "Icon and Clear icon"
318
+ },
319
+ {
320
+ "token": "neutral-selected-background-color-default",
321
+ "context": "Background"
322
+ },
323
+ {
324
+ "token": "neutral-selected-background-color-hover",
325
+ "context": "Background"
326
+ },
327
+ {
328
+ "token": "neutral-selected-background-color-down",
329
+ "context": "Background"
330
+ },
331
+ {
332
+ "token": "neutral-selected-background-color-key-focus",
333
+ "context": "Background"
334
+ },
335
+ {
336
+ "token": "gray-25",
337
+ "context": "Icon and Clear icon"
338
+ },
339
+ {
340
+ "token": "gray-100",
341
+ "context": "Background"
342
+ },
343
+ {
344
+ "token": "gray-200",
345
+ "context": "Background"
346
+ },
347
+ {
348
+ "token": "neutral-content-color-default",
349
+ "context": "Icon and Clear icon and Label"
350
+ },
351
+ {
352
+ "token": "neutral-content-color-hover",
353
+ "context": "Icon and Clear icon and Label"
354
+ },
355
+ {
356
+ "token": "neutral-content-color-down",
357
+ "context": "Icon and Clear icon and Label"
358
+ },
359
+ {
360
+ "token": "neutral-content-color-key-focus",
361
+ "context": "Icon and Clear icon and Label"
362
+ },
363
+ {
364
+ "token": "disabled-background-color",
365
+ "context": "Fill"
366
+ },
367
+ {
368
+ "token": "disabled-content-color",
369
+ "context": "Icon and Clear icon"
370
+ },
371
+ {
372
+ "token": "focus-indicator-color",
373
+ "context": "Focus indicator"
374
+ }
375
+ ],
376
+ "accessibility": {
377
+ "intents": ["dismiss"],
378
+ "focusable": true,
379
+ "keyboardIntents": ["activate"],
380
+ "wcag": [
381
+ {
382
+ "criterion": "2.1.1",
383
+ "level": "A",
384
+ "title": "Keyboard"
385
+ },
386
+ {
387
+ "criterion": "4.1.2",
388
+ "level": "A",
389
+ "title": "Name, Role, Value"
390
+ }
391
+ ]
392
+ }
393
+ }
@@ -0,0 +1,117 @@
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/takeover-dialog.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "takeover-dialog",
6
+ "displayName": "Takeover dialog",
7
+ "description": "Takeover dialogs are larger, flexible dialogs that contain other components to support complex workflows.",
8
+ "meta": {
9
+ "category": "feedback",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/takeover-dialog/"
11
+ },
12
+ "options": {
13
+ "title": {
14
+ "type": "string"
15
+ },
16
+ "description": {
17
+ "type": "string"
18
+ },
19
+ "variant": {
20
+ "type": "string",
21
+ "default": "dialog",
22
+ "values": [
23
+ {
24
+ "value": "dialog"
25
+ },
26
+ {
27
+ "value": "full screen"
28
+ }
29
+ ]
30
+ },
31
+ "primaryActionLabel": {
32
+ "type": "string"
33
+ },
34
+ "secondaryActionLabel": {
35
+ "type": "string",
36
+ "description": "If undefined, this button does not appear."
37
+ },
38
+ "cancelActionLabel": {
39
+ "type": "string",
40
+ "default": "cancel",
41
+ "description": "If undefined, this button does not appear."
42
+ },
43
+ "slots": {
44
+ "type": "array",
45
+ "description": "Areas where other components can be inserted (e.g. Side navigation, Steplist, Forms).",
46
+ "items": {
47
+ "type": "object",
48
+ "properties": {
49
+ "name": {
50
+ "type": "string",
51
+ "description": "Identifier for the slot (e.g. 'sidebar', 'content', 'footer')."
52
+ },
53
+ "component": {
54
+ "type": "string",
55
+ "description": "The type of component placed in this slot (e.g. side-navigation, steplist, form)."
56
+ }
57
+ },
58
+ "required": ["name", "component"]
59
+ }
60
+ }
61
+ },
62
+ "lifecycle": {
63
+ "introduced": "1.0.0-draft"
64
+ },
65
+ "tokenBindings": [
66
+ {
67
+ "token": "takeover-dialog-width",
68
+ "context": "Height & width"
69
+ },
70
+ {
71
+ "token": "takeover-dialog-height",
72
+ "context": "Height & width"
73
+ },
74
+ {
75
+ "token": "window-to-edge",
76
+ "context": "Margins (dialog option)"
77
+ },
78
+ {
79
+ "token": "corner-radius-extra-large-default",
80
+ "context": "Rounding (dialog option)"
81
+ },
82
+ {
83
+ "token": "background-color-layer2",
84
+ "context": "Background"
85
+ },
86
+ {
87
+ "token": "overlay-color",
88
+ "context": "Overlay"
89
+ },
90
+ {
91
+ "token": "overlay-opacity",
92
+ "context": "Overlay"
93
+ },
94
+ {
95
+ "token": "heading-color",
96
+ "context": "Title"
97
+ }
98
+ ],
99
+ "accessibility": {
100
+ "role": "dialog",
101
+ "intents": ["dismiss"],
102
+ "focusable": false,
103
+ "keyboardIntents": ["dismiss"],
104
+ "wcag": [
105
+ {
106
+ "criterion": "2.4.3",
107
+ "level": "A",
108
+ "title": "Focus Order"
109
+ },
110
+ {
111
+ "criterion": "4.1.2",
112
+ "level": "A",
113
+ "title": "Name, Role, Value"
114
+ }
115
+ ]
116
+ }
117
+ }