@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
|
@@ -4,20 +4,27 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/sticky.css';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Component/Sticky/sticky.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/Sticky/twig/sticky.twig' %}`
|
|
14
14
|
|
|
15
15
|
Alternatively copy/paste the file for more control.
|
|
16
16
|
|
|
17
17
|
**JSX Components**
|
|
18
18
|
|
|
19
|
-
`import { Sticky } from '@pnx-mixtape/mxds/react';`
|
|
19
|
+
`import { Sticky } from '@pnx-mixtape/mxds/src/react';`
|
|
20
20
|
|
|
21
|
-
**JS**
|
|
21
|
+
**JS Custom Element**
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Custom Elements are self defined, simply import the desired feature.
|
|
24
|
+
These do not use the Shadow DOM and are not typical Web Components.
|
|
25
|
+
External CSS applies.
|
|
26
|
+
No Polyfills or frameworks are required.
|
|
27
|
+
|
|
28
|
+
- Sticky import: `import '@pnx-mixtape/mxds/src/Component/Sticky/Elements/Sticky';` and be sure to include `<mx-sticky>` around the content.
|
|
29
|
+
|
|
30
|
+
See twig files for all HTML examples.
|
|
@@ -1,86 +1,13 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
4
|
-
<div class="sticky__trigger">
|
|
5
|
-
</div>
|
|
6
|
-
<mx-sticky style="--sticky-offset: 0"
|
|
7
|
-
offsetpropname="--sticky-offset"
|
|
8
|
-
class="sticky section section--l background--alt"
|
|
9
|
-
>
|
|
10
|
-
<div class="section__content">
|
|
11
|
-
Sticky header
|
|
12
|
-
</div>
|
|
3
|
+
exports[`Component/Sticky Sticky smoke-test 1`] = `
|
|
4
|
+
"<div class="sticky__trigger"></div><mx-sticky style="--sticky-offset: 0" offsetpropname="--sticky-offset" class="sticky section section--l background--alt">
|
|
5
|
+
<div class="section__content">Sticky header</div>
|
|
13
6
|
</mx-sticky>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<mx-sticky class="sticky--l vertical-flow">
|
|
21
|
-
<h4>
|
|
22
|
-
Sticky sidebar
|
|
23
|
-
</h4>
|
|
24
|
-
<p>
|
|
25
|
-
In publishing and graphic design, lorem ipsum is a placeholder text commonly used to
|
|
26
|
-
<a href="#anchor-test">
|
|
27
|
-
demonstrate
|
|
28
|
-
</a>
|
|
29
|
-
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.
|
|
30
|
-
</p>
|
|
31
|
-
</mx-sticky>
|
|
32
|
-
</aside>
|
|
33
|
-
<section class="rich-text vertical-flow">
|
|
34
|
-
<h2>
|
|
35
|
-
Section 1
|
|
36
|
-
</h2>
|
|
37
|
-
<p>
|
|
38
|
-
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.
|
|
39
|
-
</p>
|
|
40
|
-
<h2 id="anchor-test">
|
|
41
|
-
Section 2
|
|
42
|
-
</h2>
|
|
43
|
-
<p>
|
|
44
|
-
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.
|
|
45
|
-
</p>
|
|
46
|
-
<h3>
|
|
47
|
-
Test level 3
|
|
48
|
-
</h3>
|
|
49
|
-
<p>
|
|
50
|
-
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.
|
|
51
|
-
</p>
|
|
52
|
-
<h2>
|
|
53
|
-
Section 3
|
|
54
|
-
</h2>
|
|
55
|
-
<p>
|
|
56
|
-
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.
|
|
57
|
-
</p>
|
|
58
|
-
<h2>
|
|
59
|
-
Section 4
|
|
60
|
-
</h2>
|
|
61
|
-
<p>
|
|
62
|
-
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.
|
|
63
|
-
</p>
|
|
64
|
-
<h2>
|
|
65
|
-
Section 5
|
|
66
|
-
</h2>
|
|
67
|
-
<p>
|
|
68
|
-
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.
|
|
69
|
-
</p>
|
|
70
|
-
<h3>
|
|
71
|
-
Test level 6
|
|
72
|
-
</h3>
|
|
73
|
-
<p>
|
|
74
|
-
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.
|
|
75
|
-
</p>
|
|
76
|
-
<h2>
|
|
77
|
-
Section 7
|
|
78
|
-
</h2>
|
|
79
|
-
<p>
|
|
80
|
-
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.
|
|
81
|
-
</p>
|
|
82
|
-
</section>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</section>
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
< class="section ">
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
"
|
|
86
13
|
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./Elements/Sticky"
|
|
@@ -4,20 +4,27 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/tabs.css';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Component/Tabs/tabs.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/Tabs/tabs.twig' %}`
|
|
14
14
|
|
|
15
15
|
Alternatively copy/paste the file for more control.
|
|
16
16
|
|
|
17
17
|
**JSX Components**
|
|
18
18
|
|
|
19
|
-
`import { Tabs, TabList, Tab, TabPanel } from '@pnx-mixtape/mxds/react';`
|
|
19
|
+
`import { Tabs, TabList, Tab, TabPanel } from '@pnx-mixtape/mxds/src/react';`
|
|
20
20
|
|
|
21
21
|
**JS Custom Element**
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Custom Elements are self defined, simply import the desired feature.
|
|
24
|
+
These do not use the Shadow DOM and are not typical Web Components.
|
|
25
|
+
External CSS applies.
|
|
26
|
+
No Polyfills or frameworks are required.
|
|
27
|
+
|
|
28
|
+
- Sticky import: `import '@pnx-mixtape/mxds/src/Component/Tabs/Elements/Tabs';` and be sure to include `<mx-tabs>` around the content.
|
|
29
|
+
|
|
30
|
+
See twig files for all HTML examples.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./Elements/Tabs"
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Component/Tag/tag.css';`
|
|
8
8
|
|
|
9
9
|
**Twig**
|
|
10
10
|
|
|
@@ -16,4 +16,4 @@ Alternatively copy/paste the file for more control.
|
|
|
16
16
|
|
|
17
17
|
**JSX Components**
|
|
18
18
|
|
|
19
|
-
- JSX import: `import { Tag } from '@pnx-mixtape/mxds/react';`
|
|
19
|
+
- JSX import: `import { Tag } from '@pnx-mixtape/mxds/src/react';`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`Component/Tag Checkbox smoke-test 1`] = `
|
|
4
4
|
<ul class="tags">
|
|
5
5
|
<li>
|
|
6
6
|
<div class="tag">
|
|
@@ -29,7 +29,7 @@ exports[`Components/Tag Checkbox smoke-test 1`] = `
|
|
|
29
29
|
</ul>
|
|
30
30
|
`;
|
|
31
31
|
|
|
32
|
-
exports[`
|
|
32
|
+
exports[`Component/Tag Link smoke-test 1`] = `
|
|
33
33
|
<ul class="tags">
|
|
34
34
|
<li>
|
|
35
35
|
<a class="tag"
|
|
@@ -48,7 +48,7 @@ exports[`Components/Tag Link smoke-test 1`] = `
|
|
|
48
48
|
</ul>
|
|
49
49
|
`;
|
|
50
50
|
|
|
51
|
-
exports[`
|
|
51
|
+
exports[`Component/Tag Tag smoke-test 1`] = `
|
|
52
52
|
<ul class="tags">
|
|
53
53
|
<li>
|
|
54
54
|
<span class="tag">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`Component/Tile Tile smoke-test 1`] = `
|
|
4
4
|
<div class="grid grid--xs-2-cols grid--md-4-cols spacing--bottom-l">
|
|
5
5
|
<div class="tile stack ">
|
|
6
6
|
<div class="tile__content vertical-flow-flex">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`Component/Tile Tile smoke-test 1`] = `
|
|
4
4
|
<div class="tile tile--small stack">
|
|
5
5
|
<div class="tile__content vertical-flow-flex">
|
|
6
6
|
<h3 class="text--l"
|
|
@@ -17,7 +17,7 @@ exports[`Components/Tile Tile smoke-test 1`] = `
|
|
|
17
17
|
</div>
|
|
18
18
|
`;
|
|
19
19
|
|
|
20
|
-
exports[`
|
|
20
|
+
exports[`Component/Tile WithContent smoke-test 1`] = `
|
|
21
21
|
<div class="tile tile--small stack">
|
|
22
22
|
<div class="tile__content vertical-flow-flex">
|
|
23
23
|
<h3 class="text--l"
|
package/src/Form/README.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/form.cs';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Form/form.cs';`
|
|
8
8
|
|
|
9
9
|
**JSX Components**
|
|
10
10
|
|
|
11
|
-
- JSX import: `import { Form, FormItem, FormText, FormLabel } from '@pnx-mixtape/mxds/react';`
|
|
11
|
+
- JSX import: `import { Form, FormItem, FormText, FormLabel } from '@pnx-mixtape/mxds/src/react';`
|
package/src/Form/form.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Form
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
@layer
|
|
5
|
+
@layer design-system.atoms {
|
|
6
6
|
.form__item {
|
|
7
7
|
max-inline-size: var(--container-max-width);
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* Text Input
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
@layer
|
|
20
|
+
@layer design-system.atoms {
|
|
21
21
|
:is(
|
|
22
22
|
.input__text,
|
|
23
23
|
[type="text"],
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
* Input Divider
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
@layer
|
|
89
|
+
@layer design-system.atoms {
|
|
90
90
|
.input__divider {
|
|
91
91
|
padding: var(--form-spacing, var(--spacing-s));
|
|
92
92
|
line-height: var(--line-height-ui);
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
* Text Input with Icon
|
|
98
98
|
*/
|
|
99
99
|
|
|
100
|
-
@layer
|
|
100
|
+
@layer design-system.atoms {
|
|
101
101
|
.input__text--icon {
|
|
102
102
|
display: inline-block;
|
|
103
103
|
max-inline-size: 100%;
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
* Text Input with Inline Button
|
|
137
137
|
*/
|
|
138
138
|
|
|
139
|
-
@layer
|
|
139
|
+
@layer design-system.atoms {
|
|
140
140
|
.input__text--inline {
|
|
141
141
|
position: relative;
|
|
142
142
|
display: inline-block;
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
* Label
|
|
169
169
|
*/
|
|
170
170
|
|
|
171
|
-
@layer
|
|
171
|
+
@layer design-system.atoms {
|
|
172
172
|
:is(label, legend) {
|
|
173
173
|
display: block;
|
|
174
174
|
margin-block-end: var(--spacing-xxxs);
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
* Radios
|
|
243
243
|
*/
|
|
244
244
|
|
|
245
|
-
@layer
|
|
245
|
+
@layer design-system.atoms {
|
|
246
246
|
[type="radio"] {
|
|
247
247
|
box-shadow: none;
|
|
248
248
|
appearance: none;
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
* Textarea
|
|
332
332
|
*/
|
|
333
333
|
|
|
334
|
-
@layer
|
|
334
|
+
@layer design-system.atoms {
|
|
335
335
|
textarea {
|
|
336
336
|
block-size: calc(4 * var(--form-element-height, var(--spacing-xxl)));
|
|
337
337
|
inline-size: 100%;
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
* Fieldset
|
|
343
343
|
*/
|
|
344
344
|
|
|
345
|
-
@layer
|
|
345
|
+
@layer design-system.atoms {
|
|
346
346
|
:is(.fieldset, fieldset) {
|
|
347
347
|
border: var(--line-width, 2px) solid
|
|
348
348
|
var(--line-colour, var(--colour-border));
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
* Description
|
|
381
381
|
*/
|
|
382
382
|
|
|
383
|
-
@layer
|
|
383
|
+
@layer design-system.atoms {
|
|
384
384
|
.form__description {
|
|
385
385
|
margin-block: var(--form-spacing, var(--spacing-s));
|
|
386
386
|
margin-inline: 0;
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
* Error message
|
|
397
397
|
*/
|
|
398
398
|
|
|
399
|
-
@layer
|
|
399
|
+
@layer design-system.atoms {
|
|
400
400
|
:is(.form__success-message, .form__error-message) {
|
|
401
401
|
margin-block: var(--form-spacing, var(--spacing-s));
|
|
402
402
|
margin-inline: 0;
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
* Select
|
|
439
439
|
*/
|
|
440
440
|
|
|
441
|
-
@layer
|
|
441
|
+
@layer design-system.atoms {
|
|
442
442
|
select {
|
|
443
443
|
appearance: none;
|
|
444
444
|
cursor: pointer;
|
|
@@ -1,103 +1,46 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Layout/Grid
|
|
4
|
-
<div class="grid grid--
|
|
5
|
-
<div>
|
|
6
|
-
1
|
|
3
|
+
exports[`Layout/Grid Grid smoke-test 1`] = `
|
|
4
|
+
<div class="grid grid--cols-sm-2 grid--cols-lg-4">
|
|
5
|
+
<div class>
|
|
6
|
+
item 1
|
|
7
7
|
</div>
|
|
8
|
-
<div>
|
|
9
|
-
2
|
|
8
|
+
<div class>
|
|
9
|
+
item 2
|
|
10
10
|
</div>
|
|
11
|
-
<div>
|
|
12
|
-
3
|
|
11
|
+
<div class>
|
|
12
|
+
item 3
|
|
13
13
|
</div>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<div>
|
|
17
|
-
1
|
|
18
|
-
</div>
|
|
19
|
-
<div>
|
|
20
|
-
2
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="grid grid--sm-2-cols">
|
|
24
|
-
<div>
|
|
25
|
-
1
|
|
26
|
-
</div>
|
|
27
|
-
<div>
|
|
28
|
-
2
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
<div class="grid grid--md-2-cols">
|
|
32
|
-
<div>
|
|
33
|
-
1
|
|
34
|
-
</div>
|
|
35
|
-
<div>
|
|
36
|
-
2
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
<div class="grid grid--md-3-cols">
|
|
40
|
-
<div>
|
|
41
|
-
1
|
|
42
|
-
</div>
|
|
43
|
-
<div>
|
|
44
|
-
2
|
|
45
|
-
</div>
|
|
46
|
-
<div>
|
|
47
|
-
3
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
<div class="grid grid--lg-3-cols">
|
|
51
|
-
<div>
|
|
52
|
-
1
|
|
53
|
-
</div>
|
|
54
|
-
<div>
|
|
55
|
-
2
|
|
14
|
+
<div class>
|
|
15
|
+
item 4
|
|
56
16
|
</div>
|
|
57
|
-
<div>
|
|
58
|
-
|
|
17
|
+
<div class>
|
|
18
|
+
item 5
|
|
59
19
|
</div>
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<div>
|
|
63
|
-
1
|
|
64
|
-
</div>
|
|
65
|
-
<div>
|
|
66
|
-
2
|
|
67
|
-
</div>
|
|
68
|
-
<div>
|
|
69
|
-
3
|
|
70
|
-
</div>
|
|
71
|
-
<div>
|
|
72
|
-
4
|
|
20
|
+
<div class>
|
|
21
|
+
item 6
|
|
73
22
|
</div>
|
|
74
23
|
</div>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<
|
|
80
|
-
|
|
81
|
-
</
|
|
82
|
-
<
|
|
83
|
-
|
|
84
|
-
</
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<div class="grid grid--
|
|
90
|
-
<div>
|
|
91
|
-
1
|
|
92
|
-
</div>
|
|
93
|
-
<div>
|
|
94
|
-
2
|
|
95
|
-
</div>
|
|
96
|
-
<div>
|
|
97
|
-
3
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
exports[`Layout/Grid List smoke-test 1`] = `
|
|
27
|
+
<ul class="grid grid--cols-sm-2">
|
|
28
|
+
<li class>
|
|
29
|
+
list item 1
|
|
30
|
+
</li>
|
|
31
|
+
<li class>
|
|
32
|
+
list item 2
|
|
33
|
+
</li>
|
|
34
|
+
</ul>
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
exports[`Layout/Grid Span smoke-test 1`] = `
|
|
38
|
+
<div class="grid grid--cols-sm-2 grid--cols-md-3">
|
|
39
|
+
<div class>
|
|
40
|
+
item 1
|
|
98
41
|
</div>
|
|
99
|
-
<div>
|
|
100
|
-
|
|
42
|
+
<div class="grid-item__span-md-2">
|
|
43
|
+
item 2, span 2
|
|
101
44
|
</div>
|
|
102
45
|
</div>
|
|
103
46
|
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Container Grid
|
|
3
3
|
*/
|
|
4
|
-
@layer
|
|
4
|
+
@layer design-system.layouts {
|
|
5
5
|
.grid.container {
|
|
6
6
|
--container-name: grid-item;
|
|
7
7
|
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
* Dynamic Container Grid
|
|
120
120
|
*/
|
|
121
121
|
|
|
122
|
-
@layer
|
|
122
|
+
@layer design-system.layouts {
|
|
123
123
|
.grid.container {
|
|
124
124
|
&:is(.grid--dynamic) {
|
|
125
125
|
/* This doesn't play nice in Safari and isn't required, so we unset the container. */
|