@datawire-ai/busyfile-design-library 1.0.6 → 1.0.7
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/README.md +22 -236
- package/dist/index.js +173 -140
- package/dist/index.umd.cjs +4 -4
- package/package.json +9 -16
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _ from "react";
|
|
2
|
-
import
|
|
3
|
-
var
|
|
2
|
+
import We from "react";
|
|
3
|
+
var pe = { exports: {} }, oe = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -11,7 +11,7 @@ var fe = { exports: {} }, oe = {};
|
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
13
|
var ye;
|
|
14
|
-
function
|
|
14
|
+
function $e() {
|
|
15
15
|
if (ye) return oe;
|
|
16
16
|
ye = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
|
|
@@ -42,9 +42,9 @@ var ne = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
45
|
+
var ve;
|
|
46
|
+
function Ye() {
|
|
47
|
+
return ve || (ve = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
48
|
function e(n) {
|
|
49
49
|
if (n == null) return null;
|
|
50
50
|
if (typeof n == "function")
|
|
@@ -68,7 +68,7 @@ function $e() {
|
|
|
68
68
|
switch (typeof n.tag == "number" && console.error(
|
|
69
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
70
|
), n.$$typeof) {
|
|
71
|
-
case
|
|
71
|
+
case A:
|
|
72
72
|
return "Portal";
|
|
73
73
|
case U:
|
|
74
74
|
return (n.displayName || "Context") + ".Provider";
|
|
@@ -151,13 +151,13 @@ function $e() {
|
|
|
151
151
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
152
|
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
153
153
|
}
|
|
154
|
-
function g(n, p, y, h,
|
|
154
|
+
function g(n, p, y, h, v, T, Z, w) {
|
|
155
155
|
return y = T.ref, n = {
|
|
156
156
|
$$typeof: N,
|
|
157
157
|
type: n,
|
|
158
158
|
key: p,
|
|
159
159
|
props: T,
|
|
160
|
-
_owner:
|
|
160
|
+
_owner: v
|
|
161
161
|
}, (y !== void 0 ? y : null) !== null ? Object.defineProperty(n, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
163
163
|
get: u
|
|
@@ -183,7 +183,7 @@ function $e() {
|
|
|
183
183
|
value: w
|
|
184
184
|
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function x(n, p, y, h, v, T, Z, w) {
|
|
187
187
|
var R = p.children;
|
|
188
188
|
if (R !== void 0)
|
|
189
189
|
if (h)
|
|
@@ -226,7 +226,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
226
226
|
n,
|
|
227
227
|
R,
|
|
228
228
|
T,
|
|
229
|
-
|
|
229
|
+
v,
|
|
230
230
|
s(),
|
|
231
231
|
y,
|
|
232
232
|
Z,
|
|
@@ -236,53 +236,53 @@ React keys must be passed directly to JSX without using spread:
|
|
|
236
236
|
function k(n) {
|
|
237
237
|
typeof n == "object" && n !== null && n.$$typeof === N && n._store && (n._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var
|
|
239
|
+
var C = We, N = Symbol.for("react.transitional.element"), A = Symbol.for("react.portal"), S = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), U = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), W = Symbol.for("react.suspense"), V = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), ae = Symbol.for("react.client.reference"), H = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, ie = Array.isArray, q = console.createTask ? console.createTask : function() {
|
|
240
240
|
return null;
|
|
241
241
|
};
|
|
242
|
-
|
|
242
|
+
C = {
|
|
243
243
|
"react-stack-bottom-frame": function(n) {
|
|
244
244
|
return n();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var G, z = {}, I =
|
|
248
|
-
|
|
247
|
+
var G, z = {}, I = C["react-stack-bottom-frame"].bind(
|
|
248
|
+
C,
|
|
249
249
|
a
|
|
250
250
|
)(), d = q(t(a)), re = {};
|
|
251
|
-
ne.Fragment = S, ne.jsx = function(n, p, y, h,
|
|
251
|
+
ne.Fragment = S, ne.jsx = function(n, p, y, h, v) {
|
|
252
252
|
var T = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
253
|
-
return
|
|
253
|
+
return x(
|
|
254
254
|
n,
|
|
255
255
|
p,
|
|
256
256
|
y,
|
|
257
257
|
!1,
|
|
258
258
|
h,
|
|
259
|
-
|
|
259
|
+
v,
|
|
260
260
|
T ? Error("react-stack-top-frame") : I,
|
|
261
261
|
T ? q(t(n)) : d
|
|
262
262
|
);
|
|
263
|
-
}, ne.jsxs = function(n, p, y, h,
|
|
263
|
+
}, ne.jsxs = function(n, p, y, h, v) {
|
|
264
264
|
var T = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
265
|
-
return
|
|
265
|
+
return x(
|
|
266
266
|
n,
|
|
267
267
|
p,
|
|
268
268
|
y,
|
|
269
269
|
!0,
|
|
270
270
|
h,
|
|
271
|
-
|
|
271
|
+
v,
|
|
272
272
|
T ? Error("react-stack-top-frame") : I,
|
|
273
273
|
T ? q(t(n)) : d
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
276
|
}()), ne;
|
|
277
277
|
}
|
|
278
|
-
process.env.NODE_ENV === "production" ?
|
|
279
|
-
var
|
|
278
|
+
process.env.NODE_ENV === "production" ? pe.exports = $e() : pe.exports = Ye();
|
|
279
|
+
var ue = pe.exports;
|
|
280
280
|
function we(e, o) {
|
|
281
281
|
if (typeof e == "function")
|
|
282
282
|
return e(o);
|
|
283
283
|
e != null && (e.current = o);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function Ue(...e) {
|
|
286
286
|
return (o) => {
|
|
287
287
|
let r = !1;
|
|
288
288
|
const t = e.map((s) => {
|
|
@@ -299,35 +299,35 @@ function Ye(...e) {
|
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
301
|
// @__NO_SIDE_EFFECTS__
|
|
302
|
-
function
|
|
303
|
-
const o = /* @__PURE__ */
|
|
304
|
-
const { children: a, ...c } = t, m = _.Children.toArray(a), u = m.find(
|
|
302
|
+
function De(e) {
|
|
303
|
+
const o = /* @__PURE__ */ qe(e), r = _.forwardRef((t, s) => {
|
|
304
|
+
const { children: a, ...c } = t, m = _.Children.toArray(a), u = m.find(Xe);
|
|
305
305
|
if (u) {
|
|
306
|
-
const g = u.props.children,
|
|
307
|
-
return /* @__PURE__ */
|
|
306
|
+
const g = u.props.children, x = m.map((k) => k === u ? _.Children.count(g) > 1 ? _.Children.only(null) : _.isValidElement(g) ? g.props.children : null : k);
|
|
307
|
+
return /* @__PURE__ */ ue.jsx(o, { ...c, ref: s, children: _.isValidElement(g) ? _.cloneElement(g, void 0, x) : null });
|
|
308
308
|
}
|
|
309
|
-
return /* @__PURE__ */
|
|
309
|
+
return /* @__PURE__ */ ue.jsx(o, { ...c, ref: s, children: a });
|
|
310
310
|
});
|
|
311
311
|
return r.displayName = `${e}.Slot`, r;
|
|
312
312
|
}
|
|
313
|
-
var
|
|
313
|
+
var Be = /* @__PURE__ */ De("Slot");
|
|
314
314
|
// @__NO_SIDE_EFFECTS__
|
|
315
|
-
function
|
|
315
|
+
function qe(e) {
|
|
316
316
|
const o = _.forwardRef((r, t) => {
|
|
317
317
|
const { children: s, ...a } = r;
|
|
318
318
|
if (_.isValidElement(s)) {
|
|
319
|
-
const c =
|
|
320
|
-
return s.type !== _.Fragment && (m.ref = t ?
|
|
319
|
+
const c = Ze(s), m = He(a, s.props);
|
|
320
|
+
return s.type !== _.Fragment && (m.ref = t ? Ue(t, c) : c), _.cloneElement(s, m);
|
|
321
321
|
}
|
|
322
322
|
return _.Children.count(s) > 1 ? _.Children.only(null) : null;
|
|
323
323
|
});
|
|
324
324
|
return o.displayName = `${e}.SlotClone`, o;
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
return _.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
326
|
+
var Je = Symbol("radix.slottable");
|
|
327
|
+
function Xe(e) {
|
|
328
|
+
return _.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Je;
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function He(e, o) {
|
|
331
331
|
const r = { ...o };
|
|
332
332
|
for (const t in o) {
|
|
333
333
|
const s = e[t], a = o[t];
|
|
@@ -338,7 +338,7 @@ function Xe(e, o) {
|
|
|
338
338
|
}
|
|
339
339
|
return { ...e, ...r };
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Ze(e) {
|
|
342
342
|
var t, s;
|
|
343
343
|
let o = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, r = o && "isReactWarning" in o && o.isReactWarning;
|
|
344
344
|
return r ? e.ref : (o = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.get, r = o && "isReactWarning" in o && o.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
@@ -356,21 +356,21 @@ function _e() {
|
|
|
356
356
|
for (var e, o, r = 0, t = "", s = arguments.length; r < s; r++) (e = arguments[r]) && (o = Te(e)) && (t && (t += " "), t += o);
|
|
357
357
|
return t;
|
|
358
358
|
}
|
|
359
|
-
const ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Re = _e,
|
|
359
|
+
const ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Re = _e, Qe = (e, o) => (r) => {
|
|
360
360
|
var t;
|
|
361
361
|
if ((o == null ? void 0 : o.variants) == null) return Re(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
362
362
|
const { variants: s, defaultVariants: a } = o, c = Object.keys(s).map((g) => {
|
|
363
|
-
const
|
|
364
|
-
if (
|
|
365
|
-
const
|
|
366
|
-
return s[g][
|
|
367
|
-
}), m = r && Object.entries(r).reduce((g,
|
|
368
|
-
let [k,
|
|
369
|
-
return
|
|
370
|
-
}, {}), u = o == null || (t = o.compoundVariants) === null || t === void 0 ? void 0 : t.reduce((g,
|
|
371
|
-
let { class: k, className:
|
|
372
|
-
return Object.entries(N).every((
|
|
373
|
-
let [S, P] =
|
|
363
|
+
const x = r == null ? void 0 : r[g], k = a == null ? void 0 : a[g];
|
|
364
|
+
if (x === null) return null;
|
|
365
|
+
const C = ke(x) || ke(k);
|
|
366
|
+
return s[g][C];
|
|
367
|
+
}), m = r && Object.entries(r).reduce((g, x) => {
|
|
368
|
+
let [k, C] = x;
|
|
369
|
+
return C === void 0 || (g[k] = C), g;
|
|
370
|
+
}, {}), u = o == null || (t = o.compoundVariants) === null || t === void 0 ? void 0 : t.reduce((g, x) => {
|
|
371
|
+
let { class: k, className: C, ...N } = x;
|
|
372
|
+
return Object.entries(N).every((A) => {
|
|
373
|
+
let [S, P] = A;
|
|
374
374
|
return Array.isArray(P) ? P.includes({
|
|
375
375
|
...a,
|
|
376
376
|
...m
|
|
@@ -381,19 +381,19 @@ const ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Re = _e, Z
|
|
|
381
381
|
}) ? [
|
|
382
382
|
...g,
|
|
383
383
|
k,
|
|
384
|
-
|
|
384
|
+
C
|
|
385
385
|
] : g;
|
|
386
386
|
}, []);
|
|
387
387
|
return Re(e, c, u, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
388
|
-
},
|
|
389
|
-
const o =
|
|
388
|
+
}, xe = "-", Ke = (e) => {
|
|
389
|
+
const o = rr(e), {
|
|
390
390
|
conflictingClassGroups: r,
|
|
391
391
|
conflictingClassGroupModifiers: t
|
|
392
392
|
} = e;
|
|
393
393
|
return {
|
|
394
394
|
getClassGroupId: (c) => {
|
|
395
|
-
const m = c.split(
|
|
396
|
-
return m[0] === "" && m.length !== 1 && m.shift(), Pe(m, o) ||
|
|
395
|
+
const m = c.split(xe);
|
|
396
|
+
return m[0] === "" && m.length !== 1 && m.shift(), Pe(m, o) || er(c);
|
|
397
397
|
},
|
|
398
398
|
getConflictingClassGroupIds: (c, m) => {
|
|
399
399
|
const u = r[c] || [];
|
|
@@ -409,17 +409,17 @@ const ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Re = _e, Z
|
|
|
409
409
|
return s;
|
|
410
410
|
if (o.validators.length === 0)
|
|
411
411
|
return;
|
|
412
|
-
const a = e.join(
|
|
412
|
+
const a = e.join(xe);
|
|
413
413
|
return (c = o.validators.find(({
|
|
414
414
|
validator: m
|
|
415
415
|
}) => m(a))) == null ? void 0 : c.classGroupId;
|
|
416
|
-
}, Ee = /^\[(.+)\]$/,
|
|
416
|
+
}, Ee = /^\[(.+)\]$/, er = (e) => {
|
|
417
417
|
if (Ee.test(e)) {
|
|
418
418
|
const o = Ee.exec(e)[1], r = o == null ? void 0 : o.substring(0, o.indexOf(":"));
|
|
419
419
|
if (r)
|
|
420
420
|
return "arbitrary.." + r;
|
|
421
421
|
}
|
|
422
|
-
},
|
|
422
|
+
}, rr = (e) => {
|
|
423
423
|
const {
|
|
424
424
|
theme: o,
|
|
425
425
|
classGroups: r
|
|
@@ -438,7 +438,7 @@ const ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Re = _e, Z
|
|
|
438
438
|
return;
|
|
439
439
|
}
|
|
440
440
|
if (typeof s == "function") {
|
|
441
|
-
if (
|
|
441
|
+
if (tr(s)) {
|
|
442
442
|
be(s(t), o, r, t);
|
|
443
443
|
return;
|
|
444
444
|
}
|
|
@@ -454,13 +454,13 @@ const ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Re = _e, Z
|
|
|
454
454
|
});
|
|
455
455
|
}, Se = (e, o) => {
|
|
456
456
|
let r = e;
|
|
457
|
-
return o.split(
|
|
457
|
+
return o.split(xe).forEach((t) => {
|
|
458
458
|
r.nextPart.has(t) || r.nextPart.set(t, {
|
|
459
459
|
nextPart: /* @__PURE__ */ new Map(),
|
|
460
460
|
validators: []
|
|
461
461
|
}), r = r.nextPart.get(t);
|
|
462
462
|
}), r;
|
|
463
|
-
},
|
|
463
|
+
}, tr = (e) => e.isThemeGetter, or = (e) => {
|
|
464
464
|
if (e < 1)
|
|
465
465
|
return {
|
|
466
466
|
get: () => {
|
|
@@ -484,7 +484,7 @@ const ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Re = _e, Z
|
|
|
484
484
|
r.has(a) ? r.set(a, c) : s(a, c);
|
|
485
485
|
}
|
|
486
486
|
};
|
|
487
|
-
}, ge = "!", he = ":",
|
|
487
|
+
}, ge = "!", he = ":", nr = he.length, sr = (e) => {
|
|
488
488
|
const {
|
|
489
489
|
prefix: o,
|
|
490
490
|
experimentalParseClassName: r
|
|
@@ -492,24 +492,24 @@ const ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Re = _e, Z
|
|
|
492
492
|
let t = (s) => {
|
|
493
493
|
const a = [];
|
|
494
494
|
let c = 0, m = 0, u = 0, g;
|
|
495
|
-
for (let
|
|
496
|
-
let S = s[
|
|
495
|
+
for (let A = 0; A < s.length; A++) {
|
|
496
|
+
let S = s[A];
|
|
497
497
|
if (c === 0 && m === 0) {
|
|
498
498
|
if (S === he) {
|
|
499
|
-
a.push(s.slice(u,
|
|
499
|
+
a.push(s.slice(u, A)), u = A + nr;
|
|
500
500
|
continue;
|
|
501
501
|
}
|
|
502
502
|
if (S === "/") {
|
|
503
|
-
g =
|
|
503
|
+
g = A;
|
|
504
504
|
continue;
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
S === "[" ? c++ : S === "]" ? c-- : S === "(" ? m++ : S === ")" && m--;
|
|
508
508
|
}
|
|
509
|
-
const
|
|
509
|
+
const x = a.length === 0 ? s : s.substring(u), k = ar(x), C = k !== x, N = g && g > u ? g - u : void 0;
|
|
510
510
|
return {
|
|
511
511
|
modifiers: a,
|
|
512
|
-
hasImportantModifier:
|
|
512
|
+
hasImportantModifier: C,
|
|
513
513
|
baseClassName: k,
|
|
514
514
|
maybePostfixModifierPosition: N
|
|
515
515
|
};
|
|
@@ -532,7 +532,7 @@ const ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Re = _e, Z
|
|
|
532
532
|
});
|
|
533
533
|
}
|
|
534
534
|
return t;
|
|
535
|
-
},
|
|
535
|
+
}, ar = (e) => e.endsWith(ge) ? e.substring(0, e.length - 1) : e.startsWith(ge) ? e.substring(1) : e, ir = (e) => {
|
|
536
536
|
const o = Object.fromEntries(e.orderSensitiveModifiers.map((t) => [t, !0]));
|
|
537
537
|
return (t) => {
|
|
538
538
|
if (t.length <= 1)
|
|
@@ -543,44 +543,44 @@ const ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Re = _e, Z
|
|
|
543
543
|
c[0] === "[" || o[c] ? (s.push(...a.sort(), c), a = []) : a.push(c);
|
|
544
544
|
}), s.push(...a.sort()), s;
|
|
545
545
|
};
|
|
546
|
-
},
|
|
547
|
-
cache:
|
|
548
|
-
parseClassName:
|
|
549
|
-
sortModifiers:
|
|
550
|
-
...
|
|
551
|
-
}),
|
|
546
|
+
}, lr = (e) => ({
|
|
547
|
+
cache: or(e.cacheSize),
|
|
548
|
+
parseClassName: sr(e),
|
|
549
|
+
sortModifiers: ir(e),
|
|
550
|
+
...Ke(e)
|
|
551
|
+
}), cr = /\s+/, dr = (e, o) => {
|
|
552
552
|
const {
|
|
553
553
|
parseClassName: r,
|
|
554
554
|
getClassGroupId: t,
|
|
555
555
|
getConflictingClassGroupIds: s,
|
|
556
556
|
sortModifiers: a
|
|
557
|
-
} = o, c = [], m = e.trim().split(
|
|
557
|
+
} = o, c = [], m = e.trim().split(cr);
|
|
558
558
|
let u = "";
|
|
559
559
|
for (let g = m.length - 1; g >= 0; g -= 1) {
|
|
560
|
-
const
|
|
560
|
+
const x = m[g], {
|
|
561
561
|
isExternal: k,
|
|
562
|
-
modifiers:
|
|
562
|
+
modifiers: C,
|
|
563
563
|
hasImportantModifier: N,
|
|
564
|
-
baseClassName:
|
|
564
|
+
baseClassName: A,
|
|
565
565
|
maybePostfixModifierPosition: S
|
|
566
|
-
} = r(
|
|
566
|
+
} = r(x);
|
|
567
567
|
if (k) {
|
|
568
|
-
u =
|
|
568
|
+
u = x + (u.length > 0 ? " " + u : u);
|
|
569
569
|
continue;
|
|
570
570
|
}
|
|
571
|
-
let P = !!S, M = t(P ?
|
|
571
|
+
let P = !!S, M = t(P ? A.substring(0, S) : A);
|
|
572
572
|
if (!M) {
|
|
573
573
|
if (!P) {
|
|
574
|
-
u =
|
|
574
|
+
u = x + (u.length > 0 ? " " + u : u);
|
|
575
575
|
continue;
|
|
576
576
|
}
|
|
577
|
-
if (M = t(
|
|
578
|
-
u =
|
|
577
|
+
if (M = t(A), !M) {
|
|
578
|
+
u = x + (u.length > 0 ? " " + u : u);
|
|
579
579
|
continue;
|
|
580
580
|
}
|
|
581
581
|
P = !1;
|
|
582
582
|
}
|
|
583
|
-
const X = a(
|
|
583
|
+
const X = a(C).join(":"), U = N ? X + ge : X, F = U + M;
|
|
584
584
|
if (c.includes(F))
|
|
585
585
|
continue;
|
|
586
586
|
c.push(F);
|
|
@@ -589,11 +589,11 @@ const ke = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Re = _e, Z
|
|
|
589
589
|
const D = W[V];
|
|
590
590
|
c.push(U + D);
|
|
591
591
|
}
|
|
592
|
-
u =
|
|
592
|
+
u = x + (u.length > 0 ? " " + u : u);
|
|
593
593
|
}
|
|
594
594
|
return u;
|
|
595
595
|
};
|
|
596
|
-
function
|
|
596
|
+
function ur() {
|
|
597
597
|
let e = 0, o, r, t = "";
|
|
598
598
|
for (; e < arguments.length; )
|
|
599
599
|
(o = arguments[e++]) && (r = ze(o)) && (t && (t += " "), t += r);
|
|
@@ -607,39 +607,39 @@ const ze = (e) => {
|
|
|
607
607
|
e[t] && (o = ze(e[t])) && (r && (r += " "), r += o);
|
|
608
608
|
return r;
|
|
609
609
|
};
|
|
610
|
-
function
|
|
610
|
+
function mr(e, ...o) {
|
|
611
611
|
let r, t, s, a = c;
|
|
612
612
|
function c(u) {
|
|
613
|
-
const g = o.reduce((
|
|
614
|
-
return r =
|
|
613
|
+
const g = o.reduce((x, k) => k(x), e());
|
|
614
|
+
return r = lr(g), t = r.cache.get, s = r.cache.set, a = m, m(u);
|
|
615
615
|
}
|
|
616
616
|
function m(u) {
|
|
617
617
|
const g = t(u);
|
|
618
618
|
if (g)
|
|
619
619
|
return g;
|
|
620
|
-
const
|
|
621
|
-
return s(u,
|
|
620
|
+
const x = dr(u, r);
|
|
621
|
+
return s(u, x), x;
|
|
622
622
|
}
|
|
623
623
|
return function() {
|
|
624
|
-
return a(
|
|
624
|
+
return a(ur.apply(null, arguments));
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
627
|
const E = (e) => {
|
|
628
628
|
const o = (r) => r[e] || [];
|
|
629
629
|
return o.isThemeGetter = !0, o;
|
|
630
|
-
}, Oe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, je = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
630
|
+
}, Oe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, je = /^\((?:(\w[\w-]*):)?(.+)\)$/i, fr = /^\d+\/\d+$/, pr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, br = /\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$/, gr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, hr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, xr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Q = (e) => fr.test(e), b = (e) => !!e && !Number.isNaN(Number(e)), Y = (e) => !!e && Number.isInteger(Number(e)), me = (e) => e.endsWith("%") && b(e.slice(0, -1)), L = (e) => pr.test(e), yr = () => !0, vr = (e) => (
|
|
631
631
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
632
632
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
633
633
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
634
|
-
|
|
635
|
-
), Ne = () => !1,
|
|
634
|
+
br.test(e) && !gr.test(e)
|
|
635
|
+
), Ne = () => !1, wr = (e) => hr.test(e), kr = (e) => xr.test(e), Rr = (e) => !i(e) && !l(e), Er = (e) => K(e, Ve, Ne), i = (e) => Oe.test(e), J = (e) => K(e, Ge, vr), fe = (e) => K(e, _r, b), Ce = (e) => K(e, Ie, Ne), Sr = (e) => K(e, Me, kr), ce = (e) => K(e, Le, wr), l = (e) => je.test(e), se = (e) => ee(e, Ge), Cr = (e) => ee(e, Pr), Ae = (e) => ee(e, Ie), Ar = (e) => ee(e, Ve), Tr = (e) => ee(e, Me), de = (e) => ee(e, Le, !0), K = (e, o, r) => {
|
|
636
636
|
const t = Oe.exec(e);
|
|
637
637
|
return t ? t[1] ? o(t[1]) : r(t[2]) : !1;
|
|
638
638
|
}, ee = (e, o, r = !1) => {
|
|
639
639
|
const t = je.exec(e);
|
|
640
640
|
return t ? t[1] ? o(t[1]) : r : !1;
|
|
641
|
-
}, Ie = (e) => e === "position" || e === "percentage", Me = (e) => e === "image" || e === "url", Ve = (e) => e === "length" || e === "size" || e === "bg-size", Ge = (e) => e === "length",
|
|
642
|
-
const e = E("color"), o = E("font"), r = E("text"), t = E("font-weight"), s = E("tracking"), a = E("leading"), c = E("breakpoint"), m = E("container"), u = E("spacing"), g = E("radius"),
|
|
641
|
+
}, Ie = (e) => e === "position" || e === "percentage", Me = (e) => e === "image" || e === "url", Ve = (e) => e === "length" || e === "size" || e === "bg-size", Ge = (e) => e === "length", _r = (e) => e === "number", Pr = (e) => e === "family-name", Le = (e) => e === "shadow", zr = () => {
|
|
642
|
+
const e = E("color"), o = E("font"), r = E("text"), t = E("font-weight"), s = E("tracking"), a = E("leading"), c = E("breakpoint"), m = E("container"), u = E("spacing"), g = E("radius"), x = E("shadow"), k = E("inset-shadow"), C = E("text-shadow"), N = E("drop-shadow"), A = E("blur"), S = E("perspective"), P = E("aspect"), M = E("ease"), X = E("animate"), U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [
|
|
643
643
|
"center",
|
|
644
644
|
"top",
|
|
645
645
|
"bottom",
|
|
@@ -659,13 +659,13 @@ const E = (e) => {
|
|
|
659
659
|
"left-bottom"
|
|
660
660
|
], W = () => [...F(), l, i], V = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], f = () => [l, i, u], O = () => [Q, "full", "auto", ...f()], ae = () => [Y, "none", "subgrid", l, i], H = () => ["auto", {
|
|
661
661
|
span: ["full", Y, l, i]
|
|
662
|
-
}, Y, l, i], B = () => [Y, "auto", l, i], ie = () => ["auto", "min", "max", "fr", l, i], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], z = () => ["auto", ...f()], I = () => [Q, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], d = () => [e, l, i], re = () => [...F(),
|
|
662
|
+
}, Y, l, i], B = () => [Y, "auto", l, i], ie = () => ["auto", "min", "max", "fr", l, i], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], z = () => ["auto", ...f()], I = () => [Q, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], d = () => [e, l, i], re = () => [...F(), Ae, Ce, {
|
|
663
663
|
position: [l, i]
|
|
664
664
|
}], n = () => ["no-repeat", {
|
|
665
665
|
repeat: ["", "x", "y", "space", "round"]
|
|
666
|
-
}], p = () => ["auto", "cover", "contain", Ar,
|
|
666
|
+
}], p = () => ["auto", "cover", "contain", Ar, Er, {
|
|
667
667
|
size: [l, i]
|
|
668
|
-
}], y = () => [
|
|
668
|
+
}], y = () => [me, se, J], h = () => [
|
|
669
669
|
// Deprecated since Tailwind CSS v4.0.0
|
|
670
670
|
"",
|
|
671
671
|
"none",
|
|
@@ -673,11 +673,11 @@ const E = (e) => {
|
|
|
673
673
|
g,
|
|
674
674
|
l,
|
|
675
675
|
i
|
|
676
|
-
],
|
|
676
|
+
], v = () => ["", b, se, J], T = () => ["solid", "dashed", "dotted", "double"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], w = () => [b, me, Ae, Ce], R = () => [
|
|
677
677
|
// Deprecated since Tailwind CSS v4.0.0
|
|
678
678
|
"",
|
|
679
679
|
"none",
|
|
680
|
-
|
|
680
|
+
A,
|
|
681
681
|
l,
|
|
682
682
|
i
|
|
683
683
|
], j = () => ["none", b, l, i], $ = () => ["none", b, l, i], te = () => [b, l, i], le = () => [Q, "full", ...f()];
|
|
@@ -688,11 +688,11 @@ const E = (e) => {
|
|
|
688
688
|
aspect: ["video"],
|
|
689
689
|
blur: [L],
|
|
690
690
|
breakpoint: [L],
|
|
691
|
-
color: [
|
|
691
|
+
color: [yr],
|
|
692
692
|
container: [L],
|
|
693
693
|
"drop-shadow": [L],
|
|
694
694
|
ease: ["in", "out", "in-out"],
|
|
695
|
-
font: [
|
|
695
|
+
font: [Rr],
|
|
696
696
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
697
697
|
"inset-shadow": [L],
|
|
698
698
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1390,21 +1390,21 @@ const E = (e) => {
|
|
|
1390
1390
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1391
1391
|
*/
|
|
1392
1392
|
"font-weight": [{
|
|
1393
|
-
font: [t, l,
|
|
1393
|
+
font: [t, l, fe]
|
|
1394
1394
|
}],
|
|
1395
1395
|
/**
|
|
1396
1396
|
* Font Stretch
|
|
1397
1397
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1398
1398
|
*/
|
|
1399
1399
|
"font-stretch": [{
|
|
1400
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1400
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", me, i]
|
|
1401
1401
|
}],
|
|
1402
1402
|
/**
|
|
1403
1403
|
* Font Family
|
|
1404
1404
|
* @see https://tailwindcss.com/docs/font-family
|
|
1405
1405
|
*/
|
|
1406
1406
|
"font-family": [{
|
|
1407
|
-
font: [
|
|
1407
|
+
font: [Cr, i, o]
|
|
1408
1408
|
}],
|
|
1409
1409
|
/**
|
|
1410
1410
|
* Font Variant Numeric
|
|
@@ -1448,7 +1448,7 @@ const E = (e) => {
|
|
|
1448
1448
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1449
1449
|
*/
|
|
1450
1450
|
"line-clamp": [{
|
|
1451
|
-
"line-clamp": [b, "none", l,
|
|
1451
|
+
"line-clamp": [b, "none", l, fe]
|
|
1452
1452
|
}],
|
|
1453
1453
|
/**
|
|
1454
1454
|
* Line Height
|
|
@@ -1659,7 +1659,7 @@ const E = (e) => {
|
|
|
1659
1659
|
}, Y, l, i],
|
|
1660
1660
|
radial: ["", l, i],
|
|
1661
1661
|
conic: [Y, l, i]
|
|
1662
|
-
},
|
|
1662
|
+
}, Tr, Sr]
|
|
1663
1663
|
}],
|
|
1664
1664
|
/**
|
|
1665
1665
|
* Background Color
|
|
@@ -1823,70 +1823,70 @@ const E = (e) => {
|
|
|
1823
1823
|
* @see https://tailwindcss.com/docs/border-width
|
|
1824
1824
|
*/
|
|
1825
1825
|
"border-w": [{
|
|
1826
|
-
border:
|
|
1826
|
+
border: v()
|
|
1827
1827
|
}],
|
|
1828
1828
|
/**
|
|
1829
1829
|
* Border Width X
|
|
1830
1830
|
* @see https://tailwindcss.com/docs/border-width
|
|
1831
1831
|
*/
|
|
1832
1832
|
"border-w-x": [{
|
|
1833
|
-
"border-x":
|
|
1833
|
+
"border-x": v()
|
|
1834
1834
|
}],
|
|
1835
1835
|
/**
|
|
1836
1836
|
* Border Width Y
|
|
1837
1837
|
* @see https://tailwindcss.com/docs/border-width
|
|
1838
1838
|
*/
|
|
1839
1839
|
"border-w-y": [{
|
|
1840
|
-
"border-y":
|
|
1840
|
+
"border-y": v()
|
|
1841
1841
|
}],
|
|
1842
1842
|
/**
|
|
1843
1843
|
* Border Width Start
|
|
1844
1844
|
* @see https://tailwindcss.com/docs/border-width
|
|
1845
1845
|
*/
|
|
1846
1846
|
"border-w-s": [{
|
|
1847
|
-
"border-s":
|
|
1847
|
+
"border-s": v()
|
|
1848
1848
|
}],
|
|
1849
1849
|
/**
|
|
1850
1850
|
* Border Width End
|
|
1851
1851
|
* @see https://tailwindcss.com/docs/border-width
|
|
1852
1852
|
*/
|
|
1853
1853
|
"border-w-e": [{
|
|
1854
|
-
"border-e":
|
|
1854
|
+
"border-e": v()
|
|
1855
1855
|
}],
|
|
1856
1856
|
/**
|
|
1857
1857
|
* Border Width Top
|
|
1858
1858
|
* @see https://tailwindcss.com/docs/border-width
|
|
1859
1859
|
*/
|
|
1860
1860
|
"border-w-t": [{
|
|
1861
|
-
"border-t":
|
|
1861
|
+
"border-t": v()
|
|
1862
1862
|
}],
|
|
1863
1863
|
/**
|
|
1864
1864
|
* Border Width Right
|
|
1865
1865
|
* @see https://tailwindcss.com/docs/border-width
|
|
1866
1866
|
*/
|
|
1867
1867
|
"border-w-r": [{
|
|
1868
|
-
"border-r":
|
|
1868
|
+
"border-r": v()
|
|
1869
1869
|
}],
|
|
1870
1870
|
/**
|
|
1871
1871
|
* Border Width Bottom
|
|
1872
1872
|
* @see https://tailwindcss.com/docs/border-width
|
|
1873
1873
|
*/
|
|
1874
1874
|
"border-w-b": [{
|
|
1875
|
-
"border-b":
|
|
1875
|
+
"border-b": v()
|
|
1876
1876
|
}],
|
|
1877
1877
|
/**
|
|
1878
1878
|
* Border Width Left
|
|
1879
1879
|
* @see https://tailwindcss.com/docs/border-width
|
|
1880
1880
|
*/
|
|
1881
1881
|
"border-w-l": [{
|
|
1882
|
-
"border-l":
|
|
1882
|
+
"border-l": v()
|
|
1883
1883
|
}],
|
|
1884
1884
|
/**
|
|
1885
1885
|
* Divide Width X
|
|
1886
1886
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1887
1887
|
*/
|
|
1888
1888
|
"divide-x": [{
|
|
1889
|
-
"divide-x":
|
|
1889
|
+
"divide-x": v()
|
|
1890
1890
|
}],
|
|
1891
1891
|
/**
|
|
1892
1892
|
* Divide Width X Reverse
|
|
@@ -1898,7 +1898,7 @@ const E = (e) => {
|
|
|
1898
1898
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1899
1899
|
*/
|
|
1900
1900
|
"divide-y": [{
|
|
1901
|
-
"divide-y":
|
|
1901
|
+
"divide-y": v()
|
|
1902
1902
|
}],
|
|
1903
1903
|
/**
|
|
1904
1904
|
* Divide Width Y Reverse
|
|
@@ -2029,7 +2029,7 @@ const E = (e) => {
|
|
|
2029
2029
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2030
2030
|
"",
|
|
2031
2031
|
"none",
|
|
2032
|
-
|
|
2032
|
+
x,
|
|
2033
2033
|
de,
|
|
2034
2034
|
ce
|
|
2035
2035
|
]
|
|
@@ -2060,7 +2060,7 @@ const E = (e) => {
|
|
|
2060
2060
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2061
2061
|
*/
|
|
2062
2062
|
"ring-w": [{
|
|
2063
|
-
ring:
|
|
2063
|
+
ring: v()
|
|
2064
2064
|
}],
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Ring Width Inset
|
|
@@ -2099,7 +2099,7 @@ const E = (e) => {
|
|
|
2099
2099
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2100
2100
|
*/
|
|
2101
2101
|
"inset-ring-w": [{
|
|
2102
|
-
"inset-ring":
|
|
2102
|
+
"inset-ring": v()
|
|
2103
2103
|
}],
|
|
2104
2104
|
/**
|
|
2105
2105
|
* Inset Ring Color
|
|
@@ -2113,7 +2113,7 @@ const E = (e) => {
|
|
|
2113
2113
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2114
2114
|
*/
|
|
2115
2115
|
"text-shadow": [{
|
|
2116
|
-
"text-shadow": ["none",
|
|
2116
|
+
"text-shadow": ["none", C, de, ce]
|
|
2117
2117
|
}],
|
|
2118
2118
|
/**
|
|
2119
2119
|
* Text Shadow Color
|
|
@@ -3033,7 +3033,7 @@ const E = (e) => {
|
|
|
3033
3033
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3034
3034
|
*/
|
|
3035
3035
|
"stroke-w": [{
|
|
3036
|
-
stroke: [b, se, J,
|
|
3036
|
+
stroke: [b, se, J, fe]
|
|
3037
3037
|
}],
|
|
3038
3038
|
/**
|
|
3039
3039
|
* Stroke
|
|
@@ -3108,11 +3108,11 @@ const E = (e) => {
|
|
|
3108
3108
|
},
|
|
3109
3109
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3110
3110
|
};
|
|
3111
|
-
},
|
|
3112
|
-
function
|
|
3113
|
-
return
|
|
3111
|
+
}, Or = /* @__PURE__ */ mr(zr);
|
|
3112
|
+
function Fe(...e) {
|
|
3113
|
+
return Or(_e(e));
|
|
3114
3114
|
}
|
|
3115
|
-
const jr =
|
|
3115
|
+
const jr = Qe(
|
|
3116
3116
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-blue-500/50 focus-visible:ring-offset-2",
|
|
3117
3117
|
{
|
|
3118
3118
|
variants: {
|
|
@@ -3138,13 +3138,10 @@ const jr = Ze(
|
|
|
3138
3138
|
}
|
|
3139
3139
|
), Nr = _.forwardRef(
|
|
3140
3140
|
({ className: e, variant: o, size: r, asChild: t = !1, onClick: s, ...a }, c) => {
|
|
3141
|
-
const m = t ?
|
|
3142
|
-
s && s(
|
|
3143
|
-
}, g =
|
|
3144
|
-
|
|
3145
|
-
e
|
|
3146
|
-
);
|
|
3147
|
-
return /* @__PURE__ */ pe.jsx(
|
|
3141
|
+
const m = t ? Be : "button", u = (x) => {
|
|
3142
|
+
s && s(x);
|
|
3143
|
+
}, g = Fe(jr({ variant: o, size: r }), e);
|
|
3144
|
+
return /* @__PURE__ */ ue.jsx(
|
|
3148
3145
|
m,
|
|
3149
3146
|
{
|
|
3150
3147
|
"data-slot": "button",
|
|
@@ -3157,8 +3154,44 @@ const jr = Ze(
|
|
|
3157
3154
|
}
|
|
3158
3155
|
);
|
|
3159
3156
|
Nr.displayName = "Button";
|
|
3157
|
+
const Ir = {
|
|
3158
|
+
"title-medium": "text-4xl font-medium",
|
|
3159
|
+
"title-bold": "text-4xl font-bold",
|
|
3160
|
+
"heading-medium": "text-2xl font-medium",
|
|
3161
|
+
"heading-bold": "text-2xl font-bold",
|
|
3162
|
+
"heading-two-medium": "text-xl font-medium",
|
|
3163
|
+
"heading-two-bold": "text-xl font-bold",
|
|
3164
|
+
"heading-three-medium": "text-lg font-medium",
|
|
3165
|
+
"heading-three-bold": "text-lg font-bold",
|
|
3166
|
+
"body-normal": "text-sm font-normal",
|
|
3167
|
+
"body-bold": "text-sm font-semibold",
|
|
3168
|
+
caption: "text-xs font-normal",
|
|
3169
|
+
"caption-bold": "text-xs font-semibold"
|
|
3170
|
+
}, Mr = {
|
|
3171
|
+
"title-medium": "h1",
|
|
3172
|
+
"title-bold": "h1",
|
|
3173
|
+
"heading-medium": "h2",
|
|
3174
|
+
"heading-bold": "h2",
|
|
3175
|
+
"heading-two-medium": "h3",
|
|
3176
|
+
"heading-two-bold": "h3",
|
|
3177
|
+
"heading-three-medium": "h4",
|
|
3178
|
+
"heading-three-bold": "h4",
|
|
3179
|
+
"body-normal": "p",
|
|
3180
|
+
"body-bold": "p",
|
|
3181
|
+
caption: "span",
|
|
3182
|
+
"caption-bold": "span"
|
|
3183
|
+
}, Gr = ({
|
|
3184
|
+
variant: e = "body-normal",
|
|
3185
|
+
children: o,
|
|
3186
|
+
className: r,
|
|
3187
|
+
as: t
|
|
3188
|
+
}) => {
|
|
3189
|
+
const s = t || Mr[e], a = Ir[e];
|
|
3190
|
+
return /* @__PURE__ */ ue.jsx(s, { className: Fe(a, r), children: o });
|
|
3191
|
+
};
|
|
3160
3192
|
export {
|
|
3161
3193
|
Nr as Button,
|
|
3194
|
+
Gr as Typography,
|
|
3162
3195
|
jr as buttonVariants,
|
|
3163
|
-
|
|
3196
|
+
Fe as cn
|
|
3164
3197
|
};
|