@solexllc/usx-react 0.12.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 +15 -0
- package/dist/{Popover-BzDCTuQM.cjs → Popover-Bg4-2-cU.cjs} +3 -0
- package/dist/{Popover-LToVWsWc.js → Popover-CqHczzNE.js} +3 -0
- package/dist/chat.cjs +7 -2
- package/dist/chat.js +7 -2
- package/dist/index.cjs +83 -56
- package/dist/index.js +86 -59
- package/package.json +4 -4
- 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.django-snapshot.html +6 -2
- package/src/components/avatar/avatar.react-snapshot.html +6 -3
- package/src/components/avatar/config.json +4 -2
- package/src/components/avatar-group/avatar-group.django-snapshot.html +176 -176
- package/src/components/avatar-group/avatar-group.react-snapshot.html +198 -167
- package/src/components/avatar-group/config.json +12 -6
- package/src/components/banner/banner.django-snapshot.html +2 -2
- package/src/components/button/Button.tsx +3 -0
- package/src/components/button/button.django-snapshot.html +64 -0
- package/src/components/button/button.django.html +2 -0
- package/src/components/button/button.react-snapshot.html +64 -0
- package/src/components/button/config.json +6 -1
- package/src/components/card/card.django-snapshot.html +43 -0
- package/src/components/card/card.react-snapshot.html +36 -0
- package/src/components/chat/chat.django-snapshot.html +90 -26
- package/src/components/chat/chat.html +10 -10
- package/src/components/chat/chat.react-snapshot.html +49 -49
- package/src/components/chat-composer/ChatComposer.tsx +3 -0
- package/src/components/chat-composer/chat-composer.django-snapshot.html +10 -10
- package/src/components/chat-composer/chat-composer.django.html +2 -2
- package/src/components/chat-composer/chat-composer.html +10 -10
- package/src/components/chat-composer/chat-composer.react-snapshot.html +10 -10
- package/src/components/chat-composer/chat-formatting.django.html +8 -8
- package/src/components/chat-window/ChatWindow.tsx +3 -1
- package/src/components/chat-window/chat-window.django-snapshot.html +7 -5
- package/src/components/chat-window/chat-window.django.html +3 -3
- package/src/components/chat-window/chat-window.html +1 -1
- package/src/components/chat-window/chat-window.react-snapshot.html +7 -7
- package/src/components/checkbox/checkbox.django-snapshot.html +2 -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/form-group/form-group.django-snapshot.html +0 -2
- package/src/components/header/header.django-snapshot.html +3 -3
- package/src/components/header/header.html +1 -1
- package/src/components/header/header.react-snapshot.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/layout/layout.django-snapshot.html +2 -0
- 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 +1 -0
- package/src/components/popover/popover.django-snapshot.html +37 -1
- package/src/components/popover/popover.django.html +1 -1
- package/src/components/popover/popover.react-snapshot.html +30 -3
- package/src/components/section/Section.tsx +3 -1
- package/src/components/site-alert/site-alert.django-snapshot.html +8 -8
- 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/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
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
<form id="chat-composer-example-composer" class="usx-chat-composer usx-chat__composer" method="post" enctype="multipart/form-data">
|
|
3
3
|
<div id="chat-composer-example-formatting" class="usx-chat__formatting" aria-label="Message formatting" hidden>
|
|
4
4
|
<ul class="usa-button-group usx-button-group usa-button-group--segmented usx-chat__format-buttons">
|
|
5
|
-
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-chat__format-button" data-usx-chat-format="bold" aria-label="Bold" title="Bold (Ctrl/⌘+B)"><strong>B</strong></button></li>
|
|
6
|
-
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-chat__format-button" data-usx-chat-format="italic" aria-label="Italic" title="Italic (Ctrl/⌘+I)"><em>I</em></button></li>
|
|
7
|
-
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-chat__format-button" data-usx-chat-format="underline" aria-label="Underline" title="Underline (Ctrl/⌘+U)"><u>U</u></button></li>
|
|
8
|
-
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-chat__format-button" data-usx-chat-format="strike" aria-label="Strikethrough" title="Strikethrough (Ctrl/⌘+Shift+X)"><s>S</s></button></li>
|
|
9
|
-
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-chat__format-button" data-usx-chat-format="ordered" aria-label="Numbered list" title="Numbered list (Ctrl/⌘+Shift+7)">1.</button></li>
|
|
10
|
-
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-chat__format-button" data-usx-chat-format="unordered" aria-label="Bulleted list" title="Bulleted list (Ctrl/⌘+Shift+8)"><svg class="usa-icon usx-icon" aria-hidden="true"><use href="img/sprite.svg#list"></use></svg></button></li>
|
|
11
|
-
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-chat__format-button" data-usx-chat-format="quote" aria-label="Block quote" title="Block quote (Ctrl/⌘+Shift+9)"><svg class="usa-icon usx-icon" aria-hidden="true"><use href="img/sprite.svg#format_quote"></use></svg></button></li>
|
|
12
|
-
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-chat__format-button" data-usx-chat-format="code" aria-label="Code block" title="Code block (Ctrl/⌘+Alt+Shift+C)"><svg class="usa-icon usx-icon" aria-hidden="true"><use href="img/sprite.svg#code"></use></svg></button></li>
|
|
5
|
+
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button" data-usx-chat-format="bold" aria-label="Bold" title="Bold (Ctrl/⌘+B)"><strong>B</strong></button></li>
|
|
6
|
+
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button" data-usx-chat-format="italic" aria-label="Italic" title="Italic (Ctrl/⌘+I)"><em>I</em></button></li>
|
|
7
|
+
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button" data-usx-chat-format="underline" aria-label="Underline" title="Underline (Ctrl/⌘+U)"><u>U</u></button></li>
|
|
8
|
+
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button" data-usx-chat-format="strike" aria-label="Strikethrough" title="Strikethrough (Ctrl/⌘+Shift+X)"><s>S</s></button></li>
|
|
9
|
+
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button" data-usx-chat-format="ordered" aria-label="Numbered list" title="Numbered list (Ctrl/⌘+Shift+7)">1.</button></li>
|
|
10
|
+
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button" data-usx-chat-format="unordered" aria-label="Bulleted list" title="Bulleted list (Ctrl/⌘+Shift+8)"><svg class="usa-icon usx-icon" aria-hidden="true"><use href="img/sprite.svg#list"></use></svg></button></li>
|
|
11
|
+
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button" data-usx-chat-format="quote" aria-label="Block quote" title="Block quote (Ctrl/⌘+Shift+9)"><svg class="usa-icon usx-icon" aria-hidden="true"><use href="img/sprite.svg#format_quote"></use></svg></button></li>
|
|
12
|
+
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button" data-usx-chat-format="code" aria-label="Code block" title="Code block (Ctrl/⌘+Alt+Shift+C)"><svg class="usa-icon usx-icon" aria-hidden="true"><use href="img/sprite.svg#code"></use></svg></button></li>
|
|
13
13
|
</ul>
|
|
14
14
|
</div>
|
|
15
15
|
<label class="usa-sr-only" for="chat-composer-example-message">Message</label>
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
<div class="usx-chat__composer-actions">
|
|
24
24
|
<div class="usx-chat__attach">
|
|
25
25
|
<ul class="usa-button-group usx-button-group usx-chat__composer-tools">
|
|
26
|
-
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline" data-usx-chat-attach aria-label="Attach files" title="Attach files"><svg class="usa-icon usx-icon" aria-hidden="true"><use href="img/sprite.svg#attach_file"></use></svg></button></li>
|
|
27
|
-
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline" data-usx-chat-toggle-formatting aria-label="Show formatting" aria-controls="chat-composer-example-formatting" aria-expanded="false" title="Show formatting"><svg class="usa-icon usx-icon" aria-hidden="true"><use href="img/sprite.svg#text_fields"></use></svg></button></li>
|
|
26
|
+
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-button--tight" data-usx-chat-attach aria-label="Attach files" title="Attach files"><svg class="usa-icon usx-icon" aria-hidden="true"><use href="img/sprite.svg#attach_file"></use></svg></button></li>
|
|
27
|
+
<li class="usa-button-group__item"><button type="button" class="usa-button usx-button usa-button--outline usx-button--tight" data-usx-chat-toggle-formatting aria-label="Show formatting" aria-controls="chat-composer-example-formatting" aria-expanded="false" title="Show formatting"><svg class="usa-icon usx-icon" aria-hidden="true"><use href="img/sprite.svg#text_fields"></use></svg></button></li>
|
|
28
28
|
</ul>
|
|
29
29
|
<details class="usx-popover usx-chat__emoji-picker" data-side="top" data-align="start">
|
|
30
30
|
<summary class="usa-button usx-button usa-button--outline" aria-label="Choose emoji" title="Choose emoji"><svg class="usa-icon usx-icon" aria-hidden="true"><use href="img/sprite.svg#sentiment_satisfied"></use></svg></summary>
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
<li class="usa-button-group__item">
|
|
118
118
|
<button
|
|
119
119
|
type="button"
|
|
120
|
-
class="usa-button usx-button usa-button--outline usx-chat__format-button"
|
|
120
|
+
class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button"
|
|
121
121
|
aria-label="Bold"
|
|
122
122
|
title="Bold (Ctrl/⌘+B)"
|
|
123
123
|
data-usx-chat-format="bold"
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
<li class="usa-button-group__item">
|
|
129
129
|
<button
|
|
130
130
|
type="button"
|
|
131
|
-
class="usa-button usx-button usa-button--outline usx-chat__format-button"
|
|
131
|
+
class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button"
|
|
132
132
|
aria-label="Italic"
|
|
133
133
|
title="Italic (Ctrl/⌘+I)"
|
|
134
134
|
data-usx-chat-format="italic"
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
<li class="usa-button-group__item">
|
|
140
140
|
<button
|
|
141
141
|
type="button"
|
|
142
|
-
class="usa-button usx-button usa-button--outline usx-chat__format-button"
|
|
142
|
+
class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button"
|
|
143
143
|
aria-label="Underline"
|
|
144
144
|
title="Underline (Ctrl/⌘+U)"
|
|
145
145
|
data-usx-chat-format="underline"
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
<li class="usa-button-group__item">
|
|
151
151
|
<button
|
|
152
152
|
type="button"
|
|
153
|
-
class="usa-button usx-button usa-button--outline usx-chat__format-button"
|
|
153
|
+
class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button"
|
|
154
154
|
aria-label="Strikethrough"
|
|
155
155
|
title="Strikethrough (Ctrl/⌘+Shift+X)"
|
|
156
156
|
data-usx-chat-format="strike"
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<li class="usa-button-group__item">
|
|
162
162
|
<button
|
|
163
163
|
type="button"
|
|
164
|
-
class="usa-button usx-button usa-button--outline usx-chat__format-button"
|
|
164
|
+
class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button"
|
|
165
165
|
aria-label="Numbered list"
|
|
166
166
|
title="Numbered list (Ctrl/⌘+Shift+7)"
|
|
167
167
|
data-usx-chat-format="ordered"
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
<li class="usa-button-group__item">
|
|
173
173
|
<button
|
|
174
174
|
type="button"
|
|
175
|
-
class="usa-button usx-button usa-button--outline usx-chat__format-button"
|
|
175
|
+
class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button"
|
|
176
176
|
aria-label="Bulleted list"
|
|
177
177
|
title="Bulleted list (Ctrl/⌘+Shift+8)"
|
|
178
178
|
data-usx-chat-format="unordered"
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
<li class="usa-button-group__item">
|
|
186
186
|
<button
|
|
187
187
|
type="button"
|
|
188
|
-
class="usa-button usx-button usa-button--outline usx-chat__format-button"
|
|
188
|
+
class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button"
|
|
189
189
|
aria-label="Block quote"
|
|
190
190
|
title="Block quote (Ctrl/⌘+Shift+9)"
|
|
191
191
|
data-usx-chat-format="quote"
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
<li class="usa-button-group__item">
|
|
199
199
|
<button
|
|
200
200
|
type="button"
|
|
201
|
-
class="usa-button usx-button usa-button--outline usx-chat__format-button"
|
|
201
|
+
class="usa-button usx-button usa-button--outline usx-button--tight usx-chat__format-button"
|
|
202
202
|
aria-label="Code block"
|
|
203
203
|
title="Code block (Ctrl/⌘+Alt+Shift+C)"
|
|
204
204
|
data-usx-chat-format="code"
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
<li class="usa-button-group__item">
|
|
226
226
|
<button
|
|
227
227
|
type="button"
|
|
228
|
-
class="usa-button usx-button usa-button--outline"
|
|
228
|
+
class="usa-button usx-button usa-button--outline usx-button--tight"
|
|
229
229
|
aria-label="Show formatting"
|
|
230
230
|
title="Show formatting"
|
|
231
231
|
aria-expanded="false"
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
<li class="usa-button-group__item">
|
|
344
344
|
<button
|
|
345
345
|
type="button"
|
|
346
|
-
class="usa-button usx-button usa-button--outline"
|
|
346
|
+
class="usa-button usx-button usa-button--outline usx-button--tight"
|
|
347
347
|
aria-label="Attach files"
|
|
348
348
|
title="Attach files"
|
|
349
349
|
data-usx-chat-attach=""
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
<ul class="usa-button-group usx-button-group usa-button-group--segmented usx-chat__format-buttons">
|
|
4
4
|
{% dict data_usx_chat_format='bold' aria_label='Bold' title='Bold (Ctrl/⌘+B)' as attrs %}
|
|
5
5
|
<li class="usa-button-group__item">
|
|
6
|
-
{% button variant='outline' className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
6
|
+
{% button variant='outline' tighten=True className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
7
7
|
<strong>B</strong>
|
|
8
8
|
{% endbutton %}
|
|
9
9
|
</li>
|
|
10
10
|
{% dict data_usx_chat_format='italic' aria_label='Italic' title='Italic (Ctrl/⌘+I)' as attrs %}
|
|
11
11
|
<li class="usa-button-group__item">
|
|
12
|
-
{% button variant='outline' className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
12
|
+
{% button variant='outline' tighten=True className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
13
13
|
<em>
|
|
14
14
|
I
|
|
15
15
|
</em>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</li>
|
|
18
18
|
{% dict data_usx_chat_format='underline' aria_label='Underline' title='Underline (Ctrl/⌘+U)' as attrs %}
|
|
19
19
|
<li class="usa-button-group__item">
|
|
20
|
-
{% button variant='outline' className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
20
|
+
{% button variant='outline' tighten=True className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
21
21
|
<u>
|
|
22
22
|
U
|
|
23
23
|
</u>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</li>
|
|
26
26
|
{% dict data_usx_chat_format='strike' aria_label='Strikethrough' title='Strikethrough (Ctrl/⌘+Shift+X)' as attrs %}
|
|
27
27
|
<li class="usa-button-group__item">
|
|
28
|
-
{% button variant='outline' className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
28
|
+
{% button variant='outline' tighten=True className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
29
29
|
<s>
|
|
30
30
|
S
|
|
31
31
|
</s>
|
|
@@ -33,25 +33,25 @@
|
|
|
33
33
|
</li>
|
|
34
34
|
{% dict data_usx_chat_format='ordered' aria_label='Numbered list' title='Numbered list (Ctrl/⌘+Shift+7)' as attrs %}
|
|
35
35
|
<li class="usa-button-group__item">
|
|
36
|
-
{% button variant='outline' className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
36
|
+
{% button variant='outline' tighten=True className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
37
37
|
1.
|
|
38
38
|
{% endbutton %}
|
|
39
39
|
</li>
|
|
40
40
|
{% dict data_usx_chat_format='unordered' aria_label='Bulleted list' title='Bulleted list (Ctrl/⌘+Shift+8)' as attrs %}
|
|
41
41
|
<li class="usa-button-group__item">
|
|
42
|
-
{% button variant='outline' className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
42
|
+
{% button variant='outline' tighten=True className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
43
43
|
{% icon name='list' %}{% endicon %}
|
|
44
44
|
{% endbutton %}
|
|
45
45
|
</li>
|
|
46
46
|
{% dict data_usx_chat_format='quote' aria_label='Block quote' title='Block quote (Ctrl/⌘+Shift+9)' as attrs %}
|
|
47
47
|
<li class="usa-button-group__item">
|
|
48
|
-
{% button variant='outline' className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
48
|
+
{% button variant='outline' tighten=True className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
49
49
|
{% icon name='format_quote' %}{% endicon %}
|
|
50
50
|
{% endbutton %}
|
|
51
51
|
</li>
|
|
52
52
|
{% dict data_usx_chat_format='code' aria_label='Code block' title='Code block (Ctrl/⌘+Alt+Shift+C)' as attrs %}
|
|
53
53
|
<li class="usa-button-group__item">
|
|
54
|
-
{% button variant='outline' className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
54
|
+
{% button variant='outline' tighten=True className='usx-chat__format-button' disabled=disabled extraAttributes=attrs %}
|
|
55
55
|
{% icon name='code' %}{% endicon %}
|
|
56
56
|
{% endbutton %}
|
|
57
57
|
</li>
|
|
@@ -60,6 +60,7 @@ export default function ChatWindow({
|
|
|
60
60
|
showBack && (
|
|
61
61
|
<Button
|
|
62
62
|
variant="unstyled"
|
|
63
|
+
tighten
|
|
63
64
|
className="usx-popover__header-action"
|
|
64
65
|
aria-label={view === 'thread' ? 'Back to conversation' : 'Back'}
|
|
65
66
|
iconProps={[{ name: 'arrow_back' }]}
|
|
@@ -72,6 +73,7 @@ export default function ChatWindow({
|
|
|
72
73
|
{showNewMessage && (
|
|
73
74
|
<Button
|
|
74
75
|
variant="unstyled"
|
|
76
|
+
tighten
|
|
75
77
|
className="usx-popover__header-action"
|
|
76
78
|
aria-label="New message"
|
|
77
79
|
iconProps={[{ name: 'add' }]}
|
|
@@ -110,7 +112,7 @@ export default function ChatWindow({
|
|
|
110
112
|
]}
|
|
111
113
|
summaryProps={{
|
|
112
114
|
ariaLabel: 'Conversation actions',
|
|
113
|
-
className: 'usa-button usx-button usa-button--unstyled usx-popover__header-action',
|
|
115
|
+
className: 'usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action',
|
|
114
116
|
children: <Icon name="more_vert" />,
|
|
115
117
|
}}
|
|
116
118
|
>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
><header class="usx-popover__header usx-chat__header"><div class="usx-popover__header-content"><h2 class="usx-popover__panel-heading" id="django-example-window-default-title" tabindex="-1">Support</h2></div><div class="usx-popover__header-right-actions">
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
<button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-default">
|
|
22
|
+
<button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-default">
|
|
23
23
|
|
|
24
24
|
<svg
|
|
25
25
|
class="
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
usa-button usx-button
|
|
99
99
|
usa-button--unstyled
|
|
100
100
|
|
|
101
|
+
usx-button--tight
|
|
101
102
|
|
|
102
103
|
|
|
103
104
|
usx-popover__header-action
|
|
@@ -138,7 +139,7 @@
|
|
|
138
139
|
|
|
139
140
|
|
|
140
141
|
|
|
141
|
-
<button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-inbox">
|
|
142
|
+
<button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-inbox">
|
|
142
143
|
|
|
143
144
|
<svg
|
|
144
145
|
class="
|
|
@@ -214,6 +215,7 @@
|
|
|
214
215
|
usa-button usx-button
|
|
215
216
|
usa-button--unstyled
|
|
216
217
|
|
|
218
|
+
usx-button--tight
|
|
217
219
|
|
|
218
220
|
|
|
219
221
|
usx-popover__header-action
|
|
@@ -269,7 +271,7 @@
|
|
|
269
271
|
>
|
|
270
272
|
|
|
271
273
|
|
|
272
|
-
<summary class="usa-button usx-button usa-button--unstyled usx-popover__header-action" aria-label="Conversation actions">
|
|
274
|
+
<summary class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action" aria-label="Conversation actions">
|
|
273
275
|
|
|
274
276
|
<svg
|
|
275
277
|
class="
|
|
@@ -332,7 +334,7 @@
|
|
|
332
334
|
</div></details>
|
|
333
335
|
|
|
334
336
|
|
|
335
|
-
<button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-thread">
|
|
337
|
+
<button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-thread">
|
|
336
338
|
|
|
337
339
|
<svg
|
|
338
340
|
class="
|
|
@@ -403,7 +405,7 @@
|
|
|
403
405
|
><header class="usx-popover__header usx-chat__header"><div class="usx-popover__header-content"><h2 class="usx-popover__panel-heading" id="django-example-window-closed-title" tabindex="-1">Support</h2></div><div class="usx-popover__header-right-actions">
|
|
404
406
|
|
|
405
407
|
|
|
406
|
-
<button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-closed">
|
|
408
|
+
<button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="django-example-window-closed">
|
|
407
409
|
|
|
408
410
|
<svg
|
|
409
411
|
class="
|
|
@@ -6,20 +6,20 @@
|
|
|
6
6
|
{% else %}
|
|
7
7
|
{% dict data_usx_chat_back='' aria_label='Back' as backAttributes %}
|
|
8
8
|
{% endif %}
|
|
9
|
-
{% button variant='unstyled' className='usx-popover__header-action' extraAttributes=backAttributes %}
|
|
9
|
+
{% button variant='unstyled' tighten=True className='usx-popover__header-action' extraAttributes=backAttributes %}
|
|
10
10
|
{% icon name='arrow_back' %}{% endicon %}
|
|
11
11
|
{% endbutton %}
|
|
12
12
|
{% endif %}{% endfragment %}
|
|
13
13
|
{% fragment as chatRightActions %}
|
|
14
14
|
{% if showNewMessage %}
|
|
15
15
|
{% dict data_usx_chat_new='' aria_label='New message' as newAttributes %}
|
|
16
|
-
{% button variant='unstyled' className='usx-popover__header-action' extraAttributes=newAttributes %}
|
|
16
|
+
{% button variant='unstyled' tighten=True className='usx-popover__header-action' extraAttributes=newAttributes %}
|
|
17
17
|
{% icon name='add' %}{% endicon %}
|
|
18
18
|
{% endbutton %}
|
|
19
19
|
{% endif %}
|
|
20
20
|
{% if showCopyAction or conversationActions or actions %}
|
|
21
21
|
{% icon name='more_vert' as actionsIcon %}{% endicon %}
|
|
22
|
-
{% dict children=actionsIcon ariaLabel='Conversation actions' className='usa-button usx-button usa-button--unstyled usx-popover__header-action' as actionsSummary %}
|
|
22
|
+
{% dict children=actionsIcon ariaLabel='Conversation actions' className='usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action' as actionsSummary %}
|
|
23
23
|
{% popover id=id|add:'-conversation-actions' className='usx-chat__actions' side='bottom' align='end' panelShape='square' panelClassName='usx-chat__actions-menu' summaryProps=actionsSummary menuItems=conversationMenuItems children=actions %}{% endpopover %}
|
|
24
24
|
{% endif %}
|
|
25
25
|
{% endfragment %}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</h2>
|
|
9
9
|
</div>
|
|
10
10
|
<div class="usx-popover__header-right-actions">
|
|
11
|
-
<button type="button" class="usa-button usx-button usa-button--unstyled usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="react-window-default">
|
|
11
|
+
<button type="button" class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close" aria-label="Close chat" data-usx-popover-close="react-window-default">
|
|
12
12
|
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
13
13
|
<use href="/img/sprite.svg#close"></use>
|
|
14
14
|
</svg>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class="usx-popover__header-right-actions">
|
|
26
26
|
<button
|
|
27
27
|
type="button"
|
|
28
|
-
class="usa-button usx-button usa-button--unstyled usx-popover__header-action usx-popover__header-close"
|
|
28
|
+
class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close"
|
|
29
29
|
aria-label="Close chat"
|
|
30
30
|
data-usx-popover-close="react-example-window-default"
|
|
31
31
|
>
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
<div class="usx-popover__header-right-actions">
|
|
82
82
|
<button
|
|
83
83
|
type="button"
|
|
84
|
-
class="usa-button usx-button usa-button--unstyled usx-popover__header-action"
|
|
84
|
+
class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action"
|
|
85
85
|
aria-label="New message"
|
|
86
86
|
data-usx-chat-new=""
|
|
87
87
|
>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
</svg></button
|
|
91
91
|
><button
|
|
92
92
|
type="button"
|
|
93
|
-
class="usa-button usx-button usa-button--unstyled usx-popover__header-action usx-popover__header-close"
|
|
93
|
+
class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close"
|
|
94
94
|
aria-label="Close chat"
|
|
95
95
|
data-usx-popover-close="react-example-window-inbox"
|
|
96
96
|
>
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
<div class="usx-popover__header-left-actions">
|
|
137
137
|
<button
|
|
138
138
|
type="button"
|
|
139
|
-
class="usa-button usx-button usa-button--unstyled usx-popover__header-action"
|
|
139
|
+
class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action"
|
|
140
140
|
aria-label="Back to conversation"
|
|
141
141
|
data-usx-chat-back=""
|
|
142
142
|
>
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
<div class="usx-popover__header-right-actions">
|
|
158
158
|
<details class="usx-popover usx-chat__actions" data-side="bottom" data-align="end">
|
|
159
159
|
<summary
|
|
160
|
-
class="usa-button usx-button usa-button--unstyled usx-popover__header-action"
|
|
160
|
+
class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action"
|
|
161
161
|
aria-label="Conversation actions"
|
|
162
162
|
>
|
|
163
163
|
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
</details>
|
|
203
203
|
<button
|
|
204
204
|
type="button"
|
|
205
|
-
class="usa-button usx-button usa-button--unstyled usx-popover__header-action usx-popover__header-close"
|
|
205
|
+
class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close"
|
|
206
206
|
aria-label="Close chat"
|
|
207
207
|
data-usx-popover-close="react-example-window-thread"
|
|
208
208
|
>
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
<div class="usx-popover__header-right-actions">
|
|
258
258
|
<button
|
|
259
259
|
type="button"
|
|
260
|
-
class="usa-button usx-button usa-button--unstyled usx-popover__header-action usx-popover__header-close"
|
|
260
|
+
class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close"
|
|
261
261
|
aria-label="Close chat"
|
|
262
262
|
data-usx-popover-close="react-example-window-closed"
|
|
263
263
|
>
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
</div>
|
|
325
325
|
|
|
326
326
|
<span class="usa-error-message usx-error-message" role="alert"
|
|
327
|
-
>You
|
|
327
|
+
>You've done something wrong, although we don't necessarily know what.</span
|
|
328
328
|
>
|
|
329
329
|
</div>
|
|
330
330
|
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
</div>
|
|
370
370
|
|
|
371
371
|
<span class="usa-error-message usx-error-message" role="alert"
|
|
372
|
-
>You
|
|
372
|
+
>You've done something wrong, although we don't necessarily know what.</span
|
|
373
373
|
>
|
|
374
374
|
|
|
375
375
|
<h3 class="site-preview-heading">Default Checked</h3>
|
|
@@ -789,7 +789,6 @@
|
|
|
789
789
|
class="usa-input usx-input"
|
|
790
790
|
id="django-searchable-paginated-search"
|
|
791
791
|
placeholder="Search table"
|
|
792
|
-
value=""
|
|
793
792
|
/>
|
|
794
793
|
</div>
|
|
795
794
|
<div class="usx-data-table-container--scrollable" tabindex="0">
|
|
@@ -12402,11 +12401,11 @@
|
|
|
12402
12401
|
data-column-key="avatar"
|
|
12403
12402
|
>
|
|
12404
12403
|
<div class="usx-data-table__cell-content">
|
|
12405
|
-
<
|
|
12404
|
+
<span class="usx-avatar" aria-label="Ada Lovelace">
|
|
12406
12405
|
<span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
12407
12406
|
>AL</span
|
|
12408
12407
|
>
|
|
12409
|
-
</
|
|
12408
|
+
</span>
|
|
12410
12409
|
</div>
|
|
12411
12410
|
</td>
|
|
12412
12411
|
|
|
@@ -12489,11 +12488,11 @@
|
|
|
12489
12488
|
data-column-key="avatar"
|
|
12490
12489
|
>
|
|
12491
12490
|
<div class="usx-data-table__cell-content">
|
|
12492
|
-
<
|
|
12491
|
+
<span class="usx-avatar" aria-label="Grace Hopper">
|
|
12493
12492
|
<span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
12494
12493
|
>GH</span
|
|
12495
12494
|
>
|
|
12496
|
-
</
|
|
12495
|
+
</span>
|
|
12497
12496
|
</div>
|
|
12498
12497
|
</td>
|
|
12499
12498
|
|
|
@@ -10997,10 +10997,10 @@
|
|
|
10997
10997
|
data-column-key="avatar"
|
|
10998
10998
|
>
|
|
10999
10999
|
<div class="usx-data-table__cell-content">
|
|
11000
|
-
<
|
|
11000
|
+
<span class="usx-avatar" aria-label="Ada Lovelace"
|
|
11001
11001
|
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
11002
11002
|
>AL</span
|
|
11003
|
-
></
|
|
11003
|
+
></span
|
|
11004
11004
|
>
|
|
11005
11005
|
</div>
|
|
11006
11006
|
</td>
|
|
@@ -11076,10 +11076,10 @@
|
|
|
11076
11076
|
data-column-key="avatar"
|
|
11077
11077
|
>
|
|
11078
11078
|
<div class="usx-data-table__cell-content">
|
|
11079
|
-
<
|
|
11079
|
+
<span class="usx-avatar" aria-label="Grace Hopper"
|
|
11080
11080
|
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
11081
11081
|
>GH</span
|
|
11082
|
-
></
|
|
11082
|
+
></span
|
|
11083
11083
|
>
|
|
11084
11084
|
</div>
|
|
11085
11085
|
</td>
|