@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,345 @@
1
+ <h3 class="site-preview-heading">Default</h3>
2
+ <div>
3
+ <section id="django-example-message-actions-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 data-message-id="m1" data-sender-name="Avery">
8
+ <div class="usx-chat__bubble">
9
+ <p>Your appointment is confirmed.</p>
10
+ <div role="group" aria-label="Reactions" class="usx-tag-group usx-chat__reactions">
11
+ <button
12
+ type="button"
13
+ 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"
14
+ aria-pressed="true"
15
+ aria-label="Helpful, 2"
16
+ data-usx-chat-reaction="Helpful"
17
+ >
18
+ 👍 2
19
+ </button>
20
+ </div>
21
+ </div>
22
+ <div
23
+ class="usx-chat__message-tools"
24
+ role="group"
25
+ aria-label="Actions for message from Avery"
26
+ >
27
+ <!-- prettier-ignore -->
28
+ <details
29
+
30
+ class="usx-popover usx-chat__message-actions usx-chat__reaction-actions"
31
+ data-side="top"
32
+ data-align="end"
33
+
34
+
35
+ >
36
+
37
+
38
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="React to message from Avery" title="Add reaction">
39
+
40
+ <svg
41
+ class="
42
+ usa-icon usx-icon
43
+
44
+
45
+
46
+ "
47
+
48
+ aria-hidden="true"
49
+ focusable="false"
50
+ role="img"
51
+ >
52
+
53
+ <use href="img/sprite.svg#sentiment_satisfied"></use>
54
+
55
+ </svg></summary>
56
+
57
+ <div
58
+ id="django-tools-default-reactions-m1"
59
+ class="usx-popover__panel usx-popover__panel--square"
60
+ ><ul class="usx-popover__menu"><li><button
61
+ type="button"
62
+ class="usx-popover__menu-item"
63
+
64
+
65
+ data-usx-chat-reaction="Helpful"aria-label="Helpful"title="Helpful"aria-pressed="true"
66
+ >
67
+
68
+ 👍
69
+ </button></li><li><button
70
+ type="button"
71
+ class="usx-popover__menu-item"
72
+
73
+
74
+ data-usx-chat-reaction="Thanks"aria-label="Thanks"title="Thanks"aria-pressed="false"
75
+ >
76
+
77
+ ❤️
78
+ </button></li></ul>
79
+ </div></details>
80
+
81
+ <button
82
+ type="button"
83
+ class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
84
+ title="Reply in thread"
85
+ aria-label="Reply in thread to message from Avery"
86
+ data-usx-chat-thread="m1"
87
+ >
88
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
89
+ <use href="img/sprite.svg#comment"></use>
90
+ </svg>
91
+ </button>
92
+
93
+ <button
94
+ type="button"
95
+ class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
96
+ title="Forward message"
97
+ aria-label="Forward message from Avery"
98
+ data-usx-chat-forward="m1"
99
+ >
100
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
101
+ <use href="img/sprite.svg#arrow_forward"></use>
102
+ </svg>
103
+ </button>
104
+
105
+ <!-- prettier-ignore -->
106
+ <details
107
+
108
+ class="usx-popover usx-chat__message-actions usx-chat__overflow-actions"
109
+ data-side="top"
110
+ data-align="end"
111
+
112
+
113
+ >
114
+
115
+
116
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="More actions for message from Avery" title="More actions">
117
+
118
+ <svg
119
+ class="
120
+ usa-icon usx-icon
121
+
122
+
123
+
124
+ "
125
+
126
+ aria-hidden="true"
127
+ focusable="false"
128
+ role="img"
129
+ >
130
+
131
+ <use href="img/sprite.svg#more_horiz"></use>
132
+
133
+ </svg></summary>
134
+
135
+ <div
136
+ id="django-tools-default-actions-m1"
137
+ class="usx-popover__panel usx-popover__panel--square"
138
+ ><ul class="usx-popover__menu"><li><button
139
+ type="button"
140
+ class="usx-popover__menu-item"
141
+
142
+
143
+ data-usx-chat-copy-message=""
144
+ ><svg
145
+ class="
146
+ usa-icon usx-icon
147
+
148
+
149
+
150
+ "
151
+
152
+ aria-hidden="true"
153
+ focusable="false"
154
+ role="img"
155
+ ><use href="img/sprite.svg#content_copy"></use></svg>
156
+ Copy message
157
+ </button></li><li><button
158
+ type="button"
159
+ class="usx-popover__menu-item"
160
+
161
+
162
+ data-usx-chat-message-action="report"
163
+ >
164
+
165
+ Report message
166
+ </button></li></ul>
167
+ </div></details>
168
+ </div>
169
+ </li>
170
+ </ol>
171
+ </div>
172
+ </section>
173
+ </div>
174
+
175
+ <h3 class="site-preview-heading">Host Actions</h3>
176
+ <div>
177
+ <section
178
+ id="django-example-message-actions-hostactions"
179
+ class="usx-chat"
180
+ style="max-width: 28rem"
181
+ >
182
+ <div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
183
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
184
+ <ol class="usx-chat__messages">
185
+ <li data-message-id="m2" data-sender-name="You">
186
+ <div class="usx-chat__bubble"><p>Your appointment is confirmed.</p></div>
187
+ <div
188
+ class="usx-chat__message-tools"
189
+ role="group"
190
+ aria-label="Actions for message from You"
191
+ >
192
+ <!-- prettier-ignore -->
193
+ <details
194
+
195
+ class="usx-popover usx-chat__message-actions usx-chat__overflow-actions"
196
+ data-side="top"
197
+ data-align="end"
198
+
199
+
200
+ >
201
+
202
+
203
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="More actions for message from You" title="More actions">
204
+
205
+ <svg
206
+ class="
207
+ usa-icon usx-icon
208
+
209
+
210
+
211
+ "
212
+
213
+ aria-hidden="true"
214
+ focusable="false"
215
+ role="img"
216
+ >
217
+
218
+ <use href="img/sprite.svg#more_horiz"></use>
219
+
220
+ </svg></summary>
221
+
222
+ <div
223
+ id="django-tools-host-actions-m2"
224
+ class="usx-popover__panel usx-popover__panel--square"
225
+ ><ul class="usx-popover__menu"><li><button
226
+ type="button"
227
+ class="usx-popover__menu-item"
228
+
229
+
230
+ data-usx-chat-message-action="recall"
231
+ >
232
+
233
+ Recall message
234
+ </button></li><li><button
235
+ type="button"
236
+ class="usx-popover__menu-item"
237
+
238
+
239
+ data-usx-chat-message-action="mark-unread"
240
+ >
241
+
242
+ Mark unread
243
+ </button></li><li><button
244
+ type="button"
245
+ class="usx-popover__menu-item"
246
+
247
+
248
+ data-usx-chat-message-action="edit"
249
+ >
250
+
251
+ Edit message
252
+ </button></li><li><button
253
+ type="button"
254
+ class="usx-popover__menu-item"
255
+ disabled
256
+
257
+ data-usx-chat-message-action="delete"
258
+ >
259
+
260
+ Delete message
261
+ </button></li></ul>
262
+ </div></details>
263
+ </div>
264
+ </li>
265
+ </ol>
266
+ </div>
267
+ </section>
268
+ </div>
269
+
270
+ <h3 class="site-preview-heading">Reactions Only</h3>
271
+ <div>
272
+ <section
273
+ id="django-example-message-actions-reactionsonly"
274
+ class="usx-chat"
275
+ style="max-width: 28rem"
276
+ >
277
+ <div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
278
+ <span class="usx-chat__copy-status usa-sr-only" role="status"></span>
279
+ <ol class="usx-chat__messages">
280
+ <li data-message-id="m3" data-sender-name="Jordan">
281
+ <div class="usx-chat__bubble"><p>Your appointment is confirmed.</p></div>
282
+ <div
283
+ class="usx-chat__message-tools"
284
+ role="group"
285
+ aria-label="Actions for message from Jordan"
286
+ >
287
+ <!-- prettier-ignore -->
288
+ <details
289
+
290
+ class="usx-popover usx-chat__message-actions usx-chat__reaction-actions"
291
+ data-side="top"
292
+ data-align="end"
293
+
294
+
295
+ >
296
+
297
+
298
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="React to message from Jordan" title="Add reaction">
299
+
300
+ <svg
301
+ class="
302
+ usa-icon usx-icon
303
+
304
+
305
+
306
+ "
307
+
308
+ aria-hidden="true"
309
+ focusable="false"
310
+ role="img"
311
+ >
312
+
313
+ <use href="img/sprite.svg#sentiment_satisfied"></use>
314
+
315
+ </svg></summary>
316
+
317
+ <div
318
+ id="django-tools-reactions-reactions-m3"
319
+ class="usx-popover__panel usx-popover__panel--square"
320
+ ><ul class="usx-popover__menu"><li><button
321
+ type="button"
322
+ class="usx-popover__menu-item"
323
+
324
+
325
+ data-usx-chat-reaction="Helpful"aria-label="Helpful"title="Helpful"aria-pressed="false"
326
+ >
327
+
328
+ 👍
329
+ </button></li><li><button
330
+ type="button"
331
+ class="usx-popover__menu-item"
332
+
333
+
334
+ data-usx-chat-reaction="Thanks"aria-label="Thanks"title="Thanks"aria-pressed="false"
335
+ >
336
+
337
+ ❤️
338
+ </button></li></ul>
339
+ </div></details>
340
+ </div>
341
+ </li>
342
+ </ol>
343
+ </div>
344
+ </section>
345
+ </div>
@@ -0,0 +1,29 @@
1
+ {% load usx_components %}
2
+ {% if reactionOptions or canReply or canForward or canCopy or actions %}
3
+ <div class="usx-chat__message-tools" role="group" aria-label="Actions for message from {{ senderName }}" >
4
+ {% if reactionOptions %}
5
+ {% icon name='sentiment_satisfied' as reactionIcon %}{% endicon %}
6
+ {% with reactionLabel='React to message from '|add:senderName %}
7
+ {% dict children=reactionIcon ariaLabel=reactionLabel title='Add reaction' className='usa-button usx-button usa-button--unstyled' as reactionSummary %}
8
+ {% popover id=id|add:'-reactions-'|add:messageId side='top' align='end' panelShape='square' className='usx-chat__message-actions usx-chat__reaction-actions' summaryProps=reactionSummary menuItems=reactionMenuItems %}{% endpopover %}
9
+ {% endwith %}
10
+ {% endif %}
11
+ {% if canReply %}
12
+ <button type="button" class="usa-button usx-button usa-button--unstyled usx-chat__tool-button" title="Reply in thread" aria-label="Reply in thread to message from {{ senderName }}" data-usx-chat-thread="{{ messageId }}" >
13
+ {% icon name='comment' %}{% endicon %}
14
+ </button >
15
+ {% endif %}
16
+ {% if canForward %}
17
+ <button type="button" class="usa-button usx-button usa-button--unstyled usx-chat__tool-button" title="Forward message" aria-label="Forward message from {{ senderName }}" data-usx-chat-forward="{{ messageId }}" >
18
+ {% icon name='arrow_forward' %}{% endicon %}
19
+ </button >
20
+ {% endif %}
21
+ {% if canCopy or actions %}
22
+ {% icon name='more_horiz' as moreIcon %}{% endicon %}
23
+ {% with menuLabel='More actions for message from '|add:senderName %}
24
+ {% dict children=moreIcon ariaLabel=menuLabel title='More actions' className='usa-button usx-button usa-button--unstyled' as menuSummary %}
25
+ {% popover id=id|add:'-actions-'|add:messageId side='top' align='end' panelShape='square' className='usx-chat__message-actions usx-chat__overflow-actions' summaryProps=menuSummary menuItems=messageMenuItems %}{% endpopover %}
26
+ {% endwith %}
27
+ {% endif %}
28
+ </div>
29
+ {% endif %}
@@ -0,0 +1,53 @@
1
+ <div class="usx-chat__message-tools" role="group" aria-label="Actions for message from Avery">
2
+ <details class="usx-popover usx-chat__message-actions usx-chat__reaction-actions" data-side="top" data-align="end">
3
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="React to message from Avery" title="Add reaction">
4
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
5
+ <use href="/img/sprite.svg#sentiment_satisfied"></use>
6
+ </svg>
7
+ </summary>
8
+ <div id="react-tools-default-reactions-m1" class="usx-popover__panel usx-popover__panel--square">
9
+ <ul class="usx-popover__menu">
10
+ <li>
11
+ <button aria-label="Helpful" title="Helpful" aria-pressed="true" data-usx-chat-reaction="Helpful" type="button" class="usx-popover__menu-item">
12
+ 👍
13
+ </button>
14
+ </li>
15
+ <li>
16
+ <button aria-label="Thanks" title="Thanks" aria-pressed="false" data-usx-chat-reaction="Thanks" type="button" class="usx-popover__menu-item">
17
+ ❤️
18
+ </button>
19
+ </li>
20
+ </ul>
21
+ </div>
22
+ </details>
23
+ <button type="button" class="usa-button usx-button usa-button--unstyled usx-chat__tool-button" title="Reply in thread" aria-label="Reply in thread to message from Avery" data-usx-chat-thread="m1">
24
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
25
+ <use href="/img/sprite.svg#comment"></use>
26
+ </svg></button><button type="button" class="usa-button usx-button usa-button--unstyled usx-chat__tool-button" title="Forward message" aria-label="Forward message from Avery" data-usx-chat-forward="m1">
27
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
28
+ <use href="/img/sprite.svg#arrow_forward"></use>
29
+ </svg>
30
+ </button>
31
+ <details class="usx-popover usx-chat__message-actions usx-chat__overflow-actions" data-side="top" data-align="end">
32
+ <summary class="usa-button usx-button usa-button--unstyled" aria-label="More actions for message from Avery" title="More actions">
33
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
34
+ <use href="/img/sprite.svg#more_horiz"></use>
35
+ </svg>
36
+ </summary>
37
+ <div id="react-tools-default-actions-m1" class="usx-popover__panel usx-popover__panel--square">
38
+ <ul class="usx-popover__menu">
39
+ <li>
40
+ <button data-usx-chat-copy-message="" type="button" class="usx-popover__menu-item">
41
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
42
+ <use href="/img/sprite.svg#content_copy"></use></svg>Copy message
43
+ </button>
44
+ </li>
45
+ <li>
46
+ <button data-usx-chat-message-action="report" type="button" class="usx-popover__menu-item">
47
+ Report message
48
+ </button>
49
+ </li>
50
+ </ul>
51
+ </div>
52
+ </details>
53
+ </div>