diff --git a/packages/ui-button/src/components/Button/Button.tsx b/packages/ui-button/src/components/Button/Button.tsx index 74ac8543..07d3f71c 100644 --- a/packages/ui-button/src/components/Button/Button.tsx +++ b/packages/ui-button/src/components/Button/Button.tsx @@ -1,6 +1,6 @@ import React from "react"; -import { BaseButton } from "../private/BaseButton"; +import { BaseButton_private as BaseButton } from "../private/BaseButton"; import type { ButtonProps } from "./ButtonTypes"; import { TYPE_BUTTON, getButtonClasses } from "./utilities"; diff --git a/packages/ui-button/src/components/Button/ButtonIcon.tsx b/packages/ui-button/src/components/Button/ButtonIcon.tsx index c0eae186..8519b568 100644 --- a/packages/ui-button/src/components/Button/ButtonIcon.tsx +++ b/packages/ui-button/src/components/Button/ButtonIcon.tsx @@ -1,7 +1,7 @@ import clsx from "clsx"; import React from "react"; -import { BaseButton } from "../private/BaseButton"; +import { BaseButton_private as BaseButton } from "../private/BaseButton"; import type { ButtonIconProps } from "./ButtonTypes"; import { TYPE_ICON, getButtonClasses } from "./utilities"; diff --git a/packages/ui-button/src/components/index.ts b/packages/ui-button/src/components/index.ts index b2f8a4df..34cf4f6a 100644 --- a/packages/ui-button/src/components/index.ts +++ b/packages/ui-button/src/components/index.ts @@ -1,7 +1,6 @@ +export * from "../common/constants"; + export * from "./Button/Button"; export * from "./Button/ButtonIcon"; export * from "./Button/ButtonLink"; -export * from "../common/constants"; - -import { ButtonSort as ButtonSort_private } from "./private/ButtonSort"; -export { ButtonSort_private }; +export * from "./private/ButtonSort"; diff --git a/packages/ui-button/src/components/private/BaseButton.tsx b/packages/ui-button/src/components/private/BaseButton.tsx index eb2ef760..982df680 100644 --- a/packages/ui-button/src/components/private/BaseButton.tsx +++ b/packages/ui-button/src/components/private/BaseButton.tsx @@ -33,19 +33,20 @@ const internalClick = ( }; /* c8 ignore end */ -export const BaseButton = React.forwardRef( - (buttonProps: any, ref) => { - const { onClick, noInternalClick = false, ...otherProps } = buttonProps; - return ( -