@turingpaper/ui 0.0.1-test.1 → 0.0.1-test.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/accordion.mjs +46 -0
  2. package/dist/alert-dialog.mjs +113 -0
  3. package/dist/avatar.mjs +42 -0
  4. package/dist/badge.mjs +26 -0
  5. package/dist/breadcrumb.mjs +90 -0
  6. package/dist/button.mjs +26 -38
  7. package/dist/card.mjs +62 -96
  8. package/dist/chart.mjs +208 -0
  9. package/dist/checkbox.mjs +27 -0
  10. package/dist/collapsible.mjs +7 -0
  11. package/dist/command.mjs +109 -0
  12. package/dist/components/accordion.d.ts +6 -0
  13. package/dist/components/alert-dialog.d.ts +20 -0
  14. package/dist/components/avatar.d.ts +5 -0
  15. package/dist/components/badge.d.ts +9 -0
  16. package/dist/components/breadcrumb.d.ts +19 -0
  17. package/dist/components/button.d.ts +5 -4
  18. package/dist/components/card.d.ts +7 -10
  19. package/dist/components/chart.d.ts +62 -0
  20. package/dist/components/checkbox.d.ts +3 -0
  21. package/dist/components/collapsible.d.ts +4 -0
  22. package/dist/components/command.d.ts +80 -0
  23. package/dist/components/dialog.d.ts +19 -0
  24. package/dist/components/drawer.d.ts +22 -0
  25. package/dist/components/dropdown-menu.d.ts +23 -0
  26. package/dist/components/hover-card.d.ts +5 -0
  27. package/dist/components/input-group.d.ts +16 -0
  28. package/dist/components/input-otp.d.ts +34 -0
  29. package/dist/components/input.d.ts +1 -1
  30. package/dist/components/label.d.ts +3 -0
  31. package/dist/components/pagination.d.ts +28 -0
  32. package/dist/components/popover.d.ts +5 -0
  33. package/dist/components/progress.d.ts +3 -0
  34. package/dist/components/radio-group.d.ts +4 -0
  35. package/dist/components/scroll-area.d.ts +4 -0
  36. package/dist/components/select.d.ts +12 -0
  37. package/dist/components/separator.d.ts +3 -0
  38. package/dist/components/sheet.d.ts +25 -0
  39. package/dist/components/skeleton.d.ts +2 -0
  40. package/dist/components/slider.d.ts +3 -0
  41. package/dist/components/switch.d.ts +3 -0
  42. package/dist/components/table.d.ts +10 -0
  43. package/dist/components/tabs.d.ts +6 -0
  44. package/dist/components/textarea.d.ts +3 -0
  45. package/dist/components/toggle-group.d.ts +4 -0
  46. package/dist/components/toggle.d.ts +7 -0
  47. package/dist/components/tooltip.d.ts +6 -0
  48. package/dist/dialog.mjs +100 -0
  49. package/dist/drawer.mjs +98 -0
  50. package/dist/dropdown-menu.mjs +143 -0
  51. package/dist/hover-card.mjs +23 -0
  52. package/dist/input-group.mjs +141 -0
  53. package/dist/input-otp.mjs +48 -0
  54. package/dist/input.mjs +15 -13
  55. package/dist/label.mjs +19 -0
  56. package/dist/pagination.mjs +105 -0
  57. package/dist/popover.mjs +23 -0
  58. package/dist/progress.mjs +26 -0
  59. package/dist/provider.mjs +1 -1
  60. package/dist/radio-group.mjs +31 -0
  61. package/dist/scroll-area.mjs +38 -0
  62. package/dist/select.mjs +121 -0
  63. package/dist/separator.mjs +24 -0
  64. package/dist/sheet.mjs +110 -0
  65. package/dist/skeleton.mjs +17 -0
  66. package/dist/slider.mjs +23 -0
  67. package/dist/styles.css +1 -1
  68. package/dist/switch.mjs +27 -0
  69. package/dist/table.mjs +87 -0
  70. package/dist/tabs.mjs +46 -0
  71. package/dist/textarea.mjs +18 -0
  72. package/dist/toggle-group.mjs +41 -0
  73. package/dist/toggle.mjs +37 -0
  74. package/dist/tooltip.mjs +23 -0
  75. package/package.json +138 -2
@@ -0,0 +1,22 @@
1
+ import { Drawer as DrawerPrimitive } from 'vaul';
2
+ import * as React from "react";
3
+ declare const Drawer: {
4
+ ({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ declare const DrawerTrigger: React.ForwardRefExoticComponent<import('@radix-ui/react-dialog').DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
8
+ declare const DrawerPortal: typeof import('vaul').Portal;
9
+ declare const DrawerClose: React.ForwardRefExoticComponent<import('@radix-ui/react-dialog').DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-dialog').DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-dialog').DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const DrawerHeader: {
13
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ declare const DrawerFooter: {
17
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-dialog').DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
21
+ declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-dialog').DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
22
+ export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
@@ -0,0 +1,23 @@
1
+ import * as React from "react";
2
+ import * as DropdownMenuPrimitive from "radix-ui";
3
+ declare const DropdownMenu: any;
4
+ declare const DropdownMenuTrigger: any;
5
+ declare const DropdownMenuGroup: any;
6
+ declare const DropdownMenuPortal: typeof DropdownMenuPrimitive.Portal;
7
+ declare const DropdownMenuSub: any;
8
+ declare const DropdownMenuRadioGroup: typeof DropdownMenuPrimitive.RadioGroup;
9
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<any>;
10
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<any>;
11
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<any>;
12
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<any>;
13
+ declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<any>;
14
+ declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<any>;
15
+ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<{
16
+ inset?: boolean;
17
+ } & React.RefAttributes<unknown>>;
18
+ declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
19
+ declare const DropdownMenuShortcut: {
20
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
21
+ displayName: string;
22
+ };
23
+ export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const HoverCard: any;
3
+ declare const HoverCardTrigger: any;
4
+ declare const HoverCardContent: React.ForwardRefExoticComponent<any>;
5
+ export { HoverCard, HoverCardTrigger, HoverCardContent };
@@ -0,0 +1,16 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { Button } from './button';
3
+ import * as React from "react";
4
+ declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
5
+ declare const inputGroupAddonVariants: (props?: ({
6
+ align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
9
+ declare const inputGroupButtonVariants: (props?: ({
10
+ size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
11
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
+ declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): import("react/jsx-runtime").JSX.Element;
13
+ declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
14
+ declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
15
+ declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
16
+ export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
@@ -0,0 +1,34 @@
1
+ import * as React from "react";
2
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
3
+ value?: string;
4
+ onChange?: (newValue: string) => unknown;
5
+ maxLength: number;
6
+ textAlign?: "left" | "center" | "right";
7
+ onComplete?: (...args: any[]) => unknown;
8
+ pushPasswordManagerStrategy?: "increase-width" | "none";
9
+ pasteTransformer?: (pasted: string) => string;
10
+ containerClassName?: string;
11
+ noScriptCSSFallback?: string | null;
12
+ } & {
13
+ render: (props: import('input-otp').RenderProps) => React.ReactNode;
14
+ children?: never;
15
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
16
+ value?: string;
17
+ onChange?: (newValue: string) => unknown;
18
+ maxLength: number;
19
+ textAlign?: "left" | "center" | "right";
20
+ onComplete?: (...args: any[]) => unknown;
21
+ pushPasswordManagerStrategy?: "increase-width" | "none";
22
+ pasteTransformer?: (pasted: string) => string;
23
+ containerClassName?: string;
24
+ noScriptCSSFallback?: string | null;
25
+ } & {
26
+ render?: never;
27
+ children: React.ReactNode;
28
+ } & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
29
+ declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
30
+ declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
31
+ index: number;
32
+ } & React.RefAttributes<HTMLDivElement>>;
33
+ declare const InputOTPSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
34
+ export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
@@ -1,3 +1,3 @@
1
1
  import * as React from "react";
2
- declare function Input({ className, type, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
2
+ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
3
3
  export { Input };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare const Label: React.ForwardRefExoticComponent<any>;
3
+ export { Label };
@@ -0,0 +1,28 @@
1
+ import { ButtonProps } from './button';
2
+ import * as React from "react";
3
+ declare const Pagination: {
4
+ ({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
8
+ declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
9
+ type PaginationLinkProps = {
10
+ isActive?: boolean;
11
+ } & Pick<ButtonProps, "size"> & React.ComponentProps<"a">;
12
+ declare const PaginationLink: {
13
+ ({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ declare const PaginationPrevious: {
17
+ ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ declare const PaginationNext: {
21
+ ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
22
+ displayName: string;
23
+ };
24
+ declare const PaginationEllipsis: {
25
+ ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
26
+ displayName: string;
27
+ };
28
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const Popover: any;
3
+ declare const PopoverTrigger: any;
4
+ declare const PopoverContent: React.ForwardRefExoticComponent<any>;
5
+ export { Popover, PopoverTrigger, PopoverContent };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare const Progress: React.ForwardRefExoticComponent<any>;
3
+ export { Progress };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ declare const RadioGroup: React.ForwardRefExoticComponent<any>;
3
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<any>;
4
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ declare const ScrollArea: React.ForwardRefExoticComponent<any>;
3
+ declare const ScrollBar: React.ForwardRefExoticComponent<any>;
4
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ declare const Select: any;
3
+ declare const SelectGroup: any;
4
+ declare const SelectValue: any;
5
+ declare const SelectTrigger: React.ForwardRefExoticComponent<any>;
6
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<any>;
7
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<any>;
8
+ declare const SelectContent: React.ForwardRefExoticComponent<any>;
9
+ declare const SelectLabel: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
10
+ declare const SelectItem: React.ForwardRefExoticComponent<any>;
11
+ declare const SelectSeparator: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
12
+ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare const Separator: React.ForwardRefExoticComponent<any>;
3
+ export { Separator };
@@ -0,0 +1,25 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ import * as SheetPrimitive from "radix-ui";
4
+ declare const Sheet: any;
5
+ declare const SheetTrigger: any;
6
+ declare const SheetClose: any;
7
+ declare const SheetPortal: typeof SheetPrimitive.Portal;
8
+ declare const SheetOverlay: React.ForwardRefExoticComponent<any>;
9
+ declare const sheetVariants: (props?: ({
10
+ side?: "left" | "right" | "top" | "bottom" | null | undefined;
11
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
+ interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
13
+ }
14
+ declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<any>>;
15
+ declare const SheetHeader: {
16
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
17
+ displayName: string;
18
+ };
19
+ declare const SheetFooter: {
20
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
21
+ displayName: string;
22
+ };
23
+ declare const SheetTitle: React.ForwardRefExoticComponent<any>;
24
+ declare const SheetDescription: React.ForwardRefExoticComponent<any>;
25
+ export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
@@ -0,0 +1,2 @@
1
+ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
2
+ export { Skeleton };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare const Slider: React.ForwardRefExoticComponent<any>;
3
+ export { Slider };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare const Switch: React.ForwardRefExoticComponent<any>;
3
+ export { Switch };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
3
+ declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
4
+ declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
5
+ declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
6
+ declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
7
+ declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
8
+ declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
9
+ declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
10
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare const Tabs: any;
3
+ declare const TabsList: React.ForwardRefExoticComponent<any>;
4
+ declare const TabsTrigger: React.ForwardRefExoticComponent<any>;
5
+ declare const TabsContent: React.ForwardRefExoticComponent<any>;
6
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare const Textarea: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
3
+ export { Textarea };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ declare const ToggleGroup: React.ForwardRefExoticComponent<any>;
3
+ declare const ToggleGroupItem: React.ForwardRefExoticComponent<any>;
4
+ export { ToggleGroup, ToggleGroupItem };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ declare const toggleVariants: (props?: ({
3
+ variant?: "default" | "outline" | null | undefined;
4
+ size?: "default" | "sm" | "lg" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ declare const Toggle: React.ForwardRefExoticComponent<any>;
7
+ export { Toggle, toggleVariants };
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare const TooltipProvider: any;
3
+ declare const Tooltip: any;
4
+ declare const TooltipTrigger: any;
5
+ declare const TooltipContent: React.ForwardRefExoticComponent<any>;
6
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -0,0 +1,100 @@
1
+ import { jsx as o, jsxs as n } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import * as e from "radix-ui";
4
+ import { X as c } from "lucide-react";
5
+ import { cn as i } from "./utils.mjs";
6
+ const b = e.Root, w = e.Trigger, m = e.Portal, h = e.Close, d = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
7
+ e.Overlay,
8
+ {
9
+ ref: s,
10
+ className: i(
11
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
12
+ a
13
+ ),
14
+ ...t
15
+ }
16
+ ));
17
+ d.displayName = e.Overlay.displayName;
18
+ const f = l.forwardRef(({ className: a, children: t, ...s }, r) => /* @__PURE__ */ n(m, { children: [
19
+ /* @__PURE__ */ o(d, {}),
20
+ /* @__PURE__ */ n(
21
+ e.Content,
22
+ {
23
+ ref: r,
24
+ className: i(
25
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
26
+ a
27
+ ),
28
+ ...s,
29
+ children: [
30
+ t,
31
+ /* @__PURE__ */ n(e.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
32
+ /* @__PURE__ */ o(c, { className: "h-4 w-4" }),
33
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
34
+ ] })
35
+ ]
36
+ }
37
+ )
38
+ ] }));
39
+ f.displayName = e.Content.displayName;
40
+ const p = ({
41
+ className: a,
42
+ ...t
43
+ }) => /* @__PURE__ */ o(
44
+ "div",
45
+ {
46
+ className: i(
47
+ "flex flex-col space-y-1.5 text-center sm:text-left",
48
+ a
49
+ ),
50
+ ...t
51
+ }
52
+ );
53
+ p.displayName = "DialogHeader";
54
+ const g = ({
55
+ className: a,
56
+ ...t
57
+ }) => /* @__PURE__ */ o(
58
+ "div",
59
+ {
60
+ className: i(
61
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
62
+ a
63
+ ),
64
+ ...t
65
+ }
66
+ );
67
+ g.displayName = "DialogFooter";
68
+ const u = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
69
+ e.Title,
70
+ {
71
+ ref: s,
72
+ className: i(
73
+ "text-lg font-semibold leading-none tracking-tight",
74
+ a
75
+ ),
76
+ ...t
77
+ }
78
+ ));
79
+ u.displayName = e.Title.displayName;
80
+ const y = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
81
+ e.Description,
82
+ {
83
+ ref: s,
84
+ className: i("text-sm text-muted-foreground", a),
85
+ ...t
86
+ }
87
+ ));
88
+ y.displayName = e.Description.displayName;
89
+ export {
90
+ b as Dialog,
91
+ h as DialogClose,
92
+ f as DialogContent,
93
+ y as DialogDescription,
94
+ g as DialogFooter,
95
+ p as DialogHeader,
96
+ d as DialogOverlay,
97
+ m as DialogPortal,
98
+ u as DialogTitle,
99
+ w as DialogTrigger
100
+ };
@@ -0,0 +1,98 @@
1
+ import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import { Drawer as a } from "vaul";
4
+ import { cn as s } from "./utils.mjs";
5
+ const n = ({
6
+ shouldScaleBackground: e = !0,
7
+ ...r
8
+ }) => /* @__PURE__ */ t(
9
+ a.Root,
10
+ {
11
+ shouldScaleBackground: e,
12
+ ...r
13
+ }
14
+ );
15
+ n.displayName = "Drawer";
16
+ const u = a.Trigger, c = a.Portal, b = a.Close, d = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
17
+ a.Overlay,
18
+ {
19
+ ref: o,
20
+ className: s("fixed inset-0 z-50 bg-black/80", e),
21
+ ...r
22
+ }
23
+ ));
24
+ d.displayName = a.Overlay.displayName;
25
+ const p = l.forwardRef(({ className: e, children: r, ...o }, m) => /* @__PURE__ */ i(c, { children: [
26
+ /* @__PURE__ */ t(d, {}),
27
+ /* @__PURE__ */ i(
28
+ a.Content,
29
+ {
30
+ ref: m,
31
+ className: s(
32
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
33
+ e
34
+ ),
35
+ ...o,
36
+ children: [
37
+ /* @__PURE__ */ t("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
38
+ r
39
+ ]
40
+ }
41
+ )
42
+ ] }));
43
+ p.displayName = "DrawerContent";
44
+ const f = ({
45
+ className: e,
46
+ ...r
47
+ }) => /* @__PURE__ */ t(
48
+ "div",
49
+ {
50
+ className: s("grid gap-1.5 p-4 text-center sm:text-left", e),
51
+ ...r
52
+ }
53
+ );
54
+ f.displayName = "DrawerHeader";
55
+ const w = ({
56
+ className: e,
57
+ ...r
58
+ }) => /* @__PURE__ */ t(
59
+ "div",
60
+ {
61
+ className: s("mt-auto flex flex-col gap-2 p-4", e),
62
+ ...r
63
+ }
64
+ );
65
+ w.displayName = "DrawerFooter";
66
+ const D = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
67
+ a.Title,
68
+ {
69
+ ref: o,
70
+ className: s(
71
+ "text-lg font-semibold leading-none tracking-tight",
72
+ e
73
+ ),
74
+ ...r
75
+ }
76
+ ));
77
+ D.displayName = a.Title.displayName;
78
+ const x = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
79
+ a.Description,
80
+ {
81
+ ref: o,
82
+ className: s("text-sm text-muted-foreground", e),
83
+ ...r
84
+ }
85
+ ));
86
+ x.displayName = a.Description.displayName;
87
+ export {
88
+ n as Drawer,
89
+ b as DrawerClose,
90
+ p as DrawerContent,
91
+ x as DrawerDescription,
92
+ w as DrawerFooter,
93
+ f as DrawerHeader,
94
+ d as DrawerOverlay,
95
+ c as DrawerPortal,
96
+ D as DrawerTitle,
97
+ u as DrawerTrigger
98
+ };
@@ -0,0 +1,143 @@
1
+ import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
+ import * as d from "react";
3
+ import * as e from "radix-ui";
4
+ import { ChevronRight as m, Check as c, Circle as p } from "lucide-react";
5
+ import { cn as s } from "./utils.mjs";
6
+ const R = e.Root, I = e.Trigger, S = e.Group, C = e.Portal, z = e.Sub, k = e.RadioGroup, u = d.forwardRef(({ className: o, inset: t, children: a, ...r }, i) => /* @__PURE__ */ l(
7
+ e.SubTrigger,
8
+ {
9
+ ref: i,
10
+ className: s(
11
+ "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
12
+ t && "pl-8",
13
+ o
14
+ ),
15
+ ...r,
16
+ children: [
17
+ a,
18
+ /* @__PURE__ */ n(m, { className: "ml-auto" })
19
+ ]
20
+ }
21
+ ));
22
+ u.displayName = e.SubTrigger.displayName;
23
+ const f = d.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ n(
24
+ e.SubContent,
25
+ {
26
+ ref: a,
27
+ className: s(
28
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 origin-[--radix-dropdown-menu-content-transform-origin]",
29
+ o
30
+ ),
31
+ ...t
32
+ }
33
+ ));
34
+ f.displayName = e.SubContent.displayName;
35
+ const g = d.forwardRef(({ className: o, sideOffset: t = 4, ...a }, r) => /* @__PURE__ */ n(e.Portal, { children: /* @__PURE__ */ n(
36
+ e.Content,
37
+ {
38
+ ref: r,
39
+ sideOffset: t,
40
+ className: s(
41
+ "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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 origin-[--radix-dropdown-menu-content-transform-origin]",
42
+ o
43
+ ),
44
+ ...a
45
+ }
46
+ ) }));
47
+ g.displayName = e.Content.displayName;
48
+ const w = d.forwardRef(({ className: o, inset: t, ...a }, r) => /* @__PURE__ */ n(
49
+ e.Item,
50
+ {
51
+ ref: r,
52
+ className: s(
53
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
54
+ t && "pl-8",
55
+ o
56
+ ),
57
+ ...a
58
+ }
59
+ ));
60
+ w.displayName = e.Item.displayName;
61
+ const b = d.forwardRef(({ className: o, children: t, checked: a, ...r }, i) => /* @__PURE__ */ l(
62
+ e.CheckboxItem,
63
+ {
64
+ ref: i,
65
+ className: s(
66
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
67
+ o
68
+ ),
69
+ checked: a,
70
+ ...r,
71
+ children: [
72
+ /* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(c, { className: "h-4 w-4" }) }) }),
73
+ t
74
+ ]
75
+ }
76
+ ));
77
+ b.displayName = e.CheckboxItem.displayName;
78
+ const h = d.forwardRef(({ className: o, children: t, ...a }, r) => /* @__PURE__ */ l(
79
+ e.RadioItem,
80
+ {
81
+ ref: r,
82
+ className: s(
83
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
84
+ o
85
+ ),
86
+ ...a,
87
+ children: [
88
+ /* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(p, { className: "h-2 w-2 fill-current" }) }) }),
89
+ t
90
+ ]
91
+ }
92
+ ));
93
+ h.displayName = e.RadioItem.displayName;
94
+ const x = d.forwardRef(({ className: o, inset: t, ...a }, r) => /* @__PURE__ */ n(
95
+ e.Label,
96
+ {
97
+ ref: r,
98
+ className: s(
99
+ "px-2 py-1.5 text-sm font-semibold",
100
+ t && "pl-8",
101
+ o
102
+ ),
103
+ ...a
104
+ }
105
+ ));
106
+ x.displayName = e.Label.displayName;
107
+ const N = d.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ n(
108
+ e.Separator,
109
+ {
110
+ ref: a,
111
+ className: s("-mx-1 my-1 h-px bg-muted", o),
112
+ ...t
113
+ }
114
+ ));
115
+ N.displayName = e.Separator.displayName;
116
+ const y = ({
117
+ className: o,
118
+ ...t
119
+ }) => /* @__PURE__ */ n(
120
+ "span",
121
+ {
122
+ className: s("ml-auto text-xs tracking-widest opacity-60", o),
123
+ ...t
124
+ }
125
+ );
126
+ y.displayName = "DropdownMenuShortcut";
127
+ export {
128
+ R as DropdownMenu,
129
+ b as DropdownMenuCheckboxItem,
130
+ g as DropdownMenuContent,
131
+ S as DropdownMenuGroup,
132
+ w as DropdownMenuItem,
133
+ x as DropdownMenuLabel,
134
+ C as DropdownMenuPortal,
135
+ k as DropdownMenuRadioGroup,
136
+ h as DropdownMenuRadioItem,
137
+ N as DropdownMenuSeparator,
138
+ y as DropdownMenuShortcut,
139
+ z as DropdownMenuSub,
140
+ f as DropdownMenuSubContent,
141
+ u as DropdownMenuSubTrigger,
142
+ I as DropdownMenuTrigger
143
+ };
@@ -0,0 +1,23 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import * as n from "react";
3
+ import * as o from "radix-ui";
4
+ import { cn as s } from "./utils.mjs";
5
+ const l = o.Root, c = o.Trigger, m = n.forwardRef(({ className: t, align: e = "center", sideOffset: a = 4, ...r }, d) => /* @__PURE__ */ i(
6
+ o.Content,
7
+ {
8
+ ref: d,
9
+ align: e,
10
+ sideOffset: a,
11
+ className: s(
12
+ "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 origin-[--radix-hover-card-content-transform-origin]",
13
+ t
14
+ ),
15
+ ...r
16
+ }
17
+ ));
18
+ m.displayName = o.Content.displayName;
19
+ export {
20
+ l as HoverCard,
21
+ m as HoverCardContent,
22
+ c as HoverCardTrigger
23
+ };