@unicom-cloud/ui 0.8.69 → 0.8.71

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 (274) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +2 -2
  3. package/AutoComplete.js +1 -1
  4. package/BackTop.js +2 -2
  5. package/Badge.js +2 -2
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +1 -1
  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 +1 -1
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +1 -1
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +1 -1
  20. package/Divider.js +1 -1
  21. package/Draggable.js +1 -1
  22. package/Dropdown.js +2 -2
  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 +1 -1
  31. package/Mentions.js +1 -1
  32. package/Menu.js +1 -1
  33. package/Message.js +2 -2
  34. package/Modal.js +1 -1
  35. package/Notice.js +2 -2
  36. package/Notification.js +2 -2
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Popconfirm.js +1 -1
  40. package/Popover.js +1 -1
  41. package/Progress.js +1 -1
  42. package/Radio.js +1 -1
  43. package/Rate.js +1 -1
  44. package/ResizeBox.js +1 -1
  45. package/Result.js +1 -1
  46. package/Skeleton.js +1 -1
  47. package/Slider.js +2 -2
  48. package/Space.js +1 -1
  49. package/SpeechSynthesis.js +3 -3
  50. package/Spin.js +1 -1
  51. package/Statistic.js +1 -1
  52. package/Steps.js +1 -1
  53. package/Switch.js +2 -2
  54. package/Table.js +1 -1
  55. package/Tabs.js +1 -1
  56. package/Tag.js +1 -1
  57. package/Tooltip.js +1 -1
  58. package/Transfer.js +1 -1
  59. package/Tree.js +1 -1
  60. package/Trigger.js +3 -3
  61. package/affix/index.js +1 -1
  62. package/alert/index.js +2 -2
  63. package/anchor/Anchor.js +1 -1
  64. package/anchor/Link.js +1 -1
  65. package/auto-complete/index.js +1 -1
  66. package/avatar/Avatar.js +1 -1
  67. package/avatar/Group.js +1 -1
  68. package/back-top/index.js +2 -2
  69. package/badge/Count.js +1 -1
  70. package/badge/index.js +2 -2
  71. package/breadcrumb/index.js +2 -2
  72. package/button/Group.js +1 -1
  73. package/button/index.js +1 -1
  74. package/calendar/index.js +2 -2
  75. package/card/Grid.js +1 -1
  76. package/card/Meta.js +1 -1
  77. package/card/index.js +1 -1
  78. package/carousel/Arrow.js +1 -1
  79. package/carousel/Indicator.js +1 -1
  80. package/carousel/index.js +1 -1
  81. package/cascader/Cascader.js +3 -3
  82. package/cascader/index.js +1 -1
  83. package/cascader/util.js +1 -1
  84. package/checkbox/Checkbox.js +2 -2
  85. package/checkbox/Group.js +2 -2
  86. package/checkbox/index.js +1 -1
  87. package/chunk/{CKyu68pu.js → 8V534cS3.js} +3 -3
  88. package/chunk/{CCv-5KFt.js → BHL-PzAD.js} +149 -152
  89. package/chunk/BL9DMeor.js +9 -0
  90. package/chunk/{Clo26EcR.js → BPD5iNdA.js} +16 -21
  91. package/chunk/BlElSWJg.js +257 -0
  92. package/chunk/{SSK90wgo.js → BzPNDYAX.js} +1 -1
  93. package/chunk/{CgurXnoy.js → C5X9bDyX.js} +4 -4
  94. package/chunk/C6AJxF7d.js +1820 -0
  95. package/chunk/CQTxhsUk.js +170 -0
  96. package/chunk/{C98ks5S8.js → CUs1AOCZ.js} +2 -2
  97. package/chunk/CZWGeRVA.js +715 -0
  98. package/chunk/{C48SmsN-.js → ClaNycDy.js} +27 -18
  99. package/chunk/{CpGBWmuz.js → D2DSUGNT.js} +2 -2
  100. package/chunk/{DonYzv30.js → DV7ywe_q.js} +1 -1
  101. package/chunk/{BjpUSKM3.js → Dm1NCTkX.js} +3 -3
  102. package/chunk/{BDB0LByj.js → EHx6bIK_.js} +3 -3
  103. package/chunk/{Bi4UkwOR.js → I1dqAgn_.js} +4 -4
  104. package/chunk/a3hR6zLw.js +12 -0
  105. package/chunk/{DzVH9IBy.js → fFjj2KuF.js} +1 -1
  106. package/chunk/{vmgkWLYf.js → pEI3aB9Z.js} +2 -2
  107. package/collapse/Collapse.js +2 -2
  108. package/collapse/Item.js +3 -3
  109. package/collapse/index.js +1 -1
  110. package/color-picker/ControlBar.js +1 -1
  111. package/color-picker/InputAlpha.js +1 -1
  112. package/color-picker/InputHex.js +1 -1
  113. package/color-picker/InputRgb.js +1 -1
  114. package/color-picker/Palette.js +1 -1
  115. package/color-picker/Panel.js +2 -2
  116. package/color-picker/index.js +1 -1
  117. package/comment/index.js +1 -1
  118. package/config-provider/ConfigProvider.js +1 -1
  119. package/config-provider/context.js +1 -1
  120. package/config-provider/index.js +2 -2
  121. package/copy/index.js +1 -1
  122. package/date-picker/Picker.js +2 -2
  123. package/date-picker/PickerRange.js +3 -3
  124. package/date-picker/index.js +1 -1
  125. package/descriptions/index.js +80 -75
  126. package/divider/index.js +1 -1
  127. package/draggable/index.js +1 -1
  128. package/drawer/Drawer.js +3 -3
  129. package/dropdown/Button.js +1 -1
  130. package/dropdown/index.js +2 -2
  131. package/empty/index.js +1 -1
  132. package/form/Form.js +1 -1
  133. package/form/FormItem.js +2 -2
  134. package/form/util.js +11 -11
  135. package/grid/Col.js +1 -1
  136. package/grid/Row.js +1 -1
  137. package/grid/grid-item.js +1 -1
  138. package/grid/grid.js +1 -1
  139. package/hooks/index.js +36 -34
  140. package/hooks/useListenResize.js +4 -0
  141. package/hooks/useOverrideRef.js +1 -1
  142. package/hooks/useUpdateEffect.js +1 -1
  143. package/hooks/useWindowSize.js +1 -1
  144. package/icon/index.js +1 -1
  145. package/icon-hover/index.js +1 -1
  146. package/image/Image.js +2 -2
  147. package/image/ImagePreview.js +5 -5
  148. package/image/ImagePreviewArrow.js +1 -1
  149. package/image/ImagePreviewGroup.js +1 -1
  150. package/image/index.js +1 -1
  151. package/index.js +582 -580
  152. package/input/Group.js +1 -1
  153. package/input/Input.js +1 -1
  154. package/input/InputElement.js +1 -1
  155. package/input/Password.js +1 -1
  156. package/input/Search.js +1 -1
  157. package/input/Textarea.js +1 -1
  158. package/input-number/index.js +1 -1
  159. package/input-tag/InputTag.js +2 -2
  160. package/layout/Content.js +1 -1
  161. package/layout/Footer.js +1 -1
  162. package/layout/Header.js +1 -1
  163. package/layout/Sider.js +1 -1
  164. package/layout/index.js +1 -1
  165. package/link/index.js +1 -1
  166. package/list/Item.js +1 -1
  167. package/list/Meta.js +1 -1
  168. package/list/index.js +1 -1
  169. package/locale/en-US.js +1 -1
  170. package/locale/tr-TR.js +1 -1
  171. package/mentions/index.js +1 -1
  172. package/menu/Menu.js +2 -2
  173. package/menu/OverflowWrap.js +1 -1
  174. package/menu/index.js +2 -2
  175. package/message/index.js +2 -2
  176. package/message/useMessage.js +1 -1
  177. package/modal/Confirm.js +2 -2
  178. package/modal/Modal.js +4 -4
  179. package/modal/index.js +1 -1
  180. package/notice/index.js +2 -2
  181. package/notification/index.js +2 -2
  182. package/notification/useNotification.js +1 -1
  183. package/notification/withNotification.js +43 -35
  184. package/overflow-ellipsis/OverflowItem.js +1 -1
  185. package/overflow-ellipsis/index.js +1 -1
  186. package/package.json +1 -1
  187. package/page-header/index.js +1 -1
  188. package/pagination/PageItem.js +1 -1
  189. package/pagination/PageJumper.js +1 -1
  190. package/pagination/PageOption.js +1 -1
  191. package/pagination/Pagination.js +1 -1
  192. package/picker/Input.js +1 -1
  193. package/picker/InputRange.js +1 -1
  194. package/popconfirm/index.js +1 -1
  195. package/popover/index.js +1 -1
  196. package/progress/index.js +1 -1
  197. package/radio/Group.js +2 -2
  198. package/radio/Radio.js +2 -2
  199. package/radio/index.js +2 -2
  200. package/rate/index.js +1 -1
  201. package/resize-box/ResizeTrigger.js +1 -1
  202. package/resize-box/Split.js +1 -1
  203. package/resize-box/SplitGroup.js +1 -1
  204. package/resize-box/index.js +1 -1
  205. package/result/index.js +1 -1
  206. package/select/Option.js +1 -1
  207. package/select/Select.js +2 -2
  208. package/select-view/Core.js +1 -1
  209. package/skeleton/index.js +1 -1
  210. package/slider/Button.js +1 -1
  211. package/slider/index.js +2 -2
  212. package/space/index.js +20 -20
  213. package/speech-synthesis/index.js +39 -39
  214. package/spin/DotLoading.js +1 -1
  215. package/spin/index.js +1 -1
  216. package/statistic/Countdown.js +1 -1
  217. package/statistic/index.js +1 -1
  218. package/steps/index.js +1 -1
  219. package/switch/index.js +2 -2
  220. package/table/Table.js +3 -3
  221. package/table/index.js +89 -81
  222. package/tabs/Tab.js +2 -2
  223. package/tabs/TabContent.js +2 -2
  224. package/tabs/TabPane.js +1 -1
  225. package/tabs/index.js +2 -2
  226. package/tag/index.js +1 -1
  227. package/time-picker/Picker.js +2 -2
  228. package/time-picker/TimePicker.js +1 -1
  229. package/timeline/Item.js +1 -1
  230. package/timeline/Timeline.js +1 -1
  231. package/tooltip/index.js +1 -1
  232. package/transfer/Item.js +2 -2
  233. package/transfer/List.js +2 -2
  234. package/transfer/index.js +1 -1
  235. package/tree/Animation.js +3 -3
  236. package/tree/Node.js +3 -3
  237. package/tree/NodeList.js +1 -1
  238. package/tree/Tree.js +2 -2
  239. package/tree/index.js +1 -1
  240. package/tree-select/Select.js +2 -2
  241. package/trigger/index.js +3 -3
  242. package/types/hooks/index.d.ts +1 -0
  243. package/types/hooks/useListenResize.d.ts +1 -0
  244. package/types/locale/en-US.d.ts +12 -12
  245. package/types/locale/tr-TR.d.ts +12 -12
  246. package/types/message/interface.d.ts +0 -1
  247. package/types/notification/interface.d.ts +0 -1
  248. package/types/space/index.d.ts +3 -4
  249. package/types/table/hook/useThResizable.d.ts +1 -1
  250. package/types/table/interface.d.ts +3 -1
  251. package/types/utils/react19Adapter.d.ts +1 -0
  252. package/typography/Base.js +2 -2
  253. package/typography/Ellipsis.js +11 -11
  254. package/typography/Paragraph.js +1 -1
  255. package/typography/Typography.js +1 -1
  256. package/typography/index.js +11 -11
  257. package/typography/useEllipsis.js +1 -1
  258. package/upload/TriggerNode.js +1 -1
  259. package/upload/Upload.js +2 -2
  260. package/upload/Uploader.js +2 -2
  261. package/utils/CSSTransition.js +1 -1
  262. package/utils/contextHolder.js +1 -1
  263. package/utils/index.js +4 -4
  264. package/utils/react19Adapter.js +3 -0
  265. package/utils/reactDOM.js +1 -1
  266. package/verification-code/VerificationCode.js +1 -1
  267. package/version/index.js +1 -1
  268. package/virtual-list/VirtualList.js +1 -1
  269. package/watermark/Watermark.js +1 -1
  270. package/chunk/BSCrLtfQ.js +0 -10
  271. package/chunk/BSaQv6mx.js +0 -251
  272. package/chunk/CD3AUpzo.js +0 -166
  273. package/chunk/CzQObzKd.js +0 -1817
  274. package/chunk/ll867Bf3.js +0 -730
@@ -7,7 +7,7 @@ import L from "@unicom-cloud/icons/IconUiDragDot";
7
7
  import M from "@unicom-cloud/icons/IconUiDragDotVertical";
8
8
  import g from "lodash/isFunction";
9
9
  import { useContext as V, useRef as q, useEffect as A } from "react";
10
- import { a as B } from "../chunk/ll867Bf3.js";
10
+ import { a as B } from "../chunk/CZWGeRVA.js";
11
11
  import { m as o } from "../chunk/JPPo5nY_.js";
12
12
  import "../chunk/D-TPB2Do.js";
13
13
  import { o as G } from "../chunk/BKKEev13.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as y, jsxs as ie } from "react/jsx-runtime";
2
2
  import { forwardRef as ce, useContext as ae, useState as D, useRef as T, useImperativeHandle as fe, useEffect as ue } from "react";
3
- import { a as me } from "../chunk/ll867Bf3.js";
3
+ import { a as me } from "../chunk/CZWGeRVA.js";
4
4
  import { u as le } from "../chunk/B2yFlXke.js";
5
5
  import { m as $ } from "../chunk/JPPo5nY_.js";
6
6
  import { on as m, off as l } from "../utils/dom.js";
@@ -5,7 +5,7 @@ import S from "lodash/isPlainObject";
5
5
  import Ot from "lodash/isString";
6
6
  import W from "lodash/isUndefined";
7
7
  import Ct, { forwardRef as xt, useContext as St, useRef as z, useState as y, useEffect as L, useImperativeHandle as zt } from "react";
8
- import { a as Pt } from "../chunk/ll867Bf3.js";
8
+ import { a as Pt } from "../chunk/CZWGeRVA.js";
9
9
  import { m as Rt } from "../chunk/JPPo5nY_.js";
10
10
  import { on as P, off as R } from "../utils/dom.js";
11
11
  import { o as Nt } from "../chunk/BKKEev13.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as ot, jsx as rt } from "react/jsx-runtime";
2
2
  import B from "lodash/isNumber";
3
3
  import { forwardRef as nt, useContext as st, useState as it, useRef as E, useImperativeHandle as ct } from "react";
4
- import { a as at } from "../chunk/ll867Bf3.js";
4
+ import { a as at } from "../chunk/CZWGeRVA.js";
5
5
  import { u as ut } from "../chunk/BFTV6myl.js";
6
6
  import { u as W } from "../chunk/CdaT1b_F.js";
7
7
  import { m as mt } from "../chunk/JPPo5nY_.js";
package/result/index.js CHANGED
@@ -4,7 +4,7 @@ import v from "@unicom-cloud/icons/IconUiClose";
4
4
  import C from "@unicom-cloud/icons/IconUiExclamation";
5
5
  import R from "@unicom-cloud/icons/IconUiInfo";
6
6
  import { forwardRef as U, useContext as P } from "react";
7
- import { a as b } from "../chunk/ll867Bf3.js";
7
+ import { a as b } from "../chunk/CZWGeRVA.js";
8
8
  import { u as j } from "../chunk/BFTV6myl.js";
9
9
  import { m as l } from "../chunk/JPPo5nY_.js";
10
10
  import w from "./403.js";
package/select/Option.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as j, jsx as C } from "react/jsx-runtime";
2
2
  import y from "react";
3
- import { C as E } from "../chunk/SSK90wgo.js";
3
+ import { C as E } from "../chunk/BzPNDYAX.js";
4
4
  import { m as v } from "../chunk/JPPo5nY_.js";
5
5
  import { o as L } from "../chunk/BKKEev13.js";
6
6
  function P(l, _) {
package/select/Select.js CHANGED
@@ -2,8 +2,8 @@ import { jsx as _, jsxs as gt } from "react/jsx-runtime";
2
2
  import U from "lodash/isArray";
3
3
  import Ot from "lodash/isFunction";
4
4
  import ht, { useContext as Ct, useState as W, useMemo as De, useRef as b, useCallback as pe, useEffect as V, useImperativeHandle as vt } from "react";
5
- import { C as yt } from "../chunk/SSK90wgo.js";
6
- import { a as bt } from "../chunk/ll867Bf3.js";
5
+ import { C as yt } from "../chunk/BzPNDYAX.js";
6
+ import { a as bt } from "../chunk/CZWGeRVA.js";
7
7
  import { u as Vt } from "../chunk/B4YRLi8r.js";
8
8
  import { u as kt } from "../chunk/BFTV6myl.js";
9
9
  import { u as Re } from "../chunk/CdaT1b_F.js";
@@ -6,7 +6,7 @@ import oo from "@unicom-cloud/icons/IconUiLoading";
6
6
  import ro from "@unicom-cloud/icons/IconUiSearch";
7
7
  import no from "lodash/isFunction";
8
8
  import fe from "lodash/isUndefined";
9
- import { a as to, I as so } from "../chunk/ll867Bf3.js";
9
+ import { a as to, I as so } from "../chunk/CZWGeRVA.js";
10
10
  import { u as ao } from "../chunk/CQ_WOOmf.js";
11
11
  import { u as lo } from "../chunk/BsY85n3_.js";
12
12
  import co from "../input-tag/InputTag.js";
package/skeleton/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as N } from "react/jsx-runtime";
2
2
  import $ from "lodash/isPlainObject";
3
3
  import S, { forwardRef as j, useContext as v } from "react";
4
- import { a as b } from "../chunk/ll867Bf3.js";
4
+ import { a as b } from "../chunk/CZWGeRVA.js";
5
5
  import { u as y } from "../chunk/BFTV6myl.js";
6
6
  import { m as R } from "../chunk/JPPo5nY_.js";
7
7
  import { a as w } from "../chunk/ClqoGc3r.js";
package/slider/Button.js CHANGED
@@ -3,7 +3,7 @@ import w from "lodash/isFunction";
3
3
  import W from "lodash/isNumber";
4
4
  import q from "lodash/isString";
5
5
  import G, { useState as H, useContext as J, useMemo as B, useRef as g, useEffect as Q } from "react";
6
- import { a as Z } from "../chunk/ll867Bf3.js";
6
+ import { a as Z } from "../chunk/CZWGeRVA.js";
7
7
  import { u as _ } from "../chunk/XTEsYGuF.js";
8
8
  import { u as tt } from "../chunk/CdaT1b_F.js";
9
9
  import et from "../trigger/index.js";
package/slider/index.js CHANGED
@@ -4,10 +4,10 @@ import _ from "lodash/isArray";
4
4
  import ee from "lodash/isFunction";
5
5
  import te from "lodash/isPlainObject";
6
6
  import ze, { useMemo as ne, useCallback as T, forwardRef as He, useContext as Qe, useRef as B } from "react";
7
- import { a as Ze } from "../chunk/ll867Bf3.js";
7
+ import { a as Ze } from "../chunk/CZWGeRVA.js";
8
8
  import { u as _e } from "../chunk/BFTV6myl.js";
9
9
  import { u as et } from "../chunk/CdaT1b_F.js";
10
- import { u as tt } from "../chunk/BSCrLtfQ.js";
10
+ import { u as tt } from "../chunk/a3hR6zLw.js";
11
11
  import { m as ve } from "../chunk/JPPo5nY_.js";
12
12
  import { on as we, off as be } from "../utils/dom.js";
13
13
  import { o as nt } from "../chunk/BKKEev13.js";
package/space/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { jsx as s, jsxs as A } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as A } from "react/jsx-runtime";
2
2
  import L from "lodash/isArray";
3
3
  import M from "lodash/isNumber";
4
4
  import P, { forwardRef as b, useContext as j } from "react";
5
- import { a as k } from "../chunk/ll867Bf3.js";
5
+ import { a as k } from "../chunk/CZWGeRVA.js";
6
6
  import { u as D } from "../chunk/BFTV6myl.js";
7
7
  import { m as F } from "../chunk/JPPo5nY_.js";
8
8
  import H from "./toArray.js";
@@ -20,22 +20,22 @@ function V(c, m) {
20
20
  style: x,
21
21
  children: C,
22
22
  size: i,
23
- direction: a,
23
+ direction: s,
24
24
  align: w,
25
- wrap: p,
26
- split: u,
25
+ wrap: u,
26
+ split: f,
27
27
  ...B
28
- } = N, e = v("space"), $ = w || (a === "horizontal" ? "center" : ""), R = F(
28
+ } = N, e = v("space"), $ = w || (s === "horizontal" ? "center" : ""), R = F(
29
29
  e,
30
30
  {
31
- [`${e}-${a}`]: a,
31
+ [`${e}-${s}`]: s,
32
32
  [`${e}-align-${$}`]: $,
33
- [`${e}-wrap`]: p,
33
+ [`${e}-wrap`]: u,
34
34
  [`${e}-rtl`]: d
35
35
  },
36
36
  S
37
37
  );
38
- function f(r) {
38
+ function p(r) {
39
39
  if (M(r))
40
40
  return r;
41
41
  switch (r) {
@@ -55,34 +55,34 @@ function V(c, m) {
55
55
  function z(r) {
56
56
  const n = y.length === r + 1, o = d ? "marginLeft" : "marginRight";
57
57
  if (typeof i == "string" || typeof i == "number") {
58
- const t = f(i);
59
- return p ? n ? { marginBottom: t } : {
58
+ const t = p(i);
59
+ return u ? n ? { marginBottom: t } : {
60
60
  [`${o}`]: t,
61
61
  marginBottom: t
62
62
  } : n ? {} : {
63
- [a === "vertical" ? "marginBottom" : o]: t
63
+ [s === "vertical" ? "marginBottom" : o]: t
64
64
  };
65
65
  }
66
66
  if (L(i)) {
67
- const t = f(i[0]), g = f(i[1]);
68
- return p ? n ? { marginBottom: g } : {
67
+ const t = p(i[0]), g = p(i[1]);
68
+ return u ? n ? { marginBottom: g } : {
69
69
  [`${o}`]: t,
70
70
  marginBottom: g
71
- } : a === "vertical" ? { marginBottom: g } : { [`${o}`]: t };
71
+ } : s === "vertical" ? { marginBottom: g } : { [`${o}`]: t };
72
72
  }
73
73
  }
74
- return /* @__PURE__ */ s("div", { ref: m, className: R, style: x, ...B, children: y.map((r, n) => {
75
- const o = (r == null ? void 0 : r.key) || n, t = u != null && n > 0;
74
+ return /* @__PURE__ */ a("div", { ref: m, className: R, style: x, ...B, children: y.map((r, n) => {
75
+ const o = (r == null ? void 0 : r.key) || n, t = f != null && n > 0;
76
76
  return /* @__PURE__ */ A(P.Fragment, { children: [
77
- t && /* @__PURE__ */ s("div", { className: `${e}-item-split`, children: u }),
78
- /* @__PURE__ */ s("div", { className: `${e}-item`, style: z(n), children: r })
77
+ t && /* @__PURE__ */ a("div", { className: `${e}-item-split`, children: f }),
78
+ /* @__PURE__ */ a("div", { className: `${e}-item`, style: z(n), children: r })
79
79
  ] }, o);
80
80
  }) });
81
81
  }
82
82
  const h = b(V);
83
83
  h.displayName = "Space";
84
84
  function U(c, m) {
85
- return /* @__PURE__ */ s(h, { ref: m, direction: "vertical", children: c.children });
85
+ return /* @__PURE__ */ a(h, { ref: m, direction: "vertical", children: c.children });
86
86
  }
87
87
  export {
88
88
  U as SpaceVertical,
@@ -1,9 +1,9 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { memo as k, forwardRef as w, useState as C, useEffect as h, useImperativeHandle as I } from "react";
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { memo as C, forwardRef as I, useState as x, useEffect as S, useImperativeHandle as U } from "react";
3
3
  import "../chunk/Biupwn8l.js";
4
4
  import "../utils/dom.js";
5
5
  import "../chunk/D-TPB2Do.js";
6
- import "react-dom";
6
+ import "../chunk/ClaNycDy.js";
7
7
  import "../chunk/Ce1j9KTi.js";
8
8
  import "lodash/debounce";
9
9
  import "../chunk/yl4BU7Sd.js";
@@ -33,7 +33,7 @@ import "lodash/upperFirst.js";
33
33
  import "lodash/isPlainObject.js";
34
34
  import "lodash/uniq.js";
35
35
  import "lodash/isString.js";
36
- import "../chunk/DzVH9IBy.js";
36
+ import "../chunk/fFjj2KuF.js";
37
37
  import "lodash/escapeRegExp";
38
38
  import "lodash/isArray";
39
39
  import "lodash/isNumber";
@@ -41,23 +41,23 @@ import "lodash/isString";
41
41
  import "lodash/isPlainObject";
42
42
  import "../chunk/Bl7BnD1R.js";
43
43
  import "lodash/isFunction";
44
- import "../chunk/CCv-5KFt.js";
44
+ import "../chunk/BHL-PzAD.js";
45
45
  import "uuid";
46
- import x from "@unicom-cloud/icons/IconUiMute";
47
- import P from "@unicom-cloud/icons/IconUiPauseCircleFill";
48
- import U from "@unicom-cloud/icons/IconUiPlayCircleFill";
49
- import b from "@unicom-cloud/icons/IconUiSound";
50
- import g from "../button/index.js";
51
- function v(l) {
52
- function p(i, S) {
53
- const { useButton: d = !0 } = i ?? {}, [c, n] = C(!1);
46
+ import g from "@unicom-cloud/icons/IconUiMute";
47
+ import v from "@unicom-cloud/icons/IconUiPauseCircleFill";
48
+ import B from "@unicom-cloud/icons/IconUiPlayCircleFill";
49
+ import F from "@unicom-cloud/icons/IconUiSound";
50
+ import H from "../button/index.js";
51
+ function R(a) {
52
+ function m(d, y) {
53
+ const { useButton: k = !0, buttonProps: e, ...o } = d ?? {}, [s, n] = x(!1);
54
54
  function u() {
55
- var e, t;
56
- (t = (e = window.speechSynthesis) == null ? void 0 : e.cancel) == null || t.call(e);
55
+ var i, t;
56
+ (t = (i = window.speechSynthesis) == null ? void 0 : i.cancel) == null || t.call(i);
57
57
  }
58
- function y() {
59
- var o, r, f;
60
- let e = ((o = i.getText) == null ? void 0 : o.call(i)) || i.text, t = new SpeechSynthesisUtterance(e);
58
+ function w() {
59
+ var c, r, h;
60
+ let i = ((c = o.getText) == null ? void 0 : c.call(o)) || o.text, t = new SpeechSynthesisUtterance(i);
61
61
  t.onstart = function() {
62
62
  n(!0);
63
63
  }, t.onerror = () => {
@@ -70,40 +70,40 @@ function v(l) {
70
70
  }, t.onboundary = () => {
71
71
  }, t.onend = () => {
72
72
  n(!1);
73
- }, (f = (r = window.speechSynthesis) == null ? void 0 : r.speak) == null || f.call(r, t);
73
+ }, (h = (r = window.speechSynthesis) == null ? void 0 : r.speak) == null || h.call(r, t);
74
74
  }
75
- function a(e) {
76
- var t, o;
77
- u(), c || y(), (o = (t = i.buttonProps) == null ? void 0 : t.onClick) == null || o.call(t, e);
75
+ function f(i) {
76
+ var t;
77
+ u(), s || w(), (t = e == null ? void 0 : e.onClick) == null || t.call(e, i);
78
78
  }
79
- let s;
79
+ let l;
80
80
  if (window.speechSynthesis && window.SpeechSynthesisUtterance)
81
- if (d) {
82
- let { label: e, text: t, children: o, ...r } = i.buttonProps ?? {};
83
- s = /* @__PURE__ */ m(
84
- l,
81
+ if (k) {
82
+ let { label: i, text: t, children: c, ...r } = e ?? {};
83
+ l = /* @__PURE__ */ p(
84
+ a,
85
85
  {
86
- ...i,
86
+ ...o,
87
87
  type: "text",
88
88
  size: "mini",
89
- icon: c ? /* @__PURE__ */ m(x, {}) : /* @__PURE__ */ m(b, {}),
89
+ icon: s ? /* @__PURE__ */ p(g, {}) : /* @__PURE__ */ p(F, {}),
90
90
  ...r,
91
- onClick: a,
92
- children: e || t || o
91
+ onClick: f,
92
+ children: i || t || c
93
93
  }
94
94
  );
95
95
  } else
96
- s = /* @__PURE__ */ m(c ? P : U, { ...i.iconProps, onClick: a });
97
- return h(() => () => {
96
+ l = /* @__PURE__ */ p(s ? v : B, { ...o.iconProps, onClick: f });
97
+ return S(() => () => {
98
98
  u();
99
- }, []), I(S, () => ({})), s;
99
+ }, []), U(y, () => ({})), l;
100
100
  }
101
- return k(w(p));
101
+ return C(I(m));
102
102
  }
103
- const Ut = v(function(p) {
104
- return h(() => () => {
105
- }, []), /* @__PURE__ */ m(g, { ...p, children: p.children });
103
+ const Bt = R(function(m) {
104
+ return S(() => () => {
105
+ }, []), /* @__PURE__ */ p(H, { ...m, children: m.children });
106
106
  });
107
107
  export {
108
- Ut as default
108
+ Bt as default
109
109
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import m from "lodash/isNumber";
3
3
  import { useContext as a } from "react";
4
- import { a as l } from "../chunk/ll867Bf3.js";
4
+ import { a as l } from "../chunk/CZWGeRVA.js";
5
5
  function g(t) {
6
6
  const { getPrefixCls: r } = a(l), i = `${r("spin")}-dot`, n = {
7
7
  width: t.size,
package/spin/index.js CHANGED
@@ -2,7 +2,7 @@ import { jsx as n, jsxs as c, Fragment as h } from "react/jsx-runtime";
2
2
  import E from "@unicom-cloud/icons/IconUiLoading";
3
3
  import I from "lodash/debounce";
4
4
  import $, { useContext as j, useState as w, useCallback as P, useRef as D, useImperativeHandle as F, useEffect as H } from "react";
5
- import { a as M } from "../chunk/ll867Bf3.js";
5
+ import { a as M } from "../chunk/CZWGeRVA.js";
6
6
  import { u as U } from "../chunk/BFTV6myl.js";
7
7
  import { m as N } from "../chunk/JPPo5nY_.js";
8
8
  import { a as _ } from "../chunk/D-TPB2Do.js";
@@ -2,7 +2,7 @@ import { jsxs as M, jsx as r } from "react/jsx-runtime";
2
2
  import T from "dayjs";
3
3
  import _ from "lodash/isFunction";
4
4
  import { forwardRef as E, useContext as F, useState as d, useRef as O, useEffect as P } from "react";
5
- import { a as b } from "../chunk/ll867Bf3.js";
5
+ import { a as b } from "../chunk/CZWGeRVA.js";
6
6
  import { m as k } from "../chunk/JPPo5nY_.js";
7
7
  import { g as v, a as w } from "../chunk/tamGhTJp.js";
8
8
  import { getDateString as h } from "./util.js";
@@ -4,7 +4,7 @@ import A from "dayjs";
4
4
  import B from "lodash/isFunction";
5
5
  import c from "lodash/isNumber";
6
6
  import { forwardRef as G, useContext as J, useRef as b, useState as K, useEffect as Q, useImperativeHandle as T, useMemo as X } from "react";
7
- import { a as Y } from "../chunk/ll867Bf3.js";
7
+ import { a as Y } from "../chunk/CZWGeRVA.js";
8
8
  import { u as Z } from "../chunk/BFTV6myl.js";
9
9
  import tt from "../skeleton/index.js";
10
10
  import { m as et } from "../chunk/JPPo5nY_.js";
package/steps/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as w } from "react/jsx-runtime";
2
2
  import d, { forwardRef as D, useContext as R } from "react";
3
- import { a as k } from "../chunk/ll867Bf3.js";
3
+ import { a as k } from "../chunk/CZWGeRVA.js";
4
4
  import { u as A } from "../chunk/BFTV6myl.js";
5
5
  import { m as E } from "../chunk/JPPo5nY_.js";
6
6
  import { a as j } from "../chunk/ClqoGc3r.js";
package/switch/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsxs as l, jsx as r, Fragment as R } from "react/jsx-runtime";
2
2
  import q from "@unicom-cloud/icons/IconUiLoading";
3
- import { h as A, P as x } from "../chunk/DzVH9IBy.js";
3
+ import { h as A, P as x } from "../chunk/fFjj2KuF.js";
4
4
  import B from "lodash/isArray";
5
5
  import { forwardRef as L, useContext as M, useState as O } from "react";
6
- import { a as Q } from "../chunk/ll867Bf3.js";
6
+ import { a as Q } from "../chunk/CZWGeRVA.js";
7
7
  import { u as U } from "../chunk/BFTV6myl.js";
8
8
  import { m as W } from "../chunk/JPPo5nY_.js";
9
9
  import "../chunk/D-TPB2Do.js";
package/table/Table.js CHANGED
@@ -6,10 +6,10 @@ import "lodash/isNumber";
6
6
  import "lodash/isPlainObject";
7
7
  import "lodash/throttle";
8
8
  import "react";
9
- import "../chunk/ll867Bf3.js";
9
+ import "../chunk/CZWGeRVA.js";
10
10
  import "../chunk/B2yFlXke.js";
11
11
  import "../chunk/BFTV6myl.js";
12
- import "../chunk/BSCrLtfQ.js";
12
+ import "../chunk/a3hR6zLw.js";
13
13
  import "../pagination/Pagination.js";
14
14
  import "../spin/index.js";
15
15
  import "../chunk/JPPo5nY_.js";
@@ -17,7 +17,7 @@ import "../utils/dom.js";
17
17
  import "../chunk/ClqoGc3r.js";
18
18
  import "../chunk/CIRG541s.js";
19
19
  import "./ColGroup.js";
20
- import { T as q } from "../chunk/CzQObzKd.js";
20
+ import { T as q } from "../chunk/C6AJxF7d.js";
21
21
  import "./util.js";
22
22
  export {
23
23
  q as default
package/table/index.js CHANGED
@@ -1,103 +1,111 @@
1
- import { S as X, T as D } from "../chunk/CzQObzKd.js";
2
- import { u as re, a as le, b as ae, c as ce, d as ue, e as ie, f as me } from "../chunk/CzQObzKd.js";
1
+ import { S as X, T as D } from "../chunk/C6AJxF7d.js";
2
+ import { u as le, a as ae, b as ue, c as ce, d as ie, e as me, f as fe } from "../chunk/C6AJxF7d.js";
3
3
  import { defaultComponent as I } from "./constant.js";
4
- import y, { useContext as g, useRef as k, useCallback as m, useEffect as $, useState as O } from "react";
5
- import { jsxs as U, Fragment as j, jsx as x } from "react/jsx-runtime";
6
- import { a as A } from "../chunk/ll867Bf3.js";
7
- import { m as E } from "../chunk/JPPo5nY_.js";
8
- import { on as L, off as M } from "../utils/dom.js";
4
+ import y, { useRef as g, useContext as w, useCallback as f, useEffect as A, useState as O } from "react";
5
+ import { jsx as T, jsxs as U } from "react/jsx-runtime";
6
+ import j from "lodash/isFunction";
7
+ import { a as E } from "../chunk/CZWGeRVA.js";
8
+ import { m as P } from "../chunk/JPPo5nY_.js";
9
+ import { on as M, off as N } from "../utils/dom.js";
9
10
  import { o as q } from "../chunk/BKKEev13.js";
10
- import N from "lodash/get";
11
- function H(a) {
12
- let { className: r, children: t, column: l, onResize: f, ...C } = a;
13
- const { getPrefixCls: s } = g(A), c = s("table-th-resizable"), p = k(null), o = k({}), n = m((d) => {
14
- o.current.boundingClientRect = p.current.getBoundingClientRect(), o.current.pageX = d.pageX, h();
15
- }, []), b = m((d) => {
16
- u();
17
- }, []), e = m((d) => {
18
- let S = o.current.boundingClientRect.width + (d.pageX - o.current.pageX);
19
- S < 0 || (l.width = S, f == null || f({
20
- column: l,
21
- width: S,
22
- widthOrigin: o.current.boundingClientRect.width
11
+ import $ from "lodash/get";
12
+ function H(u) {
13
+ let { className: r, children: o, column: p, onResize: i, ...d } = u;
14
+ const n = I.header.th, a = g(null), C = g(null), l = g({}), { getPrefixCls: s } = w(E), b = s("table-th-resizable");
15
+ if (!j(i)) return /* @__PURE__ */ T(n, { ref: a, ...d, className: r, children: o });
16
+ const t = f((e) => {
17
+ l.current.boundingClientRect = a.current.getBoundingClientRect(), l.current.pageX = (e == null ? void 0 : e.pageX) ?? 0, S();
18
+ }, []), m = f((e) => {
19
+ x();
20
+ }, []), c = f((e) => {
21
+ let h = l.current.boundingClientRect.width + (((e == null ? void 0 : e.pageX) ?? 0) - l.current.pageX);
22
+ h < 0 || (p.width = h, i == null || i({
23
+ column: p,
24
+ width: h,
25
+ widthOrigin: l.current.boundingClientRect.width
23
26
  }));
24
- }, []), h = m((d) => {
25
- L(document, "mousemove", e), L(document, "mouseup", b);
26
- }, []), u = m((d) => {
27
- M(document, "mousemove", e), M(document, "mouseup", b);
28
- }, []), T = I.header.th;
29
- return l != null && l.width && (r = E(r, c), t = /* @__PURE__ */ U(j, { children: [
30
- t,
31
- /* @__PURE__ */ x("div", { className: `${c}-cursor`, onMouseDown: n })
32
- ] })), $(() => () => {
33
- u();
34
- }, []), /* @__PURE__ */ x(T, { ref: p, ...C, className: r, children: t });
27
+ }, []), S = f((e) => {
28
+ M(document, "mousemove", c), M(document, "mouseup", m);
29
+ }, []), x = f((e) => {
30
+ N(document, "mousemove", c), N(document, "mouseup", m);
31
+ }, []);
32
+ return r = P(r, b), A(() => (t(), c(), m(), () => {
33
+ x();
34
+ }), []), /* @__PURE__ */ U(n, { ref: a, ...d, className: r, children: [
35
+ o,
36
+ /* @__PURE__ */ T(
37
+ "div",
38
+ {
39
+ ref: C,
40
+ className: `${b}-cursor`,
41
+ onMouseDown: t
42
+ }
43
+ )
44
+ ] });
35
45
  }
36
- function ne(a = {}) {
37
- const r = m((s, c) => ({
38
- column: s,
39
- onResize(o) {
40
- const { column: n = {}, width: b } = o ?? {};
41
- C((e) => {
42
- const h = e.find((u) => u === n || u.dataIndex === n.dataIndex && u.title == n.title);
43
- return h ? (h.width = b ?? n.width, t(e)) : e;
46
+ function se(u = {}) {
47
+ const r = f((n, a) => ({
48
+ column: n,
49
+ onResize(l) {
50
+ const { column: s = {}, width: b } = l ?? {};
51
+ d((t) => {
52
+ const m = t.find((c) => c === s || c.dataIndex === s.dataIndex && c.title == s.title);
53
+ return m ? (m.width = b ?? s.width, o(t)) : t;
44
54
  });
45
55
  }
46
- }), []), t = m((s) => s.map((c, p, o) => {
47
- const n = c;
48
- return p < o.length - 1 && c.resizable !== !1 && !c.fixed && (n.onHeaderCell = r), n;
49
- }), []), l = m((s) => {
50
- C(t(s));
51
- }, []), [f, C] = O(() => {
52
- const s = a.columns;
53
- return s ? t(s) : [];
56
+ }), []), o = f((n) => n.map((a, C, l) => {
57
+ const s = a;
58
+ return C < l.length - 1 && a.resizable !== !1 && !a.fixed && (s.onHeaderCell = r), s;
59
+ }), []), p = f((n) => d(o(n)), []), [i, d] = O(() => {
60
+ const n = u.columns;
61
+ return n ? o(n) : [];
54
62
  });
55
- return $(() => () => {
63
+ return A(() => () => {
56
64
  }, []), {
57
- columns: f,
58
- setColumns: l,
65
+ columns: i,
66
+ setColumns: p,
59
67
  ThResizable: H
60
68
  };
61
69
  }
62
- function P(a) {
63
- const { children: r, ...t } = a;
64
- return /* @__PURE__ */ x("td", { ...q(t, ["$$PqbTableSummaryCell"]), children: r });
70
+ function v(u) {
71
+ const { children: r, ...o } = u;
72
+ return /* @__PURE__ */ T("td", { ...q(o, ["$$PqbTableSummaryCell"]), children: r });
65
73
  }
66
- P.__PQB_TABLE_SUMMARY_CELL__ = !0;
67
- function Q(a) {
68
- const { rtl: r } = g(A), { columns: t, stickyOffsets: l, stickyClassNames: f, prefixCls: C } = g(X), { children: s, ...c } = a, p = y.Children.map(
69
- s,
70
- (n) => n.props.colSpan || 1
71
- ), o = y.Children.map(s, (n, b) => {
72
- var _, R;
73
- const e = n, h = N(e, "type.__PQB_TABLE_SUMMARY_CELL__") || N(e, "props.$$PqbTableSummaryCell"), u = (_ = e == null ? void 0 : e.props) == null ? void 0 : _.style, T = (R = e == null ? void 0 : e.props) == null ? void 0 : R.className, i = p.slice(0, b).reduce((z, B) => z + B, 0), S = t[i].fixed === "left" ? { [r ? "right" : "left"]: l[i] } : t[i].fixed === "right" ? { [r ? "left" : "right"]: l[i] } : {}, v = t[i].fixed === "left" || t[i].fixed === "right" ? f[i] : "";
74
- return h ? y.cloneElement(e, {
75
- ...e.props,
76
- className: E(`${C}-td`, v, T),
77
- style: { ...u, ...S }
78
- }) : n;
74
+ v.__PQB_TABLE_SUMMARY_CELL__ = !0;
75
+ function Q(u) {
76
+ const { rtl: r } = w(E), { columns: o, stickyOffsets: p, stickyClassNames: i, prefixCls: d } = w(X), { children: n, ...a } = u, C = y.Children.map(
77
+ n,
78
+ (s) => s.props.colSpan || 1
79
+ ), l = y.Children.map(n, (s, b) => {
80
+ var k, L;
81
+ const t = s, m = $(t, "type.__PQB_TABLE_SUMMARY_CELL__") || $(t, "props.$$PqbTableSummaryCell"), c = (k = t == null ? void 0 : t.props) == null ? void 0 : k.style, S = (L = t == null ? void 0 : t.props) == null ? void 0 : L.className, e = C.slice(0, b).reduce((z, B) => z + B, 0), R = o[e].fixed === "left" ? { [r ? "right" : "left"]: p[e] } : o[e].fixed === "right" ? { [r ? "left" : "right"]: p[e] } : {}, h = o[e].fixed === "left" || o[e].fixed === "right" ? i[e] : "";
82
+ return m ? y.cloneElement(t, {
83
+ ...t.props,
84
+ className: P(`${d}-td`, h, S),
85
+ style: { ...c, ...R }
86
+ }) : s;
79
87
  });
80
- return /* @__PURE__ */ x("tr", { ...c, children: o });
88
+ return /* @__PURE__ */ T("tr", { ...a, children: l });
81
89
  }
82
- function w(a) {
83
- return a.children;
90
+ function _(u) {
91
+ return u.children;
84
92
  }
85
- w.Row = Q;
86
- w.Cell = P;
93
+ _.Row = Q;
94
+ _.Cell = v;
87
95
  const Y = D;
88
- Y.Summary = w;
96
+ Y.Summary = _;
89
97
  export {
90
- w as TableSummary,
91
- P as TableSummaryCell,
98
+ _ as TableSummary,
99
+ v as TableSummaryCell,
92
100
  Q as TableSummaryRow,
93
101
  Y as default,
94
102
  I as tableDefaultComponent,
95
- re as useTableColumns,
96
- le as useTableComponent,
97
- ae as useTableExpand,
103
+ le as useTableColumns,
104
+ ae as useTableComponent,
105
+ ue as useTableExpand,
98
106
  ce as useTableRowSelection,
99
- ue as useTableSorter,
100
- ie as useTableStickyClassNames,
101
- me as useTableStickyOffsets,
102
- ne as useTableThResizable
107
+ ie as useTableSorter,
108
+ me as useTableStickyClassNames,
109
+ fe as useTableStickyOffsets,
110
+ se as useTableThResizable
103
111
  };
package/tabs/Tab.js CHANGED
@@ -2,13 +2,13 @@ import "react/jsx-runtime";
2
2
  import "lodash/isFunction";
3
3
  import "lodash/isPlainObject";
4
4
  import "react";
5
- import "../chunk/ll867Bf3.js";
5
+ import "../chunk/CZWGeRVA.js";
6
6
  import "../chunk/B4YRLi8r.js";
7
7
  import "../chunk/BFTV6myl.js";
8
8
  import "../chunk/CdaT1b_F.js";
9
9
  import "../chunk/JPPo5nY_.js";
10
10
  import "../chunk/BKKEev13.js";
11
- import { a as d, T as l } from "../chunk/vmgkWLYf.js";
11
+ import { a as d, T as l } from "../chunk/pEI3aB9Z.js";
12
12
  import { default as u, default as x } from "./TabPane.js";
13
13
  export {
14
14
  u as TabPane,