@unicom-cloud/ui 0.8.66 → 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 (357) 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 -238
  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 +1445 -1380
  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/{BHgJ5Y3T.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/{DTBtQQ2H.js → BBvWDeuZ.js} +67 -67
  87. package/chunk/BCftTxEy.js +626 -0
  88. package/chunk/{CZOP_ZHJ.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/{CcV4wQB1.js → C42LIMP9.js} +244 -242
  105. package/chunk/C4YkFMzC.js +778 -0
  106. package/chunk/{Bh23P4l7.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/{DNAigumg.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/{BnSVm1YC.js → CNmmhbCn.js} +32 -32
  113. package/chunk/{BFipyA67.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/{jhQQCFMn.js → C_gJWGGh.js} +201 -201
  118. package/chunk/{Bc7t9jkb.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/{DnvO8A0Z.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/{znkyQ-HR.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/{Du-bw6qA.js → SLWP34OR.js} +90 -85
  154. package/chunk/VVKtwaGf.js +278 -0
  155. package/chunk/WPNpLxSI.js +16 -0
  156. package/chunk/{CPvvjMwZ.js → WpO_DsK4.js} +49 -48
  157. package/chunk/fdU3ang6.js +14 -0
  158. package/chunk/{DQAot004.js → fkclKOAL.js} +298 -292
  159. package/chunk/flvYlqx3.js +22 -0
  160. package/chunk/kTDayEpF.js +288 -0
  161. package/chunk/{CssIjN1g.js → pZoNQ75H.js} +31 -31
  162. package/chunk/qFf1w_Jq.js +8 -0
  163. package/chunk/{CHnFKgbk.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/-zpSUpGE.js +0 -1501
  332. package/chunk/BAWsPQBM.js +0 -11
  333. package/chunk/BIT0j3HT.js +0 -269
  334. package/chunk/BbLKnaNO.js +0 -871
  335. package/chunk/Bfhv56O2.js +0 -638
  336. package/chunk/C2lIz2F9.js +0 -60
  337. package/chunk/C6QWSzsM.js +0 -376
  338. package/chunk/CVkHTbic.js +0 -995
  339. package/chunk/CeGEvXby.js +0 -278
  340. package/chunk/D3NFxdmG.js +0 -518
  341. package/chunk/DApXtulb.js +0 -1102
  342. package/chunk/DPByB1ab.js +0 -698
  343. package/chunk/DV1Ab_cG.js +0 -284
  344. package/chunk/dBnNCOIU.js +0 -778
  345. package/chunk/it8qlDZ3.js +0 -1032
  346. package/chunk/l0sNRNKZ.js +0 -1
  347. package/chunk/te_43YrB.js +0 -776
  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
package/ResizeBox.js CHANGED
@@ -1,271 +1,272 @@
1
- import { jsx as m, jsxs as ft } from "react/jsx-runtime";
2
- import vt from "lodash/isNumber";
3
- import Wt, { useContext as ut, useRef as F, useEffect as lt, forwardRef as Ct, useState as st, useImperativeHandle as zt } from "react";
4
- import { d as mt } from "./chunk/-zpSUpGE.js";
5
- import { useMergeProps as Yt } from "./hooks/useMergeProps.js";
6
- import { useMergeValue as Tt } from "./hooks/useMergeValue.js";
7
- import { y as P } from "./chunk/BAWsPQBM.js";
8
- import { on as y, off as $ } from "./utils/dom.js";
9
- import Mt from "./utils/omit.js";
1
+ import { jsx as m, jsxs as ut } from "react/jsx-runtime";
2
+ import wt from "lodash/isNumber";
3
+ import Wt, { useContext as mt, useRef as Y, useEffect as ft, forwardRef as zt, useState as st, useImperativeHandle as Ct } from "react";
4
+ import { a as gt } from "./chunk/BJQ5UNa-.js";
5
+ import { c as Yt } from "./chunk/B5gK1Idp.js";
6
+ import { R as Tt } from "./chunk/HDUQku8d.js";
7
+ import { m as P } from "./chunk/JPPo5nY_.js";
8
+ import { on as $, off as y } from "./utils/dom.js";
9
+ import { c as Ot } from "./chunk/BdUcgWdu.js";
10
10
  import Ft from "@unicom-cloud/icons/IconUiCaretDown";
11
11
  import bt from "@unicom-cloud/icons/IconUiCaretLeft";
12
12
  import It from "@unicom-cloud/icons/IconUiCaretRight";
13
13
  import kt from "@unicom-cloud/icons/IconUiCaretUp";
14
14
  import Ut from "@unicom-cloud/icons/IconUiDragDot";
15
- import Vt from "@unicom-cloud/icons/IconUiDragDotVertical";
16
- import wt from "lodash/isFunction";
17
- import "./utils/is.js";
15
+ import _t from "@unicom-cloud/icons/IconUiDragDotVertical";
16
+ import lt from "lodash/isFunction";
17
+ import "./chunk/CkNSv2U7.js";
18
+ import { l as Vt } from "./chunk/flvYlqx3.js";
18
19
  import St from "lodash/isPlainObject.js";
19
- import { useIsomorphicLayoutEffect as _t } from "./hooks/useIsomorphicLayoutEffect.js";
20
+ import { s as Gt } from "./chunk/DcveZuqd.js";
20
21
  import it from "lodash/isPlainObject";
21
22
  import Lt from "lodash/isString";
22
23
  import Pt from "lodash/isUndefined";
23
24
  function Nt(r) {
24
25
  const {
25
- className: ot,
26
+ className: nt,
26
27
  direction: g,
27
- icon: q,
28
- onMouseDown: J,
29
- onResize: x,
30
- children: K,
31
- collapsible: z = {},
32
- resizable: X = !0,
28
+ icon: j,
29
+ onMouseDown: q,
30
+ onResize: w,
31
+ children: J,
32
+ collapsible: C = {},
33
+ resizable: A = !0,
33
34
  renderChildren: b,
34
- ...Q
35
- } = r, { getPrefixCls: rt, rtl: M } = ut(mt), d = rt("resizebox-trigger"), D = g === "horizontal", N = M && !D, T = P(
35
+ ...K
36
+ } = r, { getPrefixCls: ot, rtl: O } = mt(gt), d = ot("resizebox-trigger"), D = g === "horizontal", N = O && !D, T = P(
36
37
  d,
37
38
  `${d}-${D ? "horizontal" : "vertical"}`,
38
- { [`${d}-not-resizable`]: !X },
39
- { [`${d}-rtl`]: M },
40
- ot
41
- ), l = F(), k = N ? [/* @__PURE__ */ m(It, {}, "prev"), /* @__PURE__ */ m(bt, {}, "next")] : [/* @__PURE__ */ m(bt, {}, "prev"), /* @__PURE__ */ m(It, {}, "next")], I = St(z.prev) ? {
42
- ...z.prev,
43
- icon: z.prev.icon || (D ? /* @__PURE__ */ m(kt, {}) : k[0])
44
- } : {}, E = St(z.next) ? {
45
- ...z.next,
46
- icon: z.next.icon || (D ? /* @__PURE__ */ m(Ft, {}) : k[1])
47
- } : {}, U = () => I.icon && !I.collapsed || E.collapsed ? /* @__PURE__ */ m(
39
+ { [`${d}-not-resizable`]: !A },
40
+ { [`${d}-rtl`]: O },
41
+ nt
42
+ ), l = Y(), F = N ? [/* @__PURE__ */ m(It, {}, "prev"), /* @__PURE__ */ m(bt, {}, "next")] : [/* @__PURE__ */ m(bt, {}, "prev"), /* @__PURE__ */ m(It, {}, "next")], I = St(C.prev) ? {
43
+ ...C.prev,
44
+ icon: C.prev.icon || (D ? /* @__PURE__ */ m(kt, {}) : F[0])
45
+ } : {}, E = St(C.next) ? {
46
+ ...C.next,
47
+ icon: C.next.icon || (D ? /* @__PURE__ */ m(Ft, {}) : F[1])
48
+ } : {}, k = () => I.icon && !I.collapsed || E.collapsed ? /* @__PURE__ */ m(
48
49
  "span",
49
50
  {
50
51
  className: P(`${d}-icon`, P(`${d}-prev`)),
51
52
  onClick: I.onClick,
52
53
  children: I.icon
53
54
  }
54
- ) : /* @__PURE__ */ m("span", { className: P(`${d}-icon-empty`) }), tt = () => E.icon && !E.collapsed || I.collapsed ? /* @__PURE__ */ m(
55
+ ) : /* @__PURE__ */ m("span", { className: P(`${d}-icon-empty`) }), Q = () => E.icon && !E.collapsed || I.collapsed ? /* @__PURE__ */ m(
55
56
  "span",
56
57
  {
57
58
  className: P(`${d}-icon`, P(`${d}-next`)),
58
59
  onClick: E.onClick,
59
60
  children: E.icon
60
61
  }
61
- ) : /* @__PURE__ */ m("span", { className: P(`${d}-icon-empty`) }), w = () => X ? /* @__PURE__ */ m("span", { className: `${d}-icon`, children: q || (D ? /* @__PURE__ */ m(Ut, {}) : /* @__PURE__ */ m(Vt, {})) }) : /* @__PURE__ */ m("span", { className: P(`${d}-icon-empty`) }), O = U(), f = w(), h = tt(), V = () => /* @__PURE__ */ ft("div", { className: `${d}-icon-wrapper`, children: [
62
- O,
63
- f,
62
+ ) : /* @__PURE__ */ m("span", { className: P(`${d}-icon-empty`) }), p = () => A ? /* @__PURE__ */ m("span", { className: `${d}-icon`, children: j || (D ? /* @__PURE__ */ m(Ut, {}) : /* @__PURE__ */ m(_t, {})) }) : /* @__PURE__ */ m("span", { className: P(`${d}-icon-empty`) }), M = k(), a = p(), h = Q(), U = () => /* @__PURE__ */ ut("div", { className: `${d}-icon-wrapper`, children: [
63
+ M,
64
+ a,
64
65
  h
65
66
  ] });
66
- return X ? (lt(() => {
67
- let c;
68
- return l.current && (c = new ResizeObserver(x), c.observe(l.current)), () => {
69
- var H, _;
70
- l.current && ((H = c == null ? void 0 : c.unobserve) == null || H.call(c, l.current)), (_ = c == null ? void 0 : c.disconnect) == null || _.call(c), c = null;
67
+ return A ? (ft(() => {
68
+ if (!lt(w)) return;
69
+ const u = Vt([l.current], w);
70
+ return () => {
71
+ u();
71
72
  };
72
- }, [l.current]), /* @__PURE__ */ m(
73
+ }, [l.current, w]), /* @__PURE__ */ m(
73
74
  "div",
74
75
  {
75
76
  ref: l,
76
- ...Mt(Q, ["style"]),
77
+ ...Ot(K, ["style"]),
77
78
  className: T,
78
- onMouseDown: J,
79
- children: wt(b) ? b(O, f, h) : K || V()
79
+ onMouseDown: q,
80
+ children: lt(b) ? b(M, a, h) : J || U()
80
81
  }
81
- )) : /* @__PURE__ */ m("div", { className: T, children: wt(b) ? b(O, f, h) : K || V() });
82
+ )) : /* @__PURE__ */ m("div", { className: T, children: lt(b) ? b(M, a, h) : J || U() });
82
83
  }
83
- const dt = "horizontal", Dt = "vertical";
84
- function Gt(r, ot) {
84
+ const ht = "horizontal", Dt = "vertical";
85
+ function jt(r, nt) {
85
86
  const {
86
87
  style: g,
87
- className: q,
88
- component: J = "div",
89
- direction: x = "horizontal",
90
- icon: K,
91
- size: z = 0.5,
92
- min: X,
88
+ className: j,
89
+ component: q = "div",
90
+ direction: w = "horizontal",
91
+ icon: J,
92
+ size: C = 0.5,
93
+ min: A,
93
94
  max: b,
94
- panes: Q,
95
- disabled: rt,
96
- trigger: M
97
- } = r, { getPrefixCls: d, rtl: D } = ut(mt), N = d("resizebox-split"), T = x.includes(dt), l = x.includes("reverse"), k = T && D, I = !T, E = P(
95
+ panes: K,
96
+ disabled: ot,
97
+ trigger: O
98
+ } = r, { getPrefixCls: d, rtl: D } = mt(gt), N = d("resizebox-split"), T = w.includes(ht), l = w.includes("reverse"), F = T && D, I = !T, E = P(
98
99
  N,
99
- `${N}-${T ? dt : Dt}`,
100
+ `${N}-${T ? ht : Dt}`,
100
101
  { [`${N}-rtl`]: D },
101
- q
102
- ), [U, tt] = Q, w = typeof z == "string", [O, f] = st(parseFloat(z)), [h, V] = st(0), c = F({
102
+ j
103
+ ), [k, Q] = K, p = typeof C == "string", [M, a] = st(parseFloat(C)), [h, U] = st(0), u = Y({
103
104
  startX: 0,
104
105
  startY: 0,
105
106
  startWidth: 0,
106
107
  startHeight: 0,
107
108
  startOffset: 0,
108
109
  moving: !1
109
- }), H = F(), _ = F([]);
110
- zt(ot, () => H.current, []);
111
- function L(t, e) {
110
+ }), Z = Y(), rt = Y([]);
111
+ Ct(nt, () => Z.current, []);
112
+ function _(t, e) {
112
113
  return parseFloat(t) / parseFloat(e);
113
114
  }
114
- function B(t, e, n, o) {
115
- const s = typeof X == "string" ? L(parseFloat(X), t) : X || 0, a = typeof b == "string" ? L(parseFloat(b), t) : b || 1;
116
- let u = l ? -1 : 1;
117
- u *= k ? -1 : 1;
118
- let A = w ? e + (o - n) * u : L(
119
- t * e + (o - n) * u,
115
+ function X(t, e, n, o) {
116
+ const s = typeof A == "string" ? _(parseFloat(A), t) : A || 0, c = typeof b == "string" ? _(parseFloat(b), t) : b || 1;
117
+ let f = l ? -1 : 1;
118
+ f *= F ? -1 : 1;
119
+ let H = p ? e + (o - n) * f : _(
120
+ t * e + (o - n) * f,
120
121
  t
121
122
  );
122
- const nt = w ? s * t : s, W = w ? a * t : a;
123
- return A = Math.max(A, nt), A = Math.min(A, W), A;
123
+ const et = p ? s * t : s, B = p ? c * t : c;
124
+ return H = Math.max(H, et), H = Math.min(H, B), H;
124
125
  }
125
- function G(t) {
126
+ function V(t) {
126
127
  var e, n, o;
127
- (e = r.onMovingStart) == null || e.call(r), c.current.moving = !0, c.current.startX = t.pageX, c.current.startY = t.pageY, c.current.startWidth = (n = H.current) == null ? void 0 : n.offsetWidth, c.current.startHeight = (o = H.current) == null ? void 0 : o.offsetHeight, c.current.startOffset = O, y(window, "mousemove", j), y(window, "touchmove", j), y(window, "mouseup", Z), y(window, "touchend", Z), y(window, "contextmenu", Z), document.body.style.cursor = I ? "row-resize" : "col-resize";
128
+ (e = r.onMovingStart) == null || e.call(r), u.current.moving = !0, u.current.startX = t.pageX, u.current.startY = t.pageY, u.current.startWidth = (n = Z.current) == null ? void 0 : n.offsetWidth, u.current.startHeight = (o = Z.current) == null ? void 0 : o.offsetHeight, u.current.startOffset = M, $(window, "mousemove", G), $(window, "touchmove", G), $(window, "mouseup", L), $(window, "touchend", L), $(window, "contextmenu", L), document.body.style.cursor = I ? "row-resize" : "col-resize";
128
129
  }
129
- function j(t) {
130
+ function G(t) {
130
131
  var e;
131
- if (c.current.moving) {
132
- const n = T ? B(
133
- c.current.startWidth,
134
- c.current.startOffset,
135
- c.current.startX,
132
+ if (u.current.moving) {
133
+ const n = T ? X(
134
+ u.current.startWidth,
135
+ u.current.startOffset,
136
+ u.current.startX,
136
137
  t.pageX
137
- ) : B(
138
- c.current.startHeight,
139
- c.current.startOffset,
140
- c.current.startY,
138
+ ) : X(
139
+ u.current.startHeight,
140
+ u.current.startOffset,
141
+ u.current.startY,
141
142
  t.pageY
142
143
  );
143
- f(n), (e = r.onMoving) == null || e.call(r, t, w ? `${n}px` : n);
144
+ a(n), (e = r.onMoving) == null || e.call(r, t, p ? `${n}px` : n);
144
145
  }
145
146
  }
146
- function Z() {
147
+ function L() {
147
148
  var t;
148
- c.current.moving = !1, $(window, "mousemove", j), $(window, "touchmove", j), $(window, "mouseup", Z), $(window, "touchend", Z), $(window, "contextmenu", Z), document.body.style.cursor = "default", (t = r.onMovingEnd) == null || t.call(r);
149
+ u.current.moving = !1, y(window, "mousemove", G), y(window, "touchmove", G), y(window, "mouseup", L), y(window, "touchend", L), y(window, "contextmenu", L), document.body.style.cursor = "default", (t = r.onMovingEnd) == null || t.call(r);
149
150
  }
150
151
  function ct(t) {
151
152
  const { contentRect: e } = t[0], n = e[I ? "height" : "width"];
152
- V(n);
153
+ U(n);
153
154
  }
154
155
  function i() {
155
- const t = w ? "px" : "%";
156
- return O ? `calc(${w ? O : O * 100}${t} - ${h / 2}px)` : `0${t}`;
156
+ const t = p ? "px" : "%";
157
+ return M ? `calc(${p ? M : M * 100}${t} - ${h / 2}px)` : `0${t}`;
157
158
  }
158
- lt(() => {
159
+ ft(() => {
159
160
  var t;
160
- (t = r.onPaneResize) == null || t.call(r, _.current);
161
- }, [O, h]), _t(() => {
162
- const t = parseFloat(z);
163
- O !== t && f(t);
164
- }, [z]);
165
- const v = J, p = /* @__PURE__ */ m(
161
+ (t = r.onPaneResize) == null || t.call(r, rt.current);
162
+ }, [M, h]), Gt(() => {
163
+ const t = parseFloat(C);
164
+ M !== t && a(t);
165
+ }, [C]);
166
+ const v = q, x = /* @__PURE__ */ m(
166
167
  "div",
167
168
  {
168
169
  className: P(`${N}-pane`, "first-pane"),
169
170
  style: { flexBasis: i() },
170
171
  ref: (t) => {
171
- _.current[0] = t;
172
+ rt.current[0] = t;
172
173
  },
173
- children: U
174
+ children: k
174
175
  }
175
176
  ), R = /* @__PURE__ */ m(
176
177
  "div",
177
178
  {
178
179
  className: P(`${N}-pane`, "second-pane"),
179
180
  ref: (t) => {
180
- _.current[1] = t;
181
+ rt.current[1] = t;
181
182
  },
182
- children: tt
183
+ children: Q
183
184
  }
184
- ), S = l ? [R, p] : [p, R];
185
- return /* @__PURE__ */ ft(v, { style: g, className: E, ref: H, children: [
185
+ ), S = l ? [R, x] : [x, R];
186
+ return /* @__PURE__ */ ut(v, { style: g, className: E, ref: Z, children: [
186
187
  S[0],
187
- !rt && /* @__PURE__ */ m(
188
+ !ot && /* @__PURE__ */ m(
188
189
  Nt,
189
190
  {
190
191
  className: `${N}-trigger`,
191
- direction: I ? dt : Dt,
192
- icon: K,
193
- onMouseDown: G,
192
+ direction: I ? ht : Dt,
193
+ icon: J,
194
+ onMouseDown: V,
194
195
  onResize: ct,
195
- children: M
196
+ children: O
196
197
  }
197
198
  ),
198
199
  S[1]
199
200
  ] });
200
201
  }
201
- const Ht = Ct(Gt);
202
+ const Ht = zt(jt);
202
203
  Ht.displayName = "ResizeBoxSplit";
203
- const ht = "horizontal", Et = "vertical";
204
- function jt(r, ot) {
204
+ const vt = "horizontal", Et = "vertical";
205
+ function Zt(r, nt) {
205
206
  const {
206
207
  panes: g,
207
- style: q,
208
- className: J,
209
- component: x = "div",
210
- direction: K = "horizontal",
211
- icon: z,
212
- ...X
213
- } = r, { getPrefixCls: b, rtl: Q } = ut(mt), rt = 1 / g.length, M = F(), d = F(
208
+ style: j,
209
+ className: q,
210
+ component: w = "div",
211
+ direction: J = "horizontal",
212
+ icon: C,
213
+ ...A
214
+ } = r, { getPrefixCls: b, rtl: K } = mt(gt), ot = 1 / g.length, O = Y(), d = Y(
214
215
  new Array(g.length).fill({
215
216
  moving: !1,
216
217
  startOffset: 0,
217
218
  startPosition: 0
218
219
  })
219
- ), D = F([]), N = F(0), T = F([]), [l, k] = st(
220
- new Array(g.length).fill(rt)
221
- ), [I, E] = st(!1), [U, tt] = st(
220
+ ), D = Y([]), N = Y(0), T = Y([]), [l, F] = st(
221
+ new Array(g.length).fill(ot)
222
+ ), [I, E] = st(!1), [k, Q] = st(
222
223
  new Array(g.length).fill(0)
223
- ), [w, O] = st(
224
+ ), [p, M] = st(
224
225
  new Array(Math.max(g.length - 1, 0)).fill({ prev: !1, next: !1 })
225
- ), f = b("resizebox-split-group"), h = K === ht, V = h && Q, c = !h, H = P(
226
- f,
227
- `${f}-${h ? ht : Et}`,
228
- { [`${f}-moving`]: I },
229
- { [`${f}-rtl`]: Q },
230
- J
231
- ), _ = x, L = () => {
226
+ ), a = b("resizebox-split-group"), h = J === vt, U = h && K, u = !h, Z = P(
227
+ a,
228
+ `${a}-${h ? vt : Et}`,
229
+ { [`${a}-moving`]: I },
230
+ { [`${a}-rtl`]: K },
231
+ q
232
+ ), rt = w, _ = () => {
232
233
  let t = [];
233
234
  g.forEach((s) => {
234
- const { size: a } = s;
235
- Pt(a) ? t.push(void 0) : t.push(G(a));
235
+ const { size: c } = s;
236
+ Pt(c) ? t.push(void 0) : t.push(V(c));
236
237
  });
237
- const e = t.filter((s) => !s), o = (1 - t.reduce((s, a) => (s || 0) + (a || 0), 0)) / e.length;
238
+ const e = t.filter((s) => !s), o = (1 - t.reduce((s, c) => (s || 0) + (c || 0), 0)) / e.length;
238
239
  return t = t.map((s) => Pt(s) ? o : s), t;
239
- }, B = (t) => {
240
- const e = U[t - 1] || 0, n = U[t];
240
+ }, X = (t) => {
241
+ const e = k[t - 1] || 0, n = k[t];
241
242
  return `calc(${l[t] * 100}% - ${(e + n) / 2}px)`;
242
243
  };
243
- function G(t) {
244
- const e = h ? M.current.offsetWidth : M.current.offsetHeight;
245
- if (!t || vt(t) && t < 0)
244
+ function V(t) {
245
+ const e = h ? O.current.offsetWidth : O.current.offsetHeight;
246
+ if (!t || wt(t) && t < 0)
246
247
  return 0;
247
248
  const n = Lt(t) ? parseFloat(t) / e : t;
248
249
  return Math.min(n, 1);
249
250
  }
250
- const j = (t) => {
251
- const e = Math.min(t + 1, g.length - 1), n = l[t] + l[e], o = G(g[t].min) || 0;
252
- let s = G(g[t].max) || n;
253
- const a = G(g[e].min) || 0;
254
- let u = G(g[e].max) || n;
255
- return s = Math.min(n - a, s), u = Math.min(n - o, u), {
251
+ const G = (t) => {
252
+ const e = Math.min(t + 1, g.length - 1), n = l[t] + l[e], o = V(g[t].min) || 0;
253
+ let s = V(g[t].max) || n;
254
+ const c = V(g[e].min) || 0;
255
+ let f = V(g[e].max) || n;
256
+ return s = Math.min(n - c, s), f = Math.min(n - o, f), {
256
257
  currentMin: o,
257
258
  currentMax: s,
258
- nextMin: a,
259
- nextMax: u
259
+ nextMin: c,
260
+ nextMax: f
260
261
  };
261
- }, Z = (t, e, n) => {
262
- const o = N.current, s = o + 1, a = [...l], u = V ? -1 : 1, et = l[o], A = l[s], nt = et + A, { currentMin: W, currentMax: C } = j(o);
263
- let Y = t + G(`${(n - e) * u}px`);
264
- return Y = Math.max(W, Y), Y = Math.min(C, Y), a[o] = Y, a[s] = nt - Y, a;
262
+ }, L = (t, e, n) => {
263
+ const o = N.current, s = o + 1, c = [...l], f = U ? -1 : 1, tt = l[o], H = l[s], et = tt + H, { currentMin: B, currentMax: z } = G(o);
264
+ let W = t + V(`${(n - e) * f}px`);
265
+ return W = Math.max(B, W), W = Math.min(z, W), c[o] = W, c[s] = et - W, c;
265
266
  };
266
267
  function ct(t, e) {
267
- const { contentRect: n } = t[0], o = n[c ? "height" : "width"], s = [...U];
268
- s[e] = o, tt(s);
268
+ const { contentRect: n } = t[0], o = n[u ? "height" : "width"], s = [...k];
269
+ s[e] = o, Q(s);
269
270
  }
270
271
  const i = (t) => {
271
272
  let e = g[t].collapsible;
@@ -273,30 +274,30 @@ function jt(r, ot) {
273
274
  const { prev: n, next: o } = e;
274
275
  if (!n && !o)
275
276
  return {};
276
- if (!w[t])
277
+ if (!p[t])
277
278
  return {};
278
- const s = !!n || !n && w[t].next, a = !!o || !o && w[t].prev;
279
- return { hasPrev: s, hasNext: a };
279
+ const s = !!n || !n && p[t].next, c = !!o || !o && p[t].prev;
280
+ return { hasPrev: s, hasNext: c };
280
281
  };
281
282
  function v(t, e) {
282
283
  var o;
283
284
  (o = r.onMovingStart) == null || o.call(r, e), N.current = e;
284
285
  const n = d.current[e];
285
- n.moving = !0, n.startOffset = l[e], n.startPosition = h ? t.pageX : t.pageY, E(!0), y(window, "mousemove", p), y(window, "touchmove", p), y(window, "mouseup", R), y(window, "touchend", R), y(window, "contextmenu", R), document.body.style.cursor = c ? "row-resize" : "col-resize";
286
+ n.moving = !0, n.startOffset = l[e], n.startPosition = h ? t.pageX : t.pageY, E(!0), $(window, "mousemove", x), $(window, "touchmove", x), $(window, "mouseup", R), $(window, "touchend", R), $(window, "contextmenu", R), document.body.style.cursor = u ? "row-resize" : "col-resize";
286
287
  }
287
- function p(t) {
288
+ function x(t) {
288
289
  var s;
289
- const e = N.current, n = d.current[e], o = h ? M.current.offsetWidth : M.current.offsetHeight;
290
+ const e = N.current, n = d.current[e], o = h ? O.current.offsetWidth : O.current.offsetHeight;
290
291
  if (n.moving) {
291
- const a = Z(
292
+ const c = L(
292
293
  n.startOffset,
293
294
  n.startPosition,
294
295
  h ? t.pageX : t.pageY
295
296
  );
296
- k(a), T.current = a, (s = r == null ? void 0 : r.onMoving) == null || s.call(
297
+ F(c), T.current = c, (s = r == null ? void 0 : r.onMoving) == null || s.call(
297
298
  r,
298
299
  t,
299
- a.map((u) => `${u * o}px`),
300
+ c.map((f) => `${f * o}px`),
300
301
  e
301
302
  );
302
303
  }
@@ -304,79 +305,79 @@ function jt(r, ot) {
304
305
  function R() {
305
306
  var e;
306
307
  const t = N.current;
307
- d.current[t].moving = !1, E(!1), $(window, "mousemove", p), $(window, "touchmove", p), $(window, "mouseup", R), $(window, "touchend", R), $(window, "contextmenu", R), document.body.style.cursor = "default", (e = r.onMovingEnd) == null || e.call(r, t);
308
+ d.current[t].moving = !1, E(!1), y(window, "mousemove", x), y(window, "touchmove", x), y(window, "mouseup", R), y(window, "touchend", R), y(window, "contextmenu", R), document.body.style.cursor = "default", (e = r.onMovingEnd) == null || e.call(r, t);
308
309
  }
309
310
  function S(t, e, n, o) {
310
- var yt, $t;
311
- const s = e + 1, a = [...l], u = l[e], et = l[s], A = u + et, nt = h ? M.current.offsetWidth : M.current.offsetHeight, { currentMin: W, nextMin: C } = j(e);
312
- let Y = T.current[e], at = T.current[s], gt = w[e][n];
313
- n === "prev" ? (et !== C || at === C) && (Y = W, at = A - W, gt = !0) : (u !== W || Y === W) && (Y = A - C, at = C, gt = !0), a[e] = Y, a[s] = at, (yt = r == null ? void 0 : r.onMoving) == null || yt.call(
311
+ var $t, yt;
312
+ const s = e + 1, c = [...l], f = l[e], tt = l[s], H = f + tt, et = h ? O.current.offsetWidth : O.current.offsetHeight, { currentMin: B, nextMin: z } = G(e);
313
+ let W = T.current[e], at = T.current[s], dt = p[e][n];
314
+ n === "prev" ? (tt !== z || at === z) && (W = B, at = H - B, dt = !0) : (f !== B || W === B) && (W = H - z, at = z, dt = !0), c[e] = W, c[s] = at, ($t = r == null ? void 0 : r.onMoving) == null || $t.call(
314
315
  r,
315
316
  t,
316
- a.map((Bt) => `${Bt * nt}px`),
317
+ c.map((Bt) => `${Bt * et}px`),
317
318
  e
318
- ), ($t = r.onMovingEnd) == null || $t.call(r, e), k(a), wt(o) && o(t, e, n, gt);
319
+ ), (yt = r.onMovingEnd) == null || yt.call(r, e), F(c), lt(o) && o(t, e, n, dt);
319
320
  }
320
- return lt(() => {
321
- const t = L();
322
- k(t), T.current = t;
323
- }, [JSON.stringify(g.map((t) => t.size))]), zt(ot, () => M.current, []), lt(() => {
321
+ return ft(() => {
322
+ const t = _();
323
+ F(t), T.current = t;
324
+ }, [JSON.stringify(g.map((t) => t.size))]), Ct(nt, () => O.current, []), ft(() => {
324
325
  const t = [];
325
326
  l.forEach((e, n) => {
326
- const o = { prev: !1, next: !1 }, s = n + 1, { currentMin: a, nextMin: u } = j(n);
327
- e === a ? o.prev = !0 : l[s] === u && (o.next = !0), t.push(o);
328
- }), O(t);
327
+ const o = { prev: !1, next: !1 }, s = n + 1, { currentMin: c, nextMin: f } = G(n);
328
+ e === c ? o.prev = !0 : l[s] === f && (o.next = !0), t.push(o);
329
+ }), M(t);
329
330
  }, [l]), /* @__PURE__ */ m(
330
- _,
331
+ rt,
331
332
  {
332
- ...Mt(X, [
333
+ ...Ot(A, [
333
334
  "onMovingStart",
334
335
  "onPaneResize",
335
336
  "onMoving",
336
337
  "onMovingEnd"
337
338
  ]),
338
- style: q,
339
- className: H,
340
- ref: M,
339
+ style: j,
340
+ className: Z,
341
+ ref: O,
341
342
  children: g.map((t, e) => {
342
343
  const {
343
344
  content: n,
344
345
  disabled: o,
345
346
  trigger: s,
346
- resizable: a = !0,
347
- collapsible: u = {}
348
- } = t, { hasPrev: et, hasNext: A } = i(e), nt = it(u) && it(u.prev) ? u.prev : {}, W = it(u) && it(u.next) ? u.next : {};
349
- return /* @__PURE__ */ ft(Wt.Fragment, { children: [
347
+ resizable: c = !0,
348
+ collapsible: f = {}
349
+ } = t, { hasPrev: tt, hasNext: H } = i(e), et = it(f) && it(f.prev) ? f.prev : {}, B = it(f) && it(f.next) ? f.next : {};
350
+ return /* @__PURE__ */ ut(Wt.Fragment, { children: [
350
351
  /* @__PURE__ */ m(
351
352
  "div",
352
353
  {
353
- className: `${f}-pane`,
354
- style: { flexBasis: B(e) },
355
- ref: (C) => D.current[e] = C,
354
+ className: `${a}-pane`,
355
+ style: { flexBasis: X(e) },
356
+ ref: (z) => D.current[e] = z,
356
357
  children: n
357
358
  }
358
359
  ),
359
360
  !o && e !== g.length - 1 && /* @__PURE__ */ m(
360
361
  Nt,
361
362
  {
362
- className: `${f}-trigger`,
363
- direction: c ? ht : Et,
364
- icon: z,
365
- onResize: (C) => ct(C, e),
366
- onMouseDown: (C) => v(C, e),
363
+ className: `${a}-trigger`,
364
+ direction: u ? vt : Et,
365
+ icon: C,
366
+ onResize: (z) => ct(z, e),
367
+ onMouseDown: (z) => v(z, e),
367
368
  collapsible: {
368
- prev: et ? {
369
- onClick: (C) => S(C, e, "prev", nt.onClick),
370
- icon: nt.icon,
371
- collapsed: w[e].prev
369
+ prev: tt ? {
370
+ onClick: (z) => S(z, e, "prev", et.onClick),
371
+ icon: et.icon,
372
+ collapsed: p[e].prev
372
373
  } : void 0,
373
- next: A ? {
374
- onClick: (C) => S(C, e, "next", W.onClick),
375
- icon: W.icon,
376
- collapsed: w[e].next
374
+ next: H ? {
375
+ onClick: (z) => S(z, e, "next", B.onClick),
376
+ icon: B.icon,
377
+ collapsed: p[e].next
377
378
  } : void 0
378
379
  },
379
- resizable: a,
380
+ resizable: c,
380
381
  renderChildren: s
381
382
  }
382
383
  )
@@ -385,19 +386,19 @@ function jt(r, ot) {
385
386
  }
386
387
  );
387
388
  }
388
- const At = Ct(jt);
389
+ const At = zt(Zt);
389
390
  At.displayName = "ResizeBoxSplitGroup";
390
- const Xt = "left", pt = "right", xt = "top", Rt = "bottom", Zt = [
391
+ const Xt = "left", pt = "right", xt = "top", Rt = "bottom", qt = [
391
392
  Xt,
392
393
  pt,
393
394
  xt,
394
395
  Rt
395
- ], qt = {
396
+ ], Jt = {
396
397
  component: "div",
397
398
  directions: ["right"],
398
399
  resizeIcons: {},
399
400
  resizeTriggers: {}
400
- }, Jt = (r) => {
401
+ }, Kt = (r) => {
401
402
  switch (r) {
402
403
  case "left":
403
404
  return "right";
@@ -407,23 +408,23 @@ const Xt = "left", pt = "right", xt = "top", Rt = "bottom", Zt = [
407
408
  return r;
408
409
  }
409
410
  };
410
- function Kt(r, ot) {
411
- const { getPrefixCls: g, componentConfig: q, rtl: J } = ut(mt), x = Yt(
411
+ function Qt(r, nt) {
412
+ const { getPrefixCls: g, componentConfig: j, rtl: q } = mt(gt), w = Yt(
412
413
  r,
413
- qt,
414
- q == null ? void 0 : q.ResizeBox
414
+ Jt,
415
+ j == null ? void 0 : j.ResizeBox
415
416
  ), {
416
- style: K,
417
- className: z,
418
- component: X,
417
+ style: J,
418
+ className: C,
419
+ component: A,
419
420
  directions: b,
420
- resizeIcons: Q,
421
- children: rt,
422
- resizeTriggers: M,
421
+ resizeIcons: K,
422
+ children: ot,
423
+ resizeTriggers: O,
423
424
  width: d,
424
425
  height: D,
425
426
  ...N
426
- } = x, T = J ? b.map((i) => Jt(i)) : b, l = g("resizebox"), k = P(l, { [`${l}-rtl`]: J }, z), [I, E] = st({}), [U, tt] = Tt(void 0, { value: d }), [w, O] = Tt(void 0, { value: D }), f = F({
427
+ } = w, T = q ? b.map((i) => Kt(i)) : b, l = g("resizebox"), F = P(l, { [`${l}-rtl`]: q }, C), [I, E] = st({}), [k, Q] = Tt(void 0, { value: d }), [p, M] = Tt(void 0, { value: D }), a = Y({
427
428
  startX: 0,
428
429
  startY: 0,
429
430
  startWidth: 0,
@@ -436,108 +437,110 @@ function Kt(r, ot) {
436
437
  left: 0,
437
438
  right: 0
438
439
  }
439
- }), h = F();
440
- zt(ot, () => h.current, []);
441
- function V(i) {
440
+ }), h = Y();
441
+ Ct(nt, () => h.current, []);
442
+ function U(i) {
442
443
  return [xt, Rt].indexOf(i) > -1;
443
444
  }
444
- function c(i, v) {
445
- if (i === 0) return 0;
446
- const p = i - v;
447
- return p <= 0 ? 0 : p;
445
+ function u(i, v) {
446
+ if (i === 0)
447
+ return 0;
448
+ const x = i - v;
449
+ return x <= 0 ? 0 : x;
448
450
  }
449
- function H(i) {
451
+ function Z(i) {
450
452
  const v = "data-pqb-origin-cursor";
451
453
  if (i)
452
454
  document.body.setAttribute(v, document.body.style.cursor), document.body.style.cursor = i;
453
455
  else {
454
- const p = document.body.getAttribute(v);
455
- document.body.style.cursor = p || "", document.body.removeAttribute(v);
456
+ const x = document.body.getAttribute(v);
457
+ document.body.style.cursor = x || "", document.body.removeAttribute(v);
456
458
  }
457
459
  }
458
- function _(i, v) {
460
+ function rt(i, v) {
459
461
  var e, n, o;
460
- (e = x.onMovingStart) == null || e.call(x), f.current.moving = !0, f.current.startX = v.pageX, f.current.startY = v.pageY, f.current.direction = i;
461
- const { top: p, left: R, right: S, bottom: t } = f.current.padding;
462
- f.current.startWidth = c(
462
+ (e = w.onMovingStart) == null || e.call(w), a.current.moving = !0, a.current.startX = v.pageX, a.current.startY = v.pageY, a.current.direction = i;
463
+ const { top: x, left: R, right: S, bottom: t } = a.current.padding;
464
+ a.current.startWidth = u(
463
465
  (n = h.current) == null ? void 0 : n.clientWidth,
464
466
  R + S
465
- ), f.current.startHeight = c(
467
+ ), a.current.startHeight = u(
466
468
  (o = h.current) == null ? void 0 : o.clientHeight,
467
- p + t
468
- ), y(window, "mousemove", L), y(window, "touchmove", L), y(window, "mouseup", B), y(window, "touchend", B), y(window, "contextmenu", B), H(
469
- V(i) ? "row-resize" : "col-resize"
469
+ x + t
470
+ ), $(window, "mousemove", _), $(window, "touchmove", _), $(window, "mouseup", X), $(window, "touchend", X), $(window, "contextmenu", X), Z(
471
+ U(i) ? "row-resize" : "col-resize"
470
472
  );
471
473
  }
472
- function L(i) {
474
+ function _(i) {
473
475
  var s;
474
- if (!f.current.moving) return !1;
475
- const { startX: v, startY: p, startWidth: R, startHeight: S } = f.current;
476
+ if (!a.current.moving)
477
+ return !1;
478
+ const { startX: v, startY: x, startWidth: R, startHeight: S } = a.current;
476
479
  let t = R, e = S;
477
- const n = i.pageX - v, o = i.pageY - p;
478
- switch (f.current.direction) {
480
+ const n = i.pageX - v, o = i.pageY - x;
481
+ switch (a.current.direction) {
479
482
  case Xt:
480
- t = R - n, tt(t);
483
+ t = R - n, Q(t);
481
484
  break;
482
485
  case pt:
483
- t = R + n, tt(t);
486
+ t = R + n, Q(t);
484
487
  break;
485
488
  case xt:
486
- e = S - o, O(e);
489
+ e = S - o, M(e);
487
490
  break;
488
491
  case Rt:
489
- e = S + o, O(e);
492
+ e = S + o, M(e);
490
493
  break;
491
494
  }
492
- (s = x.onMoving) == null || s.call(x, i, {
495
+ (s = w.onMoving) == null || s.call(w, i, {
493
496
  width: t,
494
497
  height: e
495
498
  });
496
499
  }
497
- function B() {
500
+ function X() {
498
501
  var i;
499
- f.current.moving = !1, G(), H(), (i = x.onMovingEnd) == null || i.call(x);
502
+ a.current.moving = !1, V(), Z(), (i = w.onMovingEnd) == null || i.call(w);
500
503
  }
501
- function G() {
502
- $(window, "mousemove", L), $(window, "touchmove", L), $(window, "mouseup", B), $(window, "touchend", B), $(window, "contextmenu", B);
504
+ function V() {
505
+ y(window, "mousemove", _), y(window, "touchmove", _), y(window, "mouseup", X), y(window, "touchend", X), y(window, "contextmenu", X);
503
506
  }
504
- function j(i, v) {
505
- const p = V(i), { contentRect: R } = v[0], S = `${i.slice(0, 1).toUpperCase()}${i.slice(1)}`, t = R[p ? "height" : "width"];
506
- f.current.padding[i] = t, E((e) => ({
507
+ function G(i, v) {
508
+ const x = U(i), { contentRect: R } = v[0], S = `${i.slice(0, 1).toUpperCase()}${i.slice(1)}`, t = R[x ? "height" : "width"];
509
+ a.current.padding[i] = t, E((e) => ({
507
510
  ...e,
508
511
  [`padding${S}`]: t
509
512
  }));
510
513
  }
511
- const Z = {
514
+ const L = {
512
515
  ...I,
513
- ...K || {},
514
- ...vt(U) ? { width: U } : {},
515
- ...vt(w) ? { height: w } : {}
516
+ ...J || {},
517
+ ...wt(k) ? { width: k } : {},
518
+ ...wt(p) ? { height: p } : {}
516
519
  };
517
- return /* @__PURE__ */ ft(
518
- X,
520
+ return /* @__PURE__ */ ut(
521
+ A,
519
522
  {
520
- ...Mt(N, ["onMovingStart", "onMoving", "onMovingEnd"]),
521
- style: Z,
522
- className: k,
523
+ ...Ot(N, ["onMovingStart", "onMoving", "onMovingEnd"]),
524
+ style: L,
525
+ className: F,
523
526
  ref: h,
524
527
  children: [
525
- rt,
528
+ ot,
526
529
  T.map((i) => {
527
- if (Zt.indexOf(i) !== -1)
530
+ if (qt.indexOf(i) !== -1)
528
531
  return /* @__PURE__ */ m(
529
532
  Nt,
530
533
  {
531
534
  className: `${l}-direction-${i}`,
532
- direction: V(i) ? "horizontal" : "vertical",
533
- icon: Q[i],
535
+ direction: U(i) ? "horizontal" : "vertical",
536
+ icon: K[i],
534
537
  onMouseDown: (v) => {
535
- _(i, v);
538
+ rt(i, v);
536
539
  },
537
540
  onResize: (v) => {
538
- j(i, v);
541
+ G(i, v);
539
542
  },
540
- children: M[i]
543
+ children: O[i]
541
544
  },
542
545
  i
543
546
  );
@@ -546,12 +549,12 @@ function Kt(r, ot) {
546
549
  }
547
550
  );
548
551
  }
549
- const Qt = Ct(Kt), Ot = Qt;
550
- Ot.Split = Ht;
551
- Ot.SplitGroup = At;
552
- Ot.displayName = "ResizeBox";
552
+ const te = zt(Qt), Mt = te;
553
+ Mt.Split = Ht;
554
+ Mt.SplitGroup = At;
555
+ Mt.displayName = "ResizeBox";
553
556
  export {
554
557
  Ht as ResizeBoxSplit,
555
558
  At as ResizeBoxSplitGroup,
556
- Ot as default
559
+ Mt as default
557
560
  };