@unicom-cloud/ui 0.8.78 → 0.8.79

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 (345) hide show
  1. package/Affix.js +3 -3
  2. package/Alert.js +3 -3
  3. package/AutoComplete.js +5 -5
  4. package/BackTop.js +5 -5
  5. package/Badge.js +3 -3
  6. package/Breadcrumb.js +4 -4
  7. package/Button.js +2 -2
  8. package/Calendar.js +4 -4
  9. package/Card.js +2 -2
  10. package/Carousel.js +2 -2
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +3 -3
  15. package/Comment.js +2 -2
  16. package/ConfigProvider.js +1 -1
  17. package/Copy.js +4 -4
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +2 -2
  20. package/Divider.js +2 -2
  21. package/Draggable.js +2 -2
  22. package/Dropdown.js +5 -5
  23. package/Empty.js +2 -2
  24. package/Icon.js +9 -5
  25. package/IconHover.js +2 -2
  26. package/Image.js +1 -1
  27. package/InputNumber.js +3 -3
  28. package/Layout.js +2 -2
  29. package/Link.js +3 -3
  30. package/List.js +4 -4
  31. package/Mentions.js +5 -5
  32. package/Menu.js +1 -1
  33. package/Message.js +3 -3
  34. package/Modal.js +1 -1
  35. package/Notice.js +9 -8
  36. package/Notification.js +3 -3
  37. package/OverflowEllipsis.js +2 -2
  38. package/PageHeader.js +3 -3
  39. package/Pagination.js +1 -1
  40. package/Popconfirm.js +3 -3
  41. package/Popover.js +3 -3
  42. package/Progress.js +2 -2
  43. package/Radio.js +1 -1
  44. package/Rate.js +3 -3
  45. package/ResizeBox.js +3 -3
  46. package/Result.js +2 -2
  47. package/Select.js +1 -1
  48. package/SelectView.js +5 -6
  49. package/Skeleton.js +2 -2
  50. package/Slider.js +4 -4
  51. package/Space.js +2 -2
  52. package/SpeechSynthesis.js +18 -20
  53. package/Spin.js +3 -3
  54. package/Statistic.js +3 -3
  55. package/Steps.js +2 -2
  56. package/Switch.js +7 -8
  57. package/Table.js +1 -1
  58. package/Tabs.js +1 -1
  59. package/Tag.js +3 -3
  60. package/Tooltip.js +3 -3
  61. package/Transfer.js +4 -4
  62. package/Tree.js +1 -1
  63. package/TreeSelect.js +1 -1
  64. package/Trigger.js +9 -10
  65. package/Typography.js +1 -1
  66. package/affix/index.js +17 -17
  67. package/alert/index.js +13 -13
  68. package/anchor/Anchor.js +40 -40
  69. package/anchor/Link.js +14 -14
  70. package/anchor/util.js +2 -2
  71. package/auto-complete/index.js +5 -5
  72. package/avatar/Avatar.js +17 -17
  73. package/avatar/Group.js +13 -13
  74. package/back-top/index.js +13 -13
  75. package/badge/Count.js +13 -13
  76. package/badge/index.js +21 -21
  77. package/breadcrumb/Item.js +25 -25
  78. package/breadcrumb/index.js +12 -12
  79. package/button/Group.js +6 -6
  80. package/button/index.js +30 -30
  81. package/calendar/Month.js +2 -2
  82. package/calendar/Year.js +1 -1
  83. package/calendar/index.js +4 -4
  84. package/card/Grid.js +13 -13
  85. package/card/Meta.js +13 -13
  86. package/card/index.js +29 -29
  87. package/carousel/Arrow.js +6 -6
  88. package/carousel/Indicator.js +27 -27
  89. package/carousel/index.js +24 -24
  90. package/cascader/Cascader.js +8 -8
  91. package/cascader/index.js +1 -1
  92. package/cascader/util.js +1 -1
  93. package/checkbox/Checkbox.js +4 -4
  94. package/checkbox/Group.js +4 -4
  95. package/checkbox/GroupBlock.js +3 -3
  96. package/checkbox/index.js +2 -2
  97. package/chunk/{ZrBrCzQX.js → B4WG1mhs.js} +6 -7
  98. package/chunk/{Cwm8LL5p.js → B4mZh-RK.js} +7245 -7249
  99. package/chunk/{CjqvxJml.js → BG7YGUsx.js} +32 -32
  100. package/chunk/{BhBEMwvI.js → BNevupAU.js} +18 -20
  101. package/chunk/BYdIoY50.js +17 -0
  102. package/chunk/{Cc_-i0o_.js → BZ3igxQN.js} +6 -7
  103. package/chunk/{uEGHykhe.js → BZ9g7J4R.js} +1 -1
  104. package/chunk/BsUZRQDT.js +23 -0
  105. package/chunk/{CBgu99gQ.js → C5X4hOkx.js} +130 -130
  106. package/chunk/{B0n0iRhF.js → CCKr5jj1.js} +1 -1
  107. package/chunk/{CNcLypMY.js → CQvM33Vg.js} +190 -189
  108. package/chunk/CXPOj2uy.js +19 -0
  109. package/chunk/{DAAff-FT.js → ClM74To2.js} +9 -10
  110. package/chunk/{RS6OAxzv.js → D-ap9qEk.js} +2 -2
  111. package/chunk/{tpmioyz1.js → DEiyXzBZ.js} +28 -28
  112. package/chunk/{CplLA01W.js → DEuVgCzp.js} +45 -52
  113. package/chunk/{BPQXH_5i.js → DYspELhF.js} +43 -43
  114. package/chunk/DxYoPlum.js +50 -0
  115. package/chunk/{BpYX5PN4.js → NPajzdOv.js} +2 -2
  116. package/chunk/{BBkdXHrJ.js → rT6qmv-Y.js} +1 -1
  117. package/chunk/{BC5fEyWK.js → yLRv5RIK.js} +61 -61
  118. package/chunk/{C_4I3haT.js → yhU2zeeu.js} +96 -96
  119. package/collapse/Collapse.js +4 -4
  120. package/collapse/Item.js +4 -4
  121. package/collapse/index.js +1 -1
  122. package/color-picker/ControlBar.js +22 -22
  123. package/color-picker/InputAlpha.js +1 -1
  124. package/color-picker/InputHex.js +1 -1
  125. package/color-picker/InputRgb.js +1 -1
  126. package/color-picker/Palette.js +1 -1
  127. package/color-picker/Panel.js +4 -4
  128. package/color-picker/index.js +3 -3
  129. package/comment/index.js +18 -18
  130. package/config-provider/ConfigProvider.js +2 -2
  131. package/config-provider/context.js +2 -2
  132. package/config-provider/index.js +2 -2
  133. package/copy/index.js +23 -23
  134. package/date-picker/Picker.js +41 -41
  135. package/date-picker/PickerRange.js +3 -3
  136. package/date-picker/index.js +1 -1
  137. package/descriptions/index.js +28 -28
  138. package/divider/index.js +15 -15
  139. package/draggable/Item.js +11 -11
  140. package/draggable/index.js +15 -15
  141. package/drawer/Drawer.js +31 -31
  142. package/dropdown/Button.js +1 -1
  143. package/dropdown/index.js +22 -22
  144. package/empty/index.js +2 -2
  145. package/form/Control.js +46 -46
  146. package/form/Form.js +12 -12
  147. package/form/FormItem.js +12 -12
  148. package/form/FormLabel.js +11 -11
  149. package/form/context.js +7 -6
  150. package/form/promisify.js +9 -10
  151. package/form/store.js +1 -1
  152. package/form/util.js +1 -1
  153. package/grid/Col.js +38 -38
  154. package/grid/Row.js +15 -15
  155. package/grid/grid-item.js +17 -17
  156. package/grid/grid.js +28 -28
  157. package/hooks/index.js +6 -6
  158. package/hooks/useInView.js +1 -1
  159. package/hooks/useIntersectionObserver.js +1 -1
  160. package/hooks/useKeyboardEvent.js +1 -1
  161. package/hooks/useMergeValue.js +1 -1
  162. package/hooks/useOverrideRef.js +1 -1
  163. package/hooks/usePrefersColorSchemeDark.js +1 -1
  164. package/hooks/useVerificationCode.js +30 -30
  165. package/icon/index.js +20 -16
  166. package/icon-hover/index.js +2 -2
  167. package/image/Image.js +22 -22
  168. package/image/ImageFooter.js +2 -2
  169. package/image/ImagePreview.js +11 -11
  170. package/image/ImagePreviewArrow.js +16 -16
  171. package/image/ImagePreviewGroup.js +2 -2
  172. package/image/ImagePreviewToolbar.js +7 -7
  173. package/image/TriggerForToolbar.js +7 -7
  174. package/image/index.js +1 -1
  175. package/index.js +547 -580
  176. package/input/Group.js +10 -10
  177. package/input/Input.js +213 -214
  178. package/input/InputElement.js +10 -11
  179. package/input/Password.js +4 -4
  180. package/input/Search.js +3 -3
  181. package/input/Textarea.js +7 -8
  182. package/input/useComposition.js +6 -6
  183. package/input-number/index.js +3 -3
  184. package/input-tag/InputTag.js +110 -111
  185. package/layout/Content.js +4 -4
  186. package/layout/Footer.js +6 -6
  187. package/layout/Header.js +8 -8
  188. package/layout/Sider.js +29 -29
  189. package/layout/index.js +16 -16
  190. package/link/index.js +27 -27
  191. package/list/Item.js +5 -5
  192. package/list/Meta.js +11 -11
  193. package/list/index.js +4 -4
  194. package/locale/en-US.js +1 -1
  195. package/locale/tr-TR.js +1 -1
  196. package/mentions/index.js +5 -5
  197. package/menu/Item.js +11 -11
  198. package/menu/ItemGroup.js +8 -8
  199. package/menu/Menu.js +5 -5
  200. package/menu/OverflowWrap.js +2 -2
  201. package/menu/index.js +2 -2
  202. package/message/index.js +3 -3
  203. package/message/useMessage.js +1 -1
  204. package/modal/Confirm.js +2 -2
  205. package/modal/Modal.js +7 -7
  206. package/modal/index.js +1 -1
  207. package/notice/index.js +9 -8
  208. package/notification/index.js +3 -3
  209. package/notification/useNotification.js +1 -1
  210. package/overflow-ellipsis/OverflowItem.js +6 -6
  211. package/overflow-ellipsis/index.js +27 -27
  212. package/package.json +1 -1
  213. package/page-header/index.js +3 -3
  214. package/pagination/PageItem.js +7 -7
  215. package/pagination/PageJumper.js +1 -1
  216. package/pagination/PageOption.js +3 -3
  217. package/pagination/Pagination.js +4 -4
  218. package/pagination/index.js +1 -1
  219. package/picker/Input.js +7 -7
  220. package/picker/InputRange.js +77 -77
  221. package/popconfirm/index.js +11 -11
  222. package/popover/index.js +21 -21
  223. package/progress/CircleProgress.js +14 -14
  224. package/progress/LineProgess.js +14 -14
  225. package/progress/StepProgress.js +9 -9
  226. package/progress/index.js +26 -26
  227. package/radio/Group.js +4 -4
  228. package/radio/GroupBlock.js +3 -3
  229. package/radio/Radio.js +4 -4
  230. package/radio/index.js +2 -2
  231. package/rate/index.js +16 -16
  232. package/resize-box/ResizeTrigger.js +27 -28
  233. package/resize-box/Split.js +21 -21
  234. package/resize-box/SplitGroup.js +40 -40
  235. package/resize-box/index.js +23 -23
  236. package/result/index.js +29 -29
  237. package/select/Option.js +2 -2
  238. package/select/Select.js +11 -12
  239. package/select/index.js +2 -2
  240. package/select/util.js +5 -5
  241. package/select-view/Core.js +104 -106
  242. package/select-view/index.js +22 -23
  243. package/skeleton/Image.js +14 -14
  244. package/skeleton/Text.js +16 -16
  245. package/skeleton/index.js +11 -11
  246. package/slider/Button.js +4 -4
  247. package/slider/Dot.js +9 -9
  248. package/slider/Input.js +20 -20
  249. package/slider/Tick.js +14 -14
  250. package/slider/index.js +103 -103
  251. package/slider/util.js +3 -3
  252. package/space/index.js +14 -14
  253. package/speech-synthesis/index.js +26 -28
  254. package/spin/DotLoading.js +1 -1
  255. package/spin/index.js +16 -16
  256. package/statistic/Countdown.js +17 -17
  257. package/statistic/index.js +32 -32
  258. package/steps/Step.js +8 -8
  259. package/steps/index.js +17 -17
  260. package/switch/index.js +32 -33
  261. package/table/Table.js +5 -5
  262. package/table/index.js +1 -1
  263. package/tabs/Tab.js +4 -4
  264. package/tabs/TabContent.js +3 -3
  265. package/tabs/TabPane.js +11 -11
  266. package/tabs/index.js +2 -2
  267. package/tabs/util.js +1 -1
  268. package/tag/index.js +16 -16
  269. package/time-picker/Picker.js +50 -50
  270. package/time-picker/TimeColumn.js +8 -8
  271. package/time-picker/TimePicker.js +32 -32
  272. package/time-picker/util.js +1 -1
  273. package/timeline/Item.js +15 -15
  274. package/timeline/Timeline.js +24 -24
  275. package/tooltip/index.js +23 -23
  276. package/transfer/Item.js +4 -4
  277. package/transfer/List.js +4 -4
  278. package/transfer/index.js +4 -4
  279. package/tree/Animation.js +3 -3
  280. package/tree/Node.js +3 -3
  281. package/tree/NodeList.js +2 -2
  282. package/tree/Tree.js +4 -4
  283. package/tree/index.js +1 -1
  284. package/tree-select/List.js +2 -2
  285. package/tree-select/Select.js +8 -9
  286. package/tree-select/index.js +2 -2
  287. package/trigger/getPopupStyle.js +18 -19
  288. package/trigger/index.js +32 -33
  289. package/types/button/index.d.ts +2 -2
  290. package/types/color-picker/colors.d.ts +1 -1
  291. package/types/date-picker/util.d.ts +1 -1
  292. package/types/icon/index.d.ts +3 -1
  293. package/types/index.d.ts +1 -1
  294. package/types/menu/context.d.ts +1 -1
  295. package/typography/Base.js +33 -35
  296. package/typography/EditContent.js +16 -16
  297. package/typography/Ellipsis.js +24 -26
  298. package/typography/Operations.js +1 -1
  299. package/typography/Paragraph.js +8 -8
  300. package/typography/Typography.js +7 -7
  301. package/typography/index.js +1 -1
  302. package/upload/TriggerNode.js +8 -8
  303. package/upload/Upload.js +64 -65
  304. package/upload/Uploader.js +12 -12
  305. package/upload/request.js +13 -12
  306. package/upload/request_.js +5 -6
  307. package/utils/PqbCSSTransition.js +1 -1
  308. package/utils/caseName.js +4 -3
  309. package/utils/className.js +4 -3
  310. package/utils/constant.js +3 -3
  311. package/utils/contextHolder.js +1 -1
  312. package/utils/copy.js +5 -4
  313. package/utils/fileToURL.js +4 -3
  314. package/utils/index.js +261 -298
  315. package/utils/is.js +78 -115
  316. package/utils/keyboardCode.js +4 -26
  317. package/utils/math.js +10 -32
  318. package/utils/react19Adapter.js +1 -1
  319. package/utils/reactDOM.js +1 -1
  320. package/utils/saveAs.js +4 -3
  321. package/utils/screenfull.js +4 -3
  322. package/utils/scrollIntoView.js +1 -1
  323. package/utils/setDarkTheme.js +1 -1
  324. package/utils/tree.js +7 -83
  325. package/utils/tween.js +1 -1
  326. package/utils/validate.js +1 -1
  327. package/verification-code/VerificationCode.js +25 -25
  328. package/version/index.js +1 -1
  329. package/virtual-list/VirtualList.js +1 -1
  330. package/watermark/Watermark.js +8 -8
  331. package/chunk/ATwvJ8j2.js +0 -6
  332. package/chunk/BFmckYou.js +0 -25
  333. package/chunk/Bl7BnD1R.js +0 -119
  334. package/chunk/Bmvhjhzq.js +0 -24
  335. package/chunk/BrOW642m.js +0 -130
  336. package/chunk/C0pRaDCf.js +0 -96
  337. package/chunk/CBzE-PUr.js +0 -23
  338. package/chunk/CUFsOxJ2.js +0 -10
  339. package/chunk/Ce1j9KTi.js +0 -6
  340. package/chunk/D0Dlbc2g.js +0 -41
  341. package/chunk/DRTWRsgI.js +0 -34
  342. package/chunk/DeV0v__J.js +0 -20
  343. package/chunk/DohlrJ4S.js +0 -50
  344. package/chunk/XTEsYGuF.js +0 -17
  345. package/chunk/yl4BU7Sd.js +0 -1068
@@ -1,46 +1,46 @@
1
- import { jsxs as N, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as C, jsx as o } from "react/jsx-runtime";
2
2
  import w from "@unicom-cloud/icons/IconUiDown";
3
3
  import V from "lodash/isString";
4
- import { useState as x } from "react";
5
- import D from "../dropdown/index.js";
6
- import { p as s } from "../chunk/CUFsOxJ2.js";
7
- import { o as $ } from "../chunk/BKKEev13.js";
4
+ import { useState as $ } from "react";
5
+ import x from "../dropdown/index.js";
6
+ import n from "@unicom-cloud/utils/class-name";
7
+ import { o as D } from "../chunk/BKKEev13.js";
8
8
  import { a as I } from "../chunk/ClqoGc3r.js";
9
9
  function j(l) {
10
10
  const {
11
11
  children: c,
12
12
  style: d,
13
13
  className: p,
14
- prefixCls: e,
14
+ prefixCls: i,
15
15
  droplist: t,
16
- dropdownProps: i,
17
- href: r,
16
+ dropdownProps: e,
17
+ href: m,
18
18
  onClick: f,
19
19
  tagName: h = "div",
20
- ...u
21
- } = l, [b, g] = x(!1), C = V(r) ? "a" : h, m = /* @__PURE__ */ N(
22
- C,
20
+ ...N
21
+ } = l, [u, b] = $(!1), g = V(m) ? "a" : h, a = /* @__PURE__ */ C(
22
+ g,
23
23
  {
24
- href: r,
24
+ href: m,
25
25
  onClick: f,
26
26
  role: "listitem",
27
27
  style: d,
28
- className: s(
29
- `${e}-item`,
28
+ className: n(
29
+ `${i}-item`,
30
30
  {
31
- [`${e}-item-with-dropdown`]: t
31
+ [`${i}-item-with-dropdown`]: t
32
32
  },
33
33
  p
34
34
  ),
35
- ...I(u),
35
+ ...I(N),
36
36
  children: [
37
37
  c,
38
38
  t && /* @__PURE__ */ o(
39
39
  "span",
40
40
  {
41
41
  "aria-hidden": !0,
42
- className: s(`${e}-item-dropdown-icon`, {
43
- [`${e}-item-dropdown-icon-active`]: b
42
+ className: n(`${i}-item-dropdown-icon`, {
43
+ [`${i}-item-dropdown-icon-active`]: u
44
44
  }),
45
45
  children: /* @__PURE__ */ o(w, {})
46
46
  }
@@ -49,17 +49,17 @@ function j(l) {
49
49
  }
50
50
  );
51
51
  return t ? /* @__PURE__ */ o(
52
- D,
52
+ x,
53
53
  {
54
54
  droplist: t,
55
- onVisibleChange: (a) => {
56
- var n;
57
- g(a), (n = i == null ? void 0 : i.onVisibleChange) == null || n.call(i, a);
55
+ onVisibleChange: (r) => {
56
+ var s;
57
+ b(r), (s = e == null ? void 0 : e.onVisibleChange) == null || s.call(e, r);
58
58
  },
59
- ...$(i, ["onVisibleChange"]),
60
- children: m
59
+ ...D(e, ["onVisibleChange"]),
60
+ children: a
61
61
  }
62
- ) : m;
62
+ ) : a;
63
63
  }
64
64
  j.displayName = "BreadcrumbItem";
65
65
  export {
@@ -1,13 +1,13 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import O from "@unicom-cloud/icons/IconUiObliqueLine";
3
3
  import c, { forwardRef as S, useContext as _ } from "react";
4
- import { a as k } from "../chunk/CNcLypMY.js";
4
+ import { a as k } from "../chunk/CQvM33Vg.js";
5
5
  import { u as q } from "../chunk/BFTV6myl.js";
6
- import { M as C } from "../chunk/CBgu99gQ.js";
7
- import { p as v } from "../chunk/CUFsOxJ2.js";
8
- import { c as F } from "../chunk/DAAff-FT.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
9
  import { o as K } from "../chunk/BKKEev13.js";
10
- import N from "./Item.js";
10
+ import C from "./Item.js";
11
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
12
  separator: /* @__PURE__ */ t(O, {})
13
13
  };
@@ -16,26 +16,26 @@ function V(m, l) {
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, ...E } = d, s = i("breadcrumb"), f = "itemRender" in d ? d.itemRender : L, $ = /* @__PURE__ */ t(
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(
20
20
  "span",
21
21
  {
22
22
  "aria-label": "ellipses of breadcrumb items",
23
23
  className: `${s}-item-ellipses`,
24
24
  children: "..."
25
25
  }
26
- ), M = /* @__PURE__ */ t("span", { "aria-hidden": !0, className: `${s}-item-separator`, children: x }), b = (r, o, e) => {
26
+ ), M = /* @__PURE__ */ t("span", { "aria-hidden": !0, className: `${s}-item-separator`, children: $ }), b = (r, o, e) => {
27
27
  const a = c.cloneElement(M, {
28
28
  key: `${e}_separator`
29
29
  });
30
- return o > 0 ? e === 0 ? [r, a, $] : e > o ? [a, r] : null : e === 0 ? [r] : [a, r];
30
+ return o > 0 ? e === 0 ? [r, a, E] : e > o ? [a, r] : null : e === 0 ? [r] : [a, r];
31
31
  }, P = () => {
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(C, { children: e.children.map((u) => /* @__PURE__ */ t(C.Item, { children: f(u, n, r) }, u.path || u.breadcrumbName)) }) : null;
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;
36
36
  return b(
37
37
  /* @__PURE__ */ t(
38
- N,
38
+ C,
39
39
  {
40
40
  prefixCls: s,
41
41
  droplist: w,
@@ -68,14 +68,14 @@ function V(m, l) {
68
68
  ref: l,
69
69
  style: R,
70
70
  className: v(s, { [`${s}-rtl`]: y }, B),
71
- ...K(E, ["itemRender"]),
71
+ ...K(x, ["itemRender"]),
72
72
  children: n && n.length ? P() : j()
73
73
  }
74
74
  );
75
75
  }
76
76
  const W = S(V), g = W;
77
77
  g.displayName = "Breadcrumb";
78
- g.Item = N;
78
+ g.Item = C;
79
79
  export {
80
80
  g as default
81
81
  };
package/button/Group.js CHANGED
@@ -1,10 +1,10 @@
1
- import { jsx as c } from "react/jsx-runtime";
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/CNcLypMY.js";
4
- import { p as u } from "../chunk/CUFsOxJ2.js";
5
- function x(o, t) {
6
- const { className: r, style: s, children: e, ...n } = o, { getPrefixCls: a } = i(l), m = a("btn-group"), p = u(m, r);
7
- return /* @__PURE__ */ c("div", { ref: t, className: p, style: s, ...n, children: e });
3
+ import { a as l } from "../chunk/CQvM33Vg.js";
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 });
8
8
  }
9
9
  const C = f.forwardRef(x);
10
10
  C.displayName = "ButtonGroup";
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/CNcLypMY.js";
4
+ import { a as V } from "../chunk/CQvM33Vg.js";
5
5
  import { u as X } from "../chunk/BFTV6myl.js";
6
- import { p as Z } from "../chunk/CUFsOxJ2.js";
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 a = !1;
11
+ let i = !1;
12
12
  return _.Children.forEach(u, (n) => {
13
- const i = typeof n == "string" || typeof n == "number";
14
- if (i && a) {
13
+ const a = typeof n == "string" || typeof n == "number";
14
+ if (a && i) {
15
15
  const s = o.length - 1, f = o[s];
16
16
  o[s] = `${f}${n}`;
17
17
  } else
18
18
  o.push(n);
19
- a = i;
19
+ i = a;
20
20
  }), _.Children.map(
21
21
  o,
22
22
  (n) => typeof n == "string" ? /* @__PURE__ */ l("span", { children: n }) : n
@@ -29,9 +29,9 @@ const nt = {
29
29
  };
30
30
  function ot(u, o) {
31
31
  const {
32
- getPrefixCls: a,
32
+ getPrefixCls: i,
33
33
  size: n,
34
- autoInsertSpaceInButton: i,
34
+ autoInsertSpaceInButton: a,
35
35
  componentConfig: s,
36
36
  rtl: f
37
37
  } = Y(V), I = X(
@@ -39,12 +39,12 @@ function ot(u, o) {
39
39
  nt,
40
40
  s == null ? void 0 : s.Button
41
41
  ), {
42
- style: $,
42
+ style: y,
43
43
  className: S,
44
44
  children: p,
45
45
  htmlType: U,
46
46
  type: g,
47
- status: T,
47
+ status: N,
48
48
  size: z,
49
49
  shape: O,
50
50
  href: d,
@@ -58,27 +58,27 @@ function ot(u, o) {
58
58
  iconRight: D,
59
59
  onClick: m,
60
60
  long: L,
61
- ...B
62
- } = I, N = h ? /* @__PURE__ */ l(Q, {}) : F, [C, P] = H(!1), q = J(), r = o || q;
61
+ ...T
62
+ } = I, B = h ? /* @__PURE__ */ l(Q, {}) : F, [C, P] = H(!1), q = J(), r = o || q;
63
63
  K(() => {
64
- if (i && r && r.current) {
64
+ if (a && r && r.current) {
65
65
  const e = r.current.textContent;
66
66
  tt.test(e) ? C || P(!0) : C && P(!1);
67
67
  }
68
- }, [r.current, i]);
69
- const t = a("btn"), x = g === "default" ? "secondary" : g, w = Z(
68
+ }, [r.current, a]);
69
+ const t = i("btn"), $ = g === "default" ? "secondary" : g, w = Z(
70
70
  t,
71
- x === "text-only" && `${t}-text`,
72
- `${t}-${x}`,
73
- x !== "text-only" && `${t}-size-${z || n}`,
71
+ $ === "text-only" && `${t}-text`,
72
+ `${t}-${$}`,
73
+ $ !== "text-only" && `${t}-size-${z || n}`,
74
74
  `${t}-shape-${O}`,
75
75
  {
76
76
  [`${t}-long`]: L,
77
- [`${t}-status-${T}`]: T,
77
+ [`${t}-status-${N}`]: N,
78
78
  [`${t}-loading-fixed-width`]: E,
79
79
  [`${t}-loading`]: h,
80
80
  [`${t}-link`]: d,
81
- [`${t}-icon-only`]: G || !p && p !== 0 && N,
81
+ [`${t}-icon-only`]: G || !p && p !== 0 && B,
82
82
  [`${t}-disabled`]: c,
83
83
  [`${t}-two-chinese-chars`]: C,
84
84
  [`${t}-rtl`]: f
@@ -91,7 +91,7 @@ function ot(u, o) {
91
91
  }
92
92
  m == null || m(e);
93
93
  }, R = /* @__PURE__ */ A(M, { children: [
94
- N,
94
+ B,
95
95
  et(p),
96
96
  D,
97
97
  j
@@ -102,9 +102,9 @@ function ot(u, o) {
102
102
  "a",
103
103
  {
104
104
  ref: r,
105
- ...B,
105
+ ...T,
106
106
  ...e,
107
- style: $,
107
+ style: y,
108
108
  className: w,
109
109
  onClick: b,
110
110
  children: R
@@ -115,8 +115,8 @@ function ot(u, o) {
115
115
  "button",
116
116
  {
117
117
  ref: r,
118
- ...B,
119
- style: $,
118
+ ...T,
119
+ style: y,
120
120
  className: w,
121
121
  type: U,
122
122
  disabled: c,
@@ -125,10 +125,10 @@ function ot(u, o) {
125
125
  }
126
126
  );
127
127
  }
128
- const st = W(ot), y = st;
129
- y.__PQB_BUTTON = !0;
130
- y.Group = v;
131
- y.displayName = "Button";
128
+ const st = W(ot), x = st;
129
+ x.__PQB_BUTTON = !0;
130
+ x.Group = v;
131
+ x.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
- y as default
145
+ x as default
146
146
  };
package/calendar/Month.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../chunk/CUFsOxJ2.js";
3
+ import "@unicom-cloud/utils/class-name";
4
4
  import "../utils/constant.js";
5
5
  import "../chunk/tamGhTJp.js";
6
6
  import "../utils/pad.js";
7
7
  import "./WeekList.js";
8
- import { M as s, g as f } from "../chunk/uEGHykhe.js";
8
+ import { M as s, g as f } from "../chunk/BZ9g7J4R.js";
9
9
  export {
10
10
  s as default,
11
11
  f as getAllDaysByTime
package/calendar/Year.js CHANGED
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as C } from "react/jsx-runtime";
2
2
  import M from "react";
3
3
  import { d as S } from "../chunk/tamGhTJp.js";
4
4
  import { padStart as w } from "../utils/pad.js";
5
- import { u as x, M as D } from "../chunk/uEGHykhe.js";
5
+ import { u as x, M as D } from "../chunk/BZ9g7J4R.js";
6
6
  const v = [
7
7
  "January",
8
8
  "February",
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/CNcLypMY.js";
4
+ import "../chunk/CQvM33Vg.js";
5
5
  import "../chunk/BFTV6myl.js";
6
- import "../chunk/CUFsOxJ2.js";
6
+ import "@unicom-cloud/utils/class-name";
7
7
  import "../chunk/tamGhTJp.js";
8
8
  import "../chunk/ClqoGc3r.js";
9
- import "../chunk/uEGHykhe.js";
9
+ import "../chunk/BZ9g7J4R.js";
10
10
  import "./Year.js";
11
- import { C as u } from "../chunk/Cwm8LL5p.js";
11
+ import { C as u } from "../chunk/B4mZh-RK.js";
12
12
  export {
13
13
  u as default
14
14
  };
package/card/Grid.js CHANGED
@@ -1,24 +1,24 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import d, { useContext as f } from "react";
3
- import { a as c } from "../chunk/CNcLypMY.js";
4
- import { p as l } from "../chunk/CUFsOxJ2.js";
5
- function p(o, e) {
6
- const { children: t, style: a, className: s, hoverable: i } = o, { getPrefixCls: n } = f(c), r = n("card-grid");
7
- return /* @__PURE__ */ m(
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";
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(
8
8
  "div",
9
9
  {
10
- ref: e,
11
- style: a,
12
- className: l(
10
+ ref: o,
11
+ style: s,
12
+ className: f(
13
13
  r,
14
14
  { [`${r}-hoverable`]: i },
15
- s
15
+ t
16
16
  ),
17
- children: t
17
+ children: a
18
18
  }
19
19
  );
20
20
  }
21
- const C = d.forwardRef(p);
21
+ const C = c.forwardRef(p);
22
22
  C.displayName = "CardGrid";
23
23
  export {
24
24
  C as default
package/card/Meta.js CHANGED
@@ -1,29 +1,29 @@
1
1
  import { jsxs as o, jsx as i } from "react/jsx-runtime";
2
- import N, { useContext as v } from "react";
3
- import { a as h } from "../chunk/CNcLypMY.js";
4
- import { p as n } from "../chunk/CUFsOxJ2.js";
5
- function u(c, l) {
6
- const { className: d, title: a, avatar: e, description: s, actionList: r, ...m } = c, { getPrefixCls: f } = v(h), t = f("card-meta"), p = n(t, d);
7
- return /* @__PURE__ */ o("div", { ...m, ref: l, className: p, children: [
8
- a || s ? /* @__PURE__ */ o("div", { className: `${t}-content`, children: [
9
- a && /* @__PURE__ */ i("div", { className: `${t}-title`, children: a }),
10
- s && /* @__PURE__ */ i("div", { className: `${t}-description`, children: s })
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 })
11
11
  ] }) : null,
12
12
  e || r ? /* @__PURE__ */ o(
13
13
  "div",
14
14
  {
15
- className: n(`${t}-footer `, {
16
- [`${t}-footer-only-actions`]: !e
15
+ className: c(`${a}-footer `, {
16
+ [`${a}-footer-only-actions`]: !e
17
17
  }),
18
18
  children: [
19
- e ? /* @__PURE__ */ i("div", { className: `${t}-avatar`, children: e }) : null,
19
+ e ? /* @__PURE__ */ i("div", { className: `${a}-avatar`, children: e }) : null,
20
20
  r
21
21
  ]
22
22
  }
23
23
  ) : null
24
24
  ] });
25
25
  }
26
- const x = N.forwardRef(u);
26
+ const x = p.forwardRef(u);
27
27
  x.displayName = "CardMeta";
28
28
  export {
29
29
  x as default
package/card/index.js CHANGED
@@ -1,20 +1,20 @@
1
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
- import l, { useContext as L } from "react";
3
- import { a as k } from "../chunk/CNcLypMY.js";
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";
4
4
  import { u as q } from "../chunk/BFTV6myl.js";
5
5
  import A from "../spin/index.js";
6
- import { p as C } from "../chunk/CUFsOxJ2.js";
7
- import $ from "./Grid.js";
6
+ import $ from "@unicom-cloud/utils/class-name";
7
+ import C from "./Grid.js";
8
8
  import u from "./Meta.js";
9
9
  const B = {
10
10
  size: "default",
11
11
  bordered: !0
12
12
  };
13
- function D(v, N) {
14
- const { getPrefixCls: y, loadingElement: x, componentConfig: o, rtl: g } = L(k), b = q(
15
- v,
13
+ function D(N, v) {
14
+ const { getPrefixCls: y, loadingElement: x, componentConfig: s, rtl: g } = L(k), b = q(
15
+ N,
16
16
  B,
17
- o == null ? void 0 : o.Card
17
+ s == null ? void 0 : s.Card
18
18
  ), {
19
19
  className: M,
20
20
  children: z,
@@ -22,14 +22,14 @@ function D(v, N) {
22
22
  loading: c,
23
23
  hoverable: R,
24
24
  size: S,
25
- title: a,
26
- extra: i,
25
+ title: t,
26
+ extra: o,
27
27
  cover: m,
28
- actions: s,
28
+ actions: i,
29
29
  headerStyle: j,
30
30
  bodyStyle: w,
31
31
  ...E
32
- } = b, e = y("card"), p = s && s.length ? /* @__PURE__ */ t("div", { className: `${e}-actions`, children: /* @__PURE__ */ t("div", { className: `${e}-actions-right`, children: s.map((r, F) => /* @__PURE__ */ t(
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(
33
33
  "span",
34
34
  {
35
35
  className: `${e}-actions-item`,
@@ -38,24 +38,24 @@ function D(v, N) {
38
38
  `action-${F}`
39
39
  )) }) }) : null;
40
40
  let f = !1, h = !1;
41
- const G = l.Children.map(
41
+ const G = n.Children.map(
42
42
  z,
43
43
  (r) => {
44
44
  if (r && r.type) {
45
- if (r.type === $)
45
+ if (r.type === C)
46
46
  f = !0;
47
47
  else if (r.type === u)
48
- return h = !0, l.cloneElement(r, { actionList: p });
48
+ return h = !0, n.cloneElement(r, { actionList: p });
49
49
  }
50
50
  return r;
51
51
  }
52
52
  );
53
- return /* @__PURE__ */ n(
53
+ return /* @__PURE__ */ l(
54
54
  "div",
55
55
  {
56
56
  ...E,
57
- ref: N,
58
- className: C(
57
+ ref: v,
58
+ className: $(
59
59
  e,
60
60
  `${e}-size-${S}`,
61
61
  {
@@ -68,31 +68,31 @@ function D(v, N) {
68
68
  M
69
69
  ),
70
70
  children: [
71
- a || i ? /* @__PURE__ */ n(
71
+ t || o ? /* @__PURE__ */ l(
72
72
  "div",
73
73
  {
74
- className: C(`${e}-header`, {
75
- [`${e}-header-no-title`]: !a
74
+ className: $(`${e}-header`, {
75
+ [`${e}-header-no-title`]: !t
76
76
  }),
77
77
  style: j,
78
78
  children: [
79
- a && /* @__PURE__ */ t("div", { className: `${e}-header-title`, children: a }),
80
- i && /* @__PURE__ */ t("div", { className: `${e}-header-extra`, children: i })
79
+ t && /* @__PURE__ */ a("div", { className: `${e}-header-title`, children: t }),
80
+ o && /* @__PURE__ */ a("div", { className: `${e}-header-extra`, children: o })
81
81
  ]
82
82
  }
83
83
  ) : null,
84
- m ? /* @__PURE__ */ t("div", { className: `${e}-cover`, children: m }) : null,
85
- /* @__PURE__ */ n("div", { className: `${e}-body`, style: w, children: [
86
- c ? x || /* @__PURE__ */ t(A, {}) : G,
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
87
  h ? null : p
88
88
  ] })
89
89
  ]
90
90
  }
91
91
  );
92
92
  }
93
- const H = l.forwardRef(D), d = H;
93
+ const H = n.forwardRef(D), d = H;
94
94
  d.Meta = u;
95
- d.Grid = $;
95
+ d.Grid = C;
96
96
  d.displayName = "Card";
97
97
  export {
98
98
  d as default
package/carousel/Arrow.js CHANGED
@@ -4,10 +4,10 @@ import x from "@unicom-cloud/icons/IconUiLeft";
4
4
  import u from "@unicom-cloud/icons/IconUiRight";
5
5
  import C from "@unicom-cloud/icons/IconUiUp";
6
6
  import b, { useContext as y } from "react";
7
- import { a as I } from "../chunk/CNcLypMY.js";
8
- import { u as P } from "../chunk/XTEsYGuF.js";
9
- import { p as $ } from "../chunk/CUFsOxJ2.js";
10
- function g(i, c) {
7
+ import { a as N } from "../chunk/CQvM33Vg.js";
8
+ import { u as $ } from "../chunk/BYdIoY50.js";
9
+ import I from "@unicom-cloud/utils/class-name";
10
+ function P(i, c) {
11
11
  const {
12
12
  className: l,
13
13
  direction: t = "horizontal",
@@ -15,7 +15,7 @@ function g(i, c) {
15
15
  prev: n,
16
16
  next: s,
17
17
  icons: o
18
- } = i, a = P(), { getPrefixCls: p } = y(I), e = p("carousel"), f = $(
18
+ } = i, a = $(), { getPrefixCls: p } = y(N), e = p("carousel"), f = I(
19
19
  `${e}-arrow`,
20
20
  {
21
21
  [`${e}-arrow-hover`]: m === "hover"
@@ -48,7 +48,7 @@ function g(i, c) {
48
48
  ] });
49
49
  }
50
50
  const K = b.forwardRef(
51
- g
51
+ P
52
52
  );
53
53
  export {
54
54
  K as default