@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,63 +1,67 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Typography/Text Sizes Example smoke-test 1`] = `
|
|
4
|
-
<div class="
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<div class="vertical-flow">
|
|
6
|
+
<p class="mx-text--embellished-headline">
|
|
7
|
+
Embelished headline: Lorem ipsum dolor sit amet consectetur
|
|
8
|
+
</p>
|
|
9
|
+
<p class="mx-text--section-headline">
|
|
10
|
+
Section headline: Lorem ipsum dolor sit amet consectetur
|
|
11
|
+
</p>
|
|
12
|
+
<h2 class="mx-headline">
|
|
13
|
+
Headline: Lorem ipsum dolor sit amet consectetur
|
|
14
|
+
</h2>
|
|
15
|
+
<p class="mx-heading--xxl">
|
|
16
|
+
Heading xxl: Lorem ipsum dolor sit amet consectetur
|
|
17
|
+
</p>
|
|
18
|
+
<p class="mx-heading--xl">
|
|
19
|
+
Heading xl: Lorem ipsum dolor sit amet consectetur
|
|
20
|
+
</p>
|
|
21
|
+
<p class="mx-heading--l">
|
|
22
|
+
Heading l: Lorem ipsum dolor sit amet consectetur
|
|
23
|
+
</p>
|
|
24
|
+
<p class="mx-heading--m">
|
|
25
|
+
Heading m: Lorem ipsum dolor sit amet consectetur
|
|
26
|
+
</p>
|
|
27
|
+
<p class="mx-heading--s">
|
|
28
|
+
Heading s: Lorem ipsum dolor sit amet consectetur
|
|
29
|
+
</p>
|
|
30
|
+
<p class="mx-heading--xs">
|
|
31
|
+
Heading xs: Lorem ipsum dolor sit amet consectetur
|
|
32
|
+
</p>
|
|
33
|
+
<p class="mx-text--xxxl">
|
|
34
|
+
Text xxxl: Lorem ipsum dolor sit amet consectetur
|
|
35
|
+
</p>
|
|
36
|
+
<p class="mx-text--xxl">
|
|
37
|
+
Text xxl: Lorem ipsum dolor sit amet consectetur
|
|
38
|
+
</p>
|
|
39
|
+
<p class="mx-text--xl">
|
|
40
|
+
Text xl: Lorem ipsum dolor sit amet consectetur
|
|
41
|
+
</p>
|
|
42
|
+
<p class="mx-text--l">
|
|
43
|
+
Text l: Lorem ipsum dolor sit amet consectetur
|
|
44
|
+
</p>
|
|
45
|
+
<p class="mx-text--m">
|
|
46
|
+
Text m: Lorem ipsum dolor sit amet consectetur
|
|
47
|
+
</p>
|
|
48
|
+
<p>
|
|
49
|
+
Text: Lorem ipsum dolor sit amet consectetur
|
|
50
|
+
</p>
|
|
51
|
+
<p class="mx-text--s">
|
|
52
|
+
Text s: Lorem ipsum dolor sit amet consectetur
|
|
53
|
+
</p>
|
|
54
|
+
<p class="mx-text--xs">
|
|
55
|
+
Text xs: Lorem ipsum dolor sit amet consectetur
|
|
56
|
+
</p>
|
|
57
|
+
</div>
|
|
56
58
|
</div>
|
|
57
59
|
`;
|
|
58
60
|
|
|
59
61
|
exports[`Atom/Typography/Text Sizes TextSizes smoke-test 1`] = `
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
<div class="mx-page default">
|
|
63
|
+
<p class>
|
|
64
|
+
In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content (also called greeking). Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
|
|
65
|
+
</p>
|
|
66
|
+
</div>
|
|
63
67
|
`;
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
@layer design-system.atoms {
|
|
2
2
|
:is(
|
|
3
|
+
.mx-text--section-headline,
|
|
4
|
+
.mx-text--embellished-headline,
|
|
5
|
+
.mx-text--lede,
|
|
6
|
+
.mx-text--xs,
|
|
7
|
+
.mx-text--s,
|
|
8
|
+
.mx-text--m,
|
|
9
|
+
.mx-text--l,
|
|
10
|
+
.mx-text--xl,
|
|
11
|
+
.mx-text--xxl,
|
|
12
|
+
.mx-text--xxxl,
|
|
13
|
+
.mx-text--fluid
|
|
14
|
+
) {
|
|
15
|
+
font-size: var(--font-size);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@supports (font-size: 1cqi) {
|
|
19
|
+
:is(
|
|
3
20
|
.mx-text--section-headline,
|
|
4
|
-
.mx-text--embellished-headline,
|
|
5
21
|
.mx-text--lede,
|
|
6
|
-
.mx-text--xs,
|
|
7
|
-
.mx-text--s,
|
|
8
22
|
.mx-text--m,
|
|
9
23
|
.mx-text--l,
|
|
10
24
|
.mx-text--xl,
|
|
@@ -12,20 +26,6 @@
|
|
|
12
26
|
.mx-text--xxxl,
|
|
13
27
|
.mx-text--fluid
|
|
14
28
|
) {
|
|
15
|
-
font-size: var(--font-size);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@supports (font-size: 1cqi) {
|
|
19
|
-
:is(
|
|
20
|
-
.mx-text--section-headline,
|
|
21
|
-
.mx-text--lede,
|
|
22
|
-
.mx-text--m,
|
|
23
|
-
.mx-text--l,
|
|
24
|
-
.mx-text--xl,
|
|
25
|
-
.mx-text--xxl,
|
|
26
|
-
.mx-text--xxxl,
|
|
27
|
-
.mx-text--fluid
|
|
28
|
-
) {
|
|
29
29
|
--font-min: calc(
|
|
30
30
|
var(--font-size) - var(--font-size) * var(--font-size-diff, 0.3)
|
|
31
31
|
);
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Video Video smoke-test 1`] = `
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
</
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<figure class="mx-video">
|
|
6
|
+
<iframe src="https://www.youtube.com/embed/NpEaa2P7qZI"
|
|
7
|
+
title="Something from youtube"
|
|
8
|
+
allowfullscreen
|
|
9
|
+
>
|
|
10
|
+
</iframe>
|
|
11
|
+
</figure>
|
|
12
|
+
</div>
|
|
11
13
|
`;
|
package/src/Atom/_animated.css
CHANGED
|
@@ -49,17 +49,3 @@
|
|
|
49
49
|
transform: scale(0.75);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
@media (--reduce-motion) {
|
|
54
|
-
*,
|
|
55
|
-
::before,
|
|
56
|
-
::after {
|
|
57
|
-
animation-delay: -1ms !important;
|
|
58
|
-
animation-duration: 1ms !important;
|
|
59
|
-
animation-iteration-count: 1 !important;
|
|
60
|
-
background-attachment: initial !important;
|
|
61
|
-
scroll-behavior: auto !important;
|
|
62
|
-
transition-delay: 0s !important;
|
|
63
|
-
transition-duration: 0s !important;
|
|
64
|
-
}
|
|
65
|
-
}
|
package/src/Atom/_generic.css
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
@layer design-system.defaults {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
background-repeat: no-repeat;
|
|
2
|
+
@media (--use-motion) {
|
|
3
|
+
@view-transition {
|
|
4
|
+
navigation: auto;
|
|
5
|
+
}
|
|
7
6
|
}
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
:is(*, ::before, ::after) {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
background-repeat: no-repeat;
|
|
10
11
|
margin: 0;
|
|
12
|
+
opacity: 1;
|
|
13
|
+
transition-property:
|
|
14
|
+
opacity, color, background-color, border-color, transform, rotate,
|
|
15
|
+
display, overlay;
|
|
16
|
+
transition-duration: 0.5s;
|
|
17
|
+
transition-timing-function: var(--ease);
|
|
18
|
+
transition-behavior: allow-discrete;
|
|
19
|
+
|
|
20
|
+
@starting-style {
|
|
21
|
+
opacity: 0;
|
|
22
|
+
}
|
|
11
23
|
}
|
|
12
24
|
|
|
13
25
|
:focus {
|
|
@@ -15,11 +27,9 @@
|
|
|
15
27
|
}
|
|
16
28
|
|
|
17
29
|
:focus-visible {
|
|
18
|
-
--outline-size
|
|
19
|
-
|
|
20
|
-
outline: var(--outline-
|
|
21
|
-
var(--outline-style, solid) var(--outline-color, currentcolor);
|
|
22
|
-
outline-offset: var(--outline-offset, var(--outline-size));
|
|
30
|
+
outline: var(--outline-size, 2px) var(--outline-style, solid)
|
|
31
|
+
var(--outline-color, currentcolor);
|
|
32
|
+
outline-offset: var(--outline-offset, var(--outline-size, 2px));
|
|
23
33
|
}
|
|
24
34
|
|
|
25
35
|
html {
|
|
@@ -64,13 +74,31 @@
|
|
|
64
74
|
}
|
|
65
75
|
|
|
66
76
|
dl {
|
|
67
|
-
display:
|
|
68
|
-
|
|
77
|
+
display: grid;
|
|
78
|
+
grid-template-columns: min(100%, var(--grid-min, 20ch)) 1fr;
|
|
79
|
+
grid-template-rows: 1fr;
|
|
69
80
|
gap: var(--spacing-xs);
|
|
70
81
|
|
|
82
|
+
&:has(> div) {
|
|
83
|
+
container-type: inline-size;
|
|
84
|
+
}
|
|
85
|
+
|
|
71
86
|
& div {
|
|
72
|
-
display:
|
|
73
|
-
|
|
87
|
+
display: grid;
|
|
88
|
+
grid-template-columns: subgrid;
|
|
89
|
+
grid-column: span 2;
|
|
90
|
+
|
|
91
|
+
@container (max-width: 60ch) {
|
|
92
|
+
gap: var(--spacing-xxxs);
|
|
93
|
+
|
|
94
|
+
& > :is(dt, dd) {
|
|
95
|
+
grid-column: span 2;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
& dt {
|
|
101
|
+
font-weight: var(--font-weight-bold);
|
|
74
102
|
}
|
|
75
103
|
}
|
|
76
104
|
|
|
@@ -78,3 +106,17 @@
|
|
|
78
106
|
text-wrap: pretty;
|
|
79
107
|
}
|
|
80
108
|
}
|
|
109
|
+
|
|
110
|
+
@media (--reduce-motion) {
|
|
111
|
+
*,
|
|
112
|
+
::before,
|
|
113
|
+
::after {
|
|
114
|
+
animation-delay: -1ms !important;
|
|
115
|
+
animation-duration: 1ms !important;
|
|
116
|
+
animation-iteration-count: 1 !important;
|
|
117
|
+
background-attachment: initial !important;
|
|
118
|
+
scroll-behavior: auto !important;
|
|
119
|
+
transition-delay: 0s !important;
|
|
120
|
+
transition-duration: 0s !important;
|
|
121
|
+
}
|
|
122
|
+
}
|
package/src/Atom/base.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer popover-polyfill, design-system.defaults, design-system.atoms, design-system.layouts, design-system.
|
|
1
|
+
@layer popover-polyfill, design-system.defaults, design-system.atoms, design-system.layouts, design-system.utilities, design-system.components;
|
|
2
2
|
|
|
3
3
|
@import "./Background/_background.css";
|
|
4
4
|
@import "_animated.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/html"
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/html-vite"
|
|
2
2
|
import Component from "./accordion.twig"
|
|
3
3
|
import AccordionItem from "./accordion-item.twig"
|
|
4
4
|
import Heading from "../../Atom/Heading/heading.twig"
|
|
@@ -30,9 +30,6 @@ const meta: Meta<AccordionType> = {
|
|
|
30
30
|
}),
|
|
31
31
|
],
|
|
32
32
|
},
|
|
33
|
-
parameters: {
|
|
34
|
-
deepControls: { enabled: true },
|
|
35
|
-
},
|
|
36
33
|
argTypes: {
|
|
37
34
|
toggleAll: { control: "boolean" },
|
|
38
35
|
// @ts-expect-error The controls follow the shape
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Meta, StoryObj } from "@storybook/react"
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
2
|
import { AccordionStyles, HeadingLevels } from "../../enums"
|
|
4
3
|
import Component from "./Accordion"
|
|
5
4
|
import "./accordion.css"
|
|
@@ -1,65 +1,12 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Component/Accordion Accordion smoke-test 1`] = `
|
|
4
|
-
<div class="mx-
|
|
5
|
-
<div class="mx-
|
|
6
|
-
<h2>
|
|
7
|
-
Accordion group
|
|
8
|
-
</h2>
|
|
9
|
-
</div>
|
|
10
|
-
<mx-accordion>
|
|
11
|
-
<details class="mx-accordion mx-accordion--divided">
|
|
12
|
-
<summary class="mx-accordion__toggle">
|
|
13
|
-
Music
|
|
14
|
-
<span class="mx-button mx-icon mx-button--small mx-button--icon-only mx-icon--chevron-down"
|
|
15
|
-
aria-hidden="true"
|
|
16
|
-
>
|
|
17
|
-
</span>
|
|
18
|
-
</summary>
|
|
19
|
-
<div class="mx-accordion__content mx-rich-text mx-vertical-flow">
|
|
20
|
-
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.
|
|
21
|
-
</div>
|
|
22
|
-
</details>
|
|
23
|
-
</mx-accordion>
|
|
24
|
-
<mx-accordion>
|
|
25
|
-
<details class="mx-accordion mx-accordion--divided">
|
|
26
|
-
<summary class="mx-accordion__toggle">
|
|
27
|
-
Performances
|
|
28
|
-
<span class="mx-button mx-icon mx-button--small mx-button--icon-only mx-icon--chevron-down"
|
|
29
|
-
aria-hidden="true"
|
|
30
|
-
>
|
|
31
|
-
</span>
|
|
32
|
-
</summary>
|
|
33
|
-
<div class="mx-accordion__content mx-rich-text mx-vertical-flow">
|
|
34
|
-
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.
|
|
35
|
-
</div>
|
|
36
|
-
</details>
|
|
37
|
-
</mx-accordion>
|
|
38
|
-
</div>
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
exports[`Component/Accordion ToggleAll smoke-test 1`] = `
|
|
42
|
-
<div class="mx-accordions">
|
|
43
|
-
<mx-accordion-group>
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<div class="mx-accordions">
|
|
44
6
|
<div class="mx-accordion__title">
|
|
45
7
|
<h2>
|
|
46
8
|
Accordion group
|
|
47
9
|
</h2>
|
|
48
|
-
<div class="mx-accordions__toggle-all">
|
|
49
|
-
<button data-expand
|
|
50
|
-
class="mx-button mx-button--light mx-button--small"
|
|
51
|
-
type="button"
|
|
52
|
-
>
|
|
53
|
-
Expand all
|
|
54
|
-
</button>
|
|
55
|
-
<button data-collapse
|
|
56
|
-
class="mx-button mx-button--light mx-button--small"
|
|
57
|
-
type="button"
|
|
58
|
-
disabled
|
|
59
|
-
>
|
|
60
|
-
Collapse all
|
|
61
|
-
</button>
|
|
62
|
-
</div>
|
|
63
10
|
</div>
|
|
64
11
|
<mx-accordion>
|
|
65
12
|
<details class="mx-accordion mx-accordion--divided">
|
|
@@ -89,6 +36,63 @@ exports[`Component/Accordion ToggleAll smoke-test 1`] = `
|
|
|
89
36
|
</div>
|
|
90
37
|
</details>
|
|
91
38
|
</mx-accordion>
|
|
92
|
-
</
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
exports[`Component/Accordion ToggleAll smoke-test 1`] = `
|
|
44
|
+
<div class="mx-page default">
|
|
45
|
+
<div class="mx-accordions">
|
|
46
|
+
<mx-accordion-group>
|
|
47
|
+
<div class="mx-accordion__title">
|
|
48
|
+
<h2>
|
|
49
|
+
Accordion group
|
|
50
|
+
</h2>
|
|
51
|
+
<div class="mx-accordions__toggle-all">
|
|
52
|
+
<button data-expand
|
|
53
|
+
class="mx-button mx-button--light mx-button--small"
|
|
54
|
+
type="button"
|
|
55
|
+
>
|
|
56
|
+
Expand all
|
|
57
|
+
</button>
|
|
58
|
+
<button data-collapse
|
|
59
|
+
class="mx-button mx-button--light mx-button--small"
|
|
60
|
+
type="button"
|
|
61
|
+
disabled
|
|
62
|
+
>
|
|
63
|
+
Collapse all
|
|
64
|
+
</button>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
<mx-accordion>
|
|
68
|
+
<details class="mx-accordion mx-accordion--divided">
|
|
69
|
+
<summary class="mx-accordion__toggle">
|
|
70
|
+
Music
|
|
71
|
+
<span class="mx-button mx-icon mx-button--small mx-button--icon-only mx-icon--chevron-down"
|
|
72
|
+
aria-hidden="true"
|
|
73
|
+
>
|
|
74
|
+
</span>
|
|
75
|
+
</summary>
|
|
76
|
+
<div class="mx-accordion__content mx-rich-text mx-vertical-flow">
|
|
77
|
+
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.
|
|
78
|
+
</div>
|
|
79
|
+
</details>
|
|
80
|
+
</mx-accordion>
|
|
81
|
+
<mx-accordion>
|
|
82
|
+
<details class="mx-accordion mx-accordion--divided">
|
|
83
|
+
<summary class="mx-accordion__toggle">
|
|
84
|
+
Performances
|
|
85
|
+
<span class="mx-button mx-icon mx-button--small mx-button--icon-only mx-icon--chevron-down"
|
|
86
|
+
aria-hidden="true"
|
|
87
|
+
>
|
|
88
|
+
</span>
|
|
89
|
+
</summary>
|
|
90
|
+
<div class="mx-accordion__content mx-rich-text mx-vertical-flow">
|
|
91
|
+
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.
|
|
92
|
+
</div>
|
|
93
|
+
</details>
|
|
94
|
+
</mx-accordion>
|
|
95
|
+
</mx-accordion-group>
|
|
96
|
+
</div>
|
|
93
97
|
</div>
|
|
94
98
|
`;
|
|
@@ -18,7 +18,6 @@ exports[`Component/Accordion Accordion smoke-test 1`] = `
|
|
|
18
18
|
<div role="region"
|
|
19
19
|
aria-labelledby="unique-0"
|
|
20
20
|
class="mx-accordion__content mx-rich-text mx-vertical-flow"
|
|
21
|
-
inert
|
|
22
21
|
>
|
|
23
22
|
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.
|
|
24
23
|
</div>
|
|
@@ -27,10 +27,6 @@
|
|
|
27
27
|
border: initial;
|
|
28
28
|
padding: initial;
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
& .mx-accordion__content[inert] {
|
|
32
|
-
display: none;
|
|
33
|
-
}
|
|
34
30
|
}
|
|
35
31
|
}
|
|
36
32
|
|
|
@@ -57,12 +53,28 @@
|
|
|
57
53
|
all: unset;
|
|
58
54
|
}
|
|
59
55
|
|
|
56
|
+
& > .mx-accordion__content {
|
|
57
|
+
display: none;
|
|
58
|
+
opacity: 0;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
}
|
|
61
|
+
|
|
60
62
|
&:is([open], [data-open="true"]) {
|
|
61
63
|
& > .mx-accordion__toggle {
|
|
62
64
|
& .mx-icon--chevron-down {
|
|
63
65
|
transform: rotate(180deg);
|
|
64
66
|
}
|
|
65
67
|
}
|
|
68
|
+
|
|
69
|
+
& > .mx-accordion__content {
|
|
70
|
+
opacity: 1;
|
|
71
|
+
display: block;
|
|
72
|
+
|
|
73
|
+
@starting-style {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
display: block;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
66
78
|
}
|
|
67
79
|
}
|
|
68
80
|
|
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Component/Breadcrumb Breadcrumb smoke-test 1`] = `
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<nav class="mx-nav mx-nav--inline mx-nav--breadcrumbs"
|
|
6
|
+
aria-label="You are here"
|
|
7
|
+
>
|
|
8
|
+
<ul>
|
|
9
|
+
<li>
|
|
10
|
+
<a href="#">
|
|
11
|
+
<span>
|
|
12
|
+
Home
|
|
13
|
+
</span>
|
|
14
|
+
</a>
|
|
15
|
+
</li>
|
|
16
|
+
<li>
|
|
17
|
+
<a href="#">
|
|
18
|
+
<span>
|
|
19
|
+
About
|
|
20
|
+
</span>
|
|
21
|
+
</a>
|
|
22
|
+
</li>
|
|
23
|
+
<li>
|
|
24
|
+
<a href="#"
|
|
25
|
+
aria-current="page"
|
|
26
|
+
>
|
|
27
|
+
<span>
|
|
28
|
+
Join the team
|
|
29
|
+
</span>
|
|
30
|
+
</a>
|
|
31
|
+
</li>
|
|
32
|
+
</ul>
|
|
33
|
+
</nav>
|
|
34
|
+
</div>
|
|
33
35
|
`;
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
z-index: 1;
|
|
11
11
|
overflow: auto;
|
|
12
12
|
white-space: nowrap;
|
|
13
|
+
padding-inline: var(--outline-size);
|
|
14
|
+
padding-block: var(--outline-size);
|
|
15
|
+
margin-inline: calc(var(--outline-size) * -1);
|
|
16
|
+
margin-block: calc(var(--outline-size) * -1);
|
|
13
17
|
|
|
14
18
|
& > ul {
|
|
15
19
|
gap: var(--breadcrumb-gap, var(--spacing-xxxxs));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/html"
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/html-vite"
|
|
2
2
|
import Component from "./callout.twig"
|
|
3
3
|
import Heading from "../../Atom/Heading/heading.twig"
|
|
4
4
|
import "./callout.css"
|
|
@@ -14,14 +14,6 @@ const meta: Meta<CalloutType> = {
|
|
|
14
14
|
}),
|
|
15
15
|
content: "<p>Some callout content.</p>",
|
|
16
16
|
},
|
|
17
|
-
parameters: {
|
|
18
|
-
deepControls: { enabled: true },
|
|
19
|
-
},
|
|
20
|
-
argTypes: {
|
|
21
|
-
// @ts-expect-error The controls follow the shape
|
|
22
|
-
"title.title": { control: "text" },
|
|
23
|
-
"title.as": { options: Object.values(HeadingTypes), control: "select" },
|
|
24
|
-
},
|
|
25
17
|
}
|
|
26
18
|
|
|
27
19
|
export default meta
|