UNPKG

@navinc/base-react-components

Version:
34 lines (33 loc) 1.3 kB
/// <reference types="react" /> import { Banner } from './banner.js'; import type { InferComponentProps } from './types.js'; declare const expandedStyles: { readonly error: { readonly primaryColor: "navStatusNegative"; readonly secondaryColor: "navStatusNegative200"; readonly defaultIcon: "actions/circle-warning"; readonly defaultActionIcon: "actions/close"; }; readonly neutralAction: { readonly primaryColor: "navNeutral400"; readonly secondaryColor: "navNeutral100"; readonly defaultIcon: "actions/circle-info"; readonly defaultActionIcon: "actions/carrot-right"; }; readonly success: { readonly primaryColor: "navStatusPositive"; readonly secondaryColor: "navStatusPositive200"; readonly defaultIcon: "actions/check-circle"; readonly defaultActionIcon: "actions/close"; }; }; type StyleKey = keyof typeof expandedStyles; type BannerToastProps = InferComponentProps<typeof Banner> & { onDismiss?: () => void; shouldNotTimeout?: boolean; shouldShowTimedBar?: boolean; time?: number; type?: StyleKey; }; export declare const BannerToast: ({ onDismiss, shouldNotTimeout, type, time, shouldShowTimedBar, ...props }: BannerToastProps) => JSX.Element; export {};