quickit-ui 0.1.9 → 0.1.10
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/quickit-ui.css +1 -1
- package/dist/quickit-ui.d.ts +3 -0
- package/dist/quickit-ui.js +1107 -1061
- package/package.json +1 -1
package/dist/quickit-ui.js
CHANGED
|
@@ -108,41 +108,41 @@ var T = (e, t) => {
|
|
|
108
108
|
let i = e.length;
|
|
109
109
|
for (let a = 0; a < i; a++) {
|
|
110
110
|
let i = e[a];
|
|
111
|
-
|
|
111
|
+
ee(i, t, n, r);
|
|
112
112
|
}
|
|
113
|
-
},
|
|
113
|
+
}, ee = (e, t, n, r) => {
|
|
114
114
|
if (typeof e == "string") {
|
|
115
|
-
|
|
115
|
+
L(e, t, n);
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
118
|
if (typeof e == "function") {
|
|
119
119
|
te(e, t, n, r);
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
let r = e === "" ? t :
|
|
122
|
+
R(e, t, n, r);
|
|
123
|
+
}, L = (e, t, n) => {
|
|
124
|
+
let r = e === "" ? t : z(t, e);
|
|
125
125
|
r.classGroupId = n;
|
|
126
126
|
}, te = (e, t, n, r) => {
|
|
127
|
-
if (
|
|
127
|
+
if (B(e)) {
|
|
128
128
|
I(e(r), t, n, r);
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
t.validators === null && (t.validators = []), t.validators.push(E(n, e));
|
|
132
|
-
},
|
|
132
|
+
}, R = (e, t, n, r) => {
|
|
133
133
|
let i = Object.entries(e), a = i.length;
|
|
134
134
|
for (let e = 0; e < a; e++) {
|
|
135
135
|
let [a, o] = i[e];
|
|
136
|
-
I(o,
|
|
136
|
+
I(o, z(t, a), n, r);
|
|
137
137
|
}
|
|
138
|
-
},
|
|
138
|
+
}, z = (e, t) => {
|
|
139
139
|
let n = e, r = t.split(O), i = r.length;
|
|
140
140
|
for (let e = 0; e < i; e++) {
|
|
141
141
|
let t = r[e], i = n.nextPart.get(t);
|
|
142
142
|
i || (i = D(), n.nextPart.set(t, i)), n = i;
|
|
143
143
|
}
|
|
144
144
|
return n;
|
|
145
|
-
},
|
|
145
|
+
}, B = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ne = (e) => {
|
|
146
146
|
if (e < 1) return {
|
|
147
147
|
get: () => void 0,
|
|
148
148
|
set: () => {}
|
|
@@ -160,13 +160,13 @@ var T = (e, t) => {
|
|
|
160
160
|
e in n ? n[e] = t : i(e, t);
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
|
-
}, re = "!", V = ":",
|
|
163
|
+
}, re = "!", V = ":", H = [], ie = (e, t, n, r, i) => ({
|
|
164
164
|
modifiers: e,
|
|
165
165
|
hasImportantModifier: t,
|
|
166
166
|
baseClassName: n,
|
|
167
167
|
maybePostfixModifierPosition: r,
|
|
168
168
|
isExternal: i
|
|
169
|
-
}),
|
|
169
|
+
}), ae = (e) => {
|
|
170
170
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
171
171
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
172
172
|
for (let s = 0; s < o; s++) {
|
|
@@ -186,11 +186,11 @@ var T = (e, t) => {
|
|
|
186
186
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
187
187
|
s.endsWith(re) ? (c = s.slice(0, -1), l = !0) : s.startsWith(re) && (c = s.slice(1), l = !0);
|
|
188
188
|
let u = a && a > i ? a - i : void 0;
|
|
189
|
-
return
|
|
189
|
+
return ie(t, l, c, u);
|
|
190
190
|
};
|
|
191
191
|
if (t) {
|
|
192
192
|
let e = t + V, n = r;
|
|
193
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) :
|
|
193
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : ie(H, !1, t, void 0, !0);
|
|
194
194
|
}
|
|
195
195
|
if (n) {
|
|
196
196
|
let e = r;
|
|
@@ -200,7 +200,7 @@ var T = (e, t) => {
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
return r;
|
|
203
|
-
},
|
|
203
|
+
}, oe = (e) => {
|
|
204
204
|
let t = /* @__PURE__ */ new Map();
|
|
205
205
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
206
206
|
t.set(e, 1e6 + n);
|
|
@@ -212,13 +212,13 @@ var T = (e, t) => {
|
|
|
212
212
|
}
|
|
213
213
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
214
214
|
};
|
|
215
|
-
},
|
|
216
|
-
cache:
|
|
217
|
-
parseClassName:
|
|
218
|
-
sortModifiers:
|
|
215
|
+
}, se = (e) => ({
|
|
216
|
+
cache: ne(e.cacheSize),
|
|
217
|
+
parseClassName: ae(e),
|
|
218
|
+
sortModifiers: oe(e),
|
|
219
219
|
...j(e)
|
|
220
|
-
}),
|
|
221
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a } = t, o = [], s = e.trim().split(
|
|
220
|
+
}), ce = /\s+/, le = (e, t) => {
|
|
221
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a } = t, o = [], s = e.trim().split(ce), c = "";
|
|
222
222
|
for (let e = s.length - 1; e >= 0; --e) {
|
|
223
223
|
let t = s[e], { isExternal: l, modifiers: u, hasImportantModifier: d, baseClassName: f, maybePostfixModifierPosition: p } = n(t);
|
|
224
224
|
if (l) {
|
|
@@ -248,34 +248,34 @@ var T = (e, t) => {
|
|
|
248
248
|
c = t + (c.length > 0 ? " " + c : c);
|
|
249
249
|
}
|
|
250
250
|
return c;
|
|
251
|
-
},
|
|
251
|
+
}, ue = (...e) => {
|
|
252
252
|
let t = 0, n, r, i = "";
|
|
253
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
253
|
+
for (; t < e.length;) (n = e[t++]) && (r = de(n)) && (i && (i += " "), i += r);
|
|
254
254
|
return i;
|
|
255
|
-
},
|
|
255
|
+
}, de = (e) => {
|
|
256
256
|
if (typeof e == "string") return e;
|
|
257
257
|
let t, n = "";
|
|
258
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
258
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = de(e[r])) && (n && (n += " "), n += t);
|
|
259
259
|
return n;
|
|
260
|
-
},
|
|
261
|
-
let n, r, i, a, o = (o) => (n =
|
|
260
|
+
}, fe = (e, ...t) => {
|
|
261
|
+
let n, r, i, a, o = (o) => (n = se(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
262
262
|
let t = r(e);
|
|
263
263
|
if (t) return t;
|
|
264
|
-
let a =
|
|
264
|
+
let a = le(e, n);
|
|
265
265
|
return i(e, a), a;
|
|
266
266
|
};
|
|
267
|
-
return a = o, (...e) => a(
|
|
268
|
-
},
|
|
269
|
-
let t = (t) => t[e] ||
|
|
267
|
+
return a = o, (...e) => a(ue(...e));
|
|
268
|
+
}, pe = [], U = (e) => {
|
|
269
|
+
let t = (t) => t[e] || pe;
|
|
270
270
|
return t.isThemeGetter = !0, t;
|
|
271
|
-
},
|
|
272
|
-
let r =
|
|
271
|
+
}, me = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, he = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ge = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, _e = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ve = /\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$/, ye = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, be = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, xe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Se = (e) => ge.test(e), W = (e) => !!e && !Number.isNaN(Number(e)), Ce = (e) => !!e && Number.isInteger(Number(e)), we = (e) => e.endsWith("%") && W(e.slice(0, -1)), Te = (e) => _e.test(e), Ee = () => !0, De = (e) => ve.test(e) && !ye.test(e), Oe = () => !1, ke = (e) => be.test(e), Ae = (e) => xe.test(e), je = (e) => !G(e) && !K(e), Me = (e) => qe(e, Ze, Oe), G = (e) => me.test(e), Ne = (e) => qe(e, Qe, De), Pe = (e) => qe(e, $e, W), Fe = (e) => qe(e, tt, Ee), Ie = (e) => qe(e, et, Oe), Le = (e) => qe(e, Ye, Oe), Re = (e) => qe(e, Xe, Ae), ze = (e) => qe(e, nt, ke), K = (e) => he.test(e), Be = (e) => Je(e, Qe), Ve = (e) => Je(e, et), He = (e) => Je(e, Ye), Ue = (e) => Je(e, Ze), We = (e) => Je(e, Xe), Ge = (e) => Je(e, nt, !0), Ke = (e) => Je(e, tt, !0), qe = (e, t, n) => {
|
|
272
|
+
let r = me.exec(e);
|
|
273
273
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
274
|
-
},
|
|
275
|
-
let r =
|
|
274
|
+
}, Je = (e, t, n = !1) => {
|
|
275
|
+
let r = he.exec(e);
|
|
276
276
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
277
|
-
},
|
|
278
|
-
let e =
|
|
277
|
+
}, Ye = (e) => e === "position" || e === "percentage", Xe = (e) => e === "image" || e === "url", Ze = (e) => e === "length" || e === "size" || e === "bg-size", Qe = (e) => e === "length", $e = (e) => e === "number", et = (e) => e === "family-name", tt = (e) => e === "number" || e === "weight", nt = (e) => e === "shadow", rt = /* @__PURE__ */ fe(() => {
|
|
278
|
+
let e = U("color"), t = U("font"), n = U("text"), r = U("font-weight"), i = U("tracking"), a = U("leading"), o = U("breakpoint"), s = U("container"), c = U("spacing"), l = U("radius"), u = U("shadow"), d = U("inset-shadow"), f = U("text-shadow"), p = U("drop-shadow"), m = U("blur"), h = U("perspective"), g = U("aspect"), _ = U("ease"), v = U("animate"), y = () => [
|
|
279
279
|
"auto",
|
|
280
280
|
"avoid",
|
|
281
281
|
"all",
|
|
@@ -300,8 +300,8 @@ var T = (e, t) => {
|
|
|
300
300
|
"left-bottom"
|
|
301
301
|
], x = () => [
|
|
302
302
|
...b(),
|
|
303
|
-
|
|
304
|
-
|
|
303
|
+
K,
|
|
304
|
+
G
|
|
305
305
|
], S = () => [
|
|
306
306
|
"auto",
|
|
307
307
|
"hidden",
|
|
@@ -313,43 +313,43 @@ var T = (e, t) => {
|
|
|
313
313
|
"contain",
|
|
314
314
|
"none"
|
|
315
315
|
], w = () => [
|
|
316
|
+
K,
|
|
316
317
|
G,
|
|
317
|
-
W,
|
|
318
318
|
c
|
|
319
319
|
], T = () => [
|
|
320
|
-
|
|
320
|
+
Se,
|
|
321
321
|
"full",
|
|
322
322
|
"auto",
|
|
323
323
|
...w()
|
|
324
324
|
], E = () => [
|
|
325
|
-
|
|
325
|
+
Ce,
|
|
326
326
|
"none",
|
|
327
327
|
"subgrid",
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
K,
|
|
329
|
+
G
|
|
330
330
|
], D = () => [
|
|
331
331
|
"auto",
|
|
332
332
|
{ span: [
|
|
333
333
|
"full",
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
334
|
+
Ce,
|
|
335
|
+
K,
|
|
336
|
+
G
|
|
337
337
|
] },
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
338
|
+
Ce,
|
|
339
|
+
K,
|
|
340
|
+
G
|
|
341
341
|
], O = () => [
|
|
342
|
-
|
|
342
|
+
Ce,
|
|
343
343
|
"auto",
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
K,
|
|
345
|
+
G
|
|
346
346
|
], k = () => [
|
|
347
347
|
"auto",
|
|
348
348
|
"min",
|
|
349
349
|
"max",
|
|
350
350
|
"fr",
|
|
351
|
-
|
|
352
|
-
|
|
351
|
+
K,
|
|
352
|
+
G
|
|
353
353
|
], A = () => [
|
|
354
354
|
"start",
|
|
355
355
|
"end",
|
|
@@ -369,7 +369,7 @@ var T = (e, t) => {
|
|
|
369
369
|
"center-safe",
|
|
370
370
|
"end-safe"
|
|
371
371
|
], M = () => ["auto", ...w()], N = () => [
|
|
372
|
-
|
|
372
|
+
Se,
|
|
373
373
|
"auto",
|
|
374
374
|
"full",
|
|
375
375
|
"dvw",
|
|
@@ -383,7 +383,7 @@ var T = (e, t) => {
|
|
|
383
383
|
"fit",
|
|
384
384
|
...w()
|
|
385
385
|
], P = () => [
|
|
386
|
-
|
|
386
|
+
Se,
|
|
387
387
|
"screen",
|
|
388
388
|
"full",
|
|
389
389
|
"dvw",
|
|
@@ -394,7 +394,7 @@ var T = (e, t) => {
|
|
|
394
394
|
"fit",
|
|
395
395
|
...w()
|
|
396
396
|
], F = () => [
|
|
397
|
-
|
|
397
|
+
Se,
|
|
398
398
|
"screen",
|
|
399
399
|
"full",
|
|
400
400
|
"lh",
|
|
@@ -407,14 +407,14 @@ var T = (e, t) => {
|
|
|
407
407
|
...w()
|
|
408
408
|
], I = () => [
|
|
409
409
|
e,
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
],
|
|
410
|
+
K,
|
|
411
|
+
G
|
|
412
|
+
], ee = () => [
|
|
413
413
|
...b(),
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
{ position: [
|
|
417
|
-
],
|
|
414
|
+
He,
|
|
415
|
+
Le,
|
|
416
|
+
{ position: [K, G] }
|
|
417
|
+
], L = () => ["no-repeat", { repeat: [
|
|
418
418
|
"",
|
|
419
419
|
"x",
|
|
420
420
|
"y",
|
|
@@ -424,26 +424,26 @@ var T = (e, t) => {
|
|
|
424
424
|
"auto",
|
|
425
425
|
"cover",
|
|
426
426
|
"contain",
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
{ size: [
|
|
430
|
-
], ne = () => [
|
|
431
|
-
Te,
|
|
432
|
-
Ve,
|
|
433
|
-
Pe
|
|
427
|
+
Ue,
|
|
428
|
+
Me,
|
|
429
|
+
{ size: [K, G] }
|
|
434
430
|
], R = () => [
|
|
431
|
+
we,
|
|
432
|
+
Be,
|
|
433
|
+
Ne
|
|
434
|
+
], z = () => [
|
|
435
435
|
"",
|
|
436
436
|
"none",
|
|
437
437
|
"full",
|
|
438
438
|
l,
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
], z = () => [
|
|
442
|
-
"",
|
|
443
|
-
U,
|
|
444
|
-
Ve,
|
|
445
|
-
Pe
|
|
439
|
+
K,
|
|
440
|
+
G
|
|
446
441
|
], B = () => [
|
|
442
|
+
"",
|
|
443
|
+
W,
|
|
444
|
+
Be,
|
|
445
|
+
Ne
|
|
446
|
+
], ne = () => [
|
|
447
447
|
"solid",
|
|
448
448
|
"dashed",
|
|
449
449
|
"dotted",
|
|
@@ -466,32 +466,32 @@ var T = (e, t) => {
|
|
|
466
466
|
"color",
|
|
467
467
|
"luminosity"
|
|
468
468
|
], V = () => [
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
],
|
|
469
|
+
W,
|
|
470
|
+
we,
|
|
471
|
+
He,
|
|
472
|
+
Le
|
|
473
|
+
], H = () => [
|
|
474
474
|
"",
|
|
475
475
|
"none",
|
|
476
476
|
m,
|
|
477
|
-
|
|
478
|
-
|
|
477
|
+
K,
|
|
478
|
+
G
|
|
479
|
+
], ie = () => [
|
|
480
|
+
"none",
|
|
481
|
+
W,
|
|
482
|
+
K,
|
|
483
|
+
G
|
|
479
484
|
], ae = () => [
|
|
480
485
|
"none",
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
486
|
+
W,
|
|
487
|
+
K,
|
|
488
|
+
G
|
|
484
489
|
], oe = () => [
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
G
|
|
488
|
-
W
|
|
490
|
+
W,
|
|
491
|
+
K,
|
|
492
|
+
G
|
|
489
493
|
], se = () => [
|
|
490
|
-
|
|
491
|
-
G,
|
|
492
|
-
W
|
|
493
|
-
], ce = () => [
|
|
494
|
-
Ce,
|
|
494
|
+
Se,
|
|
495
495
|
"full",
|
|
496
496
|
...w()
|
|
497
497
|
];
|
|
@@ -505,17 +505,17 @@ var T = (e, t) => {
|
|
|
505
505
|
"bounce"
|
|
506
506
|
],
|
|
507
507
|
aspect: ["video"],
|
|
508
|
-
blur: [
|
|
509
|
-
breakpoint: [
|
|
510
|
-
color: [
|
|
511
|
-
container: [
|
|
512
|
-
"drop-shadow": [
|
|
508
|
+
blur: [Te],
|
|
509
|
+
breakpoint: [Te],
|
|
510
|
+
color: [Ee],
|
|
511
|
+
container: [Te],
|
|
512
|
+
"drop-shadow": [Te],
|
|
513
513
|
ease: [
|
|
514
514
|
"in",
|
|
515
515
|
"out",
|
|
516
516
|
"in-out"
|
|
517
517
|
],
|
|
518
|
-
font: [
|
|
518
|
+
font: [je],
|
|
519
519
|
"font-weight": [
|
|
520
520
|
"thin",
|
|
521
521
|
"extralight",
|
|
@@ -527,7 +527,7 @@ var T = (e, t) => {
|
|
|
527
527
|
"extrabold",
|
|
528
528
|
"black"
|
|
529
529
|
],
|
|
530
|
-
"inset-shadow": [
|
|
530
|
+
"inset-shadow": [Te],
|
|
531
531
|
leading: [
|
|
532
532
|
"none",
|
|
533
533
|
"tight",
|
|
@@ -544,11 +544,11 @@ var T = (e, t) => {
|
|
|
544
544
|
"distant",
|
|
545
545
|
"none"
|
|
546
546
|
],
|
|
547
|
-
radius: [
|
|
548
|
-
shadow: [
|
|
549
|
-
spacing: ["px",
|
|
550
|
-
text: [
|
|
551
|
-
"text-shadow": [
|
|
547
|
+
radius: [Te],
|
|
548
|
+
shadow: [Te],
|
|
549
|
+
spacing: ["px", W],
|
|
550
|
+
text: [Te],
|
|
551
|
+
"text-shadow": [Te],
|
|
552
552
|
tracking: [
|
|
553
553
|
"tighter",
|
|
554
554
|
"tight",
|
|
@@ -562,16 +562,16 @@ var T = (e, t) => {
|
|
|
562
562
|
aspect: [{ aspect: [
|
|
563
563
|
"auto",
|
|
564
564
|
"square",
|
|
565
|
-
|
|
566
|
-
W,
|
|
565
|
+
Se,
|
|
567
566
|
G,
|
|
567
|
+
K,
|
|
568
568
|
g
|
|
569
569
|
] }],
|
|
570
570
|
container: ["container"],
|
|
571
571
|
columns: [{ columns: [
|
|
572
|
-
U,
|
|
573
572
|
W,
|
|
574
573
|
G,
|
|
574
|
+
K,
|
|
575
575
|
s
|
|
576
576
|
] }],
|
|
577
577
|
"break-after": [{ "break-after": y() }],
|
|
@@ -668,13 +668,13 @@ var T = (e, t) => {
|
|
|
668
668
|
"collapse"
|
|
669
669
|
],
|
|
670
670
|
z: [{ z: [
|
|
671
|
-
|
|
671
|
+
Ce,
|
|
672
672
|
"auto",
|
|
673
|
-
|
|
674
|
-
|
|
673
|
+
K,
|
|
674
|
+
G
|
|
675
675
|
] }],
|
|
676
676
|
basis: [{ basis: [
|
|
677
|
-
|
|
677
|
+
Se,
|
|
678
678
|
"full",
|
|
679
679
|
"auto",
|
|
680
680
|
s,
|
|
@@ -692,32 +692,32 @@ var T = (e, t) => {
|
|
|
692
692
|
"wrap-reverse"
|
|
693
693
|
] }],
|
|
694
694
|
flex: [{ flex: [
|
|
695
|
-
|
|
696
|
-
|
|
695
|
+
W,
|
|
696
|
+
Se,
|
|
697
697
|
"auto",
|
|
698
698
|
"initial",
|
|
699
699
|
"none",
|
|
700
|
-
|
|
700
|
+
G
|
|
701
701
|
] }],
|
|
702
702
|
grow: [{ grow: [
|
|
703
703
|
"",
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
704
|
+
W,
|
|
705
|
+
K,
|
|
706
|
+
G
|
|
707
707
|
] }],
|
|
708
708
|
shrink: [{ shrink: [
|
|
709
709
|
"",
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
710
|
+
W,
|
|
711
|
+
K,
|
|
712
|
+
G
|
|
713
713
|
] }],
|
|
714
714
|
order: [{ order: [
|
|
715
|
-
|
|
715
|
+
Ce,
|
|
716
716
|
"first",
|
|
717
717
|
"last",
|
|
718
718
|
"none",
|
|
719
|
-
|
|
720
|
-
|
|
719
|
+
K,
|
|
720
|
+
G
|
|
721
721
|
] }],
|
|
722
722
|
"grid-cols": [{ "grid-cols": E() }],
|
|
723
723
|
"col-start-end": [{ col: D() }],
|
|
@@ -823,15 +823,15 @@ var T = (e, t) => {
|
|
|
823
823
|
"font-size": [{ text: [
|
|
824
824
|
"base",
|
|
825
825
|
n,
|
|
826
|
-
|
|
827
|
-
|
|
826
|
+
Be,
|
|
827
|
+
Ne
|
|
828
828
|
] }],
|
|
829
829
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
830
830
|
"font-style": ["italic", "not-italic"],
|
|
831
831
|
"font-weight": [{ font: [
|
|
832
832
|
r,
|
|
833
|
-
|
|
834
|
-
|
|
833
|
+
Ke,
|
|
834
|
+
Fe
|
|
835
835
|
] }],
|
|
836
836
|
"font-stretch": [{ "font-stretch": [
|
|
837
837
|
"ultra-condensed",
|
|
@@ -843,15 +843,15 @@ var T = (e, t) => {
|
|
|
843
843
|
"expanded",
|
|
844
844
|
"extra-expanded",
|
|
845
845
|
"ultra-expanded",
|
|
846
|
-
|
|
847
|
-
|
|
846
|
+
we,
|
|
847
|
+
G
|
|
848
848
|
] }],
|
|
849
849
|
"font-family": [{ font: [
|
|
850
|
-
|
|
851
|
-
|
|
850
|
+
Ve,
|
|
851
|
+
Ie,
|
|
852
852
|
t
|
|
853
853
|
] }],
|
|
854
|
-
"font-features": [{ "font-features": [
|
|
854
|
+
"font-features": [{ "font-features": [G] }],
|
|
855
855
|
"fvn-normal": ["normal-nums"],
|
|
856
856
|
"fvn-ordinal": ["ordinal"],
|
|
857
857
|
"fvn-slashed-zero": ["slashed-zero"],
|
|
@@ -860,28 +860,28 @@ var T = (e, t) => {
|
|
|
860
860
|
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
861
861
|
tracking: [{ tracking: [
|
|
862
862
|
i,
|
|
863
|
-
|
|
864
|
-
|
|
863
|
+
K,
|
|
864
|
+
G
|
|
865
865
|
] }],
|
|
866
866
|
"line-clamp": [{ "line-clamp": [
|
|
867
|
-
|
|
867
|
+
W,
|
|
868
868
|
"none",
|
|
869
|
-
|
|
870
|
-
|
|
869
|
+
K,
|
|
870
|
+
Pe
|
|
871
871
|
] }],
|
|
872
872
|
leading: [{ leading: [a, ...w()] }],
|
|
873
873
|
"list-image": [{ "list-image": [
|
|
874
874
|
"none",
|
|
875
|
-
|
|
876
|
-
|
|
875
|
+
K,
|
|
876
|
+
G
|
|
877
877
|
] }],
|
|
878
878
|
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
879
879
|
"list-style-type": [{ list: [
|
|
880
880
|
"disc",
|
|
881
881
|
"decimal",
|
|
882
882
|
"none",
|
|
883
|
-
|
|
884
|
-
|
|
883
|
+
K,
|
|
884
|
+
G
|
|
885
885
|
] }],
|
|
886
886
|
"text-alignment": [{ text: [
|
|
887
887
|
"left",
|
|
@@ -899,20 +899,20 @@ var T = (e, t) => {
|
|
|
899
899
|
"line-through",
|
|
900
900
|
"no-underline"
|
|
901
901
|
],
|
|
902
|
-
"text-decoration-style": [{ decoration: [...
|
|
902
|
+
"text-decoration-style": [{ decoration: [...ne(), "wavy"] }],
|
|
903
903
|
"text-decoration-thickness": [{ decoration: [
|
|
904
|
-
|
|
904
|
+
W,
|
|
905
905
|
"from-font",
|
|
906
906
|
"auto",
|
|
907
|
-
|
|
908
|
-
|
|
907
|
+
K,
|
|
908
|
+
Ne
|
|
909
909
|
] }],
|
|
910
910
|
"text-decoration-color": [{ decoration: I() }],
|
|
911
911
|
"underline-offset": [{ "underline-offset": [
|
|
912
|
-
|
|
912
|
+
W,
|
|
913
913
|
"auto",
|
|
914
|
-
|
|
915
|
-
|
|
914
|
+
K,
|
|
915
|
+
G
|
|
916
916
|
] }],
|
|
917
917
|
"text-transform": [
|
|
918
918
|
"uppercase",
|
|
@@ -941,8 +941,8 @@ var T = (e, t) => {
|
|
|
941
941
|
"text-bottom",
|
|
942
942
|
"sub",
|
|
943
943
|
"super",
|
|
944
|
-
|
|
945
|
-
|
|
944
|
+
K,
|
|
945
|
+
G
|
|
946
946
|
] }],
|
|
947
947
|
whitespace: [{ whitespace: [
|
|
948
948
|
"normal",
|
|
@@ -970,8 +970,8 @@ var T = (e, t) => {
|
|
|
970
970
|
] }],
|
|
971
971
|
content: [{ content: [
|
|
972
972
|
"none",
|
|
973
|
-
|
|
974
|
-
|
|
973
|
+
K,
|
|
974
|
+
G
|
|
975
975
|
] }],
|
|
976
976
|
"bg-attachment": [{ bg: [
|
|
977
977
|
"fixed",
|
|
@@ -989,8 +989,8 @@ var T = (e, t) => {
|
|
|
989
989
|
"padding",
|
|
990
990
|
"content"
|
|
991
991
|
] }],
|
|
992
|
-
"bg-position": [{ bg:
|
|
993
|
-
"bg-repeat": [{ bg:
|
|
992
|
+
"bg-position": [{ bg: ee() }],
|
|
993
|
+
"bg-repeat": [{ bg: L() }],
|
|
994
994
|
"bg-size": [{ bg: te() }],
|
|
995
995
|
"bg-image": [{ bg: [
|
|
996
996
|
"none",
|
|
@@ -1006,68 +1006,68 @@ var T = (e, t) => {
|
|
|
1006
1006
|
"l",
|
|
1007
1007
|
"tl"
|
|
1008
1008
|
] },
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1009
|
+
Ce,
|
|
1010
|
+
K,
|
|
1011
|
+
G
|
|
1012
1012
|
],
|
|
1013
1013
|
radial: [
|
|
1014
1014
|
"",
|
|
1015
|
-
|
|
1016
|
-
|
|
1015
|
+
K,
|
|
1016
|
+
G
|
|
1017
1017
|
],
|
|
1018
1018
|
conic: [
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1019
|
+
Ce,
|
|
1020
|
+
K,
|
|
1021
|
+
G
|
|
1022
1022
|
]
|
|
1023
1023
|
},
|
|
1024
|
-
|
|
1025
|
-
|
|
1024
|
+
We,
|
|
1025
|
+
Re
|
|
1026
1026
|
] }],
|
|
1027
1027
|
"bg-color": [{ bg: I() }],
|
|
1028
|
-
"gradient-from-pos": [{ from:
|
|
1029
|
-
"gradient-via-pos": [{ via:
|
|
1030
|
-
"gradient-to-pos": [{ to:
|
|
1028
|
+
"gradient-from-pos": [{ from: R() }],
|
|
1029
|
+
"gradient-via-pos": [{ via: R() }],
|
|
1030
|
+
"gradient-to-pos": [{ to: R() }],
|
|
1031
1031
|
"gradient-from": [{ from: I() }],
|
|
1032
1032
|
"gradient-via": [{ via: I() }],
|
|
1033
1033
|
"gradient-to": [{ to: I() }],
|
|
1034
|
-
rounded: [{ rounded:
|
|
1035
|
-
"rounded-s": [{ "rounded-s":
|
|
1036
|
-
"rounded-e": [{ "rounded-e":
|
|
1037
|
-
"rounded-t": [{ "rounded-t":
|
|
1038
|
-
"rounded-r": [{ "rounded-r":
|
|
1039
|
-
"rounded-b": [{ "rounded-b":
|
|
1040
|
-
"rounded-l": [{ "rounded-l":
|
|
1041
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1042
|
-
"rounded-se": [{ "rounded-se":
|
|
1043
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1044
|
-
"rounded-es": [{ "rounded-es":
|
|
1045
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1046
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1047
|
-
"rounded-br": [{ "rounded-br":
|
|
1048
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1049
|
-
"border-w": [{ border:
|
|
1050
|
-
"border-w-x": [{ "border-x":
|
|
1051
|
-
"border-w-y": [{ "border-y":
|
|
1052
|
-
"border-w-s": [{ "border-s":
|
|
1053
|
-
"border-w-e": [{ "border-e":
|
|
1054
|
-
"border-w-bs": [{ "border-bs":
|
|
1055
|
-
"border-w-be": [{ "border-be":
|
|
1056
|
-
"border-w-t": [{ "border-t":
|
|
1057
|
-
"border-w-r": [{ "border-r":
|
|
1058
|
-
"border-w-b": [{ "border-b":
|
|
1059
|
-
"border-w-l": [{ "border-l":
|
|
1060
|
-
"divide-x": [{ "divide-x":
|
|
1034
|
+
rounded: [{ rounded: z() }],
|
|
1035
|
+
"rounded-s": [{ "rounded-s": z() }],
|
|
1036
|
+
"rounded-e": [{ "rounded-e": z() }],
|
|
1037
|
+
"rounded-t": [{ "rounded-t": z() }],
|
|
1038
|
+
"rounded-r": [{ "rounded-r": z() }],
|
|
1039
|
+
"rounded-b": [{ "rounded-b": z() }],
|
|
1040
|
+
"rounded-l": [{ "rounded-l": z() }],
|
|
1041
|
+
"rounded-ss": [{ "rounded-ss": z() }],
|
|
1042
|
+
"rounded-se": [{ "rounded-se": z() }],
|
|
1043
|
+
"rounded-ee": [{ "rounded-ee": z() }],
|
|
1044
|
+
"rounded-es": [{ "rounded-es": z() }],
|
|
1045
|
+
"rounded-tl": [{ "rounded-tl": z() }],
|
|
1046
|
+
"rounded-tr": [{ "rounded-tr": z() }],
|
|
1047
|
+
"rounded-br": [{ "rounded-br": z() }],
|
|
1048
|
+
"rounded-bl": [{ "rounded-bl": z() }],
|
|
1049
|
+
"border-w": [{ border: B() }],
|
|
1050
|
+
"border-w-x": [{ "border-x": B() }],
|
|
1051
|
+
"border-w-y": [{ "border-y": B() }],
|
|
1052
|
+
"border-w-s": [{ "border-s": B() }],
|
|
1053
|
+
"border-w-e": [{ "border-e": B() }],
|
|
1054
|
+
"border-w-bs": [{ "border-bs": B() }],
|
|
1055
|
+
"border-w-be": [{ "border-be": B() }],
|
|
1056
|
+
"border-w-t": [{ "border-t": B() }],
|
|
1057
|
+
"border-w-r": [{ "border-r": B() }],
|
|
1058
|
+
"border-w-b": [{ "border-b": B() }],
|
|
1059
|
+
"border-w-l": [{ "border-l": B() }],
|
|
1060
|
+
"divide-x": [{ "divide-x": B() }],
|
|
1061
1061
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
1062
|
-
"divide-y": [{ "divide-y":
|
|
1062
|
+
"divide-y": [{ "divide-y": B() }],
|
|
1063
1063
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1064
1064
|
"border-style": [{ border: [
|
|
1065
|
-
...
|
|
1065
|
+
...ne(),
|
|
1066
1066
|
"hidden",
|
|
1067
1067
|
"none"
|
|
1068
1068
|
] }],
|
|
1069
1069
|
"divide-style": [{ divide: [
|
|
1070
|
-
...
|
|
1070
|
+
...ne(),
|
|
1071
1071
|
"hidden",
|
|
1072
1072
|
"none"
|
|
1073
1073
|
] }],
|
|
@@ -1084,55 +1084,55 @@ var T = (e, t) => {
|
|
|
1084
1084
|
"border-color-l": [{ "border-l": I() }],
|
|
1085
1085
|
"divide-color": [{ divide: I() }],
|
|
1086
1086
|
"outline-style": [{ outline: [
|
|
1087
|
-
...
|
|
1087
|
+
...ne(),
|
|
1088
1088
|
"none",
|
|
1089
1089
|
"hidden"
|
|
1090
1090
|
] }],
|
|
1091
1091
|
"outline-offset": [{ "outline-offset": [
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1092
|
+
W,
|
|
1093
|
+
K,
|
|
1094
|
+
G
|
|
1095
1095
|
] }],
|
|
1096
1096
|
"outline-w": [{ outline: [
|
|
1097
1097
|
"",
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1098
|
+
W,
|
|
1099
|
+
Be,
|
|
1100
|
+
Ne
|
|
1101
1101
|
] }],
|
|
1102
1102
|
"outline-color": [{ outline: I() }],
|
|
1103
1103
|
shadow: [{ shadow: [
|
|
1104
1104
|
"",
|
|
1105
1105
|
"none",
|
|
1106
1106
|
u,
|
|
1107
|
-
|
|
1108
|
-
|
|
1107
|
+
Ge,
|
|
1108
|
+
ze
|
|
1109
1109
|
] }],
|
|
1110
1110
|
"shadow-color": [{ shadow: I() }],
|
|
1111
1111
|
"inset-shadow": [{ "inset-shadow": [
|
|
1112
1112
|
"none",
|
|
1113
1113
|
d,
|
|
1114
|
-
|
|
1115
|
-
|
|
1114
|
+
Ge,
|
|
1115
|
+
ze
|
|
1116
1116
|
] }],
|
|
1117
1117
|
"inset-shadow-color": [{ "inset-shadow": I() }],
|
|
1118
|
-
"ring-w": [{ ring:
|
|
1118
|
+
"ring-w": [{ ring: B() }],
|
|
1119
1119
|
"ring-w-inset": ["ring-inset"],
|
|
1120
1120
|
"ring-color": [{ ring: I() }],
|
|
1121
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1121
|
+
"ring-offset-w": [{ "ring-offset": [W, Ne] }],
|
|
1122
1122
|
"ring-offset-color": [{ "ring-offset": I() }],
|
|
1123
|
-
"inset-ring-w": [{ "inset-ring":
|
|
1123
|
+
"inset-ring-w": [{ "inset-ring": B() }],
|
|
1124
1124
|
"inset-ring-color": [{ "inset-ring": I() }],
|
|
1125
1125
|
"text-shadow": [{ "text-shadow": [
|
|
1126
1126
|
"none",
|
|
1127
1127
|
f,
|
|
1128
|
-
|
|
1129
|
-
|
|
1128
|
+
Ge,
|
|
1129
|
+
ze
|
|
1130
1130
|
] }],
|
|
1131
1131
|
"text-shadow-color": [{ "text-shadow": I() }],
|
|
1132
1132
|
opacity: [{ opacity: [
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1133
|
+
W,
|
|
1134
|
+
K,
|
|
1135
|
+
G
|
|
1136
1136
|
] }],
|
|
1137
1137
|
"mix-blend": [{ "mix-blend": [
|
|
1138
1138
|
...re(),
|
|
@@ -1154,7 +1154,7 @@ var T = (e, t) => {
|
|
|
1154
1154
|
"intersect",
|
|
1155
1155
|
"exclude"
|
|
1156
1156
|
] }],
|
|
1157
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1157
|
+
"mask-image-linear-pos": [{ "mask-linear": [W] }],
|
|
1158
1158
|
"mask-image-linear-from-pos": [{ "mask-linear-from": V() }],
|
|
1159
1159
|
"mask-image-linear-to-pos": [{ "mask-linear-to": V() }],
|
|
1160
1160
|
"mask-image-linear-from-color": [{ "mask-linear-from": I() }],
|
|
@@ -1183,7 +1183,7 @@ var T = (e, t) => {
|
|
|
1183
1183
|
"mask-image-y-to-pos": [{ "mask-y-to": V() }],
|
|
1184
1184
|
"mask-image-y-from-color": [{ "mask-y-from": I() }],
|
|
1185
1185
|
"mask-image-y-to-color": [{ "mask-y-to": I() }],
|
|
1186
|
-
"mask-image-radial": [{ "mask-radial": [
|
|
1186
|
+
"mask-image-radial": [{ "mask-radial": [K, G] }],
|
|
1187
1187
|
"mask-image-radial-from-pos": [{ "mask-radial-from": V() }],
|
|
1188
1188
|
"mask-image-radial-to-pos": [{ "mask-radial-to": V() }],
|
|
1189
1189
|
"mask-image-radial-from-color": [{ "mask-radial-from": I() }],
|
|
@@ -1194,7 +1194,7 @@ var T = (e, t) => {
|
|
|
1194
1194
|
farthest: ["side", "corner"]
|
|
1195
1195
|
}] }],
|
|
1196
1196
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1197
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1197
|
+
"mask-image-conic-pos": [{ "mask-conic": [W] }],
|
|
1198
1198
|
"mask-image-conic-from-pos": [{ "mask-conic-from": V() }],
|
|
1199
1199
|
"mask-image-conic-to-pos": [{ "mask-conic-to": V() }],
|
|
1200
1200
|
"mask-image-conic-from-color": [{ "mask-conic-from": I() }],
|
|
@@ -1212,117 +1212,117 @@ var T = (e, t) => {
|
|
|
1212
1212
|
"stroke",
|
|
1213
1213
|
"view"
|
|
1214
1214
|
] }],
|
|
1215
|
-
"mask-position": [{ mask:
|
|
1216
|
-
"mask-repeat": [{ mask:
|
|
1215
|
+
"mask-position": [{ mask: ee() }],
|
|
1216
|
+
"mask-repeat": [{ mask: L() }],
|
|
1217
1217
|
"mask-size": [{ mask: te() }],
|
|
1218
1218
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1219
1219
|
"mask-image": [{ mask: [
|
|
1220
1220
|
"none",
|
|
1221
|
-
|
|
1222
|
-
|
|
1221
|
+
K,
|
|
1222
|
+
G
|
|
1223
1223
|
] }],
|
|
1224
1224
|
filter: [{ filter: [
|
|
1225
1225
|
"",
|
|
1226
1226
|
"none",
|
|
1227
|
-
|
|
1228
|
-
|
|
1227
|
+
K,
|
|
1228
|
+
G
|
|
1229
1229
|
] }],
|
|
1230
|
-
blur: [{ blur:
|
|
1230
|
+
blur: [{ blur: H() }],
|
|
1231
1231
|
brightness: [{ brightness: [
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1232
|
+
W,
|
|
1233
|
+
K,
|
|
1234
|
+
G
|
|
1235
1235
|
] }],
|
|
1236
1236
|
contrast: [{ contrast: [
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1237
|
+
W,
|
|
1238
|
+
K,
|
|
1239
|
+
G
|
|
1240
1240
|
] }],
|
|
1241
1241
|
"drop-shadow": [{ "drop-shadow": [
|
|
1242
1242
|
"",
|
|
1243
1243
|
"none",
|
|
1244
1244
|
p,
|
|
1245
|
-
|
|
1246
|
-
|
|
1245
|
+
Ge,
|
|
1246
|
+
ze
|
|
1247
1247
|
] }],
|
|
1248
1248
|
"drop-shadow-color": [{ "drop-shadow": I() }],
|
|
1249
1249
|
grayscale: [{ grayscale: [
|
|
1250
1250
|
"",
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1251
|
+
W,
|
|
1252
|
+
K,
|
|
1253
|
+
G
|
|
1254
1254
|
] }],
|
|
1255
1255
|
"hue-rotate": [{ "hue-rotate": [
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1256
|
+
W,
|
|
1257
|
+
K,
|
|
1258
|
+
G
|
|
1259
1259
|
] }],
|
|
1260
1260
|
invert: [{ invert: [
|
|
1261
1261
|
"",
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1262
|
+
W,
|
|
1263
|
+
K,
|
|
1264
|
+
G
|
|
1265
1265
|
] }],
|
|
1266
1266
|
saturate: [{ saturate: [
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1267
|
+
W,
|
|
1268
|
+
K,
|
|
1269
|
+
G
|
|
1270
1270
|
] }],
|
|
1271
1271
|
sepia: [{ sepia: [
|
|
1272
1272
|
"",
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1273
|
+
W,
|
|
1274
|
+
K,
|
|
1275
|
+
G
|
|
1276
1276
|
] }],
|
|
1277
1277
|
"backdrop-filter": [{ "backdrop-filter": [
|
|
1278
1278
|
"",
|
|
1279
1279
|
"none",
|
|
1280
|
-
|
|
1281
|
-
|
|
1280
|
+
K,
|
|
1281
|
+
G
|
|
1282
1282
|
] }],
|
|
1283
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
1283
|
+
"backdrop-blur": [{ "backdrop-blur": H() }],
|
|
1284
1284
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1285
|
+
W,
|
|
1286
|
+
K,
|
|
1287
|
+
G
|
|
1288
1288
|
] }],
|
|
1289
1289
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1290
|
+
W,
|
|
1291
|
+
K,
|
|
1292
|
+
G
|
|
1293
1293
|
] }],
|
|
1294
1294
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1295
1295
|
"",
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1296
|
+
W,
|
|
1297
|
+
K,
|
|
1298
|
+
G
|
|
1299
1299
|
] }],
|
|
1300
1300
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1301
|
+
W,
|
|
1302
|
+
K,
|
|
1303
|
+
G
|
|
1304
1304
|
] }],
|
|
1305
1305
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
1306
1306
|
"",
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1307
|
+
W,
|
|
1308
|
+
K,
|
|
1309
|
+
G
|
|
1310
1310
|
] }],
|
|
1311
1311
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1312
|
+
W,
|
|
1313
|
+
K,
|
|
1314
|
+
G
|
|
1315
1315
|
] }],
|
|
1316
1316
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1317
|
+
W,
|
|
1318
|
+
K,
|
|
1319
|
+
G
|
|
1320
1320
|
] }],
|
|
1321
1321
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1322
1322
|
"",
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1323
|
+
W,
|
|
1324
|
+
K,
|
|
1325
|
+
G
|
|
1326
1326
|
] }],
|
|
1327
1327
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1328
1328
|
"border-spacing": [{ "border-spacing": w() }],
|
|
@@ -1338,56 +1338,56 @@ var T = (e, t) => {
|
|
|
1338
1338
|
"shadow",
|
|
1339
1339
|
"transform",
|
|
1340
1340
|
"none",
|
|
1341
|
-
|
|
1342
|
-
|
|
1341
|
+
K,
|
|
1342
|
+
G
|
|
1343
1343
|
] }],
|
|
1344
1344
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1345
1345
|
duration: [{ duration: [
|
|
1346
|
-
|
|
1346
|
+
W,
|
|
1347
1347
|
"initial",
|
|
1348
|
-
|
|
1349
|
-
|
|
1348
|
+
K,
|
|
1349
|
+
G
|
|
1350
1350
|
] }],
|
|
1351
1351
|
ease: [{ ease: [
|
|
1352
1352
|
"linear",
|
|
1353
1353
|
"initial",
|
|
1354
1354
|
_,
|
|
1355
|
-
|
|
1356
|
-
|
|
1355
|
+
K,
|
|
1356
|
+
G
|
|
1357
1357
|
] }],
|
|
1358
1358
|
delay: [{ delay: [
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1359
|
+
W,
|
|
1360
|
+
K,
|
|
1361
|
+
G
|
|
1362
1362
|
] }],
|
|
1363
1363
|
animate: [{ animate: [
|
|
1364
1364
|
"none",
|
|
1365
1365
|
v,
|
|
1366
|
-
|
|
1367
|
-
|
|
1366
|
+
K,
|
|
1367
|
+
G
|
|
1368
1368
|
] }],
|
|
1369
1369
|
backface: [{ backface: ["hidden", "visible"] }],
|
|
1370
1370
|
perspective: [{ perspective: [
|
|
1371
1371
|
h,
|
|
1372
|
-
|
|
1373
|
-
|
|
1372
|
+
K,
|
|
1373
|
+
G
|
|
1374
1374
|
] }],
|
|
1375
1375
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
1376
|
-
rotate: [{ rotate:
|
|
1377
|
-
"rotate-x": [{ "rotate-x":
|
|
1378
|
-
"rotate-y": [{ "rotate-y":
|
|
1379
|
-
"rotate-z": [{ "rotate-z":
|
|
1380
|
-
scale: [{ scale:
|
|
1381
|
-
"scale-x": [{ "scale-x":
|
|
1382
|
-
"scale-y": [{ "scale-y":
|
|
1383
|
-
"scale-z": [{ "scale-z":
|
|
1376
|
+
rotate: [{ rotate: ie() }],
|
|
1377
|
+
"rotate-x": [{ "rotate-x": ie() }],
|
|
1378
|
+
"rotate-y": [{ "rotate-y": ie() }],
|
|
1379
|
+
"rotate-z": [{ "rotate-z": ie() }],
|
|
1380
|
+
scale: [{ scale: ae() }],
|
|
1381
|
+
"scale-x": [{ "scale-x": ae() }],
|
|
1382
|
+
"scale-y": [{ "scale-y": ae() }],
|
|
1383
|
+
"scale-z": [{ "scale-z": ae() }],
|
|
1384
1384
|
"scale-3d": ["scale-3d"],
|
|
1385
|
-
skew: [{ skew:
|
|
1386
|
-
"skew-x": [{ "skew-x":
|
|
1387
|
-
"skew-y": [{ "skew-y":
|
|
1385
|
+
skew: [{ skew: oe() }],
|
|
1386
|
+
"skew-x": [{ "skew-x": oe() }],
|
|
1387
|
+
"skew-y": [{ "skew-y": oe() }],
|
|
1388
1388
|
transform: [{ transform: [
|
|
1389
|
+
K,
|
|
1389
1390
|
G,
|
|
1390
|
-
W,
|
|
1391
1391
|
"",
|
|
1392
1392
|
"none",
|
|
1393
1393
|
"gpu",
|
|
@@ -1395,10 +1395,10 @@ var T = (e, t) => {
|
|
|
1395
1395
|
] }],
|
|
1396
1396
|
"transform-origin": [{ origin: x() }],
|
|
1397
1397
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1398
|
-
translate: [{ translate:
|
|
1399
|
-
"translate-x": [{ "translate-x":
|
|
1400
|
-
"translate-y": [{ "translate-y":
|
|
1401
|
-
"translate-z": [{ "translate-z":
|
|
1398
|
+
translate: [{ translate: se() }],
|
|
1399
|
+
"translate-x": [{ "translate-x": se() }],
|
|
1400
|
+
"translate-y": [{ "translate-y": se() }],
|
|
1401
|
+
"translate-z": [{ "translate-z": se() }],
|
|
1402
1402
|
"translate-none": ["translate-none"],
|
|
1403
1403
|
accent: [{ accent: I() }],
|
|
1404
1404
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
@@ -1448,8 +1448,8 @@ var T = (e, t) => {
|
|
|
1448
1448
|
"nwse-resize",
|
|
1449
1449
|
"zoom-in",
|
|
1450
1450
|
"zoom-out",
|
|
1451
|
-
|
|
1452
|
-
|
|
1451
|
+
K,
|
|
1452
|
+
G
|
|
1453
1453
|
] }],
|
|
1454
1454
|
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
1455
1455
|
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
@@ -1523,15 +1523,15 @@ var T = (e, t) => {
|
|
|
1523
1523
|
"scroll",
|
|
1524
1524
|
"contents",
|
|
1525
1525
|
"transform",
|
|
1526
|
-
|
|
1527
|
-
|
|
1526
|
+
K,
|
|
1527
|
+
G
|
|
1528
1528
|
] }],
|
|
1529
1529
|
fill: [{ fill: ["none", ...I()] }],
|
|
1530
1530
|
"stroke-w": [{ stroke: [
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1531
|
+
W,
|
|
1532
|
+
Be,
|
|
1533
|
+
Ne,
|
|
1534
|
+
Pe
|
|
1535
1535
|
] }],
|
|
1536
1536
|
stroke: [{ stroke: ["none", ...I()] }],
|
|
1537
1537
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
@@ -1720,18 +1720,18 @@ var T = (e, t) => {
|
|
|
1720
1720
|
});
|
|
1721
1721
|
//#endregion
|
|
1722
1722
|
//#region src/lib/utils/cn.js
|
|
1723
|
-
function
|
|
1724
|
-
return
|
|
1723
|
+
function q(...e) {
|
|
1724
|
+
return rt(w(e));
|
|
1725
1725
|
}
|
|
1726
1726
|
//#endregion
|
|
1727
1727
|
//#region src/lib/utils/radius.js
|
|
1728
|
-
var
|
|
1728
|
+
var it = {
|
|
1729
1729
|
sm: "rounded-[0.625rem]",
|
|
1730
1730
|
md: "rounded-[0.75rem]",
|
|
1731
1731
|
lg: "rounded-[0.875rem]",
|
|
1732
1732
|
xl: "rounded-[1rem]",
|
|
1733
1733
|
"2xl": "rounded-[1.125rem]"
|
|
1734
|
-
},
|
|
1734
|
+
}, at = {
|
|
1735
1735
|
sm: {
|
|
1736
1736
|
rounded: "rounded-[0.75rem]",
|
|
1737
1737
|
square: "rounded-[0.5rem]"
|
|
@@ -1752,30 +1752,30 @@ var at = {
|
|
|
1752
1752
|
rounded: "rounded-[1.25rem]",
|
|
1753
1753
|
square: "rounded-[1rem]"
|
|
1754
1754
|
}
|
|
1755
|
-
},
|
|
1756
|
-
function
|
|
1757
|
-
return
|
|
1755
|
+
}, ot = it.md;
|
|
1756
|
+
function st(e = "md") {
|
|
1757
|
+
return it[e] ?? ot;
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1760
|
-
return e === "circle" ? "rounded-full" :
|
|
1759
|
+
function ct(e = "circle", t = "md") {
|
|
1760
|
+
return e === "circle" ? "rounded-full" : at[t]?.[e] ?? at.md.rounded;
|
|
1761
1761
|
}
|
|
1762
1762
|
//#endregion
|
|
1763
1763
|
//#region src/lib/components/avatar/avatar.context.js
|
|
1764
|
-
var
|
|
1765
|
-
function
|
|
1766
|
-
let t = c(
|
|
1764
|
+
var lt = i(null);
|
|
1765
|
+
function ut(e) {
|
|
1766
|
+
let t = c(lt);
|
|
1767
1767
|
if (!t) throw Error(`${e} debe usarse dentro de <Avatar>.`);
|
|
1768
1768
|
return t;
|
|
1769
1769
|
}
|
|
1770
1770
|
//#endregion
|
|
1771
1771
|
//#region src/lib/components/avatar/avatar.constants.js
|
|
1772
|
-
var
|
|
1772
|
+
var dt = {
|
|
1773
1773
|
root: "relative inline-flex shrink-0 overflow-visible align-middle",
|
|
1774
1774
|
shell: ["absolute inset-0 z-0 inline-flex items-center justify-center overflow-hidden border", "select-none transition-[background-color,border-color,color] duration-200"].join(" "),
|
|
1775
1775
|
image: "h-full w-full object-cover",
|
|
1776
1776
|
fallback: "inline-flex h-full w-full items-center justify-center font-medium uppercase",
|
|
1777
1777
|
group: "flex items-center"
|
|
1778
|
-
},
|
|
1778
|
+
}, ft = {
|
|
1779
1779
|
sm: {
|
|
1780
1780
|
root: "size-8",
|
|
1781
1781
|
fallback: "text-xs"
|
|
@@ -1796,13 +1796,13 @@ var ft = {
|
|
|
1796
1796
|
root: "size-16",
|
|
1797
1797
|
fallback: "text-xl"
|
|
1798
1798
|
}
|
|
1799
|
-
},
|
|
1799
|
+
}, pt = {
|
|
1800
1800
|
sm: 32,
|
|
1801
1801
|
md: 40,
|
|
1802
1802
|
lg: 48,
|
|
1803
1803
|
xl: 56,
|
|
1804
1804
|
"2xl": 64
|
|
1805
|
-
},
|
|
1805
|
+
}, mt = {
|
|
1806
1806
|
sm: {
|
|
1807
1807
|
rounded: 12,
|
|
1808
1808
|
square: 8
|
|
@@ -1823,11 +1823,11 @@ var ft = {
|
|
|
1823
1823
|
rounded: 20,
|
|
1824
1824
|
square: 16
|
|
1825
1825
|
}
|
|
1826
|
-
},
|
|
1826
|
+
}, ht = .25, gt = {
|
|
1827
1827
|
circle: "rounded-full",
|
|
1828
1828
|
rounded: "",
|
|
1829
1829
|
square: ""
|
|
1830
|
-
},
|
|
1830
|
+
}, _t = {
|
|
1831
1831
|
light: {
|
|
1832
1832
|
root: "border-slate-200 bg-slate-100 text-slate-700",
|
|
1833
1833
|
userChip: "border-slate-200 bg-white text-slate-950 hover:border-slate-300 hover:bg-slate-50",
|
|
@@ -1838,7 +1838,7 @@ var ft = {
|
|
|
1838
1838
|
userChip: "border-zinc-800 bg-zinc-950 text-stone-50 hover:border-zinc-700 hover:bg-zinc-900",
|
|
1839
1839
|
userChipDescription: "text-stone-400"
|
|
1840
1840
|
}
|
|
1841
|
-
},
|
|
1841
|
+
}, vt = {
|
|
1842
1842
|
sm: {
|
|
1843
1843
|
outer: "size-3",
|
|
1844
1844
|
inner: "size-1.5"
|
|
@@ -1859,23 +1859,23 @@ var ft = {
|
|
|
1859
1859
|
outer: "size-5",
|
|
1860
1860
|
inner: "size-3.5"
|
|
1861
1861
|
}
|
|
1862
|
-
},
|
|
1862
|
+
}, yt = {
|
|
1863
1863
|
sm: 12,
|
|
1864
1864
|
md: 14,
|
|
1865
1865
|
lg: 16,
|
|
1866
1866
|
xl: 18,
|
|
1867
1867
|
"2xl": 20
|
|
1868
|
-
},
|
|
1868
|
+
}, bt = .1, xt = .5, St = "__quickitAvatarPresence", Ct = {
|
|
1869
1869
|
online: "bg-emerald-500",
|
|
1870
1870
|
away: "bg-amber-400",
|
|
1871
1871
|
busy: "bg-red-500",
|
|
1872
1872
|
offline: "bg-neutral-400"
|
|
1873
|
-
},
|
|
1873
|
+
}, wt = {
|
|
1874
1874
|
online: "Online",
|
|
1875
1875
|
away: "Away",
|
|
1876
1876
|
busy: "Busy",
|
|
1877
1877
|
offline: "Offline"
|
|
1878
|
-
},
|
|
1878
|
+
}, Tt = {
|
|
1879
1879
|
sm: {
|
|
1880
1880
|
root: "gap-2 rounded-[0.9rem] px-2.5 py-2",
|
|
1881
1881
|
title: "text-sm",
|
|
@@ -1901,7 +1901,7 @@ var ft = {
|
|
|
1901
1901
|
title: "text-lg",
|
|
1902
1902
|
description: "text-base"
|
|
1903
1903
|
}
|
|
1904
|
-
},
|
|
1904
|
+
}, Et = Object.freeze([
|
|
1905
1905
|
"neutral",
|
|
1906
1906
|
"primary",
|
|
1907
1907
|
"brand",
|
|
@@ -1911,7 +1911,7 @@ var ft = {
|
|
|
1911
1911
|
"info",
|
|
1912
1912
|
"light",
|
|
1913
1913
|
"dark"
|
|
1914
|
-
]),
|
|
1914
|
+
]), Dt = Object.freeze([
|
|
1915
1915
|
"neutral",
|
|
1916
1916
|
"primary",
|
|
1917
1917
|
"brand",
|
|
@@ -1919,79 +1919,79 @@ var ft = {
|
|
|
1919
1919
|
"danger",
|
|
1920
1920
|
"warning",
|
|
1921
1921
|
"info"
|
|
1922
|
-
]),
|
|
1922
|
+
]), Ot = Object.freeze([
|
|
1923
1923
|
"sm",
|
|
1924
1924
|
"md",
|
|
1925
1925
|
"lg",
|
|
1926
1926
|
"xl",
|
|
1927
1927
|
"2xl"
|
|
1928
|
-
]),
|
|
1928
|
+
]), kt = Object.freeze(["sm", "md"]), At = Object.freeze([
|
|
1929
1929
|
"solid",
|
|
1930
1930
|
"outline",
|
|
1931
1931
|
"ghost"
|
|
1932
|
-
]),
|
|
1932
|
+
]), jt = Object.freeze([
|
|
1933
1933
|
"default",
|
|
1934
1934
|
"square",
|
|
1935
1935
|
"pill"
|
|
1936
|
-
]),
|
|
1936
|
+
]), Mt = Object.freeze([
|
|
1937
1937
|
"circle",
|
|
1938
1938
|
"rounded",
|
|
1939
1939
|
"square"
|
|
1940
|
-
]),
|
|
1940
|
+
]), Nt = Ot, Pt = Object.freeze([
|
|
1941
1941
|
"default",
|
|
1942
1942
|
"muted",
|
|
1943
1943
|
"subtle"
|
|
1944
|
-
]),
|
|
1944
|
+
]), Ft = Object.freeze([
|
|
1945
1945
|
"always",
|
|
1946
1946
|
"hover",
|
|
1947
1947
|
"none"
|
|
1948
|
-
]),
|
|
1948
|
+
]), It = Object.freeze([
|
|
1949
1949
|
"xs",
|
|
1950
1950
|
"sm",
|
|
1951
1951
|
"md",
|
|
1952
1952
|
"lg"
|
|
1953
|
-
]),
|
|
1954
|
-
function
|
|
1953
|
+
]), Lt = it, Rt = at;
|
|
1954
|
+
function zt(e, t) {
|
|
1955
1955
|
return Array.isArray(e) && e.includes(t);
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1958
|
-
return
|
|
1957
|
+
function Bt(e, t, n) {
|
|
1958
|
+
return zt(e, t) ? t : n;
|
|
1959
1959
|
}
|
|
1960
1960
|
//#endregion
|
|
1961
1961
|
//#region src/lib/components/avatar/avatar.utils.js
|
|
1962
|
-
function
|
|
1962
|
+
function Vt(e) {
|
|
1963
1963
|
return e === "dark" ? "dark" : "light";
|
|
1964
1964
|
}
|
|
1965
|
+
function Ht(e) {
|
|
1966
|
+
return Bt(Mt, e, "circle");
|
|
1967
|
+
}
|
|
1965
1968
|
function Ut(e) {
|
|
1966
|
-
return
|
|
1969
|
+
return Bt(Nt, e, "md");
|
|
1967
1970
|
}
|
|
1968
1971
|
function Wt(e) {
|
|
1969
|
-
return
|
|
1972
|
+
return Object.hasOwn(Ct, e) ? e : "offline";
|
|
1970
1973
|
}
|
|
1971
1974
|
function Gt(e) {
|
|
1972
|
-
return Object.hasOwn(wt, e) ? e : "offline";
|
|
1973
|
-
}
|
|
1974
|
-
function Kt(e) {
|
|
1975
1975
|
return typeof e == "string" || typeof e == "number" ? String(e).trim() : "";
|
|
1976
1976
|
}
|
|
1977
|
-
function
|
|
1977
|
+
function Kt(e, t) {
|
|
1978
1978
|
return t <= 1 || e === t - 1 ? null : "stacked";
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1981
|
-
return Math.round(
|
|
1980
|
+
function qt(e) {
|
|
1981
|
+
return Math.round(pt[e] * ht);
|
|
1982
1982
|
}
|
|
1983
|
-
function
|
|
1984
|
-
return e === "circle" ? .5 : (
|
|
1983
|
+
function Jt(e, t) {
|
|
1984
|
+
return e === "circle" ? .5 : (mt[t]?.[e] ?? mt.md.rounded) / pt[t];
|
|
1985
1985
|
}
|
|
1986
|
-
function
|
|
1987
|
-
let n =
|
|
1986
|
+
function Yt(e, t) {
|
|
1987
|
+
let n = qt(t) / pt[t], r = Number((1 - n * 1.24).toFixed(4));
|
|
1988
1988
|
if (e === "circle") return {
|
|
1989
1989
|
type: "circle",
|
|
1990
1990
|
cx: Number((r + .5).toFixed(4)),
|
|
1991
1991
|
cy: .5,
|
|
1992
1992
|
r: .5
|
|
1993
1993
|
};
|
|
1994
|
-
let i =
|
|
1994
|
+
let i = Jt(e, t);
|
|
1995
1995
|
return {
|
|
1996
1996
|
type: "rect",
|
|
1997
1997
|
x: r,
|
|
@@ -2002,10 +2002,10 @@ function Xt(e, t) {
|
|
|
2002
2002
|
ry: Number(i.toFixed(4))
|
|
2003
2003
|
};
|
|
2004
2004
|
}
|
|
2005
|
-
function
|
|
2005
|
+
function Xt(e) {
|
|
2006
2006
|
return o(e) ? e.type?.__quickitAvatarPresence === !0 || e.type?.displayName === "AvatarPresence" || e.type?.render?.displayName === "AvatarPresence" || e.type?.render?.name === "AvatarPresence" : !1;
|
|
2007
2007
|
}
|
|
2008
|
-
function
|
|
2008
|
+
function Zt(e) {
|
|
2009
2009
|
if (!e) return {
|
|
2010
2010
|
rootStyle: void 0,
|
|
2011
2011
|
shellStyle: void 0
|
|
@@ -2019,8 +2019,8 @@ function Qt(e) {
|
|
|
2019
2019
|
} : void 0
|
|
2020
2020
|
};
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2023
|
-
let n =
|
|
2022
|
+
function Qt(e, t) {
|
|
2023
|
+
let n = pt[e] ?? pt.md, r = yt[t] ?? yt.md, i = (n - r / 2 + r * bt) / n, a = (r / 2 + xt) / n;
|
|
2024
2024
|
return {
|
|
2025
2025
|
cx: Number(i.toFixed(4)),
|
|
2026
2026
|
cy: Number(i.toFixed(4)),
|
|
@@ -2029,8 +2029,8 @@ function $t(e, t) {
|
|
|
2029
2029
|
}
|
|
2030
2030
|
//#endregion
|
|
2031
2031
|
//#region src/lib/components/avatar/AvatarRoot.jsx
|
|
2032
|
-
var
|
|
2033
|
-
let c =
|
|
2032
|
+
var $t = a(function({ children: e, className: n, shape: r = "circle", size: i = "md", style: a, ...o }, s) {
|
|
2033
|
+
let c = Vt(S()), l = _t[c], d = Ht(r), p = Ut(i), [h, g] = m("error"), _ = u().replaceAll(":", ""), v = t.toArray(e), y = v.filter(Xt), x = v.filter((e) => !Xt(e)), C = y.find(Xt), w = Ut(C?.props.size ?? p), T = C ? Qt(p, w) : null, { rootStyle: E, shellStyle: D } = Zt(a), O = f(() => ({
|
|
2034
2034
|
setStatus: g,
|
|
2035
2035
|
shape: d,
|
|
2036
2036
|
size: p,
|
|
@@ -2043,12 +2043,12 @@ var en = a(function({ children: e, className: n, shape: r = "circle", size: i =
|
|
|
2043
2043
|
h,
|
|
2044
2044
|
c
|
|
2045
2045
|
]);
|
|
2046
|
-
return /* @__PURE__ */ (0, b.jsx)(
|
|
2046
|
+
return /* @__PURE__ */ (0, b.jsx)(lt.Provider, {
|
|
2047
2047
|
value: O,
|
|
2048
2048
|
children: /* @__PURE__ */ (0, b.jsxs)("span", {
|
|
2049
2049
|
ref: s,
|
|
2050
2050
|
"data-slot": "avatar",
|
|
2051
|
-
className:
|
|
2051
|
+
className: q(dt.root, ft[p].root, n),
|
|
2052
2052
|
style: E,
|
|
2053
2053
|
...o,
|
|
2054
2054
|
children: [
|
|
@@ -2074,7 +2074,7 @@ var en = a(function({ children: e, className: n, shape: r = "circle", size: i =
|
|
|
2074
2074
|
}) : null,
|
|
2075
2075
|
/* @__PURE__ */ (0, b.jsx)("span", {
|
|
2076
2076
|
"data-slot": "avatar-shell",
|
|
2077
|
-
className:
|
|
2077
|
+
className: q(dt.shell, d === "circle" ? gt.circle : ct(d, p), l.root),
|
|
2078
2078
|
style: T ? {
|
|
2079
2079
|
...D,
|
|
2080
2080
|
WebkitMask: `url(#${_}) center / 100% 100% no-repeat`,
|
|
@@ -2086,15 +2086,15 @@ var en = a(function({ children: e, className: n, shape: r = "circle", size: i =
|
|
|
2086
2086
|
]
|
|
2087
2087
|
})
|
|
2088
2088
|
});
|
|
2089
|
-
}),
|
|
2090
|
-
let { size: i, status: a } =
|
|
2089
|
+
}), en = a(function({ children: e, className: t, ...n }, r) {
|
|
2090
|
+
let { size: i, status: a } = ut("AvatarFallback");
|
|
2091
2091
|
return a === "loaded" ? null : /* @__PURE__ */ (0, b.jsx)("span", {
|
|
2092
2092
|
ref: r,
|
|
2093
|
-
className:
|
|
2093
|
+
className: q(dt.fallback, ft[i].fallback, t),
|
|
2094
2094
|
...n,
|
|
2095
2095
|
children: e
|
|
2096
2096
|
});
|
|
2097
|
-
}),
|
|
2097
|
+
}), tn = a(function({ children: e, className: n, stacked: i = !0, ...a }, s) {
|
|
2098
2098
|
let c = t.toArray(e), l = u().replaceAll(":", ""), d = i && c.length > 1, f = c.map((e, t) => {
|
|
2099
2099
|
if (!o(e)) return {
|
|
2100
2100
|
child: e,
|
|
@@ -2102,18 +2102,18 @@ var en = a(function({ children: e, className: n, shape: r = "circle", size: i =
|
|
|
2102
2102
|
maskId: null,
|
|
2103
2103
|
overlapPx: 0
|
|
2104
2104
|
};
|
|
2105
|
-
let n =
|
|
2105
|
+
let n = Ht(e.props.shape), r = Ut(e.props.size), i = Kt(t, c.length) ? `${l}-avatar-group-${t}` : null;
|
|
2106
2106
|
return {
|
|
2107
2107
|
child: e,
|
|
2108
2108
|
index: t,
|
|
2109
2109
|
maskId: i,
|
|
2110
|
-
maskDefinition: i ?
|
|
2111
|
-
overlapPx: t > 0 ?
|
|
2110
|
+
maskDefinition: i ? Yt(n, r) : null,
|
|
2111
|
+
overlapPx: t > 0 ? qt(r) : 0
|
|
2112
2112
|
};
|
|
2113
2113
|
});
|
|
2114
2114
|
return /* @__PURE__ */ (0, b.jsxs)("div", {
|
|
2115
2115
|
ref: s,
|
|
2116
|
-
className:
|
|
2116
|
+
className: q(dt.group, i && "relative", n),
|
|
2117
2117
|
...a,
|
|
2118
2118
|
children: [d ? /* @__PURE__ */ (0, b.jsx)("svg", {
|
|
2119
2119
|
"aria-hidden": "true",
|
|
@@ -2152,15 +2152,15 @@ var en = a(function({ children: e, className: n, shape: r = "circle", size: i =
|
|
|
2152
2152
|
} : {}
|
|
2153
2153
|
} }) : e) : e]
|
|
2154
2154
|
});
|
|
2155
|
-
}),
|
|
2156
|
-
let { setStatus: s, status: c } =
|
|
2155
|
+
}), nn = a(function({ alt: e = "", className: t, onError: n, onLoad: r, src: i, ...a }, o) {
|
|
2156
|
+
let { setStatus: s, status: c } = ut("AvatarImage");
|
|
2157
2157
|
return l(() => {
|
|
2158
2158
|
s(i ? "loading" : "error");
|
|
2159
2159
|
}, [s, i]), /* @__PURE__ */ (0, b.jsx)("img", {
|
|
2160
2160
|
ref: o,
|
|
2161
2161
|
alt: e,
|
|
2162
2162
|
src: i,
|
|
2163
|
-
className:
|
|
2163
|
+
className: q(dt.image, c === "loaded" ? "block" : "hidden", t),
|
|
2164
2164
|
onLoad: (e) => {
|
|
2165
2165
|
s("loaded"), r?.(e);
|
|
2166
2166
|
},
|
|
@@ -2169,97 +2169,97 @@ var en = a(function({ children: e, className: n, shape: r = "circle", size: i =
|
|
|
2169
2169
|
},
|
|
2170
2170
|
...a
|
|
2171
2171
|
});
|
|
2172
|
-
}),
|
|
2173
|
-
let o = c(
|
|
2172
|
+
}), rn = a(function({ className: e, label: t, size: n, status: r = "online", ...i }, a) {
|
|
2173
|
+
let o = c(lt), s = Wt(r), l = vt[Ut(n ?? o?.size)] ?? vt.md;
|
|
2174
2174
|
return /* @__PURE__ */ (0, b.jsx)("span", {
|
|
2175
2175
|
ref: a,
|
|
2176
2176
|
"data-slot": "avatar-presence",
|
|
2177
2177
|
role: "status",
|
|
2178
|
-
"aria-label": t ??
|
|
2179
|
-
className:
|
|
2180
|
-
style: { transform: `translate(${
|
|
2178
|
+
"aria-label": t ?? wt[s],
|
|
2179
|
+
className: q("absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full", l.outer, e),
|
|
2180
|
+
style: { transform: `translate(${bt * 100}%, ${bt * 100}%)` },
|
|
2181
2181
|
...i,
|
|
2182
2182
|
children: /* @__PURE__ */ (0, b.jsx)("span", {
|
|
2183
2183
|
"aria-hidden": "true",
|
|
2184
|
-
className:
|
|
2184
|
+
className: q("inline-flex rounded-full", l.inner, Ct[s])
|
|
2185
2185
|
})
|
|
2186
2186
|
});
|
|
2187
2187
|
});
|
|
2188
|
-
|
|
2188
|
+
rn.displayName = "AvatarPresence", rn[St] = !0;
|
|
2189
2189
|
//#endregion
|
|
2190
2190
|
//#region src/lib/components/avatar/get-initials.js
|
|
2191
|
-
function
|
|
2191
|
+
function an(e) {
|
|
2192
2192
|
return typeof e == "string" || typeof e == "number" ? String(e).trim() : "";
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2195
|
-
let r =
|
|
2194
|
+
function on(e, { fallback: t = "?", max: n = 2 } = {}) {
|
|
2195
|
+
let r = an(e), i = Math.max(1, Number.parseInt(n, 10) || 2);
|
|
2196
2196
|
if (!r) return t;
|
|
2197
2197
|
let a = r.split(/[\s._-]+/).map((e) => e.trim()).filter(Boolean);
|
|
2198
2198
|
return a.length ? a.length === 1 ? a[0].slice(0, i).toUpperCase() : i === 1 ? a[0][0].toUpperCase() : i === 2 ? `${a[0][0]}${a.at(-1)[0]}`.toUpperCase() : `${a.slice(0, i - 1).map((e) => e[0]).join("")}${a.at(-1)[0]}`.toUpperCase() : t;
|
|
2199
2199
|
}
|
|
2200
2200
|
//#endregion
|
|
2201
2201
|
//#region src/lib/components/avatar/Initials.jsx
|
|
2202
|
-
var
|
|
2202
|
+
var sn = a(function({ className: e, fallback: t = "?", max: n = 2, name: r, ...i }, a) {
|
|
2203
2203
|
return /* @__PURE__ */ (0, b.jsx)("span", {
|
|
2204
2204
|
ref: a,
|
|
2205
2205
|
className: e,
|
|
2206
2206
|
...i,
|
|
2207
|
-
children:
|
|
2207
|
+
children: on(r, {
|
|
2208
2208
|
fallback: t,
|
|
2209
2209
|
max: n
|
|
2210
2210
|
})
|
|
2211
2211
|
});
|
|
2212
|
-
}),
|
|
2213
|
-
let m =
|
|
2212
|
+
}), cn = a(function({ className: e, description: t, href: n, initials: r, name: i, presence: a, rel: o, shape: s = "circle", size: c = "md", src: l, target: u, trailing: d, ...f }, p) {
|
|
2213
|
+
let m = _t[Vt(S())], h = Ut(c), g = n ? "a" : "div", _ = r ?? on(i);
|
|
2214
2214
|
return /* @__PURE__ */ (0, b.jsxs)(g, {
|
|
2215
2215
|
ref: p,
|
|
2216
2216
|
href: n,
|
|
2217
2217
|
rel: n ? o : void 0,
|
|
2218
2218
|
target: n ? u : void 0,
|
|
2219
|
-
className:
|
|
2219
|
+
className: q("inline-flex min-w-0 items-center border transition-[background-color,border-color,color] duration-200", Tt[h].root, m.userChip, n && "cursor-pointer no-underline", e),
|
|
2220
2220
|
...f,
|
|
2221
|
-
children: [/* @__PURE__ */ (0, b.jsxs)(
|
|
2221
|
+
children: [/* @__PURE__ */ (0, b.jsxs)($t, {
|
|
2222
2222
|
size: h,
|
|
2223
2223
|
shape: s,
|
|
2224
2224
|
children: [
|
|
2225
|
-
l ? /* @__PURE__ */ (0, b.jsx)(
|
|
2225
|
+
l ? /* @__PURE__ */ (0, b.jsx)(nn, {
|
|
2226
2226
|
src: l,
|
|
2227
|
-
alt:
|
|
2227
|
+
alt: Gt(i)
|
|
2228
2228
|
}) : null,
|
|
2229
|
-
/* @__PURE__ */ (0, b.jsx)(
|
|
2230
|
-
a ? /* @__PURE__ */ (0, b.jsx)(
|
|
2229
|
+
/* @__PURE__ */ (0, b.jsx)(en, { children: _ }),
|
|
2230
|
+
a ? /* @__PURE__ */ (0, b.jsx)(rn, { status: a }) : null
|
|
2231
2231
|
]
|
|
2232
2232
|
}), /* @__PURE__ */ (0, b.jsxs)("span", {
|
|
2233
2233
|
className: "min-w-0 flex-1",
|
|
2234
2234
|
children: [/* @__PURE__ */ (0, b.jsxs)("span", {
|
|
2235
2235
|
className: "flex min-w-0 items-start justify-between gap-2",
|
|
2236
2236
|
children: [/* @__PURE__ */ (0, b.jsx)("span", {
|
|
2237
|
-
className:
|
|
2237
|
+
className: q("block min-w-0 truncate font-medium", Tt[h].title),
|
|
2238
2238
|
children: i
|
|
2239
2239
|
}), d ? /* @__PURE__ */ (0, b.jsx)("span", {
|
|
2240
2240
|
className: "shrink-0 self-start",
|
|
2241
2241
|
children: d
|
|
2242
2242
|
}) : null]
|
|
2243
2243
|
}), t ? /* @__PURE__ */ (0, b.jsx)("span", {
|
|
2244
|
-
className:
|
|
2244
|
+
className: q("mt-0.5 block truncate", Tt[h].description, m.userChipDescription),
|
|
2245
2245
|
children: t
|
|
2246
2246
|
}) : null]
|
|
2247
2247
|
})]
|
|
2248
2248
|
});
|
|
2249
|
-
}),
|
|
2250
|
-
function
|
|
2251
|
-
let t = c(
|
|
2249
|
+
}), ln = i(null), un = i(null);
|
|
2250
|
+
function dn(e) {
|
|
2251
|
+
let t = c(ln);
|
|
2252
2252
|
if (!t) throw Error(`${e} debe usarse dentro de <Accordion>.`);
|
|
2253
2253
|
return t;
|
|
2254
2254
|
}
|
|
2255
|
-
function
|
|
2256
|
-
let t = c(
|
|
2255
|
+
function fn(e) {
|
|
2256
|
+
let t = c(un);
|
|
2257
2257
|
if (!t) throw Error(`${e} debe usarse dentro de <AccordionItem>.`);
|
|
2258
2258
|
return t;
|
|
2259
2259
|
}
|
|
2260
2260
|
//#endregion
|
|
2261
2261
|
//#region src/lib/components/accordion/Accordion.jsx
|
|
2262
|
-
var
|
|
2262
|
+
var pn = {
|
|
2263
2263
|
light: {
|
|
2264
2264
|
item: "border-slate-200",
|
|
2265
2265
|
trigger: "text-slate-950 hover:bg-slate-100 hover:text-slate-700 focus-visible:outline-slate-300",
|
|
@@ -2275,10 +2275,10 @@ var mn = {
|
|
|
2275
2275
|
icon: "text-stone-400"
|
|
2276
2276
|
}
|
|
2277
2277
|
};
|
|
2278
|
-
function
|
|
2278
|
+
function mn(e) {
|
|
2279
2279
|
return e === "dark" ? "dark" : "light";
|
|
2280
2280
|
}
|
|
2281
|
-
function
|
|
2281
|
+
function hn({ children: e, className: t, collapsible: n = !0, defaultValue: r, onValueChange: i, type: a = "single", value: o }) {
|
|
2282
2282
|
let s = u(), c = a === "multiple", l = o !== void 0, [d, f] = m(() => c ? Array.isArray(r) ? r : [] : r ?? null), p = l ? o : d, h = c ? Array.isArray(p) ? p : [] : p ? [p] : [], g = (e) => {
|
|
2283
2283
|
l || f(e), i?.(e);
|
|
2284
2284
|
}, _ = {
|
|
@@ -2296,16 +2296,16 @@ function gn({ children: e, className: t, collapsible: n = !0, defaultValue: r, o
|
|
|
2296
2296
|
g(e);
|
|
2297
2297
|
}
|
|
2298
2298
|
};
|
|
2299
|
-
return /* @__PURE__ */ (0, b.jsx)(
|
|
2299
|
+
return /* @__PURE__ */ (0, b.jsx)(ln.Provider, {
|
|
2300
2300
|
value: _,
|
|
2301
2301
|
children: /* @__PURE__ */ (0, b.jsx)("div", {
|
|
2302
|
-
className:
|
|
2302
|
+
className: q("w-full", t),
|
|
2303
2303
|
children: e
|
|
2304
2304
|
})
|
|
2305
2305
|
});
|
|
2306
2306
|
}
|
|
2307
|
-
function
|
|
2308
|
-
let { baseId: r, openValues: i } =
|
|
2307
|
+
function gn({ children: e, className: t, value: n }) {
|
|
2308
|
+
let { baseId: r, openValues: i } = dn("AccordionItem"), a = pn[mn(S())], o = i.includes(n), s = f(() => ({
|
|
2309
2309
|
contentId: `${r}-content-${n}`,
|
|
2310
2310
|
isOpen: o,
|
|
2311
2311
|
triggerId: `${r}-trigger-${n}`,
|
|
@@ -2315,28 +2315,28 @@ function _n({ children: e, className: t, value: n }) {
|
|
|
2315
2315
|
o,
|
|
2316
2316
|
n
|
|
2317
2317
|
]);
|
|
2318
|
-
return /* @__PURE__ */ (0, b.jsx)(
|
|
2318
|
+
return /* @__PURE__ */ (0, b.jsx)(un.Provider, {
|
|
2319
2319
|
value: s,
|
|
2320
2320
|
children: /* @__PURE__ */ (0, b.jsx)("div", {
|
|
2321
|
-
className:
|
|
2321
|
+
className: q("border-b", a.item, t),
|
|
2322
2322
|
children: e
|
|
2323
2323
|
})
|
|
2324
2324
|
});
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2327
|
-
let { toggleItem: r } =
|
|
2326
|
+
function _n({ children: e, className: t, ...n }) {
|
|
2327
|
+
let { toggleItem: r } = dn("AccordionTrigger"), { contentId: i, isOpen: a, triggerId: o, value: s } = fn("AccordionTrigger"), c = pn[mn(S())];
|
|
2328
2328
|
return /* @__PURE__ */ (0, b.jsxs)("button", {
|
|
2329
2329
|
type: "button",
|
|
2330
2330
|
id: o,
|
|
2331
2331
|
"aria-controls": i,
|
|
2332
2332
|
"aria-expanded": a,
|
|
2333
2333
|
"data-state": a ? "open" : "closed",
|
|
2334
|
-
className:
|
|
2334
|
+
className: q("flex w-full cursor-pointer items-center justify-between gap-4 px-4 py-4 text-left text-sm font-medium outline-none transition-[background-color,color] duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2", c.trigger, a && c.triggerOpen, t),
|
|
2335
2335
|
onClick: () => r(s),
|
|
2336
2336
|
...n,
|
|
2337
2337
|
children: [/* @__PURE__ */ (0, b.jsx)("span", { children: e }), /* @__PURE__ */ (0, b.jsx)("span", {
|
|
2338
2338
|
"aria-hidden": "true",
|
|
2339
|
-
className:
|
|
2339
|
+
className: q("transition-transform duration-200", c.icon, a && "rotate-45"),
|
|
2340
2340
|
children: /* @__PURE__ */ (0, b.jsx)("svg", {
|
|
2341
2341
|
viewBox: "0 0 20 20",
|
|
2342
2342
|
className: "size-4 fill-current",
|
|
@@ -2345,24 +2345,24 @@ function vn({ children: e, className: t, ...n }) {
|
|
|
2345
2345
|
})]
|
|
2346
2346
|
});
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2349
|
-
let { contentId: i, isOpen: a, triggerId: o } =
|
|
2348
|
+
function vn({ children: e, className: t, forceMount: n = !1, ...r }) {
|
|
2349
|
+
let { contentId: i, isOpen: a, triggerId: o } = fn("AccordionContent"), s = pn[mn(S())];
|
|
2350
2350
|
return !n && !a ? null : /* @__PURE__ */ (0, b.jsx)("div", {
|
|
2351
2351
|
id: i,
|
|
2352
2352
|
role: "region",
|
|
2353
2353
|
"aria-labelledby": o,
|
|
2354
2354
|
hidden: !a,
|
|
2355
|
-
className:
|
|
2355
|
+
className: q("px-4 pb-4 text-sm leading-6", s.content, t),
|
|
2356
2356
|
...r,
|
|
2357
2357
|
children: e
|
|
2358
2358
|
});
|
|
2359
2359
|
}
|
|
2360
2360
|
//#endregion
|
|
2361
2361
|
//#region src/lib/components/badge/Badge.jsx
|
|
2362
|
-
var
|
|
2362
|
+
var yn = { base: "inline-flex items-center border font-medium" }, bn = {
|
|
2363
2363
|
sm: "px-2.5 py-1 text-xs",
|
|
2364
2364
|
md: "px-3 py-1.5 text-sm"
|
|
2365
|
-
},
|
|
2365
|
+
}, xn = {
|
|
2366
2366
|
light: {
|
|
2367
2367
|
solid: {
|
|
2368
2368
|
primary: "border-blue-700 bg-blue-700 text-white",
|
|
@@ -2422,22 +2422,22 @@ var bn = { base: "inline-flex items-center border font-medium" }, xn = {
|
|
|
2422
2422
|
}
|
|
2423
2423
|
}
|
|
2424
2424
|
};
|
|
2425
|
-
function
|
|
2425
|
+
function Sn(e) {
|
|
2426
2426
|
return e === "dark" ? "dark" : "light";
|
|
2427
2427
|
}
|
|
2428
|
-
var
|
|
2429
|
-
let s =
|
|
2428
|
+
var Cn = a(function({ children: e, className: t, color: n = "neutral", size: r = "sm", variant: i = "soft", ...a }, o) {
|
|
2429
|
+
let s = Sn(S()), c = xn[s][i] ?? xn[s].soft, l = Bt(Dt, n, "neutral"), u = Bt(kt, r, "sm");
|
|
2430
2430
|
return /* @__PURE__ */ (0, b.jsx)("span", {
|
|
2431
2431
|
ref: o,
|
|
2432
|
-
className:
|
|
2432
|
+
className: q(yn.base, st(u), bn[u] ?? bn.sm, c[l] ?? c.neutral, t),
|
|
2433
2433
|
...a,
|
|
2434
2434
|
children: e
|
|
2435
2435
|
});
|
|
2436
|
-
}),
|
|
2436
|
+
}), wn = [
|
|
2437
2437
|
"relative inline-flex items-center justify-center border font-medium",
|
|
2438
2438
|
"cursor-pointer gap-2 transition-[background-color,border-color,color,transform,filter] duration-200",
|
|
2439
2439
|
"focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"
|
|
2440
|
-
].join(" "),
|
|
2440
|
+
].join(" "), Tn = {
|
|
2441
2441
|
default: {
|
|
2442
2442
|
sm: "h-9 min-w-[5.5rem] px-3.5 text-sm",
|
|
2443
2443
|
md: "h-11 min-w-[6.5rem] px-[1.125rem] text-sm",
|
|
@@ -2459,7 +2459,7 @@ var wn = a(function({ children: e, className: t, color: n = "neutral", size: r =
|
|
|
2459
2459
|
xl: "h-14 min-w-[8.5rem] px-6 text-lg",
|
|
2460
2460
|
"2xl": "h-16 min-w-[9.5rem] px-7 text-lg"
|
|
2461
2461
|
}
|
|
2462
|
-
},
|
|
2462
|
+
}, En = {
|
|
2463
2463
|
light: {
|
|
2464
2464
|
solid: {
|
|
2465
2465
|
neutral: "border-neutral-700 bg-neutral-700 text-white hover:border-neutral-800 hover:bg-neutral-800 focus-visible:outline-neutral-700",
|
|
@@ -2531,29 +2531,29 @@ var wn = a(function({ children: e, className: t, color: n = "neutral", size: r =
|
|
|
2531
2531
|
}
|
|
2532
2532
|
}
|
|
2533
2533
|
};
|
|
2534
|
-
function
|
|
2534
|
+
function Dn(e) {
|
|
2535
2535
|
return e === "dark" ? "dark" : "light";
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2538
|
-
return
|
|
2537
|
+
function On(e) {
|
|
2538
|
+
return Bt(jt, e, "default");
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2541
|
-
return
|
|
2540
|
+
function kn(e) {
|
|
2541
|
+
return Bt(Ot, e, "md");
|
|
2542
2542
|
}
|
|
2543
|
-
function
|
|
2544
|
-
let n =
|
|
2545
|
-
return
|
|
2543
|
+
function An(e, t) {
|
|
2544
|
+
let n = Dn(e), r = Bt(At, t, "solid");
|
|
2545
|
+
return En[n][r] ? r : "solid";
|
|
2546
2546
|
}
|
|
2547
|
-
function
|
|
2548
|
-
let i =
|
|
2549
|
-
return
|
|
2547
|
+
function jn(e, t, n, r = "primary") {
|
|
2548
|
+
let i = Dn(e), a = An(i, t), o = Bt(Et, r, "primary"), s = Bt(Et, n, o);
|
|
2549
|
+
return En[i][a][s] ? s : o;
|
|
2550
2550
|
}
|
|
2551
|
-
function
|
|
2552
|
-
return e === "pill" ? "rounded-full" :
|
|
2551
|
+
function Mn(e, t) {
|
|
2552
|
+
return e === "pill" ? "rounded-full" : st(t);
|
|
2553
2553
|
}
|
|
2554
2554
|
//#endregion
|
|
2555
2555
|
//#region src/lib/components/link/Link.jsx
|
|
2556
|
-
var
|
|
2556
|
+
var Nn = {
|
|
2557
2557
|
light: {
|
|
2558
2558
|
default: "text-blue-700 hover:text-blue-800 focus-visible:outline-blue-300",
|
|
2559
2559
|
muted: "text-slate-600 hover:text-slate-950 focus-visible:outline-slate-300",
|
|
@@ -2565,11 +2565,11 @@ var Pn = {
|
|
|
2565
2565
|
subtle: "text-stone-400 hover:text-stone-50 focus-visible:outline-zinc-700"
|
|
2566
2566
|
}
|
|
2567
2567
|
};
|
|
2568
|
-
function
|
|
2568
|
+
function Pn(e) {
|
|
2569
2569
|
return e === "dark" ? "dark" : "light";
|
|
2570
2570
|
}
|
|
2571
|
-
var
|
|
2572
|
-
let y =
|
|
2571
|
+
var Fn = a(function({ "aria-label": e, "aria-labelledby": t, activeMotion: n = !0, appearance: r = "text", children: i, className: a, color: o = "primary", disabled: s = !1, fullWidth: c = !1, onClick: u, shape: d = "default", size: f = "md", tabIndex: p, title: m, underline: h = "hover", variant: g = "default", ..._ }, v) {
|
|
2572
|
+
let y = Pn(S()), x = Nn[y], C = r === "button", w = x[g] ? g : "default", T = An(y, g), E = jn(y, T, o), D = On(d), O = kn(f), k = {
|
|
2573
2573
|
always: "underline underline-offset-4",
|
|
2574
2574
|
hover: "no-underline hover:underline hover:underline-offset-4",
|
|
2575
2575
|
none: "no-underline"
|
|
@@ -2589,17 +2589,17 @@ var In = a(function({ "aria-label": e, "aria-labelledby": t, activeMotion: n = !
|
|
|
2589
2589
|
e.preventDefault();
|
|
2590
2590
|
} : u,
|
|
2591
2591
|
tabIndex: s ? -1 : p,
|
|
2592
|
-
className:
|
|
2593
|
-
|
|
2592
|
+
className: q(C ? wn : "inline-flex items-center gap-1 text-sm font-medium outline-none transition-colors duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2", C ? [
|
|
2593
|
+
Mn(D, O),
|
|
2594
2594
|
n && "active:translate-y-px active:scale-[0.99] active:brightness-[0.97] active:saturate-125",
|
|
2595
|
-
|
|
2596
|
-
|
|
2595
|
+
Tn[D][O] ?? Tn[D].md,
|
|
2596
|
+
En[y][T]?.[E] ?? En[y].solid.primary,
|
|
2597
2597
|
c && "w-full"
|
|
2598
2598
|
] : [x[w], k[h] ?? k.hover], s && "pointer-events-none opacity-60", a),
|
|
2599
2599
|
..._,
|
|
2600
2600
|
children: i
|
|
2601
2601
|
});
|
|
2602
|
-
}),
|
|
2602
|
+
}), In = {
|
|
2603
2603
|
light: {
|
|
2604
2604
|
current: "text-slate-950",
|
|
2605
2605
|
separator: "text-slate-400"
|
|
@@ -2609,10 +2609,10 @@ var In = a(function({ "aria-label": e, "aria-labelledby": t, activeMotion: n = !
|
|
|
2609
2609
|
separator: "text-stone-500"
|
|
2610
2610
|
}
|
|
2611
2611
|
};
|
|
2612
|
-
function
|
|
2612
|
+
function Ln(e) {
|
|
2613
2613
|
return e === "dark" ? "dark" : "light";
|
|
2614
2614
|
}
|
|
2615
|
-
var
|
|
2615
|
+
var Rn = a(function({ children: e, className: t, ...n }, r) {
|
|
2616
2616
|
return /* @__PURE__ */ (0, b.jsx)("nav", {
|
|
2617
2617
|
ref: r,
|
|
2618
2618
|
"aria-label": "Breadcrumb",
|
|
@@ -2620,24 +2620,24 @@ var zn = a(function({ children: e, className: t, ...n }, r) {
|
|
|
2620
2620
|
...n,
|
|
2621
2621
|
children: e
|
|
2622
2622
|
});
|
|
2623
|
-
}),
|
|
2624
|
-
let c = Ln
|
|
2623
|
+
}), zn = a(function({ children: e, className: r, separator: i = "/", separatorClassName: a, ...o }, s) {
|
|
2624
|
+
let c = In[Ln(S())], l = t.toArray(e), u = l.some((e) => typeof e == "object" && e?.type && (e.type.displayName === "BreadcrumbSeparator" || e.type.name === "BreadcrumbSeparator"));
|
|
2625
2625
|
return /* @__PURE__ */ (0, b.jsx)("ol", {
|
|
2626
2626
|
ref: s,
|
|
2627
|
-
className:
|
|
2627
|
+
className: q("flex flex-wrap items-center gap-2 text-sm", r),
|
|
2628
2628
|
...o,
|
|
2629
|
-
children: u ? l : l.map((e, t) => /* @__PURE__ */ (0, b.jsxs)(n, { children: [e, t < l.length - 1 ? /* @__PURE__ */ (0, b.jsx)(
|
|
2630
|
-
className:
|
|
2629
|
+
children: u ? l : l.map((e, t) => /* @__PURE__ */ (0, b.jsxs)(n, { children: [e, t < l.length - 1 ? /* @__PURE__ */ (0, b.jsx)(Hn, {
|
|
2630
|
+
className: q(c.separator, a),
|
|
2631
2631
|
children: i
|
|
2632
2632
|
}) : null] }, e.key ?? `breadcrumb-item-${t}`))
|
|
2633
2633
|
});
|
|
2634
|
-
}),
|
|
2635
|
-
let m = Ln
|
|
2634
|
+
}), Bn = a(function({ allowLink: e = !1, children: n, className: r, contentClassName: i, current: a = !1, href: o, linkVariant: s = "muted", rel: c, target: l, title: u, underline: d = "hover", ...f }, p) {
|
|
2635
|
+
let m = In[Ln(S())], h = !a && (e || !!o), g = t.toArray(n).some((e) => typeof e == "object");
|
|
2636
2636
|
return /* @__PURE__ */ (0, b.jsx)("li", {
|
|
2637
2637
|
ref: p,
|
|
2638
|
-
className:
|
|
2638
|
+
className: q("inline-flex items-center gap-2", r),
|
|
2639
2639
|
...f,
|
|
2640
|
-
children: h ? /* @__PURE__ */ (0, b.jsx)(
|
|
2640
|
+
children: h ? /* @__PURE__ */ (0, b.jsx)(Fn, {
|
|
2641
2641
|
href: o,
|
|
2642
2642
|
rel: c,
|
|
2643
2643
|
target: l,
|
|
@@ -2648,49 +2648,49 @@ var zn = a(function({ children: e, className: t, ...n }, r) {
|
|
|
2648
2648
|
children: n
|
|
2649
2649
|
}) : !a && g ? n : /* @__PURE__ */ (0, b.jsx)("span", {
|
|
2650
2650
|
"aria-current": a ? "page" : void 0,
|
|
2651
|
-
className:
|
|
2651
|
+
className: q(a && ["font-medium", m.current], i),
|
|
2652
2652
|
title: u,
|
|
2653
2653
|
children: n
|
|
2654
2654
|
})
|
|
2655
2655
|
});
|
|
2656
|
-
}),
|
|
2657
|
-
return /* @__PURE__ */ (0, b.jsx)(
|
|
2656
|
+
}), Vn = a(function(e, t) {
|
|
2657
|
+
return /* @__PURE__ */ (0, b.jsx)(Fn, {
|
|
2658
2658
|
ref: t,
|
|
2659
2659
|
variant: "muted",
|
|
2660
2660
|
underline: "hover",
|
|
2661
2661
|
...e
|
|
2662
2662
|
});
|
|
2663
|
-
}),
|
|
2664
|
-
let i = Ln
|
|
2663
|
+
}), Hn = a(function({ children: e, className: t, ...n }, r) {
|
|
2664
|
+
let i = In[Ln(S())];
|
|
2665
2665
|
return /* @__PURE__ */ (0, b.jsx)("li", {
|
|
2666
2666
|
ref: r,
|
|
2667
2667
|
"aria-hidden": "true",
|
|
2668
|
-
className:
|
|
2668
|
+
className: q("inline-flex items-center", i.separator, t),
|
|
2669
2669
|
...n,
|
|
2670
2670
|
children: e ?? "/"
|
|
2671
2671
|
});
|
|
2672
2672
|
});
|
|
2673
|
-
|
|
2674
|
-
var
|
|
2675
|
-
let i = Ln
|
|
2673
|
+
Hn.displayName = "BreadcrumbSeparator";
|
|
2674
|
+
var Un = a(function({ children: e, className: t, ...n }, r) {
|
|
2675
|
+
let i = In[Ln(S())];
|
|
2676
2676
|
return /* @__PURE__ */ (0, b.jsx)("span", {
|
|
2677
2677
|
ref: r,
|
|
2678
2678
|
"aria-current": "page",
|
|
2679
|
-
className:
|
|
2679
|
+
className: q("font-medium", i.current, t),
|
|
2680
2680
|
...n,
|
|
2681
2681
|
children: e
|
|
2682
2682
|
});
|
|
2683
|
-
}),
|
|
2683
|
+
}), Wn = {
|
|
2684
2684
|
spacing: "gap-2",
|
|
2685
2685
|
disabled: "disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-60"
|
|
2686
|
-
},
|
|
2686
|
+
}, Gn = {
|
|
2687
2687
|
idle: "",
|
|
2688
2688
|
loading: "text-current"
|
|
2689
|
-
},
|
|
2689
|
+
}, Kn = {
|
|
2690
2690
|
active: "brightness-[0.97] saturate-125",
|
|
2691
2691
|
pressed: "translate-y-px scale-[0.99]"
|
|
2692
2692
|
};
|
|
2693
|
-
function
|
|
2693
|
+
function qn() {
|
|
2694
2694
|
return /* @__PURE__ */ (0, b.jsxs)("svg", {
|
|
2695
2695
|
"aria-hidden": "true",
|
|
2696
2696
|
viewBox: "0 0 24 24",
|
|
@@ -2712,8 +2712,8 @@ function Jn() {
|
|
|
2712
2712
|
})]
|
|
2713
2713
|
});
|
|
2714
2714
|
}
|
|
2715
|
-
var
|
|
2716
|
-
let C =
|
|
2715
|
+
var Jn = a(function({ "aria-label": e, "aria-labelledby": t, active: n = !1, activeMotion: r = !0, children: i, className: a, disabled: o = !1, fullWidth: s = !1, loading: c = !1, loadingText: u, pressed: d = !1, spinner: f = !0, color: p = "primary", shape: m = "default", variant: h = "solid", size: g = "md", title: _, type: v = "button", ...y }, x) {
|
|
2716
|
+
let C = Dn(S()), w = o || c, T = n || d, E = An(C, h), D = c ? Gn.loading : Gn.idle, O = jn(C, E, p), k = On(m), A = kn(g), j = g !== "sm" && k !== "square", M = i ?? u, N = u ?? i, P = Tn[k][A] ?? Tn[k].md ?? Tn.default.md, F = Mn(k, A);
|
|
2717
2717
|
return l(() => {}, [
|
|
2718
2718
|
e,
|
|
2719
2719
|
t,
|
|
@@ -2730,25 +2730,25 @@ var Yn = a(function({ "aria-label": e, "aria-labelledby": t, active: n = !1, act
|
|
|
2730
2730
|
title: _,
|
|
2731
2731
|
"data-active": T || void 0,
|
|
2732
2732
|
"data-pressed": d || void 0,
|
|
2733
|
-
className:
|
|
2733
|
+
className: q(wn, r && "active:translate-y-px active:scale-[0.99] active:brightness-[0.97] active:saturate-125", Wn.spacing, Wn.disabled, s && "w-full", T && Kn.active, d && Kn.pressed, F, P, D, En[C][E]?.[O] ?? En[C].solid.primary, a),
|
|
2734
2734
|
...y,
|
|
2735
2735
|
children: [/* @__PURE__ */ (0, b.jsx)("span", {
|
|
2736
2736
|
"aria-hidden": c || void 0,
|
|
2737
|
-
className:
|
|
2737
|
+
className: q("inline-flex items-center gap-2", c && "invisible"),
|
|
2738
2738
|
children: M
|
|
2739
2739
|
}), c ? /* @__PURE__ */ (0, b.jsxs)("span", {
|
|
2740
2740
|
className: "absolute inset-0 inline-flex items-center justify-center gap-2",
|
|
2741
|
-
children: [f ? /* @__PURE__ */ (0, b.jsx)(
|
|
2741
|
+
children: [f ? /* @__PURE__ */ (0, b.jsx)(qn, {}) : null, j ? /* @__PURE__ */ (0, b.jsx)("span", { children: N }) : null]
|
|
2742
2742
|
}) : null]
|
|
2743
2743
|
});
|
|
2744
|
-
}),
|
|
2745
|
-
function
|
|
2746
|
-
let t = c(
|
|
2744
|
+
}), Yn = i(null);
|
|
2745
|
+
function Xn(e) {
|
|
2746
|
+
let t = c(Yn);
|
|
2747
2747
|
return !t && e ? null : t;
|
|
2748
2748
|
}
|
|
2749
2749
|
//#endregion
|
|
2750
2750
|
//#region src/lib/components/form-control/FormControl.jsx
|
|
2751
|
-
var
|
|
2751
|
+
var Zn = {
|
|
2752
2752
|
light: {
|
|
2753
2753
|
description: "text-slate-500",
|
|
2754
2754
|
message: "text-red-600"
|
|
@@ -2758,10 +2758,10 @@ var Qn = {
|
|
|
2758
2758
|
message: "text-red-300"
|
|
2759
2759
|
}
|
|
2760
2760
|
};
|
|
2761
|
-
function
|
|
2761
|
+
function Qn(e) {
|
|
2762
2762
|
return e === "dark" ? "dark" : "light";
|
|
2763
2763
|
}
|
|
2764
|
-
function
|
|
2764
|
+
function $n({ children: e, className: t, disabled: n = !1, id: r, invalid: i = !1, required: a = !1, ...o }) {
|
|
2765
2765
|
let s = u(), c = r ?? `quickit-field-${s}`, l = f(() => ({
|
|
2766
2766
|
controlId: c,
|
|
2767
2767
|
descriptionId: `${c}-description`,
|
|
@@ -2775,41 +2775,41 @@ function er({ children: e, className: t, disabled: n = !1, id: r, invalid: i = !
|
|
|
2775
2775
|
a,
|
|
2776
2776
|
c
|
|
2777
2777
|
]);
|
|
2778
|
-
return /* @__PURE__ */ (0, b.jsx)(
|
|
2778
|
+
return /* @__PURE__ */ (0, b.jsx)(Yn.Provider, {
|
|
2779
2779
|
value: l,
|
|
2780
2780
|
children: /* @__PURE__ */ (0, b.jsx)("div", {
|
|
2781
|
-
className:
|
|
2781
|
+
className: q("space-y-2", t),
|
|
2782
2782
|
...o,
|
|
2783
2783
|
children: e
|
|
2784
2784
|
})
|
|
2785
2785
|
});
|
|
2786
2786
|
}
|
|
2787
|
-
function
|
|
2788
|
-
let i = Qn
|
|
2787
|
+
function er({ children: e, className: t, id: n, ...r }) {
|
|
2788
|
+
let i = Zn[Qn(S())], a = Xn("FormDescription");
|
|
2789
2789
|
return /* @__PURE__ */ (0, b.jsx)("p", {
|
|
2790
2790
|
id: n ?? a?.descriptionId,
|
|
2791
|
-
className:
|
|
2791
|
+
className: q("text-sm leading-6", i.description, t),
|
|
2792
2792
|
...r,
|
|
2793
2793
|
children: e
|
|
2794
2794
|
});
|
|
2795
2795
|
}
|
|
2796
|
-
function
|
|
2797
|
-
let i = Qn
|
|
2796
|
+
function tr({ children: e, className: t, id: n, ...r }) {
|
|
2797
|
+
let i = Zn[Qn(S())], a = Xn("FormMessage");
|
|
2798
2798
|
return e ? /* @__PURE__ */ (0, b.jsx)("p", {
|
|
2799
2799
|
id: n ?? a?.messageId,
|
|
2800
|
-
className:
|
|
2800
|
+
className: q("text-sm leading-6", i.message, t),
|
|
2801
2801
|
...r,
|
|
2802
2802
|
children: e
|
|
2803
2803
|
}) : null;
|
|
2804
2804
|
}
|
|
2805
2805
|
//#endregion
|
|
2806
2806
|
//#region src/lib/components/form-control/useFormControl.js
|
|
2807
|
-
function
|
|
2808
|
-
return
|
|
2807
|
+
function nr() {
|
|
2808
|
+
return Xn();
|
|
2809
2809
|
}
|
|
2810
2810
|
//#endregion
|
|
2811
2811
|
//#region src/lib/components/label/Label.jsx
|
|
2812
|
-
var
|
|
2812
|
+
var rr = {
|
|
2813
2813
|
light: {
|
|
2814
2814
|
base: "text-slate-950",
|
|
2815
2815
|
muted: "text-red-600"
|
|
@@ -2819,15 +2819,15 @@ var ir = {
|
|
|
2819
2819
|
muted: "text-red-300"
|
|
2820
2820
|
}
|
|
2821
2821
|
};
|
|
2822
|
-
function
|
|
2822
|
+
function ir(e) {
|
|
2823
2823
|
return e === "dark" ? "dark" : "light";
|
|
2824
2824
|
}
|
|
2825
|
-
var
|
|
2826
|
-
let s = ir
|
|
2825
|
+
var ar = a(function({ children: e, className: t, htmlFor: n, optional: r = !1, requiredIndicator: i = !0, ...a }, o) {
|
|
2826
|
+
let s = rr[ir(S())], c = nr(), l = i && c?.required && !r;
|
|
2827
2827
|
return /* @__PURE__ */ (0, b.jsxs)("label", {
|
|
2828
2828
|
ref: o,
|
|
2829
2829
|
htmlFor: n ?? c?.controlId,
|
|
2830
|
-
className:
|
|
2830
|
+
className: q("inline-flex cursor-pointer items-center gap-1.5 text-sm font-medium leading-6", c?.disabled && "cursor-not-allowed opacity-60", s.base, t),
|
|
2831
2831
|
...a,
|
|
2832
2832
|
children: [
|
|
2833
2833
|
/* @__PURE__ */ (0, b.jsx)("span", { children: e }),
|
|
@@ -2842,7 +2842,7 @@ var or = a(function({ children: e, className: t, htmlFor: n, optional: r = !1, r
|
|
|
2842
2842
|
}) : null
|
|
2843
2843
|
]
|
|
2844
2844
|
});
|
|
2845
|
-
}),
|
|
2845
|
+
}), or = {
|
|
2846
2846
|
sm: {
|
|
2847
2847
|
root: "size-4",
|
|
2848
2848
|
box: "size-4 rounded-[0.35rem]",
|
|
@@ -2853,7 +2853,7 @@ var or = a(function({ children: e, className: t, htmlFor: n, optional: r = !1, r
|
|
|
2853
2853
|
box: "size-5 rounded-[0.45rem]",
|
|
2854
2854
|
icon: "size-3.5"
|
|
2855
2855
|
}
|
|
2856
|
-
},
|
|
2856
|
+
}, sr = {
|
|
2857
2857
|
light: {
|
|
2858
2858
|
box: "border-slate-300 bg-white",
|
|
2859
2859
|
focus: "peer-focus-visible:outline-slate-300",
|
|
@@ -2927,16 +2927,16 @@ var or = a(function({ children: e, className: t, htmlFor: n, optional: r = !1, r
|
|
|
2927
2927
|
invalidIcon: "text-neutral-950"
|
|
2928
2928
|
}
|
|
2929
2929
|
};
|
|
2930
|
-
function
|
|
2930
|
+
function cr(e) {
|
|
2931
2931
|
return e === "dark" ? "dark" : "light";
|
|
2932
2932
|
}
|
|
2933
|
-
var
|
|
2934
|
-
let p = u(), m = cr
|
|
2933
|
+
var lr = a(function({ className: e, color: t = "neutral", containerClassName: n, disabled: r = !1, id: i, invalid: a = !1, label: o, labelClassName: s, required: c = !1, size: l = "md", ...d }, f) {
|
|
2934
|
+
let p = u(), m = sr[cr(S())], h = nr(), g = a || h?.invalid, _ = r || h?.disabled, v = c || h?.required, y = m.colors[t] ? t : "neutral", x = or[l] ? l : "md", C = i ?? h?.controlId ?? p, w = [
|
|
2935
2935
|
d["aria-describedby"],
|
|
2936
2936
|
h?.descriptionId,
|
|
2937
2937
|
g ? h?.messageId : null
|
|
2938
2938
|
].filter(Boolean).join(" ") || void 0, T = /* @__PURE__ */ (0, b.jsxs)("span", {
|
|
2939
|
-
className:
|
|
2939
|
+
className: q("relative inline-flex shrink-0", or[x].root, e),
|
|
2940
2940
|
children: [/* @__PURE__ */ (0, b.jsx)("input", {
|
|
2941
2941
|
ref: f,
|
|
2942
2942
|
type: "checkbox",
|
|
@@ -2949,10 +2949,10 @@ var ur = a(function({ className: e, color: t = "neutral", containerClassName: n,
|
|
|
2949
2949
|
...d
|
|
2950
2950
|
}), /* @__PURE__ */ (0, b.jsx)("span", {
|
|
2951
2951
|
"aria-hidden": "true",
|
|
2952
|
-
className:
|
|
2952
|
+
className: q("pointer-events-none inline-flex items-center justify-center border outline-none transition-[background-color,border-color,opacity] duration-200 peer-disabled:opacity-60 peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-checked:[&_svg]:opacity-100", or[x].box, m.box, m.focus, g ? m.invalid : m.colors[y].box),
|
|
2953
2953
|
children: /* @__PURE__ */ (0, b.jsx)("svg", {
|
|
2954
2954
|
viewBox: "0 0 16 16",
|
|
2955
|
-
className:
|
|
2955
|
+
className: q("pointer-events-none opacity-0 transition-opacity duration-150", or[x].icon, g ? m.invalidIcon : m.colors[y].icon),
|
|
2956
2956
|
fill: "none",
|
|
2957
2957
|
children: /* @__PURE__ */ (0, b.jsx)("path", {
|
|
2958
2958
|
d: "M4 8.5 6.5 11 12 5.5",
|
|
@@ -2965,8 +2965,8 @@ var ur = a(function({ className: e, color: t = "neutral", containerClassName: n,
|
|
|
2965
2965
|
})]
|
|
2966
2966
|
});
|
|
2967
2967
|
return o ? /* @__PURE__ */ (0, b.jsxs)("span", {
|
|
2968
|
-
className:
|
|
2969
|
-
children: [T, /* @__PURE__ */ (0, b.jsx)(
|
|
2968
|
+
className: q("inline-flex items-center gap-3", n),
|
|
2969
|
+
children: [T, /* @__PURE__ */ (0, b.jsx)(ar, {
|
|
2970
2970
|
htmlFor: C,
|
|
2971
2971
|
className: s,
|
|
2972
2972
|
children: o
|
|
@@ -2975,39 +2975,39 @@ var ur = a(function({ className: e, color: t = "neutral", containerClassName: n,
|
|
|
2975
2975
|
});
|
|
2976
2976
|
//#endregion
|
|
2977
2977
|
//#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
2978
|
-
function
|
|
2978
|
+
function ur() {
|
|
2979
2979
|
return typeof window < "u";
|
|
2980
2980
|
}
|
|
2981
|
-
function
|
|
2982
|
-
return
|
|
2981
|
+
function dr(e) {
|
|
2982
|
+
return pr(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2983
2983
|
}
|
|
2984
|
-
function
|
|
2984
|
+
function J(e) {
|
|
2985
2985
|
var t;
|
|
2986
2986
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
2987
2987
|
}
|
|
2988
|
+
function fr(e) {
|
|
2989
|
+
return ((pr(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
2990
|
+
}
|
|
2988
2991
|
function pr(e) {
|
|
2989
|
-
return (
|
|
2992
|
+
return ur() ? e instanceof Node || e instanceof J(e).Node : !1;
|
|
2990
2993
|
}
|
|
2991
|
-
function
|
|
2992
|
-
return
|
|
2994
|
+
function Y(e) {
|
|
2995
|
+
return ur() ? e instanceof Element || e instanceof J(e).Element : !1;
|
|
2993
2996
|
}
|
|
2994
|
-
function
|
|
2995
|
-
return
|
|
2997
|
+
function X(e) {
|
|
2998
|
+
return ur() ? e instanceof HTMLElement || e instanceof J(e).HTMLElement : !1;
|
|
2996
2999
|
}
|
|
2997
|
-
function
|
|
2998
|
-
return
|
|
3000
|
+
function mr(e) {
|
|
3001
|
+
return !ur() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof J(e).ShadowRoot;
|
|
2999
3002
|
}
|
|
3000
3003
|
function hr(e) {
|
|
3001
|
-
|
|
3004
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = Er(e);
|
|
3005
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
3002
3006
|
}
|
|
3003
3007
|
function gr(e) {
|
|
3004
|
-
|
|
3005
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
3008
|
+
return /^(table|td|th)$/.test(dr(e));
|
|
3006
3009
|
}
|
|
3007
3010
|
function _r(e) {
|
|
3008
|
-
return /^(table|td|th)$/.test(fr(e));
|
|
3009
|
-
}
|
|
3010
|
-
function vr(e) {
|
|
3011
3011
|
try {
|
|
3012
3012
|
if (e.matches(":popover-open")) return !0;
|
|
3013
3013
|
} catch {}
|
|
@@ -3017,31 +3017,31 @@ function vr(e) {
|
|
|
3017
3017
|
return !1;
|
|
3018
3018
|
}
|
|
3019
3019
|
}
|
|
3020
|
-
var
|
|
3020
|
+
var vr = /transform|translate|scale|rotate|perspective|filter/, yr = /paint|layout|strict|content/, br = (e) => !!e && e !== "none", xr;
|
|
3021
|
+
function Sr(e) {
|
|
3022
|
+
let t = Y(e) ? Er(e) : e;
|
|
3023
|
+
return br(t.transform) || br(t.translate) || br(t.scale) || br(t.rotate) || br(t.perspective) || !wr() && (br(t.backdropFilter) || br(t.filter)) || vr.test(t.willChange || "") || yr.test(t.contain || "");
|
|
3024
|
+
}
|
|
3021
3025
|
function Cr(e) {
|
|
3022
|
-
let t =
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
for (; Y(t) && !Er(t);) {
|
|
3028
|
-
if (Cr(t)) return t;
|
|
3029
|
-
if (vr(t)) return null;
|
|
3030
|
-
t = kr(t);
|
|
3026
|
+
let t = Or(e);
|
|
3027
|
+
for (; X(t) && !Tr(t);) {
|
|
3028
|
+
if (Sr(t)) return t;
|
|
3029
|
+
if (_r(t)) return null;
|
|
3030
|
+
t = Or(t);
|
|
3031
3031
|
}
|
|
3032
3032
|
return null;
|
|
3033
3033
|
}
|
|
3034
|
-
function
|
|
3035
|
-
return
|
|
3034
|
+
function wr() {
|
|
3035
|
+
return xr ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), xr;
|
|
3036
|
+
}
|
|
3037
|
+
function Tr(e) {
|
|
3038
|
+
return /^(html|body|#document)$/.test(dr(e));
|
|
3036
3039
|
}
|
|
3037
3040
|
function Er(e) {
|
|
3038
|
-
return
|
|
3041
|
+
return J(e).getComputedStyle(e);
|
|
3039
3042
|
}
|
|
3040
3043
|
function Dr(e) {
|
|
3041
|
-
return
|
|
3042
|
-
}
|
|
3043
|
-
function Or(e) {
|
|
3044
|
-
return J(e) ? {
|
|
3044
|
+
return Y(e) ? {
|
|
3045
3045
|
scrollLeft: e.scrollLeft,
|
|
3046
3046
|
scrollTop: e.scrollTop
|
|
3047
3047
|
} : {
|
|
@@ -3049,29 +3049,29 @@ function Or(e) {
|
|
|
3049
3049
|
scrollTop: e.scrollY
|
|
3050
3050
|
};
|
|
3051
3051
|
}
|
|
3052
|
-
function
|
|
3053
|
-
if (
|
|
3054
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
3055
|
-
return
|
|
3052
|
+
function Or(e) {
|
|
3053
|
+
if (dr(e) === "html") return e;
|
|
3054
|
+
let t = e.assignedSlot || e.parentNode || mr(e) && e.host || fr(e);
|
|
3055
|
+
return mr(t) ? t.host : t;
|
|
3056
3056
|
}
|
|
3057
|
-
function
|
|
3058
|
-
let t =
|
|
3059
|
-
return
|
|
3057
|
+
function kr(e) {
|
|
3058
|
+
let t = Or(e);
|
|
3059
|
+
return Tr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : X(t) && hr(t) ? t : kr(t);
|
|
3060
3060
|
}
|
|
3061
|
-
function
|
|
3061
|
+
function Ar(e, t, n) {
|
|
3062
3062
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
3063
|
-
let r =
|
|
3063
|
+
let r = kr(e), i = r === e.ownerDocument?.body, a = J(r);
|
|
3064
3064
|
if (i) {
|
|
3065
|
-
let e =
|
|
3066
|
-
return t.concat(a, a.visualViewport || [],
|
|
3067
|
-
} else return t.concat(r,
|
|
3065
|
+
let e = jr(a);
|
|
3066
|
+
return t.concat(a, a.visualViewport || [], hr(r) ? r : [], e && n ? Ar(e) : []);
|
|
3067
|
+
} else return t.concat(r, Ar(r, [], n));
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3069
|
+
function jr(e) {
|
|
3070
3070
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
3071
3071
|
}
|
|
3072
3072
|
//#endregion
|
|
3073
3073
|
//#region node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
3074
|
-
var
|
|
3074
|
+
var Mr = Math.min, Nr = Math.max, Pr = Math.round, Fr = Math.floor, Ir = (e) => ({
|
|
3075
3075
|
x: e,
|
|
3076
3076
|
y: e
|
|
3077
3077
|
}), Lr = {
|
|
@@ -3081,7 +3081,7 @@ var Nr = Math.min, X = Math.max, Pr = Math.round, Fr = Math.floor, Ir = (e) => (
|
|
|
3081
3081
|
top: "bottom"
|
|
3082
3082
|
};
|
|
3083
3083
|
function Rr(e, t, n) {
|
|
3084
|
-
return
|
|
3084
|
+
return Nr(e, Mr(t, n));
|
|
3085
3085
|
}
|
|
3086
3086
|
function zr(e, t) {
|
|
3087
3087
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -3373,7 +3373,7 @@ function Ki(e, t) {
|
|
|
3373
3373
|
if (!e || !t) return !1;
|
|
3374
3374
|
let n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
3375
3375
|
if (e.contains(t)) return !0;
|
|
3376
|
-
if (n &&
|
|
3376
|
+
if (n && mr(n)) {
|
|
3377
3377
|
let n = t;
|
|
3378
3378
|
for (; n;) {
|
|
3379
3379
|
if (e === n) return !0;
|
|
@@ -3398,7 +3398,7 @@ function Xi(e) {
|
|
|
3398
3398
|
return e?.ownerDocument || document;
|
|
3399
3399
|
}
|
|
3400
3400
|
function Zi(e) {
|
|
3401
|
-
return
|
|
3401
|
+
return X(e) && e.matches(Bi);
|
|
3402
3402
|
}
|
|
3403
3403
|
function Qi(e) {
|
|
3404
3404
|
return e ? e.getAttribute("role") === "combobox" && Zi(e) : !1;
|
|
@@ -3725,7 +3725,7 @@ var Aa = 50, ja = async (e, t, n) => {
|
|
|
3725
3725
|
y: r
|
|
3726
3726
|
}, p = Gr(i), m = Ur(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
3727
3727
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
3728
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E =
|
|
3728
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Mr(d[_], T), D = Mr(d[v], T), O = E, k = C - h[m] - D, A = C / 2 - h[m] / 2 + w, j = Rr(O, A, k), M = !c.arrow && Vr(i) != null && A !== j && a.reference[m] / 2 - (A < O ? E : D) - h[m] / 2 < 0, N = M ? A < O ? A - O : A - k : 0;
|
|
3729
3729
|
return {
|
|
3730
3730
|
[p]: f[p] + N,
|
|
3731
3731
|
data: {
|
|
@@ -3870,10 +3870,10 @@ var Ia = function(e) {
|
|
|
3870
3870
|
var n, r;
|
|
3871
3871
|
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = zr(e, t), u = await o.detectOverflow(t, l), d = Br(i), f = Vr(i), p = Wr(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
3872
3872
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
3873
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
3873
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = Mr(h - u[g], v), x = Mr(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
3874
3874
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
3875
|
-
let e =
|
|
3876
|
-
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t :
|
|
3875
|
+
let e = Nr(u.left, 0), t = Nr(u.right, 0), n = Nr(u.top, 0), r = Nr(u.bottom, 0);
|
|
3876
|
+
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : Nr(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : Nr(u.top, u.bottom));
|
|
3877
3877
|
}
|
|
3878
3878
|
await c({
|
|
3879
3879
|
...t,
|
|
@@ -3888,7 +3888,7 @@ var Ia = function(e) {
|
|
|
3888
3888
|
//#endregion
|
|
3889
3889
|
//#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
3890
3890
|
function za(e) {
|
|
3891
|
-
let t =
|
|
3891
|
+
let t = Er(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = X(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Pr(n) !== a || Pr(r) !== o;
|
|
3892
3892
|
return s && (n = a, r = o), {
|
|
3893
3893
|
width: n,
|
|
3894
3894
|
height: r,
|
|
@@ -3896,11 +3896,11 @@ function za(e) {
|
|
|
3896
3896
|
};
|
|
3897
3897
|
}
|
|
3898
3898
|
function Ba(e) {
|
|
3899
|
-
return
|
|
3899
|
+
return Y(e) ? e : e.contextElement;
|
|
3900
3900
|
}
|
|
3901
3901
|
function Va(e) {
|
|
3902
3902
|
let t = Ba(e);
|
|
3903
|
-
if (!
|
|
3903
|
+
if (!X(t)) return Ir(1);
|
|
3904
3904
|
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = za(t), o = (a ? Pr(n.width) : n.width) / r, s = (a ? Pr(n.height) : n.height) / i;
|
|
3905
3905
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
3906
3906
|
x: o,
|
|
@@ -3909,25 +3909,25 @@ function Va(e) {
|
|
|
3909
3909
|
}
|
|
3910
3910
|
var Ha = /* @__PURE__ */ Ir(0);
|
|
3911
3911
|
function Ua(e) {
|
|
3912
|
-
let t =
|
|
3913
|
-
return !
|
|
3912
|
+
let t = J(e);
|
|
3913
|
+
return !wr() || !t.visualViewport ? Ha : {
|
|
3914
3914
|
x: t.visualViewport.offsetLeft,
|
|
3915
3915
|
y: t.visualViewport.offsetTop
|
|
3916
3916
|
};
|
|
3917
3917
|
}
|
|
3918
3918
|
function Wa(e, t, n) {
|
|
3919
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
3919
|
+
return t === void 0 && (t = !1), !n || t && n !== J(e) ? !1 : t;
|
|
3920
3920
|
}
|
|
3921
3921
|
function Ga(e, t, n, r) {
|
|
3922
3922
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
3923
3923
|
let i = e.getBoundingClientRect(), a = Ba(e), o = Ir(1);
|
|
3924
|
-
t && (r ?
|
|
3924
|
+
t && (r ? Y(r) && (o = Va(r)) : o = Va(e));
|
|
3925
3925
|
let s = Wa(a, n, r) ? Ua(a) : Ir(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
3926
3926
|
if (a) {
|
|
3927
|
-
let e =
|
|
3927
|
+
let e = J(a), t = r && Y(r) ? J(r) : r, n = e, i = jr(n);
|
|
3928
3928
|
for (; i && r && t !== n;) {
|
|
3929
|
-
let e = Va(i), t = i.getBoundingClientRect(), r =
|
|
3930
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
3929
|
+
let e = Va(i), t = i.getBoundingClientRect(), r = Er(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
3930
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = J(i), i = jr(n);
|
|
3931
3931
|
}
|
|
3932
3932
|
}
|
|
3933
3933
|
return ii({
|
|
@@ -3938,8 +3938,8 @@ function Ga(e, t, n, r) {
|
|
|
3938
3938
|
});
|
|
3939
3939
|
}
|
|
3940
3940
|
function Ka(e, t) {
|
|
3941
|
-
let n =
|
|
3942
|
-
return t ? t.left + n : Ga(
|
|
3941
|
+
let n = Dr(e).scrollLeft;
|
|
3942
|
+
return t ? t.left + n : Ga(fr(e)).left + n;
|
|
3943
3943
|
}
|
|
3944
3944
|
function qa(e, t) {
|
|
3945
3945
|
let n = e.getBoundingClientRect();
|
|
@@ -3949,13 +3949,13 @@ function qa(e, t) {
|
|
|
3949
3949
|
};
|
|
3950
3950
|
}
|
|
3951
3951
|
function Ja(e) {
|
|
3952
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
3952
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = fr(r), s = t ? _r(t.floating) : !1;
|
|
3953
3953
|
if (r === o || s && a) return n;
|
|
3954
3954
|
let c = {
|
|
3955
3955
|
scrollLeft: 0,
|
|
3956
3956
|
scrollTop: 0
|
|
3957
|
-
}, l = Ir(1), u = Ir(0), d =
|
|
3958
|
-
if ((d || !d && !a) && ((
|
|
3957
|
+
}, l = Ir(1), u = Ir(0), d = X(r);
|
|
3958
|
+
if ((d || !d && !a) && ((dr(r) !== "body" || hr(o)) && (c = Dr(r)), d)) {
|
|
3959
3959
|
let e = Ga(r);
|
|
3960
3960
|
l = Va(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
3961
3961
|
}
|
|
@@ -3971,8 +3971,8 @@ function Ya(e) {
|
|
|
3971
3971
|
return Array.from(e.getClientRects());
|
|
3972
3972
|
}
|
|
3973
3973
|
function Xa(e) {
|
|
3974
|
-
let t =
|
|
3975
|
-
return
|
|
3974
|
+
let t = fr(e), n = Dr(e), r = e.ownerDocument.body, i = Nr(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = Nr(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Ka(e), s = -n.scrollTop;
|
|
3975
|
+
return Er(r).direction === "rtl" && (o += Nr(t.clientWidth, r.clientWidth) - i), {
|
|
3976
3976
|
width: i,
|
|
3977
3977
|
height: a,
|
|
3978
3978
|
x: o,
|
|
@@ -3981,10 +3981,10 @@ function Xa(e) {
|
|
|
3981
3981
|
}
|
|
3982
3982
|
var Za = 25;
|
|
3983
3983
|
function Qa(e, t) {
|
|
3984
|
-
let n =
|
|
3984
|
+
let n = J(e), r = fr(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
3985
3985
|
if (i) {
|
|
3986
3986
|
a = i.width, o = i.height;
|
|
3987
|
-
let e =
|
|
3987
|
+
let e = wr();
|
|
3988
3988
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
3989
3989
|
}
|
|
3990
3990
|
let l = Ka(r);
|
|
@@ -4000,7 +4000,7 @@ function Qa(e, t) {
|
|
|
4000
4000
|
};
|
|
4001
4001
|
}
|
|
4002
4002
|
function $a(e, t) {
|
|
4003
|
-
let n = Ga(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a =
|
|
4003
|
+
let n = Ga(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = X(e) ? Va(e) : Ir(1);
|
|
4004
4004
|
return {
|
|
4005
4005
|
width: e.clientWidth * a.x,
|
|
4006
4006
|
height: e.clientHeight * a.y,
|
|
@@ -4011,8 +4011,8 @@ function $a(e, t) {
|
|
|
4011
4011
|
function eo(e, t, n) {
|
|
4012
4012
|
let r;
|
|
4013
4013
|
if (t === "viewport") r = Qa(e, n);
|
|
4014
|
-
else if (t === "document") r = Xa(
|
|
4015
|
-
else if (
|
|
4014
|
+
else if (t === "document") r = Xa(fr(e));
|
|
4015
|
+
else if (Y(t)) r = $a(t, n);
|
|
4016
4016
|
else {
|
|
4017
4017
|
let n = Ua(e);
|
|
4018
4018
|
r = {
|
|
@@ -4025,24 +4025,24 @@ function eo(e, t, n) {
|
|
|
4025
4025
|
return ii(r);
|
|
4026
4026
|
}
|
|
4027
4027
|
function to(e, t) {
|
|
4028
|
-
let n =
|
|
4029
|
-
return n === t || !
|
|
4028
|
+
let n = Or(e);
|
|
4029
|
+
return n === t || !Y(n) || Tr(n) ? !1 : Er(n).position === "fixed" || to(n, t);
|
|
4030
4030
|
}
|
|
4031
4031
|
function no(e, t) {
|
|
4032
4032
|
let n = t.get(e);
|
|
4033
4033
|
if (n) return n;
|
|
4034
|
-
let r =
|
|
4035
|
-
for (;
|
|
4036
|
-
let t =
|
|
4037
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
4034
|
+
let r = Ar(e, [], !1).filter((e) => Y(e) && dr(e) !== "body"), i = null, a = Er(e).position === "fixed", o = a ? Or(e) : e;
|
|
4035
|
+
for (; Y(o) && !Tr(o);) {
|
|
4036
|
+
let t = Er(o), n = Sr(o);
|
|
4037
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || hr(o) && !n && to(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Or(o);
|
|
4038
4038
|
}
|
|
4039
4039
|
return t.set(e, r), r;
|
|
4040
4040
|
}
|
|
4041
4041
|
function ro(e) {
|
|
4042
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
4042
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? _r(t) ? [] : no(t, this._c) : [].concat(n), r], o = eo(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
4043
4043
|
for (let e = 1; e < a.length; e++) {
|
|
4044
4044
|
let n = eo(t, a[e], i);
|
|
4045
|
-
s =
|
|
4045
|
+
s = Nr(n.top, s), c = Mr(n.right, c), l = Mr(n.bottom, l), u = Nr(n.left, u);
|
|
4046
4046
|
}
|
|
4047
4047
|
return {
|
|
4048
4048
|
width: c - u,
|
|
@@ -4059,14 +4059,14 @@ function io(e) {
|
|
|
4059
4059
|
};
|
|
4060
4060
|
}
|
|
4061
4061
|
function ao(e, t, n) {
|
|
4062
|
-
let r =
|
|
4062
|
+
let r = X(t), i = fr(t), a = n === "fixed", o = Ga(e, !0, a, t), s = {
|
|
4063
4063
|
scrollLeft: 0,
|
|
4064
4064
|
scrollTop: 0
|
|
4065
4065
|
}, c = Ir(0);
|
|
4066
4066
|
function l() {
|
|
4067
4067
|
c.x = Ka(i);
|
|
4068
4068
|
}
|
|
4069
|
-
if (r || !r && !a) if ((
|
|
4069
|
+
if (r || !r && !a) if ((dr(t) !== "body" || hr(i)) && (s = Dr(t)), r) {
|
|
4070
4070
|
let e = Ga(t, !0, a, t);
|
|
4071
4071
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
4072
4072
|
} else i && l();
|
|
@@ -4080,28 +4080,28 @@ function ao(e, t, n) {
|
|
|
4080
4080
|
};
|
|
4081
4081
|
}
|
|
4082
4082
|
function oo(e) {
|
|
4083
|
-
return
|
|
4083
|
+
return Er(e).position === "static";
|
|
4084
4084
|
}
|
|
4085
4085
|
function so(e, t) {
|
|
4086
|
-
if (!
|
|
4086
|
+
if (!X(e) || Er(e).position === "fixed") return null;
|
|
4087
4087
|
if (t) return t(e);
|
|
4088
4088
|
let n = e.offsetParent;
|
|
4089
|
-
return
|
|
4089
|
+
return fr(e) === n && (n = n.ownerDocument.body), n;
|
|
4090
4090
|
}
|
|
4091
4091
|
function co(e, t) {
|
|
4092
|
-
let n =
|
|
4093
|
-
if (
|
|
4094
|
-
if (!
|
|
4095
|
-
let t =
|
|
4096
|
-
for (; t && !
|
|
4097
|
-
if (
|
|
4098
|
-
t =
|
|
4092
|
+
let n = J(e);
|
|
4093
|
+
if (_r(e)) return n;
|
|
4094
|
+
if (!X(e)) {
|
|
4095
|
+
let t = Or(e);
|
|
4096
|
+
for (; t && !Tr(t);) {
|
|
4097
|
+
if (Y(t) && !oo(t)) return t;
|
|
4098
|
+
t = Or(t);
|
|
4099
4099
|
}
|
|
4100
4100
|
return n;
|
|
4101
4101
|
}
|
|
4102
4102
|
let r = so(e, t);
|
|
4103
|
-
for (; r &&
|
|
4104
|
-
return r &&
|
|
4103
|
+
for (; r && gr(r) && oo(r);) r = so(r, t);
|
|
4104
|
+
return r && Tr(r) && oo(r) && !Sr(r) ? n : r || Cr(e) || n;
|
|
4105
4105
|
}
|
|
4106
4106
|
var lo = async function(e) {
|
|
4107
4107
|
let t = this.getOffsetParent || co, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -4116,25 +4116,25 @@ var lo = async function(e) {
|
|
|
4116
4116
|
};
|
|
4117
4117
|
};
|
|
4118
4118
|
function uo(e) {
|
|
4119
|
-
return
|
|
4119
|
+
return Er(e).direction === "rtl";
|
|
4120
4120
|
}
|
|
4121
4121
|
var fo = {
|
|
4122
4122
|
convertOffsetParentRelativeRectToViewportRelativeRect: Ja,
|
|
4123
|
-
getDocumentElement:
|
|
4123
|
+
getDocumentElement: fr,
|
|
4124
4124
|
getClippingRect: ro,
|
|
4125
4125
|
getOffsetParent: co,
|
|
4126
4126
|
getElementRects: lo,
|
|
4127
4127
|
getClientRects: Ya,
|
|
4128
4128
|
getDimensions: io,
|
|
4129
4129
|
getScale: Va,
|
|
4130
|
-
isElement:
|
|
4130
|
+
isElement: Y,
|
|
4131
4131
|
isRTL: uo
|
|
4132
4132
|
};
|
|
4133
4133
|
function po(e, t) {
|
|
4134
4134
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
4135
4135
|
}
|
|
4136
4136
|
function mo(e, t) {
|
|
4137
|
-
let n = null, r, i =
|
|
4137
|
+
let n = null, r, i = fr(e);
|
|
4138
4138
|
function a() {
|
|
4139
4139
|
var e;
|
|
4140
4140
|
clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
|
|
@@ -4145,7 +4145,7 @@ function mo(e, t) {
|
|
|
4145
4145
|
if (s || t(), !f || !p) return;
|
|
4146
4146
|
let m = Fr(d), h = Fr(i.clientWidth - (u + f)), g = Fr(i.clientHeight - (d + p)), _ = Fr(u), v = {
|
|
4147
4147
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
4148
|
-
threshold:
|
|
4148
|
+
threshold: Nr(0, Mr(1, c)) || 1
|
|
4149
4149
|
}, y = !0;
|
|
4150
4150
|
function b(t) {
|
|
4151
4151
|
let n = t[0].intersectionRatio;
|
|
@@ -4171,7 +4171,7 @@ function mo(e, t) {
|
|
|
4171
4171
|
}
|
|
4172
4172
|
function ho(e, t, n, r) {
|
|
4173
4173
|
r === void 0 && (r = {});
|
|
4174
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Ba(e), u = i || a ? [...l ?
|
|
4174
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Ba(e), u = i || a ? [...l ? Ar(l) : [], ...t ? Ar(t) : []] : [];
|
|
4175
4175
|
u.forEach((e) => {
|
|
4176
4176
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
4177
4177
|
});
|
|
@@ -4415,7 +4415,7 @@ function qo() {
|
|
|
4415
4415
|
var Jo = Uo.useId || qo, Yo = /* @__PURE__ */ e.forwardRef(function(t, n) {
|
|
4416
4416
|
let { context: { placement: r, elements: { floating: i }, middlewareData: { arrow: a, shift: o } }, width: s = 14, height: c = 7, tipRadius: l = 0, strokeWidth: u = 0, staticOffset: d, stroke: f, d: p, style: { transform: m, ...h } = {}, ...g } = t, _ = Jo(), [v, y] = e.useState(!1);
|
|
4417
4417
|
if (Z(() => {
|
|
4418
|
-
i &&
|
|
4418
|
+
i && Er(i).direction === "rtl" && y(!0);
|
|
4419
4419
|
}, [i]), !i) return null;
|
|
4420
4420
|
let [x, S] = r.split("-"), C = x === "top" || x === "bottom", w = d;
|
|
4421
4421
|
(C && o != null && o.x || !C && o != null && o.y) && (w = null);
|
|
@@ -4598,7 +4598,7 @@ function as(t, n) {
|
|
|
4598
4598
|
function l(e) {
|
|
4599
4599
|
M() || k(e, !1);
|
|
4600
4600
|
}
|
|
4601
|
-
if (
|
|
4601
|
+
if (Y(s.domReference)) {
|
|
4602
4602
|
let i = s.domReference, a = s.floating;
|
|
4603
4603
|
return r && i.addEventListener("mouseleave", n), p && i.addEventListener("mousemove", e, { once: !0 }), i.addEventListener("mouseenter", e), i.addEventListener("mouseleave", t), a && (a.addEventListener("mouseleave", n), a.addEventListener("mouseenter", o), a.addEventListener("mouseleave", l)), () => {
|
|
4604
4604
|
r && i.removeEventListener("mouseleave", n), p && i.removeEventListener("mousemove", e), i.removeEventListener("mouseenter", e), i.removeEventListener("mouseleave", t), a && (a.removeEventListener("mouseleave", n), a.removeEventListener("mouseenter", o), a.removeEventListener("mouseleave", l));
|
|
@@ -4627,7 +4627,7 @@ function as(t, n) {
|
|
|
4627
4627
|
if (c && r && (e = g.current) != null && (e = e.__options) != null && e.blockPointerEvents && O()) {
|
|
4628
4628
|
T.current = !0;
|
|
4629
4629
|
let e = s.floating;
|
|
4630
|
-
if (
|
|
4630
|
+
if (Y(s.domReference) && e) {
|
|
4631
4631
|
var t;
|
|
4632
4632
|
let n = Xi(s.floating).body;
|
|
4633
4633
|
n.setAttribute(ns, "");
|
|
@@ -4695,7 +4695,7 @@ function cs(e, t) {
|
|
|
4695
4695
|
if (!e || !t) return !1;
|
|
4696
4696
|
let n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
4697
4697
|
if (e.contains(t)) return !0;
|
|
4698
|
-
if (n &&
|
|
4698
|
+
if (n && mr(n)) {
|
|
4699
4699
|
let n = t;
|
|
4700
4700
|
for (; n;) {
|
|
4701
4701
|
if (e === n) return !0;
|
|
@@ -4758,7 +4758,7 @@ function hs(t) {
|
|
|
4758
4758
|
}, [n, i]), Z(() => {
|
|
4759
4759
|
if (r === null || !i || c.current) return;
|
|
4760
4760
|
let e = r || a?.portalNode;
|
|
4761
|
-
e && !
|
|
4761
|
+
e && !pr(e) && (e = e.current), e ||= document.body;
|
|
4762
4762
|
let t = null;
|
|
4763
4763
|
n && (t = document.createElement("div"), t.id = n, e.appendChild(t));
|
|
4764
4764
|
let o = document.createElement("div");
|
|
@@ -4830,10 +4830,10 @@ function gs(t) {
|
|
|
4830
4830
|
}
|
|
4831
4831
|
var _s = () => e.useContext(ps);
|
|
4832
4832
|
function vs(e) {
|
|
4833
|
-
return
|
|
4833
|
+
return X(e.target) && e.target.tagName === "BUTTON";
|
|
4834
4834
|
}
|
|
4835
4835
|
function ys(e) {
|
|
4836
|
-
return
|
|
4836
|
+
return X(e.target) && e.target.tagName === "A";
|
|
4837
4837
|
}
|
|
4838
4838
|
function bs(e) {
|
|
4839
4839
|
return Zi(e);
|
|
@@ -4915,15 +4915,15 @@ function Ts(t, n) {
|
|
|
4915
4915
|
o.current.insideReactTree = !1;
|
|
4916
4916
|
let n = y.current;
|
|
4917
4917
|
if (y.current = !1, u === "click" && n || t || typeof v == "function" && !v(e)) return;
|
|
4918
|
-
let r = qi(e), s = "[" + ts("inert") + "]", c = Xi(a.floating).querySelectorAll(s), l =
|
|
4919
|
-
for (; l && !
|
|
4920
|
-
let e =
|
|
4921
|
-
if (
|
|
4918
|
+
let r = qi(e), s = "[" + ts("inert") + "]", c = Xi(a.floating).querySelectorAll(s), l = Y(r) ? r : null;
|
|
4919
|
+
for (; l && !Tr(l);) {
|
|
4920
|
+
let e = Or(l);
|
|
4921
|
+
if (Tr(e) || !Y(e)) break;
|
|
4922
4922
|
l = e;
|
|
4923
4923
|
}
|
|
4924
|
-
if (c.length &&
|
|
4925
|
-
if (
|
|
4926
|
-
let t =
|
|
4924
|
+
if (c.length && Y(r) && !Yi(r) && !Ki(r, a.floating) && Array.from(c).every((e) => !Ki(l, e))) return;
|
|
4925
|
+
if (X(r) && A) {
|
|
4926
|
+
let t = Tr(r), n = Er(r), i = /auto|scroll/, a = t || i.test(n.overflowX), o = t || i.test(n.overflowY), s = a && r.clientWidth > 0 && r.scrollWidth > r.clientWidth, c = o && r.clientHeight > 0 && r.scrollHeight > r.clientHeight, l = n.direction === "rtl", u = c && (l ? e.offsetX <= r.offsetWidth - r.clientWidth : e.offsetX > r.clientWidth), d = s && e.offsetY > r.clientHeight;
|
|
4927
4927
|
if (u || d) return;
|
|
4928
4928
|
}
|
|
4929
4929
|
let d = o.current.floatingContext?.nodeId, f = g && ta(g.nodesRef.current, d).some((t) => Ji(e, t.context?.elements.floating));
|
|
@@ -4961,12 +4961,12 @@ function Ts(t, n) {
|
|
|
4961
4961
|
function l() {
|
|
4962
4962
|
e = window.setTimeout(() => {
|
|
4963
4963
|
w.current = !1;
|
|
4964
|
-
},
|
|
4964
|
+
}, wr() ? 5 : 0);
|
|
4965
4965
|
}
|
|
4966
4966
|
let d = Xi(a.floating);
|
|
4967
4967
|
c && (d.addEventListener("keydown", S ? E : T, S), d.addEventListener("compositionstart", n), d.addEventListener("compositionend", l)), v && d.addEventListener(u, C ? O : D, C);
|
|
4968
4968
|
let f = [];
|
|
4969
|
-
return p && (
|
|
4969
|
+
return p && (Y(a.domReference) && (f = Ar(a.domReference)), Y(a.floating) && (f = f.concat(Ar(a.floating))), !Y(a.reference) && a.reference && a.reference.contextElement && (f = f.concat(Ar(a.reference.contextElement)))), f = f.filter((e) => e !== d.defaultView?.visualViewport), f.forEach((e) => {
|
|
4970
4970
|
e.addEventListener("scroll", t, { passive: !0 });
|
|
4971
4971
|
}), () => {
|
|
4972
4972
|
c && (d.removeEventListener("keydown", S ? E : T, S), d.removeEventListener("compositionstart", n), d.removeEventListener("compositionend", l)), v && d.removeEventListener(u, C ? O : D, C), f.forEach((e) => {
|
|
@@ -5093,14 +5093,14 @@ function Ds(t) {
|
|
|
5093
5093
|
...c && { reference: c }
|
|
5094
5094
|
}
|
|
5095
5095
|
}), m = e.useCallback((e) => {
|
|
5096
|
-
let t =
|
|
5096
|
+
let t = Y(e) ? {
|
|
5097
5097
|
getBoundingClientRect: () => e.getBoundingClientRect(),
|
|
5098
5098
|
getClientRects: () => e.getClientRects(),
|
|
5099
5099
|
contextElement: e
|
|
5100
5100
|
} : e;
|
|
5101
5101
|
l(t), p.refs.setReference(t);
|
|
5102
5102
|
}, [p.refs]), h = e.useCallback((e) => {
|
|
5103
|
-
(
|
|
5103
|
+
(Y(e) || e === null) && (d.current = e, s(e)), (Y(p.refs.reference.current) || p.refs.reference.current === null || e !== null && !Y(e)) && p.refs.setReference(e);
|
|
5104
5104
|
}, [p.refs]), g = e.useMemo(() => ({
|
|
5105
5105
|
...p.refs,
|
|
5106
5106
|
setReference: h,
|
|
@@ -5150,9 +5150,9 @@ function ks(t, n) {
|
|
|
5150
5150
|
let { open: r, onOpenChange: i, events: a, dataRef: o, elements: s } = t, { enabled: c = !0, visibleOnly: l = !0 } = n, u = e.useRef(!1), d = e.useRef(-1), f = e.useRef(!0);
|
|
5151
5151
|
e.useEffect(() => {
|
|
5152
5152
|
if (!c) return;
|
|
5153
|
-
let e =
|
|
5153
|
+
let e = J(s.domReference);
|
|
5154
5154
|
function t() {
|
|
5155
|
-
!r &&
|
|
5155
|
+
!r && X(s.domReference) && s.domReference === Gi(Xi(s.domReference)) && (u.current = !0);
|
|
5156
5156
|
}
|
|
5157
5157
|
function n() {
|
|
5158
5158
|
f.current = !0;
|
|
@@ -5186,7 +5186,7 @@ function ks(t, n) {
|
|
|
5186
5186
|
onFocus(e) {
|
|
5187
5187
|
if (u.current) return;
|
|
5188
5188
|
let t = qi(e.nativeEvent);
|
|
5189
|
-
if (l &&
|
|
5189
|
+
if (l && Y(t)) {
|
|
5190
5190
|
if (Os() && !e.relatedTarget) {
|
|
5191
5191
|
if (!f.current && !Zi(t)) return;
|
|
5192
5192
|
} else if (!$i(t)) return;
|
|
@@ -5195,7 +5195,7 @@ function ks(t, n) {
|
|
|
5195
5195
|
},
|
|
5196
5196
|
onBlur(e) {
|
|
5197
5197
|
u.current = !1;
|
|
5198
|
-
let t = e.relatedTarget, n = e.nativeEvent, r =
|
|
5198
|
+
let t = e.relatedTarget, n = e.nativeEvent, r = Y(t) && t.hasAttribute(ts("focus-guard")) && t.getAttribute("data-type") === "outside";
|
|
5199
5199
|
d.current = window.setTimeout(() => {
|
|
5200
5200
|
let e = Gi(s.domReference ? s.domReference.ownerDocument : document);
|
|
5201
5201
|
!t && e === s.domReference || Ki(o.current.floatingContext?.refs.floating.current, e) || Ki(s.domReference, e) || r || i(!1, n, "focus");
|
|
@@ -5278,30 +5278,30 @@ function Rs(t, n) {
|
|
|
5278
5278
|
}, [t, x]);
|
|
5279
5279
|
let j = da(() => {
|
|
5280
5280
|
l(P.current === -1 ? null : P.current);
|
|
5281
|
-
}), M = Qi(a.domReference), N = e.useRef(_), P = e.useRef(d ?? -1), F = e.useRef(null), I = e.useRef(!0),
|
|
5281
|
+
}), M = Qi(a.domReference), N = e.useRef(_), P = e.useRef(d ?? -1), F = e.useRef(null), I = e.useRef(!0), ee = e.useRef(j), L = e.useRef(!!a.floating), te = e.useRef(r), R = e.useRef(!1), z = e.useRef(!1), B = la(b), ne = la(r), re = la(w), V = la(d), [H, ie] = e.useState(), [ae, oe] = e.useState(), se = da(() => {
|
|
5282
5282
|
function e(e) {
|
|
5283
5283
|
if (g) {
|
|
5284
5284
|
var t;
|
|
5285
|
-
(t = e.id) != null && t.endsWith("-fui-option") && (e.id = o + "-" + Math.random().toString(16).slice(2, 10)),
|
|
5285
|
+
(t = e.id) != null && t.endsWith("-fui-option") && (e.id = o + "-" + Math.random().toString(16).slice(2, 10)), ie(e.id), A?.events.emit("virtualfocus", e), T && (T.current = e);
|
|
5286
5286
|
} else ss(e, {
|
|
5287
|
-
sync:
|
|
5287
|
+
sync: R.current,
|
|
5288
5288
|
preventScroll: !0
|
|
5289
5289
|
});
|
|
5290
5290
|
}
|
|
5291
|
-
let t = s.current[P.current], n =
|
|
5292
|
-
t && e(t), (
|
|
5291
|
+
let t = s.current[P.current], n = z.current;
|
|
5292
|
+
t && e(t), (R.current ? (e) => e() : requestAnimationFrame)(() => {
|
|
5293
5293
|
let r = s.current[P.current] || t;
|
|
5294
5294
|
if (!r) return;
|
|
5295
5295
|
t || e(r);
|
|
5296
5296
|
let i = re.current;
|
|
5297
|
-
i &&
|
|
5297
|
+
i && le && (n || !I.current) && (r.scrollIntoView == null || r.scrollIntoView(typeof i == "boolean" ? {
|
|
5298
5298
|
block: "nearest",
|
|
5299
5299
|
inline: "nearest"
|
|
5300
5300
|
} : i));
|
|
5301
5301
|
});
|
|
5302
5302
|
});
|
|
5303
5303
|
Z(() => {
|
|
5304
|
-
u && (r && a.floating ? N.current && d != null && (
|
|
5304
|
+
u && (r && a.floating ? N.current && d != null && (z.current = !0, P.current = d, j()) : L.current && (P.current = -1, ee.current()));
|
|
5305
5305
|
}, [
|
|
5306
5306
|
u,
|
|
5307
5307
|
r,
|
|
@@ -5310,14 +5310,14 @@ function Rs(t, n) {
|
|
|
5310
5310
|
j
|
|
5311
5311
|
]), Z(() => {
|
|
5312
5312
|
if (u && r && a.floating) if (c == null) {
|
|
5313
|
-
if (
|
|
5314
|
-
if (
|
|
5313
|
+
if (R.current = !1, V.current != null) return;
|
|
5314
|
+
if (L.current && (P.current = -1, se()), (!te.current || !L.current) && N.current && (F.current != null || N.current === !0 && F.current == null)) {
|
|
5315
5315
|
let e = 0, t = () => {
|
|
5316
|
-
s.current[0] == null ? (e < 2 && (e ? requestAnimationFrame : queueMicrotask)(t), e++) : (P.current = F.current == null || Fs(F.current, x, h) || m ? ma(s,
|
|
5316
|
+
s.current[0] == null ? (e < 2 && (e ? requestAnimationFrame : queueMicrotask)(t), e++) : (P.current = F.current == null || Fs(F.current, x, h) || m ? ma(s, B.current) : ha(s, B.current), F.current = null, j());
|
|
5317
5317
|
};
|
|
5318
5318
|
t();
|
|
5319
5319
|
}
|
|
5320
|
-
} else pa(s, c) || (P.current = c,
|
|
5320
|
+
} else pa(s, c) || (P.current = c, se(), z.current = !1);
|
|
5321
5321
|
}, [
|
|
5322
5322
|
u,
|
|
5323
5323
|
r,
|
|
@@ -5329,11 +5329,11 @@ function Rs(t, n) {
|
|
|
5329
5329
|
x,
|
|
5330
5330
|
h,
|
|
5331
5331
|
j,
|
|
5332
|
-
|
|
5333
|
-
|
|
5332
|
+
se,
|
|
5333
|
+
B
|
|
5334
5334
|
]), Z(() => {
|
|
5335
5335
|
var e;
|
|
5336
|
-
if (!u || a.floating || !A || g || !
|
|
5336
|
+
if (!u || a.floating || !A || g || !L.current) return;
|
|
5337
5337
|
let t = A.nodesRef.current, n = (e = t.find((e) => e.id === k)) == null || (e = e.context) == null ? void 0 : e.elements.floating, r = Gi(Xi(a.floating)), i = t.some((e) => e.context && Ki(e.context.elements.floating, r));
|
|
5338
5338
|
n && !i && I.current && n.focus({ preventScroll: !0 });
|
|
5339
5339
|
}, [
|
|
@@ -5345,7 +5345,7 @@ function Rs(t, n) {
|
|
|
5345
5345
|
]), Z(() => {
|
|
5346
5346
|
if (!u || !A || !g || k) return;
|
|
5347
5347
|
function e(e) {
|
|
5348
|
-
|
|
5348
|
+
oe(e.id), T && (T.current = e);
|
|
5349
5349
|
}
|
|
5350
5350
|
return A.events.on("virtualfocus", e), () => {
|
|
5351
5351
|
A.events.off("virtualfocus", e);
|
|
@@ -5357,20 +5357,20 @@ function Rs(t, n) {
|
|
|
5357
5357
|
k,
|
|
5358
5358
|
T
|
|
5359
5359
|
]), Z(() => {
|
|
5360
|
-
|
|
5360
|
+
ee.current = j, te.current = r, L.current = !!a.floating;
|
|
5361
5361
|
}), Z(() => {
|
|
5362
5362
|
r || (F.current = null, N.current = _);
|
|
5363
5363
|
}, [r, _]);
|
|
5364
|
-
let
|
|
5364
|
+
let ce = c != null, le = e.useMemo(() => {
|
|
5365
5365
|
function e(e) {
|
|
5366
|
-
if (!
|
|
5366
|
+
if (!ne.current) return;
|
|
5367
5367
|
let t = s.current.indexOf(e);
|
|
5368
5368
|
t !== -1 && P.current !== t && (P.current = t, j());
|
|
5369
5369
|
}
|
|
5370
5370
|
return {
|
|
5371
5371
|
onFocus(t) {
|
|
5372
5372
|
let { currentTarget: n } = t;
|
|
5373
|
-
|
|
5373
|
+
R.current = !0, e(n);
|
|
5374
5374
|
},
|
|
5375
5375
|
onClick: (e) => {
|
|
5376
5376
|
let { currentTarget: t } = e;
|
|
@@ -5378,34 +5378,34 @@ function Rs(t, n) {
|
|
|
5378
5378
|
},
|
|
5379
5379
|
onMouseMove(t) {
|
|
5380
5380
|
let { currentTarget: n } = t;
|
|
5381
|
-
|
|
5381
|
+
R.current = !0, z.current = !1, v && e(n);
|
|
5382
5382
|
},
|
|
5383
5383
|
onPointerLeave(e) {
|
|
5384
5384
|
let { pointerType: t } = e;
|
|
5385
|
-
if (!(!I.current || t === "touch") && (
|
|
5385
|
+
if (!(!I.current || t === "touch") && (R.current = !0, v && (P.current = -1, j(), !g))) {
|
|
5386
5386
|
var n;
|
|
5387
5387
|
(n = O.current) == null || n.focus({ preventScroll: !0 });
|
|
5388
5388
|
}
|
|
5389
5389
|
}
|
|
5390
5390
|
};
|
|
5391
5391
|
}, [
|
|
5392
|
-
|
|
5392
|
+
ne,
|
|
5393
5393
|
O,
|
|
5394
5394
|
v,
|
|
5395
5395
|
s,
|
|
5396
5396
|
j,
|
|
5397
5397
|
g
|
|
5398
|
-
]),
|
|
5398
|
+
]), ue = e.useCallback(() => {
|
|
5399
5399
|
var e;
|
|
5400
5400
|
return S ?? (A == null || (e = A.nodesRef.current.find((e) => e.id === k)) == null || (e = e.context) == null || (e = e.dataRef) == null ? void 0 : e.current.orientation);
|
|
5401
5401
|
}, [
|
|
5402
5402
|
k,
|
|
5403
5403
|
A,
|
|
5404
5404
|
S
|
|
5405
|
-
]),
|
|
5406
|
-
if (I.current = !1,
|
|
5405
|
+
]), de = da((e) => {
|
|
5406
|
+
if (I.current = !1, R.current = !0, e.which === 229 || !ne.current && e.currentTarget === O.current) return;
|
|
5407
5407
|
if (m && Ls(e.key, x, h, C)) {
|
|
5408
|
-
Ps(e.key,
|
|
5408
|
+
Ps(e.key, ue()) || ra(e), i(!1, e.nativeEvent, "list-navigation"), X(a.domReference) && (g ? A?.events.emit("virtualfocus", a.domReference) : a.domReference.focus());
|
|
5409
5409
|
return;
|
|
5410
5410
|
}
|
|
5411
5411
|
let t = P.current, n = ma(s, b), o = ha(s, b);
|
|
@@ -5448,25 +5448,25 @@ function Rs(t, n) {
|
|
|
5448
5448
|
disabledIndices: b
|
|
5449
5449
|
})), pa(s, P.current) && (P.current = -1), j();
|
|
5450
5450
|
}
|
|
5451
|
-
}),
|
|
5451
|
+
}), fe = e.useMemo(() => g && r && ce && { "aria-activedescendant": ae || H }, [
|
|
5452
5452
|
g,
|
|
5453
5453
|
r,
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
]),
|
|
5454
|
+
ce,
|
|
5455
|
+
ae,
|
|
5456
|
+
H
|
|
5457
|
+
]), pe = e.useMemo(() => ({
|
|
5458
5458
|
"aria-orientation": x === "both" ? void 0 : x,
|
|
5459
|
-
...M ? {} :
|
|
5460
|
-
onKeyDown:
|
|
5459
|
+
...M ? {} : fe,
|
|
5460
|
+
onKeyDown: de,
|
|
5461
5461
|
onPointerMove() {
|
|
5462
5462
|
I.current = !0;
|
|
5463
5463
|
}
|
|
5464
5464
|
}), [
|
|
5465
|
-
pe,
|
|
5466
5465
|
fe,
|
|
5466
|
+
de,
|
|
5467
5467
|
x,
|
|
5468
5468
|
M
|
|
5469
|
-
]),
|
|
5469
|
+
]), U = e.useMemo(() => {
|
|
5470
5470
|
function e(e) {
|
|
5471
5471
|
_ === "auto" && aa(e.nativeEvent) && (N.current = !0);
|
|
5472
5472
|
}
|
|
@@ -5474,10 +5474,10 @@ function Rs(t, n) {
|
|
|
5474
5474
|
N.current = _, _ === "auto" && oa(e.nativeEvent) && (N.current = !0);
|
|
5475
5475
|
}
|
|
5476
5476
|
return {
|
|
5477
|
-
...
|
|
5477
|
+
...fe,
|
|
5478
5478
|
onKeyDown(e) {
|
|
5479
5479
|
I.current = !1;
|
|
5480
|
-
let t = e.key.startsWith("Arrow"), n = ["Home", "End"].includes(e.key), a = t || n, o = Is(e.key, x, h), c = Ls(e.key, x, h, C), l = Is(e.key,
|
|
5480
|
+
let t = e.key.startsWith("Arrow"), n = ["Home", "End"].includes(e.key), a = t || n, o = Is(e.key, x, h), c = Ls(e.key, x, h, C), l = Is(e.key, ue(), h), u = Ps(e.key, x), f = (m ? l : u) || e.key === "Enter" || e.key.trim() === "";
|
|
5481
5481
|
if (g && r) {
|
|
5482
5482
|
let t = A?.nodesRef.current.find((e) => e.parentId == null), r = A && t ? na(A.nodesRef.current, t.id) : null;
|
|
5483
5483
|
if (a && r && T) {
|
|
@@ -5486,8 +5486,8 @@ function Rs(t, n) {
|
|
|
5486
5486
|
bubbles: !0
|
|
5487
5487
|
});
|
|
5488
5488
|
if (o || c) {
|
|
5489
|
-
let n = r.context?.elements.domReference === e.currentTarget, i = c && !n ? r.context?.elements.domReference : o ? s.current.find((e) => e?.id ===
|
|
5490
|
-
i && (ra(e), i.dispatchEvent(t),
|
|
5489
|
+
let n = r.context?.elements.domReference === e.currentTarget, i = c && !n ? r.context?.elements.domReference : o ? s.current.find((e) => e?.id === H) : null;
|
|
5490
|
+
i && (ra(e), i.dispatchEvent(t), oe(void 0));
|
|
5491
5491
|
}
|
|
5492
5492
|
if ((u || n) && r.context && r.context.open && r.parentId && e.currentTarget !== r.context.elements.domReference) {
|
|
5493
5493
|
var p;
|
|
@@ -5495,18 +5495,18 @@ function Rs(t, n) {
|
|
|
5495
5495
|
return;
|
|
5496
5496
|
}
|
|
5497
5497
|
}
|
|
5498
|
-
return
|
|
5498
|
+
return de(e);
|
|
5499
5499
|
}
|
|
5500
5500
|
if (!(!r && !y && t)) {
|
|
5501
5501
|
if (f) {
|
|
5502
|
-
let t = Ps(e.key,
|
|
5502
|
+
let t = Ps(e.key, ue());
|
|
5503
5503
|
F.current = m && t ? null : e.key;
|
|
5504
5504
|
}
|
|
5505
5505
|
if (m) {
|
|
5506
|
-
l && (ra(e), r ? (P.current = ma(s,
|
|
5506
|
+
l && (ra(e), r ? (P.current = ma(s, B.current), j()) : i(!0, e.nativeEvent, "list-navigation"));
|
|
5507
5507
|
return;
|
|
5508
5508
|
}
|
|
5509
|
-
u && (d != null && (P.current = d), ra(e), !r && y ? i(!0, e.nativeEvent, "list-navigation") :
|
|
5509
|
+
u && (d != null && (P.current = d), ra(e), !r && y ? i(!0, e.nativeEvent, "list-navigation") : de(e), r && j());
|
|
5510
5510
|
}
|
|
5511
5511
|
},
|
|
5512
5512
|
onFocus() {
|
|
@@ -5518,11 +5518,11 @@ function Rs(t, n) {
|
|
|
5518
5518
|
onClick: e
|
|
5519
5519
|
};
|
|
5520
5520
|
}, [
|
|
5521
|
-
|
|
5522
|
-
pe,
|
|
5523
|
-
C,
|
|
5521
|
+
H,
|
|
5524
5522
|
fe,
|
|
5525
|
-
|
|
5523
|
+
C,
|
|
5524
|
+
de,
|
|
5525
|
+
B,
|
|
5526
5526
|
_,
|
|
5527
5527
|
s,
|
|
5528
5528
|
m,
|
|
@@ -5531,7 +5531,7 @@ function Rs(t, n) {
|
|
|
5531
5531
|
r,
|
|
5532
5532
|
y,
|
|
5533
5533
|
x,
|
|
5534
|
-
|
|
5534
|
+
ue,
|
|
5535
5535
|
h,
|
|
5536
5536
|
d,
|
|
5537
5537
|
A,
|
|
@@ -5539,14 +5539,14 @@ function Rs(t, n) {
|
|
|
5539
5539
|
T
|
|
5540
5540
|
]);
|
|
5541
5541
|
return e.useMemo(() => u ? {
|
|
5542
|
-
reference:
|
|
5543
|
-
floating:
|
|
5544
|
-
item:
|
|
5542
|
+
reference: U,
|
|
5543
|
+
floating: pe,
|
|
5544
|
+
item: le
|
|
5545
5545
|
} : {}, [
|
|
5546
5546
|
u,
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5547
|
+
U,
|
|
5548
|
+
pe,
|
|
5549
|
+
le
|
|
5550
5550
|
]);
|
|
5551
5551
|
}
|
|
5552
5552
|
var zs = /* @__PURE__ */ new Map([
|
|
@@ -5730,7 +5730,7 @@ function Ys(e) {
|
|
|
5730
5730
|
a = !0;
|
|
5731
5731
|
return;
|
|
5732
5732
|
}
|
|
5733
|
-
if (v &&
|
|
5733
|
+
if (v && Y(e.relatedTarget) && cs(c.floating, e.relatedTarget) || f && Ks(f.nodesRef.current, d).length) return;
|
|
5734
5734
|
if (C === "top" && o >= x.bottom - 1 || C === "bottom" && o <= x.top + 1 || C === "left" && n >= x.right - 1 || C === "right" && n <= x.left + 1) return p();
|
|
5735
5735
|
let N = [];
|
|
5736
5736
|
switch (C) {
|
|
@@ -5993,9 +5993,9 @@ var lc = a(function({ asChild: e = !1, children: n, className: i, ...a }, c) {
|
|
|
5993
5993
|
if (!o(e)) throw Error("DropdownTrigger con asChild requiere un único elemento React válido.");
|
|
5994
5994
|
return /* @__PURE__ */ (0, b.jsx)("span", {
|
|
5995
5995
|
ref: f,
|
|
5996
|
-
className:
|
|
5996
|
+
className: q("inline-flex", i),
|
|
5997
5997
|
...oc(e) ? p : u.getReferenceProps(p),
|
|
5998
|
-
children: r(e, { className:
|
|
5998
|
+
children: r(e, { className: q(e.props.className) })
|
|
5999
5999
|
});
|
|
6000
6000
|
}
|
|
6001
6001
|
return /* @__PURE__ */ (0, b.jsx)("button", {
|
|
@@ -6030,7 +6030,7 @@ var lc = a(function({ asChild: e = !1, children: n, className: i, ...a }, c) {
|
|
|
6030
6030
|
if (!y) return null;
|
|
6031
6031
|
let C = /* @__PURE__ */ (0, b.jsxs)("ul", {
|
|
6032
6032
|
ref: g,
|
|
6033
|
-
className:
|
|
6033
|
+
className: q(Xs.layout, Qs[h], n),
|
|
6034
6034
|
style: {
|
|
6035
6035
|
...c,
|
|
6036
6036
|
...x
|
|
@@ -6071,7 +6071,7 @@ var lc = a(function({ asChild: e = !1, children: n, className: i, ...a }, c) {
|
|
|
6071
6071
|
"aria-disabled": e !== "button" && i ? !0 : void 0,
|
|
6072
6072
|
tabIndex: e !== "button" && i ? -1 : void 0,
|
|
6073
6073
|
type: e === "button" ? "button" : void 0,
|
|
6074
|
-
className:
|
|
6074
|
+
className: q(Zs.base, $s[d][f], i && $s[d].disabled, n),
|
|
6075
6075
|
...c,
|
|
6076
6076
|
children: t
|
|
6077
6077
|
})
|
|
@@ -6080,7 +6080,7 @@ var lc = a(function({ asChild: e = !1, children: n, className: i, ...a }, c) {
|
|
|
6080
6080
|
function fc({ className: e }) {
|
|
6081
6081
|
return /* @__PURE__ */ (0, b.jsx)("li", {
|
|
6082
6082
|
role: "separator",
|
|
6083
|
-
className:
|
|
6083
|
+
className: q("my-1 border-t", $s[ec(S())].separator, e)
|
|
6084
6084
|
});
|
|
6085
6085
|
}
|
|
6086
6086
|
//#endregion
|
|
@@ -6107,14 +6107,14 @@ var gc = a(function({ align: e = "center", children: t, className: n, ...r }, i)
|
|
|
6107
6107
|
let a = mc[hc(S())];
|
|
6108
6108
|
return /* @__PURE__ */ (0, b.jsx)("div", {
|
|
6109
6109
|
ref: i,
|
|
6110
|
-
className:
|
|
6110
|
+
className: q("w-full rounded-[1.5rem] border border-dashed px-6 py-10", e === "center" ? "text-center" : "text-left", a.root, n),
|
|
6111
6111
|
...r,
|
|
6112
6112
|
children: t
|
|
6113
6113
|
});
|
|
6114
6114
|
}), _c = a(function({ children: e, className: t, ...n }, r) {
|
|
6115
6115
|
return /* @__PURE__ */ (0, b.jsx)("h3", {
|
|
6116
6116
|
ref: r,
|
|
6117
|
-
className:
|
|
6117
|
+
className: q("text-lg font-semibold tracking-[-0.02em]", t),
|
|
6118
6118
|
...n,
|
|
6119
6119
|
children: e
|
|
6120
6120
|
});
|
|
@@ -6122,110 +6122,183 @@ var gc = a(function({ align: e = "center", children: t, className: n, ...r }, i)
|
|
|
6122
6122
|
let i = mc[hc(S())];
|
|
6123
6123
|
return /* @__PURE__ */ (0, b.jsx)("p", {
|
|
6124
6124
|
ref: r,
|
|
6125
|
-
className:
|
|
6125
|
+
className: q("mt-2 text-sm leading-6", i.description, t),
|
|
6126
6126
|
...n,
|
|
6127
6127
|
children: e
|
|
6128
6128
|
});
|
|
6129
6129
|
}), yc = a(function({ children: e, className: t, ...n }, r) {
|
|
6130
6130
|
return /* @__PURE__ */ (0, b.jsx)("div", {
|
|
6131
6131
|
ref: r,
|
|
6132
|
-
className:
|
|
6132
|
+
className: q("mt-5 flex flex-wrap items-center justify-center gap-3", t),
|
|
6133
6133
|
...n,
|
|
6134
6134
|
children: e
|
|
6135
6135
|
});
|
|
6136
|
-
}), bc = {
|
|
6136
|
+
}), bc = {
|
|
6137
|
+
light: {
|
|
6138
|
+
neutral: {
|
|
6139
|
+
base: "border-slate-300 bg-white text-slate-950 shadow-[0_1px_2px_rgba(15,23,42,0.04)] focus-visible:border-slate-400 focus-visible:ring-slate-300/35",
|
|
6140
|
+
hover: "hover:border-slate-400"
|
|
6141
|
+
},
|
|
6142
|
+
primary: {
|
|
6143
|
+
base: "border-sky-300 bg-sky-50/40 text-slate-950 shadow-[0_1px_2px_rgba(14,165,233,0.08)] focus-visible:border-sky-500 focus-visible:ring-sky-200/80",
|
|
6144
|
+
hover: "hover:border-sky-400 hover:bg-sky-50/60"
|
|
6145
|
+
},
|
|
6146
|
+
brand: {
|
|
6147
|
+
base: "border-brand-300 bg-brand-50/45 text-slate-950 shadow-[0_1px_2px_rgba(112,56,255,0.08)] focus-visible:border-brand-500 focus-visible:ring-brand-200/75",
|
|
6148
|
+
hover: "hover:border-brand-400 hover:bg-brand-50/60"
|
|
6149
|
+
},
|
|
6150
|
+
success: {
|
|
6151
|
+
base: "border-emerald-300 bg-emerald-50/45 text-slate-950 shadow-[0_1px_2px_rgba(16,185,129,0.08)] focus-visible:border-emerald-500 focus-visible:ring-emerald-200/80",
|
|
6152
|
+
hover: "hover:border-emerald-400 hover:bg-emerald-50/65"
|
|
6153
|
+
},
|
|
6154
|
+
danger: {
|
|
6155
|
+
base: "border-rose-300 bg-rose-50/45 text-slate-950 shadow-[0_1px_2px_rgba(244,63,94,0.08)] focus-visible:border-rose-500 focus-visible:ring-rose-200/80",
|
|
6156
|
+
hover: "hover:border-rose-400 hover:bg-rose-50/65"
|
|
6157
|
+
},
|
|
6158
|
+
warning: {
|
|
6159
|
+
base: "border-amber-300 bg-amber-50/55 text-slate-950 shadow-[0_1px_2px_rgba(245,158,11,0.08)] focus-visible:border-amber-500 focus-visible:ring-amber-200/80",
|
|
6160
|
+
hover: "hover:border-amber-400 hover:bg-amber-50/70"
|
|
6161
|
+
},
|
|
6162
|
+
info: {
|
|
6163
|
+
base: "border-cyan-300 bg-cyan-50/45 text-slate-950 shadow-[0_1px_2px_rgba(6,182,212,0.08)] focus-visible:border-cyan-500 focus-visible:ring-cyan-200/80",
|
|
6164
|
+
hover: "hover:border-cyan-400 hover:bg-cyan-50/65"
|
|
6165
|
+
},
|
|
6166
|
+
light: {
|
|
6167
|
+
base: "border-stone-200 bg-stone-50 text-stone-900 shadow-[0_1px_2px_rgba(120,113,108,0.06)] focus-visible:border-stone-300 focus-visible:ring-stone-200/80",
|
|
6168
|
+
hover: "hover:border-stone-300 hover:bg-stone-100/80"
|
|
6169
|
+
},
|
|
6170
|
+
dark: {
|
|
6171
|
+
base: "border-slate-950 bg-slate-950 text-white shadow-[0_1px_2px_rgba(15,23,42,0.18)] focus-visible:border-slate-700 focus-visible:ring-slate-900/20",
|
|
6172
|
+
hover: "hover:border-slate-800 hover:bg-slate-900"
|
|
6173
|
+
},
|
|
6174
|
+
invalid: "border-red-400 bg-red-50/60 text-red-950 shadow-[0_1px_2px_rgba(239,68,68,0.1)] focus-visible:border-red-500 focus-visible:ring-red-200/85"
|
|
6175
|
+
},
|
|
6176
|
+
dark: {
|
|
6177
|
+
neutral: {
|
|
6178
|
+
base: "border-zinc-800 bg-zinc-950 text-stone-50 shadow-[0_1px_2px_rgba(0,0,0,0.32)] focus-visible:border-zinc-600 focus-visible:ring-zinc-700/45",
|
|
6179
|
+
hover: "hover:border-zinc-700 hover:bg-zinc-900/70"
|
|
6180
|
+
},
|
|
6181
|
+
primary: {
|
|
6182
|
+
base: "border-sky-500/35 bg-sky-500/10 text-stone-50 shadow-[0_1px_2px_rgba(14,165,233,0.12)] focus-visible:border-sky-400/75 focus-visible:ring-sky-500/25",
|
|
6183
|
+
hover: "hover:border-sky-400/50 hover:bg-sky-500/14"
|
|
6184
|
+
},
|
|
6185
|
+
brand: {
|
|
6186
|
+
base: "border-brand-500/35 bg-brand-500/10 text-stone-50 shadow-[0_1px_2px_rgba(112,56,255,0.14)] focus-visible:border-brand-400/75 focus-visible:ring-brand-500/25",
|
|
6187
|
+
hover: "hover:border-brand-400/50 hover:bg-brand-500/14"
|
|
6188
|
+
},
|
|
6189
|
+
success: {
|
|
6190
|
+
base: "border-emerald-500/35 bg-emerald-500/10 text-stone-50 shadow-[0_1px_2px_rgba(16,185,129,0.12)] focus-visible:border-emerald-400/75 focus-visible:ring-emerald-500/25",
|
|
6191
|
+
hover: "hover:border-emerald-400/50 hover:bg-emerald-500/14"
|
|
6192
|
+
},
|
|
6193
|
+
danger: {
|
|
6194
|
+
base: "border-rose-500/35 bg-rose-500/10 text-stone-50 shadow-[0_1px_2px_rgba(244,63,94,0.12)] focus-visible:border-rose-400/75 focus-visible:ring-rose-500/25",
|
|
6195
|
+
hover: "hover:border-rose-400/50 hover:bg-rose-500/14"
|
|
6196
|
+
},
|
|
6197
|
+
warning: {
|
|
6198
|
+
base: "border-amber-500/35 bg-amber-500/10 text-stone-50 shadow-[0_1px_2px_rgba(245,158,11,0.12)] focus-visible:border-amber-400/75 focus-visible:ring-amber-500/25",
|
|
6199
|
+
hover: "hover:border-amber-400/50 hover:bg-amber-500/14"
|
|
6200
|
+
},
|
|
6201
|
+
info: {
|
|
6202
|
+
base: "border-cyan-500/35 bg-cyan-500/10 text-stone-50 shadow-[0_1px_2px_rgba(6,182,212,0.12)] focus-visible:border-cyan-400/75 focus-visible:ring-cyan-500/25",
|
|
6203
|
+
hover: "hover:border-cyan-400/50 hover:bg-cyan-500/14"
|
|
6204
|
+
},
|
|
6205
|
+
light: {
|
|
6206
|
+
base: "border-stone-400/35 bg-stone-100 text-stone-950 shadow-[0_1px_2px_rgba(245,245,244,0.05)] focus-visible:border-stone-300 focus-visible:ring-stone-200/35",
|
|
6207
|
+
hover: "hover:border-stone-300/60 hover:bg-stone-50"
|
|
6208
|
+
},
|
|
6209
|
+
dark: {
|
|
6210
|
+
base: "border-zinc-700 bg-black text-white shadow-[0_1px_2px_rgba(0,0,0,0.4)] focus-visible:border-zinc-500 focus-visible:ring-zinc-700/55",
|
|
6211
|
+
hover: "hover:border-zinc-600 hover:bg-zinc-950"
|
|
6212
|
+
},
|
|
6213
|
+
invalid: "border-red-500/65 bg-red-500/10 text-stone-50 shadow-[0_1px_2px_rgba(239,68,68,0.14)] focus-visible:border-red-400/85 focus-visible:ring-red-500/25"
|
|
6214
|
+
}
|
|
6215
|
+
};
|
|
6216
|
+
function xc(e) {
|
|
6217
|
+
return e === "dark" ? "dark" : "light";
|
|
6218
|
+
}
|
|
6219
|
+
function Sc(e) {
|
|
6220
|
+
return Bt(Et, e, "neutral");
|
|
6221
|
+
}
|
|
6222
|
+
//#endregion
|
|
6223
|
+
//#region src/lib/components/input/Input.jsx
|
|
6224
|
+
var Cc = { base: [
|
|
6137
6225
|
"w-full border bg-transparent text-sm outline-none",
|
|
6138
6226
|
"transition-[background-color,border-color,color,box-shadow] duration-200",
|
|
6139
6227
|
"placeholder:text-current/45",
|
|
6140
6228
|
"focus-visible:ring-4 focus-visible:ring-offset-0",
|
|
6141
6229
|
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
6142
|
-
].join(" ") },
|
|
6230
|
+
].join(" ") }, wc = {
|
|
6143
6231
|
sm: "h-9 px-3",
|
|
6144
6232
|
md: "h-11 px-3.5",
|
|
6145
6233
|
lg: "h-12 px-4 text-base"
|
|
6146
|
-
},
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
},
|
|
6152
|
-
dark: {
|
|
6153
|
-
base: "border-zinc-800 bg-zinc-950 text-stone-50 focus-visible:border-zinc-700 focus-visible:ring-zinc-800/80",
|
|
6154
|
-
hover: "hover:border-zinc-700",
|
|
6155
|
-
invalid: "border-red-500/60 text-stone-50 focus-visible:border-red-400/80 focus-visible:ring-red-500/20"
|
|
6156
|
-
}
|
|
6157
|
-
};
|
|
6158
|
-
function Cc(e) {
|
|
6159
|
-
return e === "dark" ? "dark" : "light";
|
|
6160
|
-
}
|
|
6161
|
-
var wc = a(function({ className: e, disabled: t = !1, id: n, invalid: r = !1, required: i = !1, size: a = "md", ...o }, s) {
|
|
6162
|
-
let c = Sc[Cc(S())], l = rr(), u = r || l?.invalid, d = t || l?.disabled, f = i || l?.required, p = [
|
|
6163
|
-
o["aria-describedby"],
|
|
6164
|
-
l?.descriptionId,
|
|
6165
|
-
u ? l?.messageId : null
|
|
6234
|
+
}, Tc = a(function({ className: e, color: t = "neutral", disabled: n = !1, id: r, invalid: i = !1, required: a = !1, size: o = "md", ...s }, c) {
|
|
6235
|
+
let l = xc(S()), u = bc[l], d = Sc(t), f = bc[l][d], p = nr(), m = i || p?.invalid, h = n || p?.disabled, g = a || p?.required, _ = [
|
|
6236
|
+
s["aria-describedby"],
|
|
6237
|
+
p?.descriptionId,
|
|
6238
|
+
m ? p?.messageId : null
|
|
6166
6239
|
].filter(Boolean).join(" ") || void 0;
|
|
6167
6240
|
return /* @__PURE__ */ (0, b.jsx)("input", {
|
|
6168
|
-
ref:
|
|
6169
|
-
id:
|
|
6170
|
-
required:
|
|
6171
|
-
disabled:
|
|
6172
|
-
"aria-invalid":
|
|
6173
|
-
"aria-describedby":
|
|
6174
|
-
className:
|
|
6175
|
-
...
|
|
6241
|
+
ref: c,
|
|
6242
|
+
id: r ?? p?.controlId,
|
|
6243
|
+
required: g,
|
|
6244
|
+
disabled: h,
|
|
6245
|
+
"aria-invalid": m || void 0,
|
|
6246
|
+
"aria-describedby": _,
|
|
6247
|
+
className: q(Cc.base, st(o), wc[o] ?? wc.md, m ? u.invalid : f.base, !h && !m && f.hover, e),
|
|
6248
|
+
...s
|
|
6176
6249
|
});
|
|
6177
6250
|
});
|
|
6178
6251
|
//#endregion
|
|
6179
6252
|
//#region src/lib/components/logic/Logic.jsx
|
|
6180
|
-
function
|
|
6253
|
+
function Ec(e, t) {
|
|
6181
6254
|
return typeof e == "function" ? e(t) : e ?? null;
|
|
6182
6255
|
}
|
|
6183
|
-
function
|
|
6256
|
+
function Dc(e) {
|
|
6184
6257
|
return e == null ? [] : Array.isArray(e) ? e : typeof e[Symbol.iterator] == "function" ? Array.from(e) : [];
|
|
6185
6258
|
}
|
|
6186
|
-
function
|
|
6259
|
+
function Oc(e, t) {
|
|
6187
6260
|
return typeof e == "function" ? !!e(t) : Array.isArray(e) ? e.some((e) => Object.is(e, t)) : Object.is(e, t);
|
|
6188
6261
|
}
|
|
6189
|
-
function
|
|
6190
|
-
return /* @__PURE__ */ (0, b.jsx)(n, { children:
|
|
6262
|
+
function kc({ children: e, fallback: t = null, when: r }) {
|
|
6263
|
+
return /* @__PURE__ */ (0, b.jsx)(n, { children: Ec(r ? e : t, r) });
|
|
6191
6264
|
}
|
|
6192
|
-
function
|
|
6265
|
+
function Ac({ children: e }) {
|
|
6193
6266
|
return /* @__PURE__ */ (0, b.jsx)(n, { children: e });
|
|
6194
6267
|
}
|
|
6195
|
-
function
|
|
6268
|
+
function jc({ children: e }) {
|
|
6196
6269
|
return /* @__PURE__ */ (0, b.jsx)(n, { children: e });
|
|
6197
6270
|
}
|
|
6198
|
-
function
|
|
6271
|
+
function Mc({ children: e, fallback: r = null, value: i }) {
|
|
6199
6272
|
let a = t.toArray(e), s = null;
|
|
6200
6273
|
for (let e of a) if (o(e)) {
|
|
6201
|
-
if (e.type ===
|
|
6274
|
+
if (e.type === jc) {
|
|
6202
6275
|
s = e;
|
|
6203
6276
|
continue;
|
|
6204
6277
|
}
|
|
6205
|
-
if (e.type ===
|
|
6278
|
+
if (e.type === Ac && Oc(e.props.when, i)) return /* @__PURE__ */ (0, b.jsx)(n, { children: Ec(e.props.children, i) });
|
|
6206
6279
|
}
|
|
6207
|
-
return s ? /* @__PURE__ */ (0, b.jsx)(n, { children:
|
|
6280
|
+
return s ? /* @__PURE__ */ (0, b.jsx)(n, { children: Ec(s.props.children, i) }) : /* @__PURE__ */ (0, b.jsx)(n, { children: Ec(r, i) });
|
|
6208
6281
|
}
|
|
6209
|
-
function
|
|
6210
|
-
let i =
|
|
6211
|
-
return i.length ? typeof e == "function" ? /* @__PURE__ */ (0, b.jsx)(n, { children: i.map((t, n) => e(t, n)) }) : /* @__PURE__ */ (0, b.jsx)(n, { children: e }) : /* @__PURE__ */ (0, b.jsx)(n, { children:
|
|
6282
|
+
function Nc({ children: e, each: t, fallback: r = null }) {
|
|
6283
|
+
let i = Dc(t);
|
|
6284
|
+
return i.length ? typeof e == "function" ? /* @__PURE__ */ (0, b.jsx)(n, { children: i.map((t, n) => e(t, n)) }) : /* @__PURE__ */ (0, b.jsx)(n, { children: e }) : /* @__PURE__ */ (0, b.jsx)(n, { children: Ec(r, i) });
|
|
6212
6285
|
}
|
|
6213
|
-
|
|
6286
|
+
Ac.displayName = "Match", jc.displayName = "Default", Mc.displayName = "RenderSwitch", kc.displayName = "Show", Nc.displayName = "For";
|
|
6214
6287
|
//#endregion
|
|
6215
6288
|
//#region src/lib/components/modal/modal-context.js
|
|
6216
|
-
var
|
|
6217
|
-
function
|
|
6218
|
-
let t = c(
|
|
6289
|
+
var Pc = i(null);
|
|
6290
|
+
function Fc(e) {
|
|
6291
|
+
let t = c(Pc);
|
|
6219
6292
|
if (!t) throw Error(`${e} debe usarse dentro de <Modal>.`);
|
|
6220
6293
|
return t;
|
|
6221
6294
|
}
|
|
6222
6295
|
//#endregion
|
|
6223
6296
|
//#region src/lib/components/modal/Modal.jsx
|
|
6224
|
-
var
|
|
6225
|
-
function
|
|
6297
|
+
var Ic = 140, Lc = 0, Rc = 50, zc = 0, Bc = [], Vc = "", Hc = "", Uc = "", Wc = "";
|
|
6298
|
+
function Gc(e) {
|
|
6226
6299
|
return !e || e === "transparent" || e === "rgba(0, 0, 0, 0)" || e === "rgb(0 0 0 / 0)";
|
|
6227
6300
|
}
|
|
6228
|
-
function
|
|
6301
|
+
function Kc() {
|
|
6229
6302
|
let e = [
|
|
6230
6303
|
document.body,
|
|
6231
6304
|
document.getElementById("root"),
|
|
@@ -6234,34 +6307,34 @@ function Gc() {
|
|
|
6234
6307
|
].filter(Boolean);
|
|
6235
6308
|
for (let t of e) {
|
|
6236
6309
|
let e = window.getComputedStyle(t).backgroundColor;
|
|
6237
|
-
if (!
|
|
6310
|
+
if (!Gc(e)) return e;
|
|
6238
6311
|
}
|
|
6239
6312
|
return "";
|
|
6240
6313
|
}
|
|
6241
|
-
function
|
|
6242
|
-
if (
|
|
6314
|
+
function qc() {
|
|
6315
|
+
if (zc += 1, zc !== 1) return;
|
|
6243
6316
|
let e = document.body, t = window.innerWidth - document.documentElement.clientWidth, n = Number.parseFloat(window.getComputedStyle(e).paddingRight) || 0;
|
|
6244
|
-
|
|
6317
|
+
Vc = e.style.overflow, Hc = e.style.overscrollBehavior, Uc = e.style.paddingRight, Wc = e.style.backgroundColor, e.style.overflow = "hidden", e.style.overscrollBehavior = "none", e.style.backgroundColor = Kc(), t > 0 && (e.style.paddingRight = `${n + t}px`);
|
|
6245
6318
|
}
|
|
6246
|
-
function
|
|
6247
|
-
if (
|
|
6319
|
+
function Jc() {
|
|
6320
|
+
if (zc = Math.max(0, zc - 1), zc !== 0) return;
|
|
6248
6321
|
let e = document.body;
|
|
6249
|
-
e.style.overflow =
|
|
6250
|
-
}
|
|
6251
|
-
function Jc(e) {
|
|
6252
|
-
zc.includes(e) || zc.push(e);
|
|
6322
|
+
e.style.overflow = Vc, e.style.overscrollBehavior = Hc, e.style.paddingRight = Uc, e.style.backgroundColor = Wc;
|
|
6253
6323
|
}
|
|
6254
6324
|
function Yc(e) {
|
|
6255
|
-
|
|
6256
|
-
t !== -1 && zc.splice(t, 1);
|
|
6325
|
+
Bc.includes(e) || Bc.push(e);
|
|
6257
6326
|
}
|
|
6258
6327
|
function Xc(e) {
|
|
6259
|
-
|
|
6328
|
+
let t = Bc.indexOf(e);
|
|
6329
|
+
t !== -1 && Bc.splice(t, 1);
|
|
6260
6330
|
}
|
|
6261
6331
|
function Zc(e) {
|
|
6332
|
+
return Bc.at(-1) === e;
|
|
6333
|
+
}
|
|
6334
|
+
function Qc(e) {
|
|
6262
6335
|
return !!(e?.props?.disabled || e?.props?.["aria-disabled"] === !0);
|
|
6263
6336
|
}
|
|
6264
|
-
var
|
|
6337
|
+
var $c = {
|
|
6265
6338
|
overlay: "fixed inset-0 bg-neutral-950/70 transition-opacity duration-[140ms]",
|
|
6266
6339
|
viewport: "fixed inset-0 flex items-center justify-center p-4 sm:p-6 pointer-events-none",
|
|
6267
6340
|
dialog: ["pointer-events-auto flex max-h-[calc(100dvh-2rem)] w-full flex-col overflow-hidden", "rounded-[1.25rem] border transition-[opacity,transform] duration-[140ms] ease-out"].join(" "),
|
|
@@ -6273,7 +6346,7 @@ var Qc = {
|
|
|
6273
6346
|
"text-base font-medium transition-colors cursor-pointer",
|
|
6274
6347
|
"focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"
|
|
6275
6348
|
].join(" ")
|
|
6276
|
-
},
|
|
6349
|
+
}, el = {
|
|
6277
6350
|
light: {
|
|
6278
6351
|
dialog: "border-slate-200 bg-white text-slate-950",
|
|
6279
6352
|
muted: "text-slate-600",
|
|
@@ -6289,10 +6362,10 @@ var Qc = {
|
|
|
6289
6362
|
closeButton: "border-zinc-800 text-stone-400 hover:border-zinc-700 hover:bg-zinc-900 hover:text-stone-50 focus-visible:outline-zinc-700"
|
|
6290
6363
|
}
|
|
6291
6364
|
};
|
|
6292
|
-
function
|
|
6365
|
+
function tl(e) {
|
|
6293
6366
|
return e === "dark" ? "dark" : "light";
|
|
6294
6367
|
}
|
|
6295
|
-
function
|
|
6368
|
+
function nl() {
|
|
6296
6369
|
return /* @__PURE__ */ (0, b.jsx)("svg", {
|
|
6297
6370
|
"aria-hidden": "true",
|
|
6298
6371
|
viewBox: "0 0 24 24",
|
|
@@ -6306,8 +6379,8 @@ function tl() {
|
|
|
6306
6379
|
})
|
|
6307
6380
|
});
|
|
6308
6381
|
}
|
|
6309
|
-
function
|
|
6310
|
-
let [u, d] = m(t), [p, h] = m(t), [g, _] = m(c ?? 50), [v] = m(() => (
|
|
6382
|
+
function rl({ children: e, defaultOpen: t = !1, maxWidth: n = "max-w-md", onBeforeClose: r, onOpenChange: i, open: a, outsideClick: o = !0, zIndex: c }) {
|
|
6383
|
+
let [u, d] = m(t), [p, h] = m(t), [g, _] = m(c ?? 50), [v] = m(() => (Lc += 1, Lc)), y = a !== void 0, x = y ? a : u, S = x || p, C = s((e) => {
|
|
6311
6384
|
y || d(e), e !== x && i?.(e);
|
|
6312
6385
|
}, [
|
|
6313
6386
|
y,
|
|
@@ -6327,18 +6400,18 @@ function nl({ children: e, defaultOpen: t = !1, maxWidth: n = "max-w-md", onBefo
|
|
|
6327
6400
|
}
|
|
6328
6401
|
let e = window.setTimeout(() => {
|
|
6329
6402
|
h(!1);
|
|
6330
|
-
},
|
|
6403
|
+
}, Ic);
|
|
6331
6404
|
return () => {
|
|
6332
6405
|
window.clearTimeout(e);
|
|
6333
6406
|
};
|
|
6334
6407
|
}, [x]), l(() => {
|
|
6335
6408
|
if (!S) return;
|
|
6336
|
-
|
|
6337
|
-
let e = c || (
|
|
6409
|
+
Yc(v), qc();
|
|
6410
|
+
let e = c || (Rc += 10, Rc), t = window.requestAnimationFrame(() => {
|
|
6338
6411
|
_(e);
|
|
6339
6412
|
});
|
|
6340
6413
|
return () => {
|
|
6341
|
-
window.cancelAnimationFrame(t),
|
|
6414
|
+
window.cancelAnimationFrame(t), Xc(v), Jc(), !c && Rc > 50 && (Rc -= 10);
|
|
6342
6415
|
};
|
|
6343
6416
|
}, [
|
|
6344
6417
|
c,
|
|
@@ -6347,7 +6420,7 @@ function nl({ children: e, defaultOpen: t = !1, maxWidth: n = "max-w-md", onBefo
|
|
|
6347
6420
|
]), l(() => {
|
|
6348
6421
|
if (!S || !o) return;
|
|
6349
6422
|
let e = (e) => {
|
|
6350
|
-
e.key !== "Escape" || !
|
|
6423
|
+
e.key !== "Escape" || !Zc(v) || w();
|
|
6351
6424
|
};
|
|
6352
6425
|
return window.addEventListener("keydown", e), () => {
|
|
6353
6426
|
window.removeEventListener("keydown", e);
|
|
@@ -6377,22 +6450,22 @@ function nl({ children: e, defaultOpen: t = !1, maxWidth: n = "max-w-md", onBefo
|
|
|
6377
6450
|
C,
|
|
6378
6451
|
p
|
|
6379
6452
|
]);
|
|
6380
|
-
return /* @__PURE__ */ (0, b.jsx)(
|
|
6453
|
+
return /* @__PURE__ */ (0, b.jsx)(Pc.Provider, {
|
|
6381
6454
|
value: T,
|
|
6382
6455
|
children: e
|
|
6383
6456
|
});
|
|
6384
6457
|
}
|
|
6385
|
-
function
|
|
6386
|
-
let { open: l, setOpen: u } =
|
|
6458
|
+
function il({ as: e = "button", asChild: n = !1, children: i, className: a, disabled: s = !1, ...c }) {
|
|
6459
|
+
let { open: l, setOpen: u } = Fc("ModalTrigger");
|
|
6387
6460
|
if (n) {
|
|
6388
6461
|
let e = t.only(i);
|
|
6389
6462
|
if (!o(e)) throw Error("ModalTrigger con asChild requiere un único elemento React válido.");
|
|
6390
6463
|
let n = {
|
|
6391
6464
|
ref: e.props.ref,
|
|
6392
|
-
className:
|
|
6465
|
+
className: q(e.props.className, a),
|
|
6393
6466
|
...c
|
|
6394
6467
|
};
|
|
6395
|
-
return
|
|
6468
|
+
return Qc(e) ? r(e, n) : r(e, {
|
|
6396
6469
|
...n,
|
|
6397
6470
|
onClick: (t) => {
|
|
6398
6471
|
e.props.onClick?.(t), t.defaultPrevented || u(!l);
|
|
@@ -6401,7 +6474,7 @@ function rl({ as: e = "button", asChild: n = !1, children: i, className: a, disa
|
|
|
6401
6474
|
}
|
|
6402
6475
|
return /* @__PURE__ */ (0, b.jsx)(e, {
|
|
6403
6476
|
...c,
|
|
6404
|
-
className:
|
|
6477
|
+
className: q("cursor-pointer", a),
|
|
6405
6478
|
disabled: s,
|
|
6406
6479
|
onClick: (e) => {
|
|
6407
6480
|
c.onClick?.(e), !s && !e.defaultPrevented && u(!l);
|
|
@@ -6409,17 +6482,17 @@ function rl({ as: e = "button", asChild: n = !1, children: i, className: a, disa
|
|
|
6409
6482
|
children: i
|
|
6410
6483
|
});
|
|
6411
6484
|
}
|
|
6412
|
-
function
|
|
6413
|
-
let { close: n, instanceZIndex: r, maxWidth: i, outsideClick: a, rendered: o, visible: s } =
|
|
6485
|
+
function al({ children: e, className: t }) {
|
|
6486
|
+
let { close: n, instanceZIndex: r, maxWidth: i, outsideClick: a, rendered: o, visible: s } = Fc("ModalContent"), c = el[tl(S())];
|
|
6414
6487
|
return typeof window > "u" || !o ? null : g(/* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [/* @__PURE__ */ (0, b.jsx)("div", {
|
|
6415
|
-
className:
|
|
6488
|
+
className: q($c.overlay, s ? "opacity-100" : "opacity-0"),
|
|
6416
6489
|
style: { zIndex: r },
|
|
6417
6490
|
onClick: a ? n : void 0
|
|
6418
6491
|
}), /* @__PURE__ */ (0, b.jsx)("div", {
|
|
6419
|
-
className:
|
|
6492
|
+
className: $c.viewport,
|
|
6420
6493
|
style: { zIndex: r + 1 },
|
|
6421
6494
|
children: /* @__PURE__ */ (0, b.jsx)("div", {
|
|
6422
|
-
className:
|
|
6495
|
+
className: q($c.dialog, c.dialog, i, "translate-y-0 scale-100 opacity-100", !s && "translate-y-2 scale-[0.995] opacity-0", t),
|
|
6423
6496
|
role: "dialog",
|
|
6424
6497
|
"aria-modal": "true",
|
|
6425
6498
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -6427,45 +6500,45 @@ function il({ children: e, className: t }) {
|
|
|
6427
6500
|
})
|
|
6428
6501
|
})] }), document.body);
|
|
6429
6502
|
}
|
|
6430
|
-
function
|
|
6431
|
-
let { close: n, outsideClick: r } =
|
|
6503
|
+
function ol({ children: e, className: t }) {
|
|
6504
|
+
let { close: n, outsideClick: r } = Fc("ModalHeader"), i = el[tl(S())];
|
|
6432
6505
|
return /* @__PURE__ */ (0, b.jsxs)("div", {
|
|
6433
|
-
className:
|
|
6506
|
+
className: q($c.header, i.header, t),
|
|
6434
6507
|
children: [/* @__PURE__ */ (0, b.jsx)("div", {
|
|
6435
6508
|
className: "min-w-0 flex-1",
|
|
6436
6509
|
children: e
|
|
6437
6510
|
}), r ? /* @__PURE__ */ (0, b.jsx)("button", {
|
|
6438
6511
|
type: "button",
|
|
6439
6512
|
onClick: n,
|
|
6440
|
-
className:
|
|
6513
|
+
className: q($c.closeButton, i.closeButton),
|
|
6441
6514
|
"aria-label": "Cerrar modal",
|
|
6442
|
-
children: /* @__PURE__ */ (0, b.jsx)(
|
|
6515
|
+
children: /* @__PURE__ */ (0, b.jsx)(nl, {})
|
|
6443
6516
|
}) : null]
|
|
6444
6517
|
});
|
|
6445
6518
|
}
|
|
6446
|
-
function
|
|
6519
|
+
function sl({ centered: e = !0, children: t, className: n }) {
|
|
6447
6520
|
return /* @__PURE__ */ (0, b.jsx)("h2", {
|
|
6448
|
-
className:
|
|
6521
|
+
className: q("text-lg font-semibold tracking-[-0.02em]", e && "text-center", n),
|
|
6449
6522
|
children: t
|
|
6450
6523
|
});
|
|
6451
6524
|
}
|
|
6452
|
-
function
|
|
6453
|
-
let n =
|
|
6525
|
+
function cl({ children: e, className: t }) {
|
|
6526
|
+
let n = el[tl(S())];
|
|
6454
6527
|
return /* @__PURE__ */ (0, b.jsx)("div", {
|
|
6455
|
-
className:
|
|
6528
|
+
className: q($c.body, n.muted, t),
|
|
6456
6529
|
children: e
|
|
6457
6530
|
});
|
|
6458
6531
|
}
|
|
6459
|
-
function
|
|
6460
|
-
let r =
|
|
6532
|
+
function ll({ children: e, className: t, placement: n = "center" }) {
|
|
6533
|
+
let r = el[tl(S())];
|
|
6461
6534
|
return /* @__PURE__ */ (0, b.jsx)("div", {
|
|
6462
|
-
className:
|
|
6535
|
+
className: q($c.actions, r.actions, n === "start" && "justify-start", n === "center" && "justify-center", n === "end" && "justify-end", t),
|
|
6463
6536
|
children: e
|
|
6464
6537
|
});
|
|
6465
6538
|
}
|
|
6466
|
-
function
|
|
6467
|
-
let { close: c } =
|
|
6468
|
-
return /* @__PURE__ */ (0, b.jsx)(
|
|
6539
|
+
function ul({ children: e, className: t, closeOnClick: n = !0, color: r = "primary", onClick: i, size: a = "md", variant: o = "solid", ...s }) {
|
|
6540
|
+
let { close: c } = Fc("ModalAction");
|
|
6541
|
+
return /* @__PURE__ */ (0, b.jsx)(Jn, {
|
|
6469
6542
|
variant: o,
|
|
6470
6543
|
color: r,
|
|
6471
6544
|
size: a,
|
|
@@ -6477,15 +6550,15 @@ function ll({ children: e, className: t, closeOnClick: n = !0, color: r = "prima
|
|
|
6477
6550
|
children: e
|
|
6478
6551
|
});
|
|
6479
6552
|
}
|
|
6480
|
-
|
|
6553
|
+
rl.Trigger = il, rl.Content = al, rl.Header = ol, rl.Title = sl, rl.Body = cl, rl.Actions = ll, rl.Action = ul;
|
|
6481
6554
|
//#endregion
|
|
6482
6555
|
//#region src/lib/components/modal/useModal.js
|
|
6483
|
-
function
|
|
6484
|
-
return
|
|
6556
|
+
function dl() {
|
|
6557
|
+
return Fc("useModal");
|
|
6485
6558
|
}
|
|
6486
6559
|
//#endregion
|
|
6487
6560
|
//#region src/lib/components/pagination/Pagination.jsx
|
|
6488
|
-
function
|
|
6561
|
+
function fl({ count: e, page: t, siblingCount: n }) {
|
|
6489
6562
|
if (e <= n * 2 + 5) return Array.from({ length: e }, (e, t) => t + 1);
|
|
6490
6563
|
let r = Math.max(t - n, 1), i = Math.min(t + n, e), a = r > 2, o = i < e - 1;
|
|
6491
6564
|
return !a && o ? [
|
|
@@ -6504,8 +6577,8 @@ function dl({ count: e, page: t, siblingCount: n }) {
|
|
|
6504
6577
|
e
|
|
6505
6578
|
];
|
|
6506
6579
|
}
|
|
6507
|
-
function
|
|
6508
|
-
let c = o !== void 0, [l, u] = m(r), d = c ? o : l, p = Math.max(1, n ?? 1), h = Math.min(Math.max(d, 1), p), g = f(() =>
|
|
6580
|
+
function pl({ className: e, color: t = "neutral", count: n, defaultPage: r = 1, disabled: i = !1, onPageChange: a, page: o, siblingCount: s = 1 }) {
|
|
6581
|
+
let c = o !== void 0, [l, u] = m(r), d = c ? o : l, p = Math.max(1, n ?? 1), h = Math.min(Math.max(d, 1), p), g = f(() => fl({
|
|
6509
6582
|
count: p,
|
|
6510
6583
|
page: h,
|
|
6511
6584
|
siblingCount: s
|
|
@@ -6520,9 +6593,9 @@ function fl({ className: e, color: t = "neutral", count: n, defaultPage: r = 1,
|
|
|
6520
6593
|
};
|
|
6521
6594
|
return /* @__PURE__ */ (0, b.jsxs)("nav", {
|
|
6522
6595
|
"aria-label": "Pagination",
|
|
6523
|
-
className:
|
|
6596
|
+
className: q("flex items-center gap-2", e),
|
|
6524
6597
|
children: [
|
|
6525
|
-
/* @__PURE__ */ (0, b.jsx)(
|
|
6598
|
+
/* @__PURE__ */ (0, b.jsx)(Jn, {
|
|
6526
6599
|
variant: "outline",
|
|
6527
6600
|
color: t,
|
|
6528
6601
|
size: "sm",
|
|
@@ -6532,7 +6605,7 @@ function fl({ className: e, color: t = "neutral", count: n, defaultPage: r = 1,
|
|
|
6532
6605
|
}),
|
|
6533
6606
|
/* @__PURE__ */ (0, b.jsx)("div", {
|
|
6534
6607
|
className: "flex items-center gap-2",
|
|
6535
|
-
children: g.map((e, n) => typeof e == "number" ? /* @__PURE__ */ (0, b.jsx)(
|
|
6608
|
+
children: g.map((e, n) => typeof e == "number" ? /* @__PURE__ */ (0, b.jsx)(Jn, {
|
|
6536
6609
|
shape: "square",
|
|
6537
6610
|
size: "sm",
|
|
6538
6611
|
variant: e === h ? "solid" : "outline",
|
|
@@ -6546,7 +6619,7 @@ function fl({ className: e, color: t = "neutral", count: n, defaultPage: r = 1,
|
|
|
6546
6619
|
children: "..."
|
|
6547
6620
|
}, `${e}-${n}`))
|
|
6548
6621
|
}),
|
|
6549
|
-
/* @__PURE__ */ (0, b.jsx)(
|
|
6622
|
+
/* @__PURE__ */ (0, b.jsx)(Jn, {
|
|
6550
6623
|
variant: "outline",
|
|
6551
6624
|
color: t,
|
|
6552
6625
|
size: "sm",
|
|
@@ -6559,10 +6632,10 @@ function fl({ className: e, color: t = "neutral", count: n, defaultPage: r = 1,
|
|
|
6559
6632
|
}
|
|
6560
6633
|
//#endregion
|
|
6561
6634
|
//#region src/lib/components/popover/Popover.jsx
|
|
6562
|
-
var
|
|
6635
|
+
var ml = {
|
|
6563
6636
|
wrapper: "inline-flex",
|
|
6564
6637
|
panel: ["z-50 w-max max-w-[20rem] break-words rounded-[1rem] border px-3 py-2", "text-sm leading-6 outline-none"].join(" ")
|
|
6565
|
-
},
|
|
6638
|
+
}, hl = {
|
|
6566
6639
|
light: {
|
|
6567
6640
|
default: {
|
|
6568
6641
|
panel: "border-slate-200 bg-white text-slate-700",
|
|
@@ -6668,10 +6741,10 @@ var pl = {
|
|
|
6668
6741
|
}
|
|
6669
6742
|
}
|
|
6670
6743
|
};
|
|
6671
|
-
function
|
|
6744
|
+
function gl(e) {
|
|
6672
6745
|
return e === "dark" ? "dark" : "light";
|
|
6673
6746
|
}
|
|
6674
|
-
function
|
|
6747
|
+
function _l(e) {
|
|
6675
6748
|
switch (e) {
|
|
6676
6749
|
case "top-start": return "bottom left";
|
|
6677
6750
|
case "top-end": return "bottom right";
|
|
@@ -6688,7 +6761,7 @@ function gl(e) {
|
|
|
6688
6761
|
default: return "top center";
|
|
6689
6762
|
}
|
|
6690
6763
|
}
|
|
6691
|
-
function
|
|
6764
|
+
function vl(e) {
|
|
6692
6765
|
switch (e) {
|
|
6693
6766
|
case "top": return "translateY(4px) scale(0.98)";
|
|
6694
6767
|
case "bottom": return "translateY(-4px) scale(0.98)";
|
|
@@ -6697,11 +6770,11 @@ function _l(e) {
|
|
|
6697
6770
|
default: return "scale(0.98)";
|
|
6698
6771
|
}
|
|
6699
6772
|
}
|
|
6700
|
-
function
|
|
6773
|
+
function yl(e) {
|
|
6701
6774
|
return !!(e?.props?.disabled || e?.props?.["aria-disabled"] === !0);
|
|
6702
6775
|
}
|
|
6703
|
-
function
|
|
6704
|
-
let [w, T] = m(!1), [E, D] = m(null), O =
|
|
6776
|
+
function bl({ arrowHeight: e = 8, arrowFill: t, arrowStrokeWidth: n = .75, arrowStroke: i, arrowTipRadius: a = 2, arrowWidth: c = 16, autoCloseMs: u = 0, children: d, className: f = "", color: p = "default", content: h, offset: g = 8, placement: _ = "top", showArrow: v = !0, trigger: y = "hover", usePortal: x = !0, zIndex: C = 2e3 }) {
|
|
6777
|
+
let [w, T] = m(!1), [E, D] = m(null), O = gl(S()), k = hl[O][p] ? p : "default", A = hl[O][k], j = y === "hover", { refs: M, floatingStyles: N, context: P } = Ds({
|
|
6705
6778
|
open: w,
|
|
6706
6779
|
onOpenChange: T,
|
|
6707
6780
|
placement: _,
|
|
@@ -6728,18 +6801,18 @@ function yl({ arrowHeight: e = 8, arrowFill: t, arrowStrokeWidth: n = .75, arrow
|
|
|
6728
6801
|
ks(P),
|
|
6729
6802
|
Ts(P),
|
|
6730
6803
|
Bs(P, { role: j ? "tooltip" : "dialog" })
|
|
6731
|
-
]),
|
|
6804
|
+
]), ee = s((e) => {
|
|
6732
6805
|
M.setReference(e);
|
|
6733
|
-
}, [M]),
|
|
6806
|
+
}, [M]), L = s((e) => {
|
|
6734
6807
|
M.setFloating(e);
|
|
6735
|
-
}, [M]), { isMounted: te, styles:
|
|
6808
|
+
}, [M]), { isMounted: te, styles: R } = Gs(P, {
|
|
6736
6809
|
duration: {
|
|
6737
6810
|
open: 120,
|
|
6738
6811
|
close: 90
|
|
6739
6812
|
},
|
|
6740
6813
|
initial: ({ side: e }) => ({
|
|
6741
6814
|
opacity: 0,
|
|
6742
|
-
transform:
|
|
6815
|
+
transform: vl(e)
|
|
6743
6816
|
}),
|
|
6744
6817
|
open: {
|
|
6745
6818
|
opacity: 1,
|
|
@@ -6747,9 +6820,9 @@ function yl({ arrowHeight: e = 8, arrowFill: t, arrowStrokeWidth: n = .75, arrow
|
|
|
6747
6820
|
},
|
|
6748
6821
|
close: ({ side: e }) => ({
|
|
6749
6822
|
opacity: 0,
|
|
6750
|
-
transform:
|
|
6823
|
+
transform: vl(e)
|
|
6751
6824
|
}),
|
|
6752
|
-
common: { transformOrigin:
|
|
6825
|
+
common: { transformOrigin: _l(_) }
|
|
6753
6826
|
});
|
|
6754
6827
|
l(() => {
|
|
6755
6828
|
if (!w || !(u > 0)) return;
|
|
@@ -6760,24 +6833,24 @@ function yl({ arrowHeight: e = 8, arrowFill: t, arrowStrokeWidth: n = .75, arrow
|
|
|
6760
6833
|
window.clearTimeout(e);
|
|
6761
6834
|
};
|
|
6762
6835
|
}, [u, w]);
|
|
6763
|
-
let
|
|
6764
|
-
ref:
|
|
6765
|
-
className:
|
|
6766
|
-
...
|
|
6767
|
-
children: r(d, { className:
|
|
6836
|
+
let z = o(d) ? /* @__PURE__ */ (0, b.jsx)("span", {
|
|
6837
|
+
ref: ee,
|
|
6838
|
+
className: ml.wrapper,
|
|
6839
|
+
...yl(d) ? { "data-state": w ? "open" : "closed" } : F({ "data-state": w ? "open" : "closed" }),
|
|
6840
|
+
children: r(d, { className: q(d.props.className) })
|
|
6768
6841
|
}) : /* @__PURE__ */ (0, b.jsx)("span", {
|
|
6769
|
-
ref:
|
|
6770
|
-
className:
|
|
6842
|
+
ref: ee,
|
|
6843
|
+
className: ml.wrapper,
|
|
6771
6844
|
...F({ "data-state": w ? "open" : "closed" }),
|
|
6772
6845
|
children: d
|
|
6773
6846
|
});
|
|
6774
|
-
if (!te) return
|
|
6775
|
-
let
|
|
6776
|
-
ref:
|
|
6777
|
-
className:
|
|
6847
|
+
if (!te) return z;
|
|
6848
|
+
let B = t ?? A.arrowFill, ne = i ?? A.arrowStroke, re = /* @__PURE__ */ (0, b.jsxs)("div", {
|
|
6849
|
+
ref: L,
|
|
6850
|
+
className: q(ml.panel, A.panel, f),
|
|
6778
6851
|
style: {
|
|
6779
6852
|
...N,
|
|
6780
|
-
...
|
|
6853
|
+
...R,
|
|
6781
6854
|
zIndex: C
|
|
6782
6855
|
},
|
|
6783
6856
|
...I({ "data-state": w ? "open" : "closed" }),
|
|
@@ -6787,17 +6860,17 @@ function yl({ arrowHeight: e = 8, arrowFill: t, arrowStrokeWidth: n = .75, arrow
|
|
|
6787
6860
|
width: c,
|
|
6788
6861
|
height: e,
|
|
6789
6862
|
tipRadius: a,
|
|
6790
|
-
fill:
|
|
6791
|
-
stroke:
|
|
6863
|
+
fill: B,
|
|
6864
|
+
stroke: ne,
|
|
6792
6865
|
strokeWidth: n,
|
|
6793
6866
|
className: "pointer-events-none"
|
|
6794
6867
|
}) : null]
|
|
6795
6868
|
});
|
|
6796
|
-
return /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [
|
|
6869
|
+
return /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [z, x ? /* @__PURE__ */ (0, b.jsx)(gs, { children: re }) : re] });
|
|
6797
6870
|
}
|
|
6798
6871
|
//#endregion
|
|
6799
6872
|
//#region src/lib/components/radio/Radio.jsx
|
|
6800
|
-
var
|
|
6873
|
+
var xl = {
|
|
6801
6874
|
light: {
|
|
6802
6875
|
ring: "border-slate-300 bg-white",
|
|
6803
6876
|
focus: "peer-focus-visible:outline-slate-300",
|
|
@@ -6870,7 +6943,7 @@ var bl = {
|
|
|
6870
6943
|
invalid: "border-red-500/60 peer-checked:border-red-300",
|
|
6871
6944
|
invalidDot: "bg-red-300"
|
|
6872
6945
|
}
|
|
6873
|
-
},
|
|
6946
|
+
}, Sl = {
|
|
6874
6947
|
sm: {
|
|
6875
6948
|
root: "size-3.5",
|
|
6876
6949
|
control: "size-3.5",
|
|
@@ -6882,16 +6955,16 @@ var bl = {
|
|
|
6882
6955
|
dot: "size-2"
|
|
6883
6956
|
}
|
|
6884
6957
|
};
|
|
6885
|
-
function
|
|
6958
|
+
function Cl(e) {
|
|
6886
6959
|
return e === "dark" ? "dark" : "light";
|
|
6887
6960
|
}
|
|
6888
|
-
var
|
|
6889
|
-
let p = u(), m =
|
|
6961
|
+
var wl = a(function({ className: e, color: t = "neutral", containerClassName: n, disabled: r = !1, id: i, invalid: a = !1, label: o, labelClassName: s, required: c = !1, size: l = "md", ...d }, f) {
|
|
6962
|
+
let p = u(), m = xl[Cl(S())], h = nr(), g = a || h?.invalid, _ = r || h?.disabled, v = c || h?.required, y = m.colors[t] ? t : "neutral", x = Sl[Sl[l] ? l : "md"], C = i ?? h?.controlId ?? p, w = [
|
|
6890
6963
|
d["aria-describedby"],
|
|
6891
6964
|
h?.descriptionId,
|
|
6892
6965
|
g ? h?.messageId : null
|
|
6893
6966
|
].filter(Boolean).join(" ") || void 0, T = /* @__PURE__ */ (0, b.jsxs)("span", {
|
|
6894
|
-
className:
|
|
6967
|
+
className: q("relative inline-flex shrink-0 cursor-pointer", x.root, e),
|
|
6895
6968
|
children: [/* @__PURE__ */ (0, b.jsx)("input", {
|
|
6896
6969
|
ref: f,
|
|
6897
6970
|
type: "radio",
|
|
@@ -6904,19 +6977,19 @@ var Cl = a(function({ className: e, color: t = "neutral", containerClassName: n,
|
|
|
6904
6977
|
...d
|
|
6905
6978
|
}), /* @__PURE__ */ (0, b.jsx)("span", {
|
|
6906
6979
|
"aria-hidden": "true",
|
|
6907
|
-
className:
|
|
6908
|
-
children: /* @__PURE__ */ (0, b.jsx)("span", { className:
|
|
6980
|
+
className: q("pointer-events-none inline-flex items-center justify-center rounded-full border outline-none transition-[background-color,border-color,opacity] duration-200 peer-disabled:opacity-60 peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-checked:[&>span]:scale-100", x.control, m.ring, m.focus, g ? m.invalid : m.colors[y].ring),
|
|
6981
|
+
children: /* @__PURE__ */ (0, b.jsx)("span", { className: q("pointer-events-none scale-0 rounded-full transition-transform duration-150", x.dot, g ? m.invalidDot : m.colors[y].dot) })
|
|
6909
6982
|
})]
|
|
6910
6983
|
});
|
|
6911
6984
|
return o ? /* @__PURE__ */ (0, b.jsxs)("span", {
|
|
6912
|
-
className:
|
|
6913
|
-
children: [T, /* @__PURE__ */ (0, b.jsx)(
|
|
6985
|
+
className: q("inline-flex items-center gap-3", n),
|
|
6986
|
+
children: [T, /* @__PURE__ */ (0, b.jsx)(ar, {
|
|
6914
6987
|
htmlFor: C,
|
|
6915
6988
|
className: s,
|
|
6916
6989
|
children: o
|
|
6917
6990
|
})]
|
|
6918
6991
|
}) : T;
|
|
6919
|
-
}),
|
|
6992
|
+
}), Tl = {
|
|
6920
6993
|
wrapper: "relative w-full",
|
|
6921
6994
|
trigger: [
|
|
6922
6995
|
"flex w-full items-center justify-between gap-3 border bg-transparent px-3.5 text-sm outline-none",
|
|
@@ -6927,35 +7000,23 @@ var Cl = a(function({ className: e, color: t = "neutral", containerClassName: n,
|
|
|
6927
7000
|
value: "min-w-0 truncate text-left",
|
|
6928
7001
|
icon: "shrink-0 text-current/55 transition-transform duration-200",
|
|
6929
7002
|
content: "max-h-72 overflow-y-auto"
|
|
6930
|
-
},
|
|
7003
|
+
}, El = "bottom-start", Dl = 140, Ol = 100, kl = {
|
|
6931
7004
|
sm: "h-9",
|
|
6932
7005
|
md: "h-11",
|
|
6933
7006
|
lg: "h-12 text-base"
|
|
6934
|
-
},
|
|
6935
|
-
light: {
|
|
6936
|
-
|
|
6937
|
-
hover: "hover:border-slate-300",
|
|
6938
|
-
invalid: "border-red-300 text-red-700 focus-visible:border-red-400 focus-visible:ring-red-200/70",
|
|
6939
|
-
placeholder: "text-slate-500",
|
|
6940
|
-
selectedIndicator: "text-slate-950"
|
|
6941
|
-
},
|
|
6942
|
-
dark: {
|
|
6943
|
-
base: "border-zinc-800 bg-zinc-950 text-stone-50 focus-visible:border-zinc-700 focus-visible:ring-zinc-800/80",
|
|
6944
|
-
hover: "hover:border-zinc-700",
|
|
6945
|
-
invalid: "border-red-500/60 text-stone-50 focus-visible:border-red-400/80 focus-visible:ring-red-500/20",
|
|
6946
|
-
placeholder: "text-stone-400",
|
|
6947
|
-
selectedIndicator: "text-stone-50"
|
|
6948
|
-
}
|
|
7007
|
+
}, Al = {
|
|
7008
|
+
light: { invalid: bc.light.invalid },
|
|
7009
|
+
dark: { invalid: bc.dark.invalid }
|
|
6949
7010
|
};
|
|
6950
|
-
function
|
|
7011
|
+
function jl(e) {
|
|
6951
7012
|
return e == null ? "" : String(e);
|
|
6952
7013
|
}
|
|
6953
|
-
function
|
|
7014
|
+
function Ml(e) {
|
|
6954
7015
|
return typeof e == "string" || typeof e == "number" ? String(e) : e;
|
|
6955
7016
|
}
|
|
6956
|
-
function
|
|
7017
|
+
function Nl(e) {
|
|
6957
7018
|
return t.toArray(e).filter((e) => o(e) && e.type === "option").map((e, t) => {
|
|
6958
|
-
let n =
|
|
7019
|
+
let n = Ml(e.props.children), r = typeof e.props.children == "string" || typeof e.props.children == "number" ? String(e.props.children) : "", i = e.props.value === void 0 ? r || String(t) : jl(e.props.value);
|
|
6959
7020
|
return {
|
|
6960
7021
|
disabled: !!e.props.disabled,
|
|
6961
7022
|
key: e.key ?? `${i}-${t}`,
|
|
@@ -6964,16 +7025,16 @@ function Ml(e) {
|
|
|
6964
7025
|
};
|
|
6965
7026
|
});
|
|
6966
7027
|
}
|
|
6967
|
-
function
|
|
6968
|
-
return e === void 0 ? t === void 0 ? r ? "" : n[0]?.value ?? "" :
|
|
7028
|
+
function Pl({ controlledValue: e, defaultValue: t, options: n, placeholder: r }) {
|
|
7029
|
+
return e === void 0 ? t === void 0 ? r ? "" : n[0]?.value ?? "" : jl(t) : jl(e);
|
|
6969
7030
|
}
|
|
6970
|
-
function
|
|
7031
|
+
function Fl({ nextOpen: e, selectedIndex: t, firstEnabledIndex: n }) {
|
|
6971
7032
|
return e ? t >= 0 ? t : n : null;
|
|
6972
7033
|
}
|
|
6973
|
-
function
|
|
7034
|
+
function Il(e, t) {
|
|
6974
7035
|
typeof e == "function" ? e(t) : e && typeof e == "object" && (e.current = t);
|
|
6975
7036
|
}
|
|
6976
|
-
function
|
|
7037
|
+
function Ll({ id: e, name: t, nativeEvent: n, value: r }) {
|
|
6977
7038
|
return {
|
|
6978
7039
|
type: "change",
|
|
6979
7040
|
nativeEvent: n,
|
|
@@ -6995,26 +7056,26 @@ function Il({ id: e, name: t, nativeEvent: n, value: r }) {
|
|
|
6995
7056
|
}
|
|
6996
7057
|
};
|
|
6997
7058
|
}
|
|
6998
|
-
var
|
|
6999
|
-
let
|
|
7059
|
+
var Rl = a(function({ children: e, className: t, defaultValue: n, disabled: r = !1, id: i, invalid: a = !1, name: o, onChange: c, onValueChange: l, placeholder: u, required: d = !1, size: h = "md", usePortal: g = !0, value: _, color: v = "neutral", ...y }, x) {
|
|
7060
|
+
let C = ec(S()), w = xc(S()), T = Al[w], E = Sc(v), D = bc[w][E], O = nr(), k = f(() => Nl(e), [e]), [A, j] = m(Pl({
|
|
7000
7061
|
controlledValue: _,
|
|
7001
7062
|
defaultValue: n,
|
|
7002
|
-
options:
|
|
7063
|
+
options: k,
|
|
7003
7064
|
placeholder: u
|
|
7004
|
-
})), [
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
].filter(Boolean).join(" ") || void 0,
|
|
7009
|
-
|
|
7065
|
+
})), [M, N] = m(!1), [P, F] = m(null), I = p([]), ee = _ === void 0 ? A : jl(_), L = k.findIndex((e) => e.value === ee), te = L >= 0 ? k[L] : null, R = a || O?.invalid, z = r || O?.disabled, B = d || O?.required, ne = i ?? O?.controlId, re = [
|
|
7066
|
+
y["aria-describedby"],
|
|
7067
|
+
O?.descriptionId,
|
|
7068
|
+
R ? O?.messageId : null
|
|
7069
|
+
].filter(Boolean).join(" ") || void 0, V = k.findIndex((e) => !e.disabled), H = s((e) => {
|
|
7070
|
+
N(e), F(Fl({
|
|
7010
7071
|
nextOpen: e,
|
|
7011
|
-
selectedIndex:
|
|
7012
|
-
firstEnabledIndex:
|
|
7072
|
+
selectedIndex: L,
|
|
7073
|
+
firstEnabledIndex: V
|
|
7013
7074
|
}));
|
|
7014
|
-
}, [
|
|
7015
|
-
open:
|
|
7016
|
-
onOpenChange:
|
|
7017
|
-
placement:
|
|
7075
|
+
}, [V, L]), { refs: ie, floatingStyles: ae, context: oe } = Ds({
|
|
7076
|
+
open: M,
|
|
7077
|
+
onOpenChange: H,
|
|
7078
|
+
placement: El,
|
|
7018
7079
|
transform: !1,
|
|
7019
7080
|
middleware: [
|
|
7020
7081
|
ko(8),
|
|
@@ -7025,20 +7086,20 @@ var Ll = a(function({ children: e, className: t, defaultValue: n, disabled: r =
|
|
|
7025
7086
|
} })
|
|
7026
7087
|
],
|
|
7027
7088
|
whileElementsMounted: ho
|
|
7028
|
-
}),
|
|
7029
|
-
Ts(
|
|
7030
|
-
Bs(
|
|
7031
|
-
Rs(
|
|
7032
|
-
activeIndex:
|
|
7033
|
-
listRef:
|
|
7089
|
+
}), se = js([
|
|
7090
|
+
Ts(oe),
|
|
7091
|
+
Bs(oe, { role: "listbox" }),
|
|
7092
|
+
Rs(oe, {
|
|
7093
|
+
activeIndex: P,
|
|
7094
|
+
listRef: I,
|
|
7034
7095
|
loop: !0,
|
|
7035
|
-
onNavigate:
|
|
7036
|
-
selectedIndex:
|
|
7096
|
+
onNavigate: F,
|
|
7097
|
+
selectedIndex: L
|
|
7037
7098
|
})
|
|
7038
|
-
]), { isMounted:
|
|
7099
|
+
]), { isMounted: ce, styles: le } = Gs(oe, {
|
|
7039
7100
|
duration: {
|
|
7040
|
-
open:
|
|
7041
|
-
close:
|
|
7101
|
+
open: Dl,
|
|
7102
|
+
close: Ol
|
|
7042
7103
|
},
|
|
7043
7104
|
initial: ({ side: e }) => ({
|
|
7044
7105
|
opacity: 0,
|
|
@@ -7052,82 +7113,82 @@ var Ll = a(function({ children: e, className: t, defaultValue: n, disabled: r =
|
|
|
7052
7113
|
opacity: 0,
|
|
7053
7114
|
transform: nc(e)
|
|
7054
7115
|
}),
|
|
7055
|
-
common: { transformOrigin: tc(
|
|
7056
|
-
}),
|
|
7057
|
-
|
|
7058
|
-
}, [
|
|
7059
|
-
|
|
7060
|
-
}, [
|
|
7061
|
-
_ === void 0 &&
|
|
7062
|
-
id:
|
|
7116
|
+
common: { transformOrigin: tc(El) }
|
|
7117
|
+
}), ue = s((e) => {
|
|
7118
|
+
ie.setFloating(e);
|
|
7119
|
+
}, [ie]), de = s((e) => {
|
|
7120
|
+
ie.setReference(e), Il(x, e);
|
|
7121
|
+
}, [x, ie]), fe = s((e, t) => {
|
|
7122
|
+
_ === void 0 && j(e), l?.(e), c?.(Ll({
|
|
7123
|
+
id: ne,
|
|
7063
7124
|
name: o,
|
|
7064
7125
|
nativeEvent: t,
|
|
7065
7126
|
value: e
|
|
7066
|
-
})),
|
|
7127
|
+
})), H(!1), ie.reference.current?.focus?.();
|
|
7067
7128
|
}, [
|
|
7068
7129
|
_,
|
|
7069
|
-
|
|
7130
|
+
H,
|
|
7070
7131
|
o,
|
|
7071
7132
|
c,
|
|
7072
7133
|
l,
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
]),
|
|
7076
|
-
|
|
7134
|
+
ie.reference,
|
|
7135
|
+
ne
|
|
7136
|
+
]), pe = s(() => {
|
|
7137
|
+
z || H(!M);
|
|
7077
7138
|
}, [
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
]),
|
|
7082
|
-
|
|
7083
|
-
}, [
|
|
7084
|
-
|
|
7085
|
-
}, []),
|
|
7086
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
7087
|
-
}, [
|
|
7139
|
+
H,
|
|
7140
|
+
M,
|
|
7141
|
+
z
|
|
7142
|
+
]), U = s((e) => {
|
|
7143
|
+
z || (e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), H(!0));
|
|
7144
|
+
}, [H, z]), me = s((e) => {
|
|
7145
|
+
F(e);
|
|
7146
|
+
}, []), he = s((e, t) => {
|
|
7147
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), fe(t, e));
|
|
7148
|
+
}, [fe]), ge = s((e, t) => se.getItemProps({
|
|
7088
7149
|
onClick(t) {
|
|
7089
|
-
|
|
7150
|
+
fe(e.value, t);
|
|
7090
7151
|
},
|
|
7091
7152
|
onMouseEnter() {
|
|
7092
|
-
|
|
7153
|
+
me(t);
|
|
7093
7154
|
},
|
|
7094
7155
|
onKeyDown(t) {
|
|
7095
|
-
|
|
7156
|
+
he(t, e.value);
|
|
7096
7157
|
}
|
|
7097
7158
|
}), [
|
|
7098
|
-
|
|
7159
|
+
he,
|
|
7160
|
+
me,
|
|
7099
7161
|
fe,
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
className: K(Xs.layout, Qs[x], wl.content),
|
|
7162
|
+
se
|
|
7163
|
+
]), _e = te?.label ?? u ?? "Selecciona una opción", ve = ce ? /* @__PURE__ */ (0, b.jsx)("ul", {
|
|
7164
|
+
ref: ue,
|
|
7165
|
+
className: q(Xs.layout, Qs[C], Tl.content),
|
|
7105
7166
|
style: {
|
|
7106
|
-
...
|
|
7107
|
-
...
|
|
7167
|
+
...ae,
|
|
7168
|
+
...le
|
|
7108
7169
|
},
|
|
7109
|
-
...
|
|
7110
|
-
children:
|
|
7111
|
-
let n = e.value ===
|
|
7170
|
+
...se.getFloatingProps({ "aria-labelledby": ne }),
|
|
7171
|
+
children: k.map((e, t) => {
|
|
7172
|
+
let n = e.value === ee;
|
|
7112
7173
|
return /* @__PURE__ */ (0, b.jsx)("li", {
|
|
7113
7174
|
role: "presentation",
|
|
7114
7175
|
children: /* @__PURE__ */ (0, b.jsxs)("button", {
|
|
7115
7176
|
ref: (e) => {
|
|
7116
|
-
|
|
7177
|
+
I.current[t] = e;
|
|
7117
7178
|
},
|
|
7118
7179
|
type: "button",
|
|
7119
7180
|
role: "option",
|
|
7120
7181
|
"aria-selected": n,
|
|
7121
7182
|
disabled: e.disabled,
|
|
7122
|
-
className:
|
|
7123
|
-
...
|
|
7183
|
+
className: q(Zs.base, $s[C].default, n && $s[C].selected, e.disabled && $s[C].disabled),
|
|
7184
|
+
...ge(e, t),
|
|
7124
7185
|
children: [/* @__PURE__ */ (0, b.jsx)("span", {
|
|
7125
7186
|
className: "min-w-0 flex-1 truncate",
|
|
7126
7187
|
children: e.label
|
|
7127
7188
|
}), n ? /* @__PURE__ */ (0, b.jsx)("svg", {
|
|
7128
7189
|
viewBox: "0 0 20 20",
|
|
7129
7190
|
"aria-hidden": "true",
|
|
7130
|
-
className:
|
|
7191
|
+
className: "size-4 shrink-0 fill-current text-current",
|
|
7131
7192
|
children: /* @__PURE__ */ (0, b.jsx)("path", { d: "m7.75 13.1-3.4-3.4 1.06-1.06 2.34 2.34 6.84-6.84 1.06 1.06-7.9 7.9Z" })
|
|
7132
7193
|
}) : null]
|
|
7133
7194
|
})
|
|
@@ -7135,38 +7196,38 @@ var Ll = a(function({ children: e, className: t, defaultValue: n, disabled: r =
|
|
|
7135
7196
|
})
|
|
7136
7197
|
}) : null;
|
|
7137
7198
|
return /* @__PURE__ */ (0, b.jsxs)("span", {
|
|
7138
|
-
className:
|
|
7199
|
+
className: Tl.wrapper,
|
|
7139
7200
|
children: [
|
|
7140
7201
|
o ? /* @__PURE__ */ (0, b.jsx)("input", {
|
|
7141
7202
|
type: "hidden",
|
|
7142
7203
|
name: o,
|
|
7143
|
-
value:
|
|
7204
|
+
value: ee
|
|
7144
7205
|
}) : null,
|
|
7145
7206
|
/* @__PURE__ */ (0, b.jsxs)("button", {
|
|
7146
|
-
ref:
|
|
7147
|
-
id:
|
|
7207
|
+
ref: de,
|
|
7208
|
+
id: ne,
|
|
7148
7209
|
type: "button",
|
|
7149
|
-
disabled:
|
|
7150
|
-
"aria-describedby":
|
|
7151
|
-
"aria-expanded":
|
|
7210
|
+
disabled: z,
|
|
7211
|
+
"aria-describedby": re,
|
|
7212
|
+
"aria-expanded": M,
|
|
7152
7213
|
"aria-haspopup": "listbox",
|
|
7153
|
-
"aria-invalid":
|
|
7154
|
-
"aria-required":
|
|
7155
|
-
className:
|
|
7156
|
-
...
|
|
7157
|
-
...
|
|
7214
|
+
"aria-invalid": R || void 0,
|
|
7215
|
+
"aria-required": B || void 0,
|
|
7216
|
+
className: q(Tl.trigger, st(h), kl[h] ?? kl.md, R ? T.invalid : D.base, !z && !R && D.hover, t),
|
|
7217
|
+
...se.getReferenceProps({
|
|
7218
|
+
...y,
|
|
7158
7219
|
onClick(e) {
|
|
7159
|
-
|
|
7220
|
+
y.onClick?.(e), pe(e);
|
|
7160
7221
|
},
|
|
7161
7222
|
onKeyDown(e) {
|
|
7162
|
-
|
|
7223
|
+
y.onKeyDown?.(e), e.defaultPrevented || U(e);
|
|
7163
7224
|
}
|
|
7164
7225
|
}),
|
|
7165
7226
|
children: [/* @__PURE__ */ (0, b.jsx)("span", {
|
|
7166
|
-
className:
|
|
7167
|
-
children:
|
|
7227
|
+
className: q(Tl.value, !te && "text-current/55"),
|
|
7228
|
+
children: _e
|
|
7168
7229
|
}), /* @__PURE__ */ (0, b.jsx)("span", {
|
|
7169
|
-
className:
|
|
7230
|
+
className: q(Tl.icon, M && "rotate-180"),
|
|
7170
7231
|
"aria-hidden": "true",
|
|
7171
7232
|
children: /* @__PURE__ */ (0, b.jsx)("svg", {
|
|
7172
7233
|
viewBox: "0 0 20 20",
|
|
@@ -7175,29 +7236,29 @@ var Ll = a(function({ children: e, className: t, defaultValue: n, disabled: r =
|
|
|
7175
7236
|
})
|
|
7176
7237
|
})]
|
|
7177
7238
|
}),
|
|
7178
|
-
g ? /* @__PURE__ */ (0, b.jsx)(gs, { children:
|
|
7239
|
+
g ? /* @__PURE__ */ (0, b.jsx)(gs, { children: ve }) : ve
|
|
7179
7240
|
]
|
|
7180
7241
|
});
|
|
7181
|
-
}),
|
|
7242
|
+
}), zl = {
|
|
7182
7243
|
light: "bg-slate-200",
|
|
7183
7244
|
dark: "bg-zinc-800"
|
|
7184
|
-
},
|
|
7245
|
+
}, Bl = {
|
|
7185
7246
|
line: "h-4 w-full rounded-full",
|
|
7186
7247
|
rect: "h-24 w-full rounded-[1rem]",
|
|
7187
7248
|
circle: "size-12 rounded-full"
|
|
7188
7249
|
};
|
|
7189
|
-
function
|
|
7250
|
+
function Vl(e) {
|
|
7190
7251
|
return e === "dark" ? "dark" : "light";
|
|
7191
7252
|
}
|
|
7192
|
-
var
|
|
7193
|
-
let a =
|
|
7253
|
+
var Hl = a(function({ animated: e = !0, className: t, shape: n = "line", ...r }, i) {
|
|
7254
|
+
let a = Vl(S());
|
|
7194
7255
|
return /* @__PURE__ */ (0, b.jsx)("div", {
|
|
7195
7256
|
ref: i,
|
|
7196
7257
|
"aria-hidden": "true",
|
|
7197
|
-
className:
|
|
7258
|
+
className: q(Bl[n] ?? Bl.line, zl[a], e && "animate-pulse", t),
|
|
7198
7259
|
...r
|
|
7199
7260
|
});
|
|
7200
|
-
}),
|
|
7261
|
+
}), Ul = {
|
|
7201
7262
|
root: [
|
|
7202
7263
|
"relative inline-flex shrink-0 cursor-pointer items-center rounded-full border outline-none",
|
|
7203
7264
|
"transition-[background-color,border-color] duration-200",
|
|
@@ -7205,7 +7266,7 @@ var Vl = a(function({ animated: e = !0, className: t, shape: n = "line", ...r },
|
|
|
7205
7266
|
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
7206
7267
|
].join(" "),
|
|
7207
7268
|
thumb: ["pointer-events-none inline-flex rounded-full border", "transition-transform duration-200"].join(" ")
|
|
7208
|
-
},
|
|
7269
|
+
}, Wl = {
|
|
7209
7270
|
sm: {
|
|
7210
7271
|
root: "h-5 w-9",
|
|
7211
7272
|
thumb: "size-4",
|
|
@@ -7218,7 +7279,7 @@ var Vl = a(function({ animated: e = !0, className: t, shape: n = "line", ...r },
|
|
|
7218
7279
|
checked: "translate-x-5",
|
|
7219
7280
|
unchecked: "translate-x-0.5"
|
|
7220
7281
|
}
|
|
7221
|
-
},
|
|
7282
|
+
}, Gl = {
|
|
7222
7283
|
light: {
|
|
7223
7284
|
idle: "border-slate-300 bg-slate-200 focus-visible:outline-slate-300",
|
|
7224
7285
|
checked: {
|
|
@@ -7246,11 +7307,11 @@ var Vl = a(function({ animated: e = !0, className: t, shape: n = "line", ...r },
|
|
|
7246
7307
|
thumb: "border-zinc-950 bg-zinc-950"
|
|
7247
7308
|
}
|
|
7248
7309
|
};
|
|
7249
|
-
function
|
|
7310
|
+
function Kl(e) {
|
|
7250
7311
|
return e === "dark" ? "dark" : "light";
|
|
7251
7312
|
}
|
|
7252
|
-
var
|
|
7253
|
-
let x = u(), C = e !== void 0, [w, T] = m(i), E = C ? e : w, D =
|
|
7313
|
+
var ql = a(function({ checked: e, className: t, color: n = "neutral", containerClassName: r, defaultChecked: i = !1, disabled: a = !1, id: o, invalid: s = !1, label: c, labelClassName: l, name: d, onCheckedChange: p, required: h = !1, size: g = "md", value: _ = "on", ...v }, y) {
|
|
7314
|
+
let x = u(), C = e !== void 0, [w, T] = m(i), E = C ? e : w, D = Gl[Kl(S())], O = nr(), k = a || O?.disabled, A = h || O?.required, j = s || O?.invalid, M = D.checked[n] ? n : "neutral", N = Wl[g] ? g : "md", P = o ?? O?.controlId ?? x, F = [
|
|
7254
7315
|
v["aria-describedby"],
|
|
7255
7316
|
O?.descriptionId,
|
|
7256
7317
|
j ? O?.messageId : null
|
|
@@ -7264,11 +7325,11 @@ var Kl = a(function({ checked: e, className: t, color: n = "neutral", containerC
|
|
|
7264
7325
|
k,
|
|
7265
7326
|
A,
|
|
7266
7327
|
_
|
|
7267
|
-
]),
|
|
7328
|
+
]), ee = () => {
|
|
7268
7329
|
if (k) return;
|
|
7269
7330
|
let e = !E;
|
|
7270
7331
|
C || T(e), p?.(e);
|
|
7271
|
-
},
|
|
7332
|
+
}, L = /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [/* @__PURE__ */ (0, b.jsx)("button", {
|
|
7272
7333
|
ref: y,
|
|
7273
7334
|
type: "button",
|
|
7274
7335
|
role: "switch",
|
|
@@ -7278,10 +7339,10 @@ var Kl = a(function({ checked: e, className: t, color: n = "neutral", containerC
|
|
|
7278
7339
|
"aria-describedby": F,
|
|
7279
7340
|
disabled: k,
|
|
7280
7341
|
"data-state": E ? "checked" : "unchecked",
|
|
7281
|
-
className:
|
|
7282
|
-
onClick:
|
|
7342
|
+
className: q(Ul.root, Wl[N].root, E ? D.checked[M] : D.idle, t),
|
|
7343
|
+
onClick: ee,
|
|
7283
7344
|
...v,
|
|
7284
|
-
children: /* @__PURE__ */ (0, b.jsx)("span", { className:
|
|
7345
|
+
children: /* @__PURE__ */ (0, b.jsx)("span", { className: q(Ul.thumb, Wl[N].thumb, D.thumb, E ? Wl[N].checked : Wl[N].unchecked) })
|
|
7285
7346
|
}), I ? /* @__PURE__ */ (0, b.jsx)("input", {
|
|
7286
7347
|
type: "checkbox",
|
|
7287
7348
|
hidden: !0,
|
|
@@ -7290,26 +7351,26 @@ var Kl = a(function({ checked: e, className: t, color: n = "neutral", containerC
|
|
|
7290
7351
|
...I
|
|
7291
7352
|
}) : null] });
|
|
7292
7353
|
return c ? /* @__PURE__ */ (0, b.jsxs)("span", {
|
|
7293
|
-
className:
|
|
7294
|
-
children: [
|
|
7354
|
+
className: q("inline-flex items-center gap-3", r),
|
|
7355
|
+
children: [L, /* @__PURE__ */ (0, b.jsx)(ar, {
|
|
7295
7356
|
htmlFor: P,
|
|
7296
7357
|
className: l,
|
|
7297
7358
|
children: c
|
|
7298
7359
|
})]
|
|
7299
|
-
}) :
|
|
7300
|
-
}),
|
|
7301
|
-
function
|
|
7302
|
-
let t = c(
|
|
7360
|
+
}) : L;
|
|
7361
|
+
}), Jl = i(null);
|
|
7362
|
+
function Yl(e) {
|
|
7363
|
+
let t = c(Jl);
|
|
7303
7364
|
if (!t) throw Error(`${e} debe usarse dentro de <Tabs>.`);
|
|
7304
7365
|
return t;
|
|
7305
7366
|
}
|
|
7306
7367
|
//#endregion
|
|
7307
7368
|
//#region src/lib/components/tabs/Tabs.jsx
|
|
7308
|
-
var
|
|
7369
|
+
var Xl = { base: "w-full" }, Zl = {
|
|
7309
7370
|
base: ["inline-flex items-center gap-1 border", "w-fit"].join(" "),
|
|
7310
7371
|
horizontal: "flex-row",
|
|
7311
7372
|
vertical: "flex-col items-stretch"
|
|
7312
|
-
},
|
|
7373
|
+
}, Ql = {
|
|
7313
7374
|
base: [
|
|
7314
7375
|
"inline-flex items-center justify-center border border-transparent font-medium",
|
|
7315
7376
|
"transition-colors outline-none cursor-pointer",
|
|
@@ -7317,7 +7378,7 @@ var Yl = { base: "w-full" }, Xl = {
|
|
|
7317
7378
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
7318
7379
|
].join(" "),
|
|
7319
7380
|
vertical: "justify-start text-left"
|
|
7320
|
-
},
|
|
7381
|
+
}, $l = {
|
|
7321
7382
|
xs: {
|
|
7322
7383
|
list: "min-h-9 rounded-[0.9rem] p-1",
|
|
7323
7384
|
trigger: "min-w-[4.75rem] rounded-[0.7rem] px-2.5 py-1 text-xs"
|
|
@@ -7334,7 +7395,7 @@ var Yl = { base: "w-full" }, Xl = {
|
|
|
7334
7395
|
list: "min-h-12 rounded-[1.1rem] p-1.5",
|
|
7335
7396
|
trigger: "min-w-[7.5rem] rounded-[0.95rem] px-4 py-2.5 text-base"
|
|
7336
7397
|
}
|
|
7337
|
-
},
|
|
7398
|
+
}, eu = { base: "mt-4 outline-none" }, tu = {
|
|
7338
7399
|
light: {
|
|
7339
7400
|
list: "border-slate-200 bg-slate-100/80",
|
|
7340
7401
|
triggerIdle: "text-slate-600 hover:bg-white hover:text-slate-950 focus-visible:outline-slate-300",
|
|
@@ -7368,20 +7429,20 @@ var Yl = { base: "w-full" }, Xl = {
|
|
|
7368
7429
|
content: "text-stone-300"
|
|
7369
7430
|
}
|
|
7370
7431
|
};
|
|
7371
|
-
function
|
|
7432
|
+
function nu(e) {
|
|
7372
7433
|
return e === "dark" ? "dark" : "light";
|
|
7373
7434
|
}
|
|
7374
|
-
function
|
|
7435
|
+
function ru(e) {
|
|
7375
7436
|
return Array.from(e.querySelectorAll("[role=\"tab\"]")).filter((e) => e.getAttribute("aria-disabled") !== "true" && !e.disabled);
|
|
7376
7437
|
}
|
|
7377
|
-
function
|
|
7438
|
+
function iu({ activationMode: e = "automatic", children: t, className: n, color: r = "neutral", defaultValue: i, onValueChange: a, orientation: o = "horizontal", size: c = "md", value: l }) {
|
|
7378
7439
|
let d = u(), p = l !== void 0, [h, g] = m(i), _ = p ? l : h, v = s((e) => {
|
|
7379
7440
|
p || g(e), e !== _ && a?.(e);
|
|
7380
7441
|
}, [
|
|
7381
7442
|
p,
|
|
7382
7443
|
a,
|
|
7383
7444
|
_
|
|
7384
|
-
]), y = o === "vertical" ? "vertical" : "horizontal", x = e === "manual" ? "manual" : "automatic", S =
|
|
7445
|
+
]), y = o === "vertical" ? "vertical" : "horizontal", x = e === "manual" ? "manual" : "automatic", S = Bt(It, c, "md"), C = Bt(Et, r, "neutral"), w = f(() => ({
|
|
7385
7446
|
activationMode: x,
|
|
7386
7447
|
baseId: d,
|
|
7387
7448
|
color: C,
|
|
@@ -7398,31 +7459,31 @@ function ru({ activationMode: e = "automatic", children: t, className: n, color:
|
|
|
7398
7459
|
v,
|
|
7399
7460
|
_
|
|
7400
7461
|
]);
|
|
7401
|
-
return /* @__PURE__ */ (0, b.jsx)(
|
|
7462
|
+
return /* @__PURE__ */ (0, b.jsx)(Jl.Provider, {
|
|
7402
7463
|
value: w,
|
|
7403
7464
|
children: /* @__PURE__ */ (0, b.jsx)("div", {
|
|
7404
7465
|
"data-orientation": y,
|
|
7405
7466
|
"data-size": S,
|
|
7406
|
-
className:
|
|
7467
|
+
className: q(Xl.base, n),
|
|
7407
7468
|
children: t
|
|
7408
7469
|
})
|
|
7409
7470
|
});
|
|
7410
7471
|
}
|
|
7411
|
-
function
|
|
7412
|
-
let { orientation: n, size: r } =
|
|
7472
|
+
function au({ children: e, className: t }) {
|
|
7473
|
+
let { orientation: n, size: r } = Yl("TabsList"), i = tu[nu(S())];
|
|
7413
7474
|
return /* @__PURE__ */ (0, b.jsx)("div", {
|
|
7414
7475
|
role: "tablist",
|
|
7415
7476
|
"aria-orientation": n,
|
|
7416
7477
|
"data-size": r,
|
|
7417
|
-
className:
|
|
7478
|
+
className: q(Zl.base, Zl[n], $l[r].list, i.list, t),
|
|
7418
7479
|
children: e
|
|
7419
7480
|
});
|
|
7420
7481
|
}
|
|
7421
|
-
function
|
|
7422
|
-
let { activationMode: i, baseId: a, color: o, orientation: s, setValue: c, size: l, value: u } =
|
|
7482
|
+
function ou({ children: e, className: t, disabled: n = !1, value: r }) {
|
|
7483
|
+
let { activationMode: i, baseId: a, color: o, orientation: s, setValue: c, size: l, value: u } = Yl("TabsTrigger"), d = tu[nu(S())], f = u === r, p = (e) => {
|
|
7423
7484
|
let t = e.currentTarget.parentElement;
|
|
7424
7485
|
if (!t) return;
|
|
7425
|
-
let n =
|
|
7486
|
+
let n = ru(t), a = n.indexOf(e.currentTarget);
|
|
7426
7487
|
if (a === -1) return;
|
|
7427
7488
|
let o = s === "horizontal", l = a;
|
|
7428
7489
|
if (o && e.key === "ArrowRight" || !o && e.key === "ArrowDown") l = (a + 1) % n.length;
|
|
@@ -7451,71 +7512,56 @@ function au({ children: e, className: t, disabled: n = !1, value: r }) {
|
|
|
7451
7512
|
disabled: n,
|
|
7452
7513
|
onClick: () => c(r),
|
|
7453
7514
|
onKeyDown: p,
|
|
7454
|
-
className:
|
|
7515
|
+
className: q(Ql.base, $l[l].trigger, s === "vertical" && Ql.vertical, f ? d.triggerActive[o] : d.triggerIdle, t),
|
|
7455
7516
|
children: e
|
|
7456
7517
|
});
|
|
7457
7518
|
}
|
|
7458
|
-
function
|
|
7459
|
-
let { baseId: i, value: a } =
|
|
7519
|
+
function su({ children: e, className: t, forceMount: n = !1, value: r }) {
|
|
7520
|
+
let { baseId: i, value: a } = Yl("TabsContent"), o = tu[nu(S())], s = a === r;
|
|
7460
7521
|
return !n && !s ? null : /* @__PURE__ */ (0, b.jsx)("div", {
|
|
7461
7522
|
role: "tabpanel",
|
|
7462
7523
|
id: `${i}-content-${r}`,
|
|
7463
7524
|
"aria-labelledby": `${i}-trigger-${r}`,
|
|
7464
7525
|
hidden: !s,
|
|
7465
7526
|
tabIndex: 0,
|
|
7466
|
-
className:
|
|
7527
|
+
className: q(eu.base, o.content, t),
|
|
7467
7528
|
children: e
|
|
7468
7529
|
});
|
|
7469
7530
|
}
|
|
7470
7531
|
//#endregion
|
|
7471
7532
|
//#region src/lib/components/tabs/useTabs.js
|
|
7472
|
-
function
|
|
7473
|
-
return
|
|
7533
|
+
function cu() {
|
|
7534
|
+
return Yl("useTabs");
|
|
7474
7535
|
}
|
|
7475
7536
|
//#endregion
|
|
7476
7537
|
//#region src/lib/components/textarea/Textarea.jsx
|
|
7477
|
-
var
|
|
7538
|
+
var lu = { base: [
|
|
7478
7539
|
"w-full border bg-transparent px-3.5 py-3 text-sm outline-none",
|
|
7479
7540
|
"transition-[background-color,border-color,color,box-shadow] duration-200",
|
|
7480
7541
|
"placeholder:text-current/45",
|
|
7481
7542
|
"focus-visible:ring-4 focus-visible:ring-offset-0",
|
|
7482
7543
|
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
7483
|
-
].join(" ") },
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
},
|
|
7489
|
-
dark: {
|
|
7490
|
-
base: "border-zinc-800 bg-zinc-950 text-stone-50 focus-visible:border-zinc-700 focus-visible:ring-zinc-800/80",
|
|
7491
|
-
hover: "hover:border-zinc-700",
|
|
7492
|
-
invalid: "border-red-500/60 text-stone-50 focus-visible:border-red-400/80 focus-visible:ring-red-500/20"
|
|
7493
|
-
}
|
|
7494
|
-
};
|
|
7495
|
-
function uu(e) {
|
|
7496
|
-
return e === "dark" ? "dark" : "light";
|
|
7497
|
-
}
|
|
7498
|
-
var du = a(function({ className: e, disabled: t = !1, id: n, invalid: r = !1, minRows: i = 4, required: a = !1, ...o }, s) {
|
|
7499
|
-
let c = lu[uu(S())], l = rr(), u = r || l?.invalid, d = t || l?.disabled, f = a || l?.required, p = [
|
|
7500
|
-
o["aria-describedby"],
|
|
7501
|
-
l?.descriptionId,
|
|
7502
|
-
u ? l?.messageId : null
|
|
7544
|
+
].join(" ") }, uu = a(function({ className: e, color: t = "neutral", disabled: n = !1, id: r, invalid: i = !1, minRows: a = 4, required: o = !1, ...s }, c) {
|
|
7545
|
+
let l = xc(S()), u = bc[l], d = Sc(t), f = bc[l][d], p = nr(), m = i || p?.invalid, h = n || p?.disabled, g = o || p?.required, _ = [
|
|
7546
|
+
s["aria-describedby"],
|
|
7547
|
+
p?.descriptionId,
|
|
7548
|
+
m ? p?.messageId : null
|
|
7503
7549
|
].filter(Boolean).join(" ") || void 0;
|
|
7504
7550
|
return /* @__PURE__ */ (0, b.jsx)("textarea", {
|
|
7505
|
-
ref:
|
|
7506
|
-
id:
|
|
7507
|
-
required:
|
|
7508
|
-
disabled:
|
|
7509
|
-
"aria-invalid":
|
|
7510
|
-
"aria-describedby":
|
|
7551
|
+
ref: c,
|
|
7552
|
+
id: r ?? p?.controlId,
|
|
7553
|
+
required: g,
|
|
7554
|
+
disabled: h,
|
|
7555
|
+
"aria-invalid": m || void 0,
|
|
7556
|
+
"aria-describedby": _,
|
|
7511
7557
|
"field-sizing": "content",
|
|
7512
|
-
rows:
|
|
7513
|
-
className:
|
|
7514
|
-
...
|
|
7558
|
+
rows: a,
|
|
7559
|
+
className: q(lu.base, st("md"), "min-h-28", m ? u.invalid : f.base, !h && !m && f.hover, e),
|
|
7560
|
+
...s
|
|
7515
7561
|
});
|
|
7516
|
-
}),
|
|
7517
|
-
function
|
|
7518
|
-
return /* @__PURE__ */ (0, b.jsx)(
|
|
7562
|
+
}), du = ["!max-w-[16rem] !rounded-[0.875rem] !px-2.5 !py-1.5", "!text-xs !leading-5"].join(" ");
|
|
7563
|
+
function fu({ children: e, className: t = "", color: n = "default", content: r, placement: i = "top", ...a }) {
|
|
7564
|
+
return /* @__PURE__ */ (0, b.jsx)(bl, {
|
|
7519
7565
|
content: r,
|
|
7520
7566
|
color: n,
|
|
7521
7567
|
placement: i,
|
|
@@ -7524,14 +7570,14 @@ function pu({ children: e, className: t = "", color: n = "default", content: r,
|
|
|
7524
7570
|
arrowWidth: 12,
|
|
7525
7571
|
arrowHeight: 6,
|
|
7526
7572
|
arrowTipRadius: 1.5,
|
|
7527
|
-
className: [
|
|
7573
|
+
className: [du, t].filter(Boolean).join(" "),
|
|
7528
7574
|
...a,
|
|
7529
7575
|
children: e
|
|
7530
7576
|
});
|
|
7531
7577
|
}
|
|
7532
7578
|
//#endregion
|
|
7533
7579
|
//#region src/lib/hooks/useFloatingLayer.js
|
|
7534
|
-
function
|
|
7580
|
+
function pu(e = {}) {
|
|
7535
7581
|
let { middleware: t = [], offset: n = 10, placement: r = "bottom-start", shiftPadding: i = 12, ...a } = e;
|
|
7536
7582
|
return Ds({
|
|
7537
7583
|
placement: r,
|
|
@@ -7545,4 +7591,4 @@ function mu(e = {}) {
|
|
|
7545
7591
|
});
|
|
7546
7592
|
}
|
|
7547
7593
|
//#endregion
|
|
7548
|
-
export {
|
|
7594
|
+
export { at as AVATAR_RADIUS_BY_SIZE, hn as Accordion, vn as AccordionContent, gn as AccordionItem, _n as AccordionTrigger, $t as Avatar, en as AvatarFallback, tn as AvatarGroup, nn as AvatarImage, rn as AvatarPresence, Cn as Badge, Rn as Breadcrumb, Un as BreadcrumbCurrent, Bn as BreadcrumbItem, Vn as BreadcrumbLink, zn as BreadcrumbList, Hn as BreadcrumbSeparator, Jn as Button, it as CONTROL_RADIUS_BY_SIZE, lr as Checkbox, ot as DEFAULT_CONTROL_RADIUS, jc as Default, cc as Dropdown, uc as DropdownContent, dc as DropdownItem, fc as DropdownSeparator, lc as DropdownTrigger, gc as EmptyState, yc as EmptyStateActions, vc as EmptyStateDescription, _c as EmptyStateTitle, Nc as For, $n as FormControl, er as FormDescription, tr as FormMessage, sn as Initials, Tc as Input, ar as Label, Fn as Link, Ac as Match, rl as Modal, ul as ModalAction, ll as ModalActions, cl as ModalBody, al as ModalContent, ol as ModalHeader, sl as ModalTitle, il as ModalTrigger, pl as Pagination, bl as Popover, Dt as QUICKIT_ACCENT_COLORS, Rt as QUICKIT_AVATAR_RADIUS_TOKENS, Mt as QUICKIT_AVATAR_SHAPES, Nt as QUICKIT_AVATAR_SIZES, jt as QUICKIT_BUTTON_SHAPES, At as QUICKIT_BUTTON_VARIANTS, kt as QUICKIT_COMPACT_CONTROL_SIZES, Lt as QUICKIT_CONTROL_RADIUS_TOKENS, Ot as QUICKIT_CONTROL_SIZES, Pt as QUICKIT_LINK_TEXT_VARIANTS, Ft as QUICKIT_LINK_UNDERLINES, Et as QUICKIT_SEMANTIC_COLORS, It as QUICKIT_TAB_SIZES, x as QuickitProvider, wl as Radio, Mc as RenderSwitch, Rl as Select, kc as Show, Hl as Skeleton, ql as Switch, iu as Tabs, su as TabsContent, au as TabsList, ou as TabsTrigger, uu as Textarea, fu as Tooltip, cn as UserChip, q as cn, ct as getAvatarRadius, st as getControlRadius, on as getInitials, zt as isQuickitTokenValue, Bt as resolveQuickitToken, pc as useDropdown, pu as useFloatingLayer, nr as useFormControl, dl as useModal, S as useQuickitTheme, cu as useTabs };
|