@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,85 +1,121 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Component/Dialog Dialog smoke-test 1`] = `
|
|
4
|
-
<
|
|
5
|
-
<a href="#dialog
|
|
6
|
-
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<a href="#example-dialog"
|
|
6
|
+
aria-controls="unique-0"
|
|
7
7
|
>
|
|
8
|
-
|
|
8
|
+
<span>
|
|
9
|
+
Open dialog
|
|
10
|
+
</span>
|
|
9
11
|
</a>
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<dialog class="dialog">
|
|
15
|
-
<button autofocus
|
|
16
|
-
class="button button--icon-only icon icon--close"
|
|
17
|
-
data-close
|
|
18
|
-
>
|
|
19
|
-
Close dialog
|
|
20
|
-
</button>
|
|
21
|
-
<div class="dialog__content vertical-flow">
|
|
22
|
-
<h3>
|
|
23
|
-
Thanks you're almost done!
|
|
24
|
-
</h3>
|
|
25
|
-
<p>
|
|
26
|
-
To finish the process you will need to upload a few more documents. Please have your confirmation email ready before starting. Are you ready?
|
|
27
|
-
</p>
|
|
28
|
-
</div>
|
|
29
|
-
<div class="form__actions">
|
|
30
|
-
<button class="button button--primary"
|
|
12
|
+
<mx-dialog id="unique-0">
|
|
13
|
+
<dialog class="mx-dialog ">
|
|
14
|
+
<button autofocus
|
|
15
|
+
class="mx-button mx-button--icon-only mx-icon mx-icon--close"
|
|
31
16
|
data-close
|
|
32
17
|
>
|
|
33
|
-
|
|
18
|
+
Close dialog
|
|
34
19
|
</button>
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
20
|
+
<div class="mx-dialog__content mx-vertical-flow">
|
|
21
|
+
<h2>
|
|
22
|
+
Dialog heading
|
|
23
|
+
</h2>
|
|
24
|
+
<p>
|
|
25
|
+
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.
|
|
26
|
+
</p>
|
|
27
|
+
<button data-close
|
|
28
|
+
class="mx-button mx-button--dark"
|
|
29
|
+
type="button"
|
|
30
|
+
>
|
|
31
|
+
<span>
|
|
32
|
+
Let's go
|
|
33
|
+
</span>
|
|
34
|
+
</button>
|
|
35
|
+
</div>
|
|
36
|
+
</dialog>
|
|
37
|
+
</mx-dialog>
|
|
38
|
+
</div>
|
|
43
39
|
`;
|
|
44
40
|
|
|
45
41
|
exports[`Component/Dialog Fullscreen smoke-test 1`] = `
|
|
46
|
-
<
|
|
47
|
-
<
|
|
48
|
-
|
|
42
|
+
<div class="mx-page default">
|
|
43
|
+
<button aria-controls="unique-0"
|
|
44
|
+
class="mx-button mx-button--dark"
|
|
45
|
+
type="button"
|
|
49
46
|
>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
>
|
|
61
|
-
Close dialog
|
|
62
|
-
</button>
|
|
63
|
-
<div class="dialog__content vertical-flow">
|
|
64
|
-
<h3>
|
|
65
|
-
Thanks you're almost done!
|
|
66
|
-
</h3>
|
|
67
|
-
<p>
|
|
68
|
-
To finish the process you will need to upload a few more documents. Please have your confirmation email ready before starting. Are you ready?
|
|
69
|
-
</p>
|
|
70
|
-
</div>
|
|
71
|
-
<div class="form__actions">
|
|
72
|
-
<button class="button button--primary"
|
|
47
|
+
<span>
|
|
48
|
+
Open fullscreen modal
|
|
49
|
+
</span>
|
|
50
|
+
</button>
|
|
51
|
+
<mx-dialog id="unique-0"
|
|
52
|
+
data-modal
|
|
53
|
+
>
|
|
54
|
+
<dialog class="mx-dialog mx-dialog--fullscreen">
|
|
55
|
+
<button autofocus
|
|
56
|
+
class="mx-button mx-button--icon-only mx-icon mx-icon--close"
|
|
73
57
|
data-close
|
|
74
58
|
>
|
|
75
|
-
|
|
59
|
+
Close dialog
|
|
76
60
|
</button>
|
|
77
|
-
<
|
|
61
|
+
<div class="mx-dialog__content mx-vertical-flow">
|
|
62
|
+
<h2>
|
|
63
|
+
Dialog heading
|
|
64
|
+
</h2>
|
|
65
|
+
<p>
|
|
66
|
+
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.
|
|
67
|
+
</p>
|
|
68
|
+
<button data-close
|
|
69
|
+
class="mx-button mx-button--dark"
|
|
70
|
+
type="button"
|
|
71
|
+
>
|
|
72
|
+
<span>
|
|
73
|
+
Let's go
|
|
74
|
+
</span>
|
|
75
|
+
</button>
|
|
76
|
+
</div>
|
|
77
|
+
</dialog>
|
|
78
|
+
</mx-dialog>
|
|
79
|
+
</div>
|
|
80
|
+
`;
|
|
81
|
+
|
|
82
|
+
exports[`Component/Dialog Modal smoke-test 1`] = `
|
|
83
|
+
<div class="mx-page default">
|
|
84
|
+
<button aria-controls="unique-0"
|
|
85
|
+
class="mx-button mx-button--dark"
|
|
86
|
+
type="button"
|
|
87
|
+
>
|
|
88
|
+
<span>
|
|
89
|
+
Open modal
|
|
90
|
+
</span>
|
|
91
|
+
</button>
|
|
92
|
+
<mx-dialog id="unique-0"
|
|
93
|
+
data-modal
|
|
94
|
+
>
|
|
95
|
+
<dialog class="mx-dialog ">
|
|
96
|
+
<button autofocus
|
|
97
|
+
class="mx-button mx-button--icon-only mx-icon mx-icon--close"
|
|
78
98
|
data-close
|
|
79
99
|
>
|
|
80
|
-
|
|
100
|
+
Close dialog
|
|
81
101
|
</button>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
102
|
+
<div class="mx-dialog__content mx-vertical-flow">
|
|
103
|
+
<h2>
|
|
104
|
+
Dialog heading
|
|
105
|
+
</h2>
|
|
106
|
+
<p>
|
|
107
|
+
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.
|
|
108
|
+
</p>
|
|
109
|
+
<button data-close
|
|
110
|
+
class="mx-button mx-button--dark"
|
|
111
|
+
type="button"
|
|
112
|
+
>
|
|
113
|
+
<span>
|
|
114
|
+
Let's go
|
|
115
|
+
</span>
|
|
116
|
+
</button>
|
|
117
|
+
</div>
|
|
118
|
+
</dialog>
|
|
119
|
+
</mx-dialog>
|
|
120
|
+
</div>
|
|
85
121
|
`;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
@layer design-system.components {
|
|
12
|
-
.dialog {
|
|
13
|
-
|
|
12
|
+
.mx-dialog {
|
|
13
|
+
inline-size: min(100%, var(--container-max-width));
|
|
14
14
|
max-block-size: 90vh;
|
|
15
15
|
overflow: auto hidden;
|
|
16
16
|
overscroll-behavior: contain;
|
|
@@ -18,13 +18,34 @@
|
|
|
18
18
|
border: var(--line-width, 1px) solid
|
|
19
19
|
var(--line-colour, var(--colour-border));
|
|
20
20
|
padding: 0;
|
|
21
|
-
|
|
21
|
+
place-self: center;
|
|
22
|
+
opacity: 0;
|
|
23
|
+
transform: translateY(100%);
|
|
22
24
|
|
|
23
25
|
&::backdrop {
|
|
24
|
-
background-color:
|
|
26
|
+
background-color: hsl(0deg 0% 100% / 75%);
|
|
27
|
+
opacity: 0;
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
&
|
|
30
|
+
&[open] {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
transform: translateY(0);
|
|
33
|
+
|
|
34
|
+
@starting-style {
|
|
35
|
+
opacity: 0;
|
|
36
|
+
transform: translateY(100%);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&::backdrop {
|
|
40
|
+
opacity: 0.8;
|
|
41
|
+
|
|
42
|
+
@starting-style {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
& .mx-dialog__content {
|
|
28
49
|
padding: var(--spacing-s);
|
|
29
50
|
|
|
30
51
|
@media (--medium-up) {
|
|
@@ -33,20 +54,13 @@
|
|
|
33
54
|
}
|
|
34
55
|
}
|
|
35
56
|
|
|
36
|
-
& > .icon--close {
|
|
57
|
+
& > .mx-icon--close {
|
|
37
58
|
position: absolute;
|
|
38
59
|
inset-block-start: var(--spacing-xxs);
|
|
39
60
|
inset-inline-end: var(--spacing-xxs);
|
|
40
61
|
border: 0;
|
|
41
62
|
z-index: 11;
|
|
42
63
|
}
|
|
43
|
-
|
|
44
|
-
& .form__actions {
|
|
45
|
-
border-block-start: var(--line-width, 1px) solid
|
|
46
|
-
var(--line-colour, var(--colour-border));
|
|
47
|
-
padding-block: var(--spacing-s);
|
|
48
|
-
place-content: center;
|
|
49
|
-
}
|
|
50
64
|
}
|
|
51
65
|
}
|
|
52
66
|
|
|
@@ -55,23 +69,21 @@
|
|
|
55
69
|
*/
|
|
56
70
|
|
|
57
71
|
@layer design-system.components {
|
|
58
|
-
.dialog--fullscreen {
|
|
72
|
+
.mx-dialog--fullscreen {
|
|
59
73
|
box-shadow: none;
|
|
60
74
|
border: 0;
|
|
61
75
|
inset-block-start: 0;
|
|
62
76
|
inline-size: 100%;
|
|
63
|
-
max-inline-size: none;
|
|
64
77
|
block-size: 100%;
|
|
65
78
|
max-block-size: none;
|
|
66
79
|
|
|
67
80
|
&[open] {
|
|
68
|
-
display:
|
|
69
|
-
flex-direction: column;
|
|
81
|
+
display: grid;
|
|
70
82
|
}
|
|
71
83
|
|
|
72
|
-
& .dialog__content {
|
|
73
|
-
|
|
74
|
-
|
|
84
|
+
& .mx-dialog__content {
|
|
85
|
+
inline-size: min(100%, var(--container-max-width));
|
|
86
|
+
place-self: center;
|
|
75
87
|
}
|
|
76
88
|
}
|
|
77
89
|
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
{% set baseClass = 'mx-dialog' %}
|
|
2
|
+
{% set classes = [
|
|
3
|
+
baseClass,
|
|
4
|
+
fullscreen ? baseClass~'--fullscreen' : null
|
|
5
|
+
] %}
|
|
6
|
+
{% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
|
|
2
7
|
|
|
3
|
-
<mx-dialog id="{{ id
|
|
4
|
-
<dialog
|
|
5
|
-
<button autofocus class="button button--icon-only icon icon--close" data-close>Close dialog</button>
|
|
6
|
-
<div class="dialog__content vertical-flow">
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
{
|
|
8
|
+
<mx-dialog id="{{ id }}"{% if modal %} data-modal{% endif %}>
|
|
9
|
+
<dialog{{ attributes }}{% if open %} open{% endif %}>
|
|
10
|
+
<button autofocus class="mx-button mx-button--icon-only mx-icon mx-icon--close" data-close>Close dialog</button>
|
|
11
|
+
<div class="mx-dialog__content mx-vertical-flow">
|
|
12
|
+
{{ title }}
|
|
13
|
+
{{ content }}
|
|
14
|
+
{# Pass in the [data-close] attribute if it's a button that should close the dialog. #}
|
|
15
|
+
{{ link }}
|
|
11
16
|
</div>
|
|
12
|
-
{% block actions %}
|
|
13
|
-
<div class="form__actions">
|
|
14
|
-
<button class="button button--primary" data-close>Let's get started</button>
|
|
15
|
-
<button class="button" data-close>Cancel</button>
|
|
16
|
-
</div>
|
|
17
|
-
{% endblock %}
|
|
18
17
|
</dialog>
|
|
19
18
|
</mx-dialog>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* eslint-disable no-
|
|
1
|
+
/* eslint-disable no-console, consistent-return, @eslint-react/web-api/no-leaked-event-listener */
|
|
2
2
|
/**
|
|
3
3
|
* @file Drop Menu hook.
|
|
4
4
|
*/
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
Dispatch,
|
|
14
14
|
SetStateAction,
|
|
15
15
|
createContext,
|
|
16
|
-
|
|
16
|
+
use,
|
|
17
17
|
JSX,
|
|
18
18
|
useMemo,
|
|
19
19
|
PropsWithChildren,
|
|
@@ -47,7 +47,7 @@ type DropMenuProviderProps = PropsWithChildren & {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
const DropMenuContext = createContext<DropMenuContextValues>(null)
|
|
50
|
-
export const useDropMenuContext = () =>
|
|
50
|
+
export const useDropMenuContext = () => use(DropMenuContext)
|
|
51
51
|
|
|
52
52
|
const defaultSelected: string[] = []
|
|
53
53
|
const defaultOnClick = (): void => {}
|
|
@@ -90,7 +90,9 @@ const DropMenuProvider = ({
|
|
|
90
90
|
|
|
91
91
|
const handleToggle = ({ newState }: ToggleEvent): void => {
|
|
92
92
|
toggle()
|
|
93
|
-
const handleClose = (): void =>
|
|
93
|
+
const handleClose = (): void => {
|
|
94
|
+
popoverRef.current?.togglePopover()
|
|
95
|
+
}
|
|
94
96
|
if (newState === "open") {
|
|
95
97
|
keyboard.attachPopup(popoverRef.current?.id, handleClose)
|
|
96
98
|
} else {
|
|
@@ -182,11 +184,7 @@ const DropMenuProvider = ({
|
|
|
182
184
|
[dropMenuId, triggerId, descriptionId, on, popoverRef, selected],
|
|
183
185
|
)
|
|
184
186
|
|
|
185
|
-
return
|
|
186
|
-
<DropMenuContext.Provider value={values}>
|
|
187
|
-
{children}
|
|
188
|
-
</DropMenuContext.Provider>
|
|
189
|
-
)
|
|
187
|
+
return <DropMenuContext value={values}>{children}</DropMenuContext>
|
|
190
188
|
}
|
|
191
189
|
|
|
192
190
|
export default DropMenuProvider
|
|
@@ -15,7 +15,7 @@ const DropMenuItem = ({
|
|
|
15
15
|
...props
|
|
16
16
|
}: DropMenuItemProps): JSX.Element => {
|
|
17
17
|
const { selected, handleClick, handleKeydown } = useDropMenuContext()
|
|
18
|
-
const isSelected: boolean = selected
|
|
18
|
+
const isSelected: boolean = selected?.includes(id)
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
21
|
<button
|
|
@@ -28,7 +28,7 @@ export default class DropMenu extends HTMLElement {
|
|
|
28
28
|
// Polyfill anchor (everywhere so far).
|
|
29
29
|
if (!("anchorName" in document.documentElement.style)) {
|
|
30
30
|
const { default: Polyfills } = await import("../polyfills.js")
|
|
31
|
-
new Polyfills(this.menu)
|
|
31
|
+
new Polyfills(this.menu)
|
|
32
32
|
}
|
|
33
33
|
// Polyfill popover (FF only)
|
|
34
34
|
if (!Object.hasOwn(HTMLElement, "popover")) {
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Component/DropMenu DropMenu smoke-test 1`] = `
|
|
4
|
-
<mx-
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Categories
|
|
11
|
-
</button>
|
|
12
|
-
<div class="mx-drop-menu"
|
|
13
|
-
id="dropdown-menu"
|
|
14
|
-
aria-labelledby="unique-0"
|
|
15
|
-
style="position-anchor: --drop-menu-dropdown-menu"
|
|
16
|
-
popover
|
|
17
|
-
>
|
|
18
|
-
<a href="#news">
|
|
19
|
-
News
|
|
20
|
-
</a>
|
|
21
|
-
<a href="#events">
|
|
22
|
-
Events
|
|
23
|
-
</a>
|
|
24
|
-
<button type="button"
|
|
25
|
-
data-id="stories"
|
|
26
|
-
aria-checked="false"
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<mx-dropmenu closeonclick>
|
|
6
|
+
<button id="unique-0"
|
|
7
|
+
class="mx-drop-menu__trigger mx-button mx-icon mx-icon--chevron-down mx-icon--end"
|
|
8
|
+
popovertarget="dropdown-menu"
|
|
9
|
+
style="anchor-name: --drop-menu-dropdown-menu"
|
|
27
10
|
>
|
|
28
|
-
|
|
11
|
+
Categories
|
|
29
12
|
</button>
|
|
30
|
-
|
|
31
|
-
|
|
13
|
+
<div class="mx-drop-menu"
|
|
14
|
+
id="dropdown-menu"
|
|
15
|
+
aria-labelledby="unique-0"
|
|
16
|
+
style="position-anchor: --drop-menu-dropdown-menu"
|
|
17
|
+
popover
|
|
18
|
+
>
|
|
19
|
+
<a href="#news">
|
|
20
|
+
News
|
|
21
|
+
</a>
|
|
22
|
+
<a href="#events">
|
|
23
|
+
Events
|
|
24
|
+
</a>
|
|
25
|
+
<button type="button"
|
|
26
|
+
data-id="stories"
|
|
27
|
+
aria-checked="false"
|
|
28
|
+
>
|
|
29
|
+
Stories
|
|
30
|
+
</button>
|
|
31
|
+
</div>
|
|
32
|
+
</mx-dropmenu>
|
|
33
|
+
</div>
|
|
32
34
|
`;
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.mx-drop-menu {
|
|
19
|
+
display: none;
|
|
20
|
+
opacity: 0;
|
|
19
21
|
position: absolute;
|
|
20
22
|
background-color: var(
|
|
21
23
|
--drop-menu-background,
|
|
@@ -33,14 +35,19 @@
|
|
|
33
35
|
position-anchor: --drop-menu;
|
|
34
36
|
inset-area: bottom;
|
|
35
37
|
position-area: bottom;
|
|
36
|
-
position-try-
|
|
38
|
+
position-try-fallbacks: flip-block;
|
|
37
39
|
position-try-fallback: flip-block;
|
|
38
40
|
min-inline-size: anchor-size(width);
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
&:popover-open {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
opacity: 1;
|
|
45
|
+
display: block;
|
|
46
|
+
|
|
47
|
+
@starting-style {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
display: block;
|
|
50
|
+
}
|
|
44
51
|
}
|
|
45
52
|
|
|
46
53
|
& button {
|
|
@@ -63,6 +70,7 @@
|
|
|
63
70
|
padding-inline: var(--spacing-xs);
|
|
64
71
|
cursor: pointer;
|
|
65
72
|
min-inline-size: 15ch;
|
|
73
|
+
display: block;
|
|
66
74
|
}
|
|
67
75
|
}
|
|
68
76
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/html"
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/html-vite"
|
|
2
2
|
import Component from "./filters.twig"
|
|
3
3
|
import FilterItem from "./filter-item.twig"
|
|
4
4
|
import "./Elements/Filters"
|
|
@@ -89,9 +89,6 @@ const meta: Meta<FiltersType> = {
|
|
|
89
89
|
}),
|
|
90
90
|
],
|
|
91
91
|
},
|
|
92
|
-
parameters: {
|
|
93
|
-
deepControls: { enabled: true },
|
|
94
|
-
},
|
|
95
92
|
argTypes: {},
|
|
96
93
|
}
|
|
97
94
|
|