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