@cube-dev/ui-kit 0.8.3 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ import { ModalProps } from '@react-types/overlays';
5
5
  export declare const OVERLAY_WRAPPER_STYLES: Styles;
6
6
  export interface CubeModalProps extends ModalProps {
7
7
  qa?: BaseProps['qa'];
8
- onClose?: () => void;
8
+ onClose?: (action?: string) => void;
9
9
  type?: 'modal' | 'fullscreen' | 'fullscreenTakeover';
10
10
  styles?: Styles;
11
11
  }
@@ -4,7 +4,7 @@ import { BaseProps } from '../../types';
4
4
  import { TrayProps } from '@react-types/overlays';
5
5
  export interface CubeTrayProps extends TrayProps {
6
6
  qa?: BaseProps['qa'];
7
- onClose?: () => void;
7
+ onClose?: (action?: string) => void;
8
8
  isFixedHeight?: boolean;
9
9
  isNonModal?: boolean;
10
10
  styles?: Styles;