@adobe/spectrum-design-data 0.4.0 → 0.7.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 (96) hide show
  1. package/components/accordion.json +108 -194
  2. package/components/action-bar.json +64 -97
  3. package/components/action-button.json +95 -230
  4. package/components/action-group.json +88 -86
  5. package/components/alert-banner.json +104 -76
  6. package/components/alert-dialog.json +78 -126
  7. package/components/avatar-group.json +61 -119
  8. package/components/avatar.json +98 -212
  9. package/components/badge.json +138 -256
  10. package/components/breadcrumbs.json +95 -89
  11. package/components/button-group.json +57 -48
  12. package/components/button.json +151 -368
  13. package/components/calendar.json +97 -34
  14. package/components/cards.json +109 -250
  15. package/components/checkbox-group.json +50 -58
  16. package/components/checkbox.json +121 -186
  17. package/components/close-button.json +61 -124
  18. package/components/coach-indicator.json +63 -72
  19. package/components/coach-mark.json +89 -93
  20. package/components/color-area.json +68 -94
  21. package/components/color-handle.json +39 -79
  22. package/components/color-loupe.json +35 -52
  23. package/components/color-slider.json +95 -116
  24. package/components/color-wheel.json +67 -73
  25. package/components/combo-box.json +243 -331
  26. package/components/contextual-help.json +86 -175
  27. package/components/date-picker.json +139 -179
  28. package/components/divider.json +30 -69
  29. package/components/drop-zone.json +51 -92
  30. package/components/field-label.json +75 -117
  31. package/components/help-text.json +81 -105
  32. package/components/illustrated-message.json +106 -73
  33. package/components/in-line-alert.json +50 -83
  34. package/components/link.json +63 -85
  35. package/components/list-view.json +107 -146
  36. package/components/menu.json +180 -274
  37. package/components/meter.json +72 -118
  38. package/components/number-field.json +213 -305
  39. package/components/picker.json +208 -320
  40. package/components/popover.json +94 -129
  41. package/components/progress-bar.json +94 -131
  42. package/components/progress-circle.json +45 -72
  43. package/components/radio-button.json +87 -156
  44. package/components/radio-group.json +107 -74
  45. package/components/rating.json +66 -99
  46. package/components/search-field.json +132 -202
  47. package/components/segmented-control.json +94 -109
  48. package/components/select-box.json +119 -179
  49. package/components/side-navigation.json +108 -118
  50. package/components/slider.json +143 -228
  51. package/components/standard-dialog.json +96 -114
  52. package/components/standard-panel.json +105 -53
  53. package/components/status-light.json +104 -240
  54. package/components/steplist.json +77 -161
  55. package/components/swatch-group.json +42 -58
  56. package/components/swatch.json +75 -162
  57. package/components/switch.json +101 -189
  58. package/components/table.json +97 -102
  59. package/components/tabs.json +77 -104
  60. package/components/tag-field.json +86 -150
  61. package/components/tag-group.json +50 -44
  62. package/components/tag.json +81 -198
  63. package/components/takeover-dialog.json +59 -57
  64. package/components/text-area.json +200 -323
  65. package/components/text-field.json +183 -304
  66. package/components/thumbnail.json +63 -105
  67. package/components/toast.json +97 -83
  68. package/components/tooltip.json +104 -96
  69. package/components/tree-view.json +169 -181
  70. package/guidelines/app-frame-content-area.json +81 -0
  71. package/guidelines/app-frame-creating-bluelines.json +58 -0
  72. package/guidelines/app-frame-header.json +72 -0
  73. package/guidelines/app-frame-overview.json +167 -0
  74. package/guidelines/app-frame-side-navigation.json +138 -0
  75. package/guidelines/attention-hierarchy.json +42 -0
  76. package/guidelines/background-layers.json +38 -0
  77. package/guidelines/brand.json +50 -0
  78. package/guidelines/colors.json +62 -0
  79. package/guidelines/containers.json +62 -0
  80. package/guidelines/developer-overview.json +35 -0
  81. package/guidelines/faqs.json +35 -0
  82. package/guidelines/fonts.json +58 -0
  83. package/guidelines/grays.json +66 -0
  84. package/guidelines/icon-fundamentals.json +45 -0
  85. package/guidelines/illustrations.json +111 -0
  86. package/guidelines/introduction.json +31 -0
  87. package/guidelines/manifest.json +204 -0
  88. package/guidelines/motion.json +41 -0
  89. package/guidelines/object-styles.json +102 -0
  90. package/guidelines/principles.json +30 -0
  91. package/guidelines/resources.json +59 -0
  92. package/guidelines/spacing.json +25 -0
  93. package/guidelines/states.json +34 -0
  94. package/guidelines/typography-fundamentals.json +142 -0
  95. package/guidelines/using-icons.json +107 -0
  96. package/package.json +4 -2
@@ -9,142 +9,97 @@
9
9
  "category": "feedback",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/contextual-help/"
11
11
  },
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "Contextual help shows a user extra information about the state of either an adjacent component or an entire view. It explains a high-level topic about an experience and can point users to more information elsewhere."
16
+ },
17
+ {
18
+ "type": "guideline",
19
+ "content": "Contextual help displays additional information about the state of a nearby component or an entire view. It explains high-level concepts and can link to more detailed guidance."
20
+ },
21
+ {
22
+ "type": "guideline",
23
+ "content": "To make sure that a popover will stay within certain boundaries (e.g., a browser window) it’s possible to define a container, and a container padding value, to respect."
24
+ },
25
+ {
26
+ "type": "guideline",
27
+ "content": "The cross offset is the placement offset on the cross axis (x-axis for top and bottom, y-axis for left and right)."
28
+ },
29
+ {
30
+ "type": "guideline",
31
+ "content": "A contextual help can have up to one link."
32
+ },
33
+ {
34
+ "type": "guideline",
35
+ "content": "The offset is the distance between the action button and the popover edge. There is a default value but this can also be adjusted depending on the context."
36
+ },
37
+ {
38
+ "type": "guideline",
39
+ "content": "Indicates whether contents are informative or provides helpful guidance."
40
+ },
41
+ {
42
+ "type": "guideline",
43
+ "content": "Contextual help can be used to explain why a component is disabled and how to enable it. Don’t make disabled components interactive (with focus states or hovering) as a way to display contextual information."
44
+ },
45
+ {
46
+ "type": "guideline",
47
+ "content": "There are two size options for the action button in contextual help: extra-small and small. Regardless of size, the action button should be quiet and display only an icon."
48
+ }
49
+ ],
12
50
  "options": {
13
51
  "icon": {
14
52
  "type": "string",
15
53
  "default": "info",
16
- "values": [
17
- {
18
- "value": "info"
19
- },
20
- {
21
- "value": "help"
22
- }
23
- ]
54
+ "values": [{ "value": "info" }, { "value": "help" }]
24
55
  },
25
56
  "popoverPlacement": {
26
57
  "type": "string",
27
58
  "default": "bottom start",
28
59
  "values": [
29
- {
30
- "value": "top"
31
- },
32
- {
33
- "value": "top left"
34
- },
35
- {
36
- "value": "top right"
37
- },
38
- {
39
- "value": "top start"
40
- },
41
- {
42
- "value": "top end"
43
- },
44
- {
45
- "value": "bottom"
46
- },
47
- {
48
- "value": "bottom left"
49
- },
50
- {
51
- "value": "bottom right"
52
- },
53
- {
54
- "value": "bottom start"
55
- },
56
- {
57
- "value": "bottom end"
58
- },
59
- {
60
- "value": "left"
61
- },
62
- {
63
- "value": "left top"
64
- },
65
- {
66
- "value": "left bottom"
67
- },
68
- {
69
- "value": "start"
70
- },
71
- {
72
- "value": "start top"
73
- },
74
- {
75
- "value": "start bottom"
76
- },
77
- {
78
- "value": "right"
79
- },
80
- {
81
- "value": "right top"
82
- },
83
- {
84
- "value": "right bottom"
85
- },
86
- {
87
- "value": "end"
88
- },
89
- {
90
- "value": "end top"
91
- },
92
- {
93
- "value": "end bottom"
94
- }
60
+ { "value": "top" },
61
+ { "value": "top left" },
62
+ { "value": "top right" },
63
+ { "value": "top start" },
64
+ { "value": "top end" },
65
+ { "value": "bottom" },
66
+ { "value": "bottom left" },
67
+ { "value": "bottom right" },
68
+ { "value": "bottom start" },
69
+ { "value": "bottom end" },
70
+ { "value": "left" },
71
+ { "value": "left top" },
72
+ { "value": "left bottom" },
73
+ { "value": "start" },
74
+ { "value": "start top" },
75
+ { "value": "start bottom" },
76
+ { "value": "right" },
77
+ { "value": "right top" },
78
+ { "value": "right bottom" },
79
+ { "value": "end" },
80
+ { "value": "end top" },
81
+ { "value": "end bottom" }
95
82
  ]
96
83
  },
97
- "popoverOffset": {
98
- "type": "number",
99
- "default": 8
100
- },
84
+ "popoverOffset": { "type": "number", "default": 8 },
101
85
  "href": {
102
86
  "type": "string",
103
87
  "description": "Optional URL within contextual help content like a 'Learn more' link."
104
88
  },
105
- "popoverCrossOffset": {
106
- "type": "number",
107
- "default": 0
108
- },
109
- "containerPadding": {
110
- "type": "number",
111
- "default": 8
112
- }
89
+ "popoverCrossOffset": { "type": "number", "default": 0 },
90
+ "containerPadding": { "type": "number", "default": 8 }
113
91
  },
114
92
  "states": [
115
- {
116
- "name": "down",
117
- "trigger": "interaction"
118
- },
119
- {
120
- "name": "open",
121
- "trigger": "prop"
122
- },
123
- {
124
- "name": "keyboard-focus",
125
- "trigger": "interaction"
126
- }
93
+ { "name": "down", "trigger": "interaction" },
94
+ { "name": "open", "trigger": "prop" },
95
+ { "name": "keyboard-focus", "trigger": "interaction" }
127
96
  ],
128
- "lifecycle": {
129
- "introduced": "1.0.0-draft"
130
- },
97
+ "lifecycle": { "introduced": "1.0.0-draft" },
131
98
  "tokenBindings": [
132
- {
133
- "token": "xs-s",
134
- "context": "Components"
135
- },
136
- {
137
- "token": "s-m",
138
- "context": "Components"
139
- },
140
- {
141
- "token": "contextual-help-minimum-width",
142
- "context": "Minimum width"
143
- },
144
- {
145
- "token": "corner-radius-large-default",
146
- "context": "Rounding"
147
- },
99
+ { "token": "xs-s", "context": "Components" },
100
+ { "token": "s-m", "context": "Components" },
101
+ { "token": "contextual-help-minimum-width", "context": "Minimum width" },
102
+ { "token": "corner-radius-large-default", "context": "Rounding" },
148
103
  {
149
104
  "token": "spacing-400",
150
105
  "context": "Spacing (top/bottom/start/end edge to text)"
@@ -161,70 +116,26 @@
161
116
  "token": "spacing-300",
162
117
  "context": "Spacing (header to body, body to link)"
163
118
  },
164
- {
165
- "token": "contextual-help-title-size",
166
- "context": "Title"
167
- },
168
- {
169
- "token": "title-sans-serif-font-family",
170
- "context": "Title"
171
- },
172
- {
173
- "token": "title-sans-serif-font-weight",
174
- "context": "Title"
175
- },
176
- {
177
- "token": "title-sans-serif-font-style",
178
- "context": "Title"
179
- },
180
- {
181
- "token": "title-line-height",
182
- "context": "Title"
183
- },
184
- {
185
- "token": "contextual-help-body-size",
186
- "context": "Body"
187
- },
188
- {
189
- "token": "body-sans-serif-font-family",
190
- "context": "Body"
191
- },
192
- {
193
- "token": "body-sans-serif-font-weight",
194
- "context": "Body"
195
- },
196
- {
197
- "token": "body-sans-serif-font-style",
198
- "context": "Body"
199
- },
200
- {
201
- "token": "line-height-200",
202
- "context": "Body"
203
- },
204
- {
205
- "token": "title-color",
206
- "context": "Color"
207
- },
208
- {
209
- "token": "body-color",
210
- "context": "Color"
211
- }
119
+ { "token": "contextual-help-title-size", "context": "Title" },
120
+ { "token": "title-sans-serif-font-family", "context": "Title" },
121
+ { "token": "title-sans-serif-font-weight", "context": "Title" },
122
+ { "token": "title-sans-serif-font-style", "context": "Title" },
123
+ { "token": "title-line-height", "context": "Title" },
124
+ { "token": "contextual-help-body-size", "context": "Body" },
125
+ { "token": "body-sans-serif-font-family", "context": "Body" },
126
+ { "token": "body-sans-serif-font-weight", "context": "Body" },
127
+ { "token": "body-sans-serif-font-style", "context": "Body" },
128
+ { "token": "line-height-200", "context": "Body" },
129
+ { "token": "title-color", "context": "Color" },
130
+ { "token": "body-color", "context": "Color" }
212
131
  ],
213
132
  "accessibility": {
214
133
  "intents": ["trigger"],
215
134
  "focusable": true,
216
135
  "keyboardIntents": ["activate"],
217
136
  "wcag": [
218
- {
219
- "criterion": "2.1.1",
220
- "level": "A",
221
- "title": "Keyboard"
222
- },
223
- {
224
- "criterion": "4.1.2",
225
- "level": "A",
226
- "title": "Name, Role, Value"
227
- }
137
+ { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
138
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
228
139
  ]
229
140
  }
230
141
  }