@solexllc/usx-react 0.6.1 → 0.8.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 +5 -8
- package/dist/index.cjs +879 -503
- package/dist/index.js +879 -503
- package/package.json +5 -5
- package/src/components/accordion/Accordion.tsx +7 -9
- package/src/components/accordion/accordion.django-snapshot.html +515 -0
- package/src/components/accordion/accordion.django.html +9 -25
- package/src/components/accordion/accordion.html +403 -193
- package/src/components/accordion/accordion.react-snapshot.html +475 -0
- package/src/components/accordion/config.json +29 -3
- package/src/components/alert/Alert.tsx +4 -3
- package/src/components/alert/alert.django-snapshot.html +175 -0
- package/src/components/alert/alert.django.html +14 -12
- package/src/components/alert/alert.html +112 -148
- package/src/components/alert/alert.react-snapshot.html +152 -0
- package/src/components/alert/config.json +5 -8
- package/src/components/attribution/attribution.django-snapshot.html +57 -0
- package/src/components/attribution/attribution.django.html +2 -2
- package/src/components/attribution/attribution.html +50 -21
- package/src/components/attribution/attribution.react-snapshot.html +49 -0
- package/src/components/attribution/config.json +4 -0
- package/src/components/avatar/Avatar.tsx +6 -15
- package/src/components/avatar/avatar.django-snapshot.html +131 -0
- package/src/components/avatar/avatar.django.html +9 -10
- package/src/components/avatar/avatar.html +86 -51
- package/src/components/avatar/avatar.react-snapshot.html +121 -0
- package/src/components/avatar/config.json +10 -3
- package/src/components/avatar-group/AvatarGroup.tsx +3 -3
- package/src/components/avatar-group/avatar-group.django-snapshot.html +278 -0
- package/src/components/avatar-group/avatar-group.django.html +3 -3
- package/src/components/avatar-group/avatar-group.html +5 -5
- package/src/components/avatar-group/avatar-group.react-snapshot.html +226 -0
- package/src/components/back-to-top/BackToTop.tsx +7 -2
- package/src/components/back-to-top/back-to-top.django-snapshot.html +339 -0
- package/src/components/back-to-top/back-to-top.django.html +6 -4
- package/src/components/back-to-top/back-to-top.react-snapshot.html +264 -0
- package/src/components/back-to-top/config.json +9 -0
- package/src/components/banner/banner.django-snapshot.html +329 -0
- package/src/components/banner/banner.django.html +2 -2
- package/src/components/banner/banner.html +87 -185
- package/src/components/banner/banner.react-snapshot.html +317 -0
- package/src/components/banner/config.json +3 -0
- package/src/components/breadcrumb/Breadcrumb.tsx +1 -1
- package/src/components/breadcrumb/breadcrumb.django-snapshot.html +103 -0
- package/src/components/breadcrumb/breadcrumb.django.html +5 -6
- package/src/components/breadcrumb/breadcrumb.html +45 -66
- package/src/components/breadcrumb/breadcrumb.react-snapshot.html +87 -0
- package/src/components/breadcrumb/config.json +2 -8
- package/src/components/button/Button.tsx +1 -0
- package/src/components/button/button.django-snapshot.html +558 -0
- package/src/components/button/button.django.html +4 -4
- package/src/components/button/button.html +363 -226
- package/src/components/button/button.react-snapshot.html +574 -0
- package/src/components/button/config.json +4 -0
- package/src/components/button-group/button-group.django-snapshot.html +129 -0
- package/src/components/button-group/button-group.django.html +1 -1
- package/src/components/button-group/button-group.react-snapshot.html +115 -0
- package/src/components/button-group/config.json +16 -0
- package/src/components/calendar-date/calendar-date.django-snapshot.html +7 -0
- package/src/components/calendar-date/calendar-date.django.html +1 -1
- package/src/components/calendar-date/calendar-date.react-snapshot.html +7 -0
- package/src/components/calendar-date/config.json +3 -0
- package/src/components/callout/Callout.tsx +2 -5
- package/src/components/callout/callout.django-snapshot.html +59 -0
- package/src/components/callout/callout.django.html +3 -3
- package/src/components/callout/callout.html +0 -5
- package/src/components/callout/callout.react-snapshot.html +57 -0
- package/src/components/callout/config.json +6 -7
- package/src/components/card/Card.tsx +8 -5
- package/src/components/card/card.django-snapshot.html +1198 -0
- package/src/components/card/card.django.html +5 -5
- package/src/components/card/card.html +1032 -35
- package/src/components/card/card.react-snapshot.html +1028 -0
- package/src/components/card/config.json +25 -4
- package/src/components/card-group/CardGroup.tsx +1 -1
- package/src/components/card-group/card-group.django-snapshot.html +514 -0
- package/src/components/card-group/card-group.django.html +2 -2
- package/src/components/card-group/card-group.html +388 -95
- package/src/components/card-group/card-group.react-snapshot.html +445 -0
- package/src/components/card-group/config.json +80 -2
- package/src/components/carousel/Carousel.tsx +45 -71
- package/src/components/carousel/carousel.django-snapshot.html +927 -0
- package/src/components/carousel/carousel.django.html +23 -47
- package/src/components/carousel/carousel.html +715 -32
- package/src/components/carousel/carousel.react-snapshot.html +762 -0
- package/src/components/carousel/config.json +43 -12
- package/src/components/character-count/CharacterCount.tsx +1 -3
- package/src/components/character-count/character-count.django-snapshot.html +402 -0
- package/src/components/character-count/character-count.django.html +1 -1
- package/src/components/character-count/character-count.html +231 -26
- package/src/components/character-count/character-count.react-snapshot.html +346 -0
- package/src/components/character-count/config.json +5 -0
- package/src/components/checkbox/Checkbox.tsx +7 -2
- package/src/components/checkbox/checkbox.django-snapshot.html +373 -0
- package/src/components/checkbox/checkbox.django.html +22 -3
- package/src/components/checkbox/checkbox.html +313 -241
- package/src/components/checkbox/checkbox.react-snapshot.html +313 -0
- package/src/components/checkbox/config.json +12 -1
- package/src/components/checkbox-group/CheckboxGroup.tsx +1 -0
- package/src/components/checkbox-group/checkbox-group.django-snapshot.html +372 -0
- package/src/components/checkbox-group/checkbox-group.django.html +2 -2
- package/src/components/checkbox-group/checkbox-group.html +346 -26
- package/src/components/checkbox-group/checkbox-group.react-snapshot.html +300 -0
- package/src/components/checkbox-group/config.json +24 -0
- package/src/components/clickable/clickable-bg-color-change.django.html +1 -0
- package/src/components/clickable/clickable-color-change.django.html +1 -0
- package/src/components/clickable/clickable-link.django.html +1 -0
- package/src/components/clickable/clickable.django-snapshot.html +221 -0
- package/src/components/clickable/clickable.django.html +6 -2
- package/src/components/clickable/clickable.html +168 -83
- package/src/components/clickable/clickable.react-snapshot.html +194 -0
- package/src/components/clickable/config.json +9 -7
- package/src/components/code/Code.tsx +4 -3
- package/src/components/code/code.django-snapshot.html +375 -0
- package/src/components/code/code.django.html +2 -2
- package/src/components/code/code.html +201 -38
- package/src/components/code/code.react-snapshot.html +249 -0
- package/src/components/code/config.json +22 -0
- package/src/components/collection/collection.django-snapshot.html +238 -0
- package/src/components/collection/collection.django.html +1 -1
- package/src/components/collection/collection.html +203 -379
- package/src/components/collection/collection.react-snapshot.html +200 -0
- package/src/components/collection/config.json +49 -0
- package/src/components/combobox/Combobox.tsx +1 -0
- package/src/components/combobox/combobox.django-snapshot.html +1302 -0
- package/src/components/combobox/combobox.django.html +3 -5
- package/src/components/combobox/combobox.html +21 -9
- package/src/components/combobox/combobox.react-snapshot.html +714 -0
- package/src/components/combobox/config.json +269 -2
- package/src/components/container/Container.tsx +3 -3
- package/src/components/container/config.json +9 -5
- package/src/components/container/container.django-snapshot.html +2820 -0
- package/src/components/container/container.django.html +2 -2
- package/src/components/container/container.html +2616 -80
- package/src/components/container/container.react-snapshot.html +2400 -0
- package/src/components/copy-to-clipboard/CopyToClipboard.tsx +2 -2
- package/src/components/copy-to-clipboard/config.json +8 -0
- package/src/components/copy-to-clipboard/copy-to-clipboard.django-snapshot.html +84 -0
- package/src/components/copy-to-clipboard/copy-to-clipboard.django.html +1 -1
- package/src/components/copy-to-clipboard/copy-to-clipboard.html +48 -20
- package/src/components/copy-to-clipboard/copy-to-clipboard.react-snapshot.html +60 -0
- package/src/components/date-picker/date-picker.django-snapshot.html +150 -0
- package/src/components/date-picker/date-picker.django.html +1 -1
- package/src/components/date-picker/date-picker.react-snapshot.html +122 -0
- package/src/components/date-range-picker/date-range-picker.django-snapshot.html +301 -0
- package/src/components/date-range-picker/date-range-picker.django.html +1 -1
- package/src/components/date-range-picker/date-range-picker.react-snapshot.html +246 -0
- package/src/components/details/Details.tsx +49 -0
- package/src/components/details/config.json +56 -0
- package/src/components/details/details.django-snapshot.html +238 -0
- package/src/components/details/details.django.html +10 -0
- package/src/components/details/details.html +215 -0
- package/src/components/details/details.react-snapshot.html +215 -0
- package/src/components/drawer/Drawer.tsx +125 -0
- package/src/components/drawer/config.json +97 -0
- package/src/components/drawer/drawer.django-snapshot.html +1711 -0
- package/src/components/drawer/drawer.django.html +34 -0
- package/src/components/drawer/drawer.html +1031 -0
- package/src/components/drawer/drawer.react-snapshot.html +1027 -0
- package/src/components/error-message/config.json +4 -0
- package/src/components/error-message/error-message.django-snapshot.html +12 -0
- package/src/components/error-message/error-message.html +15 -2
- package/src/components/error-message/error-message.react-snapshot.html +12 -0
- package/src/components/error-page/ErrorPage.tsx +169 -0
- package/src/components/error-page/config.json +153 -0
- package/src/components/error-page/error-page.django-snapshot.html +570 -0
- package/src/components/error-page/error-page.django.html +80 -0
- package/src/components/error-page/error-page.html +437 -0
- package/src/components/error-page/error-page.react-snapshot.html +467 -0
- package/src/components/eyebrow/config.json +3 -0
- package/src/components/eyebrow/eyebrow.django-snapshot.html +8 -0
- package/src/components/eyebrow/eyebrow.html +8 -4
- package/src/components/eyebrow/eyebrow.react-snapshot.html +8 -0
- package/src/components/fieldset/config.json +4 -0
- package/src/components/fieldset/fieldset.django-snapshot.html +50 -0
- package/src/components/fieldset/fieldset.django.html +2 -1
- package/src/components/fieldset/fieldset.html +33 -7
- package/src/components/fieldset/fieldset.react-snapshot.html +39 -0
- package/src/components/file-input/FileInput.tsx +2 -1
- package/src/components/file-input/_contents.django.html +29 -0
- package/src/components/file-input/config.json +7 -3
- package/src/components/file-input/file-input.django-snapshot.html +534 -0
- package/src/components/file-input/file-input.django.html +3 -50
- package/src/components/file-input/file-input.html +341 -102
- package/src/components/file-input/file-input.react-snapshot.html +440 -0
- package/src/components/file-list/config.json +2 -2
- package/src/components/file-list/file-list.django-snapshot.html +328 -0
- package/src/components/file-list/file-list.django.html +9 -6
- package/src/components/file-list/file-list.html +191 -7
- package/src/components/file-list/file-list.react-snapshot.html +276 -0
- package/src/components/footer/config.json +162 -1
- package/src/components/footer/footer.django-snapshot.html +1009 -0
- package/src/components/footer/footer.django.html +10 -7
- package/src/components/footer/footer.html +611 -232
- package/src/components/footer/footer.react-snapshot.html +796 -0
- package/src/components/form-group/config.json +3 -0
- package/src/components/form-group/form-group.django-snapshot.html +50 -0
- package/src/components/form-group/form-group.django.html +1 -1
- package/src/components/form-group/form-group.react-snapshot.html +43 -0
- package/src/components/header/Header.tsx +3 -3
- package/src/components/header/branding.django.html +14 -0
- package/src/components/header/config.json +73 -0
- package/src/components/header/header.django-snapshot.html +3395 -0
- package/src/components/header/header.django.html +9 -5
- package/src/components/header/header.html +2553 -611
- package/src/components/header/header.react-snapshot.html +2675 -0
- package/src/components/hero/Hero.tsx +4 -4
- package/src/components/hero/config.json +7 -6
- package/src/components/hero/hero.django-snapshot.html +409 -0
- package/src/components/hero/hero.django.html +5 -5
- package/src/components/hero/hero.html +299 -38
- package/src/components/hero/hero.react-snapshot.html +353 -0
- package/src/components/hint/config.json +4 -0
- package/src/components/hint/hint.django-snapshot.html +7 -0
- package/src/components/hint/hint.html +7 -2
- package/src/components/hint/hint.react-snapshot.html +7 -0
- package/src/components/icon/Icon.tsx +14 -12
- package/src/components/icon/config.json +7 -15
- package/src/components/icon/icon.django-snapshot.html +69 -0
- package/src/components/icon/icon.django.html +4 -10
- package/src/components/icon/icon.html +90 -90
- package/src/components/icon/icon.react-snapshot.html +69 -0
- package/src/components/icon-list/icon-list.django-snapshot.html +244 -0
- package/src/components/icon-list/icon-list.django.html +2 -2
- package/src/components/icon-list/icon-list.react-snapshot.html +215 -0
- package/src/components/identifier/Identifier.tsx +1 -1
- package/src/components/identifier/config.json +1 -1
- package/src/components/identifier/identifier.django-snapshot.html +1129 -0
- package/src/components/identifier/identifier.django.html +3 -3
- package/src/components/identifier/identifier.html +484 -256
- package/src/components/identifier/identifier.react-snapshot.html +959 -0
- package/src/components/image/Image.tsx +2 -2
- package/src/components/image/config.json +4 -0
- package/src/components/image/image.django-snapshot.html +166 -0
- package/src/components/image/image.django.html +5 -11
- package/src/components/image/image.html +144 -29
- package/src/components/image/image.react-snapshot.html +150 -0
- package/src/components/in-page-nav/InPageNav.tsx +4 -3
- package/src/components/in-page-nav/config.json +5 -11
- package/src/components/in-page-nav/in-page-nav.django-snapshot.html +228 -0
- package/src/components/in-page-nav/in-page-nav.django.html +4 -4
- package/src/components/in-page-nav/in-page-nav.react-snapshot.html +228 -0
- package/src/components/indicator/config.json +8 -0
- package/src/components/indicator/indicator.django-snapshot.html +57 -0
- package/src/components/indicator/indicator.html +25 -23
- package/src/components/indicator/indicator.react-snapshot.html +44 -0
- package/src/components/input/config.json +18 -1
- package/src/components/input/input.django-snapshot.html +121 -0
- package/src/components/input/input.django.html +16 -8
- package/src/components/input/input.react-snapshot.html +94 -0
- package/src/components/label/Label.tsx +4 -1
- package/src/components/label/config.json +7 -0
- package/src/components/label/label.django-snapshot.html +22 -0
- package/src/components/label/label.django.html +4 -1
- package/src/components/label/label.html +15 -16
- package/src/components/label/label.react-snapshot.html +22 -0
- package/src/components/language-selector/config.json +9 -13
- package/src/components/language-selector/language-selector.django-snapshot.html +183 -0
- package/src/components/language-selector/language-selector.django.html +3 -3
- package/src/components/language-selector/language-selector.html +74 -25
- package/src/components/language-selector/language-selector.react-snapshot.html +169 -0
- package/src/components/layout/Layout.tsx +12 -1
- package/src/components/layout/config.json +8 -0
- package/src/components/layout/layout.django-snapshot.html +987 -0
- package/src/components/layout/layout.django.html +2 -2
- package/src/components/layout/layout.html +991 -21
- package/src/components/layout/layout.react-snapshot.html +876 -0
- package/src/components/legend/config.json +3 -0
- package/src/components/legend/legend.django-snapshot.html +13 -0
- package/src/components/legend/legend.django.html +1 -1
- package/src/components/legend/legend.html +10 -9
- package/src/components/legend/legend.react-snapshot.html +13 -0
- package/src/components/link/Link.tsx +3 -1
- package/src/components/link/config.json +9 -1
- package/src/components/link/link.django-snapshot.html +45 -0
- package/src/components/link/link.django.html +2 -2
- package/src/components/link/link.react-snapshot.html +45 -0
- package/src/components/list/config.json +7 -0
- package/src/components/list/list.django-snapshot.html +61 -0
- package/src/components/list/list.django.html +1 -1
- package/src/components/list/list.html +45 -25
- package/src/components/list/list.react-snapshot.html +46 -0
- package/src/components/memorable-date/config.json +1 -2
- package/src/components/memorable-date/memorable-date.django-snapshot.html +536 -0
- package/src/components/memorable-date/memorable-date.django.html +3 -1
- package/src/components/memorable-date/memorable-date.react-snapshot.html +437 -0
- package/src/components/misc-banner/MiscBanner.tsx +16 -10
- package/src/components/misc-banner/config.json +22 -4
- package/src/components/misc-banner/misc-banner.django-snapshot.html +370 -0
- package/src/components/misc-banner/misc-banner.django.html +15 -15
- package/src/components/misc-banner/misc-banner.react-snapshot.html +332 -0
- package/src/components/modal/config.json +22 -0
- package/src/components/modal/modal.django-snapshot.html +252 -0
- package/src/components/modal/modal.django.html +5 -9
- package/src/components/modal/modal.react-snapshot.html +229 -0
- package/src/components/page/Page.tsx +17 -5
- package/src/components/page/config.json +23 -2
- package/src/components/page/page.django-snapshot.html +44 -0
- package/src/components/page/page.django.html +5 -3
- package/src/components/page/page.html +29 -8
- package/src/components/page/page.react-snapshot.html +44 -0
- package/src/components/pagination/Pagination.tsx +49 -55
- package/src/components/pagination/config.json +58 -9
- package/src/components/pagination/navigation/PaginationNavigation.tsx +24 -34
- package/src/components/pagination/navigation/pagination-navigation.django.html +16 -23
- package/src/components/pagination/pagination.django-snapshot.html +2078 -0
- package/src/components/pagination/pagination.django.html +14 -4
- package/src/components/pagination/pagination.html +907 -305
- package/src/components/pagination/pagination.react-snapshot.html +1738 -0
- package/src/components/pagination/step-options/PaginationStepOptions.tsx +2 -8
- package/src/components/pagination/step-options/pagination-step-options.django.html +1 -1
- package/src/components/popover/Popover.tsx +114 -0
- package/src/components/popover/PopoverMenu.tsx +80 -0
- package/src/components/popover/config.json +130 -0
- package/src/components/popover/popover-menu.django.html +35 -0
- package/src/components/popover/popover.django-snapshot.html +1201 -0
- package/src/components/popover/popover.django.html +11 -0
- package/src/components/popover/popover.html +1081 -0
- package/src/components/popover/popover.react-snapshot.html +1101 -0
- package/src/components/process-list/ProcessList.tsx +6 -21
- package/src/components/process-list/config.json +18 -2
- package/src/components/process-list/process-list.django-snapshot.html +90 -0
- package/src/components/process-list/process-list.django.html +2 -2
- package/src/components/process-list/process-list.react-snapshot.html +78 -0
- package/src/components/prose/Prose.tsx +3 -3
- package/src/components/prose/config.json +6 -2
- package/src/components/prose/prose.django-snapshot.html +250 -0
- package/src/components/prose/prose.django.html +3 -3
- package/src/components/prose/prose.html +244 -85
- package/src/components/prose/prose.react-snapshot.html +250 -0
- package/src/components/quote/Quote.tsx +2 -2
- package/src/components/quote/config.json +6 -4
- package/src/components/quote/quote.django-snapshot.html +348 -0
- package/src/components/quote/quote.django.html +2 -2
- package/src/components/quote/quote.html +2 -7
- package/src/components/quote/quote.react-snapshot.html +322 -0
- package/src/components/radio-buttons/RadioButtons.tsx +15 -13
- package/src/components/radio-buttons/config.json +23 -0
- package/src/components/radio-buttons/radio-buttons.django-snapshot.html +760 -0
- package/src/components/radio-buttons/radio-buttons.django.html +12 -4
- package/src/components/radio-buttons/radio-buttons.html +623 -127
- package/src/components/radio-buttons/radio-buttons.react-snapshot.html +592 -0
- package/src/components/range-slider/RangeSlider.tsx +1 -1
- package/src/components/range-slider/range-slider.django-snapshot.html +157 -0
- package/src/components/range-slider/range-slider.django.html +1 -1
- package/src/components/range-slider/range-slider.react-snapshot.html +134 -0
- package/src/components/required/config.json +6 -3
- package/src/components/required/required.django-snapshot.html +5 -0
- package/src/components/required/required.html +3 -4
- package/src/components/required/required.react-snapshot.html +5 -0
- package/src/components/search/Search.tsx +6 -9
- package/src/components/search/config.json +5 -3
- package/src/components/search/search.django-snapshot.html +1795 -0
- package/src/components/search/search.django.html +7 -6
- package/src/components/search/search.html +336 -54
- package/src/components/search/search.react-snapshot.html +393 -0
- package/src/components/section/Section.tsx +3 -3
- package/src/components/section/config.json +12 -4
- package/src/components/section/section.django-snapshot.html +87 -0
- package/src/components/section/section.django.html +6 -6
- package/src/components/section/section.html +73 -11
- package/src/components/section/section.react-snapshot.html +78 -0
- package/src/components/select/Select.tsx +1 -0
- package/src/components/select/config.json +18 -0
- package/src/components/select/select.django-snapshot.html +146 -0
- package/src/components/select/select.django.html +1 -1
- package/src/components/select/select.html +112 -58
- package/src/components/select/select.react-snapshot.html +104 -0
- package/src/components/sidenav/config.json +17 -0
- package/src/components/sidenav/sidenav.django-snapshot.html +94 -0
- package/src/components/sidenav/sidenav.django.html +2 -2
- package/src/components/sidenav/sidenav.react-snapshot.html +55 -0
- package/src/components/site-alert/SiteAlert.tsx +10 -38
- package/src/components/site-alert/config.json +10 -3
- package/src/components/site-alert/site-alert.django-snapshot.html +400 -0
- package/src/components/site-alert/site-alert.django.html +1 -1
- package/src/components/site-alert/site-alert.react-snapshot.html +332 -0
- package/src/components/skipnav/config.json +3 -0
- package/src/components/skipnav/skipnav.django-snapshot.html +40 -0
- package/src/components/skipnav/skipnav.django.html +1 -1
- package/src/components/skipnav/skipnav.html +40 -1
- package/src/components/skipnav/skipnav.react-snapshot.html +33 -0
- package/src/components/spinner/Spinner.tsx +1 -0
- package/src/components/spinner/config.json +7 -0
- package/src/components/spinner/spinner.django-snapshot.html +299 -0
- package/src/components/spinner/spinner.django.html +1 -1
- package/src/components/spinner/spinner.html +143 -23
- package/src/components/spinner/spinner.react-snapshot.html +302 -0
- package/src/components/status/config.json +1 -0
- package/src/components/status/status.django-snapshot.html +71 -0
- package/src/components/status/status.react-snapshot.html +71 -0
- package/src/components/step-indicator/StepIndicator.tsx +4 -4
- package/src/components/step-indicator/config.json +22 -2
- package/src/components/step-indicator/step-indicator.django-snapshot.html +224 -0
- package/src/components/step-indicator/step-indicator.django.html +3 -3
- package/src/components/step-indicator/step-indicator.html +26 -68
- package/src/components/step-indicator/step-indicator.react-snapshot.html +204 -0
- package/src/components/summary/Summary.tsx +54 -0
- package/src/components/summary/config.json +56 -0
- package/src/components/summary/summary.django-snapshot.html +36 -0
- package/src/components/summary/summary.django.html +11 -0
- package/src/components/summary/summary.html +17 -0
- package/src/components/summary/summary.react-snapshot.html +36 -0
- package/src/components/summary-box/config.json +5 -0
- package/src/components/summary-box/summary-box.django-snapshot.html +188 -0
- package/src/components/summary-box/summary-box.react-snapshot.html +177 -0
- package/src/components/swap/config.json +3 -3
- package/src/components/swap/swap.django-snapshot.html +110 -0
- package/src/components/swap/swap.html +99 -154
- package/src/components/swap/swap.react-snapshot.html +100 -0
- package/src/components/switch/config.json +3 -0
- package/src/components/switch/switch.django-snapshot.html +73 -0
- package/src/components/switch/switch.django.html +6 -8
- package/src/components/switch/switch.react-snapshot.html +73 -0
- package/src/components/table/Table.tsx +27 -11
- package/src/components/table/TableBody.tsx +12 -9
- package/src/components/table/config.json +46 -1
- package/src/components/table/table-detail-row.django.html +1 -1
- package/src/components/table/table-foot.django.html +1 -1
- package/src/components/table/table-head.django.html +1 -1
- package/src/components/table/table.django-snapshot.html +1970 -0
- package/src/components/table/table.html +2168 -988
- package/src/components/table/table.react-snapshot.html +2166 -0
- package/src/components/tag/config.json +3 -0
- package/src/components/tag/tag.django-snapshot.html +109 -0
- package/src/components/tag/tag.django.html +4 -4
- package/src/components/tag/tag.html +73 -17
- package/src/components/tag/tag.react-snapshot.html +99 -0
- package/src/components/tag-group/config.json +24 -0
- package/src/components/tag-group/tag-group.django-snapshot.html +25 -0
- package/src/components/tag-group/tag-group.django.html +1 -1
- package/src/components/tag-group/tag-group.react-snapshot.html +17 -0
- package/src/components/task-list/config.json +33 -0
- package/src/components/task-list/task-list.django-snapshot.html +273 -0
- package/src/components/task-list/task-list.django.html +1 -1
- package/src/components/task-list/task-list.html +252 -15
- package/src/components/task-list/task-list.react-snapshot.html +252 -0
- package/src/components/text-area/TextArea.tsx +1 -1
- package/src/components/text-area/config.json +5 -0
- package/src/components/text-area/text-area.django-snapshot.html +127 -0
- package/src/components/text-area/text-area.django.html +3 -3
- package/src/components/text-area/text-area.react-snapshot.html +108 -0
- package/src/components/theme-picker/ThemePicker.tsx +45 -60
- package/src/components/theme-picker/config.json +54 -2
- package/src/components/theme-picker/theme-picker.django-snapshot.html +109 -0
- package/src/components/theme-picker/theme-picker.django.html +8 -8
- package/src/components/theme-picker/theme-picker.html +26 -8
- package/src/components/theme-picker/theme-picker.react-snapshot.html +94 -0
- package/src/components/time-picker/TimePicker.tsx +15 -9
- package/src/components/time-picker/config.json +2 -2
- package/src/components/time-picker/time-picker.django-snapshot.html +190 -0
- package/src/components/time-picker/time-picker.django.html +2 -2
- package/src/components/time-picker/time-picker.html +7 -7
- package/src/components/time-picker/time-picker.react-snapshot.html +157 -0
- package/src/components/toggle/_option.django.html +21 -0
- package/src/components/toggle/config.json +23 -2
- package/src/components/toggle/toggle.django-snapshot.html +419 -0
- package/src/components/toggle/toggle.django.html +10 -21
- package/src/components/toggle/toggle.html +365 -311
- package/src/components/toggle/toggle.react-snapshot.html +419 -0
- package/src/components/tooltip/Tooltip.tsx +2 -2
- package/src/components/tooltip/config.json +6 -1
- package/src/components/tooltip/tooltip.django-snapshot.html +57 -0
- package/src/components/tooltip/tooltip.django.html +1 -1
- package/src/components/tooltip/tooltip.react-snapshot.html +62 -0
- package/src/components/tree/Tree.tsx +91 -0
- package/src/components/tree/_tree-items.django.html +15 -0
- package/src/components/tree/config.json +105 -0
- package/src/components/tree/tree.django-snapshot.html +525 -0
- package/src/components/tree/tree.django.html +5 -0
- package/src/components/tree/tree.html +432 -0
- package/src/components/tree/tree.react-snapshot.html +432 -0
- package/src/components/villain/config.json +9 -0
- package/src/components/villain/villain.django-snapshot.html +44 -0
- package/src/components/villain/villain.react-snapshot.html +35 -0
- package/src/index.js +6 -0
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
<a
|
|
4
4
|
class="usx-link usx-no-visited flex-align-center{% if className %} {{ className }}{% endif %}"
|
|
5
5
|
href="{{ href }}"
|
|
6
|
+
{% if not label %}aria-label="{{ ariaLabel|default:'Back to top' }}"{% endif %}
|
|
6
7
|
{% if tabindex %}tabindex="{{ tabindex }}"{% endif %}
|
|
7
8
|
>
|
|
8
9
|
{% if iconPosition == 'left' or not iconPosition %}
|
|
9
|
-
<svg class="margin-right-
|
|
10
|
+
<svg class="margin-right-05 usa-icon usx-icon usa-icon--size-{{ iconSize|default:'2' }}" aria-hidden="true" focusable="false" role="img">
|
|
10
11
|
<use href="./img/sprite.svg#arrow_upward"></use>
|
|
11
12
|
</svg>
|
|
12
13
|
{% endif %}
|
|
13
14
|
{% if label %}{{ label }}{% endif %}
|
|
14
15
|
{% if iconPosition == 'right' %}
|
|
15
|
-
<svg class="margin-left-05 usa-icon usa-icon--size-{{ iconSize|default:'2' }}" aria-hidden="true" focusable="false" role="img">
|
|
16
|
+
<svg class="margin-left-05 usa-icon usx-icon usa-icon--size-{{ iconSize|default:'2' }}" aria-hidden="true" focusable="false" role="img">
|
|
16
17
|
<use href="./img/sprite.svg#arrow_upward"></use>
|
|
17
18
|
</svg>
|
|
18
19
|
{% endif %}
|
|
@@ -20,17 +21,18 @@
|
|
|
20
21
|
{% else %}
|
|
21
22
|
<button
|
|
22
23
|
type="button"
|
|
24
|
+
{% if not label %}aria-label="{{ ariaLabel|default:'Back to top' }}"{% endif %}
|
|
23
25
|
class="usa-button usx-button{% if variant == 'primary' %} usa-button--primary{% endif %} usx-button--ghost{% if className %} {{ className }}{% endif %}"
|
|
24
26
|
onclick="{{ onClick|default:'window.scrollTo({ top: 0, behavior: \'smooth\' });' }}"
|
|
25
27
|
>
|
|
26
28
|
{% if iconPosition == 'left' %}
|
|
27
|
-
<svg class="usa-icon usa-icon--size-{{ iconSize|default:'2' }}" aria-hidden="true" focusable="false" role="img">
|
|
29
|
+
<svg class="margin-right-05 usa-icon usx-icon usa-icon--size-{{ iconSize|default:'2' }}" aria-hidden="true" focusable="false" role="img">
|
|
28
30
|
<use href="./img/sprite.svg#arrow_upward"></use>
|
|
29
31
|
</svg>
|
|
30
32
|
{% endif %}
|
|
31
33
|
{% if label %}{{ label }}{% endif %}
|
|
32
34
|
{% if iconPosition != 'left' %}
|
|
33
|
-
<svg class="usa-icon usa-icon--size-{{ iconSize|default:'2' }}" aria-hidden="true" focusable="false" role="img">
|
|
35
|
+
<svg class="margin-left-05 usa-icon usx-icon usa-icon--size-{{ iconSize|default:'2' }}" aria-hidden="true" focusable="false" role="img">
|
|
34
36
|
<use href="./img/sprite.svg#arrow_upward"></use>
|
|
35
37
|
</svg>
|
|
36
38
|
{% endif %}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<button type="button" class="usa-button usx-button usx-button--ghost">
|
|
3
|
+
Back to top<svg
|
|
4
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-left-05"
|
|
5
|
+
aria-hidden="true"
|
|
6
|
+
focusable="false"
|
|
7
|
+
role="img"
|
|
8
|
+
>
|
|
9
|
+
<use href="/img/sprite.svg#arrow_upward"></use>
|
|
10
|
+
</svg>
|
|
11
|
+
</button>
|
|
12
|
+
|
|
13
|
+
<h3 class="site-preview-heading">Primary</h3>
|
|
14
|
+
<button type="button" class="usa-button usx-button usa-button--primary usx-button--ghost">
|
|
15
|
+
Back to top<svg
|
|
16
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-left-05"
|
|
17
|
+
aria-hidden="true"
|
|
18
|
+
focusable="false"
|
|
19
|
+
role="img"
|
|
20
|
+
>
|
|
21
|
+
<use href="/img/sprite.svg#arrow_upward"></use>
|
|
22
|
+
</svg>
|
|
23
|
+
</button>
|
|
24
|
+
|
|
25
|
+
<h3 class="site-preview-heading">Icon Only Small</h3>
|
|
26
|
+
<button
|
|
27
|
+
type="button"
|
|
28
|
+
class="usa-button usx-button usa-button--primary usx-button--ghost width-6"
|
|
29
|
+
aria-label="Back to top"
|
|
30
|
+
>
|
|
31
|
+
<svg
|
|
32
|
+
class="usa-icon usx-icon usa-icon--size-3 margin-left-05"
|
|
33
|
+
aria-hidden="true"
|
|
34
|
+
focusable="false"
|
|
35
|
+
role="img"
|
|
36
|
+
>
|
|
37
|
+
<use href="/img/sprite.svg#arrow_upward"></use>
|
|
38
|
+
</svg>
|
|
39
|
+
</button>
|
|
40
|
+
|
|
41
|
+
<h3 class="site-preview-heading">Icon Only Large</h3>
|
|
42
|
+
<button
|
|
43
|
+
type="button"
|
|
44
|
+
class="usa-button usx-button usa-button--primary usx-button--ghost width-7"
|
|
45
|
+
aria-label="Back to top"
|
|
46
|
+
>
|
|
47
|
+
<svg
|
|
48
|
+
class="usa-icon usx-icon usa-icon--size-4 margin-left-05"
|
|
49
|
+
aria-hidden="true"
|
|
50
|
+
focusable="false"
|
|
51
|
+
role="img"
|
|
52
|
+
>
|
|
53
|
+
<use href="/img/sprite.svg#arrow_upward"></use>
|
|
54
|
+
</svg>
|
|
55
|
+
</button>
|
|
56
|
+
|
|
57
|
+
<h3 class="site-preview-heading">Link Default</h3>
|
|
58
|
+
<a class="usx-link usx-no-visited flex-align-center" href="#back-to-top"
|
|
59
|
+
>Back to top<svg
|
|
60
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-left-05"
|
|
61
|
+
aria-hidden="true"
|
|
62
|
+
focusable="false"
|
|
63
|
+
role="img"
|
|
64
|
+
>
|
|
65
|
+
<use href="/img/sprite.svg#arrow_upward"></use></svg
|
|
66
|
+
></a>
|
|
67
|
+
|
|
68
|
+
<h3 class="site-preview-heading">Default Icon Left</h3>
|
|
69
|
+
<button type="button" class="usa-button usx-button usx-button--ghost">
|
|
70
|
+
<svg
|
|
71
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-right-05"
|
|
72
|
+
aria-hidden="true"
|
|
73
|
+
focusable="false"
|
|
74
|
+
role="img"
|
|
75
|
+
>
|
|
76
|
+
<use href="/img/sprite.svg#arrow_upward"></use></svg
|
|
77
|
+
>Back to top
|
|
78
|
+
</button>
|
|
79
|
+
|
|
80
|
+
<h3 class="site-preview-heading">Primary Icon Left</h3>
|
|
81
|
+
<button type="button" class="usa-button usx-button usa-button--primary usx-button--ghost">
|
|
82
|
+
<svg
|
|
83
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-right-05"
|
|
84
|
+
aria-hidden="true"
|
|
85
|
+
focusable="false"
|
|
86
|
+
role="img"
|
|
87
|
+
>
|
|
88
|
+
<use href="/img/sprite.svg#arrow_upward"></use></svg
|
|
89
|
+
>Back to top
|
|
90
|
+
</button>
|
|
91
|
+
|
|
92
|
+
<h3 class="site-preview-heading">Link Icon Left</h3>
|
|
93
|
+
<a class="usx-link usx-no-visited flex-align-center" href="#back-to-top"
|
|
94
|
+
><svg
|
|
95
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-right-05"
|
|
96
|
+
aria-hidden="true"
|
|
97
|
+
focusable="false"
|
|
98
|
+
role="img"
|
|
99
|
+
>
|
|
100
|
+
<use href="/img/sprite.svg#arrow_upward"></use></svg
|
|
101
|
+
>Back to top</a
|
|
102
|
+
>
|
|
103
|
+
|
|
104
|
+
<h3 class="site-preview-heading">Link On Dark</h3>
|
|
105
|
+
<div class="bg-primary-darkest padding-1">
|
|
106
|
+
<a
|
|
107
|
+
class="usx-link usx-no-visited flex-align-center text-white hover:text-accent-cool"
|
|
108
|
+
href="#back-to-top"
|
|
109
|
+
>Back to top<svg
|
|
110
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-left-05"
|
|
111
|
+
aria-hidden="true"
|
|
112
|
+
focusable="false"
|
|
113
|
+
role="img"
|
|
114
|
+
>
|
|
115
|
+
<use href="/img/sprite.svg#arrow_upward"></use></svg
|
|
116
|
+
></a>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<h3 class="site-preview-heading">All Variants</h3>
|
|
120
|
+
<div class="display-flex flex-wrap" style="gap: 2rem">
|
|
121
|
+
<div
|
|
122
|
+
class="display-flex flex-column flex-justify-start flex-align-self-start"
|
|
123
|
+
style="gap: 0.5rem"
|
|
124
|
+
>
|
|
125
|
+
<h4>Button (icon right)</h4>
|
|
126
|
+
<button type="button" class="usa-button usx-button usx-button--ghost">
|
|
127
|
+
Back to top<svg
|
|
128
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-left-05"
|
|
129
|
+
aria-hidden="true"
|
|
130
|
+
focusable="false"
|
|
131
|
+
role="img"
|
|
132
|
+
>
|
|
133
|
+
<use href="/img/sprite.svg#arrow_upward"></use>
|
|
134
|
+
</svg></button
|
|
135
|
+
><button type="button" class="usa-button usx-button usa-button--primary usx-button--ghost">
|
|
136
|
+
Back to top<svg
|
|
137
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-left-05"
|
|
138
|
+
aria-hidden="true"
|
|
139
|
+
focusable="false"
|
|
140
|
+
role="img"
|
|
141
|
+
>
|
|
142
|
+
<use href="/img/sprite.svg#arrow_upward"></use>
|
|
143
|
+
</svg></button
|
|
144
|
+
><button
|
|
145
|
+
type="button"
|
|
146
|
+
class="usa-button usx-button usa-button--primary usx-button--ghost width-6"
|
|
147
|
+
aria-label="Back to top"
|
|
148
|
+
>
|
|
149
|
+
<svg
|
|
150
|
+
class="usa-icon usx-icon usa-icon--size-3 margin-left-05"
|
|
151
|
+
aria-hidden="true"
|
|
152
|
+
focusable="false"
|
|
153
|
+
role="img"
|
|
154
|
+
>
|
|
155
|
+
<use href="/img/sprite.svg#arrow_upward"></use>
|
|
156
|
+
</svg></button
|
|
157
|
+
><button
|
|
158
|
+
type="button"
|
|
159
|
+
class="usa-button usx-button usa-button--primary usx-button--ghost width-7"
|
|
160
|
+
aria-label="Back to top"
|
|
161
|
+
>
|
|
162
|
+
<svg
|
|
163
|
+
class="usa-icon usx-icon usa-icon--size-4 margin-left-05"
|
|
164
|
+
aria-hidden="true"
|
|
165
|
+
focusable="false"
|
|
166
|
+
role="img"
|
|
167
|
+
>
|
|
168
|
+
<use href="/img/sprite.svg#arrow_upward"></use>
|
|
169
|
+
</svg></button
|
|
170
|
+
><a class="usx-link usx-no-visited flex-align-center" href="#back-to-top"
|
|
171
|
+
>Back to top<svg
|
|
172
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-left-05"
|
|
173
|
+
aria-hidden="true"
|
|
174
|
+
focusable="false"
|
|
175
|
+
role="img"
|
|
176
|
+
>
|
|
177
|
+
<use href="/img/sprite.svg#arrow_upward"></use></svg
|
|
178
|
+
></a>
|
|
179
|
+
<div class="bg-primary-darkest padding-1">
|
|
180
|
+
<a
|
|
181
|
+
class="usx-link usx-no-visited flex-align-center text-white hover:text-accent-cool"
|
|
182
|
+
href="#back-to-top"
|
|
183
|
+
>Back to top<svg
|
|
184
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-left-05"
|
|
185
|
+
aria-hidden="true"
|
|
186
|
+
focusable="false"
|
|
187
|
+
role="img"
|
|
188
|
+
>
|
|
189
|
+
<use href="/img/sprite.svg#arrow_upward"></use></svg
|
|
190
|
+
></a>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
<div class="display-flex flex-column flex-align-end margin-left-auto" style="gap: 0.5rem">
|
|
194
|
+
<h4>Button (icon left)</h4>
|
|
195
|
+
<button type="button" class="usa-button usx-button usx-button--ghost">
|
|
196
|
+
<svg
|
|
197
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-right-05"
|
|
198
|
+
aria-hidden="true"
|
|
199
|
+
focusable="false"
|
|
200
|
+
role="img"
|
|
201
|
+
>
|
|
202
|
+
<use href="/img/sprite.svg#arrow_upward"></use></svg
|
|
203
|
+
>Back to top</button
|
|
204
|
+
><button type="button" class="usa-button usx-button usa-button--primary usx-button--ghost">
|
|
205
|
+
<svg
|
|
206
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-right-05"
|
|
207
|
+
aria-hidden="true"
|
|
208
|
+
focusable="false"
|
|
209
|
+
role="img"
|
|
210
|
+
>
|
|
211
|
+
<use href="/img/sprite.svg#arrow_upward"></use></svg
|
|
212
|
+
>Back to top</button
|
|
213
|
+
><button
|
|
214
|
+
type="button"
|
|
215
|
+
class="usa-button usx-button usa-button--primary usx-button--ghost width-6"
|
|
216
|
+
aria-label="Back to top"
|
|
217
|
+
>
|
|
218
|
+
<svg
|
|
219
|
+
class="usa-icon usx-icon usa-icon--size-3 margin-left-05"
|
|
220
|
+
aria-hidden="true"
|
|
221
|
+
focusable="false"
|
|
222
|
+
role="img"
|
|
223
|
+
>
|
|
224
|
+
<use href="/img/sprite.svg#arrow_upward"></use>
|
|
225
|
+
</svg></button
|
|
226
|
+
><button
|
|
227
|
+
type="button"
|
|
228
|
+
class="usa-button usx-button usa-button--primary usx-button--ghost width-7"
|
|
229
|
+
aria-label="Back to top"
|
|
230
|
+
>
|
|
231
|
+
<svg
|
|
232
|
+
class="usa-icon usx-icon usa-icon--size-4 margin-left-05"
|
|
233
|
+
aria-hidden="true"
|
|
234
|
+
focusable="false"
|
|
235
|
+
role="img"
|
|
236
|
+
>
|
|
237
|
+
<use href="/img/sprite.svg#arrow_upward"></use>
|
|
238
|
+
</svg></button
|
|
239
|
+
><a class="usx-link usx-no-visited flex-align-center" href="#back-to-top"
|
|
240
|
+
><svg
|
|
241
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-right-05"
|
|
242
|
+
aria-hidden="true"
|
|
243
|
+
focusable="false"
|
|
244
|
+
role="img"
|
|
245
|
+
>
|
|
246
|
+
<use href="/img/sprite.svg#arrow_upward"></use></svg
|
|
247
|
+
>Back to top</a
|
|
248
|
+
>
|
|
249
|
+
<div class="bg-primary-darkest padding-1">
|
|
250
|
+
<a
|
|
251
|
+
class="usx-link usx-no-visited flex-align-center text-white hover:text-accent-cool"
|
|
252
|
+
href="#back-to-top"
|
|
253
|
+
><svg
|
|
254
|
+
class="usa-icon usx-icon usa-icon--size-2 margin-right-05"
|
|
255
|
+
aria-hidden="true"
|
|
256
|
+
focusable="false"
|
|
257
|
+
role="img"
|
|
258
|
+
>
|
|
259
|
+
<use href="/img/sprite.svg#arrow_upward"></use></svg
|
|
260
|
+
>Back to top</a
|
|
261
|
+
>
|
|
262
|
+
</div>
|
|
263
|
+
</div>
|
|
264
|
+
</div>
|
|
@@ -2,11 +2,20 @@
|
|
|
2
2
|
"name": "back-to-top",
|
|
3
3
|
"template": "back-to-top/back-to-top.django.html",
|
|
4
4
|
"version": 1,
|
|
5
|
+
"default": {
|
|
6
|
+
"label": "Back to top",
|
|
7
|
+
"iconPosition": "right",
|
|
8
|
+
"iconSize": 2
|
|
9
|
+
},
|
|
5
10
|
"props": {
|
|
6
11
|
"label": {
|
|
7
12
|
"type": "string",
|
|
8
13
|
"description": "The visible text label. Defaults to 'Back to top'. Omit or pass null for icon-only display."
|
|
9
14
|
},
|
|
15
|
+
"ariaLabel": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Accessible name used when there is no visible label (icon-only display). Defaults to 'Back to top'."
|
|
18
|
+
},
|
|
10
19
|
"href": {
|
|
11
20
|
"type": "string",
|
|
12
21
|
"description": "If provided, renders as an anchor link (<a>) targeting the given href. Otherwise renders as a <button>."
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<section
|
|
3
|
+
id="django-gov-banner-default"
|
|
4
|
+
class="usa-banner usx-banner"
|
|
5
|
+
aria-label="Official government website"
|
|
6
|
+
>
|
|
7
|
+
<div id="django-gov-banner-default-accordion" class="usa-accordion">
|
|
8
|
+
<header class="usa-banner__header">
|
|
9
|
+
<div class="usa-banner__inner">
|
|
10
|
+
<div class="grid-col-auto">
|
|
11
|
+
<img
|
|
12
|
+
aria-hidden="true"
|
|
13
|
+
class="usa-banner__header-flag"
|
|
14
|
+
src="img/us_flag_small.png"
|
|
15
|
+
alt=""
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="grid-col-fill tablet:grid-col-auto" aria-hidden="true">
|
|
19
|
+
<p class="usa-banner__header-text">An official website of the United States government</p>
|
|
20
|
+
<p class="usa-banner__header-action">Here's how you know</p>
|
|
21
|
+
</div>
|
|
22
|
+
<button
|
|
23
|
+
type="button"
|
|
24
|
+
class="usa-accordion__button usa-banner__button"
|
|
25
|
+
aria-expanded="false"
|
|
26
|
+
aria-controls="django-gov-banner-default-content"
|
|
27
|
+
>
|
|
28
|
+
<span class="usa-banner__button-text">Here's how you know</span>
|
|
29
|
+
</button>
|
|
30
|
+
</div>
|
|
31
|
+
</header>
|
|
32
|
+
<div
|
|
33
|
+
class="usa-banner__content usa-accordion__content"
|
|
34
|
+
id="django-gov-banner-default-content"
|
|
35
|
+
hidden
|
|
36
|
+
>
|
|
37
|
+
<div class="grid-row grid-gap-lg">
|
|
38
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
39
|
+
<img
|
|
40
|
+
class="usa-banner__icon usa-media-block__img"
|
|
41
|
+
src="img/icon-dot-gov.svg"
|
|
42
|
+
role="img"
|
|
43
|
+
alt=""
|
|
44
|
+
aria-hidden="true"
|
|
45
|
+
/>
|
|
46
|
+
<div class="usa-media-block__body">
|
|
47
|
+
<p>
|
|
48
|
+
<strong>Official websites use .gov</strong><br />
|
|
49
|
+
A .gov website belongs to an official government organization in the United States.
|
|
50
|
+
</p>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
54
|
+
<img
|
|
55
|
+
class="usa-banner__icon usa-media-block__img"
|
|
56
|
+
src="img/icon-https.svg"
|
|
57
|
+
role="img"
|
|
58
|
+
alt=""
|
|
59
|
+
aria-hidden="true"
|
|
60
|
+
/>
|
|
61
|
+
<div class="usa-media-block__body">
|
|
62
|
+
<p>
|
|
63
|
+
<strong>Secure .gov websites use HTTPS</strong><br />
|
|
64
|
+
A <strong>lock</strong> (
|
|
65
|
+
|
|
66
|
+
<svg
|
|
67
|
+
class="usa-icon usx-icon usx-icon--size-1"
|
|
68
|
+
aria-hidden="true"
|
|
69
|
+
focusable="false"
|
|
70
|
+
role="img"
|
|
71
|
+
>
|
|
72
|
+
<use href="img/sprite.svg#lock"></use></svg
|
|
73
|
+
>) or <strong>https://</strong> means you’ve safely connected to the .gov website.
|
|
74
|
+
Share sensitive information only on official, secure websites.
|
|
75
|
+
</p>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</section>
|
|
82
|
+
|
|
83
|
+
<h3 class="site-preview-heading">.mil TLD</h3>
|
|
84
|
+
<section
|
|
85
|
+
id="django-gov-banner-mil"
|
|
86
|
+
class="usa-banner usx-banner"
|
|
87
|
+
aria-label="Official government website"
|
|
88
|
+
>
|
|
89
|
+
<div id="django-gov-banner-mil-accordion" class="usa-accordion">
|
|
90
|
+
<header class="usa-banner__header">
|
|
91
|
+
<div class="usa-banner__inner">
|
|
92
|
+
<div class="grid-col-auto">
|
|
93
|
+
<img
|
|
94
|
+
aria-hidden="true"
|
|
95
|
+
class="usa-banner__header-flag"
|
|
96
|
+
src="img/us_flag_small.png"
|
|
97
|
+
alt=""
|
|
98
|
+
/>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="grid-col-fill tablet:grid-col-auto" aria-hidden="true">
|
|
101
|
+
<p class="usa-banner__header-text">An official website of the United States government</p>
|
|
102
|
+
<p class="usa-banner__header-action">Here's how you know</p>
|
|
103
|
+
</div>
|
|
104
|
+
<button
|
|
105
|
+
type="button"
|
|
106
|
+
class="usa-accordion__button usa-banner__button"
|
|
107
|
+
aria-expanded="false"
|
|
108
|
+
aria-controls="django-gov-banner-mil-content"
|
|
109
|
+
>
|
|
110
|
+
<span class="usa-banner__button-text">Here's how you know</span>
|
|
111
|
+
</button>
|
|
112
|
+
</div>
|
|
113
|
+
</header>
|
|
114
|
+
<div
|
|
115
|
+
class="usa-banner__content usa-accordion__content"
|
|
116
|
+
id="django-gov-banner-mil-content"
|
|
117
|
+
hidden
|
|
118
|
+
>
|
|
119
|
+
<div class="grid-row grid-gap-lg">
|
|
120
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
121
|
+
<img
|
|
122
|
+
class="usa-banner__icon usa-media-block__img"
|
|
123
|
+
src="img/icon-dot-gov.svg"
|
|
124
|
+
role="img"
|
|
125
|
+
alt=""
|
|
126
|
+
aria-hidden="true"
|
|
127
|
+
/>
|
|
128
|
+
<div class="usa-media-block__body">
|
|
129
|
+
<p>
|
|
130
|
+
<strong>Official websites use .mil</strong><br />
|
|
131
|
+
A .mil website belongs to an official government organization in the United States.
|
|
132
|
+
</p>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
136
|
+
<img
|
|
137
|
+
class="usa-banner__icon usa-media-block__img"
|
|
138
|
+
src="img/icon-https.svg"
|
|
139
|
+
role="img"
|
|
140
|
+
alt=""
|
|
141
|
+
aria-hidden="true"
|
|
142
|
+
/>
|
|
143
|
+
<div class="usa-media-block__body">
|
|
144
|
+
<p>
|
|
145
|
+
<strong>Secure .mil websites use HTTPS</strong><br />
|
|
146
|
+
A <strong>lock</strong> (
|
|
147
|
+
|
|
148
|
+
<svg
|
|
149
|
+
class="usa-icon usx-icon usx-icon--size-1"
|
|
150
|
+
aria-hidden="true"
|
|
151
|
+
focusable="false"
|
|
152
|
+
role="img"
|
|
153
|
+
>
|
|
154
|
+
<use href="img/sprite.svg#lock"></use></svg
|
|
155
|
+
>) or <strong>https://</strong> means you’ve safely connected to the .mil website.
|
|
156
|
+
Share sensitive information only on official, secure websites.
|
|
157
|
+
</p>
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
</section>
|
|
164
|
+
|
|
165
|
+
<h3 class="site-preview-heading">Custom text and TLD</h3>
|
|
166
|
+
<section
|
|
167
|
+
id="django-gov-banner-custom"
|
|
168
|
+
class="usa-banner usx-banner"
|
|
169
|
+
aria-label="Official government website"
|
|
170
|
+
>
|
|
171
|
+
<div id="django-gov-banner-custom-accordion" class="usa-accordion">
|
|
172
|
+
<header class="usa-banner__header">
|
|
173
|
+
<div class="usa-banner__inner">
|
|
174
|
+
<div class="grid-col-auto">
|
|
175
|
+
<img
|
|
176
|
+
aria-hidden="true"
|
|
177
|
+
class="usa-banner__header-flag"
|
|
178
|
+
src="img/us_flag_small.png"
|
|
179
|
+
alt=""
|
|
180
|
+
/>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="grid-col-fill tablet:grid-col-auto" aria-hidden="true">
|
|
183
|
+
<p class="usa-banner__header-text">
|
|
184
|
+
An unofficial website of the Not A Number organization
|
|
185
|
+
</p>
|
|
186
|
+
<p class="usa-banner__header-action">Here's how you don't know</p>
|
|
187
|
+
</div>
|
|
188
|
+
<button
|
|
189
|
+
type="button"
|
|
190
|
+
class="usa-accordion__button usa-banner__button"
|
|
191
|
+
aria-expanded="false"
|
|
192
|
+
aria-controls="django-gov-banner-custom-content"
|
|
193
|
+
>
|
|
194
|
+
<span class="usa-banner__button-text">Here's how you don't know</span>
|
|
195
|
+
</button>
|
|
196
|
+
</div>
|
|
197
|
+
</header>
|
|
198
|
+
<div
|
|
199
|
+
class="usa-banner__content usa-accordion__content"
|
|
200
|
+
id="django-gov-banner-custom-content"
|
|
201
|
+
hidden
|
|
202
|
+
>
|
|
203
|
+
<div class="grid-row grid-gap-lg">
|
|
204
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
205
|
+
<img
|
|
206
|
+
class="usa-banner__icon usa-media-block__img"
|
|
207
|
+
src="img/icon-dot-gov.svg"
|
|
208
|
+
role="img"
|
|
209
|
+
alt=""
|
|
210
|
+
aria-hidden="true"
|
|
211
|
+
/>
|
|
212
|
+
<div class="usa-media-block__body">
|
|
213
|
+
<p>
|
|
214
|
+
<strong>Official websites use .NaN</strong><br />
|
|
215
|
+
A .NaN website belongs to an official government organization in the United States.
|
|
216
|
+
</p>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
220
|
+
<img
|
|
221
|
+
class="usa-banner__icon usa-media-block__img"
|
|
222
|
+
src="img/icon-https.svg"
|
|
223
|
+
role="img"
|
|
224
|
+
alt=""
|
|
225
|
+
aria-hidden="true"
|
|
226
|
+
/>
|
|
227
|
+
<div class="usa-media-block__body">
|
|
228
|
+
<p>
|
|
229
|
+
<strong>Secure .NaN websites use HTTPS</strong><br />
|
|
230
|
+
A <strong>lock</strong> (
|
|
231
|
+
|
|
232
|
+
<svg
|
|
233
|
+
class="usa-icon usx-icon usx-icon--size-1"
|
|
234
|
+
aria-hidden="true"
|
|
235
|
+
focusable="false"
|
|
236
|
+
role="img"
|
|
237
|
+
>
|
|
238
|
+
<use href="img/sprite.svg#lock"></use></svg
|
|
239
|
+
>) or <strong>https://</strong> means you’ve safely connected to the .NaN website.
|
|
240
|
+
Share sensitive information only on official, secure websites.
|
|
241
|
+
</p>
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
244
|
+
</div>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
</section>
|
|
248
|
+
|
|
249
|
+
<h3 class="site-preview-heading">Custom Flag</h3>
|
|
250
|
+
<section
|
|
251
|
+
id="django-gov-banner-custom-flag"
|
|
252
|
+
class="usa-banner usx-banner"
|
|
253
|
+
aria-label="Official government website"
|
|
254
|
+
>
|
|
255
|
+
<div id="django-gov-banner-custom-flag-accordion" class="usa-accordion">
|
|
256
|
+
<header class="usa-banner__header">
|
|
257
|
+
<div class="usa-banner__inner">
|
|
258
|
+
<div class="grid-col-auto">
|
|
259
|
+
<img
|
|
260
|
+
aria-hidden="true"
|
|
261
|
+
class="usa-banner__header-flag"
|
|
262
|
+
src="white_symbol-only.png"
|
|
263
|
+
alt=""
|
|
264
|
+
/>
|
|
265
|
+
</div>
|
|
266
|
+
<div class="grid-col-fill tablet:grid-col-auto" aria-hidden="true">
|
|
267
|
+
<p class="usa-banner__header-text">An official website of SOLEX Consulting</p>
|
|
268
|
+
<p class="usa-banner__header-action">Just so you know...</p>
|
|
269
|
+
</div>
|
|
270
|
+
<button
|
|
271
|
+
type="button"
|
|
272
|
+
class="usa-accordion__button usa-banner__button"
|
|
273
|
+
aria-expanded="false"
|
|
274
|
+
aria-controls="django-gov-banner-custom-flag-content"
|
|
275
|
+
>
|
|
276
|
+
<span class="usa-banner__button-text">Just so you know...</span>
|
|
277
|
+
</button>
|
|
278
|
+
</div>
|
|
279
|
+
</header>
|
|
280
|
+
<div
|
|
281
|
+
class="usa-banner__content usa-accordion__content"
|
|
282
|
+
id="django-gov-banner-custom-flag-content"
|
|
283
|
+
hidden
|
|
284
|
+
>
|
|
285
|
+
<div class="grid-row grid-gap-lg">
|
|
286
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
287
|
+
<img
|
|
288
|
+
class="usa-banner__icon usa-media-block__img"
|
|
289
|
+
src="img/icon-dot-gov.svg"
|
|
290
|
+
role="img"
|
|
291
|
+
alt=""
|
|
292
|
+
aria-hidden="true"
|
|
293
|
+
/>
|
|
294
|
+
<div class="usa-media-block__body">
|
|
295
|
+
<p>
|
|
296
|
+
<strong>This is not a .gov website</strong><br />
|
|
297
|
+
This website does not belong to a United States government organization.
|
|
298
|
+
</p>
|
|
299
|
+
</div>
|
|
300
|
+
</div>
|
|
301
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
302
|
+
<img
|
|
303
|
+
class="usa-banner__icon usa-media-block__img"
|
|
304
|
+
src="img/icon-https.svg"
|
|
305
|
+
role="img"
|
|
306
|
+
alt=""
|
|
307
|
+
aria-hidden="true"
|
|
308
|
+
/>
|
|
309
|
+
<div class="usa-media-block__body">
|
|
310
|
+
<p>
|
|
311
|
+
<strong>Secure .studio websites use HTTPS</strong><br />
|
|
312
|
+
A <strong>lock</strong> (
|
|
313
|
+
|
|
314
|
+
<svg
|
|
315
|
+
class="usa-icon usx-icon usx-icon--size-1"
|
|
316
|
+
aria-hidden="true"
|
|
317
|
+
focusable="false"
|
|
318
|
+
role="img"
|
|
319
|
+
>
|
|
320
|
+
<use href="img/sprite.svg#lock"></use></svg
|
|
321
|
+
>) or <strong>https://</strong> means you’ve safely connected to the .studio website.
|
|
322
|
+
Share sensitive information only on official, secure websites.
|
|
323
|
+
</p>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
</div>
|
|
327
|
+
</div>
|
|
328
|
+
</div>
|
|
329
|
+
</section>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% load
|
|
1
|
+
{% load usx_components %}
|
|
2
2
|
{# Django template for Banner #}
|
|
3
3
|
{% with effective_tld=tld|default:'.gov' %}
|
|
4
4
|
<section
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
<div class="usa-media-block__body">
|
|
69
69
|
<p>
|
|
70
70
|
<strong>{% if httpsHeading %}{{ httpsHeading }}{% else %}Secure {{ effective_tld }} websites use HTTPS{% endif %}</strong><br/>
|
|
71
|
-
{% if httpsText %}{{ httpsText|safe }}{% else %}A <strong>lock</strong> ({% icon name="lock" size=1 staticBaseUrl=staticBaseUrl ariaHidden=True focusable=False %}{% endicon %}) or <strong>https://</strong> means you
|
|
71
|
+
{% if httpsText %}{{ httpsText|safe }}{% else %}A <strong>lock</strong> ({% icon name="lock" size=1 staticBaseUrl=staticBaseUrl ariaHidden=True focusable=False %}{% endicon %}) or <strong>https://</strong> means you’ve safely connected to the {{ effective_tld }} website. Share sensitive information only on official, secure websites.{% endif %}
|
|
72
72
|
</p>
|
|
73
73
|
</div>
|
|
74
74
|
</div>
|