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