@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,4 +1,8 @@
1
- <h1>
2
- <span class="usx-eyebrow">Eyebrow Title</span>
3
- Headline H1
4
- </h1>
1
+ <h3 class="site-preview-heading">In H 1</h3>
2
+ <h1><span class="usx-eyebrow">Page Title</span>Full Page Title</h1>
3
+
4
+ <h3 class="site-preview-heading">In H 2</h3>
5
+ <h2><span class="usx-eyebrow">Section Heading</span>Full Section Heading</h2>
6
+
7
+ <h3 class="site-preview-heading">In H 3</h3>
8
+ <h3><span class="usx-eyebrow">Subsection</span>Full Subsection</h3>
@@ -1,17 +1,43 @@
1
1
  <h3 class="site-preview-heading">Default</h3>
2
2
  <fieldset class="usa-fieldset usx-fieldset">
3
- <legend class="usa-legend usx-legend">Fieldset legend</legend>
3
+ <legend class="usa-legend usx-legend">Fieldset Legend</legend>
4
4
  <label class="usa-checkbox__label">Hello world</label>
5
5
  </fieldset>
6
6
 
7
- <h3 class="site-preview-heading">With additional class</h3>
7
+ <h3 class="site-preview-heading">No Legend</h3>
8
+ <fieldset class="usa-fieldset usx-fieldset">
9
+ <label class="usa-checkbox__label">Hello world</label>
10
+ </fieldset>
11
+
12
+ <h3 class="site-preview-heading">Required Legend</h3>
13
+ <fieldset class="usa-fieldset usx-fieldset">
14
+ <legend class="usa-legend usx-legend">
15
+ <abbr title="Required" class="usx-required">*</abbr> Required Fieldset
16
+ </legend>
17
+ <label class="usa-checkbox__label">Hello world</label>
18
+ </fieldset>
19
+
20
+ <h3 class="site-preview-heading">With Custom Class</h3>
8
21
  <fieldset class="usa-fieldset usx-fieldset border-1px border-base padding-2">
9
- <legend class="usa-legend usx-legend">Fieldset legend</legend>
22
+ <legend class="usa-legend usx-legend">Custom Class Fieldset</legend>
10
23
  <label class="usa-checkbox__label">Hello world</label>
11
24
  </fieldset>
12
25
 
13
- <h3 class="site-preview-heading">Disabled</h3>
14
- <fieldset class="usa-fieldset usx-fieldset" disabled>
15
- <legend class="usa-legend usx-legend">Fieldset legend</legend>
26
+ <h3 class="site-preview-heading">Large Legend</h3>
27
+ <fieldset class="usa-fieldset usx-fieldset">
28
+ <legend class="usa-legend usx-legend usa-legend--large">Large Legend Fieldset</legend>
16
29
  <label class="usa-checkbox__label">Hello world</label>
17
- </fieldset>
30
+ </fieldset>
31
+
32
+ <h3 class="site-preview-heading">Disabled</h3>
33
+ <fieldset class="usa-fieldset usx-fieldset" disabled="">
34
+ <legend class="usa-legend usx-legend">Disabled Fieldset</legend>
35
+ <div class="usa-form-group usx-form-group">
36
+ <label class="usa-label usx-label" for="html-fieldset-disabled-lonely-input">Lonely input</label
37
+ ><input
38
+ id="html-fieldset-disabled-lonely-input"
39
+ class="usa-input usx-input"
40
+ placeholder="Type here..."
41
+ />
42
+ </div>
43
+ </fieldset>
@@ -1,12 +1,19 @@
1
1
  <!-- Default -->
2
2
  <div class="usa-form-group usx-form-group">
3
3
  <label class="usa-label usx-label" for="file-input-single">Input accepts a single file</label>
4
- <input class="usa-file-input usx-file-input" id="file-input-single" type="file" name="file-input-single" />
4
+ <input
5
+ class="usa-file-input usx-file-input"
6
+ id="file-input-single"
7
+ type="file"
8
+ name="file-input-single"
9
+ />
5
10
  </div>
6
11
 
7
12
  <!-- AcceptSpecificTypes -->
8
13
  <div class="usa-form-group usx-form-group">
9
- <label class="usa-label usx-label" for="file-input-specific">Input accepts only specific file types</label>
14
+ <label class="usa-label usx-label" for="file-input-specific"
15
+ >Input accepts only specific file types</label
16
+ >
10
17
  <span class="usa-hint usx-hint" id="file-input-specific-hint">Select PDF or TXT files</span>
11
18
  <input
12
19
  class="usa-file-input usx-file-input"
@@ -49,9 +56,13 @@
49
56
 
50
57
  <!-- WithError -->
51
58
  <div class="usa-form-group usx-form-group usa-form-group--error">
52
- <label class="usa-label usx-label usa-label--error" for="file-input-error">Input has an error</label>
59
+ <label class="usa-label usx-label usa-label--error" for="file-input-error"
60
+ >Input has an error</label
61
+ >
53
62
  <span class="usa-hint usx-hint" id="file-input-error-hint">Select any valid file</span>
54
- <span class="usa-error-message usx-error-message" id="file-input-error-error" role="alert">Display a helpful error message</span>
63
+ <span class="usa-error-message usx-error-message" id="file-input-error-error" role="alert"
64
+ >Display a helpful error message</span
65
+ >
55
66
  <input
56
67
  class="usa-file-input usx-file-input"
57
68
  id="file-input-error"
@@ -64,7 +75,13 @@
64
75
  <!-- Disabled -->
65
76
  <div class="usa-form-group usx-form-group">
66
77
  <label class="usa-label usx-label" for="file-input-disabled">Disabled input</label>
67
- <input class="usa-file-input usx-file-input" id="file-input-disabled" type="file" name="file-input-disabled" disabled />
78
+ <input
79
+ class="usa-file-input usx-file-input"
80
+ id="file-input-disabled"
81
+ type="file"
82
+ name="file-input-disabled"
83
+ disabled
84
+ />
68
85
  </div>
69
86
 
70
87
  <!-- ManagedMultiple (static snapshot; interactive Delete requires React) -->
@@ -89,8 +106,16 @@
89
106
  <span class="usx-file-input__file-name">test1.jpg</span>
90
107
  <span class="usx-file-input__file-size">JPG, 7 KB</span>
91
108
  </div>
92
- <button type="button" class="usa-button usx-button usa-button--secondary usx-file-input__delete-button">
93
- <svg class="usa-icon usx-file-input__delete-icon" aria-hidden="true" focusable="false" role="img">
109
+ <button
110
+ type="button"
111
+ class="usa-button usx-button usa-button--secondary usx-file-input__delete-button"
112
+ >
113
+ <svg
114
+ class="usa-icon usx-file-input__delete-icon"
115
+ aria-hidden="true"
116
+ focusable="false"
117
+ role="img"
118
+ >
94
119
  <use href="./img/sprite.svg#delete"></use>
95
120
  </svg>
96
121
  <span class="usx-file-input__delete-label">Delete</span>
@@ -101,8 +126,16 @@
101
126
  <span class="usx-file-input__file-name">test2.jpg</span>
102
127
  <span class="usx-file-input__file-size">JPG, 7 KB</span>
103
128
  </div>
104
- <button type="button" class="usa-button usx-button usa-button--secondary usx-file-input__delete-button">
105
- <svg class="usa-icon usx-file-input__delete-icon" aria-hidden="true" focusable="false" role="img">
129
+ <button
130
+ type="button"
131
+ class="usa-button usx-button usa-button--secondary usx-file-input__delete-button"
132
+ >
133
+ <svg
134
+ class="usa-icon usx-file-input__delete-icon"
135
+ aria-hidden="true"
136
+ focusable="false"
137
+ role="img"
138
+ >
106
139
  <use href="./img/sprite.svg#delete"></use>
107
140
  </svg>
108
141
  <span class="usx-file-input__delete-label">Delete</span>
@@ -114,8 +147,12 @@
114
147
 
115
148
  <!-- PreloadedDownloadable (static snapshot; interactive Delete requires React) -->
116
149
  <div class="usa-form-group usx-form-group">
117
- <label class="usa-label usx-label" for="file-input-preloaded-downloadable">Supporting documents</label>
118
- <span class="usa-hint usx-hint" id="file-input-preloaded-downloadable-hint">Select one or more files</span>
150
+ <label class="usa-label usx-label" for="file-input-preloaded-downloadable"
151
+ >Supporting documents</label
152
+ >
153
+ <span class="usa-hint usx-hint" id="file-input-preloaded-downloadable-hint"
154
+ >Select one or more files</span
155
+ >
119
156
  <div class="usx-file-input__add-only">
120
157
  <input
121
158
  class="usa-file-input usx-file-input"
@@ -131,11 +168,25 @@
131
168
  <ul class="usx-file-input__file-list">
132
169
  <li class="usx-file-input__file-item">
133
170
  <div class="usx-file-input__file-info">
134
- <a class="usa-link usx-link usa-link--external usx-file-input__file-name" rel="noreferrer noopener" target="_blank" href="#">w2-2023.pdf</a>
171
+ <a
172
+ class="usa-link usx-link usa-link--external usx-file-input__file-name"
173
+ rel="noreferrer noopener"
174
+ target="_blank"
175
+ href="#"
176
+ >w2-2023.pdf</a
177
+ >
135
178
  <span class="usx-file-input__file-size">PDF, 240 KB</span>
136
179
  </div>
137
- <button type="button" class="usa-button usx-button usa-button--secondary usx-file-input__delete-button">
138
- <svg class="usa-icon usx-file-input__delete-icon" aria-hidden="true" focusable="false" role="img">
180
+ <button
181
+ type="button"
182
+ class="usa-button usx-button usa-button--secondary usx-file-input__delete-button"
183
+ >
184
+ <svg
185
+ class="usa-icon usx-file-input__delete-icon"
186
+ aria-hidden="true"
187
+ focusable="false"
188
+ role="img"
189
+ >
139
190
  <use href="./img/sprite.svg#delete"></use>
140
191
  </svg>
141
192
  <span class="usx-file-input__delete-label">Delete</span>
@@ -147,8 +198,12 @@
147
198
 
148
199
  <!-- PreloadedDisabled (static snapshot; fully locked, read-only record of already-submitted files) -->
149
200
  <div class="usa-form-group usx-form-group">
150
- <label class="usa-label usx-label" for="file-input-preloaded-disabled">Supporting documents</label>
151
- <span class="usa-hint usx-hint" id="file-input-preloaded-disabled-hint">These files were submitted with your application</span>
201
+ <label class="usa-label usx-label" for="file-input-preloaded-disabled"
202
+ >Supporting documents</label
203
+ >
204
+ <span class="usa-hint usx-hint" id="file-input-preloaded-disabled-hint"
205
+ >These files were submitted with your application</span
206
+ >
152
207
  <div class="usx-file-input__add-only">
153
208
  <input
154
209
  class="usa-file-input usx-file-input"
@@ -165,11 +220,26 @@
165
220
  <ul class="usx-file-input__file-list">
166
221
  <li class="usx-file-input__file-item">
167
222
  <div class="usx-file-input__file-info">
168
- <a class="usa-link usx-link usa-link--external usx-file-input__file-name" rel="noreferrer noopener" target="_blank" href="#">w2-2023.pdf</a>
223
+ <a
224
+ class="usa-link usx-link usa-link--external usx-file-input__file-name"
225
+ rel="noreferrer noopener"
226
+ target="_blank"
227
+ href="#"
228
+ >w2-2023.pdf</a
229
+ >
169
230
  <span class="usx-file-input__file-size">PDF, 240 KB</span>
170
231
  </div>
171
- <button type="button" class="usa-button usx-button usa-button--secondary usx-file-input__delete-button" disabled>
172
- <svg class="usa-icon usx-file-input__delete-icon" aria-hidden="true" focusable="false" role="img">
232
+ <button
233
+ type="button"
234
+ class="usa-button usx-button usa-button--secondary usx-file-input__delete-button"
235
+ disabled
236
+ >
237
+ <svg
238
+ class="usa-icon usx-file-input__delete-icon"
239
+ aria-hidden="true"
240
+ focusable="false"
241
+ role="img"
242
+ >
173
243
  <use href="./img/sprite.svg#delete"></use>
174
244
  </svg>
175
245
  <span class="usx-file-input__delete-label">Delete</span>
@@ -181,8 +251,12 @@
181
251
 
182
252
  <!-- PreloadedNameOnly (static snapshot; a filename with no size or download link) -->
183
253
  <div class="usa-form-group usx-form-group">
184
- <label class="usa-label usx-label" for="file-input-preloaded-name-only">Supporting documents</label>
185
- <span class="usa-hint usx-hint" id="file-input-preloaded-name-only-hint">Select one or more files</span>
254
+ <label class="usa-label usx-label" for="file-input-preloaded-name-only"
255
+ >Supporting documents</label
256
+ >
257
+ <span class="usa-hint usx-hint" id="file-input-preloaded-name-only-hint"
258
+ >Select one or more files</span
259
+ >
186
260
  <div class="usx-file-input__add-only">
187
261
  <input
188
262
  class="usa-file-input usx-file-input"
@@ -200,8 +274,16 @@
200
274
  <div class="usx-file-input__file-info">
201
275
  <span class="usx-file-input__file-name">government-id.jpg</span>
202
276
  </div>
203
- <button type="button" class="usa-button usx-button usa-button--secondary usx-file-input__delete-button">
204
- <svg class="usa-icon usx-file-input__delete-icon" aria-hidden="true" focusable="false" role="img">
277
+ <button
278
+ type="button"
279
+ class="usa-button usx-button usa-button--secondary usx-file-input__delete-button"
280
+ >
281
+ <svg
282
+ class="usa-icon usx-file-input__delete-icon"
283
+ aria-hidden="true"
284
+ focusable="false"
285
+ role="img"
286
+ >
205
287
  <use href="./img/sprite.svg#delete"></use>
206
288
  </svg>
207
289
  <span class="usx-file-input__delete-label">Delete</span>
@@ -213,8 +295,12 @@
213
295
 
214
296
  <!-- LongFileName (static snapshot; long filenames should wrap, not overflow, and never push the Delete button out of view — check on both desktop and mobile) -->
215
297
  <div class="usa-form-group usx-form-group">
216
- <label class="usa-label usx-label" for="file-input-long-file-name">Upload supporting documents</label>
217
- <span class="usa-hint usx-hint" id="file-input-long-file-name-hint">Select one or more files</span>
298
+ <label class="usa-label usx-label" for="file-input-long-file-name"
299
+ >Upload supporting documents</label
300
+ >
301
+ <span class="usa-hint usx-hint" id="file-input-long-file-name-hint"
302
+ >Select one or more files</span
303
+ >
218
304
  <div class="usx-file-input__add-only">
219
305
  <input
220
306
  class="usa-file-input usx-file-input"
@@ -230,11 +316,21 @@
230
316
  <ul class="usx-file-input__file-list">
231
317
  <li class="usx-file-input__file-item">
232
318
  <div class="usx-file-input__file-info">
233
- <span class="usx-file-input__file-name">this-is-an-unusually-long-supporting-document-filename-used-to-verify-wrapping-behavior.pdf</span>
319
+ <span class="usx-file-input__file-name"
320
+ >this-is-an-unusually-long-supporting-document-filename-used-to-verify-wrapping-behavior.pdf</span
321
+ >
234
322
  <span class="usx-file-input__file-size">PDF, 1.8 MB</span>
235
323
  </div>
236
- <button type="button" class="usa-button usx-button usa-button--secondary usx-file-input__delete-button">
237
- <svg class="usa-icon usx-file-input__delete-icon" aria-hidden="true" focusable="false" role="img">
324
+ <button
325
+ type="button"
326
+ class="usa-button usx-button usa-button--secondary usx-file-input__delete-button"
327
+ >
328
+ <svg
329
+ class="usa-icon usx-file-input__delete-icon"
330
+ aria-hidden="true"
331
+ focusable="false"
332
+ role="img"
333
+ >
238
334
  <use href="./img/sprite.svg#delete"></use>
239
335
  </svg>
240
336
  <span class="usx-file-input__delete-label">Delete</span>
@@ -242,11 +338,25 @@
242
338
  </li>
243
339
  <li class="usx-file-input__file-item">
244
340
  <div class="usx-file-input__file-info">
245
- <a class="usa-link usx-link usa-link--external usx-file-input__file-name" rel="noreferrer noopener" target="_blank" href="#">another-extremely-long-filename-for-a-downloadable-preloaded-file-to-check-the-download-icon-and-link-wrapping.pdf</a>
341
+ <a
342
+ class="usa-link usx-link usa-link--external usx-file-input__file-name"
343
+ rel="noreferrer noopener"
344
+ target="_blank"
345
+ href="#"
346
+ >another-extremely-long-filename-for-a-downloadable-preloaded-file-to-check-the-download-icon-and-link-wrapping.pdf</a
347
+ >
246
348
  <span class="usx-file-input__file-size">PDF, 500 KB</span>
247
349
  </div>
248
- <button type="button" class="usa-button usx-button usa-button--secondary usx-file-input__delete-button">
249
- <svg class="usa-icon usx-file-input__delete-icon" aria-hidden="true" focusable="false" role="img">
350
+ <button
351
+ type="button"
352
+ class="usa-button usx-button usa-button--secondary usx-file-input__delete-button"
353
+ >
354
+ <svg
355
+ class="usa-icon usx-file-input__delete-icon"
356
+ aria-hidden="true"
357
+ focusable="false"
358
+ role="img"
359
+ >
250
360
  <use href="./img/sprite.svg#delete"></use>
251
361
  </svg>
252
362
  <span class="usx-file-input__delete-label">Delete</span>
@@ -256,3 +366,172 @@
256
366
  </div>
257
367
  </div>
258
368
 
369
+ <!-- Static previews; preloading File objects and removing them require React. -->
370
+ <h3 class="site-preview-heading">Preloaded Single</h3>
371
+ <div class="usa-form-group usx-form-group">
372
+ <label class="usa-label usx-label" for="html-file-input-preloaded-single-file-input-single"
373
+ >Input accepts a single file</label
374
+ >
375
+ <div class="usa-file-input" data-enhanced="true">
376
+ <div class="usa-sr-only" aria-live="polite">You have selected the file: photo.png</div>
377
+ <div class="usa-file-input__target">
378
+ <div class="usa-file-input__box"></div>
379
+ <div class="usa-file-input__preview-heading">
380
+ Selected file <span class="usa-file-input__choose">Change file</span>
381
+ </div>
382
+ <div class="usa-file-input__instructions" aria-hidden="true" hidden="true">
383
+ <span class="usa-file-input__drag-text">Drag file here or</span>
384
+ <span class="usa-file-input__choose">choose from folder</span>
385
+ </div>
386
+ <div class="usa-file-input__preview" aria-hidden="true">
387
+ <img
388
+ id="file-input-preloaded-single-preview"
389
+ src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII="
390
+ alt=""
391
+ class="usa-file-input__preview-image"
392
+ />photo.png
393
+ <div></div>
394
+ </div>
395
+ <input
396
+ class="usx-file-input usa-file-input__input"
397
+ id="html-file-input-preloaded-single-file-input-single"
398
+ type="file"
399
+ name="file-input-single"
400
+ aria-label="Change file"
401
+ />
402
+ </div>
403
+ </div>
404
+ </div>
405
+
406
+ <h3 class="site-preview-heading">Preloaded Multiple</h3>
407
+ <div class="usa-form-group usx-form-group">
408
+ <label class="usa-label usx-label" for="html-file-input-preloaded-multiple-file-input-multiple"
409
+ >Input accepts multiple files</label
410
+ ><span class="usa-hint usx-hint" id="html-file-input-preloaded-multiple-file-input-multiple-hint"
411
+ >Select one or more files</span
412
+ >
413
+ <div class="usa-file-input" data-enhanced="true">
414
+ <div class="usa-sr-only" aria-live="polite">
415
+ You have selected 2 files: photo-one.png, photo-two.jpg
416
+ </div>
417
+ <div class="usa-file-input__target">
418
+ <div class="usa-file-input__box"></div>
419
+ <div class="usa-file-input__preview-heading">
420
+ 2 files selected <span class="usa-file-input__choose">Change files</span>
421
+ </div>
422
+ <div class="usa-file-input__instructions" aria-hidden="true" hidden="true">
423
+ <span class="usa-file-input__drag-text">Drag files here or</span>
424
+ <span class="usa-file-input__choose">choose from folder</span>
425
+ </div>
426
+ <div class="usa-file-input__preview" aria-hidden="true">
427
+ <img
428
+ id="file-input-preloaded-multiple-preview-jpg"
429
+ src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/wAALCAABAAEBAREA/8QAFAABAAAAAAAAAAAAAAAAAAAACf/EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAD8AVN//2Q=="
430
+ alt=""
431
+ class="usa-file-input__preview-image"
432
+ />photo-two.jpg
433
+ <div></div>
434
+ </div>
435
+ <div class="usa-file-input__preview" aria-hidden="true">
436
+ <img
437
+ id="file-input-preloaded-multiple-preview-png"
438
+ src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII="
439
+ alt=""
440
+ class="usa-file-input__preview-image"
441
+ />photo-one.png
442
+ <div></div>
443
+ </div>
444
+ <input
445
+ class="usx-file-input usa-file-input__input"
446
+ id="html-file-input-preloaded-multiple-file-input-multiple"
447
+ type="file"
448
+ name="file-input-multiple"
449
+ aria-describedby="html-file-input-preloaded-multiple-file-input-multiple-hint"
450
+ multiple=""
451
+ aria-label="Change files"
452
+ />
453
+ </div>
454
+ </div>
455
+ </div>
456
+
457
+ <h3 class="site-preview-heading">Preloaded Not Downloadable</h3>
458
+ <div class="usa-form-group usx-form-group">
459
+ <label
460
+ class="usa-label usx-label"
461
+ for="html-file-input-preloaded-not-downloadable-file-input-preloaded-not-downloadable"
462
+ >Supporting documents</label
463
+ ><span
464
+ class="usa-hint usx-hint"
465
+ id="html-file-input-preloaded-not-downloadable-file-input-preloaded-not-downloadable-hint"
466
+ >Select one or more files</span
467
+ >
468
+ <div class="usx-file-input__add-only">
469
+ <div class="usa-file-input" data-enhanced="true">
470
+ <div class="usa-sr-only" aria-live="polite">No files selected.</div>
471
+ <div class="usa-file-input__target">
472
+ <div class="usa-file-input__box"></div>
473
+ <div class="usa-file-input__instructions" aria-hidden="true">
474
+ <span class="usa-file-input__drag-text">Drag files here or</span>
475
+ <span class="usa-file-input__choose">choose from folder</span>
476
+ </div>
477
+ <input
478
+ class="usx-file-input usa-file-input__input"
479
+ id="html-file-input-preloaded-not-downloadable-file-input-preloaded-not-downloadable"
480
+ type="file"
481
+ name="file-input-preloaded-not-downloadable"
482
+ aria-describedby="html-file-input-preloaded-not-downloadable-file-input-preloaded-not-downloadable-hint"
483
+ multiple=""
484
+ aria-label="Drag files here or choose from folder"
485
+ />
486
+ </div>
487
+ </div>
488
+ </div>
489
+ <div class="usx-file-input__list margin-top-1">
490
+ <span class="usa-sr-only" aria-live="polite">You have selected the file: pay-stub.pdf.</span
491
+ ><span class="usa-hint usx-hint usx-file-input__list-heading">Selected files</span>
492
+ <ul class="usx-file-input__file-list">
493
+ <li class="usx-file-input__file-item">
494
+ <div class="usx-file-input__file-info">
495
+ <span class="usx-file-input__file-name">w2-2023.pdf</span
496
+ ><span class="usx-file-input__file-size">PDF, 240 KB</span>
497
+ </div>
498
+ <button
499
+ type="button"
500
+ class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
501
+ tooltip="Delete this file"
502
+ >
503
+ <svg
504
+ class="usa-icon usa-icon--size-3 usx-file-input__delete-icon"
505
+ aria-hidden="true"
506
+ aria-label="delete icon"
507
+ focusable="false"
508
+ role="img"
509
+ >
510
+ <use href="/img/sprite.svg#delete"></use></svg
511
+ ><span class="usx-file-input__delete-label">Delete</span>
512
+ </button>
513
+ </li>
514
+ <li class="usx-file-input__file-item">
515
+ <div class="usx-file-input__file-info">
516
+ <span class="usx-file-input__file-name">pay-stub.pdf</span
517
+ ><span class="usx-file-input__file-size">PDF, 100 KB</span>
518
+ </div>
519
+ <button
520
+ type="button"
521
+ class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
522
+ tooltip="Delete this file"
523
+ >
524
+ <svg
525
+ class="usa-icon usa-icon--size-3 usx-file-input__delete-icon"
526
+ aria-hidden="true"
527
+ aria-label="delete icon"
528
+ focusable="false"
529
+ role="img"
530
+ >
531
+ <use href="/img/sprite.svg#delete"></use></svg
532
+ ><span class="usx-file-input__delete-label">Delete</span>
533
+ </button>
534
+ </li>
535
+ </ul>
536
+ </div>
537
+ </div>