diff --git a/components/src/components/atoms/BackdropSurface/BackdropSurface.tsx b/components/src/components/atoms/BackdropSurface/BackdropSurface.tsx index ce42eb65..5ea42fa7 100644 --- a/components/src/components/atoms/BackdropSurface/BackdropSurface.tsx +++ b/components/src/components/atoms/BackdropSurface/BackdropSurface.tsx @@ -6,9 +6,9 @@ import { backdropSurface } from './styles.css' import type { BoxProps } from '../Box/Box' import { Box } from '../Box/Box' -type Props = { $state: TransitionState['status'], $empty: boolean } & BoxProps +export type BackdropSurfaceProps = { $state: TransitionState['status'], $empty: boolean } & BoxProps -export const BackdropSurface = React.forwardRef( +export const BackdropSurface = React.forwardRef( ({ $empty, $state, ...props }, ref) => ( ( type NativeDivProps = React.HTMLAttributes -type Props = { +export type ToastProps = { onClose: () => void open: boolean msToShow?: number @@ -137,7 +137,7 @@ const DesktopToast = ({ state, children, ...props -}: Props & InternalProps) => { +}: ToastProps & InternalProps) => { return ( void @@ -311,7 +311,7 @@ InternalProps & { ) } -export const Toast: React.FC = ({ +export const Toast: React.FC = ({ onClose, open, msToShow = 8000, diff --git a/components/src/components/organisms/Toast/index.ts b/components/src/components/organisms/Toast/index.ts deleted file mode 100644 index 98fc83b3..00000000 --- a/components/src/components/organisms/Toast/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { Toast } from './Toast' diff --git a/components/src/components/organisms/index.ts b/components/src/components/organisms/index.ts index 33f8c436..414b7b3a 100644 --- a/components/src/components/organisms/index.ts +++ b/components/src/components/organisms/index.ts @@ -1,2 +1,2 @@ export { Dialog, type DialogProps } from './Dialog/Dialog' -export { Toast } from './Toast' +export { Toast, type ToastProps } from './Toast/Toast'