@pnx-mixtape/mxds 0.0.21 → 0.0.23
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/dist/build/accordion.entry.js +32 -43
- package/dist/build/accordion.entry.js.map +1 -1
- package/dist/build/base.css +19 -39
- package/dist/build/button.css +7 -8
- package/dist/build/chunks/{Accordion-O-huO4At.js → Accordion-D1HQ0FDq.js} +23 -21
- package/dist/build/chunks/{Accordion-O-huO4At.js.map → Accordion-D1HQ0FDq.js.map} +1 -1
- package/dist/build/chunks/disclosure-widget-CdjCdx7t.js +129 -0
- package/dist/build/chunks/disclosure-widget-CdjCdx7t.js.map +1 -0
- package/dist/build/chunks/drop-menu.entry-fzV-_VFl.js +70 -0
- package/dist/build/chunks/drop-menu.entry-fzV-_VFl.js.map +1 -0
- package/dist/build/chunks/{polyfills-C-B7iqDG.js → polyfills-DnrsypYs.js} +35 -26
- package/dist/build/chunks/polyfills-DnrsypYs.js.map +1 -0
- package/dist/build/chunks/popover.entry-BQvyR0d5.js +38 -0
- package/dist/build/chunks/popover.entry-BQvyR0d5.js.map +1 -0
- package/dist/build/chunks/{utilities-DXELy_An.js → utilities-Ci7wwNeg.js} +9 -106
- package/dist/build/chunks/utilities-Ci7wwNeg.js.map +1 -0
- package/dist/build/constants.css +10 -31
- package/dist/build/dialog.entry.js +23 -31
- package/dist/build/dialog.entry.js.map +1 -1
- package/dist/build/drop-menu.entry.js +1 -1
- package/dist/build/drupal.css +5 -9
- package/dist/build/filters.entry.js +54 -50
- package/dist/build/filters.entry.js.map +1 -1
- package/dist/build/form.css +12 -26
- package/dist/build/global-alert.entry.js +26 -19
- package/dist/build/global-alert.entry.js.map +1 -1
- package/dist/build/grid.css +3 -9
- package/dist/build/header.css +5 -3
- package/dist/build/header.entry.js +93 -88
- package/dist/build/header.entry.js.map +1 -1
- package/dist/build/icon.css +3 -3
- package/dist/build/in-page-navigation.entry.js +16 -12
- package/dist/build/in-page-navigation.entry.js.map +1 -1
- package/dist/build/navigation.css +21 -56
- package/dist/build/navigation.entry.js +148 -50
- package/dist/build/navigation.entry.js.map +1 -1
- package/dist/build/page.css +1 -1
- package/dist/build/popover.css +119 -0
- package/dist/build/popover.entry.js +2 -0
- package/dist/build/popover.entry.js.map +1 -0
- package/dist/build/section.css +1 -1
- package/dist/build/sticky.entry.js +11 -12
- package/dist/build/sticky.entry.js.map +1 -1
- package/dist/build/tabs.entry.js +108 -91
- package/dist/build/tabs.entry.js.map +1 -1
- package/dist/build/utility-list.css +43 -0
- package/dist/build/utility-list.entry.js +80 -0
- package/dist/build/utility-list.entry.js.map +1 -0
- package/package.json +9 -10
- package/src/Atom/{Base.mdx → Atom.mdx} +1 -1
- package/src/Atom/Background/Backgrounds.stories.ts +21 -4
- package/src/Atom/Background/__snapshots__/Backgrounds.stories.ts.snap +1 -1
- package/src/Atom/Background/_background.css +1 -2
- package/src/Atom/Blockquote/_blockquote.css +1 -2
- package/src/Atom/Button/Button.stories.ts +128 -19
- package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +75 -11
- package/src/Atom/Button/__snapshots__/Button.stories.tsx.snap +1 -1
- package/src/Atom/Button/_buttons.css +5 -5
- package/src/Atom/DefinitionList/DefinitionList.stories.ts +20 -3
- package/src/Atom/DefinitionList/DefinitionList.stories.tsx +3 -9
- package/src/Atom/DefinitionList/DefinitionList.tsx +3 -4
- package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.ts.snap +1 -1
- package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.tsx.snap +1 -1
- package/src/Atom/Heading/Heading.stories.ts +49 -7
- package/src/Atom/Heading/Heading.tsx +1 -6
- package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +9 -1
- package/src/Atom/Heading/__snapshots__/Heading.stories.tsx.snap +1 -1
- package/src/Atom/Heading/_headings.css +1 -2
- package/src/Atom/Icon/Icon.mdx +5 -1
- package/src/Atom/Icon/Icon.stories.ts +76 -6
- package/src/Atom/Icon/Icon.tsx +1 -8
- package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +18 -4
- package/src/Atom/Icon/__snapshots__/Icon.stories.tsx.snap +1 -1
- package/src/Atom/Icon/_icon.css +1 -1
- package/src/Atom/Image/Image.stories.ts +4 -3
- package/src/Atom/Image/__snapshots__/Image.stories.ts.snap +1 -1
- package/src/Atom/Link/Link.stories.ts +74 -7
- package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +4 -4
- package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +1 -1
- package/src/Atom/Media/Media.stories.ts +34 -5
- package/src/Atom/Media/Media.tsx +1 -6
- package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +2 -2
- package/src/Atom/Media/__snapshots__/Media.stories.tsx.snap +1 -1
- package/src/Atom/Media/_media.css +2 -10
- package/src/Atom/Spacing/Spacing.stories.ts +45 -31
- package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +5 -4
- package/src/Atom/Spacing/spacing.twig +5 -2
- package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +1 -1
- package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +1 -1
- package/src/Atom/Table/_table.css +1 -2
- package/src/Atom/Text/Text.stories.ts +62 -0
- package/src/Atom/Text/__snapshots__/{TextSizes.stories.ts.snap → Text.stories.ts.snap} +14 -27
- package/src/Atom/Text/__snapshots__/Text.stories.tsx.snap +1 -1
- package/src/Atom/Text/_text-sizes.css +2 -4
- package/src/Atom/Text/text-style.twig +11 -1
- package/src/Atom/Text/text-styles-example.twig +2 -16
- package/src/Atom/Video/Video.stories.ts +6 -4
- package/src/Atom/Video/Video.tsx +1 -5
- package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +1 -1
- package/src/Atom/_generic.css +4 -4
- package/src/Atom/_hr.css +1 -2
- package/src/Component/Accordion/Accordion.stories.ts +26 -8
- package/src/Component/Accordion/Accordion.stories.tsx +8 -10
- package/src/Component/Accordion/Accordion.tsx +2 -13
- package/src/Component/Accordion/AccordionItem.stories.ts +90 -0
- package/src/Component/Accordion/Components/AccordionContent.tsx +1 -5
- package/src/Component/Accordion/Components/AccordionTitle.tsx +1 -4
- package/src/Component/Accordion/Elements/Accordion.ts +1 -1
- package/src/Component/Accordion/Elements/AccordionDiv.ts +4 -11
- package/src/Component/Accordion/Elements/AccordionGroup.ts +10 -24
- package/src/Component/Accordion/Elements/AccordionMobile.ts +4 -4
- package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +17 -6
- package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +1 -1
- package/src/Component/Accordion/__snapshots__/AccordionItem.stories.ts.snap +90 -0
- package/src/Component/Accordion/accordion.css +7 -5
- package/src/Component/Accordion/twig/accordion-div.twig +13 -11
- package/src/Component/Accordion/twig/accordion-mobile.twig +13 -11
- package/src/Component/Breadcrumb/Breadcrumb.stories.ts +14 -0
- package/src/Component/Breadcrumb/Breadcrumb.tsx +2 -12
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +1 -1
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +1 -1
- package/src/Component/Breadcrumb/breadcrumb.css +1 -4
- package/src/Component/Callout/Callout.stories.ts +20 -0
- package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +1 -1
- package/src/Component/Callout/callout.css +1 -2
- package/src/Component/Card/Card.stories.ts +129 -14
- package/src/Component/Card/Card.stories.tsx +2 -2
- package/src/Component/Card/Components/CardContent.tsx +1 -5
- package/src/Component/Card/__snapshots__/Card.stories.ts.snap +24 -24
- package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +1 -1
- package/src/Component/Card/card.css +2 -6
- package/src/Component/Card/card.twig +1 -1
- package/src/Component/Carousel/Carousel.stories.ts +61 -8
- package/src/Component/Carousel/Elements/Carousel.ts +10 -19
- package/src/Component/Carousel/__snapshots__/Carousel.stories.ts.snap +321 -35
- package/src/Component/Carousel/carousel.css +1 -2
- package/src/Component/ContentBlock/Components/ContentBlockContent.tsx +1 -5
- package/src/Component/ContentBlock/Components/ContentBlockMedia.tsx +1 -4
- package/src/Component/ContentBlock/ContentBlock.stories.ts +63 -13
- package/src/Component/ContentBlock/ContentBlock.stories.tsx +2 -2
- package/src/Component/ContentBlock/ContentBlock.tsx +1 -5
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +11 -11
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.tsx.snap +1 -1
- package/src/Component/Dialog/Dialog.stories.ts +78 -21
- package/src/Component/Dialog/Dialog.stories.tsx +2 -3
- package/src/Component/Dialog/Elements/Dialog.ts +7 -16
- package/src/Component/Dialog/__snapshots__/Dialog.stories.ts.snap +8 -11
- package/src/Component/Dialog/__snapshots__/Dialog.stories.tsx.snap +1 -1
- package/src/Component/Dialog/dialog.css +1 -2
- package/src/Component/Dialog/dialog.twig +1 -1
- package/src/Component/DropMenu/Components/DropMenuContext.tsx +4 -12
- package/src/Component/DropMenu/DropMenu.stories.ts +60 -1
- package/src/Component/DropMenu/DropMenu.tsx +2 -7
- package/src/Component/DropMenu/Elements/DropMenu.ts +21 -91
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +53 -11
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +1 -1
- package/src/Component/DropMenu/drop-menu.css +13 -41
- package/src/Component/DropMenu/drop-menu.twig +8 -6
- package/src/Component/Filters/Elements/Filters.ts +7 -11
- package/src/Component/Filters/FilterItem.stories.ts +180 -0
- package/src/Component/Filters/Filters.stories.ts +83 -8
- package/src/Component/Filters/__snapshots__/FilterItem.stories.ts.snap +135 -0
- package/src/Component/Filters/__snapshots__/Filters.stories.ts.snap +43 -41
- package/src/Component/Filters/filter-item.twig +1 -1
- package/src/Component/Filters/filters.css +33 -17
- package/src/Component/GlobalAlert/Elements/ClosableAlert.ts +8 -7
- package/src/Component/GlobalAlert/GlobalAlert.stories.ts +60 -12
- package/src/Component/GlobalAlert/GlobalAlert.stories.tsx +1 -2
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +8 -6
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +3 -3
- package/src/Component/HeroBanner/HeroBanner.stories.ts +84 -7
- package/src/Component/HeroBanner/HeroBanner.stories.tsx +4 -4
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +91 -99
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.tsx.snap +1 -1
- package/src/Component/HeroSearch/HeroSearch.stories.ts +23 -4
- package/src/Component/HeroSearch/HeroSearch.stories.tsx +4 -4
- package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.ts.snap +10 -10
- package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.tsx.snap +1 -1
- package/src/Component/InPageAlert/InPageAlert.stories.ts +76 -8
- package/src/Component/InPageAlert/InPageAlert.stories.tsx +1 -2
- package/src/Component/InPageAlert/InPageAlert.tsx +1 -4
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +80 -2
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.tsx.snap +1 -1
- package/src/Component/InPageNavigation/Elements/InPageNavigation.ts +7 -9
- package/src/Component/InPageNavigation/Hooks/useInPageNavigation.ts +3 -5
- package/src/Component/InPageNavigation/InPageNavigation.stories.ts +44 -9
- package/src/Component/InPageNavigation/InPageNavigation.stories.tsx +32 -40
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +152 -5
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +1 -1
- package/src/Component/LinkList/LinkList.stories.ts +23 -0
- package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +8 -8
- package/src/Component/LinkList/__snapshots__/LinkList.stories.tsx.snap +1 -1
- package/src/Component/LinkList/link-list.css +1 -2
- package/src/Component/ListItem/Components/ListItemContent.tsx +1 -5
- package/src/Component/ListItem/Components/ListItemMedia.tsx +1 -4
- package/src/Component/ListItem/ListItem.stories.ts +91 -11
- package/src/Component/ListItem/ListItem.stories.tsx +6 -7
- package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +1 -1
- package/src/Component/ListItem/__snapshots__/ListItem.stories.tsx.snap +1 -1
- package/src/Component/ListItem/list-item.css +1 -2
- package/src/Component/Navigation/Components/DropdownLevel.tsx +5 -13
- package/src/Component/Navigation/Elements/Navigation.ts +6 -13
- package/src/Component/Navigation/Navigation.stories.ts +48 -0
- package/src/Component/Navigation/__snapshots__/Dropdown.stories.tsx.snap +1 -1
- package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +1 -1
- package/src/Component/Navigation/__snapshots__/Navigation.stories.tsx.snap +1 -1
- package/src/Component/Navigation/_navigation-collapsible.css +2 -4
- package/src/Component/Navigation/_navigation-dropdown.css +10 -32
- package/src/Component/Navigation/_navigation-mega.css +1 -4
- package/src/Component/Navigation/_navigation.css +1 -4
- package/src/Component/Pagination/Components/PaginationContext.tsx +5 -19
- package/src/Component/Pagination/Components/PaginationItem.tsx +1 -5
- package/src/Component/Pagination/Pagination.stories.ts +28 -0
- package/src/Component/Pagination/Pagination.tsx +3 -11
- package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +3 -3
- package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +1 -1
- package/src/Component/Pagination/pagination.css +1 -4
- package/src/Component/Popover/Elements/Popover.ts +55 -0
- package/src/Component/Popover/Popover.stories.ts +259 -0
- package/src/Component/Popover/__snapshots__/Popover.stories.ts.snap +508 -0
- package/src/Component/{DropMenu → Popover}/polyfills.js +6 -4
- package/src/Component/Popover/popover.css +113 -0
- package/src/Component/Popover/popover.entry.js +1 -0
- package/src/Component/Popover/popover.twig +27 -0
- package/src/Component/ResultsBar/Components/ResultsBarInfo.tsx +2 -7
- package/src/Component/ResultsBar/Components/ResultsBarSort.tsx +1 -6
- package/src/Component/ResultsBar/ResultsBar.stories.ts +34 -4
- package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.ts.snap +3 -3
- package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.tsx.snap +1 -1
- package/src/Component/SideNavigation/SideNavigation.stories.ts +40 -0
- package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +1 -1
- package/src/Component/SideNavigation/side-navigation.css +3 -6
- package/src/Component/SocialLinks/SocialLinks.stories.ts +20 -0
- package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +5 -5
- package/src/Component/SocialShare/SocialShare.stories.ts +37 -0
- package/src/Component/SocialShare/SocialShare.tsx +2 -4
- package/src/Component/SocialShare/__snapshots__/SocialShare.stories.ts.snap +40 -0
- package/src/Component/SocialShare/__snapshots__/SocialShare.stories.tsx.snap +1 -1
- package/src/Component/SocialShare/social-share.twig +34 -0
- package/src/Component/Steps/StepItem.stories.ts +48 -0
- package/src/Component/Steps/Steps.stories.ts +82 -13
- package/src/Component/Steps/__snapshots__/StepItem.stories.ts.snap +31 -0
- package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +109 -28
- package/src/Component/Steps/step-item.twig +1 -1
- package/src/Component/Steps/steps.css +4 -11
- package/src/Component/Sticky/Elements/Sticky.ts +3 -8
- package/src/Component/Sticky/Sticky.stories.ts +35 -3
- package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +1 -1
- package/src/Component/Sticky/__snapshots__/Sticky.stories.tsx.snap +1 -1
- package/src/Component/Sticky/sticky.twig +1 -1
- package/src/Component/Tabs/Components/Tab.tsx +2 -8
- package/src/Component/Tabs/Components/TabPanel.tsx +1 -5
- package/src/Component/Tabs/Elements/Tabs.ts +21 -31
- package/src/Component/Tabs/TabItem.stories.ts +52 -0
- package/src/Component/Tabs/Tabs.stories.ts +51 -8
- package/src/Component/Tabs/Tabs.tsx +6 -22
- package/src/Component/Tabs/__snapshots__/TabItem.stories.ts.snap +12 -0
- package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +127 -11
- package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +1 -1
- package/src/Component/Tabs/tab-item.twig +1 -2
- package/src/Component/Tabs/tabs.css +56 -59
- package/src/Component/Tag/Tag.stories.ts +30 -0
- package/src/Component/Tag/Tag.tsx +1 -5
- package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +1 -1
- package/src/Component/Tag/__snapshots__/Tag.stories.tsx.snap +1 -1
- package/src/Component/Tag/tag.css +1 -4
- package/src/Component/UtilityList/Elements/UtilityList.ts +110 -0
- package/src/Component/UtilityList/UtilityList.stories.ts +72 -0
- package/src/Component/UtilityList/__snapshots__/UtilityList.stories.ts.snap +274 -0
- package/src/Component/UtilityList/utility-list.css +40 -0
- package/src/Component/UtilityList/utility-list.entry.js +1 -0
- package/src/Component/UtilityList/utility-list.twig +66 -0
- package/src/Form/Checkbox/FormCheckbox.stories.tsx +1 -3
- package/src/Form/Checkbox/FormCheckbox.tsx +4 -25
- package/src/Form/Checkbox/__snapshots__/Checkbox.stories.ts.snap +3 -3
- package/src/Form/Description/Description.stories.ts +1 -2
- package/src/Form/Description/FormStatus.stories.ts +1 -4
- package/src/Form/Description/__snapshots__/Description.stories.ts.snap +1 -1
- package/src/Form/Description/__snapshots__/FormDescription.stories.tsx.snap +1 -1
- package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +3 -3
- package/src/Form/Form/Form.tsx +1 -3
- package/src/Form/Form/__snapshots__/Form.stories.tsx.snap +1 -1
- package/src/Form/Form/__snapshots__/FormTitle.stories.tsx.snap +1 -1
- package/src/Form/FormItem/FormItem.stories.ts +3 -9
- package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +18 -18
- package/src/Form/FormItem/__snapshots__/FormItem.stories.tsx.snap +1 -1
- package/src/Form/Label/FormLabel.tsx +1 -5
- package/src/Form/Label/__snapshots__/FormLabel.stories.tsx.snap +1 -1
- package/src/Form/Label/__snapshots__/Label.stories.ts.snap +3 -3
- package/src/Form/Radio/FormRadio.stories.tsx +1 -3
- package/src/Form/Radio/FormRadio.tsx +4 -25
- package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +9 -9
- package/src/Form/Search/__snapshots__/Search.stories.ts.snap +1 -1
- package/src/Form/Select/FormSelect.tsx +3 -9
- package/src/Form/Select/__snapshots__/FormSelect.stories.tsx.snap +1 -1
- package/src/Form/Select/__snapshots__/Select.stories.ts.snap +2 -2
- package/src/Form/TextInput/FormText.tsx +3 -9
- package/src/Form/TextInput/TextInput.stories.ts +1 -4
- package/src/Form/TextInput/__snapshots__/FormText.stories.tsx.snap +1 -1
- package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +1 -1
- package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +3 -3
- package/src/Form/Textarea/FormTextarea.tsx +3 -9
- package/src/Form/Textarea/__snapshots__/FormTextarea.stories.tsx.snap +1 -1
- package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +2 -2
- package/src/Form/form.css +6 -14
- package/src/Introduction.mdx +1 -2
- package/src/Layout/Footer/Footer.stories.ts +1 -5
- package/src/Layout/Footer/Footer.stories.tsx +2 -3
- package/src/Layout/Footer/Footer.tsx +3 -12
- package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +4 -4
- package/src/Layout/Footer/__snapshots__/Footer.stories.tsx.snap +1 -1
- package/src/Layout/Grid/Grid.stories.ts +40 -8
- package/src/Layout/Grid/Grid.tsx +1 -2
- package/src/Layout/Grid/GridItem.stories.ts +63 -0
- package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +29 -4
- package/src/Layout/Grid/__snapshots__/Grid.stories.tsx.snap +1 -1
- package/src/Layout/Grid/__snapshots__/GridItem.stories.ts.snap +19 -0
- package/src/Layout/Grid/grid-item.twig +3 -9
- package/src/Layout/Grid/grid.css +1 -4
- package/src/Layout/Header/Elements/GlobalToggle.ts +9 -29
- package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +25 -45
- package/src/Layout/Header/__snapshots__/Header.stories.tsx.snap +3 -3
- package/src/Layout/Header/_toggles.css +2 -2
- package/src/Layout/Header/header.twig +1 -1
- package/src/Layout/Masthead/Masthead.stories.ts +1 -4
- package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +3 -3
- package/src/Layout/Page/Page.stories.tsx +2 -2
- package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +3 -3
- package/src/Layout/Page/page.css +2 -10
- package/src/Layout/Section/Background.stories.ts +14 -39
- package/src/Layout/Section/Breakouts.stories.ts +3 -0
- package/src/Layout/Section/Flow.stories.ts +3 -0
- package/src/Layout/Section/Section.stories.ts +93 -11
- package/src/Layout/Section/Section.tsx +3 -13
- package/src/Layout/Section/SectionGrid.tsx +2 -9
- package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +4 -4
- package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +1 -1
- package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +1 -1
- package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +93 -3
- package/src/Layout/Section/__snapshots__/Section.stories.tsx.snap +1 -1
- package/src/Layout/Section/__snapshots__/SectionGrid.stories.tsx.snap +1 -1
- package/src/Layout/Section/section.css +2 -5
- package/src/Layout/Section/section.twig +1 -3
- package/src/Layout/Sidebar/Sidebar.stories.ts +46 -4
- package/src/Layout/Sidebar/Sidebar.tsx +1 -3
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +4 -4
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.tsx.snap +1 -1
- package/src/Utility/Context/ImageComponent.tsx +4 -8
- package/src/Utility/Context/LinkComponent.tsx +1 -5
- package/src/Utility/Drupal/drupal.css +2 -4
- package/src/Utility/Elements/breakpoint-loader.ts +4 -10
- package/src/Utility/Elements/cookie-compliance.ts +2 -8
- package/src/Utility/Elements/disclosure-widget.ts +11 -18
- package/src/Utility/Elements/io-loader.ts +4 -6
- package/src/Utility/Elements/keyboard.ts +4 -14
- package/src/Utility/Hooks/useLocalStorage.ts +5 -18
- package/src/Utility/Hooks/useMediaQuery.ts +1 -4
- package/src/Utility/Hooks/useToggle.ts +1 -3
- package/src/Utility/global.d.ts +1 -5
- package/src/Utility/utilities.ts +20 -45
- package/src/constants.css +7 -28
- package/src/enums.ts +3 -1
- package/src/react.ts +5 -21
- package/src/tokens.js +2 -2
- package/dist/build/chunks/disclosure-widget-DVpnRsTI.js +0 -126
- package/dist/build/chunks/disclosure-widget-DVpnRsTI.js.map +0 -1
- package/dist/build/chunks/drop-menu.entry-B4TtnC50.js +0 -132
- package/dist/build/chunks/drop-menu.entry-B4TtnC50.js.map +0 -1
- package/dist/build/chunks/keyboard-rvZ4dfGF.js +0 -104
- package/dist/build/chunks/keyboard-rvZ4dfGF.js.map +0 -1
- package/dist/build/chunks/polyfills-C-B7iqDG.js.map +0 -1
- package/dist/build/chunks/utilities-DXELy_An.js.map +0 -1
- package/src/Atom/Text/TextSizes.stories.ts +0 -25
- package/src/Atom/Text/text-alignment.twig +0 -5
- package/src/Component/Accordion/twig/accordion-example.twig +0 -36
- package/src/Component/Tile/README.md +0 -3
- package/src/Component/Tile/Tile.stories.ts +0 -49
- package/src/Component/Tile/Tile.stories.tsx +0 -35
- package/src/Component/Tile/__snapshots__/Tile.stories.ts.snap +0 -57
- package/src/Component/Tile/__snapshots__/Tile.stories.tsx.snap +0 -23
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`Component/Pagination Pagination smoke-test 1`] = `
|
|
4
4
|
<div class="mx-page default">
|
|
@@ -8,7 +8,7 @@ exports[`Component/Pagination Pagination smoke-test 1`] = `
|
|
|
8
8
|
<ul class="mx-pagination__items">
|
|
9
9
|
<li class="mx-pagination__previous">
|
|
10
10
|
<a href="#">
|
|
11
|
-
<span class="mx-icon mx-icon--arrow-left
|
|
11
|
+
<span class="mx-icon mx-icon--arrow-left">
|
|
12
12
|
</span>
|
|
13
13
|
<span>
|
|
14
14
|
Previous
|
|
@@ -53,7 +53,7 @@ exports[`Component/Pagination Pagination smoke-test 1`] = `
|
|
|
53
53
|
<span>
|
|
54
54
|
Next
|
|
55
55
|
</span>
|
|
56
|
-
<span class="mx-icon mx-icon--arrow-right
|
|
56
|
+
<span class="mx-icon mx-icon--arrow-right">
|
|
57
57
|
</span>
|
|
58
58
|
</a>
|
|
59
59
|
</li>
|
|
@@ -24,10 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
& :is(a, button, [aria-current="page"], [aria-current="step"]) {
|
|
26
26
|
text-decoration-line: none;
|
|
27
|
-
color: var(
|
|
28
|
-
--pagination-foreground,
|
|
29
|
-
var(--foreground, var(--colour-foreground))
|
|
30
|
-
);
|
|
27
|
+
color: var(--pagination-foreground, var(--foreground, var(--colour-foreground)));
|
|
31
28
|
display: flex;
|
|
32
29
|
block-size: var(--spacing-l);
|
|
33
30
|
line-height: var(--spacing-l);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Popover
|
|
3
|
+
* @file Create a Popover using the Popover and Anchor APIs.
|
|
4
|
+
* Once browser support improves this file won't be needed.
|
|
5
|
+
* Currently mostly adds polyfills.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export default class Popover extends HTMLElement {
|
|
9
|
+
internals_: ElementInternals
|
|
10
|
+
|
|
11
|
+
constructor() {
|
|
12
|
+
super()
|
|
13
|
+
this.internals_ = this.attachInternals()
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
async connectedCallback() {
|
|
17
|
+
if (!this.container || !this.trigger) return
|
|
18
|
+
|
|
19
|
+
// Polyfill anchor (everywhere so far).
|
|
20
|
+
if (!("anchorName" in document.documentElement.style)) {
|
|
21
|
+
const { default: Polyfills } = await import("../polyfills.js")
|
|
22
|
+
new Polyfills(this.container)
|
|
23
|
+
}
|
|
24
|
+
// Polyfill popover (FF only)
|
|
25
|
+
if (!Object.hasOwn(HTMLElement, "popover")) {
|
|
26
|
+
await import("@oddbird/popover-polyfill")
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
get container(): HTMLDivElement | null {
|
|
31
|
+
const menu: HTMLDivElement = this.querySelector("[popover]")
|
|
32
|
+
if (!menu) {
|
|
33
|
+
throw new Error(`${this.localName} must contain a <div popover> element.`)
|
|
34
|
+
}
|
|
35
|
+
return menu
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
get trigger(): HTMLButtonElement | null {
|
|
39
|
+
const trigger: HTMLButtonElement = this.querySelector(`[popovertarget=${this.container?.id}]`)
|
|
40
|
+
if (!trigger) {
|
|
41
|
+
throw new Error(
|
|
42
|
+
`${this.localName} must contain a <button popovertarget="${this.container.id}">`,
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
return trigger
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (!customElements.get("mx-popover")) customElements.define("mx-popover", Popover)
|
|
50
|
+
|
|
51
|
+
declare global {
|
|
52
|
+
interface HTMLElementTagNameMap {
|
|
53
|
+
"mx-popover": Popover
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/html-vite"
|
|
2
|
+
import DrupalAttribute from "drupal-attribute"
|
|
3
|
+
import Component from "./popover.twig"
|
|
4
|
+
import {
|
|
5
|
+
ButtonTypes,
|
|
6
|
+
HeadingTypes,
|
|
7
|
+
Popover as PopoverType,
|
|
8
|
+
PopoverPlacementModifier,
|
|
9
|
+
} from "@pnx-mixtape/ids-shape"
|
|
10
|
+
|
|
11
|
+
import "./popover.css"
|
|
12
|
+
import "./Elements/Popover"
|
|
13
|
+
|
|
14
|
+
// Deps.
|
|
15
|
+
import Button from "../../Atom/Button/button.twig"
|
|
16
|
+
import Heading from "../../Atom/Heading/heading.twig"
|
|
17
|
+
import Link from "../../Atom/Link/link.twig"
|
|
18
|
+
|
|
19
|
+
// Button attributes needed for trigger.
|
|
20
|
+
const triggerAttr = (id: string): DrupalAttribute => {
|
|
21
|
+
const attr = new DrupalAttribute()?.setAttribute("id", `${id}-target`)
|
|
22
|
+
attr?.setAttribute("popovertarget", id)
|
|
23
|
+
attr?.setAttribute("style", `anchor-name: --${id}`)
|
|
24
|
+
return attr
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* A simple floating Popover element, using the Popover and Anchor APIs (and polyfills).
|
|
29
|
+
* It requires the `Popover` custom element javascript.
|
|
30
|
+
*/
|
|
31
|
+
const meta: Meta<PopoverType> = {
|
|
32
|
+
tags: ["autodocs", "ids-mvp"],
|
|
33
|
+
component: Component,
|
|
34
|
+
args: {
|
|
35
|
+
id: "popover",
|
|
36
|
+
trigger: Button({
|
|
37
|
+
title: "Popover trigger",
|
|
38
|
+
as: ButtonTypes.BUTTON,
|
|
39
|
+
attributes: triggerAttr("popover"),
|
|
40
|
+
}),
|
|
41
|
+
placement: PopoverPlacementModifier.BOTTOM,
|
|
42
|
+
content:
|
|
43
|
+
"<p>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.</p>",
|
|
44
|
+
title: Heading({
|
|
45
|
+
title: "Popover heading",
|
|
46
|
+
as: HeadingTypes.TWO,
|
|
47
|
+
}),
|
|
48
|
+
link: Link({
|
|
49
|
+
title: "Learn more",
|
|
50
|
+
href: "#",
|
|
51
|
+
}),
|
|
52
|
+
},
|
|
53
|
+
argTypes: {
|
|
54
|
+
placement: {
|
|
55
|
+
description: "Places the Popover relative to the trigger element.",
|
|
56
|
+
control: "select",
|
|
57
|
+
options: Object.values(PopoverPlacementModifier),
|
|
58
|
+
table: {
|
|
59
|
+
defaultValue: { summary: `${PopoverPlacementModifier.BOTTOM}` },
|
|
60
|
+
type: { summary: "enum" },
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
trigger: {
|
|
64
|
+
description: `A [Button](/?path=/docs/atom-button--docs) component, for the trigger. The button **must** have the following attributes: **${triggerAttr("[id of popover]")}**`,
|
|
65
|
+
control: "text",
|
|
66
|
+
type: {
|
|
67
|
+
name: "string",
|
|
68
|
+
required: true,
|
|
69
|
+
},
|
|
70
|
+
table: {
|
|
71
|
+
type: { summary: "Button" },
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
id: {
|
|
75
|
+
description: "The Popover id, must match the ID used in the trigger attributes.",
|
|
76
|
+
type: "string",
|
|
77
|
+
table: {
|
|
78
|
+
defaultValue: { summary: "popover" },
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
title: {
|
|
82
|
+
description: "Optional content [Heading](/?path=/docs/atom-heading--docs).",
|
|
83
|
+
control: "text",
|
|
84
|
+
table: {
|
|
85
|
+
type: { summary: "Heading" },
|
|
86
|
+
subcategory: "Popover content",
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
content: {
|
|
90
|
+
description: "Content.",
|
|
91
|
+
control: "text",
|
|
92
|
+
type: {
|
|
93
|
+
name: "string",
|
|
94
|
+
required: true,
|
|
95
|
+
},
|
|
96
|
+
table: {
|
|
97
|
+
type: { summary: "WysiwygText" },
|
|
98
|
+
subcategory: "Popover content",
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
link: {
|
|
102
|
+
description: "Optional content [Link](/?path=/docs/atom-link--docs).",
|
|
103
|
+
control: "text",
|
|
104
|
+
table: {
|
|
105
|
+
type: { summary: "Link" },
|
|
106
|
+
subcategory: "Popover content",
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export default meta
|
|
113
|
+
type Story = StoryObj<PopoverType>
|
|
114
|
+
|
|
115
|
+
export const Popover: Story = {}
|
|
116
|
+
|
|
117
|
+
export const Top: Story = {
|
|
118
|
+
args: {
|
|
119
|
+
placement: PopoverPlacementModifier.TOP,
|
|
120
|
+
id: "popover-top",
|
|
121
|
+
trigger: Button({
|
|
122
|
+
title: "Popover trigger",
|
|
123
|
+
as: ButtonTypes.BUTTON,
|
|
124
|
+
attributes: triggerAttr("popover-top"),
|
|
125
|
+
}),
|
|
126
|
+
},
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export const TopStart: Story = {
|
|
130
|
+
args: {
|
|
131
|
+
placement: PopoverPlacementModifier.TOP_START,
|
|
132
|
+
id: "popover-top-start",
|
|
133
|
+
trigger: Button({
|
|
134
|
+
title: "Popover trigger",
|
|
135
|
+
as: ButtonTypes.BUTTON,
|
|
136
|
+
attributes: triggerAttr("popover-top-start"),
|
|
137
|
+
}),
|
|
138
|
+
},
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export const TopEnd: Story = {
|
|
142
|
+
args: {
|
|
143
|
+
placement: PopoverPlacementModifier.TOP_END,
|
|
144
|
+
id: "popover-top-end",
|
|
145
|
+
trigger: Button({
|
|
146
|
+
title: "Popover trigger",
|
|
147
|
+
as: ButtonTypes.BUTTON,
|
|
148
|
+
attributes: triggerAttr("popover-top-end"),
|
|
149
|
+
}),
|
|
150
|
+
},
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export const Right: Story = {
|
|
154
|
+
args: {
|
|
155
|
+
placement: PopoverPlacementModifier.RIGHT,
|
|
156
|
+
id: "popover-right",
|
|
157
|
+
trigger: Button({
|
|
158
|
+
title: "Popover trigger",
|
|
159
|
+
as: ButtonTypes.BUTTON,
|
|
160
|
+
attributes: triggerAttr("popover-right"),
|
|
161
|
+
}),
|
|
162
|
+
},
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export const RightStart: Story = {
|
|
166
|
+
args: {
|
|
167
|
+
placement: PopoverPlacementModifier.RIGHT_START,
|
|
168
|
+
id: "popover-right-start",
|
|
169
|
+
trigger: Button({
|
|
170
|
+
title: "Popover trigger",
|
|
171
|
+
as: ButtonTypes.BUTTON,
|
|
172
|
+
attributes: triggerAttr("popover-right-start"),
|
|
173
|
+
}),
|
|
174
|
+
},
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export const RightEnd: Story = {
|
|
178
|
+
args: {
|
|
179
|
+
placement: PopoverPlacementModifier.RIGHT_END,
|
|
180
|
+
id: "popover-right-end",
|
|
181
|
+
trigger: Button({
|
|
182
|
+
title: "Popover trigger",
|
|
183
|
+
as: ButtonTypes.BUTTON,
|
|
184
|
+
attributes: triggerAttr("popover-right-end"),
|
|
185
|
+
}),
|
|
186
|
+
},
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export const Left: Story = {
|
|
190
|
+
args: {
|
|
191
|
+
placement: PopoverPlacementModifier.LEFT,
|
|
192
|
+
id: "popover-left",
|
|
193
|
+
trigger: Button({
|
|
194
|
+
title: "Popover trigger",
|
|
195
|
+
as: ButtonTypes.BUTTON,
|
|
196
|
+
attributes: triggerAttr("popover-left"),
|
|
197
|
+
}),
|
|
198
|
+
},
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export const LeftStart: Story = {
|
|
202
|
+
args: {
|
|
203
|
+
placement: PopoverPlacementModifier.LEFT_START,
|
|
204
|
+
id: "popover-left-start",
|
|
205
|
+
trigger: Button({
|
|
206
|
+
title: "Popover trigger",
|
|
207
|
+
as: ButtonTypes.BUTTON,
|
|
208
|
+
attributes: triggerAttr("popover-left-start"),
|
|
209
|
+
}),
|
|
210
|
+
},
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export const LeftEnd: Story = {
|
|
214
|
+
args: {
|
|
215
|
+
placement: PopoverPlacementModifier.LEFT_END,
|
|
216
|
+
id: "popover-left-end",
|
|
217
|
+
trigger: Button({
|
|
218
|
+
title: "Popover trigger",
|
|
219
|
+
as: ButtonTypes.BUTTON,
|
|
220
|
+
attributes: triggerAttr("popover-left-end"),
|
|
221
|
+
}),
|
|
222
|
+
},
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export const Bottom: Story = {
|
|
226
|
+
args: {
|
|
227
|
+
placement: PopoverPlacementModifier.BOTTOM,
|
|
228
|
+
id: "popover-bottom",
|
|
229
|
+
trigger: Button({
|
|
230
|
+
title: "Popover trigger",
|
|
231
|
+
as: ButtonTypes.BUTTON,
|
|
232
|
+
attributes: triggerAttr("popover-bottom"),
|
|
233
|
+
}),
|
|
234
|
+
},
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export const BottomStart: Story = {
|
|
238
|
+
args: {
|
|
239
|
+
placement: PopoverPlacementModifier.BOTTOM_START,
|
|
240
|
+
id: "popover-bottom-start",
|
|
241
|
+
trigger: Button({
|
|
242
|
+
title: "Popover trigger",
|
|
243
|
+
as: ButtonTypes.BUTTON,
|
|
244
|
+
attributes: triggerAttr("popover-bottom-start"),
|
|
245
|
+
}),
|
|
246
|
+
},
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export const BottomEnd: Story = {
|
|
250
|
+
args: {
|
|
251
|
+
placement: PopoverPlacementModifier.BOTTOM_END,
|
|
252
|
+
id: "popover-bottom-end",
|
|
253
|
+
trigger: Button({
|
|
254
|
+
title: "Popover trigger",
|
|
255
|
+
as: ButtonTypes.BUTTON,
|
|
256
|
+
attributes: triggerAttr("popover-bottom-end"),
|
|
257
|
+
}),
|
|
258
|
+
},
|
|
259
|
+
}
|