@adobe/spectrum-design-data 0.0.0-size-token-taxonomy-20260929225107

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 (203) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +75 -0
  3. package/components/accordion.json +185 -0
  4. package/components/action-bar.json +89 -0
  5. package/components/action-button.json +167 -0
  6. package/components/action-group.json +190 -0
  7. package/components/alert-banner.json +148 -0
  8. package/components/alert-dialog.json +124 -0
  9. package/components/avatar-group.json +82 -0
  10. package/components/avatar.json +162 -0
  11. package/components/badge.json +227 -0
  12. package/components/bar-panel.json +14 -0
  13. package/components/body.json +54 -0
  14. package/components/bottom-navigation-android.json +72 -0
  15. package/components/breadcrumbs.json +213 -0
  16. package/components/button-group.json +122 -0
  17. package/components/button.json +239 -0
  18. package/components/calendar.json +196 -0
  19. package/components/card-horizontal.json +14 -0
  20. package/components/card.json +22 -0
  21. package/components/cards.json +117 -0
  22. package/components/checkbox-group.json +128 -0
  23. package/components/checkbox.json +171 -0
  24. package/components/close-button.json +116 -0
  25. package/components/coach-indicator.json +109 -0
  26. package/components/coach-mark.json +151 -0
  27. package/components/code.json +44 -0
  28. package/components/collection-card.json +13 -0
  29. package/components/color-area.json +150 -0
  30. package/components/color-control.json +14 -0
  31. package/components/color-handle.json +79 -0
  32. package/components/color-loupe.json +49 -0
  33. package/components/color-slider.json +189 -0
  34. package/components/color-wheel.json +137 -0
  35. package/components/combo-box.json +319 -0
  36. package/components/contextual-help.json +186 -0
  37. package/components/date-field.json +13 -0
  38. package/components/date-picker.json +297 -0
  39. package/components/detail.json +53 -0
  40. package/components/divider.json +62 -0
  41. package/components/double-calendar.json +13 -0
  42. package/components/drop-zone.json +102 -0
  43. package/components/field-label.json +125 -0
  44. package/components/field.json +13 -0
  45. package/components/floating-action-button.json +13 -0
  46. package/components/form-item.json +13 -0
  47. package/components/heading.json +68 -0
  48. package/components/help-text.json +117 -0
  49. package/components/illustrated-message.json +159 -0
  50. package/components/in-field-button.json +14 -0
  51. package/components/in-field-progress-button.json +88 -0
  52. package/components/in-field-progress-circle.json +62 -0
  53. package/components/in-line-alert.json +109 -0
  54. package/components/link.json +127 -0
  55. package/components/list-view.json +233 -0
  56. package/components/menu.json +310 -0
  57. package/components/meter.json +127 -0
  58. package/components/number-field.json +264 -0
  59. package/components/opacity-checkerboard.json +51 -0
  60. package/components/picker.json +287 -0
  61. package/components/popover.json +182 -0
  62. package/components/progress-bar.json +177 -0
  63. package/components/progress-circle.json +108 -0
  64. package/components/radio-button.json +130 -0
  65. package/components/radio-group.json +202 -0
  66. package/components/rating.json +120 -0
  67. package/components/scroll-zoom-bar.json +82 -0
  68. package/components/search-field.json +206 -0
  69. package/components/segmented-control.json +184 -0
  70. package/components/segmented-text-field.json +13 -0
  71. package/components/select-box.json +165 -0
  72. package/components/side-navigation.json +185 -0
  73. package/components/single-calendar.json +13 -0
  74. package/components/slider.json +238 -0
  75. package/components/stack-item.json +23 -0
  76. package/components/standard-dialog.json +155 -0
  77. package/components/standard-panel.json +135 -0
  78. package/components/status-light.json +175 -0
  79. package/components/steplist.json +127 -0
  80. package/components/swatch-group.json +126 -0
  81. package/components/swatch.json +153 -0
  82. package/components/switch.json +156 -0
  83. package/components/table.json +273 -0
  84. package/components/tabs.json +163 -0
  85. package/components/tag-field.json +147 -0
  86. package/components/tag-group.json +111 -0
  87. package/components/tag.json +123 -0
  88. package/components/takeover-dialog.json +129 -0
  89. package/components/text-area.json +299 -0
  90. package/components/text-field.json +263 -0
  91. package/components/thumbnail.json +109 -0
  92. package/components/time-field.json +13 -0
  93. package/components/title.json +53 -0
  94. package/components/toast.json +136 -0
  95. package/components/tooltip.json +171 -0
  96. package/components/tray.json +32 -0
  97. package/components/tree-view.json +270 -0
  98. package/components/triple-calendar.json +13 -0
  99. package/components/user-card.json +14 -0
  100. package/fields/alignment.json +15 -0
  101. package/fields/anatomy.json +15 -0
  102. package/fields/color-scheme.json +16 -0
  103. package/fields/colorFamily.json +16 -0
  104. package/fields/colorRole.json +16 -0
  105. package/fields/component.json +15 -0
  106. package/fields/contrast.json +16 -0
  107. package/fields/density.json +15 -0
  108. package/fields/easing.json +15 -0
  109. package/fields/emphasis.json +16 -0
  110. package/fields/family.json +16 -0
  111. package/fields/from.json +16 -0
  112. package/fields/icon.json +15 -0
  113. package/fields/motionRole.json +15 -0
  114. package/fields/object.json +15 -0
  115. package/fields/orientation.json +15 -0
  116. package/fields/position.json +15 -0
  117. package/fields/property.json +15 -0
  118. package/fields/qualifier.json +15 -0
  119. package/fields/referenceScaleIndex.json +16 -0
  120. package/fields/role.json +15 -0
  121. package/fields/scale.json +16 -0
  122. package/fields/scaleIndex.json +16 -0
  123. package/fields/script.json +16 -0
  124. package/fields/shape.json +15 -0
  125. package/fields/size.json +15 -0
  126. package/fields/state.json +15 -0
  127. package/fields/structure.json +16 -0
  128. package/fields/style.json +15 -0
  129. package/fields/substructure.json +15 -0
  130. package/fields/to.json +16 -0
  131. package/fields/variant.json +15 -0
  132. package/fields/weight.json +15 -0
  133. package/guidelines/app-frame-content-area.json +81 -0
  134. package/guidelines/app-frame-creating-bluelines.json +58 -0
  135. package/guidelines/app-frame-header.json +72 -0
  136. package/guidelines/app-frame-overview.json +167 -0
  137. package/guidelines/app-frame-side-navigation.json +138 -0
  138. package/guidelines/attention-hierarchy.json +42 -0
  139. package/guidelines/background-layers.json +38 -0
  140. package/guidelines/brand.json +50 -0
  141. package/guidelines/colors.json +62 -0
  142. package/guidelines/containers.json +62 -0
  143. package/guidelines/developer-overview.json +35 -0
  144. package/guidelines/faqs.json +35 -0
  145. package/guidelines/fonts.json +58 -0
  146. package/guidelines/grays.json +66 -0
  147. package/guidelines/icon-fundamentals.json +45 -0
  148. package/guidelines/illustrations.json +111 -0
  149. package/guidelines/introduction.json +31 -0
  150. package/guidelines/manifest.json +204 -0
  151. package/guidelines/motion.json +41 -0
  152. package/guidelines/object-styles.json +102 -0
  153. package/guidelines/principles.json +30 -0
  154. package/guidelines/resources.json +59 -0
  155. package/guidelines/spacing.json +25 -0
  156. package/guidelines/states.json +34 -0
  157. package/guidelines/typography-fundamentals.json +142 -0
  158. package/guidelines/using-icons.json +107 -0
  159. package/mode-sets/color-scheme.json +8 -0
  160. package/mode-sets/contrast.json +8 -0
  161. package/mode-sets/scale.json +8 -0
  162. package/package.json +68 -0
  163. package/registry/alignments.json +22 -0
  164. package/registry/anatomy-terms.json +860 -0
  165. package/registry/categories.json +55 -0
  166. package/registry/color-families.json +177 -0
  167. package/registry/color-roles.json +47 -0
  168. package/registry/components.json +472 -0
  169. package/registry/densities.json +17 -0
  170. package/registry/easing-curves.json +42 -0
  171. package/registry/glossary.json +181 -0
  172. package/registry/icon-terms.json +104 -0
  173. package/registry/motion-roles.json +32 -0
  174. package/registry/navigation-terms.json +241 -0
  175. package/registry/orientations.json +17 -0
  176. package/registry/platform-extensions/web-components-states.json +58 -0
  177. package/registry/platforms.json +37 -0
  178. package/registry/positions.json +70 -0
  179. package/registry/property-terms.json +352 -0
  180. package/registry/qualifiers.json +47 -0
  181. package/registry/roles.json +17 -0
  182. package/registry/scale-values.json +133 -0
  183. package/registry/scripts.json +12 -0
  184. package/registry/shapes.json +27 -0
  185. package/registry/sizes.json +78 -0
  186. package/registry/states.json +187 -0
  187. package/registry/structures.json +67 -0
  188. package/registry/substructures.json +12 -0
  189. package/registry/token-objects.json +32 -0
  190. package/registry/token-terminology.json +925 -0
  191. package/registry/typography-emphasis.json +32 -0
  192. package/registry/typography-families.json +22 -0
  193. package/registry/typography-styles.json +22 -0
  194. package/registry/typography-weights.json +37 -0
  195. package/registry/variants.json +366 -0
  196. package/tokens/color-aliases.tokens.json +5579 -0
  197. package/tokens/color-component.tokens.json +1 -0
  198. package/tokens/color-palette.tokens.json +13458 -0
  199. package/tokens/icons.tokens.json +2777 -0
  200. package/tokens/layout-component.tokens.json +3121 -0
  201. package/tokens/layout.tokens.json +8741 -0
  202. package/tokens/semantic-color-palette.tokens.json +1246 -0
  203. package/tokens/typography.tokens.json +1447 -0
@@ -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/close-button.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "close-button",
6
+ "displayName": "Close button",
7
+ "description": "The close button is used inside of other components, like a toast or an action bar, for closing or dismissing its parent component.",
8
+ "meta": {
9
+ "category": "actions",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/close-button/"
11
+ },
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "The close button is used inside of other components, like a toast or an action bar, for closing or dismissing its parent component."
16
+ },
17
+ {
18
+ "type": "guideline",
19
+ "content": "A close button in a disabled state shows that an action exists, but is not available in that circumstance. This state can be used to maintain layout continuity and to communicate that an action may become available later."
20
+ },
21
+ {
22
+ "type": "guideline",
23
+ "content": "Use this option when a close button needs to be placed on top of a color background or visual. Static color close buttons are available in black or white, regardless of color theme."
24
+ },
25
+ {
26
+ "type": "guideline",
27
+ "content": "Use static black on light color or image backgrounds, and static white on dark color or image backgrounds, regardless of color theme. Make sure that the background and the close button color meet the minimum color contrast ratio."
28
+ },
29
+ {
30
+ "type": "guideline",
31
+ "content": "The icon inside of the close button comes in two options: regular and large. These scale up and down for each close button size. This is a cross UI icon, not a workflow icon or the letter “x.”"
32
+ },
33
+ {
34
+ "type": "guideline",
35
+ "content": "Close buttons come in four different sizes: small, medium, large, and extra-large. The medium size is the default and most frequently used option. Use the other sizes sparingly; they should be used to create a hierarchy of importance within the page."
36
+ },
37
+ {
38
+ "type": "guideline",
39
+ "content": "A close button can be navigated using a keyboard. The keyboard focus state takes the close button’s visual hover state and adds a ring to the button in focus."
40
+ }
41
+ ],
42
+ "options": {
43
+ "size": {
44
+ "type": "string",
45
+ "default": "m",
46
+ "values": [
47
+ {
48
+ "value": "s"
49
+ },
50
+ {
51
+ "value": "m"
52
+ },
53
+ {
54
+ "value": "l"
55
+ },
56
+ {
57
+ "value": "xl"
58
+ }
59
+ ]
60
+ },
61
+ "iconSize": {
62
+ "type": "string"
63
+ },
64
+ "staticColor": {
65
+ "type": "string",
66
+ "description": "Static color must not be set for the default version of this component.",
67
+ "values": [
68
+ {
69
+ "value": "white"
70
+ },
71
+ {
72
+ "value": "black"
73
+ }
74
+ ]
75
+ },
76
+ "isDisabled": {
77
+ "type": "boolean",
78
+ "default": false
79
+ }
80
+ },
81
+ "states": [
82
+ {
83
+ "name": "hover",
84
+ "trigger": "interaction"
85
+ },
86
+ {
87
+ "name": "down",
88
+ "trigger": "interaction"
89
+ },
90
+ {
91
+ "name": "keyboard-focus",
92
+ "trigger": "interaction"
93
+ }
94
+ ],
95
+ "lifecycle": {
96
+ "introduced": "1.0.0-draft"
97
+ },
98
+ "accessibility": {
99
+ "role": "button",
100
+ "intents": ["dismiss"],
101
+ "focusable": true,
102
+ "keyboardIntents": ["activate"],
103
+ "wcag": [
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
+ }
114
+ ]
115
+ }
116
+ }
@@ -0,0 +1,109 @@
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/coach-indicator.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "coach-indicator",
6
+ "displayName": "Coach indicator",
7
+ "description": "Coach indicators help guide users through interfaces by highlighting important areas or features during onboarding and feature discovery.",
8
+ "meta": {
9
+ "category": "feedback",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/coach-indicator/"
11
+ },
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "Coach indicators help guide users through interfaces by highlighting important areas or features during onboarding and feature discovery."
16
+ },
17
+ {
18
+ "type": "guideline",
19
+ "content": "If not set to white, the coach indicator uses the default color."
20
+ },
21
+ {
22
+ "type": "guideline",
23
+ "content": "The rounding of the indicator is determined by the shape of the object that it is highlighting. There are three types of rounding for coach indicators: no rounding, default rounding, and full rounding."
24
+ },
25
+ {
26
+ "type": "guideline",
27
+ "content": "No rounding means that there is no rounding on the object being indicated. In this case, a 6 px border radius rounding is applied to the coach indicator."
28
+ },
29
+ {
30
+ "type": "guideline",
31
+ "content": "Default rounding happens when an object has its own rounding, but isn’t fully rounded. In this case, the coach indicator should have the same rounding of that object with a 2 px gap."
32
+ },
33
+ {
34
+ "type": "guideline",
35
+ "content": "Full rounding occurs when an object already has a rounded style that gives it a pill shape (e.g., a button). In this case, the coach indicator is also rounded."
36
+ },
37
+ {
38
+ "type": "guideline",
39
+ "content": "The animation is always on the coach indicator. When an implementation is unable to animate the coach indicator, it can use a non-animated version to provide a similar experience."
40
+ },
41
+ {
42
+ "type": "guideline",
43
+ "content": "Coach indicators adopt the shape of the object they highlight. A 2 px space separates the indicator from the object’s placement area, creating padding on all sides."
44
+ },
45
+ {
46
+ "type": "guideline",
47
+ "content": "When an indicator needs to be placed on top of a visual, use the static white option. Static white does not change values depending upon the color theme."
48
+ },
49
+ {
50
+ "type": "guideline",
51
+ "content": "Coach indicators are typically paired with coach marks to create accessible user onboarding experiences. When using coach indicators:"
52
+ }
53
+ ],
54
+ "options": {
55
+ "cornerRounding": {
56
+ "type": "string",
57
+ "values": [
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
+ }
91
+ ]
92
+ },
93
+ "staticColor": {
94
+ "type": "string",
95
+ "description": "If not set to white, the coach indicator uses the default color.",
96
+ "values": [
97
+ {
98
+ "value": "white"
99
+ }
100
+ ]
101
+ }
102
+ },
103
+ "lifecycle": {
104
+ "introduced": "1.0.0-draft"
105
+ },
106
+ "accessibility": {
107
+ "focusable": false
108
+ }
109
+ }
@@ -0,0 +1,151 @@
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/coach-mark.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "coach-mark",
6
+ "displayName": "Coach mark",
7
+ "description": "Coach marks provide contextual guidance to users by highlighting specific interface elements.",
8
+ "meta": {
9
+ "category": "feedback",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/coach-mark/"
11
+ },
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "Coach marks provide contextual guidance to users by highlighting specific interface elements."
16
+ },
17
+ {
18
+ "type": "guideline",
19
+ "content": "Coach marks are temporary messages that provide guidance during new or unfamiliar experiences. They can appear as a single message or be sequenced into a tour."
20
+ },
21
+ {
22
+ "type": "guideline",
23
+ "content": "Actions is an area for certain configurations of a Coach mark and can contain an action menu, keyboard shortcut, or both. When both are enabled, the component layout adjusts to display the keyboard shortcut below the title."
24
+ },
25
+ {
26
+ "type": "guideline",
27
+ "content": "Coach marks can contain images or videos that relate to their content, such as demonstrations of gestures, the feature being used, or illustrations."
28
+ },
29
+ {
30
+ "type": "guideline",
31
+ "content": "Coach marks must include a title. Titles appear in bold at the top of the coach mark and use a few words to convey its purpose."
32
+ },
33
+ {
34
+ "type": "guideline",
35
+ "content": "All coach marks must have a description. Descriptions briefly communicate the information and context needed to educate a user about a new or unfamiliar product experience."
36
+ },
37
+ {
38
+ "type": "guideline",
39
+ "content": "When the text of a header or description is too long for the available horizontal space, it wraps to form another line. The steps in a tour are always shown in full and never wrap or truncate."
40
+ },
41
+ {
42
+ "type": "guideline",
43
+ "content": "By default, the step counter appears next to the title. If an action menu is also used, the keyboard shortcut appears below the title instead."
44
+ },
45
+ {
46
+ "type": "guideline",
47
+ "content": "Choose a width for coach marks that is spacious enough to accommodate all of their content. In a tour that includes several coach marks, keep the width consistent across each one."
48
+ },
49
+ {
50
+ "type": "guideline",
51
+ "content": "The “Previous” button should always be a quiet secondary button."
52
+ },
53
+ {
54
+ "type": "guideline",
55
+ "content": "The “Skip tour” and “Restart tour” options should only be available within the more actions menu."
56
+ },
57
+ {
58
+ "type": "guideline",
59
+ "content": "Titles help with way finding and setting context for what a user is learning about. Summarize the description of the coach mark in a few concise words. In a tour, use a different title for each coach mark to keep users active and engaged. Avoid repeating the title in the description."
60
+ },
61
+ {
62
+ "type": "guideline",
63
+ "content": "Coach marks are meant to provide quick overviews of functionality. Content should be at least a few words, but no more than a few sentences."
64
+ },
65
+ {
66
+ "type": "guideline",
67
+ "content": "The primary action should be brief and consistent. Use \"OK\" for a single coach mark. Within a tour, use “Next” for all but the last step, and “Finish” for the last step. Don’t use different primary action names for every step in a tour."
68
+ },
69
+ {
70
+ "type": "guideline",
71
+ "content": "When a part of the tour is dependent on a user taking an action, it’s okay to put the primary button in the disabled state as long as the user has a way to exit the tour. For a one-off coach mark, this means the primary button should remain as a route to dismiss. In a tour, it’s recommended to have the more actions menu present."
72
+ },
73
+ {
74
+ "type": "guideline",
75
+ "content": "When part of the tour is dependent on a user action, don't force users to confirm that they've taken that action."
76
+ }
77
+ ],
78
+ "options": {
79
+ "title": {
80
+ "type": "string"
81
+ },
82
+ "description": {
83
+ "type": "string"
84
+ },
85
+ "hideImage": {
86
+ "type": "boolean",
87
+ "default": false,
88
+ "description": "Optional image to display in dialog."
89
+ },
90
+ "actions": {
91
+ "type": "object",
92
+ "description": "Configuration for coach mark actions.",
93
+ "properties": {
94
+ "topActionLabel": {
95
+ "type": "string",
96
+ "description": "Optional action button displayed at the top, often for a menu."
97
+ },
98
+ "footerContent": {
99
+ "type": "string",
100
+ "description": "Optional footer content to display in the dialog footer like a checkbox."
101
+ },
102
+ "primaryActionLabel": {
103
+ "type": "string",
104
+ "description": "Label for the primary footer action."
105
+ },
106
+ "secondaryActionLabel": {
107
+ "type": "string",
108
+ "description": "Label for the secondary footer action (optional)."
109
+ },
110
+ "cancelActionLabel": {
111
+ "type": "string",
112
+ "default": "cancel",
113
+ "description": "Label for the cancel action (optional)."
114
+ }
115
+ }
116
+ }
117
+ },
118
+ "anatomy": [
119
+ {
120
+ "name": "pagination-text",
121
+ "description": "Text indicating step position (e.g. '2 of 5')."
122
+ },
123
+ {
124
+ "name": "body"
125
+ },
126
+ {
127
+ "name": "media"
128
+ },
129
+ {
130
+ "name": "pagination"
131
+ },
132
+ {
133
+ "name": "title"
134
+ }
135
+ ],
136
+ "lifecycle": {
137
+ "introduced": "1.0.0-draft"
138
+ },
139
+ "accessibility": {
140
+ "intents": ["dismiss"],
141
+ "focusable": true,
142
+ "keyboardIntents": ["dismiss"],
143
+ "wcag": [
144
+ {
145
+ "criterion": "4.1.2",
146
+ "level": "A",
147
+ "title": "Name, Role, Value"
148
+ }
149
+ ]
150
+ }
151
+ }
@@ -0,0 +1,44 @@
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/code.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "code",
6
+ "displayName": "Code",
7
+ "description": "Detail is a typography component used for disclosing extra information or smaller items in hierarchical relationships of text.",
8
+ "meta": {
9
+ "category": "typography",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/code/"
11
+ },
12
+ "options": {
13
+ "script": {
14
+ "$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-script.json"
15
+ },
16
+ "size": {
17
+ "type": "string",
18
+ "default": "m",
19
+ "values": [
20
+ {
21
+ "value": "xs"
22
+ },
23
+ {
24
+ "value": "s"
25
+ },
26
+ {
27
+ "value": "m"
28
+ },
29
+ {
30
+ "value": "l"
31
+ },
32
+ {
33
+ "value": "xl"
34
+ }
35
+ ]
36
+ }
37
+ },
38
+ "lifecycle": {
39
+ "introduced": "1.0.0-draft"
40
+ },
41
+ "accessibility": {
42
+ "focusable": false
43
+ }
44
+ }
@@ -0,0 +1,13 @@
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/collection-card.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "collection-card",
6
+ "displayName": "Collection card",
7
+ "description": "A card variant representing a collection of items rather than a single asset.",
8
+ "meta": {
9
+ "category": "containers",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/collection-card/"
11
+ },
12
+ "lifecycle": { "introduced": "1.0.0-draft" }
13
+ }
@@ -0,0 +1,150 @@
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/color-area.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "color-area",
6
+ "displayName": "Color area",
7
+ "description": "A color area allows users to visually select two properties of a color simultaneously. It's commonly used together with a color slider or color wheel.",
8
+ "meta": {
9
+ "category": "inputs",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/color-area/"
11
+ },
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "A color area allows users to visually select two properties of a color simultaneously. It's commonly used together with a color slider or color wheel."
16
+ },
17
+ {
18
+ "type": "guideline",
19
+ "content": "A color area enables visual selection of two color properties at once. It's often paired with a color slider or color wheel."
20
+ },
21
+ {
22
+ "type": "guideline",
23
+ "content": "A color area in a disabled state shows that an input exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that the area may become available later."
24
+ },
25
+ {
26
+ "type": "guideline",
27
+ "content": "A color area’s height and width can be customized appropriately for its context."
28
+ },
29
+ {
30
+ "type": "guideline",
31
+ "content": "The step refers to the increment by which these values increase or decrease. A step value of 1 (default) allows a user to only select whole numbers within the min and max range."
32
+ },
33
+ {
34
+ "type": "guideline",
35
+ "content": "The x and y values are the numbers selected within the color area’s horizontal and vertical axes, respectively."
36
+ },
37
+ {
38
+ "type": "guideline",
39
+ "content": "The x/y min and max values also can be customized appropriately for what the color area is being used for. By default, the min value starts at 0 and max value is set to 100."
40
+ },
41
+ {
42
+ "type": "guideline",
43
+ "content": "A color area can be navigated using a keyboard. The keyboard focus state enlarges the handle to become twice as large."
44
+ },
45
+ {
46
+ "type": "guideline",
47
+ "content": "The color area’s handle can slide all the way over the edge of the area. It always displays the selected color inside the handle and never gets cut off by the border or any container."
48
+ },
49
+ {
50
+ "type": "guideline",
51
+ "content": "Minimum sizing ensures that the component remains clear, usable, and visually consistent, even in flexible or responsive layouts."
52
+ },
53
+ {
54
+ "type": "guideline",
55
+ "content": "When using color areas, it’s important to clearly display the color selection in real time. This can be in a color swatch, directly on the canvas, or both."
56
+ },
57
+ {
58
+ "type": "guideline",
59
+ "content": "The color loupe component can be used above the handle to show the selected color that would otherwise be covered by a mouse, stylus, or finger on the down/touch state. This can be customized to appear only on finger-input, or always appear regardless of input type."
60
+ }
61
+ ],
62
+ "options": {
63
+ "background": {
64
+ "type": "string",
65
+ "description": "This will vary depending on implementation."
66
+ },
67
+ "x-value": {
68
+ "type": "number",
69
+ "description": "Number (from x-minValue to x-maxValue)"
70
+ },
71
+ "x-minValue": {
72
+ "type": "number",
73
+ "default": 0
74
+ },
75
+ "x-maxValue": {
76
+ "type": "number",
77
+ "default": 100
78
+ },
79
+ "y-value": {
80
+ "type": "number",
81
+ "description": "Number (from y-minValue to y-maxValue)"
82
+ },
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
+ }
109
+ },
110
+ "states": [
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
+ }
123
+ ],
124
+ "lifecycle": {
125
+ "introduced": "1.0.0-draft"
126
+ },
127
+ "accessibility": {
128
+ "role": "slider",
129
+ "intents": ["choose"],
130
+ "focusable": true,
131
+ "keyboardIntents": ["increment", "decrement"],
132
+ "wcag": [
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
+ }
148
+ ]
149
+ }
150
+ }
@@ -0,0 +1,14 @@
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/color-control.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "color-control",
6
+ "displayName": "Color control",
7
+ "description": "Shared interactive control (slider/area) underlying color-picker components.",
8
+ "meta": {
9
+ "category": "inputs",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/color-control/"
11
+ },
12
+ "anatomy": [{ "name": "track" }],
13
+ "lifecycle": { "introduced": "1.0.0-draft" }
14
+ }
@@ -0,0 +1,79 @@
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/color-handle.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "color-handle",
6
+ "displayName": "Color handle",
7
+ "description": "Color handles allow users to select and adjust colors in a color picker.",
8
+ "meta": {
9
+ "category": "inputs",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/color-handle/"
11
+ },
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "Color handles select or adjust a color value along a track or wheel. The outer border is not included in the handle's size."
16
+ },
17
+ {
18
+ "type": "guideline",
19
+ "content": "Handle behavior.\n\nIn the color area and color slider, the handle can slide all the way to the edge of the component. It always displays the selected color inside the handle and never gets cut off by the border or any container."
20
+ },
21
+ {
22
+ "type": "guideline",
23
+ "content": "Transparent colors.\n\nWhen using transparent colors, the handle displays an opacity checkerboard background to clearly show the level of transparency."
24
+ },
25
+ {
26
+ "type": "guideline",
27
+ "content": "Keyboard focus.\n\nThe keyboard focus state enlarges the handle to become twice as large."
28
+ }
29
+ ],
30
+ "options": {
31
+ "channel": {
32
+ "type": "string",
33
+ "default": "hue",
34
+ "description": "Which channel of the color this handle controls. Use 'alpha' for opacity.",
35
+ "values": [
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
+ }
57
+ ]
58
+ },
59
+ "isDisabled": {
60
+ "type": "boolean",
61
+ "default": false
62
+ }
63
+ },
64
+ "lifecycle": {
65
+ "introduced": "1.0.0-draft"
66
+ },
67
+ "accessibility": {
68
+ "intents": ["choose"],
69
+ "focusable": true,
70
+ "keyboardIntents": ["increment", "decrement"],
71
+ "wcag": [
72
+ {
73
+ "criterion": "2.1.1",
74
+ "level": "A",
75
+ "title": "Keyboard"
76
+ }
77
+ ]
78
+ }
79
+ }