@monolith-forensics/monolith-ui 1.1.42 → 1.1.44
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/Grid/Grid.d.ts
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { Size, Variant } from "../core";
|
|
2
|
-
interface TextAreaProps {
|
|
3
|
-
ref?: React.Ref<HTMLTextAreaElement>;
|
|
2
|
+
interface TextAreaProps extends React.HTMLAttributes<HTMLTextAreaElement> {
|
|
4
3
|
className?: string;
|
|
5
4
|
size?: Size;
|
|
6
5
|
variant?: Variant;
|
|
7
6
|
width?: string | number | null | undefined;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
11
|
-
onKeyUp?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
12
7
|
}
|
|
13
8
|
declare const TextArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("react-textarea-autosize").TextareaAutosizeProps & import("react").RefAttributes<HTMLTextAreaElement>, "ref"> & {
|
|
14
9
|
ref?: ((instance: HTMLTextAreaElement | 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<HTMLTextAreaElement> | null | undefined;
|
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
import { Size } from "../core";
|
|
2
|
-
interface TextAreaInputProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
2
|
+
interface TextAreaInputProps extends React.HTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
inputRef?: React.RefObject<HTMLTextAreaElement> | null;
|
|
4
|
+
variant?: "contained" | "filled" | "outlined" | "text";
|
|
6
5
|
label?: string;
|
|
7
6
|
error?: string;
|
|
8
7
|
required?: boolean;
|
|
9
8
|
colSpan?: number;
|
|
10
9
|
size?: Size;
|
|
11
10
|
description?: string;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
inputRef?: React.RefObject<HTMLTextAreaElement> | null;
|
|
14
11
|
maxRows?: number;
|
|
15
12
|
minRows?: number;
|
|
16
13
|
onHeightChange?: (height: number, meta: {
|
|
17
14
|
rowHeight: number;
|
|
18
15
|
}) => void;
|
|
19
|
-
onKeyUp?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
20
16
|
cacheMeasurements?: boolean;
|
|
21
|
-
style?: any;
|
|
22
17
|
}
|
|
23
|
-
declare const TextAreaInput: (
|
|
18
|
+
declare const TextAreaInput: import("react").ForwardRefExoticComponent<TextAreaInputProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
24
19
|
export default TextAreaInput;
|
|
@@ -1,9 +1,43 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
1
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
13
|
import { TextArea, FieldLabel } from "..";
|
|
3
|
-
|
|
14
|
+
import { forwardRef } from "react";
|
|
15
|
+
const TextAreaInput = forwardRef((_a, ref) => {
|
|
16
|
+
var {
|
|
17
|
+
// defaultValue,
|
|
18
|
+
// value,
|
|
19
|
+
// placeholder,
|
|
20
|
+
// onChange,
|
|
21
|
+
label, error, required, colSpan = 1, size = "sm", description, inputRef, maxRows = 6, minRows = 3, onHeightChange,
|
|
22
|
+
// onKeyUp,
|
|
23
|
+
cacheMeasurements } = _a,
|
|
24
|
+
// style,
|
|
25
|
+
rest = __rest(_a, ["label", "error", "required", "colSpan", "size", "description", "inputRef", "maxRows", "minRows", "onHeightChange", "cacheMeasurements"]);
|
|
4
26
|
return (_jsxs("div", { style: {
|
|
5
27
|
gridColumn: `span ${colSpan}`,
|
|
6
28
|
height: "fit-content",
|
|
7
|
-
}, children: [label && (_jsx(FieldLabel, { error: error, asterisk: required, size: size, description: description, children: label })), _jsx(TextArea
|
|
8
|
-
}
|
|
29
|
+
}, children: [label && (_jsx(FieldLabel, { error: error, asterisk: required, size: size, description: description, children: label })), _jsx(TextArea
|
|
30
|
+
// defaultValue={defaultValue}
|
|
31
|
+
// value={value}
|
|
32
|
+
// placeholder={placeholder}
|
|
33
|
+
// onChange={onChange}
|
|
34
|
+
// onKeyUp={onKeyUp}
|
|
35
|
+
, Object.assign({
|
|
36
|
+
// defaultValue={defaultValue}
|
|
37
|
+
// value={value}
|
|
38
|
+
// placeholder={placeholder}
|
|
39
|
+
// onChange={onChange}
|
|
40
|
+
// onKeyUp={onKeyUp}
|
|
41
|
+
ref: ref, size: size, maxRows: maxRows, minRows: minRows, onHeightChange: onHeightChange, cacheMeasurements: cacheMeasurements }, rest))] }));
|
|
42
|
+
});
|
|
9
43
|
export default TextAreaInput;
|