@solexllc/usx-react 0.7.0 → 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 (429) hide show
  1. package/README.md +5 -8
  2. package/dist/index.cjs +671 -428
  3. package/dist/index.js +671 -428
  4. package/package.json +2 -2
  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 +471 -566
  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.react-snapshot.html +152 -0
  15. package/src/components/alert/config.json +5 -8
  16. package/src/components/attribution/attribution.django-snapshot.html +57 -0
  17. package/src/components/attribution/attribution.django.html +2 -2
  18. package/src/components/attribution/attribution.react-snapshot.html +49 -0
  19. package/src/components/attribution/config.json +4 -0
  20. package/src/components/avatar/Avatar.tsx +6 -15
  21. package/src/components/avatar/avatar.django-snapshot.html +131 -0
  22. package/src/components/avatar/avatar.django.html +9 -10
  23. package/src/components/avatar/avatar.react-snapshot.html +121 -0
  24. package/src/components/avatar/config.json +10 -3
  25. package/src/components/avatar-group/AvatarGroup.tsx +3 -3
  26. package/src/components/avatar-group/avatar-group.django-snapshot.html +278 -0
  27. package/src/components/avatar-group/avatar-group.django.html +3 -3
  28. package/src/components/avatar-group/avatar-group.html +5 -5
  29. package/src/components/avatar-group/avatar-group.react-snapshot.html +226 -0
  30. package/src/components/back-to-top/BackToTop.tsx +7 -2
  31. package/src/components/back-to-top/back-to-top.django-snapshot.html +339 -0
  32. package/src/components/back-to-top/back-to-top.django.html +6 -4
  33. package/src/components/back-to-top/back-to-top.react-snapshot.html +264 -0
  34. package/src/components/back-to-top/config.json +9 -0
  35. package/src/components/banner/banner.django-snapshot.html +329 -0
  36. package/src/components/banner/banner.django.html +2 -2
  37. package/src/components/banner/banner.html +87 -185
  38. package/src/components/banner/banner.react-snapshot.html +317 -0
  39. package/src/components/banner/config.json +3 -0
  40. package/src/components/breadcrumb/Breadcrumb.tsx +1 -1
  41. package/src/components/breadcrumb/breadcrumb.django-snapshot.html +103 -0
  42. package/src/components/breadcrumb/breadcrumb.django.html +5 -6
  43. package/src/components/breadcrumb/breadcrumb.react-snapshot.html +87 -0
  44. package/src/components/breadcrumb/config.json +2 -8
  45. package/src/components/button/Button.tsx +1 -0
  46. package/src/components/button/button.django-snapshot.html +558 -0
  47. package/src/components/button/button.django.html +4 -4
  48. package/src/components/button/button.react-snapshot.html +574 -0
  49. package/src/components/button/config.json +4 -0
  50. package/src/components/button-group/button-group.django-snapshot.html +129 -0
  51. package/src/components/button-group/button-group.django.html +1 -1
  52. package/src/components/button-group/button-group.react-snapshot.html +115 -0
  53. package/src/components/button-group/config.json +16 -0
  54. package/src/components/calendar-date/calendar-date.django-snapshot.html +7 -0
  55. package/src/components/calendar-date/calendar-date.django.html +1 -1
  56. package/src/components/calendar-date/calendar-date.react-snapshot.html +7 -0
  57. package/src/components/calendar-date/config.json +3 -0
  58. package/src/components/callout/Callout.tsx +2 -4
  59. package/src/components/callout/callout.django-snapshot.html +59 -0
  60. package/src/components/callout/callout.django.html +1 -1
  61. package/src/components/callout/callout.react-snapshot.html +57 -0
  62. package/src/components/callout/config.json +5 -2
  63. package/src/components/card/Card.tsx +2 -2
  64. package/src/components/card/card.django-snapshot.html +1198 -0
  65. package/src/components/card/card.django.html +3 -3
  66. package/src/components/card/card.react-snapshot.html +1028 -0
  67. package/src/components/card/config.json +21 -4
  68. package/src/components/card-group/CardGroup.tsx +1 -1
  69. package/src/components/card-group/card-group.django-snapshot.html +514 -0
  70. package/src/components/card-group/card-group.django.html +2 -2
  71. package/src/components/card-group/card-group.react-snapshot.html +445 -0
  72. package/src/components/card-group/config.json +80 -2
  73. package/src/components/carousel/Carousel.tsx +3 -0
  74. package/src/components/carousel/carousel.django-snapshot.html +927 -0
  75. package/src/components/carousel/carousel.django.html +2 -2
  76. package/src/components/carousel/carousel.react-snapshot.html +762 -0
  77. package/src/components/carousel/config.json +18 -0
  78. package/src/components/character-count/CharacterCount.tsx +1 -3
  79. package/src/components/character-count/character-count.django-snapshot.html +402 -0
  80. package/src/components/character-count/character-count.django.html +1 -1
  81. package/src/components/character-count/character-count.react-snapshot.html +346 -0
  82. package/src/components/character-count/config.json +5 -0
  83. package/src/components/checkbox/Checkbox.tsx +7 -2
  84. package/src/components/checkbox/checkbox.django-snapshot.html +373 -0
  85. package/src/components/checkbox/checkbox.django.html +22 -3
  86. package/src/components/checkbox/checkbox.react-snapshot.html +313 -0
  87. package/src/components/checkbox/config.json +12 -1
  88. package/src/components/checkbox-group/CheckboxGroup.tsx +1 -0
  89. package/src/components/checkbox-group/checkbox-group.django-snapshot.html +372 -0
  90. package/src/components/checkbox-group/checkbox-group.django.html +2 -2
  91. package/src/components/checkbox-group/checkbox-group.react-snapshot.html +300 -0
  92. package/src/components/checkbox-group/config.json +24 -0
  93. package/src/components/clickable/clickable-bg-color-change.django.html +1 -0
  94. package/src/components/clickable/clickable-color-change.django.html +1 -0
  95. package/src/components/clickable/clickable-link.django.html +1 -0
  96. package/src/components/clickable/clickable.django-snapshot.html +221 -0
  97. package/src/components/clickable/clickable.django.html +6 -2
  98. package/src/components/clickable/clickable.react-snapshot.html +194 -0
  99. package/src/components/clickable/config.json +9 -7
  100. package/src/components/code/code.django-snapshot.html +375 -0
  101. package/src/components/code/code.django.html +1 -1
  102. package/src/components/code/code.html +201 -38
  103. package/src/components/code/code.react-snapshot.html +249 -0
  104. package/src/components/code/config.json +18 -0
  105. package/src/components/collection/collection.django-snapshot.html +238 -0
  106. package/src/components/collection/collection.django.html +1 -1
  107. package/src/components/collection/collection.react-snapshot.html +200 -0
  108. package/src/components/collection/config.json +49 -0
  109. package/src/components/combobox/Combobox.tsx +1 -0
  110. package/src/components/combobox/combobox.django-snapshot.html +1302 -0
  111. package/src/components/combobox/combobox.django.html +3 -5
  112. package/src/components/combobox/combobox.react-snapshot.html +714 -0
  113. package/src/components/combobox/config.json +269 -2
  114. package/src/components/container/Container.tsx +3 -3
  115. package/src/components/container/config.json +9 -5
  116. package/src/components/container/container.django-snapshot.html +2820 -0
  117. package/src/components/container/container.django.html +2 -2
  118. package/src/components/container/container.react-snapshot.html +2400 -0
  119. package/src/components/copy-to-clipboard/CopyToClipboard.tsx +2 -2
  120. package/src/components/copy-to-clipboard/config.json +8 -0
  121. package/src/components/copy-to-clipboard/copy-to-clipboard.django-snapshot.html +84 -0
  122. package/src/components/copy-to-clipboard/copy-to-clipboard.django.html +1 -1
  123. package/src/components/copy-to-clipboard/copy-to-clipboard.react-snapshot.html +60 -0
  124. package/src/components/date-picker/date-picker.django-snapshot.html +150 -0
  125. package/src/components/date-picker/date-picker.django.html +1 -1
  126. package/src/components/date-picker/date-picker.react-snapshot.html +122 -0
  127. package/src/components/date-range-picker/date-range-picker.django-snapshot.html +301 -0
  128. package/src/components/date-range-picker/date-range-picker.django.html +1 -1
  129. package/src/components/date-range-picker/date-range-picker.react-snapshot.html +246 -0
  130. package/src/components/details/Details.tsx +8 -28
  131. package/src/components/details/config.json +11 -28
  132. package/src/components/details/details.django-snapshot.html +238 -0
  133. package/src/components/details/details.django.html +7 -4
  134. package/src/components/details/details.html +72 -43
  135. package/src/components/details/details.react-snapshot.html +215 -0
  136. package/src/components/drawer/Drawer.tsx +125 -0
  137. package/src/components/drawer/config.json +97 -0
  138. package/src/components/drawer/drawer.django-snapshot.html +1711 -0
  139. package/src/components/drawer/drawer.django.html +34 -0
  140. package/src/components/drawer/drawer.html +1031 -0
  141. package/src/components/drawer/drawer.react-snapshot.html +1027 -0
  142. package/src/components/error-message/config.json +4 -0
  143. package/src/components/error-message/error-message.django-snapshot.html +12 -0
  144. package/src/components/error-message/error-message.react-snapshot.html +12 -0
  145. package/src/components/error-page/config.json +3 -2
  146. package/src/components/error-page/error-page.django-snapshot.html +570 -0
  147. package/src/components/error-page/error-page.django.html +2 -2
  148. package/src/components/error-page/error-page.html +2 -2
  149. package/src/components/error-page/error-page.react-snapshot.html +467 -0
  150. package/src/components/eyebrow/config.json +3 -0
  151. package/src/components/eyebrow/eyebrow.django-snapshot.html +8 -0
  152. package/src/components/eyebrow/eyebrow.react-snapshot.html +8 -0
  153. package/src/components/fieldset/config.json +4 -0
  154. package/src/components/fieldset/fieldset.django-snapshot.html +50 -0
  155. package/src/components/fieldset/fieldset.django.html +2 -1
  156. package/src/components/fieldset/fieldset.react-snapshot.html +39 -0
  157. package/src/components/file-input/FileInput.tsx +2 -1
  158. package/src/components/file-input/_contents.django.html +29 -0
  159. package/src/components/file-input/config.json +7 -3
  160. package/src/components/file-input/file-input.django-snapshot.html +534 -0
  161. package/src/components/file-input/file-input.django.html +3 -50
  162. package/src/components/file-input/file-input.html +246 -286
  163. package/src/components/file-input/file-input.react-snapshot.html +440 -0
  164. package/src/components/file-list/config.json +2 -2
  165. package/src/components/file-list/file-list.django-snapshot.html +328 -0
  166. package/src/components/file-list/file-list.django.html +9 -6
  167. package/src/components/file-list/file-list.react-snapshot.html +276 -0
  168. package/src/components/footer/config.json +162 -1
  169. package/src/components/footer/footer.django-snapshot.html +1009 -0
  170. package/src/components/footer/footer.django.html +10 -7
  171. package/src/components/footer/footer.html +21 -21
  172. package/src/components/footer/footer.react-snapshot.html +796 -0
  173. package/src/components/form-group/config.json +3 -0
  174. package/src/components/form-group/form-group.django-snapshot.html +50 -0
  175. package/src/components/form-group/form-group.django.html +1 -1
  176. package/src/components/form-group/form-group.react-snapshot.html +43 -0
  177. package/src/components/header/Header.tsx +3 -3
  178. package/src/components/header/branding.django.html +14 -0
  179. package/src/components/header/config.json +73 -0
  180. package/src/components/header/header.django-snapshot.html +3395 -0
  181. package/src/components/header/header.django.html +9 -5
  182. package/src/components/header/header.html +54 -54
  183. package/src/components/header/header.react-snapshot.html +2675 -0
  184. package/src/components/hero/Hero.tsx +4 -4
  185. package/src/components/hero/config.json +7 -6
  186. package/src/components/hero/hero.django-snapshot.html +409 -0
  187. package/src/components/hero/hero.django.html +5 -5
  188. package/src/components/hero/hero.html +13 -14
  189. package/src/components/hero/hero.react-snapshot.html +353 -0
  190. package/src/components/hint/config.json +4 -0
  191. package/src/components/hint/hint.django-snapshot.html +7 -0
  192. package/src/components/hint/hint.react-snapshot.html +7 -0
  193. package/src/components/icon/Icon.tsx +14 -12
  194. package/src/components/icon/config.json +7 -15
  195. package/src/components/icon/icon.django-snapshot.html +69 -0
  196. package/src/components/icon/icon.django.html +4 -10
  197. package/src/components/icon/icon.html +90 -90
  198. package/src/components/icon/icon.react-snapshot.html +69 -0
  199. package/src/components/icon-list/icon-list.django-snapshot.html +244 -0
  200. package/src/components/icon-list/icon-list.django.html +2 -2
  201. package/src/components/icon-list/icon-list.react-snapshot.html +215 -0
  202. package/src/components/identifier/Identifier.tsx +1 -1
  203. package/src/components/identifier/config.json +1 -1
  204. package/src/components/identifier/identifier.django-snapshot.html +1129 -0
  205. package/src/components/identifier/identifier.django.html +3 -3
  206. package/src/components/identifier/identifier.html +2 -2
  207. package/src/components/identifier/identifier.react-snapshot.html +959 -0
  208. package/src/components/image/config.json +4 -0
  209. package/src/components/image/image.django-snapshot.html +166 -0
  210. package/src/components/image/image.django.html +1 -1
  211. package/src/components/image/image.html +4 -4
  212. package/src/components/image/image.react-snapshot.html +150 -0
  213. package/src/components/in-page-nav/InPageNav.tsx +4 -3
  214. package/src/components/in-page-nav/config.json +5 -11
  215. package/src/components/in-page-nav/in-page-nav.django-snapshot.html +228 -0
  216. package/src/components/in-page-nav/in-page-nav.django.html +4 -4
  217. package/src/components/in-page-nav/in-page-nav.react-snapshot.html +228 -0
  218. package/src/components/indicator/config.json +8 -0
  219. package/src/components/indicator/indicator.django-snapshot.html +57 -0
  220. package/src/components/indicator/indicator.react-snapshot.html +44 -0
  221. package/src/components/input/config.json +18 -1
  222. package/src/components/input/input.django-snapshot.html +121 -0
  223. package/src/components/input/input.django.html +16 -8
  224. package/src/components/input/input.react-snapshot.html +94 -0
  225. package/src/components/label/Label.tsx +4 -1
  226. package/src/components/label/config.json +7 -0
  227. package/src/components/label/label.django-snapshot.html +22 -0
  228. package/src/components/label/label.django.html +4 -1
  229. package/src/components/label/label.react-snapshot.html +22 -0
  230. package/src/components/language-selector/config.json +9 -13
  231. package/src/components/language-selector/language-selector.django-snapshot.html +183 -0
  232. package/src/components/language-selector/language-selector.django.html +3 -3
  233. package/src/components/language-selector/language-selector.react-snapshot.html +169 -0
  234. package/src/components/layout/Layout.tsx +12 -1
  235. package/src/components/layout/config.json +8 -0
  236. package/src/components/layout/layout.django-snapshot.html +987 -0
  237. package/src/components/layout/layout.django.html +2 -2
  238. package/src/components/layout/layout.react-snapshot.html +876 -0
  239. package/src/components/legend/config.json +3 -0
  240. package/src/components/legend/legend.django-snapshot.html +13 -0
  241. package/src/components/legend/legend.django.html +1 -1
  242. package/src/components/legend/legend.react-snapshot.html +13 -0
  243. package/src/components/link/Link.tsx +3 -1
  244. package/src/components/link/config.json +9 -1
  245. package/src/components/link/link.django-snapshot.html +45 -0
  246. package/src/components/link/link.django.html +2 -2
  247. package/src/components/link/link.react-snapshot.html +45 -0
  248. package/src/components/list/config.json +7 -0
  249. package/src/components/list/list.django-snapshot.html +61 -0
  250. package/src/components/list/list.django.html +1 -1
  251. package/src/components/list/list.react-snapshot.html +46 -0
  252. package/src/components/memorable-date/config.json +1 -2
  253. package/src/components/memorable-date/memorable-date.django-snapshot.html +536 -0
  254. package/src/components/memorable-date/memorable-date.django.html +3 -1
  255. package/src/components/memorable-date/memorable-date.react-snapshot.html +437 -0
  256. package/src/components/misc-banner/MiscBanner.tsx +16 -10
  257. package/src/components/misc-banner/config.json +22 -4
  258. package/src/components/misc-banner/misc-banner.django-snapshot.html +370 -0
  259. package/src/components/misc-banner/misc-banner.django.html +15 -15
  260. package/src/components/misc-banner/misc-banner.react-snapshot.html +332 -0
  261. package/src/components/modal/config.json +22 -0
  262. package/src/components/modal/modal.django-snapshot.html +252 -0
  263. package/src/components/modal/modal.django.html +5 -9
  264. package/src/components/modal/modal.react-snapshot.html +229 -0
  265. package/src/components/page/Page.tsx +2 -3
  266. package/src/components/page/config.json +11 -2
  267. package/src/components/page/page.django-snapshot.html +44 -0
  268. package/src/components/page/page.django.html +4 -2
  269. package/src/components/page/page.react-snapshot.html +44 -0
  270. package/src/components/pagination/Pagination.tsx +49 -55
  271. package/src/components/pagination/config.json +58 -9
  272. package/src/components/pagination/navigation/PaginationNavigation.tsx +24 -34
  273. package/src/components/pagination/navigation/pagination-navigation.django.html +16 -23
  274. package/src/components/pagination/pagination.django-snapshot.html +2078 -0
  275. package/src/components/pagination/pagination.django.html +14 -4
  276. package/src/components/pagination/pagination.react-snapshot.html +1738 -0
  277. package/src/components/pagination/step-options/PaginationStepOptions.tsx +2 -8
  278. package/src/components/pagination/step-options/pagination-step-options.django.html +1 -1
  279. package/src/components/popover/Popover.tsx +114 -0
  280. package/src/components/popover/PopoverMenu.tsx +80 -0
  281. package/src/components/popover/config.json +130 -0
  282. package/src/components/popover/popover-menu.django.html +35 -0
  283. package/src/components/popover/popover.django-snapshot.html +1201 -0
  284. package/src/components/popover/popover.django.html +11 -0
  285. package/src/components/popover/popover.html +1081 -0
  286. package/src/components/popover/popover.react-snapshot.html +1101 -0
  287. package/src/components/process-list/ProcessList.tsx +6 -21
  288. package/src/components/process-list/config.json +18 -2
  289. package/src/components/process-list/process-list.django-snapshot.html +90 -0
  290. package/src/components/process-list/process-list.django.html +2 -2
  291. package/src/components/process-list/process-list.react-snapshot.html +78 -0
  292. package/src/components/prose/Prose.tsx +3 -3
  293. package/src/components/prose/config.json +6 -2
  294. package/src/components/prose/prose.django-snapshot.html +250 -0
  295. package/src/components/prose/prose.django.html +3 -3
  296. package/src/components/prose/prose.react-snapshot.html +250 -0
  297. package/src/components/quote/Quote.tsx +2 -2
  298. package/src/components/quote/config.json +5 -2
  299. package/src/components/quote/quote.django-snapshot.html +348 -0
  300. package/src/components/quote/quote.django.html +2 -2
  301. package/src/components/quote/quote.react-snapshot.html +322 -0
  302. package/src/components/radio-buttons/RadioButtons.tsx +15 -13
  303. package/src/components/radio-buttons/config.json +23 -0
  304. package/src/components/radio-buttons/radio-buttons.django-snapshot.html +760 -0
  305. package/src/components/radio-buttons/radio-buttons.django.html +12 -4
  306. package/src/components/radio-buttons/radio-buttons.react-snapshot.html +592 -0
  307. package/src/components/range-slider/RangeSlider.tsx +1 -1
  308. package/src/components/range-slider/range-slider.django-snapshot.html +157 -0
  309. package/src/components/range-slider/range-slider.django.html +1 -1
  310. package/src/components/range-slider/range-slider.react-snapshot.html +134 -0
  311. package/src/components/required/config.json +6 -3
  312. package/src/components/required/required.django-snapshot.html +5 -0
  313. package/src/components/required/required.react-snapshot.html +5 -0
  314. package/src/components/search/Search.tsx +6 -9
  315. package/src/components/search/config.json +5 -3
  316. package/src/components/search/search.django-snapshot.html +1795 -0
  317. package/src/components/search/search.django.html +7 -6
  318. package/src/components/search/search.react-snapshot.html +393 -0
  319. package/src/components/section/Section.tsx +3 -3
  320. package/src/components/section/config.json +12 -4
  321. package/src/components/section/section.django-snapshot.html +87 -0
  322. package/src/components/section/section.django.html +6 -6
  323. package/src/components/section/section.react-snapshot.html +78 -0
  324. package/src/components/select/Select.tsx +1 -0
  325. package/src/components/select/config.json +18 -0
  326. package/src/components/select/select.django-snapshot.html +146 -0
  327. package/src/components/select/select.django.html +1 -1
  328. package/src/components/select/select.react-snapshot.html +104 -0
  329. package/src/components/sidenav/config.json +17 -0
  330. package/src/components/sidenav/sidenav.django-snapshot.html +94 -0
  331. package/src/components/sidenav/sidenav.django.html +2 -2
  332. package/src/components/sidenav/sidenav.react-snapshot.html +55 -0
  333. package/src/components/site-alert/SiteAlert.tsx +10 -38
  334. package/src/components/site-alert/config.json +10 -3
  335. package/src/components/site-alert/site-alert.django-snapshot.html +400 -0
  336. package/src/components/site-alert/site-alert.django.html +1 -1
  337. package/src/components/site-alert/site-alert.react-snapshot.html +332 -0
  338. package/src/components/skipnav/config.json +3 -0
  339. package/src/components/skipnav/skipnav.django-snapshot.html +40 -0
  340. package/src/components/skipnav/skipnav.django.html +1 -1
  341. package/src/components/skipnav/skipnav.react-snapshot.html +33 -0
  342. package/src/components/spinner/Spinner.tsx +1 -0
  343. package/src/components/spinner/config.json +7 -0
  344. package/src/components/spinner/spinner.django-snapshot.html +299 -0
  345. package/src/components/spinner/spinner.django.html +1 -1
  346. package/src/components/spinner/spinner.react-snapshot.html +302 -0
  347. package/src/components/status/config.json +1 -0
  348. package/src/components/status/status.django-snapshot.html +71 -0
  349. package/src/components/status/status.react-snapshot.html +71 -0
  350. package/src/components/step-indicator/StepIndicator.tsx +4 -4
  351. package/src/components/step-indicator/config.json +22 -2
  352. package/src/components/step-indicator/step-indicator.django-snapshot.html +224 -0
  353. package/src/components/step-indicator/step-indicator.django.html +3 -3
  354. package/src/components/step-indicator/step-indicator.react-snapshot.html +204 -0
  355. package/src/components/summary/Summary.tsx +54 -0
  356. package/src/components/summary/config.json +56 -0
  357. package/src/components/summary/summary.django-snapshot.html +36 -0
  358. package/src/components/summary/summary.django.html +11 -0
  359. package/src/components/summary/summary.html +17 -0
  360. package/src/components/summary/summary.react-snapshot.html +36 -0
  361. package/src/components/summary-box/config.json +5 -0
  362. package/src/components/summary-box/summary-box.django-snapshot.html +188 -0
  363. package/src/components/summary-box/summary-box.react-snapshot.html +177 -0
  364. package/src/components/swap/config.json +3 -3
  365. package/src/components/swap/swap.django-snapshot.html +110 -0
  366. package/src/components/swap/swap.html +1 -1
  367. package/src/components/swap/swap.react-snapshot.html +100 -0
  368. package/src/components/switch/config.json +3 -0
  369. package/src/components/switch/switch.django-snapshot.html +73 -0
  370. package/src/components/switch/switch.django.html +6 -8
  371. package/src/components/switch/switch.react-snapshot.html +73 -0
  372. package/src/components/table/Table.tsx +27 -11
  373. package/src/components/table/TableBody.tsx +12 -9
  374. package/src/components/table/config.json +46 -1
  375. package/src/components/table/table-detail-row.django.html +1 -1
  376. package/src/components/table/table-foot.django.html +1 -1
  377. package/src/components/table/table-head.django.html +1 -1
  378. package/src/components/table/table.django-snapshot.html +1970 -0
  379. package/src/components/table/table.react-snapshot.html +2166 -0
  380. package/src/components/tag/config.json +3 -0
  381. package/src/components/tag/tag.django-snapshot.html +109 -0
  382. package/src/components/tag/tag.django.html +4 -4
  383. package/src/components/tag/tag.react-snapshot.html +99 -0
  384. package/src/components/tag-group/config.json +24 -0
  385. package/src/components/tag-group/tag-group.django-snapshot.html +25 -0
  386. package/src/components/tag-group/tag-group.django.html +1 -1
  387. package/src/components/tag-group/tag-group.react-snapshot.html +17 -0
  388. package/src/components/task-list/config.json +33 -0
  389. package/src/components/task-list/task-list.django-snapshot.html +273 -0
  390. package/src/components/task-list/task-list.django.html +1 -1
  391. package/src/components/task-list/task-list.react-snapshot.html +252 -0
  392. package/src/components/text-area/TextArea.tsx +1 -1
  393. package/src/components/text-area/config.json +5 -0
  394. package/src/components/text-area/text-area.django-snapshot.html +127 -0
  395. package/src/components/text-area/text-area.django.html +3 -3
  396. package/src/components/text-area/text-area.react-snapshot.html +108 -0
  397. package/src/components/theme-picker/ThemePicker.tsx +45 -60
  398. package/src/components/theme-picker/config.json +54 -2
  399. package/src/components/theme-picker/theme-picker.django-snapshot.html +109 -0
  400. package/src/components/theme-picker/theme-picker.django.html +8 -8
  401. package/src/components/theme-picker/theme-picker.react-snapshot.html +94 -0
  402. package/src/components/time-picker/TimePicker.tsx +15 -9
  403. package/src/components/time-picker/config.json +2 -2
  404. package/src/components/time-picker/time-picker.django-snapshot.html +190 -0
  405. package/src/components/time-picker/time-picker.django.html +2 -2
  406. package/src/components/time-picker/time-picker.html +7 -7
  407. package/src/components/time-picker/time-picker.react-snapshot.html +157 -0
  408. package/src/components/toggle/_option.django.html +21 -0
  409. package/src/components/toggle/config.json +23 -2
  410. package/src/components/toggle/toggle.django-snapshot.html +419 -0
  411. package/src/components/toggle/toggle.django.html +10 -21
  412. package/src/components/toggle/toggle.html +318 -323
  413. package/src/components/toggle/toggle.react-snapshot.html +419 -0
  414. package/src/components/tooltip/Tooltip.tsx +2 -2
  415. package/src/components/tooltip/config.json +6 -1
  416. package/src/components/tooltip/tooltip.django-snapshot.html +57 -0
  417. package/src/components/tooltip/tooltip.django.html +1 -1
  418. package/src/components/tooltip/tooltip.react-snapshot.html +62 -0
  419. package/src/components/tree/Tree.tsx +91 -0
  420. package/src/components/tree/_tree-items.django.html +15 -0
  421. package/src/components/tree/config.json +105 -0
  422. package/src/components/tree/tree.django-snapshot.html +525 -0
  423. package/src/components/tree/tree.django.html +5 -0
  424. package/src/components/tree/tree.html +432 -0
  425. package/src/components/tree/tree.react-snapshot.html +432 -0
  426. package/src/components/villain/config.json +9 -0
  427. package/src/components/villain/villain.django-snapshot.html +44 -0
  428. package/src/components/villain/villain.react-snapshot.html +35 -0
  429. package/src/index.js +4 -0
@@ -0,0 +1,1795 @@
1
+ <h3 class="site-preview-heading">Default</h3>
2
+ <section aria-label="Search">
3
+ <form
4
+ id="django-search-default-form"
5
+ class="
6
+ usa-search
7
+
8
+
9
+
10
+ "
11
+ method="get"
12
+ role="search"
13
+
14
+ >
15
+
16
+
17
+ <label
18
+
19
+ class="
20
+
21
+ usa-label usx-label
22
+
23
+
24
+ usa-sr-only
25
+
26
+
27
+
28
+ "
29
+
30
+ for="django-search-default"
31
+
32
+ >
33
+ Search
34
+ </label>
35
+
36
+ <input
37
+ id="django-search-default"
38
+ class="usa-input usx-input"
39
+ placeholder=""
40
+ value=""
41
+ type="search"
42
+ name="q"
43
+ />
44
+
45
+
46
+
47
+
48
+
49
+
50
+ <button
51
+ type="submit"
52
+ class="
53
+ usa-button usx-button
54
+ usa-button--primary
55
+
56
+
57
+
58
+
59
+ "
60
+
61
+
62
+ >
63
+
64
+
65
+
66
+
67
+
68
+
69
+ <span class="usa-search__submit-text">Search</span>
70
+
71
+
72
+ <svg
73
+ class="
74
+ usa-icon usx-icon
75
+
76
+ usa-search__submit-icon
77
+
78
+ "
79
+
80
+ aria-hidden="true"
81
+ focusable="false"
82
+ role="img"
83
+ >
84
+
85
+ <use href="img/sprite.svg#search"></use>
86
+
87
+ </svg>
88
+
89
+
90
+
91
+
92
+
93
+
94
+ </button>
95
+
96
+
97
+
98
+ </form>
99
+ <script data-id="search-default" data-on-submit="" data-search-key="q">
100
+ const data = document.currentScript.dataset;
101
+ const onSubmit = data.onSubmit;
102
+
103
+ if (!!onSubmit) {
104
+ const id = data.id;
105
+ const searchKey = data.searchKey;
106
+ document.addEventListener("DOMContentLoaded", function() {
107
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
108
+ e.preventDefault();
109
+ const formData = new FormData(e.target);
110
+ const query = formData.get(searchKey);
111
+ const func = eval(onSubmit);
112
+ func(query);
113
+ return false;
114
+ };
115
+ });
116
+ }
117
+
118
+ </script>
119
+ </section>
120
+
121
+ <h3 class="site-preview-heading">Custom Placeholder</h3>
122
+ <section aria-label="Search">
123
+ <form
124
+ id="django-search-custom-placeholder-form"
125
+ class="
126
+ usa-search
127
+
128
+
129
+
130
+ "
131
+ method="get"
132
+ role="search"
133
+
134
+ >
135
+
136
+
137
+ <label
138
+
139
+ class="
140
+
141
+ usa-label usx-label
142
+
143
+
144
+ usa-sr-only
145
+
146
+
147
+
148
+ "
149
+
150
+ for="django-search-custom-placeholder"
151
+
152
+ >
153
+ Search
154
+ </label>
155
+
156
+ <input
157
+ id="django-search-custom-placeholder"
158
+ class="usa-input usx-input"
159
+ placeholder="Custom placeholder..."
160
+ value=""
161
+ type="search"
162
+ name="q"
163
+ />
164
+
165
+
166
+
167
+
168
+
169
+
170
+ <button
171
+ type="submit"
172
+ class="
173
+ usa-button usx-button
174
+ usa-button--primary
175
+
176
+
177
+
178
+
179
+ "
180
+
181
+
182
+ >
183
+
184
+
185
+
186
+
187
+
188
+
189
+ <span class="usa-search__submit-text">Search</span>
190
+
191
+
192
+ <svg
193
+ class="
194
+ usa-icon usx-icon
195
+
196
+ usa-search__submit-icon
197
+
198
+ "
199
+
200
+ aria-hidden="true"
201
+ focusable="false"
202
+ role="img"
203
+ >
204
+
205
+ <use href="img/sprite.svg#search"></use>
206
+
207
+ </svg>
208
+
209
+
210
+
211
+
212
+
213
+
214
+ </button>
215
+
216
+
217
+
218
+ </form>
219
+ <script data-id="search-custom-placeholder" data-on-submit="" data-search-key="q">
220
+ const data = document.currentScript.dataset;
221
+ const onSubmit = data.onSubmit;
222
+
223
+ if (!!onSubmit) {
224
+ const id = data.id;
225
+ const searchKey = data.searchKey;
226
+ document.addEventListener("DOMContentLoaded", function() {
227
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
228
+ e.preventDefault();
229
+ const formData = new FormData(e.target);
230
+ const query = formData.get(searchKey);
231
+ const func = eval(onSubmit);
232
+ func(query);
233
+ return false;
234
+ };
235
+ });
236
+ }
237
+
238
+ </script>
239
+ </section>
240
+
241
+ <h3 class="site-preview-heading">With Default Value</h3>
242
+ <section aria-label="Search">
243
+ <form
244
+ id="django-search-default-value-form"
245
+ class="
246
+ usa-search
247
+
248
+
249
+
250
+ "
251
+ method="get"
252
+ role="search"
253
+
254
+ >
255
+
256
+
257
+ <label
258
+
259
+ class="
260
+
261
+ usa-label usx-label
262
+
263
+
264
+ usa-sr-only
265
+
266
+
267
+
268
+ "
269
+
270
+ for="django-search-default-value"
271
+
272
+ >
273
+ Search
274
+ </label>
275
+
276
+ <input
277
+ id="django-search-default-value"
278
+ class="usa-input usx-input"
279
+ placeholder=""
280
+ value="Default search value"
281
+ type="search"
282
+ name="q"
283
+ />
284
+
285
+
286
+
287
+
288
+
289
+
290
+ <button
291
+ type="submit"
292
+ class="
293
+ usa-button usx-button
294
+ usa-button--primary
295
+
296
+
297
+
298
+
299
+ "
300
+
301
+
302
+ >
303
+
304
+
305
+
306
+
307
+
308
+
309
+ <span class="usa-search__submit-text">Search</span>
310
+
311
+
312
+ <svg
313
+ class="
314
+ usa-icon usx-icon
315
+
316
+ usa-search__submit-icon
317
+
318
+ "
319
+
320
+ aria-hidden="true"
321
+ focusable="false"
322
+ role="img"
323
+ >
324
+
325
+ <use href="img/sprite.svg#search"></use>
326
+
327
+ </svg>
328
+
329
+
330
+
331
+
332
+
333
+
334
+ </button>
335
+
336
+
337
+
338
+ </form>
339
+ <script data-id="search-default-value" data-on-submit="" data-search-key="q">
340
+ const data = document.currentScript.dataset;
341
+ const onSubmit = data.onSubmit;
342
+
343
+ if (!!onSubmit) {
344
+ const id = data.id;
345
+ const searchKey = data.searchKey;
346
+ document.addEventListener("DOMContentLoaded", function() {
347
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
348
+ e.preventDefault();
349
+ const formData = new FormData(e.target);
350
+ const query = formData.get(searchKey);
351
+ const func = eval(onSubmit);
352
+ func(query);
353
+ return false;
354
+ };
355
+ });
356
+ }
357
+
358
+ </script>
359
+ </section>
360
+
361
+ <h3 class="site-preview-heading">Big</h3>
362
+ <section aria-label="Search">
363
+ <form
364
+ id="django-search-big-form"
365
+ class="
366
+ usa-search
367
+
368
+ usa-search--big
369
+
370
+ "
371
+ method="get"
372
+ role="search"
373
+
374
+ >
375
+
376
+
377
+ <label
378
+
379
+ class="
380
+
381
+ usa-label usx-label
382
+
383
+
384
+ usa-sr-only
385
+
386
+
387
+
388
+ "
389
+
390
+ for="django-search-big"
391
+
392
+ >
393
+ Search
394
+ </label>
395
+
396
+ <input
397
+ id="django-search-big"
398
+ class="usa-input usx-input"
399
+ placeholder=""
400
+ value=""
401
+ type="search"
402
+ name="q"
403
+ />
404
+
405
+
406
+
407
+
408
+
409
+
410
+ <button
411
+ type="submit"
412
+ class="
413
+ usa-button usx-button
414
+ usa-button--primary
415
+
416
+
417
+
418
+
419
+ "
420
+
421
+
422
+ >
423
+
424
+
425
+
426
+
427
+
428
+
429
+ <span class="usa-search__submit-text">Search</span>
430
+
431
+
432
+ <svg
433
+ class="
434
+ usa-icon usx-icon
435
+
436
+ usa-search__submit-icon
437
+
438
+ "
439
+
440
+ aria-hidden="true"
441
+ focusable="false"
442
+ role="img"
443
+ >
444
+
445
+ <use href="img/sprite.svg#search"></use>
446
+
447
+ </svg>
448
+
449
+
450
+
451
+
452
+
453
+
454
+ </button>
455
+
456
+
457
+
458
+ </form>
459
+ <script data-id="search-big" data-on-submit="" data-search-key="q">
460
+ const data = document.currentScript.dataset;
461
+ const onSubmit = data.onSubmit;
462
+
463
+ if (!!onSubmit) {
464
+ const id = data.id;
465
+ const searchKey = data.searchKey;
466
+ document.addEventListener("DOMContentLoaded", function() {
467
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
468
+ e.preventDefault();
469
+ const formData = new FormData(e.target);
470
+ const query = formData.get(searchKey);
471
+ const func = eval(onSubmit);
472
+ func(query);
473
+ return false;
474
+ };
475
+ });
476
+ }
477
+
478
+ </script>
479
+ </section>
480
+
481
+ <h3 class="site-preview-heading">Icon Only</h3>
482
+ <section aria-label="Search">
483
+ <form
484
+ id="django-search-icon-only-form"
485
+ class="
486
+ usa-search
487
+ usa-search--small
488
+
489
+
490
+ "
491
+ method="get"
492
+ role="search"
493
+
494
+ >
495
+
496
+
497
+ <label
498
+
499
+ class="
500
+
501
+ usa-label usx-label
502
+
503
+
504
+ usa-sr-only
505
+
506
+
507
+
508
+ "
509
+
510
+ for="django-search-icon-only"
511
+
512
+ >
513
+ Search
514
+ </label>
515
+
516
+ <input
517
+ id="django-search-icon-only"
518
+ class="usa-input usx-input"
519
+ placeholder=""
520
+ value=""
521
+ type="search"
522
+ name="q"
523
+ />
524
+
525
+
526
+
527
+
528
+
529
+
530
+ <button
531
+ type="submit"
532
+ class="
533
+ usa-button usx-button
534
+ usa-button--primary
535
+
536
+
537
+
538
+
539
+ "
540
+
541
+
542
+ >
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+ <svg
552
+ class="
553
+ usa-icon usx-icon
554
+
555
+ usa-search__submit-icon display-inline-block
556
+
557
+ "
558
+
559
+ aria-label="Search"
560
+ focusable="false"
561
+ role="img"
562
+ >
563
+
564
+ <use href="img/sprite.svg#search"></use>
565
+
566
+ </svg>
567
+
568
+
569
+
570
+
571
+
572
+
573
+ </button>
574
+
575
+
576
+
577
+ </form>
578
+ <script data-id="search-icon-only" data-on-submit="" data-search-key="q">
579
+ const data = document.currentScript.dataset;
580
+ const onSubmit = data.onSubmit;
581
+
582
+ if (!!onSubmit) {
583
+ const id = data.id;
584
+ const searchKey = data.searchKey;
585
+ document.addEventListener("DOMContentLoaded", function() {
586
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
587
+ e.preventDefault();
588
+ const formData = new FormData(e.target);
589
+ const query = formData.get(searchKey);
590
+ const func = eval(onSubmit);
591
+ func(query);
592
+ return false;
593
+ };
594
+ });
595
+ }
596
+
597
+ </script>
598
+ </section>
599
+
600
+ <h3 class="site-preview-heading">Big Icon Only</h3>
601
+ <section aria-label="Search">
602
+ <form
603
+ id="django-search-big-icon-only-form"
604
+ class="
605
+ usa-search
606
+
607
+ usa-search--big
608
+
609
+ "
610
+ method="get"
611
+ role="search"
612
+
613
+ >
614
+
615
+
616
+ <label
617
+
618
+ class="
619
+
620
+ usa-label usx-label
621
+
622
+
623
+ usa-sr-only
624
+
625
+
626
+
627
+ "
628
+
629
+ for="django-search-big-icon-only"
630
+
631
+ >
632
+ Search
633
+ </label>
634
+
635
+ <input
636
+ id="django-search-big-icon-only"
637
+ class="usa-input usx-input"
638
+ placeholder=""
639
+ value=""
640
+ type="search"
641
+ name="q"
642
+ />
643
+
644
+
645
+
646
+
647
+
648
+
649
+ <button
650
+ type="submit"
651
+ class="
652
+ usa-button usx-button
653
+ usa-button--primary
654
+
655
+
656
+
657
+
658
+ "
659
+
660
+
661
+ >
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+ <svg
671
+ class="
672
+ usa-icon usx-icon
673
+
674
+ usa-search__submit-icon display-inline-block
675
+
676
+ "
677
+
678
+ aria-label="Search"
679
+ focusable="false"
680
+ role="img"
681
+ >
682
+
683
+ <use href="img/sprite.svg#search"></use>
684
+
685
+ </svg>
686
+
687
+
688
+
689
+
690
+
691
+
692
+ </button>
693
+
694
+
695
+
696
+ </form>
697
+ <script data-id="search-big-icon-only" data-on-submit="" data-search-key="q">
698
+ const data = document.currentScript.dataset;
699
+ const onSubmit = data.onSubmit;
700
+
701
+ if (!!onSubmit) {
702
+ const id = data.id;
703
+ const searchKey = data.searchKey;
704
+ document.addEventListener("DOMContentLoaded", function() {
705
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
706
+ e.preventDefault();
707
+ const formData = new FormData(e.target);
708
+ const query = formData.get(searchKey);
709
+ const func = eval(onSubmit);
710
+ func(query);
711
+ return false;
712
+ };
713
+ });
714
+ }
715
+
716
+ </script>
717
+ </section>
718
+
719
+ <h3 class="site-preview-heading">Non Standard Icon</h3>
720
+ <section aria-label="Search">
721
+ <form
722
+ id="django-search-non-standard-icon-form"
723
+ class="
724
+ usa-search
725
+ usa-search--small
726
+
727
+
728
+ "
729
+ method="get"
730
+ role="search"
731
+
732
+ >
733
+
734
+
735
+ <label
736
+
737
+ class="
738
+
739
+ usa-label usx-label
740
+
741
+
742
+ usa-sr-only
743
+
744
+
745
+
746
+ "
747
+
748
+ for="django-search-non-standard-icon"
749
+
750
+ >
751
+ Search
752
+ </label>
753
+
754
+ <input
755
+ id="django-search-non-standard-icon"
756
+ class="usa-input usx-input"
757
+ placeholder=""
758
+ value=""
759
+ type="search"
760
+ name="q"
761
+ />
762
+
763
+
764
+
765
+
766
+
767
+
768
+ <button
769
+ type="submit"
770
+ class="
771
+ usa-button usx-button
772
+ usa-button--primary
773
+
774
+
775
+
776
+
777
+ "
778
+
779
+
780
+ >
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+ <svg
790
+ class="
791
+ usa-icon usx-icon
792
+
793
+ usa-search__submit-icon display-inline-block
794
+
795
+ "
796
+
797
+ aria-label="Search"
798
+ focusable="false"
799
+ role="img"
800
+ >
801
+
802
+ <use href="img/sprite.svg#star"></use>
803
+
804
+ </svg>
805
+
806
+
807
+
808
+
809
+
810
+
811
+ </button>
812
+
813
+
814
+
815
+ </form>
816
+ <script data-id="search-non-standard-icon" data-on-submit="" data-search-key="q">
817
+ const data = document.currentScript.dataset;
818
+ const onSubmit = data.onSubmit;
819
+
820
+ if (!!onSubmit) {
821
+ const id = data.id;
822
+ const searchKey = data.searchKey;
823
+ document.addEventListener("DOMContentLoaded", function() {
824
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
825
+ e.preventDefault();
826
+ const formData = new FormData(e.target);
827
+ const query = formData.get(searchKey);
828
+ const func = eval(onSubmit);
829
+ func(query);
830
+ return false;
831
+ };
832
+ });
833
+ }
834
+
835
+ </script>
836
+ </section>
837
+
838
+ <h3 class="site-preview-heading">With Custom Button Variant</h3>
839
+ <section aria-label="Search">
840
+ <form
841
+ id="django-search-custom-variant-form"
842
+ class="
843
+ usa-search
844
+
845
+
846
+
847
+ "
848
+ method="get"
849
+ role="search"
850
+
851
+ >
852
+
853
+
854
+ <label
855
+
856
+ class="
857
+
858
+ usa-label usx-label
859
+
860
+
861
+ usa-sr-only
862
+
863
+
864
+
865
+ "
866
+
867
+ for="django-search-custom-variant"
868
+
869
+ >
870
+ Search
871
+ </label>
872
+
873
+ <input
874
+ id="django-search-custom-variant"
875
+ class="usa-input usx-input"
876
+ placeholder=""
877
+ value=""
878
+ type="search"
879
+ name="q"
880
+ />
881
+
882
+
883
+
884
+
885
+
886
+
887
+ <button
888
+ type="submit"
889
+ class="
890
+ usa-button usx-button
891
+ usa-button--accent-cool
892
+
893
+
894
+
895
+
896
+ "
897
+
898
+
899
+ >
900
+
901
+
902
+
903
+
904
+
905
+
906
+ <span class="usa-search__submit-text">Search</span>
907
+
908
+
909
+ <svg
910
+ class="
911
+ usa-icon usx-icon
912
+
913
+ usa-search__submit-icon
914
+
915
+ "
916
+
917
+ aria-hidden="true"
918
+ focusable="false"
919
+ role="img"
920
+ >
921
+
922
+ <use href="img/sprite.svg#search"></use>
923
+
924
+ </svg>
925
+
926
+
927
+
928
+
929
+
930
+
931
+ </button>
932
+
933
+
934
+
935
+ </form>
936
+ <script data-id="search-custom-variant" data-on-submit="" data-search-key="q">
937
+ const data = document.currentScript.dataset;
938
+ const onSubmit = data.onSubmit;
939
+
940
+ if (!!onSubmit) {
941
+ const id = data.id;
942
+ const searchKey = data.searchKey;
943
+ document.addEventListener("DOMContentLoaded", function() {
944
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
945
+ e.preventDefault();
946
+ const formData = new FormData(e.target);
947
+ const query = formData.get(searchKey);
948
+ const func = eval(onSubmit);
949
+ func(query);
950
+ return false;
951
+ };
952
+ });
953
+ }
954
+
955
+ </script>
956
+ </section>
957
+
958
+ <h3 class="site-preview-heading">Custom Label</h3>
959
+ <section aria-label="Find a program">
960
+ <form
961
+ id="django-search-custom-label-form"
962
+ class="
963
+ usa-search
964
+
965
+
966
+
967
+ "
968
+ method="get"
969
+ role="search"
970
+
971
+ >
972
+
973
+
974
+ <label
975
+
976
+ class="
977
+
978
+ usa-label usx-label
979
+
980
+
981
+ usa-sr-only
982
+
983
+
984
+
985
+ "
986
+
987
+ for="django-search-custom-label"
988
+
989
+ >
990
+ Find a program
991
+ </label>
992
+
993
+ <input
994
+ id="django-search-custom-label"
995
+ class="usa-input usx-input"
996
+ placeholder=""
997
+ value=""
998
+ type="search"
999
+ name="q"
1000
+ />
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+ <button
1008
+ type="submit"
1009
+ class="
1010
+ usa-button usx-button
1011
+ usa-button--primary
1012
+
1013
+
1014
+
1015
+
1016
+ "
1017
+
1018
+
1019
+ >
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+ <span class="usa-search__submit-text">Find a program</span>
1027
+
1028
+
1029
+ <svg
1030
+ class="
1031
+ usa-icon usx-icon
1032
+
1033
+ usa-search__submit-icon
1034
+
1035
+ "
1036
+
1037
+ aria-hidden="true"
1038
+ focusable="false"
1039
+ role="img"
1040
+ >
1041
+
1042
+ <use href="img/sprite.svg#search"></use>
1043
+
1044
+ </svg>
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+ </button>
1052
+
1053
+
1054
+
1055
+ </form>
1056
+ <script data-id="search-custom-label" data-on-submit="" data-search-key="q">
1057
+ const data = document.currentScript.dataset;
1058
+ const onSubmit = data.onSubmit;
1059
+
1060
+ if (!!onSubmit) {
1061
+ const id = data.id;
1062
+ const searchKey = data.searchKey;
1063
+ document.addEventListener("DOMContentLoaded", function() {
1064
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
1065
+ e.preventDefault();
1066
+ const formData = new FormData(e.target);
1067
+ const query = formData.get(searchKey);
1068
+ const func = eval(onSubmit);
1069
+ func(query);
1070
+ return false;
1071
+ };
1072
+ });
1073
+ }
1074
+
1075
+ </script>
1076
+ </section>
1077
+
1078
+ <h3 class="site-preview-heading">Icon Only Custom Label</h3>
1079
+ <section aria-label="Find a program">
1080
+ <form
1081
+ id="django-search-icon-only-custom-label-form"
1082
+ class="
1083
+ usa-search
1084
+ usa-search--small
1085
+
1086
+
1087
+ "
1088
+ method="get"
1089
+ role="search"
1090
+
1091
+ >
1092
+
1093
+
1094
+ <label
1095
+
1096
+ class="
1097
+
1098
+ usa-label usx-label
1099
+
1100
+
1101
+ usa-sr-only
1102
+
1103
+
1104
+
1105
+ "
1106
+
1107
+ for="django-search-icon-only-custom-label"
1108
+
1109
+ >
1110
+ Find a program
1111
+ </label>
1112
+
1113
+ <input
1114
+ id="django-search-icon-only-custom-label"
1115
+ class="usa-input usx-input"
1116
+ placeholder=""
1117
+ value=""
1118
+ type="search"
1119
+ name="q"
1120
+ />
1121
+
1122
+
1123
+
1124
+
1125
+
1126
+
1127
+ <button
1128
+ type="submit"
1129
+ class="
1130
+ usa-button usx-button
1131
+ usa-button--primary
1132
+
1133
+
1134
+
1135
+
1136
+ "
1137
+
1138
+
1139
+ >
1140
+
1141
+
1142
+
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+ <svg
1149
+ class="
1150
+ usa-icon usx-icon
1151
+
1152
+ usa-search__submit-icon display-inline-block
1153
+
1154
+ "
1155
+
1156
+ aria-label="Find a program"
1157
+ focusable="false"
1158
+ role="img"
1159
+ >
1160
+
1161
+ <use href="img/sprite.svg#search"></use>
1162
+
1163
+ </svg>
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+ </button>
1171
+
1172
+
1173
+
1174
+ </form>
1175
+ <script data-id="search-icon-only-custom-label" data-on-submit="" data-search-key="q">
1176
+ const data = document.currentScript.dataset;
1177
+ const onSubmit = data.onSubmit;
1178
+
1179
+ if (!!onSubmit) {
1180
+ const id = data.id;
1181
+ const searchKey = data.searchKey;
1182
+ document.addEventListener("DOMContentLoaded", function() {
1183
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
1184
+ e.preventDefault();
1185
+ const formData = new FormData(e.target);
1186
+ const query = formData.get(searchKey);
1187
+ const func = eval(onSubmit);
1188
+ func(query);
1189
+ return false;
1190
+ };
1191
+ });
1192
+ }
1193
+
1194
+ </script>
1195
+ </section>
1196
+
1197
+ <h3 class="site-preview-heading">Custom Aria Label</h3>
1198
+ <section aria-label="Site search">
1199
+ <form
1200
+ id="django-search-custom-aria-label-form"
1201
+ class="
1202
+ usa-search
1203
+
1204
+
1205
+
1206
+ "
1207
+ method="get"
1208
+ role="search"
1209
+
1210
+ >
1211
+
1212
+
1213
+ <label
1214
+
1215
+ class="
1216
+
1217
+ usa-label usx-label
1218
+
1219
+
1220
+ usa-sr-only
1221
+
1222
+
1223
+
1224
+ "
1225
+
1226
+ for="django-search-custom-aria-label"
1227
+
1228
+ >
1229
+ Search
1230
+ </label>
1231
+
1232
+ <input
1233
+ id="django-search-custom-aria-label"
1234
+ class="usa-input usx-input"
1235
+ placeholder=""
1236
+ value=""
1237
+ type="search"
1238
+ name="q"
1239
+ />
1240
+
1241
+
1242
+
1243
+
1244
+
1245
+
1246
+ <button
1247
+ type="submit"
1248
+ class="
1249
+ usa-button usx-button
1250
+ usa-button--primary
1251
+
1252
+
1253
+
1254
+
1255
+ "
1256
+
1257
+
1258
+ >
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+ <span class="usa-search__submit-text">Search</span>
1266
+
1267
+
1268
+ <svg
1269
+ class="
1270
+ usa-icon usx-icon
1271
+
1272
+ usa-search__submit-icon
1273
+
1274
+ "
1275
+
1276
+ aria-hidden="true"
1277
+ focusable="false"
1278
+ role="img"
1279
+ >
1280
+
1281
+ <use href="img/sprite.svg#search"></use>
1282
+
1283
+ </svg>
1284
+
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+ </button>
1291
+
1292
+
1293
+
1294
+ </form>
1295
+ <script data-id="search-custom-aria-label" data-on-submit="" data-search-key="q">
1296
+ const data = document.currentScript.dataset;
1297
+ const onSubmit = data.onSubmit;
1298
+
1299
+ if (!!onSubmit) {
1300
+ const id = data.id;
1301
+ const searchKey = data.searchKey;
1302
+ document.addEventListener("DOMContentLoaded", function() {
1303
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
1304
+ e.preventDefault();
1305
+ const formData = new FormData(e.target);
1306
+ const query = formData.get(searchKey);
1307
+ const func = eval(onSubmit);
1308
+ func(query);
1309
+ return false;
1310
+ };
1311
+ });
1312
+ }
1313
+
1314
+ </script>
1315
+ </section>
1316
+
1317
+ <h3 class="site-preview-heading">Custom Search Key</h3>
1318
+ <section aria-label="Search">
1319
+ <form
1320
+ id="django-search-custom-key-form"
1321
+ class="
1322
+ usa-search
1323
+
1324
+
1325
+
1326
+ "
1327
+ method="get"
1328
+ role="search"
1329
+
1330
+ >
1331
+
1332
+
1333
+ <label
1334
+
1335
+ class="
1336
+
1337
+ usa-label usx-label
1338
+
1339
+
1340
+ usa-sr-only
1341
+
1342
+
1343
+
1344
+ "
1345
+
1346
+ for="django-search-custom-key"
1347
+
1348
+ >
1349
+ Search
1350
+ </label>
1351
+
1352
+ <input
1353
+ id="django-search-custom-key"
1354
+ class="usa-input usx-input"
1355
+ placeholder=""
1356
+ value=""
1357
+ type="search"
1358
+ name="query"
1359
+ />
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+ <button
1367
+ type="submit"
1368
+ class="
1369
+ usa-button usx-button
1370
+ usa-button--primary
1371
+
1372
+
1373
+
1374
+
1375
+ "
1376
+
1377
+
1378
+ >
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+ <span class="usa-search__submit-text">Search</span>
1386
+
1387
+
1388
+ <svg
1389
+ class="
1390
+ usa-icon usx-icon
1391
+
1392
+ usa-search__submit-icon
1393
+
1394
+ "
1395
+
1396
+ aria-hidden="true"
1397
+ focusable="false"
1398
+ role="img"
1399
+ >
1400
+
1401
+ <use href="img/sprite.svg#search"></use>
1402
+
1403
+ </svg>
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+ </button>
1411
+
1412
+
1413
+
1414
+ </form>
1415
+ <script data-id="search-custom-key" data-on-submit="" data-search-key="query">
1416
+ const data = document.currentScript.dataset;
1417
+ const onSubmit = data.onSubmit;
1418
+
1419
+ if (!!onSubmit) {
1420
+ const id = data.id;
1421
+ const searchKey = data.searchKey;
1422
+ document.addEventListener("DOMContentLoaded", function() {
1423
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
1424
+ e.preventDefault();
1425
+ const formData = new FormData(e.target);
1426
+ const query = formData.get(searchKey);
1427
+ const func = eval(onSubmit);
1428
+ func(query);
1429
+ return false;
1430
+ };
1431
+ });
1432
+ }
1433
+
1434
+ </script>
1435
+ </section>
1436
+
1437
+ <h3 class="site-preview-heading">Google Action</h3>
1438
+ <section aria-label="Search">
1439
+ <form
1440
+ id="django-search-google-action-form"
1441
+ class="
1442
+ usa-search
1443
+
1444
+
1445
+
1446
+ "
1447
+ method="get"
1448
+ role="search"
1449
+ action="https://www.google.com/search"
1450
+ >
1451
+
1452
+
1453
+ <label
1454
+
1455
+ class="
1456
+
1457
+ usa-label usx-label
1458
+
1459
+
1460
+ usa-sr-only
1461
+
1462
+
1463
+
1464
+ "
1465
+
1466
+ for="django-search-google-action"
1467
+
1468
+ >
1469
+ Search
1470
+ </label>
1471
+
1472
+ <input
1473
+ id="django-search-google-action"
1474
+ class="usa-input usx-input"
1475
+ placeholder="Search Google..."
1476
+ value=""
1477
+ type="search"
1478
+ name="q"
1479
+ />
1480
+
1481
+
1482
+
1483
+
1484
+
1485
+
1486
+ <button
1487
+ type="submit"
1488
+ class="
1489
+ usa-button usx-button
1490
+ usa-button--primary
1491
+
1492
+
1493
+
1494
+
1495
+ "
1496
+
1497
+
1498
+ >
1499
+
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+ <span class="usa-search__submit-text">Search</span>
1506
+
1507
+
1508
+ <svg
1509
+ class="
1510
+ usa-icon usx-icon
1511
+
1512
+ usa-search__submit-icon
1513
+
1514
+ "
1515
+
1516
+ aria-hidden="true"
1517
+ focusable="false"
1518
+ role="img"
1519
+ >
1520
+
1521
+ <use href="img/sprite.svg#search"></use>
1522
+
1523
+ </svg>
1524
+
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+ </button>
1531
+
1532
+
1533
+
1534
+ </form>
1535
+ <script data-id="search-google-action" data-on-submit="" data-search-key="q">
1536
+ const data = document.currentScript.dataset;
1537
+ const onSubmit = data.onSubmit;
1538
+
1539
+ if (!!onSubmit) {
1540
+ const id = data.id;
1541
+ const searchKey = data.searchKey;
1542
+ document.addEventListener("DOMContentLoaded", function() {
1543
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
1544
+ e.preventDefault();
1545
+ const formData = new FormData(e.target);
1546
+ const query = formData.get(searchKey);
1547
+ const func = eval(onSubmit);
1548
+ func(query);
1549
+ return false;
1550
+ };
1551
+ });
1552
+ }
1553
+
1554
+ </script>
1555
+ </section>
1556
+
1557
+ <h3 class="site-preview-heading">Path Action</h3>
1558
+ <section aria-label="Search">
1559
+ <form
1560
+ id="django-search-path-action-form"
1561
+ class="
1562
+ usa-search
1563
+
1564
+
1565
+
1566
+ "
1567
+ method="get"
1568
+ role="search"
1569
+ action="/searching-with-an-action/"
1570
+ >
1571
+
1572
+
1573
+ <label
1574
+
1575
+ class="
1576
+
1577
+ usa-label usx-label
1578
+
1579
+
1580
+ usa-sr-only
1581
+
1582
+
1583
+
1584
+ "
1585
+
1586
+ for="django-search-path-action"
1587
+
1588
+ >
1589
+ Search
1590
+ </label>
1591
+
1592
+ <input
1593
+ id="django-search-path-action"
1594
+ class="usa-input usx-input"
1595
+ placeholder="Search the site..."
1596
+ value=""
1597
+ type="search"
1598
+ name="q"
1599
+ />
1600
+
1601
+
1602
+
1603
+
1604
+
1605
+
1606
+ <button
1607
+ type="submit"
1608
+ class="
1609
+ usa-button usx-button
1610
+ usa-button--primary
1611
+
1612
+
1613
+
1614
+
1615
+ "
1616
+
1617
+
1618
+ >
1619
+
1620
+
1621
+
1622
+
1623
+
1624
+
1625
+ <span class="usa-search__submit-text">Search</span>
1626
+
1627
+
1628
+ <svg
1629
+ class="
1630
+ usa-icon usx-icon
1631
+
1632
+ usa-search__submit-icon
1633
+
1634
+ "
1635
+
1636
+ aria-hidden="true"
1637
+ focusable="false"
1638
+ role="img"
1639
+ >
1640
+
1641
+ <use href="img/sprite.svg#search"></use>
1642
+
1643
+ </svg>
1644
+
1645
+
1646
+
1647
+
1648
+
1649
+
1650
+ </button>
1651
+
1652
+
1653
+
1654
+ </form>
1655
+ <script data-id="search-path-action" data-on-submit="" data-search-key="q">
1656
+ const data = document.currentScript.dataset;
1657
+ const onSubmit = data.onSubmit;
1658
+
1659
+ if (!!onSubmit) {
1660
+ const id = data.id;
1661
+ const searchKey = data.searchKey;
1662
+ document.addEventListener("DOMContentLoaded", function() {
1663
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
1664
+ e.preventDefault();
1665
+ const formData = new FormData(e.target);
1666
+ const query = formData.get(searchKey);
1667
+ const func = eval(onSubmit);
1668
+ func(query);
1669
+ return false;
1670
+ };
1671
+ });
1672
+ }
1673
+
1674
+ </script>
1675
+ </section>
1676
+
1677
+ <h3 class="site-preview-heading">With On Submit</h3>
1678
+ <section aria-label="Search">
1679
+ <form
1680
+ id="django-search-with-onsubmit-form"
1681
+ class="
1682
+ usa-search
1683
+
1684
+
1685
+
1686
+ "
1687
+ method="get"
1688
+ role="search"
1689
+
1690
+ >
1691
+
1692
+
1693
+ <label
1694
+
1695
+ class="
1696
+
1697
+ usa-label usx-label
1698
+
1699
+
1700
+ usa-sr-only
1701
+
1702
+
1703
+
1704
+ "
1705
+
1706
+ for="django-search-with-onsubmit"
1707
+
1708
+ >
1709
+ Search
1710
+ </label>
1711
+
1712
+ <input
1713
+ id="django-search-with-onsubmit"
1714
+ class="usa-input usx-input"
1715
+ placeholder="Type something and submit..."
1716
+ value=""
1717
+ type="search"
1718
+ name="q"
1719
+ />
1720
+
1721
+
1722
+
1723
+
1724
+
1725
+
1726
+ <button
1727
+ type="submit"
1728
+ class="
1729
+ usa-button usx-button
1730
+ usa-button--primary
1731
+
1732
+
1733
+
1734
+
1735
+ "
1736
+
1737
+
1738
+ >
1739
+
1740
+
1741
+
1742
+
1743
+
1744
+
1745
+ <span class="usa-search__submit-text">Search</span>
1746
+
1747
+
1748
+ <svg
1749
+ class="
1750
+ usa-icon usx-icon
1751
+
1752
+ usa-search__submit-icon
1753
+
1754
+ "
1755
+
1756
+ aria-hidden="true"
1757
+ focusable="false"
1758
+ role="img"
1759
+ >
1760
+
1761
+ <use href="img/sprite.svg#search"></use>
1762
+
1763
+ </svg>
1764
+
1765
+
1766
+
1767
+
1768
+
1769
+
1770
+ </button>
1771
+
1772
+
1773
+
1774
+ </form>
1775
+ <script data-id="search-with-onsubmit" data-on-submit="(query) => alert("Search submitted: " + query)" data-search-key="q">
1776
+ const data = document.currentScript.dataset;
1777
+ const onSubmit = data.onSubmit;
1778
+
1779
+ if (!!onSubmit) {
1780
+ const id = data.id;
1781
+ const searchKey = data.searchKey;
1782
+ document.addEventListener("DOMContentLoaded", function() {
1783
+ document.getElementById(`${id}-form`).onsubmit = function(e) {
1784
+ e.preventDefault();
1785
+ const formData = new FormData(e.target);
1786
+ const query = formData.get(searchKey);
1787
+ const func = eval(onSubmit);
1788
+ func(query);
1789
+ return false;
1790
+ };
1791
+ });
1792
+ }
1793
+
1794
+ </script>
1795
+ </section>