@solexllc/usx-react 0.6.1 → 0.8.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 (476) hide show
  1. package/README.md +5 -8
  2. package/dist/index.cjs +879 -503
  3. package/dist/index.js +879 -503
  4. package/package.json +5 -5
  5. package/src/components/accordion/Accordion.tsx +7 -9
  6. package/src/components/accordion/accordion.django-snapshot.html +515 -0
  7. package/src/components/accordion/accordion.django.html +9 -25
  8. package/src/components/accordion/accordion.html +403 -193
  9. package/src/components/accordion/accordion.react-snapshot.html +475 -0
  10. package/src/components/accordion/config.json +29 -3
  11. package/src/components/alert/Alert.tsx +4 -3
  12. package/src/components/alert/alert.django-snapshot.html +175 -0
  13. package/src/components/alert/alert.django.html +14 -12
  14. package/src/components/alert/alert.html +112 -148
  15. package/src/components/alert/alert.react-snapshot.html +152 -0
  16. package/src/components/alert/config.json +5 -8
  17. package/src/components/attribution/attribution.django-snapshot.html +57 -0
  18. package/src/components/attribution/attribution.django.html +2 -2
  19. package/src/components/attribution/attribution.html +50 -21
  20. package/src/components/attribution/attribution.react-snapshot.html +49 -0
  21. package/src/components/attribution/config.json +4 -0
  22. package/src/components/avatar/Avatar.tsx +6 -15
  23. package/src/components/avatar/avatar.django-snapshot.html +131 -0
  24. package/src/components/avatar/avatar.django.html +9 -10
  25. package/src/components/avatar/avatar.html +86 -51
  26. package/src/components/avatar/avatar.react-snapshot.html +121 -0
  27. package/src/components/avatar/config.json +10 -3
  28. package/src/components/avatar-group/AvatarGroup.tsx +3 -3
  29. package/src/components/avatar-group/avatar-group.django-snapshot.html +278 -0
  30. package/src/components/avatar-group/avatar-group.django.html +3 -3
  31. package/src/components/avatar-group/avatar-group.html +5 -5
  32. package/src/components/avatar-group/avatar-group.react-snapshot.html +226 -0
  33. package/src/components/back-to-top/BackToTop.tsx +7 -2
  34. package/src/components/back-to-top/back-to-top.django-snapshot.html +339 -0
  35. package/src/components/back-to-top/back-to-top.django.html +6 -4
  36. package/src/components/back-to-top/back-to-top.react-snapshot.html +264 -0
  37. package/src/components/back-to-top/config.json +9 -0
  38. package/src/components/banner/banner.django-snapshot.html +329 -0
  39. package/src/components/banner/banner.django.html +2 -2
  40. package/src/components/banner/banner.html +87 -185
  41. package/src/components/banner/banner.react-snapshot.html +317 -0
  42. package/src/components/banner/config.json +3 -0
  43. package/src/components/breadcrumb/Breadcrumb.tsx +1 -1
  44. package/src/components/breadcrumb/breadcrumb.django-snapshot.html +103 -0
  45. package/src/components/breadcrumb/breadcrumb.django.html +5 -6
  46. package/src/components/breadcrumb/breadcrumb.html +45 -66
  47. package/src/components/breadcrumb/breadcrumb.react-snapshot.html +87 -0
  48. package/src/components/breadcrumb/config.json +2 -8
  49. package/src/components/button/Button.tsx +1 -0
  50. package/src/components/button/button.django-snapshot.html +558 -0
  51. package/src/components/button/button.django.html +4 -4
  52. package/src/components/button/button.html +363 -226
  53. package/src/components/button/button.react-snapshot.html +574 -0
  54. package/src/components/button/config.json +4 -0
  55. package/src/components/button-group/button-group.django-snapshot.html +129 -0
  56. package/src/components/button-group/button-group.django.html +1 -1
  57. package/src/components/button-group/button-group.react-snapshot.html +115 -0
  58. package/src/components/button-group/config.json +16 -0
  59. package/src/components/calendar-date/calendar-date.django-snapshot.html +7 -0
  60. package/src/components/calendar-date/calendar-date.django.html +1 -1
  61. package/src/components/calendar-date/calendar-date.react-snapshot.html +7 -0
  62. package/src/components/calendar-date/config.json +3 -0
  63. package/src/components/callout/Callout.tsx +2 -5
  64. package/src/components/callout/callout.django-snapshot.html +59 -0
  65. package/src/components/callout/callout.django.html +3 -3
  66. package/src/components/callout/callout.html +0 -5
  67. package/src/components/callout/callout.react-snapshot.html +57 -0
  68. package/src/components/callout/config.json +6 -7
  69. package/src/components/card/Card.tsx +8 -5
  70. package/src/components/card/card.django-snapshot.html +1198 -0
  71. package/src/components/card/card.django.html +5 -5
  72. package/src/components/card/card.html +1032 -35
  73. package/src/components/card/card.react-snapshot.html +1028 -0
  74. package/src/components/card/config.json +25 -4
  75. package/src/components/card-group/CardGroup.tsx +1 -1
  76. package/src/components/card-group/card-group.django-snapshot.html +514 -0
  77. package/src/components/card-group/card-group.django.html +2 -2
  78. package/src/components/card-group/card-group.html +388 -95
  79. package/src/components/card-group/card-group.react-snapshot.html +445 -0
  80. package/src/components/card-group/config.json +80 -2
  81. package/src/components/carousel/Carousel.tsx +45 -71
  82. package/src/components/carousel/carousel.django-snapshot.html +927 -0
  83. package/src/components/carousel/carousel.django.html +23 -47
  84. package/src/components/carousel/carousel.html +715 -32
  85. package/src/components/carousel/carousel.react-snapshot.html +762 -0
  86. package/src/components/carousel/config.json +43 -12
  87. package/src/components/character-count/CharacterCount.tsx +1 -3
  88. package/src/components/character-count/character-count.django-snapshot.html +402 -0
  89. package/src/components/character-count/character-count.django.html +1 -1
  90. package/src/components/character-count/character-count.html +231 -26
  91. package/src/components/character-count/character-count.react-snapshot.html +346 -0
  92. package/src/components/character-count/config.json +5 -0
  93. package/src/components/checkbox/Checkbox.tsx +7 -2
  94. package/src/components/checkbox/checkbox.django-snapshot.html +373 -0
  95. package/src/components/checkbox/checkbox.django.html +22 -3
  96. package/src/components/checkbox/checkbox.html +313 -241
  97. package/src/components/checkbox/checkbox.react-snapshot.html +313 -0
  98. package/src/components/checkbox/config.json +12 -1
  99. package/src/components/checkbox-group/CheckboxGroup.tsx +1 -0
  100. package/src/components/checkbox-group/checkbox-group.django-snapshot.html +372 -0
  101. package/src/components/checkbox-group/checkbox-group.django.html +2 -2
  102. package/src/components/checkbox-group/checkbox-group.html +346 -26
  103. package/src/components/checkbox-group/checkbox-group.react-snapshot.html +300 -0
  104. package/src/components/checkbox-group/config.json +24 -0
  105. package/src/components/clickable/clickable-bg-color-change.django.html +1 -0
  106. package/src/components/clickable/clickable-color-change.django.html +1 -0
  107. package/src/components/clickable/clickable-link.django.html +1 -0
  108. package/src/components/clickable/clickable.django-snapshot.html +221 -0
  109. package/src/components/clickable/clickable.django.html +6 -2
  110. package/src/components/clickable/clickable.html +168 -83
  111. package/src/components/clickable/clickable.react-snapshot.html +194 -0
  112. package/src/components/clickable/config.json +9 -7
  113. package/src/components/code/Code.tsx +4 -3
  114. package/src/components/code/code.django-snapshot.html +375 -0
  115. package/src/components/code/code.django.html +2 -2
  116. package/src/components/code/code.html +201 -38
  117. package/src/components/code/code.react-snapshot.html +249 -0
  118. package/src/components/code/config.json +22 -0
  119. package/src/components/collection/collection.django-snapshot.html +238 -0
  120. package/src/components/collection/collection.django.html +1 -1
  121. package/src/components/collection/collection.html +203 -379
  122. package/src/components/collection/collection.react-snapshot.html +200 -0
  123. package/src/components/collection/config.json +49 -0
  124. package/src/components/combobox/Combobox.tsx +1 -0
  125. package/src/components/combobox/combobox.django-snapshot.html +1302 -0
  126. package/src/components/combobox/combobox.django.html +3 -5
  127. package/src/components/combobox/combobox.html +21 -9
  128. package/src/components/combobox/combobox.react-snapshot.html +714 -0
  129. package/src/components/combobox/config.json +269 -2
  130. package/src/components/container/Container.tsx +3 -3
  131. package/src/components/container/config.json +9 -5
  132. package/src/components/container/container.django-snapshot.html +2820 -0
  133. package/src/components/container/container.django.html +2 -2
  134. package/src/components/container/container.html +2616 -80
  135. package/src/components/container/container.react-snapshot.html +2400 -0
  136. package/src/components/copy-to-clipboard/CopyToClipboard.tsx +2 -2
  137. package/src/components/copy-to-clipboard/config.json +8 -0
  138. package/src/components/copy-to-clipboard/copy-to-clipboard.django-snapshot.html +84 -0
  139. package/src/components/copy-to-clipboard/copy-to-clipboard.django.html +1 -1
  140. package/src/components/copy-to-clipboard/copy-to-clipboard.html +48 -20
  141. package/src/components/copy-to-clipboard/copy-to-clipboard.react-snapshot.html +60 -0
  142. package/src/components/date-picker/date-picker.django-snapshot.html +150 -0
  143. package/src/components/date-picker/date-picker.django.html +1 -1
  144. package/src/components/date-picker/date-picker.react-snapshot.html +122 -0
  145. package/src/components/date-range-picker/date-range-picker.django-snapshot.html +301 -0
  146. package/src/components/date-range-picker/date-range-picker.django.html +1 -1
  147. package/src/components/date-range-picker/date-range-picker.react-snapshot.html +246 -0
  148. package/src/components/details/Details.tsx +49 -0
  149. package/src/components/details/config.json +56 -0
  150. package/src/components/details/details.django-snapshot.html +238 -0
  151. package/src/components/details/details.django.html +10 -0
  152. package/src/components/details/details.html +215 -0
  153. package/src/components/details/details.react-snapshot.html +215 -0
  154. package/src/components/drawer/Drawer.tsx +125 -0
  155. package/src/components/drawer/config.json +97 -0
  156. package/src/components/drawer/drawer.django-snapshot.html +1711 -0
  157. package/src/components/drawer/drawer.django.html +34 -0
  158. package/src/components/drawer/drawer.html +1031 -0
  159. package/src/components/drawer/drawer.react-snapshot.html +1027 -0
  160. package/src/components/error-message/config.json +4 -0
  161. package/src/components/error-message/error-message.django-snapshot.html +12 -0
  162. package/src/components/error-message/error-message.html +15 -2
  163. package/src/components/error-message/error-message.react-snapshot.html +12 -0
  164. package/src/components/error-page/ErrorPage.tsx +169 -0
  165. package/src/components/error-page/config.json +153 -0
  166. package/src/components/error-page/error-page.django-snapshot.html +570 -0
  167. package/src/components/error-page/error-page.django.html +80 -0
  168. package/src/components/error-page/error-page.html +437 -0
  169. package/src/components/error-page/error-page.react-snapshot.html +467 -0
  170. package/src/components/eyebrow/config.json +3 -0
  171. package/src/components/eyebrow/eyebrow.django-snapshot.html +8 -0
  172. package/src/components/eyebrow/eyebrow.html +8 -4
  173. package/src/components/eyebrow/eyebrow.react-snapshot.html +8 -0
  174. package/src/components/fieldset/config.json +4 -0
  175. package/src/components/fieldset/fieldset.django-snapshot.html +50 -0
  176. package/src/components/fieldset/fieldset.django.html +2 -1
  177. package/src/components/fieldset/fieldset.html +33 -7
  178. package/src/components/fieldset/fieldset.react-snapshot.html +39 -0
  179. package/src/components/file-input/FileInput.tsx +2 -1
  180. package/src/components/file-input/_contents.django.html +29 -0
  181. package/src/components/file-input/config.json +7 -3
  182. package/src/components/file-input/file-input.django-snapshot.html +534 -0
  183. package/src/components/file-input/file-input.django.html +3 -50
  184. package/src/components/file-input/file-input.html +341 -102
  185. package/src/components/file-input/file-input.react-snapshot.html +440 -0
  186. package/src/components/file-list/config.json +2 -2
  187. package/src/components/file-list/file-list.django-snapshot.html +328 -0
  188. package/src/components/file-list/file-list.django.html +9 -6
  189. package/src/components/file-list/file-list.html +191 -7
  190. package/src/components/file-list/file-list.react-snapshot.html +276 -0
  191. package/src/components/footer/config.json +162 -1
  192. package/src/components/footer/footer.django-snapshot.html +1009 -0
  193. package/src/components/footer/footer.django.html +10 -7
  194. package/src/components/footer/footer.html +611 -232
  195. package/src/components/footer/footer.react-snapshot.html +796 -0
  196. package/src/components/form-group/config.json +3 -0
  197. package/src/components/form-group/form-group.django-snapshot.html +50 -0
  198. package/src/components/form-group/form-group.django.html +1 -1
  199. package/src/components/form-group/form-group.react-snapshot.html +43 -0
  200. package/src/components/header/Header.tsx +3 -3
  201. package/src/components/header/branding.django.html +14 -0
  202. package/src/components/header/config.json +73 -0
  203. package/src/components/header/header.django-snapshot.html +3395 -0
  204. package/src/components/header/header.django.html +9 -5
  205. package/src/components/header/header.html +2553 -611
  206. package/src/components/header/header.react-snapshot.html +2675 -0
  207. package/src/components/hero/Hero.tsx +4 -4
  208. package/src/components/hero/config.json +7 -6
  209. package/src/components/hero/hero.django-snapshot.html +409 -0
  210. package/src/components/hero/hero.django.html +5 -5
  211. package/src/components/hero/hero.html +299 -38
  212. package/src/components/hero/hero.react-snapshot.html +353 -0
  213. package/src/components/hint/config.json +4 -0
  214. package/src/components/hint/hint.django-snapshot.html +7 -0
  215. package/src/components/hint/hint.html +7 -2
  216. package/src/components/hint/hint.react-snapshot.html +7 -0
  217. package/src/components/icon/Icon.tsx +14 -12
  218. package/src/components/icon/config.json +7 -15
  219. package/src/components/icon/icon.django-snapshot.html +69 -0
  220. package/src/components/icon/icon.django.html +4 -10
  221. package/src/components/icon/icon.html +90 -90
  222. package/src/components/icon/icon.react-snapshot.html +69 -0
  223. package/src/components/icon-list/icon-list.django-snapshot.html +244 -0
  224. package/src/components/icon-list/icon-list.django.html +2 -2
  225. package/src/components/icon-list/icon-list.react-snapshot.html +215 -0
  226. package/src/components/identifier/Identifier.tsx +1 -1
  227. package/src/components/identifier/config.json +1 -1
  228. package/src/components/identifier/identifier.django-snapshot.html +1129 -0
  229. package/src/components/identifier/identifier.django.html +3 -3
  230. package/src/components/identifier/identifier.html +484 -256
  231. package/src/components/identifier/identifier.react-snapshot.html +959 -0
  232. package/src/components/image/Image.tsx +2 -2
  233. package/src/components/image/config.json +4 -0
  234. package/src/components/image/image.django-snapshot.html +166 -0
  235. package/src/components/image/image.django.html +5 -11
  236. package/src/components/image/image.html +144 -29
  237. package/src/components/image/image.react-snapshot.html +150 -0
  238. package/src/components/in-page-nav/InPageNav.tsx +4 -3
  239. package/src/components/in-page-nav/config.json +5 -11
  240. package/src/components/in-page-nav/in-page-nav.django-snapshot.html +228 -0
  241. package/src/components/in-page-nav/in-page-nav.django.html +4 -4
  242. package/src/components/in-page-nav/in-page-nav.react-snapshot.html +228 -0
  243. package/src/components/indicator/config.json +8 -0
  244. package/src/components/indicator/indicator.django-snapshot.html +57 -0
  245. package/src/components/indicator/indicator.html +25 -23
  246. package/src/components/indicator/indicator.react-snapshot.html +44 -0
  247. package/src/components/input/config.json +18 -1
  248. package/src/components/input/input.django-snapshot.html +121 -0
  249. package/src/components/input/input.django.html +16 -8
  250. package/src/components/input/input.react-snapshot.html +94 -0
  251. package/src/components/label/Label.tsx +4 -1
  252. package/src/components/label/config.json +7 -0
  253. package/src/components/label/label.django-snapshot.html +22 -0
  254. package/src/components/label/label.django.html +4 -1
  255. package/src/components/label/label.html +15 -16
  256. package/src/components/label/label.react-snapshot.html +22 -0
  257. package/src/components/language-selector/config.json +9 -13
  258. package/src/components/language-selector/language-selector.django-snapshot.html +183 -0
  259. package/src/components/language-selector/language-selector.django.html +3 -3
  260. package/src/components/language-selector/language-selector.html +74 -25
  261. package/src/components/language-selector/language-selector.react-snapshot.html +169 -0
  262. package/src/components/layout/Layout.tsx +12 -1
  263. package/src/components/layout/config.json +8 -0
  264. package/src/components/layout/layout.django-snapshot.html +987 -0
  265. package/src/components/layout/layout.django.html +2 -2
  266. package/src/components/layout/layout.html +991 -21
  267. package/src/components/layout/layout.react-snapshot.html +876 -0
  268. package/src/components/legend/config.json +3 -0
  269. package/src/components/legend/legend.django-snapshot.html +13 -0
  270. package/src/components/legend/legend.django.html +1 -1
  271. package/src/components/legend/legend.html +10 -9
  272. package/src/components/legend/legend.react-snapshot.html +13 -0
  273. package/src/components/link/Link.tsx +3 -1
  274. package/src/components/link/config.json +9 -1
  275. package/src/components/link/link.django-snapshot.html +45 -0
  276. package/src/components/link/link.django.html +2 -2
  277. package/src/components/link/link.react-snapshot.html +45 -0
  278. package/src/components/list/config.json +7 -0
  279. package/src/components/list/list.django-snapshot.html +61 -0
  280. package/src/components/list/list.django.html +1 -1
  281. package/src/components/list/list.html +45 -25
  282. package/src/components/list/list.react-snapshot.html +46 -0
  283. package/src/components/memorable-date/config.json +1 -2
  284. package/src/components/memorable-date/memorable-date.django-snapshot.html +536 -0
  285. package/src/components/memorable-date/memorable-date.django.html +3 -1
  286. package/src/components/memorable-date/memorable-date.react-snapshot.html +437 -0
  287. package/src/components/misc-banner/MiscBanner.tsx +16 -10
  288. package/src/components/misc-banner/config.json +22 -4
  289. package/src/components/misc-banner/misc-banner.django-snapshot.html +370 -0
  290. package/src/components/misc-banner/misc-banner.django.html +15 -15
  291. package/src/components/misc-banner/misc-banner.react-snapshot.html +332 -0
  292. package/src/components/modal/config.json +22 -0
  293. package/src/components/modal/modal.django-snapshot.html +252 -0
  294. package/src/components/modal/modal.django.html +5 -9
  295. package/src/components/modal/modal.react-snapshot.html +229 -0
  296. package/src/components/page/Page.tsx +17 -5
  297. package/src/components/page/config.json +23 -2
  298. package/src/components/page/page.django-snapshot.html +44 -0
  299. package/src/components/page/page.django.html +5 -3
  300. package/src/components/page/page.html +29 -8
  301. package/src/components/page/page.react-snapshot.html +44 -0
  302. package/src/components/pagination/Pagination.tsx +49 -55
  303. package/src/components/pagination/config.json +58 -9
  304. package/src/components/pagination/navigation/PaginationNavigation.tsx +24 -34
  305. package/src/components/pagination/navigation/pagination-navigation.django.html +16 -23
  306. package/src/components/pagination/pagination.django-snapshot.html +2078 -0
  307. package/src/components/pagination/pagination.django.html +14 -4
  308. package/src/components/pagination/pagination.html +907 -305
  309. package/src/components/pagination/pagination.react-snapshot.html +1738 -0
  310. package/src/components/pagination/step-options/PaginationStepOptions.tsx +2 -8
  311. package/src/components/pagination/step-options/pagination-step-options.django.html +1 -1
  312. package/src/components/popover/Popover.tsx +114 -0
  313. package/src/components/popover/PopoverMenu.tsx +80 -0
  314. package/src/components/popover/config.json +130 -0
  315. package/src/components/popover/popover-menu.django.html +35 -0
  316. package/src/components/popover/popover.django-snapshot.html +1201 -0
  317. package/src/components/popover/popover.django.html +11 -0
  318. package/src/components/popover/popover.html +1081 -0
  319. package/src/components/popover/popover.react-snapshot.html +1101 -0
  320. package/src/components/process-list/ProcessList.tsx +6 -21
  321. package/src/components/process-list/config.json +18 -2
  322. package/src/components/process-list/process-list.django-snapshot.html +90 -0
  323. package/src/components/process-list/process-list.django.html +2 -2
  324. package/src/components/process-list/process-list.react-snapshot.html +78 -0
  325. package/src/components/prose/Prose.tsx +3 -3
  326. package/src/components/prose/config.json +6 -2
  327. package/src/components/prose/prose.django-snapshot.html +250 -0
  328. package/src/components/prose/prose.django.html +3 -3
  329. package/src/components/prose/prose.html +244 -85
  330. package/src/components/prose/prose.react-snapshot.html +250 -0
  331. package/src/components/quote/Quote.tsx +2 -2
  332. package/src/components/quote/config.json +6 -4
  333. package/src/components/quote/quote.django-snapshot.html +348 -0
  334. package/src/components/quote/quote.django.html +2 -2
  335. package/src/components/quote/quote.html +2 -7
  336. package/src/components/quote/quote.react-snapshot.html +322 -0
  337. package/src/components/radio-buttons/RadioButtons.tsx +15 -13
  338. package/src/components/radio-buttons/config.json +23 -0
  339. package/src/components/radio-buttons/radio-buttons.django-snapshot.html +760 -0
  340. package/src/components/radio-buttons/radio-buttons.django.html +12 -4
  341. package/src/components/radio-buttons/radio-buttons.html +623 -127
  342. package/src/components/radio-buttons/radio-buttons.react-snapshot.html +592 -0
  343. package/src/components/range-slider/RangeSlider.tsx +1 -1
  344. package/src/components/range-slider/range-slider.django-snapshot.html +157 -0
  345. package/src/components/range-slider/range-slider.django.html +1 -1
  346. package/src/components/range-slider/range-slider.react-snapshot.html +134 -0
  347. package/src/components/required/config.json +6 -3
  348. package/src/components/required/required.django-snapshot.html +5 -0
  349. package/src/components/required/required.html +3 -4
  350. package/src/components/required/required.react-snapshot.html +5 -0
  351. package/src/components/search/Search.tsx +6 -9
  352. package/src/components/search/config.json +5 -3
  353. package/src/components/search/search.django-snapshot.html +1795 -0
  354. package/src/components/search/search.django.html +7 -6
  355. package/src/components/search/search.html +336 -54
  356. package/src/components/search/search.react-snapshot.html +393 -0
  357. package/src/components/section/Section.tsx +3 -3
  358. package/src/components/section/config.json +12 -4
  359. package/src/components/section/section.django-snapshot.html +87 -0
  360. package/src/components/section/section.django.html +6 -6
  361. package/src/components/section/section.html +73 -11
  362. package/src/components/section/section.react-snapshot.html +78 -0
  363. package/src/components/select/Select.tsx +1 -0
  364. package/src/components/select/config.json +18 -0
  365. package/src/components/select/select.django-snapshot.html +146 -0
  366. package/src/components/select/select.django.html +1 -1
  367. package/src/components/select/select.html +112 -58
  368. package/src/components/select/select.react-snapshot.html +104 -0
  369. package/src/components/sidenav/config.json +17 -0
  370. package/src/components/sidenav/sidenav.django-snapshot.html +94 -0
  371. package/src/components/sidenav/sidenav.django.html +2 -2
  372. package/src/components/sidenav/sidenav.react-snapshot.html +55 -0
  373. package/src/components/site-alert/SiteAlert.tsx +10 -38
  374. package/src/components/site-alert/config.json +10 -3
  375. package/src/components/site-alert/site-alert.django-snapshot.html +400 -0
  376. package/src/components/site-alert/site-alert.django.html +1 -1
  377. package/src/components/site-alert/site-alert.react-snapshot.html +332 -0
  378. package/src/components/skipnav/config.json +3 -0
  379. package/src/components/skipnav/skipnav.django-snapshot.html +40 -0
  380. package/src/components/skipnav/skipnav.django.html +1 -1
  381. package/src/components/skipnav/skipnav.html +40 -1
  382. package/src/components/skipnav/skipnav.react-snapshot.html +33 -0
  383. package/src/components/spinner/Spinner.tsx +1 -0
  384. package/src/components/spinner/config.json +7 -0
  385. package/src/components/spinner/spinner.django-snapshot.html +299 -0
  386. package/src/components/spinner/spinner.django.html +1 -1
  387. package/src/components/spinner/spinner.html +143 -23
  388. package/src/components/spinner/spinner.react-snapshot.html +302 -0
  389. package/src/components/status/config.json +1 -0
  390. package/src/components/status/status.django-snapshot.html +71 -0
  391. package/src/components/status/status.react-snapshot.html +71 -0
  392. package/src/components/step-indicator/StepIndicator.tsx +4 -4
  393. package/src/components/step-indicator/config.json +22 -2
  394. package/src/components/step-indicator/step-indicator.django-snapshot.html +224 -0
  395. package/src/components/step-indicator/step-indicator.django.html +3 -3
  396. package/src/components/step-indicator/step-indicator.html +26 -68
  397. package/src/components/step-indicator/step-indicator.react-snapshot.html +204 -0
  398. package/src/components/summary/Summary.tsx +54 -0
  399. package/src/components/summary/config.json +56 -0
  400. package/src/components/summary/summary.django-snapshot.html +36 -0
  401. package/src/components/summary/summary.django.html +11 -0
  402. package/src/components/summary/summary.html +17 -0
  403. package/src/components/summary/summary.react-snapshot.html +36 -0
  404. package/src/components/summary-box/config.json +5 -0
  405. package/src/components/summary-box/summary-box.django-snapshot.html +188 -0
  406. package/src/components/summary-box/summary-box.react-snapshot.html +177 -0
  407. package/src/components/swap/config.json +3 -3
  408. package/src/components/swap/swap.django-snapshot.html +110 -0
  409. package/src/components/swap/swap.html +99 -154
  410. package/src/components/swap/swap.react-snapshot.html +100 -0
  411. package/src/components/switch/config.json +3 -0
  412. package/src/components/switch/switch.django-snapshot.html +73 -0
  413. package/src/components/switch/switch.django.html +6 -8
  414. package/src/components/switch/switch.react-snapshot.html +73 -0
  415. package/src/components/table/Table.tsx +27 -11
  416. package/src/components/table/TableBody.tsx +12 -9
  417. package/src/components/table/config.json +46 -1
  418. package/src/components/table/table-detail-row.django.html +1 -1
  419. package/src/components/table/table-foot.django.html +1 -1
  420. package/src/components/table/table-head.django.html +1 -1
  421. package/src/components/table/table.django-snapshot.html +1970 -0
  422. package/src/components/table/table.html +2168 -988
  423. package/src/components/table/table.react-snapshot.html +2166 -0
  424. package/src/components/tag/config.json +3 -0
  425. package/src/components/tag/tag.django-snapshot.html +109 -0
  426. package/src/components/tag/tag.django.html +4 -4
  427. package/src/components/tag/tag.html +73 -17
  428. package/src/components/tag/tag.react-snapshot.html +99 -0
  429. package/src/components/tag-group/config.json +24 -0
  430. package/src/components/tag-group/tag-group.django-snapshot.html +25 -0
  431. package/src/components/tag-group/tag-group.django.html +1 -1
  432. package/src/components/tag-group/tag-group.react-snapshot.html +17 -0
  433. package/src/components/task-list/config.json +33 -0
  434. package/src/components/task-list/task-list.django-snapshot.html +273 -0
  435. package/src/components/task-list/task-list.django.html +1 -1
  436. package/src/components/task-list/task-list.html +252 -15
  437. package/src/components/task-list/task-list.react-snapshot.html +252 -0
  438. package/src/components/text-area/TextArea.tsx +1 -1
  439. package/src/components/text-area/config.json +5 -0
  440. package/src/components/text-area/text-area.django-snapshot.html +127 -0
  441. package/src/components/text-area/text-area.django.html +3 -3
  442. package/src/components/text-area/text-area.react-snapshot.html +108 -0
  443. package/src/components/theme-picker/ThemePicker.tsx +45 -60
  444. package/src/components/theme-picker/config.json +54 -2
  445. package/src/components/theme-picker/theme-picker.django-snapshot.html +109 -0
  446. package/src/components/theme-picker/theme-picker.django.html +8 -8
  447. package/src/components/theme-picker/theme-picker.html +26 -8
  448. package/src/components/theme-picker/theme-picker.react-snapshot.html +94 -0
  449. package/src/components/time-picker/TimePicker.tsx +15 -9
  450. package/src/components/time-picker/config.json +2 -2
  451. package/src/components/time-picker/time-picker.django-snapshot.html +190 -0
  452. package/src/components/time-picker/time-picker.django.html +2 -2
  453. package/src/components/time-picker/time-picker.html +7 -7
  454. package/src/components/time-picker/time-picker.react-snapshot.html +157 -0
  455. package/src/components/toggle/_option.django.html +21 -0
  456. package/src/components/toggle/config.json +23 -2
  457. package/src/components/toggle/toggle.django-snapshot.html +419 -0
  458. package/src/components/toggle/toggle.django.html +10 -21
  459. package/src/components/toggle/toggle.html +365 -311
  460. package/src/components/toggle/toggle.react-snapshot.html +419 -0
  461. package/src/components/tooltip/Tooltip.tsx +2 -2
  462. package/src/components/tooltip/config.json +6 -1
  463. package/src/components/tooltip/tooltip.django-snapshot.html +57 -0
  464. package/src/components/tooltip/tooltip.django.html +1 -1
  465. package/src/components/tooltip/tooltip.react-snapshot.html +62 -0
  466. package/src/components/tree/Tree.tsx +91 -0
  467. package/src/components/tree/_tree-items.django.html +15 -0
  468. package/src/components/tree/config.json +105 -0
  469. package/src/components/tree/tree.django-snapshot.html +525 -0
  470. package/src/components/tree/tree.django.html +5 -0
  471. package/src/components/tree/tree.html +432 -0
  472. package/src/components/tree/tree.react-snapshot.html +432 -0
  473. package/src/components/villain/config.json +9 -0
  474. package/src/components/villain/villain.django-snapshot.html +44 -0
  475. package/src/components/villain/villain.react-snapshot.html +35 -0
  476. package/src/index.js +6 -0
package/dist/index.js CHANGED
@@ -75,7 +75,7 @@ function AccordionItem({
75
75
  expanded = false,
76
76
  headingClassName,
77
77
  contentClassName,
78
- headingLevel = "h3",
78
+ headingAs = "h3",
79
79
  handleToggle
80
80
  }) {
81
81
  const headingClasses = ClassNames("usa-accordion__heading", headingClassName);
@@ -84,7 +84,7 @@ function AccordionItem({
84
84
  "usa-prose",
85
85
  contentClassName
86
86
  );
87
- const Heading = headingLevel;
87
+ const Heading = headingAs;
88
88
  return /* @__PURE__ */ jsxs(Fragment, { children: [
89
89
  /* @__PURE__ */ jsx(Heading, { id: `${id}-heading`, className: headingClasses, children: /* @__PURE__ */ jsx(
90
90
  "button",
@@ -93,7 +93,6 @@ function AccordionItem({
93
93
  className: "usa-accordion__button",
94
94
  "aria-expanded": expanded,
95
95
  "aria-controls": `${id}-content`,
96
- "data-testid": `accordionButton_${id}`,
97
96
  onClick: handleToggle,
98
97
  children: title
99
98
  }
@@ -103,7 +102,6 @@ function AccordionItem({
103
102
  {
104
103
  id: `${id}-content`,
105
104
  "aria-labelledby": `${id}-heading`,
106
- "data-testid": `accordionItem_${id}`,
107
105
  className: contentClasses,
108
106
  hidden: !expanded,
109
107
  children: content
@@ -116,7 +114,7 @@ function Accordion({
116
114
  bordered = false,
117
115
  items = [],
118
116
  multiselectable = false,
119
- headingLevel = "h3",
117
+ headingAs = "h3",
120
118
  iconPosition,
121
119
  className = "",
122
120
  headingClassName = "",
@@ -141,7 +139,7 @@ function Accordion({
141
139
  AccordionItem,
142
140
  {
143
141
  ...item,
144
- headingLevel,
142
+ headingAs,
145
143
  headingClassName,
146
144
  contentClassName
147
145
  },
@@ -161,21 +159,28 @@ function getAssetSrcSet(srcSet, staticBaseUrl) {
161
159
  function Icon({
162
160
  name,
163
161
  source = "uswds",
164
- size = 2,
162
+ size,
165
163
  color,
166
- alt = name + " icon",
164
+ alt,
167
165
  staticBaseUrl,
168
166
  staticUrlPrefix,
169
167
  className = "",
170
168
  ...props2
171
169
  }) {
172
170
  const spritePrefix = staticUrlPrefix ?? getAssetUrl(`img/${source === "usx" ? "usx-sprite.svg" : "sprite.svg"}#`, staticBaseUrl);
171
+ const classes = ClassNames(
172
+ "usa-icon",
173
+ "usx-icon",
174
+ size ? size === 1 ? "usx-icon--size-1" : "usa-icon--size-" + size : "",
175
+ color ? "text-" + color : "",
176
+ className
177
+ );
173
178
  return /* @__PURE__ */ jsx(
174
179
  "svg",
175
180
  {
176
- className: "usa-icon " + (size ? size === 1 ? "usx-icon--size-1" : "usa-icon--size-" + size : "") + " " + (color ? "text-" + color : "") + " " + className,
177
- "aria-hidden": "true",
178
- "aria-label": alt,
181
+ className: classes,
182
+ "aria-hidden": alt ? void 0 : "true",
183
+ "aria-label": alt || void 0,
179
184
  focusable: "false",
180
185
  role: "img",
181
186
  ...props2,
@@ -216,14 +221,37 @@ function Alert({
216
221
  } else if (ariaLabel) {
217
222
  accessibilityProps["aria-label"] = ariaLabel;
218
223
  } else if (resolvedRole === "region") {
219
- accessibilityProps["aria-label"] = heading || `${normalizedVariant} alert`;
224
+ const label = heading || (normalizedVariant ? `${normalizedVariant} alert` : void 0);
225
+ if (label) accessibilityProps["aria-label"] = label;
220
226
  }
221
227
  return /* @__PURE__ */ jsx("div", { className: classes, ...accessibilityProps, ...props2, children: /* @__PURE__ */ jsxs("div", { className: "usa-alert__body", children: [
222
228
  !slim && heading ? /* @__PURE__ */ jsx("h4", { className: "usa-alert__heading", children: heading }) : null,
223
- children ? /* @__PURE__ */ jsx("div", { className: "usa-alert__text", children }) : /* @__PURE__ */ jsx("p", { className: "usa-alert__text", children: text }),
229
+ children ? /* @__PURE__ */ jsx("div", { className: "usa-alert__text", children }) : text ? /* @__PURE__ */ jsx("p", { className: "usa-alert__text", children: text }) : null,
224
230
  onDismiss && /* @__PURE__ */ jsx("button", { className: "usx-alert__dismiss", "aria-label": "Dismiss alert", onClick: onDismiss, children: /* @__PURE__ */ jsx(Icon, { name: "close", size: 3, staticBaseUrl }) })
225
231
  ] }) });
226
232
  }
233
+ const Tooltip = ({
234
+ label,
235
+ position = "right",
236
+ children,
237
+ className = "",
238
+ bodyClassName = "",
239
+ ...props2
240
+ }) => {
241
+ const validPositions = ["top", "bottom", "left", "right"];
242
+ const normalizedPosition = validPositions.includes(position) ? position : "right";
243
+ return /* @__PURE__ */ jsxs("span", { className: ClassNames("usx-tooltip", className), ...props2, children: [
244
+ children,
245
+ /* @__PURE__ */ jsx(
246
+ "span",
247
+ {
248
+ className: ClassNames("usa-tooltip__body", `usa-tooltip__body--${normalizedPosition}`, bodyClassName),
249
+ role: "tooltip",
250
+ children: label
251
+ }
252
+ )
253
+ ] });
254
+ };
227
255
  const shapeClassMap = {
228
256
  circle: "usx-circle",
229
257
  "rounded-sm": "usx-rounded-sm",
@@ -238,7 +266,7 @@ function Avatar({
238
266
  variant = "image",
239
267
  value = null,
240
268
  shape = null,
241
- tooltip = null,
269
+ tooltipProps = null,
242
270
  className = "",
243
271
  imageClassName = "",
244
272
  contentClassName = "",
@@ -260,15 +288,9 @@ function Avatar({
260
288
  shape ? shapeClassMap[shape] : "usx-circle",
261
289
  contentClassName
262
290
  );
263
- const avatarContent = isInitialsVariant ? /* @__PURE__ */ jsx("span", { className: contentClasses, children: value }) : isIconVariant ? /* @__PURE__ */ jsx("span", { className: contentClasses, children: /* @__PURE__ */ jsx(Icon, { name: value, alt: alt || `${value} icon` }) }) : /* @__PURE__ */ jsx("img", { className: imgClasses, src: src || void 0, alt: alt || void 0, role: "img", ...props2 });
291
+ const avatarContent = isInitialsVariant ? /* @__PURE__ */ jsx("span", { className: contentClasses, children: value }) : isIconVariant ? /* @__PURE__ */ jsx("span", { className: contentClasses, children: /* @__PURE__ */ jsx(Icon, { name: value, alt: alt ? void 0 : `${value} icon` }) }) : /* @__PURE__ */ jsx("img", { className: imgClasses, src: src || void 0, alt: alt || void 0, role: "img", ...props2 });
264
292
  const avatar = /* @__PURE__ */ jsx("a", { href, className: wrapperClasses, "aria-label": isInitialsVariant || isIconVariant ? alt || void 0 : void 0, children: avatarContent });
265
- if (tooltip) {
266
- return /* @__PURE__ */ jsxs("span", { className: "usx-tooltip", children: [
267
- avatar,
268
- /* @__PURE__ */ jsx("span", { className: "usa-tooltip__body usa-tooltip__body--right", role: "tooltip", children: tooltip })
269
- ] });
270
- }
271
- return avatar;
293
+ return tooltipProps ? /* @__PURE__ */ jsx(Tooltip, { ...tooltipProps, children: avatar }) : avatar;
272
294
  }
273
295
  function Attribution({
274
296
  avatarProps = null,
@@ -293,8 +315,8 @@ function Attribution({
293
315
  function AvatarGroup({ avatarProps = [], overlap = false, stacked = false, className = "", ...props2 }) {
294
316
  const classes = ClassNames(
295
317
  "usx-avatar-group",
296
- overlap && "usa-avatar-group--overlap",
297
- stacked && "usa-avatar-group--stacked",
318
+ overlap && "usx-avatar-group--overlap",
319
+ stacked && "usx-avatar-group--stacked",
298
320
  className
299
321
  );
300
322
  return /* @__PURE__ */ jsx("div", { className: classes, ...props2, children: avatarProps.map((avatar, index) => /* @__PURE__ */ jsx(
@@ -305,7 +327,7 @@ function AvatarGroup({ avatarProps = [], overlap = false, stacked = false, class
305
327
  alt: avatar.alt,
306
328
  value: avatar.initials,
307
329
  shape: avatar.shape,
308
- tooltip: avatar.tooltip,
330
+ tooltipProps: avatar.tooltipProps,
309
331
  className: avatar.className,
310
332
  imageClassName: avatar.imageClassName,
311
333
  contentClassName: avatar.initialsClassName
@@ -315,6 +337,7 @@ function AvatarGroup({ avatarProps = [], overlap = false, stacked = false, class
315
337
  }
316
338
  function BackToTop({
317
339
  label = "Back to top",
340
+ ariaLabel = "Back to top",
318
341
  href = void 0,
319
342
  variant = null,
320
343
  iconPosition = "right",
@@ -323,6 +346,7 @@ function BackToTop({
323
346
  onClick = void 0,
324
347
  ...props2
325
348
  }) {
349
+ const accessibleName = label ? void 0 : ariaLabel;
326
350
  const icon = /* @__PURE__ */ jsx(Icon, { name: "arrow_upward", size: iconSize, className: ClassNames(
327
351
  iconPosition === "left" ? "margin-right-05" : "margin-left-05"
328
352
  ) });
@@ -333,7 +357,7 @@ function BackToTop({
333
357
  "flex-align-center",
334
358
  className
335
359
  );
336
- return /* @__PURE__ */ jsxs("a", { className: linkClasses, href, ...props2, children: [
360
+ return /* @__PURE__ */ jsxs("a", { className: linkClasses, href, "aria-label": accessibleName, ...props2, children: [
337
361
  iconPosition === "left" && icon,
338
362
  label,
339
363
  iconPosition === "right" && icon
@@ -351,6 +375,7 @@ function BackToTop({
351
375
  {
352
376
  type: "button",
353
377
  className: buttonClasses,
378
+ "aria-label": accessibleName,
354
379
  onClick: onClick || (() => window.scrollTo({ top: 0, behavior: "smooth" })),
355
380
  ...props2,
356
381
  children: [
@@ -482,7 +507,7 @@ function Breadcrumb({
482
507
  }) {
483
508
  if (!items || items.length === 0) {
484
509
  const classes = ClassNames("usx-breadcrumb", className);
485
- return /* @__PURE__ */ jsx("div", { className: classes, ...props2, children: children || "Breadcrumb" });
510
+ return /* @__PURE__ */ jsx("div", { className: classes, ...props2, children });
486
511
  }
487
512
  const navClasses = ClassNames(
488
513
  "usa-breadcrumb",
@@ -538,6 +563,7 @@ const Required = ({
538
563
  ] });
539
564
  };
540
565
  function Label({
566
+ id,
541
567
  htmlFor,
542
568
  required = false,
543
569
  error = false,
@@ -556,8 +582,9 @@ function Label({
556
582
  return /* @__PURE__ */ jsxs(
557
583
  "label",
558
584
  {
585
+ id: id || void 0,
559
586
  className: classOverride ? className : classes,
560
- ...htmlFor ? { htmlFor } : {},
587
+ htmlFor: htmlFor || void 0,
561
588
  ...props2,
562
589
  children: [
563
590
  required && /* @__PURE__ */ jsx(Required, {}),
@@ -584,7 +611,8 @@ const Spinner = ({
584
611
  source: "usx",
585
612
  size,
586
613
  color,
587
- staticBaseUrl
614
+ staticBaseUrl,
615
+ staticUrlPrefix
588
616
  }
589
617
  ),
590
618
  screenReaderLabel && /* @__PURE__ */ jsx(Label, { screenReaderOnly: true, children: screenReaderLabel }),
@@ -666,6 +694,7 @@ function Button({
666
694
  type,
667
695
  className: classes,
668
696
  disabled,
697
+ "aria-disabled": disabled ? "true" : void 0,
669
698
  ...onClick ? { onClick } : {},
670
699
  ...buttonProps,
671
700
  ...extraAttributes,
@@ -726,10 +755,9 @@ function Callout({
726
755
  content,
727
756
  backgroundColor,
728
757
  textColor,
729
- element = "div",
758
+ as: Element = "div",
730
759
  ...props2
731
760
  }) {
732
- const Element = element;
733
761
  return /* @__PURE__ */ jsx(
734
762
  Element,
735
763
  {
@@ -850,8 +878,8 @@ function Image({
850
878
  ] }) : /* @__PURE__ */ jsx("img", { src: getAssetUrl(src, staticBaseUrl), srcSet: srcSet ? getAssetSrcSet(srcSet, staticBaseUrl) : void 0, alt, style, ...props2 });
851
879
  if (caption) {
852
880
  return /* @__PURE__ */ jsxs("figure", { className: classes, style, children: [
853
- imgElement,
854
- /* @__PURE__ */ jsx("figcaption", { className: captionClasses, "aria-hidden": hideCaption, children: caption })
881
+ href ? /* @__PURE__ */ jsx("a", { href, children: imgElement }) : imgElement,
882
+ /* @__PURE__ */ jsx("figcaption", { className: captionClasses, children: caption })
855
883
  ] });
856
884
  }
857
885
  const Element = href ? "a" : "div";
@@ -865,61 +893,50 @@ function Image({
865
893
  }
866
894
  );
867
895
  }
868
- function Slide({
869
- id,
870
- className = "",
871
- role = "group",
872
- ariaRoledescription = "slide",
873
- ariaLabel,
874
- tabIndex = 0,
875
- children = null,
876
- ...rest
877
- }) {
878
- const cls = ClassNames("usx-carousel__slide", className);
879
- return /* @__PURE__ */ jsx(
880
- "section",
881
- {
882
- id,
883
- className: cls,
884
- role,
885
- "aria-roledescription": ariaRoledescription,
886
- "aria-label": ariaLabel,
887
- tabIndex,
888
- ...rest,
889
- children
890
- }
896
+ function flattenChildren(children) {
897
+ return React.Children.toArray(children).flatMap(
898
+ (child) => React.isValidElement(child) && child.type === React.Fragment ? flattenChildren(child.props.children) : [child]
891
899
  );
892
900
  }
893
901
  function Carousel({
894
- id = "carousel-1",
895
902
  slides = [],
896
903
  ariaLabel = "Featured content",
897
- className = "",
898
904
  showDots = true,
899
- children = null,
900
- slideIds = [],
905
+ statusClassName,
906
+ children,
907
+ className,
908
+ extraAttributes,
909
+ role = "region",
901
910
  ...props2
902
911
  }) {
903
- var _a;
904
- const classes = ClassNames("usx-carousel", className);
905
- const childArray = React.Children.toArray(children).filter(Boolean);
906
- return /* @__PURE__ */ jsxs("div", { className: classes, ...props2, role: "region", "aria-roledescription": "carousel", "aria-label": ariaLabel, children: [
907
- /* @__PURE__ */ jsx("div", { className: "usx-carousel__viewport", tabIndex: -1, children: /* @__PURE__ */ jsx("div", { className: "usx-carousel__track", children: childArray.length > 0 ? childArray : slides.length > 0 ? slides.map((slide, i) => /* @__PURE__ */ jsx(
908
- Slide,
909
- {
910
- id: `${id}-slide-${i + 1}`,
911
- className: "",
912
- ariaLabel: `${i + 1} of ${slides.length}`,
913
- tabIndex: 0,
914
- children: (slide == null ? void 0 : slide.content) || slide
915
- },
916
- i
917
- )) : /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("em", { children: "No slides available." }) }) }) }),
918
- showDots && /* @__PURE__ */ jsxs("div", { className: "usx-carousel__dots", "aria-label": "Slide navigation", children: [
919
- (_a = childArray.length > 0 ? childArray : slides) == null ? void 0 : _a.map((_, i) => /* @__PURE__ */ jsx("a", { href: `#${id}-slide-${i + 1}`, "aria-label": `Go to slide ${i + 1}`, tabIndex: -1 }, i)),
920
- childArray.length > 0 && slideIds.length === childArray.length && slideIds.map((slideId, i) => /* @__PURE__ */ jsx("a", { href: slideId, "aria-label": `Go to slide ${i + 1}`, tabIndex: -1 }, i))
921
- ] })
922
- ] });
912
+ const childSlides = flattenChildren(children);
913
+ const items = childSlides.length ? childSlides.map((content) => ({ content })) : slides;
914
+ const count = items.length;
915
+ return /* @__PURE__ */ jsx(
916
+ "div",
917
+ {
918
+ ...props2,
919
+ className: ClassNames("usx-carousel", className),
920
+ role,
921
+ "aria-roledescription": "carousel",
922
+ "aria-label": ariaLabel,
923
+ "data-show-dots": showDots ? void 0 : "false",
924
+ "data-status-class-name": statusClassName,
925
+ ...extraAttributes,
926
+ children: /* @__PURE__ */ jsx("div", { className: "usx-carousel__viewport", children: /* @__PURE__ */ jsx("div", { className: "usx-carousel__track", "aria-live": "polite", tabIndex: count > 1 ? 0 : void 0, children: count ? items.map((item, index) => /* @__PURE__ */ jsx(
927
+ "div",
928
+ {
929
+ className: "usx-carousel__slide",
930
+ role: "group",
931
+ "aria-roledescription": "slide",
932
+ "aria-label": item.label || `${index + 1} of ${count}`,
933
+ children: item.content
934
+ },
935
+ index
936
+ )) : /* @__PURE__ */ jsx("p", { children: "No slides available." }) }) })
937
+ },
938
+ `${count}-${showDots}-${statusClassName ?? ""}`
939
+ );
923
940
  }
924
941
  function Card({
925
942
  title,
@@ -935,7 +952,8 @@ function Card({
935
952
  showCarouselDots = true,
936
953
  children,
937
954
  className = "",
938
- tag: RootTag = "div",
955
+ containerClassName = "",
956
+ as: RootTag = "div",
939
957
  ...props2
940
958
  }) {
941
959
  const cardClasses = ClassNames(
@@ -955,14 +973,15 @@ function Card({
955
973
  "usa-card__media--exdent": mediaExdent
956
974
  }
957
975
  );
958
- const hasStructuredContent = title || description || tagProps || buttonProps || imageProps;
976
+ const hasStructuredContent = title || description || (tagProps == null ? void 0 : tagProps.length) || (buttonProps == null ? void 0 : buttonProps.length) || (imageProps == null ? void 0 : imageProps.length);
959
977
  const shouldRenderStructured = hasStructuredContent && !children;
960
978
  const hasImages = imageProps && imageProps.length > 0;
961
979
  const useCarousel = imageProps && imageProps.length > 1;
962
980
  const media = useCarousel ? /* @__PURE__ */ jsx(
963
981
  Carousel,
964
982
  {
965
- id: `${props2.id || "card"}-carousel`,
983
+ ariaLabel: `${title || props2.id || "Card"} images`,
984
+ role: "group",
966
985
  showDots: showCarouselDots,
967
986
  className: "usx-card__carousel",
968
987
  slides: imageProps == null ? void 0 : imageProps.map((img, index) => ({
@@ -970,7 +989,7 @@ function Card({
970
989
  }))
971
990
  }
972
991
  ) : hasImages ? /* @__PURE__ */ jsx(Image, { hideCaption: true, ...imageProps[0], className: ClassNames("usa-card__img", imageProps[0].className) }) : null;
973
- return /* @__PURE__ */ jsx(RootTag, { className: cardClasses, ...props2, children: /* @__PURE__ */ jsx("div", { className: "usa-card__container", children: shouldRenderStructured ? /* @__PURE__ */ jsxs(Fragment, { children: [
992
+ return /* @__PURE__ */ jsx(RootTag, { className: cardClasses, ...props2, children: /* @__PURE__ */ jsx("div", { className: ClassNames("usa-card__container", containerClassName), children: shouldRenderStructured ? /* @__PURE__ */ jsxs(Fragment, { children: [
974
993
  title && /* @__PURE__ */ jsx("div", { className: "usa-card__header", children: /* @__PURE__ */ jsx("h4", { className: "usa-card__heading", children: title }) }),
975
994
  media && /* @__PURE__ */ jsx("div", { className: mediaClasses, children: media }),
976
995
  /* @__PURE__ */ jsxs("div", { className: "usa-card__body", children: [
@@ -986,7 +1005,7 @@ function CardGroup({ cardProps = [], className = "", ...props2 }) {
986
1005
  "usx-card-group",
987
1006
  className
988
1007
  );
989
- return /* @__PURE__ */ jsx("ul", { className: classes, ...props2, children: cardProps.map((card, index) => /* @__PURE__ */ jsx(Card, { ...card, tag: "li" }, index)) });
1008
+ return /* @__PURE__ */ jsx("ul", { className: classes, ...props2, children: cardProps.map((card, index) => /* @__PURE__ */ jsx(Card, { ...card, as: "li" }, index)) });
990
1009
  }
991
1010
  function Hint({
992
1011
  id,
@@ -1103,7 +1122,7 @@ const TextArea = ({
1103
1122
  className: classes,
1104
1123
  placeholder,
1105
1124
  disabled,
1106
- defaultValue,
1125
+ defaultValue: props2.value === void 0 ? defaultValue : void 0,
1107
1126
  ...required ? { required: true } : {},
1108
1127
  "aria-describedby": describedByParts.length ? describedByParts.join(" ") : void 0,
1109
1128
  "aria-invalid": hasError ? "true" : void 0,
@@ -1132,7 +1151,6 @@ function CharacterCount({
1132
1151
  const infoId = `${fieldId}-info`;
1133
1152
  const hintId = hint ? `${fieldId}-hint` : void 0;
1134
1153
  const errorId = error ? `${fieldId}-error` : void 0;
1135
- const successId = !error && success ? `${fieldId}-success` : void 0;
1136
1154
  const outerClasses = ClassNames("usa-character-count", "usx-character-count", className);
1137
1155
  const fieldProps = {
1138
1156
  id: fieldId,
@@ -1147,7 +1165,7 @@ function CharacterCount({
1147
1165
  maxLength: max,
1148
1166
  formGroup: true,
1149
1167
  className: "usa-character-count__field",
1150
- "aria-describedby": [infoId, hintId, errorId, successId].filter(Boolean).join(" "),
1168
+ "aria-describedby": [infoId, hintId, errorId].filter(Boolean).join(" "),
1151
1169
  ...props2
1152
1170
  };
1153
1171
  return /* @__PURE__ */ jsxs("div", { className: outerClasses, children: [
@@ -1175,6 +1193,7 @@ function Checkbox({
1175
1193
  className = "",
1176
1194
  onChange,
1177
1195
  required = false,
1196
+ formGroup = true,
1178
1197
  ...props2
1179
1198
  }) {
1180
1199
  const hasError = !!error;
@@ -1189,7 +1208,7 @@ function Checkbox({
1189
1208
  "usa-checkbox__input",
1190
1209
  { "usa-checkbox__input--tile": tile }
1191
1210
  );
1192
- return /* @__PURE__ */ jsxs(Fragment, { children: [
1211
+ const content = /* @__PURE__ */ jsxs(Fragment, { children: [
1193
1212
  /* @__PURE__ */ jsxs("div", { className: divClasses, ...props2, children: [
1194
1213
  /* @__PURE__ */ jsx(
1195
1214
  "input",
@@ -1199,7 +1218,7 @@ function Checkbox({
1199
1218
  type: "checkbox",
1200
1219
  name,
1201
1220
  value,
1202
- "aria-label": ariaLabel,
1221
+ "aria-label": ariaLabel || void 0,
1203
1222
  defaultChecked: checked,
1204
1223
  disabled,
1205
1224
  required,
@@ -1213,6 +1232,7 @@ function Checkbox({
1213
1232
  ] }),
1214
1233
  hasError ? /* @__PURE__ */ jsx(ErrorMessage, { children: error }) : hasSuccess ? /* @__PURE__ */ jsx("span", { className: "usa-success-message text-success", role: "status", children: success }) : null
1215
1234
  ] });
1235
+ return formGroup ? /* @__PURE__ */ jsx(FormGroup, { error: hasError, children: content }) : content;
1216
1236
  }
1217
1237
  function Legend({
1218
1238
  text,
@@ -1289,7 +1309,8 @@ const CheckboxGroup = ({
1289
1309
  tile,
1290
1310
  small,
1291
1311
  ...opt,
1292
- id
1312
+ id,
1313
+ formGroup: false
1293
1314
  },
1294
1315
  id
1295
1316
  );
@@ -1327,28 +1348,6 @@ function Clickable({ className, children, ...rest }) {
1327
1348
  Clickable.Link = ClickableLink;
1328
1349
  Clickable.ColorChange = ClickableColorChange;
1329
1350
  Clickable.BgColorChange = ClickableBgColorChange;
1330
- const Tooltip = ({
1331
- label,
1332
- position = "top",
1333
- children,
1334
- className = "",
1335
- bodyClassName = "",
1336
- ...props2
1337
- }) => {
1338
- const validPositions = ["top", "bottom", "left", "right"];
1339
- const normalizedPosition = validPositions.includes(position) ? position : "top";
1340
- return /* @__PURE__ */ jsxs("span", { className: ClassNames("usx-tooltip", className), ...props2, children: [
1341
- children,
1342
- /* @__PURE__ */ jsx(
1343
- "span",
1344
- {
1345
- className: ClassNames("usa-tooltip__body", `usa-tooltip__body--${normalizedPosition}`, bodyClassName),
1346
- role: "tooltip",
1347
- children: label
1348
- }
1349
- )
1350
- ] });
1351
- };
1352
1351
  function copyTextToClipboard(text) {
1353
1352
  if (window.navigator.clipboard) {
1354
1353
  return window.navigator.clipboard.writeText(text);
@@ -1369,8 +1368,8 @@ function CopyToClipboard({
1369
1368
  onClick: () => copyTextToClipboard(copyText),
1370
1369
  type: "button",
1371
1370
  children: [
1372
- /* @__PURE__ */ jsx(Icon, { name: "content_copy", size: 0, className: "usx-copy__copy", staticBaseUrl }),
1373
- /* @__PURE__ */ jsx(Icon, { name: "check", size: 0, className: "usx-copy__check", staticBaseUrl }),
1371
+ /* @__PURE__ */ jsx(Icon, { name: "content_copy", className: "usx-copy__copy", staticBaseUrl }),
1372
+ /* @__PURE__ */ jsx(Icon, { name: "check", className: "usx-copy__check", staticBaseUrl }),
1374
1373
  label && /* @__PURE__ */ jsx("span", { className: "margin-left-1", children: label })
1375
1374
  ]
1376
1375
  }
@@ -1389,12 +1388,12 @@ function CopyToClipboard({
1389
1388
  }
1390
1389
  );
1391
1390
  }
1392
- function Code({ lines = [], allowHtml = false, copyText = null, staticBaseUrl, className = "" }) {
1391
+ function Code({ lines = [], allowHtml = false, copyText = null, staticBaseUrl, className = "", contentClassName = "" }) {
1393
1392
  return /* @__PURE__ */ jsxs("div", { className: ClassNames("usx-mockup-code", className), children: [
1394
- /* @__PURE__ */ jsx("div", { className: "usx-mockup-code__content", children: lines.map((line, i) => /* @__PURE__ */ jsx(
1393
+ /* @__PURE__ */ jsx("div", { className: ClassNames("usx-mockup-code__content", contentClassName), children: lines.map((line, i) => /* @__PURE__ */ jsx(
1395
1394
  "pre",
1396
1395
  {
1397
- ...line.prefix != null ? { "data-prefix": line.prefix } : {},
1396
+ "data-prefix": line.prefix != null ? line.prefix : void 0,
1398
1397
  className: line.className || void 0,
1399
1398
  children: allowHtml ? /* @__PURE__ */ jsx("code", { dangerouslySetInnerHTML: { __html: line.code } }) : /* @__PURE__ */ jsx("code", { children: line.code })
1400
1399
  },
@@ -1490,6 +1489,7 @@ function Combobox({
1490
1489
  name,
1491
1490
  disabled,
1492
1491
  required,
1492
+ "aria-describedby": [hintId, errorId].filter(Boolean).join(" ") || void 0,
1493
1493
  onChange: handleChange,
1494
1494
  ...props2,
1495
1495
  children: options.map((opt) => /* @__PURE__ */ jsx("option", { value: opt.value, children: opt.label }, opt.value))
@@ -1500,7 +1500,7 @@ function Combobox({
1500
1500
  ] });
1501
1501
  return formGroup ? /* @__PURE__ */ jsx(FormGroup, { error: !!error, children: content }) : content;
1502
1502
  }
1503
- const props = { "element": { "type": "select", "description": "Root HTML element. Use a heading or accessible label for named sections and navigation; list roots require list-item children.", "options": ["div", "section", "article", "aside", "nav", "ul", "ol", "li"], "default": "div" }, "gridContainer": { "type": "select", "description": "Opt-in centered USWDS page-width container with side padding. Default uses the USX themed grid-container; named sizes use USWDS widths. Usually wrap a gridRow inside this container rather than combining them.", "options": ["default", "card", "card-lg", "mobile", "mobile-lg", "tablet", "tablet-lg", "desktop", "desktop-lg", "widescreen"] }, "gridRow": { "type": "boolean", "description": "Use a wrapping USWDS grid row. Nest Containers with column settings as direct children. Omitted leaves the container unstyled.", "default": false }, "display": { "type": "select", "description": "Display mode. Choose flex or inline-flex to enable direction, wrap, alignment, and gap. Flow-root contains floated children; none hides the container and its descendants.", "options": ["block", "flex", "inline", "inline-block", "inline-flex", "none", "flow-root"] }, "direction": { "type": "select", "description": "Direction of flex children. Requires display flex or inline-flex (or gridRow). Reverse directions change visual order only, not reading or keyboard order.", "options": ["row", "column", "row-reverse", "column-reverse"] }, "wrap": { "type": "select", "description": "Whether flex children wrap onto new lines. Set wrap for a flexible toolbar; omitted uses normal CSS behavior.", "options": ["wrap", "nowrap", "wrap-reverse"] }, "justify": { "type": "select", "description": "Distribute children along the main flex axis.", "options": ["start", "end", "center", "space-between", "space-around", "space-evenly"] }, "align": { "type": "select", "description": "Align children across the flex axis.", "options": ["start", "end", "center", "stretch", "baseline"] }, "alignSelf": { "type": "select", "description": "Override this container’s alignment as a child of a flex parent. Auto restores parent alignment.", "options": ["auto", "start", "end", "center", "stretch", "baseline"] }, "flex": { "type": "select", "description": "Size this container as a flex child: auto uses its content size, fill shares available space, none keeps its size. Use column instead when this is a USWDS grid column.", "options": ["auto", "fill", "none"] }, "gap": { "type": "select", "description": "Space between flex children using USWDS spacing tokens (1 = 8px, 05 = 4px). Use gutters instead on gridRow: CSS gap adds to percentage column widths.", "options": ["0", "2px", "05", "1", "2", "3", "4", "5", "6"] }, "column": { "type": "select", "description": "Width of this container inside a gridRow: 1–12 columns, auto for content width, or fill for equal shares. Set 12 at the base to stack on small screens, then override at larger breakpoints.", "options": ["auto", "fill", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"] }, "offset": { "type": "select", "description": "Offset this grid column by 1–12 columns. Use none to reset an earlier offset.", "options": ["none", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"] }, "gutters": { "type": "select", "description": "Horizontal USWDS grid gutters; requires gridRow. Use 2 with a desktop override of 4 for standard responsive spacing; 0 removes gutters. Rows use negative margins, so nest them in a gridContainer or another padded parent.", "options": ["sm", "md", "lg", "0", "2px", "05", "1", "2", "3", "4", "5", "6"] }, "float": { "type": "select", "description": "Float this container so surrounding content wraps around it. Float has no effect on flex children; use a flow-root parent to contain floats.", "options": ["none", "left", "right"] }, "responsive": { "type": "object", "description": "Mobile-first overrides keyed by mobileLg, tablet, and desktop. Omitted fields keep the smaller-screen setting; use explicit values (none, 0, row, etc.) to reset. Breakpoints match precompiled USWDS and do not follow USX page-layout theme breakpoints.", "properties": { "mobileLg": { "type": "object", "description": "Layout overrides at 30em / 480px and wider (pixel equivalent assumes 16px browser default).", "component": "container", "omit": ["element", "gridContainer", "gridRow", "responsive", "children", "content", "className", "id", "role", "ariaLabel", "ariaLabelledby"] }, "tablet": { "type": "object", "description": "Layout overrides at 40em / 640px and wider (pixel equivalent assumes 16px browser default).", "component": "container", "omit": ["element", "gridContainer", "gridRow", "responsive", "children", "content", "className", "id", "role", "ariaLabel", "ariaLabelledby"] }, "desktop": { "type": "object", "description": "Layout overrides at 64em / 1024px and wider (pixel equivalent assumes 16px browser default).", "component": "container", "omit": ["element", "gridContainer", "gridRow", "responsive", "children", "content", "className", "id", "role", "ariaLabel", "ariaLabelledby"] } } }, "children": { "type": "slot", "description": "Grouped content rendered directly, with no child wrappers or reordering. Takes precedence over content unless null or undefined." }, "content": { "type": "slot", "description": "Fallback grouped content when children is null or undefined." }, "className": { "type": "string", "description": "Additional CSS classes for spacing, decoration, or layouts beyond these controls." }, "id": { "type": "string", "description": "HTML identifier for links and accessible references." }, "role": { "type": "string", "description": "Optional ARIA role; prefer an appropriate semantic element." }, "ariaLabel": { "type": "string", "description": "Accessible name when a visible label is not available." }, "ariaLabelledby": { "type": "string", "description": "ID of the visible heading or label that names this container." } };
1503
+ const props = { "as": { "type": "select", "description": "Root HTML element. Use a heading or accessible label for named sections and navigation; list roots require list-item children.", "options": ["div", "section", "article", "aside", "nav", "ul", "ol", "li"], "default": "div" }, "gridContainer": { "type": "select", "description": "Opt-in centered USWDS page-width container with side padding. Default uses the USX themed grid-container; named sizes use USWDS widths. Usually wrap a gridRow inside this container rather than combining them.", "options": ["default", "card", "card-lg", "mobile", "mobile-lg", "tablet", "tablet-lg", "desktop", "desktop-lg", "widescreen"] }, "gridRow": { "type": "boolean", "description": "Use a wrapping USWDS grid row. Nest Containers with column settings as direct children. Omitted leaves the container unstyled.", "default": false }, "display": { "type": "select", "description": "Display mode. Choose flex or inline-flex to enable direction, wrap, alignment, and gap. Flow-root contains floated children; none hides the container and its descendants.", "options": ["block", "flex", "inline", "inline-block", "inline-flex", "none", "flow-root"] }, "direction": { "type": "select", "description": "Direction of flex children. Requires display flex or inline-flex (or gridRow). Reverse directions change visual order only, not reading or keyboard order.", "options": ["row", "column", "row-reverse", "column-reverse"] }, "wrap": { "type": "select", "description": "Whether flex children wrap onto new lines. Set wrap for a flexible toolbar; omitted uses normal CSS behavior.", "options": ["wrap", "nowrap", "wrap-reverse"] }, "justify": { "type": "select", "description": "Distribute children along the main flex axis.", "options": ["start", "end", "center", "space-between", "space-around", "space-evenly"] }, "align": { "type": "select", "description": "Align children across the flex axis.", "options": ["start", "end", "center", "stretch", "baseline"] }, "alignSelf": { "type": "select", "description": "Override this container’s alignment as a child of a flex parent. Auto restores parent alignment.", "options": ["auto", "start", "end", "center", "stretch", "baseline"] }, "flex": { "type": "select", "description": "Size this container as a flex child: auto uses its content size, fill shares available space, none keeps its size. Use column instead when this is a USWDS grid column.", "options": ["auto", "fill", "none"] }, "gap": { "type": "select", "description": "Space between flex children using USWDS spacing tokens (1 = 8px, 05 = 4px). Use gutters instead on gridRow: CSS gap adds to percentage column widths.", "options": ["0", "2px", "05", "1", "2", "3", "4", "5", "6"] }, "column": { "type": "select", "description": "Width of this container inside a gridRow: 1–12 columns, auto for content width, or fill for equal shares. Set 12 at the base to stack on small screens, then override at larger breakpoints.", "options": ["auto", "fill", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"] }, "offset": { "type": "select", "description": "Offset this grid column by 1–12 columns. Use none to reset an earlier offset.", "options": ["none", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"] }, "gutters": { "type": "select", "description": "Horizontal USWDS grid gutters; requires gridRow. Use 2 with a desktop override of 4 for standard responsive spacing; 0 removes gutters. Rows use negative margins, so nest them in a gridContainer or another padded parent.", "options": ["sm", "md", "lg", "0", "2px", "05", "1", "2", "3", "4", "5", "6"] }, "float": { "type": "select", "description": "Float this container so surrounding content wraps around it. Float has no effect on flex children; use a flow-root parent to contain floats.", "options": ["none", "left", "right"] }, "responsive": { "type": "object", "description": "Mobile-first overrides keyed by mobileLg, tablet, and desktop. Omitted fields keep the smaller-screen setting; use explicit values (none, 0, row, etc.) to reset. Breakpoints match precompiled USWDS and do not follow USX page-layout theme breakpoints.", "properties": { "mobileLg": { "type": "object", "description": "Layout overrides at 30em / 480px and wider (pixel equivalent assumes 16px browser default).", "component": "container", "omit": ["as", "gridContainer", "gridRow", "responsive", "children", "content", "className", "id", "role", "ariaLabel", "ariaLabelledby"] }, "tablet": { "type": "object", "description": "Layout overrides at 40em / 640px and wider (pixel equivalent assumes 16px browser default).", "component": "container", "omit": ["as", "gridContainer", "gridRow", "responsive", "children", "content", "className", "id", "role", "ariaLabel", "ariaLabelledby"] }, "desktop": { "type": "object", "description": "Layout overrides at 64em / 1024px and wider (pixel equivalent assumes 16px browser default).", "component": "container", "omit": ["as", "gridContainer", "gridRow", "responsive", "children", "content", "className", "id", "role", "ariaLabel", "ariaLabelledby"] } } }, "children": { "type": "slot", "description": "Grouped content rendered directly, with no child wrappers or reordering. Takes precedence over content unless null or undefined." }, "content": { "type": "slot", "description": "Fallback grouped content when children is null or undefined." }, "className": { "type": "string", "description": "Additional CSS classes for spacing, decoration, or layouts beyond these controls." }, "id": { "type": "string", "description": "HTML identifier for links and accessible references." }, "role": { "type": "string", "description": "Optional ARIA role; prefer an appropriate semantic element." }, "ariaLabel": { "type": "string", "description": "Accessible name when a visible label is not available." }, "ariaLabelledby": { "type": "string", "description": "ID of the visible heading or label that names this container." } };
1504
1504
  const config = {
1505
1505
  props
1506
1506
  };
@@ -1533,7 +1533,7 @@ function layoutClasses(layout, prefix = "") {
1533
1533
  });
1534
1534
  }
1535
1535
  function Container({
1536
- element = "div",
1536
+ as = "div",
1537
1537
  gridContainer,
1538
1538
  gridRow = false,
1539
1539
  display,
@@ -1557,7 +1557,7 @@ function Container({
1557
1557
  ariaLabel,
1558
1558
  ariaLabelledby
1559
1559
  }) {
1560
- const Element = config.props.element.options.includes(element) ? element : "div";
1560
+ const Element = config.props.as.options.includes(as) ? as : "div";
1561
1561
  const classes = ClassNames(
1562
1562
  "usx-container",
1563
1563
  gridContainer && config.props.gridContainer.options.includes(gridContainer) ? gridContainer === "default" ? "grid-container" : `grid-container-${gridContainer}` : null,
@@ -1718,12 +1718,140 @@ function DateRangePicker({
1718
1718
  }
1719
1719
  );
1720
1720
  }
1721
- function Eyebrow({ children = null, className = "", ...props2 }) {
1722
- const classes = ClassNames("usx-eyebrow", className);
1723
- return /* @__PURE__ */ jsx("span", { className: classes, ...props2, children });
1721
+ function Summary({
1722
+ label = "Details",
1723
+ children,
1724
+ ariaLabel,
1725
+ className = "",
1726
+ textClassName = "",
1727
+ markerColor = void 0,
1728
+ underlineColor = void 0,
1729
+ noUnderline = false,
1730
+ noMarker = false,
1731
+ unstyled = false
1732
+ }) {
1733
+ if (unstyled) {
1734
+ return /* @__PURE__ */ jsx("summary", { className: className || void 0, "aria-label": ariaLabel, children: children ?? label });
1735
+ }
1736
+ const summaryClassNames = ClassNames(
1737
+ "usx-summary",
1738
+ { [`marker-${markerColor}`]: markerColor && !noMarker },
1739
+ { "usx-summary--no-marker": noMarker },
1740
+ { "usx-summary--no-underline": noUnderline },
1741
+ className
1742
+ );
1743
+ const summaryTextClassNames = ClassNames(
1744
+ "usx-summary-text",
1745
+ { [`underline-${underlineColor}`]: !noUnderline && underlineColor },
1746
+ textClassName
1747
+ );
1748
+ return /* @__PURE__ */ jsx("summary", { className: summaryClassNames, "aria-label": ariaLabel, children: /* @__PURE__ */ jsx("span", { className: summaryTextClassNames, children: children ?? (label || "Details") }) });
1749
+ }
1750
+ function Details({
1751
+ summaryProps = {},
1752
+ text = "",
1753
+ children = null,
1754
+ open = false,
1755
+ name,
1756
+ contentBorderColor = void 0,
1757
+ noContentBorder = false,
1758
+ className = "",
1759
+ contentClassName = ""
1760
+ }) {
1761
+ const detailsClassName = ClassNames(
1762
+ "usx-details",
1763
+ { "usx-details--borderless": noContentBorder },
1764
+ className
1765
+ );
1766
+ const compositeContentClassName = ClassNames(
1767
+ "usx-details__content",
1768
+ { [`border-${contentBorderColor}`]: !noContentBorder && contentBorderColor },
1769
+ contentClassName
1770
+ );
1771
+ return /* @__PURE__ */ jsxs("details", { className: detailsClassName, open: open || void 0, name, children: [
1772
+ /* @__PURE__ */ jsx(Summary, { ...summaryProps }),
1773
+ /* @__PURE__ */ jsx("div", { className: compositeContentClassName, children: children ?? /* @__PURE__ */ jsx("p", { className: "usx-details__text", children: text }) })
1774
+ ] });
1775
+ }
1776
+ function Drawer({
1777
+ id,
1778
+ label,
1779
+ heading,
1780
+ children,
1781
+ trigger,
1782
+ triggerAriaLabel,
1783
+ side = "inline-end",
1784
+ size = "default",
1785
+ description,
1786
+ footer,
1787
+ rounded = false,
1788
+ actionRequired = false,
1789
+ closeLabel = "Close",
1790
+ focusHeading = true,
1791
+ disabled = false,
1792
+ className,
1793
+ triggerClassName,
1794
+ panelClassName,
1795
+ ...props2
1796
+ }) {
1797
+ const opener = { commandfor: id, command: "show-modal" };
1798
+ const closer = { commandfor: id, command: "close" };
1799
+ const dismissal = {
1800
+ closedby: actionRequired ? "none" : void 0
1801
+ };
1802
+ return /* @__PURE__ */ jsxs("div", { ...props2, className: ClassNames("usx-drawer", className), children: [
1803
+ /* @__PURE__ */ jsx(
1804
+ "button",
1805
+ {
1806
+ type: "button",
1807
+ className: triggerClassName || void 0,
1808
+ "aria-haspopup": "dialog",
1809
+ "aria-controls": id,
1810
+ "aria-label": triggerAriaLabel,
1811
+ disabled,
1812
+ ...opener,
1813
+ children: trigger ?? label
1814
+ }
1815
+ ),
1816
+ /* @__PURE__ */ jsxs(
1817
+ "dialog",
1818
+ {
1819
+ id,
1820
+ className: ClassNames(
1821
+ "usx-drawer__panel",
1822
+ { "usx-drawer__panel--rounded": rounded },
1823
+ panelClassName
1824
+ ),
1825
+ "data-side": side,
1826
+ "data-size": size,
1827
+ ...dismissal,
1828
+ "aria-labelledby": `${id}-heading`,
1829
+ "aria-describedby": description ? `${id}-description` : void 0,
1830
+ children: [
1831
+ !actionRequired && /* @__PURE__ */ jsx("button", { type: "button", className: "usx-drawer__close", ...closer, children: /* @__PURE__ */ jsx(Icon, { name: "close", size: 3, alt: closeLabel }) }),
1832
+ /* @__PURE__ */ jsxs("header", { className: "usx-drawer__header", children: [
1833
+ /* @__PURE__ */ jsx(
1834
+ "h2",
1835
+ {
1836
+ id: `${id}-heading`,
1837
+ className: "usx-drawer__heading",
1838
+ tabIndex: focusHeading ? -1 : void 0,
1839
+ autoFocus: focusHeading,
1840
+ children: heading
1841
+ }
1842
+ ),
1843
+ description && /* @__PURE__ */ jsx("p", { id: `${id}-description`, className: "usx-drawer__description", children: description })
1844
+ ] }),
1845
+ /* @__PURE__ */ jsx("div", { className: "usx-drawer__body", children }),
1846
+ footer && /* @__PURE__ */ jsx("footer", { className: "usx-drawer__footer", children: footer })
1847
+ ]
1848
+ }
1849
+ )
1850
+ ] });
1724
1851
  }
1725
1852
  function Link({
1726
1853
  href = "javascript:void(0);",
1854
+ text,
1727
1855
  children,
1728
1856
  visited = false,
1729
1857
  external = false,
@@ -1748,10 +1876,154 @@ function Link({
1748
1876
  target: newTab || external ? "_blank" : void 0,
1749
1877
  rel: newTab || external ? "noreferrer noopener" : void 0,
1750
1878
  ...props2,
1751
- children
1879
+ children: children ?? text
1880
+ }
1881
+ );
1882
+ }
1883
+ function Page({
1884
+ id = void 0,
1885
+ title = "Page title",
1886
+ titleId = void 0,
1887
+ eyebrow = null,
1888
+ as: Element = "main",
1889
+ children = null,
1890
+ content = null,
1891
+ tabIndex = void 0,
1892
+ ariaLabelledby = void 0,
1893
+ className = "",
1894
+ ...props2
1895
+ }) {
1896
+ const classes = ClassNames("usx-page", className);
1897
+ const pageContent = children || content;
1898
+ const labelledBy = ariaLabelledby || titleId || void 0;
1899
+ return /* @__PURE__ */ jsxs(
1900
+ Element,
1901
+ {
1902
+ id,
1903
+ className: classes,
1904
+ tabIndex,
1905
+ "aria-labelledby": labelledBy,
1906
+ ...props2,
1907
+ children: [
1908
+ /* @__PURE__ */ jsxs("h1", { id: titleId, className: "usx-page__title", children: [
1909
+ eyebrow ? /* @__PURE__ */ jsx("span", { className: "usx-eyebrow", children: eyebrow }) : null,
1910
+ title
1911
+ ] }),
1912
+ /* @__PURE__ */ jsx("div", { className: "usx-page__content", children: pageContent })
1913
+ ]
1752
1914
  }
1753
1915
  );
1754
1916
  }
1917
+ const validElements = ["div", "article", "section", "main"];
1918
+ const Prose = ({
1919
+ as = "div",
1920
+ content,
1921
+ children,
1922
+ className = "",
1923
+ ...props2
1924
+ }) => {
1925
+ const Element = validElements.includes(as) ? as : "div";
1926
+ return /* @__PURE__ */ jsx(
1927
+ Element,
1928
+ {
1929
+ className: `usa-prose usx-prose ${className}`,
1930
+ ...props2,
1931
+ ...content ? { dangerouslySetInnerHTML: { __html: content } } : {},
1932
+ children: children ? children : null
1933
+ }
1934
+ );
1935
+ };
1936
+ const DEFAULT_TITLE = "We couldn’t complete your request";
1937
+ const DEFAULT_DESCRIPTION = "We’re sorry. Please try again later.";
1938
+ function ErrorPage({
1939
+ id = "main-content",
1940
+ title = DEFAULT_TITLE,
1941
+ description = DEFAULT_DESCRIPTION,
1942
+ guidance = "",
1943
+ actions = [],
1944
+ supportHeading = "",
1945
+ supportText = "",
1946
+ supportLinks = [],
1947
+ cats = false,
1948
+ catAlt = "",
1949
+ errorCode,
1950
+ errorCodeLabel = "Error code",
1951
+ referenceId = "",
1952
+ referenceLabel = "Reference ID",
1953
+ detailsProps = null,
1954
+ children = null,
1955
+ className = ""
1956
+ }) {
1957
+ const pageId = id || "main-content";
1958
+ const pageTitle = title || DEFAULT_TITLE;
1959
+ const pageDescription = description || DEFAULT_DESCRIPTION;
1960
+ const titleId = `${pageId}-title`;
1961
+ const supportHeadingId = `${pageId}-support-heading`;
1962
+ const pageActions = Array.isArray(actions) ? actions : [];
1963
+ const pageSupportLinks = Array.isArray(supportLinks) ? supportLinks : [];
1964
+ const hasSupport = Boolean(supportHeading || supportText || pageSupportLinks.length);
1965
+ const hasErrorCode = errorCode !== void 0 && errorCode !== null && errorCode !== "";
1966
+ const hasMeta = hasErrorCode || Boolean(referenceId);
1967
+ const catImageAlt = catAlt || `Cat illustration for HTTP error ${errorCode}`;
1968
+ const classes = ClassNames("usx-error-page", className);
1969
+ return /* @__PURE__ */ jsxs(Page, { id: pageId, title: pageTitle, titleId, className: classes, children: [
1970
+ /* @__PURE__ */ jsxs(Prose, { className: "usx-error-page__body", children: [
1971
+ /* @__PURE__ */ jsx("p", { className: "usa-intro usx-error-page__description margin-bottom-4", children: pageDescription }),
1972
+ cats && Boolean(errorCode) && /* @__PURE__ */ jsx(Image, { src: `https://http.cat/${errorCode}`, alt: catImageAlt }),
1973
+ (guidance || children) && /* @__PURE__ */ jsxs("div", { className: "usx-error-page__content", children: [
1974
+ guidance && /* @__PURE__ */ jsx("p", { children: guidance }),
1975
+ children
1976
+ ] })
1977
+ ] }),
1978
+ pageActions.length > 0 && /* @__PURE__ */ jsx(ButtonGroup, { buttonProps: pageActions, className: "usx-error-page__actions" }),
1979
+ /* @__PURE__ */ jsxs(Prose, { className: "usx-error-page__body", children: [
1980
+ hasSupport && /* @__PURE__ */ jsxs(
1981
+ "section",
1982
+ {
1983
+ className: "usx-error-page__support",
1984
+ ...supportHeading ? { "aria-labelledby": supportHeadingId } : {},
1985
+ children: [
1986
+ supportHeading && /* @__PURE__ */ jsx("h2", { id: supportHeadingId, className: "usx-error-page__support-heading", children: supportHeading }),
1987
+ supportText && /* @__PURE__ */ jsx("p", { children: supportText }),
1988
+ pageSupportLinks.length > 0 && /* @__PURE__ */ jsx("ul", { className: "usx-error-page__support-links", children: pageSupportLinks.map(({ label, ...linkProps }, index) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Link, { ...linkProps, children: label }) }, index)) })
1989
+ ]
1990
+ }
1991
+ ),
1992
+ hasMeta && /* @__PURE__ */ jsxs("div", { className: "usx-error-page__meta text-base font-body-2xs", children: [
1993
+ hasErrorCode && /* @__PURE__ */ jsxs("p", { children: [
1994
+ /* @__PURE__ */ jsxs("strong", { children: [
1995
+ errorCodeLabel || "Error code",
1996
+ ":"
1997
+ ] }),
1998
+ " ",
1999
+ /* @__PURE__ */ jsx("span", { className: "usx-error-page__meta-value", children: errorCode })
2000
+ ] }),
2001
+ referenceId && /* @__PURE__ */ jsxs("p", { children: [
2002
+ /* @__PURE__ */ jsxs("strong", { children: [
2003
+ referenceLabel || "Reference ID",
2004
+ ":"
2005
+ ] }),
2006
+ " ",
2007
+ /* @__PURE__ */ jsx("span", { className: "usx-error-page__meta-value", children: referenceId })
2008
+ ] })
2009
+ ] }),
2010
+ detailsProps && /* @__PURE__ */ jsx(
2011
+ Details,
2012
+ {
2013
+ ...detailsProps,
2014
+ className: ClassNames(
2015
+ "usx-error-page__details font-family-mono font-mono-sm",
2016
+ detailsProps.className
2017
+ )
2018
+ }
2019
+ )
2020
+ ] })
2021
+ ] });
2022
+ }
2023
+ function Eyebrow({ children = null, className = "", ...props2 }) {
2024
+ const classes = ClassNames("usx-eyebrow", className);
2025
+ return /* @__PURE__ */ jsx("span", { className: classes, ...props2, children });
2026
+ }
1755
2027
  function formatFileSize(bytes) {
1756
2028
  if (bytes < 1024) return `${bytes} B`;
1757
2029
  const kb = bytes / 1024;
@@ -1882,9 +2154,12 @@ function FileInput({
1882
2154
  commonLabel,
1883
2155
  commonHint,
1884
2156
  commonError,
1885
- /* @__PURE__ */ jsx("div", { className: "usx-file-input__add-only", children: /* @__PURE__ */ jsx(
2157
+ /* @__PURE__ */ jsx("div", { className: "usx-file-input__add-only", "data-usx-file-list-hint": typeof fileListHint === "string" && fileListHint ? fileListHint : "Selected files", children: /* @__PURE__ */ jsx(
1886
2158
  "input",
1887
2159
  {
2160
+ ref: (node) => {
2161
+ if (node) node.usxReactManaged = true;
2162
+ },
1888
2163
  className: ClassNames("usa-file-input", "usx-file-input", className),
1889
2164
  id,
1890
2165
  type: "file",
@@ -2132,12 +2407,9 @@ function Search({
2132
2407
  onSubmit(query);
2133
2408
  }
2134
2409
  };
2135
- const iconClasses = ClassNames(
2136
- "usa-search__submit-icon",
2137
- {
2138
- "display-inline-block": iconOnly
2139
- }
2140
- );
2410
+ const iconClasses = ClassNames("usa-search__submit-icon", {
2411
+ "display-inline-block": iconOnly
2412
+ });
2141
2413
  const formClasses = ClassNames(
2142
2414
  "usa-search",
2143
2415
  {
@@ -2162,7 +2434,7 @@ function Search({
2162
2434
  id,
2163
2435
  label,
2164
2436
  screenReaderOnlyLabel: true,
2165
- placeholder,
2437
+ placeholder: placeholder ?? "",
2166
2438
  defaultValue,
2167
2439
  type: "search",
2168
2440
  name: searchKey,
@@ -2171,7 +2443,7 @@ function Search({
2171
2443
  ),
2172
2444
  /* @__PURE__ */ jsxs(Button, { variant: buttonVariant, type: "submit", children: [
2173
2445
  !iconOnly && /* @__PURE__ */ jsx("span", { className: "usa-search__submit-text", children: label }),
2174
- /* @__PURE__ */ jsx(Icon, { name: icon, className: iconClasses, "aria-hidden": "true", alt: label })
2446
+ /* @__PURE__ */ jsx(Icon, { name: icon, className: iconClasses, alt: iconOnly ? label : void 0 })
2175
2447
  ] })
2176
2448
  ]
2177
2449
  }
@@ -2193,7 +2465,7 @@ function PrimaryNav({
2193
2465
  }) {
2194
2466
  const navClasses = ClassNames("usa-nav__primary", "usa-accordion");
2195
2467
  return /* @__PURE__ */ jsxs(Fragment, { children: [
2196
- /* @__PURE__ */ jsx("button", { type: "button", className: "usa-nav__close", children: /* @__PURE__ */ jsx(Icon, { name: "close" }) }),
2468
+ /* @__PURE__ */ jsx("button", { type: "button", className: "usa-nav__close", children: /* @__PURE__ */ jsx(Icon, { name: "close", size: 3 }) }),
2197
2469
  /* @__PURE__ */ jsx("ul", { className: navClasses, children: navSections.map((section, index) => /* @__PURE__ */ jsx("li", { className: "usa-nav__primary-item", children: section.href ? /* @__PURE__ */ jsxs(
2198
2470
  "a",
2199
2471
  {
@@ -2301,7 +2573,7 @@ function Header({
2301
2573
  ] });
2302
2574
  if (extended) {
2303
2575
  return /* @__PURE__ */ jsxs(Fragment, { children: [
2304
- /* @__PURE__ */ jsx("header", { className: headerClasses, ...props2, children: navbar }),
2576
+ /* @__PURE__ */ jsx("header", { id, className: headerClasses, ...props2, children: navbar }),
2305
2577
  /* @__PURE__ */ jsx("nav", { "aria-label": "Primary navigation", className: navClasses, children: /* @__PURE__ */ jsxs("div", { className: "usa-nav__inner", children: [
2306
2578
  /* @__PURE__ */ jsx(
2307
2579
  PrimaryNav,
@@ -2333,7 +2605,7 @@ function Header({
2333
2605
  ] }) })
2334
2606
  ] });
2335
2607
  }
2336
- return /* @__PURE__ */ jsx("header", { className: headerClasses, ...props2, children: /* @__PURE__ */ jsxs("div", { className: "usa-nav-container", children: [
2608
+ return /* @__PURE__ */ jsx("header", { id, className: headerClasses, ...props2, children: /* @__PURE__ */ jsxs("div", { className: "usa-nav-container", children: [
2337
2609
  navbar,
2338
2610
  /* @__PURE__ */ jsx("nav", { "aria-label": "Primary navigation", className: navClasses, children: /* @__PURE__ */ jsx(
2339
2611
  PrimaryNav,
@@ -2361,7 +2633,7 @@ function Hero({
2361
2633
  contentPosition = "left",
2362
2634
  boxed = true,
2363
2635
  calloutMaxWidth,
2364
- headingLevel = "h1",
2636
+ headingAs = "h1",
2365
2637
  secondaryContent = null,
2366
2638
  overlay = true,
2367
2639
  overlayOpacity,
@@ -2370,9 +2642,9 @@ function Hero({
2370
2642
  style,
2371
2643
  ...props2
2372
2644
  }) {
2373
- const Heading = headingLevel;
2645
+ const Heading = headingAs;
2374
2646
  const secondaryHeadings = { h1: "h2", h2: "h3", h3: "h4", h4: "h5", h5: "h6" };
2375
- const SecondaryHeading = secondaryHeadings[headingLevel];
2647
+ const SecondaryHeading = secondaryHeadings[headingAs];
2376
2648
  const classes = ClassNames(
2377
2649
  "usx-hero",
2378
2650
  overlay && "usx-hero--has-overlay",
@@ -2405,7 +2677,7 @@ function Hero({
2405
2677
  ] })
2406
2678
  ] }) });
2407
2679
  }
2408
- function renderContent$1(content) {
2680
+ function renderContent(content) {
2409
2681
  if (typeof content === "string") {
2410
2682
  return /* @__PURE__ */ jsx("div", { dangerouslySetInnerHTML: { __html: content } });
2411
2683
  }
@@ -2431,7 +2703,7 @@ function IconList({ items = [], primary = false, size = null, className = "", ..
2431
2703
  ) }),
2432
2704
  /* @__PURE__ */ jsxs("div", { className: ClassNames("usa-icon-list__content", item.contentClassName), children: [
2433
2705
  item.title ? /* @__PURE__ */ jsx("h4", { className: "usa-icon-list__title", children: item.title }) : null,
2434
- renderContent$1(item.content)
2706
+ renderContent(item.content)
2435
2707
  ] })
2436
2708
  ] }, index)) });
2437
2709
  }
@@ -2527,7 +2799,7 @@ function Identifier({
2527
2799
  className: ClassNames(
2528
2800
  "usa-identifier__logos",
2529
2801
  "usx-avatar-group",
2530
- overlapAvatars && "usa-avatar-group--overlap"
2802
+ overlapAvatars && "usx-avatar-group--overlap"
2531
2803
  ),
2532
2804
  children: avatarProps.map((avatar, index) => /* @__PURE__ */ createElement(
2533
2805
  Avatar,
@@ -2558,7 +2830,7 @@ function InPageNav({
2558
2830
  id = "in-page-nav",
2559
2831
  headingElements = "h2 h3",
2560
2832
  mainContentSelector = null,
2561
- titleHeadingLevel = "h4",
2833
+ titleAs = "h4",
2562
2834
  titleText = "On this page",
2563
2835
  scrollOffset = 0,
2564
2836
  rootMargin = "0px 0px 0px 0px",
@@ -2580,7 +2852,7 @@ function InPageNav({
2580
2852
  className: ClassNames("usa-in-page-nav", "usx-in-page-nav", className),
2581
2853
  "data-heading-elements": headingElements,
2582
2854
  "data-main-content-selector": resolvedSelector,
2583
- "data-title-heading-level": titleHeadingLevel,
2855
+ "data-title-heading-level": titleAs,
2584
2856
  "data-title-text": titleText,
2585
2857
  "data-scroll-offset": scrollOffset,
2586
2858
  "data-root-margin": rootMargin,
@@ -2782,6 +3054,7 @@ function Layout({
2782
3054
  expandLeftSidebar,
2783
3055
  expandRightSidebar,
2784
3056
  expandable = false,
3057
+ onToggleExpanded,
2785
3058
  className = "",
2786
3059
  ...props2
2787
3060
  }) {
@@ -2791,6 +3064,11 @@ function Layout({
2791
3064
  { "usx-expanded": expandable && expanded },
2792
3065
  className
2793
3066
  );
3067
+ const toggleExpanded = (event) => {
3068
+ event.preventDefault();
3069
+ setExpanded(!expanded);
3070
+ onToggleExpanded == null ? void 0 : onToggleExpanded(!expanded);
3071
+ };
2794
3072
  const expandButton = expandable ? /* @__PURE__ */ jsxs(
2795
3073
  Button,
2796
3074
  {
@@ -2799,8 +3077,9 @@ function Layout({
2799
3077
  type: "button",
2800
3078
  "aria-label": expanded ? "Contract" : "Expand",
2801
3079
  "aria-expanded": expanded,
3080
+ "data-usx-layout-toggle": true,
2802
3081
  className: "usx-layout__expand-button",
2803
- onClick: () => setExpanded((value) => !value),
3082
+ onClick: toggleExpanded,
2804
3083
  children: [
2805
3084
  /* @__PURE__ */ jsx(Icon, { source: "usx", name: "expand", size: 3, className: "usx-layout__expand-icon usx-layout__expand-icon--expand" }),
2806
3085
  /* @__PURE__ */ jsx(Icon, { source: "usx", name: "contract", size: 3, className: "usx-layout__expand-icon usx-layout__expand-icon--contract" })
@@ -2894,6 +3173,7 @@ function Select({
2894
3173
  name,
2895
3174
  className: combinedSelectClasses,
2896
3175
  disabled,
3176
+ required: required || void 0,
2897
3177
  defaultValue,
2898
3178
  "aria-describedby": describedByParts.length ? describedByParts.join(" ") : void 0,
2899
3179
  "aria-invalid": hasError ? true : void 0,
@@ -3030,8 +3310,8 @@ function MemorableDate({
3030
3310
  function MiscBanner({
3031
3311
  children = null,
3032
3312
  className = "",
3033
- tone = "beta",
3034
- badgeText = "beta",
3313
+ color = "beta",
3314
+ badgeText,
3035
3315
  message = "Welcome to the beta website!",
3036
3316
  casualLinkText,
3037
3317
  casualLinkHref,
@@ -3040,11 +3320,15 @@ function MiscBanner({
3040
3320
  importantLinkHref,
3041
3321
  importantLinkIcon = "undo",
3042
3322
  showReturnLink = true,
3323
+ id,
3043
3324
  ...props2
3044
3325
  }) {
3045
- const menuId = useId();
3046
- const toggleId = useId();
3047
- const classes = ClassNames("usx-misc-banner", `bg-${tone}`, className);
3326
+ const instanceId = useId();
3327
+ const baseId = id || instanceId;
3328
+ const bannerColor = color || "beta";
3329
+ const toggleId = `${baseId}-dropdown-toggle`;
3330
+ const menuId = `${baseId}-dropdown`;
3331
+ const classes = ClassNames("usx-misc-banner", `bg-${bannerColor}`, className);
3048
3332
  const mobileLinks = [];
3049
3333
  const hasLearnMoreLink = showLearnMore && Boolean(casualLinkText);
3050
3334
  const hasReturnLink = showReturnLink && Boolean(importantLinkText);
@@ -3061,7 +3345,7 @@ function MiscBanner({
3061
3345
  });
3062
3346
  }
3063
3347
  const content = children || /* @__PURE__ */ jsxs(Fragment, { children: [
3064
- /* @__PURE__ */ jsx("strong", { className: `usx-misc-banner__badge text-${tone}`, children: badgeText }),
3348
+ badgeText ? /* @__PURE__ */ jsx("strong", { className: `usx-misc-banner__badge text-${bannerColor}`, children: badgeText }) : null,
3065
3349
  /* @__PURE__ */ jsxs("p", { className: "usx-misc-banner__text", children: [
3066
3350
  message,
3067
3351
  hasLearnMoreLink ? /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -3070,7 +3354,7 @@ function MiscBanner({
3070
3354
  ] }) : null
3071
3355
  ] }),
3072
3356
  hasReturnLink ? /* @__PURE__ */ jsx("span", { className: "usx-misc-banner__return-text", children: /* @__PURE__ */ jsxs("a", { className: "usa-link usx-misc-banner__link", href: importantLinkHref, children: [
3073
- /* @__PURE__ */ jsx(Icon, { name: importantLinkIcon, size: 1, className: "usx-icon--size-1" }),
3357
+ /* @__PURE__ */ jsx(Icon, { name: importantLinkIcon, size: 1 }),
3074
3358
  " ",
3075
3359
  importantLinkText
3076
3360
  ] }) }) : null,
@@ -3090,33 +3374,14 @@ function MiscBanner({
3090
3374
  htmlFor: toggleId,
3091
3375
  "aria-controls": menuId,
3092
3376
  "aria-label": "Toggle banner links",
3093
- children: /* @__PURE__ */ jsx(Icon, { name: "expand_more", size: 4, className: "usx-icon" })
3377
+ children: /* @__PURE__ */ jsx(Icon, { name: "expand_more", size: 4 })
3094
3378
  }
3095
3379
  ),
3096
3380
  /* @__PURE__ */ jsx("div", { id: menuId, className: "usx-misc-banner__dropdown-content", children: /* @__PURE__ */ jsx("ul", { className: "usa-list", children: mobileLinks.map((link) => /* @__PURE__ */ jsx("li", { className: "usa-list__item", children: /* @__PURE__ */ jsx("a", { className: "usa-link usx-misc-banner__link", href: link.href, children: link.text }) }, `${link.href}-${link.text}`)) }) })
3097
3381
  ] }) : null
3098
3382
  ] });
3099
- return /* @__PURE__ */ jsx("div", { className: classes, ...props2, children: /* @__PURE__ */ jsx("div", { className: "usx-misc-banner__content grid-container", children: content }) });
3383
+ return /* @__PURE__ */ jsx("div", { id, className: classes, ...props2, children: /* @__PURE__ */ jsx("div", { className: "usx-misc-banner__content grid-container", children: content }) });
3100
3384
  }
3101
- const validElements = ["div", "article", "section", "main"];
3102
- const Prose = ({
3103
- containerElement = "div",
3104
- content,
3105
- children,
3106
- className = "",
3107
- ...props2
3108
- }) => {
3109
- const Element = validElements.includes(containerElement) ? containerElement : "div";
3110
- return /* @__PURE__ */ jsx(
3111
- Element,
3112
- {
3113
- className: `usa-prose usx-prose ${className}`,
3114
- ...props2,
3115
- ...content ? { dangerouslySetInnerHTML: { __html: content } } : {},
3116
- children: children ? children : null
3117
- }
3118
- );
3119
- };
3120
3385
  function Modal({
3121
3386
  id = "usx-modal",
3122
3387
  heading,
@@ -3164,27 +3429,6 @@ function Modal({
3164
3429
  }
3165
3430
  );
3166
3431
  }
3167
- function Page({
3168
- id = void 0,
3169
- title = "Page title",
3170
- eyebrow = null,
3171
- element = "main",
3172
- children = null,
3173
- content = null,
3174
- className = "",
3175
- ...props2
3176
- }) {
3177
- const classes = ClassNames("usx-page", className);
3178
- const pageContent = children || content;
3179
- const Element = element;
3180
- return /* @__PURE__ */ jsxs(Element, { id, className: classes, ...props2, children: [
3181
- /* @__PURE__ */ jsxs("h1", { className: "usx-page__title", children: [
3182
- eyebrow ? /* @__PURE__ */ jsx("span", { className: "usx-eyebrow", children: eyebrow }) : null,
3183
- title
3184
- ] }),
3185
- /* @__PURE__ */ jsx("div", { className: "usx-page__content", children: pageContent })
3186
- ] });
3187
- }
3188
3432
  function getPageItems(currentPage, totalPages) {
3189
3433
  const page = (p) => ({ type: "page", page: p });
3190
3434
  const ellipsis = (key) => ({ type: "ellipsis", key });
@@ -3233,153 +3477,147 @@ function getUnboundedPageItems(currentPage) {
3233
3477
  function PaginationNavigation({
3234
3478
  currentPage,
3235
3479
  totalPages,
3236
- onPageChange,
3480
+ pageSize = 10,
3481
+ totalItems,
3237
3482
  ariaLabel = "Pagination",
3238
3483
  prevLabel = "Previous",
3239
3484
  nextLabel = "Next",
3240
3485
  hideLinkText = false,
3241
3486
  arrowsOnly = false,
3487
+ pageUrlPrefix,
3242
3488
  className = ""
3243
3489
  }) {
3244
3490
  const unbounded = totalPages === void 0 || totalPages === null;
3245
3491
  const items = unbounded ? getUnboundedPageItems(currentPage) : getPageItems(currentPage, totalPages);
3246
3492
  const isFirstPage = currentPage === 1;
3247
3493
  const isLastPage = !unbounded && currentPage === totalPages;
3248
- const lastClickTime = useRef(0);
3249
- const handlePage = (page) => (e) => {
3250
- e.preventDefault();
3251
- if (e.detail > 1) return;
3252
- if (page !== currentPage) onPageChange(page);
3253
- };
3254
- const handlePrev = (e) => {
3255
- e.preventDefault();
3256
- if (e.timeStamp - lastClickTime.current < 50) return;
3257
- lastClickTime.current = e.timeStamp;
3258
- if (!isFirstPage) onPageChange((prev) => Math.max(prev - 1, 1));
3259
- };
3260
- const handleNext = (e) => {
3261
- e.preventDefault();
3262
- if (e.timeStamp - lastClickTime.current < 50) return;
3263
- lastClickTime.current = e.timeStamp;
3264
- if (!isLastPage) onPageChange((prev) => unbounded ? prev + 1 : Math.min(prev + 1, totalPages));
3265
- };
3494
+ const hrefFor = (page) => pageUrlPrefix ? `${pageUrlPrefix}${page}` : "#";
3266
3495
  const navClasses = ClassNames(
3267
3496
  "usa-pagination",
3268
3497
  "usx-pagination__nav",
3269
3498
  { "usx-pagination__arrows-only": arrowsOnly },
3270
3499
  className
3271
3500
  );
3272
- return /* @__PURE__ */ jsx("nav", { "aria-label": ariaLabel, className: navClasses, children: /* @__PURE__ */ jsxs("ul", { className: "usa-pagination__list", children: [
3273
- /* @__PURE__ */ jsx(
3274
- "li",
3275
- {
3276
- className: ClassNames(
3277
- "usa-pagination__item",
3278
- "usa-pagination__arrow"
3279
- ),
3280
- children: /* @__PURE__ */ jsxs(
3281
- "a",
3501
+ return /* @__PURE__ */ jsx(
3502
+ "nav",
3503
+ {
3504
+ "aria-label": ariaLabel,
3505
+ className: navClasses,
3506
+ "data-usx-pagination-current-page": currentPage,
3507
+ "data-usx-pagination-page-size": pageSize,
3508
+ "data-usx-pagination-total-items": totalItems ?? "",
3509
+ children: /* @__PURE__ */ jsxs("ul", { className: "usa-pagination__list", children: [
3510
+ /* @__PURE__ */ jsx(
3511
+ "li",
3282
3512
  {
3283
- href: "#",
3284
3513
  className: ClassNames(
3285
- "usa-pagination__link",
3286
- "usa-pagination__previous-page",
3287
- isFirstPage && "display-none",
3288
- hideLinkText && "padding-1 margin-0"
3514
+ "usa-pagination__item",
3515
+ "usa-pagination__arrow"
3289
3516
  ),
3290
- "aria-label": `${prevLabel} page`,
3291
- "aria-disabled": isFirstPage ? "true" : void 0,
3292
- tabIndex: isFirstPage ? -1 : void 0,
3293
- onClick: isFirstPage ? (e) => e.preventDefault() : handlePrev,
3294
- children: [
3295
- /* @__PURE__ */ jsx(Icon, { name: "navigate_before" }),
3296
- /* @__PURE__ */ jsx(
3297
- "span",
3298
- {
3299
- className: ClassNames(
3300
- "usa-pagination__link-text",
3301
- hideLinkText && "usa-sr-only"
3302
- ),
3303
- children: prevLabel
3304
- }
3305
- )
3306
- ]
3517
+ children: /* @__PURE__ */ jsxs(
3518
+ "a",
3519
+ {
3520
+ href: isFirstPage ? "#" : hrefFor(currentPage - 1),
3521
+ "data-usx-pagination-page": currentPage - 1,
3522
+ className: ClassNames(
3523
+ "usa-pagination__link",
3524
+ "usa-pagination__previous-page",
3525
+ isFirstPage && "display-none",
3526
+ hideLinkText && "padding-1 margin-0"
3527
+ ),
3528
+ "aria-label": `${prevLabel} page`,
3529
+ "aria-disabled": isFirstPage ? "true" : void 0,
3530
+ tabIndex: isFirstPage ? -1 : void 0,
3531
+ children: [
3532
+ /* @__PURE__ */ jsx(Icon, { name: "navigate_before" }),
3533
+ /* @__PURE__ */ jsx(
3534
+ "span",
3535
+ {
3536
+ className: ClassNames(
3537
+ "usa-pagination__link-text",
3538
+ hideLinkText && "usa-sr-only"
3539
+ ),
3540
+ children: prevLabel
3541
+ }
3542
+ )
3543
+ ]
3544
+ }
3545
+ )
3307
3546
  }
3308
- )
3309
- }
3310
- ),
3311
- !arrowsOnly && items.map((item, index) => {
3312
- if (item.type === "ellipsis") {
3313
- return /* @__PURE__ */ jsx(
3314
- "li",
3315
- {
3316
- className: "usa-pagination__item usa-pagination__overflow",
3317
- "aria-hidden": "true",
3318
- children: /* @__PURE__ */ jsx("span", { children: "…" })
3319
- },
3320
- item.key || `ellipsis-${index}`
3321
- );
3322
- }
3323
- const isCurrent = item.page === currentPage;
3324
- return /* @__PURE__ */ jsx("li", { className: "usa-pagination__item usa-pagination__page-no", children: /* @__PURE__ */ jsx(
3325
- "a",
3326
- {
3327
- href: "#",
3328
- className: ClassNames(
3329
- "usa-pagination__button",
3330
- isCurrent && "usa-current"
3331
- ),
3332
- "aria-label": `Page ${item.page}`,
3333
- "aria-current": isCurrent ? "page" : void 0,
3334
- onClick: handlePage(item.page),
3335
- children: item.page
3336
- }
3337
- ) }, item.page);
3338
- }),
3339
- /* @__PURE__ */ jsx(
3340
- "li",
3341
- {
3342
- className: ClassNames(
3343
- "usa-pagination__item",
3344
- "usa-pagination__arrow"
3345
3547
  ),
3346
- children: /* @__PURE__ */ jsxs(
3347
- "a",
3548
+ !arrowsOnly && items.map((item, index) => {
3549
+ if (item.type === "ellipsis") {
3550
+ return /* @__PURE__ */ jsx(
3551
+ "li",
3552
+ {
3553
+ className: "usa-pagination__item usa-pagination__overflow",
3554
+ "aria-hidden": "true",
3555
+ children: /* @__PURE__ */ jsx("span", { children: "…" })
3556
+ },
3557
+ item.key || `ellipsis-${index}`
3558
+ );
3559
+ }
3560
+ const isCurrent = item.page === currentPage;
3561
+ return /* @__PURE__ */ jsx("li", { className: "usa-pagination__item usa-pagination__page-no", children: /* @__PURE__ */ jsx(
3562
+ "a",
3563
+ {
3564
+ href: hrefFor(item.page),
3565
+ "data-usx-pagination-page": item.page,
3566
+ className: ClassNames(
3567
+ "usa-pagination__button",
3568
+ isCurrent && "usa-current"
3569
+ ),
3570
+ "aria-label": `Page ${item.page}`,
3571
+ "aria-current": isCurrent ? "page" : void 0,
3572
+ children: item.page
3573
+ }
3574
+ ) }, item.page);
3575
+ }),
3576
+ /* @__PURE__ */ jsx(
3577
+ "li",
3348
3578
  {
3349
- href: "#",
3350
3579
  className: ClassNames(
3351
- "usa-pagination__link",
3352
- "usa-pagination__next-page",
3353
- isLastPage && "display-none",
3354
- hideLinkText && "padding-1 margin-0"
3580
+ "usa-pagination__item",
3581
+ "usa-pagination__arrow"
3355
3582
  ),
3356
- "aria-label": `${nextLabel} page`,
3357
- "aria-disabled": isLastPage ? "true" : void 0,
3358
- tabIndex: isLastPage ? -1 : void 0,
3359
- onClick: isLastPage ? (e) => e.preventDefault() : handleNext,
3360
- children: [
3361
- /* @__PURE__ */ jsx(
3362
- "span",
3363
- {
3364
- className: ClassNames(
3365
- "usa-pagination__link-text",
3366
- hideLinkText && "usa-sr-only"
3583
+ children: /* @__PURE__ */ jsxs(
3584
+ "a",
3585
+ {
3586
+ href: isLastPage ? "#" : hrefFor(currentPage + 1),
3587
+ "data-usx-pagination-page": currentPage + 1,
3588
+ className: ClassNames(
3589
+ "usa-pagination__link",
3590
+ "usa-pagination__next-page",
3591
+ isLastPage && "display-none",
3592
+ hideLinkText && "padding-1 margin-0"
3593
+ ),
3594
+ "aria-label": `${nextLabel} page`,
3595
+ "aria-disabled": isLastPage ? "true" : void 0,
3596
+ tabIndex: isLastPage ? -1 : void 0,
3597
+ children: [
3598
+ /* @__PURE__ */ jsx(
3599
+ "span",
3600
+ {
3601
+ className: ClassNames(
3602
+ "usa-pagination__link-text",
3603
+ hideLinkText && "usa-sr-only"
3604
+ ),
3605
+ children: nextLabel
3606
+ }
3367
3607
  ),
3368
- children: nextLabel
3369
- }
3370
- ),
3371
- /* @__PURE__ */ jsx(Icon, { name: "navigate_next" })
3372
- ]
3608
+ /* @__PURE__ */ jsx(Icon, { name: "navigate_next" })
3609
+ ]
3610
+ }
3611
+ )
3373
3612
  }
3374
3613
  )
3375
- }
3376
- )
3377
- ] }) });
3614
+ ] })
3615
+ }
3616
+ );
3378
3617
  }
3379
3618
  function PaginationStepOptions({
3380
3619
  pageSize,
3381
3620
  pageSizeOptions = [10, 25, 50, 100],
3382
- onPageSizeChange,
3383
3621
  label = "Items per page",
3384
3622
  id = "pagination-step-options",
3385
3623
  className = ""
@@ -3388,19 +3626,16 @@ function PaginationStepOptions({
3388
3626
  "usx-pagination__step-options",
3389
3627
  className
3390
3628
  );
3391
- const handleChange = (e) => {
3392
- onPageSizeChange(Number(e.target.value));
3393
- };
3394
3629
  return /* @__PURE__ */ jsx("div", { className: classes, children: /* @__PURE__ */ jsx(
3395
3630
  Select,
3396
3631
  {
3397
3632
  id,
3398
3633
  label,
3399
- value: pageSize,
3400
- onChange: handleChange,
3634
+ defaultValue: String(pageSize),
3401
3635
  formGroup: false,
3402
3636
  options: pageSizeOptions.map((size) => ({ value: String(size), label: String(size) }))
3403
- }
3637
+ },
3638
+ pageSize
3404
3639
  ) });
3405
3640
  }
3406
3641
  function PaginationSummary({
@@ -3448,13 +3683,15 @@ function PaginationContainer({
3448
3683
  ] });
3449
3684
  }
3450
3685
  function Pagination({
3686
+ renderPart,
3451
3687
  initialPage = 1,
3452
3688
  initialPageSize = 10,
3689
+ currentPage: page,
3690
+ pageSize: size,
3453
3691
  pageSizeOptions = [10, 25, 50, 100],
3692
+ stepOptionsId,
3454
3693
  totalItems,
3455
3694
  unbounded = false,
3456
- onPageChange,
3457
- onPageSizeChange,
3458
3695
  ariaLabel = "Pagination",
3459
3696
  prevLabel = "Previous",
3460
3697
  nextLabel = "Next",
@@ -3463,77 +3700,166 @@ function Pagination({
3463
3700
  showSummary = true,
3464
3701
  hideLinkText = true,
3465
3702
  arrowsOnly = false,
3703
+ pageUrlPrefix,
3466
3704
  className = ""
3467
3705
  }) {
3468
- const [currentPage, setCurrentPage] = useState(initialPage);
3469
- const [pageSize, setPageSize] = useState(initialPageSize);
3706
+ const currentPage = page ?? initialPage;
3707
+ const pageSize = size ?? initialPageSize;
3470
3708
  const totalPages = totalItems !== void 0 && !unbounded ? Math.ceil(totalItems / pageSize) : void 0;
3471
3709
  const displaySummary = showSummary !== void 0 ? showSummary : totalItems !== void 0;
3472
- const handlePageChange = (pageOrFn) => {
3473
- setCurrentPage((prev) => {
3474
- const next = typeof pageOrFn === "function" ? pageOrFn(prev) : pageOrFn;
3475
- onPageChange == null ? void 0 : onPageChange(next, pageSize);
3476
- return next;
3477
- });
3478
- };
3479
- const handlePageSizeChange = (size) => {
3480
- const newTotalPages = totalItems ? Math.ceil(totalItems / size) : void 0;
3481
- const newPage = newTotalPages ? Math.min(currentPage, newTotalPages) : 1;
3482
- setPageSize(size);
3483
- setCurrentPage(newPage);
3484
- onPageSizeChange == null ? void 0 : onPageSizeChange(size, newPage);
3485
- onPageChange == null ? void 0 : onPageChange(newPage, size);
3486
- };
3487
3710
  const classes = ClassNames("usx-pagination", className);
3711
+ const navigation = /* @__PURE__ */ jsx(
3712
+ PaginationNavigation,
3713
+ {
3714
+ currentPage,
3715
+ totalPages,
3716
+ pageSize,
3717
+ totalItems,
3718
+ ariaLabel,
3719
+ prevLabel,
3720
+ nextLabel,
3721
+ hideLinkText,
3722
+ arrowsOnly,
3723
+ pageUrlPrefix
3724
+ }
3725
+ );
3726
+ const stepOptions = /* @__PURE__ */ jsx(
3727
+ PaginationStepOptions,
3728
+ {
3729
+ pageSize,
3730
+ pageSizeOptions,
3731
+ id: stepOptionsId
3732
+ }
3733
+ );
3734
+ const summary = typeof totalItems === "number" ? /* @__PURE__ */ jsx(
3735
+ PaginationSummary,
3736
+ {
3737
+ currentPage,
3738
+ pageSize,
3739
+ totalItems,
3740
+ itemLabel
3741
+ }
3742
+ ) : null;
3743
+ if (renderPart === "navigation") return navigation;
3744
+ if (renderPart === "step-options") return stepOptions;
3745
+ if (renderPart === "summary") return summary;
3488
3746
  return /* @__PURE__ */ jsx("div", { className: classes, children: /* @__PURE__ */ jsx(
3489
3747
  PaginationContainer,
3490
3748
  {
3491
- summary: displaySummary && typeof totalItems === "number" ? /* @__PURE__ */ jsx(
3492
- PaginationSummary,
3493
- {
3494
- currentPage,
3495
- pageSize,
3496
- totalItems,
3497
- itemLabel
3498
- }
3499
- ) : null,
3500
- navigation: /* @__PURE__ */ jsx(
3501
- PaginationNavigation,
3749
+ summary: displaySummary ? summary : null,
3750
+ navigation,
3751
+ stepOptions: showStepOptions ? stepOptions : null
3752
+ }
3753
+ ) });
3754
+ }
3755
+ function PopoverMenu({ items, prefix, panelShape, className, ...props2 }) {
3756
+ const generatedPrefix = React.useId();
3757
+ const base = prefix ?? generatedPrefix;
3758
+ return /* @__PURE__ */ jsx("ul", { ...props2, className: ClassNames("usx-popover__menu", className), children: items.map((item, index) => {
3759
+ const id = item.id ?? `${base}-${index}`;
3760
+ return /* @__PURE__ */ jsxs("li", { children: [
3761
+ item.type === "details" && /* @__PURE__ */ jsx(
3762
+ Popover,
3502
3763
  {
3503
- currentPage,
3504
- totalPages,
3505
- onPageChange: handlePageChange,
3506
- ariaLabel,
3507
- prevLabel,
3508
- nextLabel,
3509
- hideLinkText,
3510
- arrowsOnly
3764
+ id,
3765
+ summaryProps: {
3766
+ ...item.summaryProps,
3767
+ className: ClassNames(item.summaryProps.className, "usx-popover__menu-item")
3768
+ },
3769
+ name: base,
3770
+ side: "right",
3771
+ panelShape,
3772
+ menuItems: item.items
3511
3773
  }
3512
3774
  ),
3513
- stepOptions: showStepOptions ? /* @__PURE__ */ jsx(
3514
- PaginationStepOptions,
3775
+ item.type === "link" && /* @__PURE__ */ jsx(
3776
+ Link,
3515
3777
  {
3516
- pageSize,
3517
- pageSizeOptions,
3518
- onPageSizeChange: handlePageSizeChange
3778
+ href: item.href,
3779
+ text: item.text,
3780
+ className: "usx-no-visited usx-popover__menu-item"
3519
3781
  }
3520
- ) : null
3521
- }
3522
- ) });
3782
+ ),
3783
+ item.type === "text" && /* @__PURE__ */ jsx("span", { className: "usx-popover__menu-item", children: item.text })
3784
+ ] }, id);
3785
+ }) });
3523
3786
  }
3524
- function renderContent(content) {
3525
- if (typeof content === "string") {
3526
- return /* @__PURE__ */ jsx("div", { dangerouslySetInnerHTML: { __html: content } });
3527
- }
3528
- return content;
3787
+ function Popover({
3788
+ id,
3789
+ side = "bottom",
3790
+ align = "start",
3791
+ panelShape = "rounded",
3792
+ defaultOpen = false,
3793
+ menuItems,
3794
+ showClose = false,
3795
+ closeLabel = "Close",
3796
+ panelHeading,
3797
+ headingAs = "h2",
3798
+ scrollable = false,
3799
+ className,
3800
+ summaryProps,
3801
+ panelClassName,
3802
+ contentClassName,
3803
+ children,
3804
+ ...props2
3805
+ }) {
3806
+ const [initiallyOpen] = React.useState(defaultOpen);
3807
+ const composedSummaryProps = { ...summaryProps, label: (summaryProps == null ? void 0 : summaryProps.label) ?? "Open panel" };
3808
+ const Heading = headingAs;
3809
+ return /* @__PURE__ */ jsxs(
3810
+ "details",
3811
+ {
3812
+ ...props2,
3813
+ className: ClassNames("usx-popover", className),
3814
+ open: initiallyOpen || void 0,
3815
+ "data-side": side,
3816
+ "data-align": align,
3817
+ children: [
3818
+ /* @__PURE__ */ jsx(Summary, { unstyled: true, ...composedSummaryProps }),
3819
+ /* @__PURE__ */ jsxs(
3820
+ "div",
3821
+ {
3822
+ id,
3823
+ className: ClassNames("usx-popover__panel", {
3824
+ "usx-popover__panel--square": panelShape === "square"
3825
+ }, panelClassName),
3826
+ children: [
3827
+ panelHeading && /* @__PURE__ */ jsx(Heading, { className: "usx-popover__panel-heading", children: panelHeading }),
3828
+ menuItems && /* @__PURE__ */ jsx(PopoverMenu, { items: menuItems, prefix: id, panelShape }),
3829
+ children && /* @__PURE__ */ jsx(
3830
+ "div",
3831
+ {
3832
+ className: ClassNames(
3833
+ "usx-popover__panel-content",
3834
+ { "usx-popover__scroll": scrollable },
3835
+ contentClassName
3836
+ ),
3837
+ children
3838
+ }
3839
+ ),
3840
+ showClose && /* @__PURE__ */ jsx(
3841
+ Button,
3842
+ {
3843
+ variant: "unstyled",
3844
+ className: "usx-popover__panel-close",
3845
+ "data-usx-popover-close": id,
3846
+ children: closeLabel
3847
+ }
3848
+ )
3849
+ ]
3850
+ }
3851
+ )
3852
+ ]
3853
+ }
3854
+ );
3529
3855
  }
3530
3856
  const ProcessList = ({ items = [], className = "", ...props2 }) => {
3531
3857
  const classes = ClassNames("usa-process-list", "usx-process-list", className);
3532
3858
  return /* @__PURE__ */ jsx("ol", { className: classes, ...props2, children: items.map((item, index) => {
3533
- const HeadingTag = item.headingTag || "h4";
3859
+ const Heading = item.headingAs || "h4";
3534
3860
  return /* @__PURE__ */ jsxs("li", { className: ClassNames("usa-process-list__item", item.className), children: [
3535
- /* @__PURE__ */ jsx(HeadingTag, { className: ClassNames("usa-process-list__heading", item.headingClassName), children: item.heading }),
3536
- item.body && (typeof item.body === "string" || item.bodyClassName ? /* @__PURE__ */ jsx("p", { className: ClassNames(item.bodyClassName), children: renderContent(item.body) }) : renderContent(item.body))
3861
+ /* @__PURE__ */ jsx(Heading, { className: ClassNames("usa-process-list__heading", item.headingClassName), children: item.heading }),
3862
+ item.body && (item.bodyClassName ? /* @__PURE__ */ jsx("div", { className: item.bodyClassName, children: item.body }) : item.body)
3537
3863
  ] }, index);
3538
3864
  }) });
3539
3865
  };
@@ -3551,7 +3877,7 @@ function Quote({
3551
3877
  const isVertical = (calloutProps == null ? void 0 : calloutProps.orientation) === "vertical";
3552
3878
  return /* @__PURE__ */ jsxs("div", { className: ClassNames("usx-quote", isVertical && "usx-quote--vertical", className), ...props2, children: [
3553
3879
  !isVertical && /* @__PURE__ */ jsx(Icon, { name: "format_quote", size: 4, className: "usx-quote__icon" }),
3554
- /* @__PURE__ */ jsx(Callout, { ...calloutProps, element: "div", children: /* @__PURE__ */ jsxs("figure", { className: "usx-quote__body", children: [
3880
+ /* @__PURE__ */ jsx(Callout, { ...calloutProps, as: "div", children: /* @__PURE__ */ jsxs("figure", { className: "usx-quote__body", children: [
3555
3881
  /* @__PURE__ */ jsxs(
3556
3882
  "blockquote",
3557
3883
  {
@@ -3579,42 +3905,46 @@ const RadioButtons = ({
3579
3905
  hint = null,
3580
3906
  error = null,
3581
3907
  name = "radio-group",
3908
+ id: groupId,
3582
3909
  options = [],
3583
3910
  defaultValue = void 0,
3584
3911
  className = "",
3585
3912
  ...props2
3586
3913
  }) => {
3587
- const classes = ClassNames(
3588
- "usa-radio",
3589
- "usx-radio",
3590
- { "usx-radio--small": small },
3591
- className
3592
- );
3593
- const inputClasses = ClassNames(
3594
- "usa-radio__input",
3595
- { "usa-radio__input--tile": tile }
3596
- );
3597
- return /* @__PURE__ */ jsx(FormGroup, { error: !!error, children: /* @__PURE__ */ jsx(Fieldset, { legend, required, hint, error, ...props2, children: options.map((opt, idx) => {
3598
- const id = opt.id || `${name}-${idx}`;
3599
- return /* @__PURE__ */ jsxs("div", { className: classes, children: [
3600
- /* @__PURE__ */ jsx(
3601
- "input",
3602
- {
3603
- className: inputClasses,
3604
- id,
3605
- type: "radio",
3606
- name,
3607
- value: opt.value,
3608
- defaultChecked: defaultValue === opt.value || !!opt.checked,
3609
- disabled: !!opt.disabled
3610
- }
3611
- ),
3612
- /* @__PURE__ */ jsxs(Label, { className: "usa-radio__label", classOverride: true, htmlFor: id, children: [
3613
- opt.label,
3614
- opt.description ? /* @__PURE__ */ jsx("span", { className: "usa-checkbox__label-description", children: opt.description }) : null
3615
- ] })
3616
- ] }, id);
3617
- }) }) });
3914
+ const classes = ClassNames("usa-radio", "usx-radio", { "usx-radio--small": small }, className);
3915
+ const inputClasses = ClassNames("usa-radio__input", { "usa-radio__input--tile": tile });
3916
+ return /* @__PURE__ */ jsx(FormGroup, { error: !!error, children: /* @__PURE__ */ jsx(
3917
+ Fieldset,
3918
+ {
3919
+ id: groupId,
3920
+ legend,
3921
+ required,
3922
+ hint,
3923
+ error,
3924
+ ...props2,
3925
+ children: options.map((opt, idx) => {
3926
+ const id = opt.id || `${groupId || name}-${idx}`;
3927
+ return /* @__PURE__ */ jsxs("div", { className: classes, children: [
3928
+ /* @__PURE__ */ jsx(
3929
+ "input",
3930
+ {
3931
+ className: inputClasses,
3932
+ id,
3933
+ type: "radio",
3934
+ name,
3935
+ value: opt.value,
3936
+ defaultChecked: defaultValue === opt.value || !!opt.checked,
3937
+ disabled: !!opt.disabled
3938
+ }
3939
+ ),
3940
+ /* @__PURE__ */ jsxs(Label, { className: "usa-radio__label", classOverride: true, htmlFor: id, children: [
3941
+ opt.label,
3942
+ opt.description ? /* @__PURE__ */ jsx("span", { className: "usa-checkbox__label-description", children: opt.description }) : null
3943
+ ] })
3944
+ ] }, id);
3945
+ })
3946
+ }
3947
+ ) });
3618
3948
  };
3619
3949
  function RangeSlider({
3620
3950
  id = "range-slider",
@@ -3630,7 +3960,7 @@ function RangeSlider({
3630
3960
  value,
3631
3961
  defaultValue,
3632
3962
  textUnit = null,
3633
- textPreposition = null,
3963
+ textPreposition = "of",
3634
3964
  formGroup = true,
3635
3965
  className = "",
3636
3966
  ...props2
@@ -3667,7 +3997,7 @@ function RangeSlider({
3667
3997
  }
3668
3998
  const Section = ({
3669
3999
  title = "",
3670
- headingLevel = "h2",
4000
+ headingAs = "h2",
3671
4001
  children = null,
3672
4002
  content = null,
3673
4003
  className = "",
@@ -3675,7 +4005,7 @@ const Section = ({
3675
4005
  }) => {
3676
4006
  const classes = ClassNames("usx-section", className);
3677
4007
  const sectionContent = children || content;
3678
- const Heading = ["h1", "h2", "h3", "h4", "h5", "h6"].includes(headingLevel) ? headingLevel : "h2";
4008
+ const Heading = ["h1", "h2", "h3", "h4", "h5", "h6"].includes(headingAs) ? headingAs : "h2";
3679
4009
  return /* @__PURE__ */ jsxs("section", { className: classes, ...props2, children: [
3680
4010
  title ? /* @__PURE__ */ jsx(Heading, { className: "usx-section__title", children: title }) : null,
3681
4011
  /* @__PURE__ */ jsx("div", { className: "usx-section__content", children: sectionContent })
@@ -3740,16 +4070,6 @@ const SiteAlert = ({
3740
4070
  onDismiss && "usa-site-alert--dismissible",
3741
4071
  className
3742
4072
  );
3743
- const alertClasses = ClassNames(
3744
- "usa-alert",
3745
- `usa-alert--${alertVariant}`,
3746
- "usx-alert",
3747
- `usx-alert--${alertVariant}`,
3748
- slim && "usa-alert--slim",
3749
- slim && "usx-alert--slim",
3750
- noIcon && "usa-alert--no-icon",
3751
- noIcon && "usx-alert--no-icon"
3752
- );
3753
4073
  return /* @__PURE__ */ jsx(
3754
4074
  "section",
3755
4075
  {
@@ -3758,19 +4078,7 @@ const SiteAlert = ({
3758
4078
  "aria-label": ariaLabelledby ? void 0 : ariaLabel,
3759
4079
  "aria-labelledby": ariaLabelledby,
3760
4080
  ...props2,
3761
- children: alertContent ? /* @__PURE__ */ jsx("div", { className: alertClasses, children: /* @__PURE__ */ jsxs("div", { className: "usa-alert__body usx-alert__body", children: [
3762
- alertHeading && /* @__PURE__ */ jsx("h4", { className: "usa-alert__heading usx-alert__heading", children: alertHeading }),
3763
- alertContent,
3764
- onDismiss && /* @__PURE__ */ jsx(
3765
- "button",
3766
- {
3767
- className: "usx-alert__dismiss",
3768
- "aria-label": "Close alert",
3769
- onClick: onDismiss,
3770
- children: /* @__PURE__ */ jsx(Icon, { name: "close", size: 3, "aria-hidden": "true", focusable: "false" })
3771
- }
3772
- )
3773
- ] }) }) : /* @__PURE__ */ jsx(
4081
+ children: /* @__PURE__ */ jsx(
3774
4082
  Alert,
3775
4083
  {
3776
4084
  heading: alertHeading,
@@ -3778,7 +4086,8 @@ const SiteAlert = ({
3778
4086
  variant: alertVariant,
3779
4087
  slim,
3780
4088
  noIcon,
3781
- onDismiss
4089
+ onDismiss,
4090
+ children: alertContent
3782
4091
  }
3783
4092
  )
3784
4093
  }
@@ -3827,7 +4136,7 @@ const StepIndicator = ({
3827
4136
  steps = [],
3828
4137
  currentStep = 1,
3829
4138
  variant = "",
3830
- headingTag: HeadingTag = "h4",
4139
+ headingAs: Heading = "h4",
3831
4140
  className = "",
3832
4141
  ...props2
3833
4142
  }) => {
@@ -3867,7 +4176,7 @@ const StepIndicator = ({
3867
4176
  index
3868
4177
  );
3869
4178
  }) }),
3870
- /* @__PURE__ */ jsx("div", { className: "usa-step-indicator__header", children: /* @__PURE__ */ jsxs(HeadingTag, { className: "usa-step-indicator__heading", children: [
4179
+ /* @__PURE__ */ jsx("div", { className: "usa-step-indicator__header", children: /* @__PURE__ */ jsxs(Heading, { className: "usa-step-indicator__heading", children: [
3871
4180
  /* @__PURE__ */ jsxs("span", { className: "usa-step-indicator__heading-counter", children: [
3872
4181
  /* @__PURE__ */ jsx("span", { className: "usa-sr-only", children: "Step" }),
3873
4182
  " ",
@@ -4262,18 +4571,22 @@ function DataRow({ row, rowIndex }) {
4262
4571
  selected ? "checked" : "unchecked"
4263
4572
  ) }, "__selection__");
4264
4573
  const detailToggleCell = hasRowDetails ? /* @__PURE__ */ jsx("td", { className: "usx-table__cell usx-table__cell--detail-toggle", onClick: handleToggleDetail, children: /* @__PURE__ */ jsx(
4265
- "button",
4574
+ Button,
4266
4575
  {
4267
- type: "button",
4576
+ variant: "inverse",
4577
+ ghost: true,
4268
4578
  className: ClassNames(
4269
- "usa-button usa-button--unstyled",
4270
- "usx-table__detail-toggle",
4271
- "width-full",
4272
- isExpanded && "usx-table__detail-toggle--expanded"
4579
+ "usx-table__detail-toggle"
4273
4580
  ),
4274
4581
  "aria-expanded": isExpanded,
4275
4582
  "aria-label": expandLabel ? typeof expandLabel === "function" ? expandLabel(row) : expandLabel : `${isExpanded ? "Collapse" : "Expand"} row details`,
4276
- children: /* @__PURE__ */ jsx(Icon, { name: isExpanded ? "expand_less" : "expand_more", "aria-hidden": "true" })
4583
+ iconProps: [
4584
+ {
4585
+ name: isExpanded ? "expand_less" : "expand_more",
4586
+ "aria-hidden": "true",
4587
+ size: 3
4588
+ }
4589
+ ]
4277
4590
  }
4278
4591
  ) }, "__detail-toggle__") : null;
4279
4592
  const dataCells = visibleCols.map((col) => {
@@ -4726,25 +5039,44 @@ function Table({
4726
5039
  return /* @__PURE__ */ jsxs(TableContext.Provider, { value: contextValue, children: [
4727
5040
  wrapped,
4728
5041
  isPaginated && /* @__PURE__ */ jsx(
4729
- Pagination,
5042
+ "div",
4730
5043
  {
4731
- initialPage: 1,
4732
- initialPageSize: pageSize,
4733
- totalItems,
4734
- onPageChange: (page) => {
5044
+ onClick: (event) => {
4735
5045
  var _a;
5046
+ const link = event.target.closest("[data-usx-pagination-page]");
5047
+ if (!link || link.getAttribute("aria-disabled") === "true") return;
5048
+ event.preventDefault();
5049
+ const page = Number(link.dataset.usxPaginationPage);
5050
+ if (!Number.isInteger(page) || page < 1 || page === currentPage) return;
4736
5051
  setCurrentPage(page);
4737
5052
  if (isServerSide) (_a = paginateConfig.onPageChange) == null ? void 0 : _a.call(paginateConfig, page, pageSize);
4738
5053
  },
4739
- onPageSizeChange: (size, page) => {
5054
+ onChange: (event) => {
5055
+ var _a;
5056
+ const target = event.target;
5057
+ if (!(target instanceof HTMLSelectElement)) return;
5058
+ const select = target;
5059
+ if (!select.matches(".usx-pagination__step-options select")) return;
5060
+ const size = Number(select.value);
5061
+ if (!Number.isInteger(size) || size < 1) return;
5062
+ const page = Math.min(currentPage, Math.max(1, Math.ceil(totalItems / size)));
4740
5063
  setPageSize(size);
4741
5064
  setCurrentPage(page);
5065
+ if (isServerSide) (_a = paginateConfig.onPageChange) == null ? void 0 : _a.call(paginateConfig, page, size);
4742
5066
  },
4743
- ...paginateConfig.pageSizeOptions ? { pageSizeOptions: paginateConfig.pageSizeOptions } : {},
4744
- ...paginateConfig.showStepOptions !== void 0 ? { showStepOptions: paginateConfig.showStepOptions } : {},
4745
- ...paginateConfig.showSummary !== void 0 ? { showSummary: paginateConfig.showSummary } : {}
4746
- },
4747
- `${sortState.key}-${sortState.direction}`
5067
+ children: /* @__PURE__ */ jsx(
5068
+ Pagination,
5069
+ {
5070
+ currentPage,
5071
+ pageSize,
5072
+ totalItems,
5073
+ ...paginateConfig.pageSizeOptions ? { pageSizeOptions: paginateConfig.pageSizeOptions } : {},
5074
+ ...paginateConfig.showStepOptions !== void 0 ? { showStepOptions: paginateConfig.showStepOptions } : {},
5075
+ ...paginateConfig.showSummary !== void 0 ? { showSummary: paginateConfig.showSummary } : {}
5076
+ },
5077
+ `${sortState.key}-${sortState.direction}`
5078
+ )
5079
+ }
4748
5080
  )
4749
5081
  ] });
4750
5082
  }
@@ -4792,60 +5124,62 @@ function ThemePicker({
4792
5124
  className = ""
4793
5125
  }) {
4794
5126
  var _a;
4795
- const [open, setOpen] = useState(false);
4796
- const [activeTheme, setActiveTheme] = useState(defaultValue ?? ((_a = themes[0]) == null ? void 0 : _a.value) ?? "");
4797
- const currentValue = value ?? activeTheme;
4798
- const handleChange = (e) => {
4799
- const next = e.target.value;
4800
- if (value === void 0) {
4801
- setActiveTheme(next);
4802
- }
4803
- onChange == null ? void 0 : onChange(next);
4804
- };
4805
- const selectId = id || `theme-picker-${Math.random().toString(36).substr(2, 9)}`;
4806
- const classes = ClassNames("usx-theme-picker", { "usx-theme-picker--open": open }, className);
4807
- const themeOptions = themes.map((option) => /* @__PURE__ */ jsx("option", { value: option.value, children: option.label }, option.value));
4808
- return /* @__PURE__ */ jsx("div", { className: classes, children: open ? /* @__PURE__ */ jsxs("div", { className: "usx-theme-picker__panel", children: [
4809
- /* @__PURE__ */ jsx(Label, { htmlFor: selectId, screenReaderOnly: true, children: label }),
4810
- /* @__PURE__ */ jsx(
4811
- "select",
4812
- {
4813
- id: selectId,
4814
- name,
4815
- className: "usa-select usx-select",
4816
- value: currentValue,
4817
- onChange: handleChange,
4818
- children: themeOptions
4819
- }
4820
- ),
5127
+ const selectId = id || "theme-picker";
5128
+ const selection = value !== void 0 ? { value } : { defaultValue: defaultValue ?? ((_a = themes[0]) == null ? void 0 : _a.value) };
5129
+ return /* @__PURE__ */ jsxs("div", { className: ClassNames("usx-theme-picker", className), children: [
4821
5130
  /* @__PURE__ */ jsx(
4822
5131
  "button",
4823
5132
  {
4824
5133
  type: "button",
4825
- className: "usa-button usx-button usa-button--primary usx-theme-picker__toggle",
4826
- "aria-label": "Confirm theme",
4827
- onClick: () => setOpen(false),
4828
- children: /* @__PURE__ */ jsx(
4829
- Icon,
4830
- {
4831
- name: "close"
4832
- }
4833
- )
5134
+ className: "usa-button usx-button usx-button--ghost usx-theme-picker__trigger",
5135
+ "aria-label": label,
5136
+ "aria-expanded": "false",
5137
+ "aria-controls": `${selectId}-panel`,
5138
+ children: /* @__PURE__ */ jsx(PaletteIcon, {})
4834
5139
  }
4835
- )
4836
- ] }) : /* @__PURE__ */ jsx(
4837
- "button",
4838
- {
4839
- type: "button",
4840
- className: "usa-button usx-button usx-button--ghost text-muted usx-theme-picker__trigger",
4841
- "aria-label": label,
4842
- onClick: () => setOpen(true),
4843
- children: /* @__PURE__ */ jsx(PaletteIcon, {})
4844
- }
4845
- ) });
5140
+ ),
5141
+ /* @__PURE__ */ jsxs("div", { id: `${selectId}-panel`, className: "usx-theme-picker__panel", children: [
5142
+ /* @__PURE__ */ jsx(Label, { htmlFor: selectId, screenReaderOnly: true, children: label }),
5143
+ /* @__PURE__ */ jsx(
5144
+ "select",
5145
+ {
5146
+ id: selectId,
5147
+ name,
5148
+ className: "usa-select usx-select",
5149
+ ...selection,
5150
+ onChange: (event) => onChange == null ? void 0 : onChange(event.target.value),
5151
+ children: themes.map((option) => /* @__PURE__ */ jsx("option", { value: option.value, children: option.label }, option.value))
5152
+ }
5153
+ ),
5154
+ /* @__PURE__ */ jsx(
5155
+ "button",
5156
+ {
5157
+ type: "button",
5158
+ className: "usa-button usx-button usa-button--primary usx-theme-picker__toggle",
5159
+ "aria-label": "Confirm theme",
5160
+ children: /* @__PURE__ */ jsx(Icon, { name: "close", className: "usx-theme-picker__icon" })
5161
+ }
5162
+ )
5163
+ ] })
5164
+ ] });
4846
5165
  }
4847
5166
  function PaletteIcon() {
4848
- return /* @__PURE__ */ jsx("svg", { className: "usa-icon usx-theme-picker__icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { fill: "currentColor", 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" }) });
5167
+ return /* @__PURE__ */ jsx(
5168
+ "svg",
5169
+ {
5170
+ className: "usa-icon usx-theme-picker__icon",
5171
+ "aria-hidden": "true",
5172
+ focusable: "false",
5173
+ viewBox: "0 0 24 24",
5174
+ children: /* @__PURE__ */ jsx(
5175
+ "path",
5176
+ {
5177
+ fill: "currentColor",
5178
+ 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"
5179
+ }
5180
+ )
5181
+ }
5182
+ );
4849
5183
  }
4850
5184
  function TimePicker({
4851
5185
  id = "appointment-time",
@@ -4868,6 +5202,17 @@ function TimePicker({
4868
5202
  const hintId = hint ? `${id}-hint` : void 0;
4869
5203
  const errorId = error ? `${id}-error` : void 0;
4870
5204
  const describedBy = [label ? labelId : void 0, hintId, errorId].filter(Boolean).join(" ") || void 0;
5205
+ const containerClasses = ClassNames(
5206
+ "usa-time-picker",
5207
+ "usx-time-picker",
5208
+ { "usx-combo-box--error": !!error },
5209
+ className
5210
+ );
5211
+ const inputClasses = ClassNames(
5212
+ "usa-input",
5213
+ "usx-input",
5214
+ { "usa-input--error": !!error }
5215
+ );
4871
5216
  const content = /* @__PURE__ */ jsxs(Fragment, { children: [
4872
5217
  label && /* @__PURE__ */ jsx(Label, { id: labelId, htmlFor: id, required, error: !!error, children: label }),
4873
5218
  hint && /* @__PURE__ */ jsx(Hint, { id: hintId, children: hint }),
@@ -4875,19 +5220,14 @@ function TimePicker({
4875
5220
  /* @__PURE__ */ jsx(
4876
5221
  "div",
4877
5222
  {
4878
- className: ClassNames(
4879
- "usa-time-picker",
4880
- "usx-time-picker",
4881
- { "usx-combo-box--error": !!error },
4882
- className
4883
- ),
5223
+ className: containerClasses,
4884
5224
  ...minTime ? { "data-min-time": minTime } : {},
4885
5225
  ...maxTime ? { "data-max-time": maxTime } : {},
4886
5226
  ...step ? { "data-step": step } : {},
4887
5227
  children: /* @__PURE__ */ jsx(
4888
5228
  "input",
4889
5229
  {
4890
- className: `usa-input usx-input${error ? " usa-input--error" : ""}`,
5230
+ className: inputClasses,
4891
5231
  id,
4892
5232
  name: name || id,
4893
5233
  type: "text",
@@ -4981,6 +5321,36 @@ function Toggle({
4981
5321
  }
4982
5322
  );
4983
5323
  }
5324
+ function Tree({ items, variant = "default", className, ...props2 }) {
5325
+ const treeClassNames = ClassNames(
5326
+ "usx-tree",
5327
+ { [`usx-tree--${variant}`]: variant !== "default" },
5328
+ className
5329
+ );
5330
+ return /* @__PURE__ */ jsx("ul", { ...props2, className: treeClassNames, children: items.map((item, index) => {
5331
+ switch (item.type) {
5332
+ case "link": {
5333
+ const { type, ...linkProps } = item;
5334
+ return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Link, { ...linkProps }) }, index);
5335
+ }
5336
+ case "details": {
5337
+ const { type, items: nestedItems, className: detailsClassName, ...detailsProps } = item;
5338
+ return /* @__PURE__ */ jsx("li", { children: nestedItems ? /* @__PURE__ */ jsx(
5339
+ Details,
5340
+ {
5341
+ ...detailsProps,
5342
+ className: ClassNames("usx-tree__branch", detailsClassName),
5343
+ children: /* @__PURE__ */ jsx(Tree, { items: nestedItems, variant })
5344
+ }
5345
+ ) : /* @__PURE__ */ jsx(Details, { ...detailsProps, className: detailsClassName }) }, index);
5346
+ }
5347
+ case "text":
5348
+ return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("span", { className: "usx-tree__label", children: item.text }) }, index);
5349
+ default:
5350
+ return null;
5351
+ }
5352
+ }) });
5353
+ }
4984
5354
  const Villain = ({
4985
5355
  title = "",
4986
5356
  callout = "",
@@ -5027,7 +5397,10 @@ export {
5027
5397
  CopyToClipboard,
5028
5398
  DatePicker,
5029
5399
  DateRangePicker,
5400
+ Details,
5401
+ Drawer,
5030
5402
  ErrorMessage,
5403
+ ErrorPage,
5031
5404
  Eyebrow,
5032
5405
  Fieldset,
5033
5406
  FileInput,
@@ -5055,6 +5428,7 @@ export {
5055
5428
  Modal,
5056
5429
  Page,
5057
5430
  Pagination,
5431
+ Popover,
5058
5432
  ProcessList,
5059
5433
  Prose,
5060
5434
  Quote,
@@ -5070,6 +5444,7 @@ export {
5070
5444
  Spinner,
5071
5445
  Status,
5072
5446
  StepIndicator,
5447
+ Summary,
5073
5448
  SummaryBox,
5074
5449
  Swap,
5075
5450
  Switch,
@@ -5082,5 +5457,6 @@ export {
5082
5457
  TimePicker,
5083
5458
  Toggle,
5084
5459
  Tooltip,
5460
+ Tree,
5085
5461
  Villain
5086
5462
  };