@unicom-cloud/ui 0.8.81 → 0.8.83

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 (280) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +2 -2
  4. package/BackTop.js +2 -2
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +2 -2
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +2 -2
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +5 -4
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +7 -7
  19. package/Descriptions.js +1 -1
  20. package/Divider.js +1 -1
  21. package/Draggable.js +1 -1
  22. package/Dropdown.js +1 -1
  23. package/Empty.js +1 -1
  24. package/Icon.js +1 -1
  25. package/IconHover.js +1 -1
  26. package/Image.js +1 -1
  27. package/Input.js +11 -10
  28. package/InputNumber.js +1 -1
  29. package/Layout.js +1 -1
  30. package/Link.js +1 -1
  31. package/List.js +2 -2
  32. package/Mentions.js +2 -2
  33. package/Menu.js +1 -1
  34. package/Message.js +1 -1
  35. package/Modal.js +1 -1
  36. package/Notice.js +1 -1
  37. package/Notification.js +5 -5
  38. package/OverflowEllipsis.js +1 -1
  39. package/PageHeader.js +1 -1
  40. package/Pagination.js +1 -1
  41. package/Popconfirm.js +1 -1
  42. package/Popover.js +1 -1
  43. package/Progress.js +1 -1
  44. package/Radio.js +1 -1
  45. package/Rate.js +1 -1
  46. package/ResizeBox.js +1 -1
  47. package/Result.js +1 -1
  48. package/Select.js +1 -1
  49. package/Skeleton.js +1 -1
  50. package/Slider.js +1 -1
  51. package/Space.js +1 -1
  52. package/SpeechSynthesis.js +1 -1
  53. package/Spin.js +1 -1
  54. package/Statistic.js +2 -2
  55. package/Steps.js +1 -1
  56. package/Switch.js +1 -1
  57. package/Table.js +1 -1
  58. package/Tabs.js +1 -1
  59. package/Tag.js +1 -1
  60. package/Tooltip.js +1 -1
  61. package/Transfer.js +2 -2
  62. package/Tree.js +1 -1
  63. package/TreeSelect.js +1 -1
  64. package/Trigger.js +1 -1
  65. package/Typography.js +1 -1
  66. package/affix/index.js +60 -57
  67. package/alert/index.js +53 -53
  68. package/anchor/Anchor.js +72 -72
  69. package/anchor/Link.js +27 -27
  70. package/anchor/util.js +1 -1
  71. package/auto-complete/index.js +2 -2
  72. package/avatar/Avatar.js +31 -31
  73. package/avatar/Group.js +25 -25
  74. package/back-top/index.js +30 -30
  75. package/badge/index.js +37 -37
  76. package/breadcrumb/index.js +26 -26
  77. package/button/Group.js +7 -7
  78. package/button/index.js +29 -29
  79. package/calendar/index.js +2 -2
  80. package/card/Grid.js +12 -12
  81. package/card/Meta.js +17 -17
  82. package/card/index.js +44 -44
  83. package/carousel/Arrow.js +19 -19
  84. package/carousel/Indicator.js +25 -25
  85. package/carousel/index.js +77 -77
  86. package/cascader/Cascader.js +2 -2
  87. package/cascader/index.js +1 -1
  88. package/cascader/util.js +1 -1
  89. package/checkbox/Checkbox.js +2 -2
  90. package/checkbox/Group.js +2 -2
  91. package/checkbox/GroupBlock.js +2 -2
  92. package/checkbox/index.js +2 -2
  93. package/chunk/B6r8jPCd.js +6 -0
  94. package/chunk/{DLBfXSnU.js → BmulTYLW.js} +2880 -2878
  95. package/chunk/C9oo3EJI.js +692 -0
  96. package/chunk/{C5X4hOkx.js → CVSWh4ZZ.js} +80 -80
  97. package/chunk/DILUZgXW.js +1464 -0
  98. package/chunk/DSRHFFrc.js +53 -0
  99. package/chunk/{yLRv5RIK.js → DdJVL_4g.js} +181 -181
  100. package/chunk/{DYspELhF.js → DlHiTTJO.js} +223 -223
  101. package/chunk/{BG7YGUsx.js → R-uQJib2.js} +119 -119
  102. package/chunk/{DEiyXzBZ.js → ev6oHWqY.js} +63 -63
  103. package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
  104. package/collapse/Collapse.js +2 -2
  105. package/collapse/Item.js +2 -2
  106. package/collapse/index.js +1 -1
  107. package/color-picker/ControlBar.js +36 -36
  108. package/color-picker/InputAlpha.js +11 -11
  109. package/color-picker/InputHex.js +24 -24
  110. package/color-picker/InputRgb.js +23 -23
  111. package/color-picker/Palette.js +18 -18
  112. package/color-picker/Panel.js +2 -2
  113. package/color-picker/index.js +2 -2
  114. package/comment/index.js +31 -31
  115. package/config-provider/ConfigProvider.js +5 -3
  116. package/config-provider/context.js +2 -2
  117. package/config-provider/index.js +4 -3
  118. package/copy/index.js +28 -28
  119. package/date-picker/Picker.js +276 -276
  120. package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
  121. package/date-picker/index.js +26 -27
  122. package/descriptions/index.js +33 -33
  123. package/divider/index.js +12 -12
  124. package/draggable/index.js +23 -23
  125. package/drawer/Drawer.js +81 -81
  126. package/dropdown/Button.js +1 -1
  127. package/dropdown/index.js +56 -56
  128. package/empty/index.js +1 -1
  129. package/form/Form.js +76 -76
  130. package/form/FormItem.js +64 -64
  131. package/form/context.js +1 -1
  132. package/grid/Col.js +53 -53
  133. package/grid/Row.js +34 -34
  134. package/grid/grid-item.js +29 -29
  135. package/grid/grid.js +50 -50
  136. package/icon/index.js +20 -19
  137. package/icon-hover/index.js +1 -1
  138. package/image/Image.js +86 -86
  139. package/image/ImagePreview.js +2 -2
  140. package/image/ImagePreviewArrow.js +22 -22
  141. package/image/ImagePreviewGroup.js +1 -1
  142. package/image/index.js +1 -1
  143. package/index.js +498 -493
  144. package/input/Button.js +11 -0
  145. package/input/Group.js +8 -8
  146. package/input/Input.js +488 -434
  147. package/input/InputElement.js +1 -1
  148. package/input/Password.js +1 -1
  149. package/input/Search.js +1 -1
  150. package/input/Textarea.js +1 -1
  151. package/input/index.js +9 -8
  152. package/input-number/index.js +1 -1
  153. package/input-tag/InputTag.js +40 -40
  154. package/layout/Content.js +7 -7
  155. package/layout/Footer.js +9 -9
  156. package/layout/Header.js +7 -7
  157. package/layout/Sider.js +55 -55
  158. package/layout/index.js +32 -32
  159. package/link/index.js +35 -35
  160. package/list/Item.js +29 -29
  161. package/list/Meta.js +12 -12
  162. package/list/index.js +2 -2
  163. package/mentions/index.js +2 -2
  164. package/menu/Menu.js +2 -2
  165. package/menu/OverflowWrap.js +1 -1
  166. package/menu/index.js +2 -2
  167. package/message/index.js +1 -1
  168. package/message/useMessage.js +1 -1
  169. package/modal/Confirm.js +2 -2
  170. package/modal/Modal.js +2 -2
  171. package/modal/index.js +1 -1
  172. package/notice/index.js +1 -1
  173. package/notification/index.js +5 -5
  174. package/notification/useNotification.js +1 -1
  175. package/overflow-ellipsis/OverflowItem.js +12 -12
  176. package/overflow-ellipsis/index.js +24 -24
  177. package/package.json +1 -1
  178. package/page-header/index.js +38 -38
  179. package/pagination/PageItem.js +16 -16
  180. package/pagination/PageJumper.js +1 -1
  181. package/pagination/PageOption.js +2 -2
  182. package/pagination/Pagination.js +2 -2
  183. package/pagination/index.js +1 -1
  184. package/picker/Input.js +69 -69
  185. package/picker/InputRange.js +111 -111
  186. package/popconfirm/index.js +61 -61
  187. package/popover/index.js +35 -35
  188. package/progress/index.js +22 -22
  189. package/radio/Group.js +2 -2
  190. package/radio/GroupBlock.js +2 -2
  191. package/radio/Radio.js +2 -2
  192. package/radio/index.js +2 -2
  193. package/rate/index.js +49 -49
  194. package/resize-box/ResizeTrigger.js +34 -34
  195. package/resize-box/Split.js +56 -56
  196. package/resize-box/SplitGroup.js +55 -55
  197. package/resize-box/index.js +51 -51
  198. package/result/index.js +41 -41
  199. package/select/Option.js +1 -1
  200. package/select/Select.js +2 -2
  201. package/select/index.js +2 -2
  202. package/select/util.js +1 -1
  203. package/select-view/Core.js +125 -125
  204. package/skeleton/index.js +20 -20
  205. package/slider/Button.js +57 -57
  206. package/slider/index.js +116 -116
  207. package/space/index.js +46 -44
  208. package/speech-synthesis/index.js +1 -1
  209. package/spin/DotLoading.js +10 -10
  210. package/spin/index.js +44 -44
  211. package/statistic/Countdown.js +34 -34
  212. package/statistic/index.js +67 -67
  213. package/steps/index.js +55 -55
  214. package/style.css +1 -1
  215. package/switch/index.js +54 -54
  216. package/table/Table.js +3 -3
  217. package/table/index.js +1 -1
  218. package/tabs/Tab.js +2 -2
  219. package/tabs/TabContent.js +2 -2
  220. package/tabs/TabPane.js +12 -12
  221. package/tabs/index.js +2 -2
  222. package/tag/index.js +45 -45
  223. package/time-picker/Picker.js +76 -76
  224. package/time-picker/TimePicker.js +136 -136
  225. package/time-picker/index.js +8 -8
  226. package/time-picker/util.js +5 -5
  227. package/timeline/Item.js +47 -47
  228. package/timeline/Timeline.js +41 -41
  229. package/tooltip/index.js +29 -29
  230. package/transfer/Item.js +2 -2
  231. package/transfer/List.js +2 -2
  232. package/transfer/index.js +2 -2
  233. package/tree/Animation.js +2 -2
  234. package/tree/Node.js +2 -2
  235. package/tree/NodeList.js +1 -1
  236. package/tree/Tree.js +2 -2
  237. package/tree/index.js +1 -1
  238. package/tree-select/List.js +1 -1
  239. package/tree-select/Select.js +2 -2
  240. package/tree-select/index.js +2 -2
  241. package/trigger/index.js +60 -60
  242. package/types/config-provider/ConfigProvider.d.ts +2 -2
  243. package/types/config-provider/context.d.ts +1 -1
  244. package/types/date-picker/index.d.ts +8 -9
  245. package/types/date-picker/interface.d.ts +9 -9
  246. package/types/index.d.ts +2 -2
  247. package/types/input/Button.d.ts +5 -0
  248. package/types/input/Input.d.ts +4 -1
  249. package/types/input/interface.d.ts +7 -0
  250. package/types/picker/Input.d.ts +2 -2
  251. package/types/space/index.d.ts +2 -1
  252. package/types/utils/index.d.ts +1 -0
  253. package/types/utils/names.d.ts +1 -1
  254. package/types/utils/setTheme.d.ts +2 -0
  255. package/typography/Base.js +53 -53
  256. package/typography/Ellipsis.js +10 -8
  257. package/typography/Operations.js +28 -28
  258. package/typography/Paragraph.js +8 -8
  259. package/typography/Typography.js +7 -7
  260. package/typography/index.js +1 -1
  261. package/upload/TriggerNode.js +47 -47
  262. package/upload/Upload.js +184 -184
  263. package/upload/request.js +1 -1
  264. package/upload/request_.js +1 -1
  265. package/utils/constant.js +1 -1
  266. package/utils/contextHolder.js +3 -3
  267. package/utils/dom.js +1 -1
  268. package/utils/index.js +116 -114
  269. package/utils/names.js +1 -1
  270. package/utils/setDarkTheme.js +23 -22
  271. package/utils/setPrimaryColor.js +22 -16
  272. package/utils/setTheme.js +9 -0
  273. package/utils/tween.js +1 -1
  274. package/verification-code/VerificationCode.js +49 -49
  275. package/version/index.js +1 -1
  276. package/watermark/Watermark.js +24 -24
  277. package/chunk/CQvM33Vg.js +0 -724
  278. package/chunk/D0ZWT7db.js +0 -5
  279. package/chunk/yhU2zeeu.js +0 -1461
  280. /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
@@ -1,53 +1,53 @@
1
- import { jsx as B, jsxs as wt } from "react/jsx-runtime";
1
+ import { jsx as D, jsxs as wt } from "react/jsx-runtime";
2
2
  import dt from "lodash/isFunction";
3
3
  import Mt from "lodash/isNumber";
4
4
  import S from "lodash/isPlainObject";
5
5
  import Ot from "lodash/isString";
6
- import W from "lodash/isUndefined";
7
- import Ct, { forwardRef as xt, useContext as St, useRef as z, useState as b, useEffect as L, useImperativeHandle as zt } from "react";
8
- import { a as Pt } from "../chunk/CQvM33Vg.js";
9
- import Rt from "@unicom-cloud/utils/class-name";
10
- import { on as P, off as R } from "../utils/dom.js";
11
- import { o as Nt } from "../chunk/BKKEev13.js";
6
+ import L from "lodash/isUndefined";
7
+ import Ct, { forwardRef as xt, useContext as St, useRef as z, useState as b, useEffect as Y, useImperativeHandle as zt } from "react";
8
+ import { a as Rt } from "../chunk/C9oo3EJI.js";
9
+ import Nt from "@unicom-cloud/utils/class-name";
10
+ import { on as R, off as N } from "../utils/dom.js";
11
+ import { o as Pt } from "../chunk/BKKEev13.js";
12
12
  import pt from "./ResizeTrigger.js";
13
- const D = "horizontal", Y = "vertical";
14
- function Tt(c, _) {
13
+ const j = "horizontal", _ = "vertical";
14
+ function Tt(c, J) {
15
15
  const {
16
16
  panes: f,
17
- style: J,
18
- className: U,
19
- component: Z = "div",
20
- direction: q = "horizontal",
21
- icon: K,
22
- ...Q
23
- } = c, { getPrefixCls: tt, rtl: j } = St(Pt), et = 1 / f.length, g = z(), y = z(
17
+ style: U,
18
+ className: Z,
19
+ component: q = "div",
20
+ direction: K = "horizontal",
21
+ icon: Q,
22
+ ...tt
23
+ } = c, { getPrefixCls: y, rtl: k } = St(Rt), et = 1 / f.length, g = z(), A = z(
24
24
  new Array(f.length).fill({
25
25
  moving: !1,
26
26
  startOffset: 0,
27
27
  startPosition: 0
28
28
  })
29
- ), nt = z([]), N = z(0), p = z([]), [l, A] = b(
29
+ ), nt = z([]), P = z(0), p = z([]), [l, E] = b(
30
30
  new Array(f.length).fill(et)
31
- ), [ot, k] = b(!1), [E, rt] = b(
31
+ ), [ot, F] = b(!1), [I, rt] = b(
32
32
  new Array(f.length).fill(0)
33
33
  ), [w, st] = b(
34
34
  new Array(Math.max(f.length - 1, 0)).fill({ prev: !1, next: !1 })
35
- ), d = tt("resizebox-split-group"), v = q === D, ct = v && j, I = !v, it = Rt(
35
+ ), d = y == null ? void 0 : y("resizebox-split-group"), v = K === j, ct = v && k, H = !v, it = Nt(
36
36
  d,
37
- `${d}-${v ? D : Y}`,
37
+ `${d}-${v ? j : _}`,
38
38
  { [`${d}-moving`]: ot },
39
- { [`${d}-rtl`]: j },
40
- U
41
- ), at = Z, ft = () => {
39
+ { [`${d}-rtl`]: k },
40
+ Z
41
+ ), at = q, ft = () => {
42
42
  let t = [];
43
43
  f.forEach((o) => {
44
44
  const { size: s } = o;
45
- W(s) ? t.push(void 0) : t.push(M(s));
45
+ L(s) ? t.push(void 0) : t.push(M(s));
46
46
  });
47
47
  const e = t.filter((o) => !o), r = (1 - t.reduce((o, s) => (o || 0) + (s || 0), 0)) / e.length;
48
- return t = t.map((o) => W(o) ? r : o), t;
48
+ return t = t.map((o) => L(o) ? r : o), t;
49
49
  }, lt = (t) => {
50
- const e = E[t - 1] || 0, n = E[t];
50
+ const e = I[t - 1] || 0, n = I[t];
51
51
  return `calc(${l[t] * 100}% - ${(e + n) / 2}px)`;
52
52
  };
53
53
  function M(t) {
@@ -57,7 +57,7 @@ function Tt(c, _) {
57
57
  const n = Ot(t) ? parseFloat(t) / e : t;
58
58
  return Math.min(n, 1);
59
59
  }
60
- const H = (t) => {
60
+ const X = (t) => {
61
61
  const e = Math.min(t + 1, f.length - 1), n = l[t] + l[e], r = M(f[t].min) || 0;
62
62
  let o = M(f[t].max) || n;
63
63
  const s = M(f[e].min) || 0;
@@ -69,12 +69,12 @@ function Tt(c, _) {
69
69
  nextMax: i
70
70
  };
71
71
  }, ut = (t, e, n) => {
72
- const r = N.current, o = r + 1, s = [...l], i = ct ? -1 : 1, h = l[r], C = l[o], x = h + C, { currentMin: m, currentMax: a } = H(r);
72
+ const r = P.current, o = r + 1, s = [...l], i = ct ? -1 : 1, h = l[r], C = l[o], x = h + C, { currentMin: m, currentMax: a } = X(r);
73
73
  let u = t + M(`${(n - e) * i}px`);
74
74
  return u = Math.max(m, u), u = Math.min(a, u), s[r] = u, s[o] = x - u, s;
75
75
  };
76
76
  function mt(t, e) {
77
- const { contentRect: n } = t[0], r = n[I ? "height" : "width"], o = [...E];
77
+ const { contentRect: n } = t[0], r = n[H ? "height" : "width"], o = [...I];
78
78
  o[e] = r, rt(o);
79
79
  }
80
80
  const gt = (t) => {
@@ -90,20 +90,20 @@ function Tt(c, _) {
90
90
  };
91
91
  function vt(t, e) {
92
92
  var r;
93
- (r = c.onMovingStart) == null || r.call(c, e), N.current = e;
94
- const n = y.current[e];
95
- n.moving = !0, n.startOffset = l[e], n.startPosition = v ? t.pageX : t.pageY, k(!0), P(window, "mousemove", T), P(window, "touchmove", T), P(window, "mouseup", O), P(window, "touchend", O), P(window, "contextmenu", O), document.body.style.cursor = I ? "row-resize" : "col-resize";
93
+ (r = c.onMovingStart) == null || r.call(c, e), P.current = e;
94
+ const n = A.current[e];
95
+ n.moving = !0, n.startOffset = l[e], n.startPosition = v ? t.pageX : t.pageY, F(!0), R(window, "mousemove", T), R(window, "touchmove", T), R(window, "mouseup", O), R(window, "touchend", O), R(window, "contextmenu", O), document.body.style.cursor = H ? "row-resize" : "col-resize";
96
96
  }
97
97
  function T(t) {
98
98
  var o;
99
- const e = N.current, n = y.current[e], r = v ? g.current.offsetWidth : g.current.offsetHeight;
99
+ const e = P.current, n = A.current[e], r = v ? g.current.offsetWidth : g.current.offsetHeight;
100
100
  if (n.moving) {
101
101
  const s = ut(
102
102
  n.startOffset,
103
103
  n.startPosition,
104
104
  v ? t.pageX : t.pageY
105
105
  );
106
- A(s), p.current = s, (o = c == null ? void 0 : c.onMoving) == null || o.call(
106
+ E(s), p.current = s, (o = c == null ? void 0 : c.onMoving) == null || o.call(
107
107
  c,
108
108
  t,
109
109
  s.map((i) => `${i * r}px`),
@@ -113,39 +113,39 @@ function Tt(c, _) {
113
113
  }
114
114
  function O() {
115
115
  var e;
116
- const t = N.current;
117
- y.current[t].moving = !1, k(!1), R(window, "mousemove", T), R(window, "touchmove", T), R(window, "mouseup", O), R(window, "touchend", O), R(window, "contextmenu", O), document.body.style.cursor = "default", (e = c.onMovingEnd) == null || e.call(c, t);
116
+ const t = P.current;
117
+ A.current[t].moving = !1, F(!1), N(window, "mousemove", T), N(window, "touchmove", T), N(window, "mouseup", O), N(window, "touchend", O), N(window, "contextmenu", O), document.body.style.cursor = "default", (e = c.onMovingEnd) == null || e.call(c, t);
118
118
  }
119
- function F(t, e, n, r) {
120
- var G, V;
121
- const o = e + 1, s = [...l], i = l[e], h = l[o], C = i + h, x = v ? g.current.offsetWidth : g.current.offsetHeight, { currentMin: m, nextMin: a } = H(e);
122
- let u = p.current[e], $ = p.current[o], X = w[e][n];
123
- n === "prev" ? (h !== a || $ === a) && (u = m, $ = C - m, X = !0) : (i !== m || u === m) && (u = C - a, $ = a, X = !0), s[e] = u, s[o] = $, (G = c == null ? void 0 : c.onMoving) == null || G.call(
119
+ function G(t, e, n, r) {
120
+ var V, W;
121
+ const o = e + 1, s = [...l], i = l[e], h = l[o], C = i + h, x = v ? g.current.offsetWidth : g.current.offsetHeight, { currentMin: m, nextMin: a } = X(e);
122
+ let u = p.current[e], $ = p.current[o], B = w[e][n];
123
+ n === "prev" ? (h !== a || $ === a) && (u = m, $ = C - m, B = !0) : (i !== m || u === m) && (u = C - a, $ = a, B = !0), s[e] = u, s[o] = $, (V = c == null ? void 0 : c.onMoving) == null || V.call(
124
124
  c,
125
125
  t,
126
126
  s.map((ht) => `${ht * x}px`),
127
127
  e
128
- ), (V = c.onMovingEnd) == null || V.call(c, e), A(s), dt(r) && r(t, e, n, X);
128
+ ), (W = c.onMovingEnd) == null || W.call(c, e), E(s), dt(r) && r(t, e, n, B);
129
129
  }
130
- return L(() => {
130
+ return Y(() => {
131
131
  const t = ft();
132
- A(t), p.current = t;
133
- }, [JSON.stringify(f.map((t) => t.size))]), zt(_, () => g.current, []), L(() => {
132
+ E(t), p.current = t;
133
+ }, [JSON.stringify(f.map((t) => t.size))]), zt(J, () => g.current, []), Y(() => {
134
134
  const t = [];
135
135
  l.forEach((e, n) => {
136
- const r = { prev: !1, next: !1 }, o = n + 1, { currentMin: s, nextMin: i } = H(n);
136
+ const r = { prev: !1, next: !1 }, o = n + 1, { currentMin: s, nextMin: i } = X(n);
137
137
  e === s ? r.prev = !0 : l[o] === i && (r.next = !0), t.push(r);
138
138
  }), st(t);
139
- }, [l]), /* @__PURE__ */ B(
139
+ }, [l]), /* @__PURE__ */ D(
140
140
  at,
141
141
  {
142
- ...Nt(Q, [
142
+ ...Pt(tt, [
143
143
  "onMovingStart",
144
144
  "onPaneResize",
145
145
  "onMoving",
146
146
  "onMovingEnd"
147
147
  ]),
148
- style: J,
148
+ style: U,
149
149
  className: it,
150
150
  ref: g,
151
151
  children: f.map((t, e) => {
@@ -157,7 +157,7 @@ function Tt(c, _) {
157
157
  collapsible: i = {}
158
158
  } = t, { hasPrev: h, hasNext: C } = gt(e), x = S(i) && S(i.prev) ? i.prev : {}, m = S(i) && S(i.next) ? i.next : {};
159
159
  return /* @__PURE__ */ wt(Ct.Fragment, { children: [
160
- /* @__PURE__ */ B(
160
+ /* @__PURE__ */ D(
161
161
  "div",
162
162
  {
163
163
  className: `${d}-pane`,
@@ -166,22 +166,22 @@ function Tt(c, _) {
166
166
  children: n
167
167
  }
168
168
  ),
169
- !r && e !== f.length - 1 && /* @__PURE__ */ B(
169
+ !r && e !== f.length - 1 && /* @__PURE__ */ D(
170
170
  pt,
171
171
  {
172
172
  className: `${d}-trigger`,
173
- direction: I ? D : Y,
174
- icon: K,
173
+ direction: H ? j : _,
174
+ icon: Q,
175
175
  onResize: (a) => mt(a, e),
176
176
  onMouseDown: (a) => vt(a, e),
177
177
  collapsible: {
178
178
  prev: h ? {
179
- onClick: (a) => F(a, e, "prev", x.onClick),
179
+ onClick: (a) => G(a, e, "prev", x.onClick),
180
180
  icon: x.icon,
181
181
  collapsed: w[e].prev
182
182
  } : void 0,
183
183
  next: C ? {
184
- onClick: (a) => F(a, e, "next", m.onClick),
184
+ onClick: (a) => G(a, e, "next", m.onClick),
185
185
  icon: m.icon,
186
186
  collapsed: w[e].next
187
187
  } : void 0
@@ -1,19 +1,19 @@
1
1
  import { jsxs as ot, jsx as rt } from "react/jsx-runtime";
2
- import B from "lodash/isNumber";
3
- import { forwardRef as nt, useContext as st, useState as it, useRef as E, useImperativeHandle as ct } from "react";
4
- import { a as at } from "../chunk/CQvM33Vg.js";
2
+ import E from "lodash/isNumber";
3
+ import { forwardRef as nt, useContext as st, useState as it, useRef as W, useImperativeHandle as ct } from "react";
4
+ import { a as at } from "../chunk/C9oo3EJI.js";
5
5
  import { u as ut } from "../chunk/BFTV6myl.js";
6
- import { u as W } from "../chunk/CXPOj2uy.js";
6
+ import { u as $ } from "../chunk/CXPOj2uy.js";
7
7
  import mt from "@unicom-cloud/utils/class-name";
8
8
  import { on as g, off as l } from "../utils/dom.js";
9
9
  import { o as dt } from "../chunk/BKKEev13.js";
10
10
  import gt from "./ResizeTrigger.js";
11
11
  import lt from "./Split.js";
12
12
  import ft from "./SplitGroup.js";
13
- const $ = "left", z = "right", b = "top", x = "bottom", pt = [
14
- $,
15
- z,
13
+ const X = "left", b = "right", y = "top", x = "bottom", pt = [
14
+ X,
16
15
  b,
16
+ y,
17
17
  x
18
18
  ], ht = {
19
19
  component: "div",
@@ -30,28 +30,28 @@ const $ = "left", z = "right", b = "top", x = "bottom", pt = [
30
30
  return f;
31
31
  }
32
32
  };
33
- function vt(f, X) {
34
- const { getPrefixCls: Y, componentConfig: w, rtl: T } = st(at), r = ut(
33
+ function vt(f, Y) {
34
+ const { getPrefixCls: w, componentConfig: v, rtl: I } = st(at), r = ut(
35
35
  f,
36
36
  ht,
37
- w == null ? void 0 : w.ResizeBox
37
+ v == null ? void 0 : v.ResizeBox
38
38
  ), {
39
- style: P,
40
- className: k,
41
- component: G,
39
+ style: k,
40
+ className: G,
41
+ component: _,
42
42
  directions: C,
43
- resizeIcons: _,
44
- children: A,
43
+ resizeIcons: A,
44
+ children: P,
45
45
  resizeTriggers: j,
46
46
  width: F,
47
47
  height: q,
48
48
  ...K
49
- } = r, L = T ? C.map((t) => wt(t)) : C, v = Y("resizebox"), U = mt(v, { [`${v}-rtl`]: T }, k), [V, J] = it({}), [I, N] = W(void 0, { value: F }), [S, H] = W(void 0, { value: q }), o = E({
49
+ } = r, L = I ? C.map((t) => wt(t)) : C, R = w == null ? void 0 : w("resizebox"), U = mt(R, { [`${R}-rtl`]: I }, G), [V, J] = it({}), [N, S] = $(void 0, { value: F }), [H, M] = $(void 0, { value: q }), o = W({
50
50
  startX: 0,
51
51
  startY: 0,
52
52
  startWidth: 0,
53
53
  startHeight: 0,
54
- direction: z,
54
+ direction: b,
55
55
  moving: !1,
56
56
  padding: {
57
57
  top: 0,
@@ -59,18 +59,18 @@ function vt(f, X) {
59
59
  left: 0,
60
60
  right: 0
61
61
  }
62
- }), p = E();
63
- ct(X, () => p.current, []);
64
- function R(t) {
65
- return [b, x].indexOf(t) > -1;
62
+ }), p = W();
63
+ ct(Y, () => p.current, []);
64
+ function z(t) {
65
+ return [y, x].indexOf(t) > -1;
66
66
  }
67
- function M(t, e) {
67
+ function O(t, e) {
68
68
  if (t === 0)
69
69
  return 0;
70
70
  const n = t - e;
71
71
  return n <= 0 ? 0 : n;
72
72
  }
73
- function O(t) {
73
+ function D(t) {
74
74
  const e = "data-pqb-origin-cursor";
75
75
  if (t)
76
76
  document.body.setAttribute(e, document.body.style.cursor), document.body.style.cursor = t;
@@ -83,51 +83,51 @@ function vt(f, X) {
83
83
  var i, m, d;
84
84
  (i = r.onMovingStart) == null || i.call(r), o.current.moving = !0, o.current.startX = e.pageX, o.current.startY = e.pageY, o.current.direction = t;
85
85
  const { top: n, left: c, right: a, bottom: s } = o.current.padding;
86
- o.current.startWidth = M(
86
+ o.current.startWidth = O(
87
87
  (m = p.current) == null ? void 0 : m.clientWidth,
88
88
  c + a
89
- ), o.current.startHeight = M(
89
+ ), o.current.startHeight = O(
90
90
  (d = p.current) == null ? void 0 : d.clientHeight,
91
91
  n + s
92
- ), g(window, "mousemove", h), g(window, "touchmove", h), g(window, "mouseup", u), g(window, "touchend", u), g(window, "contextmenu", u), O(
93
- R(t) ? "row-resize" : "col-resize"
92
+ ), g(window, "mousemove", h), g(window, "touchmove", h), g(window, "mouseup", u), g(window, "touchend", u), g(window, "contextmenu", u), D(
93
+ z(t) ? "row-resize" : "col-resize"
94
94
  );
95
95
  }
96
96
  function h(t) {
97
- var D;
97
+ var B;
98
98
  if (!o.current.moving)
99
99
  return !1;
100
100
  const { startX: e, startY: n, startWidth: c, startHeight: a } = o.current;
101
101
  let s = c, i = a;
102
102
  const m = t.pageX - e, d = t.pageY - n;
103
103
  switch (o.current.direction) {
104
- case $:
105
- s = c - m, N(s);
106
- break;
107
- case z:
108
- s = c + m, N(s);
104
+ case X:
105
+ s = c - m, S(s);
109
106
  break;
110
107
  case b:
111
- i = a - d, H(i);
108
+ s = c + m, S(s);
109
+ break;
110
+ case y:
111
+ i = a - d, M(i);
112
112
  break;
113
113
  case x:
114
- i = a + d, H(i);
114
+ i = a + d, M(i);
115
115
  break;
116
116
  }
117
- (D = r.onMoving) == null || D.call(r, t, {
117
+ (B = r.onMoving) == null || B.call(r, t, {
118
118
  width: s,
119
119
  height: i
120
120
  });
121
121
  }
122
122
  function u() {
123
123
  var t;
124
- o.current.moving = !1, Z(), O(), (t = r.onMovingEnd) == null || t.call(r);
124
+ o.current.moving = !1, Z(), D(), (t = r.onMovingEnd) == null || t.call(r);
125
125
  }
126
126
  function Z() {
127
127
  l(window, "mousemove", h), l(window, "touchmove", h), l(window, "mouseup", u), l(window, "touchend", u), l(window, "contextmenu", u);
128
128
  }
129
129
  function tt(t, e) {
130
- const n = R(t), { contentRect: c } = e[0], a = `${t.slice(0, 1).toUpperCase()}${t.slice(1)}`, s = c[n ? "height" : "width"];
130
+ const n = z(t), { contentRect: c } = e[0], a = `${t.slice(0, 1).toUpperCase()}${t.slice(1)}`, s = c[n ? "height" : "width"];
131
131
  o.current.padding[t] = s, J((i) => ({
132
132
  ...i,
133
133
  [`padding${a}`]: s
@@ -135,27 +135,27 @@ function vt(f, X) {
135
135
  }
136
136
  const et = {
137
137
  ...V,
138
- ...P || {},
139
- ...B(I) ? { width: I } : {},
140
- ...B(S) ? { height: S } : {}
138
+ ...k || {},
139
+ ...E(N) ? { width: N } : {},
140
+ ...E(H) ? { height: H } : {}
141
141
  };
142
142
  return /* @__PURE__ */ ot(
143
- G,
143
+ _,
144
144
  {
145
145
  ...dt(K, ["onMovingStart", "onMoving", "onMovingEnd"]),
146
146
  style: et,
147
147
  className: U,
148
148
  ref: p,
149
149
  children: [
150
- A,
150
+ P,
151
151
  L.map((t) => {
152
152
  if (pt.indexOf(t) !== -1)
153
153
  return /* @__PURE__ */ rt(
154
154
  gt,
155
155
  {
156
- className: `${v}-direction-${t}`,
157
- direction: R(t) ? "horizontal" : "vertical",
158
- icon: _[t],
156
+ className: `${R}-direction-${t}`,
157
+ direction: z(t) ? "horizontal" : "vertical",
158
+ icon: A[t],
159
159
  onMouseDown: (e) => {
160
160
  Q(t, e);
161
161
  },
@@ -171,12 +171,12 @@ function vt(f, X) {
171
171
  }
172
172
  );
173
173
  }
174
- const Rt = nt(vt), y = Rt;
175
- y.Split = lt;
176
- y.SplitGroup = ft;
177
- y.displayName = "ResizeBox";
174
+ const Rt = nt(vt), T = Rt;
175
+ T.Split = lt;
176
+ T.SplitGroup = ft;
177
+ T.displayName = "ResizeBox";
178
178
  export {
179
179
  lt as ResizeBoxSplit,
180
180
  ft as ResizeBoxSplitGroup,
181
- y as default
181
+ T as default
182
182
  };
package/result/index.js CHANGED
@@ -1,47 +1,47 @@
1
- import { jsxs as h, jsx as s } from "react/jsx-runtime";
2
- import g from "@unicom-cloud/icons/IconUiCheck";
3
- import v from "@unicom-cloud/icons/IconUiClose";
4
- import C from "@unicom-cloud/icons/IconUiExclamation";
5
- import R from "@unicom-cloud/icons/IconUiInfo";
6
- import { forwardRef as U, useContext as P } from "react";
7
- import { a as b } from "../chunk/CQvM33Vg.js";
8
- import { u as j } from "../chunk/BFTV6myl.js";
9
- import m from "@unicom-cloud/utils/class-name";
10
- import w from "./403.js";
11
- import y from "./404.js";
12
- import k from "./500.js";
13
- const E = {
14
- success: /* @__PURE__ */ s(g, {}),
15
- info: /* @__PURE__ */ s(R, {}),
16
- warning: /* @__PURE__ */ s(C, {}),
17
- error: /* @__PURE__ */ s(v, {}),
18
- 404: /* @__PURE__ */ s(y, {}),
19
- 403: /* @__PURE__ */ s(w, {}),
20
- 500: /* @__PURE__ */ s(k, {})
21
- }, M = {
1
+ import { jsxs as x, jsx as s } from "react/jsx-runtime";
2
+ import v from "@unicom-cloud/icons/IconUiCheck";
3
+ import R from "@unicom-cloud/icons/IconUiClose";
4
+ import g from "@unicom-cloud/icons/IconUiExclamation";
5
+ import C from "@unicom-cloud/icons/IconUiInfo";
6
+ import { forwardRef as U, useContext as b } from "react";
7
+ import { a as j } from "../chunk/C9oo3EJI.js";
8
+ import { u as w } from "../chunk/BFTV6myl.js";
9
+ import f from "@unicom-cloud/utils/class-name";
10
+ import y from "./403.js";
11
+ import k from "./404.js";
12
+ import E from "./500.js";
13
+ const M = {
14
+ success: /* @__PURE__ */ s(v, {}),
15
+ info: /* @__PURE__ */ s(C, {}),
16
+ warning: /* @__PURE__ */ s(g, {}),
17
+ error: /* @__PURE__ */ s(R, {}),
18
+ 404: /* @__PURE__ */ s(k, {}),
19
+ 403: /* @__PURE__ */ s(y, {}),
20
+ 500: /* @__PURE__ */ s(E, {})
21
+ }, P = {
22
22
  status: "info"
23
23
  };
24
- function T(f, p) {
25
- const { getPrefixCls: u, componentConfig: e, rtl: d } = P(b), r = j(
26
- f,
27
- M,
24
+ function T(p, u) {
25
+ const { getPrefixCls: r, componentConfig: e, rtl: d } = b(j), i = w(
26
+ p,
27
+ P,
28
28
  e == null ? void 0 : e.Result
29
29
  ), {
30
30
  className: $,
31
31
  style: N,
32
32
  status: t,
33
- title: i,
34
- subTitle: c,
35
- extra: n,
36
- children: a,
37
- icon: x,
38
- ...I
39
- } = r, o = u("result"), l = "icon" in r ? x : E[t];
40
- return /* @__PURE__ */ h(
33
+ title: c,
34
+ subTitle: n,
35
+ extra: a,
36
+ children: m,
37
+ icon: I,
38
+ ...h
39
+ } = i, o = r == null ? void 0 : r("result"), l = "icon" in i ? I : M[t];
40
+ return /* @__PURE__ */ x(
41
41
  "div",
42
42
  {
43
- ref: p,
44
- className: m(
43
+ ref: u,
44
+ className: f(
45
45
  o,
46
46
  {
47
47
  [`${o}-is-${t}`]: t,
@@ -50,22 +50,22 @@ function T(f, p) {
50
50
  $
51
51
  ),
52
52
  style: N,
53
- ...I,
53
+ ...h,
54
54
  children: [
55
55
  l && /* @__PURE__ */ s("div", { className: `${o}-icon`, children: /* @__PURE__ */ s(
56
56
  "span",
57
57
  {
58
- className: m(`${o}-icon-tip`, {
58
+ className: f(`${o}-icon-tip`, {
59
59
  [`${o}-icon-${t}`]: t,
60
60
  [`${o}-icon-custom`]: t === null
61
61
  }),
62
62
  children: l
63
63
  }
64
64
  ) }),
65
- i && /* @__PURE__ */ s("div", { className: `${o}-title`, children: i }),
66
- c && /* @__PURE__ */ s("div", { className: `${o}-subtitle`, children: c }),
67
- n && /* @__PURE__ */ s("div", { className: `${o}-extra`, children: n }),
68
- a && /* @__PURE__ */ s("div", { className: `${o}-content`, children: a })
65
+ c && /* @__PURE__ */ s("div", { className: `${o}-title`, children: c }),
66
+ n && /* @__PURE__ */ s("div", { className: `${o}-subtitle`, children: n }),
67
+ a && /* @__PURE__ */ s("div", { className: `${o}-extra`, children: a }),
68
+ m && /* @__PURE__ */ s("div", { className: `${o}-content`, children: m })
69
69
  ]
70
70
  }
71
71
  );
package/select/Option.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { O as a } from "../chunk/DLBfXSnU.js";
3
+ import { O as a } from "../chunk/BmulTYLW.js";
4
4
  import "@unicom-cloud/utils/class-name";
5
5
  import "../chunk/BKKEev13.js";
6
6
  export {
package/select/Select.js CHANGED
@@ -2,8 +2,8 @@ import "react/jsx-runtime";
2
2
  import "lodash/isArray";
3
3
  import "lodash/isFunction";
4
4
  import "react";
5
- import { O as h, S as j } from "../chunk/DLBfXSnU.js";
6
- import "../chunk/CQvM33Vg.js";
5
+ import { O as h, S as j } from "../chunk/BmulTYLW.js";
6
+ import "../chunk/C9oo3EJI.js";
7
7
  import "../chunk/B4YRLi8r.js";
8
8
  import "../chunk/BFTV6myl.js";
9
9
  import "../chunk/CXPOj2uy.js";
package/select/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { S as o } from "../chunk/DLBfXSnU.js";
2
- import { O as r } from "../chunk/DLBfXSnU.js";
1
+ import { S as o } from "../chunk/BmulTYLW.js";
2
+ import { O as r } from "../chunk/BmulTYLW.js";
3
3
  import { default as f } from "./OptGroup.js";
4
4
  export {
5
5
  r as SelectOption,
package/select/util.js CHANGED
@@ -9,7 +9,7 @@ import "lodash/isString";
9
9
  import "react";
10
10
  import "../chunk/CftuXmo_.js";
11
11
  import "../chunk/B7M-FGia.js";
12
- import { a5 as c, a6 as d, a7 as v, a8 as E, a9 as O, aa as S } from "../chunk/DLBfXSnU.js";
12
+ import { a5 as c, a6 as d, a7 as v, a8 as E, a9 as O, aa as S } from "../chunk/BmulTYLW.js";
13
13
  export {
14
14
  c as flatChildren,
15
15
  d as getValidValue,