@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,93 @@
|
|
|
1
|
+
@layer defaults {
|
|
2
|
+
*,
|
|
3
|
+
*::before,
|
|
4
|
+
*::after {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
background-repeat: no-repeat;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
* {
|
|
10
|
+
margin: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:focus {
|
|
14
|
+
scroll-padding-block-end: 4vh;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:focus-visible {
|
|
18
|
+
--outline-size: max(2px, 0.15em);
|
|
19
|
+
|
|
20
|
+
outline: var(--outline-width, var(--outline-size))
|
|
21
|
+
var(--outline-style, solid) var(--outline-color, currentcolor);
|
|
22
|
+
outline-offset: var(--outline-offset, var(--outline-size));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
html {
|
|
26
|
+
block-size: 100%;
|
|
27
|
+
font-size: 100%; /* 16px in most browsers */
|
|
28
|
+
font-family: var(--font-family);
|
|
29
|
+
line-height: var(--line-height);
|
|
30
|
+
scroll-behavior: smooth;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.translated-rtl {
|
|
34
|
+
direction: rtl;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
body {
|
|
38
|
+
font-size: var(--font-size);
|
|
39
|
+
color: var(--colour-foreground);
|
|
40
|
+
accent-color: var(--colour-primary);
|
|
41
|
+
text-rendering: optimizespeed;
|
|
42
|
+
block-size: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:target,
|
|
46
|
+
[id],
|
|
47
|
+
.has-scroll-margin {
|
|
48
|
+
scroll-margin-block-start: calc(
|
|
49
|
+
var(--sticky-offset, 0rem) + var(--scroll-margin, var(--spacing-m))
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:is(b, strong) {
|
|
54
|
+
font-weight: var(--font-weight-bold);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
a:where([href]) {
|
|
58
|
+
text-decoration: underline;
|
|
59
|
+
text-decoration-thickness: max(0.08em, 1px);
|
|
60
|
+
text-decoration-skip-ink: auto;
|
|
61
|
+
text-underline-offset: 0.15em;
|
|
62
|
+
|
|
63
|
+
&:hover,
|
|
64
|
+
&:active {
|
|
65
|
+
text-underline-offset: 0.2em;
|
|
66
|
+
text-decoration-thickness: max(0.09em, 2px);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:is(ol, ul) {
|
|
71
|
+
padding-inline-start: var(--spacing-m);
|
|
72
|
+
|
|
73
|
+
&[role="list"] {
|
|
74
|
+
list-style: none;
|
|
75
|
+
padding-inline-start: 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
dl {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
gap: var(--spacing-xs);
|
|
83
|
+
|
|
84
|
+
& div {
|
|
85
|
+
display: flex;
|
|
86
|
+
gap: var(--spacing-s);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
p {
|
|
91
|
+
text-wrap: pretty;
|
|
92
|
+
}
|
|
93
|
+
}
|
package/src/Atom/_hr.css
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* stylelint-disable custom-property-pattern */
|
|
2
|
+
@define-mixin spacing $size {
|
|
3
|
+
.spacing--$(size) {
|
|
4
|
+
padding: var(--spacing-$(size));
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.spacing--top-$(size) {
|
|
8
|
+
padding-block-start: var(--spacing-$(size));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.spacing--bottom-$(size) {
|
|
12
|
+
padding-block-end: var(--spacing-$(size));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.spacing--left-$(size) {
|
|
16
|
+
padding-inline-start: var(--spacing-$(size));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.spacing--right-$(size) {
|
|
20
|
+
padding-inline-end: var(--spacing-$(size));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@media print {
|
|
2
|
+
.contextual {
|
|
3
|
+
display: none;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.rich-text {
|
|
7
|
+
max-inline-size: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
figure {
|
|
11
|
+
&.image--breakout {
|
|
12
|
+
max-inline-size: 500px;
|
|
13
|
+
margin-inline-start: 0;
|
|
14
|
+
|
|
15
|
+
& figcaption {
|
|
16
|
+
max-inline-size: 100%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M15 0H8v2h4.6L6.3 8.3l1.4 1.4L14 3.4V8h2V1c0-.6-.4-1-1-1z"/><path d="M14 16H1c-.6 0-1-.4-1-1V2c0-.6.4-1 1-1h4v2H2v11h11v-3h2v4c0 .6-.4 1-1 1z"/></svg>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/html"
|
|
2
|
+
import Component from "./twig/accordion-story.twig"
|
|
3
|
+
import "./Elements/AccordionGroup"
|
|
4
|
+
import "./accordion.css"
|
|
5
|
+
import {
|
|
6
|
+
Accordion as AccordionType,
|
|
7
|
+
HeadingTypes,
|
|
8
|
+
} from "@pnx-mixtape/ids-shape"
|
|
9
|
+
|
|
10
|
+
const meta: Meta<AccordionType> = {
|
|
11
|
+
tags: ["autodocs", "ids-mvp"],
|
|
12
|
+
component: Component,
|
|
13
|
+
args: {
|
|
14
|
+
title: {
|
|
15
|
+
title: "Accordion group",
|
|
16
|
+
as: HeadingTypes.TWO,
|
|
17
|
+
},
|
|
18
|
+
items: [
|
|
19
|
+
{
|
|
20
|
+
title: "Music",
|
|
21
|
+
content:
|
|
22
|
+
"I'm baby air plant hashtag letterpress blue bottle. Cloud bread dreamcatcher everyday carry lumbersexual, iceland cardigan swag chicharrones lo-fi fanny pack affogato freegan XOXO shaman. Shoreditch cloud bread waistcoat tbh XOXO. Chillwave pour-over umami pug glossier health goth.",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
title: "Performances",
|
|
26
|
+
content:
|
|
27
|
+
"I'm baby air plant hashtag letterpress blue bottle. Cloud bread dreamcatcher everyday carry lumbersexual, iceland cardigan swag chicharrones lo-fi fanny pack affogato freegan XOXO shaman. Shoreditch cloud bread waistcoat tbh XOXO. Chillwave pour-over umami pug glossier health goth.",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
parameters: {
|
|
32
|
+
deepControls: { enabled: true },
|
|
33
|
+
},
|
|
34
|
+
argTypes: {
|
|
35
|
+
toggleAll: { control: "boolean" },
|
|
36
|
+
// @ts-expect-error The controls follow the shape
|
|
37
|
+
"title.title": { control: "text" },
|
|
38
|
+
"title.as": { options: Object.values(HeadingTypes), control: "select" },
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export default meta
|
|
43
|
+
type Story = StoryObj<AccordionType>
|
|
44
|
+
|
|
45
|
+
export const Accordion: Story = {}
|
|
46
|
+
|
|
47
|
+
export const ToggleAll: Story = {
|
|
48
|
+
args: {
|
|
49
|
+
toggleAll: true,
|
|
50
|
+
},
|
|
51
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable no-unused-vars */
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
import { AccordionStyles, HeadingLevels } from "../../enums"
|
|
4
|
+
import Component from "./Accordion"
|
|
5
|
+
import "./accordion.css"
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof Component> = {
|
|
8
|
+
component: Component,
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
args: {
|
|
11
|
+
title: "Open me!",
|
|
12
|
+
modifier: AccordionStyles.DIVIDED,
|
|
13
|
+
children:
|
|
14
|
+
"I'm baby air plant hashtag letterpress blue bottle. Cloud bread dreamcatcher everyday carry lumbersexual, iceland cardigan swag chicharrones lo-fi fanny pack affogato freegan XOXO shaman. Shoreditch cloud bread waistcoat tbh XOXO. Chillwave pour-over umami pug glossier health goth.",
|
|
15
|
+
},
|
|
16
|
+
argTypes: {
|
|
17
|
+
modifier: { options: Object.values(AccordionStyles) },
|
|
18
|
+
headingLevel: { options: Object.values(HeadingLevels) },
|
|
19
|
+
},
|
|
20
|
+
}
|
|
21
|
+
export default meta
|
|
22
|
+
export const Accordion: StoryObj<typeof meta> = {}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { JSX, PropsWithChildren, useEffect, useId, Fragment } from "react"
|
|
2
|
+
import classNames from "classnames"
|
|
3
|
+
import { AccordionStyles, HeadingLevels } from "../../enums"
|
|
4
|
+
import useToggle from "../../Utility/Hooks/useToggle"
|
|
5
|
+
|
|
6
|
+
type AccordionProps = PropsWithChildren & {
|
|
7
|
+
title: string
|
|
8
|
+
active?: boolean
|
|
9
|
+
id?: string
|
|
10
|
+
headingLevel?: HeadingLevels
|
|
11
|
+
modifier?: AccordionStyles
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const Accordion = ({
|
|
15
|
+
title,
|
|
16
|
+
children,
|
|
17
|
+
active = false,
|
|
18
|
+
id = null,
|
|
19
|
+
modifier = null,
|
|
20
|
+
headingLevel = null,
|
|
21
|
+
...props
|
|
22
|
+
}: AccordionProps): JSX.Element => {
|
|
23
|
+
const [on, toggle] = useToggle(active)
|
|
24
|
+
const accordionId: string = id || useId()
|
|
25
|
+
const Heading = headingLevel ? headingLevel : Fragment
|
|
26
|
+
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (typeof window === "undefined") return
|
|
29
|
+
if (window.location.hash) {
|
|
30
|
+
toggle(window.location.hash === `#${accordionId}`)
|
|
31
|
+
}
|
|
32
|
+
}, [accordionId])
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<div
|
|
36
|
+
className={classNames("accordion", {
|
|
37
|
+
[`accordion--${modifier}`]: modifier,
|
|
38
|
+
})}
|
|
39
|
+
data-open={on}
|
|
40
|
+
{...props}
|
|
41
|
+
>
|
|
42
|
+
<Heading>
|
|
43
|
+
<button
|
|
44
|
+
type="button"
|
|
45
|
+
className="accordion__toggle"
|
|
46
|
+
id={accordionId}
|
|
47
|
+
aria-expanded={on}
|
|
48
|
+
onClick={() => toggle()}
|
|
49
|
+
onKeyDown={({ key }) => {
|
|
50
|
+
if (key === "Enter") toggle()
|
|
51
|
+
}}
|
|
52
|
+
>
|
|
53
|
+
{title}
|
|
54
|
+
<span
|
|
55
|
+
className={classNames(
|
|
56
|
+
"button",
|
|
57
|
+
"button--small",
|
|
58
|
+
"icon",
|
|
59
|
+
"button--icon-only",
|
|
60
|
+
"icon--chevron-down",
|
|
61
|
+
)}
|
|
62
|
+
aria-hidden="true"
|
|
63
|
+
/>
|
|
64
|
+
</button>
|
|
65
|
+
</Heading>
|
|
66
|
+
<div
|
|
67
|
+
role="region"
|
|
68
|
+
aria-labelledby={accordionId}
|
|
69
|
+
className={classNames(
|
|
70
|
+
"accordion__content",
|
|
71
|
+
"rich-text",
|
|
72
|
+
"vertical-flow",
|
|
73
|
+
)}
|
|
74
|
+
// @ts-expect-error inert is allowed.
|
|
75
|
+
inert={!on ? "" : null}
|
|
76
|
+
>
|
|
77
|
+
{children}
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export default Accordion
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accordion
|
|
3
|
+
* @file Support opening on hash, adding an ID attribute and toggling on print.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { makeAnchor } from "../../../Utility/utilities"
|
|
7
|
+
|
|
8
|
+
export default class Accordion extends HTMLElement {
|
|
9
|
+
internals_: ElementInternals
|
|
10
|
+
controller: AbortController
|
|
11
|
+
|
|
12
|
+
constructor() {
|
|
13
|
+
super()
|
|
14
|
+
this.internals_ = this.attachInternals()
|
|
15
|
+
this.controller = new AbortController()
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
connectedCallback(): void {
|
|
19
|
+
if (!this.details || !this.trigger) return
|
|
20
|
+
|
|
21
|
+
const { signal }: AbortController = this.controller
|
|
22
|
+
document.addEventListener("beforeprint", this.handleOpen, {
|
|
23
|
+
signal,
|
|
24
|
+
})
|
|
25
|
+
document.addEventListener("afterprint", this.handleClose, {
|
|
26
|
+
signal,
|
|
27
|
+
})
|
|
28
|
+
this.handleHash()
|
|
29
|
+
document.addEventListener("hashchange", this.handleHash, { signal })
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
disconnectedCallback(): void {
|
|
33
|
+
this.controller.abort()
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
handleOpen = (): void => {
|
|
37
|
+
if (!this.details) return
|
|
38
|
+
this.details.open = true
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
handleClose = (): void => {
|
|
42
|
+
if (!this.details) return
|
|
43
|
+
this.details.open = false
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
handleHash = (): void => {
|
|
47
|
+
const { hash }: Location = window.location
|
|
48
|
+
if (hash && hash === `#${this.details?.id}`) {
|
|
49
|
+
this.handleOpen()
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
get details(): HTMLDetailsElement | null {
|
|
54
|
+
const details: HTMLDetailsElement | null = this.querySelector("details")
|
|
55
|
+
if (!details) {
|
|
56
|
+
throw new Error(`${this.localName} must contain a <details> element.`)
|
|
57
|
+
}
|
|
58
|
+
details.id = details.id || this.generatedId()
|
|
59
|
+
return details
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
get trigger(): HTMLElement | null {
|
|
63
|
+
const trigger: HTMLElement | null = this.querySelector("summary")
|
|
64
|
+
if (!trigger) {
|
|
65
|
+
throw new Error(`${this.localName} must contain a <summary> element.`)
|
|
66
|
+
}
|
|
67
|
+
return trigger
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
generatedId = (): string => {
|
|
71
|
+
const string: string | undefined = this.trigger?.textContent?.trim()
|
|
72
|
+
return !string ? "" : makeAnchor(string)
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
customElements.define("mx-accordion", Accordion)
|
|
77
|
+
|
|
78
|
+
declare global {
|
|
79
|
+
interface HTMLElementTagNameMap {
|
|
80
|
+
"mx-accordion": Accordion
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AccordionDiv
|
|
3
|
+
* @file Support for adding <details> type behavior to divs.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { DisclosureWidget } from "../../../Utility/utilities"
|
|
7
|
+
|
|
8
|
+
export default class AccordionDiv extends HTMLElement {
|
|
9
|
+
internals_: ElementInternals
|
|
10
|
+
controller: AbortController
|
|
11
|
+
widget!: DisclosureWidget
|
|
12
|
+
static observedAttributes: string[] = ["open"]
|
|
13
|
+
|
|
14
|
+
constructor() {
|
|
15
|
+
super()
|
|
16
|
+
this.internals_ = this.attachInternals()
|
|
17
|
+
this.controller = new AbortController()
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
connectedCallback(): void {
|
|
21
|
+
if (!this.trigger || !this.content) return
|
|
22
|
+
this.content?.setAttribute("inert", "")
|
|
23
|
+
this.content?.setAttribute("role", "region")
|
|
24
|
+
this.widget = new DisclosureWidget(this.trigger, this, {
|
|
25
|
+
attribute: "open",
|
|
26
|
+
setInitialAttribute: false,
|
|
27
|
+
})
|
|
28
|
+
this.widget.init()
|
|
29
|
+
const { signal }: AbortController = this.controller
|
|
30
|
+
this.handleHash()
|
|
31
|
+
document.addEventListener("hashchange", this.handleHash, { signal })
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
disconnectedCallback(): void {
|
|
35
|
+
this.content?.removeAttribute("inert")
|
|
36
|
+
this.widget.detach()
|
|
37
|
+
this.controller.abort()
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attributeChangedCallback(
|
|
41
|
+
name: string,
|
|
42
|
+
oldValue: string,
|
|
43
|
+
newValue: string,
|
|
44
|
+
): void {
|
|
45
|
+
const isClosed = newValue === null
|
|
46
|
+
this.content?.toggleAttribute("inert", isClosed)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
handleHash = (): void => {
|
|
50
|
+
const { hash } = window.location
|
|
51
|
+
if (hash && hash === `#${this.id}` && !this.hasAttribute("open")) {
|
|
52
|
+
this.widget.handleToggle()
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
get trigger(): HTMLButtonElement {
|
|
57
|
+
const trigger: HTMLButtonElement | null =
|
|
58
|
+
this.querySelector(":scope > button")
|
|
59
|
+
if (!trigger) {
|
|
60
|
+
throw new Error(`${this.localName} must contain a <button> element.`)
|
|
61
|
+
}
|
|
62
|
+
return trigger
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
get content(): HTMLDivElement {
|
|
66
|
+
const content: HTMLDivElement | null | undefined = this.trigger
|
|
67
|
+
?.nextElementSibling as HTMLDivElement
|
|
68
|
+
if (!content) {
|
|
69
|
+
throw new Error(
|
|
70
|
+
`${this.localName} must contain a <div> element after the <button>.`,
|
|
71
|
+
)
|
|
72
|
+
}
|
|
73
|
+
return content
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
customElements.define("mx-accordiondiv", AccordionDiv)
|
|
78
|
+
|
|
79
|
+
declare global {
|
|
80
|
+
interface HTMLElementTagNameMap {
|
|
81
|
+
"mx-accordiondiv": AccordionDiv
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accordion Group
|
|
3
|
+
* @file Support opening and closing all.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export default class AccordionGroup extends HTMLElement {
|
|
7
|
+
internals_: ElementInternals
|
|
8
|
+
controller: AbortController
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
super()
|
|
12
|
+
this.internals_ = this.attachInternals()
|
|
13
|
+
this.controller = new AbortController()
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
connectedCallback(): void {
|
|
17
|
+
if (!this.accordions || !this.expandTrigger || !this.collapseTrigger) return
|
|
18
|
+
this.collapseTrigger.disabled = true
|
|
19
|
+
const { signal }: AbortController = this.controller
|
|
20
|
+
this.addEventListener("click", this.handleClick, {
|
|
21
|
+
signal,
|
|
22
|
+
})
|
|
23
|
+
this.accordions.forEach(details =>
|
|
24
|
+
details.addEventListener("toggle", this.handleToggle, {
|
|
25
|
+
signal,
|
|
26
|
+
}),
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
disconnectedCallback(): void {
|
|
31
|
+
this.controller.abort()
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
handleClick = ({ target }) => {
|
|
35
|
+
if (target === this.expandTrigger) {
|
|
36
|
+
this.handleExpand()
|
|
37
|
+
}
|
|
38
|
+
if (target === this.collapseTrigger) {
|
|
39
|
+
this.handleCollapse()
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
handleExpand = () => {
|
|
44
|
+
this.accordions.forEach(detail => (detail.open = true))
|
|
45
|
+
this.expandTrigger.disabled = true
|
|
46
|
+
this.collapseTrigger.disabled = false
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
handleCollapse = () => {
|
|
50
|
+
this.accordions.forEach(detail => (detail.open = false))
|
|
51
|
+
this.expandTrigger.disabled = false
|
|
52
|
+
this.collapseTrigger.disabled = true
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
handleToggle = () => {
|
|
56
|
+
this.expandTrigger.disabled = [...this.accordions].every(
|
|
57
|
+
details => details.open === true,
|
|
58
|
+
)
|
|
59
|
+
this.collapseTrigger.disabled = [...this.accordions].every(
|
|
60
|
+
details => details.open !== true,
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
get accordions(): NodeListOf<HTMLDetailsElement> | null {
|
|
65
|
+
const accordions: NodeListOf<HTMLDetailsElement> | null =
|
|
66
|
+
this.querySelectorAll("details")
|
|
67
|
+
if (!accordions.length) {
|
|
68
|
+
throw new Error(
|
|
69
|
+
`${this.localName} must contain at least one <details> element.`,
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
return accordions
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
get expandTrigger(): HTMLButtonElement | null {
|
|
76
|
+
const trigger: HTMLButtonElement | null = this.querySelector(
|
|
77
|
+
".accordions__toggle-all button[data-expand]",
|
|
78
|
+
)
|
|
79
|
+
if (!trigger) {
|
|
80
|
+
throw new Error(
|
|
81
|
+
`${this.localName} must contain a <button data-expand> element.`,
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
return trigger
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
get collapseTrigger(): HTMLButtonElement | null {
|
|
88
|
+
const trigger: HTMLButtonElement | null = this.querySelector(
|
|
89
|
+
".accordions__toggle-all button[data-collapse]",
|
|
90
|
+
)
|
|
91
|
+
if (!trigger) {
|
|
92
|
+
throw new Error(
|
|
93
|
+
`${this.localName} must contain a <button data-collapse> element.`,
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
return trigger
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
customElements.define("mx-accordion-group", AccordionGroup)
|
|
101
|
+
|
|
102
|
+
declare global {
|
|
103
|
+
interface HTMLElementTagNameMap {
|
|
104
|
+
"mx-accordion-group": AccordionGroup
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AccordionMobile
|
|
3
|
+
* @file Support a mobile only <details> element, that opens at a breakpoint.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import Accordion from "./Accordion"
|
|
7
|
+
|
|
8
|
+
export default class AccordionMobile extends Accordion {
|
|
9
|
+
mq: string
|
|
10
|
+
toggleAttribute!: Element["toggleAttribute"]
|
|
11
|
+
|
|
12
|
+
constructor() {
|
|
13
|
+
super()
|
|
14
|
+
this.mq = this.getAttribute("mq") || "(max-width: 720px)"
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
connectedCallback(): void {
|
|
18
|
+
this.handleBreakpoint(this.breakpoint)
|
|
19
|
+
const { signal }: AbortController = this.controller
|
|
20
|
+
this.breakpoint.addEventListener("change", this.handleBreakpoint, {
|
|
21
|
+
signal,
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
disconnectedCallback(): void {
|
|
26
|
+
this.controller.abort()
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
handleBreakpoint = ({
|
|
30
|
+
matches,
|
|
31
|
+
}: MediaQueryList | MediaQueryListEvent): void => {
|
|
32
|
+
if (!this.details) return
|
|
33
|
+
this.details.toggleAttribute("open", !matches)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
get breakpoint(): MediaQueryList {
|
|
37
|
+
return window.matchMedia(this.mq)
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
customElements.define("mx-accordionmobile", AccordionMobile)
|
|
42
|
+
|
|
43
|
+
declare global {
|
|
44
|
+
interface HTMLElementTagNameMap {
|
|
45
|
+
"mx-accordionmobile": AccordionMobile
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Accordion
|
|
2
|
+
|
|
3
|
+
### How to use
|
|
4
|
+
|
|
5
|
+
**CSS**
|
|
6
|
+
|
|
7
|
+
`@import '@pnx-mixtape/mxds/accordion.css';`
|
|
8
|
+
|
|
9
|
+
**Twig**
|
|
10
|
+
|
|
11
|
+
You can setup a twig namespace in your project if you wish to use the twig files directly.
|
|
12
|
+
|
|
13
|
+
- Eg: `{% extends '@mixtape/accordion/twig/accordion.twig' %}`
|
|
14
|
+
|
|
15
|
+
Alternatively copy/paste the file for more control.
|
|
16
|
+
|
|
17
|
+
**JSX Components**
|
|
18
|
+
|
|
19
|
+
JSX components are available for use with React.
|
|
20
|
+
|
|
21
|
+
- JSX import: `import { Accordion } from '@pnx-mixtape/mxds/react';`
|
|
22
|
+
|
|
23
|
+
**JS Custom Element**
|
|
24
|
+
|
|
25
|
+
Custom Elements are self defined, simply import the desired feature.
|
|
26
|
+
These do not use the Shadow DOM and are not typical Web Components.
|
|
27
|
+
External CSS applies.
|
|
28
|
+
No Polyfills or frameworks are required.
|
|
29
|
+
|
|
30
|
+
- AccordionBase import: `import '@pnx-mixtape/mxds/Components/Accordion/Elements/Accordion';` and be sure to include `<mx-accordion>` around the `<details />` tag.
|
|
31
|
+
- AccordionMobile import: `import '@pnx-mixtape/mxds/Components/Accordion/Elements/AccordionMobile';` and be sure to include `<mx-accordionmobile>` around the `<details />` tag.
|
|
32
|
+
- AccordionDiv import: `import '@nx-mixtape/Components/Accordion/Elements/AccordionDiv';` and be sure to include `<mx-accordiondiv class="accordion">` instead of the `<details />` tag.
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<mx-accordion>
|
|
36
|
+
<details class="accordion">
|
|
37
|
+
<summary class="accordion__toggle">Title</summary>
|
|
38
|
+
<div class="accordion__content">
|
|
39
|
+
<p>Body content</p>
|
|
40
|
+
</div>
|
|
41
|
+
</details>
|
|
42
|
+
</mx-accordion>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
See twig files for all HTML examples.
|