@arkyn/types 1.3.85 → 1.3.87
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/InputProps.d.ts +2 -2
- package/dist/components/InputProps.d.ts.map +1 -1
- package/dist/components/SwitchProps.d.ts +11 -0
- package/dist/components/SwitchProps.d.ts.map +1 -0
- package/dist/components/SwitchProps.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/src/components/InputProps.ts +2 -2
- package/src/components/SwitchProps.ts +15 -0
- package/src/index.ts +1 -0
@@ -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,CAA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AAM,KAChB,IAAI,CAAC;IACV,UAAU,CAAC,EAAE,CACX,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,EACtC,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,KAChB,IAAI,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;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"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { ButtonHTMLAttributes } from "react";
|
2
|
+
type SwitchProps = {
|
3
|
+
size?: "sm" | "md" | "lg";
|
4
|
+
defaultChecked?: boolean;
|
5
|
+
checked?: boolean;
|
6
|
+
value?: string;
|
7
|
+
name: string;
|
8
|
+
onCheck?: (value: string) => void;
|
9
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "onChange" | "defaultValue" | "onCheck" | "value">;
|
10
|
+
export type { SwitchProps };
|
11
|
+
//# sourceMappingURL=SwitchProps.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SwitchProps.d.ts","sourceRoot":"","sources":["../../src/components/SwitchProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAElD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,GAAG,IAAI,CACN,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,UAAU,GAAG,cAAc,GAAG,SAAS,GAAG,OAAO,CAC/D,CAAC;AAEF,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
@@ -25,6 +25,7 @@ export * from "./components/PopoverProps";
|
|
25
25
|
export * from "./components/RadioProps";
|
26
26
|
export * from "./components/SelectProps";
|
27
27
|
export * from "./components/SkeletonProps";
|
28
|
+
export * from "./components/SwitchProps";
|
28
29
|
export * from "./components/TableProps";
|
29
30
|
export * from "./components/TabProps";
|
30
31
|
export * from "./components/TextareaProps";
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAA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CAAC;AAC9B,cAAc,cAAc,CAAC;AAG7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAG1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAG9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC"}
|
package/dist/index.js
CHANGED
@@ -27,6 +27,7 @@ export * from "./components/PopoverProps";
|
|
27
27
|
export * from "./components/RadioProps";
|
28
28
|
export * from "./components/SelectProps";
|
29
29
|
export * from "./components/SkeletonProps";
|
30
|
+
export * from "./components/SwitchProps";
|
30
31
|
export * from "./components/TableProps";
|
31
32
|
export * from "./components/TabProps";
|
32
33
|
export * from "./components/TextareaProps";
|
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
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import type { ButtonHTMLAttributes } from "react";
|
2
|
+
|
3
|
+
type SwitchProps = {
|
4
|
+
size?: "sm" | "md" | "lg";
|
5
|
+
defaultChecked?: boolean;
|
6
|
+
checked?: boolean;
|
7
|
+
value?: string;
|
8
|
+
name: string;
|
9
|
+
onCheck?: (value: string) => void;
|
10
|
+
} & Omit<
|
11
|
+
ButtonHTMLAttributes<HTMLButtonElement>,
|
12
|
+
"children" | "onChange" | "defaultValue" | "onCheck" | "value"
|
13
|
+
>;
|
14
|
+
|
15
|
+
export type { SwitchProps };
|
package/src/index.ts
CHANGED
@@ -28,6 +28,7 @@ export * from "./components/PopoverProps";
|
|
28
28
|
export * from "./components/RadioProps";
|
29
29
|
export * from "./components/SelectProps";
|
30
30
|
export * from "./components/SkeletonProps";
|
31
|
+
export * from "./components/SwitchProps";
|
31
32
|
export * from "./components/TableProps";
|
32
33
|
export * from "./components/TabProps";
|
33
34
|
export * from "./components/TextareaProps";
|