@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
@@ -0,0 +1,52 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import r from "react";
3
+ import { u as i } from "./B45v5S9k.js";
4
+ const d = r.forwardRef(function(e, n) {
5
+ const t = i({ ...e, name: "ui-menu-fold" });
6
+ return /* @__PURE__ */ o(
7
+ "svg",
8
+ {
9
+ width: "1em",
10
+ height: "1em",
11
+ viewBox: "0 0 48 48",
12
+ fill: "none",
13
+ stroke: "currentColor",
14
+ ref: n,
15
+ ...t,
16
+ strokeWidth: "4",
17
+ children: /* @__PURE__ */ o(
18
+ "path",
19
+ {
20
+ d: "M42 11H6m36 13H22m20 13H6m7.66-10.088-4.82-3.118 4.82-3.118z",
21
+ strokeLinecap: "butt"
22
+ }
23
+ )
24
+ }
25
+ );
26
+ }), f = r.forwardRef(function(e, n) {
27
+ const t = i({ ...e, name: "ui-menu-unfold" });
28
+ return /* @__PURE__ */ o(
29
+ "svg",
30
+ {
31
+ width: "1em",
32
+ height: "1em",
33
+ viewBox: "0 0 48 48",
34
+ fill: "none",
35
+ stroke: "currentColor",
36
+ ref: n,
37
+ ...t,
38
+ strokeWidth: "4",
39
+ children: /* @__PURE__ */ o(
40
+ "path",
41
+ {
42
+ d: "M6 11h36M22 24h20M6 37h36M8 20.882 12.819 24 8 27.118z",
43
+ strokeLinecap: "butt"
44
+ }
45
+ )
46
+ }
47
+ );
48
+ });
49
+ export {
50
+ f as I,
51
+ d as a
52
+ };
@@ -0,0 +1,278 @@
1
+ import { jsxs as q, jsx as m } from "react/jsx-runtime";
2
+ import { I as oe } from "./B45v5S9k.js";
3
+ import U from "lodash/isArray";
4
+ import { forwardRef as fe, useContext as te, useRef as j, useState as se, useImperativeHandle as ne } from "react";
5
+ import { b as re, I as me } from "./DUxWiN2U.js";
6
+ import { y as G } from "./Do1aMgY3.js";
7
+ import { Enter as ie, Tab as Ne } from "../utils/keyCode.js";
8
+ import $e from "../utils/omit.js";
9
+ function ue({
10
+ style: J,
11
+ className: Q,
12
+ prefixCls: V,
13
+ allowClear: X,
14
+ status: Y,
15
+ error: $,
16
+ disabled: k,
17
+ placeholder: g,
18
+ format: v,
19
+ size: F,
20
+ onClear: Z,
21
+ editable: _,
22
+ value: N,
23
+ inputValue: z,
24
+ onPressEnter: y,
25
+ suffixIcon: D,
26
+ prefix: h,
27
+ onChange: w,
28
+ popupVisible: I,
29
+ isPlaceholder: B,
30
+ inputProps: c,
31
+ ...x
32
+ }, R) {
33
+ const {
34
+ getPrefixCls: t,
35
+ size: K,
36
+ locale: T,
37
+ rtl: E
38
+ } = te(re), O = j(null), [P, H] = se(!1), p = F || K, u = j(null);
39
+ ne(R, () => ({
40
+ focus() {
41
+ var f, n;
42
+ (n = (f = O.current) == null ? void 0 : f.focus) == null || n.call(f);
43
+ },
44
+ blur() {
45
+ var f, n;
46
+ (n = (f = O.current) == null ? void 0 : f.blur) == null || n.call(f);
47
+ },
48
+ getRootDOMNode: () => u.current
49
+ }));
50
+ function S(f) {
51
+ var b;
52
+ (b = c == null ? void 0 : c.onKeyDown) == null || b.call(c, f), f.key === ie.key && (y == null || y());
53
+ }
54
+ function L(f) {
55
+ var n;
56
+ (n = c == null ? void 0 : c.onChange) == null || n.call(c, f), w == null || w(f);
57
+ }
58
+ let d = "";
59
+ z !== void 0 ? d = z : N && !U(N) && (d = typeof v == "function" ? v(N) : N.locale(T.dayjsLocale).format(v));
60
+ const M = _ ? {} : { readOnly: !0 }, s = V || t("picker"), C = Y || ($ ? "error" : void 0), W = P || I, A = G(
61
+ s,
62
+ `${s}-size-${p}`,
63
+ {
64
+ [`${s}-focused`]: W,
65
+ [`${s}-disabled`]: k,
66
+ [`${s}-has-prefix`]: h,
67
+ [`${s}-${C}`]: C,
68
+ [`${s}-rtl`]: E
69
+ },
70
+ Q
71
+ );
72
+ return /* @__PURE__ */ q(
73
+ "div",
74
+ {
75
+ style: J,
76
+ className: A,
77
+ ref: u,
78
+ ...$e(x, ["onChange", "onPressEnter"]),
79
+ children: [
80
+ h && /* @__PURE__ */ m("div", { className: `${s}-prefix`, children: h }),
81
+ /* @__PURE__ */ m(
82
+ "div",
83
+ {
84
+ className: G(`${s}-input`, {
85
+ [`${s}-input-placeholder`]: B
86
+ }),
87
+ children: /* @__PURE__ */ m(
88
+ "input",
89
+ {
90
+ ref: O,
91
+ ...c,
92
+ disabled: k,
93
+ placeholder: g,
94
+ className: `${s}-start-time`,
95
+ value: d,
96
+ onKeyDown: S,
97
+ onChange: L,
98
+ ...M,
99
+ onFocus: (f) => {
100
+ var n;
101
+ H(!0), (n = c == null ? void 0 : c.onFocus) == null || n.call(c, f);
102
+ },
103
+ onBlur: (f) => {
104
+ var n;
105
+ H(!1), (n = c == null ? void 0 : c.onBlur) == null || n.call(c, f);
106
+ }
107
+ }
108
+ )
109
+ }
110
+ ),
111
+ /* @__PURE__ */ q("div", { className: `${s}-suffix`, children: [
112
+ X && d && /* @__PURE__ */ m(
113
+ me,
114
+ {
115
+ prefix: s,
116
+ onClick: Z,
117
+ className: `${s}-clear-icon`,
118
+ children: /* @__PURE__ */ m(oe, {})
119
+ }
120
+ ),
121
+ /* @__PURE__ */ m("span", { className: `${s}-suffix-icon`, children: D })
122
+ ] })
123
+ ]
124
+ }
125
+ );
126
+ }
127
+ const Ke = fe(ue);
128
+ function Ce({
129
+ allowClear: J,
130
+ error: Q,
131
+ status: V,
132
+ style: X,
133
+ className: Y,
134
+ disabled: $,
135
+ placeholder: k = [],
136
+ value: g = [],
137
+ popupVisible: v,
138
+ format: F,
139
+ size: Z,
140
+ onClear: _,
141
+ editable: N,
142
+ inputValue: z,
143
+ onPressEnter: y,
144
+ onPressTab: D,
145
+ onChange: h,
146
+ separator: w,
147
+ suffixIcon: I,
148
+ changeFocusedInputIndex: B,
149
+ focusedInputIndex: c,
150
+ isPlaceholder: x,
151
+ prefix: R,
152
+ inputProps: t = [],
153
+ onBlur: K,
154
+ ...T
155
+ }, E) {
156
+ const {
157
+ getPrefixCls: O,
158
+ size: P,
159
+ locale: H,
160
+ rtl: p
161
+ } = te(re), u = j(null), S = j(null), L = j(null), [d, M] = se([!1, !1]), s = U($) ? $[0] : $, C = U($) ? $[1] : $;
162
+ ne(E, () => ({
163
+ focus(e) {
164
+ var o, i;
165
+ (c === 0 && !s || c === 1 && !C) && ((i = (o = ((typeof e == "number" ? e : c) === 0 ? u : S).current) == null ? void 0 : o.focus) == null || i.call(o));
166
+ },
167
+ blur() {
168
+ var e, a, l, o;
169
+ c === 0 && ((a = (e = u.current) == null ? void 0 : e.blur) == null || a.call(e)), c === 1 && ((o = (l = S.current) == null ? void 0 : l.blur) == null || o.call(l));
170
+ },
171
+ getRootDOMNode: () => L.current
172
+ }));
173
+ function W(e, a) {
174
+ var l, o;
175
+ (o = (l = t == null ? void 0 : t[a]) == null ? void 0 : l.onClick) == null || o.call(l, e), c !== a && B(a);
176
+ }
177
+ function A(e, a) {
178
+ var o, i;
179
+ const l = e.key;
180
+ (i = (o = t == null ? void 0 : t[a]) == null ? void 0 : o.onKeyDown) == null || i.call(o, e), l === ie.key && (y == null || y()), l === Ne.key && (D == null || D(e));
181
+ }
182
+ function f(e, a) {
183
+ var l, o;
184
+ e.stopPropagation(), (o = (l = t == null ? void 0 : t[a]) == null ? void 0 : l.onChange) == null || o.call(l, e), h == null || h(e);
185
+ }
186
+ function n(e, a) {
187
+ var l, o;
188
+ M((i) => (i[a] = !1, [...i])), (o = (l = t == null ? void 0 : t[a]) == null ? void 0 : l.onBlur) == null || o.call(l, e), K == null || K(e);
189
+ }
190
+ function b(e, a) {
191
+ var l, o;
192
+ (a === 0 || a === 1) && (M((i) => (i[a] = !0, [...i])), c !== a && B(a, !0)), (o = (l = t == null ? void 0 : t[a]) == null ? void 0 : l.onFocus) == null || o.call(l, e);
193
+ }
194
+ const r = O("picker"), ye = Z || P, he = d[0] || d[1] || !!v, ee = V || (Q ? "error" : void 0), de = G(
195
+ r,
196
+ `${r}-range`,
197
+ `${r}-size-${ye}`,
198
+ {
199
+ [`${r}-focused`]: he,
200
+ [`${r}-disabled`]: s && C,
201
+ [`${r}-${ee}`]: ee,
202
+ [`${r}-rtl`]: p,
203
+ [`${r}-has-prefix`]: R
204
+ },
205
+ Y
206
+ ), ce = (e) => {
207
+ const a = g[e] ? g[e].locale(H.dayjsLocale).format(U(F) ? F[e] : F) : "";
208
+ return z && e === c ? z : a;
209
+ }, le = N ? {} : { readOnly: !0 };
210
+ function ae(e) {
211
+ return G(`${r}-input`, {
212
+ [`${r}-input-active`]: c === e,
213
+ [`${r}-input-placeholder`]: x && c === e
214
+ });
215
+ }
216
+ return /* @__PURE__ */ q(
217
+ "div",
218
+ {
219
+ style: X,
220
+ ref: L,
221
+ className: de,
222
+ ...$e(T, ["onChange", "onPressEnter"]),
223
+ children: [
224
+ R && /* @__PURE__ */ m("div", { className: `${r}-prefix`, children: R }),
225
+ /* @__PURE__ */ m("div", { className: ae(0), children: /* @__PURE__ */ m(
226
+ "input",
227
+ {
228
+ ref: u,
229
+ ...t[0],
230
+ disabled: s,
231
+ placeholder: k[0],
232
+ value: ce(0),
233
+ onChange: (e) => f(e, 0),
234
+ onKeyDown: (e) => A(e, 0),
235
+ onClick: (e) => W(e, 0),
236
+ onBlur: (e) => n(e, 0),
237
+ onFocus: (e) => b(e, 0),
238
+ ...le
239
+ }
240
+ ) }),
241
+ /* @__PURE__ */ m("span", { className: `${r}-separator`, children: w || "-" }),
242
+ /* @__PURE__ */ m("div", { className: ae(1), children: /* @__PURE__ */ m(
243
+ "input",
244
+ {
245
+ ref: S,
246
+ ...t[1],
247
+ disabled: C,
248
+ placeholder: k[1],
249
+ value: ce(1),
250
+ onChange: (e) => f(e, 1),
251
+ onKeyDown: (e) => A(e, 1),
252
+ onClick: (e) => W(e, 1),
253
+ onBlur: (e) => n(e, 1),
254
+ onFocus: (e) => b(e, 1),
255
+ ...le
256
+ }
257
+ ) }),
258
+ /* @__PURE__ */ q("div", { className: `${r}-suffix`, children: [
259
+ J && g.length === 2 && /* @__PURE__ */ m(
260
+ me,
261
+ {
262
+ prefix: r,
263
+ onClick: _,
264
+ className: `${r}-clear-icon`,
265
+ children: /* @__PURE__ */ m(oe, {})
266
+ }
267
+ ),
268
+ /* @__PURE__ */ m("span", { className: `${r}-suffix-icon`, children: I })
269
+ ] })
270
+ ]
271
+ }
272
+ );
273
+ }
274
+ const Oe = fe(Ce);
275
+ export {
276
+ Ke as I,
277
+ Oe as a
278
+ };
@@ -1,18 +1,18 @@
1
1
  import { jsx as $, jsxs as Q, Fragment as Te } from "react/jsx-runtime";
2
- import { useRef as j, useEffect as X, useCallback as V, createContext as Oe, useContext as se } from "react";
3
- import ie from "../Button.js";
4
- import { a as Ce } from "./xPzFRQJn.js";
5
- import ee from "@unicom-cloud/utils/class-name";
6
- import { dayjs as g, methods as Y, getDayjsValue as He, getNow as re, toLocal as ce } from "../utils/dayjs.js";
7
- import { padStart as O } from "../utils/pad.js";
2
+ import { useRef as j, useEffect as X, useCallback as V, createContext as Ce, useContext as ie } from "react";
3
+ import se from "../Button.js";
4
+ import { b as He } from "./DUxWiN2U.js";
5
+ import { y as ee } from "./Do1aMgY3.js";
6
+ import { dayjs as g, methods as Y, getDayjsValue as Oe, getNow as re, toLocal as ce } from "../utils/dayjs.js";
7
+ import { padStart as C } from "../utils/pad.js";
8
8
  import ge from "lodash/debounce";
9
9
  import ye from "../hooks/usePrevious.js";
10
- import { Tween as we, quartInOut as Se } from "@unicom-cloud/utils/tween";
11
- import { isDayjs as Ne } from "dayjs";
12
- function q(r) {
13
- const i = ["H", "h", "m", "s", "a", "A"], o = [];
10
+ import { I as we, b as Se } from "./CkAOsst1.js";
11
+ import { isDayjs as ke } from "dayjs";
12
+ function _(r) {
13
+ const s = ["H", "h", "m", "s", "a", "A"], o = [];
14
14
  let h = !1;
15
- return i.forEach((c) => {
15
+ return s.forEach((c) => {
16
16
  r.indexOf(c) !== -1 && (o.push(c), (c === "a" || c === "A") && (h = !0));
17
17
  }), {
18
18
  list: o,
@@ -20,13 +20,13 @@ function q(r) {
20
20
  };
21
21
  }
22
22
  const Z = /* @__PURE__ */ new Map();
23
- function le(r, i, o) {
24
- Z.get(r) && cancelAnimationFrame(Z.get(r)), o <= 0 && (r.scrollTop = i), Z.set(
23
+ function le(r, s, o) {
24
+ Z.get(r) && cancelAnimationFrame(Z.get(r)), o <= 0 && (r.scrollTop = s), Z.set(
25
25
  r,
26
26
  requestAnimationFrame(() => {
27
27
  new we({
28
28
  from: { scrollTop: r.scrollTop },
29
- to: { scrollTop: i },
29
+ to: { scrollTop: s },
30
30
  duration: o,
31
31
  onUpdate: (c) => {
32
32
  r.scrollTop = c.scrollTop;
@@ -36,9 +36,9 @@ function le(r, i, o) {
36
36
  })
37
37
  );
38
38
  }
39
- function qe(r) {
40
- const i = g(), o = i.year(), h = i.month(), c = i.date();
41
- if (Ne(r)) {
39
+ function _e(r) {
40
+ const s = g(), o = s.year(), h = s.month(), c = s.date();
41
+ if (ke(r)) {
42
42
  let u = r;
43
43
  return u = Y.set(u, "year", o), u = Y.set(u, "month", h), u = Y.set(u, "date", c), u;
44
44
  }
@@ -46,7 +46,7 @@ function qe(r) {
46
46
  }
47
47
  function R(r) {
48
48
  const {
49
- prefixCls: i,
49
+ prefixCls: s,
50
50
  list: o,
51
51
  value: h,
52
52
  onHandleSelect: c,
@@ -57,56 +57,56 @@ function R(r) {
57
57
  p.current && p.current.scrollTop
58
58
  );
59
59
  X(() => {
60
- const s = y.current.get(h);
61
- s && a && F && (le(p.current, s.offsetTop, 150), v.current = s.offsetTop);
60
+ const i = y.current.get(h);
61
+ i && a && F && (le(p.current, i.offsetTop, 150), v.current = i.offsetTop);
62
62
  }, [h]), X(() => {
63
63
  if (a && a !== F) {
64
- const s = y.current.get(h);
65
- s && (le(p.current, s.offsetTop, 0), v.current = s.offsetTop);
64
+ const i = y.current.get(h);
65
+ i && (le(p.current, i.offsetTop, 0), v.current = i.offsetTop);
66
66
  }
67
67
  }, [a, F]), X(() => {
68
68
  o.length <= 1 || (z.current = (w.current.clientHeight - p.current.clientHeight) / (o.length - 1));
69
69
  }, [o.length]);
70
70
  const E = V(
71
71
  ge(() => {
72
- const C = (p.current.scrollTop - v.current > 0 ? Math.ceil : Math.floor)(
72
+ const H = (p.current.scrollTop - v.current > 0 ? Math.ceil : Math.floor)(
73
73
  p.current.scrollTop / z.current
74
74
  );
75
- C !== h && o[C] && !o[C].disabled && c(o[C].value, u);
75
+ H !== h && o[H] && !o[H].disabled && c(o[H].value, u);
76
76
  }, 100),
77
77
  [c]
78
78
  );
79
79
  return /* @__PURE__ */ $(
80
80
  "div",
81
81
  {
82
- className: ee(`${i}-list`),
82
+ className: ee(`${s}-list`),
83
83
  ref: p,
84
84
  onWheel: d ? E : void 0,
85
- children: /* @__PURE__ */ $("ul", { ref: w, children: o.map((s) => /* @__PURE__ */ $(
85
+ children: /* @__PURE__ */ $("ul", { ref: w, children: o.map((i) => /* @__PURE__ */ $(
86
86
  "li",
87
87
  {
88
- className: ee(`${i}-cell`, {
89
- [`${i}-cell-disabled`]: s.disabled,
90
- [`${i}-cell-selected`]: s.selected
88
+ className: ee(`${s}-cell`, {
89
+ [`${s}-cell-disabled`]: i.disabled,
90
+ [`${s}-cell-selected`]: i.selected
91
91
  }),
92
- onClick: () => !s.disabled && c(s.value, u),
93
- ref: (C) => {
94
- y.current.set(s.value, C);
92
+ onClick: () => !i.disabled && c(i.value, u),
93
+ ref: (H) => {
94
+ y.current.set(i.value, H);
95
95
  },
96
- children: /* @__PURE__ */ $("div", { className: `${i}-cell-inner`, children: s.label })
96
+ children: /* @__PURE__ */ $("div", { className: `${s}-cell-inner`, children: i.label })
97
97
  },
98
- s.value
98
+ i.value
99
99
  )) })
100
100
  }
101
101
  );
102
102
  }
103
- const ke = Oe({}), Pe = ["am", "pm"];
103
+ const Ne = Ce({}), Pe = ["am", "pm"];
104
104
  function Fe(r) {
105
- return r.use12Hours ?? q(r.format).use12Hours;
105
+ return r.use12Hours ?? _(r.format).use12Hours;
106
106
  }
107
- function _e(r) {
107
+ function qe(r) {
108
108
  const {
109
- format: i = "HH:mm:ss",
109
+ format: s = "HH:mm:ss",
110
110
  onSelect: o,
111
111
  popupVisible: h,
112
112
  step: c = {},
@@ -120,17 +120,17 @@ function _e(r) {
120
120
  valueShow: F,
121
121
  setValueShow: v,
122
122
  extra: E,
123
- disableConfirm: s,
124
- hideFooter: C,
123
+ disableConfirm: i,
124
+ hideFooter: H,
125
125
  showNowBtn: ne = !0,
126
126
  scrollSticky: fe
127
- } = r, { getPrefixCls: ue, locale: te } = se(Ce), I = ue("timepicker"), { utcOffset: _, timezone: W } = se(ke), x = He(F, i), M = x && x.hour() >= 12 ? "pm" : "am", H = Fe(r), G = V(
127
+ } = r, { getPrefixCls: ue, locale: te } = ie(He), I = ue("timepicker"), { utcOffset: q, timezone: W } = ie(Ne), x = Oe(F, s), M = x && x.hour() >= 12 ? "pm" : "am", O = Fe(r), G = V(
128
128
  (n) => {
129
129
  const t = c.hour || 1, e = c.minute || 1, U = c.second || 1, m = [];
130
130
  if (n === "hour") {
131
- for (let f = 0; f < (H ? 12 : 24); f += t)
131
+ for (let f = 0; f < (O ? 12 : 24); f += t)
132
132
  m.push(f);
133
- H && (m[0] = 12);
133
+ O && (m[0] = 12);
134
134
  }
135
135
  if (n === "minute")
136
136
  for (let f = 0; f < 60; f += e)
@@ -140,42 +140,42 @@ function _e(r) {
140
140
  m.push(f);
141
141
  return m;
142
142
  },
143
- [c.hour, c.minute, c.second, H]
144
- ), A = G("hour"), k = G("minute"), S = G("second");
143
+ [c.hour, c.minute, c.second, O]
144
+ ), A = G("hour"), N = G("minute"), S = G("second");
145
145
  let l = x && x.hour();
146
- l = H && l > 12 ? l - 12 : l, H && l === 0 && M === "am" && (l += 12);
146
+ l = O && l > 12 ? l - 12 : l, O && l === 0 && M === "am" && (l += 12);
147
147
  const P = x && x.minute(), oe = x && x.second(), J = V(
148
148
  (n) => {
149
149
  switch (n) {
150
150
  case "hour":
151
- return typeof u == "function" ? O(
151
+ return typeof u == "function" ? C(
152
152
  A.find((t) => u().indexOf(t) === -1) || 0,
153
153
  2,
154
154
  "0"
155
- ) : O(A[0], 2, "0");
155
+ ) : C(A[0], 2, "0");
156
156
  case "minute":
157
- return typeof a == "function" ? O(
158
- k.find(
157
+ return typeof a == "function" ? C(
158
+ N.find(
159
159
  (t) => a(l).indexOf(t) === -1
160
160
  ) || 0,
161
161
  2,
162
162
  "0"
163
- ) : O(k[0], 2, "0");
163
+ ) : C(N[0], 2, "0");
164
164
  case "second":
165
- return typeof d == "function" ? O(
165
+ return typeof d == "function" ? C(
166
166
  S.find(
167
167
  (t) => d(l, P).indexOf(t) === -1
168
168
  ) || 0,
169
169
  2,
170
170
  "0"
171
- ) : O(S[0], 2, "0");
171
+ ) : C(S[0], 2, "0");
172
172
  default:
173
173
  return "00";
174
174
  }
175
175
  },
176
176
  [
177
177
  A,
178
- k,
178
+ N,
179
179
  S,
180
180
  u,
181
181
  a,
@@ -185,27 +185,27 @@ function _e(r) {
185
185
  ]
186
186
  );
187
187
  function ae(n, t) {
188
- const e = q(i).list.indexOf("A") !== -1, U = x || g(
188
+ const e = _(s).list.indexOf("A") !== -1, U = x || g(
189
189
  `${J("hour")}:${J("minute")}:${J(
190
190
  "second"
191
191
  )}`,
192
192
  "HH:mm:ss"
193
193
  );
194
- let m = U.hour(), f = U.minute(), N = U.second();
194
+ let m = U.hour(), f = U.minute(), k = U.second();
195
195
  const K = e ? M.toUpperCase() : M;
196
196
  let T = "HH:mm:ss", b;
197
- H && (e ? T = `${T} A` : T = `${T} a`), H && (m = m > 12 ? m - 12 : m), t === "hour" && (typeof a == "function" && a(n).includes(f) && (f = k.find(
197
+ O && (e ? T = `${T} A` : T = `${T} a`), O && (m = m > 12 ? m - 12 : m), t === "hour" && (typeof a == "function" && a(n).includes(f) && (f = N.find(
198
198
  (D) => a(n).indexOf(D) === -1
199
- ) ?? 0), typeof d == "function" && d(n, f).includes(N) && (N = S.find(
199
+ ) ?? 0), typeof d == "function" && d(n, f).includes(k) && (k = S.find(
200
200
  (D) => d(n, f).indexOf(D) === -1
201
201
  ) ?? 0), b = g(
202
- `${n}:${f}:${N} ${K}`,
202
+ `${n}:${f}:${k} ${K}`,
203
203
  T,
204
204
  "en"
205
- )), t === "minute" && (typeof d == "function" && d(m, n).includes(N) && (N = S.find(
205
+ )), t === "minute" && (typeof d == "function" && d(m, n).includes(k) && (k = S.find(
206
206
  (D) => d(m, n).indexOf(D) === -1
207
207
  ) ?? 0), b = g(
208
- `${m}:${n}:${N} ${K}`,
208
+ `${m}:${n}:${k} ${K}`,
209
209
  T,
210
210
  "en"
211
211
  )), t === "second" && (b = g(
@@ -213,20 +213,20 @@ function _e(r) {
213
213
  T,
214
214
  "en"
215
215
  )), t === "ampm" && (b = g(
216
- `${m}:${f}:${N} ${e ? n.toUpperCase() : n}`,
216
+ `${m}:${f}:${k} ${e ? n.toUpperCase() : n}`,
217
217
  T,
218
218
  "en"
219
219
  )), b = g(b, T).locale(g.locale()), o == null || o(
220
- ce(b, _, W).format(i),
221
- ce(b, _, W)
222
- ), w || (v == null || v(b), s && p(b));
220
+ ce(b, q, W).format(s),
221
+ ce(b, q, W)
222
+ ), w || (v == null || v(b), i && p(b));
223
223
  }
224
224
  function de() {
225
225
  x && p(x);
226
226
  }
227
227
  function me() {
228
- const n = re(), t = re(_, W);
229
- o == null || o(n.format(i), n), s ? p == null || p(t) : v == null || v(t);
228
+ const n = re(), t = re(q, W);
229
+ o == null || o(n.format(s), n), i ? p == null || p(t) : v == null || v(t);
230
230
  }
231
231
  const B = {
232
232
  prefixCls: I,
@@ -236,7 +236,7 @@ function _e(r) {
236
236
  };
237
237
  function pe() {
238
238
  const t = (y && typeof u == "function" ? A.filter((e) => u().indexOf(e) === -1) : A).map((e) => ({
239
- label: O(`${e}`, 2, "0"),
239
+ label: C(`${e}`, 2, "0"),
240
240
  value: e,
241
241
  selected: l !== void 0 && l === e,
242
242
  disabled: typeof u == "function" && u().indexOf(e) !== -1
@@ -252,8 +252,8 @@ function _e(r) {
252
252
  );
253
253
  }
254
254
  function he() {
255
- const t = (y && typeof a == "function" ? k.filter((e) => a(l).indexOf(e) === -1) : k).map((e) => ({
256
- label: O(`${e}`, 2, "0"),
255
+ const t = (y && typeof a == "function" ? N.filter((e) => a(l).indexOf(e) === -1) : N).map((e) => ({
256
+ label: C(`${e}`, 2, "0"),
257
257
  value: e,
258
258
  selected: l !== void 0 && P === e,
259
259
  disabled: typeof a == "function" && a(l).indexOf(e) !== -1
@@ -272,7 +272,7 @@ function _e(r) {
272
272
  const t = (y && typeof d == "function" ? S.filter(
273
273
  (e) => d(l, P).indexOf(e) === -1
274
274
  ) : S).map((e) => ({
275
- label: O(`${e}`, 2, "0"),
275
+ label: C(`${e}`, 2, "0"),
276
276
  value: e,
277
277
  selected: l !== void 0 && oe === e,
278
278
  disabled: typeof d == "function" && d(l, P).indexOf(e) !== -1
@@ -288,7 +288,7 @@ function _e(r) {
288
288
  );
289
289
  }
290
290
  function $e() {
291
- const n = q(i).list.indexOf("A") !== -1, t = Pe.map((e) => ({
291
+ const n = _(s).list.indexOf("A") !== -1, t = Pe.map((e) => ({
292
292
  label: n ? e.toUpperCase() : e,
293
293
  value: e,
294
294
  selected: M === e
@@ -303,19 +303,19 @@ function _e(r) {
303
303
  }
304
304
  );
305
305
  }
306
- const { list: L } = q(i), ve = ee(I), be = C || s && w || !w && s && !ne;
306
+ const { list: L } = _(s), ve = ee(I), be = H || i && w || !w && i && !ne;
307
307
  return /* @__PURE__ */ Q(Te, { children: [
308
308
  /* @__PURE__ */ Q("div", { className: ve, children: [
309
309
  (L.indexOf("H") !== -1 || L.indexOf("h") !== -1) && pe(),
310
310
  L.indexOf("m") !== -1 && he(),
311
311
  L.indexOf("s") !== -1 && xe(),
312
- H && $e()
312
+ O && $e()
313
313
  ] }),
314
314
  E && /* @__PURE__ */ $("div", { className: `${I}-footer-extra-wrapper`, children: E }),
315
315
  !be && /* @__PURE__ */ Q("div", { className: `${I}-footer-btn-wrapper`, children: [
316
- !w && ne ? /* @__PURE__ */ $(ie, { size: "mini", onClick: me, children: te.TimePicker.now }) : /* @__PURE__ */ $("div", {}),
317
- !s && /* @__PURE__ */ $(
318
- ie,
316
+ !w && ne ? /* @__PURE__ */ $(se, { size: "mini", onClick: me, children: te.TimePicker.now }) : /* @__PURE__ */ $("div", {}),
317
+ !i && /* @__PURE__ */ $(
318
+ se,
319
319
  {
320
320
  type: "primary",
321
321
  size: "mini",
@@ -328,7 +328,7 @@ function _e(r) {
328
328
  ] });
329
329
  }
330
330
  export {
331
- ke as P,
332
- _e as T,
333
- qe as g
331
+ Ne as P,
332
+ qe as T,
333
+ _e as g
334
334
  };