@pnx-mixtape/mxds 0.0.24 → 0.0.27

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 (275) hide show
  1. package/.storybook/decorators.ts +1 -1
  2. package/.storybook/main.ts +12 -1
  3. package/.storybook/preview.ts +1 -0
  4. package/.storybook/theme-demo.css +17 -13
  5. package/.storybook/vitest.setup.ts +53 -0
  6. package/dist/build/accordion.css +1 -113
  7. package/dist/build/accordion.entry.js +46 -72
  8. package/dist/build/base.css +1 -993
  9. package/dist/build/breadcrumb.css +1 -55
  10. package/dist/build/button.css +1 -126
  11. package/dist/build/callout.css +1 -11
  12. package/dist/build/card.css +1 -161
  13. package/dist/build/carousel.css +1 -125
  14. package/dist/build/chunks/Accordion-BzKLBuWL.js +42 -0
  15. package/dist/build/chunks/DropMenu-LnJEp-sg.js +43 -0
  16. package/dist/build/chunks/Popover-C4gisyxr.js +27 -0
  17. package/dist/build/chunks/polyfills-Du4RTZDf.js +511 -0
  18. package/dist/build/chunks/popover-Bd5oQ1Ic.js +407 -0
  19. package/dist/build/chunks/utilities-DepaJdUg.js +242 -0
  20. package/dist/build/constants.css +1 -132
  21. package/dist/build/container-grid.css +1 -186
  22. package/dist/build/content-block.css +1 -36
  23. package/dist/build/dialog.css +1 -108
  24. package/dist/build/dialog.entry.js +45 -85
  25. package/dist/build/drop-menu.css +1 -89
  26. package/dist/build/drop-menu.entry.js +2 -2
  27. package/dist/build/drupal.css +1 -66
  28. package/dist/build/filters.css +1 -117
  29. package/dist/build/filters.entry.js +113 -142
  30. package/dist/build/footer.css +1 -141
  31. package/dist/build/form.css +1 -491
  32. package/dist/build/global-alert.css +1 -60
  33. package/dist/build/global-alert.entry.js +51 -75
  34. package/dist/build/grid.css +1 -195
  35. package/dist/build/header.css +1 -149
  36. package/dist/build/header.entry.js +718 -1180
  37. package/dist/build/hero-banner.css +1 -73
  38. package/dist/build/icon.css +1 -399
  39. package/dist/build/in-page-alert.css +1 -93
  40. package/dist/build/in-page-navigation.css +1 -17
  41. package/dist/build/in-page-navigation.entry.js +67 -103
  42. package/dist/build/link-list.css +1 -45
  43. package/dist/build/list-item.css +1 -29
  44. package/dist/build/masthead.css +1 -53
  45. package/dist/build/navigation.css +1 -356
  46. package/dist/build/navigation.entry.js +79 -222
  47. package/dist/build/page.css +1 -65
  48. package/dist/build/pagination.css +1 -111
  49. package/dist/build/popover.css +1 -119
  50. package/dist/build/popover.entry.js +1 -2
  51. package/dist/build/results-bar.css +1 -21
  52. package/dist/build/section.css +1 -147
  53. package/dist/build/side-navigation.css +1 -85
  54. package/dist/build/sidebar.css +1 -53
  55. package/dist/build/social-links.css +1 -20
  56. package/dist/build/steps.css +1 -118
  57. package/dist/build/sticky.css +1 -47
  58. package/dist/build/sticky.entry.js +48 -59
  59. package/dist/build/tabs.css +1 -108
  60. package/dist/build/tabs.entry.js +130 -209
  61. package/dist/build/tag.css +1 -70
  62. package/dist/build/utilities.css +1 -186
  63. package/dist/build/utility-list.css +1 -43
  64. package/dist/build/utility-list.entry.js +52 -80
  65. package/package.json +40 -54
  66. package/src/Atom/Background/__snapshots__/Background.stories.ts.snap +61 -216
  67. package/src/Atom/Background/_background.css +2 -1
  68. package/src/Atom/Button/Button.stories.tsx +2 -0
  69. package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +77 -97
  70. package/src/Atom/Button/__snapshots__/Button.stories.tsx.snap +3 -15
  71. package/src/Atom/DefinitionList/DefinitionList.stories.tsx +2 -1
  72. package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.ts.snap +13 -26
  73. package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.tsx.snap +2 -29
  74. package/src/Atom/Heading/Heading.stories.tsx +2 -1
  75. package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +9 -13
  76. package/src/Atom/Heading/__snapshots__/Heading.stories.tsx.snap +2 -8
  77. package/src/Atom/Icon/Icon.stories.tsx +2 -1
  78. package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +21 -28
  79. package/src/Atom/Icon/__snapshots__/Icon.stories.tsx.snap +4 -15
  80. package/src/Atom/Icon/_icon.css +7 -6
  81. package/src/Atom/Image/__snapshots__/Image.stories.ts.snap +6 -9
  82. package/src/Atom/Link/Link.stories.tsx +2 -1
  83. package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +47 -56
  84. package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +4 -22
  85. package/src/Atom/Media/Media.stories.ts +1 -1
  86. package/src/Atom/Media/Media.stories.tsx +2 -1
  87. package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +27 -12
  88. package/src/Atom/Media/__snapshots__/Media.stories.tsx.snap +3 -16
  89. package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +5 -8
  90. package/src/Atom/Table/TableResponsive.stories.ts +0 -1
  91. package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +129 -261
  92. package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +34 -67
  93. package/src/Atom/Text/Text.stories.tsx +2 -1
  94. package/src/Atom/Text/__snapshots__/Text.stories.ts.snap +32 -46
  95. package/src/Atom/Text/__snapshots__/Text.stories.tsx.snap +2 -6
  96. package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +6 -11
  97. package/src/Atom/_flow.css +16 -1
  98. package/src/Component/Accordion/Accordion.stories.tsx +2 -0
  99. package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +106 -140
  100. package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +3 -49
  101. package/src/Component/Accordion/__snapshots__/AccordionItem.stories.ts.snap +52 -81
  102. package/src/Component/Breadcrumb/Breadcrumb.stories.tsx +2 -0
  103. package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +29 -33
  104. package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +3 -62
  105. package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +9 -11
  106. package/src/Component/Card/Card.stories.tsx +2 -0
  107. package/src/Component/Card/__snapshots__/Card.stories.ts.snap +237 -272
  108. package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +4 -85
  109. package/src/Component/Carousel/Elements/Carousel.ts +10 -7
  110. package/src/Component/Carousel/__snapshots__/Carousel.stories.ts.snap +992 -1187
  111. package/src/Component/ContentBlock/ContentBlock.stories.tsx +2 -0
  112. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +161 -155
  113. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.tsx.snap +2 -25
  114. package/src/Component/Dialog/Dialog.stories.tsx +2 -0
  115. package/src/Component/Dialog/__snapshots__/Dialog.stories.ts.snap +92 -110
  116. package/src/Component/Dialog/__snapshots__/Dialog.stories.tsx.snap +2 -31
  117. package/src/Component/DropMenu/DropMenu.stories.tsx +2 -0
  118. package/src/Component/DropMenu/DropMenu.tsx +1 -3
  119. package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +25 -72
  120. package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +2 -46
  121. package/src/Component/Filters/__snapshots__/FilterItem.stories.ts.snap +80 -121
  122. package/src/Component/Filters/__snapshots__/Filters.stories.ts.snap +323 -424
  123. package/src/Component/GlobalAlert/GlobalAlert.stories.tsx +2 -0
  124. package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +25 -37
  125. package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +3 -46
  126. package/src/Component/HeroBanner/HeroBanner.stories.tsx +2 -0
  127. package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +105 -106
  128. package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.tsx.snap +3 -34
  129. package/src/Component/HeroSearch/HeroSearch.stories.tsx +2 -0
  130. package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.ts.snap +121 -158
  131. package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.tsx.snap +3 -34
  132. package/src/Component/InPageAlert/InPageAlert.stories.tsx +2 -0
  133. package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +87 -70
  134. package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.tsx.snap +5 -65
  135. package/src/Component/InPageNavigation/Elements/InPageNavigation.ts +22 -3
  136. package/src/Component/InPageNavigation/InPageNavigation.stories.ts +11 -0
  137. package/src/Component/InPageNavigation/InPageNavigation.stories.tsx +2 -0
  138. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +93 -208
  139. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +2 -148
  140. package/src/Component/InPageNavigation/in-page-navigation.css +7 -0
  141. package/src/Component/InPageNavigation/in-page-navigation.twig +3 -2
  142. package/src/Component/LinkList/LinkList.stories.tsx +2 -1
  143. package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +67 -66
  144. package/src/Component/LinkList/__snapshots__/LinkList.stories.tsx.snap +2 -32
  145. package/src/Component/ListItem/ListItem.stories.tsx +2 -1
  146. package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +153 -167
  147. package/src/Component/ListItem/__snapshots__/ListItem.stories.tsx.snap +2 -25
  148. package/src/Component/Navigation/Dropdown.stories.tsx +2 -0
  149. package/src/Component/Navigation/Elements/Navigation.ts +5 -5
  150. package/src/Component/Navigation/Navigation.stories.tsx +2 -0
  151. package/src/Component/Navigation/__snapshots__/Dropdown.stories.tsx.snap +2 -38
  152. package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +204 -279
  153. package/src/Component/Navigation/__snapshots__/Navigation.stories.tsx.snap +3 -59
  154. package/src/Component/Navigation/_navigation.css +2 -2
  155. package/src/Component/Pagination/Pagination.stories.tsx +2 -0
  156. package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +70 -60
  157. package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +2 -62
  158. package/src/Component/Popover/Elements/Popover.ts +5 -1
  159. package/src/Component/Popover/__snapshots__/Popover.stories.ts.snap +366 -496
  160. package/src/Component/Popover/popover.css +3 -4
  161. package/src/Component/ResultsBar/ResultsBar.stories.tsx +2 -0
  162. package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.ts.snap +25 -46
  163. package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.tsx.snap +4 -50
  164. package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +76 -81
  165. package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +35 -32
  166. package/src/Component/SocialShare/SocialShare.stories.tsx +2 -1
  167. package/src/Component/SocialShare/__snapshots__/SocialShare.stories.ts.snap +11 -27
  168. package/src/Component/SocialShare/__snapshots__/SocialShare.stories.tsx.snap +4 -22
  169. package/src/Component/SocialShare/social-share.twig +1 -0
  170. package/src/Component/Steps/__snapshots__/StepItem.stories.ts.snap +11 -23
  171. package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +142 -173
  172. package/src/Component/Sticky/Sticky.stories.tsx +2 -0
  173. package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +6 -12
  174. package/src/Component/Sticky/__snapshots__/Sticky.stories.tsx.snap +2 -10
  175. package/src/Component/Tabs/Tabs.stories.tsx +2 -0
  176. package/src/Component/Tabs/__snapshots__/TabItem.stories.ts.snap +5 -9
  177. package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +37 -210
  178. package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +2 -116
  179. package/src/Component/Tag/Tag.stories.tsx +2 -0
  180. package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +37 -61
  181. package/src/Component/Tag/__snapshots__/Tag.stories.tsx.snap +2 -6
  182. package/src/Component/Tag/tags.twig +6 -6
  183. package/src/Component/UtilityList/__snapshots__/UtilityList.stories.ts.snap +122 -245
  184. package/src/Component/UtilityList/utility-list.css +4 -0
  185. package/src/Component/UtilityList/utility-list.twig +2 -1
  186. package/src/Form/Checkbox/FormCheckbox.stories.tsx +2 -2
  187. package/src/Form/Checkbox/__snapshots__/Checkbox.stories.ts.snap +13 -26
  188. package/src/Form/Checkbox/__snapshots__/FormCheckbox.stories.tsx.snap +5 -0
  189. package/src/Form/Description/FormDescription.stories.tsx +2 -1
  190. package/src/Form/Description/__snapshots__/Description.stories.ts.snap +5 -9
  191. package/src/Form/Description/__snapshots__/FormDescription.stories.tsx.snap +2 -9
  192. package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +9 -17
  193. package/src/Form/Form/Form.stories.tsx +2 -1
  194. package/src/Form/Form/FormTitle.stories.tsx +2 -1
  195. package/src/Form/Form/__snapshots__/Form.stories.tsx.snap +2 -5
  196. package/src/Form/Form/__snapshots__/FormTitle.stories.tsx.snap +2 -8
  197. package/src/Form/FormItem/FormItem.stories.tsx +8 -5
  198. package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +88 -129
  199. package/src/Form/Label/FormLabel.stories.tsx +2 -1
  200. package/src/Form/Label/__snapshots__/FormLabel.stories.tsx.snap +3 -18
  201. package/src/Form/Label/__snapshots__/Label.stories.ts.snap +13 -25
  202. package/src/Form/Radio/FormRadio.stories.tsx +2 -14
  203. package/src/Form/Radio/__snapshots__/FormRadio.stories.tsx.snap +3 -0
  204. package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +42 -57
  205. package/src/Form/Search/__snapshots__/Search.stories.ts.snap +11 -26
  206. package/src/Form/Search/search-form.twig +2 -1
  207. package/src/Form/Select/FormSelect.stories.tsx +2 -1
  208. package/src/Form/Select/__snapshots__/FormSelect.stories.tsx.snap +2 -22
  209. package/src/Form/Select/__snapshots__/Select.stories.ts.snap +8 -19
  210. package/src/Form/TextInput/FormText.stories.tsx +2 -1
  211. package/src/Form/TextInput/__snapshots__/FormText.stories.tsx.snap +2 -12
  212. package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +11 -26
  213. package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +11 -25
  214. package/src/Form/Textarea/FormTextarea.stories.tsx +2 -1
  215. package/src/Form/Textarea/__snapshots__/FormTextarea.stories.tsx.snap +2 -11
  216. package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +5 -11
  217. package/src/Layout/Footer/Footer.stories.ts +18 -1
  218. package/src/Layout/Footer/Footer.stories.tsx +2 -0
  219. package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +360 -301
  220. package/src/Layout/Footer/__snapshots__/Footer.stories.tsx.snap +3 -62
  221. package/src/Layout/Footer/footer.css +16 -35
  222. package/src/Layout/Footer/footer.twig +6 -6
  223. package/src/Layout/Grid/Grid.stories.tsx +2 -0
  224. package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +72 -66
  225. package/src/Layout/Grid/__snapshots__/Grid.stories.tsx.snap +6 -62
  226. package/src/Layout/Grid/__snapshots__/GridItem.stories.ts.snap +9 -13
  227. package/src/Layout/Header/Header.stories.tsx +2 -1
  228. package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +315 -466
  229. package/src/Layout/Header/__snapshots__/Header.stories.tsx.snap +2 -58
  230. package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +86 -87
  231. package/src/Layout/Page/Page.stories.tsx +2 -0
  232. package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +2 -81
  233. package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +51 -61
  234. package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +34 -78
  235. package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +54 -89
  236. package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +89 -99
  237. package/src/Layout/Section/__snapshots__/Section.stories.tsx.snap +4 -34
  238. package/src/Layout/Section/__snapshots__/SectionGrid.stories.tsx.snap +3 -35
  239. package/src/Layout/Section/section.twig +2 -2
  240. package/src/Layout/Sidebar/Sidebar.stories.tsx +1 -1
  241. package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +49 -40
  242. package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.tsx.snap +4 -44
  243. package/src/Layout/Sidebar/sidebar.css +2 -2
  244. package/src/Layout/Sidebar/sidebar.twig +8 -5
  245. package/src/Utility/_layout-utils.css +9 -1
  246. package/src/constants.css +2 -2
  247. package/src/tokens.js +2 -2
  248. package/.storybook/test-runner.ts +0 -77
  249. package/dist/build/accordion.entry.js.map +0 -1
  250. package/dist/build/chunks/Accordion-D1HQ0FDq.js +0 -63
  251. package/dist/build/chunks/Accordion-D1HQ0FDq.js.map +0 -1
  252. package/dist/build/chunks/disclosure-widget-CdjCdx7t.js +0 -129
  253. package/dist/build/chunks/disclosure-widget-CdjCdx7t.js.map +0 -1
  254. package/dist/build/chunks/drop-menu.entry-fzV-_VFl.js +0 -70
  255. package/dist/build/chunks/drop-menu.entry-fzV-_VFl.js.map +0 -1
  256. package/dist/build/chunks/polyfills-DnrsypYs.js +0 -812
  257. package/dist/build/chunks/polyfills-DnrsypYs.js.map +0 -1
  258. package/dist/build/chunks/popover-DzUcnIlX.js +0 -797
  259. package/dist/build/chunks/popover-DzUcnIlX.js.map +0 -1
  260. package/dist/build/chunks/popover.entry-BQvyR0d5.js +0 -38
  261. package/dist/build/chunks/popover.entry-BQvyR0d5.js.map +0 -1
  262. package/dist/build/chunks/utilities-Ci7wwNeg.js +0 -148
  263. package/dist/build/chunks/utilities-Ci7wwNeg.js.map +0 -1
  264. package/dist/build/dialog.entry.js.map +0 -1
  265. package/dist/build/drop-menu.entry.js.map +0 -1
  266. package/dist/build/filters.entry.js.map +0 -1
  267. package/dist/build/global-alert.entry.js.map +0 -1
  268. package/dist/build/header.entry.js.map +0 -1
  269. package/dist/build/in-page-navigation.entry.js.map +0 -1
  270. package/dist/build/navigation.entry.js.map +0 -1
  271. package/dist/build/popover.entry.js.map +0 -1
  272. package/dist/build/sticky.entry.js.map +0 -1
  273. package/dist/build/tabs.entry.js.map +0 -1
  274. package/dist/build/utility-list.entry.js.map +0 -1
  275. package/src/Form/FormItem/__snapshots__/FormItem.stories.tsx.snap +0 -110
@@ -22,6 +22,7 @@ const meta: Meta<InPageNavigationType> = {
22
22
  title: "On this page",
23
23
  as: HeadingTypes.TWO,
24
24
  modifiers: [HeadingTypes.FOUR],
25
+ excluded: true,
25
26
  }),
26
27
  items: [
27
28
  Link({
@@ -97,3 +98,13 @@ export const Nested: Story = {
97
98
  levels: [HeadingTypes.TWO, HeadingTypes.THREE],
98
99
  },
99
100
  }
101
+
102
+ /**
103
+ * No headings found: page content contains no headings.
104
+ */
105
+ export const NoHeadings: Story = {
106
+ args: {
107
+ items: [],
108
+ levels: [HeadingTypes.FOUR],
109
+ },
110
+ }
@@ -5,10 +5,12 @@ import Component from "./InPageNavigation"
5
5
  import Sidebar from "../../Layout/Sidebar/Sidebar"
6
6
  import "./in-page-navigation.css"
7
7
  import { HeadingLevels } from "../../enums"
8
+ import { Page } from "../../../.storybook-react/decorators"
8
9
 
9
10
  const meta: Meta<typeof Component> = {
10
11
  tags: ["autodocs"],
11
12
  component: Component,
13
+ decorators: [Page],
12
14
  render: () => (
13
15
  <Sidebar before sidebar={<Component />}>
14
16
  <div className="mx-vertical-flow">
@@ -1,217 +1,102 @@
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/InPageNavigation GeneratedItems smoke-test 1`] = `
4
- <div class="mx-page default">
5
- <mx-in-page-navigation data-content=".js-content"
6
- data-headings
7
- >
8
- <nav class="mx-nav mx-nav--list mx-in-page-navigation mx-vertical-flow">
9
- <h2 class="mx-heading--m">
10
- On this page
11
- </h2>
12
- <ul>
13
- <li class="mx-in-page-navigation__level--h2">
14
- <a href="#section-1">
15
- <span class="mx-icon mx-icon--chevron-right">
16
- </span>
17
- <span>
18
- Section 1
19
- </span>
20
- </a>
21
- </li>
22
- <li class="mx-in-page-navigation__level--h2">
23
- <a href="#section-2">
24
- <span class="mx-icon mx-icon--chevron-right">
25
- </span>
26
- <span>
27
- Section 2
28
- </span>
29
- </a>
30
- </li>
31
- <li class="mx-in-page-navigation__level--h2">
32
- <a href="#section-3">
33
- <span class="mx-icon mx-icon--chevron-right">
34
- </span>
35
- <span>
36
- Section 3
37
- </span>
38
- </a>
39
- </li>
40
- </ul>
41
- </nav>
42
- </mx-in-page-navigation>
43
- <div class="js-content mx-rich-text mx-vertical-flow mx-section--l">
44
- <h2 id="section-1">
45
- Section 1
46
- </h2>
47
- <p>
48
- 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.
49
- </p>
50
- <h2 id="section-2">
51
- Section 2
52
- </h2>
53
- <p>
54
- 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.
55
- </p>
56
- <h3 id="test-level-3">
57
- Test level 3
58
- </h3>
59
- <p>
60
- 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.
61
- </p>
62
- <h2 id="section-3">
63
- Section 3
64
- </h2>
65
- <p>
66
- 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.
67
- </p>
68
- </div>
3
+ exports[`Generated Items 1`] = `
4
+ "<mx-in-page-navigation data-content=".js-content" data-headings="" data-title="On this page">
5
+ <nav class="mx-nav mx-nav--list mx-in-page-navigation mx-vertical-flow">
6
+ <h2 class="is-excluded mx-heading--m">On this page</h2><ul><li class="mx-in-page-navigation__level--h2"><a href="#section-1"><span class="mx-icon mx-icon--chevron-right"></span><span>Section 1</span></a></li><li class="mx-in-page-navigation__level--h2"><a href="#section-2"><span class="mx-icon mx-icon--chevron-right"></span><span>Section 2</span></a></li><li class="mx-in-page-navigation__level--h2"><a href="#section-3"><span class="mx-icon mx-icon--chevron-right"></span><span>Section 3</span></a></li></ul></nav>
7
+ </mx-in-page-navigation>
8
+ <div class="js-content mx-rich-text mx-vertical-flow mx-section--l">
9
+ <h2 id="section-1">Section 1</h2>
10
+ <p>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.</p>
11
+ <h2 id="section-2">Section 2</h2>
12
+ <p>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.</p>
13
+ <h3 id="test-level-3">Test level 3</h3>
14
+ <p>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.</p>
15
+ <h2 id="section-3">Section 3</h2>
16
+ <p>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.</p>
69
17
  </div>
18
+ "
70
19
  `;
71
20
 
72
- exports[`Component/InPageNavigation InPageNavigation smoke-test 1`] = `
73
- <div class="mx-page default">
74
- <mx-in-page-navigation data-content=".js-content"
75
- data-headings
76
- >
77
- <nav class="mx-nav mx-nav--list mx-in-page-navigation mx-vertical-flow">
78
- <h2 class="mx-heading--m">
79
- On this page
80
- </h2>
81
- <ul>
82
- <li>
83
- <a href="#section-1">
84
- <span class="mx-icon mx-icon--chevron-right">
85
- </span>
86
- <span>
87
- Section 1
88
- </span>
89
- </a>
90
- </li>
91
- <li>
92
- <a href="#section-2">
93
- <span class="mx-icon mx-icon--chevron-right">
94
- </span>
95
- <span>
96
- Section 2
97
- </span>
98
- </a>
99
- </li>
100
- <li>
101
- <a href="#section-3">
102
- <span class="mx-icon mx-icon--chevron-right">
103
- </span>
104
- <span>
105
- Section 3
106
- </span>
107
- </a>
108
- </li>
109
- </ul>
110
- </nav>
111
- </mx-in-page-navigation>
112
- <div class="js-content mx-rich-text mx-vertical-flow mx-section--l">
113
- <h2 id="section-1">
114
- Section 1
115
- </h2>
116
- <p>
117
- 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.
118
- </p>
119
- <h2 id="section-2">
120
- Section 2
121
- </h2>
122
- <p>
123
- 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.
124
- </p>
125
- <h3 id="test-level-3">
126
- Test level 3
127
- </h3>
128
- <p>
129
- 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.
130
- </p>
131
- <h2 id="section-3">
132
- Section 3
133
- </h2>
134
- <p>
135
- 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.
136
- </p>
137
- </div>
21
+ exports[`In Page Navigation 1`] = `
22
+ "<mx-in-page-navigation data-content=".js-content" data-headings="" data-title="On this page">
23
+ <nav class="mx-nav mx-nav--list mx-in-page-navigation mx-vertical-flow">
24
+ <h2 class="is-excluded mx-heading--m">On this page</h2><ul>
25
+ <li>
26
+ <a href="#section-1">
27
+
28
+ <span class="mx-icon mx-icon--chevron-right"></span>
29
+
30
+ <span>Section 1</span>
31
+
32
+ </a>
33
+ </li>
34
+ <li>
35
+ <a href="#section-2">
36
+
37
+ <span class="mx-icon mx-icon--chevron-right"></span>
38
+
39
+ <span>Section 2</span>
40
+
41
+ </a>
42
+ </li>
43
+ <li>
44
+ <a href="#section-3">
45
+
46
+ <span class="mx-icon mx-icon--chevron-right"></span>
47
+
48
+ <span>Section 3</span>
49
+
50
+ </a>
51
+ </li>
52
+ </ul>
53
+ </nav>
54
+ </mx-in-page-navigation>
55
+ <div class="js-content mx-rich-text mx-vertical-flow mx-section--l">
56
+ <h2 id="section-1">Section 1</h2>
57
+ <p>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.</p>
58
+ <h2 id="section-2">Section 2</h2>
59
+ <p>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.</p>
60
+ <h3 id="test-level-3">Test level 3</h3>
61
+ <p>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.</p>
62
+ <h2 id="section-3">Section 3</h2>
63
+ <p>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.</p>
64
+ </div>
65
+ "
66
+ `;
67
+
68
+ exports[`Nested 1`] = `
69
+ "<mx-in-page-navigation data-content=".js-content" data-headings="h2,h3" data-title="On this page">
70
+ <nav class="mx-nav mx-nav--list mx-in-page-navigation mx-vertical-flow">
71
+ <h2 class="is-excluded mx-heading--m">On this page</h2><ul><li class="mx-in-page-navigation__level--h2"><a href="#section-1"><span class="mx-icon mx-icon--chevron-right"></span><span>Section 1</span></a></li><li class="mx-in-page-navigation__level--h2"><a href="#section-2"><span class="mx-icon mx-icon--chevron-right"></span><span>Section 2</span></a></li><li class="mx-in-page-navigation__level--h3"><a href="#test-level-3"><span class="mx-icon mx-icon--chevron-right"></span><span>Test level 3</span></a></li><li class="mx-in-page-navigation__level--h2"><a href="#section-3"><span class="mx-icon mx-icon--chevron-right"></span><span>Section 3</span></a></li></ul></nav>
72
+ </mx-in-page-navigation>
73
+ <div class="js-content mx-rich-text mx-vertical-flow mx-section--l">
74
+ <h2 id="section-1">Section 1</h2>
75
+ <p>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.</p>
76
+ <h2 id="section-2">Section 2</h2>
77
+ <p>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.</p>
78
+ <h3 id="test-level-3">Test level 3</h3>
79
+ <p>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.</p>
80
+ <h2 id="section-3">Section 3</h2>
81
+ <p>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.</p>
138
82
  </div>
83
+ "
139
84
  `;
140
85
 
141
- exports[`Component/InPageNavigation Nested smoke-test 1`] = `
142
- <div class="mx-page default">
143
- <mx-in-page-navigation data-content=".js-content"
144
- data-headings="h2,h3"
145
- >
146
- <nav class="mx-nav mx-nav--list mx-in-page-navigation mx-vertical-flow">
147
- <h2 class="mx-heading--m">
148
- On this page
149
- </h2>
150
- <ul>
151
- <li class="mx-in-page-navigation__level--h2">
152
- <a href="#section-1">
153
- <span class="mx-icon mx-icon--chevron-right">
154
- </span>
155
- <span>
156
- Section 1
157
- </span>
158
- </a>
159
- </li>
160
- <li class="mx-in-page-navigation__level--h2">
161
- <a href="#section-2">
162
- <span class="mx-icon mx-icon--chevron-right">
163
- </span>
164
- <span>
165
- Section 2
166
- </span>
167
- </a>
168
- </li>
169
- <li class="mx-in-page-navigation__level--h3">
170
- <a href="#test-level-3">
171
- <span class="mx-icon mx-icon--chevron-right">
172
- </span>
173
- <span>
174
- Test level 3
175
- </span>
176
- </a>
177
- </li>
178
- <li class="mx-in-page-navigation__level--h2">
179
- <a href="#section-3">
180
- <span class="mx-icon mx-icon--chevron-right">
181
- </span>
182
- <span>
183
- Section 3
184
- </span>
185
- </a>
186
- </li>
187
- </ul>
188
- </nav>
189
- </mx-in-page-navigation>
190
- <div class="js-content mx-rich-text mx-vertical-flow mx-section--l">
191
- <h2 id="section-1">
192
- Section 1
193
- </h2>
194
- <p>
195
- 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.
196
- </p>
197
- <h2 id="section-2">
198
- Section 2
199
- </h2>
200
- <p>
201
- 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.
202
- </p>
203
- <h3 id="test-level-3">
204
- Test level 3
205
- </h3>
206
- <p>
207
- 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.
208
- </p>
209
- <h2 id="section-3">
210
- Section 3
211
- </h2>
212
- <p>
213
- 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.
214
- </p>
215
- </div>
86
+ exports[`No Headings 1`] = `
87
+ "<mx-in-page-navigation data-content=".js-content" data-headings="h4" data-title="On this page">
88
+ <nav class="mx-nav mx-nav--list mx-in-page-navigation mx-vertical-flow">
89
+ </nav>
90
+ </mx-in-page-navigation>
91
+ <div class="js-content mx-rich-text mx-vertical-flow mx-section--l">
92
+ <h2 id="section-1">Section 1</h2>
93
+ <p>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.</p>
94
+ <h2 id="section-2">Section 2</h2>
95
+ <p>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.</p>
96
+ <h3 id="test-level-3">Test level 3</h3>
97
+ <p>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.</p>
98
+ <h2 id="section-3">Section 3</h2>
99
+ <p>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.</p>
216
100
  </div>
101
+ "
217
102
  `;
@@ -1,149 +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/InPageNavigation InPageNavigation smoke-test 1`] = `
4
- <div class="mx-grid--sidebar">
5
- <aside>
6
- <nav class="mx-in-page-navigation mx-nav mx-nav--list">
7
- <h2 class="mx-text--embellished-headline"
8
- id="on-this-page"
9
- >
10
- On this page
11
- </h2>
12
- <ul>
13
- <li class="mx-in-page-navigation__level--h2">
14
- <a href="#section-1"
15
- class="mx-icon mx-icon--chevron-right"
16
- >
17
- Section 1
18
- </a>
19
- </li>
20
- <li class="mx-in-page-navigation__level--h2">
21
- <a href="#anchor-test"
22
- class="mx-icon mx-icon--chevron-right"
23
- >
24
- Section 2
25
- </a>
26
- </li>
27
- <li class="mx-in-page-navigation__level--h2">
28
- <a href="#test-level-3"
29
- class="mx-icon mx-icon--chevron-right"
30
- >
31
- Test level 3
32
- </a>
33
- </li>
34
- <li class="mx-in-page-navigation__level--h2">
35
- <a href="#section-3"
36
- class="mx-icon mx-icon--chevron-right"
37
- >
38
- Section 3
39
- </a>
40
- </li>
41
- <li class="mx-in-page-navigation__level--h2">
42
- <a href="#section-4"
43
- class="mx-icon mx-icon--chevron-right"
44
- >
45
- Section 4
46
- </a>
47
- </li>
48
- <li class="mx-in-page-navigation__level--h2">
49
- <a href="#section-5"
50
- class="mx-icon mx-icon--chevron-right"
51
- >
52
- Section 5
53
- </a>
54
- </li>
55
- <li class="mx-in-page-navigation__level--h2">
56
- <a href="#test-level-6"
57
- class="mx-icon mx-icon--chevron-right"
58
- >
59
- Test level 6
60
- </a>
61
- </li>
62
- <li class="mx-in-page-navigation__level--h2">
63
- <a href="#section-7"
64
- class="mx-icon mx-icon--chevron-right"
65
- >
66
- Section 7
67
- </a>
68
- </li>
69
- </ul>
70
- </nav>
71
- </aside>
72
- <section>
73
- <div class="mx-vertical-flow">
74
- <h2 class
75
- level="h2"
76
- id="section-1"
77
- >
78
- Section 1
79
- </h2>
80
- <p class>
81
- 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.
82
- </p>
83
- <h2 class
84
- id="anchor-test"
85
- level="h2"
86
- >
87
- Section 2
88
- </h2>
89
- <p class>
90
- 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.
91
- </p>
92
- <h2 class
93
- level="h3"
94
- id="test-level-3"
95
- >
96
- Test level 3
97
- </h2>
98
- <p class>
99
- 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.
100
- </p>
101
- <h2 class
102
- level="h2"
103
- id="section-3"
104
- >
105
- Section 3
106
- </h2>
107
- <p class>
108
- 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.
109
- </p>
110
- <h2 class
111
- level="h2"
112
- id="section-4"
113
- >
114
- Section 4
115
- </h2>
116
- <p class>
117
- 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.
118
- </p>
119
- <h2 class
120
- level="h2"
121
- id="section-5"
122
- >
123
- Section 5
124
- </h2>
125
- <p class>
126
- 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.
127
- </p>
128
- <h2 class
129
- level="h3"
130
- id="test-level-6"
131
- >
132
- Test level 6
133
- </h2>
134
- <p class>
135
- 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.
136
- </p>
137
- <h2 class
138
- level="h2"
139
- id="section-7"
140
- >
141
- Section 7
142
- </h2>
143
- <p class>
144
- 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.
145
- </p>
146
- </div>
147
- </section>
148
- </div>
149
- `;
3
+ exports[`In Page Navigation 1`] = `"<div class="mx-grid--sidebar"><aside><nav class="mx-in-page-navigation mx-nav mx-nav--list"><h2 class="mx-text--embellished-headline" id="on-this-page">On this page</h2><ul><li class="mx-in-page-navigation__level--h2"><a href="#section-1" class="mx-icon mx-icon--chevron-right">Section 1</a></li><li class="mx-in-page-navigation__level--h2"><a href="#anchor-test" class="mx-icon mx-icon--chevron-right">Section 2</a></li><li class="mx-in-page-navigation__level--h2"><a href="#test-level-3" class="mx-icon mx-icon--chevron-right">Test level 3</a></li><li class="mx-in-page-navigation__level--h2"><a href="#section-3" class="mx-icon mx-icon--chevron-right">Section 3</a></li><li class="mx-in-page-navigation__level--h2"><a href="#section-4" class="mx-icon mx-icon--chevron-right">Section 4</a></li><li class="mx-in-page-navigation__level--h2"><a href="#section-5" class="mx-icon mx-icon--chevron-right">Section 5</a></li><li class="mx-in-page-navigation__level--h2"><a href="#test-level-6" class="mx-icon mx-icon--chevron-right">Test level 6</a></li><li class="mx-in-page-navigation__level--h2"><a href="#section-7" class="mx-icon mx-icon--chevron-right">Section 7</a></li></ul></nav></aside><section><div class="mx-vertical-flow"><h2 class="" level="h2" id="section-1">Section 1</h2><p class="">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.</p><h2 class="" id="anchor-test" level="h2">Section 2</h2><p class="">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.</p><h2 class="" level="h3" id="test-level-3">Test level 3</h2><p class="">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.</p><h2 class="" level="h2" id="section-3">Section 3</h2><p class="">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.</p><h2 class="" level="h2" id="section-4">Section 4</h2><p class="">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.</p><h2 class="" level="h2" id="section-5">Section 5</h2><p class="">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.</p><h2 class="" level="h3" id="test-level-6">Test level 6</h2><p class="">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.</p><h2 class="" level="h2" id="section-7">Section 7</h2><p class="">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.</p></div></section></div>"`;
@@ -10,6 +10,13 @@
10
10
 
11
11
  @layer design-system.components {
12
12
  .mx-in-page-navigation {
13
+ --link-colour: var(--colour-link);
14
+ --nav-underline: underline;
15
+
16
+ &:has(ul, ol) {
17
+ margin-block-end: var(--flow-gap, var(--gap));
18
+ }
19
+
13
20
  & .mx-in-page-navigation__level--h3 {
14
21
  padding-inline-start: var(--indent, var(--spacing-s));
15
22
  }
@@ -5,13 +5,14 @@
5
5
  'mx-vertical-flow'
6
6
  ] %}
7
7
  {% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
8
- <mx-in-page-navigation data-content=".js-content" data-headings="{{ levels|join(",") }}">
8
+ <mx-in-page-navigation data-content=".js-content" data-headings="{{ levels|join(",") }}" data-title="{{ title|striptags|trim }}">
9
9
  <nav{{ attributes }}>
10
- {{ title }}
10
+ {% if items %}
11
11
  <ul>
12
12
  {% for item in items %}
13
13
  <li>{{ item }}</li>
14
14
  {% endfor %}
15
15
  </ul>
16
+ {% endif %}
16
17
  </nav>
17
18
  </mx-in-page-navigation>
@@ -1,9 +1,10 @@
1
1
  import { Meta, StoryObj } from "@storybook/react-vite"
2
2
  import Component, { LinkListItem } from "./LinkList"
3
3
  import "./link-list.css"
4
+ import { Page } from "../../../.storybook-react/decorators"
4
5
 
5
6
  const meta: Meta<typeof Component> = {
6
- title: "Navigation/Link List",
7
+ decorators: [Page],
7
8
  tags: ["autodocs"],
8
9
  component: Component,
9
10
  args: {