@kaspersky/components
Version:
Kaspersky Design System UI Kit
29 lines (28 loc) • 1.31 kB
TypeScript
import { Theme } from '../../design-system/types/index.js';
import { TestingProps, ToViewProps } from '../../helpers/typesHelpers.js';
export declare const IndicatorModes: readonly ["accent", "not-active", "new", "update", "inProgress", "resolved", "inIncident", "high", "critical", "medium", "info", "positive", "low"];
export declare type IndicatorMode = typeof IndicatorModes[number];
/** @deprecated */
export declare const IndicatorModesDeprecated: readonly ["default"];
/** @deprecated */
export declare type IndicatorModeDeprecated = typeof IndicatorModesDeprecated[number];
export declare type IndicatorCssConfig = {
background: string;
borderColor: string;
};
export declare type IndicatorThemeProps = {
/** Color mode */
mode?: IndicatorMode | IndicatorModeDeprecated;
/** Custom theme */
theme?: Theme;
};
export declare type IndicatorProps = {
/** Show border */
border?: boolean;
label?: string;
} & IndicatorThemeProps & TestingProps;
export declare type IndicatorViewProps = ToViewProps<IndicatorProps, IndicatorCssConfig, IndicatorThemeProps>;
/** @deprecated Use IndicatorProps instead */
export declare type IIndicatorProps = IndicatorProps;
/** @deprecated Use IndicatorViewProps instead */
export declare type IIndicatorViewProps = IndicatorViewProps;