@solexllc/usx-react 0.1.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 +45 -0
- package/dist/index.cjs +6017 -0
- package/dist/index.js +6015 -0
- package/package.json +48 -0
- package/src/components/accordion/Accordion.jsx +170 -0
- package/src/components/accordion/accordion.django.html +47 -0
- package/src/components/accordion/accordion.html +304 -0
- package/src/components/accordion/config.json +31 -0
- package/src/components/alert/Alert.tsx +88 -0
- package/src/components/alert/alert.django.html +45 -0
- package/src/components/alert/alert.html +192 -0
- package/src/components/alert/config.json +70 -0
- package/src/components/attribution/Attribution.tsx +40 -0
- package/src/components/attribution/attribution.django.html +21 -0
- package/src/components/attribution/attribution.html +26 -0
- package/src/components/attribution/config.json +32 -0
- package/src/components/avatar/Avatar.tsx +85 -0
- package/src/components/avatar/avatar.django.html +27 -0
- package/src/components/avatar/avatar.html +101 -0
- package/src/components/avatar/config.json +59 -0
- package/src/components/avatar-group/AvatarGroup.tsx +43 -0
- package/src/components/avatar-group/avatar-group.django.html +8 -0
- package/src/components/avatar-group/avatar-group.html +208 -0
- package/src/components/avatar-group/config.json +60 -0
- package/src/components/back-to-top/BackToTop.tsx +60 -0
- package/src/components/back-to-top/back-to-top.django.html +38 -0
- package/src/components/back-to-top/back-to-top.html +107 -0
- package/src/components/back-to-top/config.json +44 -0
- package/src/components/banner/Banner.tsx +111 -0
- package/src/components/banner/banner.django.html +80 -0
- package/src/components/banner/banner.html +411 -0
- package/src/components/banner/config.json +47 -0
- package/src/components/block/Block.tsx +78 -0
- package/src/components/block/block.django.html +26 -0
- package/src/components/block/block.html +162 -0
- package/src/components/block/config.json +88 -0
- package/src/components/breadcrumb/Breadcrumb.tsx +83 -0
- package/src/components/breadcrumb/breadcrumb.django.html +24 -0
- package/src/components/breadcrumb/breadcrumb.html +108 -0
- package/src/components/breadcrumb/config.json +74 -0
- package/src/components/button/Button.tsx +121 -0
- package/src/components/button/button.django.html +58 -0
- package/src/components/button/button.html +363 -0
- package/src/components/button/config.json +103 -0
- package/src/components/button-group/ButtonGroup.tsx +33 -0
- package/src/components/button-group/button-group.django.html +9 -0
- package/src/components/button-group/button-group.html +159 -0
- package/src/components/button-group/config.json +25 -0
- package/src/components/calendar-date/CalendarDate.tsx +40 -0
- package/src/components/calendar-date/calendar-date.django.html +8 -0
- package/src/components/calendar-date/calendar-date.html +17 -0
- package/src/components/calendar-date/config.json +17 -0
- package/src/components/card/Card.tsx +137 -0
- package/src/components/card/card.django.html +40 -0
- package/src/components/card/card.html +67 -0
- package/src/components/card/config.json +115 -0
- package/src/components/card-group/CardGroup.tsx +23 -0
- package/src/components/card-group/card-group.django.html +6 -0
- package/src/components/card-group/card-group.html +164 -0
- package/src/components/card-group/config.json +21 -0
- package/src/components/carousel/Carousel.tsx +101 -0
- package/src/components/carousel/carousel.django.html +41 -0
- package/src/components/carousel/carousel.html +64 -0
- package/src/components/carousel/config.json +38 -0
- package/src/components/character-count/CharacterCount.tsx +77 -0
- package/src/components/character-count/character-count.django.html +19 -0
- package/src/components/character-count/character-count.html +110 -0
- package/src/components/character-count/config.json +78 -0
- package/src/components/checkbox/Checkbox.tsx +90 -0
- package/src/components/checkbox/checkbox.django.html +16 -0
- package/src/components/checkbox/checkbox.html +266 -0
- package/src/components/checkbox/config.json +71 -0
- package/src/components/checkbox-group/CheckboxGroup.tsx +67 -0
- package/src/components/checkbox-group/checkbox-group.django.html +12 -0
- package/src/components/checkbox-group/checkbox-group.html +36 -0
- package/src/components/checkbox-group/config.json +50 -0
- package/src/components/clickable/Clickable.tsx +78 -0
- package/src/components/clickable/clickable.django.html +5 -0
- package/src/components/clickable/clickable.html +133 -0
- package/src/components/clickable/config.json +26 -0
- package/src/components/code/Code.tsx +60 -0
- package/src/components/code/code.django.html +21 -0
- package/src/components/code/code.html +71 -0
- package/src/components/code/config.json +40 -0
- package/src/components/collection/Collection.tsx +99 -0
- package/src/components/collection/collection.django.html +48 -0
- package/src/components/collection/collection.html +384 -0
- package/src/components/collection/config.json +60 -0
- package/src/components/combobox/Combobox.tsx +114 -0
- package/src/components/combobox/combobox.django.html +61 -0
- package/src/components/combobox/combobox.html +509 -0
- package/src/components/combobox/config.json +80 -0
- package/src/components/copy-to-clipboard/CopyToClipboard.tsx +48 -0
- package/src/components/copy-to-clipboard/config.json +30 -0
- package/src/components/copy-to-clipboard/copy-to-clipboard.django.html +16 -0
- package/src/components/copy-to-clipboard/copy-to-clipboard.html +68 -0
- package/src/components/date-picker/DatePicker.jsx +83 -0
- package/src/components/date-picker/config.json +71 -0
- package/src/components/date-picker/date-picker.django.html +67 -0
- package/src/components/date-picker/date-picker.html +104 -0
- package/src/components/date-range-picker/DateRangePicker.jsx +113 -0
- package/src/components/date-range-picker/config.json +92 -0
- package/src/components/date-range-picker/date-range-picker.django.html +66 -0
- package/src/components/date-range-picker/date-range-picker.html +190 -0
- package/src/components/error-message/ErrorMessage.tsx +23 -0
- package/src/components/error-message/config.json +19 -0
- package/src/components/error-message/error-message.django.html +2 -0
- package/src/components/error-message/error-message.html +2 -0
- package/src/components/eyebrow/Eyebrow.tsx +15 -0
- package/src/components/eyebrow/config.json +15 -0
- package/src/components/eyebrow/eyebrow.django.html +4 -0
- package/src/components/eyebrow/eyebrow.html +4 -0
- package/src/components/fieldset/Fieldset.tsx +54 -0
- package/src/components/fieldset/config.json +47 -0
- package/src/components/fieldset/fieldset.django.html +22 -0
- package/src/components/fieldset/fieldset.html +17 -0
- package/src/components/file-input/FileInput.jsx +174 -0
- package/src/components/file-input/config.json +80 -0
- package/src/components/file-input/file-input.django.html +57 -0
- package/src/components/file-input/file-input.html +258 -0
- package/src/components/file-list/FileList.jsx +105 -0
- package/src/components/file-list/config.json +43 -0
- package/src/components/file-list/file-list.django.html +30 -0
- package/src/components/file-list/file-list.html +61 -0
- package/src/components/footer/Footer.tsx +365 -0
- package/src/components/footer/config.json +83 -0
- package/src/components/footer/footer.django.html +260 -0
- package/src/components/footer/footer.html +392 -0
- package/src/components/form-group/FormGroup.tsx +26 -0
- package/src/components/form-group/config.json +22 -0
- package/src/components/form-group/form-group.django.html +4 -0
- package/src/components/form-group/form-group.html +17 -0
- package/src/components/header/Branding.tsx +101 -0
- package/src/components/header/Header.tsx +229 -0
- package/src/components/header/HeaderBranding.jsx +4 -0
- package/src/components/header/config.json +58 -0
- package/src/components/header/header.django.html +194 -0
- package/src/components/header/header.html +823 -0
- package/src/components/hero/Hero.tsx +64 -0
- package/src/components/hero/config.json +70 -0
- package/src/components/hero/hero.django.html +22 -0
- package/src/components/hero/hero.html +75 -0
- package/src/components/hint/Hint.tsx +23 -0
- package/src/components/hint/config.json +19 -0
- package/src/components/hint/hint.django.html +2 -0
- package/src/components/hint/hint.html +2 -0
- package/src/components/icon/Icon.tsx +46 -0
- package/src/components/icon/config.json +60 -0
- package/src/components/icon/icon.django.html +26 -0
- package/src/components/icon/icon.html +289 -0
- package/src/components/icon/icons_list.json +247 -0
- package/src/components/icon-list/IconList.tsx +59 -0
- package/src/components/icon-list/config.json +86 -0
- package/src/components/icon-list/icon-list.django.html +17 -0
- package/src/components/icon-list/icon-list.html +227 -0
- package/src/components/identifier/Identifier.tsx +193 -0
- package/src/components/identifier/config.json +133 -0
- package/src/components/identifier/identifier.django.html +99 -0
- package/src/components/identifier/identifier.html +737 -0
- package/src/components/image/Image.tsx +106 -0
- package/src/components/image/config.json +64 -0
- package/src/components/image/image.django.html +62 -0
- package/src/components/image/image.html +53 -0
- package/src/components/in-page-nav/InPageNav.jsx +76 -0
- package/src/components/in-page-nav/config.json +69 -0
- package/src/components/in-page-nav/in-page-nav.django.html +28 -0
- package/src/components/in-page-nav/in-page-nav.html +183 -0
- package/src/components/indicator/Indicator.tsx +32 -0
- package/src/components/indicator/README.md +1 -0
- package/src/components/indicator/config.json +19 -0
- package/src/components/indicator/indicator.django.html +10 -0
- package/src/components/indicator/indicator.html +42 -0
- package/src/components/input/Input.tsx +85 -0
- package/src/components/input/config.json +73 -0
- package/src/components/input/input.django.html +55 -0
- package/src/components/input/input.html +59 -0
- package/src/components/label/Label.tsx +42 -0
- package/src/components/label/config.json +39 -0
- package/src/components/label/label.django.html +23 -0
- package/src/components/label/label.html +23 -0
- package/src/components/language-selector/LanguageSelector.jsx +224 -0
- package/src/components/language-selector/config.json +107 -0
- package/src/components/language-selector/language-selector.django.html +40 -0
- package/src/components/language-selector/language-selector.html +85 -0
- package/src/components/layout/Layout.tsx +131 -0
- package/src/components/layout/config.json +36 -0
- package/src/components/layout/layout.django.html +28 -0
- package/src/components/layout/layout.html +29 -0
- package/src/components/legend/Legend.tsx +34 -0
- package/src/components/legend/config.json +27 -0
- package/src/components/legend/legend.django.html +11 -0
- package/src/components/legend/legend.html +12 -0
- package/src/components/link/Link.tsx +45 -0
- package/src/components/link/config.json +39 -0
- package/src/components/link/link.django.html +8 -0
- package/src/components/link/link.html +47 -0
- package/src/components/list/List.tsx +82 -0
- package/src/components/list/_list-items.django.html +17 -0
- package/src/components/list/config.json +25 -0
- package/src/components/list/list.django.html +11 -0
- package/src/components/list/list.html +26 -0
- package/src/components/memorable-date/MemorableDate.jsx +167 -0
- package/src/components/memorable-date/config.json +104 -0
- package/src/components/memorable-date/memorable-date.django.html +86 -0
- package/src/components/memorable-date/memorable-date.html +275 -0
- package/src/components/misc-banner/MiscBanner.tsx +112 -0
- package/src/components/misc-banner/config.json +57 -0
- package/src/components/misc-banner/misc-banner.django.html +63 -0
- package/src/components/misc-banner/misc-banner.html +191 -0
- package/src/components/modal/Modal.tsx +71 -0
- package/src/components/modal/config.json +57 -0
- package/src/components/modal/modal.django.html +43 -0
- package/src/components/modal/modal.html +222 -0
- package/src/components/page/Page.jsx +34 -0
- package/src/components/page/config.json +34 -0
- package/src/components/page/page.django.html +5 -0
- package/src/components/page/page.html +23 -0
- package/src/components/pagination/Pagination.tsx +112 -0
- package/src/components/pagination/config.json +135 -0
- package/src/components/pagination/container/PaginationContainer.tsx +38 -0
- package/src/components/pagination/navigation/PaginationNavigation.tsx +219 -0
- package/src/components/pagination/navigation/pagination-navigation.django.html +64 -0
- package/src/components/pagination/pagination.django.html +48 -0
- package/src/components/pagination/pagination.html +613 -0
- package/src/components/pagination/step-options/PaginationStepOptions.tsx +43 -0
- package/src/components/pagination/step-options/pagination-step-options.django.html +7 -0
- package/src/components/pagination/summary/PaginationSummary.tsx +33 -0
- package/src/components/pagination/summary/pagination-summary.django.html +12 -0
- package/src/components/process-list/ProcessList.tsx +52 -0
- package/src/components/process-list/config.json +15 -0
- package/src/components/process-list/process-list.django.html +15 -0
- package/src/components/process-list/process-list.html +90 -0
- package/src/components/prose/Prose.tsx +32 -0
- package/src/components/prose/config.json +28 -0
- package/src/components/prose/prose.django.html +35 -0
- package/src/components/prose/prose.html +91 -0
- package/src/components/radio-buttons/RadioButtons.tsx +82 -0
- package/src/components/radio-buttons/config.json +57 -0
- package/src/components/radio-buttons/radio-buttons.django.html +28 -0
- package/src/components/radio-buttons/radio-buttons.html +189 -0
- package/src/components/range-slider/RangeSlider.jsx +84 -0
- package/src/components/range-slider/config.json +89 -0
- package/src/components/range-slider/range-slider.django.html +65 -0
- package/src/components/range-slider/range-slider.html +106 -0
- package/src/components/required/Required.tsx +25 -0
- package/src/components/required/config.json +20 -0
- package/src/components/required/required.django.html +2 -0
- package/src/components/required/required.html +6 -0
- package/src/components/search/Search.tsx +92 -0
- package/src/components/search/config.json +69 -0
- package/src/components/search/search.django.html +59 -0
- package/src/components/search/search.html +76 -0
- package/src/components/section/Section.tsx +28 -0
- package/src/components/section/config.json +27 -0
- package/src/components/section/section.django.html +5 -0
- package/src/components/section/section.html +16 -0
- package/src/components/select/Select.tsx +107 -0
- package/src/components/select/config.json +80 -0
- package/src/components/select/select.django.html +64 -0
- package/src/components/select/select.html +62 -0
- package/src/components/sidenav/SideNav.tsx +74 -0
- package/src/components/sidenav/config.json +45 -0
- package/src/components/sidenav/sidenav.django.html +29 -0
- package/src/components/sidenav/sidenav.html +84 -0
- package/src/components/site-alert/SiteAlert.tsx +101 -0
- package/src/components/site-alert/config.json +62 -0
- package/src/components/site-alert/site-alert.django.html +34 -0
- package/src/components/site-alert/site-alert.html +312 -0
- package/src/components/skipnav/Skipnav.tsx +41 -0
- package/src/components/skipnav/config.json +29 -0
- package/src/components/skipnav/skipnav.django.html +11 -0
- package/src/components/skipnav/skipnav.html +1 -0
- package/src/components/spinner/Spinner.tsx +46 -0
- package/src/components/spinner/config.json +44 -0
- package/src/components/spinner/spinner.django.html +8 -0
- package/src/components/spinner/spinner.html +219 -0
- package/src/components/status/Status.tsx +28 -0
- package/src/components/status/config.json +47 -0
- package/src/components/status/status.django.html +2 -0
- package/src/components/status/status.html +31 -0
- package/src/components/step-indicator/StepIndicator.tsx +80 -0
- package/src/components/step-indicator/config.json +54 -0
- package/src/components/step-indicator/step-indicator.django.html +29 -0
- package/src/components/step-indicator/step-indicator.html +243 -0
- package/src/components/summary-box/SummaryBox.tsx +41 -0
- package/src/components/summary-box/config.json +30 -0
- package/src/components/summary-box/summary-box.django.html +19 -0
- package/src/components/summary-box/summary-box.html +210 -0
- package/src/components/swap/Swap.tsx +47 -0
- package/src/components/swap/config.json +61 -0
- package/src/components/swap/swap.django.html +14 -0
- package/src/components/swap/swap.html +163 -0
- package/src/components/switch/Switch.tsx +73 -0
- package/src/components/switch/config.json +55 -0
- package/src/components/switch/switch.django.html +28 -0
- package/src/components/switch/switch.html +56 -0
- package/src/components/table/Table.tsx +334 -0
- package/src/components/table/TableBody.tsx +253 -0
- package/src/components/table/TableCell.tsx +37 -0
- package/src/components/table/TableContext.tsx +87 -0
- package/src/components/table/TableFoot.tsx +68 -0
- package/src/components/table/TableGroup.tsx +69 -0
- package/src/components/table/TableHead.tsx +139 -0
- package/src/components/table/TableRow.tsx +56 -0
- package/src/components/table/__pycache__/table_helper.cpython-312.pyc +0 -0
- package/src/components/table/config.json +297 -0
- package/src/components/table/hooks/useRowDetails.ts +34 -0
- package/src/components/table/hooks/useTableGroups.ts +61 -0
- package/src/components/table/hooks/useTableSelect.ts +82 -0
- package/src/components/table/hooks/useTableSort.ts +60 -0
- package/src/components/table/table-body.django.html +68 -0
- package/src/components/table/table-detail-row.django.html +14 -0
- package/src/components/table/table-foot.django.html +31 -0
- package/src/components/table/table-group.django.html +40 -0
- package/src/components/table/table-head.django.html +85 -0
- package/src/components/table/table-row.django.html +98 -0
- package/src/components/table/table.django.html +60 -0
- package/src/components/table/table.html +1186 -0
- package/src/components/table/table_helper.py +298 -0
- package/src/components/table/types.ts +68 -0
- package/src/components/tag/Tag.tsx +75 -0
- package/src/components/tag/config.json +54 -0
- package/src/components/tag/tag.django.html +39 -0
- package/src/components/tag/tag.html +45 -0
- package/src/components/tag-group/TagGroup.tsx +35 -0
- package/src/components/tag-group/config.json +24 -0
- package/src/components/tag-group/tag-group.django.html +11 -0
- package/src/components/tag-group/tag-group.html +36 -0
- package/src/components/task-list/TaskList.tsx +40 -0
- package/src/components/task-list/config.json +41 -0
- package/src/components/task-list/task-list.django.html +21 -0
- package/src/components/task-list/task-list.html +24 -0
- package/src/components/text-area/TextArea.tsx +78 -0
- package/src/components/text-area/config.json +78 -0
- package/src/components/text-area/text-area.django.html +53 -0
- package/src/components/text-area/text-area.html +59 -0
- package/src/components/theme-picker/ThemePicker.tsx +106 -0
- package/src/components/theme-picker/config.json +39 -0
- package/src/components/theme-picker/theme-picker.django.html +32 -0
- package/src/components/theme-picker/theme-picker.html +67 -0
- package/src/components/time-picker/TimePicker.jsx +87 -0
- package/src/components/time-picker/config.json +76 -0
- package/src/components/time-picker/time-picker.django.html +67 -0
- package/src/components/time-picker/time-picker.html +123 -0
- package/src/components/toggle/Toggle.tsx +80 -0
- package/src/components/toggle/config.json +69 -0
- package/src/components/toggle/toggle.django.html +19 -0
- package/src/components/toggle/toggle.html +85 -0
- package/src/components/tooltip/Tooltip.tsx +33 -0
- package/src/components/tooltip/config.json +33 -0
- package/src/components/tooltip/tooltip.django.html +5 -0
- package/src/components/tooltip/tooltip.html +57 -0
- package/src/components/villain/Villain.tsx +47 -0
- package/src/components/villain/config.json +44 -0
- package/src/components/villain/villain.django.html +19 -0
- package/src/components/villain/villain.html +39 -0
- package/src/declarations.d.ts +1 -0
- package/src/index.js +82 -0
- package/src/styles/core.scss +12 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{# Django template for StepIndicator #}
|
|
2
|
+
{% with headingTagName=headingTag|default:'h4' %}
|
|
3
|
+
<div class="usa-step-indicator usx-step-indicator{% if variant %} usa-step-indicator--{{ variant }}{% endif %}{% if className %} {{ className }}{% endif %}">
|
|
4
|
+
<ol class="usa-step-indicator__segments">
|
|
5
|
+
{% for step in steps %}
|
|
6
|
+
{% if forloop.counter < currentStep %}
|
|
7
|
+
<li class="usa-step-indicator__segment usa-step-indicator__segment--complete">
|
|
8
|
+
<span class="usa-step-indicator__segment-label">{{ step.label }} <span class="usa-sr-only">completed</span></span>
|
|
9
|
+
</li>
|
|
10
|
+
{% elif forloop.counter == currentStep %}
|
|
11
|
+
<li class="usa-step-indicator__segment usa-step-indicator__segment--current" aria-current="true">
|
|
12
|
+
<span class="usa-step-indicator__segment-label">{{ step.label }}</span>
|
|
13
|
+
</li>
|
|
14
|
+
{% else %}
|
|
15
|
+
<li class="usa-step-indicator__segment">
|
|
16
|
+
<span class="usa-step-indicator__segment-label">{{ step.label }} <span class="usa-sr-only">not completed</span></span>
|
|
17
|
+
</li>
|
|
18
|
+
{% endif %}
|
|
19
|
+
{% endfor %}
|
|
20
|
+
</ol>
|
|
21
|
+
<div class="usa-step-indicator__header">
|
|
22
|
+
<{{ headingTagName }} class="usa-step-indicator__heading">
|
|
23
|
+
<span class="usa-step-indicator__heading-counter"><span class="usa-sr-only">Step</span>
|
|
24
|
+
<span class="usa-step-indicator__current-step">{{ currentStep }}</span>
|
|
25
|
+
<span class="usa-step-indicator__total-steps">of {{ steps|length }}</span> </span><span class="usa-step-indicator__heading-text">{% for step in steps %}{% if forloop.counter == currentStep %}{{ step.label }}{% endif %}{% endfor %}</span>
|
|
26
|
+
</{{ headingTagName }}>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
{% endwith %}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<div class="usa-step-indicator usx-step-indicator">
|
|
3
|
+
<ol class="usa-step-indicator__segments">
|
|
4
|
+
<li
|
|
5
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--complete"
|
|
6
|
+
>
|
|
7
|
+
<span class="usa-step-indicator__segment-label"
|
|
8
|
+
>Personal information <span class="usa-sr-only">completed</span></span
|
|
9
|
+
>
|
|
10
|
+
</li>
|
|
11
|
+
<li
|
|
12
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--complete"
|
|
13
|
+
>
|
|
14
|
+
<span class="usa-step-indicator__segment-label"
|
|
15
|
+
>Household status <span class="usa-sr-only">completed</span></span
|
|
16
|
+
>
|
|
17
|
+
</li>
|
|
18
|
+
<li
|
|
19
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--current"
|
|
20
|
+
aria-current="true"
|
|
21
|
+
>
|
|
22
|
+
<span class="usa-step-indicator__segment-label"
|
|
23
|
+
>Supporting documents</span
|
|
24
|
+
>
|
|
25
|
+
</li>
|
|
26
|
+
<li class="usa-step-indicator__segment">
|
|
27
|
+
<span class="usa-step-indicator__segment-label"
|
|
28
|
+
>Signature <span class="usa-sr-only">not completed</span></span
|
|
29
|
+
>
|
|
30
|
+
</li>
|
|
31
|
+
<li class="usa-step-indicator__segment">
|
|
32
|
+
<span class="usa-step-indicator__segment-label"
|
|
33
|
+
>Review and submit <span class="usa-sr-only">not completed</span></span
|
|
34
|
+
>
|
|
35
|
+
</li>
|
|
36
|
+
</ol>
|
|
37
|
+
<div class="usa-step-indicator__header">
|
|
38
|
+
<h4 class="usa-step-indicator__heading">
|
|
39
|
+
<span class="usa-step-indicator__heading-counter"
|
|
40
|
+
><span class="usa-sr-only">Step</span>
|
|
41
|
+
<span class="usa-step-indicator__current-step">3</span>
|
|
42
|
+
<span class="usa-step-indicator__total-steps">of 5</span> </span
|
|
43
|
+
><span class="usa-step-indicator__heading-text"
|
|
44
|
+
>Supporting documents</span
|
|
45
|
+
>
|
|
46
|
+
</h4>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<h3 class="site-preview-heading">No labels</h3>
|
|
51
|
+
<div class="usa-step-indicator usx-step-indicatorusa-step-indicator--no-labels">
|
|
52
|
+
<ol class="usa-step-indicator__segments">
|
|
53
|
+
<li
|
|
54
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--complete"
|
|
55
|
+
>
|
|
56
|
+
<span class="usa-step-indicator__segment-label"
|
|
57
|
+
>Personal information <span class="usa-sr-only">completed</span></span
|
|
58
|
+
>
|
|
59
|
+
</li>
|
|
60
|
+
<li
|
|
61
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--complete"
|
|
62
|
+
>
|
|
63
|
+
<span class="usa-step-indicator__segment-label"
|
|
64
|
+
>Household status <span class="usa-sr-only">completed</span></span
|
|
65
|
+
>
|
|
66
|
+
</li>
|
|
67
|
+
<li
|
|
68
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--current"
|
|
69
|
+
>
|
|
70
|
+
<span class="usa-step-indicator__segment-label"
|
|
71
|
+
>Supporting documents</span
|
|
72
|
+
>
|
|
73
|
+
</li>
|
|
74
|
+
<li class="usa-step-indicator__segment">
|
|
75
|
+
<span class="usa-step-indicator__segment-label"
|
|
76
|
+
>Signature <span class="usa-sr-only">not completed</span></span
|
|
77
|
+
>
|
|
78
|
+
</li>
|
|
79
|
+
<li class="usa-step-indicator__segment">
|
|
80
|
+
<span class="usa-step-indicator__segment-label"
|
|
81
|
+
>Review and submit <span class="usa-sr-only">not completed</span></span
|
|
82
|
+
>
|
|
83
|
+
</li>
|
|
84
|
+
</ol>
|
|
85
|
+
<div class="usa-step-indicator__header">
|
|
86
|
+
<h4 class="usa-step-indicator__heading">
|
|
87
|
+
<span class="usa-step-indicator__heading-counter"
|
|
88
|
+
><span class="usa-sr-only">Step</span>
|
|
89
|
+
<span class="usa-step-indicator__current-step">3</span>
|
|
90
|
+
<span class="usa-step-indicator__total-steps">of 5</span> </span
|
|
91
|
+
><span class="usa-step-indicator__heading-text"
|
|
92
|
+
>Supporting documents</span
|
|
93
|
+
>
|
|
94
|
+
</h4>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
<h3 class="site-preview-heading">Centered</h3>
|
|
99
|
+
<div class="usa-step-indicator usx-step-indicatorusa-step-indicator--center">
|
|
100
|
+
<ol class="usa-step-indicator__segments">
|
|
101
|
+
<li
|
|
102
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--complete"
|
|
103
|
+
>
|
|
104
|
+
<span class="usa-step-indicator__segment-label"
|
|
105
|
+
>Personal information <span class="usa-sr-only">completed</span></span
|
|
106
|
+
>
|
|
107
|
+
</li>
|
|
108
|
+
<li
|
|
109
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--complete"
|
|
110
|
+
>
|
|
111
|
+
<span class="usa-step-indicator__segment-label"
|
|
112
|
+
>Household status <span class="usa-sr-only">completed</span></span
|
|
113
|
+
>
|
|
114
|
+
</li>
|
|
115
|
+
<li
|
|
116
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--current"
|
|
117
|
+
aria-current="true"
|
|
118
|
+
>
|
|
119
|
+
<span class="usa-step-indicator__segment-label"
|
|
120
|
+
>Supporting documents</span
|
|
121
|
+
>
|
|
122
|
+
</li>
|
|
123
|
+
<li class="usa-step-indicator__segment">
|
|
124
|
+
<span class="usa-step-indicator__segment-label"
|
|
125
|
+
>Signature <span class="usa-sr-only">not completed</span></span
|
|
126
|
+
>
|
|
127
|
+
</li>
|
|
128
|
+
<li class="usa-step-indicator__segment">
|
|
129
|
+
<span class="usa-step-indicator__segment-label"
|
|
130
|
+
>Review and submit <span class="usa-sr-only">not completed</span></span
|
|
131
|
+
>
|
|
132
|
+
</li>
|
|
133
|
+
</ol>
|
|
134
|
+
<div class="usa-step-indicator__header">
|
|
135
|
+
<h4 class="usa-step-indicator__heading">
|
|
136
|
+
<span class="usa-step-indicator__heading-counter"
|
|
137
|
+
><span class="usa-sr-only">Step</span>
|
|
138
|
+
<span class="usa-step-indicator__current-step">3</span>
|
|
139
|
+
<span class="usa-step-indicator__total-steps">of 5</span> </span
|
|
140
|
+
><span class="usa-step-indicator__heading-text"
|
|
141
|
+
>Supporting documents</span
|
|
142
|
+
>
|
|
143
|
+
</h4>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
|
|
147
|
+
<h3 class="site-preview-heading">Counters</h3>
|
|
148
|
+
<div class="usa-step-indicator usx-step-indicatorusa-step-indicator--counters">
|
|
149
|
+
<ol class="usa-step-indicator__segments">
|
|
150
|
+
<li
|
|
151
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--complete"
|
|
152
|
+
>
|
|
153
|
+
<span class="usa-step-indicator__segment-label"
|
|
154
|
+
>Personal information <span class="usa-sr-only">completed</span></span
|
|
155
|
+
>
|
|
156
|
+
</li>
|
|
157
|
+
<li
|
|
158
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--complete"
|
|
159
|
+
>
|
|
160
|
+
<span class="usa-step-indicator__segment-label"
|
|
161
|
+
>Household status <span class="usa-sr-only">completed</span></span
|
|
162
|
+
>
|
|
163
|
+
</li>
|
|
164
|
+
<li
|
|
165
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--current"
|
|
166
|
+
aria-current="true"
|
|
167
|
+
>
|
|
168
|
+
<span class="usa-step-indicator__segment-label"
|
|
169
|
+
>Supporting documents</span
|
|
170
|
+
>
|
|
171
|
+
</li>
|
|
172
|
+
<li class="usa-step-indicator__segment">
|
|
173
|
+
<span class="usa-step-indicator__segment-label"
|
|
174
|
+
>Signature <span class="usa-sr-only">not completed</span></span
|
|
175
|
+
>
|
|
176
|
+
</li>
|
|
177
|
+
<li class="usa-step-indicator__segment">
|
|
178
|
+
<span class="usa-step-indicator__segment-label"
|
|
179
|
+
>Review and submit <span class="usa-sr-only">not completed</span></span
|
|
180
|
+
>
|
|
181
|
+
</li>
|
|
182
|
+
</ol>
|
|
183
|
+
<div class="usa-step-indicator__header">
|
|
184
|
+
<h4 class="usa-step-indicator__heading">
|
|
185
|
+
<span class="usa-step-indicator__heading-counter"
|
|
186
|
+
><span class="usa-sr-only">Step</span>
|
|
187
|
+
<span class="usa-step-indicator__current-step">3</span>
|
|
188
|
+
<span class="usa-step-indicator__total-steps">of 5</span> </span
|
|
189
|
+
><span class="usa-step-indicator__heading-text"
|
|
190
|
+
>Supporting documents</span
|
|
191
|
+
>
|
|
192
|
+
</h4>
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
|
|
196
|
+
<h3 class="site-preview-heading">Small counters</h3>
|
|
197
|
+
<div class="usa-step-indicator usx-step-indicatorusa-step-indicator--counters-sm">
|
|
198
|
+
<ol class="usa-step-indicator__segments">
|
|
199
|
+
<li
|
|
200
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--complete"
|
|
201
|
+
>
|
|
202
|
+
<span class="usa-step-indicator__segment-label"
|
|
203
|
+
>Personal information <span class="usa-sr-only">completed</span></span
|
|
204
|
+
>
|
|
205
|
+
</li>
|
|
206
|
+
<li
|
|
207
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--complete"
|
|
208
|
+
>
|
|
209
|
+
<span class="usa-step-indicator__segment-label"
|
|
210
|
+
>Household status <span class="usa-sr-only">completed</span></span
|
|
211
|
+
>
|
|
212
|
+
</li>
|
|
213
|
+
<li
|
|
214
|
+
class="usa-step-indicator__segment usa-step-indicator__segment--current"
|
|
215
|
+
aria-current="true"
|
|
216
|
+
>
|
|
217
|
+
<span class="usa-step-indicator__segment-label"
|
|
218
|
+
>Supporting documents</span
|
|
219
|
+
>
|
|
220
|
+
</li>
|
|
221
|
+
<li class="usa-step-indicator__segment">
|
|
222
|
+
<span class="usa-step-indicator__segment-label"
|
|
223
|
+
>Signature <span class="usa-sr-only">not completed</span></span
|
|
224
|
+
>
|
|
225
|
+
</li>
|
|
226
|
+
<li class="usa-step-indicator__segment">
|
|
227
|
+
<span class="usa-step-indicator__segment-label"
|
|
228
|
+
>Review and submit <span class="usa-sr-only">not completed</span></span
|
|
229
|
+
>
|
|
230
|
+
</li>
|
|
231
|
+
</ol>
|
|
232
|
+
<div class="usa-step-indicator__header">
|
|
233
|
+
<h4 class="usa-step-indicator__heading">
|
|
234
|
+
<span class="usa-step-indicator__heading-counter"
|
|
235
|
+
><span class="usa-sr-only">Step</span>
|
|
236
|
+
<span class="usa-step-indicator__current-step">3</span>
|
|
237
|
+
<span class="usa-step-indicator__total-steps">of 5</span> </span
|
|
238
|
+
><span class="usa-step-indicator__heading-text"
|
|
239
|
+
>Supporting documents</span
|
|
240
|
+
>
|
|
241
|
+
</h4>
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ClassNames from 'classnames';
|
|
3
|
+
|
|
4
|
+
export interface SummaryBoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
id?: string;
|
|
6
|
+
heading: string;
|
|
7
|
+
content?: React.ReactNode;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const SummaryBox: React.FC<SummaryBoxProps> = ({
|
|
13
|
+
id = 'summary-box-heading',
|
|
14
|
+
heading,
|
|
15
|
+
content = '',
|
|
16
|
+
children = null,
|
|
17
|
+
className = '',
|
|
18
|
+
...props
|
|
19
|
+
}) => {
|
|
20
|
+
const classes = ClassNames('usa-summary-box', 'usx-summary-box', className);
|
|
21
|
+
const headingId = id;
|
|
22
|
+
const bodyContent = children ?? content;
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<div
|
|
26
|
+
className={classes}
|
|
27
|
+
role="region"
|
|
28
|
+
aria-labelledby={headingId}
|
|
29
|
+
{...props}
|
|
30
|
+
>
|
|
31
|
+
<div className="usa-summary-box__body">
|
|
32
|
+
<h4 className="usa-summary-box__heading" id={headingId}>{heading}</h4>
|
|
33
|
+
<div className="usa-summary-box__text">
|
|
34
|
+
{bodyContent}
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default SummaryBox;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "summary-box",
|
|
3
|
+
"template": "summary-box/summary-box.django.html",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"required": [
|
|
6
|
+
"heading"
|
|
7
|
+
],
|
|
8
|
+
"props": {
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Heading id used by aria-labelledby"
|
|
12
|
+
},
|
|
13
|
+
"heading": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Required summary heading"
|
|
16
|
+
},
|
|
17
|
+
"content": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "HTML/text summary content"
|
|
20
|
+
},
|
|
21
|
+
"children": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Inner HTML or text (takes priority over content)"
|
|
24
|
+
},
|
|
25
|
+
"className": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Additional classes"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{# Django template for SummaryBox #}
|
|
2
|
+
<div
|
|
3
|
+
class="usa-summary-box usx-summary-box {{ className }}"
|
|
4
|
+
role="region"
|
|
5
|
+
aria-labelledby="{{ id|default:'summary-box-heading' }}"
|
|
6
|
+
>
|
|
7
|
+
<div class="usa-summary-box__body">
|
|
8
|
+
<h4 class="usa-summary-box__heading" id="{{ id|default:'summary-box-heading' }}">
|
|
9
|
+
{{ heading }}
|
|
10
|
+
</h4>
|
|
11
|
+
<div class="usa-summary-box__text">
|
|
12
|
+
{% if children %}
|
|
13
|
+
{{ children|safe }}
|
|
14
|
+
{% elif content %}
|
|
15
|
+
{{ content|safe }}
|
|
16
|
+
{% endif %}
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<div
|
|
3
|
+
class="usa-summary-box usx-summary-box"
|
|
4
|
+
role="region"
|
|
5
|
+
aria-labelledby="summary-box-key-information"
|
|
6
|
+
>
|
|
7
|
+
<div class="usa-summary-box__body">
|
|
8
|
+
<h4 class="usa-summary-box__heading" id="summary-box-key-information">
|
|
9
|
+
Key information
|
|
10
|
+
</h4>
|
|
11
|
+
<div class="usa-summary-box__text">
|
|
12
|
+
<ul class="usa-list">
|
|
13
|
+
<li>
|
|
14
|
+
If you are under a winter storm warning,
|
|
15
|
+
<a class="usa-summary-box__link" href="">find shelter</a> right away.
|
|
16
|
+
</li>
|
|
17
|
+
<li>
|
|
18
|
+
Sign up for
|
|
19
|
+
<a class="usa-summary-box__link" href=""
|
|
20
|
+
>your community’s warning system</a
|
|
21
|
+
>.
|
|
22
|
+
</li>
|
|
23
|
+
<li>
|
|
24
|
+
Learn the signs of, and basic treatments for,
|
|
25
|
+
<a class="usa-summary-box__link" href="">frostbite</a> and
|
|
26
|
+
<a class="usa-summary-box__link" href="">hypothermia</a>.
|
|
27
|
+
</li>
|
|
28
|
+
<li>
|
|
29
|
+
Gather emergency supplies for your
|
|
30
|
+
<a class="usa-summary-box__link" href="">home</a> and your
|
|
31
|
+
<a class="usa-summary-box__link" href="">car</a>.
|
|
32
|
+
</li>
|
|
33
|
+
</ul>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<h3 class="site-preview-heading">Program summary: Winter Relief 2026</h3>
|
|
39
|
+
<div
|
|
40
|
+
class="usa-summary-box usx-summary-box"
|
|
41
|
+
role="region"
|
|
42
|
+
aria-labelledby="summary-box-executive-summary"
|
|
43
|
+
>
|
|
44
|
+
<div class="usa-summary-box__body">
|
|
45
|
+
<h4 class="usa-summary-box__heading" id="summary-box-executive-summary">
|
|
46
|
+
Program summary: Winter Relief 2026
|
|
47
|
+
</h4>
|
|
48
|
+
<div class="usa-summary-box__text">
|
|
49
|
+
This page tracks a 12-week emergency housing initiative serving 4 counties.
|
|
50
|
+
Use the summaries below to review what happened, what changed, and what
|
|
51
|
+
decisions remain.
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<h3 class="site-preview-heading">Step 1: Starting conditions</h3>
|
|
57
|
+
<div
|
|
58
|
+
class="usa-summary-box usx-summary-box"
|
|
59
|
+
role="region"
|
|
60
|
+
aria-labelledby="summary-box-step-1"
|
|
61
|
+
>
|
|
62
|
+
<div class="usa-summary-box__body">
|
|
63
|
+
<h4 class="usa-summary-box__heading" id="summary-box-step-1">
|
|
64
|
+
Step 1: Starting conditions
|
|
65
|
+
</h4>
|
|
66
|
+
<div class="usa-summary-box__text">
|
|
67
|
+
At launch, 1,840 households were on waitlists, average placement time was
|
|
68
|
+
19 days, and only 2 shelters had overnight capacity during severe weather
|
|
69
|
+
events.
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<h3 class="site-preview-heading">Step 2: Actions completed</h3>
|
|
75
|
+
<div
|
|
76
|
+
class="usa-summary-box usx-summary-box"
|
|
77
|
+
role="region"
|
|
78
|
+
aria-labelledby="summary-box-step-2"
|
|
79
|
+
>
|
|
80
|
+
<div class="usa-summary-box__body">
|
|
81
|
+
<h4 class="usa-summary-box__heading" id="summary-box-step-2">
|
|
82
|
+
Step 2: Actions completed
|
|
83
|
+
</h4>
|
|
84
|
+
<div class="usa-summary-box__text">
|
|
85
|
+
Teams expanded outreach coverage, opened two temporary warming sites,
|
|
86
|
+
added weekend processing, and launched an SMS intake path for applicants
|
|
87
|
+
without reliable internet.
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<h3 class="site-preview-heading">Step 3: Measured outcomes</h3>
|
|
93
|
+
<div
|
|
94
|
+
class="usa-summary-box usx-summary-box"
|
|
95
|
+
role="region"
|
|
96
|
+
aria-labelledby="summary-box-step-3"
|
|
97
|
+
>
|
|
98
|
+
<div class="usa-summary-box__body">
|
|
99
|
+
<h4 class="usa-summary-box__heading" id="summary-box-step-3">
|
|
100
|
+
Step 3: Measured outcomes
|
|
101
|
+
</h4>
|
|
102
|
+
<div class="usa-summary-box__text">
|
|
103
|
+
Waitlist volume decreased 37%, median placement time improved from 19 to
|
|
104
|
+
11 days, and no-weather-exposure incidents were reported at participating
|
|
105
|
+
overnight sites.
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<h3 class="site-preview-heading">Step 4: Decision points for leadership</h3>
|
|
111
|
+
<div
|
|
112
|
+
class="usa-summary-box usx-summary-box"
|
|
113
|
+
role="region"
|
|
114
|
+
aria-labelledby="summary-box-step-4"
|
|
115
|
+
>
|
|
116
|
+
<div class="usa-summary-box__body">
|
|
117
|
+
<h4 class="usa-summary-box__heading" id="summary-box-step-4">
|
|
118
|
+
Step 4: Decision points for leadership
|
|
119
|
+
</h4>
|
|
120
|
+
<div class="usa-summary-box__text">
|
|
121
|
+
Leadership must decide whether to fund weekend processing permanently and
|
|
122
|
+
whether to scale SMS intake statewide before the next forecasted
|
|
123
|
+
severe-weather cycle.
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
<h3 class="site-preview-heading">Children priority demo</h3>
|
|
129
|
+
<div
|
|
130
|
+
class="usa-summary-box usx-summary-box"
|
|
131
|
+
role="region"
|
|
132
|
+
aria-labelledby="summary-box-children-priority"
|
|
133
|
+
>
|
|
134
|
+
<div class="usa-summary-box__body">
|
|
135
|
+
<h4 class="usa-summary-box__heading" id="summary-box-children-priority">
|
|
136
|
+
Children priority demo
|
|
137
|
+
</h4>
|
|
138
|
+
<div class="usa-summary-box__text">
|
|
139
|
+
Children content takes priority and can be used for tailored, page-specific summaries.
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<h3 class="site-preview-heading">90-day action plan summary</h3>
|
|
145
|
+
<div
|
|
146
|
+
class="usa-summary-box usx-summary-box"
|
|
147
|
+
role="region"
|
|
148
|
+
aria-labelledby="summary-box-action-plan"
|
|
149
|
+
>
|
|
150
|
+
<div class="usa-summary-box__body">
|
|
151
|
+
<h4 class="usa-summary-box__heading" id="summary-box-action-plan">
|
|
152
|
+
90-day action plan summary
|
|
153
|
+
</h4>
|
|
154
|
+
<div class="usa-summary-box__text">
|
|
155
|
+
<ul class="usa-list">
|
|
156
|
+
<li>Stabilize intake operations in counties with longest wait times.</li>
|
|
157
|
+
<li>Train partner shelters on standardized eligibility checks.</li>
|
|
158
|
+
<li>Publish weekly placement dashboard for transparency.</li>
|
|
159
|
+
<li>Prepare budget scenarios for permanent weekend staffing.</li>
|
|
160
|
+
</ul>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
|
|
165
|
+
<h3 class="site-preview-heading">Weekly KPI highlights</h3>
|
|
166
|
+
<div
|
|
167
|
+
class="usa-summary-box usx-summary-box"
|
|
168
|
+
role="region"
|
|
169
|
+
aria-labelledby="summary-box-kpi-highlights"
|
|
170
|
+
>
|
|
171
|
+
<div class="usa-summary-box__body">
|
|
172
|
+
<h4 class="usa-summary-box__heading" id="summary-box-kpi-highlights">
|
|
173
|
+
Weekly KPI highlights
|
|
174
|
+
</h4>
|
|
175
|
+
<div class="usa-summary-box__text">
|
|
176
|
+
<ul class="usa-icon-list">
|
|
177
|
+
<li class="usa-icon-list__item">
|
|
178
|
+
<div class="usa-icon-list__icon text-success">
|
|
179
|
+
<svg class="usa-icon" aria-hidden="true" role="img">
|
|
180
|
+
<use href="./img/sprite.svg#check_circle"></use>
|
|
181
|
+
</svg>
|
|
182
|
+
</div>
|
|
183
|
+
<div class="usa-icon-list__content">
|
|
184
|
+
Placement target exceeded by 8% this week.
|
|
185
|
+
</div>
|
|
186
|
+
</li>
|
|
187
|
+
<li class="usa-icon-list__item">
|
|
188
|
+
<div class="usa-icon-list__icon text-warning">
|
|
189
|
+
<svg class="usa-icon" aria-hidden="true" role="img">
|
|
190
|
+
<use href="./img/sprite.svg#warning"></use>
|
|
191
|
+
</svg>
|
|
192
|
+
</div>
|
|
193
|
+
<div class="usa-icon-list__content">
|
|
194
|
+
Two sites are at risk of capacity saturation in 10 days.
|
|
195
|
+
</div>
|
|
196
|
+
</li>
|
|
197
|
+
<li class="usa-icon-list__item">
|
|
198
|
+
<div class="usa-icon-list__icon text-primary">
|
|
199
|
+
<svg class="usa-icon" aria-hidden="true" role="img">
|
|
200
|
+
<use href="./img/sprite.svg#trending_up"></use>
|
|
201
|
+
</svg>
|
|
202
|
+
</div>
|
|
203
|
+
<div class="usa-icon-list__content">
|
|
204
|
+
Referral completion rate improved 14% month over month.
|
|
205
|
+
</div>
|
|
206
|
+
</li>
|
|
207
|
+
</ul>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export interface SwapProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
variant?: 'default' | 'active' | 'rotate' | 'flip';
|
|
7
|
+
onContent?: React.ReactNode;
|
|
8
|
+
offContent?: React.ReactNode;
|
|
9
|
+
includeInput?: boolean;
|
|
10
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
11
|
+
onClassName?: string;
|
|
12
|
+
offClassName?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const Swap: React.FC<SwapProps> = ({
|
|
16
|
+
children = null,
|
|
17
|
+
className = '',
|
|
18
|
+
variant = 'default',
|
|
19
|
+
onContent = 'ON',
|
|
20
|
+
offContent = 'OFF',
|
|
21
|
+
includeInput = true,
|
|
22
|
+
inputProps = {},
|
|
23
|
+
onClassName = '',
|
|
24
|
+
offClassName = '',
|
|
25
|
+
...props
|
|
26
|
+
}) => {
|
|
27
|
+
const variantClass = variant !== 'default' ? `usx-swap--${variant}` : '';
|
|
28
|
+
const classes = ['usx-swap', variantClass, className].filter(Boolean).join(' ');
|
|
29
|
+
const onClasses = ['usx-swap-on', onClassName].filter(Boolean).join(' ');
|
|
30
|
+
const offClasses = ['usx-swap-off', offClassName].filter(Boolean).join(' ');
|
|
31
|
+
|
|
32
|
+
const content = children || (
|
|
33
|
+
<>
|
|
34
|
+
{includeInput ? <input type="checkbox" autoComplete="off" {...inputProps} /> : null}
|
|
35
|
+
<span className={onClasses}>{onContent}</span>
|
|
36
|
+
<span className={offClasses}>{offContent}</span>
|
|
37
|
+
</>
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<label className={classes} {...props}>
|
|
42
|
+
{content}
|
|
43
|
+
</label>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export default Swap;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "swap",
|
|
3
|
+
"template": "swap/swap.django.html",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"default": {
|
|
6
|
+
"onContent": "ON",
|
|
7
|
+
"offContent": "OFF",
|
|
8
|
+
"variant": "default",
|
|
9
|
+
"includeInput": true
|
|
10
|
+
},
|
|
11
|
+
"props": {
|
|
12
|
+
"children": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Advanced override for full inner HTML"
|
|
15
|
+
},
|
|
16
|
+
"onContent": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Markup or text shown when swap is on"
|
|
19
|
+
},
|
|
20
|
+
"offContent": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Markup or text shown when swap is off"
|
|
23
|
+
},
|
|
24
|
+
"includeInput": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"description": "Render default checkbox input control"
|
|
27
|
+
},
|
|
28
|
+
"inputId": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "ID applied to the generated checkbox"
|
|
31
|
+
},
|
|
32
|
+
"inputClassName": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Classes applied to the generated checkbox"
|
|
35
|
+
},
|
|
36
|
+
"inputChecked": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"description": "Whether generated checkbox is initially checked"
|
|
39
|
+
},
|
|
40
|
+
"inputProps": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"description": "Additional attributes applied to the generated checkbox"
|
|
43
|
+
},
|
|
44
|
+
"onClassName": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Additional classes on on-state wrapper"
|
|
47
|
+
},
|
|
48
|
+
"offClassName": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Additional classes on off-state wrapper"
|
|
51
|
+
},
|
|
52
|
+
"className": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Additional CSS classes"
|
|
55
|
+
},
|
|
56
|
+
"variant": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"description": "Animation variant: 'default', 'active', 'rotate', or 'flip'"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|