@twintag/twintag-form 1.4.1 → 1.6.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.
Files changed (47) hide show
  1. package/.turbo/turbo-build.log +16 -15
  2. package/CHANGELOG.md +12 -0
  3. package/dev/main.tsx +1 -1
  4. package/dist/common/button.d.ts +5 -86
  5. package/dist/common/calendar.d.ts +3 -81
  6. package/dist/common/form.d.ts +14 -94
  7. package/dist/common/input.d.ts +10 -155
  8. package/dist/common/label.d.ts +2 -23
  9. package/dist/common/textarea.d.ts +5 -78
  10. package/dist/components/containers/accordion.d.ts +1 -1
  11. package/dist/components/fields/date-picker.d.ts +1 -2
  12. package/dist/components/form.d.ts +2 -2
  13. package/dist/components/provider.d.ts +8 -10
  14. package/dist/index.cjs +1 -0
  15. package/dist/index.js +4456 -0
  16. package/dist/types/index.d.ts +1 -1
  17. package/dist/webcomponent.cjs +1 -0
  18. package/dist/webcomponent.js +1170 -0
  19. package/lib/common/calendar.tsx +1 -1
  20. package/lib/common/form.tsx +1 -1
  21. package/lib/common/input.tsx +1 -1
  22. package/lib/common/textarea.tsx +1 -1
  23. package/lib/components/containers/accordion.tsx +3 -3
  24. package/lib/components/containers/category.tsx +1 -1
  25. package/lib/components/fields/checkbox.tsx +1 -1
  26. package/lib/components/fields/date-picker.tsx +4 -4
  27. package/lib/components/fields/file.tsx +1 -1
  28. package/lib/components/fields/input.tsx +1 -1
  29. package/lib/components/fields/radiogroup.tsx +2 -2
  30. package/lib/components/fields/textarea.tsx +1 -1
  31. package/lib/components/fields/toggle.tsx +1 -1
  32. package/lib/types/index.ts +1 -1
  33. package/lib/utils/data.ts +5 -3
  34. package/lib/utils/string.ts +3 -3
  35. package/lib/webcomponent.ts +0 -1
  36. package/package.json +8 -12
  37. package/tailwind.config.ts +2 -2
  38. package/tsconfig.json +5 -4
  39. package/vite.config.ts +18 -10
  40. package/.eslintrc.cjs +0 -9
  41. package/dist/common/scroll-area.d.ts +0 -5
  42. package/dist/common/select.d.ts +0 -13
  43. package/dist/react.d.ts +0 -1
  44. package/dist/twintag-form.react.js +0 -22652
  45. package/dist/twintag-form.webcomponent.js +0 -4758
  46. package/lib/common/scroll-area.tsx +0 -46
  47. package/lib/common/select.tsx +0 -159
@@ -1,4758 +0,0 @@
1
- import Ye from "react";
2
- import ct from "react-dom";
3
- import { Form as pt } from "./twintag-form.react.js";
4
- var ve, te = ct;
5
- if (process.env.NODE_ENV === "production")
6
- ve = te.createRoot, te.hydrateRoot;
7
- else {
8
- var We = te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
9
- ve = function(e, t) {
10
- We.usingClientEntryPoint = !0;
11
- try {
12
- return te.createRoot(e, t);
13
- } finally {
14
- We.usingClientEntryPoint = !1;
15
- }
16
- };
17
- }
18
- var dt = Object.defineProperty, ft = (e, t, r) => t in e ? dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, re = (e, t, r) => (ft(e, typeof t != "symbol" ? t + "" : t, r), r);
19
- const ut = {
20
- stringify: (e) => e,
21
- parse: (e) => e
22
- }, mt = {
23
- stringify: (e) => `${e}`,
24
- parse: (e) => parseFloat(e)
25
- }, gt = {
26
- stringify: (e) => e ? "true" : "false",
27
- parse: (e) => /^[ty1-9]/i.test(e)
28
- }, bt = {
29
- stringify: (e) => e.name,
30
- parse: (e, t) => {
31
- const r = (() => {
32
- if (typeof window < "u" && e in window)
33
- return window[e];
34
- if (typeof global < "u" && e in global)
35
- return global[e];
36
- })();
37
- return typeof r == "function" ? r.bind(t) : void 0;
38
- }
39
- }, ht = {
40
- stringify: (e) => JSON.stringify(e),
41
- parse: (e) => JSON.parse(e)
42
- }, de = {
43
- string: ut,
44
- number: mt,
45
- boolean: gt,
46
- function: bt,
47
- json: ht
48
- }, fe = Symbol.for("r2wc.render"), oe = Symbol.for("r2wc.connected"), B = Symbol.for("r2wc.context"), V = Symbol.for("r2wc.props");
49
- function xt(e, t, r) {
50
- var o, n, s;
51
- t.props || (t.props = e.propTypes ? Object.keys(e.propTypes) : []);
52
- const l = (Array.isArray(t.props) ? t.props.slice() : Object.keys(t.props)).filter((f) => f !== "container"), a = {}, i = {}, d = {};
53
- for (const f of l) {
54
- a[f] = Array.isArray(t.props) ? "string" : t.props[f];
55
- const m = yt(f);
56
- i[f] = m, d[m] = f;
57
- }
58
- class u extends HTMLElement {
59
- constructor() {
60
- super(), re(this, o, !0), re(this, n), re(this, s, {}), re(this, "container"), t.shadow ? this.container = this.attachShadow({
61
- mode: t.shadow
62
- }) : this.container = this, this[V].container = this.container;
63
- for (const m of l) {
64
- const b = i[m], h = this.getAttribute(b), x = a[m], v = de[x];
65
- h && v != null && v.parse && (this[V][m] = v.parse(h, this));
66
- }
67
- }
68
- static get observedAttributes() {
69
- return Object.keys(d);
70
- }
71
- connectedCallback() {
72
- this[oe] = !0, this[fe]();
73
- }
74
- disconnectedCallback() {
75
- this[oe] = !1, this[B] && r.unmount(this[B]), delete this[B];
76
- }
77
- attributeChangedCallback(m, b, h) {
78
- const x = d[m], v = a[x], D = de[v];
79
- x in a && D != null && D.parse && (this[V][x] = D.parse(h, this), this[fe]());
80
- }
81
- [(o = oe, n = B, s = V, fe)]() {
82
- this[oe] && (this[B] ? r.update(this[B], this[V]) : this[B] = r.mount(
83
- this.container,
84
- e,
85
- this[V]
86
- ));
87
- }
88
- }
89
- for (const f of l) {
90
- const m = i[f], b = a[f];
91
- Object.defineProperty(u.prototype, f, {
92
- enumerable: !0,
93
- configurable: !0,
94
- get() {
95
- return this[V][f];
96
- },
97
- set(h) {
98
- this[V][f] = h;
99
- const x = de[b];
100
- if (x != null && x.stringify) {
101
- const v = x.stringify(h);
102
- this.getAttribute(m) !== v && this.setAttribute(m, v);
103
- }
104
- }
105
- });
106
- }
107
- return u;
108
- }
109
- function yt(e = "") {
110
- return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
111
- }
112
- function wt(e, t, r) {
113
- const o = ve(e), n = Ye.createElement(t, r);
114
- return o.render(n), {
115
- root: o,
116
- ReactComponent: t
117
- };
118
- }
119
- function vt({ root: e, ReactComponent: t }, r) {
120
- const o = Ye.createElement(t, r);
121
- e.render(o);
122
- }
123
- function kt({ root: e }) {
124
- e.unmount();
125
- }
126
- function St(e, t = {}) {
127
- return xt(e, t, { mount: wt, update: vt, unmount: kt });
128
- }
129
- function Fe(e) {
130
- return [
131
- ...e.v,
132
- (e.i ? "!" : "") + e.n
133
- ].join(":");
134
- }
135
- function Ct(e, t = ",") {
136
- return e.map(Fe).join(t);
137
- }
138
- let Je = typeof CSS < "u" && CSS.escape || // Simplified: escaping only special characters
139
- // Needed for NodeJS and Edge <79 (https://caniuse.com/mdn-api_css_escape)
140
- ((e) => e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g, "\\$&").replace(/^\d/, "\\3$& "));
141
- function ae(e) {
142
- for (var t = 9, r = e.length; r--; )
143
- t = Math.imul(t ^ e.charCodeAt(r), 1597334677);
144
- return "#" + ((t ^ t >>> 9) >>> 0).toString(36);
145
- }
146
- function Re(e, t = "@media ") {
147
- return t + k(e).map((r) => (typeof r == "string" && (r = {
148
- min: r
149
- }), r.raw || Object.keys(r).map((o) => `(${o}-width:${r[o]})`).join(" and "))).join(",");
150
- }
151
- function k(e = []) {
152
- return Array.isArray(e) ? e : e == null ? [] : [
153
- e
154
- ];
155
- }
156
- function Ue(e) {
157
- return e;
158
- }
159
- function Oe() {
160
- }
161
- let C = {
162
- /**
163
- * 1. `default` (public)
164
- */
165
- d: (
166
- /* efaults */
167
- 0
168
- ),
169
- /* Shifts.layer */
170
- /**
171
- * 2. `base` (public) — for things like reset rules or default styles applied to plain HTML elements.
172
- */
173
- b: (
174
- /* ase */
175
- 134217728
176
- ),
177
- /* Shifts.layer */
178
- /**
179
- * 3. `components` (public, used by `style()`) — is for class-based styles that you want to be able to override with utilities.
180
- */
181
- c: (
182
- /* omponents */
183
- 268435456
184
- ),
185
- /* Shifts.layer */
186
- // reserved for style():
187
- // - props: 0b011
188
- // - when: 0b100
189
- /**
190
- * 6. `aliases` (public, used by `apply()`) — `~(...)`
191
- */
192
- a: (
193
- /* liases */
194
- 671088640
195
- ),
196
- /* Shifts.layer */
197
- /**
198
- * 6. `utilities` (public) — for small, single-purpose classes
199
- */
200
- u: (
201
- /* tilities */
202
- 805306368
203
- ),
204
- /* Shifts.layer */
205
- /**
206
- * 7. `overrides` (public, used by `css()`)
207
- */
208
- o: (
209
- /* verrides */
210
- 939524096
211
- )
212
- };
213
- function Xe(e) {
214
- var t;
215
- return ((t = e.match(/[-=:;]/g)) == null ? void 0 : t.length) || 0;
216
- }
217
- function ke(e) {
218
- 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 */
219
- Math.min(Xe(e), 15) << 18;
220
- }
221
- let zt = [
222
- /* fi */
223
- "rst-c",
224
- /* hild: 0 */
225
- /* la */
226
- "st-ch",
227
- /* ild: 1 */
228
- // even and odd use: nth-child
229
- /* nt */
230
- "h-chi",
231
- /* ld: 2 */
232
- /* an */
233
- "y-lin",
234
- /* k: 3 */
235
- /* li */
236
- "nk",
237
- /* : 4 */
238
- /* vi */
239
- "sited",
240
- /* : 5 */
241
- /* ch */
242
- "ecked",
243
- /* : 6 */
244
- /* em */
245
- "pty",
246
- /* : 7 */
247
- /* re */
248
- "ad-on",
249
- /* ly: 8 */
250
- /* fo */
251
- "cus-w",
252
- /* ithin : 9 */
253
- /* ho */
254
- "ver",
255
- /* : 10 */
256
- /* fo */
257
- "cus",
258
- /* : 11 */
259
- /* fo */
260
- "cus-v",
261
- /* isible : 12 */
262
- /* ac */
263
- "tive",
264
- /* : 13 */
265
- /* di */
266
- "sable",
267
- /* d : 14 */
268
- /* op */
269
- "tiona",
270
- /* l: 15 */
271
- /* re */
272
- "quire"
273
- ];
274
- function $e({ n: e, i: t, v: r = [] }, o, n, s) {
275
- e && (e = Fe({
276
- n: e,
277
- i: t,
278
- v: r
279
- })), s = [
280
- ...k(s)
281
- ];
282
- for (let a of r) {
283
- let i = o.theme("screens", a);
284
- for (let d of k(i && Re(i) || o.v(a))) {
285
- var l;
286
- s.push(d), n |= i ? 67108864 | /* Shifts.screens */
287
- ke(d) : a == "dark" ? 1073741824 : (
288
- /* Shifts.darkMode */
289
- d[0] == "@" ? ke(d) : (l = d, // use first found pseudo-class
290
- 1 << ~(/:([a-z-]+)/.test(l) && ~zt.indexOf(RegExp.$1.slice(2, 7)) || -18))
291
- );
292
- }
293
- }
294
- return {
295
- n: e,
296
- p: n,
297
- r: s,
298
- i: t
299
- };
300
- }
301
- let Ze = /* @__PURE__ */ new Map();
302
- function Se(e) {
303
- if (e.d) {
304
- let t = [], r = ue(
305
- // merge all conditions into a selector string
306
- e.r.reduce((o, n) => n[0] == "@" ? (t.push(n), o) : (
307
- // Go over the selector and replace the matching multiple selectors if any
308
- n ? ue(o, (s) => ue(
309
- n,
310
- // If the current condition has a nested selector replace it
311
- (l) => {
312
- let a = /(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(l);
313
- if (a) {
314
- let i = s.indexOf(a[1]);
315
- return ~i ? (
316
- // [':merge(.group):hover .rule', ':merge(.group):focus &'] -> ':merge(.group):focus:hover .rule'
317
- // ':merge(.group)' + ':focus' + ':hover .rule'
318
- s.slice(0, i) + a[0] + s.slice(i + a[1].length)
319
- ) : (
320
- // [':merge(.peer):focus~&', ':merge(.group):hover &'] -> ':merge(.peer):focus~:merge(.group):hover &'
321
- me(s, l)
322
- );
323
- }
324
- return me(l, s);
325
- }
326
- )) : o
327
- ), "&"),
328
- // replace '&' with rule name or an empty string
329
- (o) => me(o, e.n ? "." + Je(e.n) : "")
330
- );
331
- return r && t.push(r.replace(/:merge\((.+?)\)/g, "$1")), t.reduceRight((o, n) => n + "{" + o + "}", e.d);
332
- }
333
- }
334
- function ue(e, t) {
335
- return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g, (r, o, n) => t(o) + n);
336
- }
337
- function me(e, t) {
338
- return e.replace(/&/g, t);
339
- }
340
- let Me = new Intl.Collator("en", {
341
- numeric: !0
342
- });
343
- function Qe(e, t) {
344
- for (var r = 0, o = e.length; r < o; ) {
345
- let n = o + r >> 1;
346
- 0 >= Ke(e[n], t) ? r = n + 1 : o = n;
347
- }
348
- return o;
349
- }
350
- function Ke(e, t) {
351
- let r = e.p & C.o;
352
- return r == (t.p & C.o) && (r == C.b || r == C.o) ? 0 : e.p - t.p || e.o - t.o || Me.compare(Ve(e.n), Ve(t.n)) || Me.compare(_e(e.n), _e(t.n));
353
- }
354
- function Ve(e) {
355
- return (e || "").split(/:/).pop().split("/").pop() || "\0";
356
- }
357
- function _e(e) {
358
- return (e || "").replace(/\W/g, (t) => String.fromCharCode(127 + t.charCodeAt(0))) + "\0";
359
- }
360
- function ge(e, t) {
361
- return Math.round(parseInt(e, 16) * t);
362
- }
363
- function H(e, t = {}) {
364
- if (typeof e == "function")
365
- return e(t);
366
- let { opacityValue: r = "1", opacityVariable: o } = t, n = o ? `var(${o})` : r;
367
- if (e.includes("<alpha-value>"))
368
- return e.replace("<alpha-value>", n);
369
- if (e[0] == "#" && (e.length == 4 || e.length == 7)) {
370
- let s = (e.length - 1) / 3, l = [
371
- 17,
372
- 1,
373
- 0.062272
374
- ][s - 1];
375
- return `rgba(${[
376
- ge(e.substr(1, s), l),
377
- ge(e.substr(1 + s, s), l),
378
- ge(e.substr(1 + 2 * s, s), l),
379
- n
380
- ]})`;
381
- }
382
- return n == "1" ? e : n == "0" ? "#0000" : (
383
- // convert rgb and hsl to alpha variant
384
- e.replace(/^(rgb|hsl)(\([^)]+)\)$/, `$1a$2,${n})`)
385
- );
386
- }
387
- function et(e, t, r, o, n = []) {
388
- return function s(l, { n: a, p: i, r: d = [], i: u }, f) {
389
- let m = [], b = "", h = 0, x = 0;
390
- for (let y in l || {}) {
391
- var v, D;
392
- let S = l[y];
393
- if (y[0] == "@") {
394
- if (!S)
395
- continue;
396
- if (y[1] == "a") {
397
- m.push(...je(a, i, le("" + S), f, i, d, u, !0));
398
- continue;
399
- }
400
- if (y[1] == "l") {
401
- for (let E of k(S))
402
- m.push(...s(E, {
403
- n: a,
404
- p: (v = C[y[7]], // Set layer (first reset, than set)
405
- i & ~C.o | v),
406
- r: y[7] == "d" ? [] : d,
407
- i: u
408
- }, f));
409
- continue;
410
- }
411
- if (y[1] == "i") {
412
- m.push(...k(S).map((E) => ({
413
- // before all layers
414
- p: -1,
415
- o: 0,
416
- r: [],
417
- d: y + " " + E
418
- })));
419
- continue;
420
- }
421
- if (y[1] == "k") {
422
- m.push({
423
- p: C.d,
424
- o: 0,
425
- r: [
426
- y
427
- ],
428
- d: s(S, {
429
- p: C.d
430
- }, f).map(Se).join("")
431
- });
432
- continue;
433
- }
434
- if (y[1] == "f") {
435
- m.push(...k(S).map((E) => ({
436
- p: C.d,
437
- o: 0,
438
- r: [
439
- y
440
- ],
441
- d: s(E, {
442
- p: C.d
443
- }, f).map(Se).join("")
444
- })));
445
- continue;
446
- }
447
- }
448
- if (typeof S != "object" || Array.isArray(S))
449
- y == "label" && S ? a = S + ae(JSON.stringify([
450
- i,
451
- u,
452
- l
453
- ])) : (S || S === 0) && (y = y.replace(/[A-Z]/g, (E) => "-" + E.toLowerCase()), x += 1, h = Math.max(h, (D = y)[0] == "-" ? 0 : Xe(D) + (/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(D) ? +!!RegExp.$1 || /* +1 */
454
- -!!RegExp.$2 : (
455
- /* -1 */
456
- 0
457
- )) + 1), b += (b ? ";" : "") + k(S).map((E) => f.s(
458
- y,
459
- // support theme(...) function in values
460
- // calc(100vh - theme('spacing.12'))
461
- De("" + E, f.theme) + (u ? " !important" : "")
462
- )).join(";"));
463
- else if (y[0] == "@" || y.includes("&")) {
464
- let E = i;
465
- y[0] == "@" && (y = y.replace(/\bscreen\(([^)]+)\)/g, (ce, G) => {
466
- let U = f.theme("screens", G);
467
- return U ? (E |= 67108864, /* Shifts.screens */
468
- Re(U, "")) : ce;
469
- }), E |= ke(y)), m.push(...s(S, {
470
- n: a,
471
- p: E,
472
- r: [
473
- ...d,
474
- y
475
- ],
476
- i: u
477
- }, f));
478
- } else
479
- m.push(...s(S, {
480
- p: i,
481
- r: [
482
- ...d,
483
- y
484
- ]
485
- }, f));
486
- }
487
- return (
488
- // PERF: prevent unshift using `rules = [{}]` above and then `rules[0] = {...}`
489
- m.unshift({
490
- n: a,
491
- p: i,
492
- o: (
493
- // number of declarations (descending)
494
- Math.max(0, 15 - x) + // greatest precedence of properties
495
- // if there is no property precedence this is most likely a custom property only declaration
496
- // these have the highest precedence
497
- 1.5 * Math.min(h || 15, 15)
498
- ),
499
- r: d,
500
- // stringified declarations
501
- d: b
502
- }), m.sort(Ke)
503
- );
504
- }(e, $e(t, r, o, n), r);
505
- }
506
- function De(e, t) {
507
- return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g, (r, o, n, s, l = "") => {
508
- let a = t(n, l);
509
- return typeof a == "function" && /color|fill|stroke/i.test(n) ? H(a) : "" + k(a).filter((i) => Object(i) !== i);
510
- });
511
- }
512
- function tt(e, t) {
513
- let r, o = [];
514
- for (let n of e)
515
- n.d && n.n ? (r == null ? void 0 : r.p) == n.p && "" + r.r == "" + n.r ? (r.c = [
516
- r.c,
517
- n.c
518
- ].filter(Boolean).join(" "), r.d = r.d + ";" + n.d) : o.push(r = {
519
- ...n,
520
- n: n.n && t
521
- }) : o.push({
522
- ...n,
523
- n: n.n && t
524
- });
525
- return o;
526
- }
527
- function se(e, t, r = C.u, o, n) {
528
- let s = [];
529
- for (let l of e)
530
- for (let a of function(i, d, u, f, m) {
531
- i = {
532
- ...i,
533
- i: i.i || m
534
- };
535
- let b = function(h, x) {
536
- let v = Ze.get(h.n);
537
- return v ? v(h, x) : x.r(h.n, h.v[0] == "dark");
538
- }(i, d);
539
- return b ? (
540
- // a list of class names
541
- typeof b == "string" ? ({ r: f, p: u } = $e(i, d, u, f), tt(se(le(b), d, u, f, i.i), i.n)) : Array.isArray(b) ? b.map((h) => {
542
- var x, v;
543
- return {
544
- o: 0,
545
- ...h,
546
- r: [
547
- ...k(f),
548
- ...k(h.r)
549
- ],
550
- p: (x = u, v = h.p ?? u, x & ~C.o | v)
551
- };
552
- }) : et(b, i, d, u, f)
553
- ) : (
554
- // propagate className as is
555
- [
556
- {
557
- c: Fe(i),
558
- p: 0,
559
- o: 0,
560
- r: []
561
- }
562
- ]
563
- );
564
- }(l, t, r, o, n))
565
- s.splice(Qe(s, a), 0, a);
566
- return s;
567
- }
568
- function je(e, t, r, o, n, s, l, a) {
569
- return tt((a ? r.flatMap((i) => se([
570
- i
571
- ], o, n, s, l)) : se(r, o, n, s, l)).map((i) => (
572
- // do not move defaults
573
- // move only rules with a name unless they are in the base layer
574
- i.p & C.o && (i.n || t == C.b) ? {
575
- ...i,
576
- p: i.p & ~C.o | t,
577
- o: 0
578
- } : i
579
- )), e);
580
- }
581
- function Tt(e, t, r, o) {
582
- var n;
583
- return n = (s, l) => {
584
- let { n: a, p: i, r: d, i: u } = $e(s, l, t);
585
- return r && je(a, t, r, l, i, d, u, o);
586
- }, Ze.set(e, n), e;
587
- }
588
- function be(e, t, r) {
589
- if (e[e.length - 1] != "(") {
590
- let o = [], n = !1, s = !1, l = "";
591
- for (let a of e)
592
- if (!(a == "(" || /[~@]$/.test(a))) {
593
- if (a[0] == "!" && (a = a.slice(1), n = !n), a.endsWith(":")) {
594
- o[a == "dark:" ? "unshift" : "push"](a.slice(0, -1));
595
- continue;
596
- }
597
- a[0] == "-" && (a = a.slice(1), s = !s), a.endsWith("-") && (a = a.slice(0, -1)), a && a != "&" && (l += (l && "-") + a);
598
- }
599
- l && (s && (l = "-" + l), t[0].push({
600
- n: l,
601
- v: o.filter(At),
602
- i: n
603
- }));
604
- }
605
- }
606
- function At(e, t, r) {
607
- return r.indexOf(e) == t;
608
- }
609
- let He = /* @__PURE__ */ new Map();
610
- function le(e) {
611
- let t = He.get(e);
612
- if (!t) {
613
- let r = [], o = [
614
- []
615
- ], n = 0, s = 0, l = null, a = 0, i = (d, u = 0) => {
616
- n != a && (r.push(e.slice(n, a + u)), d && be(r, o)), n = a + 1;
617
- };
618
- for (; a < e.length; a++) {
619
- let d = e[a];
620
- if (s)
621
- e[a - 1] != "\\" && (s += +(d == "[") || -(d == "]"));
622
- else if (d == "[")
623
- s += 1;
624
- else if (l)
625
- e[a - 1] != "\\" && l.test(e.slice(a)) && (l = null, n = a + RegExp.lastMatch.length);
626
- else if (d == "/" && e[a - 1] != "\\" && (e[a + 1] == "*" || e[a + 1] == "/"))
627
- l = e[a + 1] == "*" ? /^\*\// : /^[\r\n]/;
628
- else if (d == "(")
629
- i(), r.push(d);
630
- else if (d == ":")
631
- e[a + 1] != ":" && i(!1, 1);
632
- else if (/[\s,)]/.test(d)) {
633
- i(!0);
634
- let u = r.lastIndexOf("(");
635
- if (d == ")") {
636
- let f = r[u - 1];
637
- if (/[~@]$/.test(f)) {
638
- let m = o.shift();
639
- r.length = u, be([
640
- ...r,
641
- "#"
642
- ], o);
643
- let { v: b } = o[0].pop();
644
- for (let h of m)
645
- h.v.splice(+(h.v[0] == "dark") - +(b[0] == "dark"), b.length);
646
- be([
647
- ...r,
648
- Tt(
649
- // named nested
650
- f.length > 1 ? f.slice(0, -1) + ae(JSON.stringify([
651
- f,
652
- m
653
- ])) : f + "(" + Ct(m) + ")",
654
- C.a,
655
- m,
656
- /@$/.test(f)
657
- )
658
- ], o);
659
- }
660
- u = r.lastIndexOf("(", u - 1);
661
- }
662
- r.length = u + 1;
663
- } else
664
- /[~@]/.test(d) && e[a + 1] == "(" && // start nested block
665
- // ~(...) or button~(...)
666
- // @(...) or button@(...)
667
- o.unshift([]);
668
- }
669
- i(!0), He.set(e, t = o[0]);
670
- }
671
- return t;
672
- }
673
- function c(e, t, r) {
674
- return [
675
- e,
676
- Ce(t, r)
677
- ];
678
- }
679
- function Ce(e, t) {
680
- return typeof e == "function" ? e : typeof e == "string" && /^[\w-]+$/.test(e) ? (
681
- // a CSS property alias
682
- (r, o) => ({
683
- [e]: t ? t(r, o) : ze(r, 1)
684
- })
685
- ) : (r) => (
686
- // CSSObject, shortcut or apply
687
- e || {
688
- [r[1]]: ze(r, 2)
689
- }
690
- );
691
- }
692
- function ze(e, t, r = e.slice(t).find(Boolean) || e.$$ || e.input) {
693
- return e.input[0] == "-" ? `calc(${r} * -1)` : r;
694
- }
695
- function p(e, t, r, o) {
696
- return [
697
- e,
698
- Et(t, r, o)
699
- ];
700
- }
701
- function Et(e, t, r) {
702
- let o = typeof t == "string" ? (n, s) => ({
703
- [t]: r ? r(n, s) : n._
704
- }) : t || (({ 1: n, _: s }, l, a) => ({
705
- [n || a]: s
706
- }));
707
- return (n, s) => {
708
- let l = rt(e || n[1]), a = s.theme(l, n.$$) ?? I(n.$$, l, s);
709
- if (a != null)
710
- return n._ = ze(n, 0, a), o(n, s, l);
711
- };
712
- }
713
- function z(e, t = {}, r) {
714
- return [
715
- e,
716
- Ft(t, r)
717
- ];
718
- }
719
- function Ft(e = {}, t) {
720
- return (r, o) => {
721
- let { section: n = rt(r[0]).replace("-", "") + "Color" } = e, [s, l] = Rt(r.$$);
722
- if (!s)
723
- return;
724
- let a = o.theme(n, s) || I(s, n, o);
725
- if (!a || typeof a == "object")
726
- return;
727
- let {
728
- // text- -> --tw-text-opacity
729
- // ring-offset(?:-|$) -> --tw-ring-offset-opacity
730
- // TODO move this default into preset-tailwind?
731
- opacityVariable: i = `--tw-${r[0].replace(/-$/, "")}-opacity`,
732
- opacitySection: d = n.replace("Color", "Opacity"),
733
- property: u = n,
734
- selector: f
735
- } = e, m = o.theme(d, l || "DEFAULT") || l && I(l, d, o), b = t || (({ _: x }) => {
736
- let v = ie(u, x);
737
- return f ? {
738
- [f]: v
739
- } : v;
740
- });
741
- r._ = {
742
- value: H(a, {
743
- opacityVariable: i || void 0,
744
- opacityValue: m || void 0
745
- }),
746
- color: (x) => H(a, x),
747
- opacityVariable: i || void 0,
748
- opacityValue: m || void 0
749
- };
750
- let h = b(r, o);
751
- if (!r.dark) {
752
- let x = o.d(n, s, a);
753
- x && x !== a && (r._ = {
754
- value: H(x, {
755
- opacityVariable: i || void 0,
756
- opacityValue: m || "1"
757
- }),
758
- color: (v) => H(x, v),
759
- opacityVariable: i || void 0,
760
- opacityValue: m || void 0
761
- }, h = {
762
- "&": h,
763
- [o.v("dark")]: b(r, o)
764
- });
765
- }
766
- return h;
767
- };
768
- }
769
- function Rt(e) {
770
- return (e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/) || []).slice(1);
771
- }
772
- function ie(e, t) {
773
- let r = {};
774
- 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;
775
- }
776
- function I(e, t, r) {
777
- if (e[0] == "[" && e.slice(-1) == "]") {
778
- if (e = ee(De(e.slice(1, -1), r.theme)), !t)
779
- return e;
780
- if (
781
- // Respect type hints from the user on ambiguous arbitrary values - https://tailwindcss.com/docs/adding-custom-styles#resolving-ambiguities
782
- !// If this is a color section and the value is a hex color, color function or color name
783
- (/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(
784
- /image/i.test(t) && !(/^image:/.test(e) || /^[a-z-]+\(/.test(e)) || // font-*
785
- // - fontWeight (type: ['lookup', 'number', 'any'])
786
- // - fontFamily (type: ['lookup', 'generic-name', 'family-name'])
787
- /weight/i.test(t) && !(/^(number|any):/.test(e) || /^\d+$/.test(e)) || // bg-*
788
- // - backgroundPosition (type: ['lookup', ['position', { preferOnConflict: true }]])
789
- // - backgroundSize (type: ['lookup', 'length', 'percentage', 'size'])
790
- /position/i.test(t) && /^(length|size):/.test(e))
791
- )
792
- return e.replace(/^[a-z-]+:/, "");
793
- }
794
- }
795
- function rt(e) {
796
- return e.replace(/-./g, (t) => t[1].toUpperCase());
797
- }
798
- function ee(e) {
799
- return (
800
- // Keep raw strings if it starts with `url(`
801
- e.includes("url(") ? e.replace(/(.*?)(url\(.*?\))(.*?)/g, (t, r = "", o, n = "") => ee(r) + o + ee(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 "))
802
- );
803
- }
804
- function ot({ presets: e = [], ...t }) {
805
- let r = {
806
- darkMode: void 0,
807
- darkColor: void 0,
808
- preflight: t.preflight !== !1 && [],
809
- theme: {},
810
- variants: k(t.variants),
811
- rules: k(t.rules),
812
- ignorelist: k(t.ignorelist),
813
- hash: void 0,
814
- stringify: (o, n) => o + ":" + n,
815
- finalize: []
816
- };
817
- for (let o of k([
818
- ...e,
819
- {
820
- darkMode: t.darkMode,
821
- darkColor: t.darkColor,
822
- preflight: t.preflight !== !1 && k(t.preflight),
823
- theme: t.theme,
824
- hash: t.hash,
825
- stringify: t.stringify,
826
- finalize: t.finalize
827
- }
828
- ])) {
829
- let { preflight: n, darkMode: s = r.darkMode, darkColor: l = r.darkColor, theme: a, variants: i, rules: d, ignorelist: u, hash: f = r.hash, stringify: m = r.stringify, finalize: b } = typeof o == "function" ? o(r) : o;
830
- r = {
831
- // values defined by user or previous presets take precedence
832
- preflight: r.preflight !== !1 && n !== !1 && [
833
- ...r.preflight,
834
- ...k(n)
835
- ],
836
- darkMode: s,
837
- darkColor: l,
838
- theme: {
839
- ...r.theme,
840
- ...a,
841
- extend: {
842
- ...r.theme.extend,
843
- ...a == null ? void 0 : a.extend
844
- }
845
- },
846
- variants: [
847
- ...r.variants,
848
- ...k(i)
849
- ],
850
- rules: [
851
- ...r.rules,
852
- ...k(d)
853
- ],
854
- ignorelist: [
855
- ...r.ignorelist,
856
- ...k(u)
857
- ],
858
- hash: f,
859
- stringify: m,
860
- finalize: [
861
- ...r.finalize,
862
- ...k(b)
863
- ]
864
- };
865
- }
866
- return r;
867
- }
868
- function Ie(e, t, r, o, n, s) {
869
- for (let l of t) {
870
- let a = r.get(l);
871
- a || r.set(l, a = o(l));
872
- let i = a(e, n, s);
873
- if (i)
874
- return i;
875
- }
876
- }
877
- function Ot(e) {
878
- var t;
879
- return Te(e[0], typeof (t = e[1]) == "function" ? t : () => t);
880
- }
881
- function $t(e) {
882
- var t, r;
883
- return Array.isArray(e) ? Te(e[0], Ce(e[1], e[2])) : Te(e, Ce(t, r));
884
- }
885
- function Te(e, t) {
886
- return nt(e, (r, o, n, s) => {
887
- let l = o.exec(r);
888
- if (l)
889
- return (
890
- // MATCH.$_ = value
891
- l.$$ = r.slice(l[0].length), l.dark = s, t(l, n)
892
- );
893
- });
894
- }
895
- function nt(e, t) {
896
- let r = k(e).map(Dt);
897
- return (o, n, s) => {
898
- for (let l of r) {
899
- let a = t(o, l, n, s);
900
- if (a)
901
- return a;
902
- }
903
- };
904
- }
905
- function Dt(e) {
906
- return typeof e == "string" ? RegExp("^" + e + (e.includes("$") || e.slice(-1) == "-" ? "" : "$")) : e;
907
- }
908
- function jt(e, t) {
909
- let r = ot(e), o = function({ theme: i, darkMode: d, darkColor: u = Oe, variants: f, rules: m, hash: b, stringify: h, ignorelist: x, finalize: v }) {
910
- let D = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), ce = nt(x, (w, A) => A.test(w));
911
- f.push([
912
- "dark",
913
- Array.isArray(d) || d == "class" ? `${k(d)[1] || ".dark"} &` : typeof d == "string" && d != "media" ? d : (
914
- // a custom selector
915
- "@media (prefers-color-scheme:dark)"
916
- )
917
- ]);
918
- let G = typeof b == "function" ? (w) => b(w, ae) : b ? ae : Ue;
919
- G !== Ue && v.push((w) => {
920
- var A;
921
- return {
922
- ...w,
923
- n: w.n && G(w.n),
924
- d: (A = w.d) == null ? void 0 : A.replace(/--(tw(?:-[\w-]+)?)\b/g, (j, pe) => "--" + G(pe).replace("#", ""))
925
- };
926
- });
927
- let U = {
928
- theme: function({ extend: w = {}, ...A }) {
929
- let j = {}, pe = {
930
- get colors() {
931
- return J("colors");
932
- },
933
- theme: J,
934
- // Stub implementation as negated values are automatically infered and do _not_ need to be in the theme
935
- negative() {
936
- return {};
937
- },
938
- breakpoints(T) {
939
- let F = {};
940
- for (let R in T)
941
- typeof T[R] == "string" && (F["screen-" + R] = T[R]);
942
- return F;
943
- }
944
- };
945
- return J;
946
- function J(T, F, R, X) {
947
- if (T) {
948
- if ({ 1: T, 2: X } = // eslint-disable-next-line no-sparse-arrays
949
- /^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(T) || [
950
- ,
951
- T
952
- ], /[.[]/.test(T)) {
953
- let L = [];
954
- T.replace(/\[([^\]]+)\]|([^.[]+)/g, (P, Q, lt = Q) => L.push(lt)), T = L.shift(), R = F, F = L.join("-");
955
- }
956
- let M = j[T] || // two-step deref to allow extend section to reference base section
957
- Object.assign(Object.assign(
958
- // Make sure to not get into recursive calls
959
- j[T] = {},
960
- Le(A, T)
961
- ), Le(w, T));
962
- if (F == null)
963
- return M;
964
- F || (F = "DEFAULT");
965
- let N = M[F] ?? F.split("-").reduce((L, P) => L == null ? void 0 : L[P], M) ?? R;
966
- return X ? H(N, {
967
- opacityValue: De(X, J)
968
- }) : N;
969
- }
970
- let Z = {};
971
- for (let M of [
972
- ...Object.keys(A),
973
- ...Object.keys(w)
974
- ])
975
- Z[M] = J(M);
976
- return Z;
977
- }
978
- function Le(T, F) {
979
- let R = T[F];
980
- return typeof R == "function" && (R = R(pe)), R && /color|fill|stroke/i.test(F) ? function X(Z, M = []) {
981
- let N = {};
982
- for (let L in Z) {
983
- let P = Z[L], Q = [
984
- ...M,
985
- L
986
- ];
987
- N[Q.join("-")] = P, L == "DEFAULT" && (Q = M, N[M.join("-")] = P), typeof P == "object" && Object.assign(N, X(P, Q));
988
- }
989
- return N;
990
- }(R) : R;
991
- }
992
- }(i),
993
- e: Je,
994
- h: G,
995
- s(w, A) {
996
- return h(w, A, U);
997
- },
998
- d(w, A, j) {
999
- return u(w, A, U, j);
1000
- },
1001
- v(w) {
1002
- return D.has(w) || D.set(w, Ie(w, f, y, Ot, U) || "&:" + w), D.get(w);
1003
- },
1004
- r(w, A) {
1005
- let j = JSON.stringify([
1006
- w,
1007
- A
1008
- ]);
1009
- return S.has(j) || S.set(j, !ce(w, U) && Ie(w, m, E, $t, U, A)), S.get(j);
1010
- },
1011
- f(w) {
1012
- return v.reduce((A, j) => j(A, U), w);
1013
- }
1014
- };
1015
- return U;
1016
- }(r), n = /* @__PURE__ */ new Map(), s = [], l = /* @__PURE__ */ new Set();
1017
- t.resume((i) => n.set(i, i), (i, d) => {
1018
- t.insert(i, s.length, d), s.push(d), l.add(i);
1019
- });
1020
- function a(i) {
1021
- let d = o.f(i), u = Se(d);
1022
- if (u && !l.has(u)) {
1023
- l.add(u);
1024
- let f = Qe(s, i);
1025
- t.insert(u, f, i), s.splice(f, 0, i);
1026
- }
1027
- return d.n;
1028
- }
1029
- return Object.defineProperties(function(d) {
1030
- if (!n.size)
1031
- for (let f of k(r.preflight))
1032
- typeof f == "function" && (f = f(o)), f && (typeof f == "string" ? je("", C.b, le(f), o, C.b, [], !1, !0) : et(f, {}, o, C.b)).forEach(a);
1033
- d = "" + d;
1034
- let u = n.get(d);
1035
- if (!u) {
1036
- let f = /* @__PURE__ */ new Set();
1037
- for (let m of se(le(d), o))
1038
- f.add(m.c).add(a(m));
1039
- u = [
1040
- ...f
1041
- ].filter(Boolean).join(" "), n.set(d, u).set(u, u);
1042
- }
1043
- return u;
1044
- }, Object.getOwnPropertyDescriptors({
1045
- get target() {
1046
- return t.target;
1047
- },
1048
- theme: o.theme,
1049
- config: r,
1050
- snapshot() {
1051
- let i = t.snapshot(), d = new Set(l), u = new Map(n), f = [
1052
- ...s
1053
- ];
1054
- return () => {
1055
- i(), l = d, n = u, s = f;
1056
- };
1057
- },
1058
- clear() {
1059
- t.clear(), l = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), s = [];
1060
- },
1061
- destroy() {
1062
- this.clear(), t.destroy();
1063
- }
1064
- }));
1065
- }
1066
- function Lt(e, t) {
1067
- return e != t && "" + e.split(" ").sort() != "" + t.split(" ").sort();
1068
- }
1069
- function Wt(e) {
1070
- let t = new MutationObserver(r);
1071
- return {
1072
- observe(n) {
1073
- t.observe(n, {
1074
- attributeFilter: [
1075
- "class"
1076
- ],
1077
- subtree: !0,
1078
- childList: !0
1079
- }), o(n), r([
1080
- {
1081
- target: n,
1082
- type: ""
1083
- }
1084
- ]);
1085
- },
1086
- disconnect() {
1087
- t.disconnect();
1088
- }
1089
- };
1090
- function r(n) {
1091
- for (let { type: s, target: l } of n)
1092
- if (s[0] == "a")
1093
- o(l);
1094
- else
1095
- for (let a of l.querySelectorAll("[class]"))
1096
- o(a);
1097
- t.takeRecords();
1098
- }
1099
- function o(n) {
1100
- var a;
1101
- let s, l = (a = n.getAttribute) == null ? void 0 : a.call(n, "class");
1102
- l && Lt(l, s = e(l)) && // Not using `target.className = ...` as that is read-only for SVGElements
1103
- n.setAttribute("class", s);
1104
- }
1105
- }
1106
- function Ut(e) {
1107
- let t = document.querySelector(e || 'style[data-twind=""]');
1108
- return (!t || t.tagName != "STYLE") && (t = document.createElement("style"), document.head.prepend(t)), t.dataset.twind = "claimed", t;
1109
- }
1110
- function he(e) {
1111
- let t = e != null && e.cssRules ? e : (e && typeof e != "string" ? e : Ut(e)).sheet;
1112
- return {
1113
- target: t,
1114
- snapshot() {
1115
- let r = Array.from(t.cssRules, (o) => o.cssText);
1116
- return () => {
1117
- this.clear(), r.forEach(this.insert);
1118
- };
1119
- },
1120
- clear() {
1121
- for (let r = t.cssRules.length; r--; )
1122
- t.deleteRule(r);
1123
- },
1124
- destroy() {
1125
- var r;
1126
- (r = t.ownerNode) == null || r.remove();
1127
- },
1128
- insert(r, o) {
1129
- try {
1130
- t.insertRule(r, o);
1131
- } catch {
1132
- t.insertRule(":root{}", o);
1133
- }
1134
- },
1135
- resume: Oe
1136
- };
1137
- }
1138
- function Mt(e, t = !0) {
1139
- let r = function() {
1140
- if (Vt)
1141
- try {
1142
- let i = he(new CSSStyleSheet());
1143
- return i.connect = (d) => {
1144
- let u = xe(d);
1145
- u.adoptedStyleSheets = [
1146
- ...u.adoptedStyleSheets,
1147
- i.target
1148
- ];
1149
- }, i.disconnect = Oe, i;
1150
- } catch {
1151
- }
1152
- let s = document.createElement("style");
1153
- s.media = "not all", document.head.prepend(s);
1154
- let l = [
1155
- he(s)
1156
- ], a = /* @__PURE__ */ new WeakMap();
1157
- return {
1158
- get target() {
1159
- return l[0].target;
1160
- },
1161
- snapshot() {
1162
- let i = l.map((d) => d.snapshot());
1163
- return () => i.forEach((d) => d());
1164
- },
1165
- clear() {
1166
- l.forEach((i) => i.clear());
1167
- },
1168
- destroy() {
1169
- l.forEach((i) => i.destroy());
1170
- },
1171
- insert(i, d, u) {
1172
- l[0].insert(i, d, u);
1173
- let f = this.target.cssRules[d];
1174
- l.forEach((m, b) => b && m.target.insertRule(f.cssText, d));
1175
- },
1176
- resume(i, d) {
1177
- return l[0].resume(i, d);
1178
- },
1179
- connect(i) {
1180
- let d = document.createElement("style");
1181
- xe(i).appendChild(d);
1182
- let u = he(d), { cssRules: f } = this.target;
1183
- for (let m = 0; m < f.length; m++)
1184
- u.target.insertRule(f[m].cssText, m);
1185
- l.push(u), a.set(i, u);
1186
- },
1187
- disconnect(i) {
1188
- let d = l.indexOf(a.get(i));
1189
- d >= 0 && l.splice(d, 1);
1190
- }
1191
- };
1192
- }(), o = jt({
1193
- ...e,
1194
- // in production use short hashed class names
1195
- hash: e.hash ?? t
1196
- }, r), n = Wt(o);
1197
- return function(l) {
1198
- return class extends l {
1199
- connectedCallback() {
1200
- var i;
1201
- (i = super.connectedCallback) == null || i.call(this), r.connect(this), n.observe(xe(this));
1202
- }
1203
- disconnectedCallback() {
1204
- var i;
1205
- r.disconnect(this), (i = super.disconnectedCallback) == null || i.call(this);
1206
- }
1207
- constructor(...i) {
1208
- super(...i), this.tw = o;
1209
- }
1210
- };
1211
- };
1212
- }
1213
- let Vt = typeof ShadowRoot < "u" && (typeof ShadyCSS > "u" || ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
1214
- function xe(e) {
1215
- return e.shadowRoot || e.attachShadow({
1216
- mode: "open"
1217
- });
1218
- }
1219
- var _t = /* @__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 Ht(e) {
1221
- return _t.get(e);
1222
- }
1223
- function It(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 Nt(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 Pt = [
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 Bt() {
1248
- return ({ stringify: e }) => ({
1249
- stringify(t, r, o) {
1250
- let n = "", s = Ht(t);
1251
- s && (n += e(s, r, o) + ";");
1252
- let l = It(t), a = Nt(t, r);
1253
- for (let i of Pt)
1254
- l & i[1] && (n += e(i[0] + t, r, o) + ";"), a & i[1] && (n += e(t, i[0] + r, o) + ";");
1255
- return n + e(t, r, o);
1256
- }
1257
- });
1258
- }
1259
- let Ae = {
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__ */ g("blur"),
1359
- backdropBrightness: /* @__PURE__ */ g("brightness"),
1360
- backdropContrast: /* @__PURE__ */ g("contrast"),
1361
- backdropGrayscale: /* @__PURE__ */ g("grayscale"),
1362
- backdropHueRotate: /* @__PURE__ */ g("hueRotate"),
1363
- backdropInvert: /* @__PURE__ */ g("invert"),
1364
- backdropOpacity: /* @__PURE__ */ g("opacity"),
1365
- backdropSaturate: /* @__PURE__ */ g("saturate"),
1366
- backdropSepia: /* @__PURE__ */ g("sepia"),
1367
- backgroundColor: /* @__PURE__ */ g("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__ */ g("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__ */ g("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__ */ g("spacing"),
1435
- borderWidth: {
1436
- DEFAULT: "1px",
1437
- .../* @__PURE__ */ $(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: g("colors"),
1454
- // container: {},
1455
- // cursor: {
1456
- // // Default values are handled by plugin
1457
- // },
1458
- caretColor: /* @__PURE__ */ g("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__ */ g("borderColor"),
1476
- divideOpacity: /* @__PURE__ */ g("borderOpacity"),
1477
- divideWidth: /* @__PURE__ */ g("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
- ...K(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
- ...K(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__ */ g("spacing"),
1637
- gradientColorStops: /* @__PURE__ */ g("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
- ...K(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
- ...K(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__ */ g("spacing"),
1870
- placeholderColor: /* @__PURE__ */ g("colors"),
1871
- placeholderOpacity: /* @__PURE__ */ g("opacity"),
1872
- outlineColor: /* @__PURE__ */ g("colors"),
1873
- outlineOffset: /* @__PURE__ */ $(8, "px"),
1874
- // 0: '0px',
1875
- // 1: '1px',
1876
- // 2: '2px',
1877
- // 4: '4px',
1878
- // 8: '8px',,
1879
- outlineWidth: /* @__PURE__ */ $(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__ */ g("colors"),
1890
- ringOffsetWidth: /* @__PURE__ */ $(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__ */ $(8, "px")
1903
- },
1904
- // 0: '0px',
1905
- // 1: '1px',
1906
- // 2: '2px',
1907
- // 4: '4px',
1908
- // 8: '8px',
1909
- rotate: {
1910
- .../* @__PURE__ */ $(2, "deg"),
1911
- // 0: '0deg',
1912
- // 1: '1deg',
1913
- // 2: '2deg',
1914
- .../* @__PURE__ */ $(12, "deg", 3),
1915
- // 3: '3deg',
1916
- // 6: '6deg',
1917
- // 12: '12deg',
1918
- .../* @__PURE__ */ $(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__ */ g("spacing"),
1944
- scrollPadding: /* @__PURE__ */ g("spacing"),
1945
- sepia: {
1946
- 0: "0",
1947
- DEFAULT: "100%"
1948
- },
1949
- skew: {
1950
- .../* @__PURE__ */ $(2, "deg"),
1951
- // 0: '0deg',
1952
- // 1: '1deg',
1953
- // 2: '2deg',
1954
- .../* @__PURE__ */ $(12, "deg", 3)
1955
- },
1956
- // 3: '3deg',
1957
- // 6: '6deg',
1958
- // 12: '12deg',
1959
- space: /* @__PURE__ */ g("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__ */ g("colors"),
1969
- textDecorationColor: /* @__PURE__ */ g("colors"),
1970
- textDecorationThickness: {
1971
- "from-font": "from-font",
1972
- auto: "auto",
1973
- .../* @__PURE__ */ $(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__ */ $(8, "px")
1983
- },
1984
- // 0: '0px',
1985
- // 1: '1px',
1986
- // 2: '2px',
1987
- // 4: '4px',
1988
- // 8: '8px',
1989
- textIndent: /* @__PURE__ */ g("spacing"),
1990
- textOpacity: /* @__PURE__ */ g("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__ */ g("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
- ...K(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 K(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 $(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, s = {}) {
2068
- for (; o <= e; o += n)
2069
- s[o] = o / r + t;
2070
- return s;
2071
- }
2072
- function g(e) {
2073
- return ({ theme: t }) => t(e);
2074
- }
2075
- let qt = {
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, ${Ae.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, ${Ae.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
- }, Gt = [
2369
- /* arbitrary properties: [paint-order:markers] */
2370
- c("\\[([-\\w]+):(.+)]", ({ 1: e, 2: t }, r) => ({
2371
- "@layer overrides": {
2372
- "&": {
2373
- [e]: I(`[${t}]`, "", r)
2374
- }
2375
- }
2376
- })),
2377
- /* Styling based on parent and peer state */
2378
- c("(group|peer)([~/][^-[]+)?", ({ input: e }, { h: t }) => [
2379
- {
2380
- c: t(e)
2381
- }
2382
- ]),
2383
- /* LAYOUT */
2384
- p("aspect-", "aspectRatio"),
2385
- c("container", (e, { theme: t }) => {
2386
- let { screens: r = t("screens"), center: o, padding: n } = t("container"), s = {
2387
- width: "100%",
2388
- marginRight: o && "auto",
2389
- marginLeft: o && "auto",
2390
- ...l("xs")
2391
- };
2392
- for (let a in r) {
2393
- let i = r[a];
2394
- typeof i == "string" && (s[Re(i)] = {
2395
- "&": {
2396
- maxWidth: i,
2397
- ...l(a)
2398
- }
2399
- });
2400
- }
2401
- return s;
2402
- function l(a) {
2403
- let i = n && (typeof n == "string" ? n : n[a] || n.DEFAULT);
2404
- if (i)
2405
- return {
2406
- paddingRight: i,
2407
- paddingLeft: i
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
- c("(?:box-)?decoration-(slice|clone)", "boxDecorationBreak"),
2418
- // Box Sizing
2419
- c("box-(border|content)", "boxSizing", ({ 1: e }) => e + "-box"),
2420
- // Display
2421
- c("hidden", {
2422
- display: "none"
2423
- }),
2424
- // Table Layout
2425
- c("table-(auto|fixed)", "tableLayout"),
2426
- c([
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
- c("isolate", "isolation"),
2441
- // Object Fit
2442
- c("object-(contain|cover|fill|none|scale-down)", "objectFit"),
2443
- // Object Position
2444
- p("object-", "objectPosition"),
2445
- c("object-(top|bottom|center|(left|right)(-(top|bottom))?)", "objectPosition", ne),
2446
- // Overscroll Behavior
2447
- c("overscroll(-[xy])?-(auto|contain|none)", ({ 1: e = "", 2: t }) => ({
2448
- ["overscroll-behavior" + e]: t
2449
- })),
2450
- // Position
2451
- c("(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
- c("(visible|collapse)", "visibility"),
2462
- c("invisible", {
2463
- visibility: "hidden"
2464
- }),
2465
- // Z-Index
2466
- p("-?z-", "zIndex"),
2467
- /* FLEXBOX */
2468
- // Flex Direction
2469
- c("flex-((row|col)(-reverse)?)", "flexDirection", Ne),
2470
- c("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
- c("grid-cols-(\\d+)", "gridTemplateColumns", Ge),
2485
- // Grid Column Start / End
2486
- p("col-", "gridColumn"),
2487
- c("col-(span)-(\\d+)", "gridColumn", qe),
2488
- p("col-start-", "gridColumnStart"),
2489
- c("col-start-(auto|\\d+)", "gridColumnStart"),
2490
- p("col-end-", "gridColumnEnd"),
2491
- c("col-end-(auto|\\d+)", "gridColumnEnd"),
2492
- // Grid Template Rows
2493
- p("grid-rows-", "gridTemplateRows"),
2494
- c("grid-rows-(\\d+)", "gridTemplateRows", Ge),
2495
- // Grid Row Start / End
2496
- p("row-", "gridRow"),
2497
- c("row-(span)-(\\d+)", "gridRow", qe),
2498
- p("row-start-", "gridRowStart"),
2499
- c("row-start-(auto|\\d+)", "gridRowStart"),
2500
- p("row-end-", "gridRowEnd"),
2501
- c("row-end-(auto|\\d+)", "gridRowEnd"),
2502
- // Grid Auto Flow
2503
- c("grid-flow-((row|col)(-dense)?)", "gridAutoFlow", (e) => ne(Ne(e))),
2504
- c("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
- c("justify-", "justifyContent", Pe),
2519
- // Align Content
2520
- // Align Items
2521
- // Align Self
2522
- c("(content|items|self)-", (e) => ({
2523
- ["align-" + e[1]]: Pe(e)
2524
- })),
2525
- // Place Content
2526
- // Place Items
2527
- // Place Self
2528
- c("(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", Y("padding")),
2534
- // Margin
2535
- p("-?m([xytrbl])?(?:$|-)", "margin", Y("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
- c("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 = k(e))[1] == "string" ? {
2573
- fontFamily: W(e)
2574
- } : {
2575
- fontFamily: W(e[0]),
2576
- ...e[1]
2577
- }),
2578
- // Font Smoothing
2579
- c("antialiased", {
2580
- WebkitFontSmoothing: "antialiased",
2581
- MozOsxFontSmoothing: "grayscale"
2582
- }),
2583
- c("subpixel-antialiased", {
2584
- WebkitFontSmoothing: "auto",
2585
- MozOsxFontSmoothing: "auto"
2586
- }),
2587
- // Font Style
2588
- c("italic", "fontStyle"),
2589
- c("not-italic", {
2590
- fontStyle: "normal"
2591
- }),
2592
- // Font Variant Numeric
2593
- c("(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
- ..._({
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
- c("list-(inside|outside)", "listStylePosition"),
2627
- // List Style Type
2628
- p("list-", "listStyleType"),
2629
- c("list-", "listStyleType"),
2630
- // Placeholder Opacity
2631
- p("placeholder-opacity-", "placeholderOpacity", ({ _: e }) => ({
2632
- "&::placeholder": {
2633
- "--tw-placeholder-opacity": e
2634
- }
2635
- })),
2636
- // Placeholder Color
2637
- z("placeholder-", {
2638
- property: "color",
2639
- selector: "&::placeholder"
2640
- }),
2641
- // Text Alignment
2642
- c("text-(left|center|right|justify|start|end)", "textAlign"),
2643
- c("text-(ellipsis|clip)", "textOverflow"),
2644
- // Text Opacity
2645
- p("text-opacity-", "textOpacity", "--tw-text-opacity"),
2646
- // Text Color
2647
- z("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
- c("(overline|underline|line-through)", "textDecorationLine"),
2663
- c("no-underline", {
2664
- textDecorationLine: "none"
2665
- }),
2666
- // Text Underline offset
2667
- p("underline-offset-", "textUnderlineOffset"),
2668
- // Text Decoration Color
2669
- z("decoration-", {
2670
- section: "textDecorationColor",
2671
- opacityVariable: !1,
2672
- opacitySection: "opacity"
2673
- }),
2674
- // Text Decoration Thickness
2675
- p("decoration-", "textDecorationThickness"),
2676
- // Text Decoration Style
2677
- c("decoration-", "textDecorationStyle"),
2678
- // Text Transform
2679
- c("(uppercase|lowercase|capitalize)", "textTransform"),
2680
- c("normal-case", {
2681
- textTransform: "none"
2682
- }),
2683
- // Text Overflow
2684
- c("truncate", {
2685
- overflow: "hidden",
2686
- whiteSpace: "nowrap",
2687
- textOverflow: "ellipsis"
2688
- }),
2689
- // Vertical Alignment
2690
- c("align-", "verticalAlign"),
2691
- // Whitespace
2692
- c("whitespace-", "whiteSpace"),
2693
- // Word Break
2694
- c("break-normal", {
2695
- wordBreak: "normal",
2696
- overflowWrap: "normal"
2697
- }),
2698
- c("break-words", {
2699
- overflowWrap: "break-word"
2700
- }),
2701
- c("break-all", {
2702
- wordBreak: "break-all"
2703
- }),
2704
- c("break-keep", {
2705
- wordBreak: "keep-all"
2706
- }),
2707
- // Caret Color
2708
- z("caret-", {
2709
- // section: 'caretColor',
2710
- opacityVariable: !1,
2711
- opacitySection: "opacity"
2712
- }),
2713
- // Accent Color
2714
- z("accent-", {
2715
- // section: 'accentColor',
2716
- opacityVariable: !1,
2717
- opacitySection: "opacity"
2718
- }),
2719
- // Gradient Color Stops
2720
- c("bg-gradient-to-([trbl]|[tb][rl])", "backgroundImage", ({ 1: e }) => `linear-gradient(to ${q(e, " ")},var(--tw-gradient-stops))`),
2721
- z("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
- z("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
- z("to-", {
2743
- section: "gradientColorStops",
2744
- property: "--tw-gradient-to",
2745
- opacityVariable: !1,
2746
- opacitySection: "opacity"
2747
- }),
2748
- /* BACKGROUNDS */
2749
- // Background Attachment
2750
- c("bg-(fixed|local|scroll)", "backgroundAttachment"),
2751
- // Background Origin
2752
- c("bg-origin-(border|padding|content)", "backgroundOrigin", ({ 1: e }) => e + "-box"),
2753
- // Background Repeat
2754
- c([
2755
- "bg-(no-repeat|repeat(-[xy])?)",
2756
- "bg-repeat-(round|space)"
2757
- ], "backgroundRepeat"),
2758
- // Background Blend Mode
2759
- c("bg-blend-", "backgroundBlendMode"),
2760
- // Background Clip
2761
- c("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
- z("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
- c("bg-(top|bottom|center|(left|right)(-(top|bottom))?)", "backgroundPosition", ne),
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-${q(r[0])}-radius`]: t,
2804
- [`border-${q(r[1])}-radius`]: t
2805
- };
2806
- }),
2807
- // Border Collapse
2808
- c("border-(collapse|separate)", "borderCollapse"),
2809
- // Border Opacity
2810
- p("border-opacity(?:$|-)", "borderOpacity", "--tw-border-opacity"),
2811
- // Border Style
2812
- c("border-(solid|dashed|dotted|double|none)", "borderStyle"),
2813
- // Border Spacing
2814
- p("border-spacing(-[xy])?(?:$|-)", "borderSpacing", ({ 1: e, _: t }) => ({
2815
- ..._({
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
- z("border-([xytrbl])-", {
2825
- section: "borderColor"
2826
- }, Y("border", "Color")),
2827
- z("border-"),
2828
- // Border Width
2829
- p("border-([xytrbl])(?:$|-)", "borderWidth", Y("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
- c("divide-(solid|dashed|dotted|double|none)", ({ 1: e }) => ({
2839
- "&>:not([hidden])~:not([hidden])": {
2840
- borderStyle: e
2841
- }
2842
- })),
2843
- // Divide Width
2844
- c("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-${q(r[0])}Width`]: `calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,
2858
- [`border-${q(r[1])}Width`]: `calc(${t} * var(--tw-divide-${e}-reverse))`
2859
- }
2860
- };
2861
- }),
2862
- // Divide Color
2863
- z("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
- z("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
- c("ring-inset", {
2883
- "--tw-ring-inset": "inset"
2884
- }),
2885
- // Ring Color
2886
- z("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
- ..._({
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": H(t("ringOffsetColor", "", "#fff")),
2904
- "--tw-ring-color": H(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
- z("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
- ..._({
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": W(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": W(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
- c("mix-blend-", "mixBlendMode"),
2943
- /* FILTERS */
2944
- ...Be(),
2945
- ...Be("backdrop-"),
2946
- /* TRANSITIONS AND ANIMATION */
2947
- // Transition Property
2948
- p("transition(?:$|-)", "transitionProperty", (e, { theme: t }) => ({
2949
- transitionProperty: W(e),
2950
- transitionTimingFunction: e._ == "none" ? void 0 : W(t("transitionTimingFunction", "")),
2951
- transitionDuration: e._ == "none" ? void 0 : W(t("transitionDuration", ""))
2952
- })),
2953
- // Transition Duration
2954
- p("duration(?:$|-)", "transitionDuration", "transitionDuration", W),
2955
- // Transition Timing Function
2956
- p("ease(?:$|-)", "transitionTimingFunction", "transitionTimingFunction", W),
2957
- // Transition Delay
2958
- p("delay(?:$|-)", "transitionDelay", "transitionDelay", W),
2959
- p("animate(?:$|-)", "animation", (e, { theme: t, h: r, e: o }) => {
2960
- let n = W(e), s = n.split(" "), l = t("keyframes", s[0]);
2961
- return l ? {
2962
- ["@keyframes " + (s[0] = o(r(s[0])))]: l,
2963
- animation: s.join(" ")
2964
- } : {
2965
- animation: n
2966
- };
2967
- }),
2968
- /* TRANSFORMS */
2969
- // Transform
2970
- "(transform)-(none)",
2971
- c("transform", Ee),
2972
- c("transform-(cpu|gpu)", ({ 1: e }) => ({
2973
- "--tw-transform": it(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
- ...Ee()
2980
- })),
2981
- // Rotate
2982
- p("-?(rotate)-", "rotate", ye),
2983
- // Translate
2984
- p("-?(translate-[xy])-", "translate", ye),
2985
- // Skew
2986
- p("-?(skew-[xy])-", "skew", ye),
2987
- // Transform Origin
2988
- c("origin-(center|((top|bottom)(-(left|right))?)|left|right)", "transformOrigin", ne),
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
- c("snap-(none)", "scroll-snap-type"),
3004
- c("snap-(x|y|both)", ({ 1: e }) => ({
3005
- ..._({
3006
- "--tw-scroll-snap-strictness": "proximity"
3007
- }),
3008
- "scroll-snap-type": e + " var(--tw-scroll-snap-strictness)"
3009
- })),
3010
- c("snap-(mandatory|proximity)", "--tw-scroll-snap-strictness"),
3011
- // Scroll Snap Align
3012
- c("snap-(?:(start|end|center)|align-(none))", "scroll-snap-align"),
3013
- // Scroll Snap Stop
3014
- c("snap-(normal|always)", "scroll-snap-stop"),
3015
- c("scroll-(auto|smooth)", "scroll-behavior"),
3016
- // Scroll Margin
3017
- // Padding
3018
- p("scroll-p([xytrbl])?(?:$|-)", "padding", Y("scroll-padding")),
3019
- // Margin
3020
- p("-?scroll-m([xytrbl])?(?:$|-)", "scroll-margin", Y("scroll-margin")),
3021
- // Touch Action
3022
- c("touch-(auto|none|manipulation)", "touch-action"),
3023
- c("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))", ({ 1: e, 2: t, 3: r }) => ({
3024
- ..._({
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
- c("outline-none", {
3038
- outline: "2px solid transparent",
3039
- "outline-offset": "2px"
3040
- }),
3041
- c("outline", {
3042
- outlineStyle: "solid"
3043
- }),
3044
- c("outline-(dashed|dotted|double)", "outlineStyle"),
3045
- // Outline Offset
3046
- p("-?(outline-offset)-"),
3047
- /*, 'outlineOffset'*/
3048
- // Outline Color
3049
- z("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
- c("select-(none|text|all|auto)", "userSelect"),
3072
- /* SVG */
3073
- // Fill, Stroke
3074
- z("fill-", {
3075
- section: "fill",
3076
- opacityVariable: !1,
3077
- opacitySection: "opacity"
3078
- }),
3079
- z("stroke-", {
3080
- section: "stroke",
3081
- opacityVariable: !1,
3082
- opacitySection: "opacity"
3083
- }),
3084
- // Stroke Width
3085
- p("stroke-", "strokeWidth"),
3086
- /* ACCESSIBILITY */
3087
- // Screen Readers
3088
- c("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
- c("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 ne(e) {
3111
- return (typeof e == "string" ? e : e[1]).replace(/-/g, " ").trim();
3112
- }
3113
- function Ne(e) {
3114
- return (typeof e == "string" ? e : e[1]).replace("col", "column");
3115
- }
3116
- function q(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 W(e) {
3128
- return e && "" + (e._ || e);
3129
- }
3130
- function Pe({ $$: 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 Y(e, t = "") {
3159
- return ({ 1: r, _: o }) => {
3160
- let n = {
3161
- x: "lr",
3162
- y: "tb"
3163
- }[r] || r + r;
3164
- return n ? {
3165
- ...ie(e + "-" + q(n[0]) + t, o),
3166
- ...ie(e + "-" + q(n[1]) + t, o)
3167
- } : ie(e + t, o);
3168
- };
3169
- }
3170
- function Be(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
- ..._(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
- c(`${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, _: s }) => ({
3198
- [`--tw-${n}`]: k(s).map((l) => `${o}(${l})`).join(" "),
3199
- ...r
3200
- })
3201
- ))
3202
- ];
3203
- }
3204
- function ye({ 1: e, _: t }) {
3205
- return {
3206
- ["--tw-" + e]: t,
3207
- ...Ee()
3208
- };
3209
- }
3210
- function Ee() {
3211
- return {
3212
- ..._({
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": it()
3221
- }),
3222
- transform: "var(--tw-transform)"
3223
- };
3224
- }
3225
- function it(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 qe({ 1: e, 2: t }) {
3239
- return `${e} ${t} / ${e} ${t}`;
3240
- }
3241
- function Ge({ 1: e }) {
3242
- return `repeat(${e},minmax(0,1fr))`;
3243
- }
3244
- function _(e) {
3245
- return {
3246
- "@layer defaults": {
3247
- "*,::before,::after": e,
3248
- "::backdrop": e
3249
- }
3250
- };
3251
- }
3252
- let Yt = [
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
- I(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: s, h: l, v: a }) => {
3324
- let i = ee(o) || (r[0] == "[" ? r : a(r.slice(1)));
3325
- return `${(i.includes("&") ? i : "&" + i).replace(/&/g, `:merge(.${s(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) || I(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) || I(e, "", t)), typeof e == "string")
3346
- return `@media not all and (min-width:${e})`;
3347
- }
3348
- ],
3349
- [
3350
- "min-",
3351
- ({ $$: e }, t) => (e && (e = I(e, "", t)), e && `@media (min-width:${e})`)
3352
- ],
3353
- // Arbitrary variants
3354
- [
3355
- /^\[(.+)]$/,
3356
- ({ 1: e }) => /[&@]/.test(e) && ee(e).replace(/[}]+$/, "").split("{")
3357
- ]
3358
- ];
3359
- function Jt({ colors: e, disablePreflight: t } = {}) {
3360
- return {
3361
- // allow other preflight to run
3362
- preflight: t ? void 0 : qt,
3363
- theme: {
3364
- ...Ae,
3365
- colors: {
3366
- inherit: "inherit",
3367
- current: "currentColor",
3368
- transparent: "transparent",
3369
- black: "#000",
3370
- white: "#fff",
3371
- ...e
3372
- }
3373
- },
3374
- variants: Yt,
3375
- rules: Gt,
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 Xt = {
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
- }, Zt = {
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
- }, Qt = {
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
- }, Kt = {
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
- }, er = {
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
- }, tr = {
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
- }, rr = {
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
- }, or = {
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
- }, nr = {
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
- }, ir = {
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
- }, ar = {
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
- }, sr = {
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
- }, lr = {
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
- }, cr = {
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
- }, pr = {
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
- }, dr = {
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
- }, fr = {
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
- }, ur = {
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
- }, mr = {
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
- }, gr = {
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
- }, br = {
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
- }, hr = {
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
- }, xr = {
3634
- __proto__: null,
3635
- slate: Xt,
3636
- gray: Zt,
3637
- zinc: Qt,
3638
- neutral: Kt,
3639
- stone: er,
3640
- red: tr,
3641
- orange: rr,
3642
- amber: or,
3643
- yellow: nr,
3644
- lime: ir,
3645
- green: ar,
3646
- emerald: sr,
3647
- teal: lr,
3648
- cyan: cr,
3649
- sky: pr,
3650
- blue: dr,
3651
- indigo: fr,
3652
- violet: ur,
3653
- purple: mr,
3654
- fuchsia: gr,
3655
- pink: br,
3656
- rose: hr
3657
- };
3658
- function yr({ disablePreflight: e } = {}) {
3659
- return Jt({
3660
- colors: xr,
3661
- disablePreflight: e
3662
- });
3663
- }
3664
- var at = {}, st = {};
3665
- (function(e) {
3666
- Object.defineProperty(e, "__esModule", {
3667
- value: !0
3668
- }), Object.defineProperty(e, "cloneDeep", {
3669
- enumerable: !0,
3670
- get: function() {
3671
- return t;
3672
- }
3673
- });
3674
- function t(r) {
3675
- return Array.isArray(r) ? r.map((o) => t(o)) : typeof r == "object" && r !== null ? Object.fromEntries(Object.entries(r).map(([o, n]) => [
3676
- o,
3677
- t(n)
3678
- ])) : r;
3679
- }
3680
- })(st);
3681
- var wr = {
3682
- content: [],
3683
- presets: [],
3684
- darkMode: "media",
3685
- // or 'class'
3686
- theme: {
3687
- accentColor: ({ theme: e }) => ({
3688
- ...e("colors"),
3689
- auto: "auto"
3690
- }),
3691
- animation: {
3692
- none: "none",
3693
- spin: "spin 1s linear infinite",
3694
- ping: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",
3695
- pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
3696
- bounce: "bounce 1s infinite"
3697
- },
3698
- aria: {
3699
- busy: 'busy="true"',
3700
- checked: 'checked="true"',
3701
- disabled: 'disabled="true"',
3702
- expanded: 'expanded="true"',
3703
- hidden: 'hidden="true"',
3704
- pressed: 'pressed="true"',
3705
- readonly: 'readonly="true"',
3706
- required: 'required="true"',
3707
- selected: 'selected="true"'
3708
- },
3709
- aspectRatio: {
3710
- auto: "auto",
3711
- square: "1 / 1",
3712
- video: "16 / 9"
3713
- },
3714
- backdropBlur: ({ theme: e }) => e("blur"),
3715
- backdropBrightness: ({ theme: e }) => e("brightness"),
3716
- backdropContrast: ({ theme: e }) => e("contrast"),
3717
- backdropGrayscale: ({ theme: e }) => e("grayscale"),
3718
- backdropHueRotate: ({ theme: e }) => e("hueRotate"),
3719
- backdropInvert: ({ theme: e }) => e("invert"),
3720
- backdropOpacity: ({ theme: e }) => e("opacity"),
3721
- backdropSaturate: ({ theme: e }) => e("saturate"),
3722
- backdropSepia: ({ theme: e }) => e("sepia"),
3723
- backgroundColor: ({ theme: e }) => e("colors"),
3724
- backgroundImage: {
3725
- none: "none",
3726
- "gradient-to-t": "linear-gradient(to top, var(--tw-gradient-stops))",
3727
- "gradient-to-tr": "linear-gradient(to top right, var(--tw-gradient-stops))",
3728
- "gradient-to-r": "linear-gradient(to right, var(--tw-gradient-stops))",
3729
- "gradient-to-br": "linear-gradient(to bottom right, var(--tw-gradient-stops))",
3730
- "gradient-to-b": "linear-gradient(to bottom, var(--tw-gradient-stops))",
3731
- "gradient-to-bl": "linear-gradient(to bottom left, var(--tw-gradient-stops))",
3732
- "gradient-to-l": "linear-gradient(to left, var(--tw-gradient-stops))",
3733
- "gradient-to-tl": "linear-gradient(to top left, var(--tw-gradient-stops))"
3734
- },
3735
- backgroundOpacity: ({ theme: e }) => e("opacity"),
3736
- backgroundPosition: {
3737
- bottom: "bottom",
3738
- center: "center",
3739
- left: "left",
3740
- "left-bottom": "left bottom",
3741
- "left-top": "left top",
3742
- right: "right",
3743
- "right-bottom": "right bottom",
3744
- "right-top": "right top",
3745
- top: "top"
3746
- },
3747
- backgroundSize: {
3748
- auto: "auto",
3749
- cover: "cover",
3750
- contain: "contain"
3751
- },
3752
- blur: {
3753
- 0: "0",
3754
- none: "0",
3755
- sm: "4px",
3756
- DEFAULT: "8px",
3757
- md: "12px",
3758
- lg: "16px",
3759
- xl: "24px",
3760
- "2xl": "40px",
3761
- "3xl": "64px"
3762
- },
3763
- borderColor: ({ theme: e }) => ({
3764
- ...e("colors"),
3765
- DEFAULT: e("colors.gray.200", "currentColor")
3766
- }),
3767
- borderOpacity: ({ theme: e }) => e("opacity"),
3768
- borderRadius: {
3769
- none: "0px",
3770
- sm: "0.125rem",
3771
- DEFAULT: "0.25rem",
3772
- md: "0.375rem",
3773
- lg: "0.5rem",
3774
- xl: "0.75rem",
3775
- "2xl": "1rem",
3776
- "3xl": "1.5rem",
3777
- full: "9999px"
3778
- },
3779
- borderSpacing: ({ theme: e }) => ({
3780
- ...e("spacing")
3781
- }),
3782
- borderWidth: {
3783
- DEFAULT: "1px",
3784
- 0: "0px",
3785
- 2: "2px",
3786
- 4: "4px",
3787
- 8: "8px"
3788
- },
3789
- boxShadow: {
3790
- sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
3791
- DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
3792
- md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
3793
- lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
3794
- xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
3795
- "2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
3796
- inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
3797
- none: "none"
3798
- },
3799
- boxShadowColor: ({ theme: e }) => e("colors"),
3800
- brightness: {
3801
- 0: "0",
3802
- 50: ".5",
3803
- 75: ".75",
3804
- 90: ".9",
3805
- 95: ".95",
3806
- 100: "1",
3807
- 105: "1.05",
3808
- 110: "1.1",
3809
- 125: "1.25",
3810
- 150: "1.5",
3811
- 200: "2"
3812
- },
3813
- caretColor: ({ theme: e }) => e("colors"),
3814
- colors: ({ colors: e }) => ({
3815
- inherit: e.inherit,
3816
- current: e.current,
3817
- transparent: e.transparent,
3818
- black: e.black,
3819
- white: e.white,
3820
- slate: e.slate,
3821
- gray: e.gray,
3822
- zinc: e.zinc,
3823
- neutral: e.neutral,
3824
- stone: e.stone,
3825
- red: e.red,
3826
- orange: e.orange,
3827
- amber: e.amber,
3828
- yellow: e.yellow,
3829
- lime: e.lime,
3830
- green: e.green,
3831
- emerald: e.emerald,
3832
- teal: e.teal,
3833
- cyan: e.cyan,
3834
- sky: e.sky,
3835
- blue: e.blue,
3836
- indigo: e.indigo,
3837
- violet: e.violet,
3838
- purple: e.purple,
3839
- fuchsia: e.fuchsia,
3840
- pink: e.pink,
3841
- rose: e.rose
3842
- }),
3843
- columns: {
3844
- auto: "auto",
3845
- 1: "1",
3846
- 2: "2",
3847
- 3: "3",
3848
- 4: "4",
3849
- 5: "5",
3850
- 6: "6",
3851
- 7: "7",
3852
- 8: "8",
3853
- 9: "9",
3854
- 10: "10",
3855
- 11: "11",
3856
- 12: "12",
3857
- "3xs": "16rem",
3858
- "2xs": "18rem",
3859
- xs: "20rem",
3860
- sm: "24rem",
3861
- md: "28rem",
3862
- lg: "32rem",
3863
- xl: "36rem",
3864
- "2xl": "42rem",
3865
- "3xl": "48rem",
3866
- "4xl": "56rem",
3867
- "5xl": "64rem",
3868
- "6xl": "72rem",
3869
- "7xl": "80rem"
3870
- },
3871
- container: {},
3872
- content: {
3873
- none: "none"
3874
- },
3875
- contrast: {
3876
- 0: "0",
3877
- 50: ".5",
3878
- 75: ".75",
3879
- 100: "1",
3880
- 125: "1.25",
3881
- 150: "1.5",
3882
- 200: "2"
3883
- },
3884
- cursor: {
3885
- auto: "auto",
3886
- default: "default",
3887
- pointer: "pointer",
3888
- wait: "wait",
3889
- text: "text",
3890
- move: "move",
3891
- help: "help",
3892
- "not-allowed": "not-allowed",
3893
- none: "none",
3894
- "context-menu": "context-menu",
3895
- progress: "progress",
3896
- cell: "cell",
3897
- crosshair: "crosshair",
3898
- "vertical-text": "vertical-text",
3899
- alias: "alias",
3900
- copy: "copy",
3901
- "no-drop": "no-drop",
3902
- grab: "grab",
3903
- grabbing: "grabbing",
3904
- "all-scroll": "all-scroll",
3905
- "col-resize": "col-resize",
3906
- "row-resize": "row-resize",
3907
- "n-resize": "n-resize",
3908
- "e-resize": "e-resize",
3909
- "s-resize": "s-resize",
3910
- "w-resize": "w-resize",
3911
- "ne-resize": "ne-resize",
3912
- "nw-resize": "nw-resize",
3913
- "se-resize": "se-resize",
3914
- "sw-resize": "sw-resize",
3915
- "ew-resize": "ew-resize",
3916
- "ns-resize": "ns-resize",
3917
- "nesw-resize": "nesw-resize",
3918
- "nwse-resize": "nwse-resize",
3919
- "zoom-in": "zoom-in",
3920
- "zoom-out": "zoom-out"
3921
- },
3922
- divideColor: ({ theme: e }) => e("borderColor"),
3923
- divideOpacity: ({ theme: e }) => e("borderOpacity"),
3924
- divideWidth: ({ theme: e }) => e("borderWidth"),
3925
- dropShadow: {
3926
- sm: "0 1px 1px rgb(0 0 0 / 0.05)",
3927
- DEFAULT: ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"],
3928
- md: ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"],
3929
- lg: ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"],
3930
- xl: ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"],
3931
- "2xl": "0 25px 25px rgb(0 0 0 / 0.15)",
3932
- none: "0 0 #0000"
3933
- },
3934
- fill: ({ theme: e }) => ({
3935
- none: "none",
3936
- ...e("colors")
3937
- }),
3938
- flex: {
3939
- 1: "1 1 0%",
3940
- auto: "1 1 auto",
3941
- initial: "0 1 auto",
3942
- none: "none"
3943
- },
3944
- flexBasis: ({ theme: e }) => ({
3945
- auto: "auto",
3946
- ...e("spacing"),
3947
- "1/2": "50%",
3948
- "1/3": "33.333333%",
3949
- "2/3": "66.666667%",
3950
- "1/4": "25%",
3951
- "2/4": "50%",
3952
- "3/4": "75%",
3953
- "1/5": "20%",
3954
- "2/5": "40%",
3955
- "3/5": "60%",
3956
- "4/5": "80%",
3957
- "1/6": "16.666667%",
3958
- "2/6": "33.333333%",
3959
- "3/6": "50%",
3960
- "4/6": "66.666667%",
3961
- "5/6": "83.333333%",
3962
- "1/12": "8.333333%",
3963
- "2/12": "16.666667%",
3964
- "3/12": "25%",
3965
- "4/12": "33.333333%",
3966
- "5/12": "41.666667%",
3967
- "6/12": "50%",
3968
- "7/12": "58.333333%",
3969
- "8/12": "66.666667%",
3970
- "9/12": "75%",
3971
- "10/12": "83.333333%",
3972
- "11/12": "91.666667%",
3973
- full: "100%"
3974
- }),
3975
- flexGrow: {
3976
- 0: "0",
3977
- DEFAULT: "1"
3978
- },
3979
- flexShrink: {
3980
- 0: "0",
3981
- DEFAULT: "1"
3982
- },
3983
- fontFamily: {
3984
- sans: [
3985
- "ui-sans-serif",
3986
- "system-ui",
3987
- "-apple-system",
3988
- "BlinkMacSystemFont",
3989
- '"Segoe UI"',
3990
- "Roboto",
3991
- '"Helvetica Neue"',
3992
- "Arial",
3993
- '"Noto Sans"',
3994
- "sans-serif",
3995
- '"Apple Color Emoji"',
3996
- '"Segoe UI Emoji"',
3997
- '"Segoe UI Symbol"',
3998
- '"Noto Color Emoji"'
3999
- ],
4000
- serif: ["ui-serif", "Georgia", "Cambria", '"Times New Roman"', "Times", "serif"],
4001
- mono: [
4002
- "ui-monospace",
4003
- "SFMono-Regular",
4004
- "Menlo",
4005
- "Monaco",
4006
- "Consolas",
4007
- '"Liberation Mono"',
4008
- '"Courier New"',
4009
- "monospace"
4010
- ]
4011
- },
4012
- fontSize: {
4013
- xs: ["0.75rem", { lineHeight: "1rem" }],
4014
- sm: ["0.875rem", { lineHeight: "1.25rem" }],
4015
- base: ["1rem", { lineHeight: "1.5rem" }],
4016
- lg: ["1.125rem", { lineHeight: "1.75rem" }],
4017
- xl: ["1.25rem", { lineHeight: "1.75rem" }],
4018
- "2xl": ["1.5rem", { lineHeight: "2rem" }],
4019
- "3xl": ["1.875rem", { lineHeight: "2.25rem" }],
4020
- "4xl": ["2.25rem", { lineHeight: "2.5rem" }],
4021
- "5xl": ["3rem", { lineHeight: "1" }],
4022
- "6xl": ["3.75rem", { lineHeight: "1" }],
4023
- "7xl": ["4.5rem", { lineHeight: "1" }],
4024
- "8xl": ["6rem", { lineHeight: "1" }],
4025
- "9xl": ["8rem", { lineHeight: "1" }]
4026
- },
4027
- fontWeight: {
4028
- thin: "100",
4029
- extralight: "200",
4030
- light: "300",
4031
- normal: "400",
4032
- medium: "500",
4033
- semibold: "600",
4034
- bold: "700",
4035
- extrabold: "800",
4036
- black: "900"
4037
- },
4038
- gap: ({ theme: e }) => e("spacing"),
4039
- gradientColorStops: ({ theme: e }) => e("colors"),
4040
- gradientColorStopPositions: {
4041
- "0%": "0%",
4042
- "5%": "5%",
4043
- "10%": "10%",
4044
- "15%": "15%",
4045
- "20%": "20%",
4046
- "25%": "25%",
4047
- "30%": "30%",
4048
- "35%": "35%",
4049
- "40%": "40%",
4050
- "45%": "45%",
4051
- "50%": "50%",
4052
- "55%": "55%",
4053
- "60%": "60%",
4054
- "65%": "65%",
4055
- "70%": "70%",
4056
- "75%": "75%",
4057
- "80%": "80%",
4058
- "85%": "85%",
4059
- "90%": "90%",
4060
- "95%": "95%",
4061
- "100%": "100%"
4062
- },
4063
- grayscale: {
4064
- 0: "0",
4065
- DEFAULT: "100%"
4066
- },
4067
- gridAutoColumns: {
4068
- auto: "auto",
4069
- min: "min-content",
4070
- max: "max-content",
4071
- fr: "minmax(0, 1fr)"
4072
- },
4073
- gridAutoRows: {
4074
- auto: "auto",
4075
- min: "min-content",
4076
- max: "max-content",
4077
- fr: "minmax(0, 1fr)"
4078
- },
4079
- gridColumn: {
4080
- auto: "auto",
4081
- "span-1": "span 1 / span 1",
4082
- "span-2": "span 2 / span 2",
4083
- "span-3": "span 3 / span 3",
4084
- "span-4": "span 4 / span 4",
4085
- "span-5": "span 5 / span 5",
4086
- "span-6": "span 6 / span 6",
4087
- "span-7": "span 7 / span 7",
4088
- "span-8": "span 8 / span 8",
4089
- "span-9": "span 9 / span 9",
4090
- "span-10": "span 10 / span 10",
4091
- "span-11": "span 11 / span 11",
4092
- "span-12": "span 12 / span 12",
4093
- "span-full": "1 / -1"
4094
- },
4095
- gridColumnEnd: {
4096
- auto: "auto",
4097
- 1: "1",
4098
- 2: "2",
4099
- 3: "3",
4100
- 4: "4",
4101
- 5: "5",
4102
- 6: "6",
4103
- 7: "7",
4104
- 8: "8",
4105
- 9: "9",
4106
- 10: "10",
4107
- 11: "11",
4108
- 12: "12",
4109
- 13: "13"
4110
- },
4111
- gridColumnStart: {
4112
- auto: "auto",
4113
- 1: "1",
4114
- 2: "2",
4115
- 3: "3",
4116
- 4: "4",
4117
- 5: "5",
4118
- 6: "6",
4119
- 7: "7",
4120
- 8: "8",
4121
- 9: "9",
4122
- 10: "10",
4123
- 11: "11",
4124
- 12: "12",
4125
- 13: "13"
4126
- },
4127
- gridRow: {
4128
- auto: "auto",
4129
- "span-1": "span 1 / span 1",
4130
- "span-2": "span 2 / span 2",
4131
- "span-3": "span 3 / span 3",
4132
- "span-4": "span 4 / span 4",
4133
- "span-5": "span 5 / span 5",
4134
- "span-6": "span 6 / span 6",
4135
- "span-full": "1 / -1"
4136
- },
4137
- gridRowEnd: {
4138
- auto: "auto",
4139
- 1: "1",
4140
- 2: "2",
4141
- 3: "3",
4142
- 4: "4",
4143
- 5: "5",
4144
- 6: "6",
4145
- 7: "7"
4146
- },
4147
- gridRowStart: {
4148
- auto: "auto",
4149
- 1: "1",
4150
- 2: "2",
4151
- 3: "3",
4152
- 4: "4",
4153
- 5: "5",
4154
- 6: "6",
4155
- 7: "7"
4156
- },
4157
- gridTemplateColumns: {
4158
- none: "none",
4159
- 1: "repeat(1, minmax(0, 1fr))",
4160
- 2: "repeat(2, minmax(0, 1fr))",
4161
- 3: "repeat(3, minmax(0, 1fr))",
4162
- 4: "repeat(4, minmax(0, 1fr))",
4163
- 5: "repeat(5, minmax(0, 1fr))",
4164
- 6: "repeat(6, minmax(0, 1fr))",
4165
- 7: "repeat(7, minmax(0, 1fr))",
4166
- 8: "repeat(8, minmax(0, 1fr))",
4167
- 9: "repeat(9, minmax(0, 1fr))",
4168
- 10: "repeat(10, minmax(0, 1fr))",
4169
- 11: "repeat(11, minmax(0, 1fr))",
4170
- 12: "repeat(12, minmax(0, 1fr))"
4171
- },
4172
- gridTemplateRows: {
4173
- none: "none",
4174
- 1: "repeat(1, minmax(0, 1fr))",
4175
- 2: "repeat(2, minmax(0, 1fr))",
4176
- 3: "repeat(3, minmax(0, 1fr))",
4177
- 4: "repeat(4, minmax(0, 1fr))",
4178
- 5: "repeat(5, minmax(0, 1fr))",
4179
- 6: "repeat(6, minmax(0, 1fr))"
4180
- },
4181
- height: ({ theme: e }) => ({
4182
- auto: "auto",
4183
- ...e("spacing"),
4184
- "1/2": "50%",
4185
- "1/3": "33.333333%",
4186
- "2/3": "66.666667%",
4187
- "1/4": "25%",
4188
- "2/4": "50%",
4189
- "3/4": "75%",
4190
- "1/5": "20%",
4191
- "2/5": "40%",
4192
- "3/5": "60%",
4193
- "4/5": "80%",
4194
- "1/6": "16.666667%",
4195
- "2/6": "33.333333%",
4196
- "3/6": "50%",
4197
- "4/6": "66.666667%",
4198
- "5/6": "83.333333%",
4199
- full: "100%",
4200
- screen: "100vh",
4201
- min: "min-content",
4202
- max: "max-content",
4203
- fit: "fit-content"
4204
- }),
4205
- hueRotate: {
4206
- 0: "0deg",
4207
- 15: "15deg",
4208
- 30: "30deg",
4209
- 60: "60deg",
4210
- 90: "90deg",
4211
- 180: "180deg"
4212
- },
4213
- inset: ({ theme: e }) => ({
4214
- auto: "auto",
4215
- ...e("spacing"),
4216
- "1/2": "50%",
4217
- "1/3": "33.333333%",
4218
- "2/3": "66.666667%",
4219
- "1/4": "25%",
4220
- "2/4": "50%",
4221
- "3/4": "75%",
4222
- full: "100%"
4223
- }),
4224
- invert: {
4225
- 0: "0",
4226
- DEFAULT: "100%"
4227
- },
4228
- keyframes: {
4229
- spin: {
4230
- to: {
4231
- transform: "rotate(360deg)"
4232
- }
4233
- },
4234
- ping: {
4235
- "75%, 100%": {
4236
- transform: "scale(2)",
4237
- opacity: "0"
4238
- }
4239
- },
4240
- pulse: {
4241
- "50%": {
4242
- opacity: ".5"
4243
- }
4244
- },
4245
- bounce: {
4246
- "0%, 100%": {
4247
- transform: "translateY(-25%)",
4248
- animationTimingFunction: "cubic-bezier(0.8,0,1,1)"
4249
- },
4250
- "50%": {
4251
- transform: "none",
4252
- animationTimingFunction: "cubic-bezier(0,0,0.2,1)"
4253
- }
4254
- }
4255
- },
4256
- letterSpacing: {
4257
- tighter: "-0.05em",
4258
- tight: "-0.025em",
4259
- normal: "0em",
4260
- wide: "0.025em",
4261
- wider: "0.05em",
4262
- widest: "0.1em"
4263
- },
4264
- lineHeight: {
4265
- none: "1",
4266
- tight: "1.25",
4267
- snug: "1.375",
4268
- normal: "1.5",
4269
- relaxed: "1.625",
4270
- loose: "2",
4271
- 3: ".75rem",
4272
- 4: "1rem",
4273
- 5: "1.25rem",
4274
- 6: "1.5rem",
4275
- 7: "1.75rem",
4276
- 8: "2rem",
4277
- 9: "2.25rem",
4278
- 10: "2.5rem"
4279
- },
4280
- listStyleType: {
4281
- none: "none",
4282
- disc: "disc",
4283
- decimal: "decimal"
4284
- },
4285
- listStyleImage: {
4286
- none: "none"
4287
- },
4288
- margin: ({ theme: e }) => ({
4289
- auto: "auto",
4290
- ...e("spacing")
4291
- }),
4292
- lineClamp: {
4293
- 1: "1",
4294
- 2: "2",
4295
- 3: "3",
4296
- 4: "4",
4297
- 5: "5",
4298
- 6: "6"
4299
- },
4300
- maxHeight: ({ theme: e }) => ({
4301
- ...e("spacing"),
4302
- none: "none",
4303
- full: "100%",
4304
- screen: "100vh",
4305
- min: "min-content",
4306
- max: "max-content",
4307
- fit: "fit-content"
4308
- }),
4309
- maxWidth: ({ theme: e, breakpoints: t }) => ({
4310
- none: "none",
4311
- 0: "0rem",
4312
- xs: "20rem",
4313
- sm: "24rem",
4314
- md: "28rem",
4315
- lg: "32rem",
4316
- xl: "36rem",
4317
- "2xl": "42rem",
4318
- "3xl": "48rem",
4319
- "4xl": "56rem",
4320
- "5xl": "64rem",
4321
- "6xl": "72rem",
4322
- "7xl": "80rem",
4323
- full: "100%",
4324
- min: "min-content",
4325
- max: "max-content",
4326
- fit: "fit-content",
4327
- prose: "65ch",
4328
- ...t(e("screens"))
4329
- }),
4330
- minHeight: {
4331
- 0: "0px",
4332
- full: "100%",
4333
- screen: "100vh",
4334
- min: "min-content",
4335
- max: "max-content",
4336
- fit: "fit-content"
4337
- },
4338
- minWidth: {
4339
- 0: "0px",
4340
- full: "100%",
4341
- min: "min-content",
4342
- max: "max-content",
4343
- fit: "fit-content"
4344
- },
4345
- objectPosition: {
4346
- bottom: "bottom",
4347
- center: "center",
4348
- left: "left",
4349
- "left-bottom": "left bottom",
4350
- "left-top": "left top",
4351
- right: "right",
4352
- "right-bottom": "right bottom",
4353
- "right-top": "right top",
4354
- top: "top"
4355
- },
4356
- opacity: {
4357
- 0: "0",
4358
- 5: "0.05",
4359
- 10: "0.1",
4360
- 20: "0.2",
4361
- 25: "0.25",
4362
- 30: "0.3",
4363
- 40: "0.4",
4364
- 50: "0.5",
4365
- 60: "0.6",
4366
- 70: "0.7",
4367
- 75: "0.75",
4368
- 80: "0.8",
4369
- 90: "0.9",
4370
- 95: "0.95",
4371
- 100: "1"
4372
- },
4373
- order: {
4374
- first: "-9999",
4375
- last: "9999",
4376
- none: "0",
4377
- 1: "1",
4378
- 2: "2",
4379
- 3: "3",
4380
- 4: "4",
4381
- 5: "5",
4382
- 6: "6",
4383
- 7: "7",
4384
- 8: "8",
4385
- 9: "9",
4386
- 10: "10",
4387
- 11: "11",
4388
- 12: "12"
4389
- },
4390
- outlineColor: ({ theme: e }) => e("colors"),
4391
- outlineOffset: {
4392
- 0: "0px",
4393
- 1: "1px",
4394
- 2: "2px",
4395
- 4: "4px",
4396
- 8: "8px"
4397
- },
4398
- outlineWidth: {
4399
- 0: "0px",
4400
- 1: "1px",
4401
- 2: "2px",
4402
- 4: "4px",
4403
- 8: "8px"
4404
- },
4405
- padding: ({ theme: e }) => e("spacing"),
4406
- placeholderColor: ({ theme: e }) => e("colors"),
4407
- placeholderOpacity: ({ theme: e }) => e("opacity"),
4408
- ringColor: ({ theme: e }) => ({
4409
- DEFAULT: e("colors.blue.500", "#3b82f6"),
4410
- ...e("colors")
4411
- }),
4412
- ringOffsetColor: ({ theme: e }) => e("colors"),
4413
- ringOffsetWidth: {
4414
- 0: "0px",
4415
- 1: "1px",
4416
- 2: "2px",
4417
- 4: "4px",
4418
- 8: "8px"
4419
- },
4420
- ringOpacity: ({ theme: e }) => ({
4421
- DEFAULT: "0.5",
4422
- ...e("opacity")
4423
- }),
4424
- ringWidth: {
4425
- DEFAULT: "3px",
4426
- 0: "0px",
4427
- 1: "1px",
4428
- 2: "2px",
4429
- 4: "4px",
4430
- 8: "8px"
4431
- },
4432
- rotate: {
4433
- 0: "0deg",
4434
- 1: "1deg",
4435
- 2: "2deg",
4436
- 3: "3deg",
4437
- 6: "6deg",
4438
- 12: "12deg",
4439
- 45: "45deg",
4440
- 90: "90deg",
4441
- 180: "180deg"
4442
- },
4443
- saturate: {
4444
- 0: "0",
4445
- 50: ".5",
4446
- 100: "1",
4447
- 150: "1.5",
4448
- 200: "2"
4449
- },
4450
- scale: {
4451
- 0: "0",
4452
- 50: ".5",
4453
- 75: ".75",
4454
- 90: ".9",
4455
- 95: ".95",
4456
- 100: "1",
4457
- 105: "1.05",
4458
- 110: "1.1",
4459
- 125: "1.25",
4460
- 150: "1.5"
4461
- },
4462
- screens: {
4463
- sm: "640px",
4464
- md: "768px",
4465
- lg: "1024px",
4466
- xl: "1280px",
4467
- "2xl": "1536px"
4468
- },
4469
- scrollMargin: ({ theme: e }) => ({
4470
- ...e("spacing")
4471
- }),
4472
- scrollPadding: ({ theme: e }) => e("spacing"),
4473
- sepia: {
4474
- 0: "0",
4475
- DEFAULT: "100%"
4476
- },
4477
- skew: {
4478
- 0: "0deg",
4479
- 1: "1deg",
4480
- 2: "2deg",
4481
- 3: "3deg",
4482
- 6: "6deg",
4483
- 12: "12deg"
4484
- },
4485
- space: ({ theme: e }) => ({
4486
- ...e("spacing")
4487
- }),
4488
- spacing: {
4489
- px: "1px",
4490
- 0: "0px",
4491
- 0.5: "0.125rem",
4492
- 1: "0.25rem",
4493
- 1.5: "0.375rem",
4494
- 2: "0.5rem",
4495
- 2.5: "0.625rem",
4496
- 3: "0.75rem",
4497
- 3.5: "0.875rem",
4498
- 4: "1rem",
4499
- 5: "1.25rem",
4500
- 6: "1.5rem",
4501
- 7: "1.75rem",
4502
- 8: "2rem",
4503
- 9: "2.25rem",
4504
- 10: "2.5rem",
4505
- 11: "2.75rem",
4506
- 12: "3rem",
4507
- 14: "3.5rem",
4508
- 16: "4rem",
4509
- 20: "5rem",
4510
- 24: "6rem",
4511
- 28: "7rem",
4512
- 32: "8rem",
4513
- 36: "9rem",
4514
- 40: "10rem",
4515
- 44: "11rem",
4516
- 48: "12rem",
4517
- 52: "13rem",
4518
- 56: "14rem",
4519
- 60: "15rem",
4520
- 64: "16rem",
4521
- 72: "18rem",
4522
- 80: "20rem",
4523
- 96: "24rem"
4524
- },
4525
- stroke: ({ theme: e }) => ({
4526
- none: "none",
4527
- ...e("colors")
4528
- }),
4529
- strokeWidth: {
4530
- 0: "0",
4531
- 1: "1",
4532
- 2: "2"
4533
- },
4534
- supports: {},
4535
- data: {},
4536
- textColor: ({ theme: e }) => e("colors"),
4537
- textDecorationColor: ({ theme: e }) => e("colors"),
4538
- textDecorationThickness: {
4539
- auto: "auto",
4540
- "from-font": "from-font",
4541
- 0: "0px",
4542
- 1: "1px",
4543
- 2: "2px",
4544
- 4: "4px",
4545
- 8: "8px"
4546
- },
4547
- textIndent: ({ theme: e }) => ({
4548
- ...e("spacing")
4549
- }),
4550
- textOpacity: ({ theme: e }) => e("opacity"),
4551
- textUnderlineOffset: {
4552
- auto: "auto",
4553
- 0: "0px",
4554
- 1: "1px",
4555
- 2: "2px",
4556
- 4: "4px",
4557
- 8: "8px"
4558
- },
4559
- transformOrigin: {
4560
- center: "center",
4561
- top: "top",
4562
- "top-right": "top right",
4563
- right: "right",
4564
- "bottom-right": "bottom right",
4565
- bottom: "bottom",
4566
- "bottom-left": "bottom left",
4567
- left: "left",
4568
- "top-left": "top left"
4569
- },
4570
- transitionDelay: {
4571
- 0: "0s",
4572
- 75: "75ms",
4573
- 100: "100ms",
4574
- 150: "150ms",
4575
- 200: "200ms",
4576
- 300: "300ms",
4577
- 500: "500ms",
4578
- 700: "700ms",
4579
- 1e3: "1000ms"
4580
- },
4581
- transitionDuration: {
4582
- DEFAULT: "150ms",
4583
- 0: "0s",
4584
- 75: "75ms",
4585
- 100: "100ms",
4586
- 150: "150ms",
4587
- 200: "200ms",
4588
- 300: "300ms",
4589
- 500: "500ms",
4590
- 700: "700ms",
4591
- 1e3: "1000ms"
4592
- },
4593
- transitionProperty: {
4594
- none: "none",
4595
- all: "all",
4596
- DEFAULT: "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
4597
- colors: "color, background-color, border-color, text-decoration-color, fill, stroke",
4598
- opacity: "opacity",
4599
- shadow: "box-shadow",
4600
- transform: "transform"
4601
- },
4602
- transitionTimingFunction: {
4603
- DEFAULT: "cubic-bezier(0.4, 0, 0.2, 1)",
4604
- linear: "linear",
4605
- in: "cubic-bezier(0.4, 0, 1, 1)",
4606
- out: "cubic-bezier(0, 0, 0.2, 1)",
4607
- "in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
4608
- },
4609
- translate: ({ theme: e }) => ({
4610
- ...e("spacing"),
4611
- "1/2": "50%",
4612
- "1/3": "33.333333%",
4613
- "2/3": "66.666667%",
4614
- "1/4": "25%",
4615
- "2/4": "50%",
4616
- "3/4": "75%",
4617
- full: "100%"
4618
- }),
4619
- width: ({ theme: e }) => ({
4620
- auto: "auto",
4621
- ...e("spacing"),
4622
- "1/2": "50%",
4623
- "1/3": "33.333333%",
4624
- "2/3": "66.666667%",
4625
- "1/4": "25%",
4626
- "2/4": "50%",
4627
- "3/4": "75%",
4628
- "1/5": "20%",
4629
- "2/5": "40%",
4630
- "3/5": "60%",
4631
- "4/5": "80%",
4632
- "1/6": "16.666667%",
4633
- "2/6": "33.333333%",
4634
- "3/6": "50%",
4635
- "4/6": "66.666667%",
4636
- "5/6": "83.333333%",
4637
- "1/12": "8.333333%",
4638
- "2/12": "16.666667%",
4639
- "3/12": "25%",
4640
- "4/12": "33.333333%",
4641
- "5/12": "41.666667%",
4642
- "6/12": "50%",
4643
- "7/12": "58.333333%",
4644
- "8/12": "66.666667%",
4645
- "9/12": "75%",
4646
- "10/12": "83.333333%",
4647
- "11/12": "91.666667%",
4648
- full: "100%",
4649
- screen: "100vw",
4650
- min: "min-content",
4651
- max: "max-content",
4652
- fit: "fit-content"
4653
- }),
4654
- willChange: {
4655
- auto: "auto",
4656
- scroll: "scroll-position",
4657
- contents: "contents",
4658
- transform: "transform"
4659
- },
4660
- zIndex: {
4661
- auto: "auto",
4662
- 0: "0",
4663
- 10: "10",
4664
- 20: "20",
4665
- 30: "30",
4666
- 40: "40",
4667
- 50: "50"
4668
- }
4669
- },
4670
- plugins: []
4671
- };
4672
- (function(e) {
4673
- Object.defineProperty(e, "__esModule", {
4674
- value: !0
4675
- }), Object.defineProperty(e, "default", {
4676
- enumerable: !0,
4677
- get: function() {
4678
- return n;
4679
- }
4680
- });
4681
- const t = st, r = /* @__PURE__ */ o(wr);
4682
- function o(s) {
4683
- return s && s.__esModule ? s : {
4684
- default: s
4685
- };
4686
- }
4687
- const n = (0, t.cloneDeep)(r.default.theme);
4688
- })(at);
4689
- let we = at;
4690
- var vr = (we.__esModule ? we : { default: we }).default;
4691
- const kr = {
4692
- content: ["./lib/**/*.{ts,tsx}"],
4693
- theme: {
4694
- extend: {
4695
- colors: {
4696
- category: "hsl(var(--tf-category) / <alpha-value>)",
4697
- label: "hsl(var(--tf-label) / <alpha-value>)",
4698
- background: "hsl(var(--tf-background) / <alpha-value>)",
4699
- foreground: "hsl(var(--tf-foreground) / <alpha-value>)",
4700
- primary: {
4701
- DEFAULT: "hsl(var(--tf-primary) / <alpha-value>)",
4702
- foreground: "hsl(var(--tf-primary-foreground) / <alpha-value>)"
4703
- },
4704
- accent: {
4705
- DEFAULT: "hsl(var(--tf-accent) / <alpha-value>)",
4706
- foreground: "hsl(var(--tf-accent-foreground) / <alpha-value>)"
4707
- },
4708
- destructive: {
4709
- DEFAULT: "hsl(var(--tf-destructive) / <alpha-value>)",
4710
- foreground: "hsl(var(--tf-destructive-foreground) / <alpha-value>)"
4711
- },
4712
- muted: {
4713
- DEFAULT: "hsl(var(--tf-muted) / <alpha-value>)",
4714
- foreground: "hsl(var(--tf-muted-foreground) / <alpha-value>)"
4715
- },
4716
- input: "hsl(var(--tf-input) / <alpha-value>)",
4717
- ring: "hsl(var(--tf-ring) / <alpha-value>)"
4718
- },
4719
- borderRadius: {
4720
- lg: "var(--tf-radius)",
4721
- md: "calc(var(--tf-radius) - 2px)",
4722
- sm: "calc(var(--tf-radius) - 4px)"
4723
- },
4724
- fontFamily: {
4725
- "tf-font": ["var(--tf-font)", ...vr.fontFamily.sans]
4726
- },
4727
- keyframes: {
4728
- "accordion-down": {
4729
- from: { height: "0" },
4730
- to: { height: "var(--radix-accordion-content-height)" }
4731
- },
4732
- "accordion-up": {
4733
- from: { height: "var(--radix-accordion-content-height)" },
4734
- to: { height: "0" }
4735
- }
4736
- },
4737
- animation: {
4738
- "accordion-down": "accordion-down 0.2s ease-out",
4739
- "accordion-up": "accordion-up 0.2s ease-out"
4740
- }
4741
- }
4742
- }
4743
- }, Sr = ot({
4744
- theme: {
4745
- extend: kr.theme.extend
4746
- },
4747
- presets: [Bt(), yr()]
4748
- }), Cr = Mt(Sr), zr = St(pt, {
4749
- // @ts-expect-error: ts limitation
4750
- props: {
4751
- config: "json",
4752
- options: "json"
4753
- },
4754
- shadow: "open"
4755
- });
4756
- class Tr extends Cr(zr) {
4757
- }
4758
- customElements.define("twintag-form", Tr);