@pnx-mixtape/mxds 0.0.6 → 0.0.7
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/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/__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 +196 -4
- 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/accordion.css +0 -108
- package/dist/build/accordion.entry.js +0 -139
- package/dist/build/accordion.entry.js.map +0 -1
- package/dist/build/base.css +0 -999
- package/dist/build/breadcrumb.css +0 -47
- package/dist/build/button.css +0 -132
- package/dist/build/callout.css +0 -11
- package/dist/build/card.css +0 -136
- package/dist/build/chunks/disclosure-widget-CQLPJ8Ta.js +0 -124
- package/dist/build/chunks/disclosure-widget-CQLPJ8Ta.js.map +0 -1
- package/dist/build/chunks/keyboard-C73DHu0c.js +0 -101
- package/dist/build/chunks/keyboard-C73DHu0c.js.map +0 -1
- package/dist/build/chunks/polyfills-CJ5uTmUJ.js +0 -749
- package/dist/build/chunks/polyfills-CJ5uTmUJ.js.map +0 -1
- package/dist/build/chunks/popover-wbPSyFRj.js +0 -654
- package/dist/build/chunks/popover-wbPSyFRj.js.map +0 -1
- package/dist/build/chunks/utilities-B4YZb689.js +0 -243
- package/dist/build/chunks/utilities-B4YZb689.js.map +0 -1
- package/dist/build/constants.css +0 -120
- package/dist/build/container-grid.css +0 -208
- package/dist/build/content-block.css +0 -23
- package/dist/build/dialog.css +0 -98
- package/dist/build/dialog.entry.js +0 -113
- package/dist/build/dialog.entry.js.map +0 -1
- package/dist/build/drop-menu.css +0 -78
- package/dist/build/drop-menu.entry.js +0 -129
- package/dist/build/drop-menu.entry.js.map +0 -1
- package/dist/build/drupal.css +0 -74
- package/dist/build/footer-menu.css +0 -32
- package/dist/build/footer.css +0 -61
- package/dist/build/form.css +0 -589
- package/dist/build/global-alert.css +0 -60
- package/dist/build/global-alert.entry.js +0 -68
- package/dist/build/global-alert.entry.js.map +0 -1
- package/dist/build/grid.css +0 -200
- package/dist/build/header.css +0 -131
- package/dist/build/header.entry.js +0 -98
- package/dist/build/header.entry.js.map +0 -1
- package/dist/build/hero-banner.css +0 -62
- package/dist/build/icon.css +0 -399
- package/dist/build/in-page-alert.css +0 -94
- package/dist/build/in-page-navigation.css +0 -17
- package/dist/build/in-page-navigation.entry.js +0 -89
- package/dist/build/in-page-navigation.entry.js.map +0 -1
- package/dist/build/link-list.css +0 -72
- package/dist/build/masthead.css +0 -39
- package/dist/build/nav-list.css +0 -26
- package/dist/build/navigation.css +0 -371
- package/dist/build/navigation.entry.js +0 -123
- package/dist/build/navigation.entry.js.map +0 -1
- package/dist/build/page.css +0 -184
- package/dist/build/pagination.css +0 -123
- package/dist/build/section.css +0 -163
- package/dist/build/sidebar.css +0 -105
- package/dist/build/sticky.css +0 -47
- package/dist/build/sticky.entry.js +0 -60
- package/dist/build/sticky.entry.js.map +0 -1
- package/dist/build/tabs.css +0 -106
- package/dist/build/tabs.entry.js +0 -161
- package/dist/build/tabs.entry.js.map +0 -1
- package/dist/build/tag.css +0 -67
- package/dist/build/tiles.css +0 -61
- package/dist/build/utilities.css +0 -175
- 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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnx-mixtape/mxds",
|
|
3
3
|
"description": "The Mixtape Design System",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "concurrently -k -n \"VITE,STORYBOOK\" -c \"#636cff,#ff4785\" \"npm run dev-vite\" \"npm run dev-storybook\"",
|
|
7
7
|
"build": "concurrently -n \"VITE,STORYBOOK\" -c \"#636cff,#ff4785\" \"npm run build-vite\" \"npm run build-storybook\"",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@floating-ui/dom": "^1.6.5",
|
|
34
34
|
"@oddbird/popover-polyfill": "^0.4.3",
|
|
35
|
-
"@pnx-mixtape/ids-shape": "^0.0.
|
|
35
|
+
"@pnx-mixtape/ids-shape": "^0.0.15",
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
37
|
"js-cookie": "^3.0.5",
|
|
38
38
|
"react": "^18.3.1",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/html"
|
|
2
|
-
import Component from "./
|
|
2
|
+
import Component from "./button.twig"
|
|
3
|
+
import Icon from "../Icon/icon.twig"
|
|
3
4
|
import "./button.css"
|
|
4
5
|
import {
|
|
5
6
|
Button as ButtonType,
|
|
@@ -62,8 +63,8 @@ export const Link: Story = {
|
|
|
62
63
|
|
|
63
64
|
export const IconButton: Story = {
|
|
64
65
|
args: {
|
|
65
|
-
iconEnd: {
|
|
66
|
+
iconEnd: Icon({
|
|
66
67
|
icon: Icons.ARROW_RIGHT,
|
|
67
|
-
},
|
|
68
|
+
}),
|
|
68
69
|
},
|
|
69
70
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Button Button smoke-test 1`] = `
|
|
4
|
-
<button class="button"
|
|
4
|
+
<button class="mx-button"
|
|
5
5
|
type="button"
|
|
6
6
|
>
|
|
7
7
|
Button
|
|
@@ -9,7 +9,7 @@ exports[`Atom/Button Button smoke-test 1`] = `
|
|
|
9
9
|
`;
|
|
10
10
|
|
|
11
11
|
exports[`Atom/Button Primary smoke-test 1`] = `
|
|
12
|
-
<button class="button button--dark"
|
|
12
|
+
<button class="mx-button mx-button--dark"
|
|
13
13
|
type="button"
|
|
14
14
|
>
|
|
15
15
|
Button
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
{% for modifier in modifiers %}
|
|
7
7
|
{% set classes = classes|merge([baseClass~"--"~modifier]) %}
|
|
8
8
|
{% endfor %}
|
|
9
|
-
{% set attributes = (attributes
|
|
9
|
+
{% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
|
|
10
10
|
|
|
11
11
|
{% if href %}
|
|
12
12
|
<a{{ attributes}} href="{{ href }}">
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
srOnly ? 'sr-only' : null,
|
|
22
22
|
style ? 'mx-heading--'~style : null,
|
|
23
23
|
] %}
|
|
24
|
-
{% set attributes = (attributes
|
|
24
|
+
{% set attributes = (attributes ?? create_attribute()) %}
|
|
25
|
+
{% if classes|join(" ")|trim() %}
|
|
26
|
+
{% set attributes = attributes.addClass(classes) %}
|
|
27
|
+
{% endif %}
|
|
25
28
|
|
|
26
29
|
<{{ as|default('h2') }} {{ attributes }}>{{ title }}</{{ as|default('h2') }}>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Icon Alignment smoke-test 1`] = `
|
|
4
|
-
<span class="icon icon--arrow-left icon--end">
|
|
4
|
+
<span class="mx-icon mx-icon--arrow-left mx-icon--end">
|
|
5
5
|
Message with icon
|
|
6
6
|
</span>
|
|
7
7
|
`;
|
|
8
8
|
|
|
9
9
|
exports[`Atom/Icon Icon smoke-test 1`] = `
|
|
10
|
-
<span class="icon icon--arrow-right">
|
|
10
|
+
<span class="mx-icon mx-icon--arrow-right">
|
|
11
11
|
</span>
|
|
12
12
|
`;
|
|
13
13
|
|
|
14
14
|
exports[`Atom/Icon WithText smoke-test 1`] = `
|
|
15
|
-
<span class="icon icon--arrow-right">
|
|
15
|
+
<span class="mx-icon mx-icon--arrow-right">
|
|
16
16
|
Message with icon
|
|
17
17
|
</span>
|
|
18
18
|
`;
|
package/src/Atom/Icon/icon.twig
CHANGED
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
rotate ? baseClass~'--'~rotate : null,
|
|
8
8
|
size ? baseClass~'--size-'~size : null,
|
|
9
9
|
] %}
|
|
10
|
-
{% set attributes = (attributes
|
|
10
|
+
{% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
|
|
11
11
|
|
|
12
12
|
<span{{ attributes }}>{{ text }}</span>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/html"
|
|
2
|
-
import Component from "./
|
|
2
|
+
import Component from "./link.twig"
|
|
3
|
+
import Icon from "../Icon/icon.twig"
|
|
3
4
|
import "../_base.css"
|
|
4
5
|
import { Link as LinkType } from "@pnx-mixtape/ids-shape"
|
|
5
6
|
import { Icons } from "../../enums"
|
|
@@ -30,9 +31,9 @@ export const Link: Story = {}
|
|
|
30
31
|
export const More: Story = {
|
|
31
32
|
args: {
|
|
32
33
|
more: true,
|
|
33
|
-
iconEnd: {
|
|
34
|
+
iconEnd: Icon({
|
|
34
35
|
icon: Icons.ARROW_RIGHT,
|
|
35
|
-
},
|
|
36
|
+
}),
|
|
36
37
|
},
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -46,16 +47,16 @@ export const Download: Story = {
|
|
|
46
47
|
args: {
|
|
47
48
|
download: true,
|
|
48
49
|
title: "Download (PDF 12kb)",
|
|
49
|
-
iconStart: {
|
|
50
|
+
iconStart: Icon({
|
|
50
51
|
icon: Icons.DOWNLOAD,
|
|
51
|
-
},
|
|
52
|
+
}),
|
|
52
53
|
},
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
export const IconLink: Story = {
|
|
56
57
|
args: {
|
|
57
|
-
iconStart: {
|
|
58
|
+
iconStart: Icon({
|
|
58
59
|
icon: Icons.LINK,
|
|
59
|
-
},
|
|
60
|
+
}),
|
|
60
61
|
},
|
|
61
62
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Link Download smoke-test 1`] = `
|
|
4
|
-
<a class="mx-link
|
|
4
|
+
<a class="mx-link--download"
|
|
5
5
|
href="#"
|
|
6
6
|
>
|
|
7
7
|
<span class="mx-icon mx-icon--download ">
|
|
@@ -13,7 +13,7 @@ exports[`Atom/Link Download smoke-test 1`] = `
|
|
|
13
13
|
`;
|
|
14
14
|
|
|
15
15
|
exports[`Atom/Link External smoke-test 1`] = `
|
|
16
|
-
<a class="mx-link
|
|
16
|
+
<a class="mx-link--external"
|
|
17
17
|
href="#"
|
|
18
18
|
>
|
|
19
19
|
<span>
|
|
@@ -23,9 +23,7 @@ exports[`Atom/Link External smoke-test 1`] = `
|
|
|
23
23
|
`;
|
|
24
24
|
|
|
25
25
|
exports[`Atom/Link IconLink smoke-test 1`] = `
|
|
26
|
-
<a
|
|
27
|
-
href="#"
|
|
28
|
-
>
|
|
26
|
+
<a href="#">
|
|
29
27
|
<span class="mx-icon mx-icon--link ">
|
|
30
28
|
</span>
|
|
31
29
|
<span>
|
|
@@ -35,9 +33,7 @@ exports[`Atom/Link IconLink smoke-test 1`] = `
|
|
|
35
33
|
`;
|
|
36
34
|
|
|
37
35
|
exports[`Atom/Link Link smoke-test 1`] = `
|
|
38
|
-
<a
|
|
39
|
-
href="#"
|
|
40
|
-
>
|
|
36
|
+
<a href="#">
|
|
41
37
|
<span>
|
|
42
38
|
Hyperlink
|
|
43
39
|
</span>
|
|
@@ -45,7 +41,7 @@ exports[`Atom/Link Link smoke-test 1`] = `
|
|
|
45
41
|
`;
|
|
46
42
|
|
|
47
43
|
exports[`Atom/Link More smoke-test 1`] = `
|
|
48
|
-
<a class="mx-link
|
|
44
|
+
<a class="mx-link--more"
|
|
49
45
|
href="#"
|
|
50
46
|
>
|
|
51
47
|
<span>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Link External smoke-test 1`] = `
|
|
4
4
|
<a href="http://example.com"
|
|
5
|
-
class="link link--external"
|
|
5
|
+
class="mx-link mx-link--external"
|
|
6
6
|
>
|
|
7
7
|
Link
|
|
8
8
|
</a>
|
|
@@ -10,7 +10,7 @@ exports[`Atom/Link External smoke-test 1`] = `
|
|
|
10
10
|
|
|
11
11
|
exports[`Atom/Link Link smoke-test 1`] = `
|
|
12
12
|
<a href="http://example.com"
|
|
13
|
-
class="link"
|
|
13
|
+
class="mx-link"
|
|
14
14
|
>
|
|
15
15
|
Link
|
|
16
16
|
</a>
|
|
@@ -18,7 +18,7 @@ exports[`Atom/Link Link smoke-test 1`] = `
|
|
|
18
18
|
|
|
19
19
|
exports[`Atom/Link More smoke-test 1`] = `
|
|
20
20
|
<a href="http://example.com"
|
|
21
|
-
class="link link--more"
|
|
21
|
+
class="mx-link mx-link--more"
|
|
22
22
|
>
|
|
23
23
|
Link
|
|
24
24
|
</a>
|
package/src/Atom/Link/_links.css
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
@layer design-system.defaults {
|
|
2
|
-
|
|
3
|
-
.mx-rich-text a:where([href]:not([class])) {
|
|
2
|
+
a[href] {
|
|
4
3
|
color: var(--link-colour, var(--colour-primary));
|
|
5
4
|
transition: color 0.2s var(--ease);
|
|
5
|
+
text-decoration: underline;
|
|
6
|
+
text-decoration-thickness: max(0.08em, 1px);
|
|
7
|
+
text-decoration-skip-ink: auto;
|
|
8
|
+
text-underline-offset: 0.15em;
|
|
6
9
|
|
|
7
10
|
&:focus-visible {
|
|
8
11
|
outline-offset: var(--spacing-xxxs);
|
|
9
12
|
}
|
|
13
|
+
|
|
14
|
+
&:hover,
|
|
15
|
+
&:active {
|
|
16
|
+
text-underline-offset: 0.2em;
|
|
17
|
+
text-decoration-thickness: max(0.09em, 2px);
|
|
18
|
+
}
|
|
10
19
|
}
|
|
11
20
|
|
|
12
21
|
.mx-link--external {
|
|
@@ -32,6 +41,7 @@
|
|
|
32
41
|
}
|
|
33
42
|
|
|
34
43
|
.mx-link--more {
|
|
44
|
+
display: inline-flex;
|
|
35
45
|
font-weight: var(--font-weight-bold);
|
|
36
46
|
|
|
37
47
|
& .mx-icon {
|
package/src/Atom/Link/link.twig
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{% set baseClass = 'mx-link' %}
|
|
2
2
|
{% set classes = [
|
|
3
|
-
baseClass,
|
|
4
3
|
more ? baseClass~'--more' : null,
|
|
5
4
|
external ? baseClass~'--external' : null,
|
|
6
5
|
download ? baseClass~'--download' : null,
|
|
7
|
-
] %}
|
|
8
|
-
{% set attributes = (attributes
|
|
6
|
+
]|join(" ")|trim() %}
|
|
7
|
+
{% set attributes = (attributes ?? create_attribute()) %}
|
|
8
|
+
{% if classes %}
|
|
9
|
+
{% set attributes = attributes.addClass(classes) %}
|
|
10
|
+
{% endif %}
|
|
9
11
|
|
|
10
12
|
<a{{ attributes }} href="{{ href }}"{% if current %} aria-current="page"{% endif %}>
|
|
11
13
|
{{ iconStart }}
|
|
12
|
-
<span>{{ title }}</span>
|
|
14
|
+
<span{% if iconOnly %} class="sr-only"{% endif %}>{{ title }}</span>
|
|
13
15
|
{{ iconEnd }}
|
|
14
16
|
</a>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/html"
|
|
2
|
-
import Component from "./
|
|
2
|
+
import Component from "./media.twig"
|
|
3
|
+
import Video from "../Video/video.twig"
|
|
4
|
+
import Image from "../Image/image.twig"
|
|
3
5
|
import "../_base.css"
|
|
4
6
|
import { Media as MediaType, MediaAlignmentTypes } from "@pnx-mixtape/ids-shape"
|
|
5
7
|
|
|
@@ -7,10 +9,10 @@ const meta: Meta<MediaType> = {
|
|
|
7
9
|
tags: ["autodocs", "ids-mvp"],
|
|
8
10
|
component: Component,
|
|
9
11
|
args: {
|
|
10
|
-
item: {
|
|
12
|
+
item: Image({
|
|
11
13
|
src: "https://picsum.photos/id/56/558/418?grayscale",
|
|
12
14
|
alt: "Some blurry bubble image",
|
|
13
|
-
},
|
|
15
|
+
}),
|
|
14
16
|
caption: "A picsum image",
|
|
15
17
|
type: "image",
|
|
16
18
|
},
|
|
@@ -26,17 +28,15 @@ const meta: Meta<MediaType> = {
|
|
|
26
28
|
export default meta
|
|
27
29
|
type Story = StoryObj<MediaType>
|
|
28
30
|
|
|
29
|
-
export const Media: Story = {
|
|
30
|
-
args: {},
|
|
31
|
-
}
|
|
31
|
+
export const Media: Story = {}
|
|
32
32
|
|
|
33
|
-
export const
|
|
33
|
+
export const RemoteVideo: Story = {
|
|
34
34
|
args: {
|
|
35
35
|
type: "video",
|
|
36
36
|
caption: "A remote video",
|
|
37
|
-
item: {
|
|
37
|
+
item: Video({
|
|
38
38
|
src: "https://www.youtube.com/embed/NpEaa2P7qZI",
|
|
39
39
|
title: "Something from youtube",
|
|
40
|
-
},
|
|
40
|
+
}),
|
|
41
41
|
},
|
|
42
42
|
}
|
|
@@ -13,7 +13,7 @@ exports[`Atom/Media Media smoke-test 1`] = `
|
|
|
13
13
|
</figure>
|
|
14
14
|
`;
|
|
15
15
|
|
|
16
|
-
exports[`Atom/Media
|
|
16
|
+
exports[`Atom/Media RemoteVideo smoke-test 1`] = `
|
|
17
17
|
<figure class="mx-media mx-media--video ">
|
|
18
18
|
<figure class="mx-video">
|
|
19
19
|
<iframe src="https://www.youtube.com/embed/NpEaa2P7qZI"
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
<figure{{ attributes }}>
|
|
10
10
|
{{ item }}
|
|
11
|
-
{% if caption %}
|
|
12
|
-
<figcaption>
|
|
11
|
+
{% if caption or attribution%}
|
|
12
|
+
<figcaption>
|
|
13
|
+
{{ caption }}
|
|
14
|
+
{% if caption and attribution %} - {% endif %}
|
|
15
|
+
{{ attribution }}
|
|
16
|
+
</figcaption>
|
|
13
17
|
{% endif %}
|
|
14
18
|
</figure>
|
package/src/Atom/_generic.css
CHANGED
|
@@ -54,19 +54,6 @@
|
|
|
54
54
|
font-weight: var(--font-weight-bold);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
a:where([href]) {
|
|
58
|
-
text-decoration: underline;
|
|
59
|
-
text-decoration-thickness: max(0.08em, 1px);
|
|
60
|
-
text-decoration-skip-ink: auto;
|
|
61
|
-
text-underline-offset: 0.15em;
|
|
62
|
-
|
|
63
|
-
&:hover,
|
|
64
|
-
&:active {
|
|
65
|
-
text-underline-offset: 0.2em;
|
|
66
|
-
text-decoration-thickness: max(0.09em, 2px);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
57
|
:is(ol, ul) {
|
|
71
58
|
padding-inline-start: var(--spacing-m);
|
|
72
59
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/html"
|
|
2
|
-
import Component from "./
|
|
2
|
+
import Component from "./accordion.twig"
|
|
3
|
+
import AccordionItem from "./accordion-item.twig"
|
|
4
|
+
import Heading from "../../Atom/Heading/heading.twig"
|
|
3
5
|
import "./Elements/AccordionGroup"
|
|
4
6
|
import "./accordion.css"
|
|
5
7
|
import {
|
|
@@ -11,21 +13,21 @@ const meta: Meta<AccordionType> = {
|
|
|
11
13
|
tags: ["autodocs", "ids-mvp"],
|
|
12
14
|
component: Component,
|
|
13
15
|
args: {
|
|
14
|
-
title: {
|
|
16
|
+
title: Heading({
|
|
15
17
|
title: "Accordion group",
|
|
16
18
|
as: HeadingTypes.TWO,
|
|
17
|
-
},
|
|
19
|
+
}),
|
|
18
20
|
items: [
|
|
19
|
-
{
|
|
21
|
+
AccordionItem({
|
|
20
22
|
title: "Music",
|
|
21
23
|
content:
|
|
22
24
|
"I'm baby air plant hashtag letterpress blue bottle. Cloud bread dreamcatcher everyday carry lumbersexual, iceland cardigan swag chicharrones lo-fi fanny pack affogato freegan XOXO shaman. Shoreditch cloud bread waistcoat tbh XOXO. Chillwave pour-over umami pug glossier health goth.",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
+
}),
|
|
26
|
+
AccordionItem({
|
|
25
27
|
title: "Performances",
|
|
26
28
|
content:
|
|
27
29
|
"I'm baby air plant hashtag letterpress blue bottle. Cloud bread dreamcatcher everyday carry lumbersexual, iceland cardigan swag chicharrones lo-fi fanny pack affogato freegan XOXO shaman. Shoreditch cloud bread waistcoat tbh XOXO. Chillwave pour-over umami pug glossier health goth.",
|
|
28
|
-
},
|
|
30
|
+
}),
|
|
29
31
|
],
|
|
30
32
|
},
|
|
31
33
|
parameters: {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`Component/Accordion Accordion smoke-test 1`] = `
|
|
4
4
|
<div class="mx-accordions">
|
|
5
5
|
<div class="mx-accordion__title">
|
|
6
|
-
<h2
|
|
6
|
+
<h2>
|
|
7
7
|
Accordion group
|
|
8
8
|
</h2>
|
|
9
9
|
</div>
|
|
@@ -42,7 +42,7 @@ exports[`Component/Accordion ToggleAll smoke-test 1`] = `
|
|
|
42
42
|
<div class="mx-accordions">
|
|
43
43
|
<mx-accordion-group>
|
|
44
44
|
<div class="mx-accordion__title">
|
|
45
|
-
<h2
|
|
45
|
+
<h2>
|
|
46
46
|
Accordion group
|
|
47
47
|
</h2>
|
|
48
48
|
<div class="mx-accordions__toggle-all">
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Component/Accordion Accordion smoke-test 1`] = `
|
|
4
|
-
<div class="accordion accordion--divided"
|
|
4
|
+
<div class="mx-accordion mx-accordion--divided"
|
|
5
5
|
data-open="false"
|
|
6
6
|
>
|
|
7
7
|
<button type="button"
|
|
8
|
-
class="accordion__toggle"
|
|
8
|
+
class="mx-accordion__toggle"
|
|
9
9
|
id="unique-0"
|
|
10
10
|
aria-expanded="false"
|
|
11
11
|
>
|
|
12
12
|
Open me!
|
|
13
|
-
<span class="button button--small icon button--icon-only icon--chevron-down"
|
|
13
|
+
<span class="mx-button mx-button--small mx-icon mx-button--icon-only mx-icon--chevron-down"
|
|
14
14
|
aria-hidden="true"
|
|
15
15
|
>
|
|
16
16
|
</span>
|
|
17
17
|
</button>
|
|
18
18
|
<div role="region"
|
|
19
19
|
aria-labelledby="unique-0"
|
|
20
|
-
class="accordion__content rich-text vertical-flow"
|
|
20
|
+
class="mx-accordion__content mx-rich-text mx-vertical-flow"
|
|
21
21
|
inert
|
|
22
22
|
>
|
|
23
23
|
I'm baby air plant hashtag letterpress blue bottle. Cloud bread dreamcatcher everyday carry lumbersexual, iceland cardigan swag chicharrones lo-fi fanny pack affogato freegan XOXO shaman. Shoreditch cloud bread waistcoat tbh XOXO. Chillwave pour-over umami pug glossier health goth.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
baseClass,
|
|
4
4
|
baseClass~'--divided',
|
|
5
5
|
] %}
|
|
6
|
-
{% set attributes = (attributes
|
|
6
|
+
{% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
|
|
7
7
|
|
|
8
8
|
<mx-accordion>
|
|
9
9
|
<details{{ attributes }}{% if id %} id="{{ id }}"{% endif %}>
|
|
@@ -1,15 +1,33 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/html"
|
|
2
2
|
import Component from "./breadcrumb.twig"
|
|
3
|
+
import Link from "../../Atom/Link/link.twig"
|
|
4
|
+
import "../Navigation/navigation.css"
|
|
3
5
|
import "./breadcrumb.css"
|
|
6
|
+
import { Breadcrumbs as BreadcrumbsType } from "@pnx-mixtape/ids-shape"
|
|
4
7
|
|
|
5
|
-
const meta: Meta<
|
|
8
|
+
const meta: Meta<BreadcrumbsType> = {
|
|
6
9
|
tags: ["autodocs"],
|
|
7
10
|
component: Component,
|
|
11
|
+
args: {
|
|
12
|
+
items: [
|
|
13
|
+
Link({
|
|
14
|
+
title: "Home",
|
|
15
|
+
href: "#",
|
|
16
|
+
}),
|
|
17
|
+
Link({
|
|
18
|
+
title: "About",
|
|
19
|
+
href: "#",
|
|
20
|
+
}),
|
|
21
|
+
Link({
|
|
22
|
+
title: "Join the team",
|
|
23
|
+
href: "#",
|
|
24
|
+
current: true,
|
|
25
|
+
}),
|
|
26
|
+
],
|
|
27
|
+
},
|
|
8
28
|
}
|
|
9
29
|
|
|
10
30
|
export default meta
|
|
11
|
-
type Story = StoryObj<
|
|
31
|
+
type Story = StoryObj<BreadcrumbsType>
|
|
12
32
|
|
|
13
|
-
export const Breadcrumb: Story = {
|
|
14
|
-
args: {},
|
|
15
|
-
}
|
|
33
|
+
export const Breadcrumb: Story = {}
|
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Component/Breadcrumb Breadcrumb smoke-test 1`] = `
|
|
4
|
-
<nav class="nav nav--inline nav--
|
|
4
|
+
<nav class="mx-nav mx-nav--inline mx-nav--breadcrumbs"
|
|
5
|
+
aria-label="You are here"
|
|
6
|
+
>
|
|
5
7
|
<ul>
|
|
6
8
|
<li>
|
|
7
9
|
<a href="#">
|
|
8
|
-
|
|
10
|
+
<span>
|
|
11
|
+
Home
|
|
12
|
+
</span>
|
|
9
13
|
</a>
|
|
10
14
|
</li>
|
|
11
15
|
<li>
|
|
12
16
|
<a href="#">
|
|
13
|
-
|
|
17
|
+
<span>
|
|
18
|
+
About
|
|
19
|
+
</span>
|
|
14
20
|
</a>
|
|
15
21
|
</li>
|
|
16
22
|
<li>
|
|
17
|
-
<a href="#"
|
|
18
|
-
|
|
23
|
+
<a href="#"
|
|
24
|
+
aria-current="page"
|
|
25
|
+
>
|
|
26
|
+
<span>
|
|
27
|
+
Join the team
|
|
28
|
+
</span>
|
|
19
29
|
</a>
|
|
20
30
|
</li>
|
|
21
|
-
<li>
|
|
22
|
-
Current Page
|
|
23
|
-
</li>
|
|
24
31
|
</ul>
|
|
25
32
|
</nav>
|
|
26
33
|
`;
|
|
@@ -5,21 +5,21 @@ exports[`Component/Breadcrumb Breadcrumb smoke-test 1`] = `
|
|
|
5
5
|
<ul>
|
|
6
6
|
<li>
|
|
7
7
|
<a href="#"
|
|
8
|
-
class="link"
|
|
8
|
+
class="mx-link"
|
|
9
9
|
>
|
|
10
10
|
Home
|
|
11
11
|
</a>
|
|
12
12
|
</li>
|
|
13
13
|
<li>
|
|
14
14
|
<a href="#"
|
|
15
|
-
class="link"
|
|
15
|
+
class="mx-link"
|
|
16
16
|
>
|
|
17
17
|
About
|
|
18
18
|
</a>
|
|
19
19
|
</li>
|
|
20
20
|
<li>
|
|
21
21
|
<a href="#"
|
|
22
|
-
class="link"
|
|
22
|
+
class="mx-link"
|
|
23
23
|
>
|
|
24
24
|
Contact
|
|
25
25
|
</a>
|
|
@@ -36,21 +36,21 @@ exports[`Component/Breadcrumb NoCurrentPage smoke-test 1`] = `
|
|
|
36
36
|
<ul>
|
|
37
37
|
<li>
|
|
38
38
|
<a href="#"
|
|
39
|
-
class="link"
|
|
39
|
+
class="mx-link"
|
|
40
40
|
>
|
|
41
41
|
Home
|
|
42
42
|
</a>
|
|
43
43
|
</li>
|
|
44
44
|
<li>
|
|
45
45
|
<a href="#"
|
|
46
|
-
class="link"
|
|
46
|
+
class="mx-link"
|
|
47
47
|
>
|
|
48
48
|
About
|
|
49
49
|
</a>
|
|
50
50
|
</li>
|
|
51
51
|
<li>
|
|
52
52
|
<a href="#"
|
|
53
|
-
class="link"
|
|
53
|
+
class="mx-link"
|
|
54
54
|
>
|
|
55
55
|
Contact
|
|
56
56
|
</a>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
@layer design-system.components {
|
|
6
|
-
.nav--
|
|
6
|
+
.mx-nav--breadcrumbs {
|
|
7
7
|
--nav-font-size: var(--font-size-s);
|
|
8
8
|
|
|
9
9
|
position: relative;
|
|
@@ -35,10 +35,14 @@
|
|
|
35
35
|
background-color: currentcolor;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
& [aria-current="page"] {
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
}
|
|
38
42
|
}
|
|
39
43
|
|
|
40
|
-
[dir="rtl"] .nav--
|
|
41
|
-
.translated-rtl .nav--
|
|
44
|
+
[dir="rtl"] .mx-nav--breadcrumbs,
|
|
45
|
+
.translated-rtl .mx-nav--breadcrumbs {
|
|
42
46
|
& > ul > li::after {
|
|
43
47
|
transform: rotate(180deg);
|
|
44
48
|
}
|