@semcore/bulk-textarea 1.1.0-prerelease.9 → 1.1.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +15 -3
  2. package/lib/cjs/BulkTextarea.js +9 -7
  3. package/lib/cjs/BulkTextarea.js.map +1 -1
  4. package/lib/cjs/BulkTextarea.types.js.map +1 -1
  5. package/lib/cjs/components/InputField/InputField.js +42 -28
  6. package/lib/cjs/components/InputField/InputField.js.map +1 -1
  7. package/lib/cjs/components/InputField/InputField.types.js.map +1 -1
  8. package/lib/cjs/components/InputField/inputField.shadow.css +1 -0
  9. package/lib/es6/BulkTextarea.js +9 -7
  10. package/lib/es6/BulkTextarea.js.map +1 -1
  11. package/lib/es6/BulkTextarea.types.js.map +1 -1
  12. package/lib/es6/components/InputField/InputField.js +42 -28
  13. package/lib/es6/components/InputField/InputField.js.map +1 -1
  14. package/lib/es6/components/InputField/InputField.types.js.map +1 -1
  15. package/lib/es6/components/InputField/inputField.shadow.css +1 -0
  16. package/lib/esm/BulkTextarea.mjs +212 -0
  17. package/lib/esm/components/ClearAll.mjs +16 -0
  18. package/lib/esm/components/Counter.mjs +18 -0
  19. package/lib/esm/components/ErrorsNavigation.mjs +43 -0
  20. package/lib/esm/components/InputField/InputField.mjs +625 -0
  21. package/lib/esm/index.mjs +4 -0
  22. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +33 -0
  23. package/lib/esm/translations/de.json.mjs +13 -0
  24. package/lib/esm/translations/en.json.mjs +13 -0
  25. package/lib/esm/translations/es.json.mjs +13 -0
  26. package/lib/esm/translations/fr.json.mjs +13 -0
  27. package/lib/esm/translations/it.json.mjs +13 -0
  28. package/lib/esm/translations/ja.json.mjs +13 -0
  29. package/lib/esm/translations/ko.json.mjs +13 -0
  30. package/lib/esm/translations/nl.json.mjs +13 -0
  31. package/lib/esm/translations/pl.json.mjs +13 -0
  32. package/lib/esm/translations/pt.json.mjs +13 -0
  33. package/lib/esm/translations/sv.json.mjs +13 -0
  34. package/lib/esm/translations/tr.json.mjs +13 -0
  35. package/lib/esm/translations/vi.json.mjs +13 -0
  36. package/lib/esm/translations/zh.json.mjs +13 -0
  37. package/lib/types/BulkTextarea.types.d.ts +1 -1
  38. package/lib/types/components/InputField/InputField.d.ts +1 -0
  39. package/lib/types/components/InputField/InputField.types.d.ts +4 -3
  40. package/package.json +16 -11
  41. package/vite.config.ts +25 -0
@@ -0,0 +1,625 @@
1
+ import ae from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import ne from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
3
+ import U from "@babel/runtime/helpers/esm/toConsumableArray";
4
+ import le from "@babel/runtime/helpers/esm/classCallCheck";
5
+ import oe from "@babel/runtime/helpers/esm/createClass";
6
+ import f from "@babel/runtime/helpers/esm/assertThisInitialized";
7
+ import se from "@babel/runtime/helpers/esm/inherits";
8
+ import de from "@babel/runtime/helpers/esm/createSuper";
9
+ import L from "@babel/runtime/helpers/esm/defineProperty";
10
+ import { sstyled as ve } from "@semcore/utils/lib/core/index";
11
+ import { sstyled as ue, assignProps as he, Component as ce } from "@semcore/core";
12
+ import R from "react";
13
+ import { Box as ge } from "@semcore/flex-box";
14
+ import N from "@semcore/tooltip";
15
+ import { extractAriaProps as $ } from "@semcore/utils/lib/ariaProps";
16
+ import pe from "@semcore/utils/lib/uniqueID";
17
+ import fe from "dompurify";
18
+ var me = (
19
+ /*__reshadow_css_start__*/
20
+ (ve.insert(
21
+ /*__inner_css_start__*/
22
+ '.___SInputField_11fze_gg_>div{box-sizing:content-box;outline:0;border-radius:var(--intergalactic-control-rounded, 6px);border-color:var(--intergalactic-border-primary, #c4c7cf);border-style:solid;border-width:1px;overflow:auto;position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);color:var(--intergalactic-text-primary, #191b23);word-wrap:break-word;word-break:break-word;font-family:inherit}.___SInputField_11fze_gg_>div:empty::before{content:"1. "attr(placeholder);color:var(--intergalactic-text-placeholder, #8a8e9b);position:absolute}.___SInputField_11fze_gg_>div:nth-child(even){color:red;counter-increment:row;margin-bottom:var(--intergalactic-spacing-1x, 4px);position:relative;word-break:break-all}.___SInputField_11fze_gg_>div:nth-child(even)::before{content:counter(row)".";display:inline-block;white-space:nowrap;text-align:right;color:var(--intergalactic-text-secondary, #6c6e79);margin-right:var(--intergalactic-spacing-1x, 4px)}.___SInputField_11fze_gg_>div>p{counter-increment:row;display:flex;margin:0 0 var(--intergalactic-spacing-1x, 4px)0;position:relative;word-break:break-all;white-space:pre-wrap;padding-right:20px}.___SInputField_11fze_gg_>div>p:last-of-type{margin-bottom:0}.___SInputField_11fze_gg_>div>p:not(:empty)::before{content:counter(row)".";display:inline-block;white-space:nowrap;text-align:right;color:var(--intergalactic-text-secondary, #6c6e79);margin-right:var(--intergalactic-spacing-1x, 4px)}.___SInputField_11fze_gg_>div>p[data-over-max-rows=true]{background-color:var(--intergalactic-bg-secondary-critical, #fff0f7)}.___SInputField_11fze_gg_>div:has(p:nth-child(n+10))>p:nth-child(-n+9)::before{padding-left:8px}.___SInputField_11fze_gg_>div:has(p:nth-child(n+100))>p:nth-child(-n+9)::before{padding-left:16px}.___SInputField_11fze_gg_>div:has(p:nth-child(n+100))>p:nth-child(n+10)::before{padding-left:8px}.___SInputField_11fze_gg_>div:has(p:nth-child(n+100))>p:nth-child(n+100)::before{padding-left:0}.___SInputField_11fze_gg_.__showErrors_11fze_gg_>div[aria-invalid]>p[aria-invalid]:after{content:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBmaWxsPSIjZDEwMDJmIj48cGF0aCBkPSJNNyA2aDJ2NEg3VjZabTIgN3YtMkg3djJoMloiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTYuMTUyIDEuMTcyYy43MTktMS41NjMgMi45NzctMS41NjMgMy42OTYgMGw2LjA0MyAxMy4xNDFjLjM2My43OTEtLjIyNSAxLjY4Ny0xLjEwOSAxLjY4N0gxLjIxOGMtLjg4NCAwLTEuNDcyLS44OTYtMS4xMDktMS42ODdMNi4xNTIgMS4xNzJabTcuMzc0IDEyLjgzN0w4IDEuOTkgMi40NzQgMTQuMDFoMTEuMDUyWiIvPjwvc3ZnPgo=\\ );position:absolute;right:0}.___SInputField_11fze_gg_._size_m_11fze_gg_>div{padding:var(--intergalactic-spacing-2x, 8px) var(--intergalactic-spacing-4x, 16px);font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);min-height:calc(var(--minRows_11fze)*20px);max-height:calc((var(--maxRows_11fze) - 1)*(20px + var(--intergalactic-spacing-1x, 4px)) + 18px)}.___SInputField_11fze_gg_._size_l_11fze_gg_>div:empty,.___SInputField_11fze_gg_._size_m_11fze_gg_>div:empty{padding-left:var(--intergalactic-spacing-8x, 32px)}.___SInputField_11fze_gg_._size_m_11fze_gg_>div:empty::before{left:var(--intergalactic-spacing-4x, 16px)}.___SInputField_11fze_gg_._size_l_11fze_gg_>div{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-4x, 16px);font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);min-height:calc(var(--minRows_11fze)*24px);max-height:calc((var(--maxRows_11fze) - 1)*(24px + var(--intergalactic-spacing-1x, 4px)) + 20px)}.___SInputField_11fze_gg_._size_l_11fze_gg_>div:empty::before{left:calc(var(--intergalactic-spacing-4x, 16px) - var(--intergalactic-spacing-05x, 2px))}.___SInputField_11fze_gg_._state_normal_11fze_gg_:not(.__disabled_11fze_gg_)>div:focus:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));border-color:var(--intergalactic-border-info-active, #006dca)}.___SInputField_11fze_gg_._state_valid_11fze_gg_>div{border-color:var(--intergalactic-border-success-active, #007c65)}.___SInputField_11fze_gg_._state_valid_11fze_gg_>div:focus{box-shadow:var(--intergalactic-keyboard-focus-valid, 0px 0px 0px 3px rgba(0, 159, 129, 0.5))}.___SInputField_11fze_gg_._state_invalid_11fze_gg_>div{border-color:var(--intergalactic-border-critical-active, #d1002f);background-image:var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, rgba(209, 0, 47, 1) 0, rgba(209, 0, 47, 1) 2px, transparent 0, transparent 50%));background-size:6px 6px;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-bottom-left-radius:var(--intergalactic-control-rounded, 6px);border-top-left-radius:var(--intergalactic-control-rounded, 6px);background-repeat:repeat-y}.___SInputField_11fze_gg_._state_invalid_11fze_gg_>div:focus{box-shadow:var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.5))}.___SInputField_11fze_gg_.__readonly_11fze_gg_>div{background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SInputField_11fze_gg_.__disabled_11fze_gg_>div{opacity:var(--intergalactic-disabled-opacity, 0.3)}',
23
+ "11fze_gg_"
24
+ ), {
25
+ __SInputField: "___SInputField_11fze_gg_",
26
+ _showErrors: "__showErrors_11fze_gg_",
27
+ _readonly: "__readonly_11fze_gg_",
28
+ _disabled: "__disabled_11fze_gg_",
29
+ _size_m: "_size_m_11fze_gg_",
30
+ "--minRows": "--minRows_11fze",
31
+ "--maxRows": "--maxRows_11fze",
32
+ _size_l: "_size_l_11fze_gg_",
33
+ _state_normal: "_state_normal_11fze_gg_",
34
+ _state_valid: "_state_valid_11fze_gg_",
35
+ _state_invalid: "_state_invalid_11fze_gg_"
36
+ })
37
+ ), G = /* @__PURE__ */ function(ee) {
38
+ se(O, ee);
39
+ var ie = de(O);
40
+ function O(o) {
41
+ var e;
42
+ return le(this, O), e = ie.call(this, o), L(f(e), "delimiter", `
43
+ `), L(f(e), "skipEmptyLines", !0), L(f(e), "emptyLineValue", ""), L(f(e), "spaceLineValue", " "), L(f(e), "containerRef", /* @__PURE__ */ R.createRef()), L(f(e), "textarea", void 0), L(f(e), "popper", null), L(f(e), "setPopperTrigger", null), L(f(e), "errorByInteraction", null), L(f(e), "changeTriggerTimeout", 0), L(f(e), "isScrolling", !1), L(f(e), "scrollingTimeout", 0), L(f(e), "toggleErrorsPopperTimeout", 0), L(f(e), "isFocusing", !1), L(f(e), "linesCountTimeout", 0), L(f(e), "state", {
44
+ visibleErrorPopper: !1,
45
+ keyboardLineIndex: -1,
46
+ mouseLineIndex: -1
47
+ }), e.handlePaste = e.handlePaste.bind(f(e)), e.handleChange = e.handleChange.bind(f(e)), e.handleFocus = e.handleFocus.bind(f(e)), e.handleBlur = e.handleBlur.bind(f(e)), e.handleKeyDown = e.handleKeyDown.bind(f(e)), e.handleMouseDown = e.handleMouseDown.bind(f(e)), e.handleMouseMove = e.handleMouseMove.bind(f(e)), e.handleMouseLeave = e.handleMouseLeave.bind(f(e)), e.handleScroll = e.handleScroll.bind(f(e)), e.handleSelectAll = e.handleSelectAll.bind(f(e)), e.textarea = e.createContentEditableElement(o), e;
48
+ }
49
+ return oe(O, [{
50
+ key: "uncontrolledProps",
51
+ value: function() {
52
+ return {
53
+ value: null,
54
+ linesCount: null,
55
+ errorIndex: null
56
+ };
57
+ }
58
+ }, {
59
+ key: "componentDidMount",
60
+ value: function() {
61
+ var e;
62
+ (e = this.containerRef.current) === null || e === void 0 || e.append(this.textarea), this.handleValueOutChange();
63
+ }
64
+ }, {
65
+ key: "componentDidUpdate",
66
+ value: function(e, i) {
67
+ var r = this, t = this.props, a = t.value, n = t.errors, l = t.errorIndex, d = t.showErrors, g = t.disabled, m = t.readonly, h = t.highlightErrorIndex, v = t.lineProcessing, s = t["aria-describedby"], I = s === void 0 ? "" : s;
68
+ e.value !== a && a !== this.getValues().join(this.delimiter) && this.handleValueOutChange(), (e.showErrors !== d || e.errors.length !== n.length) && (this.toggleAriaInvalid(d, n.length), d === !1 && this.textarea.setAttribute("aria-describedby", I)), e.errorIndex !== l && h && this.handleChangeErrorIndex(l), (e.disabled !== g || e.readonly !== m) && (this.isDisabled ? (this.textarea.setAttribute("contenteditable", "false"), this.removeEventListeners(this.textarea)) : (this.textarea.setAttribute("contenteditable", "true"), this.addEventListeners(this.textarea)), g ? this.textarea.setAttribute("tabindex", "-1") : this.textarea.setAttribute("tabindex", "0"));
69
+ var c = this.state.keyboardLineIndex;
70
+ if (i.keyboardLineIndex !== -1 && i.keyboardLineIndex !== c) {
71
+ if (v) {
72
+ var y, b = this.getValues(), E = v((y = b[i.keyboardLineIndex]) !== null && y !== void 0 ? y : "", b), x = document.createTextNode(E), k = this.textarea.childNodes.item(i.keyboardLineIndex);
73
+ k instanceof HTMLParagraphElement && (E === "" ? k.innerHTML = this.emptyLineValue : k.replaceChild(x, k.childNodes.item(0))), this.validateLine(k), setTimeout(function() {
74
+ var M = r.textarea.childNodes.item(c);
75
+ M && r.setErrorIndex(M);
76
+ }, 0);
77
+ }
78
+ d || this.recalculateErrors(), this.recalculateLinesCount(), this.asProps.onChangeLineIndex(c);
79
+ }
80
+ }
81
+ }, {
82
+ key: "componentWillUnmount",
83
+ value: function() {
84
+ this.removeEventListeners(this.textarea);
85
+ }
86
+ }, {
87
+ key: "isDisabled",
88
+ get: function() {
89
+ var e = this.asProps, i = e.disabled, r = e.readonly;
90
+ return !!(i || r);
91
+ }
92
+ }, {
93
+ key: "popperDescribedId",
94
+ get: function() {
95
+ var e = this.asProps.uid;
96
+ return "bulk-textarea-".concat(e, "-popper-describedby");
97
+ }
98
+ }, {
99
+ key: "errorMessage",
100
+ get: function() {
101
+ var e, i, r, t = this.asProps, a = t.errors, n = t.errorIndex, l = t.commonErrorMessage, d = t.prevError, g = this.state, m = g.mouseLineIndex, h = g.keyboardLineIndex, v = this.errorByInteraction === "keyboard" ? h : this.errorByInteraction === "mouse" ? m : -1, s = a[n];
102
+ v !== -1 && (s = a.find(function(y) {
103
+ return (y == null ? void 0 : y.lineIndex) === v;
104
+ }));
105
+ var I = a.length === 0 && !d ? null : (e = (i = s) === null || i === void 0 ? void 0 : i.errorMessage) !== null && e !== void 0 ? e : l === "" || a.length === 0 ? d == null ? void 0 : d.errorMessage : l, c = !((r = s) !== null && r !== void 0 && r.errorMessage) && (l === "" || a.length === 0 ? !(d != null && d.errorMessage) : !0);
106
+ return {
107
+ errorMessage: I,
108
+ isCommonError: c
109
+ };
110
+ }
111
+ }, {
112
+ key: "createContentEditableElement",
113
+ value: function(e) {
114
+ var i = document.createElement("div");
115
+ i.setAttribute("contentEditable", e.disabled || e.readonly ? "false" : "true"), i.setAttribute("role", "textbox"), i.setAttribute("classname", "editable"), e.id && i.setAttribute("id", e.id), e.placeholder && i.setAttribute("placeholder", e.placeholder);
116
+ var r = $(e), t = r.extractedAriaProps;
117
+ for (var a in t) {
118
+ var n = e[a];
119
+ n && i.setAttribute(a, n);
120
+ }
121
+ return e.disabled ? i.setAttribute("tabIndex", "-1") : i.setAttribute("tabIndex", "0"), !e.disabled && !e.readonly ? this.addEventListeners(i) : i.addEventListener("keydown", this.handleSelectAll.bind(this)), i;
122
+ }
123
+ }, {
124
+ key: "handleValueOutChange",
125
+ value: function() {
126
+ var e = this.props, i = e.value, r = e.onChangeLinesCount;
127
+ if (i === "")
128
+ this.textarea.textContent = "", r(0);
129
+ else {
130
+ var t, a = this.prepareNodesForPaste(i);
131
+ (t = this.textarea).replaceChildren.apply(t, U(a)), this.recalculateLinesCount(), this.recalculateErrors();
132
+ }
133
+ }
134
+ }, {
135
+ key: "handleScroll",
136
+ value: function() {
137
+ var e = this;
138
+ this.scrollingTimeout && clearTimeout(this.scrollingTimeout), this.isScrolling = !0, this.scrollingTimeout = window.setTimeout(function() {
139
+ e.isScrolling = !1;
140
+ }, 50);
141
+ }
142
+ }, {
143
+ key: "handleMouseDown",
144
+ value: function(e) {
145
+ this.errorByInteraction = "keyboard";
146
+ var i = e.target;
147
+ i instanceof HTMLElement && (this.toggleErrorsPopper("keyboardLineIndex", i), this.setErrorIndex(i));
148
+ }
149
+ }, {
150
+ key: "handleMouseMove",
151
+ value: function(e) {
152
+ this.errorByInteraction = "mouse";
153
+ var i = e.target;
154
+ i !== this.textarea && (this.isFocusing || i instanceof HTMLElement && i.getAttribute("aria-invalid") === "true" ? this.toggleErrorsPopper("mouseLineIndex", i) : this.setState({
155
+ visibleErrorPopper: !1
156
+ }));
157
+ }
158
+ }, {
159
+ key: "handleMouseLeave",
160
+ value: function(e) {
161
+ if (this.changeTriggerTimeout && clearTimeout(this.changeTriggerTimeout), this.isFocusing) {
162
+ this.errorByInteraction = "keyboard";
163
+ var i = this.getNodeFromSelection();
164
+ this.toggleErrorsPopper("keyboardLineIndex", i, 0), this.setState({
165
+ mouseLineIndex: -1
166
+ });
167
+ } else
168
+ this.setState({
169
+ visibleErrorPopper: !1
170
+ });
171
+ }
172
+ }, {
173
+ key: "handlePaste",
174
+ value: function(e) {
175
+ var i;
176
+ e.preventDefault();
177
+ var r = this.asProps.validateOn, t = (i = e.clipboardData) === null || i === void 0 ? void 0 : i.getData("text/plain"), a = t ? this.prepareNodesForPaste(t) : [], n = document.getSelection();
178
+ if (n != null && n.anchorNode && n !== null && n !== void 0 && n.focusNode) {
179
+ var l = n.anchorOffset, d = n.focusOffset, g = n.anchorNode.compareDocumentPosition(n.focusNode), m = this.getSelectionDirection(), h = m === "forward" ? n.anchorNode : n.focusNode, v = m === "forward" ? n.focusNode : n.anchorNode, s = m === "forward" ? l : d, I = m === "forward" ? d : l, c = h instanceof Text ? h.parentElement : h, y = v instanceof Text ? v.parentElement : v, b = null, E = null;
180
+ if (v === this.textarea) {
181
+ var x, k;
182
+ (x = this.textarea).replaceChildren.apply(x, U(a));
183
+ var M = a[a.length - 1];
184
+ b = M.childNodes.item(0), E = ((k = M.textContent) !== null && k !== void 0 ? k : "").length;
185
+ } else if (y instanceof HTMLParagraphElement && c instanceof HTMLParagraphElement) {
186
+ var z, A, P, C, w, F = (z = c == null || (A = c.textContent) === null || A === void 0 ? void 0 : A.substring(0, s)) !== null && z !== void 0 ? z : "", D = (P = y == null || (C = y.textContent) === null || C === void 0 ? void 0 : C.substring(I)) !== null && P !== void 0 ? P : "";
187
+ n.deleteFromDocument(), g !== 0 && this.textarea.removeChild(y);
188
+ var T = a.splice(0, 1)[0], u = a[a.length - 1];
189
+ if (c.textContent = (w = F + (T == null ? void 0 : T.textContent)) !== null && w !== void 0 ? w : "", c.after.apply(c, U(a)), u) {
190
+ var S, _;
191
+ u.textContent = ((S = u.textContent) !== null && S !== void 0 ? S : "") + D, b = u.childNodes.item(0), E = ((_ = u.textContent) !== null && _ !== void 0 ? _ : "").length, this.validateLine(u), this.setErrorIndex(u);
192
+ } else {
193
+ var p, H;
194
+ E = ((p = c.textContent) !== null && p !== void 0 ? p : "").length, c.textContent = ((H = c.textContent) !== null && H !== void 0 ? H : "") + D, b = c.childNodes.item(0), this.validateLine(c), this.setErrorIndex(c);
195
+ }
196
+ }
197
+ if (b instanceof Text) {
198
+ var B, K;
199
+ this.setSelection(b, (B = E) !== null && B !== void 0 ? B : 1, (K = E) !== null && K !== void 0 ? K : 1), this.toggleErrorsPopper("keyboardLineIndex", b.parentNode);
200
+ } else {
201
+ var V;
202
+ console.warn("incorrect child type", b, (V = b) === null || V === void 0 ? void 0 : V.parentNode);
203
+ }
204
+ }
205
+ this.recalculateLinesCount(), (r.includes("paste") || this.asProps.showErrors) && this.recalculateErrors();
206
+ }
207
+ }, {
208
+ key: "handleChange",
209
+ value: function(e) {
210
+ var i = e.target;
211
+ if (i instanceof HTMLDivElement && e instanceof InputEvent) {
212
+ var r, t = this.textarea.childNodes, a = t.item(0), n = t.item(1), l = document.getSelection();
213
+ if (a instanceof Text) {
214
+ var d, g = (d = a.textContent) !== null && d !== void 0 ? d : "", m = document.createElement("p"), h = document.createTextNode(g);
215
+ m.append(h), a.replaceWith(m), l == null || l.setPosition(m, g.length);
216
+ } else !a || a instanceof HTMLBRElement && t.length === 1 ? (this.textarea.textContent = "", this.setState({
217
+ keyboardLineIndex: 0
218
+ })) : a instanceof HTMLParagraphElement && !((r = a.textContent) !== null && r !== void 0 && r.trim()) && (t.length <= 1 || n instanceof HTMLBRElement) && (this.textarea.textContent = "", this.setState({
219
+ keyboardLineIndex: 0
220
+ }));
221
+ for (var v = 10, s = l == null ? void 0 : l.focusNode; ((I = s) === null || I === void 0 ? void 0 : I.parentNode) !== this.textarea && v > 0; ) {
222
+ var I, c;
223
+ s = (c = s) === null || c === void 0 ? void 0 : c.parentNode, v--;
224
+ }
225
+ if (s instanceof HTMLParagraphElement) {
226
+ var y, b, E = s.childNodes, x = (y = s.textContent) !== null && y !== void 0 ? y : "";
227
+ if (E.length > 1) {
228
+ var k, M = (k = E.item(0).textContent) === null || k === void 0 ? void 0 : k.length;
229
+ s.textContent = x, M && this.setSelection(s.childNodes.item(0), M, M);
230
+ }
231
+ if (x.length > 0) {
232
+ var z = x.at(0), A = x.at(x.length - 1);
233
+ if (z === this.getEmptyParagraph().textContent || A === this.getEmptyParagraph().textContent) {
234
+ var P = null;
235
+ z === this.getEmptyParagraph().textContent ? (s.textContent = x.substring(1), P = e.inputType === "deleteContentBackward" || e.inputType === "deleteContentForward" ? 0 : s.textContent.length) : A === this.getEmptyParagraph().textContent && (s.textContent = x.substring(0, x.length - 1), P = s.textContent.length), P && this.setSelection(s.childNodes.item(0), P, P);
236
+ }
237
+ } else E.length === 1 && E[0] instanceof HTMLBRElement && (s.innerHTML = this.emptyLineValue);
238
+ var C = this.asProps, w = C.errors, F = C.showErrors, D = this.validateLine(s);
239
+ this.recalculateErrors(), this.setErrorIndex(s), !D && F && this.toggleErrorsPopper("keyboardLineIndex", s, 0);
240
+ var T = !D || D && w.length === 1 && w[0].lineNode === s ? s : this.textarea;
241
+ if (F && ((b = this.popper) === null || b === void 0 ? void 0 : b.current.state.elements.reference) !== T)
242
+ if (this.shouldChangePopperTrigger(T)) {
243
+ var u;
244
+ (u = this.setPopperTrigger) === null || u === void 0 || u.call(this, T);
245
+ } else
246
+ this.setState({
247
+ visibleErrorPopper: !1
248
+ });
249
+ } else if (s === null) {
250
+ var S;
251
+ if ((S = this.setPopperTrigger) === null || S === void 0 || S.call(this, this.textarea), (l == null ? void 0 : l.focusNode) === this.textarea && this.textarea.childNodes.length > 1) {
252
+ var _ = l.focusOffset, p = this.textarea.childNodes.item(_ - 1), H = this.textarea.childNodes.item(_);
253
+ this.textarea.removeChild(H), p instanceof HTMLParagraphElement && (p.innerHTML = this.emptyLineValue), p && this.setSelection(p, 0, 0);
254
+ } else
255
+ this.setSelection(this.textarea, 0, 0);
256
+ }
257
+ this.recalculateLinesCount();
258
+ }
259
+ }
260
+ }, {
261
+ key: "handleFocus",
262
+ value: function(e) {
263
+ this.isFocusing = !0, this.errorByInteraction = "keyboard", this.asProps.showErrors ? this.toggleErrorsPopperByKeyboard(150) : this.toggleErrorsPopper("keyboardLineIndex", this.textarea);
264
+ }
265
+ }, {
266
+ key: "handleBlur",
267
+ value: function(e) {
268
+ var i = this;
269
+ this.isFocusing = !1, this.setState({
270
+ visibleErrorPopper: !1
271
+ });
272
+ var r = this.asProps, t = r.validateOn, a = r.onBlur;
273
+ t.includes("blur") && this.recalculateErrors(), a(this.getValues().join(this.delimiter), e), setTimeout(function() {
274
+ i.setState({
275
+ keyboardLineIndex: -1
276
+ });
277
+ }, 200);
278
+ }
279
+ }, {
280
+ key: "handleKeyDown",
281
+ value: function(e) {
282
+ var i = this;
283
+ this.errorByInteraction = "keyboard";
284
+ var r = this.asProps.linesDelimiters, t = this.getNodeFromSelection();
285
+ if (e.key === "Enter" || r != null && r.includes(e.key)) {
286
+ if (t === this.textarea && e.preventDefault(), t instanceof HTMLParagraphElement) {
287
+ var a, n = (a = t.textContent) === null || a === void 0 ? void 0 : a.trim();
288
+ if (!n)
289
+ e.preventDefault();
290
+ else {
291
+ var l, d, g, m;
292
+ e.preventDefault();
293
+ var h = document.getSelection(), v = (h == null ? void 0 : h.focusNode) instanceof Text ? h.focusNode : h == null || (l = h.focusNode) === null || l === void 0 ? void 0 : l.childNodes.item(0), s = h == null ? void 0 : h.focusOffset, I = "";
294
+ if (v instanceof Text && s !== void 0 && s !== ((d = v.textContent) === null || d === void 0 ? void 0 : d.length)) {
295
+ var c, y;
296
+ I = (c = (y = v.textContent) === null || y === void 0 ? void 0 : y.substring(s)) !== null && c !== void 0 ? c : this.emptyLineValue, v.textContent && (v.textContent = v.textContent.substring(0, s));
297
+ }
298
+ ((g = t.textContent) === null || g === void 0 ? void 0 : g.trim()) === "" && (t.innerHTML = this.emptyLineValue);
299
+ var b = document.createElement("p");
300
+ I ? b.textContent = I : b.innerHTML = this.emptyLineValue, t.after(b), this.setSelection(b, 0, 0), this.validateLine(t), this.validateLine(b), t.previousSibling && this.validateLine(t.previousSibling), this.setErrorIndex(b), ((m = b.textContent) === null || m === void 0 ? void 0 : m.trim()) !== "" && this.recalculateLinesCount(), setTimeout(function() {
301
+ i.recalculateErrors();
302
+ }, 0), this.toggleErrorsPopperByKeyboard(0);
303
+ }
304
+ }
305
+ } else if (e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "ArrowLeft" || e.key === "ArrowRight")
306
+ t instanceof HTMLParagraphElement && this.handleCursorMovement(t, e), this.toggleErrorsPopperByKeyboard(200);
307
+ else if (this.isDeleteKey(e) && t instanceof HTMLParagraphElement) {
308
+ var E;
309
+ if (((E = t.textContent) === null || E === void 0 ? void 0 : E.trim()) === "" && !this.isRangeSelection()) {
310
+ var x = t.previousSibling;
311
+ if (x instanceof HTMLParagraphElement) {
312
+ var k;
313
+ if (e.preventDefault(), this.textarea.removeChild(t), this.toggleErrorsPopperByKeyboard(0), ((k = x.textContent) === null || k === void 0 ? void 0 : k.trim()) === "" && x.previousSibling === null && this.textarea.childNodes.length === 1)
314
+ this.textarea.textContent = "", this.setSelection(this.textarea, 0, 0);
315
+ else if (x instanceof HTMLParagraphElement) {
316
+ var M, z, A = x.childNodes.item(0), P = (M = (z = A.textContent) === null || z === void 0 ? void 0 : z.length) !== null && M !== void 0 ? M : 0;
317
+ this.setSelection(A, P, P);
318
+ } else
319
+ console.warn("incorrect prevNode type", x);
320
+ setTimeout(function() {
321
+ i.recalculateErrors();
322
+ }, 0), this.toggleErrorsPopperByKeyboard(0);
323
+ }
324
+ } else if (this.isRangeSelection()) {
325
+ var C, w, F, D, T, u = document.getSelection(), S = this.getSelectionDirection(), _ = S === "backward" ? u == null ? void 0 : u.focusNode : u == null ? void 0 : u.anchorNode, p = S === "backward" ? u == null ? void 0 : u.anchorNode : u == null ? void 0 : u.focusNode, H = S === "backward" ? u == null ? void 0 : u.focusOffset : u == null ? void 0 : u.anchorOffset, B = S === "backward" ? u == null ? void 0 : u.anchorOffset : u == null ? void 0 : u.focusOffset;
326
+ if (_ === p && H === 0 && (p === t && B === 1 || B === ((C = t.textContent) === null || C === void 0 ? void 0 : C.length))) {
327
+ e.preventDefault();
328
+ var K = _ == null ? void 0 : _.parentElement, V = p == null ? void 0 : p.parentElement, W = this.textarea.childNodes;
329
+ K === W.item(0) && V === W.item(W.length - 1) ? (this.textarea.textContent = "", this.setSelection(this.textarea, 0, 0)) : (t.innerHTML = this.emptyLineValue, this.validateLine(t)), this.setErrorIndex(t), this.recalculateLinesCount(), setTimeout(function() {
330
+ i.recalculateErrors();
331
+ }, 0), this.toggleErrorsPopperByKeyboard(0);
332
+ } else if (p !== _ && p instanceof Text && _ instanceof Text && (p == null ? void 0 : p.textContent) === (p == null || (w = p.parentNode) === null || w === void 0 ? void 0 : w.textContent) && (_ == null ? void 0 : _.textContent) === (_ == null || (F = _.parentNode) === null || F === void 0 ? void 0 : F.textContent) && H === 0 && B === (p == null || (D = p.parentNode) === null || D === void 0 || (T = D.textContent) === null || T === void 0 ? void 0 : T.length)) {
333
+ e.preventDefault();
334
+ var te = Array.from(this.textarea.children), X = _.parentElement, j = p.parentElement, Y = this.textarea.childNodes;
335
+ if (X === Y.item(0) && j === Y.item(Y.length - 1))
336
+ this.textarea.textContent = "", this.setSelection(this.textarea, 0, 0);
337
+ else {
338
+ var Q = !1, Z = ne(te), q;
339
+ try {
340
+ for (Z.s(); !(q = Z.n()).done; ) {
341
+ var J = q.value;
342
+ if (J === X || Q)
343
+ if (Q = !0, J === j) {
344
+ j.innerHTML = this.emptyLineValue, this.setSelection(j, 0, 0);
345
+ break;
346
+ } else
347
+ this.textarea.removeChild(J);
348
+ }
349
+ } catch (re) {
350
+ Z.e(re);
351
+ } finally {
352
+ Z.f();
353
+ }
354
+ this.validateLine(t);
355
+ }
356
+ this.setErrorIndex(t), this.recalculateLinesCount(), setTimeout(function() {
357
+ i.recalculateErrors();
358
+ }, 0), this.toggleErrorsPopperByKeyboard(0);
359
+ }
360
+ }
361
+ } else e.key === "z" && (e.ctrlKey || e.metaKey) && e.preventDefault();
362
+ }
363
+ }, {
364
+ key: "render",
365
+ value: function() {
366
+ var e = this.asProps, i, r, t = this, a = ge, n = this.asProps, l = n.styles, d = n.showErrors, g = this.state.visibleErrorPopper, m = this.errorMessage, h = m.errorMessage, v = m.isCommonError, s = d && g && !!h && !this.isDisabled, I = $(this.asProps), c = I.__excludeProps;
367
+ return i = ue(l), /* @__PURE__ */ R.createElement(R.Fragment, null, /* @__PURE__ */ R.createElement(N, i.cn("Tooltip", {
368
+ interaction: "none",
369
+ placement: v ? "right-start" : "right",
370
+ visible: s,
371
+ theme: "warning",
372
+ offset: v ? void 0 : [0, 26],
373
+ preventOverflow: {
374
+ boundary: (r = this.containerRef.current) !== null && r !== void 0 ? r : void 0,
375
+ tether: !1
376
+ }
377
+ }), function(y) {
378
+ var b = y.popper, E = y.setTrigger;
379
+ return t.popper || (t.setPopperTrigger = E, t.popper = b), /* @__PURE__ */ R.createElement(N.Popper, {
380
+ id: t.popperDescribedId
381
+ }, h);
382
+ }), /* @__PURE__ */ R.createElement(a, i.cn("SInputField", ae({}, he({
383
+ ref: this.containerRef,
384
+ __excludeProps: ["onBlur", "value"].concat(U(c))
385
+ }, e)))));
386
+ }
387
+ }, {
388
+ key: "prepareNodesForPaste",
389
+ value: function(e) {
390
+ var i, r, t, a = this, n = [], l = this.asProps.pasteProps, d = (i = l == null ? void 0 : l.lineProcessing) !== null && i !== void 0 ? i : function(h) {
391
+ var v = h.trim();
392
+ return v === "" ? h : v;
393
+ }, g = (r = l == null ? void 0 : l.skipEmptyLines) !== null && r !== void 0 ? r : this.skipEmptyLines, m = (t = l == null ? void 0 : l.delimiter) !== null && t !== void 0 ? t : this.delimiter;
394
+ return e.split(m).forEach(function(h) {
395
+ var v = d(h);
396
+ if (v === "" && g === !1 || v !== "") {
397
+ var s = document.createElement("p");
398
+ if (v === "")
399
+ s.innerHTML = a.emptyLineValue;
400
+ else if (v.trim() === "") {
401
+ var I = new RegExp("\\s", "g");
402
+ s.innerHTML = fe.sanitize(v.replace(I, a.spaceLineValue));
403
+ } else
404
+ s.append(document.createTextNode(v));
405
+ n.push(s), a.validateLine(s);
406
+ }
407
+ }), n;
408
+ }
409
+ }, {
410
+ key: "recalculateErrors",
411
+ value: function() {
412
+ var e = [];
413
+ this.textarea.childNodes.forEach(function(i, r) {
414
+ if (i instanceof HTMLParagraphElement && i.getAttribute("aria-invalid") === "true") {
415
+ var t, a = {
416
+ errorMessage: (t = i.dataset.errormessage) !== null && t !== void 0 ? t : "",
417
+ lineNode: i,
418
+ lineIndex: r
419
+ };
420
+ e.push(a);
421
+ }
422
+ }), this.asProps.onErrorsChange(e);
423
+ }
424
+ }, {
425
+ key: "recalculateLinesCount",
426
+ value: function() {
427
+ var e = this;
428
+ this.linesCountTimeout && clearTimeout(this.linesCountTimeout), this.linesCountTimeout = window.setTimeout(function() {
429
+ var i = 0, r = e.asProps, t = r.maxLines, a = r.linesCount;
430
+ e.textarea.childNodes.forEach(function(n, l) {
431
+ n instanceof HTMLParagraphElement && (n.dataset.overMaxRows = "false", n.textContent !== e.getEmptyParagraph().textContent && n.textContent !== "" && (i++, i > t && (n.dataset.overMaxRows = "true")));
432
+ }), a !== i && e.asProps.onChangeLinesCount(i);
433
+ }, 100);
434
+ }
435
+ }, {
436
+ key: "getValues",
437
+ value: function() {
438
+ var e = [];
439
+ return this.textarea.childNodes.forEach(function(i) {
440
+ var r;
441
+ e.push((r = i.textContent) !== null && r !== void 0 ? r : "");
442
+ }), e;
443
+ }
444
+ }, {
445
+ key: "shouldChangePopperTrigger",
446
+ value: function(e) {
447
+ return this.textarea !== e || this.textarea === e && !!this.asProps.commonErrorMessage;
448
+ }
449
+ }, {
450
+ key: "toggleErrorsPopperByKeyboard",
451
+ value: function(e) {
452
+ var i = this;
453
+ this.toggleErrorsPopperTimeout && clearTimeout(this.toggleErrorsPopperTimeout), this.isScrolling ? this.toggleErrorsPopperTimeout = window.setTimeout(function() {
454
+ i.toggleErrorsPopperByKeyboard(e);
455
+ }, 50) : setTimeout(function() {
456
+ var r = i.getNodeFromSelection();
457
+ i.toggleErrorsPopper("keyboardLineIndex", r, e);
458
+ }, 0);
459
+ }
460
+ }, {
461
+ key: "toggleErrorsPopper",
462
+ value: function(e, i, r) {
463
+ var t = this;
464
+ i instanceof HTMLDivElement || i instanceof HTMLParagraphElement ? (this.changeTriggerTimeout && clearTimeout(this.changeTriggerTimeout), this.changeTriggerTimeout = window.setTimeout(function() {
465
+ var a = i === t.textarea ? t.getNodeFromSelection() : i, n = -1, l = !1;
466
+ a instanceof HTMLParagraphElement ? (l = a.getAttribute("aria-invalid") === "true", n = Array.from(t.textarea.childNodes).indexOf(a)) : a === t.textarea && (n = 0), a instanceof HTMLElement && t.setState(function(d) {
467
+ var g = {
468
+ visibleErrorPopper: t.isFocusing && t.asProps.commonErrorMessage ? !0 : l,
469
+ mouseLineIndex: d.mouseLineIndex,
470
+ keyboardLineIndex: d.keyboardLineIndex
471
+ };
472
+ return (t.isFocusing || e === "mouseLineIndex" && l) && (g[e] = n), g;
473
+ }, function() {
474
+ var d = l ? a : t.textarea;
475
+ if (t.shouldChangePopperTrigger(d)) {
476
+ var g;
477
+ (g = t.setPopperTrigger) === null || g === void 0 || g.call(t, d), t.forceUpdate();
478
+ }
479
+ });
480
+ }, r ?? 50)) : this.setState({
481
+ visibleErrorPopper: !1
482
+ });
483
+ }
484
+ }, {
485
+ key: "toggleAriaInvalid",
486
+ value: function(e, i) {
487
+ e && i > 0 ? (this.textarea.setAttribute("aria-describedby", this.popperDescribedId), this.textarea.setAttribute("aria-invalid", "true")) : (this.textarea.removeAttribute("aria-invalid"), this.textarea.removeAttribute("aria-describedby"));
488
+ }
489
+ }, {
490
+ key: "handleChangeErrorIndex",
491
+ value: function(e) {
492
+ var i, r = this, t = this.asProps.errors[e], a = this.textarea.childNodes, n = t ? (i = t.lineNode) !== null && i !== void 0 ? i : a.item(t.lineIndex) : null, l = document.getSelection();
493
+ l && n instanceof HTMLParagraphElement && (this.setState({
494
+ visibleErrorPopper: !1
495
+ }), setTimeout(function() {
496
+ var d = n.childNodes.item(0);
497
+ d instanceof Text ? r.setSelection(d, 0, d.length) : r.setSelection(n, 0, 1);
498
+ }, 150));
499
+ }
500
+ }, {
501
+ key: "validateLine",
502
+ value: function(e) {
503
+ var i = this.asProps.lineValidation;
504
+ if (i && e instanceof HTMLElement) {
505
+ var r, t = i((r = e.textContent) !== null && r !== void 0 ? r : "", this.getValues()), a = t.isValid, n = t.errorMessage;
506
+ return a ? (e.removeAttribute("aria-invalid"), e.dataset.errormessage = void 0) : (e.setAttribute("aria-invalid", "true"), e.dataset.errormessage = n), a;
507
+ }
508
+ return !0;
509
+ }
510
+ }, {
511
+ key: "setSelection",
512
+ value: function(e, i, r) {
513
+ var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "center", a = document.getSelection(), n = document.createRange();
514
+ n.setStart(e, i), n.setEnd(e, r), a == null || a.removeAllRanges(), a == null || a.addRange(n);
515
+ var l = e instanceof Text ? e.parentNode : e;
516
+ l instanceof HTMLElement && l.scrollIntoView({
517
+ block: t,
518
+ inline: t,
519
+ behavior: "smooth"
520
+ });
521
+ }
522
+ }, {
523
+ key: "getNodeFromSelection",
524
+ value: function() {
525
+ var e = document.getSelection(), i = (e == null ? void 0 : e.focusNode) instanceof Text ? e.focusNode.parentNode : e == null ? void 0 : e.focusNode;
526
+ return i ?? null;
527
+ }
528
+ }, {
529
+ key: "handleCursorMovement",
530
+ value: function(e, i) {
531
+ var r = null;
532
+ switch (i.key) {
533
+ case "ArrowUp":
534
+ i.preventDefault(), r = e.previousSibling;
535
+ break;
536
+ case "ArrowDown":
537
+ i.preventDefault(), r = e.nextSibling;
538
+ break;
539
+ case "ArrowLeft": {
540
+ e.textContent === this.getEmptyParagraph().textContent && (i.preventDefault(), r = e.previousSibling);
541
+ break;
542
+ }
543
+ case "ArrowRight":
544
+ e.textContent === this.getEmptyParagraph().textContent && (i.preventDefault(), r = e.nextSibling);
545
+ }
546
+ if (r instanceof HTMLParagraphElement) {
547
+ var t, a, n, l = document.getSelection(), d = r.childNodes.item(0), g = d instanceof Text ? d : r, m = (t = (a = r.textContent) === null || a === void 0 ? void 0 : a.trim()) !== null && t !== void 0 ? t : "", h = (n = l == null ? void 0 : l.focusOffset) !== null && n !== void 0 ? n : 0, v = h <= m.length ? h : m.length;
548
+ i.key === "ArrowLeft" ? v = m.length : i.key === "ArrowRight" && (v = 0), this.setSelection(g, v, v, "nearest");
549
+ }
550
+ }
551
+ }, {
552
+ key: "setErrorIndex",
553
+ value: function(e) {
554
+ var i = Array.from(this.textarea.childNodes).filter(function(r) {
555
+ return r instanceof Element && r.getAttribute("aria-invalid") === "true";
556
+ }).findIndex(function(r) {
557
+ return r === e;
558
+ });
559
+ this.handlers.errorIndex(i);
560
+ }
561
+ }, {
562
+ key: "isDeleteKey",
563
+ value: function(e) {
564
+ return e.key === "Backspace" || e.key === "x" && (e.ctrlKey || e.metaKey);
565
+ }
566
+ }, {
567
+ key: "getEmptyParagraph",
568
+ value: function() {
569
+ var e = document.createElement("p");
570
+ return e.innerHTML = this.emptyLineValue, e;
571
+ }
572
+ }, {
573
+ key: "addEventListeners",
574
+ value: function(e) {
575
+ e.addEventListener("paste", this.handlePaste), e.addEventListener("input", this.handleChange), e.addEventListener("focus", this.handleFocus), e.addEventListener("blur", this.handleBlur), e.addEventListener("keydown", this.handleKeyDown), e.addEventListener("mousedown", this.handleMouseDown), e.addEventListener("mousemove", this.handleMouseMove), e.addEventListener("mouseleave", this.handleMouseLeave), e.addEventListener("scroll", this.handleScroll), e.removeEventListener("keydown", this.handleSelectAll);
576
+ }
577
+ }, {
578
+ key: "removeEventListeners",
579
+ value: function(e) {
580
+ e.removeEventListener("paste", this.handlePaste), e.removeEventListener("input", this.handleChange), e.removeEventListener("focus", this.handleFocus), e.removeEventListener("blur", this.handleBlur), e.removeEventListener("keydown", this.handleKeyDown), e.removeEventListener("mousedown", this.handleMouseDown), e.removeEventListener("mousemove", this.handleMouseMove), e.removeEventListener("mouseleave", this.handleMouseLeave), e.removeEventListener("scroll", this.handleScroll), e.addEventListener("keydown", this.handleSelectAll);
581
+ }
582
+ }, {
583
+ key: "handleSelectAll",
584
+ value: function(e) {
585
+ if (e.key === "a" && (e.metaKey || e.ctrlKey)) {
586
+ e.preventDefault();
587
+ var i = e.target;
588
+ i instanceof HTMLElement && i === this.textarea && this.setSelection(i, 0, i.childNodes.length);
589
+ }
590
+ }
591
+ }, {
592
+ key: "isRangeSelection",
593
+ value: function() {
594
+ var e = document.getSelection();
595
+ return (e == null ? void 0 : e.focusNode) !== (e == null ? void 0 : e.anchorNode) || (e == null ? void 0 : e.focusOffset) !== (e == null ? void 0 : e.anchorOffset);
596
+ }
597
+ }, {
598
+ key: "getSelectionDirection",
599
+ value: function() {
600
+ var e = document.getSelection();
601
+ if (e != null && e.anchorNode && e !== null && e !== void 0 && e.focusNode) {
602
+ var i = e.anchorNode.compareDocumentPosition(e.focusNode);
603
+ return i === 0 && e.anchorOffset > e.focusOffset || // if nodes are the same
604
+ i === Node.DOCUMENT_POSITION_PRECEDING ? "backward" : "forward";
605
+ }
606
+ return null;
607
+ }
608
+ }]), O;
609
+ }(ce);
610
+ L(G, "displayName", "Textarea");
611
+ L(G, "style", me);
612
+ L(G, "enhance", [pe()]);
613
+ L(G, "defaultProps", {
614
+ defaultValue: "",
615
+ size: "m",
616
+ state: "normal",
617
+ minRows: 2,
618
+ maxRows: 10,
619
+ defaultShowErrors: !1,
620
+ defaultErrorIndex: -1,
621
+ defaultLinesCount: 0
622
+ });
623
+ export {
624
+ G as InputField
625
+ };
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./BulkTextarea.mjs";
2
+ export {
3
+ o as default
4
+ };