@solexllc/usx-react 0.11.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/README.md +31 -0
  2. package/dist/Popover-Bg4-2-cU.cjs +987 -0
  3. package/dist/Popover-CqHczzNE.js +988 -0
  4. package/dist/chat.cjs +1396 -0
  5. package/dist/chat.js +1396 -0
  6. package/dist/index.cjs +4412 -5247
  7. package/dist/index.js +140 -972
  8. package/package.json +9 -5
  9. package/src/chat.js +15 -0
  10. package/src/components/accordion/Accordion.tsx +9 -57
  11. package/src/components/accordion/accordion.django.html +10 -20
  12. package/src/components/accordion/config.json +8 -2
  13. package/src/components/accordion-item/AccordionItem.tsx +54 -0
  14. package/src/components/accordion-item/accordion-item.django.html +19 -0
  15. package/src/components/accordion-item/accordion-item.html +8 -0
  16. package/src/components/accordion-item/config.json +55 -0
  17. package/src/components/alert/alert.django-snapshot.html +4 -4
  18. package/src/components/avatar/Avatar.tsx +54 -16
  19. package/src/components/avatar/avatar.django-snapshot.html +118 -2
  20. package/src/components/avatar/avatar.django.html +2 -2
  21. package/src/components/avatar/avatar.html +25 -0
  22. package/src/components/avatar/avatar.react-snapshot.html +110 -3
  23. package/src/components/avatar/config.json +17 -17
  24. package/src/components/avatar-group/AvatarGroup.tsx +17 -15
  25. package/src/components/avatar-group/avatar-group.django-snapshot.html +196 -174
  26. package/src/components/avatar-group/avatar-group.django.html +1 -1
  27. package/src/components/avatar-group/avatar-group.react-snapshot.html +216 -165
  28. package/src/components/avatar-group/config.json +14 -8
  29. package/src/components/back-to-top/BackToTop.tsx +21 -57
  30. package/src/components/back-to-top/back-to-top.django-snapshot.html +101 -202
  31. package/src/components/back-to-top/back-to-top.django.html +11 -38
  32. package/src/components/back-to-top/back-to-top.html +22 -106
  33. package/src/components/back-to-top/back-to-top.react-snapshot.html +94 -148
  34. package/src/components/back-to-top/config.json +41 -10
  35. package/src/components/banner/banner.django-snapshot.html +2 -2
  36. package/src/components/button/Button.tsx +15 -3
  37. package/src/components/button/button.django-snapshot.html +82 -0
  38. package/src/components/button/button.django.html +5 -2
  39. package/src/components/button/button.react-snapshot.html +80 -0
  40. package/src/components/button/config.json +17 -3
  41. package/src/components/callout/callout.django.html +1 -1
  42. package/src/components/callout/config.json +7 -16
  43. package/src/components/card/card.django-snapshot.html +43 -0
  44. package/src/components/card/card.react-snapshot.html +36 -0
  45. package/src/components/character-count/CharacterCount.tsx +2 -0
  46. package/src/components/character-count/character-count.react-snapshot.html +7 -0
  47. package/src/components/chat/Chat.tsx +575 -0
  48. package/src/components/chat/README.md +174 -0
  49. package/src/components/chat/avatarProps.ts +32 -0
  50. package/src/components/chat/chat.django-snapshot.html +23579 -0
  51. package/src/components/chat/chat.django.html +75 -0
  52. package/src/components/chat/chat.html +116 -0
  53. package/src/components/chat/chat.react-snapshot.html +16895 -0
  54. package/src/components/chat/config.json +1241 -0
  55. package/src/components/chat-attachment/ChatAttachment.tsx +39 -0
  56. package/src/components/chat-attachment/chat-attachment.django.html +24 -0
  57. package/src/components/chat-attachment/chat-attachment.html +10 -0
  58. package/src/components/chat-attachment/config.json +27 -0
  59. package/src/components/chat-attachments/ChatAttachments.tsx +17 -0
  60. package/src/components/chat-attachments/chat-attachments.django-snapshot.html +58 -0
  61. package/src/components/chat-attachments/chat-attachments.django.html +10 -0
  62. package/src/components/chat-attachments/chat-attachments.html +14 -0
  63. package/src/components/chat-attachments/chat-attachments.react-snapshot.html +46 -0
  64. package/src/components/chat-attachments/config.json +25 -0
  65. package/src/components/chat-bubble/ChatBubble.tsx +39 -0
  66. package/src/components/chat-bubble/ChatFormattedText.tsx +138 -0
  67. package/src/components/chat-bubble/chat-bubble.django-snapshot.html +128 -0
  68. package/src/components/chat-bubble/chat-bubble.django.html +19 -0
  69. package/src/components/chat-bubble/chat-bubble.html +1 -0
  70. package/src/components/chat-bubble/chat-bubble.react-snapshot.html +118 -0
  71. package/src/components/chat-bubble/config.json +70 -0
  72. package/src/components/chat-composer/ChatComposer.tsx +213 -0
  73. package/src/components/chat-composer/README.md +15 -0
  74. package/src/components/chat-composer/chat-composer.django-snapshot.html +575 -0
  75. package/src/components/chat-composer/chat-composer.django.html +77 -0
  76. package/src/components/chat-composer/chat-composer.html +44 -0
  77. package/src/components/chat-composer/chat-composer.react-snapshot.html +519 -0
  78. package/src/components/chat-composer/chat-formatting.django.html +59 -0
  79. package/src/components/chat-composer/config.json +137 -0
  80. package/src/components/chat-context/ChatContext.tsx +46 -0
  81. package/src/components/chat-context/chat-context.django-snapshot.html +35 -0
  82. package/src/components/chat-context/chat-context.django.html +20 -0
  83. package/src/components/chat-context/chat-context.html +9 -0
  84. package/src/components/chat-context/chat-context.react-snapshot.html +30 -0
  85. package/src/components/chat-context/config.json +36 -0
  86. package/src/components/chat-controls/ChatControls.tsx +67 -0
  87. package/src/components/chat-controls/chat-controls.django-snapshot.html +114 -0
  88. package/src/components/chat-controls/chat-controls.django.html +36 -0
  89. package/src/components/chat-controls/chat-controls.html +11 -0
  90. package/src/components/chat-controls/chat-controls.react-snapshot.html +107 -0
  91. package/src/components/chat-controls/config.json +67 -0
  92. package/src/components/chat-directory/ChatDirectory.tsx +168 -0
  93. package/src/components/chat-directory/chat-directory.django-snapshot.html +546 -0
  94. package/src/components/chat-directory/chat-directory.django.html +14 -0
  95. package/src/components/chat-directory/chat-directory.html +4 -0
  96. package/src/components/chat-directory/chat-directory.react-snapshot.html +471 -0
  97. package/src/components/chat-directory/config.json +242 -0
  98. package/src/components/chat-directory-item/ChatDirectoryItem.tsx +150 -0
  99. package/src/components/chat-directory-item/chat-directory-item.django-snapshot.html +281 -0
  100. package/src/components/chat-directory-item/chat-directory-item.django.html +38 -0
  101. package/src/components/chat-directory-item/chat-directory-item.html +9 -0
  102. package/src/components/chat-directory-item/chat-directory-item.react-snapshot.html +249 -0
  103. package/src/components/chat-directory-item/config.json +103 -0
  104. package/src/components/chat-history/ChatHistory.tsx +30 -0
  105. package/src/components/chat-history/chat-history.django-snapshot.html +113 -0
  106. package/src/components/chat-history/chat-history.django.html +20 -0
  107. package/src/components/chat-history/chat-history.html +9 -0
  108. package/src/components/chat-history/chat-history.react-snapshot.html +111 -0
  109. package/src/components/chat-history/config.json +24 -0
  110. package/src/components/chat-message/ChatMessage.tsx +148 -0
  111. package/src/components/chat-message/chat-message.django-snapshot.html +758 -0
  112. package/src/components/chat-message/chat-message.django.html +56 -0
  113. package/src/components/chat-message/chat-message.html +12 -0
  114. package/src/components/chat-message/chat-message.react-snapshot.html +627 -0
  115. package/src/components/chat-message/config.json +278 -0
  116. package/src/components/chat-message-actions/ChatMessageActions.tsx +133 -0
  117. package/src/components/chat-message-actions/chat-message-actions.django-snapshot.html +345 -0
  118. package/src/components/chat-message-actions/chat-message-actions.django.html +29 -0
  119. package/src/components/chat-message-actions/chat-message-actions.html +53 -0
  120. package/src/components/chat-message-actions/chat-message-actions.react-snapshot.html +295 -0
  121. package/src/components/chat-message-actions/config.json +121 -0
  122. package/src/components/chat-window/ChatWindow.tsx +135 -0
  123. package/src/components/chat-window/chat-window.django-snapshot.html +450 -0
  124. package/src/components/chat-window/chat-window.django.html +39 -0
  125. package/src/components/chat-window/chat-window.html +26 -0
  126. package/src/components/chat-window/chat-window.react-snapshot.html +286 -0
  127. package/src/components/chat-window/config.json +123 -0
  128. package/src/components/checkbox/checkbox.django-snapshot.html +2 -2
  129. package/src/components/clickable/Clickable.tsx +19 -5
  130. package/src/components/clickable/clickable.django-snapshot.html +11 -2
  131. package/src/components/clickable/clickable.django.html +2 -0
  132. package/src/components/clickable/clickable.react-snapshot.html +10 -2
  133. package/src/components/clickable/config.json +4 -0
  134. package/src/components/code/code.django-snapshot.html +25 -18
  135. package/src/components/code/code.react-snapshot.html +41 -4
  136. package/src/components/copy-to-clipboard/CopyToClipboard.tsx +2 -7
  137. package/src/components/copy-to-clipboard/copy-to-clipboard.django-snapshot.html +6 -4
  138. package/src/components/copy-to-clipboard/copy-to-clipboard.django.html +3 -2
  139. package/src/components/copy-to-clipboard/copy-to-clipboard.react-snapshot.html +14 -2
  140. package/src/components/data-table/data-table.django-snapshot.html +4 -5
  141. package/src/components/data-table/data-table.react-snapshot.html +4 -4
  142. package/src/components/drawer/drawer.django-snapshot.html +53 -30
  143. package/src/components/error-page/error-page.django-snapshot.html +20 -7
  144. package/src/components/fieldset/fieldset.django-snapshot.html +1 -6
  145. package/src/components/file-list/FileList.tsx +3 -2
  146. package/src/components/file-list/config.json +5 -0
  147. package/src/components/file-list/file-list.django-snapshot.html +63 -0
  148. package/src/components/file-list/file-list.django.html +1 -1
  149. package/src/components/file-list/file-list.react-snapshot.html +53 -0
  150. package/src/components/footer/footer.django-snapshot.html +0 -3
  151. package/src/components/form-group/form-group.django-snapshot.html +0 -2
  152. package/src/components/header/header.django-snapshot.html +3 -163
  153. package/src/components/header/header.django.html +2 -2
  154. package/src/components/header/header.html +1 -1
  155. package/src/components/header/header.react-snapshot.html +3 -3
  156. package/src/components/hero/hero.django-snapshot.html +0 -20
  157. package/src/components/hero/hero.django.html +3 -3
  158. package/src/components/identifier/config.json +4 -2
  159. package/src/components/identifier/identifier.django-snapshot.html +13 -16
  160. package/src/components/identifier/identifier.react-snapshot.html +13 -15
  161. package/src/components/image/image.django-snapshot.html +6 -6
  162. package/src/components/image/image.django.html +4 -4
  163. package/src/components/input/Input.tsx +1 -1
  164. package/src/components/input/config.json +2 -3
  165. package/src/components/input/input.django-snapshot.html +4 -21
  166. package/src/components/input/input.django.html +2 -2
  167. package/src/components/layout/layout.django-snapshot.html +2 -0
  168. package/src/components/link/Link.tsx +7 -4
  169. package/src/components/link/config.json +2 -3
  170. package/src/components/link/link.django-snapshot.html +8 -0
  171. package/src/components/link/link.django.html +2 -2
  172. package/src/components/link/link.html +4 -1
  173. package/src/components/link/link.react-snapshot.html +8 -0
  174. package/src/components/memorable-date/memorable-date.django-snapshot.html +0 -8
  175. package/src/components/memorable-date/memorable-date.django.html +2 -2
  176. package/src/components/misc-banner/misc-banner.django-snapshot.html +12 -12
  177. package/src/components/misc-banner/misc-banner.django.html +4 -2
  178. package/src/components/modal/Modal.tsx +4 -3
  179. package/src/components/modal/config.json +3 -2
  180. package/src/components/modal/modal.django-snapshot.html +70 -14
  181. package/src/components/modal/modal.django.html +7 -9
  182. package/src/components/modal/modal.html +4 -4
  183. package/src/components/modal/modal.react-snapshot.html +64 -4
  184. package/src/components/page/Page.tsx +10 -7
  185. package/src/components/page/page.django-snapshot.html +5 -8
  186. package/src/components/page/page.django.html +2 -2
  187. package/src/components/page/page.html +1 -2
  188. package/src/components/page/page.react-snapshot.html +5 -8
  189. package/src/components/pagination/navigation/PaginationNavigation.tsx +2 -0
  190. package/src/components/pagination/navigation/pagination-navigation.django.html +2 -0
  191. package/src/components/pagination/pagination.django-snapshot.html +62 -0
  192. package/src/components/pagination/pagination.django.html +3 -1
  193. package/src/components/pagination/pagination.html +46 -0
  194. package/src/components/pagination/pagination.react-snapshot.html +48 -0
  195. package/src/components/pagination/summary/PaginationSummary.tsx +1 -1
  196. package/src/components/pagination/summary/pagination-summary.django.html +1 -1
  197. package/src/components/popover/Popover.tsx +61 -9
  198. package/src/components/popover/PopoverMenu.tsx +33 -15
  199. package/src/components/popover/config.json +88 -14
  200. package/src/components/popover/popover-menu.django.html +13 -2
  201. package/src/components/popover/popover.django-snapshot.html +265 -7
  202. package/src/components/popover/popover.django.html +3 -2
  203. package/src/components/popover/popover.react-snapshot.html +154 -4
  204. package/src/components/process-list/config.json +41 -3
  205. package/src/components/quote/Quote.tsx +9 -2
  206. package/src/components/search/Search.tsx +1 -1
  207. package/src/components/search/config.json +3 -4
  208. package/src/components/search/search.django-snapshot.html +262 -1684
  209. package/src/components/search/search.django.html +1 -20
  210. package/src/components/section/Section.tsx +3 -1
  211. package/src/components/select/select.django-snapshot.html +7 -7
  212. package/src/components/select/select.react-snapshot.html +7 -7
  213. package/src/components/site-alert/site-alert.django-snapshot.html +8 -8
  214. package/src/components/summary/Summary.tsx +4 -2
  215. package/src/components/summary/config.json +4 -0
  216. package/src/components/summary/summary.django.html +4 -4
  217. package/src/components/swap/Swap.tsx +35 -3
  218. package/src/components/swap/config.json +28 -1
  219. package/src/components/swap/swap.django-snapshot.html +29 -7
  220. package/src/components/swap/swap.django.html +15 -1
  221. package/src/components/swap/swap.react-snapshot.html +34 -4
  222. package/src/components/table/Table.tsx +58 -25
  223. package/src/components/table/config.json +61 -13
  224. package/src/components/tag/Tag.tsx +40 -7
  225. package/src/components/tag/config.json +18 -2
  226. package/src/components/tag/tag.django-snapshot.html +16 -1
  227. package/src/components/tag/tag.django.html +12 -6
  228. package/src/components/tag/tag.html +4 -0
  229. package/src/components/tag/tag.react-snapshot.html +16 -1
  230. package/src/components/tag-group/TagGroup.tsx +6 -9
  231. package/src/components/tag-group/config.json +4 -0
  232. package/src/components/tag-group/tag-group.django.html +1 -1
  233. package/src/components/theme-picker/ThemePicker.tsx +48 -42
  234. package/src/components/theme-picker/config.json +27 -29
  235. package/src/components/theme-picker/theme-picker-select.django.html +1 -1
  236. package/src/components/theme-picker/theme-picker.django-snapshot.html +283 -78
  237. package/src/components/theme-picker/theme-picker.django.html +24 -11
  238. package/src/components/theme-picker/theme-picker.html +155 -54
  239. package/src/components/theme-picker/theme-picker.react-snapshot.html +265 -67
  240. package/src/index.js +1 -0
@@ -55,6 +55,69 @@
55
55
  </ul>
56
56
  </div>
57
57
 
58
+ <h3 class="site-preview-heading">Slim</h3>
59
+ <div class="usx-file-input__list margin-top-1 usx-file-list--slim">
60
+ <span class="usa-sr-only" aria-live="polite">You have selected the file: notes.txt.</span>
61
+
62
+ <span class="usa-hint usx-hint usx-file-input__list-heading">Selected files</span>
63
+
64
+ <ul class="usx-file-input__file-list">
65
+ <li class="usx-file-input__file-item">
66
+ <div class="usx-file-input__file-info">
67
+ <a
68
+ class="usa-link usx-link usa-link--external usx-file-input__file-name"
69
+ rel="noreferrer noopener"
70
+ target="_blank"
71
+ href="https://example.com/files/project-plan.pdf"
72
+ >project-plan-and-supporting-information-for-review.pdf</a
73
+ >
74
+
75
+ <span class="usx-file-input__file-size">PDF, 240 KB</span>
76
+ </div>
77
+
78
+ <button
79
+ type="button"
80
+ class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
81
+ tooltip="Delete this file"
82
+ >
83
+ <svg
84
+ class="usa-icon usx-icon usa-icon--size-3 usx-file-input__delete-icon"
85
+ aria-hidden="true"
86
+ focusable="false"
87
+ role="img"
88
+ >
89
+ <use href="img/sprite.svg#delete"></use>
90
+ </svg>
91
+ <span class="usx-file-input__delete-label">Delete</span>
92
+ </button>
93
+ </li>
94
+
95
+ <li class="usx-file-input__file-item">
96
+ <div class="usx-file-input__file-info">
97
+ <span class="usx-file-input__file-name">notes.txt</span>
98
+
99
+ <span class="usx-file-input__file-size">TXT, 7 KB</span>
100
+ </div>
101
+
102
+ <button
103
+ type="button"
104
+ class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
105
+ tooltip="Delete this file"
106
+ >
107
+ <svg
108
+ class="usa-icon usx-icon usa-icon--size-3 usx-file-input__delete-icon"
109
+ aria-hidden="true"
110
+ focusable="false"
111
+ role="img"
112
+ >
113
+ <use href="img/sprite.svg#delete"></use>
114
+ </svg>
115
+ <span class="usx-file-input__delete-label">Delete</span>
116
+ </button>
117
+ </li>
118
+ </ul>
119
+ </div>
120
+
58
121
  <h3 class="site-preview-heading">With Download Link</h3>
59
122
  <div class="usx-file-input__list margin-top-1">
60
123
  <span class="usa-sr-only" aria-live="polite">You have selected the file: w2-2023.pdf.</span>
@@ -2,7 +2,7 @@
2
2
  {% load usx_components %}
3
3
 
4
4
  {% if files %}
5
- <div class="usx-file-input__list margin-top-1{% if className %} {{ className }}{% endif %}">
5
+ <div class="usx-file-input__list margin-top-1{% if slim %} usx-file-list--slim{% endif %}{% if className %} {{ className }}{% endif %}">
6
6
  {% with lastFile=files|last %}<span class="usa-sr-only" aria-live="polite">You have selected the file: {{ lastFile.name }}.</span>{% endwith %}
7
7
  {% if hint %}
8
8
  <span class="usa-hint usx-hint usx-file-input__list-heading">{{ hint }}</span>
@@ -46,6 +46,59 @@
46
46
  </ul>
47
47
  </div>
48
48
 
49
+ <h3 class="site-preview-heading">Slim</h3>
50
+ <div class="usx-file-input__list margin-top-1 usx-file-list--slim">
51
+ <span class="usa-sr-only" aria-live="polite">You have selected the file: notes.txt.</span
52
+ ><span class="usa-hint usx-hint usx-file-input__list-heading">Selected files</span>
53
+ <ul class="usx-file-input__file-list">
54
+ <li class="usx-file-input__file-item">
55
+ <div class="usx-file-input__file-info">
56
+ <a
57
+ href="https://example.com/files/project-plan.pdf"
58
+ class="usa-link usx-link usa-link--external usx-file-input__file-name"
59
+ target="_blank"
60
+ rel="noreferrer noopener"
61
+ >project-plan-and-supporting-information-for-review.pdf</a
62
+ ><span class="usx-file-input__file-size">PDF, 240 KB</span>
63
+ </div>
64
+ <button
65
+ type="button"
66
+ class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
67
+ tooltip="Delete this file"
68
+ >
69
+ <svg
70
+ class="usa-icon usx-icon usa-icon--size-3 usx-file-input__delete-icon"
71
+ aria-hidden="true"
72
+ focusable="false"
73
+ role="img"
74
+ >
75
+ <use href="/img/sprite.svg#delete"></use></svg
76
+ ><span class="usx-file-input__delete-label">Delete</span>
77
+ </button>
78
+ </li>
79
+ <li class="usx-file-input__file-item">
80
+ <div class="usx-file-input__file-info">
81
+ <span class="usx-file-input__file-name">notes.txt</span
82
+ ><span class="usx-file-input__file-size">TXT, 7 KB</span>
83
+ </div>
84
+ <button
85
+ type="button"
86
+ class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
87
+ tooltip="Delete this file"
88
+ >
89
+ <svg
90
+ class="usa-icon usx-icon usa-icon--size-3 usx-file-input__delete-icon"
91
+ aria-hidden="true"
92
+ focusable="false"
93
+ role="img"
94
+ >
95
+ <use href="/img/sprite.svg#delete"></use></svg
96
+ ><span class="usx-file-input__delete-label">Delete</span>
97
+ </button>
98
+ </li>
99
+ </ul>
100
+ </div>
101
+
49
102
  <h3 class="site-preview-heading">With Download Link</h3>
50
103
  <div class="usx-file-input__list margin-top-1">
51
104
  <span class="usa-sr-only" aria-live="polite">You have selected the file: w2-2023.pdf.</span
@@ -139,7 +139,6 @@
139
139
  type="email"
140
140
  autocomplete="email"
141
141
  placeholder="Type here"
142
- value=""
143
142
  />
144
143
  </div>
145
144
 
@@ -554,7 +553,6 @@
554
553
  type="email"
555
554
  autocomplete="email"
556
555
  placeholder="Type here"
557
- value=""
558
556
  />
559
557
  </div>
560
558
 
@@ -838,7 +836,6 @@
838
836
  type="email"
839
837
  autocomplete="email"
840
838
  placeholder="Type here"
841
- value=""
842
839
  />
843
840
  </div>
844
841
 
@@ -28,7 +28,6 @@
28
28
  class="usa-input usx-input usa-input--error"
29
29
  id="django-form-group-error-input"
30
30
  placeholder="Type here"
31
- value=""
32
31
  aria-describedby="django-form-group-error-input-error"
33
32
  aria-invalid="true"
34
33
  />
@@ -44,7 +43,6 @@
44
43
  class="usa-input usx-input usa-input--success"
45
44
  id="django-form-group-success-input"
46
45
  placeholder="Type here"
47
- value=""
48
46
  />
49
47
  </div>
50
48
  </div>
@@ -146,7 +146,6 @@
146
146
  id="django-header-default-search"
147
147
  class="usa-input usx-input"
148
148
  placeholder="Search..."
149
- value=""
150
149
  type="search"
151
150
  name="q"
152
151
  />
@@ -162,25 +161,6 @@
162
161
  </svg>
163
162
  </button>
164
163
  </form>
165
- <script data-id="header-default-search" data-on-submit="" data-search-key="q">
166
- const data = document.currentScript.dataset;
167
- const onSubmit = data.onSubmit;
168
-
169
- if (!!onSubmit) {
170
- const id = data.id;
171
- const searchKey = data.searchKey;
172
- document.addEventListener('DOMContentLoaded', function () {
173
- document.getElementById(`${id}-form`).onsubmit = function (e) {
174
- e.preventDefault();
175
- const formData = new FormData(e.target);
176
- const query = formData.get(searchKey);
177
- const func = eval(onSubmit);
178
- func(query);
179
- return false;
180
- };
181
- });
182
- }
183
- </script>
184
164
  </section>
185
165
  </div>
186
166
  </div>
@@ -308,7 +288,6 @@
308
288
  id="django-header-basic-search"
309
289
  class="usa-input usx-input"
310
290
  placeholder="Search..."
311
- value=""
312
291
  type="search"
313
292
  name="q"
314
293
  />
@@ -324,25 +303,6 @@
324
303
  </svg>
325
304
  </button>
326
305
  </form>
327
- <script data-id="header-basic-search" data-on-submit="" data-search-key="q">
328
- const data = document.currentScript.dataset;
329
- const onSubmit = data.onSubmit;
330
-
331
- if (!!onSubmit) {
332
- const id = data.id;
333
- const searchKey = data.searchKey;
334
- document.addEventListener('DOMContentLoaded', function () {
335
- document.getElementById(`${id}-form`).onsubmit = function (e) {
336
- e.preventDefault();
337
- const formData = new FormData(e.target);
338
- const query = formData.get(searchKey);
339
- const func = eval(onSubmit);
340
- func(query);
341
- return false;
342
- };
343
- });
344
- }
345
- </script>
346
306
  </section>
347
307
  </div>
348
308
  </nav>
@@ -488,7 +448,6 @@
488
448
  id="django-header-basic-megamenu-search"
489
449
  class="usa-input usx-input"
490
450
  placeholder="Search..."
491
- value=""
492
451
  type="search"
493
452
  name="q"
494
453
  />
@@ -504,25 +463,6 @@
504
463
  </svg>
505
464
  </button>
506
465
  </form>
507
- <script data-id="header-basic-megamenu-search" data-on-submit="" data-search-key="q">
508
- const data = document.currentScript.dataset;
509
- const onSubmit = data.onSubmit;
510
-
511
- if (!!onSubmit) {
512
- const id = data.id;
513
- const searchKey = data.searchKey;
514
- document.addEventListener('DOMContentLoaded', function () {
515
- document.getElementById(`${id}-form`).onsubmit = function (e) {
516
- e.preventDefault();
517
- const formData = new FormData(e.target);
518
- const query = formData.get(searchKey);
519
- const func = eval(onSubmit);
520
- func(query);
521
- return false;
522
- };
523
- });
524
- }
525
- </script>
526
466
  </section>
527
467
  </div>
528
468
  </nav>
@@ -665,7 +605,6 @@
665
605
  id="django-header-extended-search"
666
606
  class="usa-input usx-input"
667
607
  placeholder="Search..."
668
- value=""
669
608
  type="search"
670
609
  name="q"
671
610
  />
@@ -681,25 +620,6 @@
681
620
  </svg>
682
621
  </button>
683
622
  </form>
684
- <script data-id="header-extended-search" data-on-submit="" data-search-key="q">
685
- const data = document.currentScript.dataset;
686
- const onSubmit = data.onSubmit;
687
-
688
- if (!!onSubmit) {
689
- const id = data.id;
690
- const searchKey = data.searchKey;
691
- document.addEventListener('DOMContentLoaded', function () {
692
- document.getElementById(`${id}-form`).onsubmit = function (e) {
693
- e.preventDefault();
694
- const formData = new FormData(e.target);
695
- const query = formData.get(searchKey);
696
- const func = eval(onSubmit);
697
- func(query);
698
- return false;
699
- };
700
- });
701
- }
702
- </script>
703
623
  </section>
704
624
  </div>
705
625
  </div>
@@ -857,7 +777,6 @@
857
777
  id="django-header-extended-megamenu-search"
858
778
  class="usa-input usx-input"
859
779
  placeholder="Search..."
860
- value=""
861
780
  type="search"
862
781
  name="q"
863
782
  />
@@ -873,25 +792,6 @@
873
792
  </svg>
874
793
  </button>
875
794
  </form>
876
- <script data-id="header-extended-megamenu-search" data-on-submit="" data-search-key="q">
877
- const data = document.currentScript.dataset;
878
- const onSubmit = data.onSubmit;
879
-
880
- if (!!onSubmit) {
881
- const id = data.id;
882
- const searchKey = data.searchKey;
883
- document.addEventListener('DOMContentLoaded', function () {
884
- document.getElementById(`${id}-form`).onsubmit = function (e) {
885
- e.preventDefault();
886
- const formData = new FormData(e.target);
887
- const query = formData.get(searchKey);
888
- const func = eval(onSubmit);
889
- func(query);
890
- return false;
891
- };
892
- });
893
- }
894
- </script>
895
795
  </section>
896
796
  </div>
897
797
  </div>
@@ -1019,7 +919,6 @@
1019
919
  id="django-header-menu-icon-search"
1020
920
  class="usa-input usx-input"
1021
921
  placeholder="Search..."
1022
- value=""
1023
922
  type="search"
1024
923
  name="q"
1025
924
  />
@@ -1035,25 +934,6 @@
1035
934
  </svg>
1036
935
  </button>
1037
936
  </form>
1038
- <script data-id="header-menu-icon-search" data-on-submit="" data-search-key="q">
1039
- const data = document.currentScript.dataset;
1040
- const onSubmit = data.onSubmit;
1041
-
1042
- if (!!onSubmit) {
1043
- const id = data.id;
1044
- const searchKey = data.searchKey;
1045
- document.addEventListener('DOMContentLoaded', function () {
1046
- document.getElementById(`${id}-form`).onsubmit = function (e) {
1047
- e.preventDefault();
1048
- const formData = new FormData(e.target);
1049
- const query = formData.get(searchKey);
1050
- const func = eval(onSubmit);
1051
- func(query);
1052
- return false;
1053
- };
1054
- });
1055
- }
1056
- </script>
1057
937
  </section>
1058
938
  </div>
1059
939
  </nav>
@@ -2143,7 +2023,6 @@
2143
2023
  id="django-header-maximal-search"
2144
2024
  class="usa-input usx-input"
2145
2025
  placeholder="Search..."
2146
- value=""
2147
2026
  type="search"
2148
2027
  name="q"
2149
2028
  />
@@ -2159,25 +2038,6 @@
2159
2038
  </svg>
2160
2039
  </button>
2161
2040
  </form>
2162
- <script data-id="header-maximal-search" data-on-submit="" data-search-key="q">
2163
- const data = document.currentScript.dataset;
2164
- const onSubmit = data.onSubmit;
2165
-
2166
- if (!!onSubmit) {
2167
- const id = data.id;
2168
- const searchKey = data.searchKey;
2169
- document.addEventListener('DOMContentLoaded', function () {
2170
- document.getElementById(`${id}-form`).onsubmit = function (e) {
2171
- e.preventDefault();
2172
- const formData = new FormData(e.target);
2173
- const query = formData.get(searchKey);
2174
- const func = eval(onSubmit);
2175
- func(query);
2176
- return false;
2177
- };
2178
- });
2179
- }
2180
- </script>
2181
2041
  </section>
2182
2042
  </div>
2183
2043
  </div>
@@ -3189,7 +3049,6 @@
3189
3049
  id="django-header-border-roles-search"
3190
3050
  class="usa-input usx-input"
3191
3051
  placeholder="Search..."
3192
- value=""
3193
3052
  type="search"
3194
3053
  name="q"
3195
3054
  />
@@ -3205,25 +3064,6 @@
3205
3064
  </svg>
3206
3065
  </button>
3207
3066
  </form>
3208
- <script data-id="header-border-roles-search" data-on-submit="" data-search-key="q">
3209
- const data = document.currentScript.dataset;
3210
- const onSubmit = data.onSubmit;
3211
-
3212
- if (!!onSubmit) {
3213
- const id = data.id;
3214
- const searchKey = data.searchKey;
3215
- document.addEventListener('DOMContentLoaded', function () {
3216
- document.getElementById(`${id}-form`).onsubmit = function (e) {
3217
- e.preventDefault();
3218
- const formData = new FormData(e.target);
3219
- const query = formData.get(searchKey);
3220
- const func = eval(onSubmit);
3221
- func(query);
3222
- return false;
3223
- };
3224
- });
3225
- }
3226
- </script>
3227
3067
  </section>
3228
3068
  </div>
3229
3069
  </div>
@@ -3369,7 +3209,7 @@
3369
3209
  </div>
3370
3210
  </div>
3371
3211
  <div class="usx-nav__end-slot">
3372
- <div class="usx-theme-picker">
3212
+ <div class="usx-theme-picker" hidden>
3373
3213
  <button
3374
3214
  type="button"
3375
3215
  class="usa-button usx-button usx-button--ghost usx-theme-picker__trigger"
@@ -3390,9 +3230,9 @@
3390
3230
  <label class="usa-label usx-label usa-sr-only" for="django-theme-picker"> Theme </label>
3391
3231
 
3392
3232
  <select id="django-theme-picker" class="usa-select usx-select">
3393
- <option value="Aurora" selected>Light</option>
3233
+ <option value="aurora" selected>Light</option>
3394
3234
 
3395
- <option value="Borealis">Dark</option>
3235
+ <option value="borealis">Dark</option>
3396
3236
  </select>
3397
3237
 
3398
3238
  <button
@@ -103,7 +103,7 @@
103
103
  <div class="usx-nav__utility">
104
104
  {% if utilityContent %}{{ utilityContent|safe }}{% endif %}
105
105
  {% if searchProps %}
106
- {% search id=searchProps.id ariaLabel=searchProps.ariaLabel searchKey=searchProps.searchKey label=searchProps.label icon=searchProps.icon iconOnly=searchProps.iconOnly buttonVariant=searchProps.buttonVariant big=searchProps.big action=searchProps.action placeholder=searchProps.placeholder defaultValue=searchProps.defaultValue onSubmit=searchProps.onSubmit className=searchProps.className|default:'' %}{% endsearch %}
106
+ {% search id=searchProps.id ariaLabel=searchProps.ariaLabel searchKey=searchProps.searchKey label=searchProps.label icon=searchProps.icon iconOnly=searchProps.iconOnly buttonVariant=searchProps.buttonVariant big=searchProps.big action=searchProps.action placeholder=searchProps.placeholder defaultValue=searchProps|get_optional:'defaultValue' onSubmit=searchProps.onSubmit className=searchProps.className|default:'' %}{% endsearch %}
107
107
  {% endif %}
108
108
  </div>
109
109
  {% endif %}
@@ -183,7 +183,7 @@
183
183
  <div class="usx-nav__utility">
184
184
  {% if utilityContent %}{{ utilityContent|safe }}{% endif %}
185
185
  {% if searchProps %}
186
- {% search id=searchProps.id ariaLabel=searchProps.ariaLabel searchKey=searchProps.searchKey label=searchProps.label icon=searchProps.icon iconOnly=searchProps.iconOnly buttonVariant=searchProps.buttonVariant big=searchProps.big action=searchProps.action placeholder=searchProps.placeholder defaultValue=searchProps.defaultValue onSubmit=searchProps.onSubmit className=searchProps.className|default:'' %}{% endsearch %}
186
+ {% search id=searchProps.id ariaLabel=searchProps.ariaLabel searchKey=searchProps.searchKey label=searchProps.label icon=searchProps.icon iconOnly=searchProps.iconOnly buttonVariant=searchProps.buttonVariant big=searchProps.big action=searchProps.action placeholder=searchProps.placeholder defaultValue=searchProps|get_optional:'defaultValue' onSubmit=searchProps.onSubmit className=searchProps.className|default:'' %}{% endsearch %}
187
187
  {% endif %}
188
188
  </div>
189
189
  {% endif %}
@@ -2761,7 +2761,7 @@
2761
2761
  </div>
2762
2762
  </div>
2763
2763
  <div class="usx-nav__end-slot">
2764
- <div class="usx-theme-picker">
2764
+ <div class="usx-theme-picker" hidden>
2765
2765
  <button
2766
2766
  type="button"
2767
2767
  class="usa-button usx-button usx-button--ghost text-muted usx-theme-picker__trigger"
@@ -2648,7 +2648,7 @@
2648
2648
  </div>
2649
2649
  </div>
2650
2650
  <div class="usx-nav__end-slot">
2651
- <div class="usx-theme-picker">
2651
+ <div class="usx-theme-picker" hidden="">
2652
2652
  <button
2653
2653
  type="button"
2654
2654
  class="usa-button usx-button usx-button--ghost usx-theme-picker__trigger"
@@ -2668,8 +2668,8 @@
2668
2668
  <div id="react-theme-picker-panel" class="usx-theme-picker__panel">
2669
2669
  <label class="usa-label usx-label usa-sr-only" for="react-theme-picker">Theme</label
2670
2670
  ><select id="react-theme-picker" class="usa-select usx-select">
2671
- <option value="Aurora" selected="">Light</option>
2672
- <option value="Borealis">Dark</option></select
2671
+ <option value="aurora" selected="">Light</option>
2672
+ <option value="borealis">Dark</option></select
2673
2673
  ><button
2674
2674
  type="button"
2675
2675
  class="usa-button usx-button usa-button--primary usx-theme-picker__toggle"
@@ -133,7 +133,6 @@
133
133
  id="django-hero-search"
134
134
  class="usa-input usx-input"
135
135
  placeholder="Search..."
136
- value=""
137
136
  type="search"
138
137
  name="q"
139
138
  />
@@ -149,25 +148,6 @@
149
148
  </svg>
150
149
  </button>
151
150
  </form>
152
- <script data-id="hero-search" data-on-submit="" data-search-key="q">
153
- const data = document.currentScript.dataset;
154
- const onSubmit = data.onSubmit;
155
-
156
- if (!!onSubmit) {
157
- const id = data.id;
158
- const searchKey = data.searchKey;
159
- document.addEventListener('DOMContentLoaded', function () {
160
- document.getElementById(`${id}-form`).onsubmit = function (e) {
161
- e.preventDefault();
162
- const formData = new FormData(e.target);
163
- const query = formData.get(searchKey);
164
- const func = eval(onSubmit);
165
- func(query);
166
- return false;
167
- };
168
- });
169
- }
170
- </script>
171
151
  </section>
172
152
  </div>
173
153
  </div>
@@ -3,17 +3,17 @@
3
3
  <section
4
4
  class="usx-hero{% if overlay != False %} usx-hero--has-overlay{% endif %}{% if overlayOpacity or overlayOpacity == 0 %} usx-hero--custom-overlay{% endif %}{% if contentPosition == 'right' %} usx-hero--content-right{% elif contentPosition == 'center' %} usx-hero--content-center{% endif %}{% if boxed == False %} usx-hero--unboxed{% endif %}{% if secondaryContent %} usx-hero--split{% endif %}{% if className %} {{ className }}{% endif %}"
5
5
  aria-label="{% if ariaLabel %}{{ ariaLabel }}{% else %}Introduction{% endif %}"
6
- {% if backgroundImage or backgroundPosition or overlayOpacity or overlayOpacity == 0 %}style="{% if backgroundImage %}background-image: url('{{ backgroundImage }}');{% endif %}{% if backgroundPosition %}background-position: {{ backgroundPosition }};{% endif %}{% if overlayOpacity or overlayOpacity == 0 %}--hero-overlay-opacity: {{ overlayOpacity }};{% endif %}"{% endif %}
6
+ {% if backgroundImage or backgroundPosition or overlayOpacity or overlayOpacity == 0 %}style="{% if backgroundImage %}background-image:url('{{ backgroundImage }}'){% if backgroundPosition or overlayOpacity or overlayOpacity == 0 %};{% endif %}{% endif %}{% if backgroundPosition %}background-position:{{ backgroundPosition }}{% if overlayOpacity or overlayOpacity == 0 %};{% endif %}{% endif %}{% if overlayOpacity or overlayOpacity == 0 %}--hero-overlay-opacity:{{ overlayOpacity }}{% endif %}"{% endif %}
7
7
  >
8
8
  <div class="usx-hero__inner">
9
- <div class="usx-hero__callout"{% if calloutMaxWidth %} style="max-width: {{ calloutMaxWidth }};"{% endif %}>
9
+ <div class="usx-hero__callout"{% if calloutMaxWidth %} style="max-width:{{ calloutMaxWidth }}"{% endif %}>
10
10
  {% if headingAs == 'h2' %}<h2 class="usx-hero__heading">{% elif headingAs == 'h3' %}<h3 class="usx-hero__heading">{% elif headingAs == 'h4' %}<h4 class="usx-hero__heading">{% elif headingAs == 'h5' %}<h5 class="usx-hero__heading">{% else %}<h1 class="usx-hero__heading">{% endif %}
11
11
  {% if callout %}<span class="usx-hero__heading--alt">{{ callout }}</span>{% endif %}
12
12
  {{ title }}
13
13
  {% if headingAs == 'h2' %}</h2>{% elif headingAs == 'h3' %}</h3>{% elif headingAs == 'h4' %}</h4>{% elif headingAs == 'h5' %}</h5>{% else %}</h1>{% endif %}
14
14
  {% if paragraph %}<p class="usx-hero__paragraph">{{ paragraph }}</p>{% endif %}
15
15
  {% if searchProps %}
16
- {% search id=searchProps.id ariaLabel=searchProps.ariaLabel searchKey=searchProps.searchKey label=searchProps.label icon=searchProps.icon iconOnly=searchProps.iconOnly buttonVariant=searchProps.buttonVariant big=searchProps.big action=searchProps.action placeholder=searchProps.placeholder defaultValue=searchProps.defaultValue onSubmit=searchProps.onSubmit className=searchProps.className|default:'' %}{% endsearch %}
16
+ {% search id=searchProps.id ariaLabel=searchProps.ariaLabel searchKey=searchProps.searchKey label=searchProps.label icon=searchProps.icon iconOnly=searchProps.iconOnly buttonVariant=searchProps.buttonVariant big=searchProps.big action=searchProps.action placeholder=searchProps.placeholder defaultValue=searchProps|get_optional:'defaultValue' onSubmit=searchProps.onSubmit className=searchProps.className|default:'' %}{% endsearch %}
17
17
  {% elif buttonProps %}
18
18
  {% button props=buttonProps %}{{ buttonProps.children|safe }}{% endbutton %}
19
19
  {% endif %}
@@ -14,8 +14,10 @@
14
14
  "avatarProps": [
15
15
  {
16
16
  "href": "",
17
- "src": "./lady_liberty.png",
18
- "alt": "Statue of Liberty"
17
+ "variant": "initials",
18
+ "value": "SL",
19
+ "alt": "Statue of Liberty",
20
+ "contentClassName": "bg-primary-lighter text-primary-darker"
19
21
  }
20
22
  ],
21
23
  "requiredLinks": [