@solexllc/usx-react 0.11.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/README.md +31 -0
  2. package/dist/Popover-Bg4-2-cU.cjs +987 -0
  3. package/dist/Popover-CqHczzNE.js +988 -0
  4. package/dist/chat.cjs +1396 -0
  5. package/dist/chat.js +1396 -0
  6. package/dist/index.cjs +4412 -5247
  7. package/dist/index.js +140 -972
  8. package/package.json +9 -5
  9. package/src/chat.js +15 -0
  10. package/src/components/accordion/Accordion.tsx +9 -57
  11. package/src/components/accordion/accordion.django.html +10 -20
  12. package/src/components/accordion/config.json +8 -2
  13. package/src/components/accordion-item/AccordionItem.tsx +54 -0
  14. package/src/components/accordion-item/accordion-item.django.html +19 -0
  15. package/src/components/accordion-item/accordion-item.html +8 -0
  16. package/src/components/accordion-item/config.json +55 -0
  17. package/src/components/alert/alert.django-snapshot.html +4 -4
  18. package/src/components/avatar/Avatar.tsx +54 -16
  19. package/src/components/avatar/avatar.django-snapshot.html +118 -2
  20. package/src/components/avatar/avatar.django.html +2 -2
  21. package/src/components/avatar/avatar.html +25 -0
  22. package/src/components/avatar/avatar.react-snapshot.html +110 -3
  23. package/src/components/avatar/config.json +17 -17
  24. package/src/components/avatar-group/AvatarGroup.tsx +17 -15
  25. package/src/components/avatar-group/avatar-group.django-snapshot.html +196 -174
  26. package/src/components/avatar-group/avatar-group.django.html +1 -1
  27. package/src/components/avatar-group/avatar-group.react-snapshot.html +216 -165
  28. package/src/components/avatar-group/config.json +14 -8
  29. package/src/components/back-to-top/BackToTop.tsx +21 -57
  30. package/src/components/back-to-top/back-to-top.django-snapshot.html +101 -202
  31. package/src/components/back-to-top/back-to-top.django.html +11 -38
  32. package/src/components/back-to-top/back-to-top.html +22 -106
  33. package/src/components/back-to-top/back-to-top.react-snapshot.html +94 -148
  34. package/src/components/back-to-top/config.json +41 -10
  35. package/src/components/banner/banner.django-snapshot.html +2 -2
  36. package/src/components/button/Button.tsx +15 -3
  37. package/src/components/button/button.django-snapshot.html +82 -0
  38. package/src/components/button/button.django.html +5 -2
  39. package/src/components/button/button.react-snapshot.html +80 -0
  40. package/src/components/button/config.json +17 -3
  41. package/src/components/callout/callout.django.html +1 -1
  42. package/src/components/callout/config.json +7 -16
  43. package/src/components/card/card.django-snapshot.html +43 -0
  44. package/src/components/card/card.react-snapshot.html +36 -0
  45. package/src/components/character-count/CharacterCount.tsx +2 -0
  46. package/src/components/character-count/character-count.react-snapshot.html +7 -0
  47. package/src/components/chat/Chat.tsx +575 -0
  48. package/src/components/chat/README.md +174 -0
  49. package/src/components/chat/avatarProps.ts +32 -0
  50. package/src/components/chat/chat.django-snapshot.html +23579 -0
  51. package/src/components/chat/chat.django.html +75 -0
  52. package/src/components/chat/chat.html +116 -0
  53. package/src/components/chat/chat.react-snapshot.html +16895 -0
  54. package/src/components/chat/config.json +1241 -0
  55. package/src/components/chat-attachment/ChatAttachment.tsx +39 -0
  56. package/src/components/chat-attachment/chat-attachment.django.html +24 -0
  57. package/src/components/chat-attachment/chat-attachment.html +10 -0
  58. package/src/components/chat-attachment/config.json +27 -0
  59. package/src/components/chat-attachments/ChatAttachments.tsx +17 -0
  60. package/src/components/chat-attachments/chat-attachments.django-snapshot.html +58 -0
  61. package/src/components/chat-attachments/chat-attachments.django.html +10 -0
  62. package/src/components/chat-attachments/chat-attachments.html +14 -0
  63. package/src/components/chat-attachments/chat-attachments.react-snapshot.html +46 -0
  64. package/src/components/chat-attachments/config.json +25 -0
  65. package/src/components/chat-bubble/ChatBubble.tsx +39 -0
  66. package/src/components/chat-bubble/ChatFormattedText.tsx +138 -0
  67. package/src/components/chat-bubble/chat-bubble.django-snapshot.html +128 -0
  68. package/src/components/chat-bubble/chat-bubble.django.html +19 -0
  69. package/src/components/chat-bubble/chat-bubble.html +1 -0
  70. package/src/components/chat-bubble/chat-bubble.react-snapshot.html +118 -0
  71. package/src/components/chat-bubble/config.json +70 -0
  72. package/src/components/chat-composer/ChatComposer.tsx +213 -0
  73. package/src/components/chat-composer/README.md +15 -0
  74. package/src/components/chat-composer/chat-composer.django-snapshot.html +575 -0
  75. package/src/components/chat-composer/chat-composer.django.html +77 -0
  76. package/src/components/chat-composer/chat-composer.html +44 -0
  77. package/src/components/chat-composer/chat-composer.react-snapshot.html +519 -0
  78. package/src/components/chat-composer/chat-formatting.django.html +59 -0
  79. package/src/components/chat-composer/config.json +137 -0
  80. package/src/components/chat-context/ChatContext.tsx +46 -0
  81. package/src/components/chat-context/chat-context.django-snapshot.html +35 -0
  82. package/src/components/chat-context/chat-context.django.html +20 -0
  83. package/src/components/chat-context/chat-context.html +9 -0
  84. package/src/components/chat-context/chat-context.react-snapshot.html +30 -0
  85. package/src/components/chat-context/config.json +36 -0
  86. package/src/components/chat-controls/ChatControls.tsx +67 -0
  87. package/src/components/chat-controls/chat-controls.django-snapshot.html +114 -0
  88. package/src/components/chat-controls/chat-controls.django.html +36 -0
  89. package/src/components/chat-controls/chat-controls.html +11 -0
  90. package/src/components/chat-controls/chat-controls.react-snapshot.html +107 -0
  91. package/src/components/chat-controls/config.json +67 -0
  92. package/src/components/chat-directory/ChatDirectory.tsx +168 -0
  93. package/src/components/chat-directory/chat-directory.django-snapshot.html +546 -0
  94. package/src/components/chat-directory/chat-directory.django.html +14 -0
  95. package/src/components/chat-directory/chat-directory.html +4 -0
  96. package/src/components/chat-directory/chat-directory.react-snapshot.html +471 -0
  97. package/src/components/chat-directory/config.json +242 -0
  98. package/src/components/chat-directory-item/ChatDirectoryItem.tsx +150 -0
  99. package/src/components/chat-directory-item/chat-directory-item.django-snapshot.html +281 -0
  100. package/src/components/chat-directory-item/chat-directory-item.django.html +38 -0
  101. package/src/components/chat-directory-item/chat-directory-item.html +9 -0
  102. package/src/components/chat-directory-item/chat-directory-item.react-snapshot.html +249 -0
  103. package/src/components/chat-directory-item/config.json +103 -0
  104. package/src/components/chat-history/ChatHistory.tsx +30 -0
  105. package/src/components/chat-history/chat-history.django-snapshot.html +113 -0
  106. package/src/components/chat-history/chat-history.django.html +20 -0
  107. package/src/components/chat-history/chat-history.html +9 -0
  108. package/src/components/chat-history/chat-history.react-snapshot.html +111 -0
  109. package/src/components/chat-history/config.json +24 -0
  110. package/src/components/chat-message/ChatMessage.tsx +148 -0
  111. package/src/components/chat-message/chat-message.django-snapshot.html +758 -0
  112. package/src/components/chat-message/chat-message.django.html +56 -0
  113. package/src/components/chat-message/chat-message.html +12 -0
  114. package/src/components/chat-message/chat-message.react-snapshot.html +627 -0
  115. package/src/components/chat-message/config.json +278 -0
  116. package/src/components/chat-message-actions/ChatMessageActions.tsx +133 -0
  117. package/src/components/chat-message-actions/chat-message-actions.django-snapshot.html +345 -0
  118. package/src/components/chat-message-actions/chat-message-actions.django.html +29 -0
  119. package/src/components/chat-message-actions/chat-message-actions.html +53 -0
  120. package/src/components/chat-message-actions/chat-message-actions.react-snapshot.html +295 -0
  121. package/src/components/chat-message-actions/config.json +121 -0
  122. package/src/components/chat-window/ChatWindow.tsx +135 -0
  123. package/src/components/chat-window/chat-window.django-snapshot.html +450 -0
  124. package/src/components/chat-window/chat-window.django.html +39 -0
  125. package/src/components/chat-window/chat-window.html +26 -0
  126. package/src/components/chat-window/chat-window.react-snapshot.html +286 -0
  127. package/src/components/chat-window/config.json +123 -0
  128. package/src/components/checkbox/checkbox.django-snapshot.html +2 -2
  129. package/src/components/clickable/Clickable.tsx +19 -5
  130. package/src/components/clickable/clickable.django-snapshot.html +11 -2
  131. package/src/components/clickable/clickable.django.html +2 -0
  132. package/src/components/clickable/clickable.react-snapshot.html +10 -2
  133. package/src/components/clickable/config.json +4 -0
  134. package/src/components/code/code.django-snapshot.html +25 -18
  135. package/src/components/code/code.react-snapshot.html +41 -4
  136. package/src/components/copy-to-clipboard/CopyToClipboard.tsx +2 -7
  137. package/src/components/copy-to-clipboard/copy-to-clipboard.django-snapshot.html +6 -4
  138. package/src/components/copy-to-clipboard/copy-to-clipboard.django.html +3 -2
  139. package/src/components/copy-to-clipboard/copy-to-clipboard.react-snapshot.html +14 -2
  140. package/src/components/data-table/data-table.django-snapshot.html +4 -5
  141. package/src/components/data-table/data-table.react-snapshot.html +4 -4
  142. package/src/components/drawer/drawer.django-snapshot.html +53 -30
  143. package/src/components/error-page/error-page.django-snapshot.html +20 -7
  144. package/src/components/fieldset/fieldset.django-snapshot.html +1 -6
  145. package/src/components/file-list/FileList.tsx +3 -2
  146. package/src/components/file-list/config.json +5 -0
  147. package/src/components/file-list/file-list.django-snapshot.html +63 -0
  148. package/src/components/file-list/file-list.django.html +1 -1
  149. package/src/components/file-list/file-list.react-snapshot.html +53 -0
  150. package/src/components/footer/footer.django-snapshot.html +0 -3
  151. package/src/components/form-group/form-group.django-snapshot.html +0 -2
  152. package/src/components/header/header.django-snapshot.html +3 -163
  153. package/src/components/header/header.django.html +2 -2
  154. package/src/components/header/header.html +1 -1
  155. package/src/components/header/header.react-snapshot.html +3 -3
  156. package/src/components/hero/hero.django-snapshot.html +0 -20
  157. package/src/components/hero/hero.django.html +3 -3
  158. package/src/components/identifier/config.json +4 -2
  159. package/src/components/identifier/identifier.django-snapshot.html +13 -16
  160. package/src/components/identifier/identifier.react-snapshot.html +13 -15
  161. package/src/components/image/image.django-snapshot.html +6 -6
  162. package/src/components/image/image.django.html +4 -4
  163. package/src/components/input/Input.tsx +1 -1
  164. package/src/components/input/config.json +2 -3
  165. package/src/components/input/input.django-snapshot.html +4 -21
  166. package/src/components/input/input.django.html +2 -2
  167. package/src/components/layout/layout.django-snapshot.html +2 -0
  168. package/src/components/link/Link.tsx +7 -4
  169. package/src/components/link/config.json +2 -3
  170. package/src/components/link/link.django-snapshot.html +8 -0
  171. package/src/components/link/link.django.html +2 -2
  172. package/src/components/link/link.html +4 -1
  173. package/src/components/link/link.react-snapshot.html +8 -0
  174. package/src/components/memorable-date/memorable-date.django-snapshot.html +0 -8
  175. package/src/components/memorable-date/memorable-date.django.html +2 -2
  176. package/src/components/misc-banner/misc-banner.django-snapshot.html +12 -12
  177. package/src/components/misc-banner/misc-banner.django.html +4 -2
  178. package/src/components/modal/Modal.tsx +4 -3
  179. package/src/components/modal/config.json +3 -2
  180. package/src/components/modal/modal.django-snapshot.html +70 -14
  181. package/src/components/modal/modal.django.html +7 -9
  182. package/src/components/modal/modal.html +4 -4
  183. package/src/components/modal/modal.react-snapshot.html +64 -4
  184. package/src/components/page/Page.tsx +10 -7
  185. package/src/components/page/page.django-snapshot.html +5 -8
  186. package/src/components/page/page.django.html +2 -2
  187. package/src/components/page/page.html +1 -2
  188. package/src/components/page/page.react-snapshot.html +5 -8
  189. package/src/components/pagination/navigation/PaginationNavigation.tsx +2 -0
  190. package/src/components/pagination/navigation/pagination-navigation.django.html +2 -0
  191. package/src/components/pagination/pagination.django-snapshot.html +62 -0
  192. package/src/components/pagination/pagination.django.html +3 -1
  193. package/src/components/pagination/pagination.html +46 -0
  194. package/src/components/pagination/pagination.react-snapshot.html +48 -0
  195. package/src/components/pagination/summary/PaginationSummary.tsx +1 -1
  196. package/src/components/pagination/summary/pagination-summary.django.html +1 -1
  197. package/src/components/popover/Popover.tsx +61 -9
  198. package/src/components/popover/PopoverMenu.tsx +33 -15
  199. package/src/components/popover/config.json +88 -14
  200. package/src/components/popover/popover-menu.django.html +13 -2
  201. package/src/components/popover/popover.django-snapshot.html +265 -7
  202. package/src/components/popover/popover.django.html +3 -2
  203. package/src/components/popover/popover.react-snapshot.html +154 -4
  204. package/src/components/process-list/config.json +41 -3
  205. package/src/components/quote/Quote.tsx +9 -2
  206. package/src/components/search/Search.tsx +1 -1
  207. package/src/components/search/config.json +3 -4
  208. package/src/components/search/search.django-snapshot.html +262 -1684
  209. package/src/components/search/search.django.html +1 -20
  210. package/src/components/section/Section.tsx +3 -1
  211. package/src/components/select/select.django-snapshot.html +7 -7
  212. package/src/components/select/select.react-snapshot.html +7 -7
  213. package/src/components/site-alert/site-alert.django-snapshot.html +8 -8
  214. package/src/components/summary/Summary.tsx +4 -2
  215. package/src/components/summary/config.json +4 -0
  216. package/src/components/summary/summary.django.html +4 -4
  217. package/src/components/swap/Swap.tsx +35 -3
  218. package/src/components/swap/config.json +28 -1
  219. package/src/components/swap/swap.django-snapshot.html +29 -7
  220. package/src/components/swap/swap.django.html +15 -1
  221. package/src/components/swap/swap.react-snapshot.html +34 -4
  222. package/src/components/table/Table.tsx +58 -25
  223. package/src/components/table/config.json +61 -13
  224. package/src/components/tag/Tag.tsx +40 -7
  225. package/src/components/tag/config.json +18 -2
  226. package/src/components/tag/tag.django-snapshot.html +16 -1
  227. package/src/components/tag/tag.django.html +12 -6
  228. package/src/components/tag/tag.html +4 -0
  229. package/src/components/tag/tag.react-snapshot.html +16 -1
  230. package/src/components/tag-group/TagGroup.tsx +6 -9
  231. package/src/components/tag-group/config.json +4 -0
  232. package/src/components/tag-group/tag-group.django.html +1 -1
  233. package/src/components/theme-picker/ThemePicker.tsx +48 -42
  234. package/src/components/theme-picker/config.json +27 -29
  235. package/src/components/theme-picker/theme-picker-select.django.html +1 -1
  236. package/src/components/theme-picker/theme-picker.django-snapshot.html +283 -78
  237. package/src/components/theme-picker/theme-picker.django.html +24 -11
  238. package/src/components/theme-picker/theme-picker.html +155 -54
  239. package/src/components/theme-picker/theme-picker.react-snapshot.html +265 -67
  240. package/src/index.js +1 -0
@@ -0,0 +1,450 @@
1
+ <h3 class="site-preview-heading">Default</h3>
2
+ <div>
3
+ <!-- prettier-ignore -->
4
+ <details
5
+
6
+ class="usx-popover usx-chat " open
7
+ data-side="bottom"
8
+ data-align="start"
9
+ data-usx-popover-dismiss-on-outside="false"
10
+
11
+ >
12
+
13
+
14
+ <summary>Open chat</summary>
15
+
16
+ <div
17
+ id="django-example-window-default"
18
+ class="usx-popover__panel usx-popover__panel--square usx-chat__panel"
19
+ ><header class="usx-popover__header usx-chat__header"><div class="usx-popover__header-content"><h2 class="usx-popover__panel-heading" id="django-example-window-default-title" tabindex="-1">Support</h2></div><div class="usx-popover__header-right-actions">
20
+
21
+
22
+ <button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-default">
23
+
24
+ <svg
25
+ class="
26
+ usa-icon usx-icon
27
+
28
+
29
+
30
+ "
31
+
32
+ aria-hidden="true"
33
+ focusable="false"
34
+ role="img"
35
+ >
36
+
37
+ <use href="img/sprite.svg#close"></use>
38
+
39
+ </svg></button></div></header><div class="usx-popover__panel-content usx-chat__popover-content">
40
+ <section class="usx-chat__window" aria-labelledby="django-example-window-default-title" data-chat-view="conversation" >
41
+ <span class="usx-chat__copy-status usa-sr-only" role="status" aria-live="polite"></span>
42
+
43
+ <p class='usx-chat__status'>
44
+ Usually replies within a day.
45
+ </p>
46
+
47
+
48
+
49
+ <ol class="usx-chat__messages">
50
+ <li data-message-id="example-message" data-sender-name="Avery">
51
+
52
+ <div class="usx-chat__bubble">
53
+
54
+ <p>Your appointment is confirmed.</p>
55
+
56
+
57
+
58
+
59
+
60
+ </div>
61
+
62
+ </li>
63
+ </ol>
64
+
65
+
66
+ </section>
67
+ </div></div></details>
68
+ </div>
69
+
70
+ <h3 class="site-preview-heading">Inbox</h3>
71
+ <div>
72
+ <!-- prettier-ignore -->
73
+ <details
74
+
75
+ class="usx-popover usx-chat " open
76
+ data-side="bottom"
77
+ data-align="start"
78
+ data-usx-popover-dismiss-on-outside="false"
79
+
80
+ >
81
+
82
+
83
+ <summary>Open chat</summary>
84
+
85
+ <div
86
+ id="django-example-window-inbox"
87
+ class="usx-popover__panel usx-popover__panel--square usx-chat__panel"
88
+ ><header class="usx-popover__header usx-chat__header"><div class="usx-popover__header-content"><h2 class="usx-popover__panel-heading" id="django-example-window-inbox-title" tabindex="-1">Messages</h2></div><div class="usx-popover__header-right-actions">
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <button
96
+ type="button"
97
+ class="
98
+ usa-button usx-button
99
+ usa-button--unstyled
100
+
101
+ usx-button--tight
102
+
103
+
104
+ usx-popover__header-action
105
+ "
106
+
107
+ data-usx-chat-new="" aria-label="New message"
108
+ >
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ <svg
117
+ class="
118
+ usa-icon usx-icon
119
+
120
+
121
+
122
+ "
123
+
124
+ aria-hidden="true"
125
+ focusable="false"
126
+ role="img"
127
+ >
128
+
129
+ <use href="img/sprite.svg#add"></use>
130
+
131
+ </svg>
132
+
133
+
134
+
135
+
136
+
137
+ </button>
138
+
139
+
140
+
141
+
142
+ <button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-inbox">
143
+
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
+ >
156
+
157
+ <use href="img/sprite.svg#close"></use>
158
+
159
+ </svg></button></div></header><div class="usx-popover__panel-content usx-chat__popover-content">
160
+ <section class="usx-chat__window" aria-labelledby="django-example-window-inbox-title" data-chat-view="inbox" >
161
+ <span class="usx-chat__copy-status usa-sr-only" role="status" aria-live="polite"></span>
162
+
163
+
164
+
165
+ <ol class="usx-chat__messages">
166
+ <li data-message-id="example-message" data-sender-name="Avery">
167
+
168
+ <div class="usx-chat__bubble">
169
+
170
+ <p>Your appointment is confirmed.</p>
171
+
172
+
173
+
174
+
175
+
176
+ </div>
177
+
178
+ </li>
179
+ </ol>
180
+
181
+
182
+ </section>
183
+ </div></div></details>
184
+ </div>
185
+
186
+ <h3 class="site-preview-heading">Thread</h3>
187
+ <div>
188
+ <!-- prettier-ignore -->
189
+ <details
190
+
191
+ class="usx-popover usx-chat " open
192
+ data-side="bottom"
193
+ data-align="start"
194
+ data-usx-popover-dismiss-on-outside="false"
195
+
196
+ >
197
+
198
+
199
+ <summary>Open chat</summary>
200
+
201
+ <div
202
+ id="django-example-window-thread"
203
+ class="usx-popover__panel usx-popover__panel--square usx-chat__panel"
204
+ ><header class="usx-popover__header usx-chat__header"><div class="usx-popover__header-left-actions">
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+ <button
213
+ type="button"
214
+ class="
215
+ usa-button usx-button
216
+ usa-button--unstyled
217
+
218
+ usx-button--tight
219
+
220
+
221
+ usx-popover__header-action
222
+ "
223
+
224
+ data-usx-chat-back="" aria-label="Back to conversation"
225
+ >
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+ <svg
234
+ class="
235
+ usa-icon usx-icon
236
+
237
+
238
+
239
+ "
240
+
241
+ aria-hidden="true"
242
+ focusable="false"
243
+ role="img"
244
+ >
245
+
246
+ <use href="img/sprite.svg#arrow_back"></use>
247
+
248
+ </svg>
249
+
250
+
251
+
252
+
253
+
254
+ </button>
255
+
256
+
257
+ </div><div class="usx-popover__header-content"><h2 class="usx-popover__panel-heading" id="django-example-window-thread-title" tabindex="-1">Thread</h2></div><div class="usx-popover__header-right-actions">
258
+
259
+
260
+
261
+
262
+
263
+ <!-- prettier-ignore -->
264
+ <details
265
+
266
+ class="usx-popover usx-chat__actions"
267
+ data-side="bottom"
268
+ data-align="end"
269
+
270
+
271
+ >
272
+
273
+
274
+ <summary class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action" aria-label="Conversation actions">
275
+
276
+ <svg
277
+ class="
278
+ usa-icon usx-icon
279
+
280
+
281
+
282
+ "
283
+
284
+ aria-hidden="true"
285
+ focusable="false"
286
+ role="img"
287
+ >
288
+
289
+ <use href="img/sprite.svg#more_vert"></use>
290
+
291
+ </svg></summary>
292
+
293
+ <div
294
+ id="django-example-window-thread-conversation-actions"
295
+ class="usx-popover__panel usx-popover__panel--square usx-chat__actions-menu"
296
+ ><ul class="usx-popover__menu"><li><button
297
+ type="button"
298
+ class="usx-popover__menu-item"
299
+
300
+
301
+ data-usx-chat-copy=""
302
+ ><svg
303
+ class="
304
+ usa-icon usx-icon
305
+
306
+
307
+
308
+ "
309
+
310
+ aria-hidden="true"
311
+ focusable="false"
312
+ role="img"
313
+ ><use href="img/sprite.svg#content_copy"></use></svg>
314
+ Copy conversation
315
+ </button></li><li><button
316
+ type="button"
317
+ class="usx-popover__menu-item"
318
+
319
+
320
+ data-usx-chat-directory-action="leave-group"data-usx-chat-conversation-id="support"
321
+ >
322
+
323
+ Leave group
324
+ </button></li><li><button
325
+ type="button"
326
+ class="usx-popover__menu-item"
327
+ disabled
328
+
329
+ data-usx-chat-directory-action="delete-history"data-usx-chat-conversation-id="support"
330
+ >
331
+
332
+ Delete chat history
333
+ </button></li></ul>
334
+ </div></details>
335
+
336
+
337
+ <button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-thread">
338
+
339
+ <svg
340
+ class="
341
+ usa-icon usx-icon
342
+
343
+
344
+
345
+ "
346
+
347
+ aria-hidden="true"
348
+ focusable="false"
349
+ role="img"
350
+ >
351
+
352
+ <use href="img/sprite.svg#close"></use>
353
+
354
+ </svg></button></div></header><div class="usx-popover__panel-content usx-chat__popover-content">
355
+ <section class="usx-chat__window" aria-labelledby="django-example-window-thread-title" data-chat-view="thread" >
356
+ <span class="usx-chat__copy-status usa-sr-only" role="status" aria-live="polite"></span>
357
+
358
+ <p class='usx-chat__status'>
359
+ In Application support
360
+ </p>
361
+
362
+
363
+
364
+ <ol class="usx-chat__messages">
365
+ <li data-message-id="example-message" data-sender-name="Avery">
366
+
367
+ <div class="usx-chat__bubble">
368
+
369
+ <p>Your appointment is confirmed.</p>
370
+
371
+
372
+
373
+
374
+
375
+ </div>
376
+
377
+ </li>
378
+ </ol>
379
+
380
+
381
+ </section>
382
+ </div></div></details>
383
+ </div>
384
+
385
+ <h3 class="site-preview-heading">Closed</h3>
386
+ <div>
387
+ <!-- prettier-ignore -->
388
+ <details
389
+
390
+ class="usx-popover usx-chat "
391
+ data-side="bottom"
392
+ data-align="start"
393
+ data-usx-popover-dismiss-on-outside="false"
394
+
395
+ >
396
+
397
+
398
+ <summary class="host-window-launcher">
399
+ <span>Contact support</span>
400
+ </summary>
401
+
402
+ <div
403
+ id="django-example-window-closed"
404
+ class="usx-popover__panel usx-popover__panel--square usx-chat__panel"
405
+ ><header class="usx-popover__header usx-chat__header"><div class="usx-popover__header-content"><h2 class="usx-popover__panel-heading" id="django-example-window-closed-title" tabindex="-1">Support</h2></div><div class="usx-popover__header-right-actions">
406
+
407
+
408
+ <button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-closed">
409
+
410
+ <svg
411
+ class="
412
+ usa-icon usx-icon
413
+
414
+
415
+
416
+ "
417
+
418
+ aria-hidden="true"
419
+ focusable="false"
420
+ role="img"
421
+ >
422
+
423
+ <use href="img/sprite.svg#close"></use>
424
+
425
+ </svg></button></div></header><div class="usx-popover__panel-content usx-chat__popover-content">
426
+ <section class="usx-chat__window" aria-labelledby="django-example-window-closed-title" data-chat-view="conversation" >
427
+ <span class="usx-chat__copy-status usa-sr-only" role="status" aria-live="polite"></span>
428
+
429
+
430
+
431
+ <ol class="usx-chat__messages">
432
+ <li data-message-id="example-message" data-sender-name="Avery">
433
+
434
+ <div class="usx-chat__bubble">
435
+
436
+ <p>Your appointment is confirmed.</p>
437
+
438
+
439
+
440
+
441
+
442
+ </div>
443
+
444
+ </li>
445
+ </ol>
446
+
447
+
448
+ </section>
449
+ </div></div></details>
450
+ </div>
@@ -0,0 +1,39 @@
1
+ {% load usx_components %}
2
+ {% with extraClass=className|default:'' %}
3
+ {% fragment as chatLeftActions %}{% if showBack %}
4
+ {% if view == 'thread' %}
5
+ {% dict data_usx_chat_back='' aria_label='Back to conversation' as backAttributes %}
6
+ {% else %}
7
+ {% dict data_usx_chat_back='' aria_label='Back' as backAttributes %}
8
+ {% endif %}
9
+ {% button variant='unstyled' tighten=True className='usx-popover__header-action' extraAttributes=backAttributes %}
10
+ {% icon name='arrow_back' %}{% endicon %}
11
+ {% endbutton %}
12
+ {% endif %}{% endfragment %}
13
+ {% fragment as chatRightActions %}
14
+ {% if showNewMessage %}
15
+ {% dict data_usx_chat_new='' aria_label='New message' as newAttributes %}
16
+ {% button variant='unstyled' tighten=True className='usx-popover__header-action' extraAttributes=newAttributes %}
17
+ {% icon name='add' %}{% endicon %}
18
+ {% endbutton %}
19
+ {% endif %}
20
+ {% if showCopyAction or conversationActions or actions %}
21
+ {% icon name='more_vert' as actionsIcon %}{% endicon %}
22
+ {% dict children=actionsIcon ariaLabel='Conversation actions' className='usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action' as actionsSummary %}
23
+ {% popover id=id|add:'-conversation-actions' className='usx-chat__actions' side='bottom' align='end' panelShape='square' panelClassName='usx-chat__actions-menu' summaryProps=actionsSummary menuItems=conversationMenuItems children=actions %}{% endpopover %}
24
+ {% endif %}
25
+ {% endfragment %}
26
+ {% popover id=id side=side align=align panelShape='square' defaultOpen=defaultOpen dismissOnOutside=False summaryProps=summaryProps className='usx-chat '|add:extraClass panelClassName='usx-chat__panel' contentClassName='usx-chat__popover-content' panelHeading=title headingAs='h2' panelHeadingId=id|add:'-title' headerLeftActions=chatLeftActions headerRightActions=chatRightActions showCloseIcon=True closeIconLabel='Close chat' headerClassName='usx-chat__header' %}
27
+ <section class="usx-chat__window" aria-labelledby="{{ id }}-title" data-chat-view="{{ view }}" >
28
+ <span class="usx-chat__copy-status usa-sr-only" role="status" aria-live="polite"></span>
29
+ {% if status %}
30
+ <p class='usx-chat__status'>
31
+ {{ status }}
32
+ </p>
33
+ {% endif %}
34
+ {% if children != None and children is not True and children is not False %}
35
+ {{ children|safe }}
36
+ {% endif %}
37
+ </section>
38
+ {% endpopover %}
39
+ {% endwith %}
@@ -0,0 +1,26 @@
1
+ <details class="usx-popover usx-chat" open="" data-side="bottom" data-align="start" data-usx-popover-dismiss-on-outside="false">
2
+ <summary>Open chat</summary>
3
+ <div id="react-window-default" class="usx-popover__panel usx-popover__panel--square usx-chat__panel">
4
+ <header class="usx-popover__header usx-chat__header">
5
+ <div class="usx-popover__header-content">
6
+ <h2 id="react-window-default-title" class="usx-popover__panel-heading" tabindex="-1">
7
+ Support
8
+ </h2>
9
+ </div>
10
+ <div class="usx-popover__header-right-actions">
11
+ <button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="react-window-default">
12
+ <svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
13
+ <use href="/img/sprite.svg#close"></use>
14
+ </svg>
15
+ </button>
16
+ </div>
17
+ </header>
18
+ <div class="usx-popover__panel-content usx-chat__popover-content">
19
+ <section class="usx-chat__window" aria-labelledby="react-window-default-title" data-chat-view="conversation">
20
+ <span class="usx-chat__copy-status usa-sr-only" role="status" aria-live="polite"></span>
21
+ <p class="usx-chat__status">Usually replies within a day.</p>
22
+ Conversation content goes here.
23
+ </section>
24
+ </div>
25
+ </div>
26
+ </details>