@solexllc/usx-react 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/Popover-BzDCTuQM.cjs +984 -0
- package/dist/Popover-LToVWsWc.js +985 -0
- package/dist/chat.cjs +1391 -0
- package/dist/chat.js +1391 -0
- package/dist/index.cjs +4428 -5290
- package/dist/index.js +58 -917
- package/package.json +7 -3
- package/src/chat.js +15 -0
- package/src/components/avatar/Avatar.tsx +54 -16
- package/src/components/avatar/avatar.django-snapshot.html +112 -0
- package/src/components/avatar/avatar.django.html +2 -2
- package/src/components/avatar/avatar.html +25 -0
- package/src/components/avatar/avatar.react-snapshot.html +104 -0
- package/src/components/avatar/config.json +13 -15
- package/src/components/avatar-group/AvatarGroup.tsx +17 -15
- package/src/components/avatar-group/avatar-group.django-snapshot.html +22 -0
- package/src/components/avatar-group/avatar-group.django.html +1 -1
- package/src/components/avatar-group/avatar-group.react-snapshot.html +20 -0
- package/src/components/avatar-group/config.json +2 -2
- package/src/components/back-to-top/BackToTop.tsx +21 -57
- package/src/components/back-to-top/back-to-top.django-snapshot.html +101 -202
- package/src/components/back-to-top/back-to-top.django.html +11 -38
- package/src/components/back-to-top/back-to-top.html +22 -106
- package/src/components/back-to-top/back-to-top.react-snapshot.html +94 -148
- package/src/components/back-to-top/config.json +41 -10
- package/src/components/button/Button.tsx +12 -3
- package/src/components/button/button.django-snapshot.html +18 -0
- package/src/components/button/button.django.html +3 -2
- package/src/components/button/button.react-snapshot.html +16 -0
- package/src/components/button/config.json +11 -2
- package/src/components/callout/callout.django.html +1 -1
- package/src/components/callout/config.json +7 -16
- package/src/components/character-count/CharacterCount.tsx +2 -0
- package/src/components/character-count/character-count.react-snapshot.html +7 -0
- package/src/components/chat/Chat.tsx +575 -0
- package/src/components/chat/README.md +174 -0
- package/src/components/chat/avatarProps.ts +32 -0
- package/src/components/chat/chat.django-snapshot.html +23515 -0
- package/src/components/chat/chat.django.html +75 -0
- package/src/components/chat/chat.html +116 -0
- package/src/components/chat/chat.react-snapshot.html +16895 -0
- package/src/components/chat/config.json +1241 -0
- package/src/components/chat-attachment/ChatAttachment.tsx +39 -0
- package/src/components/chat-attachment/chat-attachment.django.html +24 -0
- package/src/components/chat-attachment/chat-attachment.html +10 -0
- package/src/components/chat-attachment/config.json +27 -0
- package/src/components/chat-attachments/ChatAttachments.tsx +17 -0
- package/src/components/chat-attachments/chat-attachments.django-snapshot.html +58 -0
- package/src/components/chat-attachments/chat-attachments.django.html +10 -0
- package/src/components/chat-attachments/chat-attachments.html +14 -0
- package/src/components/chat-attachments/chat-attachments.react-snapshot.html +46 -0
- package/src/components/chat-attachments/config.json +25 -0
- package/src/components/chat-bubble/ChatBubble.tsx +39 -0
- package/src/components/chat-bubble/ChatFormattedText.tsx +138 -0
- package/src/components/chat-bubble/chat-bubble.django-snapshot.html +128 -0
- package/src/components/chat-bubble/chat-bubble.django.html +19 -0
- package/src/components/chat-bubble/chat-bubble.html +1 -0
- package/src/components/chat-bubble/chat-bubble.react-snapshot.html +118 -0
- package/src/components/chat-bubble/config.json +70 -0
- package/src/components/chat-composer/ChatComposer.tsx +210 -0
- package/src/components/chat-composer/README.md +15 -0
- package/src/components/chat-composer/chat-composer.django-snapshot.html +575 -0
- package/src/components/chat-composer/chat-composer.django.html +77 -0
- package/src/components/chat-composer/chat-composer.html +44 -0
- package/src/components/chat-composer/chat-composer.react-snapshot.html +519 -0
- package/src/components/chat-composer/chat-formatting.django.html +59 -0
- package/src/components/chat-composer/config.json +137 -0
- package/src/components/chat-context/ChatContext.tsx +46 -0
- package/src/components/chat-context/chat-context.django-snapshot.html +35 -0
- package/src/components/chat-context/chat-context.django.html +20 -0
- package/src/components/chat-context/chat-context.html +9 -0
- package/src/components/chat-context/chat-context.react-snapshot.html +30 -0
- package/src/components/chat-context/config.json +36 -0
- package/src/components/chat-controls/ChatControls.tsx +67 -0
- package/src/components/chat-controls/chat-controls.django-snapshot.html +114 -0
- package/src/components/chat-controls/chat-controls.django.html +36 -0
- package/src/components/chat-controls/chat-controls.html +11 -0
- package/src/components/chat-controls/chat-controls.react-snapshot.html +107 -0
- package/src/components/chat-controls/config.json +67 -0
- package/src/components/chat-directory/ChatDirectory.tsx +168 -0
- package/src/components/chat-directory/chat-directory.django-snapshot.html +546 -0
- package/src/components/chat-directory/chat-directory.django.html +14 -0
- package/src/components/chat-directory/chat-directory.html +4 -0
- package/src/components/chat-directory/chat-directory.react-snapshot.html +471 -0
- package/src/components/chat-directory/config.json +242 -0
- package/src/components/chat-directory-item/ChatDirectoryItem.tsx +150 -0
- package/src/components/chat-directory-item/chat-directory-item.django-snapshot.html +281 -0
- package/src/components/chat-directory-item/chat-directory-item.django.html +38 -0
- package/src/components/chat-directory-item/chat-directory-item.html +9 -0
- package/src/components/chat-directory-item/chat-directory-item.react-snapshot.html +249 -0
- package/src/components/chat-directory-item/config.json +103 -0
- package/src/components/chat-history/ChatHistory.tsx +30 -0
- package/src/components/chat-history/chat-history.django-snapshot.html +113 -0
- package/src/components/chat-history/chat-history.django.html +20 -0
- package/src/components/chat-history/chat-history.html +9 -0
- package/src/components/chat-history/chat-history.react-snapshot.html +111 -0
- package/src/components/chat-history/config.json +24 -0
- package/src/components/chat-message/ChatMessage.tsx +148 -0
- package/src/components/chat-message/chat-message.django-snapshot.html +758 -0
- package/src/components/chat-message/chat-message.django.html +56 -0
- package/src/components/chat-message/chat-message.html +12 -0
- package/src/components/chat-message/chat-message.react-snapshot.html +627 -0
- package/src/components/chat-message/config.json +278 -0
- package/src/components/chat-message-actions/ChatMessageActions.tsx +133 -0
- package/src/components/chat-message-actions/chat-message-actions.django-snapshot.html +345 -0
- package/src/components/chat-message-actions/chat-message-actions.django.html +29 -0
- package/src/components/chat-message-actions/chat-message-actions.html +53 -0
- package/src/components/chat-message-actions/chat-message-actions.react-snapshot.html +295 -0
- package/src/components/chat-message-actions/config.json +121 -0
- package/src/components/chat-window/ChatWindow.tsx +133 -0
- package/src/components/chat-window/chat-window.django-snapshot.html +448 -0
- package/src/components/chat-window/chat-window.django.html +39 -0
- package/src/components/chat-window/chat-window.html +26 -0
- package/src/components/chat-window/chat-window.react-snapshot.html +286 -0
- package/src/components/chat-window/config.json +123 -0
- package/src/components/clickable/Clickable.tsx +19 -5
- package/src/components/clickable/clickable.django-snapshot.html +11 -2
- package/src/components/clickable/clickable.django.html +2 -0
- package/src/components/clickable/clickable.react-snapshot.html +10 -2
- package/src/components/clickable/config.json +4 -0
- package/src/components/code/code.django-snapshot.html +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/file-list/FileList.tsx +3 -2
- package/src/components/file-list/config.json +5 -0
- package/src/components/file-list/file-list.django-snapshot.html +63 -0
- package/src/components/file-list/file-list.django.html +1 -1
- package/src/components/file-list/file-list.react-snapshot.html +53 -0
- package/src/components/footer/footer.django-snapshot.html +0 -3
- package/src/components/header/header.django-snapshot.html +0 -160
- package/src/components/header/header.django.html +2 -2
- package/src/components/hero/hero.django-snapshot.html +0 -20
- package/src/components/hero/hero.django.html +3 -3
- package/src/components/image/image.django.html +4 -4
- package/src/components/input/Input.tsx +1 -1
- package/src/components/input/config.json +2 -3
- package/src/components/input/input.django-snapshot.html +4 -21
- package/src/components/input/input.django.html +2 -2
- package/src/components/link/Link.tsx +7 -4
- package/src/components/link/config.json +2 -3
- package/src/components/link/link.django-snapshot.html +8 -0
- package/src/components/link/link.django.html +2 -2
- package/src/components/link/link.html +4 -1
- package/src/components/link/link.react-snapshot.html +8 -0
- package/src/components/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/popover/Popover.tsx +60 -9
- package/src/components/popover/PopoverMenu.tsx +33 -15
- package/src/components/popover/config.json +88 -14
- package/src/components/popover/popover-menu.django.html +13 -2
- package/src/components/popover/popover.django-snapshot.html +229 -7
- package/src/components/popover/popover.django.html +3 -2
- package/src/components/popover/popover.react-snapshot.html +127 -4
- package/src/components/process-list/config.json +41 -3
- package/src/components/quote/Quote.tsx +9 -2
- package/src/components/search/Search.tsx +1 -1
- package/src/components/search/config.json +3 -4
- package/src/components/search/search.django-snapshot.html +262 -1684
- package/src/components/search/search.django.html +1 -20
- package/src/components/select/select.django-snapshot.html +7 -7
- package/src/components/select/select.react-snapshot.html +7 -7
- package/src/components/summary/Summary.tsx +4 -2
- package/src/components/summary/config.json +4 -0
- package/src/components/summary/summary.django.html +4 -4
- package/src/components/table/Table.tsx +58 -25
- package/src/components/table/config.json +61 -13
- package/src/components/tag/Tag.tsx +40 -7
- package/src/components/tag/config.json +18 -2
- package/src/components/tag/tag.django-snapshot.html +16 -1
- package/src/components/tag/tag.django.html +12 -6
- package/src/components/tag/tag.html +4 -0
- package/src/components/tag/tag.react-snapshot.html +16 -1
- package/src/components/tag-group/TagGroup.tsx +6 -9
- package/src/components/tag-group/config.json +4 -0
- package/src/components/tag-group/tag-group.django.html +1 -1
|
@@ -8,6 +8,28 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
</details>
|
|
10
10
|
|
|
11
|
+
<h3 class="site-preview-heading">Persistent</h3>
|
|
12
|
+
<details
|
|
13
|
+
class="usx-popover"
|
|
14
|
+
data-side="bottom"
|
|
15
|
+
data-align="start"
|
|
16
|
+
data-usx-popover-dismiss-on-outside="false"
|
|
17
|
+
>
|
|
18
|
+
<summary class="usa-button usx-button">Keep this panel open</summary>
|
|
19
|
+
<div id="react-popover-persistent" class="usx-popover__panel">
|
|
20
|
+
<div class="usx-popover__panel-content">
|
|
21
|
+
This panel stays open when you interact with the page.
|
|
22
|
+
</div>
|
|
23
|
+
<button
|
|
24
|
+
type="button"
|
|
25
|
+
class="usa-button usx-button usa-button--unstyled usx-popover__panel-close"
|
|
26
|
+
data-usx-popover-close="react-popover-persistent"
|
|
27
|
+
>
|
|
28
|
+
Close
|
|
29
|
+
</button>
|
|
30
|
+
</div>
|
|
31
|
+
</details>
|
|
32
|
+
|
|
11
33
|
<h3 class="site-preview-heading">Rounded Panel</h3>
|
|
12
34
|
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
13
35
|
<summary class="usa-button usx-button usa-button--primary margin-0">Rounded panel</summary>
|
|
@@ -59,6 +81,63 @@
|
|
|
59
81
|
</div>
|
|
60
82
|
</details>
|
|
61
83
|
|
|
84
|
+
<h3 class="site-preview-heading">Header Actions</h3>
|
|
85
|
+
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
86
|
+
<summary class="usa-button usx-button margin-0">Open record</summary>
|
|
87
|
+
<div id="react-popover-header-actions" class="usx-popover__panel">
|
|
88
|
+
<header class="usx-popover__header">
|
|
89
|
+
<div class="usx-popover__header-left-actions">
|
|
90
|
+
<button
|
|
91
|
+
type="button"
|
|
92
|
+
class="usa-button usx-button usa-button--unstyled usx-popover__header-action"
|
|
93
|
+
aria-label="Back to records"
|
|
94
|
+
>
|
|
95
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
96
|
+
<use href="/img/sprite.svg#arrow_back"></use>
|
|
97
|
+
</svg>
|
|
98
|
+
</button>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="usx-popover__header-content">
|
|
101
|
+
<h2 class="usx-popover__panel-heading" tabindex="-1">Record 10482</h2>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="usx-popover__header-right-actions">
|
|
104
|
+
<details class="usx-popover" data-side="bottom" data-align="end">
|
|
105
|
+
<summary
|
|
106
|
+
class="usa-button usx-button usa-button--unstyled usx-popover__header-action"
|
|
107
|
+
aria-label="Record actions"
|
|
108
|
+
>
|
|
109
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
110
|
+
<use href="/img/sprite.svg#more_vert"></use>
|
|
111
|
+
</svg>
|
|
112
|
+
</summary>
|
|
113
|
+
<div id="react-popover-header-actions-menu" class="usx-popover__panel">
|
|
114
|
+
<ul class="usx-popover__menu">
|
|
115
|
+
<li>
|
|
116
|
+
<button type="button" class="usx-popover__menu-item">
|
|
117
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
118
|
+
<use href="/img/sprite.svg#content_copy"></use></svg
|
|
119
|
+
>Copy record
|
|
120
|
+
</button>
|
|
121
|
+
</li>
|
|
122
|
+
</ul>
|
|
123
|
+
</div>
|
|
124
|
+
</details>
|
|
125
|
+
<button
|
|
126
|
+
type="button"
|
|
127
|
+
class="usa-button usx-button usa-button--unstyled usx-popover__header-action usx-popover__header-close"
|
|
128
|
+
aria-label="Close record"
|
|
129
|
+
data-usx-popover-close="react-popover-header-actions"
|
|
130
|
+
>
|
|
131
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
132
|
+
<use href="/img/sprite.svg#close"></use>
|
|
133
|
+
</svg>
|
|
134
|
+
</button>
|
|
135
|
+
</div>
|
|
136
|
+
</header>
|
|
137
|
+
<div class="usx-popover__panel-content">Review the record before taking action.</div>
|
|
138
|
+
</div>
|
|
139
|
+
</details>
|
|
140
|
+
|
|
62
141
|
<h3 class="site-preview-heading">Menu Items</h3>
|
|
63
142
|
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
64
143
|
<summary class="usa-button usx-button usa-button--primary margin-0">Resident services</summary>
|
|
@@ -169,6 +248,34 @@
|
|
|
169
248
|
</div>
|
|
170
249
|
</details>
|
|
171
250
|
|
|
251
|
+
<h3 class="site-preview-heading">Mixed Menu Items</h3>
|
|
252
|
+
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
253
|
+
<summary class="usa-button usx-button margin-0">Record actions</summary>
|
|
254
|
+
<div id="react-popover-mixed-menu-items" class="usx-popover__panel">
|
|
255
|
+
<ul class="usx-popover__menu">
|
|
256
|
+
<li>
|
|
257
|
+
<button type="button" class="usx-popover__menu-item">
|
|
258
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
259
|
+
<use href="/img/sprite.svg#content_copy"></use></svg
|
|
260
|
+
>Copy record
|
|
261
|
+
</button>
|
|
262
|
+
</li>
|
|
263
|
+
<li>
|
|
264
|
+
<a
|
|
265
|
+
href="#react-record-10482"
|
|
266
|
+
class="usa-link usx-link usx-no-visited usx-popover__menu-item"
|
|
267
|
+
>View record</a
|
|
268
|
+
>
|
|
269
|
+
</li>
|
|
270
|
+
<li><span class="usx-popover__menu-item">Record actions require an account</span></li>
|
|
271
|
+
<li>
|
|
272
|
+
<button type="button" class="usx-popover__menu-item" disabled="">Archive record</button>
|
|
273
|
+
</li>
|
|
274
|
+
</ul>
|
|
275
|
+
<div class="usx-popover__panel-content"><p id="react-record-10482">Record 10482</p></div>
|
|
276
|
+
</div>
|
|
277
|
+
</details>
|
|
278
|
+
|
|
172
279
|
<h3 class="site-preview-heading">Square Menu Items</h3>
|
|
173
280
|
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
174
281
|
<summary class="usa-button usx-button usa-button--primary margin-0">Resident services</summary>
|
|
@@ -299,7 +406,11 @@
|
|
|
299
406
|
><span>Account and services</span><span class="usa-tag margin-left-1">3</span>
|
|
300
407
|
</summary>
|
|
301
408
|
<div id="react-popover-worst-case" class="usx-popover__panel font-sans-sm">
|
|
302
|
-
<
|
|
409
|
+
<header class="usx-popover__header">
|
|
410
|
+
<div class="usx-popover__header-content">
|
|
411
|
+
<h2 class="usx-popover__panel-heading" tabindex="-1">Account and services</h2>
|
|
412
|
+
</div>
|
|
413
|
+
</header>
|
|
303
414
|
<ul class="usx-popover__menu">
|
|
304
415
|
<li>
|
|
305
416
|
<details
|
|
@@ -502,7 +613,11 @@
|
|
|
502
613
|
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
503
614
|
<summary class="usa-button usx-button usa-button--primary margin-0">Important dates</summary>
|
|
504
615
|
<div id="react-popover-heading-default" class="usx-popover__panel">
|
|
505
|
-
<
|
|
616
|
+
<header class="usx-popover__header">
|
|
617
|
+
<div class="usx-popover__header-content">
|
|
618
|
+
<h2 class="usx-popover__panel-heading" tabindex="-1">Filing deadlines</h2>
|
|
619
|
+
</div>
|
|
620
|
+
</header>
|
|
506
621
|
<div class="usx-popover__panel-content">
|
|
507
622
|
<p class="margin-0">Applications are due by the last business day of the month.</p>
|
|
508
623
|
</div>
|
|
@@ -520,7 +635,11 @@
|
|
|
520
635
|
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
521
636
|
<summary class="usa-button usx-button usa-button--primary margin-0">Important dates</summary>
|
|
522
637
|
<div id="react-popover-heading-h3" class="usx-popover__panel">
|
|
523
|
-
<
|
|
638
|
+
<header class="usx-popover__header">
|
|
639
|
+
<div class="usx-popover__header-content">
|
|
640
|
+
<h3 class="usx-popover__panel-heading" tabindex="-1">Filing deadlines</h3>
|
|
641
|
+
</div>
|
|
642
|
+
</header>
|
|
524
643
|
<div class="usx-popover__panel-content">
|
|
525
644
|
<p class="margin-0">Applications are due by the last business day of the month.</p>
|
|
526
645
|
</div>
|
|
@@ -538,7 +657,11 @@
|
|
|
538
657
|
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
539
658
|
<summary class="usa-button usx-button usa-button--primary margin-0">Important dates</summary>
|
|
540
659
|
<div id="react-popover-heading-h5" class="usx-popover__panel">
|
|
541
|
-
<
|
|
660
|
+
<header class="usx-popover__header">
|
|
661
|
+
<div class="usx-popover__header-content">
|
|
662
|
+
<h5 class="usx-popover__panel-heading" tabindex="-1">Filing deadlines</h5>
|
|
663
|
+
</div>
|
|
664
|
+
</header>
|
|
542
665
|
<div class="usx-popover__panel-content">
|
|
543
666
|
<p class="margin-0">Applications are due by the last business day of the month.</p>
|
|
544
667
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "process-list",
|
|
3
3
|
"template": "process-list/process-list.django.html",
|
|
4
|
-
"version":
|
|
4
|
+
"version": 5,
|
|
5
5
|
"default": {
|
|
6
6
|
"items": [
|
|
7
7
|
{
|
|
@@ -20,8 +20,46 @@
|
|
|
20
20
|
},
|
|
21
21
|
"props": {
|
|
22
22
|
"items": {
|
|
23
|
-
"type": "
|
|
24
|
-
"description": "Array of process list item objects. Each item supports: heading (required), headingAs (default h4), headingClassName, body (markup, rendered as-is; wrap plain text in a <p>), bodyClassName (wraps the body in a <div> with these classes), and className (applied to the <li>)."
|
|
23
|
+
"type": "array",
|
|
24
|
+
"description": "Array of process list item objects. Each item supports: heading (required), headingAs (default h4), headingClassName, body (markup, rendered as-is; wrap plain text in a <p>), bodyClassName (wraps the body in a <div> with these classes), and className (applied to the <li>).",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"properties": {
|
|
28
|
+
"heading": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Step heading text."
|
|
31
|
+
},
|
|
32
|
+
"headingAs": {
|
|
33
|
+
"type": "select",
|
|
34
|
+
"options": [
|
|
35
|
+
"h2",
|
|
36
|
+
"h3",
|
|
37
|
+
"h4",
|
|
38
|
+
"h5",
|
|
39
|
+
"h6",
|
|
40
|
+
"p"
|
|
41
|
+
],
|
|
42
|
+
"description": "Heading element; defaults to h4."
|
|
43
|
+
},
|
|
44
|
+
"headingClassName": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Additional heading classes."
|
|
47
|
+
},
|
|
48
|
+
"body": {
|
|
49
|
+
"type": "slot",
|
|
50
|
+
"description": "Step content, supplied as a React node or Django HTML."
|
|
51
|
+
},
|
|
52
|
+
"bodyClassName": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Optional classes for a div around the body."
|
|
55
|
+
},
|
|
56
|
+
"className": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"description": "Additional classes for the list item."
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"description": "A step in the process."
|
|
62
|
+
}
|
|
25
63
|
},
|
|
26
64
|
"className": {
|
|
27
65
|
"type": "string",
|
|
@@ -29,7 +29,10 @@ export default function Quote({
|
|
|
29
29
|
}: QuoteProps) {
|
|
30
30
|
const isVertical = calloutProps?.orientation === 'vertical';
|
|
31
31
|
return (
|
|
32
|
-
<div
|
|
32
|
+
<div
|
|
33
|
+
className={ClassNames('usx-quote', isVertical && 'usx-quote--vertical', className)}
|
|
34
|
+
{...props}
|
|
35
|
+
>
|
|
33
36
|
{!isVertical && <Icon name="format_quote" size={4} className="usx-quote__icon" />}
|
|
34
37
|
<Callout {...calloutProps} as="div">
|
|
35
38
|
<figure className="usx-quote__body">
|
|
@@ -46,7 +49,11 @@ export default function Quote({
|
|
|
46
49
|
{attributionProps && <Attribution {...attributionProps} />}
|
|
47
50
|
{sourceTitle && (
|
|
48
51
|
<cite>
|
|
49
|
-
{sourceLinkProps ?
|
|
52
|
+
{sourceLinkProps?.href ? (
|
|
53
|
+
<Link {...sourceLinkProps}>{sourceTitle}</Link>
|
|
54
|
+
) : (
|
|
55
|
+
sourceTitle
|
|
56
|
+
)}
|
|
50
57
|
</cite>
|
|
51
58
|
)}
|
|
52
59
|
</figcaption>
|
|
@@ -78,7 +78,7 @@ export default function Search({
|
|
|
78
78
|
label={label}
|
|
79
79
|
screenReaderOnlyLabel={true}
|
|
80
80
|
placeholder={placeholder ?? ''}
|
|
81
|
-
{...(value
|
|
81
|
+
{...(value != null ? { value } : { defaultValue })}
|
|
82
82
|
onChange={onChange}
|
|
83
83
|
type="search"
|
|
84
84
|
name={searchKey}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "search",
|
|
3
3
|
"template": "search/search.django.html",
|
|
4
|
-
"version":
|
|
4
|
+
"version": 3,
|
|
5
5
|
"default": {
|
|
6
6
|
"id": "search-default"
|
|
7
7
|
},
|
|
@@ -63,9 +63,8 @@
|
|
|
63
63
|
"description": "Current search query. Takes precedence over defaultValue."
|
|
64
64
|
},
|
|
65
65
|
"onSubmit": {
|
|
66
|
-
"type": "
|
|
67
|
-
"
|
|
68
|
-
"description": "JavaScript function to call on search submit, receives the search query as an argument"
|
|
66
|
+
"type": "function",
|
|
67
|
+
"description": "Host-provided React submit callback receiving the query. Django hosts attach a submit listener to the rendered form; templates never execute JavaScript strings."
|
|
69
68
|
},
|
|
70
69
|
"className": {
|
|
71
70
|
"type": "string",
|