@adobe/spectrum-design-data 0.1.0 → 0.3.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 (144) hide show
  1. package/components/accordion.json +557 -0
  2. package/components/action-bar.json +214 -0
  3. package/components/action-button.json +522 -0
  4. package/components/action-group.json +134 -0
  5. package/components/alert-banner.json +134 -0
  6. package/components/alert-dialog.json +180 -0
  7. package/components/avatar-group.json +166 -0
  8. package/components/avatar.json +246 -0
  9. package/components/badge.json +594 -0
  10. package/components/body.json +54 -0
  11. package/components/bottom-navigation-android.json +72 -0
  12. package/components/breadcrumbs.json +307 -0
  13. package/components/button-group.json +86 -0
  14. package/components/button.json +586 -0
  15. package/components/calendar.json +133 -0
  16. package/components/cards.json +541 -0
  17. package/components/checkbox-group.json +91 -0
  18. package/components/checkbox.json +339 -0
  19. package/components/close-button.json +208 -0
  20. package/components/coach-indicator.json +105 -0
  21. package/components/coach-mark.json +169 -0
  22. package/components/code.json +44 -0
  23. package/components/color-area.json +138 -0
  24. package/components/color-handle.json +111 -0
  25. package/components/color-loupe.json +77 -0
  26. package/components/color-slider.json +165 -0
  27. package/components/color-wheel.json +117 -0
  28. package/components/combo-box.json +543 -0
  29. package/components/contextual-help.json +230 -0
  30. package/components/date-picker.json +471 -0
  31. package/components/detail.json +53 -0
  32. package/components/divider.json +93 -0
  33. package/components/drop-zone.json +238 -0
  34. package/components/field-label.json +219 -0
  35. package/components/heading.json +68 -0
  36. package/components/help-text.json +209 -0
  37. package/components/illustrated-message.json +175 -0
  38. package/components/in-field-progress-button.json +88 -0
  39. package/components/in-field-progress-circle.json +116 -0
  40. package/components/in-line-alert.json +233 -0
  41. package/components/link.json +167 -0
  42. package/components/list-view.json +382 -0
  43. package/components/menu.json +597 -0
  44. package/components/meter.json +199 -0
  45. package/components/number-field.json +518 -0
  46. package/components/opacity-checkerboard.json +69 -0
  47. package/components/picker.json +579 -0
  48. package/components/popover.json +174 -0
  49. package/components/progress-bar.json +229 -0
  50. package/components/progress-circle.json +132 -0
  51. package/components/radio-button.json +308 -0
  52. package/components/radio-group.json +113 -0
  53. package/components/rating.json +168 -0
  54. package/components/scroll-zoom-bar.json +82 -0
  55. package/components/search-field.json +346 -0
  56. package/components/segmented-control.json +248 -0
  57. package/components/select-box.json +272 -0
  58. package/components/side-navigation.json +320 -0
  59. package/components/slider.json +407 -0
  60. package/components/standard-dialog.json +179 -0
  61. package/components/standard-panel.json +83 -0
  62. package/components/status-light.json +334 -0
  63. package/components/steplist.json +294 -0
  64. package/components/swatch-group.json +114 -0
  65. package/components/swatch.json +240 -0
  66. package/components/switch.json +336 -0
  67. package/components/tab-bar-ios.json +72 -0
  68. package/components/table.json +435 -0
  69. package/components/tabs.json +253 -0
  70. package/components/tag-field.json +243 -0
  71. package/components/tag-group.json +87 -0
  72. package/components/tag.json +393 -0
  73. package/components/takeover-dialog.json +117 -0
  74. package/components/text-area.json +555 -0
  75. package/components/text-field.json +555 -0
  76. package/components/thumbnail.json +149 -0
  77. package/components/title.json +91 -0
  78. package/components/toast.json +156 -0
  79. package/components/tooltip.json +179 -0
  80. package/components/tray.json +32 -0
  81. package/components/tree-view.json +393 -0
  82. package/fields/alignment.json +15 -0
  83. package/fields/anatomy.json +15 -0
  84. package/fields/color-scheme.json +15 -0
  85. package/fields/colorFamily.json +15 -0
  86. package/fields/component.json +15 -0
  87. package/fields/contrast.json +15 -0
  88. package/fields/density.json +15 -0
  89. package/fields/easing.json +15 -0
  90. package/fields/family.json +15 -0
  91. package/fields/motionRole.json +15 -0
  92. package/fields/object.json +15 -0
  93. package/fields/orientation.json +15 -0
  94. package/fields/position.json +15 -0
  95. package/fields/property.json +15 -0
  96. package/fields/scale.json +15 -0
  97. package/fields/scaleIndex.json +15 -0
  98. package/fields/shape.json +15 -0
  99. package/fields/size.json +15 -0
  100. package/fields/state.json +15 -0
  101. package/fields/structure.json +15 -0
  102. package/fields/style.json +15 -0
  103. package/fields/substructure.json +15 -0
  104. package/fields/variant.json +15 -0
  105. package/fields/weight.json +15 -0
  106. package/mode-sets/color-scheme.json +8 -0
  107. package/mode-sets/contrast.json +8 -0
  108. package/mode-sets/scale.json +8 -0
  109. package/package.json +41 -2
  110. package/registry/alignments.json +22 -0
  111. package/registry/anatomy-terms.json +739 -0
  112. package/registry/categories.json +55 -0
  113. package/registry/color-families.json +177 -0
  114. package/registry/components.json +277 -0
  115. package/registry/densities.json +17 -0
  116. package/registry/easing-curves.json +42 -0
  117. package/registry/glossary.json +181 -0
  118. package/registry/motion-roles.json +32 -0
  119. package/registry/navigation-terms.json +241 -0
  120. package/registry/orientations.json +17 -0
  121. package/registry/platform-extensions/ios-states.json +59 -0
  122. package/registry/platform-extensions/web-components-states.json +58 -0
  123. package/registry/platforms.json +37 -0
  124. package/registry/positions.json +32 -0
  125. package/registry/property-terms.json +212 -0
  126. package/registry/scale-values.json +133 -0
  127. package/registry/shapes.json +12 -0
  128. package/registry/sizes.json +71 -0
  129. package/registry/states.json +184 -0
  130. package/registry/structures.json +57 -0
  131. package/registry/substructures.json +12 -0
  132. package/registry/token-objects.json +32 -0
  133. package/registry/token-terminology.json +925 -0
  134. package/registry/typography-families.json +27 -0
  135. package/registry/typography-styles.json +22 -0
  136. package/registry/typography-weights.json +37 -0
  137. package/registry/variants.json +282 -0
  138. package/tokens/color-aliases.tokens.json +332 -328
  139. package/tokens/color-component.tokens.json +74 -74
  140. package/tokens/icons.tokens.json +191 -191
  141. package/tokens/layout-component.tokens.json +373 -316
  142. package/tokens/layout.tokens.json +110 -98
  143. package/tokens/semantic-color-palette.tokens.json +104 -104
  144. package/tokens/typography.tokens.json +379 -305
@@ -0,0 +1,209 @@
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/help-text.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "help-text",
6
+ "displayName": "Help text",
7
+ "description": "Help text provides either an informative description or an error message that gives more context about what a user needs to input. It’s commonly used in forms.",
8
+ "meta": {
9
+ "category": "inputs",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/help-text/"
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": "negative"
25
+ }
26
+ ]
27
+ },
28
+ "hideIcon": {
29
+ "type": "boolean",
30
+ "default": false,
31
+ "description": "Only applicable if variant is negative."
32
+ },
33
+ "size": {
34
+ "type": "string",
35
+ "default": "m",
36
+ "values": [
37
+ {
38
+ "value": "s"
39
+ },
40
+ {
41
+ "value": "m"
42
+ },
43
+ {
44
+ "value": "l"
45
+ },
46
+ {
47
+ "value": "xl"
48
+ }
49
+ ]
50
+ },
51
+ "isDisabled": {
52
+ "type": "boolean",
53
+ "default": false,
54
+ "description": "Help text cannot be both disabled and negative variant."
55
+ }
56
+ },
57
+ "lifecycle": {
58
+ "introduced": "1.0.0-draft"
59
+ },
60
+ "tokenBindings": [
61
+ {
62
+ "token": "component-height-75",
63
+ "context": "Minimum Height"
64
+ },
65
+ {
66
+ "token": "component-height-100",
67
+ "context": "Minimum Height"
68
+ },
69
+ {
70
+ "token": "component-height-200",
71
+ "context": "Minimum Height"
72
+ },
73
+ {
74
+ "token": "component-height-300",
75
+ "context": "Minimum Height"
76
+ },
77
+ {
78
+ "token": "workflow-icon-size-75",
79
+ "context": "Icon size"
80
+ },
81
+ {
82
+ "token": "workflow-icon-size-100",
83
+ "context": "Icon size"
84
+ },
85
+ {
86
+ "token": "workflow-icon-size-200",
87
+ "context": "Icon size"
88
+ },
89
+ {
90
+ "token": "workflow-icon-size-300",
91
+ "context": "Icon size"
92
+ },
93
+ {
94
+ "token": "text-to-visual-75",
95
+ "context": "Spacing (alert icon to text)"
96
+ },
97
+ {
98
+ "token": "text-to-visual-100",
99
+ "context": "Spacing (alert icon to text)"
100
+ },
101
+ {
102
+ "token": "text-to-visual-200",
103
+ "context": "Spacing (alert icon to text)"
104
+ },
105
+ {
106
+ "token": "text-to-visual-300",
107
+ "context": "Spacing (alert icon to text)"
108
+ },
109
+ {
110
+ "token": "component-top-to-workflow-icon-75",
111
+ "context": "Spacing (top/bottom edge to icon)"
112
+ },
113
+ {
114
+ "token": "component-top-to-workflow-icon-100",
115
+ "context": "Spacing (top/bottom edge to icon)"
116
+ },
117
+ {
118
+ "token": "component-top-to-workflow-icon-200",
119
+ "context": "Spacing (top/bottom edge to icon)"
120
+ },
121
+ {
122
+ "token": "component-top-to-workflow-icon-300",
123
+ "context": "Spacing (top/bottom edge to icon)"
124
+ },
125
+ {
126
+ "token": "component-top-to-text-75",
127
+ "context": "Spacing (top/bottom edge to text)"
128
+ },
129
+ {
130
+ "token": "component-top-to-text-100",
131
+ "context": "Spacing (top/bottom edge to text)"
132
+ },
133
+ {
134
+ "token": "component-top-to-text-200",
135
+ "context": "Spacing (top/bottom edge to text)"
136
+ },
137
+ {
138
+ "token": "component-top-to-text-300",
139
+ "context": "Spacing (top/bottom edge to text)"
140
+ },
141
+ {
142
+ "token": "component-bottom-to-text-75",
143
+ "context": "Spacing (top/bottom edge to text)"
144
+ },
145
+ {
146
+ "token": "component-bottom-to-text-100",
147
+ "context": "Spacing (top/bottom edge to text)"
148
+ },
149
+ {
150
+ "token": "component-bottom-to-text-200",
151
+ "context": "Spacing (top/bottom edge to text)"
152
+ },
153
+ {
154
+ "token": "component-bottom-to-text-300",
155
+ "context": "Spacing (top/bottom edge to text)"
156
+ },
157
+ {
158
+ "token": "neutral-subdued-content-color-default",
159
+ "context": "Text"
160
+ },
161
+ {
162
+ "token": "disabled-content-color-default",
163
+ "context": "Text and alert icon (disabled)"
164
+ },
165
+ {
166
+ "token": "negative-content-color-default",
167
+ "context": "Text and alert icon (warning)"
168
+ },
169
+ {
170
+ "token": "default-font-family",
171
+ "context": "Text"
172
+ },
173
+ {
174
+ "token": "regular-font-weight",
175
+ "context": "Text"
176
+ },
177
+ {
178
+ "token": "default-font-style",
179
+ "context": "Text"
180
+ },
181
+ {
182
+ "token": "font-size-75",
183
+ "context": "Text"
184
+ },
185
+ {
186
+ "token": "font-size-100",
187
+ "context": "Text"
188
+ },
189
+ {
190
+ "token": "font-size-200",
191
+ "context": "Text"
192
+ },
193
+ {
194
+ "token": "font-size-300",
195
+ "context": "Text"
196
+ },
197
+ {
198
+ "token": "line-height-100",
199
+ "context": "Text"
200
+ },
201
+ {
202
+ "token": "cjk-line-height-100",
203
+ "context": "Text"
204
+ }
205
+ ],
206
+ "accessibility": {
207
+ "focusable": false
208
+ }
209
+ }
@@ -0,0 +1,175 @@
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/illustrated-message.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "illustrated-message",
6
+ "displayName": "Illustrated message",
7
+ "description": "An illustrated message displays an illustration with a short title and description, often used for empty states or error states.",
8
+ "meta": {
9
+ "category": "feedback",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/illustrated-message/"
11
+ },
12
+ "options": {
13
+ "illustration": {
14
+ "type": "string",
15
+ "description": "Optional illustration or icon displayed above the message."
16
+ },
17
+ "size": {
18
+ "type": "string",
19
+ "default": "m",
20
+ "description": "Size of the illustration.",
21
+ "values": [
22
+ {
23
+ "value": "s"
24
+ },
25
+ {
26
+ "value": "m"
27
+ },
28
+ {
29
+ "value": "l"
30
+ }
31
+ ]
32
+ },
33
+ "orientation": {
34
+ "type": "string",
35
+ "default": "vertical",
36
+ "description": "Orientation of the illustrated message.",
37
+ "values": [
38
+ {
39
+ "value": "vertical"
40
+ },
41
+ {
42
+ "value": "horizontal"
43
+ }
44
+ ]
45
+ },
46
+ "title": {
47
+ "type": "string",
48
+ "description": "Primary heading text of the message."
49
+ },
50
+ "description": {
51
+ "type": "string",
52
+ "description": "Secondary descriptive text providing context or instructions."
53
+ },
54
+ "primaryActionLabel": {
55
+ "type": "string",
56
+ "description": "Label for the primary action button. If undefined, no primary action is shown."
57
+ },
58
+ "secondaryActionLabel": {
59
+ "type": "string",
60
+ "description": "Label for the secondary action button. If undefined, no secondary action is shown."
61
+ }
62
+ },
63
+ "lifecycle": {
64
+ "introduced": "1.0.0-draft"
65
+ },
66
+ "tokenBindings": [
67
+ {
68
+ "token": "illustrated-message-vertical-maximum-width",
69
+ "context": "Maximum width (Vertical variant)"
70
+ },
71
+ {
72
+ "token": "illustrated-message-horizontal-maximum-width",
73
+ "context": "Maximum width (Horizontal variant)"
74
+ },
75
+ {
76
+ "token": "spacing-200",
77
+ "context": "Spacing (Illustration to heading)"
78
+ },
79
+ {
80
+ "token": "spacing-100",
81
+ "context": "Spacing (Illustration to heading)"
82
+ },
83
+ {
84
+ "token": "spacing-75",
85
+ "context": "Spacing (Heading to description - vertical)"
86
+ },
87
+ {
88
+ "token": "spacing-300",
89
+ "context": "Spacing (Description to action - vertical)"
90
+ },
91
+ {
92
+ "token": "title-sans-serif-font-family",
93
+ "context": "Title"
94
+ },
95
+ {
96
+ "token": "title-sans-serif-font-weight",
97
+ "context": "Title"
98
+ },
99
+ {
100
+ "token": "title-sans-serif-font-style",
101
+ "context": "Title"
102
+ },
103
+ {
104
+ "token": "title-line-height",
105
+ "context": "Title"
106
+ },
107
+ {
108
+ "token": "illustrated-message-small-title-font-size",
109
+ "context": "Title"
110
+ },
111
+ {
112
+ "token": "illustrated-message-small-cjk-title-font-size",
113
+ "context": "Title"
114
+ },
115
+ {
116
+ "token": "illustrated-message-medium-title-font-size",
117
+ "context": "Title"
118
+ },
119
+ {
120
+ "token": "illustrated-message-medium-cjk-title-font-size",
121
+ "context": "Title"
122
+ },
123
+ {
124
+ "token": "illustrated-message-large-title-font-size",
125
+ "context": "Title"
126
+ },
127
+ {
128
+ "token": "illustrated-message-large-cjk-title-font-size",
129
+ "context": "Title"
130
+ },
131
+ {
132
+ "token": "body-sans-serif-font-family",
133
+ "context": "Description"
134
+ },
135
+ {
136
+ "token": "body-sans-serif-font-weight",
137
+ "context": "Description"
138
+ },
139
+ {
140
+ "token": "body-sans-serif-font-style",
141
+ "context": "Description"
142
+ },
143
+ {
144
+ "token": "line-height-200",
145
+ "context": "Description"
146
+ },
147
+ {
148
+ "token": "illustrated-message-small-body-font-size",
149
+ "context": "Description"
150
+ },
151
+ {
152
+ "token": "illustrated-message-medium-body-font-size",
153
+ "context": "Description"
154
+ },
155
+ {
156
+ "token": "illustrated-message-large-body-font-size",
157
+ "context": "Description"
158
+ },
159
+ {
160
+ "token": "neutral-content-color-default",
161
+ "context": "Illustration color"
162
+ },
163
+ {
164
+ "token": "heading-color",
165
+ "context": "Heading color"
166
+ },
167
+ {
168
+ "token": "body-color",
169
+ "context": "Description color"
170
+ }
171
+ ],
172
+ "accessibility": {
173
+ "focusable": false
174
+ }
175
+ }
@@ -0,0 +1,88 @@
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/in-field-progress-button.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "in-field-progress-button",
6
+ "displayName": "In field progress button",
7
+ "description": "In field progress buttons provide interactive controls within form fields for actions like clearing, adding, or disclosing additional content.",
8
+ "meta": {
9
+ "category": "actions",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/in-field-progress-button/"
11
+ },
12
+ "options": {
13
+ "size": {
14
+ "type": "string",
15
+ "default": "m",
16
+ "values": [
17
+ {
18
+ "value": "s"
19
+ },
20
+ {
21
+ "value": "m"
22
+ },
23
+ {
24
+ "value": "l"
25
+ },
26
+ {
27
+ "value": "xl"
28
+ }
29
+ ]
30
+ },
31
+ "style": {
32
+ "type": "string",
33
+ "values": [
34
+ {
35
+ "value": "disclosure"
36
+ },
37
+ {
38
+ "value": "clear"
39
+ },
40
+ {
41
+ "value": "dash"
42
+ },
43
+ {
44
+ "value": "add"
45
+ }
46
+ ]
47
+ },
48
+ "isQuiet": {
49
+ "type": "boolean",
50
+ "default": false
51
+ }
52
+ },
53
+ "states": [
54
+ {
55
+ "name": "hover",
56
+ "trigger": "interaction"
57
+ },
58
+ {
59
+ "name": "down",
60
+ "trigger": "interaction"
61
+ },
62
+ {
63
+ "name": "keyboard-focus",
64
+ "trigger": "interaction"
65
+ }
66
+ ],
67
+ "lifecycle": {
68
+ "introduced": "1.0.0-draft"
69
+ },
70
+ "accessibility": {
71
+ "role": "button",
72
+ "intents": ["trigger"],
73
+ "focusable": true,
74
+ "keyboardIntents": ["activate"],
75
+ "wcag": [
76
+ {
77
+ "criterion": "2.1.1",
78
+ "level": "A",
79
+ "title": "Keyboard"
80
+ },
81
+ {
82
+ "criterion": "4.1.2",
83
+ "level": "A",
84
+ "title": "Name, Role, Value"
85
+ }
86
+ ]
87
+ }
88
+ }
@@ -0,0 +1,116 @@
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/in-field-progress-circle.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "in-field-progress-circle",
6
+ "displayName": "In field progress circle",
7
+ "description": "In field progress circles indicate progress for loading states within form fields and input areas.",
8
+ "meta": {
9
+ "category": "feedback",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/in-field-progress-circle/"
11
+ },
12
+ "options": {
13
+ "size": {
14
+ "type": "string",
15
+ "default": "m",
16
+ "values": [
17
+ {
18
+ "value": "s"
19
+ },
20
+ {
21
+ "value": "m"
22
+ },
23
+ {
24
+ "value": "l"
25
+ },
26
+ {
27
+ "value": "xl"
28
+ }
29
+ ]
30
+ },
31
+ "staticColor": {
32
+ "type": "string",
33
+ "values": [
34
+ {
35
+ "value": "white"
36
+ },
37
+ {
38
+ "value": "black"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ "lifecycle": {
44
+ "introduced": "1.0.0-draft"
45
+ },
46
+ "tokenBindings": [
47
+ {
48
+ "token": "in-field-progress-circle-size-75",
49
+ "context": "Height"
50
+ },
51
+ {
52
+ "token": "in-field-progress-circle-size-100",
53
+ "context": "Height"
54
+ },
55
+ {
56
+ "token": "in-field-progress-circle-size-200",
57
+ "context": "Height"
58
+ },
59
+ {
60
+ "token": "in-field-progress-circle-size-300",
61
+ "context": "Height"
62
+ },
63
+ {
64
+ "token": "gray-300",
65
+ "context": "Track and fill"
66
+ },
67
+ {
68
+ "token": "accent-content-color-default",
69
+ "context": "Track and fill"
70
+ },
71
+ {
72
+ "token": "transparent-white-300",
73
+ "context": "Track and fill (static white)"
74
+ },
75
+ {
76
+ "token": "transparent-white-900",
77
+ "context": "Track and fill (static white)"
78
+ },
79
+ {
80
+ "token": "transparent-black-300",
81
+ "context": "Track and fill (static black)"
82
+ },
83
+ {
84
+ "token": "transparent-black-900",
85
+ "context": "Track and fill (static black)"
86
+ },
87
+ {
88
+ "token": "progress-circle-thickness-small",
89
+ "context": "S1 Thickness"
90
+ },
91
+ {
92
+ "token": "progress-circle-thickness-medium",
93
+ "context": "S1 Thickness"
94
+ },
95
+ {
96
+ "token": "progress-circle-thickness-large",
97
+ "context": "S1 Thickness"
98
+ }
99
+ ],
100
+ "accessibility": {
101
+ "role": "progressbar",
102
+ "focusable": false,
103
+ "wcag": [
104
+ {
105
+ "criterion": "4.1.2",
106
+ "level": "A",
107
+ "title": "Name, Role, Value"
108
+ },
109
+ {
110
+ "criterion": "4.1.3",
111
+ "level": "AA",
112
+ "title": "Status Messages"
113
+ }
114
+ ]
115
+ }
116
+ }