From 9edce4dfa5f7c4efecd0f39fb4fd4a4c9863fe6e Mon Sep 17 00:00:00 2001 From: l3wdfut4pwr l3wdfut4pwr Date: Sat, 31 Jan 2026 20:33:22 +0200 Subject: add register and reset dialogs --- src/components/ui/dialog.tsx | 6 +- src/components/ui/inputfield.tsx | 16 ++++ src/components/ui/select.tsx | 190 +++++++++++++++++++++++++++++++++++++++ src/components/ui/tabs.tsx | 4 +- src/components/ui/textarea.tsx | 18 ++++ 5 files changed, 228 insertions(+), 6 deletions(-) create mode 100644 src/components/ui/inputfield.tsx create mode 100644 src/components/ui/select.tsx create mode 100644 src/components/ui/textarea.tsx (limited to 'src/components/ui') diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 46fe445..1aaba43 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -60,7 +60,7 @@ function DialogContent({ - Close - + > )} diff --git a/src/components/ui/inputfield.tsx b/src/components/ui/inputfield.tsx new file mode 100644 index 0000000..40d5206 --- /dev/null +++ b/src/components/ui/inputfield.tsx @@ -0,0 +1,16 @@ +import { Input } from '@/components/ui/input'; + +interface InputFIeldProps { + placeholder: string; +} + +export function InputField({ placeholder }: InputFIeldProps) { + return ( +
+ +
+ ); +} diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsx new file mode 100644 index 0000000..88302a8 --- /dev/null +++ b/src/components/ui/select.tsx @@ -0,0 +1,190 @@ +"use client" + +import * as React from "react" +import * as SelectPrimitive from "@radix-ui/react-select" +import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react" + +import { cn } from "@/lib/utils" + +function Select({ + ...props +}: React.ComponentProps) { + return +} + +function SelectGroup({ + ...props +}: React.ComponentProps) { + return +} + +function SelectValue({ + ...props +}: React.ComponentProps) { + return +} + +function SelectTrigger({ + className, + size = "default", + children, + ...props +}: React.ComponentProps & { + size?: "sm" | "default" +}) { + return ( + + {children} + + + + + ) +} + +function SelectContent({ + className, + children, + position = "item-aligned", + align = "center", + ...props +}: React.ComponentProps) { + return ( + + + + + {children} + + + + + ) +} + +function SelectLabel({ + className, + ...props +}: React.ComponentProps) { + return ( + + ) +} + +function SelectItem({ + className, + children, + ...props +}: React.ComponentProps) { + return ( + + + + + + + {children} + + ) +} + +function SelectSeparator({ + className, + ...props +}: React.ComponentProps) { + return ( + + ) +} + +function SelectScrollUpButton({ + className, + ...props +}: React.ComponentProps) { + return ( + + + + ) +} + +function SelectScrollDownButton({ + className, + ...props +}: React.ComponentProps) { + return ( + + + + ) +} + +export { + Select, + SelectContent, + SelectGroup, + SelectItem, + SelectLabel, + SelectScrollDownButton, + SelectScrollUpButton, + SelectSeparator, + SelectTrigger, + SelectValue, +} diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx index ed26736..f7fadc6 100644 --- a/src/components/ui/tabs.tsx +++ b/src/components/ui/tabs.tsx @@ -26,7 +26,7 @@ function TabsList({ ) { + return ( +