@adobe/spectrum-design-data 3.3.0-beta.0 → 3.3.0-beta.2

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 (119) hide show
  1. package/components/accordion.json +15 -54
  2. package/components/action-bar.json +9 -23
  3. package/components/action-button.json +39 -79
  4. package/components/action-group.json +18 -129
  5. package/components/alert-banner.json +8 -27
  6. package/components/alert-dialog.json +34 -48
  7. package/components/avatar-group.json +9 -28
  8. package/components/avatar.json +29 -92
  9. package/components/badge.json +56 -150
  10. package/components/breadcrumbs.json +26 -100
  11. package/components/button-group.json +19 -50
  12. package/components/button.json +61 -92
  13. package/components/calendar.json +8 -67
  14. package/components/cards.json +31 -46
  15. package/components/checkbox-group.json +16 -78
  16. package/components/checkbox.json +27 -90
  17. package/components/close-button.json +20 -62
  18. package/components/coach-indicator.json +14 -44
  19. package/components/coach-mark.json +8 -26
  20. package/components/color-area.json +20 -93
  21. package/components/color-handle.json +25 -38
  22. package/components/color-loupe.json +2 -6
  23. package/components/color-slider.json +26 -122
  24. package/components/color-wheel.json +17 -84
  25. package/components/combo-box.json +50 -182
  26. package/components/contextual-help.json +80 -119
  27. package/components/date-picker.json +24 -120
  28. package/components/divider.json +12 -25
  29. package/components/drop-zone.json +18 -30
  30. package/components/field-label.json +21 -62
  31. package/components/help-text.json +16 -53
  32. package/components/illustrated-message.json +21 -72
  33. package/components/in-line-alert.json +13 -53
  34. package/components/link.json +24 -56
  35. package/components/list-view.json +15 -73
  36. package/components/menu.json +45 -174
  37. package/components/meter.json +24 -65
  38. package/components/number-field.json +34 -168
  39. package/components/picker.json +42 -181
  40. package/components/popover.json +37 -113
  41. package/components/progress-bar.json +23 -95
  42. package/components/progress-circle.json +12 -42
  43. package/components/radio-button.json +14 -67
  44. package/components/radio-group.json +28 -125
  45. package/components/rating.json +9 -38
  46. package/components/search-field.json +34 -119
  47. package/components/segmented-control.json +21 -63
  48. package/components/select-box.json +29 -96
  49. package/components/side-navigation.json +28 -69
  50. package/components/slider.json +39 -148
  51. package/components/standard-dialog.json +16 -88
  52. package/components/status-light.json +41 -123
  53. package/components/steplist.json +5 -24
  54. package/components/swatch-group.json +19 -55
  55. package/components/swatch.json +24 -79
  56. package/components/switch.json +31 -72
  57. package/components/table.json +26 -73
  58. package/components/tabs.json +22 -39
  59. package/components/tag-field.json +14 -60
  60. package/components/tag-group.json +16 -49
  61. package/components/tag.json +21 -71
  62. package/components/takeover-dialog.json +10 -61
  63. package/components/text-area.json +49 -198
  64. package/components/text-field.json +42 -163
  65. package/components/thumbnail.json +22 -63
  66. package/components/toast.json +29 -50
  67. package/components/tooltip.json +27 -74
  68. package/components/tree-view.json +45 -140
  69. package/guidelines/app-frame-overview.json +18 -10
  70. package/guidelines/applying-the-type-system.json +14 -10
  71. package/guidelines/attention-hierarchy.json +3 -3
  72. package/guidelines/background-layers.json +41 -5
  73. package/guidelines/bi-directionality.json +8 -8
  74. package/guidelines/border-width.json +17 -1
  75. package/guidelines/brand.json +6 -6
  76. package/guidelines/colors.json +24 -12
  77. package/guidelines/component-spacing.json +14 -2
  78. package/guidelines/contact-us.json +1 -1
  79. package/guidelines/content-area-browsing-context.json +11 -11
  80. package/guidelines/content-design-grammar-and-mechanics.json +241 -0
  81. package/guidelines/content-design-voice-and-tone.json +37 -0
  82. package/guidelines/content-grammar-and-mechanics.json +252 -0
  83. package/guidelines/content-language-and-inclusivity-writing-about-people.json +103 -0
  84. package/guidelines/content-language-and-inclusivity-writing-with-visuals.json +70 -0
  85. package/guidelines/content-voice-and-tone.json +47 -0
  86. package/guidelines/creating-bluelines-browsing-context.json +9 -9
  87. package/guidelines/design-tokens.json +50 -14
  88. package/guidelines/drop-shadow.json +13 -1
  89. package/guidelines/grays.json +5 -5
  90. package/guidelines/header-browsing-context.json +7 -4
  91. package/guidelines/icon-fundamentals.json +4 -4
  92. package/guidelines/illustration.json +21 -25
  93. package/guidelines/in-product-word-list.json +1 -1
  94. package/guidelines/inclusive-design.json +14 -6
  95. package/guidelines/inclusive-ux-writing.json +1 -1
  96. package/guidelines/internationalization.json +13 -13
  97. package/guidelines/language-and-inclusivity-writing-about-people.json +85 -0
  98. package/guidelines/language-and-inclusivity-writing-with-visuals.json +61 -0
  99. package/guidelines/layout-and-structure-containers.json +7 -7
  100. package/guidelines/layout-and-structure-spacing-overview.json +66 -0
  101. package/guidelines/layout-spacing.json +4 -4
  102. package/guidelines/manifest.json +126 -38
  103. package/guidelines/motion.json +5 -5
  104. package/guidelines/object-styles-overview.json +2 -2
  105. package/guidelines/principles.json +7 -8
  106. package/guidelines/rounding.json +15 -3
  107. package/guidelines/side-navigation-browsing-context.json +16 -13
  108. package/guidelines/spacing-overview.json +7 -7
  109. package/guidelines/states.json +4 -4
  110. package/guidelines/support.json +113 -0
  111. package/guidelines/typography-overview.json +7 -3
  112. package/guidelines/typography-system.json +56 -16
  113. package/guidelines/using-icons.json +14 -14
  114. package/guidelines/visual-language-containers.json +7 -7
  115. package/guidelines/whats-new.json +32 -0
  116. package/guidelines/writing-for-errors.json +21 -21
  117. package/guidelines/writing-for-onboarding.json +17 -17
  118. package/guidelines/writing-for-readability.json +4 -4
  119. package/package.json +1 -1
@@ -16,63 +16,27 @@
16
16
  },
17
17
  {
18
18
  "type": "guideline",
19
- "content": "Color sliders adjust a single channel of a color. They’re often used in combination with other color controls to provide fine-tuned visual selection."
19
+ "content": "Keyboard focus.\n\nThe keyboard focus state enlarges the handle to become twice as large. The loupe is a visual-only element and should not receive focus since it does not provide interactive functionality."
20
20
  },
21
21
  {
22
22
  "type": "guideline",
23
- "content": "A color slider 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 a slider may become available later."
23
+ "content": "Handle behavior.\n\nUnlike the slider itself, the color slider's handle can slide all the way to the edge of the track. It always displays the selected color inside the handle and never gets cut off by the track or any container."
24
24
  },
25
25
  {
26
26
  "type": "guideline",
27
- "content": "The slider’s length can be customized based on its context, while its thickness stays fixed for consistency and usability."
27
+ "content": "Minimum length.\n\nA color slider's minimum length is 80 px on desktop, 100 px on mobile."
28
28
  },
29
29
  {
30
30
  "type": "guideline",
31
- "content": "Color sliders can be either in horizontal or vertical orientation. By default, a color slider is horizontal and should be used when vertical space is more limited. The vertical orientation is used when horizontal space is more limited."
31
+ "content": "Include labels.\n\nColor sliders should be labeled and, when applicable, paired with text fields. If labeling each individual slider is redundant, label the group of sliders instead (for example, \"RGB\" or \"HSB\")."
32
32
  },
33
33
  {
34
34
  "type": "guideline",
35
- "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."
35
+ "content": "Display color selection.\n\nWhen using color sliders, it's important to clearly display the color selection in real time. It can be in a color swatch, directly on the canvas, or both."
36
36
  },
37
37
  {
38
38
  "type": "guideline",
39
- "content": "The min and max values also can be customized appropriately for what the color slider is being used for (such as 0 to 360 for hue). By default, the min value starts at 0 and max value is set to 100."
40
- },
41
- {
42
- "type": "guideline",
43
- "content": "The value is the number selected within the color slider’s range, from the min value to max value."
44
- },
45
- {
46
- "type": "guideline",
47
- "content": "Controls a single color channel — such as hue, lightness, or alpha—at a time. The track’s gradient visualizes the full range of values for that channel."
48
- },
49
- {
50
- "type": "guideline",
51
- "content": "The background of the color slider is a visual representation of the range of values a user can select from. This can represent color properties such as hues, color channel values (such as RGB or CMYK levels), or opacity. The exact format this background property takes will depend on what implementation you are working with. Some examples of the format include image, canvas, and gradient."
52
- },
53
- {
54
- "type": "guideline",
55
- "content": "The keyboard focus state enlarges the handle to become twice as large. The loupe is a visual-only element and should not receive focus since it does not provide interactive functionality."
56
- },
57
- {
58
- "type": "guideline",
59
- "content": "Unlike the slider itself, the color slider’s handle can slide all the way to the edge of the track. It always displays the selected color inside the handle and never gets cut off by the track or any container."
60
- },
61
- {
62
- "type": "guideline",
63
- "content": "A color slider’s minimum length is 80 px on desktop, 100 px on mobile."
64
- },
65
- {
66
- "type": "guideline",
67
- "content": "Color sliders should be labeled and, when applicable, paired with text fields. If labeling each individual slider is redundant, label the group of sliders instead (for example, “RGB” or “HSB”)."
68
- },
69
- {
70
- "type": "guideline",
71
- "content": "When using color sliders, it’s important to clearly display the color selection in real time. It can be in a color swatch, directly on the canvas, or both."
72
- },
73
- {
74
- "type": "guideline",
75
- "content": "The color loupe component can be used above the handle to show the selected color that would otherwise be covered by a cursor, 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."
39
+ "content": "Color loupe on down/touch state.\n\nThe color loupe component can be used above the handle to show the selected color that would otherwise be covered by a cursor, 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."
76
40
  }
77
41
  ],
78
42
  "options": {
@@ -85,105 +49,45 @@
85
49
  "default": "hue",
86
50
  "description": "Which channel of the color this slider controls. Use 'alpha' for opacity.",
87
51
  "values": [
88
- {
89
- "value": "hue"
90
- },
91
- {
92
- "value": "saturation"
93
- },
94
- {
95
- "value": "lightness"
96
- },
97
- {
98
- "value": "red"
99
- },
100
- {
101
- "value": "green"
102
- },
103
- {
104
- "value": "blue"
105
- },
106
- {
107
- "value": "alpha"
108
- }
52
+ { "value": "hue" },
53
+ { "value": "saturation" },
54
+ { "value": "lightness" },
55
+ { "value": "red" },
56
+ { "value": "green" },
57
+ { "value": "blue" },
58
+ { "value": "alpha" }
109
59
  ]
110
60
  },
111
61
  "value": {
112
62
  "type": "number",
113
63
  "description": "Number (from minValue to maxValue)."
114
64
  },
115
- "minValue": {
116
- "type": "number",
117
- "default": 0
118
- },
119
- "maxValue": {
120
- "type": "number",
121
- "default": 100
122
- },
123
- "step": {
124
- "type": "number",
125
- "default": 1
126
- },
65
+ "minValue": { "type": "number", "default": 0 },
66
+ "maxValue": { "type": "number", "default": 100 },
67
+ "step": { "type": "number", "default": 1 },
127
68
  "orientation": {
128
69
  "type": "string",
129
70
  "default": "horizontal",
130
- "values": [
131
- {
132
- "value": "horizontal"
133
- },
134
- {
135
- "value": "vertical"
136
- }
137
- ]
138
- },
139
- "length": {
140
- "type": "number",
141
- "default": 192,
142
- "description": "units: px"
71
+ "values": [{ "value": "horizontal" }, { "value": "vertical" }]
143
72
  },
144
- "isDisabled": {
145
- "type": "boolean",
146
- "default": false
147
- }
73
+ "length": { "type": "number", "default": 192, "description": "units: px" },
74
+ "isDisabled": { "type": "boolean", "default": false }
148
75
  },
149
76
  "states": [
150
- {
151
- "name": "hover",
152
- "trigger": "interaction"
153
- },
154
- {
155
- "name": "down",
156
- "trigger": "interaction"
157
- },
158
- {
159
- "name": "keyboard-focus",
160
- "trigger": "interaction"
161
- }
77
+ { "name": "hover", "trigger": "interaction" },
78
+ { "name": "down", "trigger": "interaction" },
79
+ { "name": "keyboard-focus", "trigger": "interaction" }
162
80
  ],
163
- "lifecycle": {
164
- "introduced": "1.0.0-draft"
165
- },
81
+ "lifecycle": { "introduced": "1.0.0-draft" },
166
82
  "accessibility": {
167
83
  "role": "slider",
168
84
  "intents": ["choose"],
169
85
  "focusable": true,
170
86
  "keyboardIntents": ["increment", "decrement"],
171
87
  "wcag": [
172
- {
173
- "criterion": "1.3.1",
174
- "level": "A",
175
- "title": "Info and Relationships"
176
- },
177
- {
178
- "criterion": "2.1.1",
179
- "level": "A",
180
- "title": "Keyboard"
181
- },
182
- {
183
- "criterion": "4.1.2",
184
- "level": "A",
185
- "title": "Name, Role, Value"
186
- }
88
+ { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
89
+ { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
90
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
187
91
  ]
188
92
  }
189
93
  }
@@ -16,51 +16,23 @@
16
16
  },
17
17
  {
18
18
  "type": "guideline",
19
- "content": "Color wheels adjust a single color channel using a circular track. They offer a visual, radial interface often paired with other color selection tools for more precise control."
19
+ "content": "Keyboard focus.\n\nA color wheel can be navigated using a keyboard. The keyboard focus state enlarges the handle to become twice as large."
20
20
  },
21
21
  {
22
22
  "type": "guideline",
23
- "content": "A color wheel 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 wheel may become available later."
23
+ "content": "Minimum size.\n\nMinimum sizing ensures that the component remains clear, usable, and visually consistent, even in flexible or responsive layouts."
24
24
  },
25
25
  {
26
26
  "type": "guideline",
27
- "content": "A color wheel’s size can be customized appropriately for its context."
27
+ "content": "Placing a color area inside a color wheel.\n\nThe color wheel is often used together with the color area component for color selection. When placing the color area inside the color wheel, make sure to leave enough of a margin between the two components to ensure there's enough space for the both the handles."
28
28
  },
29
29
  {
30
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."
31
+ "content": "Display color selection.\n\nWhen using color areas, it's important to clearly display the color selection in real time. It can be in a color swatch, directly on the canvas, or both."
32
32
  },
33
33
  {
34
34
  "type": "guideline",
35
- "content": "The min and max values can also be customized appropriately for what the color wheel is being used for. By default, the min value starts at 0 and max value is set to 360."
36
- },
37
- {
38
- "type": "guideline",
39
- "content": "The value is the number selected within the color wheel’s range, from the minimum value to the maximum value."
40
- },
41
- {
42
- "type": "guideline",
43
- "content": "The background of the color wheel is a visual representation of the range of values that a user can select from. It can represent color properties such as hues or color channel values (such as RGB or CMYK levels). The exact format this background property takes will depend on what implementation you are working with. Some examples of the format include image, canvas, and gradient."
44
- },
45
- {
46
- "type": "guideline",
47
- "content": "A color wheel can be navigated using a keyboard. The keyboard focus state enlarges the handle to become twice as large."
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": "The color wheel is often used together with the color area component for color selection. When placing the color area inside the color wheel, make sure to leave enough of a margin between the two components to ensure there’s enough space for the both the handles."
56
- },
57
- {
58
- "type": "guideline",
59
- "content": "When using color areas, it’s important to clearly display the color selection in real time. It can be in a color swatch, directly on the canvas, or both."
60
- },
61
- {
62
- "type": "guideline",
63
- "content": "The color loupe component can be used above the handle to show the selected color that would otherwise be covered by a cursor, 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."
35
+ "content": "Color loupe on down/touch state.\n\nThe color loupe component can be used above the handle to show the selected color that would otherwise be covered by a cursor, 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."
64
36
  }
65
37
  ],
66
38
  "options": {
@@ -72,66 +44,27 @@
72
44
  "type": "number",
73
45
  "description": "Number (from minValue to maxValue)"
74
46
  },
75
- "minValue": {
76
- "type": "number",
77
- "default": 0
78
- },
79
- "maxValue": {
80
- "type": "number",
81
- "default": 360
82
- },
83
- "step": {
84
- "type": "number",
85
- "default": 1
86
- },
87
- "size": {
88
- "type": "number",
89
- "default": 192,
90
- "description": "units: px"
91
- },
92
- "isDisabled": {
93
- "type": "boolean",
94
- "default": false
95
- }
47
+ "minValue": { "type": "number", "default": 0 },
48
+ "maxValue": { "type": "number", "default": 360 },
49
+ "step": { "type": "number", "default": 1 },
50
+ "size": { "type": "number", "default": 192, "description": "units: px" },
51
+ "isDisabled": { "type": "boolean", "default": false }
96
52
  },
97
53
  "states": [
98
- {
99
- "name": "hover",
100
- "trigger": "interaction"
101
- },
102
- {
103
- "name": "down",
104
- "trigger": "interaction"
105
- },
106
- {
107
- "name": "keyboard-focus",
108
- "trigger": "interaction"
109
- }
54
+ { "name": "hover", "trigger": "interaction" },
55
+ { "name": "down", "trigger": "interaction" },
56
+ { "name": "keyboard-focus", "trigger": "interaction" }
110
57
  ],
111
- "lifecycle": {
112
- "introduced": "1.0.0-draft"
113
- },
58
+ "lifecycle": { "introduced": "1.0.0-draft" },
114
59
  "accessibility": {
115
60
  "role": "slider",
116
61
  "intents": ["choose"],
117
62
  "focusable": true,
118
63
  "keyboardIntents": ["increment", "decrement"],
119
64
  "wcag": [
120
- {
121
- "criterion": "1.3.1",
122
- "level": "A",
123
- "title": "Info and Relationships"
124
- },
125
- {
126
- "criterion": "2.1.1",
127
- "level": "A",
128
- "title": "Keyboard"
129
- },
130
- {
131
- "criterion": "4.1.2",
132
- "level": "A",
133
- "title": "Name, Role, Value"
134
- }
65
+ { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
66
+ { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
67
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
135
68
  ]
136
69
  }
137
70
  }