@krosoft/react 0.0.135 → 0.0.137
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/{AppActions-CX-qVy8i.js → AppActions-DCaejx-3.js} +4 -3
- package/dist/{AppSubTitle-BxWwOgry.js → AppSubTitle-BNd5_q0i.js} +1 -1
- package/dist/{AppVerticalTabs-DiRvuLpb.js → AppVerticalTabs-NZ02HPGP.js} +11 -11
- package/dist/{ConfirmationDialog-DbMHt9aI.js → ConfirmationDialog-DJcxTNTk.js} +7 -6
- package/dist/{DataTable-DSIgTHZS.js → DataTable-BVgo8YWR.js} +4 -3
- package/dist/{GenericForm-CEnca4jf.js → GenericForm-Cy5ntJxi.js} +20 -19
- package/dist/{ImageInput-DLTYJMwr.js → ImageInput-CJ419eqw.js} +7 -6
- package/dist/{KpiCardsLayout-C3LmSeL1.js → KpiCardsLayout-DDR49Qqh.js} +5 -4
- package/dist/{MetricCard-CPw-fiNS.js → MetricCard-D-qPl6zh.js} +1 -1
- package/dist/{MultiSelect-CX051kfk.js → MultiSelect-DblSHEsg.js} +4 -3
- package/dist/{SearchInput-D6LmcOjp.js → SearchInput-T9TeORNA.js} +38 -37
- package/dist/{SkeletonCards-BIEnyOuZ.js → SkeletonCards-BPIVRCOE.js} +14 -13
- package/dist/{TableFilter-Wh_Womy4.js → TableFilter-rjiss-d9.js} +46 -45
- package/dist/Topbar-BTrdr7wj.js +199 -0
- package/dist/components/core/cards/index.js +2 -2
- package/dist/components/core/dialogs/index.js +2 -2
- package/dist/components/core/filters/index.js +1 -1
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/index.js +15 -15
- package/dist/components/core/inputs/index.js +3 -3
- package/dist/components/core/layouts/index.js +3 -3
- package/dist/components/core/navbar/Sidebar.d.ts +4 -5
- package/dist/components/core/navbar/Sidebar.d.ts.map +1 -1
- package/dist/components/core/navbar/index.js +1 -1
- package/dist/components/core/table/index.js +1 -1
- package/dist/components/core/tabs/index.js +1 -1
- package/dist/components/index.js +205 -203
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +143 -141
- package/dist/contexts/index.d.ts +5 -0
- package/dist/contexts/index.d.ts.map +1 -0
- package/dist/contexts/index.js +5 -0
- package/dist/contexts/page.context.d.ts +9 -0
- package/dist/contexts/page.context.d.ts.map +1 -0
- package/dist/contexts/sidebar.context.d.ts +8 -0
- package/dist/contexts/sidebar.context.d.ts.map +1 -0
- package/dist/hooks/behavior/index.d.ts +2 -0
- package/dist/hooks/behavior/index.d.ts.map +1 -1
- package/dist/hooks/behavior/index.js +7 -4
- package/dist/hooks/behavior/usePage.d.ts +3 -0
- package/dist/hooks/behavior/usePage.d.ts.map +1 -0
- package/dist/hooks/behavior/useSidebar.d.ts +3 -0
- package/dist/hooks/behavior/useSidebar.d.ts.map +1 -0
- package/dist/hooks/index.js +19 -16
- package/dist/providers/SidebarProvider.d.ts +8 -0
- package/dist/providers/SidebarProvider.d.ts.map +1 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +49 -0
- package/dist/sheet-Gop1cIaU.js +84 -0
- package/dist/sidebar.context-D5nywlmP.js +6 -0
- package/dist/skeleton-8o8eJd3P.js +8 -0
- package/dist/{toaster-DTC8Duvh.js → toaster-Du2OlHAd.js} +19 -24
- package/dist/{toggle-group-CSdAiS44.js → toggle-group-BASGy2mQ.js} +610 -686
- package/dist/{useConfirmDeleteDialog-CiBQmRxg.js → usePage-CWu-cjzK.js} +32 -25
- package/dist/useSidebar-BJuALHqQ.js +11 -0
- package/package.json +2 -2
- package/dist/Topbar-DVww-tU8.js +0 -158
- package/dist/components/ui/sidebar.d.ts +0 -67
- package/dist/components/ui/sidebar.d.ts.map +0 -1
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { TrashIcon as
|
|
2
|
-
import { useState as c } from "react";
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { TrashIcon as l } from "lucide-react";
|
|
2
|
+
import { useState as c, useContext as u } from "react";
|
|
3
|
+
import { P as m } from "./sidebar.context-D5nywlmP.js";
|
|
4
|
+
const g = (e) => {
|
|
5
|
+
const [n, t] = c(null), i = (o, s) => {
|
|
5
6
|
var a;
|
|
6
|
-
(a = e == null ? void 0 : e.onReset) == null || a.call(e),
|
|
7
|
+
(a = e == null ? void 0 : e.onReset) == null || a.call(e), t({ id: o, name: s });
|
|
7
8
|
}, r = () => {
|
|
8
|
-
|
|
9
|
+
t(null);
|
|
9
10
|
};
|
|
10
11
|
return {
|
|
11
12
|
id: (n == null ? void 0 : n.id) ?? null,
|
|
12
13
|
name: (n == null ? void 0 : n.name) ?? null,
|
|
13
14
|
isOpen: !!n,
|
|
14
|
-
openDialog:
|
|
15
|
+
openDialog: i,
|
|
15
16
|
onClose: r
|
|
16
17
|
};
|
|
17
|
-
},
|
|
18
|
+
}, f = ({
|
|
18
19
|
titleKey: e,
|
|
19
20
|
descriptionKey: n,
|
|
20
|
-
confirmKey:
|
|
21
|
-
onConfirm:
|
|
21
|
+
confirmKey: t = "Confirmer",
|
|
22
|
+
onConfirm: i,
|
|
22
23
|
onReset: r
|
|
23
24
|
}) => {
|
|
24
|
-
const o =
|
|
25
|
+
const o = g({ onReset: r }), s = async () => {
|
|
25
26
|
if (o.id)
|
|
26
27
|
try {
|
|
27
|
-
await
|
|
28
|
+
await i(o.id), o.onClose();
|
|
28
29
|
} catch (a) {
|
|
29
30
|
console.error("Error confirming action:", a);
|
|
30
31
|
}
|
|
@@ -34,32 +35,38 @@ const m = (e) => {
|
|
|
34
35
|
itemName: o.name,
|
|
35
36
|
title: e,
|
|
36
37
|
description: n,
|
|
37
|
-
confirmKey:
|
|
38
|
+
confirmKey: t,
|
|
38
39
|
openDialog: o.openDialog,
|
|
39
40
|
onClose: o.onClose,
|
|
40
|
-
onConfirm:
|
|
41
|
+
onConfirm: s
|
|
41
42
|
};
|
|
42
|
-
},
|
|
43
|
+
}, h = ({
|
|
43
44
|
titleKey: e,
|
|
44
45
|
descriptionKey: n,
|
|
45
|
-
confirmKey:
|
|
46
|
-
onConfirm:
|
|
46
|
+
confirmKey: t = "Supprimer",
|
|
47
|
+
onConfirm: i,
|
|
47
48
|
onReset: r
|
|
48
49
|
}) => ({
|
|
49
|
-
...
|
|
50
|
+
...f({
|
|
50
51
|
titleKey: e,
|
|
51
52
|
descriptionKey: n,
|
|
52
|
-
confirmKey:
|
|
53
|
-
onConfirm:
|
|
53
|
+
confirmKey: t,
|
|
54
|
+
onConfirm: i,
|
|
54
55
|
onReset: r
|
|
55
56
|
}),
|
|
56
57
|
loadingKey: "Suppression...",
|
|
57
|
-
icon:
|
|
58
|
+
icon: l,
|
|
58
59
|
titleClassName: "flex items-center gap-2 text-destructive",
|
|
59
60
|
headerClassName: "bg-gradient-to-r from-slate-900 to-purple-700 rounded-t-lg shrink-0"
|
|
60
|
-
})
|
|
61
|
+
}), x = () => {
|
|
62
|
+
const e = u(m);
|
|
63
|
+
if (e === void 0)
|
|
64
|
+
throw new Error("usePage must be used within an PageProvider");
|
|
65
|
+
return e;
|
|
66
|
+
};
|
|
61
67
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
68
|
+
f as a,
|
|
69
|
+
g as b,
|
|
70
|
+
x as c,
|
|
71
|
+
h as u
|
|
65
72
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { S as e } from "./sidebar.context-D5nywlmP.js";
|
|
2
|
+
import { useContext as t } from "react";
|
|
3
|
+
const s = () => {
|
|
4
|
+
const r = t(e);
|
|
5
|
+
if (r === void 0)
|
|
6
|
+
throw new Error("useSidebar must be used within a SidebarProvider");
|
|
7
|
+
return r;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
s as u
|
|
11
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krosoft/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.137",
|
|
4
4
|
"description": "Krosoft shared React package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"zod": "^4.4.3"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@krosoft/core": "^0.0.
|
|
93
|
+
"@krosoft/core": "^0.0.44",
|
|
94
94
|
"@krosoft/tooling-eslint-react": "^0.0.24",
|
|
95
95
|
"@krosoft/tooling-prettier": "^0.0.15",
|
|
96
96
|
"@krosoft/tooling-tsconfig-react": "^0.0.10",
|
package/dist/Topbar-DVww-tU8.js
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e, Fragment as y } from "react/jsx-runtime";
|
|
2
|
-
import { T as k, c as C, a as j, b as T, B as z } from "./tooltip-BWyFpIxo.js";
|
|
3
|
-
import { c as o } from "./tailwind.helper-B6yFEsav.js";
|
|
4
|
-
import * as S from "react";
|
|
5
|
-
import { ChevronDownIcon as D, MenuIcon as W } from "lucide-react";
|
|
6
|
-
const $ = ({
|
|
7
|
-
path: t,
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9
|
-
icon: n,
|
|
10
|
-
label: f,
|
|
11
|
-
badge: d,
|
|
12
|
-
subItems: i,
|
|
13
|
-
currentPath: s,
|
|
14
|
-
collapsed: l,
|
|
15
|
-
onItemClick: x
|
|
16
|
-
}) => {
|
|
17
|
-
const [h, m] = S.useState((i == null ? void 0 : i.some((r) => s === r.path || s.startsWith(`${r.path}/`))) || !1), p = t ? s === t || t !== "/" && s.startsWith(`${t}/`) : !1, b = i == null ? void 0 : i.some((r) => s === r.path || s.startsWith(`${r.path}/`)), g = /* @__PURE__ */ a(
|
|
18
|
-
"a",
|
|
19
|
-
{
|
|
20
|
-
href: t || "#",
|
|
21
|
-
onClick: (r) => {
|
|
22
|
-
r.preventDefault(), i && i.length > 0 ? l || m(!h) : t && x(t);
|
|
23
|
-
},
|
|
24
|
-
className: o(
|
|
25
|
-
"flex items-center gap-3 rounded-2xl cursor-pointer mb-2 transition-all duration-200 group",
|
|
26
|
-
l ? "justify-center p-3 h-12 w-12 mx-auto" : "px-4 py-3 h-12",
|
|
27
|
-
p || !l && b ? "bg-sidebar-primary text-sidebar-primary-foreground shadow-lg" : "hover:bg-sidebar-accent text-sidebar-foreground hover:text-sidebar-accent-foreground"
|
|
28
|
-
),
|
|
29
|
-
children: [
|
|
30
|
-
/* @__PURE__ */ e("div", { className: o("flex-shrink-0 transition-transform group-hover:scale-110", l ? "flex items-center justify-center" : ""), children: /* @__PURE__ */ e(n, { className: "size-4" }) }),
|
|
31
|
-
!l && /* @__PURE__ */ a(y, { children: [
|
|
32
|
-
/* @__PURE__ */ e("span", { className: "flex-grow transition-opacity duration-150 font-medium", children: f }),
|
|
33
|
-
d !== void 0 && /* @__PURE__ */ e("span", { className: "bg-red-500 text-white text-xs rounded-full py-1 min-w-[20px] text-center px-2 font-semibold", children: d }),
|
|
34
|
-
i && i.length > 0 && /* @__PURE__ */ e(D, { className: o("size-4 transition-transform duration-200", h ? "rotate-180" : "") })
|
|
35
|
-
] })
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
return /* @__PURE__ */ a(y, { children: [
|
|
40
|
-
l ? /* @__PURE__ */ a(k, { children: [
|
|
41
|
-
/* @__PURE__ */ e(C, { asChild: !0, children: g }),
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
j,
|
|
44
|
-
{
|
|
45
|
-
side: "right",
|
|
46
|
-
sideOffset: 6,
|
|
47
|
-
className: "rounded-xl z-[99999] flex gap-2 bg-sidebar text-sidebar-foreground border border-sidebar-border py-2 text-sm shadow-lg",
|
|
48
|
-
children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
49
|
-
/* @__PURE__ */ e("p", { className: "font-semibold", children: f }),
|
|
50
|
-
d !== void 0 && /* @__PURE__ */ a("span", { className: "ml-1 text-xs", children: [
|
|
51
|
-
"(",
|
|
52
|
-
d,
|
|
53
|
-
")"
|
|
54
|
-
] })
|
|
55
|
-
] }) })
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
] }) : g,
|
|
59
|
-
!l && i && i.length > 0 && h && /* @__PURE__ */ e("div", { className: "flex flex-col gap-1 mb-2 ml-4 pl-4 border-l-2 border-sidebar-border/50 animate-in slide-in-from-top-2 fade-in duration-200", children: i.map((r, v) => {
|
|
60
|
-
const u = s === r.path || r.path !== "/" && s.startsWith(`${r.path}/`);
|
|
61
|
-
return /* @__PURE__ */ a(
|
|
62
|
-
"a",
|
|
63
|
-
{
|
|
64
|
-
href: r.path,
|
|
65
|
-
onClick: (w) => {
|
|
66
|
-
w.preventDefault(), x(r.path);
|
|
67
|
-
},
|
|
68
|
-
className: o(
|
|
69
|
-
"flex items-center justify-between px-4 py-2 rounded-xl text-sm transition-all duration-200",
|
|
70
|
-
u ? "bg-sidebar-accent/50 text-sidebar-primary font-semibold" : "text-sidebar-muted hover:bg-sidebar-accent hover:text-sidebar-foreground"
|
|
71
|
-
),
|
|
72
|
-
children: [
|
|
73
|
-
/* @__PURE__ */ e("span", { children: r.label }),
|
|
74
|
-
r.badge !== void 0 && /* @__PURE__ */ e("span", { className: "bg-sidebar-primary/20 text-sidebar-primary text-[10px] rounded-full py-0.5 px-2 font-semibold", children: r.badge })
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
v
|
|
78
|
-
);
|
|
79
|
-
}) })
|
|
80
|
-
] });
|
|
81
|
-
}, R = ({
|
|
82
|
-
groups: t,
|
|
83
|
-
collapsed: n,
|
|
84
|
-
mobileOpen: f,
|
|
85
|
-
isMobile: d,
|
|
86
|
-
onMobileClose: i,
|
|
87
|
-
onItemClick: s,
|
|
88
|
-
currentPath: l,
|
|
89
|
-
appName: x = "appname",
|
|
90
|
-
appSubName: h = "appsubname",
|
|
91
|
-
appIcon: m,
|
|
92
|
-
headerNode: p,
|
|
93
|
-
footerNode: b
|
|
94
|
-
}) => {
|
|
95
|
-
const N = (c) => {
|
|
96
|
-
s(c), d && i();
|
|
97
|
-
};
|
|
98
|
-
return /* @__PURE__ */ e(T, { delayDuration: 0, children: /* @__PURE__ */ a(
|
|
99
|
-
"aside",
|
|
100
|
-
{
|
|
101
|
-
className: o(
|
|
102
|
-
"flex flex-col bg-sidebar h-screen transition-all duration-300",
|
|
103
|
-
n ? "w-[--navbar-width-icon]" : "w-[--navbar-width]",
|
|
104
|
-
d && !f ? "hidden" : "flex"
|
|
105
|
-
),
|
|
106
|
-
style: {
|
|
107
|
-
"--navbar-width": "16rem",
|
|
108
|
-
"--navbar-width-icon": "5rem"
|
|
109
|
-
},
|
|
110
|
-
children: [
|
|
111
|
-
p || /* @__PURE__ */ a("div", { className: o("flex items-center h-16 md:h-20 flex-shrink-0 gap-3 px-4", n ? "justify-center" : ""), children: [
|
|
112
|
-
m !== void 0 && /* @__PURE__ */ e("div", { className: "flex-shrink-0 text-sidebar-foreground", children: /* @__PURE__ */ e(m, { className: "size-6" }) }),
|
|
113
|
-
!n && /* @__PURE__ */ a("div", { className: "flex flex-col", children: [
|
|
114
|
-
/* @__PURE__ */ e("h1", { className: "font-bold text-lg text-sidebar-foreground leading-tight", children: x }),
|
|
115
|
-
/* @__PURE__ */ e("span", { className: "text-xs text-sidebar-muted font-medium", children: h })
|
|
116
|
-
] })
|
|
117
|
-
] }),
|
|
118
|
-
/* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto py-4 px-2 scrollbar-modern", children: t.map((c, g) => /* @__PURE__ */ a("div", { className: "mb-6", children: [
|
|
119
|
-
!n && c.title !== void 0 && c.title !== "" && /* @__PURE__ */ e("h3", { className: "px-4 mb-2 text-xs uppercase tracking-wider font-semibold text-sidebar-muted", children: c.title }),
|
|
120
|
-
/* @__PURE__ */ e("nav", { className: "flex flex-col gap-1", children: c.items.map((r, v) => /* @__PURE__ */ e($, { ...r, currentPath: l, collapsed: n, onItemClick: N }, v)) })
|
|
121
|
-
] }, g)) }),
|
|
122
|
-
b && /* @__PURE__ */ e("div", { className: o("p-4 border-t border-sidebar-border", n ? "flex justify-center" : ""), children: b })
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
) });
|
|
126
|
-
}, q = ({ collapsed: t, isMobile: n, onToggleSidebar: f, actionsNode: d, userMenuNode: i }) => /* @__PURE__ */ a(
|
|
127
|
-
"header",
|
|
128
|
-
{
|
|
129
|
-
className: o(
|
|
130
|
-
"fixed top-0 right-0 z-[60] h-16 md:h-20 bg-topbar text-topbar-foreground flex items-center justify-between px-4 transition-all duration-300",
|
|
131
|
-
n && "left-0",
|
|
132
|
-
!n && t && "left-[5rem]",
|
|
133
|
-
!n && !t && "left-[16rem]"
|
|
134
|
-
),
|
|
135
|
-
tabIndex: -1,
|
|
136
|
-
children: [
|
|
137
|
-
/* @__PURE__ */ e("div", { className: "flex items-center min-w-0 flex-1", children: /* @__PURE__ */ e(
|
|
138
|
-
z,
|
|
139
|
-
{
|
|
140
|
-
variant: "ghost",
|
|
141
|
-
size: "icon",
|
|
142
|
-
onClick: f,
|
|
143
|
-
className: "text-topbar-foreground hover:bg-topbar-accent hover:text-topbar-accent-foreground",
|
|
144
|
-
children: /* @__PURE__ */ e(W, { className: "size-4" })
|
|
145
|
-
}
|
|
146
|
-
) }),
|
|
147
|
-
/* @__PURE__ */ a("div", { className: "flex items-center gap-2 md:gap-4 flex-shrink-0", children: [
|
|
148
|
-
d,
|
|
149
|
-
i
|
|
150
|
-
] })
|
|
151
|
-
]
|
|
152
|
-
}
|
|
153
|
-
);
|
|
154
|
-
export {
|
|
155
|
-
R as S,
|
|
156
|
-
q as T,
|
|
157
|
-
$ as a
|
|
158
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { TooltipContent } from "@/components/ui/tooltip";
|
|
2
|
-
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
type SidebarContext = {
|
|
5
|
-
state: "expanded" | "collapsed";
|
|
6
|
-
open: boolean;
|
|
7
|
-
setOpen: (open: boolean) => void;
|
|
8
|
-
openMobile: boolean;
|
|
9
|
-
setOpenMobile: (open: boolean) => void;
|
|
10
|
-
isMobile: boolean;
|
|
11
|
-
toggleSidebar: () => void;
|
|
12
|
-
};
|
|
13
|
-
declare const SidebarContext: React.Context<SidebarContext | null>;
|
|
14
|
-
declare function useSidebar(): SidebarContext;
|
|
15
|
-
declare const SidebarProvider: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
16
|
-
defaultOpen?: boolean;
|
|
17
|
-
open?: boolean;
|
|
18
|
-
onOpenChange?: (open: boolean) => void;
|
|
19
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
declare const Sidebar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
21
|
-
side?: "left" | "right";
|
|
22
|
-
variant?: "sidebar" | "floating" | "inset";
|
|
23
|
-
collapsible?: "offcanvas" | "icon" | "none";
|
|
24
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import("./button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
26
|
-
declare const SidebarRail: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
27
|
-
declare const SidebarInset: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
-
declare const SidebarInput: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
29
|
-
declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
-
declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
-
declare const SidebarSeparator: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-separator").SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
-
declare const SidebarContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
declare const SidebarGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
-
declare const SidebarGroupLabel: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
35
|
-
asChild?: boolean;
|
|
36
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
-
declare const SidebarGroupAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
38
|
-
asChild?: boolean;
|
|
39
|
-
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
40
|
-
declare const SidebarGroupContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
-
declare const SidebarMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
42
|
-
declare const SidebarMenuItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
43
|
-
declare const SidebarMenuButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
44
|
-
asChild?: boolean;
|
|
45
|
-
isActive?: boolean;
|
|
46
|
-
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
47
|
-
} & VariantProps<(props?: ({
|
|
48
|
-
variant?: "default" | "outline" | null | undefined;
|
|
49
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
50
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
51
|
-
declare const SidebarMenuAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
52
|
-
asChild?: boolean;
|
|
53
|
-
showOnHover?: boolean;
|
|
54
|
-
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
55
|
-
declare const SidebarMenuBadge: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
-
declare const SidebarMenuSkeleton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
57
|
-
showIcon?: boolean;
|
|
58
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
-
declare const SidebarMenuSub: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
60
|
-
declare const SidebarMenuSubItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
61
|
-
declare const SidebarMenuSubButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
62
|
-
asChild?: boolean;
|
|
63
|
-
size?: "sm" | "md";
|
|
64
|
-
isActive?: boolean;
|
|
65
|
-
}, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
66
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
|
|
67
|
-
//# sourceMappingURL=sidebar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAW,cAAc,EAAmC,MAAM,yBAAyB,CAAC;AAMnG,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAA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