@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
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  @layer design-system.layouts {
6
- .grid {
6
+ .mx-grid {
7
7
  --grid-repeat: auto-fit;
8
8
  --grid-min: 20ch;
9
9
 
@@ -25,85 +25,85 @@
25
25
  }
26
26
  }
27
27
 
28
- [class*="grid--cols-"] {
28
+ [class*="mx-grid--cols-"] {
29
29
  --grid-repeat: 1;
30
30
  }
31
31
 
32
- .grid--cols-xs-2 {
32
+ .mx-grid--cols-xs-2 {
33
33
  @media (--x-small-up) {
34
34
  --grid-repeat: 2;
35
35
  }
36
36
  }
37
37
 
38
- .grid--cols-sm-2 {
38
+ .mx-grid--cols-sm-2 {
39
39
  @media (--small-up) {
40
40
  --grid-repeat: 2;
41
41
  }
42
42
  }
43
43
 
44
- .grid--cols-md-2 {
44
+ .mx-grid--cols-md-2 {
45
45
  @media (--medium-up) {
46
46
  --grid-repeat: 2;
47
47
  }
48
48
  }
49
49
 
50
- .grid--cols-lg-2 {
50
+ .mx-grid--cols-lg-2 {
51
51
  @media (--large-up) {
52
52
  --grid-repeat: 2;
53
53
  }
54
54
  }
55
55
 
56
- .grid--cols-xl-2 {
56
+ .mx-grid--cols-xl-2 {
57
57
  @media (--x-large-up) {
58
58
  --grid-repeat: 2;
59
59
  }
60
60
  }
61
61
 
62
- .grid--cols-md-3 {
62
+ .mx-grid--cols-md-3 {
63
63
  @media (--medium-up) {
64
64
  --grid-repeat: 3;
65
65
  }
66
66
  }
67
67
 
68
- .grid--cols-lg-3 {
68
+ .mx-grid--cols-lg-3 {
69
69
  @media (--large-up) {
70
70
  --grid-repeat: 3;
71
71
  }
72
72
  }
73
73
 
74
- .grid--cols-xl-3 {
74
+ .mx-grid--cols-xl-3 {
75
75
  @media (--x-large-up) {
76
76
  --grid-repeat: 3;
77
77
  }
78
78
  }
79
79
 
80
- .grid--cols-md-4 {
80
+ .mx-grid--cols-md-4 {
81
81
  @media (--medium-up) {
82
82
  --grid-repeat: 4;
83
83
  }
84
84
  }
85
85
 
86
- .grid--cols-lg-4 {
86
+ .mx-grid--cols-lg-4 {
87
87
  @media (--large-up) {
88
88
  --grid-repeat: 4;
89
89
  }
90
90
  }
91
91
 
92
- .grid--cols-xl-4 {
92
+ .mx-grid--cols-xl-4 {
93
93
  @media (--x-large-up) {
94
94
  --grid-repeat: 4;
95
95
  }
96
96
  }
97
97
 
98
- .grid--collapse {
98
+ .mx-grid--collapse {
99
99
  --grid-gap: 0;
100
100
  }
101
101
 
102
- .grid--collapse-cols {
102
+ .mx-grid--collapse-cols {
103
103
  grid-column-gap: 0;
104
104
  }
105
105
 
106
- .grid--collapse-rows {
106
+ .mx-grid--collapse-rows {
107
107
  grid-row-gap: 0;
108
108
  }
109
109
  }
@@ -112,71 +112,71 @@
112
112
  * Grid items.
113
113
  */
114
114
  @layer design-system.layouts {
115
- [class*="grid-item__span-"] {
115
+ [class*="mx-grid-item__span-"] {
116
116
  grid-column: auto / var(--grid-span, auto);
117
117
  }
118
118
 
119
- .grid-item__span-xs-2 {
119
+ .mx-grid-item__span-xs-2 {
120
120
  @media (--x-small-up) {
121
121
  --grid-span: span 2;
122
122
  }
123
123
  }
124
124
 
125
- .grid-item__span-sm-2 {
125
+ .mx-grid-item__span-sm-2 {
126
126
  @media (--small-up) {
127
127
  --grid-span: span 2;
128
128
  }
129
129
  }
130
130
 
131
- .grid-item__span-md-2 {
131
+ .mx-grid-item__span-md-2 {
132
132
  @media (--medium-up) {
133
133
  --grid-span: span 2;
134
134
  }
135
135
  }
136
136
 
137
- .grid-item__span-lg-2 {
137
+ .mx-grid-item__span-lg-2 {
138
138
  @media (--large-up) {
139
139
  --grid-span: span 2;
140
140
  }
141
141
  }
142
142
 
143
- .grid-item__span-xl-2 {
143
+ .mx-grid-item__span-xl-2 {
144
144
  @media (--x-large-up) {
145
145
  --grid-span: span 2;
146
146
  }
147
147
  }
148
148
 
149
- .grid-item__span-md-3 {
149
+ .mx-grid-item__span-md-3 {
150
150
  @media (--medium-up) {
151
151
  --grid-span: span 3;
152
152
  }
153
153
  }
154
154
 
155
- .grid-item__span-lg-3 {
155
+ .mx-grid-item__span-lg-3 {
156
156
  @media (--large-up) {
157
157
  --grid-span: span 3;
158
158
  }
159
159
  }
160
160
 
161
- .grid-item__span-xl-3 {
161
+ .mx-grid-item__span-xl-3 {
162
162
  @media (--x-large-up) {
163
163
  --grid-span: span 3;
164
164
  }
165
165
  }
166
166
 
167
- .grid-item__span-md-4 {
167
+ .mx-grid-item__span-md-4 {
168
168
  @media (--medium-up) {
169
169
  --grid-span: span 4;
170
170
  }
171
171
  }
172
172
 
173
- .grid-item__span-lg-4 {
173
+ .mx-grid-item__span-lg-4 {
174
174
  @media (--large-up) {
175
175
  --grid-span: span 4;
176
176
  }
177
177
  }
178
178
 
179
- .grid-item__span-xl-4 {
179
+ .mx-grid-item__span-xl-4 {
180
180
  @media (--x-large-up) {
181
181
  --grid-span: span 4;
182
182
  }
@@ -184,7 +184,7 @@
184
184
  }
185
185
 
186
186
  @media print {
187
- .grid {
187
+ .mx-grid {
188
188
  display: block;
189
189
  }
190
190
  }
@@ -1,10 +1,13 @@
1
- {% set baseClass = 'grid' %}
1
+ {% set baseClass = 'mx-grid' %}
2
2
  {% set classes = [baseClass] %}
3
3
  {% for modifier in modifiers %}
4
4
  {% set classes = classes|merge([baseClass~"--cols-"~modifier]) %}
5
5
  {% endfor %}
6
- {% set attributes = (attributes|default(create_attribute())).addClass(classes) %}
6
+ {% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
7
+ {% set as = as|default("div") %}
7
8
 
8
- <{{ as|default("div") }}{{ attributes }}>
9
- {{ items }}
10
- </{{ as|default("div") }}>
9
+ <{{ as }}{{ attributes }}>
10
+ {% for item in items %}
11
+ {{ item }}
12
+ {% endfor %}
13
+ </{{ as }}>
@@ -22,7 +22,6 @@ const GlobalToggle = ({
22
22
  iconOnly={true}
23
23
  icon={open ? Icons.CLOSE : icon}
24
24
  modifiers={[ButtonModifiers.DARK]}
25
- className="global__toggle__menu"
26
25
  aria-expanded={open}
27
26
  aria-controls={toggleId}
28
27
  {...props}
@@ -9,7 +9,7 @@ type LogoProps = {
9
9
  }
10
10
 
11
11
  const Logo = ({ to, src, alt }: LogoProps): JSX.Element => (
12
- <Link to={to} className="logo">
12
+ <Link to={to} className="mx-logo">
13
13
  <Media src={src} alt={alt} loading="eager"></Media>
14
14
  </Link>
15
15
  )
@@ -49,10 +49,15 @@ export default class GlobalToggle extends HTMLElement {
49
49
  matches,
50
50
  }: MediaQueryList | MediaQueryListEvent): void => {
51
51
  if (!this.trigger) return
52
+ const { signal }: AbortController = this.controller
52
53
  if (matches) {
53
54
  this.widget.attach()
54
55
  this.target.setAttribute("inert", "")
55
- this.trigger.addEventListener("disclosure-toggle", this.handleDisclosure)
56
+ this.trigger.addEventListener(
57
+ "disclosure-toggle",
58
+ this.handleDisclosure,
59
+ { signal },
60
+ )
56
61
  } else {
57
62
  this.widget.detach()
58
63
  this.target.removeAttribute("inert")
@@ -1,18 +1,253 @@
1
1
  import { Meta, StoryObj } from "@storybook/html"
2
2
  import Component from "./header.twig"
3
- import "./_toggles.css"
3
+ import StackedComponent from "./header-stacked.twig"
4
+ import Icon from "../../Atom/Icon/icon.twig"
5
+ import Logo from "../Header/twig/logo.twig"
6
+ import SearchForm from "../../Form/Search/search-form.twig"
7
+ import InputText from "../../Form/TextInput/input-text.twig"
8
+ import Button from "../../Atom/Button/button.twig"
9
+ import Navigation from "../../Component/Navigation/navigation.twig"
4
10
  import "./_header.css"
11
+ import "./_toggles.css"
5
12
  import "./Elements/GlobalToggle"
13
+ import "../../Component/Navigation/Elements/Navigation"
14
+ import {
15
+ ButtonTypes,
16
+ Header as HeaderType,
17
+ InputTypeTypes,
18
+ } from "@pnx-mixtape/ids-shape"
19
+ import { Page } from "../../../.storybook/decorators"
20
+ import { Icons } from "../../enums"
6
21
 
7
- const meta: Meta<typeof Component> = {
8
- title: "Layout/Header/Primary",
9
- tags: ["autodocs"],
22
+ const meta: Meta<HeaderType> = {
23
+ tags: ["autodocs", "ids-mvp"],
10
24
  component: Component,
25
+ args: {
26
+ logo: Logo({
27
+ href: "#",
28
+ src: "./mixtape-logo.png",
29
+ alt: "Mixtape",
30
+ width: "120",
31
+ }),
32
+ navigation: Navigation({
33
+ id: "header-story",
34
+ type: "dropdown",
35
+ title: "Primary navigation",
36
+ items: [
37
+ {
38
+ link: {
39
+ title: "News",
40
+ href: "#",
41
+ },
42
+ },
43
+ {
44
+ link: {
45
+ title: "About us",
46
+ href: "#",
47
+ },
48
+ },
49
+ {
50
+ link: {
51
+ title: "Contact",
52
+ href: "#",
53
+ },
54
+ },
55
+ {
56
+ link: {
57
+ title: "Resources",
58
+ href: "#",
59
+ },
60
+ },
61
+ ],
62
+ }),
63
+ },
64
+ parameters: {
65
+ deepControls: { enabled: true },
66
+ },
67
+ argTypes: {
68
+ title: { control: "text" },
69
+ description: { control: "text" },
70
+ // @ts-expect-error The controls follow the shape
71
+ "logo.href": { control: "text" },
72
+ "logo.image.src": { control: "text" },
73
+ "logo.image.alt": { control: "text" },
74
+ },
75
+ decorators: [Page],
11
76
  }
12
77
 
13
78
  export default meta
14
- type Story = StoryObj<typeof meta>
79
+ type Story = StoryObj<HeaderType>
80
+
81
+ export const Header: Story = {}
82
+
83
+ export const WithTitle: Story = {
84
+ args: {
85
+ title: "Design System",
86
+ description: "A PreviousNext Product",
87
+ },
88
+ }
89
+
90
+ export const Search: Story = {
91
+ args: {
92
+ search: SearchForm({
93
+ action: "#search",
94
+ input: InputText({
95
+ id: "search-keyword",
96
+ type: InputTypeTypes.SEARCH,
97
+ name: "search-form",
98
+ placeholder: "Keywords...",
99
+ label: "Search by keywords",
100
+ }),
101
+ button: Button({
102
+ title: "Search",
103
+ iconOnly: true,
104
+ iconStart: Icon({
105
+ icon: Icons.SEARCH,
106
+ }),
107
+ as: ButtonTypes.SUBMIT,
108
+ }),
109
+ }),
110
+ },
111
+ }
112
+
113
+ export const Controls: Story = {
114
+ args: {
115
+ controls: [
116
+ Button({
117
+ as: ButtonTypes.BUTTON,
118
+ title: "Translate",
119
+ iconEnd: Icon({
120
+ icon: Icons.CHEVRON_DOWN,
121
+ }),
122
+ }),
123
+ ],
124
+ },
125
+ }
15
126
 
16
- export const Primary: Story = {
17
- args: {},
127
+ export const Stacked: Story = {
128
+ args: {
129
+ search: SearchForm({
130
+ action: "#search",
131
+ input: InputText({
132
+ id: "search-keyword",
133
+ type: InputTypeTypes.SEARCH,
134
+ name: "search-form",
135
+ placeholder: "Keywords...",
136
+ label: "Search by keywords",
137
+ }),
138
+ button: Button({
139
+ title: "Search",
140
+ iconOnly: true,
141
+ iconStart: Icon({
142
+ icon: Icons.SEARCH,
143
+ }),
144
+ as: ButtonTypes.SUBMIT,
145
+ }),
146
+ }),
147
+ controls: [
148
+ Button({
149
+ as: ButtonTypes.BUTTON,
150
+ title: "Translate",
151
+ iconEnd: Icon({
152
+ icon: Icons.CHEVRON_DOWN,
153
+ }),
154
+ }),
155
+ ],
156
+ navigation: Navigation({
157
+ id: "header-stacked-story",
158
+ type: "mega",
159
+ title: "Primary navigation",
160
+ items: [
161
+ {
162
+ link: {
163
+ title: "News",
164
+ href: "#",
165
+ current: true,
166
+ },
167
+ },
168
+ {
169
+ link: {
170
+ title: "About us",
171
+ href: "#",
172
+ },
173
+ items: [
174
+ {
175
+ link: {
176
+ title: "Who",
177
+ href: "#",
178
+ current: true,
179
+ },
180
+ items: [
181
+ {
182
+ link: {
183
+ title: "How come?",
184
+ href: "#",
185
+ current: true,
186
+ },
187
+ },
188
+ {
189
+ link: {
190
+ title: "Why not?",
191
+ href: "#",
192
+ },
193
+ },
194
+ {
195
+ link: {
196
+ title: "What for?",
197
+ href: "#",
198
+ },
199
+ },
200
+ ],
201
+ },
202
+ {
203
+ link: {
204
+ title: "What",
205
+ href: "#",
206
+ },
207
+ },
208
+ {
209
+ link: {
210
+ title: "Why",
211
+ href: "#",
212
+ },
213
+ },
214
+ ],
215
+ },
216
+ {
217
+ link: {
218
+ title: "Contact",
219
+ href: "#",
220
+ },
221
+ items: [
222
+ {
223
+ link: {
224
+ title: "How",
225
+ href: "#",
226
+ current: true,
227
+ },
228
+ },
229
+ {
230
+ link: {
231
+ title: "Where",
232
+ href: "#",
233
+ },
234
+ },
235
+ {
236
+ link: {
237
+ title: "When",
238
+ href: "#",
239
+ },
240
+ },
241
+ ],
242
+ },
243
+ {
244
+ link: {
245
+ title: "Resources",
246
+ href: "#",
247
+ },
248
+ },
249
+ ],
250
+ }),
251
+ },
252
+ render: args => `${StackedComponent(args)}`,
18
253
  }
@@ -5,7 +5,8 @@ import GlobalToggle from "./Components/GlobalToggle"
5
5
  import NavigationDropdown from "../../Component/Navigation/Dropdown"
6
6
  import useToggle from "../../Utility/Hooks/useToggle"
7
7
  import useMediaQuery from "../../Utility/Hooks/useMediaQuery"
8
- import { Icons, SectionStyles, SectionTags } from "../../enums.js"
8
+ import { Icons, SectionStyles } from "../../enums.js"
9
+ import { SectionTypes } from "@pnx-mixtape/ids-shape"
9
10
  import { NavigationItem } from "../../Component/Navigation/Navigation"
10
11
 
11
12
  type PrimaryHeaderProps = PropsWithChildren & {
@@ -30,16 +31,16 @@ const Header = ({
30
31
 
31
32
  return (
32
33
  <Section
33
- as={SectionTags.HEADER}
34
+ as={SectionTypes.HEADER}
34
35
  sizes={size}
35
- className={classNames("global__primary", className)}
36
+ className={classNames("mx-header", className)}
36
37
  containing
37
38
  >
38
- <div className="flex">
39
- {logo}
39
+ <div className="mx-header__inner">
40
+ <div className="mx-header__brand">{logo}</div>
40
41
 
41
42
  {isMobile === true && (
42
- <div className="global__toggles">
43
+ <div className="mx-header__toggles">
43
44
  <GlobalToggle
44
45
  toggleId={id}
45
46
  icon={Icons.MENU}
@@ -50,21 +51,23 @@ const Header = ({
50
51
  </div>
51
52
  )}
52
53
 
53
- <div
54
- id={id}
55
- className="global__primary__nav"
56
- // @ts-expect-error inert is allowed.
57
- inert={!on && isMobile ? "" : null}
58
- >
59
- <NavigationDropdown
60
- title="Primary Navigation"
61
- items={navigationItems}
62
- mediaQuery={mediaQuery}
54
+ <div className="mx-header__main">
55
+ <div
63
56
  id={id}
64
- ></NavigationDropdown>
65
- </div>
57
+ className="mx-header__nav"
58
+ // @ts-expect-error inert is allowed.
59
+ inert={!on && isMobile ? "" : null}
60
+ >
61
+ <NavigationDropdown
62
+ title="Primary Navigation"
63
+ items={navigationItems}
64
+ mediaQuery={mediaQuery}
65
+ id={id}
66
+ ></NavigationDropdown>
67
+ </div>
66
68
 
67
- {children}
69
+ {children}
70
+ </div>
68
71
  </div>
69
72
  </Section>
70
73
  )