@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
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
@layer design-system.utilities {
|
|
2
|
+
.stack {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-areas: "stack";
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.stack > * {
|
|
8
|
+
grid-area: stack;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.flex {
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.place-center {
|
|
16
|
+
align-content: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
place-content: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.align--center {
|
|
22
|
+
margin-inline: auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.align--left {
|
|
26
|
+
margin-inline-end: auto;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.align--right {
|
|
30
|
+
margin-inline-start: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.align--bottom {
|
|
34
|
+
margin-block-start: auto;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.align--top {
|
|
38
|
+
margin-block-end: auto;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.order--start {
|
|
42
|
+
order: -1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.order--1 {
|
|
46
|
+
order: 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.order--2 {
|
|
50
|
+
order: 2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.order--3 {
|
|
54
|
+
order: 3;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.gap--s {
|
|
58
|
+
gap: var(--gap-s);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.gap--m {
|
|
62
|
+
gap: var(--gap);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.gap--l {
|
|
66
|
+
gap: var(--gap-l);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.gap--xl {
|
|
70
|
+
gap: var(--gap-xl);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.gap--section-l {
|
|
74
|
+
gap: var(--section-l, var(--spacing-xl));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.gap--section-xl {
|
|
78
|
+
gap: var(--section-xl, var(--spacing-uul));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@layer design-system.utilities {
|
|
83
|
+
.hidden,
|
|
84
|
+
.visually-hidden,
|
|
85
|
+
.sr-only {
|
|
86
|
+
clip-path: polygon(0 0, 0 0, 0 0, 0 0);
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
position: absolute !important;
|
|
89
|
+
margin: 0;
|
|
90
|
+
padding: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.visually-hidden.visually-hidden--focussable:focus,
|
|
94
|
+
.sr-only.sr-only--focussable:focus {
|
|
95
|
+
clip-path: none;
|
|
96
|
+
position: revert !important;
|
|
97
|
+
margin: revert;
|
|
98
|
+
padding: revert;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Responsive utility class
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
@layer design-system.utilities {
|
|
107
|
+
@media (min-width: 946px) {
|
|
108
|
+
.mobile-only {
|
|
109
|
+
display: none;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
@media (max-width: 945.98px) {
|
|
113
|
+
|
|
114
|
+
.desktop-only,
|
|
115
|
+
.global .desktop-only {
|
|
116
|
+
display: none;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.print-only {
|
|
121
|
+
display: none !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media print {
|
|
125
|
+
|
|
126
|
+
.print-only {
|
|
127
|
+
display: block !important;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
@media print {
|
|
131
|
+
|
|
132
|
+
.screen-only {
|
|
133
|
+
display: none !important;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Skeleton and loading UI.
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
@layer design-system.utilities {
|
|
143
|
+
.skeleton {
|
|
144
|
+
--background: hsla(0, 0%, 0%, 0.1);
|
|
145
|
+
--opacity-low: 0.5;
|
|
146
|
+
--opacity-high: 0.75;
|
|
147
|
+
--duration: 1500ms;
|
|
148
|
+
|
|
149
|
+
animation: pulse 1500ms ease infinite;
|
|
150
|
+
|
|
151
|
+
animation: pulse var(--duration) ease infinite;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.skeleton--bg {
|
|
155
|
+
background-color: var(--background);
|
|
156
|
+
border-radius: var(--border-radius);
|
|
157
|
+
z-index: -1;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@keyframes pulse {
|
|
162
|
+
0% {
|
|
163
|
+
opacity: var(--opacity-low);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
75% {
|
|
167
|
+
opacity: var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bm9uZSAhaW1wb3J0YW50O1xuICAgIH1cbiAgfVxufVxuXG4vKipcbiAqIFNrZWxldG9uIGFuZCBsb2FkaW5nIFVJLlxuICovXG5AbGF5ZXIgZGVzaWduLXN5c3RlbS51dGlsaXRpZXMge1xuICAuc2tlbGV0b24ge1xuICAgIC0tYmFja2dyb3VuZDogaHNsKDBkZWcgMCUgMCUgLyAxMCUpO1xuICAgIC0tb3BhY2l0eS1sb3c6IDAuNTtcbiAgICAtLW9wYWNpdHktaGlnaDogMC43NTtcbiAgICAtLWR1cmF0aW9uOiAxNTAwbXM7XG5cbiAgICBhbmltYXRpb246IHB1bHNlIHZhcigtLWR1cmF0aW9uKSBlYXNlIGluZmluaXRlO1xuICB9XG5cbiAgLnNrZWxldG9uLS1iZyB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tYmFja2dyb3VuZCk7XG4gICAgYm9yZGVyLXJhZGl1czogdmFyKC0tYm9yZGVyLXJhZGl1cyk7XG4gICAgei1pbmRleDogLTE7XG4gIH1cbn1cblxuQGtleWZyYW1lcyBwdWxzZSB7XG4gIDAlIHtcbiAgICBvcGFjaXR5OiB2YXIoLS1vcGFjaXR5LWxvdyk7XG4gIH1cblxuICA3NSUge1xuICAgIG9wYWNpdHk6IHZhcigtLW9wYWNpdHktaGlnaCk7XG4gIH1cblxuICAxMDAlIHtcbiAgICBvcGFjaXR5OiB2YXIoLS1vcGFjaXR5LWxvdyk7XG4gIH1cbn1cbiJdfQ== */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnx-mixtape/mxds",
|
|
3
3
|
"description": "The Mixtape Design System",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "concurrently -k -n \"VITE,STORYBOOK\" -c \"#636cff,#ff4785\" \"npm run dev-vite\" \"npm run dev-storybook\"",
|
|
7
7
|
"build": "concurrently -n \"VITE,STORYBOOK\" -c \"#636cff,#ff4785\" \"npm run build-vite\" \"npm run build-storybook\"",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"test": "npm run test-storybook",
|
|
24
24
|
"test-vitest": "vitest --run",
|
|
25
25
|
"test-storybook": "concurrently \"npm:test-storybook-*\"",
|
|
26
|
-
"test-storybook-html": "test-storybook --maxWorkers=
|
|
27
|
-
"test-storybook-react": "test-storybook --maxWorkers=
|
|
26
|
+
"test-storybook-html": "test-storybook --maxWorkers=1",
|
|
27
|
+
"test-storybook-react": "test-storybook --maxWorkers=1 --url http://127.0.0.1:6008 -c .storybook-react",
|
|
28
28
|
"clean": "rm -rf ./dist",
|
|
29
29
|
"commit": "git-cz",
|
|
30
30
|
"http-server": "http-server ./dist/storybook -i -p 3001"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Backgrounds Alt smoke-test 1`] = `
|
|
4
|
-
<div class="spacing--m rich-text vertical-flow background--alt">
|
|
4
|
+
<div class="mx-spacing--m mx-rich-text mx-vertical-flow mx-background--alt">
|
|
5
5
|
<blockquote>
|
|
6
6
|
<p>
|
|
7
7
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
@@ -11,12 +11,12 @@ exports[`Atom/Backgrounds Alt smoke-test 1`] = `
|
|
|
11
11
|
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
12
12
|
</p>
|
|
13
13
|
<a href="#"
|
|
14
|
-
class="link--external"
|
|
14
|
+
class="mx-link--external"
|
|
15
15
|
>
|
|
16
16
|
Contact the Lorem Ipsum Squad
|
|
17
17
|
</a>
|
|
18
18
|
</blockquote>
|
|
19
|
-
<blockquote class="background--reset">
|
|
19
|
+
<blockquote class="mx-background--reset">
|
|
20
20
|
<p>
|
|
21
21
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
22
22
|
<a href="#">
|
|
@@ -25,7 +25,7 @@ exports[`Atom/Backgrounds Alt smoke-test 1`] = `
|
|
|
25
25
|
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
26
26
|
</p>
|
|
27
27
|
<a href="#"
|
|
28
|
-
class="link--external"
|
|
28
|
+
class="mx-link--external"
|
|
29
29
|
>
|
|
30
30
|
Contact the Lorem Ipsum Squad
|
|
31
31
|
</a>
|
|
@@ -34,7 +34,7 @@ exports[`Atom/Backgrounds Alt smoke-test 1`] = `
|
|
|
34
34
|
`;
|
|
35
35
|
|
|
36
36
|
exports[`Atom/Backgrounds Backgrounds smoke-test 1`] = `
|
|
37
|
-
<div class="spacing--m rich-text vertical-flow ">
|
|
37
|
+
<div class="mx-spacing--m mx-rich-text mx-vertical-flow ">
|
|
38
38
|
<blockquote>
|
|
39
39
|
<p>
|
|
40
40
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
@@ -44,12 +44,12 @@ exports[`Atom/Backgrounds Backgrounds smoke-test 1`] = `
|
|
|
44
44
|
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
45
45
|
</p>
|
|
46
46
|
<a href="#"
|
|
47
|
-
class="link--external"
|
|
47
|
+
class="mx-link--external"
|
|
48
48
|
>
|
|
49
49
|
Contact the Lorem Ipsum Squad
|
|
50
50
|
</a>
|
|
51
51
|
</blockquote>
|
|
52
|
-
<blockquote class="background--reset">
|
|
52
|
+
<blockquote class="mx-background--reset">
|
|
53
53
|
<p>
|
|
54
54
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
55
55
|
<a href="#">
|
|
@@ -58,7 +58,7 @@ exports[`Atom/Backgrounds Backgrounds smoke-test 1`] = `
|
|
|
58
58
|
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
59
59
|
</p>
|
|
60
60
|
<a href="#"
|
|
61
|
-
class="link--external"
|
|
61
|
+
class="mx-link--external"
|
|
62
62
|
>
|
|
63
63
|
Contact the Lorem Ipsum Squad
|
|
64
64
|
</a>
|
|
@@ -67,7 +67,7 @@ exports[`Atom/Backgrounds Backgrounds smoke-test 1`] = `
|
|
|
67
67
|
`;
|
|
68
68
|
|
|
69
69
|
exports[`Atom/Backgrounds Reverse smoke-test 1`] = `
|
|
70
|
-
<div class="spacing--m rich-text vertical-flow background--reverse">
|
|
70
|
+
<div class="mx-spacing--m mx-rich-text mx-vertical-flow mx-background--reverse">
|
|
71
71
|
<blockquote>
|
|
72
72
|
<p>
|
|
73
73
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
@@ -77,12 +77,12 @@ exports[`Atom/Backgrounds Reverse smoke-test 1`] = `
|
|
|
77
77
|
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
78
78
|
</p>
|
|
79
79
|
<a href="#"
|
|
80
|
-
class="link--external"
|
|
80
|
+
class="mx-link--external"
|
|
81
81
|
>
|
|
82
82
|
Contact the Lorem Ipsum Squad
|
|
83
83
|
</a>
|
|
84
84
|
</blockquote>
|
|
85
|
-
<blockquote class="background--reset">
|
|
85
|
+
<blockquote class="mx-background--reset">
|
|
86
86
|
<p>
|
|
87
87
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
88
88
|
<a href="#">
|
|
@@ -91,7 +91,7 @@ exports[`Atom/Backgrounds Reverse smoke-test 1`] = `
|
|
|
91
91
|
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
92
92
|
</p>
|
|
93
93
|
<a href="#"
|
|
94
|
-
class="link--external"
|
|
94
|
+
class="mx-link--external"
|
|
95
95
|
>
|
|
96
96
|
Contact the Lorem Ipsum Squad
|
|
97
97
|
</a>
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Backgrounds
|
|
3
3
|
*/
|
|
4
4
|
@layer design-system.atoms {
|
|
5
|
-
:where([class*="background--"]) {
|
|
5
|
+
:where([class*="mx-background--"]) {
|
|
6
6
|
background-color: var(--background, var(--colour-background));
|
|
7
7
|
color: var(--foreground, var(--colour-foreground));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.background--reset {
|
|
10
|
+
.mx-background--reset {
|
|
11
11
|
/* use to revert .background--reverse on children */
|
|
12
12
|
--background: var(--colour-background);
|
|
13
13
|
--foreground: var(--colour-foreground);
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
--line-colour: var(--colour-border);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.background--alt {
|
|
18
|
+
.mx-background--alt {
|
|
19
19
|
--background: var(--colour-background-alt);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.background--primary {
|
|
22
|
+
.mx-background--primary {
|
|
23
23
|
--background: var(--colour-primary);
|
|
24
24
|
--foreground: var(--colour-foreground-reverse);
|
|
25
25
|
--line-colour: var(--colour-border-reverse);
|
|
26
26
|
--link-colour: var(--colour-primary-light);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.background--accent {
|
|
29
|
+
.mx-background--accent {
|
|
30
30
|
--background: var(--colour-accent);
|
|
31
31
|
--foreground: var(--colour-foreground-reverse);
|
|
32
32
|
--line-colour: var(--colour-border-reverse);
|
|
33
33
|
--link-colour: var(--colour-accent-light);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.background--image {
|
|
36
|
+
.mx-background--image {
|
|
37
37
|
& > img {
|
|
38
38
|
object-fit: cover;
|
|
39
39
|
position: absolute;
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.background--reverse {
|
|
48
|
+
.mx-background--reverse {
|
|
49
49
|
--line-colour: var(--colour-border-reverse);
|
|
50
50
|
--link-colour: var(--colour-primary-light);
|
|
51
51
|
--background: var(--colour-background-reverse);
|
|
52
52
|
--foreground: var(--colour-foreground-reverse);
|
|
53
53
|
|
|
54
|
-
& .background--image {
|
|
54
|
+
& .mx-background--image {
|
|
55
55
|
--bg-img-brightness: 0.45;
|
|
56
56
|
--bg-img-opacity: 1;
|
|
57
57
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<div class="spacing--m rich-text vertical-flow {{ modifier_class }}{% if modifier %} background--{{ modifier }}{% endif %}">
|
|
1
|
+
<div class="mx-spacing--m mx-rich-text mx-vertical-flow {{ modifier_class }}{% if modifier %} mx-background--{{ modifier }}{% endif %}">
|
|
2
2
|
<blockquote>
|
|
3
3
|
<p>But I must explain to you how all this mistaken idea of denouncing of a <a href="#">pleasure and praising pain</a> was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.</p>
|
|
4
|
-
<a href="#" class="link--external">Contact the Lorem Ipsum Squad</a>
|
|
4
|
+
<a href="#" class="mx-link--external">Contact the Lorem Ipsum Squad</a>
|
|
5
5
|
</blockquote>
|
|
6
|
-
<blockquote class="background--reset">
|
|
6
|
+
<blockquote class="mx-background--reset">
|
|
7
7
|
<p>But I must explain to you how all this mistaken idea of denouncing of a <a href="#">pleasure and praising pain</a> was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.</p>
|
|
8
|
-
<a href="#" class="link--external">Contact the Lorem Ipsum Squad</a>
|
|
8
|
+
<a href="#" class="mx-link--external">Contact the Lorem Ipsum Squad</a>
|
|
9
9
|
</blockquote>
|
|
10
10
|
</div>
|
|
@@ -26,13 +26,13 @@ const Button = ({
|
|
|
26
26
|
type = "button",
|
|
27
27
|
...props
|
|
28
28
|
}: ButtonType): JSX.Element => {
|
|
29
|
-
const classes = ["button", className]
|
|
30
|
-
const buttonMods = [...modifiers].map(modifier => `button--${modifier}`)
|
|
29
|
+
const classes = ["mx-button", className]
|
|
30
|
+
const buttonMods = [...modifiers].map(modifier => `mx-button--${modifier}`)
|
|
31
31
|
return (
|
|
32
32
|
<button
|
|
33
33
|
className={classNames([...classes, ...buttonMods], {
|
|
34
|
-
["button--icon-only"]: iconOnly,
|
|
35
|
-
[`icon icon--${icon}`]: icon,
|
|
34
|
+
["mx-button--icon-only"]: iconOnly,
|
|
35
|
+
[`mx-icon mx-icon--${icon}`]: icon,
|
|
36
36
|
})}
|
|
37
37
|
type={type}
|
|
38
38
|
{...props}
|
|
@@ -51,13 +51,13 @@ export const ButtonLink = ({
|
|
|
51
51
|
className,
|
|
52
52
|
...props
|
|
53
53
|
}: ButtonLinkType): JSX.Element => {
|
|
54
|
-
const classes = ["button", className]
|
|
55
|
-
const buttonMods = [...modifiers].map(modifier => `button--${modifier}`)
|
|
54
|
+
const classes = ["mx-button", className]
|
|
55
|
+
const buttonMods = [...modifiers].map(modifier => `mx-button--${modifier}`)
|
|
56
56
|
return (
|
|
57
57
|
<Link
|
|
58
58
|
className={classNames([...classes, ...buttonMods], {
|
|
59
|
-
["button--icon-only"]: iconOnly,
|
|
60
|
-
[`icon icon--${icon}`]: icon,
|
|
59
|
+
["mx-button--icon-only"]: iconOnly,
|
|
60
|
+
[`mx-icon mx-icon--${icon}`]: icon,
|
|
61
61
|
})}
|
|
62
62
|
to={to}
|
|
63
63
|
{...props}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Button Button smoke-test 1`] = `
|
|
4
|
-
<button class="button "
|
|
4
|
+
<button class="mx-button "
|
|
5
5
|
type="button"
|
|
6
6
|
>
|
|
7
7
|
<span>
|
|
@@ -11,19 +11,19 @@ exports[`Atom/Button Button smoke-test 1`] = `
|
|
|
11
11
|
`;
|
|
12
12
|
|
|
13
13
|
exports[`Atom/Button IconButton smoke-test 1`] = `
|
|
14
|
-
<button class="button "
|
|
14
|
+
<button class="mx-button "
|
|
15
15
|
type="button"
|
|
16
16
|
>
|
|
17
17
|
<span>
|
|
18
18
|
Button
|
|
19
19
|
</span>
|
|
20
|
-
<span class="icon icon--arrow-right ">
|
|
20
|
+
<span class="mx-icon mx-icon--arrow-right ">
|
|
21
21
|
</span>
|
|
22
22
|
</button>
|
|
23
23
|
`;
|
|
24
24
|
|
|
25
25
|
exports[`Atom/Button Link smoke-test 1`] = `
|
|
26
|
-
<a class="button "
|
|
26
|
+
<a class="mx-button "
|
|
27
27
|
href="#"
|
|
28
28
|
>
|
|
29
29
|
<span>
|
|
@@ -33,7 +33,7 @@ exports[`Atom/Button Link smoke-test 1`] = `
|
|
|
33
33
|
`;
|
|
34
34
|
|
|
35
35
|
exports[`Atom/Button Primary smoke-test 1`] = `
|
|
36
|
-
<button class="button button--dark"
|
|
36
|
+
<button class="mx-button mx-button--dark"
|
|
37
37
|
type="button"
|
|
38
38
|
>
|
|
39
39
|
<span>
|
|
@@ -43,7 +43,7 @@ exports[`Atom/Button Primary smoke-test 1`] = `
|
|
|
43
43
|
`;
|
|
44
44
|
|
|
45
45
|
exports[`Atom/Button Text smoke-test 1`] = `
|
|
46
|
-
<button class="button button--light"
|
|
46
|
+
<button class="mx-button mx-button--light"
|
|
47
47
|
type="button"
|
|
48
48
|
>
|
|
49
49
|
<span>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
@layer design-system.atoms {
|
|
6
|
-
.button--dark {
|
|
6
|
+
.mx-button--dark {
|
|
7
7
|
--button-line-colour: var(--colour-primary);
|
|
8
8
|
--background: var(--colour-primary);
|
|
9
9
|
--foreground: var(--colour-foreground-reverse);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.button--light {
|
|
17
|
+
.mx-button--light {
|
|
18
18
|
border: transparent;
|
|
19
19
|
color: var(--link-colour, var(--colour-primary));
|
|
20
20
|
text-decoration-line: underline;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.button--destructive {
|
|
27
|
+
.mx-button--destructive {
|
|
28
28
|
--button-line-colour: var(--colour-error-foreground);
|
|
29
29
|
--background: var(--colour-error-foreground);
|
|
30
30
|
--foreground: var(--colour-foreground-reverse);
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.button--white {
|
|
38
|
+
.mx-button--white {
|
|
39
39
|
--button-line-colour: var(--colour-foreground-reverse);
|
|
40
40
|
--background: var(--colour-foreground-reverse);
|
|
41
41
|
--foreground: var(--colour-foreground);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
@layer design-system.atoms {
|
|
6
|
-
.button {
|
|
6
|
+
.mx-button {
|
|
7
7
|
--outline-offset: 1px;
|
|
8
8
|
--outline-width: 4px;
|
|
9
9
|
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.button--full-width {
|
|
41
|
+
.mx-button--full-width {
|
|
42
42
|
inline-size: 100%;
|
|
43
43
|
justify-content: center;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.button--large {
|
|
46
|
+
.mx-button--large {
|
|
47
47
|
--vertical-padding: var(--spacing-s);
|
|
48
48
|
--horizontal-padding: var(--spacing-l);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
.button--small {
|
|
51
|
+
.mx-button--small {
|
|
52
52
|
--button-font-size: var(--font-size-s);
|
|
53
53
|
--vertical-padding: var(--spacing-xxxs);
|
|
54
54
|
--horizontal-padding: var(--spacing-s);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.button--icon-only {
|
|
57
|
+
.mx-button--icon-only {
|
|
58
58
|
inline-size: var(--spacing-xl);
|
|
59
59
|
block-size: var(--spacing-xl);
|
|
60
60
|
padding: 0;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/html"
|
|
2
2
|
import Component from "./heading.twig"
|
|
3
3
|
import "../_base.css"
|
|
4
|
-
import { HeadingStyles } from "../../enums"
|
|
5
4
|
import { HeadingTypes } from "@pnx-mixtape/ids-shape"
|
|
6
5
|
|
|
7
6
|
const meta: Meta<typeof Component> = {
|
|
@@ -12,7 +11,11 @@ const meta: Meta<typeof Component> = {
|
|
|
12
11
|
},
|
|
13
12
|
argTypes: {
|
|
14
13
|
as: { options: Object.values(HeadingTypes), control: "select" },
|
|
15
|
-
|
|
14
|
+
modifiers: {
|
|
15
|
+
// @todo add mixtapes heading modifiers.
|
|
16
|
+
options: Object.values(HeadingTypes),
|
|
17
|
+
control: "multi-select",
|
|
18
|
+
},
|
|
16
19
|
title: { control: "text" },
|
|
17
20
|
excluded: { control: "boolean" },
|
|
18
21
|
srOnly: { control: "boolean" },
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
@layer design-system.defaults {
|
|
2
2
|
:is(
|
|
3
|
-
.headline,
|
|
3
|
+
.mx-headline,
|
|
4
4
|
h1,
|
|
5
|
-
.heading--xxl,
|
|
5
|
+
.mx-heading--xxl,
|
|
6
6
|
h2,
|
|
7
|
-
.heading--xl,
|
|
7
|
+
.mx-heading--xl,
|
|
8
8
|
h3,
|
|
9
|
-
.heading--l,
|
|
9
|
+
.mx-heading--l,
|
|
10
10
|
h4,
|
|
11
|
-
.heading--m,
|
|
11
|
+
.mx-heading--m,
|
|
12
12
|
h5,
|
|
13
|
-
.heading--s,
|
|
13
|
+
.mx-heading--s,
|
|
14
14
|
h6,
|
|
15
|
-
.heading--xs
|
|
15
|
+
.mx-heading--xs
|
|
16
16
|
) {
|
|
17
17
|
font-family: var(--heading-font-family, var(--font-family));
|
|
18
18
|
line-height: var(--line-height-h);
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
|
|
24
24
|
@supports (font-size: 1cqi) {
|
|
25
25
|
:is(
|
|
26
|
-
.headline,
|
|
26
|
+
.mx-headline,
|
|
27
27
|
h1,
|
|
28
|
-
.heading--xxl,
|
|
28
|
+
.mx-heading--xxl,
|
|
29
29
|
h2,
|
|
30
|
-
.heading--xl,
|
|
30
|
+
.mx-heading--xl,
|
|
31
31
|
h3,
|
|
32
|
-
.heading--l,
|
|
32
|
+
.mx-heading--l,
|
|
33
33
|
h4,
|
|
34
|
-
.heading--m,
|
|
34
|
+
.mx-heading--m,
|
|
35
35
|
h5,
|
|
36
|
-
.heading--s
|
|
36
|
+
.mx-heading--s
|
|
37
37
|
) {
|
|
38
38
|
--font-min: calc(
|
|
39
39
|
var(--heading-font-size) - var(--heading-font-size) *
|
|
@@ -48,37 +48,37 @@
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
.headline {
|
|
51
|
+
.mx-headline {
|
|
52
52
|
--heading-font-size: var(--font-size-xxxl);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
h1,
|
|
56
|
-
.heading--xxl {
|
|
56
|
+
.mx-heading--xxl {
|
|
57
57
|
--heading-font-size: var(--font-size-xxl);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
h2,
|
|
61
|
-
.heading--xl {
|
|
61
|
+
.mx-heading--xl {
|
|
62
62
|
--heading-font-size: var(--font-size-xl);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
h3,
|
|
66
|
-
.heading--l {
|
|
66
|
+
.mx-heading--l {
|
|
67
67
|
--heading-font-size: var(--font-size-l);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
h4,
|
|
71
|
-
.heading--m {
|
|
71
|
+
.mx-heading--m {
|
|
72
72
|
--heading-font-size: var(--font-size-m);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
h5,
|
|
76
|
-
.heading--s {
|
|
76
|
+
.mx-heading--s {
|
|
77
77
|
--heading-font-size: var(--base-font-size);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
h6,
|
|
81
|
-
.heading--xs {
|
|
81
|
+
.mx-heading--xs {
|
|
82
82
|
--heading-font-size: var(--font-size-s);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
{% set classes = [
|
|
20
20
|
excluded ? 'is-excluded' : null,
|
|
21
21
|
srOnly ? 'sr-only' : null,
|
|
22
|
-
style ? 'heading--'~style : null,
|
|
22
|
+
style ? 'mx-heading--'~style : null,
|
|
23
23
|
] %}
|
|
24
24
|
{% set attributes = (attributes|default(create_attribute())).addClass(classes) %}
|
|
25
25
|
|