@unicom-cloud/ui 0.8.81 → 0.8.83

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 (280) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +2 -2
  4. package/BackTop.js +2 -2
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +2 -2
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +2 -2
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +5 -4
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +7 -7
  19. package/Descriptions.js +1 -1
  20. package/Divider.js +1 -1
  21. package/Draggable.js +1 -1
  22. package/Dropdown.js +1 -1
  23. package/Empty.js +1 -1
  24. package/Icon.js +1 -1
  25. package/IconHover.js +1 -1
  26. package/Image.js +1 -1
  27. package/Input.js +11 -10
  28. package/InputNumber.js +1 -1
  29. package/Layout.js +1 -1
  30. package/Link.js +1 -1
  31. package/List.js +2 -2
  32. package/Mentions.js +2 -2
  33. package/Menu.js +1 -1
  34. package/Message.js +1 -1
  35. package/Modal.js +1 -1
  36. package/Notice.js +1 -1
  37. package/Notification.js +5 -5
  38. package/OverflowEllipsis.js +1 -1
  39. package/PageHeader.js +1 -1
  40. package/Pagination.js +1 -1
  41. package/Popconfirm.js +1 -1
  42. package/Popover.js +1 -1
  43. package/Progress.js +1 -1
  44. package/Radio.js +1 -1
  45. package/Rate.js +1 -1
  46. package/ResizeBox.js +1 -1
  47. package/Result.js +1 -1
  48. package/Select.js +1 -1
  49. package/Skeleton.js +1 -1
  50. package/Slider.js +1 -1
  51. package/Space.js +1 -1
  52. package/SpeechSynthesis.js +1 -1
  53. package/Spin.js +1 -1
  54. package/Statistic.js +2 -2
  55. package/Steps.js +1 -1
  56. package/Switch.js +1 -1
  57. package/Table.js +1 -1
  58. package/Tabs.js +1 -1
  59. package/Tag.js +1 -1
  60. package/Tooltip.js +1 -1
  61. package/Transfer.js +2 -2
  62. package/Tree.js +1 -1
  63. package/TreeSelect.js +1 -1
  64. package/Trigger.js +1 -1
  65. package/Typography.js +1 -1
  66. package/affix/index.js +60 -57
  67. package/alert/index.js +53 -53
  68. package/anchor/Anchor.js +72 -72
  69. package/anchor/Link.js +27 -27
  70. package/anchor/util.js +1 -1
  71. package/auto-complete/index.js +2 -2
  72. package/avatar/Avatar.js +31 -31
  73. package/avatar/Group.js +25 -25
  74. package/back-top/index.js +30 -30
  75. package/badge/index.js +37 -37
  76. package/breadcrumb/index.js +26 -26
  77. package/button/Group.js +7 -7
  78. package/button/index.js +29 -29
  79. package/calendar/index.js +2 -2
  80. package/card/Grid.js +12 -12
  81. package/card/Meta.js +17 -17
  82. package/card/index.js +44 -44
  83. package/carousel/Arrow.js +19 -19
  84. package/carousel/Indicator.js +25 -25
  85. package/carousel/index.js +77 -77
  86. package/cascader/Cascader.js +2 -2
  87. package/cascader/index.js +1 -1
  88. package/cascader/util.js +1 -1
  89. package/checkbox/Checkbox.js +2 -2
  90. package/checkbox/Group.js +2 -2
  91. package/checkbox/GroupBlock.js +2 -2
  92. package/checkbox/index.js +2 -2
  93. package/chunk/B6r8jPCd.js +6 -0
  94. package/chunk/{DLBfXSnU.js → BmulTYLW.js} +2880 -2878
  95. package/chunk/C9oo3EJI.js +692 -0
  96. package/chunk/{C5X4hOkx.js → CVSWh4ZZ.js} +80 -80
  97. package/chunk/DILUZgXW.js +1464 -0
  98. package/chunk/DSRHFFrc.js +53 -0
  99. package/chunk/{yLRv5RIK.js → DdJVL_4g.js} +181 -181
  100. package/chunk/{DYspELhF.js → DlHiTTJO.js} +223 -223
  101. package/chunk/{BG7YGUsx.js → R-uQJib2.js} +119 -119
  102. package/chunk/{DEiyXzBZ.js → ev6oHWqY.js} +63 -63
  103. package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
  104. package/collapse/Collapse.js +2 -2
  105. package/collapse/Item.js +2 -2
  106. package/collapse/index.js +1 -1
  107. package/color-picker/ControlBar.js +36 -36
  108. package/color-picker/InputAlpha.js +11 -11
  109. package/color-picker/InputHex.js +24 -24
  110. package/color-picker/InputRgb.js +23 -23
  111. package/color-picker/Palette.js +18 -18
  112. package/color-picker/Panel.js +2 -2
  113. package/color-picker/index.js +2 -2
  114. package/comment/index.js +31 -31
  115. package/config-provider/ConfigProvider.js +5 -3
  116. package/config-provider/context.js +2 -2
  117. package/config-provider/index.js +4 -3
  118. package/copy/index.js +28 -28
  119. package/date-picker/Picker.js +276 -276
  120. package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
  121. package/date-picker/index.js +26 -27
  122. package/descriptions/index.js +33 -33
  123. package/divider/index.js +12 -12
  124. package/draggable/index.js +23 -23
  125. package/drawer/Drawer.js +81 -81
  126. package/dropdown/Button.js +1 -1
  127. package/dropdown/index.js +56 -56
  128. package/empty/index.js +1 -1
  129. package/form/Form.js +76 -76
  130. package/form/FormItem.js +64 -64
  131. package/form/context.js +1 -1
  132. package/grid/Col.js +53 -53
  133. package/grid/Row.js +34 -34
  134. package/grid/grid-item.js +29 -29
  135. package/grid/grid.js +50 -50
  136. package/icon/index.js +20 -19
  137. package/icon-hover/index.js +1 -1
  138. package/image/Image.js +86 -86
  139. package/image/ImagePreview.js +2 -2
  140. package/image/ImagePreviewArrow.js +22 -22
  141. package/image/ImagePreviewGroup.js +1 -1
  142. package/image/index.js +1 -1
  143. package/index.js +498 -493
  144. package/input/Button.js +11 -0
  145. package/input/Group.js +8 -8
  146. package/input/Input.js +488 -434
  147. package/input/InputElement.js +1 -1
  148. package/input/Password.js +1 -1
  149. package/input/Search.js +1 -1
  150. package/input/Textarea.js +1 -1
  151. package/input/index.js +9 -8
  152. package/input-number/index.js +1 -1
  153. package/input-tag/InputTag.js +40 -40
  154. package/layout/Content.js +7 -7
  155. package/layout/Footer.js +9 -9
  156. package/layout/Header.js +7 -7
  157. package/layout/Sider.js +55 -55
  158. package/layout/index.js +32 -32
  159. package/link/index.js +35 -35
  160. package/list/Item.js +29 -29
  161. package/list/Meta.js +12 -12
  162. package/list/index.js +2 -2
  163. package/mentions/index.js +2 -2
  164. package/menu/Menu.js +2 -2
  165. package/menu/OverflowWrap.js +1 -1
  166. package/menu/index.js +2 -2
  167. package/message/index.js +1 -1
  168. package/message/useMessage.js +1 -1
  169. package/modal/Confirm.js +2 -2
  170. package/modal/Modal.js +2 -2
  171. package/modal/index.js +1 -1
  172. package/notice/index.js +1 -1
  173. package/notification/index.js +5 -5
  174. package/notification/useNotification.js +1 -1
  175. package/overflow-ellipsis/OverflowItem.js +12 -12
  176. package/overflow-ellipsis/index.js +24 -24
  177. package/package.json +1 -1
  178. package/page-header/index.js +38 -38
  179. package/pagination/PageItem.js +16 -16
  180. package/pagination/PageJumper.js +1 -1
  181. package/pagination/PageOption.js +2 -2
  182. package/pagination/Pagination.js +2 -2
  183. package/pagination/index.js +1 -1
  184. package/picker/Input.js +69 -69
  185. package/picker/InputRange.js +111 -111
  186. package/popconfirm/index.js +61 -61
  187. package/popover/index.js +35 -35
  188. package/progress/index.js +22 -22
  189. package/radio/Group.js +2 -2
  190. package/radio/GroupBlock.js +2 -2
  191. package/radio/Radio.js +2 -2
  192. package/radio/index.js +2 -2
  193. package/rate/index.js +49 -49
  194. package/resize-box/ResizeTrigger.js +34 -34
  195. package/resize-box/Split.js +56 -56
  196. package/resize-box/SplitGroup.js +55 -55
  197. package/resize-box/index.js +51 -51
  198. package/result/index.js +41 -41
  199. package/select/Option.js +1 -1
  200. package/select/Select.js +2 -2
  201. package/select/index.js +2 -2
  202. package/select/util.js +1 -1
  203. package/select-view/Core.js +125 -125
  204. package/skeleton/index.js +20 -20
  205. package/slider/Button.js +57 -57
  206. package/slider/index.js +116 -116
  207. package/space/index.js +46 -44
  208. package/speech-synthesis/index.js +1 -1
  209. package/spin/DotLoading.js +10 -10
  210. package/spin/index.js +44 -44
  211. package/statistic/Countdown.js +34 -34
  212. package/statistic/index.js +67 -67
  213. package/steps/index.js +55 -55
  214. package/style.css +1 -1
  215. package/switch/index.js +54 -54
  216. package/table/Table.js +3 -3
  217. package/table/index.js +1 -1
  218. package/tabs/Tab.js +2 -2
  219. package/tabs/TabContent.js +2 -2
  220. package/tabs/TabPane.js +12 -12
  221. package/tabs/index.js +2 -2
  222. package/tag/index.js +45 -45
  223. package/time-picker/Picker.js +76 -76
  224. package/time-picker/TimePicker.js +136 -136
  225. package/time-picker/index.js +8 -8
  226. package/time-picker/util.js +5 -5
  227. package/timeline/Item.js +47 -47
  228. package/timeline/Timeline.js +41 -41
  229. package/tooltip/index.js +29 -29
  230. package/transfer/Item.js +2 -2
  231. package/transfer/List.js +2 -2
  232. package/transfer/index.js +2 -2
  233. package/tree/Animation.js +2 -2
  234. package/tree/Node.js +2 -2
  235. package/tree/NodeList.js +1 -1
  236. package/tree/Tree.js +2 -2
  237. package/tree/index.js +1 -1
  238. package/tree-select/List.js +1 -1
  239. package/tree-select/Select.js +2 -2
  240. package/tree-select/index.js +2 -2
  241. package/trigger/index.js +60 -60
  242. package/types/config-provider/ConfigProvider.d.ts +2 -2
  243. package/types/config-provider/context.d.ts +1 -1
  244. package/types/date-picker/index.d.ts +8 -9
  245. package/types/date-picker/interface.d.ts +9 -9
  246. package/types/index.d.ts +2 -2
  247. package/types/input/Button.d.ts +5 -0
  248. package/types/input/Input.d.ts +4 -1
  249. package/types/input/interface.d.ts +7 -0
  250. package/types/picker/Input.d.ts +2 -2
  251. package/types/space/index.d.ts +2 -1
  252. package/types/utils/index.d.ts +1 -0
  253. package/types/utils/names.d.ts +1 -1
  254. package/types/utils/setTheme.d.ts +2 -0
  255. package/typography/Base.js +53 -53
  256. package/typography/Ellipsis.js +10 -8
  257. package/typography/Operations.js +28 -28
  258. package/typography/Paragraph.js +8 -8
  259. package/typography/Typography.js +7 -7
  260. package/typography/index.js +1 -1
  261. package/upload/TriggerNode.js +47 -47
  262. package/upload/Upload.js +184 -184
  263. package/upload/request.js +1 -1
  264. package/upload/request_.js +1 -1
  265. package/utils/constant.js +1 -1
  266. package/utils/contextHolder.js +3 -3
  267. package/utils/dom.js +1 -1
  268. package/utils/index.js +116 -114
  269. package/utils/names.js +1 -1
  270. package/utils/setDarkTheme.js +23 -22
  271. package/utils/setPrimaryColor.js +22 -16
  272. package/utils/setTheme.js +9 -0
  273. package/utils/tween.js +1 -1
  274. package/verification-code/VerificationCode.js +49 -49
  275. package/version/index.js +1 -1
  276. package/watermark/Watermark.js +24 -24
  277. package/chunk/CQvM33Vg.js +0 -724
  278. package/chunk/D0ZWT7db.js +0 -5
  279. package/chunk/yhU2zeeu.js +0 -1461
  280. /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
package/anchor/Anchor.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsxs as mt, jsx as w } from "react/jsx-runtime";
2
2
  import { compute as dt } from "../utils/computeScrollIntoView.js";
3
3
  import { p as pt } from "../chunk/Coz3rCng.js";
4
- import D from "lodash/isFunction";
5
- import P from "lodash/isNumber";
4
+ import _ from "lodash/isFunction";
5
+ import E from "lodash/isNumber";
6
6
  import gt from "lodash/throttle";
7
- import { forwardRef as ht, useContext as Ct, useRef as x, useState as xt, useEffect as N, useCallback as S, useImperativeHandle as kt } from "react";
7
+ import { forwardRef as ht, useContext as Ct, useRef as k, useState as kt, useEffect as N, useCallback as S, useImperativeHandle as xt } from "react";
8
8
  import yt from "../affix/index.js";
9
- import { a as Lt } from "../chunk/CQvM33Vg.js";
9
+ import { a as Lt } from "../chunk/C9oo3EJI.js";
10
10
  import { u as Rt } from "../chunk/oopARUrq.js";
11
11
  import { u as wt } from "../chunk/BFTV6myl.js";
12
12
  import { u as Nt } from "../chunk/Duezix3m.js";
@@ -15,108 +15,108 @@ import { on as $t, off as At } from "../utils/dom.js";
15
15
  import { l as Tt } from "../chunk/ClM74To2.js";
16
16
  import vt from "./context.js";
17
17
  import bt from "./Link.js";
18
- import { findNode as M, getContainerElement as Pt, getContainer as Mt, getScrollParent as Et, slide as Ft } from "./util.js";
18
+ import { findNode as P, getContainerElement as Mt, getContainer as Et, getScrollParent as Pt, slide as Ft } from "./util.js";
19
19
  const It = {
20
20
  animation: !0,
21
21
  affix: !0,
22
22
  hash: !0,
23
23
  boundary: "start"
24
24
  };
25
- function Ht(q, G) {
26
- const { getPrefixCls: J, componentConfig: $, rtl: E } = Ct(Lt), K = wt(
27
- q,
25
+ function Ht(G, J) {
26
+ const { getPrefixCls: $, componentConfig: A, rtl: F } = Ct(Lt), K = wt(
27
+ G,
28
28
  It,
29
- $ == null ? void 0 : $.Anchor
29
+ A == null ? void 0 : A.Anchor
30
30
  ), {
31
31
  className: Q,
32
32
  style: X,
33
33
  scrollContainer: m,
34
34
  animation: Y = !0,
35
- lineless: k,
35
+ lineless: x,
36
36
  affix: Z = !0,
37
37
  affixStyle: tt,
38
38
  offsetBottom: et,
39
39
  offsetTop: nt,
40
- hash: F = !0,
40
+ hash: I = !0,
41
41
  boundary: i = "start",
42
- targetOffset: A,
42
+ targetOffset: T,
43
43
  children: rt,
44
44
  direction: y = "vertical",
45
- onSelect: I,
46
- onChange: T,
45
+ onSelect: H,
46
+ onChange: v,
47
47
  ...ot
48
- } = K, f = J("anchor"), it = St(f, Q, {
49
- [`${f}-lineless`]: k,
50
- [`${f}-rtl`]: E,
51
- [`${f}-horizontal`]: y === "horizontal"
52
- }), s = x(null), d = x(null), a = x(/* @__PURE__ */ new Map()), v = x(!1), p = x(null), [st, H] = xt(0), [o, ct] = Nt(""), lt = Rt();
53
- function O() {
54
- let t = Mt(m);
55
- return m || (t = Et(s.current)), t;
48
+ } = K, a = $ == null ? void 0 : $("anchor"), it = St(a, Q, {
49
+ [`${a}-lineless`]: x,
50
+ [`${a}-rtl`]: F,
51
+ [`${a}-horizontal`]: y === "horizontal"
52
+ }), s = k(null), d = k(null), f = k(/* @__PURE__ */ new Map()), b = k(!1), p = k(null), [st, O] = kt(0), [o, ct] = Nt(""), lt = Rt();
53
+ function z() {
54
+ let t = Et(m);
55
+ return m || (t = Pt(s.current)), t;
56
56
  }
57
57
  N(() => {
58
- const t = O();
58
+ const t = z();
59
59
  p.current = t;
60
60
  }, [m]);
61
- const ft = S(() => O(), [m]);
62
- kt(
63
- G,
61
+ const at = S(() => z(), [m]);
62
+ xt(
63
+ J,
64
64
  () => ({
65
65
  dom: s.current,
66
66
  getRootDOMNode: () => s.current
67
67
  }),
68
68
  []
69
69
  );
70
- function z(t, e) {
71
- t && (a.current.set(t, e), H(Math.random()));
70
+ function B(t, e) {
71
+ t && (f.current.set(t, e), O(Math.random()));
72
72
  }
73
- function at(t) {
74
- a.current.delete(t), H(Math.random());
73
+ function ft(t) {
74
+ f.current.delete(t), O(Math.random());
75
75
  }
76
76
  const L = S(
77
77
  (t) => {
78
78
  if (!t || !s.current)
79
79
  return;
80
- if (!a.current.has(t)) {
81
- const n = M(s.current, `a[data-href='${t}']`);
82
- n && z(t, n);
80
+ if (!f.current.has(t)) {
81
+ const n = P(s.current, `a[data-href='${t}']`);
82
+ n && B(t, n);
83
83
  }
84
- const e = a.current.get(t);
84
+ const e = f.current.get(t);
85
85
  e && t !== o && (pt(e, {
86
86
  behavior: "auto",
87
87
  block: "nearest",
88
88
  scrollMode: "if-needed",
89
89
  boundary: s.current
90
90
  }), ct(t).then(() => {
91
- D(T) && T(t, o);
91
+ _(v) && v(t, o);
92
92
  }));
93
93
  },
94
- [o, T]
95
- ), B = S(() => {
94
+ [o, v]
95
+ ), U = S(() => {
96
96
  let t;
97
- const e = P(i) ? i : 0, n = p.current, h = Pt(n).getBoundingClientRect(), R = document.documentElement.clientHeight;
98
- return [...a.current.keys()].some((b) => {
99
- const c = M(document, b);
97
+ const e = E(i) ? i : 0, n = p.current, h = Mt(n).getBoundingClientRect(), R = document.documentElement.clientHeight;
98
+ return [...f.current.keys()].some((M) => {
99
+ const c = P(document, M);
100
100
  let u = !1;
101
101
  if (c) {
102
102
  const { top: r, height: C } = c.getBoundingClientRect();
103
103
  if (Tt(n)) {
104
- const l = A ?? R / 2;
104
+ const l = T ?? R / 2;
105
105
  u = r >= e && r <= l || r <= e && r + C >= l;
106
106
  } else {
107
- const l = r - h.top - e, j = A ?? h.height / 2;
108
- u = l >= 0 && l <= j || l <= 0 && l + C >= j;
107
+ const l = r - h.top - e, D = T ?? h.height / 2;
108
+ u = l >= 0 && l <= D || l <= 0 && l + C >= D;
109
109
  }
110
110
  u && (t = c);
111
111
  }
112
112
  return u;
113
113
  }), t;
114
- }, [i, A]), g = S(
114
+ }, [i, T]), g = S(
115
115
  gt(
116
116
  (t) => {
117
- if (v.current)
117
+ if (b.current)
118
118
  return;
119
- const e = B();
119
+ const e = U();
120
120
  if (e && e.id) {
121
121
  const n = `#${e.id}`;
122
122
  L(n);
@@ -125,29 +125,29 @@ function Ht(q, G) {
125
125
  30,
126
126
  { trailing: !0 }
127
127
  ),
128
- [B, L]
128
+ [U, L]
129
129
  );
130
- function U(t) {
130
+ function V(t) {
131
131
  if (t)
132
132
  try {
133
- const e = M(document, t);
133
+ const e = P(document, t);
134
134
  if (!e)
135
135
  return;
136
- const n = P(i) ? "start" : i, W = P(i) ? i : 0, h = dt(e, { block: n });
136
+ const n = E(i) ? "start" : i, j = E(i) ? i : 0, h = dt(e, { block: n });
137
137
  if (!h.length)
138
138
  return;
139
139
  let R = !1;
140
- const b = h.map(({ el: c, top: u }) => new Promise((r) => {
140
+ const M = h.map(({ el: c, top: u }) => new Promise((r) => {
141
141
  if (!R) {
142
142
  c === p.current && (R = !0);
143
- const C = u - W;
144
- return Y ? Ft(c, C, r) : (F || (c.scrollTop = C), r(null));
143
+ const C = u - j;
144
+ return Y ? Ft(c, C, r) : (I || (c.scrollTop = C), r(null));
145
145
  }
146
146
  r(null);
147
147
  }));
148
- v.current = !0, Promise.all(b).then(() => {
148
+ b.current = !0, Promise.all(M).then(() => {
149
149
  setTimeout(() => {
150
- v.current = !1;
150
+ b.current = !1;
151
151
  }, 27);
152
152
  });
153
153
  } catch (e) {
@@ -155,30 +155,30 @@ function Ht(q, G) {
155
155
  }
156
156
  }
157
157
  function ut(t, e) {
158
- F || t.preventDefault(), L(e), U(e), D(I) && I(e, o);
158
+ I || t.preventDefault(), L(e), V(e), _(H) && H(e, o);
159
159
  }
160
160
  N(() => {
161
161
  const t = decodeURIComponent(location.hash);
162
- t ? (L(t), U(t)) : g(null);
162
+ t ? (L(t), V(t)) : g(null);
163
163
  }, []), N(() => (lt || g(null), $t(p.current, "scroll", g), () => {
164
164
  At(p.current, "scroll", g);
165
165
  }), [m, g]), N(() => {
166
- const t = a.current.get(o);
167
- t && !k && d.current && (y === "horizontal" ? (d.current.style.left = `${t.offsetLeft}px`, d.current.style.width = `${t.clientWidth}px`) : d.current.style.top = `${t.offsetTop}px`);
168
- }, [o, k, y, E, st]);
169
- const V = /* @__PURE__ */ mt("div", { className: it, style: X, ref: s, ...ot, children: [
170
- !k && o && /* @__PURE__ */ w("div", { className: `${f}-line-slider`, ref: d }),
166
+ const t = f.current.get(o);
167
+ t && !x && d.current && (y === "horizontal" ? (d.current.style.left = `${t.offsetLeft}px`, d.current.style.width = `${t.clientWidth}px`) : d.current.style.top = `${t.offsetTop}px`);
168
+ }, [o, x, y, F, st]);
169
+ const W = /* @__PURE__ */ mt("div", { className: it, style: X, ref: s, ...ot, children: [
170
+ !x && o && /* @__PURE__ */ w("div", { className: `${a}-line-slider`, ref: d }),
171
171
  /* @__PURE__ */ w(
172
172
  vt.Provider,
173
173
  {
174
174
  value: {
175
175
  direction: y,
176
176
  currentLink: o,
177
- addLink: z,
178
- removeLink: at,
177
+ addLink: B,
178
+ removeLink: ft,
179
179
  onLinkClick: ut
180
180
  },
181
- children: /* @__PURE__ */ w("div", { className: `${f}-list`, children: rt })
181
+ children: /* @__PURE__ */ w("div", { className: `${a}-list`, children: rt })
182
182
  }
183
183
  )
184
184
  ] });
@@ -188,14 +188,14 @@ function Ht(q, G) {
188
188
  offsetTop: nt,
189
189
  offsetBottom: et,
190
190
  style: tt,
191
- target: ft,
192
- children: V
191
+ target: at,
192
+ children: W
193
193
  }
194
- ) : V;
194
+ ) : W;
195
195
  }
196
- const Ot = ht(Ht), _ = Ot;
197
- _.displayName = "Anchor";
198
- _.Link = bt;
196
+ const Ot = ht(Ht), q = Ot;
197
+ q.displayName = "Anchor";
198
+ q.Link = bt;
199
199
  export {
200
- _ as default
200
+ q as default
201
201
  };
package/anchor/Link.js CHANGED
@@ -1,52 +1,52 @@
1
- import { jsxs as j, jsx as k } from "react/jsx-runtime";
1
+ import { jsxs as k, jsx as P } from "react/jsx-runtime";
2
2
  import R from "lodash/isNull";
3
- import g from "lodash/isPlainObject";
4
- import E from "lodash/isString";
5
- import L from "lodash/isUndefined";
6
- import O, { forwardRef as $, useContext as f, useRef as b, useImperativeHandle as v, useEffect as w, isValidElement as I } from "react";
7
- import { a as M } from "../chunk/CQvM33Vg.js";
8
- import { u as S } from "../chunk/BFTV6myl.js";
3
+ import E from "lodash/isPlainObject";
4
+ import L from "lodash/isString";
5
+ import O from "lodash/isUndefined";
6
+ import $, { forwardRef as b, useContext as p, useRef as v, useImperativeHandle as w, useEffect as I, isValidElement as M } from "react";
7
+ import { a as S } from "../chunk/C9oo3EJI.js";
8
+ import { u as g } from "../chunk/BFTV6myl.js";
9
9
  import z from "@unicom-cloud/utils/class-name";
10
10
  import D from "./context.js";
11
- const p = "AnchorLink", H = {
11
+ const u = "AnchorLink", H = {
12
12
  href: "#"
13
13
  };
14
14
  function U(o) {
15
- return g(o) && Object.prototype.hasOwnProperty.call(o, "displayName");
15
+ return E(o) && Object.prototype.hasOwnProperty.call(o, "displayName");
16
16
  }
17
- function V(o, u) {
18
- const { getPrefixCls: d, componentConfig: n } = f(M), { className: h, style: N, href: r, title: t, children: m, ...x } = S(
17
+ function V(o, d) {
18
+ const { getPrefixCls: n, componentConfig: s } = p(S), { className: h, style: N, href: r, title: e, children: f, ...x } = g(
19
19
  o,
20
20
  H,
21
- n == null ? void 0 : n["Anchor.Link"]
22
- ), C = f(D), { currentLink: y, addLink: s, removeLink: i, onLinkClick: a, direction: A } = C, c = d("anchor-link"), P = z(
23
- c,
21
+ s == null ? void 0 : s["Anchor.Link"]
22
+ ), y = p(D), { currentLink: C, addLink: a, removeLink: i, onLinkClick: c, direction: A } = y, l = n == null ? void 0 : n("anchor-link"), j = z(
23
+ l,
24
24
  {
25
- [`${c}-active`]: y === r
25
+ [`${l}-active`]: C === r
26
26
  },
27
27
  h
28
- ), l = b(null);
29
- return v(u, () => l.current, []), w(() => (s == null || s(r, l.current), () => {
28
+ ), m = v(null);
29
+ return w(d, () => m.current, []), I(() => (a == null || a(r, m.current), () => {
30
30
  i == null || i(r);
31
- }), [r]), /* @__PURE__ */ j("div", { className: P, style: N, ref: l, ...x, children: [
32
- !L(t) && !R(t) && /* @__PURE__ */ k(
31
+ }), [r]), /* @__PURE__ */ k("div", { className: j, style: N, ref: m, ...x, children: [
32
+ !O(e) && !R(e) && /* @__PURE__ */ P(
33
33
  "a",
34
34
  {
35
- className: `${c}-title`,
36
- title: E(t) ? t : "",
35
+ className: `${l}-title`,
36
+ title: L(e) ? e : "",
37
37
  href: r,
38
38
  "data-href": r,
39
- onClick: (e) => {
40
- a == null || a(e, r);
39
+ onClick: (t) => {
40
+ c == null || c(t, r);
41
41
  },
42
- children: t
42
+ children: e
43
43
  }
44
44
  ),
45
- m && A !== "horizontal" && O.Children.map(m, (e) => I(e) && U(e.type) && e.type.displayName === p && e)
45
+ f && A !== "horizontal" && $.Children.map(f, (t) => M(t) && U(t.type) && t.type.displayName === u && t)
46
46
  ] });
47
47
  }
48
- const Y = $(V);
49
- Y.displayName = p;
48
+ const Y = b(V);
49
+ Y.displayName = u;
50
50
  export {
51
51
  Y as default
52
52
  };
package/anchor/util.js CHANGED
@@ -1,4 +1,4 @@
1
- import { y as l, q as u } from "../chunk/BNevupAU.js";
1
+ import { I as l, q as u } from "../chunk/uKZyjtff.js";
2
2
  import i from "lodash/isString";
3
3
  import { l as c } from "../chunk/ClM74To2.js";
4
4
  function d(o, n) {
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@unicom-cloud/icons/IconUiLoading";
3
3
  import "react";
4
- import "../chunk/CQvM33Vg.js";
4
+ import "../chunk/C9oo3EJI.js";
5
5
  import "../chunk/BFTV6myl.js";
6
6
  import "../chunk/CXPOj2uy.js";
7
7
  import "../input/Input.js";
8
- import { A as x } from "../chunk/DLBfXSnU.js";
8
+ import { A as x } from "../chunk/BmulTYLW.js";
9
9
  import "@unicom-cloud/utils/class-name";
10
10
  import "@unicom-cloud/utils/constant/keyboardCode";
11
11
  import "../chunk/BKKEev13.js";
package/avatar/Avatar.js CHANGED
@@ -1,54 +1,54 @@
1
- import { jsxs as W, jsx as m } from "react/jsx-runtime";
2
- import j from "lodash/isNumber";
3
- import y, { forwardRef as E, useContext as N, useRef as $, useImperativeHandle as H, useEffect as T } from "react";
4
- import { a as D } from "../chunk/CQvM33Vg.js";
1
+ import { jsxs as j, jsx as u } from "react/jsx-runtime";
2
+ import E from "lodash/isNumber";
3
+ import N, { forwardRef as H, useContext as $, useRef as v, useImperativeHandle as P, useEffect as T } from "react";
4
+ import { a as D } from "../chunk/C9oo3EJI.js";
5
5
  import L from "@unicom-cloud/utils/class-name";
6
6
  import M from "./context.js";
7
7
  const O = {
8
8
  shape: "circle",
9
9
  autoFixFontSize: !0,
10
10
  triggerType: "button"
11
- }, V = E(
12
- (n, v) => {
13
- const { getPrefixCls: C, componentConfig: c, rtl: z } = N(D), t = C("avatar"), u = N(M), F = {
11
+ }, V = H(
12
+ (i, z) => {
13
+ const { getPrefixCls: c, componentConfig: l, rtl: C } = $(D), t = c == null ? void 0 : c("avatar"), d = $(M), F = {
14
14
  ...O,
15
- ...c == null ? void 0 : c.Avatar,
16
- ...u,
17
- ...n
15
+ ...l == null ? void 0 : l.Avatar,
16
+ ...d,
17
+ ...i
18
18
  }, {
19
19
  className: R,
20
20
  shape: S,
21
21
  size: e,
22
- children: s,
22
+ children: o,
23
23
  autoFixFontSize: b,
24
- triggerIcon: l,
25
- triggerIconStyle: o,
24
+ triggerIcon: m,
25
+ triggerIconStyle: s,
26
26
  triggerType: g,
27
27
  onClick: A,
28
28
  ...I
29
- } = F, r = { ...u.style, ...n.style }, a = $(), f = $();
30
- function P() {
29
+ } = F, r = { ...d.style, ...i.style }, a = v(), f = v();
30
+ function k() {
31
31
  if (a.current) {
32
- const w = a.current.clientWidth, h = n.size || f.current.offsetWidth, x = h / (w + 8);
33
- h && x < 1 && (a.current.style.transform = `scale(${x}) translateX(-50%)`);
32
+ const W = a.current.clientWidth, x = i.size || f.current.offsetWidth, y = x / (W + 8);
33
+ x && y < 1 && (a.current.style.transform = `scale(${y}) translateX(-50%)`);
34
34
  }
35
35
  }
36
- const k = L(
36
+ const w = L(
37
37
  t,
38
38
  `${t}-${S}`,
39
39
  {
40
- [`${t}-with-trigger-icon`]: l,
41
- [`${t}-rtl`]: z
40
+ [`${t}-with-trigger-icon`]: m,
41
+ [`${t}-rtl`]: C
42
42
  },
43
43
  R
44
- ), i = y.Children.toArray(s), d = i.length === 1 && y.isValidElement(i[0]) && (i[0].type === "img" || i[0].type === "picture"), p = o || {};
45
- return g === "button" && (!o || o && !o.color) && (r != null && r.backgroundColor) && (p.color = r.backgroundColor), H(v, () => ({
44
+ ), n = N.Children.toArray(o), p = n.length === 1 && N.isValidElement(n[0]) && (n[0].type === "img" || n[0].type === "picture"), h = s || {};
45
+ return g === "button" && (!s || s && !s.color) && (r != null && r.backgroundColor) && (h.color = r.backgroundColor), P(z, () => ({
46
46
  getRootDOMNode() {
47
47
  return f.current;
48
48
  }
49
49
  })), T(() => {
50
- b && P();
51
- }, [e, s]), /* @__PURE__ */ W(
50
+ b && k();
51
+ }, [e, o]), /* @__PURE__ */ j(
52
52
  "div",
53
53
  {
54
54
  ref: f,
@@ -57,19 +57,19 @@ const O = {
57
57
  style: {
58
58
  width: e,
59
59
  height: e,
60
- fontSize: j(e) ? e / 2 : "",
60
+ fontSize: E(e) ? e / 2 : "",
61
61
  ...r
62
62
  },
63
- className: k,
63
+ className: w,
64
64
  children: [
65
- d ? /* @__PURE__ */ m("span", { className: `${t}-image`, children: s }) : null,
66
- !d && /* @__PURE__ */ m("span", { ref: a, className: `${t}-text`, children: s }),
67
- l && /* @__PURE__ */ m(
65
+ p ? /* @__PURE__ */ u("span", { className: `${t}-image`, children: o }) : null,
66
+ !p && /* @__PURE__ */ u("span", { ref: a, className: `${t}-text`, children: o }),
67
+ m && /* @__PURE__ */ u(
68
68
  "div",
69
69
  {
70
70
  className: `${t}-trigger-icon-${g}`,
71
- style: p,
72
- children: l
71
+ style: h,
72
+ children: m
73
73
  }
74
74
  )
75
75
  ]
package/avatar/Group.js CHANGED
@@ -1,54 +1,54 @@
1
1
  import { jsx as o, jsxs as _ } from "react/jsx-runtime";
2
2
  import $ from "lodash/isNumber";
3
3
  import I, { forwardRef as R, useContext as b } from "react";
4
- import { a as j } from "../chunk/CQvM33Vg.js";
4
+ import { a as j } from "../chunk/C9oo3EJI.js";
5
5
  import { u as T } from "../chunk/BFTV6myl.js";
6
6
  import k from "../popover/index.js";
7
7
  import q from "@unicom-cloud/utils/class-name";
8
8
  import w from "./Avatar.js";
9
- import v from "./context.js";
9
+ import d from "./context.js";
10
10
  const L = {
11
11
  shape: "circle",
12
12
  autoFixFontSize: !0
13
13
  };
14
- function M(d, f) {
15
- const { getPrefixCls: h, componentConfig: i, rtl: l } = b(j), g = T(
16
- d,
14
+ function M(f, h) {
15
+ const { getPrefixCls: c, componentConfig: i, rtl: l } = b(j), g = T(
16
+ f,
17
17
  L,
18
18
  i == null ? void 0 : i["Avatar.Group"]
19
19
  ), {
20
20
  className: x,
21
- style: C,
22
- children: P,
23
- size: e,
24
- shape: c,
25
- autoFixFontSize: m,
26
- zIndexAscend: N,
21
+ style: N,
22
+ children: A,
23
+ size: a,
24
+ shape: m,
25
+ autoFixFontSize: u,
26
+ zIndexAscend: C,
27
27
  maxCount: r,
28
- maxStyle: A,
28
+ maxStyle: P,
29
29
  maxPopoverTriggerProps: y,
30
30
  ...z
31
- } = g, a = h("avatar-group"), F = q(
32
- a,
31
+ } = g, e = c == null ? void 0 : c("avatar-group"), F = q(
32
+ e,
33
33
  {
34
- [`${a}-rtl`]: l
34
+ [`${e}-rtl`]: l
35
35
  },
36
36
  x
37
- ), s = I.Children.toArray(P), u = s.length;
37
+ ), s = I.Children.toArray(A), v = s.length;
38
38
  let n = s;
39
- if ($(r) && r >= 0 && u > r) {
39
+ if ($(r) && r >= 0 && v > r) {
40
40
  const p = s.slice(r);
41
41
  n = s.slice(0, r), n.push(
42
42
  /* @__PURE__ */ o(
43
43
  w,
44
44
  {
45
- style: A,
46
- className: `${a}-max-count-avatar`,
45
+ style: P,
46
+ className: `${e}-max-count-avatar`,
47
47
  children: /* @__PURE__ */ _(
48
48
  k,
49
49
  {
50
50
  triggerProps: y,
51
- content: /* @__PURE__ */ o(v.Provider, { value: { size: e, shape: c, autoFixFontSize: m }, children: /* @__PURE__ */ o("div", { className: `${a}-popover`, children: p }) }),
51
+ content: /* @__PURE__ */ o(d.Provider, { value: { size: a, shape: m, autoFixFontSize: u }, children: /* @__PURE__ */ o("div", { className: `${e}-popover`, children: p }) }),
52
52
  children: [
53
53
  "+",
54
54
  p.length
@@ -60,15 +60,15 @@ function M(d, f) {
60
60
  )
61
61
  );
62
62
  }
63
- return /* @__PURE__ */ o("div", { ref: f, style: C, className: F, ...z, children: n.map((p, t) => {
63
+ return /* @__PURE__ */ o("div", { ref: h, style: N, className: F, ...z, children: n.map((p, t) => {
64
64
  const G = l ? t === n.length - 1 : t === 0, S = {
65
- zIndex: N ? t + 1 : u - t,
66
- marginLeft: e ? G ? 0 : -e / 4 : ""
65
+ zIndex: C ? t + 1 : v - t,
66
+ marginLeft: a ? G ? 0 : -a / 4 : ""
67
67
  };
68
68
  return /* @__PURE__ */ o(
69
- v.Provider,
69
+ d.Provider,
70
70
  {
71
- value: { size: e, shape: c, autoFixFontSize: m, style: S },
71
+ value: { size: a, shape: m, autoFixFontSize: u, style: S },
72
72
  children: p
73
73
  },
74
74
  t