@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
|
@@ -4,39 +4,41 @@
|
|
|
4
4
|
<div class="bg-base width-10 height-10"></div>
|
|
5
5
|
</div>
|
|
6
6
|
|
|
7
|
-
<h3 class="site-preview-heading">Tag
|
|
7
|
+
<h3 class="site-preview-heading">Tag Indicator</h3>
|
|
8
8
|
<div class="usx-indicator">
|
|
9
|
-
<span class="usx-indicator-item usa-tag usx-tag bg-primary
|
|
9
|
+
<span class="usx-indicator-item usa-tag usx-tag bg-primary usx-height-min">New</span>
|
|
10
10
|
<div class="bg-base width-10 height-10"></div>
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
13
|
<h3 class="site-preview-heading">For Button</h3>
|
|
14
14
|
<div class="usx-indicator">
|
|
15
|
-
<span class="usx-indicator-item usa-tag usx-tag bg-secondary
|
|
16
|
-
|
|
15
|
+
<span class="usx-indicator-item usa-tag usx-tag bg-secondary usx-height-min">13</span
|
|
16
|
+
><button class="usa-button usx-button usa-button--outline margin-right-0">Inbox</button>
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
<h3 class="site-preview-heading">
|
|
19
|
+
<h3 class="site-preview-heading">Ping</h3>
|
|
20
20
|
<div class="usx-indicator">
|
|
21
21
|
<span class="usx-indicator-item usx-status usx-ping text-success"></span>
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
<div class="usx-avatar">
|
|
23
|
+
<img
|
|
24
|
+
class="usx-avatar__img usx-rounded-sm"
|
|
25
|
+
src="./george_washington.png"
|
|
26
|
+
alt="George Washington"
|
|
27
|
+
role="img"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
29
30
|
</div>
|
|
30
31
|
|
|
31
|
-
<h3 class="site-preview-heading">All
|
|
32
|
+
<h3 class="site-preview-heading">All Positions</h3>
|
|
32
33
|
<div class="usx-indicator">
|
|
33
|
-
<span class="usx-indicator-item usx-indicator-top usx-indicator-start">↖︎</span
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<div class="bg-base" style="height: 100px; width: 100px
|
|
34
|
+
<span class="usx-indicator-item usx-indicator-top usx-indicator-start">↖︎</span
|
|
35
|
+
><span class="usx-indicator-item usx-indicator-top usx-indicator-center">↑</span
|
|
36
|
+
><span class="usx-indicator-item usx-indicator-top usx-indicator-end">↗︎</span
|
|
37
|
+
><span class="usx-indicator-item usx-indicator-middle usx-indicator-start">←</span
|
|
38
|
+
><span class="usx-indicator-item usx-indicator-middle usx-indicator-center">●</span
|
|
39
|
+
><span class="usx-indicator-item usx-indicator-middle usx-indicator-end">→</span
|
|
40
|
+
><span class="usx-indicator-item usx-indicator-bottom usx-indicator-start">↙︎</span
|
|
41
|
+
><span class="usx-indicator-item usx-indicator-bottom usx-indicator-center">↓</span
|
|
42
|
+
><span class="usx-indicator-item usx-indicator-bottom usx-indicator-end">↘︎</span>
|
|
43
|
+
<div class="bg-base" style="height: 100px; width: 100px"></div>
|
|
44
|
+
</div>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<div class="usx-indicator">
|
|
3
|
+
<span class="usx-indicator-item usx-status text-primary"></span>
|
|
4
|
+
<div class="bg-base width-10 height-10"></div>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<h3 class="site-preview-heading">Tag Indicator</h3>
|
|
8
|
+
<div class="usx-indicator">
|
|
9
|
+
<span class="usx-indicator-item usa-tag usx-tag bg-primary usx-height-min">New</span>
|
|
10
|
+
<div class="bg-base width-10 height-10"></div>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<h3 class="site-preview-heading">For Button</h3>
|
|
14
|
+
<div class="usx-indicator">
|
|
15
|
+
<span class="usx-indicator-item usa-tag usx-tag bg-secondary usx-height-min">13</span
|
|
16
|
+
><button class="usa-button usx-button usa-button--outline margin-right-0">Inbox</button>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<h3 class="site-preview-heading">Ping</h3>
|
|
20
|
+
<div class="usx-indicator">
|
|
21
|
+
<span class="usx-indicator-item usx-status usx-ping text-success"></span>
|
|
22
|
+
<div class="usx-avatar">
|
|
23
|
+
<img
|
|
24
|
+
class="usx-avatar__img usx-rounded-sm"
|
|
25
|
+
src="./george_washington.png"
|
|
26
|
+
alt="George Washington"
|
|
27
|
+
role="img"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<h3 class="site-preview-heading">All Positions</h3>
|
|
33
|
+
<div class="usx-indicator">
|
|
34
|
+
<span class="usx-indicator-item usx-indicator-top usx-indicator-start">↖︎</span
|
|
35
|
+
><span class="usx-indicator-item usx-indicator-top usx-indicator-center">↑</span
|
|
36
|
+
><span class="usx-indicator-item usx-indicator-top usx-indicator-end">↗︎</span
|
|
37
|
+
><span class="usx-indicator-item usx-indicator-middle usx-indicator-start">←</span
|
|
38
|
+
><span class="usx-indicator-item usx-indicator-middle usx-indicator-center">●</span
|
|
39
|
+
><span class="usx-indicator-item usx-indicator-middle usx-indicator-end">→</span
|
|
40
|
+
><span class="usx-indicator-item usx-indicator-bottom usx-indicator-start">↙︎</span
|
|
41
|
+
><span class="usx-indicator-item usx-indicator-bottom usx-indicator-center">↓</span
|
|
42
|
+
><span class="usx-indicator-item usx-indicator-bottom usx-indicator-end">↘︎</span>
|
|
43
|
+
<div class="bg-base" style="height: 100px; width: 100px"></div>
|
|
44
|
+
</div>
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "input",
|
|
3
3
|
"template": "input/input.django.html",
|
|
4
|
-
"version":
|
|
4
|
+
"version": 3,
|
|
5
|
+
"default": {
|
|
6
|
+
"id": "example-input-1",
|
|
7
|
+
"label": "Text input label",
|
|
8
|
+
"placeholder": "Type here"
|
|
9
|
+
},
|
|
5
10
|
"props": {
|
|
6
11
|
"label": {
|
|
7
12
|
"type": "slot",
|
|
@@ -18,6 +23,18 @@
|
|
|
18
23
|
"default": null,
|
|
19
24
|
"description": "name attribute for the input. Defaults to id."
|
|
20
25
|
},
|
|
26
|
+
"type": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "The input's type attribute, e.g. email or password. Omit for a plain text input."
|
|
29
|
+
},
|
|
30
|
+
"autoComplete": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "The input's autocomplete attribute, e.g. email."
|
|
33
|
+
},
|
|
34
|
+
"autoFocus": {
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"description": "Focus the input when the page loads."
|
|
37
|
+
},
|
|
21
38
|
"placeholder": {
|
|
22
39
|
"type": "string",
|
|
23
40
|
"default": "Type here",
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<div class="usa-form-group usx-form-group">
|
|
3
|
+
<label class="usa-label usx-label" for="django-example-input-1"> Text input label </label>
|
|
4
|
+
|
|
5
|
+
<input class="usa-input usx-input" id="django-example-input-1" placeholder="Type here" value="" />
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<h3 class="site-preview-heading">With Hint</h3>
|
|
9
|
+
<div class="usa-form-group usx-form-group">
|
|
10
|
+
<label class="usa-label usx-label" for="django-example-input-2"> Input with hint </label>
|
|
11
|
+
|
|
12
|
+
<span class="usa-hint usx-hint" id="django-example-input-2-hint"
|
|
13
|
+
>Enter your full legal name.</span
|
|
14
|
+
>
|
|
15
|
+
|
|
16
|
+
<input
|
|
17
|
+
class="usa-input usx-input"
|
|
18
|
+
id="django-example-input-2"
|
|
19
|
+
placeholder="Type here"
|
|
20
|
+
value=""
|
|
21
|
+
aria-describedby="django-example-input-2-hint"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<h3 class="site-preview-heading">Required</h3>
|
|
26
|
+
<div class="usa-form-group usx-form-group">
|
|
27
|
+
<label class="usa-label usx-label" for="django-example-input-3">
|
|
28
|
+
<abbr title="Required" class="usx-required">*</abbr> Required input
|
|
29
|
+
</label>
|
|
30
|
+
|
|
31
|
+
<input
|
|
32
|
+
class="usa-input usx-input"
|
|
33
|
+
id="django-example-input-3"
|
|
34
|
+
placeholder="Type here"
|
|
35
|
+
value=""
|
|
36
|
+
required
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<h3 class="site-preview-heading">Screen Reader Only Label</h3>
|
|
41
|
+
<div class="usa-form-group usx-form-group">
|
|
42
|
+
<label class="usa-label usx-label usa-sr-only" for="django-example-input-4">
|
|
43
|
+
Visually hidden label
|
|
44
|
+
</label>
|
|
45
|
+
|
|
46
|
+
<input class="usa-input usx-input" id="django-example-input-4" placeholder="Search…" value="" />
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<h3 class="site-preview-heading">Error State</h3>
|
|
50
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
51
|
+
<label class="usa-label usx-label usa-label--error" for="django-example-input-5">
|
|
52
|
+
Error state input
|
|
53
|
+
</label>
|
|
54
|
+
|
|
55
|
+
<span class="usa-error-message usx-error-message" id="django-example-input-5-error" role="alert"
|
|
56
|
+
>Enter a valid email address.</span
|
|
57
|
+
>
|
|
58
|
+
|
|
59
|
+
<input
|
|
60
|
+
class="usa-input usx-input usa-input--error"
|
|
61
|
+
id="django-example-input-5"
|
|
62
|
+
placeholder="Type here"
|
|
63
|
+
value=""
|
|
64
|
+
aria-describedby="django-example-input-5-error"
|
|
65
|
+
aria-invalid="true"
|
|
66
|
+
/>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<h3 class="site-preview-heading">Error State No Message</h3>
|
|
70
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
71
|
+
<label class="usa-label usx-label usa-label--error" for="django-example-input-6">
|
|
72
|
+
Error state (no message)
|
|
73
|
+
</label>
|
|
74
|
+
|
|
75
|
+
<input
|
|
76
|
+
class="usa-input usx-input usa-input--error"
|
|
77
|
+
id="django-example-input-6"
|
|
78
|
+
placeholder="Type here"
|
|
79
|
+
value=""
|
|
80
|
+
aria-invalid="true"
|
|
81
|
+
/>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<h3 class="site-preview-heading">Success State</h3>
|
|
85
|
+
<div class="usa-form-group usx-form-group">
|
|
86
|
+
<label class="usa-label usx-label" for="django-example-input-7"> Success state input </label>
|
|
87
|
+
|
|
88
|
+
<input
|
|
89
|
+
class="usa-input usx-input usa-input--success"
|
|
90
|
+
id="django-example-input-7"
|
|
91
|
+
placeholder="Type here"
|
|
92
|
+
value=""
|
|
93
|
+
/>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
<h3 class="site-preview-heading">Success State No Message</h3>
|
|
97
|
+
<div class="usa-form-group usx-form-group">
|
|
98
|
+
<label class="usa-label usx-label" for="django-example-input-8">
|
|
99
|
+
Success state (no message)
|
|
100
|
+
</label>
|
|
101
|
+
|
|
102
|
+
<input
|
|
103
|
+
class="usa-input usx-input usa-input--success"
|
|
104
|
+
id="django-example-input-8"
|
|
105
|
+
placeholder="Type here"
|
|
106
|
+
value=""
|
|
107
|
+
/>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<h3 class="site-preview-heading">Disabled</h3>
|
|
111
|
+
<div class="usa-form-group usx-form-group">
|
|
112
|
+
<label class="usa-label usx-label" for="django-example-input-9"> Disabled input </label>
|
|
113
|
+
|
|
114
|
+
<input
|
|
115
|
+
class="usa-input usx-input"
|
|
116
|
+
id="django-example-input-9"
|
|
117
|
+
placeholder="Type here"
|
|
118
|
+
value=""
|
|
119
|
+
disabled
|
|
120
|
+
/>
|
|
121
|
+
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% load
|
|
1
|
+
{% load usx_components %}
|
|
2
2
|
|
|
3
3
|
{% with id|default:"input" as field_id %}
|
|
4
4
|
{% with formGroup|default_if_none:True as wrap_group %}
|
|
@@ -11,20 +11,24 @@
|
|
|
11
11
|
{% if hint %}
|
|
12
12
|
{% hint id=field_id|add:"-hint" %}{{ hint }}{% endhint %}
|
|
13
13
|
{% endif %}
|
|
14
|
-
{% if error %}
|
|
14
|
+
{% if error and error != "true" and error != True and error != "false" %}
|
|
15
15
|
{% error_message id=field_id|add:"-error" %}{{ error }}{% enderror_message %}
|
|
16
16
|
{% endif %}
|
|
17
17
|
<input
|
|
18
18
|
class="usa-input usx-input{% if error %} usa-input--error{% elif success %} usa-input--success{% endif %}{% if className %} {{ className }}{% endif %}"
|
|
19
19
|
id="{{ field_id }}"
|
|
20
|
-
|
|
20
|
+
{% if name %}name="{{ name }}" {% endif %}
|
|
21
|
+
{% if type %}type="{{ type }}" {% endif %}
|
|
22
|
+
{% if autoComplete %}autocomplete="{{ autoComplete }}" {% endif %}
|
|
23
|
+
placeholder="{% if placeholder is None %}Type here{% else %}{{ placeholder }}{% endif %}"
|
|
21
24
|
value="{{ value|default:'' }}"
|
|
22
25
|
{% if maxlength %}maxlength="{{ maxlength }}" {% endif %}
|
|
23
|
-
{% if hint or
|
|
26
|
+
{% if hint or describedBy or error and error != "true" and error != True and error != "false" %}aria-describedby="{% if describedBy %}{{ describedBy }} {% endif %}{% if hint %}{{ field_id }}-hint {% endif %}{% if error and error != "true" and error != True and error != "false" %}{{ field_id }}-error {% endif %}"
|
|
24
27
|
{% endif %}
|
|
25
28
|
{% if error %}aria-invalid="true" {% endif %}
|
|
26
29
|
{% if disabled %}disabled {% endif %}
|
|
27
30
|
{% if required %}required{% endif %}
|
|
31
|
+
{% if autoFocus %}autofocus{% endif %}
|
|
28
32
|
/>
|
|
29
33
|
{% endform_group %}
|
|
30
34
|
{% else %}
|
|
@@ -34,22 +38,26 @@
|
|
|
34
38
|
{% if hint %}
|
|
35
39
|
{% hint id=field_id|add:"-hint" %}{{ hint }}{% endhint %}
|
|
36
40
|
{% endif %}
|
|
37
|
-
{% if error %}
|
|
41
|
+
{% if error and error != "true" and error != True and error != "false" %}
|
|
38
42
|
{% error_message id=field_id|add:"-error" %}{{ error }}{% enderror_message %}
|
|
39
43
|
{% endif %}
|
|
40
44
|
<input
|
|
41
45
|
class="usa-input usx-input{% if error %} usa-input--error{% elif success %} usa-input--success{% endif %}{% if className %} {{ className }}{% endif %}"
|
|
42
46
|
id="{{ field_id }}"
|
|
43
|
-
|
|
47
|
+
{% if name %}name="{{ name }}" {% endif %}
|
|
48
|
+
{% if type %}type="{{ type }}" {% endif %}
|
|
49
|
+
{% if autoComplete %}autocomplete="{{ autoComplete }}" {% endif %}
|
|
50
|
+
placeholder="{% if placeholder is None %}Type here{% else %}{{ placeholder }}{% endif %}"
|
|
44
51
|
value="{{ value|default:'' }}"
|
|
45
52
|
{% if maxlength %}maxlength="{{ maxlength }}" {% endif %}
|
|
46
|
-
{% if hint or
|
|
53
|
+
{% if hint or describedBy or error and error != "true" and error != True and error != "false" %}aria-describedby="{% if describedBy %}{{ describedBy }} {% endif %}{% if hint %}{{ field_id }}-hint {% endif %}{% if error and error != "true" and error != True and error != "false" %}{{ field_id }}-error {% endif %}"
|
|
47
54
|
{% endif %}
|
|
48
55
|
{% if error %}aria-invalid="true" {% endif %}
|
|
49
56
|
{% if disabled %}disabled {% endif %}
|
|
50
57
|
{% if required %}required{% endif %}
|
|
58
|
+
{% if autoFocus %}autofocus{% endif %}
|
|
51
59
|
/>
|
|
52
60
|
{% endif %}
|
|
53
61
|
|
|
54
62
|
{% endwith %}
|
|
55
|
-
{% endwith %}
|
|
63
|
+
{% endwith %}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<div class="usa-form-group usx-form-group">
|
|
3
|
+
<label class="usa-label usx-label" for="react-example-input-1">Text input label</label
|
|
4
|
+
><input id="react-example-input-1" class="usa-input usx-input" placeholder="Type here" />
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<h3 class="site-preview-heading">With Hint</h3>
|
|
8
|
+
<div class="usa-form-group usx-form-group">
|
|
9
|
+
<label class="usa-label usx-label" for="react-example-input-2">Input with hint</label
|
|
10
|
+
><span class="usa-hint usx-hint" id="react-example-input-2-hint">Enter your full legal name.</span
|
|
11
|
+
><input
|
|
12
|
+
id="react-example-input-2"
|
|
13
|
+
class="usa-input usx-input"
|
|
14
|
+
placeholder="Type here"
|
|
15
|
+
aria-describedby="react-example-input-2-hint"
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<h3 class="site-preview-heading">Required</h3>
|
|
20
|
+
<div class="usa-form-group usx-form-group">
|
|
21
|
+
<label class="usa-label usx-label" for="react-example-input-3"
|
|
22
|
+
><abbr title="Required" class="usx-required">*</abbr> Required input</label
|
|
23
|
+
><input
|
|
24
|
+
id="react-example-input-3"
|
|
25
|
+
class="usa-input usx-input"
|
|
26
|
+
placeholder="Type here"
|
|
27
|
+
required=""
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<h3 class="site-preview-heading">Screen Reader Only Label</h3>
|
|
32
|
+
<div class="usa-form-group usx-form-group">
|
|
33
|
+
<label class="usa-label usx-label usa-sr-only" for="react-example-input-4"
|
|
34
|
+
>Visually hidden label</label
|
|
35
|
+
><input id="react-example-input-4" class="usa-input usx-input" placeholder="Search…" />
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<h3 class="site-preview-heading">Error State</h3>
|
|
39
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
40
|
+
<label class="usa-label usx-label usa-label--error" for="react-example-input-5"
|
|
41
|
+
>Error state input</label
|
|
42
|
+
><span class="usa-error-message usx-error-message" role="alert" id="react-example-input-5-error"
|
|
43
|
+
>Enter a valid email address.</span
|
|
44
|
+
><input
|
|
45
|
+
id="react-example-input-5"
|
|
46
|
+
class="usa-input usx-input usa-input--error"
|
|
47
|
+
placeholder="Type here"
|
|
48
|
+
aria-describedby="react-example-input-5-error"
|
|
49
|
+
aria-invalid="true"
|
|
50
|
+
/>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<h3 class="site-preview-heading">Error State No Message</h3>
|
|
54
|
+
<div class="usa-form-group usx-form-group usa-form-group--error">
|
|
55
|
+
<label class="usa-label usx-label usa-label--error" for="react-example-input-6"
|
|
56
|
+
>Error state (no message)</label
|
|
57
|
+
><input
|
|
58
|
+
id="react-example-input-6"
|
|
59
|
+
class="usa-input usx-input usa-input--error"
|
|
60
|
+
placeholder="Type here"
|
|
61
|
+
aria-invalid="true"
|
|
62
|
+
/>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<h3 class="site-preview-heading">Success State</h3>
|
|
66
|
+
<div class="usa-form-group usx-form-group">
|
|
67
|
+
<label class="usa-label usx-label" for="react-example-input-7">Success state input</label
|
|
68
|
+
><input
|
|
69
|
+
id="react-example-input-7"
|
|
70
|
+
class="usa-input usx-input usa-input--success"
|
|
71
|
+
placeholder="Type here"
|
|
72
|
+
/>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<h3 class="site-preview-heading">Success State No Message</h3>
|
|
76
|
+
<div class="usa-form-group usx-form-group">
|
|
77
|
+
<label class="usa-label usx-label" for="react-example-input-8">Success state (no message)</label
|
|
78
|
+
><input
|
|
79
|
+
id="react-example-input-8"
|
|
80
|
+
class="usa-input usx-input usa-input--success"
|
|
81
|
+
placeholder="Type here"
|
|
82
|
+
/>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<h3 class="site-preview-heading">Disabled</h3>
|
|
86
|
+
<div class="usa-form-group usx-form-group">
|
|
87
|
+
<label class="usa-label usx-label" for="react-example-input-9">Disabled input</label
|
|
88
|
+
><input
|
|
89
|
+
id="react-example-input-9"
|
|
90
|
+
class="usa-input usx-input"
|
|
91
|
+
placeholder="Type here"
|
|
92
|
+
disabled=""
|
|
93
|
+
/>
|
|
94
|
+
</div>
|
|
@@ -3,6 +3,7 @@ import ClassNames from 'classnames';
|
|
|
3
3
|
import Required from '../required/Required';
|
|
4
4
|
|
|
5
5
|
export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
6
|
+
id?: string;
|
|
6
7
|
htmlFor?: string;
|
|
7
8
|
required?: boolean;
|
|
8
9
|
error?: unknown;
|
|
@@ -13,6 +14,7 @@ export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export default function Label({
|
|
17
|
+
id,
|
|
16
18
|
htmlFor,
|
|
17
19
|
required = false,
|
|
18
20
|
error = false,
|
|
@@ -31,8 +33,9 @@ export default function Label({
|
|
|
31
33
|
|
|
32
34
|
return (
|
|
33
35
|
<label
|
|
36
|
+
id={id || undefined}
|
|
34
37
|
className={classOverride ? className : classes}
|
|
35
|
-
|
|
38
|
+
htmlFor={htmlFor || undefined}
|
|
36
39
|
{...props}
|
|
37
40
|
>
|
|
38
41
|
{required && <Required />}
|
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
"name": "label",
|
|
3
3
|
"template": "label/label.django.html",
|
|
4
4
|
"version": 2,
|
|
5
|
+
"default": {
|
|
6
|
+
"children": "Label Text"
|
|
7
|
+
},
|
|
5
8
|
"props": {
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "ID of the label element"
|
|
12
|
+
},
|
|
6
13
|
"htmlFor": {
|
|
7
14
|
"type": "string",
|
|
8
15
|
"description": "ID of the form element this label is associated with"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<label class="usa-label usx-label"> Label Text </label>
|
|
3
|
+
|
|
4
|
+
<h3 class="site-preview-heading">With Required</h3>
|
|
5
|
+
<label class="usa-label usx-label">
|
|
6
|
+
<abbr title="Required" class="usx-required">*</abbr> Label Text
|
|
7
|
+
</label>
|
|
8
|
+
|
|
9
|
+
<h3 class="site-preview-heading">Screen Reader Only</h3>
|
|
10
|
+
<label class="usa-label usx-label usa-sr-only"> Label Text </label>
|
|
11
|
+
|
|
12
|
+
<h3 class="site-preview-heading">With Custom Class</h3>
|
|
13
|
+
<label class="usa-label usx-label text-primary"> Label Text </label>
|
|
14
|
+
|
|
15
|
+
<h3 class="site-preview-heading">With Class Override (radio button)</h3>
|
|
16
|
+
<label class="usa-radio__label"> Label Text </label>
|
|
17
|
+
|
|
18
|
+
<h3 class="site-preview-heading">With Class Override (checkbox)</h3>
|
|
19
|
+
<label class="usa-checkbox__label"> Label Text </label>
|
|
20
|
+
|
|
21
|
+
<h3 class="site-preview-heading">Error</h3>
|
|
22
|
+
<label class="usa-label usx-label usa-label--error"> Label Text </label>
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
-
<label class="usa-label usx-label"
|
|
3
|
-
<input id="label-default-input" type="text" />
|
|
2
|
+
<label class="usa-label usx-label">Label Text</label>
|
|
4
3
|
|
|
5
|
-
<h3 class="site-preview-heading">Required</h3>
|
|
6
|
-
<label class="usa-label usx-label"
|
|
7
|
-
|
|
4
|
+
<h3 class="site-preview-heading">With Required</h3>
|
|
5
|
+
<label class="usa-label usx-label"
|
|
6
|
+
><abbr title="Required" class="usx-required">*</abbr> Label Text</label
|
|
7
|
+
>
|
|
8
8
|
|
|
9
|
-
<h3 class="site-preview-heading">Screen
|
|
10
|
-
<label class="usa-label usx-label usa-sr-only"
|
|
11
|
-
<input id="label-sr-input" type="text" aria-label="Hidden label example" />
|
|
9
|
+
<h3 class="site-preview-heading">Screen Reader Only</h3>
|
|
10
|
+
<label class="usa-label usx-label usa-sr-only">Label Text</label>
|
|
12
11
|
|
|
13
|
-
<h3 class="site-preview-heading">With
|
|
14
|
-
<label class="usa-label usx-label
|
|
15
|
-
<input id="label-custom-input" type="text" />
|
|
12
|
+
<h3 class="site-preview-heading">With Custom Class</h3>
|
|
13
|
+
<label class="usa-label usx-label text-primary">Label Text</label>
|
|
16
14
|
|
|
17
|
-
<h3 class="site-preview-heading">Class
|
|
18
|
-
<label class="
|
|
19
|
-
|
|
15
|
+
<h3 class="site-preview-heading">With Class Override (radio button)</h3>
|
|
16
|
+
<label class="usa-radio__label">Label Text</label>
|
|
17
|
+
|
|
18
|
+
<h3 class="site-preview-heading">With Class Override (checkbox)</h3>
|
|
19
|
+
<label class="usa-checkbox__label">Label Text</label>
|
|
20
20
|
|
|
21
21
|
<h3 class="site-preview-heading">Error</h3>
|
|
22
|
-
<label class="usa-label usx-label usa-label--error"
|
|
23
|
-
<input id="label-error-input" type="text" class="usa-input usa-input--error" />
|
|
22
|
+
<label class="usa-label usx-label usa-label--error">Label Text</label>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<label class="usa-label usx-label">Label Text</label>
|
|
3
|
+
|
|
4
|
+
<h3 class="site-preview-heading">With Required</h3>
|
|
5
|
+
<label class="usa-label usx-label"
|
|
6
|
+
><abbr title="Required" class="usx-required">*</abbr> Label Text</label
|
|
7
|
+
>
|
|
8
|
+
|
|
9
|
+
<h3 class="site-preview-heading">Screen Reader Only</h3>
|
|
10
|
+
<label class="usa-label usx-label usa-sr-only">Label Text</label>
|
|
11
|
+
|
|
12
|
+
<h3 class="site-preview-heading">With Custom Class</h3>
|
|
13
|
+
<label class="usa-label usx-label text-primary">Label Text</label>
|
|
14
|
+
|
|
15
|
+
<h3 class="site-preview-heading">With Class Override (radio button)</h3>
|
|
16
|
+
<label class="usa-radio__label">Label Text</label>
|
|
17
|
+
|
|
18
|
+
<h3 class="site-preview-heading">With Class Override (checkbox)</h3>
|
|
19
|
+
<label class="usa-checkbox__label">Label Text</label>
|
|
20
|
+
|
|
21
|
+
<h3 class="site-preview-heading">Error</h3>
|
|
22
|
+
<label class="usa-label usx-label usa-label--error">Label Text</label>
|
|
@@ -4,30 +4,26 @@
|
|
|
4
4
|
"version": 2,
|
|
5
5
|
"default": {
|
|
6
6
|
"variant": "menu",
|
|
7
|
+
"id": "language-options-default",
|
|
8
|
+
"label": "Languages",
|
|
7
9
|
"languages": [
|
|
8
10
|
{
|
|
9
11
|
"code": "en",
|
|
10
12
|
"label": "English",
|
|
13
|
+
"href": "https://example.com/en",
|
|
11
14
|
"current": true
|
|
12
15
|
},
|
|
13
16
|
{
|
|
14
17
|
"code": "es",
|
|
15
18
|
"label": "Español",
|
|
16
|
-
"description": "Spanish"
|
|
19
|
+
"description": "Spanish",
|
|
20
|
+
"href": "https://example.com/es"
|
|
17
21
|
},
|
|
18
22
|
{
|
|
19
|
-
"code": "
|
|
20
|
-
"label": "
|
|
21
|
-
"description": "
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
"code": "zh",
|
|
25
|
-
"label": "简体字",
|
|
26
|
-
"description": "Chinese – Simplified"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"label": "Selected content in additional languages",
|
|
30
|
-
"plain": true
|
|
23
|
+
"code": "fr",
|
|
24
|
+
"label": "Français",
|
|
25
|
+
"description": "French",
|
|
26
|
+
"href": "https://example.com/fr"
|
|
31
27
|
}
|
|
32
28
|
]
|
|
33
29
|
},
|