@@ -12,11 +12,11 @@ import { getColor } from '@zendeskgarden/react-theming';
1212import { Grid } from '@zendeskgarden/react-grid' ;
1313import { Button , IconButton } from '@zendeskgarden/react-buttons' ;
1414import { Avatar } from '@zendeskgarden/react-avatars' ;
15- import { ITooltipModalProps , TooltipModal } from '@zendeskgarden/react-modals' ;
15+ import { ITooltipDialogProps , TooltipDialog } from '@zendeskgarden/react-modals' ;
1616
1717const PLACEMENT = [ 'top-start' , 'top' , 'top-end' , 'bottom-start' , 'bottom' , 'bottom-end' ] as const ;
1818
19- interface IArgs extends ITooltipModalProps {
19+ interface IArgs extends ITooltipDialogProps {
2020 count : number ;
2121 handleClick : ( ref ?: HTMLElement | null ) => void ;
2222 hasBody : boolean ;
@@ -30,7 +30,7 @@ interface IArgs extends ITooltipModalProps {
3030 dialogAriaLabel : string ;
3131}
3232
33- export const TooltipModalStory : Story < IArgs > = ( {
33+ export const TooltipDialogStory : Story < IArgs > = ( {
3434 count,
3535 handleClick,
3636 hasBody,
@@ -58,20 +58,20 @@ export const TooltipModalStory: Story<IArgs> = ({
5858
5959 return (
6060 < >
61- < TooltipModal { ...args } placement = { args . placement || PLACEMENT [ current ] } { ...ariaProp } >
62- { hasTitle && < TooltipModal . Title tag = { tag } > { title } </ TooltipModal . Title > }
63- { hasBody && < TooltipModal . Body > { body } </ TooltipModal . Body > }
61+ < TooltipDialog { ...args } placement = { args . placement || PLACEMENT [ current ] } { ...ariaProp } >
62+ { hasTitle && < TooltipDialog . Title tag = { tag } > { title } </ TooltipDialog . Title > }
63+ { hasBody && < TooltipDialog . Body > { body } </ TooltipDialog . Body > }
6464 { hasFooter && (
65- < TooltipModal . Footer >
65+ < TooltipDialog . Footer >
6666 { current > 0 && (
67- < TooltipModal . FooterItem >
67+ < TooltipDialog . FooterItem >
6868 < Button size = "small" isBasic onClick = { ( ) => handleClick ( refs . current [ current - 1 ] ) } >
6969 Previous
7070 </ Button >
71- </ TooltipModal . FooterItem >
71+ </ TooltipDialog . FooterItem >
7272 ) }
7373 { current >= 0 && (
74- < TooltipModal . FooterItem >
74+ < TooltipDialog . FooterItem >
7575 < Button
7676 isPrimary
7777 size = "small"
@@ -83,12 +83,12 @@ export const TooltipModalStory: Story<IArgs> = ({
8383 >
8484 { current === refs . current . length - 1 ? 'Finish' : 'Next' }
8585 </ Button >
86- </ TooltipModal . FooterItem >
86+ </ TooltipDialog . FooterItem >
8787 ) }
88- </ TooltipModal . Footer >
88+ </ TooltipDialog . Footer >
8989 ) }
90- { hasClose && < TooltipModal . Close aria-label = { closeAriaLabel } /> }
91- </ TooltipModal >
90+ { hasClose && < TooltipDialog . Close aria-label = { closeAriaLabel } /> }
91+ </ TooltipDialog >
9292 < Grid >
9393 < Grid . Row style = { { height : 'calc(100vh - 80px)' } } >
9494 { [ ...Array ( count ) ] . map ( ( _ , index ) => (
0 commit comments