Migrate all shadcn components into apps/web/components/ui/ so the web app is fully independent from packages/ui for its UI layer. Update to the latest shadcn base-nova style. Add missing semantic color variables (success, warning, info, canvas), font-mono mapping, scrollbar styling, and wrap Select items in SelectGroup for proper padding. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
545 B
TypeScript
25 lines
545 B
TypeScript
"use client"
|
|
|
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator"
|
|
|
|
import { cn } from "@/lib/utils"
|
|
|
|
function Separator({
|
|
className,
|
|
orientation = "horizontal",
|
|
...props
|
|
}: SeparatorPrimitive.Props) {
|
|
return (
|
|
<SeparatorPrimitive
|
|
data-slot="separator"
|
|
orientation={orientation}
|
|
className={cn(
|
|
"shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export { Separator }
|