UNPKG

@spaced-out/ui-design-system

Version:
37 lines 1.27 kB
import * as React from 'react'; import type { Flow } from 'flow-to-typescript-codemod'; import type { IconType } from '../Icon'; export declare const NOTIFICATION_SEMANTIC: Readonly<{ success: "success"; information: "information"; danger: "danger"; }>; type ClassNames = Readonly<{ wrapper?: string; text?: string; }>; export type NotificationSemanticType = (typeof NOTIFICATION_SEMANTIC)[keyof typeof NOTIFICATION_SEMANTIC]; type BaseNotificationProps = { classNames?: ClassNames; semantic: NotificationSemanticType; iconLeftName?: string; iconLeftType?: IconType; dismissable?: boolean; children?: string; onCloseClick?: ((arg1: React.SyntheticEvent<HTMLElement>) => unknown) | null | undefined; }; type NotificationBaseProps = BaseNotificationProps & { classNames?: ClassNames; } & ({ dismissable: true; onCloseClick?: ((arg1: React.SyntheticEvent<HTMLElement>) => unknown) | null | undefined; selfDismiss?: boolean; } | { dismissable?: false; }); export type NotificationProps = NotificationBaseProps & { semantic: NotificationSemanticType; }; export declare const Notification: Flow.AbstractComponent<NotificationProps, HTMLDivElement>; export {}; //# sourceMappingURL=Notification.d.ts.map