@locusgraph/components 0.0.0-stage → 0.1.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 (198) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +51 -2
  3. package/dist/action/button-group.d.ts +11 -0
  4. package/dist/action/button-group.js +27 -0
  5. package/dist/action/button.d.ts +10 -0
  6. package/dist/action/button.js +35 -0
  7. package/dist/action/toggle-group.d.ts +9 -0
  8. package/dist/action/toggle-group.js +22 -0
  9. package/dist/action/toggle.d.ts +9 -0
  10. package/dist/action/toggle.js +26 -0
  11. package/dist/display/avatar.d.ts +6 -0
  12. package/dist/display/avatar.js +14 -0
  13. package/dist/display/badge.d.ts +9 -0
  14. package/dist/display/badge.js +24 -0
  15. package/dist/display/chart/chart-container.d.ts +43 -0
  16. package/dist/display/chart/chart-container.js +59 -0
  17. package/dist/display/chart/chart-legend.d.ts +8 -0
  18. package/dist/display/chart/chart-legend.js +22 -0
  19. package/dist/display/chart/chart-tooltip.d.ts +13 -0
  20. package/dist/display/chart/chart-tooltip.js +49 -0
  21. package/dist/display/chat/attachment/attachment-parts.d.ts +10 -0
  22. package/dist/display/chat/attachment/attachment-parts.js +21 -0
  23. package/dist/display/chat/attachment/attachment.d.ts +16 -0
  24. package/dist/display/chat/attachment/attachment.js +40 -0
  25. package/dist/display/chat/bubble.d.ts +17 -0
  26. package/dist/display/chat/bubble.js +50 -0
  27. package/dist/display/chat/marker.d.ts +11 -0
  28. package/dist/display/chat/marker.js +24 -0
  29. package/dist/display/chat/message-scroller.d.ts +10 -0
  30. package/dist/display/chat/message-scroller.js +25 -0
  31. package/dist/display/chat/message.d.ts +10 -0
  32. package/dist/display/chat/message.js +21 -0
  33. package/dist/display/content/item.d.ts +23 -0
  34. package/dist/display/content/item.js +66 -0
  35. package/dist/display/content/kbd.d.ts +3 -0
  36. package/dist/display/content/kbd.js +9 -0
  37. package/dist/display/media/aspect-ratio.d.ts +3 -0
  38. package/dist/display/media/aspect-ratio.js +7 -0
  39. package/dist/display/media/carousel-controls.d.ts +5 -0
  40. package/dist/display/media/carousel-controls.js +19 -0
  41. package/dist/display/media/carousel.d.ts +25 -0
  42. package/dist/display/media/carousel.js +77 -0
  43. package/dist/display/rule-grid/rule-grid.d.ts +14 -0
  44. package/dist/display/rule-grid/rule-grid.js +35 -0
  45. package/dist/display/separator.d.ts +4 -0
  46. package/dist/display/separator.js +8 -0
  47. package/dist/display/status/alert.d.ts +9 -0
  48. package/dist/display/status/alert.js +24 -0
  49. package/dist/display/status/empty.d.ts +11 -0
  50. package/dist/display/status/empty.js +33 -0
  51. package/dist/display/status/progress.d.ts +4 -0
  52. package/dist/display/status/progress.js +8 -0
  53. package/dist/display/status/skeleton.d.ts +2 -0
  54. package/dist/display/status/skeleton.js +6 -0
  55. package/dist/display/status/spinner.d.ts +2 -0
  56. package/dist/display/status/spinner.js +7 -0
  57. package/dist/display/table.d.ts +10 -0
  58. package/dist/display/table.js +27 -0
  59. package/dist/feedback/toaster.d.ts +5 -0
  60. package/dist/feedback/toaster.js +32 -0
  61. package/dist/form/advanced/calendar-day-button.d.ts +4 -0
  62. package/dist/form/advanced/calendar-day-button.js +19 -0
  63. package/dist/form/advanced/calendar.d.ts +7 -0
  64. package/dist/form/advanced/calendar.js +64 -0
  65. package/dist/form/advanced/combobox/combobox-chips.d.ts +9 -0
  66. package/dist/form/advanced/combobox/combobox-chips.js +20 -0
  67. package/dist/form/advanced/combobox/combobox-items.d.ts +8 -0
  68. package/dist/form/advanced/combobox/combobox-items.js +24 -0
  69. package/dist/form/advanced/combobox/combobox.d.ts +11 -0
  70. package/dist/form/advanced/combobox/combobox.js +26 -0
  71. package/dist/form/advanced/input-otp.d.ts +11 -0
  72. package/dist/form/advanced/input-otp.js +21 -0
  73. package/dist/form/choice/checkbox.d.ts +4 -0
  74. package/dist/form/choice/checkbox.js +9 -0
  75. package/dist/form/choice/radio-group.d.ts +5 -0
  76. package/dist/form/choice/radio-group.js +12 -0
  77. package/dist/form/choice/select.d.ts +15 -0
  78. package/dist/form/choice/select.js +38 -0
  79. package/dist/form/choice/slider.d.ts +4 -0
  80. package/dist/form/choice/slider.js +10 -0
  81. package/dist/form/choice/switch.d.ts +4 -0
  82. package/dist/form/choice/switch.js +8 -0
  83. package/dist/form/field/field-error.d.ts +8 -0
  84. package/dist/form/field/field-error.js +20 -0
  85. package/dist/form/field/field-separator.d.ts +3 -0
  86. package/dist/form/field/field-separator.js +7 -0
  87. package/dist/form/field/field-set.d.ts +6 -0
  88. package/dist/form/field/field-set.js +9 -0
  89. package/dist/form/field/field-text.d.ts +6 -0
  90. package/dist/form/field/field-text.js +13 -0
  91. package/dist/form/field/field.d.ts +9 -0
  92. package/dist/form/field/field.js +33 -0
  93. package/dist/form/hook-form/form.d.ts +24 -0
  94. package/dist/form/hook-form/form.js +57 -0
  95. package/dist/form/input-group.d.ts +16 -0
  96. package/dist/form/input-group.js +65 -0
  97. package/dist/form/input.d.ts +3 -0
  98. package/dist/form/input.js +6 -0
  99. package/dist/form/label.d.ts +4 -0
  100. package/dist/form/label.js +8 -0
  101. package/dist/form/native-select.d.ts +7 -0
  102. package/dist/form/native-select.js +13 -0
  103. package/dist/form/textarea.d.ts +3 -0
  104. package/dist/form/textarea.js +6 -0
  105. package/dist/index.d.ts +96 -0
  106. package/dist/index.js +95 -0
  107. package/dist/layout/accordion.d.ts +7 -0
  108. package/dist/layout/accordion.js +18 -0
  109. package/dist/layout/collapsible.d.ts +5 -0
  110. package/dist/layout/collapsible.js +13 -0
  111. package/dist/layout/resizable.d.ts +7 -0
  112. package/dist/layout/resizable.js +15 -0
  113. package/dist/layout/scroll/direction.d.ts +7 -0
  114. package/dist/layout/scroll/direction.js +8 -0
  115. package/dist/layout/scroll/scroll-area.d.ts +5 -0
  116. package/dist/layout/scroll/scroll-area.js +11 -0
  117. package/dist/layout/sidebar/sidebar-context.d.ts +19 -0
  118. package/dist/layout/sidebar/sidebar-context.js +72 -0
  119. package/dist/layout/sidebar/sidebar-menu-sub.d.ts +12 -0
  120. package/dist/layout/sidebar/sidebar-menu-sub.js +26 -0
  121. package/dist/layout/sidebar/sidebar-menu.d.ts +20 -0
  122. package/dist/layout/sidebar/sidebar-menu.js +53 -0
  123. package/dist/layout/sidebar/sidebar-sections.d.ts +17 -0
  124. package/dist/layout/sidebar/sidebar-sections.js +37 -0
  125. package/dist/layout/sidebar/sidebar.d.ts +11 -0
  126. package/dist/layout/sidebar/sidebar.js +40 -0
  127. package/dist/layout/tabs.d.ts +11 -0
  128. package/dist/layout/tabs.js +30 -0
  129. package/dist/layout/use-mobile.d.ts +1 -0
  130. package/dist/layout/use-mobile.js +15 -0
  131. package/dist/navigation/breadcrumb.d.ts +11 -0
  132. package/dist/navigation/breadcrumb.js +27 -0
  133. package/dist/navigation/menubar/menubar-items.d.ts +15 -0
  134. package/dist/navigation/menubar/menubar-items.js +27 -0
  135. package/dist/navigation/menubar/menubar-sub.d.ts +8 -0
  136. package/dist/navigation/menubar/menubar-sub.js +15 -0
  137. package/dist/navigation/menubar/menubar.d.ts +9 -0
  138. package/dist/navigation/menubar/menubar.js +23 -0
  139. package/dist/navigation/navigation-menu.d.ts +14 -0
  140. package/dist/navigation/navigation-menu.js +31 -0
  141. package/dist/navigation/pagination.d.ts +13 -0
  142. package/dist/navigation/pagination.js +29 -0
  143. package/dist/overlay/alert-dialog.d.ts +18 -0
  144. package/dist/overlay/alert-dialog.js +42 -0
  145. package/dist/overlay/context-menu/context-menu-items.d.ts +15 -0
  146. package/dist/overlay/context-menu/context-menu-items.js +27 -0
  147. package/dist/overlay/context-menu/context-menu-sub.d.ts +8 -0
  148. package/dist/overlay/context-menu/context-menu-sub.js +15 -0
  149. package/dist/overlay/context-menu/context-menu.d.ts +8 -0
  150. package/dist/overlay/context-menu/context-menu.js +20 -0
  151. package/dist/overlay/dialog.d.ts +16 -0
  152. package/dist/overlay/dialog.js +40 -0
  153. package/dist/overlay/floating/command.d.ts +18 -0
  154. package/dist/overlay/floating/command.js +34 -0
  155. package/dist/overlay/floating/drawer.d.ts +13 -0
  156. package/dist/overlay/floating/drawer.js +35 -0
  157. package/dist/overlay/floating/hover-card.d.ts +6 -0
  158. package/dist/overlay/floating/hover-card.js +14 -0
  159. package/dist/overlay/menu/dropdown-menu-choice.d.ts +6 -0
  160. package/dist/overlay/menu/dropdown-menu-choice.js +15 -0
  161. package/dist/overlay/menu/dropdown-menu-item.d.ts +12 -0
  162. package/dist/overlay/menu/dropdown-menu-item.js +17 -0
  163. package/dist/overlay/menu/dropdown-menu-sub.d.ts +8 -0
  164. package/dist/overlay/menu/dropdown-menu-sub.js +15 -0
  165. package/dist/overlay/menu/dropdown-menu.d.ts +8 -0
  166. package/dist/overlay/menu/dropdown-menu.js +20 -0
  167. package/dist/overlay/popover.d.ts +6 -0
  168. package/dist/overlay/popover.js +14 -0
  169. package/dist/overlay/sheet.d.ts +14 -0
  170. package/dist/overlay/sheet.js +40 -0
  171. package/dist/overlay/tooltip.d.ts +7 -0
  172. package/dist/overlay/tooltip.js +17 -0
  173. package/dist/shell/app-header.d.ts +11 -0
  174. package/dist/shell/app-header.js +10 -0
  175. package/dist/shell/app-shell.d.ts +10 -0
  176. package/dist/shell/app-shell.js +8 -0
  177. package/dist/shell/breadcrumbs.d.ts +12 -0
  178. package/dist/shell/breadcrumbs.js +18 -0
  179. package/dist/shell/docs/docs-header.d.ts +22 -0
  180. package/dist/shell/docs/docs-header.js +20 -0
  181. package/dist/shell/docs/docs-shell.d.ts +9 -0
  182. package/dist/shell/docs/docs-shell.js +7 -0
  183. package/dist/shell/docs/docs-sidebar.d.ts +17 -0
  184. package/dist/shell/docs/docs-sidebar.js +12 -0
  185. package/dist/shell/docs/on-this-page.d.ts +11 -0
  186. package/dist/shell/docs/on-this-page.js +12 -0
  187. package/dist/shell/docs/use-active-section.d.ts +2 -0
  188. package/dist/shell/docs/use-active-section.js +54 -0
  189. package/dist/shell/link.d.ts +4 -0
  190. package/dist/shell/link.js +1 -0
  191. package/dist/shell/navigation/app-sidebar.d.ts +19 -0
  192. package/dist/shell/navigation/app-sidebar.js +12 -0
  193. package/dist/shell/navigation/nav-group.d.ts +23 -0
  194. package/dist/shell/navigation/nav-group.js +17 -0
  195. package/dist/shell/theme-toggle.d.ts +7 -0
  196. package/dist/shell/theme-toggle.js +9 -0
  197. package/dist/styles/theme.css +4 -0
  198. package/package.json +65 -3
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "cn";
3
+ import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
4
+ import { buttonVariants } from "../action/button.js";
5
+ function Pagination({ className, ...props }) {
6
+ return (_jsx("nav", { role: "navigation", "aria-label": "pagination", "data-slot": "pagination", className: cn("mx-auto flex w-full justify-center", className), ...props }));
7
+ }
8
+ function PaginationContent({ className, ...props }) {
9
+ return (_jsx("ul", { "data-slot": "pagination-content", className: cn("flex flex-row items-center gap-1", className), ...props }));
10
+ }
11
+ function PaginationItem({ ...props }) {
12
+ return _jsx("li", { "data-slot": "pagination-item", ...props });
13
+ }
14
+ function PaginationLink({ className, isActive, size = "icon", ...props }) {
15
+ return (_jsx("a", { "aria-current": isActive ? "page" : undefined, "data-slot": "pagination-link", "data-active": isActive, className: cn(buttonVariants({
16
+ variant: isActive ? "outline" : "ghost",
17
+ size,
18
+ }), className), ...props }));
19
+ }
20
+ function PaginationPrevious({ className, ...props }) {
21
+ return (_jsxs(PaginationLink, { "aria-label": "Go to previous page", size: "default", className: cn("gap-1 px-2.5 sm:pl-2.5", className), ...props, children: [_jsx(ChevronLeftIcon, {}), _jsx("span", { className: "hidden sm:block", children: "Previous" })] }));
22
+ }
23
+ function PaginationNext({ className, ...props }) {
24
+ return (_jsxs(PaginationLink, { "aria-label": "Go to next page", size: "default", className: cn("gap-1 px-2.5 sm:pr-2.5", className), ...props, children: [_jsx("span", { className: "hidden sm:block", children: "Next" }), _jsx(ChevronRightIcon, {})] }));
25
+ }
26
+ function PaginationEllipsis({ className, ...props }) {
27
+ return (_jsxs("span", { "aria-hidden": true, "data-slot": "pagination-ellipsis", className: cn("flex size-9 items-center justify-center", className), ...props, children: [_jsx(MoreHorizontalIcon, { className: "size-4" }), _jsx("span", { className: "sr-only", children: "More pages" })] }));
28
+ }
29
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
@@ -0,0 +1,18 @@
1
+ import * as AlertDialogPrimitive from "radix-ui/alert-dialog";
2
+ import * as React from "react";
3
+ import { Button } from "../action/button.js";
4
+ declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): React.JSX.Element;
5
+ declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): React.JSX.Element;
6
+ declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): React.JSX.Element;
7
+ declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): React.JSX.Element;
8
+ declare function AlertDialogContent({ className, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
9
+ size?: "default" | "sm";
10
+ }): React.JSX.Element;
11
+ declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
12
+ declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
13
+ declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): React.JSX.Element;
14
+ declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): React.JSX.Element;
15
+ declare function AlertDialogMedia({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
16
+ declare function AlertDialogAction({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
17
+ declare function AlertDialogCancel({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
18
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
@@ -0,0 +1,42 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import * as AlertDialogPrimitive from "radix-ui/alert-dialog";
5
+ import { Button } from "../action/button.js";
6
+ function AlertDialog({ ...props }) {
7
+ return _jsx(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
8
+ }
9
+ function AlertDialogTrigger({ ...props }) {
10
+ return _jsx(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
11
+ }
12
+ function AlertDialogPortal({ ...props }) {
13
+ return _jsx(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
14
+ }
15
+ function AlertDialogOverlay({ className, ...props }) {
16
+ return (_jsx(AlertDialogPrimitive.Overlay, { "data-slot": "alert-dialog-overlay", className: cn("fixed inset-0 z-[300] bg-black/40 backdrop-blur-sm data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", className), ...props }));
17
+ }
18
+ function AlertDialogContent({ className, size = "default", ...props }) {
19
+ return (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Content, { "data-slot": "alert-dialog-content", "data-size": size, className: cn("group/alert-dialog-content fixed top-[50%] left-[50%] z-[300] grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs 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 data-[size=default]:sm:max-w-lg", className), ...props })] }));
20
+ }
21
+ function AlertDialogHeader({ className, ...props }) {
22
+ return (_jsx("div", { "data-slot": "alert-dialog-header", className: cn("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className), ...props }));
23
+ }
24
+ function AlertDialogFooter({ className, ...props }) {
25
+ return (_jsx("div", { "data-slot": "alert-dialog-footer", className: cn("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", className), ...props }));
26
+ }
27
+ function AlertDialogTitle({ className, ...props }) {
28
+ return (_jsx(AlertDialogPrimitive.Title, { "data-slot": "alert-dialog-title", className: cn("text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", className), ...props }));
29
+ }
30
+ function AlertDialogDescription({ className, ...props }) {
31
+ return (_jsx(AlertDialogPrimitive.Description, { "data-slot": "alert-dialog-description", className: cn("text-sm text-muted-foreground", className), ...props }));
32
+ }
33
+ function AlertDialogMedia({ className, ...props }) {
34
+ return (_jsx("div", { "data-slot": "alert-dialog-media", className: cn("mb-2 inline-flex size-16 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8", className), ...props }));
35
+ }
36
+ function AlertDialogAction({ className, variant = "default", size = "default", ...props }) {
37
+ return (_jsx(Button, { variant: variant, size: size, asChild: true, children: _jsx(AlertDialogPrimitive.Action, { "data-slot": "alert-dialog-action", className: cn(className), ...props }) }));
38
+ }
39
+ function AlertDialogCancel({ className, variant = "outline", size = "default", ...props }) {
40
+ return (_jsx(Button, { variant: variant, size: size, asChild: true, children: _jsx(AlertDialogPrimitive.Cancel, { "data-slot": "alert-dialog-cancel", className: cn(className), ...props }) }));
41
+ }
42
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
@@ -0,0 +1,15 @@
1
+ import * as ContextMenuPrimitive from "radix-ui/context-menu";
2
+ import * as React from "react";
3
+ declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
4
+ inset?: boolean;
5
+ variant?: "default" | "destructive";
6
+ }): React.JSX.Element;
7
+ declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>): React.JSX.Element;
8
+ declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): React.JSX.Element;
9
+ declare function ContextMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>): React.JSX.Element;
10
+ declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
11
+ inset?: boolean;
12
+ }): React.JSX.Element;
13
+ declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): React.JSX.Element;
14
+ declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
15
+ export { ContextMenuCheckboxItem, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, };
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import { CheckIcon, CircleIcon } from "lucide-react";
5
+ import * as ContextMenuPrimitive from "radix-ui/context-menu";
6
+ function ContextMenuItem({ className, inset, variant = "default", ...props }) {
7
+ return (_jsx(ContextMenuPrimitive.Item, { "data-slot": "context-menu-item", "data-inset": inset, "data-variant": variant, className: cn("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!", className), ...props }));
8
+ }
9
+ function ContextMenuCheckboxItem({ className, children, checked, ...props }) {
10
+ return (_jsxs(ContextMenuPrimitive.CheckboxItem, { "data-slot": "context-menu-checkbox-item", className: cn("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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", className), checked: checked, ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(ContextMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "size-4" }) }) }), children] }));
11
+ }
12
+ function ContextMenuRadioGroup({ ...props }) {
13
+ return _jsx(ContextMenuPrimitive.RadioGroup, { "data-slot": "context-menu-radio-group", ...props });
14
+ }
15
+ function ContextMenuRadioItem({ className, children, ...props }) {
16
+ return (_jsxs(ContextMenuPrimitive.RadioItem, { "data-slot": "context-menu-radio-item", className: cn("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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", className), ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(ContextMenuPrimitive.ItemIndicator, { children: _jsx(CircleIcon, { className: "size-2 fill-current" }) }) }), children] }));
17
+ }
18
+ function ContextMenuLabel({ className, inset, ...props }) {
19
+ return (_jsx(ContextMenuPrimitive.Label, { "data-slot": "context-menu-label", "data-inset": inset, className: cn("px-2 py-1.5 text-sm font-medium text-foreground data-[inset]:pl-8", className), ...props }));
20
+ }
21
+ function ContextMenuSeparator({ className, ...props }) {
22
+ return (_jsx(ContextMenuPrimitive.Separator, { "data-slot": "context-menu-separator", className: cn("-mx-1 my-1 h-px bg-border", className), ...props }));
23
+ }
24
+ function ContextMenuShortcut({ className, ...props }) {
25
+ return (_jsx("span", { "data-slot": "context-menu-shortcut", className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props }));
26
+ }
27
+ export { ContextMenuCheckboxItem, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, };
@@ -0,0 +1,8 @@
1
+ import * as ContextMenuPrimitive from "radix-ui/context-menu";
2
+ import * as React from "react";
3
+ declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): React.JSX.Element;
4
+ declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
5
+ inset?: boolean;
6
+ }): React.JSX.Element;
7
+ declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): React.JSX.Element;
8
+ export { ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger };
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import { ChevronRightIcon } from "lucide-react";
5
+ import * as ContextMenuPrimitive from "radix-ui/context-menu";
6
+ function ContextMenuSub({ ...props }) {
7
+ return _jsx(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
8
+ }
9
+ function ContextMenuSubTrigger({ className, inset, children, ...props }) {
10
+ return (_jsxs(ContextMenuPrimitive.SubTrigger, { "data-slot": "context-menu-sub-trigger", "data-inset": inset, className: cn("flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", className), ...props, children: [children, _jsx(ChevronRightIcon, { className: "ml-auto" })] }));
11
+ }
12
+ function ContextMenuSubContent({ className, ...props }) {
13
+ return (_jsx(ContextMenuPrimitive.SubContent, { "data-slot": "context-menu-sub-content", className: cn("z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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", className), ...props }));
14
+ }
15
+ export { ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger };
@@ -0,0 +1,8 @@
1
+ import * as ContextMenuPrimitive from "radix-ui/context-menu";
2
+ import * as React from "react";
3
+ declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): React.JSX.Element;
4
+ declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): React.JSX.Element;
5
+ declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): React.JSX.Element;
6
+ declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): React.JSX.Element;
7
+ declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content>): React.JSX.Element;
8
+ export { ContextMenu, ContextMenuContent, ContextMenuGroup, ContextMenuPortal, ContextMenuTrigger };
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import * as ContextMenuPrimitive from "radix-ui/context-menu";
5
+ function ContextMenu({ ...props }) {
6
+ return _jsx(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
7
+ }
8
+ function ContextMenuTrigger({ ...props }) {
9
+ return _jsx(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props });
10
+ }
11
+ function ContextMenuGroup({ ...props }) {
12
+ return _jsx(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props });
13
+ }
14
+ function ContextMenuPortal({ ...props }) {
15
+ return _jsx(ContextMenuPrimitive.Portal, { "data-slot": "context-menu-portal", ...props });
16
+ }
17
+ function ContextMenuContent({ className, ...props }) {
18
+ return (_jsx(ContextMenuPrimitive.Portal, { children: _jsx(ContextMenuPrimitive.Content, { "data-slot": "context-menu-content", className: cn("z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 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", className), ...props }) }));
19
+ }
20
+ export { ContextMenu, ContextMenuContent, ContextMenuGroup, ContextMenuPortal, ContextMenuTrigger };
@@ -0,0 +1,16 @@
1
+ import * as DialogPrimitive from "radix-ui/dialog";
2
+ import * as React from "react";
3
+ declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
4
+ declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
5
+ declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
6
+ declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
7
+ declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
8
+ declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
9
+ showCloseButton?: boolean;
10
+ }): React.JSX.Element;
11
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
12
+ declare function DialogBody({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
13
+ declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
14
+ declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
15
+ declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
16
+ export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import { XIcon } from "lucide-react";
5
+ import * as DialogPrimitive from "radix-ui/dialog";
6
+ function Dialog({ ...props }) {
7
+ return _jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
8
+ }
9
+ function DialogTrigger({ ...props }) {
10
+ return _jsx(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
11
+ }
12
+ function DialogPortal({ ...props }) {
13
+ return _jsx(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
14
+ }
15
+ function DialogClose({ ...props }) {
16
+ return _jsx(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
17
+ }
18
+ function DialogOverlay({ className, ...props }) {
19
+ return (_jsx(DialogPrimitive.Overlay, { "data-slot": "dialog-overlay", className: cn("fixed inset-0 z-[300] bg-black/40 backdrop-blur-sm data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", className), ...props }));
20
+ }
21
+ function DialogContent({ className, children, showCloseButton = true, ...props }) {
22
+ return (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, { "data-slot": "dialog-content", className: cn("fixed top-[50%] left-[50%] z-[300] flex max-h-[calc(100dvh-4rem)] w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded-lg border border-line bg-background shadow-lg duration-200 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 sm:max-w-lg", className), ...props, children: [children, showCloseButton ? (_jsxs(DialogPrimitive.Close, { "data-slot": "dialog-close", className: "absolute top-4 right-4 rounded-sm text-soft opacity-70 transition-opacity hover:text-foreground hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden", children: [_jsx(XIcon, { className: "size-4" }), _jsx("span", { className: "sr-only", children: "Close" })] })) : null] })] }));
23
+ }
24
+ const clearOfCloseButton = "pr-12";
25
+ function DialogHeader({ className, ...props }) {
26
+ return (_jsx("div", { "data-slot": "dialog-header", className: cn("flex flex-col gap-1.5 px-6 pt-6 pb-4", clearOfCloseButton, className), ...props }));
27
+ }
28
+ function DialogBody({ className, ...props }) {
29
+ return (_jsx("div", { "data-slot": "dialog-body", className: cn("no-scrollbar min-h-0 flex-1 space-y-4 overflow-y-auto px-6", className), ...props }));
30
+ }
31
+ function DialogFooter({ className, ...props }) {
32
+ return (_jsx("div", { "data-slot": "dialog-footer", className: cn("mt-auto flex flex-col-reverse gap-2 px-6 pt-4 pb-6 sm:flex-row", className), ...props }));
33
+ }
34
+ function DialogTitle({ className, ...props }) {
35
+ return (_jsx(DialogPrimitive.Title, { "data-slot": "dialog-title", className: cn("text-base font-semibold tracking-tight", className), ...props }));
36
+ }
37
+ function DialogDescription({ className, ...props }) {
38
+ return (_jsx(DialogPrimitive.Description, { "data-slot": "dialog-description", className: cn("text-sm text-soft", className), ...props }));
39
+ }
40
+ export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1,18 @@
1
+ import { Command as CommandPrimitive } from "cmdk";
2
+ import * as React from "react";
3
+ import { Dialog } from "../dialog.js";
4
+ declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): React.JSX.Element;
5
+ declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
6
+ title?: string;
7
+ description?: string;
8
+ className?: string;
9
+ showCloseButton?: boolean;
10
+ }): React.JSX.Element;
11
+ declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): React.JSX.Element;
12
+ declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): React.JSX.Element;
13
+ declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): React.JSX.Element;
14
+ declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): React.JSX.Element;
15
+ declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): React.JSX.Element;
16
+ declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): React.JSX.Element;
17
+ declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
18
+ export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };
@@ -0,0 +1,34 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Command as CommandPrimitive } from "cmdk";
4
+ import { cn } from "cn";
5
+ import { SearchIcon } from "lucide-react";
6
+ import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "../dialog.js";
7
+ function Command({ className, ...props }) {
8
+ return (_jsx(CommandPrimitive, { "data-slot": "command", className: cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", className), ...props }));
9
+ }
10
+ function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = true, ...props }) {
11
+ return (_jsxs(Dialog, { ...props, children: [_jsxs(DialogHeader, { className: "sr-only", children: [_jsx(DialogTitle, { children: title }), _jsx(DialogDescription, { children: description })] }), _jsx(DialogContent, { className: cn("overflow-hidden p-0", className), showCloseButton: showCloseButton, children: _jsx(Command, { className: "**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: children }) })] }));
12
+ }
13
+ function CommandInput({ className, ...props }) {
14
+ return (_jsxs("div", { "data-slot": "command-input-wrapper", className: "flex h-9 items-center gap-2 border-b px-3", children: [_jsx(SearchIcon, { className: "size-4 shrink-0 opacity-50" }), _jsx(CommandPrimitive.Input, { "data-slot": "command-input", className: cn("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className), ...props })] }));
15
+ }
16
+ function CommandList({ className, ...props }) {
17
+ return (_jsx(CommandPrimitive.List, { "data-slot": "command-list", className: cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", className), ...props }));
18
+ }
19
+ function CommandEmpty({ ...props }) {
20
+ return (_jsx(CommandPrimitive.Empty, { "data-slot": "command-empty", className: "py-6 text-center text-sm", ...props }));
21
+ }
22
+ function CommandGroup({ className, ...props }) {
23
+ return (_jsx(CommandPrimitive.Group, { "data-slot": "command-group", className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className), ...props }));
24
+ }
25
+ function CommandSeparator({ className, ...props }) {
26
+ return (_jsx(CommandPrimitive.Separator, { "data-slot": "command-separator", className: cn("-mx-1 h-px bg-border", className), ...props }));
27
+ }
28
+ function CommandItem({ className, ...props }) {
29
+ return (_jsx(CommandPrimitive.Item, { "data-slot": "command-item", className: cn("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", className), ...props }));
30
+ }
31
+ function CommandShortcut({ className, ...props }) {
32
+ return (_jsx("span", { "data-slot": "command-shortcut", className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props }));
33
+ }
34
+ export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import { Drawer as DrawerPrimitive } from "vaul";
3
+ declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
4
+ declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>): React.JSX.Element;
5
+ declare function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>): React.JSX.Element;
6
+ declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>): React.JSX.Element;
7
+ declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>): React.JSX.Element;
8
+ declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>): React.JSX.Element;
9
+ declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
10
+ declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
+ declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>): React.JSX.Element;
12
+ declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>): React.JSX.Element;
13
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, };
@@ -0,0 +1,35 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import { Drawer as DrawerPrimitive } from "vaul";
5
+ function Drawer({ ...props }) {
6
+ return _jsx(DrawerPrimitive.Root, { "data-slot": "drawer", ...props });
7
+ }
8
+ function DrawerTrigger({ ...props }) {
9
+ return _jsx(DrawerPrimitive.Trigger, { "data-slot": "drawer-trigger", ...props });
10
+ }
11
+ function DrawerPortal({ ...props }) {
12
+ return _jsx(DrawerPrimitive.Portal, { "data-slot": "drawer-portal", ...props });
13
+ }
14
+ function DrawerClose({ ...props }) {
15
+ return _jsx(DrawerPrimitive.Close, { "data-slot": "drawer-close", ...props });
16
+ }
17
+ function DrawerOverlay({ className, ...props }) {
18
+ return (_jsx(DrawerPrimitive.Overlay, { "data-slot": "drawer-overlay", className: cn("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", className), ...props }));
19
+ }
20
+ function DrawerContent({ className, children, ...props }) {
21
+ return (_jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [_jsx(DrawerOverlay, {}), _jsxs(DrawerPrimitive.Content, { "data-slot": "drawer-content", className: cn("group/drawer-content fixed z-50 flex h-auto flex-col bg-background", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", className), ...props, children: [_jsx("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), children] })] }));
22
+ }
23
+ function DrawerHeader({ className, ...props }) {
24
+ return (_jsx("div", { "data-slot": "drawer-header", className: cn("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", className), ...props }));
25
+ }
26
+ function DrawerFooter({ className, ...props }) {
27
+ return (_jsx("div", { "data-slot": "drawer-footer", className: cn("mt-auto flex flex-col gap-2 p-4", className), ...props }));
28
+ }
29
+ function DrawerTitle({ className, ...props }) {
30
+ return (_jsx(DrawerPrimitive.Title, { "data-slot": "drawer-title", className: cn("font-semibold text-foreground", className), ...props }));
31
+ }
32
+ function DrawerDescription({ className, ...props }) {
33
+ return (_jsx(DrawerPrimitive.Description, { "data-slot": "drawer-description", className: cn("text-sm text-muted-foreground", className), ...props }));
34
+ }
35
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, };
@@ -0,0 +1,6 @@
1
+ import * as HoverCardPrimitive from "radix-ui/hover-card";
2
+ import * as React from "react";
3
+ declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>): React.JSX.Element;
4
+ declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>): React.JSX.Element;
5
+ declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): React.JSX.Element;
6
+ export { HoverCard, HoverCardContent, HoverCardTrigger };
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import * as HoverCardPrimitive from "radix-ui/hover-card";
5
+ function HoverCard({ ...props }) {
6
+ return _jsx(HoverCardPrimitive.Root, { "data-slot": "hover-card", ...props });
7
+ }
8
+ function HoverCardTrigger({ ...props }) {
9
+ return _jsx(HoverCardPrimitive.Trigger, { "data-slot": "hover-card-trigger", ...props });
10
+ }
11
+ function HoverCardContent({ className, align = "center", sideOffset = 4, ...props }) {
12
+ return (_jsx(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: _jsx(HoverCardPrimitive.Content, { "data-slot": "hover-card-content", align: align, sideOffset: sideOffset, className: cn("z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden 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", className), ...props }) }));
13
+ }
14
+ export { HoverCard, HoverCardContent, HoverCardTrigger };
@@ -0,0 +1,6 @@
1
+ import * as DropdownMenuPrimitive from "radix-ui/dropdown-menu";
2
+ import type * as React from "react";
3
+ declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): React.JSX.Element;
4
+ declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React.JSX.Element;
5
+ declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): React.JSX.Element;
6
+ export { DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem };
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import { CheckIcon, CircleIcon } from "lucide-react";
5
+ import * as DropdownMenuPrimitive from "radix-ui/dropdown-menu";
6
+ function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
7
+ return (_jsxs(DropdownMenuPrimitive.CheckboxItem, { "data-slot": "dropdown-menu-checkbox-item", className: cn("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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", className), checked: checked, ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "size-4" }) }) }), children] }));
8
+ }
9
+ function DropdownMenuRadioGroup({ ...props }) {
10
+ return _jsx(DropdownMenuPrimitive.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props });
11
+ }
12
+ function DropdownMenuRadioItem({ className, children, ...props }) {
13
+ return (_jsxs(DropdownMenuPrimitive.RadioItem, { "data-slot": "dropdown-menu-radio-item", className: cn("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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", className), ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CircleIcon, { className: "size-2 fill-current" }) }) }), children] }));
14
+ }
15
+ export { DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem };
@@ -0,0 +1,12 @@
1
+ import * as DropdownMenuPrimitive from "radix-ui/dropdown-menu";
2
+ import type * as React from "react";
3
+ declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
4
+ inset?: boolean;
5
+ variant?: "default" | "destructive";
6
+ }): React.JSX.Element;
7
+ declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
8
+ inset?: boolean;
9
+ }): React.JSX.Element;
10
+ declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
11
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
12
+ export { DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut };
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import * as DropdownMenuPrimitive from "radix-ui/dropdown-menu";
5
+ function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
6
+ return (_jsx(DropdownMenuPrimitive.Item, { "data-slot": "dropdown-menu-item", "data-inset": inset, "data-variant": variant, className: cn("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!", className), ...props }));
7
+ }
8
+ function DropdownMenuLabel({ className, inset, ...props }) {
9
+ return (_jsx(DropdownMenuPrimitive.Label, { "data-slot": "dropdown-menu-label", "data-inset": inset, className: cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className), ...props }));
10
+ }
11
+ function DropdownMenuSeparator({ className, ...props }) {
12
+ return (_jsx(DropdownMenuPrimitive.Separator, { "data-slot": "dropdown-menu-separator", className: cn("-mx-1 my-1 h-px bg-border", className), ...props }));
13
+ }
14
+ function DropdownMenuShortcut({ className, ...props }) {
15
+ return (_jsx("span", { "data-slot": "dropdown-menu-shortcut", className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props }));
16
+ }
17
+ export { DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut };
@@ -0,0 +1,8 @@
1
+ import * as DropdownMenuPrimitive from "radix-ui/dropdown-menu";
2
+ import type * as React from "react";
3
+ declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React.JSX.Element;
4
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
5
+ inset?: boolean;
6
+ }): React.JSX.Element;
7
+ declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React.JSX.Element;
8
+ export { DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger };
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import { ChevronRightIcon } from "lucide-react";
5
+ import * as DropdownMenuPrimitive from "radix-ui/dropdown-menu";
6
+ function DropdownMenuSub({ ...props }) {
7
+ return _jsx(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
8
+ }
9
+ function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
10
+ return (_jsxs(DropdownMenuPrimitive.SubTrigger, { "data-slot": "dropdown-menu-sub-trigger", "data-inset": inset, className: cn("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", className), ...props, children: [children, _jsx(ChevronRightIcon, { className: "ml-auto size-4" })] }));
11
+ }
12
+ function DropdownMenuSubContent({ className, ...props }) {
13
+ return (_jsx(DropdownMenuPrimitive.SubContent, { "data-slot": "dropdown-menu-sub-content", className: cn("z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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", className), ...props }));
14
+ }
15
+ export { DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger };
@@ -0,0 +1,8 @@
1
+ import * as DropdownMenuPrimitive from "radix-ui/dropdown-menu";
2
+ import type * as React from "react";
3
+ declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
4
+ declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React.JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React.JSX.Element;
6
+ declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React.JSX.Element;
7
+ declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): React.JSX.Element;
8
+ export { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuTrigger, };
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import * as DropdownMenuPrimitive from "radix-ui/dropdown-menu";
5
+ function DropdownMenu({ ...props }) {
6
+ return _jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
7
+ }
8
+ function DropdownMenuPortal({ ...props }) {
9
+ return _jsx(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
10
+ }
11
+ function DropdownMenuTrigger({ ...props }) {
12
+ return _jsx(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
13
+ }
14
+ function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
15
+ return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { "data-slot": "dropdown-menu-content", sideOffset: sideOffset, className: cn("z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 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", className), ...props }) }));
16
+ }
17
+ function DropdownMenuGroup({ ...props }) {
18
+ return _jsx(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
19
+ }
20
+ export { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuTrigger, };
@@ -0,0 +1,6 @@
1
+ import * as PopoverPrimitive from "radix-ui/popover";
2
+ import * as React from "react";
3
+ declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): React.JSX.Element;
4
+ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): React.JSX.Element;
5
+ declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): React.JSX.Element;
6
+ export { Popover, PopoverContent, PopoverTrigger };
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import * as PopoverPrimitive from "radix-ui/popover";
5
+ function Popover({ ...props }) {
6
+ return _jsx(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
7
+ }
8
+ function PopoverTrigger({ ...props }) {
9
+ return _jsx(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
10
+ }
11
+ function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
12
+ return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { "data-slot": "popover-content", align: align, sideOffset: sideOffset, className: cn("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props }) }));
13
+ }
14
+ export { Popover, PopoverContent, PopoverTrigger };
@@ -0,0 +1,14 @@
1
+ import * as SheetPrimitive from "radix-ui/dialog";
2
+ import * as React from "react";
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, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, };