@7shifts/sous-chef 3.17.0 → 3.18.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.
|
@@ -21,6 +21,7 @@ declare type Props = {
|
|
|
21
21
|
/** A JSX containing the toolbar elements. You can use `Inline` to place the buttons properly on the toolbar space. */
|
|
22
22
|
toolbar?: React.ReactNode;
|
|
23
23
|
testId?: string;
|
|
24
|
+
maxLength?: number;
|
|
24
25
|
};
|
|
25
26
|
declare const TextAreaField: React.FC<Props>;
|
|
26
27
|
export default TextAreaField;
|
package/dist/index.js
CHANGED
|
@@ -7832,7 +7832,8 @@ var TextAreaField = function TextAreaField(_ref) {
|
|
|
7832
7832
|
_ref$maxHeight = _ref.maxHeight,
|
|
7833
7833
|
maxHeight = _ref$maxHeight === void 0 ? 320 : _ref$maxHeight,
|
|
7834
7834
|
toolbar = _ref.toolbar,
|
|
7835
|
-
testId = _ref.testId
|
|
7835
|
+
testId = _ref.testId,
|
|
7836
|
+
maxLength = _ref.maxLength;
|
|
7836
7837
|
var containerRef = React.useRef(null);
|
|
7837
7838
|
var toolbarRef = React.useRef(null);
|
|
7838
7839
|
|
|
@@ -7892,7 +7893,8 @@ var TextAreaField = function TextAreaField(_ref) {
|
|
|
7892
7893
|
onFocus: function onFocus() {
|
|
7893
7894
|
return setHasFocus(true);
|
|
7894
7895
|
},
|
|
7895
|
-
ref: textAreaRef
|
|
7896
|
+
ref: textAreaRef,
|
|
7897
|
+
maxLength: maxLength
|
|
7896
7898
|
}), toolbar && React__default.createElement("div", {
|
|
7897
7899
|
className: styles$M['text-field__toolbar'],
|
|
7898
7900
|
id: controllers.id + "-toolbar",
|