@unicom-cloud/ui 0.8.73 → 0.8.75

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 (306) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +3 -3
  3. package/AutoComplete.js +2 -2
  4. package/BackTop.js +4 -4
  5. package/Badge.js +3 -3
  6. package/Breadcrumb.js +3 -3
  7. package/Button.js +2 -2
  8. package/Calendar.js +3 -3
  9. package/Card.js +2 -2
  10. package/Carousel.js +2 -2
  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 +2 -2
  16. package/ConfigProvider.js +1 -1
  17. package/Copy.js +3 -3
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +2 -2
  20. package/Divider.js +2 -2
  21. package/Draggable.js +2 -2
  22. package/Dropdown.js +2 -2
  23. package/Empty.js +2 -2
  24. package/Icon.js +2 -2
  25. package/IconHover.js +2 -2
  26. package/Image.js +1 -1
  27. package/InputNumber.js +2 -2
  28. package/Layout.js +2 -2
  29. package/Link.js +2 -2
  30. package/List.js +2 -2
  31. package/Mentions.js +2 -2
  32. package/Menu.js +1 -1
  33. package/Message.js +4 -4
  34. package/Modal.js +1 -1
  35. package/Notice.js +2 -2
  36. package/Notification.js +4 -4
  37. package/OverflowEllipsis.js +2 -2
  38. package/PageHeader.js +2 -2
  39. package/Popconfirm.js +2 -2
  40. package/Popover.js +2 -2
  41. package/Progress.js +2 -2
  42. package/Radio.js +1 -1
  43. package/Rate.js +2 -2
  44. package/ResizeBox.js +2 -2
  45. package/Result.js +2 -2
  46. package/SelectView.js +1 -1
  47. package/Skeleton.js +2 -2
  48. package/Slider.js +2 -2
  49. package/Space.js +2 -2
  50. package/SpeechSynthesis.js +4 -4
  51. package/Spin.js +2 -2
  52. package/Statistic.js +3 -3
  53. package/Steps.js +2 -2
  54. package/Switch.js +4 -4
  55. package/Table.js +1 -1
  56. package/Tabs.js +1 -1
  57. package/Tag.js +2 -2
  58. package/Tooltip.js +3 -3
  59. package/Transfer.js +2 -2
  60. package/Tree.js +1 -1
  61. package/Trigger.js +3 -3
  62. package/affix/index.js +2 -2
  63. package/alert/index.js +9 -9
  64. package/anchor/Anchor.js +26 -26
  65. package/anchor/Link.js +2 -2
  66. package/anchor/util.js +1 -1
  67. package/auto-complete/index.js +2 -2
  68. package/avatar/Avatar.js +2 -2
  69. package/avatar/Group.js +2 -2
  70. package/back-top/index.js +11 -11
  71. package/badge/Count.js +7 -7
  72. package/badge/index.js +9 -9
  73. package/breadcrumb/Item.js +6 -6
  74. package/breadcrumb/index.js +3 -3
  75. package/button/Group.js +2 -2
  76. package/button/index.js +2 -2
  77. package/calendar/Month.js +2 -2
  78. package/calendar/Year.js +1 -1
  79. package/calendar/index.js +4 -4
  80. package/card/Grid.js +5 -5
  81. package/card/Meta.js +4 -4
  82. package/card/index.js +2 -2
  83. package/carousel/Arrow.js +2 -2
  84. package/carousel/Indicator.js +6 -6
  85. package/carousel/index.js +2 -2
  86. package/cascader/Cascader.js +3 -3
  87. package/cascader/index.js +1 -1
  88. package/cascader/util.js +1 -1
  89. package/checkbox/Checkbox.js +3 -3
  90. package/checkbox/Group.js +3 -3
  91. package/checkbox/index.js +1 -1
  92. package/chunk/{oHDWCJnz.js → 0mWCmQHr.js} +3 -3
  93. package/chunk/{UDX9U6M7.js → B8hkFIar.js} +3 -3
  94. package/chunk/BFmckYou.js +25 -0
  95. package/chunk/{Cj2SQJiO.js → BJ9_azwQ.js} +487 -487
  96. package/chunk/{Dg0M2OmF.js → BViFMHr-.js} +5 -5
  97. package/chunk/BbqvFW5R.js +927 -0
  98. package/chunk/{uKZyjtff.js → BhBEMwvI.js} +21 -20
  99. package/chunk/{Bj4EV0eG.js → BpYX5PN4.js} +1 -1
  100. package/chunk/{B7hulkj9.js → BxZ39GzB.js} +2 -2
  101. package/chunk/C9XYyypq.js +713 -0
  102. package/chunk/CIkPwQlq.js +6 -0
  103. package/chunk/{uH6uxyao.js → CPlPBkN7.js} +2 -2
  104. package/chunk/CUFsOxJ2.js +10 -0
  105. package/chunk/CWlklVfi.js +257 -0
  106. package/chunk/{Ey4YJCkX.js → D0Dlbc2g.js} +2 -1
  107. package/chunk/{DejjIa3N.js → DFcz9ZPP.js} +35 -35
  108. package/chunk/{AwZqeapI.js → DRTWRsgI.js} +1 -1
  109. package/chunk/{D2LLXZQX.js → DeCsZrXb.js} +4 -4
  110. package/chunk/{DpoumMDw.js → DohlrJ4S.js} +1 -1
  111. package/chunk/DskaI8QL.js +25 -0
  112. package/chunk/{7HDzVe32.js → Dv6USvVF.js} +4 -4
  113. package/chunk/{DJDOFlqC.js → EL5Jmjgr.js} +2 -2
  114. package/chunk/{CiY7w1ZO.js → WVoGhvMI.js} +3 -3
  115. package/chunk/{BJ1soa2K.js → uEGHykhe.js} +18 -18
  116. package/collapse/Collapse.js +3 -3
  117. package/collapse/Item.js +4 -4
  118. package/collapse/index.js +1 -1
  119. package/color-picker/ControlBar.js +2 -2
  120. package/color-picker/InputAlpha.js +1 -1
  121. package/color-picker/InputHex.js +7 -7
  122. package/color-picker/InputRgb.js +6 -6
  123. package/color-picker/Palette.js +5 -5
  124. package/color-picker/Panel.js +4 -4
  125. package/color-picker/colors.js +7 -12
  126. package/color-picker/index.js +20 -20
  127. package/color-picker/utils.js +1 -1
  128. package/comment/index.js +6 -6
  129. package/config-provider/ConfigProvider.js +2 -2
  130. package/config-provider/context.js +1 -1
  131. package/config-provider/index.js +2 -2
  132. package/copy/index.js +16 -16
  133. package/date-picker/Picker.js +2 -2
  134. package/date-picker/PickerRange.js +3 -3
  135. package/date-picker/index.js +1 -1
  136. package/descriptions/index.js +2 -2
  137. package/divider/index.js +5 -5
  138. package/draggable/Item.js +1 -1
  139. package/draggable/index.js +9 -9
  140. package/drawer/Drawer.js +3 -3
  141. package/dropdown/Button.js +1 -1
  142. package/dropdown/index.js +2 -2
  143. package/empty/index.js +2 -2
  144. package/form/Control.js +1 -1
  145. package/form/Form.js +2 -2
  146. package/form/FormItem.js +3 -3
  147. package/form/FormLabel.js +9 -9
  148. package/form/context.js +1 -1
  149. package/grid/Col.js +2 -2
  150. package/grid/Row.js +2 -2
  151. package/grid/grid-item.js +2 -2
  152. package/grid/grid.js +8 -8
  153. package/icon/index.js +11 -11
  154. package/icon-hover/index.js +2 -2
  155. package/image/Image.js +4 -4
  156. package/image/ImageFooter.js +2 -2
  157. package/image/ImagePreview.js +5 -5
  158. package/image/ImagePreviewArrow.js +4 -4
  159. package/image/ImagePreviewGroup.js +1 -1
  160. package/image/ImagePreviewToolbar.js +1 -1
  161. package/image/TriggerForToolbar.js +4 -4
  162. package/image/index.js +1 -1
  163. package/index.js +586 -592
  164. package/input/Group.js +4 -4
  165. package/input/Input.js +45 -45
  166. package/input/InputElement.js +2 -2
  167. package/input/Password.js +2 -2
  168. package/input/Search.js +2 -2
  169. package/input/Textarea.js +2 -2
  170. package/input-number/index.js +2 -2
  171. package/input-tag/InputTag.js +4 -4
  172. package/layout/Content.js +2 -2
  173. package/layout/Footer.js +5 -5
  174. package/layout/Header.js +4 -4
  175. package/layout/Sider.js +2 -2
  176. package/layout/index.js +2 -2
  177. package/link/index.js +5 -5
  178. package/list/Item.js +2 -2
  179. package/list/Meta.js +4 -4
  180. package/list/index.js +2 -2
  181. package/mentions/index.js +2 -2
  182. package/menu/Item.js +5 -5
  183. package/menu/ItemGroup.js +1 -1
  184. package/menu/Menu.js +3 -3
  185. package/menu/OverflowWrap.js +2 -2
  186. package/menu/index.js +2 -2
  187. package/message/index.js +4 -4
  188. package/message/useMessage.js +1 -1
  189. package/modal/Confirm.js +2 -2
  190. package/modal/Modal.js +4 -4
  191. package/modal/index.js +1 -1
  192. package/notice/index.js +2 -2
  193. package/notification/index.js +4 -4
  194. package/notification/useNotification.js +1 -1
  195. package/overflow-ellipsis/OverflowItem.js +6 -6
  196. package/overflow-ellipsis/index.js +8 -8
  197. package/package.json +1 -1
  198. package/page-header/index.js +2 -2
  199. package/pagination/PageItem.js +2 -2
  200. package/pagination/PageJumper.js +1 -1
  201. package/pagination/PageOption.js +1 -1
  202. package/pagination/Pagination.js +23 -23
  203. package/picker/Input.js +7 -7
  204. package/picker/InputRange.js +9 -9
  205. package/popconfirm/index.js +2 -2
  206. package/popover/index.js +2 -2
  207. package/progress/CircleProgress.js +7 -7
  208. package/progress/LineProgess.js +1 -1
  209. package/progress/StepProgress.js +7 -7
  210. package/progress/index.js +8 -8
  211. package/radio/Group.js +3 -3
  212. package/radio/Radio.js +3 -3
  213. package/radio/index.js +2 -2
  214. package/rate/index.js +2 -2
  215. package/resize-box/ResizeTrigger.js +10 -10
  216. package/resize-box/Split.js +12 -12
  217. package/resize-box/SplitGroup.js +2 -2
  218. package/resize-box/index.js +2 -2
  219. package/result/index.js +9 -9
  220. package/select/Option.js +2 -2
  221. package/select/Select.js +3 -3
  222. package/select-view/Core.js +27 -27
  223. package/select-view/index.js +1 -1
  224. package/skeleton/Image.js +4 -4
  225. package/skeleton/Text.js +7 -7
  226. package/skeleton/index.js +2 -2
  227. package/slider/Button.js +2 -2
  228. package/slider/Dot.js +5 -5
  229. package/slider/Input.js +12 -12
  230. package/slider/Tick.js +6 -6
  231. package/slider/index.js +2 -2
  232. package/space/index.js +12 -12
  233. package/speech-synthesis/index.js +4 -4
  234. package/spin/DotLoading.js +1 -1
  235. package/spin/index.js +2 -2
  236. package/statistic/Countdown.js +7 -7
  237. package/statistic/index.js +20 -20
  238. package/steps/Step.js +1 -1
  239. package/steps/index.js +2 -2
  240. package/style/variables.less +375 -710
  241. package/style.css +1 -1
  242. package/switch/index.js +4 -4
  243. package/table/Table.js +4 -4
  244. package/table/index.js +4 -4
  245. package/tabs/Tab.js +3 -3
  246. package/tabs/TabContent.js +3 -3
  247. package/tabs/TabPane.js +2 -2
  248. package/tabs/index.js +2 -2
  249. package/tag/index.js +6 -6
  250. package/time-picker/Picker.js +2 -2
  251. package/time-picker/TimeColumn.js +7 -7
  252. package/time-picker/TimePicker.js +23 -23
  253. package/time-picker/util.js +5 -5
  254. package/timeline/Item.js +2 -2
  255. package/timeline/Timeline.js +2 -2
  256. package/tooltip/index.js +3 -3
  257. package/transfer/Item.js +3 -3
  258. package/transfer/List.js +3 -3
  259. package/transfer/index.js +2 -2
  260. package/tree/Animation.js +3 -3
  261. package/tree/Node.js +4 -4
  262. package/tree/NodeList.js +1 -1
  263. package/tree/Tree.js +3 -3
  264. package/tree/index.js +1 -1
  265. package/tree-select/Select.js +2 -2
  266. package/trigger/index.js +3 -3
  267. package/types/color-picker/colors.d.ts +1 -1
  268. package/types/config-provider/interface.d.ts +0 -1
  269. package/types/utils/color.d.ts +1 -1
  270. package/types/utils/constant.d.ts +1 -1
  271. package/types/utils/index.d.ts +1 -0
  272. package/types/utils/setDarkTheme.d.ts +4 -0
  273. package/typography/Base.js +2 -2
  274. package/typography/EditContent.js +1 -1
  275. package/typography/Ellipsis.js +14 -15
  276. package/typography/Paragraph.js +6 -6
  277. package/typography/Typography.js +5 -5
  278. package/typography/index.js +12 -13
  279. package/upload/TriggerNode.js +2 -2
  280. package/upload/Upload.js +5 -5
  281. package/upload/Uploader.js +2 -2
  282. package/upload/request.js +1 -1
  283. package/upload/request_.js +1 -1
  284. package/utils/PqbCSSTransition.js +1 -1
  285. package/utils/className.js +3 -3
  286. package/utils/color.js +2 -116
  287. package/utils/constant.js +3 -2
  288. package/utils/contextHolder.js +1 -1
  289. package/utils/copy.js +4 -4
  290. package/utils/dom.js +1 -1
  291. package/utils/fileToURL.js +1 -1
  292. package/utils/index.js +303 -309
  293. package/utils/reactTransitionGroup.js +1 -1
  294. package/utils/saveAs.js +1 -1
  295. package/utils/setDarkTheme.js +7 -0
  296. package/utils/tinycolor.js +13 -13
  297. package/utils/tween.js +1 -1
  298. package/verification-code/VerificationCode.js +7 -7
  299. package/version/index.js +1 -1
  300. package/watermark/Watermark.js +6 -6
  301. package/chunk/B0UZ1Ee2.js +0 -257
  302. package/chunk/Byd0ztYY.js +0 -724
  303. package/chunk/CCVU-Kst.js +0 -770
  304. package/chunk/CTxjmYmx.js +0 -19
  305. package/chunk/D0ZWT7db.js +0 -5
  306. package/chunk/JPPo5nY_.js +0 -9
package/slider/Button.js CHANGED
@@ -3,11 +3,11 @@ import w from "lodash/isFunction";
3
3
  import W from "lodash/isNumber";
4
4
  import q from "lodash/isString";
5
5
  import G, { useState as H, useContext as J, useMemo as B, useRef as g, useEffect as Q } from "react";
6
- import { a as Z } from "../chunk/Byd0ztYY.js";
6
+ import { a as Z } from "../chunk/C9XYyypq.js";
7
7
  import { u as _ } from "../chunk/XTEsYGuF.js";
8
8
  import { u as tt } from "../chunk/DeV0v__J.js";
9
9
  import et from "../trigger/index.js";
10
- import { m as L } from "../chunk/JPPo5nY_.js";
10
+ import { p as L } from "../chunk/CUFsOxJ2.js";
11
11
  import { on as u, off as a } from "../utils/dom.js";
12
12
  const nt = { maxWidth: 350 }, ot = {
13
13
  enter: 300,
package/slider/Dot.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import d from "lodash/isFunction";
3
- import u from "lodash/isPlainObject";
4
- import p from "react";
5
- import { m as v } from "../chunk/JPPo5nY_.js";
3
+ import p from "lodash/isPlainObject";
4
+ import u from "react";
5
+ import { p as v } from "../chunk/CUFsOxJ2.js";
6
6
  import { formatPercent as g, getIntervalOffset as D, valueInRange as h } from "./util.js";
7
7
  const w = function(e) {
8
8
  const {
@@ -25,7 +25,7 @@ const w = function(e) {
25
25
  onMouseDown: (c) => {
26
26
  c.stopPropagation(), d(e.onMouseDown) && e.onMouseDown(parseFloat(t));
27
27
  },
28
- children: u(r) && r.dot ? r.dot : /* @__PURE__ */ a(
28
+ children: p(r) && r.dot ? r.dot : /* @__PURE__ */ a(
29
29
  "div",
30
30
  {
31
31
  className: v(`${o}-dot`, {
@@ -37,7 +37,7 @@ const w = function(e) {
37
37
  t
38
38
  );
39
39
  }) }) : null;
40
- }, b = p.memo(w);
40
+ }, b = u.memo(w);
41
41
  export {
42
42
  b as default
43
43
  };
package/slider/Input.js CHANGED
@@ -1,29 +1,29 @@
1
1
  import { jsxs as y, jsx as h } from "react/jsx-runtime";
2
2
  import B, { useState as V, useEffect as b, createElement as N } from "react";
3
3
  import { InputNumber as d } from "../input/Input.js";
4
- import { m as R } from "../chunk/JPPo5nY_.js";
4
+ import { p as R } from "../chunk/CUFsOxJ2.js";
5
5
  const S = function(C) {
6
6
  const {
7
7
  value: u,
8
- range: r,
8
+ range: a,
9
9
  min: g,
10
10
  max: I,
11
11
  step: $,
12
12
  disabled: j,
13
13
  prefixCls: i,
14
- onChange: a,
15
- extra: c = []
14
+ onChange: c,
15
+ extra: m = []
16
16
  } = C, p = {
17
17
  min: g,
18
18
  max: I,
19
19
  step: $,
20
20
  disabled: j
21
- }, [m, l] = V(u), n = c[0], t = r ? c[1] : c[0];
21
+ }, [r, l] = V(u), n = m[0], t = a ? m[1] : m[0];
22
22
  b(() => {
23
23
  l(u);
24
24
  }, [u]);
25
25
  const f = (e) => {
26
- a == null || a(e);
26
+ c == null || c(e);
27
27
  }, k = () => {
28
28
  l([...u].sort((e, o) => e - o));
29
29
  };
@@ -31,22 +31,22 @@ const S = function(C) {
31
31
  "div",
32
32
  {
33
33
  className: R(`${i}-input`, {
34
- [`${i}-input-group`]: r
34
+ [`${i}-input-group`]: a
35
35
  }),
36
36
  onBlur: k,
37
37
  children: [
38
- r && [
38
+ a && [
39
39
  /* @__PURE__ */ N(
40
40
  d,
41
41
  {
42
42
  hideControl: !0,
43
43
  ...n,
44
44
  ...p,
45
- value: m[0],
45
+ value: r[0],
46
46
  key: 0,
47
47
  onChange: (e, o) => {
48
48
  var s;
49
- isNaN(e) && e !== e || (f([e, m[1]]), (s = n == null ? void 0 : n.onChange) == null || s.call(n, e, o));
49
+ isNaN(e) && e !== e || (f([e, r[1]]), (s = n == null ? void 0 : n.onChange) == null || s.call(n, e, o));
50
50
  }
51
51
  }
52
52
  ),
@@ -59,10 +59,10 @@ const S = function(C) {
59
59
  ...t,
60
60
  ...p,
61
61
  key: 2,
62
- value: m[1],
62
+ value: r[1],
63
63
  onChange: (e, o) => {
64
64
  var s;
65
- isNaN(e) && e !== e || (f([m[0], e]), (s = t == null ? void 0 : t.onChange) == null || s.call(t, e, o));
65
+ isNaN(e) && e !== e || (f([r[0], e]), (s = t == null ? void 0 : t.onChange) == null || s.call(t, e, o));
66
66
  }
67
67
  }
68
68
  )
package/slider/Tick.js CHANGED
@@ -1,7 +1,7 @@
1
- import { jsx as i } from "react/jsx-runtime";
1
+ import { jsx as m } from "react/jsx-runtime";
2
2
  import { plus as M } from "../utils/math.js";
3
3
  import A, { useMemo as R } from "react";
4
- import { m as $ } from "../chunk/JPPo5nY_.js";
4
+ import { p as $ } from "../chunk/CUFsOxJ2.js";
5
5
  import { formatPercent as b, getIntervalOffset as y, valueInRange as I } from "./util.js";
6
6
  function N(p) {
7
7
  const {
@@ -17,9 +17,9 @@ function N(p) {
17
17
  for (let a = 0; a <= x; a++) {
18
18
  const o = M(a * s, f);
19
19
  if (o <= l || o >= u) continue;
20
- const m = b(y(o, e));
21
- c.set(m, {
22
- offset: m,
20
+ const i = b(y(o, e));
21
+ c.set(i, {
22
+ offset: i,
23
23
  isActive: I(o, v)
24
24
  });
25
25
  }
@@ -27,7 +27,7 @@ function N(p) {
27
27
  var t;
28
28
  return c.clear(), (t = e == null ? void 0 : e.forEach) == null || t.call(e, (s) => h(s)), Array.from(c.values());
29
29
  }, [e]);
30
- return /* @__PURE__ */ i("div", { className: `${r}-ticks`, children: k.map((t, s) => /* @__PURE__ */ i(
30
+ return /* @__PURE__ */ m("div", { className: `${r}-ticks`, children: k.map((t, s) => /* @__PURE__ */ m(
31
31
  "div",
32
32
  {
33
33
  className: $(`${r}-tick`, {
package/slider/index.js CHANGED
@@ -4,11 +4,11 @@ import _ from "lodash/isArray";
4
4
  import ee from "lodash/isFunction";
5
5
  import te from "lodash/isPlainObject";
6
6
  import Ge, { useMemo as ne, useCallback as T, forwardRef as He, useContext as Qe, useRef as B } from "react";
7
- import { a as Ze } from "../chunk/Byd0ztYY.js";
7
+ import { a as Ze } from "../chunk/C9XYyypq.js";
8
8
  import { u as _e } from "../chunk/BFTV6myl.js";
9
9
  import { u as et } from "../chunk/DeV0v__J.js";
10
10
  import { u as tt } from "../chunk/a3hR6zLw.js";
11
- import { m as ve } from "../chunk/JPPo5nY_.js";
11
+ import { p as ve } from "../chunk/CUFsOxJ2.js";
12
12
  import { on as we, off as be } from "../utils/dom.js";
13
13
  import { o as nt } from "../chunk/BKKEev13.js";
14
14
  import ot from "./Button.js";
package/space/index.js CHANGED
@@ -2,9 +2,9 @@ import { jsx as a, jsxs as A } from "react/jsx-runtime";
2
2
  import L from "lodash/isArray";
3
3
  import M from "lodash/isNumber";
4
4
  import P, { forwardRef as b, useContext as j } from "react";
5
- import { a as k } from "../chunk/Byd0ztYY.js";
5
+ import { a as k } from "../chunk/C9XYyypq.js";
6
6
  import { u as D } from "../chunk/BFTV6myl.js";
7
- import { m as F } from "../chunk/JPPo5nY_.js";
7
+ import { p as F } from "../chunk/CUFsOxJ2.js";
8
8
  import H from "./toArray.js";
9
9
  const O = {
10
10
  size: "small",
@@ -22,20 +22,20 @@ function V(c, m) {
22
22
  size: i,
23
23
  direction: s,
24
24
  align: w,
25
- wrap: u,
26
- split: f,
25
+ wrap: p,
26
+ split: u,
27
27
  ...B
28
28
  } = N, e = v("space"), $ = w || (s === "horizontal" ? "center" : ""), R = F(
29
29
  e,
30
30
  {
31
31
  [`${e}-${s}`]: s,
32
32
  [`${e}-align-${$}`]: $,
33
- [`${e}-wrap`]: u,
33
+ [`${e}-wrap`]: p,
34
34
  [`${e}-rtl`]: d
35
35
  },
36
36
  S
37
37
  );
38
- function p(r) {
38
+ function f(r) {
39
39
  if (M(r))
40
40
  return r;
41
41
  switch (r) {
@@ -55,8 +55,8 @@ function V(c, m) {
55
55
  function z(r) {
56
56
  const n = y.length === r + 1, o = d ? "marginLeft" : "marginRight";
57
57
  if (typeof i == "string" || typeof i == "number") {
58
- const t = p(i);
59
- return u ? n ? { marginBottom: t } : {
58
+ const t = f(i);
59
+ return p ? n ? { marginBottom: t } : {
60
60
  [`${o}`]: t,
61
61
  marginBottom: t
62
62
  } : n ? {} : {
@@ -64,17 +64,17 @@ function V(c, m) {
64
64
  };
65
65
  }
66
66
  if (L(i)) {
67
- const t = p(i[0]), g = p(i[1]);
68
- return u ? n ? { marginBottom: g } : {
67
+ const t = f(i[0]), g = f(i[1]);
68
+ return p ? n ? { marginBottom: g } : {
69
69
  [`${o}`]: t,
70
70
  marginBottom: g
71
71
  } : s === "vertical" ? { marginBottom: g } : { [`${o}`]: t };
72
72
  }
73
73
  }
74
74
  return /* @__PURE__ */ a("div", { ref: m, className: R, style: x, ...B, children: y.map((r, n) => {
75
- const o = (r == null ? void 0 : r.key) || n, t = f != null && n > 0;
75
+ const o = (r == null ? void 0 : r.key) || n, t = u != null && n > 0;
76
76
  return /* @__PURE__ */ A(P.Fragment, { children: [
77
- t && /* @__PURE__ */ a("div", { className: `${e}-item-split`, children: f }),
77
+ t && /* @__PURE__ */ a("div", { className: `${e}-item-split`, children: u }),
78
78
  /* @__PURE__ */ a("div", { className: `${e}-item`, style: z(n), children: r })
79
79
  ] }, o);
80
80
  }) });
@@ -12,9 +12,10 @@ import "lodash/kebabCase.js";
12
12
  import "lodash/snakeCase.js";
13
13
  import "lodash/startCase.js";
14
14
  import "lodash/upperFirst.js";
15
- import "lodash/isPlainObject.js";
16
15
  import "lodash/uniq.js";
17
- import "../utils/color.js";
16
+ import "../chunk/C0pRaDCf.js";
17
+ import "lodash/isPlainObject.js";
18
+ import "../chunk/BbqvFW5R.js";
18
19
  import "lodash/isString.js";
19
20
  import "../chunk/tamGhTJp.js";
20
21
  import "lodash/escapeRegExp";
@@ -38,9 +39,8 @@ import "lodash/uniq";
38
39
  import "lodash/upperFirst";
39
40
  import "../chunk/yl4BU7Sd.js";
40
41
  import "lodash/isPlainObject";
41
- import "../chunk/Cj2SQJiO.js";
42
+ import "../chunk/BJ9_azwQ.js";
42
43
  import "../chunk/Bl7BnD1R.js";
43
- import "lodash/isFunction";
44
44
  import "uuid";
45
45
  import "../chunk/CplLA01W.js";
46
46
  import g from "@unicom-cloud/icons/IconUiMute";
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import m from "lodash/isNumber";
3
3
  import { useContext as a } from "react";
4
- import { a as l } from "../chunk/Byd0ztYY.js";
4
+ import { a as l } from "../chunk/C9XYyypq.js";
5
5
  function g(t) {
6
6
  const { getPrefixCls: r } = a(l), i = `${r("spin")}-dot`, n = {
7
7
  width: t.size,
package/spin/index.js CHANGED
@@ -2,9 +2,9 @@ import { jsx as n, jsxs as c, Fragment as h } from "react/jsx-runtime";
2
2
  import E from "@unicom-cloud/icons/IconUiLoading";
3
3
  import I from "lodash/debounce";
4
4
  import $, { useContext as j, useState as w, useCallback as P, useRef as D, useImperativeHandle as F, useEffect as H } from "react";
5
- import { a as M } from "../chunk/Byd0ztYY.js";
5
+ import { a as M } from "../chunk/C9XYyypq.js";
6
6
  import { u as U } from "../chunk/BFTV6myl.js";
7
- import { m as N } from "../chunk/JPPo5nY_.js";
7
+ import { p as N } from "../chunk/CUFsOxJ2.js";
8
8
  import { c as _ } from "../chunk/DAAff-FT.js";
9
9
  import q from "./DotLoading.js";
10
10
  function A(y, S) {
@@ -2,11 +2,11 @@ import { jsxs as M, jsx as r } from "react/jsx-runtime";
2
2
  import T from "dayjs";
3
3
  import _ from "lodash/isFunction";
4
4
  import { forwardRef as E, useContext as F, useState as d, useRef as O, useEffect as P } from "react";
5
- import { a as b } from "../chunk/Byd0ztYY.js";
6
- import { m as k } from "../chunk/JPPo5nY_.js";
5
+ import { a as b } from "../chunk/C9XYyypq.js";
6
+ import { p as k } from "../chunk/CUFsOxJ2.js";
7
7
  import { g as v, a as w } from "../chunk/tamGhTJp.js";
8
- import { getDateString as h } from "./util.js";
9
- function q(a, p) {
8
+ import { getDateString as p } from "./util.js";
9
+ function q(a, h) {
10
10
  const { getPrefixCls: x } = F(b), {
11
11
  className: C,
12
12
  style: g,
@@ -20,14 +20,14 @@ function q(a, p) {
20
20
  } = a, o = v(y, e) || T(), S = v(a.now, e), t = x("statistic"), [c, j] = d(
21
21
  o.diff(S, "millisecond")
22
22
  ), [f, V] = d(
23
- h(Math.max(c, 0), e)
23
+ p(Math.max(c, 0), e)
24
24
  ), s = O(null), m = () => {
25
25
  clearInterval(s.current), s.current = null;
26
26
  }, $ = () => {
27
27
  s.current = setInterval(() => {
28
28
  const H = o.diff(w()), u = o.diff(w(), "millisecond");
29
29
  u <= 0 && (m(), n == null || n());
30
- const I = h(Math.max(u, 0), e);
30
+ const I = p(Math.max(u, 0), e);
31
31
  V(I), j(H);
32
32
  }, 1e3 / 30);
33
33
  };
@@ -38,7 +38,7 @@ function q(a, p) {
38
38
  return /* @__PURE__ */ M(
39
39
  "div",
40
40
  {
41
- ref: p,
41
+ ref: h,
42
42
  className: k(`${t}`, `${t}-countdown`, C),
43
43
  style: g,
44
44
  children: [
@@ -1,13 +1,13 @@
1
1
  import { jsxs as l, Fragment as O, jsx as a } from "react/jsx-runtime";
2
- import { I as W, q as z } from "../chunk/uKZyjtff.js";
2
+ import { y as W, q as z } from "../chunk/BhBEMwvI.js";
3
3
  import A from "dayjs";
4
4
  import B from "lodash/isFunction";
5
5
  import c from "lodash/isNumber";
6
6
  import { forwardRef as G, useContext as J, useRef as b, useState as K, useEffect as Q, useImperativeHandle as T, useMemo as X } from "react";
7
- import { a as Y } from "../chunk/Byd0ztYY.js";
7
+ import { a as Y } from "../chunk/C9XYyypq.js";
8
8
  import { u as Z } from "../chunk/BFTV6myl.js";
9
9
  import tt from "../skeleton/index.js";
10
- import { m as et } from "../chunk/JPPo5nY_.js";
10
+ import { p as et } from "../chunk/CUFsOxJ2.js";
11
11
  import { o as rt } from "../chunk/BKKEev13.js";
12
12
  import ot from "./Countdown.js";
13
13
  function it(D, R) {
@@ -27,13 +27,13 @@ function it(D, R) {
27
27
  precision: s,
28
28
  prefix: d,
29
29
  suffix: u,
30
- format: f,
30
+ format: p,
31
31
  renderFormat: F,
32
- styleValue: I,
33
- styleDecimal: _,
34
- loading: k,
35
- ...q
36
- } = t, n = b(), $ = b(), [e, p] = K(
32
+ styleValue: _,
33
+ styleDecimal: k,
34
+ loading: q,
35
+ ...E
36
+ } = t, n = b(), $ = b(), [e, f] = K(
37
37
  "value" in t ? t.value : void 0
38
38
  ), r = P("statistic"), v = (i = t.countFrom, o = t.value) => {
39
39
  const { countDuration: x } = t;
@@ -47,38 +47,38 @@ function it(D, R) {
47
47
  duration: x,
48
48
  easing: z,
49
49
  onUpdate: (L) => {
50
- p(L.value.toFixed(s));
50
+ f(L.value.toFixed(s));
51
51
  },
52
52
  onFinish: () => {
53
- p(o);
53
+ f(o);
54
54
  }
55
55
  }), n.current.start());
56
56
  };
57
- Q(() => (t.countUp ? (n.current && n.current.stop(), e !== t.value ? v(Number(e), t.value) : v()) : p(t.value), () => {
57
+ Q(() => (t.countUp ? (n.current && n.current.stop(), e !== t.value ? v(Number(e), t.value) : v()) : f(t.value), () => {
58
58
  n.current && n.current.stop(), n.current = null;
59
59
  }), [t.value]), T(R, () => ({
60
60
  countUp: v,
61
61
  getRootDOMNode: () => $.current
62
62
  }));
63
- const { int: E, decimal: N } = X(() => {
63
+ const { int: H, decimal: N } = X(() => {
64
64
  let i = e;
65
- f && (i = A(e).format(f)), c(s) && s >= 0 && (i = Number(e).toFixed(s));
65
+ p && (i = A(e).format(p)), c(s) && s >= 0 && (i = Number(e).toFixed(s));
66
66
  let o = String(i).split(".")[0];
67
67
  const x = String(i).split(".")[1];
68
68
  return g && c(Number(e)) && (o = Number(o).toLocaleString("en-US")), {
69
69
  int: o,
70
70
  decimal: x
71
71
  };
72
- }, [f, g, s, e]), H = B(F) ? F : (i, o) => o, w = c(Number(e)), C = /* @__PURE__ */ l(O, { children: [
72
+ }, [p, g, s, e]), I = B(F) ? F : (i, o) => o, w = c(Number(e)), C = /* @__PURE__ */ l(O, { children: [
73
73
  d != null ? /* @__PURE__ */ a("span", { className: `${r}-value-prefix`, children: d }) : null,
74
- H(e, w ? E : e)
74
+ I(e, w ? H : e)
75
75
  ] });
76
76
  return /* @__PURE__ */ l(
77
77
  "div",
78
78
  {
79
79
  className: et(`${r}`, { [`${r}-rtl`]: V }, j),
80
80
  style: M,
81
- ...rt(q, ["value", "countUp", "countFrom", "countDuration"]),
81
+ ...rt(E, ["value", "countUp", "countFrom", "countDuration"]),
82
82
  ref: $,
83
83
  children: [
84
84
  h && /* @__PURE__ */ a("div", { className: `${r}-title`, children: h }),
@@ -87,15 +87,15 @@ function it(D, R) {
87
87
  tt,
88
88
  {
89
89
  animation: !0,
90
- loading: !!k,
90
+ loading: !!q,
91
91
  text: { rows: 1, width: "100%" },
92
- children: /* @__PURE__ */ l("div", { className: `${r}-value`, style: I, children: [
92
+ children: /* @__PURE__ */ l("div", { className: `${r}-value`, style: _, children: [
93
93
  w ? /* @__PURE__ */ a("span", { className: `${r}-value-int`, children: C }) : C,
94
94
  N !== void 0 || u ? /* @__PURE__ */ l(
95
95
  "span",
96
96
  {
97
97
  className: `${r}-value-decimal`,
98
- style: _,
98
+ style: k,
99
99
  children: [
100
100
  c(Number(e)) && N !== void 0 && `.${N}`,
101
101
  u != null ? /* @__PURE__ */ a("span", { className: `${r}-value-suffix`, children: u }) : null
package/steps/Step.js CHANGED
@@ -2,7 +2,7 @@ import { jsx as s, jsxs as h } from "react/jsx-runtime";
2
2
  import R from "@unicom-cloud/icons/IconUiCheck";
3
3
  import W from "@unicom-cloud/icons/IconUiClose";
4
4
  import { forwardRef as q } from "react";
5
- import { m as z } from "../chunk/JPPo5nY_.js";
5
+ import { p as z } from "../chunk/CUFsOxJ2.js";
6
6
  function A(x, S) {
7
7
  const {
8
8
  style: C,
package/steps/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as w } from "react/jsx-runtime";
2
2
  import d, { forwardRef as D, useContext as R } from "react";
3
- import { a as k } from "../chunk/Byd0ztYY.js";
3
+ import { a as k } from "../chunk/C9XYyypq.js";
4
4
  import { u as A } from "../chunk/BFTV6myl.js";
5
- import { m as E } from "../chunk/JPPo5nY_.js";
5
+ import { p as E } from "../chunk/CUFsOxJ2.js";
6
6
  import { a as j } from "../chunk/ClqoGc3r.js";
7
7
  import F from "./Step.js";
8
8
  const I = {