@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.
Files changed (183) hide show
  1. package/README.md +13 -13
  2. package/dist/build/accordion.css +1 -108
  3. package/dist/build/accordion.entry.js +1 -0
  4. package/dist/build/base.css +1 -1000
  5. package/dist/build/breadcrumb.css +1 -47
  6. package/dist/build/button.css +1 -126
  7. package/dist/build/callout.css +1 -11
  8. package/dist/build/card.css +1 -135
  9. package/dist/build/chunks/disclosure-widget-CfhDmuvA.js +1 -0
  10. package/dist/build/chunks/keyboard-Cs0cduxq.js +1 -0
  11. package/dist/build/chunks/polyfills-DUM8gN-6.js +1 -0
  12. package/dist/build/chunks/popover-BGbvrIUp.js +1 -0
  13. package/dist/build/chunks/utilities-Bzel_okZ.js +2 -0
  14. package/dist/build/constants.css +1 -120
  15. package/dist/build/container-grid.css +1 -207
  16. package/dist/build/content-block.css +1 -23
  17. package/dist/build/dialog.css +1 -98
  18. package/dist/build/dialog.entry.js +1 -0
  19. package/dist/build/drop-menu.css +1 -78
  20. package/dist/build/drop-menu.entry.js +1 -0
  21. package/dist/build/drupal.css +1 -74
  22. package/dist/build/footer-menu.css +1 -32
  23. package/dist/build/footer.css +1 -61
  24. package/dist/build/form.css +1 -589
  25. package/dist/build/grid.css +1 -200
  26. package/dist/build/header.css +1 -131
  27. package/dist/build/header.entry.js +1 -0
  28. package/dist/build/hero-banner.css +1 -62
  29. package/dist/build/icon.css +1 -399
  30. package/dist/build/in-page-alert.css +1 -94
  31. package/dist/build/in-page-alert.entry.js +1 -0
  32. package/dist/build/in-page-navigation.css +1 -17
  33. package/dist/build/in-page-navigation.entry.js +1 -0
  34. package/dist/build/index.css +1 -4980
  35. package/dist/build/link-list.css +1 -72
  36. package/dist/build/masthead.css +1 -39
  37. package/dist/build/nav-list.css +1 -29
  38. package/dist/build/navigation.css +1 -371
  39. package/dist/build/navigation.entry.js +1 -0
  40. package/dist/build/page.css +1 -184
  41. package/dist/build/pagination.css +1 -123
  42. package/dist/build/section.css +1 -160
  43. package/dist/build/sidebar.css +1 -105
  44. package/dist/build/sticky.css +1 -47
  45. package/dist/build/sticky.entry.js +1 -0
  46. package/dist/build/tabs.css +1 -106
  47. package/dist/build/tabs.entry.js +1 -0
  48. package/dist/build/tag.css +1 -67
  49. package/dist/build/tiles.css +1 -61
  50. package/dist/build/utilities.css +1 -175
  51. package/package.json +4 -3
  52. package/src/Atom/Background/_background.css +1 -22
  53. package/src/Atom/Blockquote/_blockquote.css +1 -1
  54. package/src/Atom/Button/README.md +3 -3
  55. package/src/Atom/Button/_buttons-styles.css +1 -1
  56. package/src/Atom/Button/_buttons.css +1 -1
  57. package/src/Atom/Heading/_headings.css +1 -1
  58. package/src/Atom/Icon/README.md +1 -1
  59. package/src/Atom/Icon/_extended-set.css +1 -1
  60. package/src/Atom/Icon/_icon.css +5 -5
  61. package/src/Atom/Image/_image.css +1 -1
  62. package/src/Atom/Link/_links.css +1 -1
  63. package/src/Atom/Media/_media.css +1 -1
  64. package/src/Atom/Media/media.twig +1 -5
  65. package/src/Atom/NavList/nav-list.css +1 -1
  66. package/src/Atom/README.md +1 -1
  67. package/src/Atom/Spacing/_spacing.css +1 -1
  68. package/src/Atom/Table/_table.css +1 -1
  69. package/src/Atom/Text/_text-align.css +1 -1
  70. package/src/Atom/Text/_text-sizes.css +1 -1
  71. package/src/Atom/Video/_video.css +1 -1
  72. package/src/Atom/Video/video.twig +10 -4
  73. package/src/Atom/_animated.css +1 -1
  74. package/src/Atom/_flow-legacy.css +1 -1
  75. package/src/Atom/_flow.css +1 -1
  76. package/src/Atom/_generic.css +1 -1
  77. package/src/Atom/_hr.css +1 -1
  78. package/src/Atom/base.css +2 -2
  79. package/src/Component/Accordion/README.md +7 -17
  80. package/src/Component/Accordion/accordion.css +2 -2
  81. package/src/Component/Accordion/accordion.entry.js +2 -0
  82. package/src/Component/Breadcrumb/breadcrumb.css +1 -1
  83. package/src/Component/Callout/callout.css +1 -1
  84. package/src/Component/Card/README.md +7 -13
  85. package/src/Component/Card/card.css +3 -3
  86. package/src/Component/ContentBlock/README.md +7 -13
  87. package/src/Component/ContentBlock/content-block.css +2 -2
  88. package/src/Component/Dialog/README.md +15 -49
  89. package/src/Component/Dialog/dialog.css +3 -3
  90. package/src/Component/Dialog/dialog.entry.js +1 -0
  91. package/src/Component/DropMenu/README.md +19 -4
  92. package/src/Component/DropMenu/drop-menu.css +1 -1
  93. package/src/Component/DropMenu/drop-menu.entry.js +1 -0
  94. package/src/Component/HeroBanner/hero-banner.css +1 -1
  95. package/src/Component/HeroBanner/hero-banner.twig +1 -0
  96. package/src/Component/InPageAlert/README.md +4 -4
  97. package/src/Component/InPageAlert/in-page-alert.css +2 -2
  98. package/src/Component/InPageAlert/in-page-alert.entry.js +1 -0
  99. package/src/Component/InPageNavigation/README.md +10 -15
  100. package/src/Component/InPageNavigation/in-page-navigation.css +2 -2
  101. package/src/Component/InPageNavigation/in-page-navigation.entry.js +1 -0
  102. package/src/Component/LinkList/README.md +3 -3
  103. package/src/Component/LinkList/link-list.css +1 -1
  104. package/src/Component/Navigation/README.md +16 -7
  105. package/src/Component/Navigation/_navigation-collapsible.css +1 -1
  106. package/src/Component/Navigation/_navigation-dropdown.css +1 -1
  107. package/src/Component/Navigation/_navigation-mega.css +1 -1
  108. package/src/Component/Navigation/_navigation.css +1 -1
  109. package/src/Component/Navigation/navigation.entry.js +1 -0
  110. package/src/Component/Pagination/README.md +3 -3
  111. package/src/Component/Pagination/pagination.css +1 -1
  112. package/src/Component/Sticky/README.md +12 -5
  113. package/src/Component/Sticky/sticky.css +2 -2
  114. package/src/Component/Sticky/sticky.entry.js +1 -0
  115. package/src/Component/Tabs/README.md +12 -4
  116. package/src/Component/Tabs/tabs.css +2 -2
  117. package/src/Component/Tabs/tabs.entry.js +1 -0
  118. package/src/Component/Tag/README.md +2 -2
  119. package/src/Component/Tag/tag.css +1 -1
  120. package/src/Component/Tile/tiles.css +1 -1
  121. package/src/Form/README.md +2 -2
  122. package/src/Form/form.css +12 -12
  123. package/src/Layout/Footer/FooterMenu/footer-menu.css +1 -1
  124. package/src/Layout/Footer/footer.css +1 -1
  125. package/src/Layout/Grid/container-grid.css +2 -2
  126. package/src/Layout/Grid/grid.css +2 -2
  127. package/src/Layout/Header/_header.css +1 -1
  128. package/src/Layout/Header/_toggles.css +1 -1
  129. package/src/Layout/Header/header.entry.js +1 -0
  130. package/src/Layout/Masthead/masthead.css +5 -5
  131. package/src/Layout/Masthead/masthead.twig +2 -2
  132. package/src/Layout/Page/README.md +2 -2
  133. package/src/Layout/Page/page.css +2 -2
  134. package/src/Layout/README.md +3 -2
  135. package/src/Layout/Section/section.css +4 -4
  136. package/src/Layout/Sidebar/sidebar.css +1 -1
  137. package/src/Utility/Drupal/README.md +1 -1
  138. package/src/Utility/README.md +1 -1
  139. package/src/Utility/_layout-utils.css +1 -1
  140. package/src/Utility/utilities.css +3 -3
  141. package/dist/build/Accordion.js +0 -61
  142. package/dist/build/Accordion.js.map +0 -1
  143. package/dist/build/AccordionDiv.js +0 -62
  144. package/dist/build/AccordionDiv.js.map +0 -1
  145. package/dist/build/AccordionGroup.js +0 -85
  146. package/dist/build/AccordionGroup.js.map +0 -1
  147. package/dist/build/AccordionMobile.js +0 -31
  148. package/dist/build/AccordionMobile.js.map +0 -1
  149. package/dist/build/Dialog.js +0 -116
  150. package/dist/build/Dialog.js.map +0 -1
  151. package/dist/build/DropMenu.js +0 -132
  152. package/dist/build/DropMenu.js.map +0 -1
  153. package/dist/build/GlobalToggle.js +0 -103
  154. package/dist/build/GlobalToggle.js.map +0 -1
  155. package/dist/build/InPageAlert.js +0 -61
  156. package/dist/build/InPageAlert.js.map +0 -1
  157. package/dist/build/InPageNavigation.js +0 -92
  158. package/dist/build/InPageNavigation.js.map +0 -1
  159. package/dist/build/Navigation.js +0 -126
  160. package/dist/build/Navigation.js.map +0 -1
  161. package/dist/build/Sticky.js +0 -63
  162. package/dist/build/Sticky.js.map +0 -1
  163. package/dist/build/Tabs.js +0 -164
  164. package/dist/build/Tabs.js.map +0 -1
  165. package/dist/build/breakpoint-loader.js +0 -52
  166. package/dist/build/breakpoint-loader.js.map +0 -1
  167. package/dist/build/chunks/js.cookie-CiMiGxWx.js +0 -101
  168. package/dist/build/chunks/js.cookie-CiMiGxWx.js.map +0 -1
  169. package/dist/build/chunks/polyfills-CJ5uTmUJ.js +0 -749
  170. package/dist/build/chunks/polyfills-CJ5uTmUJ.js.map +0 -1
  171. package/dist/build/chunks/popover-wbPSyFRj.js +0 -654
  172. package/dist/build/chunks/popover-wbPSyFRj.js.map +0 -1
  173. package/dist/build/chunks/utilities-BIk0P2KX.js +0 -61
  174. package/dist/build/chunks/utilities-BIk0P2KX.js.map +0 -1
  175. package/dist/build/cookie-compliance.js +0 -122
  176. package/dist/build/cookie-compliance.js.map +0 -1
  177. package/dist/build/disclosure-widget.js +0 -124
  178. package/dist/build/disclosure-widget.js.map +0 -1
  179. package/dist/build/io-loader.js +0 -44
  180. package/dist/build/io-loader.js.map +0 -1
  181. package/dist/build/keyboard.js +0 -101
  182. package/dist/build/keyboard.js.map +0 -1
  183. package/src/index.css +0 -27
@@ -1,6 +1,6 @@
1
1
  @import "../_mixins.css";
2
2
 
3
- @layer utlities {
3
+ @layer design-system.utilities {
4
4
  .spacing--reset {
5
5
  padding: 0 !important;
6
6
  }
@@ -1,4 +1,4 @@
1
- @layer defaults {
1
+ @layer design-system.defaults {
2
2
  table {
3
3
  inline-size: 100%;
4
4
  border-collapse: collapse;
@@ -1,4 +1,4 @@
1
- @layer utlities {
1
+ @layer design-system.utilities {
2
2
  .text--left {
3
3
  text-align: start;
4
4
  }
@@ -1,4 +1,4 @@
1
- @layer utlities {
1
+ @layer design-system.atoms {
2
2
  :is(
3
3
  .text--section-headline,
4
4
  .text--embellished-headline,
@@ -1,4 +1,4 @@
1
- @layer defaults {
1
+ @layer design-system.defaults {
2
2
  .video {
3
3
  &,
4
4
  & :is(embed, object, iframe) {
@@ -1,5 +1,11 @@
1
- <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. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
2
- <figure class="video">
3
- <iframe title="Some video" width="560" height="315" src="https://www.youtube.com/embed/NpEaa2P7qZI" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></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>
@@ -1,4 +1,4 @@
1
- @layer utilities {
1
+ @layer design-system.utilities {
2
2
  .animated--fade-in {
3
3
  animation: fade-in 0.5s var(--ease);
4
4
  }
@@ -1,4 +1,4 @@
1
- @layer defaults {
1
+ @layer design-system.defaults {
2
2
  * + h1 {
3
3
  margin-block-start: var(--spacing-m);
4
4
  }
@@ -1,4 +1,4 @@
1
- @layer utilities {
1
+ @layer design-system.utilities {
2
2
  .vertical-flow {
3
3
  /* Default vertical flow. */
4
4
 
@@ -1,4 +1,4 @@
1
- @layer defaults {
1
+ @layer design-system.defaults {
2
2
  *,
3
3
  *::before,
4
4
  *::after {
package/src/Atom/_hr.css CHANGED
@@ -1,4 +1,4 @@
1
- @layer defaults {
1
+ @layer design-system.defaults {
2
2
  hr {
3
3
  display: block;
4
4
  block-size: 0;
package/src/Atom/base.css CHANGED
@@ -1,5 +1,5 @@
1
- @layer popover-polyfill, defaults, layout, elements, components, utilities;
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/accordion/twig/accordion.twig' %}`
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/Components/Accordion/Elements/Accordion';` and be sure to include `<mx-accordion>` around the `<details />` tag.
31
- - AccordionMobile import: `import '@pnx-mixtape/mxds/Components/Accordion/Elements/AccordionMobile';` and be sure to include `<mx-accordionmobile>` around the `<details />` tag.
32
- - AccordionDiv import: `import '@nx-mixtape/Components/Accordion/Elements/AccordionDiv';` and be sure to include `<mx-accordiondiv class="accordion">` instead of the `<details />` tag.
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;
@@ -0,0 +1,2 @@
1
+ import "./Elements/Accordion"
2
+ import "./Elements/AccordionGroup"
@@ -2,7 +2,7 @@
2
2
  * Breadcrumb Navigation
3
3
  */
4
4
 
5
- @layer components {
5
+ @layer design-system.components {
6
6
  .nav--breadcrumb {
7
7
  --nav-font-size: var(--font-size-s);
8
8
 
@@ -1,4 +1,4 @@
1
- @layer components {
1
+ @layer design-system.components {
2
2
  .callout {
3
3
  padding-inline-start: var(--line-gap, var(--gap));
4
4
  border-inline-start: var(--line-width, 6px) solid
@@ -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
- **HTML**
9
+ **Twig**
10
10
 
11
- ```html
12
- <div class="card">
13
- <figure class="card__media">
14
- <img src="https://via.placeholder.com/788x556" alt="Descriptive text" />
15
- </figure>
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
- **HTML**
9
+ **Twig**
10
10
 
11
- ```html
12
- <div class="content-block">
13
- <h2>Title</h2>
14
- <p>Body content</p>
15
- <div class="content-block__actions">
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
- **Web Components**
9
+ **Twig**
10
10
 
11
- Web Components are self defined, simply import the desired feature. These do not use the Shadow DOM. External CSS applies.
11
+ You can setup a twig namespace in your project if you wish to use the twig files directly.
12
12
 
13
- - DialogBase import: `import '@pnx-mixtape/mxds/dialog/DialogBase';` and be sure to include `<mx-dialog>` around the `<dialog />` tag.
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
- **@todo JS**
26
+ See twig files for all HTML examples.
@@ -6,7 +6,7 @@
6
6
  * **Experimental** Using new CSS Anchoring and Popover API's, requires JS polyfill.
7
7
  */
8
8
 
9
- @layer elements {
9
+ @layer design-system.components {
10
10
  .drop-menu__trigger {
11
11
  anchor-name: --drop-menu;
12
12
 
@@ -0,0 +1 @@
1
+ import "./Elements/DropMenu"
@@ -2,7 +2,7 @@
2
2
  * Page Title
3
3
  */
4
4
 
5
- @layer components {
5
+ @layer design-system.components {
6
6
  .hero-banner {
7
7
  position: relative;
8
8
  z-index: 1;
@@ -26,6 +26,7 @@
26
26
  {% if subtitle %}
27
27
  <div class="text--lede">{{ subtitle }}</div>
28
28
  {% endif %}
29
+ {{ content }}
29
30
  {{ link }}
30
31
  </div>
31
32
  {% if linkList %}
@@ -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/Components/InPageAlert/in-page-alert.twig' %}`
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/InPageAlert';`
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';`
@@ -2,13 +2,13 @@
2
2
  * Messages
3
3
  */
4
4
 
5
- @layer defaults {
5
+ @layer design-system.defaults {
6
6
  mx-closable-alert {
7
7
  display: block;
8
8
  }
9
9
  }
10
10
 
11
- @layer elements {
11
+ @layer design-system.components {
12
12
  .message {
13
13
  display: grid;
14
14
  gap: var(--gap-s);
@@ -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/Components/InPageNavigation/Element';` and be sure to include `<mx-in-page-navigation>` around the `<nav />` tag.
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/Components/LinkList/link-list.twig' %}`
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';`
@@ -2,7 +2,7 @@
2
2
  * Link List
3
3
  */
4
4
 
5
- @layer elements {
5
+ @layer design-system.components {
6
6
  .link-list {
7
7
  list-style-type: none;
8
8
  padding-inline-start: 0;
@@ -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
- **@TODO Vanilla JS**
9
+ **Twig**
10
10
 
11
- - ES6 import: `import { Navigation, NavigationFlyout } from '@pnx-mixtape/mxds/mavigation';`
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
- **HTML**
13
+ - Eg: `{% extends '@mixtape/Component/Navigation/navigation.twig' %}`
16
14
 
17
- See various twig files.
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.
@@ -2,7 +2,7 @@
2
2
  * Collapsible Navigation
3
3
  */
4
4
 
5
- @layer components {
5
+ @layer design-system.components {
6
6
  .nav--collapsible {
7
7
  & .nav__toggle {
8
8
  inset-inline: auto var(--spacing-xxs);
@@ -2,7 +2,7 @@
2
2
  * Dropdown Navigation
3
3
  */
4
4
 
5
- @layer components {
5
+ @layer design-system.components {
6
6
  .nav--dropdown {
7
7
  --nav-active-underline: none;
8
8