@pnx-mixtape/mxds 0.0.23 → 0.0.26

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 (299) hide show
  1. package/.storybook/decorators.ts +7 -0
  2. package/.storybook/main.ts +29 -0
  3. package/.storybook/manager.ts +6 -0
  4. package/.storybook/preview.ts +61 -0
  5. package/.storybook/public/demo-logo.svg +4 -0
  6. package/.storybook/public/design-system.svg +1 -0
  7. package/.storybook/public/favicon.svg +7 -0
  8. package/.storybook/public/mixtape-logo.png +0 -0
  9. package/.storybook/public/mixtape.webp +0 -0
  10. package/.storybook/public/pinto.png +0 -0
  11. package/.storybook/public/pinto.svg +1 -0
  12. package/.storybook/public/xb.png +0 -0
  13. package/.storybook/public/xb.svg +1 -0
  14. package/.storybook/src/global.d.ts +16 -0
  15. package/.storybook/src/theme.ts +8 -0
  16. package/.storybook/storybook.css +35 -0
  17. package/.storybook/theme-demo.css +93 -0
  18. package/.storybook/vitest.setup.ts +17 -0
  19. package/dist/build/accordion.css +76 -86
  20. package/dist/build/accordion.entry.js +46 -72
  21. package/dist/build/base.css +1 -993
  22. package/dist/build/breadcrumb.css +1 -55
  23. package/dist/build/button.css +1 -126
  24. package/dist/build/callout.css +1 -11
  25. package/dist/build/card.css +1 -161
  26. package/dist/build/carousel.css +1 -125
  27. package/dist/build/chunks/Accordion-Dwh42fp7.js +42 -0
  28. package/dist/build/chunks/DropMenu-plGsgySm.js +43 -0
  29. package/dist/build/chunks/Popover-Bws25suh.js +27 -0
  30. package/dist/build/chunks/polyfills-Du4RTZDf.js +511 -0
  31. package/dist/build/chunks/popover-Bd5oQ1Ic.js +407 -0
  32. package/dist/build/chunks/utilities-DepaJdUg.js +242 -0
  33. package/dist/build/constants.css +91 -123
  34. package/dist/build/container-grid.css +1 -186
  35. package/dist/build/content-block.css +1 -36
  36. package/dist/build/dialog.css +1 -108
  37. package/dist/build/dialog.entry.js +45 -85
  38. package/dist/build/drop-menu.css +1 -89
  39. package/dist/build/drop-menu.entry.js +2 -2
  40. package/dist/build/drupal.css +1 -66
  41. package/dist/build/filters.css +1 -117
  42. package/dist/build/filters.entry.js +113 -142
  43. package/dist/build/footer.css +1 -141
  44. package/dist/build/form.css +1 -491
  45. package/dist/build/global-alert.css +1 -60
  46. package/dist/build/global-alert.entry.js +51 -75
  47. package/dist/build/grid.css +1 -195
  48. package/dist/build/header.css +1 -149
  49. package/dist/build/header.entry.js +598 -1180
  50. package/dist/build/hero-banner.css +1 -73
  51. package/dist/build/icon.css +1 -399
  52. package/dist/build/in-page-alert.css +1 -93
  53. package/dist/build/in-page-navigation.css +1 -17
  54. package/dist/build/in-page-navigation.entry.js +67 -103
  55. package/dist/build/link-list.css +1 -45
  56. package/dist/build/list-item.css +1 -29
  57. package/dist/build/masthead.css +1 -53
  58. package/dist/build/navigation.css +1 -356
  59. package/dist/build/navigation.entry.js +79 -222
  60. package/dist/build/page.css +1 -65
  61. package/dist/build/pagination.css +1 -111
  62. package/dist/build/popover.css +1 -119
  63. package/dist/build/popover.entry.js +1 -2
  64. package/dist/build/results-bar.css +1 -21
  65. package/dist/build/section.css +1 -147
  66. package/dist/build/side-navigation.css +1 -85
  67. package/dist/build/sidebar.css +1 -53
  68. package/dist/build/social-links.css +1 -20
  69. package/dist/build/steps.css +1 -118
  70. package/dist/build/sticky.css +1 -47
  71. package/dist/build/sticky.entry.js +48 -59
  72. package/dist/build/tabs.css +1 -108
  73. package/dist/build/tabs.entry.js +130 -209
  74. package/dist/build/tag.css +1 -70
  75. package/dist/build/utilities.css +1 -186
  76. package/dist/build/utility-list.css +1 -43
  77. package/dist/build/utility-list.entry.js +52 -80
  78. package/package.json +44 -54
  79. package/src/Atom/Atom.mdx +18 -18
  80. package/src/Atom/Background/{Backgrounds.stories.ts → Background.stories.ts} +2 -1
  81. package/src/Atom/Background/__snapshots__/Background.stories.ts.snap +81 -0
  82. package/src/Atom/Background/_background.css +10 -11
  83. package/src/Atom/Background/backgrounds.twig +6 -4
  84. package/src/Atom/Button/Button.stories.ts +0 -1
  85. package/src/Atom/Button/Button.stories.tsx +2 -0
  86. package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +77 -97
  87. package/src/Atom/Button/__snapshots__/Button.stories.tsx.snap +3 -15
  88. package/src/Atom/Button/_buttons-styles.css +18 -6
  89. package/src/Atom/Button/_buttons.css +1 -1
  90. package/src/Atom/DefinitionList/DefinitionList.stories.tsx +2 -1
  91. package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.ts.snap +13 -26
  92. package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.tsx.snap +2 -29
  93. package/src/Atom/Heading/Heading.stories.tsx +2 -1
  94. package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +9 -13
  95. package/src/Atom/Heading/__snapshots__/Heading.stories.tsx.snap +2 -8
  96. package/src/Atom/Icon/Icon.stories.tsx +2 -1
  97. package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +21 -28
  98. package/src/Atom/Icon/__snapshots__/Icon.stories.tsx.snap +4 -15
  99. package/src/Atom/Icon/_extended-set.css +0 -8
  100. package/src/Atom/Icon/_icon.css +15 -6
  101. package/src/Atom/Image/__snapshots__/Image.stories.ts.snap +6 -9
  102. package/src/Atom/Link/Link.stories.tsx +2 -1
  103. package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +47 -56
  104. package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +4 -22
  105. package/src/Atom/Link/_links.css +1 -0
  106. package/src/Atom/Media/Media.stories.ts +1 -1
  107. package/src/Atom/Media/Media.stories.tsx +2 -1
  108. package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +27 -12
  109. package/src/Atom/Media/__snapshots__/Media.stories.tsx.snap +3 -16
  110. package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +5 -8
  111. package/src/Atom/Table/Table.stories.ts +0 -1
  112. package/src/Atom/Table/TableResponsive.stories.ts +0 -1
  113. package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +129 -261
  114. package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +34 -67
  115. package/src/Atom/Text/Text.stories.tsx +2 -1
  116. package/src/Atom/Text/__snapshots__/Text.stories.ts.snap +32 -46
  117. package/src/Atom/Text/__snapshots__/Text.stories.tsx.snap +2 -6
  118. package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +6 -11
  119. package/src/Atom/_flow.css +16 -1
  120. package/src/Component/Accordion/Accordion.stories.tsx +2 -0
  121. package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +106 -140
  122. package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +3 -49
  123. package/src/Component/Accordion/__snapshots__/AccordionItem.stories.ts.snap +52 -81
  124. package/src/Component/Breadcrumb/Breadcrumb.stories.tsx +2 -0
  125. package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +29 -33
  126. package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +3 -62
  127. package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +9 -11
  128. package/src/Component/Card/Card.stories.tsx +2 -0
  129. package/src/Component/Card/__snapshots__/Card.stories.ts.snap +237 -272
  130. package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +4 -85
  131. package/src/Component/Carousel/Elements/Carousel.ts +10 -7
  132. package/src/Component/Carousel/__snapshots__/Carousel.stories.ts.snap +992 -1187
  133. package/src/Component/ContentBlock/ContentBlock.stories.tsx +2 -0
  134. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +161 -155
  135. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.tsx.snap +2 -25
  136. package/src/Component/Dialog/Dialog.stories.tsx +2 -0
  137. package/src/Component/Dialog/__snapshots__/Dialog.stories.ts.snap +92 -110
  138. package/src/Component/Dialog/__snapshots__/Dialog.stories.tsx.snap +2 -31
  139. package/src/Component/DropMenu/DropMenu.stories.tsx +2 -0
  140. package/src/Component/DropMenu/DropMenu.tsx +1 -3
  141. package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +25 -72
  142. package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +2 -46
  143. package/src/Component/Filters/__snapshots__/FilterItem.stories.ts.snap +80 -121
  144. package/src/Component/Filters/__snapshots__/Filters.stories.ts.snap +323 -424
  145. package/src/Component/GlobalAlert/GlobalAlert.stories.tsx +2 -0
  146. package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +25 -37
  147. package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +3 -46
  148. package/src/Component/HeroBanner/HeroBanner.stories.tsx +2 -0
  149. package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +105 -106
  150. package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.tsx.snap +3 -34
  151. package/src/Component/HeroSearch/HeroSearch.stories.ts +0 -2
  152. package/src/Component/HeroSearch/HeroSearch.stories.tsx +2 -0
  153. package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.ts.snap +122 -165
  154. package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.tsx.snap +3 -34
  155. package/src/Component/InPageAlert/InPageAlert.stories.tsx +2 -0
  156. package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +87 -70
  157. package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.tsx.snap +5 -65
  158. package/src/Component/InPageNavigation/InPageNavigation.stories.ts +1 -0
  159. package/src/Component/InPageNavigation/InPageNavigation.stories.tsx +2 -0
  160. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +88 -208
  161. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +2 -148
  162. package/src/Component/InPageNavigation/in-page-navigation.css +5 -0
  163. package/src/Component/LinkList/LinkList.stories.tsx +2 -1
  164. package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +67 -66
  165. package/src/Component/LinkList/__snapshots__/LinkList.stories.tsx.snap +2 -32
  166. package/src/Component/ListItem/ListItem.stories.tsx +2 -1
  167. package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +153 -167
  168. package/src/Component/ListItem/__snapshots__/ListItem.stories.tsx.snap +2 -25
  169. package/src/Component/Navigation/Dropdown.stories.tsx +2 -0
  170. package/src/Component/Navigation/Elements/Navigation.ts +5 -5
  171. package/src/Component/Navigation/Navigation.stories.tsx +2 -0
  172. package/src/Component/Navigation/__snapshots__/Dropdown.stories.tsx.snap +2 -38
  173. package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +204 -279
  174. package/src/Component/Navigation/__snapshots__/Navigation.stories.tsx.snap +3 -59
  175. package/src/Component/Navigation/_navigation.css +2 -2
  176. package/src/Component/Pagination/Pagination.stories.tsx +2 -0
  177. package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +70 -60
  178. package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +2 -62
  179. package/src/Component/Popover/Elements/Popover.ts +5 -1
  180. package/src/Component/Popover/Popover.stories.ts +45 -0
  181. package/src/Component/Popover/__snapshots__/Popover.stories.ts.snap +366 -470
  182. package/src/Component/Popover/popover.css +3 -4
  183. package/src/Component/ResultsBar/ResultsBar.stories.tsx +2 -0
  184. package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.ts.snap +25 -46
  185. package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.tsx.snap +4 -50
  186. package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +76 -81
  187. package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +35 -32
  188. package/src/Component/SocialShare/SocialShare.stories.tsx +2 -1
  189. package/src/Component/SocialShare/__snapshots__/SocialShare.stories.ts.snap +11 -27
  190. package/src/Component/SocialShare/__snapshots__/SocialShare.stories.tsx.snap +4 -22
  191. package/src/Component/SocialShare/social-share.twig +1 -0
  192. package/src/Component/Steps/__snapshots__/StepItem.stories.ts.snap +11 -23
  193. package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +142 -173
  194. package/src/Component/Steps/steps.css +4 -3
  195. package/src/Component/Sticky/Sticky.stories.tsx +2 -0
  196. package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +6 -12
  197. package/src/Component/Sticky/__snapshots__/Sticky.stories.tsx.snap +2 -10
  198. package/src/Component/Tabs/Tabs.stories.tsx +2 -0
  199. package/src/Component/Tabs/__snapshots__/TabItem.stories.ts.snap +5 -9
  200. package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +37 -210
  201. package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +2 -116
  202. package/src/Component/Tag/Tag.stories.tsx +2 -0
  203. package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +37 -61
  204. package/src/Component/Tag/__snapshots__/Tag.stories.tsx.snap +2 -6
  205. package/src/Component/Tag/tags.twig +6 -6
  206. package/src/Component/UtilityList/__snapshots__/UtilityList.stories.ts.snap +122 -245
  207. package/src/Component/UtilityList/utility-list.css +4 -0
  208. package/src/Component/UtilityList/utility-list.twig +2 -1
  209. package/src/Form/Checkbox/FormCheckbox.stories.tsx +2 -2
  210. package/src/Form/Checkbox/__snapshots__/Checkbox.stories.ts.snap +13 -26
  211. package/src/Form/Checkbox/__snapshots__/FormCheckbox.stories.tsx.snap +5 -0
  212. package/src/Form/Description/FormDescription.stories.tsx +2 -1
  213. package/src/Form/Description/__snapshots__/Description.stories.ts.snap +5 -9
  214. package/src/Form/Description/__snapshots__/FormDescription.stories.tsx.snap +2 -9
  215. package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +9 -17
  216. package/src/Form/Form/Form.stories.tsx +2 -1
  217. package/src/Form/Form/FormTitle.stories.tsx +2 -1
  218. package/src/Form/Form/__snapshots__/Form.stories.tsx.snap +2 -5
  219. package/src/Form/Form/__snapshots__/FormTitle.stories.tsx.snap +2 -8
  220. package/src/Form/FormItem/FormItem.stories.tsx +8 -5
  221. package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +88 -129
  222. package/src/Form/Label/FormLabel.stories.tsx +2 -1
  223. package/src/Form/Label/__snapshots__/FormLabel.stories.tsx.snap +3 -18
  224. package/src/Form/Label/__snapshots__/Label.stories.ts.snap +13 -25
  225. package/src/Form/Radio/FormRadio.stories.tsx +2 -14
  226. package/src/Form/Radio/__snapshots__/FormRadio.stories.tsx.snap +3 -0
  227. package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +42 -57
  228. package/src/Form/Search/__snapshots__/Search.stories.ts.snap +11 -26
  229. package/src/Form/Select/FormSelect.stories.tsx +2 -1
  230. package/src/Form/Select/__snapshots__/FormSelect.stories.tsx.snap +2 -22
  231. package/src/Form/Select/__snapshots__/Select.stories.ts.snap +8 -19
  232. package/src/Form/TextInput/FormText.stories.tsx +2 -1
  233. package/src/Form/TextInput/InputDivider.stories.ts +0 -1
  234. package/src/Form/TextInput/__snapshots__/FormText.stories.tsx.snap +2 -12
  235. package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +11 -26
  236. package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +11 -25
  237. package/src/Form/Textarea/FormTextarea.stories.tsx +2 -1
  238. package/src/Form/Textarea/__snapshots__/FormTextarea.stories.tsx.snap +2 -11
  239. package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +5 -11
  240. package/src/Layout/Footer/Footer.stories.ts +18 -1
  241. package/src/Layout/Footer/Footer.stories.tsx +2 -0
  242. package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +360 -301
  243. package/src/Layout/Footer/__snapshots__/Footer.stories.tsx.snap +3 -62
  244. package/src/Layout/Footer/footer.css +16 -35
  245. package/src/Layout/Footer/footer.twig +6 -6
  246. package/src/Layout/Grid/Grid.stories.tsx +2 -0
  247. package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +72 -66
  248. package/src/Layout/Grid/__snapshots__/Grid.stories.tsx.snap +6 -62
  249. package/src/Layout/Grid/__snapshots__/GridItem.stories.ts.snap +9 -13
  250. package/src/Layout/Header/Header.stories.tsx +2 -1
  251. package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +315 -466
  252. package/src/Layout/Header/__snapshots__/Header.stories.tsx.snap +2 -58
  253. package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +86 -87
  254. package/src/Layout/Page/Page.stories.tsx +2 -0
  255. package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +2 -81
  256. package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +51 -61
  257. package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +34 -78
  258. package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +54 -89
  259. package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +89 -99
  260. package/src/Layout/Section/__snapshots__/Section.stories.tsx.snap +4 -34
  261. package/src/Layout/Section/__snapshots__/SectionGrid.stories.tsx.snap +3 -35
  262. package/src/Layout/Section/section.twig +2 -2
  263. package/src/Layout/Sidebar/Sidebar.stories.tsx +1 -1
  264. package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +49 -40
  265. package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.tsx.snap +4 -44
  266. package/src/Layout/Sidebar/sidebar.css +2 -2
  267. package/src/Layout/Sidebar/sidebar.twig +8 -5
  268. package/src/Utility/_layout-utils.css +9 -1
  269. package/src/constants.css +115 -114
  270. package/src/enums.ts +1 -0
  271. package/src/tokens.js +26 -19
  272. package/dist/build/accordion.entry.js.map +0 -1
  273. package/dist/build/chunks/Accordion-D1HQ0FDq.js +0 -63
  274. package/dist/build/chunks/Accordion-D1HQ0FDq.js.map +0 -1
  275. package/dist/build/chunks/disclosure-widget-CdjCdx7t.js +0 -129
  276. package/dist/build/chunks/disclosure-widget-CdjCdx7t.js.map +0 -1
  277. package/dist/build/chunks/drop-menu.entry-fzV-_VFl.js +0 -70
  278. package/dist/build/chunks/drop-menu.entry-fzV-_VFl.js.map +0 -1
  279. package/dist/build/chunks/polyfills-DnrsypYs.js +0 -812
  280. package/dist/build/chunks/polyfills-DnrsypYs.js.map +0 -1
  281. package/dist/build/chunks/popover-DzUcnIlX.js +0 -797
  282. package/dist/build/chunks/popover-DzUcnIlX.js.map +0 -1
  283. package/dist/build/chunks/popover.entry-BQvyR0d5.js +0 -38
  284. package/dist/build/chunks/popover.entry-BQvyR0d5.js.map +0 -1
  285. package/dist/build/chunks/utilities-Ci7wwNeg.js +0 -148
  286. package/dist/build/chunks/utilities-Ci7wwNeg.js.map +0 -1
  287. package/dist/build/dialog.entry.js.map +0 -1
  288. package/dist/build/drop-menu.entry.js.map +0 -1
  289. package/dist/build/filters.entry.js.map +0 -1
  290. package/dist/build/global-alert.entry.js.map +0 -1
  291. package/dist/build/header.entry.js.map +0 -1
  292. package/dist/build/in-page-navigation.entry.js.map +0 -1
  293. package/dist/build/navigation.entry.js.map +0 -1
  294. package/dist/build/popover.entry.js.map +0 -1
  295. package/dist/build/sticky.entry.js.map +0 -1
  296. package/dist/build/tabs.entry.js.map +0 -1
  297. package/dist/build/utility-list.entry.js.map +0 -1
  298. package/src/Atom/Background/__snapshots__/Backgrounds.stories.ts.snap +0 -176
  299. package/src/Form/FormItem/__snapshots__/FormItem.stories.tsx.snap +0 -110
@@ -1,33 +1,3 @@
1
- // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
- exports[`Navigation/Link List LinkList smoke-test 1`] = `
4
- <ul class="mx-link-list">
5
- <li>
6
- <a href="#1"
7
- class="mx-link"
8
- >
9
- Page link #1
10
- <span class="mx-icon mx-icon--chevron-right">
11
- </span>
12
- </a>
13
- </li>
14
- <li>
15
- <a href="#2"
16
- class="mx-link"
17
- >
18
- Page link #2
19
- <span class="mx-icon mx-icon--chevron-right">
20
- </span>
21
- </a>
22
- </li>
23
- <li>
24
- <a href="#3"
25
- class="mx-link"
26
- >
27
- Page link #3
28
- <span class="mx-icon mx-icon--chevron-right">
29
- </span>
30
- </a>
31
- </li>
32
- </ul>
33
- `;
3
+ exports[`Link List 1`] = `"<ul class="mx-link-list"><li><a href="#1" class="mx-link">Page link #1<span class="mx-icon mx-icon--chevron-right"></span></a></li><li><a href="#2" class="mx-link">Page link #2<span class="mx-icon mx-icon--chevron-right"></span></a></li><li><a href="#3" class="mx-link">Page link #3<span class="mx-icon mx-icon--chevron-right"></span></a></li></ul>"`;
@@ -4,9 +4,10 @@ import ListItemContent from "./Components/ListItemContent"
4
4
  import Text from "../../Atom/Text/Text"
5
5
  import Link from "../../Atom/Link/Link"
6
6
  import { TextStyles, TextTags } from "../../enums"
7
+ import { Page } from "../../../.storybook-react/decorators"
7
8
 
8
9
  const meta: Meta<typeof Component> = {
9
- title: "Elements/ListItem",
10
+ decorators: [Page],
10
11
  component: Component,
11
12
  args: {
12
13
  children: (
@@ -1,198 +1,184 @@
1
- // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
- exports[`Component/ListItem BlockLink smoke-test 1`] = `
4
- <div class="mx-page default">
5
- <div class="mx-container">
6
- <article class="mx-card mx-list-item mx-card--block">
7
- <div class="mx-card__content mx-vertical-flow">
8
- <div class="mx-heading--m">
9
- <a href="#">
10
- <span>
11
- List item title
12
- </span>
13
- </a>
14
- </div>
15
- <p>
16
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
17
- </p>
18
- </div>
19
- </article>
3
+ exports[`Block Link 1`] = `
4
+ "
5
+ <div class="mx-container">
6
+ <article class="mx-card mx-list-item mx-card--block">
7
+ <div class="mx-card__content mx-vertical-flow">
8
+ <div class="mx-heading--m">
9
+
10
+ <a href="#">
11
+
12
+ <span>List item title</span>
13
+
14
+ </a>
15
+
16
+ </div>
17
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
18
+
20
19
  </div>
20
+ </article>
21
21
  </div>
22
+ "
22
23
  `;
23
24
 
24
- exports[`Component/ListItem ImageReverse smoke-test 1`] = `
25
- <div class="mx-page default">
26
- <div class="mx-container">
27
- <article class="mx-card mx-list-item mx-card--reversed">
28
- <div class="mx-card__content mx-vertical-flow">
29
- <strong class="mx-text--s">
30
- Publication
31
- </strong>
32
- <div class="mx-text--s">
33
- 25 May 2025
34
- </div>
25
+ exports[`Image Reverse 1`] = `
26
+ "
27
+ <div class="mx-container">
28
+ <article class="mx-card mx-list-item mx-card--reversed">
29
+ <div class="mx-card__content mx-vertical-flow">
30
+ <strong class="mx-text--s">Publication</strong>
31
+ <div class="mx-text--s">25 May 2025</div>
35
32
  <div class="mx-heading--m">
36
- <a href="#">
37
- <span>
38
- List item title
39
- </span>
40
- </a>
41
- </div>
42
- <p>
43
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
44
- </p>
45
- </div>
46
- <figure class="mx-card__media">
47
- <picture>
48
- <img src="https://picsum.photos/id/56/200/200?grayscale"
49
- alt="Blurry bubbles"
50
- >
51
- </picture>
52
- </figure>
53
- </article>
33
+
34
+ <a href="#">
35
+
36
+ <span>List item title</span>
37
+
38
+ </a>
39
+
40
+ </div>
41
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
42
+
54
43
  </div>
44
+ <figure class="mx-card__media">
45
+ <picture>
46
+ <img src="https://picsum.photos/id/56/200/200?grayscale" alt="Blurry bubbles">
47
+ </picture>
48
+
49
+ </figure>
50
+ </article>
55
51
  </div>
52
+ "
56
53
  `;
57
54
 
58
- exports[`Component/ListItem ListItem smoke-test 1`] = `
59
- <div class="mx-page default">
60
- <div class="mx-container">
61
- <article class="mx-card mx-list-item">
62
- <div class="mx-card__content mx-vertical-flow">
63
- <div class="mx-heading--m">
64
- <a href="#">
65
- <span>
66
- List item title
67
- </span>
68
- </a>
69
- </div>
70
- <p>
71
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
72
- </p>
73
- </div>
74
- </article>
55
+ exports[`List Item 1`] = `
56
+ "
57
+ <div class="mx-container">
58
+ <article class="mx-card mx-list-item">
59
+ <div class="mx-card__content mx-vertical-flow">
60
+ <div class="mx-heading--m">
61
+
62
+ <a href="#">
63
+
64
+ <span>List item title</span>
65
+
66
+ </a>
67
+
68
+ </div>
69
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
70
+
75
71
  </div>
72
+ </article>
76
73
  </div>
74
+ "
77
75
  `;
78
76
 
79
- exports[`Component/ListItem WithImage smoke-test 1`] = `
80
- <div class="mx-page default">
81
- <div class="mx-container">
82
- <article class="mx-card mx-list-item">
83
- <div class="mx-card__content mx-vertical-flow">
84
- <strong class="mx-text--s">
85
- Publication
86
- </strong>
87
- <div class="mx-text--s">
88
- 25 May 2025
89
- </div>
77
+ exports[`With Image 1`] = `
78
+ "
79
+ <div class="mx-container">
80
+ <article class="mx-card mx-list-item">
81
+ <div class="mx-card__content mx-vertical-flow">
82
+ <strong class="mx-text--s">Publication</strong>
83
+ <div class="mx-text--s">25 May 2025</div>
90
84
  <div class="mx-heading--m">
91
- <a href="#">
92
- <span>
93
- List item title
94
- </span>
95
- </a>
96
- </div>
97
- <p>
98
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
99
- </p>
100
- </div>
101
- <figure class="mx-card__media">
102
- <picture>
103
- <img src="https://picsum.photos/id/56/200/200?grayscale"
104
- alt="Blurry bubbles"
105
- >
106
- </picture>
107
- </figure>
108
- </article>
85
+
86
+ <a href="#">
87
+
88
+ <span>List item title</span>
89
+
90
+ </a>
91
+
92
+ </div>
93
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
94
+
109
95
  </div>
96
+ <figure class="mx-card__media">
97
+ <picture>
98
+ <img src="https://picsum.photos/id/56/200/200?grayscale" alt="Blurry bubbles">
99
+ </picture>
100
+
101
+ </figure>
102
+ </article>
110
103
  </div>
104
+ "
111
105
  `;
112
106
 
113
- exports[`Component/ListItem WithInfo smoke-test 1`] = `
114
- <div class="mx-page default">
115
- <div class="mx-container">
116
- <article class="mx-card mx-list-item">
117
- <div class="mx-card__content mx-vertical-flow">
118
- <strong class="mx-text--s">
119
- Publication
120
- </strong>
121
- <div class="mx-text--s">
122
- 25 May 2025
123
- </div>
107
+ exports[`With Info 1`] = `
108
+ "
109
+ <div class="mx-container">
110
+ <article class="mx-card mx-list-item">
111
+ <div class="mx-card__content mx-vertical-flow">
112
+ <strong class="mx-text--s">Publication</strong>
113
+ <div class="mx-text--s">25 May 2025</div>
124
114
  <div class="mx-heading--m">
125
- <a href="#">
126
- <span>
127
- List item title
128
- </span>
129
- </a>
130
- </div>
131
- <p>
132
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
133
- </p>
134
- </div>
135
- </article>
115
+
116
+ <a href="#">
117
+
118
+ <span>List item title</span>
119
+
120
+ </a>
121
+
122
+ </div>
123
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
124
+
136
125
  </div>
126
+ </article>
137
127
  </div>
128
+ "
138
129
  `;
139
130
 
140
- exports[`Component/ListItem WithTags smoke-test 1`] = `
141
- <div class="mx-page default">
142
- <div class="mx-container">
143
- <article class="mx-card mx-list-item">
144
- <div class="mx-card__content mx-vertical-flow">
145
- <strong class="mx-text--s">
146
- Resource
147
- </strong>
148
- <div class="mx-heading--m">
149
- <a href="#">
150
- <span>
151
- List item title
152
- </span>
153
- </a>
154
- </div>
155
- <p>
156
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
157
- </p>
158
- <ul class="mx-tags">
159
- <li>
160
- <span class="mx-tag">
161
- Music
162
- </span>
163
- </li>
164
- <li>
165
- <span class="mx-tag">
166
- News
167
- </span>
168
- </li>
169
- </ul>
170
- </div>
171
- </article>
131
+ exports[`With Tags 1`] = `
132
+ "
133
+ <div class="mx-container">
134
+ <article class="mx-card mx-list-item">
135
+ <div class="mx-card__content mx-vertical-flow">
136
+ <strong class="mx-text--s">Resource</strong>
137
+ <div class="mx-heading--m">
138
+
139
+ <a href="#">
140
+
141
+ <span>List item title</span>
142
+
143
+ </a>
144
+
145
+ </div>
146
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
147
+
148
+ <ul class="mx-tags">
149
+ <li>
150
+ <span class="mx-tag">Music</span>
151
+ </li>
152
+ <li>
153
+ <span class="mx-tag">News</span>
154
+ </li>
155
+ </ul>
156
+
172
157
  </div>
158
+ </article>
173
159
  </div>
160
+ "
174
161
  `;
175
162
 
176
- exports[`Component/ListItem WithUrl smoke-test 1`] = `
177
- <div class="mx-page default">
178
- <div class="mx-container">
179
- <article class="mx-card mx-list-item">
180
- <div class="mx-card__content mx-vertical-flow">
181
- <div class="mx-heading--m">
182
- <a href="#">
183
- <span>
184
- List item title
185
- </span>
186
- </a>
187
- </div>
188
- <div class="mx-text--s">
189
- https://example.com/some-thing
190
- </div>
191
- <p>
192
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
193
- </p>
194
- </div>
195
- </article>
163
+ exports[`With Url 1`] = `
164
+ "
165
+ <div class="mx-container">
166
+ <article class="mx-card mx-list-item">
167
+ <div class="mx-card__content mx-vertical-flow">
168
+ <div class="mx-heading--m">
169
+
170
+ <a href="#">
171
+
172
+ <span>List item title</span>
173
+
174
+ </a>
175
+
176
+ </div>
177
+ <div class="mx-text--s">https://example.com/some-thing</div>
178
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
179
+
196
180
  </div>
181
+ </article>
197
182
  </div>
183
+ "
198
184
  `;
@@ -1,26 +1,3 @@
1
- // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
- exports[`Elements/ListItem ListItem smoke-test 1`] = `
4
- <div class="mx-container">
5
- <article class="mx-list-item">
6
- <div class="mx-list-item__content mx-vertical-flow">
7
- <strong class="mx-text--s">
8
- label
9
- </strong>
10
- <div class="mx-heading--m">
11
- <a href="http://example.com"
12
- class="mx-link"
13
- >
14
- Teaser title
15
- </a>
16
- </div>
17
- <p class="mx-text--s">
18
- 18 May 2040
19
- </p>
20
- <p>
21
- 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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
22
- </p>
23
- </div>
24
- </article>
25
- </div>
26
- `;
3
+ exports[`List Item 1`] = `"<div class="mx-container"><article class="mx-list-item"><div class="mx-list-item__content mx-vertical-flow"><strong class="mx-text--s">label</strong><div class="mx-heading--m"><a href="http://example.com" class="mx-link">Teaser title</a></div><p class="mx-text--s">18 May 2040</p><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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p></div></article></div>"`;
@@ -1,9 +1,11 @@
1
1
  import { Meta, StoryObj } from "@storybook/react-vite"
2
2
  import Component from "./Dropdown"
3
3
  import "./navigation.css"
4
+ import { Page } from "../../../.storybook-react/decorators"
4
5
 
5
6
  const meta: Meta<typeof Component> = {
6
7
  tags: ["autodocs"],
8
+ decorators: [Page],
7
9
  component: Component,
8
10
  args: {
9
11
  title: "Menu",
@@ -81,7 +81,7 @@ export default class Navigation extends HTMLElement {
81
81
 
82
82
  disconnectedCallback(): void {
83
83
  this.controller.abort()
84
- this.subNavs.forEach((subNav: SubNavType): void => subNav.widget.detach())
84
+ this.subNavs?.forEach((subNav: SubNavType): void => subNav.widget.detach())
85
85
  }
86
86
 
87
87
  handleDisclosure = ({ detail }: CustomEvent<DisclosureWidgetEvent>): void => {
@@ -96,7 +96,7 @@ export default class Navigation extends HTMLElement {
96
96
  }
97
97
 
98
98
  handleCloseAny = (): void => {
99
- this.subNavs.forEach(({ widget }: SubNavType): void => {
99
+ this.subNavs?.forEach(({ widget }: SubNavType): void => {
100
100
  if (!widget) return
101
101
  if (widget.isOpen) widget.handleToggle()
102
102
  })
@@ -108,7 +108,7 @@ export default class Navigation extends HTMLElement {
108
108
  if (!parent) return
109
109
  const subnav: HTMLUListElement = parent.querySelector(":scope > ul")
110
110
  if (!subnav) return
111
- this.subNavs.forEach(({ widget, list }: SubNavType): void => {
111
+ this.subNavs?.forEach(({ widget, list }: SubNavType): void => {
112
112
  if (!widget) return
113
113
  if (widget.isOpen) widget.handleToggle()
114
114
  if (list.id === subnav.id) widget.handleToggle()
@@ -135,10 +135,10 @@ export default class Navigation extends HTMLElement {
135
135
  obs.disconnect()
136
136
  },
137
137
  )
138
- this.subNavs.forEach(({ list }: SubNavType): void => {
138
+ this.subNavs?.forEach(({ list }: SubNavType): void => {
139
139
  edgeCheck.observe(list)
140
140
  const nestedLists: NodeListOf<HTMLUListElement> = list.querySelectorAll("ul")
141
- nestedLists.forEach(nestedList => edgeCheck.observe(nestedList))
141
+ nestedLists?.forEach(nestedList => edgeCheck.observe(nestedList))
142
142
  })
143
143
  }
144
144
 
@@ -1,9 +1,11 @@
1
1
  import { Meta, StoryObj } from "@storybook/react-vite"
2
2
  import Component from "./Navigation"
3
3
  import "./navigation.css"
4
+ import { Page } from "../../../.storybook-react/decorators"
4
5
 
5
6
  const meta: Meta<typeof Component> = {
6
7
  tags: ["autodocs"],
8
+ decorators: [Page],
7
9
  component: Component,
8
10
  args: {
9
11
  title: "Navigation",
@@ -1,39 +1,3 @@
1
- // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
- exports[`Component/Navigation/Dropdown Dropdown smoke-test 1`] = `
4
- <nav class="mx-nav mx-nav--dropdown"
5
- aria-label="Menu"
6
- id="navigation"
7
- >
8
- <ul class="mx-nav__level-1">
9
- <li class="mx-nav__has-subnav">
10
- <a href="#"
11
- class
12
- >
13
- Home
14
- </a>
15
- <button aria-controls="unique-0"
16
- aria-expanded="false"
17
- class="mx-nav__toggle mx-icon mx-icon--only mx-icon--chevron-down"
18
- type="button"
19
- >
20
- Sub-navigation
21
- </button>
22
- </li>
23
- <li class>
24
- <a href="#"
25
- class
26
- >
27
- About
28
- </a>
29
- </li>
30
- <li class>
31
- <a href="#"
32
- class
33
- >
34
- Contact
35
- </a>
36
- </li>
37
- </ul>
38
- </nav>
39
- `;
3
+ exports[`Dropdown 1`] = `"<nav class="mx-nav mx-nav--dropdown" aria-label="Menu" id="navigation"><ul class="mx-nav__level-1"><li class="mx-nav__has-subnav"><a href="#" class="">Home</a><button aria-controls="_r_0_" aria-expanded="false" class="mx-nav__toggle mx-icon mx-icon--only mx-icon--chevron-down" type="button">Sub-navigation</button></li><li class=""><a href="#" class="">About</a></li><li class=""><a href="#" class="">Contact</a></li></ul></nav>"`;