chore: upgrade to react 19 beta and next 14 canary

This commit is contained in:
2024-05-19 14:53:00 +02:00
parent fe429295ef
commit 63e0be09e6
65 changed files with 2626 additions and 1898 deletions

View File

@@ -1,22 +1,23 @@
"use client";
import * as React from "react";
import { ComponentProps } from "react";
import * as SeparatorPrimitive from "@radix-ui/react-separator";
import { cn } from "@/lib/style";
export const Separator = React.forwardRef<
React.ElementRef<typeof SeparatorPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
>(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => (
export const Separator = ({
className,
orientation = "horizontal",
decorative = true,
...props
}: ComponentProps<typeof SeparatorPrimitive.Root>) => (
<SeparatorPrimitive.Root
{...{ ref, decorative, orientation }}
className={cn(
"bg-separator",
orientation === "horizontal" ? "h-px w-full" : "h-full w-px",
className
)}
{...{ decorative, orientation }}
{...props}
/>
));
Separator.displayName = SeparatorPrimitive.Root.displayName;
);