@pnx-mixtape/mxds 0.0.23 → 0.0.24
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/.storybook/decorators.ts +7 -0
- package/.storybook/main.ts +21 -0
- package/.storybook/manager.ts +6 -0
- package/.storybook/preview.ts +60 -0
- package/.storybook/public/demo-logo.svg +4 -0
- package/.storybook/public/design-system.svg +1 -0
- package/.storybook/public/favicon.svg +7 -0
- package/.storybook/public/mixtape-logo.png +0 -0
- package/.storybook/public/mixtape.webp +0 -0
- package/.storybook/public/pinto.png +0 -0
- package/.storybook/public/pinto.svg +1 -0
- package/.storybook/public/xb.png +0 -0
- package/.storybook/public/xb.svg +1 -0
- package/.storybook/src/global.d.ts +16 -0
- package/.storybook/src/theme.ts +8 -0
- package/.storybook/storybook.css +35 -0
- package/.storybook/test-runner.ts +77 -0
- package/.storybook/theme-demo.css +89 -0
- package/package.json +5 -3
- package/src/Atom/Atom.mdx +18 -18
- package/src/Atom/Background/{Backgrounds.stories.ts → Background.stories.ts} +2 -1
- package/src/Atom/Background/__snapshots__/{Backgrounds.stories.ts.snap → Background.stories.ts.snap} +85 -25
- package/src/Atom/Background/_background.css +8 -10
- package/src/Atom/Background/backgrounds.twig +6 -4
- package/src/Atom/Button/Button.stories.ts +0 -1
- package/src/Atom/Button/_buttons-styles.css +18 -6
- package/src/Atom/Button/_buttons.css +1 -1
- package/src/Atom/Icon/_extended-set.css +0 -8
- package/src/Atom/Icon/_icon.css +8 -0
- package/src/Atom/Link/_links.css +1 -0
- package/src/Atom/Table/Table.stories.ts +0 -1
- package/src/Component/HeroSearch/HeroSearch.stories.ts +0 -2
- package/src/Component/HeroSearch/__snapshots__/HeroSearch.stories.ts.snap +140 -146
- package/src/Component/Popover/Popover.stories.ts +45 -0
- package/src/Component/Popover/__snapshots__/Popover.stories.ts.snap +26 -0
- package/src/Component/Steps/steps.css +4 -3
- package/src/Form/TextInput/InputDivider.stories.ts +0 -1
- package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +1 -1
- package/src/constants.css +115 -114
- package/src/enums.ts +1 -0
- package/src/tokens.js +25 -18
package/src/Atom/Background/__snapshots__/{Backgrounds.stories.ts.snap → Background.stories.ts.snap}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
|
-
exports[`Atom/
|
|
3
|
+
exports[`Atom/Background Accent smoke-test 1`] = `
|
|
4
4
|
<div class="mx-page default">
|
|
5
5
|
<div class="mx-spacing--m mx-rich-text mx-vertical-flow mx-background--accent">
|
|
6
|
-
<
|
|
6
|
+
<div class="mx-background--box mx-section--m mx-vertical-flow ">
|
|
7
7
|
<p>
|
|
8
8
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
9
9
|
<a href="#">
|
|
@@ -11,13 +11,19 @@ exports[`Atom/Backgrounds Accent smoke-test 1`] = `
|
|
|
11
11
|
</a>
|
|
12
12
|
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.
|
|
13
13
|
</p>
|
|
14
|
+
<a href="#"
|
|
15
|
+
class="mx-button mx-button--dark"
|
|
16
|
+
>
|
|
17
|
+
Contact us
|
|
18
|
+
</a>
|
|
19
|
+
or
|
|
14
20
|
<a href="#"
|
|
15
21
|
class="mx-link--external"
|
|
16
22
|
>
|
|
17
23
|
Contact the Lorem Ipsum Squad
|
|
18
24
|
</a>
|
|
19
|
-
</
|
|
20
|
-
<
|
|
25
|
+
</div>
|
|
26
|
+
<div class="mx-background--reset mx-background--box mx-section--m mx-vertical-flow ">
|
|
21
27
|
<p>
|
|
22
28
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
23
29
|
<a href="#">
|
|
@@ -25,20 +31,26 @@ exports[`Atom/Backgrounds Accent smoke-test 1`] = `
|
|
|
25
31
|
</a>
|
|
26
32
|
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.
|
|
27
33
|
</p>
|
|
34
|
+
<a href="#"
|
|
35
|
+
class="mx-button mx-button--dark"
|
|
36
|
+
>
|
|
37
|
+
Contact us
|
|
38
|
+
</a>
|
|
39
|
+
or
|
|
28
40
|
<a href="#"
|
|
29
41
|
class="mx-link--external"
|
|
30
42
|
>
|
|
31
43
|
Contact the Lorem Ipsum Squad
|
|
32
44
|
</a>
|
|
33
|
-
</
|
|
45
|
+
</div>
|
|
34
46
|
</div>
|
|
35
47
|
</div>
|
|
36
48
|
`;
|
|
37
49
|
|
|
38
|
-
exports[`Atom/
|
|
50
|
+
exports[`Atom/Background Alt smoke-test 1`] = `
|
|
39
51
|
<div class="mx-page default">
|
|
40
52
|
<div class="mx-spacing--m mx-rich-text mx-vertical-flow mx-background--alt">
|
|
41
|
-
<
|
|
53
|
+
<div class="mx-background--box mx-section--m mx-vertical-flow ">
|
|
42
54
|
<p>
|
|
43
55
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
44
56
|
<a href="#">
|
|
@@ -46,13 +58,19 @@ exports[`Atom/Backgrounds Alt smoke-test 1`] = `
|
|
|
46
58
|
</a>
|
|
47
59
|
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.
|
|
48
60
|
</p>
|
|
61
|
+
<a href="#"
|
|
62
|
+
class="mx-button mx-button--dark"
|
|
63
|
+
>
|
|
64
|
+
Contact us
|
|
65
|
+
</a>
|
|
66
|
+
or
|
|
49
67
|
<a href="#"
|
|
50
68
|
class="mx-link--external"
|
|
51
69
|
>
|
|
52
70
|
Contact the Lorem Ipsum Squad
|
|
53
71
|
</a>
|
|
54
|
-
</
|
|
55
|
-
<
|
|
72
|
+
</div>
|
|
73
|
+
<div class="mx-background--reset mx-background--box mx-section--m mx-vertical-flow ">
|
|
56
74
|
<p>
|
|
57
75
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
58
76
|
<a href="#">
|
|
@@ -60,20 +78,26 @@ exports[`Atom/Backgrounds Alt smoke-test 1`] = `
|
|
|
60
78
|
</a>
|
|
61
79
|
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.
|
|
62
80
|
</p>
|
|
81
|
+
<a href="#"
|
|
82
|
+
class="mx-button mx-button--dark"
|
|
83
|
+
>
|
|
84
|
+
Contact us
|
|
85
|
+
</a>
|
|
86
|
+
or
|
|
63
87
|
<a href="#"
|
|
64
88
|
class="mx-link--external"
|
|
65
89
|
>
|
|
66
90
|
Contact the Lorem Ipsum Squad
|
|
67
91
|
</a>
|
|
68
|
-
</
|
|
92
|
+
</div>
|
|
69
93
|
</div>
|
|
70
94
|
</div>
|
|
71
95
|
`;
|
|
72
96
|
|
|
73
|
-
exports[`Atom/
|
|
97
|
+
exports[`Atom/Background Backgrounds smoke-test 1`] = `
|
|
74
98
|
<div class="mx-page default">
|
|
75
99
|
<div class="mx-spacing--m mx-rich-text mx-vertical-flow ">
|
|
76
|
-
<
|
|
100
|
+
<div class="mx-background--box mx-section--m mx-vertical-flow ">
|
|
77
101
|
<p>
|
|
78
102
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
79
103
|
<a href="#">
|
|
@@ -81,13 +105,19 @@ exports[`Atom/Backgrounds Backgrounds smoke-test 1`] = `
|
|
|
81
105
|
</a>
|
|
82
106
|
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.
|
|
83
107
|
</p>
|
|
108
|
+
<a href="#"
|
|
109
|
+
class="mx-button mx-button--dark"
|
|
110
|
+
>
|
|
111
|
+
Contact us
|
|
112
|
+
</a>
|
|
113
|
+
or
|
|
84
114
|
<a href="#"
|
|
85
115
|
class="mx-link--external"
|
|
86
116
|
>
|
|
87
117
|
Contact the Lorem Ipsum Squad
|
|
88
118
|
</a>
|
|
89
|
-
</
|
|
90
|
-
<
|
|
119
|
+
</div>
|
|
120
|
+
<div class="mx-background--reset mx-background--box mx-section--m mx-vertical-flow ">
|
|
91
121
|
<p>
|
|
92
122
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
93
123
|
<a href="#">
|
|
@@ -95,20 +125,26 @@ exports[`Atom/Backgrounds Backgrounds smoke-test 1`] = `
|
|
|
95
125
|
</a>
|
|
96
126
|
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.
|
|
97
127
|
</p>
|
|
128
|
+
<a href="#"
|
|
129
|
+
class="mx-button mx-button--dark"
|
|
130
|
+
>
|
|
131
|
+
Contact us
|
|
132
|
+
</a>
|
|
133
|
+
or
|
|
98
134
|
<a href="#"
|
|
99
135
|
class="mx-link--external"
|
|
100
136
|
>
|
|
101
137
|
Contact the Lorem Ipsum Squad
|
|
102
138
|
</a>
|
|
103
|
-
</
|
|
139
|
+
</div>
|
|
104
140
|
</div>
|
|
105
141
|
</div>
|
|
106
142
|
`;
|
|
107
143
|
|
|
108
|
-
exports[`Atom/
|
|
144
|
+
exports[`Atom/Background Primary smoke-test 1`] = `
|
|
109
145
|
<div class="mx-page default">
|
|
110
146
|
<div class="mx-spacing--m mx-rich-text mx-vertical-flow mx-background--primary">
|
|
111
|
-
<
|
|
147
|
+
<div class="mx-background--box mx-section--m mx-vertical-flow ">
|
|
112
148
|
<p>
|
|
113
149
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
114
150
|
<a href="#">
|
|
@@ -116,13 +152,19 @@ exports[`Atom/Backgrounds Primary smoke-test 1`] = `
|
|
|
116
152
|
</a>
|
|
117
153
|
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.
|
|
118
154
|
</p>
|
|
155
|
+
<a href="#"
|
|
156
|
+
class="mx-button mx-button--dark"
|
|
157
|
+
>
|
|
158
|
+
Contact us
|
|
159
|
+
</a>
|
|
160
|
+
or
|
|
119
161
|
<a href="#"
|
|
120
162
|
class="mx-link--external"
|
|
121
163
|
>
|
|
122
164
|
Contact the Lorem Ipsum Squad
|
|
123
165
|
</a>
|
|
124
|
-
</
|
|
125
|
-
<
|
|
166
|
+
</div>
|
|
167
|
+
<div class="mx-background--reset mx-background--box mx-section--m mx-vertical-flow ">
|
|
126
168
|
<p>
|
|
127
169
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
128
170
|
<a href="#">
|
|
@@ -130,20 +172,26 @@ exports[`Atom/Backgrounds Primary smoke-test 1`] = `
|
|
|
130
172
|
</a>
|
|
131
173
|
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.
|
|
132
174
|
</p>
|
|
175
|
+
<a href="#"
|
|
176
|
+
class="mx-button mx-button--dark"
|
|
177
|
+
>
|
|
178
|
+
Contact us
|
|
179
|
+
</a>
|
|
180
|
+
or
|
|
133
181
|
<a href="#"
|
|
134
182
|
class="mx-link--external"
|
|
135
183
|
>
|
|
136
184
|
Contact the Lorem Ipsum Squad
|
|
137
185
|
</a>
|
|
138
|
-
</
|
|
186
|
+
</div>
|
|
139
187
|
</div>
|
|
140
188
|
</div>
|
|
141
189
|
`;
|
|
142
190
|
|
|
143
|
-
exports[`Atom/
|
|
191
|
+
exports[`Atom/Background Reverse smoke-test 1`] = `
|
|
144
192
|
<div class="mx-page default">
|
|
145
193
|
<div class="mx-spacing--m mx-rich-text mx-vertical-flow mx-background--reverse">
|
|
146
|
-
<
|
|
194
|
+
<div class="mx-background--box mx-section--m mx-vertical-flow ">
|
|
147
195
|
<p>
|
|
148
196
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
149
197
|
<a href="#">
|
|
@@ -151,13 +199,19 @@ exports[`Atom/Backgrounds Reverse smoke-test 1`] = `
|
|
|
151
199
|
</a>
|
|
152
200
|
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.
|
|
153
201
|
</p>
|
|
202
|
+
<a href="#"
|
|
203
|
+
class="mx-button mx-button--dark"
|
|
204
|
+
>
|
|
205
|
+
Contact us
|
|
206
|
+
</a>
|
|
207
|
+
or
|
|
154
208
|
<a href="#"
|
|
155
209
|
class="mx-link--external"
|
|
156
210
|
>
|
|
157
211
|
Contact the Lorem Ipsum Squad
|
|
158
212
|
</a>
|
|
159
|
-
</
|
|
160
|
-
<
|
|
213
|
+
</div>
|
|
214
|
+
<div class="mx-background--reset mx-background--box mx-section--m mx-vertical-flow ">
|
|
161
215
|
<p>
|
|
162
216
|
But I must explain to you how all this mistaken idea of denouncing of a
|
|
163
217
|
<a href="#">
|
|
@@ -165,12 +219,18 @@ exports[`Atom/Backgrounds Reverse smoke-test 1`] = `
|
|
|
165
219
|
</a>
|
|
166
220
|
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.
|
|
167
221
|
</p>
|
|
222
|
+
<a href="#"
|
|
223
|
+
class="mx-button mx-button--dark"
|
|
224
|
+
>
|
|
225
|
+
Contact us
|
|
226
|
+
</a>
|
|
227
|
+
or
|
|
168
228
|
<a href="#"
|
|
169
229
|
class="mx-link--external"
|
|
170
230
|
>
|
|
171
231
|
Contact the Lorem Ipsum Squad
|
|
172
232
|
</a>
|
|
173
|
-
</
|
|
233
|
+
</div>
|
|
174
234
|
</div>
|
|
175
235
|
</div>
|
|
176
236
|
`;
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
:where([class*="mx-background--"]) {
|
|
6
6
|
background-color: var(--background, var(--colour-background));
|
|
7
7
|
color: var(--foreground, var(--colour-foreground));
|
|
8
|
-
color-scheme: var(--scheme, var(--
|
|
8
|
+
color-scheme: var(--scheme, var(--colour-scheme));
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.mx-background--reset {
|
|
12
12
|
/* use to revert .background--reverse on children */
|
|
13
|
-
--scheme: var(--
|
|
13
|
+
--scheme: var(--colour-scheme);
|
|
14
14
|
--background: var(--colour-background);
|
|
15
15
|
--foreground: var(--colour-foreground);
|
|
16
16
|
--link-colour: var(--colour-link);
|
|
@@ -18,22 +18,20 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.mx-background--alt {
|
|
21
|
-
--scheme: var(--alt-scheme,
|
|
21
|
+
--scheme: var(--alt-scheme, var(--colour-scheme));
|
|
22
22
|
--background: var(--colour-background-alt);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.mx-background--primary {
|
|
26
|
-
--scheme: var(--primary-scheme,
|
|
26
|
+
--scheme: var(--primary-scheme, var(--colour-primary-scheme, var(--colour-scheme)));
|
|
27
27
|
--background: var(--colour-primary);
|
|
28
|
-
--
|
|
29
|
-
--line-colour: var(--colour-primary-light);
|
|
28
|
+
--line-colour: light-dark(var(--colour-primary-darker), var(--colour-primary-lighter));
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
.mx-background--accent {
|
|
33
|
-
--scheme: var(--accent-scheme,
|
|
32
|
+
--scheme: var(--accent-scheme, var(--colour-accent-scheme, var(--colour-scheme)));
|
|
34
33
|
--background: var(--colour-accent);
|
|
35
|
-
--
|
|
36
|
-
--line-colour: var(--colour-accent-light);
|
|
34
|
+
--line-colour: light-dark(var(--colour-accent-darker), var(--colour-accent-lighter));
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
.mx-background--image {
|
|
@@ -48,7 +46,7 @@
|
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
.mx-background--reverse {
|
|
51
|
-
--scheme: var(--reverse-scheme, dark);
|
|
49
|
+
--scheme: var(--reverse-scheme, var(--colour-reverse-scheme, dark));
|
|
52
50
|
|
|
53
51
|
& .mx-background--image {
|
|
54
52
|
--bg-img-brightness: 0.45;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<div class="mx-spacing--m mx-rich-text mx-vertical-flow {{ modifier_class }}{% if modifier %} mx-background--{{ modifier }}{% endif %}">
|
|
2
|
-
<
|
|
2
|
+
<div class="mx-background--box mx-section--m mx-vertical-flow ">
|
|
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="mx-button mx-button--dark">Contact us</a> or
|
|
4
5
|
<a href="#" class="mx-link--external">Contact the Lorem Ipsum Squad</a>
|
|
5
|
-
</
|
|
6
|
-
<
|
|
6
|
+
</div>
|
|
7
|
+
<div class="mx-background--reset mx-background--box mx-section--m mx-vertical-flow ">
|
|
7
8
|
<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>
|
|
9
|
+
<a href="#" class="mx-button mx-button--dark">Contact us</a> or
|
|
8
10
|
<a href="#" class="mx-link--external">Contact the Lorem Ipsum Squad</a>
|
|
9
|
-
</
|
|
11
|
+
</div>
|
|
10
12
|
</div>
|
|
@@ -4,19 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
@layer design-system.atoms {
|
|
6
6
|
.mx-button--dark {
|
|
7
|
-
--line-colour: var(--colour-link);
|
|
8
|
-
--background: var(--colour-link);
|
|
9
|
-
--foreground: var(--colour-foreground-reverse);
|
|
7
|
+
--line-colour: var(--button-dark-bg, var(--colour-link));
|
|
8
|
+
--background: var(--button-dark-bg, var(--colour-link));
|
|
9
|
+
--foreground: var(--button-dark-fg, var(--colour-foreground-reverse));
|
|
10
10
|
|
|
11
11
|
&.mx-button--outline {
|
|
12
12
|
--background: transparent;
|
|
13
|
-
--foreground: var(--colour-
|
|
13
|
+
--foreground: var(--button-dark-bg, var(--colour-link));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.mx-button--light {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
--line-colour: var(--button-light-bg, transparent);
|
|
19
|
+
--background: var(--button-light-bg, transparent);
|
|
20
|
+
--foreground: var(--button-light-fg, var(--link-colour, var(--colour-link)));
|
|
21
|
+
|
|
20
22
|
text-decoration-line: underline;
|
|
21
23
|
|
|
22
24
|
&:hover {
|
|
@@ -24,6 +26,16 @@
|
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
|
|
29
|
+
.mx-button--accent {
|
|
30
|
+
--line-colour: var(--button-light-bg, var(--colour-accent));
|
|
31
|
+
--background: var(--button-light-bg, var(--colour-accent));
|
|
32
|
+
|
|
33
|
+
&.mx-button--outline {
|
|
34
|
+
--background: transparent;
|
|
35
|
+
--foreground: var(--button-light-bg, var(--colour-accent));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
27
39
|
.mx-button--destructive {
|
|
28
40
|
--line-colour: var(--colour-error);
|
|
29
41
|
--background: var(--colour-error);
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
font-weight: var(--font-weight-bold);
|
|
14
14
|
font-family: var(--font-family);
|
|
15
15
|
line-height: var(--line-height-ui);
|
|
16
|
-
border: var(--line-width, 2px) solid var(--line-colour,
|
|
16
|
+
border: var(--line-width, 2px) solid var(--line-colour, currentcolor);
|
|
17
17
|
border-radius: var(--radius, var(--border-radius-l));
|
|
18
18
|
padding-block: var(--vertical-padding, var(--spacing-xxs));
|
|
19
19
|
padding-inline: var(--horizontal-padding, var(--spacing-m));
|
|
@@ -9,14 +9,11 @@
|
|
|
9
9
|
@mixin icon building;
|
|
10
10
|
@mixin icon calendar;
|
|
11
11
|
@mixin icon clock;
|
|
12
|
-
@mixin icon email;
|
|
13
|
-
@mixin icon file;
|
|
14
12
|
@mixin icon globe;
|
|
15
13
|
@mixin icon heart-selected;
|
|
16
14
|
@mixin icon heart-unselected;
|
|
17
15
|
@mixin icon image;
|
|
18
16
|
@mixin icon home;
|
|
19
|
-
@mixin icon link;
|
|
20
17
|
@mixin icon lock;
|
|
21
18
|
@mixin icon login;
|
|
22
19
|
@mixin icon media-play;
|
|
@@ -29,13 +26,8 @@
|
|
|
29
26
|
@mixin icon more;
|
|
30
27
|
@mixin icon notification;
|
|
31
28
|
@mixin icon pencil;
|
|
32
|
-
@mixin icon phone;
|
|
33
|
-
@mixin icon pin;
|
|
34
|
-
@mixin icon print;
|
|
35
|
-
@mixin icon question;
|
|
36
29
|
@mixin icon restart;
|
|
37
30
|
@mixin icon settings;
|
|
38
|
-
@mixin icon share;
|
|
39
31
|
@mixin icon star-selected;
|
|
40
32
|
@mixin icon star-unselected;
|
|
41
33
|
@mixin icon tick;
|
package/src/Atom/Icon/_icon.css
CHANGED
|
@@ -64,6 +64,14 @@
|
|
|
64
64
|
@mixin icon twitter;
|
|
65
65
|
@mixin icon warning;
|
|
66
66
|
@mixin icon youtube;
|
|
67
|
+
@mixin icon email;
|
|
68
|
+
@mixin icon file;
|
|
69
|
+
@mixin icon link;
|
|
70
|
+
@mixin icon phone;
|
|
71
|
+
@mixin icon pin;
|
|
72
|
+
@mixin icon print;
|
|
73
|
+
@mixin icon question;
|
|
74
|
+
@mixin icon share;
|
|
67
75
|
|
|
68
76
|
.mx-icon--status::before {
|
|
69
77
|
mask-image: svg-load("./images/info.svg");
|
package/src/Atom/Link/_links.css
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/html-vite"
|
|
2
|
-
import { Page } from "../../../.storybook/decorators"
|
|
3
2
|
import Component from "./hero-search.twig"
|
|
4
3
|
import "../HeroBanner/hero-banner.css"
|
|
5
4
|
import {
|
|
@@ -52,7 +51,6 @@ const meta: Meta<HeroSearchType> = {
|
|
|
52
51
|
},
|
|
53
52
|
},
|
|
54
53
|
},
|
|
55
|
-
decorators: [Page],
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
export default meta
|