@adobe/design-data-spec 1.5.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/conformance/invalid/SPEC-009/expected-errors.json +1 -1
  2. package/conformance/invalid/SPEC-018/dataset.json +8 -1
  3. package/conformance/invalid/SPEC-034/expected-errors.json +1 -1
  4. package/conformance/invalid/SPEC-035/expected-errors.json +1 -1
  5. package/package.json +5 -6
  6. package/rules/rules.yaml +8 -7
  7. package/schemas/component.schema.json +1 -1
  8. package/schemas/manifest.schema.json +1 -23
  9. package/schemas/platform-extension.json +79 -0
  10. package/schemas/registry-value.json +230 -0
  11. package/schemas/token.schema.json +1 -1
  12. package/spec/agent-surface.md +16 -14
  13. package/spec/anatomy-format.md +1 -1
  14. package/spec/cascade.md +1 -1
  15. package/spec/index.md +5 -5
  16. package/spec/mode-sets.md +1 -1
  17. package/spec/registry.md +6 -8
  18. package/spec/taxonomy.md +32 -32
  19. package/spec/token-format.md +11 -3
  20. package/components/accordion.json +0 -557
  21. package/components/action-bar.json +0 -214
  22. package/components/action-button.json +0 -522
  23. package/components/action-group.json +0 -134
  24. package/components/alert-banner.json +0 -134
  25. package/components/alert-dialog.json +0 -180
  26. package/components/avatar-group.json +0 -166
  27. package/components/avatar.json +0 -246
  28. package/components/badge.json +0 -594
  29. package/components/body.json +0 -54
  30. package/components/bottom-navigation-android.json +0 -72
  31. package/components/breadcrumbs.json +0 -307
  32. package/components/button-group.json +0 -86
  33. package/components/button.json +0 -586
  34. package/components/calendar.json +0 -133
  35. package/components/cards.json +0 -541
  36. package/components/checkbox-group.json +0 -91
  37. package/components/checkbox.json +0 -339
  38. package/components/close-button.json +0 -208
  39. package/components/coach-indicator.json +0 -105
  40. package/components/coach-mark.json +0 -169
  41. package/components/code.json +0 -44
  42. package/components/color-area.json +0 -138
  43. package/components/color-handle.json +0 -111
  44. package/components/color-loupe.json +0 -77
  45. package/components/color-slider.json +0 -165
  46. package/components/color-wheel.json +0 -117
  47. package/components/combo-box.json +0 -543
  48. package/components/contextual-help.json +0 -230
  49. package/components/date-picker.json +0 -471
  50. package/components/detail.json +0 -53
  51. package/components/divider.json +0 -93
  52. package/components/drop-zone.json +0 -238
  53. package/components/field-label.json +0 -219
  54. package/components/heading.json +0 -68
  55. package/components/help-text.json +0 -209
  56. package/components/illustrated-message.json +0 -175
  57. package/components/in-field-progress-button.json +0 -88
  58. package/components/in-field-progress-circle.json +0 -116
  59. package/components/in-line-alert.json +0 -233
  60. package/components/link.json +0 -167
  61. package/components/list-view.json +0 -382
  62. package/components/menu.json +0 -597
  63. package/components/meter.json +0 -199
  64. package/components/number-field.json +0 -518
  65. package/components/opacity-checkerboard.json +0 -69
  66. package/components/picker.json +0 -579
  67. package/components/popover.json +0 -174
  68. package/components/progress-bar.json +0 -229
  69. package/components/progress-circle.json +0 -132
  70. package/components/radio-button.json +0 -308
  71. package/components/radio-group.json +0 -113
  72. package/components/rating.json +0 -168
  73. package/components/scroll-zoom-bar.json +0 -82
  74. package/components/search-field.json +0 -346
  75. package/components/segmented-control.json +0 -248
  76. package/components/select-box.json +0 -272
  77. package/components/side-navigation.json +0 -320
  78. package/components/slider.json +0 -407
  79. package/components/standard-dialog.json +0 -179
  80. package/components/standard-panel.json +0 -83
  81. package/components/status-light.json +0 -334
  82. package/components/steplist.json +0 -294
  83. package/components/swatch-group.json +0 -114
  84. package/components/swatch.json +0 -240
  85. package/components/switch.json +0 -336
  86. package/components/tab-bar-ios.json +0 -72
  87. package/components/table.json +0 -435
  88. package/components/tabs.json +0 -253
  89. package/components/tag-field.json +0 -243
  90. package/components/tag-group.json +0 -87
  91. package/components/tag.json +0 -393
  92. package/components/takeover-dialog.json +0 -117
  93. package/components/text-area.json +0 -555
  94. package/components/text-field.json +0 -555
  95. package/components/thumbnail.json +0 -149
  96. package/components/title.json +0 -91
  97. package/components/toast.json +0 -156
  98. package/components/tooltip.json +0 -179
  99. package/components/tray.json +0 -32
  100. package/components/tree-view.json +0 -393
  101. package/fields/alignment.json +0 -15
  102. package/fields/anatomy.json +0 -15
  103. package/fields/color-scheme.json +0 -15
  104. package/fields/colorFamily.json +0 -15
  105. package/fields/component.json +0 -15
  106. package/fields/contrast.json +0 -15
  107. package/fields/density.json +0 -15
  108. package/fields/easing.json +0 -15
  109. package/fields/family.json +0 -15
  110. package/fields/motionRole.json +0 -15
  111. package/fields/object.json +0 -15
  112. package/fields/orientation.json +0 -15
  113. package/fields/position.json +0 -15
  114. package/fields/property.json +0 -15
  115. package/fields/scale.json +0 -15
  116. package/fields/scaleIndex.json +0 -15
  117. package/fields/shape.json +0 -15
  118. package/fields/size.json +0 -15
  119. package/fields/state.json +0 -15
  120. package/fields/structure.json +0 -15
  121. package/fields/style.json +0 -15
  122. package/fields/substructure.json +0 -15
  123. package/fields/variant.json +0 -15
  124. package/fields/weight.json +0 -15
@@ -1,382 +0,0 @@
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/list-view.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "list-view",
6
- "displayName": "List view",
7
- "description": "List views display rows of data or options that users can browse, select, and interact with.",
8
- "meta": {
9
- "category": "navigation",
10
- "documentationUrl": "https://spectrum.adobe.com/page/list-view/"
11
- },
12
- "options": {
13
- "selectionMode": {
14
- "type": "string",
15
- "default": "single",
16
- "description": "Defines how many items can be selected at once.",
17
- "values": [
18
- {
19
- "value": "none"
20
- },
21
- {
22
- "value": "single"
23
- },
24
- {
25
- "value": "multiple"
26
- }
27
- ]
28
- },
29
- "isQuiet": {
30
- "type": "boolean",
31
- "default": false,
32
- "description": "If true, the list view uses a quiet visual style."
33
- },
34
- "items": {
35
- "type": "array",
36
- "description": "An array of list view items.",
37
- "items": {
38
- "type": "object",
39
- "properties": {
40
- "label": {
41
- "type": "string",
42
- "description": "Primary text displayed for the item."
43
- },
44
- "description": {
45
- "type": "string",
46
- "description": "Secondary text displayed under the label (optional)."
47
- },
48
- "hideCheckbox": {
49
- "type": "boolean",
50
- "default": false,
51
- "description": "If true, the checkbox is hidden."
52
- },
53
- "hideDragHandle": {
54
- "type": "boolean",
55
- "default": false,
56
- "description": "If true, the drag handle is hidden."
57
- },
58
- "hideNavigationIndicator": {
59
- "type": "boolean",
60
- "default": false,
61
- "description": "If true, the navigation indicator is hidden."
62
- },
63
- "isDisabled": {
64
- "type": "boolean",
65
- "default": false,
66
- "description": "If true, the item is disabled."
67
- },
68
- "isSelected": {
69
- "type": "boolean",
70
- "default": false,
71
- "description": "If true, the item is selected."
72
- },
73
- "overflowMode": {
74
- "type": "string",
75
- "enum": ["wrap", "truncate"],
76
- "default": "truncate",
77
- "description": "Defines how text should behave when it overflows the available space."
78
- },
79
- "itemRounding": {
80
- "type": "string",
81
- "enum": ["none", "top", "bottom"],
82
- "default": "none",
83
- "description": "Defines the border radius of the list view item."
84
- },
85
- "isEmphasized": {
86
- "type": "boolean",
87
- "default": false
88
- },
89
- "state": {
90
- "type": "string",
91
- "enum": ["default", "hover", "dragged"],
92
- "default": "default",
93
- "description": "The interaction state of the list view item."
94
- }
95
- },
96
- "required": ["label"]
97
- }
98
- }
99
- },
100
- "lifecycle": {
101
- "introduced": "1.0.0-draft"
102
- },
103
- "tokenBindings": [
104
- {
105
- "token": "(multi-select",
106
- "context": "Variants"
107
- },
108
- {
109
- "token": "multi-select)",
110
- "context": "Variants"
111
- },
112
- {
113
- "token": "workflow-icon-size-100",
114
- "context": "Icon size"
115
- },
116
- {
117
- "token": "list-view-minimum-height",
118
- "context": "Component height"
119
- },
120
- {
121
- "token": "list-view-minimum-width",
122
- "context": "Component width"
123
- },
124
- {
125
- "token": "corner-radius-medium-default",
126
- "context": "Item rounding"
127
- },
128
- {
129
- "token": "stack-item-start-edge-to-content",
130
- "context": "Spacing (edge to drag handle)"
131
- },
132
- {
133
- "token": "stack-item-drag-handle-to-control",
134
- "context": "Spacing (drag handle to checkbox, to visual, to text)"
135
- },
136
- {
137
- "token": "visual-to-control-100",
138
- "context": "Spacing (drag handle to checkbox, to visual, to text)"
139
- },
140
- {
141
- "token": "stack-item-text-to-control",
142
- "context": "Spacing (drag handle to checkbox, to visual, to text)"
143
- },
144
- {
145
- "token": "stack-item-edge-to-control",
146
- "context": "Spacing (edge to checkbox, edge to visual, edge to text)"
147
- },
148
- {
149
- "token": "stack-item-edge-to-visual",
150
- "context": "Spacing (edge to checkbox, edge to visual, edge to text)"
151
- },
152
- {
153
- "token": "component-edge-to-text",
154
- "context": "Spacing (edge to checkbox, edge to visual, edge to text)"
155
- },
156
- {
157
- "token": "text-to-visual-100",
158
- "context": "Spacing (content items to text)"
159
- },
160
- {
161
- "token": "stack-item-action-to-navigation",
162
- "context": "Spacing (navigation indicator to edge, actions to edge)"
163
- },
164
- {
165
- "token": "list-view-end-edge-to-content",
166
- "context": "Spacing (edge to Navigation icon)"
167
- },
168
- {
169
- "token": "vertical-align-items",
170
- "context": "Spacing (vertical)"
171
- },
172
- {
173
- "token": "stack-item-minimum-padding-vertical",
174
- "context": "Spacing (vertical)"
175
- },
176
- {
177
- "token": "label-to-description-0",
178
- "context": "Spacing (navigation indicator)"
179
- },
180
- {
181
- "token": "border-width-100",
182
- "context": "Border width (selected - highlight)"
183
- },
184
- {
185
- "token": "focus-indicator-thickness",
186
- "context": "Focus"
187
- },
188
- {
189
- "token": "focus-indicator-gap",
190
- "context": "Focus (drag handle)"
191
- },
192
- {
193
- "token": "drop-shadow-dragged-x",
194
- "context": "Dragged shadow"
195
- },
196
- {
197
- "token": "drop-shadow-dragged-y",
198
- "context": "Dragged shadow"
199
- },
200
- {
201
- "token": "drop-shadow-dragged-blur",
202
- "context": "Dragged shadow"
203
- },
204
- {
205
- "token": "drop-shadow-dragged-color",
206
- "context": "Dragged shadow"
207
- },
208
- {
209
- "token": "component-height-100",
210
- "context": "Height"
211
- },
212
- {
213
- "token": "stack-item-header-minimum-width",
214
- "context": "Width"
215
- },
216
- {
217
- "token": "component-edge-to-text-100",
218
- "context": "Spacing (horizontal)"
219
- },
220
- {
221
- "token": "top-to-text-100",
222
- "context": "Spacing (vertical)"
223
- },
224
- {
225
- "token": "bottom-to-text-100",
226
- "context": "Spacing (vertical)"
227
- },
228
- {
229
- "token": "component-top-to-workflow-icon-100",
230
- "context": "Spacing (vertical)"
231
- },
232
- {
233
- "token": "stack-item-header-to-item",
234
- "context": "Spacing (vertically, between list view header to list view items)"
235
- },
236
- {
237
- "token": "stack-item-item-to-item",
238
- "context": "Spacing (vertically, between list view header to list view items)"
239
- },
240
- {
241
- "token": "stack-item-background-color-hover",
242
- "context": "Background"
243
- },
244
- {
245
- "token": "stack-item-background-color-down",
246
- "context": "Background"
247
- },
248
- {
249
- "token": "stack-item-background-color-key-focus",
250
- "context": "Background"
251
- },
252
- {
253
- "token": "stack-item-selected-background-color-default",
254
- "context": "Background (selected, checkbox)"
255
- },
256
- {
257
- "token": "stack-item-selected-background-color-hover",
258
- "context": "Background (selected, checkbox)"
259
- },
260
- {
261
- "token": "stack-item-selected-background-color-down",
262
- "context": "Background (selected, checkbox)"
263
- },
264
- {
265
- "token": "stack-item-selected-background-color-key-focus",
266
- "context": "Background (selected, checkbox)"
267
- },
268
- {
269
- "token": "stack-item-selected-background-color-highlight",
270
- "context": "Background (selected, highlight)"
271
- },
272
- {
273
- "token": "stack-item-selected-background-opacity-highlight-hover",
274
- "context": "Background (selected, highlight)"
275
- },
276
- {
277
- "token": "accent-content-color-selected",
278
- "context": "Border (selected, highlight)"
279
- },
280
- {
281
- "token": "gray-300",
282
- "context": "Border"
283
- },
284
- {
285
- "token": "neutral-subdued-content-color-default",
286
- "context": "Label and icon (non-selected)"
287
- },
288
- {
289
- "token": "neutral-subdued-content-color-hover",
290
- "context": "Label and icon (non-selected)"
291
- },
292
- {
293
- "token": "neutral-subdued-content-color-down",
294
- "context": "Label and icon (non-selected)"
295
- },
296
- {
297
- "token": "neutral-subdued-content-color-key-focus",
298
- "context": "Label and icon (non-selected)"
299
- },
300
- {
301
- "token": "neutral-content-color-default",
302
- "context": "Label and icon (selected, checkbox and highlight)"
303
- },
304
- {
305
- "token": "neutral-content-color-hover",
306
- "context": "Label and icon (selected, checkbox and highlight)"
307
- },
308
- {
309
- "token": "neutral-content-color-down",
310
- "context": "Label and icon (selected, checkbox and highlight)"
311
- },
312
- {
313
- "token": "neutral-content-color-key-focus",
314
- "context": "Label and icon (selected, checkbox and highlight)"
315
- },
316
- {
317
- "token": "disabled-background-color",
318
- "context": "Background (disabled)"
319
- },
320
- {
321
- "token": "disabled-content-color",
322
- "context": "Label and icon (disabled)"
323
- },
324
- {
325
- "token": "focus-indicator-color",
326
- "context": "Focus indicator"
327
- },
328
- {
329
- "token": "title-color",
330
- "context": "Title label and icon"
331
- },
332
- {
333
- "token": "default-font-family",
334
- "context": "Text (List view item)"
335
- },
336
- {
337
- "token": "regular-font-weight",
338
- "context": "Text (List view item)"
339
- },
340
- {
341
- "token": "default-font-style",
342
- "context": "Text (List view item)"
343
- },
344
- {
345
- "token": "font-size-100",
346
- "context": "Text (List view item)"
347
- },
348
- {
349
- "token": "line-height-100",
350
- "context": "Text (List view item)"
351
- },
352
- {
353
- "token": "cjk-line-height-100",
354
- "context": "Text (List view item)"
355
- },
356
- {
357
- "token": "font-size-75",
358
- "context": "Text (List view description)"
359
- },
360
- {
361
- "token": "bold-font-weight",
362
- "context": "Text (List view title)"
363
- }
364
- ],
365
- "accessibility": {
366
- "intents": ["select", "navigate"],
367
- "focusable": true,
368
- "keyboardIntents": ["navigate-items", "activate", "select-all"],
369
- "wcag": [
370
- {
371
- "criterion": "2.1.1",
372
- "level": "A",
373
- "title": "Keyboard"
374
- },
375
- {
376
- "criterion": "4.1.2",
377
- "level": "A",
378
- "title": "Name, Role, Value"
379
- }
380
- ]
381
- }
382
- }