@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
@@ -0,0 +1,546 @@
1
+ <h3 class="site-preview-heading">Default</h3>
2
+ <div>
3
+ <section id="django-example-directory-default" class="usx-chat" style="max-width: 28rem">
4
+ <div data-chat-view="inbox" class="usx-chat__window" style="height: auto">
5
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
6
+ <nav class="usx-chat__directory" aria-label="Conversations">
7
+ <ul class="usx-chat__directory-list"></ul>
8
+ <p class="usx-chat__empty">No conversations yet.</p>
9
+ </nav>
10
+ <button type="button" class="usa-button usx-button" data-usx-chat-new="">New message</button>
11
+ </div>
12
+ </section>
13
+ </div>
14
+
15
+ <h3 class="site-preview-heading">People</h3>
16
+ <div>
17
+ <section id="django-example-directory-people" class="usx-chat" style="max-width: 28rem">
18
+ <div data-chat-view="contacts" class="usx-chat__window" style="height: auto">
19
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
20
+ <nav class="usx-chat__directory" aria-label="People">
21
+ <ul class="usx-chat__directory-list">
22
+ <li>
23
+ <button
24
+ type="button"
25
+ class="usx-clickable usx-chat__directory-item"
26
+ data-usx-chat-contact="a"
27
+ >
28
+ <span class="usx-avatar usx-chat__avatar" aria-label="Avery">
29
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">A</span>
30
+ </span>
31
+
32
+ <span class="usx-chat__directory-copy">
33
+ <span class="usx-chat__directory-title">Avery</span>
34
+ <span class="usx-chat__directory-subtitle">Support</span>
35
+ </span>
36
+ </button>
37
+ </li>
38
+ </ul>
39
+ </nav>
40
+ <button type="button" class="usa-button usx-button" data-usx-chat-new="">New message</button>
41
+ </div>
42
+ </section>
43
+ </div>
44
+
45
+ <h3 class="site-preview-heading">Inbox</h3>
46
+ <div>
47
+ <section id="django-example-directory-inbox" class="usx-chat" style="max-width: 28rem">
48
+ <div data-chat-view="inbox" class="usx-chat__window" style="height: auto">
49
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
50
+ <nav class="usx-chat__directory" aria-label="Conversations">
51
+ <ul class="usx-chat__directory-list">
52
+ <li>
53
+ <button
54
+ type="button"
55
+ class="usx-clickable usx-chat__directory-item"
56
+ data-usx-chat-conversation="c"
57
+ >
58
+ <span class="usx-avatar usx-chat__avatar" aria-label="Avery">
59
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">A</span>
60
+ </span>
61
+
62
+ <span class="usx-chat__directory-copy">
63
+ <span class="usx-chat__directory-title">Support</span>
64
+
65
+ <span class="usx-chat__directory-preview">Hello</span>
66
+ </span>
67
+
68
+ <span class="usx-chat__directory-meta">
69
+ <span aria-hidden="true">
70
+ <span class="usa-tag usx-tag bg-info usx-rounded-md"> 2 </span>
71
+ </span>
72
+ <span class="usa-sr-only">2 unread messages</span>
73
+ </span>
74
+ </button>
75
+ </li>
76
+ </ul>
77
+ </nav>
78
+ <button type="button" class="usa-button usx-button" data-usx-chat-new="">New message</button>
79
+ </div>
80
+ </section>
81
+ </div>
82
+
83
+ <h3 class="site-preview-heading">With Actions</h3>
84
+ <div>
85
+ <section id="django-example-directory-withactions" class="usx-chat" style="max-width: 28rem">
86
+ <div data-chat-view="inbox" class="usx-chat__window" style="height: auto">
87
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
88
+ <nav class="usx-chat__directory" aria-label="Conversations">
89
+ <ul class="usx-chat__directory-list">
90
+ <li class="usx-chat__directory-row">
91
+ <button
92
+ type="button"
93
+ class="usx-clickable usx-chat__directory-item"
94
+ data-usx-chat-conversation="review-team"
95
+ >
96
+ <div class="usx-avatar-group usx-avatar-group--overlap usx-chat__directory-avatars">
97
+ <span class="usx-avatar usx-chat__avatar" aria-label="Morgan">
98
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
99
+ >M</span
100
+ >
101
+ </span>
102
+
103
+ <span class="usx-avatar usx-chat__avatar" aria-label="Taylor">
104
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
105
+ >T</span
106
+ >
107
+ </span>
108
+ </div>
109
+
110
+ <span class="usx-chat__directory-copy">
111
+ <span class="usx-chat__directory-title">Application review team</span>
112
+
113
+ <span class="usx-chat__directory-preview">Ready for the review?</span>
114
+ </span>
115
+ </button>
116
+
117
+ <!-- prettier-ignore -->
118
+ <details
119
+
120
+ class="usx-popover usx-chat__directory-actions"
121
+ data-side="bottom"
122
+ data-align="end"
123
+
124
+
125
+ >
126
+
127
+
128
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="Actions for Application review team">
129
+
130
+ <svg
131
+ class="
132
+ usa-icon usx-icon
133
+
134
+
135
+
136
+ "
137
+
138
+ aria-hidden="true"
139
+ focusable="false"
140
+ role="img"
141
+ >
142
+
143
+ <use href="img/sprite.svg#more_vert"></use>
144
+
145
+ </svg></summary>
146
+
147
+ <div
148
+ id="django-directory-actions-conversation-review-team-actions"
149
+ class="usx-popover__panel usx-popover__panel--square"
150
+ ><ul class="usx-popover__menu"><li><button
151
+ type="button"
152
+ class="usx-popover__menu-item"
153
+
154
+
155
+ data-usx-chat-directory-action="leave-group"data-usx-chat-conversation-id="review-team"
156
+ >
157
+
158
+ Leave group
159
+ </button></li><li><button
160
+ type="button"
161
+ class="usx-popover__menu-item"
162
+
163
+
164
+ data-usx-chat-directory-action="delete-history"data-usx-chat-conversation-id="review-team"
165
+ >
166
+
167
+ Delete chat history
168
+ </button></li></ul>
169
+ </div></details>
170
+ </li>
171
+
172
+ <li class="usx-chat__directory-row">
173
+ <a class="usx-clickable usx-chat__directory-item" href="#support">
174
+ <span class="usx-avatar usx-chat__avatar" aria-label="Morgan">
175
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">M</span>
176
+ </span>
177
+
178
+ <span class="usx-chat__directory-copy">
179
+ <span class="usx-chat__directory-title">Support</span>
180
+ </span>
181
+ </a>
182
+
183
+ <!-- prettier-ignore -->
184
+ <details
185
+
186
+ class="usx-popover usx-chat__directory-actions"
187
+ data-side="bottom"
188
+ data-align="end"
189
+
190
+
191
+ >
192
+
193
+
194
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="Actions for Support">
195
+
196
+ <svg
197
+ class="
198
+ usa-icon usx-icon
199
+
200
+
201
+
202
+ "
203
+
204
+ aria-hidden="true"
205
+ focusable="false"
206
+ role="img"
207
+ >
208
+
209
+ <use href="img/sprite.svg#more_vert"></use>
210
+
211
+ </svg></summary>
212
+
213
+ <div
214
+ id="django-directory-actions-conversation-support-actions"
215
+ class="usx-popover__panel usx-popover__panel--square"
216
+ ><ul class="usx-popover__menu"><li><button
217
+ type="button"
218
+ class="usx-popover__menu-item"
219
+ disabled
220
+
221
+ data-usx-chat-directory-action="delete-history"data-usx-chat-conversation-id="support"
222
+ >
223
+
224
+ Delete chat history
225
+ </button></li></ul>
226
+ </div></details>
227
+ </li>
228
+
229
+ <li>
230
+ <button
231
+ type="button"
232
+ class="usx-clickable usx-chat__directory-item"
233
+ data-usx-chat-conversation="announcements"
234
+ >
235
+ <span class="usx-avatar usx-chat__avatar" aria-label="Morgan">
236
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">M</span>
237
+ </span>
238
+
239
+ <span class="usx-chat__directory-copy">
240
+ <span class="usx-chat__directory-title">Announcements</span>
241
+ </span>
242
+ </button>
243
+ </li>
244
+ </ul>
245
+ </nav>
246
+ <button type="button" class="usa-button usx-button" data-usx-chat-new="">New message</button>
247
+ </div>
248
+ </section>
249
+ </div>
250
+
251
+ <h3 class="site-preview-heading">Contact Actions</h3>
252
+ <div>
253
+ <section id="django-example-directory-contactactions" class="usx-chat" style="max-width: 28rem">
254
+ <div data-chat-view="contacts" class="usx-chat__window" style="height: auto">
255
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
256
+ <nav class="usx-chat__directory" aria-label="People">
257
+ <ul class="usx-chat__directory-list">
258
+ <li class="usx-chat__directory-row">
259
+ <button
260
+ type="button"
261
+ class="usx-clickable usx-chat__directory-item"
262
+ data-usx-chat-contact="agent"
263
+ >
264
+ <span class="usx-avatar usx-chat__avatar" aria-label="Morgan">
265
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">M</span>
266
+ </span>
267
+
268
+ <span class="usx-chat__directory-copy">
269
+ <span class="usx-chat__directory-title">Morgan</span>
270
+ </span>
271
+ </button>
272
+
273
+ <!-- prettier-ignore -->
274
+ <details
275
+
276
+ class="usx-popover usx-chat__directory-actions"
277
+ data-side="bottom"
278
+ data-align="end"
279
+
280
+
281
+ >
282
+
283
+
284
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="Actions for Morgan">
285
+
286
+ <svg
287
+ class="
288
+ usa-icon usx-icon
289
+
290
+
291
+
292
+ "
293
+
294
+ aria-hidden="true"
295
+ focusable="false"
296
+ role="img"
297
+ >
298
+
299
+ <use href="img/sprite.svg#more_vert"></use>
300
+
301
+ </svg></summary>
302
+
303
+ <div
304
+ id="django-directory-contact-actions-recipient-agent-actions"
305
+ class="usx-popover__panel usx-popover__panel--square"
306
+ ><ul class="usx-popover__menu"><li><button
307
+ type="button"
308
+ class="usx-popover__menu-item"
309
+
310
+
311
+ data-usx-chat-directory-action="delete-history"data-usx-chat-conversation-id="support"data-usx-chat-participant-id="agent"
312
+ >
313
+
314
+ Delete chat history
315
+ </button></li></ul>
316
+ </div></details>
317
+ </li>
318
+ </ul>
319
+ </nav>
320
+ <button type="button" class="usa-button usx-button" data-usx-chat-new="">New message</button>
321
+ </div>
322
+ </section>
323
+ </div>
324
+
325
+ <h3 class="site-preview-heading">Recipient Picker</h3>
326
+ <div>
327
+ <section id="django-example-directory-recipientpicker" class="usx-chat" style="max-width: 28rem">
328
+ <div data-chat-view="contacts" class="usx-chat__window" style="height: auto">
329
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
330
+ <div class="usx-chat__directory" role="group" aria-label="Recipients">
331
+ <p class="usx-chat__recipient-hint">To: Choose one or more people.</p>
332
+
333
+ <ul class="usx-chat__directory-list">
334
+ <li>
335
+ <div class="usa-checkbox usx-checkbox usx-chat__directory-item usx-chat__recipient">
336
+ <input
337
+ id="django-directory-recipients-recipient-agent"
338
+ class="usa-checkbox__input"
339
+ type="checkbox"
340
+ name="recipientIds"
341
+ value="agent"
342
+ form="django-example-directory-recipientpicker-composer"
343
+ checked
344
+ aria-label="Morgan"
345
+ aria-describedby="django-directory-recipients-recipient-agent-description"
346
+ data-usx-chat-recipient=""
347
+ />
348
+ <label
349
+ class="usa-checkbox__label usx-chat__recipient-label"
350
+ for="django-directory-recipients-recipient-agent"
351
+ >
352
+ <span class="usx-avatar usx-chat__avatar" aria-label="Morgan">
353
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
354
+ >M</span
355
+ >
356
+ </span>
357
+
358
+ <span class="usx-chat__directory-copy">
359
+ <span class="usx-chat__directory-title">Morgan</span>
360
+ <span
361
+ class="usx-chat__directory-subtitle"
362
+ id="django-directory-recipients-recipient-agent-description"
363
+ >Application support</span
364
+ >
365
+ </span>
366
+ </label>
367
+ </div>
368
+ </li>
369
+
370
+ <li>
371
+ <div class="usa-checkbox usx-checkbox usx-chat__directory-item usx-chat__recipient">
372
+ <input
373
+ id="django-directory-recipients-recipient-specialist"
374
+ class="usa-checkbox__input"
375
+ type="checkbox"
376
+ name="recipientIds"
377
+ value="specialist"
378
+ form="django-example-directory-recipientpicker-composer"
379
+ aria-label="Taylor"
380
+ aria-describedby="django-directory-recipients-recipient-specialist-description"
381
+ data-usx-chat-recipient=""
382
+ />
383
+ <label
384
+ class="usa-checkbox__label usx-chat__recipient-label"
385
+ for="django-directory-recipients-recipient-specialist"
386
+ >
387
+ <span class="usx-avatar usx-chat__avatar" aria-label="Taylor">
388
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
389
+ >T</span
390
+ >
391
+ </span>
392
+
393
+ <span class="usx-chat__directory-copy">
394
+ <span class="usx-chat__directory-title">Taylor</span>
395
+ <span
396
+ class="usx-chat__directory-subtitle"
397
+ id="django-directory-recipients-recipient-specialist-description"
398
+ >Eligibility specialist</span
399
+ >
400
+ </span>
401
+ </label>
402
+ </div>
403
+ </li>
404
+ </ul>
405
+ </div>
406
+ <form
407
+ id="django-example-directory-recipientpicker-composer"
408
+ data-usx-chat-require-recipients="true"
409
+ class="usx-chat-composer usx-chat__composer"
410
+ method="post"
411
+ >
412
+ <label
413
+ class="usa-label usx-label usa-sr-only"
414
+ for="django-example-directory-recipientpicker-message"
415
+ >Message</label
416
+ ><textarea
417
+ id="django-example-directory-recipientpicker-message"
418
+ class="usa-textarea usx-textarea"
419
+ placeholder="Write a message"
420
+ name="message"
421
+ rows="2"
422
+ ></textarea>
423
+ <div class="usx-chat__composer-actions">
424
+ <div class="usx-chat__attach"></div>
425
+ <button
426
+ type="submit"
427
+ class="usa-button usx-button usa-button--primary usx-chat__send"
428
+ disabled=""
429
+ aria-disabled="true"
430
+ >
431
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
432
+ <use href="/img/sprite.svg#send"></use></svg
433
+ >Send
434
+ </button>
435
+ </div>
436
+ </form>
437
+ </div>
438
+ </section>
439
+ </div>
440
+
441
+ <h3 class="site-preview-heading">Contextual Inbox</h3>
442
+ <div>
443
+ <section id="django-example-directory-contextualinbox" class="usx-chat" style="max-width: 28rem">
444
+ <div data-chat-view="inbox" class="usx-chat__window" style="height: auto">
445
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
446
+ <nav class="usx-chat__directory" aria-label="Conversations">
447
+ <ul class="usx-chat__directory-list">
448
+ <li class="usx-chat__directory-row">
449
+ <button
450
+ type="button"
451
+ class="usx-clickable usx-chat__directory-item"
452
+ data-usx-chat-conversation="request"
453
+ >
454
+ <span class="usx-avatar usx-chat__avatar" aria-label="Support">
455
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">S</span>
456
+ </span>
457
+
458
+ <span class="usx-chat__directory-copy">
459
+ <span class="usx-chat__directory-title">Support</span>
460
+ <span class="usx-chat__directory-subtitle">Access request</span>
461
+ <span class="usx-chat__directory-preview">Your request is ready.</span>
462
+ </span>
463
+ </button>
464
+
465
+ <!-- prettier-ignore -->
466
+ <details
467
+
468
+ class="usx-popover usx-chat__directory-actions"
469
+ data-side="bottom"
470
+ data-align="end"
471
+
472
+
473
+ >
474
+
475
+
476
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="Actions for Support">
477
+
478
+ <svg
479
+ class="
480
+ usa-icon usx-icon
481
+
482
+
483
+
484
+ "
485
+
486
+ aria-hidden="true"
487
+ focusable="false"
488
+ role="img"
489
+ >
490
+
491
+ <use href="img/sprite.svg#more_vert"></use>
492
+
493
+ </svg></summary>
494
+
495
+ <div
496
+ id="django-directory-contextual-conversation-request-actions"
497
+ class="usx-popover__panel usx-popover__panel--square"
498
+ ><ul class="usx-popover__menu"><li><button
499
+ type="button"
500
+ class="usx-popover__menu-item"
501
+
502
+
503
+ data-usx-chat-directory-action="delete-history"data-usx-chat-conversation-id="request"
504
+ >
505
+
506
+ Delete history
507
+ </button></li></ul>
508
+ </div></details>
509
+ </li>
510
+
511
+ <li>
512
+ <a class="usx-clickable usx-chat__directory-item" href="#conversation-listing">
513
+ <span class="usx-avatar usx-chat__avatar" aria-label="Jordan">
514
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">J</span>
515
+ </span>
516
+
517
+ <span class="usx-chat__directory-copy">
518
+ <span class="usx-chat__directory-title">Jordan</span>
519
+ <span class="usx-chat__directory-subtitle">Blue commuter bicycle</span>
520
+ <span class="usx-chat__directory-preview">Available this weekend.</span>
521
+ </span>
522
+ </a>
523
+ </li>
524
+
525
+ <li>
526
+ <button
527
+ type="button"
528
+ class="usx-clickable usx-chat__directory-item"
529
+ data-usx-chat-conversation="note"
530
+ >
531
+ <span class="usx-avatar usx-chat__avatar" aria-label="Updates">
532
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">U</span>
533
+ </span>
534
+
535
+ <span class="usx-chat__directory-copy">
536
+ <span class="usx-chat__directory-title">Updates</span>
537
+ <span class="usx-chat__directory-subtitle">General questions</span>
538
+ </span>
539
+ </button>
540
+ </li>
541
+ </ul>
542
+ </nav>
543
+ <button type="button" class="usa-button usx-button" data-usx-chat-new="">New message</button>
544
+ </div>
545
+ </section>
546
+ </div>
@@ -0,0 +1,14 @@
1
+ {% load usx_components %}
2
+ {% if view == 'inbox' or view == 'contacts' %}
3
+ {% if view == 'contacts' and selectable %}
4
+ <div class="usx-chat__directory" role="group" aria-label="Recipients">
5
+ <p class="usx-chat__recipient-hint">To: Choose one or more people.</p>
6
+ {% else %}
7
+ <nav class="usx-chat__directory" aria-label="{% if view == 'inbox' %}Conversations{% else %}People{% endif %}">
8
+ {% endif %}
9
+ <ul class="usx-chat__directory-list">
10
+ {% for item in items %}{% chat_directory_item props=item %}{% endchat_directory_item %}{% endfor %}
11
+ </ul>
12
+ {% if view == 'inbox' and not items %}<p class="usx-chat__empty">No conversations yet.</p>{% endif %}
13
+ {% if view == 'contacts' and selectable %}</div>{% else %}</nav>{% endif %}
14
+ {% endif %}
@@ -0,0 +1,4 @@
1
+ <nav class="usx-chat__directory" aria-label="Conversations">
2
+ <ul class="usx-chat__directory-list"></ul>
3
+ <p class="usx-chat__empty">No conversations yet.</p>
4
+ </nav>