@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,627 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<div>
|
|
3
|
+
<section id="react-example-message-default" class="usx-chat" style="max-width: 28rem">
|
|
4
|
+
<div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
|
|
5
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
6
|
+
<ol class="usx-chat__messages">
|
|
7
|
+
<li
|
|
8
|
+
class="usx-chat__message usx-chat__message--single"
|
|
9
|
+
data-message-id="m1"
|
|
10
|
+
data-sender-name="Avery"
|
|
11
|
+
data-export-text="Your appointment is confirmed."
|
|
12
|
+
>
|
|
13
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Avery"
|
|
14
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
15
|
+
>A</span
|
|
16
|
+
></span
|
|
17
|
+
>
|
|
18
|
+
<div class="usx-chat__message-body">
|
|
19
|
+
<span class="usx-chat__sender">Avery</span>
|
|
20
|
+
<div class="usx-chat__bubble"><p>Your appointment is confirmed.</p></div>
|
|
21
|
+
<div class="usx-chat__message-footer">
|
|
22
|
+
<time class="usx-chat__time" datetime="2026-08-21T10:30:00Z">10:30 AM</time>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</li>
|
|
26
|
+
</ol>
|
|
27
|
+
</div>
|
|
28
|
+
</section>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<h3 class="site-preview-heading">Outgoing</h3>
|
|
32
|
+
<div>
|
|
33
|
+
<section id="react-example-message-outgoing" class="usx-chat" style="max-width: 28rem">
|
|
34
|
+
<div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
|
|
35
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
36
|
+
<ol class="usx-chat__messages">
|
|
37
|
+
<li
|
|
38
|
+
class="usx-chat__message usx-chat__message--single usx-chat__message--own"
|
|
39
|
+
data-message-id="m2"
|
|
40
|
+
data-sender-name="Avery"
|
|
41
|
+
data-export-text="Thank you!"
|
|
42
|
+
>
|
|
43
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Avery"
|
|
44
|
+
><span class="usx-avatar__content usx-circle bg-base-light text-base-dark"
|
|
45
|
+
>A</span
|
|
46
|
+
></span
|
|
47
|
+
>
|
|
48
|
+
<div class="usx-chat__message-body">
|
|
49
|
+
<span class="usx-chat__sender">Avery</span>
|
|
50
|
+
<div class="usx-chat__bubble"><p>Thank you!</p></div>
|
|
51
|
+
<div class="usx-chat__message-footer">
|
|
52
|
+
<time class="usx-chat__time" datetime="2026-08-21T10:30:00Z">10:30 AM</time
|
|
53
|
+
><span class="usx-chat__message-meta">Edited · Read</span>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</li>
|
|
57
|
+
</ol>
|
|
58
|
+
</div>
|
|
59
|
+
</section>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<h3 class="site-preview-heading">With Actions</h3>
|
|
63
|
+
<div>
|
|
64
|
+
<section id="react-example-message-withactions" class="usx-chat" style="max-width: 28rem">
|
|
65
|
+
<div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
|
|
66
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
67
|
+
<ol class="usx-chat__messages">
|
|
68
|
+
<li
|
|
69
|
+
class="usx-chat__message usx-chat__message--single"
|
|
70
|
+
data-message-id="m1"
|
|
71
|
+
data-sender-name="Avery"
|
|
72
|
+
data-export-text="Your appointment is confirmed."
|
|
73
|
+
>
|
|
74
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Avery"
|
|
75
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
76
|
+
>A</span
|
|
77
|
+
></span
|
|
78
|
+
>
|
|
79
|
+
<div class="usx-chat__message-body">
|
|
80
|
+
<span class="usx-chat__sender">Avery</span>
|
|
81
|
+
<div class="usx-chat__bubble">
|
|
82
|
+
<p>Your appointment is confirmed.</p>
|
|
83
|
+
<div role="group" aria-label="Reactions" class="usx-tag-group usx-chat__reactions">
|
|
84
|
+
<button
|
|
85
|
+
type="button"
|
|
86
|
+
class="usa-button usx-button usa-button--unstyled usa-tag usx-tag usx-tag--outline usx-tag--interactive usa-link usx-link usx-no-visited usx-chat__reaction"
|
|
87
|
+
aria-pressed="true"
|
|
88
|
+
aria-label="Helpful, 2"
|
|
89
|
+
data-usx-chat-reaction="Helpful"
|
|
90
|
+
>
|
|
91
|
+
👍 2
|
|
92
|
+
</button>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="usx-chat__message-footer">
|
|
96
|
+
<time class="usx-chat__time" datetime="2026-08-21T10:30:00Z">10:30 AM</time
|
|
97
|
+
><button
|
|
98
|
+
type="button"
|
|
99
|
+
class="usa-button usx-button usa-button--unstyled usx-chat__thread-link"
|
|
100
|
+
data-usx-chat-thread="m1"
|
|
101
|
+
>
|
|
102
|
+
3 replies
|
|
103
|
+
</button>
|
|
104
|
+
</div>
|
|
105
|
+
<div
|
|
106
|
+
class="usx-chat__message-tools"
|
|
107
|
+
role="group"
|
|
108
|
+
aria-label="Actions for message from Avery"
|
|
109
|
+
>
|
|
110
|
+
<details
|
|
111
|
+
class="usx-popover usx-chat__message-actions usx-chat__reaction-actions"
|
|
112
|
+
data-side="top"
|
|
113
|
+
data-align="end"
|
|
114
|
+
>
|
|
115
|
+
<summary
|
|
116
|
+
class="usa-button usx-button usa-button--unstyled"
|
|
117
|
+
aria-label="React to message from Avery"
|
|
118
|
+
title="Add reaction"
|
|
119
|
+
>
|
|
120
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
121
|
+
<use href="/img/sprite.svg#sentiment_satisfied"></use>
|
|
122
|
+
</svg>
|
|
123
|
+
</summary>
|
|
124
|
+
<div
|
|
125
|
+
id="react-message-reactions-m1"
|
|
126
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
127
|
+
>
|
|
128
|
+
<ul class="usx-popover__menu">
|
|
129
|
+
<li>
|
|
130
|
+
<button
|
|
131
|
+
aria-label="Helpful"
|
|
132
|
+
title="Helpful"
|
|
133
|
+
aria-pressed="true"
|
|
134
|
+
data-usx-chat-reaction="Helpful"
|
|
135
|
+
type="button"
|
|
136
|
+
class="usx-popover__menu-item"
|
|
137
|
+
>
|
|
138
|
+
👍
|
|
139
|
+
</button>
|
|
140
|
+
</li>
|
|
141
|
+
<li>
|
|
142
|
+
<button
|
|
143
|
+
aria-label="Thanks"
|
|
144
|
+
title="Thanks"
|
|
145
|
+
aria-pressed="false"
|
|
146
|
+
data-usx-chat-reaction="Thanks"
|
|
147
|
+
type="button"
|
|
148
|
+
class="usx-popover__menu-item"
|
|
149
|
+
>
|
|
150
|
+
❤️
|
|
151
|
+
</button>
|
|
152
|
+
</li>
|
|
153
|
+
</ul>
|
|
154
|
+
</div>
|
|
155
|
+
</details>
|
|
156
|
+
<button
|
|
157
|
+
type="button"
|
|
158
|
+
class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
|
|
159
|
+
title="Reply in thread"
|
|
160
|
+
aria-label="Reply in thread to message from Avery"
|
|
161
|
+
data-usx-chat-thread="m1"
|
|
162
|
+
>
|
|
163
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
164
|
+
<use href="/img/sprite.svg#comment"></use>
|
|
165
|
+
</svg></button
|
|
166
|
+
><button
|
|
167
|
+
type="button"
|
|
168
|
+
class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
|
|
169
|
+
title="Forward message"
|
|
170
|
+
aria-label="Forward message from Avery"
|
|
171
|
+
data-usx-chat-forward="m1"
|
|
172
|
+
>
|
|
173
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
174
|
+
<use href="/img/sprite.svg#arrow_forward"></use>
|
|
175
|
+
</svg>
|
|
176
|
+
</button>
|
|
177
|
+
<details
|
|
178
|
+
class="usx-popover usx-chat__message-actions usx-chat__overflow-actions"
|
|
179
|
+
data-side="top"
|
|
180
|
+
data-align="end"
|
|
181
|
+
>
|
|
182
|
+
<summary
|
|
183
|
+
class="usa-button usx-button usa-button--unstyled"
|
|
184
|
+
aria-label="More actions for message from Avery"
|
|
185
|
+
title="More actions"
|
|
186
|
+
>
|
|
187
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
188
|
+
<use href="/img/sprite.svg#more_horiz"></use>
|
|
189
|
+
</svg>
|
|
190
|
+
</summary>
|
|
191
|
+
<div
|
|
192
|
+
id="react-message-actions-m1"
|
|
193
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
194
|
+
>
|
|
195
|
+
<ul class="usx-popover__menu">
|
|
196
|
+
<li>
|
|
197
|
+
<button
|
|
198
|
+
data-usx-chat-copy-message=""
|
|
199
|
+
type="button"
|
|
200
|
+
class="usx-popover__menu-item"
|
|
201
|
+
>
|
|
202
|
+
<svg
|
|
203
|
+
class="usa-icon usx-icon"
|
|
204
|
+
aria-hidden="true"
|
|
205
|
+
focusable="false"
|
|
206
|
+
role="img"
|
|
207
|
+
>
|
|
208
|
+
<use href="/img/sprite.svg#content_copy"></use></svg
|
|
209
|
+
>Copy message
|
|
210
|
+
</button>
|
|
211
|
+
</li>
|
|
212
|
+
</ul>
|
|
213
|
+
</div>
|
|
214
|
+
</details>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</li>
|
|
218
|
+
</ol>
|
|
219
|
+
</div>
|
|
220
|
+
</section>
|
|
221
|
+
</div>
|
|
222
|
+
|
|
223
|
+
<h3 class="site-preview-heading">Sending</h3>
|
|
224
|
+
<div>
|
|
225
|
+
<section id="react-example-message-sending" class="usx-chat" style="max-width: 28rem">
|
|
226
|
+
<div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
|
|
227
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
228
|
+
<ol class="usx-chat__messages">
|
|
229
|
+
<li
|
|
230
|
+
class="usx-chat__message usx-chat__message--single usx-chat__message--own"
|
|
231
|
+
data-message-id="m1"
|
|
232
|
+
data-usx-chat-delivery-state="sending"
|
|
233
|
+
data-sender-name="Avery"
|
|
234
|
+
data-export-text="Your appointment is confirmed."
|
|
235
|
+
>
|
|
236
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Avery"
|
|
237
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
238
|
+
>A</span
|
|
239
|
+
></span
|
|
240
|
+
>
|
|
241
|
+
<div class="usx-chat__message-body">
|
|
242
|
+
<span class="usx-chat__sender">Avery</span>
|
|
243
|
+
<div class="usx-chat__bubble"><p>Your appointment is confirmed.</p></div>
|
|
244
|
+
<div class="usx-chat__message-footer">
|
|
245
|
+
<time class="usx-chat__time" datetime="2026-08-21T10:30:00Z">10:30 AM</time
|
|
246
|
+
><span class="usx-chat__message-meta">Sending…</span>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
</li>
|
|
250
|
+
</ol>
|
|
251
|
+
</div>
|
|
252
|
+
</section>
|
|
253
|
+
</div>
|
|
254
|
+
|
|
255
|
+
<h3 class="site-preview-heading">Failed</h3>
|
|
256
|
+
<div>
|
|
257
|
+
<section id="react-example-message-failed" class="usx-chat" style="max-width: 28rem">
|
|
258
|
+
<div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
|
|
259
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
260
|
+
<ol class="usx-chat__messages">
|
|
261
|
+
<li
|
|
262
|
+
class="usx-chat__message usx-chat__message--single usx-chat__message--own usx-chat__message--failed"
|
|
263
|
+
data-message-id="m1"
|
|
264
|
+
data-usx-chat-delivery-state="failed"
|
|
265
|
+
data-sender-name="Avery"
|
|
266
|
+
data-export-text="Your appointment is confirmed."
|
|
267
|
+
>
|
|
268
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Avery"
|
|
269
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
270
|
+
>A</span
|
|
271
|
+
></span
|
|
272
|
+
>
|
|
273
|
+
<div class="usx-chat__message-body">
|
|
274
|
+
<span class="usx-chat__sender">Avery</span>
|
|
275
|
+
<div class="usx-chat__bubble"><p>Your appointment is confirmed.</p></div>
|
|
276
|
+
<div
|
|
277
|
+
class="usa-alert usx-alert usa-alert--error usa-alert--slim usa-alert--no-icon usx-chat__delivery-error"
|
|
278
|
+
role="alert"
|
|
279
|
+
>
|
|
280
|
+
<div class="usa-alert__body">
|
|
281
|
+
<div class="usa-alert__text">
|
|
282
|
+
<span>Message not sent.</span
|
|
283
|
+
><button
|
|
284
|
+
type="button"
|
|
285
|
+
class="usa-button usx-button usa-button--unstyled usx-chat__retry"
|
|
286
|
+
aria-label="Retry sending message"
|
|
287
|
+
data-usx-chat-retry="m1"
|
|
288
|
+
>
|
|
289
|
+
Retry
|
|
290
|
+
</button>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
<div class="usx-chat__message-footer">
|
|
295
|
+
<time class="usx-chat__time" datetime="2026-08-21T10:30:00Z">10:30 AM</time>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
</li>
|
|
299
|
+
</ol>
|
|
300
|
+
</div>
|
|
301
|
+
</section>
|
|
302
|
+
</div>
|
|
303
|
+
|
|
304
|
+
<h3 class="site-preview-heading">Unknown Sender</h3>
|
|
305
|
+
<div>
|
|
306
|
+
<section id="react-example-message-unknownsender" class="usx-chat" style="max-width: 28rem">
|
|
307
|
+
<div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
|
|
308
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
309
|
+
<ol class="usx-chat__messages">
|
|
310
|
+
<li
|
|
311
|
+
class="usx-chat__message usx-chat__message--single"
|
|
312
|
+
data-message-id="m1"
|
|
313
|
+
data-sender-name="Support"
|
|
314
|
+
data-export-text="Your appointment is confirmed."
|
|
315
|
+
>
|
|
316
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Support"
|
|
317
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
318
|
+
>S</span
|
|
319
|
+
></span
|
|
320
|
+
>
|
|
321
|
+
<div class="usx-chat__message-body">
|
|
322
|
+
<span class="usx-chat__sender">Support</span>
|
|
323
|
+
<div class="usx-chat__bubble"><p>Your appointment is confirmed.</p></div>
|
|
324
|
+
<div class="usx-chat__message-footer">
|
|
325
|
+
<time class="usx-chat__time" datetime="2026-08-21T10:30:00Z">10:30 AM</time>
|
|
326
|
+
</div>
|
|
327
|
+
</div>
|
|
328
|
+
</li>
|
|
329
|
+
</ol>
|
|
330
|
+
</div>
|
|
331
|
+
</section>
|
|
332
|
+
</div>
|
|
333
|
+
|
|
334
|
+
<h3 class="site-preview-heading">Grouped</h3>
|
|
335
|
+
<div>
|
|
336
|
+
<section id="react-example-message-grouped" class="usx-chat" style="max-width: 28rem">
|
|
337
|
+
<div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
|
|
338
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
339
|
+
<ol class="usx-chat__messages">
|
|
340
|
+
<li
|
|
341
|
+
class="usx-chat__message usx-chat__message--first"
|
|
342
|
+
data-message-id="group-0"
|
|
343
|
+
data-sender-name="Avery"
|
|
344
|
+
data-export-text="Your appointment is confirmed."
|
|
345
|
+
>
|
|
346
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Avery"
|
|
347
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
348
|
+
>A</span
|
|
349
|
+
></span
|
|
350
|
+
>
|
|
351
|
+
<div class="usx-chat__message-body">
|
|
352
|
+
<span class="usx-chat__sender">Avery</span>
|
|
353
|
+
<div class="usx-chat__bubble"><p>Your appointment is confirmed.</p></div>
|
|
354
|
+
<time class="usx-chat__time usa-sr-only" datetime="2026-08-21T10:30:00Z">10:30 AM</time>
|
|
355
|
+
</div>
|
|
356
|
+
</li>
|
|
357
|
+
<li
|
|
358
|
+
class="usx-chat__message usx-chat__message--middle"
|
|
359
|
+
data-message-id="group-1"
|
|
360
|
+
data-sender-name="Avery"
|
|
361
|
+
data-export-text="Please bring a photo ID."
|
|
362
|
+
>
|
|
363
|
+
<span class="usx-chat__avatar-space" aria-hidden="true"></span>
|
|
364
|
+
<div class="usx-chat__message-body">
|
|
365
|
+
<div class="usx-chat__bubble"><p>Please bring a photo ID.</p></div>
|
|
366
|
+
<time class="usx-chat__time usa-sr-only" datetime="2026-08-21T10:30:00Z">10:30 AM</time>
|
|
367
|
+
</div>
|
|
368
|
+
</li>
|
|
369
|
+
<li
|
|
370
|
+
class="usx-chat__message usx-chat__message--last"
|
|
371
|
+
data-message-id="group-2"
|
|
372
|
+
data-sender-name="Avery"
|
|
373
|
+
data-export-text="See you Tuesday!"
|
|
374
|
+
>
|
|
375
|
+
<span class="usx-chat__avatar-space" aria-hidden="true"></span>
|
|
376
|
+
<div class="usx-chat__message-body">
|
|
377
|
+
<div class="usx-chat__bubble"><p>See you Tuesday!</p></div>
|
|
378
|
+
<div class="usx-chat__message-footer">
|
|
379
|
+
<time class="usx-chat__time" datetime="2026-08-21T10:30:00Z">10:30 AM</time>
|
|
380
|
+
</div>
|
|
381
|
+
</div>
|
|
382
|
+
</li>
|
|
383
|
+
</ol>
|
|
384
|
+
</div>
|
|
385
|
+
</section>
|
|
386
|
+
</div>
|
|
387
|
+
|
|
388
|
+
<h3 class="site-preview-heading">Short Messages</h3>
|
|
389
|
+
<div>
|
|
390
|
+
<section id="react-example-message-shortmessages" class="usx-chat" style="max-width: 28rem">
|
|
391
|
+
<div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
|
|
392
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
393
|
+
<ol class="usx-chat__messages">
|
|
394
|
+
<li
|
|
395
|
+
class="usx-chat__message usx-chat__message--single"
|
|
396
|
+
data-message-id="short"
|
|
397
|
+
data-sender-name="Avery"
|
|
398
|
+
data-export-text="OK"
|
|
399
|
+
>
|
|
400
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Avery"
|
|
401
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
402
|
+
>A</span
|
|
403
|
+
></span
|
|
404
|
+
>
|
|
405
|
+
<div class="usx-chat__message-body">
|
|
406
|
+
<span class="usx-chat__sender">Avery</span>
|
|
407
|
+
<div class="usx-chat__bubble"><p>OK</p></div>
|
|
408
|
+
<div
|
|
409
|
+
class="usx-chat__message-tools"
|
|
410
|
+
role="group"
|
|
411
|
+
aria-label="Actions for message from Avery"
|
|
412
|
+
>
|
|
413
|
+
<details
|
|
414
|
+
class="usx-popover usx-chat__message-actions usx-chat__reaction-actions"
|
|
415
|
+
data-side="top"
|
|
416
|
+
data-align="end"
|
|
417
|
+
>
|
|
418
|
+
<summary
|
|
419
|
+
class="usa-button usx-button usa-button--unstyled"
|
|
420
|
+
aria-label="React to message from Avery"
|
|
421
|
+
title="Add reaction"
|
|
422
|
+
>
|
|
423
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
424
|
+
<use href="/img/sprite.svg#sentiment_satisfied"></use>
|
|
425
|
+
</svg>
|
|
426
|
+
</summary>
|
|
427
|
+
<div
|
|
428
|
+
id="react-short-message-reactions-short"
|
|
429
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
430
|
+
>
|
|
431
|
+
<ul class="usx-popover__menu">
|
|
432
|
+
<li>
|
|
433
|
+
<button
|
|
434
|
+
aria-label="Helpful"
|
|
435
|
+
title="Helpful"
|
|
436
|
+
aria-pressed="false"
|
|
437
|
+
data-usx-chat-reaction="Helpful"
|
|
438
|
+
type="button"
|
|
439
|
+
class="usx-popover__menu-item"
|
|
440
|
+
>
|
|
441
|
+
👍
|
|
442
|
+
</button>
|
|
443
|
+
</li>
|
|
444
|
+
</ul>
|
|
445
|
+
</div>
|
|
446
|
+
</details>
|
|
447
|
+
<button
|
|
448
|
+
type="button"
|
|
449
|
+
class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
|
|
450
|
+
title="Reply in thread"
|
|
451
|
+
aria-label="Reply in thread to message from Avery"
|
|
452
|
+
data-usx-chat-thread="short"
|
|
453
|
+
>
|
|
454
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
455
|
+
<use href="/img/sprite.svg#comment"></use>
|
|
456
|
+
</svg></button
|
|
457
|
+
><button
|
|
458
|
+
type="button"
|
|
459
|
+
class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
|
|
460
|
+
title="Forward message"
|
|
461
|
+
aria-label="Forward message from Avery"
|
|
462
|
+
data-usx-chat-forward="short"
|
|
463
|
+
>
|
|
464
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
465
|
+
<use href="/img/sprite.svg#arrow_forward"></use>
|
|
466
|
+
</svg>
|
|
467
|
+
</button>
|
|
468
|
+
<details
|
|
469
|
+
class="usx-popover usx-chat__message-actions usx-chat__overflow-actions"
|
|
470
|
+
data-side="top"
|
|
471
|
+
data-align="end"
|
|
472
|
+
>
|
|
473
|
+
<summary
|
|
474
|
+
class="usa-button usx-button usa-button--unstyled"
|
|
475
|
+
aria-label="More actions for message from Avery"
|
|
476
|
+
title="More actions"
|
|
477
|
+
>
|
|
478
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
479
|
+
<use href="/img/sprite.svg#more_horiz"></use>
|
|
480
|
+
</svg>
|
|
481
|
+
</summary>
|
|
482
|
+
<div
|
|
483
|
+
id="react-short-message-actions-short"
|
|
484
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
485
|
+
>
|
|
486
|
+
<ul class="usx-popover__menu">
|
|
487
|
+
<li>
|
|
488
|
+
<button
|
|
489
|
+
data-usx-chat-copy-message=""
|
|
490
|
+
type="button"
|
|
491
|
+
class="usx-popover__menu-item"
|
|
492
|
+
>
|
|
493
|
+
<svg
|
|
494
|
+
class="usa-icon usx-icon"
|
|
495
|
+
aria-hidden="true"
|
|
496
|
+
focusable="false"
|
|
497
|
+
role="img"
|
|
498
|
+
>
|
|
499
|
+
<use href="/img/sprite.svg#content_copy"></use></svg
|
|
500
|
+
>Copy message
|
|
501
|
+
</button>
|
|
502
|
+
</li>
|
|
503
|
+
</ul>
|
|
504
|
+
</div>
|
|
505
|
+
</details>
|
|
506
|
+
</div>
|
|
507
|
+
</div>
|
|
508
|
+
</li>
|
|
509
|
+
<li
|
|
510
|
+
class="usx-chat__message usx-chat__message--single usx-chat__message--own"
|
|
511
|
+
data-message-id="short-own"
|
|
512
|
+
data-sender-name="Avery"
|
|
513
|
+
data-export-text="OK"
|
|
514
|
+
>
|
|
515
|
+
<span class="usx-avatar usx-chat__avatar" aria-label="Avery"
|
|
516
|
+
><span class="usx-avatar__content usx-circle bg-primary-light text-inverse"
|
|
517
|
+
>A</span
|
|
518
|
+
></span
|
|
519
|
+
>
|
|
520
|
+
<div class="usx-chat__message-body">
|
|
521
|
+
<span class="usx-chat__sender">Avery</span>
|
|
522
|
+
<div class="usx-chat__bubble"><p>OK</p></div>
|
|
523
|
+
<div
|
|
524
|
+
class="usx-chat__message-tools"
|
|
525
|
+
role="group"
|
|
526
|
+
aria-label="Actions for message from Avery"
|
|
527
|
+
>
|
|
528
|
+
<details
|
|
529
|
+
class="usx-popover usx-chat__message-actions usx-chat__reaction-actions"
|
|
530
|
+
data-side="top"
|
|
531
|
+
data-align="end"
|
|
532
|
+
>
|
|
533
|
+
<summary
|
|
534
|
+
class="usa-button usx-button usa-button--unstyled"
|
|
535
|
+
aria-label="React to message from Avery"
|
|
536
|
+
title="Add reaction"
|
|
537
|
+
>
|
|
538
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
539
|
+
<use href="/img/sprite.svg#sentiment_satisfied"></use>
|
|
540
|
+
</svg>
|
|
541
|
+
</summary>
|
|
542
|
+
<div
|
|
543
|
+
id="react-short-message-reactions-short-own"
|
|
544
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
545
|
+
>
|
|
546
|
+
<ul class="usx-popover__menu">
|
|
547
|
+
<li>
|
|
548
|
+
<button
|
|
549
|
+
aria-label="Helpful"
|
|
550
|
+
title="Helpful"
|
|
551
|
+
aria-pressed="false"
|
|
552
|
+
data-usx-chat-reaction="Helpful"
|
|
553
|
+
type="button"
|
|
554
|
+
class="usx-popover__menu-item"
|
|
555
|
+
>
|
|
556
|
+
👍
|
|
557
|
+
</button>
|
|
558
|
+
</li>
|
|
559
|
+
</ul>
|
|
560
|
+
</div>
|
|
561
|
+
</details>
|
|
562
|
+
<button
|
|
563
|
+
type="button"
|
|
564
|
+
class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
|
|
565
|
+
title="Reply in thread"
|
|
566
|
+
aria-label="Reply in thread to message from Avery"
|
|
567
|
+
data-usx-chat-thread="short-own"
|
|
568
|
+
>
|
|
569
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
570
|
+
<use href="/img/sprite.svg#comment"></use>
|
|
571
|
+
</svg></button
|
|
572
|
+
><button
|
|
573
|
+
type="button"
|
|
574
|
+
class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
|
|
575
|
+
title="Forward message"
|
|
576
|
+
aria-label="Forward message from Avery"
|
|
577
|
+
data-usx-chat-forward="short-own"
|
|
578
|
+
>
|
|
579
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
580
|
+
<use href="/img/sprite.svg#arrow_forward"></use>
|
|
581
|
+
</svg>
|
|
582
|
+
</button>
|
|
583
|
+
<details
|
|
584
|
+
class="usx-popover usx-chat__message-actions usx-chat__overflow-actions"
|
|
585
|
+
data-side="top"
|
|
586
|
+
data-align="end"
|
|
587
|
+
>
|
|
588
|
+
<summary
|
|
589
|
+
class="usa-button usx-button usa-button--unstyled"
|
|
590
|
+
aria-label="More actions for message from Avery"
|
|
591
|
+
title="More actions"
|
|
592
|
+
>
|
|
593
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
594
|
+
<use href="/img/sprite.svg#more_horiz"></use>
|
|
595
|
+
</svg>
|
|
596
|
+
</summary>
|
|
597
|
+
<div
|
|
598
|
+
id="react-short-message-actions-short-own"
|
|
599
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
600
|
+
>
|
|
601
|
+
<ul class="usx-popover__menu">
|
|
602
|
+
<li>
|
|
603
|
+
<button
|
|
604
|
+
data-usx-chat-copy-message=""
|
|
605
|
+
type="button"
|
|
606
|
+
class="usx-popover__menu-item"
|
|
607
|
+
>
|
|
608
|
+
<svg
|
|
609
|
+
class="usa-icon usx-icon"
|
|
610
|
+
aria-hidden="true"
|
|
611
|
+
focusable="false"
|
|
612
|
+
role="img"
|
|
613
|
+
>
|
|
614
|
+
<use href="/img/sprite.svg#content_copy"></use></svg
|
|
615
|
+
>Copy message
|
|
616
|
+
</button>
|
|
617
|
+
</li>
|
|
618
|
+
</ul>
|
|
619
|
+
</div>
|
|
620
|
+
</details>
|
|
621
|
+
</div>
|
|
622
|
+
</div>
|
|
623
|
+
</li>
|
|
624
|
+
</ol>
|
|
625
|
+
</div>
|
|
626
|
+
</section>
|
|
627
|
+
</div>
|