@unicom-cloud/ui 0.8.56 → 0.8.58

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 (261) hide show
  1. package/Affix.js +15 -15
  2. package/Alert.js +5 -5
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +28 -28
  5. package/Avatar.js +11 -11
  6. package/BackTop.js +28 -28
  7. package/Badge.js +10 -10
  8. package/Breadcrumb.js +6 -6
  9. package/Button.js +11 -10
  10. package/Calendar.js +8 -8
  11. package/Card.js +3 -3
  12. package/Carousel.js +7 -7
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +582 -11
  17. package/Comment.js +7 -7
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +6 -6
  20. package/DatePicker.js +14 -12
  21. package/Descriptions.js +3 -3
  22. package/Divider.js +3 -3
  23. package/Draggable.js +12 -12
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +5 -5
  26. package/Empty.js +3 -3
  27. package/Form.js +1410 -10
  28. package/Grid.js +14 -14
  29. package/Icon.js +2 -2
  30. package/IconHover.js +2 -2
  31. package/Image.js +1 -1
  32. package/Input.js +2 -2
  33. package/InputNumber.js +8 -8
  34. package/InputTag.js +1 -1
  35. package/Layout.js +8 -8
  36. package/Link.js +13 -13
  37. package/List.js +21 -21
  38. package/Mentions.js +30 -30
  39. package/Menu.js +1 -1
  40. package/Message.js +3 -3
  41. package/Modal.js +1 -1
  42. package/Notice.js +3 -3
  43. package/Notification.js +4 -4
  44. package/OverflowEllipsis.js +9 -9
  45. package/PageHeader.js +10 -10
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +5 -5
  49. package/Popover.js +7 -7
  50. package/Portal.js +1 -1
  51. package/Progress.js +15 -15
  52. package/Radio.js +2 -2
  53. package/Rate.js +10 -10
  54. package/ResizeBox.js +10 -11
  55. package/Result.js +11 -11
  56. package/Select.js +1 -1
  57. package/SelectView.js +40 -41
  58. package/Skeleton.js +4 -4
  59. package/Slider.js +9 -9
  60. package/Space.js +12 -12
  61. package/SpeechSynthesis.js +1 -1
  62. package/Spin.js +11 -11
  63. package/Statistic.js +43 -43
  64. package/Steps.js +5 -5
  65. package/Switch.js +15 -16
  66. package/Table.js +17 -17
  67. package/Tabs.js +1 -1
  68. package/Tag.js +5 -5
  69. package/TimePicker.js +38 -38
  70. package/Timeline.js +1 -1
  71. package/Tooltip.js +9 -9
  72. package/Transfer.js +26 -26
  73. package/Tree.js +1 -1
  74. package/TreeSelect.js +1 -1
  75. package/Trigger.js +11 -11
  76. package/Typography.js +1 -1
  77. package/Upload.js +4 -1
  78. package/VerificationCode.js +1 -1
  79. package/Version.js +1 -1
  80. package/VirtualList.js +1 -1
  81. package/Watermark.js +1 -1
  82. package/chunk/{m_kOQCiU.js → -LZOUh53.js} +1 -1
  83. package/chunk/{CXNW5Y2a.js → -jdfq71f.js} +1 -1
  84. package/chunk/{CkAOsst1.js → 4-gvEY5y.js} +30 -30
  85. package/chunk/{DQXq1QT0.js → B0GOLsj_.js} +1 -1
  86. package/chunk/{yvbAFxtk.js → B16KHtX-.js} +16 -16
  87. package/chunk/{CggcswbO.js → B2vORJQ8.js} +19 -15
  88. package/chunk/{BCk8e9fj.js → B7Zsp3gO.js} +1 -1
  89. package/chunk/B8QV6E2b.js +34 -0
  90. package/chunk/{BeM2hfks.js → BBVjSFnw.js} +27 -23
  91. package/chunk/{1mEO29GP.js → BDjXkzNj.js} +1 -1
  92. package/chunk/{BuEC_zcc.js → BEDYCG-I.js} +31 -31
  93. package/chunk/{B45v5S9k.js → BHn4xgbv.js} +1 -1
  94. package/chunk/{CF3Telny.js → BJ_7JTqC.js} +3 -3
  95. package/chunk/{BM6dpkeM.js → BLSiP_gg.js} +1 -1
  96. package/chunk/{9Gh1afjL.js → BMJfSSLX.js} +1 -1
  97. package/chunk/{DBJ8d0o0.js → BNHrEI0Y.js} +31 -31
  98. package/chunk/{BP7xX86Q.js → BPZ-6HKJ.js} +131 -134
  99. package/chunk/{DxNRWF67.js → BVLwPZis.js} +11 -11
  100. package/chunk/{BpwDupra.js → BYhtrDV3.js} +9 -9
  101. package/chunk/{D6mVoX-C.js → B_nfMl0e.js} +1 -1
  102. package/chunk/{BWx1cVT_.js → BcS17Pzy.js} +1 -1
  103. package/chunk/Bdh4XVuf.js +1487 -0
  104. package/chunk/{BkHxm4sv.js → BdiEwtQO.js} +1 -1
  105. package/chunk/{DDda6s72.js → BjSHZA0m.js} +6 -6
  106. package/chunk/{C7Okdv4u.js → Bpug_KxP.js} +1 -1
  107. package/chunk/BzPkh4Zv.js +11 -0
  108. package/chunk/{CwXmtKib.js → C1D7T29r.js} +35 -35
  109. package/chunk/{DYZzQ2uT.js → C1u_ckwU.js} +1 -1
  110. package/chunk/C1xMmQIZ.js +468 -0
  111. package/chunk/C2lIz2F9.js +60 -0
  112. package/chunk/{Be7oeWU8.js → C43Hv2Bl.js} +1 -1
  113. package/chunk/{JnyGFb5j.js → C5AQWbC4.js} +79 -79
  114. package/chunk/{fqgc8r6C.js → C9vsih_D.js} +1 -1
  115. package/chunk/CANaGbGR.js +154 -0
  116. package/chunk/{BA02BFUV.js → CAfR2wLq.js} +1 -1
  117. package/chunk/{CcX2pBUh.js → CAfecMDF.js} +1 -1
  118. package/chunk/{BHK9zpXn.js → CKp4rZnD.js} +1 -1
  119. package/chunk/CTxjmYmx.js +19 -0
  120. package/chunk/{BqxwlITu.js → CV2Aqv9q.js} +1 -1
  121. package/chunk/{bsawGxt8.js → CYdarMv9.js} +1 -1
  122. package/chunk/{DafaH1Qt.js → C_S5Mdvd.js} +43 -44
  123. package/chunk/{DkIjpuBZ.js → Cbd50gx8.js} +11 -11
  124. package/chunk/{B2Bp3i5u.js → CbiWdbr_.js} +12 -12
  125. package/chunk/{cUuQh7L_.js → CmB-TL7C.js} +1 -1
  126. package/chunk/{BbYzi8M0.js → CuOl4X0X.js} +4 -4
  127. package/chunk/{BHLTzWzi.js → D-ER56Sf.js} +1 -1
  128. package/chunk/{BK1FKNAX.js → D-aYnb6u.js} +1 -1
  129. package/chunk/{DalIRWr7.js → D2HkyI6A.js} +9 -9
  130. package/chunk/D3NFxdmG.js +518 -0
  131. package/chunk/{C2fspJbE.js → D3xQFJcO.js} +1 -1
  132. package/chunk/{Lk60-jkf.js → DApXtulb.js} +4 -0
  133. package/chunk/{sl8s35SK.js → DJcEys80.js} +1 -1
  134. package/chunk/{B1S1OEw6.js → DLIm6rRJ.js} +1 -1
  135. package/chunk/{C95ipQ6b.js → DOWEHtqM.js} +1 -1
  136. package/chunk/{t51ig1FZ.js → DSGRHf-1.js} +132 -132
  137. package/chunk/{D9TqtOhq.js → DT37l12z.js} +1 -1
  138. package/chunk/{B6fn5y_s.js → DW-B7npC.js} +1 -1
  139. package/chunk/D_-UD4vO.js +119 -0
  140. package/chunk/{Dtnux4qL.js → D_MTFBb0.js} +1 -1
  141. package/chunk/{WkB0MERB.js → DhBo0pPJ.js} +27 -27
  142. package/chunk/DmUhn9ib.js +961 -0
  143. package/chunk/{Bny52uiG.js → DpfUGhi4.js} +10 -10
  144. package/chunk/{DhLbnw3R.js → Dx_5J4fO.js} +1 -1
  145. package/chunk/{B9PsJar0.js → Dy487FZ1.js} +1 -1
  146. package/chunk/{D6RTBH4C.js → IooeSKJJ.js} +10 -10
  147. package/chunk/Kbr6FzOG.js +745 -0
  148. package/chunk/{CwjaGytU.js → RMBPs_Ry.js} +32 -32
  149. package/chunk/Uz-rNulO.js +98 -0
  150. package/chunk/V6euPXVB.js +1025 -0
  151. package/chunk/{Bv8ZRDFt.js → YIlBPVAs.js} +14 -14
  152. package/chunk/{DPvnQJ-H.js → cDZI_t6o.js} +1 -1
  153. package/chunk/{C-w9pFY-.js → cZiP8FvM.js} +3 -3
  154. package/chunk/{DJmWXheU.js → eK7lxdak.js} +8 -8
  155. package/chunk/{Dg2DmtzA.js → gIbzjQ-X.js} +5 -6
  156. package/chunk/{CPl52AZh.js → sScV-J56.js} +1 -1
  157. package/chunk/{BbI3gqVr.js → wI2I1qb0.js} +1 -1
  158. package/hooks/index.js +32 -32
  159. package/hooks/use-verification-code.js +23 -22
  160. package/hooks/use-watermark.js +2 -1
  161. package/hooks/useComputedState.js +2 -1
  162. package/hooks/useCreate.js +2 -1
  163. package/hooks/useForceUpdate.js +2 -1
  164. package/hooks/useId.js +2 -1
  165. package/hooks/useInView.js +5 -4
  166. package/hooks/useIntersectionObserver.js +11 -11
  167. package/hooks/useIsFirstRender.js +2 -1
  168. package/hooks/useIsomorphicLayoutEffect.js +2 -1
  169. package/hooks/useKeyboardEvent.js +3 -2
  170. package/hooks/useMedia.js +2 -1
  171. package/hooks/useMergeProps.js +2 -1
  172. package/hooks/useMergeValue.js +4 -3
  173. package/hooks/useOverflowHidden.js +2 -1
  174. package/hooks/useOverrideRef.js +2 -1
  175. package/hooks/usePersistCallback.js +2 -1
  176. package/hooks/usePrevious.js +2 -1
  177. package/hooks/useRefs.js +2 -1
  178. package/hooks/useResizeObserver.js +2 -1
  179. package/hooks/useStateCallback.js +2 -1
  180. package/hooks/useStateWithPromise.js +2 -1
  181. package/hooks/useUpdateEffect.js +2 -1
  182. package/hooks/useWatch.js +3 -2
  183. package/hooks/useWindowSize.js +2 -1
  184. package/icons.js +35 -35
  185. package/index.js +484 -376
  186. package/locale/en-US.js +3 -11
  187. package/locale/tr-TR.js +3 -11
  188. package/package.json +1 -1
  189. package/types/anchor/Anchor.d.ts +1 -1
  190. package/types/button/index.d.ts +3 -2
  191. package/types/color-picker/hooks/useColorPicker.d.ts +1 -1
  192. package/types/color-picker/hooks/useControlBlock.d.ts +1 -1
  193. package/types/config-provider/interface.d.ts +1 -0
  194. package/types/date-picker/PickerRange.d.ts +1 -1
  195. package/types/hooks/use-verification-code/index.d.ts +2 -1
  196. package/types/hooks/use-watermark/index.d.ts +2 -1
  197. package/types/hooks/useComputedState.d.ts +2 -2
  198. package/types/hooks/useCreate.d.ts +2 -1
  199. package/types/hooks/useForceUpdate.d.ts +2 -1
  200. package/types/hooks/useId.d.ts +2 -1
  201. package/types/hooks/useInView.d.ts +1 -1
  202. package/types/hooks/useIntersectionObserver.d.ts +1 -1
  203. package/types/hooks/useIsFirstRender.d.ts +2 -1
  204. package/types/hooks/useIsomorphicLayoutEffect.d.ts +1 -1
  205. package/types/hooks/useKeyboardEvent.d.ts +2 -2
  206. package/types/hooks/useMedia.d.ts +1 -1
  207. package/types/hooks/useMergeProps.d.ts +2 -1
  208. package/types/hooks/useMergeValue.d.ts +2 -1
  209. package/types/hooks/useOverflowHidden.d.ts +2 -2
  210. package/types/hooks/useOverrideRef.d.ts +2 -1
  211. package/types/hooks/usePersistCallback.d.ts +2 -1
  212. package/types/hooks/usePrevious.d.ts +2 -1
  213. package/types/hooks/useRefs.d.ts +2 -1
  214. package/types/hooks/useResizeObserver.d.ts +2 -1
  215. package/types/hooks/useStateCallback.d.ts +1 -1
  216. package/types/hooks/useStateWithPromise.d.ts +1 -1
  217. package/types/hooks/useUpdateEffect.d.ts +2 -1
  218. package/types/hooks/useWatch.d.ts +2 -1
  219. package/types/hooks/useWindowSize.d.ts +1 -1
  220. package/types/image/interface.d.ts +1 -1
  221. package/types/index.d.ts +13 -22
  222. package/types/table/interface.d.ts +3 -1
  223. package/types/upload/Upload.d.ts +2 -1
  224. package/types/upload/index.d.ts +3 -1
  225. package/types/upload/request_.d.ts +3 -0
  226. package/types/utils/caseName.d.ts +2 -0
  227. package/types/utils/fileToURL.d.ts +2 -0
  228. package/types/utils/fillNBSP.d.ts +1 -1
  229. package/types/utils/index.d.ts +37 -0
  230. package/types/utils/is.d.ts +2 -2
  231. package/types/utils/lodash.d.ts +4 -0
  232. package/types/utils/scrollIntoView.d.ts +2 -1
  233. package/types/version/index.d.ts +1 -1
  234. package/ui.css +1 -0
  235. package/utils/CSSTransition.js +1 -1
  236. package/utils/caseName.js +20 -0
  237. package/utils/className.js +1 -1
  238. package/utils/contextHolder.js +1 -1
  239. package/utils/fileToURL.js +4 -0
  240. package/utils/index.js +219 -0
  241. package/utils/is.js +95 -93
  242. package/utils/keyCode.js +10 -46
  243. package/utils/lodash.js +8 -0
  244. package/utils/mergedToString.js +11 -10
  245. package/utils/reactDOM.js +1 -1
  246. package/utils/saveAs.js +1 -1
  247. package/utils/scrollIntoView.js +8 -7
  248. package/chunk/5pZ3ayqs.js +0 -29
  249. package/chunk/Bl-ODC57.js +0 -945
  250. package/chunk/BlKc_pDZ.js +0 -678
  251. package/chunk/CiEln_Q1.js +0 -517
  252. package/chunk/CilQ012k.js +0 -1796
  253. package/chunk/CnY8SvgY.js +0 -126
  254. package/chunk/DRJO1GfY.js +0 -855
  255. package/chunk/DUxWiN2U.js +0 -1465
  256. package/chunk/Do1aMgY3.js +0 -12
  257. package/chunk/Dw4SJ4o1.js +0 -964
  258. package/chunk/V_IcWDFx.js +0 -49
  259. package/style.css +0 -1
  260. /package/types/utils/{mergeProp.d.ts → mergeProps.d.ts} +0 -0
  261. /package/utils/{mergeProp.js → mergeProps.js} +0 -0
@@ -0,0 +1,60 @@
1
+ const e = {
2
+ key: "Enter",
3
+ code: "Enter",
4
+ keyCode: 13
5
+ }, o = {
6
+ key: "Escape",
7
+ code: "Escape",
8
+ keyCode: 27
9
+ }, c = {
10
+ key: "Backspace",
11
+ code: "Backspace",
12
+ keyCode: 8
13
+ }, r = {
14
+ key: "Tab",
15
+ code: "Tab",
16
+ keyCode: 9
17
+ }, a = {
18
+ key: " ",
19
+ code: "Space",
20
+ keyCode: 32
21
+ }, s = {
22
+ key: "ArrowUp",
23
+ code: "ArrowUp",
24
+ keyCode: 38
25
+ }, t = {
26
+ key: "ArrowDown",
27
+ code: "ArrowDown",
28
+ keyCode: 40
29
+ }, k = {
30
+ key: "ArrowLeft",
31
+ code: "ArrowLeft",
32
+ keyCode: 37
33
+ }, d = {
34
+ key: "ArrowRight",
35
+ code: "ArrowRight",
36
+ keyCode: 39
37
+ }, y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38
+ __proto__: null,
39
+ ArrowDown: t,
40
+ ArrowLeft: k,
41
+ ArrowRight: d,
42
+ ArrowUp: s,
43
+ Backspace: c,
44
+ Enter: e,
45
+ Esc: o,
46
+ Space: a,
47
+ Tab: r
48
+ }, Symbol.toStringTag, { value: "Module" }));
49
+ export {
50
+ t as A,
51
+ c as B,
52
+ e as E,
53
+ a as S,
54
+ r as T,
55
+ k as a,
56
+ d as b,
57
+ s as c,
58
+ o as d,
59
+ y as k
60
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import t from "react";
3
- import { u as n } from "./B45v5S9k.js";
3
+ import { u as n } from "./BHn4xgbv.js";
4
4
  const u = t.forwardRef(function(o, i) {
5
5
  const r = n({ ...o, name: "ui-question-circle-fill" });
6
6
  return /* @__PURE__ */ e(
@@ -1,23 +1,23 @@
1
1
  import { jsxs as it, jsx as M } from "react/jsx-runtime";
2
- import { y as vt, t as At } from "./CnY8SvgY.js";
2
+ import { p as vt, i as At } from "./CANaGbGR.js";
3
3
  import ot from "lodash/isFunction";
4
- import q from "lodash/isNumber";
5
- import $t from "lodash/throttle";
6
- import Rt, { createContext as Tt, forwardRef as ct, useContext as _, useRef as N, useImperativeHandle as st, useEffect as O, isValidElement as Pt, useState as bt, useCallback as D } from "react";
7
- import Et from "../Affix.js";
8
- import { b as lt } from "./DUxWiN2U.js";
9
- import Mt from "../hooks/useIsFirstRender.js";
10
- import at from "../hooks/useMergeProps.js";
11
- import Ot from "../hooks/useStateWithPromise.js";
12
- import { y as ut } from "./Do1aMgY3.js";
13
- import { on as It, off as Ft } from "../utils/dom.js";
4
+ import _ from "lodash/isNumber";
5
+ import Pt from "lodash/throttle";
6
+ import Rt, { createContext as Tt, forwardRef as ct, useContext as q, useRef as N, useImperativeHandle as st, useEffect as O, isValidElement as $t, useState as Et, useCallback as D } from "react";
7
+ import bt from "../Affix.js";
8
+ import { d as lt } from "./Bdh4XVuf.js";
9
+ import { useIsFirstRender as Mt } from "../hooks/useIsFirstRender.js";
10
+ import { useMergeProps as at } from "../hooks/useMergeProps.js";
11
+ import { useStateWithPromise as Ot } from "../hooks/useStateWithPromise.js";
12
+ import { y as ut } from "./BzPkh4Zv.js";
13
+ import { on as Ft, off as Ht } from "../utils/dom.js";
14
14
  import { isWindow as ft } from "../utils/is.js";
15
- import Ht from "lodash/isNull";
15
+ import It from "lodash/isNull";
16
16
  import Dt from "lodash/isPlainObject";
17
17
  import G from "lodash/isString";
18
18
  import Ut from "lodash/isUndefined";
19
- import { I as jt, q as zt } from "./CkAOsst1.js";
20
- const mt = Tt({
19
+ import { C as jt, P as zt } from "./4-gvEY5y.js";
20
+ const dt = Tt({
21
21
  direction: "vertical",
22
22
  currentLink: "",
23
23
  onLinkClick: () => {
@@ -26,45 +26,45 @@ const mt = Tt({
26
26
  },
27
27
  removeLink: () => {
28
28
  }
29
- }), dt = "AnchorLink", Bt = {
29
+ }), mt = "AnchorLink", Bt = {
30
30
  href: "#"
31
31
  };
32
32
  function Vt(e) {
33
33
  return Dt(e) && Object.prototype.hasOwnProperty.call(e, "displayName");
34
34
  }
35
35
  function Yt(e, r) {
36
- const { getPrefixCls: c, componentConfig: s } = _(lt), { className: y, style: j, href: l, title: m, children: u, ...z } = at(
36
+ const { getPrefixCls: c, componentConfig: s } = q(lt), { className: C, style: j, href: l, title: d, children: u, ...z } = at(
37
37
  e,
38
38
  Bt,
39
39
  s == null ? void 0 : s["Anchor.Link"]
40
- ), C = _(mt), { currentLink: B, addLink: L, removeLink: S, onLinkClick: v, direction: I } = C, o = c("anchor-link"), A = ut(
40
+ ), y = q(dt), { currentLink: B, addLink: L, removeLink: S, onLinkClick: v, direction: F } = y, o = c("anchor-link"), A = ut(
41
41
  o,
42
42
  {
43
43
  [`${o}-active`]: B === l
44
44
  },
45
- y
46
- ), $ = N(null);
47
- return st(r, () => $.current, []), O(() => (L == null || L(l, $.current), () => {
45
+ C
46
+ ), P = N(null);
47
+ return st(r, () => P.current, []), O(() => (L == null || L(l, P.current), () => {
48
48
  S == null || S(l);
49
- }), [l]), /* @__PURE__ */ it("div", { className: A, style: j, ref: $, ...z, children: [
50
- !Ut(m) && !Ht(m) && /* @__PURE__ */ M(
49
+ }), [l]), /* @__PURE__ */ it("div", { className: A, style: j, ref: P, ...z, children: [
50
+ !Ut(d) && !It(d) && /* @__PURE__ */ M(
51
51
  "a",
52
52
  {
53
53
  className: `${o}-title`,
54
- title: G(m) ? m : "",
54
+ title: G(d) ? d : "",
55
55
  href: l,
56
56
  "data-href": l,
57
57
  onClick: (i) => {
58
58
  v == null || v(i, l);
59
59
  },
60
- children: m
60
+ children: d
61
61
  }
62
62
  ),
63
- u && I !== "horizontal" && Rt.Children.map(u, (i) => Pt(i) && Vt(i.type) && i.type.displayName === dt && i)
63
+ u && F !== "horizontal" && Rt.Children.map(u, (i) => $t(i) && Vt(i.type) && i.type.displayName === mt && i)
64
64
  ] });
65
65
  }
66
66
  const pt = ct(Yt);
67
- pt.displayName = dt;
67
+ pt.displayName = mt;
68
68
  function U(e, r) {
69
69
  const c = G(r) && r[0] === "#" ? `[id='${r.replace("#", "")}']` : r;
70
70
  try {
@@ -83,18 +83,18 @@ function Wt(e, r, c) {
83
83
  },
84
84
  easing: zt,
85
85
  duration: 300,
86
- onUpdate: (y) => {
87
- e.scrollTop = y.scrollTop;
86
+ onUpdate: (C) => {
87
+ e.scrollTop = C.scrollTop;
88
88
  },
89
89
  onFinish: () => {
90
90
  c == null || c();
91
91
  }
92
92
  }).start();
93
93
  }
94
- function qt(e) {
94
+ function _t(e) {
95
95
  return G(e) ? U(document, e) : e || window;
96
96
  }
97
- function _t(e) {
97
+ function qt(e) {
98
98
  return ft(e) ? document.documentElement || document.body : e;
99
99
  }
100
100
  function ht(e) {
@@ -112,36 +112,36 @@ const Gt = {
112
112
  boundary: "start"
113
113
  };
114
114
  function Jt(e, r) {
115
- const { getPrefixCls: c, componentConfig: s, rtl: y } = _(lt), j = at(
115
+ const { getPrefixCls: c, componentConfig: s, rtl: C } = q(lt), j = at(
116
116
  e,
117
117
  Gt,
118
118
  s == null ? void 0 : s.Anchor
119
119
  ), {
120
120
  className: l,
121
- style: m,
121
+ style: d,
122
122
  scrollContainer: u,
123
123
  animation: z = !0,
124
- lineless: C,
124
+ lineless: y,
125
125
  affix: B = !0,
126
126
  affixStyle: L,
127
127
  offsetBottom: S,
128
128
  offsetTop: v,
129
- hash: I = !0,
129
+ hash: F = !0,
130
130
  boundary: o = "start",
131
131
  targetOffset: A,
132
- children: $,
132
+ children: P,
133
133
  direction: i = "vertical",
134
134
  onSelect: J,
135
135
  onChange: V,
136
- ...yt
137
- } = j, k = c("anchor"), Ct = ut(k, l, {
138
- [`${k}-lineless`]: C,
139
- [`${k}-rtl`]: y,
136
+ ...Ct
137
+ } = j, k = c("anchor"), yt = ut(k, l, {
138
+ [`${k}-lineless`]: y,
139
+ [`${k}-rtl`]: C,
140
140
  [`${k}-horizontal`]: i === "horizontal"
141
- }), d = N(null), R = N(null), w = N(/* @__PURE__ */ new Map()), Y = N(!1), T = N(null), [kt, K] = bt(0), [f, wt] = Ot(""), xt = Mt();
141
+ }), m = N(null), R = N(null), w = N(/* @__PURE__ */ new Map()), Y = N(!1), T = N(null), [kt, K] = Et(0), [f, wt] = Ot(""), xt = Mt();
142
142
  function Q() {
143
- let t = qt(u);
144
- return u || (t = ht(d.current)), t;
143
+ let t = _t(u);
144
+ return u || (t = ht(m.current)), t;
145
145
  }
146
146
  O(() => {
147
147
  const t = Q();
@@ -151,8 +151,8 @@ function Jt(e, r) {
151
151
  st(
152
152
  r,
153
153
  () => ({
154
- dom: d.current,
155
- getRootDOMNode: () => d.current
154
+ dom: m.current,
155
+ getRootDOMNode: () => m.current
156
156
  }),
157
157
  []
158
158
  );
@@ -162,19 +162,19 @@ function Jt(e, r) {
162
162
  function Lt(t) {
163
163
  w.current.delete(t), K(Math.random());
164
164
  }
165
- const F = D(
165
+ const H = D(
166
166
  (t) => {
167
- if (!t || !d.current) return;
167
+ if (!t || !m.current) return;
168
168
  if (!w.current.has(t)) {
169
- const p = U(d.current, `a[data-href='${t}']`);
169
+ const p = U(m.current, `a[data-href='${t}']`);
170
170
  p && X(t, p);
171
171
  }
172
172
  const n = w.current.get(t);
173
173
  n && t !== f && (vt(n, {
174
- behavior: "instant",
174
+ behavior: "auto",
175
175
  block: "nearest",
176
176
  scrollMode: "if-needed",
177
- boundary: d.current
177
+ boundary: m.current
178
178
  }), wt(t).then(() => {
179
179
  ot(V) && V(t, f);
180
180
  }));
@@ -182,51 +182,51 @@ function Jt(e, r) {
182
182
  [f, V]
183
183
  ), Z = D(() => {
184
184
  let t;
185
- const n = q(o) ? o : 0, p = T.current, b = _t(p).getBoundingClientRect(), H = document.documentElement.clientHeight;
185
+ const n = _(o) ? o : 0, p = T.current, E = qt(p).getBoundingClientRect(), I = document.documentElement.clientHeight;
186
186
  return [...w.current.keys()].some((W) => {
187
187
  const h = U(document, W);
188
188
  let x = !1;
189
189
  if (h) {
190
- const { top: a, height: E } = h.getBoundingClientRect();
190
+ const { top: a, height: b } = h.getBoundingClientRect();
191
191
  if (ft(p)) {
192
- const g = A ?? H / 2;
193
- x = a >= n && a <= g || a <= n && a + E >= g;
192
+ const g = A ?? I / 2;
193
+ x = a >= n && a <= g || a <= n && a + b >= g;
194
194
  } else {
195
- const g = a - b.top - n, rt = A ?? b.height / 2;
196
- x = g >= 0 && g <= rt || g <= 0 && g + E >= rt;
195
+ const g = a - E.top - n, rt = A ?? E.height / 2;
196
+ x = g >= 0 && g <= rt || g <= 0 && g + b >= rt;
197
197
  }
198
198
  x && (t = h);
199
199
  }
200
200
  return x;
201
201
  }), t;
202
- }, [o, A]), P = D(
203
- $t(
202
+ }, [o, A]), $ = D(
203
+ Pt(
204
204
  () => {
205
205
  if (Y.current) return;
206
206
  const t = Z();
207
207
  if (t && t.id) {
208
208
  const n = `#${t.id}`;
209
- F(n);
209
+ H(n);
210
210
  }
211
211
  },
212
212
  30,
213
213
  { trailing: !0 }
214
214
  ),
215
- [Z, F]
215
+ [Z, H]
216
216
  );
217
217
  function tt(t) {
218
218
  if (t)
219
219
  try {
220
220
  const n = U(document, t);
221
221
  if (!n) return;
222
- const p = q(o) ? "start" : o, nt = q(o) ? o : 0, b = At(n, { block: p });
223
- if (!b.length) return;
224
- let H = !1;
225
- const W = b.map(({ el: h, top: x }) => new Promise((a) => {
226
- if (!H) {
227
- h === T.current && (H = !0);
228
- const E = x - nt;
229
- return z ? Wt(h, E, a) : (I || (h.scrollTop = E), a(null));
222
+ const p = _(o) ? "start" : o, nt = _(o) ? o : 0, E = At(n, { block: p });
223
+ if (!E.length) return;
224
+ let I = !1;
225
+ const W = E.map(({ el: h, top: x }) => new Promise((a) => {
226
+ if (!I) {
227
+ h === T.current && (I = !0);
228
+ const b = x - nt;
229
+ return z ? Wt(h, b, a) : (F || (h.scrollTop = b), a(null));
230
230
  }
231
231
  a(null);
232
232
  }));
@@ -238,21 +238,21 @@ function Jt(e, r) {
238
238
  }
239
239
  }
240
240
  function St(t, n) {
241
- I || t.preventDefault(), F(n), tt(n), ot(J) && J(n, f);
241
+ F || t.preventDefault(), H(n), tt(n), ot(J) && J(n, f);
242
242
  }
243
243
  O(() => {
244
244
  const t = decodeURIComponent(location.hash);
245
- t ? (F(t), tt(t)) : P();
246
- }, []), O(() => (xt || P(), It(T.current, "scroll", P), () => {
247
- Ft(T.current, "scroll", P);
248
- }), [u, P]), O(() => {
245
+ t ? (H(t), tt(t)) : $();
246
+ }, []), O(() => (xt || $(), Ft(T.current, "scroll", $), () => {
247
+ Ht(T.current, "scroll", $);
248
+ }), [u, $]), O(() => {
249
249
  const t = w.current.get(f);
250
- t && !C && R.current && (i === "horizontal" ? (R.current.style.left = `${t.offsetLeft}px`, R.current.style.width = `${t.clientWidth}px`) : R.current.style.top = `${t.offsetTop}px`);
251
- }, [f, C, i, y, kt]);
252
- const et = /* @__PURE__ */ it("div", { className: Ct, style: m, ref: d, ...yt, children: [
253
- !C && f && /* @__PURE__ */ M("div", { className: `${k}-line-slider`, ref: R }),
250
+ t && !y && R.current && (i === "horizontal" ? (R.current.style.left = `${t.offsetLeft}px`, R.current.style.width = `${t.clientWidth}px`) : R.current.style.top = `${t.offsetTop}px`);
251
+ }, [f, y, i, C, kt]);
252
+ const et = /* @__PURE__ */ it("div", { className: yt, style: d, ref: m, ...Ct, children: [
253
+ !y && f && /* @__PURE__ */ M("div", { className: `${k}-line-slider`, ref: R }),
254
254
  /* @__PURE__ */ M(
255
- mt.Provider,
255
+ dt.Provider,
256
256
  {
257
257
  value: {
258
258
  direction: i,
@@ -261,12 +261,12 @@ function Jt(e, r) {
261
261
  removeLink: Lt,
262
262
  onLinkClick: St
263
263
  },
264
- children: /* @__PURE__ */ M("div", { className: `${k}-list`, children: $ })
264
+ children: /* @__PURE__ */ M("div", { className: `${k}-list`, children: P })
265
265
  }
266
266
  )
267
267
  ] });
268
268
  return B ? /* @__PURE__ */ M(
269
- Et,
269
+ bt,
270
270
  {
271
271
  offsetTop: v,
272
272
  offsetBottom: S,
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import i from "react";
3
- import { u as n } from "./B45v5S9k.js";
3
+ import { u as n } from "./BHn4xgbv.js";
4
4
  const m = i.forwardRef(function(t, o) {
5
5
  const e = n({ ...t, name: "ui-filter" });
6
6
  return /* @__PURE__ */ r(
@@ -0,0 +1,154 @@
1
+ const _ = (t) => typeof t == "object" && t != null && t.nodeType === 1, $ = (t, e) => e && t === "hidden" ? !1 : t !== "visible" && t !== "clip", ot = (t) => {
2
+ if (!t.ownerDocument || !t.ownerDocument.defaultView)
3
+ return null;
4
+ try {
5
+ return t.ownerDocument.defaultView.frameElement;
6
+ } catch {
7
+ return null;
8
+ }
9
+ }, nt = (t) => {
10
+ const e = ot(t);
11
+ return e ? e.clientHeight < t.scrollHeight || e.clientWidth < t.scrollWidth : !1;
12
+ }, A = (t, e) => {
13
+ if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
14
+ const l = getComputedStyle(t, null);
15
+ return $(l.overflowY, e) || $(l.overflowX, e) || nt(t);
16
+ }
17
+ return !1;
18
+ }, j = (t, e, l, h, p, n, r, f) => n < t && r > e || n > t && r < e ? 0 : n <= t && f <= l || r >= e && f >= l ? n - t - h : r > e && f < l || n < t && f > l ? r - e + p : 0, rt = (t) => t.parentElement ?? (t.getRootNode().host || null), lt = (t) => {
19
+ const e = window.getComputedStyle(t);
20
+ return {
21
+ top: parseFloat(e.scrollMarginTop) || 0,
22
+ right: parseFloat(e.scrollMarginRight) || 0,
23
+ bottom: parseFloat(e.scrollMarginBottom) || 0,
24
+ left: parseFloat(e.scrollMarginLeft) || 0
25
+ };
26
+ }, tt = (t, e) => {
27
+ var l, h;
28
+ if (typeof document > "u")
29
+ return [];
30
+ const { scrollMode: p, block: n, inline: r, boundary: f, skipOverflowHiddenElements: L } = e, et = typeof f == "function" ? f : (W) => W !== f;
31
+ if (!_(t))
32
+ throw new TypeError("Invalid target");
33
+ const G = document.scrollingElement || document.documentElement, v = [];
34
+ let c = t;
35
+ for (; _(c) && et(c); ) {
36
+ if (c = rt(c), c === G) {
37
+ v.push(c);
38
+ break;
39
+ }
40
+ c != null && c === document.body && A(c) && !A(document.documentElement) || c != null && A(c, L) && v.push(c);
41
+ }
42
+ const u = ((l = window.visualViewport) == null ? void 0 : l.width) ?? innerWidth, g = ((h = window.visualViewport) == null ? void 0 : h.height) ?? innerHeight, { scrollX: m, scrollY: b } = window, {
43
+ height: w,
44
+ width: y,
45
+ top: M,
46
+ right: V,
47
+ bottom: D,
48
+ left: H
49
+ } = t.getBoundingClientRect(), {
50
+ top: J,
51
+ right: K,
52
+ bottom: P,
53
+ left: Q
54
+ } = lt(t);
55
+ let a = n === "start" || n === "nearest" ? M - J : n === "end" ? D + P : M + w / 2 - J + P, d = r === "center" ? H + y / 2 - Q + K : r === "end" ? V + K : H - Q;
56
+ const O = [];
57
+ for (let W = 0; W < v.length; W++) {
58
+ const o = v[W], { height: F, width: C, top: E, right: X, bottom: Y, left: R } = o.getBoundingClientRect();
59
+ if (p === "if-needed" && M >= 0 && H >= 0 && D <= g && V <= u && M >= E && D <= Y && H >= R && V <= X)
60
+ return O;
61
+ const k = getComputedStyle(o), N = parseInt(k.borderLeftWidth, 10), T = parseInt(k.borderTopWidth, 10), x = parseInt(k.borderRightWidth, 10), B = parseInt(k.borderBottomWidth, 10);
62
+ let i = 0, s = 0;
63
+ const I = "offsetWidth" in o ? o.offsetWidth - o.clientWidth - N - x : 0, S = "offsetHeight" in o ? o.offsetHeight - o.clientHeight - T - B : 0, q = "offsetWidth" in o ? o.offsetWidth === 0 ? 0 : C / o.offsetWidth : 0, z = "offsetHeight" in o ? o.offsetHeight === 0 ? 0 : F / o.offsetHeight : 0;
64
+ if (G === o)
65
+ n === "start" ? i = a : n === "end" ? i = a - g : n === "nearest" ? i = j(
66
+ b,
67
+ b + g,
68
+ g,
69
+ T,
70
+ B,
71
+ b + a,
72
+ b + a + w,
73
+ w
74
+ ) : i = a - g / 2, r === "start" ? s = d : r === "center" ? s = d - u / 2 : r === "end" ? s = d - u : s = j(
75
+ m,
76
+ m + u,
77
+ u,
78
+ N,
79
+ x,
80
+ m + d,
81
+ m + d + y,
82
+ y
83
+ ), i = Math.max(0, i + b), s = Math.max(0, s + m);
84
+ else {
85
+ n === "start" ? i = a - E - T : n === "end" ? i = a - Y + B + S : n === "nearest" ? i = j(
86
+ E,
87
+ Y,
88
+ F,
89
+ T,
90
+ B + S,
91
+ a,
92
+ a + w,
93
+ w
94
+ ) : i = a - (E + F / 2) + S / 2, r === "start" ? s = d - R - N : r === "center" ? s = d - (R + C / 2) + I / 2 : r === "end" ? s = d - X + x + I : s = j(
95
+ R,
96
+ X,
97
+ C,
98
+ N,
99
+ x + I,
100
+ d,
101
+ d + y,
102
+ y
103
+ );
104
+ const { scrollLeft: U, scrollTop: Z } = o;
105
+ i = z === 0 ? 0 : Math.max(
106
+ 0,
107
+ Math.min(
108
+ Z + i / z,
109
+ o.scrollHeight - F / z + S
110
+ )
111
+ ), s = q === 0 ? 0 : Math.max(
112
+ 0,
113
+ Math.min(
114
+ U + s / q,
115
+ o.scrollWidth - C / q + I
116
+ )
117
+ ), a += Z - i, d += U - s;
118
+ }
119
+ O.push({ el: o, top: i, left: s });
120
+ }
121
+ return O;
122
+ }, it = (t) => t === Object(t) && Object.keys(t).length !== 0, st = (t) => typeof t == "object" ? typeof t.behavior == "function" : !1, ct = (t) => t === !1 ? { block: "end", inline: "nearest" } : it(t) ? t : { block: "start", inline: "nearest" }, at = (t) => {
123
+ const e = window.getComputedStyle(t);
124
+ return {
125
+ top: parseFloat(e.scrollMarginTop) || 0,
126
+ right: parseFloat(e.scrollMarginRight) || 0,
127
+ bottom: parseFloat(e.scrollMarginBottom) || 0,
128
+ left: parseFloat(e.scrollMarginLeft) || 0
129
+ };
130
+ }, dt = (t) => {
131
+ let e = t;
132
+ for (; e && e.parentNode; ) {
133
+ if (e.parentNode === document)
134
+ return !0;
135
+ e.parentNode instanceof ShadowRoot ? e = e.parentNode.host : e = e.parentNode;
136
+ }
137
+ return !1;
138
+ };
139
+ function ft(t, e) {
140
+ if (!t.isConnected || !dt(t))
141
+ return;
142
+ const l = at(t);
143
+ if (st(e))
144
+ return e.behavior(tt(t, e));
145
+ const h = typeof e == "boolean" || e == null ? void 0 : e.behavior;
146
+ for (const { el: p, top: n, left: r } of tt(t, ct(e))) {
147
+ const f = n - l.top + l.bottom, L = r - l.left + l.right;
148
+ p.scroll({ top: f, left: L, behavior: h });
149
+ }
150
+ }
151
+ export {
152
+ tt as i,
153
+ ft as p
154
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
2
  import m from "react";
3
- import { u as n } from "./B45v5S9k.js";
3
+ import { u as n } from "./BHn4xgbv.js";
4
4
  const z = m.forwardRef(function(t, r) {
5
5
  const v = n({ ...t, name: "ui-drag-dot" });
6
6
  return /* @__PURE__ */ e(
@@ -1,6 +1,6 @@
1
1
  import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
2
  import i from "react";
3
- import { u as s } from "./B45v5S9k.js";
3
+ import { u as s } from "./BHn4xgbv.js";
4
4
  const f = i.forwardRef(function(t, e) {
5
5
  const r = s({ ...t, name: "ui-info" });
6
6
  return /* @__PURE__ */ n(
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
2
  import n from "react";
3
- import { u as r } from "./B45v5S9k.js";
3
+ import { u as r } from "./BHn4xgbv.js";
4
4
  const d = n.forwardRef(function(t, o) {
5
5
  const i = r({ ...t, name: "ui-upload" });
6
6
  return /* @__PURE__ */ e(
@@ -0,0 +1,19 @@
1
+ function i(e) {
2
+ return new Promise((n, o) => {
3
+ if (e instanceof File && e.url)
4
+ n(e.url);
5
+ else {
6
+ const s = "文件解析出错", r = new FileReader();
7
+ r.onload = (t) => {
8
+ var l;
9
+ const a = (l = t.target) == null ? void 0 : l.result;
10
+ a ? n(a) : o(new Error(t)), r.abort();
11
+ }, r.onerror = () => {
12
+ o(new Error(s));
13
+ }, r.readAsDataURL(e);
14
+ }
15
+ });
16
+ }
17
+ export {
18
+ i as l
19
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import r from "react";
3
- import { u as i } from "./B45v5S9k.js";
3
+ import { u as i } from "./BHn4xgbv.js";
4
4
  const d = r.forwardRef(function(e, n) {
5
5
  const t = i({ ...e, name: "ui-menu-fold" });
6
6
  return /* @__PURE__ */ o(
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import n from "react";
3
- import { u as i } from "./B45v5S9k.js";
3
+ import { u as i } from "./BHn4xgbv.js";
4
4
  const m = n.forwardRef(function(r, t) {
5
5
  const e = i({ ...r, name: "ui-caret-up" });
6
6
  return /* @__PURE__ */ o(