@pnx-mixtape/mxds 0.0.5 → 0.0.6

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 (168) hide show
  1. package/dist/build/accordion.css +108 -0
  2. package/dist/build/accordion.entry.js +139 -0
  3. package/dist/build/accordion.entry.js.map +1 -0
  4. package/dist/build/base.css +999 -0
  5. package/dist/build/breadcrumb.css +47 -0
  6. package/dist/build/button.css +132 -0
  7. package/dist/build/callout.css +11 -0
  8. package/dist/build/card.css +136 -0
  9. package/dist/build/chunks/disclosure-widget-CQLPJ8Ta.js +124 -0
  10. package/dist/build/chunks/disclosure-widget-CQLPJ8Ta.js.map +1 -0
  11. package/dist/build/chunks/keyboard-C73DHu0c.js +101 -0
  12. package/dist/build/chunks/keyboard-C73DHu0c.js.map +1 -0
  13. package/dist/build/chunks/polyfills-CJ5uTmUJ.js +749 -0
  14. package/dist/build/chunks/polyfills-CJ5uTmUJ.js.map +1 -0
  15. package/dist/build/chunks/popover-wbPSyFRj.js +654 -0
  16. package/dist/build/chunks/popover-wbPSyFRj.js.map +1 -0
  17. package/dist/build/chunks/utilities-B4YZb689.js +243 -0
  18. package/dist/build/chunks/utilities-B4YZb689.js.map +1 -0
  19. package/dist/build/constants.css +120 -0
  20. package/dist/build/container-grid.css +208 -0
  21. package/dist/build/content-block.css +23 -0
  22. package/dist/build/dialog.css +98 -0
  23. package/dist/build/dialog.entry.js +113 -0
  24. package/dist/build/dialog.entry.js.map +1 -0
  25. package/dist/build/drop-menu.css +78 -0
  26. package/dist/build/drop-menu.entry.js +129 -0
  27. package/dist/build/drop-menu.entry.js.map +1 -0
  28. package/dist/build/drupal.css +74 -0
  29. package/dist/build/footer-menu.css +32 -0
  30. package/dist/build/footer.css +61 -0
  31. package/dist/build/form.css +589 -0
  32. package/dist/build/global-alert.css +60 -0
  33. package/dist/build/global-alert.entry.js +68 -0
  34. package/dist/build/global-alert.entry.js.map +1 -0
  35. package/dist/build/grid.css +200 -0
  36. package/dist/build/header.css +131 -0
  37. package/dist/build/header.entry.js +98 -0
  38. package/dist/build/header.entry.js.map +1 -0
  39. package/dist/build/hero-banner.css +62 -0
  40. package/dist/build/icon.css +399 -0
  41. package/dist/build/in-page-alert.css +94 -0
  42. package/dist/build/in-page-navigation.css +17 -0
  43. package/dist/build/in-page-navigation.entry.js +89 -0
  44. package/dist/build/in-page-navigation.entry.js.map +1 -0
  45. package/dist/build/link-list.css +72 -0
  46. package/dist/build/masthead.css +39 -0
  47. package/dist/build/nav-list.css +26 -0
  48. package/dist/build/navigation.css +371 -0
  49. package/dist/build/navigation.entry.js +123 -0
  50. package/dist/build/navigation.entry.js.map +1 -0
  51. package/dist/build/page.css +184 -0
  52. package/dist/build/pagination.css +123 -0
  53. package/dist/build/section.css +163 -0
  54. package/dist/build/sidebar.css +105 -0
  55. package/dist/build/sticky.css +47 -0
  56. package/dist/build/sticky.entry.js +60 -0
  57. package/dist/build/sticky.entry.js.map +1 -0
  58. package/dist/build/tabs.css +106 -0
  59. package/dist/build/tabs.entry.js +161 -0
  60. package/dist/build/tabs.entry.js.map +1 -0
  61. package/dist/build/tag.css +67 -0
  62. package/dist/build/tiles.css +61 -0
  63. package/dist/build/utilities.css +175 -0
  64. package/package.json +3 -3
  65. package/src/Atom/Background/__snapshots__/Backgrounds.stories.ts.snap +12 -12
  66. package/src/Atom/Background/_background.css +8 -8
  67. package/src/Atom/Background/backgrounds.twig +4 -4
  68. package/src/Atom/Button/Button.tsx +8 -8
  69. package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +6 -6
  70. package/src/Atom/Button/_buttons-styles.css +4 -4
  71. package/src/Atom/Button/_buttons.css +5 -5
  72. package/src/Atom/Button/button.twig +1 -1
  73. package/src/Atom/Heading/Heading.stories.ts +5 -2
  74. package/src/Atom/Heading/_headings.css +20 -20
  75. package/src/Atom/Heading/heading.twig +1 -1
  76. package/src/Atom/Icon/Icon.mdx +1 -1
  77. package/src/Atom/Icon/Icon.tsx +5 -5
  78. package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +3 -3
  79. package/src/Atom/Icon/_icon.css +17 -17
  80. package/src/Atom/Icon/_mixin-icon.css +1 -1
  81. package/src/Atom/Icon/icon.twig +1 -1
  82. package/src/Atom/Link/Link.tsx +2 -2
  83. package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +8 -8
  84. package/src/Atom/Link/_links.css +9 -9
  85. package/src/Atom/Link/link.twig +1 -1
  86. package/src/Atom/Media/Media.tsx +1 -1
  87. package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +3 -3
  88. package/src/Atom/Media/_media.css +12 -4
  89. package/src/Atom/Media/media.twig +1 -1
  90. package/src/Atom/NavList/__snapshots__/NavList.stories.ts.snap +2 -2
  91. package/src/Atom/NavList/nav-list.css +3 -9
  92. package/src/Atom/NavList/nav-list.twig +2 -2
  93. package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +1 -1
  94. package/src/Atom/{_mixins.css → Spacing/_mixins.css} +5 -5
  95. package/src/Atom/Spacing/_spacing.css +6 -6
  96. package/src/Atom/Spacing/spacing.twig +1 -1
  97. package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +3 -3
  98. package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +2 -2
  99. package/src/Atom/Table/_table.css +4 -4
  100. package/src/Atom/Table/table-responsive.twig +2 -2
  101. package/src/Atom/Table/table.twig +1 -1
  102. package/src/Atom/Text/__snapshots__/TextSizes.stories.ts.snap +16 -16
  103. package/src/Atom/Text/_text-align.css +3 -3
  104. package/src/Atom/Text/_text-sizes.css +29 -29
  105. package/src/Atom/Text/text-alignment.twig +3 -3
  106. package/src/Atom/Text/text-styles-example.twig +16 -16
  107. package/src/Atom/Video/Video.tsx +1 -1
  108. package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +1 -1
  109. package/src/Atom/Video/_video.css +2 -2
  110. package/src/Atom/Video/video.twig +1 -4
  111. package/src/Atom/_animated.css +5 -5
  112. package/src/Atom/_flow.css +5 -9
  113. package/src/Atom/_print.css +1 -12
  114. package/src/Component/Accordion/Accordion.tsx +11 -11
  115. package/src/Component/Accordion/Elements/AccordionGroup.ts +2 -2
  116. package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +23 -23
  117. package/src/Component/Accordion/accordion-item.twig +4 -4
  118. package/src/Component/Accordion/accordion.css +15 -15
  119. package/src/Component/Accordion/accordion.twig +4 -4
  120. package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +1 -1
  121. package/src/Component/Callout/callout.css +1 -1
  122. package/src/Component/Callout/callout.twig +2 -2
  123. package/src/Component/Card/Card.tsx +7 -7
  124. package/src/Component/Card/__snapshots__/Card.stories.ts.snap +43 -43
  125. package/src/Component/Card/card-grid.twig +2 -2
  126. package/src/Component/Card/card.css +14 -13
  127. package/src/Component/Card/card.twig +7 -7
  128. package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +1 -1
  129. package/src/Component/GlobalAlert/Elements/ClosableAlert.ts +2 -2
  130. package/src/Component/GlobalAlert/GlobalAlert.tsx +5 -5
  131. package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +9 -9
  132. package/src/Component/GlobalAlert/global-alert.css +4 -4
  133. package/src/Component/GlobalAlert/global-alert.twig +6 -6
  134. package/src/Component/HeroBanner/HeroBanner.tsx +4 -4
  135. package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +15 -15
  136. package/src/Component/HeroBanner/hero-banner.css +6 -6
  137. package/src/Component/HeroBanner/hero-banner.twig +7 -7
  138. package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +1 -1
  139. package/src/Component/InPageAlert/in-page-alert.css +5 -5
  140. package/src/Component/InPageAlert/in-page-alert.twig +1 -1
  141. package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +1 -1
  142. package/src/Component/LinkList/LinkList.tsx +4 -4
  143. package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +4 -4
  144. package/src/Component/LinkList/link-list.css +8 -8
  145. package/src/Component/LinkList/link-list.twig +3 -3
  146. package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +1 -1
  147. package/src/Component/Navigation/_navigation.css +5 -5
  148. package/src/Component/Navigation/navigation.twig +1 -1
  149. package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +1 -1
  150. package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +15 -15
  151. package/src/Component/Tag/Tag.tsx +1 -1
  152. package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +9 -9
  153. package/src/Component/Tag/tag.css +2 -2
  154. package/src/Component/Tag/tags.twig +2 -2
  155. package/src/Layout/Grid/Grid.tsx +4 -4
  156. package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +4 -4
  157. package/src/Layout/Grid/container-grid.css +1 -0
  158. package/src/Layout/Grid/grid-item.twig +2 -2
  159. package/src/Layout/Grid/grid.css +29 -29
  160. package/src/Layout/Grid/grid.twig +1 -1
  161. package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +1 -1
  162. package/src/Layout/Section/Section.tsx +5 -5
  163. package/src/Layout/Section/SectionGrid.tsx +4 -4
  164. package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +5 -5
  165. package/src/Layout/Section/section.css +29 -26
  166. package/src/Layout/Section/section.twig +4 -4
  167. package/src/enums.ts +21 -21
  168. package/src/Atom/_flow-legacy.css +0 -48
@@ -3,11 +3,11 @@
3
3
  */
4
4
 
5
5
  @layer design-system.components {
6
- .hero-banner {
6
+ .mx-hero-banner {
7
7
  position: relative;
8
8
  z-index: 1;
9
9
 
10
- &.hero-banner--hero {
10
+ &.mx-hero-banner--hero {
11
11
  min-block-size: var(--hero-height, 400px);
12
12
  place-content: center;
13
13
  }
@@ -18,7 +18,7 @@
18
18
  }
19
19
  }
20
20
 
21
- .hero-banner__inner {
21
+ .mx-hero-banner__inner {
22
22
  display: grid;
23
23
  grid-template-areas: "content" "aside";
24
24
 
@@ -28,14 +28,14 @@
28
28
  }
29
29
  }
30
30
 
31
- .hero-banner__content {
31
+ .mx-hero-banner__content {
32
32
  align-content: center;
33
33
  }
34
34
 
35
- .hero-banner__aside {
35
+ .mx-hero-banner__aside {
36
36
  align-content: center;
37
37
 
38
- &.hero-banner__aside-image {
38
+ &.mx-hero-banner__aside-image {
39
39
  overflow: hidden;
40
40
  position: relative;
41
41
  border-radius: var(--hero-image-radius, var(--border-radius));
@@ -1,4 +1,4 @@
1
- {% set baseClass = 'hero-banner' %}
1
+ {% set baseClass = 'mx-hero-banner' %}
2
2
  {% set background = null %}
3
3
  {% for modifier in modifiers %}
4
4
  {% if modifier == "dark" %}
@@ -13,28 +13,28 @@
13
13
  {% endfor %}
14
14
  {% set classes = [
15
15
  baseClass,
16
- 'page',
16
+ 'mx-page',
17
17
  highlight ? baseClass~'--hero' : null,
18
18
  background ? background : null,
19
19
  ] %}
20
20
  {% set attributes = (attributes|default(create_attribute())).addClass(classes) %}
21
21
 
22
22
  <div{{ attributes }}>
23
- <div class="hero-banner__inner">
24
- <div class="hero-banner__content vertical-flow section--xl">
23
+ <div class="mx-hero-banner__inner">
24
+ <div class="mx-hero-banner__content mx-vertical-flow mx-section--xl">
25
25
  {{ title }}
26
26
  {% if subtitle %}
27
- <div class="text--lede">{{ subtitle }}</div>
27
+ <div class="mx-text--lede">{{ subtitle }}</div>
28
28
  {% endif %}
29
29
  {{ content }}
30
30
  {{ link }}
31
31
  </div>
32
32
  {% if linkList %}
33
- <div class="hero-banner__aside">
33
+ <div class="mx-hero-banner__aside">
34
34
  {{ linkList }}
35
35
  </div>
36
36
  {% elseif image %}
37
- <div class="hero-banner__aside hero-banner__aside-image">
37
+ <div class="mx-hero-banner__aside mx-hero-banner__aside-image">
38
38
  {{ image }}
39
39
  </div>
40
40
  {% endif %}
@@ -4,7 +4,7 @@ exports[`Component/InPageAlert InPageAlert smoke-test 1`] = `
4
4
  <div class="message ">
5
5
  <div class="message__content">
6
6
  Something happened that requires your attention
7
- <a class="link "
7
+ <a class="mx-link "
8
8
  href="#"
9
9
  >
10
10
  <span>
@@ -19,12 +19,12 @@
19
19
  color: var(--foreground, var(--colour-foreground));
20
20
  border-radius: var(--border-radius);
21
21
 
22
- &:has(.icon--close) {
22
+ &:has(.mx-icon--close) {
23
23
  grid-template-columns: auto min-content;
24
24
  grid-template-areas: "content close";
25
25
  }
26
26
 
27
- &:is(.icon, :has(.icon--close)) {
27
+ &:is(.mx-icon, :has(.mx-icon--close)) {
28
28
  --icon-size: 1.25rem;
29
29
 
30
30
  & .message__content {
@@ -32,7 +32,7 @@
32
32
  }
33
33
  }
34
34
 
35
- &.icon {
35
+ &.mx-icon {
36
36
  grid-template-columns: min-content auto;
37
37
  grid-template-areas: "icon content";
38
38
 
@@ -41,7 +41,7 @@
41
41
  background-size: contain;
42
42
  }
43
43
 
44
- &:has(.icon--close) {
44
+ &:has(.mx-icon--close) {
45
45
  grid-template-columns: min-content auto min-content;
46
46
  grid-template-areas: "icon content close";
47
47
  }
@@ -72,7 +72,7 @@
72
72
  --background: var(--colour-warning-background);
73
73
  }
74
74
 
75
- & .icon--close {
75
+ & .mx-icon--close {
76
76
  --icon-size: 1rem;
77
77
 
78
78
  grid-area: close;
@@ -2,7 +2,7 @@
2
2
  {% set classes = [
3
3
  baseClass,
4
4
  type ? baseClass~'--'~type : null,
5
- type ? 'icon icon--'~type : null,
5
+ type ? 'mx-icon mx-icon--'~type : null,
6
6
  ] %}
7
7
  {% set attributes = (attributes|default(create_attribute())).addClass(classes) %}
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports[`Component/InPageNavigation InPageNavigation smoke-test 1`] = `
4
4
  "
5
- &lt; class="section "&gt;
5
+ &lt; class="mx-section "&gt;
6
6
 
7
7
 
8
8
  "
@@ -6,14 +6,14 @@ import { Icons } from "../../enums"
6
6
  type LinkListProps = PropsWithChildren & {
7
7
  divided?: boolean
8
8
  }
9
-
9
+ // @todo no divided
10
10
  const LinkList = ({
11
11
  divided = false,
12
12
  children,
13
13
  }: LinkListProps): JSX.Element => (
14
14
  <ul
15
- className={classNames("link-list", {
16
- "link-list--divided": divided,
15
+ className={classNames("mx-link-list", {
16
+ "mx-link-list--divided": divided,
17
17
  })}
18
18
  >
19
19
  {children}
@@ -33,7 +33,7 @@ const LinkListItem = ({
33
33
  className,
34
34
  }: LinkListItemProps): JSX.Element => (
35
35
  <li className={className}>
36
- <Link className={classNames("icon", `icon--${icon}`)} to={to}>
36
+ <Link className={classNames("mx-icon", `mx-icon--${icon}`)} to={to}>
37
37
  {children}
38
38
  </Link>
39
39
  </li>
@@ -1,24 +1,24 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Component/LinkList LinkList smoke-test 1`] = `
4
- <ul class="link-list">
4
+ <ul class="mx-link-list">
5
5
  <li>
6
6
  <a href="#"
7
- class="icon icon--chevron-right"
7
+ class="mx-icon mx-icon--chevron-right"
8
8
  >
9
9
  Music
10
10
  </a>
11
11
  </li>
12
12
  <li>
13
13
  <a href="#"
14
- class="icon icon--chevron-right"
14
+ class="mx-icon mx-icon--chevron-right"
15
15
  >
16
16
  Performances
17
17
  </a>
18
18
  </li>
19
19
  <li>
20
20
  <a href="#"
21
- class="icon icon--chevron-right"
21
+ class="mx-icon mx-icon--chevron-right"
22
22
  >
23
23
  Get involved
24
24
  </a>
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  @layer design-system.components {
6
- .link-list {
6
+ .mx-link-list {
7
7
  list-style-type: none;
8
8
  padding-inline-start: 0;
9
9
 
@@ -27,7 +27,7 @@
27
27
  }
28
28
  }
29
29
 
30
- & .icon {
30
+ & .mx-icon {
31
31
  position: relative;
32
32
  display: flex;
33
33
  align-items: center;
@@ -41,7 +41,7 @@
41
41
  }
42
42
  }
43
43
 
44
- &:where(:not(.link-list--reverse)) .icon {
44
+ &:where(:not(.mx-link-list--reverse)) .mx-icon {
45
45
  justify-content: space-between;
46
46
 
47
47
  &::before {
@@ -51,18 +51,18 @@
51
51
  }
52
52
  }
53
53
 
54
- [dir="rtl"] .link-list,
55
- .translated-rtl .link-list {
56
- & .icon::before {
54
+ [dir="rtl"] .mx-link-list,
55
+ .translated-rtl .mx-link-list {
56
+ & .mx-icon::before {
57
57
  mask-position: left center;
58
58
  }
59
59
 
60
- &.link-list--reverse .icon::before {
60
+ &.mx-link-list--reverse .mx-icon::before {
61
61
  mask-position: right center;
62
62
  }
63
63
  }
64
64
 
65
- * + .link-list {
65
+ * + .mx-link-list {
66
66
  margin-block-start: var(--spacing-m);
67
67
  }
68
68
  }
@@ -1,12 +1,12 @@
1
- {% set classes = ['link-list'] %}
1
+ {% set classes = ['mx-link-list'] %}
2
2
  {% set attributes = (attributes|default(create_attribute())).addClass(classes) %}
3
3
 
4
4
  <ul{{ attributes }}>
5
5
  {% for item in items %}
6
6
  {% if item.href %}
7
- <li><a href="{{ item.href }}" class="icon icon--chevron-right">{{ item.title }}</a></li>
7
+ <li><a href="{{ item.href }}" class="mx-icon mx-icon--chevron-right">{{ item.title }}</a></li>
8
8
  {% else %}
9
- <li class="icon icon--chevron-right">{{ item.title }}</li>
9
+ <li class="mx-icon mx-icon--chevron-right">{{ item.title }}</li>
10
10
  {% endif %}
11
11
  {% endfor %}
12
12
  </ul>
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Component/Navigation Navigation smoke-test 1`] = `
4
- <nav class="nav "
4
+ <nav class="mx-nav "
5
5
  aria-label="Navigation"
6
6
  >
7
7
  <ul>
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  @layer design-system.components {
6
- .nav {
6
+ .mx-nav {
7
7
  & ul {
8
8
  display: flex;
9
9
  flex-direction: column;
@@ -22,7 +22,7 @@
22
22
  }
23
23
  }
24
24
 
25
- .nav--inline {
25
+ .mx-nav--inline {
26
26
  & > ul {
27
27
  flex-flow: row wrap;
28
28
  align-items: center;
@@ -30,7 +30,7 @@
30
30
  }
31
31
  }
32
32
 
33
- .nav__toggle {
33
+ .mx-nav__toggle {
34
34
  background: unset;
35
35
  padding: 0;
36
36
  border: 0;
@@ -47,8 +47,8 @@
47
47
  cursor: pointer;
48
48
  }
49
49
 
50
- .nav--open {
51
- & > .nav__toggle::before {
50
+ .mx-nav--open {
51
+ & > .mx-nav__toggle::before {
52
52
  transform: rotate(180deg);
53
53
  }
54
54
  }
@@ -1,4 +1,4 @@
1
- <nav class="nav {{ modifier_class }}" aria-label="Navigation">
1
+ <nav class="mx-nav {{ modifier_class }}" aria-label="Navigation">
2
2
  {% block menu %}
3
3
  <ul>
4
4
  <li><a href="#">Secondary Title</a></li>
@@ -6,7 +6,7 @@ exports[`Component/Sticky Sticky smoke-test 1`] = `
6
6
  </mx-sticky>
7
7
 
8
8
 
9
- &lt; class="section "&gt;
9
+ &lt; class="mx-section "&gt;
10
10
 
11
11
 
12
12
  "
@@ -84,14 +84,14 @@ exports[`Component/Tabs Tabs smoke-test 1`] = `
84
84
  role="tabpanel"
85
85
  tab-index="0"
86
86
  >
87
- <div class="container">
88
- <article class="card ">
89
- <figure class="card__media">
87
+ <div class="mx-container">
88
+ <article class="mx-card ">
89
+ <figure class="mx-card__media">
90
90
  https://picsum.photos/id/56/558/418?grayscale
91
91
  </figure>
92
- <div class="card__content vertical-flow-flex">
92
+ <div class="mx-card__content mx-vertical-flow-flex">
93
93
  Lorem ipsum
94
- <div class="text--lede">
94
+ <div class="mx-text--lede">
95
95
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
96
96
  </div>
97
97
  </div>
@@ -105,14 +105,14 @@ exports[`Component/Tabs Tabs smoke-test 1`] = `
105
105
  role="tabpanel"
106
106
  tab-index="0"
107
107
  >
108
- <div class="container">
109
- <article class="card ">
110
- <figure class="card__media">
108
+ <div class="mx-container">
109
+ <article class="mx-card ">
110
+ <figure class="mx-card__media">
111
111
  https://picsum.photos/id/56/558/418?grayscale
112
112
  </figure>
113
- <div class="card__content vertical-flow-flex">
113
+ <div class="mx-card__content mx-vertical-flow-flex">
114
114
  Ut enim
115
- <div class="text--lede">
115
+ <div class="mx-text--lede">
116
116
  Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
117
117
  </div>
118
118
  </div>
@@ -126,14 +126,14 @@ exports[`Component/Tabs Tabs smoke-test 1`] = `
126
126
  role="tabpanel"
127
127
  tab-index="0"
128
128
  >
129
- <div class="container">
130
- <article class="card ">
131
- <figure class="card__media">
129
+ <div class="mx-container">
130
+ <article class="mx-card ">
131
+ <figure class="mx-card__media">
132
132
  https://picsum.photos/id/56/558/418?grayscale
133
133
  </figure>
134
- <div class="card__content vertical-flow-flex">
134
+ <div class="mx-card__content mx-vertical-flow-flex">
135
135
  Excepteur sint
136
- <div class="text--lede">
136
+ <div class="mx-text--lede">
137
137
  Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
138
138
  </div>
139
139
  </div>
@@ -13,7 +13,7 @@ const Tag = ({
13
13
  as = AsTags.DIV,
14
14
  }: TagProps): JSX.Element => {
15
15
  const Tag: JSX.ElementType = `${as}` as unknown as JSX.ElementType
16
- return <Tag className={classNames("tag", className)}>{children}</Tag>
16
+ return <Tag className={classNames("mx-tag", className)}>{children}</Tag>
17
17
  }
18
18
 
19
19
  export default Tag
@@ -1,9 +1,9 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Component/Tag Checkbox smoke-test 1`] = `
4
- <ul class="tags">
4
+ <ul class="mx-tags">
5
5
  <li>
6
- <div class="tag">
6
+ <div class="mx-tag">
7
7
  <input type="checkbox"
8
8
  id="music"
9
9
  name="tag"
@@ -15,7 +15,7 @@ exports[`Component/Tag Checkbox smoke-test 1`] = `
15
15
  </div>
16
16
  </li>
17
17
  <li>
18
- <div class="tag">
18
+ <div class="mx-tag">
19
19
  <input type="checkbox"
20
20
  id="news"
21
21
  name="tag"
@@ -30,16 +30,16 @@ exports[`Component/Tag Checkbox smoke-test 1`] = `
30
30
  `;
31
31
 
32
32
  exports[`Component/Tag Link smoke-test 1`] = `
33
- <ul class="tags">
33
+ <ul class="mx-tags">
34
34
  <li>
35
- <a class="tag"
35
+ <a class="mx-tag"
36
36
  href="#0"
37
37
  >
38
38
  Music
39
39
  </a>
40
40
  </li>
41
41
  <li>
42
- <a class="tag"
42
+ <a class="mx-tag"
43
43
  href="#0"
44
44
  >
45
45
  News
@@ -49,14 +49,14 @@ exports[`Component/Tag Link smoke-test 1`] = `
49
49
  `;
50
50
 
51
51
  exports[`Component/Tag Tag smoke-test 1`] = `
52
- <ul class="tags">
52
+ <ul class="mx-tags">
53
53
  <li>
54
- <span class="tag">
54
+ <span class="mx-tag">
55
55
  Music
56
56
  </span>
57
57
  </li>
58
58
  <li>
59
- <span class="tag">
59
+ <span class="mx-tag">
60
60
  News
61
61
  </span>
62
62
  </li>
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  @layer design-system.components {
6
- .tag {
6
+ .mx-tag {
7
7
  display: inline-block;
8
8
  inline-size: fit-content;
9
9
  padding-inline: var(--horizontal-padding, var(--spacing-xxxs));
@@ -46,7 +46,7 @@
46
46
  }
47
47
  }
48
48
 
49
- .tags {
49
+ .mx-tags {
50
50
  padding-inline: 0;
51
51
  list-style: none;
52
52
  display: flex;
@@ -1,7 +1,7 @@
1
- {% set classes = ['tag'] %}
1
+ {% set classes = ['mx-tag'] %}
2
2
  {% set attributes = (attributes|default(create_attribute())).addClass(classes) %}
3
3
 
4
- <ul class="tags">
4
+ <ul class="mx-tags">
5
5
  {% for item in items %}
6
6
  <li>
7
7
  {% if type == "link" %}
@@ -10,7 +10,7 @@ type GridProps = PropsWithChildren & {
10
10
  className?: string
11
11
  as?: AsTags | SectionTags
12
12
  }
13
-
13
+ // @todo update grid classes and add span support
14
14
  const Grid = ({
15
15
  children,
16
16
  wrapper = false,
@@ -26,8 +26,8 @@ const Grid = ({
26
26
  const colClasses = useMemo<string[]>(() => {
27
27
  if (!cols) return []
28
28
  if (Array.isArray(cols))
29
- return cols.map((col: GridColumns) => `grid--${col}`)
30
- return [`grid--${cols}`]
29
+ return cols.map((col: GridColumns) => `mx-grid--${col}`)
30
+ return [`mx-grid--${cols}`]
31
31
  }, [cols])
32
32
 
33
33
  return (
@@ -37,7 +37,7 @@ const Grid = ({
37
37
  grid: wrapper,
38
38
  container: container,
39
39
  [colClasses.join(" ")]: cols && wrapper,
40
- [`grid--${width}-col`]: width,
40
+ [`mx-grid--${width}-col`]: width,
41
41
  },
42
42
  className,
43
43
  )}
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Layout/Grid Grid smoke-test 1`] = `
4
- <div class="grid grid--cols-sm-2 grid--cols-lg-4">
4
+ <div class="mx-grid mx-grid--cols-sm-2 mx-grid--cols-lg-4">
5
5
  <div class>
6
6
  item 1
7
7
  </div>
@@ -24,7 +24,7 @@ exports[`Layout/Grid Grid smoke-test 1`] = `
24
24
  `;
25
25
 
26
26
  exports[`Layout/Grid List smoke-test 1`] = `
27
- <ul class="grid grid--cols-sm-2">
27
+ <ul class="mx-grid mx-grid--cols-sm-2">
28
28
  <li class>
29
29
  list item 1
30
30
  </li>
@@ -35,11 +35,11 @@ exports[`Layout/Grid List smoke-test 1`] = `
35
35
  `;
36
36
 
37
37
  exports[`Layout/Grid Span smoke-test 1`] = `
38
- <div class="grid grid--cols-sm-2 grid--cols-md-3">
38
+ <div class="mx-grid mx-grid--cols-sm-2 mx-grid--cols-md-3">
39
39
  <div class>
40
40
  item 1
41
41
  </div>
42
- <div class="grid-item__span-md-2">
42
+ <div class="mx-grid-item__span-md-2">
43
43
  item 2, span 2
44
44
  </div>
45
45
  </div>
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Container Grid
3
+ * @todo update classes
3
4
  */
4
5
  @layer design-system.layouts {
5
6
  .grid.container {
@@ -1,12 +1,12 @@
1
1
  {% set classes = [] %}
2
2
  {% for modifier in modifiers %}
3
- {% set classes = classes|merge(["grid-item__span-"~modifier]) %}
3
+ {% set classes = classes|merge(["mx-grid-item__span-"~modifier]) %}
4
4
  {% endfor %}
5
5
  {% set attributes = (attributes|default(create_attribute())).addClass(classes) %}
6
6
  {% set as = as|default("div") %}
7
7
 
8
8
  {% if container %}
9
- <{{ as }}{{ attributes.addClass("container") }}>
9
+ <{{ as }}{{ attributes.addClass("mx-container") }}>
10
10
  {{ item }}
11
11
  </{{ as }}>
12
12
  {% else %}