@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
@@ -6,14 +6,36 @@
6
6
  data-side="bottom"
7
7
  data-align="start"
8
8
 
9
+
9
10
  >
10
11
 
12
+
11
13
  <summary>Where is my case number?</summary>
14
+
12
15
  <div
13
16
  id="django-popover-default"
14
17
  class="usx-popover__panel"
15
18
  ><div class="usx-popover__panel-content">Your case number is in the confirmation email we sent after you applied.</div></div></details>
16
19
 
20
+ <h3 class="site-preview-heading">Persistent</h3>
21
+ <!-- prettier-ignore -->
22
+ <details
23
+
24
+ class="usx-popover"
25
+ data-side="bottom"
26
+ data-align="start"
27
+ data-usx-popover-dismiss-on-outside="false"
28
+
29
+ >
30
+
31
+
32
+ <summary class="usa-button usx-button">Keep this panel open</summary>
33
+
34
+ <div
35
+ id="django-popover-persistent"
36
+ class="usx-popover__panel"
37
+ ><div class="usx-popover__panel-content">This panel stays open when you interact with the page.</div><button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__panel-close" data-usx-popover-close="django-popover-persistent">Close</button></div></details>
38
+
17
39
  <h3 class="site-preview-heading">Rounded Panel</h3>
18
40
  <!-- prettier-ignore -->
19
41
  <details
@@ -22,9 +44,12 @@
22
44
  data-side="bottom"
23
45
  data-align="start"
24
46
 
47
+
25
48
  >
26
49
 
50
+
27
51
  <summary class="usa-button usx-button usa-button--primary margin-0">Rounded panel</summary>
52
+
28
53
  <div
29
54
  id="django-popover-panel-rounded"
30
55
  class="usx-popover__panel"
@@ -38,9 +63,12 @@
38
63
  data-side="bottom"
39
64
  data-align="start"
40
65
 
66
+
41
67
  >
42
68
 
69
+
43
70
  <summary class="usa-button usx-button usa-button--primary margin-0">Square panel</summary>
71
+
44
72
  <div
45
73
  id="django-popover-panel-square"
46
74
  class="usx-popover__panel usx-popover__panel--square"
@@ -54,9 +82,18 @@
54
82
  data-side="bottom"
55
83
  data-align="start"
56
84
 
85
+
57
86
  >
58
87
 
59
- <summary class="display-flex flex-align-center padding-2 bg-surface-2 text-ink usx-rounded-lg"><svg class="usa-icon usa-icon--size-3 margin-right-2" aria-hidden="true" focusable="false"><use href="./img/sprite.svg#folder"></use></svg><span><span class="display-block text-bold">Application 10482</span><span class="display-block font-sans-xs">View status and next steps</span></span></summary>
88
+
89
+ <summary class="display-flex flex-align-center padding-2 bg-surface-2 text-ink usx-rounded-lg">
90
+ <svg class="usa-icon usa-icon--size-3 margin-right-2" aria-hidden="true" focusable="false"><use href="./img/sprite.svg#folder"></use></svg>
91
+ <span>
92
+ <span class="display-block text-bold">Application 10482</span>
93
+ <span class="display-block font-sans-xs">View status and next steps</span>
94
+ </span>
95
+ </summary>
96
+
60
97
  <div
61
98
  id="django-popover-authored-trigger"
62
99
  class="usx-popover__panel"
@@ -81,14 +118,89 @@
81
118
  data-side="bottom"
82
119
  data-align="start"
83
120
 
121
+
84
122
  >
85
123
 
124
+
86
125
  <summary class="usa-button usx-button usa-button--primary margin-0" aria-label="Account options menu">Account options</summary>
126
+
87
127
  <div
88
128
  id="django-popover-summary-props"
89
129
  class="usx-popover__panel"
90
130
  ><div class="usx-popover__panel-content">Manage your account settings.</div></div></details>
91
131
 
132
+ <h3 class="site-preview-heading">Show Close Icon</h3>
133
+ <!-- prettier-ignore -->
134
+ <details
135
+
136
+ class="usx-popover"
137
+ data-side="bottom"
138
+ data-align="start"
139
+
140
+
141
+ >
142
+
143
+
144
+ <summary class="usa-button usx-button usa-button--primary margin-0">Open panel with close icon</summary>
145
+
146
+ <div
147
+ id="django-popover-close-icon"
148
+ class="usx-popover__panel"
149
+ ><header class="usx-popover__header"><div class="usx-popover__header-content"><h2 class="usx-popover__panel-heading" tabindex="-1">Panel with close icon</h2></div><div class="usx-popover__header-right-actions"><button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close" aria-label="Close panel" data-usx-popover-close="django-popover-close-icon">
150
+
151
+ <svg
152
+ class="
153
+ usa-icon usx-icon
154
+
155
+
156
+
157
+ "
158
+
159
+ aria-hidden="true"
160
+ focusable="false"
161
+ role="img"
162
+ >
163
+
164
+ <use href="img/sprite.svg#close"></use>
165
+
166
+ </svg></button></div></header><div class="usx-popover__panel-content">Use the icon in the header to close this panel.</div></div></details>
167
+
168
+ <h3 class="site-preview-heading">Header Actions</h3>
169
+ <!-- prettier-ignore -->
170
+ <details
171
+
172
+ class="usx-popover"
173
+ data-side="bottom"
174
+ data-align="start"
175
+
176
+
177
+ >
178
+
179
+
180
+ <summary class="usa-button usx-button margin-0">Open record</summary>
181
+
182
+ <div
183
+ id="django-popover-header-actions"
184
+ class="usx-popover__panel"
185
+ ><header class="usx-popover__header"><div class="usx-popover__header-left-actions"><button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action" aria-label="Back to records"><svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img"><use href="/img/sprite.svg#arrow_back"></use></svg></button></div><div class="usx-popover__header-content"><h2 class="usx-popover__panel-heading" tabindex="-1">Record 10482</h2></div><div class="usx-popover__header-right-actions"><details class="usx-popover" data-side="bottom" data-align="end"><summary class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action" aria-label="Record actions"><svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img"><use href="/img/sprite.svg#more_vert"></use></svg></summary><div id="django-popover-header-actions-menu" class="usx-popover__panel"><ul class="usx-popover__menu"><li><button type="button" class="usx-popover__menu-item"><svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img"><use href="/img/sprite.svg#content_copy"></use></svg>Copy record</button></li></ul></div></details><button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close" aria-label="Close record" data-usx-popover-close="django-popover-header-actions">
186
+
187
+ <svg
188
+ class="
189
+ usa-icon usx-icon
190
+
191
+
192
+
193
+ "
194
+
195
+ aria-hidden="true"
196
+ focusable="false"
197
+ role="img"
198
+ >
199
+
200
+ <use href="img/sprite.svg#close"></use>
201
+
202
+ </svg></button></div></header><div class="usx-popover__panel-content">Review the record before taking action.</div></div></details>
203
+
92
204
  <h3 class="site-preview-heading">Menu Items</h3>
93
205
  <!-- prettier-ignore -->
94
206
  <details
@@ -97,9 +209,12 @@
97
209
  data-side="bottom"
98
210
  data-align="start"
99
211
 
212
+
100
213
  >
101
214
 
215
+
102
216
  <summary class="usa-button usx-button usa-button--primary margin-0">Resident services</summary>
217
+
103
218
  <div
104
219
  id="django-popover-menu-items"
105
220
  class="usx-popover__panel"
@@ -157,6 +272,60 @@
157
272
  >Contact a service center</a></li></ul>
158
273
  </div></details>
159
274
 
275
+ <h3 class="site-preview-heading">Mixed Menu Items</h3>
276
+ <!-- prettier-ignore -->
277
+ <details
278
+
279
+ class="usx-popover"
280
+ data-side="bottom"
281
+ data-align="start"
282
+
283
+
284
+ >
285
+
286
+
287
+ <summary class="usa-button usx-button margin-0">Record actions</summary>
288
+
289
+ <div
290
+ id="django-popover-mixed-menu-items"
291
+ class="usx-popover__panel"
292
+ ><ul class="usx-popover__menu"><li><button
293
+ type="button"
294
+ class="usx-popover__menu-item"
295
+
296
+ onclick="navigator.clipboard.writeText(&#x27;Record 10482&#x27;)"
297
+
298
+ ><svg
299
+ class="
300
+ usa-icon usx-icon
301
+
302
+
303
+
304
+ "
305
+
306
+ aria-hidden="true"
307
+ focusable="false"
308
+ role="img"
309
+ ><use href="img/sprite.svg#content_copy"></use></svg>
310
+ Copy record
311
+ </button></li><li><a
312
+ href="#django-record-10482"
313
+ class="usa-link usx-link usx-no-visited usx-popover__menu-item"
314
+
315
+ >View record</a></li><li><span class="usx-popover__menu-item">Record actions require an account</span></li><li><button
316
+ type="button"
317
+ class="usx-popover__menu-item"
318
+ disabled
319
+
320
+
321
+ >
322
+
323
+ Archive record
324
+ </button></li></ul>
325
+ <div class="usx-popover__panel-content">
326
+ <p id="django-record-10482">Record 10482</p>
327
+ </div></div></details>
328
+
160
329
  <h3 class="site-preview-heading">Square Menu Items</h3>
161
330
  <!-- prettier-ignore -->
162
331
  <details
@@ -165,9 +334,12 @@
165
334
  data-side="bottom"
166
335
  data-align="start"
167
336
 
337
+
168
338
  >
169
339
 
340
+
170
341
  <summary class="usa-button usx-button usa-button--primary margin-0">Resident services</summary>
342
+
171
343
  <div
172
344
  id="django-popover-square-menu-items"
173
345
  class="usx-popover__panel usx-popover__panel--square"
@@ -233,13 +405,20 @@
233
405
  data-side="bottom"
234
406
  data-align="start"
235
407
 
408
+
236
409
  >
237
410
 
238
- <summary class="usa-button usx-button usa-button--primary margin-0" aria-label="Account and services, 3 notifications"><svg class="usa-icon margin-right-1" aria-hidden="true" focusable="false"><use href="./img/sprite.svg#menu"></use></svg><span>Account and services</span><span class="usa-tag margin-left-1">3</span></summary>
411
+
412
+ <summary class="usa-button usx-button usa-button--primary margin-0" aria-label="Account and services, 3 notifications">
413
+ <svg class="usa-icon margin-right-1" aria-hidden="true" focusable="false"><use href="./img/sprite.svg#menu"></use></svg>
414
+ <span>Account and services</span>
415
+ <span class="usa-tag margin-left-1">3</span>
416
+ </summary>
417
+
239
418
  <div
240
419
  id="django-popover-worst-case"
241
420
  class="usx-popover__panel font-sans-sm"
242
- ><h2 class="usx-popover__panel-heading">Account and services</h2><ul class="usx-popover__menu"><li><details
421
+ ><header class="usx-popover__header"><div class="usx-popover__header-content"><h2 class="usx-popover__panel-heading" tabindex="-1">Account and services</h2></div></header><ul class="usx-popover__menu"><li><details
243
422
  name="django-popover-worst-case"
244
423
  class="usx-popover"
245
424
  data-side="right"
@@ -305,8 +484,10 @@
305
484
  >
306
485
 
307
486
 
487
+
308
488
  <summary class="usx-summary"><span class="usx-summary-text">What to bring</span></summary>
309
489
 
490
+
310
491
  <div class="usx-details__content"><!-- prettier-ignore --><p class="usx-details__text">A photo ID and any letters you received about your case.</p></div>
311
492
  </details>
312
493
 
@@ -320,9 +501,12 @@
320
501
  data-side="bottom"
321
502
  data-align="start"
322
503
 
504
+
323
505
  >
324
506
 
507
+
325
508
  <summary class="usa-button usx-button usa-button--primary margin-0">Record links</summary>
509
+
326
510
  <div
327
511
  id="django-popover-links"
328
512
  class="usx-popover__panel"
@@ -345,9 +529,12 @@
345
529
  data-side="bottom"
346
530
  data-align="start"
347
531
 
532
+
348
533
  >
349
534
 
535
+
350
536
  <summary class="usa-button usx-button usa-button--primary margin-0">Filter results</summary>
537
+
351
538
  <div
352
539
  id="django-popover-rich-form"
353
540
  class="usx-popover__panel"
@@ -370,8 +557,10 @@
370
557
  >
371
558
 
372
559
 
560
+
373
561
  <summary class="usx-summary"><span class="usx-summary-text">How these filters work</span></summary>
374
562
 
563
+
375
564
  <div class="usx-details__content"><!-- prettier-ignore --><p class="usx-details__text">Combine a search term and status to narrow your results.</p></div>
376
565
  </details>
377
566
 
@@ -387,13 +576,16 @@
387
576
  data-side="bottom"
388
577
  data-align="start"
389
578
 
579
+
390
580
  >
391
581
 
582
+
392
583
  <summary class="usa-button usx-button usa-button--primary margin-0">Important dates</summary>
584
+
393
585
  <div
394
586
  id="django-popover-heading-default"
395
587
  class="usx-popover__panel"
396
- ><h2 class="usx-popover__panel-heading">Filing deadlines</h2><div class="usx-popover__panel-content">
588
+ ><header class="usx-popover__header"><div class="usx-popover__header-content"><h2 class="usx-popover__panel-heading" tabindex="-1">Filing deadlines</h2></div></header><div class="usx-popover__panel-content">
397
589
  <p class="margin-0">Applications are due by the last business day of the month.</p>
398
590
  </div><button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__panel-close" data-usx-popover-close="django-popover-heading-default">Close</button></div></details>
399
591
 
@@ -405,13 +597,16 @@
405
597
  data-side="bottom"
406
598
  data-align="start"
407
599
 
600
+
408
601
  >
409
602
 
603
+
410
604
  <summary class="usa-button usx-button usa-button--primary margin-0">Important dates</summary>
605
+
411
606
  <div
412
607
  id="django-popover-heading-h3"
413
608
  class="usx-popover__panel"
414
- ><h3 class="usx-popover__panel-heading">Filing deadlines</h3><div class="usx-popover__panel-content">
609
+ ><header class="usx-popover__header"><div class="usx-popover__header-content"><h3 class="usx-popover__panel-heading" tabindex="-1">Filing deadlines</h3></div></header><div class="usx-popover__panel-content">
415
610
  <p class="margin-0">Applications are due by the last business day of the month.</p>
416
611
  </div><button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__panel-close" data-usx-popover-close="django-popover-heading-h3">Close</button></div></details>
417
612
 
@@ -423,13 +618,16 @@
423
618
  data-side="bottom"
424
619
  data-align="start"
425
620
 
621
+
426
622
  >
427
623
 
624
+
428
625
  <summary class="usa-button usx-button usa-button--primary margin-0">Important dates</summary>
626
+
429
627
  <div
430
628
  id="django-popover-heading-h5"
431
629
  class="usx-popover__panel"
432
- ><h5 class="usx-popover__panel-heading">Filing deadlines</h5><div class="usx-popover__panel-content">
630
+ ><header class="usx-popover__header"><div class="usx-popover__header-content"><h5 class="usx-popover__panel-heading" tabindex="-1">Filing deadlines</h5></div></header><div class="usx-popover__panel-content">
433
631
  <p class="margin-0">Applications are due by the last business day of the month.</p>
434
632
  </div><button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__panel-close" data-usx-popover-close="django-popover-heading-h5">Close</button></div></details>
435
633
 
@@ -443,9 +641,12 @@
443
641
  data-side="right"
444
642
  data-align="start"
445
643
 
644
+
446
645
  >
447
646
 
647
+
448
648
  <summary class="usa-button usx-button usa-button--primary margin-0">right / start</summary>
649
+
449
650
  <div
450
651
  id="django-popover-right-start"
451
652
  class="usx-popover__panel"
@@ -459,9 +660,12 @@
459
660
  data-side="top"
460
661
  data-align="start"
461
662
 
663
+
462
664
  >
463
665
 
666
+
464
667
  <summary class="usa-button usx-button usa-button--primary margin-0">top / start</summary>
668
+
465
669
  <div
466
670
  id="django-popover-top-start"
467
671
  class="usx-popover__panel"
@@ -475,9 +679,12 @@
475
679
  data-side="bottom"
476
680
  data-align="start"
477
681
 
682
+
478
683
  >
479
684
 
685
+
480
686
  <summary class="usa-button usx-button usa-button--primary margin-0">bottom / start</summary>
687
+
481
688
  <div
482
689
  id="django-popover-bottom-start"
483
690
  class="usx-popover__panel"
@@ -491,9 +698,12 @@
491
698
  data-side="left"
492
699
  data-align="start"
493
700
 
701
+
494
702
  >
495
703
 
704
+
496
705
  <summary class="usa-button usx-button usa-button--primary margin-0">left / start</summary>
706
+
497
707
  <div
498
708
  id="django-popover-left-start"
499
709
  class="usx-popover__panel"
@@ -507,9 +717,12 @@
507
717
  data-side="right"
508
718
  data-align="center"
509
719
 
720
+
510
721
  >
511
722
 
723
+
512
724
  <summary class="usa-button usx-button usa-button--primary margin-0">right / center</summary>
725
+
513
726
  <div
514
727
  id="django-popover-right-center"
515
728
  class="usx-popover__panel"
@@ -523,9 +736,12 @@
523
736
  data-side="top"
524
737
  data-align="center"
525
738
 
739
+
526
740
  >
527
741
 
742
+
528
743
  <summary class="usa-button usx-button usa-button--primary margin-0">top / center</summary>
744
+
529
745
  <div
530
746
  id="django-popover-top-center"
531
747
  class="usx-popover__panel"
@@ -539,9 +755,12 @@
539
755
  data-side="bottom"
540
756
  data-align="center"
541
757
 
758
+
542
759
  >
543
760
 
761
+
544
762
  <summary class="usa-button usx-button usa-button--primary margin-0">bottom / center</summary>
763
+
545
764
  <div
546
765
  id="django-popover-bottom-center"
547
766
  class="usx-popover__panel"
@@ -555,9 +774,12 @@
555
774
  data-side="left"
556
775
  data-align="center"
557
776
 
777
+
558
778
  >
559
779
 
780
+
560
781
  <summary class="usa-button usx-button usa-button--primary margin-0">left / center</summary>
782
+
561
783
  <div
562
784
  id="django-popover-left-center"
563
785
  class="usx-popover__panel"
@@ -571,9 +793,12 @@
571
793
  data-side="right"
572
794
  data-align="end"
573
795
 
796
+
574
797
  >
575
798
 
799
+
576
800
  <summary class="usa-button usx-button usa-button--primary margin-0">right / end</summary>
801
+
577
802
  <div
578
803
  id="django-popover-right-end"
579
804
  class="usx-popover__panel"
@@ -587,9 +812,12 @@
587
812
  data-side="top"
588
813
  data-align="end"
589
814
 
815
+
590
816
  >
591
817
 
818
+
592
819
  <summary class="usa-button usx-button usa-button--primary margin-0">top / end</summary>
820
+
593
821
  <div
594
822
  id="django-popover-top-end"
595
823
  class="usx-popover__panel"
@@ -603,9 +831,12 @@
603
831
  data-side="bottom"
604
832
  data-align="end"
605
833
 
834
+
606
835
  >
607
836
 
837
+
608
838
  <summary class="usa-button usx-button usa-button--primary margin-0">bottom / end</summary>
839
+
609
840
  <div
610
841
  id="django-popover-bottom-end"
611
842
  class="usx-popover__panel"
@@ -619,9 +850,12 @@
619
850
  data-side="left"
620
851
  data-align="end"
621
852
 
853
+
622
854
  >
623
855
 
856
+
624
857
  <summary class="usa-button usx-button usa-button--primary margin-0">left / end</summary>
858
+
625
859
  <div
626
860
  id="django-popover-left-end"
627
861
  class="usx-popover__panel"
@@ -638,9 +872,12 @@
638
872
  data-side="bottom"
639
873
  data-align="start"
640
874
 
875
+
641
876
  >
642
877
 
878
+
643
879
  <summary class="usa-button usx-button usa-button--primary margin-0">Bottom / start in RTL</summary>
880
+
644
881
  <div
645
882
  id="django-popover-rtl-start"
646
883
  class="usx-popover__panel"
@@ -653,9 +890,12 @@
653
890
  data-side="bottom"
654
891
  data-align="end"
655
892
 
893
+
656
894
  >
657
895
 
896
+
658
897
  <summary class="usa-button usx-button usa-button--primary margin-0">Bottom / end in RTL</summary>
898
+
659
899
  <div
660
900
  id="django-popover-rtl-end"
661
901
  class="usx-popover__panel"
@@ -670,9 +910,12 @@
670
910
  data-side="bottom"
671
911
  data-align="start"
672
912
 
913
+
673
914
  >
674
915
 
916
+
675
917
  <summary class="usa-button usx-button usa-button--primary margin-0">City departments</summary>
918
+
676
919
  <div
677
920
  id="django-popover-long-content"
678
921
  class="usx-popover__panel"
@@ -911,9 +1154,15 @@
911
1154
  data-side="bottom"
912
1155
  data-align="start"
913
1156
 
1157
+
914
1158
  >
915
1159
 
916
- <summary class="usa-button usx-button usa-button--primary margin-0"><svg class="usa-icon margin-right-1" aria-hidden="true" focusable="false"><use href="./img/sprite.svg#menu"></use></svg><span>Menu</span></summary>
1160
+
1161
+ <summary class="usa-button usx-button usa-button--primary margin-0">
1162
+ <svg class="usa-icon margin-right-1" aria-hidden="true" focusable="false"><use href="./img/sprite.svg#menu"></use></svg>
1163
+ <span>Menu</span>
1164
+ </summary>
1165
+
917
1166
  <div
918
1167
  id="django-site-menu"
919
1168
  class="usx-popover__panel"
@@ -932,8 +1181,10 @@
932
1181
  >
933
1182
 
934
1183
 
1184
+
935
1185
  <summary class="usx-summary"><span class="usx-summary-text">Housing and neighborhoods</span></summary>
936
1186
 
1187
+
937
1188
  <div class="usx-details__content">
938
1189
  <ul
939
1190
  class="usx-tree usx-tree--padded"
@@ -948,8 +1199,10 @@
948
1199
  >
949
1200
 
950
1201
 
1202
+
951
1203
  <summary class="usx-summary"><span class="usx-summary-text">Help with housing costs</span></summary>
952
1204
 
1205
+
953
1206
  <div class="usx-details__content">
954
1207
  <ul
955
1208
  class="usx-tree usx-tree--padded"
@@ -1018,8 +1271,10 @@
1018
1271
  >
1019
1272
 
1020
1273
 
1274
+
1021
1275
  <summary class="usx-summary"><span class="usx-summary-text">Transportation</span></summary>
1022
1276
 
1277
+
1023
1278
  <div class="usx-details__content">
1024
1279
  <ul
1025
1280
  class="usx-tree usx-tree--padded"
@@ -1158,9 +1413,12 @@
1158
1413
  data-side="bottom"
1159
1414
  data-align="start"
1160
1415
 
1416
+
1161
1417
  >
1162
1418
 
1419
+
1163
1420
  <summary class="padding-2 bg-surface-2 border-left-1px border-right-1px usa-button usx-button usa-button--unstyled margin-0">Resident services</summary>
1421
+
1164
1422
  <div
1165
1423
  id="django-site-nav-services"
1166
1424
  class="usx-popover__panel usx-popover__panel--square"
@@ -5,8 +5,9 @@
5
5
  class="usx-popover{% if className %} {{ className }}{% endif %}"{% if defaultOpen %} open{% endif %}
6
6
  data-side="{{ side|default:'bottom'|force_escape }}"
7
7
  data-align="{{ align|default:'start'|force_escape }}"
8
+ {% if dismissOnOutside is False %}data-usx-popover-dismiss-on-outside="false"{% endif %}
8
9
  {% if extraAttributes %}{% for attr, value in extraAttributes.items %} {{ attr }}="{% if value is True %}true{% elif value is False %}false{% else %}{{ value }}{% endif %}"{% endfor %}{% endif %}
9
- >{% summary props=summaryProps label=summaryProps.label|default:'Open panel' unstyled=True %}{% endsummary %}<div
10
+ >{% summary props=summaryProps label=summaryProps|get_optional:'label'|default_if_none:'Open panel' unstyled=True %}{% endsummary %}<div
10
11
  id="{{ id|force_escape }}"
11
12
  class="usx-popover__panel{% if panelShape == 'square' %} usx-popover__panel--square{% endif %}{% if panelClassName %} {{ panelClassName }}{% endif %}"
12
- >{% if panelHeading %}{% if headingAs == 'h1' %}<h1 class="usx-popover__panel-heading">{{ panelHeading|force_escape }}</h1>{% elif headingAs == 'h3' %}<h3 class="usx-popover__panel-heading">{{ panelHeading|force_escape }}</h3>{% elif headingAs == 'h4' %}<h4 class="usx-popover__panel-heading">{{ panelHeading|force_escape }}</h4>{% elif headingAs == 'h5' %}<h5 class="usx-popover__panel-heading">{{ panelHeading|force_escape }}</h5>{% elif headingAs == 'h6' %}<h6 class="usx-popover__panel-heading">{{ panelHeading|force_escape }}</h6>{% else %}<h2 class="usx-popover__panel-heading">{{ panelHeading|force_escape }}</h2>{% endif %}{% endif %}{% if menuItems %}{% include "popover/popover-menu.django.html" with items=menuItems prefix=id panelShape=panelShape only %}{% endif %}{% if children %}<div class="usx-popover__panel-content{% if scrollable %} usx-popover__scroll{% endif %}{% if contentClassName %} {{ contentClassName }}{% endif %}">{{ children|safe }}</div>{% endif %}{% if showClose %}<button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__panel-close" data-usx-popover-close="{{ id|force_escape }}">{{ closeLabel|default:'Close'|force_escape }}</button>{% endif %}</div></details>
13
+ >{% if headerLeftActions or panelHeading or headerRightActions or showCloseIcon %}<header class="usx-popover__header{% if headerClassName %} {{ headerClassName }}{% endif %}">{% if headerLeftActions %}<div class="usx-popover__header-left-actions">{{ headerLeftActions|safe }}</div>{% endif %}<div class="usx-popover__header-content">{% if panelHeading %}{% if headingAs == 'h1' %}<h1 class="usx-popover__panel-heading"{% if panelHeadingId %} id="{{ panelHeadingId|force_escape }}"{% endif %} tabindex="-1">{{ panelHeading|force_escape }}</h1>{% elif headingAs == 'h3' %}<h3 class="usx-popover__panel-heading"{% if panelHeadingId %} id="{{ panelHeadingId|force_escape }}"{% endif %} tabindex="-1">{{ panelHeading|force_escape }}</h3>{% elif headingAs == 'h4' %}<h4 class="usx-popover__panel-heading"{% if panelHeadingId %} id="{{ panelHeadingId|force_escape }}"{% endif %} tabindex="-1">{{ panelHeading|force_escape }}</h4>{% elif headingAs == 'h5' %}<h5 class="usx-popover__panel-heading"{% if panelHeadingId %} id="{{ panelHeadingId|force_escape }}"{% endif %} tabindex="-1">{{ panelHeading|force_escape }}</h5>{% elif headingAs == 'h6' %}<h6 class="usx-popover__panel-heading"{% if panelHeadingId %} id="{{ panelHeadingId|force_escape }}"{% endif %} tabindex="-1">{{ panelHeading|force_escape }}</h6>{% else %}<h2 class="usx-popover__panel-heading"{% if panelHeadingId %} id="{{ panelHeadingId|force_escape }}"{% endif %} tabindex="-1">{{ panelHeading|force_escape }}</h2>{% endif %}{% endif %}</div>{% if headerRightActions or showCloseIcon %}<div class="usx-popover__header-right-actions">{% if headerRightActions %}{{ headerRightActions|safe }}{% endif %}{% if showCloseIcon %}<button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close" aria-label="{{ closeIconLabel|default:'Close'|force_escape }}" data-usx-popover-close="{{ id|force_escape }}">{% icon name='close' %}{% endicon %}</button>{% endif %}</div>{% endif %}</header>{% endif %}{% if menuItems %}{% include "popover/popover-menu.django.html" with items=menuItems prefix=id panelShape=panelShape only %}{% endif %}{% if children %}<div class="usx-popover__panel-content{% if scrollable %} usx-popover__scroll{% endif %}{% if contentClassName %} {{ contentClassName }}{% endif %}">{% if children is not True and children is not False %}{{ children|safe }}{% endif %}</div>{% endif %}{% if showClose %}<button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__panel-close" data-usx-popover-close="{{ id|force_escape }}">{{ closeLabel|default:'Close'|force_escape }}</button>{% endif %}</div></details>