UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

19 lines 1.09 kB
import { IconProps } from '../icon/interfaces'; import { FlashbarProps } from './interfaces'; export declare const FOCUS_DEBOUNCE_DELAY = 500; export interface StackableItem extends FlashbarProps.MessageDefinition { expandedIndex: number; collapsedIndex?: number; } export declare function getItemType(item: FlashbarProps.MessageDefinition): FlashbarProps.Type; export declare function getItemColor(item: FlashbarProps.MessageDefinition): string; export declare function getVisibleCollapsedItems(items: ReadonlyArray<FlashbarProps.MessageDefinition>, desiredLength: number): ReadonlyArray<StackableItem>; export declare function getFlashTypeCount(items: readonly FlashbarProps.MessageDefinition[]): Record<FlashbarProps.Type, number>; type LabelName = 'errorIconAriaLabel' | 'warningIconAriaLabel' | 'successIconAriaLabel' | 'infoIconAriaLabel' | 'inProgressIconAriaLabel'; export declare function getStylePropertyKey(type: FlashbarProps.Type): string; export declare const counterTypes: { type: FlashbarProps.Type; labelName: LabelName; iconName: IconProps.Name; }[]; export {};