@solexllc/usx-react 0.7.0 → 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 +671 -428
- package/dist/index.js +671 -428
- package/package.json +2 -2
- 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 +471 -566
- 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.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.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.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.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.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 -4
- package/src/components/callout/callout.django-snapshot.html +59 -0
- package/src/components/callout/callout.django.html +1 -1
- package/src/components/callout/callout.react-snapshot.html +57 -0
- package/src/components/callout/config.json +5 -2
- package/src/components/card/Card.tsx +2 -2
- package/src/components/card/card.django-snapshot.html +1198 -0
- package/src/components/card/card.django.html +3 -3
- package/src/components/card/card.react-snapshot.html +1028 -0
- package/src/components/card/config.json +21 -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.react-snapshot.html +445 -0
- package/src/components/card-group/config.json +80 -2
- package/src/components/carousel/Carousel.tsx +3 -0
- package/src/components/carousel/carousel.django-snapshot.html +927 -0
- package/src/components/carousel/carousel.django.html +2 -2
- package/src/components/carousel/carousel.react-snapshot.html +762 -0
- package/src/components/carousel/config.json +18 -0
- 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.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.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.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.react-snapshot.html +194 -0
- package/src/components/clickable/config.json +9 -7
- package/src/components/code/code.django-snapshot.html +375 -0
- package/src/components/code/code.django.html +1 -1
- package/src/components/code/code.html +201 -38
- package/src/components/code/code.react-snapshot.html +249 -0
- package/src/components/code/config.json +18 -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.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.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.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.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 +8 -28
- package/src/components/details/config.json +11 -28
- package/src/components/details/details.django-snapshot.html +238 -0
- package/src/components/details/details.django.html +7 -4
- package/src/components/details/details.html +72 -43
- 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.react-snapshot.html +12 -0
- package/src/components/error-page/config.json +3 -2
- package/src/components/error-page/error-page.django-snapshot.html +570 -0
- package/src/components/error-page/error-page.django.html +2 -2
- package/src/components/error-page/error-page.html +2 -2
- 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.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.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 +246 -286
- 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.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 +21 -21
- 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 +54 -54
- 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 +13 -14
- 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.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 +2 -2
- package/src/components/identifier/identifier.react-snapshot.html +959 -0
- 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 +1 -1
- package/src/components/image/image.html +4 -4
- 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.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.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.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.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.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.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 +2 -3
- package/src/components/page/config.json +11 -2
- package/src/components/page/page.django-snapshot.html +44 -0
- package/src/components/page/page.django.html +4 -2
- 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.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.react-snapshot.html +250 -0
- package/src/components/quote/Quote.tsx +2 -2
- package/src/components/quote/config.json +5 -2
- package/src/components/quote/quote.django-snapshot.html +348 -0
- package/src/components/quote/quote.django.html +2 -2
- 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.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.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.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.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.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.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.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.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 +1 -1
- 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.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.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.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.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 +318 -323
- 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 +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solexllc/usx-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "React component library for USX.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@solexllc/usx": "0.
|
|
28
|
+
"@solexllc/usx": "0.10.0",
|
|
29
29
|
"@solexllc/usx-theme": "0.10.0",
|
|
30
30
|
"@solexllc/usx-uswds-fixes": "0.1.14",
|
|
31
31
|
"classnames": "^2.5.1",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
|
|
4
|
-
export type
|
|
4
|
+
export type AccordionHeadingAs = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
5
5
|
|
|
6
6
|
export interface AccordionItemProps {
|
|
7
7
|
title: React.ReactNode;
|
|
@@ -10,7 +10,7 @@ export interface AccordionItemProps {
|
|
|
10
10
|
expanded?: boolean;
|
|
11
11
|
headingClassName?: string;
|
|
12
12
|
contentClassName?: string;
|
|
13
|
-
|
|
13
|
+
headingAs?: AccordionHeadingAs;
|
|
14
14
|
handleToggle?: React.MouseEventHandler<HTMLButtonElement>;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ export interface AccordionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
18
18
|
bordered?: boolean;
|
|
19
19
|
items?: AccordionItemProps[];
|
|
20
20
|
multiselectable?: boolean;
|
|
21
|
-
|
|
21
|
+
headingAs?: AccordionHeadingAs;
|
|
22
22
|
iconPosition?: 'start' | 'end';
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -29,7 +29,7 @@ function AccordionItem({
|
|
|
29
29
|
expanded = false,
|
|
30
30
|
headingClassName,
|
|
31
31
|
contentClassName,
|
|
32
|
-
|
|
32
|
+
headingAs = 'h3',
|
|
33
33
|
handleToggle,
|
|
34
34
|
}: AccordionItemProps) {
|
|
35
35
|
const headingClasses = classnames('usa-accordion__heading', headingClassName)
|
|
@@ -39,7 +39,7 @@ function AccordionItem({
|
|
|
39
39
|
contentClassName
|
|
40
40
|
)
|
|
41
41
|
|
|
42
|
-
const Heading =
|
|
42
|
+
const Heading = headingAs
|
|
43
43
|
|
|
44
44
|
return (
|
|
45
45
|
<>
|
|
@@ -49,7 +49,6 @@ function AccordionItem({
|
|
|
49
49
|
className="usa-accordion__button"
|
|
50
50
|
aria-expanded={expanded}
|
|
51
51
|
aria-controls={`${id}-content`}
|
|
52
|
-
data-testid={`accordionButton_${id}`}
|
|
53
52
|
onClick={handleToggle}>
|
|
54
53
|
{title}
|
|
55
54
|
</button>
|
|
@@ -57,7 +56,6 @@ function AccordionItem({
|
|
|
57
56
|
<div
|
|
58
57
|
id={`${id}-content`}
|
|
59
58
|
aria-labelledby={`${id}-heading`}
|
|
60
|
-
data-testid={`accordionItem_${id}`}
|
|
61
59
|
className={contentClasses}
|
|
62
60
|
hidden={!expanded}>
|
|
63
61
|
{content}
|
|
@@ -71,7 +69,7 @@ export function Accordion({
|
|
|
71
69
|
bordered = false,
|
|
72
70
|
items = [],
|
|
73
71
|
multiselectable = false,
|
|
74
|
-
|
|
72
|
+
headingAs = 'h3',
|
|
75
73
|
iconPosition,
|
|
76
74
|
className = '',
|
|
77
75
|
headingClassName = '',
|
|
@@ -98,7 +96,7 @@ export function Accordion({
|
|
|
98
96
|
<AccordionItem
|
|
99
97
|
key={item.id}
|
|
100
98
|
{...item}
|
|
101
|
-
|
|
99
|
+
headingAs={headingAs}
|
|
102
100
|
headingClassName={headingClassName}
|
|
103
101
|
contentClassName={contentClassName}
|
|
104
102
|
/>
|
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">Default</h3>
|
|
2
|
+
<div id="django-accordion-default" class="usa-accordion usx-accordion">
|
|
3
|
+
<h3 id="django-accordion-default-accordion-default-item-1-heading" class="usa-accordion__heading">
|
|
4
|
+
<button
|
|
5
|
+
class="usa-accordion__button"
|
|
6
|
+
aria-expanded="false"
|
|
7
|
+
aria-controls="django-accordion-default-accordion-default-item-1-content"
|
|
8
|
+
type="button"
|
|
9
|
+
>
|
|
10
|
+
Accordion Item 1
|
|
11
|
+
</button>
|
|
12
|
+
</h3>
|
|
13
|
+
|
|
14
|
+
<div
|
|
15
|
+
id="django-accordion-default-accordion-default-item-1-content"
|
|
16
|
+
class="usa-accordion__content usa-prose"
|
|
17
|
+
aria-labelledby="django-accordion-default-accordion-default-item-1-heading"
|
|
18
|
+
hidden
|
|
19
|
+
>
|
|
20
|
+
Content for accordion item 1.
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<h3 id="django-accordion-default-accordion-default-item-2-heading" class="usa-accordion__heading">
|
|
24
|
+
<button
|
|
25
|
+
class="usa-accordion__button"
|
|
26
|
+
aria-expanded="false"
|
|
27
|
+
aria-controls="django-accordion-default-accordion-default-item-2-content"
|
|
28
|
+
type="button"
|
|
29
|
+
>
|
|
30
|
+
Accordion Item 2
|
|
31
|
+
</button>
|
|
32
|
+
</h3>
|
|
33
|
+
|
|
34
|
+
<div
|
|
35
|
+
id="django-accordion-default-accordion-default-item-2-content"
|
|
36
|
+
class="usa-accordion__content usa-prose"
|
|
37
|
+
aria-labelledby="django-accordion-default-accordion-default-item-2-heading"
|
|
38
|
+
hidden
|
|
39
|
+
>
|
|
40
|
+
Content for accordion item 2.
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<h3 id="django-accordion-default-accordion-default-item-3-heading" class="usa-accordion__heading">
|
|
44
|
+
<button
|
|
45
|
+
class="usa-accordion__button"
|
|
46
|
+
aria-expanded="false"
|
|
47
|
+
aria-controls="django-accordion-default-accordion-default-item-3-content"
|
|
48
|
+
type="button"
|
|
49
|
+
>
|
|
50
|
+
Accordion Item 3
|
|
51
|
+
</button>
|
|
52
|
+
</h3>
|
|
53
|
+
|
|
54
|
+
<div
|
|
55
|
+
id="django-accordion-default-accordion-default-item-3-content"
|
|
56
|
+
class="usa-accordion__content usa-prose"
|
|
57
|
+
aria-labelledby="django-accordion-default-accordion-default-item-3-heading"
|
|
58
|
+
hidden
|
|
59
|
+
>
|
|
60
|
+
Content for accordion item 3.
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<h3 class="site-preview-heading">Bordered</h3>
|
|
65
|
+
<div id="django-accordion-bordered" class="usa-accordion usx-accordion usa-accordion--bordered">
|
|
66
|
+
<h3 id="django-accordion-bordered-item-1-heading" class="usa-accordion__heading">
|
|
67
|
+
<button
|
|
68
|
+
class="usa-accordion__button"
|
|
69
|
+
aria-expanded="false"
|
|
70
|
+
aria-controls="django-accordion-bordered-item-1-content"
|
|
71
|
+
type="button"
|
|
72
|
+
>
|
|
73
|
+
Accordion Item 1
|
|
74
|
+
</button>
|
|
75
|
+
</h3>
|
|
76
|
+
|
|
77
|
+
<div
|
|
78
|
+
id="django-accordion-bordered-item-1-content"
|
|
79
|
+
class="usa-accordion__content usa-prose"
|
|
80
|
+
aria-labelledby="django-accordion-bordered-item-1-heading"
|
|
81
|
+
hidden
|
|
82
|
+
>
|
|
83
|
+
Content for accordion item 1.
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<h3 id="django-accordion-bordered-item-2-heading" class="usa-accordion__heading">
|
|
87
|
+
<button
|
|
88
|
+
class="usa-accordion__button"
|
|
89
|
+
aria-expanded="false"
|
|
90
|
+
aria-controls="django-accordion-bordered-item-2-content"
|
|
91
|
+
type="button"
|
|
92
|
+
>
|
|
93
|
+
Accordion Item 2
|
|
94
|
+
</button>
|
|
95
|
+
</h3>
|
|
96
|
+
|
|
97
|
+
<div
|
|
98
|
+
id="django-accordion-bordered-item-2-content"
|
|
99
|
+
class="usa-accordion__content usa-prose"
|
|
100
|
+
aria-labelledby="django-accordion-bordered-item-2-heading"
|
|
101
|
+
hidden
|
|
102
|
+
>
|
|
103
|
+
Content for accordion item 2.
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<h3 id="django-accordion-bordered-item-3-heading" class="usa-accordion__heading">
|
|
107
|
+
<button
|
|
108
|
+
class="usa-accordion__button"
|
|
109
|
+
aria-expanded="false"
|
|
110
|
+
aria-controls="django-accordion-bordered-item-3-content"
|
|
111
|
+
type="button"
|
|
112
|
+
>
|
|
113
|
+
Accordion Item 3
|
|
114
|
+
</button>
|
|
115
|
+
</h3>
|
|
116
|
+
|
|
117
|
+
<div
|
|
118
|
+
id="django-accordion-bordered-item-3-content"
|
|
119
|
+
class="usa-accordion__content usa-prose"
|
|
120
|
+
aria-labelledby="django-accordion-bordered-item-3-heading"
|
|
121
|
+
hidden
|
|
122
|
+
>
|
|
123
|
+
Content for accordion item 3.
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
<h3 class="site-preview-heading">Initially Expanded</h3>
|
|
128
|
+
<div id="django-accordion-initially-expanded" class="usa-accordion usx-accordion">
|
|
129
|
+
<h3
|
|
130
|
+
id="django-accordion-initially-expanded-accordion-initially-expanded-item-1-heading"
|
|
131
|
+
class="usa-accordion__heading"
|
|
132
|
+
>
|
|
133
|
+
<button
|
|
134
|
+
class="usa-accordion__button"
|
|
135
|
+
aria-expanded="true"
|
|
136
|
+
aria-controls="django-accordion-initially-expanded-accordion-initially-expanded-item-1-content"
|
|
137
|
+
type="button"
|
|
138
|
+
>
|
|
139
|
+
Accordion Item 1
|
|
140
|
+
</button>
|
|
141
|
+
</h3>
|
|
142
|
+
|
|
143
|
+
<div
|
|
144
|
+
id="django-accordion-initially-expanded-accordion-initially-expanded-item-1-content"
|
|
145
|
+
class="usa-accordion__content usa-prose"
|
|
146
|
+
aria-labelledby="django-accordion-initially-expanded-accordion-initially-expanded-item-1-heading"
|
|
147
|
+
>
|
|
148
|
+
Content for accordion item 1.
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
<h3
|
|
152
|
+
id="django-accordion-initially-expanded-accordion-initially-expanded-item-2-heading"
|
|
153
|
+
class="usa-accordion__heading"
|
|
154
|
+
>
|
|
155
|
+
<button
|
|
156
|
+
class="usa-accordion__button"
|
|
157
|
+
aria-expanded="false"
|
|
158
|
+
aria-controls="django-accordion-initially-expanded-accordion-initially-expanded-item-2-content"
|
|
159
|
+
type="button"
|
|
160
|
+
>
|
|
161
|
+
Accordion Item 2
|
|
162
|
+
</button>
|
|
163
|
+
</h3>
|
|
164
|
+
|
|
165
|
+
<div
|
|
166
|
+
id="django-accordion-initially-expanded-accordion-initially-expanded-item-2-content"
|
|
167
|
+
class="usa-accordion__content usa-prose"
|
|
168
|
+
aria-labelledby="django-accordion-initially-expanded-accordion-initially-expanded-item-2-heading"
|
|
169
|
+
hidden
|
|
170
|
+
>
|
|
171
|
+
Content for accordion item 2.
|
|
172
|
+
</div>
|
|
173
|
+
|
|
174
|
+
<h3
|
|
175
|
+
id="django-accordion-initially-expanded-accordion-initially-expanded-item-3-heading"
|
|
176
|
+
class="usa-accordion__heading"
|
|
177
|
+
>
|
|
178
|
+
<button
|
|
179
|
+
class="usa-accordion__button"
|
|
180
|
+
aria-expanded="false"
|
|
181
|
+
aria-controls="django-accordion-initially-expanded-accordion-initially-expanded-item-3-content"
|
|
182
|
+
type="button"
|
|
183
|
+
>
|
|
184
|
+
Accordion Item 3
|
|
185
|
+
</button>
|
|
186
|
+
</h3>
|
|
187
|
+
|
|
188
|
+
<div
|
|
189
|
+
id="django-accordion-initially-expanded-accordion-initially-expanded-item-3-content"
|
|
190
|
+
class="usa-accordion__content usa-prose"
|
|
191
|
+
aria-labelledby="django-accordion-initially-expanded-accordion-initially-expanded-item-3-heading"
|
|
192
|
+
hidden
|
|
193
|
+
>
|
|
194
|
+
Content for accordion item 3.
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
|
|
198
|
+
<h3 class="site-preview-heading">Multi Selectable</h3>
|
|
199
|
+
<div id="django-accordion-multi" class="usa-accordion usx-accordion" data-allow-multiple="true">
|
|
200
|
+
<h3 id="django-accordion-multi-item-1-heading" class="usa-accordion__heading">
|
|
201
|
+
<button
|
|
202
|
+
class="usa-accordion__button"
|
|
203
|
+
aria-expanded="false"
|
|
204
|
+
aria-controls="django-accordion-multi-item-1-content"
|
|
205
|
+
type="button"
|
|
206
|
+
>
|
|
207
|
+
Accordion Item 1
|
|
208
|
+
</button>
|
|
209
|
+
</h3>
|
|
210
|
+
|
|
211
|
+
<div
|
|
212
|
+
id="django-accordion-multi-item-1-content"
|
|
213
|
+
class="usa-accordion__content usa-prose"
|
|
214
|
+
aria-labelledby="django-accordion-multi-item-1-heading"
|
|
215
|
+
hidden
|
|
216
|
+
>
|
|
217
|
+
Content for accordion item 1.
|
|
218
|
+
</div>
|
|
219
|
+
|
|
220
|
+
<h3 id="django-accordion-multi-item-2-heading" class="usa-accordion__heading">
|
|
221
|
+
<button
|
|
222
|
+
class="usa-accordion__button"
|
|
223
|
+
aria-expanded="false"
|
|
224
|
+
aria-controls="django-accordion-multi-item-2-content"
|
|
225
|
+
type="button"
|
|
226
|
+
>
|
|
227
|
+
Accordion Item 2
|
|
228
|
+
</button>
|
|
229
|
+
</h3>
|
|
230
|
+
|
|
231
|
+
<div
|
|
232
|
+
id="django-accordion-multi-item-2-content"
|
|
233
|
+
class="usa-accordion__content usa-prose"
|
|
234
|
+
aria-labelledby="django-accordion-multi-item-2-heading"
|
|
235
|
+
hidden
|
|
236
|
+
>
|
|
237
|
+
Content for accordion item 2.
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
<h3 id="django-accordion-multi-item-3-heading" class="usa-accordion__heading">
|
|
241
|
+
<button
|
|
242
|
+
class="usa-accordion__button"
|
|
243
|
+
aria-expanded="false"
|
|
244
|
+
aria-controls="django-accordion-multi-item-3-content"
|
|
245
|
+
type="button"
|
|
246
|
+
>
|
|
247
|
+
Accordion Item 3
|
|
248
|
+
</button>
|
|
249
|
+
</h3>
|
|
250
|
+
|
|
251
|
+
<div
|
|
252
|
+
id="django-accordion-multi-item-3-content"
|
|
253
|
+
class="usa-accordion__content usa-prose"
|
|
254
|
+
aria-labelledby="django-accordion-multi-item-3-heading"
|
|
255
|
+
hidden
|
|
256
|
+
>
|
|
257
|
+
Content for accordion item 3.
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
|
|
261
|
+
<h3 class="site-preview-heading">Custom Heading As</h3>
|
|
262
|
+
<div id="django-accordion-h2" class="usa-accordion usx-accordion">
|
|
263
|
+
<h2 id="django-accordion-h2-item-1-heading" class="usa-accordion__heading">
|
|
264
|
+
<button
|
|
265
|
+
class="usa-accordion__button"
|
|
266
|
+
aria-expanded="false"
|
|
267
|
+
aria-controls="django-accordion-h2-item-1-content"
|
|
268
|
+
type="button"
|
|
269
|
+
>
|
|
270
|
+
Accordion Item 1
|
|
271
|
+
</button>
|
|
272
|
+
</h2>
|
|
273
|
+
|
|
274
|
+
<div
|
|
275
|
+
id="django-accordion-h2-item-1-content"
|
|
276
|
+
class="usa-accordion__content usa-prose"
|
|
277
|
+
aria-labelledby="django-accordion-h2-item-1-heading"
|
|
278
|
+
hidden
|
|
279
|
+
>
|
|
280
|
+
Content for accordion item 1.
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
<h2 id="django-accordion-h2-item-2-heading" class="usa-accordion__heading">
|
|
284
|
+
<button
|
|
285
|
+
class="usa-accordion__button"
|
|
286
|
+
aria-expanded="false"
|
|
287
|
+
aria-controls="django-accordion-h2-item-2-content"
|
|
288
|
+
type="button"
|
|
289
|
+
>
|
|
290
|
+
Accordion Item 2
|
|
291
|
+
</button>
|
|
292
|
+
</h2>
|
|
293
|
+
|
|
294
|
+
<div
|
|
295
|
+
id="django-accordion-h2-item-2-content"
|
|
296
|
+
class="usa-accordion__content usa-prose"
|
|
297
|
+
aria-labelledby="django-accordion-h2-item-2-heading"
|
|
298
|
+
hidden
|
|
299
|
+
>
|
|
300
|
+
Content for accordion item 2.
|
|
301
|
+
</div>
|
|
302
|
+
|
|
303
|
+
<h2 id="django-accordion-h2-item-3-heading" class="usa-accordion__heading">
|
|
304
|
+
<button
|
|
305
|
+
class="usa-accordion__button"
|
|
306
|
+
aria-expanded="false"
|
|
307
|
+
aria-controls="django-accordion-h2-item-3-content"
|
|
308
|
+
type="button"
|
|
309
|
+
>
|
|
310
|
+
Accordion Item 3
|
|
311
|
+
</button>
|
|
312
|
+
</h2>
|
|
313
|
+
|
|
314
|
+
<div
|
|
315
|
+
id="django-accordion-h2-item-3-content"
|
|
316
|
+
class="usa-accordion__content usa-prose"
|
|
317
|
+
aria-labelledby="django-accordion-h2-item-3-heading"
|
|
318
|
+
hidden
|
|
319
|
+
>
|
|
320
|
+
Content for accordion item 3.
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
|
|
324
|
+
<h3 class="site-preview-heading">Bordered Multi Selectable H 4</h3>
|
|
325
|
+
<div
|
|
326
|
+
id="django-accordion-bordered-multi-h4"
|
|
327
|
+
class="usa-accordion usx-accordion usa-accordion--bordered"
|
|
328
|
+
data-allow-multiple="true"
|
|
329
|
+
>
|
|
330
|
+
<h4 id="django-accordion-bordered-multi-h4-item-1-heading" class="usa-accordion__heading">
|
|
331
|
+
<button
|
|
332
|
+
class="usa-accordion__button"
|
|
333
|
+
aria-expanded="false"
|
|
334
|
+
aria-controls="django-accordion-bordered-multi-h4-item-1-content"
|
|
335
|
+
type="button"
|
|
336
|
+
>
|
|
337
|
+
Accordion Item 1
|
|
338
|
+
</button>
|
|
339
|
+
</h4>
|
|
340
|
+
|
|
341
|
+
<div
|
|
342
|
+
id="django-accordion-bordered-multi-h4-item-1-content"
|
|
343
|
+
class="usa-accordion__content usa-prose"
|
|
344
|
+
aria-labelledby="django-accordion-bordered-multi-h4-item-1-heading"
|
|
345
|
+
hidden
|
|
346
|
+
>
|
|
347
|
+
Content for accordion item 1.
|
|
348
|
+
</div>
|
|
349
|
+
|
|
350
|
+
<h4 id="django-accordion-bordered-multi-h4-item-2-heading" class="usa-accordion__heading">
|
|
351
|
+
<button
|
|
352
|
+
class="usa-accordion__button"
|
|
353
|
+
aria-expanded="false"
|
|
354
|
+
aria-controls="django-accordion-bordered-multi-h4-item-2-content"
|
|
355
|
+
type="button"
|
|
356
|
+
>
|
|
357
|
+
Accordion Item 2
|
|
358
|
+
</button>
|
|
359
|
+
</h4>
|
|
360
|
+
|
|
361
|
+
<div
|
|
362
|
+
id="django-accordion-bordered-multi-h4-item-2-content"
|
|
363
|
+
class="usa-accordion__content usa-prose"
|
|
364
|
+
aria-labelledby="django-accordion-bordered-multi-h4-item-2-heading"
|
|
365
|
+
hidden
|
|
366
|
+
>
|
|
367
|
+
Content for accordion item 2.
|
|
368
|
+
</div>
|
|
369
|
+
|
|
370
|
+
<h4 id="django-accordion-bordered-multi-h4-item-3-heading" class="usa-accordion__heading">
|
|
371
|
+
<button
|
|
372
|
+
class="usa-accordion__button"
|
|
373
|
+
aria-expanded="false"
|
|
374
|
+
aria-controls="django-accordion-bordered-multi-h4-item-3-content"
|
|
375
|
+
type="button"
|
|
376
|
+
>
|
|
377
|
+
Accordion Item 3
|
|
378
|
+
</button>
|
|
379
|
+
</h4>
|
|
380
|
+
|
|
381
|
+
<div
|
|
382
|
+
id="django-accordion-bordered-multi-h4-item-3-content"
|
|
383
|
+
class="usa-accordion__content usa-prose"
|
|
384
|
+
aria-labelledby="django-accordion-bordered-multi-h4-item-3-heading"
|
|
385
|
+
hidden
|
|
386
|
+
>
|
|
387
|
+
Content for accordion item 3.
|
|
388
|
+
</div>
|
|
389
|
+
</div>
|
|
390
|
+
|
|
391
|
+
<h3 class="site-preview-heading">Icon Start</h3>
|
|
392
|
+
<div id="django-accordion-icon-start" class="usa-accordion usx-accordion usa-accordion--icon-start">
|
|
393
|
+
<h3 id="django-accordion-icon-start-item-1-heading" class="usa-accordion__heading">
|
|
394
|
+
<button
|
|
395
|
+
class="usa-accordion__button"
|
|
396
|
+
aria-expanded="false"
|
|
397
|
+
aria-controls="django-accordion-icon-start-item-1-content"
|
|
398
|
+
type="button"
|
|
399
|
+
>
|
|
400
|
+
Accordion Item 1
|
|
401
|
+
</button>
|
|
402
|
+
</h3>
|
|
403
|
+
|
|
404
|
+
<div
|
|
405
|
+
id="django-accordion-icon-start-item-1-content"
|
|
406
|
+
class="usa-accordion__content usa-prose"
|
|
407
|
+
aria-labelledby="django-accordion-icon-start-item-1-heading"
|
|
408
|
+
hidden
|
|
409
|
+
>
|
|
410
|
+
Content for accordion item 1.
|
|
411
|
+
</div>
|
|
412
|
+
|
|
413
|
+
<h3 id="django-accordion-icon-start-item-2-heading" class="usa-accordion__heading">
|
|
414
|
+
<button
|
|
415
|
+
class="usa-accordion__button"
|
|
416
|
+
aria-expanded="false"
|
|
417
|
+
aria-controls="django-accordion-icon-start-item-2-content"
|
|
418
|
+
type="button"
|
|
419
|
+
>
|
|
420
|
+
Accordion Item 2
|
|
421
|
+
</button>
|
|
422
|
+
</h3>
|
|
423
|
+
|
|
424
|
+
<div
|
|
425
|
+
id="django-accordion-icon-start-item-2-content"
|
|
426
|
+
class="usa-accordion__content usa-prose"
|
|
427
|
+
aria-labelledby="django-accordion-icon-start-item-2-heading"
|
|
428
|
+
hidden
|
|
429
|
+
>
|
|
430
|
+
Content for accordion item 2.
|
|
431
|
+
</div>
|
|
432
|
+
|
|
433
|
+
<h3 id="django-accordion-icon-start-item-3-heading" class="usa-accordion__heading">
|
|
434
|
+
<button
|
|
435
|
+
class="usa-accordion__button"
|
|
436
|
+
aria-expanded="false"
|
|
437
|
+
aria-controls="django-accordion-icon-start-item-3-content"
|
|
438
|
+
type="button"
|
|
439
|
+
>
|
|
440
|
+
Accordion Item 3
|
|
441
|
+
</button>
|
|
442
|
+
</h3>
|
|
443
|
+
|
|
444
|
+
<div
|
|
445
|
+
id="django-accordion-icon-start-item-3-content"
|
|
446
|
+
class="usa-accordion__content usa-prose"
|
|
447
|
+
aria-labelledby="django-accordion-icon-start-item-3-heading"
|
|
448
|
+
hidden
|
|
449
|
+
>
|
|
450
|
+
Content for accordion item 3.
|
|
451
|
+
</div>
|
|
452
|
+
</div>
|
|
453
|
+
|
|
454
|
+
<h3 class="site-preview-heading">Icon End</h3>
|
|
455
|
+
<div id="django-accordion-icon-end" class="usa-accordion usx-accordion usa-accordion--icon-end">
|
|
456
|
+
<h3 id="django-accordion-icon-end-item-1-heading" class="usa-accordion__heading">
|
|
457
|
+
<button
|
|
458
|
+
class="usa-accordion__button"
|
|
459
|
+
aria-expanded="false"
|
|
460
|
+
aria-controls="django-accordion-icon-end-item-1-content"
|
|
461
|
+
type="button"
|
|
462
|
+
>
|
|
463
|
+
Accordion Item 1
|
|
464
|
+
</button>
|
|
465
|
+
</h3>
|
|
466
|
+
|
|
467
|
+
<div
|
|
468
|
+
id="django-accordion-icon-end-item-1-content"
|
|
469
|
+
class="usa-accordion__content usa-prose"
|
|
470
|
+
aria-labelledby="django-accordion-icon-end-item-1-heading"
|
|
471
|
+
hidden
|
|
472
|
+
>
|
|
473
|
+
Content for accordion item 1.
|
|
474
|
+
</div>
|
|
475
|
+
|
|
476
|
+
<h3 id="django-accordion-icon-end-item-2-heading" class="usa-accordion__heading">
|
|
477
|
+
<button
|
|
478
|
+
class="usa-accordion__button"
|
|
479
|
+
aria-expanded="false"
|
|
480
|
+
aria-controls="django-accordion-icon-end-item-2-content"
|
|
481
|
+
type="button"
|
|
482
|
+
>
|
|
483
|
+
Accordion Item 2
|
|
484
|
+
</button>
|
|
485
|
+
</h3>
|
|
486
|
+
|
|
487
|
+
<div
|
|
488
|
+
id="django-accordion-icon-end-item-2-content"
|
|
489
|
+
class="usa-accordion__content usa-prose"
|
|
490
|
+
aria-labelledby="django-accordion-icon-end-item-2-heading"
|
|
491
|
+
hidden
|
|
492
|
+
>
|
|
493
|
+
Content for accordion item 2.
|
|
494
|
+
</div>
|
|
495
|
+
|
|
496
|
+
<h3 id="django-accordion-icon-end-item-3-heading" class="usa-accordion__heading">
|
|
497
|
+
<button
|
|
498
|
+
class="usa-accordion__button"
|
|
499
|
+
aria-expanded="false"
|
|
500
|
+
aria-controls="django-accordion-icon-end-item-3-content"
|
|
501
|
+
type="button"
|
|
502
|
+
>
|
|
503
|
+
Accordion Item 3
|
|
504
|
+
</button>
|
|
505
|
+
</h3>
|
|
506
|
+
|
|
507
|
+
<div
|
|
508
|
+
id="django-accordion-icon-end-item-3-content"
|
|
509
|
+
class="usa-accordion__content usa-prose"
|
|
510
|
+
aria-labelledby="django-accordion-icon-end-item-3-heading"
|
|
511
|
+
hidden
|
|
512
|
+
>
|
|
513
|
+
Content for accordion item 3.
|
|
514
|
+
</div>
|
|
515
|
+
</div>
|
|
@@ -1,43 +1,27 @@
|
|
|
1
1
|
<div
|
|
2
2
|
id="{{ id }}"
|
|
3
|
-
class="usa-accordion usx-accordion {% if bordered %}usa-accordion--bordered{% endif %}
|
|
3
|
+
class="usa-accordion usx-accordion {% if bordered %}usa-accordion--bordered{% endif %}{% if iconPosition == 'start' %} usa-accordion--icon-start{% elif iconPosition == 'end' %} usa-accordion--icon-end{% endif %}{% if className %} {{ className }}{% endif %}"
|
|
4
4
|
{% if multiselectable %}
|
|
5
5
|
data-allow-multiple="true"
|
|
6
6
|
{% endif %}
|
|
7
7
|
>
|
|
8
8
|
{% for item in items %}
|
|
9
|
-
{% if
|
|
10
|
-
<h1 id="{{ id }}-{{ forloop.counter0 }}-heading" class="usa-accordion__heading {{ headingClassName }}">
|
|
11
|
-
{% elif headingLevel == 'h2' %}
|
|
12
|
-
<h2 id="{{ id }}-{{ forloop.counter0 }}-heading" class="usa-accordion__heading {{ headingClassName }}">
|
|
13
|
-
{% elif headingLevel == 'h4' %}
|
|
14
|
-
<h4 id="{{ id }}-{{ forloop.counter0 }}-heading" class="usa-accordion__heading {{ headingClassName }}">
|
|
15
|
-
{% else %}
|
|
16
|
-
<h3 id="{{ id }}-{{ forloop.counter0 }}-heading" class="usa-accordion__heading {{ headingClassName }}">
|
|
17
|
-
{% endif %}
|
|
9
|
+
<{% if headingAs == 'h1' %}h1{% elif headingAs == 'h2' %}h2{% elif headingAs == 'h4' %}h4{% elif headingAs == 'h5' %}h5{% elif headingAs == 'h6' %}h6{% else %}h3{% endif %} id="{% if item.id %}{{ item.id }}{% else %}{{ id }}-{{ forloop.counter0 }}{% endif %}-heading" class="usa-accordion__heading{% if headingClassName %} {{ headingClassName }}{% endif %}">
|
|
18
10
|
<button
|
|
19
11
|
class="usa-accordion__button"
|
|
20
|
-
aria-expanded="false"
|
|
21
|
-
aria-controls="{{ id }}-{{ forloop.counter0 }}-content"
|
|
12
|
+
aria-expanded="{% if item.expanded %}true{% else %}false{% endif %}"
|
|
13
|
+
aria-controls="{% if item.id %}{{ item.id }}{% else %}{{ id }}-{{ forloop.counter0 }}{% endif %}-content"
|
|
22
14
|
type="button"
|
|
23
15
|
>
|
|
24
16
|
{{ item.title }}
|
|
25
17
|
</button>
|
|
26
|
-
{% if
|
|
27
|
-
</h1>
|
|
28
|
-
{% elif headingLevel == 'h2' %}
|
|
29
|
-
</h2>
|
|
30
|
-
{% elif headingLevel == 'h4' %}
|
|
31
|
-
</h4>
|
|
32
|
-
{% else %}
|
|
33
|
-
</h3>
|
|
34
|
-
{% endif %}
|
|
18
|
+
</{% if headingAs == 'h1' %}h1{% elif headingAs == 'h2' %}h2{% elif headingAs == 'h4' %}h4{% elif headingAs == 'h5' %}h5{% elif headingAs == 'h6' %}h6{% else %}h3{% endif %}>
|
|
35
19
|
|
|
36
20
|
<div
|
|
37
|
-
id="{{ id }}-{{ forloop.counter0 }}-content"
|
|
38
|
-
class="usa-accordion__content usa-prose {{ contentClassName }}"
|
|
39
|
-
aria-labelledby="{{ id }}-{{ forloop.counter0 }}-heading"
|
|
40
|
-
hidden
|
|
21
|
+
id="{% if item.id %}{{ item.id }}{% else %}{{ id }}-{{ forloop.counter0 }}{% endif %}-content"
|
|
22
|
+
class="usa-accordion__content usa-prose{% if contentClassName %} {{ contentClassName }}{% endif %}"
|
|
23
|
+
aria-labelledby="{% if item.id %}{{ item.id }}{% else %}{{ id }}-{{ forloop.counter0 }}{% endif %}-heading"
|
|
24
|
+
{% if not item.expanded %}hidden{% endif %}
|
|
41
25
|
>
|
|
42
26
|
{{ item.content }}
|
|
43
27
|
</div>
|