@maelstrom-futurism/core 0.7.4-alpha.6 → 0.7.4-alpha.8
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/@babel-l0sNRNKZ.mjs +2 -0
- package/dist/@babel-l0sNRNKZ.mjs.map +1 -0
- package/dist/@emotion-KupopH08.mjs +637 -0
- package/dist/@emotion-KupopH08.mjs.map +1 -0
- package/dist/_exports.module.scss +8 -0
- package/dist/_variables.module.scss +28 -0
- package/dist/components/Box.d.ts +8 -0
- package/dist/components/Box.d.ts.map +1 -0
- package/dist/components/ContentBox.d.ts +9 -0
- package/dist/components/ContentBox.d.ts.map +1 -0
- package/dist/enums.d.ts +16 -0
- package/dist/enums.d.ts.map +1 -0
- package/dist/fonts/JetBrainsMono-Light.ttf +0 -0
- package/dist/fonts/JetBrainsMono-Medium.ttf +0 -0
- package/dist/fonts/OFL.txt +95 -0
- package/dist/fonts/Poppins-Light.ttf +0 -0
- package/dist/fonts/Poppins-Medium.ttf +0 -0
- package/dist/fonts/Silkscreen-Bold.ttf +0 -0
- package/dist/fonts/Silkscreen-Regular.ttf +0 -0
- package/dist/hoist-non-react-statics-DMhtiRqe.mjs +223 -0
- package/dist/hoist-non-react-statics-DMhtiRqe.mjs.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +255 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces.d.ts +22 -0
- package/dist/interfaces.d.ts.map +1 -0
- package/dist/normalize.css +349 -0
- package/dist/styleSystem.d.ts +17 -0
- package/dist/styleSystem.d.ts.map +1 -0
- package/dist/stylis-CdCMw5Aa.mjs +335 -0
- package/dist/stylis-CdCMw5Aa.mjs.map +1 -0
- package/dist/themes/ThemeProvider.d.ts +10 -0
- package/dist/themes/ThemeProvider.d.ts.map +1 -0
- package/dist/themes/createTheme.d.ts +4 -0
- package/dist/themes/createTheme.d.ts.map +1 -0
- package/dist/themes/index.d.ts +4 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/theme.d.ts +40 -0
- package/dist/themes/theme.d.ts.map +1 -0
- package/dist/utils/debounce.d.ts +2 -0
- package/dist/utils/debounce.d.ts.map +1 -0
- package/dist/utils/debounce.test.d.ts +2 -0
- package/dist/utils/debounce.test.d.ts.map +1 -0
- package/dist/utils/typeof.d.ts +3 -0
- package/dist/utils/typeof.d.ts.map +1 -0
- package/dist/utils/typeof.test.d.ts +2 -0
- package/dist/utils/typeof.test.d.ts.map +1 -0
- package/dist/utils/words.d.ts +3 -0
- package/dist/utils/words.d.ts.map +1 -0
- package/dist/utils/words.test.d.ts +2 -0
- package/dist/utils/words.test.d.ts.map +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CardinalDirection, Intensity } from './enums';
|
|
2
|
+
export interface ColorSet {
|
|
3
|
+
background: string;
|
|
4
|
+
borderMuted: string;
|
|
5
|
+
border: string;
|
|
6
|
+
content: string;
|
|
7
|
+
textColor: string;
|
|
8
|
+
linkColor: string;
|
|
9
|
+
primary: string;
|
|
10
|
+
secondary: string;
|
|
11
|
+
alert: string;
|
|
12
|
+
warning: string;
|
|
13
|
+
success: string;
|
|
14
|
+
info: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ThemeInterface {
|
|
17
|
+
colorSet: ColorSet;
|
|
18
|
+
roundednessIntensity?: Intensity;
|
|
19
|
+
shadowIntensity?: Intensity;
|
|
20
|
+
shadowDirection?: CardinalDirection;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../lib/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,WAAW,QAAQ;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,eAAe,CAAC,EAAE,iBAAiB,CAAC;CACvC"}
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
|
+
|
|
3
|
+
/* Document
|
|
4
|
+
========================================================================== */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 1. Correct the line height in all browsers.
|
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
html {
|
|
12
|
+
line-height: 1.15; /* 1 */
|
|
13
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Sections
|
|
17
|
+
========================================================================== */
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Remove the margin in all browsers.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Render the `main` element consistently in IE.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
main {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
37
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
h1 {
|
|
41
|
+
font-size: 2em;
|
|
42
|
+
margin: 0.67em 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Grouping content
|
|
46
|
+
========================================================================== */
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 1. Add the correct box sizing in Firefox.
|
|
50
|
+
* 2. Show the overflow in Edge and IE.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
hr {
|
|
54
|
+
box-sizing: content-box; /* 1 */
|
|
55
|
+
height: 0; /* 1 */
|
|
56
|
+
overflow: visible; /* 2 */
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
61
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
pre {
|
|
65
|
+
font-family: monospace, monospace; /* 1 */
|
|
66
|
+
font-size: 1em; /* 2 */
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Text-level semantics
|
|
70
|
+
========================================================================== */
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Remove the gray background on active links in IE 10.
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
a {
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
82
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
abbr[title] {
|
|
86
|
+
border-bottom: none; /* 1 */
|
|
87
|
+
text-decoration: underline; /* 2 */
|
|
88
|
+
text-decoration: underline dotted; /* 2 */
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
b,
|
|
96
|
+
strong {
|
|
97
|
+
font-weight: bolder;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
102
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
code,
|
|
106
|
+
kbd,
|
|
107
|
+
samp {
|
|
108
|
+
font-family: monospace, monospace; /* 1 */
|
|
109
|
+
font-size: 1em; /* 2 */
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Add the correct font size in all browsers.
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
small {
|
|
117
|
+
font-size: 80%;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
122
|
+
* all browsers.
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
sub,
|
|
126
|
+
sup {
|
|
127
|
+
font-size: 75%;
|
|
128
|
+
line-height: 0;
|
|
129
|
+
position: relative;
|
|
130
|
+
vertical-align: baseline;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
sub {
|
|
134
|
+
bottom: -0.25em;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
sup {
|
|
138
|
+
top: -0.5em;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Embedded content
|
|
142
|
+
========================================================================== */
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Remove the border on images inside links in IE 10.
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
img {
|
|
149
|
+
border-style: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Forms
|
|
153
|
+
========================================================================== */
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* 1. Change the font styles in all browsers.
|
|
157
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
button,
|
|
161
|
+
input,
|
|
162
|
+
optgroup,
|
|
163
|
+
select,
|
|
164
|
+
textarea {
|
|
165
|
+
font-family: inherit; /* 1 */
|
|
166
|
+
font-size: 100%; /* 1 */
|
|
167
|
+
line-height: 1.15; /* 1 */
|
|
168
|
+
margin: 0; /* 2 */
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Show the overflow in IE.
|
|
173
|
+
* 1. Show the overflow in Edge.
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
button,
|
|
177
|
+
input { /* 1 */
|
|
178
|
+
overflow: visible;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
183
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
button,
|
|
187
|
+
select { /* 1 */
|
|
188
|
+
text-transform: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
button,
|
|
196
|
+
[type="button"],
|
|
197
|
+
[type="reset"],
|
|
198
|
+
[type="submit"] {
|
|
199
|
+
-webkit-appearance: button;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Remove the inner border and padding in Firefox.
|
|
204
|
+
*/
|
|
205
|
+
|
|
206
|
+
button::-moz-focus-inner,
|
|
207
|
+
[type="button"]::-moz-focus-inner,
|
|
208
|
+
[type="reset"]::-moz-focus-inner,
|
|
209
|
+
[type="submit"]::-moz-focus-inner {
|
|
210
|
+
border-style: none;
|
|
211
|
+
padding: 0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Restore the focus styles unset by the previous rule.
|
|
216
|
+
*/
|
|
217
|
+
|
|
218
|
+
button:-moz-focusring,
|
|
219
|
+
[type="button"]:-moz-focusring,
|
|
220
|
+
[type="reset"]:-moz-focusring,
|
|
221
|
+
[type="submit"]:-moz-focusring {
|
|
222
|
+
outline: 1px dotted ButtonText;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Correct the padding in Firefox.
|
|
227
|
+
*/
|
|
228
|
+
|
|
229
|
+
fieldset {
|
|
230
|
+
padding: 0.35em 0.75em 0.625em;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
235
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
236
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
237
|
+
* `fieldset` elements in all browsers.
|
|
238
|
+
*/
|
|
239
|
+
|
|
240
|
+
legend {
|
|
241
|
+
box-sizing: border-box; /* 1 */
|
|
242
|
+
color: inherit; /* 2 */
|
|
243
|
+
display: table; /* 1 */
|
|
244
|
+
max-width: 100%; /* 1 */
|
|
245
|
+
padding: 0; /* 3 */
|
|
246
|
+
white-space: normal; /* 1 */
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
251
|
+
*/
|
|
252
|
+
|
|
253
|
+
progress {
|
|
254
|
+
vertical-align: baseline;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
259
|
+
*/
|
|
260
|
+
|
|
261
|
+
textarea {
|
|
262
|
+
overflow: auto;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* 1. Add the correct box sizing in IE 10.
|
|
267
|
+
* 2. Remove the padding in IE 10.
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
[type="checkbox"],
|
|
271
|
+
[type="radio"] {
|
|
272
|
+
box-sizing: border-box; /* 1 */
|
|
273
|
+
padding: 0; /* 2 */
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
281
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
282
|
+
height: auto;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
287
|
+
* 2. Correct the outline style in Safari.
|
|
288
|
+
*/
|
|
289
|
+
|
|
290
|
+
[type="search"] {
|
|
291
|
+
-webkit-appearance: textfield; /* 1 */
|
|
292
|
+
outline-offset: -2px; /* 2 */
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
297
|
+
*/
|
|
298
|
+
|
|
299
|
+
[type="search"]::-webkit-search-decoration {
|
|
300
|
+
-webkit-appearance: none;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
305
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
306
|
+
*/
|
|
307
|
+
|
|
308
|
+
::-webkit-file-upload-button {
|
|
309
|
+
-webkit-appearance: button; /* 1 */
|
|
310
|
+
font: inherit; /* 2 */
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* Interactive
|
|
314
|
+
========================================================================== */
|
|
315
|
+
|
|
316
|
+
/*
|
|
317
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
318
|
+
*/
|
|
319
|
+
|
|
320
|
+
details {
|
|
321
|
+
display: block;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/*
|
|
325
|
+
* Add the correct display in all browsers.
|
|
326
|
+
*/
|
|
327
|
+
|
|
328
|
+
summary {
|
|
329
|
+
display: list-item;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/* Misc
|
|
333
|
+
========================================================================== */
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Add the correct display in IE 10+.
|
|
337
|
+
*/
|
|
338
|
+
|
|
339
|
+
template {
|
|
340
|
+
display: none;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Add the correct display in IE 10.
|
|
345
|
+
*/
|
|
346
|
+
|
|
347
|
+
[hidden] {
|
|
348
|
+
display: none;
|
|
349
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SerializedStyles } from '@emotion/react';
|
|
2
|
+
export interface BaseStyles {
|
|
3
|
+
border?: string;
|
|
4
|
+
css?: SerializedStyles | SerializedStyles[];
|
|
5
|
+
bg?: string;
|
|
6
|
+
background?: string;
|
|
7
|
+
p?: string;
|
|
8
|
+
padding?: string;
|
|
9
|
+
m?: string;
|
|
10
|
+
margin?: string;
|
|
11
|
+
w?: string;
|
|
12
|
+
width?: string;
|
|
13
|
+
h?: string;
|
|
14
|
+
height?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const constructStyles: (styles: BaseStyles) => any;
|
|
17
|
+
//# sourceMappingURL=styleSystem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleSystem.d.ts","sourceRoot":"","sources":["../lib/styleSystem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAkClD,MAAM,WAAW,UAAU;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IAC5C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAUD,eAAO,MAAM,eAAe,GAAI,QAAQ,UAAU,QAYjD,CAAC"}
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
var dr = "-ms-", kr = "-moz-", lr = "-webkit-", Q = "comm", V = "rule", X = "decl", y = "@import", rr = "@keyframes", ar = "@layer", nr = Math.abs, U = String.fromCharCode, er = Object.assign;
|
|
2
|
+
function wr(r, a) {
|
|
3
|
+
return l(r, 0) ^ 45 ? (((a << 2 ^ l(r, 0)) << 2 ^ l(r, 1)) << 2 ^ l(r, 2)) << 2 ^ l(r, 3) : 0;
|
|
4
|
+
}
|
|
5
|
+
function _(r) {
|
|
6
|
+
return r.trim();
|
|
7
|
+
}
|
|
8
|
+
function gr(r, a) {
|
|
9
|
+
return (r = a.exec(r)) ? r[0] : r;
|
|
10
|
+
}
|
|
11
|
+
function L(r, a, e) {
|
|
12
|
+
return r.replace(a, e);
|
|
13
|
+
}
|
|
14
|
+
function cr(r, a) {
|
|
15
|
+
return r.indexOf(a);
|
|
16
|
+
}
|
|
17
|
+
function l(r, a) {
|
|
18
|
+
return r.charCodeAt(a) | 0;
|
|
19
|
+
}
|
|
20
|
+
function j(r, a, e) {
|
|
21
|
+
return r.slice(a, e);
|
|
22
|
+
}
|
|
23
|
+
function E(r) {
|
|
24
|
+
return r.length;
|
|
25
|
+
}
|
|
26
|
+
function Z(r) {
|
|
27
|
+
return r.length;
|
|
28
|
+
}
|
|
29
|
+
function K(r, a) {
|
|
30
|
+
return a.push(r), r;
|
|
31
|
+
}
|
|
32
|
+
function pr(r, a) {
|
|
33
|
+
return r.map(a).join("");
|
|
34
|
+
}
|
|
35
|
+
var W = 1, T = 1, $ = 0, h = 0, s = 0, x = "";
|
|
36
|
+
function Y(r, a, e, c, t, d, w) {
|
|
37
|
+
return { value: r, root: a, parent: e, type: c, props: t, children: d, line: W, column: T, length: w, return: "" };
|
|
38
|
+
}
|
|
39
|
+
function mr(r, a) {
|
|
40
|
+
return er(Y("", null, null, "", null, null, 0), r, { length: -r.length }, a);
|
|
41
|
+
}
|
|
42
|
+
function sr() {
|
|
43
|
+
return s;
|
|
44
|
+
}
|
|
45
|
+
function tr() {
|
|
46
|
+
return s = h > 0 ? l(x, --h) : 0, T--, s === 10 && (T = 1, W--), s;
|
|
47
|
+
}
|
|
48
|
+
function b() {
|
|
49
|
+
return s = h < $ ? l(x, h++) : 0, T++, s === 10 && (T = 1, W++), s;
|
|
50
|
+
}
|
|
51
|
+
function R() {
|
|
52
|
+
return l(x, h);
|
|
53
|
+
}
|
|
54
|
+
function D() {
|
|
55
|
+
return h;
|
|
56
|
+
}
|
|
57
|
+
function q(r, a) {
|
|
58
|
+
return j(x, r, a);
|
|
59
|
+
}
|
|
60
|
+
function F(r) {
|
|
61
|
+
switch (r) {
|
|
62
|
+
// \0 \t \n \r \s whitespace token
|
|
63
|
+
case 0:
|
|
64
|
+
case 9:
|
|
65
|
+
case 10:
|
|
66
|
+
case 13:
|
|
67
|
+
case 32:
|
|
68
|
+
return 5;
|
|
69
|
+
// ! + , / > @ ~ isolate token
|
|
70
|
+
case 33:
|
|
71
|
+
case 43:
|
|
72
|
+
case 44:
|
|
73
|
+
case 47:
|
|
74
|
+
case 62:
|
|
75
|
+
case 64:
|
|
76
|
+
case 126:
|
|
77
|
+
// ; { } breakpoint token
|
|
78
|
+
case 59:
|
|
79
|
+
case 123:
|
|
80
|
+
case 125:
|
|
81
|
+
return 4;
|
|
82
|
+
// : accompanied token
|
|
83
|
+
case 58:
|
|
84
|
+
return 3;
|
|
85
|
+
// " ' ( [ opening delimit token
|
|
86
|
+
case 34:
|
|
87
|
+
case 39:
|
|
88
|
+
case 40:
|
|
89
|
+
case 91:
|
|
90
|
+
return 2;
|
|
91
|
+
// ) ] closing delimit token
|
|
92
|
+
case 41:
|
|
93
|
+
case 93:
|
|
94
|
+
return 1;
|
|
95
|
+
}
|
|
96
|
+
return 0;
|
|
97
|
+
}
|
|
98
|
+
function ir(r) {
|
|
99
|
+
return W = T = 1, $ = E(x = r), h = 0, [];
|
|
100
|
+
}
|
|
101
|
+
function ur(r) {
|
|
102
|
+
return x = "", r;
|
|
103
|
+
}
|
|
104
|
+
function B(r) {
|
|
105
|
+
return _(q(h - 1, P(r === 91 ? r + 2 : r === 40 ? r + 1 : r)));
|
|
106
|
+
}
|
|
107
|
+
function fr(r) {
|
|
108
|
+
for (; (s = R()) && s < 33; )
|
|
109
|
+
b();
|
|
110
|
+
return F(r) > 2 || F(s) > 3 ? "" : " ";
|
|
111
|
+
}
|
|
112
|
+
function or(r, a) {
|
|
113
|
+
for (; --a && b() && !(s < 48 || s > 102 || s > 57 && s < 65 || s > 70 && s < 97); )
|
|
114
|
+
;
|
|
115
|
+
return q(r, D() + (a < 6 && R() == 32 && b() == 32));
|
|
116
|
+
}
|
|
117
|
+
function P(r) {
|
|
118
|
+
for (; b(); )
|
|
119
|
+
switch (s) {
|
|
120
|
+
// ] ) " '
|
|
121
|
+
case r:
|
|
122
|
+
return h;
|
|
123
|
+
// " '
|
|
124
|
+
case 34:
|
|
125
|
+
case 39:
|
|
126
|
+
r !== 34 && r !== 39 && P(s);
|
|
127
|
+
break;
|
|
128
|
+
// (
|
|
129
|
+
case 40:
|
|
130
|
+
r === 41 && P(r);
|
|
131
|
+
break;
|
|
132
|
+
// \
|
|
133
|
+
case 92:
|
|
134
|
+
b();
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
return h;
|
|
138
|
+
}
|
|
139
|
+
function hr(r, a) {
|
|
140
|
+
for (; b() && r + s !== 57; )
|
|
141
|
+
if (r + s === 84 && R() === 47)
|
|
142
|
+
break;
|
|
143
|
+
return "/*" + q(a, h - 1) + "*" + U(r === 47 ? r : b());
|
|
144
|
+
}
|
|
145
|
+
function vr(r) {
|
|
146
|
+
for (; !F(R()); )
|
|
147
|
+
b();
|
|
148
|
+
return q(r, h);
|
|
149
|
+
}
|
|
150
|
+
function Er(r) {
|
|
151
|
+
return ur(N("", null, null, null, [""], r = ir(r), 0, [0], r));
|
|
152
|
+
}
|
|
153
|
+
function N(r, a, e, c, t, d, w, f, S) {
|
|
154
|
+
for (var A = 0, p = 0, i = w, M = 0, C = 0, g = 0, v = 1, z = 1, o = 1, u = 0, m = "", I = t, O = d, k = c, n = m; z; )
|
|
155
|
+
switch (g = u, u = b()) {
|
|
156
|
+
// (
|
|
157
|
+
case 40:
|
|
158
|
+
if (g != 108 && l(n, i - 1) == 58) {
|
|
159
|
+
cr(n += L(B(u), "&", "&\f"), "&\f") != -1 && (o = -1);
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
// " ' [
|
|
163
|
+
case 34:
|
|
164
|
+
case 39:
|
|
165
|
+
case 91:
|
|
166
|
+
n += B(u);
|
|
167
|
+
break;
|
|
168
|
+
// \t \n \r \s
|
|
169
|
+
case 9:
|
|
170
|
+
case 10:
|
|
171
|
+
case 13:
|
|
172
|
+
case 32:
|
|
173
|
+
n += fr(g);
|
|
174
|
+
break;
|
|
175
|
+
// \
|
|
176
|
+
case 92:
|
|
177
|
+
n += or(D() - 1, 7);
|
|
178
|
+
continue;
|
|
179
|
+
// /
|
|
180
|
+
case 47:
|
|
181
|
+
switch (R()) {
|
|
182
|
+
case 42:
|
|
183
|
+
case 47:
|
|
184
|
+
K(br(hr(b(), D()), a, e), S);
|
|
185
|
+
break;
|
|
186
|
+
default:
|
|
187
|
+
n += "/";
|
|
188
|
+
}
|
|
189
|
+
break;
|
|
190
|
+
// {
|
|
191
|
+
case 123 * v:
|
|
192
|
+
f[A++] = E(n) * o;
|
|
193
|
+
// } ; \0
|
|
194
|
+
case 125 * v:
|
|
195
|
+
case 59:
|
|
196
|
+
case 0:
|
|
197
|
+
switch (u) {
|
|
198
|
+
// \0 }
|
|
199
|
+
case 0:
|
|
200
|
+
case 125:
|
|
201
|
+
z = 0;
|
|
202
|
+
// ;
|
|
203
|
+
case 59 + p:
|
|
204
|
+
o == -1 && (n = L(n, /\f/g, "")), C > 0 && E(n) - i && K(C > 32 ? H(n + ";", c, e, i - 1) : H(L(n, " ", "") + ";", c, e, i - 2), S);
|
|
205
|
+
break;
|
|
206
|
+
// @ ;
|
|
207
|
+
case 59:
|
|
208
|
+
n += ";";
|
|
209
|
+
// { rule/at-rule
|
|
210
|
+
default:
|
|
211
|
+
if (K(k = G(n, a, e, A, p, t, f, m, I = [], O = [], i), d), u === 123)
|
|
212
|
+
if (p === 0)
|
|
213
|
+
N(n, a, k, k, I, d, i, f, O);
|
|
214
|
+
else
|
|
215
|
+
switch (M === 99 && l(n, 3) === 110 ? 100 : M) {
|
|
216
|
+
// d l m s
|
|
217
|
+
case 100:
|
|
218
|
+
case 108:
|
|
219
|
+
case 109:
|
|
220
|
+
case 115:
|
|
221
|
+
N(r, k, k, c && K(G(r, k, k, 0, 0, t, f, m, t, I = [], i), O), t, O, i, f, c ? I : O);
|
|
222
|
+
break;
|
|
223
|
+
default:
|
|
224
|
+
N(n, k, k, k, [""], O, 0, f, O);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
A = p = C = 0, v = o = 1, m = n = "", i = w;
|
|
228
|
+
break;
|
|
229
|
+
// :
|
|
230
|
+
case 58:
|
|
231
|
+
i = 1 + E(n), C = g;
|
|
232
|
+
default:
|
|
233
|
+
if (v < 1) {
|
|
234
|
+
if (u == 123)
|
|
235
|
+
--v;
|
|
236
|
+
else if (u == 125 && v++ == 0 && tr() == 125)
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
switch (n += U(u), u * v) {
|
|
240
|
+
// &
|
|
241
|
+
case 38:
|
|
242
|
+
o = p > 0 ? 1 : (n += "\f", -1);
|
|
243
|
+
break;
|
|
244
|
+
// ,
|
|
245
|
+
case 44:
|
|
246
|
+
f[A++] = (E(n) - 1) * o, o = 1;
|
|
247
|
+
break;
|
|
248
|
+
// @
|
|
249
|
+
case 64:
|
|
250
|
+
R() === 45 && (n += B(b())), M = R(), p = i = E(m = n += vr(D())), u++;
|
|
251
|
+
break;
|
|
252
|
+
// -
|
|
253
|
+
case 45:
|
|
254
|
+
g === 45 && E(n) == 2 && (v = 0);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return d;
|
|
258
|
+
}
|
|
259
|
+
function G(r, a, e, c, t, d, w, f, S, A, p) {
|
|
260
|
+
for (var i = t - 1, M = t === 0 ? d : [""], C = Z(M), g = 0, v = 0, z = 0; g < c; ++g)
|
|
261
|
+
for (var o = 0, u = j(r, i + 1, i = nr(v = w[g])), m = r; o < C; ++o)
|
|
262
|
+
(m = _(v > 0 ? M[o] + " " + u : L(u, /&\f/g, M[o]))) && (S[z++] = m);
|
|
263
|
+
return Y(r, a, e, t === 0 ? V : f, S, A, p);
|
|
264
|
+
}
|
|
265
|
+
function br(r, a, e) {
|
|
266
|
+
return Y(r, a, e, Q, U(sr()), j(r, 2, -2), 0);
|
|
267
|
+
}
|
|
268
|
+
function H(r, a, e, c) {
|
|
269
|
+
return Y(r, a, e, X, j(r, 0, c), j(r, c + 1, -1), c);
|
|
270
|
+
}
|
|
271
|
+
function J(r, a) {
|
|
272
|
+
for (var e = "", c = Z(r), t = 0; t < c; t++)
|
|
273
|
+
e += a(r[t], t, r, a) || "";
|
|
274
|
+
return e;
|
|
275
|
+
}
|
|
276
|
+
function Mr(r, a, e, c) {
|
|
277
|
+
switch (r.type) {
|
|
278
|
+
case ar:
|
|
279
|
+
if (r.children.length) break;
|
|
280
|
+
case y:
|
|
281
|
+
case X:
|
|
282
|
+
return r.return = r.return || r.value;
|
|
283
|
+
case Q:
|
|
284
|
+
return "";
|
|
285
|
+
case rr:
|
|
286
|
+
return r.return = r.value + "{" + J(r.children, c) + "}";
|
|
287
|
+
case V:
|
|
288
|
+
r.value = r.props.join(",");
|
|
289
|
+
}
|
|
290
|
+
return E(e = J(r.children, c)) ? r.return = r.value + "{" + e + "}" : "";
|
|
291
|
+
}
|
|
292
|
+
function Or(r) {
|
|
293
|
+
var a = Z(r);
|
|
294
|
+
return function(e, c, t, d) {
|
|
295
|
+
for (var w = "", f = 0; f < a; f++)
|
|
296
|
+
w += r[f](e, c, t, d) || "";
|
|
297
|
+
return w;
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
function Rr(r) {
|
|
301
|
+
return function(a) {
|
|
302
|
+
a.root || (a = a.return) && r(a);
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
export {
|
|
306
|
+
X as D,
|
|
307
|
+
rr as K,
|
|
308
|
+
dr as M,
|
|
309
|
+
V as R,
|
|
310
|
+
lr as W,
|
|
311
|
+
Mr as a,
|
|
312
|
+
pr as b,
|
|
313
|
+
Er as c,
|
|
314
|
+
mr as d,
|
|
315
|
+
L as e,
|
|
316
|
+
ur as f,
|
|
317
|
+
ir as g,
|
|
318
|
+
wr as h,
|
|
319
|
+
l as i,
|
|
320
|
+
E as j,
|
|
321
|
+
cr as k,
|
|
322
|
+
kr as l,
|
|
323
|
+
Or as m,
|
|
324
|
+
gr as n,
|
|
325
|
+
b as o,
|
|
326
|
+
U as p,
|
|
327
|
+
R as q,
|
|
328
|
+
Rr as r,
|
|
329
|
+
J as s,
|
|
330
|
+
F as t,
|
|
331
|
+
B as u,
|
|
332
|
+
q as v,
|
|
333
|
+
h as w
|
|
334
|
+
};
|
|
335
|
+
//# sourceMappingURL=stylis-CdCMw5Aa.mjs.map
|