@adobe/spectrum-design-data 0.4.0 → 0.7.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 (96) hide show
  1. package/components/accordion.json +108 -194
  2. package/components/action-bar.json +64 -97
  3. package/components/action-button.json +95 -230
  4. package/components/action-group.json +88 -86
  5. package/components/alert-banner.json +104 -76
  6. package/components/alert-dialog.json +78 -126
  7. package/components/avatar-group.json +61 -119
  8. package/components/avatar.json +98 -212
  9. package/components/badge.json +138 -256
  10. package/components/breadcrumbs.json +95 -89
  11. package/components/button-group.json +57 -48
  12. package/components/button.json +151 -368
  13. package/components/calendar.json +97 -34
  14. package/components/cards.json +109 -250
  15. package/components/checkbox-group.json +50 -58
  16. package/components/checkbox.json +121 -186
  17. package/components/close-button.json +61 -124
  18. package/components/coach-indicator.json +63 -72
  19. package/components/coach-mark.json +89 -93
  20. package/components/color-area.json +68 -94
  21. package/components/color-handle.json +39 -79
  22. package/components/color-loupe.json +35 -52
  23. package/components/color-slider.json +95 -116
  24. package/components/color-wheel.json +67 -73
  25. package/components/combo-box.json +243 -331
  26. package/components/contextual-help.json +86 -175
  27. package/components/date-picker.json +139 -179
  28. package/components/divider.json +30 -69
  29. package/components/drop-zone.json +51 -92
  30. package/components/field-label.json +75 -117
  31. package/components/help-text.json +81 -105
  32. package/components/illustrated-message.json +106 -73
  33. package/components/in-line-alert.json +50 -83
  34. package/components/link.json +63 -85
  35. package/components/list-view.json +107 -146
  36. package/components/menu.json +180 -274
  37. package/components/meter.json +72 -118
  38. package/components/number-field.json +213 -305
  39. package/components/picker.json +208 -320
  40. package/components/popover.json +94 -129
  41. package/components/progress-bar.json +94 -131
  42. package/components/progress-circle.json +45 -72
  43. package/components/radio-button.json +87 -156
  44. package/components/radio-group.json +107 -74
  45. package/components/rating.json +66 -99
  46. package/components/search-field.json +132 -202
  47. package/components/segmented-control.json +94 -109
  48. package/components/select-box.json +119 -179
  49. package/components/side-navigation.json +108 -118
  50. package/components/slider.json +143 -228
  51. package/components/standard-dialog.json +96 -114
  52. package/components/standard-panel.json +105 -53
  53. package/components/status-light.json +104 -240
  54. package/components/steplist.json +77 -161
  55. package/components/swatch-group.json +42 -58
  56. package/components/swatch.json +75 -162
  57. package/components/switch.json +101 -189
  58. package/components/table.json +97 -102
  59. package/components/tabs.json +77 -104
  60. package/components/tag-field.json +86 -150
  61. package/components/tag-group.json +50 -44
  62. package/components/tag.json +81 -198
  63. package/components/takeover-dialog.json +59 -57
  64. package/components/text-area.json +200 -323
  65. package/components/text-field.json +183 -304
  66. package/components/thumbnail.json +63 -105
  67. package/components/toast.json +97 -83
  68. package/components/tooltip.json +104 -96
  69. package/components/tree-view.json +169 -181
  70. package/guidelines/app-frame-content-area.json +81 -0
  71. package/guidelines/app-frame-creating-bluelines.json +58 -0
  72. package/guidelines/app-frame-header.json +72 -0
  73. package/guidelines/app-frame-overview.json +167 -0
  74. package/guidelines/app-frame-side-navigation.json +138 -0
  75. package/guidelines/attention-hierarchy.json +42 -0
  76. package/guidelines/background-layers.json +38 -0
  77. package/guidelines/brand.json +50 -0
  78. package/guidelines/colors.json +62 -0
  79. package/guidelines/containers.json +62 -0
  80. package/guidelines/developer-overview.json +35 -0
  81. package/guidelines/faqs.json +35 -0
  82. package/guidelines/fonts.json +58 -0
  83. package/guidelines/grays.json +66 -0
  84. package/guidelines/icon-fundamentals.json +45 -0
  85. package/guidelines/illustrations.json +111 -0
  86. package/guidelines/introduction.json +31 -0
  87. package/guidelines/manifest.json +204 -0
  88. package/guidelines/motion.json +41 -0
  89. package/guidelines/object-styles.json +102 -0
  90. package/guidelines/principles.json +30 -0
  91. package/guidelines/resources.json +59 -0
  92. package/guidelines/spacing.json +25 -0
  93. package/guidelines/states.json +34 -0
  94. package/guidelines/typography-fundamentals.json +142 -0
  95. package/guidelines/using-icons.json +107 -0
  96. package/package.json +4 -2
@@ -9,83 +9,67 @@
9
9
  "category": "actions",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/avatar-group/"
11
11
  },
12
- "options": {
13
- "label": {
14
- "type": "string",
15
- "description": "Optional text label displayed with the avatar group (e.g., group name)."
16
- },
17
- "size": {
18
- "type": "number",
19
- "default": 100,
20
- "values": [
21
- {
22
- "value": 50
23
- },
24
- {
25
- "value": 75
26
- },
27
- {
28
- "value": 100
29
- },
30
- {
31
- "value": 200
32
- },
33
- {
34
- "value": 300
35
- },
36
- {
37
- "value": 400
38
- },
39
- {
40
- "value": 500
41
- }
42
- ]
43
- }
44
- },
45
- "lifecycle": {
46
- "introduced": "1.0.0-draft"
47
- },
48
- "tokenBindings": [
49
- {
50
- "token": "avatar-group-size-50",
51
- "context": "Size"
52
- },
12
+ "documentBlocks": [
53
13
  {
54
- "token": "avatar-group-size-75",
55
- "context": "Size"
14
+ "type": "purpose",
15
+ "content": "Avatar groups display a collection of avatars representing people or entities."
56
16
  },
57
17
  {
58
- "token": "avatar-group-size-100",
59
- "context": "Size"
18
+ "type": "guideline",
19
+ "content": "An avatar group displays a set of related avatars together. It’s typically used to represent a collection of people or entities."
60
20
  },
61
21
  {
62
- "token": "avatar-group-size-200",
63
- "context": "Size"
22
+ "type": "guideline",
23
+ "content": "Avatar sizes scale exponentially, based on the Spectrum type scale. Avatar has preset sizes to flex across all surfaces and can also be customized to fit appropriately for your context."
64
24
  },
65
25
  {
66
- "token": "avatar-group-size-300",
67
- "context": "Size"
26
+ "type": "guideline",
27
+ "content": "An Avatar group can have an optional text label that clearly describes the group or number of users that it represents."
68
28
  },
69
29
  {
70
- "token": "avatar-group-size-400",
71
- "context": "Size"
30
+ "type": "guideline",
31
+ "content": "Individual avatars inside Avatar group can be navigated using a keyboard. The keyboard focus state adds a focus ring around the avatar."
72
32
  },
73
33
  {
74
- "token": "avatar-group-size-500",
75
- "context": "Size"
34
+ "type": "guideline",
35
+ "content": "Each individual avatar has a stroke applied to better show distinction between individual users in the group. By default, the outline color is a neutral gray, but the stroke color should be adjusted manually to match the background where the avatar group is placed."
76
36
  },
77
37
  {
78
- "token": "spacing-100",
79
- "context": "Spacing (avatar group to label)"
80
- },
81
- {
82
- "token": "avatar-to-avatar-50",
83
- "context": "Spacing (avatar to avatar)"
84
- },
85
- {
86
- "token": "avatar-to-avatar-75",
87
- "context": "Spacing (avatar to avatar)"
38
+ "type": "guideline",
39
+ "content": "When using a colored background the avatar stroke color should remain set as default for both light and dark themes."
40
+ }
41
+ ],
42
+ "options": {
43
+ "label": {
44
+ "type": "string",
45
+ "description": "Optional text label displayed with the avatar group (e.g., group name)."
88
46
  },
47
+ "size": {
48
+ "type": "number",
49
+ "default": 100,
50
+ "values": [
51
+ { "value": 50 },
52
+ { "value": 75 },
53
+ { "value": 100 },
54
+ { "value": 200 },
55
+ { "value": 300 },
56
+ { "value": 400 },
57
+ { "value": 500 }
58
+ ]
59
+ }
60
+ },
61
+ "lifecycle": { "introduced": "1.0.0-draft" },
62
+ "tokenBindings": [
63
+ { "token": "avatar-group-size-50", "context": "Size" },
64
+ { "token": "avatar-group-size-75", "context": "Size" },
65
+ { "token": "avatar-group-size-100", "context": "Size" },
66
+ { "token": "avatar-group-size-200", "context": "Size" },
67
+ { "token": "avatar-group-size-300", "context": "Size" },
68
+ { "token": "avatar-group-size-400", "context": "Size" },
69
+ { "token": "avatar-group-size-500", "context": "Size" },
70
+ { "token": "spacing-100", "context": "Spacing (avatar group to label)" },
71
+ { "token": "avatar-to-avatar-50", "context": "Spacing (avatar to avatar)" },
72
+ { "token": "avatar-to-avatar-75", "context": "Spacing (avatar to avatar)" },
89
73
  {
90
74
  "token": "avatar-to-avatar-100",
91
75
  "context": "Spacing (avatar to avatar)"
@@ -106,61 +90,19 @@
106
90
  "token": "avatar-to-avatar-500",
107
91
  "context": "Spacing (avatar to avatar)"
108
92
  },
109
- {
110
- "token": "default-font-family",
111
- "context": "Layout"
112
- },
113
- {
114
- "token": "regular-font-weight",
115
- "context": "Layout"
116
- },
117
- {
118
- "token": "default-font-style",
119
- "context": "Layout"
120
- },
121
- {
122
- "token": "font-size-50",
123
- "context": "Layout"
124
- },
125
- {
126
- "token": "font-size-75",
127
- "context": "Layout"
128
- },
129
- {
130
- "token": "font-size-100",
131
- "context": "Layout"
132
- },
133
- {
134
- "token": "font-size-200",
135
- "context": "Layout"
136
- },
137
- {
138
- "token": "font-size-300",
139
- "context": "Layout"
140
- },
141
- {
142
- "token": "font-size-400",
143
- "context": "Layout"
144
- },
145
- {
146
- "token": "font-size-500",
147
- "context": "Layout"
148
- },
149
- {
150
- "token": "font-size-600",
151
- "context": "Layout"
152
- },
153
- {
154
- "token": "line-height-100",
155
- "context": "Layout"
156
- },
157
- {
158
- "token": "cjk-line-height-100",
159
- "context": "Layout"
160
- }
93
+ { "token": "default-font-family", "context": "Layout" },
94
+ { "token": "regular-font-weight", "context": "Layout" },
95
+ { "token": "default-font-style", "context": "Layout" },
96
+ { "token": "font-size-50", "context": "Layout" },
97
+ { "token": "font-size-75", "context": "Layout" },
98
+ { "token": "font-size-100", "context": "Layout" },
99
+ { "token": "font-size-200", "context": "Layout" },
100
+ { "token": "font-size-300", "context": "Layout" },
101
+ { "token": "font-size-400", "context": "Layout" },
102
+ { "token": "font-size-500", "context": "Layout" },
103
+ { "token": "font-size-600", "context": "Layout" },
104
+ { "token": "line-height-100", "context": "Layout" },
105
+ { "token": "cjk-line-height-100", "context": "Layout" }
161
106
  ],
162
- "accessibility": {
163
- "role": "group",
164
- "focusable": false
165
- }
107
+ "accessibility": { "role": "group", "focusable": false }
166
108
  }
@@ -9,238 +9,124 @@
9
9
  "category": "navigation",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/avatar/"
11
11
  },
12
- "options": {
13
- "size": {
14
- "type": "number",
15
- "default": 500,
16
- "values": [
17
- {
18
- "value": 50
19
- },
20
- {
21
- "value": 75
22
- },
23
- {
24
- "value": 100
25
- },
26
- {
27
- "value": 200
28
- },
29
- {
30
- "value": 300
31
- },
32
- {
33
- "value": 400
34
- },
35
- {
36
- "value": 500
37
- },
38
- {
39
- "value": 600
40
- },
41
- {
42
- "value": 700
43
- },
44
- {
45
- "value": 800
46
- },
47
- {
48
- "value": 900
49
- },
50
- {
51
- "value": 1000
52
- },
53
- {
54
- "value": 1100
55
- },
56
- {
57
- "value": 1200
58
- },
59
- {
60
- "value": 1300
61
- },
62
- {
63
- "value": 1400
64
- },
65
- {
66
- "value": 1500
67
- }
68
- ]
69
- },
70
- "image": {
71
- "type": "string",
72
- "default": "user image",
73
- "values": [
74
- {
75
- "value": "user image"
76
- },
77
- {
78
- "value": "gradient image"
79
- },
80
- {
81
- "value": "gradient"
82
- },
83
- {
84
- "value": "guest image"
85
- },
86
- {
87
- "value": "initials"
88
- }
89
- ]
90
- },
91
- "isDisabled": {
92
- "type": "boolean",
93
- "default": false
94
- },
95
- "showStroke": {
96
- "type": "boolean",
97
- "default": false
98
- }
99
- },
100
- "states": [
101
- {
102
- "name": "down",
103
- "trigger": "interaction"
104
- },
105
- {
106
- "name": "keyboard-focus",
107
- "trigger": "interaction"
108
- }
109
- ],
110
- "lifecycle": {
111
- "introduced": "1.0.0-draft"
112
- },
113
- "tokenBindings": [
114
- {
115
- "token": "avatar-size-50",
116
- "context": "Size"
117
- },
118
- {
119
- "token": "avatar-size-75",
120
- "context": "Size"
121
- },
122
- {
123
- "token": "avatar-size-100",
124
- "context": "Size"
125
- },
126
- {
127
- "token": "avatar-size-200",
128
- "context": "Size"
129
- },
130
- {
131
- "token": "avatar-size-300",
132
- "context": "Size"
133
- },
134
- {
135
- "token": "avatar-size-400",
136
- "context": "Size"
137
- },
138
- {
139
- "token": "avatar-size-500",
140
- "context": "Size"
141
- },
142
- {
143
- "token": "avatar-size-600",
144
- "context": "Size"
145
- },
146
- {
147
- "token": "avatar-size-700",
148
- "context": "Size"
149
- },
12
+ "documentBlocks": [
150
13
  {
151
- "token": "avatar-size-800",
152
- "context": "Size"
14
+ "type": "purpose",
15
+ "content": "An avatar is a thumbnail representation of an entity, such as a user or an organization."
153
16
  },
154
17
  {
155
- "token": "avatar-size-900",
156
- "context": "Size"
18
+ "type": "guideline",
19
+ "content": "An avatar in a disabled state shows that an avatar exists, but is not available or a user is not active in that circumstance. This can be used to maintain layout continuity and communicate that an avatar may become available or active later."
157
20
  },
158
21
  {
159
- "token": "avatar-size-1000",
160
- "context": "Size"
22
+ "type": "guideline",
23
+ "content": "When used as an individual Avatar, showStroke is false by default. When used in Avatar group, showStroke is true by default to create separation between the stacked group of Avatar components."
161
24
  },
162
25
  {
163
- "token": "avatar-size-1100",
164
- "context": "Size"
26
+ "type": "guideline",
27
+ "content": "Avatar sizes scale exponentially, based on the Spectrum type scale. Avatar has preset sizes to flex across all surfaces and can also be customized to fit appropriately for your context."
165
28
  },
166
29
  {
167
- "token": "avatar-size-1200",
168
- "context": "Size"
30
+ "type": "guideline",
31
+ "content": "An avatar has multiple visual styles, depending on the user preference. These show up as branded gradient images, initials of the user’s name, as well as any image that a user uploads. For users who do not have Adobe accounts, they will default to the guest avatar."
169
32
  },
170
33
  {
171
- "token": "avatar-size-1300",
172
- "context": "Size"
34
+ "type": "guideline",
35
+ "content": "An avatar can be navigated using a keyboard. The keyboard focus state adds a blue ring to the avatar in focus."
173
36
  },
174
37
  {
175
- "token": "avatar-size-1400",
176
- "context": "Size"
38
+ "type": "guideline",
39
+ "content": "An avatar group displays a set of related avatars together. It’s typically used to represent a collection of people or entities."
177
40
  },
178
41
  {
179
- "token": "avatar-size-1500",
180
- "context": "Size"
42
+ "type": "guideline",
43
+ "content": "Use branded generic avatars when a user has not set their avatar image. These images are designed to be abstracted from all genders, locales, and cultures."
181
44
  },
182
45
  {
183
- "token": "avatar-border-thickness",
184
- "context": "Border"
46
+ "type": "guideline",
47
+ "content": "The initials avatar is designed to work with latin characters only and supports 1 or 2 characters that are programmatically identified by the first name and last name in a user’s account settings. For users with non-latin characters, their default avatar should be the gradient image style."
185
48
  },
186
49
  {
187
- "token": "focus-indicator-thickness",
188
- "context": "Focus indicator"
189
- },
190
- {
191
- "token": "focus-indicator-gap",
192
- "context": "Focus indicator"
193
- },
194
- {
195
- "token": "avatar-gradient-stop-1",
196
- "context": "0% "
197
- },
198
- {
199
- "token": "static-[color]-400",
200
- "context": "0% "
201
- },
202
- {
203
- "token": "avatar-gradient-stop-2",
204
- "context": "66% "
205
- },
206
- {
207
- "token": "static-[color]-600",
208
- "context": "66% "
209
- },
210
- {
211
- "token": "avatar-gradient-stop-3",
212
- "context": "100% "
213
- },
214
- {
215
- "token": "static-[color]-800",
216
- "context": "100% "
217
- },
218
- {
219
- "token": "gradient-angle",
220
- "context": "Top-left to bottom-right"
221
- },
222
- {
223
- "token": "default-font-family",
224
- "context": "Text (List view item)"
225
- },
226
- {
227
- "token": "extra-bold-font-weight",
228
- "context": "Text (List view item)"
229
- },
230
- {
231
- "token": "default-font-style",
232
- "context": "Text (List view item)"
50
+ "type": "guideline",
51
+ "content": "The guest avatar style is designed for users who may be interacting with Adobe products, but are not logged in or do not have an Adobe account."
52
+ }
53
+ ],
54
+ "options": {
55
+ "size": {
56
+ "type": "number",
57
+ "default": 500,
58
+ "values": [
59
+ { "value": 50 },
60
+ { "value": 75 },
61
+ { "value": 100 },
62
+ { "value": 200 },
63
+ { "value": 300 },
64
+ { "value": 400 },
65
+ { "value": 500 },
66
+ { "value": 600 },
67
+ { "value": 700 },
68
+ { "value": 800 },
69
+ { "value": 900 },
70
+ { "value": 1000 },
71
+ { "value": 1100 },
72
+ { "value": 1200 },
73
+ { "value": 1300 },
74
+ { "value": 1400 },
75
+ { "value": 1500 }
76
+ ]
233
77
  },
234
- {
235
- "token": "font-size-100",
236
- "context": "Text (List view item)"
78
+ "image": {
79
+ "type": "string",
80
+ "default": "user image",
81
+ "values": [
82
+ { "value": "user image" },
83
+ { "value": "gradient image" },
84
+ { "value": "gradient" },
85
+ { "value": "guest image" },
86
+ { "value": "initials" }
87
+ ]
237
88
  },
238
- {
239
- "token": "line-height-100",
240
- "context": "Text (List view item)"
241
- }
89
+ "isDisabled": { "type": "boolean", "default": false },
90
+ "showStroke": { "type": "boolean", "default": false }
91
+ },
92
+ "states": [
93
+ { "name": "down", "trigger": "interaction" },
94
+ { "name": "keyboard-focus", "trigger": "interaction" }
95
+ ],
96
+ "lifecycle": { "introduced": "1.0.0-draft" },
97
+ "tokenBindings": [
98
+ { "token": "avatar-size-50", "context": "Size" },
99
+ { "token": "avatar-size-75", "context": "Size" },
100
+ { "token": "avatar-size-100", "context": "Size" },
101
+ { "token": "avatar-size-200", "context": "Size" },
102
+ { "token": "avatar-size-300", "context": "Size" },
103
+ { "token": "avatar-size-400", "context": "Size" },
104
+ { "token": "avatar-size-500", "context": "Size" },
105
+ { "token": "avatar-size-600", "context": "Size" },
106
+ { "token": "avatar-size-700", "context": "Size" },
107
+ { "token": "avatar-size-800", "context": "Size" },
108
+ { "token": "avatar-size-900", "context": "Size" },
109
+ { "token": "avatar-size-1000", "context": "Size" },
110
+ { "token": "avatar-size-1100", "context": "Size" },
111
+ { "token": "avatar-size-1200", "context": "Size" },
112
+ { "token": "avatar-size-1300", "context": "Size" },
113
+ { "token": "avatar-size-1400", "context": "Size" },
114
+ { "token": "avatar-size-1500", "context": "Size" },
115
+ { "token": "avatar-border-thickness", "context": "Border" },
116
+ { "token": "focus-indicator-thickness", "context": "Focus indicator" },
117
+ { "token": "focus-indicator-gap", "context": "Focus indicator" },
118
+ { "token": "avatar-gradient-stop-1", "context": "0% " },
119
+ { "token": "static-[color]-400", "context": "0% " },
120
+ { "token": "avatar-gradient-stop-2", "context": "66% " },
121
+ { "token": "static-[color]-600", "context": "66% " },
122
+ { "token": "avatar-gradient-stop-3", "context": "100% " },
123
+ { "token": "static-[color]-800", "context": "100% " },
124
+ { "token": "gradient-angle", "context": "Top-left to bottom-right" },
125
+ { "token": "default-font-family", "context": "Text (List view item)" },
126
+ { "token": "extra-bold-font-weight", "context": "Text (List view item)" },
127
+ { "token": "default-font-style", "context": "Text (List view item)" },
128
+ { "token": "font-size-100", "context": "Text (List view item)" },
129
+ { "token": "line-height-100", "context": "Text (List view item)" }
242
130
  ],
243
- "accessibility": {
244
- "focusable": false
245
- }
131
+ "accessibility": { "focusable": false }
246
132
  }