@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/Rate.js CHANGED
@@ -1,18 +1,21 @@
1
- import { jsx as a, jsxs as Y } from "react/jsx-runtime";
2
- import { I as Z, a as x, b as E, c as tt } from "./chunk/B_nfMl0e.js";
3
- import { o as et, d as rt } from "./chunk/DApXtulb.js";
4
- import g, { useContext as at, useState as v } from "react";
5
- import { d as ot } from "./chunk/Bdh4XVuf.js";
1
+ import { jsx as o, jsxs as Y } from "react/jsx-runtime";
2
+ import Z from "@unicom-cloud/icons/IconUiFaceFrownFill";
3
+ import E from "@unicom-cloud/icons/IconUiFaceMehFill";
4
+ import x from "@unicom-cloud/icons/IconUiFaceSmileFill";
5
+ import tt from "@unicom-cloud/icons/IconUiStarFill";
6
+ import { o as rt, d as et } from "./chunk/DApXtulb.js";
7
+ import g, { useContext as ot, useState as v } from "react";
8
+ import { d as at } from "./chunk/C5S_amaH.js";
6
9
  import { useMergeProps as st } from "./hooks/useMergeProps.js";
7
10
  import ct from "./Tooltip.js";
8
11
  import { y as U } from "./chunk/BzPkh4Zv.js";
9
12
  import lt from "./utils/omit.js";
10
13
  const it = {
11
- character: /* @__PURE__ */ a(Z, {}),
14
+ character: /* @__PURE__ */ o(tt, {}),
12
15
  count: 5
13
16
  };
14
17
  function nt(S, _) {
15
- const { getPrefixCls: j, componentConfig: m, rtl: z } = at(ot), F = st(
18
+ const { getPrefixCls: j, componentConfig: m, rtl: z } = ot(at), F = st(
16
19
  S,
17
20
  it,
18
21
  m == null ? void 0 : m.Rate
@@ -24,54 +27,54 @@ function nt(S, _) {
24
27
  count: I,
25
28
  value: N,
26
29
  tooltips: P,
27
- allowHalf: o,
30
+ allowHalf: a,
28
31
  allowClear: W,
29
- readonly: u,
30
- disabled: p,
31
- grading: b,
32
+ readonly: p,
33
+ disabled: u,
34
+ grading: C,
32
35
  onChange: c,
33
36
  onHoverChange: l,
34
37
  ...q
35
- } = F, [B, C] = v(T || N || 0), [d, M] = v(0), [h, w] = v(), r = j("rate"), G = U(
36
- r,
38
+ } = F, [B, M] = v(T || N || 0), [d, b] = v(0), [h, w] = v(), e = j("rate"), G = U(
39
+ e,
37
40
  {
38
- [`${r}-readonly`]: u,
39
- [`${r}-disabled`]: p,
40
- [`${r}-rtl`]: z
41
+ [`${e}-readonly`]: p,
42
+ [`${e}-disabled`]: u,
43
+ [`${e}-rtl`]: z
41
44
  },
42
45
  L
43
46
  ), n = "value" in F ? N : B, R = () => {
44
- d && (M(0), l == null || l(0));
47
+ d && (b(0), l == null || l(0));
45
48
  }, V = (t, s) => {
46
- const e = s && o ? t + 0.5 : t + 1;
47
- e !== d && (M(e), l == null || l(e));
49
+ const r = s && a ? t + 0.5 : t + 1;
50
+ r !== d && (b(r), l == null || l(r));
48
51
  }, A = (t, s) => {
49
- const e = s && o ? t + 0.5 : t + 1;
50
- w(!0), e !== n ? (C(e), c == null || c(e)) : W && (C(0), c == null || c(0), R());
52
+ const r = s && a ? t + 0.5 : t + 1;
53
+ w(!0), r !== n ? (M(r), c == null || c(r)) : W && (M(0), c == null || c(0), R());
51
54
  }, H = (t) => {
52
- const s = o ? et(+rt(n || 0, 0.5).toFixed(0), 0.5) : Math.round(n), e = d || s;
55
+ const s = a ? rt(+et(n || 0, 0.5).toFixed(0), 0.5) : Math.round(n), r = d || s;
53
56
  let i = typeof f == "function" ? f(t) : f;
54
- b && (e <= 2 ? i = /* @__PURE__ */ a(x, {}) : e <= 3 ? i = /* @__PURE__ */ a(E, {}) : i = /* @__PURE__ */ a(tt, {}), e <= t && (i = /* @__PURE__ */ a(E, {})));
55
- const J = U(`${r}-character`, {
56
- [`${r}-character-half`]: o && t + 0.5 === e,
57
- [`${r}-character-full`]: t + 1 <= e,
58
- [`${r}-character-scale`]: h && t + 1 < n
59
- }), K = u || p ? {} : {
57
+ C && (r <= 2 ? i = /* @__PURE__ */ o(Z, {}) : r <= 3 ? i = /* @__PURE__ */ o(E, {}) : i = /* @__PURE__ */ o(x, {}), r <= t && (i = /* @__PURE__ */ o(E, {})));
58
+ const J = U(`${e}-character`, {
59
+ [`${e}-character-half`]: a && t + 0.5 === r,
60
+ [`${e}-character-full`]: t + 1 <= r,
61
+ [`${e}-character-scale`]: h && t + 1 < n
62
+ }), K = p || u ? {} : {
60
63
  onMouseEnter: V.bind(this, t, !0),
61
64
  onClick: A.bind(this, t, !0)
62
- }, O = u || p ? {} : {
65
+ }, O = p || u ? {} : {
63
66
  onMouseEnter: V.bind(this, t, !1),
64
67
  onClick: A.bind(this, t, !1)
65
68
  }, y = P && P[t], Q = y ? ct : g.Fragment, X = y ? { content: y } : {};
66
69
  function $(k) {
67
70
  return {
68
71
  role: "radio",
69
- "aria-checked": t + (k ? 0.5 : 1) <= e,
72
+ "aria-checked": t + (k ? 0.5 : 1) <= r,
70
73
  "aria-setsize": I,
71
74
  "aria-posinset": t + (k ? 0.5 : 1)
72
75
  };
73
76
  }
74
- return /* @__PURE__ */ a(Q, { ...X, children: /* @__PURE__ */ Y(
77
+ return /* @__PURE__ */ o(Q, { ...X, children: /* @__PURE__ */ Y(
75
78
  "div",
76
79
  {
77
80
  className: J,
@@ -79,23 +82,23 @@ function nt(S, _) {
79
82
  onAnimationEnd: () => {
80
83
  h && t + 1 >= n - 1 && w(!1);
81
84
  },
82
- ...o ? {} : $(),
85
+ ...a ? {} : $(),
83
86
  children: [
84
- /* @__PURE__ */ a(
87
+ /* @__PURE__ */ o(
85
88
  "div",
86
89
  {
87
- className: `${r}-character-left`,
90
+ className: `${e}-character-left`,
88
91
  ...K,
89
- ...o ? $(!0) : {},
92
+ ...a ? $(!0) : {},
90
93
  children: i
91
94
  }
92
95
  ),
93
- /* @__PURE__ */ a(
96
+ /* @__PURE__ */ o(
94
97
  "div",
95
98
  {
96
- className: `${r}-character-right`,
99
+ className: `${e}-character-right`,
97
100
  ...O,
98
- ...o ? $() : {},
101
+ ...a ? $() : {},
99
102
  children: i
100
103
  }
101
104
  )
@@ -103,7 +106,7 @@ function nt(S, _) {
103
106
  }
104
107
  ) }, t);
105
108
  };
106
- return /* @__PURE__ */ a(
109
+ return /* @__PURE__ */ o(
107
110
  "div",
108
111
  {
109
112
  ref: _,
@@ -111,7 +114,7 @@ function nt(S, _) {
111
114
  style: D,
112
115
  className: G,
113
116
  onMouseLeave: R,
114
- children: /* @__PURE__ */ a("div", { className: `${r}-inner`, children: Array.apply(null, Array(b ? 5 : I)).map(
117
+ children: /* @__PURE__ */ o("div", { className: `${e}-inner`, children: Array.apply(null, Array(C ? 5 : I)).map(
115
118
  (t, s) => H(s)
116
119
  ) })
117
120
  }
package/ResizeBox.js CHANGED
@@ -1,17 +1,18 @@
1
- import { jsx as g, jsxs as ut } from "react/jsx-runtime";
1
+ import { jsx as m, jsxs as ft } from "react/jsx-runtime";
2
2
  import vt from "lodash/isNumber";
3
- import Wt, { useContext as ft, useRef as F, useEffect as lt, forwardRef as Ct, useState as ct, useImperativeHandle as zt } from "react";
4
- import { d as gt } from "./chunk/Bdh4XVuf.js";
3
+ import Wt, { useContext as ut, useRef as F, useEffect as lt, forwardRef as Ct, useState as ct, useImperativeHandle as zt } from "react";
4
+ import { d as mt } from "./chunk/C5S_amaH.js";
5
5
  import { useMergeProps as Bt } from "./hooks/useMergeProps.js";
6
- import { useMergeValue as It } from "./hooks/useMergeValue.js";
6
+ import { useMergeValue as Tt } from "./hooks/useMergeValue.js";
7
7
  import { y as P } from "./chunk/BzPkh4Zv.js";
8
8
  import { on as y, off as $ } from "./utils/dom.js";
9
9
  import Mt from "./utils/omit.js";
10
- import { I as Yt } from "./chunk/BLSiP_gg.js";
11
- import { I as Tt, a as bt } from "./chunk/B0GOLsj_.js";
12
- import { I as Ft } from "./chunk/CYdarMv9.js";
13
- import { I as kt } from "./chunk/CAfR2wLq.js";
14
- import { I as Ut } from "./chunk/DOWEHtqM.js";
10
+ import Yt from "@unicom-cloud/icons/IconUiCaretDown";
11
+ import It from "@unicom-cloud/icons/IconUiCaretLeft";
12
+ import bt from "@unicom-cloud/icons/IconUiCaretRight";
13
+ import Ft from "@unicom-cloud/icons/IconUiCaretUp";
14
+ import kt from "@unicom-cloud/icons/IconUiDragDot";
15
+ import Ut from "@unicom-cloud/icons/IconUiDragDotVertical";
15
16
  import wt from "lodash/isFunction";
16
17
  import "./utils/is.js";
17
18
  import st from "lodash/isPlainObject";
@@ -21,44 +22,44 @@ import St from "lodash/isUndefined";
21
22
  function Nt(r) {
22
23
  const {
23
24
  className: ot,
24
- direction: m,
25
+ direction: g,
25
26
  icon: q,
26
27
  onMouseDown: J,
27
28
  onResize: x,
28
29
  children: K,
29
30
  collapsible: z = {},
30
31
  resizable: X = !0,
31
- renderChildren: T,
32
+ renderChildren: I,
32
33
  ...Q
33
- } = r, { getPrefixCls: rt, rtl: M } = ft(gt), d = rt("resizebox-trigger"), D = m === "horizontal", N = M && !D, I = P(
34
+ } = r, { getPrefixCls: rt, rtl: M } = ut(mt), d = rt("resizebox-trigger"), D = g === "horizontal", N = M && !D, T = P(
34
35
  d,
35
36
  `${d}-${D ? "horizontal" : "vertical"}`,
36
37
  { [`${d}-not-resizable`]: !X },
37
38
  { [`${d}-rtl`]: M },
38
39
  ot
39
- ), l = F(), k = N ? [/* @__PURE__ */ g(Tt, {}, "prev"), /* @__PURE__ */ g(bt, {}, "next")] : [/* @__PURE__ */ g(bt, {}, "prev"), /* @__PURE__ */ g(Tt, {}, "next")], b = st(z.prev) ? {
40
+ ), l = F(), k = N ? [/* @__PURE__ */ m(bt, {}, "prev"), /* @__PURE__ */ m(It, {}, "next")] : [/* @__PURE__ */ m(It, {}, "prev"), /* @__PURE__ */ m(bt, {}, "next")], b = st(z.prev) ? {
40
41
  ...z.prev,
41
- icon: z.prev.icon || (D ? /* @__PURE__ */ g(Ft, {}) : k[0])
42
+ icon: z.prev.icon || (D ? /* @__PURE__ */ m(Ft, {}) : k[0])
42
43
  } : {}, E = st(z.next) ? {
43
44
  ...z.next,
44
- icon: z.next.icon || (D ? /* @__PURE__ */ g(Yt, {}) : k[1])
45
- } : {}, U = () => b.icon && !b.collapsed || E.collapsed ? /* @__PURE__ */ g(
45
+ icon: z.next.icon || (D ? /* @__PURE__ */ m(Yt, {}) : k[1])
46
+ } : {}, U = () => b.icon && !b.collapsed || E.collapsed ? /* @__PURE__ */ m(
46
47
  "span",
47
48
  {
48
49
  className: P(`${d}-icon`, P(`${d}-prev`)),
49
50
  onClick: b.onClick,
50
51
  children: b.icon
51
52
  }
52
- ) : /* @__PURE__ */ g("span", { className: P(`${d}-icon-empty`) }), tt = () => E.icon && !E.collapsed || b.collapsed ? /* @__PURE__ */ g(
53
+ ) : /* @__PURE__ */ m("span", { className: P(`${d}-icon-empty`) }), tt = () => E.icon && !E.collapsed || b.collapsed ? /* @__PURE__ */ m(
53
54
  "span",
54
55
  {
55
56
  className: P(`${d}-icon`, P(`${d}-next`)),
56
57
  onClick: E.onClick,
57
58
  children: E.icon
58
59
  }
59
- ) : /* @__PURE__ */ g("span", { className: P(`${d}-icon-empty`) }), w = () => X ? /* @__PURE__ */ g("span", { className: `${d}-icon`, children: q || (D ? /* @__PURE__ */ g(kt, {}) : /* @__PURE__ */ g(Ut, {})) }) : /* @__PURE__ */ g("span", { className: P(`${d}-icon-empty`) }), O = U(), u = w(), h = tt(), V = () => /* @__PURE__ */ ut("div", { className: `${d}-icon-wrapper`, children: [
60
+ ) : /* @__PURE__ */ m("span", { className: P(`${d}-icon-empty`) }), w = () => X ? /* @__PURE__ */ m("span", { className: `${d}-icon`, children: q || (D ? /* @__PURE__ */ m(kt, {}) : /* @__PURE__ */ m(Ut, {})) }) : /* @__PURE__ */ m("span", { className: P(`${d}-icon-empty`) }), O = U(), f = w(), h = tt(), V = () => /* @__PURE__ */ ft("div", { className: `${d}-icon-wrapper`, children: [
60
61
  O,
61
- u,
62
+ f,
62
63
  h
63
64
  ] });
64
65
  return X ? (lt(() => {
@@ -67,37 +68,37 @@ function Nt(r) {
67
68
  var H, _;
68
69
  l.current && ((H = i == null ? void 0 : i.unobserve) == null || H.call(i, l.current)), (_ = i == null ? void 0 : i.disconnect) == null || _.call(i), i = null;
69
70
  };
70
- }, [l.current]), /* @__PURE__ */ g(
71
+ }, [l.current]), /* @__PURE__ */ m(
71
72
  "div",
72
73
  {
73
74
  ref: l,
74
75
  ...Mt(Q, ["style"]),
75
- className: I,
76
+ className: T,
76
77
  onMouseDown: J,
77
- children: wt(T) ? T(O, u, h) : K || V()
78
+ children: wt(I) ? I(O, f, h) : K || V()
78
79
  }
79
- )) : /* @__PURE__ */ g("div", { className: I, children: wt(T) ? T(O, u, h) : K || V() });
80
+ )) : /* @__PURE__ */ m("div", { className: T, children: wt(I) ? I(O, f, h) : K || V() });
80
81
  }
81
82
  const dt = "horizontal", Pt = "vertical";
82
83
  function Lt(r, ot) {
83
84
  const {
84
- style: m,
85
+ style: g,
85
86
  className: q,
86
87
  component: J = "div",
87
88
  direction: x = "horizontal",
88
89
  icon: K,
89
90
  size: z = 0.5,
90
91
  min: X,
91
- max: T,
92
+ max: I,
92
93
  panes: Q,
93
94
  disabled: rt,
94
95
  trigger: M
95
- } = r, { getPrefixCls: d, rtl: D } = ft(gt), N = d("resizebox-split"), I = x.includes(dt), l = x.includes("reverse"), k = I && D, b = !I, E = P(
96
+ } = r, { getPrefixCls: d, rtl: D } = ut(mt), N = d("resizebox-split"), T = x.includes(dt), l = x.includes("reverse"), k = T && D, b = !T, E = P(
96
97
  N,
97
- `${N}-${I ? dt : Pt}`,
98
+ `${N}-${T ? dt : Pt}`,
98
99
  { [`${N}-rtl`]: D },
99
100
  q
100
- ), [U, tt] = Q, w = typeof z == "string", [O, u] = ct(parseFloat(z)), [h, V] = ct(0), i = F({
101
+ ), [U, tt] = Q, w = typeof z == "string", [O, f] = ct(parseFloat(z)), [h, V] = ct(0), i = F({
101
102
  startX: 0,
102
103
  startY: 0,
103
104
  startWidth: 0,
@@ -110,11 +111,11 @@ function Lt(r, ot) {
110
111
  return parseFloat(t) / parseFloat(e);
111
112
  }
112
113
  function W(t, e, n, o) {
113
- const s = typeof X == "string" ? L(parseFloat(X), t) : X || 0, a = typeof T == "string" ? L(parseFloat(T), t) : T || 1;
114
- let f = l ? -1 : 1;
115
- f *= k ? -1 : 1;
116
- let A = w ? e + (o - n) * f : L(
117
- t * e + (o - n) * f,
114
+ const s = typeof X == "string" ? L(parseFloat(X), t) : X || 0, a = typeof I == "string" ? L(parseFloat(I), t) : I || 1;
115
+ let u = l ? -1 : 1;
116
+ u *= k ? -1 : 1;
117
+ let A = w ? e + (o - n) * u : L(
118
+ t * e + (o - n) * u,
118
119
  t
119
120
  );
120
121
  const nt = w ? s * t : s, B = w ? a * t : a;
@@ -127,7 +128,7 @@ function Lt(r, ot) {
127
128
  function j(t) {
128
129
  var e;
129
130
  if (i.current.moving) {
130
- const n = I ? W(
131
+ const n = T ? W(
131
132
  i.current.startWidth,
132
133
  i.current.startOffset,
133
134
  i.current.startX,
@@ -138,7 +139,7 @@ function Lt(r, ot) {
138
139
  i.current.startY,
139
140
  t.pageY
140
141
  );
141
- u(n), (e = r.onMoving) == null || e.call(r, t, w ? `${n}px` : n);
142
+ f(n), (e = r.onMoving) == null || e.call(r, t, w ? `${n}px` : n);
142
143
  }
143
144
  }
144
145
  function Z() {
@@ -158,9 +159,9 @@ function Lt(r, ot) {
158
159
  (t = r.onPaneResize) == null || t.call(r, _.current);
159
160
  }, [O, h]), Vt(() => {
160
161
  const t = parseFloat(z);
161
- O !== t && u(t);
162
+ O !== t && f(t);
162
163
  }, [z]);
163
- const v = J, p = /* @__PURE__ */ g(
164
+ const v = J, p = /* @__PURE__ */ m(
164
165
  "div",
165
166
  {
166
167
  className: P(`${N}-pane`, "first-pane"),
@@ -170,7 +171,7 @@ function Lt(r, ot) {
170
171
  },
171
172
  children: U
172
173
  }
173
- ), R = /* @__PURE__ */ g(
174
+ ), R = /* @__PURE__ */ m(
174
175
  "div",
175
176
  {
176
177
  className: P(`${N}-pane`, "second-pane"),
@@ -180,9 +181,9 @@ function Lt(r, ot) {
180
181
  children: tt
181
182
  }
182
183
  ), S = l ? [R, p] : [p, R];
183
- return /* @__PURE__ */ ut(v, { style: m, className: E, ref: H, children: [
184
+ return /* @__PURE__ */ ft(v, { style: g, className: E, ref: H, children: [
184
185
  S[0],
185
- !rt && /* @__PURE__ */ g(
186
+ !rt && /* @__PURE__ */ m(
186
187
  Nt,
187
188
  {
188
189
  className: `${N}-trigger`,
@@ -201,34 +202,34 @@ Et.displayName = "ResizeBoxSplit";
201
202
  const ht = "horizontal", Dt = "vertical";
202
203
  function Gt(r, ot) {
203
204
  const {
204
- panes: m,
205
+ panes: g,
205
206
  style: q,
206
207
  className: J,
207
208
  component: x = "div",
208
209
  direction: K = "horizontal",
209
210
  icon: z,
210
211
  ...X
211
- } = r, { getPrefixCls: T, rtl: Q } = ft(gt), rt = 1 / m.length, M = F(), d = F(
212
- new Array(m.length).fill({
212
+ } = r, { getPrefixCls: I, rtl: Q } = ut(mt), rt = 1 / g.length, M = F(), d = F(
213
+ new Array(g.length).fill({
213
214
  moving: !1,
214
215
  startOffset: 0,
215
216
  startPosition: 0
216
217
  })
217
- ), D = F([]), N = F(0), I = F([]), [l, k] = ct(
218
- new Array(m.length).fill(rt)
218
+ ), D = F([]), N = F(0), T = F([]), [l, k] = ct(
219
+ new Array(g.length).fill(rt)
219
220
  ), [b, E] = ct(!1), [U, tt] = ct(
220
- new Array(m.length).fill(0)
221
+ new Array(g.length).fill(0)
221
222
  ), [w, O] = ct(
222
- new Array(Math.max(m.length - 1, 0)).fill({ prev: !1, next: !1 })
223
- ), u = T("resizebox-split-group"), h = K === ht, V = h && Q, i = !h, H = P(
224
- u,
225
- `${u}-${h ? ht : Dt}`,
226
- { [`${u}-moving`]: b },
227
- { [`${u}-rtl`]: Q },
223
+ new Array(Math.max(g.length - 1, 0)).fill({ prev: !1, next: !1 })
224
+ ), f = I("resizebox-split-group"), h = K === ht, V = h && Q, i = !h, H = P(
225
+ f,
226
+ `${f}-${h ? ht : Dt}`,
227
+ { [`${f}-moving`]: b },
228
+ { [`${f}-rtl`]: Q },
228
229
  J
229
230
  ), _ = x, L = () => {
230
231
  let t = [];
231
- m.forEach((s) => {
232
+ g.forEach((s) => {
232
233
  const { size: a } = s;
233
234
  St(a) ? t.push(void 0) : t.push(G(a));
234
235
  });
@@ -246,19 +247,19 @@ function Gt(r, ot) {
246
247
  return Math.min(n, 1);
247
248
  }
248
249
  const j = (t) => {
249
- const e = Math.min(t + 1, m.length - 1), n = l[t] + l[e], o = G(m[t].min) || 0;
250
- let s = G(m[t].max) || n;
251
- const a = G(m[e].min) || 0;
252
- let f = G(m[e].max) || n;
253
- return s = Math.min(n - a, s), f = Math.min(n - o, f), {
250
+ const e = Math.min(t + 1, g.length - 1), n = l[t] + l[e], o = G(g[t].min) || 0;
251
+ let s = G(g[t].max) || n;
252
+ const a = G(g[e].min) || 0;
253
+ let u = G(g[e].max) || n;
254
+ return s = Math.min(n - a, s), u = Math.min(n - o, u), {
254
255
  currentMin: o,
255
256
  currentMax: s,
256
257
  nextMin: a,
257
- nextMax: f
258
+ nextMax: u
258
259
  };
259
260
  }, Z = (t, e, n) => {
260
- const o = N.current, s = o + 1, a = [...l], f = V ? -1 : 1, et = l[o], A = l[s], nt = et + A, { currentMin: B, currentMax: C } = j(o);
261
- let Y = t + G(`${(n - e) * f}px`);
261
+ const o = N.current, s = o + 1, a = [...l], u = V ? -1 : 1, et = l[o], A = l[s], nt = et + A, { currentMin: B, currentMax: C } = j(o);
262
+ let Y = t + G(`${(n - e) * u}px`);
262
263
  return Y = Math.max(B, Y), Y = Math.min(C, Y), a[o] = Y, a[s] = nt - Y, a;
263
264
  };
264
265
  function it(t, e) {
@@ -266,7 +267,7 @@ function Gt(r, ot) {
266
267
  s[e] = o, tt(s);
267
268
  }
268
269
  const c = (t) => {
269
- let e = m[t].collapsible;
270
+ let e = g[t].collapsible;
270
271
  st(e) || (e = e ? { prev: !0, next: !0 } : {});
271
272
  const { prev: n, next: o } = e;
272
273
  if (!n && !o)
@@ -291,10 +292,10 @@ function Gt(r, ot) {
291
292
  n.startPosition,
292
293
  h ? t.pageX : t.pageY
293
294
  );
294
- k(a), I.current = a, (s = r == null ? void 0 : r.onMoving) == null || s.call(
295
+ k(a), T.current = a, (s = r == null ? void 0 : r.onMoving) == null || s.call(
295
296
  r,
296
297
  t,
297
- a.map((f) => `${f * o}px`),
298
+ a.map((u) => `${u * o}px`),
298
299
  e
299
300
  );
300
301
  }
@@ -306,25 +307,25 @@ function Gt(r, ot) {
306
307
  }
307
308
  function S(t, e, n, o) {
308
309
  var yt, $t;
309
- const s = e + 1, a = [...l], f = l[e], et = l[s], A = f + et, nt = h ? M.current.offsetWidth : M.current.offsetHeight, { currentMin: B, nextMin: C } = j(e);
310
- let Y = I.current[e], at = I.current[s], mt = w[e][n];
311
- n === "prev" ? (et !== C || at === C) && (Y = B, at = A - B, mt = !0) : (f !== B || Y === B) && (Y = A - C, at = C, mt = !0), a[e] = Y, a[s] = at, (yt = r == null ? void 0 : r.onMoving) == null || yt.call(
310
+ const s = e + 1, a = [...l], u = l[e], et = l[s], A = u + et, nt = h ? M.current.offsetWidth : M.current.offsetHeight, { currentMin: B, nextMin: C } = j(e);
311
+ let Y = T.current[e], at = T.current[s], gt = w[e][n];
312
+ n === "prev" ? (et !== C || at === C) && (Y = B, at = A - B, gt = !0) : (u !== B || Y === B) && (Y = A - C, at = C, gt = !0), a[e] = Y, a[s] = at, (yt = r == null ? void 0 : r.onMoving) == null || yt.call(
312
313
  r,
313
314
  t,
314
315
  a.map((Xt) => `${Xt * nt}px`),
315
316
  e
316
- ), ($t = r.onMovingEnd) == null || $t.call(r, e), k(a), wt(o) && o(t, e, n, mt);
317
+ ), ($t = r.onMovingEnd) == null || $t.call(r, e), k(a), wt(o) && o(t, e, n, gt);
317
318
  }
318
319
  return lt(() => {
319
320
  const t = L();
320
- k(t), I.current = t;
321
- }, [JSON.stringify(m.map((t) => t.size))]), zt(ot, () => M.current, []), lt(() => {
321
+ k(t), T.current = t;
322
+ }, [JSON.stringify(g.map((t) => t.size))]), zt(ot, () => M.current, []), lt(() => {
322
323
  const t = [];
323
324
  l.forEach((e, n) => {
324
- const o = { prev: !1, next: !1 }, s = n + 1, { currentMin: a, nextMin: f } = j(n);
325
- e === a ? o.prev = !0 : l[s] === f && (o.next = !0), t.push(o);
325
+ const o = { prev: !1, next: !1 }, s = n + 1, { currentMin: a, nextMin: u } = j(n);
326
+ e === a ? o.prev = !0 : l[s] === u && (o.next = !0), t.push(o);
326
327
  }), O(t);
327
- }, [l]), /* @__PURE__ */ g(
328
+ }, [l]), /* @__PURE__ */ m(
328
329
  _,
329
330
  {
330
331
  ...Mt(X, [
@@ -336,28 +337,28 @@ function Gt(r, ot) {
336
337
  style: q,
337
338
  className: H,
338
339
  ref: M,
339
- children: m.map((t, e) => {
340
+ children: g.map((t, e) => {
340
341
  const {
341
342
  content: n,
342
343
  disabled: o,
343
344
  trigger: s,
344
345
  resizable: a = !0,
345
- collapsible: f = {}
346
- } = t, { hasPrev: et, hasNext: A } = c(e), nt = st(f) && st(f.prev) ? f.prev : {}, B = st(f) && st(f.next) ? f.next : {};
347
- return /* @__PURE__ */ ut(Wt.Fragment, { children: [
348
- /* @__PURE__ */ g(
346
+ collapsible: u = {}
347
+ } = t, { hasPrev: et, hasNext: A } = c(e), nt = st(u) && st(u.prev) ? u.prev : {}, B = st(u) && st(u.next) ? u.next : {};
348
+ return /* @__PURE__ */ ft(Wt.Fragment, { children: [
349
+ /* @__PURE__ */ m(
349
350
  "div",
350
351
  {
351
- className: `${u}-pane`,
352
+ className: `${f}-pane`,
352
353
  style: { flexBasis: W(e) },
353
354
  ref: (C) => D.current[e] = C,
354
355
  children: n
355
356
  }
356
357
  ),
357
- !o && e !== m.length - 1 && /* @__PURE__ */ g(
358
+ !o && e !== g.length - 1 && /* @__PURE__ */ m(
358
359
  Nt,
359
360
  {
360
- className: `${u}-trigger`,
361
+ className: `${f}-trigger`,
361
362
  direction: i ? ht : Dt,
362
363
  icon: z,
363
364
  onResize: (C) => it(C, e),
@@ -406,7 +407,7 @@ const At = "left", pt = "right", xt = "top", Rt = "bottom", jt = [
406
407
  }
407
408
  };
408
409
  function Jt(r, ot) {
409
- const { getPrefixCls: m, componentConfig: q, rtl: J } = ft(gt), x = Bt(
410
+ const { getPrefixCls: g, componentConfig: q, rtl: J } = ut(mt), x = Bt(
410
411
  r,
411
412
  Zt,
412
413
  q == null ? void 0 : q.ResizeBox
@@ -414,14 +415,14 @@ function Jt(r, ot) {
414
415
  style: K,
415
416
  className: z,
416
417
  component: X,
417
- directions: T,
418
+ directions: I,
418
419
  resizeIcons: Q,
419
420
  children: rt,
420
421
  resizeTriggers: M,
421
422
  width: d,
422
423
  height: D,
423
424
  ...N
424
- } = x, I = J ? T.map((c) => qt(c)) : T, l = m("resizebox"), k = P(l, { [`${l}-rtl`]: J }, z), [b, E] = ct({}), [U, tt] = It(void 0, { value: d }), [w, O] = It(void 0, { value: D }), u = F({
425
+ } = x, T = J ? I.map((c) => qt(c)) : I, l = g("resizebox"), k = P(l, { [`${l}-rtl`]: J }, z), [b, E] = ct({}), [U, tt] = Tt(void 0, { value: d }), [w, O] = Tt(void 0, { value: D }), f = F({
425
426
  startX: 0,
426
427
  startY: 0,
427
428
  startWidth: 0,
@@ -455,12 +456,12 @@ function Jt(r, ot) {
455
456
  }
456
457
  function _(c, v) {
457
458
  var e, n, o;
458
- (e = x.onMovingStart) == null || e.call(x), u.current.moving = !0, u.current.startX = v.pageX, u.current.startY = v.pageY, u.current.direction = c;
459
- const { top: p, left: R, right: S, bottom: t } = u.current.padding;
460
- u.current.startWidth = i(
459
+ (e = x.onMovingStart) == null || e.call(x), f.current.moving = !0, f.current.startX = v.pageX, f.current.startY = v.pageY, f.current.direction = c;
460
+ const { top: p, left: R, right: S, bottom: t } = f.current.padding;
461
+ f.current.startWidth = i(
461
462
  (n = h.current) == null ? void 0 : n.clientWidth,
462
463
  R + S
463
- ), u.current.startHeight = i(
464
+ ), f.current.startHeight = i(
464
465
  (o = h.current) == null ? void 0 : o.clientHeight,
465
466
  p + t
466
467
  ), y(window, "mousemove", L), y(window, "touchmove", L), y(window, "mouseup", W), y(window, "touchend", W), y(window, "contextmenu", W), H(
@@ -469,11 +470,11 @@ function Jt(r, ot) {
469
470
  }
470
471
  function L(c) {
471
472
  var s;
472
- if (!u.current.moving) return !1;
473
- const { startX: v, startY: p, startWidth: R, startHeight: S } = u.current;
473
+ if (!f.current.moving) return !1;
474
+ const { startX: v, startY: p, startWidth: R, startHeight: S } = f.current;
474
475
  let t = R, e = S;
475
476
  const n = c.pageX - v, o = c.pageY - p;
476
- switch (u.current.direction) {
477
+ switch (f.current.direction) {
477
478
  case At:
478
479
  t = R - n, tt(t);
479
480
  break;
@@ -494,14 +495,14 @@ function Jt(r, ot) {
494
495
  }
495
496
  function W() {
496
497
  var c;
497
- u.current.moving = !1, G(), H(), (c = x.onMovingEnd) == null || c.call(x);
498
+ f.current.moving = !1, G(), H(), (c = x.onMovingEnd) == null || c.call(x);
498
499
  }
499
500
  function G() {
500
501
  $(window, "mousemove", L), $(window, "touchmove", L), $(window, "mouseup", W), $(window, "touchend", W), $(window, "contextmenu", W);
501
502
  }
502
503
  function j(c, v) {
503
504
  const p = V(c), { contentRect: R } = v[0], S = `${c.slice(0, 1).toUpperCase()}${c.slice(1)}`, t = R[p ? "height" : "width"];
504
- u.current.padding[c] = t, E((e) => ({
505
+ f.current.padding[c] = t, E((e) => ({
505
506
  ...e,
506
507
  [`padding${S}`]: t
507
508
  }));
@@ -512,7 +513,7 @@ function Jt(r, ot) {
512
513
  ...vt(U) ? { width: U } : {},
513
514
  ...vt(w) ? { height: w } : {}
514
515
  };
515
- return /* @__PURE__ */ ut(
516
+ return /* @__PURE__ */ ft(
516
517
  X,
517
518
  {
518
519
  ...Mt(N, ["onMovingStart", "onMoving", "onMovingEnd"]),
@@ -521,9 +522,9 @@ function Jt(r, ot) {
521
522
  ref: h,
522
523
  children: [
523
524
  rt,
524
- I.map((c) => {
525
+ T.map((c) => {
525
526
  if (jt.indexOf(c) !== -1)
526
- return /* @__PURE__ */ g(
527
+ return /* @__PURE__ */ m(
527
528
  Nt,
528
529
  {
529
530
  className: `${l}-direction-${c}`,