@unicom-cloud/ui 0.8.78 → 0.8.79

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 (345) hide show
  1. package/Affix.js +3 -3
  2. package/Alert.js +3 -3
  3. package/AutoComplete.js +5 -5
  4. package/BackTop.js +5 -5
  5. package/Badge.js +3 -3
  6. package/Breadcrumb.js +4 -4
  7. package/Button.js +2 -2
  8. package/Calendar.js +4 -4
  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 +3 -3
  15. package/Comment.js +2 -2
  16. package/ConfigProvider.js +1 -1
  17. package/Copy.js +4 -4
  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 +5 -5
  23. package/Empty.js +2 -2
  24. package/Icon.js +9 -5
  25. package/IconHover.js +2 -2
  26. package/Image.js +1 -1
  27. package/InputNumber.js +3 -3
  28. package/Layout.js +2 -2
  29. package/Link.js +3 -3
  30. package/List.js +4 -4
  31. package/Mentions.js +5 -5
  32. package/Menu.js +1 -1
  33. package/Message.js +3 -3
  34. package/Modal.js +1 -1
  35. package/Notice.js +9 -8
  36. package/Notification.js +3 -3
  37. package/OverflowEllipsis.js +2 -2
  38. package/PageHeader.js +3 -3
  39. package/Pagination.js +1 -1
  40. package/Popconfirm.js +3 -3
  41. package/Popover.js +3 -3
  42. package/Progress.js +2 -2
  43. package/Radio.js +1 -1
  44. package/Rate.js +3 -3
  45. package/ResizeBox.js +3 -3
  46. package/Result.js +2 -2
  47. package/Select.js +1 -1
  48. package/SelectView.js +5 -6
  49. package/Skeleton.js +2 -2
  50. package/Slider.js +4 -4
  51. package/Space.js +2 -2
  52. package/SpeechSynthesis.js +18 -20
  53. package/Spin.js +3 -3
  54. package/Statistic.js +3 -3
  55. package/Steps.js +2 -2
  56. package/Switch.js +7 -8
  57. package/Table.js +1 -1
  58. package/Tabs.js +1 -1
  59. package/Tag.js +3 -3
  60. package/Tooltip.js +3 -3
  61. package/Transfer.js +4 -4
  62. package/Tree.js +1 -1
  63. package/TreeSelect.js +1 -1
  64. package/Trigger.js +9 -10
  65. package/Typography.js +1 -1
  66. package/affix/index.js +17 -17
  67. package/alert/index.js +13 -13
  68. package/anchor/Anchor.js +40 -40
  69. package/anchor/Link.js +14 -14
  70. package/anchor/util.js +2 -2
  71. package/auto-complete/index.js +5 -5
  72. package/avatar/Avatar.js +17 -17
  73. package/avatar/Group.js +13 -13
  74. package/back-top/index.js +13 -13
  75. package/badge/Count.js +13 -13
  76. package/badge/index.js +21 -21
  77. package/breadcrumb/Item.js +25 -25
  78. package/breadcrumb/index.js +12 -12
  79. package/button/Group.js +6 -6
  80. package/button/index.js +30 -30
  81. package/calendar/Month.js +2 -2
  82. package/calendar/Year.js +1 -1
  83. package/calendar/index.js +4 -4
  84. package/card/Grid.js +13 -13
  85. package/card/Meta.js +13 -13
  86. package/card/index.js +29 -29
  87. package/carousel/Arrow.js +6 -6
  88. package/carousel/Indicator.js +27 -27
  89. package/carousel/index.js +24 -24
  90. package/cascader/Cascader.js +8 -8
  91. package/cascader/index.js +1 -1
  92. package/cascader/util.js +1 -1
  93. package/checkbox/Checkbox.js +4 -4
  94. package/checkbox/Group.js +4 -4
  95. package/checkbox/GroupBlock.js +3 -3
  96. package/checkbox/index.js +2 -2
  97. package/chunk/{ZrBrCzQX.js → B4WG1mhs.js} +6 -7
  98. package/chunk/{Cwm8LL5p.js → B4mZh-RK.js} +7245 -7249
  99. package/chunk/{CjqvxJml.js → BG7YGUsx.js} +32 -32
  100. package/chunk/{BhBEMwvI.js → BNevupAU.js} +18 -20
  101. package/chunk/BYdIoY50.js +17 -0
  102. package/chunk/{Cc_-i0o_.js → BZ3igxQN.js} +6 -7
  103. package/chunk/{uEGHykhe.js → BZ9g7J4R.js} +1 -1
  104. package/chunk/BsUZRQDT.js +23 -0
  105. package/chunk/{CBgu99gQ.js → C5X4hOkx.js} +130 -130
  106. package/chunk/{B0n0iRhF.js → CCKr5jj1.js} +1 -1
  107. package/chunk/{CNcLypMY.js → CQvM33Vg.js} +190 -189
  108. package/chunk/CXPOj2uy.js +19 -0
  109. package/chunk/{DAAff-FT.js → ClM74To2.js} +9 -10
  110. package/chunk/{RS6OAxzv.js → D-ap9qEk.js} +2 -2
  111. package/chunk/{tpmioyz1.js → DEiyXzBZ.js} +28 -28
  112. package/chunk/{CplLA01W.js → DEuVgCzp.js} +45 -52
  113. package/chunk/{BPQXH_5i.js → DYspELhF.js} +43 -43
  114. package/chunk/DxYoPlum.js +50 -0
  115. package/chunk/{BpYX5PN4.js → NPajzdOv.js} +2 -2
  116. package/chunk/{BBkdXHrJ.js → rT6qmv-Y.js} +1 -1
  117. package/chunk/{BC5fEyWK.js → yLRv5RIK.js} +61 -61
  118. package/chunk/{C_4I3haT.js → yhU2zeeu.js} +96 -96
  119. package/collapse/Collapse.js +4 -4
  120. package/collapse/Item.js +4 -4
  121. package/collapse/index.js +1 -1
  122. package/color-picker/ControlBar.js +22 -22
  123. package/color-picker/InputAlpha.js +1 -1
  124. package/color-picker/InputHex.js +1 -1
  125. package/color-picker/InputRgb.js +1 -1
  126. package/color-picker/Palette.js +1 -1
  127. package/color-picker/Panel.js +4 -4
  128. package/color-picker/index.js +3 -3
  129. package/comment/index.js +18 -18
  130. package/config-provider/ConfigProvider.js +2 -2
  131. package/config-provider/context.js +2 -2
  132. package/config-provider/index.js +2 -2
  133. package/copy/index.js +23 -23
  134. package/date-picker/Picker.js +41 -41
  135. package/date-picker/PickerRange.js +3 -3
  136. package/date-picker/index.js +1 -1
  137. package/descriptions/index.js +28 -28
  138. package/divider/index.js +15 -15
  139. package/draggable/Item.js +11 -11
  140. package/draggable/index.js +15 -15
  141. package/drawer/Drawer.js +31 -31
  142. package/dropdown/Button.js +1 -1
  143. package/dropdown/index.js +22 -22
  144. package/empty/index.js +2 -2
  145. package/form/Control.js +46 -46
  146. package/form/Form.js +12 -12
  147. package/form/FormItem.js +12 -12
  148. package/form/FormLabel.js +11 -11
  149. package/form/context.js +7 -6
  150. package/form/promisify.js +9 -10
  151. package/form/store.js +1 -1
  152. package/form/util.js +1 -1
  153. package/grid/Col.js +38 -38
  154. package/grid/Row.js +15 -15
  155. package/grid/grid-item.js +17 -17
  156. package/grid/grid.js +28 -28
  157. package/hooks/index.js +6 -6
  158. package/hooks/useInView.js +1 -1
  159. package/hooks/useIntersectionObserver.js +1 -1
  160. package/hooks/useKeyboardEvent.js +1 -1
  161. package/hooks/useMergeValue.js +1 -1
  162. package/hooks/useOverrideRef.js +1 -1
  163. package/hooks/usePrefersColorSchemeDark.js +1 -1
  164. package/hooks/useVerificationCode.js +30 -30
  165. package/icon/index.js +20 -16
  166. package/icon-hover/index.js +2 -2
  167. package/image/Image.js +22 -22
  168. package/image/ImageFooter.js +2 -2
  169. package/image/ImagePreview.js +11 -11
  170. package/image/ImagePreviewArrow.js +16 -16
  171. package/image/ImagePreviewGroup.js +2 -2
  172. package/image/ImagePreviewToolbar.js +7 -7
  173. package/image/TriggerForToolbar.js +7 -7
  174. package/image/index.js +1 -1
  175. package/index.js +547 -580
  176. package/input/Group.js +10 -10
  177. package/input/Input.js +213 -214
  178. package/input/InputElement.js +10 -11
  179. package/input/Password.js +4 -4
  180. package/input/Search.js +3 -3
  181. package/input/Textarea.js +7 -8
  182. package/input/useComposition.js +6 -6
  183. package/input-number/index.js +3 -3
  184. package/input-tag/InputTag.js +110 -111
  185. package/layout/Content.js +4 -4
  186. package/layout/Footer.js +6 -6
  187. package/layout/Header.js +8 -8
  188. package/layout/Sider.js +29 -29
  189. package/layout/index.js +16 -16
  190. package/link/index.js +27 -27
  191. package/list/Item.js +5 -5
  192. package/list/Meta.js +11 -11
  193. package/list/index.js +4 -4
  194. package/locale/en-US.js +1 -1
  195. package/locale/tr-TR.js +1 -1
  196. package/mentions/index.js +5 -5
  197. package/menu/Item.js +11 -11
  198. package/menu/ItemGroup.js +8 -8
  199. package/menu/Menu.js +5 -5
  200. package/menu/OverflowWrap.js +2 -2
  201. package/menu/index.js +2 -2
  202. package/message/index.js +3 -3
  203. package/message/useMessage.js +1 -1
  204. package/modal/Confirm.js +2 -2
  205. package/modal/Modal.js +7 -7
  206. package/modal/index.js +1 -1
  207. package/notice/index.js +9 -8
  208. package/notification/index.js +3 -3
  209. package/notification/useNotification.js +1 -1
  210. package/overflow-ellipsis/OverflowItem.js +6 -6
  211. package/overflow-ellipsis/index.js +27 -27
  212. package/package.json +1 -1
  213. package/page-header/index.js +3 -3
  214. package/pagination/PageItem.js +7 -7
  215. package/pagination/PageJumper.js +1 -1
  216. package/pagination/PageOption.js +3 -3
  217. package/pagination/Pagination.js +4 -4
  218. package/pagination/index.js +1 -1
  219. package/picker/Input.js +7 -7
  220. package/picker/InputRange.js +77 -77
  221. package/popconfirm/index.js +11 -11
  222. package/popover/index.js +21 -21
  223. package/progress/CircleProgress.js +14 -14
  224. package/progress/LineProgess.js +14 -14
  225. package/progress/StepProgress.js +9 -9
  226. package/progress/index.js +26 -26
  227. package/radio/Group.js +4 -4
  228. package/radio/GroupBlock.js +3 -3
  229. package/radio/Radio.js +4 -4
  230. package/radio/index.js +2 -2
  231. package/rate/index.js +16 -16
  232. package/resize-box/ResizeTrigger.js +27 -28
  233. package/resize-box/Split.js +21 -21
  234. package/resize-box/SplitGroup.js +40 -40
  235. package/resize-box/index.js +23 -23
  236. package/result/index.js +29 -29
  237. package/select/Option.js +2 -2
  238. package/select/Select.js +11 -12
  239. package/select/index.js +2 -2
  240. package/select/util.js +5 -5
  241. package/select-view/Core.js +104 -106
  242. package/select-view/index.js +22 -23
  243. package/skeleton/Image.js +14 -14
  244. package/skeleton/Text.js +16 -16
  245. package/skeleton/index.js +11 -11
  246. package/slider/Button.js +4 -4
  247. package/slider/Dot.js +9 -9
  248. package/slider/Input.js +20 -20
  249. package/slider/Tick.js +14 -14
  250. package/slider/index.js +103 -103
  251. package/slider/util.js +3 -3
  252. package/space/index.js +14 -14
  253. package/speech-synthesis/index.js +26 -28
  254. package/spin/DotLoading.js +1 -1
  255. package/spin/index.js +16 -16
  256. package/statistic/Countdown.js +17 -17
  257. package/statistic/index.js +32 -32
  258. package/steps/Step.js +8 -8
  259. package/steps/index.js +17 -17
  260. package/switch/index.js +32 -33
  261. package/table/Table.js +5 -5
  262. package/table/index.js +1 -1
  263. package/tabs/Tab.js +4 -4
  264. package/tabs/TabContent.js +3 -3
  265. package/tabs/TabPane.js +11 -11
  266. package/tabs/index.js +2 -2
  267. package/tabs/util.js +1 -1
  268. package/tag/index.js +16 -16
  269. package/time-picker/Picker.js +50 -50
  270. package/time-picker/TimeColumn.js +8 -8
  271. package/time-picker/TimePicker.js +32 -32
  272. package/time-picker/util.js +1 -1
  273. package/timeline/Item.js +15 -15
  274. package/timeline/Timeline.js +24 -24
  275. package/tooltip/index.js +23 -23
  276. package/transfer/Item.js +4 -4
  277. package/transfer/List.js +4 -4
  278. package/transfer/index.js +4 -4
  279. package/tree/Animation.js +3 -3
  280. package/tree/Node.js +3 -3
  281. package/tree/NodeList.js +2 -2
  282. package/tree/Tree.js +4 -4
  283. package/tree/index.js +1 -1
  284. package/tree-select/List.js +2 -2
  285. package/tree-select/Select.js +8 -9
  286. package/tree-select/index.js +2 -2
  287. package/trigger/getPopupStyle.js +18 -19
  288. package/trigger/index.js +32 -33
  289. package/types/button/index.d.ts +2 -2
  290. package/types/color-picker/colors.d.ts +1 -1
  291. package/types/date-picker/util.d.ts +1 -1
  292. package/types/icon/index.d.ts +3 -1
  293. package/types/index.d.ts +1 -1
  294. package/types/menu/context.d.ts +1 -1
  295. package/typography/Base.js +33 -35
  296. package/typography/EditContent.js +16 -16
  297. package/typography/Ellipsis.js +24 -26
  298. package/typography/Operations.js +1 -1
  299. package/typography/Paragraph.js +8 -8
  300. package/typography/Typography.js +7 -7
  301. package/typography/index.js +1 -1
  302. package/upload/TriggerNode.js +8 -8
  303. package/upload/Upload.js +64 -65
  304. package/upload/Uploader.js +12 -12
  305. package/upload/request.js +13 -12
  306. package/upload/request_.js +5 -6
  307. package/utils/PqbCSSTransition.js +1 -1
  308. package/utils/caseName.js +4 -3
  309. package/utils/className.js +4 -3
  310. package/utils/constant.js +3 -3
  311. package/utils/contextHolder.js +1 -1
  312. package/utils/copy.js +5 -4
  313. package/utils/fileToURL.js +4 -3
  314. package/utils/index.js +261 -298
  315. package/utils/is.js +78 -115
  316. package/utils/keyboardCode.js +4 -26
  317. package/utils/math.js +10 -32
  318. package/utils/react19Adapter.js +1 -1
  319. package/utils/reactDOM.js +1 -1
  320. package/utils/saveAs.js +4 -3
  321. package/utils/screenfull.js +4 -3
  322. package/utils/scrollIntoView.js +1 -1
  323. package/utils/setDarkTheme.js +1 -1
  324. package/utils/tree.js +7 -83
  325. package/utils/tween.js +1 -1
  326. package/utils/validate.js +1 -1
  327. package/verification-code/VerificationCode.js +25 -25
  328. package/version/index.js +1 -1
  329. package/virtual-list/VirtualList.js +1 -1
  330. package/watermark/Watermark.js +8 -8
  331. package/chunk/ATwvJ8j2.js +0 -6
  332. package/chunk/BFmckYou.js +0 -25
  333. package/chunk/Bl7BnD1R.js +0 -119
  334. package/chunk/Bmvhjhzq.js +0 -24
  335. package/chunk/BrOW642m.js +0 -130
  336. package/chunk/C0pRaDCf.js +0 -96
  337. package/chunk/CBzE-PUr.js +0 -23
  338. package/chunk/CUFsOxJ2.js +0 -10
  339. package/chunk/Ce1j9KTi.js +0 -6
  340. package/chunk/D0Dlbc2g.js +0 -41
  341. package/chunk/DRTWRsgI.js +0 -34
  342. package/chunk/DeV0v__J.js +0 -20
  343. package/chunk/DohlrJ4S.js +0 -50
  344. package/chunk/XTEsYGuF.js +0 -17
  345. package/chunk/yl4BU7Sd.js +0 -1068
package/anchor/Anchor.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import { jsxs as mt, jsx as w } from "react/jsx-runtime";
2
- import { compute as pt } from "../utils/computeScrollIntoView.js";
3
- import { p as dt } from "../chunk/Coz3rCng.js";
2
+ import { compute as dt } from "../utils/computeScrollIntoView.js";
3
+ import { p as pt } from "../chunk/Coz3rCng.js";
4
4
  import D from "lodash/isFunction";
5
5
  import P from "lodash/isNumber";
6
6
  import gt from "lodash/throttle";
7
- import { forwardRef as ht, useContext as Ct, useRef as x, useState as xt, useEffect as S, useCallback as $, useImperativeHandle as kt } from "react";
7
+ import { forwardRef as ht, useContext as Ct, useRef as x, useState as xt, useEffect as N, useCallback as S, useImperativeHandle as kt } from "react";
8
8
  import yt from "../affix/index.js";
9
- import { a as Lt } from "../chunk/CNcLypMY.js";
9
+ import { a as Lt } from "../chunk/CQvM33Vg.js";
10
10
  import { u as Rt } from "../chunk/oopARUrq.js";
11
11
  import { u as wt } from "../chunk/BFTV6myl.js";
12
- import { u as St } from "../chunk/Duezix3m.js";
13
- import { p as $t } from "../chunk/CUFsOxJ2.js";
14
- import { on as At, off as Tt } from "../utils/dom.js";
15
- import { l as vt } from "../chunk/DAAff-FT.js";
16
- import Nt from "./context.js";
12
+ import { u as Nt } from "../chunk/Duezix3m.js";
13
+ import St from "@unicom-cloud/utils/class-name";
14
+ import { on as $t, off as At } from "../utils/dom.js";
15
+ import { l as Tt } from "../chunk/ClM74To2.js";
16
+ import vt from "./context.js";
17
17
  import bt from "./Link.js";
18
18
  import { findNode as M, getContainerElement as Pt, getContainer as Mt, getScrollParent as Et, slide as Ft } from "./util.js";
19
19
  const It = {
@@ -23,10 +23,10 @@ const It = {
23
23
  boundary: "start"
24
24
  };
25
25
  function Ht(q, G) {
26
- const { getPrefixCls: J, componentConfig: A, rtl: E } = Ct(Lt), K = wt(
26
+ const { getPrefixCls: J, componentConfig: $, rtl: E } = Ct(Lt), K = wt(
27
27
  q,
28
28
  It,
29
- A == null ? void 0 : A.Anchor
29
+ $ == null ? void 0 : $.Anchor
30
30
  ), {
31
31
  className: Q,
32
32
  style: X,
@@ -39,26 +39,26 @@ function Ht(q, G) {
39
39
  offsetTop: nt,
40
40
  hash: F = !0,
41
41
  boundary: i = "start",
42
- targetOffset: T,
42
+ targetOffset: A,
43
43
  children: rt,
44
44
  direction: y = "vertical",
45
45
  onSelect: I,
46
- onChange: v,
46
+ onChange: T,
47
47
  ...ot
48
- } = K, f = J("anchor"), it = $t(f, Q, {
48
+ } = K, f = J("anchor"), it = St(f, Q, {
49
49
  [`${f}-lineless`]: k,
50
50
  [`${f}-rtl`]: E,
51
51
  [`${f}-horizontal`]: y === "horizontal"
52
- }), s = x(null), p = x(null), a = x(/* @__PURE__ */ new Map()), N = x(!1), d = x(null), [st, H] = xt(0), [o, ct] = St(""), lt = Rt();
52
+ }), s = x(null), d = x(null), a = x(/* @__PURE__ */ new Map()), v = x(!1), p = x(null), [st, H] = xt(0), [o, ct] = Nt(""), lt = Rt();
53
53
  function O() {
54
54
  let t = Mt(m);
55
55
  return m || (t = Et(s.current)), t;
56
56
  }
57
- S(() => {
57
+ N(() => {
58
58
  const t = O();
59
- d.current = t;
59
+ p.current = t;
60
60
  }, [m]);
61
- const ft = $(() => O(), [m]);
61
+ const ft = S(() => O(), [m]);
62
62
  kt(
63
63
  G,
64
64
  () => ({
@@ -73,7 +73,7 @@ function Ht(q, G) {
73
73
  function at(t) {
74
74
  a.current.delete(t), H(Math.random());
75
75
  }
76
- const L = $(
76
+ const L = S(
77
77
  (t) => {
78
78
  if (!t || !s.current)
79
79
  return;
@@ -82,39 +82,39 @@ function Ht(q, G) {
82
82
  n && z(t, n);
83
83
  }
84
84
  const e = a.current.get(t);
85
- e && t !== o && (dt(e, {
85
+ e && t !== o && (pt(e, {
86
86
  behavior: "auto",
87
87
  block: "nearest",
88
88
  scrollMode: "if-needed",
89
89
  boundary: s.current
90
90
  }), ct(t).then(() => {
91
- D(v) && v(t, o);
91
+ D(T) && T(t, o);
92
92
  }));
93
93
  },
94
- [o, v]
95
- ), B = $(() => {
94
+ [o, T]
95
+ ), B = S(() => {
96
96
  let t;
97
- const e = P(i) ? i : 0, n = d.current, h = Pt(n).getBoundingClientRect(), R = document.documentElement.clientHeight;
97
+ const e = P(i) ? i : 0, n = p.current, h = Pt(n).getBoundingClientRect(), R = document.documentElement.clientHeight;
98
98
  return [...a.current.keys()].some((b) => {
99
99
  const c = M(document, b);
100
100
  let u = !1;
101
101
  if (c) {
102
102
  const { top: r, height: C } = c.getBoundingClientRect();
103
- if (vt(n)) {
104
- const l = T ?? R / 2;
103
+ if (Tt(n)) {
104
+ const l = A ?? R / 2;
105
105
  u = r >= e && r <= l || r <= e && r + C >= l;
106
106
  } else {
107
- const l = r - h.top - e, j = T ?? h.height / 2;
107
+ const l = r - h.top - e, j = A ?? h.height / 2;
108
108
  u = l >= 0 && l <= j || l <= 0 && l + C >= j;
109
109
  }
110
110
  u && (t = c);
111
111
  }
112
112
  return u;
113
113
  }), t;
114
- }, [i, T]), g = $(
114
+ }, [i, A]), g = S(
115
115
  gt(
116
116
  (t) => {
117
- if (N.current)
117
+ if (v.current)
118
118
  return;
119
119
  const e = B();
120
120
  if (e && e.id) {
@@ -133,21 +133,21 @@ function Ht(q, G) {
133
133
  const e = M(document, t);
134
134
  if (!e)
135
135
  return;
136
- const n = P(i) ? "start" : i, W = P(i) ? i : 0, h = pt(e, { block: n });
136
+ const n = P(i) ? "start" : i, W = P(i) ? i : 0, h = dt(e, { block: n });
137
137
  if (!h.length)
138
138
  return;
139
139
  let R = !1;
140
140
  const b = h.map(({ el: c, top: u }) => new Promise((r) => {
141
141
  if (!R) {
142
- c === d.current && (R = !0);
142
+ c === p.current && (R = !0);
143
143
  const C = u - W;
144
144
  return Y ? Ft(c, C, r) : (F || (c.scrollTop = C), r(null));
145
145
  }
146
146
  r(null);
147
147
  }));
148
- N.current = !0, Promise.all(b).then(() => {
148
+ v.current = !0, Promise.all(b).then(() => {
149
149
  setTimeout(() => {
150
- N.current = !1;
150
+ v.current = !1;
151
151
  }, 27);
152
152
  });
153
153
  } catch (e) {
@@ -157,19 +157,19 @@ function Ht(q, G) {
157
157
  function ut(t, e) {
158
158
  F || t.preventDefault(), L(e), U(e), D(I) && I(e, o);
159
159
  }
160
- S(() => {
160
+ N(() => {
161
161
  const t = decodeURIComponent(location.hash);
162
162
  t ? (L(t), U(t)) : g(null);
163
- }, []), S(() => (lt || g(null), At(d.current, "scroll", g), () => {
164
- Tt(d.current, "scroll", g);
165
- }), [m, g]), S(() => {
163
+ }, []), N(() => (lt || g(null), $t(p.current, "scroll", g), () => {
164
+ At(p.current, "scroll", g);
165
+ }), [m, g]), N(() => {
166
166
  const t = a.current.get(o);
167
- t && !k && p.current && (y === "horizontal" ? (p.current.style.left = `${t.offsetLeft}px`, p.current.style.width = `${t.clientWidth}px`) : p.current.style.top = `${t.offsetTop}px`);
167
+ t && !k && d.current && (y === "horizontal" ? (d.current.style.left = `${t.offsetLeft}px`, d.current.style.width = `${t.clientWidth}px`) : d.current.style.top = `${t.offsetTop}px`);
168
168
  }, [o, k, y, E, st]);
169
169
  const V = /* @__PURE__ */ mt("div", { className: it, style: X, ref: s, ...ot, children: [
170
- !k && o && /* @__PURE__ */ w("div", { className: `${f}-line-slider`, ref: p }),
170
+ !k && o && /* @__PURE__ */ w("div", { className: `${f}-line-slider`, ref: d }),
171
171
  /* @__PURE__ */ w(
172
- Nt.Provider,
172
+ vt.Provider,
173
173
  {
174
174
  value: {
175
175
  direction: y,
package/anchor/Link.js CHANGED
@@ -3,10 +3,10 @@ import R from "lodash/isNull";
3
3
  import g from "lodash/isPlainObject";
4
4
  import E from "lodash/isString";
5
5
  import L from "lodash/isUndefined";
6
- import O, { forwardRef as b, useContext as f, useRef as v, useImperativeHandle as w, useEffect as I, isValidElement as M } from "react";
7
- import { a as S } from "../chunk/CNcLypMY.js";
8
- import { u as $ } from "../chunk/BFTV6myl.js";
9
- import { p as z } from "../chunk/CUFsOxJ2.js";
6
+ import O, { forwardRef as $, useContext as f, useRef as b, useImperativeHandle as v, useEffect as w, isValidElement as I } from "react";
7
+ import { a as M } from "../chunk/CQvM33Vg.js";
8
+ import { u as S } from "../chunk/BFTV6myl.js";
9
+ import z from "@unicom-cloud/utils/class-name";
10
10
  import D from "./context.js";
11
11
  const p = "AnchorLink", H = {
12
12
  href: "#"
@@ -15,7 +15,7 @@ function U(o) {
15
15
  return g(o) && Object.prototype.hasOwnProperty.call(o, "displayName");
16
16
  }
17
17
  function V(o, u) {
18
- const { getPrefixCls: d, componentConfig: n } = f(S), { className: h, style: N, href: r, title: e, children: m, ...x } = $(
18
+ const { getPrefixCls: d, componentConfig: n } = f(M), { className: h, style: N, href: r, title: t, children: m, ...x } = S(
19
19
  o,
20
20
  H,
21
21
  n == null ? void 0 : n["Anchor.Link"]
@@ -25,27 +25,27 @@ function V(o, u) {
25
25
  [`${c}-active`]: y === r
26
26
  },
27
27
  h
28
- ), l = v(null);
29
- return w(u, () => l.current, []), I(() => (s == null || s(r, l.current), () => {
28
+ ), l = b(null);
29
+ return v(u, () => l.current, []), w(() => (s == null || s(r, l.current), () => {
30
30
  i == null || i(r);
31
31
  }), [r]), /* @__PURE__ */ j("div", { className: P, style: N, ref: l, ...x, children: [
32
- !L(e) && !R(e) && /* @__PURE__ */ k(
32
+ !L(t) && !R(t) && /* @__PURE__ */ k(
33
33
  "a",
34
34
  {
35
35
  className: `${c}-title`,
36
- title: E(e) ? e : "",
36
+ title: E(t) ? t : "",
37
37
  href: r,
38
38
  "data-href": r,
39
- onClick: (t) => {
40
- a == null || a(t, r);
39
+ onClick: (e) => {
40
+ a == null || a(e, r);
41
41
  },
42
- children: e
42
+ children: t
43
43
  }
44
44
  ),
45
- m && A !== "horizontal" && O.Children.map(m, (t) => M(t) && U(t.type) && t.type.displayName === p && t)
45
+ m && A !== "horizontal" && O.Children.map(m, (e) => I(e) && U(e.type) && e.type.displayName === p && e)
46
46
  ] });
47
47
  }
48
- const Y = b(V);
48
+ const Y = $(V);
49
49
  Y.displayName = p;
50
50
  export {
51
51
  Y as default
package/anchor/util.js CHANGED
@@ -1,6 +1,6 @@
1
- import { y as l, q as u } from "../chunk/BhBEMwvI.js";
1
+ import { y as l, q as u } from "../chunk/BNevupAU.js";
2
2
  import i from "lodash/isString";
3
- import { l as c } from "../chunk/DAAff-FT.js";
3
+ import { l as c } from "../chunk/ClM74To2.js";
4
4
  function d(o, n) {
5
5
  const r = i(n) && n[0] === "#" ? `[id='${n.replace("#", "")}']` : n;
6
6
  try {
@@ -1,13 +1,13 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@unicom-cloud/icons/IconUiLoading";
3
3
  import "react";
4
- import "../chunk/CNcLypMY.js";
4
+ import "../chunk/CQvM33Vg.js";
5
5
  import "../chunk/BFTV6myl.js";
6
- import "../chunk/DeV0v__J.js";
6
+ import "../chunk/CXPOj2uy.js";
7
7
  import "../input/Input.js";
8
- import { A as x } from "../chunk/Cwm8LL5p.js";
9
- import "../chunk/CUFsOxJ2.js";
10
- import "../chunk/BrOW642m.js";
8
+ import { A as x } from "../chunk/B4mZh-RK.js";
9
+ import "@unicom-cloud/utils/class-name";
10
+ import "@unicom-cloud/utils/constant/keyboardCode";
11
11
  import "../chunk/BKKEev13.js";
12
12
  import "../chunk/ClqoGc3r.js";
13
13
  export {
package/avatar/Avatar.js CHANGED
@@ -1,36 +1,36 @@
1
1
  import { jsxs as W, jsx as m } from "react/jsx-runtime";
2
2
  import j from "lodash/isNumber";
3
- import y, { forwardRef as E, useContext as v, useRef as C, useImperativeHandle as H, useEffect as T } from "react";
4
- import { a as D } from "../chunk/CNcLypMY.js";
5
- import { p as L } from "../chunk/CUFsOxJ2.js";
3
+ import y, { forwardRef as E, useContext as N, useRef as $, useImperativeHandle as H, useEffect as T } from "react";
4
+ import { a as D } from "../chunk/CQvM33Vg.js";
5
+ import L from "@unicom-cloud/utils/class-name";
6
6
  import M from "./context.js";
7
7
  const O = {
8
8
  shape: "circle",
9
9
  autoFixFontSize: !0,
10
10
  triggerType: "button"
11
11
  }, V = E(
12
- (a, N) => {
13
- const { getPrefixCls: $, componentConfig: c, rtl: z } = v(D), t = $("avatar"), u = v(M), F = {
12
+ (n, v) => {
13
+ const { getPrefixCls: C, componentConfig: c, rtl: z } = N(D), t = C("avatar"), u = N(M), F = {
14
14
  ...O,
15
15
  ...c == null ? void 0 : c.Avatar,
16
16
  ...u,
17
- ...a
17
+ ...n
18
18
  }, {
19
19
  className: R,
20
20
  shape: S,
21
21
  size: e,
22
- children: o,
22
+ children: s,
23
23
  autoFixFontSize: b,
24
24
  triggerIcon: l,
25
- triggerIconStyle: s,
25
+ triggerIconStyle: o,
26
26
  triggerType: g,
27
27
  onClick: A,
28
28
  ...I
29
- } = F, r = { ...u.style, ...a.style }, i = C(), f = C();
29
+ } = F, r = { ...u.style, ...n.style }, a = $(), f = $();
30
30
  function P() {
31
- if (i.current) {
32
- const w = i.current.clientWidth, h = a.size || f.current.offsetWidth, x = h / (w + 8);
33
- h && x < 1 && (i.current.style.transform = `scale(${x}) translateX(-50%)`);
31
+ if (a.current) {
32
+ const w = a.current.clientWidth, h = n.size || f.current.offsetWidth, x = h / (w + 8);
33
+ h && x < 1 && (a.current.style.transform = `scale(${x}) translateX(-50%)`);
34
34
  }
35
35
  }
36
36
  const k = L(
@@ -41,14 +41,14 @@ const O = {
41
41
  [`${t}-rtl`]: z
42
42
  },
43
43
  R
44
- ), n = y.Children.toArray(o), d = n.length === 1 && y.isValidElement(n[0]) && (n[0].type === "img" || n[0].type === "picture"), p = s || {};
45
- return g === "button" && (!s || s && !s.color) && (r != null && r.backgroundColor) && (p.color = r.backgroundColor), H(N, () => ({
44
+ ), i = y.Children.toArray(s), d = i.length === 1 && y.isValidElement(i[0]) && (i[0].type === "img" || i[0].type === "picture"), p = o || {};
45
+ return g === "button" && (!o || o && !o.color) && (r != null && r.backgroundColor) && (p.color = r.backgroundColor), H(v, () => ({
46
46
  getRootDOMNode() {
47
47
  return f.current;
48
48
  }
49
49
  })), T(() => {
50
50
  b && P();
51
- }, [e, o]), /* @__PURE__ */ W(
51
+ }, [e, s]), /* @__PURE__ */ W(
52
52
  "div",
53
53
  {
54
54
  ref: f,
@@ -62,8 +62,8 @@ const O = {
62
62
  },
63
63
  className: k,
64
64
  children: [
65
- d ? /* @__PURE__ */ m("span", { className: `${t}-image`, children: o }) : null,
66
- !d && /* @__PURE__ */ m("span", { ref: i, className: `${t}-text`, children: o }),
65
+ d ? /* @__PURE__ */ m("span", { className: `${t}-image`, children: s }) : null,
66
+ !d && /* @__PURE__ */ m("span", { ref: a, className: `${t}-text`, children: s }),
67
67
  l && /* @__PURE__ */ m(
68
68
  "div",
69
69
  {
package/avatar/Group.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsx as o, jsxs as _ } from "react/jsx-runtime";
2
- import I from "lodash/isNumber";
3
- import R, { forwardRef as $, useContext as b } from "react";
4
- import { a as j } from "../chunk/CNcLypMY.js";
2
+ import $ from "lodash/isNumber";
3
+ import I, { forwardRef as R, useContext as b } from "react";
4
+ import { a as j } from "../chunk/CQvM33Vg.js";
5
5
  import { u as T } from "../chunk/BFTV6myl.js";
6
6
  import k from "../popover/index.js";
7
- import { p as q } from "../chunk/CUFsOxJ2.js";
7
+ import q from "@unicom-cloud/utils/class-name";
8
8
  import w from "./Avatar.js";
9
9
  import v from "./context.js";
10
10
  const L = {
@@ -23,10 +23,10 @@ function M(d, f) {
23
23
  size: e,
24
24
  shape: c,
25
25
  autoFixFontSize: m,
26
- zIndexAscend: A,
26
+ zIndexAscend: N,
27
27
  maxCount: r,
28
- maxStyle: y,
29
- maxPopoverTriggerProps: N,
28
+ maxStyle: A,
29
+ maxPopoverTriggerProps: y,
30
30
  ...z
31
31
  } = g, a = h("avatar-group"), F = q(
32
32
  a,
@@ -34,20 +34,20 @@ function M(d, f) {
34
34
  [`${a}-rtl`]: l
35
35
  },
36
36
  x
37
- ), s = R.Children.toArray(P), u = s.length;
37
+ ), s = I.Children.toArray(P), u = s.length;
38
38
  let n = s;
39
- if (I(r) && r >= 0 && u > r) {
39
+ if ($(r) && r >= 0 && u > r) {
40
40
  const p = s.slice(r);
41
41
  n = s.slice(0, r), n.push(
42
42
  /* @__PURE__ */ o(
43
43
  w,
44
44
  {
45
- style: y,
45
+ style: A,
46
46
  className: `${a}-max-count-avatar`,
47
47
  children: /* @__PURE__ */ _(
48
48
  k,
49
49
  {
50
- triggerProps: N,
50
+ triggerProps: y,
51
51
  content: /* @__PURE__ */ o(v.Provider, { value: { size: e, shape: c, autoFixFontSize: m }, children: /* @__PURE__ */ o("div", { className: `${a}-popover`, children: p }) }),
52
52
  children: [
53
53
  "+",
@@ -62,7 +62,7 @@ function M(d, f) {
62
62
  }
63
63
  return /* @__PURE__ */ o("div", { ref: f, style: C, className: F, ...z, children: n.map((p, t) => {
64
64
  const G = l ? t === n.length - 1 : t === 0, S = {
65
- zIndex: A ? t + 1 : u - t,
65
+ zIndex: N ? t + 1 : u - t,
66
66
  marginLeft: e ? G ? 0 : -e / 4 : ""
67
67
  };
68
68
  return /* @__PURE__ */ o(
@@ -75,7 +75,7 @@ function M(d, f) {
75
75
  );
76
76
  }) });
77
77
  }
78
- const B = $(M);
78
+ const B = R(M);
79
79
  B.displayName = "AvatarGroup";
80
80
  export {
81
81
  B as default
package/back-top/index.js CHANGED
@@ -1,28 +1,28 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import x from "@unicom-cloud/icons/IconUiToTop";
3
- import { q as y, y as C } from "../chunk/BhBEMwvI.js";
4
- import B, { forwardRef as E, useRef as P, useContext as N, useState as R, useEffect as S } from "react";
5
- import { a as H } from "../chunk/CNcLypMY.js";
6
- import { u as $ } from "../chunk/XTEsYGuF.js";
3
+ import { q as y, y as C } from "../chunk/BNevupAU.js";
4
+ import B, { forwardRef as E, useRef as N, useContext as P, useState as R, useEffect as S } from "react";
5
+ import { a as H } from "../chunk/CQvM33Vg.js";
6
+ import { u as $ } from "../chunk/BYdIoY50.js";
7
7
  import { u as q } from "../chunk/BFTV6myl.js";
8
- import { P as D } from "../chunk/BpYX5PN4.js";
9
- import { p as I } from "../chunk/CUFsOxJ2.js";
8
+ import { P as D } from "../chunk/NPajzdOv.js";
9
+ import I from "@unicom-cloud/utils/class-name";
10
10
  import { on as K, off as U } from "../utils/dom.js";
11
11
  import { a as j } from "../chunk/ClqoGc3r.js";
12
12
  import A from "../utils/throttleByRaf.js";
13
13
  function M(d, c) {
14
- c || (c = P());
14
+ c || (c = N());
15
15
  const g = {
16
16
  visibleHeight: 400,
17
17
  tween: !0,
18
18
  easing: y,
19
19
  duration: 400,
20
20
  target: () => window
21
- }, { getPrefixCls: T, componentConfig: l, rtl: b } = N(H), w = $(), t = q(
21
+ }, { getPrefixCls: T, componentConfig: a, rtl: b } = P(H), w = $(), t = q(
22
22
  d,
23
23
  g,
24
- l == null ? void 0 : l.BackTop
25
- ), a = T("backtop"), [h, v] = R(!1), m = (e) => e === window ? document.documentElement : e;
24
+ a == null ? void 0 : a.BackTop
25
+ ), l = T("backtop"), [h, v] = R(!1), m = (e) => e === window ? document.documentElement : e;
26
26
  S(() => {
27
27
  var r;
28
28
  const e = (r = t.target) == null ? void 0 : r.call(t), o = A(() => {
@@ -53,8 +53,8 @@ function M(d, c) {
53
53
  ...j(t),
54
54
  ref: c,
55
55
  className: I(
56
- `${a}`,
57
- { [`${a}-rtl`]: b },
56
+ `${l}`,
57
+ { [`${l}-rtl`]: b },
58
58
  t.className
59
59
  ),
60
60
  style: t.style,
@@ -69,7 +69,7 @@ function M(d, c) {
69
69
  timeout: 100,
70
70
  classNames: "fadeIn",
71
71
  unmountOnExit: !0,
72
- children: t.children || /* @__PURE__ */ i("button", { className: `${a}-button`, children: /* @__PURE__ */ i(x, {}) })
72
+ children: t.children || /* @__PURE__ */ i("button", { className: `${l}-button`, children: /* @__PURE__ */ i(x, {}) })
73
73
  }
74
74
  )
75
75
  }
package/badge/Count.js CHANGED
@@ -1,12 +1,12 @@
1
- import { jsx as t } from "react/jsx-runtime";
1
+ import { jsx as r } from "react/jsx-runtime";
2
2
  import { useState as u } from "react";
3
3
  import { u as d } from "../chunk/VSe_Wq1g.js";
4
- import { P as f } from "../chunk/BpYX5PN4.js";
5
- import { p as l } from "../chunk/CUFsOxJ2.js";
6
- function S({ prefixCls: s, maxCount: r, count: e, className: n, style: o }) {
7
- const [i, a] = u(!1), m = d(e), p = e !== m;
8
- return /* @__PURE__ */ t(
9
- f,
4
+ import { P as p } from "../chunk/NPajzdOv.js";
5
+ import f from "@unicom-cloud/utils/class-name";
6
+ function P({ prefixCls: t, maxCount: s, count: e, className: a, style: n }) {
7
+ const [o, m] = u(!1), i = d(e), l = e !== i;
8
+ return /* @__PURE__ */ r(
9
+ p,
10
10
  {
11
11
  classNames: "badge-zoom",
12
12
  in: e > 0,
@@ -15,15 +15,15 @@ function S({ prefixCls: s, maxCount: r, count: e, className: n, style: o }) {
15
15
  mountOnEnter: !0,
16
16
  unmountOnExit: !0,
17
17
  onEntered: () => {
18
- a(!0);
18
+ m(!0);
19
19
  },
20
- children: /* @__PURE__ */ t("span", { className: n, style: o, children: /* @__PURE__ */ t(
20
+ children: /* @__PURE__ */ r("span", { className: a, style: n, children: /* @__PURE__ */ r(
21
21
  "span",
22
22
  {
23
- className: l({
24
- [`${s}-number-text`]: i && p
23
+ className: f({
24
+ [`${t}-number-text`]: o && l
25
25
  }),
26
- children: r && e > r ? `${r}+` : e
26
+ children: s && e > s ? `${s}+` : e
27
27
  },
28
28
  e
29
29
  ) })
@@ -31,5 +31,5 @@ function S({ prefixCls: s, maxCount: r, count: e, className: n, style: o }) {
31
31
  );
32
32
  }
33
33
  export {
34
- S as default
34
+ P as default
35
35
  };
package/badge/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { jsxs as x, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as $, jsx as s } from "react/jsx-runtime";
2
2
  import j from "lodash/isPlainObject";
3
3
  import { forwardRef as w, useContext as R } from "react";
4
- import { a as q } from "../chunk/CNcLypMY.js";
4
+ import { a as q } from "../chunk/CQvM33Vg.js";
5
5
  import { u as G } from "../chunk/BFTV6myl.js";
6
- import { P as _ } from "../chunk/BpYX5PN4.js";
7
- import { p as a } from "../chunk/CUFsOxJ2.js";
6
+ import { P as _ } from "../chunk/NPajzdOv.js";
7
+ import a from "@unicom-cloud/utils/class-name";
8
8
  import k from "./Count.js";
9
- const $ = [
9
+ const x = [
10
10
  "red",
11
11
  "orangered",
12
12
  "orange",
@@ -22,15 +22,15 @@ const $ = [
22
22
  count: 0,
23
23
  maxCount: 99
24
24
  };
25
- function I(y, C) {
26
- const { getPrefixCls: N, componentConfig: c, rtl: b } = R(q), h = G(
25
+ function I(y, N) {
26
+ const { getPrefixCls: C, componentConfig: m, rtl: b } = R(q), h = G(
27
27
  y,
28
28
  z,
29
- c == null ? void 0 : c.Badge
29
+ m == null ? void 0 : m.Badge
30
30
  ), {
31
31
  count: o,
32
32
  prefixText: u,
33
- text: i,
33
+ text: c,
34
34
  className: S,
35
35
  dotClassName: n,
36
36
  dot: p,
@@ -43,7 +43,7 @@ function I(y, C) {
43
43
  status: l,
44
44
  children: d,
45
45
  ...D
46
- } = h, t = N("badge"), r = { ...B || {} }, [f, g] = T || [];
46
+ } = h, t = C("badge"), r = { ...B || {} }, [f, g] = T || [];
47
47
  f && (r.marginRight = -f), g && (r.marginTop = g);
48
48
  const E = () => {
49
49
  if (j(o))
@@ -55,15 +55,15 @@ function I(y, C) {
55
55
  children: o
56
56
  }
57
57
  );
58
- const m = !e || $.indexOf(e) > -1 ? {} : { backgroundColor: e };
59
- return i && !e && !l ? /* @__PURE__ */ s(
58
+ const i = !e || x.indexOf(e) > -1 ? {} : { backgroundColor: e };
59
+ return c && !e && !l ? /* @__PURE__ */ s(
60
60
  "span",
61
61
  {
62
62
  className: a(`${t}-text`, n),
63
63
  style: r,
64
- children: i
64
+ children: c
65
65
  }
66
- ) : l || e && typeof o == "number" && o <= 0 ? /* @__PURE__ */ x("span", { className: `${t}-status-wrapper`, children: [
66
+ ) : l || e && typeof o == "number" && o <= 0 ? /* @__PURE__ */ $("span", { className: `${t}-status-wrapper`, children: [
67
67
  !!u && /* @__PURE__ */ s("span", { className: `${t}-status-prefix-text`, children: u }),
68
68
  /* @__PURE__ */ s(
69
69
  "span",
@@ -77,10 +77,10 @@ function I(y, C) {
77
77
  },
78
78
  n
79
79
  ),
80
- style: { ...m, ...r }
80
+ style: { ...i, ...r }
81
81
  }
82
82
  ),
83
- !!i && /* @__PURE__ */ s("span", { className: `${t}-status-text`, children: i })
83
+ !!c && /* @__PURE__ */ s("span", { className: `${t}-status-text`, children: c })
84
84
  ] }) : (p || e) && typeof o == "number" && o > 0 ? /* @__PURE__ */ s(
85
85
  _,
86
86
  {
@@ -100,7 +100,7 @@ function I(y, C) {
100
100
  },
101
101
  n
102
102
  ),
103
- style: { ...m, ...r }
103
+ style: { ...i, ...r }
104
104
  }
105
105
  )
106
106
  }
@@ -109,13 +109,13 @@ function I(y, C) {
109
109
  {
110
110
  prefixCls: t,
111
111
  className: a(`${t}-number`, n),
112
- style: { ...m, ...r },
112
+ style: { ...i, ...r },
113
113
  maxCount: P,
114
114
  count: o
115
115
  }
116
116
  );
117
117
  };
118
- return /* @__PURE__ */ x(
118
+ return /* @__PURE__ */ $(
119
119
  "span",
120
120
  {
121
121
  className: a(
@@ -127,7 +127,7 @@ function I(y, C) {
127
127
  },
128
128
  S
129
129
  ),
130
- ref: C,
130
+ ref: N,
131
131
  style: A,
132
132
  ...D,
133
133
  children: [
@@ -139,7 +139,7 @@ function I(y, C) {
139
139
  }
140
140
  const L = w(I);
141
141
  L.displayName = "Badge";
142
- const V = $, W = [
142
+ const V = x, W = [
143
143
  "default",
144
144
  "processing",
145
145
  "success",