@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
|
@@ -5,12 +5,6 @@ import Icon from '../icon/Icon';
|
|
|
5
5
|
import Tooltip from '../tooltip/Tooltip';
|
|
6
6
|
import type { TooltipProps } from '../tooltip/Tooltip';
|
|
7
7
|
|
|
8
|
-
function copyTextToClipboard(text: string) {
|
|
9
|
-
if (window.navigator.clipboard) {
|
|
10
|
-
return window.navigator.clipboard.writeText(text);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
8
|
export interface CopyToClipboardProps {
|
|
15
9
|
copyText?: string;
|
|
16
10
|
label?: string | null;
|
|
@@ -30,7 +24,8 @@ export default function CopyToClipboard({
|
|
|
30
24
|
<Button
|
|
31
25
|
ghost={true}
|
|
32
26
|
className={ClassNames('usx-copy', className)}
|
|
33
|
-
|
|
27
|
+
extraAttributes={{ 'data-usx-copy': copyText }}
|
|
28
|
+
aria-label={label ? undefined : 'Copy to clipboard'}
|
|
34
29
|
type="button"
|
|
35
30
|
>
|
|
36
31
|
<Icon name="content_copy" className="usx-copy__copy" staticBaseUrl={staticBaseUrl} />
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
<button
|
|
4
4
|
type="button"
|
|
5
5
|
class="usa-button usx-button usx-button--ghost usx-copy"
|
|
6
|
-
|
|
6
|
+
data-usx-copy="Example text to copy"
|
|
7
|
+
aria-label="Copy to clipboard"
|
|
7
8
|
>
|
|
8
9
|
<svg class="usa-icon usx-icon usx-copy__copy" aria-hidden="true" focusable="false" role="img">
|
|
9
10
|
<use href="img/sprite.svg#content_copy"></use>
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
<button
|
|
25
26
|
type="button"
|
|
26
27
|
class="usa-button usx-button usx-button--ghost usx-copy"
|
|
27
|
-
|
|
28
|
+
data-usx-copy="Example text to copy"
|
|
28
29
|
>
|
|
29
30
|
<svg class="usa-icon usx-icon usx-copy__copy" aria-hidden="true" focusable="false" role="img">
|
|
30
31
|
<use href="img/sprite.svg#content_copy"></use>
|
|
@@ -42,7 +43,8 @@
|
|
|
42
43
|
<button
|
|
43
44
|
type="button"
|
|
44
45
|
class="usa-button usx-button usx-button--ghost usa-button--inverse usx-copy"
|
|
45
|
-
|
|
46
|
+
data-usx-copy="Example text to copy"
|
|
47
|
+
aria-label="Copy to clipboard"
|
|
46
48
|
>
|
|
47
49
|
<svg class="usa-icon usx-icon usx-copy__copy" aria-hidden="true" focusable="false" role="img">
|
|
48
50
|
<use href="img/sprite.svg#content_copy"></use>
|
|
@@ -70,7 +72,7 @@
|
|
|
70
72
|
<button
|
|
71
73
|
type="button"
|
|
72
74
|
class="usa-button usx-button usx-button--ghost usa-button--inverse usx-copy"
|
|
73
|
-
|
|
75
|
+
data-usx-copy="Example text to copy"
|
|
74
76
|
>
|
|
75
77
|
<svg class="usa-icon usx-icon usx-copy__copy" aria-hidden="true" focusable="false" role="img">
|
|
76
78
|
<use href="img/sprite.svg#content_copy"></use>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{# Django template for CopyToClipboard #}
|
|
2
2
|
{% load usx_components %}
|
|
3
|
-
{% with buttonClass=className|default:''|add:' usx-copy'
|
|
4
|
-
{% dict
|
|
3
|
+
{% with buttonClass=className|default:''|add:' usx-copy' %}
|
|
4
|
+
{% if label %}{% dict data_usx_copy=copyText|default:'' as copyAttributes %}
|
|
5
|
+
{% else %}{% dict data_usx_copy=copyText|default:'' aria_label='Copy to clipboard' as copyAttributes %}{% endif %}
|
|
5
6
|
{% button ghost=True className=buttonClass extraAttributes=copyAttributes as copyButton %}
|
|
6
7
|
{% icon name='content_copy' className="usx-copy__copy" staticBaseUrl=staticBaseUrl %}{% endicon %}
|
|
7
8
|
{% icon name='check' className="usx-copy__check" staticBaseUrl=staticBaseUrl %}{% endicon %}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
<h3 class="site-preview-heading">Default</h3>
|
|
2
2
|
<span class="usx-tooltip"
|
|
3
|
-
><button
|
|
3
|
+
><button
|
|
4
|
+
type="button"
|
|
5
|
+
class="usa-button usx-button usx-button--ghost usx-copy"
|
|
6
|
+
aria-label="Copy to clipboard"
|
|
7
|
+
data-usx-copy="Example text to copy"
|
|
8
|
+
>
|
|
4
9
|
<svg class="usa-icon usx-icon usx-copy__copy" aria-hidden="true" focusable="false" role="img">
|
|
5
10
|
<use href="/img/sprite.svg#content_copy"></use></svg
|
|
6
11
|
><svg class="usa-icon usx-icon usx-copy__check" aria-hidden="true" focusable="false" role="img">
|
|
@@ -13,7 +18,11 @@
|
|
|
13
18
|
>
|
|
14
19
|
|
|
15
20
|
<h3 class="site-preview-heading">With Text</h3>
|
|
16
|
-
<button
|
|
21
|
+
<button
|
|
22
|
+
type="button"
|
|
23
|
+
class="usa-button usx-button usx-button--ghost usx-copy"
|
|
24
|
+
data-usx-copy="Example text to copy"
|
|
25
|
+
>
|
|
17
26
|
<svg class="usa-icon usx-icon usx-copy__copy" aria-hidden="true" focusable="false" role="img">
|
|
18
27
|
<use href="/img/sprite.svg#content_copy"></use></svg
|
|
19
28
|
><svg class="usa-icon usx-icon usx-copy__check" aria-hidden="true" focusable="false" role="img">
|
|
@@ -27,6 +36,8 @@
|
|
|
27
36
|
><button
|
|
28
37
|
type="button"
|
|
29
38
|
class="usa-button usx-button usx-button--ghost usx-copy usa-button--inverse"
|
|
39
|
+
aria-label="Copy to clipboard"
|
|
40
|
+
data-usx-copy="Example text to copy"
|
|
30
41
|
>
|
|
31
42
|
<svg class="usa-icon usx-icon usx-copy__copy" aria-hidden="true" focusable="false" role="img">
|
|
32
43
|
<use href="/img/sprite.svg#content_copy"></use></svg
|
|
@@ -50,6 +61,7 @@
|
|
|
50
61
|
<button
|
|
51
62
|
type="button"
|
|
52
63
|
class="usa-button usx-button usx-button--ghost usx-copy usa-button--inverse"
|
|
64
|
+
data-usx-copy="Example text to copy"
|
|
53
65
|
>
|
|
54
66
|
<svg class="usa-icon usx-icon usx-copy__copy" aria-hidden="true" focusable="false" role="img">
|
|
55
67
|
<use href="/img/sprite.svg#content_copy"></use></svg
|
|
@@ -19,6 +19,7 @@ export interface FileListProps {
|
|
|
19
19
|
hint?: React.ReactNode;
|
|
20
20
|
onRemove?: ((entry: FileListEntry) => void) | null;
|
|
21
21
|
disabled?: boolean;
|
|
22
|
+
slim?: boolean;
|
|
22
23
|
className?: string;
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -47,13 +48,13 @@ function getEntryDisplay(entry: FileListEntry) {
|
|
|
47
48
|
// A standalone list of files with a per-row Delete action — used by
|
|
48
49
|
// FileInput's managed-multiple mode (see FileInput.tsx), but reusable
|
|
49
50
|
// anywhere a parent already owns the file array.
|
|
50
|
-
export default function FileList({ files, hint = 'Selected files', onRemove = null, disabled = false, className = '' }: FileListProps) {
|
|
51
|
+
export default function FileList({ files, hint = 'Selected files', onRemove = null, disabled = false, slim = false, className = '' }: FileListProps) {
|
|
51
52
|
if (!files || files.length === 0) return null;
|
|
52
53
|
|
|
53
54
|
const lastEntry = getEntryDisplay(files[files.length - 1]);
|
|
54
55
|
|
|
55
56
|
return (
|
|
56
|
-
<div className={ClassNames('usx-file-input__list', 'margin-top-1', className)}>
|
|
57
|
+
<div className={ClassNames('usx-file-input__list', 'margin-top-1', slim && 'usx-file-list--slim', className)}>
|
|
57
58
|
<span className="usa-sr-only" aria-live="polite">
|
|
58
59
|
{`You have selected the file: ${lastEntry.name}.`}
|
|
59
60
|
</span>
|
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"default": false,
|
|
36
36
|
"description": "Hides every row's Delete button."
|
|
37
37
|
},
|
|
38
|
+
"slim": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"default": false,
|
|
41
|
+
"description": "Uses compact row padding, text, and Delete button sizing, with file type and size inline after the name. The list width and element structure stay the same."
|
|
42
|
+
},
|
|
38
43
|
"className": {
|
|
39
44
|
"type": "string",
|
|
40
45
|
"description": "Additional classes for the outer wrapper."
|
|
@@ -55,6 +55,69 @@
|
|
|
55
55
|
</ul>
|
|
56
56
|
</div>
|
|
57
57
|
|
|
58
|
+
<h3 class="site-preview-heading">Slim</h3>
|
|
59
|
+
<div class="usx-file-input__list margin-top-1 usx-file-list--slim">
|
|
60
|
+
<span class="usa-sr-only" aria-live="polite">You have selected the file: notes.txt.</span>
|
|
61
|
+
|
|
62
|
+
<span class="usa-hint usx-hint usx-file-input__list-heading">Selected files</span>
|
|
63
|
+
|
|
64
|
+
<ul class="usx-file-input__file-list">
|
|
65
|
+
<li class="usx-file-input__file-item">
|
|
66
|
+
<div class="usx-file-input__file-info">
|
|
67
|
+
<a
|
|
68
|
+
class="usa-link usx-link usa-link--external usx-file-input__file-name"
|
|
69
|
+
rel="noreferrer noopener"
|
|
70
|
+
target="_blank"
|
|
71
|
+
href="https://example.com/files/project-plan.pdf"
|
|
72
|
+
>project-plan-and-supporting-information-for-review.pdf</a
|
|
73
|
+
>
|
|
74
|
+
|
|
75
|
+
<span class="usx-file-input__file-size">PDF, 240 KB</span>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<button
|
|
79
|
+
type="button"
|
|
80
|
+
class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
|
|
81
|
+
tooltip="Delete this file"
|
|
82
|
+
>
|
|
83
|
+
<svg
|
|
84
|
+
class="usa-icon usx-icon usa-icon--size-3 usx-file-input__delete-icon"
|
|
85
|
+
aria-hidden="true"
|
|
86
|
+
focusable="false"
|
|
87
|
+
role="img"
|
|
88
|
+
>
|
|
89
|
+
<use href="img/sprite.svg#delete"></use>
|
|
90
|
+
</svg>
|
|
91
|
+
<span class="usx-file-input__delete-label">Delete</span>
|
|
92
|
+
</button>
|
|
93
|
+
</li>
|
|
94
|
+
|
|
95
|
+
<li class="usx-file-input__file-item">
|
|
96
|
+
<div class="usx-file-input__file-info">
|
|
97
|
+
<span class="usx-file-input__file-name">notes.txt</span>
|
|
98
|
+
|
|
99
|
+
<span class="usx-file-input__file-size">TXT, 7 KB</span>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<button
|
|
103
|
+
type="button"
|
|
104
|
+
class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
|
|
105
|
+
tooltip="Delete this file"
|
|
106
|
+
>
|
|
107
|
+
<svg
|
|
108
|
+
class="usa-icon usx-icon usa-icon--size-3 usx-file-input__delete-icon"
|
|
109
|
+
aria-hidden="true"
|
|
110
|
+
focusable="false"
|
|
111
|
+
role="img"
|
|
112
|
+
>
|
|
113
|
+
<use href="img/sprite.svg#delete"></use>
|
|
114
|
+
</svg>
|
|
115
|
+
<span class="usx-file-input__delete-label">Delete</span>
|
|
116
|
+
</button>
|
|
117
|
+
</li>
|
|
118
|
+
</ul>
|
|
119
|
+
</div>
|
|
120
|
+
|
|
58
121
|
<h3 class="site-preview-heading">With Download Link</h3>
|
|
59
122
|
<div class="usx-file-input__list margin-top-1">
|
|
60
123
|
<span class="usa-sr-only" aria-live="polite">You have selected the file: w2-2023.pdf.</span>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{% load usx_components %}
|
|
3
3
|
|
|
4
4
|
{% if files %}
|
|
5
|
-
<div class="usx-file-input__list margin-top-1{% if className %} {{ className }}{% endif %}">
|
|
5
|
+
<div class="usx-file-input__list margin-top-1{% if slim %} usx-file-list--slim{% endif %}{% if className %} {{ className }}{% endif %}">
|
|
6
6
|
{% with lastFile=files|last %}<span class="usa-sr-only" aria-live="polite">You have selected the file: {{ lastFile.name }}.</span>{% endwith %}
|
|
7
7
|
{% if hint %}
|
|
8
8
|
<span class="usa-hint usx-hint usx-file-input__list-heading">{{ hint }}</span>
|
|
@@ -46,6 +46,59 @@
|
|
|
46
46
|
</ul>
|
|
47
47
|
</div>
|
|
48
48
|
|
|
49
|
+
<h3 class="site-preview-heading">Slim</h3>
|
|
50
|
+
<div class="usx-file-input__list margin-top-1 usx-file-list--slim">
|
|
51
|
+
<span class="usa-sr-only" aria-live="polite">You have selected the file: notes.txt.</span
|
|
52
|
+
><span class="usa-hint usx-hint usx-file-input__list-heading">Selected files</span>
|
|
53
|
+
<ul class="usx-file-input__file-list">
|
|
54
|
+
<li class="usx-file-input__file-item">
|
|
55
|
+
<div class="usx-file-input__file-info">
|
|
56
|
+
<a
|
|
57
|
+
href="https://example.com/files/project-plan.pdf"
|
|
58
|
+
class="usa-link usx-link usa-link--external usx-file-input__file-name"
|
|
59
|
+
target="_blank"
|
|
60
|
+
rel="noreferrer noopener"
|
|
61
|
+
>project-plan-and-supporting-information-for-review.pdf</a
|
|
62
|
+
><span class="usx-file-input__file-size">PDF, 240 KB</span>
|
|
63
|
+
</div>
|
|
64
|
+
<button
|
|
65
|
+
type="button"
|
|
66
|
+
class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
|
|
67
|
+
tooltip="Delete this file"
|
|
68
|
+
>
|
|
69
|
+
<svg
|
|
70
|
+
class="usa-icon usx-icon usa-icon--size-3 usx-file-input__delete-icon"
|
|
71
|
+
aria-hidden="true"
|
|
72
|
+
focusable="false"
|
|
73
|
+
role="img"
|
|
74
|
+
>
|
|
75
|
+
<use href="/img/sprite.svg#delete"></use></svg
|
|
76
|
+
><span class="usx-file-input__delete-label">Delete</span>
|
|
77
|
+
</button>
|
|
78
|
+
</li>
|
|
79
|
+
<li class="usx-file-input__file-item">
|
|
80
|
+
<div class="usx-file-input__file-info">
|
|
81
|
+
<span class="usx-file-input__file-name">notes.txt</span
|
|
82
|
+
><span class="usx-file-input__file-size">TXT, 7 KB</span>
|
|
83
|
+
</div>
|
|
84
|
+
<button
|
|
85
|
+
type="button"
|
|
86
|
+
class="usa-button usx-button usa-button--secondary usx-button--ghost usx-file-input__delete-button"
|
|
87
|
+
tooltip="Delete this file"
|
|
88
|
+
>
|
|
89
|
+
<svg
|
|
90
|
+
class="usa-icon usx-icon usa-icon--size-3 usx-file-input__delete-icon"
|
|
91
|
+
aria-hidden="true"
|
|
92
|
+
focusable="false"
|
|
93
|
+
role="img"
|
|
94
|
+
>
|
|
95
|
+
<use href="/img/sprite.svg#delete"></use></svg
|
|
96
|
+
><span class="usx-file-input__delete-label">Delete</span>
|
|
97
|
+
</button>
|
|
98
|
+
</li>
|
|
99
|
+
</ul>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
49
102
|
<h3 class="site-preview-heading">With Download Link</h3>
|
|
50
103
|
<div class="usx-file-input__list margin-top-1">
|
|
51
104
|
<span class="usa-sr-only" aria-live="polite">You have selected the file: w2-2023.pdf.</span
|
|
@@ -139,7 +139,6 @@
|
|
|
139
139
|
type="email"
|
|
140
140
|
autocomplete="email"
|
|
141
141
|
placeholder="Type here"
|
|
142
|
-
value=""
|
|
143
142
|
/>
|
|
144
143
|
</div>
|
|
145
144
|
|
|
@@ -554,7 +553,6 @@
|
|
|
554
553
|
type="email"
|
|
555
554
|
autocomplete="email"
|
|
556
555
|
placeholder="Type here"
|
|
557
|
-
value=""
|
|
558
556
|
/>
|
|
559
557
|
</div>
|
|
560
558
|
|
|
@@ -838,7 +836,6 @@
|
|
|
838
836
|
type="email"
|
|
839
837
|
autocomplete="email"
|
|
840
838
|
placeholder="Type here"
|
|
841
|
-
value=""
|
|
842
839
|
/>
|
|
843
840
|
</div>
|
|
844
841
|
|
|
@@ -146,7 +146,6 @@
|
|
|
146
146
|
id="django-header-default-search"
|
|
147
147
|
class="usa-input usx-input"
|
|
148
148
|
placeholder="Search..."
|
|
149
|
-
value=""
|
|
150
149
|
type="search"
|
|
151
150
|
name="q"
|
|
152
151
|
/>
|
|
@@ -162,25 +161,6 @@
|
|
|
162
161
|
</svg>
|
|
163
162
|
</button>
|
|
164
163
|
</form>
|
|
165
|
-
<script data-id="header-default-search" data-on-submit="" data-search-key="q">
|
|
166
|
-
const data = document.currentScript.dataset;
|
|
167
|
-
const onSubmit = data.onSubmit;
|
|
168
|
-
|
|
169
|
-
if (!!onSubmit) {
|
|
170
|
-
const id = data.id;
|
|
171
|
-
const searchKey = data.searchKey;
|
|
172
|
-
document.addEventListener('DOMContentLoaded', function () {
|
|
173
|
-
document.getElementById(`${id}-form`).onsubmit = function (e) {
|
|
174
|
-
e.preventDefault();
|
|
175
|
-
const formData = new FormData(e.target);
|
|
176
|
-
const query = formData.get(searchKey);
|
|
177
|
-
const func = eval(onSubmit);
|
|
178
|
-
func(query);
|
|
179
|
-
return false;
|
|
180
|
-
};
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
</script>
|
|
184
164
|
</section>
|
|
185
165
|
</div>
|
|
186
166
|
</div>
|
|
@@ -308,7 +288,6 @@
|
|
|
308
288
|
id="django-header-basic-search"
|
|
309
289
|
class="usa-input usx-input"
|
|
310
290
|
placeholder="Search..."
|
|
311
|
-
value=""
|
|
312
291
|
type="search"
|
|
313
292
|
name="q"
|
|
314
293
|
/>
|
|
@@ -324,25 +303,6 @@
|
|
|
324
303
|
</svg>
|
|
325
304
|
</button>
|
|
326
305
|
</form>
|
|
327
|
-
<script data-id="header-basic-search" data-on-submit="" data-search-key="q">
|
|
328
|
-
const data = document.currentScript.dataset;
|
|
329
|
-
const onSubmit = data.onSubmit;
|
|
330
|
-
|
|
331
|
-
if (!!onSubmit) {
|
|
332
|
-
const id = data.id;
|
|
333
|
-
const searchKey = data.searchKey;
|
|
334
|
-
document.addEventListener('DOMContentLoaded', function () {
|
|
335
|
-
document.getElementById(`${id}-form`).onsubmit = function (e) {
|
|
336
|
-
e.preventDefault();
|
|
337
|
-
const formData = new FormData(e.target);
|
|
338
|
-
const query = formData.get(searchKey);
|
|
339
|
-
const func = eval(onSubmit);
|
|
340
|
-
func(query);
|
|
341
|
-
return false;
|
|
342
|
-
};
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
</script>
|
|
346
306
|
</section>
|
|
347
307
|
</div>
|
|
348
308
|
</nav>
|
|
@@ -488,7 +448,6 @@
|
|
|
488
448
|
id="django-header-basic-megamenu-search"
|
|
489
449
|
class="usa-input usx-input"
|
|
490
450
|
placeholder="Search..."
|
|
491
|
-
value=""
|
|
492
451
|
type="search"
|
|
493
452
|
name="q"
|
|
494
453
|
/>
|
|
@@ -504,25 +463,6 @@
|
|
|
504
463
|
</svg>
|
|
505
464
|
</button>
|
|
506
465
|
</form>
|
|
507
|
-
<script data-id="header-basic-megamenu-search" data-on-submit="" data-search-key="q">
|
|
508
|
-
const data = document.currentScript.dataset;
|
|
509
|
-
const onSubmit = data.onSubmit;
|
|
510
|
-
|
|
511
|
-
if (!!onSubmit) {
|
|
512
|
-
const id = data.id;
|
|
513
|
-
const searchKey = data.searchKey;
|
|
514
|
-
document.addEventListener('DOMContentLoaded', function () {
|
|
515
|
-
document.getElementById(`${id}-form`).onsubmit = function (e) {
|
|
516
|
-
e.preventDefault();
|
|
517
|
-
const formData = new FormData(e.target);
|
|
518
|
-
const query = formData.get(searchKey);
|
|
519
|
-
const func = eval(onSubmit);
|
|
520
|
-
func(query);
|
|
521
|
-
return false;
|
|
522
|
-
};
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
</script>
|
|
526
466
|
</section>
|
|
527
467
|
</div>
|
|
528
468
|
</nav>
|
|
@@ -665,7 +605,6 @@
|
|
|
665
605
|
id="django-header-extended-search"
|
|
666
606
|
class="usa-input usx-input"
|
|
667
607
|
placeholder="Search..."
|
|
668
|
-
value=""
|
|
669
608
|
type="search"
|
|
670
609
|
name="q"
|
|
671
610
|
/>
|
|
@@ -681,25 +620,6 @@
|
|
|
681
620
|
</svg>
|
|
682
621
|
</button>
|
|
683
622
|
</form>
|
|
684
|
-
<script data-id="header-extended-search" data-on-submit="" data-search-key="q">
|
|
685
|
-
const data = document.currentScript.dataset;
|
|
686
|
-
const onSubmit = data.onSubmit;
|
|
687
|
-
|
|
688
|
-
if (!!onSubmit) {
|
|
689
|
-
const id = data.id;
|
|
690
|
-
const searchKey = data.searchKey;
|
|
691
|
-
document.addEventListener('DOMContentLoaded', function () {
|
|
692
|
-
document.getElementById(`${id}-form`).onsubmit = function (e) {
|
|
693
|
-
e.preventDefault();
|
|
694
|
-
const formData = new FormData(e.target);
|
|
695
|
-
const query = formData.get(searchKey);
|
|
696
|
-
const func = eval(onSubmit);
|
|
697
|
-
func(query);
|
|
698
|
-
return false;
|
|
699
|
-
};
|
|
700
|
-
});
|
|
701
|
-
}
|
|
702
|
-
</script>
|
|
703
623
|
</section>
|
|
704
624
|
</div>
|
|
705
625
|
</div>
|
|
@@ -857,7 +777,6 @@
|
|
|
857
777
|
id="django-header-extended-megamenu-search"
|
|
858
778
|
class="usa-input usx-input"
|
|
859
779
|
placeholder="Search..."
|
|
860
|
-
value=""
|
|
861
780
|
type="search"
|
|
862
781
|
name="q"
|
|
863
782
|
/>
|
|
@@ -873,25 +792,6 @@
|
|
|
873
792
|
</svg>
|
|
874
793
|
</button>
|
|
875
794
|
</form>
|
|
876
|
-
<script data-id="header-extended-megamenu-search" data-on-submit="" data-search-key="q">
|
|
877
|
-
const data = document.currentScript.dataset;
|
|
878
|
-
const onSubmit = data.onSubmit;
|
|
879
|
-
|
|
880
|
-
if (!!onSubmit) {
|
|
881
|
-
const id = data.id;
|
|
882
|
-
const searchKey = data.searchKey;
|
|
883
|
-
document.addEventListener('DOMContentLoaded', function () {
|
|
884
|
-
document.getElementById(`${id}-form`).onsubmit = function (e) {
|
|
885
|
-
e.preventDefault();
|
|
886
|
-
const formData = new FormData(e.target);
|
|
887
|
-
const query = formData.get(searchKey);
|
|
888
|
-
const func = eval(onSubmit);
|
|
889
|
-
func(query);
|
|
890
|
-
return false;
|
|
891
|
-
};
|
|
892
|
-
});
|
|
893
|
-
}
|
|
894
|
-
</script>
|
|
895
795
|
</section>
|
|
896
796
|
</div>
|
|
897
797
|
</div>
|
|
@@ -1019,7 +919,6 @@
|
|
|
1019
919
|
id="django-header-menu-icon-search"
|
|
1020
920
|
class="usa-input usx-input"
|
|
1021
921
|
placeholder="Search..."
|
|
1022
|
-
value=""
|
|
1023
922
|
type="search"
|
|
1024
923
|
name="q"
|
|
1025
924
|
/>
|
|
@@ -1035,25 +934,6 @@
|
|
|
1035
934
|
</svg>
|
|
1036
935
|
</button>
|
|
1037
936
|
</form>
|
|
1038
|
-
<script data-id="header-menu-icon-search" data-on-submit="" data-search-key="q">
|
|
1039
|
-
const data = document.currentScript.dataset;
|
|
1040
|
-
const onSubmit = data.onSubmit;
|
|
1041
|
-
|
|
1042
|
-
if (!!onSubmit) {
|
|
1043
|
-
const id = data.id;
|
|
1044
|
-
const searchKey = data.searchKey;
|
|
1045
|
-
document.addEventListener('DOMContentLoaded', function () {
|
|
1046
|
-
document.getElementById(`${id}-form`).onsubmit = function (e) {
|
|
1047
|
-
e.preventDefault();
|
|
1048
|
-
const formData = new FormData(e.target);
|
|
1049
|
-
const query = formData.get(searchKey);
|
|
1050
|
-
const func = eval(onSubmit);
|
|
1051
|
-
func(query);
|
|
1052
|
-
return false;
|
|
1053
|
-
};
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
1056
|
-
</script>
|
|
1057
937
|
</section>
|
|
1058
938
|
</div>
|
|
1059
939
|
</nav>
|
|
@@ -2143,7 +2023,6 @@
|
|
|
2143
2023
|
id="django-header-maximal-search"
|
|
2144
2024
|
class="usa-input usx-input"
|
|
2145
2025
|
placeholder="Search..."
|
|
2146
|
-
value=""
|
|
2147
2026
|
type="search"
|
|
2148
2027
|
name="q"
|
|
2149
2028
|
/>
|
|
@@ -2159,25 +2038,6 @@
|
|
|
2159
2038
|
</svg>
|
|
2160
2039
|
</button>
|
|
2161
2040
|
</form>
|
|
2162
|
-
<script data-id="header-maximal-search" data-on-submit="" data-search-key="q">
|
|
2163
|
-
const data = document.currentScript.dataset;
|
|
2164
|
-
const onSubmit = data.onSubmit;
|
|
2165
|
-
|
|
2166
|
-
if (!!onSubmit) {
|
|
2167
|
-
const id = data.id;
|
|
2168
|
-
const searchKey = data.searchKey;
|
|
2169
|
-
document.addEventListener('DOMContentLoaded', function () {
|
|
2170
|
-
document.getElementById(`${id}-form`).onsubmit = function (e) {
|
|
2171
|
-
e.preventDefault();
|
|
2172
|
-
const formData = new FormData(e.target);
|
|
2173
|
-
const query = formData.get(searchKey);
|
|
2174
|
-
const func = eval(onSubmit);
|
|
2175
|
-
func(query);
|
|
2176
|
-
return false;
|
|
2177
|
-
};
|
|
2178
|
-
});
|
|
2179
|
-
}
|
|
2180
|
-
</script>
|
|
2181
2041
|
</section>
|
|
2182
2042
|
</div>
|
|
2183
2043
|
</div>
|
|
@@ -3189,7 +3049,6 @@
|
|
|
3189
3049
|
id="django-header-border-roles-search"
|
|
3190
3050
|
class="usa-input usx-input"
|
|
3191
3051
|
placeholder="Search..."
|
|
3192
|
-
value=""
|
|
3193
3052
|
type="search"
|
|
3194
3053
|
name="q"
|
|
3195
3054
|
/>
|
|
@@ -3205,25 +3064,6 @@
|
|
|
3205
3064
|
</svg>
|
|
3206
3065
|
</button>
|
|
3207
3066
|
</form>
|
|
3208
|
-
<script data-id="header-border-roles-search" data-on-submit="" data-search-key="q">
|
|
3209
|
-
const data = document.currentScript.dataset;
|
|
3210
|
-
const onSubmit = data.onSubmit;
|
|
3211
|
-
|
|
3212
|
-
if (!!onSubmit) {
|
|
3213
|
-
const id = data.id;
|
|
3214
|
-
const searchKey = data.searchKey;
|
|
3215
|
-
document.addEventListener('DOMContentLoaded', function () {
|
|
3216
|
-
document.getElementById(`${id}-form`).onsubmit = function (e) {
|
|
3217
|
-
e.preventDefault();
|
|
3218
|
-
const formData = new FormData(e.target);
|
|
3219
|
-
const query = formData.get(searchKey);
|
|
3220
|
-
const func = eval(onSubmit);
|
|
3221
|
-
func(query);
|
|
3222
|
-
return false;
|
|
3223
|
-
};
|
|
3224
|
-
});
|
|
3225
|
-
}
|
|
3226
|
-
</script>
|
|
3227
3067
|
</section>
|
|
3228
3068
|
</div>
|
|
3229
3069
|
</div>
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
<div class="usx-nav__utility">
|
|
104
104
|
{% if utilityContent %}{{ utilityContent|safe }}{% endif %}
|
|
105
105
|
{% if searchProps %}
|
|
106
|
-
{% search id=searchProps.id ariaLabel=searchProps.ariaLabel searchKey=searchProps.searchKey label=searchProps.label icon=searchProps.icon iconOnly=searchProps.iconOnly buttonVariant=searchProps.buttonVariant big=searchProps.big action=searchProps.action placeholder=searchProps.placeholder defaultValue=searchProps
|
|
106
|
+
{% search id=searchProps.id ariaLabel=searchProps.ariaLabel searchKey=searchProps.searchKey label=searchProps.label icon=searchProps.icon iconOnly=searchProps.iconOnly buttonVariant=searchProps.buttonVariant big=searchProps.big action=searchProps.action placeholder=searchProps.placeholder defaultValue=searchProps|get_optional:'defaultValue' onSubmit=searchProps.onSubmit className=searchProps.className|default:'' %}{% endsearch %}
|
|
107
107
|
{% endif %}
|
|
108
108
|
</div>
|
|
109
109
|
{% endif %}
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
<div class="usx-nav__utility">
|
|
184
184
|
{% if utilityContent %}{{ utilityContent|safe }}{% endif %}
|
|
185
185
|
{% if searchProps %}
|
|
186
|
-
{% search id=searchProps.id ariaLabel=searchProps.ariaLabel searchKey=searchProps.searchKey label=searchProps.label icon=searchProps.icon iconOnly=searchProps.iconOnly buttonVariant=searchProps.buttonVariant big=searchProps.big action=searchProps.action placeholder=searchProps.placeholder defaultValue=searchProps
|
|
186
|
+
{% search id=searchProps.id ariaLabel=searchProps.ariaLabel searchKey=searchProps.searchKey label=searchProps.label icon=searchProps.icon iconOnly=searchProps.iconOnly buttonVariant=searchProps.buttonVariant big=searchProps.big action=searchProps.action placeholder=searchProps.placeholder defaultValue=searchProps|get_optional:'defaultValue' onSubmit=searchProps.onSubmit className=searchProps.className|default:'' %}{% endsearch %}
|
|
187
187
|
{% endif %}
|
|
188
188
|
</div>
|
|
189
189
|
{% endif %}
|
|
@@ -133,7 +133,6 @@
|
|
|
133
133
|
id="django-hero-search"
|
|
134
134
|
class="usa-input usx-input"
|
|
135
135
|
placeholder="Search..."
|
|
136
|
-
value=""
|
|
137
136
|
type="search"
|
|
138
137
|
name="q"
|
|
139
138
|
/>
|
|
@@ -149,25 +148,6 @@
|
|
|
149
148
|
</svg>
|
|
150
149
|
</button>
|
|
151
150
|
</form>
|
|
152
|
-
<script data-id="hero-search" data-on-submit="" data-search-key="q">
|
|
153
|
-
const data = document.currentScript.dataset;
|
|
154
|
-
const onSubmit = data.onSubmit;
|
|
155
|
-
|
|
156
|
-
if (!!onSubmit) {
|
|
157
|
-
const id = data.id;
|
|
158
|
-
const searchKey = data.searchKey;
|
|
159
|
-
document.addEventListener('DOMContentLoaded', function () {
|
|
160
|
-
document.getElementById(`${id}-form`).onsubmit = function (e) {
|
|
161
|
-
e.preventDefault();
|
|
162
|
-
const formData = new FormData(e.target);
|
|
163
|
-
const query = formData.get(searchKey);
|
|
164
|
-
const func = eval(onSubmit);
|
|
165
|
-
func(query);
|
|
166
|
-
return false;
|
|
167
|
-
};
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
</script>
|
|
171
151
|
</section>
|
|
172
152
|
</div>
|
|
173
153
|
</div>
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
<section
|
|
4
4
|
class="usx-hero{% if overlay != False %} usx-hero--has-overlay{% endif %}{% if overlayOpacity or overlayOpacity == 0 %} usx-hero--custom-overlay{% endif %}{% if contentPosition == 'right' %} usx-hero--content-right{% elif contentPosition == 'center' %} usx-hero--content-center{% endif %}{% if boxed == False %} usx-hero--unboxed{% endif %}{% if secondaryContent %} usx-hero--split{% endif %}{% if className %} {{ className }}{% endif %}"
|
|
5
5
|
aria-label="{% if ariaLabel %}{{ ariaLabel }}{% else %}Introduction{% endif %}"
|
|
6
|
-
{% if backgroundImage or backgroundPosition or overlayOpacity or overlayOpacity == 0 %}style="{% if backgroundImage %}background-image:
|
|
6
|
+
{% if backgroundImage or backgroundPosition or overlayOpacity or overlayOpacity == 0 %}style="{% if backgroundImage %}background-image:url('{{ backgroundImage }}'){% if backgroundPosition or overlayOpacity or overlayOpacity == 0 %};{% endif %}{% endif %}{% if backgroundPosition %}background-position:{{ backgroundPosition }}{% if overlayOpacity or overlayOpacity == 0 %};{% endif %}{% endif %}{% if overlayOpacity or overlayOpacity == 0 %}--hero-overlay-opacity:{{ overlayOpacity }}{% endif %}"{% endif %}
|
|
7
7
|
>
|
|
8
8
|
<div class="usx-hero__inner">
|
|
9
|
-
<div class="usx-hero__callout"{% if calloutMaxWidth %} style="max-width:
|
|
9
|
+
<div class="usx-hero__callout"{% if calloutMaxWidth %} style="max-width:{{ calloutMaxWidth }}"{% endif %}>
|
|
10
10
|
{% if headingAs == 'h2' %}<h2 class="usx-hero__heading">{% elif headingAs == 'h3' %}<h3 class="usx-hero__heading">{% elif headingAs == 'h4' %}<h4 class="usx-hero__heading">{% elif headingAs == 'h5' %}<h5 class="usx-hero__heading">{% else %}<h1 class="usx-hero__heading">{% endif %}
|
|
11
11
|
{% if callout %}<span class="usx-hero__heading--alt">{{ callout }}</span>{% endif %}
|
|
12
12
|
{{ title }}
|
|
13
13
|
{% if headingAs == 'h2' %}</h2>{% elif headingAs == 'h3' %}</h3>{% elif headingAs == 'h4' %}</h4>{% elif headingAs == 'h5' %}</h5>{% else %}</h1>{% endif %}
|
|
14
14
|
{% if paragraph %}<p class="usx-hero__paragraph">{{ paragraph }}</p>{% endif %}
|
|
15
15
|
{% if searchProps %}
|
|
16
|
-
{% search id=searchProps.id ariaLabel=searchProps.ariaLabel searchKey=searchProps.searchKey label=searchProps.label icon=searchProps.icon iconOnly=searchProps.iconOnly buttonVariant=searchProps.buttonVariant big=searchProps.big action=searchProps.action placeholder=searchProps.placeholder defaultValue=searchProps
|
|
16
|
+
{% search id=searchProps.id ariaLabel=searchProps.ariaLabel searchKey=searchProps.searchKey label=searchProps.label icon=searchProps.icon iconOnly=searchProps.iconOnly buttonVariant=searchProps.buttonVariant big=searchProps.big action=searchProps.action placeholder=searchProps.placeholder defaultValue=searchProps|get_optional:'defaultValue' onSubmit=searchProps.onSubmit className=searchProps.className|default:'' %}{% endsearch %}
|
|
17
17
|
{% elif buttonProps %}
|
|
18
18
|
{% button props=buttonProps %}{{ buttonProps.children|safe }}{% endbutton %}
|
|
19
19
|
{% endif %}
|