@monolith-forensics/monolith-ui 1.1.44 → 1.1.45
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.
package/dist/Input/Input.d.ts
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
import { Size, Variant } from "../core";
|
|
2
2
|
export interface InputProps {
|
|
3
|
-
|
|
3
|
+
[key: string]: React.HTMLAttributes<HTMLInputElement> | any;
|
|
4
4
|
className?: string;
|
|
5
5
|
size?: Size;
|
|
6
6
|
variant?: Variant;
|
|
7
7
|
width?: string | number | null | undefined;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
-
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
12
|
-
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
13
|
-
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
14
|
-
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
15
|
-
autoFocus?: boolean;
|
|
16
|
-
readOnly?: boolean;
|
|
17
8
|
}
|
|
18
9
|
declare const Input: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
19
10
|
ref?: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Size } from "../core";
|
|
2
|
-
interface TextAreaInputProps extends React.
|
|
3
|
-
inputRef?: React.RefObject<HTMLTextAreaElement> | null;
|
|
2
|
+
interface TextAreaInputProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
3
|
variant?: "contained" | "filled" | "outlined" | "text";
|
|
5
4
|
label?: string;
|
|
6
5
|
error?: string;
|
|
@@ -18,11 +18,13 @@ const TextAreaInput = forwardRef((_a, ref) => {
|
|
|
18
18
|
// value,
|
|
19
19
|
// placeholder,
|
|
20
20
|
// onChange,
|
|
21
|
-
label, error, required, colSpan = 1, size = "sm", description,
|
|
21
|
+
label, error, required, colSpan = 1, size = "sm", description,
|
|
22
|
+
// inputRef,
|
|
23
|
+
maxRows = 6, minRows = 3, onHeightChange,
|
|
22
24
|
// onKeyUp,
|
|
23
25
|
cacheMeasurements } = _a,
|
|
24
26
|
// style,
|
|
25
|
-
rest = __rest(_a, ["label", "error", "required", "colSpan", "size", "description", "
|
|
27
|
+
rest = __rest(_a, ["label", "error", "required", "colSpan", "size", "description", "maxRows", "minRows", "onHeightChange", "cacheMeasurements"]);
|
|
26
28
|
return (_jsxs("div", { style: {
|
|
27
29
|
gridColumn: `span ${colSpan}`,
|
|
28
30
|
height: "fit-content",
|