@solexllc/usx-react 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +4426 -5231
- package/dist/index.js +168 -970
- package/package.json +9 -5
- 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 +27 -22
- package/src/components/code/code.html +2 -2
- package/src/components/code/code.react-snapshot.html +43 -8
- 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 +5 -167
- package/src/components/header/header.django.html +2 -2
- package/src/components/header/header.html +1 -11
- package/src/components/header/header.react-snapshot.html +3 -6
- package/src/components/hero/hero.django-snapshot.html +0 -20
- package/src/components/hero/hero.django.html +3 -3
- package/src/components/icon-list/IconList.tsx +10 -2
- package/src/components/icon-list/config.json +5 -1
- package/src/components/icon-list/icon-list.django-snapshot.html +39 -0
- package/src/components/icon-list/icon-list.django.html +2 -0
- package/src/components/icon-list/icon-list.react-snapshot.html +31 -0
- 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/list/List.tsx +10 -2
- package/src/components/list/config.json +5 -1
- package/src/components/list/list.django-snapshot.html +26 -0
- package/src/components/list/list.django.html +2 -0
- package/src/components/list/list.html +20 -0
- package/src/components/list/list.react-snapshot.html +20 -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/page/Page.tsx +16 -0
- package/src/components/page/config.json +18 -1
- package/src/components/page/page.django-snapshot.html +74 -0
- package/src/components/page/page.django.html +8 -0
- package/src/components/page/page.html +60 -0
- package/src/components/page/page.react-snapshot.html +60 -0
- 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
- package/src/components/theme-picker/ThemePicker.tsx +95 -52
- package/src/components/theme-picker/config.json +7 -4
- package/src/components/theme-picker/theme-picker-select.django.html +7 -0
- package/src/components/theme-picker/theme-picker.django-snapshot.html +101 -21
- package/src/components/theme-picker/theme-picker.django.html +22 -24
- package/src/components/theme-picker/theme-picker.html +86 -56
- package/src/components/theme-picker/theme-picker.react-snapshot.html +74 -18
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<div>
|
|
3
|
+
<section id="react-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="react-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"
|
|
30
|
+
>A</span
|
|
31
|
+
></span
|
|
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></span
|
|
35
|
+
>
|
|
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="react-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"
|
|
60
|
+
>A</span
|
|
61
|
+
></span
|
|
62
|
+
><span class="usx-chat__directory-copy"
|
|
63
|
+
><span class="usx-chat__directory-title">Support</span
|
|
64
|
+
><span class="usx-chat__directory-preview">Hello</span></span
|
|
65
|
+
><span class="usx-chat__directory-meta"
|
|
66
|
+
><span aria-hidden="true"
|
|
67
|
+
><span class="usa-tag usx-tag bg-info usx-rounded-md"> 2</span></span
|
|
68
|
+
><span class="usa-sr-only">2 unread messages</span></span
|
|
69
|
+
>
|
|
70
|
+
</button>
|
|
71
|
+
</li>
|
|
72
|
+
</ul>
|
|
73
|
+
</nav>
|
|
74
|
+
<button type="button" class="usa-button usx-button" data-usx-chat-new="">New message</button>
|
|
75
|
+
</div>
|
|
76
|
+
</section>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<h3 class="site-preview-heading">With Actions</h3>
|
|
80
|
+
<div>
|
|
81
|
+
<section id="react-example-directory-withactions" class="usx-chat" style="max-width: 28rem">
|
|
82
|
+
<div data-chat-view="inbox" class="usx-chat__window" style="height: auto">
|
|
83
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
84
|
+
<nav class="usx-chat__directory" aria-label="Conversations">
|
|
85
|
+
<ul class="usx-chat__directory-list">
|
|
86
|
+
<li class="usx-chat__directory-row">
|
|
87
|
+
<button
|
|
88
|
+
type="button"
|
|
89
|
+
class="usx-clickable usx-chat__directory-item"
|
|
90
|
+
data-usx-chat-conversation="review-team"
|
|
91
|
+
>
|
|
92
|
+
<div class="usx-avatar-group usx-avatar-group--overlap usx-chat__directory-avatars">
|
|
93
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Morgan"
|
|
94
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
95
|
+
>M</span
|
|
96
|
+
></span
|
|
97
|
+
><span class="usx-avatar usx-chat__avatar" aria-label="Taylor"
|
|
98
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
99
|
+
>T</span
|
|
100
|
+
></span
|
|
101
|
+
>
|
|
102
|
+
</div>
|
|
103
|
+
<span class="usx-chat__directory-copy"
|
|
104
|
+
><span class="usx-chat__directory-title">Application review team</span
|
|
105
|
+
><span class="usx-chat__directory-preview">Ready for the review?</span></span
|
|
106
|
+
>
|
|
107
|
+
</button>
|
|
108
|
+
<details
|
|
109
|
+
class="usx-popover usx-chat__directory-actions"
|
|
110
|
+
data-side="bottom"
|
|
111
|
+
data-align="end"
|
|
112
|
+
>
|
|
113
|
+
<summary
|
|
114
|
+
class="usa-button usx-button usa-button--unstyled"
|
|
115
|
+
aria-label="Actions for Application review team"
|
|
116
|
+
>
|
|
117
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
118
|
+
<use href="/img/sprite.svg#more_vert"></use>
|
|
119
|
+
</svg>
|
|
120
|
+
</summary>
|
|
121
|
+
<div
|
|
122
|
+
id="react-directory-actions-conversation-review-team-actions"
|
|
123
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
124
|
+
>
|
|
125
|
+
<ul class="usx-popover__menu">
|
|
126
|
+
<li>
|
|
127
|
+
<button
|
|
128
|
+
data-usx-chat-directory-action="leave-group"
|
|
129
|
+
data-usx-chat-conversation-id="review-team"
|
|
130
|
+
type="button"
|
|
131
|
+
class="usx-popover__menu-item"
|
|
132
|
+
>
|
|
133
|
+
Leave group
|
|
134
|
+
</button>
|
|
135
|
+
</li>
|
|
136
|
+
<li>
|
|
137
|
+
<button
|
|
138
|
+
data-usx-chat-directory-action="delete-history"
|
|
139
|
+
data-usx-chat-conversation-id="review-team"
|
|
140
|
+
type="button"
|
|
141
|
+
class="usx-popover__menu-item"
|
|
142
|
+
>
|
|
143
|
+
Delete chat history
|
|
144
|
+
</button>
|
|
145
|
+
</li>
|
|
146
|
+
</ul>
|
|
147
|
+
</div>
|
|
148
|
+
</details>
|
|
149
|
+
</li>
|
|
150
|
+
<li class="usx-chat__directory-row">
|
|
151
|
+
<a class="usx-clickable usx-chat__directory-item" href="#support"
|
|
152
|
+
><span class="usx-avatar usx-chat__avatar" aria-label="Morgan"
|
|
153
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
154
|
+
>M</span
|
|
155
|
+
></span
|
|
156
|
+
><span class="usx-chat__directory-copy"
|
|
157
|
+
><span class="usx-chat__directory-title">Support</span></span
|
|
158
|
+
></a
|
|
159
|
+
>
|
|
160
|
+
<details
|
|
161
|
+
class="usx-popover usx-chat__directory-actions"
|
|
162
|
+
data-side="bottom"
|
|
163
|
+
data-align="end"
|
|
164
|
+
>
|
|
165
|
+
<summary
|
|
166
|
+
class="usa-button usx-button usa-button--unstyled"
|
|
167
|
+
aria-label="Actions for Support"
|
|
168
|
+
>
|
|
169
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
170
|
+
<use href="/img/sprite.svg#more_vert"></use>
|
|
171
|
+
</svg>
|
|
172
|
+
</summary>
|
|
173
|
+
<div
|
|
174
|
+
id="react-directory-actions-conversation-support-actions"
|
|
175
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
176
|
+
>
|
|
177
|
+
<ul class="usx-popover__menu">
|
|
178
|
+
<li>
|
|
179
|
+
<button
|
|
180
|
+
data-usx-chat-directory-action="delete-history"
|
|
181
|
+
data-usx-chat-conversation-id="support"
|
|
182
|
+
type="button"
|
|
183
|
+
class="usx-popover__menu-item"
|
|
184
|
+
disabled=""
|
|
185
|
+
>
|
|
186
|
+
Delete chat history
|
|
187
|
+
</button>
|
|
188
|
+
</li>
|
|
189
|
+
</ul>
|
|
190
|
+
</div>
|
|
191
|
+
</details>
|
|
192
|
+
</li>
|
|
193
|
+
<li>
|
|
194
|
+
<button
|
|
195
|
+
type="button"
|
|
196
|
+
class="usx-clickable usx-chat__directory-item"
|
|
197
|
+
data-usx-chat-conversation="announcements"
|
|
198
|
+
>
|
|
199
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Morgan"
|
|
200
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
201
|
+
>M</span
|
|
202
|
+
></span
|
|
203
|
+
><span class="usx-chat__directory-copy"
|
|
204
|
+
><span class="usx-chat__directory-title">Announcements</span></span
|
|
205
|
+
>
|
|
206
|
+
</button>
|
|
207
|
+
</li>
|
|
208
|
+
</ul>
|
|
209
|
+
</nav>
|
|
210
|
+
<button type="button" class="usa-button usx-button" data-usx-chat-new="">New message</button>
|
|
211
|
+
</div>
|
|
212
|
+
</section>
|
|
213
|
+
</div>
|
|
214
|
+
|
|
215
|
+
<h3 class="site-preview-heading">Contact Actions</h3>
|
|
216
|
+
<div>
|
|
217
|
+
<section id="react-example-directory-contactactions" class="usx-chat" style="max-width: 28rem">
|
|
218
|
+
<div data-chat-view="contacts" class="usx-chat__window" style="height: auto">
|
|
219
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
220
|
+
<nav class="usx-chat__directory" aria-label="People">
|
|
221
|
+
<ul class="usx-chat__directory-list">
|
|
222
|
+
<li class="usx-chat__directory-row">
|
|
223
|
+
<button
|
|
224
|
+
type="button"
|
|
225
|
+
class="usx-clickable usx-chat__directory-item"
|
|
226
|
+
data-usx-chat-contact="agent"
|
|
227
|
+
>
|
|
228
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Morgan"
|
|
229
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
230
|
+
>M</span
|
|
231
|
+
></span
|
|
232
|
+
><span class="usx-chat__directory-copy"
|
|
233
|
+
><span class="usx-chat__directory-title">Morgan</span></span
|
|
234
|
+
>
|
|
235
|
+
</button>
|
|
236
|
+
<details
|
|
237
|
+
class="usx-popover usx-chat__directory-actions"
|
|
238
|
+
data-side="bottom"
|
|
239
|
+
data-align="end"
|
|
240
|
+
>
|
|
241
|
+
<summary
|
|
242
|
+
class="usa-button usx-button usa-button--unstyled"
|
|
243
|
+
aria-label="Actions for Morgan"
|
|
244
|
+
>
|
|
245
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
246
|
+
<use href="/img/sprite.svg#more_vert"></use>
|
|
247
|
+
</svg>
|
|
248
|
+
</summary>
|
|
249
|
+
<div
|
|
250
|
+
id="react-directory-contact-actions-recipient-agent-actions"
|
|
251
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
252
|
+
>
|
|
253
|
+
<ul class="usx-popover__menu">
|
|
254
|
+
<li>
|
|
255
|
+
<button
|
|
256
|
+
data-usx-chat-directory-action="delete-history"
|
|
257
|
+
data-usx-chat-conversation-id="support"
|
|
258
|
+
data-usx-chat-participant-id="agent"
|
|
259
|
+
type="button"
|
|
260
|
+
class="usx-popover__menu-item"
|
|
261
|
+
>
|
|
262
|
+
Delete chat history
|
|
263
|
+
</button>
|
|
264
|
+
</li>
|
|
265
|
+
</ul>
|
|
266
|
+
</div>
|
|
267
|
+
</details>
|
|
268
|
+
</li>
|
|
269
|
+
</ul>
|
|
270
|
+
</nav>
|
|
271
|
+
<button type="button" class="usa-button usx-button" data-usx-chat-new="">New message</button>
|
|
272
|
+
</div>
|
|
273
|
+
</section>
|
|
274
|
+
</div>
|
|
275
|
+
|
|
276
|
+
<h3 class="site-preview-heading">Recipient Picker</h3>
|
|
277
|
+
<div>
|
|
278
|
+
<section id="react-example-directory-recipientpicker" class="usx-chat" style="max-width: 28rem">
|
|
279
|
+
<div data-chat-view="contacts" class="usx-chat__window" style="height: auto">
|
|
280
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
281
|
+
<div class="usx-chat__directory" role="group" aria-label="Recipients">
|
|
282
|
+
<p class="usx-chat__recipient-hint">To: Choose one or more people.</p>
|
|
283
|
+
<ul class="usx-chat__directory-list">
|
|
284
|
+
<li>
|
|
285
|
+
<div class="usa-checkbox usx-checkbox usx-chat__directory-item usx-chat__recipient">
|
|
286
|
+
<input
|
|
287
|
+
id="react-directory-recipients-recipient-agent"
|
|
288
|
+
class="usa-checkbox__input"
|
|
289
|
+
type="checkbox"
|
|
290
|
+
name="recipientIds"
|
|
291
|
+
form="react-example-directory-recipientpicker-composer"
|
|
292
|
+
aria-label="Morgan"
|
|
293
|
+
aria-describedby="react-directory-recipients-recipient-agent-description"
|
|
294
|
+
data-usx-chat-recipient=""
|
|
295
|
+
checked=""
|
|
296
|
+
value="agent"
|
|
297
|
+
/><label
|
|
298
|
+
class="usa-checkbox__label usx-chat__recipient-label"
|
|
299
|
+
for="react-directory-recipients-recipient-agent"
|
|
300
|
+
><span class="usx-avatar usx-chat__avatar" aria-label="Morgan"
|
|
301
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
302
|
+
>M</span
|
|
303
|
+
></span
|
|
304
|
+
><span class="usx-chat__directory-copy"
|
|
305
|
+
><span class="usx-chat__directory-title">Morgan</span
|
|
306
|
+
><span
|
|
307
|
+
class="usx-chat__directory-subtitle"
|
|
308
|
+
id="react-directory-recipients-recipient-agent-description"
|
|
309
|
+
>Application support</span
|
|
310
|
+
></span
|
|
311
|
+
></label
|
|
312
|
+
>
|
|
313
|
+
</div>
|
|
314
|
+
</li>
|
|
315
|
+
<li>
|
|
316
|
+
<div class="usa-checkbox usx-checkbox usx-chat__directory-item usx-chat__recipient">
|
|
317
|
+
<input
|
|
318
|
+
id="react-directory-recipients-recipient-specialist"
|
|
319
|
+
class="usa-checkbox__input"
|
|
320
|
+
type="checkbox"
|
|
321
|
+
name="recipientIds"
|
|
322
|
+
form="react-example-directory-recipientpicker-composer"
|
|
323
|
+
aria-label="Taylor"
|
|
324
|
+
aria-describedby="react-directory-recipients-recipient-specialist-description"
|
|
325
|
+
data-usx-chat-recipient=""
|
|
326
|
+
value="specialist"
|
|
327
|
+
/><label
|
|
328
|
+
class="usa-checkbox__label usx-chat__recipient-label"
|
|
329
|
+
for="react-directory-recipients-recipient-specialist"
|
|
330
|
+
><span class="usx-avatar usx-chat__avatar" aria-label="Taylor"
|
|
331
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
332
|
+
>T</span
|
|
333
|
+
></span
|
|
334
|
+
><span class="usx-chat__directory-copy"
|
|
335
|
+
><span class="usx-chat__directory-title">Taylor</span
|
|
336
|
+
><span
|
|
337
|
+
class="usx-chat__directory-subtitle"
|
|
338
|
+
id="react-directory-recipients-recipient-specialist-description"
|
|
339
|
+
>Eligibility specialist</span
|
|
340
|
+
></span
|
|
341
|
+
></label
|
|
342
|
+
>
|
|
343
|
+
</div>
|
|
344
|
+
</li>
|
|
345
|
+
</ul>
|
|
346
|
+
</div>
|
|
347
|
+
<form
|
|
348
|
+
id="react-example-directory-recipientpicker-composer"
|
|
349
|
+
data-usx-chat-require-recipients="true"
|
|
350
|
+
class="usx-chat-composer usx-chat__composer"
|
|
351
|
+
method="post"
|
|
352
|
+
>
|
|
353
|
+
<label
|
|
354
|
+
class="usa-label usx-label usa-sr-only"
|
|
355
|
+
for="react-example-directory-recipientpicker-message"
|
|
356
|
+
>Message</label
|
|
357
|
+
><textarea
|
|
358
|
+
id="react-example-directory-recipientpicker-message"
|
|
359
|
+
class="usa-textarea usx-textarea"
|
|
360
|
+
placeholder="Write a message"
|
|
361
|
+
name="message"
|
|
362
|
+
rows="2"
|
|
363
|
+
></textarea>
|
|
364
|
+
<div class="usx-chat__composer-actions">
|
|
365
|
+
<div class="usx-chat__attach"></div>
|
|
366
|
+
<button
|
|
367
|
+
type="submit"
|
|
368
|
+
class="usa-button usx-button usa-button--primary usx-chat__send"
|
|
369
|
+
disabled=""
|
|
370
|
+
aria-disabled="true"
|
|
371
|
+
>
|
|
372
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
373
|
+
<use href="/img/sprite.svg#send"></use></svg
|
|
374
|
+
>Send
|
|
375
|
+
</button>
|
|
376
|
+
</div>
|
|
377
|
+
</form>
|
|
378
|
+
</div>
|
|
379
|
+
</section>
|
|
380
|
+
</div>
|
|
381
|
+
|
|
382
|
+
<h3 class="site-preview-heading">Contextual Inbox</h3>
|
|
383
|
+
<div>
|
|
384
|
+
<section id="react-example-directory-contextualinbox" class="usx-chat" style="max-width: 28rem">
|
|
385
|
+
<div data-chat-view="inbox" class="usx-chat__window" style="height: auto">
|
|
386
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
387
|
+
<nav class="usx-chat__directory" aria-label="Conversations">
|
|
388
|
+
<ul class="usx-chat__directory-list">
|
|
389
|
+
<li class="usx-chat__directory-row">
|
|
390
|
+
<button
|
|
391
|
+
type="button"
|
|
392
|
+
class="usx-clickable usx-chat__directory-item"
|
|
393
|
+
data-usx-chat-conversation="request"
|
|
394
|
+
>
|
|
395
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Support"
|
|
396
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
397
|
+
>S</span
|
|
398
|
+
></span
|
|
399
|
+
><span class="usx-chat__directory-copy"
|
|
400
|
+
><span class="usx-chat__directory-title">Support</span
|
|
401
|
+
><span class="usx-chat__directory-subtitle">Access request</span
|
|
402
|
+
><span class="usx-chat__directory-preview">Your request is ready.</span></span
|
|
403
|
+
>
|
|
404
|
+
</button>
|
|
405
|
+
<details
|
|
406
|
+
class="usx-popover usx-chat__directory-actions"
|
|
407
|
+
data-side="bottom"
|
|
408
|
+
data-align="end"
|
|
409
|
+
>
|
|
410
|
+
<summary
|
|
411
|
+
class="usa-button usx-button usa-button--unstyled"
|
|
412
|
+
aria-label="Actions for Support"
|
|
413
|
+
>
|
|
414
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
415
|
+
<use href="/img/sprite.svg#more_vert"></use>
|
|
416
|
+
</svg>
|
|
417
|
+
</summary>
|
|
418
|
+
<div
|
|
419
|
+
id="react-directory-contextual-conversation-request-actions"
|
|
420
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
421
|
+
>
|
|
422
|
+
<ul class="usx-popover__menu">
|
|
423
|
+
<li>
|
|
424
|
+
<button
|
|
425
|
+
data-usx-chat-directory-action="delete-history"
|
|
426
|
+
data-usx-chat-conversation-id="request"
|
|
427
|
+
type="button"
|
|
428
|
+
class="usx-popover__menu-item"
|
|
429
|
+
>
|
|
430
|
+
Delete history
|
|
431
|
+
</button>
|
|
432
|
+
</li>
|
|
433
|
+
</ul>
|
|
434
|
+
</div>
|
|
435
|
+
</details>
|
|
436
|
+
</li>
|
|
437
|
+
<li>
|
|
438
|
+
<a class="usx-clickable usx-chat__directory-item" href="#conversation-listing"
|
|
439
|
+
><span class="usx-avatar usx-chat__avatar" aria-label="Jordan"
|
|
440
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
441
|
+
>J</span
|
|
442
|
+
></span
|
|
443
|
+
><span class="usx-chat__directory-copy"
|
|
444
|
+
><span class="usx-chat__directory-title">Jordan</span
|
|
445
|
+
><span class="usx-chat__directory-subtitle">Blue commuter bicycle</span
|
|
446
|
+
><span class="usx-chat__directory-preview">Available this weekend.</span></span
|
|
447
|
+
></a
|
|
448
|
+
>
|
|
449
|
+
</li>
|
|
450
|
+
<li>
|
|
451
|
+
<button
|
|
452
|
+
type="button"
|
|
453
|
+
class="usx-clickable usx-chat__directory-item"
|
|
454
|
+
data-usx-chat-conversation="note"
|
|
455
|
+
>
|
|
456
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Updates"
|
|
457
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
458
|
+
>U</span
|
|
459
|
+
></span
|
|
460
|
+
><span class="usx-chat__directory-copy"
|
|
461
|
+
><span class="usx-chat__directory-title">Updates</span
|
|
462
|
+
><span class="usx-chat__directory-subtitle">General questions</span></span
|
|
463
|
+
>
|
|
464
|
+
</button>
|
|
465
|
+
</li>
|
|
466
|
+
</ul>
|
|
467
|
+
</nav>
|
|
468
|
+
<button type="button" class="usa-button usx-button" data-usx-chat-new="">New message</button>
|
|
469
|
+
</div>
|
|
470
|
+
</section>
|
|
471
|
+
</div>
|