Fix import paths

This commit is contained in:
Gabriel Brown 2024-07-22 15:26:56 -05:00
parent 9c680d459b
commit 6456061571
9 changed files with 17 additions and 20 deletions

View File

@ -3,7 +3,7 @@ import * as React from "react"
import { ChevronLeft, ChevronRight } from "lucide-react"
import { DayPicker } from "react-day-picker"
import { cn } from "~/lib/utils"
import { buttonVariants } from "~/components/ui/button"
import { buttonVariants } from "~/components/ui/shadcn/button"
export type CalendarProps = React.ComponentProps<typeof DayPicker>

View File

@ -1,9 +1,7 @@
"use client"
import * as React from "react"
import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
import { Check } from "lucide-react"
import { cn } from "~/lib/utils"
const Checkbox = React.forwardRef<

View File

@ -2,7 +2,7 @@
import * as React from "react"
import { Check, ChevronsUpDown } from "lucide-react"
import { cn } from "~/lib/utils"
import { Button } from "~/components/ui/button"
import { Button } from "~/components/ui/shadcn/button"
import {
Command,
CommandEmpty,
@ -10,12 +10,12 @@ import {
CommandInput,
CommandItem,
CommandList,
} from "~/components/ui/command"
} from "~/components/ui/shadcn/command"
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "~/components/ui/popover"
} from "~/components/ui/shadcn/popover"
// Define the type correctly as an array of objects
type ListItem = {

View File

@ -4,7 +4,7 @@ import { type DialogProps } from "@radix-ui/react-dialog"
import { Command as CommandPrimitive } from "cmdk"
import { Search } from "lucide-react"
import { cn } from "~/lib/utils"
import { Dialog, DialogContent } from "~/components/ui/dialog"
import { Dialog, DialogContent } from "~/components/ui/shadcn/dialog"
const Command = React.forwardRef<
React.ElementRef<typeof CommandPrimitive>,

View File

@ -3,13 +3,13 @@ import * as React from "react"
import { format } from "date-fns"
import { Calendar as CalendarIcon } from "lucide-react"
import { cn } from "~/lib/utils"
import { Button } from "~/components/ui/button"
import { Calendar } from "~/components/ui/calendar"
import { Button } from "~/components/ui/shadcn/button"
import { Calendar } from "~/components/ui/shadcn/calendar"
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "~/components/ui/popover"
} from "~/components/ui/shadcn/popover"
export function DatePickerDemo() {
const [date, setDate] = React.useState<Date>()

View File

@ -1,19 +1,19 @@
"use client"
import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"
import type * as LabelPrimitive from "@radix-ui/react-label"
import { Slot } from "@radix-ui/react-slot"
import {
Controller,
import type {
ControllerProps,
FieldPath,
FieldValues,
} from "react-hook-form"
import {
Controller,
FormProvider,
useFormContext,
} from "react-hook-form"
import { cn } from "~/lib/utils"
import { Label } from "~/components/ui/label"
import { Label } from "~/components/ui/shadcn/label"
const Form = FormProvider

View File

@ -2,7 +2,8 @@ import * as React from "react"
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"
import { cn } from "~/lib/utils"
import { ButtonProps, buttonVariants } from "~/components/ui/button"
import { buttonVariants } from "~/components/ui/shadcn/button"
import type { ButtonProps } from "~/components/ui/shadcn/button"
const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => (
<nav

View File

@ -3,7 +3,7 @@ import * as React from "react"
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"
import { type VariantProps } from "class-variance-authority"
import { cn } from "~/lib/utils"
import { toggleVariants } from "~/components/ui/toggle"
import { toggleVariants } from "~/components/ui/shadcn/toggle"
const ToggleGroupContext = React.createContext<
VariantProps<typeof toggleVariants>

View File

@ -1,9 +1,7 @@
"use client"
import * as React from "react"
import * as TogglePrimitive from "@radix-ui/react-toggle"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "~/lib/utils"
const toggleVariants = cva(