@unicom-cloud/ui 0.8.54 → 0.8.56

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 (429) hide show
  1. package/Affix.js +36 -36
  2. package/Alert.js +41 -45
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +40 -40
  5. package/Avatar.js +36 -36
  6. package/BackTop.js +26 -26
  7. package/Badge.js +43 -43
  8. package/Breadcrumb.js +17 -17
  9. package/Button.js +42 -42
  10. package/Calendar.js +54 -56
  11. package/Card.js +28 -28
  12. package/Carousel.js +42 -43
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +11 -580
  17. package/Comment.js +14 -14
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +26 -26
  20. package/DatePicker.js +661 -670
  21. package/Descriptions.js +53 -53
  22. package/Divider.js +15 -15
  23. package/Draggable.js +16 -16
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +10 -10
  26. package/Empty.js +3 -3
  27. package/Form.js +10 -1410
  28. package/Grid.js +49 -49
  29. package/Icon.js +10 -10
  30. package/IconHover.js +2 -2
  31. package/Image.js +1 -1
  32. package/Input.js +1 -1
  33. package/InputNumber.js +7 -7
  34. package/InputTag.js +1 -1
  35. package/Layout.js +34 -34
  36. package/Link.js +26 -26
  37. package/List.js +39 -39
  38. package/Mentions.js +17 -17
  39. package/Menu.js +1 -1
  40. package/Message.js +3 -3
  41. package/Modal.js +1 -1
  42. package/Notice.js +4 -10
  43. package/Notification.js +3 -3
  44. package/OverflowEllipsis.js +18 -18
  45. package/PageHeader.js +26 -27
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +15 -15
  49. package/Popover.js +22 -22
  50. package/Progress.js +18 -18
  51. package/Radio.js +2 -2
  52. package/Rate.js +40 -43
  53. package/ResizeBox.js +191 -192
  54. package/Result.js +17 -17
  55. package/Select.js +1 -1
  56. package/SelectView.js +56 -56
  57. package/Skeleton.js +35 -35
  58. package/Slider.js +81 -81
  59. package/Space.js +27 -27
  60. package/SpeechSynthesis.js +29 -32
  61. package/Spin.js +15 -15
  62. package/Statistic.js +54 -54
  63. package/Steps.js +44 -44
  64. package/Switch.js +39 -38
  65. package/Table.js +488 -488
  66. package/Tabs.js +1 -1
  67. package/Tag.js +13 -14
  68. package/TimePicker.js +68 -68
  69. package/Timeline.js +1 -1
  70. package/Tooltip.js +27 -28
  71. package/Transfer.js +29 -30
  72. package/Tree.js +1 -1
  73. package/TreeSelect.js +1 -1
  74. package/Trigger.js +53 -52
  75. package/Typography.js +2 -737
  76. package/Upload.js +1 -1
  77. package/VerificationCode.js +1 -1
  78. package/Version.js +1 -1
  79. package/Watermark.js +1 -1
  80. package/chunk/1mEO29GP.js +23 -0
  81. package/chunk/5pZ3ayqs.js +29 -0
  82. package/chunk/9Gh1afjL.js +23 -0
  83. package/chunk/B1S1OEw6.js +29 -0
  84. package/chunk/{RRWbBHK-.js → B2Bp3i5u.js} +221 -221
  85. package/chunk/B45v5S9k.js +209 -0
  86. package/chunk/B6fn5y_s.js +23 -0
  87. package/chunk/B9PsJar0.js +118 -0
  88. package/chunk/BA02BFUV.js +41 -0
  89. package/chunk/BCk8e9fj.js +29 -0
  90. package/chunk/BHK9zpXn.js +207 -0
  91. package/chunk/BHLTzWzi.js +29 -0
  92. package/chunk/BK1FKNAX.js +41 -0
  93. package/chunk/BM6dpkeM.js +32 -0
  94. package/chunk/{DQ3uFRJD.js → BP7xX86Q.js} +223 -202
  95. package/chunk/BWx1cVT_.js +66 -0
  96. package/chunk/BbI3gqVr.js +23 -0
  97. package/chunk/{CIc4yo9k.js → BbYzi8M0.js} +46 -46
  98. package/chunk/Be7oeWU8.js +34 -0
  99. package/chunk/BeM2hfks.js +88 -0
  100. package/chunk/BkHxm4sv.js +41 -0
  101. package/chunk/{BUQBof6z.js → Bl-ODC57.js} +206 -207
  102. package/chunk/BlKc_pDZ.js +678 -0
  103. package/chunk/{BzqZZHGK.js → Bny52uiG.js} +48 -48
  104. package/chunk/{PuuHmqnW.js → BpwDupra.js} +238 -238
  105. package/chunk/BqxwlITu.js +52 -0
  106. package/chunk/BuEC_zcc.js +278 -0
  107. package/chunk/{CqcZfQQ4.js → Bv8ZRDFt.js} +80 -80
  108. package/chunk/{DZGcv_9A.js → C-w9pFY-.js} +32 -32
  109. package/chunk/C2fspJbE.js +23 -0
  110. package/chunk/C7Okdv4u.js +34 -0
  111. package/chunk/C95ipQ6b.js +41 -0
  112. package/chunk/{BzMYgxgO.js → CF3Telny.js} +26 -26
  113. package/chunk/CPl52AZh.js +206 -0
  114. package/chunk/CXNW5Y2a.js +23 -0
  115. package/chunk/Cb_oWoGj.js +40 -0
  116. package/chunk/CcX2pBUh.js +46 -0
  117. package/chunk/{BdJcAQ0Q.js → CggcswbO.js} +18 -18
  118. package/chunk/CilQ012k.js +1796 -0
  119. package/chunk/CkAOsst1.js +73 -0
  120. package/chunk/CnY8SvgY.js +126 -0
  121. package/chunk/{CTSIr-Pr.js → CwXmtKib.js} +89 -101
  122. package/chunk/{C3I_L73_.js → CwjaGytU.js} +39 -40
  123. package/chunk/{DTgc2wl4.js → D6RTBH4C.js} +36 -36
  124. package/chunk/D6mVoX-C.js +116 -0
  125. package/chunk/D9TqtOhq.js +40 -0
  126. package/chunk/{qSJXQ1qu.js → DBJ8d0o0.js} +183 -189
  127. package/chunk/{RL1SNlng.js → DDda6s72.js} +16 -16
  128. package/chunk/{BH5fVprw.js → DJmWXheU.js} +9 -9
  129. package/chunk/DPvnQJ-H.js +52 -0
  130. package/chunk/DQXq1QT0.js +58 -0
  131. package/chunk/DRJO1GfY.js +855 -0
  132. package/chunk/DUxWiN2U.js +1465 -0
  133. package/chunk/DYZzQ2uT.js +29 -0
  134. package/chunk/{CK0H_Yi4.js → DafaH1Qt.js} +140 -138
  135. package/chunk/{ShWkfsJd.js → DalIRWr7.js} +21 -21
  136. package/chunk/{CzTYWtfa.js → Dg2DmtzA.js} +31 -30
  137. package/chunk/DhLbnw3R.js +29 -0
  138. package/chunk/{BmtF7P8U.js → DkIjpuBZ.js} +170 -170
  139. package/chunk/Do1aMgY3.js +12 -0
  140. package/chunk/Dtnux4qL.js +38 -0
  141. package/chunk/{Niaq_og8.js → Dw4SJ4o1.js} +219 -225
  142. package/chunk/{DbtCtriE.js → DxNRWF67.js} +30 -31
  143. package/chunk/JnyGFb5j.js +284 -0
  144. package/chunk/Lk60-jkf.js +1098 -0
  145. package/chunk/V_IcWDFx.js +49 -0
  146. package/chunk/{DG7VgAhL.js → WkB0MERB.js} +107 -108
  147. package/chunk/bsawGxt8.js +32 -0
  148. package/chunk/cUuQh7L_.js +46 -0
  149. package/chunk/fqgc8r6C.js +29 -0
  150. package/chunk/m_kOQCiU.js +29 -0
  151. package/chunk/sl8s35SK.js +29 -0
  152. package/chunk/{Dki1RB5p.js → t51ig1FZ.js} +154 -155
  153. package/chunk/{BC0PujUD.js → yvbAFxtk.js} +119 -121
  154. package/hooks/index.js +52 -246
  155. package/hooks/useForceUpdate.js +6 -6
  156. package/hooks/useIntersectionObserver.js +12 -10
  157. package/hooks/useKeyboardEvent.js +7 -7
  158. package/hooks/useMedia.js +9 -12
  159. package/hooks/useMergeValue.js +10 -8
  160. package/hooks/useResizeObserver.js +16 -0
  161. package/hooks/useUpdateEffect.js +7 -9
  162. package/hooks/useWindowSize.js +16 -20
  163. package/icons.js +6003 -0
  164. package/index.js +377 -472
  165. package/locale/en-US.js +20 -6
  166. package/locale/ja-JP.js +4 -2
  167. package/locale/ko-KR.js +2 -2
  168. package/locale/pt-BR.js +3 -3
  169. package/locale/pt-PT.js +3 -3
  170. package/locale/tr-TR.js +11 -3
  171. package/locale/zh-CN.js +6 -0
  172. package/locale/zh-HK.js +2 -0
  173. package/locale/zh-TW.js +2 -0
  174. package/package.json +1 -1
  175. package/style.css +1 -1
  176. package/types/anchor/util.d.ts +1 -0
  177. package/types/button/index.d.ts +2 -2
  178. package/types/color-picker/colors.d.ts +1 -1
  179. package/types/date-picker/util.d.ts +1 -1
  180. package/types/hooks/index.d.ts +3 -101
  181. package/types/hooks/useForceUpdate.d.ts +1 -2
  182. package/types/hooks/useIntersectionObserver.d.ts +1 -1
  183. package/types/hooks/useKeyboardEvent.d.ts +2 -2
  184. package/types/hooks/useMergeProps.d.ts +1 -1
  185. package/types/hooks/useResizeObserver.d.ts +5 -0
  186. package/types/hooks/useUpdateEffect.d.ts +2 -3
  187. package/types/hooks/useWindowSize.d.ts +1 -1
  188. package/types/icons.d.ts +4 -0
  189. package/types/index.d.ts +12 -2
  190. package/types/locale/en-US.d.ts +4 -0
  191. package/types/locale/interface.d.ts +2 -0
  192. package/types/locale/ja-JP.d.ts +4 -0
  193. package/types/locale/zh-CN.d.ts +4 -0
  194. package/types/locale/zh-HK.d.ts +4 -0
  195. package/types/locale/zh-TW.d.ts +4 -0
  196. package/types/modal/config.d.ts +1 -1
  197. package/types/version/index.d.ts +1 -1
  198. package/utils/CSSTransition.js +1 -1
  199. package/utils/className.js +2 -3
  200. package/utils/contextHolder.js +2 -2
  201. package/utils/copy.js +2 -3
  202. package/utils/is.js +127 -90
  203. package/utils/reactDOM.js +17 -15
  204. package/utils/responsiveObserve.js +16 -16
  205. package/utils/saveAs.js +2 -3
  206. package/utils/scrollIntoView.js +1 -1
  207. package/chunk/BdYAMaw9.js +0 -6
  208. package/chunk/CiZVOdJ3.js +0 -122
  209. package/chunk/DdtfPvgk.js +0 -272
  210. package/chunk/I4RV9SKZ.js +0 -135
  211. package/chunk/TXCrI0jN.js +0 -20
  212. package/chunk/i1A7W8Qt.js +0 -277
  213. package/chunk/xPzFRQJn.js +0 -740
  214. package/hooks/useAsync.js +0 -13
  215. package/hooks/useAsyncFn.js +0 -15
  216. package/hooks/useAsyncRetry.js +0 -17
  217. package/hooks/useAudio.js +0 -5
  218. package/hooks/useBeforeUnload.js +0 -18
  219. package/hooks/useBoolean.js +0 -4
  220. package/hooks/useClickAway.js +0 -22
  221. package/hooks/useCopyToClipboard.js +0 -51
  222. package/hooks/useCounter.js +0 -45
  223. package/hooks/useCreation.js +0 -17
  224. package/hooks/useCustomCompareEffect.js +0 -15
  225. package/hooks/useDebounce.js +0 -9
  226. package/hooks/useDefault.js +0 -10
  227. package/hooks/useDrop.js +0 -44
  228. package/hooks/useDropArea.js +0 -45
  229. package/hooks/useEffectOnce.js +0 -7
  230. package/hooks/useEffectState.js +0 -9
  231. package/hooks/useEnsuredForwardedRef.js +0 -17
  232. package/hooks/useError.js +0 -13
  233. package/hooks/useEvent.js +0 -13
  234. package/hooks/useEventListener.js +0 -39
  235. package/hooks/useFavicon.js +0 -16
  236. package/hooks/useFirstMountState.js +0 -8
  237. package/hooks/useFullscreen.js +0 -39
  238. package/hooks/useGeolocation.js +0 -38
  239. package/hooks/useGetSet.js +0 -18
  240. package/hooks/useGetSetState.js +0 -12
  241. package/hooks/useHash.js +0 -26
  242. package/hooks/useHover.js +0 -16
  243. package/hooks/useHoverDirty.js +0 -17
  244. package/hooks/useIdle.js +0 -34
  245. package/hooks/useIntersection.js +0 -19
  246. package/hooks/useIsomorphicLayoutEffect2.js +0 -6
  247. package/hooks/useKey.js +0 -16
  248. package/hooks/useKeyPress.js +0 -13
  249. package/hooks/useKeyPressEvent.js +0 -11
  250. package/hooks/useLatest.js +0 -8
  251. package/hooks/useLifecycles.js +0 -9
  252. package/hooks/useList.js +0 -67
  253. package/hooks/useLocalStorage.js +0 -42
  254. package/hooks/useLocation.js +0 -51
  255. package/hooks/useLockBodyScroll.js +0 -55
  256. package/hooks/useLogger.js +0 -10
  257. package/hooks/useLongPress.js +0 -24
  258. package/hooks/useMap.js +0 -31
  259. package/hooks/useMeasure.js +0 -34
  260. package/hooks/useMeasureDirty.js +0 -24
  261. package/hooks/useMediaDevices.js +0 -26
  262. package/hooks/useMediatedState.js +0 -14
  263. package/hooks/useMethods.js +0 -14
  264. package/hooks/useMotion.js +0 -56
  265. package/hooks/useMount.js +0 -9
  266. package/hooks/useMountedState.js +0 -10
  267. package/hooks/useMouse.js +0 -44
  268. package/hooks/useMouseHovered.js +0 -9
  269. package/hooks/useMouseWheel.js +0 -14
  270. package/hooks/useMultiStateValidator.js +0 -19
  271. package/hooks/useNetworkState.js +0 -31
  272. package/hooks/useNumber.js +0 -4
  273. package/hooks/useObservable.js +0 -12
  274. package/hooks/useOrientation.js +0 -30
  275. package/hooks/usePageLeave.js +0 -19
  276. package/hooks/usePermission.js +0 -19
  277. package/hooks/usePinchZoom.js +0 -40
  278. package/hooks/usePreviousDistinct.js +0 -10
  279. package/hooks/usePromise.js +0 -19
  280. package/hooks/useQueue.js +0 -25
  281. package/hooks/useRaf.js +0 -24
  282. package/hooks/useRafLoop.js +0 -24
  283. package/hooks/useRafState.js +0 -15
  284. package/hooks/useReactive.js +0 -21
  285. package/hooks/useRendersCount.js +0 -7
  286. package/hooks/useScroll.js +0 -27
  287. package/hooks/useScrolling.js +0 -23
  288. package/hooks/useSearchParam.js +0 -18
  289. package/hooks/useSessionStorage.js +0 -29
  290. package/hooks/useSet.js +0 -15
  291. package/hooks/useSetState.js +0 -16
  292. package/hooks/useSize.js +0 -58
  293. package/hooks/useSlider.js +0 -48
  294. package/hooks/useSpeech.js +0 -45
  295. package/hooks/useStartTyping.js +0 -30
  296. package/hooks/useStateList.js +0 -37
  297. package/hooks/useStateValidator.js +0 -17
  298. package/hooks/useStateWithHistory.js +0 -46
  299. package/hooks/useSyncState.js +0 -14
  300. package/hooks/useThrottle.js +0 -21
  301. package/hooks/useThrottleFn.js +0 -21
  302. package/hooks/useTimeout.js +0 -17
  303. package/hooks/useTimeoutFn.js +0 -16
  304. package/hooks/useTitle.js +0 -18
  305. package/hooks/useToggle.js +0 -5
  306. package/hooks/useTween.js +0 -11
  307. package/hooks/useUnmount.js +0 -9
  308. package/hooks/useUnmountPromise.js +0 -20
  309. package/hooks/useUpdate.js +0 -10
  310. package/hooks/useUpdateTimeout.js +0 -9
  311. package/hooks/useUpsert.js +0 -16
  312. package/hooks/useVibrate.js +0 -21
  313. package/hooks/useVideo.js +0 -5
  314. package/hooks/useWindowScroll.js +0 -29
  315. package/types/hooks/component/UseKey.d.ts +0 -2
  316. package/types/hooks/factory/createBreakpoint.d.ts +0 -4
  317. package/types/hooks/factory/createGlobalState.d.ts +0 -7
  318. package/types/hooks/factory/createHTMLMediaHook.d.ts +0 -33
  319. package/types/hooks/factory/createMemo.d.ts +0 -2
  320. package/types/hooks/factory/createReducer.d.ts +0 -8
  321. package/types/hooks/factory/createReducerContext.d.ts +0 -5
  322. package/types/hooks/factory/createRenderProp.d.ts +0 -1
  323. package/types/hooks/factory/createRouter.d.ts +0 -7
  324. package/types/hooks/factory/createStateContext.d.ts +0 -5
  325. package/types/hooks/misc/hookState.d.ts +0 -8
  326. package/types/hooks/misc/parseTimeRanges.d.ts +0 -4
  327. package/types/hooks/misc/types.d.ts +0 -2
  328. package/types/hooks/misc/util.d.ts +0 -5
  329. package/types/hooks/useAsync.d.ts +0 -20
  330. package/types/hooks/useAsyncFn.d.ts +0 -23
  331. package/types/hooks/useAsyncRetry.d.ts +0 -27
  332. package/types/hooks/useAudio.d.ts +0 -11
  333. package/types/hooks/useBeforeUnload.d.ts +0 -2
  334. package/types/hooks/useBoolean.d.ts +0 -2
  335. package/types/hooks/useClickAway.d.ts +0 -3
  336. package/types/hooks/useCopyToClipboard.d.ts +0 -7
  337. package/types/hooks/useCounter.d.ts +0 -9
  338. package/types/hooks/useCreation.d.ts +0 -2
  339. package/types/hooks/useCustomCompareEffect.d.ts +0 -4
  340. package/types/hooks/useDebounce.d.ts +0 -3
  341. package/types/hooks/useDefault.d.ts +0 -2
  342. package/types/hooks/useDrop.d.ts +0 -17
  343. package/types/hooks/useDropArea.d.ts +0 -18
  344. package/types/hooks/useEffectOnce.d.ts +0 -3
  345. package/types/hooks/useEffectState.d.ts +0 -2
  346. package/types/hooks/useEnsuredForwardedRef.d.ts +0 -3
  347. package/types/hooks/useError.d.ts +0 -2
  348. package/types/hooks/useEvent.d.ts +0 -13
  349. package/types/hooks/useEventListener.d.ts +0 -2
  350. package/types/hooks/useFavicon.d.ts +0 -2
  351. package/types/hooks/useFirstMountState.d.ts +0 -1
  352. package/types/hooks/useFullscreen.d.ts +0 -10
  353. package/types/hooks/useGeolocation.d.ts +0 -21
  354. package/types/hooks/useGetSet.d.ts +0 -3
  355. package/types/hooks/useGetSetState.d.ts +0 -2
  356. package/types/hooks/useHash.d.ts +0 -2
  357. package/types/hooks/useHover.d.ts +0 -4
  358. package/types/hooks/useHoverDirty.d.ts +0 -3
  359. package/types/hooks/useIdle.d.ts +0 -2
  360. package/types/hooks/useIntersection.d.ts +0 -3
  361. package/types/hooks/useIsomorphicLayoutEffect2.d.ts +0 -3
  362. package/types/hooks/useKey.d.ts +0 -12
  363. package/types/hooks/useKeyPress.d.ts +0 -3
  364. package/types/hooks/useKeyPressEvent.d.ts +0 -3
  365. package/types/hooks/useLatest.d.ts +0 -4
  366. package/types/hooks/useLifecycles.d.ts +0 -2
  367. package/types/hooks/useList.d.ts +0 -18
  368. package/types/hooks/useLocalStorage.d.ts +0 -10
  369. package/types/hooks/useLocation.d.ts +0 -16
  370. package/types/hooks/useLockBodyScroll.d.ts +0 -8
  371. package/types/hooks/useLogger.d.ts +0 -2
  372. package/types/hooks/useLongPress.d.ts +0 -12
  373. package/types/hooks/useMap.d.ts +0 -11
  374. package/types/hooks/useMeasure.d.ts +0 -9
  375. package/types/hooks/useMeasureDirty.d.ts +0 -11
  376. package/types/hooks/useMediaDevices.d.ts +0 -2
  377. package/types/hooks/useMediatedState.d.ts +0 -9
  378. package/types/hooks/useMethods.d.ts +0 -8
  379. package/types/hooks/useMotion.d.ts +0 -20
  380. package/types/hooks/useMount.d.ts +0 -2
  381. package/types/hooks/useMountedState.d.ts +0 -1
  382. package/types/hooks/useMouse.d.ts +0 -13
  383. package/types/hooks/useMouseHovered.d.ts +0 -8
  384. package/types/hooks/useMouseWheel.d.ts +0 -2
  385. package/types/hooks/useMultiStateValidator.d.ts +0 -9
  386. package/types/hooks/useNetworkState.d.ts +0 -22
  387. package/types/hooks/useNumber.d.ts +0 -2
  388. package/types/hooks/useObservable.d.ts +0 -8
  389. package/types/hooks/useOrientation.d.ts +0 -6
  390. package/types/hooks/usePageLeave.d.ts +0 -2
  391. package/types/hooks/usePermission.d.ts +0 -16
  392. package/types/hooks/usePinchZoom.d.ts +0 -18
  393. package/types/hooks/usePreviousDistinct.d.ts +0 -2
  394. package/types/hooks/usePromise.d.ts +0 -3
  395. package/types/hooks/useQueue.d.ts +0 -9
  396. package/types/hooks/useRaf.d.ts +0 -2
  397. package/types/hooks/useRafLoop.d.ts +0 -2
  398. package/types/hooks/useRafState.d.ts +0 -3
  399. package/types/hooks/useReactive.d.ts +0 -2
  400. package/types/hooks/useRendersCount.d.ts +0 -1
  401. package/types/hooks/useScroll.d.ts +0 -7
  402. package/types/hooks/useScrolling.d.ts +0 -3
  403. package/types/hooks/useSearchParam.d.ts +0 -3
  404. package/types/hooks/useSessionStorage.d.ts +0 -2
  405. package/types/hooks/useSet.d.ts +0 -11
  406. package/types/hooks/useSetState.d.ts +0 -2
  407. package/types/hooks/useSize.d.ts +0 -8
  408. package/types/hooks/useSlider.d.ts +0 -15
  409. package/types/hooks/useSpeech.d.ts +0 -16
  410. package/types/hooks/useStartTyping.d.ts +0 -2
  411. package/types/hooks/useStateList.d.ts +0 -9
  412. package/types/hooks/useStateValidator.d.ts +0 -8
  413. package/types/hooks/useStateWithHistory.d.ts +0 -18
  414. package/types/hooks/useSyncState.d.ts +0 -3
  415. package/types/hooks/useThrottle.d.ts +0 -2
  416. package/types/hooks/useThrottleFn.d.ts +0 -2
  417. package/types/hooks/useTimeout.d.ts +0 -2
  418. package/types/hooks/useTimeoutFn.d.ts +0 -2
  419. package/types/hooks/useTitle.d.ts +0 -6
  420. package/types/hooks/useToggle.d.ts +0 -2
  421. package/types/hooks/useTween.d.ts +0 -3
  422. package/types/hooks/useUnmount.d.ts +0 -2
  423. package/types/hooks/useUnmountPromise.d.ts +0 -3
  424. package/types/hooks/useUpdate.d.ts +0 -2
  425. package/types/hooks/useUpdateTimeout.d.ts +0 -2
  426. package/types/hooks/useUpsert.d.ts +0 -6
  427. package/types/hooks/useVibrate.d.ts +0 -4
  428. package/types/hooks/useVideo.d.ts +0 -11
  429. package/types/hooks/useWindowScroll.d.ts +0 -6
@@ -1,28 +1,28 @@
1
- import { jsxs as Se, jsx as E } from "react/jsx-runtime";
2
- import { isPlainObject as ce, isEmptyValue as Ve, isEmptyArray as ve, isEmptyObject as Pe } from "@unicom-cloud/utils/is";
3
- import Ke from "lodash/debounce";
1
+ import { jsxs as ye, jsx as E } from "react/jsx-runtime";
2
+ import { G as Se, V as Ve, z as ve } from "./BeM2hfks.js";
3
+ import Pe from "lodash/debounce";
4
4
  import B from "lodash/isArray";
5
- import F from "lodash/isFunction";
6
- import Ie from "lodash/isNil";
7
- import { forwardRef as ue, useRef as R, useCallback as K, useMemo as Y, useImperativeHandle as de, useContext as fe, useState as ee, useEffect as ie } from "react";
8
- import { a as he } from "./xPzFRQJn.js";
9
- import _e from "../hooks/useId.js";
10
- import Oe from "../hooks/useIsFirstRender.js";
5
+ import W from "lodash/isFunction";
6
+ import Ke from "lodash/isNil";
7
+ import { forwardRef as ue, useRef as R, useCallback as K, useMemo as Z, useImperativeHandle as de, useContext as fe, useState as te, useEffect as ie } from "react";
8
+ import { b as he } from "./DUxWiN2U.js";
9
+ import Ie from "../hooks/useId.js";
10
+ import _e from "../hooks/useIsFirstRender.js";
11
11
  import Te from "../hooks/useMergeProps.js";
12
- import se from "../hooks/useMergeValue.js";
13
- import xe from "../SelectView.js";
14
- import { T as w, g as Le, a as Re, b as we } from "./BzqZZHGK.js";
15
- import De from "../Trigger.js";
16
- import Z from "@unicom-cloud/utils/class-name";
12
+ import oe from "../hooks/useMergeValue.js";
13
+ import Oe from "../SelectView.js";
14
+ import { T as w, g as xe, a as Le, b as Re } from "./Bny52uiG.js";
15
+ import we from "../Trigger.js";
16
+ import { y as ee } from "./Do1aMgY3.js";
17
17
  import "../utils/is.js";
18
- import He from "lodash/isString";
18
+ import De from "lodash/isString";
19
19
  import H from "lodash/get";
20
- import Ne from "../hooks/useForceUpdate.js";
21
- import te from "../hooks/useUpdateEffect.js";
22
- import oe from "lodash/isEqualWith";
23
- import me from "lodash/isPlainObject";
24
- import Ee from "lodash/isUndefined";
25
- import Ae from "../hooks/usePrevious.js";
20
+ import He from "../hooks/useForceUpdate.js";
21
+ import re from "../hooks/useUpdateEffect.js";
22
+ import se from "lodash/isEqualWith";
23
+ import q from "lodash/isPlainObject";
24
+ import Ne from "lodash/isUndefined";
25
+ import Ee from "../hooks/usePrevious.js";
26
26
  function Fe(t, a) {
27
27
  const {
28
28
  value: n,
@@ -31,85 +31,85 @@ function Fe(t, a) {
31
31
  treeCheckedStrategy: i,
32
32
  treeCheckStrictly: e,
33
33
  treeData: u,
34
- treeProps: g,
34
+ treeProps: p,
35
35
  prefixCls: l,
36
36
  treeCheckable: v
37
- } = t, C = g && g.renderTitle, m = R(), d = K(
38
- (b, { checkedNodes: s, checked: o, node: p }) => {
37
+ } = t, C = p && p.renderTitle, m = R(), d = K(
38
+ (b, { checkedNodes: o, checked: s, node: g }) => {
39
39
  const P = b.map((y) => {
40
- const O = s.find((I) => I && I.props._key === y);
41
- return O ? {
42
- label: O.props.title,
43
- value: O.props._key,
44
- disabled: O.props.disabled
40
+ const T = o.find((I) => I && I.props._key === y);
41
+ return T ? {
42
+ label: T.props.title,
43
+ value: T.props._key,
44
+ disabled: T.props.disabled
45
45
  } : n.find((N) => N.value === y) || {
46
46
  label: y,
47
47
  value: y
48
48
  };
49
49
  });
50
50
  t.onChange(P, {
51
- checked: o,
52
- trigger: p == null ? void 0 : p.props
51
+ checked: s,
52
+ trigger: g == null ? void 0 : g.props
53
53
  });
54
54
  },
55
55
  [t.onChange, n]
56
56
  ), _ = K(
57
- (b, { node: s, selected: o }) => {
58
- let p = [
57
+ (b, { node: o, selected: s }) => {
58
+ let g = [
59
59
  {
60
- value: s.props._key,
61
- label: s.props.title
60
+ value: o.props._key,
61
+ label: o.props.title
62
62
  }
63
63
  ];
64
64
  if (f) {
65
- p = [...n];
66
- const P = p.findIndex((y) => y.value === s.props._key);
67
- P > -1 ? p.splice(P, 1) : p.push({
68
- value: s.props._key,
69
- label: s.props.title
65
+ g = [...n];
66
+ const P = g.findIndex((y) => y.value === o.props._key);
67
+ P > -1 ? g.splice(P, 1) : g.push({
68
+ value: o.props._key,
69
+ label: o.props.title
70
70
  });
71
71
  }
72
- t.onChange(p, { trigger: s == null ? void 0 : s.props, selected: o });
72
+ t.onChange(g, { trigger: o == null ? void 0 : o.props, selected: s });
73
73
  },
74
74
  [t.onChange, n, f]
75
- ), D = K((b, { node: s, e: o }) => {
75
+ ), D = K((b, { node: o, e: s }) => {
76
76
  var I, N;
77
- const { checked: p, checkable: P, disabled: y, disableCheckbox: O } = s.props;
78
- m.current && !O && !y && P !== !1 && ((N = (I = m.current) == null ? void 0 : I.handleCheck) == null || N.call(I, !p, s.props._key, o));
79
- }, []), T = K(
77
+ const { checked: g, checkable: P, disabled: y, disableCheckbox: T } = o.props;
78
+ m.current && !T && !y && P !== !1 && ((N = (I = m.current) == null ? void 0 : I.handleCheck) == null || N.call(I, !g, o.props._key, s));
79
+ }, []), O = K(
80
80
  (b) => {
81
- if (F(h)) {
82
- const s = b.props.dataRef;
83
- return h(b, s);
81
+ if (W(h)) {
82
+ const o = b.props.dataRef;
83
+ return h(b, o);
84
84
  }
85
85
  return [];
86
86
  },
87
87
  [h]
88
- ), q = K(
88
+ ), G = K(
89
89
  (b) => {
90
90
  if (C)
91
91
  return C(b);
92
- const s = t.inputValue, { title: o } = b;
93
- if (s && He(o)) {
94
- const p = o.toLowerCase().indexOf(s.toLowerCase());
95
- if (p === -1)
96
- return o;
97
- const P = o.substring(0, p + 1), y = o.substring(p + s.length);
98
- return /* @__PURE__ */ Se("span", { children: [
92
+ const o = t.inputValue, { title: s } = b;
93
+ if (o && De(s)) {
94
+ const g = s.toLowerCase().indexOf(o.toLowerCase());
95
+ if (g === -1)
96
+ return s;
97
+ const P = s.substring(0, g + 1), y = s.substring(g + o.length);
98
+ return /* @__PURE__ */ ye("span", { children: [
99
99
  P,
100
- /* @__PURE__ */ E("span", { className: `${l}-highlight`, children: o.substring(p, s.length + 1) }),
100
+ /* @__PURE__ */ E("span", { className: `${l}-highlight`, children: s.substring(g, o.length + 1) }),
101
101
  y
102
102
  ] });
103
103
  }
104
- return o;
104
+ return s;
105
105
  },
106
106
  [l, t.inputValue, C]
107
- ), S = Y(() => t.treeCheckable ? {
107
+ ), S = Z(() => t.treeCheckable ? {
108
108
  onCheck: d,
109
109
  checkedKeys: n.map((b) => b.value)
110
- } : {}, [d, n, t.treeCheckable]), J = Y(() => t.treeCheckable ? [] : n.map((b) => b.value), [t.treeCheckable, n]), A = K(
111
- (b, s) => {
112
- t.treeCheckable ? D(b, s) : _(b, s);
110
+ } : {}, [d, n, t.treeCheckable]), J = Z(() => t.treeCheckable ? [] : n.map((b) => b.value), [t.treeCheckable, n]), F = K(
111
+ (b, o) => {
112
+ t.treeCheckable ? D(b, o) : _(b, o);
113
113
  },
114
114
  [t.treeCheckable, D, _]
115
115
  );
@@ -120,10 +120,10 @@ function Fe(t, a) {
120
120
  size: t.size,
121
121
  blockNode: !0,
122
122
  filterNode: t.filterNode,
123
- ...g,
123
+ ...p,
124
124
  checkable: v,
125
125
  multiple: f,
126
- loadMore: t.loadMore ? T : void 0,
126
+ loadMore: t.loadMore ? O : void 0,
127
127
  checkedStrategy: i,
128
128
  checkStrictly: e,
129
129
  onMouseDown: (b) => {
@@ -132,13 +132,13 @@ function Fe(t, a) {
132
132
  ...S,
133
133
  treeData: u,
134
134
  fieldNames: t.fieldNames,
135
- renderTitle: q,
136
- onSelect: A,
135
+ renderTitle: G,
136
+ onSelect: F,
137
137
  selectedKeys: J
138
138
  }
139
139
  );
140
140
  }
141
- const We = ue(Fe), be = {
141
+ const We = ue(Fe), me = {
142
142
  key: "key",
143
143
  title: "title",
144
144
  children: "children",
@@ -151,7 +151,7 @@ const We = ue(Fe), be = {
151
151
  const f = {};
152
152
  let h = 0;
153
153
  const i = (e, u) => {
154
- const g = e.length;
154
+ const p = e.length;
155
155
  return e.map((l, v) => {
156
156
  const C = H(l, n.children) || l[n.children], m = H(l, n.key) || l[n.key] || `${(u == null ? void 0 : u._key) || ""}-${v}`, d = {
157
157
  ...l,
@@ -169,7 +169,7 @@ const We = ue(Fe), be = {
169
169
  _level: u._level || 0,
170
170
  _index: h++
171
171
  };
172
- return g === v + 1 && (d.className = Z(
172
+ return p === v + 1 && (d.className = ee(
173
173
  `${a}-node-is-tail`,
174
174
  d.className
175
175
  )), f[m] = d, C && C.length && (f[m].children = i(C, {
@@ -180,53 +180,53 @@ const We = ue(Fe), be = {
180
180
  });
181
181
  };
182
182
  return i(t || [], {}), f;
183
- }, Me = (t, a) => {
183
+ }, Ae = (t, a) => {
184
184
  const { getPrefixCls: n } = fe(he), f = {
185
- ...be,
185
+ ...me,
186
186
  ...a
187
- }, h = Ne(), i = n("tree"), e = R(
187
+ }, h = He(), i = n("tree"), e = R(
188
188
  ae(t, i, f)
189
189
  );
190
- return te(() => {
190
+ return re(() => {
191
191
  e.current = ae(t, i, f), h();
192
192
  }, [t]), e.current;
193
- }, U = (t) => {
193
+ }, j = (t) => {
194
194
  let a = t;
195
- return B(t) || (a = t == null ? [] : [t]), a.map((n) => me(n) ? n.value : n);
195
+ return B(t) || (a = t == null ? [] : [t]), a.map((n) => q(n) ? n.value : n);
196
196
  }, z = (t, a, n) => t == null ? [] : (B(t) ? t : [t]).map((h) => {
197
- let i = me(h) ? { ...h } : { value: h, label: void 0 };
197
+ let i = q(h) ? { ...h } : { value: h, label: void 0 };
198
198
  const e = a[i.value];
199
199
  if (e)
200
200
  i.label = i.label || e.title, i.disabled = e.disabled;
201
201
  else if (B(n)) {
202
- const u = n.find((g) => g.value === i.value);
202
+ const u = n.find((p) => p.value === i.value);
203
203
  i = {
204
204
  ...i,
205
205
  ...u
206
206
  };
207
207
  }
208
- return Ee(i.label) && (i.label = i.value), i;
209
- }), $e = (t, a, n, f) => {
208
+ return Ne(i.label) && (i.label = i.value), i;
209
+ }), Me = (t, a, n, f) => {
210
210
  if (!f.treeCheckStrictly) {
211
- const { checkedKeys: h, indeterminateKeys: i } = Le(t, a);
211
+ const { checkedKeys: h, indeterminateKeys: i } = xe(t, a);
212
212
  let e = h;
213
213
  return n.current = i, f.treeCheckedStrategy === w.SHOW_PARENT ? e = e.filter((u) => {
214
- const g = a[u];
215
- if (!g || e.indexOf(g.parentKey) === -1)
214
+ const p = a[u];
215
+ if (!p || e.indexOf(p.parentKey) === -1)
216
216
  return !0;
217
217
  }) : f.treeCheckedStrategy === w.SHOW_CHILD && (e = e.filter((u) => {
218
- const g = a[u];
219
- if (!g || !g.children || !g.children.length)
218
+ const p = a[u];
219
+ if (!p || !p.children || !p.children.length)
220
220
  return !0;
221
221
  })), e;
222
222
  }
223
223
  return n.current = [], t;
224
- }, je = (t, a, n) => {
224
+ }, $e = (t, a, n) => {
225
225
  const f = R([]), h = () => {
226
226
  const l = t.value || t.defaultValue || [];
227
227
  if (t.treeCheckable) {
228
- const v = $e(
229
- U(l),
228
+ const v = Me(
229
+ j(l),
230
230
  a,
231
231
  n,
232
232
  t
@@ -242,15 +242,15 @@ const We = ue(Fe), be = {
242
242
  );
243
243
  }
244
244
  return z(l, a);
245
- }, [i, e] = ee(h), u = (l) => {
245
+ }, [i, e] = te(h), u = (l) => {
246
246
  f.current = l, e(l);
247
247
  };
248
- te(() => {
248
+ re(() => {
249
249
  const l = h();
250
- "value" in t && (t.labelInValue ? oe(
251
- U(i),
252
- U(l)
253
- ) || u(l) : oe(i, l) || u(l));
250
+ "value" in t && (t.labelInValue ? se(
251
+ j(i),
252
+ j(l)
253
+ ) || u(l) : se(i, l) || u(l));
254
254
  }, [
255
255
  t.treeCheckedStrategy,
256
256
  t.treeCheckStrictly,
@@ -258,7 +258,7 @@ const We = ue(Fe), be = {
258
258
  t.value,
259
259
  a
260
260
  ]);
261
- const g = K(
261
+ const p = K(
262
262
  (l, v) => {
263
263
  const { onChange: C, labelInValue: m } = t, d = t.multiple || t.treeCheckable;
264
264
  "value" in t || u(l);
@@ -273,43 +273,43 @@ const We = ue(Fe), be = {
273
273
  t.value
274
274
  ]
275
275
  );
276
- return [i, g];
276
+ return [i, p];
277
277
  };
278
278
  function Ue(t) {
279
- const a = Ae(t) || {}, n = () => t.treeData || Re(t.children), [f, h] = ee(n());
280
- return te(() => {
279
+ const a = Ee(t) || {}, n = () => t.treeData || Le(t.children), [f, h] = te(n());
280
+ return re(() => {
281
281
  (t.treeData !== a.treeData || t.children !== a.children) && h(n());
282
282
  }, [t]), [f];
283
283
  }
284
- const ze = {
284
+ const je = {
285
285
  bordered: !0,
286
286
  treeCheckedStrategy: w.SHOW_CHILD,
287
- fieldNames: be
288
- }, Be = { bottom: 4 }, qe = (t, a) => {
287
+ fieldNames: me
288
+ }, ze = { bottom: 4 }, Be = (t, a) => {
289
289
  const { getPrefixCls: n, renderEmpty: f, componentConfig: h, rtl: i } = fe(he), e = Te(
290
290
  t,
291
- ze,
291
+ je,
292
292
  h == null ? void 0 : h.TreeSelect
293
- ), u = Oe(), g = R(), l = R(null), v = R(null), C = R([]), [m] = Ue(e), d = Me(m, e.fieldNames), [_, D] = ee(), [T, q] = se(!1, {
293
+ ), u = _e(), p = R(), l = R(null), v = R(null), C = R([]), [m] = Ue(e), d = Ae(m, e.fieldNames), [_, D] = te(), [O, G] = oe(!1, {
294
294
  value: e.popupVisible
295
- }), [S, J] = se(
295
+ }), [S, J] = oe(
296
296
  void 0,
297
297
  // Compatible with previous behavior 'undefined as default'
298
298
  {
299
299
  value: "inputValue" in e ? e.inputValue || "" : void 0
300
300
  }
301
- ), A = R(S), b = R(null), { onInputValueChange: s } = e, [o, p] = je(
301
+ ), F = R(S), b = R(null), { onInputValueChange: o } = e, [s, g] = $e(
302
302
  e,
303
303
  d,
304
304
  C
305
- ), P = e.multiple || e.treeCheckable, y = n("tree-select"), O = S && !F(e.onSearch), I = _e(`${y}-popup-`), N = (r) => {
305
+ ), P = e.multiple || e.treeCheckable, y = n("tree-select"), T = S && !W(e.onSearch), I = Ie(`${y}-popup-`), N = (r) => {
306
306
  var c;
307
- r !== T && (q(r), (c = e.onVisibleChange) == null || c.call(e, r));
308
- }, G = (r, c) => {
309
- (r !== A.current || c !== b.current) && (J(r), A.current = r, b.current = c, s == null || s(r, c));
310
- }, pe = K(
311
- (r) => Ke(async (k) => {
312
- if (F(e.onSearch)) {
307
+ r !== O && (G(r), (c = e.onVisibleChange) == null || c.call(e, r));
308
+ }, Q = (r, c) => {
309
+ (r !== F.current || c !== b.current) && (J(r), F.current = r, b.current = c, o == null || o(r, c));
310
+ }, be = K(
311
+ (r) => Pe(async (k) => {
312
+ if (W(e.onSearch)) {
313
313
  await e.onSearch(k);
314
314
  return;
315
315
  }
@@ -318,30 +318,30 @@ const ze = {
318
318
  Object.keys(d).forEach((x) => {
319
319
  const L = d[x];
320
320
  let $ = !1;
321
- if (F(e.filterTreeNode))
321
+ if (W(e.filterTreeNode))
322
322
  e.filterTreeNode(k, /* @__PURE__ */ E(w.Node, { ...L })) && ($ = !0);
323
323
  else {
324
- const j = L.value || L._key;
325
- j && j.indexOf(k) > -1 && ($ = !0);
324
+ const U = L.value || L._key;
325
+ U && U.indexOf(k) > -1 && ($ = !0);
326
326
  }
327
327
  $ && V.add(L.key);
328
328
  }), D(V);
329
329
  }, 100)(r),
330
330
  [e.onSearch, m, d, e.filterTreeNode]
331
- ), re = K(() => {
331
+ ), ne = K(() => {
332
332
  let r = !0;
333
- ce(e.showSearch) && (r = e.showSearch.retainInputValueWhileSelect !== !1), e.multiple && !r && S !== void 0 && G("", "optionChecked");
333
+ q(e.showSearch) && (r = e.showSearch.retainInputValueWhileSelect !== !1), e.multiple && !r && S !== void 0 && Q("", "optionChecked");
334
334
  }, [S, e.multiple, JSON.stringify(e.showSearch)]), M = K(
335
335
  (r, c) => {
336
- p(r, c), re(), P || N(!1);
336
+ g(r, c), ne(), P || N(!1);
337
337
  },
338
- [p, re, T]
338
+ [g, ne, O]
339
339
  ), ge = (r, c, k) => {
340
340
  if (k.stopPropagation(), r.disabled)
341
341
  return;
342
- const V = ce(r.value) ? r.value.value : r.value;
342
+ const V = q(r.value) ? r.value.value : r.value;
343
343
  if (!e.treeCheckable || e.treeCheckStrictly || !d[V]) {
344
- const L = o.filter(($, j) => j !== c);
344
+ const L = s.filter(($, U) => U !== c);
345
345
  M(L, {
346
346
  trigger: d[V] || r,
347
347
  checked: !1,
@@ -349,26 +349,26 @@ const ze = {
349
349
  });
350
350
  return;
351
351
  }
352
- const x = we(
352
+ const x = Re(
353
353
  V,
354
354
  !1,
355
- U(o),
355
+ j(s),
356
356
  d,
357
357
  C.current
358
358
  );
359
- C.current = x.indeterminateKeys, M(z(x.checkedKeys, d, o), {
359
+ C.current = x.indeterminateKeys, M(z(x.checkedKeys, d, s), {
360
360
  trigger: d[V],
361
361
  checked: !1,
362
362
  selected: !1
363
363
  });
364
364
  };
365
- function Q(r) {
366
- return Ve(r) || ve(r) || Pe(r);
365
+ function X(r) {
366
+ return Se(r) || Ve(r) || ve(r);
367
367
  }
368
368
  ie(() => {
369
- S !== void 0 && pe(S), S !== A.current && (A.current = S);
369
+ S !== void 0 && be(S), S !== F.current && (F.current = S);
370
370
  }, [S]);
371
- const X = Y(() => {
371
+ const Y = Z(() => {
372
372
  let r = [];
373
373
  if (S)
374
374
  for (const c in d) {
@@ -378,11 +378,11 @@ const ze = {
378
378
  return Array.from(new Set(r));
379
379
  }, [S, d, _]);
380
380
  ie(() => {
381
- T ? setTimeout(() => {
382
- const r = o[0];
381
+ O ? setTimeout(() => {
382
+ const r = s[0];
383
383
  l.current && r && l.current.scrollIntoView(r.value);
384
- }) : u || S && G("", "optionListHide");
385
- }, [T]), de(a, () => ({
384
+ }) : u || S && Q("", "optionListHide");
385
+ }, [O]), de(a, () => ({
386
386
  focus() {
387
387
  v.current && v.current.focus();
388
388
  },
@@ -394,49 +394,49 @@ const ze = {
394
394
  return (c = (r = v.current) == null ? void 0 : r.getRootDOMNode) == null ? void 0 : c.call(r);
395
395
  }
396
396
  }));
397
- const Ce = K(
398
- (r) => O ? X.indexOf(r._key) > -1 : !0,
399
- [O, X]
400
- ), ke = K(
397
+ const pe = K(
398
+ (r) => T ? Y.indexOf(r._key) > -1 : !0,
399
+ [T, Y]
400
+ ), Ce = K(
401
401
  (r) => {
402
402
  const { disabled: c, value: k } = r || {};
403
403
  let V = r == null ? void 0 : r.label;
404
- return F(e.renderFormat) && (V = e.renderFormat(
404
+ return W(e.renderFormat) && (V = e.renderFormat(
405
405
  d[k] || null,
406
406
  e.labelInValue ? r : k
407
407
  )), { text: V || k || "", disabled: c };
408
408
  },
409
409
  [e.renderFormat, e.labelInValue, d]
410
- ), ye = (r) => {
411
- p(r, {});
412
- }, ne = (r) => /* @__PURE__ */ E(
413
- De,
410
+ ), ke = (r) => {
411
+ g(r, {});
412
+ }, le = (r) => /* @__PURE__ */ E(
413
+ we,
414
414
  {
415
415
  autoAlignPopupWidth: !1,
416
416
  autoAlignPopupMinWidth: !0,
417
- ref: g,
417
+ ref: p,
418
418
  classNames: "slideDynamicOrigin",
419
419
  trigger: "click",
420
420
  position: "bl",
421
421
  getPopupContainer: e.getPopupContainer,
422
- popupAlign: Be,
422
+ popupAlign: ze,
423
423
  unmountOnExit: e.unmountOnExit,
424
424
  ...e.triggerProps,
425
- className: Z(
425
+ className: ee(
426
426
  `${y}-trigger`,
427
427
  e.triggerProps && e.triggerProps.className
428
428
  ),
429
429
  popup: () => {
430
430
  var V, x, L;
431
- const c = e.dropdownRender, k = O && Q(X) || Q(m) ? e.notFoundContent || (f == null ? void 0 : f("TreeSelect")) : /* @__PURE__ */ E(
431
+ const c = e.dropdownRender, k = T && X(Y) || X(m) ? e.notFoundContent || (f == null ? void 0 : f("TreeSelect")) : /* @__PURE__ */ E(
432
432
  We,
433
433
  {
434
434
  prefixCls: y,
435
435
  ref: l,
436
436
  ...e,
437
437
  inputValue: S,
438
- filterNode: Ce,
439
- value: o,
438
+ filterNode: pe,
439
+ value: s,
440
440
  onChange: M,
441
441
  multiple: P,
442
442
  treeData: m
@@ -446,14 +446,14 @@ const ze = {
446
446
  "div",
447
447
  {
448
448
  id: I,
449
- className: Z(`${y}-popup`, {
449
+ className: ee(`${y}-popup`, {
450
450
  [`${y}-rtl-popup`]: i
451
451
  }),
452
452
  style: {
453
453
  maxHeight: (V = e.treeProps) != null && V.height || (L = (x = e.treeProps) == null ? void 0 : x.virtualListProps) != null && L.height ? "unset" : "",
454
454
  ...e.dropdownMenuStyle
455
455
  },
456
- children: F(c) ? c(k) : k
456
+ children: W(c) ? c(k) : k
457
457
  }
458
458
  );
459
459
  },
@@ -461,35 +461,35 @@ const ze = {
461
461
  onVisibleChange: (c) => {
462
462
  N(c);
463
463
  },
464
- popupVisible: T,
464
+ popupVisible: O,
465
465
  children: r
466
466
  }
467
- ), le = typeof e.triggerElement == "function" ? (() => {
467
+ ), ce = typeof e.triggerElement == "function" ? (() => {
468
468
  var c;
469
469
  let r;
470
- return P ? r = o.map(
470
+ return P ? r = s.map(
471
471
  (k) => e.labelInValue ? { label: k.label, value: k.value } : k.value
472
- ) : r = e.labelInValue ? o[0] : (c = o[0]) == null ? void 0 : c.value, e.triggerElement({ value: r });
472
+ ) : r = e.labelInValue ? s[0] : (c = s[0]) == null ? void 0 : c.value, e.triggerElement({ value: r });
473
473
  })() : e.triggerElement;
474
- return Ie(le) ? /* @__PURE__ */ E(
475
- xe,
474
+ return Ke(ce) ? /* @__PURE__ */ E(
475
+ Oe,
476
476
  {
477
477
  ref: v,
478
478
  rtl: i,
479
479
  ariaControls: I,
480
480
  ...e,
481
- popupVisible: T,
482
- value: !P && B(o) ? o[0] : o,
481
+ popupVisible: O,
482
+ value: !P && B(s) ? s[0] : s,
483
483
  inputValue: S,
484
- isEmptyValue: Q(o),
484
+ isEmptyValue: X(s),
485
485
  prefixCls: y,
486
486
  isMultiple: P,
487
- renderText: ke,
488
- onSort: ye,
487
+ renderText: Ce,
488
+ onSort: ke,
489
489
  onRemoveCheckedItem: ge,
490
490
  onClear: (r) => {
491
491
  var c;
492
- r.stopPropagation(), M([], {}), (c = e.onClear) == null || c.call(e, !!T);
492
+ r.stopPropagation(), M([], {}), (c = e.onClear) == null || c.call(e, !!O);
493
493
  },
494
494
  onKeyDown: (r) => {
495
495
  var c;
@@ -499,17 +499,17 @@ const ze = {
499
499
  r && r.stopPropagation();
500
500
  },
501
501
  onChangeInputValue: (r) => {
502
- G(r, "manual");
502
+ Q(r, "manual");
503
503
  },
504
- renderView: ne
504
+ renderView: le
505
505
  }
506
- ) : ne(le);
507
- }, Je = ue(qe), W = Je;
508
- W.displayName = "TreeSelect";
509
- W.Node = w.Node;
510
- W.SHOW_ALL = w.SHOW_ALL;
511
- W.SHOW_PARENT = w.SHOW_PARENT;
512
- W.SHOW_CHILD = w.SHOW_CHILD;
506
+ ) : le(ce);
507
+ }, qe = ue(Be), A = qe;
508
+ A.displayName = "TreeSelect";
509
+ A.Node = w.Node;
510
+ A.SHOW_ALL = w.SHOW_ALL;
511
+ A.SHOW_PARENT = w.SHOW_PARENT;
512
+ A.SHOW_CHILD = w.SHOW_CHILD;
513
513
  export {
514
- W as T
514
+ A as T
515
515
  };
@@ -0,0 +1,12 @@
1
+ import l from "lodash/isArray";
2
+ import m from "lodash/isPlainObject";
3
+ import n from "lodash/isString";
4
+ import f from "lodash/uniq";
5
+ function b(...t) {
6
+ const o = " ";
7
+ let e = t.map((r, p, s) => m(r) ? Object.keys(r).filter((i) => r[i]) : (n(r) || l(r), r)).flat(1 / 0).filter(Boolean).join(o).split(o).filter(Boolean);
8
+ return f(e).join(o);
9
+ }
10
+ export {
11
+ b as y
12
+ };