@adobe/spectrum-design-data 0.1.0 → 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 (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 +126 -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 +233 -233
@@ -0,0 +1,91 @@
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/title.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "title",
6
+ "displayName": "Title",
7
+ "description": "Title is a typography component used for large, prominent headings and display text.",
8
+ "meta": {
9
+ "category": "typography",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/title/"
11
+ },
12
+ "options": {
13
+ "script": {
14
+ "$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-script.json"
15
+ },
16
+ "classification": {
17
+ "$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-classification.json"
18
+ },
19
+ "size": {
20
+ "type": "string",
21
+ "default": "m",
22
+ "values": [
23
+ {
24
+ "value": "xs"
25
+ },
26
+ {
27
+ "value": "s"
28
+ },
29
+ {
30
+ "value": "m"
31
+ },
32
+ {
33
+ "value": "l"
34
+ },
35
+ {
36
+ "value": "xl"
37
+ },
38
+ {
39
+ "value": "xxl"
40
+ },
41
+ {
42
+ "value": "xxxl"
43
+ }
44
+ ]
45
+ }
46
+ },
47
+ "lifecycle": {
48
+ "introduced": "1.0.0-draft"
49
+ },
50
+ "tokenBindings": [
51
+ {
52
+ "token": "font-family",
53
+ "context": "Title-XXXL"
54
+ },
55
+ {
56
+ "token": "font-weight",
57
+ "context": "Title-XXXL"
58
+ },
59
+ {
60
+ "token": "font-size",
61
+ "context": "Title-XXXL"
62
+ },
63
+ {
64
+ "token": "line-height",
65
+ "context": "Title-XXXL"
66
+ },
67
+ {
68
+ "token": "letter-spacing",
69
+ "context": "Title-XXXL"
70
+ },
71
+ {
72
+ "token": "font-style",
73
+ "context": "Title-XXXL"
74
+ },
75
+ {
76
+ "token": "title-margin-top-multiplier",
77
+ "context": "Margins"
78
+ },
79
+ {
80
+ "token": "title-margin-bottom-multiplier",
81
+ "context": "Margins"
82
+ },
83
+ {
84
+ "token": "title-color",
85
+ "context": "Color"
86
+ }
87
+ ],
88
+ "accessibility": {
89
+ "focusable": false
90
+ }
91
+ }
@@ -0,0 +1,156 @@
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/toast.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "toast",
6
+ "displayName": "Toast",
7
+ "description": "Toasts display brief, temporary notifications. They're meant to be noticed without disrupting a user's experience or requiring an action to be taken.",
8
+ "meta": {
9
+ "category": "feedback",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/toast/"
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": "informative"
25
+ },
26
+ {
27
+ "value": "positive"
28
+ },
29
+ {
30
+ "value": "negative"
31
+ }
32
+ ]
33
+ },
34
+ "actionLabel": {
35
+ "type": "string",
36
+ "description": "If undefined, this button does not appear."
37
+ },
38
+ "isAutoDismissible": {
39
+ "type": "boolean",
40
+ "default": false
41
+ }
42
+ },
43
+ "lifecycle": {
44
+ "introduced": "1.0.0-draft"
45
+ },
46
+ "tokenBindings": [
47
+ {
48
+ "token": "toast-height",
49
+ "context": "Height"
50
+ },
51
+ {
52
+ "token": "toast-maximum-width",
53
+ "context": "Width (maximum)"
54
+ },
55
+ {
56
+ "token": "corner-radius-800",
57
+ "context": "Rounding"
58
+ },
59
+ {
60
+ "token": "workflow-icon-size-100",
61
+ "context": "Icon"
62
+ },
63
+ {
64
+ "token": "text-to-visual-300",
65
+ "context": "Spacing (icon to text)"
66
+ },
67
+ {
68
+ "token": "spacing-400",
69
+ "context": "Spacing (text to button, horizontal)"
70
+ },
71
+ {
72
+ "token": "spacing-300",
73
+ "context": "Spacing (start edge to text and icon)"
74
+ },
75
+ {
76
+ "token": "spacing-200",
77
+ "context": "Spacing (button to close button, horizontal)"
78
+ },
79
+ {
80
+ "token": "spacing-100",
81
+ "context": "Spacing (close button to end edge)"
82
+ },
83
+ {
84
+ "token": "toast-top-to-workflow-icon",
85
+ "context": "18px (desktop), 20px (mobile)"
86
+ },
87
+ {
88
+ "token": "toast-top-to-text",
89
+ "context": "18px (desktop), 20px (mobile)"
90
+ },
91
+ {
92
+ "token": "toast-bottom-to-text",
93
+ "context": "20px (desktop), 22px (mobile)"
94
+ },
95
+ {
96
+ "token": "neutral-subdued-background-color-default",
97
+ "context": "Background"
98
+ },
99
+ {
100
+ "token": "informative-background-color-default",
101
+ "context": "Background"
102
+ },
103
+ {
104
+ "token": "positive-background-color-default",
105
+ "context": "Background"
106
+ },
107
+ {
108
+ "token": "negative-background-color-default",
109
+ "context": "Background"
110
+ },
111
+ {
112
+ "token": "white",
113
+ "context": "Text and icon"
114
+ },
115
+ {
116
+ "token": "default-font-family",
117
+ "context": "Value"
118
+ },
119
+ {
120
+ "token": "regular-font-weight",
121
+ "context": "Value"
122
+ },
123
+ {
124
+ "token": "default-font-style",
125
+ "context": "Value"
126
+ },
127
+ {
128
+ "token": "font-size-100",
129
+ "context": "Value"
130
+ },
131
+ {
132
+ "token": "line-height-100",
133
+ "context": "Value"
134
+ },
135
+ {
136
+ "token": "cjk-line-height-100",
137
+ "context": "Value"
138
+ },
139
+ {
140
+ "token": "neutral-background-color-default",
141
+ "context": "Toast token changes (Jan 2025)"
142
+ }
143
+ ],
144
+ "accessibility": {
145
+ "intents": ["dismiss"],
146
+ "focusable": true,
147
+ "keyboardIntents": ["dismiss"],
148
+ "wcag": [
149
+ {
150
+ "criterion": "4.1.3",
151
+ "level": "AA",
152
+ "title": "Status Messages"
153
+ }
154
+ ]
155
+ }
156
+ }
@@ -0,0 +1,179 @@
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/tooltip.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "tooltip",
6
+ "displayName": "Tooltip",
7
+ "description": "Tooltips show contextual help or information about specific components when a user hovers or focuses on them.",
8
+ "meta": {
9
+ "category": "feedback",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/tooltip/"
11
+ },
12
+ "options": {
13
+ "label": {
14
+ "type": "string"
15
+ },
16
+ "variant": {
17
+ "type": "string",
18
+ "default": "neutral",
19
+ "values": [
20
+ {
21
+ "value": "neutral"
22
+ },
23
+ {
24
+ "value": "informative"
25
+ },
26
+ {
27
+ "value": "negative"
28
+ }
29
+ ]
30
+ },
31
+ "hasIcon": {
32
+ "type": "boolean",
33
+ "description": "If the neutral variant, there is never an icon.",
34
+ "default": false
35
+ },
36
+ "maxWidth": {
37
+ "type": "number",
38
+ "default": 160,
39
+ "description": "units: pixels"
40
+ },
41
+ "placement": {
42
+ "type": "string",
43
+ "default": "top",
44
+ "values": [
45
+ {
46
+ "value": "top"
47
+ },
48
+ {
49
+ "value": "bottom"
50
+ },
51
+ {
52
+ "value": "left"
53
+ },
54
+ {
55
+ "value": "right"
56
+ }
57
+ ]
58
+ },
59
+ "shouldFlip": {
60
+ "type": "boolean",
61
+ "default": false
62
+ },
63
+ "offset": {
64
+ "type": "number",
65
+ "default": 4,
66
+ "description": "units: pixels"
67
+ },
68
+ "containerPadding": {
69
+ "type": "number",
70
+ "default": 8,
71
+ "description": "units: pixels"
72
+ }
73
+ },
74
+ "lifecycle": {
75
+ "introduced": "1.0.0-draft"
76
+ },
77
+ "tokenBindings": [
78
+ {
79
+ "token": "component-height-75",
80
+ "context": "Minimum height"
81
+ },
82
+ {
83
+ "token": "tooltip-maximum-width",
84
+ "context": "Maximum width"
85
+ },
86
+ {
87
+ "token": "corner-radius-500",
88
+ "context": "Rounding"
89
+ },
90
+ {
91
+ "token": "tooltip-tip-width",
92
+ "context": "Tip"
93
+ },
94
+ {
95
+ "token": "tooltip-tip-height",
96
+ "context": "Tip"
97
+ },
98
+ {
99
+ "token": "tooltip-tip-corner-radius",
100
+ "context": "Rounding (tip)"
101
+ },
102
+ {
103
+ "token": "component-edge-to-text-75",
104
+ "context": "Spacing (start/end edges)"
105
+ },
106
+ {
107
+ "token": "component-top-to-text-75",
108
+ "context": "Spacing (top/bottom edge to text)"
109
+ },
110
+ {
111
+ "token": "component-bottom-to-text-75",
112
+ "context": "Spacing (top/bottom edge to text)"
113
+ },
114
+ {
115
+ "token": "spacing-75",
116
+ "context": "Spacing (tip to source)"
117
+ },
118
+ {
119
+ "token": "spacing-100",
120
+ "context": "Container padding"
121
+ },
122
+ {
123
+ "token": "default-font-family",
124
+ "context": "Label"
125
+ },
126
+ {
127
+ "token": "regular-font-weight",
128
+ "context": "Label"
129
+ },
130
+ {
131
+ "token": "default-font-style",
132
+ "context": "Label"
133
+ },
134
+ {
135
+ "token": "font-size-75",
136
+ "context": "Label"
137
+ },
138
+ {
139
+ "token": "line-height-100",
140
+ "context": "Label"
141
+ },
142
+ {
143
+ "token": "cjk-line-height-100",
144
+ "context": "Label"
145
+ },
146
+ {
147
+ "token": "gray-25",
148
+ "context": "Text"
149
+ },
150
+ {
151
+ "token": "neutral-background-color-default",
152
+ "context": "Background (Neutral)"
153
+ },
154
+ {
155
+ "token": "informative-background-color-default",
156
+ "context": "Background (Informative)"
157
+ },
158
+ {
159
+ "token": "negative-background-color-default",
160
+ "context": "Background (Negative)"
161
+ }
162
+ ],
163
+ "accessibility": {
164
+ "role": "tooltip",
165
+ "focusable": false,
166
+ "wcag": [
167
+ {
168
+ "criterion": "1.4.13",
169
+ "level": "AA",
170
+ "title": "Content on Hover or Focus"
171
+ },
172
+ {
173
+ "criterion": "4.1.2",
174
+ "level": "A",
175
+ "title": "Name, Role, Value"
176
+ }
177
+ ]
178
+ }
179
+ }
@@ -0,0 +1,32 @@
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/tray.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "tray",
6
+ "displayName": "Tray",
7
+ "description": "Trays are containers that display transient content such as menus, options, additional actions, and more. They only exist on mobile experiences and are used for exposing types of content that may be too overwhelming for popovers.",
8
+ "meta": {
9
+ "category": "containers",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/tray/"
11
+ },
12
+ "options": {
13
+ "height": {
14
+ "type": "string",
15
+ "default": "auto"
16
+ }
17
+ },
18
+ "lifecycle": {
19
+ "introduced": "1.0.0-draft"
20
+ },
21
+ "accessibility": {
22
+ "intents": ["dismiss"],
23
+ "focusable": false,
24
+ "wcag": [
25
+ {
26
+ "criterion": "4.1.2",
27
+ "level": "A",
28
+ "title": "Name, Role, Value"
29
+ }
30
+ ]
31
+ }
32
+ }