@pnx-mixtape/mxds 0.0.5 → 0.0.7

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 (375) hide show
  1. package/package.json +4 -4
  2. package/src/Atom/Background/__snapshots__/Backgrounds.stories.ts.snap +12 -12
  3. package/src/Atom/Background/_background.css +8 -8
  4. package/src/Atom/Background/backgrounds.twig +4 -4
  5. package/src/Atom/Button/Button.stories.ts +4 -3
  6. package/src/Atom/Button/Button.tsx +8 -8
  7. package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +6 -6
  8. package/src/Atom/Button/__snapshots__/Button.stories.tsx.snap +2 -2
  9. package/src/Atom/Button/_buttons-styles.css +4 -4
  10. package/src/Atom/Button/_buttons.css +6 -6
  11. package/src/Atom/Button/button.twig +2 -2
  12. package/src/Atom/Heading/Heading.stories.ts +5 -2
  13. package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +1 -1
  14. package/src/Atom/Heading/_headings.css +20 -20
  15. package/src/Atom/Heading/heading.twig +5 -2
  16. package/src/Atom/Icon/Icon.mdx +1 -1
  17. package/src/Atom/Icon/Icon.tsx +5 -5
  18. package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +3 -3
  19. package/src/Atom/Icon/__snapshots__/Icon.stories.tsx.snap +3 -3
  20. package/src/Atom/Icon/_icon.css +17 -17
  21. package/src/Atom/Icon/_mixin-icon.css +1 -1
  22. package/src/Atom/Icon/icon.twig +2 -2
  23. package/src/Atom/Link/Link.stories.ts +8 -7
  24. package/src/Atom/Link/Link.tsx +2 -2
  25. package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +8 -12
  26. package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +3 -3
  27. package/src/Atom/Link/_links.css +19 -9
  28. package/src/Atom/Link/link.twig +7 -5
  29. package/src/Atom/Media/Media.stories.ts +9 -9
  30. package/src/Atom/Media/Media.tsx +1 -1
  31. package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +4 -4
  32. package/src/Atom/Media/__snapshots__/Media.stories.tsx.snap +1 -1
  33. package/src/Atom/Media/_media.css +12 -4
  34. package/src/Atom/Media/media.twig +7 -3
  35. package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +1 -1
  36. package/src/Atom/{_mixins.css → Spacing/_mixins.css} +5 -5
  37. package/src/Atom/Spacing/_spacing.css +6 -6
  38. package/src/Atom/Spacing/spacing.twig +1 -1
  39. package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +3 -3
  40. package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +2 -2
  41. package/src/Atom/Table/_table.css +4 -4
  42. package/src/Atom/Table/table-responsive.twig +2 -2
  43. package/src/Atom/Table/table.twig +1 -1
  44. package/src/Atom/Text/__snapshots__/TextSizes.stories.ts.snap +16 -16
  45. package/src/Atom/Text/_text-align.css +3 -3
  46. package/src/Atom/Text/_text-sizes.css +29 -29
  47. package/src/Atom/Text/text-alignment.twig +3 -3
  48. package/src/Atom/Text/text-styles-example.twig +16 -16
  49. package/src/Atom/Video/Video.tsx +1 -1
  50. package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +1 -1
  51. package/src/Atom/Video/_video.css +2 -2
  52. package/src/Atom/Video/video.twig +1 -4
  53. package/src/Atom/_animated.css +5 -5
  54. package/src/Atom/_flow.css +5 -9
  55. package/src/Atom/_generic.css +0 -13
  56. package/src/Atom/_print.css +1 -12
  57. package/src/Component/Accordion/Accordion.stories.ts +9 -7
  58. package/src/Component/Accordion/Accordion.tsx +11 -11
  59. package/src/Component/Accordion/Elements/AccordionGroup.ts +2 -2
  60. package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +25 -25
  61. package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +4 -4
  62. package/src/Component/Accordion/accordion-item.twig +5 -5
  63. package/src/Component/Accordion/accordion.css +15 -15
  64. package/src/Component/Accordion/accordion.twig +7 -5
  65. package/src/Component/Breadcrumb/Breadcrumb.stories.ts +23 -5
  66. package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +15 -8
  67. package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +6 -6
  68. package/src/Component/Breadcrumb/breadcrumb.css +7 -3
  69. package/src/Component/Breadcrumb/breadcrumb.twig +14 -12
  70. package/src/Component/Callout/Callout.stories.ts +5 -4
  71. package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +2 -2
  72. package/src/Component/Callout/callout.css +1 -1
  73. package/src/Component/Callout/callout.twig +3 -3
  74. package/src/Component/Card/Card.stories.ts +47 -20
  75. package/src/Component/Card/Card.stories.tsx +5 -4
  76. package/src/Component/Card/Card.tsx +7 -7
  77. package/src/Component/Card/__snapshots__/Card.stories.ts.snap +151 -77
  78. package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +18 -18
  79. package/src/Component/Card/card-grid.twig +2 -2
  80. package/src/Component/Card/card.css +61 -46
  81. package/src/Component/Card/card.twig +19 -19
  82. package/src/Component/ContentBlock/ContentBlock.stories.ts +73 -6
  83. package/src/Component/ContentBlock/ContentBlock.stories.tsx +19 -10
  84. package/src/Component/ContentBlock/ContentBlock.tsx +25 -17
  85. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +137 -5
  86. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.tsx.snap +21 -14
  87. package/src/Component/ContentBlock/content-block.css +21 -10
  88. package/src/Component/ContentBlock/content-block.twig +21 -11
  89. package/src/Component/DropMenu/Components/DropMenuItem.tsx +1 -1
  90. package/src/Component/DropMenu/DropMenu.stories.ts +1 -1
  91. package/src/Component/DropMenu/DropMenu.tsx +6 -6
  92. package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +2 -2
  93. package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +2 -2
  94. package/src/Component/DropMenu/drop-menu.css +2 -2
  95. package/src/Component/DropMenu/drop-menu.twig +2 -2
  96. package/src/Component/GlobalAlert/Elements/ClosableAlert.ts +2 -2
  97. package/src/Component/GlobalAlert/GlobalAlert.stories.ts +5 -6
  98. package/src/Component/GlobalAlert/GlobalAlert.tsx +5 -5
  99. package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +9 -9
  100. package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +7 -7
  101. package/src/Component/GlobalAlert/global-alert.css +5 -5
  102. package/src/Component/GlobalAlert/global-alert.twig +7 -7
  103. package/src/Component/HeroBanner/HeroBanner.stories.ts +17 -12
  104. package/src/Component/HeroBanner/HeroBanner.tsx +4 -4
  105. package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +23 -23
  106. package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.tsx.snap +9 -9
  107. package/src/Component/HeroBanner/hero-banner.css +6 -6
  108. package/src/Component/HeroBanner/hero-banner.twig +8 -8
  109. package/src/Component/InPageAlert/InPageAlert.stories.ts +4 -3
  110. package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +1 -3
  111. package/src/Component/InPageAlert/in-page-alert.css +5 -5
  112. package/src/Component/InPageAlert/in-page-alert.twig +2 -2
  113. package/src/Component/InPageNavigation/Elements/InPageNavigation.ts +2 -2
  114. package/src/Component/InPageNavigation/InPageNavigation.stories.ts +30 -7
  115. package/src/Component/InPageNavigation/InPageNavigation.tsx +4 -4
  116. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +103 -5
  117. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +21 -21
  118. package/src/Component/InPageNavigation/in-page-navigation.css +3 -3
  119. package/src/Component/InPageNavigation/in-page-navigation.twig +13 -17
  120. package/src/Component/InPageNavigation/twig/{in-page-navigation-content-example.twig → content-example.twig} +2 -0
  121. package/src/Component/InPageNavigation/twig/in-page-navigation-story.twig +2 -0
  122. package/src/Component/LinkList/LinkList.tsx +4 -4
  123. package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +4 -4
  124. package/src/Component/LinkList/__snapshots__/LinkList.stories.tsx.snap +8 -8
  125. package/src/Component/LinkList/link-list.css +8 -8
  126. package/src/Component/LinkList/link-list.twig +4 -4
  127. package/src/Component/ListItem/ListItem.stories.ts +105 -0
  128. package/src/Component/ListItem/{Teaser.stories.tsx → ListItem.stories.tsx} +4 -5
  129. package/src/Component/ListItem/ListItem.tsx +55 -0
  130. package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +184 -0
  131. package/src/Component/ListItem/__snapshots__/ListItem.stories.tsx.snap +23 -0
  132. package/src/Component/ListItem/list-item.css +109 -0
  133. package/src/Component/ListItem/list-item.twig +32 -0
  134. package/src/Component/Navigation/Components/DropdownLevel.tsx +11 -6
  135. package/src/Component/Navigation/Dropdown.tsx +2 -2
  136. package/src/Component/Navigation/Elements/Navigation.ts +6 -5
  137. package/src/Component/Navigation/Navigation.stories.ts +261 -5
  138. package/src/Component/Navigation/Navigation.tsx +2 -2
  139. package/src/Component/Navigation/__snapshots__/Dropdown.stories.tsx.snap +4 -4
  140. package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +294 -7
  141. package/src/Component/Navigation/__snapshots__/Navigation.stories.tsx.snap +2 -2
  142. package/src/Component/Navigation/_navigation-collapsible.css +22 -12
  143. package/src/Component/Navigation/_navigation-dropdown.css +8 -8
  144. package/src/Component/Navigation/_navigation-mega.css +4 -4
  145. package/src/Component/Navigation/_navigation.css +14 -11
  146. package/src/Component/Navigation/menu.twig +42 -0
  147. package/src/Component/Navigation/navigation.css +1 -1
  148. package/src/Component/Navigation/navigation.twig +23 -9
  149. package/src/Component/Pagination/Components/PaginationItem.tsx +4 -4
  150. package/src/Component/Pagination/Pagination.stories.ts +55 -6
  151. package/src/Component/Pagination/Pagination.tsx +2 -2
  152. package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +36 -33
  153. package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +11 -11
  154. package/src/Component/Pagination/pagination-item.twig +7 -0
  155. package/src/Component/Pagination/pagination.css +12 -9
  156. package/src/Component/Pagination/pagination.twig +12 -37
  157. package/src/Component/SideNavigation/SideNavigation.stories.ts +97 -0
  158. package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +86 -0
  159. package/src/Component/SideNavigation/side-navigation.css +78 -0
  160. package/src/Component/SideNavigation/side-navigation.twig +35 -0
  161. package/src/Component/SideNavigation/twig/side-navigation-story.twig +7 -0
  162. package/src/Component/SocialLinks/SocialLinks.stories.ts +58 -0
  163. package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +32 -0
  164. package/src/Component/SocialLinks/social-links.css +17 -0
  165. package/src/Component/SocialLinks/social-links.twig +6 -0
  166. package/src/Component/SocialShare/__snapshots__/SocialShare.stories.tsx.snap +3 -3
  167. package/src/Component/Steps/Steps.stories.ts +88 -0
  168. package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +111 -0
  169. package/src/Component/Steps/step-item.twig +11 -0
  170. package/src/Component/Steps/steps.css +99 -0
  171. package/src/Component/Steps/steps.entry.js +0 -0
  172. package/src/Component/Steps/steps.twig +18 -0
  173. package/src/Component/Sticky/Sticky.stories.ts +3 -0
  174. package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +7 -8
  175. package/src/Component/Sticky/sticky.twig +2 -20
  176. package/src/Component/Tabs/Components/Tab.tsx +1 -2
  177. package/src/Component/Tabs/Components/TabDropMenu.tsx +1 -1
  178. package/src/Component/Tabs/Components/TabList.tsx +1 -1
  179. package/src/Component/Tabs/Components/TabPanel.tsx +2 -2
  180. package/src/Component/Tabs/Elements/Tabs.ts +98 -49
  181. package/src/Component/Tabs/Tabs.stories.ts +45 -8
  182. package/src/Component/Tabs/Tabs.stories.tsx +3 -3
  183. package/src/Component/Tabs/Tabs.tsx +2 -2
  184. package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +46 -92
  185. package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +11 -14
  186. package/src/Component/Tabs/tab-item.twig +11 -0
  187. package/src/Component/Tabs/tabs.css +20 -17
  188. package/src/Component/Tabs/tabs.twig +10 -46
  189. package/src/Component/Tag/Tag.tsx +1 -1
  190. package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +9 -9
  191. package/src/Component/Tag/__snapshots__/Tag.stories.tsx.snap +1 -1
  192. package/src/Component/Tag/tag.css +2 -2
  193. package/src/Component/Tag/tags.twig +3 -3
  194. package/src/Component/Tile/__snapshots__/Tile.stories.tsx.snap +4 -4
  195. package/src/Form/Checkbox/Checkbox.stories.ts +39 -0
  196. package/src/Form/Checkbox/FormCheckbox.tsx +3 -3
  197. package/src/Form/Checkbox/__snapshots__/Checkbox.stories.ts.snap +28 -0
  198. package/src/Form/Checkbox/input-checkbox.twig +27 -24
  199. package/src/Form/Description/Description.stories.ts +10 -7
  200. package/src/Form/Description/FormDescription.tsx +3 -3
  201. package/src/Form/Description/FormStatus.stories.ts +31 -0
  202. package/src/Form/Description/__snapshots__/Description.stories.ts.snap +2 -9
  203. package/src/Form/Description/__snapshots__/FormDescription.stories.tsx.snap +1 -1
  204. package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +19 -0
  205. package/src/Form/Description/form-description.twig +4 -3
  206. package/src/Form/Description/form-status.twig +10 -0
  207. package/src/Form/Form/FormTitle.tsx +1 -1
  208. package/src/Form/Form/__snapshots__/FormTitle.stories.tsx.snap +1 -1
  209. package/src/Form/Form/form.twig +14 -0
  210. package/src/Form/Form/twig/form-example.twig +4 -4
  211. package/src/Form/FormItem/FormItem.stories.ts +119 -0
  212. package/src/Form/{Item → FormItem}/FormItem.tsx +1 -1
  213. package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +133 -0
  214. package/src/Form/{Item → FormItem}/__snapshots__/FormItem.stories.tsx.snap +24 -16
  215. package/src/Form/FormItem/form-item.twig +22 -0
  216. package/src/Form/Label/FormLabel.tsx +1 -1
  217. package/src/Form/Label/Label.stories.ts +16 -19
  218. package/src/Form/Label/__snapshots__/FormLabel.stories.tsx.snap +6 -2
  219. package/src/Form/Label/__snapshots__/Label.stories.ts.snap +11 -9
  220. package/src/Form/Label/label.twig +13 -2
  221. package/src/Form/Radio/FormRadio.tsx +2 -2
  222. package/src/Form/Radio/Radio.stories.ts +72 -0
  223. package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +58 -0
  224. package/src/Form/Radio/input-radio.twig +18 -24
  225. package/src/Form/Search/Search.stories.ts +50 -0
  226. package/src/Form/Search/__snapshots__/Search.stories.ts.snap +26 -0
  227. package/src/Form/Search/search-form.twig +11 -0
  228. package/src/Form/Select/FormSelect.tsx +1 -1
  229. package/src/Form/Select/Select.stories.ts +24 -31
  230. package/src/Form/Select/__snapshots__/FormSelect.stories.tsx.snap +1 -1
  231. package/src/Form/Select/__snapshots__/Select.stories.ts.snap +16 -144
  232. package/src/Form/Select/input-select.twig +25 -0
  233. package/src/Form/TextInput/FormText.tsx +4 -7
  234. package/src/Form/TextInput/TextInput.stories.ts +23 -41
  235. package/src/Form/TextInput/__snapshots__/FormText.stories.tsx.snap +1 -1
  236. package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +10 -14
  237. package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +20 -96
  238. package/src/Form/TextInput/input-divider.twig +7 -8
  239. package/src/Form/TextInput/input-text-icon.twig +5 -5
  240. package/src/Form/TextInput/input-text.twig +31 -5
  241. package/src/Form/Textarea/FormTextarea.tsx +4 -7
  242. package/src/Form/Textarea/Textarea.stories.ts +11 -8
  243. package/src/Form/Textarea/__snapshots__/FormTextarea.stories.tsx.snap +1 -1
  244. package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +8 -16
  245. package/src/Form/Textarea/input-textarea.twig +21 -0
  246. package/src/Form/form.css +103 -103
  247. package/src/Layout/Footer/Footer.stories.ts +196 -4
  248. package/src/Layout/Footer/Footer.stories.tsx +5 -9
  249. package/src/Layout/Footer/Footer.tsx +21 -19
  250. package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +296 -78
  251. package/src/Layout/Footer/__snapshots__/Footer.stories.tsx.snap +52 -58
  252. package/src/Layout/Footer/footer.css +102 -25
  253. package/src/Layout/Footer/footer.twig +29 -23
  254. package/src/Layout/Grid/Grid.stories.ts +15 -14
  255. package/src/Layout/Grid/Grid.stories.tsx +14 -14
  256. package/src/Layout/Grid/Grid.tsx +11 -11
  257. package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +4 -4
  258. package/src/Layout/Grid/__snapshots__/Grid.stories.tsx.snap +10 -10
  259. package/src/Layout/Grid/container-grid.css +1 -0
  260. package/src/Layout/Grid/grid-item.twig +3 -3
  261. package/src/Layout/Grid/grid.css +29 -29
  262. package/src/Layout/Grid/grid.twig +8 -5
  263. package/src/Layout/Header/Components/GlobalToggle.tsx +0 -1
  264. package/src/Layout/Header/Components/Logo.tsx +1 -1
  265. package/src/Layout/Header/Elements/GlobalToggle.ts +6 -1
  266. package/src/Layout/Header/Header.stories.ts +242 -7
  267. package/src/Layout/Header/Header.tsx +22 -19
  268. package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +464 -100
  269. package/src/Layout/Header/__snapshots__/Header.stories.tsx.snap +50 -46
  270. package/src/Layout/Header/_header.css +28 -21
  271. package/src/Layout/Header/_toggles.css +2 -2
  272. package/src/Layout/Header/header-stacked.twig +49 -0
  273. package/src/Layout/Header/header.twig +42 -21
  274. package/src/Layout/Header/twig/logo.twig +2 -2
  275. package/src/Layout/Masthead/Masthead.stories.ts +42 -6
  276. package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +44 -27
  277. package/src/Layout/Masthead/masthead.css +5 -14
  278. package/src/Layout/Masthead/masthead.twig +25 -7
  279. package/src/Layout/Page/Page.tsx +2 -2
  280. package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +61 -59
  281. package/src/Layout/Page/page.css +19 -84
  282. package/src/Layout/Page/page.twig +8 -3
  283. package/src/Layout/Section/Section.stories.ts +12 -9
  284. package/src/Layout/Section/Section.stories.tsx +5 -9
  285. package/src/Layout/Section/Section.tsx +11 -15
  286. package/src/Layout/Section/SectionGrid.stories.tsx +5 -11
  287. package/src/Layout/Section/SectionGrid.tsx +12 -17
  288. package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +12 -12
  289. package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +17 -17
  290. package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +18 -18
  291. package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +8 -8
  292. package/src/Layout/Section/__snapshots__/Section.stories.tsx.snap +6 -6
  293. package/src/Layout/Section/__snapshots__/SectionGrid.stories.tsx.snap +6 -6
  294. package/src/Layout/Section/section.css +29 -26
  295. package/src/Layout/Section/section.twig +5 -5
  296. package/src/Layout/Section/twig/section-background.twig +5 -5
  297. package/src/Layout/Section/twig/sections-breakout.twig +16 -16
  298. package/src/Layout/Section/twig/sections-flow.twig +17 -17
  299. package/src/Layout/Section/twig/sections-stacked.twig +8 -16
  300. package/src/Layout/Sidebar/Sidebar.stories.ts +25 -3
  301. package/src/Layout/Sidebar/Sidebar.stories.tsx +1 -1
  302. package/src/Layout/Sidebar/Sidebar.tsx +4 -4
  303. package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +39 -16
  304. package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.tsx.snap +6 -6
  305. package/src/Layout/Sidebar/sidebar.css +6 -6
  306. package/src/Layout/Sidebar/sidebar.twig +25 -16
  307. package/src/Utility/utilities.css +5 -2
  308. package/src/enums.ts +21 -21
  309. package/src/react.ts +1 -2
  310. package/src/Atom/Button/twig/story-button.twig +0 -11
  311. package/src/Atom/Link/twig/story-link.twig +0 -11
  312. package/src/Atom/Media/twig/story-media.twig +0 -11
  313. package/src/Atom/NavList/NavList.stories.ts +0 -15
  314. package/src/Atom/NavList/__snapshots__/NavList.stories.ts.snap +0 -43
  315. package/src/Atom/NavList/nav-list.css +0 -29
  316. package/src/Atom/NavList/nav-list.twig +0 -25
  317. package/src/Atom/_flow-legacy.css +0 -48
  318. package/src/Component/Accordion/twig/accordion-story.twig +0 -13
  319. package/src/Component/Author/Author.stories.tsx +0 -18
  320. package/src/Component/Author/Author.tsx +0 -30
  321. package/src/Component/Author/__snapshots__/Author.stories.tsx.snap +0 -21
  322. package/src/Component/Callout/twig/callout-story.twig +0 -11
  323. package/src/Component/Card/twig/old-card.twig +0 -17
  324. package/src/Component/Card/twig/story-card.twig +0 -29
  325. package/src/Component/ContentBlock/twig/content-block-example.twig +0 -7
  326. package/src/Component/GlobalAlert/twig/story-global-alert.twig +0 -14
  327. package/src/Component/HeroBanner/twig/hero-banner-story.twig +0 -19
  328. package/src/Component/InPageAlert/twig/story-in-page-alert.twig +0 -11
  329. package/src/Component/InPageNavigation/twig/in-page-navigation-menu-example.twig +0 -6
  330. package/src/Component/ListItem/Teaser.tsx +0 -54
  331. package/src/Component/ListItem/__snapshots__/Teaser.stories.tsx.snap +0 -32
  332. package/src/Component/Navigation/Collapsible.stories.ts +0 -16
  333. package/src/Component/Navigation/Dropdown.stories.ts +0 -16
  334. package/src/Component/Navigation/MegaNav.stories.ts +0 -16
  335. package/src/Component/Navigation/__snapshots__/Collapsible.stories.ts.snap +0 -123
  336. package/src/Component/Navigation/__snapshots__/Dropdown.stories.ts.snap +0 -125
  337. package/src/Component/Navigation/navigation-collapsible.twig +0 -7
  338. package/src/Component/Navigation/navigation-dropdown.twig +0 -7
  339. package/src/Component/Navigation/navigation-mega-nav.twig +0 -7
  340. package/src/Component/Navigation/twig/navigation-subnav-list.twig +0 -108
  341. package/src/Component/Sticky/twig/sticky-example.twig +0 -4
  342. package/src/Component/Tabs/twig/panel.twig +0 -5
  343. package/src/Component/Tabs/twig/tab-list.twig +0 -26
  344. package/src/Form/Checkbox/Checkboxes.stories.ts +0 -47
  345. package/src/Form/Checkbox/__snapshots__/Checkboxes.stories.ts.snap +0 -115
  346. package/src/Form/Checkbox/input-checkbox-single.twig +0 -6
  347. package/src/Form/Description/ErrorMessage.stories.ts +0 -16
  348. package/src/Form/Description/__snapshots__/ErrorMessage.stories.ts.snap +0 -20
  349. package/src/Form/Description/form-error.twig +0 -5
  350. package/src/Form/Fieldset/Fieldset.stories.ts +0 -34
  351. package/src/Form/Fieldset/__snapshots__/Fieldset.stories.ts.snap +0 -23
  352. package/src/Form/Fieldset/fieldset.twig +0 -4
  353. package/src/Form/Radio/Radios.stories.ts +0 -47
  354. package/src/Form/Radio/__snapshots__/Radios.stories.ts.snap +0 -125
  355. package/src/Form/Search/TextInputWithInlineButton.stories.ts +0 -16
  356. package/src/Form/Search/__snapshots__/TextInputWithInlineButton.stories.ts.snap +0 -26
  357. package/src/Form/Search/input-text-inline-submit.twig +0 -8
  358. package/src/Form/Select/select.twig +0 -16
  359. package/src/Form/TextInput/TextInputWithIcon.stories.ts +0 -40
  360. package/src/Form/TextInput/__snapshots__/TextInputWithIcon.stories.ts.snap +0 -67
  361. package/src/Form/Textarea/textarea.twig +0 -5
  362. package/src/Layout/Footer/FooterMenu/FooterMenu.stories.ts +0 -15
  363. package/src/Layout/Footer/FooterMenu/__snapshots__/FooterMenu.stories.ts.snap +0 -101
  364. package/src/Layout/Footer/FooterMenu/footer-menu.css +0 -29
  365. package/src/Layout/Footer/FooterMenu/footer-menu.twig +0 -5
  366. package/src/Layout/Grid/twig/container-grid-dynamic.twig +0 -47
  367. package/src/Layout/Grid/twig/container-grid.twig +0 -46
  368. package/src/Layout/Grid/twig/grid-story.twig +0 -6
  369. package/src/Layout/Grid/twig/old-grid.twig +0 -46
  370. package/src/Layout/Header/Stacked/Stacked.stories.ts +0 -16
  371. package/src/Layout/Header/Stacked/__snapshots__/Stacked.stories.ts.snap +0 -353
  372. package/src/Layout/Header/Stacked/header-stacked.twig +0 -33
  373. package/src/Layout/Header/twig/global-header.twig +0 -4
  374. package/src/Layout/Section/twig/section-story.twig +0 -14
  375. /package/src/Form/{Item → FormItem}/FormItem.stories.tsx +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnx-mixtape/mxds",
3
3
  "description": "The Mixtape Design System",
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "scripts": {
6
6
  "dev": "concurrently -k -n \"VITE,STORYBOOK\" -c \"#636cff,#ff4785\" \"npm run dev-vite\" \"npm run dev-storybook\"",
7
7
  "build": "concurrently -n \"VITE,STORYBOOK\" -c \"#636cff,#ff4785\" \"npm run build-vite\" \"npm run build-storybook\"",
@@ -23,8 +23,8 @@
23
23
  "test": "npm run test-storybook",
24
24
  "test-vitest": "vitest --run",
25
25
  "test-storybook": "concurrently \"npm:test-storybook-*\"",
26
- "test-storybook-html": "test-storybook --maxWorkers=50%",
27
- "test-storybook-react": "test-storybook --maxWorkers=50% --url http://127.0.0.1:6008 -c .storybook-react",
26
+ "test-storybook-html": "test-storybook --maxWorkers=1",
27
+ "test-storybook-react": "test-storybook --maxWorkers=1 --url http://127.0.0.1:6008 -c .storybook-react",
28
28
  "clean": "rm -rf ./dist",
29
29
  "commit": "git-cz",
30
30
  "http-server": "http-server ./dist/storybook -i -p 3001"
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@floating-ui/dom": "^1.6.5",
34
34
  "@oddbird/popover-polyfill": "^0.4.3",
35
- "@pnx-mixtape/ids-shape": "^0.0.8",
35
+ "@pnx-mixtape/ids-shape": "^0.0.15",
36
36
  "classnames": "^2.5.1",
37
37
  "js-cookie": "^3.0.5",
38
38
  "react": "^18.3.1",
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Atom/Backgrounds Alt smoke-test 1`] = `
4
- <div class="spacing--m rich-text vertical-flow background--alt">
4
+ <div class="mx-spacing--m mx-rich-text mx-vertical-flow mx-background--alt">
5
5
  <blockquote>
6
6
  <p>
7
7
  But I must explain to you how all this mistaken idea of denouncing of a
@@ -11,12 +11,12 @@ exports[`Atom/Backgrounds Alt smoke-test 1`] = `
11
11
  was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
12
12
  </p>
13
13
  <a href="#"
14
- class="link--external"
14
+ class="mx-link--external"
15
15
  >
16
16
  Contact the Lorem Ipsum Squad
17
17
  </a>
18
18
  </blockquote>
19
- <blockquote class="background--reset">
19
+ <blockquote class="mx-background--reset">
20
20
  <p>
21
21
  But I must explain to you how all this mistaken idea of denouncing of a
22
22
  <a href="#">
@@ -25,7 +25,7 @@ exports[`Atom/Backgrounds Alt smoke-test 1`] = `
25
25
  was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
26
26
  </p>
27
27
  <a href="#"
28
- class="link--external"
28
+ class="mx-link--external"
29
29
  >
30
30
  Contact the Lorem Ipsum Squad
31
31
  </a>
@@ -34,7 +34,7 @@ exports[`Atom/Backgrounds Alt smoke-test 1`] = `
34
34
  `;
35
35
 
36
36
  exports[`Atom/Backgrounds Backgrounds smoke-test 1`] = `
37
- <div class="spacing--m rich-text vertical-flow ">
37
+ <div class="mx-spacing--m mx-rich-text mx-vertical-flow ">
38
38
  <blockquote>
39
39
  <p>
40
40
  But I must explain to you how all this mistaken idea of denouncing of a
@@ -44,12 +44,12 @@ exports[`Atom/Backgrounds Backgrounds smoke-test 1`] = `
44
44
  was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
45
45
  </p>
46
46
  <a href="#"
47
- class="link--external"
47
+ class="mx-link--external"
48
48
  >
49
49
  Contact the Lorem Ipsum Squad
50
50
  </a>
51
51
  </blockquote>
52
- <blockquote class="background--reset">
52
+ <blockquote class="mx-background--reset">
53
53
  <p>
54
54
  But I must explain to you how all this mistaken idea of denouncing of a
55
55
  <a href="#">
@@ -58,7 +58,7 @@ exports[`Atom/Backgrounds Backgrounds smoke-test 1`] = `
58
58
  was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
59
59
  </p>
60
60
  <a href="#"
61
- class="link--external"
61
+ class="mx-link--external"
62
62
  >
63
63
  Contact the Lorem Ipsum Squad
64
64
  </a>
@@ -67,7 +67,7 @@ exports[`Atom/Backgrounds Backgrounds smoke-test 1`] = `
67
67
  `;
68
68
 
69
69
  exports[`Atom/Backgrounds Reverse smoke-test 1`] = `
70
- <div class="spacing--m rich-text vertical-flow background--reverse">
70
+ <div class="mx-spacing--m mx-rich-text mx-vertical-flow mx-background--reverse">
71
71
  <blockquote>
72
72
  <p>
73
73
  But I must explain to you how all this mistaken idea of denouncing of a
@@ -77,12 +77,12 @@ exports[`Atom/Backgrounds Reverse smoke-test 1`] = `
77
77
  was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
78
78
  </p>
79
79
  <a href="#"
80
- class="link--external"
80
+ class="mx-link--external"
81
81
  >
82
82
  Contact the Lorem Ipsum Squad
83
83
  </a>
84
84
  </blockquote>
85
- <blockquote class="background--reset">
85
+ <blockquote class="mx-background--reset">
86
86
  <p>
87
87
  But I must explain to you how all this mistaken idea of denouncing of a
88
88
  <a href="#">
@@ -91,7 +91,7 @@ exports[`Atom/Backgrounds Reverse smoke-test 1`] = `
91
91
  was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
92
92
  </p>
93
93
  <a href="#"
94
- class="link--external"
94
+ class="mx-link--external"
95
95
  >
96
96
  Contact the Lorem Ipsum Squad
97
97
  </a>
@@ -2,12 +2,12 @@
2
2
  * Backgrounds
3
3
  */
4
4
  @layer design-system.atoms {
5
- :where([class*="background--"]) {
5
+ :where([class*="mx-background--"]) {
6
6
  background-color: var(--background, var(--colour-background));
7
7
  color: var(--foreground, var(--colour-foreground));
8
8
  }
9
9
 
10
- .background--reset {
10
+ .mx-background--reset {
11
11
  /* use to revert .background--reverse on children */
12
12
  --background: var(--colour-background);
13
13
  --foreground: var(--colour-foreground);
@@ -15,25 +15,25 @@
15
15
  --line-colour: var(--colour-border);
16
16
  }
17
17
 
18
- .background--alt {
18
+ .mx-background--alt {
19
19
  --background: var(--colour-background-alt);
20
20
  }
21
21
 
22
- .background--primary {
22
+ .mx-background--primary {
23
23
  --background: var(--colour-primary);
24
24
  --foreground: var(--colour-foreground-reverse);
25
25
  --line-colour: var(--colour-border-reverse);
26
26
  --link-colour: var(--colour-primary-light);
27
27
  }
28
28
 
29
- .background--accent {
29
+ .mx-background--accent {
30
30
  --background: var(--colour-accent);
31
31
  --foreground: var(--colour-foreground-reverse);
32
32
  --line-colour: var(--colour-border-reverse);
33
33
  --link-colour: var(--colour-accent-light);
34
34
  }
35
35
 
36
- .background--image {
36
+ .mx-background--image {
37
37
  & > img {
38
38
  object-fit: cover;
39
39
  position: absolute;
@@ -45,13 +45,13 @@
45
45
  }
46
46
  }
47
47
 
48
- .background--reverse {
48
+ .mx-background--reverse {
49
49
  --line-colour: var(--colour-border-reverse);
50
50
  --link-colour: var(--colour-primary-light);
51
51
  --background: var(--colour-background-reverse);
52
52
  --foreground: var(--colour-foreground-reverse);
53
53
 
54
- & .background--image {
54
+ & .mx-background--image {
55
55
  --bg-img-brightness: 0.45;
56
56
  --bg-img-opacity: 1;
57
57
  }
@@ -1,10 +1,10 @@
1
- <div class="spacing--m rich-text vertical-flow {{ modifier_class }}{% if modifier %} background--{{ modifier }}{% endif %}">
1
+ <div class="mx-spacing--m mx-rich-text mx-vertical-flow {{ modifier_class }}{% if modifier %} mx-background--{{ modifier }}{% endif %}">
2
2
  <blockquote>
3
3
  <p>But I must explain to you how all this mistaken idea of denouncing of a <a href="#">pleasure and praising pain</a> was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.</p>
4
- <a href="#" class="link--external">Contact the Lorem Ipsum Squad</a>
4
+ <a href="#" class="mx-link--external">Contact the Lorem Ipsum Squad</a>
5
5
  </blockquote>
6
- <blockquote class="background--reset">
6
+ <blockquote class="mx-background--reset">
7
7
  <p>But I must explain to you how all this mistaken idea of denouncing of a <a href="#">pleasure and praising pain</a> was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.</p>
8
- <a href="#" class="link--external">Contact the Lorem Ipsum Squad</a>
8
+ <a href="#" class="mx-link--external">Contact the Lorem Ipsum Squad</a>
9
9
  </blockquote>
10
10
  </div>
@@ -1,5 +1,6 @@
1
1
  import { Meta, StoryObj } from "@storybook/html"
2
- import Component from "./twig/story-button.twig"
2
+ import Component from "./button.twig"
3
+ import Icon from "../Icon/icon.twig"
3
4
  import "./button.css"
4
5
  import {
5
6
  Button as ButtonType,
@@ -62,8 +63,8 @@ export const Link: Story = {
62
63
 
63
64
  export const IconButton: Story = {
64
65
  args: {
65
- iconEnd: {
66
+ iconEnd: Icon({
66
67
  icon: Icons.ARROW_RIGHT,
67
- },
68
+ }),
68
69
  },
69
70
  }
@@ -26,13 +26,13 @@ const Button = ({
26
26
  type = "button",
27
27
  ...props
28
28
  }: ButtonType): JSX.Element => {
29
- const classes = ["button", className]
30
- const buttonMods = [...modifiers].map(modifier => `button--${modifier}`)
29
+ const classes = ["mx-button", className]
30
+ const buttonMods = [...modifiers].map(modifier => `mx-button--${modifier}`)
31
31
  return (
32
32
  <button
33
33
  className={classNames([...classes, ...buttonMods], {
34
- ["button--icon-only"]: iconOnly,
35
- [`icon icon--${icon}`]: icon,
34
+ ["mx-button--icon-only"]: iconOnly,
35
+ [`mx-icon mx-icon--${icon}`]: icon,
36
36
  })}
37
37
  type={type}
38
38
  {...props}
@@ -51,13 +51,13 @@ export const ButtonLink = ({
51
51
  className,
52
52
  ...props
53
53
  }: ButtonLinkType): JSX.Element => {
54
- const classes = ["button", className]
55
- const buttonMods = [...modifiers].map(modifier => `button--${modifier}`)
54
+ const classes = ["mx-button", className]
55
+ const buttonMods = [...modifiers].map(modifier => `mx-button--${modifier}`)
56
56
  return (
57
57
  <Link
58
58
  className={classNames([...classes, ...buttonMods], {
59
- ["button--icon-only"]: iconOnly,
60
- [`icon icon--${icon}`]: icon,
59
+ ["mx-button--icon-only"]: iconOnly,
60
+ [`mx-icon mx-icon--${icon}`]: icon,
61
61
  })}
62
62
  to={to}
63
63
  {...props}
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Atom/Button Button smoke-test 1`] = `
4
- <button class="button "
4
+ <button class="mx-button "
5
5
  type="button"
6
6
  >
7
7
  <span>
@@ -11,19 +11,19 @@ exports[`Atom/Button Button smoke-test 1`] = `
11
11
  `;
12
12
 
13
13
  exports[`Atom/Button IconButton smoke-test 1`] = `
14
- <button class="button "
14
+ <button class="mx-button "
15
15
  type="button"
16
16
  >
17
17
  <span>
18
18
  Button
19
19
  </span>
20
- <span class="icon icon--arrow-right ">
20
+ <span class="mx-icon mx-icon--arrow-right ">
21
21
  </span>
22
22
  </button>
23
23
  `;
24
24
 
25
25
  exports[`Atom/Button Link smoke-test 1`] = `
26
- <a class="button "
26
+ <a class="mx-button "
27
27
  href="#"
28
28
  >
29
29
  <span>
@@ -33,7 +33,7 @@ exports[`Atom/Button Link smoke-test 1`] = `
33
33
  `;
34
34
 
35
35
  exports[`Atom/Button Primary smoke-test 1`] = `
36
- <button class="button button--dark"
36
+ <button class="mx-button mx-button--dark"
37
37
  type="button"
38
38
  >
39
39
  <span>
@@ -43,7 +43,7 @@ exports[`Atom/Button Primary smoke-test 1`] = `
43
43
  `;
44
44
 
45
45
  exports[`Atom/Button Text smoke-test 1`] = `
46
- <button class="button button--light"
46
+ <button class="mx-button mx-button--light"
47
47
  type="button"
48
48
  >
49
49
  <span>
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Atom/Button Button smoke-test 1`] = `
4
- <button class="button"
4
+ <button class="mx-button"
5
5
  type="button"
6
6
  >
7
7
  Button
@@ -9,7 +9,7 @@ exports[`Atom/Button Button smoke-test 1`] = `
9
9
  `;
10
10
 
11
11
  exports[`Atom/Button Primary smoke-test 1`] = `
12
- <button class="button button--dark"
12
+ <button class="mx-button mx-button--dark"
13
13
  type="button"
14
14
  >
15
15
  Button
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  @layer design-system.atoms {
6
- .button--dark {
6
+ .mx-button--dark {
7
7
  --button-line-colour: var(--colour-primary);
8
8
  --background: var(--colour-primary);
9
9
  --foreground: var(--colour-foreground-reverse);
@@ -14,7 +14,7 @@
14
14
  }
15
15
  }
16
16
 
17
- .button--light {
17
+ .mx-button--light {
18
18
  border: transparent;
19
19
  color: var(--link-colour, var(--colour-primary));
20
20
  text-decoration-line: underline;
@@ -24,7 +24,7 @@
24
24
  }
25
25
  }
26
26
 
27
- .button--destructive {
27
+ .mx-button--destructive {
28
28
  --button-line-colour: var(--colour-error-foreground);
29
29
  --background: var(--colour-error-foreground);
30
30
  --foreground: var(--colour-foreground-reverse);
@@ -35,7 +35,7 @@
35
35
  }
36
36
  }
37
37
 
38
- .button--white {
38
+ .mx-button--white {
39
39
  --button-line-colour: var(--colour-foreground-reverse);
40
40
  --background: var(--colour-foreground-reverse);
41
41
  --foreground: var(--colour-foreground);
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  @layer design-system.atoms {
6
- .button {
6
+ .mx-button {
7
7
  --outline-offset: 1px;
8
8
  --outline-width: 4px;
9
9
 
@@ -38,23 +38,23 @@
38
38
  }
39
39
  }
40
40
 
41
- .button--full-width {
41
+ .mx-button--full-width {
42
42
  inline-size: 100%;
43
43
  justify-content: center;
44
44
  }
45
45
 
46
- .button--large {
46
+ .mx-button--large {
47
47
  --vertical-padding: var(--spacing-s);
48
48
  --horizontal-padding: var(--spacing-l);
49
49
  }
50
50
 
51
- .button--small {
51
+ .mx-button--small {
52
52
  --button-font-size: var(--font-size-s);
53
53
  --vertical-padding: var(--spacing-xxxs);
54
54
  --horizontal-padding: var(--spacing-s);
55
55
  }
56
56
 
57
- .button--icon-only {
57
+ .mx-button--icon-only {
58
58
  inline-size: var(--spacing-xl);
59
59
  block-size: var(--spacing-xl);
60
60
  padding: 0;
@@ -68,7 +68,7 @@
68
68
  mask-size: var(--spacing-s);
69
69
  }
70
70
 
71
- &:has(.icon) {
71
+ &:has(.mx-icon) {
72
72
  place-content: center;
73
73
  }
74
74
  }
@@ -1,4 +1,4 @@
1
- {% set baseClass = 'button' %}
1
+ {% set baseClass = 'mx-button' %}
2
2
  {% set classes = [
3
3
  baseClass,
4
4
  iconOnly ? baseClass~"--icon-only" : null,
@@ -6,7 +6,7 @@
6
6
  {% for modifier in modifiers %}
7
7
  {% set classes = classes|merge([baseClass~"--"~modifier]) %}
8
8
  {% endfor %}
9
- {% set attributes = (attributes|default(create_attribute())).addClass(classes) %}
9
+ {% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
10
10
 
11
11
  {% if href %}
12
12
  <a{{ attributes}} href="{{ href }}">
@@ -1,7 +1,6 @@
1
1
  import { Meta, StoryObj } from "@storybook/html"
2
2
  import Component from "./heading.twig"
3
3
  import "../_base.css"
4
- import { HeadingStyles } from "../../enums"
5
4
  import { HeadingTypes } from "@pnx-mixtape/ids-shape"
6
5
 
7
6
  const meta: Meta<typeof Component> = {
@@ -12,7 +11,11 @@ const meta: Meta<typeof Component> = {
12
11
  },
13
12
  argTypes: {
14
13
  as: { options: Object.values(HeadingTypes), control: "select" },
15
- modifier: { options: Object.values(HeadingStyles), control: "select" },
14
+ modifiers: {
15
+ // @todo add mixtapes heading modifiers.
16
+ options: Object.values(HeadingTypes),
17
+ control: "multi-select",
18
+ },
16
19
  title: { control: "text" },
17
20
  excluded: { control: "boolean" },
18
21
  srOnly: { control: "boolean" },
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Atom/Heading Headings smoke-test 1`] = `
4
- <h2 class>
4
+ <h2>
5
5
  Heading
6
6
  </h2>
7
7
  `;
@@ -1,18 +1,18 @@
1
1
  @layer design-system.defaults {
2
2
  :is(
3
- .headline,
3
+ .mx-headline,
4
4
  h1,
5
- .heading--xxl,
5
+ .mx-heading--xxl,
6
6
  h2,
7
- .heading--xl,
7
+ .mx-heading--xl,
8
8
  h3,
9
- .heading--l,
9
+ .mx-heading--l,
10
10
  h4,
11
- .heading--m,
11
+ .mx-heading--m,
12
12
  h5,
13
- .heading--s,
13
+ .mx-heading--s,
14
14
  h6,
15
- .heading--xs
15
+ .mx-heading--xs
16
16
  ) {
17
17
  font-family: var(--heading-font-family, var(--font-family));
18
18
  line-height: var(--line-height-h);
@@ -23,17 +23,17 @@
23
23
 
24
24
  @supports (font-size: 1cqi) {
25
25
  :is(
26
- .headline,
26
+ .mx-headline,
27
27
  h1,
28
- .heading--xxl,
28
+ .mx-heading--xxl,
29
29
  h2,
30
- .heading--xl,
30
+ .mx-heading--xl,
31
31
  h3,
32
- .heading--l,
32
+ .mx-heading--l,
33
33
  h4,
34
- .heading--m,
34
+ .mx-heading--m,
35
35
  h5,
36
- .heading--s
36
+ .mx-heading--s
37
37
  ) {
38
38
  --font-min: calc(
39
39
  var(--heading-font-size) - var(--heading-font-size) *
@@ -48,37 +48,37 @@
48
48
  }
49
49
  }
50
50
 
51
- .headline {
51
+ .mx-headline {
52
52
  --heading-font-size: var(--font-size-xxxl);
53
53
  }
54
54
 
55
55
  h1,
56
- .heading--xxl {
56
+ .mx-heading--xxl {
57
57
  --heading-font-size: var(--font-size-xxl);
58
58
  }
59
59
 
60
60
  h2,
61
- .heading--xl {
61
+ .mx-heading--xl {
62
62
  --heading-font-size: var(--font-size-xl);
63
63
  }
64
64
 
65
65
  h3,
66
- .heading--l {
66
+ .mx-heading--l {
67
67
  --heading-font-size: var(--font-size-l);
68
68
  }
69
69
 
70
70
  h4,
71
- .heading--m {
71
+ .mx-heading--m {
72
72
  --heading-font-size: var(--font-size-m);
73
73
  }
74
74
 
75
75
  h5,
76
- .heading--s {
76
+ .mx-heading--s {
77
77
  --heading-font-size: var(--base-font-size);
78
78
  }
79
79
 
80
80
  h6,
81
- .heading--xs {
81
+ .mx-heading--xs {
82
82
  --heading-font-size: var(--font-size-s);
83
83
  }
84
84
  }
@@ -19,8 +19,11 @@
19
19
  {% set classes = [
20
20
  excluded ? 'is-excluded' : null,
21
21
  srOnly ? 'sr-only' : null,
22
- style ? 'heading--'~style : null,
22
+ style ? 'mx-heading--'~style : null,
23
23
  ] %}
24
- {% set attributes = (attributes|default(create_attribute())).addClass(classes) %}
24
+ {% set attributes = (attributes ?? create_attribute()) %}
25
+ {% if classes|join(" ")|trim() %}
26
+ {% set attributes = attributes.addClass(classes) %}
27
+ {% endif %}
25
28
 
26
29
  <{{ as|default('h2') }} {{ attributes }}>{{ title }}</{{ as|default('h2') }}>
@@ -18,7 +18,7 @@ Icons are available as a css image mask.
18
18
  <IconGallery>
19
19
  {Object.values(Icons).map(name => (
20
20
  <IconItem name={name} key={name}>
21
- <span className={`icon icon--${name}`} />
21
+ <span className={`mx-icon mx-icon--${name}`} />
22
22
  </IconItem>
23
23
  ))}
24
24
  </IconGallery>
@@ -16,11 +16,11 @@ const Icon = ({
16
16
  size,
17
17
  }: IconProps): JSX.Element => (
18
18
  <span
19
- className={classNames("icon", `icon--${icon}`, {
20
- [`icon--color-${color}`]: color,
21
- [`icon--${align}`]: align,
22
- [`icon--${rotate}`]: rotate,
23
- [`icon--size-${size}`]: size,
19
+ className={classNames("mx-icon", `mx-icon--${icon}`, {
20
+ [`mx-icon--color-${color}`]: color,
21
+ [`mx-icon--${align}`]: align,
22
+ [`mx-icon--${rotate}`]: rotate,
23
+ [`mx-icon--size-${size}`]: size,
24
24
  })}
25
25
  >
26
26
  {text}
@@ -1,18 +1,18 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Atom/Icon Alignment smoke-test 1`] = `
4
- <span class="icon icon--arrow-left icon--end ">
4
+ <span class="mx-icon mx-icon--arrow-left mx-icon--end ">
5
5
  Message with icon
6
6
  </span>
7
7
  `;
8
8
 
9
9
  exports[`Atom/Icon Icon smoke-test 1`] = `
10
- <span class="icon icon--arrow-right ">
10
+ <span class="mx-icon mx-icon--arrow-right ">
11
11
  </span>
12
12
  `;
13
13
 
14
14
  exports[`Atom/Icon WithText smoke-test 1`] = `
15
- <span class="icon icon--arrow-right ">
15
+ <span class="mx-icon mx-icon--arrow-right ">
16
16
  Message with icon
17
17
  </span>
18
18
  `;
@@ -1,18 +1,18 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Atom/Icon Alignment smoke-test 1`] = `
4
- <span class="icon icon--arrow-left icon--end">
4
+ <span class="mx-icon mx-icon--arrow-left mx-icon--end">
5
5
  Message with icon
6
6
  </span>
7
7
  `;
8
8
 
9
9
  exports[`Atom/Icon Icon smoke-test 1`] = `
10
- <span class="icon icon--arrow-right">
10
+ <span class="mx-icon mx-icon--arrow-right">
11
11
  </span>
12
12
  `;
13
13
 
14
14
  exports[`Atom/Icon WithText smoke-test 1`] = `
15
- <span class="icon icon--arrow-right">
15
+ <span class="mx-icon mx-icon--arrow-right">
16
16
  Message with icon
17
17
  </span>
18
18
  `;