@solexllc/usx-react 0.10.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 (208) 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 +4426 -5231
  7. package/dist/index.js +168 -970
  8. package/package.json +9 -5
  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 +27 -22
  123. package/src/components/code/code.html +2 -2
  124. package/src/components/code/code.react-snapshot.html +43 -8
  125. package/src/components/copy-to-clipboard/CopyToClipboard.tsx +2 -7
  126. package/src/components/copy-to-clipboard/copy-to-clipboard.django-snapshot.html +6 -4
  127. package/src/components/copy-to-clipboard/copy-to-clipboard.django.html +3 -2
  128. package/src/components/copy-to-clipboard/copy-to-clipboard.react-snapshot.html +14 -2
  129. package/src/components/file-list/FileList.tsx +3 -2
  130. package/src/components/file-list/config.json +5 -0
  131. package/src/components/file-list/file-list.django-snapshot.html +63 -0
  132. package/src/components/file-list/file-list.django.html +1 -1
  133. package/src/components/file-list/file-list.react-snapshot.html +53 -0
  134. package/src/components/footer/footer.django-snapshot.html +0 -3
  135. package/src/components/header/header.django-snapshot.html +5 -167
  136. package/src/components/header/header.django.html +2 -2
  137. package/src/components/header/header.html +1 -11
  138. package/src/components/header/header.react-snapshot.html +3 -6
  139. package/src/components/hero/hero.django-snapshot.html +0 -20
  140. package/src/components/hero/hero.django.html +3 -3
  141. package/src/components/icon-list/IconList.tsx +10 -2
  142. package/src/components/icon-list/config.json +5 -1
  143. package/src/components/icon-list/icon-list.django-snapshot.html +39 -0
  144. package/src/components/icon-list/icon-list.django.html +2 -0
  145. package/src/components/icon-list/icon-list.react-snapshot.html +31 -0
  146. package/src/components/image/image.django.html +4 -4
  147. package/src/components/input/Input.tsx +1 -1
  148. package/src/components/input/config.json +2 -3
  149. package/src/components/input/input.django-snapshot.html +4 -21
  150. package/src/components/input/input.django.html +2 -2
  151. package/src/components/link/Link.tsx +7 -4
  152. package/src/components/link/config.json +2 -3
  153. package/src/components/link/link.django-snapshot.html +8 -0
  154. package/src/components/link/link.django.html +2 -2
  155. package/src/components/link/link.html +4 -1
  156. package/src/components/link/link.react-snapshot.html +8 -0
  157. package/src/components/list/List.tsx +10 -2
  158. package/src/components/list/config.json +5 -1
  159. package/src/components/list/list.django-snapshot.html +26 -0
  160. package/src/components/list/list.django.html +2 -0
  161. package/src/components/list/list.html +20 -0
  162. package/src/components/list/list.react-snapshot.html +20 -0
  163. package/src/components/memorable-date/memorable-date.django-snapshot.html +0 -8
  164. package/src/components/memorable-date/memorable-date.django.html +2 -2
  165. package/src/components/misc-banner/misc-banner.django-snapshot.html +12 -12
  166. package/src/components/misc-banner/misc-banner.django.html +4 -2
  167. package/src/components/page/Page.tsx +16 -0
  168. package/src/components/page/config.json +18 -1
  169. package/src/components/page/page.django-snapshot.html +74 -0
  170. package/src/components/page/page.django.html +8 -0
  171. package/src/components/page/page.html +60 -0
  172. package/src/components/page/page.react-snapshot.html +60 -0
  173. package/src/components/popover/Popover.tsx +60 -9
  174. package/src/components/popover/PopoverMenu.tsx +33 -15
  175. package/src/components/popover/config.json +88 -14
  176. package/src/components/popover/popover-menu.django.html +13 -2
  177. package/src/components/popover/popover.django-snapshot.html +229 -7
  178. package/src/components/popover/popover.django.html +3 -2
  179. package/src/components/popover/popover.react-snapshot.html +127 -4
  180. package/src/components/process-list/config.json +41 -3
  181. package/src/components/quote/Quote.tsx +9 -2
  182. package/src/components/search/Search.tsx +1 -1
  183. package/src/components/search/config.json +3 -4
  184. package/src/components/search/search.django-snapshot.html +262 -1684
  185. package/src/components/search/search.django.html +1 -20
  186. package/src/components/select/select.django-snapshot.html +7 -7
  187. package/src/components/select/select.react-snapshot.html +7 -7
  188. package/src/components/summary/Summary.tsx +4 -2
  189. package/src/components/summary/config.json +4 -0
  190. package/src/components/summary/summary.django.html +4 -4
  191. package/src/components/table/Table.tsx +58 -25
  192. package/src/components/table/config.json +61 -13
  193. package/src/components/tag/Tag.tsx +40 -7
  194. package/src/components/tag/config.json +18 -2
  195. package/src/components/tag/tag.django-snapshot.html +16 -1
  196. package/src/components/tag/tag.django.html +12 -6
  197. package/src/components/tag/tag.html +4 -0
  198. package/src/components/tag/tag.react-snapshot.html +16 -1
  199. package/src/components/tag-group/TagGroup.tsx +6 -9
  200. package/src/components/tag-group/config.json +4 -0
  201. package/src/components/tag-group/tag-group.django.html +1 -1
  202. package/src/components/theme-picker/ThemePicker.tsx +95 -52
  203. package/src/components/theme-picker/config.json +7 -4
  204. package/src/components/theme-picker/theme-picker-select.django.html +7 -0
  205. package/src/components/theme-picker/theme-picker.django-snapshot.html +101 -21
  206. package/src/components/theme-picker/theme-picker.django.html +22 -24
  207. package/src/components/theme-picker/theme-picker.html +86 -56
  208. package/src/components/theme-picker/theme-picker.react-snapshot.html +74 -18
@@ -0,0 +1,758 @@
1
+ <h3 class="site-preview-heading">Default</h3>
2
+ <div>
3
+ <section id="django-example-message-default" class="usx-chat" style="max-width: 28rem">
4
+ <div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
5
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
6
+ <ol class="usx-chat__messages">
7
+ <li
8
+ class="usx-chat__message usx-chat__message--single"
9
+ data-message-id="m1"
10
+ data-sender-name="Avery"
11
+ data-export-text="Your appointment is confirmed."
12
+ >
13
+ <span class="usx-avatar usx-chat__avatar" aria-label="Avery">
14
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">A</span>
15
+ </span>
16
+
17
+ <div class="usx-chat__message-body">
18
+ <span class="usx-chat__sender">Avery</span>
19
+
20
+ <div class="usx-chat__bubble">
21
+ <p>Your appointment is confirmed.</p>
22
+ </div>
23
+
24
+ <div class="usx-chat__message-footer">
25
+ <time class="usx-chat__time" datetime="2026-08-21T10:30:00Z"> 10:30 AM </time>
26
+ </div>
27
+ </div>
28
+ </li>
29
+ </ol>
30
+ </div>
31
+ </section>
32
+ </div>
33
+
34
+ <h3 class="site-preview-heading">Outgoing</h3>
35
+ <div>
36
+ <section id="django-example-message-outgoing" class="usx-chat" style="max-width: 28rem">
37
+ <div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
38
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
39
+ <ol class="usx-chat__messages">
40
+ <li
41
+ class="usx-chat__message usx-chat__message--single usx-chat__message--own"
42
+ data-message-id="m2"
43
+ data-sender-name="Avery"
44
+ data-export-text="Thank you!"
45
+ >
46
+ <span class="usx-avatar usx-chat__avatar" aria-label="Avery">
47
+ <span class="usx-avatar__content usx-circle bg-base-light text-base-dark">A</span>
48
+ </span>
49
+
50
+ <div class="usx-chat__message-body">
51
+ <span class="usx-chat__sender">Avery</span>
52
+
53
+ <div class="usx-chat__bubble">
54
+ <p>Thank you!</p>
55
+ </div>
56
+
57
+ <div class="usx-chat__message-footer">
58
+ <time class="usx-chat__time" datetime="2026-08-21T10:30:00Z"> 10:30 AM </time>
59
+
60
+ <span class="usx-chat__message-meta">Edited · Read</span>
61
+ </div>
62
+ </div>
63
+ </li>
64
+ </ol>
65
+ </div>
66
+ </section>
67
+ </div>
68
+
69
+ <h3 class="site-preview-heading">With Actions</h3>
70
+ <div>
71
+ <section id="django-example-message-withactions" class="usx-chat" style="max-width: 28rem">
72
+ <div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
73
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
74
+ <ol class="usx-chat__messages">
75
+ <li
76
+ class="usx-chat__message usx-chat__message--single"
77
+ data-message-id="m1"
78
+ data-sender-name="Avery"
79
+ data-export-text="Your appointment is confirmed."
80
+ >
81
+ <span class="usx-avatar usx-chat__avatar" aria-label="Avery">
82
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">A</span>
83
+ </span>
84
+
85
+ <div class="usx-chat__message-body">
86
+ <span class="usx-chat__sender">Avery</span>
87
+
88
+ <div class="usx-chat__bubble">
89
+ <p>Your appointment is confirmed.</p>
90
+
91
+ <div class="usx-tag-group usx-chat__reactions" role="group" aria-label="Reactions">
92
+ <button
93
+ type="button"
94
+ class="usa-button usx-button usa-button--unstyled usa-tag usx-tag usx-tag--outline usx-tag--interactive usa-link usx-link usx-no-visited usx-chat__reaction"
95
+ data-usx-chat-reaction="Helpful"
96
+ aria-label="Helpful, 2"
97
+ aria-pressed="true"
98
+ >
99
+ 👍 2
100
+ </button>
101
+ </div>
102
+ </div>
103
+
104
+ <div class="usx-chat__message-footer">
105
+ <time class="usx-chat__time" datetime="2026-08-21T10:30:00Z"> 10:30 AM </time>
106
+
107
+ <button
108
+ type="button"
109
+ class="usa-button usx-button usa-button--unstyled usx-chat__thread-link"
110
+ data-usx-chat-thread="m1"
111
+ >
112
+ 3 replies
113
+ </button>
114
+ </div>
115
+
116
+ <div
117
+ class="usx-chat__message-tools"
118
+ role="group"
119
+ aria-label="Actions for message from Avery"
120
+ >
121
+ <!-- prettier-ignore -->
122
+ <details
123
+
124
+ class="usx-popover usx-chat__message-actions usx-chat__reaction-actions"
125
+ data-side="top"
126
+ data-align="end"
127
+
128
+
129
+ >
130
+
131
+
132
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="React to message from Avery" title="Add reaction">
133
+
134
+ <svg
135
+ class="
136
+ usa-icon usx-icon
137
+
138
+
139
+
140
+ "
141
+
142
+ aria-hidden="true"
143
+ focusable="false"
144
+ role="img"
145
+ >
146
+
147
+ <use href="img/sprite.svg#sentiment_satisfied"></use>
148
+
149
+ </svg></summary>
150
+
151
+ <div
152
+ id="django-message-reactions-m1"
153
+ class="usx-popover__panel usx-popover__panel--square"
154
+ ><ul class="usx-popover__menu"><li><button
155
+ type="button"
156
+ class="usx-popover__menu-item"
157
+
158
+
159
+ data-usx-chat-reaction="Helpful"aria-label="Helpful"title="Helpful"aria-pressed="true"
160
+ >
161
+
162
+ 👍
163
+ </button></li><li><button
164
+ type="button"
165
+ class="usx-popover__menu-item"
166
+
167
+
168
+ data-usx-chat-reaction="Thanks"aria-label="Thanks"title="Thanks"aria-pressed="false"
169
+ >
170
+
171
+ ❤️
172
+ </button></li></ul>
173
+ </div></details>
174
+
175
+ <button
176
+ type="button"
177
+ class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
178
+ title="Reply in thread"
179
+ aria-label="Reply in thread to message from Avery"
180
+ data-usx-chat-thread="m1"
181
+ >
182
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
183
+ <use href="img/sprite.svg#comment"></use>
184
+ </svg>
185
+ </button>
186
+
187
+ <button
188
+ type="button"
189
+ class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
190
+ title="Forward message"
191
+ aria-label="Forward message from Avery"
192
+ data-usx-chat-forward="m1"
193
+ >
194
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
195
+ <use href="img/sprite.svg#arrow_forward"></use>
196
+ </svg>
197
+ </button>
198
+
199
+ <!-- prettier-ignore -->
200
+ <details
201
+
202
+ class="usx-popover usx-chat__message-actions usx-chat__overflow-actions"
203
+ data-side="top"
204
+ data-align="end"
205
+
206
+
207
+ >
208
+
209
+
210
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="More actions for message from Avery" title="More actions">
211
+
212
+ <svg
213
+ class="
214
+ usa-icon usx-icon
215
+
216
+
217
+
218
+ "
219
+
220
+ aria-hidden="true"
221
+ focusable="false"
222
+ role="img"
223
+ >
224
+
225
+ <use href="img/sprite.svg#more_horiz"></use>
226
+
227
+ </svg></summary>
228
+
229
+ <div
230
+ id="django-message-actions-m1"
231
+ class="usx-popover__panel usx-popover__panel--square"
232
+ ><ul class="usx-popover__menu"><li><button
233
+ type="button"
234
+ class="usx-popover__menu-item"
235
+
236
+
237
+ data-usx-chat-copy-message=""
238
+ ><svg
239
+ class="
240
+ usa-icon usx-icon
241
+
242
+
243
+
244
+ "
245
+
246
+ aria-hidden="true"
247
+ focusable="false"
248
+ role="img"
249
+ ><use href="img/sprite.svg#content_copy"></use></svg>
250
+ Copy message
251
+ </button></li></ul>
252
+ </div></details>
253
+ </div>
254
+ </div>
255
+ </li>
256
+ </ol>
257
+ </div>
258
+ </section>
259
+ </div>
260
+
261
+ <h3 class="site-preview-heading">Sending</h3>
262
+ <div>
263
+ <section id="django-example-message-sending" class="usx-chat" style="max-width: 28rem">
264
+ <div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
265
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
266
+ <ol class="usx-chat__messages">
267
+ <li
268
+ class="usx-chat__message usx-chat__message--single usx-chat__message--own"
269
+ data-message-id="m1"
270
+ data-usx-chat-delivery-state="sending"
271
+ data-sender-name="Avery"
272
+ data-export-text="Your appointment is confirmed."
273
+ >
274
+ <span class="usx-avatar usx-chat__avatar" aria-label="Avery">
275
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">A</span>
276
+ </span>
277
+
278
+ <div class="usx-chat__message-body">
279
+ <span class="usx-chat__sender">Avery</span>
280
+
281
+ <div class="usx-chat__bubble">
282
+ <p>Your appointment is confirmed.</p>
283
+ </div>
284
+
285
+ <div class="usx-chat__message-footer">
286
+ <time class="usx-chat__time" datetime="2026-08-21T10:30:00Z"> 10:30 AM </time>
287
+
288
+ <span class="usx-chat__message-meta">Sending…</span>
289
+ </div>
290
+ </div>
291
+ </li>
292
+ </ol>
293
+ </div>
294
+ </section>
295
+ </div>
296
+
297
+ <h3 class="site-preview-heading">Failed</h3>
298
+ <div>
299
+ <section id="django-example-message-failed" class="usx-chat" style="max-width: 28rem">
300
+ <div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
301
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
302
+ <ol class="usx-chat__messages">
303
+ <li
304
+ class="usx-chat__message usx-chat__message--single usx-chat__message--own usx-chat__message--failed"
305
+ data-message-id="m1"
306
+ data-usx-chat-delivery-state="failed"
307
+ data-sender-name="Avery"
308
+ data-export-text="Your appointment is confirmed."
309
+ >
310
+ <span class="usx-avatar usx-chat__avatar" aria-label="Avery">
311
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">A</span>
312
+ </span>
313
+
314
+ <div class="usx-chat__message-body">
315
+ <span class="usx-chat__sender">Avery</span>
316
+
317
+ <div class="usx-chat__bubble">
318
+ <p>Your appointment is confirmed.</p>
319
+ </div>
320
+
321
+ <div
322
+ class="usa-alert usa-alert--error usx-alert usa-alert--slim usa-alert--no-icon usx-chat__delivery-error"
323
+ role="alert"
324
+ >
325
+ <div class="usa-alert__body">
326
+ <div class="usa-alert__text">
327
+ <span>Message not sent.</span>
328
+
329
+ <button
330
+ type="button"
331
+ class="usa-button usx-button usa-button--unstyled usx-chat__retry"
332
+ data-usx-chat-retry="m1"
333
+ aria-label="Retry sending message"
334
+ >
335
+ Retry
336
+ </button>
337
+ </div>
338
+ </div>
339
+ </div>
340
+
341
+ <div class="usx-chat__message-footer">
342
+ <time class="usx-chat__time" datetime="2026-08-21T10:30:00Z"> 10:30 AM </time>
343
+ </div>
344
+ </div>
345
+ </li>
346
+ </ol>
347
+ </div>
348
+ </section>
349
+ </div>
350
+
351
+ <h3 class="site-preview-heading">Unknown Sender</h3>
352
+ <div>
353
+ <section id="django-example-message-unknownsender" class="usx-chat" style="max-width: 28rem">
354
+ <div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
355
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
356
+ <ol class="usx-chat__messages">
357
+ <li
358
+ class="usx-chat__message usx-chat__message--single"
359
+ data-message-id="m1"
360
+ data-sender-name="Support"
361
+ data-export-text="Your appointment is confirmed."
362
+ >
363
+ <span class="usx-avatar usx-chat__avatar" aria-label="Support">
364
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">S</span>
365
+ </span>
366
+
367
+ <div class="usx-chat__message-body">
368
+ <span class="usx-chat__sender">Support</span>
369
+
370
+ <div class="usx-chat__bubble">
371
+ <p>Your appointment is confirmed.</p>
372
+ </div>
373
+
374
+ <div class="usx-chat__message-footer">
375
+ <time class="usx-chat__time" datetime="2026-08-21T10:30:00Z"> 10:30 AM </time>
376
+ </div>
377
+ </div>
378
+ </li>
379
+ </ol>
380
+ </div>
381
+ </section>
382
+ </div>
383
+
384
+ <h3 class="site-preview-heading">Grouped</h3>
385
+ <div>
386
+ <section id="django-example-message-grouped" class="usx-chat" style="max-width: 28rem">
387
+ <div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
388
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
389
+ <ol class="usx-chat__messages">
390
+ <li
391
+ class="usx-chat__message usx-chat__message--first"
392
+ data-message-id="group-0"
393
+ data-sender-name="Avery"
394
+ data-export-text="Your appointment is confirmed."
395
+ >
396
+ <span class="usx-avatar usx-chat__avatar" aria-label="Avery">
397
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">A</span>
398
+ </span>
399
+
400
+ <div class="usx-chat__message-body">
401
+ <span class="usx-chat__sender">Avery</span>
402
+
403
+ <div class="usx-chat__bubble">
404
+ <p>Your appointment is confirmed.</p>
405
+ </div>
406
+
407
+ <time class="usx-chat__time usa-sr-only" datetime="2026-08-21T10:30:00Z">
408
+ 10:30 AM
409
+ </time>
410
+ </div>
411
+ </li>
412
+ <li
413
+ class="usx-chat__message usx-chat__message--middle"
414
+ data-message-id="group-1"
415
+ data-sender-name="Avery"
416
+ data-export-text="Please bring a photo ID."
417
+ >
418
+ <span class="usx-chat__avatar-space" aria-hidden="true"></span>
419
+
420
+ <div class="usx-chat__message-body">
421
+ <div class="usx-chat__bubble">
422
+ <p>Please bring a photo ID.</p>
423
+ </div>
424
+
425
+ <time class="usx-chat__time usa-sr-only" datetime="2026-08-21T10:30:00Z">
426
+ 10:30 AM
427
+ </time>
428
+ </div>
429
+ </li>
430
+ <li
431
+ class="usx-chat__message usx-chat__message--last"
432
+ data-message-id="group-2"
433
+ data-sender-name="Avery"
434
+ data-export-text="See you Tuesday!"
435
+ >
436
+ <span class="usx-chat__avatar-space" aria-hidden="true"></span>
437
+
438
+ <div class="usx-chat__message-body">
439
+ <div class="usx-chat__bubble">
440
+ <p>See you Tuesday!</p>
441
+ </div>
442
+
443
+ <div class="usx-chat__message-footer">
444
+ <time class="usx-chat__time" datetime="2026-08-21T10:30:00Z"> 10:30 AM </time>
445
+ </div>
446
+ </div>
447
+ </li>
448
+ </ol>
449
+ </div>
450
+ </section>
451
+ </div>
452
+
453
+ <h3 class="site-preview-heading">Short Messages</h3>
454
+ <div>
455
+ <section id="django-example-message-shortmessages" class="usx-chat" style="max-width: 28rem">
456
+ <div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
457
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
458
+ <ol class="usx-chat__messages">
459
+ <li
460
+ class="usx-chat__message usx-chat__message--single"
461
+ data-message-id="short"
462
+ data-sender-name="Avery"
463
+ data-export-text="OK"
464
+ >
465
+ <span class="usx-avatar usx-chat__avatar" aria-label="Avery">
466
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">A</span>
467
+ </span>
468
+
469
+ <div class="usx-chat__message-body">
470
+ <span class="usx-chat__sender">Avery</span>
471
+
472
+ <div class="usx-chat__bubble">
473
+ <p>OK</p>
474
+ </div>
475
+
476
+ <div
477
+ class="usx-chat__message-tools"
478
+ role="group"
479
+ aria-label="Actions for message from Avery"
480
+ >
481
+ <!-- prettier-ignore -->
482
+ <details
483
+
484
+ class="usx-popover usx-chat__message-actions usx-chat__reaction-actions"
485
+ data-side="top"
486
+ data-align="end"
487
+
488
+
489
+ >
490
+
491
+
492
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="React to message from Avery" title="Add reaction">
493
+
494
+ <svg
495
+ class="
496
+ usa-icon usx-icon
497
+
498
+
499
+
500
+ "
501
+
502
+ aria-hidden="true"
503
+ focusable="false"
504
+ role="img"
505
+ >
506
+
507
+ <use href="img/sprite.svg#sentiment_satisfied"></use>
508
+
509
+ </svg></summary>
510
+
511
+ <div
512
+ id="django-short-message-reactions-short"
513
+ class="usx-popover__panel usx-popover__panel--square"
514
+ ><ul class="usx-popover__menu"><li><button
515
+ type="button"
516
+ class="usx-popover__menu-item"
517
+
518
+
519
+ data-usx-chat-reaction="Helpful"aria-label="Helpful"title="Helpful"aria-pressed="false"
520
+ >
521
+
522
+ 👍
523
+ </button></li></ul>
524
+ </div></details>
525
+
526
+ <button
527
+ type="button"
528
+ class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
529
+ title="Reply in thread"
530
+ aria-label="Reply in thread to message from Avery"
531
+ data-usx-chat-thread="short"
532
+ >
533
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
534
+ <use href="img/sprite.svg#comment"></use>
535
+ </svg>
536
+ </button>
537
+
538
+ <button
539
+ type="button"
540
+ class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
541
+ title="Forward message"
542
+ aria-label="Forward message from Avery"
543
+ data-usx-chat-forward="short"
544
+ >
545
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
546
+ <use href="img/sprite.svg#arrow_forward"></use>
547
+ </svg>
548
+ </button>
549
+
550
+ <!-- prettier-ignore -->
551
+ <details
552
+
553
+ class="usx-popover usx-chat__message-actions usx-chat__overflow-actions"
554
+ data-side="top"
555
+ data-align="end"
556
+
557
+
558
+ >
559
+
560
+
561
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="More actions for message from Avery" title="More actions">
562
+
563
+ <svg
564
+ class="
565
+ usa-icon usx-icon
566
+
567
+
568
+
569
+ "
570
+
571
+ aria-hidden="true"
572
+ focusable="false"
573
+ role="img"
574
+ >
575
+
576
+ <use href="img/sprite.svg#more_horiz"></use>
577
+
578
+ </svg></summary>
579
+
580
+ <div
581
+ id="django-short-message-actions-short"
582
+ class="usx-popover__panel usx-popover__panel--square"
583
+ ><ul class="usx-popover__menu"><li><button
584
+ type="button"
585
+ class="usx-popover__menu-item"
586
+
587
+
588
+ data-usx-chat-copy-message=""
589
+ ><svg
590
+ class="
591
+ usa-icon usx-icon
592
+
593
+
594
+
595
+ "
596
+
597
+ aria-hidden="true"
598
+ focusable="false"
599
+ role="img"
600
+ ><use href="img/sprite.svg#content_copy"></use></svg>
601
+ Copy message
602
+ </button></li></ul>
603
+ </div></details>
604
+ </div>
605
+ </div>
606
+ </li>
607
+ <li
608
+ class="usx-chat__message usx-chat__message--single usx-chat__message--own"
609
+ data-message-id="short-own"
610
+ data-sender-name="Avery"
611
+ data-export-text="OK"
612
+ >
613
+ <span class="usx-avatar usx-chat__avatar" aria-label="Avery">
614
+ <span class="usx-avatar__content usx-circle bg-primary-light text-inverse">A</span>
615
+ </span>
616
+
617
+ <div class="usx-chat__message-body">
618
+ <span class="usx-chat__sender">Avery</span>
619
+
620
+ <div class="usx-chat__bubble">
621
+ <p>OK</p>
622
+ </div>
623
+
624
+ <div
625
+ class="usx-chat__message-tools"
626
+ role="group"
627
+ aria-label="Actions for message from Avery"
628
+ >
629
+ <!-- prettier-ignore -->
630
+ <details
631
+
632
+ class="usx-popover usx-chat__message-actions usx-chat__reaction-actions"
633
+ data-side="top"
634
+ data-align="end"
635
+
636
+
637
+ >
638
+
639
+
640
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="React to message from Avery" title="Add reaction">
641
+
642
+ <svg
643
+ class="
644
+ usa-icon usx-icon
645
+
646
+
647
+
648
+ "
649
+
650
+ aria-hidden="true"
651
+ focusable="false"
652
+ role="img"
653
+ >
654
+
655
+ <use href="img/sprite.svg#sentiment_satisfied"></use>
656
+
657
+ </svg></summary>
658
+
659
+ <div
660
+ id="django-short-message-reactions-short-own"
661
+ class="usx-popover__panel usx-popover__panel--square"
662
+ ><ul class="usx-popover__menu"><li><button
663
+ type="button"
664
+ class="usx-popover__menu-item"
665
+
666
+
667
+ data-usx-chat-reaction="Helpful"aria-label="Helpful"title="Helpful"aria-pressed="false"
668
+ >
669
+
670
+ 👍
671
+ </button></li></ul>
672
+ </div></details>
673
+
674
+ <button
675
+ type="button"
676
+ class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
677
+ title="Reply in thread"
678
+ aria-label="Reply in thread to message from Avery"
679
+ data-usx-chat-thread="short-own"
680
+ >
681
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
682
+ <use href="img/sprite.svg#comment"></use>
683
+ </svg>
684
+ </button>
685
+
686
+ <button
687
+ type="button"
688
+ class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
689
+ title="Forward message"
690
+ aria-label="Forward message from Avery"
691
+ data-usx-chat-forward="short-own"
692
+ >
693
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
694
+ <use href="img/sprite.svg#arrow_forward"></use>
695
+ </svg>
696
+ </button>
697
+
698
+ <!-- prettier-ignore -->
699
+ <details
700
+
701
+ class="usx-popover usx-chat__message-actions usx-chat__overflow-actions"
702
+ data-side="top"
703
+ data-align="end"
704
+
705
+
706
+ >
707
+
708
+
709
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="More actions for message from Avery" title="More actions">
710
+
711
+ <svg
712
+ class="
713
+ usa-icon usx-icon
714
+
715
+
716
+
717
+ "
718
+
719
+ aria-hidden="true"
720
+ focusable="false"
721
+ role="img"
722
+ >
723
+
724
+ <use href="img/sprite.svg#more_horiz"></use>
725
+
726
+ </svg></summary>
727
+
728
+ <div
729
+ id="django-short-message-actions-short-own"
730
+ class="usx-popover__panel usx-popover__panel--square"
731
+ ><ul class="usx-popover__menu"><li><button
732
+ type="button"
733
+ class="usx-popover__menu-item"
734
+
735
+
736
+ data-usx-chat-copy-message=""
737
+ ><svg
738
+ class="
739
+ usa-icon usx-icon
740
+
741
+
742
+
743
+ "
744
+
745
+ aria-hidden="true"
746
+ focusable="false"
747
+ role="img"
748
+ ><use href="img/sprite.svg#content_copy"></use></svg>
749
+ Copy message
750
+ </button></li></ul>
751
+ </div></details>
752
+ </div>
753
+ </div>
754
+ </li>
755
+ </ol>
756
+ </div>
757
+ </section>
758
+ </div>