@unicom-cloud/ui 0.8.57 → 0.8.58

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 (261) hide show
  1. package/Affix.js +15 -15
  2. package/Alert.js +5 -5
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +28 -28
  5. package/Avatar.js +11 -11
  6. package/BackTop.js +28 -28
  7. package/Badge.js +10 -10
  8. package/Breadcrumb.js +6 -6
  9. package/Button.js +11 -10
  10. package/Calendar.js +8 -8
  11. package/Card.js +3 -3
  12. package/Carousel.js +7 -7
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +582 -11
  17. package/Comment.js +7 -7
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +6 -6
  20. package/DatePicker.js +14 -12
  21. package/Descriptions.js +3 -3
  22. package/Divider.js +3 -3
  23. package/Draggable.js +12 -12
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +5 -5
  26. package/Empty.js +3 -3
  27. package/Form.js +1410 -10
  28. package/Grid.js +14 -14
  29. package/Icon.js +2 -2
  30. package/IconHover.js +2 -2
  31. package/Image.js +1 -1
  32. package/Input.js +2 -2
  33. package/InputNumber.js +8 -8
  34. package/InputTag.js +1 -1
  35. package/Layout.js +8 -8
  36. package/Link.js +13 -13
  37. package/List.js +21 -21
  38. package/Mentions.js +30 -30
  39. package/Menu.js +1 -1
  40. package/Message.js +3 -3
  41. package/Modal.js +1 -1
  42. package/Notice.js +3 -3
  43. package/Notification.js +4 -4
  44. package/OverflowEllipsis.js +9 -9
  45. package/PageHeader.js +10 -10
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +5 -5
  49. package/Popover.js +7 -7
  50. package/Portal.js +1 -1
  51. package/Progress.js +15 -15
  52. package/Radio.js +2 -2
  53. package/Rate.js +10 -10
  54. package/ResizeBox.js +10 -11
  55. package/Result.js +11 -11
  56. package/Select.js +1 -1
  57. package/SelectView.js +40 -41
  58. package/Skeleton.js +4 -4
  59. package/Slider.js +9 -9
  60. package/Space.js +12 -12
  61. package/SpeechSynthesis.js +1 -1
  62. package/Spin.js +11 -11
  63. package/Statistic.js +43 -43
  64. package/Steps.js +5 -5
  65. package/Switch.js +15 -16
  66. package/Table.js +17 -17
  67. package/Tabs.js +1 -1
  68. package/Tag.js +5 -5
  69. package/TimePicker.js +38 -38
  70. package/Timeline.js +1 -1
  71. package/Tooltip.js +9 -9
  72. package/Transfer.js +26 -26
  73. package/Tree.js +1 -1
  74. package/TreeSelect.js +1 -1
  75. package/Trigger.js +11 -11
  76. package/Typography.js +1 -1
  77. package/Upload.js +4 -1
  78. package/VerificationCode.js +1 -1
  79. package/Version.js +1 -1
  80. package/VirtualList.js +1 -1
  81. package/Watermark.js +1 -1
  82. package/chunk/{m_kOQCiU.js → -LZOUh53.js} +1 -1
  83. package/chunk/{CXNW5Y2a.js → -jdfq71f.js} +1 -1
  84. package/chunk/{CkAOsst1.js → 4-gvEY5y.js} +30 -30
  85. package/chunk/{DQXq1QT0.js → B0GOLsj_.js} +1 -1
  86. package/chunk/{BMvZCjSU.js → B16KHtX-.js} +16 -16
  87. package/chunk/{CggcswbO.js → B2vORJQ8.js} +19 -15
  88. package/chunk/{BCk8e9fj.js → B7Zsp3gO.js} +1 -1
  89. package/chunk/B8QV6E2b.js +34 -0
  90. package/chunk/{BeM2hfks.js → BBVjSFnw.js} +27 -23
  91. package/chunk/{1mEO29GP.js → BDjXkzNj.js} +1 -1
  92. package/chunk/{BuEC_zcc.js → BEDYCG-I.js} +31 -31
  93. package/chunk/{B45v5S9k.js → BHn4xgbv.js} +1 -1
  94. package/chunk/{CF3Telny.js → BJ_7JTqC.js} +3 -3
  95. package/chunk/{BM6dpkeM.js → BLSiP_gg.js} +1 -1
  96. package/chunk/{9Gh1afjL.js → BMJfSSLX.js} +1 -1
  97. package/chunk/{DBJ8d0o0.js → BNHrEI0Y.js} +31 -31
  98. package/chunk/{BP7xX86Q.js → BPZ-6HKJ.js} +131 -134
  99. package/chunk/{DxNRWF67.js → BVLwPZis.js} +11 -11
  100. package/chunk/{BpwDupra.js → BYhtrDV3.js} +9 -9
  101. package/chunk/{D6mVoX-C.js → B_nfMl0e.js} +1 -1
  102. package/chunk/{BWx1cVT_.js → BcS17Pzy.js} +1 -1
  103. package/chunk/Bdh4XVuf.js +1487 -0
  104. package/chunk/{BkHxm4sv.js → BdiEwtQO.js} +1 -1
  105. package/chunk/{DDda6s72.js → BjSHZA0m.js} +6 -6
  106. package/chunk/{C7Okdv4u.js → Bpug_KxP.js} +1 -1
  107. package/chunk/BzPkh4Zv.js +11 -0
  108. package/chunk/{CwXmtKib.js → C1D7T29r.js} +35 -35
  109. package/chunk/{DYZzQ2uT.js → C1u_ckwU.js} +1 -1
  110. package/chunk/C1xMmQIZ.js +468 -0
  111. package/chunk/C2lIz2F9.js +60 -0
  112. package/chunk/{Be7oeWU8.js → C43Hv2Bl.js} +1 -1
  113. package/chunk/{CR4u270n.js → C5AQWbC4.js} +79 -79
  114. package/chunk/{fqgc8r6C.js → C9vsih_D.js} +1 -1
  115. package/chunk/CANaGbGR.js +154 -0
  116. package/chunk/{BA02BFUV.js → CAfR2wLq.js} +1 -1
  117. package/chunk/{CcX2pBUh.js → CAfecMDF.js} +1 -1
  118. package/chunk/{BHK9zpXn.js → CKp4rZnD.js} +1 -1
  119. package/chunk/CTxjmYmx.js +19 -0
  120. package/chunk/{BqxwlITu.js → CV2Aqv9q.js} +1 -1
  121. package/chunk/{bsawGxt8.js → CYdarMv9.js} +1 -1
  122. package/chunk/{DafaH1Qt.js → C_S5Mdvd.js} +43 -44
  123. package/chunk/{DkIjpuBZ.js → Cbd50gx8.js} +11 -11
  124. package/chunk/{D5p8q9Pa.js → CbiWdbr_.js} +12 -12
  125. package/chunk/{cUuQh7L_.js → CmB-TL7C.js} +1 -1
  126. package/chunk/{BbYzi8M0.js → CuOl4X0X.js} +4 -4
  127. package/chunk/{BHLTzWzi.js → D-ER56Sf.js} +1 -1
  128. package/chunk/{BK1FKNAX.js → D-aYnb6u.js} +1 -1
  129. package/chunk/{DalIRWr7.js → D2HkyI6A.js} +9 -9
  130. package/chunk/D3NFxdmG.js +518 -0
  131. package/chunk/{C2fspJbE.js → D3xQFJcO.js} +1 -1
  132. package/chunk/{Lk60-jkf.js → DApXtulb.js} +4 -0
  133. package/chunk/{sl8s35SK.js → DJcEys80.js} +1 -1
  134. package/chunk/{B1S1OEw6.js → DLIm6rRJ.js} +1 -1
  135. package/chunk/{C95ipQ6b.js → DOWEHtqM.js} +1 -1
  136. package/chunk/{aM2ePYrq.js → DSGRHf-1.js} +132 -132
  137. package/chunk/{D9TqtOhq.js → DT37l12z.js} +1 -1
  138. package/chunk/{B6fn5y_s.js → DW-B7npC.js} +1 -1
  139. package/chunk/D_-UD4vO.js +119 -0
  140. package/chunk/{Dtnux4qL.js → D_MTFBb0.js} +1 -1
  141. package/chunk/{WkB0MERB.js → DhBo0pPJ.js} +27 -27
  142. package/chunk/DmUhn9ib.js +961 -0
  143. package/chunk/{Bny52uiG.js → DpfUGhi4.js} +10 -10
  144. package/chunk/{DhLbnw3R.js → Dx_5J4fO.js} +1 -1
  145. package/chunk/{B9PsJar0.js → Dy487FZ1.js} +1 -1
  146. package/chunk/{D6RTBH4C.js → IooeSKJJ.js} +10 -10
  147. package/chunk/Kbr6FzOG.js +745 -0
  148. package/chunk/{CwjaGytU.js → RMBPs_Ry.js} +32 -32
  149. package/chunk/Uz-rNulO.js +98 -0
  150. package/chunk/V6euPXVB.js +1025 -0
  151. package/chunk/{Bv8ZRDFt.js → YIlBPVAs.js} +14 -14
  152. package/chunk/{DPvnQJ-H.js → cDZI_t6o.js} +1 -1
  153. package/chunk/{C-w9pFY-.js → cZiP8FvM.js} +3 -3
  154. package/chunk/{DJmWXheU.js → eK7lxdak.js} +8 -8
  155. package/chunk/{Dg2DmtzA.js → gIbzjQ-X.js} +5 -6
  156. package/chunk/{CPl52AZh.js → sScV-J56.js} +1 -1
  157. package/chunk/{BbI3gqVr.js → wI2I1qb0.js} +1 -1
  158. package/hooks/index.js +32 -32
  159. package/hooks/use-verification-code.js +23 -22
  160. package/hooks/use-watermark.js +2 -1
  161. package/hooks/useComputedState.js +2 -1
  162. package/hooks/useCreate.js +2 -1
  163. package/hooks/useForceUpdate.js +2 -1
  164. package/hooks/useId.js +2 -1
  165. package/hooks/useInView.js +5 -4
  166. package/hooks/useIntersectionObserver.js +11 -11
  167. package/hooks/useIsFirstRender.js +2 -1
  168. package/hooks/useIsomorphicLayoutEffect.js +2 -1
  169. package/hooks/useKeyboardEvent.js +3 -2
  170. package/hooks/useMedia.js +2 -1
  171. package/hooks/useMergeProps.js +2 -1
  172. package/hooks/useMergeValue.js +4 -3
  173. package/hooks/useOverflowHidden.js +2 -1
  174. package/hooks/useOverrideRef.js +2 -1
  175. package/hooks/usePersistCallback.js +2 -1
  176. package/hooks/usePrevious.js +2 -1
  177. package/hooks/useRefs.js +2 -1
  178. package/hooks/useResizeObserver.js +2 -1
  179. package/hooks/useStateCallback.js +2 -1
  180. package/hooks/useStateWithPromise.js +2 -1
  181. package/hooks/useUpdateEffect.js +2 -1
  182. package/hooks/useWatch.js +3 -2
  183. package/hooks/useWindowSize.js +2 -1
  184. package/icons.js +35 -35
  185. package/index.js +484 -376
  186. package/locale/en-US.js +3 -11
  187. package/locale/tr-TR.js +3 -11
  188. package/package.json +1 -1
  189. package/types/anchor/Anchor.d.ts +1 -1
  190. package/types/button/index.d.ts +3 -2
  191. package/types/color-picker/hooks/useColorPicker.d.ts +1 -1
  192. package/types/color-picker/hooks/useControlBlock.d.ts +1 -1
  193. package/types/config-provider/interface.d.ts +1 -0
  194. package/types/date-picker/PickerRange.d.ts +1 -1
  195. package/types/hooks/use-verification-code/index.d.ts +2 -1
  196. package/types/hooks/use-watermark/index.d.ts +2 -1
  197. package/types/hooks/useComputedState.d.ts +2 -2
  198. package/types/hooks/useCreate.d.ts +2 -1
  199. package/types/hooks/useForceUpdate.d.ts +2 -1
  200. package/types/hooks/useId.d.ts +2 -1
  201. package/types/hooks/useInView.d.ts +1 -1
  202. package/types/hooks/useIntersectionObserver.d.ts +1 -1
  203. package/types/hooks/useIsFirstRender.d.ts +2 -1
  204. package/types/hooks/useIsomorphicLayoutEffect.d.ts +1 -1
  205. package/types/hooks/useKeyboardEvent.d.ts +2 -2
  206. package/types/hooks/useMedia.d.ts +1 -1
  207. package/types/hooks/useMergeProps.d.ts +2 -1
  208. package/types/hooks/useMergeValue.d.ts +2 -1
  209. package/types/hooks/useOverflowHidden.d.ts +2 -2
  210. package/types/hooks/useOverrideRef.d.ts +2 -1
  211. package/types/hooks/usePersistCallback.d.ts +2 -1
  212. package/types/hooks/usePrevious.d.ts +2 -1
  213. package/types/hooks/useRefs.d.ts +2 -1
  214. package/types/hooks/useResizeObserver.d.ts +2 -1
  215. package/types/hooks/useStateCallback.d.ts +1 -1
  216. package/types/hooks/useStateWithPromise.d.ts +1 -1
  217. package/types/hooks/useUpdateEffect.d.ts +2 -1
  218. package/types/hooks/useWatch.d.ts +2 -1
  219. package/types/hooks/useWindowSize.d.ts +1 -1
  220. package/types/image/interface.d.ts +1 -1
  221. package/types/index.d.ts +13 -22
  222. package/types/table/interface.d.ts +3 -1
  223. package/types/upload/Upload.d.ts +2 -1
  224. package/types/upload/index.d.ts +3 -1
  225. package/types/upload/request_.d.ts +3 -0
  226. package/types/utils/caseName.d.ts +2 -0
  227. package/types/utils/fileToURL.d.ts +2 -0
  228. package/types/utils/fillNBSP.d.ts +1 -1
  229. package/types/utils/index.d.ts +37 -0
  230. package/types/utils/is.d.ts +2 -2
  231. package/types/utils/lodash.d.ts +4 -0
  232. package/types/utils/scrollIntoView.d.ts +2 -1
  233. package/types/version/index.d.ts +1 -1
  234. package/ui.css +1 -0
  235. package/utils/CSSTransition.js +1 -1
  236. package/utils/caseName.js +20 -0
  237. package/utils/className.js +1 -1
  238. package/utils/contextHolder.js +1 -1
  239. package/utils/fileToURL.js +4 -0
  240. package/utils/index.js +219 -0
  241. package/utils/is.js +95 -93
  242. package/utils/keyCode.js +10 -46
  243. package/utils/lodash.js +8 -0
  244. package/utils/mergedToString.js +11 -10
  245. package/utils/reactDOM.js +1 -1
  246. package/utils/saveAs.js +1 -1
  247. package/utils/scrollIntoView.js +8 -7
  248. package/chunk/5pZ3ayqs.js +0 -29
  249. package/chunk/Bl-ODC57.js +0 -945
  250. package/chunk/BlKc_pDZ.js +0 -678
  251. package/chunk/CiEln_Q1.js +0 -517
  252. package/chunk/CiZVOdJ3.js +0 -122
  253. package/chunk/DMWMrXg1.js +0 -964
  254. package/chunk/DUxWiN2U.js +0 -1465
  255. package/chunk/Dbk4DVhB.js +0 -855
  256. package/chunk/Do1aMgY3.js +0 -12
  257. package/chunk/HlP8inLK.js +0 -1796
  258. package/chunk/V_IcWDFx.js +0 -49
  259. package/style.css +0 -1
  260. /package/types/utils/{mergeProp.d.ts → mergeProps.d.ts} +0 -0
  261. /package/utils/{mergeProp.js → mergeProps.js} +0 -0
@@ -0,0 +1,961 @@
1
+ var Je = Object.defineProperty;
2
+ var Qe = (e, t, r) => t in e ? Je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var z = (e, t, r) => Qe(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { jsx as N, jsxs as se, Fragment as Ze } from "react/jsx-runtime";
5
+ import Z from "lodash/isPlainObject";
6
+ import et from "lodash/isString";
7
+ import tt from "lodash/isUndefined";
8
+ import ce, { useContext as de, useRef as ee, useState as le, useMemo as he, useImperativeHandle as Ae, useCallback as nt, useEffect as we } from "react";
9
+ import { d as fe, I as rt } from "./Bdh4XVuf.js";
10
+ import { useMergeProps as Le } from "../hooks/useMergeProps.js";
11
+ import { useMergeValue as ye } from "../hooks/useMergeValue.js";
12
+ import { y as F } from "./BzPkh4Zv.js";
13
+ import { contains as Te } from "../utils/dom.js";
14
+ import { u as it, I as st } from "./gIbzjQ-X.js";
15
+ import { I as ot } from "./BDjXkzNj.js";
16
+ import { I as at } from "./BMJfSSLX.js";
17
+ import { I as lt } from "./DW-B7npC.js";
18
+ import { I as ut } from "./D3xQFJcO.js";
19
+ import oe from "lodash/isNumber";
20
+ import { I as ct } from "./Bpug_KxP.js";
21
+ import { I as dt } from "./D_MTFBb0.js";
22
+ import { useKeyboardEvent as ft } from "../hooks/useKeyboardEvent.js";
23
+ import Ie from "../utils/omit.js";
24
+ import { e as mt, I as gt } from "./BHn4xgbv.js";
25
+ import { I as De } from "./Dx_5J4fO.js";
26
+ import ht from "../Button.js";
27
+ import { I as pt } from "./C_S5Mdvd.js";
28
+ import { useIsomorphicLayoutEffect as ze } from "../hooks/useIsomorphicLayoutEffect.js";
29
+ import "../utils/is.js";
30
+ import { A as Nt, c as xt } from "./C2lIz2F9.js";
31
+ const Fe = ce.forwardRef((e, t) => {
32
+ const { getPrefixCls: r } = de(fe), { className: i, style: s, children: u, compact: n, ...m } = e, l = r("input-group"), h = F(
33
+ l,
34
+ {
35
+ [`${l}-compact`]: n
36
+ },
37
+ i
38
+ );
39
+ return /* @__PURE__ */ N("div", { ref: t, className: h, style: s, ...m, children: u });
40
+ });
41
+ Fe.displayName = "InputGroup";
42
+ function ke(e) {
43
+ return !Number.isNaN(Number(e)) && String(e).includes("e");
44
+ }
45
+ function Ee() {
46
+ return typeof BigInt == "function";
47
+ }
48
+ function Ce(e) {
49
+ const t = String(e);
50
+ if (ke(e)) {
51
+ let r = Number(t.slice(t.indexOf("e-") + 2));
52
+ return t.replace(/\.(\d+)/, (i, s) => (r += s.length, i)), r;
53
+ }
54
+ return t.includes(".") && Ue(t) ? t.length - t.indexOf(".") - 1 : 0;
55
+ }
56
+ function He(e) {
57
+ let t = String(e);
58
+ if (ke(e)) {
59
+ if (e < Number.MIN_SAFE_INTEGER)
60
+ return Ee() ? BigInt(e).toString() : Number.MIN_SAFE_INTEGER.toString();
61
+ if (e > Number.MAX_SAFE_INTEGER)
62
+ return Ee() ? BigInt(e).toString() : Number.MAX_SAFE_INTEGER.toString();
63
+ const r = Ce(t);
64
+ t = Number(e).toFixed(Math.min(100, r));
65
+ }
66
+ return pe(t).fullStr;
67
+ }
68
+ function Ue(e) {
69
+ return typeof e == "number" ? !Number.isNaN(e) : e ? (
70
+ // 1.1
71
+ /^\s*-?\d+(\.\d+)?\s*$/.test(e) || // 1.
72
+ /^\s*-?\d+\.\s*$/.test(e) || // .1
73
+ /^\s*-?\.\d+\s*$/.test(e)
74
+ ) : !1;
75
+ }
76
+ function pe(e) {
77
+ let t = e.trim(), r = !1;
78
+ t = t.replace(/^-/, () => (r = !0, "")).replace(/(\.\d*[^0])0*$/, "$1").replace(/\.0*$/, "").replace(/^0+/, "").replace(/^\./, "0.");
79
+ const i = t || "0", [s = "0", u = "0"] = i.split(".");
80
+ s === "0" && u === "0" && (r = !1);
81
+ const n = r ? "-" : "";
82
+ return {
83
+ negative: r,
84
+ negativeStr: n,
85
+ trimStr: i,
86
+ integerStr: s,
87
+ decimalStr: u,
88
+ fullStr: `${n}${i}`
89
+ };
90
+ }
91
+ class Ne {
92
+ constructor(t) {
93
+ z(this, "isEmpty");
94
+ z(this, "isNaN");
95
+ z(this, "isNegative");
96
+ z(this, "origin", "");
97
+ z(this, "integer");
98
+ z(this, "decimal");
99
+ z(this, "decimalLen");
100
+ if (this.origin = String(t), !t && t !== 0 || !this.origin.trim()) {
101
+ this.isEmpty = !0;
102
+ return;
103
+ }
104
+ if (t === "-") {
105
+ this.isNaN = !0;
106
+ return;
107
+ }
108
+ const r = He(t);
109
+ if (Ue(r)) {
110
+ const { negative: i, trimStr: s } = pe(r), [u, n = "0"] = s.split(".");
111
+ this.isNegative = i, this.integer = BigInt(u), this.decimal = BigInt(n), this.decimalLen = n.length;
112
+ } else
113
+ this.isNaN = !0;
114
+ }
115
+ get isInvalid() {
116
+ return this.isEmpty || this.isNaN;
117
+ }
118
+ getMark() {
119
+ return this.isNegative ? "-" : "";
120
+ }
121
+ getIntegerStr() {
122
+ return this.integer.toString();
123
+ }
124
+ getDecimalStr() {
125
+ return this.decimal.toString().padStart(this.decimalLen, "0");
126
+ }
127
+ alignDecimal(t) {
128
+ return BigInt(
129
+ `${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(
130
+ t,
131
+ "0"
132
+ )}`
133
+ );
134
+ }
135
+ negate() {
136
+ const t = this.toString();
137
+ return new Ne(
138
+ t.startsWith("-") ? t.slice(1) : `-${t}`
139
+ );
140
+ }
141
+ add(t) {
142
+ const r = new Ne(t);
143
+ if (r.isInvalid)
144
+ return this;
145
+ if (this.isInvalid)
146
+ return r;
147
+ const i = Math.max(this.decimalLen, r.decimalLen), s = this.alignDecimal(i), u = r.alignDecimal(i), n = (s + u).toString(), { negativeStr: m, trimStr: l } = pe(n), h = `${m}${l.padStart(
148
+ i + 1,
149
+ "0"
150
+ )}`;
151
+ return new Ne(
152
+ `${h.slice(0, -i)}.${h.slice(
153
+ -i
154
+ )}`
155
+ );
156
+ }
157
+ equals(t) {
158
+ return this.toString() === (t == null ? void 0 : t.toString());
159
+ }
160
+ less(t) {
161
+ return this.isInvalid || t.isInvalid ? !1 : this.add(t.negate().toString()).toNumber() < 0;
162
+ }
163
+ toNumber() {
164
+ return this.isNaN ? NaN : Number(this.toString());
165
+ }
166
+ toString(t = { safe: !0 }) {
167
+ const { safe: r, precision: i } = t, s = r ? this.isInvalid ? "" : pe(
168
+ `${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`
169
+ ).fullStr : this.origin;
170
+ return typeof i == "number" ? Re(s, i) : s;
171
+ }
172
+ }
173
+ class ie {
174
+ constructor(t) {
175
+ z(this, "isEmpty");
176
+ z(this, "isNaN");
177
+ z(this, "origin", "");
178
+ z(this, "number");
179
+ this.origin = String(t), this.number = Number(t), !t && t !== 0 || !this.origin.trim() ? this.isEmpty = !0 : this.isNaN = Number.isNaN(this.number);
180
+ }
181
+ get isInvalid() {
182
+ return this.isEmpty || this.isNaN;
183
+ }
184
+ negate() {
185
+ return new ie(-this.toNumber());
186
+ }
187
+ equals(t) {
188
+ return this.toNumber() === (t == null ? void 0 : t.toNumber());
189
+ }
190
+ less(t) {
191
+ return this.isInvalid || t.isInvalid ? !1 : this.add(t.negate().toString()).toNumber() < 0;
192
+ }
193
+ add(t) {
194
+ const r = new ie(t);
195
+ if (r.isInvalid)
196
+ return this;
197
+ if (this.isInvalid)
198
+ return r;
199
+ const i = this.number + r.number;
200
+ if (i > Number.MAX_SAFE_INTEGER)
201
+ return new ie(Number.MAX_SAFE_INTEGER);
202
+ if (i < Number.MIN_SAFE_INTEGER)
203
+ return new ie(Number.MIN_SAFE_INTEGER);
204
+ const s = Math.max(
205
+ Ce(this.number),
206
+ Ce(r.number)
207
+ );
208
+ return new ie(i.toFixed(s));
209
+ }
210
+ toNumber() {
211
+ return this.number;
212
+ }
213
+ toString(t = { safe: !0 }) {
214
+ const { safe: r, precision: i } = t, s = r ? this.isInvalid ? "" : He(this.number) : this.origin;
215
+ return typeof i == "number" ? Re(s, i) : s;
216
+ }
217
+ }
218
+ function re(e) {
219
+ return Ee() ? new Ne(e) : new ie(e);
220
+ }
221
+ function Re(e, t, r = !1) {
222
+ if (e === "")
223
+ return "";
224
+ const i = ".", { negativeStr: s, integerStr: u, decimalStr: n } = pe(e), m = `${i}${n}`, l = `${s}${u}`;
225
+ if (t >= 0) {
226
+ const h = Number(n[t]);
227
+ if (h >= 5 && !r) {
228
+ const g = re(e).add(
229
+ `${s}0.${"0".repeat(t)}${10 - h}`
230
+ );
231
+ return Re(g.toString(), t, r);
232
+ }
233
+ return t === 0 ? l : `${l}${i}${n.padEnd(t, "0").slice(0, t)}`;
234
+ }
235
+ return `${l}${m === ".0" ? "" : m}`;
236
+ }
237
+ function St({
238
+ inputElement: e,
239
+ inputValue: t
240
+ }) {
241
+ const r = ee(null);
242
+ return ze(() => {
243
+ try {
244
+ const i = r.current;
245
+ if (e && t && oe(i)) {
246
+ const s = Math.max(0, t.length - i);
247
+ e.setSelectionRange(s, s);
248
+ }
249
+ } catch (i) {
250
+ console.warn("Failed to reset input selection range position", i);
251
+ }
252
+ }, [t]), (i) => {
253
+ const { selectionEnd: s, value: u } = i.target;
254
+ oe(s) && (r.current = u.length - s);
255
+ };
256
+ }
257
+ const vt = 200, bt = 1e3, yt = {
258
+ max: 1 / 0,
259
+ min: -1 / 0,
260
+ step: 1,
261
+ mode: "embed",
262
+ parser: (e) => (e == null ? void 0 : e.replace(/[^\w.-]+/g, "")) || ""
263
+ };
264
+ function It(e, t) {
265
+ var Pe;
266
+ const {
267
+ getPrefixCls: r,
268
+ size: i,
269
+ componentConfig: s,
270
+ rtl: u
271
+ } = de(fe), n = Le(
272
+ e,
273
+ yt,
274
+ s == null ? void 0 : s.InputNumber
275
+ ), {
276
+ className: m,
277
+ style: l,
278
+ defaultValue: h,
279
+ disabled: g,
280
+ error: $,
281
+ readOnly: v,
282
+ strictMode: E,
283
+ placeholder: P,
284
+ hideControl: R,
285
+ suffix: V,
286
+ prefix: T,
287
+ icons: x,
288
+ mode: y,
289
+ size: p,
290
+ step: b,
291
+ precision: H,
292
+ min: I,
293
+ max: U,
294
+ parser: j,
295
+ formatter: O,
296
+ onBlur: M,
297
+ onFocus: K,
298
+ onChange: W,
299
+ onKeyDown: B,
300
+ ...me
301
+ } = n, C = r("input-number"), a = p || i, L = (() => {
302
+ if (oe(H)) {
303
+ const o = `${b}`.split(".")[1], S = o && o.length || 0;
304
+ return Math.max(S, H);
305
+ }
306
+ return null;
307
+ })(), [q, X] = le(() => re(
308
+ "value" in n ? n.value : "defaultValue" in n ? h : void 0
309
+ )), [D, te] = le(""), [ae, Y] = le(!1), [J, _] = le(!1), f = ee(null), c = ee(null), w = ee(!1), d = he(() => "value" in n ? re(n.value) : q, [n.value, q]), [G, ne] = he(() => [re(U), re(I)], [U, I]);
310
+ Ae(t, () => c.current, []);
311
+ const xe = (o, S) => {
312
+ if (X(o), !o.equals(d) && W) {
313
+ const A = o.toString({
314
+ safe: !0,
315
+ precision: L
316
+ });
317
+ W(
318
+ o.isEmpty ? void 0 : E ? A : o.isNaN ? NaN : Number(A),
319
+ S
320
+ );
321
+ }
322
+ }, Se = () => {
323
+ f.current && clearTimeout(f.current), f.current = null;
324
+ }, ge = nt(
325
+ (o) => {
326
+ let S = o;
327
+ return S.less(ne) ? S = ne : G.less(S) && (S = G), S;
328
+ },
329
+ [ne, G]
330
+ );
331
+ we(() => () => Se(), []), we(() => {
332
+ w.current = !1;
333
+ }, [n.value]), we(() => {
334
+ const o = d.less(ne) || G.less(d);
335
+ o && w.current && xe(ge(d), "outOfRange"), Y(o);
336
+ }, [ne, G, d, ge]);
337
+ const $e = (o, S, A = !1) => {
338
+ if (o.persist(), o.preventDefault(), _(!1), g || v)
339
+ return;
340
+ const qe = d.isInvalid ? re(I === -1 / 0 || I <= 0 && U >= 0 ? 0 : I) : d.add(S === "plus" ? b : -b);
341
+ if (xe(
342
+ ge(qe),
343
+ S === "plus" ? "increase" : "decrease"
344
+ ), c.current && c.current.focus(), A) {
345
+ const Ye = f.current === null;
346
+ f.current = setTimeout(
347
+ () => o.target.dispatchEvent(o.nativeEvent),
348
+ Ye ? bt : vt
349
+ );
350
+ }
351
+ }, Ve = he(() => {
352
+ let o;
353
+ return J ? o = j ? `${j(D)}` : D : oe(L) ? o = d.toString({ safe: !0, precision: L }) : d.isInvalid ? o = "" : o = d.toString(), O ? O(o, { userTyping: J, input: D }) : o;
354
+ }, [d, D, J, L, j, O]), Ge = St({
355
+ inputElement: (Pe = c.current) == null ? void 0 : Pe.dom,
356
+ inputValue: Ve
357
+ }), je = {
358
+ onChange: (o, S) => {
359
+ _(!0), o = o.trim().replace(/。/g, ".");
360
+ const A = j ? j(o) : o;
361
+ (oe(+A) || A === "-" || !A || A === ".") && (te(o), xe(ge(re(A)), "manual"), Ge(S));
362
+ },
363
+ onKeyDown: (o) => {
364
+ const S = o.key;
365
+ S === Nt.key ? (o.stopPropagation(), $e(o, "minus")) : S === xt.key && (o.stopPropagation(), $e(o, "plus")), Se(), B == null || B(o);
366
+ },
367
+ onFocus: (o) => {
368
+ var S, A;
369
+ w.current = !0, te((A = (S = c.current) == null ? void 0 : S.dom) == null ? void 0 : A.value), K == null || K(o);
370
+ },
371
+ onBlur: (o) => {
372
+ xe(ge(d), "outOfRange"), _(!1), M == null || M(o);
373
+ }
374
+ }, Ke = (o) => v ? {} : {
375
+ onMouseDown: (S) => $e(S, o, !0)
376
+ }, Me = !R && y === "button", Xe = !R && !v && y === "embed", ve = (o, S) => {
377
+ const A = !g && (d.isInvalid || (o === "plus" ? G.isInvalid || d.less(G) : ne.isInvalid || ne.less(d)));
378
+ return /* @__PURE__ */ N(
379
+ "div",
380
+ {
381
+ className: F(`${C}-step-button`, {
382
+ [`${C}-step-button-disabled`]: !A
383
+ }),
384
+ onMouseLeave: Se,
385
+ onMouseUp: Se,
386
+ ...A ? Ke(o) : {},
387
+ children: S
388
+ }
389
+ );
390
+ };
391
+ return /* @__PURE__ */ N(
392
+ k,
393
+ {
394
+ _ignorePropsFromGlobal: !0,
395
+ role: "spinbutton",
396
+ "aria-valuemax": U,
397
+ "aria-valuemin": I,
398
+ "aria-valuenow": d.isEmpty ? void 0 : d.toNumber(),
399
+ ...Ie(me, ["allowClear"]),
400
+ ...je,
401
+ style: l,
402
+ className: F(
403
+ C,
404
+ `${C}-mode-${y}`,
405
+ `${C}-size-${a}`,
406
+ {
407
+ [`${C}-rtl`]: u,
408
+ [`${C}-readonly`]: v,
409
+ [`${C}-illegal-value`]: !d.isEmpty && ae
410
+ },
411
+ m
412
+ ),
413
+ ref: c,
414
+ size: a,
415
+ error: $,
416
+ disabled: g,
417
+ readOnly: v,
418
+ value: Ve,
419
+ placeholder: P,
420
+ prefix: T && /* @__PURE__ */ N("div", { className: `${C}-prefix`, children: T }),
421
+ suffix: /* @__PURE__ */ se(Ze, { children: [
422
+ Xe && /* @__PURE__ */ se("div", { className: `${C}-step-layer`, children: [
423
+ ve(
424
+ "plus",
425
+ x && x.up ? x.up : /* @__PURE__ */ N(ut, {})
426
+ ),
427
+ ve(
428
+ "minus",
429
+ x && x.down ? x.down : /* @__PURE__ */ N(ot, {})
430
+ )
431
+ ] }),
432
+ V && /* @__PURE__ */ N("div", { className: `${C}-suffix`, children: V })
433
+ ] }),
434
+ addBefore: Me && ve(
435
+ "minus",
436
+ x && x.minus ? x.minus : /* @__PURE__ */ N(at, {})
437
+ ),
438
+ addAfter: Me && ve(
439
+ "plus",
440
+ x && x.plus ? x.plus : /* @__PURE__ */ N(lt, {})
441
+ )
442
+ }
443
+ );
444
+ }
445
+ const Oe = ce.forwardRef(
446
+ It
447
+ );
448
+ Oe.displayName = "InputNumber";
449
+ const We = ce.forwardRef(
450
+ (e, t) => {
451
+ const [r, i] = ye(!1, {
452
+ defaultValue: e.defaultVisibility,
453
+ value: e.visibility
454
+ }), { getPrefixCls: s } = de(fe), u = ft(), {
455
+ className: n,
456
+ visibilityToggle: m = !0,
457
+ onVisibilityChange: l,
458
+ ...h
459
+ } = e, g = s("input-password"), $ = F(
460
+ g,
461
+ {
462
+ [`${g}-visibility`]: m
463
+ },
464
+ n
465
+ ), v = (R) => {
466
+ "visibility" in e || i(R), l == null || l(R);
467
+ };
468
+ let E = e.suffix;
469
+ const P = () => {
470
+ v(!r);
471
+ };
472
+ if (m) {
473
+ const R = {
474
+ onClick: P,
475
+ // 预防focus丢失
476
+ onMouseDown: (V) => V.preventDefault(),
477
+ onMouseUp: (V) => V.preventDefault(),
478
+ ...u({
479
+ onPressEnter: P
480
+ })
481
+ };
482
+ e.suffix ? E = /* @__PURE__ */ N("span", { ...R, children: e.suffix }) : E = /* @__PURE__ */ N(
483
+ r ? ct : dt,
484
+ {
485
+ ...R,
486
+ focusable: void 0,
487
+ "aria-hidden": void 0,
488
+ // tabIndex: 0,
489
+ className: `${g}-visibility-icon`
490
+ }
491
+ );
492
+ }
493
+ return /* @__PURE__ */ N(
494
+ k,
495
+ {
496
+ ...Ie(h, ["visibility", "defaultVisibility"]),
497
+ type: r ? "text" : "password",
498
+ className: $,
499
+ ref: t,
500
+ suffix: E
501
+ }
502
+ );
503
+ }
504
+ );
505
+ We.displayName = "Password";
506
+ const Be = ce.forwardRef(
507
+ (e, t) => {
508
+ const { getPrefixCls: r } = de(fe), {
509
+ className: i,
510
+ style: s,
511
+ placeholder: u,
512
+ disabled: n,
513
+ searchButton: m,
514
+ loading: l,
515
+ defaultValue: h,
516
+ addAfter: g,
517
+ suffix: $,
518
+ ...v
519
+ } = e, E = Z(e.maxLength) ? e.maxLength.length : e.maxLength, P = Z(e.maxLength) && e.maxLength.errorOnly ? void 0 : E, [R, V] = ye("", {
520
+ defaultValue: "defaultValue" in e ? ue(e.defaultValue, P) : void 0,
521
+ value: "value" in e ? ue(e.value, P) : void 0
522
+ }), T = r("input-search"), x = F(
523
+ T,
524
+ {
525
+ [`${T}-button`]: m
526
+ },
527
+ i
528
+ ), y = () => {
529
+ var p;
530
+ !n && ((p = e.onSearch) == null || p.call(e, R));
531
+ };
532
+ return /* @__PURE__ */ N(
533
+ k,
534
+ {
535
+ ...Ie(v, ["onSearch"]),
536
+ disabled: n,
537
+ className: x,
538
+ style: s,
539
+ ref: t,
540
+ placeholder: u,
541
+ addAfter: g !== void 0 ? g : m ? /* @__PURE__ */ N(
542
+ ht,
543
+ {
544
+ disabled: n,
545
+ size: v.size,
546
+ className: `${T}-btn`,
547
+ type: "primary",
548
+ onClick: y,
549
+ loading: l,
550
+ loadingFixedWidth: !0,
551
+ icon: m === !0 && !l && /* @__PURE__ */ N(De, {}),
552
+ ...e == null ? void 0 : e.searchButtonProps,
553
+ children: m !== !0 && m
554
+ }
555
+ ) : null,
556
+ suffix: $ !== void 0 ? $ : !m && (l ? /* @__PURE__ */ N(mt, {}) : /* @__PURE__ */ N(De, { onClick: y })),
557
+ onChange: (p, b) => {
558
+ var H;
559
+ V(p), (H = e.onChange) == null || H.call(e, p, b);
560
+ },
561
+ defaultValue: h,
562
+ onPressEnter: (p) => {
563
+ var b;
564
+ y(), (b = e.onPressEnter) == null || b.call(e, p);
565
+ }
566
+ }
567
+ );
568
+ }
569
+ );
570
+ Be.displayName = "Search";
571
+ const $t = [
572
+ "position: absolute",
573
+ "min-height: 0 !important",
574
+ "max-height: none",
575
+ "height:0",
576
+ "visibility: hidden",
577
+ "z-index: -100",
578
+ "top: 0",
579
+ "right: 0"
580
+ ].join(";"), wt = [
581
+ "border-width",
582
+ "box-sizing",
583
+ "font-family",
584
+ "font-weight",
585
+ "font-size",
586
+ "font-variant",
587
+ "letter-spacing",
588
+ "line-height",
589
+ "padding-top",
590
+ "padding-bottom",
591
+ "padding-left",
592
+ "padding-right",
593
+ "text-indent",
594
+ "text-rendering",
595
+ "text-transform",
596
+ "width"
597
+ ];
598
+ let Q;
599
+ function Et(e) {
600
+ Q || (Q = document.createElement("textarea"), document.body.appendChild(Q));
601
+ const t = window.getComputedStyle(e), r = wt.map((n) => `${n}:${t.getPropertyValue(n)}`).join(";");
602
+ Q.setAttribute("style", $t + r);
603
+ const i = parseFloat(t.getPropertyValue("padding-top")) + parseFloat(t.getPropertyValue("padding-bottom")), s = t.getPropertyValue("box-sizing"), u = parseFloat(t.getPropertyValue("border-top-width")) + parseFloat(t.getPropertyValue("border-bottom-width"));
604
+ return {
605
+ paddingSize: i,
606
+ boxSizing: s,
607
+ borderSize: u
608
+ };
609
+ }
610
+ function Ct(e, t) {
611
+ const r = () => {
612
+ let i, s;
613
+ return Z(e) && (i = e.minRows, s = e.maxRows), {
614
+ minRows: i,
615
+ maxRows: s
616
+ };
617
+ };
618
+ if (e) {
619
+ const { minRows: i, maxRows: s } = r(), u = t, { paddingSize: n, boxSizing: m, borderSize: l } = Et(u);
620
+ Q.value = u.value || u.placeholder || "";
621
+ let h = Q.scrollHeight + l, g, $, v;
622
+ if (i || s) {
623
+ Q.value = "";
624
+ const P = Q.scrollHeight - n;
625
+ oe(i) && (g = P * i, m === "border-box" && (g += n, g += l), h = Math.max(h, g)), oe(s) && ($ = P * s, m === "border-box" && ($ += n, $ += l), v = h > $ ? "auto" : "", $ = Math.min(h, $));
626
+ }
627
+ const E = {};
628
+ return E.height = h, g && (E.minHeight = g), $ && (E.maxHeight = $), v && (E.overflowY = v), E;
629
+ }
630
+ }
631
+ const At = (e, t) => {
632
+ const {
633
+ className: r,
634
+ style: i,
635
+ wrapperStyle: s,
636
+ placeholder: u,
637
+ disabled: n,
638
+ error: m,
639
+ maxLength: l,
640
+ showWordLimit: h,
641
+ allowClear: g,
642
+ onChange: $,
643
+ onClear: v,
644
+ onKeyDown: E,
645
+ onPressEnter: P,
646
+ status: R,
647
+ clearIcon: V,
648
+ ...T
649
+ } = e, x = Z(l) ? l.length : l, y = Z(l) ? l.errorOnly ? void 0 : l.length : l, p = ee(), [b, H] = le({}), [I, U] = ye("", {
650
+ defaultValue: "defaultValue" in e ? ue(e.defaultValue, y) : void 0,
651
+ value: "value" in e ? ue(e.value, y) : void 0
652
+ }), {
653
+ compositionValue: j,
654
+ compositionHandler: O,
655
+ valueChangeHandler: M,
656
+ keyDownHandler: K,
657
+ triggerValueChangeCallback: W
658
+ } = it({
659
+ value: I,
660
+ maxLength: y,
661
+ onChange: $,
662
+ onKeyDown: E,
663
+ onPressEnter: P,
664
+ beforeTriggerValueChangeCallback: (f) => {
665
+ !("value" in e) && (y === void 0 || f.length <= y) && U(f);
666
+ }
667
+ }), B = j || I || "", { getPrefixCls: me, rtl: C } = de(fe), a = me("textarea");
668
+ n && (b.resize = "none");
669
+ const L = () => {
670
+ if (p.current && p.current.focus) {
671
+ if (p.current.setSelectionRange) {
672
+ const f = p.current.textContent.length;
673
+ p.current.setSelectionRange(f, f);
674
+ }
675
+ p.current.focus();
676
+ }
677
+ }, q = () => {
678
+ const f = Ct(
679
+ e.autoSize,
680
+ p.current
681
+ );
682
+ f && H(f);
683
+ }, X = (f) => {
684
+ f.stopPropagation(), L(), W("", f), v == null || v();
685
+ };
686
+ ze(() => {
687
+ q();
688
+ }, [B]), Ae(
689
+ t,
690
+ () => ({
691
+ dom: p.current,
692
+ focus: () => {
693
+ L();
694
+ },
695
+ blur: () => {
696
+ var f, c;
697
+ (c = (f = p.current) == null ? void 0 : f.blur) == null || c.call(f);
698
+ },
699
+ getRootDOMNode: () => p.current
700
+ }),
701
+ []
702
+ );
703
+ const D = I ? I.length : 0, te = x && h || g, ae = he(() => !y && x ? D > x : !1, [D, x, y]), Y = R || (m || ae ? "error" : void 0), J = F(
704
+ a,
705
+ {
706
+ [`${a}-${Y}`]: Y,
707
+ // [`${prefixCls}-error`]: error || lengthError || status === 'error',
708
+ [`${a}-disabled`]: n,
709
+ [`${a}-rtl`]: C
710
+ },
711
+ r
712
+ ), _ = /* @__PURE__ */ N(
713
+ "textarea",
714
+ {
715
+ ...Ie(T, ["autoSize", "defaultValue"]),
716
+ maxLength: y,
717
+ ref: p,
718
+ style: { ...i, ...b },
719
+ className: J,
720
+ placeholder: u,
721
+ disabled: n,
722
+ value: B,
723
+ onChange: M,
724
+ onKeyDown: K,
725
+ onCompositionStart: O,
726
+ onCompositionUpdate: O,
727
+ onCompositionEnd: O
728
+ }
729
+ );
730
+ if (te) {
731
+ const f = !n && g && I, [c, w] = C ? [x, D] : [D, x];
732
+ return /* @__PURE__ */ se(
733
+ "div",
734
+ {
735
+ className: F(`${a}-wrapper`, {
736
+ [`${a}-clear-wrapper`]: g,
737
+ [`${a}-wrapper-rtl`]: C
738
+ }),
739
+ style: s,
740
+ children: [
741
+ _,
742
+ f ? V !== void 0 ? /* @__PURE__ */ N(
743
+ "span",
744
+ {
745
+ className: `${a}-clear-icon`,
746
+ onClick: X,
747
+ onMouseDown: (d) => {
748
+ d.preventDefault();
749
+ },
750
+ children: V
751
+ }
752
+ ) : /* @__PURE__ */ N(rt, { className: `${a}-clear-icon`, children: /* @__PURE__ */ N(
753
+ gt,
754
+ {
755
+ onClick: X,
756
+ onMouseDown: (d) => {
757
+ d.preventDefault();
758
+ }
759
+ }
760
+ ) }) : null,
761
+ x && h && /* @__PURE__ */ se(
762
+ "span",
763
+ {
764
+ className: F(`${a}-word-limit`, {
765
+ [`${a}-word-limit-error`]: ae
766
+ }),
767
+ children: [
768
+ c,
769
+ "/",
770
+ w
771
+ ]
772
+ }
773
+ )
774
+ ]
775
+ }
776
+ );
777
+ }
778
+ return _;
779
+ }, _e = ce.forwardRef(At);
780
+ _e.displayName = "TextArea";
781
+ const Rt = (e) => {
782
+ e.target.tagName !== "INPUT" && e.preventDefault();
783
+ }, be = (e, t, r = {}, i) => t ? /* @__PURE__ */ N("span", { style: r, className: e, onClick: i, children: t }) : null;
784
+ function ue(e, t) {
785
+ const r = e !== null && !tt(e) && !et(e) ? String(e) : e || "";
786
+ return t ? r.slice(0, t) : r;
787
+ }
788
+ function Vt(e, t) {
789
+ const {
790
+ getPrefixCls: r,
791
+ size: i,
792
+ componentConfig: s,
793
+ rtl: u
794
+ } = de(fe), n = Le(
795
+ e,
796
+ {},
797
+ s == null ? void 0 : s.Input
798
+ ), {
799
+ className: m,
800
+ style: l,
801
+ addBefore: h,
802
+ addAfter: g,
803
+ suffix: $,
804
+ prefix: v,
805
+ beforeStyle: E,
806
+ afterStyle: P,
807
+ height: R,
808
+ disabled: V,
809
+ maxLength: T,
810
+ showWordLimit: x,
811
+ allowClear: y,
812
+ autoWidth: p
813
+ } = n, b = p ? {
814
+ minWidth: 0,
815
+ maxWidth: "100%",
816
+ ...Z(p) ? p : {}
817
+ } : null, H = {
818
+ minWidth: b == null ? void 0 : b.minWidth,
819
+ maxWidth: b == null ? void 0 : b.maxWidth,
820
+ width: b && "auto",
821
+ ...l
822
+ }, I = Z(T) ? T.length : T, U = Z(T) && T.errorOnly ? void 0 : I, [j, O] = le(!1), M = ee(), K = ee(), W = ee(), [B, me] = ye("", {
823
+ defaultValue: "defaultValue" in n ? ue(n.defaultValue, U) : void 0,
824
+ value: "value" in n ? ue(n.value, U) : void 0
825
+ });
826
+ Ae(
827
+ t,
828
+ () => {
829
+ var c, w, d;
830
+ return {
831
+ focus: (c = M.current) == null ? void 0 : c.focus,
832
+ blur: (w = M.current) == null ? void 0 : w.blur,
833
+ dom: (d = M.current) == null ? void 0 : d.dom,
834
+ // 保持之前逻辑
835
+ getRootDOMNode: () => {
836
+ var G;
837
+ return K.current || ((G = M.current) == null ? void 0 : G.dom);
838
+ }
839
+ };
840
+ },
841
+ []
842
+ );
843
+ const C = (c, w) => {
844
+ var d;
845
+ "value" in n || me(c), (d = n.onChange) == null || d.call(n, c, w);
846
+ }, a = r("input"), L = n.size || i, q = "height" in n;
847
+ let X = $;
848
+ const D = B ? B.length : 0, te = he(() => !U && I ? D > I : !1, [D, I, U]);
849
+ if (I && x) {
850
+ const [c, w] = u ? [I, D] : [D, I];
851
+ X = /* @__PURE__ */ se(
852
+ "span",
853
+ {
854
+ className: F(`${a}-word-limit`, {
855
+ [`${a}-word-limit-error`]: te
856
+ }),
857
+ children: [
858
+ c,
859
+ "/",
860
+ w
861
+ ]
862
+ }
863
+ );
864
+ }
865
+ const ae = F(
866
+ `${a}-group-wrapper`,
867
+ `${a}-group-wrapper-${L}`,
868
+ {
869
+ [`${a}-custom-height`]: q,
870
+ [`${a}-has-suffix`]: X,
871
+ [`${a}-group-wrapper-disabled`]: V,
872
+ [`${a}-group-wrapper-rtl`]: u,
873
+ [`${a}-group-wrapper-autowidth`]: b
874
+ },
875
+ m
876
+ ), Y = n.status || (n.error || te ? "error" : void 0), J = h || g || X || v, _ = /* @__PURE__ */ N(
877
+ st,
878
+ {
879
+ ref: M,
880
+ ...n,
881
+ autoFitWidth: !!b,
882
+ style: H,
883
+ status: Y,
884
+ onFocus: (c) => {
885
+ var w;
886
+ O(!0), (w = n.onFocus) == null || w.call(n, c);
887
+ },
888
+ onBlur: (c) => {
889
+ var w;
890
+ O(!1), (w = n.onBlur) == null || w.call(n, c);
891
+ },
892
+ onChange: C,
893
+ prefixCls: a,
894
+ value: B,
895
+ hasParent: !!J || y,
896
+ size: L
897
+ }
898
+ ), f = F(`${a}-inner-wrapper`, {
899
+ [`${a}-inner-wrapper-${Y}`]: Y,
900
+ [`${a}-inner-wrapper-disabled`]: V,
901
+ [`${a}-inner-wrapper-focus`]: j,
902
+ [`${a}-inner-wrapper-has-prefix`]: v,
903
+ [`${a}-inner-wrapper-${L}`]: L,
904
+ [`${a}-clear-wrapper`]: y,
905
+ [`${a}-inner-wrapper-rtl`]: u
906
+ });
907
+ return J ? /* @__PURE__ */ N(
908
+ "div",
909
+ {
910
+ ref: K,
911
+ className: ae,
912
+ style: { ...H, ...q ? { height: R } : {} },
913
+ children: /* @__PURE__ */ se("span", { className: `${a}-group`, children: [
914
+ be(`${a}-group-addbefore`, h, E),
915
+ /* @__PURE__ */ se(
916
+ "span",
917
+ {
918
+ className: f,
919
+ ref: W,
920
+ onMouseDown: (c) => {
921
+ c.target.tagName !== "INPUT" && W.current && Te(W.current, c.target) && c.preventDefault();
922
+ },
923
+ onClick: (c) => {
924
+ W.current && Te(W.current, c.target) && M.current && M.current.focus();
925
+ },
926
+ children: [
927
+ be(`${a}-group-prefix`, v),
928
+ _,
929
+ be(`${a}-group-suffix`, X)
930
+ ]
931
+ }
932
+ ),
933
+ be(`${a}-group-addafter`, g, P)
934
+ ] })
935
+ }
936
+ ) : y ? /* @__PURE__ */ N(
937
+ "span",
938
+ {
939
+ ref: K,
940
+ className: F(m, f),
941
+ style: { ...H, ...q ? { height: R } : {} },
942
+ onMouseDown: Rt,
943
+ onClick: () => {
944
+ M.current && M.current.focus();
945
+ },
946
+ children: _
947
+ }
948
+ ) : _;
949
+ }
950
+ const k = ce.forwardRef(Vt);
951
+ k.displayName = "Input";
952
+ k.Search = Be;
953
+ k.TextArea = _e;
954
+ k.Password = We;
955
+ k.Number = k.InputNumber = Oe;
956
+ k.Tag = k.InputTag = pt;
957
+ k.Group = Fe;
958
+ export {
959
+ k as I,
960
+ Oe as a
961
+ };