@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
|
@@ -2,13 +2,11 @@ import { Meta, StoryObj } from "@storybook/html-vite"
|
|
|
2
2
|
import Component from "./grid.twig"
|
|
3
3
|
import GridItem from "./grid-item.twig"
|
|
4
4
|
import "./grid.css"
|
|
5
|
-
import {
|
|
6
|
-
AsTypes,
|
|
7
|
-
Grid as GridType,
|
|
8
|
-
GridModifiers,
|
|
9
|
-
SectionTypes,
|
|
10
|
-
} from "@pnx-mixtape/ids-shape"
|
|
5
|
+
import { AsTypes, Grid as GridType, GridModifiers, SectionTypes } from "@pnx-mixtape/ids-shape"
|
|
11
6
|
|
|
7
|
+
/**
|
|
8
|
+
* A CSS grid that is dynamic by default.
|
|
9
|
+
*/
|
|
12
10
|
const meta: Meta<GridType> = {
|
|
13
11
|
tags: ["autodocs", "ids-mvp"],
|
|
14
12
|
component: Component,
|
|
@@ -22,14 +20,33 @@ const meta: Meta<GridType> = {
|
|
|
22
20
|
GridItem({ item: ["<span>item 6</span>"] }),
|
|
23
21
|
],
|
|
24
22
|
as: SectionTypes.DIV,
|
|
25
|
-
modifiers: [GridModifiers.SM_2, GridModifiers.LG_4],
|
|
26
23
|
},
|
|
27
24
|
argTypes: {
|
|
28
25
|
modifiers: {
|
|
26
|
+
description: "Grid modifiers.",
|
|
29
27
|
options: Object.values(GridModifiers),
|
|
30
28
|
control: "multi-select",
|
|
31
29
|
},
|
|
32
|
-
as: {
|
|
30
|
+
as: {
|
|
31
|
+
description:
|
|
32
|
+
"Change the wrapper html element. When using lists make sure to also change the GridItem `as=li`",
|
|
33
|
+
options: Object.values(SectionTypes),
|
|
34
|
+
control: "select",
|
|
35
|
+
table: {
|
|
36
|
+
defaultValue: { summary: SectionTypes.DIV },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
items: {
|
|
40
|
+
description: "A list of [GridItem](/?path=/docs/layout-grid-griditem--docs) objects.",
|
|
41
|
+
type: {
|
|
42
|
+
name: "other",
|
|
43
|
+
required: true,
|
|
44
|
+
value: "array",
|
|
45
|
+
},
|
|
46
|
+
table: {
|
|
47
|
+
type: { summary: "GridItem" },
|
|
48
|
+
},
|
|
49
|
+
},
|
|
33
50
|
},
|
|
34
51
|
}
|
|
35
52
|
|
|
@@ -38,6 +55,18 @@ type Story = StoryObj<GridType>
|
|
|
38
55
|
|
|
39
56
|
export const Grid: Story = {}
|
|
40
57
|
|
|
58
|
+
/**
|
|
59
|
+
* Column widths can be set for all or combined to control columns and specific breakpoints.
|
|
60
|
+
*/
|
|
61
|
+
export const Breakpoints: Story = {
|
|
62
|
+
args: {
|
|
63
|
+
modifiers: [GridModifiers.SM_2, GridModifiers.LG_4],
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* When using Grid as a list, be sure to set the GridItem `as=li`
|
|
69
|
+
*/
|
|
41
70
|
export const List: Story = {
|
|
42
71
|
args: {
|
|
43
72
|
as: SectionTypes.LIST,
|
|
@@ -55,6 +84,9 @@ export const List: Story = {
|
|
|
55
84
|
},
|
|
56
85
|
}
|
|
57
86
|
|
|
87
|
+
/**
|
|
88
|
+
* GridItems can span multiple columns.
|
|
89
|
+
*/
|
|
58
90
|
export const Span: Story = {
|
|
59
91
|
args: {
|
|
60
92
|
modifiers: [GridModifiers.SM_2, GridModifiers.MD_3],
|
package/src/Layout/Grid/Grid.tsx
CHANGED
|
@@ -25,8 +25,7 @@ const Grid = ({
|
|
|
25
25
|
|
|
26
26
|
const colClasses = useMemo<string[]>(() => {
|
|
27
27
|
if (!cols) return []
|
|
28
|
-
if (Array.isArray(cols))
|
|
29
|
-
return cols.map((col: GridModifiers) => `mx-grid--cols-${col}`)
|
|
28
|
+
if (Array.isArray(cols)) return cols.map((col: GridModifiers) => `mx-grid--cols-${col}`)
|
|
30
29
|
return [`mx-grid--cols-${cols}`]
|
|
31
30
|
}, [cols])
|
|
32
31
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/html-vite"
|
|
2
|
+
import Component from "./grid-item.twig"
|
|
3
|
+
import "./grid.css"
|
|
4
|
+
import {
|
|
5
|
+
AsTypes,
|
|
6
|
+
GridItem as GridItemType,
|
|
7
|
+
GridModifiers,
|
|
8
|
+
SectionTypes,
|
|
9
|
+
} from "@pnx-mixtape/ids-shape"
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Individual Grid Items have similar options, but aren't designed to be used outside th parent Grid context.
|
|
13
|
+
*/
|
|
14
|
+
const meta: Meta<GridItemType> = {
|
|
15
|
+
tags: ["autodocs", "ids-mvp"],
|
|
16
|
+
component: Component,
|
|
17
|
+
args: {
|
|
18
|
+
// @ts-expect-error item is a collection.
|
|
19
|
+
item: ["<span>item 1</span>"],
|
|
20
|
+
as: AsTypes.DIV,
|
|
21
|
+
},
|
|
22
|
+
argTypes: {
|
|
23
|
+
modifiers: {
|
|
24
|
+
description: "Span modifiers.",
|
|
25
|
+
options: Object.values(GridModifiers),
|
|
26
|
+
control: "multi-select",
|
|
27
|
+
},
|
|
28
|
+
as: {
|
|
29
|
+
description:
|
|
30
|
+
"Change the wrapper html element. When using lists on the Parent grid make sure to also change the GridItem `as=li`",
|
|
31
|
+
options: Object.values(AsTypes),
|
|
32
|
+
control: "select",
|
|
33
|
+
table: {
|
|
34
|
+
defaultValue: { summary: SectionTypes.DIV },
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
item: {
|
|
38
|
+
description: "The content of the GridItem (can be anything)",
|
|
39
|
+
type: {
|
|
40
|
+
name: "other",
|
|
41
|
+
required: true,
|
|
42
|
+
value: "array",
|
|
43
|
+
},
|
|
44
|
+
table: {
|
|
45
|
+
type: { summary: "string | HTMLElement" },
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export default meta
|
|
52
|
+
type Story = StoryObj<GridItemType>
|
|
53
|
+
|
|
54
|
+
export const GridItem: Story = {}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Column spans can be set for all or combined to control columns and specific breakpoints. See [span example](/?path=/docs/layout-grid--docs#span-12)
|
|
58
|
+
*/
|
|
59
|
+
export const Breakpoints: Story = {
|
|
60
|
+
args: {
|
|
61
|
+
modifiers: [GridModifiers.SM_2, GridModifiers.LG_4],
|
|
62
|
+
},
|
|
63
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
|
-
exports[`Layout/Grid
|
|
3
|
+
exports[`Layout/Grid Breakpoints smoke-test 1`] = `
|
|
4
4
|
<div class="mx-page default">
|
|
5
5
|
<div class="mx-grid mx-grid--cols-sm-2 mx-grid--cols-lg-4">
|
|
6
6
|
<span>
|
|
@@ -25,13 +25,38 @@ exports[`Layout/Grid Grid smoke-test 1`] = `
|
|
|
25
25
|
</div>
|
|
26
26
|
`;
|
|
27
27
|
|
|
28
|
+
exports[`Layout/Grid Grid smoke-test 1`] = `
|
|
29
|
+
<div class="mx-page default">
|
|
30
|
+
<div class="mx-grid">
|
|
31
|
+
<span>
|
|
32
|
+
item 1
|
|
33
|
+
</span>
|
|
34
|
+
<span>
|
|
35
|
+
item 2
|
|
36
|
+
</span>
|
|
37
|
+
<span>
|
|
38
|
+
item 3
|
|
39
|
+
</span>
|
|
40
|
+
<span>
|
|
41
|
+
item 4
|
|
42
|
+
</span>
|
|
43
|
+
<span>
|
|
44
|
+
item 5
|
|
45
|
+
</span>
|
|
46
|
+
<span>
|
|
47
|
+
item 6
|
|
48
|
+
</span>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
`;
|
|
52
|
+
|
|
28
53
|
exports[`Layout/Grid List smoke-test 1`] = `
|
|
29
54
|
<div class="mx-page default">
|
|
30
55
|
<ul class="mx-grid mx-grid--cols-sm-2">
|
|
31
|
-
<li
|
|
56
|
+
<li>
|
|
32
57
|
list item 1
|
|
33
58
|
</li>
|
|
34
|
-
<li
|
|
59
|
+
<li>
|
|
35
60
|
list item 2
|
|
36
61
|
</li>
|
|
37
62
|
</ul>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
+
|
|
3
|
+
exports[`Layout/Grid/GridItem Breakpoints smoke-test 1`] = `
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<div class="mx-grid-item__span-sm-2 mx-grid-item__span-lg-4">
|
|
6
|
+
<span>
|
|
7
|
+
item 1
|
|
8
|
+
</span>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
exports[`Layout/Grid/GridItem GridItem smoke-test 1`] = `
|
|
14
|
+
<div class="mx-page default">
|
|
15
|
+
<span>
|
|
16
|
+
item 1
|
|
17
|
+
</span>
|
|
18
|
+
</div>
|
|
19
|
+
`;
|
|
@@ -7,18 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
{% if container %}
|
|
9
9
|
<{{ as }}{{ attributes.addClass("mx-container") }}>
|
|
10
|
-
{
|
|
11
|
-
{{ i }}
|
|
12
|
-
{% endfor %}
|
|
10
|
+
{{ item }}
|
|
13
11
|
</{{ as }}>
|
|
14
12
|
{% elseif classes is not empty or as != "div" %}
|
|
15
13
|
<{{ as }}{{ attributes }}>
|
|
16
|
-
{
|
|
17
|
-
{{ i }}
|
|
18
|
-
{% endfor %}
|
|
14
|
+
{{ item }}
|
|
19
15
|
</{{ as }}>
|
|
20
16
|
{% else %}
|
|
21
|
-
{
|
|
22
|
-
{{ i }}
|
|
23
|
-
{% endfor %}
|
|
17
|
+
{{ item }}
|
|
24
18
|
{% endif %}
|
package/src/Layout/Grid/grid.css
CHANGED
|
@@ -8,10 +8,7 @@
|
|
|
8
8
|
--grid-min: 20ch;
|
|
9
9
|
|
|
10
10
|
display: grid;
|
|
11
|
-
grid-template-columns: repeat(
|
|
12
|
-
var(--grid-repeat),
|
|
13
|
-
minmax(min(100%, var(--grid-min)), 1fr)
|
|
14
|
-
);
|
|
11
|
+
grid-template-columns: repeat(var(--grid-repeat), minmax(min(100%, var(--grid-min)), 1fr));
|
|
15
12
|
grid-template-rows: 1fr;
|
|
16
13
|
gap: var(--grid-gap, var(--gap));
|
|
17
14
|
|
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { createFocusTrap, FocusTrap } from "focus-trap"
|
|
7
|
-
import {
|
|
8
|
-
DisclosureWidget,
|
|
9
|
-
DisclosureWidgetEvent,
|
|
10
|
-
} from "../../../Utility/utilities"
|
|
7
|
+
import { DisclosureWidget, DisclosureWidgetEvent } from "../../../Utility/utilities"
|
|
11
8
|
|
|
12
9
|
export default class GlobalToggle extends HTMLElement {
|
|
13
10
|
internals_: ElementInternals
|
|
@@ -78,27 +75,18 @@ export default class GlobalToggle extends HTMLElement {
|
|
|
78
75
|
this.controller.abort()
|
|
79
76
|
}
|
|
80
77
|
|
|
81
|
-
handleBreakpoint = ({
|
|
82
|
-
matches,
|
|
83
|
-
}: MediaQueryList | MediaQueryListEvent): void => {
|
|
78
|
+
handleBreakpoint = ({ matches }: MediaQueryList | MediaQueryListEvent): void => {
|
|
84
79
|
if (!this.trigger) return
|
|
85
80
|
const { signal }: AbortController = this.controller
|
|
86
81
|
if (matches) {
|
|
87
82
|
this.widget.attach()
|
|
88
83
|
this.target.setAttribute("inert", "")
|
|
89
|
-
this.trigger.addEventListener(
|
|
90
|
-
"disclosure-toggle",
|
|
91
|
-
this.handleDisclosure,
|
|
92
|
-
{ signal },
|
|
93
|
-
)
|
|
84
|
+
this.trigger.addEventListener("disclosure-toggle", this.handleDisclosure, { signal })
|
|
94
85
|
} else {
|
|
95
86
|
this.widget.detach()
|
|
96
87
|
this.target.removeAttribute("inert")
|
|
97
88
|
this.target.classList.remove(this.scrollLockClass)
|
|
98
|
-
this.trigger.removeEventListener(
|
|
99
|
-
"disclosure-toggle",
|
|
100
|
-
this.handleDisclosure,
|
|
101
|
-
)
|
|
89
|
+
this.trigger.removeEventListener("disclosure-toggle", this.handleDisclosure)
|
|
102
90
|
this.focusTrap.deactivate()
|
|
103
91
|
}
|
|
104
92
|
}
|
|
@@ -120,9 +108,7 @@ export default class GlobalToggle extends HTMLElement {
|
|
|
120
108
|
}
|
|
121
109
|
|
|
122
110
|
// Toggle trigger classes.
|
|
123
|
-
this.trigger.classList.toggle(
|
|
124
|
-
this.isSearch ? this.searchIconClass : this.menuIconClass,
|
|
125
|
-
)
|
|
111
|
+
this.trigger.classList.toggle(this.isSearch ? this.searchIconClass : this.menuIconClass)
|
|
126
112
|
this.trigger.classList.toggle(this.closeIconClass)
|
|
127
113
|
this.target.classList.toggle(this.backgroundClass)
|
|
128
114
|
this.trigger.removeAttribute("no-focus")
|
|
@@ -134,8 +120,7 @@ export default class GlobalToggle extends HTMLElement {
|
|
|
134
120
|
}
|
|
135
121
|
|
|
136
122
|
get trigger(): HTMLButtonElement {
|
|
137
|
-
const trigger: HTMLButtonElement | null =
|
|
138
|
-
this.querySelector(":scope > button")
|
|
123
|
+
const trigger: HTMLButtonElement | null = this.querySelector(":scope > button")
|
|
139
124
|
const controls = trigger.getAttribute("aria-controls")
|
|
140
125
|
if (!trigger || !controls) {
|
|
141
126
|
throw new Error(
|
|
@@ -149,13 +134,9 @@ export default class GlobalToggle extends HTMLElement {
|
|
|
149
134
|
}
|
|
150
135
|
|
|
151
136
|
get target(): HTMLDivElement {
|
|
152
|
-
const target: HTMLDivElement | null = document.querySelector(
|
|
153
|
-
`div[id="${this.controls}"]`,
|
|
154
|
-
)
|
|
137
|
+
const target: HTMLDivElement | null = document.querySelector(`div[id="${this.controls}"]`)
|
|
155
138
|
if (!target) {
|
|
156
|
-
throw new Error(
|
|
157
|
-
`${this.localName} must contain a target <div id="${this.controls}">.`,
|
|
158
|
-
)
|
|
139
|
+
throw new Error(`${this.localName} must contain a target <div id="${this.controls}">.`)
|
|
159
140
|
}
|
|
160
141
|
target.classList.remove("global-nav-up-only")
|
|
161
142
|
return target
|
|
@@ -166,8 +147,7 @@ export default class GlobalToggle extends HTMLElement {
|
|
|
166
147
|
}
|
|
167
148
|
}
|
|
168
149
|
|
|
169
|
-
if (!customElements.get("mx-global-toggle"))
|
|
170
|
-
customElements.define("mx-global-toggle", GlobalToggle)
|
|
150
|
+
if (!customElements.get("mx-global-toggle")) customElements.define("mx-global-toggle", GlobalToggle)
|
|
171
151
|
|
|
172
152
|
declare global {
|
|
173
153
|
interface HTMLElementTagNameMap {
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`Layout/Header Controls smoke-test 1`] = `
|
|
4
4
|
<div class="mx-page default">
|
|
5
5
|
<header class="mx-header mx-page mx-section--s">
|
|
6
6
|
<div class="mx-header__inner">
|
|
7
7
|
<div class="mx-header__brand">
|
|
8
|
-
<
|
|
9
|
-
|
|
8
|
+
<img alt="Mixtape"
|
|
9
|
+
src="./mixtape-logo.png"
|
|
10
|
+
width="120"
|
|
11
|
+
height
|
|
10
12
|
>
|
|
11
|
-
<img alt="Mixtape"
|
|
12
|
-
src="./mixtape-logo.png"
|
|
13
|
-
width="120"
|
|
14
|
-
height
|
|
15
|
-
>
|
|
16
|
-
</a>
|
|
17
13
|
</div>
|
|
18
14
|
<div class="mx-header__toggles">
|
|
19
15
|
<mx-global-toggle>
|
|
@@ -60,13 +56,13 @@ exports[`Layout/Header Controls smoke-test 1`] = `
|
|
|
60
56
|
</nav>
|
|
61
57
|
</mx-nav>
|
|
62
58
|
</div>
|
|
63
|
-
<button class="mx-button
|
|
59
|
+
<button class="mx-button"
|
|
64
60
|
type="button"
|
|
65
61
|
>
|
|
66
62
|
<span>
|
|
67
63
|
Translate
|
|
68
64
|
</span>
|
|
69
|
-
<span class="mx-icon mx-icon--chevron-down
|
|
65
|
+
<span class="mx-icon mx-icon--chevron-down">
|
|
70
66
|
</span>
|
|
71
67
|
</button>
|
|
72
68
|
</div>
|
|
@@ -80,15 +76,11 @@ exports[`Layout/Header Header smoke-test 1`] = `
|
|
|
80
76
|
<header class="mx-header mx-page mx-section--s">
|
|
81
77
|
<div class="mx-header__inner">
|
|
82
78
|
<div class="mx-header__brand">
|
|
83
|
-
<
|
|
84
|
-
|
|
79
|
+
<img alt="Mixtape"
|
|
80
|
+
src="./mixtape-logo.png"
|
|
81
|
+
width="120"
|
|
82
|
+
height
|
|
85
83
|
>
|
|
86
|
-
<img alt="Mixtape"
|
|
87
|
-
src="./mixtape-logo.png"
|
|
88
|
-
width="120"
|
|
89
|
-
height
|
|
90
|
-
>
|
|
91
|
-
</a>
|
|
92
84
|
</div>
|
|
93
85
|
<div class="mx-header__toggles">
|
|
94
86
|
<mx-global-toggle>
|
|
@@ -146,15 +138,11 @@ exports[`Layout/Header Search smoke-test 1`] = `
|
|
|
146
138
|
<header class="mx-header mx-page mx-section--s">
|
|
147
139
|
<div class="mx-header__inner">
|
|
148
140
|
<div class="mx-header__brand">
|
|
149
|
-
<
|
|
150
|
-
|
|
141
|
+
<img alt="Mixtape"
|
|
142
|
+
src="./mixtape-logo.png"
|
|
143
|
+
width="120"
|
|
144
|
+
height
|
|
151
145
|
>
|
|
152
|
-
<img alt="Mixtape"
|
|
153
|
-
src="./mixtape-logo.png"
|
|
154
|
-
width="120"
|
|
155
|
-
height
|
|
156
|
-
>
|
|
157
|
-
</a>
|
|
158
146
|
</div>
|
|
159
147
|
<div class="mx-header__toggles">
|
|
160
148
|
<mx-global-toggle>
|
|
@@ -247,15 +235,11 @@ exports[`Layout/Header Stacked smoke-test 1`] = `
|
|
|
247
235
|
<header class="mx-header mx-page mx-section--s">
|
|
248
236
|
<div class="mx-header__inner">
|
|
249
237
|
<div class="mx-header__brand">
|
|
250
|
-
<
|
|
251
|
-
|
|
238
|
+
<img alt="Mixtape"
|
|
239
|
+
src="./mixtape-logo.png"
|
|
240
|
+
width="120"
|
|
241
|
+
height
|
|
252
242
|
>
|
|
253
|
-
<img alt="Mixtape"
|
|
254
|
-
src="./mixtape-logo.png"
|
|
255
|
-
width="120"
|
|
256
|
-
height
|
|
257
|
-
>
|
|
258
|
-
</a>
|
|
259
243
|
</div>
|
|
260
244
|
<div class="mx-header__toggles">
|
|
261
245
|
<mx-global-toggle>
|
|
@@ -435,13 +419,13 @@ exports[`Layout/Header Stacked smoke-test 1`] = `
|
|
|
435
419
|
</nav>
|
|
436
420
|
</mx-nav>
|
|
437
421
|
<div class="mx-header__nav-right">
|
|
438
|
-
<button class="mx-button
|
|
422
|
+
<button class="mx-button"
|
|
439
423
|
type="button"
|
|
440
424
|
>
|
|
441
425
|
<span>
|
|
442
426
|
Translate
|
|
443
427
|
</span>
|
|
444
|
-
<span class="mx-icon mx-icon--chevron-down
|
|
428
|
+
<span class="mx-icon mx-icon--chevron-down">
|
|
445
429
|
</span>
|
|
446
430
|
</button>
|
|
447
431
|
</div>
|
|
@@ -455,15 +439,11 @@ exports[`Layout/Header WithTitle smoke-test 1`] = `
|
|
|
455
439
|
<header class="mx-header mx-page mx-section--s">
|
|
456
440
|
<div class="mx-header__inner">
|
|
457
441
|
<div class="mx-header__brand">
|
|
458
|
-
<
|
|
459
|
-
|
|
442
|
+
<img alt="Mixtape"
|
|
443
|
+
src="./mixtape-logo.png"
|
|
444
|
+
width="120"
|
|
445
|
+
height
|
|
460
446
|
>
|
|
461
|
-
<img alt="Mixtape"
|
|
462
|
-
src="./mixtape-logo.png"
|
|
463
|
-
width="120"
|
|
464
|
-
height
|
|
465
|
-
>
|
|
466
|
-
</a>
|
|
467
447
|
<div class="mx-header__name">
|
|
468
448
|
<strong>
|
|
469
449
|
Design System
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`Layout/Header PrimaryHeader smoke-test 1`] = `
|
|
4
4
|
<header class="mx-page mx-header mx-section--s">
|
|
@@ -14,12 +14,12 @@ exports[`Layout/Header PrimaryHeader smoke-test 1`] = `
|
|
|
14
14
|
</a>
|
|
15
15
|
</div>
|
|
16
16
|
<div class="mx-header__main">
|
|
17
|
-
<div id="
|
|
17
|
+
<div id="_r_0_"
|
|
18
18
|
class="mx-header__nav"
|
|
19
19
|
>
|
|
20
20
|
<nav class="mx-nav mx-nav--dropdown"
|
|
21
21
|
aria-label="Primary Navigation"
|
|
22
|
-
id="
|
|
22
|
+
id="_r_0_"
|
|
23
23
|
>
|
|
24
24
|
<ul class="mx-nav__level-1">
|
|
25
25
|
<li class="mx-nav__has-subnav">
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
gap: var(--toggle-gap, var(--spacing-xs));
|
|
9
9
|
padding-inline-end: 2px;
|
|
10
10
|
position: relative;
|
|
11
|
-
z-index:
|
|
11
|
+
z-index: var(--toggle-index, 3);
|
|
12
12
|
|
|
13
13
|
@media (--global-nav-up) {
|
|
14
14
|
display: none;
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
opacity: 1;
|
|
29
29
|
display: grid;
|
|
30
30
|
position: fixed;
|
|
31
|
+
z-index: var(--collapse-index, 2);
|
|
31
32
|
inset: 0;
|
|
32
33
|
align-items: center;
|
|
33
34
|
|
|
@@ -46,7 +47,6 @@
|
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
@media (--global-nav-up) {
|
|
49
|
-
z-index: 2;
|
|
50
50
|
position: relative;
|
|
51
51
|
inline-size: auto;
|
|
52
52
|
block-size: auto;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div class="mx-header__inner">
|
|
10
10
|
{% if logo is not empty or title is not empty or description is not empty %}
|
|
11
11
|
<div class="mx-header__brand">
|
|
12
|
-
|
|
12
|
+
{{ logo }}
|
|
13
13
|
{% if title is not empty or description is not empty %}
|
|
14
14
|
<div class="mx-header__name">
|
|
15
15
|
{% if title is not empty %}<strong>{{ title }}</strong>{% endif %}
|
|
@@ -3,10 +3,7 @@ import Component from "./masthead.twig"
|
|
|
3
3
|
import Link from "../../Atom/Link/link.twig"
|
|
4
4
|
import Icon from "../../Atom/Icon/icon.twig"
|
|
5
5
|
import "./masthead.css"
|
|
6
|
-
import {
|
|
7
|
-
Masthead as MastheadType,
|
|
8
|
-
MastheadModifier,
|
|
9
|
-
} from "@pnx-mixtape/ids-shape"
|
|
6
|
+
import { Masthead as MastheadType, MastheadModifier } from "@pnx-mixtape/ids-shape"
|
|
10
7
|
import { Icons } from "../../enums"
|
|
11
8
|
|
|
12
9
|
const meta: Meta<MastheadType> = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`Layout/Masthead Light smoke-test 1`] = `
|
|
4
4
|
<div class="mx-page default">
|
|
@@ -77,14 +77,14 @@ exports[`Layout/Masthead WithLinks smoke-test 1`] = `
|
|
|
77
77
|
aria-label="Additional links"
|
|
78
78
|
>
|
|
79
79
|
<a href="#">
|
|
80
|
-
<span class="mx-icon mx-icon--user
|
|
80
|
+
<span class="mx-icon mx-icon--user">
|
|
81
81
|
</span>
|
|
82
82
|
<span>
|
|
83
83
|
Create account
|
|
84
84
|
</span>
|
|
85
85
|
</a>
|
|
86
86
|
<a href="#">
|
|
87
|
-
<span class="mx-icon mx-icon--login
|
|
87
|
+
<span class="mx-icon mx-icon--login">
|
|
88
88
|
</span>
|
|
89
89
|
<span>
|
|
90
90
|
Log in
|
|
@@ -18,8 +18,8 @@ const meta: Meta<typeof Component> = {
|
|
|
18
18
|
Always put your best foot forward.
|
|
19
19
|
</Heading>
|
|
20
20
|
<Text modifier={TextStyles.XL}>
|
|
21
|
-
Make the most of the opportunity by encouraging an action and keeping
|
|
22
|
-
|
|
21
|
+
Make the most of the opportunity by encouraging an action and keeping your copy clear and
|
|
22
|
+
concise.
|
|
23
23
|
</Text>
|
|
24
24
|
</HeroBanner>
|
|
25
25
|
),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`Layout/Page Page smoke-test 1`] = `
|
|
4
4
|
<div class="mx-page">
|
|
@@ -15,12 +15,12 @@ exports[`Layout/Page Page smoke-test 1`] = `
|
|
|
15
15
|
</a>
|
|
16
16
|
</div>
|
|
17
17
|
<div class="mx-header__main">
|
|
18
|
-
<div id="
|
|
18
|
+
<div id="_r_0_"
|
|
19
19
|
class="mx-header__nav"
|
|
20
20
|
>
|
|
21
21
|
<nav class="mx-nav mx-nav--dropdown"
|
|
22
22
|
aria-label="Primary Navigation"
|
|
23
|
-
id="
|
|
23
|
+
id="_r_0_"
|
|
24
24
|
>
|
|
25
25
|
<ul class="mx-nav__level-1">
|
|
26
26
|
<li class="mx-nav__has-subnav">
|
package/src/Layout/Page/page.css
CHANGED
|
@@ -23,11 +23,7 @@
|
|
|
23
23
|
var(--container) [container-end]
|
|
24
24
|
var(--full) [full-end];
|
|
25
25
|
|
|
26
|
-
&
|
|
27
|
-
> :where(
|
|
28
|
-
*:not(.mx-page, [class*="mx-background--"]),
|
|
29
|
-
.mx-background--box
|
|
30
|
-
) {
|
|
26
|
+
& > :where(*:not(.mx-page, [class*="mx-background--"]), .mx-background--box) {
|
|
31
27
|
grid-column: var(--grid-column, container);
|
|
32
28
|
}
|
|
33
29
|
|
|
@@ -37,11 +33,7 @@
|
|
|
37
33
|
display: grid;
|
|
38
34
|
grid-template-columns: subgrid;
|
|
39
35
|
|
|
40
|
-
&
|
|
41
|
-
> :where(
|
|
42
|
-
*:not(.mx-page, [class*="mx-background--"]),
|
|
43
|
-
.mx-background--box
|
|
44
|
-
) {
|
|
36
|
+
& > :where(*:not(.mx-page, [class*="mx-background--"]), .mx-background--box) {
|
|
45
37
|
grid-column: var(--grid-column, container);
|
|
46
38
|
}
|
|
47
39
|
}
|