@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.
- package/README.md +16 -0
- package/dist/Popover-BzDCTuQM.cjs +984 -0
- package/dist/Popover-LToVWsWc.js +985 -0
- package/dist/chat.cjs +1391 -0
- package/dist/chat.js +1391 -0
- package/dist/index.cjs +4428 -5290
- package/dist/index.js +58 -917
- package/package.json +7 -3
- package/src/chat.js +15 -0
- package/src/components/avatar/Avatar.tsx +54 -16
- package/src/components/avatar/avatar.django-snapshot.html +112 -0
- package/src/components/avatar/avatar.django.html +2 -2
- package/src/components/avatar/avatar.html +25 -0
- package/src/components/avatar/avatar.react-snapshot.html +104 -0
- package/src/components/avatar/config.json +13 -15
- package/src/components/avatar-group/AvatarGroup.tsx +17 -15
- package/src/components/avatar-group/avatar-group.django-snapshot.html +22 -0
- package/src/components/avatar-group/avatar-group.django.html +1 -1
- package/src/components/avatar-group/avatar-group.react-snapshot.html +20 -0
- package/src/components/avatar-group/config.json +2 -2
- package/src/components/back-to-top/BackToTop.tsx +21 -57
- package/src/components/back-to-top/back-to-top.django-snapshot.html +101 -202
- package/src/components/back-to-top/back-to-top.django.html +11 -38
- package/src/components/back-to-top/back-to-top.html +22 -106
- package/src/components/back-to-top/back-to-top.react-snapshot.html +94 -148
- package/src/components/back-to-top/config.json +41 -10
- package/src/components/button/Button.tsx +12 -3
- package/src/components/button/button.django-snapshot.html +18 -0
- package/src/components/button/button.django.html +3 -2
- package/src/components/button/button.react-snapshot.html +16 -0
- package/src/components/button/config.json +11 -2
- package/src/components/callout/callout.django.html +1 -1
- package/src/components/callout/config.json +7 -16
- package/src/components/character-count/CharacterCount.tsx +2 -0
- package/src/components/character-count/character-count.react-snapshot.html +7 -0
- package/src/components/chat/Chat.tsx +575 -0
- package/src/components/chat/README.md +174 -0
- package/src/components/chat/avatarProps.ts +32 -0
- package/src/components/chat/chat.django-snapshot.html +23515 -0
- package/src/components/chat/chat.django.html +75 -0
- package/src/components/chat/chat.html +116 -0
- package/src/components/chat/chat.react-snapshot.html +16895 -0
- package/src/components/chat/config.json +1241 -0
- package/src/components/chat-attachment/ChatAttachment.tsx +39 -0
- package/src/components/chat-attachment/chat-attachment.django.html +24 -0
- package/src/components/chat-attachment/chat-attachment.html +10 -0
- package/src/components/chat-attachment/config.json +27 -0
- package/src/components/chat-attachments/ChatAttachments.tsx +17 -0
- package/src/components/chat-attachments/chat-attachments.django-snapshot.html +58 -0
- package/src/components/chat-attachments/chat-attachments.django.html +10 -0
- package/src/components/chat-attachments/chat-attachments.html +14 -0
- package/src/components/chat-attachments/chat-attachments.react-snapshot.html +46 -0
- package/src/components/chat-attachments/config.json +25 -0
- package/src/components/chat-bubble/ChatBubble.tsx +39 -0
- package/src/components/chat-bubble/ChatFormattedText.tsx +138 -0
- package/src/components/chat-bubble/chat-bubble.django-snapshot.html +128 -0
- package/src/components/chat-bubble/chat-bubble.django.html +19 -0
- package/src/components/chat-bubble/chat-bubble.html +1 -0
- package/src/components/chat-bubble/chat-bubble.react-snapshot.html +118 -0
- package/src/components/chat-bubble/config.json +70 -0
- package/src/components/chat-composer/ChatComposer.tsx +210 -0
- package/src/components/chat-composer/README.md +15 -0
- package/src/components/chat-composer/chat-composer.django-snapshot.html +575 -0
- package/src/components/chat-composer/chat-composer.django.html +77 -0
- package/src/components/chat-composer/chat-composer.html +44 -0
- package/src/components/chat-composer/chat-composer.react-snapshot.html +519 -0
- package/src/components/chat-composer/chat-formatting.django.html +59 -0
- package/src/components/chat-composer/config.json +137 -0
- package/src/components/chat-context/ChatContext.tsx +46 -0
- package/src/components/chat-context/chat-context.django-snapshot.html +35 -0
- package/src/components/chat-context/chat-context.django.html +20 -0
- package/src/components/chat-context/chat-context.html +9 -0
- package/src/components/chat-context/chat-context.react-snapshot.html +30 -0
- package/src/components/chat-context/config.json +36 -0
- package/src/components/chat-controls/ChatControls.tsx +67 -0
- package/src/components/chat-controls/chat-controls.django-snapshot.html +114 -0
- package/src/components/chat-controls/chat-controls.django.html +36 -0
- package/src/components/chat-controls/chat-controls.html +11 -0
- package/src/components/chat-controls/chat-controls.react-snapshot.html +107 -0
- package/src/components/chat-controls/config.json +67 -0
- package/src/components/chat-directory/ChatDirectory.tsx +168 -0
- package/src/components/chat-directory/chat-directory.django-snapshot.html +546 -0
- package/src/components/chat-directory/chat-directory.django.html +14 -0
- package/src/components/chat-directory/chat-directory.html +4 -0
- package/src/components/chat-directory/chat-directory.react-snapshot.html +471 -0
- package/src/components/chat-directory/config.json +242 -0
- package/src/components/chat-directory-item/ChatDirectoryItem.tsx +150 -0
- package/src/components/chat-directory-item/chat-directory-item.django-snapshot.html +281 -0
- package/src/components/chat-directory-item/chat-directory-item.django.html +38 -0
- package/src/components/chat-directory-item/chat-directory-item.html +9 -0
- package/src/components/chat-directory-item/chat-directory-item.react-snapshot.html +249 -0
- package/src/components/chat-directory-item/config.json +103 -0
- package/src/components/chat-history/ChatHistory.tsx +30 -0
- package/src/components/chat-history/chat-history.django-snapshot.html +113 -0
- package/src/components/chat-history/chat-history.django.html +20 -0
- package/src/components/chat-history/chat-history.html +9 -0
- package/src/components/chat-history/chat-history.react-snapshot.html +111 -0
- package/src/components/chat-history/config.json +24 -0
- package/src/components/chat-message/ChatMessage.tsx +148 -0
- package/src/components/chat-message/chat-message.django-snapshot.html +758 -0
- package/src/components/chat-message/chat-message.django.html +56 -0
- package/src/components/chat-message/chat-message.html +12 -0
- package/src/components/chat-message/chat-message.react-snapshot.html +627 -0
- package/src/components/chat-message/config.json +278 -0
- package/src/components/chat-message-actions/ChatMessageActions.tsx +133 -0
- package/src/components/chat-message-actions/chat-message-actions.django-snapshot.html +345 -0
- package/src/components/chat-message-actions/chat-message-actions.django.html +29 -0
- package/src/components/chat-message-actions/chat-message-actions.html +53 -0
- package/src/components/chat-message-actions/chat-message-actions.react-snapshot.html +295 -0
- package/src/components/chat-message-actions/config.json +121 -0
- package/src/components/chat-window/ChatWindow.tsx +133 -0
- package/src/components/chat-window/chat-window.django-snapshot.html +448 -0
- package/src/components/chat-window/chat-window.django.html +39 -0
- package/src/components/chat-window/chat-window.html +26 -0
- package/src/components/chat-window/chat-window.react-snapshot.html +286 -0
- package/src/components/chat-window/config.json +123 -0
- package/src/components/clickable/Clickable.tsx +19 -5
- package/src/components/clickable/clickable.django-snapshot.html +11 -2
- package/src/components/clickable/clickable.django.html +2 -0
- package/src/components/clickable/clickable.react-snapshot.html +10 -2
- package/src/components/clickable/config.json +4 -0
- package/src/components/code/code.django-snapshot.html +25 -18
- package/src/components/code/code.react-snapshot.html +41 -4
- package/src/components/copy-to-clipboard/CopyToClipboard.tsx +2 -7
- package/src/components/copy-to-clipboard/copy-to-clipboard.django-snapshot.html +6 -4
- package/src/components/copy-to-clipboard/copy-to-clipboard.django.html +3 -2
- package/src/components/copy-to-clipboard/copy-to-clipboard.react-snapshot.html +14 -2
- package/src/components/file-list/FileList.tsx +3 -2
- package/src/components/file-list/config.json +5 -0
- package/src/components/file-list/file-list.django-snapshot.html +63 -0
- package/src/components/file-list/file-list.django.html +1 -1
- package/src/components/file-list/file-list.react-snapshot.html +53 -0
- package/src/components/footer/footer.django-snapshot.html +0 -3
- package/src/components/header/header.django-snapshot.html +0 -160
- package/src/components/header/header.django.html +2 -2
- package/src/components/hero/hero.django-snapshot.html +0 -20
- package/src/components/hero/hero.django.html +3 -3
- package/src/components/image/image.django.html +4 -4
- package/src/components/input/Input.tsx +1 -1
- package/src/components/input/config.json +2 -3
- package/src/components/input/input.django-snapshot.html +4 -21
- package/src/components/input/input.django.html +2 -2
- package/src/components/link/Link.tsx +7 -4
- package/src/components/link/config.json +2 -3
- package/src/components/link/link.django-snapshot.html +8 -0
- package/src/components/link/link.django.html +2 -2
- package/src/components/link/link.html +4 -1
- package/src/components/link/link.react-snapshot.html +8 -0
- package/src/components/memorable-date/memorable-date.django-snapshot.html +0 -8
- package/src/components/memorable-date/memorable-date.django.html +2 -2
- package/src/components/misc-banner/misc-banner.django-snapshot.html +12 -12
- package/src/components/misc-banner/misc-banner.django.html +4 -2
- package/src/components/popover/Popover.tsx +60 -9
- package/src/components/popover/PopoverMenu.tsx +33 -15
- package/src/components/popover/config.json +88 -14
- package/src/components/popover/popover-menu.django.html +13 -2
- package/src/components/popover/popover.django-snapshot.html +229 -7
- package/src/components/popover/popover.django.html +3 -2
- package/src/components/popover/popover.react-snapshot.html +127 -4
- package/src/components/process-list/config.json +41 -3
- package/src/components/quote/Quote.tsx +9 -2
- package/src/components/search/Search.tsx +1 -1
- package/src/components/search/config.json +3 -4
- package/src/components/search/search.django-snapshot.html +262 -1684
- package/src/components/search/search.django.html +1 -20
- package/src/components/select/select.django-snapshot.html +7 -7
- package/src/components/select/select.react-snapshot.html +7 -7
- package/src/components/summary/Summary.tsx +4 -2
- package/src/components/summary/config.json +4 -0
- package/src/components/summary/summary.django.html +4 -4
- package/src/components/table/Table.tsx +58 -25
- package/src/components/table/config.json +61 -13
- package/src/components/tag/Tag.tsx +40 -7
- package/src/components/tag/config.json +18 -2
- package/src/components/tag/tag.django-snapshot.html +16 -1
- package/src/components/tag/tag.django.html +12 -6
- package/src/components/tag/tag.html +4 -0
- package/src/components/tag/tag.react-snapshot.html +16 -1
- package/src/components/tag-group/TagGroup.tsx +6 -9
- package/src/components/tag-group/config.json +4 -0
- package/src/components/tag-group/tag-group.django.html +1 -1
|
@@ -0,0 +1,448 @@
|
|
|
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-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
|
+
|
|
102
|
+
|
|
103
|
+
usx-popover__header-action
|
|
104
|
+
"
|
|
105
|
+
|
|
106
|
+
data-usx-chat-new="" aria-label="New message"
|
|
107
|
+
>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
<svg
|
|
116
|
+
class="
|
|
117
|
+
usa-icon usx-icon
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
"
|
|
122
|
+
|
|
123
|
+
aria-hidden="true"
|
|
124
|
+
focusable="false"
|
|
125
|
+
role="img"
|
|
126
|
+
>
|
|
127
|
+
|
|
128
|
+
<use href="img/sprite.svg#add"></use>
|
|
129
|
+
|
|
130
|
+
</svg>
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
</button>
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-inbox">
|
|
142
|
+
|
|
143
|
+
<svg
|
|
144
|
+
class="
|
|
145
|
+
usa-icon usx-icon
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
"
|
|
150
|
+
|
|
151
|
+
aria-hidden="true"
|
|
152
|
+
focusable="false"
|
|
153
|
+
role="img"
|
|
154
|
+
>
|
|
155
|
+
|
|
156
|
+
<use href="img/sprite.svg#close"></use>
|
|
157
|
+
|
|
158
|
+
</svg></button></div></header><div class="usx-popover__panel-content usx-chat__popover-content">
|
|
159
|
+
<section class="usx-chat__window" aria-labelledby="django-example-window-inbox-title" data-chat-view="inbox" >
|
|
160
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status" aria-live="polite"></span>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
<ol class="usx-chat__messages">
|
|
165
|
+
<li data-message-id="example-message" data-sender-name="Avery">
|
|
166
|
+
|
|
167
|
+
<div class="usx-chat__bubble">
|
|
168
|
+
|
|
169
|
+
<p>Your appointment is confirmed.</p>
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
</div>
|
|
176
|
+
|
|
177
|
+
</li>
|
|
178
|
+
</ol>
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
</section>
|
|
182
|
+
</div></div></details>
|
|
183
|
+
</div>
|
|
184
|
+
|
|
185
|
+
<h3 class="site-preview-heading">Thread</h3>
|
|
186
|
+
<div>
|
|
187
|
+
<!-- prettier-ignore -->
|
|
188
|
+
<details
|
|
189
|
+
|
|
190
|
+
class="usx-popover usx-chat " open
|
|
191
|
+
data-side="bottom"
|
|
192
|
+
data-align="start"
|
|
193
|
+
data-usx-popover-dismiss-on-outside="false"
|
|
194
|
+
|
|
195
|
+
>
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
<summary>Open chat</summary>
|
|
199
|
+
|
|
200
|
+
<div
|
|
201
|
+
id="django-example-window-thread"
|
|
202
|
+
class="usx-popover__panel usx-popover__panel--square usx-chat__panel"
|
|
203
|
+
><header class="usx-popover__header usx-chat__header"><div class="usx-popover__header-left-actions">
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
<button
|
|
212
|
+
type="button"
|
|
213
|
+
class="
|
|
214
|
+
usa-button usx-button
|
|
215
|
+
usa-button--unstyled
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
usx-popover__header-action
|
|
220
|
+
"
|
|
221
|
+
|
|
222
|
+
data-usx-chat-back="" aria-label="Back to conversation"
|
|
223
|
+
>
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
<svg
|
|
232
|
+
class="
|
|
233
|
+
usa-icon usx-icon
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
"
|
|
238
|
+
|
|
239
|
+
aria-hidden="true"
|
|
240
|
+
focusable="false"
|
|
241
|
+
role="img"
|
|
242
|
+
>
|
|
243
|
+
|
|
244
|
+
<use href="img/sprite.svg#arrow_back"></use>
|
|
245
|
+
|
|
246
|
+
</svg>
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
</button>
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
</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">
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
<!-- prettier-ignore -->
|
|
262
|
+
<details
|
|
263
|
+
|
|
264
|
+
class="usx-popover usx-chat__actions"
|
|
265
|
+
data-side="bottom"
|
|
266
|
+
data-align="end"
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
>
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
<summary class="usa-button usx-button usa-button--unstyled usx-popover__header-action" aria-label="Conversation actions">
|
|
273
|
+
|
|
274
|
+
<svg
|
|
275
|
+
class="
|
|
276
|
+
usa-icon usx-icon
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
"
|
|
281
|
+
|
|
282
|
+
aria-hidden="true"
|
|
283
|
+
focusable="false"
|
|
284
|
+
role="img"
|
|
285
|
+
>
|
|
286
|
+
|
|
287
|
+
<use href="img/sprite.svg#more_vert"></use>
|
|
288
|
+
|
|
289
|
+
</svg></summary>
|
|
290
|
+
|
|
291
|
+
<div
|
|
292
|
+
id="django-example-window-thread-conversation-actions"
|
|
293
|
+
class="usx-popover__panel usx-popover__panel--square usx-chat__actions-menu"
|
|
294
|
+
><ul class="usx-popover__menu"><li><button
|
|
295
|
+
type="button"
|
|
296
|
+
class="usx-popover__menu-item"
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
data-usx-chat-copy=""
|
|
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
|
+
><use href="img/sprite.svg#content_copy"></use></svg>
|
|
312
|
+
Copy conversation
|
|
313
|
+
</button></li><li><button
|
|
314
|
+
type="button"
|
|
315
|
+
class="usx-popover__menu-item"
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
data-usx-chat-directory-action="leave-group"data-usx-chat-conversation-id="support"
|
|
319
|
+
>
|
|
320
|
+
|
|
321
|
+
Leave group
|
|
322
|
+
</button></li><li><button
|
|
323
|
+
type="button"
|
|
324
|
+
class="usx-popover__menu-item"
|
|
325
|
+
disabled
|
|
326
|
+
|
|
327
|
+
data-usx-chat-directory-action="delete-history"data-usx-chat-conversation-id="support"
|
|
328
|
+
>
|
|
329
|
+
|
|
330
|
+
Delete chat history
|
|
331
|
+
</button></li></ul>
|
|
332
|
+
</div></details>
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
<button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-thread">
|
|
336
|
+
|
|
337
|
+
<svg
|
|
338
|
+
class="
|
|
339
|
+
usa-icon usx-icon
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
"
|
|
344
|
+
|
|
345
|
+
aria-hidden="true"
|
|
346
|
+
focusable="false"
|
|
347
|
+
role="img"
|
|
348
|
+
>
|
|
349
|
+
|
|
350
|
+
<use href="img/sprite.svg#close"></use>
|
|
351
|
+
|
|
352
|
+
</svg></button></div></header><div class="usx-popover__panel-content usx-chat__popover-content">
|
|
353
|
+
<section class="usx-chat__window" aria-labelledby="django-example-window-thread-title" data-chat-view="thread" >
|
|
354
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status" aria-live="polite"></span>
|
|
355
|
+
|
|
356
|
+
<p class='usx-chat__status'>
|
|
357
|
+
In Application support
|
|
358
|
+
</p>
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
<ol class="usx-chat__messages">
|
|
363
|
+
<li data-message-id="example-message" data-sender-name="Avery">
|
|
364
|
+
|
|
365
|
+
<div class="usx-chat__bubble">
|
|
366
|
+
|
|
367
|
+
<p>Your appointment is confirmed.</p>
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
</div>
|
|
374
|
+
|
|
375
|
+
</li>
|
|
376
|
+
</ol>
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
</section>
|
|
380
|
+
</div></div></details>
|
|
381
|
+
</div>
|
|
382
|
+
|
|
383
|
+
<h3 class="site-preview-heading">Closed</h3>
|
|
384
|
+
<div>
|
|
385
|
+
<!-- prettier-ignore -->
|
|
386
|
+
<details
|
|
387
|
+
|
|
388
|
+
class="usx-popover usx-chat "
|
|
389
|
+
data-side="bottom"
|
|
390
|
+
data-align="start"
|
|
391
|
+
data-usx-popover-dismiss-on-outside="false"
|
|
392
|
+
|
|
393
|
+
>
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
<summary class="host-window-launcher">
|
|
397
|
+
<span>Contact support</span>
|
|
398
|
+
</summary>
|
|
399
|
+
|
|
400
|
+
<div
|
|
401
|
+
id="django-example-window-closed"
|
|
402
|
+
class="usx-popover__panel usx-popover__panel--square usx-chat__panel"
|
|
403
|
+
><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">
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
<button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-closed">
|
|
407
|
+
|
|
408
|
+
<svg
|
|
409
|
+
class="
|
|
410
|
+
usa-icon usx-icon
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
"
|
|
415
|
+
|
|
416
|
+
aria-hidden="true"
|
|
417
|
+
focusable="false"
|
|
418
|
+
role="img"
|
|
419
|
+
>
|
|
420
|
+
|
|
421
|
+
<use href="img/sprite.svg#close"></use>
|
|
422
|
+
|
|
423
|
+
</svg></button></div></header><div class="usx-popover__panel-content usx-chat__popover-content">
|
|
424
|
+
<section class="usx-chat__window" aria-labelledby="django-example-window-closed-title" data-chat-view="conversation" >
|
|
425
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status" aria-live="polite"></span>
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
<ol class="usx-chat__messages">
|
|
430
|
+
<li data-message-id="example-message" data-sender-name="Avery">
|
|
431
|
+
|
|
432
|
+
<div class="usx-chat__bubble">
|
|
433
|
+
|
|
434
|
+
<p>Your appointment is confirmed.</p>
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
</div>
|
|
441
|
+
|
|
442
|
+
</li>
|
|
443
|
+
</ol>
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
</section>
|
|
447
|
+
</div></div></details>
|
|
448
|
+
</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' 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' 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-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-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>
|