@unicom-cloud/ui 0.8.81 → 0.8.82

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 (262) 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/InputNumber.js +1 -1
  28. package/Layout.js +1 -1
  29. package/Link.js +1 -1
  30. package/List.js +2 -2
  31. package/Mentions.js +2 -2
  32. package/Menu.js +1 -1
  33. package/Message.js +1 -1
  34. package/Modal.js +1 -1
  35. package/Notice.js +1 -1
  36. package/Notification.js +5 -5
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Pagination.js +1 -1
  40. package/Popconfirm.js +1 -1
  41. package/Popover.js +1 -1
  42. package/Progress.js +1 -1
  43. package/Radio.js +1 -1
  44. package/Rate.js +1 -1
  45. package/ResizeBox.js +1 -1
  46. package/Result.js +1 -1
  47. package/Select.js +1 -1
  48. package/Skeleton.js +1 -1
  49. package/Slider.js +1 -1
  50. package/Space.js +1 -1
  51. package/SpeechSynthesis.js +1 -1
  52. package/Spin.js +1 -1
  53. package/Statistic.js +2 -2
  54. package/Steps.js +1 -1
  55. package/Switch.js +1 -1
  56. package/Table.js +1 -1
  57. package/Tabs.js +1 -1
  58. package/Tag.js +1 -1
  59. package/Tooltip.js +1 -1
  60. package/Transfer.js +2 -2
  61. package/Tree.js +1 -1
  62. package/TreeSelect.js +1 -1
  63. package/Trigger.js +1 -1
  64. package/Typography.js +1 -1
  65. package/affix/index.js +60 -57
  66. package/alert/index.js +53 -53
  67. package/anchor/Anchor.js +72 -72
  68. package/anchor/Link.js +27 -27
  69. package/anchor/util.js +1 -1
  70. package/auto-complete/index.js +2 -2
  71. package/avatar/Avatar.js +31 -31
  72. package/avatar/Group.js +25 -25
  73. package/back-top/index.js +30 -30
  74. package/badge/index.js +37 -37
  75. package/breadcrumb/index.js +26 -26
  76. package/button/Group.js +7 -7
  77. package/button/index.js +29 -29
  78. package/calendar/index.js +2 -2
  79. package/card/Grid.js +12 -12
  80. package/card/Meta.js +17 -17
  81. package/card/index.js +44 -44
  82. package/carousel/Arrow.js +19 -19
  83. package/carousel/Indicator.js +25 -25
  84. package/carousel/index.js +77 -77
  85. package/cascader/Cascader.js +2 -2
  86. package/cascader/index.js +1 -1
  87. package/cascader/util.js +1 -1
  88. package/checkbox/Checkbox.js +2 -2
  89. package/checkbox/Group.js +2 -2
  90. package/checkbox/GroupBlock.js +2 -2
  91. package/checkbox/index.js +2 -2
  92. package/chunk/{yLRv5RIK.js → CQI1gsQs.js} +181 -181
  93. package/chunk/CmMehQON.js +1464 -0
  94. package/chunk/Cplu5dtQ.js +730 -0
  95. package/chunk/{C5X4hOkx.js → D0338Pbq.js} +80 -80
  96. package/chunk/{DYspELhF.js → DXDbeIai.js} +223 -223
  97. package/chunk/{DEiyXzBZ.js → DfrB26fI.js} +63 -63
  98. package/chunk/{BG7YGUsx.js → dKvAiKxr.js} +119 -119
  99. package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
  100. package/chunk/{DLBfXSnU.js → w221i0nK.js} +2872 -2871
  101. package/collapse/Collapse.js +2 -2
  102. package/collapse/Item.js +2 -2
  103. package/collapse/index.js +1 -1
  104. package/color-picker/ControlBar.js +36 -36
  105. package/color-picker/InputAlpha.js +11 -11
  106. package/color-picker/InputHex.js +24 -24
  107. package/color-picker/InputRgb.js +23 -23
  108. package/color-picker/Palette.js +18 -18
  109. package/color-picker/Panel.js +2 -2
  110. package/color-picker/index.js +2 -2
  111. package/comment/index.js +31 -31
  112. package/config-provider/ConfigProvider.js +5 -4
  113. package/config-provider/context.js +2 -2
  114. package/config-provider/index.js +4 -3
  115. package/copy/index.js +28 -28
  116. package/date-picker/Picker.js +276 -276
  117. package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
  118. package/date-picker/index.js +26 -27
  119. package/descriptions/index.js +33 -33
  120. package/divider/index.js +12 -12
  121. package/draggable/index.js +23 -23
  122. package/drawer/Drawer.js +81 -81
  123. package/dropdown/Button.js +1 -1
  124. package/dropdown/index.js +56 -56
  125. package/empty/index.js +1 -1
  126. package/form/Form.js +76 -76
  127. package/form/FormItem.js +64 -64
  128. package/grid/Col.js +53 -53
  129. package/grid/Row.js +34 -34
  130. package/grid/grid-item.js +29 -29
  131. package/grid/grid.js +50 -50
  132. package/icon/index.js +20 -19
  133. package/icon-hover/index.js +1 -1
  134. package/image/Image.js +86 -86
  135. package/image/ImagePreview.js +2 -2
  136. package/image/ImagePreviewArrow.js +22 -22
  137. package/image/ImagePreviewGroup.js +1 -1
  138. package/image/index.js +1 -1
  139. package/index.js +410 -408
  140. package/input/Group.js +8 -8
  141. package/input/Input.js +322 -322
  142. package/input/InputElement.js +1 -1
  143. package/input/Password.js +1 -1
  144. package/input/Search.js +1 -1
  145. package/input/Textarea.js +1 -1
  146. package/input-number/index.js +1 -1
  147. package/input-tag/InputTag.js +40 -40
  148. package/layout/Content.js +7 -7
  149. package/layout/Footer.js +9 -9
  150. package/layout/Header.js +7 -7
  151. package/layout/Sider.js +55 -55
  152. package/layout/index.js +32 -32
  153. package/link/index.js +35 -35
  154. package/list/Item.js +29 -29
  155. package/list/Meta.js +12 -12
  156. package/list/index.js +2 -2
  157. package/mentions/index.js +2 -2
  158. package/menu/Menu.js +2 -2
  159. package/menu/OverflowWrap.js +1 -1
  160. package/menu/index.js +2 -2
  161. package/message/index.js +1 -1
  162. package/message/useMessage.js +1 -1
  163. package/modal/Confirm.js +2 -2
  164. package/modal/Modal.js +2 -2
  165. package/modal/index.js +1 -1
  166. package/notice/index.js +1 -1
  167. package/notification/index.js +5 -5
  168. package/notification/useNotification.js +1 -1
  169. package/overflow-ellipsis/OverflowItem.js +12 -12
  170. package/overflow-ellipsis/index.js +24 -24
  171. package/package.json +1 -1
  172. package/page-header/index.js +38 -38
  173. package/pagination/PageItem.js +16 -16
  174. package/pagination/PageJumper.js +1 -1
  175. package/pagination/PageOption.js +2 -2
  176. package/pagination/Pagination.js +2 -2
  177. package/pagination/index.js +1 -1
  178. package/picker/Input.js +69 -69
  179. package/picker/InputRange.js +111 -111
  180. package/popconfirm/index.js +61 -61
  181. package/popover/index.js +35 -35
  182. package/progress/index.js +22 -22
  183. package/radio/Group.js +2 -2
  184. package/radio/GroupBlock.js +2 -2
  185. package/radio/Radio.js +2 -2
  186. package/radio/index.js +2 -2
  187. package/rate/index.js +49 -49
  188. package/resize-box/ResizeTrigger.js +34 -34
  189. package/resize-box/Split.js +56 -56
  190. package/resize-box/SplitGroup.js +55 -55
  191. package/resize-box/index.js +51 -51
  192. package/result/index.js +41 -41
  193. package/select/Option.js +1 -1
  194. package/select/Select.js +2 -2
  195. package/select/index.js +2 -2
  196. package/select/util.js +1 -1
  197. package/select-view/Core.js +125 -125
  198. package/skeleton/index.js +20 -20
  199. package/slider/Button.js +57 -57
  200. package/slider/index.js +116 -116
  201. package/space/index.js +46 -44
  202. package/speech-synthesis/index.js +1 -1
  203. package/spin/DotLoading.js +10 -10
  204. package/spin/index.js +44 -44
  205. package/statistic/Countdown.js +34 -34
  206. package/statistic/index.js +67 -67
  207. package/steps/index.js +55 -55
  208. package/style.css +1 -1
  209. package/switch/index.js +54 -54
  210. package/table/Table.js +3 -3
  211. package/table/index.js +1 -1
  212. package/tabs/Tab.js +2 -2
  213. package/tabs/TabContent.js +2 -2
  214. package/tabs/TabPane.js +12 -12
  215. package/tabs/index.js +2 -2
  216. package/tag/index.js +45 -45
  217. package/time-picker/Picker.js +76 -76
  218. package/time-picker/TimePicker.js +136 -136
  219. package/time-picker/index.js +8 -8
  220. package/time-picker/util.js +5 -5
  221. package/timeline/Item.js +47 -47
  222. package/timeline/Timeline.js +41 -41
  223. package/tooltip/index.js +29 -29
  224. package/transfer/Item.js +2 -2
  225. package/transfer/List.js +2 -2
  226. package/transfer/index.js +2 -2
  227. package/tree/Animation.js +2 -2
  228. package/tree/Node.js +2 -2
  229. package/tree/NodeList.js +1 -1
  230. package/tree/Tree.js +2 -2
  231. package/tree/index.js +1 -1
  232. package/tree-select/List.js +1 -1
  233. package/tree-select/Select.js +2 -2
  234. package/tree-select/index.js +2 -2
  235. package/trigger/index.js +60 -60
  236. package/types/config-provider/ConfigProvider.d.ts +2 -2
  237. package/types/config-provider/context.d.ts +1 -1
  238. package/types/date-picker/index.d.ts +8 -9
  239. package/types/date-picker/interface.d.ts +9 -9
  240. package/types/index.d.ts +1 -1
  241. package/types/picker/Input.d.ts +2 -2
  242. package/types/space/index.d.ts +2 -1
  243. package/types/utils/names.d.ts +1 -1
  244. package/typography/Base.js +53 -53
  245. package/typography/Ellipsis.js +9 -8
  246. package/typography/Operations.js +28 -28
  247. package/typography/Paragraph.js +8 -8
  248. package/typography/Typography.js +7 -7
  249. package/typography/index.js +1 -1
  250. package/upload/TriggerNode.js +47 -47
  251. package/upload/Upload.js +184 -184
  252. package/utils/contextHolder.js +3 -3
  253. package/utils/index.js +13 -13
  254. package/utils/names.js +1 -1
  255. package/utils/setPrimaryColor.js +18 -13
  256. package/utils/tween.js +1 -1
  257. package/verification-code/VerificationCode.js +49 -49
  258. package/version/index.js +1 -1
  259. package/watermark/Watermark.js +24 -24
  260. package/chunk/CQvM33Vg.js +0 -724
  261. package/chunk/yhU2zeeu.js +0 -1461
  262. /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
@@ -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/Cplu5dtQ.js";
5
+ import { u as v } from "../chunk/BFTV6myl.js";
6
+ import { M as N } from "../chunk/D0338Pbq.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/Cplu5dtQ.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/Cplu5dtQ.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/Cplu5dtQ.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/w221i0nK.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/Cplu5dtQ.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/Cplu5dtQ.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
  };
package/card/index.js CHANGED
@@ -1,51 +1,51 @@
1
1
  import { jsx as a, jsxs as l } from "react/jsx-runtime";
2
- import n, { useContext as L } from "react";
3
- import { a as k } from "../chunk/CQvM33Vg.js";
2
+ import d, { useContext as P } from "react";
3
+ import { a as k } from "../chunk/Cplu5dtQ.js";
4
4
  import { u as q } from "../chunk/BFTV6myl.js";
5
5
  import A from "../spin/index.js";
6
- import $ from "@unicom-cloud/utils/class-name";
6
+ import u from "@unicom-cloud/utils/class-name";
7
7
  import C from "./Grid.js";
8
- import u from "./Meta.js";
8
+ import N from "./Meta.js";
9
9
  const B = {
10
10
  size: "default",
11
11
  bordered: !0
12
12
  };
13
- function D(N, v) {
14
- const { getPrefixCls: y, loadingElement: x, componentConfig: s, rtl: g } = L(k), b = q(
15
- N,
13
+ function D(v, y) {
14
+ const { getPrefixCls: o, loadingElement: b, componentConfig: s, rtl: x } = P(k), g = q(
15
+ v,
16
16
  B,
17
17
  s == null ? void 0 : s.Card
18
18
  ), {
19
19
  className: M,
20
20
  children: z,
21
- bordered: P,
22
- loading: c,
23
- hoverable: R,
24
- size: S,
21
+ bordered: R,
22
+ loading: m,
23
+ hoverable: S,
24
+ size: j,
25
25
  title: t,
26
- extra: o,
27
- cover: m,
28
- actions: i,
29
- headerStyle: j,
30
- bodyStyle: w,
31
- ...E
32
- } = b, e = y("card"), p = i && i.length ? /* @__PURE__ */ a("div", { className: `${e}-actions`, children: /* @__PURE__ */ a("div", { className: `${e}-actions-right`, children: i.map((r, F) => /* @__PURE__ */ a(
26
+ extra: i,
27
+ cover: p,
28
+ actions: n,
29
+ headerStyle: w,
30
+ bodyStyle: E,
31
+ ...G
32
+ } = g, e = o == null ? void 0 : o("card"), h = n && n.length ? /* @__PURE__ */ a("div", { className: `${e}-actions`, children: /* @__PURE__ */ a("div", { className: `${e}-actions-right`, children: n.map((r, L) => /* @__PURE__ */ a(
33
33
  "span",
34
34
  {
35
35
  className: `${e}-actions-item`,
36
36
  children: r
37
37
  },
38
- `action-${F}`
38
+ `action-${L}`
39
39
  )) }) }) : null;
40
- let f = !1, h = !1;
41
- const G = n.Children.map(
40
+ let f = !1, $ = !1;
41
+ const F = d.Children.map(
42
42
  z,
43
43
  (r) => {
44
44
  if (r && r.type) {
45
45
  if (r.type === C)
46
46
  f = !0;
47
- else if (r.type === u)
48
- return h = !0, n.cloneElement(r, { actionList: p });
47
+ else if (r.type === N)
48
+ return $ = !0, d.cloneElement(r, { actionList: h });
49
49
  }
50
50
  return r;
51
51
  }
@@ -53,47 +53,47 @@ function D(N, v) {
53
53
  return /* @__PURE__ */ l(
54
54
  "div",
55
55
  {
56
- ...E,
57
- ref: v,
58
- className: $(
56
+ ...G,
57
+ ref: y,
58
+ className: u(
59
59
  e,
60
- `${e}-size-${S}`,
60
+ `${e}-size-${j}`,
61
61
  {
62
- [`${e}-loading`]: c,
63
- [`${e}-bordered`]: P,
64
- [`${e}-hoverable`]: R,
62
+ [`${e}-loading`]: m,
63
+ [`${e}-bordered`]: R,
64
+ [`${e}-hoverable`]: S,
65
65
  [`${e}-contain-grid`]: f,
66
- [`${e}-rtl`]: g
66
+ [`${e}-rtl`]: x
67
67
  },
68
68
  M
69
69
  ),
70
70
  children: [
71
- t || o ? /* @__PURE__ */ l(
71
+ t || i ? /* @__PURE__ */ l(
72
72
  "div",
73
73
  {
74
- className: $(`${e}-header`, {
74
+ className: u(`${e}-header`, {
75
75
  [`${e}-header-no-title`]: !t
76
76
  }),
77
- style: j,
77
+ style: w,
78
78
  children: [
79
79
  t && /* @__PURE__ */ a("div", { className: `${e}-header-title`, children: t }),
80
- o && /* @__PURE__ */ a("div", { className: `${e}-header-extra`, children: o })
80
+ i && /* @__PURE__ */ a("div", { className: `${e}-header-extra`, children: i })
81
81
  ]
82
82
  }
83
83
  ) : null,
84
- m ? /* @__PURE__ */ a("div", { className: `${e}-cover`, children: m }) : null,
85
- /* @__PURE__ */ l("div", { className: `${e}-body`, style: w, children: [
86
- c ? x || /* @__PURE__ */ a(A, {}) : G,
87
- h ? null : p
84
+ p ? /* @__PURE__ */ a("div", { className: `${e}-cover`, children: p }) : null,
85
+ /* @__PURE__ */ l("div", { className: `${e}-body`, style: E, children: [
86
+ m ? b || /* @__PURE__ */ a(A, {}) : F,
87
+ $ ? null : h
88
88
  ] })
89
89
  ]
90
90
  }
91
91
  );
92
92
  }
93
- const H = n.forwardRef(D), d = H;
94
- d.Meta = u;
95
- d.Grid = C;
96
- d.displayName = "Card";
93
+ const H = d.forwardRef(D), c = H;
94
+ c.Meta = N;
95
+ c.Grid = C;
96
+ c.displayName = "Card";
97
97
  export {
98
- d as default
98
+ c as default
99
99
  };
package/carousel/Arrow.js CHANGED
@@ -1,36 +1,36 @@
1
1
  import { jsx as r, jsxs as h } from "react/jsx-runtime";
2
2
  import v from "@unicom-cloud/icons/IconUiDown";
3
- import x from "@unicom-cloud/icons/IconUiLeft";
4
- import u from "@unicom-cloud/icons/IconUiRight";
5
- import C from "@unicom-cloud/icons/IconUiUp";
6
- import b, { useContext as y } from "react";
7
- import { a as N } from "../chunk/CQvM33Vg.js";
3
+ import u from "@unicom-cloud/icons/IconUiLeft";
4
+ import x from "@unicom-cloud/icons/IconUiRight";
5
+ import b from "@unicom-cloud/icons/IconUiUp";
6
+ import C, { useContext as y } from "react";
7
+ import { a as N } from "../chunk/Cplu5dtQ.js";
8
8
  import { u as $ } from "../chunk/BYdIoY50.js";
9
9
  import I from "@unicom-cloud/utils/class-name";
10
- function P(i, c) {
10
+ function U(i, l) {
11
11
  const {
12
- className: l,
12
+ className: m,
13
13
  direction: t = "horizontal",
14
- showArrow: m = "always",
15
- prev: n,
14
+ showArrow: p = "always",
15
+ prev: a,
16
16
  next: s,
17
17
  icons: o
18
- } = i, a = $(), { getPrefixCls: p } = y(N), e = p("carousel"), f = I(
18
+ } = i, c = $(), { getPrefixCls: n } = y(N), e = n == null ? void 0 : n("carousel"), f = I(
19
19
  `${e}-arrow`,
20
20
  {
21
- [`${e}-arrow-hover`]: m === "hover"
21
+ [`${e}-arrow-hover`]: p === "hover"
22
22
  },
23
- l
24
- ), w = o && Object.prototype.hasOwnProperty.call(o, "prev") ? o.prev : t === "horizontal" ? /* @__PURE__ */ r(x, {}) : /* @__PURE__ */ r(C, {}), d = o && Object.prototype.hasOwnProperty.call(o, "next") ? o.next : t === "horizontal" ? /* @__PURE__ */ r(u, {}) : /* @__PURE__ */ r(v, {});
25
- return /* @__PURE__ */ h("div", { ref: c, className: f, children: [
23
+ m
24
+ ), w = o && Object.prototype.hasOwnProperty.call(o, "prev") ? o.prev : t === "horizontal" ? /* @__PURE__ */ r(u, {}) : /* @__PURE__ */ r(b, {}), d = o && Object.prototype.hasOwnProperty.call(o, "next") ? o.next : t === "horizontal" ? /* @__PURE__ */ r(x, {}) : /* @__PURE__ */ r(v, {});
25
+ return /* @__PURE__ */ h("div", { ref: l, className: f, children: [
26
26
  /* @__PURE__ */ r(
27
27
  "div",
28
28
  {
29
29
  className: `${e}-arrow-${t === "vertical" ? "top" : "left"}`,
30
- onClick: n,
30
+ onClick: a,
31
31
  role: "button",
32
32
  tabIndex: 0,
33
- ...a({ onPressEnter: n }),
33
+ ...c({ onPressEnter: a }),
34
34
  children: w
35
35
  }
36
36
  ),
@@ -41,14 +41,14 @@ function P(i, c) {
41
41
  onClick: s,
42
42
  role: "button",
43
43
  tabIndex: 0,
44
- ...a({ onPressEnter: s }),
44
+ ...c({ onPressEnter: s }),
45
45
  children: d
46
46
  }
47
47
  )
48
48
  ] });
49
49
  }
50
- const K = b.forwardRef(
51
- P
50
+ const K = C.forwardRef(
51
+ U
52
52
  );
53
53
  export {
54
54
  K as default
@@ -1,64 +1,64 @@
1
- import { jsx as r } from "react/jsx-runtime";
1
+ import { jsx as c } from "react/jsx-runtime";
2
2
  import N, { useContext as h } from "react";
3
- import { a as I } from "../chunk/CQvM33Vg.js";
4
- import c from "@unicom-cloud/utils/class-name";
5
- function w(f, m) {
6
- const { getPrefixCls: p } = h(I), {
3
+ import { a as I } from "../chunk/Cplu5dtQ.js";
4
+ import l from "@unicom-cloud/utils/class-name";
5
+ function w(f, p) {
6
+ const { getPrefixCls: a } = h(I), {
7
7
  className: u,
8
8
  type: i = "line",
9
- count: a = 2,
9
+ count: n = 2,
10
10
  activeIndex: s = 0,
11
11
  position: x = "bottom",
12
- trigger: g = "click",
13
- onSelectIndex: l
14
- } = f, e = p("carousel-indicator"), n = [];
12
+ trigger: $ = "click",
13
+ onSelectIndex: d
14
+ } = f, e = a == null ? void 0 : a("carousel-indicator"), r = [];
15
15
  if (i === "slider") {
16
- const t = 100 / a;
17
- n.push(
18
- /* @__PURE__ */ r(
16
+ const t = 100 / n;
17
+ r.push(
18
+ /* @__PURE__ */ c(
19
19
  "span",
20
20
  {
21
21
  style: { width: `${t}%`, left: `${s * t}%` },
22
- className: c(`${e}-item`, `${e}-item-active`)
22
+ className: l(`${e}-item`, `${e}-item-active`)
23
23
  },
24
24
  0
25
25
  )
26
26
  );
27
27
  } else
28
- for (let t = 0; t < a; t++)
29
- n.push(
30
- /* @__PURE__ */ r(
28
+ for (let t = 0; t < n; t++)
29
+ r.push(
30
+ /* @__PURE__ */ c(
31
31
  "span",
32
32
  {
33
33
  "data-index": t,
34
- className: c(`${e}-item`, {
34
+ className: l(`${e}-item`, {
35
35
  [`${e}-item-active`]: t === s
36
36
  })
37
37
  },
38
38
  t
39
39
  )
40
40
  );
41
- const C = {
42
- ref: m,
43
- className: c(
41
+ const g = {
42
+ ref: p,
43
+ className: l(
44
44
  e,
45
45
  `${e}-${i}`,
46
46
  `${e}-${x}`,
47
47
  u
48
48
  ),
49
- [g === "click" ? "onClick" : "onMouseMove"]: (t) => {
49
+ [$ === "click" ? "onClick" : "onMouseMove"]: (t) => {
50
50
  if (t.preventDefault(), i === "slider") {
51
51
  if (t.target === t.currentTarget) {
52
- const { x: o, width: $ } = t.currentTarget.getBoundingClientRect(), d = ~~((t.nativeEvent.clientX - o) / $ * a);
53
- d !== s && l(d);
52
+ const { x: o, width: C } = t.currentTarget.getBoundingClientRect(), m = ~~((t.nativeEvent.clientX - o) / C * n);
53
+ m !== s && d(m);
54
54
  }
55
55
  } else {
56
56
  const o = t.target.getAttribute("data-index");
57
- o && +o !== s && l(+o);
57
+ o && +o !== s && d(+o);
58
58
  }
59
59
  }
60
60
  };
61
- return /* @__PURE__ */ r("div", { ...C, children: n });
61
+ return /* @__PURE__ */ c("div", { ...g, children: r });
62
62
  }
63
63
  const y = N.forwardRef(w);
64
64
  export {