@pnx-mixtape/mxds 0.0.6 → 0.0.8

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 (353) hide show
  1. package/dist/build/base.css +16 -19
  2. package/dist/build/breadcrumb.css +10 -6
  3. package/dist/build/button.css +2 -2
  4. package/dist/build/card.css +69 -56
  5. package/dist/build/chunks/drop-menu.entry-BC6x9vst.js +132 -0
  6. package/dist/build/chunks/drop-menu.entry-BC6x9vst.js.map +1 -0
  7. package/dist/build/content-block.css +24 -11
  8. package/dist/build/drop-menu.css +9 -9
  9. package/dist/build/drop-menu.entry.js +1 -128
  10. package/dist/build/drop-menu.entry.js.map +1 -1
  11. package/dist/build/footer.css +118 -28
  12. package/dist/build/form.css +142 -214
  13. package/dist/build/global-alert.css +3 -3
  14. package/dist/build/header.css +37 -30
  15. package/dist/build/header.entry.js +6 -1
  16. package/dist/build/header.entry.js.map +1 -1
  17. package/dist/build/in-page-navigation.css +3 -3
  18. package/dist/build/in-page-navigation.entry.js +2 -2
  19. package/dist/build/in-page-navigation.entry.js.map +1 -1
  20. package/dist/build/list-item.css +114 -0
  21. package/dist/build/masthead.css +7 -16
  22. package/dist/build/navigation.css +134 -113
  23. package/dist/build/navigation.entry.js +6 -5
  24. package/dist/build/navigation.entry.js.map +1 -1
  25. package/dist/build/page.css +14 -118
  26. package/dist/build/pagination.css +26 -19
  27. package/dist/build/side-navigation.css +88 -0
  28. package/dist/build/sidebar.css +15 -15
  29. package/dist/build/social-links.css +20 -0
  30. package/dist/build/steps.css +118 -0
  31. package/dist/build/steps.entry.js +2 -0
  32. package/dist/build/steps.entry.js.map +1 -0
  33. package/dist/build/tabs.css +22 -19
  34. package/dist/build/tabs.entry.js +87 -46
  35. package/dist/build/tabs.entry.js.map +1 -1
  36. package/dist/build/utilities.css +6 -3
  37. package/package.json +2 -2
  38. package/src/Atom/Button/Button.stories.ts +4 -3
  39. package/src/Atom/Button/__snapshots__/Button.stories.tsx.snap +2 -2
  40. package/src/Atom/Button/_buttons.css +1 -1
  41. package/src/Atom/Button/button.twig +1 -1
  42. package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +1 -1
  43. package/src/Atom/Heading/heading.twig +4 -1
  44. package/src/Atom/Icon/__snapshots__/Icon.stories.tsx.snap +3 -3
  45. package/src/Atom/Icon/icon.twig +1 -1
  46. package/src/Atom/Link/Link.stories.ts +8 -7
  47. package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +5 -9
  48. package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +3 -3
  49. package/src/Atom/Link/_links.css +12 -2
  50. package/src/Atom/Link/link.twig +6 -4
  51. package/src/Atom/Media/Media.stories.ts +9 -9
  52. package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +1 -1
  53. package/src/Atom/Media/__snapshots__/Media.stories.tsx.snap +1 -1
  54. package/src/Atom/Media/media.twig +6 -2
  55. package/src/Atom/_generic.css +0 -13
  56. package/src/Component/Accordion/Accordion.stories.ts +9 -7
  57. package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +2 -2
  58. package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +4 -4
  59. package/src/Component/Accordion/accordion-item.twig +1 -1
  60. package/src/Component/Accordion/accordion.twig +3 -1
  61. package/src/Component/Breadcrumb/Breadcrumb.stories.ts +23 -5
  62. package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +15 -8
  63. package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +6 -6
  64. package/src/Component/Breadcrumb/breadcrumb.css +7 -3
  65. package/src/Component/Breadcrumb/breadcrumb.twig +14 -12
  66. package/src/Component/Callout/Callout.stories.ts +5 -4
  67. package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +1 -1
  68. package/src/Component/Callout/callout.twig +1 -1
  69. package/src/Component/Card/Card.stories.ts +47 -20
  70. package/src/Component/Card/Card.stories.tsx +5 -4
  71. package/src/Component/Card/Card.tsx +7 -7
  72. package/src/Component/Card/__snapshots__/Card.stories.ts.snap +123 -49
  73. package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +18 -18
  74. package/src/Component/Card/card.css +57 -43
  75. package/src/Component/Card/card.twig +13 -13
  76. package/src/Component/ContentBlock/ContentBlock.stories.ts +73 -6
  77. package/src/Component/ContentBlock/ContentBlock.stories.tsx +19 -10
  78. package/src/Component/ContentBlock/ContentBlock.tsx +25 -17
  79. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +137 -5
  80. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.tsx.snap +21 -14
  81. package/src/Component/ContentBlock/content-block.css +21 -10
  82. package/src/Component/ContentBlock/content-block.twig +21 -11
  83. package/src/Component/DropMenu/Components/DropMenuItem.tsx +1 -1
  84. package/src/Component/DropMenu/DropMenu.stories.ts +1 -1
  85. package/src/Component/DropMenu/DropMenu.tsx +6 -6
  86. package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +2 -2
  87. package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +2 -2
  88. package/src/Component/DropMenu/drop-menu.css +2 -2
  89. package/src/Component/DropMenu/drop-menu.twig +2 -2
  90. package/src/Component/GlobalAlert/GlobalAlert.stories.ts +5 -6
  91. package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +7 -7
  92. package/src/Component/GlobalAlert/global-alert.css +1 -1
  93. package/src/Component/GlobalAlert/global-alert.twig +1 -1
  94. package/src/Component/HeroBanner/HeroBanner.stories.ts +17 -12
  95. package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +11 -11
  96. package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.tsx.snap +9 -9
  97. package/src/Component/HeroBanner/hero-banner.twig +2 -2
  98. package/src/Component/InPageAlert/InPageAlert.stories.ts +4 -3
  99. package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +1 -3
  100. package/src/Component/InPageAlert/in-page-alert.twig +1 -1
  101. package/src/Component/InPageNavigation/Elements/InPageNavigation.ts +2 -2
  102. package/src/Component/InPageNavigation/InPageNavigation.stories.ts +30 -7
  103. package/src/Component/InPageNavigation/InPageNavigation.tsx +4 -4
  104. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +103 -5
  105. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +21 -21
  106. package/src/Component/InPageNavigation/in-page-navigation.css +3 -3
  107. package/src/Component/InPageNavigation/in-page-navigation.twig +13 -17
  108. package/src/Component/InPageNavigation/twig/{in-page-navigation-content-example.twig → content-example.twig} +2 -0
  109. package/src/Component/InPageNavigation/twig/in-page-navigation-story.twig +2 -0
  110. package/src/Component/LinkList/__snapshots__/LinkList.stories.tsx.snap +8 -8
  111. package/src/Component/LinkList/link-list.twig +1 -1
  112. package/src/Component/ListItem/ListItem.stories.ts +105 -0
  113. package/src/Component/ListItem/{Teaser.stories.tsx → ListItem.stories.tsx} +4 -5
  114. package/src/Component/ListItem/ListItem.tsx +55 -0
  115. package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +184 -0
  116. package/src/Component/ListItem/__snapshots__/ListItem.stories.tsx.snap +23 -0
  117. package/src/Component/ListItem/list-item.css +109 -0
  118. package/src/Component/ListItem/list-item.twig +32 -0
  119. package/src/Component/Navigation/Components/DropdownLevel.tsx +11 -6
  120. package/src/Component/Navigation/Dropdown.tsx +2 -2
  121. package/src/Component/Navigation/Elements/Navigation.ts +6 -5
  122. package/src/Component/Navigation/Navigation.stories.ts +261 -5
  123. package/src/Component/Navigation/Navigation.tsx +2 -2
  124. package/src/Component/Navigation/__snapshots__/Dropdown.stories.tsx.snap +4 -4
  125. package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +294 -7
  126. package/src/Component/Navigation/__snapshots__/Navigation.stories.tsx.snap +2 -2
  127. package/src/Component/Navigation/_navigation-collapsible.css +22 -12
  128. package/src/Component/Navigation/_navigation-dropdown.css +8 -8
  129. package/src/Component/Navigation/_navigation-mega.css +4 -4
  130. package/src/Component/Navigation/_navigation.css +9 -6
  131. package/src/Component/Navigation/menu.twig +42 -0
  132. package/src/Component/Navigation/navigation.css +1 -1
  133. package/src/Component/Navigation/navigation.twig +23 -9
  134. package/src/Component/Pagination/Components/PaginationItem.tsx +4 -4
  135. package/src/Component/Pagination/Pagination.stories.ts +55 -6
  136. package/src/Component/Pagination/Pagination.tsx +2 -2
  137. package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +36 -33
  138. package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +11 -11
  139. package/src/Component/Pagination/pagination-item.twig +7 -0
  140. package/src/Component/Pagination/pagination.css +12 -9
  141. package/src/Component/Pagination/pagination.twig +12 -37
  142. package/src/Component/SideNavigation/SideNavigation.stories.ts +97 -0
  143. package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +86 -0
  144. package/src/Component/SideNavigation/side-navigation.css +78 -0
  145. package/src/Component/SideNavigation/side-navigation.twig +35 -0
  146. package/src/Component/SideNavigation/twig/side-navigation-story.twig +7 -0
  147. package/src/Component/SocialLinks/SocialLinks.stories.ts +58 -0
  148. package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +32 -0
  149. package/src/Component/SocialLinks/social-links.css +17 -0
  150. package/src/Component/SocialLinks/social-links.twig +6 -0
  151. package/src/Component/SocialShare/__snapshots__/SocialShare.stories.tsx.snap +3 -3
  152. package/src/Component/Steps/Steps.stories.ts +88 -0
  153. package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +111 -0
  154. package/src/Component/Steps/step-item.twig +11 -0
  155. package/src/Component/Steps/steps.css +99 -0
  156. package/src/Component/Steps/steps.entry.js +0 -0
  157. package/src/Component/Steps/steps.twig +18 -0
  158. package/src/Component/Sticky/Sticky.stories.ts +3 -0
  159. package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +7 -8
  160. package/src/Component/Sticky/sticky.twig +2 -20
  161. package/src/Component/Tabs/Components/Tab.tsx +1 -2
  162. package/src/Component/Tabs/Components/TabDropMenu.tsx +1 -1
  163. package/src/Component/Tabs/Components/TabList.tsx +1 -1
  164. package/src/Component/Tabs/Components/TabPanel.tsx +2 -2
  165. package/src/Component/Tabs/Elements/Tabs.ts +98 -49
  166. package/src/Component/Tabs/Tabs.stories.ts +45 -8
  167. package/src/Component/Tabs/Tabs.stories.tsx +3 -3
  168. package/src/Component/Tabs/Tabs.tsx +2 -2
  169. package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +46 -92
  170. package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +11 -14
  171. package/src/Component/Tabs/tab-item.twig +11 -0
  172. package/src/Component/Tabs/tabs.css +20 -17
  173. package/src/Component/Tabs/tabs.twig +10 -46
  174. package/src/Component/Tag/__snapshots__/Tag.stories.tsx.snap +1 -1
  175. package/src/Component/Tag/tags.twig +1 -1
  176. package/src/Component/Tile/__snapshots__/Tile.stories.tsx.snap +4 -4
  177. package/src/Form/Checkbox/Checkbox.stories.ts +39 -0
  178. package/src/Form/Checkbox/FormCheckbox.tsx +3 -3
  179. package/src/Form/Checkbox/__snapshots__/Checkbox.stories.ts.snap +28 -0
  180. package/src/Form/Checkbox/input-checkbox.twig +27 -24
  181. package/src/Form/Description/Description.stories.ts +10 -7
  182. package/src/Form/Description/FormDescription.tsx +3 -3
  183. package/src/Form/Description/FormStatus.stories.ts +31 -0
  184. package/src/Form/Description/__snapshots__/Description.stories.ts.snap +2 -9
  185. package/src/Form/Description/__snapshots__/FormDescription.stories.tsx.snap +1 -1
  186. package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +19 -0
  187. package/src/Form/Description/form-description.twig +4 -3
  188. package/src/Form/Description/form-status.twig +10 -0
  189. package/src/Form/Form/FormTitle.tsx +1 -1
  190. package/src/Form/Form/__snapshots__/FormTitle.stories.tsx.snap +1 -1
  191. package/src/Form/Form/form.twig +14 -0
  192. package/src/Form/Form/twig/form-example.twig +4 -4
  193. package/src/Form/FormItem/FormItem.stories.ts +119 -0
  194. package/src/Form/{Item → FormItem}/FormItem.tsx +1 -1
  195. package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +133 -0
  196. package/src/Form/{Item → FormItem}/__snapshots__/FormItem.stories.tsx.snap +24 -16
  197. package/src/Form/FormItem/form-item.twig +22 -0
  198. package/src/Form/Label/FormLabel.tsx +1 -1
  199. package/src/Form/Label/Label.stories.ts +16 -19
  200. package/src/Form/Label/__snapshots__/FormLabel.stories.tsx.snap +6 -2
  201. package/src/Form/Label/__snapshots__/Label.stories.ts.snap +11 -9
  202. package/src/Form/Label/label.twig +13 -2
  203. package/src/Form/Radio/FormRadio.tsx +2 -2
  204. package/src/Form/Radio/Radio.stories.ts +72 -0
  205. package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +58 -0
  206. package/src/Form/Radio/input-radio.twig +18 -24
  207. package/src/Form/Search/Search.stories.ts +50 -0
  208. package/src/Form/Search/__snapshots__/Search.stories.ts.snap +26 -0
  209. package/src/Form/Search/search-form.twig +11 -0
  210. package/src/Form/Select/FormSelect.tsx +1 -1
  211. package/src/Form/Select/Select.stories.ts +24 -31
  212. package/src/Form/Select/__snapshots__/FormSelect.stories.tsx.snap +1 -1
  213. package/src/Form/Select/__snapshots__/Select.stories.ts.snap +16 -144
  214. package/src/Form/Select/input-select.twig +25 -0
  215. package/src/Form/TextInput/FormText.tsx +4 -7
  216. package/src/Form/TextInput/TextInput.stories.ts +23 -41
  217. package/src/Form/TextInput/__snapshots__/FormText.stories.tsx.snap +1 -1
  218. package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +10 -14
  219. package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +20 -96
  220. package/src/Form/TextInput/input-divider.twig +7 -8
  221. package/src/Form/TextInput/input-text-icon.twig +5 -5
  222. package/src/Form/TextInput/input-text.twig +31 -5
  223. package/src/Form/Textarea/FormTextarea.tsx +4 -7
  224. package/src/Form/Textarea/Textarea.stories.ts +11 -8
  225. package/src/Form/Textarea/__snapshots__/FormTextarea.stories.tsx.snap +1 -1
  226. package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +8 -16
  227. package/src/Form/Textarea/input-textarea.twig +21 -0
  228. package/src/Form/form.css +103 -103
  229. package/src/Layout/Footer/Footer.stories.ts +197 -5
  230. package/src/Layout/Footer/Footer.stories.tsx +5 -9
  231. package/src/Layout/Footer/Footer.tsx +21 -19
  232. package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +296 -78
  233. package/src/Layout/Footer/__snapshots__/Footer.stories.tsx.snap +52 -58
  234. package/src/Layout/Footer/footer.css +102 -25
  235. package/src/Layout/Footer/footer.twig +29 -23
  236. package/src/Layout/Grid/Grid.stories.ts +15 -14
  237. package/src/Layout/Grid/Grid.stories.tsx +14 -14
  238. package/src/Layout/Grid/Grid.tsx +10 -10
  239. package/src/Layout/Grid/__snapshots__/Grid.stories.tsx.snap +10 -10
  240. package/src/Layout/Grid/grid-item.twig +1 -1
  241. package/src/Layout/Grid/grid.twig +7 -4
  242. package/src/Layout/Header/Components/GlobalToggle.tsx +0 -1
  243. package/src/Layout/Header/Components/Logo.tsx +1 -1
  244. package/src/Layout/Header/Elements/GlobalToggle.ts +6 -1
  245. package/src/Layout/Header/Header.stories.ts +242 -7
  246. package/src/Layout/Header/Header.tsx +22 -19
  247. package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +464 -100
  248. package/src/Layout/Header/__snapshots__/Header.stories.tsx.snap +50 -46
  249. package/src/Layout/Header/_header.css +28 -21
  250. package/src/Layout/Header/_toggles.css +2 -2
  251. package/src/Layout/Header/header-stacked.twig +49 -0
  252. package/src/Layout/Header/header.twig +42 -21
  253. package/src/Layout/Header/twig/logo.twig +2 -2
  254. package/src/Layout/Masthead/Masthead.stories.ts +42 -6
  255. package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +44 -27
  256. package/src/Layout/Masthead/masthead.css +5 -14
  257. package/src/Layout/Masthead/masthead.twig +25 -7
  258. package/src/Layout/Page/Page.tsx +2 -2
  259. package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +61 -59
  260. package/src/Layout/Page/page.css +19 -84
  261. package/src/Layout/Page/page.twig +8 -3
  262. package/src/Layout/Section/Section.stories.ts +12 -9
  263. package/src/Layout/Section/Section.stories.tsx +5 -9
  264. package/src/Layout/Section/Section.tsx +6 -10
  265. package/src/Layout/Section/SectionGrid.stories.tsx +5 -11
  266. package/src/Layout/Section/SectionGrid.tsx +8 -13
  267. package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +12 -12
  268. package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +17 -17
  269. package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +18 -18
  270. package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +4 -4
  271. package/src/Layout/Section/__snapshots__/Section.stories.tsx.snap +6 -6
  272. package/src/Layout/Section/__snapshots__/SectionGrid.stories.tsx.snap +6 -6
  273. package/src/Layout/Section/section.twig +1 -1
  274. package/src/Layout/Section/twig/section-background.twig +5 -5
  275. package/src/Layout/Section/twig/sections-breakout.twig +16 -16
  276. package/src/Layout/Section/twig/sections-flow.twig +17 -17
  277. package/src/Layout/Section/twig/sections-stacked.twig +8 -16
  278. package/src/Layout/Sidebar/Sidebar.stories.ts +25 -3
  279. package/src/Layout/Sidebar/Sidebar.stories.tsx +1 -1
  280. package/src/Layout/Sidebar/Sidebar.tsx +4 -4
  281. package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +39 -16
  282. package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.tsx.snap +6 -6
  283. package/src/Layout/Sidebar/sidebar.css +6 -6
  284. package/src/Layout/Sidebar/sidebar.twig +25 -16
  285. package/src/Utility/utilities.css +5 -2
  286. package/src/react.ts +1 -2
  287. package/dist/build/footer-menu.css +0 -32
  288. package/dist/build/nav-list.css +0 -26
  289. package/src/Atom/Button/twig/story-button.twig +0 -11
  290. package/src/Atom/Link/twig/story-link.twig +0 -11
  291. package/src/Atom/Media/twig/story-media.twig +0 -11
  292. package/src/Atom/NavList/NavList.stories.ts +0 -15
  293. package/src/Atom/NavList/__snapshots__/NavList.stories.ts.snap +0 -43
  294. package/src/Atom/NavList/nav-list.css +0 -23
  295. package/src/Atom/NavList/nav-list.twig +0 -25
  296. package/src/Component/Accordion/twig/accordion-story.twig +0 -13
  297. package/src/Component/Author/Author.stories.tsx +0 -18
  298. package/src/Component/Author/Author.tsx +0 -30
  299. package/src/Component/Author/__snapshots__/Author.stories.tsx.snap +0 -21
  300. package/src/Component/Callout/twig/callout-story.twig +0 -11
  301. package/src/Component/Card/twig/old-card.twig +0 -17
  302. package/src/Component/Card/twig/story-card.twig +0 -29
  303. package/src/Component/ContentBlock/twig/content-block-example.twig +0 -7
  304. package/src/Component/GlobalAlert/twig/story-global-alert.twig +0 -14
  305. package/src/Component/HeroBanner/twig/hero-banner-story.twig +0 -19
  306. package/src/Component/InPageAlert/twig/story-in-page-alert.twig +0 -11
  307. package/src/Component/InPageNavigation/twig/in-page-navigation-menu-example.twig +0 -6
  308. package/src/Component/ListItem/Teaser.tsx +0 -54
  309. package/src/Component/ListItem/__snapshots__/Teaser.stories.tsx.snap +0 -32
  310. package/src/Component/Navigation/Collapsible.stories.ts +0 -16
  311. package/src/Component/Navigation/Dropdown.stories.ts +0 -16
  312. package/src/Component/Navigation/MegaNav.stories.ts +0 -16
  313. package/src/Component/Navigation/__snapshots__/Collapsible.stories.ts.snap +0 -123
  314. package/src/Component/Navigation/__snapshots__/Dropdown.stories.ts.snap +0 -125
  315. package/src/Component/Navigation/navigation-collapsible.twig +0 -7
  316. package/src/Component/Navigation/navigation-dropdown.twig +0 -7
  317. package/src/Component/Navigation/navigation-mega-nav.twig +0 -7
  318. package/src/Component/Navigation/twig/navigation-subnav-list.twig +0 -108
  319. package/src/Component/Sticky/twig/sticky-example.twig +0 -4
  320. package/src/Component/Tabs/twig/panel.twig +0 -5
  321. package/src/Component/Tabs/twig/tab-list.twig +0 -26
  322. package/src/Form/Checkbox/Checkboxes.stories.ts +0 -47
  323. package/src/Form/Checkbox/__snapshots__/Checkboxes.stories.ts.snap +0 -115
  324. package/src/Form/Checkbox/input-checkbox-single.twig +0 -6
  325. package/src/Form/Description/ErrorMessage.stories.ts +0 -16
  326. package/src/Form/Description/__snapshots__/ErrorMessage.stories.ts.snap +0 -20
  327. package/src/Form/Description/form-error.twig +0 -5
  328. package/src/Form/Fieldset/Fieldset.stories.ts +0 -34
  329. package/src/Form/Fieldset/__snapshots__/Fieldset.stories.ts.snap +0 -23
  330. package/src/Form/Fieldset/fieldset.twig +0 -4
  331. package/src/Form/Radio/Radios.stories.ts +0 -47
  332. package/src/Form/Radio/__snapshots__/Radios.stories.ts.snap +0 -125
  333. package/src/Form/Search/TextInputWithInlineButton.stories.ts +0 -16
  334. package/src/Form/Search/__snapshots__/TextInputWithInlineButton.stories.ts.snap +0 -26
  335. package/src/Form/Search/input-text-inline-submit.twig +0 -8
  336. package/src/Form/Select/select.twig +0 -16
  337. package/src/Form/TextInput/TextInputWithIcon.stories.ts +0 -40
  338. package/src/Form/TextInput/__snapshots__/TextInputWithIcon.stories.ts.snap +0 -67
  339. package/src/Form/Textarea/textarea.twig +0 -5
  340. package/src/Layout/Footer/FooterMenu/FooterMenu.stories.ts +0 -15
  341. package/src/Layout/Footer/FooterMenu/__snapshots__/FooterMenu.stories.ts.snap +0 -101
  342. package/src/Layout/Footer/FooterMenu/footer-menu.css +0 -29
  343. package/src/Layout/Footer/FooterMenu/footer-menu.twig +0 -5
  344. package/src/Layout/Grid/twig/container-grid-dynamic.twig +0 -47
  345. package/src/Layout/Grid/twig/container-grid.twig +0 -46
  346. package/src/Layout/Grid/twig/grid-story.twig +0 -6
  347. package/src/Layout/Grid/twig/old-grid.twig +0 -46
  348. package/src/Layout/Header/Stacked/Stacked.stories.ts +0 -16
  349. package/src/Layout/Header/Stacked/__snapshots__/Stacked.stories.ts.snap +0 -353
  350. package/src/Layout/Header/Stacked/header-stacked.twig +0 -33
  351. package/src/Layout/Header/twig/global-header.twig +0 -4
  352. package/src/Layout/Section/twig/section-story.twig +0 -14
  353. /package/src/Form/{Item → FormItem}/FormItem.stories.tsx +0 -0
@@ -0,0 +1,58 @@
1
+ import { Meta, StoryObj } from "@storybook/html"
2
+ import Component from "./social-links.twig"
3
+ import Heading from "../../Atom/Heading/heading.twig"
4
+ import Link from "../../Atom/Link/link.twig"
5
+ import Icon from "../../Atom/Icon/icon.twig"
6
+ import "./social-links.css"
7
+ import {
8
+ HeadingTypes,
9
+ IconSizeModifier,
10
+ SocialLinks as SocialLinksType,
11
+ } from "@pnx-mixtape/ids-shape"
12
+ import { Icons } from "../../enums"
13
+
14
+ const meta: Meta<SocialLinksType> = {
15
+ tags: ["autodocs", "ids-mvp"],
16
+ component: Component,
17
+ args: {
18
+ title: Heading({
19
+ title: "Follow us",
20
+ as: HeadingTypes.TWO,
21
+ modifiers: [HeadingTypes.FOUR],
22
+ }),
23
+ items: [
24
+ Link({
25
+ title: "Facebook",
26
+ href: "#",
27
+ iconOnly: true,
28
+ iconStart: Icon({
29
+ icon: Icons.FACEBOOK,
30
+ size: IconSizeModifier.MEDIUM,
31
+ }),
32
+ }),
33
+ Link({
34
+ title: "Instagram",
35
+ href: "#",
36
+ iconOnly: true,
37
+ iconStart: Icon({
38
+ icon: Icons.INSTAGRAM,
39
+ size: IconSizeModifier.MEDIUM,
40
+ }),
41
+ }),
42
+ Link({
43
+ title: "LinkedIn",
44
+ href: "#",
45
+ iconOnly: true,
46
+ iconStart: Icon({
47
+ icon: Icons.LINKEDIN,
48
+ size: IconSizeModifier.MEDIUM,
49
+ }),
50
+ }),
51
+ ],
52
+ },
53
+ }
54
+
55
+ export default meta
56
+ type Story = StoryObj<SocialLinksType>
57
+
58
+ export const SocialLinks: Story = {}
@@ -0,0 +1,32 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Component/SocialLinks SocialLinks smoke-test 1`] = `
4
+ <nav class="mx-social-links"
5
+ aria-label="Social media links"
6
+ >
7
+ <h2 class=" mx-heading--m">
8
+ Follow us
9
+ </h2>
10
+ <a href="#">
11
+ <span class="mx-icon mx-icon--facebook mx-icon--size-md">
12
+ </span>
13
+ <span class="sr-only">
14
+ Facebook
15
+ </span>
16
+ </a>
17
+ <a href="#">
18
+ <span class="mx-icon mx-icon--instagram mx-icon--size-md">
19
+ </span>
20
+ <span class="sr-only">
21
+ Instagram
22
+ </span>
23
+ </a>
24
+ <a href="#">
25
+ <span class="mx-icon mx-icon--linkedin mx-icon--size-md">
26
+ </span>
27
+ <span class="sr-only">
28
+ LinkedIn
29
+ </span>
30
+ </a>
31
+ </nav>
32
+ `;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Social links
3
+ */
4
+
5
+ @layer design-system.components {
6
+ .mx-social-links {
7
+ display: flex;
8
+ flex-flow: row wrap;
9
+ align-items: center;
10
+ gap: var(--nav-gap, var(--spacing-s));
11
+ color: var(--foreground, inherit);
12
+
13
+ & a {
14
+ color: inherit;
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,6 @@
1
+ <nav class="mx-social-links" aria-label="Social media links">
2
+ {{ title }}
3
+ {% for item in items %}
4
+ {{ item }}
5
+ {% endfor %}
6
+ </nav>
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports[`Elements/Social Share Facebook smoke-test 1`] = `
4
4
  <a href="https://www.facebook.com/sharer/sharer.php?url=https://previousnext.com.au"
5
- class="button button--dark button--icon-only icon icon--facebook"
5
+ class="mx-button mx-button--dark mx-button--icon-only mx-icon mx-icon--facebook"
6
6
  >
7
7
  Share on facebook
8
8
  </a>
@@ -10,7 +10,7 @@ exports[`Elements/Social Share Facebook smoke-test 1`] = `
10
10
 
11
11
  exports[`Elements/Social Share LinkedIn smoke-test 1`] = `
12
12
  <a href="https://www.linkedin.com/sharing/share-offsite//?url=https://previousnext.com.au"
13
- class="button button--dark button--icon-only icon icon--linkedin"
13
+ class="mx-button mx-button--dark mx-button--icon-only mx-icon mx-icon--linkedin"
14
14
  >
15
15
  Share on linkedin
16
16
  </a>
@@ -18,7 +18,7 @@ exports[`Elements/Social Share LinkedIn smoke-test 1`] = `
18
18
 
19
19
  exports[`Elements/Social Share Twitter smoke-test 1`] = `
20
20
  <a href="https://twitter.com/intent/tweet/?url=https://previousnext.com.au&amp;text=Hello%20World!!"
21
- class="button button--dark button--icon-only icon icon--twitter"
21
+ class="mx-button mx-button--dark mx-button--icon-only mx-icon mx-icon--twitter"
22
22
  >
23
23
  Share on twitter
24
24
  </a>
@@ -0,0 +1,88 @@
1
+ import { Meta, StoryObj } from "@storybook/html"
2
+ import Component from "./steps.twig"
3
+ import StepItem from "./step-item.twig"
4
+ import "./steps.css"
5
+ import { Steps as StepsType, StepsModifier } from "@pnx-mixtape/ids-shape"
6
+
7
+ const meta: Meta<StepsType> = {
8
+ tags: ["autodocs", "ids-mvp"],
9
+ component: Component,
10
+ argTypes: {
11
+ modifiers: {
12
+ options: Object.values(StepsModifier),
13
+ control: "multi-select",
14
+ },
15
+ fill: { control: "boolean" },
16
+ counters: { control: "boolean" },
17
+ },
18
+ args: {
19
+ items: [
20
+ StepItem({
21
+ content:
22
+ "<h2>Funk</h2><p>Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.</p>",
23
+ }),
24
+ StepItem({
25
+ content:
26
+ "<h3>Soul</h3><p>Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.</p>",
27
+ }),
28
+ StepItem({
29
+ content:
30
+ "<h4>Motown</h4><p>Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.</p>",
31
+ }),
32
+ ],
33
+ },
34
+ }
35
+
36
+ export default meta
37
+ type Story = StoryObj<StepsType>
38
+
39
+ export const Steps: Story = {}
40
+
41
+ export const Counters: Story = {
42
+ args: {
43
+ counters: true,
44
+ },
45
+ }
46
+ export const Progress: Story = {
47
+ args: {
48
+ modifiers: [StepsModifier.SUPPLEMENTARY],
49
+ items: [
50
+ StepItem({
51
+ status: true,
52
+ content:
53
+ "Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.",
54
+ }),
55
+ StepItem({
56
+ content:
57
+ "Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.",
58
+ }),
59
+ StepItem({
60
+ content:
61
+ "Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.",
62
+ }),
63
+ ],
64
+ },
65
+ }
66
+
67
+ export const ProgressCounters: Story = {
68
+ args: {
69
+ modifiers: [StepsModifier.DARK],
70
+ counters: true,
71
+ items: [
72
+ StepItem({
73
+ status: true,
74
+ content:
75
+ "Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.",
76
+ }),
77
+ StepItem({
78
+ status: true,
79
+ content:
80
+ "Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.",
81
+ }),
82
+ StepItem({
83
+ content:
84
+ "Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.",
85
+ }),
86
+ ],
87
+ },
88
+ }
@@ -0,0 +1,111 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Component/Steps Counters smoke-test 1`] = `
4
+ <div class="mx-steps mx-steps--counters">
5
+ <div class="mx-steps__panel ">
6
+ <div class="mx-steps__panel-content mx-container mx-vertical-flow">
7
+ <h2>
8
+ Funk
9
+ </h2>
10
+ <p>
11
+ Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
12
+ </p>
13
+ </div>
14
+ </div>
15
+ <div class="mx-steps__panel ">
16
+ <div class="mx-steps__panel-content mx-container mx-vertical-flow">
17
+ <h3>
18
+ Soul
19
+ </h3>
20
+ <p>
21
+ Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.
22
+ </p>
23
+ </div>
24
+ </div>
25
+ <div class="mx-steps__panel ">
26
+ <div class="mx-steps__panel-content mx-container mx-vertical-flow">
27
+ <h4>
28
+ Motown
29
+ </h4>
30
+ <p>
31
+ Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
32
+ </p>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ `;
37
+
38
+ exports[`Component/Steps Progress smoke-test 1`] = `
39
+ <div class="mx-steps mx-steps--supplementary ">
40
+ <div class="mx-steps__panel mx-steps--fill">
41
+ <div class="mx-steps__panel-content mx-container mx-vertical-flow">
42
+ Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
43
+ </div>
44
+ </div>
45
+ <div class="mx-steps__panel ">
46
+ <div class="mx-steps__panel-content mx-container mx-vertical-flow">
47
+ Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.
48
+ </div>
49
+ </div>
50
+ <div class="mx-steps__panel ">
51
+ <div class="mx-steps__panel-content mx-container mx-vertical-flow">
52
+ Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
53
+ </div>
54
+ </div>
55
+ </div>
56
+ `;
57
+
58
+ exports[`Component/Steps ProgressCounters smoke-test 1`] = `
59
+ <div class="mx-steps mx-steps--dark mx-steps--counters ">
60
+ <div class="mx-steps__panel mx-steps--fill">
61
+ <div class="mx-steps__panel-content mx-container mx-vertical-flow">
62
+ Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
63
+ </div>
64
+ </div>
65
+ <div class="mx-steps__panel mx-steps--fill">
66
+ <div class="mx-steps__panel-content mx-container mx-vertical-flow">
67
+ Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.
68
+ </div>
69
+ </div>
70
+ <div class="mx-steps__panel ">
71
+ <div class="mx-steps__panel-content mx-container mx-vertical-flow">
72
+ Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
73
+ </div>
74
+ </div>
75
+ </div>
76
+ `;
77
+
78
+ exports[`Component/Steps Steps smoke-test 1`] = `
79
+ <div class="mx-steps ">
80
+ <div class="mx-steps__panel ">
81
+ <div class="mx-steps__panel-content mx-container mx-vertical-flow">
82
+ <h2>
83
+ Funk
84
+ </h2>
85
+ <p>
86
+ Funk is the ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
87
+ </p>
88
+ </div>
89
+ </div>
90
+ <div class="mx-steps__panel ">
91
+ <div class="mx-steps__panel-content mx-container mx-vertical-flow">
92
+ <h3>
93
+ Soul
94
+ </h3>
95
+ <p>
96
+ Soul music ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem.
97
+ </p>
98
+ </div>
99
+ </div>
100
+ <div class="mx-steps__panel ">
101
+ <div class="mx-steps__panel-content mx-container mx-vertical-flow">
102
+ <h4>
103
+ Motown
104
+ </h4>
105
+ <p>
106
+ Motown lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin at finibus velit. Curabitur consequat, dolor venenatis ullamcorper commodo, quam mi iaculis sem, non varius massa risus et enim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus non mi lorem. Morbi semper sagittis euismod. Vestibulum non ornare orci.
107
+ </p>
108
+ </div>
109
+ </div>
110
+ </div>
111
+ `;
@@ -0,0 +1,11 @@
1
+ {% set baseClass = 'mx-steps__panel' %}
2
+ {% set classes = [
3
+ baseClass,
4
+ status ? 'mx-steps--fill' : null
5
+ ] %}
6
+ {% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
7
+ <div{{ attributes }}>
8
+ <div class="mx-steps__panel-content mx-container mx-vertical-flow">
9
+ {{ content }}
10
+ </div>
11
+ </div>
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Steps
3
+ */
4
+
5
+ @layer design-system.components {
6
+ .mx-steps {
7
+ counter-reset: step;
8
+ }
9
+
10
+ .mx-steps__panel {
11
+ position: relative;
12
+
13
+ &::before {
14
+ content: "";
15
+ border: var(--line-width, 2px) solid
16
+ var(--line-colour, var(--colour-border));
17
+ background-color: var(--background, var(--colour-background));
18
+ border-radius: 100%;
19
+ inline-size: var(--counter-size, var(--spacing-l));
20
+ block-size: var(--counter-size, var(--spacing-l));
21
+ inset-block-start: var(--counter-top, 0);
22
+ inset-inline-start: 0;
23
+ position: absolute;
24
+ z-index: 2;
25
+ }
26
+
27
+ &::after {
28
+ align-items: center;
29
+ color: var(--foreground, inherit);
30
+ counter-increment: step;
31
+ content: counter(step) "";
32
+ display: flex;
33
+ font-size: var(--font-size-s);
34
+ font-weight: var(--font-weight-bold);
35
+ line-height: var(--line-height-ui);
36
+ inline-size: calc(
37
+ var(--counter-size, var(--spacing-l)) + (var(--line-width, 2px) * 2)
38
+ );
39
+ block-size: calc(
40
+ var(--counter-size, var(--spacing-l)) + (var(--line-width, 2px) * 2)
41
+ );
42
+ justify-content: center;
43
+ inset-block-start: var(--counter-top, 0);
44
+ inset-inline-start: 0;
45
+ position: absolute;
46
+ z-index: 3;
47
+ visibility: var(--counter-visibility, hidden);
48
+ }
49
+
50
+ &:last-child {
51
+ --spacing: 0;
52
+ }
53
+
54
+ &:has(.mx-steps__panel-content h3:first-child) {
55
+ --counter-top: -2px;
56
+ }
57
+
58
+ &:has(.mx-steps__panel-content h4:first-child) {
59
+ --counter-top: -4px;
60
+ }
61
+ }
62
+
63
+ .mx-steps__panel-content {
64
+ padding-block: 0 var(--spacing, var(--spacing-l));
65
+ padding-inline-start: var(--indent, var(--spacing-xxl));
66
+ max-inline-size: var(--container-max-width);
67
+
68
+ &::before {
69
+ content: "";
70
+ inline-size: var(--line-width, 2px);
71
+ background-color: var(--line-colour, var(--colour-border));
72
+ inset-inline-start: calc(
73
+ (var(--counter-size, var(--spacing-l)) / 2) -
74
+ (var(--line-width, 2px) / 2)
75
+ );
76
+ inset-block: 0;
77
+ position: absolute;
78
+ }
79
+ }
80
+
81
+ .mx-steps--dark {
82
+ --line-colour: var(--colour-primary);
83
+ --counter-foreground: var(--colour-foreground-reverse);
84
+ }
85
+
86
+ .mx-steps--supplementary {
87
+ --line-colour: var(--colour-accent);
88
+ --counter-foreground: var(--colour-foreground-reverse);
89
+ }
90
+
91
+ .mx-steps--fill:where(:not(:has(.mx-steps--fill))) {
92
+ --background: var(--line-colour, var(--colour-border));
93
+ --foreground: var(--counter-foreground, inherit);
94
+ }
95
+
96
+ .mx-steps--counters {
97
+ --counter-visibility: visible;
98
+ }
99
+ }
File without changes
@@ -0,0 +1,18 @@
1
+ {% set baseClass = 'mx-steps' %}
2
+ {% set modifierClass = "" %}
3
+ {% for modifier in modifiers %}
4
+ {% set modifierClass = baseClass~"--"~modifier %}
5
+ {% endfor %}
6
+ {% set classes = [
7
+ baseClass,
8
+ modifierClass ? modifierClass : null,
9
+ counters ? baseClass~"--counters" : null,
10
+ progress ? baseClass~"--progress" : null,
11
+ fill ? baseClass~"--fill" : null,
12
+ ] %}
13
+ {% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
14
+ <div{{ attributes }}>
15
+ {% for item in items %}
16
+ {{ item }}
17
+ {% endfor %}
18
+ </div>
@@ -6,6 +6,9 @@ import "./Elements/Sticky"
6
6
  const meta: Meta<typeof Component> = {
7
7
  tags: ["autodocs"],
8
8
  component: Component,
9
+ args: {
10
+ content: "I am sticky.",
11
+ },
9
12
  }
10
13
 
11
14
  export default meta
@@ -1,13 +1,12 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Component/Sticky Sticky smoke-test 1`] = `
4
- "<div class="sticky__trigger"></div><mx-sticky style="--sticky-offset: 0" offsetpropname="--sticky-offset" class="sticky section section--l background--alt">
5
- <div class="section__content">Sticky header</div>
4
+ <div class="sticky__trigger">
5
+ </div>
6
+ <mx-sticky style="--sticky-offset: 0"
7
+ offsetpropname="--sticky-offset"
8
+ class="mx-sticky"
9
+ >
10
+ I am sticky.
6
11
  </mx-sticky>
7
-
8
-
9
- &lt; class="mx-section "&gt;
10
-
11
-
12
- "
13
12
  `;
@@ -1,21 +1,3 @@
1
- <mx-sticky style="--sticky-offset: 0" offsetPropName="--sticky-offset" class="sticky section section--l background--alt">
2
- <div class="section__content">Sticky header</div>
1
+ <mx-sticky style="--sticky-offset: 0" offsetPropName="--sticky-offset" class="mx-sticky">
2
+ {{ content }}
3
3
  </mx-sticky>
4
-
5
- {% embed '@mixtape/Layout/Section/section.twig' with {
6
- modifier_class: 'section--l'
7
- } %}
8
- {% block content %}
9
- {% embed '@mixtape/Layout/Sidebar/sidebar.twig' with {
10
- content_class: 'rich-text vertical-flow',
11
- reverse_markup: TRUE
12
- }%}
13
- {% block content %}
14
- {% include '@mixtape/Component/InPageNavigation/twig/in-page-navigation-content-example.twig' %}
15
- {% endblock %}
16
- {% block sidebar %}
17
- {% include '@mixtape/Component/Sticky/twig/sticky-example.twig' %}
18
- {% endblock %}
19
- {% endembed %}
20
- {% endblock %}
21
- {% endembed %}
@@ -1,5 +1,4 @@
1
1
  import { JSX, PropsWithChildren } from "react"
2
- import classNames from "classnames"
3
2
  import { useTabContext } from "../Tabs"
4
3
 
5
4
  type TabProps = PropsWithChildren & {
@@ -32,7 +31,7 @@ const Tab = ({ id, className, children }: TabProps): JSX.Element => {
32
31
  aria-controls={id}
33
32
  role="tab"
34
33
  onClick={handleClick}
35
- className={classNames("button", className)}
34
+ className={className}
36
35
  aria-selected={isActive}
37
36
  tabIndex={isActive ? 0 : -1}
38
37
  type="button"
@@ -5,7 +5,7 @@ import { useTabContext } from "../Tabs"
5
5
  const TabDropMenu = ({ children }: PropsWithChildren): JSX.Element => {
6
6
  const { activeTabLabel } = useTabContext()
7
7
  return (
8
- <DropMenu label={activeTabLabel} className="mobile-only">
8
+ <DropMenu label={activeTabLabel} className="mobile-only" role="tablist">
9
9
  {children}
10
10
  </DropMenu>
11
11
  )
@@ -1,7 +1,7 @@
1
1
  import { JSX, PropsWithChildren } from "react"
2
2
 
3
3
  const TabList = ({ children }: PropsWithChildren): JSX.Element => (
4
- <div className={"tab__list desktop-only"} role="tablist">
4
+ <div className={"mx-tabs__list desktop-only"} role="tablist">
5
5
  {children}
6
6
  </div>
7
7
  )
@@ -10,14 +10,14 @@ type TabPanelProps = PropsWithChildren & {
10
10
  const TabPanel = ({
11
11
  children,
12
12
  id,
13
- className = "section--l",
13
+ className = "mx-section--l",
14
14
  }: TabPanelProps): JSX.Element => {
15
15
  const { activeTab } = useTabContext()
16
16
  const isActive: boolean = activeTab === id
17
17
  return (
18
18
  <div
19
19
  id={id}
20
- className={classNames("tab__panel", "vertical-flow", className)}
20
+ className={classNames("mx-tabs__panel", "mx-vertical-flow", className)}
21
21
  // @ts-expect-error inert is allowed.
22
22
  inert={!isActive ? "" : null}
23
23
  aria-labelledby={`${id}-button`}