@still-forest/canopy 0.25.1 → 0.26.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/Code.js +1 -1
- package/dist/Heading.js +15 -14
- package/dist/Layout2.js +4 -3
- package/dist/PageNotFound.js +16 -15
- package/dist/Paragraph.js +4 -3
- package/dist/SidebarLayout.js +5 -4
- package/dist/Textarea.js +25 -24
- package/dist/calendar.js +6 -5
- package/dist/index.d.ts +3 -0
- package/dist/index.js +102 -100
- package/dist/{utils.js → index2.js} +368 -406
- package/dist/jsx-runtime.js +40 -0
- package/dist/popover.js +22 -21
- package/dist/utilities.d.ts +5 -0
- package/dist/utilities.js +4 -0
- package/package.json +6 -1
package/dist/index.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { j as a
|
|
1
|
+
import { j as a } from "./jsx-runtime.js";
|
|
2
|
+
import { c as l } from "./index2.js";
|
|
2
3
|
import { g as Me, u as W, h as Z, i as Se, j as Ee, k as $e } from "./Textarea.js";
|
|
3
|
-
import { C as
|
|
4
|
+
import { C as Ka, a as qa, b as Ua, D as Xa, I as Ya, c as Ja, L as Qa, N as Wa, R as Za, d as er, e as tr, S as ar, f as rr, T as or } from "./Textarea.js";
|
|
4
5
|
import * as b from "react";
|
|
5
6
|
import f, { Fragment as De, useState as ze, useEffect as Oe, useMemo as Le } from "react";
|
|
6
7
|
import { c as G, b as P, u as V, P as h, d as _, e as ee, q as Be, l as Ge, r as Ve, m as Fe, n as He, T as Ke, o as qe, p as Ue, O as Xe } from "./popover.js";
|
|
7
8
|
import { c as w, u as te, e as F, S as ae, C as re, f as Ye, g as Je } from "./calendar.js";
|
|
8
|
-
import { B as
|
|
9
|
+
import { B as sr, a as ir } from "./calendar.js";
|
|
9
10
|
import { X as Qe, c as We } from "./SidebarLayout.js";
|
|
10
|
-
import { M as
|
|
11
|
-
import { E as
|
|
12
|
-
import { B as
|
|
13
|
-
import { C as
|
|
14
|
-
import { H as
|
|
15
|
-
import { P as
|
|
11
|
+
import { M as cr, P as dr, a as ur, b as pr, S as mr, T as gr, d as br, e as xr, f as fr, g as vr, h as hr, i as yr, j as jr } from "./SidebarLayout.js";
|
|
12
|
+
import { E as Cr, a as wr, I as kr, P as Ar, b as _r } from "./PageNotFound.js";
|
|
13
|
+
import { B as Tr, C as Rr, F as Pr, a as Mr, G as Sr, H as Er, L as $r } from "./Layout2.js";
|
|
14
|
+
import { C as zr } from "./Code.js";
|
|
15
|
+
import { H as Lr, T as Br } from "./Heading.js";
|
|
16
|
+
import { P as Vr } from "./Paragraph.js";
|
|
16
17
|
/**
|
|
17
18
|
* @license lucide-react v0.525.0 - ISC
|
|
18
19
|
*
|
|
@@ -199,7 +200,7 @@ var bt = b.forwardRef((e, t) => {
|
|
|
199
200
|
function q(e) {
|
|
200
201
|
return e ? "open" : "closed";
|
|
201
202
|
}
|
|
202
|
-
var xt = ne, ft = ie, vt = le, v = "Accordion", ht = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [U, yt, jt] = Me(v), [S,
|
|
203
|
+
var xt = ne, ft = ie, vt = le, v = "Accordion", ht = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [U, yt, jt] = Me(v), [S, ha] = G(v, [
|
|
203
204
|
jt,
|
|
204
205
|
oe
|
|
205
206
|
]), X = oe(), ce = f.forwardRef(
|
|
@@ -410,7 +411,7 @@ ve.displayName = fe;
|
|
|
410
411
|
function he(e) {
|
|
411
412
|
return e ? "open" : "closed";
|
|
412
413
|
}
|
|
413
|
-
var It = ce, Tt = me, Rt = be, Pt = xe, Mt = ve, $ = "Tabs", [St,
|
|
414
|
+
var It = ce, Tt = me, Rt = be, Pt = xe, Mt = ve, $ = "Tabs", [St, ya] = G($, [
|
|
414
415
|
Z
|
|
415
416
|
]), ye = Z(), [Et, J] = St($), je = b.forwardRef(
|
|
416
417
|
(e, t) => {
|
|
@@ -553,10 +554,10 @@ function Te(e, t) {
|
|
|
553
554
|
return `${e}-content-${t}`;
|
|
554
555
|
}
|
|
555
556
|
var $t = je, Dt = Ce, zt = ke, Ot = _e;
|
|
556
|
-
function
|
|
557
|
+
function ja({ ...e }) {
|
|
557
558
|
return /* @__PURE__ */ a.jsx(It, { "data-slot": "accordion", ...e });
|
|
558
559
|
}
|
|
559
|
-
function
|
|
560
|
+
function Na({ className: e, ...t }) {
|
|
560
561
|
return /* @__PURE__ */ a.jsx(
|
|
561
562
|
Tt,
|
|
562
563
|
{
|
|
@@ -566,7 +567,7 @@ function ja({ className: e, ...t }) {
|
|
|
566
567
|
}
|
|
567
568
|
);
|
|
568
569
|
}
|
|
569
|
-
function
|
|
570
|
+
function Ca({ className: e, children: t, ...o }) {
|
|
570
571
|
return /* @__PURE__ */ a.jsx(Rt, { className: "flex", children: /* @__PURE__ */ a.jsxs(
|
|
571
572
|
Pt,
|
|
572
573
|
{
|
|
@@ -583,7 +584,7 @@ function Na({ className: e, children: t, ...o }) {
|
|
|
583
584
|
}
|
|
584
585
|
) });
|
|
585
586
|
}
|
|
586
|
-
function
|
|
587
|
+
function wa({ className: e, children: t, ...o }) {
|
|
587
588
|
return /* @__PURE__ */ a.jsx(
|
|
588
589
|
Mt,
|
|
589
590
|
{
|
|
@@ -638,7 +639,7 @@ const Ft = {
|
|
|
638
639
|
info: lt,
|
|
639
640
|
error: dt,
|
|
640
641
|
warning: pt
|
|
641
|
-
},
|
|
642
|
+
}, ka = ({ type: e, title: t, message: o, className: n = "" }) => {
|
|
642
643
|
const s = Ft[e];
|
|
643
644
|
return /* @__PURE__ */ a.jsxs(Bt, { className: n, variant: e, children: [
|
|
644
645
|
/* @__PURE__ */ a.jsx(s, { className: "h-4 w-4", "data-testid": `alert-icon-${e}` }),
|
|
@@ -830,7 +831,7 @@ const qt = F(
|
|
|
830
831
|
}
|
|
831
832
|
]
|
|
832
833
|
}
|
|
833
|
-
),
|
|
834
|
+
), Aa = ({ label: e, onClick: t, className: o, variant: n = "default", color: s }) => {
|
|
834
835
|
if (s && !(n === "default" || n === "outline"))
|
|
835
836
|
throw new Error(
|
|
836
837
|
`Color ${s} is not allowed for variant '${n}'. Only default and outline variants support color.`
|
|
@@ -902,7 +903,7 @@ function Qt({ children: e, className: t, ...o }) {
|
|
|
902
903
|
}
|
|
903
904
|
);
|
|
904
905
|
}
|
|
905
|
-
const Wt = ({ to: e, label: t }) => /* @__PURE__ */ a.jsx(Re, { className: "font-display", href: e, children: t }), Zt = ({ label: e }) => /* @__PURE__ */ a.jsx(Jt, { className: "font-display", children: e }),
|
|
906
|
+
const Wt = ({ to: e, label: t }) => /* @__PURE__ */ a.jsx(Re, { className: "font-display", href: e, children: t }), Zt = ({ label: e }) => /* @__PURE__ */ a.jsx(Jt, { className: "font-display", children: e }), _a = ({ breadcrumbs: e, linkComponent: t, pageComponent: o, className: n }) => {
|
|
906
907
|
const s = t || Wt, i = o || Zt;
|
|
907
908
|
return /* @__PURE__ */ a.jsx(Ut, { className: l("my-4", n), children: /* @__PURE__ */ a.jsx(Xt, { children: e.map(({ to: r, label: c }, u) => /* @__PURE__ */ a.jsxs(De, { children: [
|
|
908
909
|
/* @__PURE__ */ a.jsxs(Yt, { children: [
|
|
@@ -912,7 +913,7 @@ const Wt = ({ to: e, label: t }) => /* @__PURE__ */ a.jsx(Re, { className: "font
|
|
|
912
913
|
u < e.length - 1 && /* @__PURE__ */ a.jsx(Qt, {})
|
|
913
914
|
] }, c)) }) });
|
|
914
915
|
};
|
|
915
|
-
function
|
|
916
|
+
function Ia({ className: e, ...t }) {
|
|
916
917
|
return /* @__PURE__ */ a.jsx(
|
|
917
918
|
"div",
|
|
918
919
|
{
|
|
@@ -922,7 +923,7 @@ function _a({ className: e, ...t }) {
|
|
|
922
923
|
}
|
|
923
924
|
);
|
|
924
925
|
}
|
|
925
|
-
function
|
|
926
|
+
function Ta({ className: e, ...t }) {
|
|
926
927
|
return /* @__PURE__ */ a.jsx(
|
|
927
928
|
"div",
|
|
928
929
|
{
|
|
@@ -935,13 +936,13 @@ function Ia({ className: e, ...t }) {
|
|
|
935
936
|
}
|
|
936
937
|
);
|
|
937
938
|
}
|
|
938
|
-
function
|
|
939
|
+
function Ra({ className: e, ...t }) {
|
|
939
940
|
return /* @__PURE__ */ a.jsx("div", { className: l("font-semibold leading-none", e), "data-slot": "card-title", ...t });
|
|
940
941
|
}
|
|
941
|
-
function
|
|
942
|
+
function Pa({ className: e, ...t }) {
|
|
942
943
|
return /* @__PURE__ */ a.jsx("div", { className: l("text-muted-foreground text-sm", e), "data-slot": "card-description", ...t });
|
|
943
944
|
}
|
|
944
|
-
function
|
|
945
|
+
function Ma({ className: e, ...t }) {
|
|
945
946
|
return /* @__PURE__ */ a.jsx(
|
|
946
947
|
"div",
|
|
947
948
|
{
|
|
@@ -951,10 +952,10 @@ function Pa({ className: e, ...t }) {
|
|
|
951
952
|
}
|
|
952
953
|
);
|
|
953
954
|
}
|
|
954
|
-
function
|
|
955
|
+
function Sa({ className: e, ...t }) {
|
|
955
956
|
return /* @__PURE__ */ a.jsx("div", { className: l("px-6", e), "data-slot": "card-content", ...t });
|
|
956
957
|
}
|
|
957
|
-
function
|
|
958
|
+
function Ea({ className: e, ...t }) {
|
|
958
959
|
return /* @__PURE__ */ a.jsx("div", { className: l("flex items-center px-6 [.border-t]:pt-6", e), "data-slot": "card-footer", ...t });
|
|
959
960
|
}
|
|
960
961
|
function ea({ ...e }) {
|
|
@@ -1032,7 +1033,7 @@ function ia({ className: e, ...t }) {
|
|
|
1032
1033
|
}
|
|
1033
1034
|
);
|
|
1034
1035
|
}
|
|
1035
|
-
const
|
|
1036
|
+
const $a = ({ trigger: e, children: t, title: o, description: n, open: s, onOpenChange: i }) => {
|
|
1036
1037
|
const r = s !== void 0, [c, u] = ze(r ? s : !1);
|
|
1037
1038
|
if (Oe(() => {
|
|
1038
1039
|
r && u(s);
|
|
@@ -1132,7 +1133,7 @@ function Q({ className: e, ...t }) {
|
|
|
1132
1133
|
}
|
|
1133
1134
|
);
|
|
1134
1135
|
}
|
|
1135
|
-
const
|
|
1136
|
+
const Da = ({ pageCount: e, currentPage: t, onChange: o }) => {
|
|
1136
1137
|
const n = Math.max(1, e), s = Math.max(1, Math.min(t, n)), i = Le(() => n === 1 ? [1] : s <= 3 ? Array.from({ length: Math.min(3, n) }, (r, c) => c + 1) : s >= n - 2 ? Array.from(
|
|
1137
1138
|
{ length: Math.min(3, n) },
|
|
1138
1139
|
(r, c) => n - Math.min(3, n) + c + 1
|
|
@@ -1213,7 +1214,7 @@ const $a = ({ pageCount: e, currentPage: t, onChange: o }) => {
|
|
|
1213
1214
|
}
|
|
1214
1215
|
) })
|
|
1215
1216
|
] }) });
|
|
1216
|
-
},
|
|
1217
|
+
}, za = ({ className: e, orientation: t = "horizontal", gap: o, ...n }) => {
|
|
1217
1218
|
const s = t === "vertical", r = o ?? (s ? "2" : "4");
|
|
1218
1219
|
return /* @__PURE__ */ a.jsx(
|
|
1219
1220
|
We,
|
|
@@ -1265,13 +1266,13 @@ const $a = ({ pageCount: e, currentPage: t, onChange: o }) => {
|
|
|
1265
1266
|
}
|
|
1266
1267
|
);
|
|
1267
1268
|
};
|
|
1268
|
-
function
|
|
1269
|
+
function Oa({ className: e, ...t }) {
|
|
1269
1270
|
return /* @__PURE__ */ a.jsx("div", { className: l("animate-pulse rounded-md bg-accent", e), "data-slot": "skeleton", ...t });
|
|
1270
1271
|
}
|
|
1271
|
-
function
|
|
1272
|
+
function La({ className: e, ...t }) {
|
|
1272
1273
|
return /* @__PURE__ */ a.jsx($t, { className: l("flex flex-col gap-2", e), "data-slot": "tabs", ...t });
|
|
1273
1274
|
}
|
|
1274
|
-
function
|
|
1275
|
+
function Ba({ className: e, ...t }) {
|
|
1275
1276
|
return /* @__PURE__ */ a.jsx(
|
|
1276
1277
|
Dt,
|
|
1277
1278
|
{
|
|
@@ -1284,7 +1285,7 @@ function La({ className: e, ...t }) {
|
|
|
1284
1285
|
}
|
|
1285
1286
|
);
|
|
1286
1287
|
}
|
|
1287
|
-
function
|
|
1288
|
+
function Ga({ className: e, ...t }) {
|
|
1288
1289
|
return /* @__PURE__ */ a.jsx(
|
|
1289
1290
|
zt,
|
|
1290
1291
|
{
|
|
@@ -1297,75 +1298,76 @@ function Ba({ className: e, ...t }) {
|
|
|
1297
1298
|
}
|
|
1298
1299
|
);
|
|
1299
1300
|
}
|
|
1300
|
-
function
|
|
1301
|
+
function Va({ className: e, ...t }) {
|
|
1301
1302
|
return /* @__PURE__ */ a.jsx(Ot, { className: l("flex-1 outline-none", e), "data-slot": "tabs-content", ...t });
|
|
1302
1303
|
}
|
|
1303
1304
|
export {
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1305
|
+
ja as Accordion,
|
|
1306
|
+
wa as AccordionContent,
|
|
1307
|
+
Na as AccordionItem,
|
|
1308
|
+
Ca as AccordionTrigger,
|
|
1309
|
+
ka as Alert,
|
|
1310
|
+
Aa as Badge,
|
|
1311
|
+
Tr as Box,
|
|
1312
|
+
_a as Breadcrumbs,
|
|
1313
|
+
sr as Button,
|
|
1314
|
+
ir as ButtonGroup,
|
|
1315
|
+
Ia as Card,
|
|
1316
|
+
Ma as CardAction,
|
|
1317
|
+
Sa as CardContent,
|
|
1318
|
+
Pa as CardDescription,
|
|
1319
|
+
Ea as CardFooter,
|
|
1320
|
+
Ta as CardHeader,
|
|
1321
|
+
Ra as CardTitle,
|
|
1322
|
+
Ka as Checkbox,
|
|
1323
|
+
zr as Code,
|
|
1324
|
+
Rr as Container,
|
|
1325
|
+
qa as DateInput,
|
|
1326
|
+
Ua as DatePicker,
|
|
1327
|
+
Xa as DeleteButton,
|
|
1328
|
+
Cr as ErrorFallback,
|
|
1329
|
+
wr as ErrorOverlay,
|
|
1330
|
+
Pr as Flex,
|
|
1331
|
+
Mr as Footer,
|
|
1332
|
+
Sr as Grid,
|
|
1333
|
+
Er as Header,
|
|
1334
|
+
Lr as Heading,
|
|
1335
|
+
Ya as InputError,
|
|
1336
|
+
Ja as InputGroup,
|
|
1337
|
+
kr as Interstitial,
|
|
1338
|
+
Qa as Label,
|
|
1339
|
+
$r as Layout,
|
|
1340
|
+
cr as MenuItemText,
|
|
1341
|
+
$a as Modal,
|
|
1342
|
+
Wa as NumberInput,
|
|
1343
|
+
Ar as PageLoader,
|
|
1344
|
+
_r as PageNotFound,
|
|
1345
|
+
Da as Pagination,
|
|
1346
|
+
Vr as Paragraph,
|
|
1347
|
+
dr as Popover,
|
|
1348
|
+
Za as RadioSelect,
|
|
1349
|
+
er as SelectInput,
|
|
1350
|
+
tr as SelectPicker,
|
|
1351
|
+
za as Separator,
|
|
1352
|
+
ur as Sidebar,
|
|
1353
|
+
pr as SidebarLayout,
|
|
1354
|
+
mr as SidebarTrigger,
|
|
1355
|
+
Oa as Skeleton,
|
|
1356
|
+
ar as SubmitButton,
|
|
1357
|
+
gr as Table,
|
|
1358
|
+
br as TableBody,
|
|
1359
|
+
xr as TableCaption,
|
|
1360
|
+
fr as TableCell,
|
|
1361
|
+
vr as TableHead,
|
|
1362
|
+
hr as TableHeader,
|
|
1363
|
+
yr as TableRow,
|
|
1364
|
+
La as Tabs,
|
|
1365
|
+
Va as TabsContent,
|
|
1366
|
+
Ba as TabsList,
|
|
1367
|
+
Ga as TabsTrigger,
|
|
1368
|
+
Br as Text,
|
|
1369
|
+
rr as TextInput,
|
|
1370
|
+
or as Textarea,
|
|
1371
|
+
jr as Tooltip,
|
|
1372
|
+
l as cn
|
|
1371
1373
|
};
|