@activecollab/components
Version:
ActiveCollab Components
26 lines • 979 B
TypeScript
import React from "react";
import { InputProps } from "./Input";
export interface ValidationProps {
/** Strength calculating function */
getStrength: (input: string) => 0 | 1 | 2 | 3 | 4;
/** Array of strength level strings */
levels: [string, string, string, string, string];
}
export interface InputPasswordProps extends Omit<InputProps, "type" | "size"> {
/** Input size */
size?: "regular" | "big" | "biggest";
/** Renders with shown text */
show?: boolean;
/** Removes show/hide control */
hideControl?: boolean;
/** Show tooltip text */
showTooltipText?: string;
/** Hide tooltip text */
hideTooltipText?: string;
/** Validation object */
validation?: ValidationProps;
/** Error message tooltip text */
errorMessage?: string;
}
export declare const InputPassword: React.ForwardRefExoticComponent<InputPasswordProps & React.RefAttributes<HTMLInputElement>>;
//# sourceMappingURL=InputPassword.d.ts.map