@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
|
@@ -7,8 +7,16 @@
|
|
|
7
7
|
<span class="usx-file-input__file-name">test1.jpg</span>
|
|
8
8
|
<span class="usx-file-input__file-size">JPG, 7 KB</span>
|
|
9
9
|
</div>
|
|
10
|
-
<button
|
|
11
|
-
|
|
10
|
+
<button
|
|
11
|
+
type="button"
|
|
12
|
+
class="usa-button usx-button usa-button--secondary usx-file-input__delete-button"
|
|
13
|
+
>
|
|
14
|
+
<svg
|
|
15
|
+
class="usa-icon usx-file-input__delete-icon"
|
|
16
|
+
aria-hidden="true"
|
|
17
|
+
focusable="false"
|
|
18
|
+
role="img"
|
|
19
|
+
>
|
|
12
20
|
<use href="./img/sprite.svg#delete"></use>
|
|
13
21
|
</svg>
|
|
14
22
|
<span class="usx-file-input__delete-label">Delete</span>
|
|
@@ -19,8 +27,16 @@
|
|
|
19
27
|
<span class="usx-file-input__file-name">test2.jpg</span>
|
|
20
28
|
<span class="usx-file-input__file-size">JPG, 7 KB</span>
|
|
21
29
|
</div>
|
|
22
|
-
<button
|
|
23
|
-
|
|
30
|
+
<button
|
|
31
|
+
type="button"
|
|
32
|
+
class="usa-button usx-button usa-button--secondary usx-file-input__delete-button"
|
|
33
|
+
>
|
|
34
|
+
<svg
|
|
35
|
+
class="usa-icon usx-file-input__delete-icon"
|
|
36
|
+
aria-hidden="true"
|
|
37
|
+
focusable="false"
|
|
38
|
+
role="img"
|
|
39
|
+
>
|
|
24
40
|
<use href="./img/sprite.svg#delete"></use>
|
|
25
41
|
</svg>
|
|
26
42
|
<span class="usx-file-input__delete-label">Delete</span>
|
|
@@ -35,11 +51,25 @@
|
|
|
35
51
|
<ul class="usx-file-input__file-list">
|
|
36
52
|
<li class="usx-file-input__file-item">
|
|
37
53
|
<div class="usx-file-input__file-info">
|
|
38
|
-
<a
|
|
54
|
+
<a
|
|
55
|
+
class="usa-link usx-link usa-link--external usx-file-input__file-name"
|
|
56
|
+
rel="noreferrer noopener"
|
|
57
|
+
target="_blank"
|
|
58
|
+
href="w2-2023.pdf"
|
|
59
|
+
>w2-2023.pdf</a
|
|
60
|
+
>
|
|
39
61
|
<span class="usx-file-input__file-size">PDF, 240 KB</span>
|
|
40
62
|
</div>
|
|
41
|
-
<button
|
|
42
|
-
|
|
63
|
+
<button
|
|
64
|
+
type="button"
|
|
65
|
+
class="usa-button usx-button usa-button--secondary usx-file-input__delete-button"
|
|
66
|
+
>
|
|
67
|
+
<svg
|
|
68
|
+
class="usa-icon usx-file-input__delete-icon"
|
|
69
|
+
aria-hidden="true"
|
|
70
|
+
focusable="false"
|
|
71
|
+
role="img"
|
|
72
|
+
>
|
|
43
73
|
<use href="./img/sprite.svg#delete"></use>
|
|
44
74
|
</svg>
|
|
45
75
|
<span class="usx-file-input__delete-label">Delete</span>
|
|
@@ -59,3 +89,157 @@
|
|
|
59
89
|
</li>
|
|
60
90
|
</ul>
|
|
61
91
|
</div>
|
|
92
|
+
|
|
93
|
+
<h3 class="site-preview-heading">Custom Hint</h3>
|
|
94
|
+
<div class="usx-file-input__list margin-top-1">
|
|
95
|
+
<span class="usa-sr-only" aria-live="polite">You have selected the file: government-id.jpg.</span
|
|
96
|
+
><span class="usa-hint usx-hint usx-file-input__list-heading">Uploaded documents</span>
|
|
97
|
+
<ul class="usx-file-input__file-list">
|
|
98
|
+
<li class="usx-file-input__file-item">
|
|
99
|
+
<div class="usx-file-input__file-info">
|
|
100
|
+
<span class="usx-file-input__file-name">government-id.jpg</span>
|
|
101
|
+
</div>
|
|
102
|
+
<button
|
|
103
|
+
type="button"
|
|
104
|
+
class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
|
|
105
|
+
tooltip="Delete this file"
|
|
106
|
+
>
|
|
107
|
+
<svg
|
|
108
|
+
class="usa-icon usa-icon--size-3 usx-file-input__delete-icon"
|
|
109
|
+
aria-hidden="true"
|
|
110
|
+
aria-label="delete icon"
|
|
111
|
+
focusable="false"
|
|
112
|
+
role="img"
|
|
113
|
+
>
|
|
114
|
+
<use href="/img/sprite.svg#delete"></use></svg
|
|
115
|
+
><span class="usx-file-input__delete-label">Delete</span>
|
|
116
|
+
</button>
|
|
117
|
+
</li>
|
|
118
|
+
</ul>
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
<h3 class="site-preview-heading">No On Remove</h3>
|
|
122
|
+
<div class="usx-file-input__list margin-top-1">
|
|
123
|
+
<span class="usa-sr-only" aria-live="polite">You have selected the file: government-id.jpg.</span
|
|
124
|
+
><span class="usa-hint usx-hint usx-file-input__list-heading">Selected files</span>
|
|
125
|
+
<ul class="usx-file-input__file-list">
|
|
126
|
+
<li class="usx-file-input__file-item">
|
|
127
|
+
<div class="usx-file-input__file-info">
|
|
128
|
+
<span class="usx-file-input__file-name">government-id.jpg</span>
|
|
129
|
+
</div>
|
|
130
|
+
</li>
|
|
131
|
+
</ul>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
<h3 class="site-preview-heading">Long File Name</h3>
|
|
135
|
+
<div class="usx-file-input__list margin-top-1">
|
|
136
|
+
<span class="usa-sr-only" aria-live="polite"
|
|
137
|
+
>You have selected the file:
|
|
138
|
+
another-extremely-long-filename-for-a-downloadable-preloaded-file-to-check-the-download-icon-and-link-wrapping.pdf.</span
|
|
139
|
+
><span class="usa-hint usx-hint usx-file-input__list-heading">Selected files</span>
|
|
140
|
+
<ul class="usx-file-input__file-list">
|
|
141
|
+
<li class="usx-file-input__file-item">
|
|
142
|
+
<div class="usx-file-input__file-info">
|
|
143
|
+
<span class="usx-file-input__file-name"
|
|
144
|
+
>this-is-an-unusually-long-supporting-document-filename-used-to-verify-wrapping-behavior.pdf</span
|
|
145
|
+
><span class="usx-file-input__file-size">PDF, 1.8 MB</span>
|
|
146
|
+
</div>
|
|
147
|
+
<button
|
|
148
|
+
type="button"
|
|
149
|
+
class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
|
|
150
|
+
tooltip="Delete this file"
|
|
151
|
+
>
|
|
152
|
+
<svg
|
|
153
|
+
class="usa-icon usa-icon--size-3 usx-file-input__delete-icon"
|
|
154
|
+
aria-hidden="true"
|
|
155
|
+
aria-label="delete icon"
|
|
156
|
+
focusable="false"
|
|
157
|
+
role="img"
|
|
158
|
+
>
|
|
159
|
+
<use href="/img/sprite.svg#delete"></use></svg
|
|
160
|
+
><span class="usx-file-input__delete-label">Delete</span>
|
|
161
|
+
</button>
|
|
162
|
+
</li>
|
|
163
|
+
<li class="usx-file-input__file-item">
|
|
164
|
+
<div class="usx-file-input__file-info">
|
|
165
|
+
<a
|
|
166
|
+
href="https://example.com/files/another-extremely-long-filename-for-a-downloadable-preloaded-file.pdf"
|
|
167
|
+
class="usa-link usx-link usa-link--external usx-file-input__file-name"
|
|
168
|
+
target="_blank"
|
|
169
|
+
rel="noreferrer noopener"
|
|
170
|
+
>another-extremely-long-filename-for-a-downloadable-preloaded-file-to-check-the-download-icon-and-link-wrapping.pdf</a
|
|
171
|
+
><span class="usx-file-input__file-size">PDF, 500 KB</span>
|
|
172
|
+
</div>
|
|
173
|
+
<button
|
|
174
|
+
type="button"
|
|
175
|
+
class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
|
|
176
|
+
tooltip="Delete this file"
|
|
177
|
+
>
|
|
178
|
+
<svg
|
|
179
|
+
class="usa-icon usa-icon--size-3 usx-file-input__delete-icon"
|
|
180
|
+
aria-hidden="true"
|
|
181
|
+
aria-label="delete icon"
|
|
182
|
+
focusable="false"
|
|
183
|
+
role="img"
|
|
184
|
+
>
|
|
185
|
+
<use href="/img/sprite.svg#delete"></use></svg
|
|
186
|
+
><span class="usx-file-input__delete-label">Delete</span>
|
|
187
|
+
</button>
|
|
188
|
+
</li>
|
|
189
|
+
</ul>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<h3 class="site-preview-heading">Per File Override</h3>
|
|
193
|
+
<div class="usx-file-input__list margin-top-1">
|
|
194
|
+
<span class="usa-sr-only" aria-live="polite">You have selected the file: w2-2023.pdf.</span
|
|
195
|
+
><span class="usa-hint usx-hint usx-file-input__list-heading">Selected files</span>
|
|
196
|
+
<ul class="usx-file-input__file-list">
|
|
197
|
+
<li class="usx-file-input__file-item">
|
|
198
|
+
<div class="usx-file-input__file-info">
|
|
199
|
+
<span class="usx-file-input__file-name">test1.jpg</span
|
|
200
|
+
><span class="usx-file-input__file-size">JPG, 7 KB</span>
|
|
201
|
+
</div>
|
|
202
|
+
<button
|
|
203
|
+
type="button"
|
|
204
|
+
class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
|
|
205
|
+
tooltip="Delete this file"
|
|
206
|
+
>
|
|
207
|
+
<svg
|
|
208
|
+
class="usa-icon usa-icon--size-3 usx-file-input__delete-icon"
|
|
209
|
+
aria-hidden="true"
|
|
210
|
+
aria-label="delete icon"
|
|
211
|
+
focusable="false"
|
|
212
|
+
role="img"
|
|
213
|
+
>
|
|
214
|
+
<use href="/img/sprite.svg#delete"></use></svg
|
|
215
|
+
><span class="usx-file-input__delete-label">Delete</span>
|
|
216
|
+
</button>
|
|
217
|
+
</li>
|
|
218
|
+
<li class="usx-file-input__file-item">
|
|
219
|
+
<div class="usx-file-input__file-info">
|
|
220
|
+
<a
|
|
221
|
+
href="https://example.com/files/w2-2023.pdf"
|
|
222
|
+
class="usa-link usx-link usa-link--external usx-file-input__file-name"
|
|
223
|
+
target="_blank"
|
|
224
|
+
rel="noreferrer noopener"
|
|
225
|
+
>w2-2023.pdf</a
|
|
226
|
+
><span class="usx-file-input__file-size">PDF, 240 KB</span>
|
|
227
|
+
</div>
|
|
228
|
+
<button
|
|
229
|
+
type="button"
|
|
230
|
+
class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
|
|
231
|
+
tooltip="Delete this file"
|
|
232
|
+
>
|
|
233
|
+
<svg
|
|
234
|
+
class="usa-icon usa-icon--size-3 usx-file-input__delete-icon"
|
|
235
|
+
aria-hidden="true"
|
|
236
|
+
aria-label="delete icon"
|
|
237
|
+
focusable="false"
|
|
238
|
+
role="img"
|
|
239
|
+
>
|
|
240
|
+
<use href="/img/sprite.svg#delete"></use></svg
|
|
241
|
+
><span class="usx-file-input__delete-label">Delete</span>
|
|
242
|
+
</button>
|
|
243
|
+
</li>
|
|
244
|
+
</ul>
|
|
245
|
+
</div>
|