@adobe/design-data-spec 0.4.0 → 0.5.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 (81) hide show
  1. package/components/accordion.json +431 -1
  2. package/components/action-bar.json +183 -1
  3. package/components/action-button.json +407 -1
  4. package/components/action-group.json +15 -1
  5. package/components/alert-banner.json +79 -1
  6. package/components/alert-dialog.json +107 -1
  7. package/components/avatar-group.json +115 -1
  8. package/components/avatar.json +131 -1
  9. package/components/badge.json +430 -1
  10. package/components/breadcrumbs.json +175 -1
  11. package/components/button-group.json +11 -1
  12. package/components/button.json +466 -8
  13. package/components/cards.json +483 -1
  14. package/components/checkbox-group.json +2 -1
  15. package/components/checkbox.json +243 -1
  16. package/components/close-button.json +123 -1
  17. package/components/coach-indicator.json +39 -1
  18. package/components/coach-mark.json +103 -1
  19. package/components/color-area.json +39 -1
  20. package/components/color-handle.json +51 -1
  21. package/components/color-loupe.json +55 -1
  22. package/components/color-slider.json +43 -1
  23. package/components/color-wheel.json +35 -1
  24. package/components/combo-box.json +387 -1
  25. package/components/contextual-help.json +83 -1
  26. package/components/date-picker.json +279 -1
  27. package/components/divider.json +47 -1
  28. package/components/drop-zone.json +167 -1
  29. package/components/field-label.json +147 -1
  30. package/components/help-text.json +147 -1
  31. package/components/illustrated-message.json +107 -1
  32. package/components/in-field-progress-circle.json +55 -1
  33. package/components/in-line-alert.json +155 -1
  34. package/components/link.json +91 -1
  35. package/components/list-view.json +263 -1
  36. package/components/menu.json +467 -1
  37. package/components/meter.json +115 -1
  38. package/components/number-field.json +399 -1
  39. package/components/opacity-checkerboard.json +19 -1
  40. package/components/picker.json +431 -1
  41. package/components/popover.json +51 -1
  42. package/components/progress-bar.json +115 -1
  43. package/components/progress-circle.json +55 -1
  44. package/components/radio-button.json +243 -1
  45. package/components/radio-group.json +2 -1
  46. package/components/rating.json +99 -1
  47. package/components/search-field.json +235 -1
  48. package/components/segmented-control.json +135 -1
  49. package/components/select-box.json +187 -1
  50. package/components/side-navigation.json +223 -1
  51. package/components/slider.json +279 -1
  52. package/components/standard-dialog.json +99 -1
  53. package/components/status-light.json +219 -1
  54. package/components/steplist.json +215 -1
  55. package/components/swatch-group.json +15 -1
  56. package/components/swatch.json +136 -2
  57. package/components/switch.json +251 -1
  58. package/components/table.json +271 -1
  59. package/components/tabs.json +151 -1
  60. package/components/tag-field.json +151 -1
  61. package/components/tag-group.json +19 -1
  62. package/components/tag.json +323 -1
  63. package/components/takeover-dialog.json +35 -1
  64. package/components/text-area.json +383 -1
  65. package/components/text-field.json +411 -1
  66. package/components/thumbnail.json +83 -1
  67. package/components/title.json +39 -0
  68. package/components/toast.json +99 -1
  69. package/components/tooltip.json +87 -1
  70. package/components/tree-view.json +279 -1
  71. package/conformance/invalid/SPEC-027/dataset.json +25 -0
  72. package/conformance/invalid/SPEC-027/expected-errors.json +10 -0
  73. package/conformance/valid/token-bindings.json +27 -0
  74. package/package.json +1 -1
  75. package/rules/rules.yaml +9 -0
  76. package/schemas/component.schema.json +22 -0
  77. package/schemas/token.schema.json +27 -0
  78. package/spec/agent-surface.md +39 -9
  79. package/spec/component-format.md +41 -16
  80. package/spec/token-format.md +18 -0
  81. package/src/validate.js +27 -3
@@ -72,5 +72,139 @@
72
72
  },
73
73
  "lifecycle": {
74
74
  "introduced": "1.0.0-draft"
75
- }
75
+ },
76
+ "tokenBindings": [
77
+ {
78
+ "token": "segmented-control-item-height",
79
+ "context": "Height "
80
+ },
81
+ {
82
+ "token": "corner-radius-medium-default",
83
+ "context": "Corner radius"
84
+ },
85
+ {
86
+ "token": "workflow-icon-size-100",
87
+ "context": "Icon "
88
+ },
89
+ {
90
+ "token": "component-edge-to-visual-only-100",
91
+ "context": "Spacing (top/bottom to edge, workflow icon only)"
92
+ },
93
+ {
94
+ "token": "text-to-visual-100",
95
+ "context": "Spacing (icon to label)"
96
+ },
97
+ {
98
+ "token": "component-edge-to-visual-100",
99
+ "context": "Spacing (start/end edges, workflow icon with label)"
100
+ },
101
+ {
102
+ "token": "component-edge-to-text-100",
103
+ "context": "Spacing (start/end edges, workflow icon with label)"
104
+ },
105
+ {
106
+ "token": "component-top-to-text-100",
107
+ "context": "Spacing (top/bottom to edge, workflow icon with label)"
108
+ },
109
+ {
110
+ "token": "component-bottom-to-text-100",
111
+ "context": "Spacing (top/bottom to edge, workflow icon with label)"
112
+ },
113
+ {
114
+ "token": "component-top-to-workflow-icon-100",
115
+ "context": "Spacing (top/bottom edge to icon, workflow icon with label)"
116
+ },
117
+ {
118
+ "token": "spacing-50",
119
+ "context": "Spacing (between segmented control items)"
120
+ },
121
+ {
122
+ "token": "spacing-75",
123
+ "context": "Spacing (between segmented control items)"
124
+ },
125
+ {
126
+ "token": "focus-indicator-thickness",
127
+ "context": "Focus ring"
128
+ },
129
+ {
130
+ "token": "focus-indicator-gap",
131
+ "context": "Focus ring"
132
+ },
133
+ {
134
+ "token": "segmented-control-selection-border-width",
135
+ "context": "Selection border"
136
+ },
137
+ {
138
+ "token": "gray-600",
139
+ "context": "Segmented control items (no track)"
140
+ },
141
+ {
142
+ "token": "neutral-subdued-content-color-hover",
143
+ "context": "Segmented control items (no track)"
144
+ },
145
+ {
146
+ "token": "neutral-subdued-content-color-key-focus",
147
+ "context": "Segmented control items (no track)"
148
+ },
149
+ {
150
+ "token": "neutral-content-color-default",
151
+ "context": "Segmented control items (no track)"
152
+ },
153
+ {
154
+ "token": "neutral-content-color-hover",
155
+ "context": "Segmented control items (no track)"
156
+ },
157
+ {
158
+ "token": "neutral-content-color-key-focus",
159
+ "context": "Segmented control items (no track)"
160
+ },
161
+ {
162
+ "token": "gray-200",
163
+ "context": "Segmented control items (no track)"
164
+ },
165
+ {
166
+ "token": "neutral-subdued-content-color-default",
167
+ "context": "Segmented control items (with track)"
168
+ },
169
+ {
170
+ "token": "gray-25",
171
+ "context": "Segmented control items (with track)"
172
+ },
173
+ {
174
+ "token": "gray-100",
175
+ "context": "Segmented control items (with track)"
176
+ },
177
+ {
178
+ "token": "disabled-content-color",
179
+ "context": "Disabled"
180
+ },
181
+ {
182
+ "token": "disabled-background-color",
183
+ "context": "Disabled"
184
+ },
185
+ {
186
+ "token": "focus-indicator-color",
187
+ "context": "Focus ring"
188
+ },
189
+ {
190
+ "token": "default-font-family",
191
+ "context": "Label"
192
+ },
193
+ {
194
+ "token": "default-font-style",
195
+ "context": "Label"
196
+ },
197
+ {
198
+ "token": "regular-font-weight",
199
+ "context": "Label"
200
+ },
201
+ {
202
+ "token": "font-size-100",
203
+ "context": "Label"
204
+ },
205
+ {
206
+ "token": "line-height-100",
207
+ "context": "Label"
208
+ }
209
+ ]
76
210
  }
@@ -58,5 +58,191 @@
58
58
  ],
59
59
  "lifecycle": {
60
60
  "introduced": "1.0.0-draft"
61
- }
61
+ },
62
+ "tokenBindings": [
63
+ {
64
+ "token": "select-box-vertical-height",
65
+ "context": "Component height and width (vertical)"
66
+ },
67
+ {
68
+ "token": "select-box-vertical-edge-to-content",
69
+ "context": "Padding (vertical)"
70
+ },
71
+ {
72
+ "token": "select-box-vertical-illustration-to-label",
73
+ "context": "Spacing (illustration to text, vertical)"
74
+ },
75
+ {
76
+ "token": "select-box-horizontal-width",
77
+ "context": "Component width (horizontal)"
78
+ },
79
+ {
80
+ "token": "select-box-horizontal-minimum-width",
81
+ "context": "Component minimum width (horizontal)"
82
+ },
83
+ {
84
+ "token": "select-box-horizontal-minimum-height",
85
+ "context": "Component minimum height (horizontal)"
86
+ },
87
+ {
88
+ "token": "select-box-horizontal-top-to-content",
89
+ "context": "Padding (horizontal)"
90
+ },
91
+ {
92
+ "token": "select-box-horizontal-start-to-content",
93
+ "context": "Padding (horizontal)"
94
+ },
95
+ {
96
+ "token": "select-box-horizontal-end-to-content",
97
+ "context": "Padding (horizontal)"
98
+ },
99
+ {
100
+ "token": "select-box-horizontal-label-to-description",
101
+ "context": "Spacing (label to description, horizontal)"
102
+ },
103
+ {
104
+ "token": "select-box-horizontal-illustration-to-label",
105
+ "context": "Spacing (illustration to label, horizontal)"
106
+ },
107
+ {
108
+ "token": "border-width-200",
109
+ "context": "Border (Selected)"
110
+ },
111
+ {
112
+ "token": "component-size-difference-down",
113
+ "context": "Down state"
114
+ },
115
+ {
116
+ "token": "component-size-width-ratio-down",
117
+ "context": "Down state"
118
+ },
119
+ {
120
+ "token": "component-size-minimum-perspective-down",
121
+ "context": "Down state"
122
+ },
123
+ {
124
+ "token": "focus-indicator-thickness",
125
+ "context": "Border (Selected)"
126
+ },
127
+ {
128
+ "token": "corner-radius-700",
129
+ "context": "Border radius"
130
+ },
131
+ {
132
+ "token": "select-box-edge-to-checkbox",
133
+ "context": "Spacing (top/side edge to checkbox)"
134
+ },
135
+ {
136
+ "token": "default-font-family",
137
+ "context": "Text (vertical)"
138
+ },
139
+ {
140
+ "token": "regular-font-weight",
141
+ "context": "Text (vertical)"
142
+ },
143
+ {
144
+ "token": "default-font-style",
145
+ "context": "Text (vertical)"
146
+ },
147
+ {
148
+ "token": "font-size-100",
149
+ "context": "Text (vertical)"
150
+ },
151
+ {
152
+ "token": "line-height-100",
153
+ "context": "Text (vertical)"
154
+ },
155
+ {
156
+ "token": "cjk-line-height-100",
157
+ "context": "Text (vertical)"
158
+ },
159
+ {
160
+ "token": "bold-font-weight",
161
+ "context": "Text (horizontal)"
162
+ },
163
+ {
164
+ "token": "background-layer-2-color",
165
+ "context": "Background"
166
+ },
167
+ {
168
+ "token": "neutral-content-color-default",
169
+ "context": "Illustration color"
170
+ },
171
+ {
172
+ "token": "neutral-content-color-hover",
173
+ "context": "Illustration color"
174
+ },
175
+ {
176
+ "token": "netural-content-color-focus",
177
+ "context": "Illustration color"
178
+ },
179
+ {
180
+ "token": "select-box-selected-border-color",
181
+ "context": "Border (selected)"
182
+ },
183
+ {
184
+ "token": "gray-900",
185
+ "context": "Border (selected)"
186
+ },
187
+ {
188
+ "token": "focus-indicator-color",
189
+ "context": "Border (focus)"
190
+ },
191
+ {
192
+ "token": "disabled-content-color",
193
+ "context": "Disabled"
194
+ },
195
+ {
196
+ "token": "disabled-background-color",
197
+ "context": "Disabled"
198
+ },
199
+ {
200
+ "token": "drop-shadow-emphasized-default-x",
201
+ "context": "Default"
202
+ },
203
+ {
204
+ "token": "drop-shadow-emphasized-default-y",
205
+ "context": "Default"
206
+ },
207
+ {
208
+ "token": "drop-shadow-emphasized-default-blur",
209
+ "context": "Default"
210
+ },
211
+ {
212
+ "token": "drop-shadow-emphasized-default-color",
213
+ "context": "Default"
214
+ },
215
+ {
216
+ "token": "drop-shadow-emphasized-hover-x",
217
+ "context": "Hover"
218
+ },
219
+ {
220
+ "token": "drop-shadow-emphasized-hover-y",
221
+ "context": "Hover"
222
+ },
223
+ {
224
+ "token": "drop-shadow-emphasized-hover-blur",
225
+ "context": "Hover"
226
+ },
227
+ {
228
+ "token": "drop-shadow-emphasized-hover-color",
229
+ "context": "Hover"
230
+ },
231
+ {
232
+ "token": "drop-shadow-elevated-x",
233
+ "context": "Focus"
234
+ },
235
+ {
236
+ "token": "drop-shadow-elevated-y",
237
+ "context": "Focus"
238
+ },
239
+ {
240
+ "token": "drop-shadow-elevated-blur",
241
+ "context": "Focus"
242
+ },
243
+ {
244
+ "token": "drop-shadow-elevated-color",
245
+ "context": "Focus"
246
+ }
247
+ ]
62
248
  }
@@ -67,5 +67,227 @@
67
67
  ],
68
68
  "lifecycle": {
69
69
  "introduced": "1.0.0-draft"
70
- }
70
+ },
71
+ "tokenBindings": [
72
+ {
73
+ "token": "component-height-100",
74
+ "context": "Minimum height"
75
+ },
76
+ {
77
+ "token": "side-navigation-width",
78
+ "context": "Width (default)"
79
+ },
80
+ {
81
+ "token": "side-navigation-minimum-width",
82
+ "context": "Width (minimum)"
83
+ },
84
+ {
85
+ "token": "side-navigation-maximum-width",
86
+ "context": "Width (maximum)"
87
+ },
88
+ {
89
+ "token": "component-size-difference-down",
90
+ "context": "Component size (down)"
91
+ },
92
+ {
93
+ "token": "component-size-width-ratio-down",
94
+ "context": "Component size (down)"
95
+ },
96
+ {
97
+ "token": "component-size-minimum-perspective-down",
98
+ "context": "Component size (down)"
99
+ },
100
+ {
101
+ "token": "side-navigation-indicator-height",
102
+ "context": "Side navigation indicator"
103
+ },
104
+ {
105
+ "token": "side-navigation-indicator-thickness",
106
+ "context": "Side navigation indicator"
107
+ },
108
+ {
109
+ "token": "side-navigation-indicator-to-content",
110
+ "context": "Spacing (indicator to content)"
111
+ },
112
+ {
113
+ "token": "workflow-icon-size-100",
114
+ "context": "Icon"
115
+ },
116
+ {
117
+ "token": "text-to-visual-100",
118
+ "context": "Spacing (icon to label)"
119
+ },
120
+ {
121
+ "token": "component-edge-to-text-100",
122
+ "context": "Spacing (single-level, start/end to content)"
123
+ },
124
+ {
125
+ "token": "side-navigation-edge-to-indicator",
126
+ "context": "Spacing (single-level, start/end to content)"
127
+ },
128
+ {
129
+ "token": "side-navigation-second-level-edge-to-indicator",
130
+ "context": "Spacing (multi-level, no icon, start edge to content)"
131
+ },
132
+ {
133
+ "token": "side-navigation-third-level-edge-to-indicator",
134
+ "context": "Spacing (multi-level, no icon, start edge to content)"
135
+ },
136
+ {
137
+ "token": "side-navigation-with-icon-second-level-edge-to-indicator",
138
+ "context": "Spacing (multi-level, no icon, start edge to content)"
139
+ },
140
+ {
141
+ "token": "side-navigation-with-icon-third-level-edge-to-indicator",
142
+ "context": "Spacing (multi-level, no icon, start edge to content)"
143
+ },
144
+ {
145
+ "token": "side-navigation-second-level-edge-to-text",
146
+ "context": "Spacing (multi-level, no icon, start edge to content)"
147
+ },
148
+ {
149
+ "token": "side-navigation-third-level-edge-to-text",
150
+ "context": "Spacing (multi-level, no icon, start edge to content)"
151
+ },
152
+ {
153
+ "token": "side-navigation-with-icon-second-level-edge-to-text",
154
+ "context": "Spacing (multi-level, no icon, start edge to content)"
155
+ },
156
+ {
157
+ "token": "side-navigation-with-icon-third-level-edge-to-text",
158
+ "context": "Spacing (multi-level, no icon, start edge to content)"
159
+ },
160
+ {
161
+ "token": "field-edge-to-disclosure-icon-75",
162
+ "context": "Spacing (edge to disclosure icon)"
163
+ },
164
+ {
165
+ "token": "side-navigation-counter-to-disclosure",
166
+ "context": "Spacing (text to trailing accessory area)"
167
+ },
168
+ {
169
+ "token": "navigation-trailing-accessory-area-to-edge",
170
+ "context": "Spacing (single-level, end to content)"
171
+ },
172
+ {
173
+ "token": "side-navigation-item-to-item",
174
+ "context": "Spacing (vertically between side-nav items)"
175
+ },
176
+ {
177
+ "token": "side-navigation-item-to-header",
178
+ "context": "Spacing (vertically between side-nav item and side-nav title)"
179
+ },
180
+ {
181
+ "token": "side-navigation-header-to-item",
182
+ "context": "Spacing (vertically between side-nav item and side-nav title)"
183
+ },
184
+ {
185
+ "token": "component-top-to-workflow-icon-100",
186
+ "context": "Layout"
187
+ },
188
+ {
189
+ "token": "component-padding-vertical-100",
190
+ "context": "Spacing (top edge to label)"
191
+ },
192
+ {
193
+ "token": "side-navigation-bottom-to-text",
194
+ "context": "Spacing (label wrapping)"
195
+ },
196
+ {
197
+ "token": "focus-indicator-thickness",
198
+ "context": "Focus indicator"
199
+ },
200
+ {
201
+ "token": "focus-indicator-gap",
202
+ "context": "Focus indicator"
203
+ },
204
+ {
205
+ "token": "gray-400",
206
+ "context": "Side navigation indicator "
207
+ },
208
+ {
209
+ "token": "gray-800",
210
+ "context": "Side navigation indicator "
211
+ },
212
+ {
213
+ "token": "neutral-subdued-content-color-default",
214
+ "context": "Navigation item label and icon"
215
+ },
216
+ {
217
+ "token": "neutral-subdued-content-color-hover",
218
+ "context": "Navigation item label and icon"
219
+ },
220
+ {
221
+ "token": "neutral-subdued-content-color-down",
222
+ "context": "Navigation item label and icon"
223
+ },
224
+ {
225
+ "token": "neutral-subdued-content-color-key-focus",
226
+ "context": "Navigation item label and icon"
227
+ },
228
+ {
229
+ "token": "neutral-content-color-default",
230
+ "context": "Navigation item label and icon (selected)"
231
+ },
232
+ {
233
+ "token": "neutral-content-color-hover",
234
+ "context": "Navigation item label and icon (selected)"
235
+ },
236
+ {
237
+ "token": "neutral-content-color-down",
238
+ "context": "Navigation item label and icon (selected)"
239
+ },
240
+ {
241
+ "token": "neutral-content-color-key-focus",
242
+ "context": "Navigation item label and icon (selected)"
243
+ },
244
+ {
245
+ "token": "gray-600",
246
+ "context": "Side navigation title"
247
+ },
248
+ {
249
+ "token": "disabled-content-color",
250
+ "context": "Label and icon (disabled)"
251
+ },
252
+ {
253
+ "token": "focus-indicator-color",
254
+ "context": "Focus indicator"
255
+ },
256
+ {
257
+ "token": "default-font-family",
258
+ "context": "Text "
259
+ },
260
+ {
261
+ "token": "regular-font-weight",
262
+ "context": "Text "
263
+ },
264
+ {
265
+ "token": "default-font-style",
266
+ "context": "Text "
267
+ },
268
+ {
269
+ "token": "font-size-100",
270
+ "context": "Text "
271
+ },
272
+ {
273
+ "token": "line-height-100",
274
+ "context": "Text "
275
+ },
276
+ {
277
+ "token": "cjk-line-height-100",
278
+ "context": "Text "
279
+ },
280
+ {
281
+ "token": "bold-font-weight",
282
+ "context": "Text (selected)"
283
+ },
284
+ {
285
+ "token": "medium-font-weight",
286
+ "context": "Text (Side navigation title)"
287
+ },
288
+ {
289
+ "token": "font-size-75",
290
+ "context": "Text (Side navigation title)"
291
+ }
292
+ ]
71
293
  }