@pnx-mixtape/mxds 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +274 -0
- package/dist/build/Accordion.js +61 -0
- package/dist/build/Accordion.js.map +1 -0
- package/dist/build/AccordionDiv.js +62 -0
- package/dist/build/AccordionDiv.js.map +1 -0
- package/dist/build/AccordionGroup.js +85 -0
- package/dist/build/AccordionGroup.js.map +1 -0
- package/dist/build/AccordionMobile.js +31 -0
- package/dist/build/AccordionMobile.js.map +1 -0
- package/dist/build/Dialog.js +116 -0
- package/dist/build/Dialog.js.map +1 -0
- package/dist/build/DropMenu.js +132 -0
- package/dist/build/DropMenu.js.map +1 -0
- package/dist/build/GlobalToggle.js +103 -0
- package/dist/build/GlobalToggle.js.map +1 -0
- package/dist/build/InPageAlert.js +61 -0
- package/dist/build/InPageAlert.js.map +1 -0
- package/dist/build/InPageNavigation.js +92 -0
- package/dist/build/InPageNavigation.js.map +1 -0
- package/dist/build/Navigation.js +126 -0
- package/dist/build/Navigation.js.map +1 -0
- package/dist/build/Sticky.js +63 -0
- package/dist/build/Sticky.js.map +1 -0
- package/dist/build/Tabs.js +164 -0
- package/dist/build/Tabs.js.map +1 -0
- package/dist/build/accordion.css +108 -0
- package/dist/build/base.css +1000 -0
- package/dist/build/breadcrumb.css +47 -0
- package/dist/build/breakpoint-loader.js +52 -0
- package/dist/build/breakpoint-loader.js.map +1 -0
- package/dist/build/button.css +126 -0
- package/dist/build/callout.css +11 -0
- package/dist/build/card.css +135 -0
- package/dist/build/chunks/js.cookie-CiMiGxWx.js +101 -0
- package/dist/build/chunks/js.cookie-CiMiGxWx.js.map +1 -0
- package/dist/build/chunks/polyfills-CJ5uTmUJ.js +749 -0
- package/dist/build/chunks/polyfills-CJ5uTmUJ.js.map +1 -0
- package/dist/build/chunks/popover-wbPSyFRj.js +654 -0
- package/dist/build/chunks/popover-wbPSyFRj.js.map +1 -0
- package/dist/build/chunks/utilities-BIk0P2KX.js +61 -0
- package/dist/build/chunks/utilities-BIk0P2KX.js.map +1 -0
- package/dist/build/constants.css +120 -0
- package/dist/build/container-grid.css +207 -0
- package/dist/build/content-block.css +23 -0
- package/dist/build/cookie-compliance.js +122 -0
- package/dist/build/cookie-compliance.js.map +1 -0
- package/dist/build/dialog.css +98 -0
- package/dist/build/disclosure-widget.js +124 -0
- package/dist/build/disclosure-widget.js.map +1 -0
- package/dist/build/drop-menu.css +78 -0
- package/dist/build/drupal.css +74 -0
- package/dist/build/footer-menu.css +32 -0
- package/dist/build/footer.css +61 -0
- package/dist/build/form.css +589 -0
- package/dist/build/grid.css +200 -0
- package/dist/build/header.css +131 -0
- package/dist/build/hero-banner.css +62 -0
- package/dist/build/icon.css +399 -0
- package/dist/build/in-page-alert.css +94 -0
- package/dist/build/in-page-navigation.css +17 -0
- package/dist/build/index.css +4980 -0
- package/dist/build/io-loader.js +44 -0
- package/dist/build/io-loader.js.map +1 -0
- package/dist/build/keyboard.js +101 -0
- package/dist/build/keyboard.js.map +1 -0
- package/dist/build/link-list.css +72 -0
- package/dist/build/masthead.css +39 -0
- package/dist/build/nav-list.css +29 -0
- package/dist/build/navigation.css +371 -0
- package/dist/build/page.css +184 -0
- package/dist/build/pagination.css +123 -0
- package/dist/build/section.css +160 -0
- package/dist/build/sidebar.css +105 -0
- package/dist/build/sticky.css +47 -0
- package/dist/build/tabs.css +106 -0
- package/dist/build/tag.css +67 -0
- package/dist/build/tiles.css +61 -0
- package/dist/build/utilities.css +175 -0
- package/package.json +130 -0
- package/src/Atom/Background/Backgrounds.stories.ts +36 -0
- package/src/Atom/Background/__snapshots__/Backgrounds.stories.ts.snap +100 -0
- package/src/Atom/Background/_background.css +80 -0
- package/src/Atom/Background/backgrounds.twig +10 -0
- package/src/Atom/Base.mdx +76 -0
- package/src/Atom/Blockquote/_blockquote.css +7 -0
- package/src/Atom/Button/Button.stories.ts +71 -0
- package/src/Atom/Button/Button.stories.tsx +31 -0
- package/src/Atom/Button/Button.tsx +70 -0
- package/src/Atom/Button/README.md +30 -0
- package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +41 -0
- package/src/Atom/Button/__snapshots__/Button.stories.tsx.snap +17 -0
- package/src/Atom/Button/_buttons-styles.css +48 -0
- package/src/Atom/Button/_buttons.css +71 -0
- package/src/Atom/Button/button.css +2 -0
- package/src/Atom/Button/button.twig +23 -0
- package/src/Atom/DefinitionList/DefinitionList.stories.tsx +25 -0
- package/src/Atom/DefinitionList/DefinitionList.tsx +27 -0
- package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.tsx.snap +30 -0
- package/src/Atom/Heading/Heading.stories.ts +25 -0
- package/src/Atom/Heading/Heading.stories.tsx +19 -0
- package/src/Atom/Heading/Heading.tsx +44 -0
- package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +7 -0
- package/src/Atom/Heading/__snapshots__/Heading.stories.tsx.snap +9 -0
- package/src/Atom/Heading/_headings.css +84 -0
- package/src/Atom/Heading/heading.twig +8 -0
- package/src/Atom/Icon/Icon.mdx +32 -0
- package/src/Atom/Icon/Icon.stories.ts +50 -0
- package/src/Atom/Icon/Icon.stories.tsx +44 -0
- package/src/Atom/Icon/Icon.tsx +30 -0
- package/src/Atom/Icon/README.md +7 -0
- package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +18 -0
- package/src/Atom/Icon/__snapshots__/Icon.stories.tsx.snap +18 -0
- package/src/Atom/Icon/_extended-set.css +45 -0
- package/src/Atom/Icon/_icon.css +151 -0
- package/src/Atom/Icon/_mixin-icon.css +5 -0
- package/src/Atom/Icon/icon.css +2 -0
- package/src/Atom/Icon/icon.twig +12 -0
- package/src/Atom/Icon/images/arrow-down.svg +1 -0
- package/src/Atom/Icon/images/arrow-left.svg +1 -0
- package/src/Atom/Icon/images/arrow-right.svg +1 -0
- package/src/Atom/Icon/images/arrow-up.svg +1 -0
- package/src/Atom/Icon/images/attachment.svg +1 -0
- package/src/Atom/Icon/images/blockquote.svg +1 -0
- package/src/Atom/Icon/images/bluesky.svg +1 -0
- package/src/Atom/Icon/images/bookmark.svg +1 -0
- package/src/Atom/Icon/images/building.svg +1 -0
- package/src/Atom/Icon/images/calendar.svg +1 -0
- package/src/Atom/Icon/images/chevron-down.svg +1 -0
- package/src/Atom/Icon/images/chevron-left.svg +1 -0
- package/src/Atom/Icon/images/chevron-right.svg +1 -0
- package/src/Atom/Icon/images/chevron-up.svg +1 -0
- package/src/Atom/Icon/images/clock.svg +1 -0
- package/src/Atom/Icon/images/close.svg +1 -0
- package/src/Atom/Icon/images/collapse.svg +1 -0
- package/src/Atom/Icon/images/controls.svg +1 -0
- package/src/Atom/Icon/images/download.svg +1 -0
- package/src/Atom/Icon/images/drupal.svg +3 -0
- package/src/Atom/Icon/images/email.svg +1 -0
- package/src/Atom/Icon/images/error.svg +1 -0
- package/src/Atom/Icon/images/expand.svg +1 -0
- package/src/Atom/Icon/images/external-link.svg +1 -0
- package/src/Atom/Icon/images/facebook.svg +1 -0
- package/src/Atom/Icon/images/file.svg +1 -0
- package/src/Atom/Icon/images/globe.svg +1 -0
- package/src/Atom/Icon/images/google.svg +1 -0
- package/src/Atom/Icon/images/heart-selected.svg +1 -0
- package/src/Atom/Icon/images/heart-unselected.svg +1 -0
- package/src/Atom/Icon/images/home.svg +1 -0
- package/src/Atom/Icon/images/image.svg +1 -0
- package/src/Atom/Icon/images/info.svg +1 -0
- package/src/Atom/Icon/images/instagram.svg +1 -0
- package/src/Atom/Icon/images/link.svg +1 -0
- package/src/Atom/Icon/images/linkedin.svg +1 -0
- package/src/Atom/Icon/images/list.svg +1 -0
- package/src/Atom/Icon/images/lock.svg +1 -0
- package/src/Atom/Icon/images/login.svg +1 -0
- package/src/Atom/Icon/images/mastodon.svg +3 -0
- package/src/Atom/Icon/images/media-next.svg +1 -0
- package/src/Atom/Icon/images/media-pause.svg +1 -0
- package/src/Atom/Icon/images/media-play.svg +1 -0
- package/src/Atom/Icon/images/media-previous.svg +1 -0
- package/src/Atom/Icon/images/media-rewind.svg +1 -0
- package/src/Atom/Icon/images/media-skip.svg +1 -0
- package/src/Atom/Icon/images/media-stop.svg +1 -0
- package/src/Atom/Icon/images/menu.svg +1 -0
- package/src/Atom/Icon/images/more.svg +1 -0
- package/src/Atom/Icon/images/notification.svg +1 -0
- package/src/Atom/Icon/images/pencil.svg +1 -0
- package/src/Atom/Icon/images/phone.svg +1 -0
- package/src/Atom/Icon/images/pin.svg +1 -0
- package/src/Atom/Icon/images/print.svg +1 -0
- package/src/Atom/Icon/images/question.svg +1 -0
- package/src/Atom/Icon/images/restart.svg +1 -0
- package/src/Atom/Icon/images/search.svg +1 -0
- package/src/Atom/Icon/images/settings.svg +1 -0
- package/src/Atom/Icon/images/share.svg +1 -0
- package/src/Atom/Icon/images/star-selected.svg +1 -0
- package/src/Atom/Icon/images/star-unselected.svg +1 -0
- package/src/Atom/Icon/images/success.svg +1 -0
- package/src/Atom/Icon/images/tick.svg +1 -0
- package/src/Atom/Icon/images/trash.svg +1 -0
- package/src/Atom/Icon/images/twitter.svg +1 -0
- package/src/Atom/Icon/images/user.svg +1 -0
- package/src/Atom/Icon/images/video.svg +1 -0
- package/src/Atom/Icon/images/warning.svg +1 -0
- package/src/Atom/Icon/images/youtube.svg +1 -0
- package/src/Atom/Image/Image.stories.ts +20 -0
- package/src/Atom/Image/__snapshots__/Image.stories.ts.snap +9 -0
- package/src/Atom/Image/_image.css +29 -0
- package/src/Atom/Image/image.twig +13 -0
- package/src/Atom/Link/Link.stories.ts +37 -0
- package/src/Atom/Link/Link.stories.tsx +30 -0
- package/src/Atom/Link/Link.tsx +38 -0
- package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +17 -0
- package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +25 -0
- package/src/Atom/Link/_links.css +39 -0
- package/src/Atom/Link/link.twig +12 -0
- package/src/Atom/Media/Media.stories.ts +26 -0
- package/src/Atom/Media/Media.stories.tsx +25 -0
- package/src/Atom/Media/Media.tsx +42 -0
- package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +14 -0
- package/src/Atom/Media/__snapshots__/Media.stories.tsx.snap +18 -0
- package/src/Atom/Media/_media.css +40 -0
- package/src/Atom/Media/media.twig +18 -0
- package/src/Atom/NavList/NavList.stories.ts +15 -0
- package/src/Atom/NavList/__snapshots__/NavList.stories.ts.snap +43 -0
- package/src/Atom/NavList/nav-list.css +29 -0
- package/src/Atom/NavList/nav-list.twig +25 -0
- package/src/Atom/README.md +5 -0
- package/src/Atom/Spacing/Spacing.stories.ts +48 -0
- package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +8 -0
- package/src/Atom/Spacing/_spacing.css +36 -0
- package/src/Atom/Spacing/spacing.twig +3 -0
- package/src/Atom/Table/Table.stories.ts +39 -0
- package/src/Atom/Table/TableResponsive.stories.ts +16 -0
- package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +261 -0
- package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +68 -0
- package/src/Atom/Table/_table.css +72 -0
- package/src/Atom/Table/table-responsive.twig +32 -0
- package/src/Atom/Table/table.twig +30 -0
- package/src/Atom/Text/Text.stories.tsx +20 -0
- package/src/Atom/Text/Text.tsx +26 -0
- package/src/Atom/Text/TextSizes.stories.ts +25 -0
- package/src/Atom/Text/__snapshots__/Text.stories.tsx.snap +7 -0
- package/src/Atom/Text/__snapshots__/TextSizes.stories.ts.snap +63 -0
- package/src/Atom/Text/_text-align.css +13 -0
- package/src/Atom/Text/_text-sizes.css +117 -0
- package/src/Atom/Text/text-alignment.twig +5 -0
- package/src/Atom/Text/text-style.twig +1 -0
- package/src/Atom/Text/text-styles-example.twig +35 -0
- package/src/Atom/Video/Video.stories.ts +16 -0
- package/src/Atom/Video/Video.tsx +17 -0
- package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +21 -0
- package/src/Atom/Video/_video.css +10 -0
- package/src/Atom/Video/video.twig +5 -0
- package/src/Atom/_animated.css +65 -0
- package/src/Atom/_base.css +62 -0
- package/src/Atom/_flow-legacy.css +48 -0
- package/src/Atom/_flow.css +53 -0
- package/src/Atom/_generic.css +93 -0
- package/src/Atom/_hr.css +10 -0
- package/src/Atom/_mixins.css +22 -0
- package/src/Atom/_print.css +20 -0
- package/src/Atom/base.css +5 -0
- package/src/Atom/images/external-link.svg +1 -0
- package/src/Component/Accordion/Accordion.stories.ts +51 -0
- package/src/Component/Accordion/Accordion.stories.tsx +22 -0
- package/src/Component/Accordion/Accordion.tsx +83 -0
- package/src/Component/Accordion/Elements/Accordion.ts +82 -0
- package/src/Component/Accordion/Elements/AccordionDiv.ts +83 -0
- package/src/Component/Accordion/Elements/AccordionGroup.ts +106 -0
- package/src/Component/Accordion/Elements/AccordionMobile.ts +47 -0
- package/src/Component/Accordion/README.md +45 -0
- package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +94 -0
- package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +26 -0
- package/src/Component/Accordion/accordion-item.twig +18 -0
- package/src/Component/Accordion/accordion.css +107 -0
- package/src/Component/Accordion/accordion.twig +19 -0
- package/src/Component/Accordion/images/collapse.svg +1 -0
- package/src/Component/Accordion/images/expand.svg +1 -0
- package/src/Component/Accordion/twig/accordion-div.twig +13 -0
- package/src/Component/Accordion/twig/accordion-example.twig +36 -0
- package/src/Component/Accordion/twig/accordion-mobile.twig +15 -0
- package/src/Component/Accordion/twig/accordion-story.twig +13 -0
- package/src/Component/Author/Author.stories.tsx +18 -0
- package/src/Component/Author/Author.tsx +30 -0
- package/src/Component/Author/__snapshots__/Author.stories.tsx.snap +21 -0
- package/src/Component/Breadcrumb/Breadcrumb.stories.ts +15 -0
- package/src/Component/Breadcrumb/Breadcrumb.stories.tsx +38 -0
- package/src/Component/Breadcrumb/Breadcrumb.tsx +34 -0
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +26 -0
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +60 -0
- package/src/Component/Breadcrumb/breadcrumb.css +46 -0
- package/src/Component/Breadcrumb/breadcrumb.twig +12 -0
- package/src/Component/Callout/Callout.stories.ts +29 -0
- package/src/Component/Callout/callout.css +7 -0
- package/src/Component/Callout/callout.twig +10 -0
- package/src/Component/Callout/twig/callout-story.twig +11 -0
- package/src/Component/Card/CHANGELOG.md +187 -0
- package/src/Component/Card/Card.stories.ts +106 -0
- package/src/Component/Card/Card.stories.tsx +50 -0
- package/src/Component/Card/Card.tsx +56 -0
- package/src/Component/Card/README.md +21 -0
- package/src/Component/Card/__snapshots__/Card.stories.ts.snap +186 -0
- package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +88 -0
- package/src/Component/Card/__snapshots__/CardGrid.stories.ts.snap +89 -0
- package/src/Component/Card/card-grid.twig +10 -0
- package/src/Component/Card/card.css +128 -0
- package/src/Component/Card/card.twig +45 -0
- package/src/Component/Card/twig/old-card.twig +17 -0
- package/src/Component/Card/twig/story-card.twig +29 -0
- package/src/Component/ContentBlock/ContentBlock.stories.ts +15 -0
- package/src/Component/ContentBlock/ContentBlock.stories.tsx +30 -0
- package/src/Component/ContentBlock/ContentBlock.tsx +37 -0
- package/src/Component/ContentBlock/README.md +21 -0
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +26 -0
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.tsx.snap +21 -0
- package/src/Component/ContentBlock/content-block.css +21 -0
- package/src/Component/ContentBlock/content-block.twig +12 -0
- package/src/Component/ContentBlock/twig/content-block-example.twig +7 -0
- package/src/Component/Dialog/Dialog.stories.ts +28 -0
- package/src/Component/Dialog/Dialog.stories.tsx +45 -0
- package/src/Component/Dialog/Dialog.tsx +79 -0
- package/src/Component/Dialog/Elements/Dialog.ts +145 -0
- package/src/Component/Dialog/README.md +63 -0
- package/src/Component/Dialog/__snapshots__/Dialog.stories.ts.snap +85 -0
- package/src/Component/Dialog/__snapshots__/Dialog.stories.tsx.snap +39 -0
- package/src/Component/Dialog/dialog.css +85 -0
- package/src/Component/Dialog/dialog.twig +19 -0
- package/src/Component/DropMenu/Components/DropMenuContext.tsx +192 -0
- package/src/Component/DropMenu/Components/DropMenuItem.tsx +35 -0
- package/src/Component/DropMenu/DropMenu.stories.ts +36 -0
- package/src/Component/DropMenu/DropMenu.stories.tsx +24 -0
- package/src/Component/DropMenu/DropMenu.tsx +81 -0
- package/src/Component/DropMenu/Elements/DropMenu.ts +172 -0
- package/src/Component/DropMenu/README.md +11 -0
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +32 -0
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +47 -0
- package/src/Component/DropMenu/drop-menu.css +68 -0
- package/src/Component/DropMenu/drop-menu.twig +27 -0
- package/src/Component/DropMenu/polyfills.js +28 -0
- package/src/Component/HeroBanner/HeroBanner.stories.ts +75 -0
- package/src/Component/HeroBanner/HeroBanner.stories.tsx +30 -0
- package/src/Component/HeroBanner/HeroBanner.tsx +50 -0
- package/src/Component/HeroBanner/__snapshots__/PageTitle.stories.ts.snap +31 -0
- package/src/Component/HeroBanner/__snapshots__/PageTitle.stories.tsx.snap +36 -0
- package/src/Component/HeroBanner/hero-banner.css +51 -0
- package/src/Component/HeroBanner/hero-banner.twig +41 -0
- package/src/Component/HeroBanner/twig/hero-banner-story.twig +19 -0
- package/src/Component/InPageAlert/Elements/InPageAlert.ts +87 -0
- package/src/Component/InPageAlert/InPageAlert.stories.ts +35 -0
- package/src/Component/InPageAlert/InPageAlert.stories.tsx +43 -0
- package/src/Component/InPageAlert/InPageAlert.tsx +50 -0
- package/src/Component/InPageAlert/README.md +27 -0
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +43 -0
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.tsx.snap +69 -0
- package/src/Component/InPageAlert/in-page-alert.css +89 -0
- package/src/Component/InPageAlert/in-page-alert.twig +18 -0
- package/src/Component/InPageNavigation/Elements/InPageNavigation.ts +125 -0
- package/src/Component/InPageNavigation/Hooks/useInPageNavigation.ts +45 -0
- package/src/Component/InPageNavigation/InPageNavigation.stories.ts +16 -0
- package/src/Component/InPageNavigation/InPageNavigation.stories.tsx +86 -0
- package/src/Component/InPageNavigation/InPageNavigation.tsx +38 -0
- package/src/Component/InPageNavigation/README.md +30 -0
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +73 -0
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +149 -0
- package/src/Component/InPageNavigation/in-page-navigation.css +17 -0
- package/src/Component/InPageNavigation/in-page-navigation.twig +17 -0
- package/src/Component/InPageNavigation/twig/in-page-navigation-content-example.twig +16 -0
- package/src/Component/InPageNavigation/twig/in-page-navigation-menu-example.twig +6 -0
- package/src/Component/LinkList/LinkList.stories.ts +29 -0
- package/src/Component/LinkList/LinkList.stories.tsx +29 -0
- package/src/Component/LinkList/LinkList.tsx +43 -0
- package/src/Component/LinkList/README.md +19 -0
- package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +58 -0
- package/src/Component/LinkList/__snapshots__/LinkList.stories.tsx.snap +53 -0
- package/src/Component/LinkList/link-list.css +68 -0
- package/src/Component/LinkList/link-list.twig +12 -0
- package/src/Component/ListItem/Teaser.stories.tsx +34 -0
- package/src/Component/ListItem/Teaser.tsx +54 -0
- package/src/Component/ListItem/__snapshots__/Teaser.stories.tsx.snap +32 -0
- package/src/Component/Navigation/Collapsible.stories.ts +16 -0
- package/src/Component/Navigation/Components/DropdownLevel.tsx +107 -0
- package/src/Component/Navigation/Dropdown.stories.ts +16 -0
- package/src/Component/Navigation/Dropdown.stories.tsx +46 -0
- package/src/Component/Navigation/Dropdown.tsx +39 -0
- package/src/Component/Navigation/Elements/Navigation.ts +174 -0
- package/src/Component/Navigation/MegaNav.stories.ts +16 -0
- package/src/Component/Navigation/Navigation.stories.ts +15 -0
- package/src/Component/Navigation/Navigation.stories.tsx +40 -0
- package/src/Component/Navigation/Navigation.tsx +51 -0
- package/src/Component/Navigation/README.md +17 -0
- package/src/Component/Navigation/__snapshots__/Collapsible.stories.ts.snap +123 -0
- package/src/Component/Navigation/__snapshots__/Dropdown.stories.ts.snap +125 -0
- package/src/Component/Navigation/__snapshots__/Dropdown.stories.tsx.snap +39 -0
- package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +25 -0
- package/src/Component/Navigation/__snapshots__/Navigation.stories.tsx.snap +61 -0
- package/src/Component/Navigation/_navigation-collapsible.css +72 -0
- package/src/Component/Navigation/_navigation-dropdown.css +152 -0
- package/src/Component/Navigation/_navigation-mega.css +51 -0
- package/src/Component/Navigation/_navigation.css +55 -0
- package/src/Component/Navigation/navigation-collapsible.twig +7 -0
- package/src/Component/Navigation/navigation-dropdown.twig +7 -0
- package/src/Component/Navigation/navigation-mega-nav.twig +7 -0
- package/src/Component/Navigation/navigation.css +4 -0
- package/src/Component/Navigation/navigation.twig +9 -0
- package/src/Component/Navigation/twig/navigation-subnav-list.twig +108 -0
- package/src/Component/Pagination/Components/PaginationContext.tsx +188 -0
- package/src/Component/Pagination/Components/PaginationItem.tsx +48 -0
- package/src/Component/Pagination/Pagination.stories.ts +15 -0
- package/src/Component/Pagination/Pagination.stories.tsx +25 -0
- package/src/Component/Pagination/Pagination.tsx +75 -0
- package/src/Component/Pagination/README.md +19 -0
- package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +58 -0
- package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +57 -0
- package/src/Component/Pagination/pagination.css +112 -0
- package/src/Component/Pagination/pagination.twig +44 -0
- package/src/Component/SocialShare/SocialShare.stories.tsx +26 -0
- package/src/Component/SocialShare/SocialShare.tsx +53 -0
- package/src/Component/SocialShare/__snapshots__/SocialShare.stories.tsx.snap +25 -0
- package/src/Component/Sticky/Elements/Sticky.ts +93 -0
- package/src/Component/Sticky/README.md +23 -0
- package/src/Component/Sticky/Sticky.stories.ts +16 -0
- package/src/Component/Sticky/Sticky.stories.tsx +14 -0
- package/src/Component/Sticky/Sticky.tsx +34 -0
- package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +86 -0
- package/src/Component/Sticky/__snapshots__/Sticky.stories.tsx.snap +11 -0
- package/src/Component/Sticky/sticky.css +39 -0
- package/src/Component/Sticky/sticky.twig +21 -0
- package/src/Component/Sticky/twig/sticky-example.twig +4 -0
- package/src/Component/Tabs/Components/Tab.tsx +45 -0
- package/src/Component/Tabs/Components/TabDropMenu.tsx +14 -0
- package/src/Component/Tabs/Components/TabList.tsx +9 -0
- package/src/Component/Tabs/Components/TabPanel.tsx +32 -0
- package/src/Component/Tabs/Elements/Tabs.ts +213 -0
- package/src/Component/Tabs/README.md +23 -0
- package/src/Component/Tabs/Tabs.stories.ts +22 -0
- package/src/Component/Tabs/Tabs.stories.tsx +51 -0
- package/src/Component/Tabs/Tabs.tsx +100 -0
- package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +144 -0
- package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +120 -0
- package/src/Component/Tabs/tabs.css +103 -0
- package/src/Component/Tabs/tabs.twig +49 -0
- package/src/Component/Tabs/twig/panel.twig +5 -0
- package/src/Component/Tabs/twig/tab-list.twig +26 -0
- package/src/Component/Tag/README.md +19 -0
- package/src/Component/Tag/Tag.stories.ts +54 -0
- package/src/Component/Tag/Tag.stories.tsx +13 -0
- package/src/Component/Tag/Tag.tsx +19 -0
- package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +64 -0
- package/src/Component/Tag/__snapshots__/Tag.stories.tsx.snap +7 -0
- package/src/Component/Tag/tag.css +57 -0
- package/src/Component/Tag/tags.twig +23 -0
- package/src/Component/Tile/README.md +3 -0
- package/src/Component/Tile/Tile.stories.ts +23 -0
- package/src/Component/Tile/Tile.stories.tsx +30 -0
- package/src/Component/Tile/Tile.tsx +40 -0
- package/src/Component/Tile/__snapshots__/Tile.stories.ts.snap +83 -0
- package/src/Component/Tile/__snapshots__/Tile.stories.tsx.snap +38 -0
- package/src/Component/Tile/tile.twig +10 -0
- package/src/Component/Tile/tiles.css +58 -0
- package/src/Component/Tile/twig/tiles.twig +18 -0
- package/src/Form/Checkbox/Checkboxes.stories.ts +47 -0
- package/src/Form/Checkbox/FormCheckbox.stories.tsx +32 -0
- package/src/Form/Checkbox/FormCheckbox.tsx +124 -0
- package/src/Form/Checkbox/__snapshots__/Checkboxes.stories.ts.snap +115 -0
- package/src/Form/Checkbox/input-checkbox-single.twig +6 -0
- package/src/Form/Checkbox/input-checkbox.twig +24 -0
- package/src/Form/Description/Description.stories.ts +16 -0
- package/src/Form/Description/ErrorMessage.stories.ts +16 -0
- package/src/Form/Description/FormDescription.stories.tsx +14 -0
- package/src/Form/Description/FormDescription.tsx +28 -0
- package/src/Form/Description/__snapshots__/Description.stories.ts.snap +17 -0
- package/src/Form/Description/__snapshots__/ErrorMessage.stories.ts.snap +20 -0
- package/src/Form/Description/__snapshots__/FormDescription.stories.tsx.snap +10 -0
- package/src/Form/Description/form-description.twig +3 -0
- package/src/Form/Description/form-error.twig +5 -0
- package/src/Form/Fieldset/Fieldset.stories.ts +34 -0
- package/src/Form/Fieldset/__snapshots__/Fieldset.stories.ts.snap +23 -0
- package/src/Form/Fieldset/fieldset.twig +4 -0
- package/src/Form/Form/Form.stories.tsx +10 -0
- package/src/Form/Form/Form.tsx +9 -0
- package/src/Form/Form/FormTitle.stories.tsx +14 -0
- package/src/Form/Form/FormTitle.tsx +12 -0
- package/src/Form/Form/__snapshots__/Form.stories.tsx.snap +6 -0
- package/src/Form/Form/__snapshots__/FormTitle.stories.tsx.snap +9 -0
- package/src/Form/Form/twig/form-example.twig +13 -0
- package/src/Form/Item/FormItem.stories.tsx +58 -0
- package/src/Form/Item/FormItem.tsx +26 -0
- package/src/Form/Item/__snapshots__/FormItem.stories.tsx.snap +102 -0
- package/src/Form/Label/FormLabel.stories.tsx +20 -0
- package/src/Form/Label/FormLabel.tsx +19 -0
- package/src/Form/Label/Label.stories.ts +34 -0
- package/src/Form/Label/__snapshots__/FormLabel.stories.tsx.snap +16 -0
- package/src/Form/Label/__snapshots__/Label.stories.ts.snap +23 -0
- package/src/Form/Label/label.twig +2 -0
- package/src/Form/README.md +11 -0
- package/src/Form/Radio/FormRadio.stories.tsx +37 -0
- package/src/Form/Radio/FormRadio.tsx +80 -0
- package/src/Form/Radio/Radios.stories.ts +47 -0
- package/src/Form/Radio/__snapshots__/Radios.stories.ts.snap +125 -0
- package/src/Form/Radio/input-radio.twig +24 -0
- package/src/Form/Search/TextInputWithInlineButton.stories.ts +16 -0
- package/src/Form/Search/__snapshots__/TextInputWithInlineButton.stories.ts.snap +26 -0
- package/src/Form/Search/input-text-inline-submit.twig +8 -0
- package/src/Form/Select/FormSelect.stories.tsx +34 -0
- package/src/Form/Select/FormSelect.tsx +67 -0
- package/src/Form/Select/Select.stories.ts +40 -0
- package/src/Form/Select/__snapshots__/FormSelect.stories.tsx.snap +23 -0
- package/src/Form/Select/__snapshots__/Select.stories.ts.snap +148 -0
- package/src/Form/Select/select.twig +16 -0
- package/src/Form/TextInput/FormText.stories.tsx +15 -0
- package/src/Form/TextInput/FormText.tsx +55 -0
- package/src/Form/TextInput/InputDivider.stories.ts +16 -0
- package/src/Form/TextInput/TextInput.stories.ts +57 -0
- package/src/Form/TextInput/TextInputWithIcon.stories.ts +40 -0
- package/src/Form/TextInput/__snapshots__/FormText.stories.tsx.snap +13 -0
- package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +32 -0
- package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +101 -0
- package/src/Form/TextInput/__snapshots__/TextInputWithIcon.stories.ts.snap +67 -0
- package/src/Form/TextInput/input-divider.twig +11 -0
- package/src/Form/TextInput/input-text-icon.twig +7 -0
- package/src/Form/TextInput/input-text.twig +5 -0
- package/src/Form/Textarea/FormTextarea.stories.tsx +14 -0
- package/src/Form/Textarea/FormTextarea.tsx +53 -0
- package/src/Form/Textarea/Textarea.stories.ts +16 -0
- package/src/Form/Textarea/__snapshots__/FormTextarea.stories.tsx.snap +12 -0
- package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +19 -0
- package/src/Form/Textarea/textarea.twig +5 -0
- package/src/Form/form.css +479 -0
- package/src/Form/images/checkmark.svg +1 -0
- package/src/Form/images/form-chevron-down.svg +1 -0
- package/src/Form/images/form-error.svg +1 -0
- package/src/Form/images/form-success.svg +1 -0
- package/src/Layout/Footer/Footer.stories.ts +15 -0
- package/src/Layout/Footer/Footer.stories.tsx +42 -0
- package/src/Layout/Footer/Footer.tsx +55 -0
- package/src/Layout/Footer/FooterMenu/FooterMenu.stories.ts +15 -0
- package/src/Layout/Footer/FooterMenu/__snapshots__/FooterMenu.stories.ts.snap +101 -0
- package/src/Layout/Footer/FooterMenu/footer-menu.css +29 -0
- package/src/Layout/Footer/FooterMenu/footer-menu.twig +5 -0
- package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +139 -0
- package/src/Layout/Footer/__snapshots__/Footer.stories.tsx.snap +70 -0
- package/src/Layout/Footer/footer.css +54 -0
- package/src/Layout/Footer/footer.twig +25 -0
- package/src/Layout/Grid/Grid.stories.ts +68 -0
- package/src/Layout/Grid/Grid.stories.tsx +125 -0
- package/src/Layout/Grid/Grid.tsx +51 -0
- package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +103 -0
- package/src/Layout/Grid/__snapshots__/Grid.stories.tsx.snap +67 -0
- package/src/Layout/Grid/container-grid.css +190 -0
- package/src/Layout/Grid/grid-item.twig +16 -0
- package/src/Layout/Grid/grid.css +190 -0
- package/src/Layout/Grid/grid.twig +10 -0
- package/src/Layout/Grid/twig/container-grid-dynamic.twig +47 -0
- package/src/Layout/Grid/twig/container-grid.twig +46 -0
- package/src/Layout/Grid/twig/grid-story.twig +6 -0
- package/src/Layout/Grid/twig/old-grid.twig +46 -0
- package/src/Layout/Header/Components/GlobalToggle.tsx +35 -0
- package/src/Layout/Header/Components/Logo.tsx +17 -0
- package/src/Layout/Header/Elements/GlobalToggle.ts +137 -0
- package/src/Layout/Header/Header.stories.ts +18 -0
- package/src/Layout/Header/Header.stories.tsx +17 -0
- package/src/Layout/Header/Header.tsx +73 -0
- package/src/Layout/Header/Stacked/Stacked.stories.ts +16 -0
- package/src/Layout/Header/Stacked/__snapshots__/Stacked.stories.ts.snap +353 -0
- package/src/Layout/Header/Stacked/header-stacked.twig +33 -0
- package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +157 -0
- package/src/Layout/Header/__snapshots__/Header.stories.tsx.snap +55 -0
- package/src/Layout/Header/_header.css +89 -0
- package/src/Layout/Header/_toggles.css +31 -0
- package/src/Layout/Header/header.css +2 -0
- package/src/Layout/Header/header.twig +24 -0
- package/src/Layout/Header/twig/global-header.twig +4 -0
- package/src/Layout/Header/twig/logo.twig +3 -0
- package/src/Layout/Masthead/Masthead.stories.ts +16 -0
- package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +32 -0
- package/src/Layout/Masthead/masthead.css +36 -0
- package/src/Layout/Masthead/masthead.twig +10 -0
- package/src/Layout/Page/Page.stories.tsx +22 -0
- package/src/Layout/Page/Page.tsx +16 -0
- package/src/Layout/Page/README.md +19 -0
- package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +80 -0
- package/src/Layout/Page/page.css +150 -0
- package/src/Layout/Page/page.twig +3 -0
- package/src/Layout/README.md +19 -0
- package/src/Layout/Section/Background.stories.ts +25 -0
- package/src/Layout/Section/Breakouts.stories.ts +16 -0
- package/src/Layout/Section/Flow.stories.ts +16 -0
- package/src/Layout/Section/Section.stories.ts +63 -0
- package/src/Layout/Section/Section.stories.tsx +56 -0
- package/src/Layout/Section/Section.tsx +83 -0
- package/src/Layout/Section/SectionGrid.stories.tsx +53 -0
- package/src/Layout/Section/SectionGrid.tsx +71 -0
- package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +19 -0
- package/src/Layout/Section/__snapshots__/Section.stories.tsx.snap +37 -0
- package/src/Layout/Section/__snapshots__/SectionBackground.stories.ts.snap +55 -0
- package/src/Layout/Section/__snapshots__/SectionGrid.stories.tsx.snap +37 -0
- package/src/Layout/Section/__snapshots__/SectionsBreakouts.stories.ts.snap +78 -0
- package/src/Layout/Section/__snapshots__/SectionsFlowsGroups.stories.ts.snap +89 -0
- package/src/Layout/Section/section.css +156 -0
- package/src/Layout/Section/section.twig +25 -0
- package/src/Layout/Section/twig/section-background.twig +12 -0
- package/src/Layout/Section/twig/section-story.twig +14 -0
- package/src/Layout/Section/twig/sections-breakout.twig +38 -0
- package/src/Layout/Section/twig/sections-flow.twig +51 -0
- package/src/Layout/Section/twig/sections-stacked.twig +28 -0
- package/src/Layout/Sidebar/Sidebar.stories.ts +35 -0
- package/src/Layout/Sidebar/Sidebar.stories.tsx +33 -0
- package/src/Layout/Sidebar/Sidebar.tsx +34 -0
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +40 -0
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.tsx.snap +47 -0
- package/src/Layout/Sidebar/sidebar.css +69 -0
- package/src/Layout/Sidebar/sidebar.twig +17 -0
- package/src/Layout/images/mixtape-logo.png +0 -0
- package/src/Utility/Context/ImageComponent.tsx +49 -0
- package/src/Utility/Context/LinkComponent.tsx +57 -0
- package/src/Utility/Drupal/README.md +9 -0
- package/src/Utility/Drupal/drupal.css +66 -0
- package/src/Utility/Drupal/twig/local-tasks.twig +17 -0
- package/src/Utility/Drupal/twig/login-form.twig +22 -0
- package/src/Utility/Elements/breakpoint-loader.ts +79 -0
- package/src/Utility/Elements/cookie-compliance.ts +174 -0
- package/src/Utility/Elements/disclosure-widget.ts +173 -0
- package/src/Utility/Elements/io-loader.ts +57 -0
- package/src/Utility/Elements/keyboard.ts +150 -0
- package/src/Utility/Hooks/useLocalStorage.ts +78 -0
- package/src/Utility/Hooks/useMediaQuery.ts +31 -0
- package/src/Utility/Hooks/useToggle.ts +17 -0
- package/src/Utility/Hooks/useUrlParams.ts +24 -0
- package/src/Utility/README.md +15 -0
- package/src/Utility/_layout-utils.css +78 -0
- package/src/Utility/global.d.ts +25 -0
- package/src/Utility/utilities.css +88 -0
- package/src/Utility/utilities.ts +163 -0
- package/src/_custom-media.css +33 -0
- package/src/constants.css +118 -0
- package/src/elements.ts +13 -0
- package/src/enums.ts +260 -0
- package/src/index.css +27 -0
- package/src/react.ts +68 -0
- package/src/tokens.js +119 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Navigation/FooterMenu Footer smoke-test 1`] = `
|
|
4
|
+
<nav class="nav nav--footer ">
|
|
5
|
+
<ul class="nav__level-1">
|
|
6
|
+
<li class="nav__has-subnav">
|
|
7
|
+
<a href="#"
|
|
8
|
+
aria-current="page"
|
|
9
|
+
>
|
|
10
|
+
1.1 Level 1 Title
|
|
11
|
+
</a>
|
|
12
|
+
<button class="nav__toggle icon icon--chevron-down icon--only">
|
|
13
|
+
Sub-navigation
|
|
14
|
+
</button>
|
|
15
|
+
<ul class="nav__level-2"
|
|
16
|
+
inert
|
|
17
|
+
>
|
|
18
|
+
<li class="nav__has-subnav">
|
|
19
|
+
<a href="/">
|
|
20
|
+
1.1.1 Level 2 Title
|
|
21
|
+
</a>
|
|
22
|
+
</li>
|
|
23
|
+
<li class="nav__has-subnav">
|
|
24
|
+
<a href="/">
|
|
25
|
+
1.1.2 Level 2 Title
|
|
26
|
+
</a>
|
|
27
|
+
</li>
|
|
28
|
+
<li class="nav__has-subnav">
|
|
29
|
+
<a href="/">
|
|
30
|
+
1.1.3 Level 2 Title Longer
|
|
31
|
+
</a>
|
|
32
|
+
</li>
|
|
33
|
+
<li class="nav__has-subnav">
|
|
34
|
+
<a href="/">
|
|
35
|
+
1.1.4 Level 2 Title
|
|
36
|
+
</a>
|
|
37
|
+
</li>
|
|
38
|
+
<li class="nav__has-subnav">
|
|
39
|
+
<a href="/">
|
|
40
|
+
1.1.5 Level 2 Title
|
|
41
|
+
</a>
|
|
42
|
+
</li>
|
|
43
|
+
</ul>
|
|
44
|
+
</li>
|
|
45
|
+
<li class="nav__has-subnav">
|
|
46
|
+
<a href="/">
|
|
47
|
+
1.2 Level 1 Title
|
|
48
|
+
</a>
|
|
49
|
+
<button class="nav__toggle icon icon--chevron-down icon--only">
|
|
50
|
+
Sub-navigation
|
|
51
|
+
</button>
|
|
52
|
+
<ul class="nav__level-2"
|
|
53
|
+
inert
|
|
54
|
+
>
|
|
55
|
+
<li>
|
|
56
|
+
<a href="/">
|
|
57
|
+
1.2.1 Level 2 Title
|
|
58
|
+
</a>
|
|
59
|
+
</li>
|
|
60
|
+
<li>
|
|
61
|
+
<a href="/">
|
|
62
|
+
1.2.2 Level 2 Title Longer
|
|
63
|
+
</a>
|
|
64
|
+
</li>
|
|
65
|
+
<li>
|
|
66
|
+
<a href="/">
|
|
67
|
+
1.2.1 Level 2 Title
|
|
68
|
+
</a>
|
|
69
|
+
</li>
|
|
70
|
+
</ul>
|
|
71
|
+
</li>
|
|
72
|
+
<li class="nav__has-subnav">
|
|
73
|
+
<a href="/">
|
|
74
|
+
1.3 Level 1 Title
|
|
75
|
+
</a>
|
|
76
|
+
<button class="nav__toggle icon icon--chevron-down icon--only">
|
|
77
|
+
Sub-navigation
|
|
78
|
+
</button>
|
|
79
|
+
<ul class="nav__level-2"
|
|
80
|
+
inert
|
|
81
|
+
>
|
|
82
|
+
<li class="nav__has-subnav">
|
|
83
|
+
<a href="/">
|
|
84
|
+
1.3.1 Level 2 Title
|
|
85
|
+
</a>
|
|
86
|
+
</li>
|
|
87
|
+
<li>
|
|
88
|
+
<a href="/">
|
|
89
|
+
1.3.2 Level 2 Title
|
|
90
|
+
</a>
|
|
91
|
+
</li>
|
|
92
|
+
<li>
|
|
93
|
+
<a href="/">
|
|
94
|
+
1.3.3 Level 2 Title
|
|
95
|
+
</a>
|
|
96
|
+
</li>
|
|
97
|
+
</ul>
|
|
98
|
+
</li>
|
|
99
|
+
</ul>
|
|
100
|
+
</nav>
|
|
101
|
+
`;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Footer Navigation
|
|
3
|
+
*/
|
|
4
|
+
@layer components {
|
|
5
|
+
.nav--footer {
|
|
6
|
+
& ul {
|
|
7
|
+
display: grid;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
& .nav__level-1 {
|
|
11
|
+
gap: var(--spacing-l) var(--spacing-xxxl);
|
|
12
|
+
grid-template-columns: 1fr 1fr;
|
|
13
|
+
|
|
14
|
+
@media (--medium-up) {
|
|
15
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
& > li > a {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
margin-block-end: var(--spacing-l);
|
|
21
|
+
font-weight: var(--font-weight-bold);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
& .nav__level-2 {
|
|
26
|
+
gap: var(--spacing-s);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Layout/Footer Footer smoke-test 1`] = `
|
|
4
|
+
<footer class="footer section section--top-l section--bottom-m background--reverse foreground--reverse">
|
|
5
|
+
<div class="grid">
|
|
6
|
+
<div class="footer__logo grid--3-col">
|
|
7
|
+
<a class="logo "
|
|
8
|
+
href="#"
|
|
9
|
+
>
|
|
10
|
+
<img alt="Mixtape"
|
|
11
|
+
src="./mixtape-logo.png"
|
|
12
|
+
width="120"
|
|
13
|
+
height="49"
|
|
14
|
+
>
|
|
15
|
+
</a>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="footer__navigation grid--9-col">
|
|
18
|
+
<nav class="nav nav--footer ">
|
|
19
|
+
<ul class="nav__level-1">
|
|
20
|
+
<li class="nav__has-subnav">
|
|
21
|
+
<a href="#"
|
|
22
|
+
aria-current="page"
|
|
23
|
+
>
|
|
24
|
+
1.1 Level 1 Title
|
|
25
|
+
</a>
|
|
26
|
+
<button class="nav__toggle icon icon--chevron-down icon--only">
|
|
27
|
+
Sub-navigation
|
|
28
|
+
</button>
|
|
29
|
+
<ul class="nav__level-2"
|
|
30
|
+
inert
|
|
31
|
+
>
|
|
32
|
+
<li class="nav__has-subnav">
|
|
33
|
+
<a href="/">
|
|
34
|
+
1.1.1 Level 2 Title
|
|
35
|
+
</a>
|
|
36
|
+
</li>
|
|
37
|
+
<li class="nav__has-subnav">
|
|
38
|
+
<a href="/">
|
|
39
|
+
1.1.2 Level 2 Title
|
|
40
|
+
</a>
|
|
41
|
+
</li>
|
|
42
|
+
<li class="nav__has-subnav">
|
|
43
|
+
<a href="/">
|
|
44
|
+
1.1.3 Level 2 Title Longer
|
|
45
|
+
</a>
|
|
46
|
+
</li>
|
|
47
|
+
<li class="nav__has-subnav">
|
|
48
|
+
<a href="/">
|
|
49
|
+
1.1.4 Level 2 Title
|
|
50
|
+
</a>
|
|
51
|
+
</li>
|
|
52
|
+
<li class="nav__has-subnav">
|
|
53
|
+
<a href="/">
|
|
54
|
+
1.1.5 Level 2 Title
|
|
55
|
+
</a>
|
|
56
|
+
</li>
|
|
57
|
+
</ul>
|
|
58
|
+
</li>
|
|
59
|
+
<li class="nav__has-subnav">
|
|
60
|
+
<a href="/">
|
|
61
|
+
1.2 Level 1 Title
|
|
62
|
+
</a>
|
|
63
|
+
<button class="nav__toggle icon icon--chevron-down icon--only">
|
|
64
|
+
Sub-navigation
|
|
65
|
+
</button>
|
|
66
|
+
<ul class="nav__level-2"
|
|
67
|
+
inert
|
|
68
|
+
>
|
|
69
|
+
<li>
|
|
70
|
+
<a href="/">
|
|
71
|
+
1.2.1 Level 2 Title
|
|
72
|
+
</a>
|
|
73
|
+
</li>
|
|
74
|
+
<li>
|
|
75
|
+
<a href="/">
|
|
76
|
+
1.2.2 Level 2 Title Longer
|
|
77
|
+
</a>
|
|
78
|
+
</li>
|
|
79
|
+
<li>
|
|
80
|
+
<a href="/">
|
|
81
|
+
1.2.1 Level 2 Title
|
|
82
|
+
</a>
|
|
83
|
+
</li>
|
|
84
|
+
</ul>
|
|
85
|
+
</li>
|
|
86
|
+
<li class="nav__has-subnav">
|
|
87
|
+
<a href="/">
|
|
88
|
+
1.3 Level 1 Title
|
|
89
|
+
</a>
|
|
90
|
+
<button class="nav__toggle icon icon--chevron-down icon--only">
|
|
91
|
+
Sub-navigation
|
|
92
|
+
</button>
|
|
93
|
+
<ul class="nav__level-2"
|
|
94
|
+
inert
|
|
95
|
+
>
|
|
96
|
+
<li class="nav__has-subnav">
|
|
97
|
+
<a href="/">
|
|
98
|
+
1.3.1 Level 2 Title
|
|
99
|
+
</a>
|
|
100
|
+
</li>
|
|
101
|
+
<li>
|
|
102
|
+
<a href="/">
|
|
103
|
+
1.3.2 Level 2 Title
|
|
104
|
+
</a>
|
|
105
|
+
</li>
|
|
106
|
+
<li>
|
|
107
|
+
<a href="/">
|
|
108
|
+
1.3.3 Level 2 Title
|
|
109
|
+
</a>
|
|
110
|
+
</li>
|
|
111
|
+
</ul>
|
|
112
|
+
</li>
|
|
113
|
+
</ul>
|
|
114
|
+
</nav>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="footer__meta grid--12-col">
|
|
117
|
+
<span class="text--s">
|
|
118
|
+
© 2019 Company Name
|
|
119
|
+
</span>
|
|
120
|
+
<nav class="nav nav--inline text--s"
|
|
121
|
+
aria-label="Footer subsidiary links"
|
|
122
|
+
>
|
|
123
|
+
<ul>
|
|
124
|
+
<li>
|
|
125
|
+
<a href="#">
|
|
126
|
+
Sitemap
|
|
127
|
+
</a>
|
|
128
|
+
</li>
|
|
129
|
+
<li>
|
|
130
|
+
<a href="#">
|
|
131
|
+
Privacy & Terms
|
|
132
|
+
</a>
|
|
133
|
+
</li>
|
|
134
|
+
</ul>
|
|
135
|
+
</nav>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</footer>
|
|
139
|
+
`;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Layout/Footer Default smoke-test 1`] = `
|
|
4
|
+
<footer class="page section--top-l section--bottom-m">
|
|
5
|
+
<div class="grid">
|
|
6
|
+
<div class="grid--12-col footer__meta">
|
|
7
|
+
<span>
|
|
8
|
+
© 2022 Company Name
|
|
9
|
+
</span>
|
|
10
|
+
<nav class="nav nav--inline"
|
|
11
|
+
aria-label="Footer navigation"
|
|
12
|
+
>
|
|
13
|
+
<ul>
|
|
14
|
+
<li class>
|
|
15
|
+
<a href="http://example.com"
|
|
16
|
+
class
|
|
17
|
+
>
|
|
18
|
+
Sitemap
|
|
19
|
+
</a>
|
|
20
|
+
</li>
|
|
21
|
+
<li class>
|
|
22
|
+
<a href="http://example.com"
|
|
23
|
+
class
|
|
24
|
+
>
|
|
25
|
+
Privacy & Terms
|
|
26
|
+
</a>
|
|
27
|
+
</li>
|
|
28
|
+
</ul>
|
|
29
|
+
</nav>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</footer>
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
exports[`Layout/Footer WithChildren smoke-test 1`] = `
|
|
36
|
+
<footer class="page section--top-l section--bottom-m">
|
|
37
|
+
<div class="grid">
|
|
38
|
+
<div class="grid--12-col">
|
|
39
|
+
<p>
|
|
40
|
+
Ullamcorper lobortis aliquam nulla nisl adipiscing cras fermentum dictumst netus felis semper elit adipiscing cum montes varius condimentum scelerisque condimentum diam a.
|
|
41
|
+
</p>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="grid--12-col footer__meta">
|
|
44
|
+
<span>
|
|
45
|
+
© 2022 Company Name
|
|
46
|
+
</span>
|
|
47
|
+
<nav class="nav nav--inline"
|
|
48
|
+
aria-label="Footer navigation"
|
|
49
|
+
>
|
|
50
|
+
<ul>
|
|
51
|
+
<li class>
|
|
52
|
+
<a href="http://example.com"
|
|
53
|
+
class
|
|
54
|
+
>
|
|
55
|
+
Sitemap
|
|
56
|
+
</a>
|
|
57
|
+
</li>
|
|
58
|
+
<li class>
|
|
59
|
+
<a href="http://example.com"
|
|
60
|
+
class
|
|
61
|
+
>
|
|
62
|
+
Privacy & Terms
|
|
63
|
+
</a>
|
|
64
|
+
</li>
|
|
65
|
+
</ul>
|
|
66
|
+
</nav>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</footer>
|
|
70
|
+
`;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Global Footer
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
@layer components {
|
|
6
|
+
.footer {
|
|
7
|
+
position: sticky;
|
|
8
|
+
inset-block-start: 100vh;
|
|
9
|
+
|
|
10
|
+
& .nav__toggle {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
& .grid {
|
|
15
|
+
row-gap: var(--footer-row-gap, var(--spacing-xxxl));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.footer__logo {
|
|
20
|
+
@media (--medium-down) {
|
|
21
|
+
text-align: center;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.footer__meta {
|
|
26
|
+
padding-block-start: var(--spacing-s);
|
|
27
|
+
border-block-start: var(--line-width, 1px) solid
|
|
28
|
+
var(--line-colour, var(--colour-border));
|
|
29
|
+
text-align: center;
|
|
30
|
+
line-height: 2;
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
align-items: center;
|
|
34
|
+
flex-wrap: wrap;
|
|
35
|
+
gap: var(--gap);
|
|
36
|
+
|
|
37
|
+
@media (--x-small-down) {
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
& .nav--inline > ul {
|
|
42
|
+
@media (--x-small-down) {
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
gap: var(--gap-s);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media print {
|
|
51
|
+
.footer {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<footer class="footer section section--top-l section--bottom-m background--reverse foreground--reverse">
|
|
2
|
+
<div class="grid">
|
|
3
|
+
<div class="footer__logo grid--3-col">
|
|
4
|
+
{% block logos %}
|
|
5
|
+
{% include "@mixtape/Layout/Header/twig/logo.twig" %}
|
|
6
|
+
{% endblock %}
|
|
7
|
+
</div>
|
|
8
|
+
<div class="footer__navigation grid--9-col">
|
|
9
|
+
{% block nav %}
|
|
10
|
+
{% include "./FooterMenu/footer-menu.twig" %}
|
|
11
|
+
{% endblock %}
|
|
12
|
+
</div>
|
|
13
|
+
<div class="footer__meta grid--12-col">
|
|
14
|
+
{% block meta %}
|
|
15
|
+
<span class="text--s">© 2019 Company Name</span>
|
|
16
|
+
<nav class="nav nav--inline text--s" aria-label="Footer subsidiary links">
|
|
17
|
+
<ul>
|
|
18
|
+
<li><a href="#">Sitemap</a></li>
|
|
19
|
+
<li><a href="#">Privacy & Terms</a></li>
|
|
20
|
+
</ul>
|
|
21
|
+
</nav>
|
|
22
|
+
{% endblock %}
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</footer>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/html"
|
|
2
|
+
import Component from "./twig/grid-story.twig"
|
|
3
|
+
import "./grid.css"
|
|
4
|
+
import {
|
|
5
|
+
AsTypes,
|
|
6
|
+
Grid as GridType,
|
|
7
|
+
GridModifiers,
|
|
8
|
+
SectionTypes,
|
|
9
|
+
} from "@pnx-mixtape/ids-shape"
|
|
10
|
+
|
|
11
|
+
const meta: Meta<GridType> = {
|
|
12
|
+
tags: ["autodocs", "ids-mvp"],
|
|
13
|
+
component: Component,
|
|
14
|
+
args: {
|
|
15
|
+
items: [
|
|
16
|
+
{ item: "item 1" },
|
|
17
|
+
{ item: "item 2" },
|
|
18
|
+
{ item: "item 3" },
|
|
19
|
+
{ item: "item 4" },
|
|
20
|
+
{ item: "item 5" },
|
|
21
|
+
{ item: "item 6" },
|
|
22
|
+
],
|
|
23
|
+
as: SectionTypes.DIV,
|
|
24
|
+
modifiers: [GridModifiers.SM_2, GridModifiers.LG_4],
|
|
25
|
+
},
|
|
26
|
+
argTypes: {
|
|
27
|
+
modifiers: {
|
|
28
|
+
options: Object.values(GridModifiers),
|
|
29
|
+
control: "multi-select",
|
|
30
|
+
},
|
|
31
|
+
as: { options: Object.values(SectionTypes), control: "select" },
|
|
32
|
+
},
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default meta
|
|
36
|
+
type Story = StoryObj<GridType>
|
|
37
|
+
|
|
38
|
+
export const Grid: Story = {}
|
|
39
|
+
|
|
40
|
+
export const List: Story = {
|
|
41
|
+
args: {
|
|
42
|
+
as: SectionTypes.LIST,
|
|
43
|
+
modifiers: [GridModifiers.SM_2],
|
|
44
|
+
items: [
|
|
45
|
+
{
|
|
46
|
+
item: "list item 1",
|
|
47
|
+
as: AsTypes.LI,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
item: "list item 2",
|
|
51
|
+
as: AsTypes.LI,
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export const Span: Story = {
|
|
58
|
+
args: {
|
|
59
|
+
modifiers: [GridModifiers.SM_2, GridModifiers.MD_3],
|
|
60
|
+
items: [
|
|
61
|
+
{ item: "item 1" },
|
|
62
|
+
{
|
|
63
|
+
item: "item 2, span 2",
|
|
64
|
+
modifiers: [GridModifiers.MD_2],
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* eslint-disable @eslint-react/no-array-index-key, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment */
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
import Component from "./Grid"
|
|
4
|
+
import { AsTags, GridColumns, GridWidths, SectionTags } from "../../enums"
|
|
5
|
+
|
|
6
|
+
const Grid = ({ children, ...args }) => (
|
|
7
|
+
<Component wrapper {...args}>
|
|
8
|
+
{children.map((item, key) => (
|
|
9
|
+
<Component key={key} width={item.width}>
|
|
10
|
+
{item.value}
|
|
11
|
+
</Component>
|
|
12
|
+
))}
|
|
13
|
+
</Component>
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
const meta: Meta<typeof Component> = {
|
|
17
|
+
tags: ["autodocs"],
|
|
18
|
+
component: Component,
|
|
19
|
+
render: Grid,
|
|
20
|
+
argTypes: {
|
|
21
|
+
width: { options: Object.values(GridWidths) },
|
|
22
|
+
cols: { options: Object.values(GridColumns) },
|
|
23
|
+
as: { options: [...Object.values(SectionTags), ...Object.values(AsTags)] },
|
|
24
|
+
},
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default meta
|
|
28
|
+
type Story = StoryObj<typeof meta>
|
|
29
|
+
|
|
30
|
+
export const Dynamic: Story = {
|
|
31
|
+
args: {
|
|
32
|
+
cols: GridColumns.DYNAMIC,
|
|
33
|
+
children: [
|
|
34
|
+
{
|
|
35
|
+
value: "1",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
value: "2",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
value: "3",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
}
|
|
46
|
+
export const Breakpoints: Story = {
|
|
47
|
+
args: {
|
|
48
|
+
cols: [GridColumns.M_2, GridColumns.L_4],
|
|
49
|
+
children: [
|
|
50
|
+
{
|
|
51
|
+
value: "1",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
value: "2",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
value: "3",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
value: "4",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
}
|
|
65
|
+
export const Fixed: Story = {
|
|
66
|
+
args: {
|
|
67
|
+
children: [
|
|
68
|
+
{
|
|
69
|
+
value: "1",
|
|
70
|
+
width: "8",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
value: "2",
|
|
74
|
+
width: "4",
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
}
|
|
79
|
+
export const Container: Story = {
|
|
80
|
+
render: ({ children, ...args }) => (
|
|
81
|
+
<div className="container">
|
|
82
|
+
<Component wrapper {...args}>
|
|
83
|
+
{children.map((item, key) => (
|
|
84
|
+
<Component key={key} width={item.width}>
|
|
85
|
+
{item.value}
|
|
86
|
+
</Component>
|
|
87
|
+
))}
|
|
88
|
+
</Component>
|
|
89
|
+
</div>
|
|
90
|
+
),
|
|
91
|
+
args: {
|
|
92
|
+
cols: GridColumns.DYNAMIC,
|
|
93
|
+
children: [
|
|
94
|
+
{
|
|
95
|
+
value: "1",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
value: "2",
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
}
|
|
103
|
+
export const List: Story = {
|
|
104
|
+
render: ({ children, ...args }) => (
|
|
105
|
+
<Component wrapper as={SectionTags.LIST} {...args}>
|
|
106
|
+
{children.map((item, key) => (
|
|
107
|
+
<Component as={AsTags.LI} key={key} width={item.width}>
|
|
108
|
+
{item.value}
|
|
109
|
+
</Component>
|
|
110
|
+
))}
|
|
111
|
+
</Component>
|
|
112
|
+
),
|
|
113
|
+
args: {
|
|
114
|
+
children: [
|
|
115
|
+
{
|
|
116
|
+
value: "1",
|
|
117
|
+
width: "8",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
value: "2",
|
|
121
|
+
width: "4",
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
},
|
|
125
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { JSX, PropsWithChildren, useMemo } from "react"
|
|
2
|
+
import classNames from "classnames"
|
|
3
|
+
import { AsTags, GridColumns, GridWidths, SectionTags } from "../../enums"
|
|
4
|
+
|
|
5
|
+
type GridProps = PropsWithChildren & {
|
|
6
|
+
wrapper?: boolean
|
|
7
|
+
container?: boolean
|
|
8
|
+
cols?: GridColumns | GridColumns[]
|
|
9
|
+
width?: GridWidths
|
|
10
|
+
className?: string
|
|
11
|
+
as?: AsTags | SectionTags
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const Grid = ({
|
|
15
|
+
children,
|
|
16
|
+
wrapper = false,
|
|
17
|
+
container = false,
|
|
18
|
+
cols,
|
|
19
|
+
width,
|
|
20
|
+
className,
|
|
21
|
+
as = AsTags.DIV,
|
|
22
|
+
...props
|
|
23
|
+
}: GridProps): JSX.Element => {
|
|
24
|
+
const Tag: JSX.ElementType = `${as}` as unknown as JSX.ElementType
|
|
25
|
+
|
|
26
|
+
const colClasses = useMemo<string[]>(() => {
|
|
27
|
+
if (!cols) return []
|
|
28
|
+
if (Array.isArray(cols))
|
|
29
|
+
return cols.map((col: GridColumns) => `grid--${col}`)
|
|
30
|
+
return [`grid--${cols}`]
|
|
31
|
+
}, [cols])
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<Tag
|
|
35
|
+
className={classNames(
|
|
36
|
+
{
|
|
37
|
+
grid: wrapper,
|
|
38
|
+
container: container,
|
|
39
|
+
[colClasses.join(" ")]: cols && wrapper,
|
|
40
|
+
[`grid--${width}-col`]: width,
|
|
41
|
+
},
|
|
42
|
+
className,
|
|
43
|
+
)}
|
|
44
|
+
{...props}
|
|
45
|
+
>
|
|
46
|
+
{children}
|
|
47
|
+
</Tag>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export default Grid
|