@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.
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,36 +1,356 @@
1
1
  <h3 class="site-preview-heading">Default</h3>
2
- <fieldset class="usa-fieldset usa-checkbox-group usx-checkbox-group">
3
- <legend class="usa-legend">Select any that apply</legend>
4
- <div class="usa-checkbox usx-checkbox">
5
- <input class="usa-checkbox__input" id="historical-truth" type="checkbox" name="historical-figures" value="sojourner-truth" />
6
- <label class="usa-checkbox__label" for="historical-truth">Sojourner Truth</label>
7
- </div>
8
- <div class="usa-checkbox usx-checkbox">
9
- <input class="usa-checkbox__input" id="historical-douglass" type="checkbox" name="historical-figures" value="frederick-douglass" checked />
10
- <label class="usa-checkbox__label" for="historical-douglass">Frederick Douglass</label>
11
- </div>
12
- <div class="usa-checkbox usx-checkbox">
13
- <input class="usa-checkbox__input" id="historical-washington" type="checkbox" name="historical-figures" value="booker-t-washington" />
14
- <label class="usa-checkbox__label" for="historical-washington">Booker T. Washington</label>
15
- </div>
16
- <div class="usa-checkbox usx-checkbox">
17
- <input class="usa-checkbox__input" id="historical-carver" type="checkbox" name="historical-figures" value="george-washington-carver" disabled />
18
- <label class="usa-checkbox__label" for="historical-carver">George Washington Carver</label>
19
- </div>
20
- </fieldset>
2
+ <div class="usa-form-group usx-form-group">
3
+ <fieldset
4
+ class="usa-fieldset usx-fieldset usa-checkbox-group usx-checkbox-group"
5
+ id="html-checkbox-group-default-historical-figures"
6
+ >
7
+ <legend class="usa-legend usx-legend">Select any that apply</legend>
8
+ <div class="usa-checkbox usx-checkbox">
9
+ <input
10
+ class="usa-checkbox__input"
11
+ id="html-checkbox-group-default-historical-figures-0"
12
+ type="checkbox"
13
+ name="historical-figures"
14
+ aria-label=""
15
+ value="sojourner-truth"
16
+ /><label class="usa-checkbox__label" for="html-checkbox-group-default-historical-figures-0"
17
+ >Sojourner Truth</label
18
+ >
19
+ </div>
20
+ <div class="usa-checkbox usx-checkbox">
21
+ <input
22
+ class="usa-checkbox__input"
23
+ id="html-checkbox-group-default-historical-figures-1"
24
+ type="checkbox"
25
+ name="historical-figures"
26
+ aria-label=""
27
+ value="frederick-douglass"
28
+ /><label class="usa-checkbox__label" for="html-checkbox-group-default-historical-figures-1"
29
+ >Frederick Douglass</label
30
+ >
31
+ </div>
32
+ <div class="usa-checkbox usx-checkbox">
33
+ <input
34
+ class="usa-checkbox__input"
35
+ id="html-checkbox-group-default-historical-figures-2"
36
+ type="checkbox"
37
+ name="historical-figures"
38
+ aria-label=""
39
+ value="booker-t-washington"
40
+ /><label class="usa-checkbox__label" for="html-checkbox-group-default-historical-figures-2"
41
+ >Booker T. Washington</label
42
+ >
43
+ </div>
44
+ <div class="usa-checkbox usx-checkbox">
45
+ <input
46
+ class="usa-checkbox__input"
47
+ id="html-checkbox-group-default-historical-figures-3"
48
+ type="checkbox"
49
+ name="historical-figures"
50
+ aria-label=""
51
+ disabled=""
52
+ value="george-washington-carver"
53
+ /><label class="usa-checkbox__label" for="html-checkbox-group-default-historical-figures-3"
54
+ >George Washington Carver</label
55
+ >
56
+ </div>
57
+ </fieldset>
58
+ </div>
59
+
60
+ <h3 class="site-preview-heading">With Descriptions</h3>
61
+ <div class="usa-form-group usx-form-group">
62
+ <fieldset
63
+ class="usa-fieldset usx-fieldset usa-checkbox-group usx-checkbox-group"
64
+ id="html-checkbox-group-with-descriptions-historical-figures-with-descriptions"
65
+ >
66
+ <legend class="usa-legend usx-legend">Select any that apply</legend>
67
+ <div class="usa-checkbox usx-checkbox">
68
+ <input
69
+ class="usa-checkbox__input"
70
+ id="html-checkbox-group-with-descriptions-historical-figures-with-descriptions-0"
71
+ type="checkbox"
72
+ name="historical-figures-with-descriptions"
73
+ aria-label=""
74
+ value="sojourner-truth"
75
+ /><label
76
+ class="usa-checkbox__label"
77
+ for="html-checkbox-group-with-descriptions-historical-figures-with-descriptions-0"
78
+ >Sojourner Truth<span class="usa-checkbox__label-description"
79
+ >A prominent abolitionist and women's rights activist.</span
80
+ ></label
81
+ >
82
+ </div>
83
+ <div class="usa-checkbox usx-checkbox">
84
+ <input
85
+ class="usa-checkbox__input"
86
+ id="html-checkbox-group-with-descriptions-historical-figures-with-descriptions-1"
87
+ type="checkbox"
88
+ name="historical-figures-with-descriptions"
89
+ aria-label=""
90
+ value="frederick-douglass"
91
+ /><label
92
+ class="usa-checkbox__label"
93
+ for="html-checkbox-group-with-descriptions-historical-figures-with-descriptions-1"
94
+ >Frederick Douglass<span class="usa-checkbox__label-description"
95
+ >A former enslaved person who became a national leader of the abolitionist movement.</span
96
+ ></label
97
+ >
98
+ </div>
99
+ </fieldset>
100
+ </div>
101
+
102
+ <h3 class="site-preview-heading">With Hint</h3>
103
+ <div class="usa-form-group usx-form-group">
104
+ <fieldset
105
+ class="usa-fieldset usx-fieldset usa-checkbox-group usx-checkbox-group"
106
+ id="html-checkbox-group-with-hint-historical-figures-hint"
107
+ >
108
+ <legend class="usa-legend usx-legend">Select any that apply</legend>
109
+ <span class="usa-hint usx-hint">Choose all that apply.</span>
110
+ <div class="usa-checkbox usx-checkbox">
111
+ <input
112
+ class="usa-checkbox__input"
113
+ id="html-checkbox-group-with-hint-historical-figures-hint-0"
114
+ type="checkbox"
115
+ name="historical-figures-hint"
116
+ aria-label=""
117
+ value="sojourner-truth"
118
+ /><label
119
+ class="usa-checkbox__label"
120
+ for="html-checkbox-group-with-hint-historical-figures-hint-0"
121
+ >Sojourner Truth</label
122
+ >
123
+ </div>
124
+ <div class="usa-checkbox usx-checkbox">
125
+ <input
126
+ class="usa-checkbox__input"
127
+ id="html-checkbox-group-with-hint-historical-figures-hint-1"
128
+ type="checkbox"
129
+ name="historical-figures-hint"
130
+ aria-label=""
131
+ value="frederick-douglass"
132
+ /><label
133
+ class="usa-checkbox__label"
134
+ for="html-checkbox-group-with-hint-historical-figures-hint-1"
135
+ >Frederick Douglass</label
136
+ >
137
+ </div>
138
+ <div class="usa-checkbox usx-checkbox">
139
+ <input
140
+ class="usa-checkbox__input"
141
+ id="html-checkbox-group-with-hint-historical-figures-hint-2"
142
+ type="checkbox"
143
+ name="historical-figures-hint"
144
+ aria-label=""
145
+ value="booker-t-washington"
146
+ /><label
147
+ class="usa-checkbox__label"
148
+ for="html-checkbox-group-with-hint-historical-figures-hint-2"
149
+ >Booker T. Washington</label
150
+ >
151
+ </div>
152
+ <div class="usa-checkbox usx-checkbox">
153
+ <input
154
+ class="usa-checkbox__input"
155
+ id="html-checkbox-group-with-hint-historical-figures-hint-3"
156
+ type="checkbox"
157
+ name="historical-figures-hint"
158
+ aria-label=""
159
+ disabled=""
160
+ value="george-washington-carver"
161
+ /><label
162
+ class="usa-checkbox__label"
163
+ for="html-checkbox-group-with-hint-historical-figures-hint-3"
164
+ >George Washington Carver</label
165
+ >
166
+ </div>
167
+ </fieldset>
168
+ </div>
21
169
 
22
170
  <h3 class="site-preview-heading">With Error</h3>
23
171
  <div class="usa-form-group usx-form-group usa-form-group--error">
24
- <fieldset class="usa-fieldset usa-checkbox-group usx-checkbox-group">
25
- <legend class="usa-legend usa-label--error">Select any that apply</legend>
26
- <span class="usa-error-message" id="historical-figures-error-error" role="alert">Select at least one option.</span>
172
+ <fieldset
173
+ class="usa-fieldset usx-fieldset usa-checkbox-group usx-checkbox-group"
174
+ id="html-checkbox-group-with-error-historical-figures-error"
175
+ >
176
+ <legend class="usa-legend usx-legend usa-label--error">Select any that apply</legend>
177
+ <span class="usa-error-message usx-error-message" role="alert"
178
+ >Select at least one option.</span
179
+ >
180
+ <div class="usa-checkbox usx-checkbox">
181
+ <input
182
+ class="usa-checkbox__input"
183
+ id="html-checkbox-group-with-error-historical-figures-error-0"
184
+ type="checkbox"
185
+ name="historical-figures-error"
186
+ aria-label=""
187
+ value="sojourner-truth"
188
+ /><label
189
+ class="usa-checkbox__label"
190
+ for="html-checkbox-group-with-error-historical-figures-error-0"
191
+ >Sojourner Truth</label
192
+ >
193
+ </div>
194
+ <div class="usa-checkbox usx-checkbox">
195
+ <input
196
+ class="usa-checkbox__input"
197
+ id="html-checkbox-group-with-error-historical-figures-error-1"
198
+ type="checkbox"
199
+ name="historical-figures-error"
200
+ aria-label=""
201
+ value="frederick-douglass"
202
+ /><label
203
+ class="usa-checkbox__label"
204
+ for="html-checkbox-group-with-error-historical-figures-error-1"
205
+ >Frederick Douglass</label
206
+ >
207
+ </div>
27
208
  <div class="usa-checkbox usx-checkbox">
28
- <input class="usa-checkbox__input" id="historical-error-truth" type="checkbox" name="historical-figures-error" value="sojourner-truth" />
29
- <label class="usa-checkbox__label" for="historical-error-truth">Sojourner Truth</label>
209
+ <input
210
+ class="usa-checkbox__input"
211
+ id="html-checkbox-group-with-error-historical-figures-error-2"
212
+ type="checkbox"
213
+ name="historical-figures-error"
214
+ aria-label=""
215
+ value="booker-t-washington"
216
+ /><label
217
+ class="usa-checkbox__label"
218
+ for="html-checkbox-group-with-error-historical-figures-error-2"
219
+ >Booker T. Washington</label
220
+ >
30
221
  </div>
31
222
  <div class="usa-checkbox usx-checkbox">
32
- <input class="usa-checkbox__input" id="historical-error-douglass" type="checkbox" name="historical-figures-error" value="frederick-douglass" />
33
- <label class="usa-checkbox__label" for="historical-error-douglass">Frederick Douglass</label>
223
+ <input
224
+ class="usa-checkbox__input"
225
+ id="html-checkbox-group-with-error-historical-figures-error-3"
226
+ type="checkbox"
227
+ name="historical-figures-error"
228
+ aria-label=""
229
+ disabled=""
230
+ value="george-washington-carver"
231
+ /><label
232
+ class="usa-checkbox__label"
233
+ for="html-checkbox-group-with-error-historical-figures-error-3"
234
+ >George Washington Carver</label
235
+ >
236
+ </div>
237
+ </fieldset>
238
+ </div>
239
+
240
+ <h3 class="site-preview-heading">Tile</h3>
241
+ <div class="usa-form-group usx-form-group">
242
+ <fieldset
243
+ class="usa-fieldset usx-fieldset usa-checkbox-group usx-checkbox-group"
244
+ id="html-checkbox-group-tile-tile-options"
245
+ >
246
+ <legend class="usa-legend usx-legend">Select any that apply</legend>
247
+ <div class="usa-checkbox usx-checkbox">
248
+ <input
249
+ class="usa-checkbox__input usa-checkbox__input--tile"
250
+ id="html-checkbox-group-tile-tile-options-0"
251
+ type="checkbox"
252
+ name="tile-options"
253
+ aria-label=""
254
+ value="sojourner-truth"
255
+ /><label class="usa-checkbox__label" for="html-checkbox-group-tile-tile-options-0"
256
+ >Sojourner Truth</label
257
+ >
258
+ </div>
259
+ <div class="usa-checkbox usx-checkbox">
260
+ <input
261
+ class="usa-checkbox__input usa-checkbox__input--tile"
262
+ id="html-checkbox-group-tile-tile-options-1"
263
+ type="checkbox"
264
+ name="tile-options"
265
+ aria-label=""
266
+ value="frederick-douglass"
267
+ /><label class="usa-checkbox__label" for="html-checkbox-group-tile-tile-options-1"
268
+ >Frederick Douglass</label
269
+ >
270
+ </div>
271
+ <div class="usa-checkbox usx-checkbox">
272
+ <input
273
+ class="usa-checkbox__input usa-checkbox__input--tile"
274
+ id="html-checkbox-group-tile-tile-options-2"
275
+ type="checkbox"
276
+ name="tile-options"
277
+ aria-label=""
278
+ value="booker-t-washington"
279
+ /><label class="usa-checkbox__label" for="html-checkbox-group-tile-tile-options-2"
280
+ >Booker T. Washington</label
281
+ >
282
+ </div>
283
+ <div class="usa-checkbox usx-checkbox">
284
+ <input
285
+ class="usa-checkbox__input usa-checkbox__input--tile"
286
+ id="html-checkbox-group-tile-tile-options-3"
287
+ type="checkbox"
288
+ name="tile-options"
289
+ aria-label=""
290
+ disabled=""
291
+ value="george-washington-carver"
292
+ /><label class="usa-checkbox__label" for="html-checkbox-group-tile-tile-options-3"
293
+ >George Washington Carver</label
294
+ >
295
+ </div>
296
+ </fieldset>
297
+ </div>
298
+
299
+ <h3 class="site-preview-heading">Small</h3>
300
+ <div class="usa-form-group usx-form-group">
301
+ <fieldset
302
+ class="usa-fieldset usx-fieldset usa-checkbox-group usx-checkbox-group"
303
+ id="html-checkbox-group-small-small-options"
304
+ >
305
+ <legend class="usa-legend usx-legend">Select any that apply</legend>
306
+ <div class="usa-checkbox usx-checkbox usx-checkbox--small">
307
+ <input
308
+ class="usa-checkbox__input"
309
+ id="html-checkbox-group-small-small-options-0"
310
+ type="checkbox"
311
+ name="small-options"
312
+ aria-label=""
313
+ value="sojourner-truth"
314
+ /><label class="usa-checkbox__label" for="html-checkbox-group-small-small-options-0"
315
+ >Sojourner Truth</label
316
+ >
317
+ </div>
318
+ <div class="usa-checkbox usx-checkbox usx-checkbox--small">
319
+ <input
320
+ class="usa-checkbox__input"
321
+ id="html-checkbox-group-small-small-options-1"
322
+ type="checkbox"
323
+ name="small-options"
324
+ aria-label=""
325
+ value="frederick-douglass"
326
+ /><label class="usa-checkbox__label" for="html-checkbox-group-small-small-options-1"
327
+ >Frederick Douglass</label
328
+ >
329
+ </div>
330
+ <div class="usa-checkbox usx-checkbox usx-checkbox--small">
331
+ <input
332
+ class="usa-checkbox__input"
333
+ id="html-checkbox-group-small-small-options-2"
334
+ type="checkbox"
335
+ name="small-options"
336
+ aria-label=""
337
+ value="booker-t-washington"
338
+ /><label class="usa-checkbox__label" for="html-checkbox-group-small-small-options-2"
339
+ >Booker T. Washington</label
340
+ >
341
+ </div>
342
+ <div class="usa-checkbox usx-checkbox usx-checkbox--small">
343
+ <input
344
+ class="usa-checkbox__input"
345
+ id="html-checkbox-group-small-small-options-3"
346
+ type="checkbox"
347
+ name="small-options"
348
+ aria-label=""
349
+ disabled=""
350
+ value="george-washington-carver"
351
+ /><label class="usa-checkbox__label" for="html-checkbox-group-small-small-options-3"
352
+ >George Washington Carver</label
353
+ >
34
354
  </div>
35
355
  </fieldset>
36
356
  </div>