@pnx-mixtape/mxds 0.0.4 → 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.entry.js +1 -1
- 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.stories.ts +0 -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
package/src/Atom/Icon/Icon.mdx
CHANGED
|
@@ -18,7 +18,7 @@ Icons are available as a css image mask.
|
|
|
18
18
|
<IconGallery>
|
|
19
19
|
{Object.values(Icons).map(name => (
|
|
20
20
|
<IconItem name={name} key={name}>
|
|
21
|
-
<span className={`icon icon--${name}`} />
|
|
21
|
+
<span className={`mx-icon mx-icon--${name}`} />
|
|
22
22
|
</IconItem>
|
|
23
23
|
))}
|
|
24
24
|
</IconGallery>
|
package/src/Atom/Icon/Icon.tsx
CHANGED
|
@@ -16,11 +16,11 @@ const Icon = ({
|
|
|
16
16
|
size,
|
|
17
17
|
}: IconProps): JSX.Element => (
|
|
18
18
|
<span
|
|
19
|
-
className={classNames("icon", `icon--${icon}`, {
|
|
20
|
-
[`icon--color-${color}`]: color,
|
|
21
|
-
[`icon--${align}`]: align,
|
|
22
|
-
[`icon--${rotate}`]: rotate,
|
|
23
|
-
[`icon--size-${size}`]: size,
|
|
19
|
+
className={classNames("mx-icon", `mx-icon--${icon}`, {
|
|
20
|
+
[`mx-icon--color-${color}`]: color,
|
|
21
|
+
[`mx-icon--${align}`]: align,
|
|
22
|
+
[`mx-icon--${rotate}`]: rotate,
|
|
23
|
+
[`mx-icon--size-${size}`]: size,
|
|
24
24
|
})}
|
|
25
25
|
>
|
|
26
26
|
{text}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Icon Alignment smoke-test 1`] = `
|
|
4
|
-
<span class="icon icon--arrow-left icon--end ">
|
|
4
|
+
<span class="mx-icon mx-icon--arrow-left mx-icon--end ">
|
|
5
5
|
Message with icon
|
|
6
6
|
</span>
|
|
7
7
|
`;
|
|
8
8
|
|
|
9
9
|
exports[`Atom/Icon Icon smoke-test 1`] = `
|
|
10
|
-
<span class="icon icon--arrow-right ">
|
|
10
|
+
<span class="mx-icon mx-icon--arrow-right ">
|
|
11
11
|
</span>
|
|
12
12
|
`;
|
|
13
13
|
|
|
14
14
|
exports[`Atom/Icon WithText smoke-test 1`] = `
|
|
15
|
-
<span class="icon icon--arrow-right ">
|
|
15
|
+
<span class="mx-icon mx-icon--arrow-right ">
|
|
16
16
|
Message with icon
|
|
17
17
|
</span>
|
|
18
18
|
`;
|
package/src/Atom/Icon/_icon.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
@layer design-system.atoms {
|
|
8
|
-
.icon {
|
|
8
|
+
.mx-icon {
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
gap: var(--spacing-xxs);
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.icon--only {
|
|
26
|
+
.mx-icon--only {
|
|
27
27
|
inline-size: var(--icon-size, var(--spacing-s));
|
|
28
28
|
block-size: var(--icon-size, var(--spacing-s));
|
|
29
29
|
overflow: hidden;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
@mixin icon warning;
|
|
66
66
|
@mixin icon youtube;
|
|
67
67
|
|
|
68
|
-
.icon--status::before {
|
|
68
|
+
.mx-icon--status::before {
|
|
69
69
|
mask-image: svg-load("./images/info.svg");
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -75,27 +75,27 @@
|
|
|
75
75
|
*/
|
|
76
76
|
|
|
77
77
|
@layer design-system.atoms {
|
|
78
|
-
.icon--color-info::before {
|
|
78
|
+
.mx-icon--color-info::before {
|
|
79
79
|
color: var(--colour-info-foreground);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.icon--color-error::before {
|
|
82
|
+
.mx-icon--color-error::before {
|
|
83
83
|
color: var(--colour-error-foreground);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
.icon--color-warning::before {
|
|
86
|
+
.mx-icon--color-warning::before {
|
|
87
87
|
color: var(--colour-warning-foreground);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.icon--color-success::before {
|
|
90
|
+
.mx-icon--color-success::before {
|
|
91
91
|
color: var(--colour-success-foreground);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.icon--color-brand::before {
|
|
94
|
+
.mx-icon--color-brand::before {
|
|
95
95
|
color: var(--colour-primary);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
.icon--color-accent::before {
|
|
98
|
+
.mx-icon--color-accent::before {
|
|
99
99
|
color: var(--colour-accent);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
*/
|
|
106
106
|
|
|
107
107
|
@layer design-system.atoms {
|
|
108
|
-
.icon
|
|
108
|
+
.mx-icon--end::before {
|
|
109
109
|
order: 2;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -115,15 +115,15 @@
|
|
|
115
115
|
*/
|
|
116
116
|
|
|
117
117
|
@layer design-system.atoms {
|
|
118
|
-
.icon
|
|
118
|
+
.mx-icon--rotate-90::before {
|
|
119
119
|
rotate: 90deg;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
.icon
|
|
122
|
+
.mx-icon--rotate-180::before {
|
|
123
123
|
rotate: 180deg;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.icon
|
|
126
|
+
.mx-icon--rotate-270::before {
|
|
127
127
|
rotate: 270deg;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -133,19 +133,19 @@
|
|
|
133
133
|
*/
|
|
134
134
|
|
|
135
135
|
@layer design-system.atoms {
|
|
136
|
-
.icon
|
|
136
|
+
.mx-icon--size-sm::before {
|
|
137
137
|
--icon-size: var(--spacing-s);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
.icon
|
|
140
|
+
.mx-icon--size-md::before {
|
|
141
141
|
--icon-size: var(--spacing-m);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
.icon
|
|
144
|
+
.mx-icon--size-lg::before {
|
|
145
145
|
--icon-size: var(--spacing-l);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
.icon
|
|
148
|
+
.mx-icon--size-xl::before {
|
|
149
149
|
--icon-size: var(--spacing-xl);
|
|
150
150
|
}
|
|
151
151
|
}
|
package/src/Atom/Icon/icon.twig
CHANGED
package/src/Atom/Link/Link.tsx
CHANGED
|
@@ -16,7 +16,7 @@ const Link = ({
|
|
|
16
16
|
children,
|
|
17
17
|
allyText,
|
|
18
18
|
modifier,
|
|
19
|
-
className = "link",
|
|
19
|
+
className = "mx-link",
|
|
20
20
|
...props
|
|
21
21
|
}: LinkProps): JSX.Element => {
|
|
22
22
|
const LinkComponent = useLinkComponent()
|
|
@@ -25,7 +25,7 @@ const Link = ({
|
|
|
25
25
|
<LinkComponent
|
|
26
26
|
to={to}
|
|
27
27
|
className={classNames(className, {
|
|
28
|
-
[`link--${modifier}`]: modifier,
|
|
28
|
+
[`mx-link--${modifier}`]: modifier,
|
|
29
29
|
})}
|
|
30
30
|
{...props}
|
|
31
31
|
>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Link Download smoke-test 1`] = `
|
|
4
|
-
<a class="link link--download"
|
|
4
|
+
<a class="mx-link mx-link--download"
|
|
5
5
|
href="#"
|
|
6
6
|
>
|
|
7
|
-
<span class="icon icon--download ">
|
|
7
|
+
<span class="mx-icon mx-icon--download ">
|
|
8
8
|
</span>
|
|
9
9
|
<span>
|
|
10
10
|
Download (PDF 12kb)
|
|
@@ -13,7 +13,7 @@ exports[`Atom/Link Download smoke-test 1`] = `
|
|
|
13
13
|
`;
|
|
14
14
|
|
|
15
15
|
exports[`Atom/Link External smoke-test 1`] = `
|
|
16
|
-
<a class="link link--external"
|
|
16
|
+
<a class="mx-link mx-link--external"
|
|
17
17
|
href="#"
|
|
18
18
|
>
|
|
19
19
|
<span>
|
|
@@ -23,10 +23,10 @@ exports[`Atom/Link External smoke-test 1`] = `
|
|
|
23
23
|
`;
|
|
24
24
|
|
|
25
25
|
exports[`Atom/Link IconLink smoke-test 1`] = `
|
|
26
|
-
<a class="link "
|
|
26
|
+
<a class="mx-link "
|
|
27
27
|
href="#"
|
|
28
28
|
>
|
|
29
|
-
<span class="icon icon--link ">
|
|
29
|
+
<span class="mx-icon mx-icon--link ">
|
|
30
30
|
</span>
|
|
31
31
|
<span>
|
|
32
32
|
Hyperlink
|
|
@@ -35,7 +35,7 @@ exports[`Atom/Link IconLink smoke-test 1`] = `
|
|
|
35
35
|
`;
|
|
36
36
|
|
|
37
37
|
exports[`Atom/Link Link smoke-test 1`] = `
|
|
38
|
-
<a class="link "
|
|
38
|
+
<a class="mx-link "
|
|
39
39
|
href="#"
|
|
40
40
|
>
|
|
41
41
|
<span>
|
|
@@ -45,13 +45,13 @@ exports[`Atom/Link Link smoke-test 1`] = `
|
|
|
45
45
|
`;
|
|
46
46
|
|
|
47
47
|
exports[`Atom/Link More smoke-test 1`] = `
|
|
48
|
-
<a class="link link--more "
|
|
48
|
+
<a class="mx-link mx-link--more "
|
|
49
49
|
href="#"
|
|
50
50
|
>
|
|
51
51
|
<span>
|
|
52
52
|
Hyperlink
|
|
53
53
|
</span>
|
|
54
|
-
<span class="icon icon--arrow-right ">
|
|
54
|
+
<span class="mx-icon mx-icon--arrow-right ">
|
|
55
55
|
</span>
|
|
56
56
|
</a>
|
|
57
57
|
`;
|
package/src/Atom/Link/_links.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@layer design-system.defaults {
|
|
2
|
-
|
|
3
|
-
.rich-text a:where([href]:not([class])) {
|
|
2
|
+
:is(.mx-link, .mx-link--more, .mx-link--external),
|
|
3
|
+
.mx-rich-text a:where([href]:not([class])) {
|
|
4
4
|
color: var(--link-colour, var(--colour-primary));
|
|
5
5
|
transition: color 0.2s var(--ease);
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
.mx-link--external {
|
|
13
13
|
margin-inline-end: var(--spacing-xxxs);
|
|
14
14
|
display: inline-flex;
|
|
15
15
|
gap: var(--spacing-xxxs);
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
.mx-link--more {
|
|
35
35
|
font-weight: var(--font-weight-bold);
|
|
36
36
|
|
|
37
|
-
& .icon {
|
|
37
|
+
& .mx-icon {
|
|
38
38
|
transition: transform 0.5s var(--ease);
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
& .icon {
|
|
46
|
+
.mx-link--download {
|
|
47
|
+
& .mx-icon {
|
|
48
48
|
transition: transform 0.5s var(--ease);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
&:hover .icon {
|
|
51
|
+
&:hover .mx-icon {
|
|
52
52
|
transform: translateY(3px);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
a:where([href]):has(.icon) {
|
|
56
|
+
a:where([href]):has(.mx-icon) {
|
|
57
57
|
display: inline-flex;
|
|
58
58
|
align-items: center;
|
|
59
59
|
gap: var(--spacing-xxs);
|
package/src/Atom/Link/link.twig
CHANGED
package/src/Atom/Media/Media.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Media Media smoke-test 1`] = `
|
|
4
|
-
<figure class="media media--image ">
|
|
4
|
+
<figure class="mx-media mx-media--image ">
|
|
5
5
|
<picture>
|
|
6
6
|
<img src="https://picsum.photos/id/56/558/418?grayscale"
|
|
7
7
|
alt="Some blurry bubble image"
|
|
@@ -14,8 +14,8 @@ exports[`Atom/Media Media smoke-test 1`] = `
|
|
|
14
14
|
`;
|
|
15
15
|
|
|
16
16
|
exports[`Atom/Media Video smoke-test 1`] = `
|
|
17
|
-
<figure class="media media--video ">
|
|
18
|
-
<figure class="video">
|
|
17
|
+
<figure class="mx-media mx-media--video ">
|
|
18
|
+
<figure class="mx-video">
|
|
19
19
|
<iframe src="https://www.youtube.com/embed/NpEaa2P7qZI"
|
|
20
20
|
title="Something from youtube"
|
|
21
21
|
allowfullscreen
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer design-system.atoms {
|
|
2
|
-
:is(.media--left, .media--right, .media--center) {
|
|
2
|
+
:is(.mx-media--left, .mx-media--right, .mx-media--center) {
|
|
3
3
|
@media (--small-up) {
|
|
4
4
|
display: table;
|
|
5
5
|
max-inline-size: 50%;
|
|
@@ -20,18 +20,26 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.media--center {
|
|
23
|
+
.mx-media--center {
|
|
24
24
|
margin-inline: auto;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
:is(
|
|
27
|
+
:is(
|
|
28
|
+
.mx-media--left,
|
|
29
|
+
[dir="rtl"] .mx-media--right,
|
|
30
|
+
.translated-rtl .mx-media--right
|
|
31
|
+
) {
|
|
28
32
|
@media (--small-up) {
|
|
29
33
|
float: left;
|
|
30
34
|
margin-inline: 0 var(--spacing-m);
|
|
31
35
|
}
|
|
32
36
|
}
|
|
33
37
|
|
|
34
|
-
:is(
|
|
38
|
+
:is(
|
|
39
|
+
.mx-media--right,
|
|
40
|
+
[dir="rtl"] .mx-media--left,
|
|
41
|
+
.translated-rtl .mx-media--left
|
|
42
|
+
) {
|
|
35
43
|
@media (--small-up) {
|
|
36
44
|
float: right;
|
|
37
45
|
margin-inline: var(--spacing-m) 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Atom/NavList List smoke-test 1`] = `
|
|
4
|
-
<nav class="nav nav--list ">
|
|
5
|
-
<h4 class="text--embellished-headline">
|
|
4
|
+
<nav class="mx-nav mx-nav--list ">
|
|
5
|
+
<h4 class="mx-text--embellished-headline">
|
|
6
6
|
Jump To Section
|
|
7
7
|
</h4>
|
|
8
8
|
<ul>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
@layer design-system.atoms {
|
|
6
|
-
.nav--list {
|
|
6
|
+
.mx-nav--list {
|
|
7
7
|
margin-block-end: var(--spacing-m);
|
|
8
8
|
|
|
9
9
|
& ul {
|
|
@@ -16,14 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.nav--list
|
|
20
|
-
|
|
21
|
-
grid-template-columns: repeat(2, 1fr);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
h2 + .nav--list,
|
|
26
|
-
h3 + .nav--list {
|
|
19
|
+
h2 + .mx-nav--list,
|
|
20
|
+
h3 + .mx-nav--list {
|
|
27
21
|
margin-block-start: var(--spacing-m);
|
|
28
22
|
}
|
|
29
23
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<nav class="nav nav--list {{ modifier_class }}">
|
|
2
|
-
<h4 class="text--embellished-headline">{{ title|default('Jump To Section') }}</h4>
|
|
1
|
+
<nav class="mx-nav mx-nav--list {{ modifier_class }}">
|
|
2
|
+
<h4 class="mx-text--embellished-headline">{{ title|default('Jump To Section') }}</h4>
|
|
3
3
|
{% block list %}
|
|
4
4
|
<ul>
|
|
5
5
|
<li>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/* stylelint-disable custom-property-pattern */
|
|
2
2
|
@define-mixin spacing $size {
|
|
3
|
-
.spacing--$(size) {
|
|
3
|
+
.mx-spacing--$(size) {
|
|
4
4
|
padding: var(--spacing-$(size));
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.spacing--top-$(size) {
|
|
7
|
+
.mx-spacing--top-$(size) {
|
|
8
8
|
padding-block-start: var(--spacing-$(size));
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.spacing--bottom-$(size) {
|
|
11
|
+
.mx-spacing--bottom-$(size) {
|
|
12
12
|
padding-block-end: var(--spacing-$(size));
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.spacing--left-$(size) {
|
|
15
|
+
.mx-spacing--left-$(size) {
|
|
16
16
|
padding-inline-start: var(--spacing-$(size));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.spacing--right-$(size) {
|
|
19
|
+
.mx-spacing--right-$(size) {
|
|
20
20
|
padding-inline-end: var(--spacing-$(size));
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
@import "
|
|
1
|
+
@import "./_mixins.css";
|
|
2
2
|
|
|
3
3
|
@layer design-system.utilities {
|
|
4
|
-
.spacing--reset {
|
|
4
|
+
.mx-spacing--reset {
|
|
5
5
|
padding: 0 !important;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.spacing--top-reset {
|
|
8
|
+
.mx-spacing--top-reset {
|
|
9
9
|
padding-block-start: 0 !important;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.spacing--bottom-reset {
|
|
12
|
+
.mx-spacing--bottom-reset {
|
|
13
13
|
padding-block-end: 0 !important;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.spacing--left-reset {
|
|
16
|
+
.mx-spacing--left-reset {
|
|
17
17
|
padding-inline-start: 0 !important;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.spacing--right-reset {
|
|
20
|
+
.mx-spacing--right-reset {
|
|
21
21
|
padding-inline-end: 0 !important;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Table Flush smoke-test 1`] = `
|
|
4
|
-
<table class=" table--flush">
|
|
4
|
+
<table class=" mx-table--flush">
|
|
5
5
|
<thead>
|
|
6
6
|
<tr>
|
|
7
7
|
<th>
|
|
@@ -66,7 +66,7 @@ exports[`Atom/Table Flush smoke-test 1`] = `
|
|
|
66
66
|
`;
|
|
67
67
|
|
|
68
68
|
exports[`Atom/Table Small smoke-test 1`] = `
|
|
69
|
-
<table class=" table--small">
|
|
69
|
+
<table class=" mx-table--small">
|
|
70
70
|
<thead>
|
|
71
71
|
<tr>
|
|
72
72
|
<th>
|
|
@@ -196,7 +196,7 @@ exports[`Atom/Table Table smoke-test 1`] = `
|
|
|
196
196
|
`;
|
|
197
197
|
|
|
198
198
|
exports[`Atom/Table Zebra smoke-test 1`] = `
|
|
199
|
-
<table class=" table--striped">
|
|
199
|
+
<table class=" mx-table--striped">
|
|
200
200
|
<thead>
|
|
201
201
|
<tr>
|
|
202
202
|
<th>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.table--flush {
|
|
24
|
+
.mx-table--flush {
|
|
25
25
|
& :is(td, th) {
|
|
26
26
|
&:first-child {
|
|
27
27
|
padding-inline-start: 0;
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.table--small {
|
|
36
|
+
.mx-table--small {
|
|
37
37
|
& :is(td, th) {
|
|
38
38
|
font-size: var(--font-size-s);
|
|
39
39
|
line-height: var(--line-height-h);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.table--striped {
|
|
43
|
+
.mx-table--striped {
|
|
44
44
|
& tbody tr {
|
|
45
45
|
&:nth-child(even) {
|
|
46
46
|
& :is(td, th) {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.table--responsive {
|
|
53
|
+
.mx-table--responsive {
|
|
54
54
|
max-inline-size: 100%;
|
|
55
55
|
|
|
56
56
|
@media (--medium-down) {
|
|
@@ -2,55 +2,55 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Typography/Text Sizes Example smoke-test 1`] = `
|
|
4
4
|
<div class="vertical-flow">
|
|
5
|
-
<p class="text--embellished-headline">
|
|
5
|
+
<p class="mx-text--embellished-headline">
|
|
6
6
|
Embelished headline: Lorem ipsum dolor sit amet consectetur
|
|
7
7
|
</p>
|
|
8
|
-
<p class="text--section-headline">
|
|
8
|
+
<p class="mx-text--section-headline">
|
|
9
9
|
Section headline: Lorem ipsum dolor sit amet consectetur
|
|
10
10
|
</p>
|
|
11
|
-
<h2 class="headline">
|
|
11
|
+
<h2 class="mx-headline">
|
|
12
12
|
Headline: Lorem ipsum dolor sit amet consectetur
|
|
13
13
|
</h2>
|
|
14
|
-
<p class="heading--xxl">
|
|
14
|
+
<p class="mx-heading--xxl">
|
|
15
15
|
Heading xxl: Lorem ipsum dolor sit amet consectetur
|
|
16
16
|
</p>
|
|
17
|
-
<p class="heading--xl">
|
|
17
|
+
<p class="mx-heading--xl">
|
|
18
18
|
Heading xl: Lorem ipsum dolor sit amet consectetur
|
|
19
19
|
</p>
|
|
20
|
-
<p class="heading--l">
|
|
20
|
+
<p class="mx-heading--l">
|
|
21
21
|
Heading l: Lorem ipsum dolor sit amet consectetur
|
|
22
22
|
</p>
|
|
23
|
-
<p class="heading--m">
|
|
23
|
+
<p class="mx-heading--m">
|
|
24
24
|
Heading m: Lorem ipsum dolor sit amet consectetur
|
|
25
25
|
</p>
|
|
26
|
-
<p class="heading--s">
|
|
26
|
+
<p class="mx-heading--s">
|
|
27
27
|
Heading s: Lorem ipsum dolor sit amet consectetur
|
|
28
28
|
</p>
|
|
29
|
-
<p class="heading--xs">
|
|
29
|
+
<p class="mx-heading--xs">
|
|
30
30
|
Heading xs: Lorem ipsum dolor sit amet consectetur
|
|
31
31
|
</p>
|
|
32
|
-
<p class="text--xxxl">
|
|
32
|
+
<p class="mx-text--xxxl">
|
|
33
33
|
Text xxxl: Lorem ipsum dolor sit amet consectetur
|
|
34
34
|
</p>
|
|
35
|
-
<p class="text--xxl">
|
|
35
|
+
<p class="mx-text--xxl">
|
|
36
36
|
Text xxl: Lorem ipsum dolor sit amet consectetur
|
|
37
37
|
</p>
|
|
38
|
-
<p class="text--xl">
|
|
38
|
+
<p class="mx-text--xl">
|
|
39
39
|
Text xl: Lorem ipsum dolor sit amet consectetur
|
|
40
40
|
</p>
|
|
41
|
-
<p class="text--l">
|
|
41
|
+
<p class="mx-text--l">
|
|
42
42
|
Text l: Lorem ipsum dolor sit amet consectetur
|
|
43
43
|
</p>
|
|
44
|
-
<p class="text--m">
|
|
44
|
+
<p class="mx-text--m">
|
|
45
45
|
Text m: Lorem ipsum dolor sit amet consectetur
|
|
46
46
|
</p>
|
|
47
47
|
<p>
|
|
48
48
|
Text: Lorem ipsum dolor sit amet consectetur
|
|
49
49
|
</p>
|
|
50
|
-
<p class="text--s">
|
|
50
|
+
<p class="mx-text--s">
|
|
51
51
|
Text s: Lorem ipsum dolor sit amet consectetur
|
|
52
52
|
</p>
|
|
53
|
-
<p class="text--xs">
|
|
53
|
+
<p class="mx-text--xs">
|
|
54
54
|
Text xs: Lorem ipsum dolor sit amet consectetur
|
|
55
55
|
</p>
|
|
56
56
|
</div>
|