@unicom-cloud/ui-common 0.1.58 → 0.1.59

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 (435) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/animation/Animation.js +41 -42
  3. package/animation/constants.d.ts +2 -0
  4. package/animation/constants.js +4 -4
  5. package/animation/context.d.ts +0 -1
  6. package/animation/context.js +3 -3
  7. package/animation/index.d.ts +0 -6
  8. package/animation/index.js +6 -10
  9. package/animation/interface.d.ts +1 -1
  10. package/animation/style/index.js +1 -1
  11. package/animation/utils.js +1 -1
  12. package/base/Base.js +1 -1
  13. package/base/constants.d.ts +2 -0
  14. package/base/constants.js +4 -1
  15. package/base/context.d.ts +0 -1
  16. package/base/context.js +3 -3
  17. package/base/index.js +1 -1
  18. package/base/style/index.js +1 -1
  19. package/base/utils.js +1 -1
  20. package/border-beam/BorderBeam.js +14 -14
  21. package/border-beam/Effect.d.ts +1 -6
  22. package/border-beam/Effect.js +3 -3
  23. package/border-beam/constants.d.ts +2 -1
  24. package/border-beam/constants.js +8 -3
  25. package/border-beam/context.d.ts +0 -1
  26. package/border-beam/context.js +4 -10
  27. package/border-beam/hooks/useBorderSize.d.ts +1 -5
  28. package/border-beam/hooks/useBorderSize.js +1 -1
  29. package/border-beam/hooks/useChildDom.d.ts +1 -1
  30. package/border-beam/hooks/useChildDom.js +1 -1
  31. package/border-beam/index.d.ts +0 -6
  32. package/border-beam/index.js +5 -9
  33. package/border-beam/interface.d.ts +27 -4
  34. package/border-beam/style/index.js +1 -1
  35. package/border-beam/utils.d.ts +1 -9
  36. package/border-beam/utils.js +9 -9
  37. package/development/Development.js +6 -5
  38. package/development/constants.d.ts +2 -0
  39. package/development/constants.js +4 -1
  40. package/development/context.d.ts +0 -1
  41. package/development/context.js +3 -3
  42. package/development/index.d.ts +0 -6
  43. package/development/index.js +5 -9
  44. package/development/style/index.js +1 -1
  45. package/development/utils.js +1 -1
  46. package/empty/Empty.d.ts +1 -1
  47. package/empty/Empty.js +28 -27
  48. package/empty/constants.d.ts +2 -0
  49. package/empty/constants.js +4 -1
  50. package/empty/context.d.ts +0 -1
  51. package/empty/context.js +3 -3
  52. package/empty/index.d.ts +1 -7
  53. package/empty/index.js +5 -9
  54. package/empty/style/index.js +1 -1
  55. package/empty/utils.js +1 -1
  56. package/flex/Flex.js +5 -4
  57. package/flex/FlexVertical.js +1 -1
  58. package/flex/constants.d.ts +2 -0
  59. package/flex/constants.js +7 -1
  60. package/flex/context.d.ts +0 -1
  61. package/flex/context.js +3 -6
  62. package/flex/index.d.ts +1 -7
  63. package/flex/index.js +9 -11
  64. package/flex/interface.d.ts +1 -1
  65. package/flex/style/index.js +1 -1
  66. package/flex/utils.d.ts +1 -1
  67. package/flex/utils.js +10 -12
  68. package/grid/Grid.js +16 -15
  69. package/grid/Item.js +10 -9
  70. package/grid/constants.d.ts +3 -0
  71. package/grid/constants.js +8 -1
  72. package/grid/context.d.ts +0 -2
  73. package/grid/context.js +4 -8
  74. package/grid/index.d.ts +0 -6
  75. package/grid/index.js +9 -11
  76. package/grid/style/index.js +1 -1
  77. package/grid/utils.js +1 -1
  78. package/higher-order/with-speech-synthesis/constants.d.ts +2 -0
  79. package/higher-order/with-speech-synthesis/constants.js +7 -0
  80. package/higher-order/with-speech-synthesis/context.d.ts +0 -1
  81. package/higher-order/with-speech-synthesis/context.js +3 -3
  82. package/higher-order/with-speech-synthesis/index.d.ts +0 -6
  83. package/higher-order/with-speech-synthesis/index.js +5 -9
  84. package/higher-order/with-speech-synthesis/style/index.js +1 -1
  85. package/higher-order/with-speech-synthesis/withSpeechSynthesis.d.ts +8 -1
  86. package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +28 -27
  87. package/hoc/withContext.js +1 -1
  88. package/hooks/create-deep-compare-effect/index.js +1 -1
  89. package/hooks/create-update-effect/index.js +1 -1
  90. package/hooks/create-use-storage-state/index.js +9 -9
  91. package/hooks/index.d.ts +1 -0
  92. package/hooks/index.js +93 -92
  93. package/hooks/use-async-effect/index.js +1 -1
  94. package/hooks/use-boolean/index.js +1 -1
  95. package/hooks/use-click-away/index.d.ts +7 -1
  96. package/hooks/use-click-away/index.js +20 -12
  97. package/hooks/use-computed-state/index.js +1 -1
  98. package/hooks/use-controllable-value/index.js +1 -1
  99. package/hooks/use-cookie-state/index.js +2 -2
  100. package/hooks/use-count-down/index.js +1 -1
  101. package/hooks/use-counter/index.js +1 -1
  102. package/hooks/use-create/index.js +6 -5
  103. package/hooks/use-creation/index.js +7 -6
  104. package/hooks/use-debounce/debounceOptions.d.ts +1 -6
  105. package/hooks/use-debounce/index.js +1 -1
  106. package/hooks/use-debounce/interface.d.ts +14 -0
  107. package/hooks/use-debounce-effect/index.js +1 -1
  108. package/hooks/use-debounce-fn/index.js +5 -5
  109. package/hooks/use-deep-compare-effect/index.js +1 -1
  110. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  111. package/hooks/use-document-visibility/index.js +7 -7
  112. package/hooks/use-drag/index.d.ts +1 -1
  113. package/hooks/use-drag/index.js +10 -10
  114. package/hooks/use-drag-move/index.js +1 -1
  115. package/hooks/use-drop/index.d.ts +1 -1
  116. package/hooks/use-drop/index.js +1 -1
  117. package/hooks/use-dynamic-list/index.d.ts +18 -0
  118. package/hooks/use-dynamic-list/index.js +105 -0
  119. package/hooks/use-effect-event/index.js +1 -1
  120. package/hooks/use-event/index.js +1 -1
  121. package/hooks/use-event-emitter/index.d.ts +13 -1
  122. package/hooks/use-event-emitter/index.js +15 -12
  123. package/hooks/use-event-listener/index.d.ts +2 -7
  124. package/hooks/use-event-listener/index.js +1 -1
  125. package/hooks/use-event-target/index.js +1 -1
  126. package/hooks/use-external/index.js +2 -2
  127. package/hooks/use-favicon/index.js +2 -2
  128. package/hooks/use-focus-within/index.d.ts +1 -5
  129. package/hooks/use-focus-within/index.js +1 -1
  130. package/hooks/use-focus-within/interface.d.ts +13 -0
  131. package/hooks/use-force-update/index.js +1 -1
  132. package/hooks/use-fullscreen/index.js +14 -14
  133. package/hooks/use-get-state/index.d.ts +1 -7
  134. package/hooks/use-get-state/index.js +1 -1
  135. package/hooks/use-history-travel/index.d.ts +1 -1
  136. package/hooks/use-history-travel/index.js +32 -26
  137. package/hooks/use-hover/index.js +1 -1
  138. package/hooks/use-id/index.js +1 -1
  139. package/hooks/use-in-viewport/index.js +10 -10
  140. package/hooks/use-infinite-scroll/index.js +33 -31
  141. package/hooks/use-intersection-observer/index.js +3 -3
  142. package/hooks/use-intersection-observers/index.js +10 -10
  143. package/hooks/use-interval/index.js +1 -1
  144. package/hooks/use-is-first-render/index.js +1 -1
  145. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  146. package/hooks/use-key-press/index.js +1 -1
  147. package/hooks/use-keyboard-event/index.d.ts +1 -0
  148. package/hooks/use-keyboard-event/index.js +1 -1
  149. package/hooks/use-latest/index.js +1 -1
  150. package/hooks/use-listen-window-resize/index.js +1 -1
  151. package/hooks/use-local-storage-state/index.js +4 -4
  152. package/hooks/use-lock-fn/index.js +1 -1
  153. package/hooks/use-long-press/index.js +1 -1
  154. package/hooks/use-map/index.js +1 -1
  155. package/hooks/use-media/index.js +1 -1
  156. package/hooks/use-memo/index.js +1 -1
  157. package/hooks/use-memoized-fn/index.js +1 -1
  158. package/hooks/use-merge-component-props/index.d.ts +2 -2
  159. package/hooks/use-merge-component-props/index.js +2 -1
  160. package/hooks/use-merge-value/index.d.ts +1 -1
  161. package/hooks/use-merge-value/index.js +1 -1
  162. package/hooks/use-mobile/index.js +1 -1
  163. package/hooks/use-mount/index.js +1 -1
  164. package/hooks/use-mouse/index.d.ts +1 -1
  165. package/hooks/use-mouse/index.js +9 -9
  166. package/hooks/use-mutation-observer/index.js +2 -2
  167. package/hooks/use-mutation-observers/index.js +10 -10
  168. package/hooks/use-network/index.js +1 -1
  169. package/hooks/use-online-status/index.js +1 -1
  170. package/hooks/use-overflow-hidden/index.js +1 -1
  171. package/hooks/use-override-ref/index.d.ts +3 -5
  172. package/hooks/use-override-ref/index.js +5 -5
  173. package/hooks/use-pagination/index.js +1 -1
  174. package/hooks/use-pagination/types.d.ts +5 -8
  175. package/hooks/use-paste-file/index.js +9 -9
  176. package/hooks/use-paste-image/index.js +1 -1
  177. package/hooks/use-persist-callback/index.js +1 -1
  178. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  179. package/hooks/use-previous/index.js +1 -1
  180. package/hooks/use-raf-interval/index.js +17 -17
  181. package/hooks/use-raf-state/index.d.ts +1 -6
  182. package/hooks/use-raf-state/index.js +1 -1
  183. package/hooks/use-raf-timeout/index.js +17 -17
  184. package/hooks/use-reactive/index.js +5 -5
  185. package/hooks/use-ref-latest/index.js +1 -1
  186. package/hooks/use-ref-map/index.d.ts +2 -1
  187. package/hooks/use-ref-map/index.js +1 -1
  188. package/hooks/use-refs/index.js +1 -1
  189. package/hooks/use-request/index.js +5 -5
  190. package/hooks/use-request/src/Fetch.js +1 -1
  191. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  192. package/hooks/use-request/src/plugins/useCachePlugin.js +5 -5
  193. package/hooks/use-request/src/plugins/useDebouncePlugin.js +2 -2
  194. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +13 -12
  195. package/hooks/use-request/src/plugins/usePollingPlugin.js +3 -3
  196. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  197. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  198. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  199. package/hooks/use-request/src/useRequest.d.ts +11 -4
  200. package/hooks/use-request/src/useRequest.js +1 -1
  201. package/hooks/use-request/src/useRequestImplement.js +18 -18
  202. package/hooks/use-request/src/utils/cache.js +1 -1
  203. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  204. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  205. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  206. package/hooks/use-request/src/utils/isOnline.js +3 -3
  207. package/hooks/use-request/src/utils/limit.js +1 -1
  208. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  209. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  210. package/hooks/use-reset-state/index.js +6 -6
  211. package/hooks/use-resize-observer/index.d.ts +6 -1
  212. package/hooks/use-resize-observer/index.js +30 -4
  213. package/hooks/use-resize-observers/index.d.ts +1 -0
  214. package/hooks/use-resize-observers/index.js +23 -24
  215. package/hooks/use-responsive/index.js +2 -2
  216. package/hooks/use-safe-state/index.js +1 -1
  217. package/hooks/use-scroll/index.js +20 -20
  218. package/hooks/use-selections/index.d.ts +1 -1
  219. package/hooks/use-selections/index.js +45 -39
  220. package/hooks/use-session-storage-state/index.js +4 -4
  221. package/hooks/use-set/index.js +1 -1
  222. package/hooks/use-set-state/index.js +1 -1
  223. package/hooks/use-size/index.d.ts +1 -6
  224. package/hooks/use-size/index.js +4 -33
  225. package/hooks/use-state-callback/index.d.ts +1 -5
  226. package/hooks/use-state-callback/index.js +7 -7
  227. package/hooks/use-state-with-promise/index.d.ts +1 -4
  228. package/hooks/use-state-with-promise/index.js +1 -1
  229. package/hooks/use-sync-state/index.js +5 -5
  230. package/hooks/use-text-selection/index.js +1 -1
  231. package/hooks/use-theme/index.js +14 -14
  232. package/hooks/use-throttle/index.js +1 -1
  233. package/hooks/use-throttle/interface.d.ts +13 -0
  234. package/hooks/use-throttle/throttleOptions.d.ts +1 -5
  235. package/hooks/use-throttle-effect/index.js +5 -5
  236. package/hooks/use-throttle-fn/index.js +5 -5
  237. package/hooks/use-throttle-fn-with-raf/index.js +6 -6
  238. package/hooks/use-timeout/index.js +1 -1
  239. package/hooks/use-title/index.js +5 -5
  240. package/hooks/use-toggle/index.d.ts +6 -3
  241. package/hooks/use-toggle/index.js +1 -1
  242. package/hooks/use-tracked-effect/index.js +1 -1
  243. package/hooks/use-unmount/index.js +1 -1
  244. package/hooks/use-unmounted-ref/index.js +1 -1
  245. package/hooks/use-update/index.js +1 -1
  246. package/hooks/use-update-effect/index.js +1 -1
  247. package/hooks/use-update-layout-effect/index.js +1 -1
  248. package/hooks/use-url-state/index.d.ts +1 -1
  249. package/hooks/use-url-state/index.js +1 -1
  250. package/hooks/use-virtual-list/index.js +13 -13
  251. package/hooks/use-watch/index.js +1 -1
  252. package/hooks/use-web-socket/index.js +7 -7
  253. package/hooks/use-why-did-you-update/index.js +1 -1
  254. package/hooks/use-window-size/index.js +7 -7
  255. package/hooks/utils/createEffectWithTarget.js +7 -7
  256. package/hooks/utils/depsAreSame.js +1 -1
  257. package/hooks/utils/depsEqual.js +1 -1
  258. package/hooks/utils/domTarget.js +1 -1
  259. package/hooks/utils/getDocumentOrShadow.js +1 -1
  260. package/hooks/utils/index.js +1 -1
  261. package/hooks/utils/isAppleDevice.js +1 -1
  262. package/hooks/utils/isBrowser.js +1 -1
  263. package/hooks/utils/isDev.js +1 -1
  264. package/hooks/utils/rect.js +1 -1
  265. package/hooks/utils/useDeepCompareWithTarget.js +4 -4
  266. package/hooks/utils/useEffectWithTarget.js +1 -1
  267. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  268. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  269. package/icons/file/File.js +5 -4
  270. package/icons/file/constants.d.ts +2 -0
  271. package/icons/file/constants.js +7 -0
  272. package/icons/file/context.d.ts +0 -1
  273. package/icons/file/context.js +3 -3
  274. package/icons/file/index.js +2 -2
  275. package/icons/file/style/index.js +1 -1
  276. package/index.d.ts +2 -2
  277. package/index.js +542 -537
  278. package/morphicons/core/interpolate.js +1 -1
  279. package/morphicons/core/normalize.js +57 -57
  280. package/morphicons/core/parse.d.ts +1 -9
  281. package/morphicons/core/resample.js +1 -1
  282. package/morphicons/core/serialize.js +1 -1
  283. package/morphicons/core/spring.js +1 -1
  284. package/morphicons/dom/controller.d.ts +3 -3
  285. package/morphicons/dom/index.js +23 -23
  286. package/morphicons/element/index.d.ts +1 -1
  287. package/morphicons/index.d.ts +1 -1
  288. package/morphicons/index.js +6 -6
  289. package/morphicons/react/index.d.ts +1 -1
  290. package/morphicons/react/index.js +65 -65
  291. package/package.json +1 -1
  292. package/progress/Progress.js +20 -20
  293. package/progress/constants.js +1 -1
  294. package/progress/context.js +1 -1
  295. package/progress/index.js +1 -1
  296. package/progress/style/index.js +1 -1
  297. package/progress/utils.js +1 -1
  298. package/resize-observer/Collection.js +1 -1
  299. package/resize-observer/ResizeObserver.js +13 -12
  300. package/resize-observer/SingleObserver.d.ts +1 -5
  301. package/resize-observer/SingleObserver.js +4 -4
  302. package/resize-observer/constants.d.ts +2 -0
  303. package/resize-observer/constants.js +4 -1
  304. package/resize-observer/context.d.ts +0 -1
  305. package/resize-observer/context.js +3 -3
  306. package/resize-observer/index.d.ts +1 -7
  307. package/resize-observer/index.js +7 -9
  308. package/resize-observer/interface.d.ts +18 -0
  309. package/resize-observer/observerUtil.d.ts +1 -1
  310. package/resize-observer/observerUtil.js +1 -1
  311. package/resize-observer/style/index.js +1 -1
  312. package/resize-observer/utils.js +1 -1
  313. package/space/Space.d.ts +2 -1
  314. package/space/Space.js +12 -11
  315. package/space/SpaceVertical.js +1 -1
  316. package/space/constants.d.ts +2 -0
  317. package/space/constants.js +9 -1
  318. package/space/context.d.ts +0 -1
  319. package/space/context.js +3 -8
  320. package/space/index.d.ts +0 -6
  321. package/space/index.js +8 -10
  322. package/space/interface.d.ts +1 -0
  323. package/space/style/index.js +1 -1
  324. package/space/utils.js +1 -1
  325. package/style/animation.less +2 -8
  326. package/style/normalize.less +0 -13
  327. package/style.css +1 -1
  328. package/suspense-fallback-test/NeverLoadLazy.d.ts +3 -0
  329. package/suspense-fallback-test/NeverLoadLazy.js +8 -0
  330. package/suspense-fallback-test/SuspenseFallbackTest.js +14 -14
  331. package/suspense-fallback-test/constants.d.ts +2 -0
  332. package/suspense-fallback-test/constants.js +4 -1
  333. package/suspense-fallback-test/context.d.ts +0 -2
  334. package/suspense-fallback-test/context.js +3 -3
  335. package/suspense-fallback-test/index.d.ts +0 -6
  336. package/suspense-fallback-test/index.js +5 -9
  337. package/suspense-fallback-test/style/index.js +1 -1
  338. package/suspense-fallback-test/utils.js +1 -1
  339. package/test.js +1 -1
  340. package/timer/Timer.js +6 -5
  341. package/timer/constants.d.ts +2 -0
  342. package/timer/constants.js +4 -1
  343. package/timer/context.d.ts +0 -1
  344. package/timer/context.js +3 -3
  345. package/timer/index.d.ts +0 -6
  346. package/timer/index.js +5 -9
  347. package/timer/style/index.js +1 -1
  348. package/timer/utils.js +1 -1
  349. package/transition/Transition.d.ts +0 -1
  350. package/transition/Transition.js +55 -58
  351. package/transition/TransitionCSS.js +15 -15
  352. package/transition/TransitionGroup.js +13 -13
  353. package/transition/TransitionStyle.js +12 -12
  354. package/transition/constants.d.ts +4 -27
  355. package/transition/constants.js +37 -41
  356. package/transition/context.d.ts +2 -3
  357. package/transition/context.js +4 -5
  358. package/transition/index.d.ts +0 -7
  359. package/transition/index.js +15 -16
  360. package/transition/interface.d.ts +26 -1
  361. package/transition/interface.js +11 -0
  362. package/transition/style/index.js +1 -1
  363. package/transition/utils.d.ts +1 -1
  364. package/transition/utils.js +1 -1
  365. package/utils/callbackOriginRef.js +1 -1
  366. package/utils/confetti.js +1 -1
  367. package/utils/constants.d.ts +3 -2
  368. package/utils/constants.js +6 -5
  369. package/utils/copy.js +1 -1
  370. package/utils/createRoot.d.ts +1 -6
  371. package/utils/createRoot.js +11 -11
  372. package/utils/css.js +1 -1
  373. package/utils/date.d.ts +1 -1
  374. package/utils/date.js +1 -1
  375. package/utils/dayjs.js +1 -1
  376. package/utils/document.js +1 -1
  377. package/utils/dom.d.ts +1 -1
  378. package/utils/dom.js +9 -9
  379. package/utils/file.js +1 -1
  380. package/utils/fillNBSP.js +1 -1
  381. package/utils/getCompatProp.js +1 -1
  382. package/utils/getElement.js +1 -1
  383. package/utils/getHighlightText.js +1 -1
  384. package/utils/getHotkeyHandler.d.ts +1 -12
  385. package/utils/getHotkeyHandler.js +17 -17
  386. package/utils/getPrefixCls.js +1 -1
  387. package/utils/getScrollBarHeight.js +1 -1
  388. package/utils/getScrollBarSize.js +1 -1
  389. package/utils/getScrollBarWidth.js +1 -1
  390. package/utils/getScrollParent.js +1 -1
  391. package/utils/getStringLength.js +1 -1
  392. package/utils/getUrlSearchParam.js +1 -1
  393. package/utils/index.js +274 -273
  394. package/utils/initAllLineClamp.js +1 -1
  395. package/utils/injectLineClamp.js +1 -1
  396. package/utils/interface.d.ts +103 -0
  397. package/utils/interface.js +4 -0
  398. package/utils/intersectionObserver.js +1 -1
  399. package/utils/is.js +1 -1
  400. package/utils/keyboardCode.js +1 -1
  401. package/utils/lodash.d.ts +2 -1
  402. package/utils/lodash.js +19 -18
  403. package/utils/math.d.ts +1 -1
  404. package/utils/mergeProps.d.ts +1 -2
  405. package/utils/mergeProps.js +1 -1
  406. package/utils/mergedToString.js +1 -1
  407. package/utils/migrateLegacyProps.d.ts +1 -8
  408. package/utils/migrateLegacyProps.js +1 -1
  409. package/utils/mutationObserver.js +1 -1
  410. package/utils/names.d.ts +1 -8
  411. package/utils/names.js +1 -1
  412. package/utils/object.js +1 -1
  413. package/utils/omit.js +1 -1
  414. package/utils/pad.js +1 -1
  415. package/utils/pick.js +1 -1
  416. package/utils/react19Adapter.js +1 -1
  417. package/utils/reactNode.js +1 -1
  418. package/utils/ref.d.ts +2 -1
  419. package/utils/ref.js +13 -13
  420. package/utils/resizeObserver.js +1 -1
  421. package/utils/scrollIntoViewIfNeeded.js +1 -1
  422. package/utils/scrollTo.js +1 -1
  423. package/utils/setDarkTheme.js +1 -1
  424. package/utils/setDir.js +1 -1
  425. package/utils/setPrimaryColor.js +1 -1
  426. package/utils/setTheme.js +1 -1
  427. package/utils/string.js +1 -1
  428. package/utils/style.js +1 -1
  429. package/utils/tinycolor.js +1 -1
  430. package/utils/toArray.js +1 -1
  431. package/utils/tunnel.d.ts +2 -12
  432. package/utils/tunnel.js +1 -1
  433. package/utils/warning.js +1 -1
  434. package/version/index.js +8 -8
  435. /package/{suspense-fallback-test → resize-observer}/style/index.css +0 -0
@@ -1,15 +1,15 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
- import e from "../utils/isBrowser.js";
4
- import t from "../use-unmount/index.js";
3
+ import e from "../use-unmount/index.js";
4
+ import t from "../utils/isBrowser.js";
5
5
  import { useEffect as n, useRef as r } from "react";
6
6
  // components/common/hooks/use-title/index.ts
7
7
  var i = { restoreOnUnmount: !1 };
8
8
  function a(a, o = i) {
9
- let s = r(e ? document.title : "");
9
+ let s = r(t ? document.title : "");
10
10
  n(() => {
11
11
  document.title = a;
12
- }, [a]), t(() => {
12
+ }, [a]), e(() => {
13
13
  o.restoreOnUnmount && (document.title = s.current);
14
14
  });
15
15
  }
@@ -4,7 +4,10 @@ export interface Actions<T> {
4
4
  set: (value: T) => void;
5
5
  toggle: () => void;
6
6
  }
7
- declare function useToggle<T = boolean>(): [boolean, Actions<T>];
8
- declare function useToggle<T>(defaultValue: T): [T, Actions<T>];
9
- declare function useToggle<T, U>(defaultValue: T, reverseValue: U): [T | U, Actions<T | U>];
7
+ declare function useToggle<D, R>(defaultValue?: D, reverseValue?: R): (D | R | {
8
+ toggle: () => void;
9
+ set: (value: D | R) => void;
10
+ setLeft: () => void;
11
+ setRight: () => void;
12
+ })[];
10
13
  export default useToggle;
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { useMemo as e, useState as t } from "react";
4
4
  import { isUndefined as n } from "@unicom-cloud/utils/is";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { useEffect as e, useRef as t } from "react";
4
4
  // components/common/hooks/use-tracked-effect/index.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-latest/index.js";
4
4
  import t from "../utils/isDev.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { useEffect as e, useRef as t } from "react";
4
4
  // components/common/hooks/use-unmounted-ref/index.tsx
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-memoized-fn/index.js";
4
4
  import t from "../use-state-callback/index.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../create-update-effect/index.js";
4
4
  import { useEffect as t } from "react";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../create-update-effect/index.js";
4
4
  import { useLayoutEffect as t } from "react";
@@ -1,5 +1,5 @@
1
1
  import type { ParseOptions, StringifyOptions } from '@unicom-cloud/utils/query-string';
2
- import React from 'react';
2
+ import type React from 'react';
3
3
  export interface Options {
4
4
  navigateMode?: 'push' | 'replace';
5
5
  parseOptions?: ParseOptions;
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-memoized-fn/index.js";
4
4
  import t from "../use-update/index.js";
@@ -1,17 +1,17 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
- import e from "../use-latest/index.js";
4
- import t from "../utils/domTarget.js";
3
+ import e from "../use-event-listener/index.js";
4
+ import t from "../use-latest/index.js";
5
5
  import n from "../use-memoized-fn/index.js";
6
- import r from "../use-update-effect/index.js";
7
- import i from "../use-event-listener/index.js";
8
- import a from "../use-size/index.js";
6
+ import r from "../use-size/index.js";
7
+ import i from "../use-update-effect/index.js";
8
+ import a from "../utils/domTarget.js";
9
9
  import { useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
10
10
  import { isNumber as u } from "@unicom-cloud/utils/is";
11
11
  import { cssUnit as d } from "@unicom-cloud/utils/css";
12
12
  // components/common/hooks/use-virtual-list/index.ts
13
13
  var f = (f, p) => {
14
- let { containerTarget: m, wrapperTarget: h, itemHeight: g, overscan: _ = 5 } = p, v = e(g), y = a(m), b = c(!1), [x, S] = l([]), [C, w] = l({}), T = (e, t) => {
14
+ let { containerTarget: m, wrapperTarget: h, itemHeight: g, overscan: _ = 5 } = p, v = t(g), y = r(m), b = c(!1), [x, S] = l([]), [C, w] = l({}), T = (e, t) => {
15
15
  if (u(v.current)) return Math.ceil(e / v.current);
16
16
  let n = 0, r = 0;
17
17
  for (let i = t; i < f.length; i++) {
@@ -31,7 +31,7 @@ var f = (f, p) => {
31
31
  }
32
32
  return n + 1;
33
33
  }, D = (e) => u(v.current) ? e * v.current : f.slice(0, e).reduce((e, t, n) => e + v.current(n, f[n]), 0), O = s(() => u(v.current) ? f.length * v.current : f.reduce((e, t, n) => e + v.current(n, f[n]), 0), [f]), k = () => {
34
- let e = t(m);
34
+ let e = a(m);
35
35
  if (e) {
36
36
  let { scrollTop: t, clientHeight: n } = e, r = E(t), i = T(n, r), a = Math.max(0, r - _), o = Math.min(f.length, r + i + _), s = D(a);
37
37
  w({
@@ -43,8 +43,8 @@ var f = (f, p) => {
43
43
  })));
44
44
  }
45
45
  };
46
- return r(() => {
47
- let e = t(h);
46
+ return i(() => {
47
+ let e = a(h);
48
48
  e && Object.keys(C).forEach((t) => e.style[t] = C[t]);
49
49
  }, [C]), o(() => {
50
50
  y?.width && y?.height && k();
@@ -52,11 +52,11 @@ var f = (f, p) => {
52
52
  y?.width,
53
53
  y?.height,
54
54
  f
55
- ]), i("scroll", (e) => {
55
+ ]), e("scroll", (e) => {
56
56
  b.current ? b.current = !1 : (e.preventDefault(), k());
57
57
  }, { target: m }), [x, n((e) => {
58
- let n = t(m);
59
- n && (b.current = !0, n.scrollTop = D(e), k());
58
+ let t = a(m);
59
+ t && (b.current = !0, t.scrollTop = D(e), k());
60
60
  })];
61
61
  };
62
62
  export { f as default };
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-previous/index.js";
4
4
  import { useEffect as t } from "react";
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../use-latest/index.js";
4
- import t from "../use-unmount/index.js";
5
- import n from "../use-memoized-fn/index.js";
4
+ import t from "../use-memoized-fn/index.js";
5
+ import n from "../use-unmount/index.js";
6
6
  import { useEffect as r, useRef as i, useState as a } from "react";
7
7
  // components/common/hooks/use-web-socket/index.ts
8
8
  var o = /* @__PURE__ */ function(e) {
@@ -35,13 +35,13 @@ function s(o, s = {}) {
35
35
  };
36
36
  return r(() => {
37
37
  !u && o && j();
38
- }, [o, u]), t(() => {
38
+ }, [o, u]), n(() => {
39
39
  M();
40
40
  }), {
41
41
  latestMessage: g,
42
- sendMessage: n(A),
43
- connect: n(j),
44
- disconnect: n(M),
42
+ sendMessage: t(A),
43
+ connect: t(j),
44
+ disconnect: t(M),
45
45
  readyState: v,
46
46
  webSocketIns: D.current
47
47
  };
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { useEffect as e, useRef as t } from "react";
4
4
  // components/common/hooks/use-why-did-you-update/index.ts
@@ -1,18 +1,18 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
- import e from "../use-latest/index.js";
4
- import { getDocumentElement as t } from "../../utils/dom.js";
3
+ import { getDocumentElement as e } from "../../utils/dom.js";
4
+ import t from "../use-latest/index.js";
5
5
  import n from "../use-listen-window-resize/index.js";
6
6
  import { useDeferredValue as r, useEffect as i, useMemo as a, useState as o } from "react";
7
7
  import { isFunction as s } from "@unicom-cloud/utils/is";
8
8
  import c from "lodash/debounce";
9
9
  // components/common/hooks/use-window-size/index.ts
10
10
  function l(l) {
11
- let [u, d] = o({ ...m() }), f = e(l), p = r(u);
12
- function m(e) {
11
+ let [u, d] = o({ ...m() }), f = t(l), p = r(u);
12
+ function m(t) {
13
13
  let n = window;
14
- e instanceof Event && (n = e.currentTarget || e.target || n);
15
- let r = t(), { innerWidth: i = r.clientWidth, innerHeight: a = r.clientHeight } = n;
14
+ t instanceof Event && (n = t.currentTarget || t.target || n);
15
+ let r = e(), { innerWidth: i = r.clientWidth, innerHeight: a = r.clientHeight } = n;
16
16
  return {
17
17
  width: i,
18
18
  height: a
@@ -1,17 +1,17 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
- import e from "./domTarget.js";
4
- import t from "../use-unmount/index.js";
5
- import n from "./depsAreSame.js";
3
+ import e from "../use-unmount/index.js";
4
+ import t from "./depsAreSame.js";
5
+ import n from "./domTarget.js";
6
6
  import { useRef as r } from "react";
7
7
  import i from "lodash/castArray";
8
8
  // components/common/hooks/utils/createEffectWithTarget.ts
9
9
  var a = (a) => (o, s, c) => {
10
10
  let l = r(!1), u = r([]), d = r([]), f = r(void 0);
11
11
  a(() => {
12
- let t = i(c).map((t) => e(t));
13
- l.current ? t.length === u.current.length && n(u.current, t) && n(d.current, s) || (f.current?.(), u.current = t, d.current = s, f.current = o()) : (l.current = !0, u.current = t, d.current = s, f.current = o());
14
- }), t(() => {
12
+ let e = i(c).map((e) => n(e));
13
+ l.current ? e.length === u.current.length && t(u.current, e) && t(d.current, s) || (f.current?.(), u.current = e, d.current = s, f.current = o()) : (l.current = !0, u.current = e, d.current = s, f.current = o());
14
+ }), e(() => {
15
15
  f.current?.(), l.current = !1;
16
16
  });
17
17
  };
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  // components/common/hooks/utils/depsAreSame.ts
4
4
  function e(e, t) {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { isEqual as e } from "@unicom-cloud/utils/is";
4
4
  // components/common/hooks/utils/depsEqual.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "./isBrowser.js";
4
4
  import { isFunction as t } from "@unicom-cloud/utils/is";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "./domTarget.js";
4
4
  import t from "lodash/castArray";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  // components/common/hooks/utils/index.ts
4
4
  var e = {};
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { isAppleDevice as e } from "@unicom-cloud/utils/constants/platform";
4
4
  // components/common/hooks/utils/isAppleDevice.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { isBrowser as e } from "@unicom-cloud/utils/constants/platform";
4
4
  // components/common/hooks/utils/isBrowser.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  // components/common/hooks/utils/isDev.ts
4
4
  var e = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { getBody as e, getDocumentElement as t } from "../../utils/dom.js";
4
4
  // components/common/hooks/utils/rect.ts
@@ -1,12 +1,12 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
- import e from "./useEffectWithTarget.js";
4
- import { depsEqual as t } from "./depsEqual.js";
3
+ import { depsEqual as e } from "./depsEqual.js";
4
+ import t from "./useEffectWithTarget.js";
5
5
  import { useRef as n } from "react";
6
6
  // components/common/hooks/utils/useDeepCompareWithTarget.ts
7
7
  var r = (r, i, a) => {
8
8
  let o = n(void 0), s = n(0);
9
- t(i, o.current) || (s.current += 1), o.current = i, e(r, [s.current], a);
9
+ e(i, o.current) || (s.current += 1), o.current = i, t(r, [s.current], a);
10
10
  };
11
11
  export { r as default };
12
12
  /* 欲穷千里目,更上一层楼 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "./createEffectWithTarget.js";
4
4
  import { useEffect as t } from "react";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "./isBrowser.js";
4
4
  import t from "./useEffectWithTarget.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "./createEffectWithTarget.js";
4
4
  import { useLayoutEffect as t } from "react";
@@ -1,19 +1,20 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../../hooks/use-merge-component-props/index.js";
4
4
  import t from "../../utils/className.js";
5
5
  import n from "../../utils/getPrefixCls.js";
6
6
  import { COMPONENT_INFO_ICON_FILE as r } from "../../utils/names.js";
7
- import { PropsContext as i, defaultProps as a } from "./context.js";
7
+ import { defaultProps as i } from "./constants.js";
8
+ import { PropsContext as a } from "./context.js";
8
9
  import { forwardRef as o, useContext as s, useImperativeHandle as c, useRef as l } from "react";
9
10
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
10
11
  // components/common/icons/file/File.tsx
11
12
  function f(r, o) {
12
- let f = s(i), { style: p, className: m, backgroundColor: h, color: g, text: _, ...v } = e({
13
+ let f = s(a), { style: p, className: m, backgroundColor: h, color: g, text: _, ...v } = e({
13
14
  internalProps: r,
14
15
  contextProps: f,
15
16
  globalProps: {},
16
- defaultProps: a
17
+ defaultProps: i
17
18
  }), y = n("icons-file"), b = l(null), x = l(null);
18
19
  return c(o, () => ({
19
20
  getRootElement() {
@@ -0,0 +1,2 @@
1
+ import type { IconFileProps } from './interface';
2
+ export declare const defaultProps: Partial<IconFileProps>;
@@ -0,0 +1,7 @@
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
+ /* 世界因你而美丽 */
3
+ // components/common/icons/file/constants.ts
4
+ var e = {};
5
+ export { e as defaultProps };
6
+ /* 欲穷千里目,更上一层楼 */
7
+ /* 独立思考,明辨是非 */
@@ -1,3 +1,2 @@
1
1
  import type { IconFileProps } from './interface';
2
- export declare const defaultProps: Partial<IconFileProps>;
3
2
  export declare const PropsContext: import("react").Context<Partial<IconFileProps>>;
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { createContext as e } from "react";
4
4
  // components/common/icons/file/context.ts
5
- var t = {}, n = e({});
6
- export { n as PropsContext, t as defaultProps };
5
+ var t = e({});
6
+ export { t as PropsContext };
7
7
  /* 欲穷千里目,更上一层楼 */
8
8
  /* 独立思考,明辨是非 */
@@ -1,7 +1,7 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
- import { COMPONENT_INFO_ICON_FILE as e } from "../../utils/names.js";
4
3
  import "./style/index.js";
4
+ import { COMPONENT_INFO_ICON_FILE as e } from "../../utils/names.js";
5
5
  import { PropsContext as t } from "./context.js";
6
6
  import n from "./File.js";
7
7
  // components/common/icons/file/index.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  /* empty css */
4
4
  /* 欲穷千里目,更上一层楼 */
package/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export { default as Development } from './development';
10
10
  export type { DevelopmentProps } from './development/interface';
11
11
  export { default as Empty } from './empty';
12
12
  export type { EmptyProps } from './empty/interface';
13
- export { default as Flex, FLEX_GAP_SIZE_MAP, flexParseGap, FlexVertical, } from './flex';
13
+ export { default as Flex, FLEX_GAP_SIZE_MAP, flexParseGap, FlexVertical } from './flex';
14
14
  export type { FlexProps, FlexVerticalProps } from './flex/interface';
15
15
  export { default as Grid, GridItem } from './grid';
16
16
  export type { GridProps } from './grid/interface';
@@ -25,4 +25,4 @@ export { default as SuspenseFallbackTest } from './suspense-fallback-test';
25
25
  export type { SuspenseFallbackTestProps } from './suspense-fallback-test/interface';
26
26
  export { default as Timer } from './timer';
27
27
  export type { TimerProps } from './timer/interface';
28
- export { VERSION, VERSION_BUILD_DATE, VERSION_BUILD_INFO, VERSION_BUILD_TIME, } from './version';
28
+ export { VERSION, VERSION_BUILD_DATE, VERSION_BUILD_INFO, VERSION_BUILD_TIME } from './version';