@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
|
@@ -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';`
|
|
@@ -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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./Elements/Sticky"
|
|
@@ -4,20 +4,28 @@
|
|
|
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.
|
|
31
|
+
|
|
@@ -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';`
|
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,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. */
|
package/src/Layout/Grid/grid.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Dynamic Grid
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
@layer
|
|
5
|
+
@layer design-system.layouts {
|
|
6
6
|
.grid {
|
|
7
7
|
--grid-repeat: auto-fit;
|
|
8
8
|
--grid-min: 20ch;
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
/**
|
|
112
112
|
* Grid items.
|
|
113
113
|
*/
|
|
114
|
-
@layer
|
|
114
|
+
@layer design-system.layouts {
|
|
115
115
|
[class*="grid-item__span-"] {
|
|
116
116
|
grid-column: auto / var(--grid-span, auto);
|
|
117
117
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./Elements/GlobalToggle"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Masthead
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
@layer
|
|
6
|
-
.
|
|
5
|
+
@layer design-system.layouts {
|
|
6
|
+
.masthead {
|
|
7
7
|
& .flex {
|
|
8
8
|
justify-content: space-between;
|
|
9
9
|
align-items: center;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.
|
|
19
|
+
.masthead__nav {
|
|
20
20
|
display: none;
|
|
21
21
|
|
|
22
22
|
@media (--global-nav-up) {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
@media print {
|
|
33
|
-
.
|
|
33
|
+
.masthead {
|
|
34
34
|
display: none;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<div class="
|
|
1
|
+
<div class="masthead section section__full section--top-xs section--bottom-xs background--reverse foreground--reverse">
|
|
2
2
|
<div class="flex">
|
|
3
3
|
{% block left %}
|
|
4
4
|
<span class="text--s">Global message</span>
|
|
5
5
|
{% endblock %}
|
|
6
6
|
{% block right %}
|
|
7
|
-
{% include "@mixtape/Component/Navigation/navigation.twig" with { 'modifier_class': '
|
|
7
|
+
{% include "@mixtape/Component/Navigation/navigation.twig" with { 'modifier_class': 'masthead__nav nav--inline text--s' } %}
|
|
8
8
|
{% endblock %}
|
|
9
9
|
</div>
|
|
10
10
|
</div>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/page.css';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Layout/Page/page.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 { Page, PageSidebar, HeroBanner } from '@pnx-mixtape/mxds/react';`
|
|
19
|
+
- JSX import: `import { Page, PageSidebar, HeroBanner } from '@pnx-mixtape/mxds/src/react';`
|
package/src/Layout/Page/page.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Page
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
@layer
|
|
5
|
+
@layer design-system.layouts {
|
|
6
6
|
:where(.page) {
|
|
7
7
|
--plus: token("size.container.plus");
|
|
8
8
|
--minus: token("size.container.minus");
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
* Page with Sidebar
|
|
84
84
|
*/
|
|
85
85
|
|
|
86
|
-
@layer
|
|
86
|
+
@layer design-system.layouts {
|
|
87
87
|
.grid--sidebar {
|
|
88
88
|
&:where(:not(:has(> aside))) {
|
|
89
89
|
grid-column: narrow;
|
package/src/Layout/README.md
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
**CSS**
|
|
6
6
|
|
|
7
|
-
`@import '@pnx-mixtape/mxds/grid.css';`
|
|
7
|
+
`@import '@pnx-mixtape/mxds/src/Layout/Grid/grid.css';`
|
|
8
|
+
`@import '@pnx-mixtape/mxds/src/Layout/Section/section.css';`
|
|
8
9
|
|
|
9
10
|
**Twig**
|
|
10
11
|
|
|
@@ -16,4 +17,4 @@ Alternatively copy/paste the file for more control.
|
|
|
16
17
|
|
|
17
18
|
**JSX Components**
|
|
18
19
|
|
|
19
|
-
- JSX import: `import { Section, Grid, SectionGrid } from '@pnx-mixtape/mxds/react';`
|
|
20
|
+
- JSX import: `import { Section, Grid, SectionGrid } from '@pnx-mixtape/mxds/src/react';`
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Section
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
@layer
|
|
5
|
+
@layer design-system.layouts {
|
|
6
6
|
.container {
|
|
7
7
|
--container-name: container;
|
|
8
8
|
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
* see https://www.bram.us/2022/12/13/quantity-queries-for-islands-of-elements-with-the-same-class-thanks-to-css-has/
|
|
77
77
|
*/
|
|
78
78
|
|
|
79
|
-
@layer
|
|
79
|
+
@layer design-system.layouts {
|
|
80
80
|
.section--flow {
|
|
81
81
|
--flow-spacing: var(--section-l, var(--spacing-xl));
|
|
82
82
|
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
* Section header
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
|
-
@layer
|
|
129
|
+
@layer design-system.layouts {
|
|
130
130
|
.section__header {
|
|
131
131
|
margin-block-end: var(--spacing-m);
|
|
132
132
|
display: flex;
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
* Section Background image
|
|
145
145
|
*/
|
|
146
146
|
|
|
147
|
-
@layer
|
|
147
|
+
@layer design-system.layouts {
|
|
148
148
|
:is(.section--has-background, .section:has(.background--image)) {
|
|
149
149
|
overflow: hidden;
|
|
150
150
|
position: relative;
|
package/src/Utility/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@import "_layout-utils.css";
|
|
2
2
|
|
|
3
|
-
@layer utilities {
|
|
3
|
+
@layer design-system.utilities {
|
|
4
4
|
.hidden,
|
|
5
5
|
.visually-hidden,
|
|
6
6
|
.sr-only {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* Responsive utility class
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
|
-
@layer utilities {
|
|
27
|
+
@layer design-system.utilities {
|
|
28
28
|
.mobile-only {
|
|
29
29
|
@media (--large-up) {
|
|
30
30
|
display: none;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
/**
|
|
57
57
|
* Skeleton and loading UI.
|
|
58
58
|
*/
|
|
59
|
-
@layer utilities {
|
|
59
|
+
@layer design-system.utilities {
|
|
60
60
|
.skeleton {
|
|
61
61
|
--background: hsl(0deg 0% 0% / 10%);
|
|
62
62
|
--opacity-low: 0.5;
|
package/dist/build/Accordion.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { m as makeAnchor } from "./chunks/utilities-BIk0P2KX.js";
|
|
2
|
-
class Accordion extends HTMLElement {
|
|
3
|
-
constructor() {
|
|
4
|
-
super();
|
|
5
|
-
this.handleOpen = () => {
|
|
6
|
-
if (!this.details) return;
|
|
7
|
-
this.details.open = true;
|
|
8
|
-
};
|
|
9
|
-
this.handleClose = () => {
|
|
10
|
-
if (!this.details) return;
|
|
11
|
-
this.details.open = false;
|
|
12
|
-
};
|
|
13
|
-
this.handleHash = () => {
|
|
14
|
-
const { hash } = window.location;
|
|
15
|
-
if (hash && hash === `#${this.details?.id}`) {
|
|
16
|
-
this.handleOpen();
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
this.generatedId = () => {
|
|
20
|
-
const string = this.trigger?.textContent?.trim();
|
|
21
|
-
return !string ? "" : makeAnchor(string);
|
|
22
|
-
};
|
|
23
|
-
this.internals_ = this.attachInternals();
|
|
24
|
-
this.controller = new AbortController();
|
|
25
|
-
}
|
|
26
|
-
connectedCallback() {
|
|
27
|
-
if (!this.details || !this.trigger) return;
|
|
28
|
-
const { signal } = this.controller;
|
|
29
|
-
document.addEventListener("beforeprint", this.handleOpen, {
|
|
30
|
-
signal
|
|
31
|
-
});
|
|
32
|
-
document.addEventListener("afterprint", this.handleClose, {
|
|
33
|
-
signal
|
|
34
|
-
});
|
|
35
|
-
this.handleHash();
|
|
36
|
-
document.addEventListener("hashchange", this.handleHash, { signal });
|
|
37
|
-
}
|
|
38
|
-
disconnectedCallback() {
|
|
39
|
-
this.controller.abort();
|
|
40
|
-
}
|
|
41
|
-
get details() {
|
|
42
|
-
const details = this.querySelector("details");
|
|
43
|
-
if (!details) {
|
|
44
|
-
throw new Error(`${this.localName} must contain a <details> element.`);
|
|
45
|
-
}
|
|
46
|
-
details.id = details.id || this.generatedId();
|
|
47
|
-
return details;
|
|
48
|
-
}
|
|
49
|
-
get trigger() {
|
|
50
|
-
const trigger = this.querySelector("summary");
|
|
51
|
-
if (!trigger) {
|
|
52
|
-
throw new Error(`${this.localName} must contain a <summary> element.`);
|
|
53
|
-
}
|
|
54
|
-
return trigger;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
customElements.define("mx-accordion", Accordion);
|
|
58
|
-
export {
|
|
59
|
-
Accordion as default
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=Accordion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sources":["../../src/Component/Accordion/Elements/Accordion.ts"],"sourcesContent":["/**\n * Accordion\n * @file Support opening on hash, adding an ID attribute and toggling on print.\n */\n\nimport { makeAnchor } from \"../../../Utility/utilities\"\n\nexport default class Accordion extends HTMLElement {\n internals_: ElementInternals\n controller: AbortController\n\n constructor() {\n super()\n this.internals_ = this.attachInternals()\n this.controller = new AbortController()\n }\n\n connectedCallback(): void {\n if (!this.details || !this.trigger) return\n\n const { signal }: AbortController = this.controller\n document.addEventListener(\"beforeprint\", this.handleOpen, {\n signal,\n })\n document.addEventListener(\"afterprint\", this.handleClose, {\n signal,\n })\n this.handleHash()\n document.addEventListener(\"hashchange\", this.handleHash, { signal })\n }\n\n disconnectedCallback(): void {\n this.controller.abort()\n }\n\n handleOpen = (): void => {\n if (!this.details) return\n this.details.open = true\n }\n\n handleClose = (): void => {\n if (!this.details) return\n this.details.open = false\n }\n\n handleHash = (): void => {\n const { hash }: Location = window.location\n if (hash && hash === `#${this.details?.id}`) {\n this.handleOpen()\n }\n }\n\n get details(): HTMLDetailsElement | null {\n const details: HTMLDetailsElement | null = this.querySelector(\"details\")\n if (!details) {\n throw new Error(`${this.localName} must contain a <details> element.`)\n }\n details.id = details.id || this.generatedId()\n return details\n }\n\n get trigger(): HTMLElement | null {\n const trigger: HTMLElement | null = this.querySelector(\"summary\")\n if (!trigger) {\n throw new Error(`${this.localName} must contain a <summary> element.`)\n }\n return trigger\n }\n\n generatedId = (): string => {\n const string: string | undefined = this.trigger?.textContent?.trim()\n return !string ? \"\" : makeAnchor(string)\n }\n}\n\ncustomElements.define(\"mx-accordion\", Accordion)\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"mx-accordion\": Accordion\n }\n}\n"],"names":[],"mappings":";AAOA,MAAqB,kBAAkB,YAAY;AAAA,EAIjD,cAAc;AACN;AAuBR,SAAA,aAAa,MAAY;AACnB,UAAA,CAAC,KAAK,QAAS;AACnB,WAAK,QAAQ,OAAO;AAAA,IAAA;AAGtB,SAAA,cAAc,MAAY;AACpB,UAAA,CAAC,KAAK,QAAS;AACnB,WAAK,QAAQ,OAAO;AAAA,IAAA;AAGtB,SAAA,aAAa,MAAY;AACjB,YAAA,EAAE,KAAK,IAAc,OAAO;AAClC,UAAI,QAAQ,SAAS,IAAI,KAAK,SAAS,EAAE,IAAI;AAC3C,aAAK,WAAW;AAAA,MAClB;AAAA,IAAA;AAoBF,SAAA,cAAc,MAAc;AAC1B,YAAM,SAA6B,KAAK,SAAS,aAAa,KAAK;AACnE,aAAO,CAAC,SAAS,KAAK,WAAW,MAAM;AAAA,IAAA;AA1DlC,SAAA,aAAa,KAAK;AAClB,SAAA,aAAa,IAAI;EACxB;AAAA,EAEA,oBAA0B;AACxB,QAAI,CAAC,KAAK,WAAW,CAAC,KAAK,QAAS;AAE9B,UAAA,EAAE,OAAO,IAAqB,KAAK;AAChC,aAAA,iBAAiB,eAAe,KAAK,YAAY;AAAA,MACxD;AAAA,IAAA,CACD;AACQ,aAAA,iBAAiB,cAAc,KAAK,aAAa;AAAA,MACxD;AAAA,IAAA,CACD;AACD,SAAK,WAAW;AAChB,aAAS,iBAAiB,cAAc,KAAK,YAAY,EAAE,QAAQ;AAAA,EACrE;AAAA,EAEA,uBAA6B;AAC3B,SAAK,WAAW;EAClB;AAAA,EAmBA,IAAI,UAAqC;AACjC,UAAA,UAAqC,KAAK,cAAc,SAAS;AACvE,QAAI,CAAC,SAAS;AACZ,YAAM,IAAI,MAAM,GAAG,KAAK,SAAS,oCAAoC;AAAA,IACvE;AACA,YAAQ,KAAK,QAAQ,MAAM,KAAK,YAAY;AACrC,WAAA;AAAA,EACT;AAAA,EAEA,IAAI,UAA8B;AAC1B,UAAA,UAA8B,KAAK,cAAc,SAAS;AAChE,QAAI,CAAC,SAAS;AACZ,YAAM,IAAI,MAAM,GAAG,KAAK,SAAS,oCAAoC;AAAA,IACvE;AACO,WAAA;AAAA,EACT;AAMF;AAEA,eAAe,OAAO,gBAAgB,SAAS;"}
|