@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.
Files changed (265) hide show
  1. package/README.md +13 -13
  2. package/package.json +5 -4
  3. package/src/Atom/Background/__snapshots__/Backgrounds.stories.ts.snap +3 -3
  4. package/src/Atom/Background/_background.css +1 -22
  5. package/src/Atom/Blockquote/_blockquote.css +1 -1
  6. package/src/Atom/Button/Button.stories.ts +4 -6
  7. package/src/Atom/Button/README.md +3 -3
  8. package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +23 -11
  9. package/src/Atom/Button/__snapshots__/Button.stories.tsx.snap +2 -2
  10. package/src/Atom/Button/_buttons-styles.css +1 -1
  11. package/src/Atom/Button/_buttons.css +5 -1
  12. package/src/Atom/Button/button.twig +6 -4
  13. package/src/Atom/Button/twig/story-button.twig +11 -0
  14. package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.tsx.snap +1 -1
  15. package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +2 -2
  16. package/src/Atom/Heading/__snapshots__/Heading.stories.tsx.snap +1 -1
  17. package/src/Atom/Heading/_headings.css +1 -1
  18. package/src/Atom/Heading/heading.twig +19 -1
  19. package/src/Atom/Icon/README.md +1 -1
  20. package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +3 -3
  21. package/src/Atom/Icon/__snapshots__/Icon.stories.tsx.snap +3 -3
  22. package/src/Atom/Icon/_extended-set.css +1 -1
  23. package/src/Atom/Icon/_icon.css +5 -5
  24. package/src/Atom/Image/__snapshots__/Image.stories.ts.snap +1 -1
  25. package/src/Atom/Image/_image.css +1 -1
  26. package/src/Atom/Link/Link.stories.ts +31 -7
  27. package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +46 -6
  28. package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +3 -3
  29. package/src/Atom/Link/_links.css +24 -2
  30. package/src/Atom/Link/link.twig +8 -6
  31. package/src/Atom/Link/twig/story-link.twig +11 -0
  32. package/src/Atom/Media/Media.stories.ts +17 -1
  33. package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +17 -2
  34. package/src/Atom/Media/__snapshots__/Media.stories.tsx.snap +2 -2
  35. package/src/Atom/Media/_media.css +1 -1
  36. package/src/Atom/Media/media.twig +1 -5
  37. package/src/Atom/Media/twig/story-media.twig +11 -0
  38. package/src/Atom/NavList/__snapshots__/NavList.stories.ts.snap +1 -1
  39. package/src/Atom/NavList/nav-list.css +1 -1
  40. package/src/Atom/README.md +1 -1
  41. package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +1 -1
  42. package/src/Atom/Spacing/_spacing.css +1 -1
  43. package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +4 -4
  44. package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +1 -1
  45. package/src/Atom/Table/_table.css +1 -1
  46. package/src/Atom/Text/__snapshots__/Text.stories.tsx.snap +1 -1
  47. package/src/Atom/Text/__snapshots__/TextSizes.stories.ts.snap +2 -2
  48. package/src/Atom/Text/_text-align.css +1 -1
  49. package/src/Atom/Text/_text-sizes.css +1 -1
  50. package/src/Atom/Video/Video.stories.ts +5 -3
  51. package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +3 -13
  52. package/src/Atom/Video/_video.css +6 -1
  53. package/src/Atom/Video/video.twig +10 -4
  54. package/src/Atom/_animated.css +1 -1
  55. package/src/Atom/_flow-legacy.css +1 -1
  56. package/src/Atom/_flow.css +1 -1
  57. package/src/Atom/_generic.css +1 -1
  58. package/src/Atom/_hr.css +1 -1
  59. package/src/Atom/base.css +2 -2
  60. package/src/Component/Accordion/README.md +7 -17
  61. package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +4 -4
  62. package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +1 -1
  63. package/src/Component/Accordion/accordion.css +2 -2
  64. package/src/Component/Accordion/accordion.entry.js +2 -0
  65. package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +1 -1
  66. package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +2 -2
  67. package/src/Component/Breadcrumb/breadcrumb.css +1 -1
  68. package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +12 -0
  69. package/src/Component/Callout/callout.css +1 -1
  70. package/src/Component/Card/README.md +7 -13
  71. package/src/Component/Card/__snapshots__/Card.stories.ts.snap +34 -24
  72. package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +3 -3
  73. package/src/Component/Card/card.css +3 -3
  74. package/src/Component/ContentBlock/README.md +7 -13
  75. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +6 -23
  76. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.tsx.snap +1 -1
  77. package/src/Component/ContentBlock/content-block.css +2 -2
  78. package/src/Component/Dialog/README.md +15 -49
  79. package/src/Component/Dialog/__snapshots__/Dialog.stories.ts.snap +2 -2
  80. package/src/Component/Dialog/__snapshots__/Dialog.stories.tsx.snap +1 -1
  81. package/src/Component/Dialog/dialog.css +3 -3
  82. package/src/Component/Dialog/dialog.entry.js +1 -0
  83. package/src/Component/DropMenu/README.md +19 -4
  84. package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +1 -1
  85. package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +1 -1
  86. package/src/Component/DropMenu/drop-menu.css +1 -1
  87. package/src/Component/DropMenu/drop-menu.entry.js +1 -0
  88. package/src/Component/{InPageAlert/Elements/InPageAlert.ts → GlobalAlert/Elements/ClosableAlert.ts} +21 -10
  89. package/src/Component/GlobalAlert/GlobalAlert.stories.ts +49 -0
  90. package/src/Component/GlobalAlert/GlobalAlert.stories.tsx +33 -0
  91. package/src/Component/GlobalAlert/GlobalAlert.tsx +50 -0
  92. package/src/Component/GlobalAlert/README.md +27 -0
  93. package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +43 -0
  94. package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +48 -0
  95. package/src/Component/GlobalAlert/global-alert.css +55 -0
  96. package/src/Component/GlobalAlert/global-alert.entry.js +1 -0
  97. package/src/Component/GlobalAlert/global-alert.twig +30 -0
  98. package/src/Component/GlobalAlert/twig/story-global-alert.twig +14 -0
  99. package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +74 -0
  100. package/src/Component/HeroBanner/__snapshots__/{PageTitle.stories.tsx.snap → HeroBanner.stories.tsx.snap} +4 -4
  101. package/src/Component/HeroBanner/hero-banner.css +1 -1
  102. package/src/Component/HeroBanner/hero-banner.twig +1 -0
  103. package/src/Component/InPageAlert/InPageAlert.stories.ts +20 -22
  104. package/src/Component/InPageAlert/InPageAlert.stories.tsx +5 -5
  105. package/src/Component/InPageAlert/InPageAlert.tsx +15 -41
  106. package/src/Component/InPageAlert/README.md +4 -4
  107. package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +9 -36
  108. package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.tsx.snap +56 -56
  109. package/src/Component/InPageAlert/in-page-alert.css +2 -2
  110. package/src/Component/InPageAlert/in-page-alert.twig +13 -16
  111. package/src/Component/InPageAlert/twig/story-in-page-alert.twig +11 -0
  112. package/src/Component/InPageNavigation/README.md +10 -15
  113. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +6 -70
  114. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +1 -1
  115. package/src/Component/InPageNavigation/in-page-navigation.css +2 -2
  116. package/src/Component/InPageNavigation/in-page-navigation.entry.js +1 -0
  117. package/src/Component/LinkList/README.md +3 -3
  118. package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +24 -55
  119. package/src/Component/LinkList/link-list.css +1 -1
  120. package/src/Component/Navigation/README.md +16 -7
  121. package/src/Component/Navigation/__snapshots__/Collapsible.stories.ts.snap +1 -1
  122. package/src/Component/Navigation/__snapshots__/Dropdown.stories.ts.snap +1 -1
  123. package/src/Component/Navigation/__snapshots__/Dropdown.stories.tsx.snap +1 -1
  124. package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +1 -1
  125. package/src/Component/Navigation/__snapshots__/Navigation.stories.tsx.snap +2 -2
  126. package/src/Component/Navigation/_navigation-collapsible.css +1 -1
  127. package/src/Component/Navigation/_navigation-dropdown.css +1 -1
  128. package/src/Component/Navigation/_navigation-mega.css +1 -1
  129. package/src/Component/Navigation/_navigation.css +1 -1
  130. package/src/Component/Navigation/navigation.entry.js +1 -0
  131. package/src/Component/Pagination/README.md +3 -3
  132. package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +1 -1
  133. package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +1 -1
  134. package/src/Component/Pagination/pagination.css +1 -1
  135. package/src/Component/Sticky/README.md +12 -5
  136. package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +9 -82
  137. package/src/Component/Sticky/__snapshots__/Sticky.stories.tsx.snap +1 -1
  138. package/src/Component/Sticky/sticky.css +2 -2
  139. package/src/Component/Sticky/sticky.entry.js +1 -0
  140. package/src/Component/Tabs/README.md +11 -4
  141. package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +1 -1
  142. package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +1 -1
  143. package/src/Component/Tabs/tabs.css +2 -2
  144. package/src/Component/Tabs/tabs.entry.js +1 -0
  145. package/src/Component/Tag/README.md +2 -2
  146. package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +3 -3
  147. package/src/Component/Tag/__snapshots__/Tag.stories.tsx.snap +1 -1
  148. package/src/Component/Tag/tag.css +1 -1
  149. package/src/Component/Tile/__snapshots__/Tile.stories.ts.snap +1 -1
  150. package/src/Component/Tile/__snapshots__/Tile.stories.tsx.snap +2 -2
  151. package/src/Component/Tile/tiles.css +1 -1
  152. package/src/Form/README.md +2 -2
  153. package/src/Form/form.css +12 -12
  154. package/src/Layout/Footer/FooterMenu/__snapshots__/FooterMenu.stories.ts.snap +1 -1
  155. package/src/Layout/Footer/FooterMenu/footer-menu.css +1 -1
  156. package/src/Layout/Footer/footer.css +1 -1
  157. package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +33 -90
  158. package/src/Layout/Grid/container-grid.css +2 -2
  159. package/src/Layout/Grid/grid.css +2 -2
  160. package/src/Layout/Header/_header.css +1 -1
  161. package/src/Layout/Header/_toggles.css +1 -1
  162. package/src/Layout/Header/header.entry.js +1 -0
  163. package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +2 -2
  164. package/src/Layout/Masthead/masthead.css +5 -5
  165. package/src/Layout/Masthead/masthead.twig +2 -2
  166. package/src/Layout/Page/README.md +2 -2
  167. package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +1 -1
  168. package/src/Layout/Page/page.css +2 -2
  169. package/src/Layout/README.md +3 -2
  170. package/src/Layout/Section/Section.stories.ts +1 -2
  171. package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +59 -0
  172. package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +80 -0
  173. package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +91 -0
  174. package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +22 -14
  175. package/src/Layout/Section/section.css +4 -4
  176. package/src/Layout/Section/twig/section-story.twig +1 -1
  177. package/src/Layout/Sidebar/sidebar.css +1 -1
  178. package/src/Utility/Drupal/README.md +1 -1
  179. package/src/Utility/README.md +1 -1
  180. package/src/Utility/_layout-utils.css +1 -1
  181. package/src/Utility/utilities.css +3 -3
  182. package/src/elements.ts +1 -1
  183. package/dist/build/Accordion.js +0 -61
  184. package/dist/build/Accordion.js.map +0 -1
  185. package/dist/build/AccordionDiv.js +0 -62
  186. package/dist/build/AccordionDiv.js.map +0 -1
  187. package/dist/build/AccordionGroup.js +0 -85
  188. package/dist/build/AccordionGroup.js.map +0 -1
  189. package/dist/build/AccordionMobile.js +0 -31
  190. package/dist/build/AccordionMobile.js.map +0 -1
  191. package/dist/build/Dialog.js +0 -116
  192. package/dist/build/Dialog.js.map +0 -1
  193. package/dist/build/DropMenu.js +0 -132
  194. package/dist/build/DropMenu.js.map +0 -1
  195. package/dist/build/GlobalToggle.js +0 -103
  196. package/dist/build/GlobalToggle.js.map +0 -1
  197. package/dist/build/InPageAlert.js +0 -61
  198. package/dist/build/InPageAlert.js.map +0 -1
  199. package/dist/build/InPageNavigation.js +0 -92
  200. package/dist/build/InPageNavigation.js.map +0 -1
  201. package/dist/build/Navigation.js +0 -126
  202. package/dist/build/Navigation.js.map +0 -1
  203. package/dist/build/Sticky.js +0 -63
  204. package/dist/build/Sticky.js.map +0 -1
  205. package/dist/build/Tabs.js +0 -164
  206. package/dist/build/Tabs.js.map +0 -1
  207. package/dist/build/accordion.css +0 -108
  208. package/dist/build/base.css +0 -1000
  209. package/dist/build/breadcrumb.css +0 -47
  210. package/dist/build/breakpoint-loader.js +0 -52
  211. package/dist/build/breakpoint-loader.js.map +0 -1
  212. package/dist/build/button.css +0 -126
  213. package/dist/build/callout.css +0 -11
  214. package/dist/build/card.css +0 -135
  215. package/dist/build/chunks/js.cookie-CiMiGxWx.js +0 -101
  216. package/dist/build/chunks/js.cookie-CiMiGxWx.js.map +0 -1
  217. package/dist/build/chunks/polyfills-CJ5uTmUJ.js +0 -749
  218. package/dist/build/chunks/polyfills-CJ5uTmUJ.js.map +0 -1
  219. package/dist/build/chunks/popover-wbPSyFRj.js +0 -654
  220. package/dist/build/chunks/popover-wbPSyFRj.js.map +0 -1
  221. package/dist/build/chunks/utilities-BIk0P2KX.js +0 -61
  222. package/dist/build/chunks/utilities-BIk0P2KX.js.map +0 -1
  223. package/dist/build/constants.css +0 -120
  224. package/dist/build/container-grid.css +0 -207
  225. package/dist/build/content-block.css +0 -23
  226. package/dist/build/cookie-compliance.js +0 -122
  227. package/dist/build/cookie-compliance.js.map +0 -1
  228. package/dist/build/dialog.css +0 -98
  229. package/dist/build/disclosure-widget.js +0 -124
  230. package/dist/build/disclosure-widget.js.map +0 -1
  231. package/dist/build/drop-menu.css +0 -78
  232. package/dist/build/drupal.css +0 -74
  233. package/dist/build/footer-menu.css +0 -32
  234. package/dist/build/footer.css +0 -61
  235. package/dist/build/form.css +0 -589
  236. package/dist/build/grid.css +0 -200
  237. package/dist/build/header.css +0 -131
  238. package/dist/build/hero-banner.css +0 -62
  239. package/dist/build/icon.css +0 -399
  240. package/dist/build/in-page-alert.css +0 -94
  241. package/dist/build/in-page-navigation.css +0 -17
  242. package/dist/build/index.css +0 -4980
  243. package/dist/build/io-loader.js +0 -44
  244. package/dist/build/io-loader.js.map +0 -1
  245. package/dist/build/keyboard.js +0 -101
  246. package/dist/build/keyboard.js.map +0 -1
  247. package/dist/build/link-list.css +0 -72
  248. package/dist/build/masthead.css +0 -39
  249. package/dist/build/nav-list.css +0 -29
  250. package/dist/build/navigation.css +0 -371
  251. package/dist/build/page.css +0 -184
  252. package/dist/build/pagination.css +0 -123
  253. package/dist/build/section.css +0 -160
  254. package/dist/build/sidebar.css +0 -105
  255. package/dist/build/sticky.css +0 -47
  256. package/dist/build/tabs.css +0 -106
  257. package/dist/build/tag.css +0 -67
  258. package/dist/build/tiles.css +0 -61
  259. package/dist/build/utilities.css +0 -175
  260. package/src/Component/Card/__snapshots__/CardGrid.stories.ts.snap +0 -89
  261. package/src/Component/HeroBanner/__snapshots__/PageTitle.stories.ts.snap +0 -31
  262. package/src/Layout/Section/__snapshots__/SectionBackground.stories.ts.snap +0 -55
  263. package/src/Layout/Section/__snapshots__/SectionsBreakouts.stories.ts.snap +0 -78
  264. package/src/Layout/Section/__snapshots__/SectionsFlowsGroups.stories.ts.snap +0 -89
  265. package/src/index.css +0 -27
@@ -1,43 +1,16 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Components/InPageAlert Closable smoke-test 1`] = `
4
- <mx-closable-alert class="message message--"
5
- id="unique-0"
6
- >
3
+ exports[`Component/InPageAlert InPageAlert smoke-test 1`] = `
4
+ <div class="message ">
7
5
  <div class="message__content">
8
- <p>
9
- <b>
10
- Something happened.
11
- </b>
12
- And if you'd like to know what,
13
- <a href="#">
6
+ Something happened that requires your attention
7
+ <a class="link "
8
+ href="#"
9
+ >
10
+ <span>
14
11
  Click here
15
- </a>
16
- .
17
- </p>
18
- </div>
19
- <button class="icon icon--close"
20
- aria-controls="unique-0"
21
- aria-label="Close InPageAlert"
22
- type="button"
23
- >
24
- </button>
25
- </mx-closable-alert>
26
- `;
27
-
28
- exports[`Components/InPageAlert InPageAlert smoke-test 1`] = `
29
- <div class="message message--">
30
- <div class="message__content">
31
- <p>
32
- <b>
33
- Something happened.
34
- </b>
35
- And if you'd like to know what,
36
- <a href="#">
37
- Click here
38
- </a>
39
- .
40
- </p>
12
+ </span>
13
+ </a>
41
14
  </div>
42
15
  </div>
43
16
  `;
@@ -1,69 +1,69 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Components/InPageAlert Error smoke-test 1`] = `
4
- <div id=":r2:"
5
- class="message message--error icon icon--error"
6
- >
7
- <p>
8
- <b>
9
- Something happened.
10
- </b>
11
- And if you'd like to know what,
12
- <a href="#">
13
- Click here
14
- </a>
15
- .
16
- </p>
3
+ exports[`Component/InPageAlert Error smoke-test 1`] = `
4
+ <div class="message message--error icon icon--error">
5
+ <div class="message__content">
6
+ <p>
7
+ <b>
8
+ Something happened.
9
+ </b>
10
+ And if you'd like to know what,
11
+ <a href="#">
12
+ Click here
13
+ </a>
14
+ .
15
+ </p>
16
+ </div>
17
17
  </div>
18
18
  `;
19
19
 
20
- exports[`Components/InPageAlert InPageAlert smoke-test 1`] = `
21
- <div id=":r0:"
22
- class="message message--info icon icon--info"
23
- >
24
- <p>
25
- <b>
26
- Something happened.
27
- </b>
28
- And if you'd like to know what,
29
- <a href="#">
30
- Click here
31
- </a>
32
- .
33
- </p>
20
+ exports[`Component/InPageAlert InPageAlert smoke-test 1`] = `
21
+ <div class="message message--info icon icon--info">
22
+ <div class="message__content">
23
+ <p>
24
+ <b>
25
+ Something happened.
26
+ </b>
27
+ And if you'd like to know what,
28
+ <a href="#">
29
+ Click here
30
+ </a>
31
+ .
32
+ </p>
33
+ </div>
34
34
  </div>
35
35
  `;
36
36
 
37
- exports[`Components/InPageAlert Success smoke-test 1`] = `
38
- <div id=":r3:"
39
- class="message message--success icon icon--success"
40
- >
41
- <p>
42
- <b>
43
- Something happened.
44
- </b>
45
- And if you'd like to know what,
46
- <a href="#">
47
- Click here
48
- </a>
49
- .
50
- </p>
37
+ exports[`Component/InPageAlert Success smoke-test 1`] = `
38
+ <div class="message message--success icon icon--success">
39
+ <div class="message__content">
40
+ <p>
41
+ <b>
42
+ Something happened.
43
+ </b>
44
+ And if you'd like to know what,
45
+ <a href="#">
46
+ Click here
47
+ </a>
48
+ .
49
+ </p>
50
+ </div>
51
51
  </div>
52
52
  `;
53
53
 
54
- exports[`Components/InPageAlert Warning smoke-test 1`] = `
55
- <div id=":r1:"
56
- class="message message--warning icon icon--warning"
57
- >
58
- <p>
59
- <b>
60
- Something happened.
61
- </b>
62
- And if you'd like to know what,
63
- <a href="#">
64
- Click here
65
- </a>
66
- .
67
- </p>
54
+ exports[`Component/InPageAlert Warning smoke-test 1`] = `
55
+ <div class="message message--warning icon icon--warning">
56
+ <div class="message__content">
57
+ <p>
58
+ <b>
59
+ Something happened.
60
+ </b>
61
+ And if you'd like to know what,
62
+ <a href="#">
63
+ Click here
64
+ </a>
65
+ .
66
+ </p>
67
+ </div>
68
68
  </div>
69
69
  `;
@@ -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);
@@ -1,18 +1,15 @@
1
- {% if closable %}
2
- <mx-closable-alert class="message message--{{ type }}{% if type %} icon icon--{{ type }}{% endif %}"{% if id %} id="{{ id ~ type }}"{% endif %}>
1
+ {% set baseClass = 'message' %}
2
+ {% set classes = [
3
+ baseClass,
4
+ type ? baseClass~'--'~type : null,
5
+ type ? 'icon icon--'~type : null,
6
+ ] %}
7
+ {% set attributes = (attributes|default(create_attribute())).addClass(classes) %}
8
+
9
+ <div {{ attributes }}>
3
10
  <div class="message__content">
4
- {% block content %}
5
- <p><b>Something happened.</b> And if you'd like to know what, <a href="#">Click here</a>.</p>
6
- {% endblock %}
7
- </div>
8
- </mx-closable-alert>
9
- {% else %}
10
- <div class="message message--{{ type }}{% if type %} icon icon--{{ type }}{% endif %}"{% if id %} id="{{ id ~ type }}"{% endif %}>
11
- <div class="message__content">
12
- {% block content %}
13
- <p><b>Something happened.</b> And if you'd like to know what, <a href="#">Click here</a>.</p>
14
- {% endblock %}
15
- </div>
11
+ {{ title }}
12
+ {{ content }}
13
+ {{ link }}
16
14
  </div>
17
- {% endif %}
18
-
15
+ </div>
@@ -0,0 +1,11 @@
1
+ {% extends "../in-page-alert.twig" %}
2
+ {% if title %}
3
+ {% set title %}
4
+ {% include '@mixtape/Atom/Heading/heading.twig' with { title: title.title, as: title.as, modifiers: title.modifiers } only %}
5
+ {% endset %}
6
+ {% endif %}
7
+ {% if link %}
8
+ {% set link %}
9
+ {% include '@mixtape/Atom/Link/link.twig' with { href: link.href, title: link.title } only %}
10
+ {% endset %}
11
+ {% endif %}
@@ -4,27 +4,22 @@
4
4
 
5
5
  **CSS**
6
6
 
7
- `@import '@pnx-mixtape/mxds/in-page-navigation.css';`
7
+ `@import '@pnx-mixtape/mxds/src/Component/InPageNavigation/in-page-navigation.css';`
8
+
9
+ **Twig**
10
+
11
+ You can setup a twig namespace in your project if you wish to use the twig files directly.
12
+
13
+ - Eg: `{% extends '@mixtape/Component/InPageNavigation/in-page-navigation.twig' %}`
14
+
15
+ Alternatively copy/paste the file for more control.
8
16
 
9
17
  **Web Components**
10
18
 
11
19
  Web Components are self defined, simply import the desired feature. These do not use the Shadow DOM. External CSS applies.
12
20
 
13
- - InPageNavigationBase import: `import '@pnx-mixtape/mxds/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.
@@ -1,73 +1,9 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Navigation/InPageNavigation InPageNavigation smoke-test 1`] = `
4
- <section class="section section--l">
5
- <div class="page">
6
- <div class="grid--sidebar">
7
- <aside>
8
- <mx-in-page-navigation data-content=".js-content"
9
- data-headings="h2, h3"
10
- >
11
- <nav class="in-page-navigation nav nav--list">
12
- <h4 class="text--embellished-headline">
13
- Jump To Section
14
- </h4>
15
- <ul>
16
- </ul>
17
- </nav>
18
- </mx-in-page-navigation>
19
- </aside>
20
- <section class="js-content rich-text vertical-flow">
21
- <h2>
22
- Section 1
23
- </h2>
24
- <p>
25
- In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
26
- </p>
27
- <h2 id="anchor-test">
28
- Section 2
29
- </h2>
30
- <p>
31
- In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
32
- </p>
33
- <h3>
34
- Test level 3
35
- </h3>
36
- <p>
37
- In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
38
- </p>
39
- <h2>
40
- Section 3
41
- </h2>
42
- <p>
43
- In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
44
- </p>
45
- <h2>
46
- Section 4
47
- </h2>
48
- <p>
49
- In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
50
- </p>
51
- <h2>
52
- Section 5
53
- </h2>
54
- <p>
55
- In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
56
- </p>
57
- <h3>
58
- Test level 6
59
- </h3>
60
- <p>
61
- In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
62
- </p>
63
- <h2>
64
- Section 7
65
- </h2>
66
- <p>
67
- In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content. Replacing the actual content with placeholder text allows designers to design the form of the content before the content itself has been produced.
68
- </p>
69
- </section>
70
- </div>
71
- </div>
72
- </section>
3
+ exports[`Component/InPageNavigation InPageNavigation smoke-test 1`] = `
4
+ "
5
+ &lt; class="section "&gt;
6
+
7
+
8
+ "
73
9
  `;
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Navigation/InPageNavigation InPageNavigation smoke-test 1`] = `
3
+ exports[`Component/InPageNavigation InPageNavigation smoke-test 1`] = `
4
4
  <div class="grid--sidebar">
5
5
  <aside>
6
6
  <nav class="in-page-navigation nav nav--list">
@@ -2,13 +2,13 @@
2
2
  * InPageNavigation
3
3
  */
4
4
 
5
- @layer defaults {
5
+ @layer design-system.defaults {
6
6
  mx-in-page-navigation {
7
7
  display: block;
8
8
  }
9
9
  }
10
10
 
11
- @layer components {
11
+ @layer design-system.components {
12
12
  .in-page-navigation {
13
13
  & .in-page-navigation__level--h3 {
14
14
  padding-inline-start: var(--spacing-s);
@@ -0,0 +1 @@
1
+ import "./Elements/InPageNavigation"
@@ -4,16 +4,16 @@
4
4
 
5
5
  **CSS**
6
6
 
7
- `@import '@pnx-mixtape/mxds/link-list.css';`
7
+ `@import '@pnx-mixtape/mxds/src/Component/LinkList/link-list.css';`
8
8
 
9
9
  **Twig**
10
10
 
11
11
  You can setup a twig namespace in your project if you wish to use the twig files directly.
12
12
 
13
- - Eg: `{% extends '@mixtape/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';`
@@ -1,58 +1,27 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Navigation/LinkList LinkList smoke-test 1`] = `
4
- <section class="section ">
5
- <div class="grid">
6
- <div class="grid--6-col">
7
- <ul class="link-list">
8
- <li>
9
- <a href="#"
10
- class="icon icon--chevron-right"
11
- >
12
- Music
13
- </a>
14
- </li>
15
- <li>
16
- <a href="#"
17
- class="icon icon--chevron-right"
18
- >
19
- Performances
20
- </a>
21
- </li>
22
- <li>
23
- <a href="#"
24
- class="icon icon--chevron-right"
25
- >
26
- Get involved
27
- </a>
28
- </li>
29
- </ul>
30
- </div>
31
- <div class="grid--6-col">
32
- <ul class="link-list">
33
- <li>
34
- <a href="#"
35
- class="icon icon--chevron-right"
36
- >
37
- Music
38
- </a>
39
- </li>
40
- <li>
41
- <a href="#"
42
- class="icon icon--chevron-right"
43
- >
44
- Performances
45
- </a>
46
- </li>
47
- <li>
48
- <a href="#"
49
- class="icon icon--chevron-right"
50
- >
51
- Get involved
52
- </a>
53
- </li>
54
- </ul>
55
- </div>
56
- </div>
57
- </section>
3
+ exports[`Component/LinkList LinkList smoke-test 1`] = `
4
+ <ul class="link-list">
5
+ <li>
6
+ <a href="#"
7
+ class="icon icon--chevron-right"
8
+ >
9
+ Music
10
+ </a>
11
+ </li>
12
+ <li>
13
+ <a href="#"
14
+ class="icon icon--chevron-right"
15
+ >
16
+ Performances
17
+ </a>
18
+ </li>
19
+ <li>
20
+ <a href="#"
21
+ class="icon icon--chevron-right"
22
+ >
23
+ Get involved
24
+ </a>
25
+ </li>
26
+ </ul>
58
27
  `;
@@ -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.
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Components/Navigation/Collapsible Collapsible smoke-test 1`] = `
3
+ exports[`Component/Navigation/Collapsible Collapsible smoke-test 1`] = `
4
4
  <mx-nav>
5
5
  <nav class="nav nav--collapsible">
6
6
  <ul class="nav__level-1">
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Components/Navigation/Dropdown Dropdown smoke-test 1`] = `
3
+ exports[`Component/Navigation/Dropdown Dropdown smoke-test 1`] = `
4
4
  <mx-nav flyout>
5
5
  <nav class="nav nav--dropdown "
6
6
  aria-label="Primary menu"
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Components/Navigation/Dropdown Dropdown smoke-test 1`] = `
3
+ exports[`Component/Navigation/Dropdown Dropdown smoke-test 1`] = `
4
4
  <nav class="nav nav--dropdown"
5
5
  aria-label="Menu"
6
6
  id="navigation"
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Components/Navigation Navigation smoke-test 1`] = `
3
+ exports[`Component/Navigation Navigation smoke-test 1`] = `
4
4
  <nav class="nav "
5
5
  aria-label="Navigation"
6
6
  >
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Components/Navigation InlineNavigation smoke-test 1`] = `
3
+ exports[`Component/Navigation InlineNavigation smoke-test 1`] = `
4
4
  <nav class="nav nav--inline"
5
5
  aria-label="Inline Navigation"
6
6
  >
@@ -30,7 +30,7 @@ exports[`Components/Navigation InlineNavigation smoke-test 1`] = `
30
30
  </nav>
31
31
  `;
32
32
 
33
- exports[`Components/Navigation Navigation smoke-test 1`] = `
33
+ exports[`Component/Navigation Navigation smoke-test 1`] = `
34
34
  <nav class="nav"
35
35
  aria-label="Navigation"
36
36
  >
@@ -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
 
@@ -2,7 +2,7 @@
2
2
  * Dropdown Navigation - Mega Nav
3
3
  */
4
4
 
5
- @layer components {
5
+ @layer design-system.components {
6
6
  .nav--mega-nav {
7
7
  @media (--global-nav-down) {
8
8
  max-block-size: 100%;
@@ -2,7 +2,7 @@
2
2
  * Navigation
3
3
  */
4
4
 
5
- @layer components {
5
+ @layer design-system.components {
6
6
  .nav {
7
7
  & ul {
8
8
  display: flex;
@@ -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/Components/Pagination/pagination.twig' %}`
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';`