@kwantis-id3/frontend-library 0.22.2 → 0.24.0
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
|
|
3
3
|
export type TInputType = "text" | "number" | "password" | "email" | "image" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "week" | "time" | "color";
|
|
4
4
|
interface TextFieldProps {
|
|
@@ -7,7 +7,7 @@ interface TextFieldProps {
|
|
|
7
7
|
/** The name of the input */
|
|
8
8
|
name?: string;
|
|
9
9
|
/** The onChange handler of the input */
|
|
10
|
-
onChange?: (
|
|
10
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
11
|
/** The placeholder of the input */
|
|
12
12
|
placeholder?: string;
|
|
13
13
|
/** The HTML id of the input */
|
|
@@ -6,6 +6,8 @@ interface ModalProps {
|
|
|
6
6
|
isOpen: boolean;
|
|
7
7
|
/** The handler to change the state of the modal */
|
|
8
8
|
setIsOpen: (isOpen: boolean) => void;
|
|
9
|
+
/** The handler to be called when the modal is opened */
|
|
10
|
+
onOpen?: () => void;
|
|
9
11
|
/** The handler to be called when the modal is closed */
|
|
10
12
|
onClose?: () => void;
|
|
11
13
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ interface TextFieldProps {
|
|
|
97
97
|
/** The name of the input */
|
|
98
98
|
name?: string;
|
|
99
99
|
/** The onChange handler of the input */
|
|
100
|
-
onChange?: (
|
|
100
|
+
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
101
101
|
/** The placeholder of the input */
|
|
102
102
|
placeholder?: string;
|
|
103
103
|
/** The HTML id of the input */
|
|
@@ -288,6 +288,8 @@ interface ModalProps {
|
|
|
288
288
|
isOpen: boolean;
|
|
289
289
|
/** The handler to change the state of the modal */
|
|
290
290
|
setIsOpen: (isOpen: boolean) => void;
|
|
291
|
+
/** The handler to be called when the modal is opened */
|
|
292
|
+
onOpen?: () => void;
|
|
291
293
|
/** The handler to be called when the modal is closed */
|
|
292
294
|
onClose?: () => void;
|
|
293
295
|
}
|