@pnx-mixtape/mxds 0.0.24 → 0.0.26
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/.storybook/decorators.ts +1 -1
- package/.storybook/main.ts +9 -1
- package/.storybook/preview.ts +1 -0
- package/.storybook/theme-demo.css +17 -13
- package/.storybook/vitest.setup.ts +17 -0
- package/dist/build/accordion.css +76 -86
- package/dist/build/accordion.entry.js +46 -72
- package/dist/build/base.css +1 -993
- package/dist/build/breadcrumb.css +1 -55
- package/dist/build/button.css +1 -126
- package/dist/build/callout.css +1 -11
- package/dist/build/card.css +1 -161
- package/dist/build/carousel.css +1 -125
- package/dist/build/chunks/Accordion-Dwh42fp7.js +42 -0
- package/dist/build/chunks/DropMenu-plGsgySm.js +43 -0
- package/dist/build/chunks/Popover-Bws25suh.js +27 -0
- package/dist/build/chunks/polyfills-Du4RTZDf.js +511 -0
- package/dist/build/chunks/popover-Bd5oQ1Ic.js +407 -0
- package/dist/build/chunks/utilities-DepaJdUg.js +242 -0
- package/dist/build/constants.css +91 -123
- package/dist/build/container-grid.css +1 -186
- package/dist/build/content-block.css +1 -36
- package/dist/build/dialog.css +1 -108
- package/dist/build/dialog.entry.js +45 -85
- package/dist/build/drop-menu.css +1 -89
- package/dist/build/drop-menu.entry.js +2 -2
- package/dist/build/drupal.css +1 -66
- package/dist/build/filters.css +1 -117
- package/dist/build/filters.entry.js +113 -142
- package/dist/build/footer.css +1 -141
- package/dist/build/form.css +1 -491
- package/dist/build/global-alert.css +1 -60
- package/dist/build/global-alert.entry.js +51 -75
- package/dist/build/grid.css +1 -195
- package/dist/build/header.css +1 -149
- package/dist/build/header.entry.js +598 -1180
- package/dist/build/hero-banner.css +1 -73
- package/dist/build/icon.css +1 -399
- package/dist/build/in-page-alert.css +1 -93
- package/dist/build/in-page-navigation.css +1 -17
- package/dist/build/in-page-navigation.entry.js +67 -103
- package/dist/build/link-list.css +1 -45
- package/dist/build/list-item.css +1 -29
- package/dist/build/masthead.css +1 -53
- package/dist/build/navigation.css +1 -356
- package/dist/build/navigation.entry.js +79 -222
- package/dist/build/page.css +1 -65
- package/dist/build/pagination.css +1 -111
- package/dist/build/popover.css +1 -119
- package/dist/build/popover.entry.js +1 -2
- package/dist/build/results-bar.css +1 -21
- package/dist/build/section.css +1 -147
- package/dist/build/side-navigation.css +1 -85
- package/dist/build/sidebar.css +1 -53
- 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 +48 -59
- package/dist/build/tabs.css +1 -108
- package/dist/build/tabs.entry.js +130 -209
- package/dist/build/tag.css +1 -70
- package/dist/build/utilities.css +1 -186
- package/dist/build/utility-list.css +1 -43
- package/dist/build/utility-list.entry.js +52 -80
- package/package.json +40 -52
- package/src/Atom/Background/__snapshots__/Background.stories.ts.snap +61 -216
- package/src/Atom/Background/_background.css +2 -1
- package/src/Atom/Button/Button.stories.tsx +2 -0
- package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +77 -97
- package/src/Atom/Button/__snapshots__/Button.stories.tsx.snap +3 -15
- package/src/Atom/DefinitionList/DefinitionList.stories.tsx +2 -1
- package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.ts.snap +13 -26
- package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.tsx.snap +2 -29
- package/src/Atom/Heading/Heading.stories.tsx +2 -1
- package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +9 -13
- package/src/Atom/Heading/__snapshots__/Heading.stories.tsx.snap +2 -8
- package/src/Atom/Icon/Icon.stories.tsx +2 -1
- package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +21 -28
- package/src/Atom/Icon/__snapshots__/Icon.stories.tsx.snap +4 -15
- package/src/Atom/Icon/_icon.css +7 -6
- package/src/Atom/Image/__snapshots__/Image.stories.ts.snap +6 -9
- package/src/Atom/Link/Link.stories.tsx +2 -1
- package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +47 -56
- package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +4 -22
- package/src/Atom/Media/Media.stories.ts +1 -1
- package/src/Atom/Media/Media.stories.tsx +2 -1
- package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +27 -12
- package/src/Atom/Media/__snapshots__/Media.stories.tsx.snap +3 -16
- package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +5 -8
- package/src/Atom/Table/TableResponsive.stories.ts +0 -1
- package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +129 -261
- package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +34 -67
- package/src/Atom/Text/Text.stories.tsx +2 -1
- package/src/Atom/Text/__snapshots__/Text.stories.ts.snap +32 -46
- package/src/Atom/Text/__snapshots__/Text.stories.tsx.snap +2 -6
- package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +6 -11
- package/src/Atom/_flow.css +16 -1
- package/src/Component/Accordion/Accordion.stories.tsx +2 -0
- package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +106 -140
- package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +3 -49
- package/src/Component/Accordion/__snapshots__/AccordionItem.stories.ts.snap +52 -81
- package/src/Component/Breadcrumb/Breadcrumb.stories.tsx +2 -0
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +29 -33
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +3 -62
- package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +9 -11
- package/src/Component/Card/Card.stories.tsx +2 -0
- package/src/Component/Card/__snapshots__/Card.stories.ts.snap +237 -272
- package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +4 -85
- package/src/Component/Carousel/Elements/Carousel.ts +10 -7
- package/src/Component/Carousel/__snapshots__/Carousel.stories.ts.snap +992 -1187
- package/src/Component/ContentBlock/ContentBlock.stories.tsx +2 -0
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +161 -155
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.tsx.snap +2 -25
- package/src/Component/Dialog/Dialog.stories.tsx +2 -0
- package/src/Component/Dialog/__snapshots__/Dialog.stories.ts.snap +92 -110
- package/src/Component/Dialog/__snapshots__/Dialog.stories.tsx.snap +2 -31
- package/src/Component/DropMenu/DropMenu.stories.tsx +2 -0
- package/src/Component/DropMenu/DropMenu.tsx +1 -3
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +25 -72
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +2 -46
- package/src/Component/Filters/__snapshots__/FilterItem.stories.ts.snap +80 -121
- package/src/Component/Filters/__snapshots__/Filters.stories.ts.snap +323 -424
- package/src/Component/GlobalAlert/GlobalAlert.stories.tsx +2 -0
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +25 -37
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +3 -46
- package/src/Component/HeroBanner/HeroBanner.stories.tsx +2 -0
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +105 -106
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.tsx.snap +3 -34
- package/src/Component/HeroSearch/HeroSearch.stories.tsx +2 -0
- package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.ts.snap +121 -158
- package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.tsx.snap +3 -34
- package/src/Component/InPageAlert/InPageAlert.stories.tsx +2 -0
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +87 -70
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.tsx.snap +5 -65
- package/src/Component/InPageNavigation/InPageNavigation.stories.ts +1 -0
- package/src/Component/InPageNavigation/InPageNavigation.stories.tsx +2 -0
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +88 -208
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +2 -148
- package/src/Component/InPageNavigation/in-page-navigation.css +5 -0
- package/src/Component/LinkList/LinkList.stories.tsx +2 -1
- package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +67 -66
- package/src/Component/LinkList/__snapshots__/LinkList.stories.tsx.snap +2 -32
- package/src/Component/ListItem/ListItem.stories.tsx +2 -1
- package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +153 -167
- package/src/Component/ListItem/__snapshots__/ListItem.stories.tsx.snap +2 -25
- package/src/Component/Navigation/Dropdown.stories.tsx +2 -0
- package/src/Component/Navigation/Elements/Navigation.ts +5 -5
- package/src/Component/Navigation/Navigation.stories.tsx +2 -0
- package/src/Component/Navigation/__snapshots__/Dropdown.stories.tsx.snap +2 -38
- package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +204 -279
- package/src/Component/Navigation/__snapshots__/Navigation.stories.tsx.snap +3 -59
- package/src/Component/Navigation/_navigation.css +2 -2
- package/src/Component/Pagination/Pagination.stories.tsx +2 -0
- package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +70 -60
- package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +2 -62
- package/src/Component/Popover/Elements/Popover.ts +5 -1
- package/src/Component/Popover/__snapshots__/Popover.stories.ts.snap +366 -496
- package/src/Component/Popover/popover.css +3 -4
- package/src/Component/ResultsBar/ResultsBar.stories.tsx +2 -0
- package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.ts.snap +25 -46
- package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.tsx.snap +4 -50
- package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +76 -81
- package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +35 -32
- package/src/Component/SocialShare/SocialShare.stories.tsx +2 -1
- package/src/Component/SocialShare/__snapshots__/SocialShare.stories.ts.snap +11 -27
- package/src/Component/SocialShare/__snapshots__/SocialShare.stories.tsx.snap +4 -22
- package/src/Component/SocialShare/social-share.twig +1 -0
- package/src/Component/Steps/__snapshots__/StepItem.stories.ts.snap +11 -23
- package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +142 -173
- package/src/Component/Sticky/Sticky.stories.tsx +2 -0
- package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +6 -12
- package/src/Component/Sticky/__snapshots__/Sticky.stories.tsx.snap +2 -10
- package/src/Component/Tabs/Tabs.stories.tsx +2 -0
- package/src/Component/Tabs/__snapshots__/TabItem.stories.ts.snap +5 -9
- package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +37 -210
- package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +2 -116
- package/src/Component/Tag/Tag.stories.tsx +2 -0
- package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +37 -61
- package/src/Component/Tag/__snapshots__/Tag.stories.tsx.snap +2 -6
- package/src/Component/Tag/tags.twig +6 -6
- package/src/Component/UtilityList/__snapshots__/UtilityList.stories.ts.snap +122 -245
- package/src/Component/UtilityList/utility-list.css +4 -0
- package/src/Component/UtilityList/utility-list.twig +2 -1
- package/src/Form/Checkbox/FormCheckbox.stories.tsx +2 -2
- package/src/Form/Checkbox/__snapshots__/Checkbox.stories.ts.snap +13 -26
- package/src/Form/Checkbox/__snapshots__/FormCheckbox.stories.tsx.snap +5 -0
- package/src/Form/Description/FormDescription.stories.tsx +2 -1
- package/src/Form/Description/__snapshots__/Description.stories.ts.snap +5 -9
- package/src/Form/Description/__snapshots__/FormDescription.stories.tsx.snap +2 -9
- package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +9 -17
- package/src/Form/Form/Form.stories.tsx +2 -1
- package/src/Form/Form/FormTitle.stories.tsx +2 -1
- package/src/Form/Form/__snapshots__/Form.stories.tsx.snap +2 -5
- package/src/Form/Form/__snapshots__/FormTitle.stories.tsx.snap +2 -8
- package/src/Form/FormItem/FormItem.stories.tsx +8 -5
- package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +88 -129
- package/src/Form/Label/FormLabel.stories.tsx +2 -1
- package/src/Form/Label/__snapshots__/FormLabel.stories.tsx.snap +3 -18
- package/src/Form/Label/__snapshots__/Label.stories.ts.snap +13 -25
- package/src/Form/Radio/FormRadio.stories.tsx +2 -14
- package/src/Form/Radio/__snapshots__/FormRadio.stories.tsx.snap +3 -0
- package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +42 -57
- package/src/Form/Search/__snapshots__/Search.stories.ts.snap +11 -26
- package/src/Form/Select/FormSelect.stories.tsx +2 -1
- package/src/Form/Select/__snapshots__/FormSelect.stories.tsx.snap +2 -22
- package/src/Form/Select/__snapshots__/Select.stories.ts.snap +8 -19
- package/src/Form/TextInput/FormText.stories.tsx +2 -1
- package/src/Form/TextInput/__snapshots__/FormText.stories.tsx.snap +2 -12
- package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +11 -26
- package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +11 -25
- package/src/Form/Textarea/FormTextarea.stories.tsx +2 -1
- package/src/Form/Textarea/__snapshots__/FormTextarea.stories.tsx.snap +2 -11
- package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +5 -11
- package/src/Layout/Footer/Footer.stories.ts +18 -1
- package/src/Layout/Footer/Footer.stories.tsx +2 -0
- package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +360 -301
- package/src/Layout/Footer/__snapshots__/Footer.stories.tsx.snap +3 -62
- package/src/Layout/Footer/footer.css +16 -35
- package/src/Layout/Footer/footer.twig +6 -6
- package/src/Layout/Grid/Grid.stories.tsx +2 -0
- package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +72 -66
- package/src/Layout/Grid/__snapshots__/Grid.stories.tsx.snap +6 -62
- package/src/Layout/Grid/__snapshots__/GridItem.stories.ts.snap +9 -13
- package/src/Layout/Header/Header.stories.tsx +2 -1
- package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +315 -466
- package/src/Layout/Header/__snapshots__/Header.stories.tsx.snap +2 -58
- package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +86 -87
- package/src/Layout/Page/Page.stories.tsx +2 -0
- package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +2 -81
- package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +51 -61
- package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +34 -78
- package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +54 -89
- package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +89 -99
- package/src/Layout/Section/__snapshots__/Section.stories.tsx.snap +4 -34
- package/src/Layout/Section/__snapshots__/SectionGrid.stories.tsx.snap +3 -35
- package/src/Layout/Section/section.twig +2 -2
- package/src/Layout/Sidebar/Sidebar.stories.tsx +1 -1
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +49 -40
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.tsx.snap +4 -44
- package/src/Layout/Sidebar/sidebar.css +2 -2
- package/src/Layout/Sidebar/sidebar.twig +8 -5
- package/src/Utility/_layout-utils.css +9 -1
- package/src/constants.css +2 -2
- package/src/tokens.js +2 -2
- package/.storybook/test-runner.ts +0 -77
- package/dist/build/accordion.entry.js.map +0 -1
- package/dist/build/chunks/Accordion-D1HQ0FDq.js +0 -63
- package/dist/build/chunks/Accordion-D1HQ0FDq.js.map +0 -1
- package/dist/build/chunks/disclosure-widget-CdjCdx7t.js +0 -129
- package/dist/build/chunks/disclosure-widget-CdjCdx7t.js.map +0 -1
- package/dist/build/chunks/drop-menu.entry-fzV-_VFl.js +0 -70
- package/dist/build/chunks/drop-menu.entry-fzV-_VFl.js.map +0 -1
- package/dist/build/chunks/polyfills-DnrsypYs.js +0 -812
- package/dist/build/chunks/polyfills-DnrsypYs.js.map +0 -1
- package/dist/build/chunks/popover-DzUcnIlX.js +0 -797
- package/dist/build/chunks/popover-DzUcnIlX.js.map +0 -1
- package/dist/build/chunks/popover.entry-BQvyR0d5.js +0 -38
- package/dist/build/chunks/popover.entry-BQvyR0d5.js.map +0 -1
- package/dist/build/chunks/utilities-Ci7wwNeg.js +0 -148
- package/dist/build/chunks/utilities-Ci7wwNeg.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/popover.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/utility-list.entry.js.map +0 -1
- package/src/Form/FormItem/__snapshots__/FormItem.stories.tsx.snap +0 -110
|
@@ -46,8 +46,7 @@ const DropMenu = ({
|
|
|
46
46
|
id={triggerId}
|
|
47
47
|
type="button"
|
|
48
48
|
className={classNames([...triggerClassNames, "mx-drop-menu__trigger"])}
|
|
49
|
-
|
|
50
|
-
// @ts-expect-error anchorName is a valid style.
|
|
49
|
+
popoverTarget={dropMenuId}
|
|
51
50
|
style={{ anchorName: `--drop-menu-${dropMenuId}` }}
|
|
52
51
|
>
|
|
53
52
|
{label}
|
|
@@ -56,7 +55,6 @@ const DropMenu = ({
|
|
|
56
55
|
id={dropMenuId}
|
|
57
56
|
className={classNames("mx-drop-menu", popoverClassName)}
|
|
58
57
|
popover=""
|
|
59
|
-
// @ts-expect-error positionAnchor is a valid style.
|
|
60
58
|
style={{ positionAnchor: `--drop-menu-${dropMenuId}` }}
|
|
61
59
|
ref={popoverRef}
|
|
62
60
|
aria-labelledby={ariaLabel ? null : triggerId}
|
|
@@ -1,76 +1,29 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
aria-describedby="unique-0"
|
|
16
|
-
style="position-anchor: --dropdown-menu"
|
|
17
|
-
data-placement="bottom-start"
|
|
18
|
-
popover
|
|
19
|
-
role="menu"
|
|
20
|
-
>
|
|
21
|
-
<button type="button"
|
|
22
|
-
data-id="news"
|
|
23
|
-
role="menuitemradio"
|
|
24
|
-
aria-checked="false"
|
|
25
|
-
>
|
|
26
|
-
News
|
|
27
|
-
</button>
|
|
28
|
-
<button type="button"
|
|
29
|
-
data-id="events"
|
|
30
|
-
role="menuitemradio"
|
|
31
|
-
aria-checked="false"
|
|
32
|
-
>
|
|
33
|
-
Events
|
|
34
|
-
</button>
|
|
35
|
-
<button type="button"
|
|
36
|
-
data-id="stories"
|
|
37
|
-
role="menuitemradio"
|
|
38
|
-
aria-checked="false"
|
|
39
|
-
>
|
|
40
|
-
Stories
|
|
41
|
-
</button>
|
|
42
|
-
</div>
|
|
43
|
-
</mx-dropmenu>
|
|
44
|
-
</div>
|
|
3
|
+
exports[`Buttons 1`] = `
|
|
4
|
+
"<mx-dropmenu closeonclick="">
|
|
5
|
+
<button id="dropdown-menu-target" class="mx-popover__trigger mx-button mx-icon mx-icon--chevron-down mx-icon--end" popovertarget="dropdown-menu" style="anchor-name: --dropdown-menu">
|
|
6
|
+
Categories
|
|
7
|
+
</button>
|
|
8
|
+
<div class="mx-popover mx-drop-menu" id="dropdown-menu" aria-describedby="dropdown-menu-target" style="position-anchor: --dropdown-menu" data-placement="bottom-start" popover="" role="menu">
|
|
9
|
+
<button type="button" data-id="news" role="menuitemradio" aria-checked="false">News</button>
|
|
10
|
+
<button type="button" data-id="events" role="menuitemradio" aria-checked="false">Events</button>
|
|
11
|
+
<button type="button" data-id="stories" role="menuitemradio" aria-checked="false">Stories</button>
|
|
12
|
+
</div>
|
|
13
|
+
</mx-dropmenu>
|
|
14
|
+
"
|
|
45
15
|
`;
|
|
46
16
|
|
|
47
|
-
exports[`
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
aria-describedby="unique-0"
|
|
60
|
-
style="position-anchor: --dropdown-menu"
|
|
61
|
-
data-placement="bottom-start"
|
|
62
|
-
popover
|
|
63
|
-
>
|
|
64
|
-
<a href="#news">
|
|
65
|
-
News
|
|
66
|
-
</a>
|
|
67
|
-
<a href="#events">
|
|
68
|
-
Events
|
|
69
|
-
</a>
|
|
70
|
-
<a href="#stories">
|
|
71
|
-
Stories
|
|
72
|
-
</a>
|
|
73
|
-
</div>
|
|
74
|
-
</mx-dropmenu>
|
|
75
|
-
</div>
|
|
17
|
+
exports[`Drop Menu 1`] = `
|
|
18
|
+
"<mx-dropmenu closeonclick="">
|
|
19
|
+
<button id="dropdown-menu-target" class="mx-popover__trigger mx-button mx-icon mx-icon--chevron-down mx-icon--end" popovertarget="dropdown-menu" style="anchor-name: --dropdown-menu">
|
|
20
|
+
Categories
|
|
21
|
+
</button>
|
|
22
|
+
<div class="mx-popover mx-drop-menu" id="dropdown-menu" aria-describedby="dropdown-menu-target" style="position-anchor: --dropdown-menu" data-placement="bottom-start" popover="">
|
|
23
|
+
<a href="#news">News</a>
|
|
24
|
+
<a href="#events">Events</a>
|
|
25
|
+
<a href="#stories">Stories</a>
|
|
26
|
+
</div>
|
|
27
|
+
</mx-dropmenu>
|
|
28
|
+
"
|
|
76
29
|
`;
|
|
@@ -1,47 +1,3 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
<button id="unique-0"
|
|
5
|
-
type="button"
|
|
6
|
-
class="mx-button mx-icon mx-icon--chevron-down mx-icon--end mx-drop-menu__trigger"
|
|
7
|
-
popovertarget="drop-menu-storybook"
|
|
8
|
-
style="anchor-name: --drop-menu-drop-menu-storybook;"
|
|
9
|
-
>
|
|
10
|
-
Categories
|
|
11
|
-
</button>
|
|
12
|
-
<div id="drop-menu-storybook"
|
|
13
|
-
class="mx-drop-menu"
|
|
14
|
-
popover
|
|
15
|
-
aria-labelledby="unique-0"
|
|
16
|
-
aria-describedby="unique-0"
|
|
17
|
-
role="menu"
|
|
18
|
-
style="position-anchor: --drop-menu-drop-menu-storybook;"
|
|
19
|
-
>
|
|
20
|
-
<div id="drop-menu-storybook-description"
|
|
21
|
-
class="sr-only"
|
|
22
|
-
>
|
|
23
|
-
Results will update when you make a selection. Press escape to close.
|
|
24
|
-
</div>
|
|
25
|
-
<button type="button"
|
|
26
|
-
data-id="news"
|
|
27
|
-
aria-checked="false"
|
|
28
|
-
role="menuitemradio"
|
|
29
|
-
>
|
|
30
|
-
News
|
|
31
|
-
</button>
|
|
32
|
-
<button type="button"
|
|
33
|
-
data-id="events"
|
|
34
|
-
aria-checked="false"
|
|
35
|
-
role="menuitemradio"
|
|
36
|
-
>
|
|
37
|
-
Events
|
|
38
|
-
</button>
|
|
39
|
-
<button type="button"
|
|
40
|
-
data-id="stories"
|
|
41
|
-
aria-checked="false"
|
|
42
|
-
role="menuitemradio"
|
|
43
|
-
>
|
|
44
|
-
Stories
|
|
45
|
-
</button>
|
|
46
|
-
</div>
|
|
47
|
-
`;
|
|
3
|
+
exports[`Drop Menu 1`] = `"<button id="drop-menu-storybook-target" type="button" class="mx-button mx-icon mx-icon--chevron-down mx-icon--end mx-drop-menu__trigger" popovertarget="drop-menu-storybook" style="anchor-name: --drop-menu-drop-menu-storybook;">Categories</button><div id="drop-menu-storybook" class="mx-drop-menu" popover="" aria-labelledby="drop-menu-storybook-target" aria-describedby="drop-menu-storybook-description" role="menu" style="position-anchor: --drop-menu-drop-menu-storybook;"><div id="drop-menu-storybook-description" class="sr-only">Results will update when you make a selection. Press escape to close.</div><button type="button" data-id="news" aria-checked="false" role="menuitemradio">News</button><button type="button" data-id="events" aria-checked="false" role="menuitemradio">Events</button><button type="button" data-id="stories" aria-checked="false" role="menuitemradio">Stories</button></div>"`;
|
|
@@ -1,135 +1,94 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
|
|
3
|
+
exports[`Collapsible 1`] = `
|
|
4
|
+
"
|
|
5
5
|
<mx-accordion>
|
|
6
|
-
<details class="mx-accordion mx-filter-item"
|
|
7
|
-
id="filter-categories-container"
|
|
8
|
-
open
|
|
9
|
-
>
|
|
6
|
+
<details class="mx-accordion mx-filter-item" id="filter-categories-container" open="">
|
|
10
7
|
<summary class="mx-accordion__toggle">
|
|
11
8
|
Categories
|
|
12
|
-
<span class="mx-tag"
|
|
13
|
-
data-counter
|
|
14
|
-
>
|
|
15
|
-
</span>
|
|
16
|
-
<span class="mx-icon mx-icon--chevron-down"
|
|
17
|
-
aria-hidden="true"
|
|
18
|
-
>
|
|
19
|
-
</span>
|
|
9
|
+
<span class="mx-tag" data-counter=""></span> <span class="mx-icon mx-icon--chevron-down" aria-hidden="true"></span>
|
|
20
10
|
</summary>
|
|
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
|
-
name="categories"
|
|
48
|
-
value="publications"
|
|
49
|
-
>
|
|
50
|
-
<label for="category-publications">
|
|
51
|
-
Publications
|
|
52
|
-
</label>
|
|
53
|
-
</div>
|
|
54
|
-
</fieldset>
|
|
11
|
+
|
|
12
|
+
<fieldset class="mx-form-item mx-fieldset mx-accordion__content">
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<div class="mx-checkbox">
|
|
17
|
+
<input id="category-news" type="checkbox" name="categories" value="news" checked="checked">
|
|
18
|
+
<label for="category-news">News</label>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
<div class="mx-checkbox">
|
|
23
|
+
<input id="category-media" type="checkbox" name="categories" value="media" checked="checked">
|
|
24
|
+
<label for="category-media">Media Releases</label>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
<div class="mx-checkbox">
|
|
29
|
+
<input id="category-publications" type="checkbox" name="categories" value="publications">
|
|
30
|
+
<label for="category-publications">Publications</label>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
</fieldset>
|
|
36
|
+
|
|
55
37
|
</details>
|
|
56
38
|
</mx-accordion>
|
|
57
|
-
|
|
39
|
+
"
|
|
58
40
|
`;
|
|
59
41
|
|
|
60
|
-
exports[`
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
id="unique-0"
|
|
70
|
-
role="tooltip"
|
|
71
|
-
>
|
|
72
|
-
Search by keywords
|
|
73
|
-
</div>
|
|
74
|
-
<input class="mx-input__text"
|
|
75
|
-
id="filter-keywords"
|
|
76
|
-
name="example-keywords"
|
|
77
|
-
type="text"
|
|
78
|
-
value
|
|
79
|
-
aria-describedby="unique-0"
|
|
80
|
-
>
|
|
81
|
-
</div>
|
|
42
|
+
exports[`Filters 1`] = `
|
|
43
|
+
"
|
|
44
|
+
|
|
45
|
+
<div class="mx-form-item mx-filter-item">
|
|
46
|
+
|
|
47
|
+
<label class="mx-label" for="filter-keywords">Keywords</label>
|
|
48
|
+
|
|
49
|
+
<div class="mx-description" id="help-filter-keywords" role="tooltip">
|
|
50
|
+
Search by keywords
|
|
82
51
|
</div>
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
<input class="mx-input__text" id="filter-keywords" name="example-keywords" type="text" value="" aria-describedby="help-filter-keywords">
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
"
|
|
83
61
|
`;
|
|
84
62
|
|
|
85
|
-
exports[`
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
</label>
|
|
103
|
-
</div>
|
|
104
|
-
<div class="mx-checkbox">
|
|
105
|
-
<input id="category-media"
|
|
106
|
-
type="checkbox"
|
|
107
|
-
name="categories"
|
|
108
|
-
value="media"
|
|
109
|
-
checked="checked"
|
|
110
|
-
>
|
|
111
|
-
<label for="category-media">
|
|
112
|
-
Media Releases
|
|
113
|
-
</label>
|
|
114
|
-
</div>
|
|
115
|
-
<div data-hide>
|
|
116
|
-
<div class="mx-checkbox">
|
|
117
|
-
<input id="category-publications"
|
|
118
|
-
type="checkbox"
|
|
119
|
-
name="categories"
|
|
120
|
-
value="publications"
|
|
121
|
-
>
|
|
122
|
-
<label for="category-publications">
|
|
123
|
-
Publications
|
|
124
|
-
</label>
|
|
125
|
-
</div>
|
|
126
|
-
</div>
|
|
127
|
-
<button data-show
|
|
128
|
-
class="mx-button mx-button--light"
|
|
129
|
-
type="button"
|
|
130
|
-
>
|
|
131
|
-
Show all (3)
|
|
132
|
-
</button>
|
|
133
|
-
</fieldset>
|
|
63
|
+
exports[`Shown Items 1`] = `
|
|
64
|
+
"
|
|
65
|
+
|
|
66
|
+
<fieldset class="mx-form-item mx-fieldset mx-filter-item">
|
|
67
|
+
|
|
68
|
+
<label class="mx-label" for="filter-categories">Categories</label>
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
<div class="mx-checkbox">
|
|
73
|
+
<input id="category-news" type="checkbox" name="categories" value="news" checked="checked">
|
|
74
|
+
<label for="category-news">News</label>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
<div class="mx-checkbox">
|
|
78
|
+
<input id="category-media" type="checkbox" name="categories" value="media" checked="checked">
|
|
79
|
+
<label for="category-media">Media Releases</label>
|
|
134
80
|
</div>
|
|
81
|
+
<div data-hide="">
|
|
82
|
+
|
|
83
|
+
<div class="mx-checkbox">
|
|
84
|
+
<input id="category-publications" type="checkbox" name="categories" value="publications">
|
|
85
|
+
<label for="category-publications">Publications</label>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
<button data-show="" class="mx-button mx-button--light" type="button">Show all (3)</button>
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
</fieldset>
|
|
92
|
+
|
|
93
|
+
"
|
|
135
94
|
`;
|