@pnx-mixtape/mxds 0.0.2 → 0.0.3
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/dist/build/accordion.css +1 -108
- package/dist/build/accordion.entry.js +1 -0
- package/dist/build/base.css +1 -1000
- package/dist/build/breadcrumb.css +1 -47
- package/dist/build/button.css +1 -126
- package/dist/build/callout.css +1 -11
- package/dist/build/card.css +1 -135
- package/dist/build/chunks/disclosure-widget-CfhDmuvA.js +1 -0
- package/dist/build/chunks/keyboard-Cs0cduxq.js +1 -0
- package/dist/build/chunks/polyfills-DUM8gN-6.js +1 -0
- package/dist/build/chunks/popover-BGbvrIUp.js +1 -0
- package/dist/build/chunks/utilities-Bzel_okZ.js +2 -0
- package/dist/build/constants.css +1 -120
- package/dist/build/container-grid.css +1 -207
- package/dist/build/content-block.css +1 -23
- package/dist/build/dialog.css +1 -98
- package/dist/build/dialog.entry.js +1 -0
- package/dist/build/drop-menu.css +1 -78
- package/dist/build/drop-menu.entry.js +1 -0
- package/dist/build/drupal.css +1 -74
- package/dist/build/footer-menu.css +1 -32
- package/dist/build/footer.css +1 -61
- package/dist/build/form.css +1 -589
- package/dist/build/grid.css +1 -200
- package/dist/build/header.css +1 -131
- package/dist/build/header.entry.js +1 -0
- package/dist/build/hero-banner.css +1 -62
- package/dist/build/icon.css +1 -399
- package/dist/build/in-page-alert.css +1 -94
- package/dist/build/in-page-alert.entry.js +1 -0
- package/dist/build/in-page-navigation.css +1 -17
- package/dist/build/in-page-navigation.entry.js +1 -0
- package/dist/build/index.css +1 -4980
- package/dist/build/link-list.css +1 -72
- package/dist/build/masthead.css +1 -39
- package/dist/build/nav-list.css +1 -29
- package/dist/build/navigation.css +1 -371
- package/dist/build/navigation.entry.js +1 -0
- package/dist/build/page.css +1 -184
- package/dist/build/pagination.css +1 -123
- package/dist/build/section.css +1 -160
- package/dist/build/sidebar.css +1 -105
- package/dist/build/sticky.css +1 -47
- package/dist/build/sticky.entry.js +1 -0
- package/dist/build/tabs.css +1 -106
- package/dist/build/tabs.entry.js +1 -0
- package/dist/build/tag.css +1 -67
- package/dist/build/tiles.css +1 -61
- package/dist/build/utilities.css +1 -175
- package/package.json +4 -3
- package/src/Atom/Background/_background.css +1 -22
- package/src/Atom/Blockquote/_blockquote.css +1 -1
- package/src/Atom/Button/README.md +3 -3
- package/src/Atom/Button/_buttons-styles.css +1 -1
- package/src/Atom/Button/_buttons.css +1 -1
- package/src/Atom/Heading/_headings.css +1 -1
- package/src/Atom/Icon/README.md +1 -1
- package/src/Atom/Icon/_extended-set.css +1 -1
- package/src/Atom/Icon/_icon.css +5 -5
- package/src/Atom/Image/_image.css +1 -1
- package/src/Atom/Link/_links.css +1 -1
- package/src/Atom/Media/_media.css +1 -1
- package/src/Atom/Media/media.twig +1 -5
- package/src/Atom/NavList/nav-list.css +1 -1
- package/src/Atom/README.md +1 -1
- package/src/Atom/Spacing/_spacing.css +1 -1
- package/src/Atom/Table/_table.css +1 -1
- package/src/Atom/Text/_text-align.css +1 -1
- package/src/Atom/Text/_text-sizes.css +1 -1
- package/src/Atom/Video/_video.css +1 -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/accordion.css +2 -2
- package/src/Component/Accordion/accordion.entry.js +2 -0
- package/src/Component/Breadcrumb/breadcrumb.css +1 -1
- package/src/Component/Callout/callout.css +1 -1
- package/src/Component/Card/README.md +7 -13
- package/src/Component/Card/card.css +3 -3
- package/src/Component/ContentBlock/README.md +7 -13
- package/src/Component/ContentBlock/content-block.css +2 -2
- package/src/Component/Dialog/README.md +15 -49
- 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/drop-menu.css +1 -1
- package/src/Component/DropMenu/drop-menu.entry.js +1 -0
- package/src/Component/HeroBanner/hero-banner.css +1 -1
- package/src/Component/HeroBanner/hero-banner.twig +1 -0
- package/src/Component/InPageAlert/README.md +4 -4
- package/src/Component/InPageAlert/in-page-alert.css +2 -2
- package/src/Component/InPageAlert/in-page-alert.entry.js +1 -0
- package/src/Component/InPageNavigation/README.md +10 -15
- 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/link-list.css +1 -1
- package/src/Component/Navigation/README.md +16 -7
- 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/pagination.css +1 -1
- package/src/Component/Sticky/README.md +12 -5
- package/src/Component/Sticky/sticky.css +2 -2
- package/src/Component/Sticky/sticky.entry.js +1 -0
- package/src/Component/Tabs/README.md +12 -4
- 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/tag.css +1 -1
- 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/footer-menu.css +1 -1
- package/src/Layout/Footer/footer.css +1 -1
- 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/masthead.css +5 -5
- package/src/Layout/Masthead/masthead.twig +2 -2
- package/src/Layout/Page/README.md +2 -2
- package/src/Layout/Page/page.css +2 -2
- package/src/Layout/README.md +3 -2
- package/src/Layout/Section/section.css +4 -4
- 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/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/breakpoint-loader.js +0 -52
- package/dist/build/breakpoint-loader.js.map +0 -1
- 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/cookie-compliance.js +0 -122
- package/dist/build/cookie-compliance.js.map +0 -1
- package/dist/build/disclosure-widget.js +0 -124
- package/dist/build/disclosure-widget.js.map +0 -1
- 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/src/index.css +0 -27
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
<figure
|
|
3
|
-
<iframe
|
|
1
|
+
{% set attributes = attributes|default(create_attribute()).addClass("video") %}
|
|
2
|
+
<figure{{ attributes }}>
|
|
3
|
+
<iframe
|
|
4
|
+
src="{{ src }}"
|
|
5
|
+
{% if title %} title="{{ title }}"{% endif %}
|
|
6
|
+
{% if loading %} loading="{{ loading }}"{% endif %}
|
|
7
|
+
{% if height %} height="{{ height }}"{% endif %}
|
|
8
|
+
{% if width %} width="{{ width }}"{% endif %}
|
|
9
|
+
allowfullscreen
|
|
10
|
+
></iframe>
|
|
4
11
|
</figure>
|
|
5
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
|
package/src/Atom/_animated.css
CHANGED
package/src/Atom/_flow.css
CHANGED
package/src/Atom/_generic.css
CHANGED
package/src/Atom/_hr.css
CHANGED
package/src/Atom/base.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@layer popover-polyfill, defaults,
|
|
1
|
+
@layer popover-polyfill, design-system.defaults, design-system.atoms, design-system.layouts, design-system.components, design-system.utilities;
|
|
2
2
|
|
|
3
|
-
@import "Background/_background.css";
|
|
3
|
+
@import "./Background/_background.css";
|
|
4
4
|
@import "_animated.css";
|
|
5
5
|
@import "_base.css";
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/accordion.css';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Component/Accordion/accordion.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/Accordion/accordion.twig' %}`
|
|
14
14
|
|
|
15
15
|
Alternatively copy/paste the file for more control.
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ Alternatively copy/paste the file for more control.
|
|
|
18
18
|
|
|
19
19
|
JSX components are available for use with React.
|
|
20
20
|
|
|
21
|
-
- JSX import: `import { Accordion } from '@pnx-mixtape/mxds/react';`
|
|
21
|
+
- JSX import: `import { Accordion } from '@pnx-mixtape/mxds/src/react';`
|
|
22
22
|
|
|
23
23
|
**JS Custom Element**
|
|
24
24
|
|
|
@@ -27,19 +27,9 @@ These do not use the Shadow DOM and are not typical Web Components.
|
|
|
27
27
|
External CSS applies.
|
|
28
28
|
No Polyfills or frameworks are required.
|
|
29
29
|
|
|
30
|
-
- AccordionBase import: `import '@pnx-mixtape/mxds/
|
|
31
|
-
- AccordionMobile import: `import '@pnx-mixtape/mxds/
|
|
32
|
-
- AccordionDiv import: `import '@nx-mixtape/
|
|
33
|
-
|
|
34
|
-
```html
|
|
35
|
-
<mx-accordion>
|
|
36
|
-
<details class="accordion">
|
|
37
|
-
<summary class="accordion__toggle">Title</summary>
|
|
38
|
-
<div class="accordion__content">
|
|
39
|
-
<p>Body content</p>
|
|
40
|
-
</div>
|
|
41
|
-
</details>
|
|
42
|
-
</mx-accordion>
|
|
43
|
-
```
|
|
30
|
+
- AccordionBase import: `import '@pnx-mixtape/mxds/src/Component/Accordion/Elements/Accordion';` and be sure to include `<mx-accordion>` around the `<details />` tag.
|
|
31
|
+
- AccordionMobile import: `import '@pnx-mixtape/mxds/src/Component/Accordion/Elements/AccordionMobile';` and be sure to include `<mx-accordionmobile>` around the `<details />` tag.
|
|
32
|
+
- AccordionDiv import: `import '@nx-mixtape/Component/Accordion/Elements/AccordionDiv';` and be sure to include `<mx-accordiondiv class="accordion">` instead of the `<details />` tag.
|
|
33
|
+
- AccordionGroup import: `import '@pnx-mixtape/mxds/src/Component/Accordion/Elements/AccordionGroup';` and be sure to include `<mx-accordion-group>` around the `<details />` tags.
|
|
44
34
|
|
|
45
35
|
See twig files for all HTML examples.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Accordion
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
@layer defaults {
|
|
5
|
+
@layer design-system.defaults {
|
|
6
6
|
details {
|
|
7
7
|
& summary {
|
|
8
8
|
list-style-type: none;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
@layer components {
|
|
37
|
+
@layer design-system.components {
|
|
38
38
|
.accordion__title {
|
|
39
39
|
margin-block-end: var(--spacing-m);
|
|
40
40
|
display: flex;
|
|
@@ -4,18 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import @pnx-mixtape/mxds/card.css';`
|
|
7
|
+
`@import @pnx-mixtape/mxds/src/Component/Card/card.css';`
|
|
8
8
|
|
|
9
|
-
**
|
|
9
|
+
**Twig**
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<div class="card__content">
|
|
17
|
-
<h3>Title</h3>
|
|
18
|
-
<p>Body content</p>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
```
|
|
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/Card/card.twig' %}`
|
|
14
|
+
|
|
15
|
+
Alternatively copy/paste the file for more control.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Content Card
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
@layer components {
|
|
5
|
+
@layer design-system.components {
|
|
6
6
|
.card {
|
|
7
7
|
display: grid;
|
|
8
8
|
grid-template: "media" auto "content" 1fr / 1fr;
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
* Content Card Grid
|
|
83
83
|
*/
|
|
84
84
|
|
|
85
|
-
@layer components {
|
|
85
|
+
@layer design-system.components {
|
|
86
86
|
.grid:has(> *:nth-child(2):last-child) > :is(.card, .container:has(.card)) {
|
|
87
87
|
inline-size: 100%;
|
|
88
88
|
max-inline-size: var(--max-card-width, 37ch);
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
* Content Card Linked
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
@layer components {
|
|
97
|
+
@layer design-system.components {
|
|
98
98
|
a[href].card {
|
|
99
99
|
&:hover {
|
|
100
100
|
color: inherit;
|
|
@@ -4,18 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/content-block.css';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Component/ContentBlock/content-block.css';`
|
|
8
8
|
|
|
9
|
-
**
|
|
9
|
+
**Twig**
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<a href="#" class="button button--large button--primary"
|
|
17
|
-
>Let's get started</a
|
|
18
|
-
>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
```
|
|
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/ContentBlock/content-block.twig' %}`
|
|
14
|
+
|
|
15
|
+
Alternatively copy/paste the file for more control.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Content block
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
@layer components {
|
|
5
|
+
@layer design-system.components {
|
|
6
6
|
.content-block {
|
|
7
7
|
inline-size: 100%;
|
|
8
8
|
margin-inline: auto;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
@layer utilities {
|
|
17
|
+
@layer design-system.utilities {
|
|
18
18
|
.vertical-flow-flex.content-block {
|
|
19
19
|
align-items: center;
|
|
20
20
|
}
|
|
@@ -4,60 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/dialog.css';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Component/Dialog/dialog.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
|
-
-
|
|
13
|
+
- Eg: `{% extends '@mixtape/Component/Dialog/dialog.twig' %}`
|
|
14
|
+
|
|
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
|
+
- Dialog import: `import '@pnx-mixtape/mxds/src/Component/Dialog/Elements/Dialog';` and be sure to include `<mx-dialog>` around the `<dialog />` tag.
|
|
14
25
|
- The triggering element should either have `aria-controls="[id]"` or `href="#[id]"` where the ID matches the dialog (required).
|
|
15
26
|
- Use the `[data-modal]` attribute to trigger `HTMLDialogElement.showModal()` on open. When omitted `HTMLDialogElement.show()` is used.
|
|
16
27
|
- Add `[data-close]` to any button that should call `HTMLDialogElement.close()`
|
|
17
28
|
|
|
18
|
-
```html
|
|
19
|
-
<button aria-controls="example-dialog" class="button button--primary">
|
|
20
|
-
Dialog trigger
|
|
21
|
-
</button>
|
|
22
|
-
<mx-dialog id="example-dialog" data-modal>
|
|
23
|
-
<dialog class="dialog">
|
|
24
|
-
<button
|
|
25
|
-
autofocus
|
|
26
|
-
class="button button--icon-only icon icon--close"
|
|
27
|
-
data-close
|
|
28
|
-
>
|
|
29
|
-
Close dialog
|
|
30
|
-
</button>
|
|
31
|
-
<div class="dialog__content">
|
|
32
|
-
<h2>Title</h2>
|
|
33
|
-
<p>Body content.</p>
|
|
34
|
-
</div>
|
|
35
|
-
</dialog>
|
|
36
|
-
</mx-dialog>
|
|
37
|
-
```
|
|
38
|
-
|
|
39
29
|
See twig files for all HTML examples.
|
|
40
|
-
|
|
41
|
-
**Vanilla JS (to be deprecated)**
|
|
42
|
-
|
|
43
|
-
- ES6 import: `import Dialog from '@pnx-mixtape/mxds/dialog';`
|
|
44
|
-
- Script tag: `<script src="dist/dialog.js" type="text/javascript"></script>`
|
|
45
|
-
|
|
46
|
-
**HTML**
|
|
47
|
-
|
|
48
|
-
```html
|
|
49
|
-
<button
|
|
50
|
-
data-dialog
|
|
51
|
-
aria-controls="example-dialog"
|
|
52
|
-
class="button button--primary"
|
|
53
|
-
>
|
|
54
|
-
Dialog trigger
|
|
55
|
-
</button>
|
|
56
|
-
|
|
57
|
-
<dialog class="dialog" id="example-dialog">
|
|
58
|
-
<div class="dialog__content">
|
|
59
|
-
<h2>Title</h2>
|
|
60
|
-
<p>Body content.</p>
|
|
61
|
-
</div>
|
|
62
|
-
</dialog>
|
|
63
|
-
```
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Dialog
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
@layer defaults {
|
|
5
|
+
@layer design-system.defaults {
|
|
6
6
|
mx-dialog {
|
|
7
7
|
display: block;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
@layer components {
|
|
11
|
+
@layer design-system.components {
|
|
12
12
|
.dialog {
|
|
13
13
|
max-inline-size: var(--container-max-width);
|
|
14
14
|
max-block-size: 90vh;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
* Dialog fullscreen.
|
|
55
55
|
*/
|
|
56
56
|
|
|
57
|
-
@layer components {
|
|
57
|
+
@layer design-system.components {
|
|
58
58
|
.dialog--fullscreen {
|
|
59
59
|
box-shadow: none;
|
|
60
60
|
border: 0;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./Elements/Dialog"
|
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
# Drop Menu
|
|
2
2
|
|
|
3
|
-
Documentation and examples: [drop-menu](https://mixtape.pnx.io/drop-menu)
|
|
4
|
-
|
|
5
3
|
### How to use
|
|
6
4
|
|
|
7
5
|
**CSS**
|
|
8
6
|
|
|
9
|
-
`@import '@pnx-mixtape/mxds/drop-menu.css';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Component/DropMenu/drop-menu.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/DropMenu/drop-menu.twig' %}`
|
|
14
|
+
|
|
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
|
+
- Dialog import: `import '@pnx-mixtape/mxds/src/Component/DropMenu/Elements/DropMenu';` and be sure to include `<mx-dropmenu>` around the content.
|
|
10
25
|
|
|
11
|
-
|
|
26
|
+
See twig files for all HTML examples.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./Elements/DropMenu"
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/in-page-alert.css';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Component/InPageAlert/in-page-alert.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/InPageAlert/in-page-alert.twig' %}`
|
|
14
14
|
|
|
15
15
|
Alternatively copy/paste the file for more control.
|
|
16
16
|
|
|
@@ -18,10 +18,10 @@ Alternatively copy/paste the file for more control.
|
|
|
18
18
|
|
|
19
19
|
JSX components are available for use with React.
|
|
20
20
|
|
|
21
|
-
- JSX import: `import { InPageAlert } from 'pnx-mixtape/
|
|
21
|
+
- JSX import: `import { InPageAlert } from '@pnx-mixtape/mxds/react';`
|
|
22
22
|
|
|
23
23
|
**Custom Element**
|
|
24
24
|
|
|
25
25
|
This javascript just adds the ability to close/dismiss a message, which is recorded in localStorage.
|
|
26
26
|
|
|
27
|
-
- ES6 import: `import '@pnx-mixtape/mxds/InPageAlert/Elements/InPageAlert';`
|
|
27
|
+
- ES6 import: `import '@pnx-mixtape/mxds/src/Component/InPageAlert/Elements/InPageAlert';`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./Elements/InPageAlert"
|
|
@@ -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.
|
|
@@ -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';`
|
|
@@ -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.
|