@unicom-cloud/ui 0.8.64 → 0.8.66

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 (136) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +2 -2
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +4 -4
  5. package/Avatar.js +2 -2
  6. package/BackTop.js +2 -2
  7. package/Badge.js +37 -31
  8. package/Breadcrumb.js +3 -3
  9. package/Button.js +82 -71
  10. package/Calendar.js +4 -4
  11. package/Card.js +2 -2
  12. package/Carousel.js +2 -2
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +5 -5
  17. package/Comment.js +2 -2
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +3 -3
  20. package/DatePicker.js +92 -92
  21. package/Descriptions.js +2 -2
  22. package/Divider.js +2 -2
  23. package/Draggable.js +2 -2
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +2 -2
  26. package/Empty.js +2 -2
  27. package/Form.js +4 -4
  28. package/Grid.js +3 -3
  29. package/Icon.js +2 -2
  30. package/IconHover.js +2 -2
  31. package/Image.js +2 -2
  32. package/Input.js +3 -3
  33. package/InputNumber.js +3 -3
  34. package/InputTag.js +1 -1
  35. package/Layout.js +3 -3
  36. package/Link.js +2 -2
  37. package/List.js +30 -30
  38. package/Mentions.js +4 -4
  39. package/Menu.js +2 -2
  40. package/Message.js +2 -2
  41. package/Modal.js +1 -1
  42. package/Notice.js +2 -2
  43. package/Notification.js +2 -2
  44. package/OverflowEllipsis.js +2 -2
  45. package/PageHeader.js +2 -2
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +2 -2
  49. package/Popover.js +2 -2
  50. package/Progress.js +2 -2
  51. package/Radio.js +2 -2
  52. package/Rate.js +2 -2
  53. package/ResizeBox.js +155 -154
  54. package/Result.js +2 -2
  55. package/Select.js +2 -2
  56. package/SelectView.js +9 -8
  57. package/Skeleton.js +2 -2
  58. package/Slider.js +5 -5
  59. package/Space.js +2 -2
  60. package/Spin.js +2 -2
  61. package/Statistic.js +2 -2
  62. package/Steps.js +2 -2
  63. package/Switch.js +3 -3
  64. package/Table.js +771 -768
  65. package/Tabs.js +4 -4
  66. package/Tag.js +2 -2
  67. package/TimePicker.js +4 -4
  68. package/Timeline.js +2 -2
  69. package/Tooltip.js +2 -2
  70. package/Transfer.js +4 -4
  71. package/Tree.js +1 -1
  72. package/TreeSelect.js +2 -2
  73. package/Trigger.js +43 -42
  74. package/Typography.js +1 -1
  75. package/Upload.js +4 -5
  76. package/VerificationCode.js +1 -1
  77. package/Version.js +5 -3
  78. package/Watermark.js +1 -1
  79. package/chunk/{B5GDq8NJ.js → -zpSUpGE.js} +100 -97
  80. package/chunk/BAWsPQBM.js +11 -0
  81. package/chunk/{oR9TkA35.js → BFipyA67.js} +2 -2
  82. package/chunk/{CxpFYX4B.js → BHgJ5Y3T.js} +3 -3
  83. package/chunk/{BwSpYGK-.js → BIT0j3HT.js} +3 -3
  84. package/chunk/{pq-36BDW.js → BbLKnaNO.js} +3 -3
  85. package/chunk/{tW_FgNSv.js → Bc7t9jkb.js} +2 -2
  86. package/chunk/{BJSjbYSN.js → Bfhv56O2.js} +2 -2
  87. package/chunk/{CAhODOfT.js → Bh23P4l7.js} +2 -2
  88. package/chunk/{CTF5o0OX.js → BnSVm1YC.js} +1 -1
  89. package/chunk/{DPJEIBKZ.js → C6QWSzsM.js} +4 -4
  90. package/chunk/{BHnRi7Xh.js → CHnFKgbk.js} +4 -4
  91. package/chunk/{CYQ1EE4h.js → CPvvjMwZ.js} +2 -2
  92. package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
  93. package/chunk/{BSBJlVZH.js → CVkHTbic.js} +4 -4
  94. package/chunk/{BCxoi4Kf.js → CZOP_ZHJ.js} +2 -2
  95. package/chunk/{D01b7bWX.js → CcV4wQB1.js} +176 -175
  96. package/chunk/{CA69nxbj.js → CeGEvXby.js} +2 -2
  97. package/chunk/{CAiaqaWc.js → CssIjN1g.js} +2 -2
  98. package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
  99. package/chunk/{CtUTlwlQ.js → DNAigumg.js} +2 -2
  100. package/chunk/{BtIG250j.js → DPByB1ab.js} +40 -40
  101. package/chunk/{B68hRpYG.js → DQAot004.js} +3 -3
  102. package/chunk/{CZfGDXaB.js → DTBtQQ2H.js} +2 -2
  103. package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
  104. package/chunk/{-IELMT_x.js → DV1Ab_cG.js} +2 -2
  105. package/chunk/{CBgwLBAC.js → DnvO8A0Z.js} +104 -103
  106. package/chunk/{Yvz-hPQB.js → Du-bw6qA.js} +3 -3
  107. package/chunk/dBnNCOIU.js +778 -0
  108. package/chunk/{DQ561AmR.js → it8qlDZ3.js} +222 -221
  109. package/chunk/{BfHNSLva.js → jhQQCFMn.js} +135 -134
  110. package/chunk/{D-oHJail.js → te_43YrB.js} +178 -175
  111. package/chunk/{QlYCEvCX.js → znkyQ-HR.js} +2 -2
  112. package/hooks/useIntersectionObserver.js +1 -1
  113. package/hooks/useMergeValue.js +2 -2
  114. package/index.js +378 -374
  115. package/locale/en-US.js +1 -1
  116. package/locale/tr-TR.js +1 -1
  117. package/package.json +1 -1
  118. package/style/variables.less +820 -0
  119. package/style.css +1 -1
  120. package/types/badge/index.d.ts +2 -2
  121. package/types/button/index.d.ts +3 -1
  122. package/types/config-provider/interface.d.ts +1 -1
  123. package/types/index.d.ts +5 -5
  124. package/types/select/interface.d.ts +1 -1
  125. package/types/tabs/Tab.d.ts +1 -1
  126. package/types/upload/Upload.d.ts +1 -1
  127. package/types/version/index.d.ts +2 -0
  128. package/utils/className.js +1 -1
  129. package/utils/contextHolder.js +1 -1
  130. package/utils/copy.js +1 -1
  131. package/utils/index.js +41 -41
  132. package/utils/is.js +37 -37
  133. package/utils/reactDOM.js +3 -3
  134. package/utils/scrollIntoView.js +1 -1
  135. package/chunk/BzPkh4Zv.js +0 -11
  136. package/chunk/_m8hLSsx.js +0 -776
package/ResizeBox.js CHANGED
@@ -1,24 +1,25 @@
1
- import { jsx as m, 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 Bt, { useContext as ft, useRef as F, useEffect as lt, forwardRef as Ct, useState as ct, useImperativeHandle as zt } from "react";
4
- import { d as mt } from "./chunk/B5GDq8NJ.js";
5
- import { useMergeProps as Wt } from "./hooks/useMergeProps.js";
3
+ import Wt, { useContext as ut, useRef as F, useEffect as lt, forwardRef as Ct, useState as st, useImperativeHandle as zt } from "react";
4
+ import { d as mt } from "./chunk/-zpSUpGE.js";
5
+ import { useMergeProps as Yt } from "./hooks/useMergeProps.js";
6
6
  import { useMergeValue as Tt } from "./hooks/useMergeValue.js";
7
- import { y as P } from "./chunk/BzPkh4Zv.js";
7
+ import { y as P } from "./chunk/BAWsPQBM.js";
8
8
  import { on as y, off as $ } from "./utils/dom.js";
9
9
  import Mt from "./utils/omit.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";
10
+ import Ft from "@unicom-cloud/icons/IconUiCaretDown";
11
+ import bt from "@unicom-cloud/icons/IconUiCaretLeft";
12
+ import It from "@unicom-cloud/icons/IconUiCaretRight";
13
+ import kt from "@unicom-cloud/icons/IconUiCaretUp";
14
+ import Ut from "@unicom-cloud/icons/IconUiDragDot";
15
+ import Vt from "@unicom-cloud/icons/IconUiDragDotVertical";
16
16
  import wt from "lodash/isFunction";
17
17
  import "./utils/is.js";
18
- import st from "lodash/isPlainObject";
19
- import { useIsomorphicLayoutEffect as Vt } from "./hooks/useIsomorphicLayoutEffect.js";
20
- import _t from "lodash/isString";
21
- import St from "lodash/isUndefined";
18
+ import St from "lodash/isPlainObject.js";
19
+ import { useIsomorphicLayoutEffect as _t } from "./hooks/useIsomorphicLayoutEffect.js";
20
+ import it from "lodash/isPlainObject";
21
+ import Lt from "lodash/isString";
22
+ import Pt from "lodash/isUndefined";
22
23
  function Nt(r) {
23
24
  const {
24
25
  className: ot,
@@ -29,44 +30,44 @@ function Nt(r) {
29
30
  children: K,
30
31
  collapsible: z = {},
31
32
  resizable: X = !0,
32
- renderChildren: I,
33
+ renderChildren: b,
33
34
  ...Q
34
- } = r, { getPrefixCls: rt, rtl: M } = ft(mt), d = rt("resizebox-trigger"), D = g === "horizontal", N = M && !D, T = P(
35
+ } = r, { getPrefixCls: rt, rtl: M } = ut(mt), d = rt("resizebox-trigger"), D = g === "horizontal", N = M && !D, T = P(
35
36
  d,
36
37
  `${d}-${D ? "horizontal" : "vertical"}`,
37
38
  { [`${d}-not-resizable`]: !X },
38
39
  { [`${d}-rtl`]: M },
39
40
  ot
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) ? {
41
+ ), l = F(), k = N ? [/* @__PURE__ */ m(It, {}, "prev"), /* @__PURE__ */ m(bt, {}, "next")] : [/* @__PURE__ */ m(bt, {}, "prev"), /* @__PURE__ */ m(It, {}, "next")], I = St(z.prev) ? {
41
42
  ...z.prev,
42
- icon: z.prev.icon || (D ? /* @__PURE__ */ m(Ft, {}) : k[0])
43
- } : {}, E = st(z.next) ? {
43
+ icon: z.prev.icon || (D ? /* @__PURE__ */ m(kt, {}) : k[0])
44
+ } : {}, E = St(z.next) ? {
44
45
  ...z.next,
45
- icon: z.next.icon || (D ? /* @__PURE__ */ m(Yt, {}) : k[1])
46
- } : {}, U = () => b.icon && !b.collapsed || E.collapsed ? /* @__PURE__ */ m(
46
+ icon: z.next.icon || (D ? /* @__PURE__ */ m(Ft, {}) : k[1])
47
+ } : {}, U = () => I.icon && !I.collapsed || E.collapsed ? /* @__PURE__ */ m(
47
48
  "span",
48
49
  {
49
50
  className: P(`${d}-icon`, P(`${d}-prev`)),
50
- onClick: b.onClick,
51
- children: b.icon
51
+ onClick: I.onClick,
52
+ children: I.icon
52
53
  }
53
- ) : /* @__PURE__ */ m("span", { className: P(`${d}-icon-empty`) }), tt = () => E.icon && !E.collapsed || b.collapsed ? /* @__PURE__ */ m(
54
+ ) : /* @__PURE__ */ m("span", { className: P(`${d}-icon-empty`) }), tt = () => E.icon && !E.collapsed || I.collapsed ? /* @__PURE__ */ m(
54
55
  "span",
55
56
  {
56
57
  className: P(`${d}-icon`, P(`${d}-next`)),
57
58
  onClick: E.onClick,
58
59
  children: E.icon
59
60
  }
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(), u = w(), h = tt(), V = () => /* @__PURE__ */ ut("div", { className: `${d}-icon-wrapper`, children: [
61
+ ) : /* @__PURE__ */ m("span", { className: P(`${d}-icon-empty`) }), w = () => X ? /* @__PURE__ */ m("span", { className: `${d}-icon`, children: q || (D ? /* @__PURE__ */ m(Ut, {}) : /* @__PURE__ */ m(Vt, {})) }) : /* @__PURE__ */ m("span", { className: P(`${d}-icon-empty`) }), O = U(), f = w(), h = tt(), V = () => /* @__PURE__ */ ft("div", { className: `${d}-icon-wrapper`, children: [
61
62
  O,
62
- u,
63
+ f,
63
64
  h
64
65
  ] });
65
66
  return X ? (lt(() => {
66
- let i;
67
- return l.current && (i = new ResizeObserver(x), i.observe(l.current)), () => {
67
+ let c;
68
+ return l.current && (c = new ResizeObserver(x), c.observe(l.current)), () => {
68
69
  var H, _;
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;
70
+ l.current && ((H = c == null ? void 0 : c.unobserve) == null || H.call(c, l.current)), (_ = c == null ? void 0 : c.disconnect) == null || _.call(c), c = null;
70
71
  };
71
72
  }, [l.current]), /* @__PURE__ */ m(
72
73
  "div",
@@ -75,12 +76,12 @@ function Nt(r) {
75
76
  ...Mt(Q, ["style"]),
76
77
  className: T,
77
78
  onMouseDown: J,
78
- children: wt(I) ? I(O, u, h) : K || V()
79
+ children: wt(b) ? b(O, f, h) : K || V()
79
80
  }
80
- )) : /* @__PURE__ */ m("div", { className: T, children: wt(I) ? I(O, u, h) : K || V() });
81
+ )) : /* @__PURE__ */ m("div", { className: T, children: wt(b) ? b(O, f, h) : K || V() });
81
82
  }
82
- const dt = "horizontal", Pt = "vertical";
83
- function Lt(r, ot) {
83
+ const dt = "horizontal", Dt = "vertical";
84
+ function Gt(r, ot) {
84
85
  const {
85
86
  style: g,
86
87
  className: q,
@@ -89,16 +90,16 @@ function Lt(r, ot) {
89
90
  icon: K,
90
91
  size: z = 0.5,
91
92
  min: X,
92
- max: I,
93
+ max: b,
93
94
  panes: Q,
94
95
  disabled: rt,
95
96
  trigger: M
96
- } = r, { getPrefixCls: d, rtl: D } = ft(mt), N = d("resizebox-split"), T = x.includes(dt), l = x.includes("reverse"), k = T && D, b = !T, E = P(
97
+ } = r, { getPrefixCls: d, rtl: D } = ut(mt), N = d("resizebox-split"), T = x.includes(dt), l = x.includes("reverse"), k = T && D, I = !T, E = P(
97
98
  N,
98
- `${N}-${T ? dt : Pt}`,
99
+ `${N}-${T ? dt : Dt}`,
99
100
  { [`${N}-rtl`]: D },
100
101
  q
101
- ), [U, tt] = Q, w = typeof z == "string", [O, u] = ct(parseFloat(z)), [h, V] = ct(0), i = F({
102
+ ), [U, tt] = Q, w = typeof z == "string", [O, f] = st(parseFloat(z)), [h, V] = st(0), c = F({
102
103
  startX: 0,
103
104
  startY: 0,
104
105
  startWidth: 0,
@@ -111,11 +112,11 @@ function Lt(r, ot) {
111
112
  return parseFloat(t) / parseFloat(e);
112
113
  }
113
114
  function B(t, e, n, o) {
114
- const s = typeof X == "string" ? L(parseFloat(X), t) : X || 0, a = typeof I == "string" ? L(parseFloat(I), t) : I || 1;
115
- let f = l ? -1 : 1;
116
- f *= k ? -1 : 1;
117
- let A = w ? e + (o - n) * f : L(
118
- t * e + (o - n) * f,
115
+ const s = typeof X == "string" ? L(parseFloat(X), t) : X || 0, a = typeof b == "string" ? L(parseFloat(b), t) : b || 1;
116
+ let u = l ? -1 : 1;
117
+ u *= k ? -1 : 1;
118
+ let A = w ? e + (o - n) * u : L(
119
+ t * e + (o - n) * u,
119
120
  t
120
121
  );
121
122
  const nt = w ? s * t : s, W = w ? a * t : a;
@@ -123,49 +124,49 @@ function Lt(r, ot) {
123
124
  }
124
125
  function G(t) {
125
126
  var e, n, o;
126
- (e = r.onMovingStart) == null || e.call(r), i.current.moving = !0, i.current.startX = t.pageX, i.current.startY = t.pageY, i.current.startWidth = (n = H.current) == null ? void 0 : n.offsetWidth, i.current.startHeight = (o = H.current) == null ? void 0 : o.offsetHeight, i.current.startOffset = O, y(window, "mousemove", j), y(window, "touchmove", j), y(window, "mouseup", Z), y(window, "touchend", Z), y(window, "contextmenu", Z), document.body.style.cursor = b ? "row-resize" : "col-resize";
127
+ (e = r.onMovingStart) == null || e.call(r), c.current.moving = !0, c.current.startX = t.pageX, c.current.startY = t.pageY, c.current.startWidth = (n = H.current) == null ? void 0 : n.offsetWidth, c.current.startHeight = (o = H.current) == null ? void 0 : o.offsetHeight, c.current.startOffset = O, y(window, "mousemove", j), y(window, "touchmove", j), y(window, "mouseup", Z), y(window, "touchend", Z), y(window, "contextmenu", Z), document.body.style.cursor = I ? "row-resize" : "col-resize";
127
128
  }
128
129
  function j(t) {
129
130
  var e;
130
- if (i.current.moving) {
131
+ if (c.current.moving) {
131
132
  const n = T ? B(
132
- i.current.startWidth,
133
- i.current.startOffset,
134
- i.current.startX,
133
+ c.current.startWidth,
134
+ c.current.startOffset,
135
+ c.current.startX,
135
136
  t.pageX
136
137
  ) : B(
137
- i.current.startHeight,
138
- i.current.startOffset,
139
- i.current.startY,
138
+ c.current.startHeight,
139
+ c.current.startOffset,
140
+ c.current.startY,
140
141
  t.pageY
141
142
  );
142
- u(n), (e = r.onMoving) == null || e.call(r, t, w ? `${n}px` : n);
143
+ f(n), (e = r.onMoving) == null || e.call(r, t, w ? `${n}px` : n);
143
144
  }
144
145
  }
145
146
  function Z() {
146
147
  var t;
147
- i.current.moving = !1, $(window, "mousemove", j), $(window, "touchmove", j), $(window, "mouseup", Z), $(window, "touchend", Z), $(window, "contextmenu", Z), document.body.style.cursor = "default", (t = r.onMovingEnd) == null || t.call(r);
148
+ c.current.moving = !1, $(window, "mousemove", j), $(window, "touchmove", j), $(window, "mouseup", Z), $(window, "touchend", Z), $(window, "contextmenu", Z), document.body.style.cursor = "default", (t = r.onMovingEnd) == null || t.call(r);
148
149
  }
149
- function it(t) {
150
- const { contentRect: e } = t[0], n = e[b ? "height" : "width"];
150
+ function ct(t) {
151
+ const { contentRect: e } = t[0], n = e[I ? "height" : "width"];
151
152
  V(n);
152
153
  }
153
- function c() {
154
+ function i() {
154
155
  const t = w ? "px" : "%";
155
156
  return O ? `calc(${w ? O : O * 100}${t} - ${h / 2}px)` : `0${t}`;
156
157
  }
157
158
  lt(() => {
158
159
  var t;
159
160
  (t = r.onPaneResize) == null || t.call(r, _.current);
160
- }, [O, h]), Vt(() => {
161
+ }, [O, h]), _t(() => {
161
162
  const t = parseFloat(z);
162
- O !== t && u(t);
163
+ O !== t && f(t);
163
164
  }, [z]);
164
165
  const v = J, p = /* @__PURE__ */ m(
165
166
  "div",
166
167
  {
167
168
  className: P(`${N}-pane`, "first-pane"),
168
- style: { flexBasis: c() },
169
+ style: { flexBasis: i() },
169
170
  ref: (t) => {
170
171
  _.current[0] = t;
171
172
  },
@@ -181,26 +182,26 @@ function Lt(r, ot) {
181
182
  children: tt
182
183
  }
183
184
  ), S = l ? [R, p] : [p, R];
184
- return /* @__PURE__ */ ut(v, { style: g, className: E, ref: H, children: [
185
+ return /* @__PURE__ */ ft(v, { style: g, className: E, ref: H, children: [
185
186
  S[0],
186
187
  !rt && /* @__PURE__ */ m(
187
188
  Nt,
188
189
  {
189
190
  className: `${N}-trigger`,
190
- direction: b ? dt : Pt,
191
+ direction: I ? dt : Dt,
191
192
  icon: K,
192
193
  onMouseDown: G,
193
- onResize: it,
194
+ onResize: ct,
194
195
  children: M
195
196
  }
196
197
  ),
197
198
  S[1]
198
199
  ] });
199
200
  }
200
- const Et = Ct(Lt);
201
- Et.displayName = "ResizeBoxSplit";
202
- const ht = "horizontal", Dt = "vertical";
203
- function Gt(r, ot) {
201
+ const Ht = Ct(Gt);
202
+ Ht.displayName = "ResizeBoxSplit";
203
+ const ht = "horizontal", Et = "vertical";
204
+ function jt(r, ot) {
204
205
  const {
205
206
  panes: g,
206
207
  style: q,
@@ -209,32 +210,32 @@ function Gt(r, ot) {
209
210
  direction: K = "horizontal",
210
211
  icon: z,
211
212
  ...X
212
- } = r, { getPrefixCls: I, rtl: Q } = ft(mt), rt = 1 / g.length, M = F(), d = F(
213
+ } = r, { getPrefixCls: b, rtl: Q } = ut(mt), rt = 1 / g.length, M = F(), d = F(
213
214
  new Array(g.length).fill({
214
215
  moving: !1,
215
216
  startOffset: 0,
216
217
  startPosition: 0
217
218
  })
218
- ), D = F([]), N = F(0), T = F([]), [l, k] = ct(
219
+ ), D = F([]), N = F(0), T = F([]), [l, k] = st(
219
220
  new Array(g.length).fill(rt)
220
- ), [b, E] = ct(!1), [U, tt] = ct(
221
+ ), [I, E] = st(!1), [U, tt] = st(
221
222
  new Array(g.length).fill(0)
222
- ), [w, O] = ct(
223
+ ), [w, O] = st(
223
224
  new Array(Math.max(g.length - 1, 0)).fill({ prev: !1, next: !1 })
224
- ), u = I("resizebox-split-group"), h = K === ht, V = h && Q, i = !h, H = P(
225
- u,
226
- `${u}-${h ? ht : Dt}`,
227
- { [`${u}-moving`]: b },
228
- { [`${u}-rtl`]: Q },
225
+ ), f = b("resizebox-split-group"), h = K === ht, V = h && Q, c = !h, H = P(
226
+ f,
227
+ `${f}-${h ? ht : Et}`,
228
+ { [`${f}-moving`]: I },
229
+ { [`${f}-rtl`]: Q },
229
230
  J
230
231
  ), _ = x, L = () => {
231
232
  let t = [];
232
233
  g.forEach((s) => {
233
234
  const { size: a } = s;
234
- St(a) ? t.push(void 0) : t.push(G(a));
235
+ Pt(a) ? t.push(void 0) : t.push(G(a));
235
236
  });
236
237
  const e = t.filter((s) => !s), o = (1 - t.reduce((s, a) => (s || 0) + (a || 0), 0)) / e.length;
237
- return t = t.map((s) => St(s) ? o : s), t;
238
+ return t = t.map((s) => Pt(s) ? o : s), t;
238
239
  }, B = (t) => {
239
240
  const e = U[t - 1] || 0, n = U[t];
240
241
  return `calc(${l[t] * 100}% - ${(e + n) / 2}px)`;
@@ -243,32 +244,32 @@ function Gt(r, ot) {
243
244
  const e = h ? M.current.offsetWidth : M.current.offsetHeight;
244
245
  if (!t || vt(t) && t < 0)
245
246
  return 0;
246
- const n = _t(t) ? parseFloat(t) / e : t;
247
+ const n = Lt(t) ? parseFloat(t) / e : t;
247
248
  return Math.min(n, 1);
248
249
  }
249
250
  const j = (t) => {
250
251
  const e = Math.min(t + 1, g.length - 1), n = l[t] + l[e], o = G(g[t].min) || 0;
251
252
  let s = G(g[t].max) || n;
252
253
  const a = G(g[e].min) || 0;
253
- let f = G(g[e].max) || n;
254
- return s = Math.min(n - a, s), f = Math.min(n - o, f), {
254
+ let u = G(g[e].max) || n;
255
+ return s = Math.min(n - a, s), u = Math.min(n - o, u), {
255
256
  currentMin: o,
256
257
  currentMax: s,
257
258
  nextMin: a,
258
- nextMax: f
259
+ nextMax: u
259
260
  };
260
261
  }, Z = (t, e, n) => {
261
- const o = N.current, s = o + 1, a = [...l], f = V ? -1 : 1, et = l[o], A = l[s], nt = et + A, { currentMin: W, currentMax: C } = j(o);
262
- let Y = t + G(`${(n - e) * f}px`);
262
+ const o = N.current, s = o + 1, a = [...l], u = V ? -1 : 1, et = l[o], A = l[s], nt = et + A, { currentMin: W, currentMax: C } = j(o);
263
+ let Y = t + G(`${(n - e) * u}px`);
263
264
  return Y = Math.max(W, Y), Y = Math.min(C, Y), a[o] = Y, a[s] = nt - Y, a;
264
265
  };
265
- function it(t, e) {
266
- const { contentRect: n } = t[0], o = n[i ? "height" : "width"], s = [...U];
266
+ function ct(t, e) {
267
+ const { contentRect: n } = t[0], o = n[c ? "height" : "width"], s = [...U];
267
268
  s[e] = o, tt(s);
268
269
  }
269
- const c = (t) => {
270
+ const i = (t) => {
270
271
  let e = g[t].collapsible;
271
- st(e) || (e = e ? { prev: !0, next: !0 } : {});
272
+ it(e) || (e = e ? { prev: !0, next: !0 } : {});
272
273
  const { prev: n, next: o } = e;
273
274
  if (!n && !o)
274
275
  return {};
@@ -281,7 +282,7 @@ function Gt(r, ot) {
281
282
  var o;
282
283
  (o = r.onMovingStart) == null || o.call(r, e), N.current = e;
283
284
  const n = d.current[e];
284
- n.moving = !0, n.startOffset = l[e], n.startPosition = h ? t.pageX : t.pageY, E(!0), y(window, "mousemove", p), y(window, "touchmove", p), y(window, "mouseup", R), y(window, "touchend", R), y(window, "contextmenu", R), document.body.style.cursor = i ? "row-resize" : "col-resize";
285
+ n.moving = !0, n.startOffset = l[e], n.startPosition = h ? t.pageX : t.pageY, E(!0), y(window, "mousemove", p), y(window, "touchmove", p), y(window, "mouseup", R), y(window, "touchend", R), y(window, "contextmenu", R), document.body.style.cursor = c ? "row-resize" : "col-resize";
285
286
  }
286
287
  function p(t) {
287
288
  var s;
@@ -295,7 +296,7 @@ function Gt(r, ot) {
295
296
  k(a), T.current = a, (s = r == null ? void 0 : r.onMoving) == null || s.call(
296
297
  r,
297
298
  t,
298
- a.map((f) => `${f * o}px`),
299
+ a.map((u) => `${u * o}px`),
299
300
  e
300
301
  );
301
302
  }
@@ -307,12 +308,12 @@ function Gt(r, ot) {
307
308
  }
308
309
  function S(t, e, n, o) {
309
310
  var yt, $t;
310
- const s = e + 1, a = [...l], f = l[e], et = l[s], A = f + et, nt = h ? M.current.offsetWidth : M.current.offsetHeight, { currentMin: W, nextMin: C } = j(e);
311
+ const s = e + 1, a = [...l], u = l[e], et = l[s], A = u + et, nt = h ? M.current.offsetWidth : M.current.offsetHeight, { currentMin: W, nextMin: C } = j(e);
311
312
  let Y = T.current[e], at = T.current[s], gt = w[e][n];
312
- n === "prev" ? (et !== C || at === C) && (Y = W, at = A - W, gt = !0) : (f !== W || Y === W) && (Y = A - C, at = C, gt = !0), a[e] = Y, a[s] = at, (yt = r == null ? void 0 : r.onMoving) == null || yt.call(
313
+ n === "prev" ? (et !== C || at === C) && (Y = W, at = A - W, gt = !0) : (u !== W || Y === W) && (Y = A - C, at = C, gt = !0), a[e] = Y, a[s] = at, (yt = r == null ? void 0 : r.onMoving) == null || yt.call(
313
314
  r,
314
315
  t,
315
- a.map((Xt) => `${Xt * nt}px`),
316
+ a.map((Bt) => `${Bt * nt}px`),
316
317
  e
317
318
  ), ($t = r.onMovingEnd) == null || $t.call(r, e), k(a), wt(o) && o(t, e, n, gt);
318
319
  }
@@ -322,8 +323,8 @@ function Gt(r, ot) {
322
323
  }, [JSON.stringify(g.map((t) => t.size))]), zt(ot, () => M.current, []), lt(() => {
323
324
  const t = [];
324
325
  l.forEach((e, n) => {
325
- const o = { prev: !1, next: !1 }, s = n + 1, { currentMin: a, nextMin: f } = j(n);
326
- e === a ? o.prev = !0 : l[s] === f && (o.next = !0), t.push(o);
326
+ const o = { prev: !1, next: !1 }, s = n + 1, { currentMin: a, nextMin: u } = j(n);
327
+ e === a ? o.prev = !0 : l[s] === u && (o.next = !0), t.push(o);
327
328
  }), O(t);
328
329
  }, [l]), /* @__PURE__ */ m(
329
330
  _,
@@ -343,13 +344,13 @@ function Gt(r, ot) {
343
344
  disabled: o,
344
345
  trigger: s,
345
346
  resizable: a = !0,
346
- collapsible: f = {}
347
- } = t, { hasPrev: et, hasNext: A } = c(e), nt = st(f) && st(f.prev) ? f.prev : {}, W = st(f) && st(f.next) ? f.next : {};
348
- return /* @__PURE__ */ ut(Bt.Fragment, { children: [
347
+ collapsible: u = {}
348
+ } = t, { hasPrev: et, hasNext: A } = i(e), nt = it(u) && it(u.prev) ? u.prev : {}, W = it(u) && it(u.next) ? u.next : {};
349
+ return /* @__PURE__ */ ft(Wt.Fragment, { children: [
349
350
  /* @__PURE__ */ m(
350
351
  "div",
351
352
  {
352
- className: `${u}-pane`,
353
+ className: `${f}-pane`,
353
354
  style: { flexBasis: B(e) },
354
355
  ref: (C) => D.current[e] = C,
355
356
  children: n
@@ -358,10 +359,10 @@ function Gt(r, ot) {
358
359
  !o && e !== g.length - 1 && /* @__PURE__ */ m(
359
360
  Nt,
360
361
  {
361
- className: `${u}-trigger`,
362
- direction: i ? ht : Dt,
362
+ className: `${f}-trigger`,
363
+ direction: c ? ht : Et,
363
364
  icon: z,
364
- onResize: (C) => it(C, e),
365
+ onResize: (C) => ct(C, e),
365
366
  onMouseDown: (C) => v(C, e),
366
367
  collapsible: {
367
368
  prev: et ? {
@@ -384,19 +385,19 @@ function Gt(r, ot) {
384
385
  }
385
386
  );
386
387
  }
387
- const Ht = Ct(Gt);
388
- Ht.displayName = "ResizeBoxSplitGroup";
389
- const At = "left", pt = "right", xt = "top", Rt = "bottom", jt = [
390
- At,
388
+ const At = Ct(jt);
389
+ At.displayName = "ResizeBoxSplitGroup";
390
+ const Xt = "left", pt = "right", xt = "top", Rt = "bottom", Zt = [
391
+ Xt,
391
392
  pt,
392
393
  xt,
393
394
  Rt
394
- ], Zt = {
395
+ ], qt = {
395
396
  component: "div",
396
397
  directions: ["right"],
397
398
  resizeIcons: {},
398
399
  resizeTriggers: {}
399
- }, qt = (r) => {
400
+ }, Jt = (r) => {
400
401
  switch (r) {
401
402
  case "left":
402
403
  return "right";
@@ -406,23 +407,23 @@ const At = "left", pt = "right", xt = "top", Rt = "bottom", jt = [
406
407
  return r;
407
408
  }
408
409
  };
409
- function Jt(r, ot) {
410
- const { getPrefixCls: g, componentConfig: q, rtl: J } = ft(mt), x = Wt(
410
+ function Kt(r, ot) {
411
+ const { getPrefixCls: g, componentConfig: q, rtl: J } = ut(mt), x = Yt(
411
412
  r,
412
- Zt,
413
+ qt,
413
414
  q == null ? void 0 : q.ResizeBox
414
415
  ), {
415
416
  style: K,
416
417
  className: z,
417
418
  component: X,
418
- directions: I,
419
+ directions: b,
419
420
  resizeIcons: Q,
420
421
  children: rt,
421
422
  resizeTriggers: M,
422
423
  width: d,
423
424
  height: D,
424
425
  ...N
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 }), u = F({
426
+ } = x, T = J ? b.map((i) => Jt(i)) : b, l = g("resizebox"), k = P(l, { [`${l}-rtl`]: J }, z), [I, E] = st({}), [U, tt] = Tt(void 0, { value: d }), [w, O] = Tt(void 0, { value: D }), f = F({
426
427
  startX: 0,
427
428
  startY: 0,
428
429
  startWidth: 0,
@@ -437,45 +438,45 @@ function Jt(r, ot) {
437
438
  }
438
439
  }), h = F();
439
440
  zt(ot, () => h.current, []);
440
- function V(c) {
441
- return [xt, Rt].indexOf(c) > -1;
441
+ function V(i) {
442
+ return [xt, Rt].indexOf(i) > -1;
442
443
  }
443
- function i(c, v) {
444
- if (c === 0) return 0;
445
- const p = c - v;
444
+ function c(i, v) {
445
+ if (i === 0) return 0;
446
+ const p = i - v;
446
447
  return p <= 0 ? 0 : p;
447
448
  }
448
- function H(c) {
449
+ function H(i) {
449
450
  const v = "data-pqb-origin-cursor";
450
- if (c)
451
- document.body.setAttribute(v, document.body.style.cursor), document.body.style.cursor = c;
451
+ if (i)
452
+ document.body.setAttribute(v, document.body.style.cursor), document.body.style.cursor = i;
452
453
  else {
453
454
  const p = document.body.getAttribute(v);
454
455
  document.body.style.cursor = p || "", document.body.removeAttribute(v);
455
456
  }
456
457
  }
457
- function _(c, v) {
458
+ function _(i, v) {
458
459
  var e, n, o;
459
- (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;
460
- const { top: p, left: R, right: S, bottom: t } = u.current.padding;
461
- u.current.startWidth = i(
460
+ (e = x.onMovingStart) == null || e.call(x), f.current.moving = !0, f.current.startX = v.pageX, f.current.startY = v.pageY, f.current.direction = i;
461
+ const { top: p, left: R, right: S, bottom: t } = f.current.padding;
462
+ f.current.startWidth = c(
462
463
  (n = h.current) == null ? void 0 : n.clientWidth,
463
464
  R + S
464
- ), u.current.startHeight = i(
465
+ ), f.current.startHeight = c(
465
466
  (o = h.current) == null ? void 0 : o.clientHeight,
466
467
  p + t
467
468
  ), y(window, "mousemove", L), y(window, "touchmove", L), y(window, "mouseup", B), y(window, "touchend", B), y(window, "contextmenu", B), H(
468
- V(c) ? "row-resize" : "col-resize"
469
+ V(i) ? "row-resize" : "col-resize"
469
470
  );
470
471
  }
471
- function L(c) {
472
+ function L(i) {
472
473
  var s;
473
- if (!u.current.moving) return !1;
474
- const { startX: v, startY: p, startWidth: R, startHeight: S } = u.current;
474
+ if (!f.current.moving) return !1;
475
+ const { startX: v, startY: p, startWidth: R, startHeight: S } = f.current;
475
476
  let t = R, e = S;
476
- const n = c.pageX - v, o = c.pageY - p;
477
- switch (u.current.direction) {
478
- case At:
477
+ const n = i.pageX - v, o = i.pageY - p;
478
+ switch (f.current.direction) {
479
+ case Xt:
479
480
  t = R - n, tt(t);
480
481
  break;
481
482
  case pt:
@@ -488,32 +489,32 @@ function Jt(r, ot) {
488
489
  e = S + o, O(e);
489
490
  break;
490
491
  }
491
- (s = x.onMoving) == null || s.call(x, c, {
492
+ (s = x.onMoving) == null || s.call(x, i, {
492
493
  width: t,
493
494
  height: e
494
495
  });
495
496
  }
496
497
  function B() {
497
- var c;
498
- u.current.moving = !1, G(), H(), (c = x.onMovingEnd) == null || c.call(x);
498
+ var i;
499
+ f.current.moving = !1, G(), H(), (i = x.onMovingEnd) == null || i.call(x);
499
500
  }
500
501
  function G() {
501
502
  $(window, "mousemove", L), $(window, "touchmove", L), $(window, "mouseup", B), $(window, "touchend", B), $(window, "contextmenu", B);
502
503
  }
503
- function j(c, v) {
504
- const p = V(c), { contentRect: R } = v[0], S = `${c.slice(0, 1).toUpperCase()}${c.slice(1)}`, t = R[p ? "height" : "width"];
505
- u.current.padding[c] = t, E((e) => ({
504
+ function j(i, v) {
505
+ const p = V(i), { contentRect: R } = v[0], S = `${i.slice(0, 1).toUpperCase()}${i.slice(1)}`, t = R[p ? "height" : "width"];
506
+ f.current.padding[i] = t, E((e) => ({
506
507
  ...e,
507
508
  [`padding${S}`]: t
508
509
  }));
509
510
  }
510
511
  const Z = {
511
- ...b,
512
+ ...I,
512
513
  ...K || {},
513
514
  ...vt(U) ? { width: U } : {},
514
515
  ...vt(w) ? { height: w } : {}
515
516
  };
516
- return /* @__PURE__ */ ut(
517
+ return /* @__PURE__ */ ft(
517
518
  X,
518
519
  {
519
520
  ...Mt(N, ["onMovingStart", "onMoving", "onMovingEnd"]),
@@ -522,35 +523,35 @@ function Jt(r, ot) {
522
523
  ref: h,
523
524
  children: [
524
525
  rt,
525
- T.map((c) => {
526
- if (jt.indexOf(c) !== -1)
526
+ T.map((i) => {
527
+ if (Zt.indexOf(i) !== -1)
527
528
  return /* @__PURE__ */ m(
528
529
  Nt,
529
530
  {
530
- className: `${l}-direction-${c}`,
531
- direction: V(c) ? "horizontal" : "vertical",
532
- icon: Q[c],
531
+ className: `${l}-direction-${i}`,
532
+ direction: V(i) ? "horizontal" : "vertical",
533
+ icon: Q[i],
533
534
  onMouseDown: (v) => {
534
- _(c, v);
535
+ _(i, v);
535
536
  },
536
537
  onResize: (v) => {
537
- j(c, v);
538
+ j(i, v);
538
539
  },
539
- children: M[c]
540
+ children: M[i]
540
541
  },
541
- c
542
+ i
542
543
  );
543
544
  })
544
545
  ]
545
546
  }
546
547
  );
547
548
  }
548
- const Kt = Ct(Jt), Ot = Kt;
549
- Ot.Split = Et;
550
- Ot.SplitGroup = Ht;
549
+ const Qt = Ct(Kt), Ot = Qt;
550
+ Ot.Split = Ht;
551
+ Ot.SplitGroup = At;
551
552
  Ot.displayName = "ResizeBox";
552
553
  export {
553
- Et as ResizeBoxSplit,
554
- Ht as ResizeBoxSplitGroup,
554
+ Ht as ResizeBoxSplit,
555
+ At as ResizeBoxSplitGroup,
555
556
  Ot as default
556
557
  };
package/Result.js CHANGED
@@ -4,9 +4,9 @@ import p from "@unicom-cloud/icons/IconUiClose";
4
4
  import u from "@unicom-cloud/icons/IconUiExclamation";
5
5
  import M from "@unicom-cloud/icons/IconUiInfo";
6
6
  import { forwardRef as Z, useContext as v } from "react";
7
- import { d as R } from "./chunk/B5GDq8NJ.js";
7
+ import { d as R } from "./chunk/-zpSUpGE.js";
8
8
  import { useMergeProps as $ } from "./hooks/useMergeProps.js";
9
- import { y as m } from "./chunk/BzPkh4Zv.js";
9
+ import { y as m } from "./chunk/BAWsPQBM.js";
10
10
  function N() {
11
11
  return /* @__PURE__ */ t(
12
12
  "svg",
package/Select.js CHANGED
@@ -1,5 +1,5 @@
1
- import { S as o } from "./chunk/_m8hLSsx.js";
2
- import { O as r, b as a } from "./chunk/_m8hLSsx.js";
1
+ import { S as o } from "./chunk/dBnNCOIU.js";
2
+ import { O as r, b as a } from "./chunk/dBnNCOIU.js";
3
3
  export {
4
4
  r as SelectOption,
5
5
  a as SelectOptionGroup,