Skip to content

Commit 71d587d

Browse files
committed
fix: alter-dialog typing
1 parent 940956b commit 71d587d

File tree

1 file changed

+8
-5
lines changed
  • src/components/composites/AlertDialog

1 file changed

+8
-5
lines changed

src/components/composites/AlertDialog/types.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import type { IBoxProps } from '../../primitives/Box';
22
import type { IIconButtonProps } from '../IconButton';
33
import type { MutableRefObject } from 'react';
44
import type { IFadeProps, ISlideProps } from '../Transitions';
5-
import type { CustomProps } from '../../../components/types/utils';
5+
import type {
6+
CustomProps,
7+
ThemeComponentSizeType,
8+
} from '../../../components/types/utils';
69

710
export interface InterfaceAlertDialogProps extends IBoxProps {
811
/**
@@ -20,7 +23,7 @@ export interface InterfaceAlertDialogProps extends IBoxProps {
2023
/**
2124
* The size of the AlertDialog
2225
*/
23-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full' | number | string;
26+
size?: ThemeComponentSizeType<'AlertDialog'>; //'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full' | number | string;
2427
/**
2528
* The ref of element that is least destructive child of the AlertDialog.
2629
*/
@@ -65,15 +68,15 @@ export interface InterfaceAlertDialogProps extends IBoxProps {
6568
/**
6669
* Props applied on Overlay Animation.
6770
*/
68-
_backdropFade?: IFadeProps;
71+
_backdropFade?: Partial<IFadeProps>;
6972
/**
7073
* Props applied on Child Fade Animation.
7174
*/
72-
_fade?: IFadeProps;
75+
_fade?: Partial<IFadeProps>;
7376
/**
7477
* Props applied on Child Slide Animation.
7578
*/
76-
_slide?: ISlideProps;
79+
_slide?: Partial<ISlideProps>;
7780
/**
7881
* Sets the animation type
7982
* @default "fade"

0 commit comments

Comments
 (0)