@clasing/ui 2.9.1 → 2.9.3
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/{button-DSpGxL2e.js → button-CKrOlPSD.js} +17 -19
- package/dist/collapsible-DezttNhr.js +48 -0
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/breadcrumb.js +17 -4
- package/dist/components/button-group.js +29 -5
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/collapsible.js +4 -46
- package/dist/components/dropdown-menu.js +16 -311
- package/dist/components/field.d.ts +26 -0
- package/dist/components/field.js +66 -0
- package/dist/components/input.js +1 -1
- package/dist/components/pagination.d.ts +38 -0
- package/dist/components/pagination.js +107 -0
- package/dist/components/phone-input.js +1 -1
- package/dist/components/radio-group.d.ts +5 -0
- package/dist/components/radio-group.js +45 -0
- package/dist/components/select.js +10 -2
- package/dist/components/sheet.js +9 -164
- package/dist/components/sidebar.d.ts +83 -0
- package/dist/components/sidebar.js +820 -0
- package/dist/components/skeleton.js +2 -12
- package/dist/components/tabs.d.ts +13 -0
- package/dist/components/tabs.js +81 -0
- package/dist/components/tree.d.ts +37 -0
- package/dist/components/tree.js +312 -0
- package/dist/dropdown-menu-VOZwAyVb.js +313 -0
- package/dist/entries/field.d.ts +1 -0
- package/dist/entries/pagination.d.ts +1 -0
- package/dist/entries/radio-group.d.ts +1 -0
- package/dist/entries/sidebar.d.ts +2 -0
- package/dist/entries/tabs.d.ts +1 -0
- package/dist/entries/tree.d.ts +1 -0
- package/dist/hooks/useIsMobile.d.ts +2 -0
- package/dist/{input-D9gqZjs0.js → input-BlcRuIEB.js} +1 -1
- package/dist/sheet-CwXaadwy.js +166 -0
- package/dist/skeleton-DcjuJ5_d.js +14 -0
- package/dist/ui.css +25 -54
- package/package.json +31 -4
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { j as a, c as r } from "../index-C_XDkVGm.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { L as d } from "../label-CnZHCbRc.js";
|
|
4
|
+
const i = ({ className: s, ...e }) => /* @__PURE__ */ a.jsx(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
"data-slot": "field-group",
|
|
8
|
+
className: r("flex flex-col gap-4", s),
|
|
9
|
+
...e
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
i.displayName = "FieldGroup";
|
|
13
|
+
const c = ({ className: s, ...e }) => /* @__PURE__ */ a.jsx(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
"data-slot": "field",
|
|
17
|
+
className: r("flex flex-col gap-1.5", s),
|
|
18
|
+
...e
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
c.displayName = "Field";
|
|
22
|
+
const m = t.forwardRef(({ className: s, ...e }, l) => /* @__PURE__ */ a.jsx(
|
|
23
|
+
d,
|
|
24
|
+
{
|
|
25
|
+
ref: l,
|
|
26
|
+
"data-slot": "field-label",
|
|
27
|
+
className: r("label-md font-medium text-foreground", s),
|
|
28
|
+
...e
|
|
29
|
+
}
|
|
30
|
+
));
|
|
31
|
+
m.displayName = "FieldLabel";
|
|
32
|
+
const p = ({
|
|
33
|
+
className: s,
|
|
34
|
+
...e
|
|
35
|
+
}) => /* @__PURE__ */ a.jsx(
|
|
36
|
+
"p",
|
|
37
|
+
{
|
|
38
|
+
"data-slot": "field-description",
|
|
39
|
+
className: r("paragraph-sm text-muted-foreground", s),
|
|
40
|
+
...e
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
p.displayName = "FieldDescription";
|
|
44
|
+
const f = {
|
|
45
|
+
error: "text-destructive-foreground",
|
|
46
|
+
success: "text-success-foreground"
|
|
47
|
+
}, n = t.forwardRef(
|
|
48
|
+
({ className: s, variant: e = "error", ...l }, o) => /* @__PURE__ */ a.jsx(
|
|
49
|
+
"p",
|
|
50
|
+
{
|
|
51
|
+
ref: o,
|
|
52
|
+
"data-slot": "field-message",
|
|
53
|
+
className: r("paragraph-sm", f[e], s),
|
|
54
|
+
role: e === "error" ? "alert" : void 0,
|
|
55
|
+
...l
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
);
|
|
59
|
+
n.displayName = "FieldMessage";
|
|
60
|
+
export {
|
|
61
|
+
c as Field,
|
|
62
|
+
p as FieldDescription,
|
|
63
|
+
i as FieldGroup,
|
|
64
|
+
m as FieldLabel,
|
|
65
|
+
n as FieldMessage
|
|
66
|
+
};
|
package/dist/components/input.js
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Pagination: {
|
|
3
|
+
({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
declare const PaginationContent: {
|
|
7
|
+
({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
declare const PaginationItem: {
|
|
11
|
+
({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
interface PaginationLinkProps extends React.ComponentProps<'a'> {
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const PaginationLink: {
|
|
19
|
+
({ className, isActive, asChild, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
interface PaginationPreviousProps extends PaginationLinkProps {
|
|
23
|
+
}
|
|
24
|
+
declare const PaginationPrevious: {
|
|
25
|
+
({ className, href, ...props }: PaginationPreviousProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
interface PaginationNextProps extends PaginationLinkProps {
|
|
29
|
+
}
|
|
30
|
+
declare const PaginationNext: {
|
|
31
|
+
({ className, href, ...props }: PaginationNextProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
declare const PaginationEllipsis: {
|
|
35
|
+
({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { j as t, c as i } from "../index-C_XDkVGm.js";
|
|
2
|
+
import { DotsThreeIcon as l, CaretRightIcon as c, CaretLeftIcon as m } from "@phosphor-icons/react";
|
|
3
|
+
import { Slot as p } from "@radix-ui/react-slot";
|
|
4
|
+
const d = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx(
|
|
5
|
+
"nav",
|
|
6
|
+
{
|
|
7
|
+
"aria-label": "pagination",
|
|
8
|
+
className: i("mx-auto flex w-full justify-center", e),
|
|
9
|
+
...a
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
d.displayName = "Pagination";
|
|
13
|
+
const u = ({
|
|
14
|
+
className: e,
|
|
15
|
+
...a
|
|
16
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
17
|
+
"ul",
|
|
18
|
+
{
|
|
19
|
+
className: i("flex flex-row items-center gap-1", e),
|
|
20
|
+
...a
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
u.displayName = "PaginationContent";
|
|
24
|
+
const g = ({
|
|
25
|
+
className: e,
|
|
26
|
+
...a
|
|
27
|
+
}) => /* @__PURE__ */ t.jsx("li", { className: i("", e), ...a });
|
|
28
|
+
g.displayName = "PaginationItem";
|
|
29
|
+
const s = ({
|
|
30
|
+
className: e,
|
|
31
|
+
isActive: a,
|
|
32
|
+
asChild: n,
|
|
33
|
+
...o
|
|
34
|
+
}) => {
|
|
35
|
+
const r = n ? p : "a";
|
|
36
|
+
return /* @__PURE__ */ t.jsx(
|
|
37
|
+
r,
|
|
38
|
+
{
|
|
39
|
+
"data-slot": "pagination-link",
|
|
40
|
+
className: i(
|
|
41
|
+
`
|
|
42
|
+
flex size-9 items-center justify-center rounded-full label-md
|
|
43
|
+
font-medium focusable-item
|
|
44
|
+
transition-[color,background-color,box-shadow]
|
|
45
|
+
hover:bg-muted
|
|
46
|
+
disabled:pointer-events-none disabled:opacity-50
|
|
47
|
+
data-[active=true]:bg-primary
|
|
48
|
+
data-[active=true]:text-primary-foreground
|
|
49
|
+
data-[active=true]:shadow-xs
|
|
50
|
+
`,
|
|
51
|
+
e
|
|
52
|
+
),
|
|
53
|
+
"aria-current": a ? "page" : void 0,
|
|
54
|
+
"data-active": a,
|
|
55
|
+
...o
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
s.displayName = "PaginationLink";
|
|
60
|
+
const x = ({
|
|
61
|
+
className: e,
|
|
62
|
+
href: a,
|
|
63
|
+
...n
|
|
64
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
65
|
+
s,
|
|
66
|
+
{
|
|
67
|
+
href: a,
|
|
68
|
+
"aria-label": "Go to previous page",
|
|
69
|
+
className: i("gap-1 pr-3 pl-2.5", e),
|
|
70
|
+
...n,
|
|
71
|
+
children: /* @__PURE__ */ t.jsx(m, { className: "size-4" })
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
x.displayName = "PaginationPrevious";
|
|
75
|
+
const N = ({ className: e, href: a, ...n }) => /* @__PURE__ */ t.jsx(
|
|
76
|
+
s,
|
|
77
|
+
{
|
|
78
|
+
href: a,
|
|
79
|
+
"aria-label": "Go to next page",
|
|
80
|
+
className: i("gap-1 pr-2.5 pl-3", e),
|
|
81
|
+
...n,
|
|
82
|
+
children: /* @__PURE__ */ t.jsx(c, { className: "size-4" })
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
N.displayName = "PaginationNext";
|
|
86
|
+
const f = ({
|
|
87
|
+
className: e,
|
|
88
|
+
...a
|
|
89
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
90
|
+
"span",
|
|
91
|
+
{
|
|
92
|
+
"aria-hidden": !0,
|
|
93
|
+
className: i("flex size-9 items-center justify-center", e),
|
|
94
|
+
...a,
|
|
95
|
+
children: /* @__PURE__ */ t.jsx(l, { className: "size-4", weight: "bold" })
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
f.displayName = "PaginationEllipsis";
|
|
99
|
+
export {
|
|
100
|
+
d as Pagination,
|
|
101
|
+
u as PaginationContent,
|
|
102
|
+
f as PaginationEllipsis,
|
|
103
|
+
g as PaginationItem,
|
|
104
|
+
s as PaginationLink,
|
|
105
|
+
N as PaginationNext,
|
|
106
|
+
x as PaginationPrevious
|
|
107
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e, c as p } from "../index-C_XDkVGm.js";
|
|
2
2
|
import { C as O, d as A, f as F, b as L, c as D, e as N } from "../command-Cq3FhQXv.js";
|
|
3
|
-
import { I as M } from "../input-
|
|
3
|
+
import { I as M } from "../input-BlcRuIEB.js";
|
|
4
4
|
import { P as q, c as H, b as G } from "../popover-CLQxfbEi.js";
|
|
5
5
|
import { S as W } from "../scroll-area-BTNDZ-p2.js";
|
|
6
6
|
import { CaretDownIcon as $, CheckIcon as B } from "@phosphor-icons/react";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { j as a, c as t } from "../index-C_XDkVGm.js";
|
|
2
|
+
import { CircleIcon as d } from "@phosphor-icons/react";
|
|
3
|
+
import * as r from "@radix-ui/react-radio-group";
|
|
4
|
+
import * as s from "react";
|
|
5
|
+
const l = s.forwardRef(({ className: e, ...o }, i) => /* @__PURE__ */ a.jsx(
|
|
6
|
+
r.Root,
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "radio-group",
|
|
9
|
+
className: t("grid gap-3", e),
|
|
10
|
+
...o,
|
|
11
|
+
ref: i
|
|
12
|
+
}
|
|
13
|
+
));
|
|
14
|
+
l.displayName = r.Root.displayName;
|
|
15
|
+
const m = s.forwardRef(({ className: e, ...o }, i) => /* @__PURE__ */ a.jsx(
|
|
16
|
+
r.Item,
|
|
17
|
+
{
|
|
18
|
+
"data-slot": "radio-group-item",
|
|
19
|
+
ref: i,
|
|
20
|
+
className: t(
|
|
21
|
+
`
|
|
22
|
+
aspect-square size-4 shrink-0 rounded-full border border-input
|
|
23
|
+
text-primary focusable-item
|
|
24
|
+
disabled:cursor-not-allowed disabled:opacity-50
|
|
25
|
+
aria-invalid:border-destructive-foreground
|
|
26
|
+
dark:bg-input/30
|
|
27
|
+
`,
|
|
28
|
+
e
|
|
29
|
+
),
|
|
30
|
+
...o,
|
|
31
|
+
children: /* @__PURE__ */ a.jsx(
|
|
32
|
+
r.Indicator,
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "radio-group-indicator",
|
|
35
|
+
className: "flex items-center justify-center",
|
|
36
|
+
children: /* @__PURE__ */ a.jsx(d, { weight: "fill", className: "size-2" })
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
));
|
|
41
|
+
m.displayName = r.Item.displayName;
|
|
42
|
+
export {
|
|
43
|
+
l as RadioGroup,
|
|
44
|
+
m as RadioGroupItem
|
|
45
|
+
};
|
|
@@ -73,7 +73,7 @@ function b({
|
|
|
73
73
|
function v({
|
|
74
74
|
className: t,
|
|
75
75
|
children: a,
|
|
76
|
-
position: l = "
|
|
76
|
+
position: l = "item-aligned",
|
|
77
77
|
collisionPadding: o = 24,
|
|
78
78
|
...n
|
|
79
79
|
}) {
|
|
@@ -167,7 +167,15 @@ function y({
|
|
|
167
167
|
),
|
|
168
168
|
...l,
|
|
169
169
|
children: [
|
|
170
|
-
/* @__PURE__ */ e.jsx(
|
|
170
|
+
/* @__PURE__ */ e.jsx(
|
|
171
|
+
"span",
|
|
172
|
+
{
|
|
173
|
+
className: `\r
|
|
174
|
+
absolute right-2 flex size-3.5 items-center justify-center\r
|
|
175
|
+
`,
|
|
176
|
+
children: /* @__PURE__ */ e.jsx(s.ItemIndicator, { children: /* @__PURE__ */ e.jsx(i, { className: "size-4" }) })
|
|
177
|
+
}
|
|
178
|
+
),
|
|
171
179
|
/* @__PURE__ */ e.jsx(s.ItemText, { children: a })
|
|
172
180
|
]
|
|
173
181
|
}
|
package/dist/components/sheet.js
CHANGED
|
@@ -1,166 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as a from "@radix-ui/react-dialog";
|
|
3
|
-
import { XIcon as i } from "@phosphor-icons/react";
|
|
4
|
-
function f({ ...t }) {
|
|
5
|
-
return /* @__PURE__ */ e.jsx(a.Root, { "data-slot": "sheet", ...t });
|
|
6
|
-
}
|
|
7
|
-
function h({
|
|
8
|
-
...t
|
|
9
|
-
}) {
|
|
10
|
-
return /* @__PURE__ */ e.jsx(a.Trigger, { "data-slot": "sheet-trigger", ...t });
|
|
11
|
-
}
|
|
12
|
-
function m({
|
|
13
|
-
...t
|
|
14
|
-
}) {
|
|
15
|
-
return /* @__PURE__ */ e.jsx(a.Close, { "data-slot": "sheet-close", ...t });
|
|
16
|
-
}
|
|
17
|
-
function l({
|
|
18
|
-
...t
|
|
19
|
-
}) {
|
|
20
|
-
return /* @__PURE__ */ e.jsx(a.Portal, { "data-slot": "sheet-portal", ...t });
|
|
21
|
-
}
|
|
22
|
-
function d({
|
|
23
|
-
className: t,
|
|
24
|
-
...o
|
|
25
|
-
}) {
|
|
26
|
-
return /* @__PURE__ */ e.jsx(
|
|
27
|
-
a.Overlay,
|
|
28
|
-
{
|
|
29
|
-
"data-slot": "sheet-overlay",
|
|
30
|
-
className: s(
|
|
31
|
-
`
|
|
32
|
-
fixed inset-0 z-50 bg-black/50
|
|
33
|
-
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
34
|
-
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
35
|
-
`,
|
|
36
|
-
t
|
|
37
|
-
),
|
|
38
|
-
...o
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
function p({
|
|
43
|
-
className: t,
|
|
44
|
-
children: o,
|
|
45
|
-
side: n = "right",
|
|
46
|
-
...r
|
|
47
|
-
}) {
|
|
48
|
-
return /* @__PURE__ */ e.jsxs(l, { children: [
|
|
49
|
-
/* @__PURE__ */ e.jsx(d, {}),
|
|
50
|
-
/* @__PURE__ */ e.jsxs(
|
|
51
|
-
a.Content,
|
|
52
|
-
{
|
|
53
|
-
"data-slot": "sheet-content",
|
|
54
|
-
className: s(
|
|
55
|
-
`
|
|
56
|
-
fixed z-50 flex flex-col gap-4 bg-background text-foreground
|
|
57
|
-
shadow-lg transition ease-in-out
|
|
58
|
-
data-[state=closed]:animate-out data-[state=closed]:duration-300
|
|
59
|
-
data-[state=open]:animate-in data-[state=open]:duration-500
|
|
60
|
-
`,
|
|
61
|
-
n === "right" && `
|
|
62
|
-
inset-y-0 right-0 h-full w-3/4 border-l
|
|
63
|
-
data-[state=closed]:slide-out-to-right
|
|
64
|
-
data-[state=open]:slide-in-from-right
|
|
65
|
-
sm:max-w-sm
|
|
66
|
-
`,
|
|
67
|
-
n === "left" && `
|
|
68
|
-
inset-y-0 left-0 h-full w-3/4 border-r
|
|
69
|
-
data-[state=closed]:slide-out-to-left
|
|
70
|
-
data-[state=open]:slide-in-from-left
|
|
71
|
-
sm:max-w-sm
|
|
72
|
-
`,
|
|
73
|
-
n === "top" && `
|
|
74
|
-
inset-x-0 top-0 h-auto border-b
|
|
75
|
-
data-[state=closed]:slide-out-to-top
|
|
76
|
-
data-[state=open]:slide-in-from-top
|
|
77
|
-
`,
|
|
78
|
-
n === "bottom" && `
|
|
79
|
-
inset-x-0 bottom-0 h-auto border-t
|
|
80
|
-
data-[state=closed]:slide-out-to-bottom
|
|
81
|
-
data-[state=open]:slide-in-from-bottom
|
|
82
|
-
`,
|
|
83
|
-
t
|
|
84
|
-
),
|
|
85
|
-
...r,
|
|
86
|
-
children: [
|
|
87
|
-
o,
|
|
88
|
-
/* @__PURE__ */ e.jsxs(
|
|
89
|
-
a.Close,
|
|
90
|
-
{
|
|
91
|
-
className: `\r
|
|
92
|
-
absolute top-4 right-4 rounded-xs text-foreground opacity-70\r
|
|
93
|
-
ring-offset-background transition-opacity\r
|
|
94
|
-
hover:opacity-100\r
|
|
95
|
-
focus:ring-2 focus:ring-ring focus:ring-offset-2\r
|
|
96
|
-
focus:outline-hidden\r
|
|
97
|
-
disabled:pointer-events-none\r
|
|
98
|
-
data-[state=open]:bg-secondary\r
|
|
99
|
-
`,
|
|
100
|
-
children: [
|
|
101
|
-
/* @__PURE__ */ e.jsx(i, { className: "size-4" }),
|
|
102
|
-
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close" })
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
)
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
] });
|
|
110
|
-
}
|
|
111
|
-
function x({ className: t, ...o }) {
|
|
112
|
-
return /* @__PURE__ */ e.jsx(
|
|
113
|
-
"div",
|
|
114
|
-
{
|
|
115
|
-
"data-slot": "sheet-header",
|
|
116
|
-
className: s("flex flex-col gap-1.5 p-4", t),
|
|
117
|
-
...o
|
|
118
|
-
}
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
function g({ className: t, ...o }) {
|
|
122
|
-
return /* @__PURE__ */ e.jsx(
|
|
123
|
-
"div",
|
|
124
|
-
{
|
|
125
|
-
"data-slot": "sheet-footer",
|
|
126
|
-
className: s("mt-auto flex flex-col gap-2 p-4", t),
|
|
127
|
-
...o
|
|
128
|
-
}
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
function b({
|
|
132
|
-
className: t,
|
|
133
|
-
...o
|
|
134
|
-
}) {
|
|
135
|
-
return /* @__PURE__ */ e.jsx(
|
|
136
|
-
a.Title,
|
|
137
|
-
{
|
|
138
|
-
"data-slot": "sheet-title",
|
|
139
|
-
className: s("font-semibold text-foreground", t),
|
|
140
|
-
...o
|
|
141
|
-
}
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
function j({
|
|
145
|
-
className: t,
|
|
146
|
-
...o
|
|
147
|
-
}) {
|
|
148
|
-
return /* @__PURE__ */ e.jsx(
|
|
149
|
-
a.Description,
|
|
150
|
-
{
|
|
151
|
-
"data-slot": "sheet-description",
|
|
152
|
-
className: s("paragraph-sm text-muted-foreground", t),
|
|
153
|
-
...o
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
}
|
|
1
|
+
import { S as a, a as s, b as S, c as h, d as o, e as r, f as i, g } from "../sheet-CwXaadwy.js";
|
|
157
2
|
export {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
3
|
+
a as Sheet,
|
|
4
|
+
s as SheetClose,
|
|
5
|
+
S as SheetContent,
|
|
6
|
+
h as SheetDescription,
|
|
7
|
+
o as SheetFooter,
|
|
8
|
+
r as SheetHeader,
|
|
9
|
+
i as SheetTitle,
|
|
10
|
+
g as SheetTrigger
|
|
166
11
|
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Button } from './button';
|
|
4
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from './collapsible';
|
|
5
|
+
import { Divider } from './divider';
|
|
6
|
+
import { Input } from './input';
|
|
7
|
+
import { TooltipContent } from './tooltip';
|
|
8
|
+
type SidebarContextProps = {
|
|
9
|
+
state: 'expanded' | 'collapsed';
|
|
10
|
+
open: boolean;
|
|
11
|
+
setOpen: (open: boolean) => void;
|
|
12
|
+
openMobile: boolean;
|
|
13
|
+
setOpenMobile: (open: boolean) => void;
|
|
14
|
+
isMobile: boolean;
|
|
15
|
+
toggleSidebar: () => void;
|
|
16
|
+
};
|
|
17
|
+
declare function useSidebar(): SidebarContextProps;
|
|
18
|
+
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<'div'> & {
|
|
19
|
+
defaultOpen?: boolean;
|
|
20
|
+
open?: boolean;
|
|
21
|
+
onOpenChange?: (open: boolean) => void;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<'div'> & {
|
|
24
|
+
side?: 'left' | 'right';
|
|
25
|
+
variant?: 'sidebar' | 'floating' | 'inset';
|
|
26
|
+
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function SidebarRail({ className, ...props }: React.ComponentProps<'button'>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function SidebarInset({ className, ...props }: React.ComponentProps<'main'>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function SidebarHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function SidebarFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Divider>): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function SidebarContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare function SidebarGroup({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<'div'> & {
|
|
38
|
+
asChild?: boolean;
|
|
39
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<'button'> & {
|
|
41
|
+
asChild?: boolean;
|
|
42
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
declare function SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
47
|
+
variant?: "default" | "outline" | null | undefined;
|
|
48
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
49
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
50
|
+
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, dropdownItems, className, ...props }: React.ComponentProps<'button'> & {
|
|
51
|
+
asChild?: boolean;
|
|
52
|
+
isActive?: boolean;
|
|
53
|
+
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
54
|
+
dropdownItems?: {
|
|
55
|
+
title: string;
|
|
56
|
+
href: string;
|
|
57
|
+
}[];
|
|
58
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<'button'> & {
|
|
60
|
+
asChild?: boolean;
|
|
61
|
+
showOnHover?: boolean;
|
|
62
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<'div'> & {
|
|
65
|
+
showIcon?: boolean;
|
|
66
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<'ul'>): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<'a'> & {
|
|
70
|
+
asChild?: boolean;
|
|
71
|
+
size?: 'sm' | 'md' | 'lg';
|
|
72
|
+
isActive?: boolean;
|
|
73
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
declare function SidebarSubMenu({ defaultOpen, className, children, ...props }: React.ComponentProps<typeof Collapsible>): import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
declare function SidebarSubMenuTrigger({ className, children, dropdownItems, ...props }: React.ComponentProps<typeof CollapsibleTrigger> & {
|
|
76
|
+
dropdownItems?: {
|
|
77
|
+
title: string;
|
|
78
|
+
href: string;
|
|
79
|
+
}[];
|
|
80
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
81
|
+
declare function SidebarSubMenuContent({ children, ...props }: React.ComponentProps<typeof CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
declare function SidebarSubMenuItem({ children, ...props }: React.ComponentProps<typeof SidebarMenuSubItem>): import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarSubMenu, SidebarSubMenuContent, SidebarSubMenuItem, SidebarSubMenuTrigger, SidebarTrigger, useSidebar, };
|