@unicom-cloud/ui 0.8.61 → 0.8.63

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 (188) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +44 -40
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +4 -4
  5. package/Avatar.js +1 -1
  6. package/BackTop.js +7 -7
  7. package/Badge.js +2 -2
  8. package/Breadcrumb.js +22 -22
  9. package/Button.js +2 -2
  10. package/Calendar.js +106 -104
  11. package/Card.js +1 -1
  12. package/Carousel.js +34 -33
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +12 -12
  17. package/Comment.js +1 -1
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +16 -16
  20. package/DatePicker.js +1021 -1008
  21. package/Descriptions.js +10 -10
  22. package/Divider.js +1 -1
  23. package/Draggable.js +1 -1
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +9 -9
  26. package/Empty.js +2 -2
  27. package/Form.js +60 -54
  28. package/Grid.js +2 -2
  29. package/Icon.js +1 -1
  30. package/IconHover.js +1 -1
  31. package/Image.js +1 -1
  32. package/Input.js +1 -1
  33. package/InputNumber.js +6 -6
  34. package/InputTag.js +1 -1
  35. package/Layout.js +2 -2
  36. package/Link.js +14 -14
  37. package/List.js +3 -3
  38. package/Mentions.js +3 -3
  39. package/Menu.js +1 -1
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +9 -3
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +32 -32
  45. package/PageHeader.js +23 -22
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +7 -7
  49. package/Popover.js +1 -1
  50. package/Progress.js +14 -14
  51. package/Radio.js +2 -2
  52. package/Rate.js +43 -40
  53. package/ResizeBox.js +97 -96
  54. package/Result.js +15 -15
  55. package/Select.js +1 -1
  56. package/SelectView.js +295 -249
  57. package/Skeleton.js +1 -1
  58. package/Slider.js +25 -25
  59. package/Space.js +32 -32
  60. package/SpeechSynthesis.js +32 -29
  61. package/Spin.js +2 -2
  62. package/Statistic.js +1 -1
  63. package/Steps.js +11 -11
  64. package/Switch.js +3 -3
  65. package/Table.js +9 -9
  66. package/Tabs.js +1 -1
  67. package/Tag.js +68 -67
  68. package/TimePicker.js +17 -17
  69. package/Timeline.js +1 -1
  70. package/Tooltip.js +1 -1
  71. package/Transfer.js +47 -46
  72. package/Tree.js +2 -2
  73. package/TreeSelect.js +1 -1
  74. package/Trigger.js +3 -3
  75. package/Typography.js +1 -1
  76. package/Upload.js +2 -2
  77. package/VerificationCode.js +1 -1
  78. package/Version.js +1 -1
  79. package/Watermark.js +1 -1
  80. package/chunk/{DhBo0pPJ.js → B5gIo-hD.js} +119 -118
  81. package/chunk/{eK7lxdak.js → B9w_puFP.js} +8 -8
  82. package/chunk/{RMBPs_Ry.js → BEB_A9eY.js} +4 -3
  83. package/chunk/{CuOl4X0X.js → BLLKKgZJ.js} +1 -1
  84. package/chunk/{cZiP8FvM.js → BcwdVUDs.js} +1 -1
  85. package/chunk/{C1xMmQIZ.js → BmO1y0vr.js} +34 -34
  86. package/chunk/{DmUhn9ib.js → Bn2-vqTg.js} +54 -53
  87. package/chunk/{Kbr6FzOG.js → BnLshM9R.js} +210 -186
  88. package/chunk/{BJ_7JTqC.js → BoDdbbF_.js} +1 -1
  89. package/chunk/BsWphzcT.js +20 -0
  90. package/chunk/{Bdh4XVuf.js → C5S_amaH.js} +290 -281
  91. package/chunk/{YIlBPVAs.js → C6Zb_-OE.js} +1 -1
  92. package/chunk/{CbiWdbr_.js → CAxIyiy6.js} +35 -34
  93. package/chunk/CD7dGcUa.js +376 -0
  94. package/chunk/{BPZ-6HKJ.js → CLBavO5c.js} +24 -22
  95. package/chunk/{B2vORJQ8.js → CZ1wrD_H.js} +13 -13
  96. package/chunk/{DpfUGhi4.js → CfTcP6nF.js} +288 -283
  97. package/chunk/{BNHrEI0Y.js → CfZWOhnc.js} +52 -48
  98. package/chunk/{BjSHZA0m.js → CgDayZDE.js} +1 -1
  99. package/chunk/{BYhtrDV3.js → Co3idurS.js} +152 -148
  100. package/chunk/{BBVjSFnw.js → Cqyp4qni.js} +23 -19
  101. package/chunk/{Cbd50gx8.js → CvlD3aiv.js} +33 -33
  102. package/chunk/{IooeSKJJ.js → D3dcFbex.js} +19 -19
  103. package/chunk/{C5AQWbC4.js → DDDuw0Zi.js} +1 -1
  104. package/chunk/{gIbzjQ-X.js → DXZ8-ha7.js} +2 -2
  105. package/chunk/{C1D7T29r.js → DbLgopUR.js} +83 -76
  106. package/chunk/{BVLwPZis.js → DbPYtS7-.js} +31 -30
  107. package/chunk/{V6euPXVB.js → Dk6hL04k.js} +257 -251
  108. package/chunk/{BEDYCG-I.js → Dpzgtdt-.js} +18 -18
  109. package/chunk/{B16KHtX-.js → JpKOcIfl.js} +191 -185
  110. package/chunk/{D2HkyI6A.js → QFkhCtUr.js} +11 -11
  111. package/chunk/aqSmxUbY.js +116 -0
  112. package/chunk/{DSGRHf-1.js → rlfmXePI.js} +157 -156
  113. package/hooks/useMergeValue.js +1 -1
  114. package/icons.js +4 -6001
  115. package/index.js +439 -393
  116. package/locale/en-US.js +1 -1
  117. package/locale/tr-TR.js +1 -1
  118. package/locale/zh-CN.js +8 -0
  119. package/package.json +1 -1
  120. package/style.css +1 -1
  121. package/types/cascader/panel/Search.d.ts +1 -1
  122. package/types/color-picker/hooks/useColorPicker.d.ts +3 -8
  123. package/types/config-provider/interface.d.ts +1 -1
  124. package/types/date-picker/index.d.ts +7 -0
  125. package/types/form/interface.d.ts +1 -1
  126. package/types/index.d.ts +3 -3
  127. package/types/locale/interface.d.ts +1 -0
  128. package/types/locale/zh-CN.d.ts +14 -0
  129. package/types/message/index.d.ts +2 -2
  130. package/types/notification/index.d.ts +2 -2
  131. package/types/notification-base/index.d.ts +2 -2
  132. package/types/select/interface.d.ts +1 -0
  133. package/types/select-view/interface.d.ts +1 -0
  134. package/types/space/index.d.ts +2 -1
  135. package/types/tree/Context.d.ts +1 -0
  136. package/types/tree/Tree.d.ts +1 -1
  137. package/types/tree/index.d.ts +5 -4
  138. package/types/tree/interface.d.ts +1 -0
  139. package/types/utils/index.d.ts +1 -0
  140. package/types/utils/is.d.ts +2 -0
  141. package/types/utils/lodash.d.ts +14 -1
  142. package/types/verification-code/VerificationCode.d.ts +2 -1
  143. package/types/version/index.d.ts +1 -1
  144. package/utils/CSSTransition.js +1 -1
  145. package/utils/caseName.js +2 -18
  146. package/utils/contextHolder.js +1 -1
  147. package/utils/dayjs.js +50 -49
  148. package/utils/index.js +227 -185
  149. package/utils/is.js +125 -111
  150. package/utils/lodash.js +32 -6
  151. package/utils/reactDOM.js +1 -1
  152. package/chunk/-LZOUh53.js +0 -29
  153. package/chunk/-jdfq71f.js +0 -23
  154. package/chunk/B0GOLsj_.js +0 -58
  155. package/chunk/B7Zsp3gO.js +0 -29
  156. package/chunk/BDjXkzNj.js +0 -23
  157. package/chunk/BHn4xgbv.js +0 -209
  158. package/chunk/BLSiP_gg.js +0 -32
  159. package/chunk/BMJfSSLX.js +0 -23
  160. package/chunk/B_nfMl0e.js +0 -116
  161. package/chunk/BcS17Pzy.js +0 -66
  162. package/chunk/BdiEwtQO.js +0 -41
  163. package/chunk/Bpug_KxP.js +0 -34
  164. package/chunk/C1u_ckwU.js +0 -29
  165. package/chunk/C43Hv2Bl.js +0 -34
  166. package/chunk/C9vsih_D.js +0 -29
  167. package/chunk/CAfR2wLq.js +0 -41
  168. package/chunk/CAfecMDF.js +0 -46
  169. package/chunk/CKp4rZnD.js +0 -207
  170. package/chunk/CV2Aqv9q.js +0 -52
  171. package/chunk/CYdarMv9.js +0 -32
  172. package/chunk/C_S5Mdvd.js +0 -379
  173. package/chunk/CmB-TL7C.js +0 -46
  174. package/chunk/D-ER56Sf.js +0 -29
  175. package/chunk/D-aYnb6u.js +0 -41
  176. package/chunk/D3xQFJcO.js +0 -23
  177. package/chunk/DJcEys80.js +0 -29
  178. package/chunk/DLIm6rRJ.js +0 -29
  179. package/chunk/DOWEHtqM.js +0 -41
  180. package/chunk/DT37l12z.js +0 -40
  181. package/chunk/DW-B7npC.js +0 -23
  182. package/chunk/D_MTFBb0.js +0 -38
  183. package/chunk/Dx_5J4fO.js +0 -29
  184. package/chunk/Dy487FZ1.js +0 -118
  185. package/chunk/Uz-rNulO.js +0 -98
  186. package/chunk/cDZI_t6o.js +0 -52
  187. package/chunk/sScV-J56.js +0 -206
  188. package/chunk/wI2I1qb0.js +0 -23
package/Descriptions.js CHANGED
@@ -2,8 +2,8 @@ import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
2
  import z from "lodash/isArray";
3
3
  import T from "lodash/isNumber";
4
4
  import V from "lodash/isPlainObject";
5
- import { useContext as q, useState as B, useRef as G, useEffect as J, Fragment as S } from "react";
6
- import { d as K } from "./chunk/Bdh4XVuf.js";
5
+ import S, { useContext as q, useState as B, useRef as G, useEffect as J } from "react";
6
+ import { d as K } from "./chunk/C5S_amaH.js";
7
7
  import { useMergeProps as Q } from "./hooks/useMergeProps.js";
8
8
  import { y as U } from "./chunk/BzPkh4Zv.js";
9
9
  import x, { responsiveArray as P } from "./utils/responsiveObserve.js";
@@ -67,7 +67,7 @@ function X(f) {
67
67
  t < l && (s[s.length - 1].span = s[s.length - 1].span + l - t);
68
68
  }
69
69
  function E(s, t) {
70
- return /* @__PURE__ */ c(S, { children: [
70
+ return /* @__PURE__ */ c(S.Fragment, { children: [
71
71
  /* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, i) => {
72
72
  const r = e.span > 1 ? { colSpan: e.span } : {};
73
73
  return /* @__PURE__ */ c(
@@ -102,7 +102,7 @@ function X(f) {
102
102
  function F(s, t) {
103
103
  return /* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, i) => {
104
104
  const r = e.span > 1 ? { colSpan: e.span * 2 - 1 } : {};
105
- return /* @__PURE__ */ c(S, { children: [
105
+ return /* @__PURE__ */ c(S.Fragment, { children: [
106
106
  /* @__PURE__ */ c("td", { className: `${n}-item-label`, style: y, children: [
107
107
  e.label,
108
108
  d
@@ -119,7 +119,7 @@ function X(f) {
119
119
  ] }, e.key || i);
120
120
  }) }, t);
121
121
  }
122
- function H(s, t) {
122
+ function R(s, t) {
123
123
  return /* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, i) => {
124
124
  const r = e.span > 1 ? { colSpan: e.span } : {};
125
125
  return /* @__PURE__ */ c(
@@ -153,10 +153,10 @@ function X(f) {
153
153
  );
154
154
  }) }, t);
155
155
  }
156
- function M(s, t) {
157
- return u === "inline-vertical" || u === "inline-horizontal" ? H(s, t) : u === "vertical" ? E(s, t) : F(s, t);
156
+ function H(s, t) {
157
+ return u === "inline-vertical" || u === "inline-horizontal" ? R(s, t) : u === "vertical" ? E(s, t) : F(s, t);
158
158
  }
159
- const R = U(
159
+ const M = U(
160
160
  n,
161
161
  {
162
162
  [`${n}-border`]: L,
@@ -167,9 +167,9 @@ function X(f) {
167
167
  },
168
168
  D
169
169
  );
170
- return /* @__PURE__ */ c("div", { className: R, style: w, children: [
170
+ return /* @__PURE__ */ c("div", { className: M, style: w, children: [
171
171
  v && /* @__PURE__ */ a("div", { className: `${n}-title`, children: v }),
172
- /* @__PURE__ */ a("div", { className: `${n}-body`, children: /* @__PURE__ */ a("table", { className: `${n}-table`, cellPadding: 0, cellSpacing: 0, children: /* @__PURE__ */ a("tbody", { children: o.map((s, t) => M(s, t)) }) }) })
172
+ /* @__PURE__ */ a("div", { className: `${n}-body`, children: /* @__PURE__ */ a("table", { className: `${n}-table`, cellPadding: 0, cellSpacing: 0, children: /* @__PURE__ */ a("tbody", { children: o.map((s, t) => H(s, t)) }) }) })
173
173
  ] });
174
174
  }
175
175
  X.displayName = "Descriptions";
package/Divider.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { forwardRef as x, useContext as $ } from "react";
3
- import { d as u } from "./chunk/Bdh4XVuf.js";
3
+ import { d as u } from "./chunk/C5S_amaH.js";
4
4
  import { useMergeProps as h } from "./hooks/useMergeProps.js";
5
5
  import { y as v } from "./chunk/BzPkh4Zv.js";
6
6
  const y = {
package/Draggable.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as I } from "react/jsx-runtime";
2
2
  import S, { useRef as P, useState as u, useEffect as $, useContext as O } from "react";
3
- import { d as T } from "./chunk/Bdh4XVuf.js";
3
+ import { d as T } from "./chunk/C5S_amaH.js";
4
4
  import { y as w } from "./chunk/BzPkh4Zv.js";
5
5
  function N(m) {
6
6
  const {
package/Drawer.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as r } from "./chunk/B2vORJQ8.js";
1
+ import { D as r } from "./chunk/CZ1wrD_H.js";
2
2
  export {
3
3
  r as default
4
4
  };
package/Dropdown.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as s, jsxs as J } from "react/jsx-runtime";
2
2
  import $ from "lodash/get";
3
3
  import l, { forwardRef as K, useContext as j, useRef as A } from "react";
4
- import { d as U } from "./chunk/Bdh4XVuf.js";
4
+ import { d as U } from "./chunk/C5S_amaH.js";
5
5
  import { useMergeProps as z } from "./hooks/useMergeProps.js";
6
6
  import { useMergeValue as S } from "./hooks/useMergeValue.js";
7
7
  import W, { EventsByTriggerNeed as X } from "./Trigger.js";
@@ -10,7 +10,7 @@ import { supportRef as Y } from "./utils/is.js";
10
10
  import Z from "./utils/omit.js";
11
11
  import ee, { pickDataAttributes as F } from "./utils/pick.js";
12
12
  import { findDOMNode as oe } from "./utils/reactDOM.js";
13
- import { I as G } from "./chunk/D-aYnb6u.js";
13
+ import G from "@unicom-cloud/icons/IconUiMore";
14
14
  import N from "./Button.js";
15
15
  const te = {
16
16
  position: "br",
@@ -139,21 +139,21 @@ function re(D, O) {
139
139
  inDropdown: !0,
140
140
  selectable: !1,
141
141
  onClickMenuItem: (...y) => {
142
- var v;
142
+ var I;
143
143
  let P = null;
144
- const _ = R();
145
- _.props.onClickMenuItem && (P = _.props.onClickMenuItem(
144
+ const v = R();
145
+ v.props.onClickMenuItem && (P = v.props.onClickMenuItem(
146
146
  ...y
147
147
  ));
148
148
  const d = f.current && f.current.getRootElement();
149
- (v = d == null ? void 0 : d.focus) == null || v.call(d), P instanceof Promise ? P.finally(
149
+ (I = d == null ? void 0 : d.focus) == null || I.call(d), P instanceof Promise ? P.finally(
150
150
  () => E(!1)
151
151
  ) : P !== !1 && E(!1);
152
152
  }
153
153
  });
154
154
  }
155
155
  return e;
156
- }, I = A();
156
+ }, _ = A();
157
157
  return /* @__PURE__ */ s(
158
158
  W,
159
159
  {
@@ -174,7 +174,7 @@ function re(D, O) {
174
174
  ...ee(p, X),
175
175
  ...F(p),
176
176
  ...Z(r, ["onVisibleChange"]),
177
- getTargetDOMNode: () => oe(I.current),
177
+ getTargetDOMNode: () => oe(_.current),
178
178
  onVisibleChange: q,
179
179
  children: l.isValidElement(n) ? l.cloneElement(n, {
180
180
  ...typeof c == "boolean" ? { disabled: c } : {},
@@ -186,7 +186,7 @@ function re(D, O) {
186
186
  n.props.className
187
187
  ),
188
188
  ref: Y(n) ? (e) => {
189
- I.current = e;
189
+ _.current = e;
190
190
  } : void 0
191
191
  }) : n
192
192
  }
package/Empty.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
- import "./chunk/BHn4xgbv.js";
2
+ import "@unicom-cloud/icons/IconUiEmpty";
3
3
  import "react";
4
- import { E as e } from "./chunk/Bdh4XVuf.js";
4
+ import { E as e } from "./chunk/C5S_amaH.js";
5
5
  import "./hooks/useMergeProps.js";
6
6
  import "./chunk/BzPkh4Zv.js";
7
7
  export {
package/Form.js CHANGED
@@ -6,7 +6,7 @@ import { p as Ke } from "./chunk/CANaGbGR.js";
6
6
  import M from "lodash/isPlainObject";
7
7
  import Me from "lodash/merge";
8
8
  import H, { createContext as ue, useRef as L, forwardRef as Ve, useContext as O, useEffect as ie, useImperativeHandle as et, Component as tt, isValidElement as fe, useState as ce, useMemo as we, createElement as Ee, cloneElement as Te, useCallback as ee } from "react";
9
- import { d as xe, a as rt } from "./chunk/Bdh4XVuf.js";
9
+ import { d as xe, a as rt } from "./chunk/C5S_amaH.js";
10
10
  import { useCreate as st } from "./hooks/useCreate.js";
11
11
  import { useMergeProps as it } from "./hooks/useMergeProps.js";
12
12
  import { y as G } from "./chunk/BzPkh4Zv.js";
@@ -19,21 +19,25 @@ import j from "lodash/isFunction";
19
19
  import nt from "lodash/omit";
20
20
  import De from "lodash/setWith";
21
21
  import { isExist as $e } from "./utils/is.js";
22
- import { P as lt } from "./chunk/C1xMmQIZ.js";
22
+ import { P as lt } from "./chunk/BmO1y0vr.js";
23
23
  import Ue from "lodash/cloneDeepWith";
24
+ import ot from "lodash/flatten";
24
25
  import Oe from "lodash/set";
25
- import { b as ot, c as at, a as ct, e as ut } from "./chunk/BHn4xgbv.js";
26
- import dt from "lodash/isBoolean";
26
+ import at from "@unicom-cloud/icons/IconUiCheckCircleFill";
27
+ import ct from "@unicom-cloud/icons/IconUiCloseCircleFill";
28
+ import ut from "@unicom-cloud/icons/IconUiExclamationCircleFill";
29
+ import dt from "@unicom-cloud/icons/IconUiLoading";
30
+ import ht from "lodash/isBoolean";
27
31
  import pe from "lodash/isEqualWith";
28
- import ht from "lodash/isNil";
32
+ import gt from "lodash/isNil";
29
33
  import re from "./utils/warning.js";
30
34
  import te from "lodash/isUndefined";
31
35
  import je from "./Grid.js";
32
- import { P as gt } from "./chunk/BPZ-6HKJ.js";
33
- import { I as mt } from "./chunk/C43Hv2Bl.js";
34
- import Ft from "./Tooltip.js";
35
- import { useForceUpdate as ft } from "./hooks/useForceUpdate.js";
36
- import pt from "lodash/isString";
36
+ import { P as mt } from "./chunk/CLBavO5c.js";
37
+ import Ft from "@unicom-cloud/icons/IconUiQuestionCircleFill";
38
+ import ft from "./Tooltip.js";
39
+ import { useForceUpdate as pt } from "./hooks/useForceUpdate.js";
40
+ import St from "lodash/isString";
37
41
  const se = ue({
38
42
  layout: "horizontal",
39
43
  labelCol: { span: 5, offset: 0 },
@@ -75,17 +79,17 @@ const se = ue({
75
79
  validating: "validating"
76
80
  };
77
81
  var U = /* @__PURE__ */ ((s) => (s.init = "init", s.error = "error", s.success = "success", s.submitting = "submitting", s))(U || {});
78
- class St extends Error {
82
+ class Vt extends Error {
79
83
  constructor(t) {
80
84
  super("form validate error, get errors by error.errors");
81
85
  u(this, "errors", {});
82
86
  this.errors = t;
83
87
  }
84
88
  }
85
- function Vt(s) {
89
+ function bt(s) {
86
90
  return Object.defineProperty(
87
91
  (...e) => typeof e[e.length - 1] == "function" ? s.apply(this, e) : new Promise((t, r) => (e[e.length] = (i, l) => {
88
- if (i) return r(new St(i));
92
+ if (i) return r(new Vt(i));
89
93
  t(l);
90
94
  }, e.length++, s.apply(this, e))),
91
95
  "name",
@@ -98,7 +102,7 @@ function K(s) {
98
102
  return e;
99
103
  });
100
104
  }
101
- const bt = (s, e) => Ue(s, (t) => {
105
+ const vt = (s, e) => Ue(s, (t) => {
102
106
  if (j(t))
103
107
  return (r) => t(r, e);
104
108
  });
@@ -106,7 +110,9 @@ function N(s, e, t) {
106
110
  return Oe(s, e, K(t)), s;
107
111
  }
108
112
  function ke(s, e = "") {
109
- const t = /* @__PURE__ */ new Set(), r = (i, l = "") => i ? t.has(i) ? [] : (t.add(i), Object.keys(i).map((n) => (M(i[n]) || T(i[n])) && Object.keys(i[n]).length && !H.isValidElement(i[n]) ? r(i[n], `${l + n}.`) : l + n).flat()) : [];
113
+ const t = /* @__PURE__ */ new Set(), r = (i, l = "") => i ? t.has(i) ? [] : (t.add(i), ot(
114
+ Object.keys(i).map((n) => (M(i[n]) || T(i[n])) && Object.keys(i[n]).length && !H.isValidElement(i[n]) ? r(i[n], `${l + n}.`) : l + n)
115
+ )) : [];
110
116
  return r(s, e);
111
117
  }
112
118
  function ze(s) {
@@ -145,7 +151,7 @@ function ae(s, e) {
145
151
  return e.some((r) => Le(t, r));
146
152
  }
147
153
  const be = "_input";
148
- class vt {
154
+ class yt {
149
155
  constructor() {
150
156
  // 表示的 Form 的提交状态而非单个字段的提交状态。
151
157
  // 只有在触发表单 reset(原生 reset,而非当前的 resetFields) 时,才会回到 init 状态(目前没有支持 form.reset,所以没有这块逻辑)
@@ -343,7 +349,7 @@ class vt {
343
349
  const { onReset: l } = this.callbacks;
344
350
  l == null || l(i);
345
351
  });
346
- u(this, "validate", Vt(
352
+ u(this, "validate", bt(
347
353
  (e, t, r) => {
348
354
  const i = this.getRegisteredFields(!0, {
349
355
  containFormList: !0
@@ -481,8 +487,8 @@ class vt {
481
487
  });
482
488
  }
483
489
  }
484
- function yt() {
485
- const s = new vt();
490
+ function Ct() {
491
+ const s = new yt();
486
492
  return {
487
493
  getFieldsValue: s.getFieldsValue,
488
494
  getFieldValue: s.getFieldValue,
@@ -526,13 +532,13 @@ function yt() {
526
532
  }
527
533
  function Ae(s) {
528
534
  const e = L(s);
529
- return e.current || (s ? e.current = s : e.current = yt()), [e.current];
535
+ return e.current || (s ? e.current = s : e.current = Ct()), [e.current];
530
536
  }
531
537
  function Fe(s, e) {
532
538
  const t = e.replace(/[[.]/g, "_").replace(/\]/g, "");
533
539
  return s ? `${s}-${t}` : `${t}`;
534
540
  }
535
- const Ct = {
541
+ const It = {
536
542
  layout: "horizontal",
537
543
  labelCol: { span: 5, offset: 0 },
538
544
  labelAlign: "right",
@@ -540,13 +546,13 @@ const Ct = {
540
546
  requiredSymbol: !0,
541
547
  wrapper: "form",
542
548
  validateTrigger: "onChange"
543
- }, It = (s, e) => {
549
+ }, wt = (s, e) => {
544
550
  var X, B;
545
551
  const t = O(xe), r = O(qe), i = L(null), [l] = Ae(
546
552
  s.form
547
553
  ), n = it(
548
554
  s,
549
- Ct,
555
+ It,
550
556
  (X = t.componentConfig) == null ? void 0 : X.Form
551
557
  ), {
552
558
  layout: o,
@@ -670,7 +676,7 @@ const Ct = {
670
676
  children: n.children
671
677
  }
672
678
  ) }) });
673
- }, Be = Ve(It);
679
+ }, Be = Ve(wt);
674
680
  Be.displayName = "Form";
675
681
  class z extends tt {
676
682
  constructor(t, r) {
@@ -701,7 +707,7 @@ class z extends tt {
701
707
  });
702
708
  // 切换 touch 状态
703
709
  u(this, "toggleTouched", (t) => {
704
- this.touched = dt(t) ? t : !this.touched, this.triggerStateCollect();
710
+ this.touched = ht(t) ? t : !this.touched, this.triggerStateCollect();
705
711
  });
706
712
  u(this, "setWarnings", (t) => {
707
713
  this.warnings = t, this.triggerStateCollect();
@@ -762,7 +768,7 @@ class z extends tt {
762
768
  case "setFieldValue":
763
769
  if (ae(l, i)) {
764
770
  this.toggleTouched(!0), r.data && "touched" in r.data && this.toggleTouched(r.data.touched), r.data && "warnings" in r.data && this.setWarnings(
765
- ht(r.data.warnings) ? [] : [].concat(r.data.warnings)
771
+ gt(r.data.warnings) ? [] : [].concat(r.data.warnings)
766
772
  ), r.data && "errors" in r.data ? this.setErrors(r.data.errors) : pe($(r.prev, l), $(r.current, l)) || this.setErrors(null), this.updateFormItem();
767
773
  return;
768
774
  }
@@ -899,10 +905,10 @@ class z extends tt {
899
905
  {
900
906
  className: `${o}-item-feedback ${o}-item-feedback-${n}`,
901
907
  children: [
902
- n === "warning" && /* @__PURE__ */ f(ot, {}),
908
+ n === "warning" && /* @__PURE__ */ f(ut, {}),
903
909
  n === "success" && /* @__PURE__ */ f(at, {}),
904
910
  n === "error" && /* @__PURE__ */ f(ct, {}),
905
- n === "validating" && /* @__PURE__ */ f(ut, {})
911
+ n === "validating" && /* @__PURE__ */ f(dt, {})
906
912
  ]
907
913
  }
908
914
  )
@@ -913,7 +919,7 @@ u(z, "defaultProps", {
913
919
  trigger: "onChange",
914
920
  triggerPropName: "value"
915
921
  }), u(z, "isFormControl", !0), u(z, "contextType", Se);
916
- function wt(s) {
922
+ function Et(s) {
917
923
  return /* @__PURE__ */ f(
918
924
  "svg",
919
925
  {
@@ -929,7 +935,7 @@ function wt(s) {
929
935
  }
930
936
  );
931
937
  }
932
- const Et = ({
938
+ const Tt = ({
933
939
  htmlFor: s,
934
940
  showColon: e,
935
941
  label: t,
@@ -939,11 +945,11 @@ const Et = ({
939
945
  prefix: n,
940
946
  tooltip: o
941
947
  }) => {
942
- const a = T(l) && l.some((m) => m && m.required), d = M(r) ? r.position : "end", c = (i || a) && !!r && /* @__PURE__ */ f("strong", { className: `${n}-form-item-symbol`, children: /* @__PURE__ */ f(wt, {}) }), h = () => {
948
+ const a = T(l) && l.some((m) => m && m.required), d = M(r) ? r.position : "end", c = (i || a) && !!r && /* @__PURE__ */ f("strong", { className: `${n}-form-item-symbol`, children: /* @__PURE__ */ f(Et, {}) }), h = () => {
943
949
  if (!o)
944
950
  return null;
945
951
  const m = `${n}-form-item-tooltip`;
946
- let F = {}, V = /* @__PURE__ */ f(mt, { className: m });
952
+ let F = {}, V = /* @__PURE__ */ f(Ft, { className: m });
947
953
  if (!M(o) || fe(o))
948
954
  F = {
949
955
  content: o
@@ -957,7 +963,7 @@ const Et = ({
957
963
  )
958
964
  }) : g);
959
965
  }
960
- return /* @__PURE__ */ f(Ft, { ...F, children: V });
966
+ return /* @__PURE__ */ f(ft, { ...F, children: V });
961
967
  };
962
968
  return t ? /* @__PURE__ */ J("label", { htmlFor: s && `${s}${be}`, children: [
963
969
  d !== "end" && c,
@@ -970,7 +976,7 @@ const Et = ({
970
976
  ] }),
971
977
  e ? e === !0 ? ":" : e : ""
972
978
  ] }) : null;
973
- }, Tt = je.Row, We = je.Col, $t = ({
979
+ }, $t = je.Row, We = je.Col, kt = ({
974
980
  prefixCls: s,
975
981
  help: e,
976
982
  errors: t,
@@ -987,7 +993,7 @@ const Et = ({
987
993
  });
988
994
  const n = !te(e) || !!l.length, o = n || !!i.length;
989
995
  return o && /* @__PURE__ */ f(
990
- gt,
996
+ mt,
991
997
  {
992
998
  in: o,
993
999
  appear: !0,
@@ -1008,7 +1014,7 @@ const Et = ({
1008
1014
  )
1009
1015
  }
1010
1016
  );
1011
- }, kt = (s, e) => {
1017
+ }, Rt = (s, e) => {
1012
1018
  var ve, ye, Ce;
1013
1019
  const { getPrefixCls: t, prefixCls: r } = O(xe), i = O(Se), l = O(Ge), [n, o] = ce(null), [a, d] = ce(null), c = O(se), h = c.prefixCls || t("form"), m = s.layout || c.layout, F = s.labelAlign || c.labelAlign, V = L(!1), g = (x, I = {}) => {
1014
1020
  if (V.current)
@@ -1027,7 +1033,7 @@ const Et = ({
1027
1033
  }), []);
1028
1034
  const v = {
1029
1035
  ...c,
1030
- validateMessages: c.validateMessages && bt(c.validateMessages, {
1036
+ validateMessages: c.validateMessages && vt(c.validateMessages, {
1031
1037
  label: s.label
1032
1038
  }),
1033
1039
  prefixCls: h,
@@ -1095,7 +1101,7 @@ const Et = ({
1095
1101
  ...c
1096
1102
  };
1097
1103
  return s.noStyle || (q.wrapperCol = void 0, q.labelCol = void 0), /* @__PURE__ */ f(se.Provider, { value: q, children: /* @__PURE__ */ f(P.Provider, { value: v, children: s.noStyle ? C() : /* @__PURE__ */ J(
1098
- Tt,
1104
+ $t,
1099
1105
  {
1100
1106
  ref: e,
1101
1107
  ..._e(le, [
@@ -1145,7 +1151,7 @@ const Et = ({
1145
1151
  }
1146
1152
  ),
1147
1153
  children: /* @__PURE__ */ f(
1148
- Et,
1154
+ Tt,
1149
1155
  {
1150
1156
  tooltip: s.tooltip,
1151
1157
  htmlFor: s.field && ((Ce = c == null ? void 0 : c.getFormElementId) == null ? void 0 : Ce.call(c, s.field)),
@@ -1169,7 +1175,7 @@ const Et = ({
1169
1175
  children: [
1170
1176
  C(),
1171
1177
  /* @__PURE__ */ f(
1172
- $t,
1178
+ kt,
1173
1179
  {
1174
1180
  prefixCls: h,
1175
1181
  help: s.help,
@@ -1184,7 +1190,7 @@ const Et = ({
1184
1190
  ]
1185
1191
  }
1186
1192
  ) }) });
1187
- }, de = Ve(kt);
1193
+ }, de = Ve(Rt);
1188
1194
  de.defaultProps = {
1189
1195
  trigger: "onChange",
1190
1196
  triggerPropName: "value"
@@ -1276,7 +1282,7 @@ const Pe = (s, e) => !te(s) && s >= 0 && s < e.length, He = (s) => {
1276
1282
  );
1277
1283
  };
1278
1284
  He.displayName = "FormList";
1279
- const Rt = (s, e) => {
1285
+ const Wt = (s, e) => {
1280
1286
  const t = L({}), r = ee((o, a) => (o && (t.current[o] = a), () => {
1281
1287
  delete t.current[o];
1282
1288
  }), []), i = ee(
@@ -1316,10 +1322,10 @@ const Rt = (s, e) => {
1316
1322
  children: s.children
1317
1323
  }
1318
1324
  );
1319
- }, Je = Ve(Rt);
1325
+ }, Je = Ve(Wt);
1320
1326
  Je.displayName = "FormProvider";
1321
- const Wt = () => {
1322
- const s = O(se), e = s.store, t = L(!1), r = ft(), i = ee(() => {
1327
+ const Pt = () => {
1328
+ const s = O(se), e = s.store, t = L(!1), r = pt(), i = ee(() => {
1323
1329
  var o, a, d;
1324
1330
  const { submitStatus: l } = ((d = (a = (o = e == null ? void 0 : e.getInnerMethods) == null ? void 0 : o.call(e, !0)) == null ? void 0 : a.innerGetStoreStatus) == null ? void 0 : d.call(a)) ?? {}, n = l === U.submitting;
1325
1331
  n !== t.current && (t.current = n, r());
@@ -1341,7 +1347,7 @@ const Wt = () => {
1341
1347
  disabled: s.disabled,
1342
1348
  isSubmitting: t.current
1343
1349
  };
1344
- }, Pt = (s, e) => {
1350
+ }, Nt = (s, e) => {
1345
1351
  const t = O(se), r = e || t.store, i = L(s);
1346
1352
  i.current = s;
1347
1353
  const l = ee(() => {
@@ -1364,10 +1370,10 @@ const Wt = () => {
1364
1370
  h == null || h();
1365
1371
  };
1366
1372
  }, []), n;
1367
- }, Nt = (s, e) => {
1373
+ }, Mt = (s, e) => {
1368
1374
  const t = O(se), r = e || t.store, [i, l] = ce(() => {
1369
1375
  const a = r == null ? void 0 : r.getFieldsValue([].concat(s));
1370
- return pt(s) ? $(a, s) : a;
1376
+ return St(s) ? $(a, s) : a;
1371
1377
  }), n = L(s);
1372
1378
  n.current = s;
1373
1379
  const o = L(JSON.stringify(i));
@@ -1396,9 +1402,9 @@ A.Item = de;
1396
1402
  A.List = He;
1397
1403
  A.Control = z;
1398
1404
  A.useForm = Ae;
1399
- A.useFormContext = Wt;
1400
- A.useWatch = Nt;
1401
- A.useFormState = Pt;
1405
+ A.useFormContext = Pt;
1406
+ A.useWatch = Mt;
1407
+ A.useFormState = Nt;
1402
1408
  export {
1403
1409
  z as FormControl,
1404
1410
  de as FormItem,
@@ -1406,7 +1412,7 @@ export {
1406
1412
  Je as FormProvider,
1407
1413
  A as default,
1408
1414
  Ae as useForm,
1409
- Wt as useFormContext,
1410
- Pt as useFormState,
1411
- Nt as useWatch
1415
+ Pt as useFormContext,
1416
+ Nt as useFormState,
1417
+ Mt as useWatch
1412
1418
  };
package/Grid.js CHANGED
@@ -1,8 +1,8 @@
1
- import { G as V, a as A, C as Y, R as Z } from "./chunk/cZiP8FvM.js";
1
+ import { G as V, a as A, C as Y, R as Z } from "./chunk/BcwdVUDs.js";
2
2
  import { jsx as M } from "react/jsx-runtime";
3
3
  import X from "lodash/get";
4
4
  import y, { useRef as ee, useState as q, useEffect as z, useMemo as b, forwardRef as H, useContext as h } from "react";
5
- import { d as J } from "./chunk/Bdh4XVuf.js";
5
+ import { d as J } from "./chunk/C5S_amaH.js";
6
6
  import { useMergeProps as K } from "./hooks/useMergeProps.js";
7
7
  import { y as L } from "./chunk/BzPkh4Zv.js";
8
8
  import te from "lodash/isPlainObject";
package/Icon.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import i from "react";
3
- import { b as g } from "./chunk/Bdh4XVuf.js";
3
+ import { b as g } from "./chunk/C5S_amaH.js";
4
4
  import { y as x } from "./chunk/BzPkh4Zv.js";
5
5
  import { isServerRendering as y } from "./utils/dom.js";
6
6
  const I = [];
package/IconHover.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { I as i } from "./chunk/Bdh4XVuf.js";
3
+ import { I as i } from "./chunk/C5S_amaH.js";
4
4
  import "./chunk/BzPkh4Zv.js";
5
5
  export {
6
6
  i as default
package/Image.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as a } from "./chunk/IooeSKJJ.js";
1
+ import { I as a } from "./chunk/D3dcFbex.js";
2
2
  export {
3
3
  a as default
4
4
  };
package/Input.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as e } from "./chunk/DmUhn9ib.js";
1
+ import { I as e } from "./chunk/Bn2-vqTg.js";
2
2
  export {
3
3
  e as default
4
4
  };
package/InputNumber.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import "react/jsx-runtime";
2
- import "./chunk/BDjXkzNj.js";
3
- import "./chunk/BMJfSSLX.js";
4
- import "./chunk/DW-B7npC.js";
5
- import "./chunk/D3xQFJcO.js";
2
+ import "@unicom-cloud/icons/IconUiDown";
3
+ import "@unicom-cloud/icons/IconUiMinus";
4
+ import "@unicom-cloud/icons/IconUiPlus";
5
+ import "@unicom-cloud/icons/IconUiUp";
6
6
  import "lodash/isNumber";
7
7
  import "react";
8
- import "./chunk/Bdh4XVuf.js";
8
+ import "./chunk/C5S_amaH.js";
9
9
  import "./hooks/useMergeProps.js";
10
- import { a as b } from "./chunk/DmUhn9ib.js";
10
+ import { a as b } from "./chunk/Bn2-vqTg.js";
11
11
  import "./chunk/BzPkh4Zv.js";
12
12
  import "./chunk/C2lIz2F9.js";
13
13
  import "./utils/omit.js";
package/InputTag.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as t } from "./chunk/C_S5Mdvd.js";
1
+ import { I as t } from "./chunk/CD7dGcUa.js";
2
2
  export {
3
3
  t as default
4
4
  };
package/Layout.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import g from "lodash/get";
3
3
  import S, { forwardRef as f, useContext as p, useState as w } from "react";
4
- import { d as u } from "./chunk/Bdh4XVuf.js";
4
+ import { d as u } from "./chunk/C5S_amaH.js";
5
5
  import { useMergeProps as M } from "./hooks/useMergeProps.js";
6
6
  import { y as d } from "./chunk/BzPkh4Zv.js";
7
- import { S as b } from "./chunk/BVLwPZis.js";
7
+ import { S as b } from "./chunk/DbPYtS7-.js";
8
8
  function j(o, s) {
9
9
  const { className: n, children: e, ...r } = o, { getPrefixCls: a } = p(u), t = a("layout-content"), c = d(t, n);
10
10
  return /* @__PURE__ */ l("main", { ref: s, ...r, className: c, children: e });