@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,91 +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/title.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "title",
6
- "displayName": "Title",
7
- "description": "Title is a typography component used for large, prominent headings and display text.",
8
- "meta": {
9
- "category": "typography",
10
- "documentationUrl": "https://spectrum.adobe.com/page/title/"
11
- },
12
- "options": {
13
- "script": {
14
- "$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-script.json"
15
- },
16
- "classification": {
17
- "$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-classification.json"
18
- },
19
- "size": {
20
- "type": "string",
21
- "default": "m",
22
- "values": [
23
- {
24
- "value": "xs"
25
- },
26
- {
27
- "value": "s"
28
- },
29
- {
30
- "value": "m"
31
- },
32
- {
33
- "value": "l"
34
- },
35
- {
36
- "value": "xl"
37
- },
38
- {
39
- "value": "xxl"
40
- },
41
- {
42
- "value": "xxxl"
43
- }
44
- ]
45
- }
46
- },
47
- "lifecycle": {
48
- "introduced": "1.0.0-draft"
49
- },
50
- "tokenBindings": [
51
- {
52
- "token": "font-family",
53
- "context": "Title-XXXL"
54
- },
55
- {
56
- "token": "font-weight",
57
- "context": "Title-XXXL"
58
- },
59
- {
60
- "token": "font-size",
61
- "context": "Title-XXXL"
62
- },
63
- {
64
- "token": "line-height",
65
- "context": "Title-XXXL"
66
- },
67
- {
68
- "token": "letter-spacing",
69
- "context": "Title-XXXL"
70
- },
71
- {
72
- "token": "font-style",
73
- "context": "Title-XXXL"
74
- },
75
- {
76
- "token": "title-margin-top-multiplier",
77
- "context": "Margins"
78
- },
79
- {
80
- "token": "title-margin-bottom-multiplier",
81
- "context": "Margins"
82
- },
83
- {
84
- "token": "title-color",
85
- "context": "Color"
86
- }
87
- ],
88
- "accessibility": {
89
- "focusable": false
90
- }
91
- }
@@ -1,156 +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/toast.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "toast",
6
- "displayName": "Toast",
7
- "description": "Toasts display brief, temporary notifications. They're meant to be noticed without disrupting a user's experience or requiring an action to be taken.",
8
- "meta": {
9
- "category": "feedback",
10
- "documentationUrl": "https://spectrum.adobe.com/page/toast/"
11
- },
12
- "options": {
13
- "text": {
14
- "type": "string"
15
- },
16
- "variant": {
17
- "type": "string",
18
- "default": "neutral",
19
- "values": [
20
- {
21
- "value": "neutral"
22
- },
23
- {
24
- "value": "informative"
25
- },
26
- {
27
- "value": "positive"
28
- },
29
- {
30
- "value": "negative"
31
- }
32
- ]
33
- },
34
- "actionLabel": {
35
- "type": "string",
36
- "description": "If undefined, this button does not appear."
37
- },
38
- "isAutoDismissible": {
39
- "type": "boolean",
40
- "default": false
41
- }
42
- },
43
- "lifecycle": {
44
- "introduced": "1.0.0-draft"
45
- },
46
- "tokenBindings": [
47
- {
48
- "token": "toast-height",
49
- "context": "Height"
50
- },
51
- {
52
- "token": "toast-maximum-width",
53
- "context": "Width (maximum)"
54
- },
55
- {
56
- "token": "corner-radius-800",
57
- "context": "Rounding"
58
- },
59
- {
60
- "token": "workflow-icon-size-100",
61
- "context": "Icon"
62
- },
63
- {
64
- "token": "text-to-visual-300",
65
- "context": "Spacing (icon to text)"
66
- },
67
- {
68
- "token": "spacing-400",
69
- "context": "Spacing (text to button, horizontal)"
70
- },
71
- {
72
- "token": "spacing-300",
73
- "context": "Spacing (start edge to text and icon)"
74
- },
75
- {
76
- "token": "spacing-200",
77
- "context": "Spacing (button to close button, horizontal)"
78
- },
79
- {
80
- "token": "spacing-100",
81
- "context": "Spacing (close button to end edge)"
82
- },
83
- {
84
- "token": "toast-top-to-workflow-icon",
85
- "context": "18px (desktop), 20px (mobile)"
86
- },
87
- {
88
- "token": "toast-top-to-text",
89
- "context": "18px (desktop), 20px (mobile)"
90
- },
91
- {
92
- "token": "toast-bottom-to-text",
93
- "context": "20px (desktop), 22px (mobile)"
94
- },
95
- {
96
- "token": "neutral-subdued-background-color-default",
97
- "context": "Background"
98
- },
99
- {
100
- "token": "informative-background-color-default",
101
- "context": "Background"
102
- },
103
- {
104
- "token": "positive-background-color-default",
105
- "context": "Background"
106
- },
107
- {
108
- "token": "negative-background-color-default",
109
- "context": "Background"
110
- },
111
- {
112
- "token": "white",
113
- "context": "Text and icon"
114
- },
115
- {
116
- "token": "default-font-family",
117
- "context": "Value"
118
- },
119
- {
120
- "token": "regular-font-weight",
121
- "context": "Value"
122
- },
123
- {
124
- "token": "default-font-style",
125
- "context": "Value"
126
- },
127
- {
128
- "token": "font-size-100",
129
- "context": "Value"
130
- },
131
- {
132
- "token": "line-height-100",
133
- "context": "Value"
134
- },
135
- {
136
- "token": "cjk-line-height-100",
137
- "context": "Value"
138
- },
139
- {
140
- "token": "neutral-background-color-default",
141
- "context": "Toast token changes (Jan 2025)"
142
- }
143
- ],
144
- "accessibility": {
145
- "intents": ["dismiss"],
146
- "focusable": true,
147
- "keyboardIntents": ["dismiss"],
148
- "wcag": [
149
- {
150
- "criterion": "4.1.3",
151
- "level": "AA",
152
- "title": "Status Messages"
153
- }
154
- ]
155
- }
156
- }
@@ -1,179 +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/tooltip.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "tooltip",
6
- "displayName": "Tooltip",
7
- "description": "Tooltips show contextual help or information about specific components when a user hovers or focuses on them.",
8
- "meta": {
9
- "category": "feedback",
10
- "documentationUrl": "https://spectrum.adobe.com/page/tooltip/"
11
- },
12
- "options": {
13
- "label": {
14
- "type": "string"
15
- },
16
- "variant": {
17
- "type": "string",
18
- "default": "neutral",
19
- "values": [
20
- {
21
- "value": "neutral"
22
- },
23
- {
24
- "value": "informative"
25
- },
26
- {
27
- "value": "negative"
28
- }
29
- ]
30
- },
31
- "hasIcon": {
32
- "type": "boolean",
33
- "description": "If the neutral variant, there is never an icon.",
34
- "default": false
35
- },
36
- "maxWidth": {
37
- "type": "number",
38
- "default": 160,
39
- "description": "units: pixels"
40
- },
41
- "placement": {
42
- "type": "string",
43
- "default": "top",
44
- "values": [
45
- {
46
- "value": "top"
47
- },
48
- {
49
- "value": "bottom"
50
- },
51
- {
52
- "value": "left"
53
- },
54
- {
55
- "value": "right"
56
- }
57
- ]
58
- },
59
- "shouldFlip": {
60
- "type": "boolean",
61
- "default": false
62
- },
63
- "offset": {
64
- "type": "number",
65
- "default": 4,
66
- "description": "units: pixels"
67
- },
68
- "containerPadding": {
69
- "type": "number",
70
- "default": 8,
71
- "description": "units: pixels"
72
- }
73
- },
74
- "lifecycle": {
75
- "introduced": "1.0.0-draft"
76
- },
77
- "tokenBindings": [
78
- {
79
- "token": "component-height-75",
80
- "context": "Minimum height"
81
- },
82
- {
83
- "token": "tooltip-maximum-width",
84
- "context": "Maximum width"
85
- },
86
- {
87
- "token": "corner-radius-500",
88
- "context": "Rounding"
89
- },
90
- {
91
- "token": "tooltip-tip-width",
92
- "context": "Tip"
93
- },
94
- {
95
- "token": "tooltip-tip-height",
96
- "context": "Tip"
97
- },
98
- {
99
- "token": "tooltip-tip-corner-radius",
100
- "context": "Rounding (tip)"
101
- },
102
- {
103
- "token": "component-edge-to-text-75",
104
- "context": "Spacing (start/end edges)"
105
- },
106
- {
107
- "token": "component-top-to-text-75",
108
- "context": "Spacing (top/bottom edge to text)"
109
- },
110
- {
111
- "token": "component-bottom-to-text-75",
112
- "context": "Spacing (top/bottom edge to text)"
113
- },
114
- {
115
- "token": "spacing-75",
116
- "context": "Spacing (tip to source)"
117
- },
118
- {
119
- "token": "spacing-100",
120
- "context": "Container padding"
121
- },
122
- {
123
- "token": "default-font-family",
124
- "context": "Label"
125
- },
126
- {
127
- "token": "regular-font-weight",
128
- "context": "Label"
129
- },
130
- {
131
- "token": "default-font-style",
132
- "context": "Label"
133
- },
134
- {
135
- "token": "font-size-75",
136
- "context": "Label"
137
- },
138
- {
139
- "token": "line-height-100",
140
- "context": "Label"
141
- },
142
- {
143
- "token": "cjk-line-height-100",
144
- "context": "Label"
145
- },
146
- {
147
- "token": "gray-25",
148
- "context": "Text"
149
- },
150
- {
151
- "token": "neutral-background-color-default",
152
- "context": "Background (Neutral)"
153
- },
154
- {
155
- "token": "informative-background-color-default",
156
- "context": "Background (Informative)"
157
- },
158
- {
159
- "token": "negative-background-color-default",
160
- "context": "Background (Negative)"
161
- }
162
- ],
163
- "accessibility": {
164
- "role": "tooltip",
165
- "focusable": false,
166
- "wcag": [
167
- {
168
- "criterion": "1.4.13",
169
- "level": "AA",
170
- "title": "Content on Hover or Focus"
171
- },
172
- {
173
- "criterion": "4.1.2",
174
- "level": "A",
175
- "title": "Name, Role, Value"
176
- }
177
- ]
178
- }
179
- }
@@ -1,32 +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/tray.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "tray",
6
- "displayName": "Tray",
7
- "description": "Trays are containers that display transient content such as menus, options, additional actions, and more. They only exist on mobile experiences and are used for exposing types of content that may be too overwhelming for popovers.",
8
- "meta": {
9
- "category": "containers",
10
- "documentationUrl": "https://spectrum.adobe.com/page/tray/"
11
- },
12
- "options": {
13
- "height": {
14
- "type": "string",
15
- "default": "auto"
16
- }
17
- },
18
- "lifecycle": {
19
- "introduced": "1.0.0-draft"
20
- },
21
- "accessibility": {
22
- "intents": ["dismiss"],
23
- "focusable": false,
24
- "wcag": [
25
- {
26
- "criterion": "4.1.2",
27
- "level": "A",
28
- "title": "Name, Role, Value"
29
- }
30
- ]
31
- }
32
- }