@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,5 +1,4 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/html-vite"
|
|
2
|
-
import { Page } from "../../../.storybook/decorators"
|
|
3
2
|
import Component from "./hero-banner.twig"
|
|
4
3
|
import "./hero-banner.css"
|
|
5
4
|
import {
|
|
@@ -18,28 +17,97 @@ import Icon from "../../Atom/Icon/icon.twig"
|
|
|
18
17
|
// css
|
|
19
18
|
import "../LinkList/link-list.css"
|
|
20
19
|
|
|
20
|
+
/**
|
|
21
|
+
* Hero Banners are primary used to display the page title.
|
|
22
|
+
*/
|
|
21
23
|
const meta: Meta<HeroBannerType> = {
|
|
22
24
|
tags: ["autodocs", "ids-mvp"],
|
|
23
25
|
component: Component,
|
|
24
26
|
args: {
|
|
27
|
+
title: Heading({
|
|
28
|
+
title: "Hero banner title",
|
|
29
|
+
as: HeadingTypes.ONE,
|
|
30
|
+
}),
|
|
25
31
|
subtitle:
|
|
26
32
|
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
|
27
33
|
image: Image({
|
|
28
34
|
src: "https://picsum.photos/id/56/558/418?grayscale",
|
|
29
35
|
alt: "Blurry bubbles",
|
|
30
36
|
}),
|
|
31
|
-
|
|
32
|
-
title: "Hero banner title",
|
|
33
|
-
as: HeadingTypes.ONE,
|
|
34
|
-
}),
|
|
37
|
+
modifiers: [HeroBannerModifier.WHITE],
|
|
35
38
|
},
|
|
36
39
|
argTypes: {
|
|
37
40
|
modifiers: {
|
|
41
|
+
description: "Controls the background colour",
|
|
38
42
|
options: Object.values(HeroBannerModifier),
|
|
39
|
-
control: "
|
|
43
|
+
control: "check",
|
|
44
|
+
table: {
|
|
45
|
+
defaultValue: { summary: HeroBannerModifier.WHITE },
|
|
46
|
+
type: { summary: "enum" },
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
image: {
|
|
50
|
+
description: "Optional [Image](/?path=/docs/atom-image--docs) component.",
|
|
51
|
+
control: "text",
|
|
52
|
+
table: {
|
|
53
|
+
type: { summary: "Image" },
|
|
54
|
+
subcategory: "Hero content",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
subtitle: {
|
|
58
|
+
description: "Content that is displayed in the `lede` style.",
|
|
59
|
+
control: "text",
|
|
60
|
+
table: {
|
|
61
|
+
type: { summary: "WysiwygText" },
|
|
62
|
+
subcategory: "Hero content",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
title: {
|
|
66
|
+
description:
|
|
67
|
+
"A [Heading](/?path=/docs/atom-heading--docs) component, should be H1 if used as the page title.",
|
|
68
|
+
control: "text",
|
|
69
|
+
type: {
|
|
70
|
+
name: "string",
|
|
71
|
+
required: true,
|
|
72
|
+
},
|
|
73
|
+
table: {
|
|
74
|
+
type: { summary: "Heading" },
|
|
75
|
+
subcategory: "Hero content",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
content: {
|
|
79
|
+
description: "Content.",
|
|
80
|
+
control: "text",
|
|
81
|
+
table: {
|
|
82
|
+
type: { summary: "WysiwygText" },
|
|
83
|
+
subcategory: "Hero content",
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
link: {
|
|
87
|
+
description:
|
|
88
|
+
"Optional content [Link](/?path=/docs/atom-link--docs) or [Button](/?path=/docs/atom-button--docs).",
|
|
89
|
+
control: "text",
|
|
90
|
+
table: {
|
|
91
|
+
type: { summary: "Link | Button" },
|
|
92
|
+
subcategory: "Hero content",
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
linkList: {
|
|
96
|
+
description: "Optional [LinkList](/?path=/docs/component-linklist--docs).",
|
|
97
|
+
control: "text",
|
|
98
|
+
table: {
|
|
99
|
+
type: { summary: "LinkList" },
|
|
100
|
+
subcategory: "Hero content",
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
highlight: {
|
|
104
|
+
description: "Makes a slightly larger hero, usually reserved for home pages.",
|
|
105
|
+
type: "boolean",
|
|
106
|
+
table: {
|
|
107
|
+
defaultValue: { summary: "false" },
|
|
108
|
+
},
|
|
40
109
|
},
|
|
41
110
|
},
|
|
42
|
-
decorators: [Page],
|
|
43
111
|
}
|
|
44
112
|
|
|
45
113
|
export default meta
|
|
@@ -47,6 +115,9 @@ type Story = StoryObj<HeroBannerType>
|
|
|
47
115
|
|
|
48
116
|
export const HeroBanner: Story = {}
|
|
49
117
|
|
|
118
|
+
/**
|
|
119
|
+
* Highlight is often reserved for the home or campaign type pages.
|
|
120
|
+
*/
|
|
50
121
|
export const Highlight: Story = {
|
|
51
122
|
args: {
|
|
52
123
|
highlight: true,
|
|
@@ -59,12 +130,18 @@ export const Highlight: Story = {
|
|
|
59
130
|
},
|
|
60
131
|
}
|
|
61
132
|
|
|
133
|
+
/**
|
|
134
|
+
* The image is optional.
|
|
135
|
+
*/
|
|
62
136
|
export const WithoutImage: Story = {
|
|
63
137
|
args: {
|
|
64
138
|
image: null,
|
|
65
139
|
},
|
|
66
140
|
}
|
|
67
141
|
|
|
142
|
+
/**
|
|
143
|
+
* A [LinkList](/?path=/docs/component-linklist--docs) component is useful for displaying popular links. It currently cannot be used with Image.
|
|
144
|
+
*/
|
|
68
145
|
export const WithLinkList: Story = {
|
|
69
146
|
args: {
|
|
70
147
|
link: null,
|
|
@@ -17,8 +17,8 @@ const meta: Meta<typeof Component> = {
|
|
|
17
17
|
Always put your best foot forward.
|
|
18
18
|
</Heading>
|
|
19
19
|
<Text modifier={TextStyles.XL}>
|
|
20
|
-
Make the most of the opportunity by encouraging an action and keeping
|
|
21
|
-
|
|
20
|
+
Make the most of the opportunity by encouraging an action and keeping your copy clear and
|
|
21
|
+
concise.
|
|
22
22
|
</Text>
|
|
23
23
|
</>
|
|
24
24
|
),
|
|
@@ -39,8 +39,8 @@ export const Hero: Story = {
|
|
|
39
39
|
Always put your best foot forward.
|
|
40
40
|
</Heading>
|
|
41
41
|
<Text modifier={TextStyles.XL}>
|
|
42
|
-
Make the most of the opportunity by encouraging an action and keeping
|
|
43
|
-
|
|
42
|
+
Make the most of the opportunity by encouraging an action and keeping your copy clear and
|
|
43
|
+
concise.
|
|
44
44
|
</Text>
|
|
45
45
|
<Button modifiers={[ButtonModifiers.DARK]}>Button</Button>
|
|
46
46
|
</>
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`Component/HeroBanner HeroBanner smoke-test 1`] = `
|
|
4
4
|
<div class="mx-page default">
|
|
5
|
-
<div class="mx-
|
|
6
|
-
<div class="mx-hero-
|
|
7
|
-
<div class="mx-hero-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</picture>
|
|
22
|
-
</div>
|
|
5
|
+
<div class="mx-hero-banner">
|
|
6
|
+
<div class="mx-hero-banner__inner">
|
|
7
|
+
<div class="mx-hero-banner__content mx-vertical-flow-flex mx-section--xl">
|
|
8
|
+
<h1>
|
|
9
|
+
Hero banner title
|
|
10
|
+
</h1>
|
|
11
|
+
<p class="mx-text--lede">
|
|
12
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
13
|
+
</p>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="mx-hero-banner__aside mx-hero-banner__aside-image">
|
|
16
|
+
<picture>
|
|
17
|
+
<img src="https://picsum.photos/id/56/558/418?grayscale"
|
|
18
|
+
alt="Blurry bubbles"
|
|
19
|
+
>
|
|
20
|
+
</picture>
|
|
23
21
|
</div>
|
|
24
22
|
</div>
|
|
25
23
|
</div>
|
|
@@ -28,31 +26,29 @@ exports[`Component/HeroBanner HeroBanner smoke-test 1`] = `
|
|
|
28
26
|
|
|
29
27
|
exports[`Component/HeroBanner Highlight smoke-test 1`] = `
|
|
30
28
|
<div class="mx-page default">
|
|
31
|
-
<div class="mx-
|
|
32
|
-
<div class="mx-hero-
|
|
33
|
-
<div class="mx-hero-
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
<div class="mx-hero-banner mx-hero-banner--hero mx-background--primary">
|
|
30
|
+
<div class="mx-hero-banner__inner">
|
|
31
|
+
<div class="mx-hero-banner__content mx-vertical-flow-flex mx-section--xl">
|
|
32
|
+
<h1>
|
|
33
|
+
Hero banner title
|
|
34
|
+
</h1>
|
|
35
|
+
<p class="mx-text--lede">
|
|
36
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
37
|
+
</p>
|
|
38
|
+
<a class="mx-link--more"
|
|
39
|
+
href="#"
|
|
40
|
+
>
|
|
41
|
+
<span>
|
|
42
|
+
Find out more
|
|
43
|
+
</span>
|
|
44
|
+
</a>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="mx-hero-banner__aside mx-hero-banner__aside-image">
|
|
47
|
+
<picture>
|
|
48
|
+
<img src="https://picsum.photos/id/56/558/418?grayscale"
|
|
49
|
+
alt="Blurry bubbles"
|
|
43
50
|
>
|
|
44
|
-
|
|
45
|
-
Find out more
|
|
46
|
-
</span>
|
|
47
|
-
</a>
|
|
48
|
-
</div>
|
|
49
|
-
<div class="mx-hero-banner__aside mx-hero-banner__aside-image">
|
|
50
|
-
<picture>
|
|
51
|
-
<img src="https://picsum.photos/id/56/558/418?grayscale"
|
|
52
|
-
alt="Blurry bubbles"
|
|
53
|
-
>
|
|
54
|
-
</picture>
|
|
55
|
-
</div>
|
|
51
|
+
</picture>
|
|
56
52
|
</div>
|
|
57
53
|
</div>
|
|
58
54
|
</div>
|
|
@@ -61,51 +57,49 @@ exports[`Component/HeroBanner Highlight smoke-test 1`] = `
|
|
|
61
57
|
|
|
62
58
|
exports[`Component/HeroBanner WithLinkList smoke-test 1`] = `
|
|
63
59
|
<div class="mx-page default">
|
|
64
|
-
<div class="mx-
|
|
65
|
-
<div class="mx-hero-
|
|
66
|
-
<div class="mx-hero-
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<
|
|
80
|
-
<
|
|
81
|
-
<
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
<
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
</ul>
|
|
108
|
-
</div>
|
|
60
|
+
<div class="mx-hero-banner">
|
|
61
|
+
<div class="mx-hero-banner__inner">
|
|
62
|
+
<div class="mx-hero-banner__content mx-vertical-flow-flex mx-section--xl">
|
|
63
|
+
<h1>
|
|
64
|
+
Hero banner title
|
|
65
|
+
</h1>
|
|
66
|
+
<p class="mx-text--lede">
|
|
67
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
68
|
+
</p>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="mx-hero-banner__aside mx-section--xl">
|
|
71
|
+
<h2 class="mx-heading--m">
|
|
72
|
+
Popular links
|
|
73
|
+
</h2>
|
|
74
|
+
<ul class="mx-link-list">
|
|
75
|
+
<li>
|
|
76
|
+
<a href="#">
|
|
77
|
+
<span>
|
|
78
|
+
Link one
|
|
79
|
+
</span>
|
|
80
|
+
<span class="mx-icon mx-icon--chevron-right">
|
|
81
|
+
</span>
|
|
82
|
+
</a>
|
|
83
|
+
</li>
|
|
84
|
+
<li>
|
|
85
|
+
<a href="#">
|
|
86
|
+
<span>
|
|
87
|
+
Link two
|
|
88
|
+
</span>
|
|
89
|
+
<span class="mx-icon mx-icon--chevron-right">
|
|
90
|
+
</span>
|
|
91
|
+
</a>
|
|
92
|
+
</li>
|
|
93
|
+
<li>
|
|
94
|
+
<a href="#">
|
|
95
|
+
<span>
|
|
96
|
+
Link three
|
|
97
|
+
</span>
|
|
98
|
+
<span class="mx-icon mx-icon--chevron-right">
|
|
99
|
+
</span>
|
|
100
|
+
</a>
|
|
101
|
+
</li>
|
|
102
|
+
</ul>
|
|
109
103
|
</div>
|
|
110
104
|
</div>
|
|
111
105
|
</div>
|
|
@@ -114,17 +108,15 @@ exports[`Component/HeroBanner WithLinkList smoke-test 1`] = `
|
|
|
114
108
|
|
|
115
109
|
exports[`Component/HeroBanner WithoutImage smoke-test 1`] = `
|
|
116
110
|
<div class="mx-page default">
|
|
117
|
-
<div class="mx-
|
|
118
|
-
<div class="mx-hero-
|
|
119
|
-
<div class="mx-hero-
|
|
120
|
-
<
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
</p>
|
|
127
|
-
</div>
|
|
111
|
+
<div class="mx-hero-banner">
|
|
112
|
+
<div class="mx-hero-banner__inner">
|
|
113
|
+
<div class="mx-hero-banner__content mx-vertical-flow-flex mx-section--xl">
|
|
114
|
+
<h1>
|
|
115
|
+
Hero banner title
|
|
116
|
+
</h1>
|
|
117
|
+
<p class="mx-text--lede">
|
|
118
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
119
|
+
</p>
|
|
128
120
|
</div>
|
|
129
121
|
</div>
|
|
130
122
|
</div>
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
HeadingTypes,
|
|
8
8
|
HeroSearch as HeroSearchType,
|
|
9
9
|
} from "@pnx-mixtape/ids-shape"
|
|
10
|
+
import HeroBanner from "../HeroBanner/HeroBanner.stories"
|
|
10
11
|
import { Icons } from "../../enums"
|
|
11
12
|
|
|
12
13
|
// Deps.
|
|
@@ -18,6 +19,9 @@ import SearchForm from "../../Form/Search/search-form.twig"
|
|
|
18
19
|
// css
|
|
19
20
|
import "../LinkList/link-list.css"
|
|
20
21
|
|
|
22
|
+
/**
|
|
23
|
+
* The Hero Search component extends the [HeroBanner](/?path=/docs/component-herobanner--docs) with a search form.
|
|
24
|
+
*/
|
|
21
25
|
const meta: Meta<HeroSearchType> = {
|
|
22
26
|
tags: ["autodocs", "ids-mvp"],
|
|
23
27
|
component: Component,
|
|
@@ -32,11 +36,20 @@ const meta: Meta<HeroSearchType> = {
|
|
|
32
36
|
action: "#search",
|
|
33
37
|
id: "search-keyword",
|
|
34
38
|
}),
|
|
39
|
+
modifiers: [HeroBannerModifier.WHITE],
|
|
35
40
|
},
|
|
36
41
|
argTypes: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
...HeroBanner.argTypes,
|
|
43
|
+
search: {
|
|
44
|
+
description: "The [SearchForm](/?path=/docs/form-search--docs) component.",
|
|
45
|
+
control: "text",
|
|
46
|
+
table: {
|
|
47
|
+
type: { summary: "SearchForm" },
|
|
48
|
+
},
|
|
49
|
+
type: {
|
|
50
|
+
name: "string",
|
|
51
|
+
required: true,
|
|
52
|
+
},
|
|
40
53
|
},
|
|
41
54
|
},
|
|
42
55
|
decorators: [Page],
|
|
@@ -45,8 +58,11 @@ const meta: Meta<HeroSearchType> = {
|
|
|
45
58
|
export default meta
|
|
46
59
|
type Story = StoryObj<HeroSearchType>
|
|
47
60
|
|
|
48
|
-
export const
|
|
61
|
+
export const HeroSearch: Story = {}
|
|
49
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Highlight is often reserved for the home or campaign type pages.
|
|
65
|
+
*/
|
|
50
66
|
export const Highlight: Story = {
|
|
51
67
|
args: {
|
|
52
68
|
highlight: true,
|
|
@@ -54,6 +70,9 @@ export const Highlight: Story = {
|
|
|
54
70
|
},
|
|
55
71
|
}
|
|
56
72
|
|
|
73
|
+
/**
|
|
74
|
+
* A [LinkList](/?path=/docs/component-linklist--docs) component is useful for displaying popular links. It currently cannot be used with Image.
|
|
75
|
+
*/
|
|
57
76
|
export const WithLinkList: Story = {
|
|
58
77
|
args: {
|
|
59
78
|
link: null,
|
|
@@ -16,8 +16,8 @@ const meta: Meta<typeof Component> = {
|
|
|
16
16
|
Always put your best foot forward.
|
|
17
17
|
</Heading>
|
|
18
18
|
<Text modifier={TextStyles.XL}>
|
|
19
|
-
Make the most of the opportunity by encouraging an action and keeping
|
|
20
|
-
|
|
19
|
+
Make the most of the opportunity by encouraging an action and keeping your copy clear and
|
|
20
|
+
concise.
|
|
21
21
|
</Text>
|
|
22
22
|
</>
|
|
23
23
|
),
|
|
@@ -38,8 +38,8 @@ export const Hero: Story = {
|
|
|
38
38
|
Always put your best foot forward.
|
|
39
39
|
</Heading>
|
|
40
40
|
<Text modifier={TextStyles.XL}>
|
|
41
|
-
Make the most of the opportunity by encouraging an action and keeping
|
|
42
|
-
|
|
41
|
+
Make the most of the opportunity by encouraging an action and keeping your copy clear and
|
|
42
|
+
concise.
|
|
43
43
|
</Text>
|
|
44
44
|
<Button modifiers={[ButtonModifiers.DARK]}>Button</Button>
|
|
45
45
|
</>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
|
-
exports[`Component/HeroSearch
|
|
3
|
+
exports[`Component/HeroSearch HeroSearch smoke-test 1`] = `
|
|
4
4
|
<div class="mx-page default">
|
|
5
5
|
<div class="mx-page default">
|
|
6
|
-
<div class="mx-hero-banner mx-hero-search
|
|
6
|
+
<div class="mx-hero-banner mx-hero-search">
|
|
7
7
|
<div class="mx-hero-banner__inner">
|
|
8
8
|
<div class="mx-hero-banner__content mx-vertical-flow-flex mx-section--xl">
|
|
9
9
|
<h1>
|
|
@@ -85,7 +85,7 @@ exports[`Component/HeroSearch Highlight smoke-test 1`] = `
|
|
|
85
85
|
exports[`Component/HeroSearch WithLinkList smoke-test 1`] = `
|
|
86
86
|
<div class="mx-page default">
|
|
87
87
|
<div class="mx-page default">
|
|
88
|
-
<div class="mx-hero-banner mx-hero-search
|
|
88
|
+
<div class="mx-hero-banner mx-hero-search">
|
|
89
89
|
<div class="mx-hero-banner__inner">
|
|
90
90
|
<div class="mx-hero-banner__content mx-vertical-flow-flex mx-section--xl">
|
|
91
91
|
<h1>
|
|
@@ -118,7 +118,7 @@ exports[`Component/HeroSearch WithLinkList smoke-test 1`] = `
|
|
|
118
118
|
</form>
|
|
119
119
|
</div>
|
|
120
120
|
<div class="mx-hero-banner__aside mx-section--xl">
|
|
121
|
-
<h2 class="
|
|
121
|
+
<h2 class="mx-heading--m">
|
|
122
122
|
Popular searches
|
|
123
123
|
</h2>
|
|
124
124
|
<ul class="mx-link-list">
|
|
@@ -127,7 +127,7 @@ exports[`Component/HeroSearch WithLinkList smoke-test 1`] = `
|
|
|
127
127
|
<span>
|
|
128
128
|
Link one
|
|
129
129
|
</span>
|
|
130
|
-
<span class="mx-icon mx-icon--chevron-right
|
|
130
|
+
<span class="mx-icon mx-icon--chevron-right">
|
|
131
131
|
</span>
|
|
132
132
|
</a>
|
|
133
133
|
</li>
|
|
@@ -136,7 +136,7 @@ exports[`Component/HeroSearch WithLinkList smoke-test 1`] = `
|
|
|
136
136
|
<span>
|
|
137
137
|
Link two
|
|
138
138
|
</span>
|
|
139
|
-
<span class="mx-icon mx-icon--chevron-right
|
|
139
|
+
<span class="mx-icon mx-icon--chevron-right">
|
|
140
140
|
</span>
|
|
141
141
|
</a>
|
|
142
142
|
</li>
|
|
@@ -145,7 +145,7 @@ exports[`Component/HeroSearch WithLinkList smoke-test 1`] = `
|
|
|
145
145
|
<span>
|
|
146
146
|
Link three
|
|
147
147
|
</span>
|
|
148
|
-
<span class="mx-icon mx-icon--chevron-right
|
|
148
|
+
<span class="mx-icon mx-icon--chevron-right">
|
|
149
149
|
</span>
|
|
150
150
|
</a>
|
|
151
151
|
</li>
|
|
@@ -154,7 +154,7 @@ exports[`Component/HeroSearch WithLinkList smoke-test 1`] = `
|
|
|
154
154
|
<span>
|
|
155
155
|
Link four
|
|
156
156
|
</span>
|
|
157
|
-
<span class="mx-icon mx-icon--chevron-right
|
|
157
|
+
<span class="mx-icon mx-icon--chevron-right">
|
|
158
158
|
</span>
|
|
159
159
|
</a>
|
|
160
160
|
</li>
|
|
@@ -163,7 +163,7 @@ exports[`Component/HeroSearch WithLinkList smoke-test 1`] = `
|
|
|
163
163
|
<span>
|
|
164
164
|
Link five
|
|
165
165
|
</span>
|
|
166
|
-
<span class="mx-icon mx-icon--chevron-right
|
|
166
|
+
<span class="mx-icon mx-icon--chevron-right">
|
|
167
167
|
</span>
|
|
168
168
|
</a>
|
|
169
169
|
</li>
|
|
@@ -7,18 +7,14 @@ import {
|
|
|
7
7
|
InPageAlert as InPageAlertType,
|
|
8
8
|
InPageAlertTypes,
|
|
9
9
|
} from "@pnx-mixtape/ids-shape"
|
|
10
|
+
import Heading from "../../Atom/Heading/heading.twig"
|
|
10
11
|
|
|
12
|
+
/**
|
|
13
|
+
* In Page Alerts to highlight important information or notices.
|
|
14
|
+
*/
|
|
11
15
|
const meta: Meta<InPageAlertType> = {
|
|
12
16
|
tags: ["autodocs"],
|
|
13
17
|
component: Component,
|
|
14
|
-
argTypes: {
|
|
15
|
-
type: { options: Object.values(InPageAlertTypes), control: "radio" },
|
|
16
|
-
// @ts-expect-error The controls follow the shape
|
|
17
|
-
"title.title": { control: "text" },
|
|
18
|
-
"title.as": { options: Object.values(HeadingTypes), control: "select" },
|
|
19
|
-
"link.href": { control: "text" },
|
|
20
|
-
"link.title": { control: "text" },
|
|
21
|
-
},
|
|
22
18
|
args: {
|
|
23
19
|
content: "Something happened that requires your attention",
|
|
24
20
|
link: Link({
|
|
@@ -26,9 +22,81 @@ const meta: Meta<InPageAlertType> = {
|
|
|
26
22
|
href: "#",
|
|
27
23
|
}),
|
|
28
24
|
},
|
|
25
|
+
argTypes: {
|
|
26
|
+
type: {
|
|
27
|
+
options: Object.values(InPageAlertTypes),
|
|
28
|
+
control: "radio",
|
|
29
|
+
table: {
|
|
30
|
+
type: { summary: "enum" },
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
title: {
|
|
34
|
+
description:
|
|
35
|
+
"Optional content [Heading](/?path=/docs/atom-heading--docs). It is helpful to use a smaller heading modifier.",
|
|
36
|
+
control: "text",
|
|
37
|
+
table: {
|
|
38
|
+
type: { summary: "Heading" },
|
|
39
|
+
subcategory: "Alert content",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
content: {
|
|
43
|
+
description: "Content.",
|
|
44
|
+
control: "text",
|
|
45
|
+
type: {
|
|
46
|
+
name: "string",
|
|
47
|
+
required: true,
|
|
48
|
+
},
|
|
49
|
+
table: {
|
|
50
|
+
type: { summary: "WysiwygText" },
|
|
51
|
+
subcategory: "Alert content",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
link: {
|
|
55
|
+
description: "Optional content [Link](/?path=/docs/atom-link--docs).",
|
|
56
|
+
control: "text",
|
|
57
|
+
table: {
|
|
58
|
+
type: { summary: "Link" },
|
|
59
|
+
subcategory: "Alert content",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
29
63
|
}
|
|
30
64
|
|
|
31
65
|
export default meta
|
|
32
66
|
type Story = StoryObj<InPageAlertType>
|
|
33
67
|
|
|
34
68
|
export const InPageAlert: Story = {}
|
|
69
|
+
|
|
70
|
+
export const WithHeading: Story = {
|
|
71
|
+
args: {
|
|
72
|
+
title: Heading({
|
|
73
|
+
title: "In page alert",
|
|
74
|
+
as: HeadingTypes.TWO,
|
|
75
|
+
modifiers: [HeadingTypes.FOUR],
|
|
76
|
+
}),
|
|
77
|
+
},
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export const Info: Story = {
|
|
81
|
+
args: {
|
|
82
|
+
type: InPageAlertTypes.INFO,
|
|
83
|
+
},
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export const Success: Story = {
|
|
87
|
+
args: {
|
|
88
|
+
type: InPageAlertTypes.SUCCESS,
|
|
89
|
+
},
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export const Warning: Story = {
|
|
93
|
+
args: {
|
|
94
|
+
type: InPageAlertTypes.WARNING,
|
|
95
|
+
},
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export const Error: Story = {
|
|
99
|
+
args: {
|
|
100
|
+
type: InPageAlertTypes.ERROR,
|
|
101
|
+
},
|
|
102
|
+
}
|
|
@@ -9,8 +9,7 @@ const meta: Meta<typeof Component> = {
|
|
|
9
9
|
args: {
|
|
10
10
|
children: (
|
|
11
11
|
<p>
|
|
12
|
-
<b>Something happened.</b> And if you'd like to know what,
|
|
13
|
-
<a href="#">Click here</a>.
|
|
12
|
+
<b>Something happened.</b> And if you'd like to know what, <a href="#">Click here</a>.
|
|
14
13
|
</p>
|
|
15
14
|
),
|
|
16
15
|
},
|