@adobe/spectrum-design-data 2.0.0 → 2.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 (77) hide show
  1. package/components/accordion.json +49 -295
  2. package/components/action-bar.json +16 -119
  3. package/components/action-button.json +69 -302
  4. package/components/action-group.json +74 -20
  5. package/components/alert-banner.json +27 -47
  6. package/components/alert-dialog.json +37 -45
  7. package/components/avatar-group.json +28 -54
  8. package/components/avatar.json +92 -59
  9. package/components/badge.json +121 -370
  10. package/components/breadcrumbs.json +53 -159
  11. package/components/button-group.json +40 -13
  12. package/components/button.json +88 -231
  13. package/components/cards.json +31 -290
  14. package/components/checkbox-group.json +58 -13
  15. package/components/checkbox.json +53 -156
  16. package/components/close-button.json +47 -76
  17. package/components/coach-indicator.json +44 -31
  18. package/components/coach-mark.json +19 -43
  19. package/components/color-area.json +64 -26
  20. package/components/color-handle.json +35 -27
  21. package/components/color-loupe.json +6 -17
  22. package/components/color-slider.json +80 -35
  23. package/components/color-wheel.json +51 -25
  24. package/components/combo-box.json +94 -246
  25. package/components/contextual-help.json +106 -59
  26. package/components/date-picker.json +57 -185
  27. package/components/divider.json +25 -17
  28. package/components/drop-zone.json +24 -119
  29. package/components/field-label.json +45 -103
  30. package/components/help-text.json +29 -97
  31. package/components/illustrated-message.json +25 -74
  32. package/components/in-field-progress-circle.json +0 -54
  33. package/components/in-line-alert.json +39 -130
  34. package/components/link.json +40 -58
  35. package/components/list-view.json +30 -181
  36. package/components/menu.json +100 -340
  37. package/components/meter.json +52 -78
  38. package/components/number-field.json +72 -239
  39. package/components/opacity-checkerboard.json +0 -18
  40. package/components/picker.json +95 -275
  41. package/components/popover.json +88 -45
  42. package/components/progress-bar.json +63 -78
  43. package/components/progress-circle.json +36 -33
  44. package/components/radio-button.json +36 -145
  45. package/components/radio-group.json +74 -18
  46. package/components/rating.json +33 -48
  47. package/components/search-field.json +64 -133
  48. package/components/segmented-control.json +37 -86
  49. package/components/select-box.json +52 -100
  50. package/components/side-navigation.json +32 -164
  51. package/components/slider.json +90 -182
  52. package/components/standard-dialog.json +37 -43
  53. package/components/status-light.json +92 -134
  54. package/components/steplist.json +23 -113
  55. package/components/swatch-group.json +50 -22
  56. package/components/swatch.json +62 -70
  57. package/components/switch.json +51 -143
  58. package/components/table.json +51 -232
  59. package/components/tabs.json +29 -84
  60. package/components/tag-field.json +53 -85
  61. package/components/tag-group.json +36 -18
  62. package/components/tag.json +43 -206
  63. package/components/takeover-dialog.json +30 -20
  64. package/components/text-area.json +114 -247
  65. package/components/text-field.json +90 -261
  66. package/components/thumbnail.json +46 -44
  67. package/components/title.json +0 -18
  68. package/components/toast.json +27 -61
  69. package/components/tooltip.json +36 -52
  70. package/components/tree-view.json +79 -200
  71. package/package.json +2 -2
  72. package/tokens/color-aliases.tokens.json +33 -0
  73. package/tokens/color-component.tokens.json +1 -1212
  74. package/tokens/color-palette.tokens.json +0 -33
  75. package/tokens/layout-component.tokens.json +833 -24074
  76. package/tokens/layout.tokens.json +64 -597
  77. package/tokens/typography.tokens.json +559 -3318
@@ -44,102 +44,73 @@
44
44
  "type": "string",
45
45
  "default": "m",
46
46
  "values": [
47
- { "value": "s" },
48
- { "value": "m" },
49
- { "value": "l" },
50
- { "value": "xl" }
47
+ {
48
+ "value": "s"
49
+ },
50
+ {
51
+ "value": "m"
52
+ },
53
+ {
54
+ "value": "l"
55
+ },
56
+ {
57
+ "value": "xl"
58
+ }
51
59
  ]
52
60
  },
53
- "iconSize": { "type": "string" },
61
+ "iconSize": {
62
+ "type": "string"
63
+ },
54
64
  "staticColor": {
55
65
  "type": "string",
56
66
  "description": "Static color must not be set for the default version of this component.",
57
- "values": [{ "value": "white" }, { "value": "black" }]
67
+ "values": [
68
+ {
69
+ "value": "white"
70
+ },
71
+ {
72
+ "value": "black"
73
+ }
74
+ ]
58
75
  },
59
- "isDisabled": { "type": "boolean", "default": false }
76
+ "isDisabled": {
77
+ "type": "boolean",
78
+ "default": false
79
+ }
60
80
  },
61
81
  "states": [
62
- { "name": "hover", "trigger": "interaction" },
63
- { "name": "down", "trigger": "interaction" },
64
- { "name": "keyboard-focus", "trigger": "interaction" }
65
- ],
66
- "lifecycle": { "introduced": "1.0.0-draft" },
67
- "tokenBindings": [
68
- { "token": "component-height-75", "context": "Button size" },
69
- { "token": "component-height-100", "context": "Button size" },
70
- { "token": "component-height-200", "context": "Button size" },
71
- { "token": "component-height-300", "context": "Button size" },
72
- {
73
- "token": "component-size-difference-down",
74
- "context": "Button size (down)"
75
- },
76
- {
77
- "token": "component-size-width-ratio-down",
78
- "context": "Button size (down)"
79
- },
80
- {
81
- "token": "component-size-minimum-perspective-down",
82
- "context": "Button size (down)"
83
- },
84
- { "token": "cross-icon-size-200", "context": "Cross icon size" },
85
- { "token": "cross-icon-size-300", "context": "Cross icon size" },
86
- { "token": "cross-icon-size-400", "context": "Cross icon size" },
87
- { "token": "cross-icon-size-500", "context": "Cross icon size" },
88
- { "token": "focus-indicator-thickness", "context": "Focus ring " },
89
- { "token": "focus-indicator-gap", "context": "Focus ring " },
90
- { "token": "neutral-content-color-default", "context": "Cross icon" },
91
- { "token": "neutral-content-color-hover", "context": "Cross icon" },
92
- { "token": "neutral-content-color-down", "context": "Cross icon" },
93
- { "token": "neutral-content-color-key-focus", "context": "Cross icon" },
94
- { "token": "disabled-content-color", "context": "Cross icon" },
95
- { "token": "focus-indicator-color", "context": "Focus ring" },
96
- { "token": "gray-100", "context": "Background " },
97
- {
98
- "token": "transparent-white-800",
99
- "context": "Cross icon (static white)"
100
- },
101
82
  {
102
- "token": "transparent-white-900",
103
- "context": "Cross icon (static white)"
83
+ "name": "hover",
84
+ "trigger": "interaction"
104
85
  },
105
86
  {
106
- "token": "disabled-static-white-background-color",
107
- "context": "Cross icon (static white)"
87
+ "name": "down",
88
+ "trigger": "interaction"
108
89
  },
109
90
  {
110
- "token": "static-white-focus-indicator-color",
111
- "context": "Focus ring (static white)"
112
- },
113
- {
114
- "token": "transparent-white-100",
115
- "context": "Background (static white)"
116
- },
117
- {
118
- "token": "transparent-black-800",
119
- "context": "Cross icon (static black) "
120
- },
121
- {
122
- "token": "transparent-black-900",
123
- "context": "Cross icon (static black) "
124
- },
125
- {
126
- "token": "disabled-static-black-background-color",
127
- "context": "Cross icon (static black) "
128
- },
129
- {
130
- "token": "static-black-focus-indicator-color",
131
- "context": "Focus ring (static black) "
132
- },
133
- { "token": "transparent-black-100", "context": "Background (static black)" }
91
+ "name": "keyboard-focus",
92
+ "trigger": "interaction"
93
+ }
134
94
  ],
95
+ "lifecycle": {
96
+ "introduced": "1.0.0-draft"
97
+ },
135
98
  "accessibility": {
136
99
  "role": "button",
137
100
  "intents": ["dismiss"],
138
101
  "focusable": true,
139
102
  "keyboardIntents": ["activate"],
140
103
  "wcag": [
141
- { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
142
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
104
+ {
105
+ "criterion": "2.1.1",
106
+ "level": "A",
107
+ "title": "Keyboard"
108
+ },
109
+ {
110
+ "criterion": "4.1.2",
111
+ "level": "A",
112
+ "title": "Name, Role, Value"
113
+ }
143
114
  ]
144
115
  }
145
116
  }
@@ -55,42 +55,55 @@
55
55
  "cornerRounding": {
56
56
  "type": "string",
57
57
  "values": [
58
- { "value": "none" },
59
- { "value": "corner-radius-75" },
60
- { "value": "corner-radius-100" },
61
- { "value": "corner-radius-200" },
62
- { "value": "corner-radius-300" },
63
- { "value": "corner-radius-400" },
64
- { "value": "corner-radius-500" },
65
- { "value": "corner-radius-600" },
66
- { "value": "corner-radius-700" },
67
- { "value": "corner-radius-800" },
68
- { "value": "full" }
58
+ {
59
+ "value": "none"
60
+ },
61
+ {
62
+ "value": "corner-radius-75"
63
+ },
64
+ {
65
+ "value": "corner-radius-100"
66
+ },
67
+ {
68
+ "value": "corner-radius-200"
69
+ },
70
+ {
71
+ "value": "corner-radius-300"
72
+ },
73
+ {
74
+ "value": "corner-radius-400"
75
+ },
76
+ {
77
+ "value": "corner-radius-500"
78
+ },
79
+ {
80
+ "value": "corner-radius-600"
81
+ },
82
+ {
83
+ "value": "corner-radius-700"
84
+ },
85
+ {
86
+ "value": "corner-radius-800"
87
+ },
88
+ {
89
+ "value": "full"
90
+ }
69
91
  ]
70
92
  },
71
93
  "staticColor": {
72
94
  "type": "string",
73
95
  "description": "If not set to white, the coach indicator uses the default color.",
74
- "values": [{ "value": "white" }]
96
+ "values": [
97
+ {
98
+ "value": "white"
99
+ }
100
+ ]
75
101
  }
76
102
  },
77
- "lifecycle": { "introduced": "1.0.0-draft" },
78
- "tokenBindings": [
79
- { "token": "coach-indicator-collapsed-ring-thickness", "context": "Ring" },
80
- { "token": "coach-indicator-expanded-ring-thickness", "context": "Ring" },
81
- { "token": "coach-indicator-collapsed-gap", "context": "Ring" },
82
- { "token": "coach-indicator-expanded-gap", "context": "Ring" },
83
- {
84
- "token": "coach-indicator-collapsed-ring-rounding-increment",
85
- "context": "Rounding"
86
- },
87
- {
88
- "token": "coach-indicator-expanded-ring-rounding-increment",
89
- "context": "Rounding"
90
- },
91
- { "token": "coach-indicator-color", "context": "Indicator (Default)" },
92
- { "token": "coach-indicator-opacity", "context": "Indicator (Default)" },
93
- { "token": "white", "context": "Indicator (Static white)" }
94
- ],
95
- "accessibility": { "focusable": false }
103
+ "lifecycle": {
104
+ "introduced": "1.0.0-draft"
105
+ },
106
+ "accessibility": {
107
+ "focusable": false
108
+ }
96
109
  }
@@ -76,8 +76,12 @@
76
76
  }
77
77
  ],
78
78
  "options": {
79
- "title": { "type": "string" },
80
- "description": { "type": "string" },
79
+ "title": {
80
+ "type": "string"
81
+ },
82
+ "description": {
83
+ "type": "string"
84
+ },
81
85
  "hideImage": {
82
86
  "type": "boolean",
83
87
  "default": false,
@@ -116,60 +120,32 @@
116
120
  "name": "pagination-text",
117
121
  "description": "Text indicating step position (e.g. '2 of 5')."
118
122
  },
119
- { "name": "body" },
120
- { "name": "media" },
121
- { "name": "pagination" },
122
- { "name": "title" }
123
- ],
124
- "lifecycle": { "introduced": "1.0.0-draft" },
125
- "tokenBindings": [
126
- { "token": "coach-mark-width", "context": "Width" },
127
- { "token": "coach-mark-minimum-width", "context": "Width" },
128
- { "token": "coach-mark-maximum-width", "context": "Width" },
129
- {
130
- "token": "coach-mark-edge-to-content",
131
- "context": "Spacing (top/bottom/start/end edge to text)"
132
- },
133
123
  {
134
- "token": "spacing-200",
135
- "context": "Spacing (header to body, body to footer)"
124
+ "name": "body"
136
125
  },
137
126
  {
138
- "token": "spacing-300",
139
- "context": "Spacing (header to body, body to footer)"
127
+ "name": "media"
140
128
  },
141
129
  {
142
- "token": "coach-mark-pagination-text-to-bottom-edge",
143
- "context": "Spacing (pagination to bottom)"
130
+ "name": "pagination"
144
131
  },
145
- { "token": "coach-mark-media-minimum-height", "context": "Media (16:9)" },
146
- { "token": "coach-mark-media-height", "context": "Media (4:3)" },
147
- { "token": "spacing-100", "context": "Spacing (action button to menu)" },
148
- { "token": "title-sans-serif-font-family", "context": "Title" },
149
- { "token": "title-sans-serif-font-weight", "context": "Title" },
150
- { "token": "title-serif-font-style", "context": "Title" },
151
- { "token": "coach-mark-title-font-size", "context": "Title" },
152
- { "token": "title-line-height", "context": "Title" },
153
- { "token": "body-sans-serif-font-family", "context": "Body" },
154
- { "token": "body-sans-serif-font-weight", "context": "Body" },
155
- { "token": "body-serif-font-style", "context": "Body" },
156
- { "token": "coach-mark-body-font-size", "context": "Body" },
157
- { "token": "line-height-200", "context": "Body" },
158
- { "token": "medium-font-weight", "context": "Pagination" },
159
132
  {
160
- "token": "coach-mark-pagination-body-font-size",
161
- "context": "Pagination"
162
- },
163
- { "token": "heading-color", "context": "Color" },
164
- { "token": "body-color", "context": "Color" },
165
- { "token": "coach-mark-pagination-color", "context": "Color" }
133
+ "name": "title"
134
+ }
166
135
  ],
136
+ "lifecycle": {
137
+ "introduced": "1.0.0-draft"
138
+ },
167
139
  "accessibility": {
168
140
  "intents": ["dismiss"],
169
141
  "focusable": true,
170
142
  "keyboardIntents": ["dismiss"],
171
143
  "wcag": [
172
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
144
+ {
145
+ "criterion": "4.1.2",
146
+ "level": "A",
147
+ "title": "Name, Role, Value"
148
+ }
173
149
  ]
174
150
  }
175
151
  }
@@ -68,45 +68,83 @@
68
68
  "type": "number",
69
69
  "description": "Number (from x-minValue to x-maxValue)"
70
70
  },
71
- "x-minValue": { "type": "number", "default": 0 },
72
- "x-maxValue": { "type": "number", "default": 100 },
71
+ "x-minValue": {
72
+ "type": "number",
73
+ "default": 0
74
+ },
75
+ "x-maxValue": {
76
+ "type": "number",
77
+ "default": 100
78
+ },
73
79
  "y-value": {
74
80
  "type": "number",
75
81
  "description": "Number (from y-minValue to y-maxValue)"
76
82
  },
77
- "y-minValue": { "type": "number", "default": 0 },
78
- "y-maxValue": { "type": "number", "default": 100 },
79
- "step": { "type": "number", "default": 1 },
80
- "width": { "type": "number", "default": 192, "description": "units: px" },
81
- "height": { "type": "number", "default": 192, "description": "units: px" },
82
- "isDisabled": { "type": "boolean", "default": false }
83
+ "y-minValue": {
84
+ "type": "number",
85
+ "default": 0
86
+ },
87
+ "y-maxValue": {
88
+ "type": "number",
89
+ "default": 100
90
+ },
91
+ "step": {
92
+ "type": "number",
93
+ "default": 1
94
+ },
95
+ "width": {
96
+ "type": "number",
97
+ "default": 192,
98
+ "description": "units: px"
99
+ },
100
+ "height": {
101
+ "type": "number",
102
+ "default": 192,
103
+ "description": "units: px"
104
+ },
105
+ "isDisabled": {
106
+ "type": "boolean",
107
+ "default": false
108
+ }
83
109
  },
84
110
  "states": [
85
- { "name": "hover", "trigger": "interaction" },
86
- { "name": "down", "trigger": "interaction" },
87
- { "name": "keyboard-focus", "trigger": "interaction" }
88
- ],
89
- "lifecycle": { "introduced": "1.0.0-draft" },
90
- "tokenBindings": [
91
- { "token": "color-area-width", "context": "Size" },
92
- { "token": "color-area-minimum-width", "context": "Size" },
93
- { "token": "color-area-height", "context": "Size" },
94
- { "token": "color-area-minimum-height", "context": "Size" },
95
- { "token": "color-area-border-width", "context": "Color area border" },
96
- { "token": "color-area-border-rounding", "context": "Color area border" },
97
- { "token": "color-area-border-color", "context": "Color area border" },
98
- { "token": "color-area-border-opacity", "context": "Color area border" },
99
- { "token": "disabled-background-color", "context": "Disabled" }
111
+ {
112
+ "name": "hover",
113
+ "trigger": "interaction"
114
+ },
115
+ {
116
+ "name": "down",
117
+ "trigger": "interaction"
118
+ },
119
+ {
120
+ "name": "keyboard-focus",
121
+ "trigger": "interaction"
122
+ }
100
123
  ],
124
+ "lifecycle": {
125
+ "introduced": "1.0.0-draft"
126
+ },
101
127
  "accessibility": {
102
128
  "role": "slider",
103
129
  "intents": ["choose"],
104
130
  "focusable": true,
105
131
  "keyboardIntents": ["increment", "decrement"],
106
132
  "wcag": [
107
- { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
108
- { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
109
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
133
+ {
134
+ "criterion": "1.3.1",
135
+ "level": "A",
136
+ "title": "Info and Relationships"
137
+ },
138
+ {
139
+ "criterion": "2.1.1",
140
+ "level": "A",
141
+ "title": "Keyboard"
142
+ },
143
+ {
144
+ "criterion": "4.1.2",
145
+ "level": "A",
146
+ "title": "Name, Role, Value"
147
+ }
110
148
  ]
111
149
  }
112
150
  }
@@ -33,39 +33,47 @@
33
33
  "default": "hue",
34
34
  "description": "Which channel of the color this handle controls. Use 'alpha' for opacity.",
35
35
  "values": [
36
- { "value": "hue" },
37
- { "value": "saturation" },
38
- { "value": "lightness" },
39
- { "value": "red" },
40
- { "value": "green" },
41
- { "value": "blue" },
42
- { "value": "alpha" }
36
+ {
37
+ "value": "hue"
38
+ },
39
+ {
40
+ "value": "saturation"
41
+ },
42
+ {
43
+ "value": "lightness"
44
+ },
45
+ {
46
+ "value": "red"
47
+ },
48
+ {
49
+ "value": "green"
50
+ },
51
+ {
52
+ "value": "blue"
53
+ },
54
+ {
55
+ "value": "alpha"
56
+ }
43
57
  ]
44
58
  },
45
- "isDisabled": { "type": "boolean", "default": false }
59
+ "isDisabled": {
60
+ "type": "boolean",
61
+ "default": false
62
+ }
63
+ },
64
+ "lifecycle": {
65
+ "introduced": "1.0.0-draft"
46
66
  },
47
- "lifecycle": { "introduced": "1.0.0-draft" },
48
- "tokenBindings": [
49
- { "token": "color-handle-size", "context": "Size (keyboard focus)" },
50
- {
51
- "token": "color-handle-size-key-focus",
52
- "context": "Size (keyboard focus)"
53
- },
54
- { "token": "color-handle-border-width", "context": "Border" },
55
- { "token": "color-handle-inner-border-width", "context": "Border" },
56
- { "token": "color-handle-outer-border-width", "context": "Border" },
57
- { "token": "white", "context": "Border" },
58
- { "token": "color-handle-inner-border-color", "context": "Border" },
59
- { "token": "color-handle-inner-border-opacity", "context": "Border" },
60
- { "token": "color-handle-outer-border-color", "context": "Border" },
61
- { "token": "color-handle-outer-border-opacity", "context": "Border" },
62
- { "token": "disabled-content-color", "context": "Border (disabled)" },
63
- { "token": "disabled-background-color", "context": "Border (disabled)" }
64
- ],
65
67
  "accessibility": {
66
68
  "intents": ["choose"],
67
69
  "focusable": true,
68
70
  "keyboardIntents": ["increment", "decrement"],
69
- "wcag": [{ "criterion": "2.1.1", "level": "A", "title": "Keyboard" }]
71
+ "wcag": [
72
+ {
73
+ "criterion": "2.1.1",
74
+ "level": "A",
75
+ "title": "Keyboard"
76
+ }
77
+ ]
70
78
  }
71
79
  }
@@ -40,21 +40,10 @@
40
40
  "$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/hex-color.json"
41
41
  }
42
42
  },
43
- "lifecycle": { "introduced": "1.0.0-draft" },
44
- "tokenBindings": [
45
- { "token": "color-loupe-height", "context": "Size" },
46
- { "token": "color-loupe-width", "context": "Size" },
47
- { "token": "color-loupe-outer-border-width", "context": "Border" },
48
- { "token": "color-loupe-inner-border-width", "context": "Border" },
49
- { "token": "color-loupe-bottom-to-color-handle", "context": "Spacing" },
50
- { "token": "drop-shadow-elevated-x", "context": "Shadows" },
51
- { "token": "drop-shadow-elevated-y", "context": "Shadows" },
52
- { "token": "drop-shadow-elevated-blur", "context": "Shadows" },
53
- { "token": "color-loupe-outer-border", "context": "Border" },
54
- { "token": "drop-shadow-x", "context": "S1 Shadows" },
55
- { "token": "color-loupe-drop-shadow-y", "context": "S1 Shadows" },
56
- { "token": "color-loupe-drop-shadow-blur", "context": "S1 Shadows" },
57
- { "token": "color-loupe-drop-shadow-color", "context": "S1 Shadows" }
58
- ],
59
- "accessibility": { "focusable": false }
43
+ "lifecycle": {
44
+ "introduced": "1.0.0-draft"
45
+ },
46
+ "accessibility": {
47
+ "focusable": false
48
+ }
60
49
  }