@unicom-cloud/ui 0.8.55 → 0.8.57

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 (425) 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/B45v5S9k.js +209 -0
  85. package/chunk/B6fn5y_s.js +23 -0
  86. package/chunk/B9PsJar0.js +118 -0
  87. package/chunk/BA02BFUV.js +41 -0
  88. package/chunk/BCk8e9fj.js +29 -0
  89. package/chunk/BHK9zpXn.js +207 -0
  90. package/chunk/BHLTzWzi.js +29 -0
  91. package/chunk/BK1FKNAX.js +41 -0
  92. package/chunk/BM6dpkeM.js +32 -0
  93. package/chunk/{BC0PujUD.js → BMvZCjSU.js} +118 -120
  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/CR4u270n.js +284 -0
  115. package/chunk/CXNW5Y2a.js +23 -0
  116. package/chunk/Cb_oWoGj.js +40 -0
  117. package/chunk/CcX2pBUh.js +46 -0
  118. package/chunk/{BdJcAQ0Q.js → CggcswbO.js} +18 -18
  119. package/chunk/CkAOsst1.js +73 -0
  120. package/chunk/{CTSIr-Pr.js → CwXmtKib.js} +89 -101
  121. package/chunk/{C3I_L73_.js → CwjaGytU.js} +39 -40
  122. package/chunk/{RRWbBHK-.js → D5p8q9Pa.js} +221 -221
  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/{CZ8iz63Z.js → DBJ8d0o0.js} +210 -217
  127. package/chunk/{RL1SNlng.js → DDda6s72.js} +16 -16
  128. package/chunk/{BH5fVprw.js → DJmWXheU.js} +9 -9
  129. package/chunk/{Niaq_og8.js → DMWMrXg1.js} +220 -226
  130. package/chunk/DPvnQJ-H.js +52 -0
  131. package/chunk/DQXq1QT0.js +58 -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/Dbk4DVhB.js +855 -0
  137. package/chunk/{CzTYWtfa.js → Dg2DmtzA.js} +31 -30
  138. package/chunk/DhLbnw3R.js +29 -0
  139. package/chunk/{BmtF7P8U.js → DkIjpuBZ.js} +170 -170
  140. package/chunk/Do1aMgY3.js +12 -0
  141. package/chunk/Dtnux4qL.js +38 -0
  142. package/chunk/{DbtCtriE.js → DxNRWF67.js} +30 -31
  143. package/chunk/HlP8inLK.js +1796 -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/{Dki1RB5p.js → aM2ePYrq.js} +154 -155
  148. package/chunk/bsawGxt8.js +32 -0
  149. package/chunk/cUuQh7L_.js +46 -0
  150. package/chunk/fqgc8r6C.js +29 -0
  151. package/chunk/m_kOQCiU.js +29 -0
  152. package/chunk/sl8s35SK.js +29 -0
  153. package/hooks/index.js +52 -246
  154. package/hooks/useForceUpdate.js +6 -6
  155. package/hooks/useIntersectionObserver.js +12 -10
  156. package/hooks/useKeyboardEvent.js +7 -7
  157. package/hooks/useMedia.js +9 -12
  158. package/hooks/useMergeValue.js +10 -8
  159. package/hooks/useResizeObserver.js +16 -0
  160. package/hooks/useUpdateEffect.js +7 -9
  161. package/hooks/useWindowSize.js +16 -20
  162. package/icons.js +6003 -0
  163. package/index.js +377 -472
  164. package/locale/en-US.js +20 -6
  165. package/locale/ja-JP.js +4 -2
  166. package/locale/ko-KR.js +2 -2
  167. package/locale/pt-BR.js +3 -3
  168. package/locale/pt-PT.js +3 -3
  169. package/locale/tr-TR.js +11 -3
  170. package/locale/zh-CN.js +6 -0
  171. package/locale/zh-HK.js +2 -0
  172. package/locale/zh-TW.js +2 -0
  173. package/package.json +1 -1
  174. package/style.css +1 -1
  175. package/types/anchor/util.d.ts +1 -0
  176. package/types/button/index.d.ts +2 -2
  177. package/types/color-picker/colors.d.ts +1 -1
  178. package/types/date-picker/util.d.ts +1 -1
  179. package/types/hooks/index.d.ts +3 -101
  180. package/types/hooks/useForceUpdate.d.ts +1 -2
  181. package/types/hooks/useIntersectionObserver.d.ts +1 -1
  182. package/types/hooks/useKeyboardEvent.d.ts +2 -2
  183. package/types/hooks/useMergeProps.d.ts +1 -1
  184. package/types/hooks/useResizeObserver.d.ts +5 -0
  185. package/types/hooks/useUpdateEffect.d.ts +2 -3
  186. package/types/hooks/useWindowSize.d.ts +1 -1
  187. package/types/icons.d.ts +4 -0
  188. package/types/index.d.ts +12 -2
  189. package/types/locale/en-US.d.ts +4 -0
  190. package/types/locale/interface.d.ts +2 -0
  191. package/types/locale/ja-JP.d.ts +4 -0
  192. package/types/locale/zh-CN.d.ts +4 -0
  193. package/types/locale/zh-HK.d.ts +4 -0
  194. package/types/locale/zh-TW.d.ts +4 -0
  195. package/types/version/index.d.ts +1 -1
  196. package/utils/CSSTransition.js +1 -1
  197. package/utils/className.js +2 -3
  198. package/utils/contextHolder.js +2 -2
  199. package/utils/copy.js +2 -3
  200. package/utils/is.js +127 -90
  201. package/utils/reactDOM.js +17 -15
  202. package/utils/responsiveObserve.js +16 -16
  203. package/utils/saveAs.js +2 -3
  204. package/chunk/BdYAMaw9.js +0 -6
  205. package/chunk/DdtfPvgk.js +0 -272
  206. package/chunk/I4RV9SKZ.js +0 -135
  207. package/chunk/TXCrI0jN.js +0 -20
  208. package/chunk/i1A7W8Qt.js +0 -277
  209. package/chunk/xPzFRQJn.js +0 -740
  210. package/hooks/useAsync.js +0 -13
  211. package/hooks/useAsyncFn.js +0 -15
  212. package/hooks/useAsyncRetry.js +0 -17
  213. package/hooks/useAudio.js +0 -5
  214. package/hooks/useBeforeUnload.js +0 -18
  215. package/hooks/useBoolean.js +0 -4
  216. package/hooks/useClickAway.js +0 -22
  217. package/hooks/useCopyToClipboard.js +0 -51
  218. package/hooks/useCounter.js +0 -45
  219. package/hooks/useCreation.js +0 -17
  220. package/hooks/useCustomCompareEffect.js +0 -15
  221. package/hooks/useDebounce.js +0 -9
  222. package/hooks/useDefault.js +0 -10
  223. package/hooks/useDrop.js +0 -44
  224. package/hooks/useDropArea.js +0 -45
  225. package/hooks/useEffectOnce.js +0 -7
  226. package/hooks/useEffectState.js +0 -9
  227. package/hooks/useEnsuredForwardedRef.js +0 -17
  228. package/hooks/useError.js +0 -13
  229. package/hooks/useEvent.js +0 -13
  230. package/hooks/useEventListener.js +0 -39
  231. package/hooks/useFavicon.js +0 -16
  232. package/hooks/useFirstMountState.js +0 -8
  233. package/hooks/useFullscreen.js +0 -39
  234. package/hooks/useGeolocation.js +0 -38
  235. package/hooks/useGetSet.js +0 -18
  236. package/hooks/useGetSetState.js +0 -12
  237. package/hooks/useHash.js +0 -26
  238. package/hooks/useHover.js +0 -16
  239. package/hooks/useHoverDirty.js +0 -17
  240. package/hooks/useIdle.js +0 -34
  241. package/hooks/useIntersection.js +0 -19
  242. package/hooks/useIsomorphicLayoutEffect2.js +0 -6
  243. package/hooks/useKey.js +0 -16
  244. package/hooks/useKeyPress.js +0 -13
  245. package/hooks/useKeyPressEvent.js +0 -11
  246. package/hooks/useLatest.js +0 -8
  247. package/hooks/useLifecycles.js +0 -9
  248. package/hooks/useList.js +0 -67
  249. package/hooks/useLocalStorage.js +0 -42
  250. package/hooks/useLocation.js +0 -51
  251. package/hooks/useLockBodyScroll.js +0 -55
  252. package/hooks/useLogger.js +0 -10
  253. package/hooks/useLongPress.js +0 -24
  254. package/hooks/useMap.js +0 -31
  255. package/hooks/useMeasure.js +0 -34
  256. package/hooks/useMeasureDirty.js +0 -24
  257. package/hooks/useMediaDevices.js +0 -26
  258. package/hooks/useMediatedState.js +0 -14
  259. package/hooks/useMethods.js +0 -14
  260. package/hooks/useMotion.js +0 -56
  261. package/hooks/useMount.js +0 -9
  262. package/hooks/useMountedState.js +0 -10
  263. package/hooks/useMouse.js +0 -44
  264. package/hooks/useMouseHovered.js +0 -9
  265. package/hooks/useMouseWheel.js +0 -14
  266. package/hooks/useMultiStateValidator.js +0 -19
  267. package/hooks/useNetworkState.js +0 -31
  268. package/hooks/useNumber.js +0 -4
  269. package/hooks/useObservable.js +0 -12
  270. package/hooks/useOrientation.js +0 -30
  271. package/hooks/usePageLeave.js +0 -19
  272. package/hooks/usePermission.js +0 -19
  273. package/hooks/usePinchZoom.js +0 -40
  274. package/hooks/usePreviousDistinct.js +0 -10
  275. package/hooks/usePromise.js +0 -19
  276. package/hooks/useQueue.js +0 -25
  277. package/hooks/useRaf.js +0 -24
  278. package/hooks/useRafLoop.js +0 -24
  279. package/hooks/useRafState.js +0 -15
  280. package/hooks/useReactive.js +0 -21
  281. package/hooks/useRendersCount.js +0 -7
  282. package/hooks/useScroll.js +0 -27
  283. package/hooks/useScrolling.js +0 -23
  284. package/hooks/useSearchParam.js +0 -18
  285. package/hooks/useSessionStorage.js +0 -29
  286. package/hooks/useSet.js +0 -15
  287. package/hooks/useSetState.js +0 -16
  288. package/hooks/useSize.js +0 -58
  289. package/hooks/useSlider.js +0 -48
  290. package/hooks/useSpeech.js +0 -45
  291. package/hooks/useStartTyping.js +0 -30
  292. package/hooks/useStateList.js +0 -37
  293. package/hooks/useStateValidator.js +0 -17
  294. package/hooks/useStateWithHistory.js +0 -46
  295. package/hooks/useSyncState.js +0 -14
  296. package/hooks/useThrottle.js +0 -21
  297. package/hooks/useThrottleFn.js +0 -21
  298. package/hooks/useTimeout.js +0 -17
  299. package/hooks/useTimeoutFn.js +0 -16
  300. package/hooks/useTitle.js +0 -18
  301. package/hooks/useToggle.js +0 -5
  302. package/hooks/useTween.js +0 -11
  303. package/hooks/useUnmount.js +0 -9
  304. package/hooks/useUnmountPromise.js +0 -20
  305. package/hooks/useUpdate.js +0 -10
  306. package/hooks/useUpdateTimeout.js +0 -9
  307. package/hooks/useUpsert.js +0 -16
  308. package/hooks/useVibrate.js +0 -21
  309. package/hooks/useVideo.js +0 -5
  310. package/hooks/useWindowScroll.js +0 -29
  311. package/types/hooks/component/UseKey.d.ts +0 -2
  312. package/types/hooks/factory/createBreakpoint.d.ts +0 -4
  313. package/types/hooks/factory/createGlobalState.d.ts +0 -7
  314. package/types/hooks/factory/createHTMLMediaHook.d.ts +0 -33
  315. package/types/hooks/factory/createMemo.d.ts +0 -2
  316. package/types/hooks/factory/createReducer.d.ts +0 -8
  317. package/types/hooks/factory/createReducerContext.d.ts +0 -5
  318. package/types/hooks/factory/createRenderProp.d.ts +0 -1
  319. package/types/hooks/factory/createRouter.d.ts +0 -7
  320. package/types/hooks/factory/createStateContext.d.ts +0 -5
  321. package/types/hooks/misc/hookState.d.ts +0 -8
  322. package/types/hooks/misc/parseTimeRanges.d.ts +0 -4
  323. package/types/hooks/misc/types.d.ts +0 -2
  324. package/types/hooks/misc/util.d.ts +0 -5
  325. package/types/hooks/useAsync.d.ts +0 -20
  326. package/types/hooks/useAsyncFn.d.ts +0 -23
  327. package/types/hooks/useAsyncRetry.d.ts +0 -27
  328. package/types/hooks/useAudio.d.ts +0 -11
  329. package/types/hooks/useBeforeUnload.d.ts +0 -2
  330. package/types/hooks/useBoolean.d.ts +0 -2
  331. package/types/hooks/useClickAway.d.ts +0 -3
  332. package/types/hooks/useCopyToClipboard.d.ts +0 -7
  333. package/types/hooks/useCounter.d.ts +0 -9
  334. package/types/hooks/useCreation.d.ts +0 -2
  335. package/types/hooks/useCustomCompareEffect.d.ts +0 -4
  336. package/types/hooks/useDebounce.d.ts +0 -3
  337. package/types/hooks/useDefault.d.ts +0 -2
  338. package/types/hooks/useDrop.d.ts +0 -17
  339. package/types/hooks/useDropArea.d.ts +0 -18
  340. package/types/hooks/useEffectOnce.d.ts +0 -3
  341. package/types/hooks/useEffectState.d.ts +0 -2
  342. package/types/hooks/useEnsuredForwardedRef.d.ts +0 -3
  343. package/types/hooks/useError.d.ts +0 -2
  344. package/types/hooks/useEvent.d.ts +0 -13
  345. package/types/hooks/useEventListener.d.ts +0 -2
  346. package/types/hooks/useFavicon.d.ts +0 -2
  347. package/types/hooks/useFirstMountState.d.ts +0 -1
  348. package/types/hooks/useFullscreen.d.ts +0 -10
  349. package/types/hooks/useGeolocation.d.ts +0 -21
  350. package/types/hooks/useGetSet.d.ts +0 -3
  351. package/types/hooks/useGetSetState.d.ts +0 -2
  352. package/types/hooks/useHash.d.ts +0 -2
  353. package/types/hooks/useHover.d.ts +0 -4
  354. package/types/hooks/useHoverDirty.d.ts +0 -3
  355. package/types/hooks/useIdle.d.ts +0 -2
  356. package/types/hooks/useIntersection.d.ts +0 -3
  357. package/types/hooks/useIsomorphicLayoutEffect2.d.ts +0 -3
  358. package/types/hooks/useKey.d.ts +0 -12
  359. package/types/hooks/useKeyPress.d.ts +0 -3
  360. package/types/hooks/useKeyPressEvent.d.ts +0 -3
  361. package/types/hooks/useLatest.d.ts +0 -4
  362. package/types/hooks/useLifecycles.d.ts +0 -2
  363. package/types/hooks/useList.d.ts +0 -18
  364. package/types/hooks/useLocalStorage.d.ts +0 -10
  365. package/types/hooks/useLocation.d.ts +0 -16
  366. package/types/hooks/useLockBodyScroll.d.ts +0 -8
  367. package/types/hooks/useLogger.d.ts +0 -2
  368. package/types/hooks/useLongPress.d.ts +0 -12
  369. package/types/hooks/useMap.d.ts +0 -11
  370. package/types/hooks/useMeasure.d.ts +0 -9
  371. package/types/hooks/useMeasureDirty.d.ts +0 -11
  372. package/types/hooks/useMediaDevices.d.ts +0 -2
  373. package/types/hooks/useMediatedState.d.ts +0 -9
  374. package/types/hooks/useMethods.d.ts +0 -8
  375. package/types/hooks/useMotion.d.ts +0 -20
  376. package/types/hooks/useMount.d.ts +0 -2
  377. package/types/hooks/useMountedState.d.ts +0 -1
  378. package/types/hooks/useMouse.d.ts +0 -13
  379. package/types/hooks/useMouseHovered.d.ts +0 -8
  380. package/types/hooks/useMouseWheel.d.ts +0 -2
  381. package/types/hooks/useMultiStateValidator.d.ts +0 -9
  382. package/types/hooks/useNetworkState.d.ts +0 -22
  383. package/types/hooks/useNumber.d.ts +0 -2
  384. package/types/hooks/useObservable.d.ts +0 -8
  385. package/types/hooks/useOrientation.d.ts +0 -6
  386. package/types/hooks/usePageLeave.d.ts +0 -2
  387. package/types/hooks/usePermission.d.ts +0 -16
  388. package/types/hooks/usePinchZoom.d.ts +0 -18
  389. package/types/hooks/usePreviousDistinct.d.ts +0 -2
  390. package/types/hooks/usePromise.d.ts +0 -3
  391. package/types/hooks/useQueue.d.ts +0 -9
  392. package/types/hooks/useRaf.d.ts +0 -2
  393. package/types/hooks/useRafLoop.d.ts +0 -2
  394. package/types/hooks/useRafState.d.ts +0 -3
  395. package/types/hooks/useReactive.d.ts +0 -2
  396. package/types/hooks/useRendersCount.d.ts +0 -1
  397. package/types/hooks/useScroll.d.ts +0 -7
  398. package/types/hooks/useScrolling.d.ts +0 -3
  399. package/types/hooks/useSearchParam.d.ts +0 -3
  400. package/types/hooks/useSessionStorage.d.ts +0 -2
  401. package/types/hooks/useSet.d.ts +0 -11
  402. package/types/hooks/useSetState.d.ts +0 -2
  403. package/types/hooks/useSize.d.ts +0 -8
  404. package/types/hooks/useSlider.d.ts +0 -15
  405. package/types/hooks/useSpeech.d.ts +0 -16
  406. package/types/hooks/useStartTyping.d.ts +0 -2
  407. package/types/hooks/useStateList.d.ts +0 -9
  408. package/types/hooks/useStateValidator.d.ts +0 -8
  409. package/types/hooks/useStateWithHistory.d.ts +0 -18
  410. package/types/hooks/useSyncState.d.ts +0 -3
  411. package/types/hooks/useThrottle.d.ts +0 -2
  412. package/types/hooks/useThrottleFn.d.ts +0 -2
  413. package/types/hooks/useTimeout.d.ts +0 -2
  414. package/types/hooks/useTimeoutFn.d.ts +0 -2
  415. package/types/hooks/useTitle.d.ts +0 -6
  416. package/types/hooks/useToggle.d.ts +0 -2
  417. package/types/hooks/useTween.d.ts +0 -3
  418. package/types/hooks/useUnmount.d.ts +0 -2
  419. package/types/hooks/useUnmountPromise.d.ts +0 -3
  420. package/types/hooks/useUpdate.d.ts +0 -2
  421. package/types/hooks/useUpdateTimeout.d.ts +0 -2
  422. package/types/hooks/useUpsert.d.ts +0 -6
  423. package/types/hooks/useVibrate.d.ts +0 -4
  424. package/types/hooks/useVideo.d.ts +0 -11
  425. package/types/hooks/useWindowScroll.d.ts +0 -6
@@ -1,51 +1,51 @@
1
- import { jsx as x, jsxs as it, Fragment as kt } from "react/jsx-runtime";
1
+ import { jsx as w, jsxs as ot, Fragment as wt } from "react/jsx-runtime";
2
2
  import ee from "lodash/isArray";
3
- import St from "lodash/isFunction";
4
- import te, { useContext as Vt, useState as ye, useMemo as ze, useRef as j, useCallback as Ue, useEffect as K, useImperativeHandle as At } from "react";
5
- import { C as st } from "./BH5fVprw.js";
6
- import { a as Et } from "./xPzFRQJn.js";
7
- import Lt from "../hooks/useId.js";
8
- import $t from "../hooks/useMergeProps.js";
9
- import et from "../hooks/useMergeValue.js";
10
- import Nt from "../SelectView.js";
3
+ import kt from "lodash/isFunction";
4
+ import te, { useContext as Vt, useState as ye, useMemo as Ze, useRef as K, useCallback as Ue, useEffect as j, useImperativeHandle as St } from "react";
5
+ import { C as it } from "./DJmWXheU.js";
6
+ import { b as At } from "./DUxWiN2U.js";
7
+ import Et from "../hooks/useId.js";
8
+ import Lt from "../hooks/useMergeProps.js";
9
+ import ze from "../hooks/useMergeValue.js";
10
+ import $t from "../SelectView.js";
11
11
  import It from "../Trigger.js";
12
- import ce from "@unicom-cloud/utils/class-name";
13
- import Pt from "../utils/getHotkeyHandler.js";
12
+ import { y as ce } from "./Do1aMgY3.js";
13
+ import Nt from "../utils/getHotkeyHandler.js";
14
14
  import "../utils/is.js";
15
- import { Esc as Tt, Enter as tt, Tab as nt, ArrowUp as Ft, ArrowDown as Ut } from "../utils/keyCode.js";
16
- import Me from "../utils/omit.js";
17
- import Rt from "../utils/warning.js";
18
- import { V as Mt } from "./CiEln_Q1.js";
19
- import { isEmptyArray as Dt, isPlainObject as U } from "@unicom-cloud/utils/is";
15
+ import { Esc as Tt, Enter as et, Tab as tt, ArrowUp as Pt, ArrowDown as Ft } from "../utils/keyCode.js";
16
+ import Re from "../utils/omit.js";
17
+ import Ut from "../utils/warning.js";
18
+ import { V as Rt } from "./CiEln_Q1.js";
19
+ import { V as Mt } from "./BeM2hfks.js";
20
20
  import ie from "lodash/get";
21
- import Gt from "lodash/isNil";
22
- import Ht from "lodash/isNumber";
23
- import Re from "lodash/isPlainObject";
24
- import jt from "lodash/isString";
21
+ import Dt from "lodash/isNil";
22
+ import Gt from "lodash/isNumber";
23
+ import x from "lodash/isPlainObject";
24
+ import Ht from "lodash/isString";
25
25
  import Kt from "../utils/fillNBSP.js";
26
- import Bt from "../utils/getHighlightText.js";
27
- function Qt(l, b) {
28
- const { prefixCls: w, label: C, ...R } = l;
29
- return /* @__PURE__ */ x(
26
+ import jt from "../utils/getHighlightText.js";
27
+ function Bt(l, b) {
28
+ const { prefixCls: k, label: C, ...R } = l;
29
+ return /* @__PURE__ */ w(
30
30
  "li",
31
31
  {
32
32
  ref: b,
33
- className: `${w}-group-title`,
34
- ...Me(R, ["_key", "children", "isSelectOptGroup"]),
33
+ className: `${k}-group-title`,
34
+ ...Re(R, ["_key", "children", "isSelectOptGroup"]),
35
35
  children: C
36
36
  }
37
37
  );
38
38
  }
39
- const Wt = te.forwardRef(Qt), lt = Wt;
40
- lt.__PQB_SELECT_OPTGROUP__ = !0;
41
- function qt(l, b) {
39
+ const Qt = te.forwardRef(Bt), st = Qt;
40
+ st.__PQB_SELECT_OPTGROUP__ = !0;
41
+ function Wt(l, b) {
42
42
  const {
43
- style: w,
43
+ style: k,
44
44
  className: C,
45
45
  wrapperClassName: R,
46
- disabled: T,
46
+ disabled: F,
47
47
  prefixCls: u,
48
- rtl: L,
48
+ rtl: $,
49
49
  value: M,
50
50
  children: D,
51
51
  _isMultipleMode: J,
@@ -53,26 +53,26 @@ function qt(l, b) {
53
53
  _isUserCreatingOption: v,
54
54
  _valueActive: G,
55
55
  _valueSelect: Q,
56
- _onMouseEnter: $,
56
+ _onMouseEnter: I,
57
57
  _onMouseLeave: H,
58
- _onClick: k,
58
+ _onClick: V,
59
59
  ...o
60
60
  } = l, f = "value" in l ? M : `${D}`, s = "children" in l ? D : `${M}`, a = J ? Q.indexOf(f) !== -1 : Q === f, O = {
61
- style: w,
61
+ style: k,
62
62
  className: ce(
63
63
  `${u}-option`,
64
64
  {
65
65
  [`${u}-option-selected`]: a,
66
- [`${u}-option-disabled`]: T,
66
+ [`${u}-option-disabled`]: F,
67
67
  [`${u}-option-hover`]: f === G,
68
68
  [`${u}-option-empty`]: !s && s !== 0 || typeof s == "string" && /^\s*$/.test(s),
69
- [`${u}-option-rtl`]: L
69
+ [`${u}-option-rtl`]: $
70
70
  },
71
71
  C
72
72
  ),
73
73
  onMouseEnter: (N) => {
74
74
  var y;
75
- $ == null || $(f), (y = o.onMouseEnter) == null || y.call(o, N);
75
+ I == null || I(f), (y = o.onMouseEnter) == null || y.call(o, N);
76
76
  },
77
77
  onMouseLeave: (N) => {
78
78
  var y;
@@ -80,9 +80,9 @@ function qt(l, b) {
80
80
  },
81
81
  onClick: (N) => {
82
82
  var y;
83
- k == null || k(f, T), (y = o.onClick) == null || y.call(o, N);
83
+ V == null || V(f, F), (y = o.onClick) == null || y.call(o, N);
84
84
  },
85
- ...Me(o, [
85
+ ...Re(o, [
86
86
  "_key",
87
87
  "extra",
88
88
  "isSelectOption",
@@ -95,7 +95,7 @@ function qt(l, b) {
95
95
  role: "option",
96
96
  "aria-selected": a
97
97
  };
98
- return B && Object.assign(S, { "data-user-created": !0 }), v && Object.assign(S, { "data-user-creating": !0 }), J ? /* @__PURE__ */ it(
98
+ return B && Object.assign(S, { "data-user-created": !0 }), v && Object.assign(S, { "data-user-creating": !0 }), J ? /* @__PURE__ */ ot(
99
99
  "li",
100
100
  {
101
101
  ...S,
@@ -103,56 +103,56 @@ function qt(l, b) {
103
103
  `${u}-option-wrapper`,
104
104
  {
105
105
  [`${u}-option-wrapper-selected`]: a,
106
- [`${u}-option-wrapper-disabled`]: T
106
+ [`${u}-option-wrapper-disabled`]: F
107
107
  },
108
108
  R
109
109
  ),
110
110
  children: [
111
- /* @__PURE__ */ x(
112
- st,
111
+ /* @__PURE__ */ w(
112
+ it,
113
113
  {
114
114
  "aria-hidden": "true",
115
115
  className: `${u}-checkbox`,
116
116
  checked: a,
117
- disabled: T,
117
+ disabled: F,
118
118
  onChange: O.onClick
119
119
  }
120
120
  ),
121
- /* @__PURE__ */ x("span", { ...O, children: s })
121
+ /* @__PURE__ */ w("span", { ...O, children: s })
122
122
  ]
123
123
  }
124
- ) : /* @__PURE__ */ x("li", { ...S, ...O, children: s });
124
+ ) : /* @__PURE__ */ w("li", { ...S, ...O, children: s });
125
125
  }
126
- const Jt = te.forwardRef(qt), De = Jt;
127
- De.__PQB_SELECT_OPTION__ = !0;
128
- function Xt(l) {
126
+ const qt = te.forwardRef(Wt), Me = qt;
127
+ Me.__PQB_SELECT_OPTION__ = !0;
128
+ function Jt(l) {
129
129
  l && l.preventDefault();
130
130
  }
131
131
  function _e(l, b) {
132
- return b ? !ee(l) || Dt(l) : Gt(l);
132
+ return b ? !ee(l) || Mt(l) : Dt(l);
133
133
  }
134
- function rt(l, b, w) {
135
- return w && (b ? l = Array.isArray(l) ? l.map(
136
- (C) => Re(C) && "label" in C ? C.value : C
137
- ) : l : l = Re(l) && "label" in l ? l.value : l), _e(l, b) ? b ? Array.isArray(l) ? l : [] : void 0 : l;
134
+ function nt(l, b, k) {
135
+ return k && (b ? l = Array.isArray(l) ? l.map(
136
+ (C) => x(C) && "label" in C ? C.value : C
137
+ ) : l : l = x(l) && "label" in l ? l.value : l), _e(l, b) ? b ? Array.isArray(l) ? l : [] : void 0 : l;
138
138
  }
139
- function at(l) {
139
+ function lt(l) {
140
140
  return ie(l, "props.isSelectOption") || ie(l, "type.__PQB_SELECT_OPTION__");
141
141
  }
142
- function ut(l) {
142
+ function at(l) {
143
143
  return ie(l, "props.isSelectOptGroup") || ie(l, "type.__PQB_SELECT_OPTGROUP__");
144
144
  }
145
- function pt({
145
+ function ut({
146
146
  children: l,
147
147
  options: b,
148
- filterOption: w
148
+ filterOption: k
149
149
  }, {
150
150
  inputValue: C = "",
151
151
  userCreatedOptions: R,
152
- userCreatingOption: T,
152
+ userCreatingOption: F,
153
153
  prefixCls: u
154
154
  }, {
155
- optionInfoMap: L = /* @__PURE__ */ new Map(),
155
+ optionInfoMap: $ = /* @__PURE__ */ new Map(),
156
156
  optionValueList: M = [],
157
157
  customNodeCount: D = 0
158
158
  } = {}) {
@@ -160,16 +160,16 @@ function pt({
160
160
  const Q = (o) => {
161
161
  const f = ie(o, "props.value"), s = ie(o, "props.children");
162
162
  return f === void 0 && s !== null && s !== void 0 ? s.toString() : f;
163
- }, $ = ({ label: o, value: f }, s, a) => !o && !f && !s ? (D++, `custom_node_${D}`) : a ? s || `group_${o}` : s || `${typeof f}_${f}` || `${o}_${L.size}`, H = (o, f) => {
163
+ }, I = ({ label: o, value: f }, s, a) => !o && !f && !s ? (D++, `custom_node_${D}`) : a ? s || `group_${o}` : s || `${typeof f}_${f}` || `${o}_${$.size}`, H = (o, f) => {
164
164
  const s = Q(o);
165
165
  let a = !0;
166
- w === !0 ? a = s !== void 0 && String(s).toLowerCase().indexOf(C.toLowerCase()) !== -1 : typeof w == "function" && (a = !C || w(C, o));
167
- const O = L.get(s), S = (O == null ? void 0 : O._origin) === "userCreatedOptions" || (O == null ? void 0 : O._origin) === "userCreatingOption";
166
+ k === !0 ? a = s !== void 0 && String(s).toLowerCase().indexOf(C.toLowerCase()) !== -1 : typeof k == "function" && (a = !C || k(C, o));
167
+ const O = $.get(s), S = (O == null ? void 0 : O._origin) === "userCreatedOptions" || (O == null ? void 0 : O._origin) === "userCreatingOption";
168
168
  if (!O || S) {
169
169
  "_key" in o.props || (o = te.cloneElement(o, {
170
- _key: $(o.props, o.key)
170
+ _key: I(o.props, o.key)
171
171
  }));
172
- const N = L.size, y = {
172
+ const N = $.size, y = {
173
173
  child: o,
174
174
  ...o.props,
175
175
  value: s,
@@ -177,7 +177,7 @@ function pt({
177
177
  _origin: f,
178
178
  _valid: a
179
179
  };
180
- if (L.set(s, y), S) {
180
+ if ($.set(s, y), S) {
181
181
  const ne = v.findIndex(
182
182
  (se) => {
183
183
  var de;
@@ -189,16 +189,16 @@ function pt({
189
189
  M.push(s), a && (v.push(o), y.disabled || G.push(N));
190
190
  }
191
191
  typeof o.props.children != "string" && (B = !0);
192
- }, k = (o, f) => {
192
+ }, V = (o, f) => {
193
193
  f && ee(o) && o.length && o.forEach((s) => {
194
- (jt(s) || Ht(s)) && (s = {
194
+ (Ht(s) || Gt(s)) && (s = {
195
195
  label: s,
196
196
  value: s
197
197
  });
198
- const a = /* @__PURE__ */ x(
199
- De,
198
+ const a = /* @__PURE__ */ w(
199
+ Me,
200
200
  {
201
- _key: $(s),
201
+ _key: I(s),
202
202
  value: s.value,
203
203
  disabled: s.disabled === !0,
204
204
  extra: s.extra,
@@ -208,58 +208,58 @@ function pt({
208
208
  H(a, f);
209
209
  });
210
210
  };
211
- return T && k([T], "userCreatingOption"), l && te.Children.map(l, (o) => {
212
- if (ut(o)) {
211
+ return F && V([F], "userCreatingOption"), l && te.Children.map(l, (o) => {
212
+ if (at(o)) {
213
213
  const { children: f, options: s } = o.props, {
214
214
  childrenList: a,
215
215
  optionIndexListForArrowKey: O,
216
216
  hasComplexLabelInOptions: S
217
- } = pt(
218
- { children: f, options: s, filterOption: w },
217
+ } = ut(
218
+ { children: f, options: s, filterOption: k },
219
219
  { inputValue: C, prefixCls: u },
220
- { optionInfoMap: L, optionValueList: M, customNodeCount: D }
220
+ { optionInfoMap: $, optionValueList: M, customNodeCount: D }
221
221
  );
222
222
  a.length && (v.push(
223
223
  te.cloneElement(o, {
224
224
  children: null,
225
- _key: $(o.props, o.key, !0)
225
+ _key: I(o.props, o.key, !0)
226
226
  })
227
227
  ), v = v.concat(a), G = G.concat(
228
228
  O
229
229
  ), J = !0, B = B || S);
230
- } else at(o) ? H(o, "children") : Re(o) && o.props && v.push(
230
+ } else lt(o) ? H(o, "children") : x(o) && o.props && v.push(
231
231
  te.cloneElement(o, {
232
- _key: $(o.props, o.key)
232
+ _key: I(o.props, o.key)
233
233
  })
234
234
  );
235
- }), k(b, "options"), k(R, "userCreatedOptions"), {
236
- childrenList: Bt({
235
+ }), V(b, "options"), V(R, "userCreatedOptions"), {
236
+ childrenList: jt({
237
237
  nodeList: v,
238
238
  pattern: C,
239
239
  highlightClassName: `${u}-highlight`
240
240
  }),
241
- optionInfoMap: L,
241
+ optionInfoMap: $,
242
242
  optionValueList: M,
243
243
  optionIndexListForArrowKey: G,
244
244
  hasOptGroup: J,
245
245
  hasComplexLabelInOptions: B
246
246
  };
247
247
  }
248
- const ot = "userCreatingOption", Yt = {
248
+ const rt = "userCreatingOption", Xt = {
249
249
  trigger: "click",
250
250
  bordered: !0,
251
251
  filterOption: !0,
252
252
  unmountOnExit: !0,
253
253
  defaultActiveFirstOption: !0
254
- }, Zt = { bottom: 4 };
255
- function zt(l, b) {
256
- var Xe;
257
- const { getPrefixCls: w, renderEmpty: C, componentConfig: R, rtl: T } = Vt(Et), u = $t(
254
+ }, Yt = { bottom: 4 };
255
+ function Zt(l, b) {
256
+ var Je;
257
+ const { getPrefixCls: k, renderEmpty: C, componentConfig: R, rtl: F } = Vt(At), u = Lt(
258
258
  l,
259
- Yt,
259
+ Xt,
260
260
  R == null ? void 0 : R.Select
261
261
  ), {
262
- children: L,
262
+ children: $,
263
263
  renderFormat: M,
264
264
  defaultActiveFirstOption: D,
265
265
  disabled: J,
@@ -267,9 +267,9 @@ function zt(l, b) {
267
267
  notFoundContent: v,
268
268
  showSearch: G,
269
269
  tokenSeparators: Q,
270
- options: $,
270
+ options: I,
271
271
  filterOption: H,
272
- labelInValue: k,
272
+ labelInValue: V,
273
273
  getPopupContainer: o,
274
274
  trigger: f,
275
275
  triggerElement: s,
@@ -284,54 +284,54 @@ function zt(l, b) {
284
284
  onDeselect: de,
285
285
  onClear: be,
286
286
  onSearch: ve,
287
- onFocus: ct,
287
+ onFocus: pt,
288
288
  onBlur: xe,
289
289
  onPopupScroll: we,
290
290
  onVisibleChange: ke,
291
- onInputValueChange: Se,
292
- onPaste: Ve,
291
+ onInputValueChange: Ve,
292
+ onPaste: Se,
293
293
  onKeyDown: Ae
294
294
  } = u;
295
295
  let { mode: Ee, allowCreate: _ } = u;
296
- Ee === "tags" && (Ee = "multiple", _ = !0, Rt(
296
+ Ee === "tags" && (Ee = "multiple", _ = !0, Ut(
297
297
  !0,
298
298
  `[Pqb Select] The 'tags' mode will be removed in the next major version, please use {mode: "multiple", allowCreate: true} instead.`
299
299
  ));
300
- const V = w("select"), g = Ee === "multiple", [dt, Le] = ye(
301
- rt(u.defaultValue, g, k)
302
- ), i = "value" in u ? rt(u.value, g, k) : dt, [A, ft, mt] = et("", {
300
+ const A = k("select"), g = Ee === "multiple", [ct, Le] = ye(
301
+ nt(u.defaultValue, g, V)
302
+ ), i = "value" in u ? nt(u.value, g, V) : ct, [E, dt, ft] = ze("", {
303
303
  value: "inputValue" in u ? u.inputValue || "" : void 0
304
- }), [I, gt] = et(!1, {
304
+ }), [T, mt] = ze(!1, {
305
305
  defaultValue: u.defaultPopupVisible,
306
306
  value: "popupVisible" in u ? u.popupVisible : a && "popupVisible" in a ? a.popupVisible : void 0
307
- }), [le, ht] = ye(null), [ae, Ct] = ye([]), [F, re] = ye(
307
+ }), [le, gt] = ye(null), [ae, ht] = ye([]), [U, re] = ye(
308
308
  ee(i) ? i[0] : i
309
309
  ), {
310
310
  childrenList: $e,
311
311
  optionInfoMap: m,
312
312
  optionValueList: W,
313
313
  optionIndexListForArrowKey: X,
314
- hasOptGroup: Ot,
315
- hasComplexLabelInOptions: yt
316
- } = ze(() => pt(
317
- { children: L, options: $, filterOption: H },
314
+ hasOptGroup: Ct,
315
+ hasComplexLabelInOptions: Ot
316
+ } = Ze(() => ut(
317
+ { children: $, options: I, filterOption: H },
318
318
  {
319
- prefixCls: V,
320
- inputValue: A,
319
+ prefixCls: A,
320
+ inputValue: E,
321
321
  userCreatedOptions: ae,
322
322
  userCreatingOption: le
323
323
  }
324
324
  ), [
325
- L,
326
325
  $,
326
+ I,
327
327
  H,
328
- A,
328
+ E,
329
329
  le,
330
330
  ae
331
- ]), Ne = j(null), He = j(null), E = j(null), Y = j([]), q = j(null), je = j(A), Ie = j(null), fe = j(0), Pe = j(!1), Ke = Lt(`${V}-popup-`), me = _e(i, g), Be = ze(() => {
331
+ ]), Ie = K(null), Ge = K(null), L = K(null), Y = K([]), q = K(null), He = K(E), Ne = K(null), fe = K(0), Te = K(!1), Ke = Et(`${A}-popup-`), me = _e(i, g), je = Ze(() => {
332
332
  var e, t;
333
333
  if (D) {
334
- const n = ee(i) ? i[0] : i, r = !me && ((e = m.get(n)) == null ? void 0 : e._valid), c = ((t = m == null ? void 0 : m.get(W[0])) == null ? void 0 : t._origin) === ot;
334
+ const n = ee(i) ? i[0] : i, r = !me && ((e = m.get(n)) == null ? void 0 : e._valid), c = ((t = m == null ? void 0 : m.get(W[0])) == null ? void 0 : t._origin) === rt;
335
335
  return r && !c ? n : W[X[0]];
336
336
  }
337
337
  }, [
@@ -345,39 +345,39 @@ function zt(l, b) {
345
345
  (e, t) => {
346
346
  var r;
347
347
  const n = m.get(e);
348
- Ne.current && ((r = n == null ? void 0 : n.child) != null && r.props) && Ne.current.scrollTo({
348
+ Ie.current && ((r = n == null ? void 0 : n.child) != null && r.props) && Ie.current.scrollTo({
349
349
  key: n.child.props._key,
350
350
  options: t
351
351
  });
352
352
  },
353
353
  [m]
354
354
  ), he = Ue(
355
- (e, t = !1) => U(_) && typeof (_ == null ? void 0 : _.formatter) == "function" ? _.formatter(e, t) : e,
355
+ (e, t = !1) => x(_) && typeof (_ == null ? void 0 : _.formatter) == "function" ? _.formatter(e, t) : e,
356
356
  [_]
357
357
  ), Z = (e, t) => {
358
- (e !== je.current || t !== Ie.current) && (ft(e), je.current = e, Ie.current = t, Se == null || Se(e, t));
358
+ (e !== He.current || t !== Ne.current) && (dt(e), He.current = e, Ne.current = t, Ve == null || Ve(e, t));
359
359
  }, oe = (e) => {
360
360
  var t;
361
- I !== e && (gt(e), ke == null || ke(e), (t = a == null ? void 0 : a.onVisibleChange) == null || t.call(a, e));
361
+ T !== e && (mt(e), ke == null || ke(e), (t = a == null ? void 0 : a.onVisibleChange) == null || t.call(a, e));
362
362
  };
363
- K(() => {
363
+ j(() => {
364
364
  g ? Array.isArray(i) || Le(i === void 0 ? [] : [i]) : Array.isArray(i) && Le(i.length === 0 ? void 0 : i[0]);
365
- }, [g, i]), K(() => {
366
- if (I) {
367
- re(Be);
365
+ }, [g, i]), j(() => {
366
+ if (T) {
367
+ re(je);
368
368
  const e = ee(i) ? i[0] : i;
369
369
  !me && m.has(e) && setTimeout(() => ge(e));
370
370
  }
371
- }, [I]), K(() => {
372
- (q.current === "up" || q.current === "down") && (ge(F), q.current = "none");
373
- }, [F]), K(() => {
374
- re(Be);
371
+ }, [T]), j(() => {
372
+ (q.current === "up" || q.current === "down") && (ge(U), q.current = "none");
373
+ }, [U]), j(() => {
374
+ re(je);
375
375
  }, [JSON.stringify($e.map((e) => {
376
376
  var t;
377
377
  return (t = e == null ? void 0 : e.props) == null ? void 0 : t.value;
378
- }))]), K(() => {
378
+ }))]), j(() => {
379
379
  Y.current = Y.current.filter((e) => g ? ee(i) && i.indexOf(e.value) > -1 : e.value === i);
380
- }, [i, g]), K(() => {
380
+ }, [i, g]), j(() => {
381
381
  if (_) {
382
382
  let e;
383
383
  if (_e(i, g))
@@ -386,26 +386,26 @@ function zt(l, b) {
386
386
  const n = Array.isArray(i) ? i : [i], r = n.filter((p) => {
387
387
  var P;
388
388
  const h = m.get(p) || ((P = Y.current.find((d) => d.value === p)) == null ? void 0 : P.option);
389
- return !h || h._origin === ot;
389
+ return !h || h._origin === rt;
390
390
  }).map((p) => he(p));
391
391
  e = ae.filter((p) => {
392
- const h = U(p) ? p.value : p;
392
+ const h = x(p) ? p.value : p;
393
393
  return n.indexOf(h) !== -1;
394
394
  }).concat(
395
395
  r
396
396
  );
397
397
  }
398
- const t = (n) => n.map((r) => U(r) ? r.value : r).toString();
399
- t(e) !== t(ae) && Ct(e);
398
+ const t = (n) => n.map((r) => x(r) ? r.value : r).toString();
399
+ t(e) !== t(ae) && ht(e);
400
400
  }
401
- }, [i, _, g, he]), K(() => {
402
- _ && ht(
403
- A && !m.has(A) ? he(A, !0) : null
401
+ }, [i, _, g, he]), j(() => {
402
+ _ && gt(
403
+ E && !m.has(E) ? he(E, !0) : null
404
404
  );
405
- }, [A, he]), K(() => {
406
- const { current: e } = Ie;
407
- mt === A && (e === "manual" || e === "optionListHide") && (ve == null || ve(A, e));
408
- }, [A]);
405
+ }, [E, he]), j(() => {
406
+ const { current: e } = Ne;
407
+ ft === E && (e === "manual" || e === "optionListHide") && (ve == null || ve(E, e));
408
+ }, [E]);
409
409
  const ue = Ue(
410
410
  (e) => {
411
411
  const t = m.get(e);
@@ -419,26 +419,26 @@ function zt(l, b) {
419
419
  return n && n.option;
420
420
  },
421
421
  [m]
422
- ), Qe = (e) => {
422
+ ), Be = (e) => {
423
423
  if (!X.length)
424
424
  return;
425
- if (F === void 0 || !m.has(F))
425
+ if (U === void 0 || !m.has(U))
426
426
  return W[X[0]];
427
- const n = m.get(F)._index, r = X.indexOf(n), c = X.length;
427
+ const n = m.get(U)._index, r = X.indexOf(n), c = X.length;
428
428
  return W[X[((e === "up" ? r - 1 : r + 1) + c) % c]];
429
429
  }, Ce = (e, t = _e(e, g)) => {
430
430
  let n = e;
431
431
  const r = e === void 0 ? void 0 : Array.isArray(e) ? e.map(ue) : ue(e);
432
- if (k && !t) {
432
+ if (V && !t) {
433
433
  const c = (p, h) => {
434
434
  if (h)
435
435
  return h.children;
436
436
  const P = "value" in u ? u.value : "defaultValue" in u ? u.defaultValue : null;
437
437
  if (Array.isArray(P)) {
438
438
  for (const d of P)
439
- if (U(d) && d.value === p)
439
+ if (x(d) && d.value === p)
440
440
  return d.label;
441
- } else if (U(P) && P.value === p)
441
+ } else if (x(P) && P.value === p)
442
442
  return P.label;
443
443
  };
444
444
  Array.isArray(e) ? n = e.map((p, h) => ({
@@ -455,7 +455,7 @@ function zt(l, b) {
455
455
  const t = Ce(e);
456
456
  ne(t.value, t.option);
457
457
  }
458
- }, We = (e, t) => {
458
+ }, Qe = (e, t) => {
459
459
  if (t === "remove" || t === "add" && m.get(e)) {
460
460
  const n = t === "add" ? i.concat(e) : i.filter((c) => c !== e), r = t === "add" ? se : de;
461
461
  if (z(n), typeof r == "function") {
@@ -469,62 +469,62 @@ function zt(l, b) {
469
469
  );
470
470
  }
471
471
  }
472
- }, qe = (e, t) => {
473
- t || (g ? (We(
472
+ }, We = (e, t) => {
473
+ t || (g ? (Qe(
474
474
  e,
475
475
  i.indexOf(e) === -1 ? "add" : "remove"
476
- ), (!U(G) || !G.retainInputValueWhileSelect) && Z("", "optionChecked")) : (e !== i && z(e), setTimeout(() => {
476
+ ), (!x(G) || !G.retainInputValueWhileSelect) && Z("", "optionChecked")) : (e !== i && z(e), setTimeout(() => {
477
477
  oe(!1);
478
478
  })));
479
- }, Oe = Pt(
479
+ }, Oe = Nt(
480
480
  /* @__PURE__ */ new Map([
481
481
  [Tt.key, () => oe(!1)],
482
482
  [
483
- tt.key,
483
+ et.key,
484
484
  () => {
485
- if (I) {
486
- const e = m.get(F);
487
- e && qe(F, e.disabled);
485
+ if (T) {
486
+ const e = m.get(U);
487
+ e && We(U, e.disabled);
488
488
  } else
489
489
  oe(!0);
490
490
  }
491
491
  ],
492
492
  [
493
- nt.key,
493
+ tt.key,
494
494
  // 按tab键切换,关闭开启的弹出框
495
495
  () => oe(!1)
496
496
  ],
497
497
  [
498
- Ft.key,
498
+ Pt.key,
499
499
  () => {
500
- if (I)
501
- return q.current = "up", re(Qe("up")), !1;
500
+ if (T)
501
+ return q.current = "up", re(Be("up")), !1;
502
502
  }
503
503
  ],
504
504
  [
505
- Ut.key,
505
+ Ft.key,
506
506
  () => {
507
- if (I)
508
- return q.current = "down", re(Qe("down")), !1;
507
+ if (T)
508
+ return q.current = "down", re(Be("down")), !1;
509
509
  }
510
510
  ]
511
511
  ])
512
- ), _t = () => {
512
+ ), yt = () => {
513
513
  var h, P;
514
- const e = (a == null ? void 0 : a.autoAlignPopupWidth) === !1 && (!((h = a == null ? void 0 : a.style) != null && h.width) || ((P = a == null ? void 0 : a.style) == null ? void 0 : P.width) === "auto"), t = e && yt, n = "notFoundContent" in u ? v : C("Select"), r = $e.length ? /* @__PURE__ */ x(
515
- Mt,
514
+ const e = (a == null ? void 0 : a.autoAlignPopupWidth) === !1 && (!((h = a == null ? void 0 : a.style) != null && h.width) || ((P = a == null ? void 0 : a.style) == null ? void 0 : P.width) === "auto"), t = e && Ot, n = "notFoundContent" in u ? v : C("Select"), r = $e.length ? /* @__PURE__ */ w(
515
+ Rt,
516
516
  {
517
517
  id: Ke,
518
518
  role: "listbox",
519
519
  style: S,
520
- className: ce(`${V}-popup-inner`, N),
521
- ref: Ne,
520
+ className: ce(`${A}-popup-inner`, N),
521
+ ref: Ie,
522
522
  data: $e,
523
523
  height: null,
524
- isStaticItemHeight: !Ot,
524
+ isStaticItemHeight: !Ct,
525
525
  measureLongestItem: e,
526
526
  itemKey: (d) => d.props._key,
527
- onMouseDown: Xt,
527
+ onMouseDown: Jt,
528
528
  onMouseMove: () => {
529
529
  q.current = null;
530
530
  },
@@ -532,21 +532,21 @@ function zt(l, b) {
532
532
  ...y,
533
533
  threshold: t ? null : y == null ? void 0 : y.threshold,
534
534
  children: (d) => {
535
- var Ye;
536
- if (ut(d))
537
- return /* @__PURE__ */ x(d.type, { ...d.props, prefixCls: V });
538
- if (at(d)) {
539
- const Ze = (Ye = d.props) == null ? void 0 : Ye.value, vt = U(le) ? le.value : le, xt = ae.map(
540
- (pe) => U(pe) ? pe.value : pe
541
- ), wt = {
542
- prefixCls: V,
543
- rtl: T,
544
- _valueActive: F,
535
+ var Xe;
536
+ if (at(d))
537
+ return /* @__PURE__ */ w(d.type, { ...d.props, prefixCls: A });
538
+ if (lt(d)) {
539
+ const Ye = (Xe = d.props) == null ? void 0 : Xe.value, bt = x(le) ? le.value : le, vt = ae.map(
540
+ (pe) => x(pe) ? pe.value : pe
541
+ ), xt = {
542
+ prefixCls: A,
543
+ rtl: F,
544
+ _valueActive: U,
545
545
  _valueSelect: i,
546
546
  _isMultipleMode: g,
547
- _isUserCreatingOption: _ && vt === Ze,
548
- _isUserCreatedOption: _ && xt.indexOf(Ze) > -1,
549
- _onClick: qe,
547
+ _isUserCreatingOption: _ && bt === Ye,
548
+ _isUserCreatedOption: _ && vt.indexOf(Ye) > -1,
549
+ _onClick: We,
550
550
  _onMouseEnter: (pe) => {
551
551
  q.current === null && re(pe);
552
552
  },
@@ -554,34 +554,34 @@ function zt(l, b) {
554
554
  q.current === null && re(void 0);
555
555
  }
556
556
  };
557
- return d && /* @__PURE__ */ x(d.type, { ...d.props, ...wt });
557
+ return d && /* @__PURE__ */ w(d.type, { ...d.props, ...xt });
558
558
  }
559
559
  return d;
560
560
  }
561
561
  }
562
- ) : null, p = n && !(_ && A) ? /* @__PURE__ */ x(
562
+ ) : null, p = n && !(_ && E) ? /* @__PURE__ */ w(
563
563
  "div",
564
564
  {
565
565
  style: S,
566
- className: ce(`${V}-popup-inner`, N),
566
+ className: ce(`${A}-popup-inner`, N),
567
567
  children: n
568
568
  }
569
569
  ) : null;
570
- return /* @__PURE__ */ it(
570
+ return /* @__PURE__ */ ot(
571
571
  "div",
572
572
  {
573
- className: ce(`${V}-popup`, {
574
- [`${V}-popup-hidden`]: r === null && p === null,
575
- [`${V}-popup-multiple`]: g
573
+ className: ce(`${A}-popup`, {
574
+ [`${A}-popup-hidden`]: r === null && p === null,
575
+ [`${A}-popup-multiple`]: g
576
576
  }),
577
577
  tabIndex: -1,
578
578
  onKeyDown: (d) => Oe(d),
579
579
  children: [
580
- !!g && !!r && /* @__PURE__ */ x(kt, { children: /* @__PURE__ */ x(
581
- st,
580
+ !!g && !!r && /* @__PURE__ */ w(wt, { children: /* @__PURE__ */ w(
581
+ it,
582
582
  {
583
583
  "aria-hidden": "true",
584
- className: `${V}-checkbox ${V}-checkbox-all`,
584
+ className: `${A}-checkbox ${A}-checkbox-all`,
585
585
  checked: W.length === i.length,
586
586
  indeterminate: W.length !== i.length && i.length !== 0,
587
587
  onChange: (d) => {
@@ -594,7 +594,7 @@ function zt(l, b) {
594
594
  ]
595
595
  }
596
596
  );
597
- }, Te = (e) => {
597
+ }, Pe = (e) => {
598
598
  if (fe.current = null, g && ee(Q) && Q.length) {
599
599
  const t = e.split(new RegExp(`[${Q.join("")}]`));
600
600
  if (t.length > 1) {
@@ -609,31 +609,31 @@ function zt(l, b) {
609
609
  }
610
610
  }
611
611
  return !!fe.current;
612
- }, bt = {
613
- onFocus: ct,
612
+ }, _t = {
613
+ onFocus: pt,
614
614
  onBlur: (e) => {
615
- xe == null || xe(e), !I && !Pe.current && Z("", "optionListHide");
615
+ xe == null || xe(e), !T && !Te.current && Z("", "optionListHide");
616
616
  },
617
617
  onKeyDown: (e) => {
618
618
  if (e.target.tagName === "INPUT" && e.target.value) {
619
- const t = e.key === nt.key, n = e.key === tt.key;
619
+ const t = e.key === tt.key, n = e.key === et.key;
620
620
  if (n || t) {
621
621
  const r = n ? `
622
622
  ` : t ? " " : "";
623
- Te(e.target.value + r) && Z("", "tokenSeparator");
623
+ Pe(e.target.value + r) && Z("", "tokenSeparator");
624
624
  }
625
625
  }
626
626
  Oe(e), Ae == null || Ae(e);
627
627
  },
628
628
  onChangeInputValue: (e, { nativeEvent: { inputType: t } }) => {
629
- t !== "insertFromPaste" && Te(e), fe.current ? Z("", "tokenSeparator") : Z(e, "manual"), !I && e && oe(!0);
629
+ t !== "insertFromPaste" && Pe(e), fe.current ? Z("", "tokenSeparator") : Z(e, "manual"), !T && e && oe(!0);
630
630
  },
631
631
  onPaste: (e) => {
632
- Te(e.clipboardData.getData("text")), Ve == null || Ve(e);
632
+ Pe(e.clipboardData.getData("text")), Se == null || Se(e);
633
633
  },
634
634
  // Option Items
635
635
  onRemoveCheckedItem: (e, t, n) => {
636
- n.stopPropagation(), We(i[t], "remove");
636
+ n.stopPropagation(), Qe(i[t], "remove");
637
637
  },
638
638
  onClear: (e) => {
639
639
  if (e.stopPropagation(), g) {
@@ -644,85 +644,85 @@ function zt(l, b) {
644
644
  z(t);
645
645
  } else
646
646
  z(void 0);
647
- Z("", "manual"), be == null || be(I);
647
+ Z("", "manual"), be == null || be(T);
648
648
  }
649
649
  };
650
- At(
650
+ St(
651
651
  b,
652
652
  () => {
653
653
  var e;
654
654
  return {
655
- dom: (e = E.current) == null ? void 0 : e.dom,
655
+ dom: (e = L.current) == null ? void 0 : e.dom,
656
656
  focus() {
657
- E.current && E.current.focus();
657
+ L.current && L.current.focus();
658
658
  },
659
659
  blur() {
660
- E.current && E.current.blur();
660
+ L.current && L.current.blur();
661
661
  },
662
662
  hotkeyHandler: Oe,
663
- activeOptionValue: F,
663
+ activeOptionValue: U,
664
664
  getOptionInfoByValue: ue,
665
665
  getOptionInfoList: () => [...m.values()].filter((t) => t._valid),
666
666
  scrollIntoView: ge,
667
667
  getRootDOMNode() {
668
668
  var t, n;
669
- return (n = (t = E.current) == null ? void 0 : t.getRootDOMNode) == null ? void 0 : n.call(t);
669
+ return (n = (t = L.current) == null ? void 0 : t.getRootDOMNode) == null ? void 0 : n.call(t);
670
670
  }
671
671
  };
672
672
  },
673
673
  [
674
674
  Oe,
675
675
  m,
676
- F,
676
+ U,
677
677
  ue,
678
678
  ge
679
679
  ]
680
680
  );
681
- const Je = (e) => /* @__PURE__ */ x(
681
+ const qe = (e) => /* @__PURE__ */ w(
682
682
  It,
683
683
  {
684
- ref: (t) => He.current = t,
685
- popup: _t,
684
+ ref: (t) => Ge.current = t,
685
+ popup: yt,
686
686
  trigger: f,
687
687
  disabled: J,
688
688
  getPopupContainer: o,
689
689
  classNames: "slideDynamicOrigin",
690
690
  autoAlignPopupWidth: !0,
691
- popupAlign: Zt,
692
- popupVisible: I,
691
+ popupAlign: Yt,
692
+ popupVisible: T,
693
693
  unmountOnExit: B,
694
694
  onVisibleChange: oe,
695
695
  __onExit: () => {
696
- Pe.current = !0;
696
+ Te.current = !0;
697
697
  },
698
698
  __onExited: () => {
699
- Pe.current = !1, Z("", "optionListHide");
699
+ Te.current = !1, Z("", "optionListHide");
700
700
  },
701
- ...Me(a, ["popupVisible", "onVisibleChange"]),
701
+ ...Re(a, ["popupVisible", "onVisibleChange"]),
702
702
  children: e
703
703
  }
704
704
  ), Fe = typeof s == "function" ? s(Ce(i)) : s;
705
- return K(() => {
705
+ return j(() => {
706
706
  var t;
707
707
  let e;
708
- return (t = E.current) != null && t.dom && (e = new ResizeObserver(() => {
708
+ return (t = L.current) != null && t.dom && (e = new ResizeObserver(() => {
709
709
  var n, r;
710
- (r = (n = He.current) == null ? void 0 : n.updatePopupPosition) == null || r.call(n);
711
- }), e.observe(E.current.dom)), () => {
710
+ (r = (n = Ge.current) == null ? void 0 : n.updatePopupPosition) == null || r.call(n);
711
+ }), e.observe(L.current.dom)), () => {
712
712
  var n, r, c;
713
- (n = E.current) != null && n.dom && ((r = e == null ? void 0 : e.unobserve) == null || r.call(e, E.current.dom)), (c = e == null ? void 0 : e.disconnect) == null || c.call(e), e = null;
713
+ (n = L.current) != null && n.dom && ((r = e == null ? void 0 : e.unobserve) == null || r.call(e, L.current.dom)), (c = e == null ? void 0 : e.disconnect) == null || c.call(e), e = null;
714
714
  };
715
- }, [(Xe = E.current) == null ? void 0 : Xe.dom]), Fe != null ? Je(Fe) : /* @__PURE__ */ x(
716
- Nt,
715
+ }, [(Je = L.current) == null ? void 0 : Je.dom]), Fe != null ? qe(Fe) : /* @__PURE__ */ w(
716
+ $t,
717
717
  {
718
718
  ...u,
719
- ...bt,
720
- ref: E,
719
+ ..._t,
720
+ ref: L,
721
721
  value: i,
722
- inputValue: A,
723
- popupVisible: I,
724
- rtl: T,
725
- prefixCls: V,
722
+ inputValue: E,
723
+ popupVisible: T,
724
+ rtl: F,
725
+ prefixCls: A,
726
726
  allowCreate: !!_,
727
727
  ariaControls: Ke,
728
728
  isEmptyValue: me,
@@ -731,7 +731,7 @@ function zt(l, b) {
731
731
  renderText: (e) => {
732
732
  const t = ue(e);
733
733
  let n = e;
734
- if (St(M)) {
734
+ if (kt(M)) {
735
735
  const r = Ce(e, !1);
736
736
  n = M(
737
737
  r.option || null,
@@ -739,14 +739,14 @@ function zt(l, b) {
739
739
  );
740
740
  } else {
741
741
  let r = !1;
742
- if (k) {
742
+ if (V) {
743
743
  const c = u.value || u.defaultValue;
744
744
  if (Array.isArray(c)) {
745
745
  const p = c.find(
746
- (h) => U(h) && h.value === e
746
+ (h) => x(h) && h.value === e
747
747
  );
748
748
  p && (n = p.label, r = !0);
749
- } else U(c) && (n = c.label, r = !0);
749
+ } else x(c) && (n = c.label, r = !0);
750
750
  }
751
751
  !r && t && "children" in t && (n = t.children);
752
752
  }
@@ -755,16 +755,16 @@ function zt(l, b) {
755
755
  disabled: t && t.disabled
756
756
  };
757
757
  },
758
- renderView: Je
758
+ renderView: qe
759
759
  }
760
760
  );
761
761
  }
762
- const en = te.forwardRef(zt), Ge = en;
763
- Ge.displayName = "Select";
764
- Ge.Option = De;
765
- Ge.OptGroup = lt;
762
+ const zt = te.forwardRef(Zt), De = zt;
763
+ De.displayName = "Select";
764
+ De.Option = Me;
765
+ De.OptGroup = st;
766
766
  export {
767
- Ge as S,
768
- ut as a,
769
- at as i
767
+ De as S,
768
+ at as a,
769
+ lt as i
770
770
  };