@pnx-mixtape/mxds 0.0.2 → 0.0.4
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 +13 -13
- package/package.json +5 -4
- package/src/Atom/Background/__snapshots__/Backgrounds.stories.ts.snap +3 -3
- package/src/Atom/Background/_background.css +1 -22
- package/src/Atom/Blockquote/_blockquote.css +1 -1
- package/src/Atom/Button/Button.stories.ts +4 -6
- package/src/Atom/Button/README.md +3 -3
- package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +23 -11
- package/src/Atom/Button/__snapshots__/Button.stories.tsx.snap +2 -2
- package/src/Atom/Button/_buttons-styles.css +1 -1
- package/src/Atom/Button/_buttons.css +5 -1
- package/src/Atom/Button/button.twig +6 -4
- package/src/Atom/Button/twig/story-button.twig +11 -0
- package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.tsx.snap +1 -1
- package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +2 -2
- package/src/Atom/Heading/__snapshots__/Heading.stories.tsx.snap +1 -1
- package/src/Atom/Heading/_headings.css +1 -1
- package/src/Atom/Heading/heading.twig +19 -1
- package/src/Atom/Icon/README.md +1 -1
- package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +3 -3
- package/src/Atom/Icon/__snapshots__/Icon.stories.tsx.snap +3 -3
- package/src/Atom/Icon/_extended-set.css +1 -1
- package/src/Atom/Icon/_icon.css +5 -5
- package/src/Atom/Image/__snapshots__/Image.stories.ts.snap +1 -1
- package/src/Atom/Image/_image.css +1 -1
- package/src/Atom/Link/Link.stories.ts +31 -7
- package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +46 -6
- package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +3 -3
- package/src/Atom/Link/_links.css +24 -2
- package/src/Atom/Link/link.twig +8 -6
- package/src/Atom/Link/twig/story-link.twig +11 -0
- package/src/Atom/Media/Media.stories.ts +17 -1
- package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +17 -2
- package/src/Atom/Media/__snapshots__/Media.stories.tsx.snap +2 -2
- package/src/Atom/Media/_media.css +1 -1
- package/src/Atom/Media/media.twig +1 -5
- package/src/Atom/Media/twig/story-media.twig +11 -0
- package/src/Atom/NavList/__snapshots__/NavList.stories.ts.snap +1 -1
- package/src/Atom/NavList/nav-list.css +1 -1
- package/src/Atom/README.md +1 -1
- package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +1 -1
- package/src/Atom/Spacing/_spacing.css +1 -1
- package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +4 -4
- package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +1 -1
- package/src/Atom/Table/_table.css +1 -1
- package/src/Atom/Text/__snapshots__/Text.stories.tsx.snap +1 -1
- package/src/Atom/Text/__snapshots__/TextSizes.stories.ts.snap +2 -2
- package/src/Atom/Text/_text-align.css +1 -1
- package/src/Atom/Text/_text-sizes.css +1 -1
- package/src/Atom/Video/Video.stories.ts +5 -3
- package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +3 -13
- package/src/Atom/Video/_video.css +6 -1
- package/src/Atom/Video/video.twig +10 -4
- package/src/Atom/_animated.css +1 -1
- package/src/Atom/_flow-legacy.css +1 -1
- package/src/Atom/_flow.css +1 -1
- package/src/Atom/_generic.css +1 -1
- package/src/Atom/_hr.css +1 -1
- package/src/Atom/base.css +2 -2
- package/src/Component/Accordion/README.md +7 -17
- package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +4 -4
- package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +1 -1
- package/src/Component/Accordion/accordion.css +2 -2
- package/src/Component/Accordion/accordion.entry.js +2 -0
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +1 -1
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +2 -2
- package/src/Component/Breadcrumb/breadcrumb.css +1 -1
- package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +12 -0
- package/src/Component/Callout/callout.css +1 -1
- package/src/Component/Card/README.md +7 -13
- package/src/Component/Card/__snapshots__/Card.stories.ts.snap +34 -24
- package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +3 -3
- package/src/Component/Card/card.css +3 -3
- package/src/Component/ContentBlock/README.md +7 -13
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +6 -23
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.tsx.snap +1 -1
- package/src/Component/ContentBlock/content-block.css +2 -2
- package/src/Component/Dialog/README.md +15 -49
- package/src/Component/Dialog/__snapshots__/Dialog.stories.ts.snap +2 -2
- package/src/Component/Dialog/__snapshots__/Dialog.stories.tsx.snap +1 -1
- package/src/Component/Dialog/dialog.css +3 -3
- package/src/Component/Dialog/dialog.entry.js +1 -0
- package/src/Component/DropMenu/README.md +19 -4
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +1 -1
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +1 -1
- package/src/Component/DropMenu/drop-menu.css +1 -1
- package/src/Component/DropMenu/drop-menu.entry.js +1 -0
- package/src/Component/{InPageAlert/Elements/InPageAlert.ts → GlobalAlert/Elements/ClosableAlert.ts} +21 -10
- package/src/Component/GlobalAlert/GlobalAlert.stories.ts +49 -0
- package/src/Component/GlobalAlert/GlobalAlert.stories.tsx +33 -0
- package/src/Component/GlobalAlert/GlobalAlert.tsx +50 -0
- package/src/Component/GlobalAlert/README.md +27 -0
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +43 -0
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +48 -0
- package/src/Component/GlobalAlert/global-alert.css +55 -0
- package/src/Component/GlobalAlert/global-alert.entry.js +1 -0
- package/src/Component/GlobalAlert/global-alert.twig +30 -0
- package/src/Component/GlobalAlert/twig/story-global-alert.twig +14 -0
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +74 -0
- package/src/Component/HeroBanner/__snapshots__/{PageTitle.stories.tsx.snap → HeroBanner.stories.tsx.snap} +4 -4
- package/src/Component/HeroBanner/hero-banner.css +1 -1
- package/src/Component/HeroBanner/hero-banner.twig +1 -0
- package/src/Component/InPageAlert/InPageAlert.stories.ts +20 -22
- package/src/Component/InPageAlert/InPageAlert.stories.tsx +5 -5
- package/src/Component/InPageAlert/InPageAlert.tsx +15 -41
- package/src/Component/InPageAlert/README.md +4 -4
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +9 -36
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.tsx.snap +56 -56
- package/src/Component/InPageAlert/in-page-alert.css +2 -2
- package/src/Component/InPageAlert/in-page-alert.twig +13 -16
- package/src/Component/InPageAlert/twig/story-in-page-alert.twig +11 -0
- package/src/Component/InPageNavigation/README.md +10 -15
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +6 -70
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +1 -1
- package/src/Component/InPageNavigation/in-page-navigation.css +2 -2
- package/src/Component/InPageNavigation/in-page-navigation.entry.js +1 -0
- package/src/Component/LinkList/README.md +3 -3
- package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +24 -55
- package/src/Component/LinkList/link-list.css +1 -1
- package/src/Component/Navigation/README.md +16 -7
- package/src/Component/Navigation/__snapshots__/Collapsible.stories.ts.snap +1 -1
- package/src/Component/Navigation/__snapshots__/Dropdown.stories.ts.snap +1 -1
- package/src/Component/Navigation/__snapshots__/Dropdown.stories.tsx.snap +1 -1
- package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +1 -1
- package/src/Component/Navigation/__snapshots__/Navigation.stories.tsx.snap +2 -2
- package/src/Component/Navigation/_navigation-collapsible.css +1 -1
- package/src/Component/Navigation/_navigation-dropdown.css +1 -1
- package/src/Component/Navigation/_navigation-mega.css +1 -1
- package/src/Component/Navigation/_navigation.css +1 -1
- package/src/Component/Navigation/navigation.entry.js +1 -0
- package/src/Component/Pagination/README.md +3 -3
- package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +1 -1
- package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +1 -1
- package/src/Component/Pagination/pagination.css +1 -1
- package/src/Component/Sticky/README.md +12 -5
- package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +9 -82
- package/src/Component/Sticky/__snapshots__/Sticky.stories.tsx.snap +1 -1
- package/src/Component/Sticky/sticky.css +2 -2
- package/src/Component/Sticky/sticky.entry.js +1 -0
- package/src/Component/Tabs/README.md +11 -4
- package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +1 -1
- package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +1 -1
- package/src/Component/Tabs/tabs.css +2 -2
- package/src/Component/Tabs/tabs.entry.js +1 -0
- package/src/Component/Tag/README.md +2 -2
- package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +3 -3
- package/src/Component/Tag/__snapshots__/Tag.stories.tsx.snap +1 -1
- package/src/Component/Tag/tag.css +1 -1
- package/src/Component/Tile/__snapshots__/Tile.stories.ts.snap +1 -1
- package/src/Component/Tile/__snapshots__/Tile.stories.tsx.snap +2 -2
- package/src/Component/Tile/tiles.css +1 -1
- package/src/Form/README.md +2 -2
- package/src/Form/form.css +12 -12
- package/src/Layout/Footer/FooterMenu/__snapshots__/FooterMenu.stories.ts.snap +1 -1
- package/src/Layout/Footer/FooterMenu/footer-menu.css +1 -1
- package/src/Layout/Footer/footer.css +1 -1
- package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +33 -90
- package/src/Layout/Grid/container-grid.css +2 -2
- package/src/Layout/Grid/grid.css +2 -2
- package/src/Layout/Header/_header.css +1 -1
- package/src/Layout/Header/_toggles.css +1 -1
- package/src/Layout/Header/header.entry.js +1 -0
- package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +2 -2
- package/src/Layout/Masthead/masthead.css +5 -5
- package/src/Layout/Masthead/masthead.twig +2 -2
- package/src/Layout/Page/README.md +2 -2
- package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +1 -1
- package/src/Layout/Page/page.css +2 -2
- package/src/Layout/README.md +3 -2
- package/src/Layout/Section/Section.stories.ts +1 -2
- package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +59 -0
- package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +80 -0
- package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +91 -0
- package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +22 -14
- package/src/Layout/Section/section.css +4 -4
- package/src/Layout/Section/twig/section-story.twig +1 -1
- package/src/Layout/Sidebar/sidebar.css +1 -1
- package/src/Utility/Drupal/README.md +1 -1
- package/src/Utility/README.md +1 -1
- package/src/Utility/_layout-utils.css +1 -1
- package/src/Utility/utilities.css +3 -3
- package/src/elements.ts +1 -1
- package/dist/build/Accordion.js +0 -61
- package/dist/build/Accordion.js.map +0 -1
- package/dist/build/AccordionDiv.js +0 -62
- package/dist/build/AccordionDiv.js.map +0 -1
- package/dist/build/AccordionGroup.js +0 -85
- package/dist/build/AccordionGroup.js.map +0 -1
- package/dist/build/AccordionMobile.js +0 -31
- package/dist/build/AccordionMobile.js.map +0 -1
- package/dist/build/Dialog.js +0 -116
- package/dist/build/Dialog.js.map +0 -1
- package/dist/build/DropMenu.js +0 -132
- package/dist/build/DropMenu.js.map +0 -1
- package/dist/build/GlobalToggle.js +0 -103
- package/dist/build/GlobalToggle.js.map +0 -1
- package/dist/build/InPageAlert.js +0 -61
- package/dist/build/InPageAlert.js.map +0 -1
- package/dist/build/InPageNavigation.js +0 -92
- package/dist/build/InPageNavigation.js.map +0 -1
- package/dist/build/Navigation.js +0 -126
- package/dist/build/Navigation.js.map +0 -1
- package/dist/build/Sticky.js +0 -63
- package/dist/build/Sticky.js.map +0 -1
- package/dist/build/Tabs.js +0 -164
- package/dist/build/Tabs.js.map +0 -1
- package/dist/build/accordion.css +0 -108
- package/dist/build/base.css +0 -1000
- package/dist/build/breadcrumb.css +0 -47
- package/dist/build/breakpoint-loader.js +0 -52
- package/dist/build/breakpoint-loader.js.map +0 -1
- package/dist/build/button.css +0 -126
- package/dist/build/callout.css +0 -11
- package/dist/build/card.css +0 -135
- package/dist/build/chunks/js.cookie-CiMiGxWx.js +0 -101
- package/dist/build/chunks/js.cookie-CiMiGxWx.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-BIk0P2KX.js +0 -61
- package/dist/build/chunks/utilities-BIk0P2KX.js.map +0 -1
- package/dist/build/constants.css +0 -120
- package/dist/build/container-grid.css +0 -207
- package/dist/build/content-block.css +0 -23
- package/dist/build/cookie-compliance.js +0 -122
- package/dist/build/cookie-compliance.js.map +0 -1
- package/dist/build/dialog.css +0 -98
- package/dist/build/disclosure-widget.js +0 -124
- package/dist/build/disclosure-widget.js.map +0 -1
- package/dist/build/drop-menu.css +0 -78
- package/dist/build/drupal.css +0 -74
- package/dist/build/footer-menu.css +0 -32
- package/dist/build/footer.css +0 -61
- package/dist/build/form.css +0 -589
- package/dist/build/grid.css +0 -200
- package/dist/build/header.css +0 -131
- package/dist/build/hero-banner.css +0 -62
- package/dist/build/icon.css +0 -399
- package/dist/build/in-page-alert.css +0 -94
- package/dist/build/in-page-navigation.css +0 -17
- package/dist/build/index.css +0 -4980
- package/dist/build/io-loader.js +0 -44
- package/dist/build/io-loader.js.map +0 -1
- package/dist/build/keyboard.js +0 -101
- package/dist/build/keyboard.js.map +0 -1
- package/dist/build/link-list.css +0 -72
- package/dist/build/masthead.css +0 -39
- package/dist/build/nav-list.css +0 -29
- package/dist/build/navigation.css +0 -371
- package/dist/build/page.css +0 -184
- package/dist/build/pagination.css +0 -123
- package/dist/build/section.css +0 -160
- package/dist/build/sidebar.css +0 -105
- package/dist/build/sticky.css +0 -47
- package/dist/build/tabs.css +0 -106
- package/dist/build/tag.css +0 -67
- package/dist/build/tiles.css +0 -61
- package/dist/build/utilities.css +0 -175
- package/src/Component/Card/__snapshots__/CardGrid.stories.ts.snap +0 -89
- package/src/Component/HeroBanner/__snapshots__/PageTitle.stories.ts.snap +0 -31
- package/src/Layout/Section/__snapshots__/SectionBackground.stories.ts.snap +0 -55
- package/src/Layout/Section/__snapshots__/SectionsBreakouts.stories.ts.snap +0 -78
- package/src/Layout/Section/__snapshots__/SectionsFlowsGroups.stories.ts.snap +0 -89
- package/src/index.css +0 -27
|
@@ -1,43 +1,16 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
<
|
|
5
|
-
id="unique-0"
|
|
6
|
-
>
|
|
3
|
+
exports[`Component/InPageAlert InPageAlert smoke-test 1`] = `
|
|
4
|
+
<div class="message ">
|
|
7
5
|
<div class="message__content">
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<a href="#">
|
|
6
|
+
Something happened that requires your attention
|
|
7
|
+
<a class="link "
|
|
8
|
+
href="#"
|
|
9
|
+
>
|
|
10
|
+
<span>
|
|
14
11
|
Click here
|
|
15
|
-
</
|
|
16
|
-
|
|
17
|
-
</p>
|
|
18
|
-
</div>
|
|
19
|
-
<button class="icon icon--close"
|
|
20
|
-
aria-controls="unique-0"
|
|
21
|
-
aria-label="Close InPageAlert"
|
|
22
|
-
type="button"
|
|
23
|
-
>
|
|
24
|
-
</button>
|
|
25
|
-
</mx-closable-alert>
|
|
26
|
-
`;
|
|
27
|
-
|
|
28
|
-
exports[`Components/InPageAlert InPageAlert smoke-test 1`] = `
|
|
29
|
-
<div class="message message--">
|
|
30
|
-
<div class="message__content">
|
|
31
|
-
<p>
|
|
32
|
-
<b>
|
|
33
|
-
Something happened.
|
|
34
|
-
</b>
|
|
35
|
-
And if you'd like to know what,
|
|
36
|
-
<a href="#">
|
|
37
|
-
Click here
|
|
38
|
-
</a>
|
|
39
|
-
.
|
|
40
|
-
</p>
|
|
12
|
+
</span>
|
|
13
|
+
</a>
|
|
41
14
|
</div>
|
|
42
15
|
</div>
|
|
43
16
|
`;
|
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
<div
|
|
5
|
-
|
|
6
|
-
>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
</
|
|
3
|
+
exports[`Component/InPageAlert Error smoke-test 1`] = `
|
|
4
|
+
<div class="message message--error icon icon--error">
|
|
5
|
+
<div class="message__content">
|
|
6
|
+
<p>
|
|
7
|
+
<b>
|
|
8
|
+
Something happened.
|
|
9
|
+
</b>
|
|
10
|
+
And if you'd like to know what,
|
|
11
|
+
<a href="#">
|
|
12
|
+
Click here
|
|
13
|
+
</a>
|
|
14
|
+
.
|
|
15
|
+
</p>
|
|
16
|
+
</div>
|
|
17
17
|
</div>
|
|
18
18
|
`;
|
|
19
19
|
|
|
20
|
-
exports[`
|
|
21
|
-
<div
|
|
22
|
-
|
|
23
|
-
>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
</
|
|
20
|
+
exports[`Component/InPageAlert InPageAlert smoke-test 1`] = `
|
|
21
|
+
<div class="message message--info icon icon--info">
|
|
22
|
+
<div class="message__content">
|
|
23
|
+
<p>
|
|
24
|
+
<b>
|
|
25
|
+
Something happened.
|
|
26
|
+
</b>
|
|
27
|
+
And if you'd like to know what,
|
|
28
|
+
<a href="#">
|
|
29
|
+
Click here
|
|
30
|
+
</a>
|
|
31
|
+
.
|
|
32
|
+
</p>
|
|
33
|
+
</div>
|
|
34
34
|
</div>
|
|
35
35
|
`;
|
|
36
36
|
|
|
37
|
-
exports[`
|
|
38
|
-
<div
|
|
39
|
-
|
|
40
|
-
>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</
|
|
37
|
+
exports[`Component/InPageAlert Success smoke-test 1`] = `
|
|
38
|
+
<div class="message message--success icon icon--success">
|
|
39
|
+
<div class="message__content">
|
|
40
|
+
<p>
|
|
41
|
+
<b>
|
|
42
|
+
Something happened.
|
|
43
|
+
</b>
|
|
44
|
+
And if you'd like to know what,
|
|
45
|
+
<a href="#">
|
|
46
|
+
Click here
|
|
47
|
+
</a>
|
|
48
|
+
.
|
|
49
|
+
</p>
|
|
50
|
+
</div>
|
|
51
51
|
</div>
|
|
52
52
|
`;
|
|
53
53
|
|
|
54
|
-
exports[`
|
|
55
|
-
<div
|
|
56
|
-
|
|
57
|
-
>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
</
|
|
54
|
+
exports[`Component/InPageAlert Warning smoke-test 1`] = `
|
|
55
|
+
<div class="message message--warning icon icon--warning">
|
|
56
|
+
<div class="message__content">
|
|
57
|
+
<p>
|
|
58
|
+
<b>
|
|
59
|
+
Something happened.
|
|
60
|
+
</b>
|
|
61
|
+
And if you'd like to know what,
|
|
62
|
+
<a href="#">
|
|
63
|
+
Click here
|
|
64
|
+
</a>
|
|
65
|
+
.
|
|
66
|
+
</p>
|
|
67
|
+
</div>
|
|
68
68
|
</div>
|
|
69
69
|
`;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
{%
|
|
2
|
-
|
|
1
|
+
{% set baseClass = 'message' %}
|
|
2
|
+
{% set classes = [
|
|
3
|
+
baseClass,
|
|
4
|
+
type ? baseClass~'--'~type : null,
|
|
5
|
+
type ? 'icon icon--'~type : null,
|
|
6
|
+
] %}
|
|
7
|
+
{% set attributes = (attributes|default(create_attribute())).addClass(classes) %}
|
|
8
|
+
|
|
9
|
+
<div {{ attributes }}>
|
|
3
10
|
<div class="message__content">
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
{
|
|
7
|
-
</div>
|
|
8
|
-
</mx-closable-alert>
|
|
9
|
-
{% else %}
|
|
10
|
-
<div class="message message--{{ type }}{% if type %} icon icon--{{ type }}{% endif %}"{% if id %} id="{{ id ~ type }}"{% endif %}>
|
|
11
|
-
<div class="message__content">
|
|
12
|
-
{% block content %}
|
|
13
|
-
<p><b>Something happened.</b> And if you'd like to know what, <a href="#">Click here</a>.</p>
|
|
14
|
-
{% endblock %}
|
|
15
|
-
</div>
|
|
11
|
+
{{ title }}
|
|
12
|
+
{{ content }}
|
|
13
|
+
{{ link }}
|
|
16
14
|
</div>
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{% extends "../in-page-alert.twig" %}
|
|
2
|
+
{% if title %}
|
|
3
|
+
{% set title %}
|
|
4
|
+
{% include '@mixtape/Atom/Heading/heading.twig' with { title: title.title, as: title.as, modifiers: title.modifiers } only %}
|
|
5
|
+
{% endset %}
|
|
6
|
+
{% endif %}
|
|
7
|
+
{% if link %}
|
|
8
|
+
{% set link %}
|
|
9
|
+
{% include '@mixtape/Atom/Link/link.twig' with { href: link.href, title: link.title } only %}
|
|
10
|
+
{% endset %}
|
|
11
|
+
{% endif %}
|
|
@@ -4,27 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/in-page-navigation.css';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Component/InPageNavigation/in-page-navigation.css';`
|
|
8
|
+
|
|
9
|
+
**Twig**
|
|
10
|
+
|
|
11
|
+
You can setup a twig namespace in your project if you wish to use the twig files directly.
|
|
12
|
+
|
|
13
|
+
- Eg: `{% extends '@mixtape/Component/InPageNavigation/in-page-navigation.twig' %}`
|
|
14
|
+
|
|
15
|
+
Alternatively copy/paste the file for more control.
|
|
8
16
|
|
|
9
17
|
**Web Components**
|
|
10
18
|
|
|
11
19
|
Web Components are self defined, simply import the desired feature. These do not use the Shadow DOM. External CSS applies.
|
|
12
20
|
|
|
13
|
-
- InPageNavigationBase import: `import '@pnx-mixtape/mxds/
|
|
21
|
+
- InPageNavigationBase import: `import '@pnx-mixtape/mxds/src/Component/InPageNavigation/Element/InPageNavigation';` and be sure to include `<mx-in-page-navigation>` around the `<nav />` tag.
|
|
14
22
|
- Use the `[data-content]` attribute to specify where to look for headings (required).
|
|
15
23
|
- Use the `[data-headings]` attribute to customise the heading levels. Default is h2.
|
|
16
24
|
|
|
17
|
-
```html
|
|
18
|
-
<mx-in-page-navigation data-content=".page__sections" data-headings="h2, h3">
|
|
19
|
-
<nav class="in-page-navigation nav nav--jump">
|
|
20
|
-
<h4>Jump to Section</h4>
|
|
21
|
-
<ul></ul>
|
|
22
|
-
</nav>
|
|
23
|
-
</mx-in-page-navigation>
|
|
24
|
-
|
|
25
|
-
<div class="page__sections">
|
|
26
|
-
<h2 id="section">Section title</h2>
|
|
27
|
-
</div>
|
|
28
|
-
```
|
|
29
|
-
|
|
30
25
|
See twig files for all HTML examples.
|
|
@@ -1,73 +1,9 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
data-headings="h2, h3"
|
|
10
|
-
>
|
|
11
|
-
<nav class="in-page-navigation nav nav--list">
|
|
12
|
-
<h4 class="text--embellished-headline">
|
|
13
|
-
Jump To Section
|
|
14
|
-
</h4>
|
|
15
|
-
<ul>
|
|
16
|
-
</ul>
|
|
17
|
-
</nav>
|
|
18
|
-
</mx-in-page-navigation>
|
|
19
|
-
</aside>
|
|
20
|
-
<section class="js-content rich-text vertical-flow">
|
|
21
|
-
<h2>
|
|
22
|
-
Section 1
|
|
23
|
-
</h2>
|
|
24
|
-
<p>
|
|
25
|
-
In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
|
|
26
|
-
</p>
|
|
27
|
-
<h2 id="anchor-test">
|
|
28
|
-
Section 2
|
|
29
|
-
</h2>
|
|
30
|
-
<p>
|
|
31
|
-
In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
|
|
32
|
-
</p>
|
|
33
|
-
<h3>
|
|
34
|
-
Test level 3
|
|
35
|
-
</h3>
|
|
36
|
-
<p>
|
|
37
|
-
In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
|
|
38
|
-
</p>
|
|
39
|
-
<h2>
|
|
40
|
-
Section 3
|
|
41
|
-
</h2>
|
|
42
|
-
<p>
|
|
43
|
-
In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
|
|
44
|
-
</p>
|
|
45
|
-
<h2>
|
|
46
|
-
Section 4
|
|
47
|
-
</h2>
|
|
48
|
-
<p>
|
|
49
|
-
In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
|
|
50
|
-
</p>
|
|
51
|
-
<h2>
|
|
52
|
-
Section 5
|
|
53
|
-
</h2>
|
|
54
|
-
<p>
|
|
55
|
-
In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
|
|
56
|
-
</p>
|
|
57
|
-
<h3>
|
|
58
|
-
Test level 6
|
|
59
|
-
</h3>
|
|
60
|
-
<p>
|
|
61
|
-
In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
|
|
62
|
-
</p>
|
|
63
|
-
<h2>
|
|
64
|
-
Section 7
|
|
65
|
-
</h2>
|
|
66
|
-
<p>
|
|
67
|
-
In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
|
|
68
|
-
</p>
|
|
69
|
-
</section>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
</section>
|
|
3
|
+
exports[`Component/InPageNavigation InPageNavigation smoke-test 1`] = `
|
|
4
|
+
"
|
|
5
|
+
< class="section ">
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
"
|
|
73
9
|
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`Component/InPageNavigation InPageNavigation smoke-test 1`] = `
|
|
4
4
|
<div class="grid--sidebar">
|
|
5
5
|
<aside>
|
|
6
6
|
<nav class="in-page-navigation nav nav--list">
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* InPageNavigation
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
@layer defaults {
|
|
5
|
+
@layer design-system.defaults {
|
|
6
6
|
mx-in-page-navigation {
|
|
7
7
|
display: block;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
@layer components {
|
|
11
|
+
@layer design-system.components {
|
|
12
12
|
.in-page-navigation {
|
|
13
13
|
& .in-page-navigation__level--h3 {
|
|
14
14
|
padding-inline-start: var(--spacing-s);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./Elements/InPageNavigation"
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/link-list.css';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Component/LinkList/link-list.css';`
|
|
8
8
|
|
|
9
9
|
**Twig**
|
|
10
10
|
|
|
11
11
|
You can setup a twig namespace in your project if you wish to use the twig files directly.
|
|
12
12
|
|
|
13
|
-
- Eg: `{% extends '@mixtape/
|
|
13
|
+
- Eg: `{% extends '@mixtape/Component/LinkList/link-list.twig' %}`
|
|
14
14
|
|
|
15
15
|
Alternatively copy/paste the file for more control.
|
|
16
16
|
|
|
17
17
|
**JSX Components**
|
|
18
18
|
|
|
19
|
-
- JSX import: `import { LinkList, LinkListItem } from '@pnx-mixtape/mxds/react';`
|
|
19
|
+
- JSX import: `import { LinkList, LinkListItem } from '@pnx-mixtape/mxds/src/react';`
|
|
@@ -1,58 +1,27 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</a>
|
|
28
|
-
</li>
|
|
29
|
-
</ul>
|
|
30
|
-
</div>
|
|
31
|
-
<div class="grid--6-col">
|
|
32
|
-
<ul class="link-list">
|
|
33
|
-
<li>
|
|
34
|
-
<a href="#"
|
|
35
|
-
class="icon icon--chevron-right"
|
|
36
|
-
>
|
|
37
|
-
Music
|
|
38
|
-
</a>
|
|
39
|
-
</li>
|
|
40
|
-
<li>
|
|
41
|
-
<a href="#"
|
|
42
|
-
class="icon icon--chevron-right"
|
|
43
|
-
>
|
|
44
|
-
Performances
|
|
45
|
-
</a>
|
|
46
|
-
</li>
|
|
47
|
-
<li>
|
|
48
|
-
<a href="#"
|
|
49
|
-
class="icon icon--chevron-right"
|
|
50
|
-
>
|
|
51
|
-
Get involved
|
|
52
|
-
</a>
|
|
53
|
-
</li>
|
|
54
|
-
</ul>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
</section>
|
|
3
|
+
exports[`Component/LinkList LinkList smoke-test 1`] = `
|
|
4
|
+
<ul class="link-list">
|
|
5
|
+
<li>
|
|
6
|
+
<a href="#"
|
|
7
|
+
class="icon icon--chevron-right"
|
|
8
|
+
>
|
|
9
|
+
Music
|
|
10
|
+
</a>
|
|
11
|
+
</li>
|
|
12
|
+
<li>
|
|
13
|
+
<a href="#"
|
|
14
|
+
class="icon icon--chevron-right"
|
|
15
|
+
>
|
|
16
|
+
Performances
|
|
17
|
+
</a>
|
|
18
|
+
</li>
|
|
19
|
+
<li>
|
|
20
|
+
<a href="#"
|
|
21
|
+
class="icon icon--chevron-right"
|
|
22
|
+
>
|
|
23
|
+
Get involved
|
|
24
|
+
</a>
|
|
25
|
+
</li>
|
|
26
|
+
</ul>
|
|
58
27
|
`;
|
|
@@ -4,14 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/navigation.css';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Component/Navigation/navigation.css';`
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Twig**
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
- ES6 submodule import: `import NavigationFlyout from '@pnx-mixtape/mxds/mavigation/navigation-flyout';`
|
|
13
|
-
- Script tag: `<script src="dist/navigation.js" type="text/javascript"></script>`
|
|
11
|
+
You can setup a twig namespace in your project if you wish to use the twig files directly.
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
- Eg: `{% extends '@mixtape/Component/Navigation/navigation.twig' %}`
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
Alternatively copy/paste the file for more control.
|
|
16
|
+
|
|
17
|
+
**JS Custom Element**
|
|
18
|
+
|
|
19
|
+
Custom Elements are self defined, simply import the desired feature.
|
|
20
|
+
These do not use the Shadow DOM and are not typical Web Components.
|
|
21
|
+
External CSS applies.
|
|
22
|
+
No Polyfills or frameworks are required.
|
|
23
|
+
|
|
24
|
+
- Sticky import: `import '@pnx-mixtape/mxds/src/Component/Navigation/Elements/Navigation';` and be sure to include `<mx-navigation>` around the menu.
|
|
25
|
+
|
|
26
|
+
See twig files for all HTML examples.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`Component/Navigation/Collapsible Collapsible smoke-test 1`] = `
|
|
4
4
|
<mx-nav>
|
|
5
5
|
<nav class="nav nav--collapsible">
|
|
6
6
|
<ul class="nav__level-1">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`Component/Navigation InlineNavigation smoke-test 1`] = `
|
|
4
4
|
<nav class="nav nav--inline"
|
|
5
5
|
aria-label="Inline Navigation"
|
|
6
6
|
>
|
|
@@ -30,7 +30,7 @@ exports[`Components/Navigation InlineNavigation smoke-test 1`] = `
|
|
|
30
30
|
</nav>
|
|
31
31
|
`;
|
|
32
32
|
|
|
33
|
-
exports[`
|
|
33
|
+
exports[`Component/Navigation Navigation smoke-test 1`] = `
|
|
34
34
|
<nav class="nav"
|
|
35
35
|
aria-label="Navigation"
|
|
36
36
|
>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./Elements/Navigation"
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/pagination.css';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Component/Pagination/pagination.css';`
|
|
8
8
|
|
|
9
9
|
**Twig**
|
|
10
10
|
|
|
11
11
|
You can setup a twig namespace in your project if you wish to use the twig files directly.
|
|
12
12
|
|
|
13
|
-
- Eg: `{% extends '@mixtape/
|
|
13
|
+
- Eg: `{% extends '@mixtape/Component/Pagination/pagination.twig' %}`
|
|
14
14
|
|
|
15
15
|
Alternatively copy/paste the file for more control.
|
|
16
16
|
|
|
17
17
|
**JSX Components**
|
|
18
18
|
|
|
19
|
-
- JSX import: `import { PaginationContext, Pagination } from '@pnx-mixtape/mxds/react';`
|
|
19
|
+
- JSX import: `import { PaginationContext, Pagination } from '@pnx-mixtape/mxds/src/react';`
|