@pnx-mixtape/mxds 0.0.13 → 0.0.15
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/README.md +37 -23
- package/dist/build/accordion.css +1 -98
- package/dist/build/accordion.entry.js +1 -83
- package/dist/build/base.css +1 -996
- package/dist/build/breadcrumb.css +1 -51
- package/dist/build/button.css +1 -132
- package/dist/build/callout.css +1 -11
- package/dist/build/card.css +1 -149
- package/dist/build/carousel.css +1 -0
- package/dist/build/chunks/Accordion-RtUfbsTy.js +1 -0
- package/dist/build/chunks/disclosure-widget-CPdkUWkq.js +1 -0
- package/dist/build/chunks/drop-menu.entry-BqBzLfVC.js +1 -0
- package/dist/build/chunks/keyboard-Cs0cduxq.js +1 -0
- package/dist/build/chunks/polyfills-5KNOJw2W.js +1 -0
- package/dist/build/chunks/popover-CiVl-0jk.js +1 -0
- package/dist/build/chunks/utilities-CE6xwgqF.js +2 -0
- package/dist/build/constants.css +1 -120
- package/dist/build/container-grid.css +1 -208
- package/dist/build/content-block.css +1 -36
- package/dist/build/dialog.css +1 -98
- package/dist/build/dialog.entry.js +1 -113
- package/dist/build/drop-menu.css +1 -78
- package/dist/build/drop-menu.entry.js +1 -2
- package/dist/build/drupal.css +1 -74
- package/dist/build/filters.css +1 -105
- package/dist/build/filters.entry.js +1 -137
- package/dist/build/footer.css +1 -151
- package/dist/build/form.css +1 -517
- package/dist/build/global-alert.css +1 -60
- package/dist/build/global-alert.entry.js +1 -68
- package/dist/build/grid.css +1 -200
- package/dist/build/header.css +1 -153
- package/dist/build/header.entry.js +1 -103
- package/dist/build/hero-banner.css +1 -62
- package/dist/build/icon.css +1 -399
- package/dist/build/in-page-alert.css +1 -94
- package/dist/build/in-page-navigation.css +1 -17
- package/dist/build/in-page-navigation.entry.js +1 -99
- package/dist/build/link-list.css +1 -45
- package/dist/build/list-item.css +1 -114
- package/dist/build/masthead.css +1 -53
- package/dist/build/navigation.css +1 -396
- package/dist/build/navigation.entry.js +1 -124
- package/dist/build/page.css +1 -80
- package/dist/build/pagination.css +1 -130
- package/dist/build/results-bar.css +1 -0
- package/dist/build/section.css +1 -163
- package/dist/build/side-navigation.css +1 -88
- package/dist/build/sidebar.css +1 -59
- package/dist/build/social-links.css +1 -20
- package/dist/build/steps.css +1 -118
- package/dist/build/sticky.css +1 -47
- package/dist/build/sticky.entry.js +1 -60
- package/dist/build/tabs.css +1 -109
- package/dist/build/tabs.entry.js +1 -202
- package/dist/build/tag.css +1 -71
- package/dist/build/utilities.css +1 -178
- package/package.json +56 -64
- package/src/Atom/Background/Backgrounds.stories.ts +13 -1
- package/src/Atom/Background/__snapshots__/Backgrounds.stories.ts.snap +157 -81
- package/src/Atom/Background/_background.css +16 -10
- package/src/Atom/Base.mdx +25 -17
- package/src/Atom/Button/Button.stories.ts +1 -4
- package/src/Atom/Button/Button.stories.tsx +1 -1
- package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +47 -37
- package/src/Atom/Button/_buttons-styles.css +7 -7
- package/src/Atom/Button/_buttons.css +1 -6
- package/src/Atom/DefinitionList/DefinitionList.stories.ts +32 -0
- package/src/Atom/DefinitionList/DefinitionList.stories.tsx +1 -1
- package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.ts.snap +32 -0
- package/src/Atom/DefinitionList/definition-list.twig +9 -0
- package/src/Atom/Heading/Heading.stories.ts +1 -1
- package/src/Atom/Heading/Heading.stories.tsx +1 -1
- package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +5 -3
- package/src/Atom/Heading/_headings.css +24 -24
- package/src/Atom/Icon/Icon.mdx +1 -1
- package/src/Atom/Icon/Icon.stories.ts +1 -1
- package/src/Atom/Icon/Icon.stories.tsx +1 -1
- package/src/Atom/Icon/Icon.tsx +2 -2
- package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +14 -8
- package/src/Atom/Icon/_icon.css +4 -4
- package/src/Atom/Image/Image.stories.ts +1 -1
- package/src/Atom/Image/__snapshots__/Image.stories.ts.snap +7 -5
- package/src/Atom/Image/_image.css +2 -7
- package/src/Atom/Link/Link.stories.ts +1 -1
- package/src/Atom/Link/Link.stories.tsx +1 -1
- package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +50 -37
- package/src/Atom/Link/_links.css +2 -22
- package/src/Atom/Link/link.twig +1 -0
- package/src/Atom/Media/Media.stories.ts +2 -1
- package/src/Atom/Media/Media.stories.tsx +1 -1
- package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +11 -24
- package/src/Atom/Media/_media.css +8 -8
- package/src/Atom/Spacing/Spacing.stories.ts +1 -1
- package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +5 -3
- package/src/Atom/Table/Table.stories.ts +1 -1
- package/src/Atom/Table/TableResponsive.stories.ts +1 -1
- package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +256 -248
- package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +65 -63
- package/src/Atom/Text/Text.stories.tsx +1 -1
- package/src/Atom/Text/TextSizes.stories.ts +1 -1
- package/src/Atom/Text/__snapshots__/TextSizes.stories.ts.snap +59 -55
- package/src/Atom/Text/_text-sizes.css +17 -17
- package/src/Atom/Text/rich-text.twig +9 -0
- package/src/Atom/Video/Video.stories.ts +1 -1
- package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +9 -7
- package/src/Atom/_animated.css +0 -14
- package/src/Atom/_generic.css +57 -15
- package/src/Atom/base.css +1 -1
- package/src/Component/Accordion/Accordion.stories.ts +1 -4
- package/src/Component/Accordion/Accordion.stories.tsx +1 -2
- package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +60 -56
- package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +0 -1
- package/src/Component/Accordion/accordion.css +16 -4
- package/src/Component/Breadcrumb/Breadcrumb.stories.ts +1 -1
- package/src/Component/Breadcrumb/Breadcrumb.stories.tsx +1 -1
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +31 -29
- package/src/Component/Breadcrumb/breadcrumb.css +4 -0
- package/src/Component/Callout/Callout.stories.ts +1 -9
- package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +9 -7
- package/src/Component/Card/Card.stories.ts +11 -18
- package/src/Component/Card/Card.stories.tsx +1 -1
- package/src/Component/Card/Card.tsx +9 -5
- package/src/Component/Card/__snapshots__/Card.stories.ts.snap +257 -229
- package/src/Component/Card/card.css +36 -33
- package/src/Component/Card/card.twig +6 -6
- package/src/Component/Carousel/Carousel.stories.ts +201 -0
- package/src/Component/Carousel/Elements/Carousel.ts +241 -0
- package/src/Component/Carousel/__snapshots__/Carousel.stories.ts.snap +912 -0
- package/src/Component/Carousel/carousel.css +119 -0
- package/src/Component/Carousel/carousel.twig +27 -0
- package/src/Component/ContentBlock/ContentBlock.stories.ts +27 -19
- package/src/Component/ContentBlock/ContentBlock.stories.tsx +1 -1
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +153 -93
- package/src/Component/Dialog/Dialog.stories.ts +75 -7
- package/src/Component/Dialog/Dialog.stories.tsx +1 -1
- package/src/Component/Dialog/Elements/Dialog.ts +14 -34
- package/src/Component/Dialog/__snapshots__/Dialog.stories.ts.snap +102 -66
- package/src/Component/Dialog/dialog.css +32 -20
- package/src/Component/Dialog/dialog.twig +14 -15
- package/src/Component/DropMenu/Components/DropMenuContext.tsx +7 -9
- package/src/Component/DropMenu/Components/DropMenuItem.tsx +1 -1
- package/src/Component/DropMenu/DropMenu.stories.ts +1 -1
- package/src/Component/DropMenu/DropMenu.stories.tsx +1 -1
- package/src/Component/DropMenu/Elements/DropMenu.ts +1 -1
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +28 -26
- package/src/Component/DropMenu/drop-menu.css +11 -3
- package/src/Component/Filters/Filters.stories.ts +1 -4
- package/src/Component/Filters/__snapshots__/Filters.stories.ts.snap +397 -389
- package/src/Component/Filters/filters.css +14 -5
- package/src/Component/GlobalAlert/GlobalAlert.stories.ts +1 -1
- package/src/Component/GlobalAlert/GlobalAlert.stories.tsx +1 -1
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +33 -29
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +2 -2
- package/src/Component/GlobalAlert/global-alert.css +2 -2
- package/src/Component/HeroBanner/HeroBanner.stories.ts +1 -4
- package/src/Component/HeroBanner/HeroBanner.stories.tsx +1 -1
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +68 -64
- package/src/Component/HeroBanner/hero-banner.css +6 -1
- package/src/Component/HeroBanner/hero-banner.twig +3 -4
- package/src/Component/InPageAlert/InPageAlert.stories.ts +1 -1
- package/src/Component/InPageAlert/InPageAlert.stories.tsx +1 -1
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +10 -8
- package/src/Component/InPageAlert/in-page-alert.css +8 -8
- package/src/Component/InPageNavigation/Elements/InPageNavigation.ts +1 -1
- package/src/Component/InPageNavigation/InPageNavigation.stories.ts +1 -4
- package/src/Component/InPageNavigation/InPageNavigation.stories.tsx +1 -1
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +64 -62
- package/src/Component/LinkList/LinkList.stories.ts +1 -1
- package/src/Component/LinkList/LinkList.stories.tsx +1 -1
- package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +31 -29
- package/src/Component/ListItem/ListItem.stories.ts +2 -4
- package/src/Component/ListItem/ListItem.stories.tsx +1 -1
- package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +162 -148
- package/src/Component/ListItem/list-item.css +7 -88
- package/src/Component/ListItem/list-item.twig +8 -8
- package/src/Component/Navigation/Dropdown.stories.tsx +1 -1
- package/src/Component/Navigation/Navigation.stories.ts +1 -1
- package/src/Component/Navigation/Navigation.stories.tsx +1 -1
- package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +291 -283
- package/src/Component/Navigation/_navigation-collapsible.css +11 -14
- package/src/Component/Navigation/_navigation-dropdown.css +11 -17
- package/src/Component/Pagination/Components/PaginationContext.tsx +4 -8
- package/src/Component/Pagination/Pagination.stories.ts +1 -1
- package/src/Component/Pagination/Pagination.stories.tsx +1 -1
- package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +59 -57
- package/src/Component/Pagination/pagination.css +2 -8
- package/src/Component/ResultsBar/Components/ResultsBarInfo.tsx +28 -0
- package/src/Component/ResultsBar/Components/ResultsBarSort.tsx +17 -0
- package/src/Component/ResultsBar/ResultsBar.stories.ts +37 -0
- package/src/Component/ResultsBar/ResultsBar.stories.tsx +50 -0
- package/src/Component/ResultsBar/ResultsBar.tsx +7 -0
- package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.ts.snap +54 -0
- package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.tsx.snap +53 -0
- package/src/Component/ResultsBar/results-bar.css +19 -0
- package/src/Component/ResultsBar/results-bar.twig +24 -0
- package/src/Component/SideNavigation/SideNavigation.stories.ts +1 -1
- package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +82 -80
- package/src/Component/SideNavigation/side-navigation.css +2 -8
- package/src/Component/SocialLinks/SocialLinks.stories.ts +1 -1
- package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +30 -28
- package/src/Component/Steps/Steps.stories.ts +1 -1
- package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +86 -78
- package/src/Component/Steps/steps.css +1 -1
- package/src/Component/Sticky/Sticky.stories.ts +1 -1
- package/src/Component/Sticky/Sticky.stories.tsx +1 -1
- package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +9 -7
- package/src/Component/Tabs/Tabs.stories.ts +1 -1
- package/src/Component/Tabs/Tabs.stories.tsx +1 -1
- package/src/Component/Tabs/Tabs.tsx +4 -4
- package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +73 -71
- package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +0 -2
- package/src/Component/Tabs/tabs.css +14 -21
- package/src/Component/Tag/Tag.stories.ts +1 -1
- package/src/Component/Tag/Tag.stories.tsx +1 -1
- package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +59 -53
- package/src/Component/Tag/tag.css +6 -6
- package/src/Component/Tile/Tile.stories.ts +38 -12
- package/src/Component/Tile/Tile.stories.tsx +2 -2
- package/src/Component/Tile/Tile.tsx +30 -17
- package/src/Component/Tile/__snapshots__/Tile.stories.ts.snap +49 -75
- package/src/Component/Tile/__snapshots__/Tile.stories.tsx.snap +6 -16
- package/src/Form/Checkbox/Checkbox.stories.ts +1 -1
- package/src/Form/Checkbox/FormCheckbox.stories.tsx +1 -1
- package/src/Form/Checkbox/FormCheckbox.tsx +5 -7
- package/src/Form/Checkbox/__snapshots__/Checkbox.stories.ts.snap +23 -19
- package/src/Form/Description/Description.stories.ts +1 -1
- package/src/Form/Description/FormDescription.stories.tsx +1 -1
- package/src/Form/Description/FormStatus.stories.ts +1 -1
- package/src/Form/Description/__snapshots__/Description.stories.ts.snap +7 -5
- package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +14 -10
- package/src/Form/Form/Form.stories.tsx +1 -1
- package/src/Form/Form/FormTitle.stories.tsx +1 -1
- package/src/Form/FormItem/FormItem.stories.ts +1 -4
- package/src/Form/FormItem/FormItem.stories.tsx +1 -1
- package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +119 -109
- package/src/Form/FormItem/__snapshots__/FormItem.stories.tsx.snap +4 -4
- package/src/Form/Label/FormLabel.stories.tsx +1 -1
- package/src/Form/Label/FormLabel.tsx +1 -1
- package/src/Form/Label/Label.stories.ts +1 -1
- package/src/Form/Label/__snapshots__/Label.stories.ts.snap +21 -15
- package/src/Form/Radio/FormRadio.stories.tsx +1 -1
- package/src/Form/Radio/FormRadio.tsx +4 -4
- package/src/Form/Radio/Radio.stories.ts +1 -1
- package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +55 -51
- package/src/Form/Search/Search.stories.ts +1 -4
- package/src/Form/Search/__snapshots__/Search.stories.ts.snap +23 -21
- package/src/Form/Select/FormSelect.stories.tsx +1 -1
- package/src/Form/Select/FormSelect.tsx +1 -1
- package/src/Form/Select/Select.stories.ts +1 -1
- package/src/Form/Select/__snapshots__/Select.stories.ts.snap +18 -16
- package/src/Form/TextInput/FormText.stories.tsx +1 -1
- package/src/Form/TextInput/InputDivider.stories.ts +1 -1
- package/src/Form/TextInput/TextInput.stories.ts +1 -1
- package/src/Form/TextInput/__snapshots__/FormText.stories.tsx.snap +1 -1
- package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +24 -22
- package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +18 -14
- package/src/Form/Textarea/FormTextarea.stories.tsx +1 -1
- package/src/Form/Textarea/Textarea.stories.ts +1 -1
- package/src/Form/Textarea/__snapshots__/FormTextarea.stories.tsx.snap +1 -1
- package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +9 -7
- package/src/Form/form.css +24 -34
- package/src/Introduction.mdx +40 -0
- package/src/Layout/Footer/Footer.stories.ts +1 -6
- package/src/Layout/Footer/Footer.stories.tsx +1 -1
- package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +10 -10
- package/src/Layout/Footer/footer.css +2 -6
- package/src/Layout/Footer/footer.twig +0 -1
- package/src/Layout/Grid/Grid.stories.ts +8 -8
- package/src/Layout/Grid/Grid.stories.tsx +2 -2
- package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +38 -32
- package/src/Layout/Grid/container-grid.css +10 -10
- package/src/Layout/Grid/grid-item.twig +3 -1
- package/src/Layout/Grid/grid.css +3 -3
- package/src/Layout/Header/Header.stories.ts +1 -6
- package/src/Layout/Header/Header.stories.tsx +1 -1
- package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +11 -11
- package/src/Layout/Header/__snapshots__/Header.stories.tsx.snap +3 -3
- package/src/Layout/Header/_header.css +18 -16
- package/src/Layout/Header/header.twig +1 -2
- package/src/Layout/Masthead/Masthead.stories.ts +1 -3
- package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +6 -6
- package/src/Layout/Masthead/masthead.twig +0 -2
- package/src/Layout/Page/Page.stories.tsx +1 -1
- package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +3 -3
- package/src/Layout/Page/page.css +16 -40
- package/src/Layout/Page/page.twig +6 -1
- package/src/Layout/Section/Background.stories.ts +60 -8
- package/src/Layout/Section/Breakouts.stories.ts +1 -3
- package/src/Layout/Section/Flow.stories.ts +1 -3
- package/src/Layout/Section/Section.stories.ts +1 -6
- package/src/Layout/Section/Section.stories.tsx +1 -1
- package/src/Layout/Section/SectionGrid.stories.tsx +1 -1
- package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +36 -24
- package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +54 -52
- package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +18 -18
- package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +2 -2
- package/src/Layout/Section/section.css +15 -18
- package/src/Layout/Section/section.twig +0 -1
- package/src/Layout/Section/twig/section-background.twig +29 -10
- package/src/Layout/Section/twig/sections-breakout.twig +28 -33
- package/src/Layout/Section/twig/sections-flow.twig +17 -17
- package/src/Layout/Section/twig/sections-stacked.twig +4 -4
- package/src/Layout/Sidebar/Sidebar.stories.ts +1 -3
- package/src/Layout/Sidebar/Sidebar.stories.tsx +1 -1
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +5 -5
- package/src/Layout/Sidebar/sidebar.css +2 -18
- package/src/Utility/Context/ImageComponent.tsx +3 -6
- package/src/Utility/Context/LinkComponent.tsx +3 -6
- package/src/Utility/Drupal/drupal.css +1 -5
- package/src/Utility/Elements/breakpoint-loader.ts +0 -1
- package/src/Utility/Elements/cookie-compliance.ts +0 -1
- package/src/Utility/Elements/io-loader.ts +0 -1
- package/src/Utility/Hooks/useLocalStorage.ts +0 -1
- package/src/Utility/Hooks/useMediaQuery.ts +0 -1
- package/src/Utility/Hooks/useToggle.ts +0 -1
- package/src/Utility/global.d.ts +0 -1
- package/src/Utility/utilities.ts +0 -1
- package/src/constants.css +53 -24
- package/src/enums.ts +1 -2
- package/src/react.ts +3 -0
- package/src/tokens.js +19 -19
- package/dist/build/accordion.entry.js.map +0 -1
- package/dist/build/chunks/Accordion-DSze7pxN.js +0 -61
- package/dist/build/chunks/Accordion-DSze7pxN.js.map +0 -1
- 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/drop-menu.entry-BC6x9vst.js +0 -132
- package/dist/build/chunks/drop-menu.entry-BC6x9vst.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/dialog.entry.js.map +0 -1
- package/dist/build/drop-menu.entry.js.map +0 -1
- package/dist/build/filters.entry.js.map +0 -1
- package/dist/build/global-alert.entry.js.map +0 -1
- package/dist/build/header.entry.js.map +0 -1
- package/dist/build/in-page-navigation.entry.js.map +0 -1
- package/dist/build/navigation.entry.js.map +0 -1
- package/dist/build/sticky.entry.js.map +0 -1
- package/dist/build/tabs.entry.js.map +0 -1
- package/dist/build/tiles.css +0 -61
- package/src/Component/Tile/tile.twig +0 -10
- package/src/Component/Tile/tiles.css +0 -58
- package/src/Component/Tile/twig/tiles.twig +0 -18
|
@@ -1,98 +1,100 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Component/Tabs Tabs smoke-test 1`] = `
|
|
4
|
-
<
|
|
5
|
-
<mx-
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<mx-tabs class="mx-tabs mx-tabs--lined">
|
|
6
|
+
<mx-dropmenu closeonclick="true">
|
|
7
|
+
<button id="unique-0"
|
|
8
|
+
class="mx-drop-menu__trigger mx-button mx-icon mx-icon--chevron-down mx-icon--end"
|
|
9
|
+
popovertarget="tab-drop-menu"
|
|
10
|
+
hidden
|
|
11
|
+
>
|
|
12
|
+
Funk
|
|
13
|
+
</button>
|
|
14
|
+
<div class="mx-drop-menu"
|
|
15
|
+
id="tab-drop-menu"
|
|
16
|
+
aria-labelledby="unique-0"
|
|
17
|
+
anchor="tab-drop-menu-target"
|
|
18
|
+
popover
|
|
19
|
+
role="tablist"
|
|
20
|
+
>
|
|
21
|
+
<button type="button"
|
|
22
|
+
role="tab"
|
|
23
|
+
aria-controls="unique-1"
|
|
24
|
+
aria-selected="false"
|
|
25
|
+
>
|
|
26
|
+
Funk
|
|
27
|
+
</button>
|
|
28
|
+
<button type="button"
|
|
29
|
+
role="tab"
|
|
30
|
+
aria-controls="unique-2"
|
|
31
|
+
aria-selected="false"
|
|
32
|
+
>
|
|
33
|
+
Soul
|
|
34
|
+
</button>
|
|
35
|
+
<button type="button"
|
|
36
|
+
role="tab"
|
|
37
|
+
aria-controls="unique-3"
|
|
38
|
+
aria-selected="false"
|
|
39
|
+
>
|
|
40
|
+
Motown
|
|
41
|
+
</button>
|
|
42
|
+
</div>
|
|
43
|
+
</mx-dropmenu>
|
|
44
|
+
<div class="mx-tabs__list"
|
|
18
45
|
role="tablist"
|
|
19
46
|
>
|
|
20
47
|
<button type="button"
|
|
21
48
|
role="tab"
|
|
22
|
-
aria-controls="unique-
|
|
23
|
-
aria-selected="
|
|
49
|
+
aria-controls="unique-4"
|
|
50
|
+
aria-selected="true"
|
|
51
|
+
tab-index="0"
|
|
24
52
|
>
|
|
25
53
|
Funk
|
|
26
54
|
</button>
|
|
27
55
|
<button type="button"
|
|
28
56
|
role="tab"
|
|
29
|
-
aria-controls="unique-
|
|
57
|
+
aria-controls="unique-5"
|
|
30
58
|
aria-selected="false"
|
|
59
|
+
tab-index="-1"
|
|
31
60
|
>
|
|
32
61
|
Soul
|
|
33
62
|
</button>
|
|
34
63
|
<button type="button"
|
|
35
64
|
role="tab"
|
|
36
|
-
aria-controls="unique-
|
|
65
|
+
aria-controls="unique-6"
|
|
37
66
|
aria-selected="false"
|
|
67
|
+
tab-index="-1"
|
|
38
68
|
>
|
|
39
69
|
Motown
|
|
40
70
|
</button>
|
|
41
71
|
</div>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
role="tab"
|
|
48
|
-
aria-controls="unique-4"
|
|
49
|
-
aria-selected="true"
|
|
50
|
-
tab-index="0"
|
|
72
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container mx-section--l"
|
|
73
|
+
id="unique-1"
|
|
74
|
+
role="tabpanel"
|
|
75
|
+
tabindex="0"
|
|
76
|
+
aria-label="Funk"
|
|
51
77
|
>
|
|
52
|
-
Funk
|
|
53
|
-
</
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
78
|
+
Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
79
|
+
</div>
|
|
80
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container mx-section--l"
|
|
81
|
+
id="unique-2"
|
|
82
|
+
role="tabpanel"
|
|
83
|
+
tabindex="0"
|
|
84
|
+
aria-label="Soul"
|
|
85
|
+
inert
|
|
59
86
|
>
|
|
60
|
-
Soul
|
|
61
|
-
</
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
87
|
+
Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.
|
|
88
|
+
</div>
|
|
89
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container mx-section--l"
|
|
90
|
+
id="unique-3"
|
|
91
|
+
role="tabpanel"
|
|
92
|
+
tabindex="0"
|
|
93
|
+
aria-label="Motown"
|
|
94
|
+
inert
|
|
67
95
|
>
|
|
68
|
-
Motown
|
|
69
|
-
</
|
|
70
|
-
</
|
|
71
|
-
|
|
72
|
-
id="unique-1"
|
|
73
|
-
role="tabpanel"
|
|
74
|
-
tabindex="0"
|
|
75
|
-
aria-label="Funk"
|
|
76
|
-
>
|
|
77
|
-
Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
78
|
-
</div>
|
|
79
|
-
<div class="mx-tabs__panel mx-vertical-flow mx-container mx-section--l"
|
|
80
|
-
id="unique-2"
|
|
81
|
-
role="tabpanel"
|
|
82
|
-
tabindex="0"
|
|
83
|
-
aria-label="Soul"
|
|
84
|
-
inert
|
|
85
|
-
>
|
|
86
|
-
Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.
|
|
87
|
-
</div>
|
|
88
|
-
<div class="mx-tabs__panel mx-vertical-flow mx-container mx-section--l"
|
|
89
|
-
id="unique-3"
|
|
90
|
-
role="tabpanel"
|
|
91
|
-
tabindex="0"
|
|
92
|
-
aria-label="Motown"
|
|
93
|
-
inert
|
|
94
|
-
>
|
|
95
|
-
Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
96
|
-
</div>
|
|
97
|
-
</mx-tabs>
|
|
96
|
+
Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
97
|
+
</div>
|
|
98
|
+
</mx-tabs>
|
|
99
|
+
</div>
|
|
98
100
|
`;
|
|
@@ -93,7 +93,6 @@ exports[`Component/Tabs Default smoke-test 1`] = `
|
|
|
93
93
|
</div>
|
|
94
94
|
<div id="unique-5"
|
|
95
95
|
class="mx-tabs__panel mx-vertical-flow mx-section--l"
|
|
96
|
-
inert
|
|
97
96
|
aria-labelledby="unique-8"
|
|
98
97
|
role="tabpanel"
|
|
99
98
|
tabindex="0"
|
|
@@ -104,7 +103,6 @@ exports[`Component/Tabs Default smoke-test 1`] = `
|
|
|
104
103
|
</div>
|
|
105
104
|
<div id="unique-6"
|
|
106
105
|
class="mx-tabs__panel mx-vertical-flow mx-section--l"
|
|
107
|
-
inert
|
|
108
106
|
aria-labelledby="unique-9"
|
|
109
107
|
role="tabpanel"
|
|
110
108
|
tabindex="0"
|
|
@@ -11,12 +11,20 @@
|
|
|
11
11
|
@layer design-system.components {
|
|
12
12
|
.mx-tabs {
|
|
13
13
|
position: relative;
|
|
14
|
+
display: grid;
|
|
15
|
+
grid-template-areas: "tabs" "panels";
|
|
14
16
|
|
|
15
17
|
&:where(:not(:first-child)) {
|
|
16
18
|
margin-block-start: var(--flow-gap, var(--gap));
|
|
17
19
|
}
|
|
18
20
|
|
|
21
|
+
& mx-dropmenu {
|
|
22
|
+
grid-area: tabs;
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
& .mx-tabs__list {
|
|
26
|
+
grid-area: tabs;
|
|
27
|
+
|
|
20
28
|
@media (--medium-up) {
|
|
21
29
|
display: flex;
|
|
22
30
|
flex-wrap: wrap;
|
|
@@ -27,7 +35,6 @@
|
|
|
27
35
|
border: 0;
|
|
28
36
|
display: block;
|
|
29
37
|
font-family: inherit;
|
|
30
|
-
outline-offset: var(--outline-offset);
|
|
31
38
|
min-inline-size: var(--tab-min-width, 0);
|
|
32
39
|
padding-block: var(--vertical-padding, var(--spacing-xxs));
|
|
33
40
|
padding-inline: var(--horizontal-padding, var(--spacing-m));
|
|
@@ -51,14 +58,17 @@
|
|
|
51
58
|
}
|
|
52
59
|
|
|
53
60
|
& .mx-tabs__panel {
|
|
61
|
+
grid-area: panels;
|
|
54
62
|
inline-size: 100%;
|
|
63
|
+
opacity: 1;
|
|
55
64
|
|
|
56
|
-
|
|
57
|
-
|
|
65
|
+
@starting-style {
|
|
66
|
+
opacity: 0;
|
|
58
67
|
}
|
|
59
68
|
|
|
60
69
|
&[inert] {
|
|
61
|
-
|
|
70
|
+
opacity: 0;
|
|
71
|
+
transition-duration: 0.4s;
|
|
62
72
|
}
|
|
63
73
|
}
|
|
64
74
|
|
|
@@ -85,22 +95,5 @@
|
|
|
85
95
|
}
|
|
86
96
|
}
|
|
87
97
|
}
|
|
88
|
-
|
|
89
|
-
&.mx-tabs--same-height {
|
|
90
|
-
display: grid;
|
|
91
|
-
|
|
92
|
-
& .mx-tabs__panel {
|
|
93
|
-
grid-column-start: 1;
|
|
94
|
-
grid-row-start: 2;
|
|
95
|
-
z-index: 2;
|
|
96
|
-
transition: opacity 0.2s ease-in-out;
|
|
97
|
-
|
|
98
|
-
&[inert] {
|
|
99
|
-
display: block;
|
|
100
|
-
opacity: 0;
|
|
101
|
-
z-index: 1;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
98
|
}
|
|
106
99
|
}
|
|
@@ -1,64 +1,70 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Component/Tag Checkbox smoke-test 1`] = `
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<ul class="mx-tags">
|
|
6
|
+
<li>
|
|
7
|
+
<div class="mx-tag">
|
|
8
|
+
<input type="checkbox"
|
|
9
|
+
id="music"
|
|
10
|
+
name="tag"
|
|
11
|
+
value="music"
|
|
12
|
+
>
|
|
13
|
+
<label for="music">
|
|
14
|
+
Music
|
|
15
|
+
</label>
|
|
16
|
+
</div>
|
|
17
|
+
</li>
|
|
18
|
+
<li>
|
|
19
|
+
<div class="mx-tag">
|
|
20
|
+
<input type="checkbox"
|
|
21
|
+
id="news"
|
|
22
|
+
name="tag"
|
|
23
|
+
value="news"
|
|
24
|
+
>
|
|
25
|
+
<label for="news">
|
|
26
|
+
News
|
|
27
|
+
</label>
|
|
28
|
+
</div>
|
|
29
|
+
</li>
|
|
30
|
+
</ul>
|
|
31
|
+
</div>
|
|
32
|
+
`;
|
|
33
|
+
|
|
34
|
+
exports[`Component/Tag Link smoke-test 1`] = `
|
|
35
|
+
<div class="mx-page default">
|
|
36
|
+
<ul class="mx-tags">
|
|
37
|
+
<li>
|
|
38
|
+
<a class="mx-tag"
|
|
39
|
+
href="#0"
|
|
11
40
|
>
|
|
12
|
-
<label for="music">
|
|
13
41
|
Music
|
|
14
|
-
</
|
|
15
|
-
</
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<input type="checkbox"
|
|
20
|
-
id="news"
|
|
21
|
-
name="tag"
|
|
22
|
-
value="news"
|
|
42
|
+
</a>
|
|
43
|
+
</li>
|
|
44
|
+
<li>
|
|
45
|
+
<a class="mx-tag"
|
|
46
|
+
href="#0"
|
|
23
47
|
>
|
|
24
|
-
<label for="news">
|
|
25
48
|
News
|
|
26
|
-
</
|
|
27
|
-
</
|
|
28
|
-
</
|
|
29
|
-
</
|
|
30
|
-
`;
|
|
31
|
-
|
|
32
|
-
exports[`Component/Tag Link smoke-test 1`] = `
|
|
33
|
-
<ul class="mx-tags">
|
|
34
|
-
<li>
|
|
35
|
-
<a class="mx-tag"
|
|
36
|
-
href="#0"
|
|
37
|
-
>
|
|
38
|
-
Music
|
|
39
|
-
</a>
|
|
40
|
-
</li>
|
|
41
|
-
<li>
|
|
42
|
-
<a class="mx-tag"
|
|
43
|
-
href="#0"
|
|
44
|
-
>
|
|
45
|
-
News
|
|
46
|
-
</a>
|
|
47
|
-
</li>
|
|
48
|
-
</ul>
|
|
49
|
+
</a>
|
|
50
|
+
</li>
|
|
51
|
+
</ul>
|
|
52
|
+
</div>
|
|
49
53
|
`;
|
|
50
54
|
|
|
51
55
|
exports[`Component/Tag Tag smoke-test 1`] = `
|
|
52
|
-
<
|
|
53
|
-
<
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
</
|
|
56
|
+
<div class="mx-page default">
|
|
57
|
+
<ul class="mx-tags">
|
|
58
|
+
<li>
|
|
59
|
+
<span class="mx-tag">
|
|
60
|
+
Music
|
|
61
|
+
</span>
|
|
62
|
+
</li>
|
|
63
|
+
<li>
|
|
64
|
+
<span class="mx-tag">
|
|
65
|
+
News
|
|
66
|
+
</span>
|
|
67
|
+
</li>
|
|
68
|
+
</ul>
|
|
69
|
+
</div>
|
|
64
70
|
`;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
@layer design-system.components {
|
|
6
6
|
.mx-tag {
|
|
7
|
-
display: inline-
|
|
7
|
+
display: inline-flex;
|
|
8
8
|
inline-size: fit-content;
|
|
9
9
|
padding-inline: var(--horizontal-padding, var(--spacing-xxxs));
|
|
10
10
|
background: var(
|
|
@@ -22,11 +22,9 @@
|
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
|
|
24
24
|
&:has(input:focus) {
|
|
25
|
-
--outline-size
|
|
26
|
-
|
|
27
|
-
outline: var(--outline-
|
|
28
|
-
var(--outline-style, solid) var(--outline-color, currentcolor);
|
|
29
|
-
outline-offset: var(--outline-offset, var(--outline-size));
|
|
25
|
+
outline: var(--outline-size, 2px) var(--outline-style, solid)
|
|
26
|
+
var(--outline-color, currentcolor);
|
|
27
|
+
outline-offset: var(--outline-size, 2px);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
& input {
|
|
@@ -57,5 +55,7 @@
|
|
|
57
55
|
flex-flow: row wrap;
|
|
58
56
|
align-items: center;
|
|
59
57
|
gap: var(--tags-gap, var(--spacing-s));
|
|
58
|
+
overflow: clip;
|
|
59
|
+
overflow-clip-margin: var(--spacing-xxxs);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -1,23 +1,49 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/html"
|
|
2
|
-
import Component from "
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/html-vite"
|
|
2
|
+
import Component from "../Card/card.twig"
|
|
3
|
+
import "../Card/card.css"
|
|
4
|
+
import { MxCardType } from "../Card/Card.stories"
|
|
5
|
+
import { HeadingTypes, ListItemModifiers } from "@pnx-mixtape/ids-shape"
|
|
6
|
+
import { BackgroundStyles, Icons } from "../../enums"
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
// Deps.
|
|
9
|
+
import Heading from "../../Atom/Heading/heading.twig"
|
|
10
|
+
import Link from "../../Atom/Link/link.twig"
|
|
11
|
+
import Icon from "../../Atom/Icon/icon.twig"
|
|
9
12
|
|
|
10
|
-
const meta: Meta<
|
|
13
|
+
const meta: Meta<MxCardType> = {
|
|
11
14
|
tags: ["autodocs"],
|
|
12
15
|
component: Component,
|
|
16
|
+
args: {
|
|
17
|
+
title: Heading({
|
|
18
|
+
title: "Tile title",
|
|
19
|
+
as: HeadingTypes.THREE,
|
|
20
|
+
}),
|
|
21
|
+
link: Link({
|
|
22
|
+
href: "#",
|
|
23
|
+
title: "Find out more",
|
|
24
|
+
more: true,
|
|
25
|
+
}),
|
|
26
|
+
content: "<p>Tiles are just block cards without an image.</p>",
|
|
27
|
+
background: BackgroundStyles.BOX,
|
|
28
|
+
modifiers: [ListItemModifiers.BLOCK],
|
|
29
|
+
},
|
|
13
30
|
argTypes: {
|
|
14
|
-
|
|
31
|
+
background: {
|
|
32
|
+
options: Object.values(BackgroundStyles),
|
|
33
|
+
control: "select",
|
|
34
|
+
},
|
|
15
35
|
},
|
|
16
36
|
}
|
|
17
37
|
|
|
18
38
|
export default meta
|
|
19
|
-
type Story = StoryObj<
|
|
39
|
+
type Story = StoryObj<MxCardType>
|
|
20
40
|
|
|
21
|
-
export const Tile: Story = {
|
|
22
|
-
|
|
41
|
+
export const Tile: Story = {}
|
|
42
|
+
|
|
43
|
+
export const WithIcon: Story = {
|
|
44
|
+
args: {
|
|
45
|
+
icon: Icon({
|
|
46
|
+
icon: Icons.HEART,
|
|
47
|
+
}),
|
|
48
|
+
},
|
|
23
49
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react"
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react-vite"
|
|
2
2
|
import Component from "./Tile"
|
|
3
|
-
import "
|
|
3
|
+
import "../Card/card.css"
|
|
4
4
|
import { AsTags, HeadingLevels, TileSizes } from "../../enums"
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof Component> = {
|
|
@@ -1,38 +1,51 @@
|
|
|
1
|
-
import { JSX, PropsWithChildren } from "react"
|
|
1
|
+
import { JSX, ReactNode, PropsWithChildren } from "react"
|
|
2
2
|
import classNames from "classnames"
|
|
3
3
|
import Heading from "../../Atom/Heading/Heading"
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { HeadingStyles, BackgroundStyles } from "../../enums"
|
|
5
|
+
import { HeadingTypes, AsTypes } from "@pnx-mixtape/ids-shape"
|
|
6
|
+
import Icon, { IconProps } from "../../Atom/Icon/Icon"
|
|
7
7
|
|
|
8
8
|
type TileProps = PropsWithChildren & {
|
|
9
9
|
title: string
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
icon?: IconProps
|
|
11
|
+
intro?: ReactNode
|
|
12
12
|
headingLevel?: HeadingTypes
|
|
13
|
-
|
|
14
|
-
as?:
|
|
13
|
+
headingModifier?: HeadingStyles
|
|
14
|
+
as?: AsTypes
|
|
15
|
+
background?: BackgroundStyles
|
|
16
|
+
className?: string
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
const Tile = ({
|
|
18
20
|
title,
|
|
19
|
-
to,
|
|
20
|
-
linkText,
|
|
21
|
-
headingLevel = HeadingTypes.THREE,
|
|
22
21
|
children,
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
icon = null,
|
|
23
|
+
intro = null,
|
|
24
|
+
headingLevel = HeadingTypes.THREE,
|
|
25
|
+
headingModifier = null,
|
|
26
|
+
as = AsTypes.DIV,
|
|
27
|
+
className = null,
|
|
28
|
+
background = BackgroundStyles.BOX,
|
|
25
29
|
}: TileProps): JSX.Element => {
|
|
26
30
|
const Tag: JSX.ElementType = `${as}` as unknown as JSX.ElementType
|
|
27
31
|
return (
|
|
28
|
-
<Tag
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
<Tag
|
|
33
|
+
className={classNames("mx-card", "mx-card--block", className, {
|
|
34
|
+
[`mx-background--${background}`]: background,
|
|
35
|
+
})}
|
|
36
|
+
>
|
|
37
|
+
{icon && (
|
|
38
|
+
<div className="mx-card__icon">
|
|
39
|
+
<Icon {...icon} />
|
|
40
|
+
</div>
|
|
41
|
+
)}
|
|
42
|
+
<div className={classNames("mx-card__content", "mx-vertical-flow-flex")}>
|
|
43
|
+
{intro}
|
|
44
|
+
<Heading as={headingLevel} modifier={headingModifier}>
|
|
31
45
|
{title}
|
|
32
46
|
</Heading>
|
|
33
47
|
{children}
|
|
34
48
|
</div>
|
|
35
|
-
{to && <Link to={to}>{linkText}</Link>}
|
|
36
49
|
</Tag>
|
|
37
50
|
)
|
|
38
51
|
}
|