@solexllc/usx-react 0.6.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.
- package/dist/index.cjs +231 -98
- package/dist/index.js +231 -98
- package/package.json +5 -5
- package/src/components/accordion/accordion.html +596 -291
- package/src/components/alert/alert.html +112 -148
- package/src/components/attribution/attribution.html +50 -21
- package/src/components/avatar/avatar.html +86 -51
- package/src/components/breadcrumb/breadcrumb.html +45 -66
- package/src/components/button/button.html +363 -226
- package/src/components/callout/Callout.tsx +1 -2
- package/src/components/callout/callout.django.html +2 -2
- package/src/components/callout/callout.html +0 -5
- package/src/components/callout/config.json +1 -5
- package/src/components/card/Card.tsx +6 -3
- package/src/components/card/card.django.html +2 -2
- package/src/components/card/card.html +1032 -35
- package/src/components/card/config.json +6 -2
- package/src/components/card-group/card-group.html +388 -95
- package/src/components/carousel/Carousel.tsx +42 -71
- package/src/components/carousel/carousel.django.html +22 -46
- package/src/components/carousel/carousel.html +715 -32
- package/src/components/carousel/config.json +25 -12
- package/src/components/character-count/character-count.html +231 -26
- package/src/components/checkbox/checkbox.html +313 -241
- package/src/components/checkbox-group/checkbox-group.html +346 -26
- package/src/components/clickable/clickable.html +168 -83
- package/src/components/code/Code.tsx +4 -3
- package/src/components/code/code.django.html +1 -1
- package/src/components/code/config.json +4 -0
- package/src/components/collection/collection.html +203 -379
- package/src/components/combobox/combobox.html +21 -9
- package/src/components/container/container.html +2616 -80
- package/src/components/copy-to-clipboard/copy-to-clipboard.html +48 -20
- package/src/components/details/Details.tsx +69 -0
- package/src/components/details/config.json +73 -0
- package/src/components/details/details.django.html +7 -0
- package/src/components/details/details.html +186 -0
- package/src/components/error-message/error-message.html +15 -2
- package/src/components/error-page/ErrorPage.tsx +169 -0
- package/src/components/error-page/config.json +152 -0
- package/src/components/error-page/error-page.django.html +80 -0
- package/src/components/error-page/error-page.html +437 -0
- package/src/components/eyebrow/eyebrow.html +8 -4
- package/src/components/fieldset/fieldset.html +33 -7
- package/src/components/file-input/file-input.html +310 -31
- package/src/components/file-list/file-list.html +191 -7
- package/src/components/footer/footer.html +611 -232
- package/src/components/header/header.html +2553 -611
- package/src/components/hero/hero.html +300 -38
- package/src/components/hint/hint.html +7 -2
- package/src/components/identifier/identifier.html +483 -255
- package/src/components/image/Image.tsx +2 -2
- package/src/components/image/image.django.html +4 -10
- package/src/components/image/image.html +144 -29
- package/src/components/indicator/indicator.html +25 -23
- package/src/components/label/label.html +15 -16
- package/src/components/language-selector/language-selector.html +74 -25
- package/src/components/layout/layout.html +991 -21
- package/src/components/legend/legend.html +10 -9
- package/src/components/list/list.html +45 -25
- package/src/components/page/Page.tsx +15 -2
- package/src/components/page/config.json +13 -1
- package/src/components/page/page.django.html +2 -2
- package/src/components/page/page.html +29 -8
- package/src/components/pagination/pagination.html +907 -305
- package/src/components/prose/prose.html +244 -85
- package/src/components/quote/Quote.tsx +1 -1
- package/src/components/quote/config.json +1 -2
- package/src/components/quote/quote.html +2 -7
- package/src/components/radio-buttons/radio-buttons.html +623 -127
- package/src/components/required/required.html +3 -4
- package/src/components/search/search.html +336 -54
- package/src/components/section/section.html +73 -11
- package/src/components/select/select.html +112 -58
- package/src/components/skipnav/skipnav.html +40 -1
- package/src/components/spinner/spinner.html +143 -23
- package/src/components/step-indicator/step-indicator.html +26 -68
- package/src/components/swap/swap.html +99 -154
- package/src/components/table/table.html +2168 -988
- package/src/components/tag/tag.html +73 -17
- package/src/components/task-list/task-list.html +252 -15
- package/src/components/theme-picker/theme-picker.html +26 -8
- package/src/components/toggle/toggle.html +64 -5
- package/src/index.js +2 -0
|
@@ -1,62 +1,116 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
</form>
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<div class="usa-form-group usx-form-group">
|
|
3
|
+
<label class="usa-label usx-label" for="html-select-default-select-default">Dropdown label</label
|
|
4
|
+
><select id="html-select-default-select-default" class="usa-select usx-select">
|
|
5
|
+
<option value="">Select an option</option>
|
|
6
|
+
<option value="option1">Option A</option>
|
|
7
|
+
<option value="option2">Option B</option>
|
|
8
|
+
<option value="option3">Option C</option>
|
|
9
|
+
</select>
|
|
10
|
+
</div>
|
|
12
11
|
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
<h3 class="site-preview-heading">Error State</h3>
|
|
13
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
14
|
+
<label class="usa-label usx-label usa-label--error" for="html-select-error-state-select-error"
|
|
15
|
+
>Dropdown label</label
|
|
16
|
+
><span class="usa-hint usx-hint" id="html-select-error-state-select-error-hint"
|
|
17
|
+
>This is a select with an error message.</span
|
|
18
|
+
><span
|
|
19
|
+
class="usa-error-message usx-error-message"
|
|
20
|
+
role="alert"
|
|
21
|
+
id="html-select-error-state-select-error-error"
|
|
22
|
+
>Selection error message</span
|
|
23
|
+
><select
|
|
24
|
+
id="html-select-error-state-select-error"
|
|
25
|
+
class="usa-select usx-select usa-input--error"
|
|
26
|
+
aria-describedby="html-select-error-state-select-error-hint html-select-error-state-select-error-error"
|
|
27
|
+
aria-invalid="true"
|
|
28
|
+
>
|
|
29
|
+
<option value="">Select an option</option>
|
|
30
|
+
<option value="option1">Option A</option>
|
|
31
|
+
<option value="option2">Option B</option>
|
|
32
|
+
<option value="option3">Option C</option>
|
|
33
|
+
</select>
|
|
34
|
+
</div>
|
|
26
35
|
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
</
|
|
36
|
+
<h3 class="site-preview-heading">Success State</h3>
|
|
37
|
+
<div class="usa-form-group usx-form-group">
|
|
38
|
+
<label class="usa-label usx-label" for="html-select-success-state-select-success"
|
|
39
|
+
>Success state select</label
|
|
40
|
+
><select
|
|
41
|
+
id="html-select-success-state-select-success"
|
|
42
|
+
class="usa-select usx-select usa-input--success"
|
|
43
|
+
>
|
|
44
|
+
<option value="">Select an option</option>
|
|
45
|
+
<option value="option1">Option A</option>
|
|
46
|
+
<option value="option2">Option B</option>
|
|
47
|
+
<option value="option3">Option C</option></select
|
|
48
|
+
><span class="usa-success-message">Success message goes here.</span>
|
|
49
|
+
</div>
|
|
39
50
|
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</
|
|
49
|
-
</
|
|
50
|
-
</
|
|
51
|
+
<h3 class="site-preview-heading">Disabled</h3>
|
|
52
|
+
<div class="usa-form-group usx-form-group">
|
|
53
|
+
<label class="usa-label usx-label" for="html-select-disabled-select-disabled"
|
|
54
|
+
>Disabled select</label
|
|
55
|
+
><select id="html-select-disabled-select-disabled" class="usa-select usx-select" disabled="">
|
|
56
|
+
<option value="">Select an option</option>
|
|
57
|
+
<option value="option1">Option A</option>
|
|
58
|
+
<option value="option2">Option B</option>
|
|
59
|
+
<option value="option3">Option C</option>
|
|
60
|
+
</select>
|
|
61
|
+
</div>
|
|
51
62
|
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
<h3 class="site-preview-heading">Disabled With Error</h3>
|
|
64
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
65
|
+
<label
|
|
66
|
+
class="usa-label usx-label usa-label--error"
|
|
67
|
+
for="html-select-disabled-with-error-select-disabled-error"
|
|
68
|
+
>Disabled with error</label
|
|
69
|
+
><span
|
|
70
|
+
class="usa-error-message usx-error-message"
|
|
71
|
+
role="alert"
|
|
72
|
+
id="html-select-disabled-with-error-select-disabled-error-error"
|
|
73
|
+
>This field is disabled due to an error.</span
|
|
74
|
+
><select
|
|
75
|
+
id="html-select-disabled-with-error-select-disabled-error"
|
|
76
|
+
class="usa-select usx-select usa-input--error"
|
|
77
|
+
disabled=""
|
|
78
|
+
aria-describedby="html-select-disabled-with-error-select-disabled-error-error"
|
|
79
|
+
aria-invalid="true"
|
|
80
|
+
>
|
|
81
|
+
<option value="">Select an option</option>
|
|
82
|
+
<option value="option1">Option A</option>
|
|
83
|
+
<option value="option2">Option B</option>
|
|
84
|
+
<option value="option3">Option C</option>
|
|
85
|
+
</select>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<h3 class="site-preview-heading">Default Value</h3>
|
|
89
|
+
<div class="usa-form-group usx-form-group">
|
|
90
|
+
<label class="usa-label usx-label" for="html-select-default-value-select-default-value"
|
|
91
|
+
>Select with default value</label
|
|
92
|
+
><select id="html-select-default-value-select-default-value" class="usa-select usx-select">
|
|
93
|
+
<option value="">Select an option</option>
|
|
94
|
+
<option value="option1">Option A</option>
|
|
95
|
+
<option value="option2" selected="">Option B</option>
|
|
96
|
+
<option value="option3">Option C</option>
|
|
97
|
+
</select>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<h3 class="site-preview-heading">With Hint</h3>
|
|
101
|
+
<div class="usa-form-group usx-form-group">
|
|
102
|
+
<label class="usa-label usx-label" for="html-select-with-hint-select-with-hint"
|
|
103
|
+
>Select with hint</label
|
|
104
|
+
><span class="usa-hint usx-hint" id="html-select-with-hint-select-with-hint-hint"
|
|
105
|
+
>This is a helpful hint for the select.</span
|
|
106
|
+
><select
|
|
107
|
+
id="html-select-with-hint-select-with-hint"
|
|
108
|
+
class="usa-select usx-select"
|
|
109
|
+
aria-describedby="html-select-with-hint-select-with-hint-hint"
|
|
110
|
+
>
|
|
111
|
+
<option value="">Select an option</option>
|
|
112
|
+
<option value="option1">Option A</option>
|
|
113
|
+
<option value="option2">Option B</option>
|
|
114
|
+
<option value="option3">Option C</option>
|
|
115
|
+
</select>
|
|
116
|
+
</div>
|
|
@@ -1 +1,40 @@
|
|
|
1
|
-
<
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<a class="usa-skipnav" href="#html-skipnav-default-custom-target-1">Skip to main content</a>Click
|
|
3
|
+
<button class="usa-button usa-button--unstyled">here</button> and type "shift + tab" to focus the
|
|
4
|
+
Skipnav link, then press "enter" to jump to the target content below.
|
|
5
|
+
<div style="height: 1200px"></div>
|
|
6
|
+
<div
|
|
7
|
+
id="html-skipnav-default-custom-target-1"
|
|
8
|
+
style="padding: 24px; background: rgb(246, 247, 248)"
|
|
9
|
+
>
|
|
10
|
+
<h2>Storybook Target</h2>
|
|
11
|
+
<p>This is the simulated main content target for the Skipnav link.</p>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<h3 class="site-preview-heading">Custom Content</h3>
|
|
15
|
+
<a class="usa-skipnav" href="#html-skipnav-custom-content-custom-target-2"
|
|
16
|
+
><span class="text-accent-cool-dark">Skip to <strong>main content</strong></span></a
|
|
17
|
+
>Click <button class="usa-button usa-button--unstyled">here</button> and type "shift + tab" to focus
|
|
18
|
+
the Skipnav link, then press "enter" to jump to the target content below.
|
|
19
|
+
<div style="height: 1200px"></div>
|
|
20
|
+
<div
|
|
21
|
+
id="html-skipnav-custom-content-custom-target-2"
|
|
22
|
+
style="padding: 24px; background: rgb(246, 247, 248)"
|
|
23
|
+
>
|
|
24
|
+
<h2>Storybook Target</h2>
|
|
25
|
+
<p>This is the simulated main content target for the Skipnav link.</p>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<h3 class="site-preview-heading">With Children</h3>
|
|
29
|
+
<a class="usa-skipnav" href="#html-skipnav-with-children-custom-target-3"
|
|
30
|
+
><span class="text-secondary">Skip to <strong>main content</strong> with children</span></a
|
|
31
|
+
>Click <button class="usa-button usa-button--unstyled">here</button> and type "shift + tab" to focus
|
|
32
|
+
the Skipnav link, then press "enter" to jump to the target content below.
|
|
33
|
+
<div style="height: 1200px"></div>
|
|
34
|
+
<div
|
|
35
|
+
id="html-skipnav-with-children-custom-target-3"
|
|
36
|
+
style="padding: 24px; background: rgb(246, 247, 248)"
|
|
37
|
+
>
|
|
38
|
+
<h2>Storybook Target</h2>
|
|
39
|
+
<p>This is the simulated main content target for the Skipnav link.</p>
|
|
40
|
+
</div>
|
|
@@ -25,7 +25,11 @@
|
|
|
25
25
|
<h3 class="site-preview-heading">On dark background</h3>
|
|
26
26
|
<div class="bg-ink padding-3 display-inline-block">
|
|
27
27
|
<span role="status" aria-live="polite" tabindex="0">
|
|
28
|
-
<svg
|
|
28
|
+
<svg
|
|
29
|
+
class="usa-icon usx-spinner usa-icon--size-3 text-white"
|
|
30
|
+
aria-hidden="true"
|
|
31
|
+
focusable="false"
|
|
32
|
+
>
|
|
29
33
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
30
34
|
</svg>
|
|
31
35
|
<span class="usa-sr-only">Loading...</span>
|
|
@@ -34,14 +38,18 @@
|
|
|
34
38
|
|
|
35
39
|
<h3 class="site-preview-heading">With color</h3>
|
|
36
40
|
<span role="status" aria-live="polite" tabindex="0">
|
|
37
|
-
<svg
|
|
41
|
+
<svg
|
|
42
|
+
class="usa-icon usx-spinner usa-icon--size-3 text-primary"
|
|
43
|
+
aria-hidden="true"
|
|
44
|
+
focusable="false"
|
|
45
|
+
>
|
|
38
46
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
39
47
|
</svg>
|
|
40
48
|
<span class="usa-sr-only">Loading...</span>
|
|
41
49
|
</span>
|
|
42
50
|
|
|
43
51
|
<h3 class="site-preview-heading">Different Sizes</h3>
|
|
44
|
-
<div style="display: flex; gap: 1rem; align-items: center
|
|
52
|
+
<div style="display: flex; gap: 1rem; align-items: center">
|
|
45
53
|
<span role="status" aria-live="polite" tabindex="0">
|
|
46
54
|
<svg class="usa-icon usx-spinner usx-spinner--size-1" aria-hidden="true" focusable="false">
|
|
47
55
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
@@ -99,33 +107,53 @@
|
|
|
99
107
|
</div>
|
|
100
108
|
|
|
101
109
|
<h3 class="site-preview-heading">Different Colors</h3>
|
|
102
|
-
<div style="display: flex; gap: 1rem; align-items: center
|
|
110
|
+
<div style="display: flex; gap: 1rem; align-items: center">
|
|
103
111
|
<span role="status" aria-live="polite" tabindex="0">
|
|
104
|
-
<svg
|
|
112
|
+
<svg
|
|
113
|
+
class="usa-icon usx-spinner usa-icon--size-4 text-primary"
|
|
114
|
+
aria-hidden="true"
|
|
115
|
+
focusable="false"
|
|
116
|
+
>
|
|
105
117
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
106
118
|
</svg>
|
|
107
119
|
<span class="usa-sr-only">Loading...</span>
|
|
108
120
|
</span>
|
|
109
121
|
<span role="status" aria-live="polite" tabindex="0">
|
|
110
|
-
<svg
|
|
122
|
+
<svg
|
|
123
|
+
class="usa-icon usx-spinner usa-icon--size-4 text-secondary"
|
|
124
|
+
aria-hidden="true"
|
|
125
|
+
focusable="false"
|
|
126
|
+
>
|
|
111
127
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
112
128
|
</svg>
|
|
113
129
|
<span class="usa-sr-only">Loading...</span>
|
|
114
130
|
</span>
|
|
115
131
|
<span role="status" aria-live="polite" tabindex="0">
|
|
116
|
-
<svg
|
|
132
|
+
<svg
|
|
133
|
+
class="usa-icon usx-spinner usa-icon--size-4 text-accent-cool"
|
|
134
|
+
aria-hidden="true"
|
|
135
|
+
focusable="false"
|
|
136
|
+
>
|
|
117
137
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
118
138
|
</svg>
|
|
119
139
|
<span class="usa-sr-only">Loading...</span>
|
|
120
140
|
</span>
|
|
121
141
|
<span role="status" aria-live="polite" tabindex="0">
|
|
122
|
-
<svg
|
|
142
|
+
<svg
|
|
143
|
+
class="usa-icon usx-spinner usa-icon--size-4 text-error"
|
|
144
|
+
aria-hidden="true"
|
|
145
|
+
focusable="false"
|
|
146
|
+
>
|
|
123
147
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
124
148
|
</svg>
|
|
125
149
|
<span class="usa-sr-only">Loading...</span>
|
|
126
150
|
</span>
|
|
127
151
|
<span role="status" aria-live="polite" tabindex="0">
|
|
128
|
-
<svg
|
|
152
|
+
<svg
|
|
153
|
+
class="usa-icon usx-spinner usa-icon--size-4 text-success"
|
|
154
|
+
aria-hidden="true"
|
|
155
|
+
focusable="false"
|
|
156
|
+
>
|
|
129
157
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
130
158
|
</svg>
|
|
131
159
|
<span class="usa-sr-only">Loading...</span>
|
|
@@ -135,55 +163,91 @@
|
|
|
135
163
|
<h3 class="site-preview-heading">Different Sizes on Dark Background</h3>
|
|
136
164
|
<div class="bg-ink padding-3 display-inline-flex gap-4 flex-align-center">
|
|
137
165
|
<span role="status" aria-live="polite" tabindex="0">
|
|
138
|
-
<svg
|
|
166
|
+
<svg
|
|
167
|
+
class="usa-icon usx-spinner usx-spinner--size-1 text-white"
|
|
168
|
+
aria-hidden="true"
|
|
169
|
+
focusable="false"
|
|
170
|
+
>
|
|
139
171
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
140
172
|
</svg>
|
|
141
173
|
<span class="usa-sr-only">Loading...</span>
|
|
142
174
|
</span>
|
|
143
175
|
<span role="status" aria-live="polite" tabindex="0">
|
|
144
|
-
<svg
|
|
176
|
+
<svg
|
|
177
|
+
class="usa-icon usx-spinner usa-icon--size-2 text-white"
|
|
178
|
+
aria-hidden="true"
|
|
179
|
+
focusable="false"
|
|
180
|
+
>
|
|
145
181
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
146
182
|
</svg>
|
|
147
183
|
<span class="usa-sr-only">Loading...</span>
|
|
148
184
|
</span>
|
|
149
185
|
<span role="status" aria-live="polite" tabindex="0">
|
|
150
|
-
<svg
|
|
186
|
+
<svg
|
|
187
|
+
class="usa-icon usx-spinner usa-icon--size-3 text-white"
|
|
188
|
+
aria-hidden="true"
|
|
189
|
+
focusable="false"
|
|
190
|
+
>
|
|
151
191
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
152
192
|
</svg>
|
|
153
193
|
<span class="usa-sr-only">Loading...</span>
|
|
154
194
|
</span>
|
|
155
195
|
<span role="status" aria-live="polite" tabindex="0">
|
|
156
|
-
<svg
|
|
196
|
+
<svg
|
|
197
|
+
class="usa-icon usx-spinner usa-icon--size-4 text-white"
|
|
198
|
+
aria-hidden="true"
|
|
199
|
+
focusable="false"
|
|
200
|
+
>
|
|
157
201
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
158
202
|
</svg>
|
|
159
203
|
<span class="usa-sr-only">Loading...</span>
|
|
160
204
|
</span>
|
|
161
205
|
<span role="status" aria-live="polite" tabindex="0">
|
|
162
|
-
<svg
|
|
206
|
+
<svg
|
|
207
|
+
class="usa-icon usx-spinner usa-icon--size-5 text-white"
|
|
208
|
+
aria-hidden="true"
|
|
209
|
+
focusable="false"
|
|
210
|
+
>
|
|
163
211
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
164
212
|
</svg>
|
|
165
213
|
<span class="usa-sr-only">Loading...</span>
|
|
166
214
|
</span>
|
|
167
215
|
<span role="status" aria-live="polite" tabindex="0">
|
|
168
|
-
<svg
|
|
216
|
+
<svg
|
|
217
|
+
class="usa-icon usx-spinner usa-icon--size-6 text-white"
|
|
218
|
+
aria-hidden="true"
|
|
219
|
+
focusable="false"
|
|
220
|
+
>
|
|
169
221
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
170
222
|
</svg>
|
|
171
223
|
<span class="usa-sr-only">Loading...</span>
|
|
172
224
|
</span>
|
|
173
225
|
<span role="status" aria-live="polite" tabindex="0">
|
|
174
|
-
<svg
|
|
226
|
+
<svg
|
|
227
|
+
class="usa-icon usx-spinner usa-icon--size-7 text-white"
|
|
228
|
+
aria-hidden="true"
|
|
229
|
+
focusable="false"
|
|
230
|
+
>
|
|
175
231
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
176
232
|
</svg>
|
|
177
233
|
<span class="usa-sr-only">Loading...</span>
|
|
178
234
|
</span>
|
|
179
235
|
<span role="status" aria-live="polite" tabindex="0">
|
|
180
|
-
<svg
|
|
236
|
+
<svg
|
|
237
|
+
class="usa-icon usx-spinner usa-icon--size-8 text-white"
|
|
238
|
+
aria-hidden="true"
|
|
239
|
+
focusable="false"
|
|
240
|
+
>
|
|
181
241
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
182
242
|
</svg>
|
|
183
243
|
<span class="usa-sr-only">Loading...</span>
|
|
184
244
|
</span>
|
|
185
245
|
<span role="status" aria-live="polite" tabindex="0">
|
|
186
|
-
<svg
|
|
246
|
+
<svg
|
|
247
|
+
class="usa-icon usx-spinner usa-icon--size-9 text-white"
|
|
248
|
+
aria-hidden="true"
|
|
249
|
+
focusable="false"
|
|
250
|
+
>
|
|
187
251
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
188
252
|
</svg>
|
|
189
253
|
<span class="usa-sr-only">Loading...</span>
|
|
@@ -193,27 +257,83 @@
|
|
|
193
257
|
<h3 class="site-preview-heading">Different Colors on Dark Background</h3>
|
|
194
258
|
<div class="bg-ink padding-3 display-inline-flex gap-4 flex-align-center">
|
|
195
259
|
<span role="status" aria-live="polite" tabindex="0">
|
|
196
|
-
<svg
|
|
260
|
+
<svg
|
|
261
|
+
class="usa-icon usx-spinner usa-icon--size-4 text-base-lightest"
|
|
262
|
+
aria-hidden="true"
|
|
263
|
+
focusable="false"
|
|
264
|
+
>
|
|
197
265
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
198
266
|
</svg>
|
|
199
267
|
<span class="usa-sr-only">Loading...</span>
|
|
200
268
|
</span>
|
|
201
269
|
<span role="status" aria-live="polite" tabindex="0">
|
|
202
|
-
<svg
|
|
270
|
+
<svg
|
|
271
|
+
class="usa-icon usx-spinner usa-icon--size-4 text-primary-light"
|
|
272
|
+
aria-hidden="true"
|
|
273
|
+
focusable="false"
|
|
274
|
+
>
|
|
203
275
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
204
276
|
</svg>
|
|
205
277
|
<span class="usa-sr-only">Loading...</span>
|
|
206
278
|
</span>
|
|
207
279
|
<span role="status" aria-live="polite" tabindex="0">
|
|
208
|
-
<svg
|
|
280
|
+
<svg
|
|
281
|
+
class="usa-icon usx-spinner usa-icon--size-4 text-secondary-light"
|
|
282
|
+
aria-hidden="true"
|
|
283
|
+
focusable="false"
|
|
284
|
+
>
|
|
209
285
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
210
286
|
</svg>
|
|
211
287
|
<span class="usa-sr-only">Loading...</span>
|
|
212
288
|
</span>
|
|
213
289
|
<span role="status" aria-live="polite" tabindex="0">
|
|
214
|
-
<svg
|
|
290
|
+
<svg
|
|
291
|
+
class="usa-icon usx-spinner usa-icon--size-4 text-accent-cool-light"
|
|
292
|
+
aria-hidden="true"
|
|
293
|
+
focusable="false"
|
|
294
|
+
>
|
|
215
295
|
<use href="./img/usx-sprite.svg#spinner"></use>
|
|
216
296
|
</svg>
|
|
217
297
|
<span class="usa-sr-only">Loading...</span>
|
|
218
298
|
</span>
|
|
219
|
-
</div>
|
|
299
|
+
</div>
|
|
300
|
+
|
|
301
|
+
<h3 class="site-preview-heading">With Label</h3>
|
|
302
|
+
<span role="status" aria-live="polite" class="usx-spinner"
|
|
303
|
+
><svg
|
|
304
|
+
class="usa-icon usa-icon--size-3"
|
|
305
|
+
aria-hidden="true"
|
|
306
|
+
aria-label="spinner icon"
|
|
307
|
+
focusable="false"
|
|
308
|
+
role="img"
|
|
309
|
+
>
|
|
310
|
+
<use href="/img/usx-sprite.svg#spinner"></use></svg
|
|
311
|
+
><label class="usa-label usx-label">Loading...</label></span
|
|
312
|
+
>
|
|
313
|
+
|
|
314
|
+
<h3 class="site-preview-heading">With Screen Reader Label</h3>
|
|
315
|
+
<span role="status" aria-live="polite" class="usx-spinner"
|
|
316
|
+
><svg
|
|
317
|
+
class="usa-icon usa-icon--size-3"
|
|
318
|
+
aria-hidden="true"
|
|
319
|
+
aria-label="spinner icon"
|
|
320
|
+
focusable="false"
|
|
321
|
+
role="img"
|
|
322
|
+
>
|
|
323
|
+
<use href="/img/usx-sprite.svg#spinner"></use></svg
|
|
324
|
+
><label class="usa-label usx-label usa-sr-only">Loading...</label></span
|
|
325
|
+
>
|
|
326
|
+
|
|
327
|
+
<h3 class="site-preview-heading">With Tooltip</h3>
|
|
328
|
+
<span class="usx-tooltip"
|
|
329
|
+
><span role="status" aria-live="polite" class="usx-spinner"
|
|
330
|
+
><svg
|
|
331
|
+
class="usa-icon usa-icon--size-4"
|
|
332
|
+
aria-hidden="true"
|
|
333
|
+
aria-label="spinner icon"
|
|
334
|
+
focusable="false"
|
|
335
|
+
role="img"
|
|
336
|
+
>
|
|
337
|
+
<use href="/img/usx-sprite.svg#spinner"></use></svg></span
|
|
338
|
+
><span class="usa-tooltip__body usa-tooltip__body--top" role="tooltip">Loading...</span></span
|
|
339
|
+
>
|