@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
28 lines • 950 B
TypeScript
import { EmotionCanvasTheme } from '../theming/index';
import { ErrorType } from '../types';
export declare function getErrorColors(error?: ErrorType, theme?: EmotionCanvasTheme): {
outer: string;
inner: string;
} | {
outer?: undefined;
inner?: undefined;
};
export declare function errorRing(error?: ErrorType, theme?: EmotionCanvasTheme): {
borderColor?: undefined;
transition?: undefined;
boxShadow?: undefined;
'&:hover, &:disabled, &.hover, &.disabled'?: undefined;
'&:focus-visible:not([disabled]), &.focus:not([disabled])'?: undefined;
} | {
borderColor: string | undefined;
transition: string;
boxShadow: string;
'&:hover, &:disabled, &.hover, &.disabled': {
borderColor: string | undefined;
};
'&:focus-visible:not([disabled]), &.focus:not([disabled])': {
borderColor: string | undefined;
boxShadow: string;
};
};
//# sourceMappingURL=errorRing.d.ts.map