@pnx-mixtape/mxds 0.0.21 → 0.0.23

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 (380) hide show
  1. package/dist/build/accordion.entry.js +32 -43
  2. package/dist/build/accordion.entry.js.map +1 -1
  3. package/dist/build/base.css +19 -39
  4. package/dist/build/button.css +7 -8
  5. package/dist/build/chunks/{Accordion-O-huO4At.js → Accordion-D1HQ0FDq.js} +23 -21
  6. package/dist/build/chunks/{Accordion-O-huO4At.js.map → Accordion-D1HQ0FDq.js.map} +1 -1
  7. package/dist/build/chunks/disclosure-widget-CdjCdx7t.js +129 -0
  8. package/dist/build/chunks/disclosure-widget-CdjCdx7t.js.map +1 -0
  9. package/dist/build/chunks/drop-menu.entry-fzV-_VFl.js +70 -0
  10. package/dist/build/chunks/drop-menu.entry-fzV-_VFl.js.map +1 -0
  11. package/dist/build/chunks/{polyfills-C-B7iqDG.js → polyfills-DnrsypYs.js} +35 -26
  12. package/dist/build/chunks/polyfills-DnrsypYs.js.map +1 -0
  13. package/dist/build/chunks/popover.entry-BQvyR0d5.js +38 -0
  14. package/dist/build/chunks/popover.entry-BQvyR0d5.js.map +1 -0
  15. package/dist/build/chunks/{utilities-DXELy_An.js → utilities-Ci7wwNeg.js} +9 -106
  16. package/dist/build/chunks/utilities-Ci7wwNeg.js.map +1 -0
  17. package/dist/build/constants.css +10 -31
  18. package/dist/build/dialog.entry.js +23 -31
  19. package/dist/build/dialog.entry.js.map +1 -1
  20. package/dist/build/drop-menu.entry.js +1 -1
  21. package/dist/build/drupal.css +5 -9
  22. package/dist/build/filters.entry.js +54 -50
  23. package/dist/build/filters.entry.js.map +1 -1
  24. package/dist/build/form.css +12 -26
  25. package/dist/build/global-alert.entry.js +26 -19
  26. package/dist/build/global-alert.entry.js.map +1 -1
  27. package/dist/build/grid.css +3 -9
  28. package/dist/build/header.css +5 -3
  29. package/dist/build/header.entry.js +93 -88
  30. package/dist/build/header.entry.js.map +1 -1
  31. package/dist/build/icon.css +3 -3
  32. package/dist/build/in-page-navigation.entry.js +16 -12
  33. package/dist/build/in-page-navigation.entry.js.map +1 -1
  34. package/dist/build/navigation.css +21 -56
  35. package/dist/build/navigation.entry.js +148 -50
  36. package/dist/build/navigation.entry.js.map +1 -1
  37. package/dist/build/page.css +1 -1
  38. package/dist/build/popover.css +119 -0
  39. package/dist/build/popover.entry.js +2 -0
  40. package/dist/build/popover.entry.js.map +1 -0
  41. package/dist/build/section.css +1 -1
  42. package/dist/build/sticky.entry.js +11 -12
  43. package/dist/build/sticky.entry.js.map +1 -1
  44. package/dist/build/tabs.entry.js +108 -91
  45. package/dist/build/tabs.entry.js.map +1 -1
  46. package/dist/build/utility-list.css +43 -0
  47. package/dist/build/utility-list.entry.js +80 -0
  48. package/dist/build/utility-list.entry.js.map +1 -0
  49. package/package.json +9 -10
  50. package/src/Atom/{Base.mdx → Atom.mdx} +1 -1
  51. package/src/Atom/Background/Backgrounds.stories.ts +21 -4
  52. package/src/Atom/Background/__snapshots__/Backgrounds.stories.ts.snap +1 -1
  53. package/src/Atom/Background/_background.css +1 -2
  54. package/src/Atom/Blockquote/_blockquote.css +1 -2
  55. package/src/Atom/Button/Button.stories.ts +128 -19
  56. package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +75 -11
  57. package/src/Atom/Button/__snapshots__/Button.stories.tsx.snap +1 -1
  58. package/src/Atom/Button/_buttons.css +5 -5
  59. package/src/Atom/DefinitionList/DefinitionList.stories.ts +20 -3
  60. package/src/Atom/DefinitionList/DefinitionList.stories.tsx +3 -9
  61. package/src/Atom/DefinitionList/DefinitionList.tsx +3 -4
  62. package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.ts.snap +1 -1
  63. package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.tsx.snap +1 -1
  64. package/src/Atom/Heading/Heading.stories.ts +49 -7
  65. package/src/Atom/Heading/Heading.tsx +1 -6
  66. package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +9 -1
  67. package/src/Atom/Heading/__snapshots__/Heading.stories.tsx.snap +1 -1
  68. package/src/Atom/Heading/_headings.css +1 -2
  69. package/src/Atom/Icon/Icon.mdx +5 -1
  70. package/src/Atom/Icon/Icon.stories.ts +76 -6
  71. package/src/Atom/Icon/Icon.tsx +1 -8
  72. package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +18 -4
  73. package/src/Atom/Icon/__snapshots__/Icon.stories.tsx.snap +1 -1
  74. package/src/Atom/Icon/_icon.css +1 -1
  75. package/src/Atom/Image/Image.stories.ts +4 -3
  76. package/src/Atom/Image/__snapshots__/Image.stories.ts.snap +1 -1
  77. package/src/Atom/Link/Link.stories.ts +74 -7
  78. package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +4 -4
  79. package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +1 -1
  80. package/src/Atom/Media/Media.stories.ts +34 -5
  81. package/src/Atom/Media/Media.tsx +1 -6
  82. package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +2 -2
  83. package/src/Atom/Media/__snapshots__/Media.stories.tsx.snap +1 -1
  84. package/src/Atom/Media/_media.css +2 -10
  85. package/src/Atom/Spacing/Spacing.stories.ts +45 -31
  86. package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +5 -4
  87. package/src/Atom/Spacing/spacing.twig +5 -2
  88. package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +1 -1
  89. package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +1 -1
  90. package/src/Atom/Table/_table.css +1 -2
  91. package/src/Atom/Text/Text.stories.ts +62 -0
  92. package/src/Atom/Text/__snapshots__/{TextSizes.stories.ts.snap → Text.stories.ts.snap} +14 -27
  93. package/src/Atom/Text/__snapshots__/Text.stories.tsx.snap +1 -1
  94. package/src/Atom/Text/_text-sizes.css +2 -4
  95. package/src/Atom/Text/text-style.twig +11 -1
  96. package/src/Atom/Text/text-styles-example.twig +2 -16
  97. package/src/Atom/Video/Video.stories.ts +6 -4
  98. package/src/Atom/Video/Video.tsx +1 -5
  99. package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +1 -1
  100. package/src/Atom/_generic.css +4 -4
  101. package/src/Atom/_hr.css +1 -2
  102. package/src/Component/Accordion/Accordion.stories.ts +26 -8
  103. package/src/Component/Accordion/Accordion.stories.tsx +8 -10
  104. package/src/Component/Accordion/Accordion.tsx +2 -13
  105. package/src/Component/Accordion/AccordionItem.stories.ts +90 -0
  106. package/src/Component/Accordion/Components/AccordionContent.tsx +1 -5
  107. package/src/Component/Accordion/Components/AccordionTitle.tsx +1 -4
  108. package/src/Component/Accordion/Elements/Accordion.ts +1 -1
  109. package/src/Component/Accordion/Elements/AccordionDiv.ts +4 -11
  110. package/src/Component/Accordion/Elements/AccordionGroup.ts +10 -24
  111. package/src/Component/Accordion/Elements/AccordionMobile.ts +4 -4
  112. package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +17 -6
  113. package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +1 -1
  114. package/src/Component/Accordion/__snapshots__/AccordionItem.stories.ts.snap +90 -0
  115. package/src/Component/Accordion/accordion.css +7 -5
  116. package/src/Component/Accordion/twig/accordion-div.twig +13 -11
  117. package/src/Component/Accordion/twig/accordion-mobile.twig +13 -11
  118. package/src/Component/Breadcrumb/Breadcrumb.stories.ts +14 -0
  119. package/src/Component/Breadcrumb/Breadcrumb.tsx +2 -12
  120. package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +1 -1
  121. package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +1 -1
  122. package/src/Component/Breadcrumb/breadcrumb.css +1 -4
  123. package/src/Component/Callout/Callout.stories.ts +20 -0
  124. package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +1 -1
  125. package/src/Component/Callout/callout.css +1 -2
  126. package/src/Component/Card/Card.stories.ts +129 -14
  127. package/src/Component/Card/Card.stories.tsx +2 -2
  128. package/src/Component/Card/Components/CardContent.tsx +1 -5
  129. package/src/Component/Card/__snapshots__/Card.stories.ts.snap +24 -24
  130. package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +1 -1
  131. package/src/Component/Card/card.css +2 -6
  132. package/src/Component/Card/card.twig +1 -1
  133. package/src/Component/Carousel/Carousel.stories.ts +61 -8
  134. package/src/Component/Carousel/Elements/Carousel.ts +10 -19
  135. package/src/Component/Carousel/__snapshots__/Carousel.stories.ts.snap +321 -35
  136. package/src/Component/Carousel/carousel.css +1 -2
  137. package/src/Component/ContentBlock/Components/ContentBlockContent.tsx +1 -5
  138. package/src/Component/ContentBlock/Components/ContentBlockMedia.tsx +1 -4
  139. package/src/Component/ContentBlock/ContentBlock.stories.ts +63 -13
  140. package/src/Component/ContentBlock/ContentBlock.stories.tsx +2 -2
  141. package/src/Component/ContentBlock/ContentBlock.tsx +1 -5
  142. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +11 -11
  143. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.tsx.snap +1 -1
  144. package/src/Component/Dialog/Dialog.stories.ts +78 -21
  145. package/src/Component/Dialog/Dialog.stories.tsx +2 -3
  146. package/src/Component/Dialog/Elements/Dialog.ts +7 -16
  147. package/src/Component/Dialog/__snapshots__/Dialog.stories.ts.snap +8 -11
  148. package/src/Component/Dialog/__snapshots__/Dialog.stories.tsx.snap +1 -1
  149. package/src/Component/Dialog/dialog.css +1 -2
  150. package/src/Component/Dialog/dialog.twig +1 -1
  151. package/src/Component/DropMenu/Components/DropMenuContext.tsx +4 -12
  152. package/src/Component/DropMenu/DropMenu.stories.ts +60 -1
  153. package/src/Component/DropMenu/DropMenu.tsx +2 -7
  154. package/src/Component/DropMenu/Elements/DropMenu.ts +21 -91
  155. package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +53 -11
  156. package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +1 -1
  157. package/src/Component/DropMenu/drop-menu.css +13 -41
  158. package/src/Component/DropMenu/drop-menu.twig +8 -6
  159. package/src/Component/Filters/Elements/Filters.ts +7 -11
  160. package/src/Component/Filters/FilterItem.stories.ts +180 -0
  161. package/src/Component/Filters/Filters.stories.ts +83 -8
  162. package/src/Component/Filters/__snapshots__/FilterItem.stories.ts.snap +135 -0
  163. package/src/Component/Filters/__snapshots__/Filters.stories.ts.snap +43 -41
  164. package/src/Component/Filters/filter-item.twig +1 -1
  165. package/src/Component/Filters/filters.css +33 -17
  166. package/src/Component/GlobalAlert/Elements/ClosableAlert.ts +8 -7
  167. package/src/Component/GlobalAlert/GlobalAlert.stories.ts +60 -12
  168. package/src/Component/GlobalAlert/GlobalAlert.stories.tsx +1 -2
  169. package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +8 -6
  170. package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +3 -3
  171. package/src/Component/HeroBanner/HeroBanner.stories.ts +84 -7
  172. package/src/Component/HeroBanner/HeroBanner.stories.tsx +4 -4
  173. package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +91 -99
  174. package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.tsx.snap +1 -1
  175. package/src/Component/HeroSearch/HeroSearch.stories.ts +23 -4
  176. package/src/Component/HeroSearch/HeroSearch.stories.tsx +4 -4
  177. package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.ts.snap +10 -10
  178. package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.tsx.snap +1 -1
  179. package/src/Component/InPageAlert/InPageAlert.stories.ts +76 -8
  180. package/src/Component/InPageAlert/InPageAlert.stories.tsx +1 -2
  181. package/src/Component/InPageAlert/InPageAlert.tsx +1 -4
  182. package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +80 -2
  183. package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.tsx.snap +1 -1
  184. package/src/Component/InPageNavigation/Elements/InPageNavigation.ts +7 -9
  185. package/src/Component/InPageNavigation/Hooks/useInPageNavigation.ts +3 -5
  186. package/src/Component/InPageNavigation/InPageNavigation.stories.ts +44 -9
  187. package/src/Component/InPageNavigation/InPageNavigation.stories.tsx +32 -40
  188. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +152 -5
  189. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +1 -1
  190. package/src/Component/LinkList/LinkList.stories.ts +23 -0
  191. package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +8 -8
  192. package/src/Component/LinkList/__snapshots__/LinkList.stories.tsx.snap +1 -1
  193. package/src/Component/LinkList/link-list.css +1 -2
  194. package/src/Component/ListItem/Components/ListItemContent.tsx +1 -5
  195. package/src/Component/ListItem/Components/ListItemMedia.tsx +1 -4
  196. package/src/Component/ListItem/ListItem.stories.ts +91 -11
  197. package/src/Component/ListItem/ListItem.stories.tsx +6 -7
  198. package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +1 -1
  199. package/src/Component/ListItem/__snapshots__/ListItem.stories.tsx.snap +1 -1
  200. package/src/Component/ListItem/list-item.css +1 -2
  201. package/src/Component/Navigation/Components/DropdownLevel.tsx +5 -13
  202. package/src/Component/Navigation/Elements/Navigation.ts +6 -13
  203. package/src/Component/Navigation/Navigation.stories.ts +48 -0
  204. package/src/Component/Navigation/__snapshots__/Dropdown.stories.tsx.snap +1 -1
  205. package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +1 -1
  206. package/src/Component/Navigation/__snapshots__/Navigation.stories.tsx.snap +1 -1
  207. package/src/Component/Navigation/_navigation-collapsible.css +2 -4
  208. package/src/Component/Navigation/_navigation-dropdown.css +10 -32
  209. package/src/Component/Navigation/_navigation-mega.css +1 -4
  210. package/src/Component/Navigation/_navigation.css +1 -4
  211. package/src/Component/Pagination/Components/PaginationContext.tsx +5 -19
  212. package/src/Component/Pagination/Components/PaginationItem.tsx +1 -5
  213. package/src/Component/Pagination/Pagination.stories.ts +28 -0
  214. package/src/Component/Pagination/Pagination.tsx +3 -11
  215. package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +3 -3
  216. package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +1 -1
  217. package/src/Component/Pagination/pagination.css +1 -4
  218. package/src/Component/Popover/Elements/Popover.ts +55 -0
  219. package/src/Component/Popover/Popover.stories.ts +259 -0
  220. package/src/Component/Popover/__snapshots__/Popover.stories.ts.snap +508 -0
  221. package/src/Component/{DropMenu → Popover}/polyfills.js +6 -4
  222. package/src/Component/Popover/popover.css +113 -0
  223. package/src/Component/Popover/popover.entry.js +1 -0
  224. package/src/Component/Popover/popover.twig +27 -0
  225. package/src/Component/ResultsBar/Components/ResultsBarInfo.tsx +2 -7
  226. package/src/Component/ResultsBar/Components/ResultsBarSort.tsx +1 -6
  227. package/src/Component/ResultsBar/ResultsBar.stories.ts +34 -4
  228. package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.ts.snap +3 -3
  229. package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.tsx.snap +1 -1
  230. package/src/Component/SideNavigation/SideNavigation.stories.ts +40 -0
  231. package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +1 -1
  232. package/src/Component/SideNavigation/side-navigation.css +3 -6
  233. package/src/Component/SocialLinks/SocialLinks.stories.ts +20 -0
  234. package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +5 -5
  235. package/src/Component/SocialShare/SocialShare.stories.ts +37 -0
  236. package/src/Component/SocialShare/SocialShare.tsx +2 -4
  237. package/src/Component/SocialShare/__snapshots__/SocialShare.stories.ts.snap +40 -0
  238. package/src/Component/SocialShare/__snapshots__/SocialShare.stories.tsx.snap +1 -1
  239. package/src/Component/SocialShare/social-share.twig +34 -0
  240. package/src/Component/Steps/StepItem.stories.ts +48 -0
  241. package/src/Component/Steps/Steps.stories.ts +82 -13
  242. package/src/Component/Steps/__snapshots__/StepItem.stories.ts.snap +31 -0
  243. package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +109 -28
  244. package/src/Component/Steps/step-item.twig +1 -1
  245. package/src/Component/Steps/steps.css +4 -11
  246. package/src/Component/Sticky/Elements/Sticky.ts +3 -8
  247. package/src/Component/Sticky/Sticky.stories.ts +35 -3
  248. package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +1 -1
  249. package/src/Component/Sticky/__snapshots__/Sticky.stories.tsx.snap +1 -1
  250. package/src/Component/Sticky/sticky.twig +1 -1
  251. package/src/Component/Tabs/Components/Tab.tsx +2 -8
  252. package/src/Component/Tabs/Components/TabPanel.tsx +1 -5
  253. package/src/Component/Tabs/Elements/Tabs.ts +21 -31
  254. package/src/Component/Tabs/TabItem.stories.ts +52 -0
  255. package/src/Component/Tabs/Tabs.stories.ts +51 -8
  256. package/src/Component/Tabs/Tabs.tsx +6 -22
  257. package/src/Component/Tabs/__snapshots__/TabItem.stories.ts.snap +12 -0
  258. package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +127 -11
  259. package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +1 -1
  260. package/src/Component/Tabs/tab-item.twig +1 -2
  261. package/src/Component/Tabs/tabs.css +56 -59
  262. package/src/Component/Tag/Tag.stories.ts +30 -0
  263. package/src/Component/Tag/Tag.tsx +1 -5
  264. package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +1 -1
  265. package/src/Component/Tag/__snapshots__/Tag.stories.tsx.snap +1 -1
  266. package/src/Component/Tag/tag.css +1 -4
  267. package/src/Component/UtilityList/Elements/UtilityList.ts +110 -0
  268. package/src/Component/UtilityList/UtilityList.stories.ts +72 -0
  269. package/src/Component/UtilityList/__snapshots__/UtilityList.stories.ts.snap +274 -0
  270. package/src/Component/UtilityList/utility-list.css +40 -0
  271. package/src/Component/UtilityList/utility-list.entry.js +1 -0
  272. package/src/Component/UtilityList/utility-list.twig +66 -0
  273. package/src/Form/Checkbox/FormCheckbox.stories.tsx +1 -3
  274. package/src/Form/Checkbox/FormCheckbox.tsx +4 -25
  275. package/src/Form/Checkbox/__snapshots__/Checkbox.stories.ts.snap +3 -3
  276. package/src/Form/Description/Description.stories.ts +1 -2
  277. package/src/Form/Description/FormStatus.stories.ts +1 -4
  278. package/src/Form/Description/__snapshots__/Description.stories.ts.snap +1 -1
  279. package/src/Form/Description/__snapshots__/FormDescription.stories.tsx.snap +1 -1
  280. package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +3 -3
  281. package/src/Form/Form/Form.tsx +1 -3
  282. package/src/Form/Form/__snapshots__/Form.stories.tsx.snap +1 -1
  283. package/src/Form/Form/__snapshots__/FormTitle.stories.tsx.snap +1 -1
  284. package/src/Form/FormItem/FormItem.stories.ts +3 -9
  285. package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +18 -18
  286. package/src/Form/FormItem/__snapshots__/FormItem.stories.tsx.snap +1 -1
  287. package/src/Form/Label/FormLabel.tsx +1 -5
  288. package/src/Form/Label/__snapshots__/FormLabel.stories.tsx.snap +1 -1
  289. package/src/Form/Label/__snapshots__/Label.stories.ts.snap +3 -3
  290. package/src/Form/Radio/FormRadio.stories.tsx +1 -3
  291. package/src/Form/Radio/FormRadio.tsx +4 -25
  292. package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +9 -9
  293. package/src/Form/Search/__snapshots__/Search.stories.ts.snap +1 -1
  294. package/src/Form/Select/FormSelect.tsx +3 -9
  295. package/src/Form/Select/__snapshots__/FormSelect.stories.tsx.snap +1 -1
  296. package/src/Form/Select/__snapshots__/Select.stories.ts.snap +2 -2
  297. package/src/Form/TextInput/FormText.tsx +3 -9
  298. package/src/Form/TextInput/TextInput.stories.ts +1 -4
  299. package/src/Form/TextInput/__snapshots__/FormText.stories.tsx.snap +1 -1
  300. package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +1 -1
  301. package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +3 -3
  302. package/src/Form/Textarea/FormTextarea.tsx +3 -9
  303. package/src/Form/Textarea/__snapshots__/FormTextarea.stories.tsx.snap +1 -1
  304. package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +2 -2
  305. package/src/Form/form.css +6 -14
  306. package/src/Introduction.mdx +1 -2
  307. package/src/Layout/Footer/Footer.stories.ts +1 -5
  308. package/src/Layout/Footer/Footer.stories.tsx +2 -3
  309. package/src/Layout/Footer/Footer.tsx +3 -12
  310. package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +4 -4
  311. package/src/Layout/Footer/__snapshots__/Footer.stories.tsx.snap +1 -1
  312. package/src/Layout/Grid/Grid.stories.ts +40 -8
  313. package/src/Layout/Grid/Grid.tsx +1 -2
  314. package/src/Layout/Grid/GridItem.stories.ts +63 -0
  315. package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +29 -4
  316. package/src/Layout/Grid/__snapshots__/Grid.stories.tsx.snap +1 -1
  317. package/src/Layout/Grid/__snapshots__/GridItem.stories.ts.snap +19 -0
  318. package/src/Layout/Grid/grid-item.twig +3 -9
  319. package/src/Layout/Grid/grid.css +1 -4
  320. package/src/Layout/Header/Elements/GlobalToggle.ts +9 -29
  321. package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +25 -45
  322. package/src/Layout/Header/__snapshots__/Header.stories.tsx.snap +3 -3
  323. package/src/Layout/Header/_toggles.css +2 -2
  324. package/src/Layout/Header/header.twig +1 -1
  325. package/src/Layout/Masthead/Masthead.stories.ts +1 -4
  326. package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +3 -3
  327. package/src/Layout/Page/Page.stories.tsx +2 -2
  328. package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +3 -3
  329. package/src/Layout/Page/page.css +2 -10
  330. package/src/Layout/Section/Background.stories.ts +14 -39
  331. package/src/Layout/Section/Breakouts.stories.ts +3 -0
  332. package/src/Layout/Section/Flow.stories.ts +3 -0
  333. package/src/Layout/Section/Section.stories.ts +93 -11
  334. package/src/Layout/Section/Section.tsx +3 -13
  335. package/src/Layout/Section/SectionGrid.tsx +2 -9
  336. package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +4 -4
  337. package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +1 -1
  338. package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +1 -1
  339. package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +93 -3
  340. package/src/Layout/Section/__snapshots__/Section.stories.tsx.snap +1 -1
  341. package/src/Layout/Section/__snapshots__/SectionGrid.stories.tsx.snap +1 -1
  342. package/src/Layout/Section/section.css +2 -5
  343. package/src/Layout/Section/section.twig +1 -3
  344. package/src/Layout/Sidebar/Sidebar.stories.ts +46 -4
  345. package/src/Layout/Sidebar/Sidebar.tsx +1 -3
  346. package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +4 -4
  347. package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.tsx.snap +1 -1
  348. package/src/Utility/Context/ImageComponent.tsx +4 -8
  349. package/src/Utility/Context/LinkComponent.tsx +1 -5
  350. package/src/Utility/Drupal/drupal.css +2 -4
  351. package/src/Utility/Elements/breakpoint-loader.ts +4 -10
  352. package/src/Utility/Elements/cookie-compliance.ts +2 -8
  353. package/src/Utility/Elements/disclosure-widget.ts +11 -18
  354. package/src/Utility/Elements/io-loader.ts +4 -6
  355. package/src/Utility/Elements/keyboard.ts +4 -14
  356. package/src/Utility/Hooks/useLocalStorage.ts +5 -18
  357. package/src/Utility/Hooks/useMediaQuery.ts +1 -4
  358. package/src/Utility/Hooks/useToggle.ts +1 -3
  359. package/src/Utility/global.d.ts +1 -5
  360. package/src/Utility/utilities.ts +20 -45
  361. package/src/constants.css +7 -28
  362. package/src/enums.ts +3 -1
  363. package/src/react.ts +5 -21
  364. package/src/tokens.js +2 -2
  365. package/dist/build/chunks/disclosure-widget-DVpnRsTI.js +0 -126
  366. package/dist/build/chunks/disclosure-widget-DVpnRsTI.js.map +0 -1
  367. package/dist/build/chunks/drop-menu.entry-B4TtnC50.js +0 -132
  368. package/dist/build/chunks/drop-menu.entry-B4TtnC50.js.map +0 -1
  369. package/dist/build/chunks/keyboard-rvZ4dfGF.js +0 -104
  370. package/dist/build/chunks/keyboard-rvZ4dfGF.js.map +0 -1
  371. package/dist/build/chunks/polyfills-C-B7iqDG.js.map +0 -1
  372. package/dist/build/chunks/utilities-DXELy_An.js.map +0 -1
  373. package/src/Atom/Text/TextSizes.stories.ts +0 -25
  374. package/src/Atom/Text/text-alignment.twig +0 -5
  375. package/src/Component/Accordion/twig/accordion-example.twig +0 -36
  376. package/src/Component/Tile/README.md +0 -3
  377. package/src/Component/Tile/Tile.stories.ts +0 -49
  378. package/src/Component/Tile/Tile.stories.tsx +0 -35
  379. package/src/Component/Tile/__snapshots__/Tile.stories.ts.snap +0 -57
  380. package/src/Component/Tile/__snapshots__/Tile.stories.tsx.snap +0 -23
@@ -1,9 +1,9 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Form/FormItem DescriptionBefore smoke-test 1`] = `
4
4
  <div class="mx-page default">
5
- <div class="mx-form-item ">
6
- <label class="mx-label "
5
+ <div class="mx-form-item">
6
+ <label class="mx-label"
7
7
  for="form-item"
8
8
  >
9
9
  What's your favourite music?
@@ -14,7 +14,7 @@ exports[`Form/FormItem DescriptionBefore smoke-test 1`] = `
14
14
  >
15
15
  Help text that provides additional information about the field.
16
16
  </div>
17
- <input class="mx-input__text "
17
+ <input class="mx-input__text"
18
18
  id="form-item"
19
19
  name="example-form-item"
20
20
  type="text"
@@ -28,13 +28,13 @@ exports[`Form/FormItem DescriptionBefore smoke-test 1`] = `
28
28
 
29
29
  exports[`Form/FormItem Error smoke-test 1`] = `
30
30
  <div class="mx-page default">
31
- <div class="mx-form-item ">
32
- <label class="mx-label "
31
+ <div class="mx-form-item">
32
+ <label class="mx-label"
33
33
  for="form-item"
34
34
  >
35
35
  What's your favourite music?
36
36
  </label>
37
- <input class="mx-input__text error "
37
+ <input class="mx-input__text error"
38
38
  id="form-item"
39
39
  name="example-form-item"
40
40
  type="text"
@@ -49,7 +49,7 @@ exports[`Form/FormItem Error smoke-test 1`] = `
49
49
  >
50
50
  Help text that provides additional information about the field.
51
51
  </div>
52
- <div class="mx-error-message "
52
+ <div class="mx-error-message"
53
53
  id="status-form-item"
54
54
  role="tooltip"
55
55
  >
@@ -61,11 +61,11 @@ exports[`Form/FormItem Error smoke-test 1`] = `
61
61
 
62
62
  exports[`Form/FormItem Fieldset smoke-test 1`] = `
63
63
  <div class="mx-page default">
64
- <fieldset class="mx-form-item mx-fieldset ">
65
- <legend class="mx-legend ">
64
+ <fieldset class="mx-form-item mx-fieldset">
65
+ <legend class="mx-legend">
66
66
  What's your favourite music?
67
67
  </legend>
68
- <input class="mx-input__text "
68
+ <input class="mx-input__text"
69
69
  id="form-item"
70
70
  name="example-form-item"
71
71
  type="text"
@@ -86,13 +86,13 @@ exports[`Form/FormItem Fieldset smoke-test 1`] = `
86
86
 
87
87
  exports[`Form/FormItem FormItem smoke-test 1`] = `
88
88
  <div class="mx-page default">
89
- <div class="mx-form-item ">
90
- <label class="mx-label "
89
+ <div class="mx-form-item">
90
+ <label class="mx-label"
91
91
  for="form-item"
92
92
  >
93
93
  What's your favourite music?
94
94
  </label>
95
- <input class="mx-input__text "
95
+ <input class="mx-input__text"
96
96
  id="form-item"
97
97
  name="example-form-item"
98
98
  type="text"
@@ -112,13 +112,13 @@ exports[`Form/FormItem FormItem smoke-test 1`] = `
112
112
 
113
113
  exports[`Form/FormItem Success smoke-test 1`] = `
114
114
  <div class="mx-page default">
115
- <div class="mx-form-item ">
116
- <label class="mx-label "
115
+ <div class="mx-form-item">
116
+ <label class="mx-label"
117
117
  for="form-item"
118
118
  >
119
119
  What's your favourite music?
120
120
  </label>
121
- <input class="mx-input__text success"
121
+ <input class="mx-input__text success"
122
122
  id="form-item"
123
123
  name="example-form-item"
124
124
  type="text"
@@ -132,7 +132,7 @@ exports[`Form/FormItem Success smoke-test 1`] = `
132
132
  >
133
133
  Help text that provides additional information about the field.
134
134
  </div>
135
- <div class=" mx-success-message"
135
+ <div class="mx-success-message"
136
136
  id="status-form-item"
137
137
  role="tooltip"
138
138
  >
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Form/Item Error smoke-test 1`] = `
4
4
  <div class="mx-form-item">
@@ -5,11 +5,7 @@ type FormLabelProps = ComponentPropsWithoutRef<"label"> & {
5
5
  required?: boolean
6
6
  }
7
7
 
8
- const FormLabel = ({
9
- text,
10
- id,
11
- required = false,
12
- }: FormLabelProps): JSX.Element => (
8
+ const FormLabel = ({ text, id, required = false }: FormLabelProps): JSX.Element => (
13
9
  <label className="mx-label" htmlFor={id}>
14
10
  {text}
15
11
  {required && <span> (required)</span>}
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Form/Label Label smoke-test 1`] = `
4
4
  <label class="mx-label"
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Form/Label Inline smoke-test 1`] = `
4
4
  <div class="mx-page default">
@@ -12,7 +12,7 @@ exports[`Form/Label Inline smoke-test 1`] = `
12
12
 
13
13
  exports[`Form/Label Label smoke-test 1`] = `
14
14
  <div class="mx-page default">
15
- <label class="mx-label "
15
+ <label class="mx-label"
16
16
  for="label"
17
17
  >
18
18
  A form label
@@ -22,7 +22,7 @@ exports[`Form/Label Label smoke-test 1`] = `
22
22
 
23
23
  exports[`Form/Label Legend smoke-test 1`] = `
24
24
  <div class="mx-page default">
25
- <legend class="mx-legend "
25
+ <legend class="mx-legend"
26
26
  for="label"
27
27
  >
28
28
  A fieldset legend
@@ -21,9 +21,7 @@ const meta: Meta<typeof GroupRadio> = {
21
21
 
22
22
  export default meta
23
23
  export const Radios: StoryObj<typeof FormRadio> = {
24
- render: ({ children, ...args }) => (
25
- <FormRadio {...args}>{children}</FormRadio>
26
- ),
24
+ render: ({ children, ...args }) => <FormRadio {...args}>{children}</FormRadio>,
27
25
  args: {
28
26
  label: "Radio group",
29
27
  children: (
@@ -1,17 +1,5 @@
1
- import {
2
- JSX,
3
- PropsWithChildren,
4
- useRef,
5
- createContext,
6
- use,
7
- useId,
8
- } from "react"
9
- import {
10
- useRadio,
11
- useRadioGroup,
12
- AriaRadioProps,
13
- AriaRadioGroupProps,
14
- } from "react-aria"
1
+ import { JSX, PropsWithChildren, useRef, createContext, use, useId } from "react"
2
+ import { useRadio, useRadioGroup, AriaRadioProps, AriaRadioGroupProps } from "react-aria"
15
3
  import { useRadioGroupState, RadioGroupState } from "react-stately"
16
4
  import classNames from "classnames"
17
5
  import FormItem from "../FormItem/FormItem"
@@ -24,11 +12,7 @@ type FormRadioProps = PropsWithChildren &
24
12
  label: string
25
13
  }
26
14
 
27
- const FormRadio = ({
28
- label,
29
- children,
30
- ...props
31
- }: FormRadioProps): JSX.Element => {
15
+ const FormRadio = ({ label, children, ...props }: FormRadioProps): JSX.Element => {
32
16
  const state = useRadioGroupState(props)
33
17
  const { radioGroupProps, labelProps } = useRadioGroup(props, state)
34
18
 
@@ -65,12 +49,7 @@ const Radio = ({
65
49
 
66
50
  return (
67
51
  <div className={classes}>
68
- <input
69
- id={id}
70
- {...inputProps}
71
- ref={ref}
72
- aria-invalid={status === FormStatus.INVALID}
73
- />
52
+ <input id={id} {...inputProps} ref={ref} aria-invalid={status === FormStatus.INVALID} />
74
53
  <label htmlFor={id}>{children}</label>
75
54
  </div>
76
55
  )
@@ -1,12 +1,12 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Form/Radio Checked smoke-test 1`] = `
4
4
  <div class="mx-page default">
5
- <fieldset class="mx-form-item mx-fieldset ">
6
- <legend class="mx-legend ">
5
+ <fieldset class="mx-form-item mx-fieldset">
6
+ <legend class="mx-legend">
7
7
  Do you like music?
8
8
  </legend>
9
- <div class="mx-radio ">
9
+ <div class="mx-radio">
10
10
  <input id="radio-set-yes"
11
11
  type="radio"
12
12
  name="music"
@@ -17,7 +17,7 @@ exports[`Form/Radio Checked smoke-test 1`] = `
17
17
  Yes
18
18
  </label>
19
19
  </div>
20
- <div class="mx-radio ">
20
+ <div class="mx-radio">
21
21
  <input id="radio-set-no"
22
22
  type="radio"
23
23
  name="music"
@@ -33,11 +33,11 @@ exports[`Form/Radio Checked smoke-test 1`] = `
33
33
 
34
34
  exports[`Form/Radio Radio smoke-test 1`] = `
35
35
  <div class="mx-page default">
36
- <fieldset class="mx-form-item mx-fieldset ">
37
- <legend class="mx-legend ">
36
+ <fieldset class="mx-form-item mx-fieldset">
37
+ <legend class="mx-legend">
38
38
  Do you like music?
39
39
  </legend>
40
- <div class="mx-radio ">
40
+ <div class="mx-radio">
41
41
  <input id="radio-set-yes"
42
42
  type="radio"
43
43
  name="music"
@@ -47,7 +47,7 @@ exports[`Form/Radio Radio smoke-test 1`] = `
47
47
  Yes
48
48
  </label>
49
49
  </div>
50
- <div class="mx-radio ">
50
+ <div class="mx-radio">
51
51
  <input id="radio-set-no"
52
52
  type="radio"
53
53
  name="music"
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Form/Search Search smoke-test 1`] = `
4
4
  <div class="mx-page default">
@@ -1,9 +1,4 @@
1
- import {
2
- JSX,
3
- ComponentPropsWithoutRef,
4
- useState,
5
- ChangeEventHandler,
6
- } from "react"
1
+ import { JSX, ComponentPropsWithoutRef, useState, ChangeEventHandler } from "react"
7
2
  import classNames from "classnames"
8
3
  import { FormStatus } from "../../enums"
9
4
 
@@ -34,9 +29,8 @@ const FormSelect = ({
34
29
  ...props
35
30
  }: FormSelectProps): JSX.Element => {
36
31
  const [inputValue, setInputValue] = useState<string>(selected)
37
- const handleChange: ChangeEventHandler<HTMLSelectElement> = ({
38
- currentTarget,
39
- }) => setInputValue(currentTarget.value)
32
+ const handleChange: ChangeEventHandler<HTMLSelectElement> = ({ currentTarget }) =>
33
+ setInputValue(currentTarget.value)
40
34
 
41
35
  const classes = classNames("mx-input__select", className, {
42
36
  error: status === FormStatus.INVALID,
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Form/Select Select smoke-test 1`] = `
4
4
  <select id="mix-select"
@@ -1,8 +1,8 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Form/Select Select smoke-test 1`] = `
4
4
  <div class="mx-page default">
5
- <select class="mx-input__select "
5
+ <select class="mx-input__select"
6
6
  id="form-input-select"
7
7
  name="example-form-input"
8
8
  aria-label="Visually hidden label"
@@ -1,9 +1,4 @@
1
- import {
2
- JSX,
3
- ComponentPropsWithoutRef,
4
- useState,
5
- ChangeEventHandler,
6
- } from "react"
1
+ import { JSX, ComponentPropsWithoutRef, useState, ChangeEventHandler } from "react"
7
2
  import classNames from "classnames"
8
3
  import { FormStatus } from "../../enums"
9
4
 
@@ -24,9 +19,8 @@ const FormText = ({
24
19
  ...props
25
20
  }: FormTextProps): JSX.Element => {
26
21
  const [inputValue, setInputValue] = useState<string>(value)
27
- const handleChange: ChangeEventHandler<HTMLInputElement> = ({
28
- currentTarget,
29
- }) => setInputValue(currentTarget.value)
22
+ const handleChange: ChangeEventHandler<HTMLInputElement> = ({ currentTarget }) =>
23
+ setInputValue(currentTarget.value)
30
24
 
31
25
  const classes = classNames("mx-input__text", className, {
32
26
  error: status === FormStatus.INVALID,
@@ -1,10 +1,7 @@
1
1
  import { Meta, StoryObj } from "@storybook/html-vite"
2
2
  import Component from "./input-text.twig"
3
3
  import "../form.css"
4
- import {
5
- FormText as FormTextType,
6
- InputTypeTypes,
7
- } from "@pnx-mixtape/ids-shape"
4
+ import { FormText as FormTextType, InputTypeTypes } from "@pnx-mixtape/ids-shape"
8
5
  import { Icons } from "../../enums"
9
6
 
10
7
  type FormTextIconType = FormTextType & {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Form/TextInput TextInput smoke-test 1`] = `
4
4
  <input class="mx-input__text"
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Form/Text Input/Divider InputDivider smoke-test 1`] = `
4
4
  <div class="mx-page default">
@@ -1,9 +1,9 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Form/TextInput Icon smoke-test 1`] = `
4
4
  <div class="mx-page default">
5
5
  <span class="mx-input--icon mx-icon mx-icon--email">
6
- <input class="mx-input__text "
6
+ <input class="mx-input__text"
7
7
  id="form-input-text"
8
8
  name="example-form-input"
9
9
  type="email"
@@ -17,7 +17,7 @@ exports[`Form/TextInput Icon smoke-test 1`] = `
17
17
 
18
18
  exports[`Form/TextInput TextInput smoke-test 1`] = `
19
19
  <div class="mx-page default">
20
- <input class="mx-input__text "
20
+ <input class="mx-input__text"
21
21
  id="form-input-text"
22
22
  name="example-form-input"
23
23
  type="text"
@@ -1,9 +1,4 @@
1
- import {
2
- JSX,
3
- ComponentPropsWithoutRef,
4
- useState,
5
- ChangeEventHandler,
6
- } from "react"
1
+ import { JSX, ComponentPropsWithoutRef, useState, ChangeEventHandler } from "react"
7
2
  import classNames from "classnames"
8
3
  import { FormStatus } from "../../enums"
9
4
 
@@ -23,9 +18,8 @@ const FormTextarea = ({
23
18
  ...props
24
19
  }: FormTextareaProps): JSX.Element => {
25
20
  const [inputValue, setInputValue] = useState<string>(value)
26
- const handleChange: ChangeEventHandler<HTMLTextAreaElement> = ({
27
- currentTarget,
28
- }) => setInputValue(currentTarget.value)
21
+ const handleChange: ChangeEventHandler<HTMLTextAreaElement> = ({ currentTarget }) =>
22
+ setInputValue(currentTarget.value)
29
23
 
30
24
  const classes = classNames("mx-input__textarea", className, {
31
25
  error: status === FormStatus.INVALID,
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Form/Textarea Textarea smoke-test 1`] = `
4
4
  <input class="mx-input__text"
@@ -1,8 +1,8 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Form/Textarea TextArea smoke-test 1`] = `
4
4
  <div class="mx-page default">
5
- <textarea class="mx-input__textarea "
5
+ <textarea class="mx-input__textarea"
6
6
  id="form-input-textarea"
7
7
  name="example-form-input"
8
8
  aria-label="Visually hidden label"
package/src/Form/form.css CHANGED
@@ -37,9 +37,7 @@
37
37
  letter-spacing: inherit;
38
38
  word-spacing: inherit;
39
39
  max-inline-size: 100%;
40
- padding-block: calc(
41
- var(--form-spacing, var(--spacing-s)) - (var(--line-width, 2px) * 2)
42
- );
40
+ padding-block: calc(var(--form-spacing, var(--spacing-s)) - (var(--line-width, 2px) * 2));
43
41
  padding-inline: var(--form-spacing, var(--spacing-s));
44
42
  border: var(--line-width, 2px) solid
45
43
  var(--line-colour, var(--line-colour, var(--colour-border)));
@@ -141,8 +139,7 @@
141
139
  var(--line-colour, var(--line-colour, var(--colour-border)));
142
140
 
143
141
  &:has(.mx-input__text:focus-visible) {
144
- outline: var(--outline-size) var(--outline-style, solid)
145
- var(--outline-color, currentcolor);
142
+ outline: var(--outline-size) var(--outline-style, solid) var(--outline-color, currentcolor);
146
143
  outline-offset: calc(var(--line-width, 2px) * -1);
147
144
  }
148
145
 
@@ -161,9 +158,7 @@
161
158
  flex-shrink: 0;
162
159
  border: 0;
163
160
  border-radius: 3px;
164
- block-size: calc(
165
- var(--form-element-height, var(--spacing-xxl)) - var(--spacing-xxxs)
166
- );
161
+ block-size: calc(var(--form-element-height, var(--spacing-xxl)) - var(--spacing-xxxs));
167
162
  }
168
163
  }
169
164
  }
@@ -192,8 +187,7 @@
192
187
  inline-size: var(--control-size, var(--spacing-m));
193
188
  block-size: var(--control-size, var(--spacing-m));
194
189
  background-color: var(--background, var(--colour-background));
195
- border: var(--line-width, 2px) solid
196
- var(--line-colour, var(--colour-border));
190
+ border: var(--line-width, 2px) solid var(--line-colour, var(--colour-border));
197
191
  border-radius: var(--border-radius);
198
192
 
199
193
  @media (pointer: coarse) {
@@ -249,8 +243,7 @@
249
243
  inline-size: var(--control-size, var(--spacing-m));
250
244
  block-size: var(--control-size, var(--spacing-m));
251
245
  background-color: var(--background, var(--colour-background));
252
- border: var(--line-width, 2px) solid
253
- var(--line-colour, var(--colour-border));
246
+ border: var(--line-width, 2px) solid var(--line-colour, var(--colour-border));
254
247
  border-radius: 50%;
255
248
 
256
249
  @media (pointer: coarse) {
@@ -381,8 +374,7 @@
381
374
 
382
375
  @layer design-system.atoms {
383
376
  .mx-fieldset {
384
- border: var(--line-width, 2px) solid
385
- var(--line-colour, var(--colour-border));
377
+ border: var(--line-width, 2px) solid var(--line-colour, var(--colour-border));
386
378
  border-radius: var(--border-radius);
387
379
  padding: var(--form-spacing, var(--spacing-s));
388
380
  min-inline-size: 0;
@@ -5,8 +5,7 @@ import { Meta, Title, Subtitle } from "@storybook/addon-docs/blocks"
5
5
  <Title>Introduction</Title>
6
6
 
7
7
  <Subtitle>
8
- Mixtape is a Design System built by
9
- [PreviousNext](https://www.previousnext.com.au/).
8
+ Mixtape is a Design System built by [PreviousNext](https://www.previousnext.com.au/).
10
9
  </Subtitle>
11
10
 
12
11
  - Separate CSS/JS files for components to improve performance.
@@ -7,11 +7,7 @@ import Navigation from "../../Component/Navigation/navigation.twig"
7
7
  import SocialLinks from "../../Component/SocialLinks/social-links.twig"
8
8
  import "./footer.css"
9
9
  import "../../Component/SocialLinks/social-links.css"
10
- import {
11
- Footer as FooterType,
12
- IconSizeModifier,
13
- FooterModifier,
14
- } from "@pnx-mixtape/ids-shape"
10
+ import { Footer as FooterType, IconSizeModifier, FooterModifier } from "@pnx-mixtape/ids-shape"
15
11
  import { Icons } from "../../enums"
16
12
 
17
13
  const meta: Meta<FooterType> = {
@@ -29,9 +29,8 @@ export const WithChildren: Story = {
29
29
  args: {
30
30
  children: (
31
31
  <div className="mx-footer__aoc mx-text--s">
32
- Ullamcorper lobortis aliquam nulla nisl adipiscing cras fermentum
33
- dictumst netus felis semper elit adipiscing cum montes varius
34
- condimentum scelerisque condimentum diam a.
32
+ Ullamcorper lobortis aliquam nulla nisl adipiscing cras fermentum dictumst netus felis
33
+ semper elit adipiscing cum montes varius condimentum scelerisque condimentum diam a.
35
34
  </div>
36
35
  ),
37
36
  },
@@ -2,9 +2,7 @@
2
2
  import { JSX, PropsWithChildren } from "react"
3
3
  import classNames from "classnames"
4
4
  import Section from "../Section/Section"
5
- import Navigation, {
6
- NavigationItem,
7
- } from "../../Component/Navigation/Navigation"
5
+ import Navigation, { NavigationItem } from "../../Component/Navigation/Navigation"
8
6
  import { SectionStyles } from "../../enums"
9
7
  import { SectionTypes } from "@pnx-mixtape/ids-shape"
10
8
 
@@ -15,10 +13,7 @@ type FooterProps = PropsWithChildren & {
15
13
  className?: string
16
14
  }
17
15
 
18
- const defaultFooterSize: SectionStyles[] = [
19
- SectionStyles.TOP_L,
20
- SectionStyles.BOTTOM_M,
21
- ]
16
+ const defaultFooterSize: SectionStyles[] = [SectionStyles.TOP_L, SectionStyles.BOTTOM_M]
22
17
 
23
18
  const Footer = ({
24
19
  content,
@@ -28,11 +23,7 @@ const Footer = ({
28
23
  className = null,
29
24
  }: FooterProps): JSX.Element => {
30
25
  return (
31
- <Section
32
- as={SectionTypes.FOOTER}
33
- sizes={size}
34
- className={classNames("mx-footer", className)}
35
- >
26
+ <Section as={SectionTypes.FOOTER} sizes={size} className={classNames("mx-footer", className)}>
36
27
  <div className="mx-footer__inner">
37
28
  {children}
38
29
  {content && (
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Layout/Footer Everything smoke-test 1`] = `
4
4
  <div class="mx-page default">
@@ -13,21 +13,21 @@ exports[`Layout/Footer Everything smoke-test 1`] = `
13
13
  aria-label="Social media links"
14
14
  >
15
15
  <a href="#">
16
- <span class="mx-icon mx-icon--facebook mx-icon--size-md">
16
+ <span class="mx-icon mx-icon--facebook mx-icon--size-md">
17
17
  </span>
18
18
  <span class="sr-only">
19
19
  Facebook
20
20
  </span>
21
21
  </a>
22
22
  <a href="#">
23
- <span class="mx-icon mx-icon--instagram mx-icon--size-md">
23
+ <span class="mx-icon mx-icon--instagram mx-icon--size-md">
24
24
  </span>
25
25
  <span class="sr-only">
26
26
  Instagram
27
27
  </span>
28
28
  </a>
29
29
  <a href="#">
30
- <span class="mx-icon mx-icon--linkedin mx-icon--size-md">
30
+ <span class="mx-icon mx-icon--linkedin mx-icon--size-md">
31
31
  </span>
32
32
  <span class="sr-only">
33
33
  LinkedIn
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`Layout/Footer Default smoke-test 1`] = `
4
4
  <footer class="mx-footer mx-section--top-l mx-section--bottom-m">