@pnx-mixtape/mxds 0.0.6 → 0.0.8
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/base.css +16 -19
- package/dist/build/breadcrumb.css +10 -6
- package/dist/build/button.css +2 -2
- package/dist/build/card.css +69 -56
- package/dist/build/chunks/drop-menu.entry-BC6x9vst.js +132 -0
- package/dist/build/chunks/drop-menu.entry-BC6x9vst.js.map +1 -0
- package/dist/build/content-block.css +24 -11
- package/dist/build/drop-menu.css +9 -9
- package/dist/build/drop-menu.entry.js +1 -128
- package/dist/build/drop-menu.entry.js.map +1 -1
- package/dist/build/footer.css +118 -28
- package/dist/build/form.css +142 -214
- package/dist/build/global-alert.css +3 -3
- package/dist/build/header.css +37 -30
- package/dist/build/header.entry.js +6 -1
- package/dist/build/header.entry.js.map +1 -1
- package/dist/build/in-page-navigation.css +3 -3
- package/dist/build/in-page-navigation.entry.js +2 -2
- package/dist/build/in-page-navigation.entry.js.map +1 -1
- package/dist/build/list-item.css +114 -0
- package/dist/build/masthead.css +7 -16
- package/dist/build/navigation.css +134 -113
- package/dist/build/navigation.entry.js +6 -5
- package/dist/build/navigation.entry.js.map +1 -1
- package/dist/build/page.css +14 -118
- package/dist/build/pagination.css +26 -19
- package/dist/build/side-navigation.css +88 -0
- package/dist/build/sidebar.css +15 -15
- package/dist/build/social-links.css +20 -0
- package/dist/build/steps.css +118 -0
- package/dist/build/steps.entry.js +2 -0
- package/dist/build/steps.entry.js.map +1 -0
- package/dist/build/tabs.css +22 -19
- package/dist/build/tabs.entry.js +87 -46
- package/dist/build/tabs.entry.js.map +1 -1
- package/dist/build/utilities.css +6 -3
- package/package.json +2 -2
- package/src/Atom/Button/Button.stories.ts +4 -3
- package/src/Atom/Button/__snapshots__/Button.stories.tsx.snap +2 -2
- package/src/Atom/Button/_buttons.css +1 -1
- package/src/Atom/Button/button.twig +1 -1
- package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +1 -1
- package/src/Atom/Heading/heading.twig +4 -1
- package/src/Atom/Icon/__snapshots__/Icon.stories.tsx.snap +3 -3
- package/src/Atom/Icon/icon.twig +1 -1
- package/src/Atom/Link/Link.stories.ts +8 -7
- package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +5 -9
- package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +3 -3
- package/src/Atom/Link/_links.css +12 -2
- package/src/Atom/Link/link.twig +6 -4
- package/src/Atom/Media/Media.stories.ts +9 -9
- package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +1 -1
- package/src/Atom/Media/__snapshots__/Media.stories.tsx.snap +1 -1
- package/src/Atom/Media/media.twig +6 -2
- package/src/Atom/_generic.css +0 -13
- package/src/Component/Accordion/Accordion.stories.ts +9 -7
- package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +2 -2
- package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +4 -4
- package/src/Component/Accordion/accordion-item.twig +1 -1
- package/src/Component/Accordion/accordion.twig +3 -1
- package/src/Component/Breadcrumb/Breadcrumb.stories.ts +23 -5
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +15 -8
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +6 -6
- package/src/Component/Breadcrumb/breadcrumb.css +7 -3
- package/src/Component/Breadcrumb/breadcrumb.twig +14 -12
- package/src/Component/Callout/Callout.stories.ts +5 -4
- package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +1 -1
- package/src/Component/Callout/callout.twig +1 -1
- package/src/Component/Card/Card.stories.ts +47 -20
- package/src/Component/Card/Card.stories.tsx +5 -4
- package/src/Component/Card/Card.tsx +7 -7
- package/src/Component/Card/__snapshots__/Card.stories.ts.snap +123 -49
- package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +18 -18
- package/src/Component/Card/card.css +57 -43
- package/src/Component/Card/card.twig +13 -13
- package/src/Component/ContentBlock/ContentBlock.stories.ts +73 -6
- package/src/Component/ContentBlock/ContentBlock.stories.tsx +19 -10
- package/src/Component/ContentBlock/ContentBlock.tsx +25 -17
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +137 -5
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.tsx.snap +21 -14
- package/src/Component/ContentBlock/content-block.css +21 -10
- package/src/Component/ContentBlock/content-block.twig +21 -11
- package/src/Component/DropMenu/Components/DropMenuItem.tsx +1 -1
- package/src/Component/DropMenu/DropMenu.stories.ts +1 -1
- package/src/Component/DropMenu/DropMenu.tsx +6 -6
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +2 -2
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +2 -2
- package/src/Component/DropMenu/drop-menu.css +2 -2
- package/src/Component/DropMenu/drop-menu.twig +2 -2
- package/src/Component/GlobalAlert/GlobalAlert.stories.ts +5 -6
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +7 -7
- package/src/Component/GlobalAlert/global-alert.css +1 -1
- package/src/Component/GlobalAlert/global-alert.twig +1 -1
- package/src/Component/HeroBanner/HeroBanner.stories.ts +17 -12
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +11 -11
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.tsx.snap +9 -9
- package/src/Component/HeroBanner/hero-banner.twig +2 -2
- package/src/Component/InPageAlert/InPageAlert.stories.ts +4 -3
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +1 -3
- package/src/Component/InPageAlert/in-page-alert.twig +1 -1
- package/src/Component/InPageNavigation/Elements/InPageNavigation.ts +2 -2
- package/src/Component/InPageNavigation/InPageNavigation.stories.ts +30 -7
- package/src/Component/InPageNavigation/InPageNavigation.tsx +4 -4
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +103 -5
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +21 -21
- package/src/Component/InPageNavigation/in-page-navigation.css +3 -3
- package/src/Component/InPageNavigation/in-page-navigation.twig +13 -17
- package/src/Component/InPageNavigation/twig/{in-page-navigation-content-example.twig → content-example.twig} +2 -0
- package/src/Component/InPageNavigation/twig/in-page-navigation-story.twig +2 -0
- package/src/Component/LinkList/__snapshots__/LinkList.stories.tsx.snap +8 -8
- package/src/Component/LinkList/link-list.twig +1 -1
- package/src/Component/ListItem/ListItem.stories.ts +105 -0
- package/src/Component/ListItem/{Teaser.stories.tsx → ListItem.stories.tsx} +4 -5
- package/src/Component/ListItem/ListItem.tsx +55 -0
- package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +184 -0
- package/src/Component/ListItem/__snapshots__/ListItem.stories.tsx.snap +23 -0
- package/src/Component/ListItem/list-item.css +109 -0
- package/src/Component/ListItem/list-item.twig +32 -0
- package/src/Component/Navigation/Components/DropdownLevel.tsx +11 -6
- package/src/Component/Navigation/Dropdown.tsx +2 -2
- package/src/Component/Navigation/Elements/Navigation.ts +6 -5
- package/src/Component/Navigation/Navigation.stories.ts +261 -5
- package/src/Component/Navigation/Navigation.tsx +2 -2
- package/src/Component/Navigation/__snapshots__/Dropdown.stories.tsx.snap +4 -4
- package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +294 -7
- package/src/Component/Navigation/__snapshots__/Navigation.stories.tsx.snap +2 -2
- package/src/Component/Navigation/_navigation-collapsible.css +22 -12
- package/src/Component/Navigation/_navigation-dropdown.css +8 -8
- package/src/Component/Navigation/_navigation-mega.css +4 -4
- package/src/Component/Navigation/_navigation.css +9 -6
- package/src/Component/Navigation/menu.twig +42 -0
- package/src/Component/Navigation/navigation.css +1 -1
- package/src/Component/Navigation/navigation.twig +23 -9
- package/src/Component/Pagination/Components/PaginationItem.tsx +4 -4
- package/src/Component/Pagination/Pagination.stories.ts +55 -6
- package/src/Component/Pagination/Pagination.tsx +2 -2
- package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +36 -33
- package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +11 -11
- package/src/Component/Pagination/pagination-item.twig +7 -0
- package/src/Component/Pagination/pagination.css +12 -9
- package/src/Component/Pagination/pagination.twig +12 -37
- package/src/Component/SideNavigation/SideNavigation.stories.ts +97 -0
- package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +86 -0
- package/src/Component/SideNavigation/side-navigation.css +78 -0
- package/src/Component/SideNavigation/side-navigation.twig +35 -0
- package/src/Component/SideNavigation/twig/side-navigation-story.twig +7 -0
- package/src/Component/SocialLinks/SocialLinks.stories.ts +58 -0
- package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +32 -0
- package/src/Component/SocialLinks/social-links.css +17 -0
- package/src/Component/SocialLinks/social-links.twig +6 -0
- package/src/Component/SocialShare/__snapshots__/SocialShare.stories.tsx.snap +3 -3
- package/src/Component/Steps/Steps.stories.ts +88 -0
- package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +111 -0
- package/src/Component/Steps/step-item.twig +11 -0
- package/src/Component/Steps/steps.css +99 -0
- package/src/Component/Steps/steps.entry.js +0 -0
- package/src/Component/Steps/steps.twig +18 -0
- package/src/Component/Sticky/Sticky.stories.ts +3 -0
- package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +7 -8
- package/src/Component/Sticky/sticky.twig +2 -20
- package/src/Component/Tabs/Components/Tab.tsx +1 -2
- package/src/Component/Tabs/Components/TabDropMenu.tsx +1 -1
- package/src/Component/Tabs/Components/TabList.tsx +1 -1
- package/src/Component/Tabs/Components/TabPanel.tsx +2 -2
- package/src/Component/Tabs/Elements/Tabs.ts +98 -49
- package/src/Component/Tabs/Tabs.stories.ts +45 -8
- package/src/Component/Tabs/Tabs.stories.tsx +3 -3
- package/src/Component/Tabs/Tabs.tsx +2 -2
- package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +46 -92
- package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +11 -14
- package/src/Component/Tabs/tab-item.twig +11 -0
- package/src/Component/Tabs/tabs.css +20 -17
- package/src/Component/Tabs/tabs.twig +10 -46
- package/src/Component/Tag/__snapshots__/Tag.stories.tsx.snap +1 -1
- package/src/Component/Tag/tags.twig +1 -1
- package/src/Component/Tile/__snapshots__/Tile.stories.tsx.snap +4 -4
- package/src/Form/Checkbox/Checkbox.stories.ts +39 -0
- package/src/Form/Checkbox/FormCheckbox.tsx +3 -3
- package/src/Form/Checkbox/__snapshots__/Checkbox.stories.ts.snap +28 -0
- package/src/Form/Checkbox/input-checkbox.twig +27 -24
- package/src/Form/Description/Description.stories.ts +10 -7
- package/src/Form/Description/FormDescription.tsx +3 -3
- package/src/Form/Description/FormStatus.stories.ts +31 -0
- package/src/Form/Description/__snapshots__/Description.stories.ts.snap +2 -9
- package/src/Form/Description/__snapshots__/FormDescription.stories.tsx.snap +1 -1
- package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +19 -0
- package/src/Form/Description/form-description.twig +4 -3
- package/src/Form/Description/form-status.twig +10 -0
- package/src/Form/Form/FormTitle.tsx +1 -1
- package/src/Form/Form/__snapshots__/FormTitle.stories.tsx.snap +1 -1
- package/src/Form/Form/form.twig +14 -0
- package/src/Form/Form/twig/form-example.twig +4 -4
- package/src/Form/FormItem/FormItem.stories.ts +119 -0
- package/src/Form/{Item → FormItem}/FormItem.tsx +1 -1
- package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +133 -0
- package/src/Form/{Item → FormItem}/__snapshots__/FormItem.stories.tsx.snap +24 -16
- package/src/Form/FormItem/form-item.twig +22 -0
- package/src/Form/Label/FormLabel.tsx +1 -1
- package/src/Form/Label/Label.stories.ts +16 -19
- package/src/Form/Label/__snapshots__/FormLabel.stories.tsx.snap +6 -2
- package/src/Form/Label/__snapshots__/Label.stories.ts.snap +11 -9
- package/src/Form/Label/label.twig +13 -2
- package/src/Form/Radio/FormRadio.tsx +2 -2
- package/src/Form/Radio/Radio.stories.ts +72 -0
- package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +58 -0
- package/src/Form/Radio/input-radio.twig +18 -24
- package/src/Form/Search/Search.stories.ts +50 -0
- package/src/Form/Search/__snapshots__/Search.stories.ts.snap +26 -0
- package/src/Form/Search/search-form.twig +11 -0
- package/src/Form/Select/FormSelect.tsx +1 -1
- package/src/Form/Select/Select.stories.ts +24 -31
- package/src/Form/Select/__snapshots__/FormSelect.stories.tsx.snap +1 -1
- package/src/Form/Select/__snapshots__/Select.stories.ts.snap +16 -144
- package/src/Form/Select/input-select.twig +25 -0
- package/src/Form/TextInput/FormText.tsx +4 -7
- package/src/Form/TextInput/TextInput.stories.ts +23 -41
- package/src/Form/TextInput/__snapshots__/FormText.stories.tsx.snap +1 -1
- package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +10 -14
- package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +20 -96
- package/src/Form/TextInput/input-divider.twig +7 -8
- package/src/Form/TextInput/input-text-icon.twig +5 -5
- package/src/Form/TextInput/input-text.twig +31 -5
- package/src/Form/Textarea/FormTextarea.tsx +4 -7
- package/src/Form/Textarea/Textarea.stories.ts +11 -8
- package/src/Form/Textarea/__snapshots__/FormTextarea.stories.tsx.snap +1 -1
- package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +8 -16
- package/src/Form/Textarea/input-textarea.twig +21 -0
- package/src/Form/form.css +103 -103
- package/src/Layout/Footer/Footer.stories.ts +197 -5
- package/src/Layout/Footer/Footer.stories.tsx +5 -9
- package/src/Layout/Footer/Footer.tsx +21 -19
- package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +296 -78
- package/src/Layout/Footer/__snapshots__/Footer.stories.tsx.snap +52 -58
- package/src/Layout/Footer/footer.css +102 -25
- package/src/Layout/Footer/footer.twig +29 -23
- package/src/Layout/Grid/Grid.stories.ts +15 -14
- package/src/Layout/Grid/Grid.stories.tsx +14 -14
- package/src/Layout/Grid/Grid.tsx +10 -10
- package/src/Layout/Grid/__snapshots__/Grid.stories.tsx.snap +10 -10
- package/src/Layout/Grid/grid-item.twig +1 -1
- package/src/Layout/Grid/grid.twig +7 -4
- package/src/Layout/Header/Components/GlobalToggle.tsx +0 -1
- package/src/Layout/Header/Components/Logo.tsx +1 -1
- package/src/Layout/Header/Elements/GlobalToggle.ts +6 -1
- package/src/Layout/Header/Header.stories.ts +242 -7
- package/src/Layout/Header/Header.tsx +22 -19
- package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +464 -100
- package/src/Layout/Header/__snapshots__/Header.stories.tsx.snap +50 -46
- package/src/Layout/Header/_header.css +28 -21
- package/src/Layout/Header/_toggles.css +2 -2
- package/src/Layout/Header/header-stacked.twig +49 -0
- package/src/Layout/Header/header.twig +42 -21
- package/src/Layout/Header/twig/logo.twig +2 -2
- package/src/Layout/Masthead/Masthead.stories.ts +42 -6
- package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +44 -27
- package/src/Layout/Masthead/masthead.css +5 -14
- package/src/Layout/Masthead/masthead.twig +25 -7
- package/src/Layout/Page/Page.tsx +2 -2
- package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +61 -59
- package/src/Layout/Page/page.css +19 -84
- package/src/Layout/Page/page.twig +8 -3
- package/src/Layout/Section/Section.stories.ts +12 -9
- package/src/Layout/Section/Section.stories.tsx +5 -9
- package/src/Layout/Section/Section.tsx +6 -10
- package/src/Layout/Section/SectionGrid.stories.tsx +5 -11
- package/src/Layout/Section/SectionGrid.tsx +8 -13
- package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +12 -12
- package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +17 -17
- package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +18 -18
- package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +4 -4
- package/src/Layout/Section/__snapshots__/Section.stories.tsx.snap +6 -6
- package/src/Layout/Section/__snapshots__/SectionGrid.stories.tsx.snap +6 -6
- package/src/Layout/Section/section.twig +1 -1
- package/src/Layout/Section/twig/section-background.twig +5 -5
- package/src/Layout/Section/twig/sections-breakout.twig +16 -16
- package/src/Layout/Section/twig/sections-flow.twig +17 -17
- package/src/Layout/Section/twig/sections-stacked.twig +8 -16
- package/src/Layout/Sidebar/Sidebar.stories.ts +25 -3
- package/src/Layout/Sidebar/Sidebar.stories.tsx +1 -1
- package/src/Layout/Sidebar/Sidebar.tsx +4 -4
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +39 -16
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.tsx.snap +6 -6
- package/src/Layout/Sidebar/sidebar.css +6 -6
- package/src/Layout/Sidebar/sidebar.twig +25 -16
- package/src/Utility/utilities.css +5 -2
- package/src/react.ts +1 -2
- package/dist/build/footer-menu.css +0 -32
- package/dist/build/nav-list.css +0 -26
- package/src/Atom/Button/twig/story-button.twig +0 -11
- package/src/Atom/Link/twig/story-link.twig +0 -11
- package/src/Atom/Media/twig/story-media.twig +0 -11
- package/src/Atom/NavList/NavList.stories.ts +0 -15
- package/src/Atom/NavList/__snapshots__/NavList.stories.ts.snap +0 -43
- package/src/Atom/NavList/nav-list.css +0 -23
- package/src/Atom/NavList/nav-list.twig +0 -25
- package/src/Component/Accordion/twig/accordion-story.twig +0 -13
- package/src/Component/Author/Author.stories.tsx +0 -18
- package/src/Component/Author/Author.tsx +0 -30
- package/src/Component/Author/__snapshots__/Author.stories.tsx.snap +0 -21
- package/src/Component/Callout/twig/callout-story.twig +0 -11
- package/src/Component/Card/twig/old-card.twig +0 -17
- package/src/Component/Card/twig/story-card.twig +0 -29
- package/src/Component/ContentBlock/twig/content-block-example.twig +0 -7
- package/src/Component/GlobalAlert/twig/story-global-alert.twig +0 -14
- package/src/Component/HeroBanner/twig/hero-banner-story.twig +0 -19
- package/src/Component/InPageAlert/twig/story-in-page-alert.twig +0 -11
- package/src/Component/InPageNavigation/twig/in-page-navigation-menu-example.twig +0 -6
- package/src/Component/ListItem/Teaser.tsx +0 -54
- package/src/Component/ListItem/__snapshots__/Teaser.stories.tsx.snap +0 -32
- package/src/Component/Navigation/Collapsible.stories.ts +0 -16
- package/src/Component/Navigation/Dropdown.stories.ts +0 -16
- package/src/Component/Navigation/MegaNav.stories.ts +0 -16
- package/src/Component/Navigation/__snapshots__/Collapsible.stories.ts.snap +0 -123
- package/src/Component/Navigation/__snapshots__/Dropdown.stories.ts.snap +0 -125
- package/src/Component/Navigation/navigation-collapsible.twig +0 -7
- package/src/Component/Navigation/navigation-dropdown.twig +0 -7
- package/src/Component/Navigation/navigation-mega-nav.twig +0 -7
- package/src/Component/Navigation/twig/navigation-subnav-list.twig +0 -108
- package/src/Component/Sticky/twig/sticky-example.twig +0 -4
- package/src/Component/Tabs/twig/panel.twig +0 -5
- package/src/Component/Tabs/twig/tab-list.twig +0 -26
- package/src/Form/Checkbox/Checkboxes.stories.ts +0 -47
- package/src/Form/Checkbox/__snapshots__/Checkboxes.stories.ts.snap +0 -115
- package/src/Form/Checkbox/input-checkbox-single.twig +0 -6
- package/src/Form/Description/ErrorMessage.stories.ts +0 -16
- package/src/Form/Description/__snapshots__/ErrorMessage.stories.ts.snap +0 -20
- package/src/Form/Description/form-error.twig +0 -5
- package/src/Form/Fieldset/Fieldset.stories.ts +0 -34
- package/src/Form/Fieldset/__snapshots__/Fieldset.stories.ts.snap +0 -23
- package/src/Form/Fieldset/fieldset.twig +0 -4
- package/src/Form/Radio/Radios.stories.ts +0 -47
- package/src/Form/Radio/__snapshots__/Radios.stories.ts.snap +0 -125
- package/src/Form/Search/TextInputWithInlineButton.stories.ts +0 -16
- package/src/Form/Search/__snapshots__/TextInputWithInlineButton.stories.ts.snap +0 -26
- package/src/Form/Search/input-text-inline-submit.twig +0 -8
- package/src/Form/Select/select.twig +0 -16
- package/src/Form/TextInput/TextInputWithIcon.stories.ts +0 -40
- package/src/Form/TextInput/__snapshots__/TextInputWithIcon.stories.ts.snap +0 -67
- package/src/Form/Textarea/textarea.twig +0 -5
- package/src/Layout/Footer/FooterMenu/FooterMenu.stories.ts +0 -15
- package/src/Layout/Footer/FooterMenu/__snapshots__/FooterMenu.stories.ts.snap +0 -101
- package/src/Layout/Footer/FooterMenu/footer-menu.css +0 -29
- package/src/Layout/Footer/FooterMenu/footer-menu.twig +0 -5
- package/src/Layout/Grid/twig/container-grid-dynamic.twig +0 -47
- package/src/Layout/Grid/twig/container-grid.twig +0 -46
- package/src/Layout/Grid/twig/grid-story.twig +0 -6
- package/src/Layout/Grid/twig/old-grid.twig +0 -46
- package/src/Layout/Header/Stacked/Stacked.stories.ts +0 -16
- package/src/Layout/Header/Stacked/__snapshots__/Stacked.stories.ts.snap +0 -353
- package/src/Layout/Header/Stacked/header-stacked.twig +0 -33
- package/src/Layout/Header/twig/global-header.twig +0 -4
- package/src/Layout/Section/twig/section-story.twig +0 -14
- /package/src/Form/{Item → FormItem}/FormItem.stories.tsx +0 -0
|
@@ -3,52 +3,129 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
@layer design-system.layouts {
|
|
6
|
-
.footer {
|
|
6
|
+
.mx-footer {
|
|
7
7
|
position: sticky;
|
|
8
8
|
inset-block-start: 100vh;
|
|
9
|
+
}
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
.mx-footer__inner {
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-areas: "brand" "social" "navigation" "copyright" "links";
|
|
14
|
+
|
|
15
|
+
@media (--medium-up) {
|
|
16
|
+
grid-template-areas: "brand navigation" "social navigation" "copyright links";
|
|
17
|
+
gap: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:has(.mx-footer__aoc) {
|
|
21
|
+
grid-template-areas: "aoc" "brand" "social" "navigation" "copyright" "links";
|
|
22
|
+
|
|
23
|
+
@media (--medium-up) {
|
|
24
|
+
grid-template-areas: "aoc aoc" "brand navigation" "social navigation" "copyright links";
|
|
25
|
+
}
|
|
12
26
|
}
|
|
13
27
|
|
|
14
|
-
& .
|
|
15
|
-
|
|
28
|
+
& .mx-logo {
|
|
29
|
+
grid-area: brand;
|
|
30
|
+
margin-block-end: var(--gap);
|
|
16
31
|
}
|
|
17
|
-
}
|
|
18
32
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
33
|
+
& .mx-social-links {
|
|
34
|
+
grid-area: social;
|
|
35
|
+
align-self: end;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
& .mx-footer__copyright {
|
|
39
|
+
grid-area: copyright;
|
|
40
|
+
align-self: end;
|
|
41
|
+
|
|
42
|
+
&:not(:first-child) {
|
|
43
|
+
padding-block-start: var(--spacing-s);
|
|
44
|
+
border-block-start: var(--line-width, 1px) solid
|
|
45
|
+
var(--line-colour, var(--colour-border));
|
|
46
|
+
margin-block-start: var(--gap);
|
|
47
|
+
|
|
48
|
+
& + .mx-footer__links {
|
|
49
|
+
@media (--medium-up) {
|
|
50
|
+
padding-block-start: var(--spacing-s);
|
|
51
|
+
border-block-start: var(--line-width, 1px) solid
|
|
52
|
+
var(--line-colour, var(--colour-border));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
& .mx-footer__links {
|
|
59
|
+
grid-area: links;
|
|
60
|
+
align-self: end;
|
|
61
|
+
|
|
62
|
+
@media (--medium-up) {
|
|
63
|
+
justify-content: end;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:not(:first-child) {
|
|
67
|
+
margin-block-start: var(--gap);
|
|
68
|
+
}
|
|
22
69
|
}
|
|
23
70
|
}
|
|
24
71
|
|
|
25
|
-
.
|
|
26
|
-
|
|
27
|
-
|
|
72
|
+
.mx-footer__aoc {
|
|
73
|
+
grid-area: aoc;
|
|
74
|
+
padding-block-end: var(--footer-row-gap, var(--spacing-xxl));
|
|
75
|
+
border-block-end: var(--line-width, 1px) solid
|
|
28
76
|
var(--line-colour, var(--colour-border));
|
|
77
|
+
margin-block-end: var(--gap);
|
|
29
78
|
text-align: center;
|
|
30
|
-
|
|
31
|
-
display: flex;
|
|
32
|
-
justify-content: space-between;
|
|
33
|
-
align-items: center;
|
|
34
|
-
flex-wrap: wrap;
|
|
35
|
-
gap: var(--gap);
|
|
79
|
+
}
|
|
36
80
|
|
|
37
|
-
|
|
38
|
-
|
|
81
|
+
.mx-nav--footer {
|
|
82
|
+
grid-area: navigation;
|
|
83
|
+
margin-block: var(--spacing-xxxl) var(--spacing-l);
|
|
84
|
+
|
|
85
|
+
@media (--medium-up) {
|
|
86
|
+
justify-self: end;
|
|
87
|
+
margin-block: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:not(:has(.mx-nav__level-2)) ul {
|
|
91
|
+
flex-flow: row wrap;
|
|
92
|
+
align-items: center;
|
|
93
|
+
gap: var(--spacing-l) var(--spacing-xxxl);
|
|
39
94
|
}
|
|
40
95
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
96
|
+
&:has(.mx-nav__level-2) {
|
|
97
|
+
& ul {
|
|
98
|
+
display: grid;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
& .mx-nav__level-1 {
|
|
102
|
+
gap: var(--spacing-l) var(--spacing-xxxl);
|
|
103
|
+
grid-template-columns: 1fr 1fr;
|
|
104
|
+
|
|
105
|
+
@media (--medium-up) {
|
|
106
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
& > li > a {
|
|
110
|
+
display: inline-block;
|
|
111
|
+
margin-block-end: var(--spacing-l);
|
|
112
|
+
font-weight: var(--font-weight-bold);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
& .mx-nav__level-2 {
|
|
117
|
+
gap: var(--spacing-xs);
|
|
45
118
|
}
|
|
46
119
|
}
|
|
120
|
+
|
|
121
|
+
& .mx-nav__toggle {
|
|
122
|
+
display: none;
|
|
123
|
+
}
|
|
47
124
|
}
|
|
48
125
|
}
|
|
49
126
|
|
|
50
127
|
@media print {
|
|
51
|
-
.footer {
|
|
128
|
+
.mx-footer {
|
|
52
129
|
display: none;
|
|
53
130
|
}
|
|
54
131
|
}
|
|
@@ -1,25 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<div class="
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
{% set baseClass = 'mx-footer' %}
|
|
2
|
+
{% set classes = [
|
|
3
|
+
baseClass,
|
|
4
|
+
'mx-section',
|
|
5
|
+
'mx-section--top-l',
|
|
6
|
+
'mx-section--bottom-m',
|
|
7
|
+
background == "light" ? 'mx-background--alt' : 'mx-background--reverse',
|
|
8
|
+
] %}
|
|
9
|
+
{% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
|
|
10
|
+
<footer{{ attributes }}>
|
|
11
|
+
<div class="mx-footer__inner">
|
|
12
|
+
{% if aoc %}
|
|
13
|
+
<div class="mx-footer__aoc mx-text--s">{{ aoc }}</div>
|
|
14
|
+
{% endif %}
|
|
15
|
+
|
|
16
|
+
{{ logo }}
|
|
17
|
+
{{ socials }}
|
|
18
|
+
{{ navigation }}
|
|
19
|
+
|
|
20
|
+
{% if copyright %}
|
|
21
|
+
<span class="mx-footer__copyright mx-text--s">{{ copyright }}</span>
|
|
22
|
+
{% endif %}
|
|
23
|
+
{% if links %}
|
|
24
|
+
<nav class="mx-footer__links mx-nav mx-nav--inline mx-text--s" aria-label="Footer subsidiary links">
|
|
25
|
+
{% for link in links %}
|
|
26
|
+
{{ link }}
|
|
27
|
+
{% endfor %}
|
|
28
|
+
</nav>
|
|
29
|
+
{% endif %}
|
|
24
30
|
</div>
|
|
25
31
|
</footer>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/html"
|
|
2
|
-
import Component from "./
|
|
2
|
+
import Component from "./grid.twig"
|
|
3
|
+
import GridItem from "./grid-item.twig"
|
|
3
4
|
import "./grid.css"
|
|
4
5
|
import {
|
|
5
6
|
AsTypes,
|
|
@@ -13,12 +14,12 @@ const meta: Meta<GridType> = {
|
|
|
13
14
|
component: Component,
|
|
14
15
|
args: {
|
|
15
16
|
items: [
|
|
16
|
-
{ item: "item 1" },
|
|
17
|
-
{ item: "item 2" },
|
|
18
|
-
{ item: "item 3" },
|
|
19
|
-
{ item: "item 4" },
|
|
20
|
-
{ item: "item 5" },
|
|
21
|
-
{ item: "item 6" },
|
|
17
|
+
GridItem({ item: "item 1" }),
|
|
18
|
+
GridItem({ item: "item 2" }),
|
|
19
|
+
GridItem({ item: "item 3" }),
|
|
20
|
+
GridItem({ item: "item 4" }),
|
|
21
|
+
GridItem({ item: "item 5" }),
|
|
22
|
+
GridItem({ item: "item 6" }),
|
|
22
23
|
],
|
|
23
24
|
as: SectionTypes.DIV,
|
|
24
25
|
modifiers: [GridModifiers.SM_2, GridModifiers.LG_4],
|
|
@@ -42,14 +43,14 @@ export const List: Story = {
|
|
|
42
43
|
as: SectionTypes.LIST,
|
|
43
44
|
modifiers: [GridModifiers.SM_2],
|
|
44
45
|
items: [
|
|
45
|
-
{
|
|
46
|
+
GridItem({
|
|
46
47
|
item: "list item 1",
|
|
47
48
|
as: AsTypes.LI,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
49
|
+
}),
|
|
50
|
+
GridItem({
|
|
50
51
|
item: "list item 2",
|
|
51
52
|
as: AsTypes.LI,
|
|
52
|
-
},
|
|
53
|
+
}),
|
|
53
54
|
],
|
|
54
55
|
},
|
|
55
56
|
}
|
|
@@ -58,11 +59,11 @@ export const Span: Story = {
|
|
|
58
59
|
args: {
|
|
59
60
|
modifiers: [GridModifiers.SM_2, GridModifiers.MD_3],
|
|
60
61
|
items: [
|
|
61
|
-
{ item: "item 1" },
|
|
62
|
-
{
|
|
62
|
+
GridItem({ item: "item 1" }),
|
|
63
|
+
GridItem({
|
|
63
64
|
item: "item 2, span 2",
|
|
64
65
|
modifiers: [GridModifiers.MD_2],
|
|
65
|
-
},
|
|
66
|
+
}),
|
|
66
67
|
],
|
|
67
68
|
},
|
|
68
69
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @eslint-react/no-array-index-key, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment */
|
|
2
2
|
import { Meta, StoryObj } from "@storybook/react"
|
|
3
3
|
import Component from "./Grid"
|
|
4
|
-
import {
|
|
4
|
+
import { AsTypes, GridModifiers, SectionTypes } from "@pnx-mixtape/ids-shape"
|
|
5
5
|
|
|
6
6
|
const Grid = ({ children, ...args }) => (
|
|
7
7
|
<Component wrapper {...args}>
|
|
@@ -18,9 +18,11 @@ const meta: Meta<typeof Component> = {
|
|
|
18
18
|
component: Component,
|
|
19
19
|
render: Grid,
|
|
20
20
|
argTypes: {
|
|
21
|
-
width: { options: Object.values(
|
|
22
|
-
cols: { options: Object.values(
|
|
23
|
-
as: {
|
|
21
|
+
width: { options: Object.values(GridModifiers) },
|
|
22
|
+
cols: { options: Object.values(GridModifiers) },
|
|
23
|
+
as: {
|
|
24
|
+
options: [...Object.values(SectionTypes), ...Object.values(AsTypes)],
|
|
25
|
+
},
|
|
24
26
|
},
|
|
25
27
|
}
|
|
26
28
|
|
|
@@ -29,7 +31,6 @@ type Story = StoryObj<typeof meta>
|
|
|
29
31
|
|
|
30
32
|
export const Dynamic: Story = {
|
|
31
33
|
args: {
|
|
32
|
-
cols: GridColumns.DYNAMIC,
|
|
33
34
|
children: [
|
|
34
35
|
{
|
|
35
36
|
value: "1",
|
|
@@ -45,7 +46,7 @@ export const Dynamic: Story = {
|
|
|
45
46
|
}
|
|
46
47
|
export const Breakpoints: Story = {
|
|
47
48
|
args: {
|
|
48
|
-
cols: [
|
|
49
|
+
cols: [GridModifiers.MD_2, GridModifiers.LG_4],
|
|
49
50
|
children: [
|
|
50
51
|
{
|
|
51
52
|
value: "1",
|
|
@@ -64,21 +65,21 @@ export const Breakpoints: Story = {
|
|
|
64
65
|
}
|
|
65
66
|
export const Fixed: Story = {
|
|
66
67
|
args: {
|
|
68
|
+
cols: GridModifiers.MD_3,
|
|
67
69
|
children: [
|
|
68
70
|
{
|
|
69
71
|
value: "1",
|
|
70
|
-
width:
|
|
72
|
+
width: GridModifiers.MD_2,
|
|
71
73
|
},
|
|
72
74
|
{
|
|
73
75
|
value: "2",
|
|
74
|
-
width: "4",
|
|
75
76
|
},
|
|
76
77
|
],
|
|
77
78
|
},
|
|
78
79
|
}
|
|
79
80
|
export const Container: Story = {
|
|
80
81
|
render: ({ children, ...args }) => (
|
|
81
|
-
<div className="container">
|
|
82
|
+
<div className="mx-container">
|
|
82
83
|
<Component wrapper {...args}>
|
|
83
84
|
{children.map((item, key) => (
|
|
84
85
|
<Component key={key} width={item.width}>
|
|
@@ -89,7 +90,6 @@ export const Container: Story = {
|
|
|
89
90
|
</div>
|
|
90
91
|
),
|
|
91
92
|
args: {
|
|
92
|
-
cols: GridColumns.DYNAMIC,
|
|
93
93
|
children: [
|
|
94
94
|
{
|
|
95
95
|
value: "1",
|
|
@@ -102,23 +102,23 @@ export const Container: Story = {
|
|
|
102
102
|
}
|
|
103
103
|
export const List: Story = {
|
|
104
104
|
render: ({ children, ...args }) => (
|
|
105
|
-
<Component wrapper as={
|
|
105
|
+
<Component wrapper as={SectionTypes.LIST} {...args}>
|
|
106
106
|
{children.map((item, key) => (
|
|
107
|
-
<Component as={
|
|
107
|
+
<Component as={AsTypes.LI} key={key} width={item.width}>
|
|
108
108
|
{item.value}
|
|
109
109
|
</Component>
|
|
110
110
|
))}
|
|
111
111
|
</Component>
|
|
112
112
|
),
|
|
113
113
|
args: {
|
|
114
|
+
cols: GridModifiers.MD_3,
|
|
114
115
|
children: [
|
|
115
116
|
{
|
|
116
117
|
value: "1",
|
|
117
|
-
width:
|
|
118
|
+
width: GridModifiers.MD_2,
|
|
118
119
|
},
|
|
119
120
|
{
|
|
120
121
|
value: "2",
|
|
121
|
-
width: "4",
|
|
122
122
|
},
|
|
123
123
|
],
|
|
124
124
|
},
|
package/src/Layout/Grid/Grid.tsx
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { JSX, PropsWithChildren, useMemo } from "react"
|
|
2
2
|
import classNames from "classnames"
|
|
3
|
-
import {
|
|
3
|
+
import { AsTypes, GridModifiers, SectionTypes } from "@pnx-mixtape/ids-shape"
|
|
4
4
|
|
|
5
5
|
type GridProps = PropsWithChildren & {
|
|
6
6
|
wrapper?: boolean
|
|
7
7
|
container?: boolean
|
|
8
|
-
cols?:
|
|
9
|
-
width?:
|
|
8
|
+
cols?: GridModifiers | GridModifiers[]
|
|
9
|
+
width?: GridModifiers
|
|
10
10
|
className?: string
|
|
11
|
-
as?:
|
|
11
|
+
as?: AsTypes | SectionTypes
|
|
12
12
|
}
|
|
13
13
|
// @todo update grid classes and add span support
|
|
14
14
|
const Grid = ({
|
|
@@ -18,7 +18,7 @@ const Grid = ({
|
|
|
18
18
|
cols,
|
|
19
19
|
width,
|
|
20
20
|
className,
|
|
21
|
-
as =
|
|
21
|
+
as = AsTypes.DIV,
|
|
22
22
|
...props
|
|
23
23
|
}: GridProps): JSX.Element => {
|
|
24
24
|
const Tag: JSX.ElementType = `${as}` as unknown as JSX.ElementType
|
|
@@ -26,18 +26,18 @@ const Grid = ({
|
|
|
26
26
|
const colClasses = useMemo<string[]>(() => {
|
|
27
27
|
if (!cols) return []
|
|
28
28
|
if (Array.isArray(cols))
|
|
29
|
-
return cols.map((col:
|
|
30
|
-
return [`mx-grid
|
|
29
|
+
return cols.map((col: GridModifiers) => `mx-grid--cols-${col}`)
|
|
30
|
+
return [`mx-grid--cols-${cols}`]
|
|
31
31
|
}, [cols])
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
34
|
<Tag
|
|
35
35
|
className={classNames(
|
|
36
36
|
{
|
|
37
|
-
grid: wrapper,
|
|
38
|
-
container: container,
|
|
37
|
+
["mx-grid"]: wrapper,
|
|
38
|
+
["mx-container"]: container,
|
|
39
39
|
[colClasses.join(" ")]: cols && wrapper,
|
|
40
|
-
[`mx-grid
|
|
40
|
+
[`mx-grid-item__span-${width}`]: width,
|
|
41
41
|
},
|
|
42
42
|
className,
|
|
43
43
|
)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Layout/Grid Breakpoints smoke-test 1`] = `
|
|
4
|
-
<div class="grid grid--md-2-
|
|
4
|
+
<div class="mx-grid mx-grid--cols-md-2 mx-grid--cols-lg-4">
|
|
5
5
|
<div class>
|
|
6
6
|
1
|
|
7
7
|
</div>
|
|
@@ -18,8 +18,8 @@ exports[`Layout/Grid Breakpoints smoke-test 1`] = `
|
|
|
18
18
|
`;
|
|
19
19
|
|
|
20
20
|
exports[`Layout/Grid Container smoke-test 1`] = `
|
|
21
|
-
<div class="container">
|
|
22
|
-
<div class="grid
|
|
21
|
+
<div class="mx-container">
|
|
22
|
+
<div class="mx-grid">
|
|
23
23
|
<div class>
|
|
24
24
|
1
|
|
25
25
|
</div>
|
|
@@ -31,7 +31,7 @@ exports[`Layout/Grid Container smoke-test 1`] = `
|
|
|
31
31
|
`;
|
|
32
32
|
|
|
33
33
|
exports[`Layout/Grid Dynamic smoke-test 1`] = `
|
|
34
|
-
<div class="grid
|
|
34
|
+
<div class="mx-grid">
|
|
35
35
|
<div class>
|
|
36
36
|
1
|
|
37
37
|
</div>
|
|
@@ -45,22 +45,22 @@ exports[`Layout/Grid Dynamic smoke-test 1`] = `
|
|
|
45
45
|
`;
|
|
46
46
|
|
|
47
47
|
exports[`Layout/Grid Fixed smoke-test 1`] = `
|
|
48
|
-
<div class="grid">
|
|
49
|
-
<div class="grid
|
|
48
|
+
<div class="mx-grid mx-grid--cols-md-3">
|
|
49
|
+
<div class="mx-grid-item__span-md-2">
|
|
50
50
|
1
|
|
51
51
|
</div>
|
|
52
|
-
<div class
|
|
52
|
+
<div class>
|
|
53
53
|
2
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
`;
|
|
57
57
|
|
|
58
58
|
exports[`Layout/Grid List smoke-test 1`] = `
|
|
59
|
-
<ul class="grid">
|
|
60
|
-
<li class="grid
|
|
59
|
+
<ul class="mx-grid mx-grid--cols-md-3">
|
|
60
|
+
<li class="mx-grid-item__span-md-2">
|
|
61
61
|
1
|
|
62
62
|
</li>
|
|
63
|
-
<li class
|
|
63
|
+
<li class>
|
|
64
64
|
2
|
|
65
65
|
</li>
|
|
66
66
|
</ul>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{% for modifier in modifiers %}
|
|
3
3
|
{% set classes = classes|merge(["mx-grid-item__span-"~modifier]) %}
|
|
4
4
|
{% endfor %}
|
|
5
|
-
{% set attributes = (attributes
|
|
5
|
+
{% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
|
|
6
6
|
{% set as = as|default("div") %}
|
|
7
7
|
|
|
8
8
|
{% if container %}
|
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
{% for modifier in modifiers %}
|
|
4
4
|
{% set classes = classes|merge([baseClass~"--cols-"~modifier]) %}
|
|
5
5
|
{% endfor %}
|
|
6
|
-
{% set attributes = (attributes
|
|
6
|
+
{% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
|
|
7
|
+
{% set as = as|default("div") %}
|
|
7
8
|
|
|
8
|
-
<{{ as
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
<{{ as }}{{ attributes }}>
|
|
10
|
+
{% for item in items %}
|
|
11
|
+
{{ item }}
|
|
12
|
+
{% endfor %}
|
|
13
|
+
</{{ as }}>
|
|
@@ -49,10 +49,15 @@ export default class GlobalToggle extends HTMLElement {
|
|
|
49
49
|
matches,
|
|
50
50
|
}: MediaQueryList | MediaQueryListEvent): void => {
|
|
51
51
|
if (!this.trigger) return
|
|
52
|
+
const { signal }: AbortController = this.controller
|
|
52
53
|
if (matches) {
|
|
53
54
|
this.widget.attach()
|
|
54
55
|
this.target.setAttribute("inert", "")
|
|
55
|
-
this.trigger.addEventListener(
|
|
56
|
+
this.trigger.addEventListener(
|
|
57
|
+
"disclosure-toggle",
|
|
58
|
+
this.handleDisclosure,
|
|
59
|
+
{ signal },
|
|
60
|
+
)
|
|
56
61
|
} else {
|
|
57
62
|
this.widget.detach()
|
|
58
63
|
this.target.removeAttribute("inert")
|