@pnx-mixtape/mxds 0.0.13 → 0.0.14

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 (257) hide show
  1. package/dist/build/accordion.entry.js +1 -1
  2. package/dist/build/chunks/{Accordion-DSze7pxN.js → Accordion-Bjaw7SdG.js} +2 -2
  3. package/dist/build/chunks/{Accordion-DSze7pxN.js.map → Accordion-Bjaw7SdG.js.map} +1 -1
  4. package/dist/build/chunks/{disclosure-widget-CQLPJ8Ta.js → disclosure-widget-DwuxsaOS.js} +2 -2
  5. package/dist/build/chunks/{disclosure-widget-CQLPJ8Ta.js.map → disclosure-widget-DwuxsaOS.js.map} +1 -1
  6. package/dist/build/chunks/{drop-menu.entry-BC6x9vst.js → drop-menu.entry-Cxpti_QG.js} +2 -2
  7. package/dist/build/chunks/{drop-menu.entry-BC6x9vst.js.map → drop-menu.entry-Cxpti_QG.js.map} +1 -1
  8. package/dist/build/chunks/{utilities-B4YZb689.js → utilities-DZ_l-he4.js} +1 -49
  9. package/dist/build/chunks/utilities-DZ_l-he4.js.map +1 -0
  10. package/dist/build/dialog.entry.js +1 -1
  11. package/dist/build/drop-menu.entry.js +1 -1
  12. package/dist/build/filters.entry.js +1 -1
  13. package/dist/build/global-alert.entry.js +1 -1
  14. package/dist/build/header.entry.js +2 -2
  15. package/dist/build/in-page-navigation.entry.js +1 -1
  16. package/dist/build/navigation.entry.js +2 -2
  17. package/dist/build/sticky.entry.js +1 -1
  18. package/dist/build/tabs.entry.js +2 -2
  19. package/package.json +11 -20
  20. package/src/Atom/Background/Backgrounds.stories.ts +13 -1
  21. package/src/Atom/Background/__snapshots__/Backgrounds.stories.ts.snap +157 -81
  22. package/src/Atom/Background/_background.css +16 -10
  23. package/src/Atom/Base.mdx +25 -17
  24. package/src/Atom/Button/Button.stories.ts +1 -4
  25. package/src/Atom/Button/Button.stories.tsx +1 -1
  26. package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +47 -37
  27. package/src/Atom/Button/_buttons-styles.css +7 -7
  28. package/src/Atom/Button/_buttons.css +1 -6
  29. package/src/Atom/DefinitionList/DefinitionList.stories.ts +32 -0
  30. package/src/Atom/DefinitionList/DefinitionList.stories.tsx +1 -1
  31. package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.ts.snap +32 -0
  32. package/src/Atom/DefinitionList/definition-list.twig +9 -0
  33. package/src/Atom/Heading/Heading.stories.ts +1 -1
  34. package/src/Atom/Heading/Heading.stories.tsx +1 -1
  35. package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +5 -3
  36. package/src/Atom/Icon/Icon.mdx +1 -1
  37. package/src/Atom/Icon/Icon.stories.ts +1 -1
  38. package/src/Atom/Icon/Icon.stories.tsx +1 -1
  39. package/src/Atom/Icon/Icon.tsx +2 -2
  40. package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +14 -8
  41. package/src/Atom/Icon/_icon.css +4 -4
  42. package/src/Atom/Image/Image.stories.ts +1 -1
  43. package/src/Atom/Image/__snapshots__/Image.stories.ts.snap +7 -5
  44. package/src/Atom/Image/_image.css +2 -7
  45. package/src/Atom/Link/Link.stories.ts +1 -1
  46. package/src/Atom/Link/Link.stories.tsx +1 -1
  47. package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +50 -37
  48. package/src/Atom/Link/_links.css +2 -22
  49. package/src/Atom/Link/link.twig +1 -0
  50. package/src/Atom/Media/Media.stories.ts +1 -1
  51. package/src/Atom/Media/Media.stories.tsx +1 -1
  52. package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +25 -21
  53. package/src/Atom/Spacing/Spacing.stories.ts +1 -1
  54. package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +5 -3
  55. package/src/Atom/Table/Table.stories.ts +1 -1
  56. package/src/Atom/Table/TableResponsive.stories.ts +1 -1
  57. package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +256 -248
  58. package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +65 -63
  59. package/src/Atom/Text/Text.stories.tsx +1 -1
  60. package/src/Atom/Text/TextSizes.stories.ts +1 -1
  61. package/src/Atom/Text/__snapshots__/TextSizes.stories.ts.snap +59 -55
  62. package/src/Atom/Text/rich-text.twig +9 -0
  63. package/src/Atom/Video/Video.stories.ts +1 -1
  64. package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +9 -7
  65. package/src/Atom/_animated.css +0 -14
  66. package/src/Atom/_generic.css +56 -15
  67. package/src/Atom/base.css +1 -1
  68. package/src/Component/Accordion/Accordion.stories.ts +1 -4
  69. package/src/Component/Accordion/Accordion.stories.tsx +1 -1
  70. package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +60 -56
  71. package/src/Component/Accordion/accordion.css +16 -4
  72. package/src/Component/Breadcrumb/Breadcrumb.stories.ts +1 -1
  73. package/src/Component/Breadcrumb/Breadcrumb.stories.tsx +1 -1
  74. package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +31 -29
  75. package/src/Component/Breadcrumb/breadcrumb.css +4 -0
  76. package/src/Component/Callout/Callout.stories.ts +1 -9
  77. package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +9 -7
  78. package/src/Component/Card/Card.stories.ts +11 -18
  79. package/src/Component/Card/Card.stories.tsx +1 -1
  80. package/src/Component/Card/Card.tsx +9 -5
  81. package/src/Component/Card/__snapshots__/Card.stories.ts.snap +257 -229
  82. package/src/Component/Card/card.css +36 -33
  83. package/src/Component/Card/card.twig +6 -6
  84. package/src/Component/Carousel/Carousel.stories.ts +201 -0
  85. package/src/Component/Carousel/Elements/Carousel.ts +241 -0
  86. package/src/Component/Carousel/__snapshots__/Carousel.stories.ts.snap +912 -0
  87. package/src/Component/Carousel/carousel.css +119 -0
  88. package/src/Component/Carousel/carousel.twig +27 -0
  89. package/src/Component/ContentBlock/ContentBlock.stories.ts +27 -19
  90. package/src/Component/ContentBlock/ContentBlock.stories.tsx +1 -1
  91. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +153 -93
  92. package/src/Component/Dialog/Dialog.stories.ts +76 -7
  93. package/src/Component/Dialog/Dialog.stories.tsx +1 -1
  94. package/src/Component/Dialog/Elements/Dialog.ts +14 -34
  95. package/src/Component/Dialog/__snapshots__/Dialog.stories.ts.snap +102 -66
  96. package/src/Component/Dialog/dialog.css +31 -19
  97. package/src/Component/Dialog/dialog.twig +14 -15
  98. package/src/Component/DropMenu/DropMenu.stories.ts +1 -1
  99. package/src/Component/DropMenu/DropMenu.stories.tsx +1 -1
  100. package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +28 -26
  101. package/src/Component/DropMenu/drop-menu.css +10 -2
  102. package/src/Component/Filters/Filters.stories.ts +1 -4
  103. package/src/Component/Filters/__snapshots__/Filters.stories.ts.snap +397 -389
  104. package/src/Component/Filters/filters.css +14 -5
  105. package/src/Component/GlobalAlert/GlobalAlert.stories.ts +1 -1
  106. package/src/Component/GlobalAlert/GlobalAlert.stories.tsx +1 -1
  107. package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +33 -29
  108. package/src/Component/GlobalAlert/global-alert.css +2 -2
  109. package/src/Component/HeroBanner/HeroBanner.stories.ts +1 -4
  110. package/src/Component/HeroBanner/HeroBanner.stories.tsx +1 -1
  111. package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +68 -64
  112. package/src/Component/HeroBanner/hero-banner.css +6 -1
  113. package/src/Component/HeroBanner/hero-banner.twig +3 -4
  114. package/src/Component/InPageAlert/InPageAlert.stories.ts +1 -1
  115. package/src/Component/InPageAlert/InPageAlert.stories.tsx +1 -1
  116. package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +10 -8
  117. package/src/Component/InPageAlert/in-page-alert.css +8 -8
  118. package/src/Component/InPageNavigation/Elements/InPageNavigation.ts +1 -1
  119. package/src/Component/InPageNavigation/InPageNavigation.stories.ts +1 -4
  120. package/src/Component/InPageNavigation/InPageNavigation.stories.tsx +1 -1
  121. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +64 -62
  122. package/src/Component/LinkList/LinkList.stories.ts +1 -1
  123. package/src/Component/LinkList/LinkList.stories.tsx +1 -1
  124. package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +31 -29
  125. package/src/Component/ListItem/ListItem.stories.ts +2 -4
  126. package/src/Component/ListItem/ListItem.stories.tsx +1 -1
  127. package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +162 -148
  128. package/src/Component/ListItem/list-item.css +7 -88
  129. package/src/Component/ListItem/list-item.twig +8 -8
  130. package/src/Component/Navigation/Dropdown.stories.tsx +1 -1
  131. package/src/Component/Navigation/Navigation.stories.ts +1 -1
  132. package/src/Component/Navigation/Navigation.stories.tsx +1 -1
  133. package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +291 -283
  134. package/src/Component/Navigation/_navigation-collapsible.css +11 -14
  135. package/src/Component/Navigation/_navigation-dropdown.css +11 -17
  136. package/src/Component/Pagination/Pagination.stories.ts +1 -1
  137. package/src/Component/Pagination/Pagination.stories.tsx +1 -1
  138. package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +59 -57
  139. package/src/Component/Pagination/pagination.css +2 -8
  140. package/src/Component/ResultsBar/Components/ResultsBarInfo.tsx +28 -0
  141. package/src/Component/ResultsBar/Components/ResultsBarSort.tsx +17 -0
  142. package/src/Component/ResultsBar/ResultsBar.stories.ts +37 -0
  143. package/src/Component/ResultsBar/ResultsBar.stories.tsx +50 -0
  144. package/src/Component/ResultsBar/ResultsBar.tsx +7 -0
  145. package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.ts.snap +54 -0
  146. package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.tsx.snap +53 -0
  147. package/src/Component/ResultsBar/results-bar.css +19 -0
  148. package/src/Component/ResultsBar/results-bar.twig +24 -0
  149. package/src/Component/SideNavigation/SideNavigation.stories.ts +1 -1
  150. package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +82 -80
  151. package/src/Component/SideNavigation/side-navigation.css +2 -8
  152. package/src/Component/SocialLinks/SocialLinks.stories.ts +1 -1
  153. package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +30 -28
  154. package/src/Component/Steps/Steps.stories.ts +1 -1
  155. package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +86 -78
  156. package/src/Component/Steps/steps.css +1 -1
  157. package/src/Component/Sticky/Sticky.stories.ts +1 -1
  158. package/src/Component/Sticky/Sticky.stories.tsx +1 -1
  159. package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +9 -7
  160. package/src/Component/Tabs/Tabs.stories.ts +1 -1
  161. package/src/Component/Tabs/Tabs.stories.tsx +1 -1
  162. package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +73 -71
  163. package/src/Component/Tabs/tabs.css +14 -21
  164. package/src/Component/Tag/Tag.stories.ts +1 -1
  165. package/src/Component/Tag/Tag.stories.tsx +1 -1
  166. package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +59 -53
  167. package/src/Component/Tag/tag.css +6 -6
  168. package/src/Component/Tile/Tile.stories.ts +38 -12
  169. package/src/Component/Tile/Tile.stories.tsx +2 -2
  170. package/src/Component/Tile/Tile.tsx +30 -17
  171. package/src/Component/Tile/__snapshots__/Tile.stories.ts.snap +49 -75
  172. package/src/Form/Checkbox/Checkbox.stories.ts +1 -1
  173. package/src/Form/Checkbox/FormCheckbox.stories.tsx +1 -1
  174. package/src/Form/Checkbox/__snapshots__/Checkbox.stories.ts.snap +23 -19
  175. package/src/Form/Description/Description.stories.ts +1 -1
  176. package/src/Form/Description/FormDescription.stories.tsx +1 -1
  177. package/src/Form/Description/FormStatus.stories.ts +1 -1
  178. package/src/Form/Description/__snapshots__/Description.stories.ts.snap +7 -5
  179. package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +14 -10
  180. package/src/Form/Form/Form.stories.tsx +1 -1
  181. package/src/Form/Form/FormTitle.stories.tsx +1 -1
  182. package/src/Form/FormItem/FormItem.stories.ts +1 -4
  183. package/src/Form/FormItem/FormItem.stories.tsx +1 -1
  184. package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +119 -109
  185. package/src/Form/Label/FormLabel.stories.tsx +1 -1
  186. package/src/Form/Label/FormLabel.tsx +1 -1
  187. package/src/Form/Label/Label.stories.ts +1 -1
  188. package/src/Form/Label/__snapshots__/Label.stories.ts.snap +21 -15
  189. package/src/Form/Radio/FormRadio.stories.tsx +1 -1
  190. package/src/Form/Radio/Radio.stories.ts +1 -1
  191. package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +55 -51
  192. package/src/Form/Search/Search.stories.ts +1 -4
  193. package/src/Form/Search/__snapshots__/Search.stories.ts.snap +23 -21
  194. package/src/Form/Select/FormSelect.stories.tsx +1 -1
  195. package/src/Form/Select/FormSelect.tsx +1 -1
  196. package/src/Form/Select/Select.stories.ts +1 -1
  197. package/src/Form/Select/__snapshots__/Select.stories.ts.snap +18 -16
  198. package/src/Form/TextInput/FormText.stories.tsx +1 -1
  199. package/src/Form/TextInput/InputDivider.stories.ts +1 -1
  200. package/src/Form/TextInput/TextInput.stories.ts +1 -1
  201. package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +24 -22
  202. package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +18 -14
  203. package/src/Form/Textarea/FormTextarea.stories.tsx +1 -1
  204. package/src/Form/Textarea/Textarea.stories.ts +1 -1
  205. package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +9 -7
  206. package/src/Form/form.css +24 -34
  207. package/src/Layout/Footer/Footer.stories.ts +1 -6
  208. package/src/Layout/Footer/Footer.stories.tsx +1 -1
  209. package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +10 -10
  210. package/src/Layout/Footer/footer.css +2 -6
  211. package/src/Layout/Footer/footer.twig +0 -1
  212. package/src/Layout/Grid/Grid.stories.ts +8 -8
  213. package/src/Layout/Grid/Grid.stories.tsx +1 -1
  214. package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +38 -32
  215. package/src/Layout/Grid/container-grid.css +1 -1
  216. package/src/Layout/Grid/grid-item.twig +3 -1
  217. package/src/Layout/Grid/grid.css +1 -1
  218. package/src/Layout/Header/Header.stories.ts +1 -6
  219. package/src/Layout/Header/Header.stories.tsx +1 -1
  220. package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +11 -11
  221. package/src/Layout/Header/_header.css +18 -16
  222. package/src/Layout/Header/header.twig +1 -2
  223. package/src/Layout/Masthead/Masthead.stories.ts +1 -3
  224. package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +6 -6
  225. package/src/Layout/Masthead/masthead.twig +0 -2
  226. package/src/Layout/Page/Page.stories.tsx +1 -1
  227. package/src/Layout/Page/page.css +16 -40
  228. package/src/Layout/Page/page.twig +6 -1
  229. package/src/Layout/Section/Background.stories.ts +60 -8
  230. package/src/Layout/Section/Breakouts.stories.ts +1 -3
  231. package/src/Layout/Section/Flow.stories.ts +1 -3
  232. package/src/Layout/Section/Section.stories.ts +1 -6
  233. package/src/Layout/Section/Section.stories.tsx +1 -1
  234. package/src/Layout/Section/SectionGrid.stories.tsx +1 -1
  235. package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +36 -24
  236. package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +54 -52
  237. package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +18 -18
  238. package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +2 -2
  239. package/src/Layout/Section/section.css +2 -5
  240. package/src/Layout/Section/section.twig +0 -1
  241. package/src/Layout/Section/twig/section-background.twig +29 -10
  242. package/src/Layout/Section/twig/sections-breakout.twig +28 -33
  243. package/src/Layout/Section/twig/sections-flow.twig +17 -17
  244. package/src/Layout/Section/twig/sections-stacked.twig +4 -4
  245. package/src/Layout/Sidebar/Sidebar.stories.ts +1 -3
  246. package/src/Layout/Sidebar/Sidebar.stories.tsx +1 -1
  247. package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +5 -5
  248. package/src/Layout/Sidebar/sidebar.css +2 -18
  249. package/src/Utility/Drupal/drupal.css +1 -5
  250. package/src/constants.css +53 -24
  251. package/src/enums.ts +1 -0
  252. package/src/react.ts +3 -0
  253. package/src/tokens.js +19 -19
  254. package/dist/build/chunks/utilities-B4YZb689.js.map +0 -1
  255. package/src/Component/Tile/tile.twig +0 -10
  256. package/src/Component/Tile/tiles.css +0 -58
  257. package/src/Component/Tile/twig/tiles.twig +0 -18
@@ -1,5 +1,4 @@
1
- import { Meta, StoryObj } from "@storybook/html"
2
- import { Page } from "../../../.storybook/decorators"
1
+ import { Meta, StoryObj } from "@storybook/html-vite"
3
2
  import Component from "./twig/sections-flow.twig"
4
3
  import "./section.css"
5
4
  import { Section as SectionType } from "@pnx-mixtape/ids-shape"
@@ -7,7 +6,6 @@ import { Section as SectionType } from "@pnx-mixtape/ids-shape"
7
6
  const meta: Meta<SectionType> = {
8
7
  tags: ["autodocs"],
9
8
  component: Component,
10
- decorators: [Page],
11
9
  }
12
10
 
13
11
  export default meta
@@ -1,5 +1,4 @@
1
- import { Meta, StoryObj } from "@storybook/html"
2
- import { Page } from "../../../.storybook/decorators"
1
+ import { Meta, StoryObj } from "@storybook/html-vite"
3
2
  import Component from "./section.twig"
4
3
  import Link from "../../Atom/Link/link.twig"
5
4
  import Icon from "../../Atom/Icon/icon.twig"
@@ -35,9 +34,6 @@ const meta: Meta<SectionType> = {
35
34
  }),
36
35
  }),
37
36
  },
38
- parameters: {
39
- deepControls: { enabled: true },
40
- },
41
37
  argTypes: {
42
38
  modifiers: {
43
39
  options: Object.values(SectionModifiers),
@@ -55,7 +51,6 @@ const meta: Meta<SectionType> = {
55
51
  "link.href": { control: "text" },
56
52
  "link.title": { control: "text" },
57
53
  },
58
- decorators: [Page],
59
54
  }
60
55
 
61
56
  export default meta
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from "@storybook/react"
1
+ import { Meta, StoryObj } from "@storybook/react-vite"
2
2
  import Component from "./Section"
3
3
  import { PageWidths, SectionFlow, SectionStyles } from "../../enums"
4
4
  import { SectionTypes } from "@pnx-mixtape/ids-shape"
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from "@storybook/react"
1
+ import { Meta, StoryObj } from "@storybook/react-vite"
2
2
  import Component from "./SectionGrid"
3
3
  import { PageWidths, SectionFlow, SectionStyles } from "../../enums"
4
4
  import { SectionTypes, GridModifiers } from "@pnx-mixtape/ids-shape"
@@ -1,59 +1,71 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Layout/Section/Background Background smoke-test 1`] = `
4
- <div class="mx-page">
5
- <section class="mx-section background--alt">
6
- <figure class="mx-background--image mx-section__full"
4
+ <div class="mx-page default">
5
+ <div class="mx-section mx-page ">
6
+ <figure class="mx-background--image mx-section--full"
7
7
  aria-hidden="true"
8
8
  >
9
- <img src="https://picsum.photos/id/56/1642/560?grayscale"
10
- alt
11
- >
9
+ <picture>
10
+ <img src="https://picsum.photos/id/56/1642/560?grayscale"
11
+ alt="Blurry bubbles"
12
+ >
13
+ </picture>
12
14
  </figure>
13
- <div class="mx-section--xl">
15
+ <div class="mx-container mx-section--xl">
14
16
  <div class="mx-section__header">
15
17
  <h2>
16
- Section with background image
18
+ Section name
17
19
  </h2>
18
- <a class="mx-button mx-button--dark"
20
+ <a class="mx-link--more"
19
21
  href="#"
20
22
  >
21
- Learn more
23
+ <span>
24
+ See more content
25
+ </span>
26
+ <span class="mx-icon mx-icon--arrow-right ">
27
+ </span>
22
28
  </a>
23
29
  </div>
24
- <p>
30
+ <p class="mx-text--lede">
25
31
  A short description to help explain enough about the subject matter to encourage visitors to learn more.
26
32
  </p>
27
33
  </div>
28
- </section>
34
+ </div>
29
35
  </div>
30
36
  `;
31
37
 
32
38
  exports[`Layout/Section/Background Dark smoke-test 1`] = `
33
- <div class="mx-page">
34
- <section class="mx-section background--reverse">
35
- <figure class="mx-background--image mx-section__full"
39
+ <div class="mx-page default">
40
+ <div class="mx-section mx-page mx-background--reverse">
41
+ <figure class="mx-background--image mx-section--full"
36
42
  aria-hidden="true"
37
43
  >
38
- <img src="https://picsum.photos/id/56/1642/560?grayscale"
39
- alt
40
- >
44
+ <picture>
45
+ <img src="https://picsum.photos/id/56/1642/560?grayscale"
46
+ alt="Blurry bubbles"
47
+ >
48
+ </picture>
41
49
  </figure>
42
- <div class="mx-section--xl">
50
+ <div class="mx-container mx-section--xl">
43
51
  <div class="mx-section__header">
44
52
  <h2>
45
- Section with background image
53
+ Section name
46
54
  </h2>
47
- <a class="mx-button mx-button--dark"
55
+ <a class="mx-link--more"
48
56
  href="#"
49
57
  >
50
- Learn more
58
+ <span>
59
+ See more content
60
+ </span>
61
+ <span class="mx-icon mx-icon--arrow-right ">
62
+ </span>
51
63
  </a>
52
64
  </div>
53
- <p>
65
+ <p class="mx-text--lede">
54
66
  A short description to help explain enough about the subject matter to encourage visitors to learn more.
55
67
  </p>
56
68
  </div>
57
- </section>
69
+ </div>
58
70
  </div>
59
71
  `;
@@ -1,79 +1,81 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Layout/Section/Breakouts Breakouts smoke-test 1`] = `
4
- <div class="mx-page">
5
- <section class="mx-section mx-section--flow">
4
+ <div class="mx-page default">
5
+ <p>
6
+ Default is container width, with an inline gutter for smaller screens.
7
+ </p>
8
+ <p class="mx-section--narrow ">
9
+ Or for optimum content width with .section--narrow
10
+ </p>
11
+ <p class="mx-section--feature">
12
+ or slightly larger feature widths with .section--feature
13
+ </p>
14
+ <p class="mx-section--full">
15
+ or full width with .section--full
16
+ </p>
17
+ <p class="mx-section--flow">
18
+ Sections can be spaced naturally with .mx-section--flow
19
+ </p>
20
+ <p class="mx-section--flow mx-section--feature">
21
+ to create a gap between them, even if they have different widths.
22
+ </p>
23
+ <p class="mx-section--group">
24
+ Or they can be grouped together
25
+ </p>
26
+ <p class="mx-section--feature mx-section--group">
27
+ even if they have different content widths.
28
+ </p>
29
+ <section class="mx-page mx-section--flow mx-background--reverse">
6
30
  <p>
7
- Default is container width, with an inline gutter for smaller screens.
8
- </p>
9
- </section>
10
- <section class="mx-section mx-section__full mx-section--flow">
11
- <p>
12
- Section can have children with different content widths;
31
+ Any section can have a background color, or utilise any of the section vertical spacing classes
13
32
  </p>
14
- <p class="mx-section__narrow">
15
- like the optimum content width with .section__narrow
33
+ <p class="mx-section--s">
34
+ even children
16
35
  </p>
17
- <p class="mx-section__feature">
18
- or slightly larger feature widths with .section__feature
36
+ <p class="mx-background--box mx-section--m mx-background--reset">
37
+ and ones with their own backgrounds.
19
38
  </p>
20
- <p class="mx-section__full">
21
- or full width with .section__full
39
+ <p class="mx-section--s mx-section--narrow">
40
+ A section with a background colour creates a subgrid.
22
41
  </p>
23
42
  </section>
24
- <section class="mx-section mx-section--flow">
43
+ <section class="mx-page mx-section--flow mx-background--alt">
25
44
  <p>
26
- Sections can be nested
45
+ Page can be nested and have the same content width options as un-nested ones;
27
46
  </p>
28
- <section class="mx-section">
29
- <p>
30
- and have the same content width options are un-nested ones;
31
- </p>
32
- <p class="mx-section__narrow">
33
- like the optimum content widths with .section__narrow
47
+ <section class="mx-page mx-section--flow">
48
+ <p class="mx-section--narrow">
49
+ like the optimum content widths with .section--narrow
34
50
  </p>
35
- <p class="mx-section__feature">
36
- or slightly larger feature widths with .section__feature
51
+ <p class="mx-section--feature">
52
+ or slightly larger feature widths with .section--feature
37
53
  </p>
38
- <p class="mx-section__full">
39
- or full width with .section__full
54
+ <p class="mx-section--full">
55
+ or full width with .section--full
40
56
  </p>
41
57
  </section>
42
- </section>
43
- <section class="mx-section mx-section__narrow mx-section--flow">
44
- <p>
45
- Sections can say for all children to have a certain width
46
- </p>
47
- <p>
48
- by using .section__narrow or .section__feature or .section__full
49
- </p>
50
- <p>
51
- on the parent.
52
- </p>
53
- </section>
54
- <section class="mx-section mx-section--flow mx-background--reverse">
55
- <p>
56
- Any section can have a background color, or utilise any of the section vertical spacing classes
57
- </p>
58
- <section class="mx-section--bottom-l">
58
+ <section class="mx-page mx-page--feature mx-section--flow">
59
59
  <p>
60
- even children
60
+ Pages can say for all children to have a certain width
61
61
  </p>
62
- </section>
63
- <section class="mx-section--l mx-background--reset">
64
62
  <p>
65
- and ones with their own backgrounds.
63
+ by using .page--narrow or .page--feature or .page--full
64
+ </p>
65
+ <p>
66
+ on the parent.
66
67
  </p>
67
68
  </section>
68
69
  </section>
69
- <section class="mx-section mx-section--group">
70
+ <section class="mx-section--narrow mx-section--flow">
70
71
  <p>
71
- Sections can be grouped together
72
+ Sections can also say for all children to have a certain width
72
73
  </p>
73
- </section>
74
- <section class="mx-section mx-section__feature mx-section--group">
75
74
  <p>
76
- even if they have different content widths.
75
+ by using .section--narrow or .section--feature or .section--full
76
+ </p>
77
+ <p>
78
+ on the parent.
77
79
  </p>
78
80
  </section>
79
81
  </div>
@@ -1,88 +1,88 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Layout/Section/Flow Flow smoke-test 1`] = `
4
- <div class="mx-page">
5
- <section class="mx-section mx-section--flow">
4
+ <div class="mx-page default">
5
+ <section class="mx-section--flow">
6
6
  <p>
7
7
  first section has top and bottom spacing
8
8
  </p>
9
9
  </section>
10
- <section class="mx-section mx-section--flow">
10
+ <section class="mx-section--flow">
11
11
  <p>
12
12
  section with normal flow
13
13
  </p>
14
14
  </section>
15
- <section class="mx-section mx-section--flow">
15
+ <section class="mx-section--flow">
16
16
  <p>
17
17
  section with normal flow
18
18
  </p>
19
19
  </section>
20
- <section class="mx-section mx-section--group mx-background--alt">
20
+ <section class="mx-section--group mx-background--alt">
21
21
  <p>
22
22
  certain sections can be
23
23
  </p>
24
24
  </section>
25
- <section class="mx-section mx-section--group mx-background--alt">
25
+ <section class="mx-section--group mx-background--alt">
26
26
  <p>
27
27
  grouped togther as siblings
28
28
  </p>
29
29
  </section>
30
- <section class="mx-section mx-section--group mx-background--alt">
30
+ <section class="mx-section--group mx-background--alt">
31
31
  <p>
32
32
  with their own spacing rules
33
33
  </p>
34
34
  </section>
35
- <section class="mx-section mx-section--flow">
35
+ <section class="mx-section--flow">
36
36
  <p>
37
37
  section on it's own has top and bottom spacing
38
38
  </p>
39
39
  </section>
40
- <section class="mx-section mx-section--group mx-background--alt">
40
+ <section class="mx-section--group mx-background--alt">
41
41
  <p>
42
42
  groups can be combined with flow
43
43
  </p>
44
44
  </section>
45
- <section class="mx-section mx-section--flow mx-section--group mx-background--alt">
45
+ <section class="mx-section--flow mx-section--group mx-background--alt">
46
46
  <p>
47
47
  for standard spacing
48
48
  </p>
49
49
  </section>
50
- <section class="mx-section mx-section--flow">
50
+ <section class="mx-section--flow">
51
51
  <p>
52
52
  section after group own has top and bottom spacing
53
53
  </p>
54
54
  </section>
55
- <section class="mx-section mx-section--flow">
55
+ <section class="mx-section--flow">
56
56
  <p>
57
57
  section with normal flow
58
58
  </p>
59
59
  </section>
60
- <section class="mx-section mx-section--flow mx-background--alt">
60
+ <section class="mx-section--flow mx-background--alt">
61
61
  <p>
62
62
  section with background that breaks the flow, also has top and bottom spacing
63
63
  </p>
64
64
  </section>
65
- <section class="mx-section mx-section--flow">
65
+ <section class="mx-section--flow">
66
66
  <p>
67
67
  section after background own has top and bottom spacing
68
68
  </p>
69
69
  </section>
70
- <section class="mx-section mx-section--flow">
70
+ <section class="mx-section--flow">
71
71
  <p>
72
72
  section with normal flow
73
73
  </p>
74
74
  </section>
75
- <section class="mx-section mx-section--group">
75
+ <section class="mx-section--group">
76
76
  <p>
77
77
  groups can be used normally for larger spacing
78
78
  </p>
79
79
  </section>
80
- <section class="mx-section mx-section--group mx-background--alt">
80
+ <section class="mx-section--group mx-background--alt">
81
81
  <p>
82
82
  adding a background breaks the grouping
83
83
  </p>
84
84
  </section>
85
- <section class="mx-section mx-section--group mx-background--alt">
85
+ <section class="mx-section--group mx-background--alt">
86
86
  <p>
87
87
  into a new group
88
88
  </p>
@@ -1,8 +1,8 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Layout/Section Section smoke-test 1`] = `
4
- <div class="mx-page">
5
- <div class="mx-section mx-section--xl">
4
+ <div class="mx-page default">
5
+ <div class=" mx-section--xl">
6
6
  <div class="mx-container">
7
7
  <div class="mx-section__header">
8
8
  <h2>
@@ -92,7 +92,7 @@
92
92
  }
93
93
 
94
94
  .mx-section--group {
95
- --group-spacing: var(--section-xl, var(--spacing-uul));
95
+ --group-spacing: var(--section-l, var(--spacing-xl));
96
96
 
97
97
  padding-block: 0;
98
98
 
@@ -136,10 +136,7 @@
136
136
  flex-flow: row wrap;
137
137
  gap: var(--spacing-s);
138
138
  align-items: center;
139
-
140
- & :is(a, button) {
141
- margin-inline-start: auto;
142
- }
139
+ justify-content: space-between;
143
140
  }
144
141
  }
145
142
 
@@ -1,6 +1,5 @@
1
1
  {% set baseClass = 'mx-section' %}
2
2
  {% set classes = [
3
- baseClass,
4
3
  background ? 'mx-background--'~background : null
5
4
  ] %}
6
5
  {% for modifier in modifiers %}
@@ -1,12 +1,31 @@
1
- <section class="mx-section {{ background }}">
2
- <figure class="mx-background--image mx-section__full" aria-hidden="true">
3
- <img src="https://picsum.photos/id/56/1642/560?grayscale" alt="">
1
+ {% set baseClass = 'mx-section' %}
2
+ {% set classes = [
3
+ baseClass,
4
+ 'mx-page',
5
+ background ? 'mx-background--'~background : null
6
+ ] %}
7
+ {% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
8
+ {% set innnerClasses = [
9
+ container ? 'mx-container' : null
10
+ ] %}
11
+ {% for modifier in modifiers %}
12
+ {% set innnerClasses = innnerClasses|merge([baseClass~"--"~modifier]) %}
13
+ {% endfor %}
14
+ {% set innerAttributes = (innerAttributes ?? create_attribute()).addClass(innnerClasses) %}
15
+
16
+ <{{ as}}{{ attributes }}>
17
+ {% if image is not empty %}
18
+ <figure class="mx-background--image mx-section--full" aria-hidden="true">
19
+ {{ image }}
4
20
  </figure>
5
- <div class="mx-section--xl">
6
- <div class="mx-section__header">
7
- <h2>Section with background image</h2>
8
- <a class="mx-button mx-button--dark" href="#">Learn more</a>
9
- </div>
10
- <p>A short description to help explain enough about the subject matter to encourage visitors to learn more.</p>
21
+ {% endif %}
22
+ <div{{ innerAttributes }}>
23
+ {% if title is not empty or link is not empty %}
24
+ <div class="mx-section__header">
25
+ {{ title }}
26
+ {{ link }}
27
+ </div>
28
+ {% endif %}
29
+ {{ content }}
11
30
  </div>
12
- </section>
31
+ </{{ as }}>
@@ -1,38 +1,33 @@
1
- <section class="mx-section mx-section--flow">
2
- <p>Default is container width, with an inline gutter for smaller screens.</p>
3
- </section>
4
- <section class="mx-section mx-section__full mx-section--flow">
5
- <p>Section can have children with different content widths;</p>
6
- <p class="mx-section__narrow">like the optimum content width with .section__narrow</p>
7
- <p class="mx-section__feature">or slightly larger feature widths with .section__feature</p>
8
- <p class="mx-section__full">or full width with .section__full</p>
9
- </section>
10
- <section class="mx-section mx-section--flow">
11
- <p>Sections can be nested</p>
12
- <section class="mx-section">
13
- <p>and have the same content width options are un-nested ones;</p>
14
- <p class="mx-section__narrow">like the optimum content widths with .section__narrow</p>
15
- <p class="mx-section__feature">or slightly larger feature widths with .section__feature</p>
16
- <p class="mx-section__full">or full width with .section__full</p>
17
- </section>
18
- </section>
19
- <section class="mx-section mx-section__narrow mx-section--flow">
20
- <p>Sections can say for all children to have a certain width</p>
21
- <p>by using .section__narrow or .section__feature or .section__full</p>
22
- <p>on the parent.</p>
23
- </section>
24
- <section class="mx-section mx-section--flow mx-background--reverse">
1
+ <p>Default is container width, with an inline gutter for smaller screens.</p>
2
+ <p class="mx-section--narrow ">Or for optimum content width with .section--narrow</p>
3
+ <p class="mx-section--feature">or slightly larger feature widths with .section--feature</p>
4
+ <p class="mx-section--full">or full width with .section--full</p>
5
+ <p class="mx-section--flow">Sections can be spaced naturally with .mx-section--flow</p>
6
+ <p class="mx-section--flow mx-section--feature">to create a gap between them, even if they have different widths.</p>
7
+ <p class="mx-section--group">Or they can be grouped together</p>
8
+ <p class="mx-section--feature mx-section--group">even if they have different content widths.</p>
9
+
10
+ <section class="mx-page mx-section--flow mx-background--reverse">
25
11
  <p>Any section can have a background color, or utilise any of the section vertical spacing classes</p>
26
- <section class="mx-section--bottom-l">
27
- <p>even children</p>
12
+ <p class="mx-section--s">even children</p>
13
+ <p class="mx-background--box mx-section--m mx-background--reset">and ones with their own backgrounds.</p>
14
+ <p class="mx-section--s mx-section--narrow">A section with a background colour creates a subgrid.</p>
15
+ </section>
16
+ <section class="mx-page mx-section--flow mx-background--alt">
17
+ <p>Page can be nested and have the same content width options as un-nested ones;</p>
18
+ <section class="mx-page mx-section--flow">
19
+ <p class="mx-section--narrow">like the optimum content widths with .section--narrow</p>
20
+ <p class="mx-section--feature">or slightly larger feature widths with .section--feature</p>
21
+ <p class="mx-section--full">or full width with .section--full</p>
28
22
  </section>
29
- <section class="mx-section--l mx-background--reset">
30
- <p>and ones with their own backgrounds.</p>
23
+ <section class="mx-page mx-page--feature mx-section--flow">
24
+ <p>Pages can say for all children to have a certain width</p>
25
+ <p>by using .page--narrow or .page--feature or .page--full</p>
26
+ <p>on the parent.</p>
31
27
  </section>
32
28
  </section>
33
- <section class="mx-section mx-section--group">
34
- <p>Sections can be grouped together</p>
35
- </section>
36
- <section class="mx-section mx-section__feature mx-section--group">
37
- <p>even if they have different content widths.</p>
29
+ <section class="mx-section--narrow mx-section--flow">
30
+ <p>Sections can also say for all children to have a certain width</p>
31
+ <p>by using .section--narrow or .section--feature or .section--full</p>
32
+ <p>on the parent.</p>
38
33
  </section>
@@ -1,51 +1,51 @@
1
- <section class="mx-section mx-section--flow">
1
+ <section class="mx-section--flow">
2
2
  <p>first section has top and bottom spacing</p>
3
3
  </section>
4
- <section class="mx-section mx-section--flow">
4
+ <section class="mx-section--flow">
5
5
  <p>section with normal flow</p>
6
6
  </section>
7
- <section class="mx-section mx-section--flow">
7
+ <section class="mx-section--flow">
8
8
  <p>section with normal flow</p>
9
9
  </section>
10
- <section class="mx-section mx-section--group mx-background--alt">
10
+ <section class="mx-section--group mx-background--alt">
11
11
  <p>certain sections can be</p>
12
12
  </section>
13
- <section class="mx-section mx-section--group mx-background--alt">
13
+ <section class="mx-section--group mx-background--alt">
14
14
  <p>grouped togther as siblings</p>
15
15
  </section>
16
- <section class="mx-section mx-section--group mx-background--alt">
16
+ <section class="mx-section--group mx-background--alt">
17
17
  <p>with their own spacing rules</p>
18
18
  </section>
19
- <section class="mx-section mx-section--flow">
19
+ <section class="mx-section--flow">
20
20
  <p>section on it's own has top and bottom spacing</p>
21
21
  </section>
22
- <section class="mx-section mx-section--group mx-background--alt">
22
+ <section class="mx-section--group mx-background--alt">
23
23
  <p>groups can be combined with flow</p>
24
24
  </section>
25
- <section class="mx-section mx-section--flow mx-section--group mx-background--alt">
25
+ <section class="mx-section--flow mx-section--group mx-background--alt">
26
26
  <p>for standard spacing</p>
27
27
  </section>
28
- <section class="mx-section mx-section--flow">
28
+ <section class="mx-section--flow">
29
29
  <p>section after group own has top and bottom spacing</p>
30
30
  </section>
31
- <section class="mx-section mx-section--flow">
31
+ <section class="mx-section--flow">
32
32
  <p>section with normal flow</p>
33
33
  </section>
34
- <section class="mx-section mx-section--flow mx-background--alt">
34
+ <section class="mx-section--flow mx-background--alt">
35
35
  <p>section with background that breaks the flow, also has top and bottom spacing</p>
36
36
  </section>
37
- <section class="mx-section mx-section--flow">
37
+ <section class="mx-section--flow">
38
38
  <p>section after background own has top and bottom spacing</p>
39
39
  </section>
40
- <section class="mx-section mx-section--flow">
40
+ <section class="mx-section--flow">
41
41
  <p>section with normal flow</p>
42
42
  </section>
43
- <section class="mx-section mx-section--group">
43
+ <section class="mx-section--group">
44
44
  <p>groups can be used normally for larger spacing</p>
45
45
  </section>
46
- <section class="mx-section mx-section--group mx-background--alt">
46
+ <section class="mx-section--group mx-background--alt">
47
47
  <p>adding a background breaks the grouping</p>
48
48
  </section>
49
- <section class="mx-section mx-section--group mx-background--alt">
49
+ <section class="mx-section--group mx-background--alt">
50
50
  <p>into a new group</p>
51
51
  </section>
@@ -1,19 +1,19 @@
1
- <section class="mx-section mx-section--xl mx-background--alt mx-vertical-flow">
1
+ <section class="mx-section--xl mx-background--alt mx-vertical-flow">
2
2
  <h2>Section Extra Large</h2>
3
3
  <p>Extra Large spacing at the section level. Use the <code>section--xl</code> class to apply this spacing to the outter section.</p>
4
4
  <a class="mx-link--more" href="#">Learn more</a>
5
5
  </section>
6
- <section class="mx-section mx-section--l mx-vertical-flow">
6
+ <section class="mx-section--l mx-vertical-flow">
7
7
  <h2>Section Large</h2>
8
8
  <p>Large spacing at the section level. Use the <code>section--l</code> class to apply this spacing to the outter section.</p>
9
9
  <a class="mx-link--more" href="#">Learn more</a>
10
10
  </section>
11
- <section class="mx-section mx-section--m mx-background--alt mx-vertical-flow">
11
+ <section class="mx-section--m mx-background--alt mx-vertical-flow">
12
12
  <h2>Section Medium</h2>
13
13
  <p>Medium spacing at the section level. Use the <code>section--m</code> class to apply this spacing to the outter section.</p>
14
14
  <a class="mx-link--more" href="#">Learn more</a>
15
15
  </section>
16
- <section class="mx-section mx-section--s mx-vertical-flow">
16
+ <section class="mx-section--s mx-vertical-flow">
17
17
  <h2>Section Small</h2>
18
18
  <p>Small spacing at the section level. Use the <code>section--s</code> class to apply this spacing to the outter section.</p>
19
19
  <a class="mx-link--more" href="#">Learn more</a>