@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
package/Spin.js CHANGED
@@ -1,31 +1,31 @@
1
1
  import { jsx as i, jsxs as u, Fragment as x } from "react/jsx-runtime";
2
- import E from "@unicom-cloud/icons/IconUiLoading";
2
+ import { e as E } from "./chunk/B45v5S9k.js";
3
3
  import P from "lodash/debounce";
4
- import C, { useContext as b, useState as j, useCallback as _, useRef as A, useImperativeHandle as D, useEffect as F } from "react";
5
- import { a as L } from "./chunk/xPzFRQJn.js";
4
+ import v, { useContext as C, useState as j, useCallback as _, useRef as A, useImperativeHandle as D, useEffect as F } from "react";
5
+ import { b as L } from "./chunk/DUxWiN2U.js";
6
6
  import H from "./hooks/useMergeProps.js";
7
- import v from "@unicom-cloud/utils/class-name";
7
+ import { y as b } from "./chunk/Do1aMgY3.js";
8
8
  import { isEmptyReactNode as M } from "./utils/is.js";
9
9
  import U from "lodash/isNumber";
10
10
  function q(n) {
11
- const { getPrefixCls: m } = b(L), l = `${m("spin")}-dot`, s = {
11
+ const { getPrefixCls: m } = C(L), a = `${m("spin")}-dot`, s = {
12
12
  width: n.size,
13
13
  height: n.size
14
14
  }, t = n.size ? parseInt(String(n.size)) : 0;
15
15
  return /* @__PURE__ */ i(
16
16
  "div",
17
17
  {
18
- className: `${l}-list`,
18
+ className: `${a}-list`,
19
19
  style: {
20
20
  height: n.size,
21
21
  width: U(t) && t > 0 ? t * 7 : ""
22
22
  },
23
- children: [...new Array(5)].map((g, f) => /* @__PURE__ */ i("div", { className: l, style: s }, f))
23
+ children: [...new Array(5)].map((g, f) => /* @__PURE__ */ i("div", { className: a, style: s }, f))
24
24
  }
25
25
  );
26
26
  }
27
27
  function B(n, m) {
28
- const { getPrefixCls: l, componentConfig: s } = b(L), t = H(n, {}, s == null ? void 0 : s.Spin), {
28
+ const { getPrefixCls: a, componentConfig: s } = C(L), t = H(n, {}, s == null ? void 0 : s.Spin), {
29
29
  style: g,
30
30
  className: f,
31
31
  children: p,
@@ -35,21 +35,21 @@ function B(n, m) {
35
35
  element: w,
36
36
  tip: o,
37
37
  dot: R,
38
- delay: a,
38
+ delay: l,
39
39
  block: I = !1,
40
40
  ...k
41
- } = t, [N, y] = j(a ? !1 : r), d = _(P(y, a), [a]), $ = a ? N : r, e = l("spin"), S = A(null);
41
+ } = t, [N, y] = j(l ? !1 : r), d = _(P(y, l), [l]), $ = l ? N : r, e = a("spin"), S = A(null);
42
42
  D(m, () => ({
43
43
  // 潘启宝添加于 2023年10月23日 星期一 10时52分55秒 CST
44
44
  dom: S.current,
45
45
  loading: N,
46
46
  setLoading: y,
47
47
  debouncedSetLoading: d
48
- })), F(() => (a && d(r), () => {
48
+ })), F(() => (l && d(r), () => {
49
49
  d && d.cancel();
50
50
  }), [r]);
51
- const z = /* @__PURE__ */ i("span", { className: `${e}-icon`, children: h ? C.cloneElement(h, {
52
- className: v(`${e.replace("-spin", "-icon")}-loading`),
51
+ const z = /* @__PURE__ */ i("span", { className: `${e}-icon`, children: h ? v.cloneElement(h, {
52
+ className: b(`${e.replace("-spin", "-icon")}-loading`),
53
53
  style: {
54
54
  fontSize: c
55
55
  }
@@ -58,7 +58,7 @@ function B(n, m) {
58
58
  "div",
59
59
  {
60
60
  ref: S,
61
- className: v(
61
+ className: b(
62
62
  e,
63
63
  {
64
64
  [`${e}-block`]: I,
@@ -89,7 +89,7 @@ function B(n, m) {
89
89
  }
90
90
  );
91
91
  }
92
- const G = C.forwardRef(B);
92
+ const G = v.forwardRef(B);
93
93
  G.displayName = "Spin";
94
94
  export {
95
95
  G as default
package/Statistic.js CHANGED
@@ -1,16 +1,16 @@
1
- import { jsxs as w, jsx as i, Fragment as Z } from "react/jsx-runtime";
2
- import { Tween as ee, quartOut as te } from "@unicom-cloud/utils/tween";
1
+ import { jsxs as g, jsx as s, Fragment as Z } from "react/jsx-runtime";
2
+ import { I as ee, q as te } from "./chunk/CkAOsst1.js";
3
3
  import q from "dayjs";
4
4
  import L from "lodash/isFunction";
5
5
  import M from "lodash/isNumber";
6
- import { forwardRef as W, useContext as Y, useState as H, useRef as O, useEffect as z, useImperativeHandle as ne, useMemo as re } from "react";
7
- import { a as A } from "./chunk/xPzFRQJn.js";
6
+ import { forwardRef as W, useContext as Y, useState as H, useRef as I, useEffect as z, useImperativeHandle as ne, useMemo as re } from "react";
7
+ import { b as A } from "./chunk/DUxWiN2U.js";
8
8
  import oe from "./hooks/useMergeProps.js";
9
- import ae from "./Skeleton.js";
10
- import B from "@unicom-cloud/utils/class-name";
11
- import se from "./utils/omit.js";
12
- import { getDayjsValue as T, getNow as E } from "./utils/dayjs.js";
13
- import { padStart as ie } from "./utils/pad.js";
9
+ import ie from "./Skeleton.js";
10
+ import { y as B } from "./chunk/Do1aMgY3.js";
11
+ import ae from "./utils/omit.js";
12
+ import { getDayjsValue as E, getNow as T } from "./utils/dayjs.js";
13
+ import { padStart as se } from "./utils/pad.js";
14
14
  const le = [
15
15
  ["Y", 1e3 * 60 * 60 * 24 * 365],
16
16
  // years
@@ -27,20 +27,20 @@ const le = [
27
27
  ["S", 1]
28
28
  // million seconds
29
29
  ];
30
- function k(u, g) {
30
+ function k(u, w) {
31
31
  let p = u;
32
32
  return le.reduce((m, [l, f]) => {
33
33
  if (m.indexOf(l) !== -1) {
34
34
  const e = Math.floor(p / f);
35
35
  return p -= e * f, m.replace(new RegExp(`${l}+`, "g"), (S) => {
36
36
  const d = S.length;
37
- return ie(e.toString(), d, "0");
37
+ return se(e.toString(), d, "0");
38
38
  });
39
39
  }
40
40
  return m;
41
- }, g);
41
+ }, w);
42
42
  }
43
- function ce(u, g) {
43
+ function ce(u, w) {
44
44
  const { getPrefixCls: p } = Y(A), {
45
45
  className: m,
46
46
  style: l,
@@ -51,40 +51,40 @@ function ce(u, g) {
51
51
  renderFormat: $,
52
52
  format: v = "HH:mm:ss",
53
53
  start: C = !0
54
- } = u, r = T(S, v) || q(), y = T(u.now, v), o = p("statistic"), [N, D] = H(
54
+ } = u, r = E(S, v) || q(), y = E(u.now, v), o = p("statistic"), [N, D] = H(
55
55
  r.diff(y, "millisecond")
56
56
  ), [F, R] = H(
57
57
  k(Math.max(N, 0), v)
58
- ), h = O(null), V = () => {
58
+ ), h = I(null), b = () => {
59
59
  clearInterval(h.current), h.current = null;
60
- }, a = () => {
60
+ }, i = () => {
61
61
  h.current = setInterval(() => {
62
- const t = r.diff(E()), x = r.diff(E(), "millisecond");
63
- x <= 0 && (V(), d == null || d());
62
+ const t = r.diff(T()), x = r.diff(T(), "millisecond");
63
+ x <= 0 && (b(), d == null || d());
64
64
  const n = k(Math.max(x, 0), v);
65
65
  R(n), D(t);
66
66
  }, 1e3 / 30);
67
67
  };
68
- z(() => (!h.current && C && r.valueOf() >= Date.now() && a(), () => {
69
- V();
68
+ z(() => (!h.current && C && r.valueOf() >= Date.now() && i(), () => {
69
+ b();
70
70
  }), [u.start]);
71
- const b = L($) ? $(N, F) : F;
72
- return /* @__PURE__ */ w(
71
+ const V = L($) ? $(N, F) : F;
72
+ return /* @__PURE__ */ g(
73
73
  "div",
74
74
  {
75
- ref: g,
75
+ ref: w,
76
76
  className: B(`${o}`, `${o}-countdown`, m),
77
77
  style: l,
78
78
  children: [
79
- f && /* @__PURE__ */ i("div", { className: `${o}-title`, children: f }),
80
- /* @__PURE__ */ i("div", { className: `${o}-content`, children: /* @__PURE__ */ i("div", { className: `${o}-value`, style: e, children: b }) })
79
+ f && /* @__PURE__ */ s("div", { className: `${o}-title`, children: f }),
80
+ /* @__PURE__ */ s("div", { className: `${o}-content`, children: /* @__PURE__ */ s("div", { className: `${o}-value`, style: e, children: V }) })
81
81
  ]
82
82
  }
83
83
  );
84
84
  }
85
85
  const G = W(ce);
86
86
  G.displayName = "StatisticCountdown";
87
- function ue(u, g) {
87
+ function ue(u, w) {
88
88
  const p = {
89
89
  countFrom: 0,
90
90
  countDuration: 2e3
@@ -106,17 +106,17 @@ function ue(u, g) {
106
106
  styleValue: F,
107
107
  styleDecimal: R,
108
108
  loading: h,
109
- ...V
110
- } = e, a = O(), b = O(), [t, x] = H(
109
+ ...b
110
+ } = e, i = I(), V = I(), [t, x] = H(
111
111
  "value" in e ? e.value : void 0
112
- ), n = m("statistic"), j = (c = e.countFrom, s = e.value) => {
112
+ ), n = m("statistic"), j = (c = e.countFrom, a = e.value) => {
113
113
  const { countDuration: U } = e;
114
- c !== s && (a.current = new ee({
114
+ c !== a && (i.current = new ee({
115
115
  from: {
116
116
  value: c
117
117
  },
118
118
  to: {
119
- value: s
119
+ value: a
120
120
  },
121
121
  duration: U,
122
122
  easing: te,
@@ -124,62 +124,62 @@ function ue(u, g) {
124
124
  x(X.value.toFixed(r));
125
125
  },
126
126
  onFinish: () => {
127
- x(s);
127
+ x(a);
128
128
  }
129
- }), a.current.start());
129
+ }), i.current.start());
130
130
  };
131
- z(() => (e.countUp ? (a.current && a.current.stop(), t !== e.value ? j(Number(t), e.value) : j()) : x(e.value), () => {
132
- a.current && a.current.stop(), a.current = null;
133
- }), [e.value]), ne(g, () => ({
131
+ z(() => (e.countUp ? (i.current && i.current.stop(), t !== e.value ? j(Number(t), e.value) : j()) : x(e.value), () => {
132
+ i.current && i.current.stop(), i.current = null;
133
+ }), [e.value]), ne(w, () => ({
134
134
  countUp: j,
135
- getRootDOMNode: () => b.current
135
+ getRootDOMNode: () => V.current
136
136
  }));
137
137
  const { int: K, decimal: P } = re(() => {
138
138
  let c = t;
139
139
  N && (c = q(t).format(N)), M(r) && r >= 0 && (c = Number(t).toFixed(r));
140
- let s = String(c).split(".")[0];
140
+ let a = String(c).split(".")[0];
141
141
  const U = String(c).split(".")[1];
142
- return C && M(Number(t)) && (s = Number(s).toLocaleString("en-US")), {
143
- int: s,
142
+ return C && M(Number(t)) && (a = Number(a).toLocaleString("en-US")), {
143
+ int: a,
144
144
  decimal: U
145
145
  };
146
- }, [N, C, r, t]), Q = L(D) ? D : (c, s) => s, _ = M(Number(t)), I = /* @__PURE__ */ w(Z, { children: [
147
- y != null ? /* @__PURE__ */ i("span", { className: `${n}-value-prefix`, children: y }) : null,
146
+ }, [N, C, r, t]), Q = L(D) ? D : (c, a) => a, _ = M(Number(t)), O = /* @__PURE__ */ g(Z, { children: [
147
+ y != null ? /* @__PURE__ */ s("span", { className: `${n}-value-prefix`, children: y }) : null,
148
148
  Q(t, _ ? K : t)
149
149
  ] });
150
- return /* @__PURE__ */ w(
150
+ return /* @__PURE__ */ g(
151
151
  "div",
152
152
  {
153
153
  className: B(`${n}`, { [`${n}-rtl`]: f }, S),
154
154
  style: d,
155
- ...se(V, ["value", "countUp", "countFrom", "countDuration"]),
156
- ref: b,
155
+ ...ae(b, ["value", "countUp", "countFrom", "countDuration"]),
156
+ ref: V,
157
157
  children: [
158
- $ && /* @__PURE__ */ i("div", { className: `${n}-title`, children: $ }),
159
- /* @__PURE__ */ w("div", { className: `${n}-content`, children: [
160
- /* @__PURE__ */ i(
161
- ae,
158
+ $ && /* @__PURE__ */ s("div", { className: `${n}-title`, children: $ }),
159
+ /* @__PURE__ */ g("div", { className: `${n}-content`, children: [
160
+ /* @__PURE__ */ s(
161
+ ie,
162
162
  {
163
163
  animation: !0,
164
164
  loading: !!h,
165
165
  text: { rows: 1, width: "100%" },
166
- children: /* @__PURE__ */ w("div", { className: `${n}-value`, style: F, children: [
167
- _ ? /* @__PURE__ */ i("span", { className: `${n}-value-int`, children: I }) : I,
168
- P !== void 0 || o ? /* @__PURE__ */ w(
166
+ children: /* @__PURE__ */ g("div", { className: `${n}-value`, style: F, children: [
167
+ _ ? /* @__PURE__ */ s("span", { className: `${n}-value-int`, children: O }) : O,
168
+ P !== void 0 || o ? /* @__PURE__ */ g(
169
169
  "span",
170
170
  {
171
171
  className: `${n}-value-decimal`,
172
172
  style: R,
173
173
  children: [
174
174
  M(Number(t)) && P !== void 0 && `.${P}`,
175
- o != null ? /* @__PURE__ */ i("span", { className: `${n}-value-suffix`, children: o }) : null
175
+ o != null ? /* @__PURE__ */ s("span", { className: `${n}-value-suffix`, children: o }) : null
176
176
  ]
177
177
  }
178
178
  ) : null
179
179
  ] })
180
180
  }
181
181
  ),
182
- v && /* @__PURE__ */ i("div", { className: `${n}-extra`, children: v })
182
+ v && /* @__PURE__ */ s("div", { className: `${n}-extra`, children: v })
183
183
  ] })
184
184
  ]
185
185
  }
package/Steps.js CHANGED
@@ -1,11 +1,11 @@
1
- import { jsxs as k, jsx as n } from "react/jsx-runtime";
2
- import E, { forwardRef as I, useContext as L } from "react";
3
- import { a as M } from "./chunk/xPzFRQJn.js";
1
+ import { jsxs as I, jsx as n } from "react/jsx-runtime";
2
+ import k, { forwardRef as E, useContext as L } from "react";
3
+ import { b as M } from "./chunk/DUxWiN2U.js";
4
4
  import W from "./hooks/useMergeProps.js";
5
- import R from "@unicom-cloud/utils/class-name";
5
+ import { y as R } from "./chunk/Do1aMgY3.js";
6
6
  import { pickDataAttributes as q } from "./utils/pick.js";
7
- import B from "@unicom-cloud/icons/IconUiCheck";
8
- import G from "@unicom-cloud/icons/IconUiClose";
7
+ import { I as B } from "./chunk/CXNW5Y2a.js";
8
+ import { I as G } from "./chunk/B45v5S9k.js";
9
9
  function H(P, z) {
10
10
  const {
11
11
  style: g,
@@ -18,24 +18,24 @@ function H(P, z) {
18
18
  description: a,
19
19
  icon: m,
20
20
  nextStepError: v,
21
- type: o,
21
+ type: r,
22
22
  customDot: h,
23
- labelPlacement: S,
24
- disabled: y,
23
+ labelPlacement: y,
24
+ disabled: S,
25
25
  onClick: f,
26
26
  onChange: p,
27
- direction: s,
27
+ direction: o,
28
28
  id: c,
29
29
  lineless: u
30
30
  } = P;
31
31
  function w(b) {
32
- if (o === "dot")
32
+ if (r === "dot")
33
33
  return null;
34
34
  let x = t;
35
35
  return m ? x = m : b === "finish" ? x = /* @__PURE__ */ n(B, {}) : b === "error" && (x = /* @__PURE__ */ n(G, {})), /* @__PURE__ */ n("div", { className: `${e}-icon`, children: x });
36
36
  }
37
- function r(b) {
38
- y || (l !== t && (p == null || p(t, c)), f == null || f(t, c, b));
37
+ function s(b) {
38
+ S || (l !== t && (p == null || p(t, c)), f == null || f(t, c, b));
39
39
  }
40
40
  let i;
41
41
  $ ? i = $ : (l < t && (i = "wait"), l === t && (i = "process"), l > t && (i = "finish"));
@@ -45,7 +45,7 @@ function H(P, z) {
45
45
  {
46
46
  [`${e}-item-custom`]: !!m,
47
47
  [`${e}-item-next-error`]: v,
48
- [`${e}-item-disabled`]: y,
48
+ [`${e}-item-disabled`]: S,
49
49
  [`${e}-item-active`]: t === l
50
50
  },
51
51
  d
@@ -55,16 +55,16 @@ function H(P, z) {
55
55
  title: N,
56
56
  description: a
57
57
  }) : D;
58
- return /* @__PURE__ */ k("div", { ref: z, className: C, style: g, onClick: r, children: [
59
- !u && (S === "vertical" || s === "vertical") && /* @__PURE__ */ n("div", { className: `${e}-item-tail` }),
60
- o !== "arrow" && F,
61
- /* @__PURE__ */ k("div", { className: `${e}-item-content`, children: [
58
+ return /* @__PURE__ */ I("div", { ref: z, className: C, style: g, onClick: s, children: [
59
+ !u && (y === "vertical" || o === "vertical") && /* @__PURE__ */ n("div", { className: `${e}-item-tail` }),
60
+ r !== "arrow" && F,
61
+ /* @__PURE__ */ I("div", { className: `${e}-item-content`, children: [
62
62
  /* @__PURE__ */ n("div", { className: `${e}-item-title`, children: N }),
63
63
  a && /* @__PURE__ */ n("div", { className: `${e}-item-description`, children: a })
64
64
  ] })
65
65
  ] });
66
66
  }
67
- const j = I(H);
67
+ const j = E(H);
68
68
  j.displayName = "Step";
69
69
  const J = {
70
70
  current: 1,
@@ -85,27 +85,27 @@ function K(P, z) {
85
85
  current: a = 1,
86
86
  status: m,
87
87
  onChange: v,
88
- type: o,
88
+ type: r,
89
89
  size: h,
90
- direction: S,
91
- labelPlacement: y,
90
+ direction: y,
91
+ labelPlacement: S,
92
92
  customDot: f,
93
93
  lineless: p
94
- } = t, s = g("steps");
95
- let c = y;
96
- o === "dot" && (c = S === "vertical" ? "horizontal" : "vertical"), o === "navigation" && (c = "horizontal");
97
- let u = S;
98
- (o === "navigation" || o === "arrow") && (u = "horizontal");
94
+ } = t, o = g("steps");
95
+ let c = S;
96
+ r === "dot" && (c = y === "vertical" ? "horizontal" : "vertical"), r === "navigation" && (c = "horizontal");
97
+ let u = y;
98
+ (r === "navigation" || r === "arrow") && (u = "horizontal");
99
99
  const w = R(
100
- s,
101
- `${s}-${u}`,
102
- `${s}-label-${c}`,
103
- `${s}-size-${h}`,
100
+ o,
101
+ `${o}-${u}`,
102
+ `${o}-label-${c}`,
103
+ `${o}-size-${h}`,
104
104
  {
105
- [`${s}-change-onclick`]: typeof v == "function",
106
- [`${s}-mode-${o}`]: o !== "default",
107
- [`${s}-lineless`]: p,
108
- [`${s}-rtl`]: e
105
+ [`${o}-change-onclick`]: typeof v == "function",
106
+ [`${o}-mode-${r}`]: r !== "default",
107
+ [`${o}-lineless`]: p,
108
+ [`${o}-rtl`]: e
109
109
  },
110
110
  l
111
111
  );
@@ -116,13 +116,13 @@ function K(P, z) {
116
116
  style: $,
117
117
  className: w,
118
118
  ...q(t),
119
- children: E.Children.toArray(N).filter(
120
- (r) => r && r.type && r.type.displayName === "Step"
121
- ).map((r, i) => {
122
- if (i += 1, r) {
119
+ children: k.Children.toArray(N).filter(
120
+ (s) => s && s.type && s.type.displayName === "Step"
121
+ ).map((s, i) => {
122
+ if (i += 1, s) {
123
123
  const C = {
124
- prefixCls: s,
125
- type: o,
124
+ prefixCls: o,
125
+ type: r,
126
126
  index: i,
127
127
  current: a,
128
128
  status: a === i ? m : void 0,
@@ -131,16 +131,16 @@ function K(P, z) {
131
131
  direction: u,
132
132
  onChange: v,
133
133
  lineless: p,
134
- ...r.props
134
+ ...s.props
135
135
  };
136
- return m === "error" && a === i + 1 && (C.nextStepError = !0), E.cloneElement(r, C);
136
+ return m === "error" && a === i + 1 && (C.nextStepError = !0), k.cloneElement(s, C);
137
137
  }
138
138
  return null;
139
139
  })
140
140
  }
141
141
  );
142
142
  }
143
- const O = I(K), A = O;
143
+ const O = E(K), A = O;
144
144
  A.displayName = "Steps";
145
145
  A.Step = j;
146
146
  export {
package/Switch.js CHANGED
@@ -1,95 +1,96 @@
1
- import { jsxs as d, jsx as r, Fragment as R } from "react/jsx-runtime";
2
- import q from "@unicom-cloud/icons/IconUiLoading";
3
- import { h as A, P as x } from "./chunk/DQ3uFRJD.js";
1
+ import { jsxs as l, jsx as r, Fragment as R } from "react/jsx-runtime";
2
+ import { e as q } from "./chunk/B45v5S9k.js";
3
+ import { h as A, P as x } from "./chunk/BP7xX86Q.js";
4
4
  import B from "lodash/isArray";
5
5
  import { forwardRef as L, useContext as M, useState as O } from "react";
6
- import { a as Q } from "./chunk/xPzFRQJn.js";
6
+ import { b as Q } from "./chunk/DUxWiN2U.js";
7
7
  import U from "./hooks/useMergeProps.js";
8
- import W from "@unicom-cloud/utils/class-name";
8
+ import { y as W } from "./chunk/Do1aMgY3.js";
9
9
  import "./utils/is.js";
10
10
  import D from "./utils/omit.js";
11
- import { isPlainObject as G } from "@unicom-cloud/utils/is";
11
+ import "./chunk/BeM2hfks.js";
12
+ import G from "lodash/isPlainObject";
12
13
  const J = {
13
14
  type: "circle"
14
15
  };
15
- function K(N, $) {
16
+ function K(y, S) {
16
17
  const {
17
- getPrefixCls: S,
18
- size: y,
18
+ getPrefixCls: $,
19
+ size: N,
19
20
  componentConfig: a,
20
21
  rtl: w
21
22
  } = M(Q), i = U(
22
- N,
23
+ y,
23
24
  J,
24
25
  a == null ? void 0 : a.Switch
25
26
  ), {
26
27
  className: P,
27
28
  children: t,
28
- style: g = {},
29
- disabled: b,
29
+ style: b = {},
30
+ disabled: g,
30
31
  size: I,
31
- loading: l,
32
+ loading: d,
32
33
  onChange: m,
33
34
  type: h,
34
35
  checkedText: v,
35
36
  uncheckedText: z,
36
- checkedIcon: k,
37
- uncheckedIcon: p,
37
+ checkedIcon: p,
38
+ uncheckedIcon: k,
38
39
  ...T
39
- } = i, e = S("switch"), f = I || y, [j, _] = O(
40
+ } = i, e = $("switch"), f = I || N, [j, _] = O(
40
41
  i.value ?? // 潘启宝添加,接收 FormItem 里传来的数据
41
42
  i.defaultChecked
42
43
  ), c = "checked" in i ? i.checked : j, E = (n) => {
43
44
  var u;
44
- l || ((u = i.onClick) == null || u.call(i, n), "checked" in i || _(!c), m == null || m(!c, n));
45
+ d || ((u = i.onClick) == null || u.call(i, n), "checked" in i || _(!c), m == null || m(!c, n));
45
46
  }, F = W(
46
47
  e,
47
48
  f === "small" ? `${e}-${f}` : void 0,
48
49
  {
49
50
  [`${e}-type-${h}`]: h,
50
51
  [`${e}-checked`]: c,
51
- [`${e}-loading`]: l,
52
+ [`${e}-loading`]: d,
52
53
  [`${e}-rtl`]: w
53
54
  },
54
55
  P
55
56
  );
56
- let s = v, o = z;
57
- t && B(t) ? (s = t.find(
57
+ let o = v, s = z;
58
+ t && B(t) ? (o = t.find(
58
59
  (n) => n.key === "open"
59
- ), o = t.find(
60
+ ), s = t.find(
60
61
  (n) => n.key === "close"
61
- )) : t && G(t) && (t.key === "open" ? s = t : t.key === "close" && (o = t));
62
+ )) : t && G(t) && (t.key === "open" ? o = t : t.key === "close" && (s = t));
62
63
  const H = D(T, ["onChange", "checked", "error"]);
63
- return /* @__PURE__ */ d(
64
+ return /* @__PURE__ */ l(
64
65
  "button",
65
66
  {
66
- ref: $,
67
+ ref: S,
67
68
  role: "switch",
68
69
  "aria-checked": !!c,
69
- tabIndex: l ? -1 : void 0,
70
+ tabIndex: d ? -1 : void 0,
70
71
  ...H,
71
- style: g,
72
+ style: b,
72
73
  className: F,
73
- disabled: b,
74
+ disabled: g,
74
75
  onClick: E,
75
76
  type: "button",
76
77
  children: [
77
- /* @__PURE__ */ d("div", { className: `${e}-dot`, children: [
78
- !l && (k || p) && /* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(
78
+ /* @__PURE__ */ l("div", { className: `${e}-dot`, children: [
79
+ !d && (p || k) && /* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(
79
80
  x,
80
81
  {
81
82
  classNames: "fadeIn",
82
83
  timeout: 200,
83
- children: /* @__PURE__ */ r("span", { className: `${e}-dot-icon`, children: c ? k : p })
84
+ children: /* @__PURE__ */ r("span", { className: `${e}-dot-icon`, children: c ? p : k })
84
85
  },
85
86
  c ? "checked" : "unchecked"
86
87
  ) }),
87
- l && /* @__PURE__ */ r("span", { className: `${e}-dot-icon`, children: /* @__PURE__ */ r(q, {}) })
88
+ d && /* @__PURE__ */ r("span", { className: `${e}-dot-icon`, children: /* @__PURE__ */ r(q, {}) })
88
89
  ] }),
89
- f !== "small" && h !== "line" && (s || o) && /* @__PURE__ */ d(R, { children: [
90
- /* @__PURE__ */ d("div", { className: `${e}-text-holder`, children: [
91
- s && c && s,
92
- o && !c && o
90
+ f !== "small" && h !== "line" && (o || s) && /* @__PURE__ */ l(R, { children: [
91
+ /* @__PURE__ */ l("div", { className: `${e}-text-holder`, children: [
92
+ o && c && o,
93
+ s && !c && s
93
94
  ] }),
94
95
  /* @__PURE__ */ r(
95
96
  x,
@@ -97,9 +98,9 @@ function K(N, $) {
97
98
  in: c,
98
99
  classNames: "switchSlideText",
99
100
  timeout: 200,
100
- children: /* @__PURE__ */ d("div", { className: `${e}-text`, children: [
101
- s && c && s,
102
- o && !c && o
101
+ children: /* @__PURE__ */ l("div", { className: `${e}-text`, children: [
102
+ o && c && o,
103
+ s && !c && s
103
104
  ] })
104
105
  }
105
106
  )