@solexllc/usx-react 0.12.0 → 1.0.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/README.md +15 -0
- package/dist/{Popover-BzDCTuQM.cjs → Popover-Bg4-2-cU.cjs} +3 -0
- package/dist/{Popover-LToVWsWc.js → Popover-CqHczzNE.js} +3 -0
- package/dist/chat.cjs +7 -2
- package/dist/chat.js +7 -2
- package/dist/index.cjs +83 -56
- package/dist/index.js +86 -59
- package/package.json +4 -4
- package/src/components/accordion/Accordion.tsx +9 -57
- package/src/components/accordion/accordion.django.html +10 -20
- package/src/components/accordion/config.json +8 -2
- package/src/components/accordion-item/AccordionItem.tsx +54 -0
- package/src/components/accordion-item/accordion-item.django.html +19 -0
- package/src/components/accordion-item/accordion-item.html +8 -0
- package/src/components/accordion-item/config.json +55 -0
- package/src/components/alert/alert.django-snapshot.html +4 -4
- package/src/components/avatar/avatar.django-snapshot.html +6 -2
- package/src/components/avatar/avatar.react-snapshot.html +6 -3
- package/src/components/avatar/config.json +4 -2
- package/src/components/avatar-group/avatar-group.django-snapshot.html +176 -176
- package/src/components/avatar-group/avatar-group.react-snapshot.html +198 -167
- package/src/components/avatar-group/config.json +12 -6
- package/src/components/banner/banner.django-snapshot.html +2 -2
- package/src/components/button/Button.tsx +3 -0
- package/src/components/button/button.django-snapshot.html +64 -0
- package/src/components/button/button.django.html +2 -0
- package/src/components/button/button.react-snapshot.html +64 -0
- package/src/components/button/config.json +6 -1
- package/src/components/card/card.django-snapshot.html +43 -0
- package/src/components/card/card.react-snapshot.html +36 -0
- package/src/components/chat/chat.django-snapshot.html +90 -26
- package/src/components/chat/chat.html +10 -10
- package/src/components/chat/chat.react-snapshot.html +49 -49
- package/src/components/chat-composer/ChatComposer.tsx +3 -0
- package/src/components/chat-composer/chat-composer.django-snapshot.html +10 -10
- package/src/components/chat-composer/chat-composer.django.html +2 -2
- package/src/components/chat-composer/chat-composer.html +10 -10
- package/src/components/chat-composer/chat-composer.react-snapshot.html +10 -10
- package/src/components/chat-composer/chat-formatting.django.html +8 -8
- package/src/components/chat-window/ChatWindow.tsx +3 -1
- package/src/components/chat-window/chat-window.django-snapshot.html +7 -5
- package/src/components/chat-window/chat-window.django.html +3 -3
- package/src/components/chat-window/chat-window.html +1 -1
- package/src/components/chat-window/chat-window.react-snapshot.html +7 -7
- package/src/components/checkbox/checkbox.django-snapshot.html +2 -2
- package/src/components/data-table/data-table.django-snapshot.html +4 -5
- package/src/components/data-table/data-table.react-snapshot.html +4 -4
- package/src/components/drawer/drawer.django-snapshot.html +53 -30
- package/src/components/error-page/error-page.django-snapshot.html +20 -7
- package/src/components/fieldset/fieldset.django-snapshot.html +1 -6
- package/src/components/form-group/form-group.django-snapshot.html +0 -2
- package/src/components/header/header.django-snapshot.html +3 -3
- package/src/components/header/header.html +1 -1
- package/src/components/header/header.react-snapshot.html +3 -3
- package/src/components/identifier/config.json +4 -2
- package/src/components/identifier/identifier.django-snapshot.html +13 -16
- package/src/components/identifier/identifier.react-snapshot.html +13 -15
- package/src/components/image/image.django-snapshot.html +6 -6
- package/src/components/layout/layout.django-snapshot.html +2 -0
- package/src/components/modal/Modal.tsx +4 -3
- package/src/components/modal/config.json +3 -2
- package/src/components/modal/modal.django-snapshot.html +70 -14
- package/src/components/modal/modal.django.html +7 -9
- package/src/components/modal/modal.html +4 -4
- package/src/components/modal/modal.react-snapshot.html +64 -4
- package/src/components/page/Page.tsx +10 -7
- package/src/components/page/page.django-snapshot.html +5 -8
- package/src/components/page/page.django.html +2 -2
- package/src/components/page/page.html +1 -2
- package/src/components/page/page.react-snapshot.html +5 -8
- package/src/components/pagination/navigation/PaginationNavigation.tsx +2 -0
- package/src/components/pagination/navigation/pagination-navigation.django.html +2 -0
- package/src/components/pagination/pagination.django-snapshot.html +62 -0
- package/src/components/pagination/pagination.django.html +3 -1
- package/src/components/pagination/pagination.html +46 -0
- package/src/components/pagination/pagination.react-snapshot.html +48 -0
- package/src/components/pagination/summary/PaginationSummary.tsx +1 -1
- package/src/components/pagination/summary/pagination-summary.django.html +1 -1
- package/src/components/popover/Popover.tsx +1 -0
- package/src/components/popover/popover.django-snapshot.html +37 -1
- package/src/components/popover/popover.django.html +1 -1
- package/src/components/popover/popover.react-snapshot.html +30 -3
- package/src/components/section/Section.tsx +3 -1
- package/src/components/site-alert/site-alert.django-snapshot.html +8 -8
- package/src/components/swap/Swap.tsx +35 -3
- package/src/components/swap/config.json +28 -1
- package/src/components/swap/swap.django-snapshot.html +29 -7
- package/src/components/swap/swap.django.html +15 -1
- package/src/components/swap/swap.react-snapshot.html +34 -4
- package/src/components/theme-picker/ThemePicker.tsx +48 -42
- package/src/components/theme-picker/config.json +27 -29
- package/src/components/theme-picker/theme-picker-select.django.html +1 -1
- package/src/components/theme-picker/theme-picker.django-snapshot.html +283 -78
- package/src/components/theme-picker/theme-picker.django.html +24 -11
- package/src/components/theme-picker/theme-picker.html +155 -54
- package/src/components/theme-picker/theme-picker.react-snapshot.html +265 -67
- package/src/index.js +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
-
<div class="usx-theme-picker">
|
|
2
|
+
<div class="usx-theme-picker" hidden>
|
|
3
3
|
<button
|
|
4
4
|
type="button"
|
|
5
5
|
class="usa-button usx-button usx-button--ghost usx-theme-picker__trigger"
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
<div id="theme-picker-example-1-panel" class="usx-theme-picker__panel">
|
|
20
20
|
<label class="usa-label usx-label usa-sr-only" for="theme-picker-example-1">Theme</label
|
|
21
21
|
><select id="theme-picker-example-1" class="usa-select usx-select">
|
|
22
|
-
<option value="
|
|
23
|
-
<option value="
|
|
24
|
-
<option value="
|
|
25
|
-
<option value="
|
|
26
|
-
<option value="
|
|
27
|
-
<option value="
|
|
28
|
-
<option value="
|
|
29
|
-
<option value="
|
|
30
|
-
<option value="
|
|
31
|
-
<option value="
|
|
32
|
-
<option value="
|
|
22
|
+
<option value="default" selected="">Default</option>
|
|
23
|
+
<option value="forest">Forest</option>
|
|
24
|
+
<option value="sunset">Sunset</option>
|
|
25
|
+
<option value="ocean">Ocean</option>
|
|
26
|
+
<option value="aurora">Aurora</option>
|
|
27
|
+
<option value="borealis">Borealis</option>
|
|
28
|
+
<option value="midnight">Midnight</option>
|
|
29
|
+
<option value="carbon">Carbon</option>
|
|
30
|
+
<option value="vads">VADS</option>
|
|
31
|
+
<option value="gov-uk">GOV.UK</option>
|
|
32
|
+
<option value="nasa">NASA</option></select
|
|
33
33
|
><button
|
|
34
34
|
type="button"
|
|
35
35
|
class="usa-button usx-button usa-button--primary usx-theme-picker__toggle"
|
|
@@ -47,48 +47,154 @@
|
|
|
47
47
|
</div>
|
|
48
48
|
</div>
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
<
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
<h3 class="site-preview-heading">Popover</h3>
|
|
51
|
+
<div class="usx-theme-picker usx-theme-picker--popover" hidden>
|
|
52
|
+
<details class="usx-popover usx-theme-picker__popover" data-side="bottom" data-align="start">
|
|
53
|
+
<summary
|
|
54
|
+
class="usa-button usx-button usx-button--ghost usx-button--tight margin-0"
|
|
55
|
+
aria-label="Theme"
|
|
56
|
+
>
|
|
57
|
+
<svg
|
|
58
58
|
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
59
59
|
aria-hidden="true"
|
|
60
60
|
focusable="false"
|
|
61
61
|
role="img"
|
|
62
62
|
>
|
|
63
|
-
<use href="./img/usx-sprite.svg#color_palette"></use
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
id="theme-picker-example-
|
|
68
|
-
class="
|
|
63
|
+
<use href="./img/usx-sprite.svg#color_palette"></use>
|
|
64
|
+
</svg>
|
|
65
|
+
</summary>
|
|
66
|
+
<div
|
|
67
|
+
id="theme-picker-example-popover-panel"
|
|
68
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
69
69
|
>
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
70
|
+
<ul class="usx-popover__menu">
|
|
71
|
+
<li>
|
|
72
|
+
<button
|
|
73
|
+
type="button"
|
|
74
|
+
class="usx-popover__menu-item"
|
|
75
|
+
data-usx-theme-value="default"
|
|
76
|
+
aria-pressed="true"
|
|
77
|
+
>
|
|
78
|
+
Default
|
|
79
|
+
</button>
|
|
80
|
+
</li>
|
|
81
|
+
<li>
|
|
82
|
+
<button
|
|
83
|
+
type="button"
|
|
84
|
+
class="usx-popover__menu-item"
|
|
85
|
+
data-usx-theme-value="forest"
|
|
86
|
+
aria-pressed="false"
|
|
87
|
+
>
|
|
88
|
+
Forest
|
|
89
|
+
</button>
|
|
90
|
+
</li>
|
|
91
|
+
<li>
|
|
92
|
+
<button
|
|
93
|
+
type="button"
|
|
94
|
+
class="usx-popover__menu-item"
|
|
95
|
+
data-usx-theme-value="sunset"
|
|
96
|
+
aria-pressed="false"
|
|
97
|
+
>
|
|
98
|
+
Sunset
|
|
99
|
+
</button>
|
|
100
|
+
</li>
|
|
101
|
+
<li>
|
|
102
|
+
<button
|
|
103
|
+
type="button"
|
|
104
|
+
class="usx-popover__menu-item"
|
|
105
|
+
data-usx-theme-value="ocean"
|
|
106
|
+
aria-pressed="false"
|
|
107
|
+
>
|
|
108
|
+
Ocean
|
|
109
|
+
</button>
|
|
110
|
+
</li>
|
|
111
|
+
<li>
|
|
112
|
+
<button
|
|
113
|
+
type="button"
|
|
114
|
+
class="usx-popover__menu-item"
|
|
115
|
+
data-usx-theme-value="aurora"
|
|
116
|
+
aria-pressed="false"
|
|
117
|
+
>
|
|
118
|
+
Aurora
|
|
119
|
+
</button>
|
|
120
|
+
</li>
|
|
121
|
+
<li>
|
|
122
|
+
<button
|
|
123
|
+
type="button"
|
|
124
|
+
class="usx-popover__menu-item"
|
|
125
|
+
data-usx-theme-value="borealis"
|
|
126
|
+
aria-pressed="false"
|
|
127
|
+
>
|
|
128
|
+
Borealis
|
|
129
|
+
</button>
|
|
130
|
+
</li>
|
|
131
|
+
<li>
|
|
132
|
+
<button
|
|
133
|
+
type="button"
|
|
134
|
+
class="usx-popover__menu-item"
|
|
135
|
+
data-usx-theme-value="midnight"
|
|
136
|
+
aria-pressed="false"
|
|
137
|
+
>
|
|
138
|
+
Midnight
|
|
139
|
+
</button>
|
|
140
|
+
</li>
|
|
141
|
+
<li>
|
|
142
|
+
<button
|
|
143
|
+
type="button"
|
|
144
|
+
class="usx-popover__menu-item"
|
|
145
|
+
data-usx-theme-value="carbon"
|
|
146
|
+
aria-pressed="false"
|
|
147
|
+
>
|
|
148
|
+
Carbon
|
|
149
|
+
</button>
|
|
150
|
+
</li>
|
|
151
|
+
<li>
|
|
152
|
+
<button
|
|
153
|
+
type="button"
|
|
154
|
+
class="usx-popover__menu-item"
|
|
155
|
+
data-usx-theme-value="vads"
|
|
156
|
+
aria-pressed="false"
|
|
157
|
+
>
|
|
158
|
+
VADS
|
|
159
|
+
</button>
|
|
160
|
+
</li>
|
|
161
|
+
<li>
|
|
162
|
+
<button
|
|
163
|
+
type="button"
|
|
164
|
+
class="usx-popover__menu-item"
|
|
165
|
+
data-usx-theme-value="gov-uk"
|
|
166
|
+
aria-pressed="false"
|
|
167
|
+
>
|
|
168
|
+
GOV.UK
|
|
169
|
+
</button>
|
|
170
|
+
</li>
|
|
171
|
+
<li>
|
|
172
|
+
<button
|
|
173
|
+
type="button"
|
|
174
|
+
class="usx-popover__menu-item"
|
|
175
|
+
data-usx-theme-value="nasa"
|
|
176
|
+
aria-pressed="false"
|
|
177
|
+
>
|
|
178
|
+
NASA
|
|
179
|
+
</button>
|
|
180
|
+
</li>
|
|
181
|
+
</ul>
|
|
182
|
+
</div>
|
|
183
|
+
</details>
|
|
184
|
+
<input id="theme-picker-example-popover" type="hidden" value="default" />
|
|
83
185
|
</div>
|
|
84
186
|
|
|
85
|
-
|
|
86
187
|
<h3 class="site-preview-heading">Swap</h3>
|
|
87
|
-
<div class="usx-theme-picker usx-theme-picker--swap">
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
188
|
+
<div class="usx-theme-picker usx-theme-picker--swap" hidden>
|
|
189
|
+
<button
|
|
190
|
+
type="button"
|
|
191
|
+
class="usx-swap usx-swap--rotate usa-button usx-button usx-swap--button usx-theme-picker__swap usx-button--ghost usx-button--tight"
|
|
192
|
+
aria-pressed="false"
|
|
193
|
+
aria-label="Dark Theme"
|
|
194
|
+
data-usx-theme-off="aurora"
|
|
195
|
+
data-usx-theme-on="borealis"
|
|
196
|
+
>
|
|
197
|
+
<span class="usx-swap-on"
|
|
92
198
|
><svg
|
|
93
199
|
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
94
200
|
aria-hidden="true"
|
|
@@ -103,13 +209,8 @@
|
|
|
103
209
|
focusable="false"
|
|
104
210
|
role="img"
|
|
105
211
|
>
|
|
106
|
-
<use href="./img/usx-sprite.svg#sun"></use></svg
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
><select id="theme-picker-example-swap" class="usa-select usx-select">
|
|
111
|
-
<option value="Aurora" selected="">Light</option>
|
|
112
|
-
<option value="Borealis">Dark</option>
|
|
113
|
-
</select>
|
|
114
|
-
</div>
|
|
212
|
+
<use href="./img/usx-sprite.svg#sun"></use></svg
|
|
213
|
+
></span>
|
|
214
|
+
</button>
|
|
215
|
+
<input id="theme-picker-example-swap" type="hidden" value="aurora" />
|
|
115
216
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
-
<div class="usx-theme-picker">
|
|
2
|
+
<div class="usx-theme-picker" hidden="">
|
|
3
3
|
<button
|
|
4
4
|
type="button"
|
|
5
5
|
class="usa-button usx-button usx-button--ghost usx-theme-picker__trigger"
|
|
@@ -19,17 +19,66 @@
|
|
|
19
19
|
<div id="react-theme-picker-1-panel" class="usx-theme-picker__panel">
|
|
20
20
|
<label class="usa-label usx-label usa-sr-only" for="react-theme-picker-1">Theme</label
|
|
21
21
|
><select id="react-theme-picker-1" class="usa-select usx-select">
|
|
22
|
-
<option value="
|
|
23
|
-
<option value="
|
|
24
|
-
<option value="
|
|
25
|
-
<option value="
|
|
26
|
-
<option value="
|
|
27
|
-
<option value="
|
|
28
|
-
<option value="
|
|
29
|
-
<option value="
|
|
30
|
-
<option value="
|
|
31
|
-
<option value="
|
|
32
|
-
<option value="
|
|
22
|
+
<option value="default" selected="">Default</option>
|
|
23
|
+
<option value="forest">Forest</option>
|
|
24
|
+
<option value="sunset">Sunset</option>
|
|
25
|
+
<option value="ocean">Ocean</option>
|
|
26
|
+
<option value="aurora">Aurora</option>
|
|
27
|
+
<option value="borealis">Borealis</option>
|
|
28
|
+
<option value="midnight">Midnight</option>
|
|
29
|
+
<option value="carbon">Carbon</option>
|
|
30
|
+
<option value="vads">VADS</option>
|
|
31
|
+
<option value="gov-uk">GOV.UK</option>
|
|
32
|
+
<option value="nasa">NASA</option></select
|
|
33
|
+
><button
|
|
34
|
+
type="button"
|
|
35
|
+
class="usa-button usx-button usa-button--primary usx-theme-picker__toggle"
|
|
36
|
+
aria-label="Confirm theme"
|
|
37
|
+
>
|
|
38
|
+
<svg
|
|
39
|
+
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
40
|
+
aria-hidden="true"
|
|
41
|
+
focusable="false"
|
|
42
|
+
role="img"
|
|
43
|
+
>
|
|
44
|
+
<use href="/img/sprite.svg#close"></use>
|
|
45
|
+
</svg>
|
|
46
|
+
</button>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<h3 class="site-preview-heading">Unenhanced</h3>
|
|
51
|
+
<div class="usx-theme-picker" usx-data-enhanced="true" hidden="">
|
|
52
|
+
<button
|
|
53
|
+
type="button"
|
|
54
|
+
class="usa-button usx-button usx-button--ghost usx-theme-picker__trigger"
|
|
55
|
+
aria-label="Theme"
|
|
56
|
+
aria-expanded="false"
|
|
57
|
+
aria-controls="react-theme-picker-unenhanced-panel"
|
|
58
|
+
>
|
|
59
|
+
<svg
|
|
60
|
+
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
61
|
+
aria-hidden="true"
|
|
62
|
+
focusable="false"
|
|
63
|
+
role="img"
|
|
64
|
+
>
|
|
65
|
+
<use href="/img/usx-sprite.svg#color_palette"></use>
|
|
66
|
+
</svg>
|
|
67
|
+
</button>
|
|
68
|
+
<div id="react-theme-picker-unenhanced-panel" class="usx-theme-picker__panel">
|
|
69
|
+
<label class="usa-label usx-label usa-sr-only" for="react-theme-picker-unenhanced">Theme</label
|
|
70
|
+
><select id="react-theme-picker-unenhanced" class="usa-select usx-select">
|
|
71
|
+
<option value="default" selected="">Default</option>
|
|
72
|
+
<option value="forest">Forest</option>
|
|
73
|
+
<option value="sunset">Sunset</option>
|
|
74
|
+
<option value="ocean">Ocean</option>
|
|
75
|
+
<option value="aurora">Aurora</option>
|
|
76
|
+
<option value="borealis">Borealis</option>
|
|
77
|
+
<option value="midnight">Midnight</option>
|
|
78
|
+
<option value="carbon">Carbon</option>
|
|
79
|
+
<option value="vads">VADS</option>
|
|
80
|
+
<option value="gov-uk">GOV.UK</option>
|
|
81
|
+
<option value="nasa">NASA</option></select
|
|
33
82
|
><button
|
|
34
83
|
type="button"
|
|
35
84
|
class="usa-button usx-button usa-button--primary usx-theme-picker__toggle"
|
|
@@ -48,7 +97,7 @@
|
|
|
48
97
|
</div>
|
|
49
98
|
|
|
50
99
|
<h3 class="site-preview-heading">Light Dark</h3>
|
|
51
|
-
<div class="usx-theme-picker">
|
|
100
|
+
<div class="usx-theme-picker" hidden="">
|
|
52
101
|
<button
|
|
53
102
|
type="button"
|
|
54
103
|
class="usa-button usx-button usx-button--ghost usx-theme-picker__trigger"
|
|
@@ -68,8 +117,8 @@
|
|
|
68
117
|
<div id="react-theme-picker-2-panel" class="usx-theme-picker__panel">
|
|
69
118
|
<label class="usa-label usx-label usa-sr-only" for="react-theme-picker-2">Theme</label
|
|
70
119
|
><select id="react-theme-picker-2" class="usa-select usx-select">
|
|
71
|
-
<option value="
|
|
72
|
-
<option value="
|
|
120
|
+
<option value="aurora" selected="">Light</option>
|
|
121
|
+
<option value="borealis">Dark</option></select
|
|
73
122
|
><button
|
|
74
123
|
type="button"
|
|
75
124
|
class="usa-button usx-button usa-button--primary usx-theme-picker__toggle"
|
|
@@ -87,46 +136,201 @@
|
|
|
87
136
|
</div>
|
|
88
137
|
</div>
|
|
89
138
|
|
|
90
|
-
<h3 class="site-preview-heading">
|
|
91
|
-
<div class="usx-theme-picker usx-theme-picker--
|
|
92
|
-
<
|
|
93
|
-
<
|
|
94
|
-
class="usa-button usx-button usx-button--ghost usx-
|
|
95
|
-
aria-
|
|
96
|
-
|
|
139
|
+
<h3 class="site-preview-heading">Popover</h3>
|
|
140
|
+
<div class="usx-theme-picker usx-theme-picker--popover" hidden="">
|
|
141
|
+
<details class="usx-popover usx-theme-picker__popover" data-side="bottom" data-align="start">
|
|
142
|
+
<summary
|
|
143
|
+
class="usa-button usx-button usx-button--ghost usx-button--tight margin-0"
|
|
144
|
+
aria-label="Theme"
|
|
145
|
+
>
|
|
146
|
+
<svg
|
|
97
147
|
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
98
148
|
aria-hidden="true"
|
|
99
149
|
focusable="false"
|
|
100
150
|
role="img"
|
|
101
151
|
>
|
|
102
|
-
<use href="/img/usx-sprite.svg#color_palette"></use
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
id="react-theme-picker-
|
|
107
|
-
class="
|
|
152
|
+
<use href="/img/usx-sprite.svg#color_palette"></use>
|
|
153
|
+
</svg>
|
|
154
|
+
</summary>
|
|
155
|
+
<div
|
|
156
|
+
id="react-theme-picker-popover-panel"
|
|
157
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
108
158
|
>
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
159
|
+
<ul class="usx-popover__menu">
|
|
160
|
+
<li>
|
|
161
|
+
<button
|
|
162
|
+
data-usx-theme-value="default"
|
|
163
|
+
aria-pressed="true"
|
|
164
|
+
type="button"
|
|
165
|
+
class="usx-popover__menu-item"
|
|
166
|
+
>
|
|
167
|
+
Default
|
|
168
|
+
</button>
|
|
169
|
+
</li>
|
|
170
|
+
<li>
|
|
171
|
+
<button
|
|
172
|
+
data-usx-theme-value="forest"
|
|
173
|
+
aria-pressed="false"
|
|
174
|
+
type="button"
|
|
175
|
+
class="usx-popover__menu-item"
|
|
176
|
+
>
|
|
177
|
+
Forest
|
|
178
|
+
</button>
|
|
179
|
+
</li>
|
|
180
|
+
<li>
|
|
181
|
+
<button
|
|
182
|
+
data-usx-theme-value="sunset"
|
|
183
|
+
aria-pressed="false"
|
|
184
|
+
type="button"
|
|
185
|
+
class="usx-popover__menu-item"
|
|
186
|
+
>
|
|
187
|
+
Sunset
|
|
188
|
+
</button>
|
|
189
|
+
</li>
|
|
190
|
+
<li>
|
|
191
|
+
<button
|
|
192
|
+
data-usx-theme-value="ocean"
|
|
193
|
+
aria-pressed="false"
|
|
194
|
+
type="button"
|
|
195
|
+
class="usx-popover__menu-item"
|
|
196
|
+
>
|
|
197
|
+
Ocean
|
|
198
|
+
</button>
|
|
199
|
+
</li>
|
|
200
|
+
<li>
|
|
201
|
+
<button
|
|
202
|
+
data-usx-theme-value="aurora"
|
|
203
|
+
aria-pressed="false"
|
|
204
|
+
type="button"
|
|
205
|
+
class="usx-popover__menu-item"
|
|
206
|
+
>
|
|
207
|
+
Aurora
|
|
208
|
+
</button>
|
|
209
|
+
</li>
|
|
210
|
+
<li>
|
|
211
|
+
<button
|
|
212
|
+
data-usx-theme-value="borealis"
|
|
213
|
+
aria-pressed="false"
|
|
214
|
+
type="button"
|
|
215
|
+
class="usx-popover__menu-item"
|
|
216
|
+
>
|
|
217
|
+
Borealis
|
|
218
|
+
</button>
|
|
219
|
+
</li>
|
|
220
|
+
<li>
|
|
221
|
+
<button
|
|
222
|
+
data-usx-theme-value="midnight"
|
|
223
|
+
aria-pressed="false"
|
|
224
|
+
type="button"
|
|
225
|
+
class="usx-popover__menu-item"
|
|
226
|
+
>
|
|
227
|
+
Midnight
|
|
228
|
+
</button>
|
|
229
|
+
</li>
|
|
230
|
+
<li>
|
|
231
|
+
<button
|
|
232
|
+
data-usx-theme-value="carbon"
|
|
233
|
+
aria-pressed="false"
|
|
234
|
+
type="button"
|
|
235
|
+
class="usx-popover__menu-item"
|
|
236
|
+
>
|
|
237
|
+
Carbon
|
|
238
|
+
</button>
|
|
239
|
+
</li>
|
|
240
|
+
<li>
|
|
241
|
+
<button
|
|
242
|
+
data-usx-theme-value="vads"
|
|
243
|
+
aria-pressed="false"
|
|
244
|
+
type="button"
|
|
245
|
+
class="usx-popover__menu-item"
|
|
246
|
+
>
|
|
247
|
+
VADS
|
|
248
|
+
</button>
|
|
249
|
+
</li>
|
|
250
|
+
<li>
|
|
251
|
+
<button
|
|
252
|
+
data-usx-theme-value="gov-uk"
|
|
253
|
+
aria-pressed="false"
|
|
254
|
+
type="button"
|
|
255
|
+
class="usx-popover__menu-item"
|
|
256
|
+
>
|
|
257
|
+
GOV.UK
|
|
258
|
+
</button>
|
|
259
|
+
</li>
|
|
260
|
+
<li>
|
|
261
|
+
<button
|
|
262
|
+
data-usx-theme-value="nasa"
|
|
263
|
+
aria-pressed="false"
|
|
264
|
+
type="button"
|
|
265
|
+
class="usx-popover__menu-item"
|
|
266
|
+
>
|
|
267
|
+
NASA
|
|
268
|
+
</button>
|
|
269
|
+
</li>
|
|
270
|
+
</ul>
|
|
271
|
+
</div>
|
|
272
|
+
</details>
|
|
273
|
+
<input id="react-theme-picker-popover" type="hidden" name="theme" value="default" />
|
|
274
|
+
</div>
|
|
275
|
+
|
|
276
|
+
<h3 class="site-preview-heading">Popover End</h3>
|
|
277
|
+
<div class="usx-theme-picker usx-theme-picker--popover margin-left-15" hidden="">
|
|
278
|
+
<details class="usx-popover usx-theme-picker__popover" data-side="bottom" data-align="end">
|
|
279
|
+
<summary
|
|
280
|
+
class="usa-button usx-button usx-button--ghost usx-button--tight margin-0"
|
|
281
|
+
aria-label="Theme"
|
|
282
|
+
>
|
|
283
|
+
<svg
|
|
284
|
+
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
285
|
+
aria-hidden="true"
|
|
286
|
+
focusable="false"
|
|
287
|
+
role="img"
|
|
288
|
+
>
|
|
289
|
+
<use href="/img/usx-sprite.svg#color_palette"></use>
|
|
290
|
+
</svg>
|
|
291
|
+
</summary>
|
|
292
|
+
<div
|
|
293
|
+
id="react-theme-picker-popover-end-panel"
|
|
294
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
295
|
+
>
|
|
296
|
+
<ul class="usx-popover__menu">
|
|
297
|
+
<li>
|
|
298
|
+
<button
|
|
299
|
+
data-usx-theme-value="aurora"
|
|
300
|
+
aria-pressed="true"
|
|
301
|
+
type="button"
|
|
302
|
+
class="usx-popover__menu-item"
|
|
303
|
+
>
|
|
304
|
+
Light
|
|
305
|
+
</button>
|
|
306
|
+
</li>
|
|
307
|
+
<li>
|
|
308
|
+
<button
|
|
309
|
+
data-usx-theme-value="borealis"
|
|
310
|
+
aria-pressed="false"
|
|
311
|
+
type="button"
|
|
312
|
+
class="usx-popover__menu-item"
|
|
313
|
+
>
|
|
314
|
+
Dark
|
|
315
|
+
</button>
|
|
316
|
+
</li>
|
|
317
|
+
</ul>
|
|
318
|
+
</div>
|
|
319
|
+
</details>
|
|
320
|
+
<input id="react-theme-picker-popover-end" type="hidden" name="theme" value="aurora" />
|
|
122
321
|
</div>
|
|
123
322
|
|
|
124
323
|
<h3 class="site-preview-heading">Swap</h3>
|
|
125
|
-
<div class="usx-theme-picker usx-theme-picker--swap">
|
|
126
|
-
<
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
324
|
+
<div class="usx-theme-picker usx-theme-picker--swap" hidden="">
|
|
325
|
+
<button
|
|
326
|
+
type="button"
|
|
327
|
+
class="usx-swap usx-swap--rotate usa-button usx-button usx-swap--button usx-theme-picker__swap usx-button--ghost usx-button--tight"
|
|
328
|
+
aria-pressed="false"
|
|
329
|
+
aria-label="Dark Theme"
|
|
330
|
+
data-usx-theme-off="aurora"
|
|
331
|
+
data-usx-theme-on="borealis"
|
|
332
|
+
>
|
|
333
|
+
<span class="usx-swap-on"
|
|
130
334
|
><svg
|
|
131
335
|
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
132
336
|
aria-hidden="true"
|
|
@@ -141,19 +345,13 @@
|
|
|
141
345
|
focusable="false"
|
|
142
346
|
role="img"
|
|
143
347
|
>
|
|
144
|
-
<use href="/img/usx-sprite.svg#sun"></use></svg
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
<label class="usa-label usx-label usa-sr-only" for="react-theme-picker-swap">Theme</label
|
|
148
|
-
><select id="react-theme-picker-swap" class="usa-select usx-select">
|
|
149
|
-
<option value="Aurora" selected="">Light</option>
|
|
150
|
-
<option value="Borealis">Dark</option>
|
|
151
|
-
</select>
|
|
152
|
-
</div>
|
|
348
|
+
<use href="/img/usx-sprite.svg#sun"></use></svg
|
|
349
|
+
></span></button
|
|
350
|
+
><input id="react-theme-picker-swap" type="hidden" value="aurora" />
|
|
153
351
|
</div>
|
|
154
352
|
|
|
155
353
|
<h3 class="site-preview-heading">With Value</h3>
|
|
156
|
-
<div class="usx-theme-picker">
|
|
354
|
+
<div class="usx-theme-picker" hidden="">
|
|
157
355
|
<button
|
|
158
356
|
type="button"
|
|
159
357
|
class="usa-button usx-button usx-button--ghost usx-theme-picker__trigger"
|
|
@@ -173,17 +371,17 @@
|
|
|
173
371
|
<div id="react-theme-picker-value-panel" class="usx-theme-picker__panel">
|
|
174
372
|
<label class="usa-label usx-label usa-sr-only" for="react-theme-picker-value">Theme</label
|
|
175
373
|
><select id="react-theme-picker-value" class="usa-select usx-select">
|
|
176
|
-
<option value="
|
|
177
|
-
<option value="
|
|
178
|
-
<option value="
|
|
179
|
-
<option value="
|
|
180
|
-
<option value="
|
|
181
|
-
<option value="
|
|
182
|
-
<option value="
|
|
183
|
-
<option value="
|
|
184
|
-
<option value="
|
|
185
|
-
<option value="
|
|
186
|
-
<option value="
|
|
374
|
+
<option value="default">Default</option>
|
|
375
|
+
<option value="forest" selected="">Forest</option>
|
|
376
|
+
<option value="sunset">Sunset</option>
|
|
377
|
+
<option value="ocean">Ocean</option>
|
|
378
|
+
<option value="aurora">Aurora</option>
|
|
379
|
+
<option value="borealis">Borealis</option>
|
|
380
|
+
<option value="midnight">Midnight</option>
|
|
381
|
+
<option value="carbon">Carbon</option>
|
|
382
|
+
<option value="vads">VADS</option>
|
|
383
|
+
<option value="gov-uk">GOV.UK</option>
|
|
384
|
+
<option value="nasa">NASA</option></select
|
|
187
385
|
><button
|
|
188
386
|
type="button"
|
|
189
387
|
class="usa-button usx-button usa-button--primary usx-theme-picker__toggle"
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Auto-generated by scripts/generate-exports.js — do not edit by hand.
|
|
2
2
|
// Run: pnpm generate:exports
|
|
3
3
|
export { default as Accordion } from './components/accordion/Accordion.tsx';
|
|
4
|
+
export { default as AccordionItem } from './components/accordion-item/AccordionItem.tsx';
|
|
4
5
|
export { default as Alert } from './components/alert/Alert.tsx';
|
|
5
6
|
export { default as Attribution } from './components/attribution/Attribution.tsx';
|
|
6
7
|
export { default as Avatar } from './components/avatar/Avatar.tsx';
|