@solexllc/usx-react 0.11.0 → 0.12.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 (181) hide show
  1. package/README.md +16 -0
  2. package/dist/Popover-BzDCTuQM.cjs +984 -0
  3. package/dist/Popover-LToVWsWc.js +985 -0
  4. package/dist/chat.cjs +1391 -0
  5. package/dist/chat.js +1391 -0
  6. package/dist/index.cjs +4428 -5290
  7. package/dist/index.js +58 -917
  8. package/package.json +7 -3
  9. package/src/chat.js +15 -0
  10. package/src/components/avatar/Avatar.tsx +54 -16
  11. package/src/components/avatar/avatar.django-snapshot.html +112 -0
  12. package/src/components/avatar/avatar.django.html +2 -2
  13. package/src/components/avatar/avatar.html +25 -0
  14. package/src/components/avatar/avatar.react-snapshot.html +104 -0
  15. package/src/components/avatar/config.json +13 -15
  16. package/src/components/avatar-group/AvatarGroup.tsx +17 -15
  17. package/src/components/avatar-group/avatar-group.django-snapshot.html +22 -0
  18. package/src/components/avatar-group/avatar-group.django.html +1 -1
  19. package/src/components/avatar-group/avatar-group.react-snapshot.html +20 -0
  20. package/src/components/avatar-group/config.json +2 -2
  21. package/src/components/back-to-top/BackToTop.tsx +21 -57
  22. package/src/components/back-to-top/back-to-top.django-snapshot.html +101 -202
  23. package/src/components/back-to-top/back-to-top.django.html +11 -38
  24. package/src/components/back-to-top/back-to-top.html +22 -106
  25. package/src/components/back-to-top/back-to-top.react-snapshot.html +94 -148
  26. package/src/components/back-to-top/config.json +41 -10
  27. package/src/components/button/Button.tsx +12 -3
  28. package/src/components/button/button.django-snapshot.html +18 -0
  29. package/src/components/button/button.django.html +3 -2
  30. package/src/components/button/button.react-snapshot.html +16 -0
  31. package/src/components/button/config.json +11 -2
  32. package/src/components/callout/callout.django.html +1 -1
  33. package/src/components/callout/config.json +7 -16
  34. package/src/components/character-count/CharacterCount.tsx +2 -0
  35. package/src/components/character-count/character-count.react-snapshot.html +7 -0
  36. package/src/components/chat/Chat.tsx +575 -0
  37. package/src/components/chat/README.md +174 -0
  38. package/src/components/chat/avatarProps.ts +32 -0
  39. package/src/components/chat/chat.django-snapshot.html +23515 -0
  40. package/src/components/chat/chat.django.html +75 -0
  41. package/src/components/chat/chat.html +116 -0
  42. package/src/components/chat/chat.react-snapshot.html +16895 -0
  43. package/src/components/chat/config.json +1241 -0
  44. package/src/components/chat-attachment/ChatAttachment.tsx +39 -0
  45. package/src/components/chat-attachment/chat-attachment.django.html +24 -0
  46. package/src/components/chat-attachment/chat-attachment.html +10 -0
  47. package/src/components/chat-attachment/config.json +27 -0
  48. package/src/components/chat-attachments/ChatAttachments.tsx +17 -0
  49. package/src/components/chat-attachments/chat-attachments.django-snapshot.html +58 -0
  50. package/src/components/chat-attachments/chat-attachments.django.html +10 -0
  51. package/src/components/chat-attachments/chat-attachments.html +14 -0
  52. package/src/components/chat-attachments/chat-attachments.react-snapshot.html +46 -0
  53. package/src/components/chat-attachments/config.json +25 -0
  54. package/src/components/chat-bubble/ChatBubble.tsx +39 -0
  55. package/src/components/chat-bubble/ChatFormattedText.tsx +138 -0
  56. package/src/components/chat-bubble/chat-bubble.django-snapshot.html +128 -0
  57. package/src/components/chat-bubble/chat-bubble.django.html +19 -0
  58. package/src/components/chat-bubble/chat-bubble.html +1 -0
  59. package/src/components/chat-bubble/chat-bubble.react-snapshot.html +118 -0
  60. package/src/components/chat-bubble/config.json +70 -0
  61. package/src/components/chat-composer/ChatComposer.tsx +210 -0
  62. package/src/components/chat-composer/README.md +15 -0
  63. package/src/components/chat-composer/chat-composer.django-snapshot.html +575 -0
  64. package/src/components/chat-composer/chat-composer.django.html +77 -0
  65. package/src/components/chat-composer/chat-composer.html +44 -0
  66. package/src/components/chat-composer/chat-composer.react-snapshot.html +519 -0
  67. package/src/components/chat-composer/chat-formatting.django.html +59 -0
  68. package/src/components/chat-composer/config.json +137 -0
  69. package/src/components/chat-context/ChatContext.tsx +46 -0
  70. package/src/components/chat-context/chat-context.django-snapshot.html +35 -0
  71. package/src/components/chat-context/chat-context.django.html +20 -0
  72. package/src/components/chat-context/chat-context.html +9 -0
  73. package/src/components/chat-context/chat-context.react-snapshot.html +30 -0
  74. package/src/components/chat-context/config.json +36 -0
  75. package/src/components/chat-controls/ChatControls.tsx +67 -0
  76. package/src/components/chat-controls/chat-controls.django-snapshot.html +114 -0
  77. package/src/components/chat-controls/chat-controls.django.html +36 -0
  78. package/src/components/chat-controls/chat-controls.html +11 -0
  79. package/src/components/chat-controls/chat-controls.react-snapshot.html +107 -0
  80. package/src/components/chat-controls/config.json +67 -0
  81. package/src/components/chat-directory/ChatDirectory.tsx +168 -0
  82. package/src/components/chat-directory/chat-directory.django-snapshot.html +546 -0
  83. package/src/components/chat-directory/chat-directory.django.html +14 -0
  84. package/src/components/chat-directory/chat-directory.html +4 -0
  85. package/src/components/chat-directory/chat-directory.react-snapshot.html +471 -0
  86. package/src/components/chat-directory/config.json +242 -0
  87. package/src/components/chat-directory-item/ChatDirectoryItem.tsx +150 -0
  88. package/src/components/chat-directory-item/chat-directory-item.django-snapshot.html +281 -0
  89. package/src/components/chat-directory-item/chat-directory-item.django.html +38 -0
  90. package/src/components/chat-directory-item/chat-directory-item.html +9 -0
  91. package/src/components/chat-directory-item/chat-directory-item.react-snapshot.html +249 -0
  92. package/src/components/chat-directory-item/config.json +103 -0
  93. package/src/components/chat-history/ChatHistory.tsx +30 -0
  94. package/src/components/chat-history/chat-history.django-snapshot.html +113 -0
  95. package/src/components/chat-history/chat-history.django.html +20 -0
  96. package/src/components/chat-history/chat-history.html +9 -0
  97. package/src/components/chat-history/chat-history.react-snapshot.html +111 -0
  98. package/src/components/chat-history/config.json +24 -0
  99. package/src/components/chat-message/ChatMessage.tsx +148 -0
  100. package/src/components/chat-message/chat-message.django-snapshot.html +758 -0
  101. package/src/components/chat-message/chat-message.django.html +56 -0
  102. package/src/components/chat-message/chat-message.html +12 -0
  103. package/src/components/chat-message/chat-message.react-snapshot.html +627 -0
  104. package/src/components/chat-message/config.json +278 -0
  105. package/src/components/chat-message-actions/ChatMessageActions.tsx +133 -0
  106. package/src/components/chat-message-actions/chat-message-actions.django-snapshot.html +345 -0
  107. package/src/components/chat-message-actions/chat-message-actions.django.html +29 -0
  108. package/src/components/chat-message-actions/chat-message-actions.html +53 -0
  109. package/src/components/chat-message-actions/chat-message-actions.react-snapshot.html +295 -0
  110. package/src/components/chat-message-actions/config.json +121 -0
  111. package/src/components/chat-window/ChatWindow.tsx +133 -0
  112. package/src/components/chat-window/chat-window.django-snapshot.html +448 -0
  113. package/src/components/chat-window/chat-window.django.html +39 -0
  114. package/src/components/chat-window/chat-window.html +26 -0
  115. package/src/components/chat-window/chat-window.react-snapshot.html +286 -0
  116. package/src/components/chat-window/config.json +123 -0
  117. package/src/components/clickable/Clickable.tsx +19 -5
  118. package/src/components/clickable/clickable.django-snapshot.html +11 -2
  119. package/src/components/clickable/clickable.django.html +2 -0
  120. package/src/components/clickable/clickable.react-snapshot.html +10 -2
  121. package/src/components/clickable/config.json +4 -0
  122. package/src/components/code/code.django-snapshot.html +25 -18
  123. package/src/components/code/code.react-snapshot.html +41 -4
  124. package/src/components/copy-to-clipboard/CopyToClipboard.tsx +2 -7
  125. package/src/components/copy-to-clipboard/copy-to-clipboard.django-snapshot.html +6 -4
  126. package/src/components/copy-to-clipboard/copy-to-clipboard.django.html +3 -2
  127. package/src/components/copy-to-clipboard/copy-to-clipboard.react-snapshot.html +14 -2
  128. package/src/components/file-list/FileList.tsx +3 -2
  129. package/src/components/file-list/config.json +5 -0
  130. package/src/components/file-list/file-list.django-snapshot.html +63 -0
  131. package/src/components/file-list/file-list.django.html +1 -1
  132. package/src/components/file-list/file-list.react-snapshot.html +53 -0
  133. package/src/components/footer/footer.django-snapshot.html +0 -3
  134. package/src/components/header/header.django-snapshot.html +0 -160
  135. package/src/components/header/header.django.html +2 -2
  136. package/src/components/hero/hero.django-snapshot.html +0 -20
  137. package/src/components/hero/hero.django.html +3 -3
  138. package/src/components/image/image.django.html +4 -4
  139. package/src/components/input/Input.tsx +1 -1
  140. package/src/components/input/config.json +2 -3
  141. package/src/components/input/input.django-snapshot.html +4 -21
  142. package/src/components/input/input.django.html +2 -2
  143. package/src/components/link/Link.tsx +7 -4
  144. package/src/components/link/config.json +2 -3
  145. package/src/components/link/link.django-snapshot.html +8 -0
  146. package/src/components/link/link.django.html +2 -2
  147. package/src/components/link/link.html +4 -1
  148. package/src/components/link/link.react-snapshot.html +8 -0
  149. package/src/components/memorable-date/memorable-date.django-snapshot.html +0 -8
  150. package/src/components/memorable-date/memorable-date.django.html +2 -2
  151. package/src/components/misc-banner/misc-banner.django-snapshot.html +12 -12
  152. package/src/components/misc-banner/misc-banner.django.html +4 -2
  153. package/src/components/popover/Popover.tsx +60 -9
  154. package/src/components/popover/PopoverMenu.tsx +33 -15
  155. package/src/components/popover/config.json +88 -14
  156. package/src/components/popover/popover-menu.django.html +13 -2
  157. package/src/components/popover/popover.django-snapshot.html +229 -7
  158. package/src/components/popover/popover.django.html +3 -2
  159. package/src/components/popover/popover.react-snapshot.html +127 -4
  160. package/src/components/process-list/config.json +41 -3
  161. package/src/components/quote/Quote.tsx +9 -2
  162. package/src/components/search/Search.tsx +1 -1
  163. package/src/components/search/config.json +3 -4
  164. package/src/components/search/search.django-snapshot.html +262 -1684
  165. package/src/components/search/search.django.html +1 -20
  166. package/src/components/select/select.django-snapshot.html +7 -7
  167. package/src/components/select/select.react-snapshot.html +7 -7
  168. package/src/components/summary/Summary.tsx +4 -2
  169. package/src/components/summary/config.json +4 -0
  170. package/src/components/summary/summary.django.html +4 -4
  171. package/src/components/table/Table.tsx +58 -25
  172. package/src/components/table/config.json +61 -13
  173. package/src/components/tag/Tag.tsx +40 -7
  174. package/src/components/tag/config.json +18 -2
  175. package/src/components/tag/tag.django-snapshot.html +16 -1
  176. package/src/components/tag/tag.django.html +12 -6
  177. package/src/components/tag/tag.html +4 -0
  178. package/src/components/tag/tag.react-snapshot.html +16 -1
  179. package/src/components/tag-group/TagGroup.tsx +6 -9
  180. package/src/components/tag-group/config.json +4 -0
  181. package/src/components/tag-group/tag-group.django.html +1 -1
@@ -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,53 @@
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">Header Actions</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 margin-0">Open record</summary>
145
+
146
+ <div
147
+ id="django-popover-header-actions"
148
+ class="usx-popover__panel"
149
+ ><header class="usx-popover__header"><div class="usx-popover__header-left-actions"><button type="button" class="usa-button usx-button usa-button--unstyled 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-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-popover__header-action usx-popover__header-close" aria-label="Close record" data-usx-popover-close="django-popover-header-actions">
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">Review the record before taking action.</div></div></details>
167
+
92
168
  <h3 class="site-preview-heading">Menu Items</h3>
93
169
  <!-- prettier-ignore -->
94
170
  <details
@@ -97,9 +173,12 @@
97
173
  data-side="bottom"
98
174
  data-align="start"
99
175
 
176
+
100
177
  >
101
178
 
179
+
102
180
  <summary class="usa-button usx-button usa-button--primary margin-0">Resident services</summary>
181
+
103
182
  <div
104
183
  id="django-popover-menu-items"
105
184
  class="usx-popover__panel"
@@ -157,6 +236,60 @@
157
236
  >Contact a service center</a></li></ul>
158
237
  </div></details>
159
238
 
239
+ <h3 class="site-preview-heading">Mixed Menu Items</h3>
240
+ <!-- prettier-ignore -->
241
+ <details
242
+
243
+ class="usx-popover"
244
+ data-side="bottom"
245
+ data-align="start"
246
+
247
+
248
+ >
249
+
250
+
251
+ <summary class="usa-button usx-button margin-0">Record actions</summary>
252
+
253
+ <div
254
+ id="django-popover-mixed-menu-items"
255
+ class="usx-popover__panel"
256
+ ><ul class="usx-popover__menu"><li><button
257
+ type="button"
258
+ class="usx-popover__menu-item"
259
+
260
+ onclick="navigator.clipboard.writeText(&#x27;Record 10482&#x27;)"
261
+
262
+ ><svg
263
+ class="
264
+ usa-icon usx-icon
265
+
266
+
267
+
268
+ "
269
+
270
+ aria-hidden="true"
271
+ focusable="false"
272
+ role="img"
273
+ ><use href="img/sprite.svg#content_copy"></use></svg>
274
+ Copy record
275
+ </button></li><li><a
276
+ href="#django-record-10482"
277
+ class="usa-link usx-link usx-no-visited usx-popover__menu-item"
278
+
279
+ >View record</a></li><li><span class="usx-popover__menu-item">Record actions require an account</span></li><li><button
280
+ type="button"
281
+ class="usx-popover__menu-item"
282
+ disabled
283
+
284
+
285
+ >
286
+
287
+ Archive record
288
+ </button></li></ul>
289
+ <div class="usx-popover__panel-content">
290
+ <p id="django-record-10482">Record 10482</p>
291
+ </div></div></details>
292
+
160
293
  <h3 class="site-preview-heading">Square Menu Items</h3>
161
294
  <!-- prettier-ignore -->
162
295
  <details
@@ -165,9 +298,12 @@
165
298
  data-side="bottom"
166
299
  data-align="start"
167
300
 
301
+
168
302
  >
169
303
 
304
+
170
305
  <summary class="usa-button usx-button usa-button--primary margin-0">Resident services</summary>
306
+
171
307
  <div
172
308
  id="django-popover-square-menu-items"
173
309
  class="usx-popover__panel usx-popover__panel--square"
@@ -233,13 +369,20 @@
233
369
  data-side="bottom"
234
370
  data-align="start"
235
371
 
372
+
236
373
  >
237
374
 
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>
375
+
376
+ <summary class="usa-button usx-button usa-button--primary margin-0" aria-label="Account and services, 3 notifications">
377
+ <svg class="usa-icon margin-right-1" aria-hidden="true" focusable="false"><use href="./img/sprite.svg#menu"></use></svg>
378
+ <span>Account and services</span>
379
+ <span class="usa-tag margin-left-1">3</span>
380
+ </summary>
381
+
239
382
  <div
240
383
  id="django-popover-worst-case"
241
384
  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
385
+ ><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
386
  name="django-popover-worst-case"
244
387
  class="usx-popover"
245
388
  data-side="right"
@@ -305,8 +448,10 @@
305
448
  >
306
449
 
307
450
 
451
+
308
452
  <summary class="usx-summary"><span class="usx-summary-text">What to bring</span></summary>
309
453
 
454
+
310
455
  <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
456
  </details>
312
457
 
@@ -320,9 +465,12 @@
320
465
  data-side="bottom"
321
466
  data-align="start"
322
467
 
468
+
323
469
  >
324
470
 
471
+
325
472
  <summary class="usa-button usx-button usa-button--primary margin-0">Record links</summary>
473
+
326
474
  <div
327
475
  id="django-popover-links"
328
476
  class="usx-popover__panel"
@@ -345,9 +493,12 @@
345
493
  data-side="bottom"
346
494
  data-align="start"
347
495
 
496
+
348
497
  >
349
498
 
499
+
350
500
  <summary class="usa-button usx-button usa-button--primary margin-0">Filter results</summary>
501
+
351
502
  <div
352
503
  id="django-popover-rich-form"
353
504
  class="usx-popover__panel"
@@ -370,8 +521,10 @@
370
521
  >
371
522
 
372
523
 
524
+
373
525
  <summary class="usx-summary"><span class="usx-summary-text">How these filters work</span></summary>
374
526
 
527
+
375
528
  <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
529
  </details>
377
530
 
@@ -387,13 +540,16 @@
387
540
  data-side="bottom"
388
541
  data-align="start"
389
542
 
543
+
390
544
  >
391
545
 
546
+
392
547
  <summary class="usa-button usx-button usa-button--primary margin-0">Important dates</summary>
548
+
393
549
  <div
394
550
  id="django-popover-heading-default"
395
551
  class="usx-popover__panel"
396
- ><h2 class="usx-popover__panel-heading">Filing deadlines</h2><div class="usx-popover__panel-content">
552
+ ><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
553
  <p class="margin-0">Applications are due by the last business day of the month.</p>
398
554
  </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
555
 
@@ -405,13 +561,16 @@
405
561
  data-side="bottom"
406
562
  data-align="start"
407
563
 
564
+
408
565
  >
409
566
 
567
+
410
568
  <summary class="usa-button usx-button usa-button--primary margin-0">Important dates</summary>
569
+
411
570
  <div
412
571
  id="django-popover-heading-h3"
413
572
  class="usx-popover__panel"
414
- ><h3 class="usx-popover__panel-heading">Filing deadlines</h3><div class="usx-popover__panel-content">
573
+ ><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
574
  <p class="margin-0">Applications are due by the last business day of the month.</p>
416
575
  </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
576
 
@@ -423,13 +582,16 @@
423
582
  data-side="bottom"
424
583
  data-align="start"
425
584
 
585
+
426
586
  >
427
587
 
588
+
428
589
  <summary class="usa-button usx-button usa-button--primary margin-0">Important dates</summary>
590
+
429
591
  <div
430
592
  id="django-popover-heading-h5"
431
593
  class="usx-popover__panel"
432
- ><h5 class="usx-popover__panel-heading">Filing deadlines</h5><div class="usx-popover__panel-content">
594
+ ><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
595
  <p class="margin-0">Applications are due by the last business day of the month.</p>
434
596
  </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
597
 
@@ -443,9 +605,12 @@
443
605
  data-side="right"
444
606
  data-align="start"
445
607
 
608
+
446
609
  >
447
610
 
611
+
448
612
  <summary class="usa-button usx-button usa-button--primary margin-0">right / start</summary>
613
+
449
614
  <div
450
615
  id="django-popover-right-start"
451
616
  class="usx-popover__panel"
@@ -459,9 +624,12 @@
459
624
  data-side="top"
460
625
  data-align="start"
461
626
 
627
+
462
628
  >
463
629
 
630
+
464
631
  <summary class="usa-button usx-button usa-button--primary margin-0">top / start</summary>
632
+
465
633
  <div
466
634
  id="django-popover-top-start"
467
635
  class="usx-popover__panel"
@@ -475,9 +643,12 @@
475
643
  data-side="bottom"
476
644
  data-align="start"
477
645
 
646
+
478
647
  >
479
648
 
649
+
480
650
  <summary class="usa-button usx-button usa-button--primary margin-0">bottom / start</summary>
651
+
481
652
  <div
482
653
  id="django-popover-bottom-start"
483
654
  class="usx-popover__panel"
@@ -491,9 +662,12 @@
491
662
  data-side="left"
492
663
  data-align="start"
493
664
 
665
+
494
666
  >
495
667
 
668
+
496
669
  <summary class="usa-button usx-button usa-button--primary margin-0">left / start</summary>
670
+
497
671
  <div
498
672
  id="django-popover-left-start"
499
673
  class="usx-popover__panel"
@@ -507,9 +681,12 @@
507
681
  data-side="right"
508
682
  data-align="center"
509
683
 
684
+
510
685
  >
511
686
 
687
+
512
688
  <summary class="usa-button usx-button usa-button--primary margin-0">right / center</summary>
689
+
513
690
  <div
514
691
  id="django-popover-right-center"
515
692
  class="usx-popover__panel"
@@ -523,9 +700,12 @@
523
700
  data-side="top"
524
701
  data-align="center"
525
702
 
703
+
526
704
  >
527
705
 
706
+
528
707
  <summary class="usa-button usx-button usa-button--primary margin-0">top / center</summary>
708
+
529
709
  <div
530
710
  id="django-popover-top-center"
531
711
  class="usx-popover__panel"
@@ -539,9 +719,12 @@
539
719
  data-side="bottom"
540
720
  data-align="center"
541
721
 
722
+
542
723
  >
543
724
 
725
+
544
726
  <summary class="usa-button usx-button usa-button--primary margin-0">bottom / center</summary>
727
+
545
728
  <div
546
729
  id="django-popover-bottom-center"
547
730
  class="usx-popover__panel"
@@ -555,9 +738,12 @@
555
738
  data-side="left"
556
739
  data-align="center"
557
740
 
741
+
558
742
  >
559
743
 
744
+
560
745
  <summary class="usa-button usx-button usa-button--primary margin-0">left / center</summary>
746
+
561
747
  <div
562
748
  id="django-popover-left-center"
563
749
  class="usx-popover__panel"
@@ -571,9 +757,12 @@
571
757
  data-side="right"
572
758
  data-align="end"
573
759
 
760
+
574
761
  >
575
762
 
763
+
576
764
  <summary class="usa-button usx-button usa-button--primary margin-0">right / end</summary>
765
+
577
766
  <div
578
767
  id="django-popover-right-end"
579
768
  class="usx-popover__panel"
@@ -587,9 +776,12 @@
587
776
  data-side="top"
588
777
  data-align="end"
589
778
 
779
+
590
780
  >
591
781
 
782
+
592
783
  <summary class="usa-button usx-button usa-button--primary margin-0">top / end</summary>
784
+
593
785
  <div
594
786
  id="django-popover-top-end"
595
787
  class="usx-popover__panel"
@@ -603,9 +795,12 @@
603
795
  data-side="bottom"
604
796
  data-align="end"
605
797
 
798
+
606
799
  >
607
800
 
801
+
608
802
  <summary class="usa-button usx-button usa-button--primary margin-0">bottom / end</summary>
803
+
609
804
  <div
610
805
  id="django-popover-bottom-end"
611
806
  class="usx-popover__panel"
@@ -619,9 +814,12 @@
619
814
  data-side="left"
620
815
  data-align="end"
621
816
 
817
+
622
818
  >
623
819
 
820
+
624
821
  <summary class="usa-button usx-button usa-button--primary margin-0">left / end</summary>
822
+
625
823
  <div
626
824
  id="django-popover-left-end"
627
825
  class="usx-popover__panel"
@@ -638,9 +836,12 @@
638
836
  data-side="bottom"
639
837
  data-align="start"
640
838
 
839
+
641
840
  >
642
841
 
842
+
643
843
  <summary class="usa-button usx-button usa-button--primary margin-0">Bottom / start in RTL</summary>
844
+
644
845
  <div
645
846
  id="django-popover-rtl-start"
646
847
  class="usx-popover__panel"
@@ -653,9 +854,12 @@
653
854
  data-side="bottom"
654
855
  data-align="end"
655
856
 
857
+
656
858
  >
657
859
 
860
+
658
861
  <summary class="usa-button usx-button usa-button--primary margin-0">Bottom / end in RTL</summary>
862
+
659
863
  <div
660
864
  id="django-popover-rtl-end"
661
865
  class="usx-popover__panel"
@@ -670,9 +874,12 @@
670
874
  data-side="bottom"
671
875
  data-align="start"
672
876
 
877
+
673
878
  >
674
879
 
880
+
675
881
  <summary class="usa-button usx-button usa-button--primary margin-0">City departments</summary>
882
+
676
883
  <div
677
884
  id="django-popover-long-content"
678
885
  class="usx-popover__panel"
@@ -911,9 +1118,15 @@
911
1118
  data-side="bottom"
912
1119
  data-align="start"
913
1120
 
1121
+
914
1122
  >
915
1123
 
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>
1124
+
1125
+ <summary class="usa-button usx-button usa-button--primary margin-0">
1126
+ <svg class="usa-icon margin-right-1" aria-hidden="true" focusable="false"><use href="./img/sprite.svg#menu"></use></svg>
1127
+ <span>Menu</span>
1128
+ </summary>
1129
+
917
1130
  <div
918
1131
  id="django-site-menu"
919
1132
  class="usx-popover__panel"
@@ -932,8 +1145,10 @@
932
1145
  >
933
1146
 
934
1147
 
1148
+
935
1149
  <summary class="usx-summary"><span class="usx-summary-text">Housing and neighborhoods</span></summary>
936
1150
 
1151
+
937
1152
  <div class="usx-details__content">
938
1153
  <ul
939
1154
  class="usx-tree usx-tree--padded"
@@ -948,8 +1163,10 @@
948
1163
  >
949
1164
 
950
1165
 
1166
+
951
1167
  <summary class="usx-summary"><span class="usx-summary-text">Help with housing costs</span></summary>
952
1168
 
1169
+
953
1170
  <div class="usx-details__content">
954
1171
  <ul
955
1172
  class="usx-tree usx-tree--padded"
@@ -1018,8 +1235,10 @@
1018
1235
  >
1019
1236
 
1020
1237
 
1238
+
1021
1239
  <summary class="usx-summary"><span class="usx-summary-text">Transportation</span></summary>
1022
1240
 
1241
+
1023
1242
  <div class="usx-details__content">
1024
1243
  <ul
1025
1244
  class="usx-tree usx-tree--padded"
@@ -1158,9 +1377,12 @@
1158
1377
  data-side="bottom"
1159
1378
  data-align="start"
1160
1379
 
1380
+
1161
1381
  >
1162
1382
 
1383
+
1163
1384
  <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>
1385
+
1164
1386
  <div
1165
1387
  id="django-site-nav-services"
1166
1388
  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-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>