@turystack/ui 0.0.12 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.d.ts +14 -5
- package/dist/index.js +340 -308
- package/package.json +3 -4
package/dist/index.js
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Slot as
|
|
3
|
-
import { Loader2 as
|
|
4
|
-
import { createContext as
|
|
5
|
-
var
|
|
6
|
-
const
|
|
1
|
+
import { jsx as H, jsxs as rt, Fragment as ot } from "react/jsx-runtime";
|
|
2
|
+
import { Slot as st } from "@radix-ui/react-slot";
|
|
3
|
+
import { Loader2 as Ne } from "lucide-react";
|
|
4
|
+
import { createContext as nt, useContext as at } from "react";
|
|
5
|
+
var it = /\s+/g, lt = (e) => typeof e != "string" || !e ? e : e.replace(it, " ").trim(), fe = (...e) => {
|
|
6
|
+
const r = [], o = (t) => {
|
|
7
7
|
if (!t && t !== 0 && t !== 0n) return;
|
|
8
8
|
if (Array.isArray(t)) {
|
|
9
|
-
for (let s = 0, a = t.length; s < a; s++)
|
|
9
|
+
for (let s = 0, a = t.length; s < a; s++) o(t[s]);
|
|
10
10
|
return;
|
|
11
11
|
}
|
|
12
12
|
const n = typeof t;
|
|
13
13
|
if (n === "string" || n === "number" || n === "bigint") {
|
|
14
14
|
if (n === "number" && t !== t) return;
|
|
15
|
-
|
|
15
|
+
r.push(String(t));
|
|
16
16
|
} else if (n === "object") {
|
|
17
17
|
const s = Object.keys(t);
|
|
18
18
|
for (let a = 0, m = s.length; a < m; a++) {
|
|
19
19
|
const d = s[a];
|
|
20
|
-
t[d] &&
|
|
20
|
+
t[d] && r.push(d);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
25
25
|
const s = e[t];
|
|
26
|
-
s != null &&
|
|
26
|
+
s != null && o(s);
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return r.length > 0 ? lt(r.join(" ")) : void 0;
|
|
29
29
|
}, Se = (e) => e === !1 ? "false" : e === !0 ? "true" : e === 0 ? "0" : e, L = (e) => {
|
|
30
30
|
if (!e || typeof e != "object") return !0;
|
|
31
|
-
for (const
|
|
31
|
+
for (const r in e) return !1;
|
|
32
32
|
return !0;
|
|
33
|
-
},
|
|
34
|
-
if (e ===
|
|
35
|
-
if (!e || !
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
for (let n = 0; n <
|
|
39
|
-
const s =
|
|
40
|
-
if (!t.includes(s) || e[s] !==
|
|
33
|
+
}, ct = (e, r) => {
|
|
34
|
+
if (e === r) return !0;
|
|
35
|
+
if (!e || !r) return !1;
|
|
36
|
+
const o = Object.keys(e), t = Object.keys(r);
|
|
37
|
+
if (o.length !== t.length) return !1;
|
|
38
|
+
for (let n = 0; n < o.length; n++) {
|
|
39
|
+
const s = o[n];
|
|
40
|
+
if (!t.includes(s) || e[s] !== r[s]) return !1;
|
|
41
41
|
}
|
|
42
42
|
return !0;
|
|
43
|
-
},
|
|
44
|
-
for (const
|
|
45
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
46
|
-
const t = o
|
|
47
|
-
|
|
43
|
+
}, dt = (e, r) => {
|
|
44
|
+
for (const o in r)
|
|
45
|
+
if (Object.prototype.hasOwnProperty.call(r, o)) {
|
|
46
|
+
const t = r[o];
|
|
47
|
+
o in e ? e[o] = fe(e[o], t) : e[o] = t;
|
|
48
48
|
}
|
|
49
49
|
return e;
|
|
50
|
-
},
|
|
51
|
-
for (let
|
|
52
|
-
const t = e[
|
|
53
|
-
Array.isArray(t) ?
|
|
50
|
+
}, Re = (e, r) => {
|
|
51
|
+
for (let o = 0; o < e.length; o++) {
|
|
52
|
+
const t = e[o];
|
|
53
|
+
Array.isArray(t) ? Re(t, r) : t && r.push(t);
|
|
54
54
|
}
|
|
55
|
-
},
|
|
56
|
-
const o = [];
|
|
57
|
-
Ne(e, o);
|
|
55
|
+
}, Ie = (...e) => {
|
|
58
56
|
const r = [];
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
Re(e, r);
|
|
58
|
+
const o = [];
|
|
59
|
+
for (let t = 0; t < r.length; t++)
|
|
60
|
+
r[t] && o.push(r[t]);
|
|
61
|
+
return o;
|
|
62
|
+
}, he = (e, r) => {
|
|
63
|
+
const o = {};
|
|
64
64
|
for (const t in e) {
|
|
65
65
|
const n = e[t];
|
|
66
|
-
if (t in
|
|
67
|
-
const s =
|
|
68
|
-
Array.isArray(n) || Array.isArray(s) ?
|
|
66
|
+
if (t in r) {
|
|
67
|
+
const s = r[t];
|
|
68
|
+
Array.isArray(n) || Array.isArray(s) ? o[t] = Ie(s, n) : typeof n == "object" && typeof s == "object" && n && s ? o[t] = he(n, s) : o[t] = s + " " + n;
|
|
69
69
|
} else
|
|
70
|
-
|
|
70
|
+
o[t] = n;
|
|
71
71
|
}
|
|
72
|
-
for (const t in
|
|
73
|
-
t in e || (
|
|
74
|
-
return
|
|
75
|
-
},
|
|
72
|
+
for (const t in r)
|
|
73
|
+
t in e || (o[t] = r[t]);
|
|
74
|
+
return o;
|
|
75
|
+
}, ut = {
|
|
76
76
|
twMerge: !0,
|
|
77
77
|
twMergeConfig: {}
|
|
78
78
|
};
|
|
79
|
-
function
|
|
80
|
-
let e = null,
|
|
79
|
+
function mt() {
|
|
80
|
+
let e = null, r = {}, o = !1;
|
|
81
81
|
return {
|
|
82
82
|
get cachedTwMerge() {
|
|
83
83
|
return e;
|
|
@@ -86,24 +86,24 @@ function ct() {
|
|
|
86
86
|
e = t;
|
|
87
87
|
},
|
|
88
88
|
get cachedTwMergeConfig() {
|
|
89
|
-
return
|
|
89
|
+
return r;
|
|
90
90
|
},
|
|
91
91
|
set cachedTwMergeConfig(t) {
|
|
92
|
-
|
|
92
|
+
r = t;
|
|
93
93
|
},
|
|
94
94
|
get didTwMergeConfigChange() {
|
|
95
|
-
return
|
|
95
|
+
return o;
|
|
96
96
|
},
|
|
97
97
|
set didTwMergeConfigChange(t) {
|
|
98
|
-
|
|
98
|
+
o = t;
|
|
99
99
|
},
|
|
100
100
|
reset() {
|
|
101
|
-
e = null,
|
|
101
|
+
e = null, r = {}, o = !1;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
var U =
|
|
106
|
-
const
|
|
105
|
+
var U = mt(), ft = (e) => {
|
|
106
|
+
const r = (t, n) => {
|
|
107
107
|
const {
|
|
108
108
|
extend: s = null,
|
|
109
109
|
slots: a = {},
|
|
@@ -111,18 +111,18 @@ var U = ct(), dt = (e) => {
|
|
|
111
111
|
compoundVariants: d = [],
|
|
112
112
|
compoundSlots: g = [],
|
|
113
113
|
defaultVariants: S = {}
|
|
114
|
-
} = t, A = { ...
|
|
115
|
-
!L(A.twMergeConfig) && !
|
|
116
|
-
const
|
|
114
|
+
} = t, A = { ...ut, ...n }, P = s?.base ? fe(s.base, t?.base) : t?.base, C = s?.variants && !L(s.variants) ? he(m, s.variants) : m, G = s?.defaultVariants && !L(s.defaultVariants) ? { ...s.defaultVariants, ...S } : S;
|
|
115
|
+
!L(A.twMergeConfig) && !ct(A.twMergeConfig, U.cachedTwMergeConfig) && (U.didTwMergeConfigChange = !0, U.cachedTwMergeConfig = A.twMergeConfig);
|
|
116
|
+
const k = L(s?.slots), v = L(a) ? {} : {
|
|
117
117
|
// add "base" to the slots object
|
|
118
|
-
base: fe(t?.base,
|
|
118
|
+
base: fe(t?.base, k && s?.base),
|
|
119
119
|
...a
|
|
120
|
-
}, I =
|
|
120
|
+
}, I = k ? v : dt(
|
|
121
121
|
{ ...s?.slots },
|
|
122
122
|
L(v) ? { base: t?.base } : v
|
|
123
|
-
), j = L(s?.compoundVariants) ? d :
|
|
124
|
-
if (L(C) && L(a) &&
|
|
125
|
-
return e(
|
|
123
|
+
), j = L(s?.compoundVariants) ? d : Ie(s?.compoundVariants, d), O = (N) => {
|
|
124
|
+
if (L(C) && L(a) && k)
|
|
125
|
+
return e(P, N?.class, N?.className)(A);
|
|
126
126
|
if (j && !Array.isArray(j))
|
|
127
127
|
throw new TypeError(
|
|
128
128
|
`The "compoundVariants" prop must be an array. Received: ${typeof j}`
|
|
@@ -132,16 +132,16 @@ var U = ct(), dt = (e) => {
|
|
|
132
132
|
`The "compoundSlots" prop must be an array. Received: ${typeof g}`
|
|
133
133
|
);
|
|
134
134
|
const B = (b, h = C, f = null, y = null) => {
|
|
135
|
-
const
|
|
136
|
-
if (!
|
|
135
|
+
const w = h[b];
|
|
136
|
+
if (!w || L(w))
|
|
137
137
|
return null;
|
|
138
138
|
const z = y?.[b] ?? N?.[b];
|
|
139
139
|
if (z === null) return null;
|
|
140
140
|
const c = Se(z);
|
|
141
141
|
if (typeof c == "object")
|
|
142
142
|
return null;
|
|
143
|
-
const _ =
|
|
144
|
-
return
|
|
143
|
+
const _ = G?.[b], E = c ?? Se(_);
|
|
144
|
+
return w[E || "false"];
|
|
145
145
|
}, X = () => {
|
|
146
146
|
if (!C) return null;
|
|
147
147
|
const b = Object.keys(C), h = [];
|
|
@@ -154,7 +154,7 @@ var U = ct(), dt = (e) => {
|
|
|
154
154
|
if (!C || typeof C != "object") return null;
|
|
155
155
|
const f = [];
|
|
156
156
|
for (const y in C) {
|
|
157
|
-
const
|
|
157
|
+
const w = B(y, C, b, h), z = b === "base" && typeof w == "string" ? w : w && w[b];
|
|
158
158
|
z && f.push(z);
|
|
159
159
|
}
|
|
160
160
|
return f;
|
|
@@ -168,15 +168,15 @@ var U = ct(), dt = (e) => {
|
|
|
168
168
|
[b]: N[b]?.initial
|
|
169
169
|
} : {};
|
|
170
170
|
return {
|
|
171
|
-
...
|
|
171
|
+
...G,
|
|
172
172
|
...R,
|
|
173
173
|
...f,
|
|
174
174
|
...h
|
|
175
175
|
};
|
|
176
176
|
}, te = (b = [], h) => {
|
|
177
177
|
const f = [], y = b.length;
|
|
178
|
-
for (let
|
|
179
|
-
const { class: z, className: c, ..._ } = b[
|
|
178
|
+
for (let w = 0; w < y; w++) {
|
|
179
|
+
const { class: z, className: c, ..._ } = b[w];
|
|
180
180
|
let E = !0;
|
|
181
181
|
const F = ee(null, h);
|
|
182
182
|
for (const W in _) {
|
|
@@ -198,12 +198,12 @@ var U = ct(), dt = (e) => {
|
|
|
198
198
|
E && (z && f.push(z), c && f.push(c));
|
|
199
199
|
}
|
|
200
200
|
return f;
|
|
201
|
-
},
|
|
201
|
+
}, Z = (b) => {
|
|
202
202
|
const h = te(j, b);
|
|
203
203
|
if (!Array.isArray(h)) return h;
|
|
204
204
|
const f = {}, y = e;
|
|
205
|
-
for (let
|
|
206
|
-
const z = h[
|
|
205
|
+
for (let w = 0; w < h.length; w++) {
|
|
206
|
+
const z = h[w];
|
|
207
207
|
if (typeof z == "string")
|
|
208
208
|
f.base = y(f.base, z)(A);
|
|
209
209
|
else if (typeof z == "object")
|
|
@@ -216,7 +216,7 @@ var U = ct(), dt = (e) => {
|
|
|
216
216
|
const h = {}, f = ee(null, b);
|
|
217
217
|
for (let y = 0; y < g.length; y++) {
|
|
218
218
|
const {
|
|
219
|
-
slots:
|
|
219
|
+
slots: w = [],
|
|
220
220
|
class: z,
|
|
221
221
|
className: c,
|
|
222
222
|
..._
|
|
@@ -232,24 +232,24 @@ var U = ct(), dt = (e) => {
|
|
|
232
232
|
}
|
|
233
233
|
if (!E) continue;
|
|
234
234
|
}
|
|
235
|
-
for (let E = 0; E <
|
|
236
|
-
const F =
|
|
235
|
+
for (let E = 0; E < w.length; E++) {
|
|
236
|
+
const F = w[E];
|
|
237
237
|
h[F] || (h[F] = []), h[F].push([z, c]);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
return h;
|
|
241
241
|
};
|
|
242
|
-
if (!L(a) || !
|
|
242
|
+
if (!L(a) || !k) {
|
|
243
243
|
const b = {};
|
|
244
244
|
if (typeof I == "object" && !L(I)) {
|
|
245
245
|
const h = e;
|
|
246
246
|
for (const f in I)
|
|
247
247
|
b[f] = (y) => {
|
|
248
|
-
const
|
|
248
|
+
const w = Z(y), z = se(y);
|
|
249
249
|
return h(
|
|
250
250
|
I[f],
|
|
251
251
|
u(f, y),
|
|
252
|
-
|
|
252
|
+
w ? w[f] : void 0,
|
|
253
253
|
z ? z[f] : void 0,
|
|
254
254
|
y?.class,
|
|
255
255
|
y?.className
|
|
@@ -259,7 +259,7 @@ var U = ct(), dt = (e) => {
|
|
|
259
259
|
return b;
|
|
260
260
|
}
|
|
261
261
|
return e(
|
|
262
|
-
|
|
262
|
+
P,
|
|
263
263
|
X(),
|
|
264
264
|
te(j),
|
|
265
265
|
N?.class,
|
|
@@ -269,121 +269,121 @@ var U = ct(), dt = (e) => {
|
|
|
269
269
|
if (!(!C || typeof C != "object"))
|
|
270
270
|
return Object.keys(C);
|
|
271
271
|
};
|
|
272
|
-
return O.variantKeys = D(), O.extend = s, O.base =
|
|
272
|
+
return O.variantKeys = D(), O.extend = s, O.base = P, O.slots = I, O.variants = C, O.defaultVariants = G, O.compoundSlots = g, O.compoundVariants = j, O;
|
|
273
273
|
};
|
|
274
274
|
return {
|
|
275
|
-
tv:
|
|
276
|
-
createTV: (t) => (n, s) =>
|
|
275
|
+
tv: r,
|
|
276
|
+
createTV: (t) => (n, s) => r(n, s ? he(t, s) : t)
|
|
277
277
|
};
|
|
278
278
|
};
|
|
279
|
-
const
|
|
280
|
-
const
|
|
279
|
+
const pt = (e, r) => {
|
|
280
|
+
const o = new Array(e.length + r.length);
|
|
281
281
|
for (let t = 0; t < e.length; t++)
|
|
282
|
-
|
|
283
|
-
for (let t = 0; t <
|
|
284
|
-
|
|
285
|
-
return
|
|
286
|
-
},
|
|
282
|
+
o[t] = e[t];
|
|
283
|
+
for (let t = 0; t < r.length; t++)
|
|
284
|
+
o[e.length + t] = r[t];
|
|
285
|
+
return o;
|
|
286
|
+
}, gt = (e, r) => ({
|
|
287
287
|
classGroupId: e,
|
|
288
|
-
validator:
|
|
289
|
-
}),
|
|
288
|
+
validator: r
|
|
289
|
+
}), Oe = (e = /* @__PURE__ */ new Map(), r = null, o) => ({
|
|
290
290
|
nextPart: e,
|
|
291
|
-
validators:
|
|
292
|
-
classGroupId:
|
|
293
|
-
}), pe = "-", Ae = [],
|
|
294
|
-
const
|
|
295
|
-
conflictingClassGroups:
|
|
291
|
+
validators: r,
|
|
292
|
+
classGroupId: o
|
|
293
|
+
}), pe = "-", Ae = [], bt = "arbitrary..", ht = (e) => {
|
|
294
|
+
const r = vt(e), {
|
|
295
|
+
conflictingClassGroups: o,
|
|
296
296
|
conflictingClassGroupModifiers: t
|
|
297
297
|
} = e;
|
|
298
298
|
return {
|
|
299
299
|
getClassGroupId: (a) => {
|
|
300
300
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
301
|
-
return
|
|
301
|
+
return yt(a);
|
|
302
302
|
const m = a.split(pe), d = m[0] === "" && m.length > 1 ? 1 : 0;
|
|
303
|
-
return
|
|
303
|
+
return Ee(m, d, r);
|
|
304
304
|
},
|
|
305
305
|
getConflictingClassGroupIds: (a, m) => {
|
|
306
306
|
if (m) {
|
|
307
|
-
const d = t[a], g =
|
|
308
|
-
return d ? g ?
|
|
307
|
+
const d = t[a], g = o[a];
|
|
308
|
+
return d ? g ? pt(g, d) : d : g || Ae;
|
|
309
309
|
}
|
|
310
|
-
return
|
|
310
|
+
return o[a] || Ae;
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
|
-
},
|
|
314
|
-
if (e.length -
|
|
315
|
-
return
|
|
316
|
-
const n = e[
|
|
313
|
+
}, Ee = (e, r, o) => {
|
|
314
|
+
if (e.length - r === 0)
|
|
315
|
+
return o.classGroupId;
|
|
316
|
+
const n = e[r], s = o.nextPart.get(n);
|
|
317
317
|
if (s) {
|
|
318
|
-
const g =
|
|
318
|
+
const g = Ee(e, r + 1, s);
|
|
319
319
|
if (g) return g;
|
|
320
320
|
}
|
|
321
|
-
const a =
|
|
321
|
+
const a = o.validators;
|
|
322
322
|
if (a === null)
|
|
323
323
|
return;
|
|
324
|
-
const m =
|
|
324
|
+
const m = r === 0 ? e.join(pe) : e.slice(r).join(pe), d = a.length;
|
|
325
325
|
for (let g = 0; g < d; g++) {
|
|
326
326
|
const S = a[g];
|
|
327
327
|
if (S.validator(m))
|
|
328
328
|
return S.classGroupId;
|
|
329
329
|
}
|
|
330
|
-
},
|
|
331
|
-
const
|
|
332
|
-
return t ?
|
|
333
|
-
})(),
|
|
330
|
+
}, yt = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
331
|
+
const r = e.slice(1, -1), o = r.indexOf(":"), t = r.slice(0, o);
|
|
332
|
+
return t ? bt + t : void 0;
|
|
333
|
+
})(), vt = (e) => {
|
|
334
334
|
const {
|
|
335
|
-
theme:
|
|
336
|
-
classGroups:
|
|
335
|
+
theme: r,
|
|
336
|
+
classGroups: o
|
|
337
337
|
} = e;
|
|
338
|
-
return
|
|
339
|
-
},
|
|
340
|
-
const
|
|
338
|
+
return wt(o, r);
|
|
339
|
+
}, wt = (e, r) => {
|
|
340
|
+
const o = Oe();
|
|
341
341
|
for (const t in e) {
|
|
342
342
|
const n = e[t];
|
|
343
|
-
|
|
343
|
+
ke(n, o, t, r);
|
|
344
344
|
}
|
|
345
|
-
return
|
|
346
|
-
},
|
|
345
|
+
return o;
|
|
346
|
+
}, ke = (e, r, o, t) => {
|
|
347
347
|
const n = e.length;
|
|
348
348
|
for (let s = 0; s < n; s++) {
|
|
349
349
|
const a = e[s];
|
|
350
|
-
|
|
350
|
+
kt(a, r, o, t);
|
|
351
351
|
}
|
|
352
|
-
},
|
|
352
|
+
}, kt = (e, r, o, t) => {
|
|
353
353
|
if (typeof e == "string") {
|
|
354
|
-
|
|
354
|
+
xt(e, r, o);
|
|
355
355
|
return;
|
|
356
356
|
}
|
|
357
357
|
if (typeof e == "function") {
|
|
358
|
-
|
|
358
|
+
Ct(e, r, o, t);
|
|
359
359
|
return;
|
|
360
360
|
}
|
|
361
|
-
|
|
362
|
-
},
|
|
363
|
-
const t = e === "" ?
|
|
364
|
-
t.classGroupId =
|
|
365
|
-
},
|
|
366
|
-
if (
|
|
367
|
-
|
|
361
|
+
zt(e, r, o, t);
|
|
362
|
+
}, xt = (e, r, o) => {
|
|
363
|
+
const t = e === "" ? r : Le(r, e);
|
|
364
|
+
t.classGroupId = o;
|
|
365
|
+
}, Ct = (e, r, o, t) => {
|
|
366
|
+
if (St(e)) {
|
|
367
|
+
ke(e(t), r, o, t);
|
|
368
368
|
return;
|
|
369
369
|
}
|
|
370
|
-
|
|
371
|
-
},
|
|
370
|
+
r.validators === null && (r.validators = []), r.validators.push(gt(o, e));
|
|
371
|
+
}, zt = (e, r, o, t) => {
|
|
372
372
|
const n = Object.entries(e), s = n.length;
|
|
373
373
|
for (let a = 0; a < s; a++) {
|
|
374
374
|
const [m, d] = n[a];
|
|
375
|
-
|
|
375
|
+
ke(d, Le(r, m), o, t);
|
|
376
376
|
}
|
|
377
|
-
},
|
|
378
|
-
let
|
|
379
|
-
const t =
|
|
377
|
+
}, Le = (e, r) => {
|
|
378
|
+
let o = e;
|
|
379
|
+
const t = r.split(pe), n = t.length;
|
|
380
380
|
for (let s = 0; s < n; s++) {
|
|
381
381
|
const a = t[s];
|
|
382
|
-
let m =
|
|
383
|
-
m || (m =
|
|
382
|
+
let m = o.nextPart.get(a);
|
|
383
|
+
m || (m = Oe(), o.nextPart.set(a, m)), o = m;
|
|
384
384
|
}
|
|
385
|
-
return
|
|
386
|
-
},
|
|
385
|
+
return o;
|
|
386
|
+
}, St = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, At = (e) => {
|
|
387
387
|
if (e < 1)
|
|
388
388
|
return {
|
|
389
389
|
get: () => {
|
|
@@ -391,126 +391,126 @@ const ut = (e, o) => {
|
|
|
391
391
|
set: () => {
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
|
-
let
|
|
394
|
+
let r = 0, o = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
|
|
395
395
|
const n = (s, a) => {
|
|
396
|
-
|
|
396
|
+
o[s] = a, r++, r > e && (r = 0, t = o, o = /* @__PURE__ */ Object.create(null));
|
|
397
397
|
};
|
|
398
398
|
return {
|
|
399
399
|
get(s) {
|
|
400
|
-
let a =
|
|
400
|
+
let a = o[s];
|
|
401
401
|
if (a !== void 0)
|
|
402
402
|
return a;
|
|
403
403
|
if ((a = t[s]) !== void 0)
|
|
404
404
|
return n(s, a), a;
|
|
405
405
|
},
|
|
406
406
|
set(s, a) {
|
|
407
|
-
s in
|
|
407
|
+
s in o ? o[s] = a : n(s, a);
|
|
408
408
|
}
|
|
409
409
|
};
|
|
410
|
-
}, ye = "!", Me = ":",
|
|
410
|
+
}, ye = "!", Me = ":", Mt = [], Ve = (e, r, o, t, n) => ({
|
|
411
411
|
modifiers: e,
|
|
412
|
-
hasImportantModifier:
|
|
413
|
-
baseClassName:
|
|
412
|
+
hasImportantModifier: r,
|
|
413
|
+
baseClassName: o,
|
|
414
414
|
maybePostfixModifierPosition: t,
|
|
415
415
|
isExternal: n
|
|
416
|
-
}),
|
|
416
|
+
}), Vt = (e) => {
|
|
417
417
|
const {
|
|
418
|
-
prefix:
|
|
419
|
-
experimentalParseClassName:
|
|
418
|
+
prefix: r,
|
|
419
|
+
experimentalParseClassName: o
|
|
420
420
|
} = e;
|
|
421
421
|
let t = (n) => {
|
|
422
422
|
const s = [];
|
|
423
423
|
let a = 0, m = 0, d = 0, g;
|
|
424
424
|
const S = n.length;
|
|
425
|
-
for (let
|
|
426
|
-
const v = n[
|
|
425
|
+
for (let k = 0; k < S; k++) {
|
|
426
|
+
const v = n[k];
|
|
427
427
|
if (a === 0 && m === 0) {
|
|
428
428
|
if (v === Me) {
|
|
429
|
-
s.push(n.slice(d,
|
|
429
|
+
s.push(n.slice(d, k)), d = k + 1;
|
|
430
430
|
continue;
|
|
431
431
|
}
|
|
432
432
|
if (v === "/") {
|
|
433
|
-
g =
|
|
433
|
+
g = k;
|
|
434
434
|
continue;
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
v === "[" ? a++ : v === "]" ? a-- : v === "(" ? m++ : v === ")" && m--;
|
|
438
438
|
}
|
|
439
439
|
const A = s.length === 0 ? n : n.slice(d);
|
|
440
|
-
let
|
|
441
|
-
A.endsWith(ye) ? (
|
|
440
|
+
let P = A, C = !1;
|
|
441
|
+
A.endsWith(ye) ? (P = A.slice(0, -1), C = !0) : (
|
|
442
442
|
/**
|
|
443
443
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
444
444
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
445
445
|
*/
|
|
446
|
-
A.startsWith(ye) && (
|
|
446
|
+
A.startsWith(ye) && (P = A.slice(1), C = !0)
|
|
447
447
|
);
|
|
448
|
-
const
|
|
449
|
-
return Ve(s, C,
|
|
448
|
+
const G = g && g > d ? g - d : void 0;
|
|
449
|
+
return Ve(s, C, P, G);
|
|
450
450
|
};
|
|
451
|
-
if (o) {
|
|
452
|
-
const n = o + Me, s = t;
|
|
453
|
-
t = (a) => a.startsWith(n) ? s(a.slice(n.length)) : Ve(zt, !1, a, void 0, !0);
|
|
454
|
-
}
|
|
455
451
|
if (r) {
|
|
452
|
+
const n = r + Me, s = t;
|
|
453
|
+
t = (a) => a.startsWith(n) ? s(a.slice(n.length)) : Ve(Mt, !1, a, void 0, !0);
|
|
454
|
+
}
|
|
455
|
+
if (o) {
|
|
456
456
|
const n = t;
|
|
457
|
-
t = (s) =>
|
|
457
|
+
t = (s) => o({
|
|
458
458
|
className: s,
|
|
459
459
|
parseClassName: n
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
return t;
|
|
463
|
-
},
|
|
464
|
-
const
|
|
465
|
-
return e.orderSensitiveModifiers.forEach((
|
|
466
|
-
|
|
467
|
-
}), (
|
|
463
|
+
}, Tt = (e) => {
|
|
464
|
+
const r = /* @__PURE__ */ new Map();
|
|
465
|
+
return e.orderSensitiveModifiers.forEach((o, t) => {
|
|
466
|
+
r.set(o, 1e6 + t);
|
|
467
|
+
}), (o) => {
|
|
468
468
|
const t = [];
|
|
469
469
|
let n = [];
|
|
470
|
-
for (let s = 0; s <
|
|
471
|
-
const a =
|
|
470
|
+
for (let s = 0; s < o.length; s++) {
|
|
471
|
+
const a = o[s], m = a[0] === "[", d = r.has(a);
|
|
472
472
|
m || d ? (n.length > 0 && (n.sort(), t.push(...n), n = []), t.push(a)) : n.push(a);
|
|
473
473
|
}
|
|
474
474
|
return n.length > 0 && (n.sort(), t.push(...n)), t;
|
|
475
475
|
};
|
|
476
|
-
},
|
|
477
|
-
cache:
|
|
478
|
-
parseClassName:
|
|
479
|
-
sortModifiers:
|
|
480
|
-
...
|
|
481
|
-
}),
|
|
476
|
+
}, Pt = (e) => ({
|
|
477
|
+
cache: At(e.cacheSize),
|
|
478
|
+
parseClassName: Vt(e),
|
|
479
|
+
sortModifiers: Tt(e),
|
|
480
|
+
...ht(e)
|
|
481
|
+
}), Gt = /\s+/, Nt = (e, r) => {
|
|
482
482
|
const {
|
|
483
|
-
parseClassName:
|
|
483
|
+
parseClassName: o,
|
|
484
484
|
getClassGroupId: t,
|
|
485
485
|
getConflictingClassGroupIds: n,
|
|
486
486
|
sortModifiers: s
|
|
487
|
-
} =
|
|
487
|
+
} = r, a = [], m = e.trim().split(Gt);
|
|
488
488
|
let d = "";
|
|
489
489
|
for (let g = m.length - 1; g >= 0; g -= 1) {
|
|
490
490
|
const S = m[g], {
|
|
491
491
|
isExternal: A,
|
|
492
|
-
modifiers:
|
|
492
|
+
modifiers: P,
|
|
493
493
|
hasImportantModifier: C,
|
|
494
|
-
baseClassName:
|
|
495
|
-
maybePostfixModifierPosition:
|
|
496
|
-
} =
|
|
494
|
+
baseClassName: G,
|
|
495
|
+
maybePostfixModifierPosition: k
|
|
496
|
+
} = o(S);
|
|
497
497
|
if (A) {
|
|
498
498
|
d = S + (d.length > 0 ? " " + d : d);
|
|
499
499
|
continue;
|
|
500
500
|
}
|
|
501
|
-
let v = !!
|
|
501
|
+
let v = !!k, I = t(v ? G.substring(0, k) : G);
|
|
502
502
|
if (!I) {
|
|
503
503
|
if (!v) {
|
|
504
504
|
d = S + (d.length > 0 ? " " + d : d);
|
|
505
505
|
continue;
|
|
506
506
|
}
|
|
507
|
-
if (I = t(
|
|
507
|
+
if (I = t(G), !I) {
|
|
508
508
|
d = S + (d.length > 0 ? " " + d : d);
|
|
509
509
|
continue;
|
|
510
510
|
}
|
|
511
511
|
v = !1;
|
|
512
512
|
}
|
|
513
|
-
const j =
|
|
513
|
+
const j = P.length === 0 ? "" : P.length === 1 ? P[0] : s(P).join(":"), O = C ? j + ye : j, D = O + I;
|
|
514
514
|
if (a.indexOf(D) > -1)
|
|
515
515
|
continue;
|
|
516
516
|
a.push(D);
|
|
@@ -522,47 +522,47 @@ const ut = (e, o) => {
|
|
|
522
522
|
d = S + (d.length > 0 ? " " + d : d);
|
|
523
523
|
}
|
|
524
524
|
return d;
|
|
525
|
-
},
|
|
526
|
-
let
|
|
527
|
-
for (;
|
|
528
|
-
(
|
|
525
|
+
}, Rt = (...e) => {
|
|
526
|
+
let r = 0, o, t, n = "";
|
|
527
|
+
for (; r < e.length; )
|
|
528
|
+
(o = e[r++]) && (t = je(o)) && (n && (n += " "), n += t);
|
|
529
529
|
return n;
|
|
530
|
-
},
|
|
530
|
+
}, je = (e) => {
|
|
531
531
|
if (typeof e == "string")
|
|
532
532
|
return e;
|
|
533
|
-
let
|
|
533
|
+
let r, o = "";
|
|
534
534
|
for (let t = 0; t < e.length; t++)
|
|
535
|
-
e[t] && (
|
|
536
|
-
return
|
|
537
|
-
}, ve = (e, ...
|
|
538
|
-
let
|
|
535
|
+
e[t] && (r = je(e[t])) && (o && (o += " "), o += r);
|
|
536
|
+
return o;
|
|
537
|
+
}, ve = (e, ...r) => {
|
|
538
|
+
let o, t, n, s;
|
|
539
539
|
const a = (d) => {
|
|
540
|
-
const g =
|
|
541
|
-
return
|
|
540
|
+
const g = r.reduce((S, A) => A(S), e());
|
|
541
|
+
return o = Pt(g), t = o.cache.get, n = o.cache.set, s = m, m(d);
|
|
542
542
|
}, m = (d) => {
|
|
543
543
|
const g = t(d);
|
|
544
544
|
if (g)
|
|
545
545
|
return g;
|
|
546
|
-
const S =
|
|
546
|
+
const S = Nt(d, o);
|
|
547
547
|
return n(d, S), S;
|
|
548
548
|
};
|
|
549
|
-
return s = a, (...d) => s(
|
|
550
|
-
},
|
|
551
|
-
const
|
|
552
|
-
return
|
|
553
|
-
},
|
|
549
|
+
return s = a, (...d) => s(Rt(...d));
|
|
550
|
+
}, It = [], V = (e) => {
|
|
551
|
+
const r = (o) => o[e] || It;
|
|
552
|
+
return r.isThemeGetter = !0, r;
|
|
553
|
+
}, Fe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, _e = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ot = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Et = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Lt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, jt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ft = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _t = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, K = (e) => Ot.test(e), p = (e) => !!e && !Number.isNaN(Number(e)), Y = (e) => !!e && Number.isInteger(Number(e)), be = (e) => e.endsWith("%") && p(e.slice(0, -1)), $ = (e) => Et.test(e), Be = () => !0, Bt = (e) => (
|
|
554
554
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
555
555
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
556
556
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
557
|
-
|
|
558
|
-
), xe = () => !1,
|
|
559
|
-
const t = je.exec(e);
|
|
560
|
-
return t ? t[1] ? o(t[1]) : r(t[2]) : !1;
|
|
561
|
-
}, H = (e, o, r = !1) => {
|
|
557
|
+
Lt.test(e) && !jt.test(e)
|
|
558
|
+
), xe = () => !1, Wt = (e) => Ft.test(e), $t = (e) => _t.test(e), Ut = (e) => !i(e) && !l(e), Dt = (e) => q(e, Ue, xe), i = (e) => Fe.test(e), J = (e) => q(e, De, Bt), Te = (e) => q(e, Zt, p), Kt = (e) => q(e, Ye, Be), Yt = (e) => q(e, Ke, xe), Pe = (e) => q(e, We, xe), qt = (e) => q(e, $e, $t), ce = (e) => q(e, qe, Wt), l = (e) => _e.test(e), re = (e) => Q(e, De), Xt = (e) => Q(e, Ke), Ge = (e) => Q(e, We), Jt = (e) => Q(e, Ue), Ht = (e) => Q(e, $e), de = (e) => Q(e, qe, !0), Qt = (e) => Q(e, Ye, !0), q = (e, r, o) => {
|
|
562
559
|
const t = Fe.exec(e);
|
|
563
|
-
return t ? t[1] ?
|
|
564
|
-
},
|
|
565
|
-
const
|
|
560
|
+
return t ? t[1] ? r(t[1]) : o(t[2]) : !1;
|
|
561
|
+
}, Q = (e, r, o = !1) => {
|
|
562
|
+
const t = _e.exec(e);
|
|
563
|
+
return t ? t[1] ? r(t[1]) : o : !1;
|
|
564
|
+
}, We = (e) => e === "position" || e === "percentage", $e = (e) => e === "image" || e === "url", Ue = (e) => e === "length" || e === "size" || e === "bg-size", De = (e) => e === "length", Zt = (e) => e === "number", Ke = (e) => e === "family-name", Ye = (e) => e === "number" || e === "weight", qe = (e) => e === "shadow", we = () => {
|
|
565
|
+
const e = V("color"), r = V("font"), o = V("text"), t = V("font-weight"), n = V("tracking"), s = V("leading"), a = V("breakpoint"), m = V("container"), d = V("spacing"), g = V("radius"), S = V("shadow"), A = V("inset-shadow"), P = V("text-shadow"), C = V("drop-shadow"), G = V("blur"), k = V("perspective"), v = V("aspect"), I = V("ease"), j = V("animate"), O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], D = () => [
|
|
566
566
|
"center",
|
|
567
567
|
"top",
|
|
568
568
|
"bottom",
|
|
@@ -582,11 +582,11 @@ const ut = (e, o) => {
|
|
|
582
582
|
"left-bottom"
|
|
583
583
|
], N = () => [...D(), l, i], B = () => ["auto", "hidden", "clip", "visible", "scroll"], X = () => ["auto", "contain", "none"], u = () => [l, i, d], R = () => [K, "full", "auto", ...u()], ee = () => [Y, "none", "subgrid", l, i], te = () => ["auto", {
|
|
584
584
|
span: ["full", Y, l, i]
|
|
585
|
-
}, Y, l, i],
|
|
585
|
+
}, Y, l, i], Z = () => [Y, "auto", l, i], se = () => ["auto", "min", "max", "fr", l, i], b = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], h = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], f = () => ["auto", ...u()], y = () => [K, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...u()], w = () => [K, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...u()], z = () => [K, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...u()], c = () => [e, l, i], _ = () => [...D(), Ge, Pe, {
|
|
586
586
|
position: [l, i]
|
|
587
587
|
}], E = () => ["no-repeat", {
|
|
588
588
|
repeat: ["", "x", "y", "space", "round"]
|
|
589
|
-
}], F = () => ["auto", "cover", "contain",
|
|
589
|
+
}], F = () => ["auto", "cover", "contain", Jt, Dt, {
|
|
590
590
|
size: [l, i]
|
|
591
591
|
}], W = () => [be, re, J], x = () => [
|
|
592
592
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -596,11 +596,11 @@ const ut = (e, o) => {
|
|
|
596
596
|
g,
|
|
597
597
|
l,
|
|
598
598
|
i
|
|
599
|
-
], M = () => ["", p, re, J], ne = () => ["solid", "dashed", "dotted", "double"], Ce = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], T = () => [p, be,
|
|
599
|
+
], M = () => ["", p, re, J], ne = () => ["solid", "dashed", "dotted", "double"], Ce = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], T = () => [p, be, Ge, Pe], ze = () => [
|
|
600
600
|
// Deprecated since Tailwind CSS v4.0.0
|
|
601
601
|
"",
|
|
602
602
|
"none",
|
|
603
|
-
|
|
603
|
+
G,
|
|
604
604
|
l,
|
|
605
605
|
i
|
|
606
606
|
], ae = () => ["none", p, l, i], ie = () => ["none", p, l, i], ge = () => [p, l, i], le = () => [K, "full", ...u()];
|
|
@@ -611,11 +611,11 @@ const ut = (e, o) => {
|
|
|
611
611
|
aspect: ["video"],
|
|
612
612
|
blur: [$],
|
|
613
613
|
breakpoint: [$],
|
|
614
|
-
color: [
|
|
614
|
+
color: [Be],
|
|
615
615
|
container: [$],
|
|
616
616
|
"drop-shadow": [$],
|
|
617
617
|
ease: ["in", "out", "in-out"],
|
|
618
|
-
font: [
|
|
618
|
+
font: [Ut],
|
|
619
619
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
620
620
|
"inset-shadow": [$],
|
|
621
621
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -948,14 +948,14 @@ const ut = (e, o) => {
|
|
|
948
948
|
* @see https://tailwindcss.com/docs/grid-column
|
|
949
949
|
*/
|
|
950
950
|
"col-start": [{
|
|
951
|
-
"col-start":
|
|
951
|
+
"col-start": Z()
|
|
952
952
|
}],
|
|
953
953
|
/**
|
|
954
954
|
* Grid Column End
|
|
955
955
|
* @see https://tailwindcss.com/docs/grid-column
|
|
956
956
|
*/
|
|
957
957
|
"col-end": [{
|
|
958
|
-
"col-end":
|
|
958
|
+
"col-end": Z()
|
|
959
959
|
}],
|
|
960
960
|
/**
|
|
961
961
|
* Grid Template Rows
|
|
@@ -976,14 +976,14 @@ const ut = (e, o) => {
|
|
|
976
976
|
* @see https://tailwindcss.com/docs/grid-row
|
|
977
977
|
*/
|
|
978
978
|
"row-start": [{
|
|
979
|
-
"row-start":
|
|
979
|
+
"row-start": Z()
|
|
980
980
|
}],
|
|
981
981
|
/**
|
|
982
982
|
* Grid Row End
|
|
983
983
|
* @see https://tailwindcss.com/docs/grid-row
|
|
984
984
|
*/
|
|
985
985
|
"row-end": [{
|
|
986
|
-
"row-end":
|
|
986
|
+
"row-end": Z()
|
|
987
987
|
}],
|
|
988
988
|
/**
|
|
989
989
|
* Grid Auto Flow
|
|
@@ -1288,21 +1288,21 @@ const ut = (e, o) => {
|
|
|
1288
1288
|
* @see https://tailwindcss.com/docs/width
|
|
1289
1289
|
*/
|
|
1290
1290
|
"inline-size": [{
|
|
1291
|
-
inline: ["auto", ...
|
|
1291
|
+
inline: ["auto", ...w()]
|
|
1292
1292
|
}],
|
|
1293
1293
|
/**
|
|
1294
1294
|
* Min-Inline Size
|
|
1295
1295
|
* @see https://tailwindcss.com/docs/min-width
|
|
1296
1296
|
*/
|
|
1297
1297
|
"min-inline-size": [{
|
|
1298
|
-
"min-inline": ["auto", ...
|
|
1298
|
+
"min-inline": ["auto", ...w()]
|
|
1299
1299
|
}],
|
|
1300
1300
|
/**
|
|
1301
1301
|
* Max-Inline Size
|
|
1302
1302
|
* @see https://tailwindcss.com/docs/max-width
|
|
1303
1303
|
*/
|
|
1304
1304
|
"max-inline-size": [{
|
|
1305
|
-
"max-inline": ["none", ...
|
|
1305
|
+
"max-inline": ["none", ...w()]
|
|
1306
1306
|
}],
|
|
1307
1307
|
/**
|
|
1308
1308
|
* Block Size
|
|
@@ -1392,7 +1392,7 @@ const ut = (e, o) => {
|
|
|
1392
1392
|
* @see https://tailwindcss.com/docs/font-size
|
|
1393
1393
|
*/
|
|
1394
1394
|
"font-size": [{
|
|
1395
|
-
text: ["base",
|
|
1395
|
+
text: ["base", o, re, J]
|
|
1396
1396
|
}],
|
|
1397
1397
|
/**
|
|
1398
1398
|
* Font Smoothing
|
|
@@ -1409,7 +1409,7 @@ const ut = (e, o) => {
|
|
|
1409
1409
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1410
1410
|
*/
|
|
1411
1411
|
"font-weight": [{
|
|
1412
|
-
font: [t,
|
|
1412
|
+
font: [t, Qt, Kt]
|
|
1413
1413
|
}],
|
|
1414
1414
|
/**
|
|
1415
1415
|
* Font Stretch
|
|
@@ -1423,7 +1423,7 @@ const ut = (e, o) => {
|
|
|
1423
1423
|
* @see https://tailwindcss.com/docs/font-family
|
|
1424
1424
|
*/
|
|
1425
1425
|
"font-family": [{
|
|
1426
|
-
font: [
|
|
1426
|
+
font: [Xt, Yt, r]
|
|
1427
1427
|
}],
|
|
1428
1428
|
/**
|
|
1429
1429
|
* Font Feature Settings
|
|
@@ -1685,7 +1685,7 @@ const ut = (e, o) => {
|
|
|
1685
1685
|
}, Y, l, i],
|
|
1686
1686
|
radial: ["", l, i],
|
|
1687
1687
|
conic: [Y, l, i]
|
|
1688
|
-
},
|
|
1688
|
+
}, Ht, qt]
|
|
1689
1689
|
}],
|
|
1690
1690
|
/**
|
|
1691
1691
|
* Background Color
|
|
@@ -2167,7 +2167,7 @@ const ut = (e, o) => {
|
|
|
2167
2167
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2168
2168
|
*/
|
|
2169
2169
|
"text-shadow": [{
|
|
2170
|
-
"text-shadow": ["none",
|
|
2170
|
+
"text-shadow": ["none", P, de, ce]
|
|
2171
2171
|
}],
|
|
2172
2172
|
/**
|
|
2173
2173
|
* Text Shadow Color
|
|
@@ -2667,7 +2667,7 @@ const ut = (e, o) => {
|
|
|
2667
2667
|
* @see https://tailwindcss.com/docs/perspective
|
|
2668
2668
|
*/
|
|
2669
2669
|
perspective: [{
|
|
2670
|
-
perspective: [
|
|
2670
|
+
perspective: [k, l, i]
|
|
2671
2671
|
}],
|
|
2672
2672
|
/**
|
|
2673
2673
|
* Perspective Origin
|
|
@@ -3190,27 +3190,27 @@ const ut = (e, o) => {
|
|
|
3190
3190
|
},
|
|
3191
3191
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3192
3192
|
};
|
|
3193
|
-
},
|
|
3194
|
-
cacheSize:
|
|
3195
|
-
prefix:
|
|
3193
|
+
}, er = (e, {
|
|
3194
|
+
cacheSize: r,
|
|
3195
|
+
prefix: o,
|
|
3196
3196
|
experimentalParseClassName: t,
|
|
3197
3197
|
extend: n = {},
|
|
3198
3198
|
override: s = {}
|
|
3199
|
-
}) => (oe(e, "cacheSize",
|
|
3200
|
-
|
|
3201
|
-
}, ue = (e,
|
|
3202
|
-
if (
|
|
3203
|
-
for (const
|
|
3204
|
-
oe(e,
|
|
3205
|
-
}, me = (e,
|
|
3206
|
-
if (
|
|
3207
|
-
for (const
|
|
3208
|
-
|
|
3209
|
-
},
|
|
3210
|
-
const t = o
|
|
3211
|
-
t !== void 0 && (e[
|
|
3212
|
-
},
|
|
3213
|
-
var
|
|
3199
|
+
}) => (oe(e, "cacheSize", r), oe(e, "prefix", o), oe(e, "experimentalParseClassName", t), ue(e.theme, s.theme), ue(e.classGroups, s.classGroups), ue(e.conflictingClassGroups, s.conflictingClassGroups), ue(e.conflictingClassGroupModifiers, s.conflictingClassGroupModifiers), oe(e, "orderSensitiveModifiers", s.orderSensitiveModifiers), me(e.theme, n.theme), me(e.classGroups, n.classGroups), me(e.conflictingClassGroups, n.conflictingClassGroups), me(e.conflictingClassGroupModifiers, n.conflictingClassGroupModifiers), Xe(e, n, "orderSensitiveModifiers"), e), oe = (e, r, o) => {
|
|
3200
|
+
o !== void 0 && (e[r] = o);
|
|
3201
|
+
}, ue = (e, r) => {
|
|
3202
|
+
if (r)
|
|
3203
|
+
for (const o in r)
|
|
3204
|
+
oe(e, o, r[o]);
|
|
3205
|
+
}, me = (e, r) => {
|
|
3206
|
+
if (r)
|
|
3207
|
+
for (const o in r)
|
|
3208
|
+
Xe(e, r, o);
|
|
3209
|
+
}, Xe = (e, r, o) => {
|
|
3210
|
+
const t = r[o];
|
|
3211
|
+
t !== void 0 && (e[o] = e[o] ? e[o].concat(t) : t);
|
|
3212
|
+
}, tr = (e, ...r) => typeof e == "function" ? ve(we, e, ...r) : ve(() => er(we(), e), ...r), Je = /* @__PURE__ */ ve(we);
|
|
3213
|
+
var rr = (e) => L(e) ? Je : tr({
|
|
3214
3214
|
...e,
|
|
3215
3215
|
extend: {
|
|
3216
3216
|
theme: e.theme,
|
|
@@ -3219,61 +3219,65 @@ var Zt = (e) => L(e) ? Xe : Qt({
|
|
|
3219
3219
|
conflictingClassGroups: e.conflictingClassGroups,
|
|
3220
3220
|
...e.extend
|
|
3221
3221
|
}
|
|
3222
|
-
}),
|
|
3223
|
-
const
|
|
3224
|
-
return !
|
|
3225
|
-
},
|
|
3226
|
-
const
|
|
3227
|
-
function
|
|
3228
|
-
return
|
|
3222
|
+
}), or = (e, r) => {
|
|
3223
|
+
const o = fe(e);
|
|
3224
|
+
return !o || !(r?.twMerge ?? !0) ? o : ((!U.cachedTwMerge || U.didTwMergeConfigChange) && (U.didTwMergeConfigChange = !1, U.cachedTwMerge = rr(U.cachedTwMergeConfig)), U.cachedTwMerge(o) || void 0);
|
|
3225
|
+
}, sr = (...e) => (r) => or(e, r), { tv: He } = ft(sr);
|
|
3226
|
+
const Qe = nt(void 0);
|
|
3227
|
+
function Ze() {
|
|
3228
|
+
return {
|
|
3229
|
+
components: at(Qe)?.components
|
|
3230
|
+
};
|
|
3229
3231
|
}
|
|
3230
|
-
function
|
|
3231
|
-
var
|
|
3232
|
+
function et(e) {
|
|
3233
|
+
var r, o, t = "";
|
|
3232
3234
|
if (typeof e == "string" || typeof e == "number") t += e;
|
|
3233
3235
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
3234
3236
|
var n = e.length;
|
|
3235
|
-
for (
|
|
3236
|
-
} else for (
|
|
3237
|
+
for (r = 0; r < n; r++) e[r] && (o = et(e[r])) && (t && (t += " "), t += o);
|
|
3238
|
+
} else for (o in e) e[o] && (t && (t += " "), t += o);
|
|
3237
3239
|
return t;
|
|
3238
3240
|
}
|
|
3239
|
-
function
|
|
3240
|
-
for (var e,
|
|
3241
|
+
function nr() {
|
|
3242
|
+
for (var e, r, o = 0, t = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (r = et(e)) && (t && (t += " "), t += r);
|
|
3241
3243
|
return t;
|
|
3242
3244
|
}
|
|
3243
|
-
function
|
|
3244
|
-
return
|
|
3245
|
+
function tt(...e) {
|
|
3246
|
+
return Je(nr(e));
|
|
3245
3247
|
}
|
|
3246
|
-
const ar =
|
|
3247
|
-
base: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
3248
|
+
const ar = He({
|
|
3249
|
+
base: "t:inline-flex t:items-center t:justify-center t:gap-2 t:whitespace-nowrap t:rounded-md t:font-medium t:text-sm t:ring-offset-background t:transition-colors t:focus-visible:outline-none t:focus-visible:ring-2 t:focus-visible:ring-ring t:focus-visible:ring-offset-2 t:disabled:pointer-events-none t:disabled:opacity-50 t:[&_svg]:pointer-events-none t:[&_svg]:size-4 t:[&_svg]:shrink-0",
|
|
3248
3250
|
defaultVariants: {
|
|
3249
3251
|
size: "md",
|
|
3250
3252
|
variant: "default"
|
|
3251
3253
|
},
|
|
3252
3254
|
variants: {
|
|
3253
3255
|
block: {
|
|
3254
|
-
true: "w-full"
|
|
3256
|
+
true: "t:w-full"
|
|
3255
3257
|
},
|
|
3256
3258
|
size: {
|
|
3257
|
-
icon: "h-10 w-10",
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3259
|
+
"icon-lg": "t:h-10 t:w-10",
|
|
3260
|
+
"icon-md": "t:h-9 t:w-9",
|
|
3261
|
+
"icon-sm": "t:h-8 t:w-8",
|
|
3262
|
+
lg: "t:h-11 t:rounded-md t:px-8",
|
|
3263
|
+
md: "t:h-10 t:px-4 t:py-2",
|
|
3264
|
+
sm: "t:h-9 t:rounded-md t:px-3"
|
|
3261
3265
|
},
|
|
3262
3266
|
variant: {
|
|
3263
|
-
dashed: "border-2 border-input border-dashed bg-background hover:bg-accent hover:text-accent-foreground",
|
|
3264
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
3265
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
3266
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
3267
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
3268
|
-
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
3269
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80"
|
|
3267
|
+
dashed: "t:border-2 t:border-input t:border-dashed t:bg-background t:hover:bg-accent t:hover:text-accent-foreground",
|
|
3268
|
+
default: "t:bg-primary t:text-primary-foreground t:hover:bg-primary/90",
|
|
3269
|
+
destructive: "t:bg-destructive t:text-destructive-foreground t:hover:bg-destructive/90",
|
|
3270
|
+
ghost: "t:hover:bg-accent t:hover:text-accent-foreground",
|
|
3271
|
+
link: "t:text-primary t:underline-offset-4 t:hover:underline",
|
|
3272
|
+
outline: "t:border t:border-input t:bg-background t:hover:bg-accent t:hover:text-accent-foreground",
|
|
3273
|
+
secondary: "t:bg-secondary t:text-secondary-foreground t:hover:bg-secondary/80"
|
|
3270
3274
|
}
|
|
3271
3275
|
}
|
|
3272
3276
|
});
|
|
3273
|
-
function
|
|
3277
|
+
function mr(e) {
|
|
3274
3278
|
const {
|
|
3275
|
-
form:
|
|
3276
|
-
type:
|
|
3279
|
+
form: r,
|
|
3280
|
+
type: o = "button",
|
|
3277
3281
|
size: t,
|
|
3278
3282
|
variant: n,
|
|
3279
3283
|
leftSection: s,
|
|
@@ -3283,49 +3287,77 @@ function ur(e) {
|
|
|
3283
3287
|
disabled: g,
|
|
3284
3288
|
asChild: S,
|
|
3285
3289
|
onClick: A,
|
|
3286
|
-
children:
|
|
3287
|
-
} = e, C =
|
|
3288
|
-
asChild: S ??
|
|
3289
|
-
block: m ??
|
|
3290
|
-
disabled: g ??
|
|
3291
|
-
form:
|
|
3292
|
-
loading: d ??
|
|
3293
|
-
size: t ??
|
|
3294
|
-
type:
|
|
3295
|
-
variant: n ??
|
|
3296
|
-
}, I = v.asChild ?
|
|
3297
|
-
return /* @__PURE__ */
|
|
3290
|
+
children: P
|
|
3291
|
+
} = e, C = Ze(), G = C?.components?.button?.classNames, k = C?.components?.button?.defaultProps, v = {
|
|
3292
|
+
asChild: S ?? k?.asChild ?? !1,
|
|
3293
|
+
block: m ?? k?.block ?? !1,
|
|
3294
|
+
disabled: g ?? k?.disabled ?? !1,
|
|
3295
|
+
form: r ?? k?.form ?? void 0,
|
|
3296
|
+
loading: d ?? k?.loading ?? !1,
|
|
3297
|
+
size: t ?? k?.size ?? "md",
|
|
3298
|
+
type: o ?? k?.type ?? "button",
|
|
3299
|
+
variant: n ?? k?.variant ?? "default"
|
|
3300
|
+
}, I = v.asChild ? st : "button", j = v.disabled || v.loading;
|
|
3301
|
+
return /* @__PURE__ */ H(
|
|
3298
3302
|
I,
|
|
3299
3303
|
{
|
|
3300
|
-
className:
|
|
3304
|
+
className: tt(
|
|
3301
3305
|
ar({
|
|
3302
3306
|
block: v.block,
|
|
3303
3307
|
size: v.size,
|
|
3304
3308
|
variant: v.variant
|
|
3305
3309
|
}),
|
|
3306
|
-
|
|
3310
|
+
G?.root
|
|
3307
3311
|
),
|
|
3308
3312
|
disabled: j,
|
|
3309
3313
|
form: v.form,
|
|
3310
3314
|
onClick: A,
|
|
3311
3315
|
type: v.type,
|
|
3312
|
-
children: v.loading ? /* @__PURE__ */
|
|
3313
|
-
s && /* @__PURE__ */
|
|
3314
|
-
|
|
3315
|
-
a && /* @__PURE__ */
|
|
3316
|
+
children: v.loading ? /* @__PURE__ */ H("div", { className: G?.loading, children: /* @__PURE__ */ H(Ne, { className: "t:animate-spin" }) }) : /* @__PURE__ */ rt(ot, { children: [
|
|
3317
|
+
s && /* @__PURE__ */ H("div", { className: G?.leftSection, children: s }),
|
|
3318
|
+
P,
|
|
3319
|
+
a && /* @__PURE__ */ H("div", { className: G?.rightSection, children: a })
|
|
3316
3320
|
] })
|
|
3317
3321
|
}
|
|
3318
3322
|
);
|
|
3319
3323
|
}
|
|
3320
|
-
|
|
3324
|
+
const ir = He({
|
|
3325
|
+
base: "t:animate-spin",
|
|
3326
|
+
defaultVariants: {
|
|
3327
|
+
size: "md"
|
|
3328
|
+
},
|
|
3329
|
+
variants: {
|
|
3330
|
+
size: {
|
|
3331
|
+
lg: "t:size-8",
|
|
3332
|
+
md: "t:size-6",
|
|
3333
|
+
sm: "t:size-4"
|
|
3334
|
+
}
|
|
3335
|
+
}
|
|
3336
|
+
});
|
|
3337
|
+
function fr({ size: e }) {
|
|
3338
|
+
const r = Ze(), o = r?.components?.loader?.classNames, t = r?.components?.loader?.defaultProps, n = {
|
|
3339
|
+
size: e ?? t?.size ?? "md"
|
|
3340
|
+
};
|
|
3341
|
+
return /* @__PURE__ */ H(
|
|
3342
|
+
Ne,
|
|
3343
|
+
{
|
|
3344
|
+
className: tt(
|
|
3345
|
+
ir({
|
|
3346
|
+
size: n.size
|
|
3347
|
+
}),
|
|
3348
|
+
o?.root
|
|
3349
|
+
)
|
|
3350
|
+
}
|
|
3351
|
+
);
|
|
3352
|
+
}
|
|
3353
|
+
function pr({
|
|
3321
3354
|
children: e,
|
|
3322
|
-
...
|
|
3355
|
+
...r
|
|
3323
3356
|
}) {
|
|
3324
|
-
return /* @__PURE__ */
|
|
3357
|
+
return /* @__PURE__ */ H(Qe.Provider, { value: r, children: e });
|
|
3325
3358
|
}
|
|
3326
3359
|
export {
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
or as useTuryStack
|
|
3360
|
+
mr as Button,
|
|
3361
|
+
fr as Loader,
|
|
3362
|
+
pr as TuryStackProvider
|
|
3331
3363
|
};
|