Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

♻️ Migrate Separator to Base UI (#2561)

Luke Vella58463c63bbf6
diff --git a/.gitignore b/.gitignore
index 57a0508ba..acd5eabea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -48,4 +48,6 @@ packages/screenshots/screenshots
next-env.d.ts
# Claude worktrees
-.claude/worktrees
\ No newline at end of file
+.claude/worktrees
+# Radix -> Base UI migration reports (local skill state)
+.migration/
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 8a7e13cc0..cc3102278 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -30,7 +30,6 @@
"@radix-ui/react-progress": "^1.1.2",
"@radix-ui/react-radio-group": "^1.2.3",
"@radix-ui/react-select": "^2.2.2",
- "@radix-ui/react-separator": "^1.1.2",
"@radix-ui/react-slot": "^1.1.2",
"@radix-ui/react-switch": "^1.0.2",
"@radix-ui/react-tabs": "^1.0.4",
diff --git a/packages/ui/src/separator.tsx b/packages/ui/src/separator.tsx
index d8f3941e6..d48013be6 100644
--- a/packages/ui/src/separator.tsx
+++ b/packages/ui/src/separator.tsx
@@ -1,21 +1,17 @@
"use client";
-import * as SeparatorPrimitive from "@radix-ui/react-separator";
-import * as React from "react";
+import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
import { cn } from "./lib/utils";
-const Separator = React.forwardRef<
- React.ElementRef<typeof SeparatorPrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
->(
- (
- { className, orientation = "horizontal", decorative = true, ...props },
- ref,
- ) => (
- <SeparatorPrimitive.Root
- ref={ref}
- decorative={decorative}
+function Separator({
+ className,
+ orientation = "horizontal",
+ ...props
+}: SeparatorPrimitive.Props) {
+ return (
+ <SeparatorPrimitive
+ data-slot="separator"
orientation={orientation}
className={cn(
"shrink-0 bg-border",
@@ -24,8 +20,7 @@ const Separator = React.forwardRef<
)}
{...props}
/>
- ),
-);
-Separator.displayName = SeparatorPrimitive.Root.displayName;
+ );
+}
export { Separator };
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8f576c7cd..4a088d7b2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -800,9 +800,6 @@ importers:
'@radix-ui/react-select':
specifier: ^2.2.2
- '@radix-ui/react-separator':
- specifier: ^1.1.2
'@radix-ui/react-slot':
specifier: ^1.1.2
version: 1.2.4(@types/[email protected])([email protected])
@@ -3875,19 +3872,6 @@ packages:
'@types/react-dom':
optional: true
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-sDvqVY4itsKwwSMEe0jtKgfTh+72Sy3gPmQpjqcQneqQ4PFmr/1I0YA+2/puilhggCe2gJcx5EBAYFkWkdpa5g==}
- peerDependencies:
- '@types/react': '*'
- '@types/react-dom': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
'@radix-ui/[email protected]':
resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==}
peerDependencies:
@@ -15308,15 +15292,6 @@ snapshots:
'@types/react': 19.2.13
'@types/react-dom': 19.2.3(@types/[email protected])
- dependencies:
- react: 19.2.6
- react-dom: 19.2.6([email protected])
- optionalDependencies:
- '@types/react': 19.2.13
- '@types/react-dom': 19.2.3(@types/[email protected])
-
dependencies:
'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])