@monolith-forensics/monolith-ui 1.1.19 → 1.1.20
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.
|
@@ -7,6 +7,13 @@ interface TextAreaInputProps {
|
|
|
7
7
|
size?: Size;
|
|
8
8
|
description?: string;
|
|
9
9
|
inputRef?: React.RefObject<HTMLTextAreaElement> | null;
|
|
10
|
+
maxRows?: number;
|
|
11
|
+
minRows?: number;
|
|
12
|
+
onHeightChange?: (height: number, meta: {
|
|
13
|
+
rowHeight: number;
|
|
14
|
+
}) => void;
|
|
15
|
+
cacheMeasurements?: boolean;
|
|
16
|
+
style?: React.CSSProperties;
|
|
10
17
|
}
|
|
11
|
-
declare const TextAreaInput: ({ label, error, required, colSpan, size, description, inputRef,
|
|
18
|
+
declare const TextAreaInput: ({ label, error, required, colSpan, size, description, inputRef, maxRows, minRows, onHeightChange, cacheMeasurements, style, }: TextAreaInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
19
|
export default TextAreaInput;
|
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
4
|
const __1 = require("..");
|
|
16
|
-
const TextAreaInput = (
|
|
17
|
-
var { label, error, required, colSpan = 1, size = "sm", description, inputRef = null } = _a, other = __rest(_a, ["label", "error", "required", "colSpan", "size", "description", "inputRef"]);
|
|
5
|
+
const TextAreaInput = ({ label, error, required, colSpan = 1, size = "sm", description, inputRef = null, maxRows, minRows, onHeightChange, cacheMeasurements, style, }) => {
|
|
18
6
|
return ((0, jsx_runtime_1.jsxs)("div", { style: {
|
|
19
7
|
gridColumn: `span ${colSpan}`,
|
|
20
8
|
height: "fit-content",
|
|
21
|
-
}, children: [label && ((0, jsx_runtime_1.jsx)(__1.FieldLabel, { error: error, asterisk: required, size: size, description: description, children: label })), (0, jsx_runtime_1.jsx)(__1.TextArea,
|
|
9
|
+
}, children: [label && ((0, jsx_runtime_1.jsx)(__1.FieldLabel, { error: error, asterisk: required, size: size, description: description, children: label })), (0, jsx_runtime_1.jsx)(__1.TextArea, { ref: inputRef, size: size, maxRows: maxRows, minRows: minRows, onHeightChange: onHeightChange, cacheMeasurements: cacheMeasurements, style: style })] }));
|
|
22
10
|
};
|
|
23
11
|
exports.default = TextAreaInput;
|