@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,345 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<div>
|
|
3
|
+
<section id="django-example-message-actions-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 data-message-id="m1" data-sender-name="Avery">
|
|
8
|
+
<div class="usx-chat__bubble">
|
|
9
|
+
<p>Your appointment is confirmed.</p>
|
|
10
|
+
<div role="group" aria-label="Reactions" class="usx-tag-group usx-chat__reactions">
|
|
11
|
+
<button
|
|
12
|
+
type="button"
|
|
13
|
+
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"
|
|
14
|
+
aria-pressed="true"
|
|
15
|
+
aria-label="Helpful, 2"
|
|
16
|
+
data-usx-chat-reaction="Helpful"
|
|
17
|
+
>
|
|
18
|
+
👍 2
|
|
19
|
+
</button>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div
|
|
23
|
+
class="usx-chat__message-tools"
|
|
24
|
+
role="group"
|
|
25
|
+
aria-label="Actions for message from Avery"
|
|
26
|
+
>
|
|
27
|
+
<!-- prettier-ignore -->
|
|
28
|
+
<details
|
|
29
|
+
|
|
30
|
+
class="usx-popover usx-chat__message-actions usx-chat__reaction-actions"
|
|
31
|
+
data-side="top"
|
|
32
|
+
data-align="end"
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
>
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
<summary class="usa-button usx-button usa-button--unstyled" aria-label="React to message from Avery" title="Add reaction">
|
|
39
|
+
|
|
40
|
+
<svg
|
|
41
|
+
class="
|
|
42
|
+
usa-icon usx-icon
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
"
|
|
47
|
+
|
|
48
|
+
aria-hidden="true"
|
|
49
|
+
focusable="false"
|
|
50
|
+
role="img"
|
|
51
|
+
>
|
|
52
|
+
|
|
53
|
+
<use href="img/sprite.svg#sentiment_satisfied"></use>
|
|
54
|
+
|
|
55
|
+
</svg></summary>
|
|
56
|
+
|
|
57
|
+
<div
|
|
58
|
+
id="django-tools-default-reactions-m1"
|
|
59
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
60
|
+
><ul class="usx-popover__menu"><li><button
|
|
61
|
+
type="button"
|
|
62
|
+
class="usx-popover__menu-item"
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
data-usx-chat-reaction="Helpful"aria-label="Helpful"title="Helpful"aria-pressed="true"
|
|
66
|
+
>
|
|
67
|
+
|
|
68
|
+
👍
|
|
69
|
+
</button></li><li><button
|
|
70
|
+
type="button"
|
|
71
|
+
class="usx-popover__menu-item"
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
data-usx-chat-reaction="Thanks"aria-label="Thanks"title="Thanks"aria-pressed="false"
|
|
75
|
+
>
|
|
76
|
+
|
|
77
|
+
❤️
|
|
78
|
+
</button></li></ul>
|
|
79
|
+
</div></details>
|
|
80
|
+
|
|
81
|
+
<button
|
|
82
|
+
type="button"
|
|
83
|
+
class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
|
|
84
|
+
title="Reply in thread"
|
|
85
|
+
aria-label="Reply in thread to message from Avery"
|
|
86
|
+
data-usx-chat-thread="m1"
|
|
87
|
+
>
|
|
88
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
89
|
+
<use href="img/sprite.svg#comment"></use>
|
|
90
|
+
</svg>
|
|
91
|
+
</button>
|
|
92
|
+
|
|
93
|
+
<button
|
|
94
|
+
type="button"
|
|
95
|
+
class="usa-button usx-button usa-button--unstyled usx-chat__tool-button"
|
|
96
|
+
title="Forward message"
|
|
97
|
+
aria-label="Forward message from Avery"
|
|
98
|
+
data-usx-chat-forward="m1"
|
|
99
|
+
>
|
|
100
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
101
|
+
<use href="img/sprite.svg#arrow_forward"></use>
|
|
102
|
+
</svg>
|
|
103
|
+
</button>
|
|
104
|
+
|
|
105
|
+
<!-- prettier-ignore -->
|
|
106
|
+
<details
|
|
107
|
+
|
|
108
|
+
class="usx-popover usx-chat__message-actions usx-chat__overflow-actions"
|
|
109
|
+
data-side="top"
|
|
110
|
+
data-align="end"
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
<summary class="usa-button usx-button usa-button--unstyled" aria-label="More actions for message from Avery" title="More actions">
|
|
117
|
+
|
|
118
|
+
<svg
|
|
119
|
+
class="
|
|
120
|
+
usa-icon usx-icon
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
"
|
|
125
|
+
|
|
126
|
+
aria-hidden="true"
|
|
127
|
+
focusable="false"
|
|
128
|
+
role="img"
|
|
129
|
+
>
|
|
130
|
+
|
|
131
|
+
<use href="img/sprite.svg#more_horiz"></use>
|
|
132
|
+
|
|
133
|
+
</svg></summary>
|
|
134
|
+
|
|
135
|
+
<div
|
|
136
|
+
id="django-tools-default-actions-m1"
|
|
137
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
138
|
+
><ul class="usx-popover__menu"><li><button
|
|
139
|
+
type="button"
|
|
140
|
+
class="usx-popover__menu-item"
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
data-usx-chat-copy-message=""
|
|
144
|
+
><svg
|
|
145
|
+
class="
|
|
146
|
+
usa-icon usx-icon
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
"
|
|
151
|
+
|
|
152
|
+
aria-hidden="true"
|
|
153
|
+
focusable="false"
|
|
154
|
+
role="img"
|
|
155
|
+
><use href="img/sprite.svg#content_copy"></use></svg>
|
|
156
|
+
Copy message
|
|
157
|
+
</button></li><li><button
|
|
158
|
+
type="button"
|
|
159
|
+
class="usx-popover__menu-item"
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
data-usx-chat-message-action="report"
|
|
163
|
+
>
|
|
164
|
+
|
|
165
|
+
Report message
|
|
166
|
+
</button></li></ul>
|
|
167
|
+
</div></details>
|
|
168
|
+
</div>
|
|
169
|
+
</li>
|
|
170
|
+
</ol>
|
|
171
|
+
</div>
|
|
172
|
+
</section>
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
<h3 class="site-preview-heading">Host Actions</h3>
|
|
176
|
+
<div>
|
|
177
|
+
<section
|
|
178
|
+
id="django-example-message-actions-hostactions"
|
|
179
|
+
class="usx-chat"
|
|
180
|
+
style="max-width: 28rem"
|
|
181
|
+
>
|
|
182
|
+
<div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
|
|
183
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
184
|
+
<ol class="usx-chat__messages">
|
|
185
|
+
<li data-message-id="m2" data-sender-name="You">
|
|
186
|
+
<div class="usx-chat__bubble"><p>Your appointment is confirmed.</p></div>
|
|
187
|
+
<div
|
|
188
|
+
class="usx-chat__message-tools"
|
|
189
|
+
role="group"
|
|
190
|
+
aria-label="Actions for message from You"
|
|
191
|
+
>
|
|
192
|
+
<!-- prettier-ignore -->
|
|
193
|
+
<details
|
|
194
|
+
|
|
195
|
+
class="usx-popover usx-chat__message-actions usx-chat__overflow-actions"
|
|
196
|
+
data-side="top"
|
|
197
|
+
data-align="end"
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
<summary class="usa-button usx-button usa-button--unstyled" aria-label="More actions for message from You" title="More actions">
|
|
204
|
+
|
|
205
|
+
<svg
|
|
206
|
+
class="
|
|
207
|
+
usa-icon usx-icon
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
"
|
|
212
|
+
|
|
213
|
+
aria-hidden="true"
|
|
214
|
+
focusable="false"
|
|
215
|
+
role="img"
|
|
216
|
+
>
|
|
217
|
+
|
|
218
|
+
<use href="img/sprite.svg#more_horiz"></use>
|
|
219
|
+
|
|
220
|
+
</svg></summary>
|
|
221
|
+
|
|
222
|
+
<div
|
|
223
|
+
id="django-tools-host-actions-m2"
|
|
224
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
225
|
+
><ul class="usx-popover__menu"><li><button
|
|
226
|
+
type="button"
|
|
227
|
+
class="usx-popover__menu-item"
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
data-usx-chat-message-action="recall"
|
|
231
|
+
>
|
|
232
|
+
|
|
233
|
+
Recall message
|
|
234
|
+
</button></li><li><button
|
|
235
|
+
type="button"
|
|
236
|
+
class="usx-popover__menu-item"
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
data-usx-chat-message-action="mark-unread"
|
|
240
|
+
>
|
|
241
|
+
|
|
242
|
+
Mark unread
|
|
243
|
+
</button></li><li><button
|
|
244
|
+
type="button"
|
|
245
|
+
class="usx-popover__menu-item"
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
data-usx-chat-message-action="edit"
|
|
249
|
+
>
|
|
250
|
+
|
|
251
|
+
Edit message
|
|
252
|
+
</button></li><li><button
|
|
253
|
+
type="button"
|
|
254
|
+
class="usx-popover__menu-item"
|
|
255
|
+
disabled
|
|
256
|
+
|
|
257
|
+
data-usx-chat-message-action="delete"
|
|
258
|
+
>
|
|
259
|
+
|
|
260
|
+
Delete message
|
|
261
|
+
</button></li></ul>
|
|
262
|
+
</div></details>
|
|
263
|
+
</div>
|
|
264
|
+
</li>
|
|
265
|
+
</ol>
|
|
266
|
+
</div>
|
|
267
|
+
</section>
|
|
268
|
+
</div>
|
|
269
|
+
|
|
270
|
+
<h3 class="site-preview-heading">Reactions Only</h3>
|
|
271
|
+
<div>
|
|
272
|
+
<section
|
|
273
|
+
id="django-example-message-actions-reactionsonly"
|
|
274
|
+
class="usx-chat"
|
|
275
|
+
style="max-width: 28rem"
|
|
276
|
+
>
|
|
277
|
+
<div data-chat-view="conversation" class="usx-chat__window" style="height: auto">
|
|
278
|
+
<span class="usx-chat__copy-status usa-sr-only" role="status"></span>
|
|
279
|
+
<ol class="usx-chat__messages">
|
|
280
|
+
<li data-message-id="m3" data-sender-name="Jordan">
|
|
281
|
+
<div class="usx-chat__bubble"><p>Your appointment is confirmed.</p></div>
|
|
282
|
+
<div
|
|
283
|
+
class="usx-chat__message-tools"
|
|
284
|
+
role="group"
|
|
285
|
+
aria-label="Actions for message from Jordan"
|
|
286
|
+
>
|
|
287
|
+
<!-- prettier-ignore -->
|
|
288
|
+
<details
|
|
289
|
+
|
|
290
|
+
class="usx-popover usx-chat__message-actions usx-chat__reaction-actions"
|
|
291
|
+
data-side="top"
|
|
292
|
+
data-align="end"
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
>
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
<summary class="usa-button usx-button usa-button--unstyled" aria-label="React to message from Jordan" title="Add reaction">
|
|
299
|
+
|
|
300
|
+
<svg
|
|
301
|
+
class="
|
|
302
|
+
usa-icon usx-icon
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
"
|
|
307
|
+
|
|
308
|
+
aria-hidden="true"
|
|
309
|
+
focusable="false"
|
|
310
|
+
role="img"
|
|
311
|
+
>
|
|
312
|
+
|
|
313
|
+
<use href="img/sprite.svg#sentiment_satisfied"></use>
|
|
314
|
+
|
|
315
|
+
</svg></summary>
|
|
316
|
+
|
|
317
|
+
<div
|
|
318
|
+
id="django-tools-reactions-reactions-m3"
|
|
319
|
+
class="usx-popover__panel usx-popover__panel--square"
|
|
320
|
+
><ul class="usx-popover__menu"><li><button
|
|
321
|
+
type="button"
|
|
322
|
+
class="usx-popover__menu-item"
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
data-usx-chat-reaction="Helpful"aria-label="Helpful"title="Helpful"aria-pressed="false"
|
|
326
|
+
>
|
|
327
|
+
|
|
328
|
+
👍
|
|
329
|
+
</button></li><li><button
|
|
330
|
+
type="button"
|
|
331
|
+
class="usx-popover__menu-item"
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
data-usx-chat-reaction="Thanks"aria-label="Thanks"title="Thanks"aria-pressed="false"
|
|
335
|
+
>
|
|
336
|
+
|
|
337
|
+
❤️
|
|
338
|
+
</button></li></ul>
|
|
339
|
+
</div></details>
|
|
340
|
+
</div>
|
|
341
|
+
</li>
|
|
342
|
+
</ol>
|
|
343
|
+
</div>
|
|
344
|
+
</section>
|
|
345
|
+
</div>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{% load usx_components %}
|
|
2
|
+
{% if reactionOptions or canReply or canForward or canCopy or actions %}
|
|
3
|
+
<div class="usx-chat__message-tools" role="group" aria-label="Actions for message from {{ senderName }}" >
|
|
4
|
+
{% if reactionOptions %}
|
|
5
|
+
{% icon name='sentiment_satisfied' as reactionIcon %}{% endicon %}
|
|
6
|
+
{% with reactionLabel='React to message from '|add:senderName %}
|
|
7
|
+
{% dict children=reactionIcon ariaLabel=reactionLabel title='Add reaction' className='usa-button usx-button usa-button--unstyled' as reactionSummary %}
|
|
8
|
+
{% popover id=id|add:'-reactions-'|add:messageId side='top' align='end' panelShape='square' className='usx-chat__message-actions usx-chat__reaction-actions' summaryProps=reactionSummary menuItems=reactionMenuItems %}{% endpopover %}
|
|
9
|
+
{% endwith %}
|
|
10
|
+
{% endif %}
|
|
11
|
+
{% if canReply %}
|
|
12
|
+
<button type="button" class="usa-button usx-button usa-button--unstyled usx-chat__tool-button" title="Reply in thread" aria-label="Reply in thread to message from {{ senderName }}" data-usx-chat-thread="{{ messageId }}" >
|
|
13
|
+
{% icon name='comment' %}{% endicon %}
|
|
14
|
+
</button >
|
|
15
|
+
{% endif %}
|
|
16
|
+
{% if canForward %}
|
|
17
|
+
<button type="button" class="usa-button usx-button usa-button--unstyled usx-chat__tool-button" title="Forward message" aria-label="Forward message from {{ senderName }}" data-usx-chat-forward="{{ messageId }}" >
|
|
18
|
+
{% icon name='arrow_forward' %}{% endicon %}
|
|
19
|
+
</button >
|
|
20
|
+
{% endif %}
|
|
21
|
+
{% if canCopy or actions %}
|
|
22
|
+
{% icon name='more_horiz' as moreIcon %}{% endicon %}
|
|
23
|
+
{% with menuLabel='More actions for message from '|add:senderName %}
|
|
24
|
+
{% dict children=moreIcon ariaLabel=menuLabel title='More actions' className='usa-button usx-button usa-button--unstyled' as menuSummary %}
|
|
25
|
+
{% popover id=id|add:'-actions-'|add:messageId side='top' align='end' panelShape='square' className='usx-chat__message-actions usx-chat__overflow-actions' summaryProps=menuSummary menuItems=messageMenuItems %}{% endpopover %}
|
|
26
|
+
{% endwith %}
|
|
27
|
+
{% endif %}
|
|
28
|
+
</div>
|
|
29
|
+
{% endif %}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<div class="usx-chat__message-tools" role="group" aria-label="Actions for message from Avery">
|
|
2
|
+
<details class="usx-popover usx-chat__message-actions usx-chat__reaction-actions" data-side="top" data-align="end">
|
|
3
|
+
<summary class="usa-button usx-button usa-button--unstyled" aria-label="React to message from Avery" title="Add reaction">
|
|
4
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
5
|
+
<use href="/img/sprite.svg#sentiment_satisfied"></use>
|
|
6
|
+
</svg>
|
|
7
|
+
</summary>
|
|
8
|
+
<div id="react-tools-default-reactions-m1" class="usx-popover__panel usx-popover__panel--square">
|
|
9
|
+
<ul class="usx-popover__menu">
|
|
10
|
+
<li>
|
|
11
|
+
<button aria-label="Helpful" title="Helpful" aria-pressed="true" data-usx-chat-reaction="Helpful" type="button" class="usx-popover__menu-item">
|
|
12
|
+
👍
|
|
13
|
+
</button>
|
|
14
|
+
</li>
|
|
15
|
+
<li>
|
|
16
|
+
<button aria-label="Thanks" title="Thanks" aria-pressed="false" data-usx-chat-reaction="Thanks" type="button" class="usx-popover__menu-item">
|
|
17
|
+
❤️
|
|
18
|
+
</button>
|
|
19
|
+
</li>
|
|
20
|
+
</ul>
|
|
21
|
+
</div>
|
|
22
|
+
</details>
|
|
23
|
+
<button type="button" class="usa-button usx-button usa-button--unstyled usx-chat__tool-button" title="Reply in thread" aria-label="Reply in thread to message from Avery" data-usx-chat-thread="m1">
|
|
24
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
25
|
+
<use href="/img/sprite.svg#comment"></use>
|
|
26
|
+
</svg></button><button type="button" class="usa-button usx-button usa-button--unstyled usx-chat__tool-button" title="Forward message" aria-label="Forward message from Avery" data-usx-chat-forward="m1">
|
|
27
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
28
|
+
<use href="/img/sprite.svg#arrow_forward"></use>
|
|
29
|
+
</svg>
|
|
30
|
+
</button>
|
|
31
|
+
<details class="usx-popover usx-chat__message-actions usx-chat__overflow-actions" data-side="top" data-align="end">
|
|
32
|
+
<summary class="usa-button usx-button usa-button--unstyled" aria-label="More actions for message from Avery" title="More actions">
|
|
33
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
34
|
+
<use href="/img/sprite.svg#more_horiz"></use>
|
|
35
|
+
</svg>
|
|
36
|
+
</summary>
|
|
37
|
+
<div id="react-tools-default-actions-m1" class="usx-popover__panel usx-popover__panel--square">
|
|
38
|
+
<ul class="usx-popover__menu">
|
|
39
|
+
<li>
|
|
40
|
+
<button data-usx-chat-copy-message="" type="button" class="usx-popover__menu-item">
|
|
41
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
42
|
+
<use href="/img/sprite.svg#content_copy"></use></svg>Copy message
|
|
43
|
+
</button>
|
|
44
|
+
</li>
|
|
45
|
+
<li>
|
|
46
|
+
<button data-usx-chat-message-action="report" type="button" class="usx-popover__menu-item">
|
|
47
|
+
Report message
|
|
48
|
+
</button>
|
|
49
|
+
</li>
|
|
50
|
+
</ul>
|
|
51
|
+
</div>
|
|
52
|
+
</details>
|
|
53
|
+
</div>
|