@helloleo/plugins 0.2.12 → 0.2.13

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 (141) hide show
  1. package/dist/index.js +2 -2
  2. package/dist/templates/tanstack-start-2026-07-30/components.json +22 -0
  3. package/dist/templates/tanstack-start-2026-07-30/drizzle/0000_tidy_kang.sql +5 -0
  4. package/dist/templates/tanstack-start-2026-07-30/drizzle/meta/0000_snapshot.json +50 -0
  5. package/dist/templates/tanstack-start-2026-07-30/drizzle/meta/_journal.json +13 -0
  6. package/dist/templates/tanstack-start-2026-07-30/drizzle.config.ts +18 -0
  7. package/dist/templates/tanstack-start-2026-07-30/package.json +103 -0
  8. package/dist/templates/tanstack-start-2026-07-30/src/components/error-component.tsx +47 -0
  9. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/accordion.tsx +51 -0
  10. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/alert-dialog.tsx +115 -0
  11. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/alert.tsx +49 -0
  12. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/aspect-ratio.tsx +5 -0
  13. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/avatar.tsx +47 -0
  14. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/badge.tsx +32 -0
  15. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/breadcrumb.tsx +101 -0
  16. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/button.tsx +49 -0
  17. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/calendar.tsx +177 -0
  18. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/card.tsx +55 -0
  19. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/carousel.tsx +240 -0
  20. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/chart.tsx +371 -0
  21. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/checkbox.tsx +26 -0
  22. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/collapsible.tsx +11 -0
  23. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/command.tsx +143 -0
  24. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/context-menu.tsx +187 -0
  25. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/dialog.tsx +104 -0
  26. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/drawer.tsx +98 -0
  27. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/dropdown-menu.tsx +188 -0
  28. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/form.tsx +171 -0
  29. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/hover-card.tsx +27 -0
  30. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/input-otp.tsx +69 -0
  31. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/input.tsx +22 -0
  32. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/label.tsx +21 -0
  33. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/menubar.tsx +229 -0
  34. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/navigation-menu.tsx +120 -0
  35. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/pagination.tsx +98 -0
  36. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/popover.tsx +31 -0
  37. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/progress.tsx +25 -0
  38. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/radio-group.tsx +36 -0
  39. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/resizable.tsx +37 -0
  40. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/scroll-area.tsx +44 -0
  41. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/select.tsx +152 -0
  42. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/separator.tsx +24 -0
  43. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/sheet.tsx +122 -0
  44. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/sidebar.tsx +744 -0
  45. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/skeleton.tsx +7 -0
  46. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/slider.tsx +23 -0
  47. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/sonner.tsx +23 -0
  48. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/switch.tsx +27 -0
  49. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/table.tsx +94 -0
  50. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/tabs.tsx +53 -0
  51. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/textarea.tsx +21 -0
  52. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/toggle-group.tsx +57 -0
  53. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/toggle.tsx +42 -0
  54. package/dist/templates/tanstack-start-2026-07-30/src/components/ui/tooltip.tsx +32 -0
  55. package/dist/templates/tanstack-start-2026-07-30/src/db/index.ts +9 -0
  56. package/dist/templates/tanstack-start-2026-07-30/src/db/schema.ts +18 -0
  57. package/dist/templates/tanstack-start-2026-07-30/src/global.d.ts +3 -0
  58. package/dist/templates/tanstack-start-2026-07-30/src/hooks/use-mobile.tsx +19 -0
  59. package/dist/templates/tanstack-start-2026-07-30/src/lib/proxy.ts +82 -0
  60. package/dist/templates/tanstack-start-2026-07-30/src/lib/utils.ts +6 -0
  61. package/dist/templates/tanstack-start-2026-07-30/src/routeTree.gen.ts +86 -0
  62. package/dist/templates/tanstack-start-2026-07-30/src/router.tsx +37 -0
  63. package/dist/templates/tanstack-start-2026-07-30/src/routes/README.md +94 -0
  64. package/dist/templates/tanstack-start-2026-07-30/src/routes/__root.tsx +65 -0
  65. package/dist/templates/tanstack-start-2026-07-30/src/routes/api/health.ts +81 -0
  66. package/dist/templates/tanstack-start-2026-07-30/src/routes/index.tsx +33 -0
  67. package/dist/templates/tanstack-start-2026-07-30/src/server.ts +32 -0
  68. package/dist/templates/tanstack-start-2026-07-30/src/styles.css +214 -0
  69. package/dist/templates/tanstack-start-2026-07-30/tsconfig.json +27 -0
  70. package/dist/templates/tanstack-start-2026-07-30/vite.config.ts +17 -0
  71. package/package.json +1 -1
  72. package/src/templates/tanstack-start-2026-07-30/components.json +22 -0
  73. package/src/templates/tanstack-start-2026-07-30/drizzle/0000_tidy_kang.sql +5 -0
  74. package/src/templates/tanstack-start-2026-07-30/drizzle/meta/0000_snapshot.json +50 -0
  75. package/src/templates/tanstack-start-2026-07-30/drizzle/meta/_journal.json +13 -0
  76. package/src/templates/tanstack-start-2026-07-30/drizzle.config.ts +18 -0
  77. package/src/templates/tanstack-start-2026-07-30/package.json +103 -0
  78. package/src/templates/tanstack-start-2026-07-30/src/components/error-component.tsx +47 -0
  79. package/src/templates/tanstack-start-2026-07-30/src/components/ui/accordion.tsx +51 -0
  80. package/src/templates/tanstack-start-2026-07-30/src/components/ui/alert-dialog.tsx +115 -0
  81. package/src/templates/tanstack-start-2026-07-30/src/components/ui/alert.tsx +49 -0
  82. package/src/templates/tanstack-start-2026-07-30/src/components/ui/aspect-ratio.tsx +5 -0
  83. package/src/templates/tanstack-start-2026-07-30/src/components/ui/avatar.tsx +47 -0
  84. package/src/templates/tanstack-start-2026-07-30/src/components/ui/badge.tsx +32 -0
  85. package/src/templates/tanstack-start-2026-07-30/src/components/ui/breadcrumb.tsx +101 -0
  86. package/src/templates/tanstack-start-2026-07-30/src/components/ui/button.tsx +49 -0
  87. package/src/templates/tanstack-start-2026-07-30/src/components/ui/calendar.tsx +177 -0
  88. package/src/templates/tanstack-start-2026-07-30/src/components/ui/card.tsx +55 -0
  89. package/src/templates/tanstack-start-2026-07-30/src/components/ui/carousel.tsx +240 -0
  90. package/src/templates/tanstack-start-2026-07-30/src/components/ui/chart.tsx +371 -0
  91. package/src/templates/tanstack-start-2026-07-30/src/components/ui/checkbox.tsx +26 -0
  92. package/src/templates/tanstack-start-2026-07-30/src/components/ui/collapsible.tsx +11 -0
  93. package/src/templates/tanstack-start-2026-07-30/src/components/ui/command.tsx +143 -0
  94. package/src/templates/tanstack-start-2026-07-30/src/components/ui/context-menu.tsx +187 -0
  95. package/src/templates/tanstack-start-2026-07-30/src/components/ui/dialog.tsx +104 -0
  96. package/src/templates/tanstack-start-2026-07-30/src/components/ui/drawer.tsx +98 -0
  97. package/src/templates/tanstack-start-2026-07-30/src/components/ui/dropdown-menu.tsx +188 -0
  98. package/src/templates/tanstack-start-2026-07-30/src/components/ui/form.tsx +171 -0
  99. package/src/templates/tanstack-start-2026-07-30/src/components/ui/hover-card.tsx +27 -0
  100. package/src/templates/tanstack-start-2026-07-30/src/components/ui/input-otp.tsx +69 -0
  101. package/src/templates/tanstack-start-2026-07-30/src/components/ui/input.tsx +22 -0
  102. package/src/templates/tanstack-start-2026-07-30/src/components/ui/label.tsx +21 -0
  103. package/src/templates/tanstack-start-2026-07-30/src/components/ui/menubar.tsx +229 -0
  104. package/src/templates/tanstack-start-2026-07-30/src/components/ui/navigation-menu.tsx +120 -0
  105. package/src/templates/tanstack-start-2026-07-30/src/components/ui/pagination.tsx +98 -0
  106. package/src/templates/tanstack-start-2026-07-30/src/components/ui/popover.tsx +31 -0
  107. package/src/templates/tanstack-start-2026-07-30/src/components/ui/progress.tsx +25 -0
  108. package/src/templates/tanstack-start-2026-07-30/src/components/ui/radio-group.tsx +36 -0
  109. package/src/templates/tanstack-start-2026-07-30/src/components/ui/resizable.tsx +37 -0
  110. package/src/templates/tanstack-start-2026-07-30/src/components/ui/scroll-area.tsx +44 -0
  111. package/src/templates/tanstack-start-2026-07-30/src/components/ui/select.tsx +152 -0
  112. package/src/templates/tanstack-start-2026-07-30/src/components/ui/separator.tsx +24 -0
  113. package/src/templates/tanstack-start-2026-07-30/src/components/ui/sheet.tsx +122 -0
  114. package/src/templates/tanstack-start-2026-07-30/src/components/ui/sidebar.tsx +744 -0
  115. package/src/templates/tanstack-start-2026-07-30/src/components/ui/skeleton.tsx +7 -0
  116. package/src/templates/tanstack-start-2026-07-30/src/components/ui/slider.tsx +23 -0
  117. package/src/templates/tanstack-start-2026-07-30/src/components/ui/sonner.tsx +23 -0
  118. package/src/templates/tanstack-start-2026-07-30/src/components/ui/switch.tsx +27 -0
  119. package/src/templates/tanstack-start-2026-07-30/src/components/ui/table.tsx +94 -0
  120. package/src/templates/tanstack-start-2026-07-30/src/components/ui/tabs.tsx +53 -0
  121. package/src/templates/tanstack-start-2026-07-30/src/components/ui/textarea.tsx +21 -0
  122. package/src/templates/tanstack-start-2026-07-30/src/components/ui/toggle-group.tsx +57 -0
  123. package/src/templates/tanstack-start-2026-07-30/src/components/ui/toggle.tsx +42 -0
  124. package/src/templates/tanstack-start-2026-07-30/src/components/ui/tooltip.tsx +32 -0
  125. package/src/templates/tanstack-start-2026-07-30/src/db/index.ts +9 -0
  126. package/src/templates/tanstack-start-2026-07-30/src/db/schema.ts +18 -0
  127. package/src/templates/tanstack-start-2026-07-30/src/global.d.ts +3 -0
  128. package/src/templates/tanstack-start-2026-07-30/src/hooks/use-mobile.tsx +19 -0
  129. package/src/templates/tanstack-start-2026-07-30/src/lib/proxy.ts +82 -0
  130. package/src/templates/tanstack-start-2026-07-30/src/lib/utils.ts +6 -0
  131. package/src/templates/tanstack-start-2026-07-30/src/routeTree.gen.ts +86 -0
  132. package/src/templates/tanstack-start-2026-07-30/src/router.tsx +37 -0
  133. package/src/templates/tanstack-start-2026-07-30/src/routes/README.md +94 -0
  134. package/src/templates/tanstack-start-2026-07-30/src/routes/__root.tsx +65 -0
  135. package/src/templates/tanstack-start-2026-07-30/src/routes/api/health.ts +81 -0
  136. package/src/templates/tanstack-start-2026-07-30/src/routes/index.tsx +33 -0
  137. package/src/templates/tanstack-start-2026-07-30/src/server.ts +32 -0
  138. package/src/templates/tanstack-start-2026-07-30/src/styles.css +214 -0
  139. package/src/templates/tanstack-start-2026-07-30/tsconfig.json +27 -0
  140. package/src/templates/tanstack-start-2026-07-30/vite.config.ts +17 -0
  141. package/src/tools/scaffold.ts +2 -2
@@ -0,0 +1,98 @@
1
+ import * as React from "react";
2
+ import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
3
+
4
+ import { cn } from "@/lib/utils";
5
+ import { type ButtonProps, buttonVariants } from "@/components/ui/button";
6
+
7
+ const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => (
8
+ <nav
9
+ role="navigation"
10
+ aria-label="pagination"
11
+ className={cn("mx-auto flex w-full justify-center", className)}
12
+ {...props}
13
+ />
14
+ );
15
+ Pagination.displayName = "Pagination";
16
+
17
+ const PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<"ul">>(
18
+ ({ className, ...props }, ref) => (
19
+ <ul ref={ref} className={cn("flex flex-row items-center gap-1", className)} {...props} />
20
+ ),
21
+ );
22
+ PaginationContent.displayName = "PaginationContent";
23
+
24
+ const PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<"li">>(
25
+ ({ className, ...props }, ref) => <li ref={ref} className={cn("", className)} {...props} />,
26
+ );
27
+ PaginationItem.displayName = "PaginationItem";
28
+
29
+ type PaginationLinkProps = {
30
+ isActive?: boolean;
31
+ } & Pick<ButtonProps, "size"> &
32
+ React.ComponentProps<"a">;
33
+
34
+ const PaginationLink = ({ className, isActive, size = "icon", ...props }: PaginationLinkProps) => (
35
+ <a
36
+ aria-current={isActive ? "page" : undefined}
37
+ className={cn(
38
+ buttonVariants({
39
+ variant: isActive ? "outline" : "ghost",
40
+ size,
41
+ }),
42
+ className,
43
+ )}
44
+ {...props}
45
+ />
46
+ );
47
+ PaginationLink.displayName = "PaginationLink";
48
+
49
+ const PaginationPrevious = ({
50
+ className,
51
+ ...props
52
+ }: React.ComponentProps<typeof PaginationLink>) => (
53
+ <PaginationLink
54
+ aria-label="Go to previous page"
55
+ size="default"
56
+ className={cn("gap-1 pl-2.5", className)}
57
+ {...props}
58
+ >
59
+ <ChevronLeft className="h-4 w-4" />
60
+ <span>Previous</span>
61
+ </PaginationLink>
62
+ );
63
+ PaginationPrevious.displayName = "PaginationPrevious";
64
+
65
+ const PaginationNext = ({ className, ...props }: React.ComponentProps<typeof PaginationLink>) => (
66
+ <PaginationLink
67
+ aria-label="Go to next page"
68
+ size="default"
69
+ className={cn("gap-1 pr-2.5", className)}
70
+ {...props}
71
+ >
72
+ <span>Next</span>
73
+ <ChevronRight className="h-4 w-4" />
74
+ </PaginationLink>
75
+ );
76
+ PaginationNext.displayName = "PaginationNext";
77
+
78
+ const PaginationEllipsis = ({ className, ...props }: React.ComponentProps<"span">) => (
79
+ <span
80
+ aria-hidden
81
+ className={cn("flex h-9 w-9 items-center justify-center", className)}
82
+ {...props}
83
+ >
84
+ <MoreHorizontal className="h-4 w-4" />
85
+ <span className="sr-only">More pages</span>
86
+ </span>
87
+ );
88
+ PaginationEllipsis.displayName = "PaginationEllipsis";
89
+
90
+ export {
91
+ Pagination,
92
+ PaginationContent,
93
+ PaginationLink,
94
+ PaginationItem,
95
+ PaginationPrevious,
96
+ PaginationNext,
97
+ PaginationEllipsis,
98
+ };
@@ -0,0 +1,31 @@
1
+ import * as React from "react";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+
4
+ import { cn } from "@/lib/utils";
5
+
6
+ const Popover = PopoverPrimitive.Root;
7
+
8
+ const PopoverTrigger = PopoverPrimitive.Trigger;
9
+
10
+ const PopoverAnchor = PopoverPrimitive.Anchor;
11
+
12
+ const PopoverContent = React.forwardRef<
13
+ React.ElementRef<typeof PopoverPrimitive.Content>,
14
+ React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>
15
+ >(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
16
+ <PopoverPrimitive.Portal>
17
+ <PopoverPrimitive.Content
18
+ ref={ref}
19
+ align={align}
20
+ sideOffset={sideOffset}
21
+ className={cn(
22
+ "z-50 w-72 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-popover-content-transform-origin)",
23
+ className,
24
+ )}
25
+ {...props}
26
+ />
27
+ </PopoverPrimitive.Portal>
28
+ ));
29
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
30
+
31
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -0,0 +1,25 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
5
+
6
+ import { cn } from "@/lib/utils";
7
+
8
+ const Progress = React.forwardRef<
9
+ React.ElementRef<typeof ProgressPrimitive.Root>,
10
+ React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>
11
+ >(({ className, value, ...props }, ref) => (
12
+ <ProgressPrimitive.Root
13
+ ref={ref}
14
+ className={cn("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", className)}
15
+ {...props}
16
+ >
17
+ <ProgressPrimitive.Indicator
18
+ className="h-full w-full flex-1 bg-primary transition-all"
19
+ style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
20
+ />
21
+ </ProgressPrimitive.Root>
22
+ ));
23
+ Progress.displayName = ProgressPrimitive.Root.displayName;
24
+
25
+ export { Progress };
@@ -0,0 +1,36 @@
1
+ import * as React from "react";
2
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
+ import { Circle } from "lucide-react";
4
+
5
+ import { cn } from "@/lib/utils";
6
+
7
+ const RadioGroup = React.forwardRef<
8
+ React.ElementRef<typeof RadioGroupPrimitive.Root>,
9
+ React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>
10
+ >(({ className, ...props }, ref) => {
11
+ return <RadioGroupPrimitive.Root className={cn("grid gap-2", className)} {...props} ref={ref} />;
12
+ });
13
+ RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
14
+
15
+ const RadioGroupItem = React.forwardRef<
16
+ React.ElementRef<typeof RadioGroupPrimitive.Item>,
17
+ React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>
18
+ >(({ className, ...props }, ref) => {
19
+ return (
20
+ <RadioGroupPrimitive.Item
21
+ ref={ref}
22
+ className={cn(
23
+ "aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
24
+ className,
25
+ )}
26
+ {...props}
27
+ >
28
+ <RadioGroupPrimitive.Indicator className="flex items-center justify-center">
29
+ <Circle className="h-3.5 w-3.5 fill-primary" />
30
+ </RadioGroupPrimitive.Indicator>
31
+ </RadioGroupPrimitive.Item>
32
+ );
33
+ });
34
+ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
35
+
36
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,37 @@
1
+ import { GripVertical } from "lucide-react";
2
+ import { Group, Panel, Separator } from "react-resizable-panels";
3
+
4
+ import { cn } from "@/lib/utils";
5
+
6
+ const ResizablePanelGroup = ({ className, ...props }: React.ComponentProps<typeof Group>) => (
7
+ <Group
8
+ className={cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className)}
9
+ {...props}
10
+ />
11
+ );
12
+
13
+ const ResizablePanel = Panel;
14
+
15
+ const ResizableHandle = ({
16
+ withHandle,
17
+ className,
18
+ ...props
19
+ }: React.ComponentProps<typeof Separator> & {
20
+ withHandle?: boolean;
21
+ }) => (
22
+ <Separator
23
+ className={cn(
24
+ "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
25
+ className,
26
+ )}
27
+ {...props}
28
+ >
29
+ {withHandle && (
30
+ <div className="z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border">
31
+ <GripVertical className="h-2.5 w-2.5" />
32
+ </div>
33
+ )}
34
+ </Separator>
35
+ );
36
+
37
+ export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
@@ -0,0 +1,44 @@
1
+ import * as React from "react";
2
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
3
+
4
+ import { cn } from "@/lib/utils";
5
+
6
+ const ScrollArea = React.forwardRef<
7
+ React.ElementRef<typeof ScrollAreaPrimitive.Root>,
8
+ React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
9
+ >(({ className, children, ...props }, ref) => (
10
+ <ScrollAreaPrimitive.Root
11
+ ref={ref}
12
+ className={cn("relative overflow-hidden", className)}
13
+ {...props}
14
+ >
15
+ <ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">
16
+ {children}
17
+ </ScrollAreaPrimitive.Viewport>
18
+ <ScrollBar />
19
+ <ScrollAreaPrimitive.Corner />
20
+ </ScrollAreaPrimitive.Root>
21
+ ));
22
+ ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
23
+
24
+ const ScrollBar = React.forwardRef<
25
+ React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
26
+ React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>
27
+ >(({ className, orientation = "vertical", ...props }, ref) => (
28
+ <ScrollAreaPrimitive.ScrollAreaScrollbar
29
+ ref={ref}
30
+ orientation={orientation}
31
+ className={cn(
32
+ "flex touch-none select-none transition-colors",
33
+ orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
34
+ orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
35
+ className,
36
+ )}
37
+ {...props}
38
+ >
39
+ <ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />
40
+ </ScrollAreaPrimitive.ScrollAreaScrollbar>
41
+ ));
42
+ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
43
+
44
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,152 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import * as SelectPrimitive from "@radix-ui/react-select";
5
+ import { Check, ChevronDown, ChevronUp } from "lucide-react";
6
+
7
+ import { cn } from "@/lib/utils";
8
+
9
+ const Select = SelectPrimitive.Root;
10
+
11
+ const SelectGroup = SelectPrimitive.Group;
12
+
13
+ const SelectValue = SelectPrimitive.Value;
14
+
15
+ const SelectTrigger = React.forwardRef<
16
+ React.ElementRef<typeof SelectPrimitive.Trigger>,
17
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
18
+ >(({ className, children, ...props }, ref) => (
19
+ <SelectPrimitive.Trigger
20
+ ref={ref}
21
+ className={cn(
22
+ "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background cursor-pointer data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
23
+ className,
24
+ )}
25
+ {...props}
26
+ >
27
+ {children}
28
+ <SelectPrimitive.Icon asChild>
29
+ <ChevronDown className="h-4 w-4 opacity-50" />
30
+ </SelectPrimitive.Icon>
31
+ </SelectPrimitive.Trigger>
32
+ ));
33
+ SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
34
+
35
+ const SelectScrollUpButton = React.forwardRef<
36
+ React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
37
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>
38
+ >(({ className, ...props }, ref) => (
39
+ <SelectPrimitive.ScrollUpButton
40
+ ref={ref}
41
+ className={cn("flex cursor-default items-center justify-center py-1", className)}
42
+ {...props}
43
+ >
44
+ <ChevronUp className="h-4 w-4" />
45
+ </SelectPrimitive.ScrollUpButton>
46
+ ));
47
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
48
+
49
+ const SelectScrollDownButton = React.forwardRef<
50
+ React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
51
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>
52
+ >(({ className, ...props }, ref) => (
53
+ <SelectPrimitive.ScrollDownButton
54
+ ref={ref}
55
+ className={cn("flex cursor-default items-center justify-center py-1", className)}
56
+ {...props}
57
+ >
58
+ <ChevronDown className="h-4 w-4" />
59
+ </SelectPrimitive.ScrollDownButton>
60
+ ));
61
+ SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
62
+
63
+ const SelectContent = React.forwardRef<
64
+ React.ElementRef<typeof SelectPrimitive.Content>,
65
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
66
+ >(({ className, children, position = "popper", ...props }, ref) => (
67
+ <SelectPrimitive.Portal>
68
+ <SelectPrimitive.Content
69
+ ref={ref}
70
+ className={cn(
71
+ "relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover 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-select-content-transform-origin)",
72
+ position === "popper" &&
73
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
74
+ className,
75
+ )}
76
+ position={position}
77
+ {...props}
78
+ >
79
+ <SelectScrollUpButton />
80
+ <SelectPrimitive.Viewport
81
+ className={cn(
82
+ "p-1",
83
+ position === "popper" &&
84
+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",
85
+ )}
86
+ >
87
+ {children}
88
+ </SelectPrimitive.Viewport>
89
+ <SelectScrollDownButton />
90
+ </SelectPrimitive.Content>
91
+ </SelectPrimitive.Portal>
92
+ ));
93
+ SelectContent.displayName = SelectPrimitive.Content.displayName;
94
+
95
+ const SelectLabel = React.forwardRef<
96
+ React.ElementRef<typeof SelectPrimitive.Label>,
97
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
98
+ >(({ className, ...props }, ref) => (
99
+ <SelectPrimitive.Label
100
+ ref={ref}
101
+ className={cn("px-2 py-1.5 text-sm font-semibold", className)}
102
+ {...props}
103
+ />
104
+ ));
105
+ SelectLabel.displayName = SelectPrimitive.Label.displayName;
106
+
107
+ const SelectItem = React.forwardRef<
108
+ React.ElementRef<typeof SelectPrimitive.Item>,
109
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
110
+ >(({ className, children, ...props }, ref) => (
111
+ <SelectPrimitive.Item
112
+ ref={ref}
113
+ className={cn(
114
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
115
+ className,
116
+ )}
117
+ {...props}
118
+ >
119
+ <span className="absolute right-2 flex h-3.5 w-3.5 items-center justify-center">
120
+ <SelectPrimitive.ItemIndicator>
121
+ <Check className="h-4 w-4" />
122
+ </SelectPrimitive.ItemIndicator>
123
+ </span>
124
+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
125
+ </SelectPrimitive.Item>
126
+ ));
127
+ SelectItem.displayName = SelectPrimitive.Item.displayName;
128
+
129
+ const SelectSeparator = React.forwardRef<
130
+ React.ElementRef<typeof SelectPrimitive.Separator>,
131
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
132
+ >(({ className, ...props }, ref) => (
133
+ <SelectPrimitive.Separator
134
+ ref={ref}
135
+ className={cn("-mx-1 my-1 h-px bg-muted", className)}
136
+ {...props}
137
+ />
138
+ ));
139
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
140
+
141
+ export {
142
+ Select,
143
+ SelectGroup,
144
+ SelectValue,
145
+ SelectTrigger,
146
+ SelectContent,
147
+ SelectLabel,
148
+ SelectItem,
149
+ SelectSeparator,
150
+ SelectScrollUpButton,
151
+ SelectScrollDownButton,
152
+ };
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
+
4
+ import { cn } from "@/lib/utils";
5
+
6
+ const Separator = React.forwardRef<
7
+ React.ElementRef<typeof SeparatorPrimitive.Root>,
8
+ React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
9
+ >(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => (
10
+ <SeparatorPrimitive.Root
11
+ ref={ref}
12
+ decorative={decorative}
13
+ orientation={orientation}
14
+ className={cn(
15
+ "shrink-0 bg-border",
16
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
17
+ className,
18
+ )}
19
+ {...props}
20
+ />
21
+ ));
22
+ Separator.displayName = SeparatorPrimitive.Root.displayName;
23
+
24
+ export { Separator };
@@ -0,0 +1,122 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
5
+ import { cva, type VariantProps } from "class-variance-authority";
6
+ import { X } from "lucide-react";
7
+
8
+ import { cn } from "@/lib/utils";
9
+
10
+ const Sheet = SheetPrimitive.Root;
11
+
12
+ const SheetTrigger = SheetPrimitive.Trigger;
13
+
14
+ const SheetClose = SheetPrimitive.Close;
15
+
16
+ const SheetPortal = SheetPrimitive.Portal;
17
+
18
+ const SheetOverlay = React.forwardRef<
19
+ React.ElementRef<typeof SheetPrimitive.Overlay>,
20
+ React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>
21
+ >(({ className, ...props }, ref) => (
22
+ <SheetPrimitive.Overlay
23
+ className={cn(
24
+ "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",
25
+ className,
26
+ )}
27
+ {...props}
28
+ ref={ref}
29
+ />
30
+ ));
31
+ SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
32
+
33
+ const sheetVariants = cva(
34
+ "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
35
+ {
36
+ variants: {
37
+ side: {
38
+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
39
+ bottom:
40
+ "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
41
+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
42
+ right:
43
+ "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
44
+ },
45
+ },
46
+ defaultVariants: {
47
+ side: "right",
48
+ },
49
+ },
50
+ );
51
+
52
+ interface SheetContentProps
53
+ extends
54
+ React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
55
+ VariantProps<typeof sheetVariants> {}
56
+
57
+ const SheetContent = React.forwardRef<
58
+ React.ElementRef<typeof SheetPrimitive.Content>,
59
+ SheetContentProps
60
+ >(({ side = "right", className, children, ...props }, ref) => (
61
+ <SheetPortal>
62
+ <SheetOverlay />
63
+ <SheetPrimitive.Content ref={ref} className={cn(sheetVariants({ side }), className)} {...props}>
64
+ <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background cursor-pointer 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-secondary">
65
+ <X className="h-4 w-4" />
66
+ <span className="sr-only">Close</span>
67
+ </SheetPrimitive.Close>
68
+ {children}
69
+ </SheetPrimitive.Content>
70
+ </SheetPortal>
71
+ ));
72
+ SheetContent.displayName = SheetPrimitive.Content.displayName;
73
+
74
+ const SheetHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
75
+ <div className={cn("flex flex-col space-y-2 text-center sm:text-left", className)} {...props} />
76
+ );
77
+ SheetHeader.displayName = "SheetHeader";
78
+
79
+ const SheetFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
80
+ <div
81
+ className={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)}
82
+ {...props}
83
+ />
84
+ );
85
+ SheetFooter.displayName = "SheetFooter";
86
+
87
+ const SheetTitle = React.forwardRef<
88
+ React.ElementRef<typeof SheetPrimitive.Title>,
89
+ React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>
90
+ >(({ className, ...props }, ref) => (
91
+ <SheetPrimitive.Title
92
+ ref={ref}
93
+ className={cn("text-lg font-semibold text-foreground", className)}
94
+ {...props}
95
+ />
96
+ ));
97
+ SheetTitle.displayName = SheetPrimitive.Title.displayName;
98
+
99
+ const SheetDescription = React.forwardRef<
100
+ React.ElementRef<typeof SheetPrimitive.Description>,
101
+ React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>
102
+ >(({ className, ...props }, ref) => (
103
+ <SheetPrimitive.Description
104
+ ref={ref}
105
+ className={cn("text-sm text-muted-foreground", className)}
106
+ {...props}
107
+ />
108
+ ));
109
+ SheetDescription.displayName = SheetPrimitive.Description.displayName;
110
+
111
+ export {
112
+ Sheet,
113
+ SheetPortal,
114
+ SheetOverlay,
115
+ SheetTrigger,
116
+ SheetClose,
117
+ SheetContent,
118
+ SheetHeader,
119
+ SheetFooter,
120
+ SheetTitle,
121
+ SheetDescription,
122
+ };