@solexllc/usx-react 0.10.0 → 0.12.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 +16 -0
- package/dist/Popover-BzDCTuQM.cjs +984 -0
- package/dist/Popover-LToVWsWc.js +985 -0
- package/dist/chat.cjs +1391 -0
- package/dist/chat.js +1391 -0
- package/dist/index.cjs +4426 -5231
- package/dist/index.js +168 -970
- package/package.json +9 -5
- package/src/chat.js +15 -0
- package/src/components/avatar/Avatar.tsx +54 -16
- package/src/components/avatar/avatar.django-snapshot.html +112 -0
- package/src/components/avatar/avatar.django.html +2 -2
- package/src/components/avatar/avatar.html +25 -0
- package/src/components/avatar/avatar.react-snapshot.html +104 -0
- package/src/components/avatar/config.json +13 -15
- package/src/components/avatar-group/AvatarGroup.tsx +17 -15
- package/src/components/avatar-group/avatar-group.django-snapshot.html +22 -0
- package/src/components/avatar-group/avatar-group.django.html +1 -1
- package/src/components/avatar-group/avatar-group.react-snapshot.html +20 -0
- package/src/components/avatar-group/config.json +2 -2
- package/src/components/back-to-top/BackToTop.tsx +21 -57
- package/src/components/back-to-top/back-to-top.django-snapshot.html +101 -202
- package/src/components/back-to-top/back-to-top.django.html +11 -38
- package/src/components/back-to-top/back-to-top.html +22 -106
- package/src/components/back-to-top/back-to-top.react-snapshot.html +94 -148
- package/src/components/back-to-top/config.json +41 -10
- package/src/components/button/Button.tsx +12 -3
- package/src/components/button/button.django-snapshot.html +18 -0
- package/src/components/button/button.django.html +3 -2
- package/src/components/button/button.react-snapshot.html +16 -0
- package/src/components/button/config.json +11 -2
- package/src/components/callout/callout.django.html +1 -1
- package/src/components/callout/config.json +7 -16
- package/src/components/character-count/CharacterCount.tsx +2 -0
- package/src/components/character-count/character-count.react-snapshot.html +7 -0
- package/src/components/chat/Chat.tsx +575 -0
- package/src/components/chat/README.md +174 -0
- package/src/components/chat/avatarProps.ts +32 -0
- package/src/components/chat/chat.django-snapshot.html +23515 -0
- package/src/components/chat/chat.django.html +75 -0
- package/src/components/chat/chat.html +116 -0
- package/src/components/chat/chat.react-snapshot.html +16895 -0
- package/src/components/chat/config.json +1241 -0
- package/src/components/chat-attachment/ChatAttachment.tsx +39 -0
- package/src/components/chat-attachment/chat-attachment.django.html +24 -0
- package/src/components/chat-attachment/chat-attachment.html +10 -0
- package/src/components/chat-attachment/config.json +27 -0
- package/src/components/chat-attachments/ChatAttachments.tsx +17 -0
- package/src/components/chat-attachments/chat-attachments.django-snapshot.html +58 -0
- package/src/components/chat-attachments/chat-attachments.django.html +10 -0
- package/src/components/chat-attachments/chat-attachments.html +14 -0
- package/src/components/chat-attachments/chat-attachments.react-snapshot.html +46 -0
- package/src/components/chat-attachments/config.json +25 -0
- package/src/components/chat-bubble/ChatBubble.tsx +39 -0
- package/src/components/chat-bubble/ChatFormattedText.tsx +138 -0
- package/src/components/chat-bubble/chat-bubble.django-snapshot.html +128 -0
- package/src/components/chat-bubble/chat-bubble.django.html +19 -0
- package/src/components/chat-bubble/chat-bubble.html +1 -0
- package/src/components/chat-bubble/chat-bubble.react-snapshot.html +118 -0
- package/src/components/chat-bubble/config.json +70 -0
- package/src/components/chat-composer/ChatComposer.tsx +210 -0
- package/src/components/chat-composer/README.md +15 -0
- package/src/components/chat-composer/chat-composer.django-snapshot.html +575 -0
- package/src/components/chat-composer/chat-composer.django.html +77 -0
- package/src/components/chat-composer/chat-composer.html +44 -0
- package/src/components/chat-composer/chat-composer.react-snapshot.html +519 -0
- package/src/components/chat-composer/chat-formatting.django.html +59 -0
- package/src/components/chat-composer/config.json +137 -0
- package/src/components/chat-context/ChatContext.tsx +46 -0
- package/src/components/chat-context/chat-context.django-snapshot.html +35 -0
- package/src/components/chat-context/chat-context.django.html +20 -0
- package/src/components/chat-context/chat-context.html +9 -0
- package/src/components/chat-context/chat-context.react-snapshot.html +30 -0
- package/src/components/chat-context/config.json +36 -0
- package/src/components/chat-controls/ChatControls.tsx +67 -0
- package/src/components/chat-controls/chat-controls.django-snapshot.html +114 -0
- package/src/components/chat-controls/chat-controls.django.html +36 -0
- package/src/components/chat-controls/chat-controls.html +11 -0
- package/src/components/chat-controls/chat-controls.react-snapshot.html +107 -0
- package/src/components/chat-controls/config.json +67 -0
- package/src/components/chat-directory/ChatDirectory.tsx +168 -0
- package/src/components/chat-directory/chat-directory.django-snapshot.html +546 -0
- package/src/components/chat-directory/chat-directory.django.html +14 -0
- package/src/components/chat-directory/chat-directory.html +4 -0
- package/src/components/chat-directory/chat-directory.react-snapshot.html +471 -0
- package/src/components/chat-directory/config.json +242 -0
- package/src/components/chat-directory-item/ChatDirectoryItem.tsx +150 -0
- package/src/components/chat-directory-item/chat-directory-item.django-snapshot.html +281 -0
- package/src/components/chat-directory-item/chat-directory-item.django.html +38 -0
- package/src/components/chat-directory-item/chat-directory-item.html +9 -0
- package/src/components/chat-directory-item/chat-directory-item.react-snapshot.html +249 -0
- package/src/components/chat-directory-item/config.json +103 -0
- package/src/components/chat-history/ChatHistory.tsx +30 -0
- package/src/components/chat-history/chat-history.django-snapshot.html +113 -0
- package/src/components/chat-history/chat-history.django.html +20 -0
- package/src/components/chat-history/chat-history.html +9 -0
- package/src/components/chat-history/chat-history.react-snapshot.html +111 -0
- package/src/components/chat-history/config.json +24 -0
- package/src/components/chat-message/ChatMessage.tsx +148 -0
- package/src/components/chat-message/chat-message.django-snapshot.html +758 -0
- package/src/components/chat-message/chat-message.django.html +56 -0
- package/src/components/chat-message/chat-message.html +12 -0
- package/src/components/chat-message/chat-message.react-snapshot.html +627 -0
- package/src/components/chat-message/config.json +278 -0
- package/src/components/chat-message-actions/ChatMessageActions.tsx +133 -0
- package/src/components/chat-message-actions/chat-message-actions.django-snapshot.html +345 -0
- package/src/components/chat-message-actions/chat-message-actions.django.html +29 -0
- package/src/components/chat-message-actions/chat-message-actions.html +53 -0
- package/src/components/chat-message-actions/chat-message-actions.react-snapshot.html +295 -0
- package/src/components/chat-message-actions/config.json +121 -0
- package/src/components/chat-window/ChatWindow.tsx +133 -0
- package/src/components/chat-window/chat-window.django-snapshot.html +448 -0
- package/src/components/chat-window/chat-window.django.html +39 -0
- package/src/components/chat-window/chat-window.html +26 -0
- package/src/components/chat-window/chat-window.react-snapshot.html +286 -0
- package/src/components/chat-window/config.json +123 -0
- package/src/components/clickable/Clickable.tsx +19 -5
- package/src/components/clickable/clickable.django-snapshot.html +11 -2
- package/src/components/clickable/clickable.django.html +2 -0
- package/src/components/clickable/clickable.react-snapshot.html +10 -2
- package/src/components/clickable/config.json +4 -0
- package/src/components/code/code.django-snapshot.html +27 -22
- package/src/components/code/code.html +2 -2
- package/src/components/code/code.react-snapshot.html +43 -8
- package/src/components/copy-to-clipboard/CopyToClipboard.tsx +2 -7
- package/src/components/copy-to-clipboard/copy-to-clipboard.django-snapshot.html +6 -4
- package/src/components/copy-to-clipboard/copy-to-clipboard.django.html +3 -2
- package/src/components/copy-to-clipboard/copy-to-clipboard.react-snapshot.html +14 -2
- package/src/components/file-list/FileList.tsx +3 -2
- package/src/components/file-list/config.json +5 -0
- package/src/components/file-list/file-list.django-snapshot.html +63 -0
- package/src/components/file-list/file-list.django.html +1 -1
- package/src/components/file-list/file-list.react-snapshot.html +53 -0
- package/src/components/footer/footer.django-snapshot.html +0 -3
- package/src/components/header/header.django-snapshot.html +5 -167
- package/src/components/header/header.django.html +2 -2
- package/src/components/header/header.html +1 -11
- package/src/components/header/header.react-snapshot.html +3 -6
- package/src/components/hero/hero.django-snapshot.html +0 -20
- package/src/components/hero/hero.django.html +3 -3
- package/src/components/icon-list/IconList.tsx +10 -2
- package/src/components/icon-list/config.json +5 -1
- package/src/components/icon-list/icon-list.django-snapshot.html +39 -0
- package/src/components/icon-list/icon-list.django.html +2 -0
- package/src/components/icon-list/icon-list.react-snapshot.html +31 -0
- package/src/components/image/image.django.html +4 -4
- package/src/components/input/Input.tsx +1 -1
- package/src/components/input/config.json +2 -3
- package/src/components/input/input.django-snapshot.html +4 -21
- package/src/components/input/input.django.html +2 -2
- package/src/components/link/Link.tsx +7 -4
- package/src/components/link/config.json +2 -3
- package/src/components/link/link.django-snapshot.html +8 -0
- package/src/components/link/link.django.html +2 -2
- package/src/components/link/link.html +4 -1
- package/src/components/link/link.react-snapshot.html +8 -0
- package/src/components/list/List.tsx +10 -2
- package/src/components/list/config.json +5 -1
- package/src/components/list/list.django-snapshot.html +26 -0
- package/src/components/list/list.django.html +2 -0
- package/src/components/list/list.html +20 -0
- package/src/components/list/list.react-snapshot.html +20 -0
- package/src/components/memorable-date/memorable-date.django-snapshot.html +0 -8
- package/src/components/memorable-date/memorable-date.django.html +2 -2
- package/src/components/misc-banner/misc-banner.django-snapshot.html +12 -12
- package/src/components/misc-banner/misc-banner.django.html +4 -2
- package/src/components/page/Page.tsx +16 -0
- package/src/components/page/config.json +18 -1
- package/src/components/page/page.django-snapshot.html +74 -0
- package/src/components/page/page.django.html +8 -0
- package/src/components/page/page.html +60 -0
- package/src/components/page/page.react-snapshot.html +60 -0
- package/src/components/popover/Popover.tsx +60 -9
- package/src/components/popover/PopoverMenu.tsx +33 -15
- package/src/components/popover/config.json +88 -14
- package/src/components/popover/popover-menu.django.html +13 -2
- package/src/components/popover/popover.django-snapshot.html +229 -7
- package/src/components/popover/popover.django.html +3 -2
- package/src/components/popover/popover.react-snapshot.html +127 -4
- package/src/components/process-list/config.json +41 -3
- package/src/components/quote/Quote.tsx +9 -2
- package/src/components/search/Search.tsx +1 -1
- package/src/components/search/config.json +3 -4
- package/src/components/search/search.django-snapshot.html +262 -1684
- package/src/components/search/search.django.html +1 -20
- package/src/components/select/select.django-snapshot.html +7 -7
- package/src/components/select/select.react-snapshot.html +7 -7
- package/src/components/summary/Summary.tsx +4 -2
- package/src/components/summary/config.json +4 -0
- package/src/components/summary/summary.django.html +4 -4
- package/src/components/table/Table.tsx +58 -25
- package/src/components/table/config.json +61 -13
- package/src/components/tag/Tag.tsx +40 -7
- package/src/components/tag/config.json +18 -2
- package/src/components/tag/tag.django-snapshot.html +16 -1
- package/src/components/tag/tag.django.html +12 -6
- package/src/components/tag/tag.html +4 -0
- package/src/components/tag/tag.react-snapshot.html +16 -1
- package/src/components/tag-group/TagGroup.tsx +6 -9
- package/src/components/tag-group/config.json +4 -0
- package/src/components/tag-group/tag-group.django.html +1 -1
- package/src/components/theme-picker/ThemePicker.tsx +95 -52
- package/src/components/theme-picker/config.json +7 -4
- package/src/components/theme-picker/theme-picker-select.django.html +7 -0
- package/src/components/theme-picker/theme-picker.django-snapshot.html +101 -21
- package/src/components/theme-picker/theme-picker.django.html +22 -24
- package/src/components/theme-picker/theme-picker.html +86 -56
- package/src/components/theme-picker/theme-picker.react-snapshot.html +74 -18
|
@@ -1,85 +1,115 @@
|
|
|
1
|
-
<h3 class="site-preview-heading
|
|
2
|
-
<div class="usx-theme-picker"
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<div class="usx-theme-picker">
|
|
3
3
|
<button
|
|
4
4
|
type="button"
|
|
5
5
|
class="usa-button usx-button usx-button--ghost usx-theme-picker__trigger"
|
|
6
6
|
aria-label="Theme"
|
|
7
|
-
|
|
7
|
+
aria-expanded="false"
|
|
8
|
+
aria-controls="theme-picker-example-1-panel"
|
|
8
9
|
>
|
|
9
10
|
<svg
|
|
10
|
-
class="usa-icon usx-theme-picker__icon"
|
|
11
|
+
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
11
12
|
aria-hidden="true"
|
|
12
13
|
focusable="false"
|
|
13
|
-
|
|
14
|
+
role="img"
|
|
14
15
|
>
|
|
15
|
-
<
|
|
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
|
-
/>
|
|
16
|
+
<use href="./img/usx-sprite.svg#color_palette"></use>
|
|
19
17
|
</svg>
|
|
20
18
|
</button>
|
|
21
|
-
<div class="usx-theme-picker__panel">
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<option value="
|
|
19
|
+
<div id="theme-picker-example-1-panel" class="usx-theme-picker__panel">
|
|
20
|
+
<label class="usa-label usx-label usa-sr-only" for="theme-picker-example-1">Theme</label
|
|
21
|
+
><select id="theme-picker-example-1" class="usa-select usx-select">
|
|
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
28
|
<option value="Midnight">Midnight</option>
|
|
29
29
|
<option value="Carbon">Carbon</option>
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
<option value="VADS">VADS</option>
|
|
31
|
+
<option value="GOV.UK">GOV.UK</option>
|
|
32
|
+
<option value="NASA">NASA</option></select
|
|
33
|
+
><button
|
|
32
34
|
type="button"
|
|
33
35
|
class="usa-button usx-button usa-button--primary usx-theme-picker__toggle"
|
|
34
36
|
aria-label="Confirm theme"
|
|
35
|
-
onclick="this.closest('.usx-theme-picker').classList.remove('usx-theme-picker--open')"
|
|
36
37
|
>
|
|
37
|
-
<svg
|
|
38
|
-
|
|
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>
|
|
39
45
|
</svg>
|
|
40
46
|
</button>
|
|
41
47
|
</div>
|
|
42
48
|
</div>
|
|
43
49
|
|
|
44
|
-
<h3 class="site-preview-heading text-ink">Light/Dark Theme Picker</h3>
|
|
45
50
|
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
onclick="this.closest('.usx-theme-picker').classList.add('usx-theme-picker--open')"
|
|
52
|
-
>
|
|
53
|
-
<svg
|
|
54
|
-
class="usa-icon usx-theme-picker__icon"
|
|
51
|
+
<h3 class="site-preview-heading">Ghost Select</h3>
|
|
52
|
+
<div class="usx-theme-picker usx-theme-picker--ghost-select">
|
|
53
|
+
<div class="usx-theme-picker__ghost">
|
|
54
|
+
<span
|
|
55
|
+
class="usa-button usx-button usx-button--ghost usx-theme-picker__ghost-face"
|
|
55
56
|
aria-hidden="true"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
class="usa-select usx-select"
|
|
68
|
-
id="theme-picker-light-dark-select"
|
|
69
|
-
onchange="window.usxThemePickerDemo.onChange(this.value)"
|
|
57
|
+
><svg
|
|
58
|
+
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
59
|
+
aria-hidden="true"
|
|
60
|
+
focusable="false"
|
|
61
|
+
role="img"
|
|
62
|
+
>
|
|
63
|
+
<use href="./img/usx-sprite.svg#color_palette"></use></svg></span
|
|
64
|
+
><label class="usa-label usx-label usa-sr-only" for="theme-picker-example-ghost-select"
|
|
65
|
+
>Theme</label
|
|
66
|
+
><select
|
|
67
|
+
id="theme-picker-example-ghost-select"
|
|
68
|
+
class="usa-select usx-select usx-theme-picker__select--hidden"
|
|
70
69
|
>
|
|
71
|
-
<option value="
|
|
70
|
+
<option value="Default" selected="">Default</option>
|
|
71
|
+
<option value="Forest">Forest</option>
|
|
72
|
+
<option value="Sunset">Sunset</option>
|
|
73
|
+
<option value="Ocean">Ocean</option>
|
|
74
|
+
<option value="Aurora">Aurora</option>
|
|
75
|
+
<option value="Borealis">Borealis</option>
|
|
76
|
+
<option value="Midnight">Midnight</option>
|
|
77
|
+
<option value="Carbon">Carbon</option>
|
|
78
|
+
<option value="VADS">VADS</option>
|
|
79
|
+
<option value="GOV.UK">GOV.UK</option>
|
|
80
|
+
<option value="NASA">NASA</option>
|
|
81
|
+
</select>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<h3 class="site-preview-heading">Swap</h3>
|
|
87
|
+
<div class="usx-theme-picker usx-theme-picker--swap">
|
|
88
|
+
<label
|
|
89
|
+
class="usx-swap usx-swap--rotate usx-theme-picker__swap usa-button usx-button usx-button--ghost"
|
|
90
|
+
><input type="checkbox" autocomplete="off" aria-label="Theme: Light. Switch to Dark" /><span
|
|
91
|
+
class="usx-swap-on"
|
|
92
|
+
><svg
|
|
93
|
+
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
94
|
+
aria-hidden="true"
|
|
95
|
+
focusable="false"
|
|
96
|
+
role="img"
|
|
97
|
+
>
|
|
98
|
+
<use href="./img/usx-sprite.svg#moon"></use></svg></span
|
|
99
|
+
><span class="usx-swap-off"
|
|
100
|
+
><svg
|
|
101
|
+
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
102
|
+
aria-hidden="true"
|
|
103
|
+
focusable="false"
|
|
104
|
+
role="img"
|
|
105
|
+
>
|
|
106
|
+
<use href="./img/usx-sprite.svg#sun"></use></svg></span
|
|
107
|
+
></label>
|
|
108
|
+
<div class="usx-theme-picker__fallback">
|
|
109
|
+
<label class="usa-label usx-label usa-sr-only" for="theme-picker-example-swap">Theme</label
|
|
110
|
+
><select id="theme-picker-example-swap" class="usa-select usx-select">
|
|
111
|
+
<option value="Aurora" selected="">Light</option>
|
|
72
112
|
<option value="Borealis">Dark</option>
|
|
73
113
|
</select>
|
|
74
|
-
<button
|
|
75
|
-
type="button"
|
|
76
|
-
class="usa-button usx-button usa-button--primary usx-theme-picker__toggle"
|
|
77
|
-
aria-label="Confirm theme"
|
|
78
|
-
onclick="this.closest('.usx-theme-picker').classList.remove('usx-theme-picker--open')"
|
|
79
|
-
>
|
|
80
|
-
<svg class="usa-icon usx-theme-picker__icon" aria-hidden="true" focusable="false" role="img">
|
|
81
|
-
<use href="img/sprite.svg#close"></use>
|
|
82
|
-
</svg>
|
|
83
|
-
</button>
|
|
84
114
|
</div>
|
|
85
115
|
</div>
|
|
@@ -8,15 +8,12 @@
|
|
|
8
8
|
aria-controls="react-theme-picker-1-panel"
|
|
9
9
|
>
|
|
10
10
|
<svg
|
|
11
|
-
class="usa-icon usx-theme-picker__icon"
|
|
11
|
+
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
12
12
|
aria-hidden="true"
|
|
13
13
|
focusable="false"
|
|
14
|
-
|
|
14
|
+
role="img"
|
|
15
15
|
>
|
|
16
|
-
<
|
|
17
|
-
fill="currentColor"
|
|
18
|
-
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"
|
|
19
|
-
></path>
|
|
16
|
+
<use href="/img/usx-sprite.svg#color_palette"></use>
|
|
20
17
|
</svg>
|
|
21
18
|
</button>
|
|
22
19
|
<div id="react-theme-picker-1-panel" class="usx-theme-picker__panel">
|
|
@@ -60,15 +57,12 @@
|
|
|
60
57
|
aria-controls="react-theme-picker-2-panel"
|
|
61
58
|
>
|
|
62
59
|
<svg
|
|
63
|
-
class="usa-icon usx-theme-picker__icon"
|
|
60
|
+
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
64
61
|
aria-hidden="true"
|
|
65
62
|
focusable="false"
|
|
66
|
-
|
|
63
|
+
role="img"
|
|
67
64
|
>
|
|
68
|
-
<
|
|
69
|
-
fill="currentColor"
|
|
70
|
-
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"
|
|
71
|
-
></path>
|
|
65
|
+
<use href="/img/usx-sprite.svg#color_palette"></use>
|
|
72
66
|
</svg>
|
|
73
67
|
</button>
|
|
74
68
|
<div id="react-theme-picker-2-panel" class="usx-theme-picker__panel">
|
|
@@ -93,6 +87,71 @@
|
|
|
93
87
|
</div>
|
|
94
88
|
</div>
|
|
95
89
|
|
|
90
|
+
<h3 class="site-preview-heading">Ghost Select</h3>
|
|
91
|
+
<div class="usx-theme-picker usx-theme-picker--ghost-select">
|
|
92
|
+
<div class="usx-theme-picker__ghost">
|
|
93
|
+
<span
|
|
94
|
+
class="usa-button usx-button usx-button--ghost usx-theme-picker__ghost-face"
|
|
95
|
+
aria-hidden="true"
|
|
96
|
+
><svg
|
|
97
|
+
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
98
|
+
aria-hidden="true"
|
|
99
|
+
focusable="false"
|
|
100
|
+
role="img"
|
|
101
|
+
>
|
|
102
|
+
<use href="/img/usx-sprite.svg#color_palette"></use></svg></span
|
|
103
|
+
><label class="usa-label usx-label usa-sr-only" for="react-theme-picker-ghost-select"
|
|
104
|
+
>Theme</label
|
|
105
|
+
><select
|
|
106
|
+
id="react-theme-picker-ghost-select"
|
|
107
|
+
class="usa-select usx-select usx-theme-picker__select--hidden"
|
|
108
|
+
>
|
|
109
|
+
<option value="Default" selected="">Default</option>
|
|
110
|
+
<option value="Forest">Forest</option>
|
|
111
|
+
<option value="Sunset">Sunset</option>
|
|
112
|
+
<option value="Ocean">Ocean</option>
|
|
113
|
+
<option value="Aurora">Aurora</option>
|
|
114
|
+
<option value="Borealis">Borealis</option>
|
|
115
|
+
<option value="Midnight">Midnight</option>
|
|
116
|
+
<option value="Carbon">Carbon</option>
|
|
117
|
+
<option value="VADS">VADS</option>
|
|
118
|
+
<option value="GOV.UK">GOV.UK</option>
|
|
119
|
+
<option value="NASA">NASA</option>
|
|
120
|
+
</select>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
<h3 class="site-preview-heading">Swap</h3>
|
|
125
|
+
<div class="usx-theme-picker usx-theme-picker--swap">
|
|
126
|
+
<label
|
|
127
|
+
class="usx-swap usx-swap--rotate usx-theme-picker__swap usa-button usx-button usx-button--ghost"
|
|
128
|
+
><input type="checkbox" autocomplete="off" aria-label="Theme: Light. Switch to Dark" /><span
|
|
129
|
+
class="usx-swap-on"
|
|
130
|
+
><svg
|
|
131
|
+
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
132
|
+
aria-hidden="true"
|
|
133
|
+
focusable="false"
|
|
134
|
+
role="img"
|
|
135
|
+
>
|
|
136
|
+
<use href="/img/usx-sprite.svg#moon"></use></svg></span
|
|
137
|
+
><span class="usx-swap-off"
|
|
138
|
+
><svg
|
|
139
|
+
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
140
|
+
aria-hidden="true"
|
|
141
|
+
focusable="false"
|
|
142
|
+
role="img"
|
|
143
|
+
>
|
|
144
|
+
<use href="/img/usx-sprite.svg#sun"></use></svg></span
|
|
145
|
+
></label>
|
|
146
|
+
<div class="usx-theme-picker__fallback">
|
|
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>
|
|
153
|
+
</div>
|
|
154
|
+
|
|
96
155
|
<h3 class="site-preview-heading">With Value</h3>
|
|
97
156
|
<div class="usx-theme-picker">
|
|
98
157
|
<button
|
|
@@ -103,15 +162,12 @@
|
|
|
103
162
|
aria-controls="react-theme-picker-value-panel"
|
|
104
163
|
>
|
|
105
164
|
<svg
|
|
106
|
-
class="usa-icon usx-theme-picker__icon"
|
|
165
|
+
class="usa-icon usx-icon usx-theme-picker__icon"
|
|
107
166
|
aria-hidden="true"
|
|
108
167
|
focusable="false"
|
|
109
|
-
|
|
168
|
+
role="img"
|
|
110
169
|
>
|
|
111
|
-
<
|
|
112
|
-
fill="currentColor"
|
|
113
|
-
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"
|
|
114
|
-
></path>
|
|
170
|
+
<use href="/img/usx-sprite.svg#color_palette"></use>
|
|
115
171
|
</svg>
|
|
116
172
|
</button>
|
|
117
173
|
<div id="react-theme-picker-value-panel" class="usx-theme-picker__panel">
|