@unicom-cloud/ui 0.8.65 → 0.8.67

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 (358) hide show
  1. package/Affix.js +79 -79
  2. package/Alert.js +46 -46
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +74 -74
  5. package/Avatar.js +36 -36
  6. package/BackTop.js +35 -35
  7. package/Badge.js +55 -55
  8. package/Breadcrumb.js +42 -42
  9. package/Button.js +24 -24
  10. package/Calendar.js +230 -230
  11. package/Card.js +18 -18
  12. package/Carousel.js +165 -165
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +26 -26
  17. package/Comment.js +18 -18
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +28 -27
  20. package/DatePicker.js +872 -871
  21. package/Descriptions.js +34 -34
  22. package/Divider.js +19 -19
  23. package/Draggable.js +27 -26
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +110 -110
  26. package/Empty.js +3 -3
  27. package/Form.js +984 -945
  28. package/Grid.js +34 -34
  29. package/Icon.js +16 -16
  30. package/IconHover.js +2 -2
  31. package/Image.js +2 -2
  32. package/Input.js +7 -6
  33. package/InputNumber.js +6 -6
  34. package/InputTag.js +1 -1
  35. package/Layout.js +24 -24
  36. package/Link.js +30 -30
  37. package/List.js +95 -95
  38. package/Mentions.js +85 -84
  39. package/Menu.js +2 -2
  40. package/Message.js +7 -6
  41. package/Modal.js +1 -1
  42. package/Notice.js +14 -3
  43. package/Notification.js +9 -7
  44. package/OverflowEllipsis.js +64 -62
  45. package/PageHeader.js +73 -73
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +60 -60
  49. package/Popover.js +31 -31
  50. package/Portal.js +23 -31
  51. package/Progress.js +22 -22
  52. package/Radio.js +2 -2
  53. package/Rate.js +24 -24
  54. package/ResizeBox.js +274 -271
  55. package/Result.js +3 -3
  56. package/Select.js +4 -4
  57. package/SelectView.js +257 -237
  58. package/Skeleton.js +46 -46
  59. package/Slider.js +286 -283
  60. package/Space.js +28 -28
  61. package/SpeechSynthesis.js +62 -55
  62. package/Spin.js +23 -23
  63. package/Statistic.js +80 -80
  64. package/Steps.js +67 -67
  65. package/Switch.js +47 -47
  66. package/Table.js +1463 -1395
  67. package/Tabs.js +5 -5
  68. package/Tag.js +45 -45
  69. package/TimePicker.js +154 -154
  70. package/Timeline.js +2 -2
  71. package/Tooltip.js +80 -79
  72. package/Transfer.js +103 -102
  73. package/Tree.js +3 -2
  74. package/TreeSelect.js +2 -2
  75. package/Trigger.js +699 -772
  76. package/Typography.js +756 -6
  77. package/Upload.js +2 -2
  78. package/VerificationCode.js +1 -1
  79. package/Version.js +1 -1
  80. package/VirtualList.js +1 -1
  81. package/Watermark.js +1 -1
  82. package/chunk/{DIx0qmCq.js → -UuKKT0Z.js} +29 -29
  83. package/chunk/{B8QV6E2b.js → AwZqeapI.js} +5 -5
  84. package/chunk/B5gK1Idp.js +19 -0
  85. package/chunk/B7FlazNB.js +24 -0
  86. package/chunk/{DXZEpA3t.js → BBvWDeuZ.js} +67 -67
  87. package/chunk/BCftTxEy.js +626 -0
  88. package/chunk/{CsbCHnFk.js → BGny4zSb.js} +60 -60
  89. package/chunk/BHF15Dog.js +98 -0
  90. package/chunk/BJQ5UNa-.js +1585 -0
  91. package/chunk/BP9sYyk9.js +8 -0
  92. package/chunk/BUdtVdnv.js +38 -0
  93. package/chunk/BVQlOzTS.js +11 -0
  94. package/chunk/B__a_gb_.js +519 -0
  95. package/chunk/BbEYToV1.js +10 -0
  96. package/chunk/BbdDQAnm.js +15 -0
  97. package/chunk/BdUcgWdu.js +11 -0
  98. package/chunk/BfbXSG70.js +26 -0
  99. package/chunk/BndfNLK4.js +186 -0
  100. package/chunk/BoMCZV6K.js +1098 -0
  101. package/chunk/Br0B6y1T.js +18 -0
  102. package/chunk/BrOW642m.js +130 -0
  103. package/chunk/BxUs8_Cr.js +9 -0
  104. package/chunk/{DK4KcodH.js → C42LIMP9.js} +244 -242
  105. package/chunk/C4YkFMzC.js +778 -0
  106. package/chunk/{CF6p9R93.js → C9Wcraj7.js} +21 -21
  107. package/chunk/{4-gvEY5y.js → CANgSlh3.js} +10 -10
  108. package/chunk/CJ_o9tZM.js +5 -0
  109. package/chunk/{Bqk6yh16.js → CK5m7rLl.js} +36 -36
  110. package/chunk/{CANaGbGR.js → CKNyIitu.js} +57 -56
  111. package/chunk/CLiqJm_T.js +10 -0
  112. package/chunk/{DjtWv6Wn.js → CNmmhbCn.js} +32 -32
  113. package/chunk/{BUCEs557.js → CP0odX99.js} +51 -51
  114. package/chunk/CPT-OZH2.js +14 -0
  115. package/chunk/CVSF8p0O.js +698 -0
  116. package/chunk/C_agcwLN.js +31 -0
  117. package/chunk/{DTjcKyDN.js → C_gJWGGh.js} +201 -201
  118. package/chunk/{CPcm9Cm5.js → CaasmWg_.js} +11 -11
  119. package/chunk/Ce1j9KTi.js +6 -0
  120. package/chunk/{D_-UD4vO.js → Cf5QNhkG.js} +18 -18
  121. package/chunk/CkNSv2U7.js +56 -0
  122. package/chunk/Cp2f70gB.js +9 -0
  123. package/chunk/CpegYjdC.js +16 -0
  124. package/chunk/CucI3KZr.js +20 -0
  125. package/chunk/CwoFBTYz.js +11 -0
  126. package/chunk/D2KPqPhV.js +17 -0
  127. package/chunk/D7NyvE5f.js +17 -0
  128. package/chunk/D8oTPQ2H.js +384 -0
  129. package/chunk/{CLBavO5c.js → DC1iHEiy.js} +87 -87
  130. package/chunk/{Dnycc1qJ.js → DFrfrmfK.js} +120 -119
  131. package/chunk/DGTIZ_0O.js +6 -0
  132. package/chunk/DJfpiZn_.js +25 -0
  133. package/chunk/DKr2_PYd.js +34 -0
  134. package/chunk/DNUz6zgo.js +11 -0
  135. package/chunk/DRtM649q.js +11 -0
  136. package/chunk/DS_mUWn6.js +41 -0
  137. package/chunk/DU6bs_19.js +10 -0
  138. package/chunk/DWdbwz22.js +10 -0
  139. package/chunk/DcveZuqd.js +6 -0
  140. package/chunk/DdVFknul.js +24 -0
  141. package/chunk/DgRfikwe.js +16 -0
  142. package/chunk/{DG-epQqF.js → DkyR2EfG.js} +66 -66
  143. package/chunk/{DUeHQKtx.js → DleQ5HwG.js} +42 -42
  144. package/chunk/DnrZEnQ_.js +27 -0
  145. package/chunk/DsRSHWtX.js +1025 -0
  146. package/chunk/Dz5BdmXo.js +270 -0
  147. package/chunk/EANe01DF.js +1030 -0
  148. package/chunk/{CwhPMMWy.js → Ey4YJCkX.js} +7 -7
  149. package/chunk/GoNx5R4F.js +873 -0
  150. package/chunk/HDUQku8d.js +20 -0
  151. package/chunk/HrAP__Hi.js +25 -0
  152. package/chunk/JPPo5nY_.js +9 -0
  153. package/chunk/{CIlGCedk.js → SLWP34OR.js} +90 -85
  154. package/chunk/VVKtwaGf.js +278 -0
  155. package/chunk/WPNpLxSI.js +16 -0
  156. package/chunk/{DLvMA1OW.js → WpO_DsK4.js} +49 -48
  157. package/chunk/fdU3ang6.js +14 -0
  158. package/chunk/{DqFhzTWC.js → fkclKOAL.js} +298 -292
  159. package/chunk/flvYlqx3.js +22 -0
  160. package/chunk/kTDayEpF.js +288 -0
  161. package/chunk/{DQDkV47j.js → pZoNQ75H.js} +31 -31
  162. package/chunk/qFf1w_Jq.js +8 -0
  163. package/chunk/{CH1UUxsg.js → w-kM1L5W.js} +155 -155
  164. package/hooks/index.js +53 -49
  165. package/hooks/useComputedState.js +2 -10
  166. package/hooks/useCreate.js +2 -7
  167. package/hooks/useForceUpdate.js +2 -7
  168. package/hooks/useId.js +2 -10
  169. package/hooks/useInView.js +2 -30
  170. package/hooks/useIntersectionObserver.js +2 -23
  171. package/hooks/useInterval.js +2 -17
  172. package/hooks/useIsFirstRender.js +2 -9
  173. package/hooks/useIsomorphicLayoutEffect.js +2 -5
  174. package/hooks/useKeyboardEvent.js +2 -16
  175. package/hooks/useMedia.js +2 -15
  176. package/hooks/useMergeProps.js +2 -18
  177. package/hooks/useMergeValue.js +2 -19
  178. package/hooks/useOnlineStatus.js +4 -0
  179. package/hooks/useOverflowHidden.js +2 -25
  180. package/hooks/useOverrideRef.js +2 -13
  181. package/hooks/usePersistCallback.js +2 -13
  182. package/hooks/usePrefersColorSchemeDark.js +4 -0
  183. package/hooks/usePrevious.js +2 -9
  184. package/hooks/useRefs.js +2 -9
  185. package/hooks/useResizeObserver.js +2 -15
  186. package/hooks/useStateCallback.js +2 -15
  187. package/hooks/useStateWithPromise.js +2 -24
  188. package/hooks/useUpdateEffect.js +2 -9
  189. package/hooks/useVerificationCode.js +73 -0
  190. package/hooks/useWatch.js +2 -10
  191. package/hooks/{use-watermark.js → useWatermark.js} +27 -26
  192. package/hooks/useWindowSize.js +2 -20
  193. package/index.js +571 -584
  194. package/locale/en-US.js +4 -2
  195. package/locale/interface.js +1 -4
  196. package/locale/ja-JP.js +3 -1
  197. package/locale/tr-TR.js +1 -1
  198. package/locale/zh-CN.js +3 -1
  199. package/locale/zh-HK.js +3 -1
  200. package/locale/zh-TW.js +3 -1
  201. package/package.json +1 -1
  202. package/style.css +1 -1
  203. package/types/anchor/util.d.ts +1 -1
  204. package/types/button/index.d.ts +2 -2
  205. package/types/color-picker/hooks/useColorPicker.d.ts +2 -2
  206. package/types/form/Control-old.d.ts +56 -0
  207. package/types/form/Control.d.ts +6 -54
  208. package/types/form/FormItem.d.ts +1 -1
  209. package/types/form/store.d.ts +0 -1
  210. package/types/hooks/index.d.ts +2 -0
  211. package/types/hooks/useComputedState.d.ts +1 -4
  212. package/types/hooks/useCreate.d.ts +1 -2
  213. package/types/hooks/useForceUpdate.d.ts +1 -2
  214. package/types/hooks/useId.d.ts +1 -2
  215. package/types/hooks/useInView.d.ts +1 -11
  216. package/types/hooks/useIntersectionObserver.d.ts +1 -7
  217. package/types/hooks/useInterval.d.ts +1 -2
  218. package/types/hooks/useIsFirstRender.d.ts +1 -2
  219. package/types/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
  220. package/types/hooks/useKeyboardEvent.d.ts +1 -8
  221. package/types/hooks/useMedia.d.ts +1 -2
  222. package/types/hooks/useMergeProps.d.ts +1 -5
  223. package/types/hooks/useMergeValue.d.ts +1 -6
  224. package/types/hooks/useOnlineStatus.d.ts +1 -0
  225. package/types/hooks/useOverflowHidden.d.ts +1 -5
  226. package/types/hooks/useOverrideRef.d.ts +1 -6
  227. package/types/hooks/usePersistCallback.d.ts +1 -2
  228. package/types/hooks/usePrefersColorSchemeDark.d.ts +1 -0
  229. package/types/hooks/usePrevious.d.ts +1 -3
  230. package/types/hooks/useRefs.d.ts +1 -2
  231. package/types/hooks/useResizeObserver.d.ts +1 -6
  232. package/types/hooks/useStateCallback.d.ts +1 -5
  233. package/types/hooks/useStateWithPromise.d.ts +1 -2
  234. package/types/hooks/useUpdateEffect.d.ts +1 -3
  235. package/types/hooks/useWatch.d.ts +1 -3
  236. package/types/hooks/useWindowSize.d.ts +1 -5
  237. package/types/image/interface.d.ts +1 -0
  238. package/types/index.d.ts +157 -86
  239. package/types/input/Input.d.ts +1 -1
  240. package/types/input/Textarea.d.ts +2 -2
  241. package/types/locale/en-US.d.ts +2 -0
  242. package/types/locale/interface.d.ts +1 -2
  243. package/types/locale/ja-JP.d.ts +2 -0
  244. package/types/locale/zh-CN.d.ts +2 -0
  245. package/types/locale/zh-HK.d.ts +2 -0
  246. package/types/locale/zh-TW.d.ts +2 -0
  247. package/types/menu/context.d.ts +1 -1
  248. package/types/message/index.d.ts +14 -14
  249. package/types/message/interface.d.ts +2 -0
  250. package/types/modal/config.d.ts +0 -1
  251. package/types/modal/interface.d.ts +0 -1
  252. package/types/notice/index.d.ts +2 -27
  253. package/types/notification/index.d.ts +15 -16
  254. package/types/notification/interface.d.ts +2 -0
  255. package/types/notification/withNotification.d.ts +2 -0
  256. package/types/select/util.d.ts +1 -2
  257. package/types/select-view/interface.d.ts +2 -1
  258. package/types/speech-synthesis/index.d.ts +1 -1
  259. package/types/table/constant.d.ts +2 -0
  260. package/types/table/hook/useThResizable.d.ts +7 -0
  261. package/types/table/index.d.ts +10 -1
  262. package/types/table/style/index.d.ts +1 -0
  263. package/types/table/th-resizable/index.d.ts +2 -0
  264. package/types/table/thead/Column.d.ts +1 -2
  265. package/types/tree/Tree.d.ts +12 -67
  266. package/types/tree-select/Select.d.ts +2 -2
  267. package/types/trigger/index.d.ts +2 -120
  268. package/types/trigger/interface.d.ts +2 -1
  269. package/types/utils/CSSTransition.d.ts +2 -3
  270. package/types/utils/caseName.d.ts +1 -1
  271. package/types/utils/className.d.ts +1 -1
  272. package/types/utils/constant.d.ts +2 -2
  273. package/types/utils/copy.d.ts +1 -1
  274. package/types/utils/dayjs.d.ts +1 -21
  275. package/types/utils/dom.d.ts +1 -6
  276. package/types/utils/fileToURL.d.ts +1 -1
  277. package/types/utils/fillNBSP.d.ts +1 -1
  278. package/types/utils/getHighlightText.d.ts +1 -5
  279. package/types/utils/getHotkeyHandler.d.ts +1 -8
  280. package/types/utils/getStringLength.d.ts +1 -1
  281. package/types/utils/include.d.ts +1 -1
  282. package/types/utils/index.d.ts +3 -4
  283. package/types/utils/is.d.ts +1 -16
  284. package/types/utils/keyboardCode.d.ts +3 -0
  285. package/types/utils/lodash.d.ts +1 -17
  286. package/types/utils/mergeProps.d.ts +1 -1
  287. package/types/utils/mergedToString.d.ts +1 -1
  288. package/types/utils/omit.d.ts +1 -1
  289. package/types/utils/pad.d.ts +1 -2
  290. package/types/utils/pick.d.ts +2 -4
  291. package/types/utils/reactDOM.d.ts +1 -7
  292. package/types/utils/resizeObserverEffect.d.ts +2 -0
  293. package/types/utils/saveAs.d.ts +1 -1
  294. package/types/utils/screenfull.d.ts +2 -0
  295. package/types/utils/scrollIntoView.d.ts +1 -2
  296. package/types/utils/style.d.ts +1 -3
  297. package/types/utils/throttleByRaf.d.ts +1 -5
  298. package/types/utils/throttleByRaf2.d.ts +1 -0
  299. package/types/utils/warning.d.ts +1 -2
  300. package/types/version/index.d.ts +1 -1
  301. package/utils/CSSTransition.js +2 -6
  302. package/utils/className.js +2 -2
  303. package/utils/constant.js +8 -9
  304. package/utils/contextHolder.js +1 -1
  305. package/utils/copy.js +1 -1
  306. package/utils/dayjs.js +14 -173
  307. package/utils/dom.js +33 -29
  308. package/utils/fillNBSP.js +2 -4
  309. package/utils/getHighlightText.js +2 -38
  310. package/utils/getHotkeyHandler.js +2 -25
  311. package/utils/getStringLength.js +2 -7
  312. package/utils/include.js +2 -7
  313. package/utils/index.js +237 -240
  314. package/utils/is.js +116 -156
  315. package/utils/keyboardCode.js +27 -0
  316. package/utils/mergeProps.js +2 -9
  317. package/utils/mergedToString.js +2 -13
  318. package/utils/omit.js +2 -9
  319. package/utils/pad.js +12 -12
  320. package/utils/pick.js +4 -15
  321. package/utils/reactDOM.js +3 -54
  322. package/utils/resizeObserverEffect.js +4 -0
  323. package/utils/saveAs.js +1 -1
  324. package/utils/screenfull.js +4 -0
  325. package/utils/scrollIntoView.js +2 -21
  326. package/utils/style.js +12 -11
  327. package/utils/throttleByRaf.js +13 -12
  328. package/utils/throttleByRaf2.js +5 -0
  329. package/utils/warning.js +5 -4
  330. package/NotificationBase.js +0 -53
  331. package/chunk/1GQdnTJp.js +0 -284
  332. package/chunk/BAWsPQBM.js +0 -11
  333. package/chunk/BS09tn7B.js +0 -638
  334. package/chunk/BqGtwxTi.js +0 -777
  335. package/chunk/BqufsN8i.js +0 -376
  336. package/chunk/BtlvlGQN.js +0 -278
  337. package/chunk/C2lIz2F9.js +0 -60
  338. package/chunk/CGZ0In1p.js +0 -776
  339. package/chunk/CWgltRVL.js +0 -698
  340. package/chunk/D3NFxdmG.js +0 -518
  341. package/chunk/DApXtulb.js +0 -1102
  342. package/chunk/DlLL5JQo.js +0 -1501
  343. package/chunk/Dv_xRzvR.js +0 -269
  344. package/chunk/Ek8U5CTN.js +0 -1032
  345. package/chunk/ewRDIDUz.js +0 -995
  346. package/chunk/l0sNRNKZ.js +0 -1
  347. package/chunk/tYXLFPVI.js +0 -871
  348. package/hooks/use-verification-code.js +0 -73
  349. package/types/notification-base/index.d.ts +0 -15
  350. package/types/notification-base/style/index.d.ts +0 -2
  351. package/types/trigger/Portal.d.ts +0 -7
  352. package/types/utils/keyCode.d.ts +0 -45
  353. package/types/utils/raf.d.ts +0 -3
  354. package/types/utils/throttleByRafV2.d.ts +0 -5
  355. package/utils/keyCode.js +0 -12
  356. package/utils/raf.js +0 -19
  357. package/utils/throttleByRafV2.js +0 -16
  358. /package/style/{variable.less → variables.less} +0 -0
package/Descriptions.js CHANGED
@@ -1,11 +1,11 @@
1
- import { jsxs as c, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
2
  import z from "lodash/isArray";
3
- import T from "lodash/isNumber";
4
- import V from "lodash/isPlainObject";
5
- import S, { useContext as q, useState as B, useRef as G, useEffect as J } from "react";
6
- import { d as K } from "./chunk/DlLL5JQo.js";
7
- import { useMergeProps as Q } from "./hooks/useMergeProps.js";
8
- import { y as U } from "./chunk/BAWsPQBM.js";
3
+ import V from "lodash/isNumber";
4
+ import q from "lodash/isPlainObject";
5
+ import S, { useContext as B, useState as G, useRef as J, useEffect as K } from "react";
6
+ import { a as M } from "./chunk/BJQ5UNa-.js";
7
+ import { c as Q } from "./chunk/B5gK1Idp.js";
8
+ import { m as U } from "./chunk/JPPo5nY_.js";
9
9
  import x, { responsiveArray as P } from "./utils/responsiveObserve.js";
10
10
  const k = (f) => z(f) ? f.reduce((h, p) => h + (p.span || 1), 0) : 0, W = {
11
11
  layout: "horizontal",
@@ -13,7 +13,7 @@ const k = (f) => z(f) ? f.reduce((h, p) => h + (p.span || 1), 0) : 0, W = {
13
13
  tableLayout: "auto"
14
14
  };
15
15
  function X(f) {
16
- const { getPrefixCls: h, componentConfig: p, rtl: C } = q(K), I = Q(
16
+ const { getPrefixCls: h, componentConfig: p, rtl: C } = B(M), I = Q(
17
17
  f,
18
18
  W,
19
19
  p == null ? void 0 : p.Descriptions
@@ -30,8 +30,8 @@ function X(f) {
30
30
  layout: u,
31
31
  size: N,
32
32
  tableLayout: O
33
- } = I, n = h("descriptions"), [j, A] = B(), g = G(null);
34
- J(() => (g.current = x.subscribe((s) => {
33
+ } = I, n = h("descriptions"), [j, A] = G(), g = J(null);
34
+ K(() => (g.current = x.subscribe((s) => {
35
35
  for (let t = 0; t < P.length; t++) {
36
36
  const e = P[t];
37
37
  if (s[e]) {
@@ -43,24 +43,24 @@ function X(f) {
43
43
  x.unsubscribe(g.current);
44
44
  }), []);
45
45
  let l = 3;
46
- V(m) && (l = m[j] || 3), T(m) && m > 0 && (l = m);
46
+ q(m) && (l = m[j] || 3), V(m) && m > 0 && (l = m);
47
47
  const o = [];
48
48
  if (z(b) && b.length > 0 && l) {
49
49
  b.forEach((e) => {
50
- const i = o[o.length - 1], r = k(i);
51
- r === 0 ? o.push([
50
+ const i = o[o.length - 1], a = k(i);
51
+ a === 0 ? o.push([
52
52
  {
53
53
  ...e,
54
54
  span: e.span ? e.span > l ? l : e.span : 1
55
55
  }
56
- ]) : r === l ? o.push([
56
+ ]) : a === l ? o.push([
57
57
  {
58
58
  ...e,
59
59
  span: e.span ? e.span > l ? l : e.span : 1
60
60
  }
61
61
  ]) : i.push({
62
62
  ...e,
63
- span: e.span ? e.span + r > l ? l - r : e.span : 1
63
+ span: e.span ? e.span + a > l ? l - a : e.span : 1
64
64
  });
65
65
  });
66
66
  const s = o[o.length - 1], t = k(s);
@@ -68,13 +68,13 @@ function X(f) {
68
68
  }
69
69
  function E(s, t) {
70
70
  return /* @__PURE__ */ c(S.Fragment, { children: [
71
- /* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, i) => {
72
- const r = e.span > 1 ? { colSpan: e.span } : {};
71
+ /* @__PURE__ */ r("tr", { className: `${n}-row`, children: s.map((e, i) => {
72
+ const a = e.span > 1 ? { colSpan: e.span } : {};
73
73
  return /* @__PURE__ */ c(
74
74
  "td",
75
75
  {
76
76
  className: `${n}-item-label`,
77
- ...r,
77
+ ...a,
78
78
  style: y,
79
79
  children: [
80
80
  e.label,
@@ -84,13 +84,13 @@ function X(f) {
84
84
  `${e.key || i}_label`
85
85
  );
86
86
  }) }),
87
- /* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, i) => {
88
- const r = e.span > 1 ? { colSpan: e.span } : {};
89
- return /* @__PURE__ */ a(
87
+ /* @__PURE__ */ r("tr", { className: `${n}-row`, children: s.map((e, i) => {
88
+ const a = e.span > 1 ? { colSpan: e.span } : {};
89
+ return /* @__PURE__ */ r(
90
90
  "td",
91
91
  {
92
92
  className: `${n}-item-value`,
93
- ...r,
93
+ ...a,
94
94
  style: $,
95
95
  children: e.value
96
96
  },
@@ -100,18 +100,18 @@ function X(f) {
100
100
  ] }, t);
101
101
  }
102
102
  function F(s, t) {
103
- return /* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, i) => {
104
- const r = e.span > 1 ? { colSpan: e.span * 2 - 1 } : {};
103
+ return /* @__PURE__ */ r("tr", { className: `${n}-row`, children: s.map((e, i) => {
104
+ const a = e.span > 1 ? { colSpan: e.span * 2 - 1 } : {};
105
105
  return /* @__PURE__ */ c(S.Fragment, { children: [
106
106
  /* @__PURE__ */ c("td", { className: `${n}-item-label`, style: y, children: [
107
107
  e.label,
108
108
  d
109
109
  ] }),
110
- /* @__PURE__ */ a(
110
+ /* @__PURE__ */ r(
111
111
  "td",
112
112
  {
113
113
  className: `${n}-item-value`,
114
- ...r,
114
+ ...a,
115
115
  style: $,
116
116
  children: e.value
117
117
  }
@@ -120,12 +120,12 @@ function X(f) {
120
120
  }) }, t);
121
121
  }
122
122
  function R(s, t) {
123
- return /* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, i) => {
124
- const r = e.span > 1 ? { colSpan: e.span } : {};
123
+ return /* @__PURE__ */ r("tr", { className: `${n}-row`, children: s.map((e, i) => {
124
+ const a = e.span > 1 ? { colSpan: e.span } : {};
125
125
  return /* @__PURE__ */ c(
126
126
  "td",
127
127
  {
128
- ...r,
128
+ ...a,
129
129
  className: `${n}-item`,
130
130
  children: [
131
131
  /* @__PURE__ */ c(
@@ -139,7 +139,7 @@ function X(f) {
139
139
  ]
140
140
  }
141
141
  ),
142
- /* @__PURE__ */ a(
142
+ /* @__PURE__ */ r(
143
143
  "div",
144
144
  {
145
145
  className: `${n}-item-value-inline`,
@@ -156,7 +156,7 @@ function X(f) {
156
156
  function H(s, t) {
157
157
  return u === "inline-vertical" || u === "inline-horizontal" ? R(s, t) : u === "vertical" ? E(s, t) : F(s, t);
158
158
  }
159
- const M = U(
159
+ const T = U(
160
160
  n,
161
161
  {
162
162
  [`${n}-border`]: L,
@@ -167,9 +167,9 @@ function X(f) {
167
167
  },
168
168
  D
169
169
  );
170
- return /* @__PURE__ */ c("div", { className: M, style: w, children: [
171
- v && /* @__PURE__ */ a("div", { className: `${n}-title`, children: v }),
172
- /* @__PURE__ */ a("div", { className: `${n}-body`, children: /* @__PURE__ */ a("table", { className: `${n}-table`, cellPadding: 0, cellSpacing: 0, children: /* @__PURE__ */ a("tbody", { children: o.map((s, t) => H(s, t)) }) }) })
170
+ return /* @__PURE__ */ c("div", { className: T, style: w, children: [
171
+ v && /* @__PURE__ */ r("div", { className: `${n}-title`, children: v }),
172
+ /* @__PURE__ */ r("div", { className: `${n}-body`, children: /* @__PURE__ */ r("table", { className: `${n}-table`, cellPadding: 0, cellSpacing: 0, children: /* @__PURE__ */ r("tbody", { children: o.map((s, t) => H(s, t)) }) }) })
173
173
  ] });
174
174
  }
175
175
  X.displayName = "Descriptions";
package/Divider.js CHANGED
@@ -1,40 +1,40 @@
1
- import { jsx as i } from "react/jsx-runtime";
1
+ import { jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as x, useContext as $ } from "react";
3
- import { d as u } from "./chunk/DlLL5JQo.js";
4
- import { useMergeProps as h } from "./hooks/useMergeProps.js";
5
- import { y as v } from "./chunk/BAWsPQBM.js";
6
- const y = {
3
+ import { a as h } from "./chunk/BJQ5UNa-.js";
4
+ import { c as u } from "./chunk/B5gK1Idp.js";
5
+ import { m as v } from "./chunk/JPPo5nY_.js";
6
+ const C = {
7
7
  type: "horizontal",
8
8
  orientation: "center"
9
9
  };
10
- function C(n, a) {
11
- const { getPrefixCls: l, componentConfig: r } = $(u), p = h(
12
- n,
13
- y,
10
+ function N(a, n) {
11
+ const { getPrefixCls: l, componentConfig: r } = $(h), m = u(
12
+ a,
13
+ C,
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: i, orientation: o, ...d } = m, t = l("divider"), f = v(
16
16
  t,
17
- `${t}-${s}`,
17
+ `${t}-${i}`,
18
18
  {
19
19
  [`${t}-with-text`]: e,
20
20
  [`${t}-with-text-${o}`]: e && o
21
21
  },
22
- c
22
+ p
23
23
  );
24
- return /* @__PURE__ */ i(
24
+ return /* @__PURE__ */ s(
25
25
  "div",
26
26
  {
27
27
  role: "separator",
28
- ref: a,
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 && i === "horizontal" ? /* @__PURE__ */ s("span", { className: `${t}-text ${t}-text-${o}`, children: e }) : null
33
33
  }
34
34
  );
35
35
  }
36
- const N = x(C);
37
- N.displayName = "Divider";
36
+ const y = x(N);
37
+ y.displayName = "Divider";
38
38
  export {
39
- N as default
39
+ y as default
40
40
  };
package/Draggable.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { jsx as I } from "react/jsx-runtime";
2
- import S, { useRef as P, useState as u, useEffect as $, useContext as O } from "react";
3
- import { d as T } from "./chunk/DlLL5JQo.js";
4
- import { y as w } from "./chunk/BAWsPQBM.js";
2
+ import y, { useRef as P, useState as u, useEffect as $, useContext as O } from "react";
3
+ import { a as T } from "./chunk/BJQ5UNa-.js";
4
+ import { m as w } from "./chunk/JPPo5nY_.js";
5
5
  function N(m) {
6
6
  const {
7
7
  prefixCls: e,
8
- style: d,
8
+ style: p,
9
9
  children: D,
10
10
  direction: x,
11
11
  disabled: h,
12
12
  droppable: r = !0,
13
- onDrop: l,
14
- onDragStart: g,
13
+ onDrop: g,
14
+ onDragStart: c,
15
15
  onDragEnd: s,
16
- onDragOver: c,
16
+ onDragOver: f,
17
17
  onDragLeave: a
18
- } = m, v = P(null), i = P(null), [n, o] = u("none"), [y, p] = u(!1), [b, C] = u(null);
18
+ } = m, v = P(null), i = P(null), [n, o] = u("none"), [S, d] = u(!1), [b, C] = u(null);
19
19
  return $(() => () => {
20
20
  i.current && clearTimeout(i.current);
21
21
  }, []), $(() => {
@@ -25,64 +25,65 @@ function N(m) {
25
25
  {
26
26
  draggable: !0,
27
27
  ref: v,
28
- style: d,
28
+ style: p,
29
29
  className: w(`${e}-item`, {
30
30
  [`${e}-item-${n}`]: n !== "none",
31
31
  [`${e}-item-gap-${b}`]: b,
32
32
  [`${e}-item-disabled`]: h,
33
- [`${e}-item-dragover`]: y
33
+ [`${e}-item-dragover`]: S
34
34
  }),
35
35
  onDragStart: (t) => {
36
36
  t.stopPropagation(), o("dragging");
37
37
  try {
38
38
  t.dataTransfer.setData("text/plain", "");
39
- } catch {
39
+ } catch (l) {
40
+ console.error(l);
40
41
  }
41
- g == null || g(t);
42
+ c == null || c(t);
42
43
  },
43
44
  onDragEnd: (t) => {
44
- t.stopPropagation(), p(!1), o("dragged"), s == null || s(t);
45
+ t.stopPropagation(), d(!1), o("dragged"), s == null || s(t);
45
46
  },
46
47
  onDragOver: (t) => {
47
48
  if (r) {
48
49
  t.stopPropagation(), t.preventDefault();
49
- const f = v.current.getBoundingClientRect();
50
+ const l = v.current.getBoundingClientRect();
50
51
  C(
51
- x === "vertical" ? t.pageY > window.pageYOffset + f.top + f.height / 2 ? "bottom" : "top" : t.pageX > window.pageXOffset + f.left + f.width / 2 ? "right" : "left"
52
- ), p(!0), c == null || c(t);
52
+ x === "vertical" ? t.pageY > window.pageYOffset + l.top + l.height / 2 ? "bottom" : "top" : t.pageX > window.pageXOffset + l.left + l.width / 2 ? "right" : "left"
53
+ ), d(!0), f == null || f(t);
53
54
  }
54
55
  },
55
56
  onDragLeave: (t) => {
56
- r && (t.stopPropagation(), p(!1), a == null || a(t));
57
+ r && (t.stopPropagation(), d(!1), a == null || a(t));
57
58
  },
58
59
  onDrop: (t) => {
59
- r && (t.stopPropagation(), t.preventDefault(), p(!1), C(null), o("none"), l == null || l(t, b));
60
+ r && (t.stopPropagation(), t.preventDefault(), d(!1), C(null), o("none"), g == null || g(t, b));
60
61
  },
61
62
  children: D
62
63
  }
63
64
  );
64
65
  }
65
66
  function j(m) {
66
- const { getPrefixCls: e } = O(T), d = e("draggable"), {
67
+ const { getPrefixCls: e } = O(T), p = e("draggable"), {
67
68
  className: D,
68
69
  children: x,
69
70
  direction: h = "vertical",
70
71
  onIndexChange: r,
71
- itemWrapperStyle: l
72
- } = m, [g, s] = u(null);
73
- return /* @__PURE__ */ I("div", { className: w(d, D), children: S.Children.map(x, (c, a) => /* @__PURE__ */ I(
72
+ itemWrapperStyle: g
73
+ } = m, [c, s] = u(null);
74
+ return /* @__PURE__ */ I("div", { className: w(p, D), children: y.Children.map(x, (f, a) => /* @__PURE__ */ I(
74
75
  N,
75
76
  {
76
- style: l,
77
- prefixCls: d,
77
+ style: g,
78
+ prefixCls: p,
78
79
  direction: h,
79
80
  onDragStart: () => s(a),
80
81
  onDragEnd: () => s(null),
81
82
  onDrop: (v, i) => {
82
- const n = g, o = i === "left" || i === "top" ? a : a + 1;
83
+ const n = c, o = i === "left" || i === "top" ? a : a + 1;
83
84
  n !== o && (r == null || r(o, n));
84
85
  },
85
- children: c
86
+ children: f
86
87
  }
87
88
  )) });
88
89
  }
package/Drawer.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as r } from "./chunk/BUCEs557.js";
1
+ import { D as r } from "./chunk/CP0odX99.js";
2
2
  export {
3
3
  r as default
4
4
  };
package/Dropdown.js CHANGED
@@ -1,201 +1,201 @@
1
- import { jsx as s, jsxs as J } from "react/jsx-runtime";
2
- import $ from "lodash/get";
3
- import l, { forwardRef as K, useContext as j, useRef as A } from "react";
4
- import { d as U } from "./chunk/DlLL5JQo.js";
5
- import { useMergeProps as z } from "./hooks/useMergeProps.js";
6
- import { useMergeValue as S } from "./hooks/useMergeValue.js";
7
- import W, { EventsByTriggerNeed as X } from "./Trigger.js";
8
- import { y as T } from "./chunk/BAWsPQBM.js";
9
- import { supportRef as Y } from "./utils/is.js";
10
- import Z from "./utils/omit.js";
11
- import ee, { pickDataAttributes as F } from "./utils/pick.js";
12
- import { findDOMNode as oe } from "./utils/reactDOM.js";
13
- import G from "@unicom-cloud/icons/IconUiMore";
14
- import N from "./Button.js";
15
- const te = {
1
+ import { jsx as s, jsxs as S } from "react/jsx-runtime";
2
+ import v from "lodash/get";
3
+ import l, { forwardRef as W, useContext as z, useRef as j } from "react";
4
+ import { a as F } from "./chunk/BJQ5UNa-.js";
5
+ import { c as G } from "./chunk/B5gK1Idp.js";
6
+ import { R as X } from "./chunk/HDUQku8d.js";
7
+ import Y, { EventsByTriggerNeed as Z } from "./Trigger.js";
8
+ import { m as U } from "./chunk/JPPo5nY_.js";
9
+ import { A as oo } from "./chunk/CkNSv2U7.js";
10
+ import { c as eo } from "./chunk/BdUcgWdu.js";
11
+ import { r as L, f as to } from "./chunk/D7NyvE5f.js";
12
+ import { g as no } from "./chunk/BUdtVdnv.js";
13
+ import Q from "@unicom-cloud/icons/IconUiMore";
14
+ import O from "./Button.js";
15
+ const ro = {
16
16
  position: "br",
17
17
  trigger: "hover",
18
18
  type: "default",
19
- icon: /* @__PURE__ */ s(G, {}),
19
+ icon: /* @__PURE__ */ s(Q, {}),
20
20
  unmountOnExit: !0
21
21
  };
22
- function ne(P, O) {
23
- const { componentConfig: u } = j(U), g = z(
24
- P,
25
- te,
22
+ function io(D, k) {
23
+ const { componentConfig: u } = z(F), d = G(
24
+ D,
25
+ ro,
26
26
  u == null ? void 0 : u["Dropdown.Button"]
27
27
  ), {
28
- className: x,
28
+ className: w,
29
29
  style: a,
30
- children: w,
30
+ children: B,
31
31
  disabled: t,
32
- position: b = "br",
32
+ position: g = "br",
33
33
  type: C = "default",
34
34
  size: n,
35
- icon: B = /* @__PURE__ */ s(G, {}),
36
- onClick: c,
37
- buttonProps: M,
35
+ icon: E = /* @__PURE__ */ s(Q, {}),
36
+ onClick: f,
37
+ buttonProps: V,
38
38
  rightButtonProps: r,
39
39
  // 潘启宝添加
40
- buttonsRender: h,
40
+ buttonsRender: b,
41
41
  ...i
42
- } = g;
42
+ } = d;
43
43
  let p = /* @__PURE__ */ s(
44
- N,
44
+ O,
45
45
  {
46
46
  disabled: t,
47
47
  type: C,
48
48
  size: n,
49
- onClick: c,
50
- ...M,
51
- children: w
49
+ onClick: f,
50
+ ...V,
51
+ children: B
52
52
  }
53
- ), o = /* @__PURE__ */ s(
54
- N,
53
+ ), e = /* @__PURE__ */ s(
54
+ O,
55
55
  {
56
56
  disabled: t,
57
57
  type: C,
58
58
  size: n,
59
- icon: B,
59
+ icon: E,
60
60
  ...r
61
61
  }
62
62
  );
63
- h && ([p, o] = h([p, o]));
64
- const f = t || !o || o.props && o.props.loading;
65
- return /* @__PURE__ */ J(
66
- N.Group,
63
+ b && ([p, e] = b([p, e]));
64
+ const h = t || !e || e.props && e.props.loading;
65
+ return /* @__PURE__ */ S(
66
+ O.Group,
67
67
  {
68
- className: x,
68
+ className: w,
69
69
  style: a,
70
- ref: O,
71
- ...F(g),
70
+ ref: k,
71
+ ...L(d),
72
72
  children: [
73
73
  p,
74
74
  /* @__PURE__ */ s(
75
- k,
75
+ R,
76
76
  {
77
77
  disabled: t,
78
- position: b,
78
+ position: g,
79
79
  ...i,
80
80
  triggerProps: {
81
- disabled: f,
81
+ disabled: h,
82
82
  ...i == null ? void 0 : i.triggerProps
83
83
  },
84
- children: o
84
+ children: e
85
85
  }
86
86
  )
87
87
  ]
88
88
  }
89
89
  );
90
90
  }
91
- const L = K(ne);
92
- L.displayName = "DropdownButton";
93
- function re(P, O) {
91
+ const q = W(io);
92
+ q.displayName = "DropdownButton";
93
+ function so(D, k) {
94
94
  const u = {
95
95
  position: "bl",
96
96
  trigger: "hover",
97
97
  unmountOnExit: !0
98
- }, g = {
98
+ }, d = {
99
99
  left: 4,
100
100
  right: 4,
101
101
  top: 4,
102
102
  bottom: 4
103
- }, { getPrefixCls: x, componentConfig: a, rtl: w } = j(U), t = z(
104
- P,
103
+ }, { getPrefixCls: w, componentConfig: a, rtl: B } = z(F), t = G(
104
+ D,
105
105
  u,
106
106
  a == null ? void 0 : a.Dropdown
107
107
  ), {
108
- trigger: b,
108
+ trigger: g,
109
109
  droplist: C,
110
110
  children: n,
111
- position: B,
112
- disabled: c,
113
- unmountOnExit: M,
111
+ position: E,
112
+ disabled: f,
113
+ unmountOnExit: V,
114
114
  triggerProps: r,
115
- getPopupContainer: h,
115
+ getPopupContainer: b,
116
116
  onVisibleChange: i,
117
117
  ...p
118
- } = t, o = x("dropdown"), f = A(null), [V, Q] = S(!1, {
118
+ } = t, e = w("dropdown"), h = j(null), [M, H] = X(!1, {
119
119
  defaultValue: t.defaultPopupVisible,
120
120
  value: t.popupVisible
121
- }), R = () => l.Children.only(C || /* @__PURE__ */ s("span", {})), E = (e) => {
122
- var m;
123
- Q(e), i == null || i(e), (m = r == null ? void 0 : r.onVisibleChange) == null || m.call(r, e);
124
- }, q = (e) => {
125
- e !== V && E(e);
126
- }, H = () => {
127
- const e = R();
128
- if ($(e, "type.__PQB_MENU__") || $(e, "props.isMenu")) {
129
- let m = !0;
130
- for (const y of l.Children.toArray(e.props.children))
121
+ }), _ = () => l.Children.only(C || /* @__PURE__ */ s("span", {})), N = (o) => {
122
+ var c;
123
+ H(o), i == null || i(o), (c = r == null ? void 0 : r.onVisibleChange) == null || c.call(r, o);
124
+ }, J = (o) => {
125
+ o !== M && N(o);
126
+ }, K = () => {
127
+ const o = _();
128
+ if (v(o, "type.__PQB_MENU__") || v(o, "props.isMenu")) {
129
+ let c = !0;
130
+ for (const y of l.Children.toArray(o.props.children))
131
131
  if (y != null) {
132
- m = !1;
132
+ c = !1;
133
133
  break;
134
134
  }
135
- return l.cloneElement(e, {
136
- prefixCls: T(`${o}-menu`, {
137
- [`${o}-menu-hidden`]: m
135
+ return l.cloneElement(o, {
136
+ prefixCls: U(`${e}-menu`, {
137
+ [`${e}-menu-hidden`]: c
138
138
  }),
139
139
  inDropdown: !0,
140
140
  selectable: !1,
141
141
  onClickMenuItem: (...y) => {
142
- var I;
143
- let D = null;
144
- const v = R();
145
- v.props.onClickMenuItem && (D = v.props.onClickMenuItem(
142
+ var x, T, A;
143
+ let P = null;
144
+ const I = _();
145
+ I.props.onClickMenuItem && (P = I.props.onClickMenuItem(
146
146
  ...y
147
147
  ));
148
- const d = f.current && f.current.getRootElement();
149
- (I = d == null ? void 0 : d.focus) == null || I.call(d), D instanceof Promise ? D.finally(
150
- () => E(!1)
151
- ) : D !== !1 && E(!1);
148
+ const m = (T = (x = h.current) == null ? void 0 : x.getRootElement) == null ? void 0 : T.call(x);
149
+ (A = m == null ? void 0 : m.focus) == null || A.call(m), P instanceof Promise ? P.finally(
150
+ () => N(!1)
151
+ ) : P !== !1 && N(!1);
152
152
  }
153
153
  });
154
154
  }
155
- return e;
156
- }, _ = A();
155
+ return o;
156
+ }, $ = j();
157
157
  return /* @__PURE__ */ s(
158
- W,
158
+ Y,
159
159
  {
160
- ref: (e) => f.current = e,
160
+ ref: h,
161
161
  classNames: "slideDynamicOrigin",
162
- childrenPrefix: o,
163
- trigger: b,
164
- popup: H,
162
+ childrenPrefix: e,
163
+ trigger: g,
164
+ popup: K,
165
165
  mouseEnterDelay: 400,
166
166
  mouseLeaveDelay: 400,
167
- disabled: c,
168
- unmountOnExit: M,
169
- position: B,
170
- popupVisible: V,
171
- popupAlign: g,
172
- getPopupContainer: h,
173
- alignPoint: b === "contextMenu",
174
- ...ee(p, X),
175
- ...F(p),
176
- ...Z(r, ["onVisibleChange"]),
177
- getTargetDOMNode: () => oe(_.current),
178
- onVisibleChange: q,
167
+ disabled: f,
168
+ unmountOnExit: V,
169
+ position: E,
170
+ popupVisible: M,
171
+ popupAlign: d,
172
+ getPopupContainer: b,
173
+ alignPoint: g === "contextMenu",
174
+ ...to(p, Z),
175
+ ...L(p),
176
+ ...eo(r, ["onVisibleChange"]),
177
+ getTargetDOMNode: () => no($.current),
178
+ onVisibleChange: J,
179
179
  children: l.isValidElement(n) ? l.cloneElement(n, {
180
- ...typeof c == "boolean" ? { disabled: c } : {},
181
- className: T(
180
+ ...typeof f == "boolean" ? { disabled: f } : {},
181
+ className: U(
182
182
  {
183
- [`${o}-popup-visible`]: V,
184
- [`${[o]}-rtl`]: w
183
+ [`${e}-popup-visible`]: M,
184
+ [`${[e]}-rtl`]: B
185
185
  },
186
186
  n.props.className
187
187
  ),
188
- ref: Y(n) ? (e) => {
189
- _.current = e;
188
+ ref: oo(n) ? (o) => {
189
+ $.current = o;
190
190
  } : void 0
191
191
  }) : n
192
192
  }
193
193
  );
194
194
  }
195
- const ie = l.forwardRef(re), k = ie;
196
- k.displayName = "Dropdown";
197
- k.Button = L;
195
+ const po = l.forwardRef(so), R = po;
196
+ R.displayName = "Dropdown";
197
+ R.Button = q;
198
198
  export {
199
- L as DropdownButton,
200
- k as default
199
+ q as DropdownButton,
200
+ R as default
201
201
  };