formica-ui-lib 1.0.339 → 1.0.340
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,6 +20,11 @@ export interface InputProps {
|
|
|
20
20
|
inputClassName?: string;
|
|
21
21
|
autoComplete?: string;
|
|
22
22
|
autoFocus?: boolean;
|
|
23
|
+
/** Expiration emits MM/YY; cardNumber and digits emit digits only. */
|
|
24
|
+
mask?: "expirationDate" | "cardNumber" | "digits";
|
|
25
|
+
/** Maximum digit count for the digits mask. */
|
|
26
|
+
maxDigits?: number;
|
|
27
|
+
inputMode?: React.HTMLAttributes<HTMLInputElement>["inputMode"];
|
|
23
28
|
leadingIcon?: React.ReactNode;
|
|
24
29
|
trailingIcon?: React.ReactNode;
|
|
25
30
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -30,6 +35,7 @@ export interface InputProps {
|
|
|
30
35
|
value: string;
|
|
31
36
|
}) => void;
|
|
32
37
|
}
|
|
38
|
+
export type InputMaskOptions = Pick<InputProps, "value" | "mask" | "maxDigits" | "readOnly" | "disabled" | "onChange" | "onBlur" | "onKeyDown">;
|
|
33
39
|
export interface InputFieldProps extends InputProps {
|
|
34
40
|
label?: string;
|
|
35
41
|
errorMessage?: string;
|