@unicom-cloud/ui 0.8.77 → 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 (346) 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/style.css +1 -1
  261. package/switch/index.js +32 -33
  262. package/table/Table.js +5 -5
  263. package/table/index.js +1 -1
  264. package/tabs/Tab.js +4 -4
  265. package/tabs/TabContent.js +3 -3
  266. package/tabs/TabPane.js +11 -11
  267. package/tabs/index.js +2 -2
  268. package/tabs/util.js +1 -1
  269. package/tag/index.js +16 -16
  270. package/time-picker/Picker.js +50 -50
  271. package/time-picker/TimeColumn.js +8 -8
  272. package/time-picker/TimePicker.js +32 -32
  273. package/time-picker/util.js +1 -1
  274. package/timeline/Item.js +15 -15
  275. package/timeline/Timeline.js +24 -24
  276. package/tooltip/index.js +23 -23
  277. package/transfer/Item.js +4 -4
  278. package/transfer/List.js +4 -4
  279. package/transfer/index.js +4 -4
  280. package/tree/Animation.js +3 -3
  281. package/tree/Node.js +3 -3
  282. package/tree/NodeList.js +2 -2
  283. package/tree/Tree.js +4 -4
  284. package/tree/index.js +1 -1
  285. package/tree-select/List.js +2 -2
  286. package/tree-select/Select.js +8 -9
  287. package/tree-select/index.js +2 -2
  288. package/trigger/getPopupStyle.js +18 -19
  289. package/trigger/index.js +32 -33
  290. package/types/button/index.d.ts +2 -2
  291. package/types/color-picker/colors.d.ts +1 -1
  292. package/types/date-picker/util.d.ts +1 -1
  293. package/types/icon/index.d.ts +3 -1
  294. package/types/index.d.ts +1 -1
  295. package/types/menu/context.d.ts +1 -1
  296. package/typography/Base.js +33 -35
  297. package/typography/EditContent.js +16 -16
  298. package/typography/Ellipsis.js +24 -26
  299. package/typography/Operations.js +1 -1
  300. package/typography/Paragraph.js +8 -8
  301. package/typography/Typography.js +7 -7
  302. package/typography/index.js +1 -1
  303. package/upload/TriggerNode.js +8 -8
  304. package/upload/Upload.js +64 -65
  305. package/upload/Uploader.js +12 -12
  306. package/upload/request.js +13 -12
  307. package/upload/request_.js +5 -6
  308. package/utils/PqbCSSTransition.js +1 -1
  309. package/utils/caseName.js +4 -3
  310. package/utils/className.js +4 -3
  311. package/utils/constant.js +3 -3
  312. package/utils/contextHolder.js +1 -1
  313. package/utils/copy.js +5 -4
  314. package/utils/fileToURL.js +4 -3
  315. package/utils/index.js +261 -298
  316. package/utils/is.js +78 -115
  317. package/utils/keyboardCode.js +4 -26
  318. package/utils/math.js +10 -32
  319. package/utils/react19Adapter.js +1 -1
  320. package/utils/reactDOM.js +1 -1
  321. package/utils/saveAs.js +4 -3
  322. package/utils/screenfull.js +4 -3
  323. package/utils/scrollIntoView.js +1 -1
  324. package/utils/setDarkTheme.js +1 -1
  325. package/utils/tree.js +7 -83
  326. package/utils/tween.js +1 -1
  327. package/utils/validate.js +1 -1
  328. package/verification-code/VerificationCode.js +25 -25
  329. package/version/index.js +1 -1
  330. package/virtual-list/VirtualList.js +1 -1
  331. package/watermark/Watermark.js +8 -8
  332. package/chunk/ATwvJ8j2.js +0 -6
  333. package/chunk/BFmckYou.js +0 -25
  334. package/chunk/Bl7BnD1R.js +0 -119
  335. package/chunk/Bmvhjhzq.js +0 -24
  336. package/chunk/BrOW642m.js +0 -130
  337. package/chunk/C0pRaDCf.js +0 -96
  338. package/chunk/CBzE-PUr.js +0 -23
  339. package/chunk/CUFsOxJ2.js +0 -10
  340. package/chunk/Ce1j9KTi.js +0 -6
  341. package/chunk/D0Dlbc2g.js +0 -41
  342. package/chunk/DRTWRsgI.js +0 -34
  343. package/chunk/DeV0v__J.js +0 -20
  344. package/chunk/DohlrJ4S.js +0 -50
  345. package/chunk/XTEsYGuF.js +0 -17
  346. package/chunk/yl4BU7Sd.js +0 -1068
@@ -3,9 +3,9 @@ import C from "lodash/isArray";
3
3
  import V from "lodash/isNumber";
4
4
  import q from "lodash/isPlainObject";
5
5
  import { useContext as B, useState as G, useRef as J, useEffect as K, Fragment as x } from "react";
6
- import { a as Q } from "../chunk/CNcLypMY.js";
6
+ import { a as Q } from "../chunk/CQvM33Vg.js";
7
7
  import { u as U } from "../chunk/BFTV6myl.js";
8
- import { p as W } from "../chunk/CUFsOxJ2.js";
8
+ import W from "@unicom-cloud/utils/class-name";
9
9
  import { responsiveObserve as P, responsiveArray as k } from "../utils/responsiveObserve.js";
10
10
  const z = (f) => C(f) ? f.reduce((h, p) => h + (p.span || 1), 0) : 0, X = {
11
11
  layout: "horizontal",
@@ -17,7 +17,7 @@ function Y(f) {
17
17
  getPrefixCls: h,
18
18
  componentConfig: p,
19
19
  rtl: I,
20
- size: v
20
+ size: d
21
21
  } = B(Q), w = U(
22
22
  f,
23
23
  X,
@@ -26,12 +26,12 @@ function Y(f) {
26
26
  style: D,
27
27
  className: L,
28
28
  column: m,
29
- title: N,
29
+ title: v,
30
30
  data: b,
31
31
  border: O,
32
32
  labelStyle: y,
33
33
  valueStyle: $,
34
- colon: d,
34
+ colon: N,
35
35
  layout: u,
36
36
  size: g,
37
37
  tableLayout: j
@@ -47,55 +47,55 @@ function Y(f) {
47
47
  }), () => {
48
48
  P.unsubscribe(S.current);
49
49
  }), []);
50
- let l = 3;
51
- q(m) && (l = m[A] || 3), V(m) && m > 0 && (l = m);
50
+ let a = 3;
51
+ q(m) && (a = m[A] || 3), V(m) && m > 0 && (a = m);
52
52
  const o = [];
53
- if (C(b) && b.length > 0 && l) {
53
+ if (C(b) && b.length > 0 && a) {
54
54
  b.forEach((e) => {
55
- const i = o[o.length - 1], a = z(i);
56
- a === 0 ? o.push([
55
+ const i = o[o.length - 1], l = z(i);
56
+ l === 0 ? o.push([
57
57
  {
58
58
  ...e,
59
- span: e.span ? e.span > l ? l : e.span : 1
59
+ span: e.span ? e.span > a ? a : e.span : 1
60
60
  }
61
- ]) : a === l ? o.push([
61
+ ]) : l === a ? o.push([
62
62
  {
63
63
  ...e,
64
- span: e.span ? e.span > l ? l : e.span : 1
64
+ span: e.span ? e.span > a ? a : e.span : 1
65
65
  }
66
66
  ]) : i.push({
67
67
  ...e,
68
- span: e.span ? e.span + a > l ? l - a : e.span : 1
68
+ span: e.span ? e.span + l > a ? a - l : e.span : 1
69
69
  });
70
70
  });
71
71
  const n = o[o.length - 1], t = z(n);
72
- t < l && (n[n.length - 1].span = n[n.length - 1].span + l - t);
72
+ t < a && (n[n.length - 1].span = n[n.length - 1].span + a - t);
73
73
  }
74
74
  function F(n, t) {
75
75
  return /* @__PURE__ */ c(x, { children: [
76
76
  /* @__PURE__ */ r("tr", { className: `${s}-row`, children: n.map((e, i) => {
77
- const a = e.span > 1 ? { colSpan: e.span } : {};
77
+ const l = e.span > 1 ? { colSpan: e.span } : {};
78
78
  return /* @__PURE__ */ c(
79
79
  "td",
80
80
  {
81
81
  className: `${s}-item-label`,
82
- ...a,
82
+ ...l,
83
83
  style: y,
84
84
  children: [
85
85
  e.label,
86
- d
86
+ N
87
87
  ]
88
88
  },
89
89
  `${e.key || i}_label`
90
90
  );
91
91
  }) }),
92
92
  /* @__PURE__ */ r("tr", { className: `${s}-row`, children: n.map((e, i) => {
93
- const a = e.span > 1 ? { colSpan: e.span } : {};
93
+ const l = e.span > 1 ? { colSpan: e.span } : {};
94
94
  return /* @__PURE__ */ r(
95
95
  "td",
96
96
  {
97
97
  className: `${s}-item-value`,
98
- ...a,
98
+ ...l,
99
99
  style: $,
100
100
  children: e.value
101
101
  },
@@ -106,17 +106,17 @@ function Y(f) {
106
106
  }
107
107
  function H(n, t) {
108
108
  return /* @__PURE__ */ r("tr", { className: `${s}-row`, children: n.map((e, i) => {
109
- const a = e.span > 1 ? { colSpan: e.span * 2 - 1 } : {};
109
+ const l = e.span > 1 ? { colSpan: e.span * 2 - 1 } : {};
110
110
  return /* @__PURE__ */ c(x, { children: [
111
111
  /* @__PURE__ */ c("td", { className: `${s}-item-label`, style: y, children: [
112
112
  e.label,
113
- d
113
+ N
114
114
  ] }),
115
115
  /* @__PURE__ */ r(
116
116
  "td",
117
117
  {
118
118
  className: `${s}-item-value`,
119
- ...a,
119
+ ...l,
120
120
  style: $,
121
121
  children: e.value
122
122
  }
@@ -126,11 +126,11 @@ function Y(f) {
126
126
  }
127
127
  function M(n, t) {
128
128
  return /* @__PURE__ */ r("tr", { className: `${s}-row`, children: n.map((e, i) => {
129
- const a = e.span > 1 ? { colSpan: e.span } : {};
129
+ const l = e.span > 1 ? { colSpan: e.span } : {};
130
130
  return /* @__PURE__ */ c(
131
131
  "td",
132
132
  {
133
- ...a,
133
+ ...l,
134
134
  className: `${s}-item`,
135
135
  children: [
136
136
  /* @__PURE__ */ c(
@@ -140,7 +140,7 @@ function Y(f) {
140
140
  style: y,
141
141
  children: [
142
142
  e.label,
143
- d
143
+ N
144
144
  ]
145
145
  }
146
146
  ),
@@ -166,14 +166,14 @@ function Y(f) {
166
166
  {
167
167
  [`${s}-border`]: O,
168
168
  [`${s}-layout-${u}`]: u,
169
- [`${s}-size-${g || v}`]: g || v,
169
+ [`${s}-size-${g || d}`]: g || d,
170
170
  [`${s}-table-layout-fixed`]: j === "fixed",
171
171
  [`${s}-rtl`]: I
172
172
  },
173
173
  L
174
174
  );
175
175
  return /* @__PURE__ */ c("div", { className: T, style: D, children: [
176
- N && /* @__PURE__ */ r("div", { className: `${s}-title`, children: N }),
176
+ v && /* @__PURE__ */ r("div", { className: `${s}-title`, children: v }),
177
177
  /* @__PURE__ */ r("div", { className: `${s}-body`, children: /* @__PURE__ */ r("table", { className: `${s}-table`, cellPadding: 0, cellSpacing: 0, children: /* @__PURE__ */ r("tbody", { children: o.map((n, t) => R(n, t)) }) }) })
178
178
  ] });
179
179
  }
package/divider/index.js CHANGED
@@ -1,25 +1,25 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as x, useContext as u } from "react";
3
- import { a as $ } from "../chunk/CNcLypMY.js";
4
- import { u as h } from "../chunk/BFTV6myl.js";
5
- import { p as v } from "../chunk/CUFsOxJ2.js";
6
- const C = {
2
+ import { forwardRef as x, useContext as $ } from "react";
3
+ import { a as u } from "../chunk/CQvM33Vg.js";
4
+ import { u as N } from "../chunk/BFTV6myl.js";
5
+ import h from "@unicom-cloud/utils/class-name";
6
+ const v = {
7
7
  type: "horizontal",
8
8
  orientation: "center"
9
9
  };
10
- function N(a, n) {
11
- const { getPrefixCls: l, componentConfig: r } = u($), p = h(
10
+ function C(a, n) {
11
+ const { getPrefixCls: l, componentConfig: r } = $(u), m = N(
12
12
  a,
13
- C,
13
+ v,
14
14
  r == null ? void 0 : r.Divider
15
- ), { children: e, style: m, className: c, type: s, orientation: o, ...d } = p, t = l("divider"), f = v(
15
+ ), { children: e, style: c, className: p, type: o, orientation: s, ...d } = m, t = l("divider"), f = h(
16
16
  t,
17
- `${t}-${s}`,
17
+ `${t}-${o}`,
18
18
  {
19
19
  [`${t}-with-text`]: e,
20
- [`${t}-with-text-${o}`]: e && o
20
+ [`${t}-with-text-${s}`]: e && s
21
21
  },
22
- c
22
+ p
23
23
  );
24
24
  return /* @__PURE__ */ i(
25
25
  "div",
@@ -27,13 +27,13 @@ function N(a, n) {
27
27
  role: "separator",
28
28
  ref: n,
29
29
  className: f,
30
- style: m,
30
+ style: c,
31
31
  ...d,
32
- children: e && s === "horizontal" ? /* @__PURE__ */ i("span", { className: `${t}-text ${t}-text-${o}`, children: e }) : null
32
+ children: e && o === "horizontal" ? /* @__PURE__ */ i("span", { className: `${t}-text ${t}-text-${s}`, children: e }) : null
33
33
  }
34
34
  );
35
35
  }
36
- const y = x(N);
36
+ const y = x(C);
37
37
  y.displayName = "Divider";
38
38
  export {
39
39
  y as default
package/draggable/Item.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as T } from "react/jsx-runtime";
2
2
  import { useRef as P, useState as m, useEffect as $ } from "react";
3
- import { p as S } from "../chunk/CUFsOxJ2.js";
4
- function R(h) {
3
+ import S from "@unicom-cloud/utils/class-name";
4
+ function N(h) {
5
5
  const {
6
6
  prefixCls: r,
7
7
  style: v,
@@ -10,11 +10,11 @@ function R(h) {
10
10
  disabled: x,
11
11
  droppable: i = !0,
12
12
  onDrop: s,
13
- onDragStart: g,
14
- onDragEnd: l,
13
+ onDragStart: l,
14
+ onDragEnd: g,
15
15
  onDragOver: f,
16
16
  onDragLeave: p
17
- } = h, D = P(null), u = P(null), [a, o] = m("none"), [O, n] = m(!1), [d, c] = m(null);
17
+ } = h, D = P(null), u = P(null), [a, o] = m("none"), [O, n] = m(!1), [c, d] = m(null);
18
18
  return $(() => () => {
19
19
  u.current && clearTimeout(u.current);
20
20
  }, []), $(() => {
@@ -27,7 +27,7 @@ function R(h) {
27
27
  style: v,
28
28
  className: S(`${r}-item`, {
29
29
  [`${r}-item-${a}`]: a !== "none",
30
- [`${r}-item-gap-${d}`]: d,
30
+ [`${r}-item-gap-${c}`]: c,
31
31
  [`${r}-item-disabled`]: x,
32
32
  [`${r}-item-dragover`]: O
33
33
  }),
@@ -38,16 +38,16 @@ function R(h) {
38
38
  } catch (e) {
39
39
  console.error(e);
40
40
  }
41
- g == null || g(t);
41
+ l == null || l(t);
42
42
  },
43
43
  onDragEnd: (t) => {
44
- t.stopPropagation(), n(!1), o("dragged"), l == null || l(t);
44
+ t.stopPropagation(), n(!1), o("dragged"), g == null || g(t);
45
45
  },
46
46
  onDragOver: (t) => {
47
47
  if (i) {
48
48
  t.stopPropagation(), t.preventDefault();
49
49
  const e = D.current.getBoundingClientRect();
50
- c(
50
+ d(
51
51
  w === "vertical" ? t.pageY > window.pageYOffset + e.top + e.height / 2 ? "bottom" : "top" : t.pageX > window.pageXOffset + e.left + e.width / 2 ? "right" : "left"
52
52
  ), n(!0), f == null || f(t);
53
53
  }
@@ -56,12 +56,12 @@ function R(h) {
56
56
  i && (t.stopPropagation(), n(!1), p == null || p(t));
57
57
  },
58
58
  onDrop: (t) => {
59
- i && (t.stopPropagation(), t.preventDefault(), n(!1), c(null), o("none"), s == null || s(t, d));
59
+ i && (t.stopPropagation(), t.preventDefault(), n(!1), d(null), o("none"), s == null || s(t, c));
60
60
  },
61
61
  children: b
62
62
  }
63
63
  );
64
64
  }
65
65
  export {
66
- R as default
66
+ N as default
67
67
  };
@@ -1,27 +1,27 @@
1
- import { jsx as s } from "react/jsx-runtime";
1
+ import { jsx as l } from "react/jsx-runtime";
2
2
  import x, { useContext as I, useState as C } from "react";
3
- import { a as D } from "../chunk/CNcLypMY.js";
4
- import { p as h } from "../chunk/CUFsOxJ2.js";
5
- import v from "./Item.js";
3
+ import { a as D } from "../chunk/CQvM33Vg.js";
4
+ import N from "@unicom-cloud/utils/class-name";
5
+ import h from "./Item.js";
6
6
  function R(m) {
7
7
  const { getPrefixCls: c } = I(D), r = c("draggable"), {
8
8
  className: i,
9
- children: p,
10
- direction: f = "vertical",
9
+ children: f,
10
+ direction: p = "vertical",
11
11
  onIndexChange: t,
12
12
  itemWrapperStyle: d
13
- } = m, [g, n] = C(null);
14
- return /* @__PURE__ */ s("div", { className: h(r, i), children: x.Children.map(p, (u, e) => /* @__PURE__ */ s(
15
- v,
13
+ } = m, [g, a] = C(null);
14
+ return /* @__PURE__ */ l("div", { className: N(r, i), children: x.Children.map(f, (u, e) => /* @__PURE__ */ l(
15
+ h,
16
16
  {
17
17
  style: d,
18
18
  prefixCls: r,
19
- direction: f,
20
- onDragStart: () => n(e),
21
- onDragEnd: () => n(null),
22
- onDrop: (S, o) => {
23
- const a = g, l = o === "left" || o === "top" ? e : e + 1;
24
- a !== l && (t == null || t(l, a));
19
+ direction: p,
20
+ onDragStart: () => a(e),
21
+ onDragEnd: () => a(null),
22
+ onDrop: (v, n) => {
23
+ const o = g, s = n === "left" || n === "top" ? e : e + 1;
24
+ o !== s && (t == null || t(s, o));
25
25
  },
26
26
  children: u
27
27
  }
package/drawer/Drawer.js CHANGED
@@ -1,18 +1,18 @@
1
- import { jsxs as N, Fragment as ve, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as b, Fragment as ve, jsx as n } from "react/jsx-runtime";
2
2
  import Ie from "@unicom-cloud/icons/IconUiClose";
3
3
  import Pe from "lodash/isFunction";
4
4
  import $e, { useContext as Be, useRef as K, useState as d, useCallback as Ee, useMemo as De, useImperativeHandle as Re, useEffect as U } from "react";
5
5
  import _ from "../button/index.js";
6
- import { a as Se, I as Oe, b as A } from "../chunk/CNcLypMY.js";
6
+ import { a as Se, I as Oe, b as A } from "../chunk/CQvM33Vg.js";
7
7
  import { u as Te } from "../chunk/BFTV6myl.js";
8
8
  import { u as ze } from "../chunk/DU1RCDfh.js";
9
9
  import Fe from "../portal/index.js";
10
- import { P as J } from "../chunk/BpYX5PN4.js";
11
- import { p as g } from "../chunk/CUFsOxJ2.js";
10
+ import { P as J } from "../chunk/NPajzdOv.js";
11
+ import g from "@unicom-cloud/utils/class-name";
12
12
  import { isServerRendering as je, contains as He } from "../utils/dom.js";
13
- import { o as Me } from "../chunk/BrOW642m.js";
13
+ import { Esc as Me } from "@unicom-cloud/utils/constant/keyboardCode";
14
14
  import { o as Ze } from "../chunk/BKKEev13.js";
15
- import { f as Le } from "../chunk/Cc_-i0o_.js";
15
+ import { f as Le } from "../chunk/BZ3igxQN.js";
16
16
  const We = {
17
17
  placement: "right",
18
18
  width: 250,
@@ -36,11 +36,11 @@ function qe(Q, V) {
36
36
  children: ne,
37
37
  wrapClassName: oe,
38
38
  maskStyle: re,
39
- headerStyle: ie,
40
- bodyStyle: le,
39
+ headerStyle: se,
40
+ bodyStyle: ie,
41
41
  title: p,
42
- footer: s,
43
- okText: se,
42
+ footer: l,
43
+ okText: le,
44
44
  cancelText: ae,
45
45
  width: ce,
46
46
  height: de,
@@ -62,7 +62,7 @@ function qe(Q, V) {
62
62
  zIndex: P,
63
63
  closeIcon: $,
64
64
  ...Ce
65
- } = t, l = K(null), B = K(null), [ke, ye] = d(!1), [k, be] = d(), o = X("drawer"), [E, y] = d(!1), [Ke, D] = d(!1), R = /* @__PURE__ */ N(ve, { children: [
65
+ } = t, i = K(null), B = K(null), [ke, ye] = d(!1), [k, Ne] = d(), o = X("drawer"), [E, y] = d(!1), [Ke, D] = d(!1), R = /* @__PURE__ */ b(ve, { children: [
66
66
  ((S = t.cancelButton) == null ? void 0 : S.visible) !== !1 && /* @__PURE__ */ n(
67
67
  _,
68
68
  {
@@ -80,31 +80,31 @@ function qe(Q, V) {
80
80
  onClick: t.onOk,
81
81
  ...he,
82
82
  ...(M = t.okButton) == null ? void 0 : M.props,
83
- children: ((L = (Z = t.okButton) == null ? void 0 : Z.props) == null ? void 0 : L.children) || ((W = t.okButton) == null ? void 0 : W.label) || ((q = t.okButton) == null ? void 0 : q.text) || se || w.Drawer.okText
83
+ children: ((L = (Z = t.okButton) == null ? void 0 : Z.props) == null ? void 0 : L.children) || ((W = t.okButton) == null ? void 0 : W.label) || ((q = t.okButton) == null ? void 0 : q.text) || le || w.Drawer.okText
84
84
  }
85
85
  )
86
- ] }), b = Ee(() => {
86
+ ] }), N = Ee(() => {
87
87
  const e = a == null ? void 0 : a();
88
88
  return Le(e) || document.body;
89
- }, [a]), Ne = De(() => !je && b() === document.body, [
89
+ }, [a]), be = De(() => !je && N() === document.body, [
90
90
  ke,
91
- b()
91
+ N()
92
92
  // 潘启宝修改于2024年11月 4日 星期一 21时22分11秒 CST
93
93
  ]);
94
- ze(b, { hidden: (r || E) && f }), Re(V, () => l.current), U(() => {
94
+ ze(N, { hidden: (r || E) && f }), Re(V, () => i.current), U(() => {
95
95
  r && t.getPopupContainer && ye(!0);
96
96
  }, []), U(() => {
97
- var e, i;
98
- r && He(document.body, l.current) && ((i = (e = l.current) == null ? void 0 : e.focus) == null || i.call(e));
97
+ var e, s;
98
+ r && He(document.body, i.current) && ((s = (e = i.current) == null ? void 0 : e.focus) == null || s.call(e));
99
99
  }, [r]);
100
100
  const ge = () => {
101
101
  var e;
102
- if (r && k === void 0 && l.current) {
103
- const i = +((e = window.getComputedStyle(l.current, null)) == null ? void 0 : e.zIndex);
104
- isNaN(i) || be(i + 1);
102
+ if (r && k === void 0 && i.current) {
103
+ const s = +((e = window.getComputedStyle(i.current, null)) == null ? void 0 : e.zIndex);
104
+ isNaN(s) || Ne(s + 1);
105
105
  }
106
- }, we = /* @__PURE__ */ N("div", { className: `${o}-scroll`, tabIndex: -1, children: [
107
- p !== null && /* @__PURE__ */ n("div", { className: `${o}-header`, style: ie, children: /* @__PURE__ */ n("div", { className: `${o}-header-title`, children: p }) }),
106
+ }, we = /* @__PURE__ */ b("div", { className: `${o}-scroll`, tabIndex: -1, children: [
107
+ p !== null && /* @__PURE__ */ n("div", { className: `${o}-header`, style: se, children: /* @__PURE__ */ n("div", { className: `${o}-header-title`, children: p }) }),
108
108
  ue && ($ !== void 0 ? /* @__PURE__ */ n("span", { onClick: t.onCancel, className: `${o}-close-icon`, children: $ }) : /* @__PURE__ */ n(
109
109
  Oe,
110
110
  {
@@ -119,9 +119,9 @@ function qe(Q, V) {
119
119
  ref: (e) => {
120
120
  B.current = e, ge();
121
121
  },
122
- style: le,
122
+ style: ie,
123
123
  className: g(`${o}-content`, {
124
- [`${o}-content-nofooter`]: s === null,
124
+ [`${o}-content-nofooter`]: l === null,
125
125
  [`${o}-content-noheader`]: p === null
126
126
  }),
127
127
  children: /* @__PURE__ */ n(
@@ -136,7 +136,7 @@ function qe(Q, V) {
136
136
  )
137
137
  }
138
138
  ),
139
- s !== null && /* @__PURE__ */ n("div", { className: `${o}-footer`, children: Pe(s) ? s(R) : s || R })
139
+ l !== null && /* @__PURE__ */ n("div", { className: `${o}-footer`, children: Pe(l) ? l(R) : l || R })
140
140
  ] });
141
141
  return /* @__PURE__ */ n(
142
142
  Fe,
@@ -144,11 +144,11 @@ function qe(Q, V) {
144
144
  forceRender: !h,
145
145
  visible: r,
146
146
  getContainer: a,
147
- children: /* @__PURE__ */ N(
147
+ children: /* @__PURE__ */ b(
148
148
  "div",
149
149
  {
150
150
  ...Ze(Ce, ["onCancel", "onOk"]),
151
- ref: l,
151
+ ref: i,
152
152
  onKeyDown: (e) => {
153
153
  var G;
154
154
  e.key === Me.key && fe && r && ((G = t.onCancel) == null || G.call(t, e));
@@ -161,7 +161,7 @@ function qe(Q, V) {
161
161
  },
162
162
  oe
163
163
  ),
164
- style: Ne ? { position: "fixed", zIndex: P } : { zIndex: P || "inherit", position: "absolute" },
164
+ style: be ? { position: "fixed", zIndex: P } : { zIndex: P || "inherit", position: "absolute" },
165
165
  children: [
166
166
  f ? /* @__PURE__ */ n(
167
167
  J,
@@ -178,8 +178,8 @@ function qe(Q, V) {
178
178
  className: `${o}-mask`,
179
179
  style: re,
180
180
  onClick: (e) => {
181
- var i;
182
- !E && me && ((i = t.onCancel) == null || i.call(t, e));
181
+ var s;
182
+ !E && me && ((s = t.onCancel) == null || s.call(t, e));
183
183
  }
184
184
  }
185
185
  )
@@ -3,7 +3,7 @@ import "@unicom-cloud/icons/IconUiMore";
3
3
  import "react";
4
4
  import { DropdownButton as f } from "./index.js";
5
5
  import "../button/index.js";
6
- import "../chunk/CNcLypMY.js";
6
+ import "../chunk/CQvM33Vg.js";
7
7
  import "../chunk/BFTV6myl.js";
8
8
  import "../chunk/ClqoGc3r.js";
9
9
  export {
package/dropdown/index.js CHANGED
@@ -1,25 +1,25 @@
1
- import { jsx as s, jsxs as S } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as S } from "react/jsx-runtime";
2
2
  import A from "lodash/get";
3
3
  import l, { forwardRef as W, useContext as z, useRef as j } from "react";
4
- import { a as F } from "../chunk/CNcLypMY.js";
4
+ import { a as F } from "../chunk/CQvM33Vg.js";
5
5
  import { u as G } from "../chunk/BFTV6myl.js";
6
- import { u as X } from "../chunk/DeV0v__J.js";
6
+ import { u as X } from "../chunk/CXPOj2uy.js";
7
7
  import Y, { EventsByTriggerNeed as Z } from "../trigger/index.js";
8
- import { p as U } from "../chunk/CUFsOxJ2.js";
9
- import { s as oo } from "../chunk/DAAff-FT.js";
8
+ import U from "@unicom-cloud/utils/class-name";
9
+ import { s as oo } from "../chunk/ClM74To2.js";
10
10
  import { o as eo } from "../chunk/BKKEev13.js";
11
11
  import { a as L, p as to } from "../chunk/ClqoGc3r.js";
12
- import { f as no } from "../chunk/Cc_-i0o_.js";
12
+ import { f as no } from "../chunk/BZ3igxQN.js";
13
13
  import Q from "@unicom-cloud/icons/IconUiMore";
14
14
  import k from "../button/index.js";
15
15
  const ro = {
16
16
  position: "br",
17
17
  trigger: "hover",
18
18
  type: "default",
19
- icon: /* @__PURE__ */ s(Q, {}),
19
+ icon: /* @__PURE__ */ i(Q, {}),
20
20
  unmountOnExit: !0
21
21
  };
22
- function io(x, R) {
22
+ function so(x, R) {
23
23
  const { componentConfig: u } = z(F), d = G(
24
24
  x,
25
25
  ro,
@@ -32,15 +32,15 @@ function io(x, R) {
32
32
  position: g = "br",
33
33
  type: b = "default",
34
34
  size: n,
35
- icon: M = /* @__PURE__ */ s(Q, {}),
35
+ icon: M = /* @__PURE__ */ i(Q, {}),
36
36
  onClick: f,
37
37
  buttonProps: V,
38
38
  rightButtonProps: r,
39
39
  // 潘启宝添加
40
40
  buttonsRender: C,
41
- ...i
41
+ ...s
42
42
  } = d;
43
- let p = /* @__PURE__ */ s(
43
+ let p = /* @__PURE__ */ i(
44
44
  k,
45
45
  {
46
46
  disabled: t,
@@ -50,7 +50,7 @@ function io(x, R) {
50
50
  ...V,
51
51
  children: B
52
52
  }
53
- ), e = /* @__PURE__ */ s(
53
+ ), e = /* @__PURE__ */ i(
54
54
  k,
55
55
  {
56
56
  disabled: t,
@@ -71,15 +71,15 @@ function io(x, R) {
71
71
  ...L(d),
72
72
  children: [
73
73
  p,
74
- /* @__PURE__ */ s(
74
+ /* @__PURE__ */ i(
75
75
  O,
76
76
  {
77
77
  disabled: t,
78
78
  position: g,
79
- ...i,
79
+ ...s,
80
80
  triggerProps: {
81
81
  disabled: h,
82
- ...i == null ? void 0 : i.triggerProps
82
+ ...s == null ? void 0 : s.triggerProps
83
83
  },
84
84
  children: e
85
85
  }
@@ -88,9 +88,9 @@ function io(x, R) {
88
88
  }
89
89
  );
90
90
  }
91
- const q = W(io);
91
+ const q = W(so);
92
92
  q.displayName = "DropdownButton";
93
- function so(x, R) {
93
+ function io(x, R) {
94
94
  const u = {
95
95
  position: "bl",
96
96
  trigger: "hover",
@@ -113,14 +113,14 @@ function so(x, R) {
113
113
  unmountOnExit: V,
114
114
  triggerProps: r,
115
115
  getPopupContainer: C,
116
- onVisibleChange: i,
116
+ onVisibleChange: s,
117
117
  ...p
118
118
  } = t, e = w("dropdown"), h = j(null), [E, H] = X(!1, {
119
119
  defaultValue: t.defaultPopupVisible,
120
120
  value: t.popupVisible
121
- }), _ = () => l.Children.only(b || /* @__PURE__ */ s("span", {})), N = (o) => {
121
+ }), _ = () => l.Children.only(b || /* @__PURE__ */ i("span", {})), N = (o) => {
122
122
  var c;
123
- H(o), i == null || i(o), (c = r == null ? void 0 : r.onVisibleChange) == null || c.call(r, o);
123
+ H(o), s == null || s(o), (c = r == null ? void 0 : r.onVisibleChange) == null || c.call(r, o);
124
124
  }, J = (o) => {
125
125
  o !== E && N(o);
126
126
  }, K = () => {
@@ -154,7 +154,7 @@ function so(x, R) {
154
154
  }
155
155
  return o;
156
156
  }, v = j();
157
- return /* @__PURE__ */ s(
157
+ return /* @__PURE__ */ i(
158
158
  Y,
159
159
  {
160
160
  ref: h,
@@ -192,7 +192,7 @@ function so(x, R) {
192
192
  }
193
193
  );
194
194
  }
195
- const po = l.forwardRef(so), O = po;
195
+ const po = l.forwardRef(io), O = po;
196
196
  O.displayName = "Dropdown";
197
197
  O.Button = q;
198
198
  export {
package/empty/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@unicom-cloud/icons/IconUiEmpty";
3
3
  import "react";
4
- import { E as e } from "../chunk/CNcLypMY.js";
4
+ import { E as e } from "../chunk/CQvM33Vg.js";
5
5
  import "../chunk/BFTV6myl.js";
6
- import "../chunk/CUFsOxJ2.js";
6
+ import "@unicom-cloud/utils/class-name";
7
7
  export {
8
8
  e as default
9
9
  };