@unicom-cloud/ui 0.8.56 → 0.8.57

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.
package/Anchor.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as r } from "./chunk/JnyGFb5j.js";
1
+ import { A as r } from "./chunk/CR4u270n.js";
2
2
  export {
3
3
  r as default
4
4
  };
package/Breadcrumb.js CHANGED
@@ -3,7 +3,7 @@ import { I as v } from "./chunk/BbI3gqVr.js";
3
3
  import g, { useState as O, forwardRef as U, useContext as _ } from "react";
4
4
  import { b as q } from "./chunk/DUxWiN2U.js";
5
5
  import A from "./hooks/useMergeProps.js";
6
- import { M as V } from "./chunk/yvbAFxtk.js";
6
+ import { M as V } from "./chunk/BMvZCjSU.js";
7
7
  import { y as w } from "./chunk/Do1aMgY3.js";
8
8
  import { isEmptyReactNode as F } from "./utils/is.js";
9
9
  import E from "./utils/omit.js";
package/Cascader.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as o } from "./chunk/t51ig1FZ.js";
1
+ import { C as o } from "./chunk/aM2ePYrq.js";
2
2
  export {
3
3
  o as default
4
4
  };
package/Form.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as o, I as r, L as e, a as t, F as m, u as F, b as u, c as d, d as C } from "./chunk/CilQ012k.js";
1
+ import { C as o, I as r, L as e, a as t, F as m, u as F, b as u, c as d, d as C } from "./chunk/HlP8inLK.js";
2
2
  export {
3
3
  o as FormControl,
4
4
  r as FormItem,
package/Menu.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M as e } from "./chunk/yvbAFxtk.js";
1
+ import { M as e } from "./chunk/BMvZCjSU.js";
2
2
  export {
3
3
  e as default
4
4
  };
package/Tabs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as a } from "./chunk/B2Bp3i5u.js";
1
+ import { T as a } from "./chunk/D5p8q9Pa.js";
2
2
  export {
3
3
  a as default
4
4
  };
package/Typography.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as f } from "./chunk/DRJO1GfY.js";
1
+ import { T as f } from "./chunk/Dbk4DVhB.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/Upload.js CHANGED
@@ -1,4 +1,4 @@
1
- import { U as o } from "./chunk/Dw4SJ4o1.js";
1
+ import { U as o } from "./chunk/DMWMrXg1.js";
2
2
  export {
3
3
  o as default
4
4
  };
@@ -11,7 +11,7 @@ import re from "../hooks/useMergeValue.js";
11
11
  import { a as ze } from "./DxNRWF67.js";
12
12
  import { y as B } from "./Do1aMgY3.js";
13
13
  import z from "../utils/omit.js";
14
- import { y as je } from "./CnY8SvgY.js";
14
+ import { y as je } from "./CiZVOdJ3.js";
15
15
  import qe from "../hooks/useIsFirstRender.js";
16
16
  import Qe from "../Tooltip.js";
17
17
  import { Enter as ie, ArrowLeft as Ye, ArrowRight as Je } from "../utils/keyCode.js";
@@ -1,5 +1,5 @@
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 { y as vt, t as At } from "./CiZVOdJ3.js";
3
3
  import ot from "lodash/isFunction";
4
4
  import q from "lodash/isNumber";
5
5
  import $t from "lodash/throttle";
@@ -0,0 +1,122 @@
1
+ let Q = (e) => typeof e == "object" && e != null && e.nodeType === 1, U = (e, t) => t && e === "hidden" ? !1 : e !== "visible" && e !== "clip", _ = (e) => {
2
+ if (!e.ownerDocument || !e.ownerDocument.defaultView)
3
+ return null;
4
+ try {
5
+ return e.ownerDocument.defaultView.frameElement;
6
+ } catch {
7
+ return null;
8
+ }
9
+ }, $ = (e) => {
10
+ let t = _(e);
11
+ return t ? t.clientHeight < e.scrollHeight || t.clientWidth < e.scrollWidth : !1;
12
+ }, F = (e, t) => {
13
+ if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
14
+ let d = getComputedStyle(e, null);
15
+ return U(d.overflowY, t) || U(d.overflowX, t) || $(e);
16
+ }
17
+ return !1;
18
+ }, X = (e, t, d, u, m, l, o, c) => l < e && o > t || l > e && o < t ? 0 : l <= e && c <= d || o >= t && c >= d ? l - e - u : o > t && c < d || l < e && c > d ? o - t + m : 0, ee = (e) => e.parentElement ?? (e.getRootNode().host || null);
19
+ const Z = (e, t) => {
20
+ var d, u;
21
+ if (typeof document > "u")
22
+ return [];
23
+ let { scrollMode: m, block: l, inline: o, boundary: c, skipOverflowHiddenElements: Y } = t, p = typeof c == "function" ? c : (E) => E !== c;
24
+ if (!Q(e))
25
+ throw new TypeError("Invalid target");
26
+ let g = document.scrollingElement || document.documentElement, a = [], h = e;
27
+ for (; Q(h) && p(h); ) {
28
+ if (h = ee(h), h === g) {
29
+ a.push(h);
30
+ break;
31
+ }
32
+ h != null && h === document.body && F(h) && !F(document.documentElement) || h != null && F(h, Y) && a.push(h);
33
+ }
34
+ let w = ((d = window.visualViewport) == null ? void 0 : d.width) ?? innerWidth, b = ((u = window.visualViewport) == null ? void 0 : u.height) ?? innerHeight, v = window.scrollX ?? window.pageXOffset, y = window.scrollY ?? window.pageYOffset, {
35
+ height: W,
36
+ width: H,
37
+ top: M,
38
+ right: S,
39
+ bottom: N,
40
+ left: k
41
+ } = e.getBoundingClientRect(), s = l === "start" || l === "nearest" ? M : l === "end" ? N : M + W / 2, f = o === "center" ? k + H / 2 : o === "end" ? S : k, q = [];
42
+ for (let E = 0; E < a.length; E++) {
43
+ let n = a[E], { height: x, width: C, top: I, right: z, bottom: A, left: O } = n.getBoundingClientRect();
44
+ if (m === "if-needed" && M >= 0 && k >= 0 && N <= b && S <= w && M >= I && N <= A && k >= O && S <= z)
45
+ return q;
46
+ let T = getComputedStyle(n), j = parseInt(T.borderLeftWidth, 10), B = parseInt(T.borderTopWidth, 10), D = parseInt(T.borderRightWidth, 10), R = parseInt(T.borderBottomWidth, 10), i = 0, r = 0, V = "offsetWidth" in n ? n.offsetWidth - n.clientWidth - j - D : 0, L = "offsetHeight" in n ? n.offsetHeight - n.clientHeight - B - R : 0, G = "offsetWidth" in n ? n.offsetWidth === 0 ? 0 : C / n.offsetWidth : 0, J = "offsetHeight" in n ? n.offsetHeight === 0 ? 0 : x / n.offsetHeight : 0;
47
+ if (g === n)
48
+ l === "start" ? i = s : l === "end" ? i = s - b : l === "nearest" ? i = X(
49
+ y,
50
+ y + b,
51
+ b,
52
+ B,
53
+ R,
54
+ y + s,
55
+ y + s + W,
56
+ W
57
+ ) : i = s - b / 2, o === "start" ? r = f : o === "center" ? r = f - w / 2 : o === "end" ? r = f - w : r = X(
58
+ v,
59
+ v + w,
60
+ w,
61
+ j,
62
+ D,
63
+ v + f,
64
+ v + f + H,
65
+ H
66
+ ), i = Math.max(0, i + y), r = Math.max(0, r + v);
67
+ else {
68
+ l === "start" ? i = s - I - B : l === "end" ? i = s - A + R + L : l === "nearest" ? i = X(
69
+ I,
70
+ A,
71
+ x,
72
+ B,
73
+ R + L,
74
+ s,
75
+ s + W,
76
+ W
77
+ ) : i = s - (I + x / 2) + L / 2, o === "start" ? r = f - O - j : o === "center" ? r = f - (O + C / 2) + V / 2 : o === "end" ? r = f - z + D + V : r = X(
78
+ O,
79
+ z,
80
+ C,
81
+ j,
82
+ D + V,
83
+ f,
84
+ f + H,
85
+ H
86
+ );
87
+ let { scrollLeft: K, scrollTop: P } = n;
88
+ i = Math.max(
89
+ 0,
90
+ Math.min(
91
+ P + i / J,
92
+ n.scrollHeight - x / J + L
93
+ )
94
+ ), r = Math.max(
95
+ 0,
96
+ Math.min(
97
+ K + r / G,
98
+ n.scrollWidth - C / G + V
99
+ )
100
+ ), s += P - i, f += K - r;
101
+ }
102
+ q.push({ el: n, top: i, left: r });
103
+ }
104
+ return q;
105
+ };
106
+ let te = (e) => e === Object(e) && Object.keys(e).length !== 0, ne = (e) => typeof e == "object" ? typeof e.behavior == "function" : !1, le = (e) => e === !1 ? { block: "end", inline: "nearest" } : te(e) ? e : { block: "start", inline: "nearest" };
107
+ function oe(e, t) {
108
+ var d, u, m;
109
+ let l = (e == null ? void 0 : e.isConnected) || ((m = (u = (d = e == null ? void 0 : e.ownerDocument) == null ? void 0 : d.documentElement) == null ? void 0 : u.contains) == null ? void 0 : m.call(u, e));
110
+ if (ne(t))
111
+ return t.behavior(l ? Z(e, t) : []);
112
+ if (!l)
113
+ return;
114
+ let o = le(t), c = Z(e, o), Y = "scrollBehavior" in document.body.style;
115
+ c.forEach(({ el: p, top: g, left: a }) => {
116
+ p.scroll && Y ? p.scroll({ top: g, left: a, behavior: o.behavior }) : (p.scrollTop = g, p.scrollLeft = a);
117
+ });
118
+ }
119
+ export {
120
+ Z as t,
121
+ oe as y
122
+ };
@@ -17,7 +17,7 @@ import { setTransformStyle as me } from "../utils/style.js";
17
17
  import { I as jt } from "./1mEO29GP.js";
18
18
  import Ut from "lodash/isNull";
19
19
  import pe from "../Dropdown.js";
20
- import { M as Mt } from "./yvbAFxtk.js";
20
+ import { M as Mt } from "./BMvZCjSU.js";
21
21
  import ge from "lodash/isEqualWith";
22
22
  import be from "../utils/throttleByRaf.js";
23
23
  import { I as Et, a as Bt } from "./D9TqtOhq.js";
@@ -1,39 +1,39 @@
1
1
  import { jsxs as L, Fragment as M, jsx as r } from "react/jsx-runtime";
2
2
  import F from "lodash/isFunction";
3
- import me from "lodash/isNumber";
4
- import te, { useContext as W, forwardRef as J, isValidElement as Ue, useState as B, useMemo as Ie, useEffect as xe, useRef as ie, useImperativeHandle as fe } from "react";
5
- import { b as X, I as $e } from "./DUxWiN2U.js";
6
- import ye from "../hooks/useMergeProps.js";
7
- import { y as z } from "./Do1aMgY3.js";
8
- import we from "../utils/omit.js";
9
- import ce from "../utils/warning.js";
10
- import { b as Pe, P as ne } from "./BP7xX86Q.js";
11
- import { a as Ne } from "./CwXmtKib.js";
12
- import { I as ge } from "./sl8s35SK.js";
13
- import { I as Re } from "./C7Okdv4u.js";
14
- import { I as Le } from "./CPl52AZh.js";
15
- import { I as ae, a as Ce, b as Fe, c as he, d as Ee, e as De, f as Oe } from "./BHK9zpXn.js";
16
- import Q from "../hooks/useKeyboardEvent.js";
3
+ import ue from "lodash/isNumber";
4
+ import ee, { useContext as z, forwardRef as W, isValidElement as ve, useState as B, useMemo as Ue, useEffect as Ie, useRef as te, useImperativeHandle as me } from "react";
5
+ import { b as J, I as xe } from "./DUxWiN2U.js";
6
+ import $e from "../hooks/useMergeProps.js";
7
+ import { y as K } from "./Do1aMgY3.js";
8
+ import ye from "../utils/omit.js";
9
+ import se from "../utils/warning.js";
10
+ import { b as we, P as ie } from "./BP7xX86Q.js";
11
+ import { a as Pe } from "./CwXmtKib.js";
12
+ import { I as fe } from "./sl8s35SK.js";
13
+ import { I as Ne } from "./C7Okdv4u.js";
14
+ import { I as Re } from "./CPl52AZh.js";
15
+ import { I as re, a as Le, b as Ce, c as ge, d as Fe, e as Ee, f as De } from "./BHK9zpXn.js";
16
+ import X from "../hooks/useKeyboardEvent.js";
17
17
  import "../utils/is.js";
18
- import { I as Te } from "./CXNW5Y2a.js";
19
- import ke from "../Progress.js";
20
- import re from "../Tooltip.js";
21
- import { H as pe } from "./BeM2hfks.js";
22
- import H from "lodash/isPlainObject";
18
+ import { I as Oe } from "./CXNW5Y2a.js";
19
+ import Te from "../Progress.js";
20
+ import ne from "../Tooltip.js";
21
+ import { H as ke } from "./BeM2hfks.js";
22
+ import V from "lodash/isPlainObject";
23
23
  import { b as je } from "./B45v5S9k.js";
24
24
  import { I as Se } from "./DYZzQ2uT.js";
25
- import { I as de } from "./B6fn5y_s.js";
25
+ import { I as ce } from "./B6fn5y_s.js";
26
26
  import qe from "../Button.js";
27
27
  import Ae from "lodash/isArray";
28
- import { NOOP as Z } from "../utils/constant.js";
28
+ import { NOOP as Y } from "../utils/constant.js";
29
29
  const y = {
30
30
  init: "init",
31
31
  uploading: "uploading",
32
32
  success: "done",
33
33
  fail: "error"
34
- }, be = (e) => {
34
+ }, he = (e) => {
35
35
  var U, n, g, P, o, b;
36
- const d = Q(), { file: u, prefixCls: s, progressProps: t, progressRender: a } = e, { locale: i } = W(X), { status: l, percent: m = 0 } = u, f = `${s}-list`, h = t && t.width ? { width: t.width } : {}, x = /* @__PURE__ */ L(M, { children: [
36
+ const d = X(), { file: u, prefixCls: s, progressProps: t, progressRender: a } = e, { locale: i } = z(J), { status: l, percent: m = 0 } = u, f = `${s}-list`, h = t && t.width ? { width: t.width } : {}, x = /* @__PURE__ */ L(M, { children: [
37
37
  l === y.fail && e.reuploadIcon !== null && /* @__PURE__ */ r(
38
38
  "span",
39
39
  {
@@ -51,13 +51,13 @@ const y = {
51
51
  (I = e.onReupload) == null || I.call(e, u);
52
52
  }
53
53
  }),
54
- children: e.reuploadIcon || (e.listType === "picture-card" ? /* @__PURE__ */ r(ae, {}) : (n = i == null ? void 0 : i.Upload) == null ? void 0 : n.reupload)
54
+ children: e.reuploadIcon || (e.listType === "picture-card" ? /* @__PURE__ */ r(re, {}) : (n = i == null ? void 0 : i.Upload) == null ? void 0 : n.reupload)
55
55
  }
56
56
  ),
57
- l === y.success && e.successIcon !== null && /* @__PURE__ */ r("span", { className: `${s}-list-success-icon`, children: e.successIcon || /* @__PURE__ */ r(Te, {}) }),
57
+ l === y.success && e.successIcon !== null && /* @__PURE__ */ r("span", { className: `${s}-list-success-icon`, children: e.successIcon || /* @__PURE__ */ r(Oe, {}) }),
58
58
  l !== y.success && /* @__PURE__ */ L("div", { className: `${f}-status`, style: h, children: [
59
59
  /* @__PURE__ */ r(
60
- ke,
60
+ Te,
61
61
  {
62
62
  showText: !1,
63
63
  className: `${f}-progress`,
@@ -85,7 +85,7 @@ const y = {
85
85
  (I = e.onUpload) == null || I.call(e, u);
86
86
  }
87
87
  }),
88
- children: e.startIcon || /* @__PURE__ */ r(re, { content: (P = i == null ? void 0 : i.Upload) == null ? void 0 : P.start, children: /* @__PURE__ */ r(Ce, {}) })
88
+ children: e.startIcon || /* @__PURE__ */ r(ne, { content: (P = i == null ? void 0 : i.Upload) == null ? void 0 : P.start, children: /* @__PURE__ */ r(Le, {}) })
89
89
  }
90
90
  ),
91
91
  l === y.uploading && e.cancelIcon !== null && /* @__PURE__ */ r(
@@ -104,16 +104,16 @@ const y = {
104
104
  (I = e.onAbort) == null || I.call(e, u);
105
105
  }
106
106
  }),
107
- children: e.cancelIcon || /* @__PURE__ */ r(re, { content: (b = i == null ? void 0 : i.Upload) == null ? void 0 : b.cancel, children: /* @__PURE__ */ r(Fe, {}) })
107
+ children: e.cancelIcon || /* @__PURE__ */ r(ne, { content: (b = i == null ? void 0 : i.Upload) == null ? void 0 : b.cancel, children: /* @__PURE__ */ r(Ce, {}) })
108
108
  }
109
109
  )
110
110
  ] })
111
111
  ] });
112
112
  return F(a) ? a(u, x) : x;
113
113
  }, He = (e, d) => {
114
- const { disabled: u, prefixCls: s, file: t, showUploadList: a, locale: i } = e, l = Q(), m = `${s}-list-item-picture`, { status: f, originFile: h } = t, x = t.url !== void 0 ? t.url : h && F(URL.createObjectURL) && URL.createObjectURL(h), U = H(a) ? a : {};
114
+ const { disabled: u, prefixCls: s, file: t, showUploadList: a, locale: i } = e, l = X(), m = `${s}-list-item-picture`, { status: f, originFile: h } = t, x = t.url !== void 0 ? t.url : h && F(URL.createObjectURL) && URL.createObjectURL(h), U = V(a) ? a : {};
115
115
  return /* @__PURE__ */ r("div", { className: m, ref: d, children: f === y.uploading ? /* @__PURE__ */ r(
116
- be,
116
+ he,
117
117
  {
118
118
  onReupload: e.onReupload,
119
119
  onUpload: e.onUpload,
@@ -127,7 +127,7 @@ const y = {
127
127
  ) : /* @__PURE__ */ L(M, { children: [
128
128
  F(U.imageRender) ? U.imageRender(t) : /* @__PURE__ */ r("img", { src: x, alt: t.name }),
129
129
  /* @__PURE__ */ L("div", { className: `${m}-mask`, role: "radiogroup", children: [
130
- t.status === y.fail && /* @__PURE__ */ r("div", { className: `${m}-error-tip`, children: U.errorIcon !== null && /* @__PURE__ */ r("span", { className: `${s}-list-error-icon`, children: U.errorIcon || /* @__PURE__ */ r(Le, {}) }) }),
130
+ t.status === y.fail && /* @__PURE__ */ r("div", { className: `${m}-error-tip`, children: U.errorIcon !== null && /* @__PURE__ */ r("span", { className: `${s}-list-error-icon`, children: U.errorIcon || /* @__PURE__ */ r(Re, {}) }) }),
131
131
  /* @__PURE__ */ L("div", { className: `${m}-operation`, children: [
132
132
  t.status !== y.fail && U.previewIcon !== null && /* @__PURE__ */ r(
133
133
  "span",
@@ -146,7 +146,7 @@ const y = {
146
146
  var n;
147
147
  (n = e.onPreview) == null || n.call(e, t);
148
148
  },
149
- children: U.previewIcon || /* @__PURE__ */ r(Re, {})
149
+ children: U.previewIcon || /* @__PURE__ */ r(Ne, {})
150
150
  }
151
151
  ),
152
152
  t.status === y.fail && U.reuploadIcon !== null && /* @__PURE__ */ r(
@@ -166,7 +166,7 @@ const y = {
166
166
  (n = e.onReupload) == null || n.call(e, t);
167
167
  }
168
168
  }),
169
- children: U.reuploadIcon || /* @__PURE__ */ r(ae, {})
169
+ children: U.reuploadIcon || /* @__PURE__ */ r(re, {})
170
170
  }
171
171
  ),
172
172
  !u && U.removeIcon !== null && /* @__PURE__ */ r(
@@ -186,13 +186,13 @@ const y = {
186
186
  (n = e.onRemove) == null || n.call(e, t);
187
187
  }
188
188
  }),
189
- children: U.removeIcon || /* @__PURE__ */ r(ge, {})
189
+ children: U.removeIcon || /* @__PURE__ */ r(fe, {})
190
190
  }
191
191
  )
192
192
  ] })
193
193
  ] })
194
194
  ] }) });
195
- }, Ve = J(He), Ge = (e) => {
195
+ }, Ve = W(He), pe = (e) => {
196
196
  let d = "";
197
197
  if (e.originFile && e.originFile.type)
198
198
  d = e.originFile.type;
@@ -200,9 +200,9 @@ const y = {
200
200
  const s = (e.name || "").split(".").pop() || "";
201
201
  d = s, ["png", "jpg", "jpeg", "bmp", "gif"].indexOf(s) > -1 ? d = "image" : ["mp4", "m2v", "mkv"].indexOf(s) > -1 ? d = "video" : ["mp3", "wav", "wmv"].indexOf(s) > -1 && (d = "audio");
202
202
  }
203
- return d.indexOf("image") > -1 ? he : d.indexOf("pdf") > -1 ? Ee : d.indexOf("audio") > -1 ? De : d.indexOf("video") > -1 ? Oe : Se;
204
- }, Be = (e, d) => {
205
- const { prefixCls: u, disabled: s, file: t, locale: a } = e, i = `${u}-list-item-text`, l = Q(), m = Ge(t), f = H(e.showUploadList) ? e.showUploadList : {}, h = H(f) ? f : {}, x = t.name || t.originFile && t.originFile.name, U = t.url !== void 0 ? t.url : t.originFile && F(URL.createObjectURL) && URL.createObjectURL(t.originFile);
203
+ return d.indexOf("image") > -1 ? ge : d.indexOf("pdf") > -1 ? Fe : d.indexOf("audio") > -1 ? Ee : d.indexOf("video") > -1 ? De : Se;
204
+ }, Ge = (e, d) => {
205
+ const { prefixCls: u, disabled: s, file: t, locale: a } = e, i = `${u}-list-item-text`, l = X(), m = pe(t), f = V(e.showUploadList) ? e.showUploadList : {}, h = V(f) ? f : {}, x = t.name || t.originFile && t.originFile.name, U = t.url !== void 0 ? t.url : t.originFile && F(URL.createObjectURL) && URL.createObjectURL(t.originFile);
206
206
  let n = {};
207
207
  return t.status !== y.fail && (n = {
208
208
  popupVisible: !1
@@ -228,17 +228,17 @@ const y = {
228
228
  }
229
229
  ) : /* @__PURE__ */ r("span", { className: `${i}-name-text`, children: x }),
230
230
  t.status === y.fail && h.errorIcon !== null && /* @__PURE__ */ r(
231
- re,
231
+ ne,
232
232
  {
233
- content: (typeof t.response == "object" ? Ue(t.response) && t.response : t.response) || a.Upload.error,
233
+ content: (typeof t.response == "object" ? ve(t.response) && t.response : t.response) || a.Upload.error,
234
234
  ...n,
235
235
  disabled: t.status !== y.fail,
236
- children: /* @__PURE__ */ r("span", { className: `${e.prefixCls}-list-error-icon`, children: h.errorIcon || (e.listType === "picture-card" ? /* @__PURE__ */ r(he, {}) : /* @__PURE__ */ r(je, {})) })
236
+ children: /* @__PURE__ */ r("span", { className: `${e.prefixCls}-list-error-icon`, children: h.errorIcon || (e.listType === "picture-card" ? /* @__PURE__ */ r(ge, {}) : /* @__PURE__ */ r(je, {})) })
237
237
  }
238
238
  )
239
239
  ] }),
240
240
  /* @__PURE__ */ r(
241
- be,
241
+ he,
242
242
  {
243
243
  file: t,
244
244
  prefixCls: u,
@@ -252,7 +252,7 @@ const y = {
252
252
  ] })
253
253
  ] }),
254
254
  /* @__PURE__ */ r("div", { className: `${u}-list-item-operation`, children: !s && h.removeIcon !== null && /* @__PURE__ */ r(
255
- $e,
255
+ xe,
256
256
  {
257
257
  className: `${u}-list-remove-icon-hover`,
258
258
  onClick: () => {
@@ -267,21 +267,21 @@ const y = {
267
267
  (g = e.onRemove) == null || g.call(e, t);
268
268
  }
269
269
  }),
270
- children: /* @__PURE__ */ r("span", { className: `${u}-list-remove-icon`, children: h.removeIcon || /* @__PURE__ */ r(ge, {}) })
270
+ children: /* @__PURE__ */ r("span", { className: `${u}-list-remove-icon`, children: h.removeIcon || /* @__PURE__ */ r(fe, {}) })
271
271
  }
272
272
  ) })
273
273
  ]
274
274
  }
275
275
  );
276
- }, Me = J(Be), ve = (e) => {
277
- const { locale: d, rtl: u } = W(X), {
276
+ }, Be = W(Ge), be = (e) => {
277
+ const { locale: d, rtl: u } = z(J), {
278
278
  listType: s,
279
279
  fileList: t,
280
280
  renderUploadList: a,
281
281
  renderUploadItem: i,
282
282
  prefixCls: l,
283
283
  ...m
284
- } = e, [f, h] = B(-1), x = Ie(() => t.map((n) => {
284
+ } = e, [f, h] = B(-1), x = Ue(() => t.map((n) => {
285
285
  let g = n.url;
286
286
  return n.url === void 0 && [y.init, y.success].indexOf(n.status) > -1 && (g = n.originFile && F(URL.createObjectURL) && URL.createObjectURL(n.originFile)), g;
287
287
  }).filter(Boolean), [t]);
@@ -292,9 +292,9 @@ const y = {
292
292
  };
293
293
  return /* @__PURE__ */ L(M, { children: [
294
294
  /* @__PURE__ */ r(
295
- Pe,
295
+ we,
296
296
  {
297
- className: z(
297
+ className: K(
298
298
  `${l}-list`,
299
299
  `${l}-list-type-${s}`,
300
300
  {
@@ -319,9 +319,9 @@ const y = {
319
319
  }
320
320
  )
321
321
  }
322
- ) : /* @__PURE__ */ r(Me, { ...e, file: n, locale: d });
322
+ ) : /* @__PURE__ */ r(Be, { ...e, file: n, locale: d });
323
323
  return F(i) && (P = i(P, n, t)), s === "picture-card" ? /* @__PURE__ */ r(
324
- ne,
324
+ ie,
325
325
  {
326
326
  timeout: { enter: 200, exit: 400 },
327
327
  classNames: `${l}-slide-inline`,
@@ -341,7 +341,7 @@ const y = {
341
341
  },
342
342
  n.uid
343
343
  ) : /* @__PURE__ */ r(
344
- ne,
344
+ ie,
345
345
  {
346
346
  timeout: { enter: 200, exit: 400 },
347
347
  classNames: `${l}-slide-up`,
@@ -362,7 +362,7 @@ const y = {
362
362
  }
363
363
  ),
364
364
  s === "picture-card" && e.imagePreview && /* @__PURE__ */ r(
365
- Ne,
365
+ Pe,
366
366
  {
367
367
  srcList: x,
368
368
  visible: f !== -1,
@@ -375,10 +375,10 @@ const y = {
375
375
  )
376
376
  ] });
377
377
  };
378
- ve.displayName = "FileList";
379
- const oe = (e, d) => {
380
- const u = H(d) ? d == null ? void 0 : d.type : d;
381
- if (!(H(d) && d.strict === !1) && u && e) {
378
+ be.displayName = "FileList";
379
+ const ae = (e, d) => {
380
+ const u = V(d) ? d == null ? void 0 : d.type : d;
381
+ if (!(V(d) && d.strict === !1) && u && e) {
382
382
  const t = Ae(u) ? u : u.split(",").map((i) => i.trim()).filter((i) => i), a = (e.name.indexOf(".") > -1 ? `.${e.name.split(".").pop()}` : "").toLowerCase();
383
383
  return t.some((i) => {
384
384
  const l = i && i.toLowerCase(), m = (e.type || "").toLowerCase(), f = m.split("/")[0];
@@ -394,12 +394,12 @@ const oe = (e, d) => {
394
394
  });
395
395
  }
396
396
  return !!e;
397
- }, _e = (e, d) => {
397
+ }, Me = (e, d) => {
398
398
  if (!e)
399
399
  return;
400
400
  let u = [].slice.call(e);
401
- return d && (u = u.filter((s) => oe(s, d))), u;
402
- }, Ke = (e, d, u) => {
401
+ return d && (u = u.filter((s) => ae(s, d))), u;
402
+ }, _e = (e, d, u) => {
403
403
  const s = [];
404
404
  let t = 0;
405
405
  const a = () => {
@@ -407,7 +407,7 @@ const oe = (e, d) => {
407
407
  }, i = (m) => {
408
408
  if (t += 1, m != null && m.isFile) {
409
409
  m.file((f) => {
410
- t -= 1, oe(f, d) && (Object.defineProperty(f, "webkitRelativePath", {
410
+ t -= 1, ae(f, d) && (Object.defineProperty(f, "webkitRelativePath", {
411
411
  value: m.fullPath.replace(/^\//, "")
412
412
  }), s.push(f)), a();
413
413
  });
@@ -429,8 +429,8 @@ const oe = (e, d) => {
429
429
  [].slice.call(e).forEach((m) => {
430
430
  m.webkitGetAsEntry && i(m.webkitGetAsEntry());
431
431
  });
432
- }, ze = (e, d) => {
433
- const u = Q(), { locale: s } = W(X), [t, a] = B(!1), [i, l] = B(0), {
432
+ }, Ke = (e, d) => {
433
+ const u = X(), { locale: s } = z(J), [t, a] = B(!1), [i, l] = B(0), {
434
434
  tip: m,
435
435
  children: f,
436
436
  disabled: h,
@@ -442,7 +442,7 @@ const oe = (e, d) => {
442
442
  } = e, o = {
443
443
  disabled: h
444
444
  };
445
- return xe(() => {
445
+ return Ie(() => {
446
446
  l(0);
447
447
  }, [t]), f === null ? null : /* @__PURE__ */ r(
448
448
  "div",
@@ -464,34 +464,34 @@ const oe = (e, d) => {
464
464
  b.preventDefault(), i === 0 ? (a(!1), !h && ((I = e.onDragLeave) == null || I.call(e, b))) : l(i - 1);
465
465
  },
466
466
  onDrop: (b) => {
467
- var I, S;
467
+ var I, q;
468
468
  if (b.preventDefault(), !h && e.drag !== !1) {
469
469
  if (a(!1), e.directory)
470
- Ke(b.dataTransfer.items, g, (k) => {
470
+ _e(b.dataTransfer.items, g, (k) => {
471
471
  var O;
472
472
  (O = e.onDragFiles) == null || O.call(e, k);
473
473
  });
474
474
  else {
475
- const k = [].slice.call(b.dataTransfer.items || []).reduce((q, j, V) => {
476
- if (j.webkitGetAsEntry) {
477
- const c = j.webkitGetAsEntry();
478
- return c != null && c.isDirectory ? [...q, V] : q;
475
+ const k = [].slice.call(b.dataTransfer.items || []).reduce((A, S, p) => {
476
+ if (S.webkitGetAsEntry) {
477
+ const c = S.webkitGetAsEntry();
478
+ return c != null && c.isDirectory ? [...A, p] : A;
479
479
  }
480
- }, []), O = [].slice.call(b.dataTransfer.files || []).filter((q, j) => !k.includes(j)), p = _e(O, g);
481
- p.length > 0 && ((I = e.onDragFiles) == null || I.call(e, P ? p : p.slice(0, 1)));
480
+ }, []), O = [].slice.call(b.dataTransfer.files || []).filter((A, S) => !k.includes(S)), j = Me(O, g);
481
+ j.length > 0 && ((I = e.onDragFiles) == null || I.call(e, P ? j : j.slice(0, 1)));
482
482
  }
483
- (S = e.onDrop) == null || S.call(e, b);
483
+ (q = e.onDrop) == null || q.call(e, b);
484
484
  }
485
485
  },
486
486
  onDragOver: (b) => {
487
487
  var I;
488
488
  b.preventDefault(), !h && !t && (a(!0), (I = e.onDragOver) == null || I.call(e, b));
489
489
  },
490
- children: te.isValidElement(f) ? /* @__PURE__ */ r(
490
+ children: ee.isValidElement(f) ? /* @__PURE__ */ r(
491
491
  "div",
492
492
  {
493
- className: z({ [`${n}-trigger-custom-active`]: t }),
494
- children: te.cloneElement(f, o)
493
+ className: K({ [`${n}-trigger-custom-active`]: t }),
494
+ children: ee.cloneElement(f, o)
495
495
  }
496
496
  ) : U === "picture-card" ? /* @__PURE__ */ r("div", { className: `${n}-trigger-picture-wrapper`, children: /* @__PURE__ */ r(
497
497
  "div",
@@ -499,18 +499,18 @@ const oe = (e, d) => {
499
499
  className: `${n}-trigger-picture`,
500
500
  tabIndex: 0,
501
501
  "aria-label": s.Upload.upload,
502
- children: /* @__PURE__ */ r("div", { className: `${n}-trigger-picture-text`, children: e.triggerPictureIcon ?? /* @__PURE__ */ r(de, {}) })
502
+ children: /* @__PURE__ */ r("div", { className: `${n}-trigger-picture-text`, children: e.triggerPictureIcon ?? /* @__PURE__ */ r(ce, {}) })
503
503
  }
504
504
  ) }) : x ? /* @__PURE__ */ L(
505
505
  "div",
506
506
  {
507
- className: z(`${n}-trigger-drag`, {
507
+ className: K(`${n}-trigger-drag`, {
508
508
  [`${n}-trigger-drag-active`]: t
509
509
  }),
510
510
  tabIndex: 0,
511
511
  "aria-label": s.Upload.drag,
512
512
  children: [
513
- e.triggerPictureIcon ?? /* @__PURE__ */ r(de, {}),
513
+ e.triggerPictureIcon ?? /* @__PURE__ */ r(ce, {}),
514
514
  /* @__PURE__ */ r("p", { className: `${n}-trigger-drag-text`, children: t ? s.Upload.dragHover : s.Upload.drag }),
515
515
  m && /* @__PURE__ */ r("div", { className: `${n}-trigger-tip`, children: m })
516
516
  ]
@@ -523,17 +523,17 @@ const oe = (e, d) => {
523
523
  type: "primary",
524
524
  className: `${n}-trigger-with-icon`,
525
525
  children: [
526
- /* @__PURE__ */ r(ae, {}),
526
+ /* @__PURE__ */ r(re, {}),
527
527
  s.Upload.upload
528
528
  ]
529
529
  }
530
530
  )
531
531
  }
532
532
  );
533
- }, We = J(
534
- ze
533
+ }, ze = W(
534
+ Ke
535
535
  );
536
- function ue(e) {
536
+ function de(e) {
537
537
  const d = e.responseText || e.response;
538
538
  if (!d)
539
539
  return d;
@@ -543,11 +543,11 @@ function ue(e) {
543
543
  return d;
544
544
  }
545
545
  }
546
- const Je = function(e) {
546
+ const We = function(e) {
547
547
  const {
548
- onProgress: d = Z,
549
- onError: u = Z,
550
- onSuccess: s = Z,
548
+ onProgress: d = Y,
549
+ onError: u = Y,
550
+ onSuccess: s = Y,
551
551
  action: t,
552
552
  method: a,
553
553
  headers: i = {},
@@ -567,8 +567,8 @@ const Je = function(e) {
567
567
  u(b);
568
568
  }, g.onload = function() {
569
569
  if (g.status < 200 || g.status >= 300)
570
- return u(ue(g));
571
- s(ue(g));
570
+ return u(de(g));
571
+ s(de(g));
572
572
  };
573
573
  const P = new FormData();
574
574
  n && Object.keys(n).map((o) => P.append(o, n[o])), P.append(U || "file", m), g.open(a, t, !0), h && "withCredentials" in g && (g.withCredentials = !0);
@@ -580,8 +580,8 @@ const Je = function(e) {
580
580
  }
581
581
  };
582
582
  };
583
- function Xe(e, d) {
584
- const u = ie(null), [s, t] = B({ uploadRequests: {} });
583
+ function Je(e, d) {
584
+ const u = te(null), [s, t] = B({ uploadRequests: {} });
585
585
  function a(c) {
586
586
  x(c);
587
587
  }
@@ -606,7 +606,7 @@ function Xe(e, d) {
606
606
  uploadRequests: $
607
607
  });
608
608
  }
609
- fe(d, () => ({
609
+ me(d, () => ({
610
610
  // 提供 ref 调用
611
611
  upload: a,
612
612
  abort: i,
@@ -634,11 +634,11 @@ function Xe(e, d) {
634
634
  withCredentials: N,
635
635
  customRequest: w,
636
636
  method: E
637
- } = e, le = {
637
+ } = e, oe = {
638
638
  onProgress: (G, D) => {
639
- var K, se;
639
+ var le;
640
640
  const _ = h(c);
641
- _ && (_.status = y.uploading, _.percent = G, (se = (K = this == null ? void 0 : this.props) == null ? void 0 : K.onProgress) == null || se.call(K, _, D));
641
+ _ && (_.status = y.uploading, _.percent = G, (le = e == null ? void 0 : e.onProgress) == null || le.call(e, _, D));
642
642
  },
643
643
  onSuccess: (G) => {
644
644
  const D = h(c);
@@ -655,38 +655,38 @@ function Xe(e, d) {
655
655
  withCredentials: N
656
656
  };
657
657
  f(c);
658
- let Y;
659
- $ ? Y = Je({ ...le, action: $, method: E }) : w && (Y = await w(le)), t({
658
+ let Q;
659
+ $ ? Q = We({ ...oe, action: $, method: E }) : w && (Q = await w(oe)), t({
660
660
  uploadRequests: {
661
661
  ...s.uploadRequests,
662
- [c.uid]: Y
662
+ [c.uid]: Q
663
663
  }
664
664
  });
665
665
  }
666
666
  function U(c) {
667
667
  const { limit: $, fileList: R, onExceedLimit: C, autoUpload: v } = e;
668
- if (me($) && $ < R.length + c.length)
668
+ if (ue($) && $ < R.length + c.length)
669
669
  return C == null ? void 0 : C(c, R);
670
670
  const N = (w, E) => {
671
- const T = e.fileList || [], A = {
671
+ const T = e.fileList || [], H = {
672
672
  uid: `${String(+/* @__PURE__ */ new Date())}${E}`,
673
673
  originFile: w,
674
674
  percent: 0,
675
675
  status: y.init,
676
676
  name: w.name
677
677
  };
678
- f(A), T.push(A), f(A, T), v && setTimeout(() => {
678
+ f(H), T.push(H), f(H, T), v && setTimeout(() => {
679
679
  x({
680
- ...A,
680
+ ...H,
681
681
  status: y.uploading
682
682
  });
683
683
  }, 0);
684
684
  };
685
685
  c.forEach((w, E) => {
686
- oe(w, e.accept) && (F(e.beforeUpload) ? Promise.resolve(e.beforeUpload(w, c)).then((T) => {
686
+ ae(w, e.accept) && (F(e.beforeUpload) ? Promise.resolve(e.beforeUpload(w, c)).then((T) => {
687
687
  if (T !== !1) {
688
- const A = pe(T) ? T : w;
689
- N(A, E);
688
+ const H = ke(T) ? T : w;
689
+ N(H, E);
690
690
  }
691
691
  }).catch((T) => {
692
692
  console.error(T);
@@ -700,13 +700,13 @@ function Xe(e, d) {
700
700
  prefixCls: o,
701
701
  tip: b,
702
702
  disabled: I,
703
- drag: S,
703
+ drag: q,
704
704
  listType: k,
705
705
  hide: O,
706
- directory: p,
707
- onDrop: q,
708
- onDragOver: j,
709
- onDragLeave: V
706
+ directory: j,
707
+ onDrop: A,
708
+ onDragOver: S,
709
+ onDragLeave: p
710
710
  } = e;
711
711
  return /* @__PURE__ */ L(M, { children: [
712
712
  /* @__PURE__ */ r(
@@ -722,9 +722,9 @@ function Xe(e, d) {
722
722
  zIndex: -999999
723
723
  },
724
724
  type: "file",
725
- accept: H(n) ? n == null ? void 0 : n.type : n,
725
+ accept: V(n) ? n == null ? void 0 : n.type : n,
726
726
  multiple: g,
727
- ...p ? { webkitdirectory: "true" } : {},
727
+ ...j ? { webkitdirectory: "true" } : {},
728
728
  onChange: (c) => {
729
729
  const $ = c.target.files;
730
730
  $ && (U([].slice.call($)), u.current.value = "");
@@ -736,26 +736,26 @@ function Xe(e, d) {
736
736
  "trigger-input"
737
737
  ),
738
738
  /* @__PURE__ */ r(
739
- ne,
739
+ ie,
740
740
  {
741
741
  in: !O,
742
742
  timeout: 100,
743
743
  unmountOnExit: !0,
744
744
  classNames: "fadeIn",
745
745
  children: /* @__PURE__ */ r(
746
- We,
746
+ ze,
747
747
  {
748
- directory: p,
748
+ directory: j,
749
749
  tip: b,
750
750
  multiple: g,
751
751
  accept: n,
752
752
  disabled: I,
753
- drag: S,
753
+ drag: q,
754
754
  listType: k,
755
755
  triggerPictureIcon: e.triggerPictureIcon,
756
- onDrop: q,
757
- onDragOver: j,
758
- onDragLeave: V,
756
+ onDrop: A,
757
+ onDragOver: S,
758
+ onDragLeave: p,
759
759
  onDragFiles: U,
760
760
  onClick: () => {
761
761
  var c, $;
@@ -768,17 +768,17 @@ function Xe(e, d) {
768
768
  },
769
769
  "trigger-node"
770
770
  ),
771
- b && k !== "picture-card" && !S ? /* @__PURE__ */ r("div", { className: `${o}-trigger-tip`, children: b }, "trigger-tip") : null
771
+ b && k !== "picture-card" && !q ? /* @__PURE__ */ r("div", { className: `${o}-trigger-tip`, children: b }, "trigger-tip") : null
772
772
  ] });
773
773
  }
774
- const Qe = te.forwardRef(Xe), ee = function(e) {
774
+ const Xe = ee.forwardRef(Je), Z = function(e) {
775
775
  const d = [].concat(e || []).filter(Boolean);
776
776
  return d.reduce((u, s, t) => {
777
777
  if (s.uid) {
778
778
  const a = d.findIndex(
779
779
  (l) => s.uid === l.uid && s !== l
780
780
  );
781
- ce(a !== -1, "[Upload]: duplicate uid");
781
+ se(a !== -1, "[Upload]: duplicate uid");
782
782
  const i = {
783
783
  status: y.success,
784
784
  percent: 100,
@@ -786,7 +786,7 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
786
786
  };
787
787
  a === -1 ? u.push(i) : u.splice(a, 1, i);
788
788
  } else {
789
- ce(!0, "[Upload]: uid is required");
789
+ se(!0, "[Upload]: uid is required");
790
790
  const a = `${String(+/* @__PURE__ */ new Date())}${t}`;
791
791
  u.push({
792
792
  uid: a,
@@ -797,18 +797,18 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
797
797
  }
798
798
  return u;
799
799
  }, []);
800
- }, Ye = {
800
+ }, Qe = {
801
801
  listType: "text",
802
802
  autoUpload: !0,
803
803
  showUploadList: !0,
804
804
  beforeUpload: () => !0,
805
805
  method: "post"
806
- }, Ze = (e, d) => {
807
- const { getPrefixCls: u, componentConfig: s, rtl: t } = W(X), a = ye(
806
+ }, Ye = (e, d) => {
807
+ const { getPrefixCls: u, componentConfig: s, rtl: t } = z(J), a = $e(
808
808
  e,
809
- Ye,
809
+ Qe,
810
810
  s == null ? void 0 : s.Upload
811
- ), i = u("upload"), l = ie(), m = ie(), [f, h] = B(() => "fileList" in a ? ee(a.fileList) : "defaultFileList" in a ? ee(a.defaultFileList) : []), x = "fileList" in a ? ee(a.fileList) : f, U = (v, N) => {
811
+ ), i = u("upload"), l = te(), m = te(), [f, h] = B(() => "fileList" in a ? Z(a.fileList) : "defaultFileList" in a ? Z(a.defaultFileList) : []), x = "fileList" in a ? Z(a.fileList) : f, U = (v, N) => {
812
812
  var w;
813
813
  "fileList" in a || h(v), (w = a.onChange) == null || w.call(a, v, N);
814
814
  }, n = (v) => {
@@ -835,7 +835,7 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
835
835
  }, o = (v) => {
836
836
  v && l.current && l.current.abort(v);
837
837
  };
838
- fe(d, () => ({
838
+ me(d, () => ({
839
839
  submit: (v) => {
840
840
  let N = [];
841
841
  v ? N = [v] : N = x.filter((w) => w.status === y.init), N.forEach((w) => {
@@ -855,17 +855,17 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
855
855
  const {
856
856
  listType: b,
857
857
  className: I,
858
- style: S,
858
+ style: q,
859
859
  renderUploadItem: k,
860
860
  showUploadList: O,
861
- renderUploadList: p,
862
- progressProps: q,
863
- imagePreview: j,
864
- ...V
865
- } = a, c = me(a.limit) ? { hideOnExceedLimit: !0, maxCount: a.limit } : { hideOnExceedLimit: !0, ...a.limit }, $ = c.maxCount && c.maxCount <= x.length, R = "disabled" in a ? a.disabled : !c.hideOnExceedLimit && $, C = /* @__PURE__ */ r(
861
+ renderUploadList: j,
862
+ progressProps: A,
863
+ imagePreview: S,
864
+ ...p
865
+ } = a, c = ue(a.limit) ? { hideOnExceedLimit: !0, maxCount: a.limit } : { hideOnExceedLimit: !0, ...a.limit }, $ = c.maxCount && c.maxCount <= x.length, R = "disabled" in a ? a.disabled : !c.hideOnExceedLimit && $, C = /* @__PURE__ */ r(
866
866
  "div",
867
867
  {
868
- ...we(V, [
868
+ ...ye(p, [
869
869
  "disabled",
870
870
  "directory",
871
871
  "onReupload",
@@ -897,7 +897,7 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
897
897
  "onDragOver",
898
898
  "onDragLeave"
899
899
  ]),
900
- className: z(
900
+ className: K(
901
901
  i,
902
902
  {
903
903
  [`${i}-type-${b}`]: b,
@@ -908,10 +908,10 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
908
908
  },
909
909
  I
910
910
  ),
911
- style: S,
911
+ style: q,
912
912
  ref: m,
913
913
  children: /* @__PURE__ */ r(
914
- Qe,
914
+ Xe,
915
915
  {
916
916
  ref: l,
917
917
  ...a,
@@ -934,16 +934,16 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
934
934
  return /* @__PURE__ */ L(M, { children: [
935
935
  b !== "picture-card" && C,
936
936
  O && /* @__PURE__ */ r(
937
- ve,
937
+ be,
938
938
  {
939
- imagePreview: j,
940
- progressProps: q,
939
+ imagePreview: S,
940
+ progressProps: A,
941
941
  showUploadList: O,
942
942
  disabled: a.disabled,
943
943
  listType: b,
944
944
  fileList: x,
945
945
  renderUploadItem: k,
946
- renderUploadList: p,
946
+ renderUploadList: j,
947
947
  onUpload: n,
948
948
  onAbort: o,
949
949
  onRemove: P,
@@ -955,10 +955,10 @@ const Qe = te.forwardRef(Xe), ee = function(e) {
955
955
  b === "picture-card" && C,
956
956
  a.tip && b === "picture-card" && /* @__PURE__ */ r("div", { className: `${i}-trigger-tip`, children: a.tip })
957
957
  ] });
958
- }, et = J(
959
- Ze
958
+ }, Ze = W(
959
+ Ye
960
960
  );
961
- et.displayName = "Upload";
961
+ Ze.displayName = "Upload";
962
962
  export {
963
- et as U
963
+ Ze as U
964
964
  };
@@ -30,7 +30,7 @@ import "../hooks/useIntersectionObserver.js";
30
30
  import "../utils/reactDOM.js";
31
31
  import "../Affix.js";
32
32
  import "../Alert.js";
33
- import "./JnyGFb5j.js";
33
+ import "./CR4u270n.js";
34
34
  import "../AutoComplete.js";
35
35
  import "../Avatar.js";
36
36
  import "../BackTop.js";
@@ -40,7 +40,7 @@ import "../Button.js";
40
40
  import "../Calendar.js";
41
41
  import "../Card.js";
42
42
  import "../Carousel.js";
43
- import "./t51ig1FZ.js";
43
+ import "./aM2ePYrq.js";
44
44
  import "./DJmWXheU.js";
45
45
  import "./CwjaGytU.js";
46
46
  import "../Comment.js";
@@ -50,7 +50,7 @@ import "../Descriptions.js";
50
50
  import "../Divider.js";
51
51
  import "./CggcswbO.js";
52
52
  import "../Dropdown.js";
53
- import "./CilQ012k.js";
53
+ import "./HlP8inLK.js";
54
54
  import "../Grid.js";
55
55
  import "./C-w9pFY-.js";
56
56
  import "../Icon.js";
@@ -61,7 +61,7 @@ import "../Layout.js";
61
61
  import "../Link.js";
62
62
  import "../List.js";
63
63
  import "../Mentions.js";
64
- import "./yvbAFxtk.js";
64
+ import "./BMvZCjSU.js";
65
65
  import "./DBJ8d0o0.js";
66
66
  import "../PageHeader.js";
67
67
  import "./WkB0MERB.js";
@@ -86,7 +86,7 @@ import "../Steps.js";
86
86
  import "../SuspenseFallbackTest.js";
87
87
  import "../Switch.js";
88
88
  import "../Table.js";
89
- import "./B2Bp3i5u.js";
89
+ import "./D5p8q9Pa.js";
90
90
  import "../Tag.js";
91
91
  import "../TimePicker.js";
92
92
  import "./CF3Telny.js";
@@ -108,7 +108,7 @@ import { I as _t } from "./BHLTzWzi.js";
108
108
  import X from "lodash/isPlainObject";
109
109
  import qt from "../hooks/useKeyboardEvent.js";
110
110
  import mt from "../hooks/useIsomorphicLayoutEffect.js";
111
- import "./Dw4SJ4o1.js";
111
+ import "./DMWMrXg1.js";
112
112
  import "./DalIRWr7.js";
113
113
  import "./DDda6s72.js";
114
114
  const xt = [
@@ -2,7 +2,7 @@ var lt = Object.defineProperty;
2
2
  var ot = (r, e, t) => e in r ? lt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var u = (r, e, t) => ot(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsx as p, jsxs as Q, Fragment as qe } from "react/jsx-runtime";
5
- import { y as at } from "./CnY8SvgY.js";
5
+ import { y as at } from "./CiZVOdJ3.js";
6
6
  import R from "lodash/isPlainObject";
7
7
  import Oe from "lodash/merge";
8
8
  import K, { createContext as pe, useRef as L, forwardRef as we, useContext as U, useEffect as he, useImperativeHandle as ht, Component as ut, isValidElement as Se, useState as me, useMemo as ke, createElement as xe, cloneElement as Re, useCallback as ne } from "react";
@@ -24,7 +24,7 @@ import { Enter as he, ArrowLeft as nt, ArrowRight as rt, ArrowUp as _e, ArrowDow
24
24
  import { b as st, P as at } from "./BP7xX86Q.js";
25
25
  import me from "lodash/isEqualWith";
26
26
  import ee from "lodash/get";
27
- import { y as it } from "./CnY8SvgY.js";
27
+ import { y as it } from "./CiZVOdJ3.js";
28
28
  import { C as Oe } from "./DJmWXheU.js";
29
29
  import ct from "../hooks/useIsFirstRender.js";
30
30
  import { on as Le, off as de } from "../utils/dom.js";
package/index.js CHANGED
@@ -3,7 +3,7 @@ import { a as p, c as m, m as l, h as i, u, b as d } from "./chunk/BP7xX86Q.js";
3
3
  import { a as M, b as w, C as D, E as H, I as O, g as W, N as B, n as V, d as F, j as L, S as j, H as U, e as z, M as G, l as q, T as K, p as Y, f as J, k as Q, W as X } from "./chunk/DUxWiN2U.js";
4
4
  import { I as _, x as $ } from "./chunk/CkAOsst1.js";
5
5
  import { a as ae, M as re, w as oe, h as te, b as se, C as fe, x as pe, v as me, y as le, d as ie } from "./chunk/BlKc_pDZ.js";
6
- import { t as de, y as xe } from "./chunk/CnY8SvgY.js";
6
+ import { t as de, y as xe } from "./chunk/CiZVOdJ3.js";
7
7
  import x from "lodash/camelCase.js";
8
8
  import n from "lodash/capitalize.js";
9
9
  import c from "lodash/kebabCase.js";
@@ -14,8 +14,8 @@ import { y as ce } from "./chunk/Do1aMgY3.js";
14
14
  import { s as Te } from "./chunk/Cb_oWoGj.js";
15
15
  import { i as ge } from "./chunk/5pZ3ayqs.js";
16
16
  import { l as ye } from "./chunk/Lk60-jkf.js";
17
- import { T as Ie, d as ke } from "./chunk/DRJO1GfY.js";
18
- import { F as he, Y as ve } from "./chunk/CilQ012k.js";
17
+ import { T as Ie, d as ke } from "./chunk/Dbk4DVhB.js";
18
+ import { F as he, Y as ve } from "./chunk/HlP8inLK.js";
19
19
  import { K as Pe, t as Ae, r as Me, V as we, z as De, G as He, H as Oe, _ as We, Y as Be, Q as Ve, X as Fe, f as Le, Z as je } from "./chunk/BeM2hfks.js";
20
20
  import { default as ze } from "./hooks/use-verification-code.js";
21
21
  import { default as qe } from "./hooks/use-watermark.js";
@@ -46,7 +46,7 @@ import { default as Fa } from "./hooks/useWindowSize.js";
46
46
  import { isClassComponent as ja, isDOMElement as Ua, isDayjs as za, isEmptyReactNode as Ga, isExist as qa, isNullOrUndefined as Ka, isReact18 as Ya, isReact19 as Ja, isReactComponent as Qa, isWindow as Xa, supportRef as Za } from "./utils/is.js";
47
47
  import { default as $a } from "./Affix.js";
48
48
  import { default as ar } from "./Alert.js";
49
- import { A as or } from "./chunk/JnyGFb5j.js";
49
+ import { A as or } from "./chunk/CR4u270n.js";
50
50
  import { default as sr } from "./AutoComplete.js";
51
51
  import { default as pr } from "./Avatar.js";
52
52
  import { default as lr } from "./BackTop.js";
@@ -56,7 +56,7 @@ import { default as cr } from "./Button.js";
56
56
  import { default as Tr } from "./Calendar.js";
57
57
  import { default as gr } from "./Card.js";
58
58
  import { default as yr } from "./Carousel.js";
59
- import { C as Ir } from "./chunk/t51ig1FZ.js";
59
+ import { C as Ir } from "./chunk/aM2ePYrq.js";
60
60
  import { C as Nr } from "./chunk/DJmWXheU.js";
61
61
  import { C as vr } from "./chunk/CwjaGytU.js";
62
62
  import { default as Pr } from "./Comment.js";
@@ -76,7 +76,7 @@ import { default as oo } from "./Layout.js";
76
76
  import { default as so } from "./Link.js";
77
77
  import { default as po } from "./List.js";
78
78
  import { default as lo } from "./Mentions.js";
79
- import { M as uo } from "./chunk/yvbAFxtk.js";
79
+ import { M as uo } from "./chunk/BMvZCjSU.js";
80
80
  import { E as no } from "./chunk/DBJ8d0o0.js";
81
81
  import { default as Co } from "./PageHeader.js";
82
82
  import { P as bo } from "./chunk/WkB0MERB.js";
@@ -100,7 +100,7 @@ import { default as _o } from "./Steps.js";
100
100
  import { default as et } from "./SuspenseFallbackTest.js";
101
101
  import { default as rt } from "./Switch.js";
102
102
  import { default as tt } from "./Table.js";
103
- import { T as ft } from "./chunk/B2Bp3i5u.js";
103
+ import { T as ft } from "./chunk/D5p8q9Pa.js";
104
104
  import { default as mt } from "./Tag.js";
105
105
  import { default as it } from "./TimePicker.js";
106
106
  import { T as dt } from "./chunk/CF3Telny.js";
@@ -109,7 +109,7 @@ import { default as Ct } from "./Transfer.js";
109
109
  import { T as bt } from "./chunk/Bny52uiG.js";
110
110
  import { T as St } from "./chunk/DkIjpuBZ.js";
111
111
  import { default as Rt } from "./Trigger.js";
112
- import { U as kt } from "./chunk/Dw4SJ4o1.js";
112
+ import { U as kt } from "./chunk/DMWMrXg1.js";
113
113
  import { V as ht } from "./chunk/DalIRWr7.js";
114
114
  import { version as Et } from "./Version.js";
115
115
  import { W as At } from "./chunk/DDda6s72.js";
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@unicom-cloud/ui","version":"0.8.56","dependencies":{},"peerDependencies":{"dayjs":"^1.11.10","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1"},"peerDependenciesMeta":{},"main":"index.js","module":"index.js","type":"module","types":"types/index.d.ts","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
1
+ {"name":"@unicom-cloud/ui","version":"0.8.57","dependencies":{},"peerDependencies":{"dayjs":"^1.11.10","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1"},"peerDependenciesMeta":{},"main":"index.js","module":"index.js","type":"module","types":"types/index.d.ts","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
@@ -1,4 +1,4 @@
1
- import { y as c } from "../chunk/CnY8SvgY.js";
1
+ import { y as c } from "../chunk/CiZVOdJ3.js";
2
2
  import i from "lodash/isFunction";
3
3
  function f(r, t) {
4
4
  if (r) {
package/chunk/CnY8SvgY.js DELETED
@@ -1,126 +0,0 @@
1
- const Q = (t) => typeof t == "object" && t != null && t.nodeType === 1, U = (t, e) => e && t === "hidden" ? !1 : t !== "visible" && t !== "clip", _ = (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
- }, $ = (t) => {
10
- const e = _(t);
11
- return e ? e.clientHeight < t.scrollHeight || e.clientWidth < t.scrollWidth : !1;
12
- }, F = (t, e) => {
13
- if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
14
- const s = getComputedStyle(t, null);
15
- return U(s.overflowY, e) || U(s.overflowX, e) || $(t);
16
- }
17
- return !1;
18
- }, X = (t, e, s, u, m, o, l, f) => o < t && l > e || o > t && l < e ? 0 : o <= t && f <= s || l >= e && f >= s ? o - t - u : l > e && f < s || o < t && f > s ? l - e + m : 0, tt = (t) => t.parentElement ?? (t.getRootNode().host || null), Z = (t, e) => {
19
- var s, u;
20
- if (typeof document > "u")
21
- return [];
22
- const { scrollMode: m, block: o, inline: l, boundary: f, skipOverflowHiddenElements: Y } = e, p = typeof f == "function" ? f : (E) => E !== f;
23
- if (!Q(t))
24
- throw new TypeError("Invalid target");
25
- const g = document.scrollingElement || document.documentElement, a = [];
26
- let c = t;
27
- for (; Q(c) && p(c); ) {
28
- if (c = tt(c), c === g) {
29
- a.push(c);
30
- break;
31
- }
32
- c != null && c === document.body && F(c) && !F(document.documentElement) || c != null && F(c, Y) && a.push(c);
33
- }
34
- const w = ((s = window.visualViewport) == null ? void 0 : s.width) ?? innerWidth, b = ((u = window.visualViewport) == null ? void 0 : u.height) ?? innerHeight, v = window.scrollX ?? window.pageXOffset, y = window.scrollY ?? window.pageYOffset, {
35
- height: W,
36
- width: H,
37
- top: M,
38
- right: S,
39
- bottom: N,
40
- left: k
41
- } = t.getBoundingClientRect();
42
- let d = o === "start" || o === "nearest" ? M : o === "end" ? N : M + W / 2, h = l === "center" ? k + H / 2 : l === "end" ? S : k;
43
- const q = [];
44
- for (let E = 0; E < a.length; E++) {
45
- const n = a[E], { height: x, width: C, top: I, right: z, bottom: A, left: O } = n.getBoundingClientRect();
46
- if (m === "if-needed" && M >= 0 && k >= 0 && N <= b && S <= w && M >= I && N <= A && k >= O && S <= z)
47
- return q;
48
- const T = getComputedStyle(n), j = parseInt(T.borderLeftWidth, 10), B = parseInt(T.borderTopWidth, 10), D = parseInt(T.borderRightWidth, 10), R = parseInt(T.borderBottomWidth, 10);
49
- let i = 0, r = 0;
50
- const V = "offsetWidth" in n ? n.offsetWidth - n.clientWidth - j - D : 0, L = "offsetHeight" in n ? n.offsetHeight - n.clientHeight - B - R : 0, G = "offsetWidth" in n ? n.offsetWidth === 0 ? 0 : C / n.offsetWidth : 0, J = "offsetHeight" in n ? n.offsetHeight === 0 ? 0 : x / n.offsetHeight : 0;
51
- if (g === n)
52
- o === "start" ? i = d : o === "end" ? i = d - b : o === "nearest" ? i = X(
53
- y,
54
- y + b,
55
- b,
56
- B,
57
- R,
58
- y + d,
59
- y + d + W,
60
- W
61
- ) : i = d - b / 2, l === "start" ? r = h : l === "center" ? r = h - w / 2 : l === "end" ? r = h - w : r = X(
62
- v,
63
- v + w,
64
- w,
65
- j,
66
- D,
67
- v + h,
68
- v + h + H,
69
- H
70
- ), i = Math.max(0, i + y), r = Math.max(0, r + v);
71
- else {
72
- o === "start" ? i = d - I - B : o === "end" ? i = d - A + R + L : o === "nearest" ? i = X(
73
- I,
74
- A,
75
- x,
76
- B,
77
- R + L,
78
- d,
79
- d + W,
80
- W
81
- ) : i = d - (I + x / 2) + L / 2, l === "start" ? r = h - O - j : l === "center" ? r = h - (O + C / 2) + V / 2 : l === "end" ? r = h - z + D + V : r = X(
82
- O,
83
- z,
84
- C,
85
- j,
86
- D + V,
87
- h,
88
- h + H,
89
- H
90
- );
91
- const { scrollLeft: K, scrollTop: P } = n;
92
- i = Math.max(
93
- 0,
94
- Math.min(
95
- P + i / J,
96
- n.scrollHeight - x / J + L
97
- )
98
- ), r = Math.max(
99
- 0,
100
- Math.min(
101
- K + r / G,
102
- n.scrollWidth - C / G + V
103
- )
104
- ), d += P - i, h += K - r;
105
- }
106
- q.push({ el: n, top: i, left: r });
107
- }
108
- return q;
109
- };
110
- let et = (t) => t === Object(t) && Object.keys(t).length !== 0, nt = (t) => typeof t == "object" ? typeof t.behavior == "function" : !1, ot = (t) => t === !1 ? { block: "end", inline: "nearest" } : et(t) ? t : { block: "start", inline: "nearest" };
111
- function lt(t, e) {
112
- var s, u, m;
113
- let o = (t == null ? void 0 : t.isConnected) || ((m = (u = (s = t == null ? void 0 : t.ownerDocument) == null ? void 0 : s.documentElement) == null ? void 0 : u.contains) == null ? void 0 : m.call(u, t));
114
- if (nt(e))
115
- return e.behavior(o ? Z(t, e) : []);
116
- if (!o)
117
- return;
118
- let l = ot(e), f = Z(t, l), Y = "scrollBehavior" in document.body.style;
119
- f.forEach(({ el: p, top: g, left: a }) => {
120
- p.scroll && Y ? p.scroll({ top: g, left: a, behavior: l.behavior }) : (p.scrollTop = g, p.scrollLeft = a);
121
- });
122
- }
123
- export {
124
- Z as t,
125
- lt as y
126
- };