@still-forest/canopy 0.27.0 → 0.28.1

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.
@@ -0,0 +1,29 @@
1
+ import { j as r } from "./jsx-runtime.js";
2
+ import { c as t, B as a } from "./calendar.js";
3
+ import "react";
4
+ import { F as n, B as i } from "./Layout2.js";
5
+ import { C as c } from "./Code.js";
6
+ import "./Heading.js";
7
+ import { E as s } from "./PageNotFound.js";
8
+ /**
9
+ * @license lucide-react v0.525.0 - ISC
10
+ *
11
+ * This source code is licensed under the ISC license.
12
+ * See the LICENSE file in the root directory of this source tree.
13
+ */
14
+ const l = [
15
+ ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
16
+ ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
17
+ ], m = t("rotate-ccw", l), d = () => {
18
+ try {
19
+ window.location.reload();
20
+ } catch {
21
+ console.warn("Page reload prevented in test environment");
22
+ }
23
+ }, w = ({ error: e, onRetry: o = d }) => /* @__PURE__ */ r.jsx(s, { children: /* @__PURE__ */ r.jsxs(n, { align: "center", className: "mt-8", direction: "col", children: [
24
+ /* @__PURE__ */ r.jsx(i, { className: "mb-8 p-4", variant: "muted", width: "full", children: /* @__PURE__ */ r.jsx(c, { align: "center", size: "xs", variant: "inherit", children: e.message || "Unknown error occurred" }) }),
25
+ /* @__PURE__ */ r.jsx(a, { icon: /* @__PURE__ */ r.jsx(m, {}), onClick: o, variant: "primary", children: "Reload" })
26
+ ] }) });
27
+ export {
28
+ w as E
29
+ };
@@ -1,10 +1,9 @@
1
1
  import { j as e } from "./jsx-runtime.js";
2
2
  import { c, B as l } from "./calendar.js";
3
3
  import "react";
4
- import { F as o, B as d } from "./Layout2.js";
5
- import { C as m } from "./Code.js";
6
- import { H as h } from "./Heading.js";
7
- import { c as x } from "./index2.js";
4
+ import { F as r } from "./Layout2.js";
5
+ import { H as d } from "./Heading.js";
6
+ import { c as m } from "./index2.js";
8
7
  /**
9
8
  * @license lucide-react v0.525.0 - ISC
10
9
  *
@@ -15,25 +14,25 @@ const u = [
15
14
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
16
15
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
17
16
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
18
- ], p = c("circle-x", u);
17
+ ], x = c("circle-x", u);
19
18
  /**
20
19
  * @license lucide-react v0.525.0 - ISC
21
20
  *
22
21
  * This source code is licensed under the ISC license.
23
22
  * See the LICENSE file in the root directory of this source tree.
24
23
  */
25
- const f = [
24
+ const h = [
26
25
  ["path", { d: "M12 17h.01", key: "p32p05" }],
27
26
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z", key: "1mlx9k" }],
28
27
  ["path", { d: "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3", key: "mhlwft" }]
29
- ], j = c("file-question-mark", f);
28
+ ], p = c("file-question-mark", h);
30
29
  /**
31
30
  * @license lucide-react v0.525.0 - ISC
32
31
  *
33
32
  * This source code is licensed under the ISC license.
34
33
  * See the LICENSE file in the root directory of this source tree.
35
34
  */
36
- const y = [
35
+ const f = [
37
36
  ["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
38
37
  [
39
38
  "path",
@@ -42,66 +41,46 @@ const y = [
42
41
  key: "1d0kgt"
43
42
  }
44
43
  ]
45
- ], k = c("house", y);
46
- /**
47
- * @license lucide-react v0.525.0 - ISC
48
- *
49
- * This source code is licensed under the ISC license.
50
- * See the LICENSE file in the root directory of this source tree.
51
- */
52
- const w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], g = c("loader-circle", w);
44
+ ], j = c("house", f);
53
45
  /**
54
46
  * @license lucide-react v0.525.0 - ISC
55
47
  *
56
48
  * This source code is licensed under the ISC license.
57
49
  * See the LICENSE file in the root directory of this source tree.
58
50
  */
59
- const N = [
60
- ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
61
- ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
62
- ], v = c("rotate-ccw", N), a = ({ variant: n, iconComponent: t, message: r, children: i }) => {
63
- if (!t && !r && !i)
64
- return /* @__PURE__ */ e.jsx(o, { align: "center", className: "h-full w-full", justify: "center", children: "Content missing" });
51
+ const y = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], k = c("loader-circle", y), i = ({ variant: n, iconComponent: t, message: o, children: a }) => {
52
+ if (!t && !o && !a)
53
+ return /* @__PURE__ */ e.jsx(r, { align: "center", className: "h-full w-full", justify: "center", children: "Content missing" });
65
54
  const s = t || null;
66
- return /* @__PURE__ */ e.jsx(o, { align: "center", className: "h-full w-full", justify: "center", children: /* @__PURE__ */ e.jsxs(o, { direction: "col", justify: "center", children: [
67
- s && /* @__PURE__ */ e.jsx(o, { align: "center", className: "my-6", gapX: "4", justify: "center", children: /* @__PURE__ */ e.jsx(
55
+ return /* @__PURE__ */ e.jsx(r, { align: "center", className: "h-full w-full", justify: "center", children: /* @__PURE__ */ e.jsxs(r, { direction: "col", justify: "center", children: [
56
+ s && /* @__PURE__ */ e.jsx(r, { align: "center", className: "my-6", gapX: "4", justify: "center", children: /* @__PURE__ */ e.jsx(
68
57
  s,
69
58
  {
70
- "aria-hidden": !!r,
71
- "aria-label": r ? void 0 : `${n || "info"} icon`,
72
- className: x(
59
+ "aria-hidden": !!o,
60
+ "aria-label": o ? void 0 : `${n || "info"} icon`,
61
+ className: m(
73
62
  n === "error" && "text-destructive",
74
63
  n === "success" && "text-success",
75
64
  n === "warning" && "text-warning",
76
65
  n === "info" && "text-info"
77
66
  ),
78
67
  "data-testid": "icon",
79
- role: r ? void 0 : "img",
68
+ role: o ? void 0 : "img",
80
69
  size: 128
81
70
  }
82
71
  ) }),
83
- /* @__PURE__ */ e.jsxs(o, { className: "max-w-[500px]", direction: "col", justify: "center", children: [
84
- r ? /* @__PURE__ */ e.jsx(h, { align: "center", level: "4", weight: "normal", children: r }) : null,
85
- i
72
+ /* @__PURE__ */ e.jsxs(r, { className: "max-w-[500px]", direction: "col", justify: "center", children: [
73
+ o ? /* @__PURE__ */ e.jsx(d, { align: "center", level: "4", weight: "normal", children: o }) : null,
74
+ a
86
75
  ] })
87
76
  ] }) });
88
- }, C = ({ message: n = "Something went wrong.", children: t }) => /* @__PURE__ */ e.jsx(a, { iconComponent: p, message: n, variant: "error", children: t }), _ = () => {
89
- try {
90
- window.location.reload();
91
- } catch {
92
- console.warn("Page reload prevented in test environment");
93
- }
94
- }, E = ({ error: n, onRetry: t = _ }) => /* @__PURE__ */ e.jsx(C, { children: /* @__PURE__ */ e.jsxs(o, { align: "center", className: "mt-8", direction: "col", children: [
95
- /* @__PURE__ */ e.jsx(d, { className: "mb-8 p-4", variant: "muted", width: "full", children: /* @__PURE__ */ e.jsx(m, { align: "center", size: "xs", variant: "inherit", children: n.message || "Unknown error occurred" }) }),
96
- /* @__PURE__ */ e.jsx(l, { icon: /* @__PURE__ */ e.jsx(v, {}), onClick: t, variant: "primary", children: "Reload" })
97
- ] }) }), M = () => /* @__PURE__ */ e.jsx(g, { className: "animate-spin text-info", "data-testid": "icon", size: 64 }), L = ({ iconComponent: n, message: t }) => {
98
- const r = n || M;
99
- return /* @__PURE__ */ e.jsx(a, { iconComponent: r, message: t });
100
- }, P = ({ goHome: n, message: t = "404: Not found" }) => /* @__PURE__ */ e.jsx(a, { iconComponent: j, message: t, variant: "warning", children: /* @__PURE__ */ e.jsx(o, { align: "center", className: "mt-8", direction: "col", children: n && /* @__PURE__ */ e.jsx(l, { icon: /* @__PURE__ */ e.jsx(k, {}), onClick: n, variant: "primary", children: "Home" }) }) });
77
+ }, M = ({ message: n = "Something went wrong.", children: t }) => /* @__PURE__ */ e.jsx(i, { iconComponent: x, message: n, variant: "error", children: t }), g = () => /* @__PURE__ */ e.jsx(k, { className: "animate-spin text-info", "data-testid": "icon", size: 64 }), I = ({ iconComponent: n, message: t }) => {
78
+ const o = n || g;
79
+ return /* @__PURE__ */ e.jsx(i, { iconComponent: o, message: t });
80
+ }, H = ({ goHome: n, message: t = "404: Not found" }) => /* @__PURE__ */ e.jsx(i, { iconComponent: p, message: t, variant: "warning", children: /* @__PURE__ */ e.jsx(r, { align: "center", className: "mt-8", direction: "col", children: n && /* @__PURE__ */ e.jsx(l, { icon: /* @__PURE__ */ e.jsx(j, {}), onClick: n, variant: "primary", children: "Home" }) }) });
101
81
  export {
102
- E,
103
- a as I,
104
- L as P,
105
- C as a,
106
- P as b
82
+ M as E,
83
+ i as I,
84
+ I as P,
85
+ H as a
107
86
  };