@twintag/twintag-form 0.4.1 → 0.5.0
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/.turbo/turbo-build.log +10 -54
- package/CHANGELOG.md +23 -0
- package/README.md +9 -5
- package/dist/components/Category/__styles.d.ts +19 -0
- package/dist/{lib/components → components}/Category/index.d.ts +2 -3
- package/dist/components/Form/index.d.ts +12 -0
- package/dist/{lib/types/index.d.ts → components/Input/__props.d.ts} +0 -6
- package/dist/components/Input/__styles.d.ts +245 -0
- package/dist/{lib/components → components}/Input/checkbox.d.ts +2 -3
- package/dist/{lib/components → components}/Input/file.d.ts +2 -3
- package/dist/{lib/components → components}/Input/index.d.ts +0 -1
- package/dist/{lib/components → components}/Input/simple.d.ts +2 -3
- package/dist/{lib/components → components}/Input/submit.d.ts +2 -3
- package/dist/{lib/components → components}/Input/textarea.d.ts +2 -3
- package/dist/{lib/components → components}/Input/toggle.d.ts +2 -3
- package/dist/{lib/components → components}/Label/index.d.ts +0 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/index.d.ts +14 -0
- package/dist/react.d.ts +1 -0
- package/dist/styles.d.ts +262 -0
- package/dist/twintag-form.react.js +8658 -0
- package/dist/twintag-form.webcomponent.js +4503 -0
- package/dist/webcomponent.d.ts +1 -0
- package/lib/__stories__/Form.stories.tsx +102 -10
- package/lib/components/Category/__styles.ts +12 -0
- package/lib/components/Category/index.tsx +5 -8
- package/lib/components/Form/index.tsx +33 -34
- package/lib/{types/index.ts → components/Input/__props.ts} +0 -6
- package/lib/components/Input/__styles.ts +132 -0
- package/lib/components/Input/checkbox.tsx +8 -11
- package/lib/components/Input/file.tsx +9 -12
- package/lib/components/Input/simple.tsx +8 -10
- package/lib/components/Input/submit.tsx +3 -9
- package/lib/components/Input/textarea.tsx +8 -10
- package/lib/components/Input/toggle.tsx +10 -11
- package/lib/components/Label/index.tsx +2 -1
- package/lib/components/index.tsx +4 -6
- package/lib/index.tsx +35 -157
- package/lib/styles.ts +2 -1
- package/lib/webcomponent.ts +1 -1
- package/package.json +11 -14
- package/tsconfig.json +3 -2
- package/vite.config.ts +47 -0
- package/dist/index.es.js +0 -27362
- package/dist/index.umd.js +0 -196
- package/dist/lib/__stories__/Form.stories.d.ts +0 -7
- package/dist/lib/__stories__/Form.stories.d.ts.map +0 -1
- package/dist/lib/components/Category/index.d.ts.map +0 -1
- package/dist/lib/components/Form/index.d.ts +0 -10
- package/dist/lib/components/Form/index.d.ts.map +0 -1
- package/dist/lib/components/Form/register.d.ts +0 -12
- package/dist/lib/components/Form/register.d.ts.map +0 -1
- package/dist/lib/components/Input/checkbox.d.ts.map +0 -1
- package/dist/lib/components/Input/file.d.ts.map +0 -1
- package/dist/lib/components/Input/index.d.ts.map +0 -1
- package/dist/lib/components/Input/simple.d.ts.map +0 -1
- package/dist/lib/components/Input/submit.d.ts.map +0 -1
- package/dist/lib/components/Input/textarea.d.ts.map +0 -1
- package/dist/lib/components/Input/toggle.d.ts.map +0 -1
- package/dist/lib/components/Label/index.d.ts.map +0 -1
- package/dist/lib/components/index.d.ts +0 -6
- package/dist/lib/components/index.d.ts.map +0 -1
- package/dist/lib/index.d.ts +0 -20
- package/dist/lib/index.d.ts.map +0 -1
- package/dist/lib/styles.d.ts +0 -131
- package/dist/lib/styles.d.ts.map +0 -1
- package/dist/lib/types/index.d.ts.map +0 -1
- package/dist/lib/webcomponent.d.ts +0 -2
- package/dist/lib/webcomponent.d.ts.map +0 -1
- package/dist/twind.config.d.ts +0 -5
- package/dist/twind.config.d.ts.map +0 -1
- package/dist/webcomponent.es.js +0 -31726
- package/dist/webcomponent.umd.js +0 -196
- package/lib/components/Form/register.tsx +0 -69
- package/scripts/build.js +0 -60
|
@@ -0,0 +1,4503 @@
|
|
|
1
|
+
import ot from "react";
|
|
2
|
+
import yt from "react-dom";
|
|
3
|
+
import { TwintagForm as xt } from "./twintag-form.react.js";
|
|
4
|
+
function je(e) {
|
|
5
|
+
return [
|
|
6
|
+
...e.v,
|
|
7
|
+
(e.i ? "!" : "") + e.n
|
|
8
|
+
].join(":");
|
|
9
|
+
}
|
|
10
|
+
function vt(e, t = ",") {
|
|
11
|
+
return e.map(je).join(t);
|
|
12
|
+
}
|
|
13
|
+
let nt = typeof CSS < "u" && CSS.escape || // Simplified: escaping only special characters
|
|
14
|
+
// Needed for NodeJS and Edge <79 (https://caniuse.com/mdn-api_css_escape)
|
|
15
|
+
((e) => e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g, "\\$&").replace(/^\d/, "\\3$& "));
|
|
16
|
+
function pe(e) {
|
|
17
|
+
for (var t = 9, r = e.length; r--; )
|
|
18
|
+
t = Math.imul(t ^ e.charCodeAt(r), 1597334677);
|
|
19
|
+
return "#" + ((t ^ t >>> 9) >>> 0).toString(36);
|
|
20
|
+
}
|
|
21
|
+
function De(e, t = "@media ") {
|
|
22
|
+
return t + S(e).map((r) => (typeof r == "string" && (r = {
|
|
23
|
+
min: r
|
|
24
|
+
}), r.raw || Object.keys(r).map((o) => `(${o}-width:${r[o]})`).join(" and "))).join(",");
|
|
25
|
+
}
|
|
26
|
+
function S(e = []) {
|
|
27
|
+
return Array.isArray(e) ? e : e == null ? [] : [
|
|
28
|
+
e
|
|
29
|
+
];
|
|
30
|
+
}
|
|
31
|
+
function qe(e) {
|
|
32
|
+
return e;
|
|
33
|
+
}
|
|
34
|
+
function Le() {
|
|
35
|
+
}
|
|
36
|
+
let T = {
|
|
37
|
+
/**
|
|
38
|
+
* 1. `default` (public)
|
|
39
|
+
*/
|
|
40
|
+
d: (
|
|
41
|
+
/* efaults */
|
|
42
|
+
0
|
|
43
|
+
),
|
|
44
|
+
/* Shifts.layer */
|
|
45
|
+
/**
|
|
46
|
+
* 2. `base` (public) — for things like reset rules or default styles applied to plain HTML elements.
|
|
47
|
+
*/
|
|
48
|
+
b: (
|
|
49
|
+
/* ase */
|
|
50
|
+
134217728
|
|
51
|
+
),
|
|
52
|
+
/* Shifts.layer */
|
|
53
|
+
/**
|
|
54
|
+
* 3. `components` (public, used by `style()`) — is for class-based styles that you want to be able to override with utilities.
|
|
55
|
+
*/
|
|
56
|
+
c: (
|
|
57
|
+
/* omponents */
|
|
58
|
+
268435456
|
|
59
|
+
),
|
|
60
|
+
/* Shifts.layer */
|
|
61
|
+
// reserved for style():
|
|
62
|
+
// - props: 0b011
|
|
63
|
+
// - when: 0b100
|
|
64
|
+
/**
|
|
65
|
+
* 6. `aliases` (public, used by `apply()`) — `~(...)`
|
|
66
|
+
*/
|
|
67
|
+
a: (
|
|
68
|
+
/* liases */
|
|
69
|
+
671088640
|
|
70
|
+
),
|
|
71
|
+
/* Shifts.layer */
|
|
72
|
+
/**
|
|
73
|
+
* 6. `utilities` (public) — for small, single-purpose classes
|
|
74
|
+
*/
|
|
75
|
+
u: (
|
|
76
|
+
/* tilities */
|
|
77
|
+
805306368
|
|
78
|
+
),
|
|
79
|
+
/* Shifts.layer */
|
|
80
|
+
/**
|
|
81
|
+
* 7. `overrides` (public, used by `css()`)
|
|
82
|
+
*/
|
|
83
|
+
o: (
|
|
84
|
+
/* verrides */
|
|
85
|
+
939524096
|
|
86
|
+
)
|
|
87
|
+
};
|
|
88
|
+
function it(e) {
|
|
89
|
+
var t;
|
|
90
|
+
return ((t = e.match(/[-=:;]/g)) == null ? void 0 : t.length) || 0;
|
|
91
|
+
}
|
|
92
|
+
function ze(e) {
|
|
93
|
+
return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e) ? Math.max(0, 29.63 * (+RegExp.$1 / (RegExp.$2 ? 15 : 1)) ** 0.137 - 43) : 0, 15) << 22 | /* Shifts.responsive */
|
|
94
|
+
Math.min(it(e), 15) << 18;
|
|
95
|
+
}
|
|
96
|
+
let kt = [
|
|
97
|
+
/* fi */
|
|
98
|
+
"rst-c",
|
|
99
|
+
/* hild: 0 */
|
|
100
|
+
/* la */
|
|
101
|
+
"st-ch",
|
|
102
|
+
/* ild: 1 */
|
|
103
|
+
// even and odd use: nth-child
|
|
104
|
+
/* nt */
|
|
105
|
+
"h-chi",
|
|
106
|
+
/* ld: 2 */
|
|
107
|
+
/* an */
|
|
108
|
+
"y-lin",
|
|
109
|
+
/* k: 3 */
|
|
110
|
+
/* li */
|
|
111
|
+
"nk",
|
|
112
|
+
/* : 4 */
|
|
113
|
+
/* vi */
|
|
114
|
+
"sited",
|
|
115
|
+
/* : 5 */
|
|
116
|
+
/* ch */
|
|
117
|
+
"ecked",
|
|
118
|
+
/* : 6 */
|
|
119
|
+
/* em */
|
|
120
|
+
"pty",
|
|
121
|
+
/* : 7 */
|
|
122
|
+
/* re */
|
|
123
|
+
"ad-on",
|
|
124
|
+
/* ly: 8 */
|
|
125
|
+
/* fo */
|
|
126
|
+
"cus-w",
|
|
127
|
+
/* ithin : 9 */
|
|
128
|
+
/* ho */
|
|
129
|
+
"ver",
|
|
130
|
+
/* : 10 */
|
|
131
|
+
/* fo */
|
|
132
|
+
"cus",
|
|
133
|
+
/* : 11 */
|
|
134
|
+
/* fo */
|
|
135
|
+
"cus-v",
|
|
136
|
+
/* isible : 12 */
|
|
137
|
+
/* ac */
|
|
138
|
+
"tive",
|
|
139
|
+
/* : 13 */
|
|
140
|
+
/* di */
|
|
141
|
+
"sable",
|
|
142
|
+
/* d : 14 */
|
|
143
|
+
/* op */
|
|
144
|
+
"tiona",
|
|
145
|
+
/* l: 15 */
|
|
146
|
+
/* re */
|
|
147
|
+
"quire"
|
|
148
|
+
];
|
|
149
|
+
function Be({ n: e, i: t, v: r = [] }, o, n, i) {
|
|
150
|
+
e && (e = je({
|
|
151
|
+
n: e,
|
|
152
|
+
i: t,
|
|
153
|
+
v: r
|
|
154
|
+
})), i = [
|
|
155
|
+
...S(i)
|
|
156
|
+
];
|
|
157
|
+
for (let s of r) {
|
|
158
|
+
let a = o.theme("screens", s);
|
|
159
|
+
for (let c of S(a && De(a) || o.v(s))) {
|
|
160
|
+
var l;
|
|
161
|
+
i.push(c), n |= a ? 67108864 | /* Shifts.screens */
|
|
162
|
+
ze(c) : s == "dark" ? 1073741824 : (
|
|
163
|
+
/* Shifts.darkMode */
|
|
164
|
+
c[0] == "@" ? ze(c) : (l = c, // use first found pseudo-class
|
|
165
|
+
1 << ~(/:([a-z-]+)/.test(l) && ~kt.indexOf(RegExp.$1.slice(2, 7)) || -18))
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return {
|
|
170
|
+
n: e,
|
|
171
|
+
p: n,
|
|
172
|
+
r: i,
|
|
173
|
+
i: t
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
let at = /* @__PURE__ */ new Map();
|
|
177
|
+
function Ae(e) {
|
|
178
|
+
if (e.d) {
|
|
179
|
+
let t = [], r = be(
|
|
180
|
+
// merge all conditions into a selector string
|
|
181
|
+
e.r.reduce((o, n) => n[0] == "@" ? (t.push(n), o) : (
|
|
182
|
+
// Go over the selector and replace the matching multiple selectors if any
|
|
183
|
+
n ? be(o, (i) => be(
|
|
184
|
+
n,
|
|
185
|
+
// If the current condition has a nested selector replace it
|
|
186
|
+
(l) => {
|
|
187
|
+
let s = /(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(l);
|
|
188
|
+
if (s) {
|
|
189
|
+
let a = i.indexOf(s[1]);
|
|
190
|
+
return ~a ? (
|
|
191
|
+
// [':merge(.group):hover .rule', ':merge(.group):focus &'] -> ':merge(.group):focus:hover .rule'
|
|
192
|
+
// ':merge(.group)' + ':focus' + ':hover .rule'
|
|
193
|
+
i.slice(0, a) + s[0] + i.slice(a + s[1].length)
|
|
194
|
+
) : (
|
|
195
|
+
// [':merge(.peer):focus~&', ':merge(.group):hover &'] -> ':merge(.peer):focus~:merge(.group):hover &'
|
|
196
|
+
we(i, l)
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
return we(l, i);
|
|
200
|
+
}
|
|
201
|
+
)) : o
|
|
202
|
+
), "&"),
|
|
203
|
+
// replace '&' with rule name or an empty string
|
|
204
|
+
(o) => we(o, e.n ? "." + nt(e.n) : "")
|
|
205
|
+
);
|
|
206
|
+
return r && t.push(r.replace(/:merge\((.+?)\)/g, "$1")), t.reduceRight((o, n) => n + "{" + o + "}", e.d);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
function be(e, t) {
|
|
210
|
+
return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g, (r, o, n) => t(o) + n);
|
|
211
|
+
}
|
|
212
|
+
function we(e, t) {
|
|
213
|
+
return e.replace(/&/g, t);
|
|
214
|
+
}
|
|
215
|
+
let He = new Intl.Collator("en", {
|
|
216
|
+
numeric: !0
|
|
217
|
+
});
|
|
218
|
+
function lt(e, t) {
|
|
219
|
+
for (var r = 0, o = e.length; r < o; ) {
|
|
220
|
+
let n = o + r >> 1;
|
|
221
|
+
0 >= st(e[n], t) ? r = n + 1 : o = n;
|
|
222
|
+
}
|
|
223
|
+
return o;
|
|
224
|
+
}
|
|
225
|
+
function st(e, t) {
|
|
226
|
+
let r = e.p & T.o;
|
|
227
|
+
return r == (t.p & T.o) && (r == T.b || r == T.o) ? 0 : e.p - t.p || e.o - t.o || He.compare(Ie(e.n), Ie(t.n)) || He.compare(Pe(e.n), Pe(t.n));
|
|
228
|
+
}
|
|
229
|
+
function Ie(e) {
|
|
230
|
+
return (e || "").split(/:/).pop().split("/").pop() || "\0";
|
|
231
|
+
}
|
|
232
|
+
function Pe(e) {
|
|
233
|
+
return (e || "").replace(/\W/g, (t) => String.fromCharCode(127 + t.charCodeAt(0))) + "\0";
|
|
234
|
+
}
|
|
235
|
+
function ye(e, t) {
|
|
236
|
+
return Math.round(parseInt(e, 16) * t);
|
|
237
|
+
}
|
|
238
|
+
function z(e, t = {}) {
|
|
239
|
+
if (typeof e == "function")
|
|
240
|
+
return e(t);
|
|
241
|
+
let { opacityValue: r = "1", opacityVariable: o } = t, n = o ? `var(${o})` : r;
|
|
242
|
+
if (e.includes("<alpha-value>"))
|
|
243
|
+
return e.replace("<alpha-value>", n);
|
|
244
|
+
if (e[0] == "#" && (e.length == 4 || e.length == 7)) {
|
|
245
|
+
let i = (e.length - 1) / 3, l = [
|
|
246
|
+
17,
|
|
247
|
+
1,
|
|
248
|
+
0.062272
|
|
249
|
+
][i - 1];
|
|
250
|
+
return `rgba(${[
|
|
251
|
+
ye(e.substr(1, i), l),
|
|
252
|
+
ye(e.substr(1 + i, i), l),
|
|
253
|
+
ye(e.substr(1 + 2 * i, i), l),
|
|
254
|
+
n
|
|
255
|
+
]})`;
|
|
256
|
+
}
|
|
257
|
+
return n == "1" ? e : n == "0" ? "#0000" : (
|
|
258
|
+
// convert rgb and hsl to alpha variant
|
|
259
|
+
e.replace(/^(rgb|hsl)(\([^)]+)\)$/, `$1a$2,${n})`)
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
function ct(e, t, r, o, n = []) {
|
|
263
|
+
return function i(l, { n: s, p: a, r: c = [], i: u }, f) {
|
|
264
|
+
let h = [], b = "", w = 0, y = 0;
|
|
265
|
+
for (let x in l || {}) {
|
|
266
|
+
var k, D;
|
|
267
|
+
let C = l[x];
|
|
268
|
+
if (x[0] == "@") {
|
|
269
|
+
if (!C)
|
|
270
|
+
continue;
|
|
271
|
+
if (x[1] == "a") {
|
|
272
|
+
h.push(...Ve(s, a, ue("" + C), f, a, c, u, !0));
|
|
273
|
+
continue;
|
|
274
|
+
}
|
|
275
|
+
if (x[1] == "l") {
|
|
276
|
+
for (let E of S(C))
|
|
277
|
+
h.push(...i(E, {
|
|
278
|
+
n: s,
|
|
279
|
+
p: (k = T[x[7]], // Set layer (first reset, than set)
|
|
280
|
+
a & ~T.o | k),
|
|
281
|
+
r: x[7] == "d" ? [] : c,
|
|
282
|
+
i: u
|
|
283
|
+
}, f));
|
|
284
|
+
continue;
|
|
285
|
+
}
|
|
286
|
+
if (x[1] == "i") {
|
|
287
|
+
h.push(...S(C).map((E) => ({
|
|
288
|
+
// before all layers
|
|
289
|
+
p: -1,
|
|
290
|
+
o: 0,
|
|
291
|
+
r: [],
|
|
292
|
+
d: x + " " + E
|
|
293
|
+
})));
|
|
294
|
+
continue;
|
|
295
|
+
}
|
|
296
|
+
if (x[1] == "k") {
|
|
297
|
+
h.push({
|
|
298
|
+
p: T.d,
|
|
299
|
+
o: 0,
|
|
300
|
+
r: [
|
|
301
|
+
x
|
|
302
|
+
],
|
|
303
|
+
d: i(C, {
|
|
304
|
+
p: T.d
|
|
305
|
+
}, f).map(Ae).join("")
|
|
306
|
+
});
|
|
307
|
+
continue;
|
|
308
|
+
}
|
|
309
|
+
if (x[1] == "f") {
|
|
310
|
+
h.push(...S(C).map((E) => ({
|
|
311
|
+
p: T.d,
|
|
312
|
+
o: 0,
|
|
313
|
+
r: [
|
|
314
|
+
x
|
|
315
|
+
],
|
|
316
|
+
d: i(E, {
|
|
317
|
+
p: T.d
|
|
318
|
+
}, f).map(Ae).join("")
|
|
319
|
+
})));
|
|
320
|
+
continue;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
if (typeof C != "object" || Array.isArray(C))
|
|
324
|
+
x == "label" && C ? s = C + pe(JSON.stringify([
|
|
325
|
+
a,
|
|
326
|
+
u,
|
|
327
|
+
l
|
|
328
|
+
])) : (C || C === 0) && (x = x.replace(/[A-Z]/g, (E) => "-" + E.toLowerCase()), y += 1, w = Math.max(w, (D = x)[0] == "-" ? 0 : it(D) + (/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(D) ? +!!RegExp.$1 || /* +1 */
|
|
329
|
+
-!!RegExp.$2 : (
|
|
330
|
+
/* -1 */
|
|
331
|
+
0
|
|
332
|
+
)) + 1), b += (b ? ";" : "") + S(C).map((E) => f.s(
|
|
333
|
+
x,
|
|
334
|
+
// support theme(...) function in values
|
|
335
|
+
// calc(100vh - theme('spacing.12'))
|
|
336
|
+
Me("" + E, f.theme) + (u ? " !important" : "")
|
|
337
|
+
)).join(";"));
|
|
338
|
+
else if (x[0] == "@" || x.includes("&")) {
|
|
339
|
+
let E = a;
|
|
340
|
+
x[0] == "@" && (x = x.replace(/\bscreen\(([^)]+)\)/g, (he, Y) => {
|
|
341
|
+
let V = f.theme("screens", Y);
|
|
342
|
+
return V ? (E |= 67108864, /* Shifts.screens */
|
|
343
|
+
De(V, "")) : he;
|
|
344
|
+
}), E |= ze(x)), h.push(...i(C, {
|
|
345
|
+
n: s,
|
|
346
|
+
p: E,
|
|
347
|
+
r: [
|
|
348
|
+
...c,
|
|
349
|
+
x
|
|
350
|
+
],
|
|
351
|
+
i: u
|
|
352
|
+
}, f));
|
|
353
|
+
} else
|
|
354
|
+
h.push(...i(C, {
|
|
355
|
+
p: a,
|
|
356
|
+
r: [
|
|
357
|
+
...c,
|
|
358
|
+
x
|
|
359
|
+
]
|
|
360
|
+
}, f));
|
|
361
|
+
}
|
|
362
|
+
return (
|
|
363
|
+
// PERF: prevent unshift using `rules = [{}]` above and then `rules[0] = {...}`
|
|
364
|
+
h.unshift({
|
|
365
|
+
n: s,
|
|
366
|
+
p: a,
|
|
367
|
+
o: (
|
|
368
|
+
// number of declarations (descending)
|
|
369
|
+
Math.max(0, 15 - y) + // greatest precedence of properties
|
|
370
|
+
// if there is no property precedence this is most likely a custom property only declaration
|
|
371
|
+
// these have the highest precedence
|
|
372
|
+
1.5 * Math.min(w || 15, 15)
|
|
373
|
+
),
|
|
374
|
+
r: c,
|
|
375
|
+
// stringified declarations
|
|
376
|
+
d: b
|
|
377
|
+
}), h.sort(st)
|
|
378
|
+
);
|
|
379
|
+
}(e, Be(t, r, o, n), r);
|
|
380
|
+
}
|
|
381
|
+
function Me(e, t) {
|
|
382
|
+
return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g, (r, o, n, i, l = "") => {
|
|
383
|
+
let s = t(n, l);
|
|
384
|
+
return typeof s == "function" && /color|fill|stroke/i.test(n) ? z(s) : "" + S(s).filter((a) => Object(a) !== a);
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
function dt(e, t) {
|
|
388
|
+
let r, o = [];
|
|
389
|
+
for (let n of e)
|
|
390
|
+
n.d && n.n ? (r == null ? void 0 : r.p) == n.p && "" + r.r == "" + n.r ? (r.c = [
|
|
391
|
+
r.c,
|
|
392
|
+
n.c
|
|
393
|
+
].filter(Boolean).join(" "), r.d = r.d + ";" + n.d) : o.push(r = {
|
|
394
|
+
...n,
|
|
395
|
+
n: n.n && t
|
|
396
|
+
}) : o.push({
|
|
397
|
+
...n,
|
|
398
|
+
n: n.n && t
|
|
399
|
+
});
|
|
400
|
+
return o;
|
|
401
|
+
}
|
|
402
|
+
function fe(e, t, r = T.u, o, n) {
|
|
403
|
+
let i = [];
|
|
404
|
+
for (let l of e)
|
|
405
|
+
for (let s of function(a, c, u, f, h) {
|
|
406
|
+
a = {
|
|
407
|
+
...a,
|
|
408
|
+
i: a.i || h
|
|
409
|
+
};
|
|
410
|
+
let b = function(w, y) {
|
|
411
|
+
let k = at.get(w.n);
|
|
412
|
+
return k ? k(w, y) : y.r(w.n, w.v[0] == "dark");
|
|
413
|
+
}(a, c);
|
|
414
|
+
return b ? (
|
|
415
|
+
// a list of class names
|
|
416
|
+
typeof b == "string" ? ({ r: f, p: u } = Be(a, c, u, f), dt(fe(ue(b), c, u, f, a.i), a.n)) : Array.isArray(b) ? b.map((w) => {
|
|
417
|
+
var y, k;
|
|
418
|
+
return {
|
|
419
|
+
o: 0,
|
|
420
|
+
...w,
|
|
421
|
+
r: [
|
|
422
|
+
...S(f),
|
|
423
|
+
...S(w.r)
|
|
424
|
+
],
|
|
425
|
+
p: (y = u, k = w.p ?? u, y & ~T.o | k)
|
|
426
|
+
};
|
|
427
|
+
}) : ct(b, a, c, u, f)
|
|
428
|
+
) : (
|
|
429
|
+
// propagate className as is
|
|
430
|
+
[
|
|
431
|
+
{
|
|
432
|
+
c: je(a),
|
|
433
|
+
p: 0,
|
|
434
|
+
o: 0,
|
|
435
|
+
r: []
|
|
436
|
+
}
|
|
437
|
+
]
|
|
438
|
+
);
|
|
439
|
+
}(l, t, r, o, n))
|
|
440
|
+
i.splice(lt(i, s), 0, s);
|
|
441
|
+
return i;
|
|
442
|
+
}
|
|
443
|
+
function Ve(e, t, r, o, n, i, l, s) {
|
|
444
|
+
return dt((s ? r.flatMap((a) => fe([
|
|
445
|
+
a
|
|
446
|
+
], o, n, i, l)) : fe(r, o, n, i, l)).map((a) => (
|
|
447
|
+
// do not move defaults
|
|
448
|
+
// move only rules with a name unless they are in the base layer
|
|
449
|
+
a.p & T.o && (a.n || t == T.b) ? {
|
|
450
|
+
...a,
|
|
451
|
+
p: a.p & ~T.o | t,
|
|
452
|
+
o: 0
|
|
453
|
+
} : a
|
|
454
|
+
)), e);
|
|
455
|
+
}
|
|
456
|
+
function St(e, t, r, o) {
|
|
457
|
+
var n;
|
|
458
|
+
return n = (i, l) => {
|
|
459
|
+
let { n: s, p: a, r: c, i: u } = Be(i, l, t);
|
|
460
|
+
return r && Ve(s, t, r, l, a, c, u, o);
|
|
461
|
+
}, at.set(e, n), e;
|
|
462
|
+
}
|
|
463
|
+
function xe(e, t, r) {
|
|
464
|
+
if (e[e.length - 1] != "(") {
|
|
465
|
+
let o = [], n = !1, i = !1, l = "";
|
|
466
|
+
for (let s of e)
|
|
467
|
+
if (!(s == "(" || /[~@]$/.test(s))) {
|
|
468
|
+
if (s[0] == "!" && (s = s.slice(1), n = !n), s.endsWith(":")) {
|
|
469
|
+
o[s == "dark:" ? "unshift" : "push"](s.slice(0, -1));
|
|
470
|
+
continue;
|
|
471
|
+
}
|
|
472
|
+
s[0] == "-" && (s = s.slice(1), i = !i), s.endsWith("-") && (s = s.slice(0, -1)), s && s != "&" && (l += (l && "-") + s);
|
|
473
|
+
}
|
|
474
|
+
l && (i && (l = "-" + l), t[0].push({
|
|
475
|
+
n: l,
|
|
476
|
+
v: o.filter(Ct),
|
|
477
|
+
i: n
|
|
478
|
+
}));
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
function Ct(e, t, r) {
|
|
482
|
+
return r.indexOf(e) == t;
|
|
483
|
+
}
|
|
484
|
+
let _e = /* @__PURE__ */ new Map();
|
|
485
|
+
function ue(e) {
|
|
486
|
+
let t = _e.get(e);
|
|
487
|
+
if (!t) {
|
|
488
|
+
let r = [], o = [
|
|
489
|
+
[]
|
|
490
|
+
], n = 0, i = 0, l = null, s = 0, a = (c, u = 0) => {
|
|
491
|
+
n != s && (r.push(e.slice(n, s + u)), c && xe(r, o)), n = s + 1;
|
|
492
|
+
};
|
|
493
|
+
for (; s < e.length; s++) {
|
|
494
|
+
let c = e[s];
|
|
495
|
+
if (i)
|
|
496
|
+
e[s - 1] != "\\" && (i += +(c == "[") || -(c == "]"));
|
|
497
|
+
else if (c == "[")
|
|
498
|
+
i += 1;
|
|
499
|
+
else if (l)
|
|
500
|
+
e[s - 1] != "\\" && l.test(e.slice(s)) && (l = null, n = s + RegExp.lastMatch.length);
|
|
501
|
+
else if (c == "/" && e[s - 1] != "\\" && (e[s + 1] == "*" || e[s + 1] == "/"))
|
|
502
|
+
l = e[s + 1] == "*" ? /^\*\// : /^[\r\n]/;
|
|
503
|
+
else if (c == "(")
|
|
504
|
+
a(), r.push(c);
|
|
505
|
+
else if (c == ":")
|
|
506
|
+
e[s + 1] != ":" && a(!1, 1);
|
|
507
|
+
else if (/[\s,)]/.test(c)) {
|
|
508
|
+
a(!0);
|
|
509
|
+
let u = r.lastIndexOf("(");
|
|
510
|
+
if (c == ")") {
|
|
511
|
+
let f = r[u - 1];
|
|
512
|
+
if (/[~@]$/.test(f)) {
|
|
513
|
+
let h = o.shift();
|
|
514
|
+
r.length = u, xe([
|
|
515
|
+
...r,
|
|
516
|
+
"#"
|
|
517
|
+
], o);
|
|
518
|
+
let { v: b } = o[0].pop();
|
|
519
|
+
for (let w of h)
|
|
520
|
+
w.v.splice(+(w.v[0] == "dark") - +(b[0] == "dark"), b.length);
|
|
521
|
+
xe([
|
|
522
|
+
...r,
|
|
523
|
+
St(
|
|
524
|
+
// named nested
|
|
525
|
+
f.length > 1 ? f.slice(0, -1) + pe(JSON.stringify([
|
|
526
|
+
f,
|
|
527
|
+
h
|
|
528
|
+
])) : f + "(" + vt(h) + ")",
|
|
529
|
+
T.a,
|
|
530
|
+
h,
|
|
531
|
+
/@$/.test(f)
|
|
532
|
+
)
|
|
533
|
+
], o);
|
|
534
|
+
}
|
|
535
|
+
u = r.lastIndexOf("(", u - 1);
|
|
536
|
+
}
|
|
537
|
+
r.length = u + 1;
|
|
538
|
+
} else
|
|
539
|
+
/[~@]/.test(c) && e[s + 1] == "(" && // start nested block
|
|
540
|
+
// ~(...) or button~(...)
|
|
541
|
+
// @(...) or button@(...)
|
|
542
|
+
o.unshift([]);
|
|
543
|
+
}
|
|
544
|
+
a(!0), _e.set(e, t = o[0]);
|
|
545
|
+
}
|
|
546
|
+
return t;
|
|
547
|
+
}
|
|
548
|
+
function d(e, t, r) {
|
|
549
|
+
return [
|
|
550
|
+
e,
|
|
551
|
+
Re(t, r)
|
|
552
|
+
];
|
|
553
|
+
}
|
|
554
|
+
function Re(e, t) {
|
|
555
|
+
return typeof e == "function" ? e : typeof e == "string" && /^[\w-]+$/.test(e) ? (
|
|
556
|
+
// a CSS property alias
|
|
557
|
+
(r, o) => ({
|
|
558
|
+
[e]: t ? t(r, o) : Ee(r, 1)
|
|
559
|
+
})
|
|
560
|
+
) : (r) => (
|
|
561
|
+
// CSSObject, shortcut or apply
|
|
562
|
+
e || {
|
|
563
|
+
[r[1]]: Ee(r, 2)
|
|
564
|
+
}
|
|
565
|
+
);
|
|
566
|
+
}
|
|
567
|
+
function Ee(e, t, r = e.slice(t).find(Boolean) || e.$$ || e.input) {
|
|
568
|
+
return e.input[0] == "-" ? `calc(${r} * -1)` : r;
|
|
569
|
+
}
|
|
570
|
+
function p(e, t, r, o) {
|
|
571
|
+
return [
|
|
572
|
+
e,
|
|
573
|
+
Tt(t, r, o)
|
|
574
|
+
];
|
|
575
|
+
}
|
|
576
|
+
function Tt(e, t, r) {
|
|
577
|
+
let o = typeof t == "string" ? (n, i) => ({
|
|
578
|
+
[t]: r ? r(n, i) : n._
|
|
579
|
+
}) : t || (({ 1: n, _: i }, l, s) => ({
|
|
580
|
+
[n || s]: i
|
|
581
|
+
}));
|
|
582
|
+
return (n, i) => {
|
|
583
|
+
let l = pt(e || n[1]), s = i.theme(l, n.$$) ?? P(n.$$, l, i);
|
|
584
|
+
if (s != null)
|
|
585
|
+
return n._ = Ee(n, 0, s), o(n, i, l);
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
function $(e, t = {}, r) {
|
|
589
|
+
return [
|
|
590
|
+
e,
|
|
591
|
+
$t(t, r)
|
|
592
|
+
];
|
|
593
|
+
}
|
|
594
|
+
function $t(e = {}, t) {
|
|
595
|
+
return (r, o) => {
|
|
596
|
+
let { section: n = pt(r[0]).replace("-", "") + "Color" } = e, [i, l] = zt(r.$$);
|
|
597
|
+
if (!i)
|
|
598
|
+
return;
|
|
599
|
+
let s = o.theme(n, i) || P(i, n, o);
|
|
600
|
+
if (!s || typeof s == "object")
|
|
601
|
+
return;
|
|
602
|
+
let {
|
|
603
|
+
// text- -> --tw-text-opacity
|
|
604
|
+
// ring-offset(?:-|$) -> --tw-ring-offset-opacity
|
|
605
|
+
// TODO move this default into preset-tailwind?
|
|
606
|
+
opacityVariable: a = `--tw-${r[0].replace(/-$/, "")}-opacity`,
|
|
607
|
+
opacitySection: c = n.replace("Color", "Opacity"),
|
|
608
|
+
property: u = n,
|
|
609
|
+
selector: f
|
|
610
|
+
} = e, h = o.theme(c, l || "DEFAULT") || l && P(l, c, o), b = t || (({ _: y }) => {
|
|
611
|
+
let k = de(u, y);
|
|
612
|
+
return f ? {
|
|
613
|
+
[f]: k
|
|
614
|
+
} : k;
|
|
615
|
+
});
|
|
616
|
+
r._ = {
|
|
617
|
+
value: z(s, {
|
|
618
|
+
opacityVariable: a || void 0,
|
|
619
|
+
opacityValue: h || void 0
|
|
620
|
+
}),
|
|
621
|
+
color: (y) => z(s, y),
|
|
622
|
+
opacityVariable: a || void 0,
|
|
623
|
+
opacityValue: h || void 0
|
|
624
|
+
};
|
|
625
|
+
let w = b(r, o);
|
|
626
|
+
if (!r.dark) {
|
|
627
|
+
let y = o.d(n, i, s);
|
|
628
|
+
y && y !== s && (r._ = {
|
|
629
|
+
value: z(y, {
|
|
630
|
+
opacityVariable: a || void 0,
|
|
631
|
+
opacityValue: h || "1"
|
|
632
|
+
}),
|
|
633
|
+
color: (k) => z(y, k),
|
|
634
|
+
opacityVariable: a || void 0,
|
|
635
|
+
opacityValue: h || void 0
|
|
636
|
+
}, w = {
|
|
637
|
+
"&": w,
|
|
638
|
+
[o.v("dark")]: b(r, o)
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
return w;
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
function zt(e) {
|
|
645
|
+
return (e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/) || []).slice(1);
|
|
646
|
+
}
|
|
647
|
+
function de(e, t) {
|
|
648
|
+
let r = {};
|
|
649
|
+
return typeof t == "string" ? r[e] = t : (t.opacityVariable && t.value.includes(t.opacityVariable) && (r[t.opacityVariable] = t.opacityValue || "1"), r[e] = t.value), r;
|
|
650
|
+
}
|
|
651
|
+
function P(e, t, r) {
|
|
652
|
+
if (e[0] == "[" && e.slice(-1) == "]") {
|
|
653
|
+
if (e = ne(Me(e.slice(1, -1), r.theme)), !t)
|
|
654
|
+
return e;
|
|
655
|
+
if (
|
|
656
|
+
// Respect type hints from the user on ambiguous arbitrary values - https://tailwindcss.com/docs/adding-custom-styles#resolving-ambiguities
|
|
657
|
+
!// If this is a color section and the value is a hex color, color function or color name
|
|
658
|
+
(/color|fill|stroke/i.test(t) && !(/^color:/.test(e) || /^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e)) || // url(, [a-z]-gradient(, image(, cross-fade(, image-set(
|
|
659
|
+
/image/i.test(t) && !(/^image:/.test(e) || /^[a-z-]+\(/.test(e)) || // font-*
|
|
660
|
+
// - fontWeight (type: ['lookup', 'number', 'any'])
|
|
661
|
+
// - fontFamily (type: ['lookup', 'generic-name', 'family-name'])
|
|
662
|
+
/weight/i.test(t) && !(/^(number|any):/.test(e) || /^\d+$/.test(e)) || // bg-*
|
|
663
|
+
// - backgroundPosition (type: ['lookup', ['position', { preferOnConflict: true }]])
|
|
664
|
+
// - backgroundSize (type: ['lookup', 'length', 'percentage', 'size'])
|
|
665
|
+
/position/i.test(t) && /^(length|size):/.test(e))
|
|
666
|
+
)
|
|
667
|
+
return e.replace(/^[a-z-]+:/, "");
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
function pt(e) {
|
|
671
|
+
return e.replace(/-./g, (t) => t[1].toUpperCase());
|
|
672
|
+
}
|
|
673
|
+
function ne(e) {
|
|
674
|
+
return (
|
|
675
|
+
// Keep raw strings if it starts with `url(`
|
|
676
|
+
e.includes("url(") ? e.replace(/(.*?)(url\(.*?\))(.*?)/g, (t, r = "", o, n = "") => ne(r) + o + ne(n)) : e.replace(/(^|[^\\])_+/g, (t, r) => r + " ".repeat(t.length - r.length)).replace(/\\_/g, "_").replace(/(calc|min|max|clamp)\(.+\)/g, (t) => t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 "))
|
|
677
|
+
);
|
|
678
|
+
}
|
|
679
|
+
function ft({ presets: e = [], ...t }) {
|
|
680
|
+
let r = {
|
|
681
|
+
darkMode: void 0,
|
|
682
|
+
darkColor: void 0,
|
|
683
|
+
preflight: t.preflight !== !1 && [],
|
|
684
|
+
theme: {},
|
|
685
|
+
variants: S(t.variants),
|
|
686
|
+
rules: S(t.rules),
|
|
687
|
+
ignorelist: S(t.ignorelist),
|
|
688
|
+
hash: void 0,
|
|
689
|
+
stringify: (o, n) => o + ":" + n,
|
|
690
|
+
finalize: []
|
|
691
|
+
};
|
|
692
|
+
for (let o of S([
|
|
693
|
+
...e,
|
|
694
|
+
{
|
|
695
|
+
darkMode: t.darkMode,
|
|
696
|
+
darkColor: t.darkColor,
|
|
697
|
+
preflight: t.preflight !== !1 && S(t.preflight),
|
|
698
|
+
theme: t.theme,
|
|
699
|
+
hash: t.hash,
|
|
700
|
+
stringify: t.stringify,
|
|
701
|
+
finalize: t.finalize
|
|
702
|
+
}
|
|
703
|
+
])) {
|
|
704
|
+
let { preflight: n, darkMode: i = r.darkMode, darkColor: l = r.darkColor, theme: s, variants: a, rules: c, ignorelist: u, hash: f = r.hash, stringify: h = r.stringify, finalize: b } = typeof o == "function" ? o(r) : o;
|
|
705
|
+
r = {
|
|
706
|
+
// values defined by user or previous presets take precedence
|
|
707
|
+
preflight: r.preflight !== !1 && n !== !1 && [
|
|
708
|
+
...r.preflight,
|
|
709
|
+
...S(n)
|
|
710
|
+
],
|
|
711
|
+
darkMode: i,
|
|
712
|
+
darkColor: l,
|
|
713
|
+
theme: {
|
|
714
|
+
...r.theme,
|
|
715
|
+
...s,
|
|
716
|
+
extend: {
|
|
717
|
+
...r.theme.extend,
|
|
718
|
+
...s == null ? void 0 : s.extend
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
variants: [
|
|
722
|
+
...r.variants,
|
|
723
|
+
...S(a)
|
|
724
|
+
],
|
|
725
|
+
rules: [
|
|
726
|
+
...r.rules,
|
|
727
|
+
...S(c)
|
|
728
|
+
],
|
|
729
|
+
ignorelist: [
|
|
730
|
+
...r.ignorelist,
|
|
731
|
+
...S(u)
|
|
732
|
+
],
|
|
733
|
+
hash: f,
|
|
734
|
+
stringify: h,
|
|
735
|
+
finalize: [
|
|
736
|
+
...r.finalize,
|
|
737
|
+
...S(b)
|
|
738
|
+
]
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
return r;
|
|
742
|
+
}
|
|
743
|
+
function Ne(e, t, r, o, n, i) {
|
|
744
|
+
for (let l of t) {
|
|
745
|
+
let s = r.get(l);
|
|
746
|
+
s || r.set(l, s = o(l));
|
|
747
|
+
let a = s(e, n, i);
|
|
748
|
+
if (a)
|
|
749
|
+
return a;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
function At(e) {
|
|
753
|
+
var t;
|
|
754
|
+
return Fe(e[0], typeof (t = e[1]) == "function" ? t : () => t);
|
|
755
|
+
}
|
|
756
|
+
function Rt(e) {
|
|
757
|
+
var t, r;
|
|
758
|
+
return Array.isArray(e) ? Fe(e[0], Re(e[1], e[2])) : Fe(e, Re(t, r));
|
|
759
|
+
}
|
|
760
|
+
function Fe(e, t) {
|
|
761
|
+
return ut(e, (r, o, n, i) => {
|
|
762
|
+
let l = o.exec(r);
|
|
763
|
+
if (l)
|
|
764
|
+
return (
|
|
765
|
+
// MATCH.$_ = value
|
|
766
|
+
l.$$ = r.slice(l[0].length), l.dark = i, t(l, n)
|
|
767
|
+
);
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
function ut(e, t) {
|
|
771
|
+
let r = S(e).map(Et);
|
|
772
|
+
return (o, n, i) => {
|
|
773
|
+
for (let l of r) {
|
|
774
|
+
let s = t(o, l, n, i);
|
|
775
|
+
if (s)
|
|
776
|
+
return s;
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
function Et(e) {
|
|
781
|
+
return typeof e == "string" ? RegExp("^" + e + (e.includes("$") || e.slice(-1) == "-" ? "" : "$")) : e;
|
|
782
|
+
}
|
|
783
|
+
function Ft(e, t) {
|
|
784
|
+
let r = ft(e), o = function({ theme: a, darkMode: c, darkColor: u = Le, variants: f, rules: h, hash: b, stringify: w, ignorelist: y, finalize: k }) {
|
|
785
|
+
let D = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), he = ut(y, (v, R) => R.test(v));
|
|
786
|
+
f.push([
|
|
787
|
+
"dark",
|
|
788
|
+
Array.isArray(c) || c == "class" ? `${S(c)[1] || ".dark"} &` : typeof c == "string" && c != "media" ? c : (
|
|
789
|
+
// a custom selector
|
|
790
|
+
"@media (prefers-color-scheme:dark)"
|
|
791
|
+
)
|
|
792
|
+
]);
|
|
793
|
+
let Y = typeof b == "function" ? (v) => b(v, pe) : b ? pe : qe;
|
|
794
|
+
Y !== qe && k.push((v) => {
|
|
795
|
+
var R;
|
|
796
|
+
return {
|
|
797
|
+
...v,
|
|
798
|
+
n: v.n && Y(v.n),
|
|
799
|
+
d: (R = v.d) == null ? void 0 : R.replace(/--(tw(?:-[\w-]+)?)\b/g, (L, me) => "--" + Y(me).replace("#", ""))
|
|
800
|
+
};
|
|
801
|
+
});
|
|
802
|
+
let V = {
|
|
803
|
+
theme: function({ extend: v = {}, ...R }) {
|
|
804
|
+
let L = {}, me = {
|
|
805
|
+
get colors() {
|
|
806
|
+
return Z("colors");
|
|
807
|
+
},
|
|
808
|
+
theme: Z,
|
|
809
|
+
// Stub implementation as negated values are automatically infered and do _not_ need to be in the theme
|
|
810
|
+
negative() {
|
|
811
|
+
return {};
|
|
812
|
+
},
|
|
813
|
+
breakpoints(A) {
|
|
814
|
+
let F = {};
|
|
815
|
+
for (let W in A)
|
|
816
|
+
typeof A[W] == "string" && (F["screen-" + W] = A[W]);
|
|
817
|
+
return F;
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
return Z;
|
|
821
|
+
function Z(A, F, W, Q) {
|
|
822
|
+
if (A) {
|
|
823
|
+
if ({ 1: A, 2: Q } = // eslint-disable-next-line no-sparse-arrays
|
|
824
|
+
/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(A) || [
|
|
825
|
+
,
|
|
826
|
+
A
|
|
827
|
+
], /[.[]/.test(A)) {
|
|
828
|
+
let B = [];
|
|
829
|
+
A.replace(/\[([^\]]+)\]|([^.[]+)/g, (N, ee, wt = ee) => B.push(wt)), A = B.shift(), W = F, F = B.join("-");
|
|
830
|
+
}
|
|
831
|
+
let U = L[A] || // two-step deref to allow extend section to reference base section
|
|
832
|
+
Object.assign(Object.assign(
|
|
833
|
+
// Make sure to not get into recursive calls
|
|
834
|
+
L[A] = {},
|
|
835
|
+
Ue(R, A)
|
|
836
|
+
), Ue(v, A));
|
|
837
|
+
if (F == null)
|
|
838
|
+
return U;
|
|
839
|
+
F || (F = "DEFAULT");
|
|
840
|
+
let _ = U[F] ?? F.split("-").reduce((B, N) => B == null ? void 0 : B[N], U) ?? W;
|
|
841
|
+
return Q ? z(_, {
|
|
842
|
+
opacityValue: Me(Q, Z)
|
|
843
|
+
}) : _;
|
|
844
|
+
}
|
|
845
|
+
let K = {};
|
|
846
|
+
for (let U of [
|
|
847
|
+
...Object.keys(R),
|
|
848
|
+
...Object.keys(v)
|
|
849
|
+
])
|
|
850
|
+
K[U] = Z(U);
|
|
851
|
+
return K;
|
|
852
|
+
}
|
|
853
|
+
function Ue(A, F) {
|
|
854
|
+
let W = A[F];
|
|
855
|
+
return typeof W == "function" && (W = W(me)), W && /color|fill|stroke/i.test(F) ? function Q(K, U = []) {
|
|
856
|
+
let _ = {};
|
|
857
|
+
for (let B in K) {
|
|
858
|
+
let N = K[B], ee = [
|
|
859
|
+
...U,
|
|
860
|
+
B
|
|
861
|
+
];
|
|
862
|
+
_[ee.join("-")] = N, B == "DEFAULT" && (ee = U, _[U.join("-")] = N), typeof N == "object" && Object.assign(_, Q(N, ee));
|
|
863
|
+
}
|
|
864
|
+
return _;
|
|
865
|
+
}(W) : W;
|
|
866
|
+
}
|
|
867
|
+
}(a),
|
|
868
|
+
e: nt,
|
|
869
|
+
h: Y,
|
|
870
|
+
s(v, R) {
|
|
871
|
+
return w(v, R, V);
|
|
872
|
+
},
|
|
873
|
+
d(v, R, L) {
|
|
874
|
+
return u(v, R, V, L);
|
|
875
|
+
},
|
|
876
|
+
v(v) {
|
|
877
|
+
return D.has(v) || D.set(v, Ne(v, f, x, At, V) || "&:" + v), D.get(v);
|
|
878
|
+
},
|
|
879
|
+
r(v, R) {
|
|
880
|
+
let L = JSON.stringify([
|
|
881
|
+
v,
|
|
882
|
+
R
|
|
883
|
+
]);
|
|
884
|
+
return C.has(L) || C.set(L, !he(v, V) && Ne(v, h, E, Rt, V, R)), C.get(L);
|
|
885
|
+
},
|
|
886
|
+
f(v) {
|
|
887
|
+
return k.reduce((R, L) => L(R, V), v);
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
return V;
|
|
891
|
+
}(r), n = /* @__PURE__ */ new Map(), i = [], l = /* @__PURE__ */ new Set();
|
|
892
|
+
t.resume((a) => n.set(a, a), (a, c) => {
|
|
893
|
+
t.insert(a, i.length, c), i.push(c), l.add(a);
|
|
894
|
+
});
|
|
895
|
+
function s(a) {
|
|
896
|
+
let c = o.f(a), u = Ae(c);
|
|
897
|
+
if (u && !l.has(u)) {
|
|
898
|
+
l.add(u);
|
|
899
|
+
let f = lt(i, a);
|
|
900
|
+
t.insert(u, f, a), i.splice(f, 0, a);
|
|
901
|
+
}
|
|
902
|
+
return c.n;
|
|
903
|
+
}
|
|
904
|
+
return Object.defineProperties(function(c) {
|
|
905
|
+
if (!n.size)
|
|
906
|
+
for (let f of S(r.preflight))
|
|
907
|
+
typeof f == "function" && (f = f(o)), f && (typeof f == "string" ? Ve("", T.b, ue(f), o, T.b, [], !1, !0) : ct(f, {}, o, T.b)).forEach(s);
|
|
908
|
+
c = "" + c;
|
|
909
|
+
let u = n.get(c);
|
|
910
|
+
if (!u) {
|
|
911
|
+
let f = /* @__PURE__ */ new Set();
|
|
912
|
+
for (let h of fe(ue(c), o))
|
|
913
|
+
f.add(h.c).add(s(h));
|
|
914
|
+
u = [
|
|
915
|
+
...f
|
|
916
|
+
].filter(Boolean).join(" "), n.set(c, u).set(u, u);
|
|
917
|
+
}
|
|
918
|
+
return u;
|
|
919
|
+
}, Object.getOwnPropertyDescriptors({
|
|
920
|
+
get target() {
|
|
921
|
+
return t.target;
|
|
922
|
+
},
|
|
923
|
+
theme: o.theme,
|
|
924
|
+
config: r,
|
|
925
|
+
snapshot() {
|
|
926
|
+
let a = t.snapshot(), c = new Set(l), u = new Map(n), f = [
|
|
927
|
+
...i
|
|
928
|
+
];
|
|
929
|
+
return () => {
|
|
930
|
+
a(), l = c, n = u, i = f;
|
|
931
|
+
};
|
|
932
|
+
},
|
|
933
|
+
clear() {
|
|
934
|
+
t.clear(), l = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), i = [];
|
|
935
|
+
},
|
|
936
|
+
destroy() {
|
|
937
|
+
this.clear(), t.destroy();
|
|
938
|
+
}
|
|
939
|
+
}));
|
|
940
|
+
}
|
|
941
|
+
function Wt(e, t) {
|
|
942
|
+
return e != t && "" + e.split(" ").sort() != "" + t.split(" ").sort();
|
|
943
|
+
}
|
|
944
|
+
function Ot(e) {
|
|
945
|
+
let t = new MutationObserver(r);
|
|
946
|
+
return {
|
|
947
|
+
observe(n) {
|
|
948
|
+
t.observe(n, {
|
|
949
|
+
attributeFilter: [
|
|
950
|
+
"class"
|
|
951
|
+
],
|
|
952
|
+
subtree: !0,
|
|
953
|
+
childList: !0
|
|
954
|
+
}), o(n), r([
|
|
955
|
+
{
|
|
956
|
+
target: n,
|
|
957
|
+
type: ""
|
|
958
|
+
}
|
|
959
|
+
]);
|
|
960
|
+
},
|
|
961
|
+
disconnect() {
|
|
962
|
+
t.disconnect();
|
|
963
|
+
}
|
|
964
|
+
};
|
|
965
|
+
function r(n) {
|
|
966
|
+
for (let { type: i, target: l } of n)
|
|
967
|
+
if (i[0] == "a")
|
|
968
|
+
o(l);
|
|
969
|
+
else
|
|
970
|
+
for (let s of l.querySelectorAll("[class]"))
|
|
971
|
+
o(s);
|
|
972
|
+
t.takeRecords();
|
|
973
|
+
}
|
|
974
|
+
function o(n) {
|
|
975
|
+
var s;
|
|
976
|
+
let i, l = (s = n.getAttribute) == null ? void 0 : s.call(n, "class");
|
|
977
|
+
l && Wt(l, i = e(l)) && // Not using `target.className = ...` as that is read-only for SVGElements
|
|
978
|
+
n.setAttribute("class", i);
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
function jt(e) {
|
|
982
|
+
let t = document.querySelector(e || 'style[data-twind=""]');
|
|
983
|
+
return (!t || t.tagName != "STYLE") && (t = document.createElement("style"), document.head.prepend(t)), t.dataset.twind = "claimed", t;
|
|
984
|
+
}
|
|
985
|
+
function ve(e) {
|
|
986
|
+
let t = e != null && e.cssRules ? e : (e && typeof e != "string" ? e : jt(e)).sheet;
|
|
987
|
+
return {
|
|
988
|
+
target: t,
|
|
989
|
+
snapshot() {
|
|
990
|
+
let r = Array.from(t.cssRules, (o) => o.cssText);
|
|
991
|
+
return () => {
|
|
992
|
+
this.clear(), r.forEach(this.insert);
|
|
993
|
+
};
|
|
994
|
+
},
|
|
995
|
+
clear() {
|
|
996
|
+
for (let r = t.cssRules.length; r--; )
|
|
997
|
+
t.deleteRule(r);
|
|
998
|
+
},
|
|
999
|
+
destroy() {
|
|
1000
|
+
var r;
|
|
1001
|
+
(r = t.ownerNode) == null || r.remove();
|
|
1002
|
+
},
|
|
1003
|
+
insert(r, o) {
|
|
1004
|
+
try {
|
|
1005
|
+
t.insertRule(r, o);
|
|
1006
|
+
} catch {
|
|
1007
|
+
t.insertRule(":root{}", o);
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
resume: Le
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
1013
|
+
function Dt(e, t = !0) {
|
|
1014
|
+
let r = function() {
|
|
1015
|
+
if (Lt)
|
|
1016
|
+
try {
|
|
1017
|
+
let a = ve(new CSSStyleSheet());
|
|
1018
|
+
return a.connect = (c) => {
|
|
1019
|
+
let u = ke(c);
|
|
1020
|
+
u.adoptedStyleSheets = [
|
|
1021
|
+
...u.adoptedStyleSheets,
|
|
1022
|
+
a.target
|
|
1023
|
+
];
|
|
1024
|
+
}, a.disconnect = Le, a;
|
|
1025
|
+
} catch {
|
|
1026
|
+
}
|
|
1027
|
+
let i = document.createElement("style");
|
|
1028
|
+
i.media = "not all", document.head.prepend(i);
|
|
1029
|
+
let l = [
|
|
1030
|
+
ve(i)
|
|
1031
|
+
], s = /* @__PURE__ */ new WeakMap();
|
|
1032
|
+
return {
|
|
1033
|
+
get target() {
|
|
1034
|
+
return l[0].target;
|
|
1035
|
+
},
|
|
1036
|
+
snapshot() {
|
|
1037
|
+
let a = l.map((c) => c.snapshot());
|
|
1038
|
+
return () => a.forEach((c) => c());
|
|
1039
|
+
},
|
|
1040
|
+
clear() {
|
|
1041
|
+
l.forEach((a) => a.clear());
|
|
1042
|
+
},
|
|
1043
|
+
destroy() {
|
|
1044
|
+
l.forEach((a) => a.destroy());
|
|
1045
|
+
},
|
|
1046
|
+
insert(a, c, u) {
|
|
1047
|
+
l[0].insert(a, c, u);
|
|
1048
|
+
let f = this.target.cssRules[c];
|
|
1049
|
+
l.forEach((h, b) => b && h.target.insertRule(f.cssText, c));
|
|
1050
|
+
},
|
|
1051
|
+
resume(a, c) {
|
|
1052
|
+
return l[0].resume(a, c);
|
|
1053
|
+
},
|
|
1054
|
+
connect(a) {
|
|
1055
|
+
let c = document.createElement("style");
|
|
1056
|
+
ke(a).appendChild(c);
|
|
1057
|
+
let u = ve(c), { cssRules: f } = this.target;
|
|
1058
|
+
for (let h = 0; h < f.length; h++)
|
|
1059
|
+
u.target.insertRule(f[h].cssText, h);
|
|
1060
|
+
l.push(u), s.set(a, u);
|
|
1061
|
+
},
|
|
1062
|
+
disconnect(a) {
|
|
1063
|
+
let c = l.indexOf(s.get(a));
|
|
1064
|
+
c >= 0 && l.splice(c, 1);
|
|
1065
|
+
}
|
|
1066
|
+
};
|
|
1067
|
+
}(), o = Ft({
|
|
1068
|
+
...e,
|
|
1069
|
+
// in production use short hashed class names
|
|
1070
|
+
hash: e.hash ?? t
|
|
1071
|
+
}, r), n = Ot(o);
|
|
1072
|
+
return function(l) {
|
|
1073
|
+
return class extends l {
|
|
1074
|
+
connectedCallback() {
|
|
1075
|
+
var a;
|
|
1076
|
+
(a = super.connectedCallback) == null || a.call(this), r.connect(this), n.observe(ke(this));
|
|
1077
|
+
}
|
|
1078
|
+
disconnectedCallback() {
|
|
1079
|
+
var a;
|
|
1080
|
+
r.disconnect(this), (a = super.disconnectedCallback) == null || a.call(this);
|
|
1081
|
+
}
|
|
1082
|
+
constructor(...a) {
|
|
1083
|
+
super(...a), this.tw = o;
|
|
1084
|
+
}
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
}
|
|
1088
|
+
let Lt = typeof ShadowRoot < "u" && (typeof ShadyCSS > "u" || ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
1089
|
+
function ke(e) {
|
|
1090
|
+
return e.shadowRoot || e.attachShadow({
|
|
1091
|
+
mode: "open"
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
var Bt = Object.defineProperty, Mt = (e, t, r) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ie = (e, t, r) => (Mt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
1095
|
+
const Vt = {
|
|
1096
|
+
stringify: (e) => e,
|
|
1097
|
+
parse: (e) => e
|
|
1098
|
+
}, Ut = {
|
|
1099
|
+
stringify: (e) => `${e}`,
|
|
1100
|
+
parse: (e) => parseFloat(e)
|
|
1101
|
+
}, qt = {
|
|
1102
|
+
stringify: (e) => e ? "true" : "false",
|
|
1103
|
+
parse: (e) => /^[ty1-9]/i.test(e)
|
|
1104
|
+
}, Ht = {
|
|
1105
|
+
stringify: (e) => e.name,
|
|
1106
|
+
parse: (e, t) => {
|
|
1107
|
+
const r = (() => {
|
|
1108
|
+
if (typeof window < "u" && e in window)
|
|
1109
|
+
return window[e];
|
|
1110
|
+
if (typeof global < "u" && e in global)
|
|
1111
|
+
return global[e];
|
|
1112
|
+
})();
|
|
1113
|
+
return typeof r == "function" ? r.bind(t) : void 0;
|
|
1114
|
+
}
|
|
1115
|
+
}, It = {
|
|
1116
|
+
stringify: (e) => JSON.stringify(e),
|
|
1117
|
+
parse: (e) => JSON.parse(e)
|
|
1118
|
+
}, Se = {
|
|
1119
|
+
string: Vt,
|
|
1120
|
+
number: Ut,
|
|
1121
|
+
boolean: qt,
|
|
1122
|
+
function: Ht,
|
|
1123
|
+
json: It
|
|
1124
|
+
}, Ce = Symbol.for("r2wc.render"), ae = Symbol.for("r2wc.connected"), J = Symbol.for("r2wc.context"), H = Symbol.for("r2wc.props");
|
|
1125
|
+
function Pt(e, t, r) {
|
|
1126
|
+
var o, n, i;
|
|
1127
|
+
t.props || (t.props = e.propTypes ? Object.keys(e.propTypes) : []);
|
|
1128
|
+
const l = (Array.isArray(t.props) ? t.props.slice() : Object.keys(t.props)).filter((f) => f !== "container"), s = {}, a = {}, c = {};
|
|
1129
|
+
for (const f of l) {
|
|
1130
|
+
s[f] = Array.isArray(t.props) ? "string" : t.props[f];
|
|
1131
|
+
const h = _t(f);
|
|
1132
|
+
a[f] = h, c[h] = f;
|
|
1133
|
+
}
|
|
1134
|
+
class u extends HTMLElement {
|
|
1135
|
+
constructor() {
|
|
1136
|
+
super(), ie(this, o, !0), ie(this, n), ie(this, i, {}), ie(this, "container"), t.shadow ? this.container = this.attachShadow({
|
|
1137
|
+
mode: t.shadow
|
|
1138
|
+
}) : this.container = this, this[H].container = this.container;
|
|
1139
|
+
for (const h of l) {
|
|
1140
|
+
const b = a[h], w = this.getAttribute(b), y = s[h], k = Se[y];
|
|
1141
|
+
w && k != null && k.parse && (this[H][h] = k.parse(w, this));
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
static get observedAttributes() {
|
|
1145
|
+
return Object.keys(c);
|
|
1146
|
+
}
|
|
1147
|
+
connectedCallback() {
|
|
1148
|
+
this[ae] = !0, this[Ce]();
|
|
1149
|
+
}
|
|
1150
|
+
disconnectedCallback() {
|
|
1151
|
+
this[ae] = !1, this[J] && r.unmount(this[J]);
|
|
1152
|
+
}
|
|
1153
|
+
attributeChangedCallback(h, b, w) {
|
|
1154
|
+
const y = c[h], k = s[y], D = Se[k];
|
|
1155
|
+
y in s && D != null && D.parse && (this[H][y] = D.parse(w, this), this[Ce]());
|
|
1156
|
+
}
|
|
1157
|
+
[(o = ae, n = J, i = H, Ce)]() {
|
|
1158
|
+
this[ae] && (this[J] ? r.update(this[J], this[H]) : this[J] = r.mount(
|
|
1159
|
+
this.container,
|
|
1160
|
+
e,
|
|
1161
|
+
this[H]
|
|
1162
|
+
));
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
for (const f of l) {
|
|
1166
|
+
const h = a[f], b = s[f];
|
|
1167
|
+
Object.defineProperty(u.prototype, f, {
|
|
1168
|
+
enumerable: !0,
|
|
1169
|
+
configurable: !0,
|
|
1170
|
+
get() {
|
|
1171
|
+
return this[H][f];
|
|
1172
|
+
},
|
|
1173
|
+
set(w) {
|
|
1174
|
+
this[H][f] = w;
|
|
1175
|
+
const y = Se[b];
|
|
1176
|
+
if (y != null && y.stringify) {
|
|
1177
|
+
const k = y.stringify(w);
|
|
1178
|
+
this.getAttribute(h) !== k && this.setAttribute(h, k);
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1183
|
+
return u;
|
|
1184
|
+
}
|
|
1185
|
+
function _t(e = "") {
|
|
1186
|
+
return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1187
|
+
}
|
|
1188
|
+
var We, le = yt;
|
|
1189
|
+
if (process.env.NODE_ENV === "production")
|
|
1190
|
+
We = le.createRoot, le.hydrateRoot;
|
|
1191
|
+
else {
|
|
1192
|
+
var Ge = le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1193
|
+
We = function(e, t) {
|
|
1194
|
+
Ge.usingClientEntryPoint = !0;
|
|
1195
|
+
try {
|
|
1196
|
+
return le.createRoot(e, t);
|
|
1197
|
+
} finally {
|
|
1198
|
+
Ge.usingClientEntryPoint = !1;
|
|
1199
|
+
}
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
function Nt(e, t, r) {
|
|
1203
|
+
const o = We(e), n = ot.createElement(t, r);
|
|
1204
|
+
return o.render(n), {
|
|
1205
|
+
root: o,
|
|
1206
|
+
ReactComponent: t
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
function Gt({ root: e, ReactComponent: t }, r) {
|
|
1210
|
+
const o = ot.createElement(t, r);
|
|
1211
|
+
e.render(o);
|
|
1212
|
+
}
|
|
1213
|
+
function Yt({ root: e }) {
|
|
1214
|
+
e.unmount();
|
|
1215
|
+
}
|
|
1216
|
+
function Jt(e, t = {}) {
|
|
1217
|
+
return Pt(e, t, { mount: Nt, update: Gt, unmount: Yt });
|
|
1218
|
+
}
|
|
1219
|
+
var Xt = /* @__PURE__ */ new Map([["align-self", "-ms-grid-row-align"], ["color-adjust", "-webkit-print-color-adjust"], ["column-gap", "grid-column-gap"], ["forced-color-adjust", "-ms-high-contrast-adjust"], ["gap", "grid-gap"], ["grid-template-columns", "-ms-grid-columns"], ["grid-template-rows", "-ms-grid-rows"], ["justify-self", "-ms-grid-column-align"], ["margin-inline-end", "-webkit-margin-end"], ["margin-inline-start", "-webkit-margin-start"], ["mask-border", "-webkit-mask-box-image"], ["mask-border-outset", "-webkit-mask-box-image-outset"], ["mask-border-slice", "-webkit-mask-box-image-slice"], ["mask-border-source", "-webkit-mask-box-image-source"], ["mask-border-repeat", "-webkit-mask-box-image-repeat"], ["mask-border-width", "-webkit-mask-box-image-width"], ["overflow-wrap", "word-wrap"], ["padding-inline-end", "-webkit-padding-end"], ["padding-inline-start", "-webkit-padding-start"], ["print-color-adjust", "color-adjust"], ["row-gap", "grid-row-gap"], ["scroll-margin-bottom", "scroll-snap-margin-bottom"], ["scroll-margin-left", "scroll-snap-margin-left"], ["scroll-margin-right", "scroll-snap-margin-right"], ["scroll-margin-top", "scroll-snap-margin-top"], ["scroll-margin", "scroll-snap-margin"], ["text-combine-upright", "-ms-text-combine-horizontal"]]);
|
|
1220
|
+
function Zt(e) {
|
|
1221
|
+
return Xt.get(e);
|
|
1222
|
+
}
|
|
1223
|
+
function Qt(e) {
|
|
1224
|
+
var t = /^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);
|
|
1225
|
+
return t ? t[1] ? 1 : t[2] ? 2 : t[3] ? 3 : 5 : 0;
|
|
1226
|
+
}
|
|
1227
|
+
function Kt(e, t) {
|
|
1228
|
+
var r = /^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);
|
|
1229
|
+
return r ? r[1] ? /^sti/i.test(t) ? 1 : 0 : r[2] ? /^pat/i.test(t) ? 1 : 0 : r[3] ? /^image-/i.test(t) ? 1 : 0 : r[4] ? t[3] === "-" ? 2 : 0 : /^(?:inline-)?grid$/i.test(t) ? 4 : 0 : 0;
|
|
1230
|
+
}
|
|
1231
|
+
let er = [
|
|
1232
|
+
[
|
|
1233
|
+
"-webkit-",
|
|
1234
|
+
1
|
|
1235
|
+
],
|
|
1236
|
+
// 0b001
|
|
1237
|
+
[
|
|
1238
|
+
"-moz-",
|
|
1239
|
+
2
|
|
1240
|
+
],
|
|
1241
|
+
// 0b010
|
|
1242
|
+
[
|
|
1243
|
+
"-ms-",
|
|
1244
|
+
4
|
|
1245
|
+
]
|
|
1246
|
+
];
|
|
1247
|
+
function tr() {
|
|
1248
|
+
return ({ stringify: e }) => ({
|
|
1249
|
+
stringify(t, r, o) {
|
|
1250
|
+
let n = "", i = Zt(t);
|
|
1251
|
+
i && (n += e(i, r, o) + ";");
|
|
1252
|
+
let l = Qt(t), s = Kt(t, r);
|
|
1253
|
+
for (let a of er)
|
|
1254
|
+
l & a[1] && (n += e(a[0] + t, r, o) + ";"), s & a[1] && (n += e(t, a[0] + r, o) + ";");
|
|
1255
|
+
return n + e(t, r, o);
|
|
1256
|
+
}
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
let ge = {
|
|
1260
|
+
screens: {
|
|
1261
|
+
sm: "640px",
|
|
1262
|
+
md: "768px",
|
|
1263
|
+
lg: "1024px",
|
|
1264
|
+
xl: "1280px",
|
|
1265
|
+
"2xl": "1536px"
|
|
1266
|
+
},
|
|
1267
|
+
columns: {
|
|
1268
|
+
auto: "auto",
|
|
1269
|
+
// Handled by plugin,
|
|
1270
|
+
// 1: '1',
|
|
1271
|
+
// 2: '2',
|
|
1272
|
+
// 3: '3',
|
|
1273
|
+
// 4: '4',
|
|
1274
|
+
// 5: '5',
|
|
1275
|
+
// 6: '6',
|
|
1276
|
+
// 7: '7',
|
|
1277
|
+
// 8: '8',
|
|
1278
|
+
// 9: '9',
|
|
1279
|
+
// 10: '10',
|
|
1280
|
+
// 11: '11',
|
|
1281
|
+
// 12: '12',
|
|
1282
|
+
"3xs": "16rem",
|
|
1283
|
+
"2xs": "18rem",
|
|
1284
|
+
xs: "20rem",
|
|
1285
|
+
sm: "24rem",
|
|
1286
|
+
md: "28rem",
|
|
1287
|
+
lg: "32rem",
|
|
1288
|
+
xl: "36rem",
|
|
1289
|
+
"2xl": "42rem",
|
|
1290
|
+
"3xl": "48rem",
|
|
1291
|
+
"4xl": "56rem",
|
|
1292
|
+
"5xl": "64rem",
|
|
1293
|
+
"6xl": "72rem",
|
|
1294
|
+
"7xl": "80rem"
|
|
1295
|
+
},
|
|
1296
|
+
spacing: {
|
|
1297
|
+
px: "1px",
|
|
1298
|
+
0: "0px",
|
|
1299
|
+
.../* @__PURE__ */ O(4, "rem", 4, 0.5, 0.5),
|
|
1300
|
+
// 0.5: '0.125rem',
|
|
1301
|
+
// 1: '0.25rem',
|
|
1302
|
+
// 1.5: '0.375rem',
|
|
1303
|
+
// 2: '0.5rem',
|
|
1304
|
+
// 2.5: '0.625rem',
|
|
1305
|
+
// 3: '0.75rem',
|
|
1306
|
+
// 3.5: '0.875rem',
|
|
1307
|
+
// 4: '1rem',
|
|
1308
|
+
.../* @__PURE__ */ O(12, "rem", 4, 5),
|
|
1309
|
+
// 5: '1.25rem',
|
|
1310
|
+
// 6: '1.5rem',
|
|
1311
|
+
// 7: '1.75rem',
|
|
1312
|
+
// 8: '2rem',
|
|
1313
|
+
// 9: '2.25rem',
|
|
1314
|
+
// 10: '2.5rem',
|
|
1315
|
+
// 11: '2.75rem',
|
|
1316
|
+
// 12: '3rem',
|
|
1317
|
+
14: "3.5rem",
|
|
1318
|
+
.../* @__PURE__ */ O(64, "rem", 4, 16, 4),
|
|
1319
|
+
// 16: '4rem',
|
|
1320
|
+
// 20: '5rem',
|
|
1321
|
+
// 24: '6rem',
|
|
1322
|
+
// 28: '7rem',
|
|
1323
|
+
// 32: '8rem',
|
|
1324
|
+
// 36: '9rem',
|
|
1325
|
+
// 40: '10rem',
|
|
1326
|
+
// 44: '11rem',
|
|
1327
|
+
// 48: '12rem',
|
|
1328
|
+
// 52: '13rem',
|
|
1329
|
+
// 56: '14rem',
|
|
1330
|
+
// 60: '15rem',
|
|
1331
|
+
// 64: '16rem',
|
|
1332
|
+
72: "18rem",
|
|
1333
|
+
80: "20rem",
|
|
1334
|
+
96: "24rem"
|
|
1335
|
+
},
|
|
1336
|
+
durations: {
|
|
1337
|
+
75: "75ms",
|
|
1338
|
+
100: "100ms",
|
|
1339
|
+
150: "150ms",
|
|
1340
|
+
200: "200ms",
|
|
1341
|
+
300: "300ms",
|
|
1342
|
+
500: "500ms",
|
|
1343
|
+
700: "700ms",
|
|
1344
|
+
1e3: "1000ms"
|
|
1345
|
+
},
|
|
1346
|
+
animation: {
|
|
1347
|
+
none: "none",
|
|
1348
|
+
spin: "spin 1s linear infinite",
|
|
1349
|
+
ping: "ping 1s cubic-bezier(0,0,0.2,1) infinite",
|
|
1350
|
+
pulse: "pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",
|
|
1351
|
+
bounce: "bounce 1s infinite"
|
|
1352
|
+
},
|
|
1353
|
+
aspectRatio: {
|
|
1354
|
+
auto: "auto",
|
|
1355
|
+
square: "1/1",
|
|
1356
|
+
video: "16/9"
|
|
1357
|
+
},
|
|
1358
|
+
backdropBlur: /* @__PURE__ */ m("blur"),
|
|
1359
|
+
backdropBrightness: /* @__PURE__ */ m("brightness"),
|
|
1360
|
+
backdropContrast: /* @__PURE__ */ m("contrast"),
|
|
1361
|
+
backdropGrayscale: /* @__PURE__ */ m("grayscale"),
|
|
1362
|
+
backdropHueRotate: /* @__PURE__ */ m("hueRotate"),
|
|
1363
|
+
backdropInvert: /* @__PURE__ */ m("invert"),
|
|
1364
|
+
backdropOpacity: /* @__PURE__ */ m("opacity"),
|
|
1365
|
+
backdropSaturate: /* @__PURE__ */ m("saturate"),
|
|
1366
|
+
backdropSepia: /* @__PURE__ */ m("sepia"),
|
|
1367
|
+
backgroundColor: /* @__PURE__ */ m("colors"),
|
|
1368
|
+
backgroundImage: {
|
|
1369
|
+
none: "none"
|
|
1370
|
+
},
|
|
1371
|
+
// These are built-in
|
|
1372
|
+
// 'gradient-to-t': 'linear-gradient(to top, var(--tw-gradient-stops))',
|
|
1373
|
+
// 'gradient-to-tr': 'linear-gradient(to top right, var(--tw-gradient-stops))',
|
|
1374
|
+
// 'gradient-to-r': 'linear-gradient(to right, var(--tw-gradient-stops))',
|
|
1375
|
+
// 'gradient-to-br': 'linear-gradient(to bottom right, var(--tw-gradient-stops))',
|
|
1376
|
+
// 'gradient-to-b': 'linear-gradient(to bottom, var(--tw-gradient-stops))',
|
|
1377
|
+
// 'gradient-to-bl': 'linear-gradient(to bottom left, var(--tw-gradient-stops))',
|
|
1378
|
+
// 'gradient-to-l': 'linear-gradient(to left, var(--tw-gradient-stops))',
|
|
1379
|
+
// 'gradient-to-tl': 'linear-gradient(to top left, var(--tw-gradient-stops))',
|
|
1380
|
+
backgroundOpacity: /* @__PURE__ */ m("opacity"),
|
|
1381
|
+
// backgroundPosition: {
|
|
1382
|
+
// // The following are already handled by the plugin:
|
|
1383
|
+
// // center, right, left, bottom, top
|
|
1384
|
+
// // 'bottom-10px-right-20px' -> bottom 10px right 20px
|
|
1385
|
+
// },
|
|
1386
|
+
backgroundSize: {
|
|
1387
|
+
auto: "auto",
|
|
1388
|
+
cover: "cover",
|
|
1389
|
+
contain: "contain"
|
|
1390
|
+
},
|
|
1391
|
+
blur: {
|
|
1392
|
+
none: "none",
|
|
1393
|
+
0: "0",
|
|
1394
|
+
sm: "4px",
|
|
1395
|
+
DEFAULT: "8px",
|
|
1396
|
+
md: "12px",
|
|
1397
|
+
lg: "16px",
|
|
1398
|
+
xl: "24px",
|
|
1399
|
+
"2xl": "40px",
|
|
1400
|
+
"3xl": "64px"
|
|
1401
|
+
},
|
|
1402
|
+
brightness: {
|
|
1403
|
+
.../* @__PURE__ */ O(200, "", 100, 0, 50),
|
|
1404
|
+
// 0: '0',
|
|
1405
|
+
// 50: '.5',
|
|
1406
|
+
// 150: '1.5',
|
|
1407
|
+
// 200: '2',
|
|
1408
|
+
.../* @__PURE__ */ O(110, "", 100, 90, 5),
|
|
1409
|
+
// 90: '.9',
|
|
1410
|
+
// 95: '.95',
|
|
1411
|
+
// 100: '1',
|
|
1412
|
+
// 105: '1.05',
|
|
1413
|
+
// 110: '1.1',
|
|
1414
|
+
75: "0.75",
|
|
1415
|
+
125: "1.25"
|
|
1416
|
+
},
|
|
1417
|
+
borderColor: ({ theme: e }) => ({
|
|
1418
|
+
DEFAULT: e("colors.gray.200", "currentColor"),
|
|
1419
|
+
...e("colors")
|
|
1420
|
+
}),
|
|
1421
|
+
borderOpacity: /* @__PURE__ */ m("opacity"),
|
|
1422
|
+
borderRadius: {
|
|
1423
|
+
none: "0px",
|
|
1424
|
+
sm: "0.125rem",
|
|
1425
|
+
DEFAULT: "0.25rem",
|
|
1426
|
+
md: "0.375rem",
|
|
1427
|
+
lg: "0.5rem",
|
|
1428
|
+
xl: "0.75rem",
|
|
1429
|
+
"2xl": "1rem",
|
|
1430
|
+
"3xl": "1.5rem",
|
|
1431
|
+
"1/2": "50%",
|
|
1432
|
+
full: "9999px"
|
|
1433
|
+
},
|
|
1434
|
+
borderSpacing: /* @__PURE__ */ m("spacing"),
|
|
1435
|
+
borderWidth: {
|
|
1436
|
+
DEFAULT: "1px",
|
|
1437
|
+
.../* @__PURE__ */ j(8, "px")
|
|
1438
|
+
},
|
|
1439
|
+
// 0: '0px',
|
|
1440
|
+
// 2: '2px',
|
|
1441
|
+
// 4: '4px',
|
|
1442
|
+
// 8: '8px',
|
|
1443
|
+
boxShadow: {
|
|
1444
|
+
sm: "0 1px 2px 0 rgba(0,0,0,0.05)",
|
|
1445
|
+
DEFAULT: "0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",
|
|
1446
|
+
md: "0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",
|
|
1447
|
+
lg: "0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",
|
|
1448
|
+
xl: "0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)",
|
|
1449
|
+
"2xl": "0 25px 50px -12px rgba(0,0,0,0.25)",
|
|
1450
|
+
inner: "inset 0 2px 4px 0 rgba(0,0,0,0.05)",
|
|
1451
|
+
none: "0 0 #0000"
|
|
1452
|
+
},
|
|
1453
|
+
boxShadowColor: m("colors"),
|
|
1454
|
+
// container: {},
|
|
1455
|
+
// cursor: {
|
|
1456
|
+
// // Default values are handled by plugin
|
|
1457
|
+
// },
|
|
1458
|
+
caretColor: /* @__PURE__ */ m("colors"),
|
|
1459
|
+
accentColor: ({ theme: e }) => ({
|
|
1460
|
+
auto: "auto",
|
|
1461
|
+
...e("colors")
|
|
1462
|
+
}),
|
|
1463
|
+
contrast: {
|
|
1464
|
+
.../* @__PURE__ */ O(200, "", 100, 0, 50),
|
|
1465
|
+
// 0: '0',
|
|
1466
|
+
// 50: '.5',
|
|
1467
|
+
// 150: '1.5',
|
|
1468
|
+
// 200: '2',
|
|
1469
|
+
75: "0.75",
|
|
1470
|
+
125: "1.25"
|
|
1471
|
+
},
|
|
1472
|
+
content: {
|
|
1473
|
+
none: "none"
|
|
1474
|
+
},
|
|
1475
|
+
divideColor: /* @__PURE__ */ m("borderColor"),
|
|
1476
|
+
divideOpacity: /* @__PURE__ */ m("borderOpacity"),
|
|
1477
|
+
divideWidth: /* @__PURE__ */ m("borderWidth"),
|
|
1478
|
+
dropShadow: {
|
|
1479
|
+
sm: "0 1px 1px rgba(0,0,0,0.05)",
|
|
1480
|
+
DEFAULT: [
|
|
1481
|
+
"0 1px 2px rgba(0,0,0,0.1)",
|
|
1482
|
+
"0 1px 1px rgba(0,0,0,0.06)"
|
|
1483
|
+
],
|
|
1484
|
+
md: [
|
|
1485
|
+
"0 4px 3px rgba(0,0,0,0.07)",
|
|
1486
|
+
"0 2px 2px rgba(0,0,0,0.06)"
|
|
1487
|
+
],
|
|
1488
|
+
lg: [
|
|
1489
|
+
"0 10px 8px rgba(0,0,0,0.04)",
|
|
1490
|
+
"0 4px 3px rgba(0,0,0,0.1)"
|
|
1491
|
+
],
|
|
1492
|
+
xl: [
|
|
1493
|
+
"0 20px 13px rgba(0,0,0,0.03)",
|
|
1494
|
+
"0 8px 5px rgba(0,0,0,0.08)"
|
|
1495
|
+
],
|
|
1496
|
+
"2xl": "0 25px 25px rgba(0,0,0,0.15)",
|
|
1497
|
+
none: "0 0 #0000"
|
|
1498
|
+
},
|
|
1499
|
+
fill: ({ theme: e }) => ({
|
|
1500
|
+
...e("colors"),
|
|
1501
|
+
none: "none"
|
|
1502
|
+
}),
|
|
1503
|
+
grayscale: {
|
|
1504
|
+
DEFAULT: "100%",
|
|
1505
|
+
0: "0"
|
|
1506
|
+
},
|
|
1507
|
+
hueRotate: {
|
|
1508
|
+
0: "0deg",
|
|
1509
|
+
15: "15deg",
|
|
1510
|
+
30: "30deg",
|
|
1511
|
+
60: "60deg",
|
|
1512
|
+
90: "90deg",
|
|
1513
|
+
180: "180deg"
|
|
1514
|
+
},
|
|
1515
|
+
invert: {
|
|
1516
|
+
DEFAULT: "100%",
|
|
1517
|
+
0: "0"
|
|
1518
|
+
},
|
|
1519
|
+
flex: {
|
|
1520
|
+
1: "1 1 0%",
|
|
1521
|
+
auto: "1 1 auto",
|
|
1522
|
+
initial: "0 1 auto",
|
|
1523
|
+
none: "none"
|
|
1524
|
+
},
|
|
1525
|
+
flexBasis: ({ theme: e }) => ({
|
|
1526
|
+
...e("spacing"),
|
|
1527
|
+
...te(2, 6),
|
|
1528
|
+
// '1/2': '50%',
|
|
1529
|
+
// '1/3': '33.333333%',
|
|
1530
|
+
// '2/3': '66.666667%',
|
|
1531
|
+
// '1/4': '25%',
|
|
1532
|
+
// '2/4': '50%',
|
|
1533
|
+
// '3/4': '75%',
|
|
1534
|
+
// '1/5': '20%',
|
|
1535
|
+
// '2/5': '40%',
|
|
1536
|
+
// '3/5': '60%',
|
|
1537
|
+
// '4/5': '80%',
|
|
1538
|
+
// '1/6': '16.666667%',
|
|
1539
|
+
// '2/6': '33.333333%',
|
|
1540
|
+
// '3/6': '50%',
|
|
1541
|
+
// '4/6': '66.666667%',
|
|
1542
|
+
// '5/6': '83.333333%',
|
|
1543
|
+
...te(12, 12),
|
|
1544
|
+
// '1/12': '8.333333%',
|
|
1545
|
+
// '2/12': '16.666667%',
|
|
1546
|
+
// '3/12': '25%',
|
|
1547
|
+
// '4/12': '33.333333%',
|
|
1548
|
+
// '5/12': '41.666667%',
|
|
1549
|
+
// '6/12': '50%',
|
|
1550
|
+
// '7/12': '58.333333%',
|
|
1551
|
+
// '8/12': '66.666667%',
|
|
1552
|
+
// '9/12': '75%',
|
|
1553
|
+
// '10/12': '83.333333%',
|
|
1554
|
+
// '11/12': '91.666667%',
|
|
1555
|
+
auto: "auto",
|
|
1556
|
+
full: "100%"
|
|
1557
|
+
}),
|
|
1558
|
+
flexGrow: {
|
|
1559
|
+
DEFAULT: 1,
|
|
1560
|
+
0: 0
|
|
1561
|
+
},
|
|
1562
|
+
flexShrink: {
|
|
1563
|
+
DEFAULT: 1,
|
|
1564
|
+
0: 0
|
|
1565
|
+
},
|
|
1566
|
+
fontFamily: {
|
|
1567
|
+
sans: 'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),
|
|
1568
|
+
serif: 'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),
|
|
1569
|
+
mono: 'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")
|
|
1570
|
+
},
|
|
1571
|
+
fontSize: {
|
|
1572
|
+
xs: [
|
|
1573
|
+
"0.75rem",
|
|
1574
|
+
"1rem"
|
|
1575
|
+
],
|
|
1576
|
+
sm: [
|
|
1577
|
+
"0.875rem",
|
|
1578
|
+
"1.25rem"
|
|
1579
|
+
],
|
|
1580
|
+
base: [
|
|
1581
|
+
"1rem",
|
|
1582
|
+
"1.5rem"
|
|
1583
|
+
],
|
|
1584
|
+
lg: [
|
|
1585
|
+
"1.125rem",
|
|
1586
|
+
"1.75rem"
|
|
1587
|
+
],
|
|
1588
|
+
xl: [
|
|
1589
|
+
"1.25rem",
|
|
1590
|
+
"1.75rem"
|
|
1591
|
+
],
|
|
1592
|
+
"2xl": [
|
|
1593
|
+
"1.5rem",
|
|
1594
|
+
"2rem"
|
|
1595
|
+
],
|
|
1596
|
+
"3xl": [
|
|
1597
|
+
"1.875rem",
|
|
1598
|
+
"2.25rem"
|
|
1599
|
+
],
|
|
1600
|
+
"4xl": [
|
|
1601
|
+
"2.25rem",
|
|
1602
|
+
"2.5rem"
|
|
1603
|
+
],
|
|
1604
|
+
"5xl": [
|
|
1605
|
+
"3rem",
|
|
1606
|
+
"1"
|
|
1607
|
+
],
|
|
1608
|
+
"6xl": [
|
|
1609
|
+
"3.75rem",
|
|
1610
|
+
"1"
|
|
1611
|
+
],
|
|
1612
|
+
"7xl": [
|
|
1613
|
+
"4.5rem",
|
|
1614
|
+
"1"
|
|
1615
|
+
],
|
|
1616
|
+
"8xl": [
|
|
1617
|
+
"6rem",
|
|
1618
|
+
"1"
|
|
1619
|
+
],
|
|
1620
|
+
"9xl": [
|
|
1621
|
+
"8rem",
|
|
1622
|
+
"1"
|
|
1623
|
+
]
|
|
1624
|
+
},
|
|
1625
|
+
fontWeight: {
|
|
1626
|
+
thin: "100",
|
|
1627
|
+
extralight: "200",
|
|
1628
|
+
light: "300",
|
|
1629
|
+
normal: "400",
|
|
1630
|
+
medium: "500",
|
|
1631
|
+
semibold: "600",
|
|
1632
|
+
bold: "700",
|
|
1633
|
+
extrabold: "800",
|
|
1634
|
+
black: "900"
|
|
1635
|
+
},
|
|
1636
|
+
gap: /* @__PURE__ */ m("spacing"),
|
|
1637
|
+
gradientColorStops: /* @__PURE__ */ m("colors"),
|
|
1638
|
+
gridAutoColumns: {
|
|
1639
|
+
auto: "auto",
|
|
1640
|
+
min: "min-content",
|
|
1641
|
+
max: "max-content",
|
|
1642
|
+
fr: "minmax(0,1fr)"
|
|
1643
|
+
},
|
|
1644
|
+
gridAutoRows: {
|
|
1645
|
+
auto: "auto",
|
|
1646
|
+
min: "min-content",
|
|
1647
|
+
max: "max-content",
|
|
1648
|
+
fr: "minmax(0,1fr)"
|
|
1649
|
+
},
|
|
1650
|
+
gridColumn: {
|
|
1651
|
+
// span-X is handled by the plugin: span-1 -> span 1 / span 1
|
|
1652
|
+
auto: "auto",
|
|
1653
|
+
"span-full": "1 / -1"
|
|
1654
|
+
},
|
|
1655
|
+
// gridColumnEnd: {
|
|
1656
|
+
// // Defaults handled by plugin
|
|
1657
|
+
// },
|
|
1658
|
+
// gridColumnStart: {
|
|
1659
|
+
// // Defaults handled by plugin
|
|
1660
|
+
// },
|
|
1661
|
+
gridRow: {
|
|
1662
|
+
// span-X is handled by the plugin: span-1 -> span 1 / span 1
|
|
1663
|
+
auto: "auto",
|
|
1664
|
+
"span-full": "1 / -1"
|
|
1665
|
+
},
|
|
1666
|
+
// gridRowStart: {
|
|
1667
|
+
// // Defaults handled by plugin
|
|
1668
|
+
// },
|
|
1669
|
+
// gridRowEnd: {
|
|
1670
|
+
// // Defaults handled by plugin
|
|
1671
|
+
// },
|
|
1672
|
+
gridTemplateColumns: {
|
|
1673
|
+
// numbers are handled by the plugin: 1 -> repeat(1, minmax(0, 1fr))
|
|
1674
|
+
none: "none"
|
|
1675
|
+
},
|
|
1676
|
+
gridTemplateRows: {
|
|
1677
|
+
// numbers are handled by the plugin: 1 -> repeat(1, minmax(0, 1fr))
|
|
1678
|
+
none: "none"
|
|
1679
|
+
},
|
|
1680
|
+
height: ({ theme: e }) => ({
|
|
1681
|
+
...e("spacing"),
|
|
1682
|
+
...te(2, 6),
|
|
1683
|
+
// '1/2': '50%',
|
|
1684
|
+
// '1/3': '33.333333%',
|
|
1685
|
+
// '2/3': '66.666667%',
|
|
1686
|
+
// '1/4': '25%',
|
|
1687
|
+
// '2/4': '50%',
|
|
1688
|
+
// '3/4': '75%',
|
|
1689
|
+
// '1/5': '20%',
|
|
1690
|
+
// '2/5': '40%',
|
|
1691
|
+
// '3/5': '60%',
|
|
1692
|
+
// '4/5': '80%',
|
|
1693
|
+
// '1/6': '16.666667%',
|
|
1694
|
+
// '2/6': '33.333333%',
|
|
1695
|
+
// '3/6': '50%',
|
|
1696
|
+
// '4/6': '66.666667%',
|
|
1697
|
+
// '5/6': '83.333333%',
|
|
1698
|
+
min: "min-content",
|
|
1699
|
+
max: "max-content",
|
|
1700
|
+
fit: "fit-content",
|
|
1701
|
+
auto: "auto",
|
|
1702
|
+
full: "100%",
|
|
1703
|
+
screen: "100vh"
|
|
1704
|
+
}),
|
|
1705
|
+
inset: ({ theme: e }) => ({
|
|
1706
|
+
...e("spacing"),
|
|
1707
|
+
...te(2, 4),
|
|
1708
|
+
// '1/2': '50%',
|
|
1709
|
+
// '1/3': '33.333333%',
|
|
1710
|
+
// '2/3': '66.666667%',
|
|
1711
|
+
// '1/4': '25%',
|
|
1712
|
+
// '2/4': '50%',
|
|
1713
|
+
// '3/4': '75%',
|
|
1714
|
+
auto: "auto",
|
|
1715
|
+
full: "100%"
|
|
1716
|
+
}),
|
|
1717
|
+
keyframes: {
|
|
1718
|
+
spin: {
|
|
1719
|
+
from: {
|
|
1720
|
+
transform: "rotate(0deg)"
|
|
1721
|
+
},
|
|
1722
|
+
to: {
|
|
1723
|
+
transform: "rotate(360deg)"
|
|
1724
|
+
}
|
|
1725
|
+
},
|
|
1726
|
+
ping: {
|
|
1727
|
+
"0%": {
|
|
1728
|
+
transform: "scale(1)",
|
|
1729
|
+
opacity: "1"
|
|
1730
|
+
},
|
|
1731
|
+
"75%,100%": {
|
|
1732
|
+
transform: "scale(2)",
|
|
1733
|
+
opacity: "0"
|
|
1734
|
+
}
|
|
1735
|
+
},
|
|
1736
|
+
pulse: {
|
|
1737
|
+
"0%,100%": {
|
|
1738
|
+
opacity: "1"
|
|
1739
|
+
},
|
|
1740
|
+
"50%": {
|
|
1741
|
+
opacity: ".5"
|
|
1742
|
+
}
|
|
1743
|
+
},
|
|
1744
|
+
bounce: {
|
|
1745
|
+
"0%, 100%": {
|
|
1746
|
+
transform: "translateY(-25%)",
|
|
1747
|
+
animationTimingFunction: "cubic-bezier(0.8,0,1,1)"
|
|
1748
|
+
},
|
|
1749
|
+
"50%": {
|
|
1750
|
+
transform: "none",
|
|
1751
|
+
animationTimingFunction: "cubic-bezier(0,0,0.2,1)"
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
},
|
|
1755
|
+
letterSpacing: {
|
|
1756
|
+
tighter: "-0.05em",
|
|
1757
|
+
tight: "-0.025em",
|
|
1758
|
+
normal: "0em",
|
|
1759
|
+
wide: "0.025em",
|
|
1760
|
+
wider: "0.05em",
|
|
1761
|
+
widest: "0.1em"
|
|
1762
|
+
},
|
|
1763
|
+
lineHeight: {
|
|
1764
|
+
.../* @__PURE__ */ O(10, "rem", 4, 3),
|
|
1765
|
+
// 3: '.75rem',
|
|
1766
|
+
// 4: '1rem',
|
|
1767
|
+
// 5: '1.25rem',
|
|
1768
|
+
// 6: '1.5rem',
|
|
1769
|
+
// 7: '1.75rem',
|
|
1770
|
+
// 8: '2rem',
|
|
1771
|
+
// 9: '2.25rem',
|
|
1772
|
+
// 10: '2.5rem',
|
|
1773
|
+
none: "1",
|
|
1774
|
+
tight: "1.25",
|
|
1775
|
+
snug: "1.375",
|
|
1776
|
+
normal: "1.5",
|
|
1777
|
+
relaxed: "1.625",
|
|
1778
|
+
loose: "2"
|
|
1779
|
+
},
|
|
1780
|
+
// listStyleType: {
|
|
1781
|
+
// // Defaults handled by plugin
|
|
1782
|
+
// },
|
|
1783
|
+
margin: ({ theme: e }) => ({
|
|
1784
|
+
auto: "auto",
|
|
1785
|
+
...e("spacing")
|
|
1786
|
+
}),
|
|
1787
|
+
maxHeight: ({ theme: e }) => ({
|
|
1788
|
+
full: "100%",
|
|
1789
|
+
min: "min-content",
|
|
1790
|
+
max: "max-content",
|
|
1791
|
+
fit: "fit-content",
|
|
1792
|
+
screen: "100vh",
|
|
1793
|
+
...e("spacing")
|
|
1794
|
+
}),
|
|
1795
|
+
maxWidth: ({ theme: e, breakpoints: t }) => ({
|
|
1796
|
+
...t(e("screens")),
|
|
1797
|
+
none: "none",
|
|
1798
|
+
0: "0rem",
|
|
1799
|
+
xs: "20rem",
|
|
1800
|
+
sm: "24rem",
|
|
1801
|
+
md: "28rem",
|
|
1802
|
+
lg: "32rem",
|
|
1803
|
+
xl: "36rem",
|
|
1804
|
+
"2xl": "42rem",
|
|
1805
|
+
"3xl": "48rem",
|
|
1806
|
+
"4xl": "56rem",
|
|
1807
|
+
"5xl": "64rem",
|
|
1808
|
+
"6xl": "72rem",
|
|
1809
|
+
"7xl": "80rem",
|
|
1810
|
+
full: "100%",
|
|
1811
|
+
min: "min-content",
|
|
1812
|
+
max: "max-content",
|
|
1813
|
+
fit: "fit-content",
|
|
1814
|
+
prose: "65ch"
|
|
1815
|
+
}),
|
|
1816
|
+
minHeight: {
|
|
1817
|
+
0: "0px",
|
|
1818
|
+
full: "100%",
|
|
1819
|
+
min: "min-content",
|
|
1820
|
+
max: "max-content",
|
|
1821
|
+
fit: "fit-content",
|
|
1822
|
+
screen: "100vh"
|
|
1823
|
+
},
|
|
1824
|
+
minWidth: {
|
|
1825
|
+
0: "0px",
|
|
1826
|
+
full: "100%",
|
|
1827
|
+
min: "min-content",
|
|
1828
|
+
max: "max-content",
|
|
1829
|
+
fit: "fit-content"
|
|
1830
|
+
},
|
|
1831
|
+
// objectPosition: {
|
|
1832
|
+
// // The plugins joins all arguments by default
|
|
1833
|
+
// },
|
|
1834
|
+
opacity: {
|
|
1835
|
+
.../* @__PURE__ */ O(100, "", 100, 0, 10),
|
|
1836
|
+
// 0: '0',
|
|
1837
|
+
// 10: '0.1',
|
|
1838
|
+
// 20: '0.2',
|
|
1839
|
+
// 30: '0.3',
|
|
1840
|
+
// 40: '0.4',
|
|
1841
|
+
// 60: '0.6',
|
|
1842
|
+
// 70: '0.7',
|
|
1843
|
+
// 80: '0.8',
|
|
1844
|
+
// 90: '0.9',
|
|
1845
|
+
// 100: '1',
|
|
1846
|
+
5: "0.05",
|
|
1847
|
+
25: "0.25",
|
|
1848
|
+
75: "0.75",
|
|
1849
|
+
95: "0.95"
|
|
1850
|
+
},
|
|
1851
|
+
order: {
|
|
1852
|
+
// Handled by plugin
|
|
1853
|
+
// 1: '1',
|
|
1854
|
+
// 2: '2',
|
|
1855
|
+
// 3: '3',
|
|
1856
|
+
// 4: '4',
|
|
1857
|
+
// 5: '5',
|
|
1858
|
+
// 6: '6',
|
|
1859
|
+
// 7: '7',
|
|
1860
|
+
// 8: '8',
|
|
1861
|
+
// 9: '9',
|
|
1862
|
+
// 10: '10',
|
|
1863
|
+
// 11: '11',
|
|
1864
|
+
// 12: '12',
|
|
1865
|
+
first: "-9999",
|
|
1866
|
+
last: "9999",
|
|
1867
|
+
none: "0"
|
|
1868
|
+
},
|
|
1869
|
+
padding: /* @__PURE__ */ m("spacing"),
|
|
1870
|
+
placeholderColor: /* @__PURE__ */ m("colors"),
|
|
1871
|
+
placeholderOpacity: /* @__PURE__ */ m("opacity"),
|
|
1872
|
+
outlineColor: /* @__PURE__ */ m("colors"),
|
|
1873
|
+
outlineOffset: /* @__PURE__ */ j(8, "px"),
|
|
1874
|
+
// 0: '0px',
|
|
1875
|
+
// 1: '1px',
|
|
1876
|
+
// 2: '2px',
|
|
1877
|
+
// 4: '4px',
|
|
1878
|
+
// 8: '8px',,
|
|
1879
|
+
outlineWidth: /* @__PURE__ */ j(8, "px"),
|
|
1880
|
+
// 0: '0px',
|
|
1881
|
+
// 1: '1px',
|
|
1882
|
+
// 2: '2px',
|
|
1883
|
+
// 4: '4px',
|
|
1884
|
+
// 8: '8px',,
|
|
1885
|
+
ringColor: ({ theme: e }) => ({
|
|
1886
|
+
...e("colors"),
|
|
1887
|
+
DEFAULT: "#3b82f6"
|
|
1888
|
+
}),
|
|
1889
|
+
ringOffsetColor: /* @__PURE__ */ m("colors"),
|
|
1890
|
+
ringOffsetWidth: /* @__PURE__ */ j(8, "px"),
|
|
1891
|
+
// 0: '0px',
|
|
1892
|
+
// 1: '1px',
|
|
1893
|
+
// 2: '2px',
|
|
1894
|
+
// 4: '4px',
|
|
1895
|
+
// 8: '8px',,
|
|
1896
|
+
ringOpacity: ({ theme: e }) => ({
|
|
1897
|
+
...e("opacity"),
|
|
1898
|
+
DEFAULT: "0.5"
|
|
1899
|
+
}),
|
|
1900
|
+
ringWidth: {
|
|
1901
|
+
DEFAULT: "3px",
|
|
1902
|
+
.../* @__PURE__ */ j(8, "px")
|
|
1903
|
+
},
|
|
1904
|
+
// 0: '0px',
|
|
1905
|
+
// 1: '1px',
|
|
1906
|
+
// 2: '2px',
|
|
1907
|
+
// 4: '4px',
|
|
1908
|
+
// 8: '8px',
|
|
1909
|
+
rotate: {
|
|
1910
|
+
.../* @__PURE__ */ j(2, "deg"),
|
|
1911
|
+
// 0: '0deg',
|
|
1912
|
+
// 1: '1deg',
|
|
1913
|
+
// 2: '2deg',
|
|
1914
|
+
.../* @__PURE__ */ j(12, "deg", 3),
|
|
1915
|
+
// 3: '3deg',
|
|
1916
|
+
// 6: '6deg',
|
|
1917
|
+
// 12: '12deg',
|
|
1918
|
+
.../* @__PURE__ */ j(180, "deg", 45)
|
|
1919
|
+
},
|
|
1920
|
+
// 45: '45deg',
|
|
1921
|
+
// 90: '90deg',
|
|
1922
|
+
// 180: '180deg',
|
|
1923
|
+
saturate: /* @__PURE__ */ O(200, "", 100, 0, 50),
|
|
1924
|
+
// 0: '0',
|
|
1925
|
+
// 50: '.5',
|
|
1926
|
+
// 100: '1',
|
|
1927
|
+
// 150: '1.5',
|
|
1928
|
+
// 200: '2',
|
|
1929
|
+
scale: {
|
|
1930
|
+
.../* @__PURE__ */ O(150, "", 100, 0, 50),
|
|
1931
|
+
// 0: '0',
|
|
1932
|
+
// 50: '.5',
|
|
1933
|
+
// 150: '1.5',
|
|
1934
|
+
.../* @__PURE__ */ O(110, "", 100, 90, 5),
|
|
1935
|
+
// 90: '.9',
|
|
1936
|
+
// 95: '.95',
|
|
1937
|
+
// 100: '1',
|
|
1938
|
+
// 105: '1.05',
|
|
1939
|
+
// 110: '1.1',
|
|
1940
|
+
75: "0.75",
|
|
1941
|
+
125: "1.25"
|
|
1942
|
+
},
|
|
1943
|
+
scrollMargin: /* @__PURE__ */ m("spacing"),
|
|
1944
|
+
scrollPadding: /* @__PURE__ */ m("spacing"),
|
|
1945
|
+
sepia: {
|
|
1946
|
+
0: "0",
|
|
1947
|
+
DEFAULT: "100%"
|
|
1948
|
+
},
|
|
1949
|
+
skew: {
|
|
1950
|
+
.../* @__PURE__ */ j(2, "deg"),
|
|
1951
|
+
// 0: '0deg',
|
|
1952
|
+
// 1: '1deg',
|
|
1953
|
+
// 2: '2deg',
|
|
1954
|
+
.../* @__PURE__ */ j(12, "deg", 3)
|
|
1955
|
+
},
|
|
1956
|
+
// 3: '3deg',
|
|
1957
|
+
// 6: '6deg',
|
|
1958
|
+
// 12: '12deg',
|
|
1959
|
+
space: /* @__PURE__ */ m("spacing"),
|
|
1960
|
+
stroke: ({ theme: e }) => ({
|
|
1961
|
+
...e("colors"),
|
|
1962
|
+
none: "none"
|
|
1963
|
+
}),
|
|
1964
|
+
strokeWidth: /* @__PURE__ */ O(2),
|
|
1965
|
+
// 0: '0',
|
|
1966
|
+
// 1: '1',
|
|
1967
|
+
// 2: '2',,
|
|
1968
|
+
textColor: /* @__PURE__ */ m("colors"),
|
|
1969
|
+
textDecorationColor: /* @__PURE__ */ m("colors"),
|
|
1970
|
+
textDecorationThickness: {
|
|
1971
|
+
"from-font": "from-font",
|
|
1972
|
+
auto: "auto",
|
|
1973
|
+
.../* @__PURE__ */ j(8, "px")
|
|
1974
|
+
},
|
|
1975
|
+
// 0: '0px',
|
|
1976
|
+
// 1: '1px',
|
|
1977
|
+
// 2: '2px',
|
|
1978
|
+
// 4: '4px',
|
|
1979
|
+
// 8: '8px',
|
|
1980
|
+
textUnderlineOffset: {
|
|
1981
|
+
auto: "auto",
|
|
1982
|
+
.../* @__PURE__ */ j(8, "px")
|
|
1983
|
+
},
|
|
1984
|
+
// 0: '0px',
|
|
1985
|
+
// 1: '1px',
|
|
1986
|
+
// 2: '2px',
|
|
1987
|
+
// 4: '4px',
|
|
1988
|
+
// 8: '8px',
|
|
1989
|
+
textIndent: /* @__PURE__ */ m("spacing"),
|
|
1990
|
+
textOpacity: /* @__PURE__ */ m("opacity"),
|
|
1991
|
+
// transformOrigin: {
|
|
1992
|
+
// // The following are already handled by the plugin:
|
|
1993
|
+
// // center, right, left, bottom, top
|
|
1994
|
+
// // 'bottom-10px-right-20px' -> bottom 10px right 20px
|
|
1995
|
+
// },
|
|
1996
|
+
transitionDuration: ({ theme: e }) => ({
|
|
1997
|
+
...e("durations"),
|
|
1998
|
+
DEFAULT: "150ms"
|
|
1999
|
+
}),
|
|
2000
|
+
transitionDelay: /* @__PURE__ */ m("durations"),
|
|
2001
|
+
transitionProperty: {
|
|
2002
|
+
none: "none",
|
|
2003
|
+
all: "all",
|
|
2004
|
+
DEFAULT: "color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",
|
|
2005
|
+
colors: "color,background-color,border-color,text-decoration-color,fill,stroke",
|
|
2006
|
+
opacity: "opacity",
|
|
2007
|
+
shadow: "box-shadow",
|
|
2008
|
+
transform: "transform"
|
|
2009
|
+
},
|
|
2010
|
+
transitionTimingFunction: {
|
|
2011
|
+
DEFAULT: "cubic-bezier(0.4,0,0.2,1)",
|
|
2012
|
+
linear: "linear",
|
|
2013
|
+
in: "cubic-bezier(0.4,0,1,1)",
|
|
2014
|
+
out: "cubic-bezier(0,0,0.2,1)",
|
|
2015
|
+
"in-out": "cubic-bezier(0.4,0,0.2,1)"
|
|
2016
|
+
},
|
|
2017
|
+
translate: ({ theme: e }) => ({
|
|
2018
|
+
...e("spacing"),
|
|
2019
|
+
...te(2, 4),
|
|
2020
|
+
// '1/2': '50%',
|
|
2021
|
+
// '1/3': '33.333333%',
|
|
2022
|
+
// '2/3': '66.666667%',
|
|
2023
|
+
// '1/4': '25%',
|
|
2024
|
+
// '2/4': '50%',
|
|
2025
|
+
// '3/4': '75%',
|
|
2026
|
+
full: "100%"
|
|
2027
|
+
}),
|
|
2028
|
+
width: ({ theme: e }) => ({
|
|
2029
|
+
min: "min-content",
|
|
2030
|
+
max: "max-content",
|
|
2031
|
+
fit: "fit-content",
|
|
2032
|
+
screen: "100vw",
|
|
2033
|
+
...e("flexBasis")
|
|
2034
|
+
}),
|
|
2035
|
+
willChange: {
|
|
2036
|
+
scroll: "scroll-position"
|
|
2037
|
+
},
|
|
2038
|
+
// other options handled by rules
|
|
2039
|
+
// auto: 'auto',
|
|
2040
|
+
// contents: 'contents',
|
|
2041
|
+
// transform: 'transform',
|
|
2042
|
+
zIndex: {
|
|
2043
|
+
.../* @__PURE__ */ O(50, "", 1, 0, 10),
|
|
2044
|
+
// 0: '0',
|
|
2045
|
+
// 10: '10',
|
|
2046
|
+
// 20: '20',
|
|
2047
|
+
// 30: '30',
|
|
2048
|
+
// 40: '40',
|
|
2049
|
+
// 50: '50',
|
|
2050
|
+
auto: "auto"
|
|
2051
|
+
}
|
|
2052
|
+
};
|
|
2053
|
+
function te(e, t) {
|
|
2054
|
+
let r = {};
|
|
2055
|
+
do
|
|
2056
|
+
for (var o = 1; o < e; o++)
|
|
2057
|
+
r[`${o}/${e}`] = Number((o / e * 100).toFixed(6)) + "%";
|
|
2058
|
+
while (++e <= t);
|
|
2059
|
+
return r;
|
|
2060
|
+
}
|
|
2061
|
+
function j(e, t, r = 0) {
|
|
2062
|
+
let o = {};
|
|
2063
|
+
for (; r <= e; r = 2 * r || 1)
|
|
2064
|
+
o[r] = r + t;
|
|
2065
|
+
return o;
|
|
2066
|
+
}
|
|
2067
|
+
function O(e, t = "", r = 1, o = 0, n = 1, i = {}) {
|
|
2068
|
+
for (; o <= e; o += n)
|
|
2069
|
+
i[o] = o / r + t;
|
|
2070
|
+
return i;
|
|
2071
|
+
}
|
|
2072
|
+
function m(e) {
|
|
2073
|
+
return ({ theme: t }) => t(e);
|
|
2074
|
+
}
|
|
2075
|
+
let rr = {
|
|
2076
|
+
/*
|
|
2077
|
+
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
2078
|
+
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
|
2079
|
+
*/
|
|
2080
|
+
"*,::before,::after": {
|
|
2081
|
+
boxSizing: "border-box",
|
|
2082
|
+
/* 1 */
|
|
2083
|
+
borderWidth: "0",
|
|
2084
|
+
/* 2 */
|
|
2085
|
+
borderStyle: "solid",
|
|
2086
|
+
/* 2 */
|
|
2087
|
+
borderColor: "theme(borderColor.DEFAULT, currentColor)"
|
|
2088
|
+
},
|
|
2089
|
+
/* 2 */
|
|
2090
|
+
"::before,::after": {
|
|
2091
|
+
"--tw-content": "''"
|
|
2092
|
+
},
|
|
2093
|
+
/*
|
|
2094
|
+
1. Use a consistent sensible line-height in all browsers.
|
|
2095
|
+
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
2096
|
+
3. Use a more readable tab size.
|
|
2097
|
+
4. Use the user's configured `sans` font-family by default.
|
|
2098
|
+
5. Use the user's configured `sans` font-feature-settings by default.
|
|
2099
|
+
*/
|
|
2100
|
+
html: {
|
|
2101
|
+
lineHeight: 1.5,
|
|
2102
|
+
/* 1 */
|
|
2103
|
+
WebkitTextSizeAdjust: "100%",
|
|
2104
|
+
/* 2 */
|
|
2105
|
+
MozTabSize: "4",
|
|
2106
|
+
/* 3 */
|
|
2107
|
+
tabSize: 4,
|
|
2108
|
+
/* 3 */
|
|
2109
|
+
fontFamily: `theme(fontFamily.sans, ${ge.fontFamily.sans})`,
|
|
2110
|
+
/* 4 */
|
|
2111
|
+
fontFeatureSettings: "theme(fontFamily.sans[1].fontFeatureSettings, normal)"
|
|
2112
|
+
},
|
|
2113
|
+
/* 5 */
|
|
2114
|
+
/*
|
|
2115
|
+
1. Remove the margin in all browsers.
|
|
2116
|
+
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
|
|
2117
|
+
*/
|
|
2118
|
+
body: {
|
|
2119
|
+
margin: "0",
|
|
2120
|
+
/* 1 */
|
|
2121
|
+
lineHeight: "inherit"
|
|
2122
|
+
},
|
|
2123
|
+
/* 2 */
|
|
2124
|
+
/*
|
|
2125
|
+
1. Add the correct height in Firefox.
|
|
2126
|
+
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
2127
|
+
3. Ensure horizontal rules are visible by default.
|
|
2128
|
+
*/
|
|
2129
|
+
hr: {
|
|
2130
|
+
height: "0",
|
|
2131
|
+
/* 1 */
|
|
2132
|
+
color: "inherit",
|
|
2133
|
+
/* 2 */
|
|
2134
|
+
borderTopWidth: "1px"
|
|
2135
|
+
},
|
|
2136
|
+
/* 3 */
|
|
2137
|
+
/*
|
|
2138
|
+
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
2139
|
+
*/
|
|
2140
|
+
"abbr:where([title])": {
|
|
2141
|
+
textDecoration: "underline dotted"
|
|
2142
|
+
},
|
|
2143
|
+
/*
|
|
2144
|
+
Remove the default font size and weight for headings.
|
|
2145
|
+
*/
|
|
2146
|
+
"h1,h2,h3,h4,h5,h6": {
|
|
2147
|
+
fontSize: "inherit",
|
|
2148
|
+
fontWeight: "inherit"
|
|
2149
|
+
},
|
|
2150
|
+
/*
|
|
2151
|
+
Reset links to optimize for opt-in styling instead of opt-out.
|
|
2152
|
+
*/
|
|
2153
|
+
a: {
|
|
2154
|
+
color: "inherit",
|
|
2155
|
+
textDecoration: "inherit"
|
|
2156
|
+
},
|
|
2157
|
+
/*
|
|
2158
|
+
Add the correct font weight in Edge and Safari.
|
|
2159
|
+
*/
|
|
2160
|
+
"b,strong": {
|
|
2161
|
+
fontWeight: "bolder"
|
|
2162
|
+
},
|
|
2163
|
+
/*
|
|
2164
|
+
1. Use the user's configured `mono` font family by default.
|
|
2165
|
+
2. Use the user's configured `mono` font-feature-settings by default.
|
|
2166
|
+
3. Correct the odd `em` font sizing in all browsers.
|
|
2167
|
+
*/
|
|
2168
|
+
"code,kbd,samp,pre": {
|
|
2169
|
+
fontFamily: `theme(fontFamily.mono, ${ge.fontFamily.mono})`,
|
|
2170
|
+
fontFeatureSettings: "theme(fontFamily.mono[1].fontFeatureSettings, normal)",
|
|
2171
|
+
fontSize: "1em"
|
|
2172
|
+
},
|
|
2173
|
+
/*
|
|
2174
|
+
Add the correct font size in all browsers.
|
|
2175
|
+
*/
|
|
2176
|
+
small: {
|
|
2177
|
+
fontSize: "80%"
|
|
2178
|
+
},
|
|
2179
|
+
/*
|
|
2180
|
+
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
|
|
2181
|
+
*/
|
|
2182
|
+
"sub,sup": {
|
|
2183
|
+
fontSize: "75%",
|
|
2184
|
+
lineHeight: 0,
|
|
2185
|
+
position: "relative",
|
|
2186
|
+
verticalAlign: "baseline"
|
|
2187
|
+
},
|
|
2188
|
+
sub: {
|
|
2189
|
+
bottom: "-0.25em"
|
|
2190
|
+
},
|
|
2191
|
+
sup: {
|
|
2192
|
+
top: "-0.5em"
|
|
2193
|
+
},
|
|
2194
|
+
/*
|
|
2195
|
+
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
|
2196
|
+
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
2197
|
+
3. Remove gaps between table borders by default.
|
|
2198
|
+
*/
|
|
2199
|
+
table: {
|
|
2200
|
+
textIndent: "0",
|
|
2201
|
+
/* 1 */
|
|
2202
|
+
borderColor: "inherit",
|
|
2203
|
+
/* 2 */
|
|
2204
|
+
borderCollapse: "collapse"
|
|
2205
|
+
},
|
|
2206
|
+
/* 3 */
|
|
2207
|
+
/*
|
|
2208
|
+
1. Change the font styles in all browsers.
|
|
2209
|
+
2. Remove the margin in Firefox and Safari.
|
|
2210
|
+
3. Remove default padding in all browsers.
|
|
2211
|
+
*/
|
|
2212
|
+
"button,input,optgroup,select,textarea": {
|
|
2213
|
+
fontFamily: "inherit",
|
|
2214
|
+
/* 1 */
|
|
2215
|
+
fontSize: "100%",
|
|
2216
|
+
/* 1 */
|
|
2217
|
+
lineHeight: "inherit",
|
|
2218
|
+
/* 1 */
|
|
2219
|
+
color: "inherit",
|
|
2220
|
+
/* 1 */
|
|
2221
|
+
margin: "0",
|
|
2222
|
+
/* 2 */
|
|
2223
|
+
padding: "0"
|
|
2224
|
+
},
|
|
2225
|
+
/* 3 */
|
|
2226
|
+
/*
|
|
2227
|
+
Remove the inheritance of text transform in Edge and Firefox.
|
|
2228
|
+
*/
|
|
2229
|
+
"button,select": {
|
|
2230
|
+
textTransform: "none"
|
|
2231
|
+
},
|
|
2232
|
+
/*
|
|
2233
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
|
2234
|
+
2. Remove default button styles.
|
|
2235
|
+
*/
|
|
2236
|
+
"button,[type='button'],[type='reset'],[type='submit']": {
|
|
2237
|
+
WebkitAppearance: "button",
|
|
2238
|
+
/* 1 */
|
|
2239
|
+
backgroundColor: "transparent",
|
|
2240
|
+
/* 2 */
|
|
2241
|
+
backgroundImage: "none"
|
|
2242
|
+
},
|
|
2243
|
+
/* 4 */
|
|
2244
|
+
/*
|
|
2245
|
+
Use the modern Firefox focus style for all focusable elements.
|
|
2246
|
+
*/
|
|
2247
|
+
":-moz-focusring": {
|
|
2248
|
+
outline: "auto"
|
|
2249
|
+
},
|
|
2250
|
+
/*
|
|
2251
|
+
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
|
2252
|
+
*/
|
|
2253
|
+
":-moz-ui-invalid": {
|
|
2254
|
+
boxShadow: "none"
|
|
2255
|
+
},
|
|
2256
|
+
/*
|
|
2257
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
|
2258
|
+
*/
|
|
2259
|
+
progress: {
|
|
2260
|
+
verticalAlign: "baseline"
|
|
2261
|
+
},
|
|
2262
|
+
/*
|
|
2263
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
|
2264
|
+
*/
|
|
2265
|
+
"::-webkit-inner-spin-button,::-webkit-outer-spin-button": {
|
|
2266
|
+
height: "auto"
|
|
2267
|
+
},
|
|
2268
|
+
/*
|
|
2269
|
+
1. Correct the odd appearance in Chrome and Safari.
|
|
2270
|
+
2. Correct the outline style in Safari.
|
|
2271
|
+
*/
|
|
2272
|
+
"[type='search']": {
|
|
2273
|
+
WebkitAppearance: "textfield",
|
|
2274
|
+
/* 1 */
|
|
2275
|
+
outlineOffset: "-2px"
|
|
2276
|
+
},
|
|
2277
|
+
/* 2 */
|
|
2278
|
+
/*
|
|
2279
|
+
Remove the inner padding in Chrome and Safari on macOS.
|
|
2280
|
+
*/
|
|
2281
|
+
"::-webkit-search-decoration": {
|
|
2282
|
+
WebkitAppearance: "none"
|
|
2283
|
+
},
|
|
2284
|
+
/*
|
|
2285
|
+
1. Correct the inability to style clickable types in iOS and Safari.
|
|
2286
|
+
2. Change font properties to `inherit` in Safari.
|
|
2287
|
+
*/
|
|
2288
|
+
"::-webkit-file-upload-button": {
|
|
2289
|
+
WebkitAppearance: "button",
|
|
2290
|
+
/* 1 */
|
|
2291
|
+
font: "inherit"
|
|
2292
|
+
},
|
|
2293
|
+
/* 2 */
|
|
2294
|
+
/*
|
|
2295
|
+
Add the correct display in Chrome and Safari.
|
|
2296
|
+
*/
|
|
2297
|
+
summary: {
|
|
2298
|
+
display: "list-item"
|
|
2299
|
+
},
|
|
2300
|
+
/*
|
|
2301
|
+
Removes the default spacing and border for appropriate elements.
|
|
2302
|
+
*/
|
|
2303
|
+
"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre": {
|
|
2304
|
+
margin: "0"
|
|
2305
|
+
},
|
|
2306
|
+
fieldset: {
|
|
2307
|
+
margin: "0",
|
|
2308
|
+
padding: "0"
|
|
2309
|
+
},
|
|
2310
|
+
legend: {
|
|
2311
|
+
padding: "0"
|
|
2312
|
+
},
|
|
2313
|
+
"ol,ul,menu": {
|
|
2314
|
+
listStyle: "none",
|
|
2315
|
+
margin: "0",
|
|
2316
|
+
padding: "0"
|
|
2317
|
+
},
|
|
2318
|
+
/*
|
|
2319
|
+
Prevent resizing textareas horizontally by default.
|
|
2320
|
+
*/
|
|
2321
|
+
textarea: {
|
|
2322
|
+
resize: "vertical"
|
|
2323
|
+
},
|
|
2324
|
+
/*
|
|
2325
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
|
2326
|
+
2. Set the default placeholder color to the user's configured gray 400 color.
|
|
2327
|
+
*/
|
|
2328
|
+
"input::placeholder,textarea::placeholder": {
|
|
2329
|
+
opacity: 1,
|
|
2330
|
+
/* 1 */
|
|
2331
|
+
color: "theme(colors.gray.400, #9ca3af)"
|
|
2332
|
+
},
|
|
2333
|
+
/* 2 */
|
|
2334
|
+
/*
|
|
2335
|
+
Set the default cursor for buttons.
|
|
2336
|
+
*/
|
|
2337
|
+
'button,[role="button"]': {
|
|
2338
|
+
cursor: "pointer"
|
|
2339
|
+
},
|
|
2340
|
+
/*
|
|
2341
|
+
Make sure disabled buttons don't get the pointer cursor.
|
|
2342
|
+
*/
|
|
2343
|
+
":disabled": {
|
|
2344
|
+
cursor: "default"
|
|
2345
|
+
},
|
|
2346
|
+
/*
|
|
2347
|
+
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
2348
|
+
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
2349
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
2350
|
+
*/
|
|
2351
|
+
"img,svg,video,canvas,audio,iframe,embed,object": {
|
|
2352
|
+
display: "block",
|
|
2353
|
+
/* 1 */
|
|
2354
|
+
verticalAlign: "middle"
|
|
2355
|
+
},
|
|
2356
|
+
/* 2 */
|
|
2357
|
+
/*
|
|
2358
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
2359
|
+
*/
|
|
2360
|
+
"img,video": {
|
|
2361
|
+
maxWidth: "100%",
|
|
2362
|
+
height: "auto"
|
|
2363
|
+
},
|
|
2364
|
+
/* Make elements with the HTML hidden attribute stay hidden by default */
|
|
2365
|
+
"[hidden]": {
|
|
2366
|
+
display: "none"
|
|
2367
|
+
}
|
|
2368
|
+
}, or = [
|
|
2369
|
+
/* arbitrary properties: [paint-order:markers] */
|
|
2370
|
+
d("\\[([-\\w]+):(.+)]", ({ 1: e, 2: t }, r) => ({
|
|
2371
|
+
"@layer overrides": {
|
|
2372
|
+
"&": {
|
|
2373
|
+
[e]: P(`[${t}]`, "", r)
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
})),
|
|
2377
|
+
/* Styling based on parent and peer state */
|
|
2378
|
+
d("(group|peer)([~/][^-[]+)?", ({ input: e }, { h: t }) => [
|
|
2379
|
+
{
|
|
2380
|
+
c: t(e)
|
|
2381
|
+
}
|
|
2382
|
+
]),
|
|
2383
|
+
/* LAYOUT */
|
|
2384
|
+
p("aspect-", "aspectRatio"),
|
|
2385
|
+
d("container", (e, { theme: t }) => {
|
|
2386
|
+
let { screens: r = t("screens"), center: o, padding: n } = t("container"), i = {
|
|
2387
|
+
width: "100%",
|
|
2388
|
+
marginRight: o && "auto",
|
|
2389
|
+
marginLeft: o && "auto",
|
|
2390
|
+
...l("xs")
|
|
2391
|
+
};
|
|
2392
|
+
for (let s in r) {
|
|
2393
|
+
let a = r[s];
|
|
2394
|
+
typeof a == "string" && (i[De(a)] = {
|
|
2395
|
+
"&": {
|
|
2396
|
+
maxWidth: a,
|
|
2397
|
+
...l(s)
|
|
2398
|
+
}
|
|
2399
|
+
});
|
|
2400
|
+
}
|
|
2401
|
+
return i;
|
|
2402
|
+
function l(s) {
|
|
2403
|
+
let a = n && (typeof n == "string" ? n : n[s] || n.DEFAULT);
|
|
2404
|
+
if (a)
|
|
2405
|
+
return {
|
|
2406
|
+
paddingRight: a,
|
|
2407
|
+
paddingLeft: a
|
|
2408
|
+
};
|
|
2409
|
+
}
|
|
2410
|
+
}),
|
|
2411
|
+
// Content
|
|
2412
|
+
p("content-", "content", ({ _: e }) => ({
|
|
2413
|
+
"--tw-content": e,
|
|
2414
|
+
content: "var(--tw-content)"
|
|
2415
|
+
})),
|
|
2416
|
+
// Box Decoration Break
|
|
2417
|
+
d("(?:box-)?decoration-(slice|clone)", "boxDecorationBreak"),
|
|
2418
|
+
// Box Sizing
|
|
2419
|
+
d("box-(border|content)", "boxSizing", ({ 1: e }) => e + "-box"),
|
|
2420
|
+
// Display
|
|
2421
|
+
d("hidden", {
|
|
2422
|
+
display: "none"
|
|
2423
|
+
}),
|
|
2424
|
+
// Table Layout
|
|
2425
|
+
d("table-(auto|fixed)", "tableLayout"),
|
|
2426
|
+
d([
|
|
2427
|
+
"(block|flex|table|grid|inline|contents|flow-root|list-item)",
|
|
2428
|
+
"(inline-(block|flex|table|grid))",
|
|
2429
|
+
"(table-(caption|cell|column|row|(column|row|footer|header)-group))"
|
|
2430
|
+
], "display"),
|
|
2431
|
+
// Floats
|
|
2432
|
+
"(float)-(left|right|none)",
|
|
2433
|
+
// Clear
|
|
2434
|
+
"(clear)-(left|right|none|both)",
|
|
2435
|
+
// Overflow
|
|
2436
|
+
"(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)",
|
|
2437
|
+
// Isolation
|
|
2438
|
+
"(isolation)-(auto)",
|
|
2439
|
+
// Isolation
|
|
2440
|
+
d("isolate", "isolation"),
|
|
2441
|
+
// Object Fit
|
|
2442
|
+
d("object-(contain|cover|fill|none|scale-down)", "objectFit"),
|
|
2443
|
+
// Object Position
|
|
2444
|
+
p("object-", "objectPosition"),
|
|
2445
|
+
d("object-(top|bottom|center|(left|right)(-(top|bottom))?)", "objectPosition", se),
|
|
2446
|
+
// Overscroll Behavior
|
|
2447
|
+
d("overscroll(-[xy])?-(auto|contain|none)", ({ 1: e = "", 2: t }) => ({
|
|
2448
|
+
["overscroll-behavior" + e]: t
|
|
2449
|
+
})),
|
|
2450
|
+
// Position
|
|
2451
|
+
d("(static|fixed|absolute|relative|sticky)", "position"),
|
|
2452
|
+
// Top / Right / Bottom / Left
|
|
2453
|
+
p("-?inset(-[xy])?(?:$|-)", "inset", ({ 1: e, _: t }) => ({
|
|
2454
|
+
top: e != "-x" && t,
|
|
2455
|
+
right: e != "-y" && t,
|
|
2456
|
+
bottom: e != "-x" && t,
|
|
2457
|
+
left: e != "-y" && t
|
|
2458
|
+
})),
|
|
2459
|
+
p("-?(top|bottom|left|right)(?:$|-)", "inset"),
|
|
2460
|
+
// Visibility
|
|
2461
|
+
d("(visible|collapse)", "visibility"),
|
|
2462
|
+
d("invisible", {
|
|
2463
|
+
visibility: "hidden"
|
|
2464
|
+
}),
|
|
2465
|
+
// Z-Index
|
|
2466
|
+
p("-?z-", "zIndex"),
|
|
2467
|
+
/* FLEXBOX */
|
|
2468
|
+
// Flex Direction
|
|
2469
|
+
d("flex-((row|col)(-reverse)?)", "flexDirection", Ye),
|
|
2470
|
+
d("flex-(wrap|wrap-reverse|nowrap)", "flexWrap"),
|
|
2471
|
+
p("(flex-(?:grow|shrink))(?:$|-)"),
|
|
2472
|
+
/*, 'flex-grow' | flex-shrink */
|
|
2473
|
+
p("(flex)-"),
|
|
2474
|
+
/*, 'flex' */
|
|
2475
|
+
p("grow(?:$|-)", "flexGrow"),
|
|
2476
|
+
p("shrink(?:$|-)", "flexShrink"),
|
|
2477
|
+
p("basis-", "flexBasis"),
|
|
2478
|
+
p("-?(order)-"),
|
|
2479
|
+
/*, 'order' */
|
|
2480
|
+
"-?(order)-(\\d+)",
|
|
2481
|
+
/* GRID */
|
|
2482
|
+
// Grid Template Columns
|
|
2483
|
+
p("grid-cols-", "gridTemplateColumns"),
|
|
2484
|
+
d("grid-cols-(\\d+)", "gridTemplateColumns", Qe),
|
|
2485
|
+
// Grid Column Start / End
|
|
2486
|
+
p("col-", "gridColumn"),
|
|
2487
|
+
d("col-(span)-(\\d+)", "gridColumn", Ze),
|
|
2488
|
+
p("col-start-", "gridColumnStart"),
|
|
2489
|
+
d("col-start-(auto|\\d+)", "gridColumnStart"),
|
|
2490
|
+
p("col-end-", "gridColumnEnd"),
|
|
2491
|
+
d("col-end-(auto|\\d+)", "gridColumnEnd"),
|
|
2492
|
+
// Grid Template Rows
|
|
2493
|
+
p("grid-rows-", "gridTemplateRows"),
|
|
2494
|
+
d("grid-rows-(\\d+)", "gridTemplateRows", Qe),
|
|
2495
|
+
// Grid Row Start / End
|
|
2496
|
+
p("row-", "gridRow"),
|
|
2497
|
+
d("row-(span)-(\\d+)", "gridRow", Ze),
|
|
2498
|
+
p("row-start-", "gridRowStart"),
|
|
2499
|
+
d("row-start-(auto|\\d+)", "gridRowStart"),
|
|
2500
|
+
p("row-end-", "gridRowEnd"),
|
|
2501
|
+
d("row-end-(auto|\\d+)", "gridRowEnd"),
|
|
2502
|
+
// Grid Auto Flow
|
|
2503
|
+
d("grid-flow-((row|col)(-dense)?)", "gridAutoFlow", (e) => se(Ye(e))),
|
|
2504
|
+
d("grid-flow-(dense)", "gridAutoFlow"),
|
|
2505
|
+
// Grid Auto Columns
|
|
2506
|
+
p("auto-cols-", "gridAutoColumns"),
|
|
2507
|
+
// Grid Auto Rows
|
|
2508
|
+
p("auto-rows-", "gridAutoRows"),
|
|
2509
|
+
// Gap
|
|
2510
|
+
p("gap-x(?:$|-)", "gap", "columnGap"),
|
|
2511
|
+
p("gap-y(?:$|-)", "gap", "rowGap"),
|
|
2512
|
+
p("gap(?:$|-)", "gap"),
|
|
2513
|
+
/* BOX ALIGNMENT */
|
|
2514
|
+
// Justify Items
|
|
2515
|
+
// Justify Self
|
|
2516
|
+
"(justify-(?:items|self))-",
|
|
2517
|
+
// Justify Content
|
|
2518
|
+
d("justify-", "justifyContent", Je),
|
|
2519
|
+
// Align Content
|
|
2520
|
+
// Align Items
|
|
2521
|
+
// Align Self
|
|
2522
|
+
d("(content|items|self)-", (e) => ({
|
|
2523
|
+
["align-" + e[1]]: Je(e)
|
|
2524
|
+
})),
|
|
2525
|
+
// Place Content
|
|
2526
|
+
// Place Items
|
|
2527
|
+
// Place Self
|
|
2528
|
+
d("(place-(content|items|self))-", ({ 1: e, $$: t }) => ({
|
|
2529
|
+
[e]: ("wun".includes(t[3]) ? "space-" : "") + t
|
|
2530
|
+
})),
|
|
2531
|
+
/* SPACING */
|
|
2532
|
+
// Padding
|
|
2533
|
+
p("p([xytrbl])?(?:$|-)", "padding", X("padding")),
|
|
2534
|
+
// Margin
|
|
2535
|
+
p("-?m([xytrbl])?(?:$|-)", "margin", X("margin")),
|
|
2536
|
+
// Space Between
|
|
2537
|
+
p("-?space-(x|y)(?:$|-)", "space", ({ 1: e, _: t }) => ({
|
|
2538
|
+
"&>:not([hidden])~:not([hidden])": {
|
|
2539
|
+
[`--tw-space-${e}-reverse`]: "0",
|
|
2540
|
+
["margin-" + {
|
|
2541
|
+
y: "top",
|
|
2542
|
+
x: "left"
|
|
2543
|
+
}[e]]: `calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,
|
|
2544
|
+
["margin-" + {
|
|
2545
|
+
y: "bottom",
|
|
2546
|
+
x: "right"
|
|
2547
|
+
}[e]]: `calc(${t} * var(--tw-space-${e}-reverse))`
|
|
2548
|
+
}
|
|
2549
|
+
})),
|
|
2550
|
+
d("space-(x|y)-reverse", ({ 1: e }) => ({
|
|
2551
|
+
"&>:not([hidden])~:not([hidden])": {
|
|
2552
|
+
[`--tw-space-${e}-reverse`]: "1"
|
|
2553
|
+
}
|
|
2554
|
+
})),
|
|
2555
|
+
/* SIZING */
|
|
2556
|
+
// Width
|
|
2557
|
+
p("w-", "width"),
|
|
2558
|
+
// Min-Width
|
|
2559
|
+
p("min-w-", "minWidth"),
|
|
2560
|
+
// Max-Width
|
|
2561
|
+
p("max-w-", "maxWidth"),
|
|
2562
|
+
// Height
|
|
2563
|
+
p("h-", "height"),
|
|
2564
|
+
// Min-Height
|
|
2565
|
+
p("min-h-", "minHeight"),
|
|
2566
|
+
// Max-Height
|
|
2567
|
+
p("max-h-", "maxHeight"),
|
|
2568
|
+
/* TYPOGRAPHY */
|
|
2569
|
+
// Font Weight
|
|
2570
|
+
p("font-", "fontWeight"),
|
|
2571
|
+
// Font Family
|
|
2572
|
+
p("font-", "fontFamily", ({ _: e }) => typeof (e = S(e))[1] == "string" ? {
|
|
2573
|
+
fontFamily: M(e)
|
|
2574
|
+
} : {
|
|
2575
|
+
fontFamily: M(e[0]),
|
|
2576
|
+
...e[1]
|
|
2577
|
+
}),
|
|
2578
|
+
// Font Smoothing
|
|
2579
|
+
d("antialiased", {
|
|
2580
|
+
WebkitFontSmoothing: "antialiased",
|
|
2581
|
+
MozOsxFontSmoothing: "grayscale"
|
|
2582
|
+
}),
|
|
2583
|
+
d("subpixel-antialiased", {
|
|
2584
|
+
WebkitFontSmoothing: "auto",
|
|
2585
|
+
MozOsxFontSmoothing: "auto"
|
|
2586
|
+
}),
|
|
2587
|
+
// Font Style
|
|
2588
|
+
d("italic", "fontStyle"),
|
|
2589
|
+
d("not-italic", {
|
|
2590
|
+
fontStyle: "normal"
|
|
2591
|
+
}),
|
|
2592
|
+
// Font Variant Numeric
|
|
2593
|
+
d("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)", ({ 1: e, 2: t = "", 3: r }) => (
|
|
2594
|
+
// normal-nums
|
|
2595
|
+
t == "normal" ? {
|
|
2596
|
+
fontVariantNumeric: "normal"
|
|
2597
|
+
} : {
|
|
2598
|
+
["--tw-" + (r ? (
|
|
2599
|
+
// diagonal-fractions, stacked-fractions
|
|
2600
|
+
"numeric-fraction"
|
|
2601
|
+
) : "pt".includes(t[0]) ? (
|
|
2602
|
+
// proportional-nums, tabular-nums
|
|
2603
|
+
"numeric-spacing"
|
|
2604
|
+
) : t ? (
|
|
2605
|
+
// lining-nums, oldstyle-nums
|
|
2606
|
+
"numeric-figure"
|
|
2607
|
+
) : (
|
|
2608
|
+
// ordinal, slashed-zero
|
|
2609
|
+
e
|
|
2610
|
+
))]: e,
|
|
2611
|
+
fontVariantNumeric: "var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",
|
|
2612
|
+
...I({
|
|
2613
|
+
"--tw-ordinal": "var(--tw-empty,/*!*/ /*!*/)",
|
|
2614
|
+
"--tw-slashed-zero": "var(--tw-empty,/*!*/ /*!*/)",
|
|
2615
|
+
"--tw-numeric-figure": "var(--tw-empty,/*!*/ /*!*/)",
|
|
2616
|
+
"--tw-numeric-spacing": "var(--tw-empty,/*!*/ /*!*/)",
|
|
2617
|
+
"--tw-numeric-fraction": "var(--tw-empty,/*!*/ /*!*/)"
|
|
2618
|
+
})
|
|
2619
|
+
}
|
|
2620
|
+
)),
|
|
2621
|
+
// Letter Spacing
|
|
2622
|
+
p("tracking-", "letterSpacing"),
|
|
2623
|
+
// Line Height
|
|
2624
|
+
p("leading-", "lineHeight"),
|
|
2625
|
+
// List Style Position
|
|
2626
|
+
d("list-(inside|outside)", "listStylePosition"),
|
|
2627
|
+
// List Style Type
|
|
2628
|
+
p("list-", "listStyleType"),
|
|
2629
|
+
d("list-", "listStyleType"),
|
|
2630
|
+
// Placeholder Opacity
|
|
2631
|
+
p("placeholder-opacity-", "placeholderOpacity", ({ _: e }) => ({
|
|
2632
|
+
"&::placeholder": {
|
|
2633
|
+
"--tw-placeholder-opacity": e
|
|
2634
|
+
}
|
|
2635
|
+
})),
|
|
2636
|
+
// Placeholder Color
|
|
2637
|
+
$("placeholder-", {
|
|
2638
|
+
property: "color",
|
|
2639
|
+
selector: "&::placeholder"
|
|
2640
|
+
}),
|
|
2641
|
+
// Text Alignment
|
|
2642
|
+
d("text-(left|center|right|justify|start|end)", "textAlign"),
|
|
2643
|
+
d("text-(ellipsis|clip)", "textOverflow"),
|
|
2644
|
+
// Text Opacity
|
|
2645
|
+
p("text-opacity-", "textOpacity", "--tw-text-opacity"),
|
|
2646
|
+
// Text Color
|
|
2647
|
+
$("text-", {
|
|
2648
|
+
property: "color"
|
|
2649
|
+
}),
|
|
2650
|
+
// Font Size
|
|
2651
|
+
p("text-", "fontSize", ({ _: e }) => typeof e == "string" ? {
|
|
2652
|
+
fontSize: e
|
|
2653
|
+
} : {
|
|
2654
|
+
fontSize: e[0],
|
|
2655
|
+
...typeof e[1] == "string" ? {
|
|
2656
|
+
lineHeight: e[1]
|
|
2657
|
+
} : e[1]
|
|
2658
|
+
}),
|
|
2659
|
+
// Text Indent
|
|
2660
|
+
p("indent-", "textIndent"),
|
|
2661
|
+
// Text Decoration
|
|
2662
|
+
d("(overline|underline|line-through)", "textDecorationLine"),
|
|
2663
|
+
d("no-underline", {
|
|
2664
|
+
textDecorationLine: "none"
|
|
2665
|
+
}),
|
|
2666
|
+
// Text Underline offset
|
|
2667
|
+
p("underline-offset-", "textUnderlineOffset"),
|
|
2668
|
+
// Text Decoration Color
|
|
2669
|
+
$("decoration-", {
|
|
2670
|
+
section: "textDecorationColor",
|
|
2671
|
+
opacityVariable: !1,
|
|
2672
|
+
opacitySection: "opacity"
|
|
2673
|
+
}),
|
|
2674
|
+
// Text Decoration Thickness
|
|
2675
|
+
p("decoration-", "textDecorationThickness"),
|
|
2676
|
+
// Text Decoration Style
|
|
2677
|
+
d("decoration-", "textDecorationStyle"),
|
|
2678
|
+
// Text Transform
|
|
2679
|
+
d("(uppercase|lowercase|capitalize)", "textTransform"),
|
|
2680
|
+
d("normal-case", {
|
|
2681
|
+
textTransform: "none"
|
|
2682
|
+
}),
|
|
2683
|
+
// Text Overflow
|
|
2684
|
+
d("truncate", {
|
|
2685
|
+
overflow: "hidden",
|
|
2686
|
+
whiteSpace: "nowrap",
|
|
2687
|
+
textOverflow: "ellipsis"
|
|
2688
|
+
}),
|
|
2689
|
+
// Vertical Alignment
|
|
2690
|
+
d("align-", "verticalAlign"),
|
|
2691
|
+
// Whitespace
|
|
2692
|
+
d("whitespace-", "whiteSpace"),
|
|
2693
|
+
// Word Break
|
|
2694
|
+
d("break-normal", {
|
|
2695
|
+
wordBreak: "normal",
|
|
2696
|
+
overflowWrap: "normal"
|
|
2697
|
+
}),
|
|
2698
|
+
d("break-words", {
|
|
2699
|
+
overflowWrap: "break-word"
|
|
2700
|
+
}),
|
|
2701
|
+
d("break-all", {
|
|
2702
|
+
wordBreak: "break-all"
|
|
2703
|
+
}),
|
|
2704
|
+
d("break-keep", {
|
|
2705
|
+
wordBreak: "keep-all"
|
|
2706
|
+
}),
|
|
2707
|
+
// Caret Color
|
|
2708
|
+
$("caret-", {
|
|
2709
|
+
// section: 'caretColor',
|
|
2710
|
+
opacityVariable: !1,
|
|
2711
|
+
opacitySection: "opacity"
|
|
2712
|
+
}),
|
|
2713
|
+
// Accent Color
|
|
2714
|
+
$("accent-", {
|
|
2715
|
+
// section: 'accentColor',
|
|
2716
|
+
opacityVariable: !1,
|
|
2717
|
+
opacitySection: "opacity"
|
|
2718
|
+
}),
|
|
2719
|
+
// Gradient Color Stops
|
|
2720
|
+
d("bg-gradient-to-([trbl]|[tb][rl])", "backgroundImage", ({ 1: e }) => `linear-gradient(to ${G(e, " ")},var(--tw-gradient-stops))`),
|
|
2721
|
+
$("from-", {
|
|
2722
|
+
section: "gradientColorStops",
|
|
2723
|
+
opacityVariable: !1,
|
|
2724
|
+
opacitySection: "opacity"
|
|
2725
|
+
}, ({ _: e }) => ({
|
|
2726
|
+
"--tw-gradient-from": e.value,
|
|
2727
|
+
"--tw-gradient-to": e.color({
|
|
2728
|
+
opacityValue: "0"
|
|
2729
|
+
}),
|
|
2730
|
+
"--tw-gradient-stops": "var(--tw-gradient-from),var(--tw-gradient-to)"
|
|
2731
|
+
})),
|
|
2732
|
+
$("via-", {
|
|
2733
|
+
section: "gradientColorStops",
|
|
2734
|
+
opacityVariable: !1,
|
|
2735
|
+
opacitySection: "opacity"
|
|
2736
|
+
}, ({ _: e }) => ({
|
|
2737
|
+
"--tw-gradient-to": e.color({
|
|
2738
|
+
opacityValue: "0"
|
|
2739
|
+
}),
|
|
2740
|
+
"--tw-gradient-stops": `var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`
|
|
2741
|
+
})),
|
|
2742
|
+
$("to-", {
|
|
2743
|
+
section: "gradientColorStops",
|
|
2744
|
+
property: "--tw-gradient-to",
|
|
2745
|
+
opacityVariable: !1,
|
|
2746
|
+
opacitySection: "opacity"
|
|
2747
|
+
}),
|
|
2748
|
+
/* BACKGROUNDS */
|
|
2749
|
+
// Background Attachment
|
|
2750
|
+
d("bg-(fixed|local|scroll)", "backgroundAttachment"),
|
|
2751
|
+
// Background Origin
|
|
2752
|
+
d("bg-origin-(border|padding|content)", "backgroundOrigin", ({ 1: e }) => e + "-box"),
|
|
2753
|
+
// Background Repeat
|
|
2754
|
+
d([
|
|
2755
|
+
"bg-(no-repeat|repeat(-[xy])?)",
|
|
2756
|
+
"bg-repeat-(round|space)"
|
|
2757
|
+
], "backgroundRepeat"),
|
|
2758
|
+
// Background Blend Mode
|
|
2759
|
+
d("bg-blend-", "backgroundBlendMode"),
|
|
2760
|
+
// Background Clip
|
|
2761
|
+
d("bg-clip-(border|padding|content|text)", "backgroundClip", ({ 1: e }) => e + (e == "text" ? "" : "-box")),
|
|
2762
|
+
// Background Opacity
|
|
2763
|
+
p("bg-opacity-", "backgroundOpacity", "--tw-bg-opacity"),
|
|
2764
|
+
// Background Color
|
|
2765
|
+
// bg-${backgroundColor}/${backgroundOpacity}
|
|
2766
|
+
$("bg-", {
|
|
2767
|
+
section: "backgroundColor"
|
|
2768
|
+
}),
|
|
2769
|
+
// Background Image
|
|
2770
|
+
// supported arbitrary types are: length, color, angle, list
|
|
2771
|
+
p("bg-", "backgroundImage"),
|
|
2772
|
+
// Background Position
|
|
2773
|
+
p("bg-", "backgroundPosition"),
|
|
2774
|
+
d("bg-(top|bottom|center|(left|right)(-(top|bottom))?)", "backgroundPosition", se),
|
|
2775
|
+
// Background Size
|
|
2776
|
+
p("bg-", "backgroundSize"),
|
|
2777
|
+
/* BORDERS */
|
|
2778
|
+
// Border Radius
|
|
2779
|
+
p("rounded(?:$|-)", "borderRadius"),
|
|
2780
|
+
p("rounded-([trbl]|[tb][rl])(?:$|-)", "borderRadius", ({ 1: e, _: t }) => {
|
|
2781
|
+
let r = {
|
|
2782
|
+
t: [
|
|
2783
|
+
"tl",
|
|
2784
|
+
"tr"
|
|
2785
|
+
],
|
|
2786
|
+
r: [
|
|
2787
|
+
"tr",
|
|
2788
|
+
"br"
|
|
2789
|
+
],
|
|
2790
|
+
b: [
|
|
2791
|
+
"bl",
|
|
2792
|
+
"br"
|
|
2793
|
+
],
|
|
2794
|
+
l: [
|
|
2795
|
+
"bl",
|
|
2796
|
+
"tl"
|
|
2797
|
+
]
|
|
2798
|
+
}[e] || [
|
|
2799
|
+
e,
|
|
2800
|
+
e
|
|
2801
|
+
];
|
|
2802
|
+
return {
|
|
2803
|
+
[`border-${G(r[0])}-radius`]: t,
|
|
2804
|
+
[`border-${G(r[1])}-radius`]: t
|
|
2805
|
+
};
|
|
2806
|
+
}),
|
|
2807
|
+
// Border Collapse
|
|
2808
|
+
d("border-(collapse|separate)", "borderCollapse"),
|
|
2809
|
+
// Border Opacity
|
|
2810
|
+
p("border-opacity(?:$|-)", "borderOpacity", "--tw-border-opacity"),
|
|
2811
|
+
// Border Style
|
|
2812
|
+
d("border-(solid|dashed|dotted|double|none)", "borderStyle"),
|
|
2813
|
+
// Border Spacing
|
|
2814
|
+
p("border-spacing(-[xy])?(?:$|-)", "borderSpacing", ({ 1: e, _: t }) => ({
|
|
2815
|
+
...I({
|
|
2816
|
+
"--tw-border-spacing-x": "0",
|
|
2817
|
+
"--tw-border-spacing-y": "0"
|
|
2818
|
+
}),
|
|
2819
|
+
["--tw-border-spacing" + (e || "-x")]: t,
|
|
2820
|
+
["--tw-border-spacing" + (e || "-y")]: t,
|
|
2821
|
+
"border-spacing": "var(--tw-border-spacing-x) var(--tw-border-spacing-y)"
|
|
2822
|
+
})),
|
|
2823
|
+
// Border Color
|
|
2824
|
+
$("border-([xytrbl])-", {
|
|
2825
|
+
section: "borderColor"
|
|
2826
|
+
}, X("border", "Color")),
|
|
2827
|
+
$("border-"),
|
|
2828
|
+
// Border Width
|
|
2829
|
+
p("border-([xytrbl])(?:$|-)", "borderWidth", X("border", "Width")),
|
|
2830
|
+
p("border(?:$|-)", "borderWidth"),
|
|
2831
|
+
// Divide Opacity
|
|
2832
|
+
p("divide-opacity(?:$|-)", "divideOpacity", ({ _: e }) => ({
|
|
2833
|
+
"&>:not([hidden])~:not([hidden])": {
|
|
2834
|
+
"--tw-divide-opacity": e
|
|
2835
|
+
}
|
|
2836
|
+
})),
|
|
2837
|
+
// Divide Style
|
|
2838
|
+
d("divide-(solid|dashed|dotted|double|none)", ({ 1: e }) => ({
|
|
2839
|
+
"&>:not([hidden])~:not([hidden])": {
|
|
2840
|
+
borderStyle: e
|
|
2841
|
+
}
|
|
2842
|
+
})),
|
|
2843
|
+
// Divide Width
|
|
2844
|
+
d("divide-([xy]-reverse)", ({ 1: e }) => ({
|
|
2845
|
+
"&>:not([hidden])~:not([hidden])": {
|
|
2846
|
+
["--tw-divide-" + e]: "1"
|
|
2847
|
+
}
|
|
2848
|
+
})),
|
|
2849
|
+
p("divide-([xy])(?:$|-)", "divideWidth", ({ 1: e, _: t }) => {
|
|
2850
|
+
let r = {
|
|
2851
|
+
x: "lr",
|
|
2852
|
+
y: "tb"
|
|
2853
|
+
}[e];
|
|
2854
|
+
return {
|
|
2855
|
+
"&>:not([hidden])~:not([hidden])": {
|
|
2856
|
+
[`--tw-divide-${e}-reverse`]: "0",
|
|
2857
|
+
[`border-${G(r[0])}Width`]: `calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,
|
|
2858
|
+
[`border-${G(r[1])}Width`]: `calc(${t} * var(--tw-divide-${e}-reverse))`
|
|
2859
|
+
}
|
|
2860
|
+
};
|
|
2861
|
+
}),
|
|
2862
|
+
// Divide Color
|
|
2863
|
+
$("divide-", {
|
|
2864
|
+
// section: $0.replace('-', 'Color') -> 'divideColor'
|
|
2865
|
+
property: "borderColor",
|
|
2866
|
+
// opacityVariable: '--tw-border-opacity',
|
|
2867
|
+
// opacitySection: section.replace('Color', 'Opacity') -> 'divideOpacity'
|
|
2868
|
+
selector: "&>:not([hidden])~:not([hidden])"
|
|
2869
|
+
}),
|
|
2870
|
+
// Ring Offset Opacity
|
|
2871
|
+
p("ring-opacity(?:$|-)", "ringOpacity", "--tw-ring-opacity"),
|
|
2872
|
+
// Ring Offset Color
|
|
2873
|
+
$("ring-offset-", {
|
|
2874
|
+
// section: 'ringOffsetColor',
|
|
2875
|
+
property: "--tw-ring-offset-color",
|
|
2876
|
+
opacityVariable: !1
|
|
2877
|
+
}),
|
|
2878
|
+
// opacitySection: section.replace('Color', 'Opacity') -> 'ringOffsetOpacity'
|
|
2879
|
+
// Ring Offset Width
|
|
2880
|
+
p("ring-offset(?:$|-)", "ringOffsetWidth", "--tw-ring-offset-width"),
|
|
2881
|
+
// Ring Inset
|
|
2882
|
+
d("ring-inset", {
|
|
2883
|
+
"--tw-ring-inset": "inset"
|
|
2884
|
+
}),
|
|
2885
|
+
// Ring Color
|
|
2886
|
+
$("ring-", {
|
|
2887
|
+
// section: 'ringColor',
|
|
2888
|
+
property: "--tw-ring-color"
|
|
2889
|
+
}),
|
|
2890
|
+
// opacityVariable: '--tw-ring-opacity',
|
|
2891
|
+
// opacitySection: section.replace('Color', 'Opacity') -> 'ringOpacity'
|
|
2892
|
+
// Ring Width
|
|
2893
|
+
p("ring(?:$|-)", "ringWidth", ({ _: e }, { theme: t }) => ({
|
|
2894
|
+
...I({
|
|
2895
|
+
"--tw-ring-offset-shadow": "0 0 #0000",
|
|
2896
|
+
"--tw-ring-shadow": "0 0 #0000",
|
|
2897
|
+
"--tw-shadow": "0 0 #0000",
|
|
2898
|
+
"--tw-shadow-colored": "0 0 #0000",
|
|
2899
|
+
// Within own declaration to have the defaults above to be merged with defaults from shadow
|
|
2900
|
+
"&": {
|
|
2901
|
+
"--tw-ring-inset": "var(--tw-empty,/*!*/ /*!*/)",
|
|
2902
|
+
"--tw-ring-offset-width": t("ringOffsetWidth", "", "0px"),
|
|
2903
|
+
"--tw-ring-offset-color": z(t("ringOffsetColor", "", "#fff")),
|
|
2904
|
+
"--tw-ring-color": z(t("ringColor", "", "#93c5fd"), {
|
|
2905
|
+
opacityVariable: "--tw-ring-opacity"
|
|
2906
|
+
}),
|
|
2907
|
+
"--tw-ring-opacity": t("ringOpacity", "", "0.5")
|
|
2908
|
+
}
|
|
2909
|
+
}),
|
|
2910
|
+
"--tw-ring-offset-shadow": "var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)",
|
|
2911
|
+
"--tw-ring-shadow": `var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,
|
|
2912
|
+
boxShadow: "var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"
|
|
2913
|
+
})),
|
|
2914
|
+
/* EFFECTS */
|
|
2915
|
+
// Box Shadow Color
|
|
2916
|
+
$("shadow-", {
|
|
2917
|
+
section: "boxShadowColor",
|
|
2918
|
+
opacityVariable: !1,
|
|
2919
|
+
opacitySection: "opacity"
|
|
2920
|
+
}, ({ _: e }) => ({
|
|
2921
|
+
"--tw-shadow-color": e.value,
|
|
2922
|
+
"--tw-shadow": "var(--tw-shadow-colored)"
|
|
2923
|
+
})),
|
|
2924
|
+
// Box Shadow
|
|
2925
|
+
p("shadow(?:$|-)", "boxShadow", ({ _: e }) => ({
|
|
2926
|
+
...I({
|
|
2927
|
+
"--tw-ring-offset-shadow": "0 0 #0000",
|
|
2928
|
+
"--tw-ring-shadow": "0 0 #0000",
|
|
2929
|
+
"--tw-shadow": "0 0 #0000",
|
|
2930
|
+
"--tw-shadow-colored": "0 0 #0000"
|
|
2931
|
+
}),
|
|
2932
|
+
"--tw-shadow": M(e),
|
|
2933
|
+
// replace all colors with reference to --tw-shadow-colored
|
|
2934
|
+
// this matches colors after non-comma char (keyword, offset) before comma or the end
|
|
2935
|
+
"--tw-shadow-colored": M(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g, "$1var(--tw-shadow-color)$2"),
|
|
2936
|
+
boxShadow: "var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"
|
|
2937
|
+
})),
|
|
2938
|
+
// Opacity
|
|
2939
|
+
p("(opacity)-"),
|
|
2940
|
+
/*, 'opacity' */
|
|
2941
|
+
// Mix Blend Mode
|
|
2942
|
+
d("mix-blend-", "mixBlendMode"),
|
|
2943
|
+
/* FILTERS */
|
|
2944
|
+
...Xe(),
|
|
2945
|
+
...Xe("backdrop-"),
|
|
2946
|
+
/* TRANSITIONS AND ANIMATION */
|
|
2947
|
+
// Transition Property
|
|
2948
|
+
p("transition(?:$|-)", "transitionProperty", (e, { theme: t }) => ({
|
|
2949
|
+
transitionProperty: M(e),
|
|
2950
|
+
transitionTimingFunction: e._ == "none" ? void 0 : M(t("transitionTimingFunction", "")),
|
|
2951
|
+
transitionDuration: e._ == "none" ? void 0 : M(t("transitionDuration", ""))
|
|
2952
|
+
})),
|
|
2953
|
+
// Transition Duration
|
|
2954
|
+
p("duration(?:$|-)", "transitionDuration", "transitionDuration", M),
|
|
2955
|
+
// Transition Timing Function
|
|
2956
|
+
p("ease(?:$|-)", "transitionTimingFunction", "transitionTimingFunction", M),
|
|
2957
|
+
// Transition Delay
|
|
2958
|
+
p("delay(?:$|-)", "transitionDelay", "transitionDelay", M),
|
|
2959
|
+
p("animate(?:$|-)", "animation", (e, { theme: t, h: r, e: o }) => {
|
|
2960
|
+
let n = M(e), i = n.split(" "), l = t("keyframes", i[0]);
|
|
2961
|
+
return l ? {
|
|
2962
|
+
["@keyframes " + (i[0] = o(r(i[0])))]: l,
|
|
2963
|
+
animation: i.join(" ")
|
|
2964
|
+
} : {
|
|
2965
|
+
animation: n
|
|
2966
|
+
};
|
|
2967
|
+
}),
|
|
2968
|
+
/* TRANSFORMS */
|
|
2969
|
+
// Transform
|
|
2970
|
+
"(transform)-(none)",
|
|
2971
|
+
d("transform", Oe),
|
|
2972
|
+
d("transform-(cpu|gpu)", ({ 1: e }) => ({
|
|
2973
|
+
"--tw-transform": gt(e == "gpu")
|
|
2974
|
+
})),
|
|
2975
|
+
// Scale
|
|
2976
|
+
p("scale(-[xy])?-", "scale", ({ 1: e, _: t }) => ({
|
|
2977
|
+
["--tw-scale" + (e || "-x")]: t,
|
|
2978
|
+
["--tw-scale" + (e || "-y")]: t,
|
|
2979
|
+
...Oe()
|
|
2980
|
+
})),
|
|
2981
|
+
// Rotate
|
|
2982
|
+
p("-?(rotate)-", "rotate", Te),
|
|
2983
|
+
// Translate
|
|
2984
|
+
p("-?(translate-[xy])-", "translate", Te),
|
|
2985
|
+
// Skew
|
|
2986
|
+
p("-?(skew-[xy])-", "skew", Te),
|
|
2987
|
+
// Transform Origin
|
|
2988
|
+
d("origin-(center|((top|bottom)(-(left|right))?)|left|right)", "transformOrigin", se),
|
|
2989
|
+
/* INTERACTIVITY */
|
|
2990
|
+
// Appearance
|
|
2991
|
+
"(appearance)-",
|
|
2992
|
+
// Columns
|
|
2993
|
+
p("(columns)-"),
|
|
2994
|
+
/*, 'columns' */
|
|
2995
|
+
"(columns)-(\\d+)",
|
|
2996
|
+
// Break Before, After and Inside
|
|
2997
|
+
"(break-(?:before|after|inside))-",
|
|
2998
|
+
// Cursor
|
|
2999
|
+
p("(cursor)-"),
|
|
3000
|
+
/*, 'cursor' */
|
|
3001
|
+
"(cursor)-",
|
|
3002
|
+
// Scroll Snap Type
|
|
3003
|
+
d("snap-(none)", "scroll-snap-type"),
|
|
3004
|
+
d("snap-(x|y|both)", ({ 1: e }) => ({
|
|
3005
|
+
...I({
|
|
3006
|
+
"--tw-scroll-snap-strictness": "proximity"
|
|
3007
|
+
}),
|
|
3008
|
+
"scroll-snap-type": e + " var(--tw-scroll-snap-strictness)"
|
|
3009
|
+
})),
|
|
3010
|
+
d("snap-(mandatory|proximity)", "--tw-scroll-snap-strictness"),
|
|
3011
|
+
// Scroll Snap Align
|
|
3012
|
+
d("snap-(?:(start|end|center)|align-(none))", "scroll-snap-align"),
|
|
3013
|
+
// Scroll Snap Stop
|
|
3014
|
+
d("snap-(normal|always)", "scroll-snap-stop"),
|
|
3015
|
+
d("scroll-(auto|smooth)", "scroll-behavior"),
|
|
3016
|
+
// Scroll Margin
|
|
3017
|
+
// Padding
|
|
3018
|
+
p("scroll-p([xytrbl])?(?:$|-)", "padding", X("scroll-padding")),
|
|
3019
|
+
// Margin
|
|
3020
|
+
p("-?scroll-m([xytrbl])?(?:$|-)", "scroll-margin", X("scroll-margin")),
|
|
3021
|
+
// Touch Action
|
|
3022
|
+
d("touch-(auto|none|manipulation)", "touch-action"),
|
|
3023
|
+
d("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))", ({ 1: e, 2: t, 3: r }) => ({
|
|
3024
|
+
...I({
|
|
3025
|
+
"--tw-pan-x": "var(--tw-empty,/*!*/ /*!*/)",
|
|
3026
|
+
"--tw-pan-y": "var(--tw-empty,/*!*/ /*!*/)",
|
|
3027
|
+
"--tw-pinch-zoom": "var(--tw-empty,/*!*/ /*!*/)",
|
|
3028
|
+
"--tw-touch-action": "var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"
|
|
3029
|
+
}),
|
|
3030
|
+
// x, left, right -> pan-x
|
|
3031
|
+
// y, up, down -> pan-y
|
|
3032
|
+
// -> pinch-zoom
|
|
3033
|
+
[`--tw-${t ? "pan-x" : r ? "pan-y" : e}`]: e,
|
|
3034
|
+
"touch-action": "var(--tw-touch-action)"
|
|
3035
|
+
})),
|
|
3036
|
+
// Outline Style
|
|
3037
|
+
d("outline-none", {
|
|
3038
|
+
outline: "2px solid transparent",
|
|
3039
|
+
"outline-offset": "2px"
|
|
3040
|
+
}),
|
|
3041
|
+
d("outline", {
|
|
3042
|
+
outlineStyle: "solid"
|
|
3043
|
+
}),
|
|
3044
|
+
d("outline-(dashed|dotted|double)", "outlineStyle"),
|
|
3045
|
+
// Outline Offset
|
|
3046
|
+
p("-?(outline-offset)-"),
|
|
3047
|
+
/*, 'outlineOffset'*/
|
|
3048
|
+
// Outline Color
|
|
3049
|
+
$("outline-", {
|
|
3050
|
+
opacityVariable: !1,
|
|
3051
|
+
opacitySection: "opacity"
|
|
3052
|
+
}),
|
|
3053
|
+
// Outline Width
|
|
3054
|
+
p("outline-", "outlineWidth"),
|
|
3055
|
+
// Pointer Events
|
|
3056
|
+
"(pointer-events)-",
|
|
3057
|
+
// Will Change
|
|
3058
|
+
p("(will-change)-"),
|
|
3059
|
+
/*, 'willChange' */
|
|
3060
|
+
"(will-change)-",
|
|
3061
|
+
// Resize
|
|
3062
|
+
[
|
|
3063
|
+
"resize(?:-(none|x|y))?",
|
|
3064
|
+
"resize",
|
|
3065
|
+
({ 1: e }) => ({
|
|
3066
|
+
x: "horizontal",
|
|
3067
|
+
y: "vertical"
|
|
3068
|
+
})[e] || e || "both"
|
|
3069
|
+
],
|
|
3070
|
+
// User Select
|
|
3071
|
+
d("select-(none|text|all|auto)", "userSelect"),
|
|
3072
|
+
/* SVG */
|
|
3073
|
+
// Fill, Stroke
|
|
3074
|
+
$("fill-", {
|
|
3075
|
+
section: "fill",
|
|
3076
|
+
opacityVariable: !1,
|
|
3077
|
+
opacitySection: "opacity"
|
|
3078
|
+
}),
|
|
3079
|
+
$("stroke-", {
|
|
3080
|
+
section: "stroke",
|
|
3081
|
+
opacityVariable: !1,
|
|
3082
|
+
opacitySection: "opacity"
|
|
3083
|
+
}),
|
|
3084
|
+
// Stroke Width
|
|
3085
|
+
p("stroke-", "strokeWidth"),
|
|
3086
|
+
/* ACCESSIBILITY */
|
|
3087
|
+
// Screen Readers
|
|
3088
|
+
d("sr-only", {
|
|
3089
|
+
position: "absolute",
|
|
3090
|
+
width: "1px",
|
|
3091
|
+
height: "1px",
|
|
3092
|
+
padding: "0",
|
|
3093
|
+
margin: "-1px",
|
|
3094
|
+
overflow: "hidden",
|
|
3095
|
+
whiteSpace: "nowrap",
|
|
3096
|
+
clip: "rect(0,0,0,0)",
|
|
3097
|
+
borderWidth: "0"
|
|
3098
|
+
}),
|
|
3099
|
+
d("not-sr-only", {
|
|
3100
|
+
position: "static",
|
|
3101
|
+
width: "auto",
|
|
3102
|
+
height: "auto",
|
|
3103
|
+
padding: "0",
|
|
3104
|
+
margin: "0",
|
|
3105
|
+
overflow: "visible",
|
|
3106
|
+
whiteSpace: "normal",
|
|
3107
|
+
clip: "auto"
|
|
3108
|
+
})
|
|
3109
|
+
];
|
|
3110
|
+
function se(e) {
|
|
3111
|
+
return (typeof e == "string" ? e : e[1]).replace(/-/g, " ").trim();
|
|
3112
|
+
}
|
|
3113
|
+
function Ye(e) {
|
|
3114
|
+
return (typeof e == "string" ? e : e[1]).replace("col", "column");
|
|
3115
|
+
}
|
|
3116
|
+
function G(e, t = "-") {
|
|
3117
|
+
let r = [];
|
|
3118
|
+
for (let o of e)
|
|
3119
|
+
r.push({
|
|
3120
|
+
t: "top",
|
|
3121
|
+
r: "right",
|
|
3122
|
+
b: "bottom",
|
|
3123
|
+
l: "left"
|
|
3124
|
+
}[o]);
|
|
3125
|
+
return r.join(t);
|
|
3126
|
+
}
|
|
3127
|
+
function M(e) {
|
|
3128
|
+
return e && "" + (e._ || e);
|
|
3129
|
+
}
|
|
3130
|
+
function Je({ $$: e }) {
|
|
3131
|
+
return ({
|
|
3132
|
+
// /* aut*/ o: '',
|
|
3133
|
+
/* sta*/
|
|
3134
|
+
r: (
|
|
3135
|
+
/*t*/
|
|
3136
|
+
"flex-"
|
|
3137
|
+
),
|
|
3138
|
+
/* end*/
|
|
3139
|
+
"": "flex-",
|
|
3140
|
+
// /* cen*/ t /*er*/: '',
|
|
3141
|
+
/* bet*/
|
|
3142
|
+
w: (
|
|
3143
|
+
/*een*/
|
|
3144
|
+
"space-"
|
|
3145
|
+
),
|
|
3146
|
+
/* aro*/
|
|
3147
|
+
u: (
|
|
3148
|
+
/*nd*/
|
|
3149
|
+
"space-"
|
|
3150
|
+
),
|
|
3151
|
+
/* eve*/
|
|
3152
|
+
n: (
|
|
3153
|
+
/*ly*/
|
|
3154
|
+
"space-"
|
|
3155
|
+
)
|
|
3156
|
+
}[e[3] || ""] || "") + e;
|
|
3157
|
+
}
|
|
3158
|
+
function X(e, t = "") {
|
|
3159
|
+
return ({ 1: r, _: o }) => {
|
|
3160
|
+
let n = {
|
|
3161
|
+
x: "lr",
|
|
3162
|
+
y: "tb"
|
|
3163
|
+
}[r] || r + r;
|
|
3164
|
+
return n ? {
|
|
3165
|
+
...de(e + "-" + G(n[0]) + t, o),
|
|
3166
|
+
...de(e + "-" + G(n[1]) + t, o)
|
|
3167
|
+
} : de(e + t, o);
|
|
3168
|
+
};
|
|
3169
|
+
}
|
|
3170
|
+
function Xe(e = "") {
|
|
3171
|
+
let t = [
|
|
3172
|
+
"blur",
|
|
3173
|
+
"brightness",
|
|
3174
|
+
"contrast",
|
|
3175
|
+
"grayscale",
|
|
3176
|
+
"hue-rotate",
|
|
3177
|
+
"invert",
|
|
3178
|
+
e && "opacity",
|
|
3179
|
+
"saturate",
|
|
3180
|
+
"sepia",
|
|
3181
|
+
!e && "drop-shadow"
|
|
3182
|
+
].filter(Boolean), r = {};
|
|
3183
|
+
for (let o of t)
|
|
3184
|
+
r[`--tw-${e}${o}`] = "var(--tw-empty,/*!*/ /*!*/)";
|
|
3185
|
+
return r = {
|
|
3186
|
+
// move defaults
|
|
3187
|
+
...I(r),
|
|
3188
|
+
// add default filter which allows standalone usage
|
|
3189
|
+
[`${e}filter`]: t.map((o) => `var(--tw-${e}${o})`).join(" ")
|
|
3190
|
+
}, [
|
|
3191
|
+
`(${e}filter)-(none)`,
|
|
3192
|
+
d(`${e}filter`, r),
|
|
3193
|
+
...t.map((o) => p(
|
|
3194
|
+
// hue-rotate can be negated
|
|
3195
|
+
`${o[0] == "h" ? "-?" : ""}(${e}${o})(?:$|-)`,
|
|
3196
|
+
o,
|
|
3197
|
+
({ 1: n, _: i }) => ({
|
|
3198
|
+
[`--tw-${n}`]: S(i).map((l) => `${o}(${l})`).join(" "),
|
|
3199
|
+
...r
|
|
3200
|
+
})
|
|
3201
|
+
))
|
|
3202
|
+
];
|
|
3203
|
+
}
|
|
3204
|
+
function Te({ 1: e, _: t }) {
|
|
3205
|
+
return {
|
|
3206
|
+
["--tw-" + e]: t,
|
|
3207
|
+
...Oe()
|
|
3208
|
+
};
|
|
3209
|
+
}
|
|
3210
|
+
function Oe() {
|
|
3211
|
+
return {
|
|
3212
|
+
...I({
|
|
3213
|
+
"--tw-translate-x": "0",
|
|
3214
|
+
"--tw-translate-y": "0",
|
|
3215
|
+
"--tw-rotate": "0",
|
|
3216
|
+
"--tw-skew-x": "0",
|
|
3217
|
+
"--tw-skew-y": "0",
|
|
3218
|
+
"--tw-scale-x": "1",
|
|
3219
|
+
"--tw-scale-y": "1",
|
|
3220
|
+
"--tw-transform": gt()
|
|
3221
|
+
}),
|
|
3222
|
+
transform: "var(--tw-transform)"
|
|
3223
|
+
};
|
|
3224
|
+
}
|
|
3225
|
+
function gt(e) {
|
|
3226
|
+
return [
|
|
3227
|
+
e ? (
|
|
3228
|
+
// -gpu
|
|
3229
|
+
"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)"
|
|
3230
|
+
) : "translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))",
|
|
3231
|
+
"rotate(var(--tw-rotate))",
|
|
3232
|
+
"skewX(var(--tw-skew-x))",
|
|
3233
|
+
"skewY(var(--tw-skew-y))",
|
|
3234
|
+
"scaleX(var(--tw-scale-x))",
|
|
3235
|
+
"scaleY(var(--tw-scale-y))"
|
|
3236
|
+
].join(" ");
|
|
3237
|
+
}
|
|
3238
|
+
function Ze({ 1: e, 2: t }) {
|
|
3239
|
+
return `${e} ${t} / ${e} ${t}`;
|
|
3240
|
+
}
|
|
3241
|
+
function Qe({ 1: e }) {
|
|
3242
|
+
return `repeat(${e},minmax(0,1fr))`;
|
|
3243
|
+
}
|
|
3244
|
+
function I(e) {
|
|
3245
|
+
return {
|
|
3246
|
+
"@layer defaults": {
|
|
3247
|
+
"*,::before,::after": e,
|
|
3248
|
+
"::backdrop": e
|
|
3249
|
+
}
|
|
3250
|
+
};
|
|
3251
|
+
}
|
|
3252
|
+
let nr = [
|
|
3253
|
+
[
|
|
3254
|
+
"sticky",
|
|
3255
|
+
"@supports ((position: -webkit-sticky) or (position:sticky))"
|
|
3256
|
+
],
|
|
3257
|
+
[
|
|
3258
|
+
"motion-reduce",
|
|
3259
|
+
"@media (prefers-reduced-motion:reduce)"
|
|
3260
|
+
],
|
|
3261
|
+
[
|
|
3262
|
+
"motion-safe",
|
|
3263
|
+
"@media (prefers-reduced-motion:no-preference)"
|
|
3264
|
+
],
|
|
3265
|
+
[
|
|
3266
|
+
"print",
|
|
3267
|
+
"@media print"
|
|
3268
|
+
],
|
|
3269
|
+
[
|
|
3270
|
+
"(portrait|landscape)",
|
|
3271
|
+
({ 1: e }) => `@media (orientation:${e})`
|
|
3272
|
+
],
|
|
3273
|
+
[
|
|
3274
|
+
"contrast-(more|less)",
|
|
3275
|
+
({ 1: e }) => `@media (prefers-contrast:${e})`
|
|
3276
|
+
],
|
|
3277
|
+
[
|
|
3278
|
+
"(first-(letter|line)|placeholder|backdrop|before|after)",
|
|
3279
|
+
({ 1: e }) => `&::${e}`
|
|
3280
|
+
],
|
|
3281
|
+
[
|
|
3282
|
+
"(marker|selection)",
|
|
3283
|
+
({ 1: e }) => `& *::${e},&::${e}`
|
|
3284
|
+
],
|
|
3285
|
+
[
|
|
3286
|
+
"file",
|
|
3287
|
+
"&::file-selector-button"
|
|
3288
|
+
],
|
|
3289
|
+
[
|
|
3290
|
+
"(first|last|only)",
|
|
3291
|
+
({ 1: e }) => `&:${e}-child`
|
|
3292
|
+
],
|
|
3293
|
+
[
|
|
3294
|
+
"even",
|
|
3295
|
+
"&:nth-child(2n)"
|
|
3296
|
+
],
|
|
3297
|
+
[
|
|
3298
|
+
"odd",
|
|
3299
|
+
"&:nth-child(odd)"
|
|
3300
|
+
],
|
|
3301
|
+
[
|
|
3302
|
+
"open",
|
|
3303
|
+
"&[open]"
|
|
3304
|
+
],
|
|
3305
|
+
// All other pseudo classes are already supported by twind
|
|
3306
|
+
[
|
|
3307
|
+
"(aria|data)-",
|
|
3308
|
+
({
|
|
3309
|
+
1: e,
|
|
3310
|
+
/* aria or data */
|
|
3311
|
+
$$: t
|
|
3312
|
+
}, r) => t && `&[${e}-${// aria-asc or data-checked -> from theme
|
|
3313
|
+
r.theme(e, t) || // aria-[...] or data-[...]
|
|
3314
|
+
P(t, "", r) || // default handling
|
|
3315
|
+
`${t}="true"`}]`
|
|
3316
|
+
],
|
|
3317
|
+
/* Styling based on parent and peer state */
|
|
3318
|
+
// Groups classes like: group-focus and group-hover
|
|
3319
|
+
// these need to add a marker selector with the pseudo class
|
|
3320
|
+
// => '.group:focus .group-focus:selector'
|
|
3321
|
+
[
|
|
3322
|
+
"((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",
|
|
3323
|
+
({ 2: e, 3: t = "", 4: r, 5: o = "", 6: n = t }, { e: i, h: l, v: s }) => {
|
|
3324
|
+
let a = ne(o) || (r[0] == "[" ? r : s(r.slice(1)));
|
|
3325
|
+
return `${(a.includes("&") ? a : "&" + a).replace(/&/g, `:merge(.${i(l(e + n))})`)}${e[0] == "p" ? "~" : " "}&`;
|
|
3326
|
+
}
|
|
3327
|
+
],
|
|
3328
|
+
// direction variants
|
|
3329
|
+
[
|
|
3330
|
+
"(ltr|rtl)",
|
|
3331
|
+
({ 1: e }) => `[dir="${e}"] &`
|
|
3332
|
+
],
|
|
3333
|
+
[
|
|
3334
|
+
"supports-",
|
|
3335
|
+
({ $$: e }, t) => {
|
|
3336
|
+
if (e && (e = t.theme("supports", e) || P(e, "", t)), e)
|
|
3337
|
+
return e.includes(":") || (e += ":var(--tw)"), /^\w*\s*\(/.test(e) || (e = `(${e})`), // Chrome has a bug where `(condtion1)or(condition2)` is not valid
|
|
3338
|
+
// But `(condition1) or (condition2)` is supported.
|
|
3339
|
+
`@supports ${e.replace(/\b(and|or|not)\b/g, " $1 ").trim()}`;
|
|
3340
|
+
}
|
|
3341
|
+
],
|
|
3342
|
+
[
|
|
3343
|
+
"max-",
|
|
3344
|
+
({ $$: e }, t) => {
|
|
3345
|
+
if (e && (e = t.theme("screens", e) || P(e, "", t)), typeof e == "string")
|
|
3346
|
+
return `@media not all and (min-width:${e})`;
|
|
3347
|
+
}
|
|
3348
|
+
],
|
|
3349
|
+
[
|
|
3350
|
+
"min-",
|
|
3351
|
+
({ $$: e }, t) => (e && (e = P(e, "", t)), e && `@media (min-width:${e})`)
|
|
3352
|
+
],
|
|
3353
|
+
// Arbitrary variants
|
|
3354
|
+
[
|
|
3355
|
+
/^\[(.+)]$/,
|
|
3356
|
+
({ 1: e }) => /[&@]/.test(e) && ne(e).replace(/[}]+$/, "").split("{")
|
|
3357
|
+
]
|
|
3358
|
+
];
|
|
3359
|
+
function ir({ colors: e, disablePreflight: t } = {}) {
|
|
3360
|
+
return {
|
|
3361
|
+
// allow other preflight to run
|
|
3362
|
+
preflight: t ? void 0 : rr,
|
|
3363
|
+
theme: {
|
|
3364
|
+
...ge,
|
|
3365
|
+
colors: {
|
|
3366
|
+
inherit: "inherit",
|
|
3367
|
+
current: "currentColor",
|
|
3368
|
+
transparent: "transparent",
|
|
3369
|
+
black: "#000",
|
|
3370
|
+
white: "#fff",
|
|
3371
|
+
...e
|
|
3372
|
+
}
|
|
3373
|
+
},
|
|
3374
|
+
variants: nr,
|
|
3375
|
+
rules: or,
|
|
3376
|
+
finalize(r) {
|
|
3377
|
+
return (
|
|
3378
|
+
// automatically add `content: ''` to before and after so you don’t have to specify it unless you want a different value
|
|
3379
|
+
// ignore global, preflight, and auto added rules
|
|
3380
|
+
r.n && // only if there are declarations
|
|
3381
|
+
r.d && // and it has a ::before or ::after selector
|
|
3382
|
+
r.r.some((o) => /^&::(before|after)$/.test(o)) && // there is no content property yet
|
|
3383
|
+
!/(^|;)content:/.test(r.d) ? {
|
|
3384
|
+
...r,
|
|
3385
|
+
d: "content:var(--tw-content);" + r.d
|
|
3386
|
+
} : r
|
|
3387
|
+
);
|
|
3388
|
+
}
|
|
3389
|
+
};
|
|
3390
|
+
}
|
|
3391
|
+
let ar = {
|
|
3392
|
+
50: "#f8fafc",
|
|
3393
|
+
100: "#f1f5f9",
|
|
3394
|
+
200: "#e2e8f0",
|
|
3395
|
+
300: "#cbd5e1",
|
|
3396
|
+
400: "#94a3b8",
|
|
3397
|
+
500: "#64748b",
|
|
3398
|
+
600: "#475569",
|
|
3399
|
+
700: "#334155",
|
|
3400
|
+
800: "#1e293b",
|
|
3401
|
+
900: "#0f172a"
|
|
3402
|
+
}, re = {
|
|
3403
|
+
50: "#f9fafb",
|
|
3404
|
+
100: "#f3f4f6",
|
|
3405
|
+
200: "#e5e7eb",
|
|
3406
|
+
300: "#d1d5db",
|
|
3407
|
+
400: "#9ca3af",
|
|
3408
|
+
500: "#6b7280",
|
|
3409
|
+
600: "#4b5563",
|
|
3410
|
+
700: "#374151",
|
|
3411
|
+
800: "#1f2937",
|
|
3412
|
+
900: "#111827"
|
|
3413
|
+
}, lr = {
|
|
3414
|
+
50: "#fafafa",
|
|
3415
|
+
100: "#f4f4f5",
|
|
3416
|
+
200: "#e4e4e7",
|
|
3417
|
+
300: "#d4d4d8",
|
|
3418
|
+
400: "#a1a1aa",
|
|
3419
|
+
500: "#71717a",
|
|
3420
|
+
600: "#52525b",
|
|
3421
|
+
700: "#3f3f46",
|
|
3422
|
+
800: "#27272a",
|
|
3423
|
+
900: "#18181b"
|
|
3424
|
+
}, sr = {
|
|
3425
|
+
50: "#fafafa",
|
|
3426
|
+
100: "#f5f5f5",
|
|
3427
|
+
200: "#e5e5e5",
|
|
3428
|
+
300: "#d4d4d4",
|
|
3429
|
+
400: "#a3a3a3",
|
|
3430
|
+
500: "#737373",
|
|
3431
|
+
600: "#525252",
|
|
3432
|
+
700: "#404040",
|
|
3433
|
+
800: "#262626",
|
|
3434
|
+
900: "#171717"
|
|
3435
|
+
}, cr = {
|
|
3436
|
+
50: "#fafaf9",
|
|
3437
|
+
100: "#f5f5f4",
|
|
3438
|
+
200: "#e7e5e4",
|
|
3439
|
+
300: "#d6d3d1",
|
|
3440
|
+
400: "#a8a29e",
|
|
3441
|
+
500: "#78716c",
|
|
3442
|
+
600: "#57534e",
|
|
3443
|
+
700: "#44403c",
|
|
3444
|
+
800: "#292524",
|
|
3445
|
+
900: "#1c1917"
|
|
3446
|
+
}, dr = {
|
|
3447
|
+
50: "#fef2f2",
|
|
3448
|
+
100: "#fee2e2",
|
|
3449
|
+
200: "#fecaca",
|
|
3450
|
+
300: "#fca5a5",
|
|
3451
|
+
400: "#f87171",
|
|
3452
|
+
500: "#ef4444",
|
|
3453
|
+
600: "#dc2626",
|
|
3454
|
+
700: "#b91c1c",
|
|
3455
|
+
800: "#991b1b",
|
|
3456
|
+
900: "#7f1d1d"
|
|
3457
|
+
}, pr = {
|
|
3458
|
+
50: "#fff7ed",
|
|
3459
|
+
100: "#ffedd5",
|
|
3460
|
+
200: "#fed7aa",
|
|
3461
|
+
300: "#fdba74",
|
|
3462
|
+
400: "#fb923c",
|
|
3463
|
+
500: "#f97316",
|
|
3464
|
+
600: "#ea580c",
|
|
3465
|
+
700: "#c2410c",
|
|
3466
|
+
800: "#9a3412",
|
|
3467
|
+
900: "#7c2d12"
|
|
3468
|
+
}, fr = {
|
|
3469
|
+
50: "#fffbeb",
|
|
3470
|
+
100: "#fef3c7",
|
|
3471
|
+
200: "#fde68a",
|
|
3472
|
+
300: "#fcd34d",
|
|
3473
|
+
400: "#fbbf24",
|
|
3474
|
+
500: "#f59e0b",
|
|
3475
|
+
600: "#d97706",
|
|
3476
|
+
700: "#b45309",
|
|
3477
|
+
800: "#92400e",
|
|
3478
|
+
900: "#78350f"
|
|
3479
|
+
}, ur = {
|
|
3480
|
+
50: "#fefce8",
|
|
3481
|
+
100: "#fef9c3",
|
|
3482
|
+
200: "#fef08a",
|
|
3483
|
+
300: "#fde047",
|
|
3484
|
+
400: "#facc15",
|
|
3485
|
+
500: "#eab308",
|
|
3486
|
+
600: "#ca8a04",
|
|
3487
|
+
700: "#a16207",
|
|
3488
|
+
800: "#854d0e",
|
|
3489
|
+
900: "#713f12"
|
|
3490
|
+
}, gr = {
|
|
3491
|
+
50: "#f7fee7",
|
|
3492
|
+
100: "#ecfccb",
|
|
3493
|
+
200: "#d9f99d",
|
|
3494
|
+
300: "#bef264",
|
|
3495
|
+
400: "#a3e635",
|
|
3496
|
+
500: "#84cc16",
|
|
3497
|
+
600: "#65a30d",
|
|
3498
|
+
700: "#4d7c0f",
|
|
3499
|
+
800: "#3f6212",
|
|
3500
|
+
900: "#365314"
|
|
3501
|
+
}, hr = {
|
|
3502
|
+
50: "#f0fdf4",
|
|
3503
|
+
100: "#dcfce7",
|
|
3504
|
+
200: "#bbf7d0",
|
|
3505
|
+
300: "#86efac",
|
|
3506
|
+
400: "#4ade80",
|
|
3507
|
+
500: "#22c55e",
|
|
3508
|
+
600: "#16a34a",
|
|
3509
|
+
700: "#15803d",
|
|
3510
|
+
800: "#166534",
|
|
3511
|
+
900: "#14532d"
|
|
3512
|
+
}, mr = {
|
|
3513
|
+
50: "#ecfdf5",
|
|
3514
|
+
100: "#d1fae5",
|
|
3515
|
+
200: "#a7f3d0",
|
|
3516
|
+
300: "#6ee7b7",
|
|
3517
|
+
400: "#34d399",
|
|
3518
|
+
500: "#10b981",
|
|
3519
|
+
600: "#059669",
|
|
3520
|
+
700: "#047857",
|
|
3521
|
+
800: "#065f46",
|
|
3522
|
+
900: "#064e3b"
|
|
3523
|
+
}, br = {
|
|
3524
|
+
50: "#f0fdfa",
|
|
3525
|
+
100: "#ccfbf1",
|
|
3526
|
+
200: "#99f6e4",
|
|
3527
|
+
300: "#5eead4",
|
|
3528
|
+
400: "#2dd4bf",
|
|
3529
|
+
500: "#14b8a6",
|
|
3530
|
+
600: "#0d9488",
|
|
3531
|
+
700: "#0f766e",
|
|
3532
|
+
800: "#115e59",
|
|
3533
|
+
900: "#134e4a"
|
|
3534
|
+
}, wr = {
|
|
3535
|
+
50: "#ecfeff",
|
|
3536
|
+
100: "#cffafe",
|
|
3537
|
+
200: "#a5f3fc",
|
|
3538
|
+
300: "#67e8f9",
|
|
3539
|
+
400: "#22d3ee",
|
|
3540
|
+
500: "#06b6d4",
|
|
3541
|
+
600: "#0891b2",
|
|
3542
|
+
700: "#0e7490",
|
|
3543
|
+
800: "#155e75",
|
|
3544
|
+
900: "#164e63"
|
|
3545
|
+
}, yr = {
|
|
3546
|
+
50: "#f0f9ff",
|
|
3547
|
+
100: "#e0f2fe",
|
|
3548
|
+
200: "#bae6fd",
|
|
3549
|
+
300: "#7dd3fc",
|
|
3550
|
+
400: "#38bdf8",
|
|
3551
|
+
500: "#0ea5e9",
|
|
3552
|
+
600: "#0284c7",
|
|
3553
|
+
700: "#0369a1",
|
|
3554
|
+
800: "#075985",
|
|
3555
|
+
900: "#0c4a6e"
|
|
3556
|
+
}, oe = {
|
|
3557
|
+
50: "#eff6ff",
|
|
3558
|
+
100: "#dbeafe",
|
|
3559
|
+
200: "#bfdbfe",
|
|
3560
|
+
300: "#93c5fd",
|
|
3561
|
+
400: "#60a5fa",
|
|
3562
|
+
500: "#3b82f6",
|
|
3563
|
+
600: "#2563eb",
|
|
3564
|
+
700: "#1d4ed8",
|
|
3565
|
+
800: "#1e40af",
|
|
3566
|
+
900: "#1e3a8a"
|
|
3567
|
+
}, xr = {
|
|
3568
|
+
50: "#eef2ff",
|
|
3569
|
+
100: "#e0e7ff",
|
|
3570
|
+
200: "#c7d2fe",
|
|
3571
|
+
300: "#a5b4fc",
|
|
3572
|
+
400: "#818cf8",
|
|
3573
|
+
500: "#6366f1",
|
|
3574
|
+
600: "#4f46e5",
|
|
3575
|
+
700: "#4338ca",
|
|
3576
|
+
800: "#3730a3",
|
|
3577
|
+
900: "#312e81"
|
|
3578
|
+
}, vr = {
|
|
3579
|
+
50: "#f5f3ff",
|
|
3580
|
+
100: "#ede9fe",
|
|
3581
|
+
200: "#ddd6fe",
|
|
3582
|
+
300: "#c4b5fd",
|
|
3583
|
+
400: "#a78bfa",
|
|
3584
|
+
500: "#8b5cf6",
|
|
3585
|
+
600: "#7c3aed",
|
|
3586
|
+
700: "#6d28d9",
|
|
3587
|
+
800: "#5b21b6",
|
|
3588
|
+
900: "#4c1d95"
|
|
3589
|
+
}, kr = {
|
|
3590
|
+
50: "#faf5ff",
|
|
3591
|
+
100: "#f3e8ff",
|
|
3592
|
+
200: "#e9d5ff",
|
|
3593
|
+
300: "#d8b4fe",
|
|
3594
|
+
400: "#c084fc",
|
|
3595
|
+
500: "#a855f7",
|
|
3596
|
+
600: "#9333ea",
|
|
3597
|
+
700: "#7e22ce",
|
|
3598
|
+
800: "#6b21a8",
|
|
3599
|
+
900: "#581c87"
|
|
3600
|
+
}, Sr = {
|
|
3601
|
+
50: "#fdf4ff",
|
|
3602
|
+
100: "#fae8ff",
|
|
3603
|
+
200: "#f5d0fe",
|
|
3604
|
+
300: "#f0abfc",
|
|
3605
|
+
400: "#e879f9",
|
|
3606
|
+
500: "#d946ef",
|
|
3607
|
+
600: "#c026d3",
|
|
3608
|
+
700: "#a21caf",
|
|
3609
|
+
800: "#86198f",
|
|
3610
|
+
900: "#701a75"
|
|
3611
|
+
}, Cr = {
|
|
3612
|
+
50: "#fdf2f8",
|
|
3613
|
+
100: "#fce7f3",
|
|
3614
|
+
200: "#fbcfe8",
|
|
3615
|
+
300: "#f9a8d4",
|
|
3616
|
+
400: "#f472b6",
|
|
3617
|
+
500: "#ec4899",
|
|
3618
|
+
600: "#db2777",
|
|
3619
|
+
700: "#be185d",
|
|
3620
|
+
800: "#9d174d",
|
|
3621
|
+
900: "#831843"
|
|
3622
|
+
}, Tr = {
|
|
3623
|
+
50: "#fff1f2",
|
|
3624
|
+
100: "#ffe4e6",
|
|
3625
|
+
200: "#fecdd3",
|
|
3626
|
+
300: "#fda4af",
|
|
3627
|
+
400: "#fb7185",
|
|
3628
|
+
500: "#f43f5e",
|
|
3629
|
+
600: "#e11d48",
|
|
3630
|
+
700: "#be123c",
|
|
3631
|
+
800: "#9f1239",
|
|
3632
|
+
900: "#881337"
|
|
3633
|
+
}, ht = {
|
|
3634
|
+
__proto__: null,
|
|
3635
|
+
slate: ar,
|
|
3636
|
+
gray: re,
|
|
3637
|
+
zinc: lr,
|
|
3638
|
+
neutral: sr,
|
|
3639
|
+
stone: cr,
|
|
3640
|
+
red: dr,
|
|
3641
|
+
orange: pr,
|
|
3642
|
+
amber: fr,
|
|
3643
|
+
yellow: ur,
|
|
3644
|
+
lime: gr,
|
|
3645
|
+
green: hr,
|
|
3646
|
+
emerald: mr,
|
|
3647
|
+
teal: br,
|
|
3648
|
+
cyan: wr,
|
|
3649
|
+
sky: yr,
|
|
3650
|
+
blue: oe,
|
|
3651
|
+
indigo: xr,
|
|
3652
|
+
violet: vr,
|
|
3653
|
+
purple: kr,
|
|
3654
|
+
fuchsia: Sr,
|
|
3655
|
+
pink: Cr,
|
|
3656
|
+
rose: Tr
|
|
3657
|
+
};
|
|
3658
|
+
function $r({ disablePreflight: e } = {}) {
|
|
3659
|
+
return ir({
|
|
3660
|
+
colors: ht,
|
|
3661
|
+
disablePreflight: e
|
|
3662
|
+
});
|
|
3663
|
+
}
|
|
3664
|
+
function zr({ className: e = "prose", defaultColor: t = "gray", extend: r = {}, colors: o = {} } = {}) {
|
|
3665
|
+
return o = {
|
|
3666
|
+
body: "700",
|
|
3667
|
+
headings: "900",
|
|
3668
|
+
lead: "600",
|
|
3669
|
+
links: "900",
|
|
3670
|
+
bold: "900",
|
|
3671
|
+
counters: "500",
|
|
3672
|
+
bullets: "300",
|
|
3673
|
+
hr: "200",
|
|
3674
|
+
quotes: "900",
|
|
3675
|
+
"quote-borders": "200",
|
|
3676
|
+
captions: "500",
|
|
3677
|
+
code: "900",
|
|
3678
|
+
"pre-code": "200",
|
|
3679
|
+
"pre-bg": "800",
|
|
3680
|
+
"th-borders": "300",
|
|
3681
|
+
"td-borders": "200",
|
|
3682
|
+
...o,
|
|
3683
|
+
// invert colors (dark mode)
|
|
3684
|
+
dark: o.dark === null ? null : {
|
|
3685
|
+
body: "300",
|
|
3686
|
+
headings: "#fff",
|
|
3687
|
+
lead: "400",
|
|
3688
|
+
links: "#fff",
|
|
3689
|
+
bold: "#fff",
|
|
3690
|
+
counters: "400",
|
|
3691
|
+
bullets: "600",
|
|
3692
|
+
hr: "700",
|
|
3693
|
+
quotes: "100",
|
|
3694
|
+
"quote-borders": "700",
|
|
3695
|
+
captions: "400",
|
|
3696
|
+
code: "#fff",
|
|
3697
|
+
"pre-code": "300",
|
|
3698
|
+
"pre-bg": "rgb(0 0 0 / 50%)",
|
|
3699
|
+
"th-borders": "600",
|
|
3700
|
+
"td-borders": "700",
|
|
3701
|
+
...o.dark
|
|
3702
|
+
}
|
|
3703
|
+
}, {
|
|
3704
|
+
// for element modifiers: prose-img:rounded-xl, prose-headings
|
|
3705
|
+
// & :is()
|
|
3706
|
+
// & :is(:where(code):not(:where([class~="not-prose"] *)))
|
|
3707
|
+
variants: [
|
|
3708
|
+
[
|
|
3709
|
+
"headings",
|
|
3710
|
+
"h1,h2,h3,h4,h5,h6,th"
|
|
3711
|
+
],
|
|
3712
|
+
[
|
|
3713
|
+
"h1"
|
|
3714
|
+
],
|
|
3715
|
+
[
|
|
3716
|
+
"h2"
|
|
3717
|
+
],
|
|
3718
|
+
[
|
|
3719
|
+
"h3"
|
|
3720
|
+
],
|
|
3721
|
+
[
|
|
3722
|
+
"h4"
|
|
3723
|
+
],
|
|
3724
|
+
[
|
|
3725
|
+
"h5"
|
|
3726
|
+
],
|
|
3727
|
+
[
|
|
3728
|
+
"h6"
|
|
3729
|
+
],
|
|
3730
|
+
[
|
|
3731
|
+
"p"
|
|
3732
|
+
],
|
|
3733
|
+
[
|
|
3734
|
+
"a"
|
|
3735
|
+
],
|
|
3736
|
+
[
|
|
3737
|
+
"blockquote"
|
|
3738
|
+
],
|
|
3739
|
+
[
|
|
3740
|
+
"figure"
|
|
3741
|
+
],
|
|
3742
|
+
[
|
|
3743
|
+
"figcaption"
|
|
3744
|
+
],
|
|
3745
|
+
[
|
|
3746
|
+
"strong"
|
|
3747
|
+
],
|
|
3748
|
+
[
|
|
3749
|
+
"em"
|
|
3750
|
+
],
|
|
3751
|
+
[
|
|
3752
|
+
"code"
|
|
3753
|
+
],
|
|
3754
|
+
[
|
|
3755
|
+
"pre"
|
|
3756
|
+
],
|
|
3757
|
+
[
|
|
3758
|
+
"ol"
|
|
3759
|
+
],
|
|
3760
|
+
[
|
|
3761
|
+
"ul"
|
|
3762
|
+
],
|
|
3763
|
+
[
|
|
3764
|
+
"li"
|
|
3765
|
+
],
|
|
3766
|
+
[
|
|
3767
|
+
"table"
|
|
3768
|
+
],
|
|
3769
|
+
[
|
|
3770
|
+
"thead"
|
|
3771
|
+
],
|
|
3772
|
+
[
|
|
3773
|
+
"tr"
|
|
3774
|
+
],
|
|
3775
|
+
[
|
|
3776
|
+
"th"
|
|
3777
|
+
],
|
|
3778
|
+
[
|
|
3779
|
+
"td"
|
|
3780
|
+
],
|
|
3781
|
+
[
|
|
3782
|
+
"img"
|
|
3783
|
+
],
|
|
3784
|
+
[
|
|
3785
|
+
"video"
|
|
3786
|
+
],
|
|
3787
|
+
[
|
|
3788
|
+
"hr"
|
|
3789
|
+
],
|
|
3790
|
+
[
|
|
3791
|
+
"lead",
|
|
3792
|
+
".lead"
|
|
3793
|
+
]
|
|
3794
|
+
].map(([i, l = i]) => [
|
|
3795
|
+
`${e}-${i}`,
|
|
3796
|
+
(s, a) => mt(e, l[0] == "." ? "." + a.e(a.h(l.slice(1))) : l, a, (c) => `& :is(${c.trim()})`)
|
|
3797
|
+
]),
|
|
3798
|
+
rules: [
|
|
3799
|
+
// marker classes lead and not-prose
|
|
3800
|
+
[
|
|
3801
|
+
`(lead|not-${e})`,
|
|
3802
|
+
({ 1: i }, { h: l }) => [
|
|
3803
|
+
{
|
|
3804
|
+
c: l(i)
|
|
3805
|
+
}
|
|
3806
|
+
]
|
|
3807
|
+
],
|
|
3808
|
+
[
|
|
3809
|
+
`${e}-invert`,
|
|
3810
|
+
{
|
|
3811
|
+
"@layer base": {
|
|
3812
|
+
"--tw-prose-body": "var(--tw-prose-invert-body)",
|
|
3813
|
+
"--tw-prose-headings": "var(--tw-prose-invert-headings)",
|
|
3814
|
+
"--tw-prose-lead": "var(--tw-prose-invert-lead)",
|
|
3815
|
+
"--tw-prose-links": "var(--tw-prose-invert-links)",
|
|
3816
|
+
"--tw-prose-bold": "var(--tw-prose-invert-bold)",
|
|
3817
|
+
"--tw-prose-counters": "var(--tw-prose-invert-counters)",
|
|
3818
|
+
"--tw-prose-bullets": "var(--tw-prose-invert-bullets)",
|
|
3819
|
+
"--tw-prose-hr": "var(--tw-prose-invert-hr)",
|
|
3820
|
+
"--tw-prose-quotes": "var(--tw-prose-invert-quotes)",
|
|
3821
|
+
"--tw-prose-quote-borders": "var(--tw-prose-invert-quote-borders)",
|
|
3822
|
+
"--tw-prose-captions": "var(--tw-prose-invert-captions)",
|
|
3823
|
+
"--tw-prose-code": "var(--tw-prose-invert-code)",
|
|
3824
|
+
"--tw-prose-pre-code": "var(--tw-prose-invert-pre-code)",
|
|
3825
|
+
"--tw-prose-pre-bg": "var(--tw-prose-invert-pre-bg)",
|
|
3826
|
+
"--tw-prose-th-borders": "var(--tw-prose-invert-th-borders)",
|
|
3827
|
+
"--tw-prose-td-borders": "var(--tw-prose-invert-td-borders)"
|
|
3828
|
+
}
|
|
3829
|
+
}
|
|
3830
|
+
],
|
|
3831
|
+
// for type scale: prose-xl
|
|
3832
|
+
[
|
|
3833
|
+
e + "-",
|
|
3834
|
+
({ $$: i }, l) => {
|
|
3835
|
+
let s = et(l.theme("fontSize", i));
|
|
3836
|
+
return s && {
|
|
3837
|
+
"@layer components": s
|
|
3838
|
+
};
|
|
3839
|
+
}
|
|
3840
|
+
],
|
|
3841
|
+
// for colors: prose-sky
|
|
3842
|
+
[
|
|
3843
|
+
e + "-",
|
|
3844
|
+
({ $$: i }, l) => n(i, l)
|
|
3845
|
+
],
|
|
3846
|
+
// prose
|
|
3847
|
+
[
|
|
3848
|
+
e,
|
|
3849
|
+
(i, l) => ({
|
|
3850
|
+
// layer defaults
|
|
3851
|
+
...n(t, l),
|
|
3852
|
+
"@layer base": [
|
|
3853
|
+
Ke(e, l, {
|
|
3854
|
+
a: {
|
|
3855
|
+
color: "var(--tw-prose-links)",
|
|
3856
|
+
textDecorationLine: "underline",
|
|
3857
|
+
fontWeight: "500"
|
|
3858
|
+
},
|
|
3859
|
+
strong: {
|
|
3860
|
+
color: "var(--tw-prose-bold)",
|
|
3861
|
+
fontWeight: "600"
|
|
3862
|
+
},
|
|
3863
|
+
"a strong,blockquote strong,thead th strong": {
|
|
3864
|
+
color: "inherit"
|
|
3865
|
+
},
|
|
3866
|
+
ul: {
|
|
3867
|
+
listStyleType: "disc"
|
|
3868
|
+
},
|
|
3869
|
+
ol: {
|
|
3870
|
+
listStyleType: "decimal"
|
|
3871
|
+
},
|
|
3872
|
+
'ol[type="A"]': {
|
|
3873
|
+
listStyleType: "upper-alpha"
|
|
3874
|
+
},
|
|
3875
|
+
'ol[type="a"]': {
|
|
3876
|
+
listStyleType: "lower-alpha"
|
|
3877
|
+
},
|
|
3878
|
+
'ol[type="A" s]': {
|
|
3879
|
+
listStyleType: "upper-alpha"
|
|
3880
|
+
},
|
|
3881
|
+
'ol[type="a" s]': {
|
|
3882
|
+
listStyleType: "lower-alpha"
|
|
3883
|
+
},
|
|
3884
|
+
'ol[type="I"]': {
|
|
3885
|
+
listStyleType: "upper-roman"
|
|
3886
|
+
},
|
|
3887
|
+
'ol[type="i"]': {
|
|
3888
|
+
listStyleType: "lower-roman"
|
|
3889
|
+
},
|
|
3890
|
+
'ol[type="I" s]': {
|
|
3891
|
+
listStyleType: "upper-roman"
|
|
3892
|
+
},
|
|
3893
|
+
'ol[type="i" s]': {
|
|
3894
|
+
listStyleType: "lower-roman"
|
|
3895
|
+
},
|
|
3896
|
+
'ol[type="1"]': {
|
|
3897
|
+
listStyleType: "decimal"
|
|
3898
|
+
},
|
|
3899
|
+
"ol,ul": {
|
|
3900
|
+
marginTop: g(20, 16),
|
|
3901
|
+
marginBottom: g(20, 16),
|
|
3902
|
+
paddingLeft: g(26, 16)
|
|
3903
|
+
},
|
|
3904
|
+
li: {
|
|
3905
|
+
marginTop: g(8, 16),
|
|
3906
|
+
marginBottom: g(8, 16)
|
|
3907
|
+
},
|
|
3908
|
+
"ol>li,ul>li": {
|
|
3909
|
+
paddingLeft: g(6, 16)
|
|
3910
|
+
},
|
|
3911
|
+
">ul>li p": {
|
|
3912
|
+
marginTop: g(12, 16),
|
|
3913
|
+
marginBottom: g(12, 16)
|
|
3914
|
+
},
|
|
3915
|
+
">ul>li>*:first-child,>ol>li>*:last-child": {
|
|
3916
|
+
marginTop: g(20, 16)
|
|
3917
|
+
},
|
|
3918
|
+
">ul>li>*:last-child,>ol>li>*:last-child": {
|
|
3919
|
+
marginBottom: g(20, 16)
|
|
3920
|
+
},
|
|
3921
|
+
"ol>li::marker": {
|
|
3922
|
+
fontWeight: "400",
|
|
3923
|
+
color: "var(--tw-prose-counters)"
|
|
3924
|
+
},
|
|
3925
|
+
"ul>li::marker": {
|
|
3926
|
+
color: "var(--tw-prose-bullets)"
|
|
3927
|
+
},
|
|
3928
|
+
"ul ul,ul ol,ol ul,ol ol": {
|
|
3929
|
+
marginTop: g(12, 16),
|
|
3930
|
+
marginBottom: g(12, 16)
|
|
3931
|
+
},
|
|
3932
|
+
hr: {
|
|
3933
|
+
borderColor: "var(--tw-prose-hr)",
|
|
3934
|
+
borderTopWidth: "1",
|
|
3935
|
+
marginTop: g(48, 16),
|
|
3936
|
+
marginBottom: g(48, 16)
|
|
3937
|
+
},
|
|
3938
|
+
blockquote: {
|
|
3939
|
+
marginTop: g(32, 20),
|
|
3940
|
+
marginBottom: g(32, 20),
|
|
3941
|
+
paddingLeft: g(20, 20),
|
|
3942
|
+
fontWeight: "500",
|
|
3943
|
+
fontStyle: "italic",
|
|
3944
|
+
color: "var(--tw-prose-quotes)",
|
|
3945
|
+
borderLeftWidth: "0.25rem",
|
|
3946
|
+
borderLeftColor: "var(--tw-prose-quote-borders)",
|
|
3947
|
+
quotes: '"\\201C""\\201D""\\2018""\\2019"'
|
|
3948
|
+
},
|
|
3949
|
+
"blockquote p:first-of-type::before": {
|
|
3950
|
+
content: "open-quote"
|
|
3951
|
+
},
|
|
3952
|
+
"blockquote p:last-of-type::after": {
|
|
3953
|
+
content: "close-quote"
|
|
3954
|
+
},
|
|
3955
|
+
p: {
|
|
3956
|
+
marginTop: g(20, 16),
|
|
3957
|
+
marginBottom: g(20, 16)
|
|
3958
|
+
},
|
|
3959
|
+
h1: {
|
|
3960
|
+
color: "var(--tw-prose-headings)",
|
|
3961
|
+
fontWeight: "800",
|
|
3962
|
+
fontSize: g(36, 16),
|
|
3963
|
+
marginTop: "0",
|
|
3964
|
+
marginBottom: g(32, 36),
|
|
3965
|
+
lineHeight: 1.15
|
|
3966
|
+
},
|
|
3967
|
+
"h1 strong": {
|
|
3968
|
+
fontWeight: "900",
|
|
3969
|
+
color: "inherit"
|
|
3970
|
+
},
|
|
3971
|
+
h2: {
|
|
3972
|
+
color: "var(--tw-prose-headings)",
|
|
3973
|
+
fontWeight: "700",
|
|
3974
|
+
fontSize: g(24, 16),
|
|
3975
|
+
marginTop: g(48, 24),
|
|
3976
|
+
marginBottom: g(24, 24),
|
|
3977
|
+
lineHeight: "1.35"
|
|
3978
|
+
},
|
|
3979
|
+
"h2 strong": {
|
|
3980
|
+
fontWeight: "800",
|
|
3981
|
+
color: "inherit"
|
|
3982
|
+
},
|
|
3983
|
+
h3: {
|
|
3984
|
+
color: "var(--tw-prose-headings)",
|
|
3985
|
+
fontWeight: "600",
|
|
3986
|
+
fontSize: g(20, 16),
|
|
3987
|
+
marginTop: g(32, 20),
|
|
3988
|
+
marginBottom: g(12, 20),
|
|
3989
|
+
lineHeight: "1.6"
|
|
3990
|
+
},
|
|
3991
|
+
"h3 strong": {
|
|
3992
|
+
fontWeight: "700",
|
|
3993
|
+
color: "inherit"
|
|
3994
|
+
},
|
|
3995
|
+
h4: {
|
|
3996
|
+
color: "var(--tw-prose-headings)",
|
|
3997
|
+
fontWeight: "600",
|
|
3998
|
+
marginTop: g(24, 16),
|
|
3999
|
+
marginBottom: g(8, 16),
|
|
4000
|
+
lineHeight: "1.5"
|
|
4001
|
+
},
|
|
4002
|
+
"h4 strong": {
|
|
4003
|
+
fontWeight: "700",
|
|
4004
|
+
color: "inherit"
|
|
4005
|
+
},
|
|
4006
|
+
"hr+*,h2+*,h3+*,h4+*": {
|
|
4007
|
+
marginTop: "0"
|
|
4008
|
+
},
|
|
4009
|
+
"img,video,figure": {
|
|
4010
|
+
marginTop: g(32, 16),
|
|
4011
|
+
marginBottom: g(32, 16)
|
|
4012
|
+
},
|
|
4013
|
+
"figure>*": {
|
|
4014
|
+
marginTop: "0",
|
|
4015
|
+
marginBottom: "0"
|
|
4016
|
+
},
|
|
4017
|
+
figcaption: {
|
|
4018
|
+
color: "var(--tw-prose-captions)",
|
|
4019
|
+
fontSize: g(14, 16),
|
|
4020
|
+
lineHeight: "1.4",
|
|
4021
|
+
marginTop: g(12, 14)
|
|
4022
|
+
},
|
|
4023
|
+
code: {
|
|
4024
|
+
color: "var(--tw-prose-code)",
|
|
4025
|
+
fontWeight: "600",
|
|
4026
|
+
fontSize: g(14, 16)
|
|
4027
|
+
},
|
|
4028
|
+
"code::before,code::after": {
|
|
4029
|
+
content: '"`"'
|
|
4030
|
+
},
|
|
4031
|
+
"h2 code": {
|
|
4032
|
+
fontSize: g(21, 24)
|
|
4033
|
+
},
|
|
4034
|
+
"h3 code": {
|
|
4035
|
+
fontSize: g(18, 20)
|
|
4036
|
+
},
|
|
4037
|
+
"a code,h1 code,h2 code,h3 code,h4 code,blockquote code,thead th code": {
|
|
4038
|
+
color: "inherit"
|
|
4039
|
+
},
|
|
4040
|
+
pre: {
|
|
4041
|
+
color: "var(--tw-prose-pre-code)",
|
|
4042
|
+
backgroundColor: "var(--tw-prose-pre-bg)",
|
|
4043
|
+
overflowX: "auto",
|
|
4044
|
+
fontWeight: "400",
|
|
4045
|
+
fontSize: g(14, 16),
|
|
4046
|
+
lineHeight: "1.7",
|
|
4047
|
+
marginTop: g(24, 14),
|
|
4048
|
+
marginBottom: g(24, 14),
|
|
4049
|
+
borderRadius: "0.375rem",
|
|
4050
|
+
paddingTop: g(12, 14),
|
|
4051
|
+
paddingRight: g(16, 14),
|
|
4052
|
+
paddingBottom: g(12, 14),
|
|
4053
|
+
paddingLeft: g(16, 14)
|
|
4054
|
+
},
|
|
4055
|
+
"pre code": {
|
|
4056
|
+
backgroundColor: "transparent",
|
|
4057
|
+
borderWidth: "0",
|
|
4058
|
+
borderRadius: "0",
|
|
4059
|
+
padding: "0",
|
|
4060
|
+
fontWeight: "inherit",
|
|
4061
|
+
color: "inherit",
|
|
4062
|
+
fontSize: "inherit",
|
|
4063
|
+
fontFamily: "inherit",
|
|
4064
|
+
lineHeight: "inherit"
|
|
4065
|
+
},
|
|
4066
|
+
"pre code::before": {
|
|
4067
|
+
content: "none"
|
|
4068
|
+
},
|
|
4069
|
+
"pre code::after": {
|
|
4070
|
+
content: "none"
|
|
4071
|
+
},
|
|
4072
|
+
table: {
|
|
4073
|
+
width: "100%",
|
|
4074
|
+
tableLayout: "auto",
|
|
4075
|
+
textAlign: "left",
|
|
4076
|
+
marginTop: g(32, 16),
|
|
4077
|
+
marginBottom: g(32, 16),
|
|
4078
|
+
fontSize: g(14, 16),
|
|
4079
|
+
lineHeight: "1.7"
|
|
4080
|
+
},
|
|
4081
|
+
thead: {
|
|
4082
|
+
borderBottomWidth: "1px",
|
|
4083
|
+
borderBottomColor: "var(--tw-prose-th-borders)"
|
|
4084
|
+
},
|
|
4085
|
+
"thead th": {
|
|
4086
|
+
color: "var(--tw-prose-headings)",
|
|
4087
|
+
fontWeight: "600",
|
|
4088
|
+
verticalAlign: "bottom",
|
|
4089
|
+
paddingRight: g(8, 14),
|
|
4090
|
+
paddingBottom: g(8, 14),
|
|
4091
|
+
paddingLeft: g(8, 14)
|
|
4092
|
+
},
|
|
4093
|
+
"thead th:first-child": {
|
|
4094
|
+
paddingLeft: "0"
|
|
4095
|
+
},
|
|
4096
|
+
"thead th:last-child": {
|
|
4097
|
+
paddingRight: "0"
|
|
4098
|
+
},
|
|
4099
|
+
"tbody tr": {
|
|
4100
|
+
borderBottomWidth: "1px",
|
|
4101
|
+
borderBottomColor: "var(--tw-prose-td-borders)"
|
|
4102
|
+
},
|
|
4103
|
+
"tbody tr:last-child": {
|
|
4104
|
+
borderBottomWidth: "0"
|
|
4105
|
+
},
|
|
4106
|
+
"tbody td,tfoot td": {
|
|
4107
|
+
verticalAlign: "baseline",
|
|
4108
|
+
paddingTop: g(8, 14),
|
|
4109
|
+
paddingRight: g(8, 14),
|
|
4110
|
+
paddingBottom: g(8, 14),
|
|
4111
|
+
paddingLeft: g(8, 14)
|
|
4112
|
+
},
|
|
4113
|
+
"tbody td:first-child,tfoot td:first-child": {
|
|
4114
|
+
paddingLeft: "0"
|
|
4115
|
+
},
|
|
4116
|
+
"tbody td:last-child,tfoot td:last-child": {
|
|
4117
|
+
paddingRight: "0"
|
|
4118
|
+
},
|
|
4119
|
+
[`.${l.e(l.h("lead"))}`]: {
|
|
4120
|
+
color: "var(--tw-prose-lead)",
|
|
4121
|
+
fontSize: g(20, 16),
|
|
4122
|
+
lineHeight: "1.6",
|
|
4123
|
+
marginTop: g(24, 20),
|
|
4124
|
+
marginBottom: g(24, 20)
|
|
4125
|
+
},
|
|
4126
|
+
">:first-child": {
|
|
4127
|
+
marginTop: "0"
|
|
4128
|
+
},
|
|
4129
|
+
">:last-child": {
|
|
4130
|
+
marginBottom: "0"
|
|
4131
|
+
}
|
|
4132
|
+
}),
|
|
4133
|
+
Ke(e, l, r)
|
|
4134
|
+
],
|
|
4135
|
+
"@layer components": {
|
|
4136
|
+
...et(l.theme("fontSize", "base")),
|
|
4137
|
+
color: "var(--tw-prose-body)",
|
|
4138
|
+
maxWidth: "theme(max-w.prose, 65ch)"
|
|
4139
|
+
}
|
|
4140
|
+
})
|
|
4141
|
+
]
|
|
4142
|
+
]
|
|
4143
|
+
};
|
|
4144
|
+
function n(i, l) {
|
|
4145
|
+
let s = {}, a = {}, c = (u, f, h) => {
|
|
4146
|
+
let b = l.theme(`colors.${i}.${f}`, f);
|
|
4147
|
+
h["--tw-prose-" + u] = z(b);
|
|
4148
|
+
let w = h != a && l.d("colors", `${i}-${f}`, b);
|
|
4149
|
+
w && (a["--tw-prose-" + u] = z(w));
|
|
4150
|
+
};
|
|
4151
|
+
for (let u in o) {
|
|
4152
|
+
let f = o[u];
|
|
4153
|
+
u != "dark" && f && c(u, f, s);
|
|
4154
|
+
}
|
|
4155
|
+
for (let u in o.dark || {}) {
|
|
4156
|
+
let f = o.dark[u];
|
|
4157
|
+
f && (o.dark ? (
|
|
4158
|
+
// explicit dark colors - need to use `dark:prose-invert`
|
|
4159
|
+
c("invert-" + u, f, s)
|
|
4160
|
+
) : (
|
|
4161
|
+
// auto dark colors
|
|
4162
|
+
c(u, f, a)
|
|
4163
|
+
));
|
|
4164
|
+
}
|
|
4165
|
+
return Object.keys(s).length ? {
|
|
4166
|
+
"@layer defaults": {
|
|
4167
|
+
"&": s,
|
|
4168
|
+
[l.v("dark")]: a
|
|
4169
|
+
}
|
|
4170
|
+
} : void 0;
|
|
4171
|
+
}
|
|
4172
|
+
}
|
|
4173
|
+
function Ke(e, t, r) {
|
|
4174
|
+
let o = {};
|
|
4175
|
+
for (let n in r)
|
|
4176
|
+
o[mt(e, n, t, (i) => `.${t.e(t.h(e))}${i}`)] = r[n];
|
|
4177
|
+
return o;
|
|
4178
|
+
}
|
|
4179
|
+
function mt(e, t, { e: r, h: o }, n) {
|
|
4180
|
+
return t.replace(
|
|
4181
|
+
// 1. if there no pseudo use whole selector
|
|
4182
|
+
// 2. if there are pseudo replace prefix
|
|
4183
|
+
/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,
|
|
4184
|
+
(i, l = " ", s = i, a = "") => n(`${l}:where(${s}):not(:where(.${r(o("not-" + e))} *))${a}`)
|
|
4185
|
+
);
|
|
4186
|
+
}
|
|
4187
|
+
function et(e) {
|
|
4188
|
+
return e ? typeof e == "string" ? {
|
|
4189
|
+
fontSize: e
|
|
4190
|
+
} : {
|
|
4191
|
+
fontSize: e[0],
|
|
4192
|
+
...typeof e[1] == "string" ? {
|
|
4193
|
+
lineHeight: e[1]
|
|
4194
|
+
} : e[1]
|
|
4195
|
+
} : void 0;
|
|
4196
|
+
}
|
|
4197
|
+
function g(e, t) {
|
|
4198
|
+
return `${(e / t).toFixed(3).replace(/^0|\.?0+$/g, "")}em`;
|
|
4199
|
+
}
|
|
4200
|
+
let bt = {
|
|
4201
|
+
...ge,
|
|
4202
|
+
colors: ht
|
|
4203
|
+
}, [Ar, Rr] = bt.fontSize.base, { spacing: q, borderWidth: tt, borderRadius: rt } = bt;
|
|
4204
|
+
function Er({ strategy: e } = {}) {
|
|
4205
|
+
let t = {};
|
|
4206
|
+
return e !== "base" && (t.rules = [
|
|
4207
|
+
[
|
|
4208
|
+
"(" + [
|
|
4209
|
+
...new Set($e.flatMap((r) => r.c).filter(Boolean))
|
|
4210
|
+
].join("|") + ")",
|
|
4211
|
+
(r, o) => ({
|
|
4212
|
+
"@layer base": $e.filter((n) => {
|
|
4213
|
+
var i;
|
|
4214
|
+
return (i = n.c) == null ? void 0 : i.includes(r[1]);
|
|
4215
|
+
}).map(({ c: n, s: i }) => ({
|
|
4216
|
+
["" + n.map((l) => "." + o.e(o.h(l)))]: typeof i == "function" ? i(o) : i
|
|
4217
|
+
}))
|
|
4218
|
+
})
|
|
4219
|
+
]
|
|
4220
|
+
]), e !== "class" && (t.preflight = (r) => {
|
|
4221
|
+
let o = {};
|
|
4222
|
+
for (let { b: n, s: i } of $e)
|
|
4223
|
+
o["" + n] = typeof i == "function" ? i(r) : i;
|
|
4224
|
+
return o;
|
|
4225
|
+
}), t;
|
|
4226
|
+
}
|
|
4227
|
+
let $e = [
|
|
4228
|
+
{
|
|
4229
|
+
b: [
|
|
4230
|
+
"[type='text']",
|
|
4231
|
+
"[type='email']",
|
|
4232
|
+
"[type='url']",
|
|
4233
|
+
"[type='password']",
|
|
4234
|
+
"[type='number']",
|
|
4235
|
+
"[type='date']",
|
|
4236
|
+
"[type='datetime-local']",
|
|
4237
|
+
"[type='month']",
|
|
4238
|
+
"[type='search']",
|
|
4239
|
+
"[type='tel']",
|
|
4240
|
+
"[type='time']",
|
|
4241
|
+
"[type='week']",
|
|
4242
|
+
"[multiple]",
|
|
4243
|
+
"textarea",
|
|
4244
|
+
"select"
|
|
4245
|
+
],
|
|
4246
|
+
c: [
|
|
4247
|
+
"form-input",
|
|
4248
|
+
"form-textarea",
|
|
4249
|
+
"form-select",
|
|
4250
|
+
"form-multiselect"
|
|
4251
|
+
],
|
|
4252
|
+
s: ({ theme: e }) => ({
|
|
4253
|
+
appearance: "none",
|
|
4254
|
+
"background-color": "#fff",
|
|
4255
|
+
"border-color": z(e("colors.gray.500", re[500])),
|
|
4256
|
+
"border-width": tt.DEFAULT,
|
|
4257
|
+
"border-radius": rt.none,
|
|
4258
|
+
"padding-top": q[2],
|
|
4259
|
+
"padding-right": q[3],
|
|
4260
|
+
"padding-bottom": q[2],
|
|
4261
|
+
"padding-left": q[3],
|
|
4262
|
+
"font-size": Ar,
|
|
4263
|
+
"line-height": Rr,
|
|
4264
|
+
"--tw-shadow": "0 0 #0000",
|
|
4265
|
+
"&:focus": {
|
|
4266
|
+
outline: "2px solid transparent",
|
|
4267
|
+
"outline-offset": "2px",
|
|
4268
|
+
"--tw-ring-inset": "var(--tw-empty,/*!*/ /*!*/)",
|
|
4269
|
+
"--tw-ring-offset-width": "0px",
|
|
4270
|
+
"--tw-ring-offset-color": "#fff",
|
|
4271
|
+
"--tw-ring-color": z(e("colors.blue.600", oe[600])),
|
|
4272
|
+
"--tw-ring-offset-shadow": "var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)",
|
|
4273
|
+
"--tw-ring-shadow": "var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",
|
|
4274
|
+
"box-shadow": "var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)",
|
|
4275
|
+
"border-color": z(e("colors.blue.600", oe[600]))
|
|
4276
|
+
}
|
|
4277
|
+
})
|
|
4278
|
+
},
|
|
4279
|
+
{
|
|
4280
|
+
b: [
|
|
4281
|
+
"input",
|
|
4282
|
+
"textarea"
|
|
4283
|
+
],
|
|
4284
|
+
c: [
|
|
4285
|
+
"form-input",
|
|
4286
|
+
"form-textarea"
|
|
4287
|
+
],
|
|
4288
|
+
s: ({ theme: e }) => ({
|
|
4289
|
+
"&::placeholder": {
|
|
4290
|
+
color: z(e("colors.gray.500", re[500])),
|
|
4291
|
+
opacity: "1"
|
|
4292
|
+
}
|
|
4293
|
+
})
|
|
4294
|
+
},
|
|
4295
|
+
{
|
|
4296
|
+
b: [
|
|
4297
|
+
""
|
|
4298
|
+
],
|
|
4299
|
+
c: [
|
|
4300
|
+
"form-input"
|
|
4301
|
+
],
|
|
4302
|
+
s: {
|
|
4303
|
+
"&::-webkit-datetime-edit-fields-wrapper": {
|
|
4304
|
+
padding: "0"
|
|
4305
|
+
},
|
|
4306
|
+
// Unfortunate hack until https://bugs.webkit.org/show_bug.cgi?id=198959 is fixed.
|
|
4307
|
+
// This sucks because users can't change line-height with a utility on date inputs now.
|
|
4308
|
+
// Reference: https://github.com/twbs/bootstrap/pull/31993
|
|
4309
|
+
"&::-webkit-date-and-time-value": {
|
|
4310
|
+
"min-height": "1.5em"
|
|
4311
|
+
}
|
|
4312
|
+
}
|
|
4313
|
+
},
|
|
4314
|
+
{
|
|
4315
|
+
b: [
|
|
4316
|
+
"select"
|
|
4317
|
+
],
|
|
4318
|
+
c: [
|
|
4319
|
+
"form-select"
|
|
4320
|
+
],
|
|
4321
|
+
s: ({ theme: e }) => ({
|
|
4322
|
+
"background-image": `url("${ce(`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><path stroke="${z(e("colors.gray.500", re[500]))}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6 8l4 4 4-4"/></svg>`)}")`,
|
|
4323
|
+
"background-position": `right ${q[2]} center`,
|
|
4324
|
+
"background-repeat": "no-repeat",
|
|
4325
|
+
"background-size": "1.5em 1.5em",
|
|
4326
|
+
"padding-right": q[10],
|
|
4327
|
+
"color-adjust": "exact"
|
|
4328
|
+
})
|
|
4329
|
+
},
|
|
4330
|
+
{
|
|
4331
|
+
b: [
|
|
4332
|
+
"[multiple]"
|
|
4333
|
+
],
|
|
4334
|
+
// class: null,
|
|
4335
|
+
s: {
|
|
4336
|
+
"background-image": "initial",
|
|
4337
|
+
"background-position": "initial",
|
|
4338
|
+
"background-repeat": "unset",
|
|
4339
|
+
"background-size": "initial",
|
|
4340
|
+
"padding-right": q[3],
|
|
4341
|
+
"color-adjust": "unset"
|
|
4342
|
+
}
|
|
4343
|
+
},
|
|
4344
|
+
{
|
|
4345
|
+
b: [
|
|
4346
|
+
"[type='checkbox']",
|
|
4347
|
+
"[type='radio']"
|
|
4348
|
+
],
|
|
4349
|
+
c: [
|
|
4350
|
+
"form-checkbox",
|
|
4351
|
+
"form-radio"
|
|
4352
|
+
],
|
|
4353
|
+
s: ({ theme: e }) => ({
|
|
4354
|
+
appearance: "none",
|
|
4355
|
+
padding: "0",
|
|
4356
|
+
"color-adjust": "exact",
|
|
4357
|
+
display: "inline-block",
|
|
4358
|
+
"vertical-align": "middle",
|
|
4359
|
+
"background-origin": "border-box",
|
|
4360
|
+
"user-select": "none",
|
|
4361
|
+
"flex-shrink": "0",
|
|
4362
|
+
height: q[4],
|
|
4363
|
+
width: q[4],
|
|
4364
|
+
color: z(e("colors.blue.600", oe[600])),
|
|
4365
|
+
"background-color": "#fff",
|
|
4366
|
+
"border-color": z(e("colors.gray.500", re[500])),
|
|
4367
|
+
"border-width": tt.DEFAULT,
|
|
4368
|
+
"--tw-shadow": "0 0 #0000",
|
|
4369
|
+
"&:focus": {
|
|
4370
|
+
outline: "2px solid transparent",
|
|
4371
|
+
"outline-offset": "2px",
|
|
4372
|
+
"--tw-ring-inset": "var(--tw-empty,/*!*/ /*!*/)",
|
|
4373
|
+
"--tw-ring-offset-width": "2px",
|
|
4374
|
+
"--tw-ring-offset-color": "#fff",
|
|
4375
|
+
"--tw-ring-color": z(e("colors.blue.600", oe[600])),
|
|
4376
|
+
"--tw-ring-offset-shadow": "var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)",
|
|
4377
|
+
"--tw-ring-shadow": "var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",
|
|
4378
|
+
"box-shadow": "var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)"
|
|
4379
|
+
},
|
|
4380
|
+
"&:checked": {
|
|
4381
|
+
"border-color": "transparent",
|
|
4382
|
+
"background-color": "currentColor",
|
|
4383
|
+
"background-size": "100% 100%",
|
|
4384
|
+
"background-position": "center",
|
|
4385
|
+
"background-repeat": "no-repeat",
|
|
4386
|
+
"&:hover,&:focus": {
|
|
4387
|
+
"border-color": "transparent",
|
|
4388
|
+
"background-color": "currentColor"
|
|
4389
|
+
}
|
|
4390
|
+
}
|
|
4391
|
+
})
|
|
4392
|
+
},
|
|
4393
|
+
{
|
|
4394
|
+
b: [
|
|
4395
|
+
"[type='checkbox']"
|
|
4396
|
+
],
|
|
4397
|
+
c: [
|
|
4398
|
+
"form-checkbox"
|
|
4399
|
+
],
|
|
4400
|
+
s: {
|
|
4401
|
+
"border-radius": rt.none,
|
|
4402
|
+
"&:checked": {
|
|
4403
|
+
"background-image": `url("${ce('<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z"/></svg>')}")`
|
|
4404
|
+
},
|
|
4405
|
+
"&:indeterminate": {
|
|
4406
|
+
"background-image": `url("${ce('<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 8h8"/></svg>')}")`,
|
|
4407
|
+
"border-color": "transparent",
|
|
4408
|
+
"background-color": "currentColor",
|
|
4409
|
+
"background-size": "100% 100%",
|
|
4410
|
+
"background-position": "center",
|
|
4411
|
+
"background-repeat": "no-repeat",
|
|
4412
|
+
"&:hover,&:focus": {
|
|
4413
|
+
"border-color": "transparent",
|
|
4414
|
+
"background-color": "currentColor"
|
|
4415
|
+
}
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4418
|
+
},
|
|
4419
|
+
{
|
|
4420
|
+
b: [
|
|
4421
|
+
"[type='radio']"
|
|
4422
|
+
],
|
|
4423
|
+
c: [
|
|
4424
|
+
"form-radio"
|
|
4425
|
+
],
|
|
4426
|
+
s: {
|
|
4427
|
+
"border-radius": "100%",
|
|
4428
|
+
"&:checked": {
|
|
4429
|
+
"background-image": `url("${ce('<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3"/></svg>')}")`
|
|
4430
|
+
}
|
|
4431
|
+
}
|
|
4432
|
+
},
|
|
4433
|
+
{
|
|
4434
|
+
b: [
|
|
4435
|
+
"[type='file']"
|
|
4436
|
+
],
|
|
4437
|
+
// class: null,
|
|
4438
|
+
s: {
|
|
4439
|
+
background: "unset",
|
|
4440
|
+
"border-color": "inherit",
|
|
4441
|
+
"border-width": "0",
|
|
4442
|
+
"border-radius": "0",
|
|
4443
|
+
padding: "0",
|
|
4444
|
+
"font-size": "unset",
|
|
4445
|
+
"line-height": "inherit",
|
|
4446
|
+
"&:focus": {
|
|
4447
|
+
outline: [
|
|
4448
|
+
"1px solid ButtonText",
|
|
4449
|
+
"1px auto -webkit-focus-ring-color"
|
|
4450
|
+
]
|
|
4451
|
+
}
|
|
4452
|
+
}
|
|
4453
|
+
}
|
|
4454
|
+
];
|
|
4455
|
+
function Fr(e) {
|
|
4456
|
+
switch (e) {
|
|
4457
|
+
case "%20":
|
|
4458
|
+
return " ";
|
|
4459
|
+
case "%3D":
|
|
4460
|
+
return "=";
|
|
4461
|
+
case "%3A":
|
|
4462
|
+
return ":";
|
|
4463
|
+
case "%2F":
|
|
4464
|
+
return "/";
|
|
4465
|
+
default:
|
|
4466
|
+
return e.toLowerCase();
|
|
4467
|
+
}
|
|
4468
|
+
}
|
|
4469
|
+
function ce(e) {
|
|
4470
|
+
return "data:image/svg+xml," + encodeURIComponent(e.trim().replace(/\s+/g, " ").replace(/"/g, "'")).replace(/%[\dA-F]{2}/g, Fr);
|
|
4471
|
+
}
|
|
4472
|
+
const Wr = ft({
|
|
4473
|
+
theme: {
|
|
4474
|
+
extend: {
|
|
4475
|
+
colors: {
|
|
4476
|
+
primary: "var(--clr-primary,black)",
|
|
4477
|
+
accent: "var(--clr-accent,blue)",
|
|
4478
|
+
label: "var(--clr-label,black)",
|
|
4479
|
+
input: "var(--clr-input,black)",
|
|
4480
|
+
placeholder: "var(--clr-placeholder,#94a3b8)",
|
|
4481
|
+
"category-label": "var(--clr-category-label,black)"
|
|
4482
|
+
},
|
|
4483
|
+
fontFamily: {
|
|
4484
|
+
"ff-text": ["var(--ff-text)", "Helvetica", "Arial", "sans-serif"]
|
|
4485
|
+
}
|
|
4486
|
+
}
|
|
4487
|
+
},
|
|
4488
|
+
presets: [
|
|
4489
|
+
tr(),
|
|
4490
|
+
$r(),
|
|
4491
|
+
zr(),
|
|
4492
|
+
Er()
|
|
4493
|
+
]
|
|
4494
|
+
}), Or = Dt(Wr), jr = Jt(xt, {
|
|
4495
|
+
props: {
|
|
4496
|
+
config: "json",
|
|
4497
|
+
options: "json"
|
|
4498
|
+
},
|
|
4499
|
+
shadow: "open"
|
|
4500
|
+
});
|
|
4501
|
+
class Dr extends Or(jr) {
|
|
4502
|
+
}
|
|
4503
|
+
customElements.define("twintag-form", Dr);
|