@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/back-top/index.js CHANGED
@@ -1,32 +1,32 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import x from "@unicom-cloud/icons/IconUiToTop";
3
- import { q as y, y as C } from "../chunk/BNevupAU.js";
4
- import B, { forwardRef as E, useRef as N, useContext as P, useState as R, useEffect as S } from "react";
5
- import { a as H } from "../chunk/CQvM33Vg.js";
6
- import { u as $ } from "../chunk/BYdIoY50.js";
7
- import { u as q } from "../chunk/BFTV6myl.js";
8
- import { P as D } from "../chunk/NPajzdOv.js";
9
- import I from "@unicom-cloud/utils/class-name";
2
+ import y from "@unicom-cloud/icons/IconUiToTop";
3
+ import { q as x, I as B } from "../chunk/uKZyjtff.js";
4
+ import C, { forwardRef as E, useRef as N, useContext as R, useState as P, useEffect as S } from "react";
5
+ import { a as H } from "../chunk/C9oo3EJI.js";
6
+ import { u as I } from "../chunk/BYdIoY50.js";
7
+ import { u as $ } from "../chunk/BFTV6myl.js";
8
+ import { P as q } from "../chunk/NPajzdOv.js";
9
+ import D from "@unicom-cloud/utils/class-name";
10
10
  import { on as K, off as U } from "../utils/dom.js";
11
11
  import { a as j } from "../chunk/ClqoGc3r.js";
12
12
  import A from "../utils/throttleByRaf.js";
13
- function M(d, c) {
14
- c || (c = N());
13
+ function M(T, m) {
14
+ m || (m = N());
15
15
  const g = {
16
16
  visibleHeight: 400,
17
17
  tween: !0,
18
- easing: y,
18
+ easing: x,
19
19
  duration: 400,
20
20
  target: () => window
21
- }, { getPrefixCls: T, componentConfig: a, rtl: b } = P(H), w = $(), t = q(
22
- d,
21
+ }, { getPrefixCls: a, componentConfig: c, rtl: b } = R(H), w = I(), t = $(
22
+ T,
23
23
  g,
24
- a == null ? void 0 : a.BackTop
25
- ), l = T("backtop"), [h, v] = R(!1), m = (e) => e === window ? document.documentElement : e;
24
+ c == null ? void 0 : c.BackTop
25
+ ), l = a == null ? void 0 : a("backtop"), [h, v] = P(!1), f = (e) => e === window ? document.documentElement : e;
26
26
  S(() => {
27
27
  var r;
28
28
  const e = (r = t.target) == null ? void 0 : r.call(t), o = A(() => {
29
- const s = t.visibleHeight, n = m(e).scrollTop;
29
+ const s = t.visibleHeight, n = f(e).scrollTop;
30
30
  v(n >= s);
31
31
  });
32
32
  return K(e, "scroll", o), o(), () => {
@@ -34,10 +34,10 @@ function M(d, c) {
34
34
  (s = o.cancel) == null || s.call(o), U(e, "scroll", o);
35
35
  };
36
36
  }, [t.target, t.visibleHeight]);
37
- const f = () => {
38
- var s, n, u;
39
- const e = (s = t.target) == null ? void 0 : s.call(t), o = m(e), r = o.scrollTop;
40
- ((n = window.getComputedStyle(o)) == null ? void 0 : n.scrollBehavior) === "smooth" || t.tween === !1 ? o.scrollTo(0, 0) : new C({
37
+ const u = () => {
38
+ var s, n, p;
39
+ const e = (s = t.target) == null ? void 0 : s.call(t), o = f(e), r = o.scrollTop;
40
+ ((n = window.getComputedStyle(o)) == null ? void 0 : n.scrollBehavior) === "smooth" || t.tween === !1 ? o.scrollTo(0, 0) : new B({
41
41
  from: { scrollTop: r },
42
42
  to: { scrollTop: 0 },
43
43
  easing: t.easing,
@@ -45,41 +45,41 @@ function M(d, c) {
45
45
  onUpdate: (k) => {
46
46
  o.scrollTop = k.scrollTop;
47
47
  }
48
- }).start(), (u = t.onClick) == null || u.call(t);
48
+ }).start(), (p = t.onClick) == null || p.call(t);
49
49
  };
50
50
  return /* @__PURE__ */ i(
51
51
  "div",
52
52
  {
53
53
  ...j(t),
54
- ref: c,
55
- className: I(
54
+ ref: m,
55
+ className: D(
56
56
  `${l}`,
57
57
  { [`${l}-rtl`]: b },
58
58
  t.className
59
59
  ),
60
60
  style: t.style,
61
- onClick: f,
61
+ onClick: u,
62
62
  ...w({
63
- onPressEnter: f
63
+ onPressEnter: u
64
64
  }),
65
65
  children: /* @__PURE__ */ i(
66
- D,
66
+ q,
67
67
  {
68
68
  in: h,
69
69
  timeout: 100,
70
70
  classNames: "fadeIn",
71
71
  unmountOnExit: !0,
72
- children: t.children || /* @__PURE__ */ i("button", { className: `${l}-button`, children: /* @__PURE__ */ i(x, {}) })
72
+ children: t.children || /* @__PURE__ */ i("button", { className: `${l}-button`, children: /* @__PURE__ */ i(y, {}) })
73
73
  }
74
74
  )
75
75
  }
76
76
  );
77
77
  }
78
- const p = E(
78
+ const d = E(
79
79
  M
80
80
  );
81
- p.displayName = "BackTop";
82
- const tt = B.memo(p);
81
+ d.displayName = "BackTop";
82
+ const tt = C.memo(d);
83
83
  export {
84
84
  tt as default
85
85
  };
package/badge/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { jsxs as $, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as x, jsx as e } from "react/jsx-runtime";
2
2
  import j from "lodash/isPlainObject";
3
3
  import { forwardRef as w, useContext as R } from "react";
4
- import { a as q } from "../chunk/CQvM33Vg.js";
4
+ import { a as q } from "../chunk/C9oo3EJI.js";
5
5
  import { u as G } from "../chunk/BFTV6myl.js";
6
6
  import { P as _ } from "../chunk/NPajzdOv.js";
7
7
  import a from "@unicom-cloud/utils/class-name";
8
8
  import k from "./Count.js";
9
- const x = [
9
+ const y = [
10
10
  "red",
11
11
  "orangered",
12
12
  "orange",
@@ -22,32 +22,32 @@ const x = [
22
22
  count: 0,
23
23
  maxCount: 99
24
24
  };
25
- function I(y, N) {
26
- const { getPrefixCls: C, componentConfig: m, rtl: b } = R(q), h = G(
27
- y,
25
+ function I(N, C) {
26
+ const { getPrefixCls: m, componentConfig: i, rtl: b } = R(q), h = G(
27
+ N,
28
28
  z,
29
- m == null ? void 0 : m.Badge
29
+ i == null ? void 0 : i.Badge
30
30
  ), {
31
31
  count: o,
32
- prefixText: u,
32
+ prefixText: p,
33
33
  text: c,
34
34
  className: S,
35
35
  dotClassName: n,
36
- dot: p,
36
+ dot: d,
37
37
  dotAnimation: O = !0,
38
- maxCount: P,
39
- color: e,
40
- dotStyle: B,
38
+ maxCount: B,
39
+ color: s,
40
+ dotStyle: P,
41
41
  offset: T,
42
42
  style: A,
43
43
  status: l,
44
- children: d,
44
+ children: f,
45
45
  ...D
46
- } = h, t = C("badge"), r = { ...B || {} }, [f, g] = T || [];
47
- f && (r.marginRight = -f), g && (r.marginTop = g);
46
+ } = h, t = m == null ? void 0 : m("badge"), r = { ...P || {} }, [g, $] = T || [];
47
+ g && (r.marginRight = -g), $ && (r.marginTop = $);
48
48
  const E = () => {
49
49
  if (j(o))
50
- return /* @__PURE__ */ s(
50
+ return /* @__PURE__ */ e(
51
51
  "span",
52
52
  {
53
53
  className: a(`${t}-custom-dot`, n),
@@ -55,17 +55,17 @@ function I(y, N) {
55
55
  children: o
56
56
  }
57
57
  );
58
- const i = !e || x.indexOf(e) > -1 ? {} : { backgroundColor: e };
59
- return c && !e && !l ? /* @__PURE__ */ s(
58
+ const u = !s || y.indexOf(s) > -1 ? {} : { backgroundColor: s };
59
+ return c && !s && !l ? /* @__PURE__ */ e(
60
60
  "span",
61
61
  {
62
62
  className: a(`${t}-text`, n),
63
63
  style: r,
64
64
  children: c
65
65
  }
66
- ) : l || e && typeof o == "number" && o <= 0 ? /* @__PURE__ */ $("span", { className: `${t}-status-wrapper`, children: [
67
- !!u && /* @__PURE__ */ s("span", { className: `${t}-status-prefix-text`, children: u }),
68
- /* @__PURE__ */ s(
66
+ ) : l || s && typeof o == "number" && o <= 0 ? /* @__PURE__ */ x("span", { className: `${t}-status-wrapper`, children: [
67
+ !!p && /* @__PURE__ */ e("span", { className: `${t}-status-prefix-text`, children: p }),
68
+ /* @__PURE__ */ e(
69
69
  "span",
70
70
  {
71
71
  className: a(
@@ -73,65 +73,65 @@ function I(y, N) {
73
73
  {
74
74
  [`${t}-status-dot-animation`]: O,
75
75
  [`${t}-status-${l}`]: l,
76
- [`${t}-color-${e}`]: e
76
+ [`${t}-color-${s}`]: s
77
77
  },
78
78
  n
79
79
  ),
80
- style: { ...i, ...r }
80
+ style: { ...u, ...r }
81
81
  }
82
82
  ),
83
- !!c && /* @__PURE__ */ s("span", { className: `${t}-status-text`, children: c })
84
- ] }) : (p || e) && typeof o == "number" && o > 0 ? /* @__PURE__ */ s(
83
+ !!c && /* @__PURE__ */ e("span", { className: `${t}-status-text`, children: c })
84
+ ] }) : (d || s) && typeof o == "number" && o > 0 ? /* @__PURE__ */ e(
85
85
  _,
86
86
  {
87
87
  classNames: "badge-zoom",
88
- in: p || !!e,
88
+ in: d || !!s,
89
89
  timeout: 200,
90
90
  appear: !0,
91
91
  mountOnEnter: !0,
92
92
  unmountOnExit: !0,
93
- children: /* @__PURE__ */ s(
93
+ children: /* @__PURE__ */ e(
94
94
  "span",
95
95
  {
96
96
  className: a(
97
97
  `${t}-dot`,
98
98
  {
99
- [`${t}-color-${e}`]: e
99
+ [`${t}-color-${s}`]: s
100
100
  },
101
101
  n
102
102
  ),
103
- style: { ...i, ...r }
103
+ style: { ...u, ...r }
104
104
  }
105
105
  )
106
106
  }
107
- ) : /* @__PURE__ */ s(
107
+ ) : /* @__PURE__ */ e(
108
108
  k,
109
109
  {
110
110
  prefixCls: t,
111
111
  className: a(`${t}-number`, n),
112
- style: { ...i, ...r },
113
- maxCount: P,
112
+ style: { ...u, ...r },
113
+ maxCount: B,
114
114
  count: o
115
115
  }
116
116
  );
117
117
  };
118
- return /* @__PURE__ */ $(
118
+ return /* @__PURE__ */ x(
119
119
  "span",
120
120
  {
121
121
  className: a(
122
122
  t,
123
123
  {
124
124
  [`${t}-status`]: l,
125
- [`${t}-no-children`]: !d,
125
+ [`${t}-no-children`]: !f,
126
126
  [`${t}-rtl`]: b
127
127
  },
128
128
  S
129
129
  ),
130
- ref: N,
130
+ ref: C,
131
131
  style: A,
132
132
  ...D,
133
133
  children: [
134
- d,
134
+ f,
135
135
  E()
136
136
  ]
137
137
  }
@@ -139,7 +139,7 @@ function I(y, N) {
139
139
  }
140
140
  const L = w(I);
141
141
  L.displayName = "Badge";
142
- const V = x, W = [
142
+ const V = y, W = [
143
143
  "default",
144
144
  "processing",
145
145
  "success",
@@ -1,22 +1,22 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import O from "@unicom-cloud/icons/IconUiObliqueLine";
3
- import c, { forwardRef as S, useContext as _ } from "react";
4
- import { a as k } from "../chunk/CQvM33Vg.js";
5
- import { u as q } from "../chunk/BFTV6myl.js";
6
- import { M as N } from "../chunk/C5X4hOkx.js";
7
- import v from "@unicom-cloud/utils/class-name";
8
- import { c as F } from "../chunk/ClM74To2.js";
9
- import { o as K } from "../chunk/BKKEev13.js";
2
+ import S from "@unicom-cloud/icons/IconUiObliqueLine";
3
+ import i, { forwardRef as _, useContext as k } from "react";
4
+ import { a as q } from "../chunk/C9oo3EJI.js";
5
+ import { u as v } from "../chunk/BFTV6myl.js";
6
+ import { M as N } from "../chunk/CVSWh4ZZ.js";
7
+ import F from "@unicom-cloud/utils/class-name";
8
+ import { c as K } from "../chunk/ClM74To2.js";
9
+ import { o as L } from "../chunk/BKKEev13.js";
10
10
  import C from "./Item.js";
11
- const L = (m, l, i) => l.indexOf(m) === l.length - 1 ? /* @__PURE__ */ t("span", { children: m.breadcrumbName }) : /* @__PURE__ */ t("a", { href: `#/${i.join("/").replace(/^\//, "")}`, children: m.breadcrumbName }), U = {
12
- separator: /* @__PURE__ */ t(O, {})
11
+ const P = (m, l, c) => l.indexOf(m) === l.length - 1 ? /* @__PURE__ */ t("span", { children: m.breadcrumbName }) : /* @__PURE__ */ t("a", { href: `#/${c.join("/").replace(/^\//, "")}`, children: m.breadcrumbName }), U = {
12
+ separator: /* @__PURE__ */ t(S, {})
13
13
  };
14
14
  function V(m, l) {
15
- const { getPrefixCls: i, componentConfig: p, rtl: y } = _(k), d = q(
15
+ const { getPrefixCls: c, componentConfig: p, rtl: y } = k(q), d = v(
16
16
  m,
17
17
  U,
18
18
  p == null ? void 0 : p.Breadcrumb
19
- ), { className: B, children: I, style: R, routes: n, maxCount: h, separator: $, ...x } = d, s = i("breadcrumb"), f = "itemRender" in d ? d.itemRender : L, E = /* @__PURE__ */ t(
19
+ ), { className: B, children: I, style: R, routes: n, maxCount: h, separator: $, ...E } = d, s = c == null ? void 0 : c("breadcrumb"), f = "itemRender" in d ? d.itemRender : P, x = /* @__PURE__ */ t(
20
20
  "span",
21
21
  {
22
22
  "aria-label": "ellipses of breadcrumb items",
@@ -24,21 +24,21 @@ function V(m, l) {
24
24
  children: "..."
25
25
  }
26
26
  ), M = /* @__PURE__ */ t("span", { "aria-hidden": !0, className: `${s}-item-separator`, children: $ }), b = (r, o, e) => {
27
- const a = c.cloneElement(M, {
27
+ const a = i.cloneElement(M, {
28
28
  key: `${e}_separator`
29
29
  });
30
- return o > 0 ? e === 0 ? [r, a, E] : e > o ? [a, r] : null : e === 0 ? [r] : [a, r];
31
- }, P = () => {
30
+ return o > 0 ? e === 0 ? [r, a, x] : e > o ? [a, r] : null : e === 0 ? [r] : [a, r];
31
+ }, j = () => {
32
32
  const r = [], o = n.length - h;
33
33
  return n.map((e, a) => {
34
34
  r.push((e.path || "").replace(/^\//, ""));
35
- const w = e.children ? /* @__PURE__ */ t(N, { children: e.children.map((u) => /* @__PURE__ */ t(N.Item, { children: f(u, n, r) }, u.path || u.breadcrumbName)) }) : null;
35
+ const O = e.children ? /* @__PURE__ */ t(N, { children: e.children.map((u) => /* @__PURE__ */ t(N.Item, { children: f(u, n, r) }, u.path || u.breadcrumbName)) }) : null;
36
36
  return b(
37
37
  /* @__PURE__ */ t(
38
38
  C,
39
39
  {
40
40
  prefixCls: s,
41
- droplist: w,
41
+ droplist: O,
42
42
  children: f(e, n, r)
43
43
  },
44
44
  e.path || e.breadcrumbName
@@ -47,14 +47,14 @@ function V(m, l) {
47
47
  a
48
48
  );
49
49
  });
50
- }, j = () => {
50
+ }, w = () => {
51
51
  const r = [];
52
- c.Children.forEach(I, (e) => {
53
- F(e) || r.push(e);
52
+ i.Children.forEach(I, (e) => {
53
+ K(e) || r.push(e);
54
54
  });
55
55
  const o = r.length - h;
56
- return c.Children.map(r, (e, a) => b(
57
- c.cloneElement(e, {
56
+ return i.Children.map(r, (e, a) => b(
57
+ i.cloneElement(e, {
58
58
  prefixCls: s
59
59
  }),
60
60
  o,
@@ -67,13 +67,13 @@ function V(m, l) {
67
67
  role: "list",
68
68
  ref: l,
69
69
  style: R,
70
- className: v(s, { [`${s}-rtl`]: y }, B),
71
- ...K(x, ["itemRender"]),
72
- children: n && n.length ? P() : j()
70
+ className: F(s, { [`${s}-rtl`]: y }, B),
71
+ ...L(E, ["itemRender"]),
72
+ children: n && n.length ? j() : w()
73
73
  }
74
74
  );
75
75
  }
76
- const W = S(V), g = W;
76
+ const W = _(V), g = W;
77
77
  g.displayName = "Breadcrumb";
78
78
  g.Item = C;
79
79
  export {
package/button/Group.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import f, { useContext as i } from "react";
3
- import { a as l } from "../chunk/CQvM33Vg.js";
3
+ import { a as l } from "../chunk/C9oo3EJI.js";
4
4
  import u from "@unicom-cloud/utils/class-name";
5
- function x(o, s) {
6
- const { className: t, style: e, children: r, ...a } = o, { getPrefixCls: n } = i(l), m = n("btn-group"), c = u(m, t);
7
- return /* @__PURE__ */ p("div", { ref: s, className: c, style: e, ...a, children: r });
5
+ function N(s, t) {
6
+ const { className: r, style: a, children: e, ...n } = s, { getPrefixCls: o } = i(l), m = o == null ? void 0 : o("btn-group"), c = u(m, r);
7
+ return /* @__PURE__ */ p("div", { ref: t, className: c, style: a, ...n, children: e });
8
8
  }
9
- const C = f.forwardRef(x);
10
- C.displayName = "ButtonGroup";
9
+ const d = f.forwardRef(N);
10
+ d.displayName = "ButtonGroup";
11
11
  export {
12
- C as default
12
+ d as default
13
13
  };
package/button/index.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import { jsx as l, jsxs as A, Fragment as M } from "react/jsx-runtime";
2
2
  import Q from "@unicom-cloud/icons/IconUiLoading";
3
3
  import _, { forwardRef as W, useContext as Y, useState as H, useRef as J, useEffect as K } from "react";
4
- import { a as V } from "../chunk/CQvM33Vg.js";
4
+ import { a as V } from "../chunk/C9oo3EJI.js";
5
5
  import { u as X } from "../chunk/BFTV6myl.js";
6
6
  import Z from "@unicom-cloud/utils/class-name";
7
7
  import v from "./Group.js";
8
8
  const tt = /^[\u4e00-\u9fa5]{2}$/;
9
9
  function et(u) {
10
10
  const o = [];
11
- let i = !1;
11
+ let s = !1;
12
12
  return _.Children.forEach(u, (n) => {
13
- const a = typeof n == "string" || typeof n == "number";
14
- if (a && i) {
15
- const s = o.length - 1, f = o[s];
16
- o[s] = `${f}${n}`;
13
+ const i = typeof n == "string" || typeof n == "number";
14
+ if (i && s) {
15
+ const r = o.length - 1, f = o[r];
16
+ o[r] = `${f}${n}`;
17
17
  } else
18
18
  o.push(n);
19
- i = a;
19
+ s = i;
20
20
  }), _.Children.map(
21
21
  o,
22
22
  (n) => typeof n == "string" ? /* @__PURE__ */ l("span", { children: n }) : n
@@ -29,17 +29,17 @@ const nt = {
29
29
  };
30
30
  function ot(u, o) {
31
31
  const {
32
- getPrefixCls: i,
32
+ getPrefixCls: s,
33
33
  size: n,
34
- autoInsertSpaceInButton: a,
35
- componentConfig: s,
34
+ autoInsertSpaceInButton: i,
35
+ componentConfig: r,
36
36
  rtl: f
37
37
  } = Y(V), I = X(
38
38
  u,
39
39
  nt,
40
- s == null ? void 0 : s.Button
40
+ r == null ? void 0 : r.Button
41
41
  ), {
42
- style: y,
42
+ style: x,
43
43
  className: S,
44
44
  children: p,
45
45
  htmlType: U,
@@ -59,14 +59,14 @@ function ot(u, o) {
59
59
  onClick: m,
60
60
  long: L,
61
61
  ...T
62
- } = I, B = h ? /* @__PURE__ */ l(Q, {}) : F, [C, P] = H(!1), q = J(), r = o || q;
62
+ } = I, B = h ? /* @__PURE__ */ l(Q, {}) : F, [C, w] = H(!1), q = J(), a = o || q;
63
63
  K(() => {
64
- if (a && r && r.current) {
65
- const e = r.current.textContent;
66
- tt.test(e) ? C || P(!0) : C && P(!1);
64
+ if (i && a && a.current) {
65
+ const e = a.current.textContent;
66
+ tt.test(e) ? C || w(!0) : C && w(!1);
67
67
  }
68
- }, [r.current, a]);
69
- const t = i("btn"), $ = g === "default" ? "secondary" : g, w = Z(
68
+ }, [a.current, i]);
69
+ const t = s == null ? void 0 : s("btn"), $ = g === "default" ? "secondary" : g, P = Z(
70
70
  t,
71
71
  $ === "text-only" && `${t}-text`,
72
72
  `${t}-${$}`,
@@ -101,11 +101,11 @@ function ot(u, o) {
101
101
  return c ? delete e.href : e.href = d, /* @__PURE__ */ l(
102
102
  "a",
103
103
  {
104
- ref: r,
104
+ ref: a,
105
105
  ...T,
106
106
  ...e,
107
- style: y,
108
- className: w,
107
+ style: x,
108
+ className: P,
109
109
  onClick: b,
110
110
  children: R
111
111
  }
@@ -114,10 +114,10 @@ function ot(u, o) {
114
114
  return /* @__PURE__ */ l(
115
115
  "button",
116
116
  {
117
- ref: r,
117
+ ref: a,
118
118
  ...T,
119
- style: y,
120
- className: w,
119
+ style: x,
120
+ className: P,
121
121
  type: U,
122
122
  disabled: c,
123
123
  onClick: b,
@@ -125,10 +125,10 @@ function ot(u, o) {
125
125
  }
126
126
  );
127
127
  }
128
- const st = W(ot), x = st;
129
- x.__PQB_BUTTON = !0;
130
- x.Group = v;
131
- x.displayName = "Button";
128
+ const st = W(ot), y = st;
129
+ y.__PQB_BUTTON = !0;
130
+ y.Group = v;
131
+ y.displayName = "Button";
132
132
  const pt = [
133
133
  "default",
134
134
  "primary",
@@ -142,5 +142,5 @@ export {
142
142
  dt as BUTTON_STATUS,
143
143
  pt as BUTTON_TYPE,
144
144
  v as ButtonGroup,
145
- x as default
145
+ y as default
146
146
  };
package/calendar/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import "react/jsx-runtime";
2
2
  import "lodash/merge";
3
3
  import "react";
4
- import "../chunk/CQvM33Vg.js";
4
+ import "../chunk/C9oo3EJI.js";
5
5
  import "../chunk/BFTV6myl.js";
6
6
  import "@unicom-cloud/utils/class-name";
7
7
  import "../chunk/tamGhTJp.js";
8
8
  import "../chunk/ClqoGc3r.js";
9
9
  import "../chunk/BZ9g7J4R.js";
10
10
  import "./Year.js";
11
- import { C as u } from "../chunk/DLBfXSnU.js";
11
+ import { C as u } from "../chunk/BmulTYLW.js";
12
12
  export {
13
13
  u as default
14
14
  };
package/card/Grid.js CHANGED
@@ -1,24 +1,24 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import c, { useContext as l } from "react";
3
- import { a as d } from "../chunk/CQvM33Vg.js";
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import i, { useContext as d } from "react";
3
+ import { a as l } from "../chunk/C9oo3EJI.js";
4
4
  import f from "@unicom-cloud/utils/class-name";
5
- function p(e, o) {
6
- const { children: a, style: s, className: t, hoverable: i } = e, { getPrefixCls: m } = l(d), r = m("card-grid");
7
- return /* @__PURE__ */ n(
5
+ function p(a, e) {
6
+ const { children: s, style: t, className: m, hoverable: n } = a, { getPrefixCls: o } = d(l), r = o == null ? void 0 : o("card-grid");
7
+ return /* @__PURE__ */ c(
8
8
  "div",
9
9
  {
10
- ref: o,
11
- style: s,
10
+ ref: e,
11
+ style: t,
12
12
  className: f(
13
13
  r,
14
- { [`${r}-hoverable`]: i },
15
- t
14
+ { [`${r}-hoverable`]: n },
15
+ m
16
16
  ),
17
- children: a
17
+ children: s
18
18
  }
19
19
  );
20
20
  }
21
- const C = c.forwardRef(p);
21
+ const C = i.forwardRef(p);
22
22
  C.displayName = "CardGrid";
23
23
  export {
24
24
  C as default
package/card/Meta.js CHANGED
@@ -1,30 +1,30 @@
1
- import { jsxs as o, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
2
  import p, { useContext as v } from "react";
3
- import { a as h } from "../chunk/CQvM33Vg.js";
4
- import c from "@unicom-cloud/utils/class-name";
5
- function u(l, n) {
6
- const { className: m, title: s, avatar: e, description: t, actionList: r, ...d } = l, { getPrefixCls: f } = v(h), a = f("card-meta"), N = c(a, m);
7
- return /* @__PURE__ */ o("div", { ...d, ref: n, className: N, children: [
8
- s || t ? /* @__PURE__ */ o("div", { className: `${a}-content`, children: [
9
- s && /* @__PURE__ */ i("div", { className: `${a}-title`, children: s }),
10
- t && /* @__PURE__ */ i("div", { className: `${a}-description`, children: t })
3
+ import { a as h } from "../chunk/C9oo3EJI.js";
4
+ import r from "@unicom-cloud/utils/class-name";
5
+ function u(l, m) {
6
+ const { className: d, title: t, avatar: s, description: e, actionList: i, ...f } = l, { getPrefixCls: o } = v(h), a = o == null ? void 0 : o("card-meta"), N = r(a, d);
7
+ return /* @__PURE__ */ c("div", { ...f, ref: m, className: N, children: [
8
+ t || e ? /* @__PURE__ */ c("div", { className: `${a}-content`, children: [
9
+ t && /* @__PURE__ */ n("div", { className: `${a}-title`, children: t }),
10
+ e && /* @__PURE__ */ n("div", { className: `${a}-description`, children: e })
11
11
  ] }) : null,
12
- e || r ? /* @__PURE__ */ o(
12
+ s || i ? /* @__PURE__ */ c(
13
13
  "div",
14
14
  {
15
- className: c(`${a}-footer `, {
16
- [`${a}-footer-only-actions`]: !e
15
+ className: r(`${a}-footer `, {
16
+ [`${a}-footer-only-actions`]: !s
17
17
  }),
18
18
  children: [
19
- e ? /* @__PURE__ */ i("div", { className: `${a}-avatar`, children: e }) : null,
20
- r
19
+ s ? /* @__PURE__ */ n("div", { className: `${a}-avatar`, children: s }) : null,
20
+ i
21
21
  ]
22
22
  }
23
23
  ) : null
24
24
  ] });
25
25
  }
26
- const x = p.forwardRef(u);
27
- x.displayName = "CardMeta";
26
+ const $ = p.forwardRef(u);
27
+ $.displayName = "CardMeta";
28
28
  export {
29
- x as default
29
+ $ as default
30
30
  };