@janiscommerce/ui-native
Version:
components library for Janis app
29 lines (28 loc) • 1.12 kB
TypeScript
import { palette } from '../../../../theme/palette';
export type Status = keyof typeof palette;
interface getBorderColorProps {
inputState: string;
hasMessage: boolean;
status: Status;
inputColor: string;
}
interface getLabelColorProps {
disabled: boolean;
readOnly: boolean;
inputColor: string;
inputState: string;
statusMessage: string;
status: Status;
}
interface raiseLabelProps {
disabled: boolean;
hasMessage: boolean;
inputState: string;
}
export declare const getInputInitialState: (value: string) => "incomplete" | "complete";
export declare const getBorderColor: ({ inputState, hasMessage, status, inputColor, }: getBorderColorProps) => any;
export declare const getLabelColor: ({ disabled, readOnly, inputColor, inputState, statusMessage, status, }: getLabelColorProps) => any;
export declare const raiseLabel: ({ disabled, hasMessage, inputState }: raiseLabelProps) => boolean;
export declare const showStatusMessage: (hasMessage: boolean, inputState: string) => boolean;
export declare const getStatusMessageColor: (status: Status) => any;
export {};