@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.
- package/dist/build/accordion.css +108 -0
- package/dist/build/accordion.entry.js +139 -0
- package/dist/build/accordion.entry.js.map +1 -0
- package/dist/build/base.css +999 -0
- package/dist/build/breadcrumb.css +47 -0
- package/dist/build/button.css +132 -0
- package/dist/build/callout.css +11 -0
- package/dist/build/card.css +136 -0
- package/dist/build/chunks/disclosure-widget-CQLPJ8Ta.js +124 -0
- package/dist/build/chunks/disclosure-widget-CQLPJ8Ta.js.map +1 -0
- package/dist/build/chunks/keyboard-C73DHu0c.js +101 -0
- package/dist/build/chunks/keyboard-C73DHu0c.js.map +1 -0
- package/dist/build/chunks/polyfills-CJ5uTmUJ.js +749 -0
- package/dist/build/chunks/polyfills-CJ5uTmUJ.js.map +1 -0
- package/dist/build/chunks/popover-wbPSyFRj.js +654 -0
- package/dist/build/chunks/popover-wbPSyFRj.js.map +1 -0
- package/dist/build/chunks/utilities-B4YZb689.js +243 -0
- package/dist/build/chunks/utilities-B4YZb689.js.map +1 -0
- package/dist/build/constants.css +120 -0
- package/dist/build/container-grid.css +208 -0
- package/dist/build/content-block.css +23 -0
- package/dist/build/dialog.css +98 -0
- package/dist/build/dialog.entry.js +113 -0
- package/dist/build/dialog.entry.js.map +1 -0
- package/dist/build/drop-menu.css +78 -0
- package/dist/build/drop-menu.entry.js +129 -0
- package/dist/build/drop-menu.entry.js.map +1 -0
- package/dist/build/drupal.css +74 -0
- package/dist/build/footer-menu.css +32 -0
- package/dist/build/footer.css +61 -0
- package/dist/build/form.css +589 -0
- package/dist/build/global-alert.css +60 -0
- package/dist/build/global-alert.entry.js +68 -0
- package/dist/build/global-alert.entry.js.map +1 -0
- package/dist/build/grid.css +200 -0
- package/dist/build/header.css +131 -0
- package/dist/build/header.entry.js +98 -0
- package/dist/build/header.entry.js.map +1 -0
- package/dist/build/hero-banner.css +62 -0
- package/dist/build/icon.css +399 -0
- package/dist/build/in-page-alert.css +94 -0
- package/dist/build/in-page-navigation.css +17 -0
- package/dist/build/in-page-navigation.entry.js +89 -0
- package/dist/build/in-page-navigation.entry.js.map +1 -0
- package/dist/build/link-list.css +72 -0
- package/dist/build/masthead.css +39 -0
- package/dist/build/nav-list.css +26 -0
- package/dist/build/navigation.css +371 -0
- package/dist/build/navigation.entry.js +123 -0
- package/dist/build/navigation.entry.js.map +1 -0
- package/dist/build/page.css +184 -0
- package/dist/build/pagination.css +123 -0
- package/dist/build/section.css +163 -0
- package/dist/build/sidebar.css +105 -0
- package/dist/build/sticky.css +47 -0
- package/dist/build/sticky.entry.js +60 -0
- package/dist/build/sticky.entry.js.map +1 -0
- package/dist/build/tabs.css +106 -0
- package/dist/build/tabs.entry.js +161 -0
- package/dist/build/tabs.entry.js.map +1 -0
- package/dist/build/tag.css +67 -0
- package/dist/build/tiles.css +61 -0
- package/dist/build/utilities.css +175 -0
- package/package.json +3 -3
- package/src/Atom/Background/__snapshots__/Backgrounds.stories.ts.snap +12 -12
- package/src/Atom/Background/_background.css +8 -8
- package/src/Atom/Background/backgrounds.twig +4 -4
- package/src/Atom/Button/Button.tsx +8 -8
- package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +6 -6
- package/src/Atom/Button/_buttons-styles.css +4 -4
- package/src/Atom/Button/_buttons.css +5 -5
- package/src/Atom/Button/button.twig +1 -1
- package/src/Atom/Heading/Heading.stories.ts +5 -2
- package/src/Atom/Heading/_headings.css +20 -20
- package/src/Atom/Heading/heading.twig +1 -1
- package/src/Atom/Icon/Icon.mdx +1 -1
- package/src/Atom/Icon/Icon.tsx +5 -5
- package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +3 -3
- package/src/Atom/Icon/_icon.css +17 -17
- package/src/Atom/Icon/_mixin-icon.css +1 -1
- package/src/Atom/Icon/icon.twig +1 -1
- package/src/Atom/Link/Link.tsx +2 -2
- package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +8 -8
- package/src/Atom/Link/_links.css +9 -9
- package/src/Atom/Link/link.twig +1 -1
- package/src/Atom/Media/Media.tsx +1 -1
- package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +3 -3
- package/src/Atom/Media/_media.css +12 -4
- package/src/Atom/Media/media.twig +1 -1
- package/src/Atom/NavList/__snapshots__/NavList.stories.ts.snap +2 -2
- package/src/Atom/NavList/nav-list.css +3 -9
- package/src/Atom/NavList/nav-list.twig +2 -2
- package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +1 -1
- package/src/Atom/{_mixins.css → Spacing/_mixins.css} +5 -5
- package/src/Atom/Spacing/_spacing.css +6 -6
- package/src/Atom/Spacing/spacing.twig +1 -1
- package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +3 -3
- package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +2 -2
- package/src/Atom/Table/_table.css +4 -4
- package/src/Atom/Table/table-responsive.twig +2 -2
- package/src/Atom/Table/table.twig +1 -1
- package/src/Atom/Text/__snapshots__/TextSizes.stories.ts.snap +16 -16
- package/src/Atom/Text/_text-align.css +3 -3
- package/src/Atom/Text/_text-sizes.css +29 -29
- package/src/Atom/Text/text-alignment.twig +3 -3
- package/src/Atom/Text/text-styles-example.twig +16 -16
- package/src/Atom/Video/Video.tsx +1 -1
- package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +1 -1
- package/src/Atom/Video/_video.css +2 -2
- package/src/Atom/Video/video.twig +1 -4
- package/src/Atom/_animated.css +5 -5
- package/src/Atom/_flow.css +5 -9
- package/src/Atom/_print.css +1 -12
- package/src/Component/Accordion/Accordion.tsx +11 -11
- package/src/Component/Accordion/Elements/AccordionGroup.ts +2 -2
- package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +23 -23
- package/src/Component/Accordion/accordion-item.twig +4 -4
- package/src/Component/Accordion/accordion.css +15 -15
- package/src/Component/Accordion/accordion.twig +4 -4
- package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +1 -1
- package/src/Component/Callout/callout.css +1 -1
- package/src/Component/Callout/callout.twig +2 -2
- package/src/Component/Card/Card.tsx +7 -7
- package/src/Component/Card/__snapshots__/Card.stories.ts.snap +43 -43
- package/src/Component/Card/card-grid.twig +2 -2
- package/src/Component/Card/card.css +14 -13
- package/src/Component/Card/card.twig +7 -7
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +1 -1
- package/src/Component/GlobalAlert/Elements/ClosableAlert.ts +2 -2
- package/src/Component/GlobalAlert/GlobalAlert.tsx +5 -5
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +9 -9
- package/src/Component/GlobalAlert/global-alert.css +4 -4
- package/src/Component/GlobalAlert/global-alert.twig +6 -6
- package/src/Component/HeroBanner/HeroBanner.tsx +4 -4
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +15 -15
- package/src/Component/HeroBanner/hero-banner.css +6 -6
- package/src/Component/HeroBanner/hero-banner.twig +7 -7
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +1 -1
- package/src/Component/InPageAlert/in-page-alert.css +5 -5
- package/src/Component/InPageAlert/in-page-alert.twig +1 -1
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +1 -1
- package/src/Component/LinkList/LinkList.tsx +4 -4
- package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +4 -4
- package/src/Component/LinkList/link-list.css +8 -8
- package/src/Component/LinkList/link-list.twig +3 -3
- package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +1 -1
- package/src/Component/Navigation/_navigation.css +5 -5
- package/src/Component/Navigation/navigation.twig +1 -1
- package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +1 -1
- package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +15 -15
- package/src/Component/Tag/Tag.tsx +1 -1
- package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +9 -9
- package/src/Component/Tag/tag.css +2 -2
- package/src/Component/Tag/tags.twig +2 -2
- package/src/Layout/Grid/Grid.tsx +4 -4
- package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +4 -4
- package/src/Layout/Grid/container-grid.css +1 -0
- package/src/Layout/Grid/grid-item.twig +2 -2
- package/src/Layout/Grid/grid.css +29 -29
- package/src/Layout/Grid/grid.twig +1 -1
- package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +1 -1
- package/src/Layout/Section/Section.tsx +5 -5
- package/src/Layout/Section/SectionGrid.tsx +4 -4
- package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +5 -5
- package/src/Layout/Section/section.css +29 -26
- package/src/Layout/Section/section.twig +4 -4
- package/src/enums.ts +21 -21
- 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 %}
|
|
@@ -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;
|
|
@@ -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>
|
|
@@ -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
|
}
|
|
@@ -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;
|
package/src/Layout/Grid/Grid.tsx
CHANGED
|
@@ -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,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 %}
|