@still-forest/canopy 0.35.0 → 0.36.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-BgoWXwkX.js +49 -0
- package/dist/chunks/PageNotFound-OZwSPdMe.js +139 -0
- package/dist/chunks/SidebarLayout-CRATwjpz.js +1983 -0
- package/dist/chunks/{Textarea-BpQRN4Xn.js → Textarea-CZDF6QhO.js} +431 -447
- package/dist/forms.js +1 -1
- package/dist/index.d.ts +116 -5
- package/dist/index.js +107 -102
- package/dist/interstitials.d.ts +18 -4
- package/dist/interstitials.js +1 -1
- package/dist/navigation.d.ts +1 -1
- package/dist/navigation.js +1 -1
- package/package.json +3 -1
- package/dist/chunks/PageNotFound-p3jnz0na.js +0 -107
- package/dist/chunks/SidebarLayout-BrWkHR7S.js +0 -1762
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { j as c } from "./jsx-runtime-B0GD0xBr.js";
|
|
2
|
+
import { c as i } from "./index-CRiPKpXj.js";
|
|
3
|
+
import { c as t } from "./calendar-DKwGFkIw.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license lucide-react v0.543.0 - ISC
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the ISC license.
|
|
8
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
const m = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], x = t("loader-circle", m);
|
|
11
|
+
/**
|
|
12
|
+
* @license lucide-react v0.543.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/
|
|
17
|
+
const n = [
|
|
18
|
+
["path", { d: "M12 2v4", key: "3427ic" }],
|
|
19
|
+
["path", { d: "m16.2 7.8 2.9-2.9", key: "r700ao" }],
|
|
20
|
+
["path", { d: "M18 12h4", key: "wj9ykh" }],
|
|
21
|
+
["path", { d: "m16.2 16.2 2.9 2.9", key: "1bxg5t" }],
|
|
22
|
+
["path", { d: "M12 18v4", key: "jadmvz" }],
|
|
23
|
+
["path", { d: "m4.9 19.1 2.9-2.9", key: "bwix9q" }],
|
|
24
|
+
["path", { d: "M2 12h4", key: "j09sii" }],
|
|
25
|
+
["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
|
|
26
|
+
], p = t("loader", n), j = ({ variant: o = "default", icon: e, size: a = "md", className: s, ...d }) => {
|
|
27
|
+
const l = e || (o === "wheel" ? p : x), r = i(
|
|
28
|
+
"animate-spin",
|
|
29
|
+
a === "xs" && "size-2",
|
|
30
|
+
a === "sm" && "size-3",
|
|
31
|
+
a === "md" && "size-4",
|
|
32
|
+
a === "lg" && "size-5",
|
|
33
|
+
a === "xl" && "size-6",
|
|
34
|
+
a === "2xl" && "size-7",
|
|
35
|
+
a === "3xl" && "size-8",
|
|
36
|
+
a === "4xl" && "size-10",
|
|
37
|
+
a === "5xl" && "size-12",
|
|
38
|
+
a === "6xl" && "size-14",
|
|
39
|
+
a === "7xl" && "size-16",
|
|
40
|
+
a === "8xl" && "size-20",
|
|
41
|
+
a === "9xl" && "size-28",
|
|
42
|
+
a === "10xl" && "size-32",
|
|
43
|
+
s
|
|
44
|
+
);
|
|
45
|
+
return /* @__PURE__ */ c.jsx(l, { "aria-label": "Loading", className: r, role: "status", ...d });
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
j as L
|
|
49
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-B0GD0xBr.js";
|
|
2
|
+
import { c as o, B as m } from "./calendar-DKwGFkIw.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { F as c, B as h } from "./Layout-CvVv48kM.js";
|
|
5
|
+
import { C as u } from "./Code-zUdzRHTD.js";
|
|
6
|
+
import { H as f } from "./Heading-DpvcMbmF.js";
|
|
7
|
+
import { L as j } from "./Loader-BgoWXwkX.js";
|
|
8
|
+
import { c as d } from "./index-CRiPKpXj.js";
|
|
9
|
+
/**
|
|
10
|
+
* @license lucide-react v0.543.0 - ISC
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the ISC license.
|
|
13
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
const p = [
|
|
16
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
17
|
+
["path", { d: "m14 16-4-4 4-4", key: "ojs7w8" }]
|
|
18
|
+
], y = o("circle-chevron-left", p);
|
|
19
|
+
/**
|
|
20
|
+
* @license lucide-react v0.543.0 - ISC
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the ISC license.
|
|
23
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/
|
|
25
|
+
const g = [
|
|
26
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
27
|
+
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
28
|
+
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
29
|
+
], w = o("circle-x", g);
|
|
30
|
+
/**
|
|
31
|
+
* @license lucide-react v0.543.0 - ISC
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the ISC license.
|
|
34
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/
|
|
36
|
+
const k = [
|
|
37
|
+
["path", { d: "M12 17h.01", key: "p32p05" }],
|
|
38
|
+
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z", key: "1mlx9k" }],
|
|
39
|
+
["path", { d: "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3", key: "mhlwft" }]
|
|
40
|
+
], N = o("file-question-mark", k);
|
|
41
|
+
/**
|
|
42
|
+
* @license lucide-react v0.543.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/
|
|
47
|
+
const v = [
|
|
48
|
+
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
49
|
+
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
50
|
+
], C = o("rotate-ccw", v), x = ({
|
|
51
|
+
variant: r,
|
|
52
|
+
iconComponent: n,
|
|
53
|
+
message: s,
|
|
54
|
+
children: a,
|
|
55
|
+
iconSize: t = "10xl",
|
|
56
|
+
iconClassName: i
|
|
57
|
+
}) => {
|
|
58
|
+
if (!n && !s && !a)
|
|
59
|
+
return /* @__PURE__ */ e.jsx(c, { align: "center", className: "h-full w-full", justify: "center", children: "Content missing" });
|
|
60
|
+
const l = n || null;
|
|
61
|
+
return /* @__PURE__ */ e.jsx(c, { align: "center", className: "h-full w-full", justify: "center", children: /* @__PURE__ */ e.jsxs(c, { direction: "col", justify: "center", children: [
|
|
62
|
+
l && /* @__PURE__ */ e.jsx(c, { align: "center", className: "my-6", gapX: "4", justify: "center", children: /* @__PURE__ */ e.jsx(
|
|
63
|
+
l,
|
|
64
|
+
{
|
|
65
|
+
"aria-hidden": !!s,
|
|
66
|
+
"aria-label": s ? void 0 : `${r || "info"} icon`,
|
|
67
|
+
className: d(
|
|
68
|
+
r === "error" && "text-destructive",
|
|
69
|
+
r === "success" && "text-success",
|
|
70
|
+
r === "warning" && "text-warning",
|
|
71
|
+
r === "info" && "text-info",
|
|
72
|
+
t === "xs" && "size-2",
|
|
73
|
+
t === "sm" && "size-3",
|
|
74
|
+
t === "md" && "size-4",
|
|
75
|
+
t === "lg" && "size-5",
|
|
76
|
+
t === "xl" && "size-6",
|
|
77
|
+
t === "2xl" && "size-7",
|
|
78
|
+
t === "3xl" && "size-8",
|
|
79
|
+
t === "4xl" && "size-10",
|
|
80
|
+
t === "5xl" && "size-12",
|
|
81
|
+
t === "6xl" && "size-14",
|
|
82
|
+
t === "7xl" && "size-16",
|
|
83
|
+
t === "8xl" && "size-20",
|
|
84
|
+
t === "9xl" && "size-28",
|
|
85
|
+
t === "10xl" && "size-32",
|
|
86
|
+
i
|
|
87
|
+
),
|
|
88
|
+
"data-testid": "icon",
|
|
89
|
+
role: s ? void 0 : "img"
|
|
90
|
+
}
|
|
91
|
+
) }),
|
|
92
|
+
/* @__PURE__ */ e.jsxs(c, { className: "max-w-[500px]", direction: "col", justify: "center", children: [
|
|
93
|
+
s ? /* @__PURE__ */ e.jsx(f, { align: "center", level: "4", weight: "normal", children: s }) : null,
|
|
94
|
+
a
|
|
95
|
+
] })
|
|
96
|
+
] }) });
|
|
97
|
+
}, _ = ({ message: r = "Something went wrong.", children: n }) => /* @__PURE__ */ e.jsx(x, { iconComponent: w, message: r, variant: "error", children: n }), I = () => {
|
|
98
|
+
try {
|
|
99
|
+
window.location.reload();
|
|
100
|
+
} catch {
|
|
101
|
+
console.warn("Page reload prevented in test environment");
|
|
102
|
+
}
|
|
103
|
+
}, $ = ({ error: r, onRetry: n = I }) => /* @__PURE__ */ e.jsx(_, { children: /* @__PURE__ */ e.jsxs(c, { align: "center", className: "mt-8", direction: "col", children: [
|
|
104
|
+
/* @__PURE__ */ e.jsx(h, { className: "mb-8 p-4", variant: "muted", width: "full", children: /* @__PURE__ */ e.jsx(u, { align: "center", size: "xs", variant: "inherit", children: r.message || "Unknown error occurred" }) }),
|
|
105
|
+
/* @__PURE__ */ e.jsx(m, { icon: /* @__PURE__ */ e.jsx(C, {}), onClick: n, variant: "primary", children: "Reload" })
|
|
106
|
+
] }) }), L = (r) => /* @__PURE__ */ e.jsx(j, { className: "text-info", "data-testid": "icon", ...r }), q = ({
|
|
107
|
+
iconComponent: r,
|
|
108
|
+
message: n,
|
|
109
|
+
containerClassName: s,
|
|
110
|
+
iconSize: a = "5xl",
|
|
111
|
+
fullScreen: t = !1,
|
|
112
|
+
iconClassName: i
|
|
113
|
+
}) => {
|
|
114
|
+
const l = r || L;
|
|
115
|
+
return /* @__PURE__ */ e.jsx(c, { className: d("w-full h-full", t && "h-screen", s), children: /* @__PURE__ */ e.jsx(
|
|
116
|
+
x,
|
|
117
|
+
{
|
|
118
|
+
iconClassName: d("text-info", i),
|
|
119
|
+
iconComponent: l,
|
|
120
|
+
iconSize: a,
|
|
121
|
+
message: n
|
|
122
|
+
}
|
|
123
|
+
) });
|
|
124
|
+
}, H = ({
|
|
125
|
+
onBack: r,
|
|
126
|
+
message: n = "404: Not found",
|
|
127
|
+
backIcon: s = y,
|
|
128
|
+
backLabel: a = "Back"
|
|
129
|
+
}) => {
|
|
130
|
+
const t = s;
|
|
131
|
+
return /* @__PURE__ */ e.jsx(x, { iconComponent: N, message: n, variant: "warning", children: /* @__PURE__ */ e.jsx(c, { align: "center", className: "mt-8", direction: "col", children: r && /* @__PURE__ */ e.jsx(m, { icon: /* @__PURE__ */ e.jsx(t, {}), onClick: r, variant: "primary", children: a }) }) });
|
|
132
|
+
};
|
|
133
|
+
export {
|
|
134
|
+
$ as E,
|
|
135
|
+
x as I,
|
|
136
|
+
q as P,
|
|
137
|
+
_ as a,
|
|
138
|
+
H as b
|
|
139
|
+
};
|