) {
)
}
-function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
- return (
-
- )
-}
-
export {
Card,
CardHeader,
- CardFooter,
CardTitle,
- CardAction,
- CardDescription,
CardContent,
}
diff --git a/packages/ui/src/components/ui/command.tsx b/packages/ui/src/components/ui/command.tsx
index ba3c63ff..a6e3615d 100644
--- a/packages/ui/src/components/ui/command.tsx
+++ b/packages/ui/src/components/ui/command.tsx
@@ -6,13 +6,6 @@ import { Command as CommandPrimitive } from "cmdk"
import { cn } from "@/lib/utils"
import { ScrollableOverlay } from "@/components/ui/ScrollableOverlay";
import { Icon } from "@/components/icon/Icon";
-import {
- Dialog,
- DialogContent,
- DialogDescription,
- DialogHeader,
- DialogTitle,
-} from "@/components/ui/dialog"
function Command({
className,
@@ -38,38 +31,6 @@ function Command({
)
}
-function CommandDialog({
- title = "Command Palette",
- description = "Search for a command to run...",
- children,
- className,
- showCloseButton = true,
- ...props
-}: Omit
, "children"> & {
- title?: string
- description?: string
- className?: string
- showCloseButton?: boolean
- children?: React.ReactNode
-}) {
- return (
-
- )
-}
-
const CommandInput = React.forwardRef<
React.ComponentRef,
React.ComponentPropsWithoutRef
@@ -232,7 +193,6 @@ function CommandShortcut({
export {
Command,
- CommandDialog,
CommandInput,
CommandList,
CommandEmpty,
diff --git a/packages/ui/src/components/ui/context-menu.tsx b/packages/ui/src/components/ui/context-menu.tsx
index 15c38a4e..9812f3fc 100644
--- a/packages/ui/src/components/ui/context-menu.tsx
+++ b/packages/ui/src/components/ui/context-menu.tsx
@@ -1,13 +1,11 @@
import * as React from "react";
import { ContextMenu as BaseContextMenu } from "@base-ui/react/context-menu";
-import { Icon } from "@/components/icon/Icon";
import { cn } from "@/lib/utils";
import {
dropdownMenuItemClass,
dropdownMenuPopupClass,
dropdownMenuSeparatorClass,
- dropdownMenuSubTriggerClass,
} from "./dropdown-menu.styles";
function ContextMenu({ ...props }: React.ComponentProps) {
@@ -53,47 +51,10 @@ function ContextMenuSeparator({ className, ...props }: React.ComponentProps;
}
-function ContextMenuSub({ ...props }: React.ComponentProps) {
- return ;
-}
-
-function ContextMenuSubTrigger({ className, children, ...props }: React.ComponentProps) {
- return (
-
- {children}
-
-
- );
-}
-
-function ContextMenuSubContent({ className, positionerClassName, children, style, ...props }: ContentProps) {
- return (
-
-
-
- {children}
-
-
-
- );
-}
-
export {
ContextMenu,
ContextMenuTrigger,
ContextMenuContent,
ContextMenuItem,
ContextMenuSeparator,
- ContextMenuSub,
- ContextMenuSubTrigger,
- ContextMenuSubContent,
};
diff --git a/packages/ui/src/components/ui/dialog.tsx b/packages/ui/src/components/ui/dialog.tsx
index bdccc80e..b01f2db2 100644
--- a/packages/ui/src/components/ui/dialog.tsx
+++ b/packages/ui/src/components/ui/dialog.tsx
@@ -41,15 +41,6 @@ function DialogPortal({
return
}
-function DialogClose({
- asChild,
- children,
- ...props
-}: React.ComponentProps & AsChildProps) {
- const r = renderFromAsChild(asChild, children);
- return
-}
-
const DialogOverlay = React.forwardRef<
HTMLDivElement,
React.ComponentPropsWithoutRef
@@ -177,13 +168,10 @@ function DialogDescription({
export {
Dialog,
- DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
- DialogOverlay,
- DialogPortal,
DialogTitle,
DialogTrigger,
}
diff --git a/packages/ui/src/components/ui/dropdown-menu.tsx b/packages/ui/src/components/ui/dropdown-menu.tsx
index 12d49e42..16215d81 100644
--- a/packages/ui/src/components/ui/dropdown-menu.tsx
+++ b/packages/ui/src/components/ui/dropdown-menu.tsx
@@ -48,13 +48,6 @@ function DropdownMenu({
)
}
-function DropdownMenuPortal({
- ...props
-}: React.ComponentProps) {
- const portalContext = React.useContext(DropdownPortalContext);
- return
-}
-
function DropdownMenuTrigger({
asChild,
children,
@@ -147,12 +140,6 @@ function DropdownMenuContent({
)
}
-function DropdownMenuGroup({
- ...props
-}: React.ComponentProps) {
- return
-}
-
function DropdownMenuItem({
className,
inset,
@@ -188,32 +175,6 @@ function DropdownMenuItem({
)
}
-function DropdownMenuCheckboxItem({
- className,
- children,
- checked,
- ...props
-}: React.ComponentProps) {
- return (
-
-
-
-
-
-
- {children}
-
- )
-}
-
function DropdownMenuRadioGroup({
...props
}: React.ComponentProps) {
@@ -277,22 +238,6 @@ function DropdownMenuSeparator({
)
}
-function DropdownMenuShortcut({
- className,
- ...props
-}: React.ComponentProps<"span">) {
- return (
-
- )
-}
-
function DropdownMenuSub({
...props
}: React.ComponentProps) {
@@ -353,17 +298,13 @@ function DropdownMenuSubContent({
export {
DropdownMenu,
- DropdownMenuPortal,
DropdownMenuTrigger,
DropdownMenuContent,
- DropdownMenuGroup,
DropdownMenuLabel,
DropdownMenuItem,
- DropdownMenuCheckboxItem,
DropdownMenuRadioGroup,
DropdownMenuRadioItem,
DropdownMenuSeparator,
- DropdownMenuShortcut,
DropdownMenuSub,
DropdownMenuSubTrigger,
DropdownMenuSubContent,
diff --git a/packages/ui/src/components/ui/fancy-button.tsx b/packages/ui/src/components/ui/fancy-button.tsx
deleted file mode 100644
index 809c7d45..00000000
--- a/packages/ui/src/components/ui/fancy-button.tsx
+++ /dev/null
@@ -1,134 +0,0 @@
-import * as React from "react";
-import { cva, type VariantProps } from "class-variance-authority";
-
-import { cn } from "@/lib/utils";
-import { Slot } from "@/components/ui/slot";
-
-// Flat tinted fancy-button: pale tinted fill + saturated tinted border +
-// saturated tinted text. Matches the Button primitive design language.
-const TINT_PRIMARY = [
- "bg-[color-mix(in_srgb,var(--primary-base)_10%,var(--background))]",
- "text-[var(--primary-base)]",
- "border border-[color-mix(in_srgb,var(--primary-base)_12%,transparent)]",
- "hover:bg-[color-mix(in_srgb,var(--primary-base)_16%,var(--background))]",
- "active:bg-[color-mix(in_srgb,var(--primary-base)_22%,var(--background))]",
- "dark:bg-[color-mix(in_srgb,var(--primary-base)_16%,transparent)]",
- "dark:border-[color-mix(in_srgb,var(--primary-base)_20%,transparent)]",
- "dark:hover:bg-[color-mix(in_srgb,var(--primary-base)_22%,transparent)]",
- "dark:active:bg-[color-mix(in_srgb,var(--primary-base)_30%,transparent)]",
-].join(" ");
-
-const TINT_DESTRUCTIVE = [
- "bg-[color-mix(in_srgb,var(--status-error)_7%,var(--background))]",
- "text-[var(--status-error)]",
- "border border-[color-mix(in_srgb,var(--status-error)_9%,transparent)]",
- "hover:bg-[color-mix(in_srgb,var(--status-error)_11%,var(--background))]",
- "active:bg-[color-mix(in_srgb,var(--status-error)_16%,var(--background))]",
- "dark:bg-[color-mix(in_srgb,var(--status-error)_9%,transparent)]",
- "dark:border-[color-mix(in_srgb,var(--status-error)_14%,transparent)]",
- "dark:hover:bg-[color-mix(in_srgb,var(--status-error)_14%,transparent)]",
- "dark:active:bg-[color-mix(in_srgb,var(--status-error)_20%,transparent)]",
-].join(" ");
-
-const fancyButtonRoot = cva(
- [
- "group relative inline-flex items-center justify-center whitespace-nowrap [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[50px] typography-ui-label outline-none",
- "transition-[background-color,border-color,color,opacity] duration-150 ease-out",
- "focus:outline-none",
- "disabled:pointer-events-none disabled:text-muted-foreground/60",
- "disabled:bg-interactive-hover",
- ],
- {
- variants: {
- variant: {
- neutral:
- "bg-interactive-hover text-foreground border border-border/60 hover:bg-interactive-active",
- primary: TINT_PRIMARY,
- destructive: TINT_DESTRUCTIVE,
- basic:
- "bg-background text-foreground border border-border/60 hover:bg-interactive-hover hover:text-foreground",
- },
- size: {
- medium: "h-10 gap-3 rounded-[var(--radius-xl)] px-3.5",
- small: "h-9 gap-3 rounded-[var(--radius-lg)] px-3",
- xsmall: "h-8 gap-2 rounded-[var(--radius-lg)] px-2.5",
- },
- },
- defaultVariants: {
- variant: "neutral",
- size: "medium",
- },
- },
-);
-
-const fancyButtonIcon = cva("relative z-10 size-5 shrink-0", {
- variants: {
- size: {
- medium: "-mx-1",
- small: "-mx-1",
- xsmall: "-mx-1",
- },
- },
- defaultVariants: {
- size: "medium",
- },
-});
-
-type FancyButtonVariants = VariantProps;
-
-type FancyButtonContextValue = Pick;
-
-const FancyButtonContext = React.createContext({});
-
-type RootProps = FancyButtonVariants &
- React.ButtonHTMLAttributes & {
- asChild?: boolean;
- };
-
-const FancyButtonRoot = React.forwardRef(
- ({ asChild, children, variant, size, className, ...rest }, ref) => {
- const Component = (asChild ? Slot : "button") as React.ElementType;
- const ctx = React.useMemo(
- () => ({ variant, size }),
- [variant, size],
- );
-
- return (
-
-
- {children}
-
-
- );
- },
-);
-FancyButtonRoot.displayName = "FancyButton.Root";
-
-type IconProps = {
- as?: T;
- className?: string;
-} & Omit, "as" | "className">;
-
-function FancyButtonIcon({
- as,
- className,
- ...rest
-}: IconProps) {
- const { size } = React.useContext(FancyButtonContext);
- const Component = (as ?? "div") as React.ElementType;
- return (
-
- );
-}
-FancyButtonIcon.displayName = "FancyButton.Icon";
-
-export { FancyButtonRoot as Root, FancyButtonIcon as Icon };
-// eslint-disable-next-line react-refresh/only-export-components
-export { fancyButtonRoot as fancyButtonVariants };
diff --git a/packages/ui/src/components/ui/index.ts b/packages/ui/src/components/ui/index.ts
index 3cba6289..c33bec24 100644
--- a/packages/ui/src/components/ui/index.ts
+++ b/packages/ui/src/components/ui/index.ts
@@ -1,2 +1 @@
-export { Toaster } from './sonner'
-export { toast } from './toast'
\ No newline at end of file
+export { toast } from './toast'
diff --git a/packages/ui/src/components/ui/number-input.tsx b/packages/ui/src/components/ui/number-input.tsx
index 07b2a8d3..9c83c4b3 100644
--- a/packages/ui/src/components/ui/number-input.tsx
+++ b/packages/ui/src/components/ui/number-input.tsx
@@ -5,7 +5,7 @@ import { useI18n } from "@/lib/i18n"
import { cn } from "@/lib/utils"
import { Icon } from "@/components/icon/Icon";
-export interface NumberInputProps
+interface NumberInputProps
extends Omit, "value" | "onChange" | "type"> {
value?: number
onValueChange: (value: number) => void
diff --git a/packages/ui/src/components/ui/scroll-area.tsx b/packages/ui/src/components/ui/scroll-area.tsx
deleted file mode 100644
index daa2600a..00000000
--- a/packages/ui/src/components/ui/scroll-area.tsx
+++ /dev/null
@@ -1,56 +0,0 @@
-import * as React from "react"
-import { ScrollArea as BaseScrollArea } from "@base-ui/react/scroll-area"
-
-import { cn } from "@/lib/utils"
-
-function ScrollArea({
- className,
- children,
- ...props
-}: React.ComponentProps) {
- return (
-
-
- {children}
-
-
-
-
- )
-}
-
-function ScrollBar({
- className,
- orientation = "vertical",
- ...props
-}: React.ComponentProps) {
- return (
-
-
-
- )
-}
-
-export { ScrollArea, ScrollBar }
diff --git a/packages/ui/src/components/ui/select.tsx b/packages/ui/src/components/ui/select.tsx
index a6b7e92b..4d9e1f6b 100644
--- a/packages/ui/src/components/ui/select.tsx
+++ b/packages/ui/src/components/ui/select.tsx
@@ -272,50 +272,12 @@ function SelectSeparator({
)
}
-function SelectScrollUpButton({
- className,
- ...props
-}: React.ComponentProps) {
- return (
-
-
-
- )
-}
-
-function SelectScrollDownButton({
- className,
- ...props
-}: React.ComponentProps) {
- return (
-
-
-
- )
-}
-
export {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectLabel,
- SelectScrollDownButton,
- SelectScrollUpButton,
SelectSeparator,
SelectTrigger,
SelectValue,
diff --git a/packages/ui/src/components/ui/separator.tsx b/packages/ui/src/components/ui/separator.tsx
deleted file mode 100644
index 56fb040e..00000000
--- a/packages/ui/src/components/ui/separator.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-"use client"
-
-import * as React from "react"
-import { Separator as BaseSeparator } from "@base-ui/react/separator"
-
-import { cn } from "@/lib/utils"
-
-function Separator({
- className,
- orientation = "horizontal",
- ...props
-}: React.ComponentProps) {
- return (
-
- )
-}
-
-export { Separator }
diff --git a/packages/ui/src/components/ui/slider.tsx b/packages/ui/src/components/ui/slider.tsx
deleted file mode 100644
index 3c79b842..00000000
--- a/packages/ui/src/components/ui/slider.tsx
+++ /dev/null
@@ -1,64 +0,0 @@
-import * as React from 'react';
-import { cn } from '@/lib/utils';
-
-interface SliderProps {
- value: number;
- onChange: (value: number) => void;
- min?: number;
- max?: number;
- step?: number;
- disabled?: boolean;
- className?: string;
- label?: string;
- valueFormatter?: (value: number) => string;
-}
-
-/**
- * Range slider component for numeric input
- * Uses native range input styled with Tailwind CSS
- */
-export const Slider: React.FC = ({
- value,
- onChange,
- min = 0,
- max = 1,
- step = 0.1,
- disabled = false,
- className,
- label,
- valueFormatter = (v) => v.toFixed(1),
-}) => {
- return (
-
-
- onChange(parseFloat(e.target.value))}
- disabled={disabled}
- className={cn(
- 'w-full h-2 rounded-lg appearance-none cursor-pointer bg-muted',
- 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',
- 'disabled:cursor-not-allowed disabled:opacity-50',
- '[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:h-4',
- '[&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-primary',
- '[&::-webkit-slider-thumb]:shadow-none [&::-webkit-slider-thumb]:transition-transform',
- '[&::-webkit-slider-thumb]:hover:scale-110 [&::-webkit-slider-thumb]:active:scale-95',
- '[&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:rounded-full',
- '[&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:shadow-none'
- )}
- aria-label={label}
- aria-valuemin={min}
- aria-valuemax={max}
- aria-valuenow={value}
- />
-
-
- {valueFormatter(value)}
-
-
- );
-};
diff --git a/packages/ui/src/components/ui/textarea.tsx b/packages/ui/src/components/ui/textarea.tsx
index 74c85d71..f57b3c0e 100644
--- a/packages/ui/src/components/ui/textarea.tsx
+++ b/packages/ui/src/components/ui/textarea.tsx
@@ -213,29 +213,4 @@ const Textarea = React.forwardRef(
Textarea.displayName = "Textarea"
-function TextareaCharCounter({
- current,
- max,
- className,
-}: {
- current?: number;
- max?: number;
- className?: string;
-}) {
- if (current === undefined || max === undefined) return null;
- const isError = current > max;
- return (
-
- {current}/{max}
-
- );
-}
-
-export { Textarea, TextareaCharCounter }
+export { Textarea }
diff --git a/packages/ui/src/components/ui/toggle.tsx b/packages/ui/src/components/ui/toggle.tsx
deleted file mode 100644
index e0550b6b..00000000
--- a/packages/ui/src/components/ui/toggle.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-
-import * as React from "react"
-import { Toggle as BaseToggle } from "@base-ui/react/toggle"
-import { cva, type VariantProps } from "class-variance-authority"
-
-import { cn } from "@/lib/utils"
-
-const toggleVariants = cva(
- "inline-flex items-center justify-center gap-2 rounded-xl typography-ui-label font-medium hover:bg-interactive-hover hover:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[pressed]:bg-interactive-selection data-[pressed]:text-interactive-selection-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
- {
- variants: {
- variant: {
- default: "bg-transparent",
- outline:
- "border border-input bg-transparent shadow-none hover:bg-interactive-hover hover:text-foreground",
- },
- size: {
- default: "h-9 px-2 min-w-9",
- sm: "h-8 px-1.5 min-w-8",
- lg: "h-10 px-2.5 min-w-10",
- },
- },
- defaultVariants: {
- variant: "default",
- size: "default",
- },
- }
-)
-
-function Toggle({
- className,
- variant,
- size,
- ...props
-}: React.ComponentProps &
- VariantProps) {
- return (
-
- )
-}
-
-// eslint-disable-next-line react-refresh/only-export-components
-export { Toggle, toggleVariants }
diff --git a/packages/ui/src/components/ui/typewriter-text.tsx b/packages/ui/src/components/ui/typewriter-text.tsx
deleted file mode 100644
index 92928ead..00000000
--- a/packages/ui/src/components/ui/typewriter-text.tsx
+++ /dev/null
@@ -1,61 +0,0 @@
-import React, { useEffect, useRef, useState } from 'react';
-
-export type TypewriterTextProps = {
- children: string;
- speed?: number;
- loop?: boolean;
- className?: string;
-};
-
-const LOOP_RESTART_DELAY_MS = 1000;
-
-export const TypewriterText: React.FC = ({
- children,
- speed = 50,
- loop = false,
- className = '',
-}) => {
- const [displayed, setDisplayed] = useState('');
- const index = useRef(0);
- const timeout = useRef(null);
-
- useEffect(() => {
- setDisplayed('');
- index.current = 0;
-
- function type() {
- setDisplayed(children.slice(0, index.current + 1));
- if (index.current < children.length - 1) {
- index.current += 1;
- timeout.current = setTimeout(type, speed);
- } else if (loop) {
- timeout.current = setTimeout(() => {
- setDisplayed('');
- index.current = 0;
- type();
- }, LOOP_RESTART_DELAY_MS);
- }
- }
-
- if (children && children.length > 0) {
- type();
- } else {
- setDisplayed('');
- }
-
- return () => {
- if (timeout.current) {
- clearTimeout(timeout.current);
- }
- };
- }, [children, speed, loop]);
-
- if (!children) {
- return null;
- }
-
- return {displayed};
-};
-
-export default TypewriterText;
-
diff --git a/packages/ui/src/components/views/DiffView.tsx b/packages/ui/src/components/views/DiffView.tsx
index fa1d21ac..41b55e1a 100644
--- a/packages/ui/src/components/views/DiffView.tsx
+++ b/packages/ui/src/components/views/DiffView.tsx
@@ -2,7 +2,7 @@ import React from 'react';
import { useUIStore } from '@/stores/useUIStore';
import { useEffectiveDirectory } from '@/hooks/useEffectiveDirectory';
-import { useGitStore, useGitStatus, useIsGitRepo, useGitFileCount, useGitLoadingStatus } from '@/stores/useGitStore';
+import { useGitStore, useGitStatus, useIsGitRepo, useGitLoadingStatus } from '@/stores/useGitStore';
import { cn } from '@/lib/utils';
import type { GitStatus } from '@/lib/api/types';
import {
@@ -1694,22 +1694,3 @@ export const DiffView: React.FC = ({
);
};
-
-// eslint-disable-next-line react-refresh/only-export-components
-export const useDiffFileCount = (): number => {
- const { git } = useRuntimeAPIs();
- const effectiveDirectory = useEffectiveDirectory();
-
- const setActiveDirectory = useGitStore((state) => state.setActiveDirectory);
- const ensureStatus = useGitStore((state) => state.ensureStatus);
- const fileCount = useGitFileCount(effectiveDirectory ?? null);
-
- React.useEffect(() => {
- if (effectiveDirectory) {
- setActiveDirectory(effectiveDirectory);
- void ensureStatus(effectiveDirectory, git);
- }
- }, [effectiveDirectory, setActiveDirectory, ensureStatus, git]);
-
- return fileCount;
-};
diff --git a/packages/ui/src/components/views/agent-manager/index.ts b/packages/ui/src/components/views/agent-manager/index.ts
index 96cef30f..6c76255f 100644
--- a/packages/ui/src/components/views/agent-manager/index.ts
+++ b/packages/ui/src/components/views/agent-manager/index.ts
@@ -1,3 +1 @@
export { AgentManagerView } from './AgentManagerView';
-export { AgentManagerSidebar } from './AgentManagerSidebar';
-export { AgentManagerEmptyState } from './AgentManagerEmptyState';
diff --git a/packages/ui/src/components/views/git/GitGraphSegment.tsx b/packages/ui/src/components/views/git/GitGraphSegment.tsx
index d5035d4f..1a6ba28f 100644
--- a/packages/ui/src/components/views/git/GitGraphSegment.tsx
+++ b/packages/ui/src/components/views/git/GitGraphSegment.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import type { LanedCommit } from './gitGraph';
-export const LANE_WIDTH = 8;
+const LANE_WIDTH = 8;
interface GitGraphSegmentProps {
laned: LanedCommit;
diff --git a/packages/ui/src/components/views/git/changesTree.ts b/packages/ui/src/components/views/git/changesTree.ts
index bf3d6fd0..4e5d9c58 100644
--- a/packages/ui/src/components/views/git/changesTree.ts
+++ b/packages/ui/src/components/views/git/changesTree.ts
@@ -25,7 +25,7 @@ export type FlattenedTreeRow =
file: GitStatus['files'][number];
};
-export const normalizePathForTree = (value: string): string =>
+const normalizePathForTree = (value: string): string =>
value.replace(/\\/g, '/').replace(/^\/+/, '').trim();
const createDirectoryNode = (path: string, name: string): ChangesTreeDirectoryNode => ({
diff --git a/packages/ui/src/components/views/git/gitGraph.ts b/packages/ui/src/components/views/git/gitGraph.ts
index 36d77765..066ba868 100644
--- a/packages/ui/src/components/views/git/gitGraph.ts
+++ b/packages/ui/src/components/views/git/gitGraph.ts
@@ -1,6 +1,6 @@
import type { GitLogEntry } from '@/lib/api/types';
-export type LaneColor = string;
+type LaneColor = string;
/**
* Describes one visible line/curve in a commit row's SVG.
@@ -14,7 +14,7 @@ export type LaneColor = string;
* - 'branch-out' : bezier from (dot-x, dot-y) to (toLane-x, 100%) — new parent lane opens
* - 'merge-in' : bezier from (fromLane-x, 0) to (dot-x, dot-y) — lane converges here
*/
-export interface ConnectorSegment {
+interface ConnectorSegment {
fromLane: number;
toLane: number;
color: LaneColor;
@@ -40,7 +40,7 @@ const LANE_COLORS: LaneColor[] = [
'var(--status-info)',
];
-export function laneColor(lane: number): LaneColor {
+function laneColor(lane: number): LaneColor {
return LANE_COLORS[lane % LANE_COLORS.length];
}
diff --git a/packages/ui/src/components/views/git/gitIndexMutationQueue.ts b/packages/ui/src/components/views/git/gitIndexMutationQueue.ts
index 737130ca..f494d3f5 100644
--- a/packages/ui/src/components/views/git/gitIndexMutationQueue.ts
+++ b/packages/ui/src/components/views/git/gitIndexMutationQueue.ts
@@ -1,6 +1,6 @@
export type GitIndexMutationDirection = 'stage' | 'unstage';
-export type QueuedGitIndexMutation = {
+type QueuedGitIndexMutation = {
directory: string;
direction: GitIndexMutationDirection;
paths: Set