@solexllc/usx-react 0.11.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.
Files changed (240) hide show
  1. package/README.md +31 -0
  2. package/dist/Popover-Bg4-2-cU.cjs +987 -0
  3. package/dist/Popover-CqHczzNE.js +988 -0
  4. package/dist/chat.cjs +1396 -0
  5. package/dist/chat.js +1396 -0
  6. package/dist/index.cjs +4412 -5247
  7. package/dist/index.js +140 -972
  8. package/package.json +9 -5
  9. package/src/chat.js +15 -0
  10. package/src/components/accordion/Accordion.tsx +9 -57
  11. package/src/components/accordion/accordion.django.html +10 -20
  12. package/src/components/accordion/config.json +8 -2
  13. package/src/components/accordion-item/AccordionItem.tsx +54 -0
  14. package/src/components/accordion-item/accordion-item.django.html +19 -0
  15. package/src/components/accordion-item/accordion-item.html +8 -0
  16. package/src/components/accordion-item/config.json +55 -0
  17. package/src/components/alert/alert.django-snapshot.html +4 -4
  18. package/src/components/avatar/Avatar.tsx +54 -16
  19. package/src/components/avatar/avatar.django-snapshot.html +118 -2
  20. package/src/components/avatar/avatar.django.html +2 -2
  21. package/src/components/avatar/avatar.html +25 -0
  22. package/src/components/avatar/avatar.react-snapshot.html +110 -3
  23. package/src/components/avatar/config.json +17 -17
  24. package/src/components/avatar-group/AvatarGroup.tsx +17 -15
  25. package/src/components/avatar-group/avatar-group.django-snapshot.html +196 -174
  26. package/src/components/avatar-group/avatar-group.django.html +1 -1
  27. package/src/components/avatar-group/avatar-group.react-snapshot.html +216 -165
  28. package/src/components/avatar-group/config.json +14 -8
  29. package/src/components/back-to-top/BackToTop.tsx +21 -57
  30. package/src/components/back-to-top/back-to-top.django-snapshot.html +101 -202
  31. package/src/components/back-to-top/back-to-top.django.html +11 -38
  32. package/src/components/back-to-top/back-to-top.html +22 -106
  33. package/src/components/back-to-top/back-to-top.react-snapshot.html +94 -148
  34. package/src/components/back-to-top/config.json +41 -10
  35. package/src/components/banner/banner.django-snapshot.html +2 -2
  36. package/src/components/button/Button.tsx +15 -3
  37. package/src/components/button/button.django-snapshot.html +82 -0
  38. package/src/components/button/button.django.html +5 -2
  39. package/src/components/button/button.react-snapshot.html +80 -0
  40. package/src/components/button/config.json +17 -3
  41. package/src/components/callout/callout.django.html +1 -1
  42. package/src/components/callout/config.json +7 -16
  43. package/src/components/card/card.django-snapshot.html +43 -0
  44. package/src/components/card/card.react-snapshot.html +36 -0
  45. package/src/components/character-count/CharacterCount.tsx +2 -0
  46. package/src/components/character-count/character-count.react-snapshot.html +7 -0
  47. package/src/components/chat/Chat.tsx +575 -0
  48. package/src/components/chat/README.md +174 -0
  49. package/src/components/chat/avatarProps.ts +32 -0
  50. package/src/components/chat/chat.django-snapshot.html +23579 -0
  51. package/src/components/chat/chat.django.html +75 -0
  52. package/src/components/chat/chat.html +116 -0
  53. package/src/components/chat/chat.react-snapshot.html +16895 -0
  54. package/src/components/chat/config.json +1241 -0
  55. package/src/components/chat-attachment/ChatAttachment.tsx +39 -0
  56. package/src/components/chat-attachment/chat-attachment.django.html +24 -0
  57. package/src/components/chat-attachment/chat-attachment.html +10 -0
  58. package/src/components/chat-attachment/config.json +27 -0
  59. package/src/components/chat-attachments/ChatAttachments.tsx +17 -0
  60. package/src/components/chat-attachments/chat-attachments.django-snapshot.html +58 -0
  61. package/src/components/chat-attachments/chat-attachments.django.html +10 -0
  62. package/src/components/chat-attachments/chat-attachments.html +14 -0
  63. package/src/components/chat-attachments/chat-attachments.react-snapshot.html +46 -0
  64. package/src/components/chat-attachments/config.json +25 -0
  65. package/src/components/chat-bubble/ChatBubble.tsx +39 -0
  66. package/src/components/chat-bubble/ChatFormattedText.tsx +138 -0
  67. package/src/components/chat-bubble/chat-bubble.django-snapshot.html +128 -0
  68. package/src/components/chat-bubble/chat-bubble.django.html +19 -0
  69. package/src/components/chat-bubble/chat-bubble.html +1 -0
  70. package/src/components/chat-bubble/chat-bubble.react-snapshot.html +118 -0
  71. package/src/components/chat-bubble/config.json +70 -0
  72. package/src/components/chat-composer/ChatComposer.tsx +213 -0
  73. package/src/components/chat-composer/README.md +15 -0
  74. package/src/components/chat-composer/chat-composer.django-snapshot.html +575 -0
  75. package/src/components/chat-composer/chat-composer.django.html +77 -0
  76. package/src/components/chat-composer/chat-composer.html +44 -0
  77. package/src/components/chat-composer/chat-composer.react-snapshot.html +519 -0
  78. package/src/components/chat-composer/chat-formatting.django.html +59 -0
  79. package/src/components/chat-composer/config.json +137 -0
  80. package/src/components/chat-context/ChatContext.tsx +46 -0
  81. package/src/components/chat-context/chat-context.django-snapshot.html +35 -0
  82. package/src/components/chat-context/chat-context.django.html +20 -0
  83. package/src/components/chat-context/chat-context.html +9 -0
  84. package/src/components/chat-context/chat-context.react-snapshot.html +30 -0
  85. package/src/components/chat-context/config.json +36 -0
  86. package/src/components/chat-controls/ChatControls.tsx +67 -0
  87. package/src/components/chat-controls/chat-controls.django-snapshot.html +114 -0
  88. package/src/components/chat-controls/chat-controls.django.html +36 -0
  89. package/src/components/chat-controls/chat-controls.html +11 -0
  90. package/src/components/chat-controls/chat-controls.react-snapshot.html +107 -0
  91. package/src/components/chat-controls/config.json +67 -0
  92. package/src/components/chat-directory/ChatDirectory.tsx +168 -0
  93. package/src/components/chat-directory/chat-directory.django-snapshot.html +546 -0
  94. package/src/components/chat-directory/chat-directory.django.html +14 -0
  95. package/src/components/chat-directory/chat-directory.html +4 -0
  96. package/src/components/chat-directory/chat-directory.react-snapshot.html +471 -0
  97. package/src/components/chat-directory/config.json +242 -0
  98. package/src/components/chat-directory-item/ChatDirectoryItem.tsx +150 -0
  99. package/src/components/chat-directory-item/chat-directory-item.django-snapshot.html +281 -0
  100. package/src/components/chat-directory-item/chat-directory-item.django.html +38 -0
  101. package/src/components/chat-directory-item/chat-directory-item.html +9 -0
  102. package/src/components/chat-directory-item/chat-directory-item.react-snapshot.html +249 -0
  103. package/src/components/chat-directory-item/config.json +103 -0
  104. package/src/components/chat-history/ChatHistory.tsx +30 -0
  105. package/src/components/chat-history/chat-history.django-snapshot.html +113 -0
  106. package/src/components/chat-history/chat-history.django.html +20 -0
  107. package/src/components/chat-history/chat-history.html +9 -0
  108. package/src/components/chat-history/chat-history.react-snapshot.html +111 -0
  109. package/src/components/chat-history/config.json +24 -0
  110. package/src/components/chat-message/ChatMessage.tsx +148 -0
  111. package/src/components/chat-message/chat-message.django-snapshot.html +758 -0
  112. package/src/components/chat-message/chat-message.django.html +56 -0
  113. package/src/components/chat-message/chat-message.html +12 -0
  114. package/src/components/chat-message/chat-message.react-snapshot.html +627 -0
  115. package/src/components/chat-message/config.json +278 -0
  116. package/src/components/chat-message-actions/ChatMessageActions.tsx +133 -0
  117. package/src/components/chat-message-actions/chat-message-actions.django-snapshot.html +345 -0
  118. package/src/components/chat-message-actions/chat-message-actions.django.html +29 -0
  119. package/src/components/chat-message-actions/chat-message-actions.html +53 -0
  120. package/src/components/chat-message-actions/chat-message-actions.react-snapshot.html +295 -0
  121. package/src/components/chat-message-actions/config.json +121 -0
  122. package/src/components/chat-window/ChatWindow.tsx +135 -0
  123. package/src/components/chat-window/chat-window.django-snapshot.html +450 -0
  124. package/src/components/chat-window/chat-window.django.html +39 -0
  125. package/src/components/chat-window/chat-window.html +26 -0
  126. package/src/components/chat-window/chat-window.react-snapshot.html +286 -0
  127. package/src/components/chat-window/config.json +123 -0
  128. package/src/components/checkbox/checkbox.django-snapshot.html +2 -2
  129. package/src/components/clickable/Clickable.tsx +19 -5
  130. package/src/components/clickable/clickable.django-snapshot.html +11 -2
  131. package/src/components/clickable/clickable.django.html +2 -0
  132. package/src/components/clickable/clickable.react-snapshot.html +10 -2
  133. package/src/components/clickable/config.json +4 -0
  134. package/src/components/code/code.django-snapshot.html +25 -18
  135. package/src/components/code/code.react-snapshot.html +41 -4
  136. package/src/components/copy-to-clipboard/CopyToClipboard.tsx +2 -7
  137. package/src/components/copy-to-clipboard/copy-to-clipboard.django-snapshot.html +6 -4
  138. package/src/components/copy-to-clipboard/copy-to-clipboard.django.html +3 -2
  139. package/src/components/copy-to-clipboard/copy-to-clipboard.react-snapshot.html +14 -2
  140. package/src/components/data-table/data-table.django-snapshot.html +4 -5
  141. package/src/components/data-table/data-table.react-snapshot.html +4 -4
  142. package/src/components/drawer/drawer.django-snapshot.html +53 -30
  143. package/src/components/error-page/error-page.django-snapshot.html +20 -7
  144. package/src/components/fieldset/fieldset.django-snapshot.html +1 -6
  145. package/src/components/file-list/FileList.tsx +3 -2
  146. package/src/components/file-list/config.json +5 -0
  147. package/src/components/file-list/file-list.django-snapshot.html +63 -0
  148. package/src/components/file-list/file-list.django.html +1 -1
  149. package/src/components/file-list/file-list.react-snapshot.html +53 -0
  150. package/src/components/footer/footer.django-snapshot.html +0 -3
  151. package/src/components/form-group/form-group.django-snapshot.html +0 -2
  152. package/src/components/header/header.django-snapshot.html +3 -163
  153. package/src/components/header/header.django.html +2 -2
  154. package/src/components/header/header.html +1 -1
  155. package/src/components/header/header.react-snapshot.html +3 -3
  156. package/src/components/hero/hero.django-snapshot.html +0 -20
  157. package/src/components/hero/hero.django.html +3 -3
  158. package/src/components/identifier/config.json +4 -2
  159. package/src/components/identifier/identifier.django-snapshot.html +13 -16
  160. package/src/components/identifier/identifier.react-snapshot.html +13 -15
  161. package/src/components/image/image.django-snapshot.html +6 -6
  162. package/src/components/image/image.django.html +4 -4
  163. package/src/components/input/Input.tsx +1 -1
  164. package/src/components/input/config.json +2 -3
  165. package/src/components/input/input.django-snapshot.html +4 -21
  166. package/src/components/input/input.django.html +2 -2
  167. package/src/components/layout/layout.django-snapshot.html +2 -0
  168. package/src/components/link/Link.tsx +7 -4
  169. package/src/components/link/config.json +2 -3
  170. package/src/components/link/link.django-snapshot.html +8 -0
  171. package/src/components/link/link.django.html +2 -2
  172. package/src/components/link/link.html +4 -1
  173. package/src/components/link/link.react-snapshot.html +8 -0
  174. package/src/components/memorable-date/memorable-date.django-snapshot.html +0 -8
  175. package/src/components/memorable-date/memorable-date.django.html +2 -2
  176. package/src/components/misc-banner/misc-banner.django-snapshot.html +12 -12
  177. package/src/components/misc-banner/misc-banner.django.html +4 -2
  178. package/src/components/modal/Modal.tsx +4 -3
  179. package/src/components/modal/config.json +3 -2
  180. package/src/components/modal/modal.django-snapshot.html +70 -14
  181. package/src/components/modal/modal.django.html +7 -9
  182. package/src/components/modal/modal.html +4 -4
  183. package/src/components/modal/modal.react-snapshot.html +64 -4
  184. package/src/components/page/Page.tsx +10 -7
  185. package/src/components/page/page.django-snapshot.html +5 -8
  186. package/src/components/page/page.django.html +2 -2
  187. package/src/components/page/page.html +1 -2
  188. package/src/components/page/page.react-snapshot.html +5 -8
  189. package/src/components/pagination/navigation/PaginationNavigation.tsx +2 -0
  190. package/src/components/pagination/navigation/pagination-navigation.django.html +2 -0
  191. package/src/components/pagination/pagination.django-snapshot.html +62 -0
  192. package/src/components/pagination/pagination.django.html +3 -1
  193. package/src/components/pagination/pagination.html +46 -0
  194. package/src/components/pagination/pagination.react-snapshot.html +48 -0
  195. package/src/components/pagination/summary/PaginationSummary.tsx +1 -1
  196. package/src/components/pagination/summary/pagination-summary.django.html +1 -1
  197. package/src/components/popover/Popover.tsx +61 -9
  198. package/src/components/popover/PopoverMenu.tsx +33 -15
  199. package/src/components/popover/config.json +88 -14
  200. package/src/components/popover/popover-menu.django.html +13 -2
  201. package/src/components/popover/popover.django-snapshot.html +265 -7
  202. package/src/components/popover/popover.django.html +3 -2
  203. package/src/components/popover/popover.react-snapshot.html +154 -4
  204. package/src/components/process-list/config.json +41 -3
  205. package/src/components/quote/Quote.tsx +9 -2
  206. package/src/components/search/Search.tsx +1 -1
  207. package/src/components/search/config.json +3 -4
  208. package/src/components/search/search.django-snapshot.html +262 -1684
  209. package/src/components/search/search.django.html +1 -20
  210. package/src/components/section/Section.tsx +3 -1
  211. package/src/components/select/select.django-snapshot.html +7 -7
  212. package/src/components/select/select.react-snapshot.html +7 -7
  213. package/src/components/site-alert/site-alert.django-snapshot.html +8 -8
  214. package/src/components/summary/Summary.tsx +4 -2
  215. package/src/components/summary/config.json +4 -0
  216. package/src/components/summary/summary.django.html +4 -4
  217. package/src/components/swap/Swap.tsx +35 -3
  218. package/src/components/swap/config.json +28 -1
  219. package/src/components/swap/swap.django-snapshot.html +29 -7
  220. package/src/components/swap/swap.django.html +15 -1
  221. package/src/components/swap/swap.react-snapshot.html +34 -4
  222. package/src/components/table/Table.tsx +58 -25
  223. package/src/components/table/config.json +61 -13
  224. package/src/components/tag/Tag.tsx +40 -7
  225. package/src/components/tag/config.json +18 -2
  226. package/src/components/tag/tag.django-snapshot.html +16 -1
  227. package/src/components/tag/tag.django.html +12 -6
  228. package/src/components/tag/tag.html +4 -0
  229. package/src/components/tag/tag.react-snapshot.html +16 -1
  230. package/src/components/tag-group/TagGroup.tsx +6 -9
  231. package/src/components/tag-group/config.json +4 -0
  232. package/src/components/tag-group/tag-group.django.html +1 -1
  233. package/src/components/theme-picker/ThemePicker.tsx +48 -42
  234. package/src/components/theme-picker/config.json +27 -29
  235. package/src/components/theme-picker/theme-picker-select.django.html +1 -1
  236. package/src/components/theme-picker/theme-picker.django-snapshot.html +283 -78
  237. package/src/components/theme-picker/theme-picker.django.html +24 -11
  238. package/src/components/theme-picker/theme-picker.html +155 -54
  239. package/src/components/theme-picker/theme-picker.react-snapshot.html +265 -67
  240. 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="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
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
- <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"
56
- aria-hidden="true"
57
- ><svg
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></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"
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
- <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>
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
- <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"
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></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>
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="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
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="Aurora" selected="">Light</option>
72
- <option value="Borealis">Dark</option></select
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">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
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></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"
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
- <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>
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
- <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"
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></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>
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="Default">Default</option>
177
- <option value="Forest" selected="">Forest</option>
178
- <option value="Sunset">Sunset</option>
179
- <option value="Ocean">Ocean</option>
180
- <option value="Aurora">Aurora</option>
181
- <option value="Borealis">Borealis</option>
182
- <option value="Midnight">Midnight</option>
183
- <option value="Carbon">Carbon</option>
184
- <option value="VADS">VADS</option>
185
- <option value="GOV.UK">GOV.UK</option>
186
- <option value="NASA">NASA</option></select
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';