@pnx-mixtape/mxds 0.0.23 → 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 +7 -0
- package/.storybook/main.ts +29 -0
- package/.storybook/manager.ts +6 -0
- package/.storybook/preview.ts +61 -0
- package/.storybook/public/demo-logo.svg +4 -0
- package/.storybook/public/design-system.svg +1 -0
- package/.storybook/public/favicon.svg +7 -0
- package/.storybook/public/mixtape-logo.png +0 -0
- package/.storybook/public/mixtape.webp +0 -0
- package/.storybook/public/pinto.png +0 -0
- package/.storybook/public/pinto.svg +1 -0
- package/.storybook/public/xb.png +0 -0
- package/.storybook/public/xb.svg +1 -0
- package/.storybook/src/global.d.ts +16 -0
- package/.storybook/src/theme.ts +8 -0
- package/.storybook/storybook.css +35 -0
- package/.storybook/theme-demo.css +93 -0
- 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 +44 -54
- package/src/Atom/Atom.mdx +18 -18
- package/src/Atom/Background/{Backgrounds.stories.ts → Background.stories.ts} +2 -1
- package/src/Atom/Background/__snapshots__/Background.stories.ts.snap +81 -0
- package/src/Atom/Background/_background.css +10 -11
- package/src/Atom/Background/backgrounds.twig +6 -4
- package/src/Atom/Button/Button.stories.ts +0 -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/Button/_buttons-styles.css +18 -6
- package/src/Atom/Button/_buttons.css +1 -1
- 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/_extended-set.css +0 -8
- package/src/Atom/Icon/_icon.css +15 -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/Link/_links.css +1 -0
- 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/Table.stories.ts +0 -1
- 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.ts +0 -2
- package/src/Component/HeroSearch/HeroSearch.stories.tsx +2 -0
- package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.ts.snap +122 -165
- 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/Popover.stories.ts +45 -0
- package/src/Component/Popover/__snapshots__/Popover.stories.ts.snap +366 -470
- 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/Steps/steps.css +4 -3
- 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/InputDivider.stories.ts +0 -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 +115 -114
- package/src/enums.ts +1 -0
- package/src/tokens.js +26 -19
- 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/Atom/Background/__snapshots__/Backgrounds.stories.ts.snap +0 -176
- package/src/Form/FormItem/__snapshots__/FormItem.stories.tsx.snap +0 -110
|
@@ -1,216 +1,43 @@
|
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
<div class="mx-popover mx-drop-menu"
|
|
18
|
-
id="tab-example"
|
|
19
|
-
aria-describedby="unique-0"
|
|
20
|
-
style="position-anchor: --tab-example"
|
|
21
|
-
data-placement="bottom-start"
|
|
22
|
-
popover
|
|
23
|
-
role="tablist"
|
|
24
|
-
>
|
|
25
|
-
<button type="button"
|
|
26
|
-
role="tab"
|
|
27
|
-
aria-controls="unique-1"
|
|
28
|
-
aria-selected="false"
|
|
29
|
-
>
|
|
30
|
-
Funk
|
|
31
|
-
</button>
|
|
32
|
-
<button type="button"
|
|
33
|
-
role="tab"
|
|
34
|
-
aria-controls="unique-2"
|
|
35
|
-
aria-selected="false"
|
|
36
|
-
>
|
|
37
|
-
Soul
|
|
38
|
-
</button>
|
|
39
|
-
<button type="button"
|
|
40
|
-
role="tab"
|
|
41
|
-
aria-controls="unique-3"
|
|
42
|
-
aria-selected="false"
|
|
43
|
-
>
|
|
44
|
-
Motown
|
|
45
|
-
</button>
|
|
46
|
-
</div>
|
|
47
|
-
</mx-dropmenu>
|
|
48
|
-
<div class="mx-tabs__list"
|
|
49
|
-
role="tablist"
|
|
50
|
-
>
|
|
51
|
-
<button type="button"
|
|
52
|
-
role="tab"
|
|
53
|
-
aria-controls="unique-4"
|
|
54
|
-
aria-selected="true"
|
|
55
|
-
tab-index="0"
|
|
56
|
-
>
|
|
57
|
-
Funk
|
|
58
|
-
</button>
|
|
59
|
-
<button type="button"
|
|
60
|
-
role="tab"
|
|
61
|
-
aria-controls="unique-5"
|
|
62
|
-
aria-selected="false"
|
|
63
|
-
tab-index="-1"
|
|
64
|
-
>
|
|
65
|
-
Soul
|
|
66
|
-
</button>
|
|
67
|
-
<button type="button"
|
|
68
|
-
role="tab"
|
|
69
|
-
aria-controls="unique-6"
|
|
70
|
-
aria-selected="false"
|
|
71
|
-
tab-index="-1"
|
|
72
|
-
>
|
|
73
|
-
Motown
|
|
74
|
-
</button>
|
|
75
|
-
</div>
|
|
76
|
-
<div class="mx-tabs__panel mx-vertical-flow mx-container"
|
|
77
|
-
id="unique-1"
|
|
78
|
-
data-tab="Funk"
|
|
79
|
-
role="tabpanel"
|
|
80
|
-
tabindex="0"
|
|
81
|
-
aria-label="Funk"
|
|
82
|
-
>
|
|
83
|
-
Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
84
|
-
</div>
|
|
85
|
-
<div class="mx-tabs__panel mx-vertical-flow mx-container"
|
|
86
|
-
id="unique-2"
|
|
87
|
-
data-tab="Soul"
|
|
88
|
-
role="tabpanel"
|
|
89
|
-
tabindex="0"
|
|
90
|
-
aria-label="Soul"
|
|
91
|
-
inert
|
|
92
|
-
>
|
|
93
|
-
Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.
|
|
94
|
-
</div>
|
|
95
|
-
<div class="mx-tabs__panel mx-vertical-flow mx-container"
|
|
96
|
-
id="unique-3"
|
|
97
|
-
data-tab="Motown"
|
|
98
|
-
role="tabpanel"
|
|
99
|
-
tabindex="0"
|
|
100
|
-
aria-label="Motown"
|
|
101
|
-
inert
|
|
102
|
-
>
|
|
103
|
-
Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
104
|
-
</div>
|
|
105
|
-
</mx-tabs>
|
|
3
|
+
exports[`Tabs 1`] = `
|
|
4
|
+
"
|
|
5
|
+
|
|
6
|
+
<mx-tabs class="mx-tabs mx-tabs--lined" id="tab-example"><mx-dropmenu closeonclick="true"><button id="tab-example-target" class="mx-popover__trigger mx-button mx-icon mx-icon--chevron-down mx-icon--end" popovertarget="tab-example" style="anchor-name: --tab-example" hidden="">Funk</button><div class="mx-popover mx-drop-menu" id="tab-example" aria-describedby="tab-example-target" style="position-anchor: --tab-example" data-placement="bottom-start" popover="" role="tablist"><button type="button" role="tab" aria-controls="tab-1" aria-selected="false">Funk</button><button type="button" role="tab" aria-controls="tab-2" aria-selected="false">Soul</button><button type="button" role="tab" aria-controls="tab-3" aria-selected="false">Motown</button></div></mx-dropmenu><div class="mx-tabs__list" role="tablist"><button type="button" role="tab" aria-controls="tab-1" aria-selected="true" tab-index="0">Funk</button><button type="button" role="tab" aria-controls="tab-2" aria-selected="false" tab-index="-1">Soul</button><button type="button" role="tab" aria-controls="tab-3" aria-selected="false" tab-index="-1">Motown</button></div>
|
|
7
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="tab-1" data-tab="Funk" role="tabpanel" tabindex="0" aria-label="Funk">
|
|
8
|
+
Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="tab-2" data-tab="Soul" role="tabpanel" tabindex="0" aria-label="Soul" inert="">
|
|
12
|
+
Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="tab-3" data-tab="Motown" role="tabpanel" tabindex="0" aria-label="Motown" inert="">
|
|
16
|
+
Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
106
17
|
</div>
|
|
107
|
-
`;
|
|
108
18
|
|
|
109
|
-
exports[`Component/Tabs WithHeading smoke-test 1`] = `
|
|
110
|
-
<div class="mx-page default">
|
|
111
|
-
<h2>
|
|
112
|
-
Tabs heading
|
|
113
|
-
</h2>
|
|
114
|
-
<mx-tabs class="mx-tabs mx-tabs--lined"
|
|
115
|
-
id="tab-example"
|
|
116
|
-
>
|
|
117
|
-
<mx-dropmenu closeonclick="true">
|
|
118
|
-
<button id="unique-0"
|
|
119
|
-
class="mx-popover__trigger mx-button mx-icon mx-icon--chevron-down mx-icon--end"
|
|
120
|
-
popovertarget="tab-example"
|
|
121
|
-
style="anchor-name: --tab-example"
|
|
122
|
-
hidden
|
|
123
|
-
>
|
|
124
|
-
Funk
|
|
125
|
-
</button>
|
|
126
|
-
<div class="mx-popover mx-drop-menu"
|
|
127
|
-
id="tab-example"
|
|
128
|
-
aria-describedby="unique-0"
|
|
129
|
-
style="position-anchor: --tab-example"
|
|
130
|
-
data-placement="bottom-start"
|
|
131
|
-
popover
|
|
132
|
-
role="tablist"
|
|
133
|
-
>
|
|
134
|
-
<button type="button"
|
|
135
|
-
role="tab"
|
|
136
|
-
aria-controls="unique-1"
|
|
137
|
-
aria-selected="false"
|
|
138
|
-
>
|
|
139
|
-
Funk
|
|
140
|
-
</button>
|
|
141
|
-
<button type="button"
|
|
142
|
-
role="tab"
|
|
143
|
-
aria-controls="unique-2"
|
|
144
|
-
aria-selected="false"
|
|
145
|
-
>
|
|
146
|
-
Soul
|
|
147
|
-
</button>
|
|
148
|
-
<button type="button"
|
|
149
|
-
role="tab"
|
|
150
|
-
aria-controls="unique-3"
|
|
151
|
-
aria-selected="false"
|
|
152
|
-
>
|
|
153
|
-
Motown
|
|
154
|
-
</button>
|
|
155
|
-
</div>
|
|
156
|
-
</mx-dropmenu>
|
|
157
|
-
<div class="mx-tabs__list"
|
|
158
|
-
role="tablist"
|
|
159
|
-
>
|
|
160
|
-
<button type="button"
|
|
161
|
-
role="tab"
|
|
162
|
-
aria-controls="unique-4"
|
|
163
|
-
aria-selected="true"
|
|
164
|
-
tab-index="0"
|
|
165
|
-
>
|
|
166
|
-
Funk
|
|
167
|
-
</button>
|
|
168
|
-
<button type="button"
|
|
169
|
-
role="tab"
|
|
170
|
-
aria-controls="unique-5"
|
|
171
|
-
aria-selected="false"
|
|
172
|
-
tab-index="-1"
|
|
173
|
-
>
|
|
174
|
-
Soul
|
|
175
|
-
</button>
|
|
176
|
-
<button type="button"
|
|
177
|
-
role="tab"
|
|
178
|
-
aria-controls="unique-6"
|
|
179
|
-
aria-selected="false"
|
|
180
|
-
tab-index="-1"
|
|
181
|
-
>
|
|
182
|
-
Motown
|
|
183
|
-
</button>
|
|
184
|
-
</div>
|
|
185
|
-
<div class="mx-tabs__panel mx-vertical-flow mx-container"
|
|
186
|
-
id="unique-1"
|
|
187
|
-
data-tab="Funk"
|
|
188
|
-
role="tabpanel"
|
|
189
|
-
tabindex="0"
|
|
190
|
-
aria-label="Funk"
|
|
191
|
-
>
|
|
192
|
-
Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
193
|
-
</div>
|
|
194
|
-
<div class="mx-tabs__panel mx-vertical-flow mx-container"
|
|
195
|
-
id="unique-2"
|
|
196
|
-
data-tab="Soul"
|
|
197
|
-
role="tabpanel"
|
|
198
|
-
tabindex="0"
|
|
199
|
-
aria-label="Soul"
|
|
200
|
-
inert
|
|
201
|
-
>
|
|
202
|
-
Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.
|
|
203
|
-
</div>
|
|
204
|
-
<div class="mx-tabs__panel mx-vertical-flow mx-container"
|
|
205
|
-
id="unique-3"
|
|
206
|
-
data-tab="Motown"
|
|
207
|
-
role="tabpanel"
|
|
208
|
-
tabindex="0"
|
|
209
|
-
aria-label="Motown"
|
|
210
|
-
inert
|
|
211
|
-
>
|
|
212
|
-
Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
213
|
-
</div>
|
|
214
19
|
</mx-tabs>
|
|
20
|
+
"
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
exports[`With Heading 1`] = `
|
|
24
|
+
"
|
|
25
|
+
|
|
26
|
+
<h2>Tabs heading</h2>
|
|
27
|
+
|
|
28
|
+
<mx-tabs class="mx-tabs mx-tabs--lined" id="tab-example"><mx-dropmenu closeonclick="true"><button id="tab-example-target" class="mx-popover__trigger mx-button mx-icon mx-icon--chevron-down mx-icon--end" popovertarget="tab-example" style="anchor-name: --tab-example" hidden="">Funk</button><div class="mx-popover mx-drop-menu" id="tab-example" aria-describedby="tab-example-target" style="position-anchor: --tab-example" data-placement="bottom-start" popover="" role="tablist"><button type="button" role="tab" aria-controls="tab-1" aria-selected="false">Funk</button><button type="button" role="tab" aria-controls="tab-2" aria-selected="false">Soul</button><button type="button" role="tab" aria-controls="tab-3" aria-selected="false">Motown</button></div></mx-dropmenu><div class="mx-tabs__list" role="tablist"><button type="button" role="tab" aria-controls="tab-1" aria-selected="true" tab-index="0">Funk</button><button type="button" role="tab" aria-controls="tab-2" aria-selected="false" tab-index="-1">Soul</button><button type="button" role="tab" aria-controls="tab-3" aria-selected="false" tab-index="-1">Motown</button></div>
|
|
29
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="tab-1" data-tab="Funk" role="tabpanel" tabindex="0" aria-label="Funk">
|
|
30
|
+
Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="tab-2" data-tab="Soul" role="tabpanel" tabindex="0" aria-label="Soul" inert="">
|
|
34
|
+
Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.
|
|
215
35
|
</div>
|
|
36
|
+
|
|
37
|
+
<div class="mx-tabs__panel mx-vertical-flow mx-container" id="tab-3" data-tab="Motown" role="tabpanel" tabindex="0" aria-label="Motown" inert="">
|
|
38
|
+
Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
</mx-tabs>
|
|
42
|
+
"
|
|
216
43
|
`;
|
|
@@ -1,117 +1,3 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
<div class="mx-tabs">
|
|
5
|
-
<div class="mobile-only">
|
|
6
|
-
<button id="unique-0"
|
|
7
|
-
type="button"
|
|
8
|
-
class="mx-button mx-icon mx-icon--chevron-down mx-icon--end mx-drop-menu__trigger"
|
|
9
|
-
popovertarget="tabs-storybook"
|
|
10
|
-
style="anchor-name: --drop-menu-tabs-storybook;"
|
|
11
|
-
>
|
|
12
|
-
Tab 1
|
|
13
|
-
</button>
|
|
14
|
-
<div id="tabs-storybook"
|
|
15
|
-
class="mx-drop-menu"
|
|
16
|
-
popover
|
|
17
|
-
aria-labelledby="unique-0"
|
|
18
|
-
aria-describedby="unique-0"
|
|
19
|
-
role="tablist"
|
|
20
|
-
style="position-anchor: --drop-menu-tabs-storybook;"
|
|
21
|
-
>
|
|
22
|
-
<div id="tabs-storybook-description"
|
|
23
|
-
class="sr-only"
|
|
24
|
-
>
|
|
25
|
-
Results will update when you make a selection. Press escape to close.
|
|
26
|
-
</div>
|
|
27
|
-
<button type="button"
|
|
28
|
-
data-id="tab-1"
|
|
29
|
-
aria-checked="true"
|
|
30
|
-
role="tab"
|
|
31
|
-
aria-controls="unique-1"
|
|
32
|
-
>
|
|
33
|
-
Tab 1
|
|
34
|
-
</button>
|
|
35
|
-
<button type="button"
|
|
36
|
-
data-id="tab-2"
|
|
37
|
-
aria-checked="false"
|
|
38
|
-
role="tab"
|
|
39
|
-
aria-controls="unique-2"
|
|
40
|
-
>
|
|
41
|
-
Tab 2
|
|
42
|
-
</button>
|
|
43
|
-
<button type="button"
|
|
44
|
-
data-id="tab-3"
|
|
45
|
-
aria-checked="false"
|
|
46
|
-
role="tab"
|
|
47
|
-
aria-controls="unique-3"
|
|
48
|
-
>
|
|
49
|
-
Tab 3
|
|
50
|
-
</button>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
<div class="mx-tabs__list desktop-only"
|
|
54
|
-
role="tablist"
|
|
55
|
-
>
|
|
56
|
-
<button id="unique-1"
|
|
57
|
-
aria-controls="unique-4"
|
|
58
|
-
role="tab"
|
|
59
|
-
aria-selected="true"
|
|
60
|
-
tabindex="0"
|
|
61
|
-
type="button"
|
|
62
|
-
>
|
|
63
|
-
Tab 1
|
|
64
|
-
</button>
|
|
65
|
-
<button id="unique-2"
|
|
66
|
-
aria-controls="unique-5"
|
|
67
|
-
role="tab"
|
|
68
|
-
aria-selected="false"
|
|
69
|
-
tabindex="-1"
|
|
70
|
-
type="button"
|
|
71
|
-
>
|
|
72
|
-
Tab 2
|
|
73
|
-
</button>
|
|
74
|
-
<button id="unique-3"
|
|
75
|
-
aria-controls="unique-6"
|
|
76
|
-
role="tab"
|
|
77
|
-
aria-selected="false"
|
|
78
|
-
tabindex="-1"
|
|
79
|
-
type="button"
|
|
80
|
-
>
|
|
81
|
-
Tab 3
|
|
82
|
-
</button>
|
|
83
|
-
</div>
|
|
84
|
-
<div id="unique-4"
|
|
85
|
-
class="mx-tabs__panel mx-vertical-flow mx-section--l"
|
|
86
|
-
aria-labelledby="unique-7"
|
|
87
|
-
role="tabpanel"
|
|
88
|
-
tabindex="0"
|
|
89
|
-
>
|
|
90
|
-
<p>
|
|
91
|
-
This is tab 1
|
|
92
|
-
</p>
|
|
93
|
-
</div>
|
|
94
|
-
<div id="unique-5"
|
|
95
|
-
class="mx-tabs__panel mx-vertical-flow mx-section--l"
|
|
96
|
-
inert
|
|
97
|
-
aria-labelledby="unique-8"
|
|
98
|
-
role="tabpanel"
|
|
99
|
-
tabindex="0"
|
|
100
|
-
>
|
|
101
|
-
<p>
|
|
102
|
-
This is tab 2
|
|
103
|
-
</p>
|
|
104
|
-
</div>
|
|
105
|
-
<div id="unique-6"
|
|
106
|
-
class="mx-tabs__panel mx-vertical-flow mx-section--l"
|
|
107
|
-
inert
|
|
108
|
-
aria-labelledby="unique-9"
|
|
109
|
-
role="tabpanel"
|
|
110
|
-
tabindex="0"
|
|
111
|
-
>
|
|
112
|
-
<p>
|
|
113
|
-
This is tab 3
|
|
114
|
-
</p>
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
`;
|
|
3
|
+
exports[`Default 1`] = `"<div class="mx-tabs"><div class="mobile-only"><button id="tabs-storybook-target" type="button" class="mx-button mx-icon mx-icon--chevron-down mx-icon--end mx-drop-menu__trigger" popovertarget="tabs-storybook" style="anchor-name: --drop-menu-tabs-storybook;">Tab 1</button><div id="tabs-storybook" class="mx-drop-menu" popover="" aria-labelledby="tabs-storybook-target" aria-describedby="tabs-storybook-description" role="tablist" style="position-anchor: --drop-menu-tabs-storybook;"><div id="tabs-storybook-description" class="sr-only">Results will update when you make a selection. Press escape to close.</div><button type="button" data-id="tab-1" aria-checked="true" role="tab" aria-controls="tab-1">Tab 1</button><button type="button" data-id="tab-2" aria-checked="false" role="tab" aria-controls="tab-2">Tab 2</button><button type="button" data-id="tab-3" aria-checked="false" role="tab" aria-controls="tab-3">Tab 3</button></div></div><div class="mx-tabs__list desktop-only" role="tablist"><button id="tab-1-button" aria-controls="tab-1" role="tab" aria-selected="true" tabindex="0" type="button">Tab 1</button><button id="tab-2-button" aria-controls="tab-2" role="tab" aria-selected="false" tabindex="-1" type="button">Tab 2</button><button id="tab-3-button" aria-controls="tab-3" role="tab" aria-selected="false" tabindex="-1" type="button">Tab 3</button></div><div id="tab-1" class="mx-tabs__panel mx-vertical-flow mx-section--l" aria-labelledby="tab-1-button" role="tabpanel" tabindex="0"><p>This is tab 1</p></div><div id="tab-2" class="mx-tabs__panel mx-vertical-flow mx-section--l" inert="" aria-labelledby="tab-2-button" role="tabpanel" tabindex="0"><p>This is tab 2</p></div><div id="tab-3" class="mx-tabs__panel mx-vertical-flow mx-section--l" inert="" aria-labelledby="tab-3-button" role="tabpanel" tabindex="0"><p>This is tab 3</p></div></div>"`;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/react-vite"
|
|
2
2
|
import Component from "./Tag"
|
|
3
3
|
import "./tag.css"
|
|
4
|
+
import { Page } from "../../../.storybook-react/decorators"
|
|
4
5
|
|
|
5
6
|
const meta: Meta<typeof Component> = {
|
|
6
7
|
component: Component,
|
|
8
|
+
decorators: [Page],
|
|
7
9
|
args: {
|
|
8
10
|
children: "Tag name",
|
|
9
11
|
},
|
|
@@ -1,70 +1,46 @@
|
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<li>
|
|
19
|
-
<div class="mx-tag">
|
|
20
|
-
<input type="checkbox"
|
|
21
|
-
id="news"
|
|
22
|
-
name="tag"
|
|
23
|
-
value="news"
|
|
24
|
-
>
|
|
25
|
-
<label for="news">
|
|
26
|
-
News
|
|
27
|
-
</label>
|
|
28
|
-
</div>
|
|
29
|
-
</li>
|
|
3
|
+
exports[`Checkbox 1`] = `
|
|
4
|
+
"
|
|
5
|
+
<ul class="mx-tags">
|
|
6
|
+
<li>
|
|
7
|
+
<div class="mx-tag">
|
|
8
|
+
<input type="checkbox" id="music" name="tag" value="music">
|
|
9
|
+
<label for="music">Music</label>
|
|
10
|
+
</div>
|
|
11
|
+
</li>
|
|
12
|
+
<li>
|
|
13
|
+
<div class="mx-tag">
|
|
14
|
+
<input type="checkbox" id="news" name="tag" value="news">
|
|
15
|
+
<label for="news">News</label>
|
|
16
|
+
</div>
|
|
17
|
+
</li>
|
|
30
18
|
</ul>
|
|
31
|
-
|
|
19
|
+
"
|
|
32
20
|
`;
|
|
33
21
|
|
|
34
|
-
exports[`
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</li>
|
|
44
|
-
<li>
|
|
45
|
-
<a class="mx-tag"
|
|
46
|
-
href="#0"
|
|
47
|
-
>
|
|
48
|
-
News
|
|
49
|
-
</a>
|
|
50
|
-
</li>
|
|
22
|
+
exports[`Link 1`] = `
|
|
23
|
+
"
|
|
24
|
+
<ul class="mx-tags">
|
|
25
|
+
<li>
|
|
26
|
+
<a class="mx-tag" href="#0">Music</a>
|
|
27
|
+
</li>
|
|
28
|
+
<li>
|
|
29
|
+
<a class="mx-tag" href="#0">News</a>
|
|
30
|
+
</li>
|
|
51
31
|
</ul>
|
|
52
|
-
|
|
32
|
+
"
|
|
53
33
|
`;
|
|
54
34
|
|
|
55
|
-
exports[`
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
<span class="mx-tag">
|
|
65
|
-
News
|
|
66
|
-
</span>
|
|
67
|
-
</li>
|
|
35
|
+
exports[`Tag 1`] = `
|
|
36
|
+
"
|
|
37
|
+
<ul class="mx-tags">
|
|
38
|
+
<li>
|
|
39
|
+
<span class="mx-tag">Music</span>
|
|
40
|
+
</li>
|
|
41
|
+
<li>
|
|
42
|
+
<span class="mx-tag">News</span>
|
|
43
|
+
</li>
|
|
68
44
|
</ul>
|
|
69
|
-
|
|
45
|
+
"
|
|
70
46
|
`;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
<div class="mx-tag">
|
|
5
|
-
Tag name
|
|
6
|
-
</div>
|
|
7
|
-
`;
|
|
3
|
+
exports[`Tag 1`] = `"<div class="mx-tag">Tag name</div>"`;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
{% set
|
|
2
|
-
{% set
|
|
1
|
+
{% set attributes = (attributes ?? create_attribute()).addClass('mx-tags') %}
|
|
2
|
+
{% set tagAttributes = (tagAttributes ?? create_attribute()).addClass('mx-tag') %}
|
|
3
3
|
|
|
4
|
-
<ul
|
|
4
|
+
<ul{{ attributes }}>
|
|
5
5
|
{% for item in items %}
|
|
6
6
|
<li>
|
|
7
7
|
{% if type == "link" %}
|
|
8
|
-
<a{{
|
|
8
|
+
<a{{ tagAttributes}} href="{{ item.href }}">{{ item.title }}</a>
|
|
9
9
|
{% elseif type == "checkbox" %}
|
|
10
|
-
<div
|
|
10
|
+
<div{{ tagAttributes }}>
|
|
11
11
|
<input type="checkbox"
|
|
12
12
|
id="{{ item.id }}"
|
|
13
13
|
name="{{ item.name }}"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<label for="{{ item.id }}">{{ item.label }}</label>
|
|
17
17
|
</div>
|
|
18
18
|
{% else %}
|
|
19
|
-
<span{{
|
|
19
|
+
<span{{ tagAttributes }}>{{ item }}</span>
|
|
20
20
|
{% endif %}
|
|
21
21
|
</li>
|
|
22
22
|
{% endfor %}
|