@recanica/ui 0.0.0-stage → 0.2.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.
Files changed (147) hide show
  1. package/LICENSE +9 -0
  2. package/dist/components/accordion.d.ts +7 -0
  3. package/dist/components/accordion.js +65 -0
  4. package/dist/components/alert-dialog.d.ts +18 -0
  5. package/dist/components/alert-dialog.js +178 -0
  6. package/dist/components/alert.d.ts +9 -0
  7. package/dist/components/alert.js +66 -0
  8. package/dist/components/app-shell.d.ts +15 -0
  9. package/dist/components/app-shell.js +27 -0
  10. package/dist/components/aspect-ratio.d.ts +3 -0
  11. package/dist/components/aspect-ratio.js +11 -0
  12. package/dist/components/attachment.d.ts +24 -0
  13. package/dist/components/attachment.js +192 -0
  14. package/dist/components/avatar.d.ts +11 -0
  15. package/dist/components/avatar.js +104 -0
  16. package/dist/components/badge.d.ts +12 -0
  17. package/dist/components/badge.js +63 -0
  18. package/dist/components/breadcrumb.d.ts +11 -0
  19. package/dist/components/breadcrumb.js +103 -0
  20. package/dist/components/bubble.d.ts +17 -0
  21. package/dist/components/bubble.js +110 -0
  22. package/dist/components/button-group.d.ts +11 -0
  23. package/dist/components/button-group.js +76 -0
  24. package/dist/components/button.d.ts +10 -0
  25. package/dist/components/button.js +59 -0
  26. package/dist/components/calendar.d.ts +8 -0
  27. package/dist/components/calendar.js +195 -0
  28. package/dist/components/card.d.ts +9 -0
  29. package/dist/components/card.js +90 -0
  30. package/dist/components/carousel.d.ts +19 -0
  31. package/dist/components/carousel.js +199 -0
  32. package/dist/components/chart.d.ts +44 -0
  33. package/dist/components/chart.js +253 -0
  34. package/dist/components/checkbox.d.ts +4 -0
  35. package/dist/components/checkbox.js +33 -0
  36. package/dist/components/choice-card.d.ts +18 -0
  37. package/dist/components/choice-card.js +43 -0
  38. package/dist/components/collapsible.d.ts +5 -0
  39. package/dist/components/collapsible.js +35 -0
  40. package/dist/components/combobox.d.ts +24 -0
  41. package/dist/components/combobox.js +297 -0
  42. package/dist/components/command.d.ts +18 -0
  43. package/dist/components/command.js +177 -0
  44. package/dist/components/context-menu.d.ts +25 -0
  45. package/dist/components/context-menu.js +224 -0
  46. package/dist/components/dialog.d.ts +17 -0
  47. package/dist/components/dialog.js +147 -0
  48. package/dist/components/direction.d.ts +7 -0
  49. package/dist/components/direction.js +15 -0
  50. package/dist/components/drawer.d.ts +13 -0
  51. package/dist/components/drawer.js +129 -0
  52. package/dist/components/dropdown-menu.d.ts +25 -0
  53. package/dist/components/dropdown-menu.js +232 -0
  54. package/dist/components/empty.d.ts +11 -0
  55. package/dist/components/empty.js +102 -0
  56. package/dist/components/field.d.ts +52 -0
  57. package/dist/components/field.js +261 -0
  58. package/dist/components/form.d.ts +24 -0
  59. package/dist/components/form.js +126 -0
  60. package/dist/components/hover-card.d.ts +6 -0
  61. package/dist/components/hover-card.js +39 -0
  62. package/dist/components/input-group.d.ts +16 -0
  63. package/dist/components/input-group.js +160 -0
  64. package/dist/components/input-otp.d.ts +11 -0
  65. package/dist/components/input-otp.js +67 -0
  66. package/dist/components/input.d.ts +3 -0
  67. package/dist/components/input.js +25 -0
  68. package/dist/components/item.d.ts +23 -0
  69. package/dist/components/item.js +187 -0
  70. package/dist/components/kbd.d.ts +3 -0
  71. package/dist/components/kbd.js +31 -0
  72. package/dist/components/label.d.ts +4 -0
  73. package/dist/components/label.js +23 -0
  74. package/dist/components/layout.d.ts +34 -0
  75. package/dist/components/layout.js +46 -0
  76. package/dist/components/loader.d.ts +38 -0
  77. package/dist/components/loader.js +90 -0
  78. package/dist/components/marker.d.ts +11 -0
  79. package/dist/components/marker.js +66 -0
  80. package/dist/components/menubar.d.ts +26 -0
  81. package/dist/components/menubar.js +252 -0
  82. package/dist/components/message-scroller.d.ts +10 -0
  83. package/dist/components/message-scroller.js +118 -0
  84. package/dist/components/message.d.ts +10 -0
  85. package/dist/components/message.js +90 -0
  86. package/dist/components/native-select.d.ts +7 -0
  87. package/dist/components/native-select.js +71 -0
  88. package/dist/components/nav-item.d.ts +18 -0
  89. package/dist/components/nav-item.js +40 -0
  90. package/dist/components/navigation-menu.d.ts +14 -0
  91. package/dist/components/navigation-menu.js +170 -0
  92. package/dist/components/page.d.ts +80 -0
  93. package/dist/components/page.js +84 -0
  94. package/dist/components/pagination.d.ts +13 -0
  95. package/dist/components/pagination.js +122 -0
  96. package/dist/components/popover.d.ts +10 -0
  97. package/dist/components/popover.js +81 -0
  98. package/dist/components/progress.d.ts +4 -0
  99. package/dist/components/progress.js +32 -0
  100. package/dist/components/radio-group.d.ts +5 -0
  101. package/dist/components/radio-group.js +46 -0
  102. package/dist/components/resizable.d.ts +7 -0
  103. package/dist/components/resizable.js +47 -0
  104. package/dist/components/scroll-area.d.ts +5 -0
  105. package/dist/components/scroll-area.js +61 -0
  106. package/dist/components/select.d.ts +15 -0
  107. package/dist/components/select.js +179 -0
  108. package/dist/components/separator.d.ts +4 -0
  109. package/dist/components/separator.js +27 -0
  110. package/dist/components/sheet.d.ts +14 -0
  111. package/dist/components/sheet.js +128 -0
  112. package/dist/components/sidebar.d.ts +69 -0
  113. package/dist/components/sidebar.js +650 -0
  114. package/dist/components/skeleton.d.ts +2 -0
  115. package/dist/components/skeleton.js +15 -0
  116. package/dist/components/slider.d.ts +4 -0
  117. package/dist/components/slider.js +64 -0
  118. package/dist/components/sonner.d.ts +3 -0
  119. package/dist/components/sonner.js +38 -0
  120. package/dist/components/spinner.d.ts +2 -0
  121. package/dist/components/spinner.js +17 -0
  122. package/dist/components/stat.d.ts +47 -0
  123. package/dist/components/stat.js +120 -0
  124. package/dist/components/surface.d.ts +28 -0
  125. package/dist/components/surface.js +39 -0
  126. package/dist/components/switch.d.ts +6 -0
  127. package/dist/components/switch.js +34 -0
  128. package/dist/components/table.d.ts +10 -0
  129. package/dist/components/table.js +115 -0
  130. package/dist/components/tabs.d.ts +11 -0
  131. package/dist/components/tabs.js +92 -0
  132. package/dist/components/textarea.d.ts +3 -0
  133. package/dist/components/textarea.js +22 -0
  134. package/dist/components/toggle-group.d.ts +9 -0
  135. package/dist/components/toggle-group.js +69 -0
  136. package/dist/components/toggle.d.ts +9 -0
  137. package/dist/components/toggle.js +44 -0
  138. package/dist/components/tooltip.d.ts +7 -0
  139. package/dist/components/tooltip.js +56 -0
  140. package/dist/components/web-section.d.ts +40 -0
  141. package/dist/components/web-section.js +72 -0
  142. package/dist/hooks/use-mobile.d.ts +1 -0
  143. package/dist/hooks/use-mobile.js +18 -0
  144. package/dist/lib/utils.d.ts +2 -0
  145. package/dist/lib/utils.js +8 -0
  146. package/package.json +79 -3
  147. package/README.md +0 -3
@@ -0,0 +1,179 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { cn } from "@recanica/ui/lib/utils";
4
+ import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
5
+ import { Select as SelectPrimitive } from "radix-ui";
6
+ function Select({
7
+ ...props
8
+ }) {
9
+ return /* @__PURE__ */ jsx(SelectPrimitive.Root, { "data-slot": "select", ...props });
10
+ }
11
+ function SelectGroup({
12
+ ...props
13
+ }) {
14
+ return /* @__PURE__ */ jsx(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
15
+ }
16
+ function SelectValue({
17
+ ...props
18
+ }) {
19
+ return /* @__PURE__ */ jsx(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
20
+ }
21
+ function SelectTrigger({
22
+ className,
23
+ size = "default",
24
+ children,
25
+ ...props
26
+ }) {
27
+ return /* @__PURE__ */ jsxs(
28
+ SelectPrimitive.Trigger,
29
+ {
30
+ "data-slot": "select-trigger",
31
+ "data-size": size,
32
+ className: cn(
33
+ "flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 group-data-[invalid=true]/field:border-destructive group-data-[invalid=true]/field:bg-destructive/[0.04] group-data-[invalid=true]/field:ring-[3px] group-data-[invalid=true]/field:ring-destructive/15 aria-invalid:bg-destructive/[0.04] aria-invalid:ring-[3px] aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground 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 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
34
+ className
35
+ ),
36
+ ...props,
37
+ children: [
38
+ children,
39
+ /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" }) })
40
+ ]
41
+ }
42
+ );
43
+ }
44
+ function SelectContent({
45
+ className,
46
+ children,
47
+ position = "item-aligned",
48
+ align = "center",
49
+ ...props
50
+ }) {
51
+ return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
52
+ SelectPrimitive.Content,
53
+ {
54
+ "data-slot": "select-content",
55
+ className: cn(
56
+ "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 bg-popover text-popover-foreground shadow-md 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
57
+ position === "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",
58
+ className
59
+ ),
60
+ position,
61
+ align,
62
+ ...props,
63
+ children: [
64
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
65
+ /* @__PURE__ */ jsx(
66
+ SelectPrimitive.Viewport,
67
+ {
68
+ className: cn(
69
+ "p-1",
70
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
71
+ ),
72
+ children
73
+ }
74
+ ),
75
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
76
+ ]
77
+ }
78
+ ) });
79
+ }
80
+ function SelectLabel({
81
+ className,
82
+ ...props
83
+ }) {
84
+ return /* @__PURE__ */ jsx(
85
+ SelectPrimitive.Label,
86
+ {
87
+ "data-slot": "select-label",
88
+ className: cn("px-2 py-1.5 text-xs text-muted-foreground", className),
89
+ ...props
90
+ }
91
+ );
92
+ }
93
+ function SelectItem({
94
+ className,
95
+ children,
96
+ ...props
97
+ }) {
98
+ return /* @__PURE__ */ jsxs(
99
+ SelectPrimitive.Item,
100
+ {
101
+ "data-slot": "select-item",
102
+ className: cn(
103
+ "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 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
104
+ className
105
+ ),
106
+ ...props,
107
+ children: [
108
+ /* @__PURE__ */ jsx(
109
+ "span",
110
+ {
111
+ "data-slot": "select-item-indicator",
112
+ className: "absolute right-2 flex size-3.5 items-center justify-center",
113
+ children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
114
+ }
115
+ ),
116
+ /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
117
+ ]
118
+ }
119
+ );
120
+ }
121
+ function SelectSeparator({
122
+ className,
123
+ ...props
124
+ }) {
125
+ return /* @__PURE__ */ jsx(
126
+ SelectPrimitive.Separator,
127
+ {
128
+ "data-slot": "select-separator",
129
+ className: cn("pointer-events-none -mx-1 my-1 h-px bg-border", className),
130
+ ...props
131
+ }
132
+ );
133
+ }
134
+ function SelectScrollUpButton({
135
+ className,
136
+ ...props
137
+ }) {
138
+ return /* @__PURE__ */ jsx(
139
+ SelectPrimitive.ScrollUpButton,
140
+ {
141
+ "data-slot": "select-scroll-up-button",
142
+ className: cn(
143
+ "flex cursor-default items-center justify-center py-1",
144
+ className
145
+ ),
146
+ ...props,
147
+ children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
148
+ }
149
+ );
150
+ }
151
+ function SelectScrollDownButton({
152
+ className,
153
+ ...props
154
+ }) {
155
+ return /* @__PURE__ */ jsx(
156
+ SelectPrimitive.ScrollDownButton,
157
+ {
158
+ "data-slot": "select-scroll-down-button",
159
+ className: cn(
160
+ "flex cursor-default items-center justify-center py-1",
161
+ className
162
+ ),
163
+ ...props,
164
+ children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
165
+ }
166
+ );
167
+ }
168
+ export {
169
+ Select,
170
+ SelectContent,
171
+ SelectGroup,
172
+ SelectItem,
173
+ SelectLabel,
174
+ SelectScrollDownButton,
175
+ SelectScrollUpButton,
176
+ SelectSeparator,
177
+ SelectTrigger,
178
+ SelectValue
179
+ };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import { Separator as SeparatorPrimitive } from "radix-ui";
3
+ declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): React.JSX.Element;
4
+ export { Separator };
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { cn } from "@recanica/ui/lib/utils";
4
+ import { Separator as SeparatorPrimitive } from "radix-ui";
5
+ function Separator({
6
+ className,
7
+ orientation = "horizontal",
8
+ decorative = true,
9
+ ...props
10
+ }) {
11
+ return /* @__PURE__ */ jsx(
12
+ SeparatorPrimitive.Root,
13
+ {
14
+ "data-slot": "separator",
15
+ decorative,
16
+ orientation,
17
+ className: cn(
18
+ "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
19
+ className
20
+ ),
21
+ ...props
22
+ }
23
+ );
24
+ }
25
+ export {
26
+ Separator
27
+ };
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import { Dialog as SheetPrimitive } from "radix-ui";
3
+ declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): React.JSX.Element;
4
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): React.JSX.Element;
5
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): React.JSX.Element;
6
+ declare function SheetContent({ className, children, side, showCloseButton, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
7
+ side?: "top" | "right" | "bottom" | "left";
8
+ showCloseButton?: boolean;
9
+ }): React.JSX.Element;
10
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
12
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): React.JSX.Element;
13
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): React.JSX.Element;
14
+ export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
@@ -0,0 +1,128 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { cn } from "@recanica/ui/lib/utils";
4
+ import { XIcon } from "lucide-react";
5
+ import { Dialog as SheetPrimitive } from "radix-ui";
6
+ function Sheet({ ...props }) {
7
+ return /* @__PURE__ */ jsx(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
8
+ }
9
+ function SheetTrigger({
10
+ ...props
11
+ }) {
12
+ return /* @__PURE__ */ jsx(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
13
+ }
14
+ function SheetClose({
15
+ ...props
16
+ }) {
17
+ return /* @__PURE__ */ jsx(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
18
+ }
19
+ function SheetPortal({
20
+ ...props
21
+ }) {
22
+ return /* @__PURE__ */ jsx(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
23
+ }
24
+ function SheetOverlay({
25
+ className,
26
+ ...props
27
+ }) {
28
+ return /* @__PURE__ */ jsx(
29
+ SheetPrimitive.Overlay,
30
+ {
31
+ "data-slot": "sheet-overlay",
32
+ className: cn(
33
+ "fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
34
+ className
35
+ ),
36
+ ...props
37
+ }
38
+ );
39
+ }
40
+ function SheetContent({
41
+ className,
42
+ children,
43
+ side = "right",
44
+ showCloseButton = true,
45
+ ...props
46
+ }) {
47
+ return /* @__PURE__ */ jsxs(SheetPortal, { children: [
48
+ /* @__PURE__ */ jsx(SheetOverlay, {}),
49
+ /* @__PURE__ */ jsxs(
50
+ SheetPrimitive.Content,
51
+ {
52
+ "data-slot": "sheet-content",
53
+ className: cn(
54
+ "fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500",
55
+ side === "right" && "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
56
+ side === "left" && "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
57
+ side === "top" && "inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
58
+ side === "bottom" && "inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
59
+ className
60
+ ),
61
+ ...props,
62
+ children: [
63
+ children,
64
+ showCloseButton && /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
65
+ /* @__PURE__ */ jsx(XIcon, { className: "size-4" }),
66
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
67
+ ] })
68
+ ]
69
+ }
70
+ )
71
+ ] });
72
+ }
73
+ function SheetHeader({ className, ...props }) {
74
+ return /* @__PURE__ */ jsx(
75
+ "div",
76
+ {
77
+ "data-slot": "sheet-header",
78
+ className: cn("flex flex-col gap-1.5 p-4", className),
79
+ ...props
80
+ }
81
+ );
82
+ }
83
+ function SheetFooter({ className, ...props }) {
84
+ return /* @__PURE__ */ jsx(
85
+ "div",
86
+ {
87
+ "data-slot": "sheet-footer",
88
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
89
+ ...props
90
+ }
91
+ );
92
+ }
93
+ function SheetTitle({
94
+ className,
95
+ ...props
96
+ }) {
97
+ return /* @__PURE__ */ jsx(
98
+ SheetPrimitive.Title,
99
+ {
100
+ "data-slot": "sheet-title",
101
+ className: cn("font-medium text-foreground", className),
102
+ ...props
103
+ }
104
+ );
105
+ }
106
+ function SheetDescription({
107
+ className,
108
+ ...props
109
+ }) {
110
+ return /* @__PURE__ */ jsx(
111
+ SheetPrimitive.Description,
112
+ {
113
+ "data-slot": "sheet-description",
114
+ className: cn("text-sm text-muted-foreground", className),
115
+ ...props
116
+ }
117
+ );
118
+ }
119
+ export {
120
+ Sheet,
121
+ SheetClose,
122
+ SheetContent,
123
+ SheetDescription,
124
+ SheetFooter,
125
+ SheetHeader,
126
+ SheetTitle,
127
+ SheetTrigger
128
+ };
@@ -0,0 +1,69 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ import { Button } from "@recanica/ui/components/button";
4
+ import { Input } from "@recanica/ui/components/input";
5
+ import { Separator } from "@recanica/ui/components/separator";
6
+ import { TooltipContent } from "@recanica/ui/components/tooltip";
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
+ }): React.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
+ }): React.JSX.Element;
27
+ declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
28
+ declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): React.JSX.Element;
29
+ declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): React.JSX.Element;
30
+ declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): React.JSX.Element;
31
+ declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
32
+ declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
33
+ declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
34
+ declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
35
+ declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
36
+ declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
37
+ asChild?: boolean;
38
+ }): React.JSX.Element;
39
+ declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
40
+ asChild?: boolean;
41
+ }): React.JSX.Element;
42
+ declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
43
+ declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
44
+ declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
45
+ declare const sidebarMenuButtonVariants: (props?: ({
46
+ variant?: "default" | "outline" | null | undefined;
47
+ size?: "default" | "lg" | "sm" | 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>): React.JSX.Element;
54
+ declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
55
+ asChild?: boolean;
56
+ showOnHover?: boolean;
57
+ }): React.JSX.Element;
58
+ declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
59
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
60
+ showIcon?: boolean;
61
+ }): React.JSX.Element;
62
+ declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
63
+ declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): React.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
+ }): React.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, };