gasp-components 1.0.2 → 1.0.5
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/{CheckCircleFilled-0BksJw0a.js → CheckCircleFilled-xt-0R96Z.js} +2 -2
- package/dist/{CheckOutlined-uqw1dAco.js → CheckOutlined-EgxCAgj_.js} +2 -2
- package/dist/{CloseCircleFilled-8_PrYv1M.js → CloseCircleFilled-bIgIULWb.js} +2 -2
- package/dist/{CloseOutlined--jpI9Qw3.js → CloseOutlined-Q3kC3EZS.js} +2 -2
- package/dist/{Compact-TeM9cQzE.js → Compact-fdEKV_mF.js} +8 -8
- package/dist/{ExclamationCircleFilled-oQquZDmr.js → ExclamationCircleFilled-XzDBEGmA.js} +2 -2
- package/dist/{LoadingOutlined-UnQfEWdX.js → LoadingOutlined-6Ipqn0og.js} +2 -2
- package/dist/{Overflow-iob2b5Wo.js → Overflow-JFdXKgCr.js} +29 -29
- package/dist/{PurePanel-v_Df1Vfh.js → PurePanel-hLGnXbul.js} +2 -2
- package/dist/{SearchOutlined-q1KYFUUD.js → SearchOutlined-rJTFGXUi.js} +2 -2
- package/dist/{TextArea-wGjKg4dQ.js → TextArea-n3dknzTq.js} +127 -127
- package/dist/{UploadOutlined-mJrPhk1_.js → UploadOutlined-D8jfLEgv.js} +2 -2
- package/dist/{asyncToGenerator-IDY-s0XG.js → asyncToGenerator-t4sKr8R4.js} +1 -1
- package/dist/{button-HD_w_Dw4.js → button-LN5ZDad8.js} +5 -5
- package/dist/{colors-AE8T-s8Y.js → colors-opGg9oSz.js} +4 -4
- package/dist/components/button/index.js +17 -17
- package/dist/components/checklist/checklist-item.js +3 -3
- package/dist/components/checklist/index.js +3 -3
- package/dist/components/date-picker/index.js +22 -22
- package/dist/components/dragger/index.js +24 -24
- package/dist/components/dropdown/index.js +26 -26
- package/dist/components/form/index.js +28 -28
- package/dist/components/form-item/index.js +27 -27
- package/dist/components/input/index.js +20 -20
- package/dist/components/modal/index.js +33 -33
- package/dist/components/password-input/index.js +18 -18
- package/dist/components/progress/index.js +32 -32
- package/dist/components/progress-circle/index.js +17 -17
- package/dist/components/radio-button/index.js +26 -26
- package/dist/components/radio-button-group/index.js +23 -23
- package/dist/components/result-popup/index.js +33 -33
- package/dist/components/select/index.js +23 -23
- package/dist/components/side-menu/index.js +26 -26
- package/dist/components/side-menu/menu-item.js +26 -26
- package/dist/components/steps/index.js +11 -11
- package/dist/components/table/index.js +36 -36
- package/dist/components/tabs/index.js +28 -28
- package/dist/components/tabs/tab.js +29 -29
- package/dist/components/tag/index.js +7 -7
- package/dist/components/timeline-horizontal/index.js +23 -23
- package/dist/components/upload/index.js +45 -45
- package/dist/{context-bcpLewuE.js → context-h3WSVDPz.js} +4 -4
- package/dist/{index-rkVmCQAx.js → index--6VfGMUo.js} +2 -2
- package/dist/{index-jLgkaVBu.js → index-0mpuHoS5.js} +11 -11
- package/dist/{index-s55NV9P0.js → index-1KQbTQJ2.js} +8 -8
- package/dist/{index-l6CkDOfg.js → index-5Uo03BMk.js} +8 -8
- package/dist/{index-GRzi0tN8.js → index-BFgxz47K.js} +20 -20
- package/dist/{index-s920fd6h.js → index-D3LMPWyJ.js} +93 -93
- package/dist/{index-zaNVwFVE.js → index-DVS_nWxv.js} +16 -16
- package/dist/{index-4vkKu-tY.js → index-ELHBhuK9.js} +18 -18
- package/dist/{index-fkwpjTCF.js → index-Fn8q8B3V.js} +1 -1
- package/dist/{index-iLZIQa0S.js → index-GgkQrebz.js} +1 -1
- package/dist/{index-gSJyqTth.js → index-L-MzVDcK.js} +82 -82
- package/dist/{index-OcSg2uhO.js → index-M3WnMjiA.js} +32 -32
- package/dist/{index-1dpL-ID6.js → index-ZT64Ec6u.js} +19 -19
- package/dist/{index-G4mS9Q1k.js → index-aawDqn9q.js} +21 -21
- package/dist/{index-08tmSZyi.js → index-k04G4nlS.js} +58 -58
- package/dist/{isVisible-dMm2KpVt.js → isVisible-Qi9l15Ty.js} +5 -5
- package/dist/main.d.ts +11 -2
- package/dist/main.js +321 -238
- package/dist/{motion-HJgOMAD9.js → motion-0ToOu81j.js} +12 -12
- package/dist/{omit-iDLobDmh.js → omit-ylWA0ZLZ.js} +1 -1
- package/dist/{pickAttrs-8tivSTLL.js → pickAttrs-zaQzRTqh.js} +1 -1
- package/dist/{progress-KLD42eXS.js → progress-a1_pwKVT.js} +23 -23
- package/dist/{responsiveObserver-HzrC-TmX.js → responsiveObserver-V1_1G14X.js} +3 -3
- package/dist/{roundedArrow-K_0MXOnG.js → roundedArrow-p1Pmd9av.js} +1 -1
- package/dist/{row-fxwx4hxc.js → row-sPFiFm0C.js} +25 -25
- package/dist/{slide-zQQNR_XQ.js → slide-mFXPRHku.js} +2 -2
- package/dist/{styleChecker-CIyuwreK.js → styleChecker-pZ3k2IiY.js} +1 -1
- package/dist/{useCSSVarCls-dgS8HrGW.js → useCSSVarCls-GwZT_WiF.js} +3 -3
- package/dist/{useClosable-UlLHff74.js → useClosable-4G12n4Bp.js} +1 -1
- package/dist/{useLocale-fOtLWNp9.js → useLocale-eThlLZJw.js} +1 -1
- package/dist/{useMergedState-L_aEbDOR.js → useMergedState-qUafLuUa.js} +7 -7
- package/dist/{useVariants-uVtKaOT2.js → useVariants-s0IcneBD.js} +5 -5
- package/dist/{zoom-AOeYf6vQ.js → zoom-Ps8y0jNW.js} +2 -2
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as V from "react";
|
|
2
|
-
import d, { useRef as pe, cloneElement as Je, forwardRef as
|
|
3
|
-
import { C as Be } from "./CloseCircleFilled-
|
|
2
|
+
import d, { useRef as pe, cloneElement as Je, forwardRef as $e, useState as _e, useImperativeHandle as De, useEffect as xe, useContext as et } from "react";
|
|
3
|
+
import { C as Be } from "./CloseCircleFilled-bIgIULWb.js";
|
|
4
4
|
import { c as C } from "./index-NQd_zMf0.js";
|
|
5
|
-
import { g as
|
|
6
|
-
import { u as Oe } from "./useMergedState-
|
|
7
|
-
import { R as at } from "./index
|
|
8
|
-
import { u as We, g as Ie, a as He } from "./useVariants-
|
|
9
|
-
import { a as nt, b as Ke, N as Te } from "./Compact-
|
|
10
|
-
import { F as Ge, N as je } from "./context-
|
|
11
|
-
import { o as ot } from "./omit-
|
|
12
|
-
import { u as Ye } from "./index-
|
|
13
|
-
import { u as Ze } from "./useCSSVarCls-
|
|
5
|
+
import { g as Fe, N as J, e as he, _ as X, x as Ce, b as le, i as Me, D as Ae, C as ke, a1 as Le, G as tt, z as Pe, y as Ve } from "./index-1KQbTQJ2.js";
|
|
6
|
+
import { u as Oe } from "./useMergedState-qUafLuUa.js";
|
|
7
|
+
import { R as at } from "./index--6VfGMUo.js";
|
|
8
|
+
import { u as We, g as Ie, a as He } from "./useVariants-s0IcneBD.js";
|
|
9
|
+
import { a as nt, b as Ke, N as Te } from "./Compact-fdEKV_mF.js";
|
|
10
|
+
import { F as Ge, N as je } from "./context-h3WSVDPz.js";
|
|
11
|
+
import { o as ot } from "./omit-ylWA0ZLZ.js";
|
|
12
|
+
import { u as Ye } from "./index-GgkQrebz.js";
|
|
13
|
+
import { u as Ze } from "./useCSSVarCls-GwZT_WiF.js";
|
|
14
14
|
function rt(e) {
|
|
15
15
|
return !!(e.addonBefore || e.addonAfter);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function st(e) {
|
|
18
18
|
return !!(e.prefix || e.suffix || e.allowClear);
|
|
19
19
|
}
|
|
20
20
|
function Se(e, t, n, a) {
|
|
@@ -33,21 +33,21 @@ function Se(e, t, n, a) {
|
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
if (e.type !== "file" && a !== void 0) {
|
|
36
|
-
var
|
|
36
|
+
var s = e.cloneNode(!0);
|
|
37
37
|
o = Object.create(t, {
|
|
38
38
|
target: {
|
|
39
|
-
value:
|
|
39
|
+
value: s
|
|
40
40
|
},
|
|
41
41
|
currentTarget: {
|
|
42
|
-
value:
|
|
42
|
+
value: s
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), s.value = a, n(o);
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
n(o);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function lt(e, t) {
|
|
51
51
|
if (e) {
|
|
52
52
|
e.focus(t);
|
|
53
53
|
var n = t || {}, a = n.cursor;
|
|
@@ -67,17 +67,17 @@ function st(e, t) {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
var Ue = function(t) {
|
|
70
|
-
var n, a, o = t.inputElement, f = t.children,
|
|
70
|
+
var n, a, o = t.inputElement, f = t.children, s = t.prefixCls, m = t.prefix, g = t.suffix, v = t.addonBefore, b = t.addonAfter, T = t.className, y = t.style, j = t.disabled, O = t.readOnly, B = t.focused, D = t.triggerFocus, _ = t.allowClear, Y = t.value, E = t.handleReset, $ = t.hidden, S = t.classes, i = t.classNames, p = t.dataAttrs, r = t.styles, l = t.components, k = f ?? o, Q = (l == null ? void 0 : l.affixWrapper) || "span", A = (l == null ? void 0 : l.groupWrapper) || "span", P = (l == null ? void 0 : l.wrapper) || "span", x = (l == null ? void 0 : l.groupAddon) || "span", Z = pe(null), L = function(I) {
|
|
71
71
|
var U;
|
|
72
72
|
(U = Z.current) !== null && U !== void 0 && U.contains(I.target) && (D == null || D());
|
|
73
|
-
},
|
|
73
|
+
}, N = st(t), w = /* @__PURE__ */ Je(k, {
|
|
74
74
|
value: Y,
|
|
75
|
-
className: C(k.props.className, !
|
|
75
|
+
className: C(k.props.className, !N && (i == null ? void 0 : i.variant)) || null
|
|
76
76
|
});
|
|
77
|
-
if (
|
|
77
|
+
if (N) {
|
|
78
78
|
var R, q = null;
|
|
79
79
|
if (_) {
|
|
80
|
-
var W, ie = !j && !O && Y, H = "".concat(
|
|
80
|
+
var W, ie = !j && !O && Y, H = "".concat(s, "-clear-icon"), F = Fe(_) === "object" && _ !== null && _ !== void 0 && _.clearIcon ? _.clearIcon : "✖";
|
|
81
81
|
q = /* @__PURE__ */ d.createElement("span", {
|
|
82
82
|
onClick: E,
|
|
83
83
|
onMouseDown: function(I) {
|
|
@@ -86,10 +86,10 @@ var Ue = function(t) {
|
|
|
86
86
|
className: C(H, (W = {}, J(W, "".concat(H, "-hidden"), !ie), J(W, "".concat(H, "-has-suffix"), !!g), W)),
|
|
87
87
|
role: "button",
|
|
88
88
|
tabIndex: -1
|
|
89
|
-
},
|
|
89
|
+
}, F);
|
|
90
90
|
}
|
|
91
|
-
var u = "".concat(
|
|
92
|
-
className: C("".concat(
|
|
91
|
+
var u = "".concat(s, "-affix-wrapper"), K = C(u, (R = {}, J(R, "".concat(s, "-disabled"), j), J(R, "".concat(u, "-disabled"), j), J(R, "".concat(u, "-focused"), B), J(R, "".concat(u, "-readonly"), O), J(R, "".concat(u, "-input-with-clear-btn"), g && _ && Y), R), S == null ? void 0 : S.affixWrapper, i == null ? void 0 : i.affixWrapper, i == null ? void 0 : i.variant), oe = (g || _) && /* @__PURE__ */ d.createElement("span", {
|
|
92
|
+
className: C("".concat(s, "-suffix"), i == null ? void 0 : i.suffix),
|
|
93
93
|
style: r == null ? void 0 : r.suffix
|
|
94
94
|
}, q, g);
|
|
95
95
|
w = /* @__PURE__ */ d.createElement(Q, he({
|
|
@@ -99,12 +99,12 @@ var Ue = function(t) {
|
|
|
99
99
|
}, p == null ? void 0 : p.affixWrapper, {
|
|
100
100
|
ref: Z
|
|
101
101
|
}), m && /* @__PURE__ */ d.createElement("span", {
|
|
102
|
-
className: C("".concat(
|
|
102
|
+
className: C("".concat(s, "-prefix"), i == null ? void 0 : i.prefix),
|
|
103
103
|
style: r == null ? void 0 : r.prefix
|
|
104
104
|
}, m), w, oe);
|
|
105
105
|
}
|
|
106
106
|
if (rt(t)) {
|
|
107
|
-
var ee = "".concat(
|
|
107
|
+
var ee = "".concat(s, "-group"), te = "".concat(ee, "-addon"), de = "".concat(ee, "-wrapper"), M = C("".concat(s, "-wrapper"), ee, S == null ? void 0 : S.wrapper, i == null ? void 0 : i.wrapper), ae = C(de, J({}, "".concat(de, "-disabled"), j), S == null ? void 0 : S.group, i == null ? void 0 : i.groupWrapper);
|
|
108
108
|
w = /* @__PURE__ */ d.createElement(A, {
|
|
109
109
|
className: ae
|
|
110
110
|
}, /* @__PURE__ */ d.createElement(P, {
|
|
@@ -118,29 +118,29 @@ var Ue = function(t) {
|
|
|
118
118
|
return /* @__PURE__ */ d.cloneElement(w, {
|
|
119
119
|
className: C((n = w.props) === null || n === void 0 ? void 0 : n.className, T) || null,
|
|
120
120
|
style: X(X({}, (a = w.props) === null || a === void 0 ? void 0 : a.style), y),
|
|
121
|
-
hidden:
|
|
121
|
+
hidden: $
|
|
122
122
|
});
|
|
123
123
|
}, it = ["show"];
|
|
124
124
|
function Xe(e, t) {
|
|
125
125
|
return V.useMemo(function() {
|
|
126
126
|
var n = {};
|
|
127
|
-
t && (n.show =
|
|
127
|
+
t && (n.show = Fe(t) === "object" && t.formatter ? t.formatter : !!t), n = X(X({}, n), e);
|
|
128
128
|
var a = n, o = a.show, f = Ce(a, it);
|
|
129
129
|
return X(X({}, f), {}, {
|
|
130
130
|
show: !!o,
|
|
131
131
|
showFormatter: typeof o == "function" ? o : void 0,
|
|
132
|
-
strategy: f.strategy || function(
|
|
133
|
-
return
|
|
132
|
+
strategy: f.strategy || function(s) {
|
|
133
|
+
return s.length;
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
}, [e, t]);
|
|
137
137
|
}
|
|
138
|
-
var ut = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], ct = /* @__PURE__ */
|
|
139
|
-
var n = e.autoComplete, a = e.onChange, o = e.onFocus, f = e.onBlur,
|
|
140
|
-
x.current &&
|
|
138
|
+
var ut = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], ct = /* @__PURE__ */ $e(function(e, t) {
|
|
139
|
+
var n = e.autoComplete, a = e.onChange, o = e.onFocus, f = e.onBlur, s = e.onPressEnter, m = e.onKeyDown, g = e.prefixCls, v = g === void 0 ? "rc-input" : g, b = e.disabled, T = e.htmlSize, y = e.className, j = e.maxLength, O = e.suffix, B = e.showCount, D = e.count, _ = e.type, Y = _ === void 0 ? "text" : _, E = e.classes, $ = e.classNames, S = e.styles, i = e.onCompositionStart, p = e.onCompositionEnd, r = Ce(e, ut), l = _e(!1), k = le(l, 2), Q = k[0], A = k[1], P = pe(!1), x = pe(null), Z = function(c) {
|
|
140
|
+
x.current && lt(x.current, c);
|
|
141
141
|
}, L = Oe(e.defaultValue, {
|
|
142
142
|
value: e.value
|
|
143
|
-
}),
|
|
143
|
+
}), N = le(L, 2), w = N[0], R = N[1], q = w == null ? "" : String(w), W = _e(null), ie = le(W, 2), H = ie[0], F = ie[1], u = Xe(D, B), K = u.max || j, oe = u.strategy(q), ee = !!K && oe > K;
|
|
144
144
|
De(t, function() {
|
|
145
145
|
return {
|
|
146
146
|
focus: Z,
|
|
@@ -159,8 +159,8 @@ var ut = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
159
159
|
input: x.current
|
|
160
160
|
};
|
|
161
161
|
}), xe(function() {
|
|
162
|
-
A(function(
|
|
163
|
-
return
|
|
162
|
+
A(function(z) {
|
|
163
|
+
return z && b ? !1 : z;
|
|
164
164
|
});
|
|
165
165
|
}, [b]);
|
|
166
166
|
var te = function(c, re, me) {
|
|
@@ -170,7 +170,7 @@ var ut = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
170
170
|
max: u.max
|
|
171
171
|
}), re !== ue) {
|
|
172
172
|
var ge, ce;
|
|
173
|
-
|
|
173
|
+
F([((ge = x.current) === null || ge === void 0 ? void 0 : ge.selectionStart) || 0, ((ce = x.current) === null || ce === void 0 ? void 0 : ce.selectionEnd) || 0]);
|
|
174
174
|
}
|
|
175
175
|
} else if (me.source === "compositionEnd")
|
|
176
176
|
return;
|
|
@@ -178,8 +178,8 @@ var ut = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
178
178
|
};
|
|
179
179
|
xe(function() {
|
|
180
180
|
if (H) {
|
|
181
|
-
var
|
|
182
|
-
(
|
|
181
|
+
var z;
|
|
182
|
+
(z = x.current) === null || z === void 0 || z.setSelectionRange.apply(z, Me(H));
|
|
183
183
|
}
|
|
184
184
|
}, [H]);
|
|
185
185
|
var de = function(c) {
|
|
@@ -191,7 +191,7 @@ var ut = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
191
191
|
source: "compositionEnd"
|
|
192
192
|
}), p == null || p(c);
|
|
193
193
|
}, ae = function(c) {
|
|
194
|
-
|
|
194
|
+
s && c.key === "Enter" && s(c), m == null || m(c);
|
|
195
195
|
}, fe = function(c) {
|
|
196
196
|
A(!0), o == null || o(c);
|
|
197
197
|
}, I = function(c) {
|
|
@@ -224,7 +224,7 @@ var ut = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
224
224
|
onFocus: fe,
|
|
225
225
|
onBlur: I,
|
|
226
226
|
onKeyDown: ae,
|
|
227
|
-
className: C(v, J({}, "".concat(v, "-disabled"), b),
|
|
227
|
+
className: C(v, J({}, "".concat(v, "-disabled"), b), $ == null ? void 0 : $.input),
|
|
228
228
|
style: S == null ? void 0 : S.input,
|
|
229
229
|
ref: x,
|
|
230
230
|
size: T,
|
|
@@ -243,7 +243,7 @@ var ut = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
243
243
|
maxLength: K
|
|
244
244
|
}) : "".concat(oe).concat(c ? " / ".concat(K) : "");
|
|
245
245
|
return /* @__PURE__ */ d.createElement(d.Fragment, null, u.show && /* @__PURE__ */ d.createElement("span", {
|
|
246
|
-
className: C("".concat(v, "-show-count-suffix"), J({}, "".concat(v, "-show-count-has-suffix"), !!O),
|
|
246
|
+
className: C("".concat(v, "-show-count-suffix"), J({}, "".concat(v, "-show-count-has-suffix"), !!O), $ == null ? void 0 : $.count),
|
|
247
247
|
style: X({}, S == null ? void 0 : S.count)
|
|
248
248
|
}, re), O);
|
|
249
249
|
}
|
|
@@ -259,15 +259,15 @@ var ut = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
259
259
|
suffix: we(),
|
|
260
260
|
disabled: b,
|
|
261
261
|
classes: E,
|
|
262
|
-
classNames:
|
|
262
|
+
classNames: $,
|
|
263
263
|
styles: S
|
|
264
264
|
}), ye());
|
|
265
265
|
});
|
|
266
266
|
function dt(e, t) {
|
|
267
267
|
const n = pe([]), a = () => {
|
|
268
268
|
n.current.push(setTimeout(() => {
|
|
269
|
-
var o, f,
|
|
270
|
-
!((o = e.current) === null || o === void 0) && o.input && ((f = e.current) === null || f === void 0 ? void 0 : f.input.getAttribute("type")) === "password" && (!((
|
|
269
|
+
var o, f, s, m;
|
|
270
|
+
!((o = e.current) === null || o === void 0) && o.input && ((f = e.current) === null || f === void 0 ? void 0 : f.input.getAttribute("type")) === "password" && (!((s = e.current) === null || s === void 0) && s.input.hasAttribute("value")) && ((m = e.current) === null || m === void 0 || m.input.removeAttribute("value"));
|
|
271
271
|
}));
|
|
272
272
|
};
|
|
273
273
|
return xe(() => (t && a(), () => n.current.forEach((o) => {
|
|
@@ -314,13 +314,13 @@ function gt(e, t) {
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
const Dt = /* @__PURE__ */
|
|
317
|
+
const Dt = /* @__PURE__ */ $e((e, t) => {
|
|
318
318
|
var n;
|
|
319
319
|
const {
|
|
320
320
|
prefixCls: a,
|
|
321
321
|
bordered: o = !0,
|
|
322
322
|
status: f,
|
|
323
|
-
size:
|
|
323
|
+
size: s,
|
|
324
324
|
disabled: m,
|
|
325
325
|
onBlur: g,
|
|
326
326
|
onFocus: v,
|
|
@@ -334,7 +334,7 @@ const Dt = /* @__PURE__ */ Fe((e, t) => {
|
|
|
334
334
|
rootClassName: _,
|
|
335
335
|
onChange: Y,
|
|
336
336
|
classNames: E,
|
|
337
|
-
variant:
|
|
337
|
+
variant: $
|
|
338
338
|
} = e, S = mt(e, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
|
|
339
339
|
if (process.env.NODE_ENV !== "production") {
|
|
340
340
|
const {
|
|
@@ -346,23 +346,23 @@ const Dt = /* @__PURE__ */ Fe((e, t) => {
|
|
|
346
346
|
getPrefixCls: i,
|
|
347
347
|
direction: p,
|
|
348
348
|
input: r
|
|
349
|
-
} = d.useContext(ke),
|
|
349
|
+
} = d.useContext(ke), l = i("input", a), k = pe(null), Q = Ze(l), [A, P, x] = Ye(l, Q), {
|
|
350
350
|
compactSize: Z,
|
|
351
351
|
compactItemClassnames: L
|
|
352
|
-
} = nt(
|
|
352
|
+
} = nt(l, p), N = Ke((I) => {
|
|
353
353
|
var U;
|
|
354
|
-
return (U =
|
|
354
|
+
return (U = s ?? Z) !== null && U !== void 0 ? U : I;
|
|
355
355
|
}), w = d.useContext(Le), R = m ?? w, {
|
|
356
356
|
status: q,
|
|
357
357
|
hasFeedback: W,
|
|
358
358
|
feedbackIcon: ie
|
|
359
|
-
} = et(Ge), H = He(q, f),
|
|
359
|
+
} = et(Ge), H = He(q, f), F = ft(e) || !!W, u = pe(F);
|
|
360
360
|
if (process.env.NODE_ENV !== "production") {
|
|
361
361
|
const I = Ae("Input");
|
|
362
362
|
xe(() => {
|
|
363
363
|
var U;
|
|
364
|
-
|
|
365
|
-
}, [
|
|
364
|
+
F && !u.current && process.env.NODE_ENV !== "production" && I(document.activeElement === ((U = k.current) === null || U === void 0 ? void 0 : U.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), u.current = F;
|
|
365
|
+
}, [F]);
|
|
366
366
|
}
|
|
367
367
|
const K = dt(k, !0), oe = (I) => {
|
|
368
368
|
K(), g == null || g(I);
|
|
@@ -370,10 +370,10 @@ const Dt = /* @__PURE__ */ Fe((e, t) => {
|
|
|
370
370
|
K(), v == null || v(I);
|
|
371
371
|
}, te = (I) => {
|
|
372
372
|
K(), Y == null || Y(I);
|
|
373
|
-
}, de = (W || b) && /* @__PURE__ */ d.createElement(d.Fragment, null, b, W && ie), M = vt(T), [ae, fe] = We(
|
|
373
|
+
}, de = (W || b) && /* @__PURE__ */ d.createElement(d.Fragment, null, b, W && ie), M = vt(T), [ae, fe] = We($, o);
|
|
374
374
|
return A(/* @__PURE__ */ d.createElement(ct, Object.assign({
|
|
375
375
|
ref: tt(t, k),
|
|
376
|
-
prefixCls:
|
|
376
|
+
prefixCls: l,
|
|
377
377
|
autoComplete: r == null ? void 0 : r.autoComplete
|
|
378
378
|
}, S, {
|
|
379
379
|
disabled: R,
|
|
@@ -395,27 +395,27 @@ const Dt = /* @__PURE__ */ Fe((e, t) => {
|
|
|
395
395
|
}, j)),
|
|
396
396
|
classNames: Object.assign(Object.assign(Object.assign({}, E), r == null ? void 0 : r.classNames), {
|
|
397
397
|
input: C({
|
|
398
|
-
[`${
|
|
399
|
-
[`${
|
|
400
|
-
[`${
|
|
398
|
+
[`${l}-sm`]: N === "small",
|
|
399
|
+
[`${l}-lg`]: N === "large",
|
|
400
|
+
[`${l}-rtl`]: p === "rtl"
|
|
401
401
|
}, E == null ? void 0 : E.input, (n = r == null ? void 0 : r.classNames) === null || n === void 0 ? void 0 : n.input, P),
|
|
402
402
|
variant: C({
|
|
403
|
-
[`${
|
|
404
|
-
}, Ie(
|
|
403
|
+
[`${l}-${ae}`]: fe
|
|
404
|
+
}, Ie(l, H)),
|
|
405
405
|
affixWrapper: C({
|
|
406
|
-
[`${
|
|
407
|
-
[`${
|
|
408
|
-
[`${
|
|
406
|
+
[`${l}-affix-wrapper-sm`]: N === "small",
|
|
407
|
+
[`${l}-affix-wrapper-lg`]: N === "large",
|
|
408
|
+
[`${l}-affix-wrapper-rtl`]: p === "rtl"
|
|
409
409
|
}, P),
|
|
410
410
|
wrapper: C({
|
|
411
|
-
[`${
|
|
411
|
+
[`${l}-group-rtl`]: p === "rtl"
|
|
412
412
|
}, P),
|
|
413
413
|
groupWrapper: C({
|
|
414
|
-
[`${
|
|
415
|
-
[`${
|
|
416
|
-
[`${
|
|
417
|
-
[`${
|
|
418
|
-
}, Ie(`${
|
|
414
|
+
[`${l}-group-wrapper-sm`]: N === "small",
|
|
415
|
+
[`${l}-group-wrapper-lg`]: N === "large",
|
|
416
|
+
[`${l}-group-wrapper-rtl`]: p === "rtl",
|
|
417
|
+
[`${l}-group-wrapper-${ae}`]: fe
|
|
418
|
+
}, Ie(`${l}-group-wrapper`, H, W), P)
|
|
419
419
|
})
|
|
420
420
|
})));
|
|
421
421
|
});
|
|
@@ -435,12 +435,12 @@ function ht(e) {
|
|
|
435
435
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n = e.getAttribute("id") || e.getAttribute("data-reactid") || e.getAttribute("name");
|
|
436
436
|
if (t && Ee[n])
|
|
437
437
|
return Ee[n];
|
|
438
|
-
var a = window.getComputedStyle(e), o = a.getPropertyValue("box-sizing") || a.getPropertyValue("-moz-box-sizing") || a.getPropertyValue("-webkit-box-sizing"), f = parseFloat(a.getPropertyValue("padding-bottom")) + parseFloat(a.getPropertyValue("padding-top")),
|
|
438
|
+
var a = window.getComputedStyle(e), o = a.getPropertyValue("box-sizing") || a.getPropertyValue("-moz-box-sizing") || a.getPropertyValue("-webkit-box-sizing"), f = parseFloat(a.getPropertyValue("padding-bottom")) + parseFloat(a.getPropertyValue("padding-top")), s = parseFloat(a.getPropertyValue("border-bottom-width")) + parseFloat(a.getPropertyValue("border-top-width")), m = xt.map(function(v) {
|
|
439
439
|
return "".concat(v, ":").concat(a.getPropertyValue(v));
|
|
440
440
|
}).join(";"), g = {
|
|
441
441
|
sizingStyle: m,
|
|
442
442
|
paddingSize: f,
|
|
443
|
-
borderSize:
|
|
443
|
+
borderSize: s,
|
|
444
444
|
boxSizing: o
|
|
445
445
|
};
|
|
446
446
|
return t && n && (Ee[n] = g), g;
|
|
@@ -448,13 +448,13 @@ function ht(e) {
|
|
|
448
448
|
function bt(e) {
|
|
449
449
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
|
|
450
450
|
ne || (ne = document.createElement("textarea"), ne.setAttribute("tab-index", "-1"), ne.setAttribute("aria-hidden", "true"), document.body.appendChild(ne)), e.getAttribute("wrap") ? ne.setAttribute("wrap", e.getAttribute("wrap")) : ne.removeAttribute("wrap");
|
|
451
|
-
var o = ht(e, t), f = o.paddingSize,
|
|
451
|
+
var o = ht(e, t), f = o.paddingSize, s = o.borderSize, m = o.boxSizing, g = o.sizingStyle;
|
|
452
452
|
ne.setAttribute("style", "".concat(g, ";").concat(pt)), ne.value = e.value || e.placeholder || "";
|
|
453
453
|
var v = void 0, b = void 0, T, y = ne.scrollHeight;
|
|
454
|
-
if (m === "border-box" ? y +=
|
|
454
|
+
if (m === "border-box" ? y += s : m === "content-box" && (y -= f), n !== null || a !== null) {
|
|
455
455
|
ne.value = " ";
|
|
456
456
|
var j = ne.scrollHeight - f;
|
|
457
|
-
n !== null && (v = j * n, m === "border-box" && (v = v + f +
|
|
457
|
+
n !== null && (v = j * n, m === "border-box" && (v = v + f + s), y = Math.max(v, y)), a !== null && (b = j * a, m === "border-box" && (b = b + f + s), T = y > b ? "" : "hidden", y = Math.min(b, y));
|
|
458
458
|
}
|
|
459
459
|
var O = {
|
|
460
460
|
height: y,
|
|
@@ -463,15 +463,15 @@ function bt(e) {
|
|
|
463
463
|
};
|
|
464
464
|
return v && (O.minHeight = v), b && (O.maxHeight = b), O;
|
|
465
465
|
}
|
|
466
|
-
var St = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onResize", "className", "style", "disabled", "onChange", "onInternalAutoSize"], Re = 0,
|
|
466
|
+
var St = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onResize", "className", "style", "disabled", "onChange", "onInternalAutoSize"], Re = 0, Ne = 1, ze = 2, Ct = /* @__PURE__ */ V.forwardRef(function(e, t) {
|
|
467
467
|
var n = e, a = n.prefixCls;
|
|
468
468
|
n.onPressEnter;
|
|
469
|
-
var o = n.defaultValue, f = n.value,
|
|
469
|
+
var o = n.defaultValue, f = n.value, s = n.autoSize, m = n.onResize, g = n.className, v = n.style, b = n.disabled, T = n.onChange, y = n.onInternalAutoSize, j = Ce(n, St), O = Oe(o, {
|
|
470
470
|
value: f,
|
|
471
471
|
postState: function(u) {
|
|
472
472
|
return u ?? "";
|
|
473
473
|
}
|
|
474
|
-
}), B =
|
|
474
|
+
}), B = le(O, 2), D = B[0], _ = B[1], Y = function(u) {
|
|
475
475
|
_(u.target.value), T == null || T(u);
|
|
476
476
|
}, E = V.useRef();
|
|
477
477
|
V.useImperativeHandle(t, function() {
|
|
@@ -479,9 +479,9 @@ var St = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onR
|
|
|
479
479
|
textArea: E.current
|
|
480
480
|
};
|
|
481
481
|
});
|
|
482
|
-
var
|
|
483
|
-
return
|
|
484
|
-
}, [
|
|
482
|
+
var $ = V.useMemo(function() {
|
|
483
|
+
return s && Fe(s) === "object" ? [s.minRows, s.maxRows] : [];
|
|
484
|
+
}, [s]), S = le($, 2), i = S[0], p = S[1], r = !!s, l = function() {
|
|
485
485
|
try {
|
|
486
486
|
if (document.activeElement === E.current) {
|
|
487
487
|
var u = E.current, K = u.selectionStart, oe = u.selectionEnd, ee = u.scrollTop;
|
|
@@ -489,24 +489,24 @@ var St = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onR
|
|
|
489
489
|
}
|
|
490
490
|
} catch {
|
|
491
491
|
}
|
|
492
|
-
}, k = V.useState(
|
|
492
|
+
}, k = V.useState(ze), Q = le(k, 2), A = Q[0], P = Q[1], x = V.useState(), Z = le(x, 2), L = Z[0], N = Z[1], w = function() {
|
|
493
493
|
P(Re), process.env.NODE_ENV === "test" && (y == null || y());
|
|
494
494
|
};
|
|
495
495
|
Pe(function() {
|
|
496
496
|
r && w();
|
|
497
497
|
}, [f, i, p, r]), Pe(function() {
|
|
498
498
|
if (A === Re)
|
|
499
|
-
P(
|
|
500
|
-
else if (A ===
|
|
501
|
-
var
|
|
502
|
-
P(
|
|
499
|
+
P(Ne);
|
|
500
|
+
else if (A === Ne) {
|
|
501
|
+
var F = bt(E.current, !1, i, p);
|
|
502
|
+
P(ze), N(F);
|
|
503
503
|
} else
|
|
504
|
-
|
|
504
|
+
l();
|
|
505
505
|
}, [A]);
|
|
506
506
|
var R = V.useRef(), q = function() {
|
|
507
507
|
Ve.cancel(R.current);
|
|
508
508
|
}, W = function(u) {
|
|
509
|
-
A ===
|
|
509
|
+
A === ze && (m == null || m(u), s && (q(), R.current = Ve(function() {
|
|
510
510
|
w();
|
|
511
511
|
})));
|
|
512
512
|
};
|
|
@@ -514,9 +514,9 @@ var St = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onR
|
|
|
514
514
|
return q;
|
|
515
515
|
}, []);
|
|
516
516
|
var ie = r ? L : null, H = X(X({}, v), ie);
|
|
517
|
-
return (A === Re || A ===
|
|
517
|
+
return (A === Re || A === Ne) && (H.overflowY = "hidden", H.overflowX = "hidden"), /* @__PURE__ */ V.createElement(at, {
|
|
518
518
|
onResize: W,
|
|
519
|
-
disabled: !(
|
|
519
|
+
disabled: !(s || m)
|
|
520
520
|
}, /* @__PURE__ */ V.createElement("textarea", he({}, j, {
|
|
521
521
|
ref: E,
|
|
522
522
|
style: H,
|
|
@@ -526,18 +526,18 @@ var St = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onR
|
|
|
526
526
|
onChange: Y
|
|
527
527
|
})));
|
|
528
528
|
}), yt = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "showCount", "count", "className", "style", "disabled", "hidden", "classNames", "styles", "onResize"], wt = /* @__PURE__ */ d.forwardRef(function(e, t) {
|
|
529
|
-
var n, a, o = e.defaultValue, f = e.value,
|
|
529
|
+
var n, a, o = e.defaultValue, f = e.value, s = e.onFocus, m = e.onBlur, g = e.onChange, v = e.allowClear, b = e.maxLength, T = e.onCompositionStart, y = e.onCompositionEnd, j = e.suffix, O = e.prefixCls, B = O === void 0 ? "rc-textarea" : O, D = e.showCount, _ = e.count, Y = e.className, E = e.style, $ = e.disabled, S = e.hidden, i = e.classNames, p = e.styles, r = e.onResize, l = Ce(e, yt), k = Oe(o, {
|
|
530
530
|
value: f,
|
|
531
531
|
defaultValue: o
|
|
532
|
-
}), Q =
|
|
532
|
+
}), Q = le(k, 2), A = Q[0], P = Q[1], x = A == null ? "" : String(A), Z = d.useState(!1), L = le(Z, 2), N = L[0], w = L[1], R = d.useRef(!1), q = d.useState(null), W = le(q, 2), ie = W[0], H = W[1], F = pe(null), u = function() {
|
|
533
533
|
var h;
|
|
534
|
-
return (h =
|
|
534
|
+
return (h = F.current) === null || h === void 0 ? void 0 : h.textArea;
|
|
535
535
|
}, K = function() {
|
|
536
536
|
u().focus();
|
|
537
537
|
};
|
|
538
538
|
De(t, function() {
|
|
539
539
|
return {
|
|
540
|
-
resizableTextArea:
|
|
540
|
+
resizableTextArea: F.current,
|
|
541
541
|
focus: K,
|
|
542
542
|
blur: function() {
|
|
543
543
|
u().blur();
|
|
@@ -545,32 +545,32 @@ var St = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onR
|
|
|
545
545
|
};
|
|
546
546
|
}), xe(function() {
|
|
547
547
|
w(function(G) {
|
|
548
|
-
return
|
|
548
|
+
return !$ && G;
|
|
549
549
|
});
|
|
550
|
-
}, [
|
|
551
|
-
var oe = d.useState(null), ee =
|
|
550
|
+
}, [$]);
|
|
551
|
+
var oe = d.useState(null), ee = le(oe, 2), te = ee[0], de = ee[1];
|
|
552
552
|
d.useEffect(function() {
|
|
553
553
|
if (te) {
|
|
554
554
|
var G;
|
|
555
555
|
(G = u()).setSelectionRange.apply(G, Me(te));
|
|
556
556
|
}
|
|
557
557
|
}, [te]);
|
|
558
|
-
var M = Xe(_, D), ae = (n = M.max) !== null && n !== void 0 ? n : b, fe = Number(ae) > 0, I = M.strategy(x), U = !!ae && I > ae, be = function(h,
|
|
559
|
-
var ve =
|
|
560
|
-
!R.current && M.exceedFormatter && M.max && M.strategy(
|
|
558
|
+
var M = Xe(_, D), ae = (n = M.max) !== null && n !== void 0 ? n : b, fe = Number(ae) > 0, I = M.strategy(x), U = !!ae && I > ae, be = function(h, se) {
|
|
559
|
+
var ve = se;
|
|
560
|
+
!R.current && M.exceedFormatter && M.max && M.strategy(se) > M.max && (ve = M.exceedFormatter(se, {
|
|
561
561
|
max: M.max
|
|
562
|
-
}),
|
|
562
|
+
}), se !== ve && de([u().selectionStart || 0, u().selectionEnd || 0])), P(ve), Se(h.currentTarget, h, g, ve);
|
|
563
563
|
}, ye = function(h) {
|
|
564
564
|
R.current = !0, T == null || T(h);
|
|
565
565
|
}, we = function(h) {
|
|
566
566
|
R.current = !1, be(h, h.currentTarget.value), y == null || y(h);
|
|
567
|
-
},
|
|
567
|
+
}, z = function(h) {
|
|
568
568
|
be(h, h.target.value);
|
|
569
569
|
}, c = function(h) {
|
|
570
|
-
var
|
|
571
|
-
h.key === "Enter" &&
|
|
570
|
+
var se = l.onPressEnter, ve = l.onKeyDown;
|
|
571
|
+
h.key === "Enter" && se && se(h), ve == null || ve(h);
|
|
572
572
|
}, re = function(h) {
|
|
573
|
-
w(!0),
|
|
573
|
+
w(!0), s == null || s(h);
|
|
574
574
|
}, me = function(h) {
|
|
575
575
|
w(!1), m == null || m(h);
|
|
576
576
|
}, ue = function(h) {
|
|
@@ -585,9 +585,9 @@ var St = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onR
|
|
|
585
585
|
style: p == null ? void 0 : p.count
|
|
586
586
|
}, ce)));
|
|
587
587
|
var Qe = function(h) {
|
|
588
|
-
var
|
|
589
|
-
r == null || r(h), (
|
|
590
|
-
}, qe = !
|
|
588
|
+
var se;
|
|
589
|
+
r == null || r(h), (se = u()) !== null && se !== void 0 && se.style.height && H(!0);
|
|
590
|
+
}, qe = !l.autoSize && !D && !v;
|
|
591
591
|
return /* @__PURE__ */ d.createElement(Ue, {
|
|
592
592
|
value: x,
|
|
593
593
|
allowClear: v,
|
|
@@ -597,8 +597,8 @@ var St = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onR
|
|
|
597
597
|
classNames: X(X({}, i), {}, {
|
|
598
598
|
affixWrapper: C(i == null ? void 0 : i.affixWrapper, (a = {}, J(a, "".concat(B, "-show-count"), D), J(a, "".concat(B, "-textarea-allow-clear"), v), a))
|
|
599
599
|
}),
|
|
600
|
-
disabled:
|
|
601
|
-
focused:
|
|
600
|
+
disabled: $,
|
|
601
|
+
focused: N,
|
|
602
602
|
className: C(Y, U && "".concat(B, "-out-of-range")),
|
|
603
603
|
style: X(X({}, E), ie && !qe ? {
|
|
604
604
|
height: "auto"
|
|
@@ -609,10 +609,10 @@ var St = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onR
|
|
|
609
609
|
}
|
|
610
610
|
},
|
|
611
611
|
hidden: S
|
|
612
|
-
}, /* @__PURE__ */ d.createElement(Ct, he({},
|
|
612
|
+
}, /* @__PURE__ */ d.createElement(Ct, he({}, l, {
|
|
613
613
|
maxLength: b,
|
|
614
614
|
onKeyDown: c,
|
|
615
|
-
onChange:
|
|
615
|
+
onChange: z,
|
|
616
616
|
onFocus: re,
|
|
617
617
|
onBlur: me,
|
|
618
618
|
onCompositionStart: ye,
|
|
@@ -621,10 +621,10 @@ var St = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onR
|
|
|
621
621
|
style: X(X({}, p == null ? void 0 : p.textarea), {}, {
|
|
622
622
|
resize: E == null ? void 0 : E.resize
|
|
623
623
|
}),
|
|
624
|
-
disabled:
|
|
624
|
+
disabled: $,
|
|
625
625
|
prefixCls: B,
|
|
626
626
|
onResize: Qe,
|
|
627
|
-
ref:
|
|
627
|
+
ref: F
|
|
628
628
|
})));
|
|
629
629
|
}), Et = function(e, t) {
|
|
630
630
|
var n = {};
|
|
@@ -635,13 +635,13 @@ var St = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onR
|
|
|
635
635
|
t.indexOf(a[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[o]) && (n[a[o]] = e[a[o]]);
|
|
636
636
|
return n;
|
|
637
637
|
};
|
|
638
|
-
const Rt = /* @__PURE__ */
|
|
638
|
+
const Rt = /* @__PURE__ */ $e((e, t) => {
|
|
639
639
|
var n;
|
|
640
640
|
const {
|
|
641
641
|
prefixCls: a,
|
|
642
642
|
bordered: o = !0,
|
|
643
643
|
size: f,
|
|
644
|
-
disabled:
|
|
644
|
+
disabled: s,
|
|
645
645
|
status: m,
|
|
646
646
|
allowClear: g,
|
|
647
647
|
classNames: v,
|
|
@@ -658,34 +658,34 @@ const Rt = /* @__PURE__ */ Fe((e, t) => {
|
|
|
658
658
|
const {
|
|
659
659
|
getPrefixCls: O,
|
|
660
660
|
direction: B
|
|
661
|
-
} = V.useContext(ke), D = Ke(f), _ = V.useContext(Le), Y =
|
|
661
|
+
} = V.useContext(ke), D = Ke(f), _ = V.useContext(Le), Y = s ?? _, {
|
|
662
662
|
status: E,
|
|
663
|
-
hasFeedback:
|
|
663
|
+
hasFeedback: $,
|
|
664
664
|
feedbackIcon: S
|
|
665
665
|
} = V.useContext(Ge), i = He(E, m), p = V.useRef(null);
|
|
666
666
|
V.useImperativeHandle(t, () => {
|
|
667
667
|
var L;
|
|
668
668
|
return {
|
|
669
669
|
resizableTextArea: (L = p.current) === null || L === void 0 ? void 0 : L.resizableTextArea,
|
|
670
|
-
focus: (
|
|
670
|
+
focus: (N) => {
|
|
671
671
|
var w, R;
|
|
672
|
-
gt((R = (w = p.current) === null || w === void 0 ? void 0 : w.resizableTextArea) === null || R === void 0 ? void 0 : R.textArea,
|
|
672
|
+
gt((R = (w = p.current) === null || w === void 0 ? void 0 : w.resizableTextArea) === null || R === void 0 ? void 0 : R.textArea, N);
|
|
673
673
|
},
|
|
674
674
|
blur: () => {
|
|
675
|
-
var
|
|
676
|
-
return (
|
|
675
|
+
var N;
|
|
676
|
+
return (N = p.current) === null || N === void 0 ? void 0 : N.blur();
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
679
|
});
|
|
680
680
|
const r = O("input", a);
|
|
681
|
-
let
|
|
682
|
-
typeof g == "object" && (g != null && g.clearIcon) ?
|
|
681
|
+
let l;
|
|
682
|
+
typeof g == "object" && (g != null && g.clearIcon) ? l = g : g && (l = {
|
|
683
683
|
clearIcon: /* @__PURE__ */ V.createElement(Be, null)
|
|
684
684
|
});
|
|
685
685
|
const k = Ze(r), [Q, A, P] = Ye(r, k), [x, Z] = We(y, o);
|
|
686
686
|
return Q(/* @__PURE__ */ V.createElement(wt, Object.assign({}, j, {
|
|
687
687
|
disabled: Y,
|
|
688
|
-
allowClear:
|
|
688
|
+
allowClear: l,
|
|
689
689
|
className: C(P, k, T, b),
|
|
690
690
|
classNames: Object.assign(Object.assign({}, v), {
|
|
691
691
|
textarea: C({
|
|
@@ -703,7 +703,7 @@ const Rt = /* @__PURE__ */ Fe((e, t) => {
|
|
|
703
703
|
}, A)
|
|
704
704
|
}),
|
|
705
705
|
prefixCls: r,
|
|
706
|
-
suffix:
|
|
706
|
+
suffix: $ && /* @__PURE__ */ V.createElement("span", {
|
|
707
707
|
className: `${r}-textarea-suffix`
|
|
708
708
|
}, S),
|
|
709
709
|
ref: p
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { e as a } from "./index-
|
|
1
|
+
import { e as a } from "./index-1KQbTQJ2.js";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import { A as c } from "./isVisible-
|
|
3
|
+
import { A as c } from "./isVisible-Qi9l15Ty.js";
|
|
4
4
|
var i = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, name: "delete", theme: "outlined" };
|
|
5
5
|
const r = i;
|
|
6
6
|
var n = function(t, l) {
|