diff --git a/src/components/ui/IMPORTANT.md b/src/components/ui/IMPORTANT.md new file mode 100644 index 0000000..1ad0039 --- /dev/null +++ b/src/components/ui/IMPORTANT.md @@ -0,0 +1,2 @@ + +Components located in this directory `src/components/ui` directory are sourced from [Shadcn components](https://ui.shadcn.com/). So I suggest ignoring this directory for assessment purposes. \ No newline at end of file diff --git a/src/components/ui/alert-dialog.tsx b/src/components/ui/alert-dialog.tsx index 15401c3..6dc78b8 100644 --- a/src/components/ui/alert-dialog.tsx +++ b/src/components/ui/alert-dialog.tsx @@ -1,5 +1,6 @@ "use client"; +// Adopted Component from https://ui.shadcn.com/ import * as React from "react"; import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"; diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx index 1d68e21..746ab75 100644 --- a/src/components/ui/button.tsx +++ b/src/components/ui/button.tsx @@ -1,3 +1,4 @@ +// Adopted Component from https://ui.shadcn.com/ import * as React from "react"; import { Slot } from "@radix-ui/react-slot"; import { type VariantProps, cva } from "class-variance-authority"; diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 42b363d..0907d81 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -1,5 +1,6 @@ "use client"; +// Adopted Component from https://ui.shadcn.com/ import * as React from "react"; import * as DialogPrimitive from "@radix-ui/react-dialog"; import { X } from "lucide-react"; diff --git a/src/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsx index 995409e..6fd5702 100644 --- a/src/components/ui/dropdown-menu.tsx +++ b/src/components/ui/dropdown-menu.tsx @@ -1,5 +1,6 @@ "use client"; +// Adopted Component from https://ui.shadcn.com/ import * as React from "react"; import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"; import { Check, ChevronRight, Circle } from "lucide-react"; diff --git a/src/components/ui/form.tsx b/src/components/ui/form.tsx index 450eca2..cb8819c 100644 --- a/src/components/ui/form.tsx +++ b/src/components/ui/form.tsx @@ -1,3 +1,4 @@ +// Adopted Component from https://ui.shadcn.com/ import * as LabelPrimitive from "@radix-ui/react-label"; import { Slot } from "@radix-ui/react-slot"; import * as React from "react"; diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx index 2761fbb..2713db5 100644 --- a/src/components/ui/input.tsx +++ b/src/components/ui/input.tsx @@ -1,3 +1,4 @@ +// Adopted Component from https://ui.shadcn.com/ import * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsx index 0fcfc9a..a114dd3 100644 --- a/src/components/ui/label.tsx +++ b/src/components/ui/label.tsx @@ -1,5 +1,6 @@ "use client"; +// Adopted Component from https://ui.shadcn.com/ import * as React from "react"; import * as LabelPrimitive from "@radix-ui/react-label"; import { type VariantProps, cva } from "class-variance-authority"; diff --git a/src/components/ui/pagination.tsx b/src/components/ui/pagination.tsx index 18484eb..ef54dc1 100644 --- a/src/components/ui/pagination.tsx +++ b/src/components/ui/pagination.tsx @@ -1,4 +1,5 @@ import * as React from "react"; +// Adopted Component from https://ui.shadcn.com/ import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"; import { cn } from "@/lib/utils"; diff --git a/src/components/ui/separator.tsx b/src/components/ui/separator.tsx index 5b6774d..ce6120e 100644 --- a/src/components/ui/separator.tsx +++ b/src/components/ui/separator.tsx @@ -1,5 +1,6 @@ "use client"; +// Adopted Component from https://ui.shadcn.com/ import * as React from "react"; import * as SeparatorPrimitive from "@radix-ui/react-separator"; diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsx index 2cdf440..e16baf2 100644 --- a/src/components/ui/skeleton.tsx +++ b/src/components/ui/skeleton.tsx @@ -1,5 +1,6 @@ import { cn } from "@/lib/utils"; +// Adopted Component from https://ui.shadcn.com/ function Skeleton({ className, ...props diff --git a/src/components/ui/table.tsx b/src/components/ui/table.tsx index fb611f1..aefaee4 100644 --- a/src/components/ui/table.tsx +++ b/src/components/ui/table.tsx @@ -1,5 +1,6 @@ import * as React from "react"; +// Adopted Component from https://ui.shadcn.com/ import { cn } from "@/lib/utils"; const Table = React.forwardRef< diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx index 0c99ade..237b06e 100644 --- a/src/components/ui/textarea.tsx +++ b/src/components/ui/textarea.tsx @@ -1,5 +1,6 @@ import * as React from "react"; +// Adopted Component from https://ui.shadcn.com/ import { cn } from "@/lib/utils"; export interface TextareaProps