react-shadcn-kit 0.0.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.
Files changed (123) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +113 -0
  3. package/dist/assets/global.css +1 -0
  4. package/dist/atoms/accordion.d.ts +7 -0
  5. package/dist/atoms/accordion.js +62 -0
  6. package/dist/atoms/alert-dialog.d.ts +14 -0
  7. package/dist/atoms/alert-dialog.js +127 -0
  8. package/dist/atoms/alert.d.ts +9 -0
  9. package/dist/atoms/alert.js +60 -0
  10. package/dist/atoms/aspect-ratio.d.ts +3 -0
  11. package/dist/atoms/aspect-ratio.js +8 -0
  12. package/dist/atoms/avatar.d.ts +6 -0
  13. package/dist/atoms/avatar.js +41 -0
  14. package/dist/atoms/badge.d.ts +9 -0
  15. package/dist/atoms/badge.js +32 -0
  16. package/dist/atoms/breadcrumb.d.ts +11 -0
  17. package/dist/atoms/breadcrumb.js +95 -0
  18. package/dist/atoms/button-group.d.ts +11 -0
  19. package/dist/atoms/button-group.js +75 -0
  20. package/dist/atoms/button.d.ts +10 -0
  21. package/dist/atoms/button.js +51 -0
  22. package/dist/atoms/calendar.d.ts +8 -0
  23. package/dist/atoms/calendar.js +144 -0
  24. package/dist/atoms/card.d.ts +9 -0
  25. package/dist/atoms/card.js +80 -0
  26. package/dist/atoms/carousel.d.ts +19 -0
  27. package/dist/atoms/carousel.js +165 -0
  28. package/dist/atoms/chart.d.ts +43 -0
  29. package/dist/atoms/chart.js +203 -0
  30. package/dist/atoms/checkbox.d.ts +4 -0
  31. package/dist/atoms/checkbox.js +28 -0
  32. package/dist/atoms/collapsible.d.ts +5 -0
  33. package/dist/atoms/collapsible.js +20 -0
  34. package/dist/atoms/command.d.ts +18 -0
  35. package/dist/atoms/command.js +143 -0
  36. package/dist/atoms/context-menu.d.ts +25 -0
  37. package/dist/atoms/context-menu.js +200 -0
  38. package/dist/atoms/dialog.d.ts +15 -0
  39. package/dist/atoms/dialog.js +122 -0
  40. package/dist/atoms/drawer.d.ts +13 -0
  41. package/dist/atoms/drawer.js +117 -0
  42. package/dist/atoms/dropdown-menu.d.ts +25 -0
  43. package/dist/atoms/dropdown-menu.js +204 -0
  44. package/dist/atoms/empty.d.ts +11 -0
  45. package/dist/atoms/empty.js +99 -0
  46. package/dist/atoms/field.d.ts +24 -0
  47. package/dist/atoms/field.js +208 -0
  48. package/dist/atoms/form.d.ts +24 -0
  49. package/dist/atoms/form.js +87 -0
  50. package/dist/atoms/hover-card.d.ts +6 -0
  51. package/dist/atoms/hover-card.js +34 -0
  52. package/dist/atoms/input-group.d.ts +16 -0
  53. package/dist/atoms/input-group.js +142 -0
  54. package/dist/atoms/input-otp.d.ts +11 -0
  55. package/dist/atoms/input-otp.js +55 -0
  56. package/dist/atoms/input.d.ts +3 -0
  57. package/dist/atoms/input.js +21 -0
  58. package/dist/atoms/item.d.ts +23 -0
  59. package/dist/atoms/item.js +164 -0
  60. package/dist/atoms/kbd.d.ts +3 -0
  61. package/dist/atoms/kbd.js +31 -0
  62. package/dist/atoms/label.d.ts +4 -0
  63. package/dist/atoms/label.js +19 -0
  64. package/dist/atoms/menubar.d.ts +26 -0
  65. package/dist/atoms/menubar.js +229 -0
  66. package/dist/atoms/navigation-menu.d.ts +14 -0
  67. package/dist/atoms/navigation-menu.js +159 -0
  68. package/dist/atoms/pagination.d.ts +13 -0
  69. package/dist/atoms/pagination.js +100 -0
  70. package/dist/atoms/popover.d.ts +7 -0
  71. package/dist/atoms/popover.js +38 -0
  72. package/dist/atoms/progress.d.ts +4 -0
  73. package/dist/atoms/progress.js +28 -0
  74. package/dist/atoms/radio-group.d.ts +5 -0
  75. package/dist/atoms/radio-group.js +45 -0
  76. package/dist/atoms/resizable.d.ts +8 -0
  77. package/dist/atoms/resizable.js +43 -0
  78. package/dist/atoms/scroll-area.d.ts +5 -0
  79. package/dist/atoms/scroll-area.js +60 -0
  80. package/dist/atoms/select.d.ts +15 -0
  81. package/dist/atoms/select.js +156 -0
  82. package/dist/atoms/separator.d.ts +4 -0
  83. package/dist/atoms/separator.js +26 -0
  84. package/dist/atoms/sheet.d.ts +13 -0
  85. package/dist/atoms/sheet.js +117 -0
  86. package/dist/atoms/sidebar.d.ts +69 -0
  87. package/dist/atoms/sidebar.js +570 -0
  88. package/dist/atoms/skeleton.d.ts +2 -0
  89. package/dist/atoms/skeleton.js +15 -0
  90. package/dist/atoms/slider.d.ts +4 -0
  91. package/dist/atoms/slider.js +63 -0
  92. package/dist/atoms/sonner.d.ts +3 -0
  93. package/dist/atoms/sonner.js +31 -0
  94. package/dist/atoms/spinner.d.ts +2 -0
  95. package/dist/atoms/spinner.js +17 -0
  96. package/dist/atoms/switch.d.ts +4 -0
  97. package/dist/atoms/switch.js +28 -0
  98. package/dist/atoms/table.d.ts +10 -0
  99. package/dist/atoms/table.js +94 -0
  100. package/dist/atoms/tabs.d.ts +7 -0
  101. package/dist/atoms/tabs.js +55 -0
  102. package/dist/atoms/textarea.d.ts +3 -0
  103. package/dist/atoms/textarea.js +18 -0
  104. package/dist/atoms/toggle-group.d.ts +9 -0
  105. package/dist/atoms/toggle-group.js +68 -0
  106. package/dist/atoms/toggle.d.ts +9 -0
  107. package/dist/atoms/toggle.js +43 -0
  108. package/dist/atoms/tooltip.d.ts +7 -0
  109. package/dist/atoms/tooltip.js +51 -0
  110. package/dist/config/default-navigation.js +136 -0
  111. package/dist/hooks/use-mobile.d.ts +1 -0
  112. package/dist/hooks/use-mobile.js +14 -0
  113. package/dist/index.d.ts +57 -0
  114. package/dist/index.js +347 -0
  115. package/dist/lib/utils.d.ts +2 -0
  116. package/dist/lib/utils.js +8 -0
  117. package/dist/molecules/app-navbar.d.ts +11 -0
  118. package/dist/molecules/app-navbar.js +117 -0
  119. package/dist/molecules/app-sidebar.d.ts +9 -0
  120. package/dist/molecules/app-sidebar.js +121 -0
  121. package/dist/organisms/layout.d.ts +3 -0
  122. package/dist/organisms/layout.js +16 -0
  123. package/package.json +120 -0
@@ -0,0 +1,43 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { GripVerticalIcon as n } from "lucide-react";
3
+ import * as t from "react-resizable-panels";
4
+ import { cn as i } from "../lib/utils.js";
5
+ function d({
6
+ className: e,
7
+ ...r
8
+ }) {
9
+ return /* @__PURE__ */ a(
10
+ t.PanelGroup,
11
+ {
12
+ "data-slot": "resizable-panel-group",
13
+ className: i("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e),
14
+ ...r
15
+ }
16
+ );
17
+ }
18
+ function f({ ...e }) {
19
+ return /* @__PURE__ */ a(t.Panel, { "data-slot": "resizable-panel", ...e });
20
+ }
21
+ function p({
22
+ withHandle: e,
23
+ className: r,
24
+ ...l
25
+ }) {
26
+ return /* @__PURE__ */ a(
27
+ t.PanelResizeHandle,
28
+ {
29
+ "data-slot": "resizable-handle",
30
+ className: i(
31
+ "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
32
+ r
33
+ ),
34
+ ...l,
35
+ children: e && /* @__PURE__ */ a("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a(n, { className: "size-2.5" }) })
36
+ }
37
+ );
38
+ }
39
+ export {
40
+ p as ResizableHandle,
41
+ f as ResizablePanel,
42
+ d as ResizablePanelGroup
43
+ };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
3
+ declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
5
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,60 @@
1
+ import { jsxs as s, jsx as l } from "react/jsx-runtime";
2
+ import * as o from "@radix-ui/react-scroll-area";
3
+ import { cn as t } from "../lib/utils.js";
4
+ function u({
5
+ className: e,
6
+ children: r,
7
+ ...a
8
+ }) {
9
+ return /* @__PURE__ */ s(
10
+ o.Root,
11
+ {
12
+ "data-slot": "scroll-area",
13
+ className: t("relative", e),
14
+ ...a,
15
+ children: [
16
+ /* @__PURE__ */ l(
17
+ o.Viewport,
18
+ {
19
+ "data-slot": "scroll-area-viewport",
20
+ className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
21
+ children: r
22
+ }
23
+ ),
24
+ /* @__PURE__ */ l(i, {}),
25
+ /* @__PURE__ */ l(o.Corner, {})
26
+ ]
27
+ }
28
+ );
29
+ }
30
+ function i({
31
+ className: e,
32
+ orientation: r = "vertical",
33
+ ...a
34
+ }) {
35
+ return /* @__PURE__ */ l(
36
+ o.ScrollAreaScrollbar,
37
+ {
38
+ "data-slot": "scroll-area-scrollbar",
39
+ orientation: r,
40
+ className: t(
41
+ "flex touch-none p-px transition-colors select-none",
42
+ r === "vertical" && "h-full w-2.5 border-l border-l-transparent",
43
+ r === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
44
+ e
45
+ ),
46
+ ...a,
47
+ children: /* @__PURE__ */ l(
48
+ o.ScrollAreaThumb,
49
+ {
50
+ "data-slot": "scroll-area-thumb",
51
+ className: "bg-border relative flex-1 rounded-full"
52
+ }
53
+ )
54
+ }
55
+ );
56
+ }
57
+ export {
58
+ u as ScrollArea,
59
+ i as ScrollBar
60
+ };
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import * as SelectPrimitive from "@radix-ui/react-select";
3
+ declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
5
+ declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
7
+ size?: "sm" | "default";
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
10
+ declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
11
+ declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
12
+ declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
13
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
14
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
15
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
@@ -0,0 +1,156 @@
1
+ import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
+ import * as a from "@radix-ui/react-select";
3
+ import { CheckIcon as c, ChevronDownIcon as i, ChevronUpIcon as u } from "lucide-react";
4
+ import { cn as s } from "../lib/utils.js";
5
+ function x({ ...e }) {
6
+ return /* @__PURE__ */ t(a.Root, { "data-slot": "select", ...e });
7
+ }
8
+ function h({ ...e }) {
9
+ return /* @__PURE__ */ t(a.Group, { "data-slot": "select-group", ...e });
10
+ }
11
+ function b({ ...e }) {
12
+ return /* @__PURE__ */ t(a.Value, { "data-slot": "select-value", ...e });
13
+ }
14
+ function w({
15
+ className: e,
16
+ size: r = "default",
17
+ children: o,
18
+ ...n
19
+ }) {
20
+ return /* @__PURE__ */ l(
21
+ a.Trigger,
22
+ {
23
+ "data-slot": "select-trigger",
24
+ "data-size": r,
25
+ className: s(
26
+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
27
+ e
28
+ ),
29
+ ...n,
30
+ children: [
31
+ o,
32
+ /* @__PURE__ */ t(a.Icon, { asChild: !0, children: /* @__PURE__ */ t(i, { className: "size-4 opacity-50" }) })
33
+ ]
34
+ }
35
+ );
36
+ }
37
+ function y({
38
+ className: e,
39
+ children: r,
40
+ position: o = "popper",
41
+ align: n = "center",
42
+ ...d
43
+ }) {
44
+ return /* @__PURE__ */ t(a.Portal, { children: /* @__PURE__ */ l(
45
+ a.Content,
46
+ {
47
+ "data-slot": "select-content",
48
+ className: s(
49
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
50
+ o === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
51
+ e
52
+ ),
53
+ position: o,
54
+ align: n,
55
+ ...d,
56
+ children: [
57
+ /* @__PURE__ */ t(p, {}),
58
+ /* @__PURE__ */ t(
59
+ a.Viewport,
60
+ {
61
+ className: s(
62
+ "p-1",
63
+ o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
64
+ ),
65
+ children: r
66
+ }
67
+ ),
68
+ /* @__PURE__ */ t(m, {})
69
+ ]
70
+ }
71
+ ) });
72
+ }
73
+ function S({ className: e, ...r }) {
74
+ return /* @__PURE__ */ t(
75
+ a.Label,
76
+ {
77
+ "data-slot": "select-label",
78
+ className: s("text-muted-foreground px-2 py-1.5 text-xs", e),
79
+ ...r
80
+ }
81
+ );
82
+ }
83
+ function z({
84
+ className: e,
85
+ children: r,
86
+ ...o
87
+ }) {
88
+ return /* @__PURE__ */ l(
89
+ a.Item,
90
+ {
91
+ "data-slot": "select-item",
92
+ className: s(
93
+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
94
+ e
95
+ ),
96
+ ...o,
97
+ children: [
98
+ /* @__PURE__ */ t("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(a.ItemIndicator, { children: /* @__PURE__ */ t(c, { className: "size-4" }) }) }),
99
+ /* @__PURE__ */ t(a.ItemText, { children: r })
100
+ ]
101
+ }
102
+ );
103
+ }
104
+ function N({
105
+ className: e,
106
+ ...r
107
+ }) {
108
+ return /* @__PURE__ */ t(
109
+ a.Separator,
110
+ {
111
+ "data-slot": "select-separator",
112
+ className: s("bg-border pointer-events-none -mx-1 my-1 h-px", e),
113
+ ...r
114
+ }
115
+ );
116
+ }
117
+ function p({
118
+ className: e,
119
+ ...r
120
+ }) {
121
+ return /* @__PURE__ */ t(
122
+ a.ScrollUpButton,
123
+ {
124
+ "data-slot": "select-scroll-up-button",
125
+ className: s("flex cursor-default items-center justify-center py-1", e),
126
+ ...r,
127
+ children: /* @__PURE__ */ t(u, { className: "size-4" })
128
+ }
129
+ );
130
+ }
131
+ function m({
132
+ className: e,
133
+ ...r
134
+ }) {
135
+ return /* @__PURE__ */ t(
136
+ a.ScrollDownButton,
137
+ {
138
+ "data-slot": "select-scroll-down-button",
139
+ className: s("flex cursor-default items-center justify-center py-1", e),
140
+ ...r,
141
+ children: /* @__PURE__ */ t(i, { className: "size-4" })
142
+ }
143
+ );
144
+ }
145
+ export {
146
+ x as Select,
147
+ y as SelectContent,
148
+ h as SelectGroup,
149
+ z as SelectItem,
150
+ S as SelectLabel,
151
+ m as SelectScrollDownButton,
152
+ p as SelectScrollUpButton,
153
+ N as SelectSeparator,
154
+ w as SelectTrigger,
155
+ b as SelectValue
156
+ };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
+ declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Separator };
@@ -0,0 +1,26 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import * as n from "@radix-ui/react-separator";
3
+ import { cn as e } from "../lib/utils.js";
4
+ function m({
5
+ className: t,
6
+ orientation: o = "horizontal",
7
+ decorative: r = !0,
8
+ ...a
9
+ }) {
10
+ return /* @__PURE__ */ i(
11
+ n.Root,
12
+ {
13
+ "data-slot": "separator",
14
+ decorative: r,
15
+ orientation: o,
16
+ className: e(
17
+ "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
18
+ t
19
+ ),
20
+ ...a
21
+ }
22
+ );
23
+ }
24
+ export {
25
+ m as Separator
26
+ };
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
3
+ declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
7
+ side?: "top" | "right" | "bottom" | "left";
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
11
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
12
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
13
+ export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
@@ -0,0 +1,117 @@
1
+ import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
+ import * as a from "@radix-ui/react-dialog";
3
+ import { XIcon as l } from "lucide-react";
4
+ import { cn as s } from "../lib/utils.js";
5
+ function h({ ...t }) {
6
+ return /* @__PURE__ */ e(a.Root, { "data-slot": "sheet", ...t });
7
+ }
8
+ function p({ ...t }) {
9
+ return /* @__PURE__ */ e(a.Trigger, { "data-slot": "sheet-trigger", ...t });
10
+ }
11
+ function g({ ...t }) {
12
+ return /* @__PURE__ */ e(a.Close, { "data-slot": "sheet-close", ...t });
13
+ }
14
+ function d({ ...t }) {
15
+ return /* @__PURE__ */ e(a.Portal, { "data-slot": "sheet-portal", ...t });
16
+ }
17
+ function c({
18
+ className: t,
19
+ ...o
20
+ }) {
21
+ return /* @__PURE__ */ e(
22
+ a.Overlay,
23
+ {
24
+ "data-slot": "sheet-overlay",
25
+ className: s(
26
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
27
+ t
28
+ ),
29
+ ...o
30
+ }
31
+ );
32
+ }
33
+ function x({
34
+ className: t,
35
+ children: o,
36
+ side: n = "right",
37
+ ...i
38
+ }) {
39
+ return /* @__PURE__ */ r(d, { children: [
40
+ /* @__PURE__ */ e(c, {}),
41
+ /* @__PURE__ */ r(
42
+ a.Content,
43
+ {
44
+ "data-slot": "sheet-content",
45
+ className: s(
46
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
47
+ n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
48
+ n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
49
+ n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
50
+ n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
51
+ t
52
+ ),
53
+ ...i,
54
+ children: [
55
+ o,
56
+ /* @__PURE__ */ r(a.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
57
+ /* @__PURE__ */ e(l, { className: "size-4" }),
58
+ /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
59
+ ] })
60
+ ]
61
+ }
62
+ )
63
+ ] });
64
+ }
65
+ function b({ className: t, ...o }) {
66
+ return /* @__PURE__ */ e(
67
+ "div",
68
+ {
69
+ "data-slot": "sheet-header",
70
+ className: s("flex flex-col gap-1.5 p-4", t),
71
+ ...o
72
+ }
73
+ );
74
+ }
75
+ function S({ className: t, ...o }) {
76
+ return /* @__PURE__ */ e(
77
+ "div",
78
+ {
79
+ "data-slot": "sheet-footer",
80
+ className: s("mt-auto flex flex-col gap-2 p-4", t),
81
+ ...o
82
+ }
83
+ );
84
+ }
85
+ function y({ className: t, ...o }) {
86
+ return /* @__PURE__ */ e(
87
+ a.Title,
88
+ {
89
+ "data-slot": "sheet-title",
90
+ className: s("text-foreground font-semibold", t),
91
+ ...o
92
+ }
93
+ );
94
+ }
95
+ function N({
96
+ className: t,
97
+ ...o
98
+ }) {
99
+ return /* @__PURE__ */ e(
100
+ a.Description,
101
+ {
102
+ "data-slot": "sheet-description",
103
+ className: s("text-muted-foreground text-sm", t),
104
+ ...o
105
+ }
106
+ );
107
+ }
108
+ export {
109
+ h as Sheet,
110
+ g as SheetClose,
111
+ x as SheetContent,
112
+ N as SheetDescription,
113
+ S as SheetFooter,
114
+ b as SheetHeader,
115
+ y as SheetTitle,
116
+ p as SheetTrigger
117
+ };
@@ -0,0 +1,69 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { Button } from './button';
3
+ import { Input } from './input';
4
+ import { Separator } from './separator';
5
+ import { TooltipContent } from './tooltip';
6
+ import * as React from "react";
7
+ type SidebarContextProps = {
8
+ state: "expanded" | "collapsed";
9
+ open: boolean;
10
+ setOpen: (open: boolean) => void;
11
+ openMobile: boolean;
12
+ setOpenMobile: (open: boolean) => void;
13
+ isMobile: boolean;
14
+ toggleSidebar: () => void;
15
+ };
16
+ declare function useSidebar(): SidebarContextProps;
17
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
18
+ defaultOpen?: boolean;
19
+ open?: boolean;
20
+ onOpenChange?: (open: boolean) => void;
21
+ }): import("react/jsx-runtime").JSX.Element;
22
+ declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
23
+ side?: "left" | "right";
24
+ variant?: "sidebar" | "floating" | "inset";
25
+ collapsible?: "offcanvas" | "icon" | "none";
26
+ }): import("react/jsx-runtime").JSX.Element;
27
+ declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
28
+ declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
29
+ declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): import("react/jsx-runtime").JSX.Element;
30
+ declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
31
+ declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
32
+ declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
33
+ declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
34
+ declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
35
+ declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
36
+ declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
37
+ asChild?: boolean;
38
+ }): import("react/jsx-runtime").JSX.Element;
39
+ declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
40
+ asChild?: boolean;
41
+ }): import("react/jsx-runtime").JSX.Element;
42
+ declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
43
+ declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
44
+ declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
45
+ declare const sidebarMenuButtonVariants: (props?: ({
46
+ variant?: "default" | "outline" | null | undefined;
47
+ size?: "default" | "sm" | "lg" | null | undefined;
48
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
49
+ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
50
+ asChild?: boolean;
51
+ isActive?: boolean;
52
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
53
+ } & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
54
+ declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
55
+ asChild?: boolean;
56
+ showOnHover?: boolean;
57
+ }): import("react/jsx-runtime").JSX.Element;
58
+ declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
59
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
60
+ showIcon?: boolean;
61
+ }): import("react/jsx-runtime").JSX.Element;
62
+ declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
63
+ declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
64
+ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
65
+ asChild?: boolean;
66
+ size?: "sm" | "md";
67
+ isActive?: boolean;
68
+ }): import("react/jsx-runtime").JSX.Element;
69
+ 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, };