@solexllc/usx-react 0.6.1 → 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 (84) hide show
  1. package/dist/index.cjs +231 -98
  2. package/dist/index.js +231 -98
  3. package/package.json +5 -5
  4. package/src/components/accordion/accordion.html +596 -291
  5. package/src/components/alert/alert.html +112 -148
  6. package/src/components/attribution/attribution.html +50 -21
  7. package/src/components/avatar/avatar.html +86 -51
  8. package/src/components/breadcrumb/breadcrumb.html +45 -66
  9. package/src/components/button/button.html +363 -226
  10. package/src/components/callout/Callout.tsx +1 -2
  11. package/src/components/callout/callout.django.html +2 -2
  12. package/src/components/callout/callout.html +0 -5
  13. package/src/components/callout/config.json +1 -5
  14. package/src/components/card/Card.tsx +6 -3
  15. package/src/components/card/card.django.html +2 -2
  16. package/src/components/card/card.html +1032 -35
  17. package/src/components/card/config.json +6 -2
  18. package/src/components/card-group/card-group.html +388 -95
  19. package/src/components/carousel/Carousel.tsx +42 -71
  20. package/src/components/carousel/carousel.django.html +22 -46
  21. package/src/components/carousel/carousel.html +715 -32
  22. package/src/components/carousel/config.json +25 -12
  23. package/src/components/character-count/character-count.html +231 -26
  24. package/src/components/checkbox/checkbox.html +313 -241
  25. package/src/components/checkbox-group/checkbox-group.html +346 -26
  26. package/src/components/clickable/clickable.html +168 -83
  27. package/src/components/code/Code.tsx +4 -3
  28. package/src/components/code/code.django.html +1 -1
  29. package/src/components/code/config.json +4 -0
  30. package/src/components/collection/collection.html +203 -379
  31. package/src/components/combobox/combobox.html +21 -9
  32. package/src/components/container/container.html +2616 -80
  33. package/src/components/copy-to-clipboard/copy-to-clipboard.html +48 -20
  34. package/src/components/details/Details.tsx +69 -0
  35. package/src/components/details/config.json +73 -0
  36. package/src/components/details/details.django.html +7 -0
  37. package/src/components/details/details.html +186 -0
  38. package/src/components/error-message/error-message.html +15 -2
  39. package/src/components/error-page/ErrorPage.tsx +169 -0
  40. package/src/components/error-page/config.json +152 -0
  41. package/src/components/error-page/error-page.django.html +80 -0
  42. package/src/components/error-page/error-page.html +437 -0
  43. package/src/components/eyebrow/eyebrow.html +8 -4
  44. package/src/components/fieldset/fieldset.html +33 -7
  45. package/src/components/file-input/file-input.html +310 -31
  46. package/src/components/file-list/file-list.html +191 -7
  47. package/src/components/footer/footer.html +611 -232
  48. package/src/components/header/header.html +2553 -611
  49. package/src/components/hero/hero.html +300 -38
  50. package/src/components/hint/hint.html +7 -2
  51. package/src/components/identifier/identifier.html +483 -255
  52. package/src/components/image/Image.tsx +2 -2
  53. package/src/components/image/image.django.html +4 -10
  54. package/src/components/image/image.html +144 -29
  55. package/src/components/indicator/indicator.html +25 -23
  56. package/src/components/label/label.html +15 -16
  57. package/src/components/language-selector/language-selector.html +74 -25
  58. package/src/components/layout/layout.html +991 -21
  59. package/src/components/legend/legend.html +10 -9
  60. package/src/components/list/list.html +45 -25
  61. package/src/components/page/Page.tsx +15 -2
  62. package/src/components/page/config.json +13 -1
  63. package/src/components/page/page.django.html +2 -2
  64. package/src/components/page/page.html +29 -8
  65. package/src/components/pagination/pagination.html +907 -305
  66. package/src/components/prose/prose.html +244 -85
  67. package/src/components/quote/Quote.tsx +1 -1
  68. package/src/components/quote/config.json +1 -2
  69. package/src/components/quote/quote.html +2 -7
  70. package/src/components/radio-buttons/radio-buttons.html +623 -127
  71. package/src/components/required/required.html +3 -4
  72. package/src/components/search/search.html +336 -54
  73. package/src/components/section/section.html +73 -11
  74. package/src/components/select/select.html +112 -58
  75. package/src/components/skipnav/skipnav.html +40 -1
  76. package/src/components/spinner/spinner.html +143 -23
  77. package/src/components/step-indicator/step-indicator.html +26 -68
  78. package/src/components/swap/swap.html +99 -154
  79. package/src/components/table/table.html +2168 -988
  80. package/src/components/tag/tag.html +73 -17
  81. package/src/components/task-list/task-list.html +252 -15
  82. package/src/components/theme-picker/theme-picker.html +26 -8
  83. package/src/components/toggle/toggle.html +64 -5
  84. package/src/index.js +2 -0
@@ -1,62 +1,116 @@
1
- <form class="usa-form">
2
- <div class="usa-form-group usx-form-group">
3
- <label class="usa-label" for="options">Dropdown label</label>
4
- <select class="usa-select usx-select" name="options" id="options">
5
- <option value>- Select -</option>
6
- <option value="value1">Option A</option>
7
- <option value="value2">Option B</option>
8
- <option value="value3">Option C</option>
9
- </select>
10
- </div>
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
- <form class="usa-form">
14
- <div class="usa-form-group usx-form-group usa-form-group--error">
15
- <label class="usa-label usa-label--error" for="select-with-error">Dropdown label</label>
16
- <span id="select-with-error-hint" class="usa-hint usx-hint">This is a select with an error message.</span>
17
- <span id="select-with-error-error" class="usa-error-message usx-error-message" role="alert">Selection error message</span>
18
- <select id="select-with-error" class="usa-select usx-select usa-input--error" name="options" aria-describedby="select-with-error-hint select-with-error-error" aria-invalid="true">
19
- <option value>- Select -</option>
20
- <option value="value1">Option A</option>
21
- <option value="value2">Option B</option>
22
- <option value="value3">Option C</option>
23
- </select>
24
- </div>
25
- </form>
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
- <form class="usa-form">
28
- <div class="usa-form-group usx-form-group">
29
- <label class="usa-label" for="select-with-success">Success state select</label>
30
- <select class="usa-select usx-select usa-input--success" name="options" id="select-with-success">
31
- <option value>- Select -</option>
32
- <option value="value1">Option A</option>
33
- <option value="value2">Option B</option>
34
- <option value="value3">Option C</option>
35
- </select>
36
- <span class="usa-success-message">Success message goes here.</span>
37
- </div>
38
- </form>
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
- <form class="usa-form">
41
- <div class="usa-form-group usx-form-group">
42
- <label class="usa-label" for="select-disabled">Disabled select</label>
43
- <select class="usa-select usx-select" id="select-disabled" name="options" disabled="disabled">
44
- <option value>- Select -</option>
45
- <option value="value1">Option A</option>
46
- <option value="value2">Option B</option>
47
- <option value="value3">Option C</option>
48
- </select>
49
- </div>
50
- </form>
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
- <form class="usa-form">
53
- <div class="usa-form-group usx-form-group usa-form-group--error">
54
- <label class="usa-label usa-label--error" for="select-disabled-error">Disabled with error</label>
55
- <select class="usa-select usx-select usa-input--error" id="select-disabled-error" name="options" disabled="disabled">
56
- <option value>- Select -</option>
57
- <option value="value1">Option A</option>
58
- <option value="value2">Option B</option>
59
- <option value="value3">Option C</option>
60
- </select>
61
- </div>
62
- </form>
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
- <a class="usa-skipnav" href="#main-content">Skip to main content</a>
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 class="usa-icon usx-spinner usa-icon--size-3 text-white" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-3 text-primary" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-4 text-primary" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-4 text-secondary" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-4 text-accent-cool" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-4 text-error" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-4 text-success" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usx-spinner--size-1 text-white" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-2 text-white" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-3 text-white" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-4 text-white" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-5 text-white" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-6 text-white" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-7 text-white" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-8 text-white" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-9 text-white" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-4 text-base-lightest" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-4 text-primary-light" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-4 text-secondary-light" aria-hidden="true" focusable="false">
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 class="usa-icon usx-spinner usa-icon--size-4 text-accent-cool-light" aria-hidden="true" focusable="false">
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
+ >