Skip to content

Commit

Permalink
fix: type export issues (#1510)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Feb 3, 2025
1 parent ddf468e commit 0449773
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions packages/react/src/primitives/actionBar/ActionBarRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ import { type ComponentRef, forwardRef, ComponentPropsWithoutRef } from "react";
import {
useActionBarFloatStatus,
HideAndFloatStatus,
UseActionBarFloatStatusProps,
} from "./useActionBarFloatStatus";

type PrimitiveDivProps = ComponentPropsWithoutRef<typeof Primitive.div>;

export namespace ActionBarPrimitiveRoot {
export type Element = ComponentRef<typeof Primitive.div>;
export type Props = PrimitiveDivProps & UseActionBarFloatStatusProps;
export type Props = PrimitiveDivProps & {
hideWhenRunning?: boolean | undefined;
autohide?: "always" | "not-last" | "never" | undefined;
autohideFloat?: "always" | "single-branch" | "never" | undefined;
};
}

export const ActionBarPrimitiveRoot = forwardRef<
Expand Down
5 changes: 3 additions & 2 deletions packages/react/src/primitives/thread/ThreadViewport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import { useThreadViewportAutoScroll } from "./useThreadViewportAutoScroll";

export namespace ThreadPrimitiveViewport {
export type Element = ComponentRef<typeof Primitive.div>;
export type Props = ComponentPropsWithoutRef<typeof Primitive.div> &
useThreadViewportAutoScroll.Options;
export type Props = ComponentPropsWithoutRef<typeof Primitive.div> & {
autoScroll?: boolean | undefined;
};
}

export const ThreadPrimitiveViewport = forwardRef<
Expand Down

0 comments on commit 0449773

Please sign in to comment.