@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
@@ -33,6 +33,8 @@
33
33
  & .mx-social-links {
34
34
  grid-area: social;
35
35
  align-self: end;
36
+ display: flex;
37
+ gap: var(--spacing-xxxs);
36
38
  }
37
39
 
38
40
  & .mx-footer__copyright {
@@ -41,15 +43,11 @@
41
43
 
42
44
  &:not(:first-child) {
43
45
  padding-block-start: var(--spacing-s);
44
- border-block-start: var(--line-width, 1px) solid
45
- var(--line-colour, var(--colour-border));
46
46
  margin-block-start: var(--gap);
47
47
 
48
48
  & + .mx-footer__links {
49
49
  @media (--medium-up) {
50
50
  padding-block-start: var(--spacing-s);
51
- border-block-start: var(--line-width, 1px) solid
52
- var(--line-colour, var(--colour-border));
53
51
  }
54
52
  }
55
53
  }
@@ -72,8 +70,6 @@
72
70
  .mx-footer__aoc {
73
71
  grid-area: aoc;
74
72
  padding-block-end: var(--footer-row-gap, var(--spacing-xxl));
75
- border-block-end: var(--line-width, 1px) solid
76
- var(--line-colour, var(--colour-border));
77
73
  margin-block-end: var(--gap);
78
74
  text-align: center;
79
75
  }
@@ -1,7 +1,6 @@
1
1
  {% set baseClass = 'mx-footer' %}
2
2
  {% set classes = [
3
3
  baseClass,
4
- 'mx-section',
5
4
  'mx-section--top-l',
6
5
  'mx-section--bottom-m',
7
6
  background == "light" ? 'mx-background--alt' : 'mx-background--reverse',
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from "@storybook/html"
1
+ import { Meta, StoryObj } from "@storybook/html-vite"
2
2
  import Component from "./grid.twig"
3
3
  import GridItem from "./grid-item.twig"
4
4
  import "./grid.css"
@@ -14,12 +14,12 @@ const meta: Meta<GridType> = {
14
14
  component: Component,
15
15
  args: {
16
16
  items: [
17
- GridItem({ item: "item 1" }),
18
- GridItem({ item: "item 2" }),
19
- GridItem({ item: "item 3" }),
20
- GridItem({ item: "item 4" }),
21
- GridItem({ item: "item 5" }),
22
- GridItem({ item: "item 6" }),
17
+ GridItem({ item: "<span>item 1</span>" }),
18
+ GridItem({ item: "<span>item 2</span>" }),
19
+ GridItem({ item: "<span>item 3</span>" }),
20
+ GridItem({ item: "<span>item 4</span>" }),
21
+ GridItem({ item: "<span>item 5</span>" }),
22
+ GridItem({ item: "<span>item 6</span>" }),
23
23
  ],
24
24
  as: SectionTypes.DIV,
25
25
  modifiers: [GridModifiers.SM_2, GridModifiers.LG_4],
@@ -59,7 +59,7 @@ export const Span: Story = {
59
59
  args: {
60
60
  modifiers: [GridModifiers.SM_2, GridModifiers.MD_3],
61
61
  items: [
62
- GridItem({ item: "item 1" }),
62
+ GridItem({ item: "<span>item 1</span>" }),
63
63
  GridItem({
64
64
  item: "item 2, span 2",
65
65
  modifiers: [GridModifiers.MD_2],
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @eslint-react/no-array-index-key, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment */
2
- import { Meta, StoryObj } from "@storybook/react"
2
+ import { Meta, StoryObj } from "@storybook/react-vite"
3
3
  import Component from "./Grid"
4
4
  import { AsTypes, GridModifiers, SectionTypes } from "@pnx-mixtape/ids-shape"
5
5
 
@@ -1,46 +1,52 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Layout/Grid Grid smoke-test 1`] = `
4
- <div class="mx-grid mx-grid--cols-sm-2 mx-grid--cols-lg-4">
5
- <div class>
6
- item 1
7
- </div>
8
- <div class>
9
- item 2
10
- </div>
11
- <div class>
12
- item 3
13
- </div>
14
- <div class>
15
- item 4
16
- </div>
17
- <div class>
18
- item 5
19
- </div>
20
- <div class>
21
- item 6
4
+ <div class="mx-page default">
5
+ <div class="mx-grid mx-grid--cols-sm-2 mx-grid--cols-lg-4">
6
+ <span>
7
+ item 1
8
+ </span>
9
+ <span>
10
+ item 2
11
+ </span>
12
+ <span>
13
+ item 3
14
+ </span>
15
+ <span>
16
+ item 4
17
+ </span>
18
+ <span>
19
+ item 5
20
+ </span>
21
+ <span>
22
+ item 6
23
+ </span>
22
24
  </div>
23
25
  </div>
24
26
  `;
25
27
 
26
28
  exports[`Layout/Grid List smoke-test 1`] = `
27
- <ul class="mx-grid mx-grid--cols-sm-2">
28
- <li class>
29
- list item 1
30
- </li>
31
- <li class>
32
- list item 2
33
- </li>
34
- </ul>
29
+ <div class="mx-page default">
30
+ <ul class="mx-grid mx-grid--cols-sm-2">
31
+ <li class>
32
+ list item 1
33
+ </li>
34
+ <li class>
35
+ list item 2
36
+ </li>
37
+ </ul>
38
+ </div>
35
39
  `;
36
40
 
37
41
  exports[`Layout/Grid Span smoke-test 1`] = `
38
- <div class="mx-grid mx-grid--cols-sm-2 mx-grid--cols-md-3">
39
- <div class>
40
- item 1
41
- </div>
42
- <div class="mx-grid-item__span-md-2">
43
- item 2, span 2
42
+ <div class="mx-page default">
43
+ <div class="mx-grid mx-grid--cols-sm-2 mx-grid--cols-md-3">
44
+ <span>
45
+ item 1
46
+ </span>
47
+ <div class="mx-grid-item__span-md-2">
48
+ item 2, span 2
49
+ </div>
44
50
  </div>
45
51
  </div>
46
52
  `;
@@ -7,7 +7,7 @@
7
7
  --container-name: grid-item;
8
8
 
9
9
  @container grid-item (min-width: token("breakpoint.l")) {
10
- --grid-gap: var(--gap-l);
10
+ --grid-gap: var(--large-grid-gap, var(--gap-l));
11
11
  }
12
12
 
13
13
  &
@@ -9,8 +9,10 @@
9
9
  <{{ as }}{{ attributes.addClass("mx-container") }}>
10
10
  {{ item }}
11
11
  </{{ as }}>
12
- {% else %}
12
+ {% elseif classes is not empty or as != "div" %}
13
13
  <{{ as }}{{ attributes }}>
14
14
  {{ item }}
15
15
  </{{ as }}>
16
+ {% else %}
17
+ {{ item }}
16
18
  {% endif %}
@@ -16,7 +16,7 @@
16
16
  gap: var(--grid-gap, var(--gap));
17
17
 
18
18
  @media (--large-up) {
19
- --grid-gap: var(--gap-l);
19
+ --grid-gap: var(--large-grid-gap, var(--gap-l));
20
20
  }
21
21
 
22
22
  &:is(ul, ol) {
@@ -1,10 +1,9 @@
1
- import { Meta, StoryObj } from "@storybook/html"
1
+ import { Meta, StoryObj } from "@storybook/html-vite"
2
2
  import Component from "./header.twig"
3
3
  import "./_header.css"
4
4
  import "./_toggles.css"
5
5
  import "./Elements/GlobalToggle"
6
6
  import { ButtonTypes, Header as HeaderType } from "@pnx-mixtape/ids-shape"
7
- import { Page } from "../../../.storybook/decorators"
8
7
  import { Icons } from "../../enums"
9
8
 
10
9
  // Deps.
@@ -63,9 +62,6 @@ const meta: Meta<MxHeaderType> = {
63
62
  ],
64
63
  }),
65
64
  },
66
- parameters: {
67
- deepControls: { enabled: true },
68
- },
69
65
  argTypes: {
70
66
  stacked: { control: "boolean" },
71
67
  title: { control: "text" },
@@ -75,7 +71,6 @@ const meta: Meta<MxHeaderType> = {
75
71
  "logo.image.src": { control: "text" },
76
72
  "logo.image.alt": { control: "text" },
77
73
  },
78
- decorators: [Page],
79
74
  }
80
75
 
81
76
  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 "./Header"
3
3
  import { mixtapeLogo, navigationItems } from "../../../mockups/constants"
4
4
  import "./header.css"
@@ -1,8 +1,8 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Layout/Header Controls smoke-test 1`] = `
4
- <div class="mx-page">
5
- <header class="mx-header mx-section__full mx-page mx-section--s">
4
+ <div class="mx-page default">
5
+ <header class="mx-header mx-page mx-section--s">
6
6
  <div class="mx-header__inner">
7
7
  <div class="mx-header__brand">
8
8
  <a class="mx-logo"
@@ -76,8 +76,8 @@ exports[`Layout/Header Controls smoke-test 1`] = `
76
76
  `;
77
77
 
78
78
  exports[`Layout/Header Header smoke-test 1`] = `
79
- <div class="mx-page">
80
- <header class="mx-header mx-section__full mx-page mx-section--s">
79
+ <div class="mx-page default">
80
+ <header class="mx-header mx-page mx-section--s">
81
81
  <div class="mx-header__inner">
82
82
  <div class="mx-header__brand">
83
83
  <a class="mx-logo"
@@ -142,8 +142,8 @@ exports[`Layout/Header Header smoke-test 1`] = `
142
142
  `;
143
143
 
144
144
  exports[`Layout/Header Search smoke-test 1`] = `
145
- <div class="mx-page">
146
- <header class="mx-header mx-section__full mx-page mx-section--s">
145
+ <div class="mx-page default">
146
+ <header class="mx-header mx-page mx-section--s">
147
147
  <div class="mx-header__inner">
148
148
  <div class="mx-header__brand">
149
149
  <a class="mx-logo"
@@ -243,8 +243,8 @@ exports[`Layout/Header Search smoke-test 1`] = `
243
243
  `;
244
244
 
245
245
  exports[`Layout/Header Stacked smoke-test 1`] = `
246
- <div class="mx-page">
247
- <header class="mx-header mx-section__full mx-page mx-section--s">
246
+ <div class="mx-page default">
247
+ <header class="mx-header mx-page mx-section--s">
248
248
  <div class="mx-header__inner">
249
249
  <div class="mx-header__brand">
250
250
  <a class="mx-logo"
@@ -306,7 +306,7 @@ exports[`Layout/Header Stacked smoke-test 1`] = `
306
306
  </div>
307
307
  </header>
308
308
  <div id="unique-1"
309
- class="mx-header__nav mx-section__full mx-page"
309
+ class="mx-header__nav mx-page"
310
310
  aria-label="Primary navigation"
311
311
  role="region"
312
312
  >
@@ -451,8 +451,8 @@ exports[`Layout/Header Stacked smoke-test 1`] = `
451
451
  `;
452
452
 
453
453
  exports[`Layout/Header WithTitle smoke-test 1`] = `
454
- <div class="mx-page">
455
- <header class="mx-header mx-section__full mx-page mx-section--s">
454
+ <div class="mx-page default">
455
+ <header class="mx-header mx-page mx-section--s">
456
456
  <div class="mx-header__inner">
457
457
  <div class="mx-header__brand">
458
458
  <a class="mx-logo"
@@ -29,9 +29,13 @@
29
29
 
30
30
  .mx-header__nav {
31
31
  inline-size: 100%;
32
- transition:
33
- 0.2s opacity var(--ease),
34
- 0.2s visibility var(--ease);
32
+ opacity: 1;
33
+ display: grid;
34
+
35
+ @starting-style {
36
+ opacity: 0;
37
+ display: grid;
38
+ }
35
39
 
36
40
  @media (--global-nav-up) {
37
41
  z-index: 2;
@@ -41,12 +45,9 @@
41
45
  }
42
46
 
43
47
  &[inert] {
44
- block-size: 0;
48
+ display: none;
45
49
  opacity: 0;
46
- visibility: hidden;
47
- transition:
48
- 0.2s opacity var(--ease),
49
- 0.2s visibility var(--ease);
50
+ transition-duration: 0.4s;
50
51
  }
51
52
  }
52
53
 
@@ -56,22 +57,23 @@
56
57
  inset-block-start: 2px;
57
58
  inset-inline-start: 0;
58
59
  inline-size: 100%;
59
- transition:
60
- 0.2s opacity var(--ease),
61
- 0.2s visibility var(--ease);
60
+ opacity: 1;
61
+ display: flex;
62
+
63
+ @starting-style {
64
+ opacity: 0;
65
+ display: grid;
66
+ }
62
67
 
63
68
  @media (--global-nav-up) {
64
- display: flex;
65
69
  position: relative;
66
70
  inline-size: auto;
67
71
  }
68
72
 
69
73
  &[inert] {
74
+ display: none;
70
75
  opacity: 0;
71
- visibility: hidden;
72
- transition:
73
- 0.2s opacity var(--ease),
74
- 0.2s visibility var(--ease);
76
+ transition-duration: 0.4s;
75
77
  }
76
78
 
77
79
  & input {
@@ -1,7 +1,6 @@
1
1
  {% set baseClass = 'mx-header' %}
2
2
  {% set classes = [
3
3
  baseClass,
4
- 'mx-section__full',
5
4
  'mx-page',
6
5
  'mx-section--s',
7
6
  ] %}
@@ -49,7 +48,7 @@
49
48
  </div>
50
49
  </header>
51
50
  {% if stacked and (navigation is not empty or controls is not empty) %}
52
- <div id="primary-nav" class="mx-header__nav mx-section__full mx-page global-nav-up-only" aria-label="Primary navigation">
51
+ <div id="primary-nav" class="mx-header__nav mx-page global-nav-up-only" aria-label="Primary navigation">
53
52
  <div class="mx-header__nav-inner">
54
53
  {{ navigation }}
55
54
  {% if controls is not empty %}
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from "@storybook/html"
1
+ import { Meta, StoryObj } from "@storybook/html-vite"
2
2
  import Component from "./masthead.twig"
3
3
  import Link from "../../Atom/Link/link.twig"
4
4
  import Icon from "../../Atom/Icon/icon.twig"
@@ -7,7 +7,6 @@ import {
7
7
  Masthead as MastheadType,
8
8
  MastheadModifier,
9
9
  } from "@pnx-mixtape/ids-shape"
10
- import { Page } from "../../../.storybook/decorators"
11
10
  import { Icons } from "../../enums"
12
11
 
13
12
  const meta: Meta<MastheadType> = {
@@ -26,7 +25,6 @@ const meta: Meta<MastheadType> = {
26
25
  }),
27
26
  ],
28
27
  },
29
- decorators: [Page],
30
28
  }
31
29
 
32
30
  export default meta
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Layout/Masthead Light smoke-test 1`] = `
4
- <div class="mx-page">
4
+ <div class="mx-page default">
5
5
  <nav class="mx-skip-links"
6
6
  aria-label="Skip to links"
7
7
  >
@@ -16,7 +16,7 @@ exports[`Layout/Masthead Light smoke-test 1`] = `
16
16
  </span>
17
17
  </a>
18
18
  </nav>
19
- <div class="mx-masthead mx-section__full mx-page mx-spacing--top-xxs mx-spacing--bottom-xxs mx-background--alt">
19
+ <div class="mx-masthead mx-spacing--top-xxs mx-spacing--bottom-xxs mx-background--alt">
20
20
  <div class="flex">
21
21
  <div>
22
22
  A PreviousNext product
@@ -27,7 +27,7 @@ exports[`Layout/Masthead Light smoke-test 1`] = `
27
27
  `;
28
28
 
29
29
  exports[`Layout/Masthead Masthead smoke-test 1`] = `
30
- <div class="mx-page">
30
+ <div class="mx-page default">
31
31
  <nav class="mx-skip-links"
32
32
  aria-label="Skip to links"
33
33
  >
@@ -42,7 +42,7 @@ exports[`Layout/Masthead Masthead smoke-test 1`] = `
42
42
  </span>
43
43
  </a>
44
44
  </nav>
45
- <div class="mx-masthead mx-section__full mx-page mx-spacing--top-xxs mx-spacing--bottom-xxs mx-background--reverse">
45
+ <div class="mx-masthead mx-spacing--top-xxs mx-spacing--bottom-xxs mx-background--reverse">
46
46
  <div class="flex">
47
47
  <div>
48
48
  A PreviousNext product
@@ -53,7 +53,7 @@ exports[`Layout/Masthead Masthead smoke-test 1`] = `
53
53
  `;
54
54
 
55
55
  exports[`Layout/Masthead WithLinks smoke-test 1`] = `
56
- <div class="mx-page">
56
+ <div class="mx-page default">
57
57
  <nav class="mx-skip-links"
58
58
  aria-label="Skip to links"
59
59
  >
@@ -68,7 +68,7 @@ exports[`Layout/Masthead WithLinks smoke-test 1`] = `
68
68
  </span>
69
69
  </a>
70
70
  </nav>
71
- <div class="mx-masthead mx-section__full mx-page mx-spacing--top-xxs mx-spacing--bottom-xxs mx-background--reverse">
71
+ <div class="mx-masthead mx-spacing--top-xxs mx-spacing--bottom-xxs mx-background--reverse">
72
72
  <div class="flex">
73
73
  <div>
74
74
  A PreviousNext product
@@ -1,8 +1,6 @@
1
1
  {% set baseClass = 'mx-masthead' %}
2
2
  {% set classes = [
3
3
  baseClass,
4
- 'mx-section__full',
5
- 'mx-page',
6
4
  'mx-spacing--top-xxs mx-spacing--bottom-xxs',
7
5
  background == "light" ? 'mx-background--alt' : 'mx-background--reverse',
8
6
  ] %}
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from "@storybook/react"
1
+ import { Meta, StoryObj } from "@storybook/react-vite"
2
2
  import Component from "./Page"
3
3
  import { mixtapeHeader, mixtapeFooter } from "../../../mockups/constants"
4
4
  import HeroBanner from "../../Component/HeroBanner/HeroBanner"
@@ -24,62 +24,38 @@
24
24
  var(--full) [full-end];
25
25
 
26
26
  &
27
- > *:where(
28
- :not(
29
- .mx-page,
30
- .mx-section__full,
31
- .mx-section__narrow,
32
- .mx-section__feature,
33
- .mx-section[class*="mx-background--"]
34
- )
27
+ > :where(
28
+ *:not(.mx-page, [class*="mx-background--"]),
29
+ .mx-background--box
35
30
  ) {
36
- grid-column: container;
31
+ grid-column: var(--grid-column, container);
37
32
  }
38
33
 
39
- /* Immediate nested can be subgrid. */
40
- & > :where(.mx-page) {
41
- grid-column: full;
42
- display: grid;
43
- grid-template-columns: subgrid;
44
- }
45
-
46
- /* Deeper nested cannot be subgrid, needs it's children to be full width by default. */
47
- &
48
- > *
49
- :where(.mx-page:not(.mx-page--narrow, .mx-page--feature))
50
- > *:where(:not(.mx-section__narrow, .mx-section__feature)) {
51
- grid-column: full;
52
- }
53
-
54
- /** Adding a background triggers subgrid */
55
- & > :where(.mx-section[class*="mx-background--"]) {
34
+ /* Immediate nested or adding a background triggers subgrid */
35
+ & > :where(.mx-page, [class*="mx-background--"]:not(.mx-background--box)) {
56
36
  grid-column: full;
57
37
  display: grid;
58
38
  grid-template-columns: subgrid;
59
39
 
60
40
  &
61
- > *:where(
62
- :not(
63
- .mx-page,
64
- .mx-section__full,
65
- .mx-section__narrow,
66
- .mx-section__feature
67
- )
41
+ > :where(
42
+ *:not(.mx-page, [class*="mx-background--"]),
43
+ .mx-background--box
68
44
  ) {
69
- grid-column: container;
45
+ grid-column: var(--grid-column, container);
70
46
  }
71
47
  }
72
48
  }
73
49
 
74
- :where(:is(.mx-page--feature > *, .mx-section__feature)) {
75
- grid-column: feature;
50
+ :where(.mx-page--feature > *, .mx-section--feature) {
51
+ --grid-column: feature;
76
52
  }
77
53
 
78
- :where(:is(.mx-page--narrow > *, .mx-section__narrow)) {
79
- grid-column: narrow;
54
+ :where(.mx-page--narrow > *, .mx-section--narrow) {
55
+ --grid-column: narrow;
80
56
  }
81
57
 
82
- :where(:is(.mx-page--full > *, .mx-section__full)) {
83
- grid-column: full;
58
+ :where(.mx-page--full > *, .mx-section--full) {
59
+ --grid-column: full;
84
60
  }
85
61
  }
@@ -1,8 +1,13 @@
1
1
  {% set classes = ['mx-page'] %}
2
2
  {% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
3
+ {% set mainAttributes = (attributes ?? create_attribute()).addClass(classes) %}
3
4
  <div{{ attributes }}>
4
5
  {{ masthead }}
5
6
  {{ header }}
6
- <main>{{ main }}</main>
7
+ <main{{ mainAttributes }}>
8
+ {% for child in main %}
9
+ {{ child }}
10
+ {% endfor %}
11
+ </main>
7
12
  {{ footer }}
8
13
  </div>
@@ -1,25 +1,77 @@
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/section-background.twig"
4
3
  import "./section.css"
5
- import { Section as SectionType } from "@pnx-mixtape/ids-shape"
4
+ import {
5
+ HeadingTypes,
6
+ Section as SectionType,
7
+ SectionModifiers,
8
+ SectionTypes,
9
+ Image as ImageType,
10
+ } from "@pnx-mixtape/ids-shape"
11
+ import { BackgroundStyles, Icons } from "../../enums"
6
12
 
7
- const meta: Meta<SectionType> = {
13
+ // Deps.
14
+ import Heading from "../../Atom/Heading/heading.twig"
15
+ import Link from "../../Atom/Link/link.twig"
16
+ import Icon from "../../Atom/Icon/icon.twig"
17
+ import Image from "../../Atom/Image/image.twig"
18
+
19
+ type MxSectionType = SectionType & {
20
+ image?: ImageType
21
+ }
22
+
23
+ const meta: Meta<MxSectionType> = {
8
24
  tags: ["autodocs"],
9
25
  component: Component,
10
- decorators: [Page],
11
26
  args: {
12
- background: "background--alt",
27
+ image: Image({
28
+ src: "https://picsum.photos/id/56/1642/560?grayscale",
29
+ alt: "Blurry bubbles",
30
+ }),
31
+ modifiers: [SectionModifiers.XL],
32
+ as: SectionTypes.DIV,
33
+ container: true,
34
+ title: Heading({
35
+ title: "Section name",
36
+ as: HeadingTypes.TWO,
37
+ }),
38
+ content:
39
+ '<p class="mx-text--lede">A short description to help explain enough about the subject matter to encourage visitors to learn more.</p>',
40
+ link: Link({
41
+ href: "#",
42
+ title: "See more content",
43
+ more: true,
44
+ iconEnd: Icon({
45
+ icon: Icons.ARROW_RIGHT,
46
+ }),
47
+ }),
48
+ },
49
+ argTypes: {
50
+ modifiers: {
51
+ options: Object.values(SectionModifiers),
52
+ control: "multi-select",
53
+ },
54
+ background: {
55
+ options: Object.values(BackgroundStyles),
56
+ control: "select",
57
+ },
58
+ as: { options: Object.values(SectionTypes), control: "select" },
59
+ container: { control: "boolean" },
60
+ // @ts-expect-error The controls follow the shape
61
+ "title.title": { control: "text" },
62
+ "title.as": { options: Object.values(HeadingTypes), control: "select" },
63
+ "link.href": { control: "text" },
64
+ "link.title": { control: "text" },
13
65
  },
14
66
  }
15
67
 
16
68
  export default meta
17
- type Story = StoryObj<SectionType>
69
+ type Story = StoryObj<MxSectionType>
18
70
 
19
71
  export const Background: Story = {}
20
72
 
21
73
  export const Dark: Story = {
22
74
  args: {
23
- background: "background--reverse",
75
+ background: BackgroundStyles.REVERSE,
24
76
  },
25
77
  }
@@ -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-breakout.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