@pnx-mixtape/mxds 0.0.29 → 0.1.0-rc.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/.storybook/main.ts +8 -16
- package/.storybook/modes.ts +11 -0
- package/.storybook/preview.ts +11 -1
- package/.storybook/storybook.css +7 -0
- package/.storybook/vitest.setup.ts +29 -32
- package/LICENSE +22 -0
- package/README.md +200 -169
- package/dist/build/accordion.css +1 -1
- package/dist/build/accordion.entry.js +1 -46
- package/dist/build/autocomplete.css +1 -0
- package/dist/build/autocomplete.entry.js +1 -0
- package/dist/build/base.css +1 -1
- package/dist/build/breadcrumb.css +1 -1
- package/dist/build/button.css +1 -1
- package/dist/build/callout.css +1 -1
- package/dist/build/card.css +1 -1
- package/dist/build/carousel.css +1 -1
- package/dist/build/chunks/Accordion-z-dH6nFH.js +1 -0
- package/dist/build/chunks/AccordionGroup-Bzqp5__q.js +1 -0
- package/dist/build/chunks/AccordionMobile-BYPPNyf5.js +1 -0
- package/dist/build/chunks/Autocomplete-2L6tLLuh.js +1 -0
- package/dist/build/chunks/ClosableAlert-DdXbF1J2.js +1 -0
- package/dist/build/chunks/CookieConsent-BkCMRVST.js +1 -0
- package/dist/build/chunks/Dialog-Ds8gzhri.js +1 -0
- package/dist/build/chunks/DropMenu-Co9jZZ4S.js +1 -0
- package/dist/build/chunks/Gallery-BT3cxS5m.js +1 -0
- package/dist/build/chunks/GlobalToggle-DQHho97V.js +1 -0
- package/dist/build/chunks/InPageNavigation-CzR_KZaz.js +1 -0
- package/dist/build/chunks/Navigation-B9Wug-ok.js +1 -0
- package/dist/build/chunks/Popover-De_CQqcd.js +1 -0
- package/dist/build/chunks/Sticky-Kyjykb36.js +1 -0
- package/dist/build/chunks/Tabs-Dm8g301e.js +15 -0
- package/dist/build/chunks/cookie-compliance-Bbm-0vpj.js +1 -0
- package/dist/build/chunks/disclosure-widget-BETzOHLO.js +1 -0
- package/dist/build/chunks/polyfills-Dokbkxxk.js +1 -0
- package/dist/build/chunks/utilities-C5dAO2YA.js +1 -0
- package/dist/build/constants.css +1 -1
- package/dist/build/content-block.css +1 -1
- package/dist/build/cookie-consent.css +1 -0
- package/dist/build/cookie-consent.entry.js +1 -0
- package/dist/build/dialog.css +1 -1
- package/dist/build/dialog.entry.js +1 -45
- package/dist/build/drop-menu.css +1 -1
- package/dist/build/drop-menu.entry.js +1 -2
- package/dist/build/drupal.css +1 -1
- package/dist/build/elements.js +1 -0
- package/dist/build/filters.css +1 -1
- package/dist/build/filters.entry.js +1 -113
- package/dist/build/footer.css +1 -1
- package/dist/build/form.css +1 -1
- package/dist/build/gallery.css +1 -0
- package/dist/build/gallery.entry.js +1 -0
- package/dist/build/global-alert.css +1 -1
- package/dist/build/global-alert.entry.js +1 -51
- package/dist/build/grid.css +1 -1
- package/dist/build/header.css +1 -1
- package/dist/build/header.entry.js +1 -877
- package/dist/build/hero-banner.css +1 -1
- package/dist/build/icon.css +1 -1
- package/dist/build/in-page-alert.css +1 -1
- package/dist/build/in-page-navigation.css +1 -1
- package/dist/build/in-page-navigation.entry.js +1 -79
- package/dist/build/link-list.css +1 -1
- package/dist/build/list-item.css +1 -1
- package/dist/build/masthead.css +1 -1
- package/dist/build/navigation.css +1 -1
- package/dist/build/navigation.entry.js +1 -79
- package/dist/build/page.css +1 -1
- package/dist/build/pagination.css +1 -1
- package/dist/build/popover.css +1 -1
- package/dist/build/popover.entry.js +1 -1
- package/dist/build/print.css +1 -0
- package/dist/build/react.js +1 -0
- package/dist/build/results-bar.css +1 -1
- package/dist/build/section.css +1 -1
- package/dist/build/side-navigation.css +1 -1
- package/dist/build/sidebar.css +1 -1
- package/dist/build/social-links.css +1 -1
- package/dist/build/social-share.css +1 -0
- package/dist/build/steps.css +1 -1
- package/dist/build/sticky.css +1 -1
- package/dist/build/sticky.entry.js +1 -48
- package/dist/build/tabs.css +1 -1
- package/dist/build/tabs.entry.js +1 -140
- package/dist/build/tag.css +1 -1
- package/dist/build/utilities.css +1 -1
- package/dist/build/utility-list.css +1 -1
- package/dist/build/utility-list.entry.js +1 -52
- package/dist/types/.storybook-react/decorators.d.ts +3 -0
- package/dist/types/.storybook-react/decorators.d.ts.map +1 -0
- package/dist/types/Atom/Button/Button.d.ts +18 -0
- package/dist/types/Atom/Button/Button.d.ts.map +1 -0
- package/dist/types/Atom/Button/Button.figma.d.ts +11 -0
- package/dist/types/Atom/Button/Button.figma.d.ts.map +1 -0
- package/dist/types/Atom/DefinitionList/DefinitionList.d.ts +10 -0
- package/dist/types/Atom/DefinitionList/DefinitionList.d.ts.map +1 -0
- package/dist/types/Atom/DefinitionList/DefinitionList.figma.d.ts +11 -0
- package/dist/types/Atom/DefinitionList/DefinitionList.figma.d.ts.map +1 -0
- package/dist/types/Atom/DefinitionList/DefinitionListItem.figma.d.ts +11 -0
- package/dist/types/Atom/DefinitionList/DefinitionListItem.figma.d.ts.map +1 -0
- package/dist/types/Atom/Heading/Heading.d.ts +25 -0
- package/dist/types/Atom/Heading/Heading.d.ts.map +1 -0
- package/dist/types/Atom/Heading/Heading.figma.d.ts +11 -0
- package/dist/types/Atom/Heading/Heading.figma.d.ts.map +1 -0
- package/dist/types/Atom/Icon/Icon.d.ts +9 -0
- package/dist/types/Atom/Icon/Icon.d.ts.map +1 -0
- package/dist/types/Atom/Icon/Icon.figma.d.ts +11 -0
- package/dist/types/Atom/Icon/Icon.figma.d.ts.map +1 -0
- package/dist/types/Atom/Icon/IconArrowLeft.figma.d.ts +11 -0
- package/dist/types/Atom/Icon/IconArrowLeft.figma.d.ts.map +1 -0
- package/dist/types/Atom/Icon/IconArrowRight.figma.d.ts +11 -0
- package/dist/types/Atom/Icon/IconArrowRight.figma.d.ts.map +1 -0
- package/dist/types/Atom/Icon/IconChevronDown.figma.d.ts +11 -0
- package/dist/types/Atom/Icon/IconChevronDown.figma.d.ts.map +1 -0
- package/dist/types/Atom/Icon/IconChevronLeft.figma.d.ts +11 -0
- package/dist/types/Atom/Icon/IconChevronLeft.figma.d.ts.map +1 -0
- package/dist/types/Atom/Icon/IconChevronRight.figma.d.ts +11 -0
- package/dist/types/Atom/Icon/IconChevronRight.figma.d.ts.map +1 -0
- package/dist/types/Atom/Icon/IconError.figma.d.ts +11 -0
- package/dist/types/Atom/Icon/IconError.figma.d.ts.map +1 -0
- package/dist/types/Atom/Icon/IconExternalLink.figma.d.ts +11 -0
- package/dist/types/Atom/Icon/IconExternalLink.figma.d.ts.map +1 -0
- package/dist/types/Atom/Icon/IconInfo.figma.d.ts +11 -0
- package/dist/types/Atom/Icon/IconInfo.figma.d.ts.map +1 -0
- package/dist/types/Atom/Icon/IconSearch.figma.d.ts +11 -0
- package/dist/types/Atom/Icon/IconSearch.figma.d.ts.map +1 -0
- package/dist/types/Atom/Icon/IconSuccess.figma.d.ts +11 -0
- package/dist/types/Atom/Icon/IconSuccess.figma.d.ts.map +1 -0
- package/dist/types/Atom/Icon/IconWarning.figma.d.ts +11 -0
- package/dist/types/Atom/Icon/IconWarning.figma.d.ts.map +1 -0
- package/dist/types/Atom/Link/Link.d.ts +13 -0
- package/dist/types/Atom/Link/Link.d.ts.map +1 -0
- package/dist/types/Atom/Link/Link.figma.d.ts +11 -0
- package/dist/types/Atom/Link/Link.figma.d.ts.map +1 -0
- package/dist/types/Atom/Media/Media.d.ts +10 -0
- package/dist/types/Atom/Media/Media.d.ts.map +1 -0
- package/dist/types/Atom/Media/Media.figma.d.ts +11 -0
- package/dist/types/Atom/Media/Media.figma.d.ts.map +1 -0
- package/dist/types/Atom/Text/Text.d.ts +10 -0
- package/dist/types/Atom/Text/Text.d.ts.map +1 -0
- package/dist/types/Atom/Text/Text.figma.d.ts +11 -0
- package/dist/types/Atom/Text/Text.figma.d.ts.map +1 -0
- package/dist/types/Atom/Video/Video.d.ts +5 -0
- package/dist/types/Atom/Video/Video.d.ts.map +1 -0
- package/dist/types/Atom/Video/Video.figma.d.ts +11 -0
- package/dist/types/Atom/Video/Video.figma.d.ts.map +1 -0
- package/dist/types/Component/Accordion/Accordion.d.ts +16 -0
- package/dist/types/Component/Accordion/Accordion.d.ts.map +1 -0
- package/dist/types/Component/Accordion/Accordion.figma.d.ts +11 -0
- package/dist/types/Component/Accordion/Accordion.figma.d.ts.map +1 -0
- package/dist/types/Component/Accordion/Components/AccordionContent.d.ts +4 -0
- package/dist/types/Component/Accordion/Components/AccordionContent.d.ts.map +1 -0
- package/dist/types/Component/Accordion/Components/AccordionContent.figma.d.ts +11 -0
- package/dist/types/Component/Accordion/Components/AccordionContent.figma.d.ts.map +1 -0
- package/dist/types/Component/Accordion/Components/AccordionTitle.d.ts +8 -0
- package/dist/types/Component/Accordion/Components/AccordionTitle.d.ts.map +1 -0
- package/dist/types/Component/Accordion/Components/AccordionTitle.figma.d.ts +11 -0
- package/dist/types/Component/Accordion/Components/AccordionTitle.figma.d.ts.map +1 -0
- package/dist/types/Component/Accordion/Components/AccordionTitleIcon.d.ts +7 -0
- package/dist/types/Component/Accordion/Components/AccordionTitleIcon.d.ts.map +1 -0
- package/dist/types/Component/Accordion/Components/AccordionTitleIcon.figma.d.ts +11 -0
- package/dist/types/Component/Accordion/Components/AccordionTitleIcon.figma.d.ts.map +1 -0
- package/dist/types/Component/Accordion/Elements/Accordion.d.ts +23 -0
- package/dist/types/Component/Accordion/Elements/Accordion.d.ts.map +1 -0
- package/dist/types/Component/Accordion/Elements/AccordionDiv.d.ts +24 -0
- package/dist/types/Component/Accordion/Elements/AccordionDiv.d.ts.map +1 -0
- package/dist/types/Component/Accordion/Elements/AccordionGroup.d.ts +26 -0
- package/dist/types/Component/Accordion/Elements/AccordionGroup.d.ts.map +1 -0
- package/dist/types/Component/Accordion/Elements/AccordionMobile.d.ts +20 -0
- package/dist/types/Component/Accordion/Elements/AccordionMobile.d.ts.map +1 -0
- package/dist/types/Component/Accordion/accordion.entry.d.ts +3 -0
- package/dist/types/Component/Accordion/accordion.entry.d.ts.map +1 -0
- package/dist/types/Component/Breadcrumb/Breadcrumb.d.ts +10 -0
- package/dist/types/Component/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/types/Component/Breadcrumb/Breadcrumb.figma.d.ts +11 -0
- package/dist/types/Component/Breadcrumb/Breadcrumb.figma.d.ts.map +1 -0
- package/dist/types/Component/Card/Card.d.ts +13 -0
- package/dist/types/Component/Card/Card.d.ts.map +1 -0
- package/dist/types/Component/Card/Card.figma.d.ts +11 -0
- package/dist/types/Component/Card/Card.figma.d.ts.map +1 -0
- package/dist/types/Component/Card/Components/CardContent.d.ts +4 -0
- package/dist/types/Component/Card/Components/CardContent.d.ts.map +1 -0
- package/dist/types/Component/Card/Components/CardContent.figma.d.ts +11 -0
- package/dist/types/Component/Card/Components/CardContent.figma.d.ts.map +1 -0
- package/dist/types/Component/Card/Components/CardMedia.d.ts +7 -0
- package/dist/types/Component/Card/Components/CardMedia.d.ts.map +1 -0
- package/dist/types/Component/Card/Components/CardMedia.figma.d.ts +11 -0
- package/dist/types/Component/Card/Components/CardMedia.figma.d.ts.map +1 -0
- package/dist/types/Component/Carousel/Carousel.d.ts +11 -0
- package/dist/types/Component/Carousel/Carousel.d.ts.map +1 -0
- package/dist/types/Component/Carousel/Carousel.figma.d.ts +11 -0
- package/dist/types/Component/Carousel/Carousel.figma.d.ts.map +1 -0
- package/dist/types/Component/Carousel/Elements/Carousel.d.ts +40 -0
- package/dist/types/Component/Carousel/Elements/Carousel.d.ts.map +1 -0
- package/dist/types/Component/ContentBlock/Components/ContentBlockContent.d.ts +4 -0
- package/dist/types/Component/ContentBlock/Components/ContentBlockContent.d.ts.map +1 -0
- package/dist/types/Component/ContentBlock/Components/ContentBlockContent.figma.d.ts +11 -0
- package/dist/types/Component/ContentBlock/Components/ContentBlockContent.figma.d.ts.map +1 -0
- package/dist/types/Component/ContentBlock/Components/ContentBlockMedia.d.ts +7 -0
- package/dist/types/Component/ContentBlock/Components/ContentBlockMedia.d.ts.map +1 -0
- package/dist/types/Component/ContentBlock/Components/ContentBlockMedia.figma.d.ts +11 -0
- package/dist/types/Component/ContentBlock/Components/ContentBlockMedia.figma.d.ts.map +1 -0
- package/dist/types/Component/ContentBlock/ContentBlock.d.ts +8 -0
- package/dist/types/Component/ContentBlock/ContentBlock.d.ts.map +1 -0
- package/dist/types/Component/ContentBlock/ContentBlock.figma.d.ts +11 -0
- package/dist/types/Component/ContentBlock/ContentBlock.figma.d.ts.map +1 -0
- package/dist/types/Component/CookieConsent/CookieConsent.d.ts +13 -0
- package/dist/types/Component/CookieConsent/CookieConsent.d.ts.map +1 -0
- package/dist/types/Component/CookieConsent/Elements/CookieConsent.d.ts +21 -0
- package/dist/types/Component/CookieConsent/Elements/CookieConsent.d.ts.map +1 -0
- package/dist/types/Component/CookieConsent/cookie-consent.entry.d.ts +2 -0
- package/dist/types/Component/CookieConsent/cookie-consent.entry.d.ts.map +1 -0
- package/dist/types/Component/Dialog/Components/DialogCloseButton.d.ts +4 -0
- package/dist/types/Component/Dialog/Components/DialogCloseButton.d.ts.map +1 -0
- package/dist/types/Component/Dialog/Components/DialogCloseButton.figma.d.ts +11 -0
- package/dist/types/Component/Dialog/Components/DialogCloseButton.figma.d.ts.map +1 -0
- package/dist/types/Component/Dialog/Components/DialogContent.d.ts +7 -0
- package/dist/types/Component/Dialog/Components/DialogContent.d.ts.map +1 -0
- package/dist/types/Component/Dialog/Components/DialogContent.figma.d.ts +11 -0
- package/dist/types/Component/Dialog/Components/DialogContent.figma.d.ts.map +1 -0
- package/dist/types/Component/Dialog/Dialog.d.ts +17 -0
- package/dist/types/Component/Dialog/Dialog.d.ts.map +1 -0
- package/dist/types/Component/Dialog/Dialog.figma.d.ts +11 -0
- package/dist/types/Component/Dialog/Dialog.figma.d.ts.map +1 -0
- package/dist/types/Component/Dialog/Elements/Dialog.d.ts +27 -0
- package/dist/types/Component/Dialog/Elements/Dialog.d.ts.map +1 -0
- package/dist/types/Component/Dialog/dialog.entry.d.ts +2 -0
- package/dist/types/Component/Dialog/dialog.entry.d.ts.map +1 -0
- package/dist/types/Component/DropMenu/Components/DropMenuContext.d.ts +27 -0
- package/dist/types/Component/DropMenu/Components/DropMenuContext.d.ts.map +1 -0
- package/dist/types/Component/DropMenu/Components/DropMenuItem.d.ts +10 -0
- package/dist/types/Component/DropMenu/Components/DropMenuItem.d.ts.map +1 -0
- package/dist/types/Component/DropMenu/Components/DropMenuItem.figma.d.ts +11 -0
- package/dist/types/Component/DropMenu/Components/DropMenuItem.figma.d.ts.map +1 -0
- package/dist/types/Component/DropMenu/Components/DropMenuTrigger.figma.d.ts +11 -0
- package/dist/types/Component/DropMenu/Components/DropMenuTrigger.figma.d.ts.map +1 -0
- package/dist/types/Component/DropMenu/DropMenu.d.ts +14 -0
- package/dist/types/Component/DropMenu/DropMenu.d.ts.map +1 -0
- package/dist/types/Component/DropMenu/DropMenu.figma.d.ts +11 -0
- package/dist/types/Component/DropMenu/DropMenu.figma.d.ts.map +1 -0
- package/dist/types/Component/DropMenu/Elements/DropMenu.d.ts +29 -0
- package/dist/types/Component/DropMenu/Elements/DropMenu.d.ts.map +1 -0
- package/dist/types/Component/DropMenu/drop-menu.entry.d.ts +2 -0
- package/dist/types/Component/DropMenu/drop-menu.entry.d.ts.map +1 -0
- package/dist/types/Component/Filters/Elements/Filters.d.ts +51 -0
- package/dist/types/Component/Filters/Elements/Filters.d.ts.map +1 -0
- package/dist/types/Component/Filters/FilterItem.d.ts +23 -0
- package/dist/types/Component/Filters/FilterItem.d.ts.map +1 -0
- package/dist/types/Component/Filters/FilterItem.figma.d.ts +11 -0
- package/dist/types/Component/Filters/FilterItem.figma.d.ts.map +1 -0
- package/dist/types/Component/Filters/Filters.d.ts +31 -0
- package/dist/types/Component/Filters/Filters.d.ts.map +1 -0
- package/dist/types/Component/Filters/Filters.figma.d.ts +11 -0
- package/dist/types/Component/Filters/Filters.figma.d.ts.map +1 -0
- package/dist/types/Component/Filters/filters.entry.d.ts +2 -0
- package/dist/types/Component/Filters/filters.entry.d.ts.map +1 -0
- package/dist/types/Component/Gallery/Components/GalleryTrigger.d.ts +8 -0
- package/dist/types/Component/Gallery/Components/GalleryTrigger.d.ts.map +1 -0
- package/dist/types/Component/Gallery/Elements/Gallery.d.ts +20 -0
- package/dist/types/Component/Gallery/Elements/Gallery.d.ts.map +1 -0
- package/dist/types/Component/Gallery/Gallery.d.ts +19 -0
- package/dist/types/Component/Gallery/Gallery.d.ts.map +1 -0
- package/dist/types/Component/Gallery/gallery.entry.d.ts +3 -0
- package/dist/types/Component/Gallery/gallery.entry.d.ts.map +1 -0
- package/dist/types/Component/GlobalAlert/Elements/ClosableAlert.d.ts +29 -0
- package/dist/types/Component/GlobalAlert/Elements/ClosableAlert.d.ts.map +1 -0
- package/dist/types/Component/GlobalAlert/GlobalAlert.d.ts +10 -0
- package/dist/types/Component/GlobalAlert/GlobalAlert.d.ts.map +1 -0
- package/dist/types/Component/GlobalAlert/GlobalAlert.figma.d.ts +11 -0
- package/dist/types/Component/GlobalAlert/GlobalAlert.figma.d.ts.map +1 -0
- package/dist/types/Component/GlobalAlert/global-alert.entry.d.ts +2 -0
- package/dist/types/Component/GlobalAlert/global-alert.entry.d.ts.map +1 -0
- package/dist/types/Component/HeroBanner/Components/HeroBannerAside.d.ts +7 -0
- package/dist/types/Component/HeroBanner/Components/HeroBannerAside.d.ts.map +1 -0
- package/dist/types/Component/HeroBanner/Components/HeroBannerAside.figma.d.ts +11 -0
- package/dist/types/Component/HeroBanner/Components/HeroBannerAside.figma.d.ts.map +1 -0
- package/dist/types/Component/HeroBanner/Components/HeroBannerContent.d.ts +4 -0
- package/dist/types/Component/HeroBanner/Components/HeroBannerContent.d.ts.map +1 -0
- package/dist/types/Component/HeroBanner/Components/HeroBannerContent.figma.d.ts +11 -0
- package/dist/types/Component/HeroBanner/Components/HeroBannerContent.figma.d.ts.map +1 -0
- package/dist/types/Component/HeroBanner/HeroBanner.d.ts +9 -0
- package/dist/types/Component/HeroBanner/HeroBanner.d.ts.map +1 -0
- package/dist/types/Component/HeroBanner/HeroBanner.figma.d.ts +11 -0
- package/dist/types/Component/HeroBanner/HeroBanner.figma.d.ts.map +1 -0
- package/dist/types/Component/HeroSearch/HeroSearch.d.ts +14 -0
- package/dist/types/Component/HeroSearch/HeroSearch.d.ts.map +1 -0
- package/dist/types/Component/HeroSearch/HeroSearch.figma.d.ts +11 -0
- package/dist/types/Component/HeroSearch/HeroSearch.figma.d.ts.map +1 -0
- package/dist/types/Component/InPageAlert/InPageAlert.d.ts +8 -0
- package/dist/types/Component/InPageAlert/InPageAlert.d.ts.map +1 -0
- package/dist/types/Component/InPageAlert/InPageAlert.figma.d.ts +11 -0
- package/dist/types/Component/InPageAlert/InPageAlert.figma.d.ts.map +1 -0
- package/dist/types/Component/InPageNavigation/Elements/InPageNavigation.d.ts +37 -0
- package/dist/types/Component/InPageNavigation/Elements/InPageNavigation.d.ts.map +1 -0
- package/dist/types/Component/InPageNavigation/Hooks/useInPageNavigation.d.ts +15 -0
- package/dist/types/Component/InPageNavigation/Hooks/useInPageNavigation.d.ts.map +1 -0
- package/dist/types/Component/InPageNavigation/InPageNavigation.d.ts +9 -0
- package/dist/types/Component/InPageNavigation/InPageNavigation.d.ts.map +1 -0
- package/dist/types/Component/InPageNavigation/InPageNavigation.figma.d.ts +11 -0
- package/dist/types/Component/InPageNavigation/InPageNavigation.figma.d.ts.map +1 -0
- package/dist/types/Component/InPageNavigation/in-page-navigation.entry.d.ts +2 -0
- package/dist/types/Component/InPageNavigation/in-page-navigation.entry.d.ts.map +1 -0
- package/dist/types/Component/LinkList/LinkList.d.ts +13 -0
- package/dist/types/Component/LinkList/LinkList.d.ts.map +1 -0
- package/dist/types/Component/LinkList/LinkList.figma.d.ts +11 -0
- package/dist/types/Component/LinkList/LinkList.figma.d.ts.map +1 -0
- package/dist/types/Component/LinkList/LinkListItem.figma.d.ts +11 -0
- package/dist/types/Component/LinkList/LinkListItem.figma.d.ts.map +1 -0
- package/dist/types/Component/ListItem/Components/ListItemContent.d.ts +4 -0
- package/dist/types/Component/ListItem/Components/ListItemContent.d.ts.map +1 -0
- package/dist/types/Component/ListItem/Components/ListItemContent.figma.d.ts +11 -0
- package/dist/types/Component/ListItem/Components/ListItemContent.figma.d.ts.map +1 -0
- package/dist/types/Component/ListItem/Components/ListItemMedia.d.ts +7 -0
- package/dist/types/Component/ListItem/Components/ListItemMedia.d.ts.map +1 -0
- package/dist/types/Component/ListItem/Components/ListItemMedia.figma.d.ts +11 -0
- package/dist/types/Component/ListItem/Components/ListItemMedia.figma.d.ts.map +1 -0
- package/dist/types/Component/ListItem/ListItem.d.ts +9 -0
- package/dist/types/Component/ListItem/ListItem.d.ts.map +1 -0
- package/dist/types/Component/ListItem/ListItem.figma.d.ts +11 -0
- package/dist/types/Component/ListItem/ListItem.figma.d.ts.map +1 -0
- package/dist/types/Component/Navigation/Components/DropdownLevel.d.ts +10 -0
- package/dist/types/Component/Navigation/Components/DropdownLevel.d.ts.map +1 -0
- package/dist/types/Component/Navigation/Dropdown.d.ts +11 -0
- package/dist/types/Component/Navigation/Dropdown.d.ts.map +1 -0
- package/dist/types/Component/Navigation/Elements/Navigation.d.ts +41 -0
- package/dist/types/Component/Navigation/Elements/Navigation.d.ts.map +1 -0
- package/dist/types/Component/Navigation/Navigation.d.ts +17 -0
- package/dist/types/Component/Navigation/Navigation.d.ts.map +1 -0
- package/dist/types/Component/Navigation/Navigation.figma.d.ts +11 -0
- package/dist/types/Component/Navigation/Navigation.figma.d.ts.map +1 -0
- package/dist/types/Component/Navigation/navigation.entry.d.ts +2 -0
- package/dist/types/Component/Navigation/navigation.entry.d.ts.map +1 -0
- package/dist/types/Component/Pagination/Components/PaginationContext.d.ts +27 -0
- package/dist/types/Component/Pagination/Components/PaginationContext.d.ts.map +1 -0
- package/dist/types/Component/Pagination/Components/PaginationItem.d.ts +10 -0
- package/dist/types/Component/Pagination/Components/PaginationItem.d.ts.map +1 -0
- package/dist/types/Component/Pagination/Components/PaginationItem.figma.d.ts +11 -0
- package/dist/types/Component/Pagination/Components/PaginationItem.figma.d.ts.map +1 -0
- package/dist/types/Component/Pagination/Pagination.d.ts +6 -0
- package/dist/types/Component/Pagination/Pagination.d.ts.map +1 -0
- package/dist/types/Component/Pagination/Pagination.figma.d.ts +11 -0
- package/dist/types/Component/Pagination/Pagination.figma.d.ts.map +1 -0
- package/dist/types/Component/Popover/Components/PopoverTrigger.d.ts +37 -0
- package/dist/types/Component/Popover/Components/PopoverTrigger.d.ts.map +1 -0
- package/dist/types/Component/Popover/Elements/Popover.d.ts +21 -0
- package/dist/types/Component/Popover/Elements/Popover.d.ts.map +1 -0
- package/dist/types/Component/Popover/Popover.d.ts +26 -0
- package/dist/types/Component/Popover/Popover.d.ts.map +1 -0
- package/dist/types/Component/Popover/Popover.figma.d.ts +11 -0
- package/dist/types/Component/Popover/Popover.figma.d.ts.map +1 -0
- package/dist/types/Component/Popover/polyfills.d.ts +16 -0
- package/dist/types/Component/Popover/polyfills.d.ts.map +1 -0
- package/dist/types/Component/Popover/popover.entry.d.ts +2 -0
- package/dist/types/Component/Popover/popover.entry.d.ts.map +1 -0
- package/dist/types/Component/ResultsBar/Components/ResultsBarInfo.d.ts +9 -0
- package/dist/types/Component/ResultsBar/Components/ResultsBarInfo.d.ts.map +1 -0
- package/dist/types/Component/ResultsBar/Components/ResultsBarInfo.figma.d.ts +11 -0
- package/dist/types/Component/ResultsBar/Components/ResultsBarInfo.figma.d.ts.map +1 -0
- package/dist/types/Component/ResultsBar/Components/ResultsBarSort.d.ts +12 -0
- package/dist/types/Component/ResultsBar/Components/ResultsBarSort.d.ts.map +1 -0
- package/dist/types/Component/ResultsBar/Components/ResultsBarSort.figma.d.ts +11 -0
- package/dist/types/Component/ResultsBar/Components/ResultsBarSort.figma.d.ts.map +1 -0
- package/dist/types/Component/ResultsBar/ResultsBar.d.ts +4 -0
- package/dist/types/Component/ResultsBar/ResultsBar.d.ts.map +1 -0
- package/dist/types/Component/ResultsBar/ResultsBar.figma.d.ts +11 -0
- package/dist/types/Component/ResultsBar/ResultsBar.figma.d.ts.map +1 -0
- package/dist/types/Component/SideNavigation/Components/SideNavigationTree.d.ts +9 -0
- package/dist/types/Component/SideNavigation/Components/SideNavigationTree.d.ts.map +1 -0
- package/dist/types/Component/SideNavigation/Components/SideNavigationTree.figma.d.ts +11 -0
- package/dist/types/Component/SideNavigation/Components/SideNavigationTree.figma.d.ts.map +1 -0
- package/dist/types/Component/SideNavigation/SideNavigation.d.ts +10 -0
- package/dist/types/Component/SideNavigation/SideNavigation.d.ts.map +1 -0
- package/dist/types/Component/SideNavigation/SideNavigation.figma.d.ts +11 -0
- package/dist/types/Component/SideNavigation/SideNavigation.figma.d.ts.map +1 -0
- package/dist/types/Component/SocialShare/SocialShare.d.ts +10 -0
- package/dist/types/Component/SocialShare/SocialShare.d.ts.map +1 -0
- package/dist/types/Component/SocialShare/SocialShare.figma.d.ts +11 -0
- package/dist/types/Component/SocialShare/SocialShare.figma.d.ts.map +1 -0
- package/dist/types/Component/Sticky/Elements/Sticky.d.ts +28 -0
- package/dist/types/Component/Sticky/Elements/Sticky.d.ts.map +1 -0
- package/dist/types/Component/Sticky/Sticky.d.ts +17 -0
- package/dist/types/Component/Sticky/Sticky.d.ts.map +1 -0
- package/dist/types/Component/Sticky/Sticky.figma.d.ts +11 -0
- package/dist/types/Component/Sticky/Sticky.figma.d.ts.map +1 -0
- package/dist/types/Component/Sticky/sticky.entry.d.ts +2 -0
- package/dist/types/Component/Sticky/sticky.entry.d.ts.map +1 -0
- package/dist/types/Component/Tabs/Components/Tab.d.ts +8 -0
- package/dist/types/Component/Tabs/Components/Tab.d.ts.map +1 -0
- package/dist/types/Component/Tabs/Components/Tab.figma.d.ts +11 -0
- package/dist/types/Component/Tabs/Components/Tab.figma.d.ts.map +1 -0
- package/dist/types/Component/Tabs/Components/TabDropMenu.d.ts +4 -0
- package/dist/types/Component/Tabs/Components/TabDropMenu.d.ts.map +1 -0
- package/dist/types/Component/Tabs/Components/TabList.d.ts +4 -0
- package/dist/types/Component/Tabs/Components/TabList.d.ts.map +1 -0
- package/dist/types/Component/Tabs/Components/TabPanel.d.ts +8 -0
- package/dist/types/Component/Tabs/Components/TabPanel.d.ts.map +1 -0
- package/dist/types/Component/Tabs/Components/TabPanel.figma.d.ts +11 -0
- package/dist/types/Component/Tabs/Components/TabPanel.figma.d.ts.map +1 -0
- package/dist/types/Component/Tabs/Elements/Tabs.d.ts +45 -0
- package/dist/types/Component/Tabs/Elements/Tabs.d.ts.map +1 -0
- package/dist/types/Component/Tabs/Tabs.d.ts +18 -0
- package/dist/types/Component/Tabs/Tabs.d.ts.map +1 -0
- package/dist/types/Component/Tabs/Tabs.figma.d.ts +11 -0
- package/dist/types/Component/Tabs/Tabs.figma.d.ts.map +1 -0
- package/dist/types/Component/Tabs/tabs.entry.d.ts +2 -0
- package/dist/types/Component/Tabs/tabs.entry.d.ts.map +1 -0
- package/dist/types/Component/Tag/Tag.d.ts +16 -0
- package/dist/types/Component/Tag/Tag.d.ts.map +1 -0
- package/dist/types/Component/Tag/Tag.figma.d.ts +11 -0
- package/dist/types/Component/Tag/Tag.figma.d.ts.map +1 -0
- package/dist/types/Component/UtilityList/Elements/UtilityList.d.ts +28 -0
- package/dist/types/Component/UtilityList/Elements/UtilityList.d.ts.map +1 -0
- package/dist/types/Component/UtilityList/utility-list.entry.d.ts +2 -0
- package/dist/types/Component/UtilityList/utility-list.entry.d.ts.map +1 -0
- package/dist/types/Form/Autocomplete/Autocomplete.d.ts +31 -0
- package/dist/types/Form/Autocomplete/Autocomplete.d.ts.map +1 -0
- package/dist/types/Form/Autocomplete/Elements/Autocomplete.d.ts +53 -0
- package/dist/types/Form/Autocomplete/Elements/Autocomplete.d.ts.map +1 -0
- package/dist/types/Form/Autocomplete/autocomplete.entry.d.ts +2 -0
- package/dist/types/Form/Autocomplete/autocomplete.entry.d.ts.map +1 -0
- package/dist/types/Form/Checkbox/Checkbox.figma.d.ts +11 -0
- package/dist/types/Form/Checkbox/Checkbox.figma.d.ts.map +1 -0
- package/dist/types/Form/Checkbox/FormCheckbox.d.ts +21 -0
- package/dist/types/Form/Checkbox/FormCheckbox.d.ts.map +1 -0
- package/dist/types/Form/Checkbox/FormCheckbox.figma.d.ts +11 -0
- package/dist/types/Form/Checkbox/FormCheckbox.figma.d.ts.map +1 -0
- package/dist/types/Form/Description/FormDescription.d.ts +20 -0
- package/dist/types/Form/Description/FormDescription.d.ts.map +1 -0
- package/dist/types/Form/Description/FormDescription.figma.d.ts +11 -0
- package/dist/types/Form/Description/FormDescription.figma.d.ts.map +1 -0
- package/dist/types/Form/Form/Form.d.ts +5 -0
- package/dist/types/Form/Form/Form.d.ts.map +1 -0
- package/dist/types/Form/Form/FormTitle.d.ts +6 -0
- package/dist/types/Form/Form/FormTitle.d.ts.map +1 -0
- package/dist/types/Form/FormItem/FormItem.d.ts +9 -0
- package/dist/types/Form/FormItem/FormItem.d.ts.map +1 -0
- package/dist/types/Form/FormItem/FormItem.figma.d.ts +11 -0
- package/dist/types/Form/FormItem/FormItem.figma.d.ts.map +1 -0
- package/dist/types/Form/Label/FormLabel.d.ts +8 -0
- package/dist/types/Form/Label/FormLabel.d.ts.map +1 -0
- package/dist/types/Form/Label/FormLabel.figma.d.ts +11 -0
- package/dist/types/Form/Label/FormLabel.figma.d.ts.map +1 -0
- package/dist/types/Form/Radio/FormRadio.d.ts +15 -0
- package/dist/types/Form/Radio/FormRadio.d.ts.map +1 -0
- package/dist/types/Form/Radio/FormRadio.figma.d.ts +11 -0
- package/dist/types/Form/Radio/FormRadio.figma.d.ts.map +1 -0
- package/dist/types/Form/Radio/Radio.figma.d.ts +11 -0
- package/dist/types/Form/Radio/Radio.figma.d.ts.map +1 -0
- package/dist/types/Form/Search/FormSearch.d.ts +13 -0
- package/dist/types/Form/Search/FormSearch.d.ts.map +1 -0
- package/dist/types/Form/Search/FormSearch.figma.d.ts +11 -0
- package/dist/types/Form/Search/FormSearch.figma.d.ts.map +1 -0
- package/dist/types/Form/Select/FormSelect.d.ts +18 -0
- package/dist/types/Form/Select/FormSelect.d.ts.map +1 -0
- package/dist/types/Form/Select/FormSelect.figma.d.ts +11 -0
- package/dist/types/Form/Select/FormSelect.figma.d.ts.map +1 -0
- package/dist/types/Form/TextInput/FormText.d.ts +10 -0
- package/dist/types/Form/TextInput/FormText.d.ts.map +1 -0
- package/dist/types/Form/TextInput/FormText.figma.d.ts +11 -0
- package/dist/types/Form/TextInput/FormText.figma.d.ts.map +1 -0
- package/dist/types/Form/Textarea/FormTextarea.d.ts +10 -0
- package/dist/types/Form/Textarea/FormTextarea.d.ts.map +1 -0
- package/dist/types/Form/Textarea/FormTextarea.figma.d.ts +11 -0
- package/dist/types/Form/Textarea/FormTextarea.figma.d.ts.map +1 -0
- package/dist/types/Layout/Footer/Footer.d.ts +12 -0
- package/dist/types/Layout/Footer/Footer.d.ts.map +1 -0
- package/dist/types/Layout/Footer/Footer.figma.d.ts +11 -0
- package/dist/types/Layout/Footer/Footer.figma.d.ts.map +1 -0
- package/dist/types/Layout/Grid/Grid.d.ts +13 -0
- package/dist/types/Layout/Grid/Grid.d.ts.map +1 -0
- package/dist/types/Layout/Grid/Grid.figma.d.ts +11 -0
- package/dist/types/Layout/Grid/Grid.figma.d.ts.map +1 -0
- package/dist/types/Layout/Header/Components/GlobalToggle.d.ts +14 -0
- package/dist/types/Layout/Header/Components/GlobalToggle.d.ts.map +1 -0
- package/dist/types/Layout/Header/Components/Logo.d.ts +9 -0
- package/dist/types/Layout/Header/Components/Logo.d.ts.map +1 -0
- package/dist/types/Layout/Header/Elements/GlobalToggle.d.ts +41 -0
- package/dist/types/Layout/Header/Elements/GlobalToggle.d.ts.map +1 -0
- package/dist/types/Layout/Header/Header.d.ts +14 -0
- package/dist/types/Layout/Header/Header.d.ts.map +1 -0
- package/dist/types/Layout/Header/Header.figma.d.ts +11 -0
- package/dist/types/Layout/Header/Header.figma.d.ts.map +1 -0
- package/dist/types/Layout/Header/header.entry.d.ts +2 -0
- package/dist/types/Layout/Header/header.entry.d.ts.map +1 -0
- package/dist/types/Layout/Masthead/Masthead.d.ts +11 -0
- package/dist/types/Layout/Masthead/Masthead.d.ts.map +1 -0
- package/dist/types/Layout/Masthead/Masthead.figma.d.ts +11 -0
- package/dist/types/Layout/Masthead/Masthead.figma.d.ts.map +1 -0
- package/dist/types/Layout/Page/Page.d.ts +10 -0
- package/dist/types/Layout/Page/Page.d.ts.map +1 -0
- package/dist/types/Layout/Page/Page.figma.d.ts +11 -0
- package/dist/types/Layout/Page/Page.figma.d.ts.map +1 -0
- package/dist/types/Layout/Section/Section.d.ts +17 -0
- package/dist/types/Layout/Section/Section.d.ts.map +1 -0
- package/dist/types/Layout/Section/Section.figma.d.ts +11 -0
- package/dist/types/Layout/Section/Section.figma.d.ts.map +1 -0
- package/dist/types/Layout/Section/SectionGrid.d.ts +17 -0
- package/dist/types/Layout/Section/SectionGrid.d.ts.map +1 -0
- package/dist/types/Layout/Sidebar/Sidebar.d.ts +12 -0
- package/dist/types/Layout/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/types/Layout/Sidebar/Sidebar.figma.d.ts +11 -0
- package/dist/types/Layout/Sidebar/Sidebar.figma.d.ts.map +1 -0
- package/dist/types/Utility/Context/ImageComponent.d.ts +22 -0
- package/dist/types/Utility/Context/ImageComponent.d.ts.map +1 -0
- package/dist/types/Utility/Context/LinkComponent.d.ts +22 -0
- package/dist/types/Utility/Context/LinkComponent.d.ts.map +1 -0
- package/dist/types/Utility/Elements/breakpoint-loader.d.ts +27 -0
- package/dist/types/Utility/Elements/breakpoint-loader.d.ts.map +1 -0
- package/dist/types/Utility/Elements/cookie-compliance.d.ts +57 -0
- package/dist/types/Utility/Elements/cookie-compliance.d.ts.map +1 -0
- package/dist/types/Utility/Elements/disclosure-widget.d.ts +33 -0
- package/dist/types/Utility/Elements/disclosure-widget.d.ts.map +1 -0
- package/dist/types/Utility/Elements/io-loader.d.ts +19 -0
- package/dist/types/Utility/Elements/io-loader.d.ts.map +1 -0
- package/dist/types/Utility/Elements/keyboard.d.ts +16 -0
- package/dist/types/Utility/Elements/keyboard.d.ts.map +1 -0
- package/dist/types/Utility/Elements/validators.d.ts +133 -0
- package/dist/types/Utility/Elements/validators.d.ts.map +1 -0
- package/dist/types/Utility/Hooks/useLocalStorage.d.ts +8 -0
- package/dist/types/Utility/Hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/types/Utility/Hooks/useMediaQuery.d.ts +3 -0
- package/dist/types/Utility/Hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/types/Utility/Hooks/useToggle.d.ts +3 -0
- package/dist/types/Utility/Hooks/useToggle.d.ts.map +1 -0
- package/dist/types/Utility/Hooks/useUrlParams.d.ts +8 -0
- package/dist/types/Utility/Hooks/useUrlParams.d.ts.map +1 -0
- package/dist/types/Utility/utilities.d.ts +36 -0
- package/dist/types/Utility/utilities.d.ts.map +1 -0
- package/dist/types/elements.d.ts +18 -0
- package/dist/types/elements.d.ts.map +1 -0
- package/dist/types/enums.d.ts +141 -0
- package/dist/types/enums.d.ts.map +1 -0
- package/dist/types/mockups/constants.d.ts +21 -0
- package/dist/types/mockups/constants.d.ts.map +1 -0
- package/dist/types/react.d.ts +90 -0
- package/dist/types/react.d.ts.map +1 -0
- package/dist/types/src/Atom/Background/Background.stories.d.ts +27 -0
- package/dist/types/src/Atom/Background/Background.stories.d.ts.map +1 -0
- package/dist/types/src/Atom/Button/Button.d.ts +17 -0
- package/dist/types/src/Atom/Button/Button.d.ts.map +1 -0
- package/dist/types/src/Atom/Button/Button.stories.d.ts +47 -0
- package/dist/types/src/Atom/Button/Button.stories.d.ts.map +1 -0
- package/dist/types/src/Atom/DefinitionList/DefinitionList.d.ts +10 -0
- package/dist/types/src/Atom/DefinitionList/DefinitionList.d.ts.map +1 -0
- package/dist/types/src/Atom/DefinitionList/DefinitionList.stories.d.ts +12 -0
- package/dist/types/src/Atom/DefinitionList/DefinitionList.stories.d.ts.map +1 -0
- package/dist/types/src/Atom/Heading/Heading.d.ts +25 -0
- package/dist/types/src/Atom/Heading/Heading.d.ts.map +1 -0
- package/dist/types/src/Atom/Heading/Heading.stories.d.ts +20 -0
- package/dist/types/src/Atom/Heading/Heading.stories.d.ts.map +1 -0
- package/dist/types/src/Atom/Icon/Icon.d.ts +9 -0
- package/dist/types/src/Atom/Icon/Icon.d.ts.map +1 -0
- package/dist/types/src/Atom/Icon/Icon.stories.d.ts +28 -0
- package/dist/types/src/Atom/Icon/Icon.stories.d.ts.map +1 -0
- package/dist/types/src/Atom/Image/Image.stories.d.ts +11 -0
- package/dist/types/src/Atom/Image/Image.stories.d.ts.map +1 -0
- package/dist/types/src/Atom/Link/Link.d.ts +13 -0
- package/dist/types/src/Atom/Link/Link.d.ts.map +1 -0
- package/dist/types/src/Atom/Link/Link.stories.d.ts +27 -0
- package/dist/types/src/Atom/Link/Link.stories.d.ts.map +1 -0
- package/dist/types/src/Atom/Media/Media.d.ts +10 -0
- package/dist/types/src/Atom/Media/Media.d.ts.map +1 -0
- package/dist/types/src/Atom/Media/Media.stories.d.ts +14 -0
- package/dist/types/src/Atom/Media/Media.stories.d.ts.map +1 -0
- package/dist/types/src/Atom/Spacing/Spacing.stories.d.ts +13 -0
- package/dist/types/src/Atom/Spacing/Spacing.stories.d.ts.map +1 -0
- package/dist/types/src/Atom/Table/Table.stories.d.ts +14 -0
- package/dist/types/src/Atom/Table/Table.stories.d.ts.map +1 -0
- package/dist/types/src/Atom/Table/TableResponsive.stories.d.ts +8 -0
- package/dist/types/src/Atom/Table/TableResponsive.stories.d.ts.map +1 -0
- package/dist/types/src/Atom/Text/Text.d.ts +10 -0
- package/dist/types/src/Atom/Text/Text.d.ts.map +1 -0
- package/dist/types/src/Atom/Text/Text.stories.d.ts +23 -0
- package/dist/types/src/Atom/Text/Text.stories.d.ts.map +1 -0
- package/dist/types/src/Atom/Video/Video.d.ts +5 -0
- package/dist/types/src/Atom/Video/Video.d.ts.map +1 -0
- package/dist/types/src/Atom/Video/Video.stories.d.ts +10 -0
- package/dist/types/src/Atom/Video/Video.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Accordion/Accordion.d.ts +16 -0
- package/dist/types/src/Component/Accordion/Accordion.d.ts.map +1 -0
- package/dist/types/src/Component/Accordion/Accordion.stories.d.ts +13 -0
- package/dist/types/src/Component/Accordion/Accordion.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Accordion/AccordionItem.stories.d.ts +29 -0
- package/dist/types/src/Component/Accordion/AccordionItem.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Accordion/Components/AccordionContent.d.ts +4 -0
- package/dist/types/src/Component/Accordion/Components/AccordionContent.d.ts.map +1 -0
- package/dist/types/src/Component/Accordion/Components/AccordionTitle.d.ts +8 -0
- package/dist/types/src/Component/Accordion/Components/AccordionTitle.d.ts.map +1 -0
- package/dist/types/src/Component/Accordion/Components/AccordionTitleIcon.d.ts +7 -0
- package/dist/types/src/Component/Accordion/Components/AccordionTitleIcon.d.ts.map +1 -0
- package/dist/types/src/Component/Accordion/Elements/Accordion.d.ts +23 -0
- package/dist/types/src/Component/Accordion/Elements/Accordion.d.ts.map +1 -0
- package/dist/types/src/Component/Accordion/Elements/AccordionDiv.d.ts +24 -0
- package/dist/types/src/Component/Accordion/Elements/AccordionDiv.d.ts.map +1 -0
- package/dist/types/src/Component/Accordion/Elements/AccordionGroup.d.ts +26 -0
- package/dist/types/src/Component/Accordion/Elements/AccordionGroup.d.ts.map +1 -0
- package/dist/types/src/Component/Accordion/Elements/AccordionMobile.d.ts +20 -0
- package/dist/types/src/Component/Accordion/Elements/AccordionMobile.d.ts.map +1 -0
- package/dist/types/src/Component/Accordion/accordion.entry.d.ts +2 -0
- package/dist/types/src/Component/Accordion/accordion.entry.d.ts.map +1 -0
- package/dist/types/src/Component/Breadcrumb/Breadcrumb.d.ts +10 -0
- package/dist/types/src/Component/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/types/src/Component/Breadcrumb/Breadcrumb.stories.d.ts +9 -0
- package/dist/types/src/Component/Breadcrumb/Breadcrumb.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Callout/Callout.stories.d.ts +8 -0
- package/dist/types/src/Component/Callout/Callout.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Card/Card.d.ts +13 -0
- package/dist/types/src/Component/Card/Card.d.ts.map +1 -0
- package/dist/types/src/Component/Card/Card.stories.d.ts +51 -0
- package/dist/types/src/Component/Card/Card.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Card/Components/CardContent.d.ts +4 -0
- package/dist/types/src/Component/Card/Components/CardContent.d.ts.map +1 -0
- package/dist/types/src/Component/Card/Components/CardMedia.d.ts +7 -0
- package/dist/types/src/Component/Card/Components/CardMedia.d.ts.map +1 -0
- package/dist/types/src/Component/Carousel/Carousel.d.ts +11 -0
- package/dist/types/src/Component/Carousel/Carousel.d.ts.map +1 -0
- package/dist/types/src/Component/Carousel/Carousel.stories.d.ts +29 -0
- package/dist/types/src/Component/Carousel/Carousel.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Carousel/Elements/Carousel.d.ts +40 -0
- package/dist/types/src/Component/Carousel/Elements/Carousel.d.ts.map +1 -0
- package/dist/types/src/Component/ContentBlock/Components/ContentBlockContent.d.ts +4 -0
- package/dist/types/src/Component/ContentBlock/Components/ContentBlockContent.d.ts.map +1 -0
- package/dist/types/src/Component/ContentBlock/Components/ContentBlockMedia.d.ts +7 -0
- package/dist/types/src/Component/ContentBlock/Components/ContentBlockMedia.d.ts.map +1 -0
- package/dist/types/src/Component/ContentBlock/ContentBlock.d.ts +8 -0
- package/dist/types/src/Component/ContentBlock/ContentBlock.d.ts.map +1 -0
- package/dist/types/src/Component/ContentBlock/ContentBlock.stories.d.ts +20 -0
- package/dist/types/src/Component/ContentBlock/ContentBlock.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Dialog/Components/DialogCloseButton.d.ts +4 -0
- package/dist/types/src/Component/Dialog/Components/DialogCloseButton.d.ts.map +1 -0
- package/dist/types/src/Component/Dialog/Components/DialogContent.d.ts +4 -0
- package/dist/types/src/Component/Dialog/Components/DialogContent.d.ts.map +1 -0
- package/dist/types/src/Component/Dialog/Dialog.d.ts +17 -0
- package/dist/types/src/Component/Dialog/Dialog.d.ts.map +1 -0
- package/dist/types/src/Component/Dialog/Dialog.stories.d.ts +32 -0
- package/dist/types/src/Component/Dialog/Dialog.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Dialog/Elements/Dialog.d.ts +27 -0
- package/dist/types/src/Component/Dialog/Elements/Dialog.d.ts.map +1 -0
- package/dist/types/src/Component/Dialog/dialog.entry.d.ts +2 -0
- package/dist/types/src/Component/Dialog/dialog.entry.d.ts.map +1 -0
- package/dist/types/src/Component/DropMenu/Components/DropMenuContext.d.ts +27 -0
- package/dist/types/src/Component/DropMenu/Components/DropMenuContext.d.ts.map +1 -0
- package/dist/types/src/Component/DropMenu/Components/DropMenuItem.d.ts +10 -0
- package/dist/types/src/Component/DropMenu/Components/DropMenuItem.d.ts.map +1 -0
- package/dist/types/src/Component/DropMenu/DropMenu.d.ts +14 -0
- package/dist/types/src/Component/DropMenu/DropMenu.d.ts.map +1 -0
- package/dist/types/src/Component/DropMenu/DropMenu.stories.d.ts +27 -0
- package/dist/types/src/Component/DropMenu/DropMenu.stories.d.ts.map +1 -0
- package/dist/types/src/Component/DropMenu/Elements/DropMenu.d.ts +28 -0
- package/dist/types/src/Component/DropMenu/Elements/DropMenu.d.ts.map +1 -0
- package/dist/types/src/Component/DropMenu/drop-menu.entry.d.ts +2 -0
- package/dist/types/src/Component/DropMenu/drop-menu.entry.d.ts.map +1 -0
- package/dist/types/src/Component/Filters/Elements/Filters.d.ts +41 -0
- package/dist/types/src/Component/Filters/Elements/Filters.d.ts.map +1 -0
- package/dist/types/src/Component/Filters/FilterItem.d.ts +23 -0
- package/dist/types/src/Component/Filters/FilterItem.d.ts.map +1 -0
- package/dist/types/src/Component/Filters/FilterItem.stories.d.ts +22 -0
- package/dist/types/src/Component/Filters/FilterItem.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Filters/Filters.d.ts +30 -0
- package/dist/types/src/Component/Filters/Filters.d.ts.map +1 -0
- package/dist/types/src/Component/Filters/Filters.stories.d.ts +28 -0
- package/dist/types/src/Component/Filters/Filters.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Filters/filters.entry.d.ts +2 -0
- package/dist/types/src/Component/Filters/filters.entry.d.ts.map +1 -0
- package/dist/types/src/Component/GlobalAlert/Elements/ClosableAlert.d.ts +29 -0
- package/dist/types/src/Component/GlobalAlert/Elements/ClosableAlert.d.ts.map +1 -0
- package/dist/types/src/Component/GlobalAlert/GlobalAlert.d.ts +10 -0
- package/dist/types/src/Component/GlobalAlert/GlobalAlert.d.ts.map +1 -0
- package/dist/types/src/Component/GlobalAlert/GlobalAlert.stories.d.ts +16 -0
- package/dist/types/src/Component/GlobalAlert/GlobalAlert.stories.d.ts.map +1 -0
- package/dist/types/src/Component/GlobalAlert/global-alert.entry.d.ts +2 -0
- package/dist/types/src/Component/GlobalAlert/global-alert.entry.d.ts.map +1 -0
- package/dist/types/src/Component/HeroBanner/HeroBanner.d.ts +8 -0
- package/dist/types/src/Component/HeroBanner/HeroBanner.d.ts.map +1 -0
- package/dist/types/src/Component/HeroBanner/HeroBanner.stories.d.ts +24 -0
- package/dist/types/src/Component/HeroBanner/HeroBanner.stories.d.ts.map +1 -0
- package/dist/types/src/Component/HeroSearch/HeroSearch.d.ts +10 -0
- package/dist/types/src/Component/HeroSearch/HeroSearch.d.ts.map +1 -0
- package/dist/types/src/Component/HeroSearch/HeroSearch.stories.d.ts +20 -0
- package/dist/types/src/Component/HeroSearch/HeroSearch.stories.d.ts.map +1 -0
- package/dist/types/src/Component/InPageAlert/InPageAlert.d.ts +8 -0
- package/dist/types/src/Component/InPageAlert/InPageAlert.d.ts.map +1 -0
- package/dist/types/src/Component/InPageAlert/InPageAlert.stories.d.ts +16 -0
- package/dist/types/src/Component/InPageAlert/InPageAlert.stories.d.ts.map +1 -0
- package/dist/types/src/Component/InPageNavigation/Elements/InPageNavigation.d.ts +37 -0
- package/dist/types/src/Component/InPageNavigation/Elements/InPageNavigation.d.ts.map +1 -0
- package/dist/types/src/Component/InPageNavigation/Hooks/useInPageNavigation.d.ts +15 -0
- package/dist/types/src/Component/InPageNavigation/Hooks/useInPageNavigation.d.ts.map +1 -0
- package/dist/types/src/Component/InPageNavigation/InPageNavigation.d.ts +9 -0
- package/dist/types/src/Component/InPageNavigation/InPageNavigation.d.ts.map +1 -0
- package/dist/types/src/Component/InPageNavigation/InPageNavigation.stories.d.ts +29 -0
- package/dist/types/src/Component/InPageNavigation/InPageNavigation.stories.d.ts.map +1 -0
- package/dist/types/src/Component/InPageNavigation/in-page-navigation.entry.d.ts +2 -0
- package/dist/types/src/Component/InPageNavigation/in-page-navigation.entry.d.ts.map +1 -0
- package/dist/types/src/Component/LinkList/LinkList.d.ts +13 -0
- package/dist/types/src/Component/LinkList/LinkList.d.ts.map +1 -0
- package/dist/types/src/Component/LinkList/LinkList.stories.d.ts +12 -0
- package/dist/types/src/Component/LinkList/LinkList.stories.d.ts.map +1 -0
- package/dist/types/src/Component/ListItem/Components/ListItemContent.d.ts +4 -0
- package/dist/types/src/Component/ListItem/Components/ListItemContent.d.ts.map +1 -0
- package/dist/types/src/Component/ListItem/Components/ListItemMedia.d.ts +7 -0
- package/dist/types/src/Component/ListItem/Components/ListItemMedia.d.ts.map +1 -0
- package/dist/types/src/Component/ListItem/ListItem.d.ts +9 -0
- package/dist/types/src/Component/ListItem/ListItem.d.ts.map +1 -0
- package/dist/types/src/Component/ListItem/ListItem.stories.d.ts +37 -0
- package/dist/types/src/Component/ListItem/ListItem.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Navigation/Components/DropdownLevel.d.ts +10 -0
- package/dist/types/src/Component/Navigation/Components/DropdownLevel.d.ts.map +1 -0
- package/dist/types/src/Component/Navigation/Dropdown.d.ts +11 -0
- package/dist/types/src/Component/Navigation/Dropdown.d.ts.map +1 -0
- package/dist/types/src/Component/Navigation/Dropdown.stories.d.ts +8 -0
- package/dist/types/src/Component/Navigation/Dropdown.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Navigation/Elements/Navigation.d.ts +41 -0
- package/dist/types/src/Component/Navigation/Elements/Navigation.d.ts.map +1 -0
- package/dist/types/src/Component/Navigation/Navigation.d.ts +17 -0
- package/dist/types/src/Component/Navigation/Navigation.d.ts.map +1 -0
- package/dist/types/src/Component/Navigation/Navigation.stories.d.ts +28 -0
- package/dist/types/src/Component/Navigation/Navigation.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Navigation/navigation.entry.d.ts +2 -0
- package/dist/types/src/Component/Navigation/navigation.entry.d.ts.map +1 -0
- package/dist/types/src/Component/Pagination/Components/PaginationContext.d.ts +27 -0
- package/dist/types/src/Component/Pagination/Components/PaginationContext.d.ts.map +1 -0
- package/dist/types/src/Component/Pagination/Components/PaginationItem.d.ts +10 -0
- package/dist/types/src/Component/Pagination/Components/PaginationItem.d.ts.map +1 -0
- package/dist/types/src/Component/Pagination/Pagination.d.ts +6 -0
- package/dist/types/src/Component/Pagination/Pagination.d.ts.map +1 -0
- package/dist/types/src/Component/Pagination/Pagination.stories.d.ts +11 -0
- package/dist/types/src/Component/Pagination/Pagination.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Popover/Components/PopoverTrigger.d.ts +37 -0
- package/dist/types/src/Component/Popover/Components/PopoverTrigger.d.ts.map +1 -0
- package/dist/types/src/Component/Popover/Elements/Popover.d.ts +21 -0
- package/dist/types/src/Component/Popover/Elements/Popover.d.ts.map +1 -0
- package/dist/types/src/Component/Popover/Popover.d.ts +30 -0
- package/dist/types/src/Component/Popover/Popover.d.ts.map +1 -0
- package/dist/types/src/Component/Popover/Popover.stories.d.ts +29 -0
- package/dist/types/src/Component/Popover/Popover.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Popover/polyfills.d.ts +12 -0
- package/dist/types/src/Component/Popover/polyfills.d.ts.map +1 -0
- package/dist/types/src/Component/Popover/popover.entry.d.ts +2 -0
- package/dist/types/src/Component/Popover/popover.entry.d.ts.map +1 -0
- package/dist/types/src/Component/ResultsBar/Components/ResultsBarInfo.d.ts +9 -0
- package/dist/types/src/Component/ResultsBar/Components/ResultsBarInfo.d.ts.map +1 -0
- package/dist/types/src/Component/ResultsBar/Components/ResultsBarSort.d.ts +12 -0
- package/dist/types/src/Component/ResultsBar/Components/ResultsBarSort.d.ts.map +1 -0
- package/dist/types/src/Component/ResultsBar/ResultsBar.d.ts +4 -0
- package/dist/types/src/Component/ResultsBar/ResultsBar.d.ts.map +1 -0
- package/dist/types/src/Component/ResultsBar/ResultsBar.stories.d.ts +19 -0
- package/dist/types/src/Component/ResultsBar/ResultsBar.stories.d.ts.map +1 -0
- package/dist/types/src/Component/SideNavigation/Components/SideNavigationTree.d.ts +9 -0
- package/dist/types/src/Component/SideNavigation/Components/SideNavigationTree.d.ts.map +1 -0
- package/dist/types/src/Component/SideNavigation/SideNavigation.d.ts +10 -0
- package/dist/types/src/Component/SideNavigation/SideNavigation.d.ts.map +1 -0
- package/dist/types/src/Component/SideNavigation/SideNavigation.stories.d.ts +9 -0
- package/dist/types/src/Component/SideNavigation/SideNavigation.stories.d.ts.map +1 -0
- package/dist/types/src/Component/SocialLinks/SocialLinks.stories.d.ts +8 -0
- package/dist/types/src/Component/SocialLinks/SocialLinks.stories.d.ts.map +1 -0
- package/dist/types/src/Component/SocialShare/SocialShare.d.ts +10 -0
- package/dist/types/src/Component/SocialShare/SocialShare.d.ts.map +1 -0
- package/dist/types/src/Component/SocialShare/SocialShare.stories.d.ts +7 -0
- package/dist/types/src/Component/SocialShare/SocialShare.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Steps/StepItem.stories.d.ts +12 -0
- package/dist/types/src/Component/Steps/StepItem.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Steps/Steps.stories.d.ts +32 -0
- package/dist/types/src/Component/Steps/Steps.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Sticky/Elements/Sticky.d.ts +28 -0
- package/dist/types/src/Component/Sticky/Elements/Sticky.d.ts.map +1 -0
- package/dist/types/src/Component/Sticky/Sticky.d.ts +12 -0
- package/dist/types/src/Component/Sticky/Sticky.d.ts.map +1 -0
- package/dist/types/src/Component/Sticky/Sticky.stories.d.ts +13 -0
- package/dist/types/src/Component/Sticky/Sticky.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Sticky/sticky.entry.d.ts +2 -0
- package/dist/types/src/Component/Sticky/sticky.entry.d.ts.map +1 -0
- package/dist/types/src/Component/Tabs/Components/Tab.d.ts +8 -0
- package/dist/types/src/Component/Tabs/Components/Tab.d.ts.map +1 -0
- package/dist/types/src/Component/Tabs/Components/TabDropMenu.d.ts +4 -0
- package/dist/types/src/Component/Tabs/Components/TabDropMenu.d.ts.map +1 -0
- package/dist/types/src/Component/Tabs/Components/TabList.d.ts +4 -0
- package/dist/types/src/Component/Tabs/Components/TabList.d.ts.map +1 -0
- package/dist/types/src/Component/Tabs/Components/TabPanel.d.ts +8 -0
- package/dist/types/src/Component/Tabs/Components/TabPanel.d.ts.map +1 -0
- package/dist/types/src/Component/Tabs/Elements/Tabs.d.ts +45 -0
- package/dist/types/src/Component/Tabs/Elements/Tabs.d.ts.map +1 -0
- package/dist/types/src/Component/Tabs/TabItem.stories.d.ts +11 -0
- package/dist/types/src/Component/Tabs/TabItem.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Tabs/Tabs.d.ts +17 -0
- package/dist/types/src/Component/Tabs/Tabs.d.ts.map +1 -0
- package/dist/types/src/Component/Tabs/Tabs.stories.d.ts +19 -0
- package/dist/types/src/Component/Tabs/Tabs.stories.d.ts.map +1 -0
- package/dist/types/src/Component/Tabs/tabs.entry.d.ts +2 -0
- package/dist/types/src/Component/Tabs/tabs.entry.d.ts.map +1 -0
- package/dist/types/src/Component/Tag/Tag.d.ts +9 -0
- package/dist/types/src/Component/Tag/Tag.d.ts.map +1 -0
- package/dist/types/src/Component/Tag/Tag.stories.d.ts +19 -0
- package/dist/types/src/Component/Tag/Tag.stories.d.ts.map +1 -0
- package/dist/types/src/Component/UtilityList/Elements/UtilityList.d.ts +28 -0
- package/dist/types/src/Component/UtilityList/Elements/UtilityList.d.ts.map +1 -0
- package/dist/types/src/Component/UtilityList/UtilityList.stories.d.ts +20 -0
- package/dist/types/src/Component/UtilityList/UtilityList.stories.d.ts.map +1 -0
- package/dist/types/src/Component/UtilityList/utility-list.entry.d.ts +2 -0
- package/dist/types/src/Component/UtilityList/utility-list.entry.d.ts.map +1 -0
- package/dist/types/src/Form/Checkbox/Checkbox.stories.d.ts +9 -0
- package/dist/types/src/Form/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Checkbox/FormCheckbox.d.ts +21 -0
- package/dist/types/src/Form/Checkbox/FormCheckbox.d.ts.map +1 -0
- package/dist/types/src/Form/Checkbox/FormCheckbox.stories.d.ts +7 -0
- package/dist/types/src/Form/Checkbox/FormCheckbox.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Description/Description.stories.d.ts +8 -0
- package/dist/types/src/Form/Description/Description.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Description/FormDescription.d.ts +20 -0
- package/dist/types/src/Form/Description/FormDescription.d.ts.map +1 -0
- package/dist/types/src/Form/Description/FormDescription.stories.d.ts +6 -0
- package/dist/types/src/Form/Description/FormDescription.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Description/FormStatus.stories.d.ts +9 -0
- package/dist/types/src/Form/Description/FormStatus.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Form/Form.d.ts +5 -0
- package/dist/types/src/Form/Form/Form.d.ts.map +1 -0
- package/dist/types/src/Form/Form/Form.stories.d.ts +6 -0
- package/dist/types/src/Form/Form/Form.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Form/FormTitle.d.ts +6 -0
- package/dist/types/src/Form/Form/FormTitle.d.ts.map +1 -0
- package/dist/types/src/Form/Form/FormTitle.stories.d.ts +6 -0
- package/dist/types/src/Form/Form/FormTitle.stories.d.ts.map +1 -0
- package/dist/types/src/Form/FormItem/FormItem.d.ts +9 -0
- package/dist/types/src/Form/FormItem/FormItem.d.ts.map +1 -0
- package/dist/types/src/Form/FormItem/FormItem.stories.d.ts +13 -0
- package/dist/types/src/Form/FormItem/FormItem.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Label/FormLabel.d.ts +14 -0
- package/dist/types/src/Form/Label/FormLabel.d.ts.map +1 -0
- package/dist/types/src/Form/Label/FormLabel.stories.d.ts +7 -0
- package/dist/types/src/Form/Label/FormLabel.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Label/Label.stories.d.ts +10 -0
- package/dist/types/src/Form/Label/Label.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Radio/FormRadio.d.ts +15 -0
- package/dist/types/src/Form/Radio/FormRadio.d.ts.map +1 -0
- package/dist/types/src/Form/Radio/FormRadio.stories.d.ts +6 -0
- package/dist/types/src/Form/Radio/FormRadio.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Radio/Radio.stories.d.ts +9 -0
- package/dist/types/src/Form/Radio/Radio.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Search/FormSearch.d.ts +13 -0
- package/dist/types/src/Form/Search/FormSearch.d.ts.map +1 -0
- package/dist/types/src/Form/Search/FormSearch.stories.d.ts +7 -0
- package/dist/types/src/Form/Search/FormSearch.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Search/Search.stories.d.ts +11 -0
- package/dist/types/src/Form/Search/Search.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Select/FormSelect.d.ts +18 -0
- package/dist/types/src/Form/Select/FormSelect.d.ts.map +1 -0
- package/dist/types/src/Form/Select/FormSelect.stories.d.ts +7 -0
- package/dist/types/src/Form/Select/FormSelect.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Select/Select.stories.d.ts +9 -0
- package/dist/types/src/Form/Select/Select.stories.d.ts.map +1 -0
- package/dist/types/src/Form/TextInput/FormText.d.ts +10 -0
- package/dist/types/src/Form/TextInput/FormText.d.ts.map +1 -0
- package/dist/types/src/Form/TextInput/FormText.stories.d.ts +6 -0
- package/dist/types/src/Form/TextInput/FormText.stories.d.ts.map +1 -0
- package/dist/types/src/Form/TextInput/InputDivider.stories.d.ts +8 -0
- package/dist/types/src/Form/TextInput/InputDivider.stories.d.ts.map +1 -0
- package/dist/types/src/Form/TextInput/TextInput.stories.d.ts +13 -0
- package/dist/types/src/Form/TextInput/TextInput.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Textarea/FormTextarea.d.ts +10 -0
- package/dist/types/src/Form/Textarea/FormTextarea.d.ts.map +1 -0
- package/dist/types/src/Form/Textarea/FormTextarea.stories.d.ts +6 -0
- package/dist/types/src/Form/Textarea/FormTextarea.stories.d.ts.map +1 -0
- package/dist/types/src/Form/Textarea/Textarea.stories.d.ts +8 -0
- package/dist/types/src/Form/Textarea/Textarea.stories.d.ts.map +1 -0
- package/dist/types/src/Layout/Footer/Footer.d.ts +12 -0
- package/dist/types/src/Layout/Footer/Footer.d.ts.map +1 -0
- package/dist/types/src/Layout/Footer/Footer.stories.d.ts +14 -0
- package/dist/types/src/Layout/Footer/Footer.stories.d.ts.map +1 -0
- package/dist/types/src/Layout/Grid/Grid.d.ts +13 -0
- package/dist/types/src/Layout/Grid/Grid.d.ts.map +1 -0
- package/dist/types/src/Layout/Grid/Grid.stories.d.ts +23 -0
- package/dist/types/src/Layout/Grid/Grid.stories.d.ts.map +1 -0
- package/dist/types/src/Layout/Grid/GridItem.stories.d.ts +15 -0
- package/dist/types/src/Layout/Grid/GridItem.stories.d.ts.map +1 -0
- package/dist/types/src/Layout/Header/Components/GlobalToggle.d.ts +12 -0
- package/dist/types/src/Layout/Header/Components/GlobalToggle.d.ts.map +1 -0
- package/dist/types/src/Layout/Header/Components/Logo.d.ts +9 -0
- package/dist/types/src/Layout/Header/Components/Logo.d.ts.map +1 -0
- package/dist/types/src/Layout/Header/Elements/GlobalToggle.d.ts +41 -0
- package/dist/types/src/Layout/Header/Elements/GlobalToggle.d.ts.map +1 -0
- package/dist/types/src/Layout/Header/Header.d.ts +13 -0
- package/dist/types/src/Layout/Header/Header.d.ts.map +1 -0
- package/dist/types/src/Layout/Header/Header.stories.d.ts +19 -0
- package/dist/types/src/Layout/Header/Header.stories.d.ts.map +1 -0
- package/dist/types/src/Layout/Header/header.entry.d.ts +2 -0
- package/dist/types/src/Layout/Header/header.entry.d.ts.map +1 -0
- package/dist/types/src/Layout/Masthead/Masthead.d.ts +11 -0
- package/dist/types/src/Layout/Masthead/Masthead.d.ts.map +1 -0
- package/dist/types/src/Layout/Masthead/Masthead.stories.d.ts +10 -0
- package/dist/types/src/Layout/Masthead/Masthead.stories.d.ts.map +1 -0
- package/dist/types/src/Layout/Page/Page.d.ts +10 -0
- package/dist/types/src/Layout/Page/Page.d.ts.map +1 -0
- package/dist/types/src/Layout/Page/Page.stories.d.ts +6 -0
- package/dist/types/src/Layout/Page/Page.stories.d.ts.map +1 -0
- package/dist/types/src/Layout/Section/Background.stories.d.ts +15 -0
- package/dist/types/src/Layout/Section/Background.stories.d.ts.map +1 -0
- package/dist/types/src/Layout/Section/Breakouts.stories.d.ts +11 -0
- package/dist/types/src/Layout/Section/Breakouts.stories.d.ts.map +1 -0
- package/dist/types/src/Layout/Section/Flow.stories.d.ts +11 -0
- package/dist/types/src/Layout/Section/Flow.stories.d.ts.map +1 -0
- package/dist/types/src/Layout/Section/Section.d.ts +16 -0
- package/dist/types/src/Layout/Section/Section.d.ts.map +1 -0
- package/dist/types/src/Layout/Section/Section.stories.d.ts +24 -0
- package/dist/types/src/Layout/Section/Section.stories.d.ts.map +1 -0
- package/dist/types/src/Layout/Section/SectionGrid.d.ts +17 -0
- package/dist/types/src/Layout/Section/SectionGrid.d.ts.map +1 -0
- package/dist/types/src/Layout/Section/SectionGrid.stories.d.ts +8 -0
- package/dist/types/src/Layout/Section/SectionGrid.stories.d.ts.map +1 -0
- package/dist/types/src/Layout/Sidebar/Sidebar.d.ts +12 -0
- package/dist/types/src/Layout/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/types/src/Layout/Sidebar/Sidebar.stories.d.ts +33 -0
- package/dist/types/src/Layout/Sidebar/Sidebar.stories.d.ts.map +1 -0
- package/dist/types/src/Utility/Context/ImageComponent.d.ts +22 -0
- package/dist/types/src/Utility/Context/ImageComponent.d.ts.map +1 -0
- package/dist/types/src/Utility/Context/LinkComponent.d.ts +22 -0
- package/dist/types/src/Utility/Context/LinkComponent.d.ts.map +1 -0
- package/dist/types/src/Utility/Elements/breakpoint-loader.d.ts +27 -0
- package/dist/types/src/Utility/Elements/breakpoint-loader.d.ts.map +1 -0
- package/dist/types/src/Utility/Elements/cookie-compliance.d.ts +57 -0
- package/dist/types/src/Utility/Elements/cookie-compliance.d.ts.map +1 -0
- package/dist/types/src/Utility/Elements/disclosure-widget.d.ts +33 -0
- package/dist/types/src/Utility/Elements/disclosure-widget.d.ts.map +1 -0
- package/dist/types/src/Utility/Elements/io-loader.d.ts +19 -0
- package/dist/types/src/Utility/Elements/io-loader.d.ts.map +1 -0
- package/dist/types/src/Utility/Elements/keyboard.d.ts +16 -0
- package/dist/types/src/Utility/Elements/keyboard.d.ts.map +1 -0
- package/dist/types/src/Utility/Elements/validators.d.ts +133 -0
- package/dist/types/src/Utility/Elements/validators.d.ts.map +1 -0
- package/dist/types/src/Utility/Hooks/useLocalStorage.d.ts +8 -0
- package/dist/types/src/Utility/Hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/types/src/Utility/Hooks/useMediaQuery.d.ts +3 -0
- package/dist/types/src/Utility/Hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/types/src/Utility/Hooks/useToggle.d.ts +3 -0
- package/dist/types/src/Utility/Hooks/useToggle.d.ts.map +1 -0
- package/dist/types/src/Utility/Hooks/useUrlParams.d.ts +8 -0
- package/dist/types/src/Utility/Hooks/useUrlParams.d.ts.map +1 -0
- package/dist/types/src/Utility/utilities.d.ts +36 -0
- package/dist/types/src/Utility/utilities.d.ts.map +1 -0
- package/dist/types/src/elements.d.ts +15 -0
- package/dist/types/src/elements.d.ts.map +1 -0
- package/dist/types/src/enums.d.ts +134 -0
- package/dist/types/src/enums.d.ts.map +1 -0
- package/dist/types/src/react.d.ts +77 -0
- package/dist/types/src/react.d.ts.map +1 -0
- package/dist/types/src/tokens.d.ts +200 -0
- package/dist/types/src/tokens.d.ts.map +1 -0
- package/dist/types/tokens.d.ts +147 -0
- package/dist/types/tokens.d.ts.map +1 -0
- package/package.json +84 -55
- package/src/Atom/Background/README.md +52 -0
- package/src/Atom/Background/__snapshots__/Background.stories.ts.snap +341 -41
- package/src/Atom/Background/_background.css +32 -22
- package/src/Atom/Background/backgrounds.twig +69 -9
- package/src/Atom/Blockquote/README.md +27 -0
- package/src/Atom/Blockquote/_blockquote.css +6 -1
- package/src/Atom/Button/Button.figma.ts +70 -0
- package/src/Atom/Button/Button.stories.ts +5 -1
- package/src/Atom/Button/Button.stories.tsx +2 -1
- package/src/Atom/Button/Button.tsx +16 -10
- package/src/Atom/Button/README.md +119 -17
- package/src/Atom/Button/_buttons-styles.css +39 -21
- package/src/Atom/Button/_buttons.css +4 -3
- package/src/Atom/DefinitionList/DefinitionList.figma.ts +26 -0
- package/src/Atom/DefinitionList/DefinitionList.stories.ts +11 -11
- package/src/Atom/DefinitionList/DefinitionListItem.figma.ts +19 -0
- package/src/Atom/DefinitionList/DefinitionListItem.stories.ts +43 -0
- package/src/Atom/DefinitionList/README.md +63 -0
- package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.ts.snap +14 -13
- package/src/Atom/DefinitionList/__snapshots__/DefinitionListItem.stories.ts.snap +9 -0
- package/src/Atom/DefinitionList/definition-list-item.twig +4 -0
- package/src/Atom/DefinitionList/definition-list.twig +1 -6
- package/src/Atom/Heading/Heading.figma.ts +49 -0
- package/src/Atom/Heading/Heading.stories.ts +19 -2
- package/src/Atom/Heading/Heading.stories.tsx +9 -4
- package/src/Atom/Heading/Heading.tsx +26 -4
- package/src/Atom/Heading/README.md +125 -0
- package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +17 -0
- package/src/Atom/Heading/_headings.css +15 -3
- package/src/Atom/Heading/heading.twig +11 -7
- package/src/Atom/Heading/twig/heading-example.twig +13 -0
- package/src/Atom/Icon/Icon.figma.ts +43 -0
- package/src/Atom/Icon/IconArrowLeft.figma.ts +14 -0
- package/src/Atom/Icon/IconArrowRight.figma.ts +14 -0
- package/src/Atom/Icon/IconChevronDown.figma.ts +18 -0
- package/src/Atom/Icon/IconChevronLeft.figma.ts +14 -0
- package/src/Atom/Icon/IconChevronRight.figma.ts +14 -0
- package/src/Atom/Icon/IconError.figma.ts +14 -0
- package/src/Atom/Icon/IconExternalLink.figma.ts +14 -0
- package/src/Atom/Icon/IconInfo.figma.ts +14 -0
- package/src/Atom/Icon/IconSearch.figma.ts +16 -0
- package/src/Atom/Icon/IconSuccess.figma.ts +14 -0
- package/src/Atom/Icon/IconWarning.figma.ts +14 -0
- package/src/Atom/Icon/README.md +120 -3
- package/src/Atom/Icon/_icon.css +5 -5
- package/src/Atom/Icon/_mixin-icon.css +1 -1
- package/src/Atom/Image/README.md +86 -0
- package/src/Atom/InlineSvg/README.md +65 -0
- package/src/Atom/InlineSvg/inline-svg.twig +8 -0
- package/src/Atom/Link/Link.figma.ts +59 -0
- package/src/Atom/Link/Link.tsx +8 -0
- package/src/Atom/Link/README.md +110 -0
- package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +5 -5
- package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +1 -1
- package/src/Atom/Link/_links.css +1 -1
- package/src/Atom/Link/link.twig +14 -2
- package/src/Atom/LinkedImage/README.md +42 -0
- package/src/Atom/LinkedImage/linked-image.twig +5 -1
- package/src/Atom/Media/Media.figma.ts +31 -0
- package/src/Atom/Media/Media.stories.ts +12 -1
- package/src/Atom/Media/Media.stories.tsx +3 -3
- package/src/Atom/Media/Media.tsx +1 -0
- package/src/Atom/Media/README.md +95 -0
- package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +30 -16
- package/src/Atom/Media/media.twig +6 -3
- package/src/Atom/Spacing/README.md +51 -0
- package/src/Atom/Spacing/Spacing.stories.ts +16 -25
- package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +2 -2
- package/src/Atom/Table/README.md +80 -0
- package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +28 -28
- package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +8 -8
- package/src/Atom/Table/table-responsive.twig +8 -8
- package/src/Atom/Table/table.twig +7 -7
- package/src/Atom/Text/README.md +73 -0
- package/src/Atom/Text/Text.figma.ts +35 -0
- package/src/Atom/Text/Text.stories.ts +2 -2
- package/src/Atom/Text/Text.stories.tsx +2 -2
- package/src/Atom/Text/Text.tsx +3 -3
- package/src/Atom/Text/__snapshots__/Text.stories.ts.snap +22 -21
- package/src/Atom/Text/_text-styles.css +165 -0
- package/src/Atom/Text/twig/text-styles-example.twig +22 -0
- package/src/Atom/Video/README.md +67 -0
- package/src/Atom/Video/Video.figma.ts +18 -0
- package/src/Atom/Video/Video.tsx +10 -2
- package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +2 -2
- package/src/Atom/Video/video.twig +2 -1
- package/src/Atom/_base.css +1 -7
- package/src/Atom/_generic.css +7 -0
- package/src/Atom/base.css +1 -1
- package/src/Component/Accordion/Accordion.figma.ts +40 -0
- package/src/Component/Accordion/Accordion.stories.ts +46 -5
- package/src/Component/Accordion/Accordion.tsx +15 -13
- package/src/Component/Accordion/AccordionItem.stories.ts +44 -2
- package/src/Component/Accordion/Components/AccordionContent.figma.ts +17 -0
- package/src/Component/Accordion/Components/AccordionContent.tsx +4 -6
- package/src/Component/Accordion/Components/AccordionTitle.figma.ts +28 -0
- package/src/Component/Accordion/Components/AccordionTitle.tsx +2 -5
- package/src/Component/Accordion/Components/AccordionTitleIcon.figma.ts +16 -0
- package/src/Component/Accordion/README.md +172 -20
- package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +47 -9
- package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +2 -2
- package/src/Component/Accordion/__snapshots__/AccordionItem.stories.ts.snap +1 -1
- package/src/Component/Accordion/accordion.css +2 -13
- package/src/Component/Accordion/accordion.twig +1 -3
- package/src/Component/Breadcrumb/Breadcrumb.figma.ts +20 -0
- package/src/Component/Breadcrumb/Breadcrumb.tsx +16 -7
- package/src/Component/Breadcrumb/README.md +148 -0
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +1 -1
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +2 -2
- package/src/Component/Breadcrumb/breadcrumb.css +7 -6
- package/src/Component/Callout/README.md +100 -0
- package/src/Component/Card/Card.figma.ts +59 -0
- package/src/Component/Card/Card.stories.ts +16 -10
- package/src/Component/Card/Components/CardContent.figma.ts +28 -0
- package/src/Component/Card/Components/CardContent.tsx +1 -1
- package/src/Component/Card/Components/CardMedia.figma.ts +15 -0
- package/src/Component/Card/README.md +262 -7
- package/src/Component/Card/__snapshots__/Card.stories.ts.snap +25 -22
- package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +3 -3
- package/src/Component/Card/card.css +24 -12
- package/src/Component/Carousel/Carousel.figma.ts +32 -0
- package/src/Component/Carousel/Carousel.stories.ts +195 -5
- package/src/Component/Carousel/Carousel.stories.tsx +214 -0
- package/src/Component/Carousel/Carousel.tsx +261 -0
- package/src/Component/Carousel/Elements/Carousel.ts +94 -52
- package/src/Component/Carousel/README.md +243 -0
- package/src/Component/Carousel/__snapshots__/Carousel.stories.ts.snap +162 -202
- package/src/Component/Carousel/__snapshots__/Carousel.stories.tsx.snap +9 -0
- package/src/Component/Carousel/carousel.css +16 -3
- package/src/Component/Carousel/carousel.twig +10 -11
- package/src/Component/ContentBlock/Components/ContentBlockContent.figma.ts +28 -0
- package/src/Component/ContentBlock/Components/ContentBlockMedia.figma.ts +14 -0
- package/src/Component/ContentBlock/ContentBlock.figma.ts +18 -0
- package/src/Component/ContentBlock/ContentBlock.stories.ts +13 -1
- package/src/Component/ContentBlock/README.md +176 -8
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +18 -24
- package/src/Component/CookieConsent/CookieConsent.stories.ts +36 -0
- package/src/Component/CookieConsent/CookieConsent.stories.tsx +24 -0
- package/src/Component/CookieConsent/CookieConsent.tsx +83 -0
- package/src/Component/CookieConsent/Elements/CookieConsent.ts +38 -0
- package/src/Component/CookieConsent/README.md +150 -0
- package/src/Component/CookieConsent/__snapshots__/CookieConsent.stories.ts.snap +34 -0
- package/src/Component/CookieConsent/__snapshots__/CookieConsent.stories.tsx.snap +5 -0
- package/src/Component/CookieConsent/cookie-consent.css +44 -0
- package/src/Component/CookieConsent/cookie-consent.entry.js +1 -0
- package/src/Component/CookieConsent/cookie-consent.twig +27 -0
- package/src/Component/Dialog/Components/DialogCloseButton.figma.ts +14 -0
- package/src/Component/Dialog/Components/DialogCloseButton.tsx +0 -1
- package/src/Component/Dialog/Components/DialogContent.figma.ts +19 -0
- package/src/Component/Dialog/Components/DialogContent.tsx +11 -3
- package/src/Component/Dialog/Dialog.figma.ts +40 -0
- package/src/Component/Dialog/Dialog.stories.ts +39 -3
- package/src/Component/Dialog/Dialog.stories.tsx +25 -1
- package/src/Component/Dialog/Dialog.tsx +13 -7
- package/src/Component/Dialog/README.md +191 -17
- package/src/Component/Dialog/__snapshots__/Dialog.stories.ts.snap +19 -19
- package/src/Component/Dialog/__snapshots__/Dialog.stories.tsx.snap +1 -1
- package/src/Component/Dialog/dialog.css +0 -5
- package/src/Component/Dialog/dialog.twig +7 -1
- package/src/Component/DropMenu/Components/DropMenuContext.tsx +74 -83
- package/src/Component/DropMenu/Components/DropMenuItem.figma.ts +20 -0
- package/src/Component/DropMenu/Components/DropMenuItem.tsx +26 -3
- package/src/Component/DropMenu/Components/DropMenuTrigger.figma.ts +22 -0
- package/src/Component/DropMenu/DropMenu.figma.ts +28 -0
- package/src/Component/DropMenu/DropMenu.stories.ts +50 -0
- package/src/Component/DropMenu/DropMenu.stories.tsx +49 -1
- package/src/Component/DropMenu/DropMenu.tsx +13 -6
- package/src/Component/DropMenu/Elements/DropMenu.ts +39 -2
- package/src/Component/DropMenu/README.md +249 -15
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +1 -1
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +1 -1
- package/src/Component/DropMenu/drop-menu.css +1 -0
- package/src/Component/Filters/Elements/Filters.ts +106 -2
- package/src/Component/Filters/FilterItem.figma.ts +31 -0
- package/src/Component/Filters/FilterItem.stories.ts +45 -8
- package/src/Component/Filters/FilterItem.stories.tsx +75 -0
- package/src/Component/Filters/FilterItem.tsx +120 -0
- package/src/Component/Filters/Filters.figma.ts +43 -0
- package/src/Component/Filters/Filters.stories.ts +33 -22
- package/src/Component/Filters/Filters.stories.tsx +141 -0
- package/src/Component/Filters/Filters.tsx +176 -0
- package/src/Component/Filters/README.md +389 -0
- package/src/Component/Filters/__snapshots__/FilterItem.stories.ts.snap +18 -14
- package/src/Component/Filters/__snapshots__/FilterItem.stories.tsx.snap +7 -0
- package/src/Component/Filters/__snapshots__/Filters.stories.ts.snap +50 -53
- package/src/Component/Filters/__snapshots__/Filters.stories.tsx.snap +7 -0
- package/src/Component/Filters/filter-item.twig +6 -16
- package/src/Component/Filters/filters.css +17 -0
- package/src/Component/Filters/filters.twig +2 -6
- package/src/Component/Gallery/Components/GalleryTrigger.tsx +30 -0
- package/src/Component/Gallery/Elements/Gallery.ts +45 -0
- package/src/Component/Gallery/Gallery.stories.ts +62 -0
- package/src/Component/Gallery/Gallery.stories.tsx +58 -0
- package/src/Component/Gallery/Gallery.tsx +92 -0
- package/src/Component/Gallery/README.md +221 -0
- package/src/Component/Gallery/__snapshots__/Gallery.stories.ts.snap +92 -0
- package/src/Component/Gallery/__snapshots__/Gallery.stories.tsx.snap +5 -0
- package/src/Component/Gallery/gallery.css +53 -0
- package/src/Component/Gallery/gallery.entry.js +2 -0
- package/src/Component/Gallery/gallery.twig +13 -0
- package/src/Component/GlobalAlert/Elements/ClosableAlert.ts +2 -0
- package/src/Component/GlobalAlert/GlobalAlert.figma.ts +31 -0
- package/src/Component/GlobalAlert/GlobalAlert.tsx +16 -2
- package/src/Component/GlobalAlert/README.md +163 -13
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +2 -2
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +2 -2
- package/src/Component/GlobalAlert/global-alert.css +1 -0
- package/src/Component/GlobalAlert/global-alert.twig +8 -3
- package/src/Component/HeroBanner/Components/HeroBannerAside.figma.ts +20 -0
- package/src/Component/HeroBanner/Components/HeroBannerAside.tsx +21 -0
- package/src/Component/HeroBanner/Components/HeroBannerContent.figma.ts +17 -0
- package/src/Component/HeroBanner/Components/HeroBannerContent.tsx +14 -0
- package/src/Component/HeroBanner/HeroBanner.figma.ts +36 -0
- package/src/Component/HeroBanner/HeroBanner.stories.ts +18 -1
- package/src/Component/HeroBanner/HeroBanner.stories.tsx +63 -18
- package/src/Component/HeroBanner/HeroBanner.tsx +16 -14
- package/src/Component/HeroBanner/README.md +234 -0
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +8 -10
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.tsx.snap +4 -2
- package/src/Component/HeroBanner/hero-banner.css +5 -0
- package/src/Component/HeroSearch/HeroSearch.figma.ts +57 -0
- package/src/Component/HeroSearch/HeroSearch.stories.ts +17 -3
- package/src/Component/HeroSearch/HeroSearch.stories.tsx +39 -11
- package/src/Component/HeroSearch/HeroSearch.tsx +26 -22
- package/src/Component/HeroSearch/README.md +217 -0
- package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.ts.snap +7 -11
- package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.tsx.snap +4 -2
- package/src/Component/InPageAlert/InPageAlert.figma.ts +37 -0
- package/src/Component/InPageAlert/InPageAlert.tsx +2 -2
- package/src/Component/InPageAlert/README.md +172 -14
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.tsx.snap +4 -4
- package/src/Component/InPageNavigation/InPageNavigation.figma.ts +16 -0
- package/src/Component/InPageNavigation/InPageNavigation.stories.ts +11 -7
- package/src/Component/InPageNavigation/InPageNavigation.stories.tsx +14 -16
- package/src/Component/InPageNavigation/InPageNavigation.tsx +5 -4
- package/src/Component/InPageNavigation/README.md +169 -14
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +1 -1
- package/src/Component/InPageNavigation/in-page-navigation.css +12 -0
- package/src/Component/InPageNavigation/in-page-navigation.twig +4 -6
- package/src/Component/LinkList/LinkList.figma.ts +17 -0
- package/src/Component/LinkList/LinkList.stories.ts +7 -4
- package/src/Component/LinkList/LinkListItem.figma.ts +20 -0
- package/src/Component/LinkList/README.md +171 -10
- package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +10 -14
- package/src/Component/LinkList/link-list.twig +1 -3
- package/src/Component/ListItem/Components/ListItemContent.figma.ts +28 -0
- package/src/Component/ListItem/Components/ListItemMedia.figma.ts +14 -0
- package/src/Component/ListItem/ListItem.figma.ts +20 -0
- package/src/Component/ListItem/ListItem.stories.ts +12 -8
- package/src/Component/ListItem/ListItem.stories.tsx +2 -1
- package/src/Component/ListItem/README.md +233 -0
- package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +12 -21
- package/src/Component/ListItem/list-item.css +18 -10
- package/src/Component/ListItem/list-item.twig +0 -2
- package/src/Component/Navigation/Components/DropdownLevel.tsx +10 -10
- package/src/Component/Navigation/Dropdown.stories.tsx +27 -1
- package/src/Component/Navigation/Elements/Navigation.ts +9 -7
- package/src/Component/Navigation/Navigation.figma.ts +24 -0
- package/src/Component/Navigation/Navigation.stories.ts +28 -0
- package/src/Component/Navigation/Navigation.tsx +1 -1
- package/src/Component/Navigation/README.md +270 -14
- package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +1 -1
- package/src/Component/Navigation/_navigation.css +1 -1
- package/src/Component/Pagination/Components/PaginationContext.tsx +20 -4
- package/src/Component/Pagination/Components/PaginationItem.figma.ts +30 -0
- package/src/Component/Pagination/Components/PaginationItem.tsx +32 -28
- package/src/Component/Pagination/Pagination.figma.ts +24 -0
- package/src/Component/Pagination/Pagination.stories.ts +44 -6
- package/src/Component/Pagination/Pagination.stories.tsx +58 -2
- package/src/Component/Pagination/Pagination.tsx +39 -20
- package/src/Component/Pagination/README.md +205 -9
- package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +16 -19
- package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +1 -1
- package/src/Component/Pagination/pagination.css +57 -16
- package/src/Component/Pagination/pagination.twig +14 -13
- package/src/Component/Popover/Components/PopoverTrigger.tsx +58 -0
- package/src/Component/Popover/Elements/Popover.ts +11 -10
- package/src/Component/Popover/Popover.figma.ts +26 -0
- package/src/Component/Popover/Popover.stories.ts +2 -1
- package/src/Component/Popover/Popover.stories.tsx +84 -0
- package/src/Component/Popover/Popover.tsx +84 -0
- package/src/Component/Popover/README.md +224 -0
- package/src/Component/Popover/__snapshots__/Popover.stories.ts.snap +39 -39
- package/src/Component/Popover/__snapshots__/Popover.stories.tsx.snap +7 -0
- package/src/Component/Popover/polyfills.js +45 -10
- package/src/Component/Popover/popover.css +1 -0
- package/src/Component/Popover/popover.twig +0 -1
- package/src/Component/ResultsBar/Components/ResultsBarInfo.figma.ts +21 -0
- package/src/Component/ResultsBar/Components/ResultsBarSort.figma.ts +15 -0
- package/src/Component/ResultsBar/Components/ResultsBarSort.tsx +27 -8
- package/src/Component/ResultsBar/README.md +158 -0
- package/src/Component/ResultsBar/ResultsBar.figma.ts +17 -0
- package/src/Component/ResultsBar/ResultsBar.stories.ts +9 -0
- package/src/Component/ResultsBar/ResultsBar.stories.tsx +1 -14
- package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.ts.snap +3 -0
- package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.tsx.snap +1 -1
- package/src/Component/ResultsBar/results-bar.twig +3 -0
- package/src/Component/SideNavigation/Components/SideNavigationTree.figma.ts +26 -0
- package/src/Component/SideNavigation/Components/SideNavigationTree.tsx +38 -0
- package/src/Component/SideNavigation/README.md +212 -0
- package/src/Component/SideNavigation/SideNavigation.figma.ts +18 -0
- package/src/Component/SideNavigation/SideNavigation.stories.tsx +68 -0
- package/src/Component/SideNavigation/SideNavigation.tsx +34 -0
- package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.tsx.snap +3 -0
- package/src/Component/SideNavigation/twig/side-navigation-story.twig +2 -1
- package/src/Component/SocialLinks/README.md +122 -0
- package/src/Component/SocialLinks/SocialLinks.stories.ts +4 -4
- package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +2 -4
- package/src/Component/SocialLinks/social-links.css +2 -0
- package/src/Component/SocialLinks/social-links.twig +1 -3
- package/src/Component/SocialShare/README.md +171 -0
- package/src/Component/SocialShare/SocialShare.figma.ts +21 -0
- package/src/Component/SocialShare/SocialShare.stories.ts +1 -0
- package/src/Component/SocialShare/SocialShare.stories.tsx +1 -0
- package/src/Component/SocialShare/SocialShare.tsx +33 -7
- package/src/Component/SocialShare/__snapshots__/SocialShare.stories.ts.snap +5 -5
- package/src/Component/SocialShare/__snapshots__/SocialShare.stories.tsx.snap +3 -3
- package/src/Component/SocialShare/social-share.css +19 -0
- package/src/Component/SocialShare/social-share.twig +5 -5
- package/src/Component/Steps/README.md +179 -0
- package/src/Component/Steps/StepItem.stories.ts +4 -1
- package/src/Component/Steps/Steps.stories.ts +6 -6
- package/src/Component/Steps/__snapshots__/StepItem.stories.ts.snap +4 -4
- package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +56 -70
- package/src/Component/Steps/step-item.twig +3 -2
- package/src/Component/Steps/steps.css +5 -0
- package/src/Component/Steps/steps.twig +3 -5
- package/src/Component/Sticky/Elements/Sticky.ts +4 -4
- package/src/Component/Sticky/README.md +198 -16
- package/src/Component/Sticky/Sticky.figma.ts +20 -0
- package/src/Component/Sticky/Sticky.tsx +39 -8
- package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +1 -1
- package/src/Component/Sticky/__snapshots__/Sticky.stories.tsx.snap +1 -1
- package/src/Component/Sticky/sticky.css +4 -4
- package/src/Component/Tabs/Components/Tab.figma.ts +20 -0
- package/src/Component/Tabs/Components/Tab.tsx +28 -2
- package/src/Component/Tabs/Components/TabList.tsx +11 -5
- package/src/Component/Tabs/Components/TabPanel.figma.ts +21 -0
- package/src/Component/Tabs/Components/TabPanel.tsx +1 -2
- package/src/Component/Tabs/Elements/Tabs.ts +28 -22
- package/src/Component/Tabs/README.md +210 -16
- package/src/Component/Tabs/Tabs.figma.ts +41 -0
- package/src/Component/Tabs/Tabs.stories.ts +59 -5
- package/src/Component/Tabs/Tabs.stories.tsx +67 -4
- package/src/Component/Tabs/Tabs.tsx +12 -4
- package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +10 -14
- package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +1 -1
- package/src/Component/Tabs/tabs.css +1 -0
- package/src/Component/Tabs/tabs.twig +1 -3
- package/src/Component/Tag/README.md +198 -9
- package/src/Component/Tag/Tag.figma.ts +25 -0
- package/src/Component/Tag/Tag.stories.ts +23 -21
- package/src/Component/Tag/Tag.tsx +30 -4
- package/src/Component/Tag/TagItem.stories.ts +101 -0
- package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +58 -27
- package/src/Component/Tag/__snapshots__/TagItem.stories.ts.snap +39 -0
- package/src/Component/Tag/tag-item.twig +25 -0
- package/src/Component/Tag/tag.css +32 -1
- package/src/Component/Tag/tags.twig +1 -19
- package/src/Component/UtilityList/Elements/UtilityList.ts +6 -2
- package/src/Component/UtilityList/README.md +173 -0
- package/src/Component/UtilityList/__snapshots__/UtilityList.stories.ts.snap +9 -9
- package/src/Form/Autocomplete/Autocomplete.stories.ts +213 -0
- package/src/Form/Autocomplete/Autocomplete.stories.tsx +149 -0
- package/src/Form/Autocomplete/Autocomplete.tsx +272 -0
- package/src/Form/Autocomplete/Elements/Autocomplete.ts +235 -0
- package/src/Form/Autocomplete/README.md +205 -0
- package/src/Form/Autocomplete/__snapshots__/Autocomplete.stories.ts.snap +68 -0
- package/src/Form/Autocomplete/__snapshots__/Autocomplete.stories.tsx.snap +9 -0
- package/src/Form/Autocomplete/autocomplete.css +60 -0
- package/src/Form/Autocomplete/autocomplete.entry.js +1 -0
- package/src/Form/Autocomplete/autocomplete.twig +44 -0
- package/src/Form/Checkbox/Checkbox.figma.ts +32 -0
- package/src/Form/Checkbox/FormCheckbox.figma.ts +28 -0
- package/src/Form/Checkbox/FormCheckbox.tsx +5 -8
- package/src/Form/Checkbox/README.md +183 -0
- package/src/Form/Checkbox/__snapshots__/FormCheckbox.stories.tsx.snap +1 -1
- package/src/Form/Description/FormDescription.figma.ts +28 -0
- package/src/Form/Description/FormDescription.tsx +32 -13
- package/src/Form/Description/__snapshots__/Description.stories.ts.snap +1 -1
- package/src/Form/Description/__snapshots__/FormDescription.stories.tsx.snap +1 -1
- package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +2 -2
- package/src/Form/Description/form-description.twig +1 -1
- package/src/Form/Description/form-status.twig +1 -1
- package/src/Form/Form/form.twig +2 -6
- package/src/Form/FormItem/FormItem.figma.ts +30 -0
- package/src/Form/FormItem/FormItem.tsx +7 -2
- package/src/Form/FormItem/README.md +122 -0
- package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +33 -21
- package/src/Form/FormItem/form-item.twig +1 -7
- package/src/Form/Label/FormLabel.figma.ts +26 -0
- package/src/Form/Label/FormLabel.tsx +2 -2
- package/src/Form/Label/Label.stories.ts +12 -2
- package/src/Form/Label/__snapshots__/FormLabel.stories.tsx.snap +1 -1
- package/src/Form/Label/__snapshots__/Label.stories.ts.snap +17 -3
- package/src/Form/Label/label.twig +4 -1
- package/src/Form/README.md +207 -6
- package/src/Form/Radio/FormRadio.figma.ts +27 -0
- package/src/Form/Radio/FormRadio.tsx +4 -6
- package/src/Form/Radio/Radio.figma.ts +29 -0
- package/src/Form/Radio/Radio.stories.ts +8 -4
- package/src/Form/Radio/__snapshots__/FormRadio.stories.tsx.snap +1 -1
- package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +12 -10
- package/src/Form/Search/FormSearch.figma.ts +25 -0
- package/src/Form/Search/FormSearch.stories.tsx +19 -0
- package/src/Form/Search/FormSearch.tsx +46 -0
- package/src/Form/Search/README.md +91 -0
- package/src/Form/Search/__snapshots__/FormSearch.stories.tsx.snap +3 -0
- package/src/Form/Select/FormSelect.figma.ts +27 -0
- package/src/Form/Select/FormSelect.stories.tsx +17 -0
- package/src/Form/Select/FormSelect.tsx +12 -5
- package/src/Form/Select/Select.stories.ts +12 -0
- package/src/Form/Select/__snapshots__/FormSelect.stories.tsx.snap +3 -1
- package/src/Form/Select/__snapshots__/Select.stories.ts.snap +24 -0
- package/src/Form/Select/input-select.twig +3 -0
- package/src/Form/TextInput/FormText.figma.ts +24 -0
- package/src/Form/TextInput/FormText.tsx +1 -1
- package/src/Form/TextInput/__snapshots__/FormText.stories.tsx.snap +1 -1
- package/src/Form/TextInput/input-text-icon.twig +3 -3
- package/src/Form/Textarea/FormTextarea.figma.ts +24 -0
- package/src/Form/Textarea/FormTextarea.stories.tsx +1 -1
- package/src/Form/Textarea/FormTextarea.tsx +1 -1
- package/src/Form/Textarea/__snapshots__/FormTextarea.stories.tsx.snap +1 -1
- package/src/Form/form.css +75 -8
- package/src/Introduction.mdx +15 -0
- package/src/Layout/Footer/Footer.figma.ts +28 -0
- package/src/Layout/Footer/Footer.stories.ts +18 -5
- package/src/Layout/Footer/Footer.stories.tsx +1 -1
- package/src/Layout/Footer/Footer.tsx +9 -16
- package/src/Layout/Footer/README.md +118 -0
- package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +14 -22
- package/src/Layout/Footer/__snapshots__/Footer.stories.tsx.snap +2 -2
- package/src/Layout/Footer/footer.css +0 -6
- package/src/Layout/Footer/footer.twig +1 -3
- package/src/Layout/Grid/Grid.figma.ts +32 -0
- package/src/Layout/Grid/Grid.stories.ts +16 -6
- package/src/Layout/Grid/README.md +162 -0
- package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +5 -17
- package/src/Layout/Grid/grid.css +0 -6
- package/src/Layout/Grid/grid.twig +1 -3
- package/src/Layout/Header/Components/GlobalToggle.tsx +4 -2
- package/src/Layout/Header/Elements/GlobalToggle.ts +53 -9
- package/src/Layout/Header/Header.figma.ts +40 -0
- package/src/Layout/Header/Header.stories.ts +43 -4
- package/src/Layout/Header/Header.stories.tsx +30 -1
- package/src/Layout/Header/Header.tsx +26 -17
- package/src/Layout/Header/README.md +141 -0
- package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +17 -14
- package/src/Layout/Header/__snapshots__/Header.stories.tsx.snap +1 -1
- package/src/Layout/Header/_header.css +0 -6
- package/src/Layout/Header/_toggles.css +4 -4
- package/src/Layout/Header/header.twig +5 -9
- package/src/Layout/Masthead/Masthead.figma.ts +27 -0
- package/src/Layout/Masthead/Masthead.stories.ts +17 -3
- package/src/Layout/Masthead/Masthead.stories.tsx +55 -0
- package/src/Layout/Masthead/Masthead.tsx +59 -0
- package/src/Layout/Masthead/README.md +92 -0
- package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +8 -12
- package/src/Layout/Masthead/__snapshots__/Masthead.stories.tsx.snap +7 -0
- package/src/Layout/Masthead/masthead.css +1 -9
- package/src/Layout/Masthead/masthead.twig +2 -6
- package/src/Layout/Page/Page.figma.ts +21 -0
- package/src/Layout/Page/Page.stories.tsx +1 -1
- package/src/Layout/Page/Page.tsx +7 -2
- package/src/Layout/Page/README.md +83 -9
- package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +1 -1
- package/src/Layout/Page/page.twig +6 -6
- package/src/Layout/Section/Background.stories.ts +3 -6
- package/src/Layout/Section/README.md +144 -0
- package/src/Layout/Section/Section.figma.ts +47 -0
- package/src/Layout/Section/Section.stories.tsx +6 -6
- package/src/Layout/Section/Section.tsx +8 -5
- package/src/Layout/Section/SectionGrid.stories.tsx +4 -4
- package/src/Layout/Section/SectionGrid.tsx +5 -5
- package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +2 -2
- package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +4 -4
- package/src/Layout/Section/section.css +7 -3
- package/src/Layout/Sidebar/README.md +126 -0
- package/src/Layout/Sidebar/Sidebar.figma.ts +23 -0
- package/src/Layout/Sidebar/Sidebar.stories.ts +9 -0
- package/src/Layout/Sidebar/Sidebar.tsx +2 -2
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.tsx.snap +3 -3
- package/src/Layout/Sidebar/sidebar.css +18 -15
- package/src/Utility/Elements/breakpoint-loader.ts +12 -4
- package/src/Utility/Elements/cookie-compliance.ts +60 -22
- package/src/Utility/Elements/disclosure-widget.ts +10 -2
- package/src/Utility/Elements/io-loader.ts +12 -3
- package/src/Utility/Elements/validators.ts +201 -0
- package/src/Utility/Hooks/useLocalStorage.ts +16 -6
- package/src/Utility/Hooks/useMediaQuery.ts +4 -4
- package/src/Utility/README.md +33 -4
- package/src/Utility/_mixins.css +19 -0
- package/src/Utility/global.d.ts +10 -0
- package/src/Utility/print.css +324 -0
- package/src/Utility/utilities.css +3 -9
- package/src/Utility/utilities.ts +35 -12
- package/src/_custom-media.css +1 -1
- package/src/constants.css +24 -11
- package/src/elements.ts +4 -0
- package/src/enums.ts +19 -127
- package/src/react.ts +23 -1
- package/src/tokens.js +23 -5
- package/tools/audit-parity.aliases.json +5 -0
- package/tools/audit-parity.mjs +209 -0
- package/tools/lib/barrel.mjs +76 -0
- package/tools/lib/extract-classnames.mjs +0 -0
- package/tools/lib/extract-react-props.mjs +148 -0
- package/tools/lib/extract-twig-props.mjs +124 -0
- package/tools/lib/naming.mjs +53 -0
- package/tools/lib/split-balanced.mjs +139 -0
- package/tools/lib/walk-components.mjs +115 -0
- package/tools/lib/write.mjs +50 -0
- package/tools/lint-classnames.allowlist.json +7 -0
- package/tools/lint-classnames.mjs +241 -0
- package/tools/scaffold-component.mjs +280 -0
- package/tools/templates/css.mjs +25 -0
- package/tools/templates/entry.mjs +4 -0
- package/tools/templates/figma.mjs +17 -0
- package/tools/templates/react.mjs +16 -0
- package/tools/templates/readme.mjs +80 -0
- package/tools/templates/storiesHtml.mjs +22 -0
- package/tools/templates/storiesReact.mjs +19 -0
- package/tools/templates/twig.mjs +9 -0
- package/tools/templates/webComponent.mjs +37 -0
- package/dist/build/chunks/Accordion-BzKLBuWL.js +0 -42
- package/dist/build/chunks/DropMenu-BckyZaZM.js +0 -43
- package/dist/build/chunks/Popover-hTv4lVea.js +0 -27
- package/dist/build/chunks/polyfills-QW1VbwlO.js +0 -562
- package/dist/build/chunks/popover-Dk48Vm_U.js +0 -407
- package/dist/build/chunks/utilities-DepaJdUg.js +0 -242
- package/dist/build/container-grid.css +0 -1
- package/src/Atom/Text/_text-sizes.css +0 -115
- package/src/Atom/Text/text-styles-example.twig +0 -21
- package/src/Atom/_print.css +0 -9
- package/src/Component/Card/card-grid.twig +0 -10
- package/src/Layout/Grid/container-grid.css +0 -191
- package/src/Layout/Header/Components/Logo.tsx +0 -17
- package/src/Utility/Hooks/useToggle.ts +0 -14
- /package/src/Atom/Text/{rich-text.twig → twig/rich-text.twig} +0 -0
- /package/src/Atom/Text/{text-style.twig → twig/text-style.twig} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/react-vite"
|
|
2
|
+
import { expect } from "storybook/test"
|
|
2
3
|
import { Fragment } from "react"
|
|
3
4
|
import Component from "./Tabs"
|
|
4
5
|
import TabDropMenu from "./Components/TabDropMenu"
|
|
@@ -14,9 +15,27 @@ import { Page } from "../../../.storybook-react/decorators"
|
|
|
14
15
|
const defaultChildren = (
|
|
15
16
|
<Fragment>
|
|
16
17
|
<TabDropMenu>
|
|
17
|
-
<DropMenuItem
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
<DropMenuItem
|
|
19
|
+
id="tab-1"
|
|
20
|
+
label="Tab 1"
|
|
21
|
+
aria-controls="tab-1"
|
|
22
|
+
role="tab"
|
|
23
|
+
aria-selected={true}
|
|
24
|
+
/>
|
|
25
|
+
<DropMenuItem
|
|
26
|
+
id="tab-2"
|
|
27
|
+
label="Tab 2"
|
|
28
|
+
aria-controls="tab-2"
|
|
29
|
+
role="tab"
|
|
30
|
+
aria-selected={false}
|
|
31
|
+
/>
|
|
32
|
+
<DropMenuItem
|
|
33
|
+
id="tab-3"
|
|
34
|
+
label="Tab 3"
|
|
35
|
+
aria-controls="tab-3"
|
|
36
|
+
role="tab"
|
|
37
|
+
aria-selected={false}
|
|
38
|
+
/>
|
|
20
39
|
</TabDropMenu>
|
|
21
40
|
<TabList>
|
|
22
41
|
<Tab id="tab-1">Tab 1</Tab>
|
|
@@ -34,6 +53,7 @@ const defaultChildren = (
|
|
|
34
53
|
</TabPanel>
|
|
35
54
|
</Fragment>
|
|
36
55
|
)
|
|
56
|
+
const panel = (id: string): HTMLElement => document.getElementById(id) as HTMLElement
|
|
37
57
|
|
|
38
58
|
const meta: Meta<typeof Component> = {
|
|
39
59
|
tags: ["autodocs"],
|
|
@@ -50,4 +70,47 @@ const meta: Meta<typeof Component> = {
|
|
|
50
70
|
}
|
|
51
71
|
|
|
52
72
|
export default meta
|
|
53
|
-
export const Default: StoryObj<typeof meta> = {
|
|
73
|
+
export const Default: StoryObj<typeof meta> = {
|
|
74
|
+
play: async ({ canvas, userEvent, step }) => {
|
|
75
|
+
const tab1 = canvas.getByRole("tab", { name: "Tab 1" })
|
|
76
|
+
const tab2 = canvas.getByRole("tab", { name: "Tab 2" })
|
|
77
|
+
const tab3 = canvas.getByRole("tab", { name: "Tab 3" })
|
|
78
|
+
|
|
79
|
+
await step("Tab 1 starts selected", async () => {
|
|
80
|
+
await expect(tab1).toHaveAttribute("aria-selected", "true")
|
|
81
|
+
await expect(panel("tab-1")).not.toHaveAttribute("inert")
|
|
82
|
+
await expect(panel("tab-2")).toHaveAttribute("inert")
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
await step("Click selects a tab", async () => {
|
|
86
|
+
await userEvent.click(tab2)
|
|
87
|
+
await expect(tab2).toHaveAttribute("aria-selected", "true")
|
|
88
|
+
await expect(tab1).toHaveAttribute("aria-selected", "false")
|
|
89
|
+
await expect(panel("tab-2")).not.toHaveAttribute("inert")
|
|
90
|
+
await expect(panel("tab-1")).toHaveAttribute("inert")
|
|
91
|
+
})
|
|
92
|
+
|
|
93
|
+
await step("ArrowRight/ArrowLeft move focus, with wraparound", async () => {
|
|
94
|
+
tab2.focus()
|
|
95
|
+
await userEvent.keyboard("{ArrowRight}")
|
|
96
|
+
await expect(tab3).toHaveFocus()
|
|
97
|
+
await userEvent.keyboard("{ArrowRight}")
|
|
98
|
+
await expect(tab1).toHaveFocus()
|
|
99
|
+
await userEvent.keyboard("{ArrowLeft}")
|
|
100
|
+
await expect(tab3).toHaveFocus()
|
|
101
|
+
})
|
|
102
|
+
|
|
103
|
+
await step("Home/End jump to first/last tab", async () => {
|
|
104
|
+
await userEvent.keyboard("{Home}")
|
|
105
|
+
await expect(tab1).toHaveFocus()
|
|
106
|
+
await userEvent.keyboard("{End}")
|
|
107
|
+
await expect(tab3).toHaveFocus()
|
|
108
|
+
})
|
|
109
|
+
|
|
110
|
+
await step("Reset: reselect Tab 1 and clear the ?tab= param", async () => {
|
|
111
|
+
await userEvent.click(tab1)
|
|
112
|
+
await expect(tab1).toHaveAttribute("aria-selected", "true")
|
|
113
|
+
window.history.replaceState({}, "", window.location.pathname)
|
|
114
|
+
})
|
|
115
|
+
},
|
|
116
|
+
}
|
|
@@ -4,12 +4,14 @@ import React, {
|
|
|
4
4
|
Context,
|
|
5
5
|
Dispatch,
|
|
6
6
|
SetStateAction,
|
|
7
|
+
RefObject,
|
|
7
8
|
createContext,
|
|
8
9
|
use,
|
|
9
10
|
useState,
|
|
10
11
|
useEffect,
|
|
11
12
|
useMemo,
|
|
12
13
|
useId,
|
|
14
|
+
useRef,
|
|
13
15
|
MouseEvent,
|
|
14
16
|
KeyboardEvent,
|
|
15
17
|
} from "react"
|
|
@@ -22,6 +24,7 @@ type TabContextValues = {
|
|
|
22
24
|
setActiveTab: Dispatch<SetStateAction<string>>
|
|
23
25
|
activeTabLabel: string
|
|
24
26
|
tabsId: string
|
|
27
|
+
tabListRef: RefObject<HTMLDivElement>
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
const TabContext: Context<TabContextValues> = createContext<TabContextValues>(null)
|
|
@@ -36,7 +39,9 @@ type TabsProps = PropsWithChildren & {
|
|
|
36
39
|
const Tabs = ({ children, active, modifier, id }: TabsProps): JSX.Element => {
|
|
37
40
|
const [activeTab, setActiveTab] = useState<string>(active)
|
|
38
41
|
const [activeTabLabel, setActiveTabLabel] = useState<string>("Tabs")
|
|
39
|
-
const
|
|
42
|
+
const tabListRef = useRef<HTMLDivElement>(null)
|
|
43
|
+
const rId = useId()
|
|
44
|
+
const tabsId: string = id || rId
|
|
40
45
|
|
|
41
46
|
const handleClick = (event: MouseEvent | KeyboardEvent, key: string): void => {
|
|
42
47
|
setActiveTab(key)
|
|
@@ -54,6 +59,7 @@ const Tabs = ({ children, active, modifier, id }: TabsProps): JSX.Element => {
|
|
|
54
59
|
const tabParam = new URLSearchParams(window.location.search).get("tab")
|
|
55
60
|
if (tabParam && tabParam !== activeTab) {
|
|
56
61
|
// eslint-disable-next-line @eslint-react/hooks-extra/no-direct-set-state-in-use-effect
|
|
62
|
+
// oxlint-disable-next-line react/set-state-in-effect -- synchronizes state with the URL, an external system
|
|
57
63
|
setActiveTab(tabParam)
|
|
58
64
|
}
|
|
59
65
|
const label: string = document.querySelector(`[aria-controls="${activeTab}"]`)?.textContent
|
|
@@ -62,13 +68,15 @@ const Tabs = ({ children, active, modifier, id }: TabsProps): JSX.Element => {
|
|
|
62
68
|
}, [activeTab])
|
|
63
69
|
|
|
64
70
|
const values = useMemo<TabContextValues>(
|
|
65
|
-
() => ({ activeTab, setActiveTab, activeTabLabel, tabsId }),
|
|
66
|
-
[activeTab, activeTabLabel, tabsId],
|
|
71
|
+
() => ({ activeTab, setActiveTab, activeTabLabel, tabsId, tabListRef }),
|
|
72
|
+
[activeTab, activeTabLabel, tabsId, tabListRef],
|
|
67
73
|
)
|
|
68
74
|
|
|
75
|
+
const selectedItem = useMemo(() => [activeTab], [activeTab])
|
|
76
|
+
|
|
69
77
|
return (
|
|
70
78
|
<TabContext value={values}>
|
|
71
|
-
<DropMenuProvider id={tabsId} onClick={handleClick} selectedItem={
|
|
79
|
+
<DropMenuProvider id={tabsId} onClick={handleClick} selectedItem={selectedItem}>
|
|
72
80
|
<div
|
|
73
81
|
className={classNames("mx-tabs", {
|
|
74
82
|
[`mx-tabs--${modifier}`]: modifier,
|
|
@@ -3,20 +3,18 @@
|
|
|
3
3
|
exports[`Tabs 1`] = `
|
|
4
4
|
"
|
|
5
5
|
|
|
6
|
-
<mx-tabs class="mx-tabs mx-tabs--lined" id="tab-example"><mx-dropmenu closeonclick="true"><button id="unique-3" class="mx-popover__trigger mx-button mx-icon mx-icon--chevron-down mx-icon--end" popovertarget="tab-example" style="anchor-name: --tab-example" hidden="">Funk</button><div class="mx-popover mx-drop-menu" id="tab-example" aria-describedby="unique-0" style="position-anchor: --tab-example" data-placement="bottom-start" popover="" role="tablist"><button type="button" role="tab" aria-controls="unique-1" aria-selected="false">Funk</button><button type="button" role="tab" aria-controls="unique-2" aria-selected="false">Soul</button><button type="button" role="tab" aria-controls="unique-3" aria-selected="false">Motown</button></div></mx-dropmenu><div class="mx-tabs__list" role="tablist"><button type="button" role="tab" aria-controls="unique-4" aria-selected="true"
|
|
7
|
-
|
|
6
|
+
<mx-tabs class="mx-tabs mx-tabs--lined" id="tab-example"><mx-dropmenu closeonclick="true"><button id="unique-3" class="mx-popover__trigger mx-button mx-icon mx-icon--chevron-down mx-icon--end" popovertarget="tab-example" style="anchor-name: --tab-example" hidden="">Funk</button><div class="mx-popover mx-drop-menu" id="tab-example" aria-describedby="unique-0" style="position-anchor: --tab-example" data-placement="bottom-start" popover="" role="tablist"><button type="button" role="tab" aria-controls="unique-1" aria-selected="false">Funk</button><button type="button" role="tab" aria-controls="unique-2" aria-selected="false">Soul</button><button type="button" role="tab" aria-controls="unique-3" aria-selected="false">Motown</button></div></mx-dropmenu><div class="mx-tabs__list" role="tablist"><button type="button" role="tab" aria-controls="unique-4" aria-selected="true" tabindex="0">Funk</button><button type="button" role="tab" aria-controls="unique-5" aria-selected="false" tabindex="-1">Soul</button><button type="button" role="tab" aria-controls="unique-6" aria-selected="false" tabindex="-1">Motown</button></div>
|
|
7
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="unique-0" data-tab="Funk" role="tabpanel" tabindex="-1" aria-label="Funk">
|
|
8
8
|
Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
9
9
|
</div>
|
|
10
|
-
|
|
11
|
-
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="unique-1" data-tab="Soul" role="tabpanel" tabindex="0" aria-label="Soul" inert="">
|
|
10
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="unique-1" data-tab="Soul" role="tabpanel" tabindex="-1" aria-label="Soul" inert="">
|
|
12
11
|
Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.
|
|
13
12
|
</div>
|
|
14
|
-
|
|
15
|
-
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="unique-2" data-tab="Motown" role="tabpanel" tabindex="0" aria-label="Motown" inert="">
|
|
13
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="unique-2" data-tab="Motown" role="tabpanel" tabindex="-1" aria-label="Motown" inert="">
|
|
16
14
|
Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
17
15
|
</div>
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
</mx-tabs>
|
|
20
18
|
"
|
|
21
19
|
`;
|
|
22
20
|
|
|
@@ -25,19 +23,17 @@ exports[`With Heading 1`] = `
|
|
|
25
23
|
|
|
26
24
|
<h2>Tabs heading</h2>
|
|
27
25
|
|
|
28
|
-
<mx-tabs class="mx-tabs mx-tabs--lined" id="tab-example"><mx-dropmenu closeonclick="true"><button id="unique-3" class="mx-popover__trigger mx-button mx-icon mx-icon--chevron-down mx-icon--end" popovertarget="tab-example" style="anchor-name: --tab-example" hidden="">Funk</button><div class="mx-popover mx-drop-menu" id="tab-example" aria-describedby="unique-0" style="position-anchor: --tab-example" data-placement="bottom-start" popover="" role="tablist"><button type="button" role="tab" aria-controls="unique-1" aria-selected="false">Funk</button><button type="button" role="tab" aria-controls="unique-2" aria-selected="false">Soul</button><button type="button" role="tab" aria-controls="unique-3" aria-selected="false">Motown</button></div></mx-dropmenu><div class="mx-tabs__list" role="tablist"><button type="button" role="tab" aria-controls="unique-4" aria-selected="true"
|
|
29
|
-
|
|
26
|
+
<mx-tabs class="mx-tabs mx-tabs--lined" id="tab-example"><mx-dropmenu closeonclick="true"><button id="unique-3" class="mx-popover__trigger mx-button mx-icon mx-icon--chevron-down mx-icon--end" popovertarget="tab-example" style="anchor-name: --tab-example" hidden="">Funk</button><div class="mx-popover mx-drop-menu" id="tab-example" aria-describedby="unique-0" style="position-anchor: --tab-example" data-placement="bottom-start" popover="" role="tablist"><button type="button" role="tab" aria-controls="unique-1" aria-selected="false">Funk</button><button type="button" role="tab" aria-controls="unique-2" aria-selected="false">Soul</button><button type="button" role="tab" aria-controls="unique-3" aria-selected="false">Motown</button></div></mx-dropmenu><div class="mx-tabs__list" role="tablist"><button type="button" role="tab" aria-controls="unique-4" aria-selected="true" tabindex="0">Funk</button><button type="button" role="tab" aria-controls="unique-5" aria-selected="false" tabindex="-1">Soul</button><button type="button" role="tab" aria-controls="unique-6" aria-selected="false" tabindex="-1">Motown</button></div>
|
|
27
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="unique-0" data-tab="Funk" role="tabpanel" tabindex="-1" aria-label="Funk">
|
|
30
28
|
Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
31
29
|
</div>
|
|
32
|
-
|
|
33
|
-
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="unique-1" data-tab="Soul" role="tabpanel" tabindex="0" aria-label="Soul" inert="">
|
|
30
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="unique-1" data-tab="Soul" role="tabpanel" tabindex="-1" aria-label="Soul" inert="">
|
|
34
31
|
Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.
|
|
35
32
|
</div>
|
|
36
|
-
|
|
37
|
-
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="unique-2" data-tab="Motown" role="tabpanel" tabindex="0" aria-label="Motown" inert="">
|
|
33
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="unique-2" data-tab="Motown" role="tabpanel" tabindex="-1" aria-label="Motown" inert="">
|
|
38
34
|
Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
39
35
|
</div>
|
|
40
36
|
|
|
41
|
-
|
|
37
|
+
</mx-tabs>
|
|
42
38
|
"
|
|
43
39
|
`;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`Default 1`] = `"<div class="mx-tabs"><div class="mobile-only"><button id="tabs-storybook-target" type="button" class="mx-button mx-icon mx-icon--chevron-down mx-icon--end mx-
|
|
3
|
+
exports[`Default 1`] = `"<div class="mx-tabs"><div class="mobile-only"><button id="tabs-storybook-target" type="button" class="mx-button mx-icon mx-icon--chevron-down mx-icon--end mx-popover__trigger" popovertarget="tabs-storybook" style="anchor-name: --drop-menu-tabs-storybook;">Tab 1</button><div id="tabs-storybook" class="mx-popover mx-drop-menu" popover="" aria-labelledby="tabs-storybook-target" aria-describedby="tabs-storybook-description" role="tablist" style="position-anchor: --drop-menu-tabs-storybook;"><div id="tabs-storybook-description" class="sr-only">Results will update when you make a selection. Press escape to close.</div><span data-focus-scope-start="true" hidden=""></span><button type="button" data-id="tab-1" aria-checked="true" role="tab" aria-controls="tab-1" aria-selected="true">Tab 1</button><button type="button" data-id="tab-2" aria-checked="false" role="tab" aria-controls="tab-2" aria-selected="false">Tab 2</button><button type="button" data-id="tab-3" aria-checked="false" role="tab" aria-controls="tab-3" aria-selected="false">Tab 3</button><span data-focus-scope-end="true" hidden=""></span></div></div><div class="mx-tabs__list desktop-only" role="tablist"><span data-focus-scope-start="true" hidden=""></span><button id="tab-1-button" aria-controls="tab-1" role="tab" aria-selected="true" tabindex="0" type="button">Tab 1</button><button id="tab-2-button" aria-controls="tab-2" role="tab" aria-selected="false" tabindex="-1" type="button">Tab 2</button><button id="tab-3-button" aria-controls="tab-3" role="tab" aria-selected="false" tabindex="-1" type="button">Tab 3</button><span data-focus-scope-end="true" hidden=""></span></div><div id="tab-1" class="mx-tabs__panel mx-vertical-flow mx-section--l" aria-labelledby="tab-1-button" role="tabpanel" tabindex="0"><p>This is tab 1</p></div><div id="tab-2" class="mx-tabs__panel mx-vertical-flow mx-section--l" aria-labelledby="tab-2-button" role="tabpanel" tabindex="0" inert=""><p>This is tab 2</p></div><div id="tab-3" class="mx-tabs__panel mx-vertical-flow mx-section--l" inert="" aria-labelledby="tab-3-button" role="tabpanel" tabindex="0"><p>This is tab 3</p></div></div>"`;
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
padding-inline: var(--horizontal-padding, var(--spacing-m));
|
|
46
46
|
background-color: var(--tab-background, var(--background, var(--colour-background)));
|
|
47
47
|
color: var(--tab-foreground, var(--foreground, var(--colour-foreground)));
|
|
48
|
+
font-size: var(--tab-font-size, var(--font-size-xs));
|
|
48
49
|
|
|
49
50
|
&[aria-selected="true"] {
|
|
50
51
|
background-color: var(--tab-active-background, var(--colour-background-alt));
|
|
@@ -1,19 +1,208 @@
|
|
|
1
1
|
# Tag
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A small inline label used to categorise content. Renders as plain text metadata, a link to a filtered view, or a checkbox inside a filter form. The `Tags` wrapper lays multiple tags out as a wrapping row.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## CSS Import
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```css
|
|
8
|
+
@import "@pnx-mixtape/mxds/src/Component/Tag/tag.css";
|
|
9
|
+
```
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
---
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
## Twig
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
```twig
|
|
16
|
+
{% include '@mixtape/Component/Tag/tags.twig' with {
|
|
17
|
+
type: 'text',
|
|
18
|
+
items: ['Music', 'News'],
|
|
19
|
+
} %}
|
|
14
20
|
|
|
15
|
-
|
|
21
|
+
{# Link tags #}
|
|
22
|
+
{% include '@mixtape/Component/Tag/tags.twig' with {
|
|
23
|
+
type: 'link',
|
|
24
|
+
items: [
|
|
25
|
+
{ title: 'Music', href: '/category/music' },
|
|
26
|
+
{ title: 'News', href: '/category/news' },
|
|
27
|
+
],
|
|
28
|
+
} %}
|
|
16
29
|
|
|
17
|
-
|
|
30
|
+
{# Checkbox tags #}
|
|
31
|
+
{% include '@mixtape/Component/Tag/tags.twig' with {
|
|
32
|
+
type: 'checkbox',
|
|
33
|
+
items: [
|
|
34
|
+
{ label: 'Music', id: 'music', name: 'tag', value: 'music' },
|
|
35
|
+
{ label: 'News', id: 'news', name: 'tag', value: 'news', checked: true },
|
|
36
|
+
],
|
|
37
|
+
} %}
|
|
38
|
+
```
|
|
18
39
|
|
|
19
|
-
|
|
40
|
+
**tags.twig props** (`Tags` type from `ids-shape`):
|
|
41
|
+
|
|
42
|
+
| Prop | Type | Description |
|
|
43
|
+
| --------------- | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
44
|
+
| `type` | `TagTypes` | Controls which markup is rendered per item. One of `text`, `link`, `checkbox`. Changing the type also changes the required shape of `items`. |
|
|
45
|
+
| `items` | `string[] \| Link[] \| FormControl[]` | List of tag items. Shape depends on `type` — see below. |
|
|
46
|
+
| `attributes` | `Attribute` | Extra attributes on the outer `<ul class="mx-tags">` |
|
|
47
|
+
| `tagAttributes` | `Attribute` | Extra attributes on each `.mx-tag` element |
|
|
48
|
+
| `dismissible` | `boolean` | When true, plain (`text`) tags render a remove button (`mx-tag--dismissible`). Wire up removal behaviour in the consuming app. |
|
|
49
|
+
| `removeLabel` | `string` | Accessible label for the remove button. Defaults to `"Remove"`. |
|
|
50
|
+
|
|
51
|
+
**Item shapes per `type`:**
|
|
52
|
+
|
|
53
|
+
| `type` | Item shape |
|
|
54
|
+
| ---------- | ------------------------------------------------------------------------------- |
|
|
55
|
+
| `text` | `string` — the tag label |
|
|
56
|
+
| `link` | `{ title: string, href: string }` |
|
|
57
|
+
| `checkbox` | `{ label: string, id: string, name: string, value: string, checked?: boolean }` |
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## HTML
|
|
62
|
+
|
|
63
|
+
Minimal working markup for a list of plain text tags:
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<ul class="mx-tags">
|
|
67
|
+
<li><span class="mx-tag">Music</span></li>
|
|
68
|
+
<li><span class="mx-tag">News</span></li>
|
|
69
|
+
</ul>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Link tags:
|
|
73
|
+
|
|
74
|
+
```html
|
|
75
|
+
<ul class="mx-tags">
|
|
76
|
+
<li><a class="mx-tag" href="/category/music">Music</a></li>
|
|
77
|
+
<li><a class="mx-tag" href="/category/news">News</a></li>
|
|
78
|
+
</ul>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Checkbox tags (the `<input>` is visually hidden off-screen; the `<label>` is the click target):
|
|
82
|
+
|
|
83
|
+
```html
|
|
84
|
+
<ul class="mx-tags">
|
|
85
|
+
<li>
|
|
86
|
+
<div class="mx-tag">
|
|
87
|
+
<input type="checkbox" id="music" name="tag" value="music" />
|
|
88
|
+
<label for="music">Music</label>
|
|
89
|
+
</div>
|
|
90
|
+
</li>
|
|
91
|
+
<li>
|
|
92
|
+
<div class="mx-tag">
|
|
93
|
+
<input type="checkbox" id="news" name="tag" value="news" checked />
|
|
94
|
+
<label for="news">News</label>
|
|
95
|
+
</div>
|
|
96
|
+
</li>
|
|
97
|
+
</ul>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## React
|
|
103
|
+
|
|
104
|
+
The React `Tag` component renders a single tag. It is an element-agnostic wrapper — use `as` to change the semantic element. Wrap multiple tags in a `<ul className="mx-tags">` (there is no dedicated `Tags` React component; match the HTML/Twig markup above).
|
|
105
|
+
|
|
106
|
+
```tsx
|
|
107
|
+
import { Tag } from "@pnx-mixtape/mxds/react"
|
|
108
|
+
import { AsTags } from "@pnx-mixtape/mxds/src/enums"
|
|
109
|
+
|
|
110
|
+
// Plain text tag (metadata)
|
|
111
|
+
<Tag>Music</Tag>
|
|
112
|
+
|
|
113
|
+
// Inside a tag list — use as={AsTags.LI} so each tag is a list item
|
|
114
|
+
<ul className="mx-tags">
|
|
115
|
+
<Tag as={AsTags.LI}>Music</Tag>
|
|
116
|
+
<Tag as={AsTags.LI}>News</Tag>
|
|
117
|
+
</ul>
|
|
118
|
+
|
|
119
|
+
// As a link tag (wrap an anchor inside, or use className on a custom element)
|
|
120
|
+
<ul className="mx-tags">
|
|
121
|
+
<li>
|
|
122
|
+
<a className="mx-tag" href="/category/music">Music</a>
|
|
123
|
+
</li>
|
|
124
|
+
<li>
|
|
125
|
+
<a className="mx-tag" href="/category/news">News</a>
|
|
126
|
+
</li>
|
|
127
|
+
</ul>
|
|
128
|
+
|
|
129
|
+
// As a checkbox tag (inside a filter form)
|
|
130
|
+
<ul className="mx-tags">
|
|
131
|
+
<li>
|
|
132
|
+
<div className="mx-tag">
|
|
133
|
+
<input type="checkbox" id="music" name="tag" value="music" />
|
|
134
|
+
<label htmlFor="music">Music</label>
|
|
135
|
+
</div>
|
|
136
|
+
</li>
|
|
137
|
+
</ul>
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
**`Tag` props:**
|
|
141
|
+
|
|
142
|
+
| Prop | Type | Default | Description |
|
|
143
|
+
| ------------- | ------------ | ---------- | ----------------------------------------------------------------------------------------------- |
|
|
144
|
+
| `as` | `AsTags` | `div` | Semantic element for the tag: `div`, `li`, `article`, `aside`, `section` |
|
|
145
|
+
| `className` | `string` | — | Extra class on the tag element |
|
|
146
|
+
| `children` | `ReactNode` | — | Tag label content |
|
|
147
|
+
| `onRemove` | `() => void` | — | When set, renders a remove button (`mx-tag--dismissible`). Consumer removes the tag from state. |
|
|
148
|
+
| `removeLabel` | `string` | `"Remove"` | Accessible label for the remove button |
|
|
149
|
+
|
|
150
|
+
> For filter UIs, tag removal can also be handled upstream (e.g. via the checkbox type toggling its checked state, or via the Filters component). Use `onRemove` when you need a self-contained dismissible chip.
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## Modifiers — `TagTypes` enum
|
|
155
|
+
|
|
156
|
+
The `type` prop on the Twig template maps to `TagTypes` values from `@pnx-mixtape/ids-shape`. The same base `mx-tag` class is used for all variants — the variant changes the inner element, not the class.
|
|
157
|
+
|
|
158
|
+
| `TagTypes` value | Element rendered | Visual intent |
|
|
159
|
+
| ---------------- | --------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
|
|
160
|
+
| `text` | `<span class="mx-tag">` | Read-only metadata label (e.g. category shown on a Card) |
|
|
161
|
+
| `link` | `<a class="mx-tag" href>` | Navigational tag — clicking takes the user to a filtered / category view |
|
|
162
|
+
| `checkbox` | `<div class="mx-tag">` wrapping `<input type="checkbox">` + `<label>` | Toggleable filter tag inside a form; checked state is visually indicated via the primary link colour |
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Accessibility
|
|
167
|
+
|
|
168
|
+
- **Text tags** are plain `<span>` elements — they are metadata, not interactive. Do not add click handlers or `role` attributes; if a tag needs to be clickable, use the `link` or `checkbox` variant.
|
|
169
|
+
- **Link tags** use a real `<a href>`. Ensure the destination makes sense out of context — the visible label is the accessible name, so labels like "Music" should lead to an unambiguous page (e.g. `/category/music`).
|
|
170
|
+
- **Checkbox tags** rely on a native `<input type="checkbox">` paired with a `<label for="…">`. The `<input>` is positioned off-screen (not `display: none`) so it remains focusable and announceable. The whole `.mx-tag` gets a focus outline via `:has(input:focus)` — do not remove this selector.
|
|
171
|
+
- The checked state is communicated by colour alone in the default styling. When rendering checkbox tags in a form, ensure surrounding context (a fieldset legend, heading, or `aria-label`) describes what group of filters the tags belong to.
|
|
172
|
+
- If you need to render a list of tags for assistive-tech as a single labelled group, add `aria-label` (or `aria-labelledby`) to the `<ul class="mx-tags">`:
|
|
173
|
+
|
|
174
|
+
```html
|
|
175
|
+
<ul class="mx-tags" aria-label="Article categories">
|
|
176
|
+
...
|
|
177
|
+
</ul>
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
- All text is `text-transform: uppercase` via CSS — the underlying DOM text should be written in normal case so screen readers pronounce it correctly.
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Customisation via CSS custom properties
|
|
185
|
+
|
|
186
|
+
```css
|
|
187
|
+
.mx-tag {
|
|
188
|
+
--tag-background: var(--colour-background); /* tag fill colour */
|
|
189
|
+
--tag-foreground: var(--colour-foreground); /* label colour (also border via currentcolor) */
|
|
190
|
+
--tag-font-size: var(--font-size-xs); /* label font size */
|
|
191
|
+
--horizontal-padding: var(--spacing-xxxs); /* inline padding */
|
|
192
|
+
--line-width: 1px; /* border width */
|
|
193
|
+
--line-colour: currentcolor; /* border colour */
|
|
194
|
+
--font-weight: var(--font-weight-bold); /* label weight */
|
|
195
|
+
--line-height: 2; /* controls tag height */
|
|
196
|
+
--border-radius: 0; /* pill vs square corners */
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.mx-tags {
|
|
200
|
+
--tags-gap: var(--spacing-s); /* gap between tags in the list */
|
|
201
|
+
}
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Hover (on `a.mx-tag`) and checked (`:has(input:checked)`) states both set `--tag-foreground` to `--link-colour` (falls back to `--colour-primary`).
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
→ Used in context: `mockups/ArticlePage.stories.ts:16`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/aGH90DVE6lrFVdLfDCHnFK/mxds---Design-System?node-id=65-234
|
|
2
|
+
// source=src/Component/Tag/Tag.tsx
|
|
3
|
+
// component=Tag
|
|
4
|
+
import figma from "figma"
|
|
5
|
+
|
|
6
|
+
const instance = figma.selectedInstance
|
|
7
|
+
|
|
8
|
+
const dismissible = instance.getEnum("Dismissible", { Off: false, On: true })
|
|
9
|
+
|
|
10
|
+
// Real children — a proper Content SLOT (not a fixed text layer), even though
|
|
11
|
+
// real usage is typically just a short text label.
|
|
12
|
+
const content = instance.getSlot("Content")
|
|
13
|
+
|
|
14
|
+
// `onRemove` is a callback, not a boolean — but its mere presence is what toggles
|
|
15
|
+
// the dismissible style, so a representative no-op function stands in here.
|
|
16
|
+
const onRemoveProp = dismissible ? " onRemove={() => {}}" : ""
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
example: figma.code`<Tag${onRemoveProp}>${content}</Tag>`,
|
|
20
|
+
imports: ['import { Tag } from "@pnx-mixtape/mxds/react"'],
|
|
21
|
+
id: "tag",
|
|
22
|
+
metadata: {
|
|
23
|
+
nestable: true,
|
|
24
|
+
},
|
|
25
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/html-vite"
|
|
2
2
|
import Component from "./tags.twig"
|
|
3
|
+
import TagItem from "./tag-item.twig"
|
|
3
4
|
import "./tag.css"
|
|
4
5
|
import { Tags as TagType, TagTypes } from "@pnx-mixtape/ids-shape"
|
|
5
6
|
|
|
@@ -10,27 +11,14 @@ const meta: Meta<TagType> = {
|
|
|
10
11
|
tags: ["autodocs", "ids-mvp"],
|
|
11
12
|
component: Component,
|
|
12
13
|
args: {
|
|
13
|
-
items: ["Music", "News"],
|
|
14
|
-
type: TagTypes.TEXT,
|
|
14
|
+
items: ["Music", "News"].map(item => TagItem({ type: TagTypes.TEXT, item })).join(""),
|
|
15
15
|
},
|
|
16
16
|
argTypes: {
|
|
17
|
-
type: {
|
|
18
|
-
description:
|
|
19
|
-
"Define the type of the tags. Changing the type also requires a different item shape.",
|
|
20
|
-
options: Object.values(TagTypes),
|
|
21
|
-
control: "radio",
|
|
22
|
-
table: {
|
|
23
|
-
defaultValue: { summary: TagTypes.TEXT },
|
|
24
|
-
type: { summary: "enum" },
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
17
|
items: {
|
|
28
|
-
description:
|
|
18
|
+
description:
|
|
19
|
+
"A concatenated string of [TagItem](/?path=/docs/component-tag-tagitem--docs) markup.",
|
|
29
20
|
table: {
|
|
30
|
-
type: {
|
|
31
|
-
summary:
|
|
32
|
-
"string[] | { title: string, href: string }[] | { label: string, id: string, name: string, value: string }[]",
|
|
33
|
-
},
|
|
21
|
+
type: { summary: "string" },
|
|
34
22
|
},
|
|
35
23
|
},
|
|
36
24
|
},
|
|
@@ -46,7 +34,6 @@ export const Tag: Story = {}
|
|
|
46
34
|
*/
|
|
47
35
|
export const Link: Story = {
|
|
48
36
|
args: {
|
|
49
|
-
type: TagTypes.LINK,
|
|
50
37
|
items: [
|
|
51
38
|
{
|
|
52
39
|
title: "Music",
|
|
@@ -56,7 +43,21 @@ export const Link: Story = {
|
|
|
56
43
|
title: "News",
|
|
57
44
|
href: "#0",
|
|
58
45
|
},
|
|
59
|
-
]
|
|
46
|
+
]
|
|
47
|
+
.map(item => TagItem({ type: TagTypes.LINK, item }))
|
|
48
|
+
.join(""),
|
|
49
|
+
},
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Plain tags can be made dismissible, rendering a remove button. The consuming
|
|
54
|
+
* application is responsible for wiring up the removal behaviour.
|
|
55
|
+
*/
|
|
56
|
+
export const Dismissible: Story = {
|
|
57
|
+
args: {
|
|
58
|
+
items: ["Music", "News"]
|
|
59
|
+
.map(item => TagItem({ type: TagTypes.TEXT, item, dismissible: true }))
|
|
60
|
+
.join(""),
|
|
60
61
|
},
|
|
61
62
|
}
|
|
62
63
|
|
|
@@ -65,7 +66,6 @@ export const Link: Story = {
|
|
|
65
66
|
*/
|
|
66
67
|
export const Checkbox: Story = {
|
|
67
68
|
args: {
|
|
68
|
-
type: TagTypes.CHECKBOX,
|
|
69
69
|
items: [
|
|
70
70
|
{
|
|
71
71
|
label: "Music",
|
|
@@ -79,6 +79,8 @@ export const Checkbox: Story = {
|
|
|
79
79
|
name: "tag",
|
|
80
80
|
value: "news",
|
|
81
81
|
},
|
|
82
|
-
]
|
|
82
|
+
]
|
|
83
|
+
.map(item => TagItem({ type: TagTypes.CHECKBOX, item }))
|
|
84
|
+
.join(""),
|
|
83
85
|
},
|
|
84
86
|
}
|
|
@@ -1,15 +1,41 @@
|
|
|
1
1
|
import { JSX, PropsWithChildren } from "react"
|
|
2
2
|
import classNames from "classnames"
|
|
3
|
-
import { AsTags } from "../../enums"
|
|
3
|
+
import { AsTags, Icons } from "../../enums"
|
|
4
4
|
|
|
5
5
|
type TagProps = PropsWithChildren & {
|
|
6
6
|
className?: string
|
|
7
7
|
as?: AsTags
|
|
8
|
+
/**
|
|
9
|
+
* When provided, renders a remove button. Called when the button is
|
|
10
|
+
* activated — the consumer is responsible for removing the tag from state.
|
|
11
|
+
*/
|
|
12
|
+
onRemove?: () => void
|
|
13
|
+
/** Accessible label for the remove button. Defaults to "Remove". */
|
|
14
|
+
removeLabel?: string
|
|
8
15
|
}
|
|
9
16
|
|
|
10
|
-
const Tag = ({
|
|
11
|
-
|
|
12
|
-
|
|
17
|
+
const Tag = ({
|
|
18
|
+
children,
|
|
19
|
+
className,
|
|
20
|
+
as = AsTags.DIV,
|
|
21
|
+
onRemove,
|
|
22
|
+
removeLabel = "Remove",
|
|
23
|
+
}: TagProps): JSX.Element => {
|
|
24
|
+
const TagEl: JSX.ElementType = `${as}` as unknown as JSX.ElementType
|
|
25
|
+
return (
|
|
26
|
+
<TagEl className={classNames("mx-tag", { "mx-tag--dismissible": onRemove }, className)}>
|
|
27
|
+
{children}
|
|
28
|
+
{onRemove && (
|
|
29
|
+
<button
|
|
30
|
+
type="button"
|
|
31
|
+
className={`mx-tag__remove mx-icon mx-icon--only mx-icon--${Icons.CLOSE}`}
|
|
32
|
+
onClick={onRemove}
|
|
33
|
+
>
|
|
34
|
+
<span className="sr-only">{removeLabel}</span>
|
|
35
|
+
</button>
|
|
36
|
+
)}
|
|
37
|
+
</TagEl>
|
|
38
|
+
)
|
|
13
39
|
}
|
|
14
40
|
|
|
15
41
|
export default Tag
|