@pnx-mixtape/mxds 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/base.css +16 -19
- package/dist/build/breadcrumb.css +10 -6
- package/dist/build/button.css +2 -2
- package/dist/build/card.css +69 -56
- package/dist/build/chunks/drop-menu.entry-BC6x9vst.js +132 -0
- package/dist/build/chunks/drop-menu.entry-BC6x9vst.js.map +1 -0
- package/dist/build/content-block.css +24 -11
- package/dist/build/drop-menu.css +9 -9
- package/dist/build/drop-menu.entry.js +1 -128
- package/dist/build/drop-menu.entry.js.map +1 -1
- package/dist/build/footer.css +118 -28
- package/dist/build/form.css +142 -214
- package/dist/build/global-alert.css +3 -3
- package/dist/build/header.css +37 -30
- package/dist/build/header.entry.js +6 -1
- package/dist/build/header.entry.js.map +1 -1
- package/dist/build/in-page-navigation.css +3 -3
- package/dist/build/in-page-navigation.entry.js +2 -2
- package/dist/build/in-page-navigation.entry.js.map +1 -1
- package/dist/build/list-item.css +114 -0
- package/dist/build/masthead.css +7 -16
- package/dist/build/navigation.css +134 -113
- package/dist/build/navigation.entry.js +6 -5
- package/dist/build/navigation.entry.js.map +1 -1
- package/dist/build/page.css +14 -118
- package/dist/build/pagination.css +26 -19
- package/dist/build/side-navigation.css +88 -0
- package/dist/build/sidebar.css +15 -15
- package/dist/build/social-links.css +20 -0
- package/dist/build/steps.css +118 -0
- package/dist/build/steps.entry.js +2 -0
- package/dist/build/steps.entry.js.map +1 -0
- package/dist/build/tabs.css +22 -19
- package/dist/build/tabs.entry.js +87 -46
- package/dist/build/tabs.entry.js.map +1 -1
- package/dist/build/utilities.css +6 -3
- package/package.json +2 -2
- package/src/Atom/Button/Button.stories.ts +4 -3
- package/src/Atom/Button/__snapshots__/Button.stories.tsx.snap +2 -2
- package/src/Atom/Button/_buttons.css +1 -1
- package/src/Atom/Button/button.twig +1 -1
- package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +1 -1
- package/src/Atom/Heading/heading.twig +4 -1
- package/src/Atom/Icon/__snapshots__/Icon.stories.tsx.snap +3 -3
- package/src/Atom/Icon/icon.twig +1 -1
- package/src/Atom/Link/Link.stories.ts +8 -7
- package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +5 -9
- package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +3 -3
- package/src/Atom/Link/_links.css +12 -2
- package/src/Atom/Link/link.twig +6 -4
- package/src/Atom/Media/Media.stories.ts +9 -9
- package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +1 -1
- package/src/Atom/Media/__snapshots__/Media.stories.tsx.snap +1 -1
- package/src/Atom/Media/media.twig +6 -2
- package/src/Atom/_generic.css +0 -13
- package/src/Component/Accordion/Accordion.stories.ts +9 -7
- package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +2 -2
- package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +4 -4
- package/src/Component/Accordion/accordion-item.twig +1 -1
- package/src/Component/Accordion/accordion.twig +3 -1
- package/src/Component/Breadcrumb/Breadcrumb.stories.ts +23 -5
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +15 -8
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +6 -6
- package/src/Component/Breadcrumb/breadcrumb.css +7 -3
- package/src/Component/Breadcrumb/breadcrumb.twig +14 -12
- package/src/Component/Callout/Callout.stories.ts +5 -4
- package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +1 -1
- package/src/Component/Callout/callout.twig +1 -1
- package/src/Component/Card/Card.stories.ts +47 -20
- package/src/Component/Card/Card.stories.tsx +5 -4
- package/src/Component/Card/Card.tsx +7 -7
- package/src/Component/Card/__snapshots__/Card.stories.ts.snap +123 -49
- package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +18 -18
- package/src/Component/Card/card.css +57 -43
- package/src/Component/Card/card.twig +13 -13
- package/src/Component/ContentBlock/ContentBlock.stories.ts +73 -6
- package/src/Component/ContentBlock/ContentBlock.stories.tsx +19 -10
- package/src/Component/ContentBlock/ContentBlock.tsx +25 -17
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +137 -5
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.tsx.snap +21 -14
- package/src/Component/ContentBlock/content-block.css +21 -10
- package/src/Component/ContentBlock/content-block.twig +21 -11
- package/src/Component/DropMenu/Components/DropMenuItem.tsx +1 -1
- package/src/Component/DropMenu/DropMenu.stories.ts +1 -1
- package/src/Component/DropMenu/DropMenu.tsx +6 -6
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +2 -2
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +2 -2
- package/src/Component/DropMenu/drop-menu.css +2 -2
- package/src/Component/DropMenu/drop-menu.twig +2 -2
- package/src/Component/GlobalAlert/GlobalAlert.stories.ts +5 -6
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +7 -7
- package/src/Component/GlobalAlert/global-alert.css +1 -1
- package/src/Component/GlobalAlert/global-alert.twig +1 -1
- package/src/Component/HeroBanner/HeroBanner.stories.ts +17 -12
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +11 -11
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.tsx.snap +9 -9
- package/src/Component/HeroBanner/hero-banner.twig +2 -2
- package/src/Component/InPageAlert/InPageAlert.stories.ts +4 -3
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +1 -3
- package/src/Component/InPageAlert/in-page-alert.twig +1 -1
- package/src/Component/InPageNavigation/Elements/InPageNavigation.ts +2 -2
- package/src/Component/InPageNavigation/InPageNavigation.stories.ts +30 -7
- package/src/Component/InPageNavigation/InPageNavigation.tsx +4 -4
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +103 -5
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +21 -21
- package/src/Component/InPageNavigation/in-page-navigation.css +3 -3
- package/src/Component/InPageNavigation/in-page-navigation.twig +13 -17
- package/src/Component/InPageNavigation/twig/{in-page-navigation-content-example.twig → content-example.twig} +2 -0
- package/src/Component/InPageNavigation/twig/in-page-navigation-story.twig +2 -0
- package/src/Component/LinkList/__snapshots__/LinkList.stories.tsx.snap +8 -8
- package/src/Component/LinkList/link-list.twig +1 -1
- package/src/Component/ListItem/ListItem.stories.ts +105 -0
- package/src/Component/ListItem/{Teaser.stories.tsx → ListItem.stories.tsx} +4 -5
- package/src/Component/ListItem/ListItem.tsx +55 -0
- package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +184 -0
- package/src/Component/ListItem/__snapshots__/ListItem.stories.tsx.snap +23 -0
- package/src/Component/ListItem/list-item.css +109 -0
- package/src/Component/ListItem/list-item.twig +32 -0
- package/src/Component/Navigation/Components/DropdownLevel.tsx +11 -6
- package/src/Component/Navigation/Dropdown.tsx +2 -2
- package/src/Component/Navigation/Elements/Navigation.ts +6 -5
- package/src/Component/Navigation/Navigation.stories.ts +261 -5
- package/src/Component/Navigation/Navigation.tsx +2 -2
- package/src/Component/Navigation/__snapshots__/Dropdown.stories.tsx.snap +4 -4
- package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +294 -7
- package/src/Component/Navigation/__snapshots__/Navigation.stories.tsx.snap +2 -2
- package/src/Component/Navigation/_navigation-collapsible.css +22 -12
- package/src/Component/Navigation/_navigation-dropdown.css +8 -8
- package/src/Component/Navigation/_navigation-mega.css +4 -4
- package/src/Component/Navigation/_navigation.css +9 -6
- package/src/Component/Navigation/menu.twig +42 -0
- package/src/Component/Navigation/navigation.css +1 -1
- package/src/Component/Navigation/navigation.twig +23 -9
- package/src/Component/Pagination/Components/PaginationItem.tsx +4 -4
- package/src/Component/Pagination/Pagination.stories.ts +55 -6
- package/src/Component/Pagination/Pagination.tsx +2 -2
- package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +36 -33
- package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +11 -11
- package/src/Component/Pagination/pagination-item.twig +7 -0
- package/src/Component/Pagination/pagination.css +12 -9
- package/src/Component/Pagination/pagination.twig +12 -37
- package/src/Component/SideNavigation/SideNavigation.stories.ts +97 -0
- package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +86 -0
- package/src/Component/SideNavigation/side-navigation.css +78 -0
- package/src/Component/SideNavigation/side-navigation.twig +35 -0
- package/src/Component/SideNavigation/twig/side-navigation-story.twig +7 -0
- package/src/Component/SocialLinks/SocialLinks.stories.ts +58 -0
- package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +32 -0
- package/src/Component/SocialLinks/social-links.css +17 -0
- package/src/Component/SocialLinks/social-links.twig +6 -0
- package/src/Component/SocialShare/__snapshots__/SocialShare.stories.tsx.snap +3 -3
- package/src/Component/Steps/Steps.stories.ts +88 -0
- package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +111 -0
- package/src/Component/Steps/step-item.twig +11 -0
- package/src/Component/Steps/steps.css +99 -0
- package/src/Component/Steps/steps.entry.js +0 -0
- package/src/Component/Steps/steps.twig +18 -0
- package/src/Component/Sticky/Sticky.stories.ts +3 -0
- package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +7 -8
- package/src/Component/Sticky/sticky.twig +2 -20
- package/src/Component/Tabs/Components/Tab.tsx +1 -2
- package/src/Component/Tabs/Components/TabDropMenu.tsx +1 -1
- package/src/Component/Tabs/Components/TabList.tsx +1 -1
- package/src/Component/Tabs/Components/TabPanel.tsx +2 -2
- package/src/Component/Tabs/Elements/Tabs.ts +98 -49
- package/src/Component/Tabs/Tabs.stories.ts +45 -8
- package/src/Component/Tabs/Tabs.stories.tsx +3 -3
- package/src/Component/Tabs/Tabs.tsx +2 -2
- package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +46 -92
- package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +11 -14
- package/src/Component/Tabs/tab-item.twig +11 -0
- package/src/Component/Tabs/tabs.css +20 -17
- package/src/Component/Tabs/tabs.twig +10 -46
- package/src/Component/Tag/__snapshots__/Tag.stories.tsx.snap +1 -1
- package/src/Component/Tag/tags.twig +1 -1
- package/src/Component/Tile/__snapshots__/Tile.stories.tsx.snap +4 -4
- package/src/Form/Checkbox/Checkbox.stories.ts +39 -0
- package/src/Form/Checkbox/FormCheckbox.tsx +3 -3
- package/src/Form/Checkbox/__snapshots__/Checkbox.stories.ts.snap +28 -0
- package/src/Form/Checkbox/input-checkbox.twig +27 -24
- package/src/Form/Description/Description.stories.ts +10 -7
- package/src/Form/Description/FormDescription.tsx +3 -3
- package/src/Form/Description/FormStatus.stories.ts +31 -0
- package/src/Form/Description/__snapshots__/Description.stories.ts.snap +2 -9
- package/src/Form/Description/__snapshots__/FormDescription.stories.tsx.snap +1 -1
- package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +19 -0
- package/src/Form/Description/form-description.twig +4 -3
- package/src/Form/Description/form-status.twig +10 -0
- package/src/Form/Form/FormTitle.tsx +1 -1
- package/src/Form/Form/__snapshots__/FormTitle.stories.tsx.snap +1 -1
- package/src/Form/Form/form.twig +14 -0
- package/src/Form/Form/twig/form-example.twig +4 -4
- package/src/Form/FormItem/FormItem.stories.ts +119 -0
- package/src/Form/{Item → FormItem}/FormItem.tsx +1 -1
- package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +133 -0
- package/src/Form/{Item → FormItem}/__snapshots__/FormItem.stories.tsx.snap +24 -16
- package/src/Form/FormItem/form-item.twig +22 -0
- package/src/Form/Label/FormLabel.tsx +1 -1
- package/src/Form/Label/Label.stories.ts +16 -19
- package/src/Form/Label/__snapshots__/FormLabel.stories.tsx.snap +6 -2
- package/src/Form/Label/__snapshots__/Label.stories.ts.snap +11 -9
- package/src/Form/Label/label.twig +13 -2
- package/src/Form/Radio/FormRadio.tsx +2 -2
- package/src/Form/Radio/Radio.stories.ts +72 -0
- package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +58 -0
- package/src/Form/Radio/input-radio.twig +18 -24
- package/src/Form/Search/Search.stories.ts +50 -0
- package/src/Form/Search/__snapshots__/Search.stories.ts.snap +26 -0
- package/src/Form/Search/search-form.twig +11 -0
- package/src/Form/Select/FormSelect.tsx +1 -1
- package/src/Form/Select/Select.stories.ts +24 -31
- package/src/Form/Select/__snapshots__/FormSelect.stories.tsx.snap +1 -1
- package/src/Form/Select/__snapshots__/Select.stories.ts.snap +16 -144
- package/src/Form/Select/input-select.twig +25 -0
- package/src/Form/TextInput/FormText.tsx +4 -7
- package/src/Form/TextInput/TextInput.stories.ts +23 -41
- package/src/Form/TextInput/__snapshots__/FormText.stories.tsx.snap +1 -1
- package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +10 -14
- package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +20 -96
- package/src/Form/TextInput/input-divider.twig +7 -8
- package/src/Form/TextInput/input-text-icon.twig +5 -5
- package/src/Form/TextInput/input-text.twig +31 -5
- package/src/Form/Textarea/FormTextarea.tsx +4 -7
- package/src/Form/Textarea/Textarea.stories.ts +11 -8
- package/src/Form/Textarea/__snapshots__/FormTextarea.stories.tsx.snap +1 -1
- package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +8 -16
- package/src/Form/Textarea/input-textarea.twig +21 -0
- package/src/Form/form.css +103 -103
- package/src/Layout/Footer/Footer.stories.ts +197 -5
- package/src/Layout/Footer/Footer.stories.tsx +5 -9
- package/src/Layout/Footer/Footer.tsx +21 -19
- package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +296 -78
- package/src/Layout/Footer/__snapshots__/Footer.stories.tsx.snap +52 -58
- package/src/Layout/Footer/footer.css +102 -25
- package/src/Layout/Footer/footer.twig +29 -23
- package/src/Layout/Grid/Grid.stories.ts +15 -14
- package/src/Layout/Grid/Grid.stories.tsx +14 -14
- package/src/Layout/Grid/Grid.tsx +10 -10
- package/src/Layout/Grid/__snapshots__/Grid.stories.tsx.snap +10 -10
- package/src/Layout/Grid/grid-item.twig +1 -1
- package/src/Layout/Grid/grid.twig +7 -4
- package/src/Layout/Header/Components/GlobalToggle.tsx +0 -1
- package/src/Layout/Header/Components/Logo.tsx +1 -1
- package/src/Layout/Header/Elements/GlobalToggle.ts +6 -1
- package/src/Layout/Header/Header.stories.ts +242 -7
- package/src/Layout/Header/Header.tsx +22 -19
- package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +464 -100
- package/src/Layout/Header/__snapshots__/Header.stories.tsx.snap +50 -46
- package/src/Layout/Header/_header.css +28 -21
- package/src/Layout/Header/_toggles.css +2 -2
- package/src/Layout/Header/header-stacked.twig +49 -0
- package/src/Layout/Header/header.twig +42 -21
- package/src/Layout/Header/twig/logo.twig +2 -2
- package/src/Layout/Masthead/Masthead.stories.ts +42 -6
- package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +44 -27
- package/src/Layout/Masthead/masthead.css +5 -14
- package/src/Layout/Masthead/masthead.twig +25 -7
- package/src/Layout/Page/Page.tsx +2 -2
- package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +61 -59
- package/src/Layout/Page/page.css +19 -84
- package/src/Layout/Page/page.twig +8 -3
- package/src/Layout/Section/Section.stories.ts +12 -9
- package/src/Layout/Section/Section.stories.tsx +5 -9
- package/src/Layout/Section/Section.tsx +6 -10
- package/src/Layout/Section/SectionGrid.stories.tsx +5 -11
- package/src/Layout/Section/SectionGrid.tsx +8 -13
- package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +12 -12
- package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +17 -17
- package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +18 -18
- package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +4 -4
- package/src/Layout/Section/__snapshots__/Section.stories.tsx.snap +6 -6
- package/src/Layout/Section/__snapshots__/SectionGrid.stories.tsx.snap +6 -6
- package/src/Layout/Section/section.twig +1 -1
- package/src/Layout/Section/twig/section-background.twig +5 -5
- package/src/Layout/Section/twig/sections-breakout.twig +16 -16
- package/src/Layout/Section/twig/sections-flow.twig +17 -17
- package/src/Layout/Section/twig/sections-stacked.twig +8 -16
- package/src/Layout/Sidebar/Sidebar.stories.ts +25 -3
- package/src/Layout/Sidebar/Sidebar.stories.tsx +1 -1
- package/src/Layout/Sidebar/Sidebar.tsx +4 -4
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +39 -16
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.tsx.snap +6 -6
- package/src/Layout/Sidebar/sidebar.css +6 -6
- package/src/Layout/Sidebar/sidebar.twig +25 -16
- package/src/Utility/utilities.css +5 -2
- package/src/react.ts +1 -2
- package/dist/build/footer-menu.css +0 -32
- package/dist/build/nav-list.css +0 -26
- package/src/Atom/Button/twig/story-button.twig +0 -11
- package/src/Atom/Link/twig/story-link.twig +0 -11
- package/src/Atom/Media/twig/story-media.twig +0 -11
- package/src/Atom/NavList/NavList.stories.ts +0 -15
- package/src/Atom/NavList/__snapshots__/NavList.stories.ts.snap +0 -43
- package/src/Atom/NavList/nav-list.css +0 -23
- package/src/Atom/NavList/nav-list.twig +0 -25
- package/src/Component/Accordion/twig/accordion-story.twig +0 -13
- package/src/Component/Author/Author.stories.tsx +0 -18
- package/src/Component/Author/Author.tsx +0 -30
- package/src/Component/Author/__snapshots__/Author.stories.tsx.snap +0 -21
- package/src/Component/Callout/twig/callout-story.twig +0 -11
- package/src/Component/Card/twig/old-card.twig +0 -17
- package/src/Component/Card/twig/story-card.twig +0 -29
- package/src/Component/ContentBlock/twig/content-block-example.twig +0 -7
- package/src/Component/GlobalAlert/twig/story-global-alert.twig +0 -14
- package/src/Component/HeroBanner/twig/hero-banner-story.twig +0 -19
- package/src/Component/InPageAlert/twig/story-in-page-alert.twig +0 -11
- package/src/Component/InPageNavigation/twig/in-page-navigation-menu-example.twig +0 -6
- package/src/Component/ListItem/Teaser.tsx +0 -54
- package/src/Component/ListItem/__snapshots__/Teaser.stories.tsx.snap +0 -32
- package/src/Component/Navigation/Collapsible.stories.ts +0 -16
- package/src/Component/Navigation/Dropdown.stories.ts +0 -16
- package/src/Component/Navigation/MegaNav.stories.ts +0 -16
- package/src/Component/Navigation/__snapshots__/Collapsible.stories.ts.snap +0 -123
- package/src/Component/Navigation/__snapshots__/Dropdown.stories.ts.snap +0 -125
- package/src/Component/Navigation/navigation-collapsible.twig +0 -7
- package/src/Component/Navigation/navigation-dropdown.twig +0 -7
- package/src/Component/Navigation/navigation-mega-nav.twig +0 -7
- package/src/Component/Navigation/twig/navigation-subnav-list.twig +0 -108
- package/src/Component/Sticky/twig/sticky-example.twig +0 -4
- package/src/Component/Tabs/twig/panel.twig +0 -5
- package/src/Component/Tabs/twig/tab-list.twig +0 -26
- package/src/Form/Checkbox/Checkboxes.stories.ts +0 -47
- package/src/Form/Checkbox/__snapshots__/Checkboxes.stories.ts.snap +0 -115
- package/src/Form/Checkbox/input-checkbox-single.twig +0 -6
- package/src/Form/Description/ErrorMessage.stories.ts +0 -16
- package/src/Form/Description/__snapshots__/ErrorMessage.stories.ts.snap +0 -20
- package/src/Form/Description/form-error.twig +0 -5
- package/src/Form/Fieldset/Fieldset.stories.ts +0 -34
- package/src/Form/Fieldset/__snapshots__/Fieldset.stories.ts.snap +0 -23
- package/src/Form/Fieldset/fieldset.twig +0 -4
- package/src/Form/Radio/Radios.stories.ts +0 -47
- package/src/Form/Radio/__snapshots__/Radios.stories.ts.snap +0 -125
- package/src/Form/Search/TextInputWithInlineButton.stories.ts +0 -16
- package/src/Form/Search/__snapshots__/TextInputWithInlineButton.stories.ts.snap +0 -26
- package/src/Form/Search/input-text-inline-submit.twig +0 -8
- package/src/Form/Select/select.twig +0 -16
- package/src/Form/TextInput/TextInputWithIcon.stories.ts +0 -40
- package/src/Form/TextInput/__snapshots__/TextInputWithIcon.stories.ts.snap +0 -67
- package/src/Form/Textarea/textarea.twig +0 -5
- package/src/Layout/Footer/FooterMenu/FooterMenu.stories.ts +0 -15
- package/src/Layout/Footer/FooterMenu/__snapshots__/FooterMenu.stories.ts.snap +0 -101
- package/src/Layout/Footer/FooterMenu/footer-menu.css +0 -29
- package/src/Layout/Footer/FooterMenu/footer-menu.twig +0 -5
- package/src/Layout/Grid/twig/container-grid-dynamic.twig +0 -47
- package/src/Layout/Grid/twig/container-grid.twig +0 -46
- package/src/Layout/Grid/twig/grid-story.twig +0 -6
- package/src/Layout/Grid/twig/old-grid.twig +0 -46
- package/src/Layout/Header/Stacked/Stacked.stories.ts +0 -16
- package/src/Layout/Header/Stacked/__snapshots__/Stacked.stories.ts.snap +0 -353
- package/src/Layout/Header/Stacked/header-stacked.twig +0 -33
- package/src/Layout/Header/twig/global-header.twig +0 -4
- package/src/Layout/Section/twig/section-story.twig +0 -14
- /package/src/Form/{Item → FormItem}/FormItem.stories.tsx +0 -0
|
@@ -5,70 +5,84 @@
|
|
|
5
5
|
@layer design-system.components {
|
|
6
6
|
.mx-card {
|
|
7
7
|
display: grid;
|
|
8
|
-
grid-template: "media" auto "content" 1fr / 1fr;
|
|
9
8
|
gap: var(--card-gap, var(--gap));
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
grid-template: "media content" 1fr / 1fr 1fr;
|
|
15
|
-
align-items: center;
|
|
10
|
+
&[class*="mx-background--"] {
|
|
11
|
+
border-radius: var(--border-radius);
|
|
16
12
|
|
|
17
13
|
& .mx-card__content {
|
|
18
|
-
|
|
14
|
+
padding-inline: var(--content-min-spacing, var(--spacing-s));
|
|
15
|
+
padding-block-end: var(--content-min-spacing, var(--spacing-s));
|
|
16
|
+
|
|
17
|
+
@container (min-width: token("breakpoint.contentCard")) {
|
|
18
|
+
--content-min-spacing: var(--content-max-spacing, var(--spacing-m));
|
|
19
|
+
}
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
23
|
+
&:has(.mx-card__media) {
|
|
24
|
+
grid-template: "media" "content" 1fr / 1fr;
|
|
25
25
|
|
|
26
|
-
&.mx-card--right {
|
|
27
26
|
@container (min-width: token("breakpoint.contentCard")) {
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
}
|
|
27
|
+
--card-gap: var(--gap-l);
|
|
31
28
|
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
grid-template: "media content" 1fr / 1fr 1fr;
|
|
30
|
+
align-items: center;
|
|
34
31
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
&.mx-card--reversed {
|
|
33
|
+
grid-template-areas: "content media";
|
|
34
|
+
}
|
|
38
35
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
padding-inline-start: 0;
|
|
36
|
+
& .mx-card__content {
|
|
37
|
+
justify-content: center;
|
|
42
38
|
}
|
|
43
39
|
}
|
|
44
40
|
|
|
45
|
-
|
|
41
|
+
@container (min-width: token("breakpoint.l")) {
|
|
42
|
+
--card-gap: 6rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&[class*="mx-background--"] {
|
|
46
46
|
@container (min-width: token("breakpoint.contentCard")) {
|
|
47
|
-
|
|
47
|
+
& .mx-card__content {
|
|
48
|
+
padding-block-start: var(--content-min-spacing, var(--spacing-s));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:where(:not(.mx-card--reversed)) .mx-card__content {
|
|
52
|
+
padding-inline-start: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.mx-card--reversed .mx-card__content {
|
|
56
|
+
padding-inline-end: 0;
|
|
57
|
+
}
|
|
48
58
|
}
|
|
49
59
|
}
|
|
50
|
-
}
|
|
51
60
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
61
|
+
& .mx-card__content {
|
|
62
|
+
grid-area: content;
|
|
63
|
+
}
|
|
55
64
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
65
|
+
& :is(.mx-card__media, figure) {
|
|
66
|
+
grid-area: media;
|
|
67
|
+
display: grid;
|
|
68
|
+
margin: auto;
|
|
69
|
+
position: relative;
|
|
70
|
+
inline-size: 100%;
|
|
71
|
+
|
|
72
|
+
& img {
|
|
73
|
+
aspect-ratio: var(--ratio);
|
|
74
|
+
border-radius: var(--border-radius);
|
|
75
|
+
object-fit: cover;
|
|
76
|
+
display: block;
|
|
77
|
+
}
|
|
62
78
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
object-fit: cover;
|
|
67
|
-
display: block;
|
|
79
|
+
& .mx-skeleton--bg {
|
|
80
|
+
aspect-ratio: var(--ratio);
|
|
81
|
+
}
|
|
68
82
|
}
|
|
69
83
|
|
|
70
|
-
& .mx-
|
|
71
|
-
|
|
84
|
+
& .mx-card__icon {
|
|
85
|
+
grid-area: media;
|
|
72
86
|
}
|
|
73
87
|
}
|
|
74
88
|
|
|
@@ -84,7 +98,7 @@
|
|
|
84
98
|
|
|
85
99
|
@layer design-system.components {
|
|
86
100
|
.mx-grid:has(> *:nth-child(2):last-child)
|
|
87
|
-
> :is(.mx-card, .container:has(.mx-card)) {
|
|
101
|
+
> :is(.mx-card, .mx-container:has(.mx-card)) {
|
|
88
102
|
inline-size: 100%;
|
|
89
103
|
max-inline-size: var(--max-card-width, 37ch);
|
|
90
104
|
margin-inline: auto;
|
|
@@ -102,7 +116,7 @@
|
|
|
102
116
|
}
|
|
103
117
|
}
|
|
104
118
|
|
|
105
|
-
.mx-card--
|
|
119
|
+
.mx-card--block {
|
|
106
120
|
position: relative;
|
|
107
121
|
|
|
108
122
|
&:focus-within {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{% set baseClass = 'mx-card' %}
|
|
2
|
+
{% set classes = [baseClass] %}
|
|
2
3
|
{% set background = null %}
|
|
3
4
|
{% for modifier in modifiers %}
|
|
4
5
|
{% if modifier == "dark" %}
|
|
5
|
-
{% set background = 'background--reverse' %}
|
|
6
|
-
{%
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
{%
|
|
11
|
-
{% set
|
|
6
|
+
{% set background = 'mx-background--reverse' %}
|
|
7
|
+
{% elseif modifier == "light" %}
|
|
8
|
+
{% set background = 'mx-background--alt' %}
|
|
9
|
+
{% elseif modifier == "supplementary" %}
|
|
10
|
+
{% set background = 'mx-background--primary' %}
|
|
11
|
+
{% else %}
|
|
12
|
+
{% set classes = classes|merge([baseClass~"--"~modifier]) %}
|
|
12
13
|
{% endif %}
|
|
13
14
|
{% endfor %}
|
|
14
|
-
{%
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{% set attributes = (attributes|default(create_attribute())).addClass(classes) %}
|
|
15
|
+
{% if background %}
|
|
16
|
+
{% set classes = classes|merge([background]) %}
|
|
17
|
+
{% endif %}
|
|
18
|
+
{% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
|
|
19
19
|
|
|
20
20
|
<div class="mx-container">
|
|
21
21
|
<article{{ attributes }}>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
{% endif %}
|
|
32
32
|
<div class="mx-card__content mx-vertical-flow-flex">
|
|
33
33
|
{% if date %}
|
|
34
|
-
<div class="mx-text--
|
|
34
|
+
<div class="mx-text--s">{{ date }}</div>
|
|
35
35
|
{% endif %}
|
|
36
36
|
{{ title }}
|
|
37
37
|
{{ tags }}
|
|
@@ -1,15 +1,82 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/html"
|
|
2
|
-
import Component from "./
|
|
2
|
+
import Component from "./content-block.twig"
|
|
3
|
+
import Heading from "../../Atom/Heading/heading.twig"
|
|
4
|
+
import Link from "../../Atom/Link/link.twig"
|
|
5
|
+
import Image from "../../Atom/Image/image.twig"
|
|
6
|
+
import LinkList from "../LinkList/link-list.twig"
|
|
7
|
+
import Icon from "../../Atom/Icon/icon.twig"
|
|
3
8
|
import "./content-block.css"
|
|
9
|
+
import "../LinkList/link-list.css"
|
|
10
|
+
import {
|
|
11
|
+
ContentBlock as ContentBlockType,
|
|
12
|
+
HeadingTypes,
|
|
13
|
+
} from "@pnx-mixtape/ids-shape"
|
|
14
|
+
import { Icons } from "../../enums"
|
|
4
15
|
|
|
5
|
-
const meta: Meta<
|
|
6
|
-
tags: ["autodocs"],
|
|
16
|
+
const meta: Meta<ContentBlockType> = {
|
|
17
|
+
tags: ["autodocs", "ids-mvp"],
|
|
7
18
|
component: Component,
|
|
19
|
+
args: {
|
|
20
|
+
title: Heading({
|
|
21
|
+
title: "Content block title",
|
|
22
|
+
as: HeadingTypes.THREE,
|
|
23
|
+
}),
|
|
24
|
+
link: Link({
|
|
25
|
+
href: "#",
|
|
26
|
+
title: "Find out more",
|
|
27
|
+
more: true,
|
|
28
|
+
}),
|
|
29
|
+
content:
|
|
30
|
+
"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>",
|
|
31
|
+
linkList: LinkList({
|
|
32
|
+
items: [
|
|
33
|
+
{
|
|
34
|
+
title: "Link one",
|
|
35
|
+
href: "#",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
title: "Link two",
|
|
39
|
+
href: "#",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: "Link three",
|
|
43
|
+
href: "#",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
}),
|
|
47
|
+
},
|
|
48
|
+
parameters: {
|
|
49
|
+
deepControls: { enabled: true },
|
|
50
|
+
},
|
|
51
|
+
argTypes: {
|
|
52
|
+
// @ts-expect-error The controls follow the shape
|
|
53
|
+
"image.src": { control: "text" },
|
|
54
|
+
"image.alt": { control: "text" },
|
|
55
|
+
"title.title": { control: "text" },
|
|
56
|
+
"title.as": { options: Object.values(HeadingTypes), control: "select" },
|
|
57
|
+
"link.href": { control: "text" },
|
|
58
|
+
"link.title": { control: "text" },
|
|
59
|
+
},
|
|
8
60
|
}
|
|
9
61
|
|
|
10
62
|
export default meta
|
|
11
|
-
type Story = StoryObj<
|
|
63
|
+
type Story = StoryObj<ContentBlockType>
|
|
12
64
|
|
|
13
|
-
export const ContentBlock: Story = {
|
|
14
|
-
|
|
65
|
+
export const ContentBlock: Story = {}
|
|
66
|
+
|
|
67
|
+
export const WithIcon: Story = {
|
|
68
|
+
args: {
|
|
69
|
+
icon: Icon({
|
|
70
|
+
icon: Icons.HEART,
|
|
71
|
+
}),
|
|
72
|
+
},
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export const WithImage: Story = {
|
|
76
|
+
args: {
|
|
77
|
+
image: Image({
|
|
78
|
+
src: "https://picsum.photos/id/56/558/418?grayscale",
|
|
79
|
+
alt: "Blurry bubbles",
|
|
80
|
+
}),
|
|
81
|
+
},
|
|
15
82
|
}
|
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/react"
|
|
2
2
|
import Component from "./ContentBlock"
|
|
3
|
-
import
|
|
3
|
+
import Link from "../../Atom/Link/Link"
|
|
4
4
|
import Text from "../../Atom/Text/Text"
|
|
5
|
-
import
|
|
5
|
+
import Media from "../../Atom/Media/Media"
|
|
6
6
|
import "./content-block.css"
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { HeadingStyles, LinkStyles } from "../../enums"
|
|
8
|
+
import { AsTypes, HeadingTypes } from "@pnx-mixtape/ids-shape"
|
|
9
9
|
|
|
10
10
|
const meta: Meta<typeof Component> = {
|
|
11
11
|
tags: ["autodocs"],
|
|
12
12
|
component: Component,
|
|
13
|
+
argTypes: {
|
|
14
|
+
children: { table: { disable: true } },
|
|
15
|
+
image: { table: { disable: true } },
|
|
16
|
+
headingLevel: { options: Object.values(HeadingTypes) },
|
|
17
|
+
headingModifier: { options: Object.values(HeadingStyles) },
|
|
18
|
+
as: { options: Object.values(AsTypes) },
|
|
19
|
+
},
|
|
13
20
|
args: {
|
|
21
|
+
title: "Content block",
|
|
14
22
|
children: (
|
|
15
23
|
<>
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<Text modifier={TextStyles.L}>
|
|
20
|
-
Please make sure you have your account details ready.
|
|
24
|
+
<Text>
|
|
25
|
+
A short description to help explain enough about the subject matter to
|
|
26
|
+
encourage visitors to learn more.
|
|
21
27
|
</Text>
|
|
28
|
+
<Link modifier={LinkStyles.MORE} to="http://example.com">
|
|
29
|
+
Learn More
|
|
30
|
+
</Link>
|
|
22
31
|
</>
|
|
23
32
|
),
|
|
24
|
-
|
|
33
|
+
image: <Media src="https://picsum.photos/id/56/558/418?grayscale" alt="" />,
|
|
25
34
|
},
|
|
26
35
|
}
|
|
27
36
|
export default meta
|
|
@@ -1,35 +1,43 @@
|
|
|
1
1
|
import { JSX, PropsWithChildren, ReactNode } from "react"
|
|
2
2
|
import classNames from "classnames"
|
|
3
|
-
import { AsTags } from "../../enums"
|
|
3
|
+
import { AsTags, HeadingStyles } from "../../enums"
|
|
4
|
+
import Heading from "../../Atom/Heading/Heading"
|
|
5
|
+
import { HeadingTypes } from "@pnx-mixtape/ids-shape"
|
|
4
6
|
|
|
5
7
|
type ContentBlockProps = PropsWithChildren & {
|
|
6
|
-
|
|
8
|
+
title: string
|
|
9
|
+
image?: ReactNode
|
|
10
|
+
headingLevel?: HeadingTypes
|
|
11
|
+
headingModifier?: HeadingStyles
|
|
7
12
|
as?: AsTags
|
|
8
13
|
}
|
|
9
14
|
|
|
10
15
|
const ContentBlock = ({
|
|
16
|
+
title,
|
|
11
17
|
children,
|
|
12
|
-
|
|
18
|
+
image = null,
|
|
19
|
+
headingLevel = HeadingTypes.THREE,
|
|
20
|
+
headingModifier = null,
|
|
13
21
|
as = AsTags.DIV,
|
|
14
22
|
...props
|
|
15
23
|
}: ContentBlockProps): JSX.Element => {
|
|
16
24
|
const Tag: JSX.ElementType = `${as}` as unknown as JSX.ElementType
|
|
17
25
|
return (
|
|
18
|
-
<Tag
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<div
|
|
25
|
-
className={classNames(
|
|
26
|
-
"content-block__actions",
|
|
27
|
-
"horizontal-flow-flex",
|
|
28
|
-
)}
|
|
29
|
-
>
|
|
30
|
-
{actions}
|
|
31
|
-
</div>
|
|
26
|
+
<Tag className={classNames("mx-content-block")} {...props}>
|
|
27
|
+
{image && (
|
|
28
|
+
<figure className={classNames("mx-content-block__media", "stack")}>
|
|
29
|
+
<div className="mx-skeleton mx-skeleton--bg"></div>
|
|
30
|
+
{image}
|
|
31
|
+
</figure>
|
|
32
32
|
)}
|
|
33
|
+
<div
|
|
34
|
+
className={classNames("mx-content-block__content", "mx-vertical-flow")}
|
|
35
|
+
>
|
|
36
|
+
<Heading as={headingLevel} modifier={headingModifier}>
|
|
37
|
+
{title}
|
|
38
|
+
</Heading>
|
|
39
|
+
{children}
|
|
40
|
+
</div>
|
|
33
41
|
</Tag>
|
|
34
42
|
)
|
|
35
43
|
}
|
|
@@ -1,9 +1,141 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Component/ContentBlock ContentBlock smoke-test 1`] = `
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
<article class="mx-content-block">
|
|
5
|
+
<div class="mx-content-block__content mx-vertical-flow-flex">
|
|
6
|
+
<h3>
|
|
7
|
+
Content block title
|
|
8
|
+
</h3>
|
|
9
|
+
<p>
|
|
10
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
11
|
+
</p>
|
|
12
|
+
<ul class="mx-link-list">
|
|
13
|
+
<li>
|
|
14
|
+
<a href="#"
|
|
15
|
+
class="mx-icon mx-icon--chevron-right"
|
|
16
|
+
>
|
|
17
|
+
Link one
|
|
18
|
+
</a>
|
|
19
|
+
</li>
|
|
20
|
+
<li>
|
|
21
|
+
<a href="#"
|
|
22
|
+
class="mx-icon mx-icon--chevron-right"
|
|
23
|
+
>
|
|
24
|
+
Link two
|
|
25
|
+
</a>
|
|
26
|
+
</li>
|
|
27
|
+
<li>
|
|
28
|
+
<a href="#"
|
|
29
|
+
class="mx-icon mx-icon--chevron-right"
|
|
30
|
+
>
|
|
31
|
+
Link three
|
|
32
|
+
</a>
|
|
33
|
+
</li>
|
|
34
|
+
</ul>
|
|
35
|
+
<a class="mx-link--more"
|
|
36
|
+
href="#"
|
|
37
|
+
>
|
|
38
|
+
<span>
|
|
39
|
+
Find out more
|
|
40
|
+
</span>
|
|
41
|
+
</a>
|
|
42
|
+
</div>
|
|
43
|
+
</article>
|
|
44
|
+
`;
|
|
45
|
+
|
|
46
|
+
exports[`Component/ContentBlock WithIcon smoke-test 1`] = `
|
|
47
|
+
<article class="mx-content-block">
|
|
48
|
+
<div class="mx-content-block__icon">
|
|
49
|
+
<span class="mx-icon mx-icon--heart-selected ">
|
|
50
|
+
</span>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="mx-content-block__content mx-vertical-flow-flex">
|
|
53
|
+
<h3>
|
|
54
|
+
Content block title
|
|
55
|
+
</h3>
|
|
56
|
+
<p>
|
|
57
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
58
|
+
</p>
|
|
59
|
+
<ul class="mx-link-list">
|
|
60
|
+
<li>
|
|
61
|
+
<a href="#"
|
|
62
|
+
class="mx-icon mx-icon--chevron-right"
|
|
63
|
+
>
|
|
64
|
+
Link one
|
|
65
|
+
</a>
|
|
66
|
+
</li>
|
|
67
|
+
<li>
|
|
68
|
+
<a href="#"
|
|
69
|
+
class="mx-icon mx-icon--chevron-right"
|
|
70
|
+
>
|
|
71
|
+
Link two
|
|
72
|
+
</a>
|
|
73
|
+
</li>
|
|
74
|
+
<li>
|
|
75
|
+
<a href="#"
|
|
76
|
+
class="mx-icon mx-icon--chevron-right"
|
|
77
|
+
>
|
|
78
|
+
Link three
|
|
79
|
+
</a>
|
|
80
|
+
</li>
|
|
81
|
+
</ul>
|
|
82
|
+
<a class="mx-link--more"
|
|
83
|
+
href="#"
|
|
84
|
+
>
|
|
85
|
+
<span>
|
|
86
|
+
Find out more
|
|
87
|
+
</span>
|
|
88
|
+
</a>
|
|
89
|
+
</div>
|
|
90
|
+
</article>
|
|
91
|
+
`;
|
|
92
|
+
|
|
93
|
+
exports[`Component/ContentBlock WithImage smoke-test 1`] = `
|
|
94
|
+
<article class="mx-content-block">
|
|
95
|
+
<figure class="mx-content-block__media">
|
|
96
|
+
<picture>
|
|
97
|
+
<img src="https://picsum.photos/id/56/558/418?grayscale"
|
|
98
|
+
alt="Blurry bubbles"
|
|
99
|
+
>
|
|
100
|
+
</picture>
|
|
101
|
+
</figure>
|
|
102
|
+
<div class="mx-content-block__content mx-vertical-flow-flex">
|
|
103
|
+
<h3>
|
|
104
|
+
Content block title
|
|
105
|
+
</h3>
|
|
106
|
+
<p>
|
|
107
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
108
|
+
</p>
|
|
109
|
+
<ul class="mx-link-list">
|
|
110
|
+
<li>
|
|
111
|
+
<a href="#"
|
|
112
|
+
class="mx-icon mx-icon--chevron-right"
|
|
113
|
+
>
|
|
114
|
+
Link one
|
|
115
|
+
</a>
|
|
116
|
+
</li>
|
|
117
|
+
<li>
|
|
118
|
+
<a href="#"
|
|
119
|
+
class="mx-icon mx-icon--chevron-right"
|
|
120
|
+
>
|
|
121
|
+
Link two
|
|
122
|
+
</a>
|
|
123
|
+
</li>
|
|
124
|
+
<li>
|
|
125
|
+
<a href="#"
|
|
126
|
+
class="mx-icon mx-icon--chevron-right"
|
|
127
|
+
>
|
|
128
|
+
Link three
|
|
129
|
+
</a>
|
|
130
|
+
</li>
|
|
131
|
+
</ul>
|
|
132
|
+
<a class="mx-link--more"
|
|
133
|
+
href="#"
|
|
134
|
+
>
|
|
135
|
+
<span>
|
|
136
|
+
Find out more
|
|
137
|
+
</span>
|
|
138
|
+
</a>
|
|
139
|
+
</div>
|
|
140
|
+
</article>
|
|
9
141
|
`;
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Component/ContentBlock ContentBlock smoke-test 1`] = `
|
|
4
|
-
<div class="content-block
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<p class="text--l">
|
|
11
|
-
Please make sure you have your account details ready.
|
|
12
|
-
</p>
|
|
13
|
-
<div class="content-block__actions horizontal-flow-flex">
|
|
14
|
-
<button class="button button--dark"
|
|
15
|
-
type="button"
|
|
4
|
+
<div class="mx-content-block">
|
|
5
|
+
<figure class="mx-content-block__media stack">
|
|
6
|
+
<div class="mx-skeleton mx-skeleton--bg">
|
|
7
|
+
</div>
|
|
8
|
+
<img alt
|
|
9
|
+
src="https://picsum.photos/id/56/558/418?grayscale"
|
|
16
10
|
>
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
</figure>
|
|
12
|
+
<div class="mx-content-block__content mx-vertical-flow">
|
|
13
|
+
<h3 class
|
|
14
|
+
id="content-block"
|
|
15
|
+
>
|
|
16
|
+
Content block
|
|
17
|
+
</h3>
|
|
18
|
+
<p class>
|
|
19
|
+
A short description to help explain enough about the subject matter to encourage visitors to learn more.
|
|
20
|
+
</p>
|
|
21
|
+
<a href="http://example.com"
|
|
22
|
+
class="mx-link mx-link--more"
|
|
23
|
+
>
|
|
24
|
+
Learn More
|
|
25
|
+
</a>
|
|
19
26
|
</div>
|
|
20
27
|
</div>
|
|
21
28
|
`;
|
|
@@ -3,19 +3,30 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
@layer design-system.components {
|
|
6
|
-
.content-block {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
text-align: center;
|
|
6
|
+
.mx-content-block {
|
|
7
|
+
display: grid;
|
|
8
|
+
gap: var(--content-block-gap, var(--gap));
|
|
10
9
|
|
|
11
|
-
& .
|
|
12
|
-
|
|
10
|
+
& .mx-link-list {
|
|
11
|
+
inline-size: 100%;
|
|
13
12
|
}
|
|
14
13
|
}
|
|
15
|
-
}
|
|
16
14
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
.mx-content-block__media {
|
|
16
|
+
display: grid;
|
|
17
|
+
margin: auto;
|
|
18
|
+
position: relative;
|
|
19
|
+
inline-size: 100%;
|
|
20
|
+
|
|
21
|
+
& img {
|
|
22
|
+
aspect-ratio: var(--ratio);
|
|
23
|
+
border-radius: var(--border-radius);
|
|
24
|
+
object-fit: cover;
|
|
25
|
+
display: block;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
& .mx-skeleton--bg {
|
|
29
|
+
aspect-ratio: var(--ratio);
|
|
30
|
+
}
|
|
20
31
|
}
|
|
21
32
|
}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
{%
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
{% set classes = ['mx-content-block'] %}
|
|
2
|
+
{% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
|
|
3
|
+
|
|
4
|
+
<article{{ attributes }}>
|
|
5
|
+
{% if image %}
|
|
6
|
+
<figure class="mx-content-block__media">
|
|
7
|
+
{{ image }}
|
|
8
|
+
</figure>
|
|
9
|
+
{% endif %}
|
|
10
|
+
{% if icon %}
|
|
11
|
+
<div class="mx-content-block__icon">
|
|
12
|
+
{{ icon }}
|
|
13
|
+
</div>
|
|
14
|
+
{% endif %}
|
|
15
|
+
<div class="mx-content-block__content mx-vertical-flow-flex">
|
|
16
|
+
{{ title }}
|
|
17
|
+
{{ content }}
|
|
18
|
+
{{ linkList }}
|
|
19
|
+
{{ link }}
|
|
10
20
|
</div>
|
|
11
|
-
|
|
12
|
-
|
|
21
|
+
</article>
|
|
22
|
+
|
|
@@ -4,7 +4,7 @@ import { useDropMenuContext } from "./DropMenuContext"
|
|
|
4
4
|
export type DropMenuItemProps = ComponentPropsWithoutRef<"button"> & {
|
|
5
5
|
label: string
|
|
6
6
|
id: string
|
|
7
|
-
role?: "menuitemradio" | "menuitemcheckbox"
|
|
7
|
+
role?: "menuitemradio" | "menuitemcheckbox" | "tab"
|
|
8
8
|
selected?: boolean
|
|
9
9
|
}
|
|
10
10
|
|