@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
@@ -1,54 +1,58 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Layout/Header PrimaryHeader smoke-test 1`] = `
4
- <header class="page global__primary section--s">
5
- <div class="flex">
6
- <a href="https://mixtape.pnx.io/"
7
- class="logo"
8
- >
9
- <img alt="Mixtape"
10
- src="https://mixtape.pnx.io/images/mixtape-logo.png"
11
- loading="eager"
4
+ <header class="mx-page mx-header mx-section--s">
5
+ <div class="mx-header__inner">
6
+ <div class="mx-header__brand">
7
+ <a href="https://mixtape.pnx.io/"
8
+ class="mx-logo"
12
9
  >
13
- </a>
14
- <div id=":r0:"
15
- class="global__primary__nav"
16
- >
17
- <nav class="nav nav--dropdown"
18
- aria-label="Primary Navigation"
19
- id=":r0:"
10
+ <img alt="Mixtape"
11
+ src="https://mixtape.pnx.io/images/mixtape-logo.png"
12
+ loading="eager"
13
+ >
14
+ </a>
15
+ </div>
16
+ <div class="mx-header__main">
17
+ <div id=":r0:"
18
+ class="mx-header__nav"
20
19
  >
21
- <ul class="nav__level-1">
22
- <li class="nav__has-subnav">
23
- <a href="http://example.com/#1"
24
- class
25
- >
26
- Home
27
- </a>
28
- <button aria-controls="unique-0"
29
- aria-expanded="false"
30
- class="nav__toggle icon icon--only icon--chevron-down"
31
- type="button"
32
- >
33
- Sub-navigation
34
- </button>
35
- </li>
36
- <li class>
37
- <a href="http://example.com/#2"
38
- class
39
- >
40
- About
41
- </a>
42
- </li>
43
- <li class>
44
- <a href="http://example.com/#3"
45
- class
46
- >
47
- Contact
48
- </a>
49
- </li>
50
- </ul>
51
- </nav>
20
+ <nav class="mx-nav mx-nav--dropdown"
21
+ aria-label="Primary Navigation"
22
+ id=":r0:"
23
+ >
24
+ <ul class="mx-nav__level-1">
25
+ <li class="mx-nav__has-subnav">
26
+ <a href="http://example.com/#1"
27
+ class
28
+ >
29
+ Home
30
+ </a>
31
+ <button aria-controls="unique-0"
32
+ aria-expanded="false"
33
+ class="mx-nav__toggle mx-icon mx-icon--only mx-icon--chevron-down"
34
+ type="button"
35
+ >
36
+ Sub-navigation
37
+ </button>
38
+ </li>
39
+ <li class>
40
+ <a href="http://example.com/#2"
41
+ class
42
+ >
43
+ About
44
+ </a>
45
+ </li>
46
+ <li class>
47
+ <a href="http://example.com/#3"
48
+ class
49
+ >
50
+ Contact
51
+ </a>
52
+ </li>
53
+ </ul>
54
+ </nav>
55
+ </div>
52
56
  </div>
53
57
  </div>
54
58
  </header>
@@ -3,25 +3,30 @@
3
3
  */
4
4
 
5
5
  @layer design-system.layouts {
6
- .header {
6
+ .mx-header__inner {
7
7
  position: relative;
8
+ display: grid;
9
+ grid-template-columns: 1fr auto;
10
+ }
8
11
 
9
- & .flex {
10
- flex-wrap: wrap;
11
- align-items: center;
12
- position: relative;
12
+ .mx-header__brand {
13
+ display: flex;
14
+ gap: var(--brand-gap, var(--gap));
15
+ align-items: center;
16
+ margin-inline-end: auto;
17
+ }
13
18
 
14
- &::after {
15
- display: none;
16
- }
19
+ .mx-header__name {
20
+ display: grid;
21
+ }
17
22
 
18
- & .logo {
19
- margin-inline-end: auto;
20
- }
21
- }
23
+ .mx-header__main {
24
+ display: flex;
25
+ gap: var(--main-gap, var(--gap));
26
+ align-items: center;
22
27
  }
23
28
 
24
- .header__nav {
29
+ .mx-header__nav {
25
30
  inline-size: 100%;
26
31
  transition:
27
32
  0.2s opacity var(--ease),
@@ -44,7 +49,7 @@
44
49
  }
45
50
  }
46
51
 
47
- .header__search {
52
+ .mx-header__search {
48
53
  position: absolute;
49
54
  inset-block-start: 2px;
50
55
  inset-inline-start: 0;
@@ -57,7 +62,6 @@
57
62
  display: flex;
58
63
  position: relative;
59
64
  inline-size: auto;
60
- margin-inline-start: var(--spacing-m);
61
65
  }
62
66
 
63
67
  &[inert] {
@@ -67,23 +71,26 @@
67
71
  0.2s opacity var(--ease),
68
72
  0.2s visibility var(--ease);
69
73
  }
74
+
75
+ & input {
76
+ max-inline-size: 150px;
77
+ }
70
78
  }
71
79
 
72
80
  /**
73
81
  * Primary Header Stacked
74
82
  */
83
+ .mx-header__nav-inner {
84
+ display: flex;
85
+ }
75
86
 
76
- .header__nav-right {
87
+ .mx-header__nav-right {
77
88
  margin-inline-start: auto;
78
89
  }
79
90
  }
80
91
 
81
92
  @media print {
82
- .header .header__nav {
93
+ .mx-header .mx-header__nav {
83
94
  display: none;
84
95
  }
85
-
86
- .header .section__content {
87
- max-inline-size: 100%;
88
- }
89
96
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  @layer design-system.layouts {
6
- .header__toggles {
6
+ .mx-header__toggles {
7
7
  display: flex;
8
8
  gap: var(--toggle-gap, var(--spacing-xs));
9
9
  padding-inline-end: 2px;
@@ -14,7 +14,7 @@
14
14
  display: none;
15
15
  }
16
16
 
17
- & .button--secondary {
17
+ & .mx-button--secondary {
18
18
  border-color: transparent;
19
19
  }
20
20
 
@@ -0,0 +1,49 @@
1
+ {% set baseClass = 'mx-header' %}
2
+ {% set classes = [
3
+ baseClass,
4
+ 'mx-section',
5
+ 'mx-section--s',
6
+ ] %}
7
+ {% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
8
+ <header{{ attributes }}>
9
+ <div class="mx-header__inner">
10
+ {% if logo or title or description %}
11
+ <div class="mx-header__brand">
12
+ {{ logo }}
13
+ {% if title or description %}
14
+ <div class="mx-header__name">
15
+ {% if title %}<strong>{{ title }}</strong>{% endif %}
16
+ {{ description }}
17
+ </div>
18
+ {% endif %}
19
+ </div>
20
+ {% endif %}
21
+ {% if navigation or search %}
22
+ <div class="mx-header__toggles">
23
+ {% if search %}
24
+ <mx-global-toggle hideMenu><button aria-controls="primary-search" class="mx-button mx-button--icon-only mx-icon mx-icon--search" disabled>Open Search</button></mx-global-toggle>
25
+ {% endif %}
26
+ {% if navigation %}
27
+ <mx-global-toggle><button aria-controls="primary-nav" class="mx-button mx-button--dark mx-button--icon-only mx-icon mx-icon--menu" disabled>Open Menu</button></mx-global-toggle>
28
+ {% endif %}
29
+ </div>
30
+ {% endif %}
31
+ {% if search %}
32
+ <div id="primary-search" class="mx-header__search global-nav-up-only" aria-label="Search">
33
+ {{ search }}
34
+ </div>
35
+ {% endif %}
36
+ </div>
37
+ </header>
38
+ {% if navigation or controls %}
39
+ <div id="primary-nav" class="mx-header__nav mx-section global-nav-up-only" aria-label="Primary navigation">
40
+ <div class="mx-header__nav-inner">
41
+ {{ navigation }}
42
+ {% if controls %}
43
+ <div class="mx-header__nav-right">
44
+ {{ controls }}
45
+ </div>
46
+ {% endif %}
47
+ </div>
48
+ </div>
49
+ {% endif %}
@@ -1,24 +1,45 @@
1
- <div class="header section section--s">
2
- <div class="flex">
3
- {% block logo %}
4
- {% include "@mixtape/Layout/Header/twig/logo.twig" %}
5
- {% endblock %}
6
- <div class="header__toggles">
7
- <mx-global-toggle hideMenu><button aria-controls="primary-search" class="button button--icon-only icon icon--search" disabled>Open Search</button></mx-global-toggle>
8
- <mx-global-toggle><button aria-controls="primary-nav" class="button button--primary button--icon-only icon icon--menu" disabled>Open Menu</button></mx-global-toggle>
1
+ {% set baseClass = 'mx-header' %}
2
+ {% set classes = [
3
+ baseClass,
4
+ 'mx-section',
5
+ 'mx-section--s',
6
+ ] %}
7
+ {% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
8
+ <header{{ attributes }}>
9
+ <div class="mx-header__inner">
10
+ {% if logo or title or description %}
11
+ <div class="mx-header__brand">
12
+ {{ logo }}
13
+ {% if title or description %}
14
+ <div class="mx-header__name">
15
+ {% if title %}<strong>{{ title }}</strong>{% endif %}
16
+ {{ description }}
17
+ </div>
18
+ {% endif %}
19
+ </div>
20
+ {% endif %}
21
+ {% if navigation or search %}
22
+ <div class="mx-header__toggles">
23
+ {% if search %}
24
+ <mx-global-toggle hideMenu><button aria-controls="primary-search" class="mx-button mx-button--icon-only mx-icon mx-icon--search" disabled>Open Search</button></mx-global-toggle>
25
+ {% endif %}
26
+ {% if navigation %}
27
+ <mx-global-toggle><button aria-controls="primary-nav" class="mx-button mx-button--dark mx-button--icon-only mx-icon mx-icon--menu" disabled>Open Menu</button></mx-global-toggle>
28
+ {% endif %}
9
29
  </div>
10
- <div id="primary-nav" class="header__nav global-nav-up-only" aria-label="Menu">
11
- {% block nav %}
12
- {% include "@mixtape/Component/Navigation/navigation-dropdown.twig" %}
13
- {% endblock %}
14
- </div>
15
- <div id="primary-search" class="header__search global-nav-up-only" aria-label="Search">
16
- {% block search %}
17
- <label for="global-search" class="visually-hidden">Search</label>
18
- <span class="header__search-input input__text--icon icon icon--search">
19
- <input id="global-search" type="text" placeholder="Search...">
20
- </span>
21
- {% endblock %}
30
+ {% endif %}
31
+ <div class="mx-header__main">
32
+ {% if navigation %}
33
+ <div id="primary-nav" class="mx-header__nav global-nav-up-only" aria-label="Primary navigation">
34
+ {{ navigation }}
35
+ </div>
36
+ {% endif %}
37
+ {% if search %}
38
+ <div id="primary-search" class="mx-header__search global-nav-up-only" aria-label="Search">
39
+ {{ search }}
40
+ </div>
41
+ {% endif %}
42
+ {{ controls }}
22
43
  </div>
23
44
  </div>
24
- </div>
45
+ </header>
@@ -1,3 +1,3 @@
1
- <a class="logo {{ modifier_class }}" href="{{ link | default('#') }}">
2
- <img alt="{{ sitename | default('Mixtape') }}" src="{{ logo_src | default('./mixtape-logo.png') }}" width="120" height="49" />
1
+ <a class="mx-logo" href="{{ href }}">
2
+ <img alt="{{ alt }}" src="{{ src }}" width="{{ width }}" height="{{ height }}" />
3
3
  </a>
@@ -1,16 +1,52 @@
1
1
  import { Meta, StoryObj } from "@storybook/html"
2
2
  import Component from "./masthead.twig"
3
+ import Link from "../../Atom/Link/link.twig"
4
+ import Icon from "../../Atom/Icon/icon.twig"
3
5
  import "./masthead.css"
6
+ import {
7
+ Masthead as MastheadType,
8
+ MastheadModifier,
9
+ } from "@pnx-mixtape/ids-shape"
10
+ import { Page } from "../../../.storybook/decorators"
11
+ import { Icons } from "../../enums"
4
12
 
5
- const meta: Meta<typeof Component> = {
6
- title: "Layout/Header/Secondary",
7
- tags: ["autodocs"],
13
+ const meta: Meta<MastheadType> = {
14
+ tags: ["autodocs", "ids-mvp"],
8
15
  component: Component,
16
+ args: {
17
+ content: "A PreviousNext product",
18
+ },
19
+ decorators: [Page],
9
20
  }
10
21
 
11
22
  export default meta
12
- type Story = StoryObj<typeof meta>
23
+ type Story = StoryObj<MastheadType>
13
24
 
14
- export const Secondary: Story = {
15
- args: {},
25
+ export const Masthead: Story = {}
26
+
27
+ export const Light: Story = {
28
+ args: {
29
+ background: MastheadModifier.LIGHT,
30
+ },
31
+ }
32
+
33
+ export const WithLinks: Story = {
34
+ args: {
35
+ links: [
36
+ Link({
37
+ href: "#",
38
+ title: "Create account",
39
+ iconStart: Icon({
40
+ icon: Icons.USER,
41
+ }),
42
+ }),
43
+ Link({
44
+ href: "#",
45
+ title: "Log in",
46
+ iconStart: Icon({
47
+ icon: Icons.LOGIN,
48
+ }),
49
+ }),
50
+ ],
51
+ },
16
52
  }
@@ -1,32 +1,49 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Layout/Header/Secondary Secondary smoke-test 1`] = `
4
- <div class="masthead section section__full section--top-xs section--bottom-xs background--reverse foreground--reverse">
5
- <div class="flex">
6
- <span class="text--s">
7
- Global message
8
- </span>
9
- <nav class="mx-nav masthead__nav nav--inline text--s"
10
- aria-label="Navigation"
11
- >
12
- <ul>
13
- <li>
14
- <a href="#">
15
- Secondary Title
16
- </a>
17
- </li>
18
- <li>
19
- <a href="#">
20
- Secondary Title
21
- </a>
22
- </li>
23
- <li>
24
- <a href="#">
25
- Secondary Title
26
- </a>
27
- </li>
28
- </ul>
29
- </nav>
3
+ exports[`Layout/Masthead Light smoke-test 1`] = `
4
+ <div class="mx-page">
5
+ <div class="mx-masthead mx-section__full mx-page mx-spacing--top-xxs mx-spacing--bottom-xxs mx-background--alt">
6
+ <div class="flex">
7
+ A PreviousNext product
8
+ </div>
9
+ </div>
10
+ </div>
11
+ `;
12
+
13
+ exports[`Layout/Masthead Masthead smoke-test 1`] = `
14
+ <div class="mx-page">
15
+ <div class="mx-masthead mx-section__full mx-page mx-spacing--top-xxs mx-spacing--bottom-xxs mx-background--reverse">
16
+ <div class="flex">
17
+ A PreviousNext product
18
+ </div>
19
+ </div>
20
+ </div>
21
+ `;
22
+
23
+ exports[`Layout/Masthead WithLinks smoke-test 1`] = `
24
+ <div class="mx-page">
25
+ <div class="mx-masthead mx-section__full mx-page mx-spacing--top-xxs mx-spacing--bottom-xxs mx-background--reverse">
26
+ <div class="flex">
27
+ A PreviousNext product
28
+ <nav class="mx-masthead__nav"
29
+ aria-label="Additional links"
30
+ >
31
+ <a href="#">
32
+ <span class="mx-icon mx-icon--user ">
33
+ </span>
34
+ <span>
35
+ Create account
36
+ </span>
37
+ </a>
38
+ <a href="#">
39
+ <span class="mx-icon mx-icon--login ">
40
+ </span>
41
+ <span>
42
+ Log in
43
+ </span>
44
+ </a>
45
+ </nav>
46
+ </div>
30
47
  </div>
31
48
  </div>
32
49
  `;
@@ -3,34 +3,25 @@
3
3
  */
4
4
 
5
5
  @layer design-system.layouts {
6
- .masthead {
6
+ .mx-masthead {
7
7
  & .flex {
8
8
  justify-content: space-between;
9
9
  align-items: center;
10
- padding-block: var(--secondary-gap, var(--spacing-xxs));
11
- padding-inline: 0;
12
-
13
- &::after {
14
- display: none;
15
- }
16
10
  }
17
11
  }
18
12
 
19
- .masthead__nav {
13
+ .mx-masthead__nav {
20
14
  display: none;
21
15
 
22
16
  @media (--global-nav-up) {
23
- display: inline-block;
24
- }
25
-
26
- & ul {
27
- margin: auto;
17
+ display: inline-flex;
18
+ gap: var(--gap);
28
19
  }
29
20
  }
30
21
  }
31
22
 
32
23
  @media print {
33
- .masthead {
24
+ .mx-masthead {
34
25
  display: none;
35
26
  }
36
27
  }
@@ -1,10 +1,28 @@
1
- <div class="masthead section section__full section--top-xs section--bottom-xs background--reverse foreground--reverse">
1
+ {% set baseClass = 'mx-masthead' %}
2
+ {% set classes = [
3
+ baseClass,
4
+ 'mx-section__full',
5
+ 'mx-page',
6
+ 'mx-spacing--top-xxs mx-spacing--bottom-xxs',
7
+ background == "light" ? 'mx-background--alt' : 'mx-background--reverse',
8
+ ] %}
9
+ {% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
10
+ {% if skipLinks %}
11
+ <nav class="mx-skip-links" aria-label="Skip to links">
12
+ {{ skipLinks }}
13
+ </nav>
14
+ {% endif %}
15
+ {% if content or links %}
16
+ <div{{ attributes }}>
2
17
  <div class="flex">
3
- {% block left %}
4
- <span class="text--s">Global message</span>
5
- {% endblock %}
6
- {% block right %}
7
- {% include "@mixtape/Component/Navigation/navigation.twig" with { 'modifier_class': 'masthead__nav nav--inline text--s' } %}
8
- {% endblock %}
18
+ {{ content }}
19
+ {% if links %}
20
+ <nav class="mx-masthead__nav" aria-label="Additional links">
21
+ {% for link in links %}
22
+ {{ link }}
23
+ {% endfor %}
24
+ </nav>
25
+ {% endif %}
9
26
  </div>
10
27
  </div>
28
+ {% endif %}
@@ -6,9 +6,9 @@ type PageProps = PropsWithChildren & {
6
6
  }
7
7
 
8
8
  const Page = ({ children, header, footer }: PageProps): JSX.Element => (
9
- <div className="page">
9
+ <div className="mx-page">
10
10
  {header}
11
- <main className="section">{children}</main>
11
+ <main className="mx-section">{children}</main>
12
12
  {footer}
13
13
  </div>
14
14
  )