@pixpilot/shadcn 1.4.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/components/index.d.ts +1 -0
  2. package/dist/components/ui/OrContinueWithSeparator.d.ts +2 -2
  3. package/dist/components/ui/alert-dialog.d.ts +12 -12
  4. package/dist/components/ui/alert.d.ts +4 -4
  5. package/dist/components/ui/avatar.d.ts +4 -4
  6. package/dist/components/ui/badge.d.ts +2 -2
  7. package/dist/components/ui/button-group.d.ts +4 -4
  8. package/dist/components/ui/button.d.ts +2 -2
  9. package/dist/components/ui/calendar.d.ts +3 -3
  10. package/dist/components/ui/card.d.ts +8 -8
  11. package/dist/components/ui/checkbox.d.ts +2 -2
  12. package/dist/components/ui/color-picker.d.ts +11 -11
  13. package/dist/components/ui/command.d.ts +10 -10
  14. package/dist/components/ui/dialog.d.ts +11 -11
  15. package/dist/components/ui/drawer.d.ts +54 -0
  16. package/dist/components/ui/drawer.js +91 -0
  17. package/dist/components/ui/dropdown-menu.d.ts +16 -16
  18. package/dist/components/ui/file-upload.d.ts +11 -11
  19. package/dist/components/ui/index.d.ts +1 -0
  20. package/dist/components/ui/input-group.d.ts +7 -7
  21. package/dist/components/ui/input.d.ts +2 -2
  22. package/dist/components/ui/label.d.ts +2 -2
  23. package/dist/components/ui/pagination.d.ts +8 -8
  24. package/dist/components/ui/popover.d.ts +5 -5
  25. package/dist/components/ui/radio-group.d.ts +3 -3
  26. package/dist/components/ui/select.d.ts +11 -11
  27. package/dist/components/ui/separator.d.ts +2 -2
  28. package/dist/components/ui/shadcn-io/tags/index.d.ts +9 -9
  29. package/dist/components/ui/shadcn-io/tags-input-inline/index.d.ts +7 -7
  30. package/dist/components/ui/slider.d.ts +2 -2
  31. package/dist/components/ui/switch.d.ts +2 -2
  32. package/dist/components/ui/tabs.d.ts +5 -5
  33. package/dist/components/ui/textarea.d.ts +2 -2
  34. package/dist/components/ui/toggle-group.d.ts +3 -3
  35. package/dist/components/ui/toggle.d.ts +2 -2
  36. package/dist/components/ui/tooltip.d.ts +5 -5
  37. package/dist/index.d.ts +2 -1
  38. package/dist/index.js +2 -1
  39. package/package.json +2 -1
@@ -14,6 +14,7 @@ import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScro
14
14
  import { ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerContent, ColorPickerEyeDropper, ColorPickerFormatSelect, ColorPickerHueSlider, ColorPickerInput, ColorPickerProps, ColorPickerSwatch, ColorPickerTrigger, colorUtils, useStore } from "./ui/color-picker.js";
15
15
  import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./ui/dialog.js";
16
16
  import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "./ui/command.js";
17
+ import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from "./ui/drawer.js";
17
18
  import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./ui/dropdown-menu.js";
18
19
  import { FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadRoot, FileUploadRootProps, FileUploadTrigger, useStore as useStore$1 } from "./ui/file-upload.js";
19
20
  import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./ui/input-group.js";
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime103 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime113 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/ui/OrContinueWithSeparator.d.ts
4
4
 
@@ -6,6 +6,6 @@ import * as react_jsx_runtime103 from "react/jsx-runtime";
6
6
  * A separator with a label for alternative sign-in methods.
7
7
  * Used in authentication forms to visually separate sections.
8
8
  */
9
- declare function OrContinueWithSeparator(): react_jsx_runtime103.JSX.Element;
9
+ declare function OrContinueWithSeparator(): react_jsx_runtime113.JSX.Element;
10
10
  //#endregion
11
11
  export { OrContinueWithSeparator };
@@ -1,48 +1,48 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime12 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
3
3
  import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
4
4
 
5
5
  //#region src/components/ui/alert-dialog.d.ts
6
6
  declare function AlertDialog({
7
7
  ...props
8
- }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): react_jsx_runtime12.JSX.Element;
8
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): react_jsx_runtime5.JSX.Element;
9
9
  declare function AlertDialogTrigger({
10
10
  ...props
11
- }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): react_jsx_runtime12.JSX.Element;
11
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): react_jsx_runtime5.JSX.Element;
12
12
  declare function AlertDialogPortal({
13
13
  ...props
14
- }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): react_jsx_runtime12.JSX.Element;
14
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): react_jsx_runtime5.JSX.Element;
15
15
  declare function AlertDialogOverlay({
16
16
  className,
17
17
  ...props
18
- }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime12.JSX.Element;
18
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime5.JSX.Element;
19
19
  declare function AlertDialogContent({
20
20
  className,
21
21
  ...props
22
- }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): react_jsx_runtime12.JSX.Element;
22
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): react_jsx_runtime5.JSX.Element;
23
23
  declare function AlertDialogHeader({
24
24
  className,
25
25
  ...props
26
- }: React.ComponentProps<'div'>): react_jsx_runtime12.JSX.Element;
26
+ }: React.ComponentProps<'div'>): react_jsx_runtime5.JSX.Element;
27
27
  declare function AlertDialogFooter({
28
28
  className,
29
29
  ...props
30
- }: React.ComponentProps<'div'>): react_jsx_runtime12.JSX.Element;
30
+ }: React.ComponentProps<'div'>): react_jsx_runtime5.JSX.Element;
31
31
  declare function AlertDialogTitle({
32
32
  className,
33
33
  ...props
34
- }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime12.JSX.Element;
34
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime5.JSX.Element;
35
35
  declare function AlertDialogDescription({
36
36
  className,
37
37
  ...props
38
- }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime12.JSX.Element;
38
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime5.JSX.Element;
39
39
  declare function AlertDialogAction({
40
40
  className,
41
41
  ...props
42
- }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime12.JSX.Element;
42
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime5.JSX.Element;
43
43
  declare function AlertDialogCancel({
44
44
  className,
45
45
  ...props
46
- }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime12.JSX.Element;
46
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime5.JSX.Element;
47
47
  //#endregion
48
48
  export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
@@ -1,6 +1,6 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
2
  import * as React from "react";
3
- import * as react_jsx_runtime9 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime16 from "react/jsx-runtime";
4
4
  import * as class_variance_authority_types0 from "class-variance-authority/types";
5
5
 
6
6
  //#region src/components/ui/alert.d.ts
@@ -11,14 +11,14 @@ declare function Alert({
11
11
  className,
12
12
  variant,
13
13
  ...props
14
- }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): react_jsx_runtime9.JSX.Element;
14
+ }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): react_jsx_runtime16.JSX.Element;
15
15
  declare function AlertTitle({
16
16
  className,
17
17
  ...props
18
- }: React.ComponentProps<'div'>): react_jsx_runtime9.JSX.Element;
18
+ }: React.ComponentProps<'div'>): react_jsx_runtime16.JSX.Element;
19
19
  declare function AlertDescription({
20
20
  className,
21
21
  ...props
22
- }: React.ComponentProps<'div'>): react_jsx_runtime9.JSX.Element;
22
+ }: React.ComponentProps<'div'>): react_jsx_runtime16.JSX.Element;
23
23
  //#endregion
24
24
  export { Alert, AlertDescription, AlertTitle };
@@ -1,19 +1,19 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime23 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime21 from "react/jsx-runtime";
3
3
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
4
4
 
5
5
  //#region src/components/ui/avatar.d.ts
6
6
  declare function Avatar({
7
7
  className,
8
8
  ...props
9
- }: React.ComponentProps<typeof AvatarPrimitive.Root>): react_jsx_runtime23.JSX.Element;
9
+ }: React.ComponentProps<typeof AvatarPrimitive.Root>): react_jsx_runtime21.JSX.Element;
10
10
  declare function AvatarImage({
11
11
  className,
12
12
  ...props
13
- }: React.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime23.JSX.Element;
13
+ }: React.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime21.JSX.Element;
14
14
  declare function AvatarFallback({
15
15
  className,
16
16
  ...props
17
- }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime23.JSX.Element;
17
+ }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime21.JSX.Element;
18
18
  //#endregion
19
19
  export { Avatar, AvatarFallback, AvatarImage };
@@ -1,6 +1,6 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
2
  import * as React from "react";
3
- import * as react_jsx_runtime26 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime24 from "react/jsx-runtime";
4
4
  import * as class_variance_authority_types0 from "class-variance-authority/types";
5
5
 
6
6
  //#region src/components/ui/badge.d.ts
@@ -14,6 +14,6 @@ declare function Badge({
14
14
  ...props
15
15
  }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
16
16
  asChild?: boolean;
17
- }): react_jsx_runtime26.JSX.Element;
17
+ }): react_jsx_runtime24.JSX.Element;
18
18
  //#endregion
19
19
  export { Badge, badgeVariants };
@@ -1,6 +1,6 @@
1
1
  import { Separator } from "./separator.js";
2
2
  import { VariantProps } from "class-variance-authority";
3
- import * as react_jsx_runtime28 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime26 from "react/jsx-runtime";
4
4
  import * as class_variance_authority_types2 from "class-variance-authority/types";
5
5
 
6
6
  //#region src/components/ui/button-group.d.ts
@@ -11,18 +11,18 @@ declare function ButtonGroup({
11
11
  className,
12
12
  orientation,
13
13
  ...props
14
- }: React.ComponentProps<'div'> & VariantProps<typeof buttonGroupVariants>): react_jsx_runtime28.JSX.Element;
14
+ }: React.ComponentProps<'div'> & VariantProps<typeof buttonGroupVariants>): react_jsx_runtime26.JSX.Element;
15
15
  declare function ButtonGroupText({
16
16
  className,
17
17
  asChild,
18
18
  ...props
19
19
  }: React.ComponentProps<'div'> & {
20
20
  asChild?: boolean;
21
- }): react_jsx_runtime28.JSX.Element;
21
+ }): react_jsx_runtime26.JSX.Element;
22
22
  declare function ButtonGroupSeparator({
23
23
  className,
24
24
  orientation,
25
25
  ...props
26
- }: React.ComponentProps<typeof Separator>): react_jsx_runtime28.JSX.Element;
26
+ }: React.ComponentProps<typeof Separator>): react_jsx_runtime26.JSX.Element;
27
27
  //#endregion
28
28
  export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
@@ -1,6 +1,6 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
2
  import * as React from "react";
3
- import * as react_jsx_runtime27 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime25 from "react/jsx-runtime";
4
4
  import * as class_variance_authority_types1 from "class-variance-authority/types";
5
5
 
6
6
  //#region src/components/ui/button.d.ts
@@ -16,6 +16,6 @@ declare function Button({
16
16
  ...props
17
17
  }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
18
18
  asChild?: boolean;
19
- }): react_jsx_runtime27.JSX.Element;
19
+ }): react_jsx_runtime25.JSX.Element;
20
20
  //#endregion
21
21
  export { Button, buttonVariants };
@@ -1,6 +1,6 @@
1
1
  import { Button } from "./button.js";
2
2
  import * as React from "react";
3
- import * as react_jsx_runtime31 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
4
4
  import { DayButton, DayPicker } from "react-day-picker";
5
5
 
6
6
  //#region src/components/ui/calendar.d.ts
@@ -15,12 +15,12 @@ declare function Calendar({
15
15
  ...props
16
16
  }: React.ComponentProps<typeof DayPicker> & {
17
17
  buttonVariant?: React.ComponentProps<typeof Button>['variant'];
18
- }): react_jsx_runtime31.JSX.Element;
18
+ }): react_jsx_runtime19.JSX.Element;
19
19
  declare function CalendarDayButton({
20
20
  className,
21
21
  day,
22
22
  modifiers,
23
23
  ...props
24
- }: React.ComponentProps<typeof DayButton>): react_jsx_runtime31.JSX.Element;
24
+ }: React.ComponentProps<typeof DayButton>): react_jsx_runtime19.JSX.Element;
25
25
  //#endregion
26
26
  export { Calendar, CalendarDayButton };
@@ -1,34 +1,34 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime33 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime39 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ui/card.d.ts
5
5
  declare function Card({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<'div'>): react_jsx_runtime33.JSX.Element;
8
+ }: React.ComponentProps<'div'>): react_jsx_runtime39.JSX.Element;
9
9
  declare function CardHeader({
10
10
  className,
11
11
  ...props
12
- }: React.ComponentProps<'div'>): react_jsx_runtime33.JSX.Element;
12
+ }: React.ComponentProps<'div'>): react_jsx_runtime39.JSX.Element;
13
13
  declare function CardTitle({
14
14
  className,
15
15
  ...props
16
- }: React.ComponentProps<'div'>): react_jsx_runtime33.JSX.Element;
16
+ }: React.ComponentProps<'div'>): react_jsx_runtime39.JSX.Element;
17
17
  declare function CardDescription({
18
18
  className,
19
19
  ...props
20
- }: React.ComponentProps<'div'>): react_jsx_runtime33.JSX.Element;
20
+ }: React.ComponentProps<'div'>): react_jsx_runtime39.JSX.Element;
21
21
  declare function CardAction({
22
22
  className,
23
23
  ...props
24
- }: React.ComponentProps<'div'>): react_jsx_runtime33.JSX.Element;
24
+ }: React.ComponentProps<'div'>): react_jsx_runtime39.JSX.Element;
25
25
  declare function CardContent({
26
26
  className,
27
27
  ...props
28
- }: React.ComponentProps<'div'>): react_jsx_runtime33.JSX.Element;
28
+ }: React.ComponentProps<'div'>): react_jsx_runtime39.JSX.Element;
29
29
  declare function CardFooter({
30
30
  className,
31
31
  ...props
32
- }: React.ComponentProps<'div'>): react_jsx_runtime33.JSX.Element;
32
+ }: React.ComponentProps<'div'>): react_jsx_runtime39.JSX.Element;
33
33
  //#endregion
34
34
  export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
@@ -1,11 +1,11 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime40 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime46 from "react/jsx-runtime";
3
3
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
4
4
 
5
5
  //#region src/components/ui/checkbox.d.ts
6
6
  declare function Checkbox({
7
7
  className,
8
8
  ...props
9
- }: React.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime40.JSX.Element;
9
+ }: React.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime46.JSX.Element;
10
10
  //#endregion
11
11
  export { Checkbox };
@@ -4,7 +4,7 @@ import { Popover, PopoverContent, PopoverTrigger } from "./popover.js";
4
4
  import { Select, SelectTrigger } from "./select.js";
5
5
  import { VariantProps } from "class-variance-authority";
6
6
  import * as React from "react";
7
- import * as react_jsx_runtime41 from "react/jsx-runtime";
7
+ import * as react_jsx_runtime47 from "react/jsx-runtime";
8
8
  import * as SliderPrimitive from "@radix-ui/react-slider";
9
9
 
10
10
  //#region src/components/ui/color-picker.d.ts
@@ -67,30 +67,30 @@ interface ColorPickerProps extends Omit<DivProps, 'onValueChange'>, Pick<React.C
67
67
  readOnly?: boolean;
68
68
  required?: boolean;
69
69
  }
70
- declare function ColorPicker(props: ColorPickerProps): react_jsx_runtime41.JSX.Element;
70
+ declare function ColorPicker(props: ColorPickerProps): react_jsx_runtime47.JSX.Element;
71
71
  declare function ColorPickerTrigger({
72
72
  variant,
73
73
  ...props
74
74
  }: React.ComponentProps<typeof PopoverTrigger> & {
75
75
  variant?: VariantProps<typeof buttonVariants>['variant'];
76
- }): react_jsx_runtime41.JSX.Element;
77
- declare function ColorPickerContent(props: React.ComponentProps<typeof PopoverContent>): react_jsx_runtime41.JSX.Element;
78
- declare function ColorPickerArea(props: DivProps): react_jsx_runtime41.JSX.Element;
79
- declare function ColorPickerHueSlider(props: React.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime41.JSX.Element;
80
- declare function ColorPickerAlphaSlider(props: React.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime41.JSX.Element;
76
+ }): react_jsx_runtime47.JSX.Element;
77
+ declare function ColorPickerContent(props: React.ComponentProps<typeof PopoverContent>): react_jsx_runtime47.JSX.Element;
78
+ declare function ColorPickerArea(props: DivProps): react_jsx_runtime47.JSX.Element;
79
+ declare function ColorPickerHueSlider(props: React.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime47.JSX.Element;
80
+ declare function ColorPickerAlphaSlider(props: React.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime47.JSX.Element;
81
81
  interface ColorPickerSwatchProps extends Omit<DivProps, 'color'> {
82
82
  color?: string;
83
83
  }
84
- declare function ColorPickerSwatch(props: ColorPickerSwatchProps): react_jsx_runtime41.JSX.Element;
85
- declare function ColorPickerEyeDropper(props: React.ComponentProps<typeof Button>): react_jsx_runtime41.JSX.Element | null;
84
+ declare function ColorPickerSwatch(props: ColorPickerSwatchProps): react_jsx_runtime47.JSX.Element;
85
+ declare function ColorPickerEyeDropper(props: React.ComponentProps<typeof Button>): react_jsx_runtime47.JSX.Element | null;
86
86
  interface ColorPickerFormatSelectProps extends Omit<React.ComponentProps<typeof Select>, 'value' | 'onValueChange'>, Pick<React.ComponentProps<typeof SelectTrigger>, 'size' | 'className'> {
87
87
  id?: string;
88
88
  }
89
- declare function ColorPickerFormatSelect(props: ColorPickerFormatSelectProps): react_jsx_runtime41.JSX.Element;
89
+ declare function ColorPickerFormatSelect(props: ColorPickerFormatSelectProps): react_jsx_runtime47.JSX.Element;
90
90
  interface ColorPickerInputProps extends Omit<React.ComponentProps<typeof Input>, 'value' | 'onChange' | 'color'> {
91
91
  withoutAlpha?: boolean;
92
92
  }
93
- declare function ColorPickerInput(props: ColorPickerInputProps): react_jsx_runtime41.JSX.Element | undefined;
93
+ declare function ColorPickerInput(props: ColorPickerInputProps): react_jsx_runtime47.JSX.Element | undefined;
94
94
  declare const colorUtils: {
95
95
  colorToString: typeof colorToString;
96
96
  parseColorString: typeof parseColorString;
@@ -1,13 +1,13 @@
1
1
  import { Dialog } from "./dialog.js";
2
2
  import * as React from "react";
3
- import * as react_jsx_runtime51 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime57 from "react/jsx-runtime";
4
4
  import { Command } from "cmdk";
5
5
 
6
6
  //#region src/components/ui/command.d.ts
7
7
  declare function Command$1({
8
8
  className,
9
9
  ...props
10
- }: React.ComponentProps<typeof Command>): react_jsx_runtime51.JSX.Element;
10
+ }: React.ComponentProps<typeof Command>): react_jsx_runtime57.JSX.Element;
11
11
  declare function CommandDialog({
12
12
  title,
13
13
  description,
@@ -20,33 +20,33 @@ declare function CommandDialog({
20
20
  description?: string;
21
21
  className?: string;
22
22
  showCloseButton?: boolean;
23
- }): react_jsx_runtime51.JSX.Element;
23
+ }): react_jsx_runtime57.JSX.Element;
24
24
  declare function CommandInput({
25
25
  className,
26
26
  ...props
27
- }: React.ComponentProps<typeof Command.Input>): react_jsx_runtime51.JSX.Element;
27
+ }: React.ComponentProps<typeof Command.Input>): react_jsx_runtime57.JSX.Element;
28
28
  declare function CommandList({
29
29
  className,
30
30
  ...props
31
- }: React.ComponentProps<typeof Command.List>): react_jsx_runtime51.JSX.Element;
31
+ }: React.ComponentProps<typeof Command.List>): react_jsx_runtime57.JSX.Element;
32
32
  declare function CommandEmpty({
33
33
  ...props
34
- }: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime51.JSX.Element;
34
+ }: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime57.JSX.Element;
35
35
  declare function CommandGroup({
36
36
  className,
37
37
  ...props
38
- }: React.ComponentProps<typeof Command.Group>): react_jsx_runtime51.JSX.Element;
38
+ }: React.ComponentProps<typeof Command.Group>): react_jsx_runtime57.JSX.Element;
39
39
  declare function CommandSeparator({
40
40
  className,
41
41
  ...props
42
- }: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime51.JSX.Element;
42
+ }: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime57.JSX.Element;
43
43
  declare function CommandItem({
44
44
  className,
45
45
  ...props
46
- }: React.ComponentProps<typeof Command.Item>): react_jsx_runtime51.JSX.Element;
46
+ }: React.ComponentProps<typeof Command.Item>): react_jsx_runtime57.JSX.Element;
47
47
  declare function CommandShortcut({
48
48
  className,
49
49
  ...props
50
- }: React.ComponentProps<'span'>): react_jsx_runtime51.JSX.Element;
50
+ }: React.ComponentProps<'span'>): react_jsx_runtime57.JSX.Element;
51
51
  //#endregion
52
52
  export { Command$1 as Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
@@ -1,25 +1,25 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime60 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime29 from "react/jsx-runtime";
3
3
  import * as DialogPrimitive from "@radix-ui/react-dialog";
4
4
 
5
5
  //#region src/components/ui/dialog.d.ts
6
6
  declare function Dialog({
7
7
  modal,
8
8
  ...props
9
- }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime60.JSX.Element;
9
+ }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime29.JSX.Element;
10
10
  declare function DialogTrigger({
11
11
  ...props
12
- }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime60.JSX.Element;
12
+ }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime29.JSX.Element;
13
13
  declare function DialogPortal({
14
14
  ...props
15
- }: React.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime60.JSX.Element;
15
+ }: React.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime29.JSX.Element;
16
16
  declare function DialogClose({
17
17
  ...props
18
- }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime60.JSX.Element;
18
+ }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime29.JSX.Element;
19
19
  declare function DialogOverlay({
20
20
  className,
21
21
  ...props
22
- }: React.ComponentProps<typeof DialogPrimitive.Overlay>): react_jsx_runtime60.JSX.Element;
22
+ }: React.ComponentProps<typeof DialogPrimitive.Overlay>): react_jsx_runtime29.JSX.Element;
23
23
  declare function DialogContent({
24
24
  className,
25
25
  children,
@@ -32,22 +32,22 @@ declare function DialogContent({
32
32
  showCloseButton?: boolean;
33
33
  disableOutsideClick?: boolean;
34
34
  container?: HTMLElement | null;
35
- }): react_jsx_runtime60.JSX.Element;
35
+ }): react_jsx_runtime29.JSX.Element;
36
36
  declare function DialogHeader({
37
37
  className,
38
38
  ...props
39
- }: React.ComponentProps<'div'>): react_jsx_runtime60.JSX.Element;
39
+ }: React.ComponentProps<'div'>): react_jsx_runtime29.JSX.Element;
40
40
  declare function DialogFooter({
41
41
  className,
42
42
  ...props
43
- }: React.ComponentProps<'div'>): react_jsx_runtime60.JSX.Element;
43
+ }: React.ComponentProps<'div'>): react_jsx_runtime29.JSX.Element;
44
44
  declare function DialogTitle({
45
45
  className,
46
46
  ...props
47
- }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime60.JSX.Element;
47
+ }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime29.JSX.Element;
48
48
  declare function DialogDescription({
49
49
  className,
50
50
  ...props
51
- }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime60.JSX.Element;
51
+ }: React.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime29.JSX.Element;
52
52
  //#endregion
53
53
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
@@ -0,0 +1,54 @@
1
+ import * as React from "react";
2
+ import * as react_jsx_runtime72 from "react/jsx-runtime";
3
+ import { Drawer } from "vaul";
4
+
5
+ //#region src/components/ui/drawer.d.ts
6
+
7
+ /**
8
+ * A drawer that slides in from an edge of the viewport.
9
+ *
10
+ * Pulled from the shadcn registry — built on `vaul` (which wraps the Radix
11
+ * Dialog primitive), so it keeps the smooth spring animation and drag-to-dismiss
12
+ * behavior. The edge is controlled by the `direction` prop on the root
13
+ * (`top | bottom | left | right`, default `bottom`).
14
+ */
15
+ declare function Drawer$1({
16
+ direction,
17
+ ...props
18
+ }: React.ComponentProps<typeof Drawer.Root>): react_jsx_runtime72.JSX.Element;
19
+ declare function DrawerTrigger({
20
+ ...props
21
+ }: React.ComponentProps<typeof Drawer.Trigger>): react_jsx_runtime72.JSX.Element;
22
+ declare function DrawerPortal({
23
+ ...props
24
+ }: React.ComponentProps<typeof Drawer.Portal>): react_jsx_runtime72.JSX.Element;
25
+ declare function DrawerClose({
26
+ ...props
27
+ }: React.ComponentProps<typeof Drawer.Close>): react_jsx_runtime72.JSX.Element;
28
+ declare function DrawerOverlay({
29
+ className,
30
+ ...props
31
+ }: React.ComponentProps<typeof Drawer.Overlay>): react_jsx_runtime72.JSX.Element;
32
+ declare function DrawerContent({
33
+ className,
34
+ children,
35
+ ...props
36
+ }: React.ComponentProps<typeof Drawer.Content>): react_jsx_runtime72.JSX.Element;
37
+ declare function DrawerHeader({
38
+ className,
39
+ ...props
40
+ }: React.ComponentProps<'div'>): react_jsx_runtime72.JSX.Element;
41
+ declare function DrawerFooter({
42
+ className,
43
+ ...props
44
+ }: React.ComponentProps<'div'>): react_jsx_runtime72.JSX.Element;
45
+ declare function DrawerTitle({
46
+ className,
47
+ ...props
48
+ }: React.ComponentProps<typeof Drawer.Title>): react_jsx_runtime72.JSX.Element;
49
+ declare function DrawerDescription({
50
+ className,
51
+ ...props
52
+ }: React.ComponentProps<typeof Drawer.Description>): react_jsx_runtime72.JSX.Element;
53
+ //#endregion
54
+ export { Drawer$1 as Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
@@ -0,0 +1,91 @@
1
+ 'use client';
2
+
3
+
4
+ import { cn } from "../../lib/utils.js";
5
+ import "react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { Drawer } from "vaul";
8
+
9
+ //#region src/components/ui/drawer.tsx
10
+ /**
11
+ * A drawer that slides in from an edge of the viewport.
12
+ *
13
+ * Pulled from the shadcn registry — built on `vaul` (which wraps the Radix
14
+ * Dialog primitive), so it keeps the smooth spring animation and drag-to-dismiss
15
+ * behavior. The edge is controlled by the `direction` prop on the root
16
+ * (`top | bottom | left | right`, default `bottom`).
17
+ */
18
+ function Drawer$1({ direction = "right",...props }) {
19
+ return /* @__PURE__ */ jsx(Drawer.Root, {
20
+ "data-slot": "drawer",
21
+ ...props,
22
+ direction
23
+ });
24
+ }
25
+ function DrawerTrigger({ ...props }) {
26
+ return /* @__PURE__ */ jsx(Drawer.Trigger, {
27
+ "data-slot": "drawer-trigger",
28
+ ...props
29
+ });
30
+ }
31
+ function DrawerPortal({ ...props }) {
32
+ return /* @__PURE__ */ jsx(Drawer.Portal, {
33
+ "data-slot": "drawer-portal",
34
+ ...props
35
+ });
36
+ }
37
+ function DrawerClose({ ...props }) {
38
+ return /* @__PURE__ */ jsx(Drawer.Close, {
39
+ "data-slot": "drawer-close",
40
+ ...props
41
+ });
42
+ }
43
+ function DrawerOverlay({ className,...props }) {
44
+ return /* @__PURE__ */ jsx(Drawer.Overlay, {
45
+ "data-slot": "drawer-overlay",
46
+ className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 backdrop-blur-sm", className),
47
+ ...props
48
+ });
49
+ }
50
+ function DrawerContent({ className, children,...props }) {
51
+ return /* @__PURE__ */ jsxs(DrawerPortal, {
52
+ "data-slot": "drawer-portal",
53
+ children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsxs(Drawer.Content, {
54
+ "data-slot": "drawer-content",
55
+ className: cn("group/drawer-content bg-background fixed z-50 flex h-auto flex-col", "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),
56
+ ...props,
57
+ children: [/* @__PURE__ */ jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), children]
58
+ })]
59
+ });
60
+ }
61
+ function DrawerHeader({ className,...props }) {
62
+ return /* @__PURE__ */ jsx("div", {
63
+ "data-slot": "drawer-header",
64
+ 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),
65
+ ...props
66
+ });
67
+ }
68
+ function DrawerFooter({ className,...props }) {
69
+ return /* @__PURE__ */ jsx("div", {
70
+ "data-slot": "drawer-footer",
71
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
72
+ ...props
73
+ });
74
+ }
75
+ function DrawerTitle({ className,...props }) {
76
+ return /* @__PURE__ */ jsx(Drawer.Title, {
77
+ "data-slot": "drawer-title",
78
+ className: cn("text-foreground font-semibold", className),
79
+ ...props
80
+ });
81
+ }
82
+ function DrawerDescription({ className,...props }) {
83
+ return /* @__PURE__ */ jsx(Drawer.Description, {
84
+ "data-slot": "drawer-description",
85
+ className: cn("text-muted-foreground text-sm", className),
86
+ ...props
87
+ });
88
+ }
89
+
90
+ //#endregion
91
+ export { Drawer$1 as Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };