@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
|
@@ -1,189 +1,217 @@
|
|
|
1
1
|
<h3 class="site-preview-heading">Default</h3>
|
|
2
2
|
<div class="usx-avatar-group">
|
|
3
|
-
<a
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
<a
|
|
4
|
+
href="https://google.com/search?q=George+Washington"
|
|
5
|
+
class="usx-avatar"
|
|
6
|
+
aria-label="George Washington"
|
|
7
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
8
|
+
>GW</span
|
|
9
|
+
></a
|
|
10
|
+
><a
|
|
11
|
+
href="https://google.com/search?q=Thomas+Jefferson"
|
|
12
|
+
class="usx-avatar"
|
|
13
|
+
aria-label="Thomas Jefferson"
|
|
14
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
15
|
+
>TJ</span
|
|
16
|
+
></a
|
|
17
|
+
><a
|
|
18
|
+
href="https://google.com/search?q=Benjamin+Franklin"
|
|
19
|
+
class="usx-avatar"
|
|
20
|
+
aria-label="Benjamin Franklin"
|
|
21
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
22
|
+
>BF</span
|
|
23
|
+
></a
|
|
24
|
+
>
|
|
18
25
|
</div>
|
|
19
26
|
|
|
20
27
|
<h3 class="site-preview-heading">Rounded Avatar Group</h3>
|
|
21
28
|
<div class="usx-avatar-group">
|
|
22
|
-
<a
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
<a
|
|
30
|
+
href="https://google.com/search?q=George+Washington"
|
|
31
|
+
class="usx-avatar"
|
|
32
|
+
aria-label="George Washington"
|
|
33
|
+
><span class="usx-avatar__content usx-rounded-md bg-primary-lighter text-primary-darker"
|
|
34
|
+
>GW</span
|
|
35
|
+
></a
|
|
36
|
+
><a
|
|
37
|
+
href="https://google.com/search?q=Thomas+Jefferson"
|
|
38
|
+
class="usx-avatar"
|
|
39
|
+
aria-label="Thomas Jefferson"
|
|
40
|
+
><span class="usx-avatar__content usx-rounded-md bg-primary-lighter text-primary-darker"
|
|
41
|
+
>TJ</span
|
|
42
|
+
></a
|
|
43
|
+
><a
|
|
44
|
+
href="https://google.com/search?q=Benjamin+Franklin"
|
|
45
|
+
class="usx-avatar"
|
|
46
|
+
aria-label="Benjamin Franklin"
|
|
47
|
+
><span class="usx-avatar__content usx-rounded-md bg-primary-lighter text-primary-darker"
|
|
48
|
+
>BF</span
|
|
49
|
+
></a
|
|
50
|
+
>
|
|
41
51
|
</div>
|
|
42
52
|
|
|
43
53
|
<h3 class="site-preview-heading">Circle Avatar Group</h3>
|
|
44
54
|
<div class="usx-avatar-group">
|
|
45
|
-
<a
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
<a
|
|
56
|
+
href="https://google.com/search?q=George+Washington"
|
|
57
|
+
class="usx-avatar"
|
|
58
|
+
aria-label="George Washington"
|
|
59
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
60
|
+
>GW</span
|
|
61
|
+
></a
|
|
62
|
+
><a
|
|
63
|
+
href="https://google.com/search?q=Thomas+Jefferson"
|
|
64
|
+
class="usx-avatar"
|
|
65
|
+
aria-label="Thomas Jefferson"
|
|
66
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
67
|
+
>TJ</span
|
|
68
|
+
></a
|
|
69
|
+
><a
|
|
70
|
+
href="https://google.com/search?q=Benjamin+Franklin"
|
|
71
|
+
class="usx-avatar"
|
|
72
|
+
aria-label="Benjamin Franklin"
|
|
73
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
74
|
+
>BF</span
|
|
75
|
+
></a
|
|
76
|
+
>
|
|
64
77
|
</div>
|
|
65
78
|
|
|
66
79
|
<h3 class="site-preview-heading">Overlapping Avatars</h3>
|
|
67
80
|
<div class="usx-avatar-group usx-avatar-group--overlap">
|
|
68
|
-
<a
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
<a
|
|
82
|
+
href="https://google.com/search?q=George+Washington"
|
|
83
|
+
class="usx-avatar"
|
|
84
|
+
aria-label="George Washington"
|
|
85
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
86
|
+
>GW</span
|
|
87
|
+
></a
|
|
88
|
+
><a
|
|
89
|
+
href="https://google.com/search?q=Thomas+Jefferson"
|
|
90
|
+
class="usx-avatar"
|
|
91
|
+
aria-label="Thomas Jefferson"
|
|
92
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
93
|
+
>TJ</span
|
|
94
|
+
></a
|
|
95
|
+
><a
|
|
96
|
+
href="https://google.com/search?q=Benjamin+Franklin"
|
|
97
|
+
class="usx-avatar"
|
|
98
|
+
aria-label="Benjamin Franklin"
|
|
99
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
100
|
+
>BF</span
|
|
101
|
+
></a
|
|
102
|
+
>
|
|
87
103
|
</div>
|
|
88
104
|
|
|
89
105
|
<h3 class="site-preview-heading">Stacked Avatars</h3>
|
|
90
106
|
<div class="usx-avatar-group usx-avatar-group--stacked">
|
|
91
|
-
<a
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
<a
|
|
108
|
+
href="https://google.com/search?q=George+Washington"
|
|
109
|
+
class="usx-avatar"
|
|
110
|
+
aria-label="George Washington"
|
|
111
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
112
|
+
>GW</span
|
|
113
|
+
></a
|
|
114
|
+
><a
|
|
115
|
+
href="https://google.com/search?q=Thomas+Jefferson"
|
|
116
|
+
class="usx-avatar"
|
|
117
|
+
aria-label="Thomas Jefferson"
|
|
118
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
119
|
+
>TJ</span
|
|
120
|
+
></a
|
|
121
|
+
><a
|
|
122
|
+
href="https://google.com/search?q=Benjamin+Franklin"
|
|
123
|
+
class="usx-avatar"
|
|
124
|
+
aria-label="Benjamin Franklin"
|
|
125
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
126
|
+
>BF</span
|
|
127
|
+
></a
|
|
128
|
+
>
|
|
110
129
|
</div>
|
|
111
130
|
|
|
112
131
|
<h3 class="site-preview-heading">Overlapping Stacked Avatars</h3>
|
|
113
132
|
<div class="usx-avatar-group usx-avatar-group--overlap usx-avatar-group--stacked">
|
|
114
|
-
<a
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
<a
|
|
134
|
+
href="https://google.com/search?q=George+Washington"
|
|
135
|
+
class="usx-avatar"
|
|
136
|
+
aria-label="George Washington"
|
|
137
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
138
|
+
>GW</span
|
|
139
|
+
></a
|
|
140
|
+
><a
|
|
141
|
+
href="https://google.com/search?q=Thomas+Jefferson"
|
|
142
|
+
class="usx-avatar"
|
|
143
|
+
aria-label="Thomas Jefferson"
|
|
144
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
145
|
+
>TJ</span
|
|
146
|
+
></a
|
|
147
|
+
><a
|
|
148
|
+
href="https://google.com/search?q=Benjamin+Franklin"
|
|
149
|
+
class="usx-avatar"
|
|
150
|
+
aria-label="Benjamin Franklin"
|
|
151
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
152
|
+
>BF</span
|
|
153
|
+
></a
|
|
154
|
+
>
|
|
133
155
|
</div>
|
|
134
156
|
|
|
135
157
|
<h3 class="site-preview-heading">Overlapping Rounded Avatars</h3>
|
|
136
158
|
<div class="usx-avatar-group usx-avatar-group--overlap">
|
|
137
|
-
<a
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
159
|
+
<a
|
|
160
|
+
href="https://google.com/search?q=George+Washington"
|
|
161
|
+
class="usx-avatar"
|
|
162
|
+
aria-label="George Washington"
|
|
163
|
+
><span class="usx-avatar__content usx-rounded-md bg-primary-lighter text-primary-darker"
|
|
164
|
+
>GW</span
|
|
165
|
+
></a
|
|
166
|
+
><a
|
|
167
|
+
href="https://google.com/search?q=Thomas+Jefferson"
|
|
168
|
+
class="usx-avatar"
|
|
169
|
+
aria-label="Thomas Jefferson"
|
|
170
|
+
><span class="usx-avatar__content usx-rounded-md bg-primary-lighter text-primary-darker"
|
|
171
|
+
>TJ</span
|
|
172
|
+
></a
|
|
173
|
+
><a
|
|
174
|
+
href="https://google.com/search?q=Benjamin+Franklin"
|
|
175
|
+
class="usx-avatar"
|
|
176
|
+
aria-label="Benjamin Franklin"
|
|
177
|
+
><span class="usx-avatar__content usx-rounded-md bg-primary-lighter text-primary-darker"
|
|
178
|
+
>BF</span
|
|
179
|
+
></a
|
|
180
|
+
>
|
|
156
181
|
</div>
|
|
157
182
|
|
|
158
183
|
<h3 class="site-preview-heading">With Tooltips</h3>
|
|
159
184
|
<div class="usx-avatar-group usx-avatar-group--overlap">
|
|
160
185
|
<span class="usx-tooltip"
|
|
161
|
-
><a
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
186
|
+
><a
|
|
187
|
+
href="https://google.com/search?q=George+Washington"
|
|
188
|
+
class="usx-avatar"
|
|
189
|
+
aria-label="George Washington"
|
|
190
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
191
|
+
>GW</span
|
|
192
|
+
></a
|
|
167
193
|
><span class="usa-tooltip__body usa-tooltip__body--right" role="tooltip"
|
|
168
194
|
>George Washington</span
|
|
169
195
|
></span
|
|
170
196
|
><span class="usx-tooltip"
|
|
171
|
-
><a
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
197
|
+
><a
|
|
198
|
+
href="https://google.com/search?q=Thomas+Jefferson"
|
|
199
|
+
class="usx-avatar"
|
|
200
|
+
aria-label="Thomas Jefferson"
|
|
201
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
202
|
+
>TJ</span
|
|
203
|
+
></a
|
|
177
204
|
><span class="usa-tooltip__body usa-tooltip__body--right" role="tooltip"
|
|
178
205
|
>Thomas Jefferson</span
|
|
179
206
|
></span
|
|
180
207
|
><span class="usx-tooltip"
|
|
181
|
-
><a
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
208
|
+
><a
|
|
209
|
+
href="https://google.com/search?q=Benjamin+Franklin"
|
|
210
|
+
class="usx-avatar"
|
|
211
|
+
aria-label="Benjamin Franklin"
|
|
212
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
213
|
+
>BF</span
|
|
214
|
+
></a
|
|
187
215
|
><span class="usa-tooltip__body usa-tooltip__body--right" role="tooltip"
|
|
188
216
|
>Benjamin Franklin</span
|
|
189
217
|
></span
|
|
@@ -193,32 +221,35 @@
|
|
|
193
221
|
<h3 class="site-preview-heading">Stacked With Tooltips</h3>
|
|
194
222
|
<div class="usx-avatar-group usx-avatar-group--overlap usx-avatar-group--stacked">
|
|
195
223
|
<span class="usx-tooltip"
|
|
196
|
-
><a
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
224
|
+
><a
|
|
225
|
+
href="https://google.com/search?q=George+Washington"
|
|
226
|
+
class="usx-avatar"
|
|
227
|
+
aria-label="George Washington"
|
|
228
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
229
|
+
>GW</span
|
|
230
|
+
></a
|
|
202
231
|
><span class="usa-tooltip__body usa-tooltip__body--right" role="tooltip"
|
|
203
232
|
>George Washington</span
|
|
204
233
|
></span
|
|
205
234
|
><span class="usx-tooltip"
|
|
206
|
-
><a
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
235
|
+
><a
|
|
236
|
+
href="https://google.com/search?q=Thomas+Jefferson"
|
|
237
|
+
class="usx-avatar"
|
|
238
|
+
aria-label="Thomas Jefferson"
|
|
239
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
240
|
+
>TJ</span
|
|
241
|
+
></a
|
|
212
242
|
><span class="usa-tooltip__body usa-tooltip__body--right" role="tooltip"
|
|
213
243
|
>Thomas Jefferson</span
|
|
214
244
|
></span
|
|
215
245
|
><span class="usx-tooltip"
|
|
216
|
-
><a
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
246
|
+
><a
|
|
247
|
+
href="https://google.com/search?q=Benjamin+Franklin"
|
|
248
|
+
class="usx-avatar"
|
|
249
|
+
aria-label="Benjamin Franklin"
|
|
250
|
+
><span class="usx-avatar__content usx-circle bg-primary-lighter text-primary-darker"
|
|
251
|
+
>BF</span
|
|
252
|
+
></a
|
|
222
253
|
><span class="usa-tooltip__body usa-tooltip__body--right" role="tooltip"
|
|
223
254
|
>Benjamin Franklin</span
|
|
224
255
|
></span
|
|
@@ -228,7 +259,7 @@
|
|
|
228
259
|
<h3 class="site-preview-heading">Mixed avatars</h3>
|
|
229
260
|
<div class="usx-avatar-group usx-avatar-group--overlap">
|
|
230
261
|
<span class="usx-avatar" aria-label="Morgan"
|
|
231
|
-
><span class="usx-avatar__content usx-circle">MO</span></span
|
|
262
|
+
><span class="usx-avatar__content usx-circle bg-primary text-inverse">MO</span></span
|
|
232
263
|
><span class="usx-avatar"
|
|
233
264
|
><img
|
|
234
265
|
class="usx-avatar__img usx-circle"
|
|
@@ -239,7 +270,7 @@
|
|
|
239
270
|
class="usx-avatar border-05 border-info usx-circle"
|
|
240
271
|
role="img"
|
|
241
272
|
aria-label="Support bot, Automated assistant"
|
|
242
|
-
><span class="usx-avatar__content usx-circle"
|
|
273
|
+
><span class="usx-avatar__content usx-circle bg-info-lighter"
|
|
243
274
|
><svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
244
275
|
<use href="/img/sprite.svg#support_agent"></use></svg></span
|
|
245
276
|
></span>
|
|
@@ -6,18 +6,24 @@
|
|
|
6
6
|
"avatarProps": [
|
|
7
7
|
{
|
|
8
8
|
"href": "https://google.com/search?q=George+Washington",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
9
|
+
"variant": "initials",
|
|
10
|
+
"value": "GW",
|
|
11
|
+
"alt": "George Washington",
|
|
12
|
+
"contentClassName": "bg-primary-lighter text-primary-darker"
|
|
11
13
|
},
|
|
12
14
|
{
|
|
13
15
|
"href": "https://google.com/search?q=Thomas+Jefferson",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
+
"variant": "initials",
|
|
17
|
+
"value": "TJ",
|
|
18
|
+
"alt": "Thomas Jefferson",
|
|
19
|
+
"contentClassName": "bg-primary-lighter text-primary-darker"
|
|
16
20
|
},
|
|
17
21
|
{
|
|
18
22
|
"href": "https://google.com/search?q=Benjamin+Franklin",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
23
|
+
"variant": "initials",
|
|
24
|
+
"value": "BF",
|
|
25
|
+
"alt": "Benjamin Franklin",
|
|
26
|
+
"contentClassName": "bg-primary-lighter text-primary-darker"
|
|
21
27
|
}
|
|
22
28
|
]
|
|
23
29
|
},
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
<p class="usa-banner__header-text">
|
|
184
184
|
An unofficial website of the Not A Number organization
|
|
185
185
|
</p>
|
|
186
|
-
<p class="usa-banner__header-action">Here
|
|
186
|
+
<p class="usa-banner__header-action">Here's how you don't know</p>
|
|
187
187
|
</div>
|
|
188
188
|
<button
|
|
189
189
|
type="button"
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
aria-expanded="false"
|
|
192
192
|
aria-controls="django-gov-banner-custom-content"
|
|
193
193
|
>
|
|
194
|
-
<span class="usa-banner__button-text">Here
|
|
194
|
+
<span class="usa-banner__button-text">Here's how you don't know</span>
|
|
195
195
|
</button>
|
|
196
196
|
</div>
|
|
197
197
|
</header>
|
|
@@ -24,6 +24,7 @@ type ButtonBaseProps = {
|
|
|
24
24
|
href?: string;
|
|
25
25
|
isExternal?: boolean;
|
|
26
26
|
big?: boolean;
|
|
27
|
+
tighten?: boolean;
|
|
27
28
|
inverse?: boolean;
|
|
28
29
|
ghost?: boolean;
|
|
29
30
|
loading?: boolean;
|
|
@@ -49,6 +50,7 @@ export default function Button({
|
|
|
49
50
|
href,
|
|
50
51
|
isExternal = false,
|
|
51
52
|
big = false,
|
|
53
|
+
tighten = false,
|
|
52
54
|
inverse = false,
|
|
53
55
|
ghost = false,
|
|
54
56
|
loading = false,
|
|
@@ -81,6 +83,7 @@ export default function Button({
|
|
|
81
83
|
'usx-button',
|
|
82
84
|
variant && variantClasses[variant],
|
|
83
85
|
big && 'usa-button--big',
|
|
86
|
+
tighten && 'usx-button--tight',
|
|
84
87
|
inverse && 'usa-button--inverse',
|
|
85
88
|
ghost && 'usx-button--ghost',
|
|
86
89
|
className
|
|
@@ -265,6 +265,70 @@
|
|
|
265
265
|
Unstyled button
|
|
266
266
|
</button>
|
|
267
267
|
|
|
268
|
+
<h3 class="site-preview-heading">Tight</h3>
|
|
269
|
+
<button type="button" class="usa-button usx-button usa-button--primary usx-button--tight">
|
|
270
|
+
Tight
|
|
271
|
+
</button>
|
|
272
|
+
|
|
273
|
+
<h3 class="site-preview-heading">Big Tight</h3>
|
|
274
|
+
<button
|
|
275
|
+
type="button"
|
|
276
|
+
class="usa-button usx-button usa-button--primary usa-button--big usx-button--tight"
|
|
277
|
+
>
|
|
278
|
+
Big tight
|
|
279
|
+
</button>
|
|
280
|
+
|
|
281
|
+
<h3 class="site-preview-heading">Icon Only</h3>
|
|
282
|
+
<button type="button" class="usa-button usx-button usa-button--primary" aria-label="Search">
|
|
283
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
284
|
+
<use href="img/sprite.svg#search"></use>
|
|
285
|
+
</svg>
|
|
286
|
+
</button>
|
|
287
|
+
|
|
288
|
+
<h3 class="site-preview-heading">Icon Only Tight</h3>
|
|
289
|
+
<button
|
|
290
|
+
type="button"
|
|
291
|
+
class="usa-button usx-button usa-button--primary usx-button--tight"
|
|
292
|
+
aria-label="Search"
|
|
293
|
+
>
|
|
294
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
295
|
+
<use href="img/sprite.svg#search"></use>
|
|
296
|
+
</svg>
|
|
297
|
+
</button>
|
|
298
|
+
|
|
299
|
+
<h3 class="site-preview-heading">Icon Only Big</h3>
|
|
300
|
+
<button
|
|
301
|
+
type="button"
|
|
302
|
+
class="usa-button usx-button usa-button--primary usa-button--big"
|
|
303
|
+
aria-label="Search"
|
|
304
|
+
>
|
|
305
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
306
|
+
<use href="img/sprite.svg#search"></use>
|
|
307
|
+
</svg>
|
|
308
|
+
</button>
|
|
309
|
+
|
|
310
|
+
<h3 class="site-preview-heading">Icon Only Big Tight</h3>
|
|
311
|
+
<button
|
|
312
|
+
type="button"
|
|
313
|
+
class="usa-button usx-button usa-button--primary usa-button--big usx-button--tight"
|
|
314
|
+
aria-label="Search"
|
|
315
|
+
>
|
|
316
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
317
|
+
<use href="img/sprite.svg#search"></use>
|
|
318
|
+
</svg>
|
|
319
|
+
</button>
|
|
320
|
+
|
|
321
|
+
<h3 class="site-preview-heading">Icon Only Ghost</h3>
|
|
322
|
+
<button
|
|
323
|
+
type="button"
|
|
324
|
+
class="usa-button usx-button usa-button--primary usx-button--ghost"
|
|
325
|
+
aria-label="Search"
|
|
326
|
+
>
|
|
327
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
328
|
+
<use href="img/sprite.svg#search"></use>
|
|
329
|
+
</svg>
|
|
330
|
+
</button>
|
|
331
|
+
|
|
268
332
|
<h3 class="site-preview-heading">Ghost</h3>
|
|
269
333
|
<button type="button" class="usa-button usx-button usx-button--ghost">Ghost</button>
|
|
270
334
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
usa-button usx-button
|
|
9
9
|
{% if variant %} usa-button--{{ variant }}{% endif %}
|
|
10
10
|
{% if big == True %} usa-button--big{% endif %}
|
|
11
|
+
{% if tighten == True %} usx-button--tight{% endif %}
|
|
11
12
|
{% if disabled == True %} usa-button--disabled{% endif %}
|
|
12
13
|
{% if inverse == True %} usa-button--inverse{% endif %}
|
|
13
14
|
{% if ghost == True %} usx-button--ghost{% endif %}
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
usa-button usx-button
|
|
26
27
|
{% if variant %} usa-button--{{ variant }}{% endif %}
|
|
27
28
|
{% if big == True %} usa-button--big{% endif %}
|
|
29
|
+
{% if tighten == True %} usx-button--tight{% endif %}
|
|
28
30
|
{% if inverse == True %} usa-button--inverse{% endif %}
|
|
29
31
|
{% if ghost == True %} usx-button--ghost{% endif %}
|
|
30
32
|
{% if className %} {{ className }}{% endif %}
|