@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,189 +1,685 @@
1
1
  <h3 class="site-preview-heading">Default</h3>
2
- <fieldset class="usa-fieldset">
3
- <legend class="usa-legend usa-legend">Select one historical figure</legend>
4
- <div class="usa-radio usx-radio">
5
- <input
6
- class="usa-radio__input"
7
- id="historical-truth"
8
- type="radio"
9
- name="historical-figures"
10
- value="sojourner-truth"
11
- checked="checked"
12
- />
13
- <label class="usa-radio__label" for="historical-truth"
14
- >Sojourner Truth</label
15
- >
16
- </div>
17
- <div class="usa-radio usx-radio">
18
- <input
19
- class="usa-radio__input"
20
- id="historical-douglass"
21
- type="radio"
22
- name="historical-figures"
23
- value="frederick-douglass"
24
- />
25
- <label class="usa-radio__label" for="historical-douglass"
26
- >Frederick Douglass</label
27
- >
28
- </div>
29
- <div class="usa-radio usx-radio">
30
- <input
31
- class="usa-radio__input"
32
- id="historical-washington"
33
- type="radio"
34
- name="historical-figures"
35
- value="booker-t-washington"
36
- />
37
- <label class="usa-radio__label" for="historical-washington"
38
- >Booker T. Washington</label
39
- >
40
- </div>
41
- <div class="usa-radio usx-radio">
42
- <input
43
- class="usa-radio__input"
44
- id="historical-carver"
45
- type="radio"
46
- name="historical-figures"
47
- value="george-washington-carver"
48
- disabled="disabled"
49
- />
50
- <label class="usa-radio__label" for="historical-carver"
51
- >George Washington Carver</label
52
- >
53
- </div>
54
- </fieldset>
2
+ <div class="usa-form-group usx-form-group">
3
+ <fieldset class="usa-fieldset usx-fieldset" id="html-radio-buttons-default-historical-figures">
4
+ <legend class="usa-legend usx-legend">Select one option</legend>
5
+ <div class="usa-radio usx-radio">
6
+ <input
7
+ class="usa-radio__input"
8
+ id="html-radio-buttons-default-historical-figures-0"
9
+ type="radio"
10
+ name="historical-figures"
11
+ value="sojourner-truth"
12
+ /><label class="usa-radio__label" for="html-radio-buttons-default-historical-figures-0"
13
+ >Sojourner Truth</label
14
+ >
15
+ </div>
16
+ <div class="usa-radio usx-radio">
17
+ <input
18
+ class="usa-radio__input"
19
+ id="html-radio-buttons-default-historical-figures-1"
20
+ type="radio"
21
+ name="historical-figures"
22
+ value="frederick-douglass"
23
+ /><label class="usa-radio__label" for="html-radio-buttons-default-historical-figures-1"
24
+ >Frederick Douglass</label
25
+ >
26
+ </div>
27
+ <div class="usa-radio usx-radio">
28
+ <input
29
+ class="usa-radio__input"
30
+ id="html-radio-buttons-default-historical-figures-2"
31
+ type="radio"
32
+ name="historical-figures"
33
+ value="booker-t-washington"
34
+ /><label class="usa-radio__label" for="html-radio-buttons-default-historical-figures-2"
35
+ >Booker T. Washington</label
36
+ >
37
+ </div>
38
+ <div class="usa-radio usx-radio">
39
+ <input
40
+ class="usa-radio__input"
41
+ id="html-radio-buttons-default-historical-figures-3"
42
+ type="radio"
43
+ name="historical-figures"
44
+ disabled=""
45
+ value="george-washington-carver"
46
+ /><label class="usa-radio__label" for="html-radio-buttons-default-historical-figures-3"
47
+ >George Washington Carver</label
48
+ >
49
+ </div>
50
+ </fieldset>
51
+ </div>
52
+
53
+ <h3 class="site-preview-heading">With Default Value</h3>
54
+ <div class="usa-form-group usx-form-group">
55
+ <fieldset
56
+ class="usa-fieldset usx-fieldset"
57
+ id="html-radio-buttons-with-default-value-historical-figures-with-default"
58
+ >
59
+ <legend class="usa-legend usx-legend">Select one option</legend>
60
+ <div class="usa-radio usx-radio">
61
+ <input
62
+ class="usa-radio__input"
63
+ id="html-radio-buttons-with-default-value-historical-figures-with-default-0"
64
+ type="radio"
65
+ name="historical-figures-with-default"
66
+ value="sojourner-truth"
67
+ /><label
68
+ class="usa-radio__label"
69
+ for="html-radio-buttons-with-default-value-historical-figures-with-default-0"
70
+ >Sojourner Truth</label
71
+ >
72
+ </div>
73
+ <div class="usa-radio usx-radio">
74
+ <input
75
+ class="usa-radio__input"
76
+ id="html-radio-buttons-with-default-value-historical-figures-with-default-1"
77
+ type="radio"
78
+ name="historical-figures-with-default"
79
+ value="frederick-douglass"
80
+ checked=""
81
+ /><label
82
+ class="usa-radio__label"
83
+ for="html-radio-buttons-with-default-value-historical-figures-with-default-1"
84
+ >Frederick Douglass</label
85
+ >
86
+ </div>
87
+ <div class="usa-radio usx-radio">
88
+ <input
89
+ class="usa-radio__input"
90
+ id="html-radio-buttons-with-default-value-historical-figures-with-default-2"
91
+ type="radio"
92
+ name="historical-figures-with-default"
93
+ value="booker-t-washington"
94
+ /><label
95
+ class="usa-radio__label"
96
+ for="html-radio-buttons-with-default-value-historical-figures-with-default-2"
97
+ >Booker T. Washington</label
98
+ >
99
+ </div>
100
+ <div class="usa-radio usx-radio">
101
+ <input
102
+ class="usa-radio__input"
103
+ id="html-radio-buttons-with-default-value-historical-figures-with-default-3"
104
+ type="radio"
105
+ name="historical-figures-with-default"
106
+ disabled=""
107
+ value="george-washington-carver"
108
+ /><label
109
+ class="usa-radio__label"
110
+ for="html-radio-buttons-with-default-value-historical-figures-with-default-3"
111
+ >George Washington Carver</label
112
+ >
113
+ </div>
114
+ </fieldset>
115
+ </div>
116
+
117
+ <h3 class="site-preview-heading">With Descriptions</h3>
118
+ <div class="usa-form-group usx-form-group">
119
+ <fieldset
120
+ class="usa-fieldset usx-fieldset"
121
+ id="html-radio-buttons-with-descriptions-historical-figures-with-descriptions"
122
+ >
123
+ <legend class="usa-legend usx-legend">Select one option</legend>
124
+ <div class="usa-radio usx-radio">
125
+ <input
126
+ class="usa-radio__input"
127
+ id="html-radio-buttons-with-descriptions-historical-figures-with-descriptions-0"
128
+ type="radio"
129
+ name="historical-figures-with-descriptions"
130
+ value="sojourner-truth"
131
+ /><label
132
+ class="usa-radio__label"
133
+ for="html-radio-buttons-with-descriptions-historical-figures-with-descriptions-0"
134
+ >Sojourner Truth<span class="usa-checkbox__label-description"
135
+ >A prominent abolitionist and women's rights activist.</span
136
+ ></label
137
+ >
138
+ </div>
139
+ <div class="usa-radio usx-radio">
140
+ <input
141
+ class="usa-radio__input"
142
+ id="html-radio-buttons-with-descriptions-historical-figures-with-descriptions-1"
143
+ type="radio"
144
+ name="historical-figures-with-descriptions"
145
+ value="frederick-douglass"
146
+ /><label
147
+ class="usa-radio__label"
148
+ for="html-radio-buttons-with-descriptions-historical-figures-with-descriptions-1"
149
+ >Frederick Douglass<span class="usa-checkbox__label-description"
150
+ >A former enslaved person who became a national leader of the abolitionist movement.</span
151
+ ></label
152
+ >
153
+ </div>
154
+ <div class="usa-radio usx-radio">
155
+ <input
156
+ class="usa-radio__input"
157
+ id="html-radio-buttons-with-descriptions-historical-figures-with-descriptions-2"
158
+ type="radio"
159
+ name="historical-figures-with-descriptions"
160
+ value="booker-t-washington"
161
+ /><label
162
+ class="usa-radio__label"
163
+ for="html-radio-buttons-with-descriptions-historical-figures-with-descriptions-2"
164
+ >Booker T. Washington<span class="usa-checkbox__label-description"
165
+ >An influential African American educator, author, orator, and advisor to multiple
166
+ presidents of the United States.</span
167
+ ></label
168
+ >
169
+ </div>
170
+ <div class="usa-radio usx-radio">
171
+ <input
172
+ class="usa-radio__input"
173
+ id="html-radio-buttons-with-descriptions-historical-figures-with-descriptions-3"
174
+ type="radio"
175
+ name="historical-figures-with-descriptions"
176
+ disabled=""
177
+ value="george-washington-carver"
178
+ /><label
179
+ class="usa-radio__label"
180
+ for="html-radio-buttons-with-descriptions-historical-figures-with-descriptions-3"
181
+ >George Washington Carver<span class="usa-checkbox__label-description"
182
+ >An American agricultural scientist and inventor who promoted alternative crops to cotton
183
+ and methods to prevent soil depletion.</span
184
+ ></label
185
+ >
186
+ </div>
187
+ </fieldset>
188
+ </div>
55
189
 
56
190
  <h3 class="site-preview-heading">Tile</h3>
57
- <form class="usa-form">
58
- <fieldset class="usa-fieldset">
59
- <legend class="usa-legend">Select one historical figure</legend>
191
+ <div class="usa-form-group usx-form-group">
192
+ <fieldset class="usa-fieldset usx-fieldset" id="html-radio-buttons-tile-tile-options">
193
+ <legend class="usa-legend usx-legend">Select one option</legend>
60
194
  <div class="usa-radio usx-radio">
61
195
  <input
62
196
  class="usa-radio__input usa-radio__input--tile"
63
- id="historical-truth-2"
197
+ id="html-radio-buttons-tile-tile-options-0"
64
198
  type="radio"
65
- name="historical-figures-2"
199
+ name="tile-options"
66
200
  value="sojourner-truth"
67
- checked="checked"
68
- />
69
- <label class="usa-radio__label" for="historical-truth-2"
201
+ /><label class="usa-radio__label" for="html-radio-buttons-tile-tile-options-0"
70
202
  >Sojourner Truth</label
71
203
  >
72
204
  </div>
73
205
  <div class="usa-radio usx-radio">
74
206
  <input
75
207
  class="usa-radio__input usa-radio__input--tile"
76
- id="historical-douglass-2"
208
+ id="html-radio-buttons-tile-tile-options-1"
77
209
  type="radio"
78
- name="historical-figures-2"
210
+ name="tile-options"
79
211
  value="frederick-douglass"
80
- />
81
- <label class="usa-radio__label" for="historical-douglass-2"
82
- >Frederick Douglass
83
- <span class="usa-checkbox__label-description"
84
- >This is optional text that can be used to describe the label in more
85
- detail.</span
86
- ></label
212
+ /><label class="usa-radio__label" for="html-radio-buttons-tile-tile-options-1"
213
+ >Frederick Douglass</label
87
214
  >
88
215
  </div>
89
216
  <div class="usa-radio usx-radio">
90
217
  <input
91
218
  class="usa-radio__input usa-radio__input--tile"
92
- id="historical-washington-2"
219
+ id="html-radio-buttons-tile-tile-options-2"
93
220
  type="radio"
94
- name="historical-figures-2"
221
+ name="tile-options"
95
222
  value="booker-t-washington"
96
- />
97
- <label class="usa-radio__label" for="historical-washington-2"
223
+ /><label class="usa-radio__label" for="html-radio-buttons-tile-tile-options-2"
98
224
  >Booker T. Washington</label
99
225
  >
100
226
  </div>
101
227
  <div class="usa-radio usx-radio">
102
228
  <input
103
229
  class="usa-radio__input usa-radio__input--tile"
104
- id="historical-carver-2"
230
+ id="html-radio-buttons-tile-tile-options-3"
105
231
  type="radio"
106
- name="historical-figures-2"
232
+ name="tile-options"
233
+ disabled=""
107
234
  value="george-washington-carver"
108
- disabled="disabled"
109
- />
110
- <label class="usa-radio__label" for="historical-carver-2"
235
+ /><label class="usa-radio__label" for="html-radio-buttons-tile-tile-options-3"
111
236
  >George Washington Carver</label
112
237
  >
113
238
  </div>
239
+ </fieldset>
240
+ </div>
241
+
242
+ <h3 class="site-preview-heading">Tile With Descriptions</h3>
243
+ <div class="usa-form-group usx-form-group">
244
+ <fieldset
245
+ class="usa-fieldset usx-fieldset"
246
+ id="html-radio-buttons-tile-with-descriptions-tile-options-with-descriptions"
247
+ >
248
+ <legend class="usa-legend usx-legend">Select one option</legend>
249
+ <div class="usa-radio usx-radio">
250
+ <input
251
+ class="usa-radio__input usa-radio__input--tile"
252
+ id="html-radio-buttons-tile-with-descriptions-tile-options-with-descriptions-0"
253
+ type="radio"
254
+ name="tile-options-with-descriptions"
255
+ value="sojourner-truth"
256
+ /><label
257
+ class="usa-radio__label"
258
+ for="html-radio-buttons-tile-with-descriptions-tile-options-with-descriptions-0"
259
+ >Sojourner Truth<span class="usa-checkbox__label-description"
260
+ >A prominent abolitionist and women's rights activist.</span
261
+ ></label
262
+ >
263
+ </div>
264
+ <div class="usa-radio usx-radio">
265
+ <input
266
+ class="usa-radio__input usa-radio__input--tile"
267
+ id="html-radio-buttons-tile-with-descriptions-tile-options-with-descriptions-1"
268
+ type="radio"
269
+ name="tile-options-with-descriptions"
270
+ value="frederick-douglass"
271
+ /><label
272
+ class="usa-radio__label"
273
+ for="html-radio-buttons-tile-with-descriptions-tile-options-with-descriptions-1"
274
+ >Frederick Douglass<span class="usa-checkbox__label-description"
275
+ >A former enslaved person who became a national leader of the abolitionist movement.</span
276
+ ></label
277
+ >
278
+ </div>
279
+ <div class="usa-radio usx-radio">
280
+ <input
281
+ class="usa-radio__input usa-radio__input--tile"
282
+ id="html-radio-buttons-tile-with-descriptions-tile-options-with-descriptions-2"
283
+ type="radio"
284
+ name="tile-options-with-descriptions"
285
+ value="booker-t-washington"
286
+ /><label
287
+ class="usa-radio__label"
288
+ for="html-radio-buttons-tile-with-descriptions-tile-options-with-descriptions-2"
289
+ >Booker T. Washington<span class="usa-checkbox__label-description"
290
+ >An influential African American educator, author, orator, and advisor to multiple
291
+ presidents of the United States.</span
292
+ ></label
293
+ >
294
+ </div>
114
295
  <div class="usa-radio usx-radio">
115
296
  <input
116
297
  class="usa-radio__input usa-radio__input--tile"
117
- id="historical-carver-2"
298
+ id="html-radio-buttons-tile-with-descriptions-tile-options-with-descriptions-3"
118
299
  type="radio"
119
- name="historical-figures-2"
120
- value="james-madison"
121
- disabled="disabled"
122
- checked="checked"
123
- />
124
- <label class="usa-radio__label" for="historical-carver-2"
125
- >James Madison</label
300
+ name="tile-options-with-descriptions"
301
+ disabled=""
302
+ value="george-washington-carver"
303
+ /><label
304
+ class="usa-radio__label"
305
+ for="html-radio-buttons-tile-with-descriptions-tile-options-with-descriptions-3"
306
+ >George Washington Carver<span class="usa-checkbox__label-description"
307
+ >An American agricultural scientist and inventor who promoted alternative crops to cotton
308
+ and methods to prevent soil depletion.</span
309
+ ></label
126
310
  >
127
311
  </div>
128
312
  </fieldset>
129
- </form>
313
+ </div>
130
314
 
131
315
  <h3 class="site-preview-heading">Small</h3>
132
- <fieldset class="usa-fieldset">
133
- <legend class="usa-legend">Select one historical figure</legend>
134
- <div class="usa-radio usx-radio usx-radio--small">
135
- <input class="usa-radio__input" id="small-historical-truth" type="radio" name="small-historical-figures" value="sojourner-truth" checked="checked" />
136
- <label class="usa-radio__label" for="small-historical-truth">Sojourner Truth</label>
137
- </div>
138
- <div class="usa-radio usx-radio usx-radio--small">
139
- <input class="usa-radio__input" id="small-historical-douglass" type="radio" name="small-historical-figures" value="frederick-douglass" />
140
- <label class="usa-radio__label" for="small-historical-douglass">Frederick Douglass</label>
141
- </div>
142
- <div class="usa-radio usx-radio usx-radio--small">
143
- <input class="usa-radio__input" id="small-historical-washington" type="radio" name="small-historical-figures" value="booker-t-washington" />
144
- <label class="usa-radio__label" for="small-historical-washington">Booker T. Washington</label>
145
- </div>
146
- <div class="usa-radio usx-radio usx-radio--small">
147
- <input class="usa-radio__input" id="small-historical-carver" type="radio" name="small-historical-figures" value="george-washington-carver" disabled="disabled" />
148
- <label class="usa-radio__label" for="small-historical-carver">George Washington Carver</label>
149
- </div>
150
- </fieldset>
316
+ <div class="usa-form-group usx-form-group">
317
+ <fieldset class="usa-fieldset usx-fieldset" id="html-radio-buttons-small-small-options">
318
+ <legend class="usa-legend usx-legend">Select one option</legend>
319
+ <div class="usa-radio usx-radio usx-radio--small">
320
+ <input
321
+ class="usa-radio__input"
322
+ id="html-radio-buttons-small-small-options-0"
323
+ type="radio"
324
+ name="small-options"
325
+ value="sojourner-truth"
326
+ /><label class="usa-radio__label" for="html-radio-buttons-small-small-options-0"
327
+ >Sojourner Truth</label
328
+ >
329
+ </div>
330
+ <div class="usa-radio usx-radio usx-radio--small">
331
+ <input
332
+ class="usa-radio__input"
333
+ id="html-radio-buttons-small-small-options-1"
334
+ type="radio"
335
+ name="small-options"
336
+ value="frederick-douglass"
337
+ /><label class="usa-radio__label" for="html-radio-buttons-small-small-options-1"
338
+ >Frederick Douglass</label
339
+ >
340
+ </div>
341
+ <div class="usa-radio usx-radio usx-radio--small">
342
+ <input
343
+ class="usa-radio__input"
344
+ id="html-radio-buttons-small-small-options-2"
345
+ type="radio"
346
+ name="small-options"
347
+ value="booker-t-washington"
348
+ /><label class="usa-radio__label" for="html-radio-buttons-small-small-options-2"
349
+ >Booker T. Washington</label
350
+ >
351
+ </div>
352
+ <div class="usa-radio usx-radio usx-radio--small">
353
+ <input
354
+ class="usa-radio__input"
355
+ id="html-radio-buttons-small-small-options-3"
356
+ type="radio"
357
+ name="small-options"
358
+ disabled=""
359
+ value="george-washington-carver"
360
+ /><label class="usa-radio__label" for="html-radio-buttons-small-small-options-3"
361
+ >George Washington Carver</label
362
+ >
363
+ </div>
364
+ </fieldset>
365
+ </div>
151
366
 
152
367
  <h3 class="site-preview-heading">Small Tile</h3>
153
- <form class="usa-form">
154
- <fieldset class="usa-fieldset">
155
- <legend class="usa-legend">Select one historical figure</legend>
368
+ <div class="usa-form-group usx-form-group">
369
+ <fieldset class="usa-fieldset usx-fieldset" id="html-radio-buttons-small-tile-small-tile-options">
370
+ <legend class="usa-legend usx-legend">Select one option</legend>
371
+ <div class="usa-radio usx-radio usx-radio--small">
372
+ <input
373
+ class="usa-radio__input usa-radio__input--tile"
374
+ id="html-radio-buttons-small-tile-small-tile-options-0"
375
+ type="radio"
376
+ name="small-tile-options"
377
+ value="sojourner-truth"
378
+ /><label class="usa-radio__label" for="html-radio-buttons-small-tile-small-tile-options-0"
379
+ >Sojourner Truth</label
380
+ >
381
+ </div>
382
+ <div class="usa-radio usx-radio usx-radio--small">
383
+ <input
384
+ class="usa-radio__input usa-radio__input--tile"
385
+ id="html-radio-buttons-small-tile-small-tile-options-1"
386
+ type="radio"
387
+ name="small-tile-options"
388
+ value="frederick-douglass"
389
+ /><label class="usa-radio__label" for="html-radio-buttons-small-tile-small-tile-options-1"
390
+ >Frederick Douglass</label
391
+ >
392
+ </div>
393
+ <div class="usa-radio usx-radio usx-radio--small">
394
+ <input
395
+ class="usa-radio__input usa-radio__input--tile"
396
+ id="html-radio-buttons-small-tile-small-tile-options-2"
397
+ type="radio"
398
+ name="small-tile-options"
399
+ value="booker-t-washington"
400
+ /><label class="usa-radio__label" for="html-radio-buttons-small-tile-small-tile-options-2"
401
+ >Booker T. Washington</label
402
+ >
403
+ </div>
404
+ <div class="usa-radio usx-radio usx-radio--small">
405
+ <input
406
+ class="usa-radio__input usa-radio__input--tile"
407
+ id="html-radio-buttons-small-tile-small-tile-options-3"
408
+ type="radio"
409
+ name="small-tile-options"
410
+ disabled=""
411
+ value="george-washington-carver"
412
+ /><label class="usa-radio__label" for="html-radio-buttons-small-tile-small-tile-options-3"
413
+ >George Washington Carver</label
414
+ >
415
+ </div>
416
+ </fieldset>
417
+ </div>
418
+
419
+ <h3 class="site-preview-heading">Small Tile With Descriptions</h3>
420
+ <div class="usa-form-group usx-form-group">
421
+ <fieldset
422
+ class="usa-fieldset usx-fieldset"
423
+ id="html-radio-buttons-small-tile-with-descriptions-small-tile-options-with-descriptions"
424
+ >
425
+ <legend class="usa-legend usx-legend">Select one option</legend>
156
426
  <div class="usa-radio usx-radio usx-radio--small">
157
- <input class="usa-radio__input usa-radio__input--tile" id="small-historical-truth-2" type="radio" name="small-historical-figures-2" value="sojourner-truth" checked="checked" />
158
- <label class="usa-radio__label" for="small-historical-truth-2">Sojourner Truth</label>
427
+ <input
428
+ class="usa-radio__input usa-radio__input--tile"
429
+ id="html-radio-buttons-small-tile-with-descriptions-small-tile-options-with-descriptions-0"
430
+ type="radio"
431
+ name="small-tile-options-with-descriptions"
432
+ value="sojourner-truth"
433
+ /><label
434
+ class="usa-radio__label"
435
+ for="html-radio-buttons-small-tile-with-descriptions-small-tile-options-with-descriptions-0"
436
+ >Sojourner Truth<span class="usa-checkbox__label-description"
437
+ >A prominent abolitionist and women's rights activist.</span
438
+ ></label
439
+ >
159
440
  </div>
160
441
  <div class="usa-radio usx-radio usx-radio--small">
161
- <input class="usa-radio__input usa-radio__input--tile" id="small-historical-douglass-2" type="radio" name="small-historical-figures-2" value="frederick-douglass" />
162
- <label class="usa-radio__label" for="small-historical-douglass-2">Frederick Douglass <span class="usa-checkbox__label-description">This is optional text that can be used to describe the label in more detail.</span></label>
442
+ <input
443
+ class="usa-radio__input usa-radio__input--tile"
444
+ id="html-radio-buttons-small-tile-with-descriptions-small-tile-options-with-descriptions-1"
445
+ type="radio"
446
+ name="small-tile-options-with-descriptions"
447
+ value="frederick-douglass"
448
+ /><label
449
+ class="usa-radio__label"
450
+ for="html-radio-buttons-small-tile-with-descriptions-small-tile-options-with-descriptions-1"
451
+ >Frederick Douglass<span class="usa-checkbox__label-description"
452
+ >A former enslaved person who became a national leader of the abolitionist movement.</span
453
+ ></label
454
+ >
163
455
  </div>
164
456
  <div class="usa-radio usx-radio usx-radio--small">
165
- <input class="usa-radio__input usa-radio__input--tile" id="small-historical-washington-2" type="radio" name="small-historical-figures-2" value="booker-t-washington" />
166
- <label class="usa-radio__label" for="small-historical-washington-2">Booker T. Washington</label>
457
+ <input
458
+ class="usa-radio__input usa-radio__input--tile"
459
+ id="html-radio-buttons-small-tile-with-descriptions-small-tile-options-with-descriptions-2"
460
+ type="radio"
461
+ name="small-tile-options-with-descriptions"
462
+ value="booker-t-washington"
463
+ /><label
464
+ class="usa-radio__label"
465
+ for="html-radio-buttons-small-tile-with-descriptions-small-tile-options-with-descriptions-2"
466
+ >Booker T. Washington<span class="usa-checkbox__label-description"
467
+ >An influential African American educator, author, orator, and advisor to multiple
468
+ presidents of the United States.</span
469
+ ></label
470
+ >
167
471
  </div>
168
472
  <div class="usa-radio usx-radio usx-radio--small">
169
- <input class="usa-radio__input usa-radio__input--tile" id="small-historical-carver-2" type="radio" name="small-historical-figures-2" value="george-washington-carver" disabled="disabled" />
170
- <label class="usa-radio__label" for="small-historical-carver-2">George Washington Carver</label>
473
+ <input
474
+ class="usa-radio__input usa-radio__input--tile"
475
+ id="html-radio-buttons-small-tile-with-descriptions-small-tile-options-with-descriptions-3"
476
+ type="radio"
477
+ name="small-tile-options-with-descriptions"
478
+ disabled=""
479
+ value="george-washington-carver"
480
+ /><label
481
+ class="usa-radio__label"
482
+ for="html-radio-buttons-small-tile-with-descriptions-small-tile-options-with-descriptions-3"
483
+ >George Washington Carver<span class="usa-checkbox__label-description"
484
+ >An American agricultural scientist and inventor who promoted alternative crops to cotton
485
+ and methods to prevent soil depletion.</span
486
+ ></label
487
+ >
488
+ </div>
489
+ </fieldset>
490
+ </div>
491
+
492
+ <h3 class="site-preview-heading">With Additional Class</h3>
493
+ <div class="usa-form-group usx-form-group">
494
+ <fieldset
495
+ class="usa-fieldset usx-fieldset"
496
+ id="html-radio-buttons-with-additional-class-custom-class-options"
497
+ >
498
+ <legend class="usa-legend usx-legend">Select one option</legend>
499
+ <div class="usa-radio usx-radio maxw-mobile font-heading-xl">
500
+ <input
501
+ class="usa-radio__input usa-radio__input--tile"
502
+ id="html-radio-buttons-with-additional-class-custom-class-options-0"
503
+ type="radio"
504
+ name="custom-class-options"
505
+ value="sojourner-truth"
506
+ /><label
507
+ class="usa-radio__label"
508
+ for="html-radio-buttons-with-additional-class-custom-class-options-0"
509
+ >Sojourner Truth<span class="usa-checkbox__label-description"
510
+ >A prominent abolitionist and women's rights activist.</span
511
+ ></label
512
+ >
513
+ </div>
514
+ <div class="usa-radio usx-radio maxw-mobile font-heading-xl">
515
+ <input
516
+ class="usa-radio__input usa-radio__input--tile"
517
+ id="html-radio-buttons-with-additional-class-custom-class-options-1"
518
+ type="radio"
519
+ name="custom-class-options"
520
+ value="frederick-douglass"
521
+ /><label
522
+ class="usa-radio__label"
523
+ for="html-radio-buttons-with-additional-class-custom-class-options-1"
524
+ >Frederick Douglass<span class="usa-checkbox__label-description"
525
+ >A former enslaved person who became a national leader of the abolitionist movement.</span
526
+ ></label
527
+ >
528
+ </div>
529
+ <div class="usa-radio usx-radio maxw-mobile font-heading-xl">
530
+ <input
531
+ class="usa-radio__input usa-radio__input--tile"
532
+ id="html-radio-buttons-with-additional-class-custom-class-options-2"
533
+ type="radio"
534
+ name="custom-class-options"
535
+ value="booker-t-washington"
536
+ /><label
537
+ class="usa-radio__label"
538
+ for="html-radio-buttons-with-additional-class-custom-class-options-2"
539
+ >Booker T. Washington<span class="usa-checkbox__label-description"
540
+ >An influential African American educator, author, orator, and advisor to multiple
541
+ presidents of the United States.</span
542
+ ></label
543
+ >
544
+ </div>
545
+ <div class="usa-radio usx-radio maxw-mobile font-heading-xl">
546
+ <input
547
+ class="usa-radio__input usa-radio__input--tile"
548
+ id="html-radio-buttons-with-additional-class-custom-class-options-3"
549
+ type="radio"
550
+ name="custom-class-options"
551
+ disabled=""
552
+ value="george-washington-carver"
553
+ /><label
554
+ class="usa-radio__label"
555
+ for="html-radio-buttons-with-additional-class-custom-class-options-3"
556
+ >George Washington Carver<span class="usa-checkbox__label-description"
557
+ >An American agricultural scientist and inventor who promoted alternative crops to cotton
558
+ and methods to prevent soil depletion.</span
559
+ ></label
560
+ >
561
+ </div>
562
+ </fieldset>
563
+ </div>
564
+
565
+ <h3 class="site-preview-heading">With Hint</h3>
566
+ <div class="usa-form-group usx-form-group">
567
+ <fieldset
568
+ class="usa-fieldset usx-fieldset"
569
+ id="html-radio-buttons-with-hint-historical-figures-hint"
570
+ >
571
+ <legend class="usa-legend usx-legend">Select one option</legend>
572
+ <span class="usa-hint usx-hint">Choose the person you find most inspiring.</span>
573
+ <div class="usa-radio usx-radio">
574
+ <input
575
+ class="usa-radio__input"
576
+ id="html-radio-buttons-with-hint-historical-figures-hint-0"
577
+ type="radio"
578
+ name="historical-figures-hint"
579
+ value="sojourner-truth"
580
+ /><label class="usa-radio__label" for="html-radio-buttons-with-hint-historical-figures-hint-0"
581
+ >Sojourner Truth</label
582
+ >
583
+ </div>
584
+ <div class="usa-radio usx-radio">
585
+ <input
586
+ class="usa-radio__input"
587
+ id="html-radio-buttons-with-hint-historical-figures-hint-1"
588
+ type="radio"
589
+ name="historical-figures-hint"
590
+ value="frederick-douglass"
591
+ /><label class="usa-radio__label" for="html-radio-buttons-with-hint-historical-figures-hint-1"
592
+ >Frederick Douglass</label
593
+ >
594
+ </div>
595
+ <div class="usa-radio usx-radio">
596
+ <input
597
+ class="usa-radio__input"
598
+ id="html-radio-buttons-with-hint-historical-figures-hint-2"
599
+ type="radio"
600
+ name="historical-figures-hint"
601
+ value="booker-t-washington"
602
+ /><label class="usa-radio__label" for="html-radio-buttons-with-hint-historical-figures-hint-2"
603
+ >Booker T. Washington</label
604
+ >
605
+ </div>
606
+ <div class="usa-radio usx-radio">
607
+ <input
608
+ class="usa-radio__input"
609
+ id="html-radio-buttons-with-hint-historical-figures-hint-3"
610
+ type="radio"
611
+ name="historical-figures-hint"
612
+ disabled=""
613
+ value="george-washington-carver"
614
+ /><label class="usa-radio__label" for="html-radio-buttons-with-hint-historical-figures-hint-3"
615
+ >George Washington Carver</label
616
+ >
171
617
  </div>
172
618
  </fieldset>
173
- </form>
619
+ </div>
174
620
 
175
621
  <h3 class="site-preview-heading">With Error</h3>
176
622
  <div class="usa-form-group usx-form-group usa-form-group--error">
177
- <fieldset class="usa-fieldset">
178
- <legend class="usa-legend usa-label--error">Select one historical figure</legend>
179
- <span class="usa-error-message" id="historical-figures-error-error" role="alert">Select an option to continue.</span>
623
+ <fieldset
624
+ class="usa-fieldset usx-fieldset"
625
+ id="html-radio-buttons-with-error-historical-figures-error"
626
+ >
627
+ <legend class="usa-legend usx-legend usa-label--error">Select one option</legend>
628
+ <span class="usa-error-message usx-error-message" role="alert"
629
+ >Select an option to continue.</span
630
+ >
631
+ <div class="usa-radio usx-radio">
632
+ <input
633
+ class="usa-radio__input"
634
+ id="html-radio-buttons-with-error-historical-figures-error-0"
635
+ type="radio"
636
+ name="historical-figures-error"
637
+ value="sojourner-truth"
638
+ /><label
639
+ class="usa-radio__label"
640
+ for="html-radio-buttons-with-error-historical-figures-error-0"
641
+ >Sojourner Truth</label
642
+ >
643
+ </div>
180
644
  <div class="usa-radio usx-radio">
181
- <input class="usa-radio__input" id="historical-error-truth" type="radio" name="historical-figures-error" value="sojourner-truth" />
182
- <label class="usa-radio__label" for="historical-error-truth">Sojourner Truth</label>
645
+ <input
646
+ class="usa-radio__input"
647
+ id="html-radio-buttons-with-error-historical-figures-error-1"
648
+ type="radio"
649
+ name="historical-figures-error"
650
+ value="frederick-douglass"
651
+ /><label
652
+ class="usa-radio__label"
653
+ for="html-radio-buttons-with-error-historical-figures-error-1"
654
+ >Frederick Douglass</label
655
+ >
656
+ </div>
657
+ <div class="usa-radio usx-radio">
658
+ <input
659
+ class="usa-radio__input"
660
+ id="html-radio-buttons-with-error-historical-figures-error-2"
661
+ type="radio"
662
+ name="historical-figures-error"
663
+ value="booker-t-washington"
664
+ /><label
665
+ class="usa-radio__label"
666
+ for="html-radio-buttons-with-error-historical-figures-error-2"
667
+ >Booker T. Washington</label
668
+ >
183
669
  </div>
184
670
  <div class="usa-radio usx-radio">
185
- <input class="usa-radio__input" id="historical-error-douglass" type="radio" name="historical-figures-error" value="frederick-douglass" />
186
- <label class="usa-radio__label" for="historical-error-douglass">Frederick Douglass</label>
671
+ <input
672
+ class="usa-radio__input"
673
+ id="html-radio-buttons-with-error-historical-figures-error-3"
674
+ type="radio"
675
+ name="historical-figures-error"
676
+ disabled=""
677
+ value="george-washington-carver"
678
+ /><label
679
+ class="usa-radio__label"
680
+ for="html-radio-buttons-with-error-historical-figures-error-3"
681
+ >George Washington Carver</label
682
+ >
187
683
  </div>
188
684
  </fieldset>
189
- </div>
685
+ </div>