@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
@@ -2,11 +2,11 @@ import { jsx as u, jsxs as ee } from "react/jsx-runtime";
2
2
  import fe from "lodash/isFunction";
3
3
  import ke from "lodash/isPlainObject";
4
4
  import te, { useContext as ie, useRef as V, useState as we, useEffect as L, useMemo as ae, useCallback as at, useImperativeHandle as ct } from "react";
5
- import { a as Oe, I as me } from "./CNcLypMY.js";
5
+ import { a as Oe, I as me } from "./CQvM33Vg.js";
6
6
  import { u as st } from "./B4YRLi8r.js";
7
7
  import { u as lt } from "./BFTV6myl.js";
8
- import { u as dt } from "./DeV0v__J.js";
9
- import { p as X } from "./CUFsOxJ2.js";
8
+ import { u as dt } from "./CXPOj2uy.js";
9
+ import X from "@unicom-cloud/utils/class-name";
10
10
  import { o as ye } from "./BKKEev13.js";
11
11
  import ft from "../tabs/TabPane.js";
12
12
  import ut from "@unicom-cloud/icons/IconUiPlus";
@@ -19,14 +19,14 @@ import { setTransformStyle as pt } from "../utils/style.js";
19
19
  import Ye from "@unicom-cloud/icons/IconUiDown";
20
20
  import je from "lodash/isNull";
21
21
  import bt from "../dropdown/index.js";
22
- import { M as Ae } from "./CBgu99gQ.js";
22
+ import { M as Ae } from "./C5X4hOkx.js";
23
23
  import gt from "lodash/isEqualWith";
24
24
  import vt from "../utils/throttleByRaf.js";
25
25
  import Me from "@unicom-cloud/icons/IconUiLeft";
26
26
  import Ee from "@unicom-cloud/icons/IconUiRight";
27
27
  import $t from "@unicom-cloud/icons/IconUiUp";
28
28
  import yt from "@unicom-cloud/icons/IconUiClose";
29
- import { e as Tt } from "./BrOW642m.js";
29
+ import { Enter as Tt } from "@unicom-cloud/utils/constant/keyboardCode";
30
30
  function wt(e) {
31
31
  const {
32
32
  animation: s,
@@ -103,9 +103,9 @@ function xt(e) {
103
103
  return;
104
104
  d.preventDefault();
105
105
  const { deltaX: i, deltaY: $ } = d;
106
- let I = 0;
107
- const N = Math.abs(i), S = Math.abs($);
108
- N === S ? I = g.current === "x" ? i : $ : N > S ? (I = i, g.current = "x") : (I = $, g.current = "y"), v(I, I);
106
+ let N = 0;
107
+ const I = Math.abs(i), S = Math.abs($);
108
+ I === S ? N = g.current === "x" ? i : $ : I > S ? (N = i, g.current = "x") : (N = $, g.current = "y"), v(N, N);
109
109
  }
110
110
  const w = V({
111
111
  clientX: 0,
@@ -115,8 +115,8 @@ function xt(e) {
115
115
  const i = l(d);
116
116
  if (!i)
117
117
  return;
118
- const { clientX: $, clientY: I } = w.current, N = i.clientX - $, S = i.clientY - I;
119
- v(-N, -S);
118
+ const { clientX: $, clientY: N } = w.current, I = i.clientX - $, S = i.clientY - N;
119
+ v(-I, -S);
120
120
  }, x = () => {
121
121
  We(document.documentElement, "touchmove", c), We(document.documentElement, "touchend", x);
122
122
  }, h = (d) => {
@@ -287,7 +287,7 @@ const Ot = (e, s, a) => {
287
287
  z.preventDefault();
288
288
  let O;
289
289
  v === "left" ? O = f === "left" ? t - l : t + l : O = f === "left" ? t + l : t - l, i(O);
290
- }, I = (z, f) => {
290
+ }, N = (z, f) => {
291
291
  z.preventDefault();
292
292
  let O;
293
293
  if (f === "up")
@@ -295,12 +295,12 @@ const Ot = (e, s, a) => {
295
295
  else if (O = t + w, O >= c)
296
296
  return;
297
297
  i(O);
298
- }, N = ae(() => v === "left" ? t <= 0 : s === "vertical" ? t >= h : t >= p, [v, s, t, p, t]), S = ae(() => v === "left" ? s === "vertical" ? t >= h : t >= p : t <= 0, [v, s, h, p, t]);
298
+ }, I = ae(() => v === "left" ? t <= 0 : s === "vertical" ? t >= h : t >= p, [v, s, t, p, t]), S = ae(() => v === "left" ? s === "vertical" ? t >= h : t >= p : t <= 0, [v, s, h, p, t]);
299
299
  if (je(m))
300
300
  return null;
301
- const A = s === "horizontal" ? St[b] : Pt[b], _ = b === "prev" ? N : S, F = X(`${o}-${A}-icon`, {
301
+ const A = s === "horizontal" ? St[b] : Pt[b], _ = b === "prev" ? I : S, F = X(`${o}-${A}-icon`, {
302
302
  [`${o}-nav-icon-disabled`]: _
303
- }), Y = s === "vertical" ? I : $;
303
+ }), Y = s === "vertical" ? N : $;
304
304
  return /* @__PURE__ */ u(
305
305
  me,
306
306
  {
@@ -311,7 +311,7 @@ const Ot = (e, s, a) => {
311
311
  children: m || d[A]
312
312
  }
313
313
  );
314
- }, It = ({
314
+ }, Nt = ({
315
315
  prefixCls: e,
316
316
  onDeleteTab: s,
317
317
  tabKey: a,
@@ -377,7 +377,7 @@ const Ot = (e, s, a) => {
377
377
  editable: v
378
378
  }
379
379
  );
380
- }, Nt = te.forwardRef(It), Se = "vertical", ue = "right", he = "left", Le = {
380
+ }, It = te.forwardRef(Nt), Se = "vertical", ue = "right", he = "left", Le = {
381
381
  delete: !0,
382
382
  add: !0
383
383
  }, zt = ({
@@ -396,7 +396,7 @@ const Ot = (e, s, a) => {
396
396
  const o = Ce(a, n);
397
397
  return e === Se ? -o.top : s === ue ? o.right : -o.left;
398
398
  }, xe = te.forwardRef((e, s) => {
399
- const a = ie(Pe), { rtl: n } = ie(Oe), o = { ...e, ...a }, [b, t, v] = oe(), [g, m, w] = oe(), [l, c, x] = oe(), [h, p, d] = oe(), [i, $, I] = oe(), N = V({}), [S, A] = we(0), [_, F] = we(!0), {
399
+ const a = ie(Pe), { rtl: n } = ie(Oe), o = { ...e, ...a }, [b, t, v] = oe(), [g, m, w] = oe(), [l, c, x] = oe(), [h, p, d] = oe(), [i, $, N] = oe(), I = V({}), [S, A] = we(0), [_, F] = we(!0), {
400
400
  paneChildren: Y,
401
401
  editable: z,
402
402
  prefixCls: f,
@@ -410,16 +410,16 @@ const Ot = (e, s, a) => {
410
410
  style: Fe,
411
411
  tabPosition: Ge,
412
412
  className: Ke,
413
- extra: Ie,
413
+ extra: Ne,
414
414
  animation: qe,
415
415
  icons: P,
416
416
  deleteButton: Je,
417
417
  addButton: Qe,
418
418
  renderTabTitle: Ze,
419
- scrollAfterEdit: Ne,
419
+ scrollAfterEdit: Ie,
420
420
  scrollPosition: M = "auto",
421
421
  inkBarSize: et
422
- } = o, ze = ke(Ne) ? { ...Le, ...Ne } : Le, [tt, nt] = n ? [ue, he] : [he, ue], G = H === "capsule" ? nt : tt, j = ae(() => {
422
+ } = o, ze = ke(Ie) ? { ...Le, ...Ie } : Le, [tt, nt] = n ? [ue, he] : [he, ue], G = H === "capsule" ? nt : tt, j = ae(() => {
423
423
  const r = c.height - p.height - $.height, y = c.width - p.width - $.width;
424
424
  return o.direction === "vertical" ? r < m.height : y < m.width;
425
425
  }, [
@@ -444,7 +444,7 @@ const Ot = (e, s, a) => {
444
444
  width: T.offsetWidth,
445
445
  domRect: T.getBoundingClientRect()
446
446
  });
447
- }, 200), K = ce(v), q = ce(w), J = ce(d), Q = ce(I), pe = at(
447
+ }, 200), K = ce(v), q = ce(w), J = ce(d), Q = ce(N), pe = at(
448
448
  (r) => {
449
449
  const y = C === Se ? m.height - t.height : m.width - t.width;
450
450
  let T = r;
@@ -464,7 +464,7 @@ const Ot = (e, s, a) => {
464
464
  return;
465
465
  }
466
466
  const r = () => {
467
- const T = N.current[ne];
467
+ const T = I.current[ne];
468
468
  if (!T || !j)
469
469
  return 0;
470
470
  const k = Ce(T, b.current), E = Ht({
@@ -602,10 +602,10 @@ const Ot = (e, s, a) => {
602
602
  style: ot,
603
603
  children: [
604
604
  Y.map((r, y) => /* @__PURE__ */ u(
605
- Nt,
605
+ It,
606
606
  {
607
607
  ref: (T) => {
608
- N.current[r.key] = T;
608
+ I.current[r.key] = T;
609
609
  },
610
610
  tabKey: r.key,
611
611
  ...r.props,
@@ -634,7 +634,7 @@ const Ot = (e, s, a) => {
634
634
  prefixCls: f,
635
635
  animation: qe,
636
636
  direction: C,
637
- getTitleRef: (r) => N.current[r],
637
+ getTitleRef: (r) => I.current[r],
638
638
  activeTab: ne,
639
639
  getHeaderRef: () => g,
640
640
  inkBarSize: et
@@ -670,13 +670,13 @@ const Ot = (e, s, a) => {
670
670
  headerSize: m,
671
671
  icon: P == null ? void 0 : P.dropdown,
672
672
  headerWrapperSize: t,
673
- getTitleRef: (r) => N.current[r],
673
+ getTitleRef: (r) => I.current[r],
674
674
  direction: C
675
675
  }
676
676
  ),
677
- (se && j || Ie) && /* @__PURE__ */ ee("div", { className: `${f}-header-extra`, ref: h, children: [
677
+ (se && j || Ne) && /* @__PURE__ */ ee("div", { className: `${f}-header-extra`, ref: h, children: [
678
678
  j && Re(se),
679
- Ie
679
+ Ne
680
680
  ] })
681
681
  ]
682
682
  }
@@ -725,8 +725,8 @@ function Mt(e, s) {
725
725
  style: d,
726
726
  type: i,
727
727
  justify: $,
728
- destroyOnHide: I,
729
- lazyload: N,
728
+ destroyOnHide: N,
729
+ lazyload: I,
730
730
  headerSticky: S,
731
731
  // 潘启宝添加
732
732
  onChange: A,
@@ -755,8 +755,8 @@ function Mt(e, s) {
755
755
  activeTab: m,
756
756
  paneChildren: v,
757
757
  prefixCls: l,
758
- destroyOnHide: I,
759
- lazyload: N
758
+ destroyOnHide: N,
759
+ lazyload: I
760
760
  }
761
761
  );
762
762
  return /* @__PURE__ */ u(
@@ -1,7 +1,5 @@
1
- import "./C0pRaDCf.js";
2
- import M from "lodash/isFunction.js";
3
- import O from "lodash/isString.js";
4
- const a = (t) => (i) => Math.pow(i, t), n = (t) => (i) => 1 - Math.abs(Math.pow(i - 1, t)), r = (t) => (i) => i < 0.5 ? a(t)(i * 2) / 2 : n(t)(i * 2 - 1) / 2 + 0.5, q = (t) => t, y = a(2), b = n(2), g = r(2), F = a(3), P = n(3), k = r(3), w = a(4), T = n(4), v = r(4), A = a(5), D = n(5), S = r(5), U = (t) => 1 + Math.sin(Math.PI / 2 * t - Math.PI / 2), x = (t) => Math.sin(Math.PI / 2 * t), $ = (t) => (1 + Math.sin(Math.PI * t - Math.PI / 2)) / 2, u = (t) => t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? (t -= 1.5 / 2.75, 7.5625 * t * t + 0.75) : t < 2.5 / 2.75 ? (t -= 2.25 / 2.75, 7.5625 * t * t + 0.9375) : (t -= 2.625 / 2.75, 7.5625 * t * t + 0.984375), l = (t) => 1 - u(1 - t), B = (t) => t < 0.5 ? l(t * 2) * 0.5 : u(t * 2 - 1) * 0.5 + 0.5, d = {
1
+ import { isFunction as O, isString as M } from "@unicom-cloud/utils/is";
2
+ const a = (t) => (i) => Math.pow(i, t), n = (t) => (i) => 1 - Math.abs(Math.pow(i - 1, t)), r = (t) => (i) => i < 0.5 ? a(t)(i * 2) / 2 : n(t)(i * 2 - 1) / 2 + 0.5, q = (t) => t, y = a(2), b = n(2), g = r(2), F = a(3), P = n(3), k = r(3), w = a(4), S = n(4), T = r(4), v = a(5), A = n(5), D = r(5), U = (t) => 1 + Math.sin(Math.PI / 2 * t - Math.PI / 2), x = (t) => Math.sin(Math.PI / 2 * t), B = (t) => (1 + Math.sin(Math.PI * t - Math.PI / 2)) / 2, u = (t) => t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? (t -= 1.5 / 2.75, 7.5625 * t * t + 0.75) : t < 2.5 / 2.75 ? (t -= 2.25 / 2.75, 7.5625 * t * t + 0.9375) : (t -= 2.625 / 2.75, 7.5625 * t * t + 0.984375), l = (t) => 1 - u(1 - t), $ = (t) => t < 0.5 ? l(t * 2) * 0.5 : u(t * 2 - 1) * 0.5 + 0.5, d = {
5
3
  linear: q,
6
4
  quadIn: y,
7
5
  quadOut: b,
@@ -10,19 +8,19 @@ const a = (t) => (i) => Math.pow(i, t), n = (t) => (i) => 1 - Math.abs(Math.pow(
10
8
  cubicOut: P,
11
9
  cubicInOut: k,
12
10
  quartIn: w,
13
- quartOut: T,
14
- quartInOut: v,
15
- quintIn: A,
16
- quintOut: D,
17
- quintInOut: S,
11
+ quartOut: S,
12
+ quartInOut: T,
13
+ quintIn: v,
14
+ quintOut: A,
15
+ quintInOut: D,
18
16
  sineIn: U,
19
17
  sineOut: x,
20
- sineInOut: $,
18
+ sineInOut: B,
21
19
  bounceOut: u,
22
20
  bounceIn: l,
23
- bounceInOut: B
21
+ bounceInOut: $
24
22
  };
25
- class E {
23
+ class z {
26
24
  constructor(i) {
27
25
  const {
28
26
  from: e,
@@ -31,15 +29,15 @@ class E {
31
29
  delay: c,
32
30
  easing: o,
33
31
  onStart: f,
34
- onUpdate: p,
35
- onFinish: I
32
+ onUpdate: I,
33
+ onFinish: p
36
34
  } = i;
37
35
  for (let h in e)
38
36
  s[h] === void 0 && (s[h] = e[h]);
39
37
  for (let h in s)
40
38
  e[h] === void 0 && (e[h] = s[h]);
41
- this.from = e, this.to = s, this.duration = m || 500, this.delay = c || 0, M(o) ? this.easing = o : O(o) && (this.easing = d[o]), this.easing || (this.easing = d.linear), this.onStart = f, this.onUpdate = p || function() {
42
- }, this.onFinish = I, this.startTime = Date.now() + this.delay, this.started = !1, this.finished = !1, this.timer = null, this.keys = {};
39
+ this.from = e, this.to = s, this.duration = m || 500, this.delay = c || 0, O(o) ? this.easing = o : M(o) && (this.easing = d[o]), this.easing || (this.easing = d.linear), this.onStart = f, this.onUpdate = I || function() {
40
+ }, this.onFinish = p, this.startTime = Date.now() + this.delay, this.started = !1, this.finished = !1, this.timer = null, this.keys = {};
43
41
  }
44
42
  update() {
45
43
  var i, e;
@@ -66,9 +64,9 @@ class E {
66
64
  }
67
65
  }
68
66
  export {
69
- v as b,
70
- S as f,
71
- T as q,
67
+ T as b,
68
+ D as f,
69
+ S as q,
72
70
  d as x,
73
- E as y
71
+ z as y
74
72
  };
@@ -0,0 +1,17 @@
1
+ import { useCallback as u } from "react";
2
+ import { Enter as E, ArrowDown as g, ArrowLeft as m, ArrowRight as D, ArrowUp as L } from "@unicom-cloud/utils/constant/keyboardCode";
3
+ function R(r) {
4
+ return u(
5
+ (n) => ({
6
+ onKeyDown(e) {
7
+ var o, i, w, f, y, A;
8
+ const t = e.key;
9
+ t === E.key && ((o = n.onPressEnter) == null || o.call(n, e)), t === g.key && ((i = n.onArrowDown) == null || i.call(n, e)), t === m.key && ((w = n.onArrowLeft) == null || w.call(n, e)), t === D.key && ((f = n.onArrowRight) == null || f.call(n, e)), t === L.key && ((y = n.onArrowUp) == null || y.call(n, e)), (A = r == null ? void 0 : r.onKeyDown) == null || A.call(r, e);
10
+ }
11
+ }),
12
+ []
13
+ );
14
+ }
15
+ export {
16
+ R as u
17
+ };
@@ -1,9 +1,8 @@
1
1
  import { Component as n } from "react";
2
2
  import a, { findDOMNode as f } from "react-dom";
3
- import { g as u } from "./DAAff-FT.js";
3
+ import { g as u } from "./ClM74To2.js";
4
4
  import s from "../utils/warning.js";
5
- import "./C0pRaDCf.js";
6
- import i from "lodash/isFunction.js";
5
+ import { isFunction as i } from "@unicom-cloud/utils/is";
7
6
  const p = a;
8
7
  let c;
9
8
  try {
@@ -35,13 +34,13 @@ const N = (o, t) => {
35
34
  "Element does not define the `getRootDOMNode` method causing a call to React.findDOMNode. but findDOMNode is deprecated in StrictMode. Please check the code logic",
36
35
  { element: o, instance: t }
37
36
  ), f) ? f(t) : null;
38
- }, y = (o, t) => {
37
+ }, m = (o, t) => {
39
38
  o && o.ref && (i(o.ref) && (o == null || o.ref(t)), "current" in o.ref && (o.ref.current = t));
40
- }, E = (o) => {
39
+ }, y = (o) => {
41
40
  c = o;
42
41
  };
43
42
  export {
44
- y as c,
43
+ m as c,
45
44
  N as f,
46
- E as s
45
+ y as s
47
46
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as I, jsx as m } from "react/jsx-runtime";
2
2
  import O from "react";
3
- import { p as T } from "./CUFsOxJ2.js";
3
+ import T from "@unicom-cloud/utils/class-name";
4
4
  import { newArray as L } from "../utils/constant.js";
5
5
  import { a as B, m as E, d as _ } from "./tamGhTJp.js";
6
6
  import { padStart as q } from "../utils/pad.js";
@@ -0,0 +1,23 @@
1
+ import { p as i } from "./Coz3rCng.js";
2
+ import "./ClM74To2.js";
3
+ import { isFunction as a } from "@unicom-cloud/utils/is";
4
+ function f(t, r) {
5
+ if (t) {
6
+ i(t, {
7
+ block: "start",
8
+ behavior: "auto",
9
+ scrollMode: "if-needed",
10
+ ...r
11
+ });
12
+ const o = t.offsetHeight, { height: e } = t.getBoundingClientRect();
13
+ if (r && r.boundary && o !== e) {
14
+ const c = a(r.boundary) ? r.boundary(t) : r.boundary;
15
+ c.scrollTop = Math.round(
16
+ c.scrollTop * (o / e)
17
+ );
18
+ }
19
+ }
20
+ }
21
+ export {
22
+ f as s
23
+ };