UNPKG

@spaced-out/ui-design-system

Version:
31 lines 1.02 kB
import * as React from 'react'; import type { Flow } from 'flow-to-typescript-codemod'; import type { AlertSemanticType } from '../../types/common'; import type { IconType } from '../Icon'; type ClassNames = Readonly<{ wrapper?: string; alertText?: string; actionContainer?: string; icon?: string; }>; type InContextAlertBaseProps = { classNames?: ClassNames; } & ({ dismissable: true; onCloseClick?: ((arg1: React.SyntheticEvent<HTMLElement>) => unknown) | null | undefined; selfDismiss?: boolean; } | { dismissable?: false; }) & { children?: string; actionText?: string; onAction?: ((arg1: React.SyntheticEvent<HTMLElement>) => unknown) | null | undefined; }; export type InContextAlertProps = InContextAlertBaseProps & { semantic?: AlertSemanticType; leftIconName?: string; leftIconType?: IconType; }; export declare const InContextAlert: Flow.AbstractComponent<InContextAlertProps, HTMLDivElement>; export {}; //# sourceMappingURL=InContextAlert.d.ts.map