@adobe/spectrum-design-data 0.0.1 → 0.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 (145) hide show
  1. package/LICENSE +201 -0
  2. package/components/accordion.json +557 -0
  3. package/components/action-bar.json +214 -0
  4. package/components/action-button.json +522 -0
  5. package/components/action-group.json +134 -0
  6. package/components/alert-banner.json +134 -0
  7. package/components/alert-dialog.json +180 -0
  8. package/components/avatar-group.json +166 -0
  9. package/components/avatar.json +246 -0
  10. package/components/badge.json +594 -0
  11. package/components/body.json +54 -0
  12. package/components/bottom-navigation-android.json +72 -0
  13. package/components/breadcrumbs.json +307 -0
  14. package/components/button-group.json +86 -0
  15. package/components/button.json +586 -0
  16. package/components/calendar.json +133 -0
  17. package/components/cards.json +541 -0
  18. package/components/checkbox-group.json +91 -0
  19. package/components/checkbox.json +339 -0
  20. package/components/close-button.json +208 -0
  21. package/components/coach-indicator.json +105 -0
  22. package/components/coach-mark.json +169 -0
  23. package/components/code.json +44 -0
  24. package/components/color-area.json +138 -0
  25. package/components/color-handle.json +111 -0
  26. package/components/color-loupe.json +77 -0
  27. package/components/color-slider.json +165 -0
  28. package/components/color-wheel.json +117 -0
  29. package/components/combo-box.json +543 -0
  30. package/components/contextual-help.json +230 -0
  31. package/components/date-picker.json +471 -0
  32. package/components/detail.json +53 -0
  33. package/components/divider.json +93 -0
  34. package/components/drop-zone.json +238 -0
  35. package/components/field-label.json +219 -0
  36. package/components/heading.json +68 -0
  37. package/components/help-text.json +209 -0
  38. package/components/illustrated-message.json +175 -0
  39. package/components/in-field-progress-button.json +88 -0
  40. package/components/in-field-progress-circle.json +116 -0
  41. package/components/in-line-alert.json +233 -0
  42. package/components/link.json +167 -0
  43. package/components/list-view.json +382 -0
  44. package/components/menu.json +597 -0
  45. package/components/meter.json +199 -0
  46. package/components/number-field.json +518 -0
  47. package/components/opacity-checkerboard.json +69 -0
  48. package/components/picker.json +579 -0
  49. package/components/popover.json +174 -0
  50. package/components/progress-bar.json +229 -0
  51. package/components/progress-circle.json +132 -0
  52. package/components/radio-button.json +308 -0
  53. package/components/radio-group.json +113 -0
  54. package/components/rating.json +168 -0
  55. package/components/scroll-zoom-bar.json +82 -0
  56. package/components/search-field.json +346 -0
  57. package/components/segmented-control.json +248 -0
  58. package/components/select-box.json +272 -0
  59. package/components/side-navigation.json +320 -0
  60. package/components/slider.json +407 -0
  61. package/components/standard-dialog.json +179 -0
  62. package/components/standard-panel.json +83 -0
  63. package/components/status-light.json +334 -0
  64. package/components/steplist.json +294 -0
  65. package/components/swatch-group.json +114 -0
  66. package/components/swatch.json +240 -0
  67. package/components/switch.json +336 -0
  68. package/components/tab-bar-ios.json +72 -0
  69. package/components/table.json +435 -0
  70. package/components/tabs.json +253 -0
  71. package/components/tag-field.json +243 -0
  72. package/components/tag-group.json +87 -0
  73. package/components/tag.json +393 -0
  74. package/components/takeover-dialog.json +117 -0
  75. package/components/text-area.json +555 -0
  76. package/components/text-field.json +555 -0
  77. package/components/thumbnail.json +149 -0
  78. package/components/title.json +91 -0
  79. package/components/toast.json +156 -0
  80. package/components/tooltip.json +179 -0
  81. package/components/tray.json +32 -0
  82. package/components/tree-view.json +393 -0
  83. package/fields/alignment.json +15 -0
  84. package/fields/anatomy.json +15 -0
  85. package/fields/color-scheme.json +15 -0
  86. package/fields/colorFamily.json +15 -0
  87. package/fields/component.json +15 -0
  88. package/fields/contrast.json +15 -0
  89. package/fields/density.json +15 -0
  90. package/fields/easing.json +15 -0
  91. package/fields/family.json +15 -0
  92. package/fields/motionRole.json +15 -0
  93. package/fields/object.json +15 -0
  94. package/fields/orientation.json +15 -0
  95. package/fields/position.json +15 -0
  96. package/fields/property.json +15 -0
  97. package/fields/scale.json +15 -0
  98. package/fields/scaleIndex.json +15 -0
  99. package/fields/shape.json +15 -0
  100. package/fields/size.json +15 -0
  101. package/fields/state.json +15 -0
  102. package/fields/structure.json +15 -0
  103. package/fields/style.json +15 -0
  104. package/fields/substructure.json +15 -0
  105. package/fields/variant.json +15 -0
  106. package/fields/weight.json +15 -0
  107. package/mode-sets/color-scheme.json +8 -0
  108. package/mode-sets/contrast.json +8 -0
  109. package/mode-sets/scale.json +8 -0
  110. package/package.json +42 -3
  111. package/registry/alignments.json +22 -0
  112. package/registry/anatomy-terms.json +739 -0
  113. package/registry/categories.json +55 -0
  114. package/registry/color-families.json +177 -0
  115. package/registry/components.json +277 -0
  116. package/registry/densities.json +17 -0
  117. package/registry/easing-curves.json +42 -0
  118. package/registry/glossary.json +181 -0
  119. package/registry/motion-roles.json +32 -0
  120. package/registry/navigation-terms.json +241 -0
  121. package/registry/orientations.json +17 -0
  122. package/registry/platform-extensions/ios-states.json +59 -0
  123. package/registry/platform-extensions/web-components-states.json +58 -0
  124. package/registry/platforms.json +37 -0
  125. package/registry/positions.json +32 -0
  126. package/registry/property-terms.json +212 -0
  127. package/registry/scale-values.json +126 -0
  128. package/registry/shapes.json +12 -0
  129. package/registry/sizes.json +71 -0
  130. package/registry/states.json +184 -0
  131. package/registry/structures.json +57 -0
  132. package/registry/substructures.json +12 -0
  133. package/registry/token-objects.json +32 -0
  134. package/registry/token-terminology.json +925 -0
  135. package/registry/typography-families.json +27 -0
  136. package/registry/typography-styles.json +22 -0
  137. package/registry/typography-weights.json +37 -0
  138. package/registry/variants.json +282 -0
  139. package/tokens/color-aliases.tokens.json +332 -328
  140. package/tokens/color-component.tokens.json +74 -74
  141. package/tokens/icons.tokens.json +191 -191
  142. package/tokens/layout-component.tokens.json +373 -316
  143. package/tokens/layout.tokens.json +110 -98
  144. package/tokens/semantic-color-palette.tokens.json +104 -104
  145. package/tokens/typography.tokens.json +233 -233
@@ -0,0 +1,233 @@
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-line-alert.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "in-line-alert",
6
+ "displayName": "In-line alert",
7
+ "description": "In-line alerts display a non-modal message associated with objects in a view. These are often used in form validation, providing a place to aggregate feedback related to multiple fields.",
8
+ "meta": {
9
+ "category": "feedback",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/in-line-alert/"
11
+ },
12
+ "options": {
13
+ "variant": {
14
+ "type": "string",
15
+ "default": "neutral",
16
+ "values": [
17
+ {
18
+ "value": "neutral"
19
+ },
20
+ {
21
+ "value": "informative"
22
+ },
23
+ {
24
+ "value": "positive"
25
+ },
26
+ {
27
+ "value": "notice"
28
+ },
29
+ {
30
+ "value": "negative"
31
+ },
32
+ {
33
+ "value": "accent"
34
+ }
35
+ ]
36
+ },
37
+ "style": {
38
+ "type": "string",
39
+ "default": "outline",
40
+ "description": "The visual style of the alert.",
41
+ "values": [
42
+ {
43
+ "value": "bold"
44
+ },
45
+ {
46
+ "value": "subtle"
47
+ },
48
+ {
49
+ "value": "outline"
50
+ }
51
+ ]
52
+ },
53
+ "href": {
54
+ "type": "string",
55
+ "description": "Optional URL within in-line alert content like a 'Learn more' link."
56
+ },
57
+ "heading": {
58
+ "type": "string",
59
+ "description": "Optional heading text displayed at the top of the alert."
60
+ },
61
+ "actionLabel": {
62
+ "type": "string",
63
+ "description": "If undefined, this button does not appear."
64
+ }
65
+ },
66
+ "lifecycle": {
67
+ "introduced": "1.0.0-draft"
68
+ },
69
+ "tokenBindings": [
70
+ {
71
+ "token": "border-width-200",
72
+ "context": "Border "
73
+ },
74
+ {
75
+ "token": "corner-radius-700",
76
+ "context": "Rounding"
77
+ },
78
+ {
79
+ "token": "workflow-icon-size-100",
80
+ "context": "Icon"
81
+ },
82
+ {
83
+ "token": "in-line-alert-minimum-width",
84
+ "context": "Minimum width"
85
+ },
86
+ {
87
+ "token": "spacing-300",
88
+ "context": "Spacing (Top/Bottom/Start/End edge to Content)"
89
+ },
90
+ {
91
+ "token": "spacing-100",
92
+ "context": "Spacing (Title to Description) "
93
+ },
94
+ {
95
+ "token": "spacing-200",
96
+ "context": "Spacing (Description to Link, Description to Button, Link to Button) "
97
+ },
98
+ {
99
+ "token": "component-height-50",
100
+ "context": "Minimum title area height"
101
+ },
102
+ {
103
+ "token": "heading-color",
104
+ "context": "Title and Description (Border fill)"
105
+ },
106
+ {
107
+ "token": "body-color",
108
+ "context": "Title and Description (Border fill)"
109
+ },
110
+ {
111
+ "token": "background-layer-2-color",
112
+ "context": "Background (Border fill)"
113
+ },
114
+ {
115
+ "token": "informative-visual-color",
116
+ "context": "Border and Icon (Border fill, Informative)"
117
+ },
118
+ {
119
+ "token": "positive-visual-color",
120
+ "context": "Border and Icon (Border fill, Positive)"
121
+ },
122
+ {
123
+ "token": "notice-visual-color",
124
+ "context": "Border and Icon (Border fill, Notice)"
125
+ },
126
+ {
127
+ "token": "negative-visual-color",
128
+ "context": "Border and Icon (Border fill, Negative)"
129
+ },
130
+ {
131
+ "token": "neutral-visual-color",
132
+ "context": "Border (Border fill, Neutral)"
133
+ },
134
+ {
135
+ "token": "informative-subtle-background-color-default",
136
+ "context": "Background and Icon (Subtle fill, Informative)"
137
+ },
138
+ {
139
+ "token": "positive-subtle-background-color-default",
140
+ "context": "Background and Icon (Subtle fill, Positive)"
141
+ },
142
+ {
143
+ "token": "notice-subtle-background-color-default",
144
+ "context": "Background and Icon (Subtle fill, Notice)"
145
+ },
146
+ {
147
+ "token": "negative-subtle-background-color-default",
148
+ "context": "Background and Icon (Subtle fill, Negative)"
149
+ },
150
+ {
151
+ "token": "neutral-subtle-background-color-default",
152
+ "context": "Background and Icon (Subtle fill, Neutral)"
153
+ },
154
+ {
155
+ "token": "white",
156
+ "context": "Title and Description (Bold fill)"
157
+ },
158
+ {
159
+ "token": "black",
160
+ "context": "Title and Description (Bold fill, Notice)"
161
+ },
162
+ {
163
+ "token": "informative-background-color-default",
164
+ "context": "Background (Bold fill, Informative)"
165
+ },
166
+ {
167
+ "token": "positive-background-color-default",
168
+ "context": "Background (Bold fill, Positive)"
169
+ },
170
+ {
171
+ "token": "notice-background-color-default",
172
+ "context": "Background (Bold fill, Notice)"
173
+ },
174
+ {
175
+ "token": "negative-background-color-default",
176
+ "context": "Background (Bold fill, Negative)"
177
+ },
178
+ {
179
+ "token": "neutral-subdued-background-color-default",
180
+ "context": "Background (Bold fill, Neutral)"
181
+ },
182
+ {
183
+ "token": "heading-sans-serif-font-family",
184
+ "context": "Title and Description"
185
+ },
186
+ {
187
+ "token": "heading-sans-serif-font-weight",
188
+ "context": "Title and Description"
189
+ },
190
+ {
191
+ "token": "heading-sans-serif-font-style",
192
+ "context": "Title and Description"
193
+ },
194
+ {
195
+ "token": "heading-size-xxs",
196
+ "context": "Title and Description"
197
+ },
198
+ {
199
+ "token": "heading-line-height",
200
+ "context": "Title and Description"
201
+ },
202
+ {
203
+ "token": "body-sans-serif-font-family",
204
+ "context": "Title and Description"
205
+ },
206
+ {
207
+ "token": "body-sans-serif-font-weight",
208
+ "context": "Title and Description"
209
+ },
210
+ {
211
+ "token": "body-sans-serif-font-style",
212
+ "context": "Title and Description"
213
+ },
214
+ {
215
+ "token": "body-size-s",
216
+ "context": "Title and Description"
217
+ },
218
+ {
219
+ "token": "body-line-height",
220
+ "context": "Title and Description"
221
+ }
222
+ ],
223
+ "accessibility": {
224
+ "focusable": false,
225
+ "wcag": [
226
+ {
227
+ "criterion": "4.1.3",
228
+ "level": "AA",
229
+ "title": "Status Messages"
230
+ }
231
+ ]
232
+ }
233
+ }
@@ -0,0 +1,167 @@
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/link.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "link",
6
+ "displayName": "Link",
7
+ "description": "Links allow users to navigate to a different location. They can be presented inside a paragraph or as standalone text.",
8
+ "meta": {
9
+ "category": "actions",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/link/"
11
+ },
12
+ "options": {
13
+ "variant": {
14
+ "type": "string",
15
+ "default": "primary",
16
+ "values": [
17
+ {
18
+ "value": "primary"
19
+ },
20
+ {
21
+ "value": "secondary"
22
+ }
23
+ ]
24
+ },
25
+ "isQuiet": {
26
+ "type": "boolean",
27
+ "default": false
28
+ },
29
+ "staticColor": {
30
+ "type": "string",
31
+ "description": "Static color must not be set for the default version of this component.",
32
+ "values": [
33
+ {
34
+ "value": "white"
35
+ },
36
+ {
37
+ "value": "black"
38
+ }
39
+ ]
40
+ }
41
+ },
42
+ "states": [
43
+ {
44
+ "name": "hover",
45
+ "trigger": "interaction"
46
+ },
47
+ {
48
+ "name": "down",
49
+ "trigger": "interaction"
50
+ },
51
+ {
52
+ "name": "keyboard-focus",
53
+ "trigger": "interaction"
54
+ }
55
+ ],
56
+ "lifecycle": {
57
+ "introduced": "1.0.0-draft"
58
+ },
59
+ "tokenBindings": [
60
+ {
61
+ "token": "accent-content-color-default",
62
+ "context": "Text (primary)"
63
+ },
64
+ {
65
+ "token": "accent-content-color-hover",
66
+ "context": "Text (primary)"
67
+ },
68
+ {
69
+ "token": "accent-content-color-down",
70
+ "context": "Text (primary)"
71
+ },
72
+ {
73
+ "token": "accent-content-color-key-focus",
74
+ "context": "Text (primary)"
75
+ },
76
+ {
77
+ "token": "neutral-content-color-default",
78
+ "context": "Text (secondary)"
79
+ },
80
+ {
81
+ "token": "neutral-content-color-hover",
82
+ "context": "Text (secondary)"
83
+ },
84
+ {
85
+ "token": "neutral-content-color-down",
86
+ "context": "Text (secondary)"
87
+ },
88
+ {
89
+ "token": "neutral-content-color-key-focus",
90
+ "context": "Text (secondary)"
91
+ },
92
+ {
93
+ "token": "white",
94
+ "context": "Text (white)"
95
+ },
96
+ {
97
+ "token": "black",
98
+ "context": "Text (black)"
99
+ },
100
+ {
101
+ "token": "default-font-family",
102
+ "context": "Standalone variant, Default style"
103
+ },
104
+ {
105
+ "token": "medium-font-weight",
106
+ "context": "Standalone variant, Default style"
107
+ },
108
+ {
109
+ "token": "default-font-style",
110
+ "context": "Standalone variant, Default style"
111
+ },
112
+ {
113
+ "token": "font-size-100",
114
+ "context": "Standalone variant, Default style"
115
+ },
116
+ {
117
+ "token": "line-height-100",
118
+ "context": "Standalone variant, Default style"
119
+ },
120
+ {
121
+ "token": "cjk-line-height-100",
122
+ "context": "Standalone variant, Default style"
123
+ },
124
+ {
125
+ "token": "text-underline-gap",
126
+ "context": "Standalone variant, Default style"
127
+ },
128
+ {
129
+ "token": "text-underline-thickness",
130
+ "context": "Standalone variant, Default style"
131
+ },
132
+ {
133
+ "token": "regular-font-weight",
134
+ "context": "Inline variant, Default style"
135
+ },
136
+ {
137
+ "token": "focus-indicator-color",
138
+ "context": "Focus ring"
139
+ },
140
+ {
141
+ "token": "focus-indicator-thickness",
142
+ "context": "Focus ring"
143
+ },
144
+ {
145
+ "token": "focus-indicator-gap",
146
+ "context": "Focus ring"
147
+ }
148
+ ],
149
+ "accessibility": {
150
+ "role": "link",
151
+ "intents": ["navigate"],
152
+ "focusable": true,
153
+ "keyboardIntents": ["activate"],
154
+ "wcag": [
155
+ {
156
+ "criterion": "2.1.1",
157
+ "level": "A",
158
+ "title": "Keyboard"
159
+ },
160
+ {
161
+ "criterion": "4.1.2",
162
+ "level": "A",
163
+ "title": "Name, Role, Value"
164
+ }
165
+ ]
166
+ }
167
+ }