@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
|
@@ -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,90 @@
|
|
|
59
81
|
</div>
|
|
60
82
|
</details>
|
|
61
83
|
|
|
84
|
+
<h3 class="site-preview-heading">Show Close Icon</h3>
|
|
85
|
+
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
86
|
+
<summary class="usa-button usx-button usa-button--primary margin-0">
|
|
87
|
+
Open panel with close icon
|
|
88
|
+
</summary>
|
|
89
|
+
<div id="react-popover-close-icon" class="usx-popover__panel">
|
|
90
|
+
<header class="usx-popover__header">
|
|
91
|
+
<div class="usx-popover__header-content">
|
|
92
|
+
<h2 class="usx-popover__panel-heading" tabindex="-1">Panel with close icon</h2>
|
|
93
|
+
</div>
|
|
94
|
+
<div class="usx-popover__header-right-actions">
|
|
95
|
+
<button
|
|
96
|
+
type="button"
|
|
97
|
+
class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close"
|
|
98
|
+
aria-label="Close panel"
|
|
99
|
+
data-usx-popover-close="react-popover-close-icon"
|
|
100
|
+
>
|
|
101
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
102
|
+
<use href="/img/sprite.svg#close"></use>
|
|
103
|
+
</svg>
|
|
104
|
+
</button>
|
|
105
|
+
</div>
|
|
106
|
+
</header>
|
|
107
|
+
<div class="usx-popover__panel-content">Use the icon in the header to close this panel.</div>
|
|
108
|
+
</div>
|
|
109
|
+
</details>
|
|
110
|
+
|
|
111
|
+
<h3 class="site-preview-heading">Header Actions</h3>
|
|
112
|
+
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
113
|
+
<summary class="usa-button usx-button margin-0">Open record</summary>
|
|
114
|
+
<div id="react-popover-header-actions" class="usx-popover__panel">
|
|
115
|
+
<header class="usx-popover__header">
|
|
116
|
+
<div class="usx-popover__header-left-actions">
|
|
117
|
+
<button
|
|
118
|
+
type="button"
|
|
119
|
+
class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action"
|
|
120
|
+
aria-label="Back to records"
|
|
121
|
+
>
|
|
122
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
123
|
+
<use href="/img/sprite.svg#arrow_back"></use>
|
|
124
|
+
</svg>
|
|
125
|
+
</button>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="usx-popover__header-content">
|
|
128
|
+
<h2 class="usx-popover__panel-heading" tabindex="-1">Record 10482</h2>
|
|
129
|
+
</div>
|
|
130
|
+
<div class="usx-popover__header-right-actions">
|
|
131
|
+
<details class="usx-popover" data-side="bottom" data-align="end">
|
|
132
|
+
<summary
|
|
133
|
+
class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action"
|
|
134
|
+
aria-label="Record actions"
|
|
135
|
+
>
|
|
136
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
137
|
+
<use href="/img/sprite.svg#more_vert"></use>
|
|
138
|
+
</svg>
|
|
139
|
+
</summary>
|
|
140
|
+
<div id="react-popover-header-actions-menu" class="usx-popover__panel">
|
|
141
|
+
<ul class="usx-popover__menu">
|
|
142
|
+
<li>
|
|
143
|
+
<button type="button" class="usx-popover__menu-item">
|
|
144
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
145
|
+
<use href="/img/sprite.svg#content_copy"></use></svg
|
|
146
|
+
>Copy record
|
|
147
|
+
</button>
|
|
148
|
+
</li>
|
|
149
|
+
</ul>
|
|
150
|
+
</div>
|
|
151
|
+
</details>
|
|
152
|
+
<button
|
|
153
|
+
type="button"
|
|
154
|
+
class="usa-button usx-button usa-button--unstyled usx-button--tight usx-popover__header-action usx-popover__header-close"
|
|
155
|
+
aria-label="Close record"
|
|
156
|
+
data-usx-popover-close="react-popover-header-actions"
|
|
157
|
+
>
|
|
158
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
159
|
+
<use href="/img/sprite.svg#close"></use>
|
|
160
|
+
</svg>
|
|
161
|
+
</button>
|
|
162
|
+
</div>
|
|
163
|
+
</header>
|
|
164
|
+
<div class="usx-popover__panel-content">Review the record before taking action.</div>
|
|
165
|
+
</div>
|
|
166
|
+
</details>
|
|
167
|
+
|
|
62
168
|
<h3 class="site-preview-heading">Menu Items</h3>
|
|
63
169
|
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
64
170
|
<summary class="usa-button usx-button usa-button--primary margin-0">Resident services</summary>
|
|
@@ -169,6 +275,34 @@
|
|
|
169
275
|
</div>
|
|
170
276
|
</details>
|
|
171
277
|
|
|
278
|
+
<h3 class="site-preview-heading">Mixed Menu Items</h3>
|
|
279
|
+
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
280
|
+
<summary class="usa-button usx-button margin-0">Record actions</summary>
|
|
281
|
+
<div id="react-popover-mixed-menu-items" class="usx-popover__panel">
|
|
282
|
+
<ul class="usx-popover__menu">
|
|
283
|
+
<li>
|
|
284
|
+
<button type="button" class="usx-popover__menu-item">
|
|
285
|
+
<svg class="usa-icon usx-icon" aria-hidden="true" focusable="false" role="img">
|
|
286
|
+
<use href="/img/sprite.svg#content_copy"></use></svg
|
|
287
|
+
>Copy record
|
|
288
|
+
</button>
|
|
289
|
+
</li>
|
|
290
|
+
<li>
|
|
291
|
+
<a
|
|
292
|
+
href="#react-record-10482"
|
|
293
|
+
class="usa-link usx-link usx-no-visited usx-popover__menu-item"
|
|
294
|
+
>View record</a
|
|
295
|
+
>
|
|
296
|
+
</li>
|
|
297
|
+
<li><span class="usx-popover__menu-item">Record actions require an account</span></li>
|
|
298
|
+
<li>
|
|
299
|
+
<button type="button" class="usx-popover__menu-item" disabled="">Archive record</button>
|
|
300
|
+
</li>
|
|
301
|
+
</ul>
|
|
302
|
+
<div class="usx-popover__panel-content"><p id="react-record-10482">Record 10482</p></div>
|
|
303
|
+
</div>
|
|
304
|
+
</details>
|
|
305
|
+
|
|
172
306
|
<h3 class="site-preview-heading">Square Menu Items</h3>
|
|
173
307
|
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
174
308
|
<summary class="usa-button usx-button usa-button--primary margin-0">Resident services</summary>
|
|
@@ -299,7 +433,11 @@
|
|
|
299
433
|
><span>Account and services</span><span class="usa-tag margin-left-1">3</span>
|
|
300
434
|
</summary>
|
|
301
435
|
<div id="react-popover-worst-case" class="usx-popover__panel font-sans-sm">
|
|
302
|
-
<
|
|
436
|
+
<header class="usx-popover__header">
|
|
437
|
+
<div class="usx-popover__header-content">
|
|
438
|
+
<h2 class="usx-popover__panel-heading" tabindex="-1">Account and services</h2>
|
|
439
|
+
</div>
|
|
440
|
+
</header>
|
|
303
441
|
<ul class="usx-popover__menu">
|
|
304
442
|
<li>
|
|
305
443
|
<details
|
|
@@ -502,7 +640,11 @@
|
|
|
502
640
|
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
503
641
|
<summary class="usa-button usx-button usa-button--primary margin-0">Important dates</summary>
|
|
504
642
|
<div id="react-popover-heading-default" class="usx-popover__panel">
|
|
505
|
-
<
|
|
643
|
+
<header class="usx-popover__header">
|
|
644
|
+
<div class="usx-popover__header-content">
|
|
645
|
+
<h2 class="usx-popover__panel-heading" tabindex="-1">Filing deadlines</h2>
|
|
646
|
+
</div>
|
|
647
|
+
</header>
|
|
506
648
|
<div class="usx-popover__panel-content">
|
|
507
649
|
<p class="margin-0">Applications are due by the last business day of the month.</p>
|
|
508
650
|
</div>
|
|
@@ -520,7 +662,11 @@
|
|
|
520
662
|
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
521
663
|
<summary class="usa-button usx-button usa-button--primary margin-0">Important dates</summary>
|
|
522
664
|
<div id="react-popover-heading-h3" class="usx-popover__panel">
|
|
523
|
-
<
|
|
665
|
+
<header class="usx-popover__header">
|
|
666
|
+
<div class="usx-popover__header-content">
|
|
667
|
+
<h3 class="usx-popover__panel-heading" tabindex="-1">Filing deadlines</h3>
|
|
668
|
+
</div>
|
|
669
|
+
</header>
|
|
524
670
|
<div class="usx-popover__panel-content">
|
|
525
671
|
<p class="margin-0">Applications are due by the last business day of the month.</p>
|
|
526
672
|
</div>
|
|
@@ -538,7 +684,11 @@
|
|
|
538
684
|
<details class="usx-popover" data-side="bottom" data-align="start">
|
|
539
685
|
<summary class="usa-button usx-button usa-button--primary margin-0">Important dates</summary>
|
|
540
686
|
<div id="react-popover-heading-h5" class="usx-popover__panel">
|
|
541
|
-
<
|
|
687
|
+
<header class="usx-popover__header">
|
|
688
|
+
<div class="usx-popover__header-content">
|
|
689
|
+
<h5 class="usx-popover__panel-heading" tabindex="-1">Filing deadlines</h5>
|
|
690
|
+
</div>
|
|
691
|
+
</header>
|
|
542
692
|
<div class="usx-popover__panel-content">
|
|
543
693
|
<p class="margin-0">Applications are due by the last business day of the month.</p>
|
|
544
694
|
</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",
|