@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.
- 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
|
@@ -20,26 +20,82 @@
|
|
|
20
20
|
|
|
21
21
|
<h3 class="site-preview-heading">Status tags</h3>
|
|
22
22
|
<span class="usa-tag usx-tag bg-info">
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
<svg class="usa-icon usa-icon--size-3" aria-hidden="true" focusable="false" role="img">
|
|
24
|
+
<use href="./img/sprite.svg#info_outline"></use>
|
|
25
|
+
</svg>
|
|
26
|
+
Info
|
|
27
27
|
</span>
|
|
28
28
|
<span class="usa-tag usx-tag bg-success">
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
<svg class="usa-icon usa-icon--size-3" aria-hidden="true" focusable="false" role="img">
|
|
30
|
+
<use href="./img/sprite.svg#check"></use>
|
|
31
|
+
</svg>
|
|
32
|
+
Success
|
|
33
33
|
</span>
|
|
34
34
|
<span class="usa-tag usx-tag bg-warning">
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
<svg class="usa-icon usa-icon--size-3" aria-hidden="true" focusable="false" role="img">
|
|
36
|
+
<use href="./img/sprite.svg#warning"></use>
|
|
37
|
+
</svg>
|
|
38
|
+
Warning
|
|
39
39
|
</span>
|
|
40
40
|
<span class="usa-tag usx-tag bg-error">
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</span>
|
|
41
|
+
<svg class="usa-icon usa-icon--size-3" aria-hidden="true" focusable="false" role="img">
|
|
42
|
+
<use href="./img/sprite.svg#error_outline"></use>
|
|
43
|
+
</svg>
|
|
44
|
+
Error
|
|
45
|
+
</span>
|
|
46
|
+
|
|
47
|
+
<h3 class="site-preview-heading">With icon</h3>
|
|
48
|
+
<span class="usa-tag usx-tag"
|
|
49
|
+
><svg
|
|
50
|
+
class="usa-icon usa-icon--size-2"
|
|
51
|
+
aria-hidden="true"
|
|
52
|
+
aria-label="campaign icon"
|
|
53
|
+
focusable="false"
|
|
54
|
+
role="img"
|
|
55
|
+
>
|
|
56
|
+
<use href="/img/sprite.svg#campaign"></use>
|
|
57
|
+
</svg>
|
|
58
|
+
Success</span
|
|
59
|
+
>
|
|
60
|
+
|
|
61
|
+
<h3 class="site-preview-heading">Big with icon</h3>
|
|
62
|
+
<span class="usa-tag usx-tag usa-tag--big"
|
|
63
|
+
><svg
|
|
64
|
+
class="usa-icon usa-icon--size-3"
|
|
65
|
+
aria-hidden="true"
|
|
66
|
+
aria-label="campaign icon"
|
|
67
|
+
focusable="false"
|
|
68
|
+
role="img"
|
|
69
|
+
>
|
|
70
|
+
<use href="/img/sprite.svg#campaign"></use>
|
|
71
|
+
</svg>
|
|
72
|
+
Big with icon</span
|
|
73
|
+
>
|
|
74
|
+
|
|
75
|
+
<h3 class="site-preview-heading">Dismissible</h3>
|
|
76
|
+
<span class="usa-tag usx-tag">
|
|
77
|
+
Dismissible<button type="button" class="usx-tag__dismiss" aria-label="Dismiss tag">
|
|
78
|
+
<svg
|
|
79
|
+
class="usa-icon usa-icon--size-2"
|
|
80
|
+
aria-hidden="true"
|
|
81
|
+
aria-label="close icon"
|
|
82
|
+
focusable="false"
|
|
83
|
+
role="img"
|
|
84
|
+
>
|
|
85
|
+
<use href="/img/sprite.svg#close"></use>
|
|
86
|
+
</svg></button
|
|
87
|
+
></span>
|
|
88
|
+
|
|
89
|
+
<h3 class="site-preview-heading">Dismissible With Callback</h3>
|
|
90
|
+
<span class="usa-tag usx-tag">
|
|
91
|
+
Dismissible<button type="button" class="usx-tag__dismiss" aria-label="Dismiss tag">
|
|
92
|
+
<svg
|
|
93
|
+
class="usa-icon usa-icon--size-2"
|
|
94
|
+
aria-hidden="true"
|
|
95
|
+
aria-label="close icon"
|
|
96
|
+
focusable="false"
|
|
97
|
+
role="img"
|
|
98
|
+
>
|
|
99
|
+
<use href="/img/sprite.svg#close"></use>
|
|
100
|
+
</svg></button
|
|
101
|
+
></span>
|
|
@@ -1,24 +1,261 @@
|
|
|
1
1
|
<h3 class="site-preview-heading">Default</h3>
|
|
2
2
|
<ul class="usx-task-list">
|
|
3
3
|
<li>
|
|
4
|
-
<a
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
5
|
+
><span class="usx-clickable__link usx-task-list__link">Task 1</span
|
|
6
|
+
><span class="usa-tag usx-tag bg-success-light"
|
|
7
|
+
><svg
|
|
8
|
+
class="usa-icon usa-icon--size-2"
|
|
9
|
+
aria-hidden="true"
|
|
10
|
+
aria-label="check icon"
|
|
11
|
+
focusable="false"
|
|
12
|
+
role="img"
|
|
13
|
+
>
|
|
14
|
+
<use href="/img/sprite.svg#check"></use>
|
|
15
|
+
</svg>
|
|
16
|
+
Completed</span
|
|
17
|
+
></a
|
|
18
|
+
>
|
|
8
19
|
</li>
|
|
9
20
|
<li>
|
|
10
|
-
<a
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
21
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
22
|
+
><span class="usx-clickable__link usx-task-list__link">Task 2</span
|
|
23
|
+
><span class="usa-tag usx-tag bg-primary-light"> In progress</span></a
|
|
24
|
+
>
|
|
14
25
|
</li>
|
|
15
26
|
<li>
|
|
16
|
-
<a
|
|
17
|
-
|
|
18
|
-
<span class="usx-clickable__link usx-task-list__link">Task 3</span
|
|
19
|
-
|
|
27
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
28
|
+
><div class="display-flex flex-column">
|
|
29
|
+
<span class="usx-clickable__link usx-task-list__link">Task 3</span
|
|
30
|
+
><span class="usa-hint usx-task-list__hint">Due tomorrow</span>
|
|
20
31
|
</div>
|
|
21
|
-
<span class="usa-tag usx-tag bg-primary-
|
|
22
|
-
|
|
32
|
+
<span class="usa-tag usx-tag bg-primary-lightest"> Not started</span></a
|
|
33
|
+
>
|
|
23
34
|
</li>
|
|
24
|
-
</ul>
|
|
35
|
+
</ul>
|
|
36
|
+
|
|
37
|
+
<h3 class="site-preview-heading">No Status</h3>
|
|
38
|
+
<ul class="usx-task-list">
|
|
39
|
+
<li>
|
|
40
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
41
|
+
><span class="usx-clickable__link usx-task-list__link">Task 1</span></a
|
|
42
|
+
>
|
|
43
|
+
</li>
|
|
44
|
+
<li>
|
|
45
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
46
|
+
><span class="usx-clickable__link usx-task-list__link">Task 2</span></a
|
|
47
|
+
>
|
|
48
|
+
</li>
|
|
49
|
+
<li>
|
|
50
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
51
|
+
><div class="display-flex flex-column">
|
|
52
|
+
<span class="usx-clickable__link usx-task-list__link">Task 3</span
|
|
53
|
+
><span class="usa-hint usx-task-list__hint">Due tomorrow</span>
|
|
54
|
+
</div></a
|
|
55
|
+
>
|
|
56
|
+
</li>
|
|
57
|
+
</ul>
|
|
58
|
+
|
|
59
|
+
<h3 class="site-preview-heading">All Complete</h3>
|
|
60
|
+
<ul class="usx-task-list">
|
|
61
|
+
<li>
|
|
62
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
63
|
+
><span class="usx-clickable__link usx-task-list__link">Step 1</span
|
|
64
|
+
><span class="usa-tag usx-tag bg-success-light"
|
|
65
|
+
><svg
|
|
66
|
+
class="usa-icon usa-icon--size-2"
|
|
67
|
+
aria-hidden="true"
|
|
68
|
+
aria-label="check icon"
|
|
69
|
+
focusable="false"
|
|
70
|
+
role="img"
|
|
71
|
+
>
|
|
72
|
+
<use href="/img/sprite.svg#check"></use>
|
|
73
|
+
</svg>
|
|
74
|
+
Completed</span
|
|
75
|
+
></a
|
|
76
|
+
>
|
|
77
|
+
</li>
|
|
78
|
+
<li>
|
|
79
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
80
|
+
><span class="usx-clickable__link usx-task-list__link">Step 2</span
|
|
81
|
+
><span class="usa-tag usx-tag bg-success-light"
|
|
82
|
+
><svg
|
|
83
|
+
class="usa-icon usa-icon--size-2"
|
|
84
|
+
aria-hidden="true"
|
|
85
|
+
aria-label="check icon"
|
|
86
|
+
focusable="false"
|
|
87
|
+
role="img"
|
|
88
|
+
>
|
|
89
|
+
<use href="/img/sprite.svg#check"></use>
|
|
90
|
+
</svg>
|
|
91
|
+
Completed</span
|
|
92
|
+
></a
|
|
93
|
+
>
|
|
94
|
+
</li>
|
|
95
|
+
<li>
|
|
96
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
97
|
+
><span class="usx-clickable__link usx-task-list__link">Step 3</span
|
|
98
|
+
><span class="usa-tag usx-tag bg-success-light"
|
|
99
|
+
><svg
|
|
100
|
+
class="usa-icon usa-icon--size-2"
|
|
101
|
+
aria-hidden="true"
|
|
102
|
+
aria-label="check icon"
|
|
103
|
+
focusable="false"
|
|
104
|
+
role="img"
|
|
105
|
+
>
|
|
106
|
+
<use href="/img/sprite.svg#check"></use>
|
|
107
|
+
</svg>
|
|
108
|
+
Completed</span
|
|
109
|
+
></a
|
|
110
|
+
>
|
|
111
|
+
</li>
|
|
112
|
+
</ul>
|
|
113
|
+
|
|
114
|
+
<h3 class="site-preview-heading">All Incomplete</h3>
|
|
115
|
+
<ul class="usx-task-list">
|
|
116
|
+
<li>
|
|
117
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
118
|
+
><span class="usx-clickable__link usx-task-list__link">Step 1</span
|
|
119
|
+
><span class="usa-tag usx-tag bg-primary-lightest"> Not started</span></a
|
|
120
|
+
>
|
|
121
|
+
</li>
|
|
122
|
+
<li>
|
|
123
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
124
|
+
><span class="usx-clickable__link usx-task-list__link">Step 2</span
|
|
125
|
+
><span class="usa-tag usx-tag bg-primary-lightest"> Not started</span></a
|
|
126
|
+
>
|
|
127
|
+
</li>
|
|
128
|
+
<li>
|
|
129
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
130
|
+
><span class="usx-clickable__link usx-task-list__link">Step 3</span
|
|
131
|
+
><span class="usa-tag usx-tag bg-primary-lightest"> Not started</span></a
|
|
132
|
+
>
|
|
133
|
+
</li>
|
|
134
|
+
</ul>
|
|
135
|
+
|
|
136
|
+
<h3 class="site-preview-heading">With Hints</h3>
|
|
137
|
+
<ul class="usx-task-list">
|
|
138
|
+
<li>
|
|
139
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
140
|
+
><span class="usx-clickable__link usx-task-list__link">Review application</span
|
|
141
|
+
><span class="usa-tag usx-tag bg-success-light"
|
|
142
|
+
><svg
|
|
143
|
+
class="usa-icon usa-icon--size-2"
|
|
144
|
+
aria-hidden="true"
|
|
145
|
+
aria-label="check icon"
|
|
146
|
+
focusable="false"
|
|
147
|
+
role="img"
|
|
148
|
+
>
|
|
149
|
+
<use href="/img/sprite.svg#check"></use>
|
|
150
|
+
</svg>
|
|
151
|
+
Completed</span
|
|
152
|
+
></a
|
|
153
|
+
>
|
|
154
|
+
</li>
|
|
155
|
+
<li>
|
|
156
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
157
|
+
><div class="display-flex flex-column">
|
|
158
|
+
<span class="usx-clickable__link usx-task-list__link">Schedule interview</span
|
|
159
|
+
><span class="usa-hint usx-task-list__hint">Due tomorrow</span>
|
|
160
|
+
</div>
|
|
161
|
+
<span class="usa-tag usx-tag bg-primary-lightest"> Not started</span></a
|
|
162
|
+
>
|
|
163
|
+
</li>
|
|
164
|
+
<li>
|
|
165
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
166
|
+
><div class="display-flex flex-column">
|
|
167
|
+
<span class="usx-clickable__link usx-task-list__link">Complete background check</span
|
|
168
|
+
><span class="usa-hint usx-task-list__hint">Due in 3 days</span>
|
|
169
|
+
</div>
|
|
170
|
+
<span class="usa-tag usx-tag bg-primary-lightest"> Not started</span></a
|
|
171
|
+
>
|
|
172
|
+
</li>
|
|
173
|
+
</ul>
|
|
174
|
+
|
|
175
|
+
<h3 class="site-preview-heading">Mixed</h3>
|
|
176
|
+
<ul class="usx-task-list">
|
|
177
|
+
<li>
|
|
178
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
179
|
+
><span class="usx-clickable__link usx-task-list__link">Review application</span
|
|
180
|
+
><span class="usa-tag usx-tag bg-success-light"
|
|
181
|
+
><svg
|
|
182
|
+
class="usa-icon usa-icon--size-2"
|
|
183
|
+
aria-hidden="true"
|
|
184
|
+
aria-label="check icon"
|
|
185
|
+
focusable="false"
|
|
186
|
+
role="img"
|
|
187
|
+
>
|
|
188
|
+
<use href="/img/sprite.svg#check"></use>
|
|
189
|
+
</svg>
|
|
190
|
+
Completed</span
|
|
191
|
+
></a
|
|
192
|
+
>
|
|
193
|
+
</li>
|
|
194
|
+
<li>
|
|
195
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
196
|
+
><span class="usx-clickable__link usx-task-list__link">Submit supporting documents</span
|
|
197
|
+
><span class="usa-tag usx-tag bg-success-light"
|
|
198
|
+
><svg
|
|
199
|
+
class="usa-icon usa-icon--size-2"
|
|
200
|
+
aria-hidden="true"
|
|
201
|
+
aria-label="check icon"
|
|
202
|
+
focusable="false"
|
|
203
|
+
role="img"
|
|
204
|
+
>
|
|
205
|
+
<use href="/img/sprite.svg#check"></use>
|
|
206
|
+
</svg>
|
|
207
|
+
Completed</span
|
|
208
|
+
></a
|
|
209
|
+
>
|
|
210
|
+
</li>
|
|
211
|
+
<li>
|
|
212
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
213
|
+
><div class="display-flex flex-column">
|
|
214
|
+
<span class="usx-clickable__link usx-task-list__link">Schedule interview</span
|
|
215
|
+
><span class="usa-hint usx-task-list__hint">Due tomorrow</span>
|
|
216
|
+
</div>
|
|
217
|
+
<span class="usa-tag usx-tag bg-success-light"
|
|
218
|
+
><svg
|
|
219
|
+
class="usa-icon usa-icon--size-2"
|
|
220
|
+
aria-hidden="true"
|
|
221
|
+
aria-label="check icon"
|
|
222
|
+
focusable="false"
|
|
223
|
+
role="img"
|
|
224
|
+
>
|
|
225
|
+
<use href="/img/sprite.svg#check"></use>
|
|
226
|
+
</svg>
|
|
227
|
+
Completed</span
|
|
228
|
+
></a
|
|
229
|
+
>
|
|
230
|
+
</li>
|
|
231
|
+
<li>
|
|
232
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
233
|
+
><span class="usx-clickable__link usx-task-list__link">Complete background check</span
|
|
234
|
+
><span class="usa-tag usx-tag bg-success-light"
|
|
235
|
+
><svg
|
|
236
|
+
class="usa-icon usa-icon--size-2"
|
|
237
|
+
aria-hidden="true"
|
|
238
|
+
aria-label="check icon"
|
|
239
|
+
focusable="false"
|
|
240
|
+
role="img"
|
|
241
|
+
>
|
|
242
|
+
<use href="/img/sprite.svg#check"></use>
|
|
243
|
+
</svg>
|
|
244
|
+
Completed</span
|
|
245
|
+
></a
|
|
246
|
+
>
|
|
247
|
+
</li>
|
|
248
|
+
</ul>
|
|
249
|
+
|
|
250
|
+
<h3 class="site-preview-heading">Single Item</h3>
|
|
251
|
+
<ul class="usx-task-list">
|
|
252
|
+
<li>
|
|
253
|
+
<a class="usx-clickable usx-task-list__item" href="#"
|
|
254
|
+
><span class="usx-clickable__link usx-task-list__link">Only task</span
|
|
255
|
+
><span class="usa-tag usx-tag bg-primary-lightest"> Not started</span></a
|
|
256
|
+
>
|
|
257
|
+
</li>
|
|
258
|
+
</ul>
|
|
259
|
+
|
|
260
|
+
<h3 class="site-preview-heading">Empty</h3>
|
|
261
|
+
<ul class="usx-task-list"></ul>
|
|
@@ -4,9 +4,19 @@
|
|
|
4
4
|
type="button"
|
|
5
5
|
class="usa-button usx-button usx-button--ghost usx-theme-picker__trigger"
|
|
6
6
|
aria-label="Theme"
|
|
7
|
-
onclick="this.closest('.usx-theme-picker').classList.add('usx-theme-picker--open')
|
|
7
|
+
onclick="this.closest('.usx-theme-picker').classList.add('usx-theme-picker--open')"
|
|
8
8
|
>
|
|
9
|
-
<svg
|
|
9
|
+
<svg
|
|
10
|
+
class="usa-icon usx-theme-picker__icon"
|
|
11
|
+
aria-hidden="true"
|
|
12
|
+
focusable="false"
|
|
13
|
+
viewBox="0 0 24 24"
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
fill="currentColor"
|
|
17
|
+
d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12zm3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8zm5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8zm3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
10
20
|
</button>
|
|
11
21
|
<div class="usx-theme-picker__panel">
|
|
12
22
|
<select
|
|
@@ -31,22 +41,31 @@
|
|
|
31
41
|
</div>
|
|
32
42
|
</div>
|
|
33
43
|
|
|
34
|
-
|
|
35
44
|
<h3 class="site-preview-heading text-ink">Light/Dark Theme Picker</h3>
|
|
36
45
|
|
|
37
|
-
<div class="usx-theme-picker" id="theme-picker-
|
|
46
|
+
<div class="usx-theme-picker" id="theme-picker-light-dark">
|
|
38
47
|
<button
|
|
39
48
|
type="button"
|
|
40
49
|
class="usa-button usx-button usx-button--ghost usx-theme-picker__trigger"
|
|
41
50
|
aria-label="Theme"
|
|
42
|
-
onclick="this.closest('.usx-theme-picker').classList.add('usx-theme-picker--open')
|
|
51
|
+
onclick="this.closest('.usx-theme-picker').classList.add('usx-theme-picker--open')"
|
|
43
52
|
>
|
|
44
|
-
<svg
|
|
53
|
+
<svg
|
|
54
|
+
class="usa-icon usx-theme-picker__icon"
|
|
55
|
+
aria-hidden="true"
|
|
56
|
+
focusable="false"
|
|
57
|
+
viewBox="0 0 24 24"
|
|
58
|
+
>
|
|
59
|
+
<path
|
|
60
|
+
fill="currentColor"
|
|
61
|
+
d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12zm3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8zm5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8zm3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"
|
|
62
|
+
/>
|
|
63
|
+
</svg>
|
|
45
64
|
</button>
|
|
46
65
|
<div class="usx-theme-picker__panel">
|
|
47
66
|
<select
|
|
48
67
|
class="usa-select usx-select"
|
|
49
|
-
id="theme-picker-
|
|
68
|
+
id="theme-picker-light-dark-select"
|
|
50
69
|
onchange="window.usxThemePickerDemo.onChange(this.value)"
|
|
51
70
|
>
|
|
52
71
|
<option value="Aurora" selected>Light</option>
|
|
@@ -64,4 +83,3 @@
|
|
|
64
83
|
</button>
|
|
65
84
|
</div>
|
|
66
85
|
</div>
|
|
67
|
-
|
|
@@ -75,7 +75,9 @@
|
|
|
75
75
|
focusable="false"
|
|
76
76
|
role="img"
|
|
77
77
|
>
|
|
78
|
-
<use href="/img/sprite.svg#directions_bike"></use></svg
|
|
78
|
+
<use href="/img/sprite.svg#directions_bike"></use></svg
|
|
79
|
+
><span class="usa-sr-only">Bike</span></label
|
|
80
|
+
>
|
|
79
81
|
</li>
|
|
80
82
|
<li class="usa-button-group__item" role="presentation">
|
|
81
83
|
<input
|
|
@@ -96,7 +98,9 @@
|
|
|
96
98
|
focusable="false"
|
|
97
99
|
role="img"
|
|
98
100
|
>
|
|
99
|
-
<use href="/img/sprite.svg#directions_bus"></use></svg
|
|
101
|
+
<use href="/img/sprite.svg#directions_bus"></use></svg
|
|
102
|
+
><span class="usa-sr-only">Bus</span></label
|
|
103
|
+
>
|
|
100
104
|
</li>
|
|
101
105
|
<li class="usa-button-group__item" role="presentation">
|
|
102
106
|
<input
|
|
@@ -116,7 +120,9 @@
|
|
|
116
120
|
focusable="false"
|
|
117
121
|
role="img"
|
|
118
122
|
>
|
|
119
|
-
<use href="/img/sprite.svg#flight"></use></svg
|
|
123
|
+
<use href="/img/sprite.svg#flight"></use></svg
|
|
124
|
+
><span class="usa-sr-only">Flight</span></label
|
|
125
|
+
>
|
|
120
126
|
</li>
|
|
121
127
|
</ul>
|
|
122
128
|
</section>
|
|
@@ -139,7 +145,9 @@
|
|
|
139
145
|
value="Email"
|
|
140
146
|
/><label
|
|
141
147
|
for="required-toggle-option-0"
|
|
142
|
-
class="usa-button usx-button usa-button--primary usx-toggle__button"
|
|
148
|
+
class="usa-button usx-button usa-button--primary usx-toggle__button"
|
|
149
|
+
><span>Email</span></label
|
|
150
|
+
>
|
|
143
151
|
</li>
|
|
144
152
|
<li class="usa-button-group__item" role="presentation">
|
|
145
153
|
<input
|
|
@@ -315,5 +323,56 @@
|
|
|
315
323
|
</li>
|
|
316
324
|
</ul>
|
|
317
325
|
</section>
|
|
318
|
-
<button class="usa-button usx-button usa-button--primary" type="submit">Submit</button>
|
|
326
|
+
<button class="usa-button usx-button usa-button--primary" type="submit">Submit</button>
|
|
327
|
+
<button class="usa-button usx-button usa-button--outline" type="reset">Reset</button>
|
|
319
328
|
</form>
|
|
329
|
+
|
|
330
|
+
<h3 class="site-preview-heading">Controlled</h3>
|
|
331
|
+
<ul
|
|
332
|
+
id="html-toggle-controlled-controlled-toggle"
|
|
333
|
+
class="usx-toggle usa-button-group"
|
|
334
|
+
role="radiogroup"
|
|
335
|
+
aria-label="Controlled selection"
|
|
336
|
+
>
|
|
337
|
+
<li class="usa-button-group__item" role="presentation">
|
|
338
|
+
<input
|
|
339
|
+
class="usx-toggle__input"
|
|
340
|
+
type="radio"
|
|
341
|
+
id="html-toggle-controlled-controlled-toggle-option-0"
|
|
342
|
+
name="controlled-toggle"
|
|
343
|
+
value="option1"
|
|
344
|
+
/><label
|
|
345
|
+
for="html-toggle-controlled-controlled-toggle-option-0"
|
|
346
|
+
class="usa-button usx-button usa-button--primary usx-toggle__button"
|
|
347
|
+
><span>Option 1</span></label
|
|
348
|
+
>
|
|
349
|
+
</li>
|
|
350
|
+
<li class="usa-button-group__item" role="presentation">
|
|
351
|
+
<input
|
|
352
|
+
class="usx-toggle__input"
|
|
353
|
+
type="radio"
|
|
354
|
+
id="html-toggle-controlled-controlled-toggle-option-1"
|
|
355
|
+
name="controlled-toggle"
|
|
356
|
+
value="option2"
|
|
357
|
+
checked=""
|
|
358
|
+
/><label
|
|
359
|
+
for="html-toggle-controlled-controlled-toggle-option-1"
|
|
360
|
+
class="usa-button usx-button usa-button--primary usx-toggle__button"
|
|
361
|
+
><span>Option 2</span></label
|
|
362
|
+
>
|
|
363
|
+
</li>
|
|
364
|
+
<li class="usa-button-group__item" role="presentation">
|
|
365
|
+
<input
|
|
366
|
+
class="usx-toggle__input"
|
|
367
|
+
type="radio"
|
|
368
|
+
id="html-toggle-controlled-controlled-toggle-option-2"
|
|
369
|
+
name="controlled-toggle"
|
|
370
|
+
value="option3"
|
|
371
|
+
/><label
|
|
372
|
+
for="html-toggle-controlled-controlled-toggle-option-2"
|
|
373
|
+
class="usa-button usx-button usa-button--primary usx-toggle__button"
|
|
374
|
+
><span>Option 3</span></label
|
|
375
|
+
>
|
|
376
|
+
</li>
|
|
377
|
+
</ul>
|
|
378
|
+
<p>Selected: option2</p>
|
package/src/index.js
CHANGED
|
@@ -26,7 +26,9 @@ export { default as Container } from './components/container/Container.tsx';
|
|
|
26
26
|
export { default as CopyToClipboard } from './components/copy-to-clipboard/CopyToClipboard.tsx';
|
|
27
27
|
export { default as DatePicker } from './components/date-picker/DatePicker.tsx';
|
|
28
28
|
export { default as DateRangePicker } from './components/date-range-picker/DateRangePicker.tsx';
|
|
29
|
+
export { default as Details } from './components/details/Details.tsx';
|
|
29
30
|
export { default as ErrorMessage } from './components/error-message/ErrorMessage.tsx';
|
|
31
|
+
export { default as ErrorPage } from './components/error-page/ErrorPage.tsx';
|
|
30
32
|
export { default as Eyebrow } from './components/eyebrow/Eyebrow.tsx';
|
|
31
33
|
export { default as Fieldset } from './components/fieldset/Fieldset.tsx';
|
|
32
34
|
export { default as FileInput } from './components/file-input/FileInput.tsx';
|