@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
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
<!-- Plain
|
|
2
|
-
<!-- @uswds/uswds/js/usa-character-count at runtime (call ONLY -->
|
|
3
|
-
<!-- characterCount.init(), never .on()/.off()) to move `maxlength` to -->
|
|
4
|
-
<!-- `data-maxlength`, hide the fallback message below, and manage the live -->
|
|
5
|
-
<!-- count/over-limit state itself. -->
|
|
1
|
+
<!-- Plain markup: the HTML story initializes USWDS characterCount.init() at runtime. -->
|
|
6
2
|
|
|
7
3
|
<!-- Default -->
|
|
8
4
|
<div class="usa-character-count usx-character-count">
|
|
@@ -18,11 +14,59 @@
|
|
|
18
14
|
<span id="cc-1-info" class="usa-character-count__message">You can enter up to 25 characters</span>
|
|
19
15
|
</div>
|
|
20
16
|
|
|
21
|
-
<!--
|
|
17
|
+
<!-- Text Area -->
|
|
18
|
+
<div class="usa-character-count usx-character-count">
|
|
19
|
+
<div class="usa-form-group usx-form-group">
|
|
20
|
+
<label class="usa-label usx-label" for="cc-4">Text area</label>
|
|
21
|
+
<textarea
|
|
22
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
23
|
+
id="cc-4"
|
|
24
|
+
maxlength="50"
|
|
25
|
+
aria-describedby="cc-4-info"
|
|
26
|
+
></textarea>
|
|
27
|
+
</div>
|
|
28
|
+
<span id="cc-4-info" class="usa-character-count__message">You can enter up to 50 characters</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<!-- With Placeholder -->
|
|
32
|
+
<div class="usa-character-count usx-character-count">
|
|
33
|
+
<div class="usa-form-group usx-form-group">
|
|
34
|
+
<label class="usa-label usx-label" for="cc-17">Text input with placeholder</label>
|
|
35
|
+
<input
|
|
36
|
+
class="usa-input usx-input usa-character-count__field"
|
|
37
|
+
id="cc-17"
|
|
38
|
+
maxlength="25"
|
|
39
|
+
aria-describedby="cc-17-info"
|
|
40
|
+
placeholder="Enter text here"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
43
|
+
<span id="cc-17-info" class="usa-character-count__message"
|
|
44
|
+
>You can enter up to 25 characters</span
|
|
45
|
+
>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<!-- Text Area With Placeholder -->
|
|
49
|
+
<div class="usa-character-count usx-character-count">
|
|
50
|
+
<div class="usa-form-group usx-form-group">
|
|
51
|
+
<label class="usa-label usx-label" for="cc-18">Text area with placeholder</label>
|
|
52
|
+
<textarea
|
|
53
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
54
|
+
id="cc-18"
|
|
55
|
+
maxlength="50"
|
|
56
|
+
aria-describedby="cc-18-info"
|
|
57
|
+
placeholder="Enter text here"
|
|
58
|
+
></textarea>
|
|
59
|
+
</div>
|
|
60
|
+
<span id="cc-18-info" class="usa-character-count__message"
|
|
61
|
+
>You can enter up to 50 characters</span
|
|
62
|
+
>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<!-- With Hint -->
|
|
22
66
|
<div class="usa-character-count usx-character-count">
|
|
23
67
|
<div class="usa-form-group usx-form-group">
|
|
24
68
|
<label class="usa-label usx-label" for="cc-3">Text input with hint</label>
|
|
25
|
-
<span
|
|
69
|
+
<span class="usa-hint usx-hint" id="cc-3-hint">You can enter up to 25 characters.</span>
|
|
26
70
|
<input
|
|
27
71
|
class="usa-input usx-input usa-character-count__field"
|
|
28
72
|
id="cc-3"
|
|
@@ -33,26 +77,27 @@
|
|
|
33
77
|
<span id="cc-3-info" class="usa-character-count__message">You can enter up to 25 characters</span>
|
|
34
78
|
</div>
|
|
35
79
|
|
|
36
|
-
<!--
|
|
80
|
+
<!-- Text Area With Hint -->
|
|
37
81
|
<div class="usa-character-count usx-character-count">
|
|
38
82
|
<div class="usa-form-group usx-form-group">
|
|
39
|
-
<label class="usa-label usx-label" for="cc-
|
|
83
|
+
<label class="usa-label usx-label" for="cc-2">Text area with hint</label>
|
|
84
|
+
<span class="usa-hint usx-hint" id="cc-2-hint">You can enter up to 50 characters.</span>
|
|
40
85
|
<textarea
|
|
41
86
|
class="usa-textarea usx-textarea usa-character-count__field"
|
|
42
|
-
id="cc-
|
|
87
|
+
id="cc-2"
|
|
43
88
|
maxlength="50"
|
|
44
|
-
aria-describedby="cc-
|
|
89
|
+
aria-describedby="cc-2-info cc-2-hint"
|
|
45
90
|
></textarea>
|
|
46
91
|
</div>
|
|
47
|
-
<span id="cc-
|
|
92
|
+
<span id="cc-2-info" class="usa-character-count__message">You can enter up to 50 characters</span>
|
|
48
93
|
</div>
|
|
49
94
|
|
|
50
95
|
<!-- Required -->
|
|
51
96
|
<div class="usa-character-count usx-character-count">
|
|
52
97
|
<div class="usa-form-group usx-form-group">
|
|
53
|
-
<label class="usa-label usx-label" for="cc-6"
|
|
54
|
-
|
|
55
|
-
|
|
98
|
+
<label class="usa-label usx-label" for="cc-6"
|
|
99
|
+
><abbr title="Required" class="usx-required">*</abbr> Required field</label
|
|
100
|
+
>
|
|
56
101
|
<input
|
|
57
102
|
class="usa-input usx-input usa-character-count__field"
|
|
58
103
|
id="cc-6"
|
|
@@ -64,7 +109,24 @@
|
|
|
64
109
|
<span id="cc-6-info" class="usa-character-count__message">You can enter up to 25 characters</span>
|
|
65
110
|
</div>
|
|
66
111
|
|
|
67
|
-
<!--
|
|
112
|
+
<!-- Text Area Required -->
|
|
113
|
+
<div class="usa-character-count usx-character-count">
|
|
114
|
+
<div class="usa-form-group usx-form-group">
|
|
115
|
+
<label class="usa-label usx-label" for="cc-5"
|
|
116
|
+
><abbr title="Required" class="usx-required">*</abbr> Text area required field</label
|
|
117
|
+
>
|
|
118
|
+
<textarea
|
|
119
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
120
|
+
id="cc-5"
|
|
121
|
+
maxlength="50"
|
|
122
|
+
aria-describedby="cc-5-info"
|
|
123
|
+
required
|
|
124
|
+
></textarea>
|
|
125
|
+
</div>
|
|
126
|
+
<span id="cc-5-info" class="usa-character-count__message">You can enter up to 50 characters</span>
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
<!-- Success State -->
|
|
68
130
|
<div class="usa-character-count usx-character-count">
|
|
69
131
|
<div class="usa-form-group usx-form-group">
|
|
70
132
|
<label class="usa-label usx-label" for="cc-7">Success state</label>
|
|
@@ -74,37 +136,180 @@
|
|
|
74
136
|
maxlength="25"
|
|
75
137
|
aria-describedby="cc-7-info cc-7-success"
|
|
76
138
|
/>
|
|
77
|
-
<span
|
|
139
|
+
<span class="usa-success-message" id="cc-7-success" role="status">Looks good!</span>
|
|
78
140
|
</div>
|
|
79
141
|
<span id="cc-7-info" class="usa-character-count__message">You can enter up to 25 characters</span>
|
|
80
142
|
</div>
|
|
81
143
|
|
|
144
|
+
<!-- Text Area Success State -->
|
|
145
|
+
<div class="usa-character-count usx-character-count">
|
|
146
|
+
<div class="usa-form-group usx-form-group">
|
|
147
|
+
<label class="usa-label usx-label" for="cc-8">Text area success state</label>
|
|
148
|
+
<textarea
|
|
149
|
+
class="usa-textarea usx-textarea usa-character-count__field usa-input--success"
|
|
150
|
+
id="cc-8"
|
|
151
|
+
maxlength="50"
|
|
152
|
+
aria-describedby="cc-8-info cc-8-success"
|
|
153
|
+
></textarea>
|
|
154
|
+
<span class="usa-success-message" id="cc-8-success" role="status">Looks good!</span>
|
|
155
|
+
</div>
|
|
156
|
+
<span id="cc-8-info" class="usa-character-count__message">You can enter up to 50 characters</span>
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
<!-- Error State -->
|
|
160
|
+
<div class="usa-character-count usx-character-count">
|
|
161
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
162
|
+
<label class="usa-label usx-label usa-label--error" for="cc-9">Error state</label>
|
|
163
|
+
<span class="usa-error-message usx-error-message" id="cc-9-error" role="alert"
|
|
164
|
+
>This field has an error.</span
|
|
165
|
+
>
|
|
166
|
+
<input
|
|
167
|
+
class="usa-input usx-input usa-character-count__field usa-input--error"
|
|
168
|
+
id="cc-9"
|
|
169
|
+
maxlength="25"
|
|
170
|
+
aria-describedby="cc-9-info cc-9-error"
|
|
171
|
+
/>
|
|
172
|
+
</div>
|
|
173
|
+
<span id="cc-9-info" class="usa-character-count__message">You can enter up to 25 characters</span>
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
<!-- Text Area Error State -->
|
|
177
|
+
<div class="usa-character-count usx-character-count">
|
|
178
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
179
|
+
<label class="usa-label usx-label usa-label--error" for="cc-10">Text area error state</label>
|
|
180
|
+
<span class="usa-error-message usx-error-message" id="cc-10-error" role="alert"
|
|
181
|
+
>This field has an error.</span
|
|
182
|
+
>
|
|
183
|
+
<textarea
|
|
184
|
+
class="usa-textarea usx-textarea usa-character-count__field usa-input--error"
|
|
185
|
+
id="cc-10"
|
|
186
|
+
maxlength="50"
|
|
187
|
+
aria-describedby="cc-10-info cc-10-error"
|
|
188
|
+
></textarea>
|
|
189
|
+
</div>
|
|
190
|
+
<span id="cc-10-info" class="usa-character-count__message"
|
|
191
|
+
>You can enter up to 50 characters</span
|
|
192
|
+
>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
82
195
|
<!-- Disabled -->
|
|
83
196
|
<div class="usa-character-count usx-character-count">
|
|
84
197
|
<div class="usa-form-group usx-form-group">
|
|
85
|
-
<label class="usa-label usx-label" for="cc-
|
|
198
|
+
<label class="usa-label usx-label" for="cc-12">Disabled field</label>
|
|
86
199
|
<input
|
|
87
200
|
class="usa-input usx-input usa-character-count__field"
|
|
88
|
-
id="cc-
|
|
201
|
+
id="cc-12"
|
|
89
202
|
maxlength="25"
|
|
90
|
-
aria-describedby="cc-
|
|
203
|
+
aria-describedby="cc-12-info"
|
|
91
204
|
disabled
|
|
92
205
|
/>
|
|
93
206
|
</div>
|
|
94
|
-
<span id="cc-
|
|
207
|
+
<span id="cc-12-info" class="usa-character-count__message"
|
|
208
|
+
>You can enter up to 25 characters</span
|
|
209
|
+
>
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
<!-- Text Area Disabled -->
|
|
213
|
+
<div class="usa-character-count usx-character-count">
|
|
214
|
+
<div class="usa-form-group usx-form-group">
|
|
215
|
+
<label class="usa-label usx-label" for="cc-14">Text area disabled field</label>
|
|
216
|
+
<textarea
|
|
217
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
218
|
+
id="cc-14"
|
|
219
|
+
maxlength="50"
|
|
220
|
+
aria-describedby="cc-14-info"
|
|
221
|
+
disabled
|
|
222
|
+
></textarea>
|
|
223
|
+
</div>
|
|
224
|
+
<span id="cc-14-info" class="usa-character-count__message"
|
|
225
|
+
>You can enter up to 50 characters</span
|
|
226
|
+
>
|
|
95
227
|
</div>
|
|
96
228
|
|
|
97
|
-
<!--
|
|
229
|
+
<!-- Default Value -->
|
|
98
230
|
<div class="usa-character-count usx-character-count">
|
|
99
231
|
<div class="usa-form-group usx-form-group">
|
|
100
|
-
<label class="usa-label usx-label" for="cc-
|
|
232
|
+
<label class="usa-label usx-label" for="cc-11">Pre-filled with default value</label>
|
|
101
233
|
<input
|
|
102
234
|
class="usa-input usx-input usa-character-count__field"
|
|
103
|
-
id="cc-
|
|
235
|
+
id="cc-11"
|
|
104
236
|
maxlength="25"
|
|
105
|
-
aria-describedby="cc-
|
|
237
|
+
aria-describedby="cc-11-info"
|
|
238
|
+
value="Default value"
|
|
239
|
+
/>
|
|
240
|
+
</div>
|
|
241
|
+
<span id="cc-11-info" class="usa-character-count__message"
|
|
242
|
+
>You can enter up to 25 characters</span
|
|
243
|
+
>
|
|
244
|
+
</div>
|
|
245
|
+
|
|
246
|
+
<!-- Text Area Default Value -->
|
|
247
|
+
<div class="usa-character-count usx-character-count">
|
|
248
|
+
<div class="usa-form-group usx-form-group">
|
|
249
|
+
<label class="usa-label usx-label" for="cc-15">Text area pre-filled with default value</label>
|
|
250
|
+
<textarea
|
|
251
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
252
|
+
id="cc-15"
|
|
253
|
+
maxlength="50"
|
|
254
|
+
aria-describedby="cc-15-info"
|
|
255
|
+
>
|
|
256
|
+
Default value</textarea
|
|
257
|
+
>
|
|
258
|
+
</div>
|
|
259
|
+
<span id="cc-15-info" class="usa-character-count__message"
|
|
260
|
+
>You can enter up to 50 characters</span
|
|
261
|
+
>
|
|
262
|
+
</div>
|
|
263
|
+
|
|
264
|
+
<!-- Default Value Over Limit -->
|
|
265
|
+
<div class="usa-alert usx-alert usa-alert--warning">
|
|
266
|
+
<div class="usa-alert__body">
|
|
267
|
+
<h4 class="usa-alert__heading">Known Issue</h4>
|
|
268
|
+
<p class="usa-alert__text">
|
|
269
|
+
USWDS does not currently handle a default value that exceeds the character limit.
|
|
270
|
+
</p>
|
|
271
|
+
</div>
|
|
272
|
+
</div>
|
|
273
|
+
<div class="usa-character-count usx-character-count">
|
|
274
|
+
<div class="usa-form-group usx-form-group">
|
|
275
|
+
<label class="usa-label usx-label" for="cc-13">Pre-filled, already over the limit</label>
|
|
276
|
+
<input
|
|
277
|
+
class="usa-input usx-input usa-character-count__field"
|
|
278
|
+
id="cc-13"
|
|
279
|
+
maxlength="25"
|
|
280
|
+
aria-describedby="cc-13-info"
|
|
106
281
|
value="This default value is already way too long for the limit."
|
|
107
282
|
/>
|
|
108
283
|
</div>
|
|
109
|
-
<span id="cc-
|
|
284
|
+
<span id="cc-13-info" class="usa-character-count__message"
|
|
285
|
+
>You can enter up to 25 characters</span
|
|
286
|
+
>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
<!-- Text Area Default Value Over Limit -->
|
|
290
|
+
<div class="usa-alert usx-alert usa-alert--warning">
|
|
291
|
+
<div class="usa-alert__body">
|
|
292
|
+
<h4 class="usa-alert__heading">Known Issue</h4>
|
|
293
|
+
<p class="usa-alert__text">
|
|
294
|
+
USWDS does not currently handle a default value that exceeds the character limit.
|
|
295
|
+
</p>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
<div class="usa-character-count usx-character-count">
|
|
299
|
+
<div class="usa-form-group usx-form-group">
|
|
300
|
+
<label class="usa-label usx-label" for="cc-16"
|
|
301
|
+
>Text area pre-filled, already over the limit</label
|
|
302
|
+
>
|
|
303
|
+
<textarea
|
|
304
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
305
|
+
id="cc-16"
|
|
306
|
+
maxlength="50"
|
|
307
|
+
aria-describedby="cc-16-info"
|
|
308
|
+
>
|
|
309
|
+
Despite the text area providing more space, this default value is already way too long for the limit.</textarea
|
|
310
|
+
>
|
|
311
|
+
</div>
|
|
312
|
+
<span id="cc-16-info" class="usa-character-count__message"
|
|
313
|
+
>You can enter up to 50 characters</span
|
|
314
|
+
>
|
|
110
315
|
</div>
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<div class="usa-character-count usx-character-count">
|
|
3
|
+
<div class="usa-form-group usx-form-group">
|
|
4
|
+
<label class="usa-label usx-label" for="react-cc-1">Text input</label
|
|
5
|
+
><input
|
|
6
|
+
id="react-cc-1"
|
|
7
|
+
class="usa-input usx-input usa-character-count__field"
|
|
8
|
+
placeholder=""
|
|
9
|
+
aria-describedby="react-cc-1-info"
|
|
10
|
+
maxlength="25"
|
|
11
|
+
/>
|
|
12
|
+
</div>
|
|
13
|
+
<span id="react-cc-1-info" class="usa-character-count__message"
|
|
14
|
+
>You can enter up to 25 characters</span
|
|
15
|
+
>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<h3 class="site-preview-heading">Text Area</h3>
|
|
19
|
+
<div class="usa-character-count usx-character-count">
|
|
20
|
+
<div class="usa-form-group usx-form-group">
|
|
21
|
+
<label class="usa-label usx-label" for="react-cc-4">Text area</label
|
|
22
|
+
><textarea
|
|
23
|
+
id="react-cc-4"
|
|
24
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
25
|
+
placeholder=""
|
|
26
|
+
aria-describedby="react-cc-4-info"
|
|
27
|
+
maxlength="50"
|
|
28
|
+
></textarea>
|
|
29
|
+
</div>
|
|
30
|
+
<span id="react-cc-4-info" class="usa-character-count__message"
|
|
31
|
+
>You can enter up to 50 characters</span
|
|
32
|
+
>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<h3 class="site-preview-heading">With Placeholder</h3>
|
|
36
|
+
<div class="usa-character-count usx-character-count">
|
|
37
|
+
<div class="usa-form-group usx-form-group">
|
|
38
|
+
<label class="usa-label usx-label" for="react-cc-17">Text input with placeholder</label
|
|
39
|
+
><input
|
|
40
|
+
id="react-cc-17"
|
|
41
|
+
class="usa-input usx-input usa-character-count__field"
|
|
42
|
+
placeholder="Enter text here"
|
|
43
|
+
aria-describedby="react-cc-17-info"
|
|
44
|
+
maxlength="25"
|
|
45
|
+
/>
|
|
46
|
+
</div>
|
|
47
|
+
<span id="react-cc-17-info" class="usa-character-count__message"
|
|
48
|
+
>You can enter up to 25 characters</span
|
|
49
|
+
>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<h3 class="site-preview-heading">Text Area With Placeholder</h3>
|
|
53
|
+
<div class="usa-character-count usx-character-count">
|
|
54
|
+
<div class="usa-form-group usx-form-group">
|
|
55
|
+
<label class="usa-label usx-label" for="react-cc-18">Text area with placeholder</label
|
|
56
|
+
><textarea
|
|
57
|
+
id="react-cc-18"
|
|
58
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
59
|
+
placeholder="Enter text here"
|
|
60
|
+
aria-describedby="react-cc-18-info"
|
|
61
|
+
maxlength="50"
|
|
62
|
+
></textarea>
|
|
63
|
+
</div>
|
|
64
|
+
<span id="react-cc-18-info" class="usa-character-count__message"
|
|
65
|
+
>You can enter up to 50 characters</span
|
|
66
|
+
>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<h3 class="site-preview-heading">With Hint</h3>
|
|
70
|
+
<div class="usa-character-count usx-character-count">
|
|
71
|
+
<div class="usa-form-group usx-form-group">
|
|
72
|
+
<label class="usa-label usx-label" for="react-cc-3">Text input with hint</label
|
|
73
|
+
><span class="usa-hint usx-hint" id="react-cc-3-hint">You can enter up to 25 characters.</span
|
|
74
|
+
><input
|
|
75
|
+
id="react-cc-3"
|
|
76
|
+
class="usa-input usx-input usa-character-count__field"
|
|
77
|
+
placeholder=""
|
|
78
|
+
aria-describedby="react-cc-3-info react-cc-3-hint"
|
|
79
|
+
maxlength="25"
|
|
80
|
+
/>
|
|
81
|
+
</div>
|
|
82
|
+
<span id="react-cc-3-info" class="usa-character-count__message"
|
|
83
|
+
>You can enter up to 25 characters</span
|
|
84
|
+
>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<h3 class="site-preview-heading">Text Area With Hint</h3>
|
|
88
|
+
<div class="usa-character-count usx-character-count">
|
|
89
|
+
<div class="usa-form-group usx-form-group">
|
|
90
|
+
<label class="usa-label usx-label" for="react-cc-2">Text area with hint</label
|
|
91
|
+
><span class="usa-hint usx-hint" id="react-cc-2-hint">You can enter up to 50 characters.</span
|
|
92
|
+
><textarea
|
|
93
|
+
id="react-cc-2"
|
|
94
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
95
|
+
placeholder=""
|
|
96
|
+
aria-describedby="react-cc-2-info react-cc-2-hint"
|
|
97
|
+
maxlength="50"
|
|
98
|
+
></textarea>
|
|
99
|
+
</div>
|
|
100
|
+
<span id="react-cc-2-info" class="usa-character-count__message"
|
|
101
|
+
>You can enter up to 50 characters</span
|
|
102
|
+
>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
<h3 class="site-preview-heading">Required</h3>
|
|
106
|
+
<div class="usa-character-count usx-character-count">
|
|
107
|
+
<div class="usa-form-group usx-form-group">
|
|
108
|
+
<label class="usa-label usx-label" for="react-cc-6"
|
|
109
|
+
><abbr title="Required" class="usx-required">*</abbr> Required field</label
|
|
110
|
+
><input
|
|
111
|
+
id="react-cc-6"
|
|
112
|
+
class="usa-input usx-input usa-character-count__field"
|
|
113
|
+
placeholder=""
|
|
114
|
+
required=""
|
|
115
|
+
aria-describedby="react-cc-6-info"
|
|
116
|
+
maxlength="25"
|
|
117
|
+
/>
|
|
118
|
+
</div>
|
|
119
|
+
<span id="react-cc-6-info" class="usa-character-count__message"
|
|
120
|
+
>You can enter up to 25 characters</span
|
|
121
|
+
>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
<h3 class="site-preview-heading">Text Area Required</h3>
|
|
125
|
+
<div class="usa-character-count usx-character-count">
|
|
126
|
+
<div class="usa-form-group usx-form-group">
|
|
127
|
+
<label class="usa-label usx-label" for="react-cc-5"
|
|
128
|
+
><abbr title="Required" class="usx-required">*</abbr> Text area required field</label
|
|
129
|
+
><textarea
|
|
130
|
+
id="react-cc-5"
|
|
131
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
132
|
+
placeholder=""
|
|
133
|
+
required=""
|
|
134
|
+
aria-describedby="react-cc-5-info"
|
|
135
|
+
maxlength="50"
|
|
136
|
+
></textarea>
|
|
137
|
+
</div>
|
|
138
|
+
<span id="react-cc-5-info" class="usa-character-count__message"
|
|
139
|
+
>You can enter up to 50 characters</span
|
|
140
|
+
>
|
|
141
|
+
</div>
|
|
142
|
+
|
|
143
|
+
<h3 class="site-preview-heading">Success State</h3>
|
|
144
|
+
<div class="usa-character-count usx-character-count">
|
|
145
|
+
<div class="usa-form-group usx-form-group">
|
|
146
|
+
<label class="usa-label usx-label" for="react-cc-7">Success state</label
|
|
147
|
+
><input
|
|
148
|
+
id="react-cc-7"
|
|
149
|
+
class="usa-input usx-input usa-input--success usa-character-count__field"
|
|
150
|
+
placeholder=""
|
|
151
|
+
aria-describedby="react-cc-7-info"
|
|
152
|
+
maxlength="25"
|
|
153
|
+
/>
|
|
154
|
+
</div>
|
|
155
|
+
<span id="react-cc-7-info" class="usa-character-count__message"
|
|
156
|
+
>You can enter up to 25 characters</span
|
|
157
|
+
>
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
<h3 class="site-preview-heading">Text Area Success State</h3>
|
|
161
|
+
<div class="usa-character-count usx-character-count">
|
|
162
|
+
<div class="usa-form-group usx-form-group">
|
|
163
|
+
<label class="usa-label usx-label" for="react-cc-8">Text area success state</label
|
|
164
|
+
><textarea
|
|
165
|
+
id="react-cc-8"
|
|
166
|
+
class="usa-textarea usx-textarea usa-input--success usa-character-count__field"
|
|
167
|
+
placeholder=""
|
|
168
|
+
aria-describedby="react-cc-8-info"
|
|
169
|
+
maxlength="50"
|
|
170
|
+
></textarea>
|
|
171
|
+
</div>
|
|
172
|
+
<span id="react-cc-8-info" class="usa-character-count__message"
|
|
173
|
+
>You can enter up to 50 characters</span
|
|
174
|
+
>
|
|
175
|
+
</div>
|
|
176
|
+
|
|
177
|
+
<h3 class="site-preview-heading">Error State</h3>
|
|
178
|
+
<div class="usa-character-count usx-character-count">
|
|
179
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
180
|
+
<label class="usa-label usx-label usa-label--error" for="react-cc-9">Error state</label
|
|
181
|
+
><span class="usa-error-message usx-error-message" role="alert" id="react-cc-9-error"
|
|
182
|
+
>This field has an error.</span
|
|
183
|
+
><input
|
|
184
|
+
id="react-cc-9"
|
|
185
|
+
class="usa-input usx-input usa-input--error usa-character-count__field"
|
|
186
|
+
placeholder=""
|
|
187
|
+
aria-describedby="react-cc-9-info react-cc-9-error"
|
|
188
|
+
aria-invalid="true"
|
|
189
|
+
maxlength="25"
|
|
190
|
+
/>
|
|
191
|
+
</div>
|
|
192
|
+
<span id="react-cc-9-info" class="usa-character-count__message"
|
|
193
|
+
>You can enter up to 25 characters</span
|
|
194
|
+
>
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
<h3 class="site-preview-heading">Text Area Error State</h3>
|
|
198
|
+
<div class="usa-character-count usx-character-count">
|
|
199
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
200
|
+
<label class="usa-label usx-label usa-label--error" for="react-cc-10"
|
|
201
|
+
>Text area error state</label
|
|
202
|
+
><span class="usa-error-message usx-error-message" role="alert" id="react-cc-10-error"
|
|
203
|
+
>This field has an error.</span
|
|
204
|
+
><textarea
|
|
205
|
+
id="react-cc-10"
|
|
206
|
+
class="usa-textarea usx-textarea usa-input--error usa-character-count__field"
|
|
207
|
+
placeholder=""
|
|
208
|
+
aria-describedby="react-cc-10-info react-cc-10-error"
|
|
209
|
+
aria-invalid="true"
|
|
210
|
+
maxlength="50"
|
|
211
|
+
></textarea>
|
|
212
|
+
</div>
|
|
213
|
+
<span id="react-cc-10-info" class="usa-character-count__message"
|
|
214
|
+
>You can enter up to 50 characters</span
|
|
215
|
+
>
|
|
216
|
+
</div>
|
|
217
|
+
|
|
218
|
+
<h3 class="site-preview-heading">Disabled</h3>
|
|
219
|
+
<div class="usa-character-count usx-character-count">
|
|
220
|
+
<div class="usa-form-group usx-form-group">
|
|
221
|
+
<label class="usa-label usx-label" for="react-cc-12">Disabled field</label
|
|
222
|
+
><input
|
|
223
|
+
id="react-cc-12"
|
|
224
|
+
class="usa-input usx-input usa-character-count__field"
|
|
225
|
+
placeholder=""
|
|
226
|
+
disabled=""
|
|
227
|
+
aria-describedby="react-cc-12-info"
|
|
228
|
+
maxlength="25"
|
|
229
|
+
/>
|
|
230
|
+
</div>
|
|
231
|
+
<span id="react-cc-12-info" class="usa-character-count__message"
|
|
232
|
+
>You can enter up to 25 characters</span
|
|
233
|
+
>
|
|
234
|
+
</div>
|
|
235
|
+
|
|
236
|
+
<h3 class="site-preview-heading">Text Area Disabled</h3>
|
|
237
|
+
<div class="usa-character-count usx-character-count">
|
|
238
|
+
<div class="usa-form-group usx-form-group">
|
|
239
|
+
<label class="usa-label usx-label" for="react-cc-14">Text area disabled field</label
|
|
240
|
+
><textarea
|
|
241
|
+
id="react-cc-14"
|
|
242
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
243
|
+
placeholder=""
|
|
244
|
+
disabled=""
|
|
245
|
+
aria-describedby="react-cc-14-info"
|
|
246
|
+
maxlength="50"
|
|
247
|
+
></textarea>
|
|
248
|
+
</div>
|
|
249
|
+
<span id="react-cc-14-info" class="usa-character-count__message"
|
|
250
|
+
>You can enter up to 50 characters</span
|
|
251
|
+
>
|
|
252
|
+
</div>
|
|
253
|
+
|
|
254
|
+
<h3 class="site-preview-heading">Default Value</h3>
|
|
255
|
+
<div class="usa-character-count usx-character-count">
|
|
256
|
+
<div class="usa-form-group usx-form-group">
|
|
257
|
+
<label class="usa-label usx-label" for="react-cc-11">Pre-filled with default value</label
|
|
258
|
+
><input
|
|
259
|
+
id="react-cc-11"
|
|
260
|
+
class="usa-input usx-input usa-character-count__field"
|
|
261
|
+
placeholder=""
|
|
262
|
+
aria-describedby="react-cc-11-info"
|
|
263
|
+
maxlength="25"
|
|
264
|
+
value="Default value"
|
|
265
|
+
/>
|
|
266
|
+
</div>
|
|
267
|
+
<span id="react-cc-11-info" class="usa-character-count__message"
|
|
268
|
+
>You can enter up to 25 characters</span
|
|
269
|
+
>
|
|
270
|
+
</div>
|
|
271
|
+
|
|
272
|
+
<h3 class="site-preview-heading">Text Area Default Value</h3>
|
|
273
|
+
<div class="usa-character-count usx-character-count">
|
|
274
|
+
<div class="usa-form-group usx-form-group">
|
|
275
|
+
<label class="usa-label usx-label" for="react-cc-15"
|
|
276
|
+
>Text area pre-filled with default value</label
|
|
277
|
+
><textarea
|
|
278
|
+
id="react-cc-15"
|
|
279
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
280
|
+
placeholder=""
|
|
281
|
+
aria-describedby="react-cc-15-info"
|
|
282
|
+
maxlength="50"
|
|
283
|
+
>
|
|
284
|
+
Default value</textarea
|
|
285
|
+
>
|
|
286
|
+
</div>
|
|
287
|
+
<span id="react-cc-15-info" class="usa-character-count__message"
|
|
288
|
+
>You can enter up to 50 characters</span
|
|
289
|
+
>
|
|
290
|
+
</div>
|
|
291
|
+
|
|
292
|
+
<h3 class="site-preview-heading">Default Value Over Limit</h3>
|
|
293
|
+
<div class="usa-alert usx-alert usa-alert--warning" role="region" aria-label="Known Issue">
|
|
294
|
+
<div class="usa-alert__body">
|
|
295
|
+
<h4 class="usa-alert__heading">Known Issue</h4>
|
|
296
|
+
<div class="usa-alert__text">
|
|
297
|
+
USWDS does not currently handle the case where a default value exceeds the character limit.<br />An
|
|
298
|
+
issue has been filed to address this.
|
|
299
|
+
</div>
|
|
300
|
+
</div>
|
|
301
|
+
</div>
|
|
302
|
+
<div class="usa-character-count usx-character-count">
|
|
303
|
+
<div class="usa-form-group usx-form-group">
|
|
304
|
+
<label class="usa-label usx-label" for="react-cc-13">Pre-filled, already over the limit</label
|
|
305
|
+
><input
|
|
306
|
+
id="react-cc-13"
|
|
307
|
+
class="usa-input usx-input usa-character-count__field"
|
|
308
|
+
placeholder=""
|
|
309
|
+
aria-describedby="react-cc-13-info"
|
|
310
|
+
maxlength="25"
|
|
311
|
+
value="This default value is already way too long for the limit."
|
|
312
|
+
/>
|
|
313
|
+
</div>
|
|
314
|
+
<span id="react-cc-13-info" class="usa-character-count__message"
|
|
315
|
+
>You can enter up to 25 characters</span
|
|
316
|
+
>
|
|
317
|
+
</div>
|
|
318
|
+
|
|
319
|
+
<h3 class="site-preview-heading">Text Area Default Value Over Limit</h3>
|
|
320
|
+
<div class="usa-alert usx-alert usa-alert--warning" role="region" aria-label="Known Issue">
|
|
321
|
+
<div class="usa-alert__body">
|
|
322
|
+
<h4 class="usa-alert__heading">Known Issue</h4>
|
|
323
|
+
<div class="usa-alert__text">
|
|
324
|
+
USWDS does not currently handle the case where a default value exceeds the character limit.<br />An
|
|
325
|
+
issue has been filed to address this.
|
|
326
|
+
</div>
|
|
327
|
+
</div>
|
|
328
|
+
</div>
|
|
329
|
+
<div class="usa-character-count usx-character-count">
|
|
330
|
+
<div class="usa-form-group usx-form-group">
|
|
331
|
+
<label class="usa-label usx-label" for="react-cc-16"
|
|
332
|
+
>Text area pre-filled, already over the limit</label
|
|
333
|
+
><textarea
|
|
334
|
+
id="react-cc-16"
|
|
335
|
+
class="usa-textarea usx-textarea usa-character-count__field"
|
|
336
|
+
placeholder=""
|
|
337
|
+
aria-describedby="react-cc-16-info"
|
|
338
|
+
maxlength="50"
|
|
339
|
+
>
|
|
340
|
+
Despite the text area providing more space, this default value is already way too long for the limit.</textarea
|
|
341
|
+
>
|
|
342
|
+
</div>
|
|
343
|
+
<span id="react-cc-16-info" class="usa-character-count__message"
|
|
344
|
+
>You can enter up to 50 characters</span
|
|
345
|
+
>
|
|
346
|
+
</div>
|