@adobe/spectrum-design-data 0.4.0 → 0.6.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.
- package/components/accordion.json +108 -194
- package/components/action-bar.json +64 -97
- package/components/action-button.json +95 -230
- package/components/action-group.json +88 -86
- package/components/alert-banner.json +104 -76
- package/components/alert-dialog.json +78 -126
- package/components/avatar-group.json +61 -119
- package/components/avatar.json +98 -212
- package/components/badge.json +138 -256
- package/components/breadcrumbs.json +95 -89
- package/components/button-group.json +57 -48
- package/components/button.json +151 -368
- package/components/calendar.json +97 -34
- package/components/cards.json +109 -250
- package/components/checkbox-group.json +50 -58
- package/components/checkbox.json +121 -186
- package/components/close-button.json +61 -124
- package/components/coach-indicator.json +63 -72
- package/components/coach-mark.json +89 -93
- package/components/color-area.json +68 -94
- package/components/color-handle.json +39 -79
- package/components/color-loupe.json +35 -52
- package/components/color-slider.json +95 -116
- package/components/color-wheel.json +67 -73
- package/components/combo-box.json +243 -331
- package/components/contextual-help.json +86 -175
- package/components/date-picker.json +139 -179
- package/components/divider.json +30 -69
- package/components/drop-zone.json +51 -92
- package/components/field-label.json +75 -117
- package/components/help-text.json +81 -105
- package/components/illustrated-message.json +106 -73
- package/components/in-line-alert.json +50 -83
- package/components/link.json +63 -85
- package/components/list-view.json +107 -146
- package/components/menu.json +180 -274
- package/components/meter.json +72 -118
- package/components/number-field.json +213 -305
- package/components/picker.json +208 -320
- package/components/popover.json +94 -129
- package/components/progress-bar.json +94 -131
- package/components/progress-circle.json +45 -72
- package/components/radio-button.json +87 -156
- package/components/radio-group.json +107 -74
- package/components/rating.json +66 -99
- package/components/search-field.json +132 -202
- package/components/segmented-control.json +94 -109
- package/components/select-box.json +119 -179
- package/components/side-navigation.json +108 -118
- package/components/slider.json +143 -228
- package/components/standard-dialog.json +96 -114
- package/components/standard-panel.json +105 -53
- package/components/status-light.json +104 -240
- package/components/steplist.json +77 -161
- package/components/swatch-group.json +42 -58
- package/components/swatch.json +75 -162
- package/components/switch.json +101 -189
- package/components/table.json +97 -102
- package/components/tabs.json +77 -104
- package/components/tag-field.json +86 -150
- package/components/tag-group.json +50 -44
- package/components/tag.json +81 -198
- package/components/takeover-dialog.json +59 -57
- package/components/text-area.json +200 -323
- package/components/text-field.json +183 -304
- package/components/thumbnail.json +63 -105
- package/components/toast.json +97 -83
- package/components/tooltip.json +104 -96
- package/components/tree-view.json +169 -181
- package/guidelines/app-frame-content-area.json +87 -0
- package/guidelines/app-frame-creating-bluelines.json +61 -0
- package/guidelines/app-frame-header.json +75 -0
- package/guidelines/app-frame-overview.json +167 -0
- package/guidelines/app-frame-side-navigation.json +138 -0
- package/guidelines/attention-hierarchy.json +42 -0
- package/guidelines/background-layers.json +41 -0
- package/guidelines/brand.json +50 -0
- package/guidelines/colors.json +65 -0
- package/guidelines/containers.json +65 -0
- package/guidelines/developer-overview.json +38 -0
- package/guidelines/faqs.json +35 -0
- package/guidelines/fonts.json +58 -0
- package/guidelines/grays.json +69 -0
- package/guidelines/icon-fundamentals.json +45 -0
- package/guidelines/illustrations.json +114 -0
- package/guidelines/introduction.json +34 -0
- package/guidelines/manifest.json +204 -0
- package/guidelines/motion.json +41 -0
- package/guidelines/object-styles.json +105 -0
- package/guidelines/principles.json +30 -0
- package/guidelines/resources.json +59 -0
- package/guidelines/spacing.json +25 -0
- package/guidelines/states.json +34 -0
- package/guidelines/typography-fundamentals.json +145 -0
- package/guidelines/using-icons.json +110 -0
- package/package.json +5 -2
package/components/meter.json
CHANGED
|
@@ -9,101 +9,86 @@
|
|
|
9
9
|
"category": "status",
|
|
10
10
|
"documentationUrl": "https://spectrum.adobe.com/page/meter/"
|
|
11
11
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"type": "
|
|
15
|
-
"
|
|
16
|
-
"values": [
|
|
17
|
-
{
|
|
18
|
-
"value": "informative"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"value": "positive"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"value": "notice"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"value": "negative"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"label": {
|
|
32
|
-
"type": "string"
|
|
33
|
-
},
|
|
34
|
-
"hideLabel": {
|
|
35
|
-
"type": "boolean",
|
|
36
|
-
"default": false
|
|
37
|
-
},
|
|
38
|
-
"valueLabel": {
|
|
39
|
-
"type": "string"
|
|
40
|
-
},
|
|
41
|
-
"width": {
|
|
42
|
-
"type": "number"
|
|
43
|
-
},
|
|
44
|
-
"size": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"default": "m",
|
|
47
|
-
"values": [
|
|
48
|
-
{
|
|
49
|
-
"value": "s"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"value": "m"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"value": "l"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"value": "xl"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
12
|
+
"documentBlocks": [
|
|
13
|
+
{
|
|
14
|
+
"type": "purpose",
|
|
15
|
+
"content": "Meters are visual representations of a quantity or an achievement. Their progress is determined by user actions, rather than system actions."
|
|
61
16
|
},
|
|
62
|
-
|
|
63
|
-
"type": "
|
|
64
|
-
"
|
|
65
|
-
"maximum": 1
|
|
17
|
+
{
|
|
18
|
+
"type": "guideline",
|
|
19
|
+
"content": "A meter can include help text below it to explain what the value means and how to reach the target. This text may include units, value ranges, thresholds like targets or warnings, and actions that affect the meter."
|
|
66
20
|
},
|
|
67
|
-
"helpText": {
|
|
68
|
-
"type": "string"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"lifecycle": {
|
|
72
|
-
"introduced": "1.0.0-draft"
|
|
73
|
-
},
|
|
74
|
-
"tokenBindings": [
|
|
75
21
|
{
|
|
76
|
-
"
|
|
77
|
-
"
|
|
22
|
+
"type": "guideline",
|
|
23
|
+
"content": "The value represents a user-driven quantity or achievement, such as tutorials completed or storage used. Unlike a progress bar, it reflects user actions, not system activity."
|
|
78
24
|
},
|
|
79
25
|
{
|
|
80
|
-
"
|
|
81
|
-
"
|
|
26
|
+
"type": "guideline",
|
|
27
|
+
"content": "Meters come in four different sizes: small, medium, large, and extra-large. By default, meters use medium size. Use the small size when there are multiple meters shown at the same time in a more confined space, such as in tables or cards."
|
|
82
28
|
},
|
|
83
29
|
{
|
|
84
|
-
"
|
|
85
|
-
"
|
|
30
|
+
"type": "guideline",
|
|
31
|
+
"content": "Meters can include a value label to show details like “60%” or “2 of 8.” It should only appear if the main label is shown and is always placed above the track."
|
|
86
32
|
},
|
|
87
33
|
{
|
|
88
|
-
"
|
|
89
|
-
"
|
|
34
|
+
"type": "guideline",
|
|
35
|
+
"content": "Meters should always have a label placed above the track. In rare cases where context is sufficient and an accessibility expert has reviewed the design, the label could be undefined. These meters without a visible label should still include an aria-label in HTML (depending on the context, “aria-label” or “aria-labelledby”)."
|
|
90
36
|
},
|
|
91
37
|
{
|
|
92
|
-
"
|
|
93
|
-
"
|
|
38
|
+
"type": "guideline",
|
|
39
|
+
"content": "Meter has four variants: informative, positive, notice, and negative."
|
|
94
40
|
},
|
|
95
41
|
{
|
|
96
|
-
"
|
|
97
|
-
"
|
|
42
|
+
"type": "guideline",
|
|
43
|
+
"content": "When the label is too long for the available horizontal space, it wraps to form another line. The value is always shown in full and never wraps or truncates."
|
|
98
44
|
},
|
|
99
45
|
{
|
|
100
|
-
"
|
|
101
|
-
"
|
|
46
|
+
"type": "guideline",
|
|
47
|
+
"content": "Use the built-in style for showing a label associated with the meter. By default, the label is start-aligned and an optional value is end-aligned above the track. (In left-to-right languages, this means the label appears on the left and the value on the right; in right-to-left languages, this flips.) The label should be written in sentence case."
|
|
102
48
|
},
|
|
103
49
|
{
|
|
104
|
-
"
|
|
105
|
-
"
|
|
50
|
+
"type": "guideline",
|
|
51
|
+
"content": "Meter variants can be used to represent semantic values by switching variants as the value changes, from positive, to notice, and then to negative. This kind of variant switching should be handled appropriately within the context of your product so that you’re setting accurate expectations for your users about the semantic meaning."
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"options": {
|
|
55
|
+
"variant": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"default": "informative",
|
|
58
|
+
"values": [
|
|
59
|
+
{ "value": "informative" },
|
|
60
|
+
{ "value": "positive" },
|
|
61
|
+
{ "value": "notice" },
|
|
62
|
+
{ "value": "negative" }
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"label": { "type": "string" },
|
|
66
|
+
"hideLabel": { "type": "boolean", "default": false },
|
|
67
|
+
"valueLabel": { "type": "string" },
|
|
68
|
+
"width": { "type": "number" },
|
|
69
|
+
"size": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"default": "m",
|
|
72
|
+
"values": [
|
|
73
|
+
{ "value": "s" },
|
|
74
|
+
{ "value": "m" },
|
|
75
|
+
{ "value": "l" },
|
|
76
|
+
{ "value": "xl" }
|
|
77
|
+
]
|
|
106
78
|
},
|
|
79
|
+
"value": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
80
|
+
"helpText": { "type": "string" }
|
|
81
|
+
},
|
|
82
|
+
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
83
|
+
"tokenBindings": [
|
|
84
|
+
{ "token": "meter-minimum-width", "context": "Minimum width" },
|
|
85
|
+
{ "token": "meter-maximum-width", "context": "Maximum width" },
|
|
86
|
+
{ "token": "font-size-75", "context": "Text" },
|
|
87
|
+
{ "token": "font-size-100", "context": "Text" },
|
|
88
|
+
{ "token": "font-size-200", "context": "Text" },
|
|
89
|
+
{ "token": "font-size-300", "context": "Text" },
|
|
90
|
+
{ "token": "line-height-100", "context": "Text" },
|
|
91
|
+
{ "token": "cjk-line-height-100", "context": "Text" },
|
|
107
92
|
{
|
|
108
93
|
"token": "spacing-75",
|
|
109
94
|
"context": "Spacing (field label to progress bar)"
|
|
@@ -128,42 +113,18 @@
|
|
|
128
113
|
"token": "spacing-200",
|
|
129
114
|
"context": "Minimum spacing (field label to text)"
|
|
130
115
|
},
|
|
131
|
-
{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"token": "meter-thickness-large",
|
|
141
|
-
"context": "Meter (thickness)"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"token": "meter-thickness-extra-large",
|
|
145
|
-
"context": "Meter (thickness)"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"token": "corner-radius-full",
|
|
149
|
-
"context": "Meter (rounding)"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"token": "neutral-subdued-content-color-default",
|
|
153
|
-
"context": "Text"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"token": "track-color",
|
|
157
|
-
"context": "Track and indicator"
|
|
158
|
-
},
|
|
116
|
+
{ "token": "meter-thickness-small", "context": "Meter (thickness)" },
|
|
117
|
+
{ "token": "meter-thickness-medium", "context": "Meter (thickness)" },
|
|
118
|
+
{ "token": "meter-thickness-large", "context": "Meter (thickness)" },
|
|
119
|
+
{ "token": "meter-thickness-extra-large", "context": "Meter (thickness)" },
|
|
120
|
+
{ "token": "corner-radius-full", "context": "Meter (rounding)" },
|
|
121
|
+
{ "token": "neutral-subdued-content-color-default", "context": "Text" },
|
|
122
|
+
{ "token": "track-color", "context": "Track and indicator" },
|
|
159
123
|
{
|
|
160
124
|
"token": "accent-content-color-default",
|
|
161
125
|
"context": "Track and indicator"
|
|
162
126
|
},
|
|
163
|
-
{
|
|
164
|
-
"token": "static-black-text-color",
|
|
165
|
-
"context": "Text (black)"
|
|
166
|
-
},
|
|
127
|
+
{ "token": "static-black-text-color", "context": "Text (black)" },
|
|
167
128
|
{
|
|
168
129
|
"token": "static-black-track-color",
|
|
169
130
|
"context": "Track and indicator (black)"
|
|
@@ -172,10 +133,7 @@
|
|
|
172
133
|
"token": "static-black-track-indicator-color",
|
|
173
134
|
"context": "Track and indicator (black)"
|
|
174
135
|
},
|
|
175
|
-
{
|
|
176
|
-
"token": "static-white-text-color",
|
|
177
|
-
"context": "Text (white)"
|
|
178
|
-
},
|
|
136
|
+
{ "token": "static-white-text-color", "context": "Text (white)" },
|
|
179
137
|
{
|
|
180
138
|
"token": "static-white-track-color",
|
|
181
139
|
"context": "Track and indicator (white)"
|
|
@@ -189,11 +147,7 @@
|
|
|
189
147
|
"role": "meter",
|
|
190
148
|
"focusable": false,
|
|
191
149
|
"wcag": [
|
|
192
|
-
{
|
|
193
|
-
"criterion": "4.1.2",
|
|
194
|
-
"level": "A",
|
|
195
|
-
"title": "Name, Role, Value"
|
|
196
|
-
}
|
|
150
|
+
{ "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
|
|
197
151
|
]
|
|
198
152
|
}
|
|
199
153
|
}
|