@still-forest/canopy 0.39.3 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{Loader-B_h7e46-.js → Loader-o8P_ULjg.js} +1 -1
- package/dist/chunks/PageNotFound-BVocqOfr.js +144 -0
- package/dist/chunks/SidebarLayout-Fi6K4fXM.js +182 -0
- package/dist/chunks/Switch-C6ICR4ht.js +3094 -0
- package/dist/chunks/sidebar-BNz0YKgO.js +8273 -0
- package/dist/forms.d.ts +58 -9
- package/dist/forms.js +22 -19
- package/dist/index.d.ts +66 -27
- package/dist/index.js +146 -145
- package/dist/interstitials.d.ts +11 -18
- package/dist/interstitials.js +1 -1
- package/dist/navigation.js +5 -4
- package/package.json +1 -1
- package/dist/chunks/PageNotFound-BuG9Tgni.js +0 -139
- package/dist/chunks/SidebarLayout-t-P8wlBJ.js +0 -1807
- package/dist/chunks/Textarea-1yOGilko.js +0 -3184
- package/dist/chunks/calendar-C-nHBQQ8.js +0 -3212
- package/dist/chunks/index-CA-6Q-v_.js +0 -3138
package/dist/index.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { e as m, t as N, u as T, C, R, v as P, w as F, x as V, X as O, y as H, z as K, P as q, O as X, A as J, E as Q, F as U, G as W, H as Y, J as Z, K as ee, M as h, Q as ae, U as j } from "./chunks/sidebar-BNz0YKgO.js";
|
|
2
|
+
import { V as ya, B as ja, a as Na, W as ka, Y as wa, D as Ta, Z as Ca, I as Ia, b as _a, c as Ma, $ as Sa, _ as za, L as Aa, N as Ea, a0 as La, S as $a, a9 as Ba, a1 as Da, a2 as Ga, a3 as Ra, a4 as Pa, a5 as Fa, a6 as Va, a7 as Oa, d as Ha, a8 as Ka, T as qa, f as Xa } from "./chunks/sidebar-BNz0YKgO.js";
|
|
3
3
|
import { j as t } from "./chunks/jsx-runtime-B0GD0xBr.js";
|
|
4
|
-
import { c as g, b as N, S as T, C, d as F, e as V } from "./chunks/calendar-C-nHBQQ8.js";
|
|
5
|
-
import { B as qa, a as Ka } from "./chunks/calendar-C-nHBQQ8.js";
|
|
6
4
|
import { c as i } from "./chunks/index-CRiPKpXj.js";
|
|
7
5
|
import * as x from "react";
|
|
8
|
-
import { Fragment as
|
|
9
|
-
import { L as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { E as
|
|
14
|
-
import { B as
|
|
15
|
-
import { C as
|
|
16
|
-
import { H as
|
|
17
|
-
import { P as
|
|
6
|
+
import { Fragment as te, useState as re, useEffect as se, useMemo as ne } from "react";
|
|
7
|
+
import { L as Qa } from "./chunks/Loader-o8P_ULjg.js";
|
|
8
|
+
import { g as I, h as oe, I as ie } from "./chunks/Switch-C6ICR4ht.js";
|
|
9
|
+
import { C as Wa, a as Ya, b as Za, D as et, L as at, P as tt, R as rt, c as st, d as nt, e as ot, S as it, f as lt } from "./chunks/Switch-C6ICR4ht.js";
|
|
10
|
+
import { M as dt, S as ut, a as bt, T as gt } from "./chunks/SidebarLayout-Fi6K4fXM.js";
|
|
11
|
+
import { E as pt, a as xt, I as ft, P as vt, b as ht } from "./chunks/PageNotFound-BVocqOfr.js";
|
|
12
|
+
import { B as jt, C as Nt, F as kt, a as wt, G as Tt, H as Ct, L as It } from "./chunks/Layout-CvVv48kM.js";
|
|
13
|
+
import { C as Mt } from "./chunks/Code-BLilg72p.js";
|
|
14
|
+
import { H as zt, T as At } from "./chunks/Heading-DjVutKs1.js";
|
|
15
|
+
import { P as Lt } from "./chunks/Paragraph-ai9KZse1.js";
|
|
18
16
|
/**
|
|
19
17
|
* @license lucide-react v0.544.0 - ISC
|
|
20
18
|
*
|
|
@@ -24,7 +22,7 @@ import { P as Et } from "./chunks/Paragraph-ai9KZse1.js";
|
|
|
24
22
|
const le = [
|
|
25
23
|
["path", { d: "m17 18-6-6 6-6", key: "1yerx2" }],
|
|
26
24
|
["path", { d: "M7 6v12", key: "1p53r6" }]
|
|
27
|
-
], ce =
|
|
25
|
+
], ce = m("chevron-first", le);
|
|
28
26
|
/**
|
|
29
27
|
* @license lucide-react v0.544.0 - ISC
|
|
30
28
|
*
|
|
@@ -34,28 +32,28 @@ const le = [
|
|
|
34
32
|
const de = [
|
|
35
33
|
["path", { d: "m7 18 6-6-6-6", key: "lwmzdw" }],
|
|
36
34
|
["path", { d: "M17 6v12", key: "1o0aio" }]
|
|
37
|
-
], ue =
|
|
35
|
+
], ue = m("chevron-last", de);
|
|
38
36
|
/**
|
|
39
37
|
* @license lucide-react v0.544.0 - ISC
|
|
40
38
|
*
|
|
41
39
|
* This source code is licensed under the ISC license.
|
|
42
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
43
41
|
*/
|
|
44
|
-
const
|
|
42
|
+
const be = [
|
|
45
43
|
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
46
44
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
47
|
-
],
|
|
45
|
+
], ge = m("circle-check-big", be);
|
|
48
46
|
/**
|
|
49
47
|
* @license lucide-react v0.544.0 - ISC
|
|
50
48
|
*
|
|
51
49
|
* This source code is licensed under the ISC license.
|
|
52
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
53
51
|
*/
|
|
54
|
-
const
|
|
52
|
+
const me = [
|
|
55
53
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
56
54
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
57
55
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
58
|
-
], pe =
|
|
56
|
+
], pe = m("ellipsis", me);
|
|
59
57
|
/**
|
|
60
58
|
* @license lucide-react v0.544.0 - ISC
|
|
61
59
|
*
|
|
@@ -66,7 +64,7 @@ const xe = [
|
|
|
66
64
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
67
65
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
68
66
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
69
|
-
], fe =
|
|
67
|
+
], fe = m("info", xe);
|
|
70
68
|
/**
|
|
71
69
|
* @license lucide-react v0.544.0 - ISC
|
|
72
70
|
*
|
|
@@ -83,7 +81,7 @@ const ve = [
|
|
|
83
81
|
}
|
|
84
82
|
],
|
|
85
83
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
86
|
-
], he =
|
|
84
|
+
], he = m("octagon-x", ve);
|
|
87
85
|
/**
|
|
88
86
|
* @license lucide-react v0.544.0 - ISC
|
|
89
87
|
*
|
|
@@ -100,7 +98,7 @@ const ye = [
|
|
|
100
98
|
],
|
|
101
99
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
102
100
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
103
|
-
], je =
|
|
101
|
+
], je = m("triangle-alert", ye), Ne = N(
|
|
104
102
|
"relative w-full rounded-lg border px-3 py-2 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
105
103
|
{
|
|
106
104
|
variants: {
|
|
@@ -140,11 +138,11 @@ function Te({ className: e, ...a }) {
|
|
|
140
138
|
);
|
|
141
139
|
}
|
|
142
140
|
const Ce = {
|
|
143
|
-
success:
|
|
141
|
+
success: ge,
|
|
144
142
|
info: fe,
|
|
145
143
|
error: he,
|
|
146
144
|
warning: je
|
|
147
|
-
},
|
|
145
|
+
}, oa = ({ type: e, title: a, message: o, className: s = "", children: n }) => {
|
|
148
146
|
const l = Ce[e];
|
|
149
147
|
if (o && n)
|
|
150
148
|
throw new Error("Alert cannot have both message and children");
|
|
@@ -338,7 +336,7 @@ const Me = N(
|
|
|
338
336
|
}
|
|
339
337
|
]
|
|
340
338
|
}
|
|
341
|
-
),
|
|
339
|
+
), ia = ({ label: e, onClick: a, className: o, variant: s = "default", color: n }) => {
|
|
342
340
|
if (n && !(s === "default" || s === "outline"))
|
|
343
341
|
throw new Error(
|
|
344
342
|
`Color ${n} is not allowed for variant '${s}'. Only default and outline variants support color.`
|
|
@@ -399,7 +397,7 @@ function Ee({ className: e, ...a }) {
|
|
|
399
397
|
}
|
|
400
398
|
);
|
|
401
399
|
}
|
|
402
|
-
function
|
|
400
|
+
function Le({ children: e, className: a, ...o }) {
|
|
403
401
|
return /* @__PURE__ */ t.jsx(
|
|
404
402
|
"li",
|
|
405
403
|
{
|
|
@@ -412,28 +410,28 @@ function $e({ children: e, className: a, ...o }) {
|
|
|
412
410
|
}
|
|
413
411
|
);
|
|
414
412
|
}
|
|
415
|
-
const
|
|
416
|
-
const n = a ||
|
|
417
|
-
return /* @__PURE__ */ t.jsx(Se, { className: i("my-4", s), children: /* @__PURE__ */ t.jsx(ze, { children: e.map(({ to: r, label: c },
|
|
413
|
+
const $e = ({ to: e, label: a }) => /* @__PURE__ */ t.jsx(_, { className: "font-display", href: e, children: a }), Be = ({ label: e }) => /* @__PURE__ */ t.jsx(Ee, { className: "font-display", children: e }), la = ({ breadcrumbs: e, linkComponent: a, pageComponent: o, className: s }) => {
|
|
414
|
+
const n = a || $e, l = o || Be;
|
|
415
|
+
return /* @__PURE__ */ t.jsx(Se, { className: i("my-4", s), children: /* @__PURE__ */ t.jsx(ze, { children: e.map(({ to: r, label: c }, b) => /* @__PURE__ */ t.jsxs(te, { children: [
|
|
418
416
|
/* @__PURE__ */ t.jsxs(Ae, { children: [
|
|
419
417
|
r && /* @__PURE__ */ t.jsx(_, { asChild: !0, className: "font-display", children: /* @__PURE__ */ t.jsx(n, { label: c, to: r }) }),
|
|
420
418
|
!r && /* @__PURE__ */ t.jsx(l, { label: c })
|
|
421
419
|
] }),
|
|
422
|
-
|
|
420
|
+
b < e.length - 1 && /* @__PURE__ */ t.jsx(Le, {})
|
|
423
421
|
] }, c)) }) });
|
|
424
422
|
};
|
|
425
423
|
function De({ ...e }) {
|
|
426
|
-
return /* @__PURE__ */ t.jsx(
|
|
424
|
+
return /* @__PURE__ */ t.jsx(R, { "data-slot": "dialog", ...e });
|
|
427
425
|
}
|
|
428
426
|
function Ge({ ...e }) {
|
|
429
|
-
return /* @__PURE__ */ t.jsx(
|
|
427
|
+
return /* @__PURE__ */ t.jsx(P, { "data-slot": "dialog-trigger", ...e });
|
|
430
428
|
}
|
|
431
429
|
function Re({ ...e }) {
|
|
432
|
-
return /* @__PURE__ */ t.jsx(
|
|
430
|
+
return /* @__PURE__ */ t.jsx(q, { "data-slot": "dialog-portal", ...e });
|
|
433
431
|
}
|
|
434
432
|
function Pe({ className: e, ...a }) {
|
|
435
433
|
return /* @__PURE__ */ t.jsx(
|
|
436
|
-
|
|
434
|
+
X,
|
|
437
435
|
{
|
|
438
436
|
className: i(
|
|
439
437
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
@@ -453,7 +451,7 @@ function Fe({
|
|
|
453
451
|
return /* @__PURE__ */ t.jsxs(Re, { "data-slot": "dialog-portal", children: [
|
|
454
452
|
/* @__PURE__ */ t.jsx(Pe, {}),
|
|
455
453
|
/* @__PURE__ */ t.jsxs(
|
|
456
|
-
|
|
454
|
+
F,
|
|
457
455
|
{
|
|
458
456
|
className: i(
|
|
459
457
|
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
@@ -464,12 +462,12 @@ function Fe({
|
|
|
464
462
|
children: [
|
|
465
463
|
a,
|
|
466
464
|
o && /* @__PURE__ */ t.jsxs(
|
|
467
|
-
|
|
465
|
+
V,
|
|
468
466
|
{
|
|
469
467
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
470
468
|
"data-slot": "dialog-close",
|
|
471
469
|
children: [
|
|
472
|
-
/* @__PURE__ */ t.jsx(
|
|
470
|
+
/* @__PURE__ */ t.jsx(O, {}),
|
|
473
471
|
/* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "Close" })
|
|
474
472
|
]
|
|
475
473
|
}
|
|
@@ -491,7 +489,7 @@ function Ve({ className: e, ...a }) {
|
|
|
491
489
|
}
|
|
492
490
|
function Oe({ className: e, ...a }) {
|
|
493
491
|
return /* @__PURE__ */ t.jsx(
|
|
494
|
-
|
|
492
|
+
H,
|
|
495
493
|
{
|
|
496
494
|
className: i("text-lg leading-none font-semibold", e),
|
|
497
495
|
"data-slot": "dialog-title",
|
|
@@ -501,7 +499,7 @@ function Oe({ className: e, ...a }) {
|
|
|
501
499
|
}
|
|
502
500
|
function He({ className: e, ...a }) {
|
|
503
501
|
return /* @__PURE__ */ t.jsx(
|
|
504
|
-
|
|
502
|
+
K,
|
|
505
503
|
{
|
|
506
504
|
className: i("text-muted-foreground text-sm", e),
|
|
507
505
|
"data-slot": "dialog-description",
|
|
@@ -509,16 +507,16 @@ function He({ className: e, ...a }) {
|
|
|
509
507
|
}
|
|
510
508
|
);
|
|
511
509
|
}
|
|
512
|
-
const
|
|
513
|
-
const r = n !== void 0, [c,
|
|
514
|
-
if (
|
|
515
|
-
r &&
|
|
510
|
+
const ca = ({ trigger: e, children: a, title: o, description: s, open: n, onOpenChange: l }) => {
|
|
511
|
+
const r = n !== void 0, [c, b] = re(r ? n : !1);
|
|
512
|
+
if (se(() => {
|
|
513
|
+
r && b(n);
|
|
516
514
|
}, [n, r]), !e && !r)
|
|
517
515
|
throw new Error("Trigger must be provided if modal state is not controlled through open, onOpenChange props.");
|
|
518
|
-
const
|
|
519
|
-
|
|
516
|
+
const g = (d) => {
|
|
517
|
+
b(d), l?.(d);
|
|
520
518
|
};
|
|
521
|
-
return /* @__PURE__ */ t.jsxs(De, { onOpenChange:
|
|
519
|
+
return /* @__PURE__ */ t.jsxs(De, { onOpenChange: g, open: c, children: [
|
|
522
520
|
/* @__PURE__ */ t.jsx(Ge, { asChild: !0, children: e }),
|
|
523
521
|
/* @__PURE__ */ t.jsxs(Fe, { children: [
|
|
524
522
|
(o || s) && /* @__PURE__ */ t.jsxs(Ve, { children: [
|
|
@@ -529,7 +527,7 @@ const ua = ({ trigger: e, children: a, title: o, description: s, open: n, onOpen
|
|
|
529
527
|
] })
|
|
530
528
|
] });
|
|
531
529
|
};
|
|
532
|
-
function
|
|
530
|
+
function Ke({ className: e, ...a }) {
|
|
533
531
|
return /* @__PURE__ */ t.jsx(
|
|
534
532
|
"nav",
|
|
535
533
|
{
|
|
@@ -540,7 +538,7 @@ function qe({ className: e, ...a }) {
|
|
|
540
538
|
}
|
|
541
539
|
);
|
|
542
540
|
}
|
|
543
|
-
function
|
|
541
|
+
function qe({ className: e, ...a }) {
|
|
544
542
|
return /* @__PURE__ */ t.jsx("ul", { className: i("flex flex-row items-center gap-1", e), "data-slot": "pagination-content", ...a });
|
|
545
543
|
}
|
|
546
544
|
function f({ ...e }) {
|
|
@@ -552,7 +550,7 @@ function v({ className: e, isActive: a, size: o = "icon", ...s }) {
|
|
|
552
550
|
{
|
|
553
551
|
"aria-current": a ? "page" : void 0,
|
|
554
552
|
className: i(
|
|
555
|
-
|
|
553
|
+
J({
|
|
556
554
|
variant: a ? "outline" : "ghost",
|
|
557
555
|
size: o
|
|
558
556
|
}),
|
|
@@ -573,7 +571,7 @@ function Xe({ className: e, ...a }) {
|
|
|
573
571
|
size: "default",
|
|
574
572
|
...a,
|
|
575
573
|
children: [
|
|
576
|
-
/* @__PURE__ */ t.jsx(
|
|
574
|
+
/* @__PURE__ */ t.jsx(Q, {}),
|
|
577
575
|
/* @__PURE__ */ t.jsx("span", { className: "hidden sm:block", children: "Previous" })
|
|
578
576
|
]
|
|
579
577
|
}
|
|
@@ -609,12 +607,12 @@ function w({ className: e, ...a }) {
|
|
|
609
607
|
}
|
|
610
608
|
);
|
|
611
609
|
}
|
|
612
|
-
const
|
|
613
|
-
const s = Math.max(1, e), n = Math.max(1, Math.min(a, s)), l =
|
|
610
|
+
const da = ({ pageCount: e, currentPage: a, onChange: o }) => {
|
|
611
|
+
const s = Math.max(1, e), n = Math.max(1, Math.min(a, s)), l = ne(() => s === 1 ? [1] : n <= 3 ? Array.from({ length: Math.min(3, s) }, (r, c) => c + 1) : n >= s - 2 ? Array.from(
|
|
614
612
|
{ length: Math.min(3, s) },
|
|
615
613
|
(r, c) => s - Math.min(3, s) + c + 1
|
|
616
614
|
) : [n - 1, n, n + 1], [n, s]);
|
|
617
|
-
return /* @__PURE__ */ t.jsx(
|
|
615
|
+
return /* @__PURE__ */ t.jsx(Ke, { children: /* @__PURE__ */ t.jsxs(qe, { children: [
|
|
618
616
|
/* @__PURE__ */ t.jsx(f, { children: /* @__PURE__ */ t.jsxs(
|
|
619
617
|
v,
|
|
620
618
|
{
|
|
@@ -690,10 +688,10 @@ const ma = ({ pageCount: e, currentPage: a, onChange: o }) => {
|
|
|
690
688
|
}
|
|
691
689
|
) })
|
|
692
690
|
] }) });
|
|
693
|
-
},
|
|
691
|
+
}, ua = ({ className: e, orientation: a = "horizontal", gap: o, ...s }) => {
|
|
694
692
|
const n = a === "vertical", r = o ?? (n ? "2" : "4");
|
|
695
693
|
return /* @__PURE__ */ t.jsx(
|
|
696
|
-
|
|
694
|
+
U,
|
|
697
695
|
{
|
|
698
696
|
className: i(
|
|
699
697
|
!n && {
|
|
@@ -742,10 +740,10 @@ const ma = ({ pageCount: e, currentPage: a, onChange: o }) => {
|
|
|
742
740
|
}
|
|
743
741
|
);
|
|
744
742
|
};
|
|
745
|
-
function
|
|
743
|
+
function ba({ className: e, ...a }) {
|
|
746
744
|
return /* @__PURE__ */ t.jsx("div", { className: i("bg-accent animate-pulse rounded-md", e), "data-slot": "skeleton", ...a });
|
|
747
745
|
}
|
|
748
|
-
var y = "Tabs", [Qe,
|
|
746
|
+
var y = "Tabs", [Qe, ga] = Z(y, [
|
|
749
747
|
I
|
|
750
748
|
]), M = I(), [Ue, k] = Qe(y), S = x.forwardRef(
|
|
751
749
|
(e, a) => {
|
|
@@ -756,9 +754,9 @@ var y = "Tabs", [Qe, pa] = re(y, [
|
|
|
756
754
|
defaultValue: l,
|
|
757
755
|
orientation: r = "horizontal",
|
|
758
756
|
dir: c,
|
|
759
|
-
activationMode:
|
|
760
|
-
...
|
|
761
|
-
} = e, d =
|
|
757
|
+
activationMode: b = "automatic",
|
|
758
|
+
...g
|
|
759
|
+
} = e, d = W(c), [u, p] = Y({
|
|
762
760
|
prop: s,
|
|
763
761
|
onChange: n,
|
|
764
762
|
defaultProp: l ?? "",
|
|
@@ -768,18 +766,18 @@ var y = "Tabs", [Qe, pa] = re(y, [
|
|
|
768
766
|
Ue,
|
|
769
767
|
{
|
|
770
768
|
scope: o,
|
|
771
|
-
baseId:
|
|
769
|
+
baseId: ee(),
|
|
772
770
|
value: u,
|
|
773
771
|
onValueChange: p,
|
|
774
772
|
orientation: r,
|
|
775
773
|
dir: d,
|
|
776
|
-
activationMode:
|
|
774
|
+
activationMode: b,
|
|
777
775
|
children: /* @__PURE__ */ t.jsx(
|
|
778
776
|
h.div,
|
|
779
777
|
{
|
|
780
778
|
dir: d,
|
|
781
779
|
"data-orientation": r,
|
|
782
|
-
...
|
|
780
|
+
...g,
|
|
783
781
|
ref: a
|
|
784
782
|
}
|
|
785
783
|
)
|
|
@@ -813,9 +811,9 @@ var z = "TabsList", A = x.forwardRef(
|
|
|
813
811
|
}
|
|
814
812
|
);
|
|
815
813
|
A.displayName = z;
|
|
816
|
-
var E = "TabsTrigger",
|
|
814
|
+
var E = "TabsTrigger", L = x.forwardRef(
|
|
817
815
|
(e, a) => {
|
|
818
|
-
const { __scopeTabs: o, value: s, disabled: n = !1, ...l } = e, r = k(E, o), c = M(o),
|
|
816
|
+
const { __scopeTabs: o, value: s, disabled: n = !1, ...l } = e, r = k(E, o), c = M(o), b = D(r.baseId, s), g = G(r.baseId, s), d = s === r.value;
|
|
819
817
|
return /* @__PURE__ */ t.jsx(
|
|
820
818
|
ie,
|
|
821
819
|
{
|
|
@@ -829,11 +827,11 @@ var E = "TabsTrigger", $ = x.forwardRef(
|
|
|
829
827
|
type: "button",
|
|
830
828
|
role: "tab",
|
|
831
829
|
"aria-selected": d,
|
|
832
|
-
"aria-controls":
|
|
830
|
+
"aria-controls": g,
|
|
833
831
|
"data-state": d ? "active" : "inactive",
|
|
834
832
|
"data-disabled": n ? "" : void 0,
|
|
835
833
|
disabled: n,
|
|
836
|
-
id:
|
|
834
|
+
id: b,
|
|
837
835
|
...l,
|
|
838
836
|
ref: a,
|
|
839
837
|
onMouseDown: j(e.onMouseDown, (u) => {
|
|
@@ -852,22 +850,22 @@ var E = "TabsTrigger", $ = x.forwardRef(
|
|
|
852
850
|
);
|
|
853
851
|
}
|
|
854
852
|
);
|
|
855
|
-
|
|
856
|
-
var
|
|
853
|
+
L.displayName = E;
|
|
854
|
+
var $ = "TabsContent", B = x.forwardRef(
|
|
857
855
|
(e, a) => {
|
|
858
|
-
const { __scopeTabs: o, value: s, forceMount: n, children: l, ...r } = e, c = k(
|
|
856
|
+
const { __scopeTabs: o, value: s, forceMount: n, children: l, ...r } = e, c = k($, o), b = D(c.baseId, s), g = G(c.baseId, s), d = s === c.value, u = x.useRef(d);
|
|
859
857
|
return x.useEffect(() => {
|
|
860
858
|
const p = requestAnimationFrame(() => u.current = !1);
|
|
861
859
|
return () => cancelAnimationFrame(p);
|
|
862
|
-
}, []), /* @__PURE__ */ t.jsx(
|
|
860
|
+
}, []), /* @__PURE__ */ t.jsx(ae, { present: n || d, children: ({ present: p }) => /* @__PURE__ */ t.jsx(
|
|
863
861
|
h.div,
|
|
864
862
|
{
|
|
865
863
|
"data-state": d ? "active" : "inactive",
|
|
866
864
|
"data-orientation": c.orientation,
|
|
867
865
|
role: "tabpanel",
|
|
868
|
-
"aria-labelledby":
|
|
866
|
+
"aria-labelledby": b,
|
|
869
867
|
hidden: !p,
|
|
870
|
-
id:
|
|
868
|
+
id: g,
|
|
871
869
|
tabIndex: 0,
|
|
872
870
|
...r,
|
|
873
871
|
ref: a,
|
|
@@ -880,18 +878,18 @@ var L = "TabsContent", B = x.forwardRef(
|
|
|
880
878
|
) });
|
|
881
879
|
}
|
|
882
880
|
);
|
|
883
|
-
B.displayName =
|
|
881
|
+
B.displayName = $;
|
|
884
882
|
function D(e, a) {
|
|
885
883
|
return `${e}-trigger-${a}`;
|
|
886
884
|
}
|
|
887
885
|
function G(e, a) {
|
|
888
886
|
return `${e}-content-${a}`;
|
|
889
887
|
}
|
|
890
|
-
var We = S, Ye = A, Ze =
|
|
891
|
-
function
|
|
888
|
+
var We = S, Ye = A, Ze = L, ea = B;
|
|
889
|
+
function ma({ className: e, ...a }) {
|
|
892
890
|
return /* @__PURE__ */ t.jsx(We, { className: i("flex flex-col gap-2", e), "data-slot": "tabs", ...a });
|
|
893
891
|
}
|
|
894
|
-
function
|
|
892
|
+
function pa({ className: e, ...a }) {
|
|
895
893
|
return /* @__PURE__ */ t.jsx(
|
|
896
894
|
Ye,
|
|
897
895
|
{
|
|
@@ -904,7 +902,7 @@ function fa({ className: e, ...a }) {
|
|
|
904
902
|
}
|
|
905
903
|
);
|
|
906
904
|
}
|
|
907
|
-
function
|
|
905
|
+
function xa({ className: e, ...a }) {
|
|
908
906
|
return /* @__PURE__ */ t.jsx(
|
|
909
907
|
Ze,
|
|
910
908
|
{
|
|
@@ -917,78 +915,81 @@ function va({ className: e, ...a }) {
|
|
|
917
915
|
}
|
|
918
916
|
);
|
|
919
917
|
}
|
|
920
|
-
function
|
|
918
|
+
function fa({ className: e, ...a }) {
|
|
921
919
|
return /* @__PURE__ */ t.jsx(ea, { className: i("flex-1 outline-none", e), "data-slot": "tabs-content", ...a });
|
|
922
920
|
}
|
|
923
921
|
export {
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
922
|
+
ya as Accordion,
|
|
923
|
+
oa as Alert,
|
|
924
|
+
ia as Badge,
|
|
925
|
+
jt as Box,
|
|
926
|
+
la as Breadcrumbs,
|
|
927
|
+
ja as Button,
|
|
928
|
+
Na as ButtonGroup,
|
|
931
929
|
ka as Card,
|
|
932
|
-
|
|
933
|
-
|
|
930
|
+
Wa as Checkbox,
|
|
931
|
+
Mt as Code,
|
|
934
932
|
wa as Collapsible,
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
933
|
+
Nt as Container,
|
|
934
|
+
Ya as CopyButton,
|
|
935
|
+
Ta as DateInput,
|
|
938
936
|
Za as DatePicker,
|
|
939
937
|
et as DeleteButton,
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
Da as
|
|
980
|
-
Ga as
|
|
981
|
-
Ra as
|
|
982
|
-
Pa as
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
938
|
+
Ca as Empty,
|
|
939
|
+
pt as ErrorFallback,
|
|
940
|
+
xt as ErrorOverlay,
|
|
941
|
+
kt as Flex,
|
|
942
|
+
wt as Footer,
|
|
943
|
+
Tt as Grid,
|
|
944
|
+
Ct as Header,
|
|
945
|
+
zt as Heading,
|
|
946
|
+
Ia as Input,
|
|
947
|
+
_a as InputError,
|
|
948
|
+
Ma as InputGroup,
|
|
949
|
+
ft as Interstitial,
|
|
950
|
+
Sa as Item,
|
|
951
|
+
za as ItemGroup,
|
|
952
|
+
Aa as Label,
|
|
953
|
+
It as Layout,
|
|
954
|
+
at as LegacyInputGroup,
|
|
955
|
+
Qa as Loader,
|
|
956
|
+
dt as MenuItemText,
|
|
957
|
+
ca as Modal,
|
|
958
|
+
Ea as NumberInput,
|
|
959
|
+
vt as PageLoader,
|
|
960
|
+
ht as PageNotFound,
|
|
961
|
+
da as Pagination,
|
|
962
|
+
Lt as Paragraph,
|
|
963
|
+
tt as PasswordInput,
|
|
964
|
+
La as Popover,
|
|
965
|
+
rt as RadioSelect,
|
|
966
|
+
st as SelectInput,
|
|
967
|
+
nt as SelectPicker,
|
|
968
|
+
ua as Separator,
|
|
969
|
+
ut as Sidebar,
|
|
970
|
+
bt as SidebarLayout,
|
|
971
|
+
$a as SidebarTrigger,
|
|
972
|
+
Ba as SimpleTooltip,
|
|
973
|
+
ba as Skeleton,
|
|
974
|
+
ot as Slider,
|
|
975
|
+
it as SubmitButton,
|
|
976
|
+
lt as Switch,
|
|
977
|
+
Da as Table,
|
|
978
|
+
Ga as TableBody,
|
|
979
|
+
Ra as TableCaption,
|
|
980
|
+
Pa as TableCell,
|
|
981
|
+
Fa as TableHead,
|
|
982
|
+
Va as TableHeader,
|
|
983
|
+
Oa as TableRow,
|
|
984
|
+
ma as Tabs,
|
|
985
|
+
fa as TabsContent,
|
|
986
|
+
pa as TabsList,
|
|
987
|
+
xa as TabsTrigger,
|
|
988
|
+
At as Text,
|
|
989
|
+
Ha as TextInput,
|
|
990
|
+
Ka as TextList,
|
|
991
|
+
qa as Textarea,
|
|
992
|
+
gt as ThemeSelector,
|
|
993
|
+
Xa as Tooltip,
|
|
993
994
|
i as cn
|
|
994
995
|
};
|
package/dist/interstitials.d.ts
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
|
-
export declare const ErrorFallback: ({ error, onRetry }: ErrorFallbackProps) => JSX.Element;
|
|
4
|
+
export declare const ErrorFallback: ({ error, onRetry, ...props }: ErrorFallbackProps) => JSX.Element;
|
|
5
5
|
|
|
6
|
-
declare interface ErrorFallbackProps {
|
|
6
|
+
declare interface ErrorFallbackProps extends ErrorOverlayProps {
|
|
7
7
|
error: Error;
|
|
8
8
|
onRetry?: () => void;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export declare const ErrorOverlay: ({ message, children }: ErrorOverlayProps) => JSX.Element;
|
|
11
|
+
export declare const ErrorOverlay: ({ message, children, ...props }: ErrorOverlayProps) => JSX.Element;
|
|
12
12
|
|
|
13
|
-
declare interface ErrorOverlayProps {
|
|
14
|
-
message?: string;
|
|
15
|
-
children?: React.ReactNode;
|
|
13
|
+
export declare interface ErrorOverlayProps extends InterstitialProps {
|
|
16
14
|
}
|
|
17
15
|
|
|
18
|
-
export declare const Interstitial: ({ variant, iconComponent, message, children, iconSize, iconClassName, }: InterstitialProps) => JSX.Element;
|
|
16
|
+
export declare const Interstitial: ({ variant, iconComponent, message, children, iconSize, iconClassName, fullScreen, containerClassName, }: InterstitialProps) => JSX.Element;
|
|
19
17
|
|
|
20
18
|
export declare interface InterstitialProps {
|
|
21
19
|
variant?: "error" | "info" | "success" | "warning";
|
|
@@ -24,6 +22,8 @@ export declare interface InterstitialProps {
|
|
|
24
22
|
iconSize?: LoaderProps["size"];
|
|
25
23
|
iconClassName?: string;
|
|
26
24
|
children?: default_2.ReactNode;
|
|
25
|
+
fullScreen?: boolean;
|
|
26
|
+
containerClassName?: string;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
declare interface LoaderProps extends React.ComponentProps<"svg"> {
|
|
@@ -32,21 +32,14 @@ declare interface LoaderProps extends React.ComponentProps<"svg"> {
|
|
|
32
32
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl";
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export declare const PageLoader: ({ iconComponent, message,
|
|
35
|
+
export declare const PageLoader: ({ iconComponent, message, iconSize, iconClassName, ...props }: PageLoaderProps) => JSX.Element;
|
|
36
36
|
|
|
37
|
-
declare interface PageLoaderProps {
|
|
38
|
-
iconComponent?: React.ElementType;
|
|
39
|
-
message?: string;
|
|
40
|
-
containerClassName?: string;
|
|
41
|
-
iconSize?: LoaderProps["size"];
|
|
42
|
-
fullScreen?: boolean;
|
|
43
|
-
iconClassName?: string;
|
|
37
|
+
declare interface PageLoaderProps extends InterstitialProps {
|
|
44
38
|
}
|
|
45
39
|
|
|
46
|
-
export declare const PageNotFound: ({ onBack, message, backIcon, backLabel, }: PageNotFoundProps) => JSX.Element;
|
|
40
|
+
export declare const PageNotFound: ({ onBack, message, backIcon, backLabel, ...props }: PageNotFoundProps) => JSX.Element;
|
|
47
41
|
|
|
48
|
-
declare interface PageNotFoundProps {
|
|
49
|
-
message?: string;
|
|
42
|
+
declare interface PageNotFoundProps extends InterstitialProps {
|
|
50
43
|
backIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
51
44
|
backLabel?: string;
|
|
52
45
|
onBack?: () => void;
|
package/dist/interstitials.js
CHANGED
package/dist/navigation.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { M as r,
|
|
1
|
+
import { M as r, S as o, a as t } from "./chunks/SidebarLayout-Fi6K4fXM.js";
|
|
2
|
+
import { S as i } from "./chunks/sidebar-BNz0YKgO.js";
|
|
2
3
|
export {
|
|
3
4
|
r as MenuItemText,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
o as Sidebar,
|
|
6
|
+
t as SidebarLayout,
|
|
7
|
+
i as SidebarTrigger
|
|
7
8
|
};
|