@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
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<div class="usa-form-group usx-form-group">
|
|
3
|
+
<fieldset class="usa-fieldset usx-fieldset">
|
|
4
|
+
<legend class="usa-legend usx-legend">Date of Birth</legend>
|
|
5
|
+
<span class="usa-hint usx-hint" id="react-memorable-date-hint" aria-hidden="true"
|
|
6
|
+
>Select a month. Enter 1 or 2 digits for the day and 4 digits for the year.</span
|
|
7
|
+
>
|
|
8
|
+
<div class="usa-memorable-date usx-memorable-date">
|
|
9
|
+
<div class="usa-form-group usx-form-group usa-form-group--month usa-form-group--select">
|
|
10
|
+
<label class="usa-label usx-label" for="react-memorable-date-month">Month</label
|
|
11
|
+
><select
|
|
12
|
+
id="react-memorable-date-month"
|
|
13
|
+
name="memorable-date-month"
|
|
14
|
+
class="usa-select usx-select"
|
|
15
|
+
aria-describedby="react-memorable-date-month-hint"
|
|
16
|
+
>
|
|
17
|
+
<option value="">- Select -</option>
|
|
18
|
+
<option value="1">January</option>
|
|
19
|
+
<option value="2">February</option>
|
|
20
|
+
<option value="3">March</option>
|
|
21
|
+
<option value="4">April</option>
|
|
22
|
+
<option value="5">May</option>
|
|
23
|
+
<option value="6">June</option>
|
|
24
|
+
<option value="7">July</option>
|
|
25
|
+
<option value="8">August</option>
|
|
26
|
+
<option value="9">September</option>
|
|
27
|
+
<option value="10">October</option>
|
|
28
|
+
<option value="11">November</option>
|
|
29
|
+
<option value="12">December</option></select
|
|
30
|
+
><span class="usa-hint usa-sr-only" id="react-memorable-date-month-hint"
|
|
31
|
+
>Select a month from the dropdown.</span
|
|
32
|
+
>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="usa-form-group usx-form-group usa-form-group--day">
|
|
35
|
+
<label class="usa-label usx-label" for="react-memorable-date-day">Day</label
|
|
36
|
+
><input
|
|
37
|
+
id="react-memorable-date-day"
|
|
38
|
+
class="usa-input usx-input"
|
|
39
|
+
placeholder=""
|
|
40
|
+
aria-describedby="react-memorable-date-day-hint"
|
|
41
|
+
name="memorable-date-day"
|
|
42
|
+
maxlength="2"
|
|
43
|
+
pattern="[0-9]*"
|
|
44
|
+
inputmode="numeric"
|
|
45
|
+
/><span class="usa-hint usa-sr-only" id="react-memorable-date-day-hint"
|
|
46
|
+
>Enter 1 or 2 digits for the day.</span
|
|
47
|
+
>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="usa-form-group usx-form-group usa-form-group--year">
|
|
50
|
+
<label class="usa-label usx-label" for="react-memorable-date-year">Year</label
|
|
51
|
+
><input
|
|
52
|
+
id="react-memorable-date-year"
|
|
53
|
+
class="usa-input usx-input"
|
|
54
|
+
placeholder=""
|
|
55
|
+
aria-describedby="react-memorable-date-year-hint"
|
|
56
|
+
name="memorable-date-year"
|
|
57
|
+
minlength="4"
|
|
58
|
+
maxlength="4"
|
|
59
|
+
pattern="[0-9]*"
|
|
60
|
+
inputmode="numeric"
|
|
61
|
+
/><span class="usa-hint usa-sr-only" id="react-memorable-date-year-hint"
|
|
62
|
+
>Enter 4 digits for the year.</span
|
|
63
|
+
>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</fieldset>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<h3 class="site-preview-heading">Disabled</h3>
|
|
70
|
+
<div class="usa-form-group usx-form-group">
|
|
71
|
+
<fieldset class="usa-fieldset usx-fieldset">
|
|
72
|
+
<legend class="usa-legend usx-legend">Date of Birth</legend>
|
|
73
|
+
<span class="usa-hint usx-hint" id="react-memorable-date-disabled-hint" aria-hidden="true"
|
|
74
|
+
>Select a month. Enter 1 or 2 digits for the day and 4 digits for the year.</span
|
|
75
|
+
>
|
|
76
|
+
<div class="usa-memorable-date usx-memorable-date">
|
|
77
|
+
<div class="usa-form-group usx-form-group usa-form-group--month usa-form-group--select">
|
|
78
|
+
<label class="usa-label usx-label" for="react-memorable-date-disabled-month">Month</label
|
|
79
|
+
><select
|
|
80
|
+
id="react-memorable-date-disabled-month"
|
|
81
|
+
name="memorable-date-disabled-month"
|
|
82
|
+
class="usa-select usx-select"
|
|
83
|
+
disabled=""
|
|
84
|
+
aria-describedby="react-memorable-date-disabled-month-hint"
|
|
85
|
+
>
|
|
86
|
+
<option value="">- Select -</option>
|
|
87
|
+
<option value="1">January</option>
|
|
88
|
+
<option value="2">February</option>
|
|
89
|
+
<option value="3">March</option>
|
|
90
|
+
<option value="4">April</option>
|
|
91
|
+
<option value="5">May</option>
|
|
92
|
+
<option value="6">June</option>
|
|
93
|
+
<option value="7">July</option>
|
|
94
|
+
<option value="8">August</option>
|
|
95
|
+
<option value="9">September</option>
|
|
96
|
+
<option value="10">October</option>
|
|
97
|
+
<option value="11">November</option>
|
|
98
|
+
<option value="12">December</option></select
|
|
99
|
+
><span class="usa-hint usa-sr-only" id="react-memorable-date-disabled-month-hint"
|
|
100
|
+
>Select a month from the dropdown.</span
|
|
101
|
+
>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="usa-form-group usx-form-group usa-form-group--day">
|
|
104
|
+
<label class="usa-label usx-label" for="react-memorable-date-disabled-day">Day</label
|
|
105
|
+
><input
|
|
106
|
+
id="react-memorable-date-disabled-day"
|
|
107
|
+
class="usa-input usx-input"
|
|
108
|
+
placeholder=""
|
|
109
|
+
disabled=""
|
|
110
|
+
aria-describedby="react-memorable-date-disabled-day-hint"
|
|
111
|
+
name="memorable-date-disabled-day"
|
|
112
|
+
maxlength="2"
|
|
113
|
+
pattern="[0-9]*"
|
|
114
|
+
inputmode="numeric"
|
|
115
|
+
/><span class="usa-hint usa-sr-only" id="react-memorable-date-disabled-day-hint"
|
|
116
|
+
>Enter 1 or 2 digits for the day.</span
|
|
117
|
+
>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="usa-form-group usx-form-group usa-form-group--year">
|
|
120
|
+
<label class="usa-label usx-label" for="react-memorable-date-disabled-year">Year</label
|
|
121
|
+
><input
|
|
122
|
+
id="react-memorable-date-disabled-year"
|
|
123
|
+
class="usa-input usx-input"
|
|
124
|
+
placeholder=""
|
|
125
|
+
disabled=""
|
|
126
|
+
aria-describedby="react-memorable-date-disabled-year-hint"
|
|
127
|
+
name="memorable-date-disabled-year"
|
|
128
|
+
minlength="4"
|
|
129
|
+
maxlength="4"
|
|
130
|
+
pattern="[0-9]*"
|
|
131
|
+
inputmode="numeric"
|
|
132
|
+
/><span class="usa-hint usa-sr-only" id="react-memorable-date-disabled-year-hint"
|
|
133
|
+
>Enter 4 digits for the year.</span
|
|
134
|
+
>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</fieldset>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
<h3 class="site-preview-heading">Aria Disabled</h3>
|
|
141
|
+
<div class="usa-form-group usx-form-group">
|
|
142
|
+
<fieldset class="usa-fieldset usx-fieldset">
|
|
143
|
+
<legend class="usa-legend usx-legend">Date of Birth</legend>
|
|
144
|
+
<span class="usa-hint usx-hint" id="react-memorable-date-aria-disabled-hint" aria-hidden="true"
|
|
145
|
+
>Select a month. Enter 1 or 2 digits for the day and 4 digits for the year.</span
|
|
146
|
+
>
|
|
147
|
+
<div class="usa-memorable-date usx-memorable-date">
|
|
148
|
+
<div class="usa-form-group usx-form-group usa-form-group--month usa-form-group--select">
|
|
149
|
+
<label class="usa-label usx-label" for="react-memorable-date-aria-disabled-month"
|
|
150
|
+
>Month</label
|
|
151
|
+
><select
|
|
152
|
+
id="react-memorable-date-aria-disabled-month"
|
|
153
|
+
name="memorable-date-aria-disabled-month"
|
|
154
|
+
class="usa-select usx-select"
|
|
155
|
+
aria-describedby="react-memorable-date-aria-disabled-month-hint"
|
|
156
|
+
aria-disabled="true"
|
|
157
|
+
>
|
|
158
|
+
<option value="">- Select -</option>
|
|
159
|
+
<option value="1">January</option>
|
|
160
|
+
<option value="2">February</option>
|
|
161
|
+
<option value="3">March</option>
|
|
162
|
+
<option value="4">April</option>
|
|
163
|
+
<option value="5">May</option>
|
|
164
|
+
<option value="6">June</option>
|
|
165
|
+
<option value="7">July</option>
|
|
166
|
+
<option value="8">August</option>
|
|
167
|
+
<option value="9">September</option>
|
|
168
|
+
<option value="10">October</option>
|
|
169
|
+
<option value="11">November</option>
|
|
170
|
+
<option value="12">December</option></select
|
|
171
|
+
><span class="usa-hint usa-sr-only" id="react-memorable-date-aria-disabled-month-hint"
|
|
172
|
+
>Select a month from the dropdown.</span
|
|
173
|
+
>
|
|
174
|
+
</div>
|
|
175
|
+
<div class="usa-form-group usx-form-group usa-form-group--day">
|
|
176
|
+
<label class="usa-label usx-label" for="react-memorable-date-aria-disabled-day">Day</label
|
|
177
|
+
><input
|
|
178
|
+
id="react-memorable-date-aria-disabled-day"
|
|
179
|
+
class="usa-input usx-input"
|
|
180
|
+
placeholder=""
|
|
181
|
+
aria-describedby="react-memorable-date-aria-disabled-day-hint"
|
|
182
|
+
name="memorable-date-aria-disabled-day"
|
|
183
|
+
maxlength="2"
|
|
184
|
+
pattern="[0-9]*"
|
|
185
|
+
inputmode="numeric"
|
|
186
|
+
aria-disabled="true"
|
|
187
|
+
/><span class="usa-hint usa-sr-only" id="react-memorable-date-aria-disabled-day-hint"
|
|
188
|
+
>Enter 1 or 2 digits for the day.</span
|
|
189
|
+
>
|
|
190
|
+
</div>
|
|
191
|
+
<div class="usa-form-group usx-form-group usa-form-group--year">
|
|
192
|
+
<label class="usa-label usx-label" for="react-memorable-date-aria-disabled-year">Year</label
|
|
193
|
+
><input
|
|
194
|
+
id="react-memorable-date-aria-disabled-year"
|
|
195
|
+
class="usa-input usx-input"
|
|
196
|
+
placeholder=""
|
|
197
|
+
aria-describedby="react-memorable-date-aria-disabled-year-hint"
|
|
198
|
+
name="memorable-date-aria-disabled-year"
|
|
199
|
+
minlength="4"
|
|
200
|
+
maxlength="4"
|
|
201
|
+
pattern="[0-9]*"
|
|
202
|
+
inputmode="numeric"
|
|
203
|
+
aria-disabled="true"
|
|
204
|
+
/><span class="usa-hint usa-sr-only" id="react-memorable-date-aria-disabled-year-hint"
|
|
205
|
+
>Enter 4 digits for the year.</span
|
|
206
|
+
>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
</fieldset>
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
<h3 class="site-preview-heading">Required</h3>
|
|
213
|
+
<div class="usa-form-group usx-form-group">
|
|
214
|
+
<fieldset class="usa-fieldset usx-fieldset">
|
|
215
|
+
<legend class="usa-legend usx-legend">
|
|
216
|
+
<abbr title="Required" class="usx-required">*</abbr> Date of Birth
|
|
217
|
+
</legend>
|
|
218
|
+
<span class="usa-hint usx-hint" id="react-memorable-date-required-hint" aria-hidden="true"
|
|
219
|
+
>Select a month. Enter 1 or 2 digits for the day and 4 digits for the year.</span
|
|
220
|
+
>
|
|
221
|
+
<div class="usa-memorable-date usx-memorable-date">
|
|
222
|
+
<div class="usa-form-group usx-form-group usa-form-group--month usa-form-group--select">
|
|
223
|
+
<label class="usa-label usx-label" for="react-memorable-date-required-month"
|
|
224
|
+
><abbr title="Required" class="usx-required">*</abbr> Month</label
|
|
225
|
+
><select
|
|
226
|
+
id="react-memorable-date-required-month"
|
|
227
|
+
name="memorable-date-required-month"
|
|
228
|
+
class="usa-select usx-select"
|
|
229
|
+
required=""
|
|
230
|
+
aria-describedby="react-memorable-date-required-month-hint"
|
|
231
|
+
>
|
|
232
|
+
<option value="">- Select -</option>
|
|
233
|
+
<option value="1">January</option>
|
|
234
|
+
<option value="2">February</option>
|
|
235
|
+
<option value="3">March</option>
|
|
236
|
+
<option value="4">April</option>
|
|
237
|
+
<option value="5">May</option>
|
|
238
|
+
<option value="6">June</option>
|
|
239
|
+
<option value="7">July</option>
|
|
240
|
+
<option value="8">August</option>
|
|
241
|
+
<option value="9">September</option>
|
|
242
|
+
<option value="10">October</option>
|
|
243
|
+
<option value="11">November</option>
|
|
244
|
+
<option value="12">December</option></select
|
|
245
|
+
><span class="usa-hint usa-sr-only" id="react-memorable-date-required-month-hint"
|
|
246
|
+
>Select a month from the dropdown.</span
|
|
247
|
+
>
|
|
248
|
+
</div>
|
|
249
|
+
<div class="usa-form-group usx-form-group usa-form-group--day">
|
|
250
|
+
<label class="usa-label usx-label" for="react-memorable-date-required-day"
|
|
251
|
+
><abbr title="Required" class="usx-required">*</abbr> Day</label
|
|
252
|
+
><input
|
|
253
|
+
id="react-memorable-date-required-day"
|
|
254
|
+
class="usa-input usx-input"
|
|
255
|
+
placeholder=""
|
|
256
|
+
required=""
|
|
257
|
+
aria-describedby="react-memorable-date-required-day-hint"
|
|
258
|
+
name="memorable-date-required-day"
|
|
259
|
+
maxlength="2"
|
|
260
|
+
pattern="[0-9]*"
|
|
261
|
+
inputmode="numeric"
|
|
262
|
+
/><span class="usa-hint usa-sr-only" id="react-memorable-date-required-day-hint"
|
|
263
|
+
>Enter 1 or 2 digits for the day.</span
|
|
264
|
+
>
|
|
265
|
+
</div>
|
|
266
|
+
<div class="usa-form-group usx-form-group usa-form-group--year">
|
|
267
|
+
<label class="usa-label usx-label" for="react-memorable-date-required-year"
|
|
268
|
+
><abbr title="Required" class="usx-required">*</abbr> Year</label
|
|
269
|
+
><input
|
|
270
|
+
id="react-memorable-date-required-year"
|
|
271
|
+
class="usa-input usx-input"
|
|
272
|
+
placeholder=""
|
|
273
|
+
required=""
|
|
274
|
+
aria-describedby="react-memorable-date-required-year-hint"
|
|
275
|
+
name="memorable-date-required-year"
|
|
276
|
+
minlength="4"
|
|
277
|
+
maxlength="4"
|
|
278
|
+
pattern="[0-9]*"
|
|
279
|
+
inputmode="numeric"
|
|
280
|
+
/><span class="usa-hint usa-sr-only" id="react-memorable-date-required-year-hint"
|
|
281
|
+
>Enter 4 digits for the year.</span
|
|
282
|
+
>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
</fieldset>
|
|
286
|
+
</div>
|
|
287
|
+
|
|
288
|
+
<h3 class="site-preview-heading">With Default Values</h3>
|
|
289
|
+
<div class="usa-form-group usx-form-group">
|
|
290
|
+
<fieldset class="usa-fieldset usx-fieldset">
|
|
291
|
+
<legend class="usa-legend usx-legend">Date of Birth</legend>
|
|
292
|
+
<span class="usa-hint usx-hint" id="react-memorable-date-default-value-hint" aria-hidden="true"
|
|
293
|
+
>Select a month. Enter 1 or 2 digits for the day and 4 digits for the year.</span
|
|
294
|
+
>
|
|
295
|
+
<div class="usa-memorable-date usx-memorable-date">
|
|
296
|
+
<div class="usa-form-group usx-form-group usa-form-group--month usa-form-group--select">
|
|
297
|
+
<label class="usa-label usx-label" for="react-memorable-date-default-value-month"
|
|
298
|
+
>Month</label
|
|
299
|
+
><select
|
|
300
|
+
id="react-memorable-date-default-value-month"
|
|
301
|
+
name="memorable-date-default-value-month"
|
|
302
|
+
class="usa-select usx-select"
|
|
303
|
+
aria-describedby="react-memorable-date-default-value-month-hint"
|
|
304
|
+
>
|
|
305
|
+
<option value="">- Select -</option>
|
|
306
|
+
<option value="1">January</option>
|
|
307
|
+
<option value="2">February</option>
|
|
308
|
+
<option value="3">March</option>
|
|
309
|
+
<option value="4">April</option>
|
|
310
|
+
<option value="5" selected="">May</option>
|
|
311
|
+
<option value="6">June</option>
|
|
312
|
+
<option value="7">July</option>
|
|
313
|
+
<option value="8">August</option>
|
|
314
|
+
<option value="9">September</option>
|
|
315
|
+
<option value="10">October</option>
|
|
316
|
+
<option value="11">November</option>
|
|
317
|
+
<option value="12">December</option></select
|
|
318
|
+
><span class="usa-hint usa-sr-only" id="react-memorable-date-default-value-month-hint"
|
|
319
|
+
>Select a month from the dropdown.</span
|
|
320
|
+
>
|
|
321
|
+
</div>
|
|
322
|
+
<div class="usa-form-group usx-form-group usa-form-group--day">
|
|
323
|
+
<label class="usa-label usx-label" for="react-memorable-date-default-value-day">Day</label
|
|
324
|
+
><input
|
|
325
|
+
id="react-memorable-date-default-value-day"
|
|
326
|
+
class="usa-input usx-input"
|
|
327
|
+
placeholder=""
|
|
328
|
+
aria-describedby="react-memorable-date-default-value-day-hint"
|
|
329
|
+
name="memorable-date-default-value-day"
|
|
330
|
+
maxlength="2"
|
|
331
|
+
pattern="[0-9]*"
|
|
332
|
+
inputmode="numeric"
|
|
333
|
+
value="22"
|
|
334
|
+
/><span class="usa-hint usa-sr-only" id="react-memorable-date-default-value-day-hint"
|
|
335
|
+
>Enter 1 or 2 digits for the day.</span
|
|
336
|
+
>
|
|
337
|
+
</div>
|
|
338
|
+
<div class="usa-form-group usx-form-group usa-form-group--year">
|
|
339
|
+
<label class="usa-label usx-label" for="react-memorable-date-default-value-year">Year</label
|
|
340
|
+
><input
|
|
341
|
+
id="react-memorable-date-default-value-year"
|
|
342
|
+
class="usa-input usx-input"
|
|
343
|
+
placeholder=""
|
|
344
|
+
aria-describedby="react-memorable-date-default-value-year-hint"
|
|
345
|
+
name="memorable-date-default-value-year"
|
|
346
|
+
minlength="4"
|
|
347
|
+
maxlength="4"
|
|
348
|
+
pattern="[0-9]*"
|
|
349
|
+
inputmode="numeric"
|
|
350
|
+
value="1990"
|
|
351
|
+
/><span class="usa-hint usa-sr-only" id="react-memorable-date-default-value-year-hint"
|
|
352
|
+
>Enter 4 digits for the year.</span
|
|
353
|
+
>
|
|
354
|
+
</div>
|
|
355
|
+
</div>
|
|
356
|
+
</fieldset>
|
|
357
|
+
</div>
|
|
358
|
+
|
|
359
|
+
<h3 class="site-preview-heading">With Error</h3>
|
|
360
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
361
|
+
<fieldset class="usa-fieldset usx-fieldset">
|
|
362
|
+
<legend class="usa-legend usx-legend usa-label--error">Date of Birth</legend>
|
|
363
|
+
<span
|
|
364
|
+
class="usa-error-message usx-error-message"
|
|
365
|
+
role="alert"
|
|
366
|
+
id="react-memorable-date-error-error"
|
|
367
|
+
>Enter a valid date of birth.</span
|
|
368
|
+
><span class="usa-hint usx-hint" id="react-memorable-date-error-hint" aria-hidden="true"
|
|
369
|
+
>Select a month. Enter 1 or 2 digits for the day and 4 digits for the year.</span
|
|
370
|
+
>
|
|
371
|
+
<div class="usa-memorable-date usx-memorable-date">
|
|
372
|
+
<div class="usa-form-group usx-form-group usa-form-group--month usa-form-group--select">
|
|
373
|
+
<label class="usa-label usx-label" for="react-memorable-date-error-month">Month</label
|
|
374
|
+
><select
|
|
375
|
+
id="react-memorable-date-error-month"
|
|
376
|
+
name="memorable-date-error-month"
|
|
377
|
+
class="usa-select usx-select usa-input--error"
|
|
378
|
+
aria-describedby="react-memorable-date-error-month-hint react-memorable-date-error-error"
|
|
379
|
+
aria-invalid="true"
|
|
380
|
+
>
|
|
381
|
+
<option value="">- Select -</option>
|
|
382
|
+
<option value="1">January</option>
|
|
383
|
+
<option value="2">February</option>
|
|
384
|
+
<option value="3">March</option>
|
|
385
|
+
<option value="4">April</option>
|
|
386
|
+
<option value="5">May</option>
|
|
387
|
+
<option value="6">June</option>
|
|
388
|
+
<option value="7">July</option>
|
|
389
|
+
<option value="8">August</option>
|
|
390
|
+
<option value="9">September</option>
|
|
391
|
+
<option value="10">October</option>
|
|
392
|
+
<option value="11">November</option>
|
|
393
|
+
<option value="12">December</option></select
|
|
394
|
+
><span class="usa-hint usa-sr-only" id="react-memorable-date-error-month-hint"
|
|
395
|
+
>Select a month from the dropdown.</span
|
|
396
|
+
>
|
|
397
|
+
</div>
|
|
398
|
+
<div class="usa-form-group usx-form-group usa-form-group--day">
|
|
399
|
+
<label class="usa-label usx-label usa-label--error" for="react-memorable-date-error-day"
|
|
400
|
+
>Day</label
|
|
401
|
+
><input
|
|
402
|
+
id="react-memorable-date-error-day"
|
|
403
|
+
class="usa-input usx-input usa-input--error"
|
|
404
|
+
placeholder=""
|
|
405
|
+
aria-describedby="react-memorable-date-error-day-hint react-memorable-date-error-error"
|
|
406
|
+
aria-invalid="true"
|
|
407
|
+
name="memorable-date-error-day"
|
|
408
|
+
maxlength="2"
|
|
409
|
+
pattern="[0-9]*"
|
|
410
|
+
inputmode="numeric"
|
|
411
|
+
value="32"
|
|
412
|
+
/><span class="usa-hint usa-sr-only" id="react-memorable-date-error-day-hint"
|
|
413
|
+
>Enter 1 or 2 digits for the day.</span
|
|
414
|
+
>
|
|
415
|
+
</div>
|
|
416
|
+
<div class="usa-form-group usx-form-group usa-form-group--year">
|
|
417
|
+
<label class="usa-label usx-label usa-label--error" for="react-memorable-date-error-year"
|
|
418
|
+
>Year</label
|
|
419
|
+
><input
|
|
420
|
+
id="react-memorable-date-error-year"
|
|
421
|
+
class="usa-input usx-input usa-input--error"
|
|
422
|
+
placeholder=""
|
|
423
|
+
aria-describedby="react-memorable-date-error-year-hint react-memorable-date-error-error"
|
|
424
|
+
aria-invalid="true"
|
|
425
|
+
name="memorable-date-error-year"
|
|
426
|
+
minlength="4"
|
|
427
|
+
maxlength="4"
|
|
428
|
+
pattern="[0-9]*"
|
|
429
|
+
inputmode="numeric"
|
|
430
|
+
value="1990"
|
|
431
|
+
/><span class="usa-hint usa-sr-only" id="react-memorable-date-error-year-hint"
|
|
432
|
+
>Enter 4 digits for the year.</span
|
|
433
|
+
>
|
|
434
|
+
</div>
|
|
435
|
+
</div>
|
|
436
|
+
</fieldset>
|
|
437
|
+
</div>
|
|
@@ -5,7 +5,7 @@ import Icon from '../icon/Icon';
|
|
|
5
5
|
export interface MiscBannerProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
className?: string;
|
|
8
|
-
|
|
8
|
+
color?: string;
|
|
9
9
|
badgeText?: string;
|
|
10
10
|
message?: string;
|
|
11
11
|
casualLinkText?: string;
|
|
@@ -20,8 +20,8 @@ export interface MiscBannerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
20
20
|
export default function MiscBanner({
|
|
21
21
|
children = null,
|
|
22
22
|
className = '',
|
|
23
|
-
|
|
24
|
-
badgeText
|
|
23
|
+
color = 'beta',
|
|
24
|
+
badgeText,
|
|
25
25
|
message = 'Welcome to the beta website!',
|
|
26
26
|
casualLinkText,
|
|
27
27
|
casualLinkHref,
|
|
@@ -30,11 +30,15 @@ export default function MiscBanner({
|
|
|
30
30
|
importantLinkHref,
|
|
31
31
|
importantLinkIcon = 'undo',
|
|
32
32
|
showReturnLink = true,
|
|
33
|
+
id,
|
|
33
34
|
...props
|
|
34
35
|
}: MiscBannerProps) {
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
36
|
+
const instanceId = useId();
|
|
37
|
+
const baseId = id || instanceId;
|
|
38
|
+
const bannerColor = color || 'beta';
|
|
39
|
+
const toggleId = `${baseId}-dropdown-toggle`;
|
|
40
|
+
const menuId = `${baseId}-dropdown`;
|
|
41
|
+
const classes = ClassNames('usx-misc-banner', `bg-${bannerColor}`, className);
|
|
38
42
|
const mobileLinks: { href: string; text: string }[] = [];
|
|
39
43
|
const hasLearnMoreLink = showLearnMore && Boolean(casualLinkText);
|
|
40
44
|
const hasReturnLink = showReturnLink && Boolean(importantLinkText);
|
|
@@ -55,7 +59,9 @@ export default function MiscBanner({
|
|
|
55
59
|
|
|
56
60
|
const content = children || (
|
|
57
61
|
<>
|
|
58
|
-
|
|
62
|
+
{badgeText ? (
|
|
63
|
+
<strong className={`usx-misc-banner__badge text-${bannerColor}`}>{badgeText}</strong>
|
|
64
|
+
) : null}
|
|
59
65
|
<p className="usx-misc-banner__text">
|
|
60
66
|
{message}
|
|
61
67
|
{hasLearnMoreLink ? (
|
|
@@ -68,7 +74,7 @@ export default function MiscBanner({
|
|
|
68
74
|
{hasReturnLink ? (
|
|
69
75
|
<span className="usx-misc-banner__return-text">
|
|
70
76
|
<a className="usa-link usx-misc-banner__link" href={importantLinkHref}>
|
|
71
|
-
<Icon name={importantLinkIcon} size={1}
|
|
77
|
+
<Icon name={importantLinkIcon} size={1} />
|
|
72
78
|
{' '}
|
|
73
79
|
{importantLinkText}
|
|
74
80
|
</a>
|
|
@@ -87,7 +93,7 @@ export default function MiscBanner({
|
|
|
87
93
|
aria-controls={menuId}
|
|
88
94
|
aria-label="Toggle banner links"
|
|
89
95
|
>
|
|
90
|
-
<Icon name="expand_more" size={4}
|
|
96
|
+
<Icon name="expand_more" size={4} />
|
|
91
97
|
</label>
|
|
92
98
|
<div id={menuId} className="usx-misc-banner__dropdown-content">
|
|
93
99
|
<ul className="usa-list">
|
|
@@ -104,7 +110,7 @@ export default function MiscBanner({
|
|
|
104
110
|
);
|
|
105
111
|
|
|
106
112
|
return (
|
|
107
|
-
<div className={classes} {...props}>
|
|
113
|
+
<div id={id} className={classes} {...props}>
|
|
108
114
|
<div className="usx-misc-banner__content grid-container">
|
|
109
115
|
{content}
|
|
110
116
|
</div>
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "misc-banner",
|
|
3
3
|
"template": "misc-banner/misc-banner.django.html",
|
|
4
|
-
"version":
|
|
4
|
+
"version": 4,
|
|
5
|
+
"default": {
|
|
6
|
+
"id": "misc-banner-misc",
|
|
7
|
+
"color": "base",
|
|
8
|
+
"badgeText": "misc",
|
|
9
|
+
"message": "This is a miscellaneous banner.",
|
|
10
|
+
"casualLinkText": "Casual Link",
|
|
11
|
+
"casualLinkHref": "https://usx.solex.studio/",
|
|
12
|
+
"importantLinkText": "Important Link",
|
|
13
|
+
"importantLinkHref": "https://usx.solex.studio/",
|
|
14
|
+
"importantLinkIcon": "arrow_forward",
|
|
15
|
+
"showLearnMore": true,
|
|
16
|
+
"showReturnLink": true
|
|
17
|
+
},
|
|
5
18
|
"props": {
|
|
19
|
+
"id": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Id for the banner's root element. The dropdown toggle and menu ids derive from it as `<id>-dropdown-toggle` and `<id>-dropdown`. React generates one when omitted."
|
|
22
|
+
},
|
|
6
23
|
"children": {
|
|
7
24
|
"type": "slot",
|
|
8
25
|
"description": "Advanced override for custom inner markup"
|
|
@@ -11,13 +28,14 @@
|
|
|
11
28
|
"type": "string",
|
|
12
29
|
"description": "Additional classes for the root banner"
|
|
13
30
|
},
|
|
14
|
-
"
|
|
31
|
+
"color": {
|
|
15
32
|
"type": "string",
|
|
16
|
-
"
|
|
33
|
+
"default": "beta",
|
|
34
|
+
"description": "Color utility name for the banner background and optional badge text; accepts any string"
|
|
17
35
|
},
|
|
18
36
|
"badgeText": {
|
|
19
37
|
"type": "string",
|
|
20
|
-
"description": "Badge label text"
|
|
38
|
+
"description": "Badge label text; omit or pass an empty string to hide the badge"
|
|
21
39
|
},
|
|
22
40
|
"message": {
|
|
23
41
|
"type": "string",
|