@arkyn/types 1.3.86 → 1.3.87
Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,7 @@ type BaseInputProps<T extends string> = {
|
|
15
15
|
name: string;
|
16
16
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "type" | "name">;
|
17
17
|
type CurrencyInputProps = Omit<BaseInputProps<"currency">, "max" | "defaultValue" | "value" | "onChange"> & {
|
18
|
-
defaultValue?: string;
|
18
|
+
defaultValue?: string | number | null;
|
19
19
|
onChangeValue?: (event: ChangeEvent<HTMLInputElement>, originalValue: string, maskedValue: string) => void;
|
20
20
|
onKeyPress?: (event: KeyboardEvent<HTMLInputElement>, originalValue: string, maskedValue: string) => void;
|
21
21
|
value?: string;
|
@@ -30,7 +30,7 @@ type MaskedInputProps = BaseInputProps<"masked"> & {
|
|
30
30
|
showMask?: boolean;
|
31
31
|
};
|
32
32
|
type CpfCnpjInputProps = Omit<BaseInputProps<"cpf-cnpj">, "value" | "defaultValue"> & {
|
33
|
-
defaultValue?: string;
|
33
|
+
defaultValue?: string | null;
|
34
34
|
value?: string;
|
35
35
|
};
|
36
36
|
type SimpleInputProps = BaseInputProps<InputBaseTypes>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InputProps.d.ts","sourceRoot":"","sources":["../../src/components/InputProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7E,KAAK,cAAc,GACf,QAAQ,GACR,OAAO,GACP,MAAM,GACN,gBAAgB,GAChB,OAAO,GACP,MAAM,GACN,QAAQ,GACR,OAAO,GACP,OAAO,GACP,QAAQ,GACR,UAAU,GACV,OAAO,GACP,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,MA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AC;CACnB,CAAC;AAEF,KAAK,gBAAgB,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,iBAAiB,GAAG,IAAI,CAC3B,cAAc,CAAC,UAAU,CAAC,EAC1B,OAAO,GAAG,cAAc,CACzB,GAAG;IACF,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEvD,KAAK,UAAU,GACX,kBAAkB,GAClB,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,CAAC;AAEtB,YAAY,EACV,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,gBAAgB,GACjB,CAAC"}
|
package/package.json
CHANGED
@@ -48,7 +48,7 @@ type CurrencyInputProps = Omit<
|
|
48
48
|
BaseInputProps<"currency">,
|
49
49
|
"max" | "defaultValue" | "value" | "onChange"
|
50
50
|
> & {
|
51
|
-
defaultValue?: string;
|
51
|
+
defaultValue?: string | number | null;
|
52
52
|
onChangeValue?: (
|
53
53
|
event: ChangeEvent<HTMLInputElement>,
|
54
54
|
originalValue: string,
|
@@ -76,7 +76,7 @@ type CpfCnpjInputProps = Omit<
|
|
76
76
|
BaseInputProps<"cpf-cnpj">,
|
77
77
|
"value" | "defaultValue"
|
78
78
|
> & {
|
79
|
-
defaultValue?: string;
|
79
|
+
defaultValue?: string | null;
|
80
80
|
value?: string;
|
81
81
|
};
|
82
82
|
|