Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions components/ui/accordion.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { ChevronDownIcon } from "lucide-react"
import { Accordion as AccordionPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>) {
return <AccordionPrimitive.Root data-slot="accordion" {...props} />
}
Expand Down
2 changes: 1 addition & 1 deletion components/ui/alert-dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { AlertDialog as AlertDialogPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"

function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
Expand Down
3 changes: 1 addition & 2 deletions components/ui/alert.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"

import { cn } from "@/lib/utils"
import { cn } from "cn"

const alertVariants = cva(
"relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
Expand Down
3 changes: 1 addition & 2 deletions components/ui/avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { Avatar as AvatarPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function Avatar({
className,
size = "default",
Expand Down
3 changes: 1 addition & 2 deletions components/ui/badge.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "cn"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"

const badgeVariants = cva(
"inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",
{
Expand Down
3 changes: 1 addition & 2 deletions components/ui/breadcrumb.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import * as React from "react"
import { cn } from "cn"
import { ChevronRight, MoreHorizontal } from "lucide-react"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"

function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {
return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />
}
Expand Down
2 changes: 1 addition & 1 deletion components/ui/button-group.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "cn"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"
import { Separator } from "@/components/ui/separator"

const buttonGroupVariants = cva(
Expand Down
3 changes: 1 addition & 2 deletions components/ui/button.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "cn"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"

const buttonVariants = cva(
"inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
{
Expand Down
2 changes: 1 addition & 1 deletion components/ui/calendar.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react"
import { DayPicker, getDefaultClassNames, type DayButton } from "react-day-picker"

import { cn } from "@/lib/utils"
import { Button, buttonVariants } from "@/components/ui/button"

function Calendar({
Expand Down
3 changes: 1 addition & 2 deletions components/ui/card.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from "react"

import { cn } from "@/lib/utils"
import { cn } from "cn"

function Card({ className, ...props }: React.ComponentProps<"div">) {
return (
Expand Down
2 changes: 1 addition & 1 deletion components/ui/carousel.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react"
import { ArrowLeft, ArrowRight } from "lucide-react"

import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"

type CarouselApi = UseEmblaCarouselType[1]
Expand Down
3 changes: 1 addition & 2 deletions components/ui/chart.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import * as RechartsPrimitive from "recharts"
import type { TooltipValueType } from "recharts"

import { cn } from "@/lib/utils"

// Format: { THEME_NAME: CSS_SELECTOR }
const THEMES = { light: "", dark: ".dark" } as const

Expand Down
3 changes: 1 addition & 2 deletions components/ui/checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { CheckIcon } from "lucide-react"
import { Checkbox as CheckboxPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
return (
<CheckboxPrimitive.Root
Expand Down
2 changes: 1 addition & 1 deletion components/ui/combobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import * as React from "react"
import { Combobox as ComboboxPrimitive } from "@base-ui/react"
import { cn } from "cn"
import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react"

import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"
import {
InputGroup,
Expand Down Expand Up @@ -246,7 +246,7 @@
)
}

function ComboboxChipsInput({ className, children, ...props }: ComboboxPrimitive.Input.Props) {

Check warning on line 249 in components/ui/combobox.tsx

View workflow job for this annotation

GitHub Actions / Quality / Code Quality & Security

'children' is defined but never used
return (
<ComboboxPrimitive.Input
data-slot="combobox-chip-input"
Expand Down
2 changes: 1 addition & 1 deletion components/ui/command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import * as React from "react"
import { Command as CommandPrimitive } from "cmdk"
import { cn } from "cn"
import { SearchIcon } from "lucide-react"

import { cn } from "@/lib/utils"
import {
Dialog,
DialogContent,
Expand Down
3 changes: 1 addition & 2 deletions components/ui/context-menu.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"
import { ContextMenu as ContextMenuPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {
return <ContextMenuPrimitive.Root data-slot="context-menu" {...props} />
}
Expand Down
2 changes: 1 addition & 1 deletion components/ui/dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { XIcon } from "lucide-react"
import { Dialog as DialogPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"

function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {
Expand Down
3 changes: 1 addition & 2 deletions components/ui/drawer.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { Drawer as DrawerPrimitive } from "vaul"

import { cn } from "@/lib/utils"

function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {
return <DrawerPrimitive.Root data-slot="drawer" {...props} />
}
Expand Down
3 changes: 1 addition & 2 deletions components/ui/dropdown-menu.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />
}
Expand Down
3 changes: 1 addition & 2 deletions components/ui/empty.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { cva, type VariantProps } from "class-variance-authority"

import { cn } from "@/lib/utils"
import { cn } from "cn"

function Empty({ className, ...props }: React.ComponentProps<"div">) {
return (
Expand Down
2 changes: 1 addition & 1 deletion components/ui/field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { useMemo } from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "cn"

import { cn } from "@/lib/utils"
import { Label } from "@/components/ui/label"
import { Separator } from "@/components/ui/separator"

Expand Down
2 changes: 1 addition & 1 deletion components/ui/form.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import type { Label as LabelPrimitive } from "radix-ui"
import { Slot } from "radix-ui"
import {
Expand All @@ -13,7 +14,6 @@ import {
type FieldValues,
} from "react-hook-form"

import { cn } from "@/lib/utils"
import { Label } from "@/components/ui/label"

const Form = FormProvider
Expand Down
3 changes: 1 addition & 2 deletions components/ui/hover-card.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { HoverCard as HoverCardPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>) {
return <HoverCardPrimitive.Root data-slot="hover-card" {...props} />
}
Expand Down
2 changes: 1 addition & 1 deletion components/ui/input-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "cn"

import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"
import { Input } from "@/components/ui/input"
import { Textarea } from "@/components/ui/textarea"
Expand Down
3 changes: 1 addition & 2 deletions components/ui/input-otp.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { OTPInput, OTPInputContext } from "input-otp"
import { MinusIcon } from "lucide-react"

import { cn } from "@/lib/utils"

function InputOTP({
className,
containerClassName,
Expand Down
3 changes: 1 addition & 2 deletions components/ui/input.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from "react"

import { cn } from "@/lib/utils"
import { cn } from "cn"

function Input({ className, type, ...props }: React.ComponentProps<"input">) {
return (
Expand Down
2 changes: 1 addition & 1 deletion components/ui/item.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "cn"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"
import { Separator } from "@/components/ui/separator"

function ItemGroup({ className, ...props }: React.ComponentProps<"div">) {
Expand Down
2 changes: 1 addition & 1 deletion components/ui/kbd.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cn } from "@/lib/utils"
import { cn } from "cn"

function Kbd({ className, ...props }: React.ComponentProps<"kbd">) {
return (
Expand Down
3 changes: 1 addition & 2 deletions components/ui/label.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { Label as LabelPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {
return (
<LabelPrimitive.Root
Expand Down
3 changes: 1 addition & 2 deletions components/ui/menubar.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"
import { Menubar as MenubarPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>) {
return (
<MenubarPrimitive.Root
Expand Down
3 changes: 1 addition & 2 deletions components/ui/native-select.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from "react"
import { cn } from "cn"
import { ChevronDownIcon } from "lucide-react"

import { cn } from "@/lib/utils"

function NativeSelect({
className,
size = "default",
Expand Down
3 changes: 1 addition & 2 deletions components/ui/navigation-menu.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import * as React from "react"
import { cva } from "class-variance-authority"
import { cn } from "cn"
import { ChevronDownIcon } from "lucide-react"
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function NavigationMenu({
className,
children,
Expand Down
2 changes: 1 addition & 1 deletion components/ui/pagination.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react"
import { cn } from "cn"
import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react"

import { cn } from "@/lib/utils"
import { buttonVariants, type Button } from "@/components/ui/button"

function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
Expand Down
3 changes: 1 addition & 2 deletions components/ui/popover.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { Popover as PopoverPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {
return <PopoverPrimitive.Root data-slot="popover" {...props} />
}
Expand Down
3 changes: 1 addition & 2 deletions components/ui/progress.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"use client"

import * as React from "react"
import { cn } from "cn"
import { Progress as ProgressPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function Progress({
className,
value,
Expand Down
Loading
Loading