@unicom-cloud/ui-common 0.1.30 → 0.1.32

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 (385) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/animation/Animation.js +32 -32
  3. package/animation/constants.js +1 -1
  4. package/animation/context.d.ts +3 -0
  5. package/animation/context.js +3 -3
  6. package/animation/index.d.ts +2 -0
  7. package/animation/index.js +10 -5
  8. package/animation/style/index.css +1 -0
  9. package/animation/style/index.d.ts +1 -0
  10. package/animation/style/index.js +3 -0
  11. package/border-beam/BorderBeam.js +30 -30
  12. package/border-beam/Effect.js +1 -1
  13. package/border-beam/constants.js +2 -2
  14. package/border-beam/context.d.ts +3 -0
  15. package/border-beam/context.js +8 -0
  16. package/border-beam/hooks/useBorderSize.js +1 -1
  17. package/border-beam/hooks/useChildDom.js +1 -1
  18. package/border-beam/index.d.ts +2 -0
  19. package/border-beam/index.js +9 -4
  20. package/border-beam/style/index.css +1 -0
  21. package/border-beam/style/index.d.ts +1 -0
  22. package/border-beam/style/index.js +3 -0
  23. package/border-beam/utils.js +1 -1
  24. package/development/Development.js +32 -30
  25. package/development/constants.d.ts +0 -0
  26. package/development/constants.js +2 -0
  27. package/development/context.d.ts +3 -0
  28. package/development/context.js +7 -0
  29. package/development/index.d.ts +2 -0
  30. package/development/index.js +9 -4
  31. package/development/style/index.css +1 -0
  32. package/development/style/index.d.ts +1 -0
  33. package/development/style/index.js +3 -0
  34. package/empty/Empty.js +32 -30
  35. package/empty/constants.d.ts +0 -0
  36. package/empty/constants.js +2 -0
  37. package/empty/context.d.ts +3 -0
  38. package/empty/context.js +7 -0
  39. package/empty/index.d.ts +2 -0
  40. package/empty/index.js +9 -4
  41. package/empty/style/index.css +1 -0
  42. package/empty/style/index.d.ts +1 -0
  43. package/empty/style/index.js +3 -0
  44. package/flex/Flex.js +32 -35
  45. package/flex/constants.d.ts +0 -0
  46. package/flex/constants.js +2 -0
  47. package/flex/context.d.ts +3 -0
  48. package/flex/context.js +10 -0
  49. package/flex/index.d.ts +2 -0
  50. package/flex/index.js +9 -6
  51. package/flex/style/index.css +1 -0
  52. package/flex/style/index.d.ts +1 -0
  53. package/flex/style/index.js +3 -0
  54. package/flex/utils.d.ts +1 -1
  55. package/flex/utils.js +1 -1
  56. package/higher-order/index.js +1 -1
  57. package/higher-order/with-speech-synthesis/constants.d.ts +0 -0
  58. package/higher-order/with-speech-synthesis/context.d.ts +3 -0
  59. package/higher-order/with-speech-synthesis/context.js +7 -0
  60. package/higher-order/with-speech-synthesis/index.d.ts +2 -0
  61. package/higher-order/with-speech-synthesis/index.js +9 -4
  62. package/higher-order/with-speech-synthesis/interface.d.ts +2 -1
  63. package/higher-order/with-speech-synthesis/style/index.css +1 -0
  64. package/higher-order/with-speech-synthesis/style/index.d.ts +0 -1
  65. package/higher-order/with-speech-synthesis/style/index.js +3 -0
  66. package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +52 -48
  67. package/hooks/create-deep-compare-effect/index.js +1 -1
  68. package/hooks/create-update-effect/index.js +1 -1
  69. package/hooks/create-use-storage-state/index.js +1 -1
  70. package/hooks/index.d.ts +1 -0
  71. package/hooks/index.js +5 -4
  72. package/hooks/use-async-effect/index.js +1 -1
  73. package/hooks/use-boolean/index.js +1 -1
  74. package/hooks/use-click-away/index.js +1 -1
  75. package/hooks/use-computed-state/index.js +1 -1
  76. package/hooks/use-controllable-value/index.js +1 -1
  77. package/hooks/use-cookie-state/index.js +1 -1
  78. package/hooks/use-count-down/index.js +1 -1
  79. package/hooks/use-counter/index.js +1 -1
  80. package/hooks/use-create/index.js +1 -1
  81. package/hooks/use-creation/index.js +1 -1
  82. package/hooks/use-debounce/index.js +1 -1
  83. package/hooks/use-debounce-effect/index.js +1 -1
  84. package/hooks/use-debounce-fn/index.js +1 -1
  85. package/hooks/use-deep-compare-effect/index.js +1 -1
  86. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  87. package/hooks/use-document-visibility/index.js +1 -1
  88. package/hooks/use-drag/index.js +1 -1
  89. package/hooks/use-drop/index.js +1 -1
  90. package/hooks/use-effect-event/index.js +1 -1
  91. package/hooks/use-event/index.js +1 -1
  92. package/hooks/use-event-emitter/index.js +1 -1
  93. package/hooks/use-event-listener/index.js +1 -1
  94. package/hooks/use-event-target/index.js +1 -1
  95. package/hooks/use-external/index.js +1 -1
  96. package/hooks/use-favicon/index.js +1 -1
  97. package/hooks/use-focus-within/index.js +1 -1
  98. package/hooks/use-force-update/index.js +1 -1
  99. package/hooks/use-fullscreen/index.js +1 -1
  100. package/hooks/use-get-state/index.js +1 -1
  101. package/hooks/use-history-travel/index.js +1 -1
  102. package/hooks/use-hover/index.js +1 -1
  103. package/hooks/use-id/index.js +1 -1
  104. package/hooks/use-in-viewport/index.js +1 -1
  105. package/hooks/use-infinite-scroll/index.js +1 -1
  106. package/hooks/use-intersection-observer/index.js +1 -1
  107. package/hooks/use-intersection-observers/index.js +2 -2
  108. package/hooks/use-interval/index.js +1 -1
  109. package/hooks/use-is-first-render/index.js +1 -1
  110. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  111. package/hooks/use-key-press/index.js +1 -1
  112. package/hooks/use-keyboard-event/index.js +2 -2
  113. package/hooks/use-latest/index.js +1 -1
  114. package/hooks/use-listen-window-resize/index.js +1 -1
  115. package/hooks/use-local-storage-state/index.js +1 -1
  116. package/hooks/use-lock-fn/index.js +1 -1
  117. package/hooks/use-long-press/index.js +1 -1
  118. package/hooks/use-map/index.js +1 -1
  119. package/hooks/use-media/index.js +1 -1
  120. package/hooks/use-memo/index.js +1 -1
  121. package/hooks/use-memoized-fn/index.js +1 -1
  122. package/hooks/use-merge-props/index.d.ts +2 -2
  123. package/hooks/use-merge-props/index.js +4 -4
  124. package/hooks/use-merge-value/index.js +1 -1
  125. package/hooks/use-mobile/index.js +2 -2
  126. package/hooks/use-mount/index.js +1 -1
  127. package/hooks/use-mouse/index.js +1 -1
  128. package/hooks/use-move/index.js +1 -1
  129. package/hooks/use-mutation-observer/index.js +1 -1
  130. package/hooks/use-mutation-observers/index.js +2 -2
  131. package/hooks/use-network/index.js +1 -1
  132. package/hooks/use-online-status/index.js +1 -1
  133. package/hooks/use-overflow-hidden/index.d.ts +1 -1
  134. package/hooks/use-overflow-hidden/index.js +7 -4
  135. package/hooks/use-override-ref/index.js +1 -1
  136. package/hooks/use-pagination/index.js +1 -1
  137. package/hooks/use-paste-image/index.js +1 -1
  138. package/hooks/use-persist-callback/index.js +1 -1
  139. package/hooks/use-prefers-color-scheme-dark/index.js +2 -2
  140. package/hooks/use-previous/index.js +1 -1
  141. package/hooks/use-raf-interval/index.js +1 -1
  142. package/hooks/use-raf-state/index.js +1 -1
  143. package/hooks/use-raf-timeout/index.js +1 -1
  144. package/hooks/use-reactive/index.js +1 -1
  145. package/hooks/use-ref-latest/index.js +1 -1
  146. package/hooks/use-refs/index.js +1 -1
  147. package/hooks/use-request/index.js +1 -1
  148. package/hooks/use-request/src/Fetch.js +1 -1
  149. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  150. package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
  151. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  152. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
  153. package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
  154. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  155. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  156. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  157. package/hooks/use-request/src/useRequest.js +1 -1
  158. package/hooks/use-request/src/useRequestImplement.js +1 -1
  159. package/hooks/use-request/src/utils/cache.js +1 -1
  160. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  161. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  162. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  163. package/hooks/use-request/src/utils/isOnline.js +1 -1
  164. package/hooks/use-request/src/utils/limit.js +1 -1
  165. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  166. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  167. package/hooks/use-reset-state/index.js +1 -1
  168. package/hooks/use-resize-observer/index.js +1 -1
  169. package/hooks/use-resize-observers/index.js +2 -2
  170. package/hooks/use-responsive/index.js +1 -1
  171. package/hooks/use-safe-state/index.js +1 -1
  172. package/hooks/use-scroll/index.js +1 -1
  173. package/hooks/use-selections/index.js +1 -1
  174. package/hooks/use-session-storage-state/index.js +1 -1
  175. package/hooks/use-set/index.js +1 -1
  176. package/hooks/use-set-state/index.js +1 -1
  177. package/hooks/use-size/index.js +1 -1
  178. package/hooks/use-state-callback/index.js +1 -1
  179. package/hooks/use-state-with-promise/index.js +1 -1
  180. package/hooks/use-sync-state/index.js +1 -1
  181. package/hooks/use-text-selection/index.js +1 -1
  182. package/hooks/use-theme/index.js +1 -1
  183. package/hooks/use-throttle/index.js +1 -1
  184. package/hooks/use-throttle-effect/index.js +1 -1
  185. package/hooks/use-throttle-fn/index.js +1 -1
  186. package/hooks/use-throttle-fn-with-raf/index.d.ts +6 -0
  187. package/hooks/use-throttle-fn-with-raf/index.js +25 -0
  188. package/hooks/use-timeout/index.js +1 -1
  189. package/hooks/use-title/index.js +1 -1
  190. package/hooks/use-toggle/index.js +1 -1
  191. package/hooks/use-tracked-effect/index.js +1 -1
  192. package/hooks/use-unmount/index.js +1 -1
  193. package/hooks/use-unmounted-ref/index.js +1 -1
  194. package/hooks/use-update/index.js +1 -1
  195. package/hooks/use-update-effect/index.js +1 -1
  196. package/hooks/use-update-layout-effect/index.js +1 -1
  197. package/hooks/use-url-state/index.js +1 -1
  198. package/hooks/use-virtual-list/index.js +1 -1
  199. package/hooks/use-watch/index.js +1 -1
  200. package/hooks/use-web-socket/index.js +1 -1
  201. package/hooks/use-why-did-you-update/index.js +1 -1
  202. package/hooks/use-window-size/index.js +1 -1
  203. package/hooks/utils/createEffectWithTarget.js +1 -1
  204. package/hooks/utils/depsAreSame.js +1 -1
  205. package/hooks/utils/depsEqual.js +1 -1
  206. package/hooks/utils/domTarget.js +1 -1
  207. package/hooks/utils/getDocumentOrShadow.js +1 -1
  208. package/hooks/utils/index.js +1 -1
  209. package/hooks/utils/isAppleDevice.d.ts +1 -1
  210. package/hooks/utils/isAppleDevice.js +2 -2
  211. package/hooks/utils/isBrowser.d.ts +1 -1
  212. package/hooks/utils/isBrowser.js +2 -2
  213. package/hooks/utils/isDev.js +1 -1
  214. package/hooks/utils/noop.d.ts +1 -1
  215. package/hooks/utils/rect.js +1 -1
  216. package/hooks/utils/useDeepCompareWithTarget.js +1 -1
  217. package/hooks/utils/useEffectWithTarget.js +1 -1
  218. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  219. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  220. package/icons/file/File.js +60 -0
  221. package/icons/file/constants.d.ts +0 -0
  222. package/icons/file/context.d.ts +3 -0
  223. package/icons/file/context.js +7 -0
  224. package/icons/file/index.d.ts +2 -0
  225. package/icons/file/index.js +9 -4
  226. package/icons/file/style/index.css +1 -0
  227. package/icons/file/style/index.d.ts +0 -1
  228. package/icons/file/style/index.js +3 -0
  229. package/index.js +72 -71
  230. package/package.json +1 -1
  231. package/progress/Progress.js +2 -2
  232. package/progress/constants.d.ts +0 -0
  233. package/progress/constants.js +2 -0
  234. package/progress/index.d.ts +1 -28
  235. package/progress/index.js +5 -5
  236. package/progress/style/index.css +1 -0
  237. package/progress/style/index.d.ts +1 -0
  238. package/progress/style/index.js +3 -0
  239. package/resize-observer/Collection.js +1 -1
  240. package/resize-observer/ResizeObserver.js +19 -17
  241. package/resize-observer/SingleObserver.js +1 -1
  242. package/resize-observer/constants.d.ts +0 -0
  243. package/resize-observer/constants.js +2 -0
  244. package/resize-observer/context.d.ts +3 -0
  245. package/resize-observer/context.js +7 -0
  246. package/resize-observer/index.d.ts +2 -0
  247. package/resize-observer/index.js +9 -6
  248. package/resize-observer/observerUtil.js +1 -1
  249. package/resize-observer/style/index.d.ts +1 -0
  250. package/resize-observer/style/index.js +3 -0
  251. package/space/Space.js +44 -47
  252. package/space/constants.d.ts +0 -0
  253. package/space/constants.js +2 -0
  254. package/space/context.d.ts +3 -0
  255. package/space/context.js +10 -0
  256. package/space/index.d.ts +2 -0
  257. package/space/index.js +8 -5
  258. package/space/style/index.css +1 -0
  259. package/space/style/index.d.ts +1 -0
  260. package/space/style/index.js +3 -0
  261. package/style/index.less +5 -1
  262. package/style/variables-css.less +5 -0
  263. package/style/variables.less +0 -4
  264. package/style.css +1 -2
  265. package/suspense-fallback-test/SuspenseFallbackTest.js +13 -10
  266. package/suspense-fallback-test/constants.d.ts +0 -0
  267. package/suspense-fallback-test/constants.js +2 -0
  268. package/suspense-fallback-test/context.d.ts +3 -0
  269. package/suspense-fallback-test/context.js +7 -0
  270. package/suspense-fallback-test/index.d.ts +2 -0
  271. package/suspense-fallback-test/index.js +9 -4
  272. package/suspense-fallback-test/style/index.css +1 -0
  273. package/suspense-fallback-test/style/index.d.ts +1 -0
  274. package/suspense-fallback-test/style/index.js +3 -0
  275. package/test.js +1 -1
  276. package/timer/Timer.js +28 -26
  277. package/timer/constants.d.ts +0 -0
  278. package/timer/constants.js +2 -0
  279. package/timer/context.d.ts +3 -0
  280. package/timer/context.js +7 -0
  281. package/timer/index.d.ts +2 -0
  282. package/timer/index.js +9 -4
  283. package/timer/style/index.css +1 -0
  284. package/timer/style/index.d.ts +1 -0
  285. package/timer/style/index.js +3 -0
  286. package/transition/Transition.d.ts +1 -0
  287. package/transition/Transition.js +46 -43
  288. package/transition/TransitionCSS.js +1 -1
  289. package/transition/TransitionGroup.js +1 -1
  290. package/transition/TransitionStyle.js +1 -1
  291. package/transition/constants.js +1 -1
  292. package/transition/context.d.ts +2 -0
  293. package/transition/context.js +5 -5
  294. package/transition/index.d.ts +3 -1
  295. package/transition/index.js +8 -6
  296. package/transition/style/index.css +1 -0
  297. package/transition/style/index.d.ts +1 -0
  298. package/transition/style/index.js +3 -0
  299. package/transition/utils.js +1 -1
  300. package/typewriter/Typewriter.js +35 -37
  301. package/typewriter/constants.d.ts +0 -0
  302. package/typewriter/constants.js +2 -0
  303. package/typewriter/context.d.ts +3 -0
  304. package/typewriter/context.js +10 -0
  305. package/typewriter/index.d.ts +2 -0
  306. package/typewriter/index.js +9 -4
  307. package/typewriter/style/index.css +1 -0
  308. package/typewriter/style/index.d.ts +1 -0
  309. package/typewriter/style/index.js +3 -0
  310. package/utils/callOrReturn.js +1 -1
  311. package/utils/callbackOriginRef.js +1 -1
  312. package/utils/caseName.js +1 -1
  313. package/utils/className.js +1 -1
  314. package/utils/{constant.d.ts → constants.d.ts} +1 -1
  315. package/utils/{constant.js → constants.js} +3 -3
  316. package/utils/copy.js +1 -1
  317. package/utils/css.js +1 -1
  318. package/utils/date.js +1 -1
  319. package/utils/dayjs.js +1 -1
  320. package/utils/document.d.ts +1 -0
  321. package/utils/document.js +4 -0
  322. package/utils/dom.js +1 -1
  323. package/utils/emitter.js +1 -1
  324. package/utils/file.js +1 -1
  325. package/utils/fileRead.js +1 -1
  326. package/utils/fileToDataURL.js +1 -1
  327. package/utils/fillNBSP.js +1 -1
  328. package/utils/findRootElement.js +1 -1
  329. package/utils/findScrollParent.js +1 -1
  330. package/utils/getHighlightText.js +1 -1
  331. package/utils/getHotkeyHandler.js +1 -1
  332. package/utils/getScrollBarHeight.js +1 -1
  333. package/utils/getScrollBarSize.js +1 -1
  334. package/utils/getScrollBarWidth.js +1 -1
  335. package/utils/getStringLength.js +1 -1
  336. package/utils/include.js +1 -1
  337. package/utils/index.d.ts +2 -2
  338. package/utils/index.js +48 -48
  339. package/utils/intersectionObserver.js +1 -1
  340. package/utils/is.js +2 -2
  341. package/utils/keyboardCode.d.ts +2 -2
  342. package/utils/keyboardCode.js +3 -3
  343. package/utils/lodash.js +1 -1
  344. package/utils/math.js +1 -1
  345. package/utils/mergeProps.d.ts +1 -1
  346. package/utils/mergeProps.js +6 -4
  347. package/utils/mergedToString.js +1 -1
  348. package/utils/mutationObserver.js +1 -1
  349. package/utils/names.d.ts +1 -0
  350. package/utils/names.js +2 -2
  351. package/utils/object.js +1 -1
  352. package/utils/omit.js +1 -1
  353. package/utils/pad.js +1 -1
  354. package/utils/pick.js +1 -1
  355. package/utils/pinyin.js +1 -1
  356. package/utils/react19Adapter.js +1 -1
  357. package/utils/reactNode.js +1 -1
  358. package/utils/ref.js +1 -1
  359. package/utils/resizeObserver.js +2 -2
  360. package/utils/saveAs.js +1 -1
  361. package/utils/screenfull.js +1 -1
  362. package/utils/scrollIntoViewIfNeeded.js +1 -1
  363. package/utils/setCreateRoot.js +1 -1
  364. package/utils/setDarkTheme.js +3 -3
  365. package/utils/setDir.js +3 -3
  366. package/utils/setPrimaryColor.js +3 -3
  367. package/utils/setTheme.js +3 -3
  368. package/utils/string.d.ts +1 -1
  369. package/utils/string.js +2 -2
  370. package/utils/style.js +1 -1
  371. package/utils/tinycolor.js +1 -1
  372. package/utils/toArray.js +1 -1
  373. package/utils/tree.js +1 -1
  374. package/utils/tunnel.js +1 -1
  375. package/utils/tween.js +1 -1
  376. package/utils/uuid.js +1 -1
  377. package/utils/validate.js +1 -1
  378. package/utils/warning.js +2 -2
  379. package/version/index.js +8 -8
  380. package/.vite/license.md +0 -3
  381. package/.vite/manifest.json +0 -2750
  382. package/icons/file/IconFile.js +0 -56
  383. package/utils/throttleByRequestAnimationFrame.d.ts +0 -6
  384. package/utils/throttleByRequestAnimationFrame.js +0 -18
  385. /package/icons/file/{IconFile.d.ts → File.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { useRef as e } from "react";
3
3
  //#region components/common/hooks/use-request/src/plugins/useLoadingDelayPlugin.ts
4
4
  var t = (t, { loadingDelay: n, ready: r }) => {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../../../use-update-effect/index.js";
3
3
  import t from "../utils/isDocumentVisible.js";
4
4
  import n from "../utils/subscribeReVisible.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../../../use-unmount/index.js";
3
3
  import t from "../utils/limit.js";
4
4
  import n from "../utils/subscribeFocus.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { useRef as e } from "react";
3
3
  //#region components/common/hooks/use-request/src/plugins/useRetryPlugin.ts
4
4
  var t = (t, { retryInterval: n, retryCount: r }) => {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isUndefined as e } from "../../../../utils/is.js";
3
3
  import { useEffect as t, useRef as n } from "react";
4
4
  import r from "lodash/throttle";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "./plugins/useAutoRunPlugin.js";
3
3
  import t from "./plugins/useCachePlugin.js";
4
4
  import n from "./plugins/useDebouncePlugin.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isArray as e } from "../../../utils/is.js";
3
3
  import t from "../../use-latest/index.js";
4
4
  import n from "../../utils/isDev.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "lodash/castArray";
3
3
  //#region components/common/hooks/use-request/src/utils/cache.ts
4
4
  var t = /* @__PURE__ */ new Map(), n = (e) => {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  //#region components/common/hooks/use-request/src/utils/cachePromise.ts
3
3
  var e = /* @__PURE__ */ new Map(), t = (t) => e.get(t), n = (t, n) => {
4
4
  e.set(t, n), n.then((n) => (e.delete(t), n)).catch(() => {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  //#region components/common/hooks/use-request/src/utils/cacheSubscribe.ts
3
3
  var e = {}, t = (t, n) => {
4
4
  e[t] && e[t].forEach((e) => e(n));
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../../../utils/isBrowser.js";
3
3
  //#region components/common/hooks/use-request/src/utils/isDocumentVisible.ts
4
4
  function t() {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isUndefined as e } from "../../../../utils/is.js";
3
3
  import t from "../../../utils/isBrowser.js";
4
4
  //#region components/common/hooks/use-request/src/utils/isOnline.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  //#region components/common/hooks/use-request/src/utils/limit.ts
3
3
  function e(e, t) {
4
4
  let n = !1;
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../../../utils/isBrowser.js";
3
3
  import t from "./isDocumentVisible.js";
4
4
  import n from "./isOnline.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../../../utils/isBrowser.js";
3
3
  import t from "./isDocumentVisible.js";
4
4
  //#region components/common/hooks/use-request/src/utils/subscribeReVisible.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isFunction as e } from "../../utils/is.js";
3
3
  import t from "../use-memoized-fn/index.js";
4
4
  import n from "../use-creation/index.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../use-size/index.js";
3
3
  //#region components/common/hooks/use-resize-observer/index.ts
4
4
  var t = e;
@@ -1,7 +1,7 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isElementByInstanceof as e, isFunction as t } from "../../utils/is.js";
3
3
  import n from "../use-latest/index.js";
4
- import { NOOP as r } from "../../utils/constant.js";
4
+ import { NOOP as r } from "../../utils/constants.js";
5
5
  import { uniq as i } from "../../utils/lodash.js";
6
6
  import "../../utils/index.js";
7
7
  import { useDeferredValue as a, useEffect as o, useState as s } from "react";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../utils/isBrowser.js";
3
3
  import { useEffect as t, useState as n } from "react";
4
4
  //#region components/common/hooks/use-responsive/index.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../use-unmounted-ref/index.js";
3
3
  import { useState as t } from "react";
4
4
  //#region components/common/hooks/use-safe-state/index.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../use-latest/index.js";
3
3
  import t from "../utils/domTarget.js";
4
4
  import n from "../utils/useEffectWithTarget.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isArray as e, isFunction as t, isPlainObject as n, isString as r } from "../../utils/is.js";
3
3
  import i from "../use-memoized-fn/index.js";
4
4
  import { useMemo as a, useState as o } from "react";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../utils/isBrowser.js";
3
3
  import t from "../create-use-storage-state/index.js";
4
4
  //#region components/common/hooks/use-session-storage-state/index.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../use-memoized-fn/index.js";
3
3
  import { useState as t } from "react";
4
4
  //#region components/common/hooks/use-set/index.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isFunction as e, isNil as t } from "../../utils/is.js";
3
3
  import n from "../use-memoized-fn/index.js";
4
4
  import r from "../use-state-callback/index.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isFunction as e } from "../../utils/is.js";
3
3
  import t from "../use-latest/index.js";
4
4
  import n from "../utils/domTarget.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isFunction as e } from "../../utils/is.js";
3
3
  import t from "../use-get-state/index.js";
4
4
  import { useCallback as n, useEffect as r, useLayoutEffect as i, useRef as a } from "react";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isFunction as e, isNumber as t, isPlainObject as n } from "../../utils/is.js";
3
3
  import { useEffect as r, useState as i } from "react";
4
4
  //#region components/common/hooks/use-state-with-promise/index.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isFunction as e } from "../../utils/is.js";
3
3
  import t from "../use-event/index.js";
4
4
  import n from "../use-force-update/index.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../utils/domTarget.js";
3
3
  import t from "../utils/useEffectWithTarget.js";
4
4
  import { useRef as n, useState as r } from "react";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../utils/isBrowser.js";
3
3
  import t from "../use-memoized-fn/index.js";
4
4
  import { useEffect as n, useState as r } from "react";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../use-throttle-fn/index.js";
3
3
  import { useEffect as t, useState as n } from "react";
4
4
  //#region components/common/hooks/use-throttle/index.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../use-update-effect/index.js";
3
3
  import t from "../use-throttle-fn/index.js";
4
4
  import { useEffect as n, useState as r } from "react";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isFunction as e } from "../../utils/is.js";
3
3
  import t from "../use-latest/index.js";
4
4
  import n from "../utils/isDev.js";
@@ -0,0 +1,6 @@
1
+ declare function useThrottleFnWithRAF<T>(fn: T): {
2
+ run: (...args: unknown[]) => void;
3
+ cancel: () => void;
4
+ };
5
+ export { useThrottleFnWithRAF };
6
+ export default useThrottleFnWithRAF;
@@ -0,0 +1,25 @@
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
+ import { isFunction as e, isNull as t, isNumber as n } from "../../utils/is.js";
3
+ import r from "../use-latest/index.js";
4
+ import i from "../use-unmount/index.js";
5
+ import a from "../use-memoized-fn/index.js";
6
+ import { useRef as o } from "react";
7
+ //#region components/common/hooks/use-throttle-fn-with-raf/index.ts
8
+ var { requestAnimationFrame: s, cancelAnimationFrame: c, setTimeout: l, clearTimeout: u } = window;
9
+ function d(l) {
10
+ let u = r(l), d = o(null), f = a(() => {
11
+ n(d.current) && (c(d.current), d.current = null);
12
+ }), p = a((...n) => {
13
+ t(d.current) && (d.current = s(() => {
14
+ let t = u.current;
15
+ e(t) && t(...n), d.current = null;
16
+ }));
17
+ });
18
+ return i(f), {
19
+ run: p,
20
+ cancel: f
21
+ };
22
+ }
23
+ //#endregion
24
+ export { d as default, d as useThrottleFnWithRAF };
25
+ /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isNumber as e } from "../../utils/is.js";
3
3
  import t from "../use-memoized-fn/index.js";
4
4
  import { useCallback as n, useEffect as r, useRef as i } from "react";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../utils/isBrowser.js";
3
3
  import t from "../use-unmount/index.js";
4
4
  import { useEffect as n, useRef as r } from "react";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isUndefined as e } from "../../utils/is.js";
3
3
  import { useMemo as t, useState as n } from "react";
4
4
  //#region components/common/hooks/use-toggle/index.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { useEffect as e, useRef as t } from "react";
3
3
  //#region components/common/hooks/use-tracked-effect/index.ts
4
4
  var n = (e, t) => e ? e.map((n, r) => Object.is(e[r], t?.[r]) ? -1 : r).filter((e) => e >= 0) : t ? t.map((e, t) => t) : [], r = (r, i) => {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isFunction as e } from "../../utils/is.js";
3
3
  import t from "../use-latest/index.js";
4
4
  import n from "../utils/isDev.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { useEffect as e, useRef as t } from "react";
3
3
  //#region components/common/hooks/use-unmounted-ref/index.tsx
4
4
  var n = () => {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../use-memoized-fn/index.js";
3
3
  import { useState as t } from "react";
4
4
  //#region components/common/hooks/use-update/index.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../create-update-effect/index.js";
3
3
  import { useEffect as t } from "react";
4
4
  //#region components/common/hooks/use-update-effect/index.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../create-update-effect/index.js";
3
3
  import { useLayoutEffect as t } from "react";
4
4
  //#region components/common/hooks/use-update-layout-effect/index.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isFunction as e } from "../../utils/is.js";
3
3
  import t from "../use-memoized-fn/index.js";
4
4
  import n from "../use-update/index.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isNumber as e } from "../../utils/is.js";
3
3
  import t from "../use-latest/index.js";
4
4
  import n from "../utils/domTarget.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isFunction as e } from "../../utils/is.js";
3
3
  import t from "../use-previous/index.js";
4
4
  import { useEffect as n } from "react";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "../use-latest/index.js";
3
3
  import t from "../use-unmount/index.js";
4
4
  import n from "../use-memoized-fn/index.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { useEffect as e, useRef as t } from "react";
3
3
  //#region components/common/hooks/use-why-did-you-update/index.ts
4
4
  function n(n, r) {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isFunction as e } from "../../utils/is.js";
3
3
  import t from "../use-latest/index.js";
4
4
  import n from "../use-listen-window-resize/index.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "./domTarget.js";
3
3
  import t from "../use-unmount/index.js";
4
4
  import n from "./depsAreSame.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  //#region components/common/hooks/utils/depsAreSame.ts
3
3
  function e(e, t) {
4
4
  if (e === t) return !0;
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isEqual as e } from "../../utils/is.js";
3
3
  //#region components/common/hooks/utils/depsEqual.ts
4
4
  var t = (t = [], n = []) => e(t, n);
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import { isFunction as e } from "../../utils/is.js";
3
3
  import t from "./isBrowser.js";
4
4
  //#region components/common/hooks/utils/domTarget.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "./domTarget.js";
3
3
  import t from "lodash/castArray";
4
4
  //#region components/common/hooks/utils/getDocumentOrShadow.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  //#region components/common/hooks/utils/index.ts
3
3
  var e = {};
4
4
  //#endregion
@@ -1,2 +1,2 @@
1
- import { isAppleDevice } from '@unicom-cloud/utils/constant/platform';
1
+ import { isAppleDevice } from '@unicom-cloud/utils/constants/platform';
2
2
  export default isAppleDevice;
@@ -1,5 +1,5 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
2
- import { isAppleDevice as e } from "@unicom-cloud/utils/constant/platform";
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
+ import { isAppleDevice as e } from "@unicom-cloud/utils/constants/platform";
3
3
  //#region components/common/hooks/utils/isAppleDevice.ts
4
4
  var t = e;
5
5
  //#endregion
@@ -1,2 +1,2 @@
1
- import { isBrowser } from '@unicom-cloud/utils/constant/platform';
1
+ import { isBrowser } from '@unicom-cloud/utils/constants/platform';
2
2
  export default isBrowser;
@@ -1,5 +1,5 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
2
- import { isBrowser as e } from "@unicom-cloud/utils/constant/platform";
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
+ import { isBrowser as e } from "@unicom-cloud/utils/constants/platform";
3
3
  //#region components/common/hooks/utils/isBrowser.ts
4
4
  var t = e;
5
5
  //#endregion
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  //#region components/common/hooks/utils/isDev.ts
3
3
  var e = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
4
4
  //#endregion
@@ -1,2 +1,2 @@
1
- import { NOOP } from '../../utils/constant';
1
+ import { NOOP } from '../../utils/constants';
2
2
  export default NOOP;
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  //#region components/common/hooks/utils/rect.ts
3
3
  function e(e) {
4
4
  return e === document || e === document.documentElement || e === document.body ? Math.max(window.pageYOffset, document.documentElement.scrollTop, document.body.scrollTop) : e.scrollTop;
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "./useEffectWithTarget.js";
3
3
  import { depsEqual as t } from "./depsEqual.js";
4
4
  import { useRef as n } from "react";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "./createEffectWithTarget.js";
3
3
  import { useEffect as t } from "react";
4
4
  //#region components/common/hooks/utils/useEffectWithTarget.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "./isBrowser.js";
3
3
  import t from "./useEffectWithTarget.js";
4
4
  import n from "./useLayoutEffectWithTarget.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
2
  import e from "./createEffectWithTarget.js";
3
3
  import { useLayoutEffect as t } from "react";
4
4
  //#region components/common/hooks/utils/useLayoutEffectWithTarget.ts
@@ -0,0 +1,60 @@
1
+ /* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
2
+ import e from "../../utils/className.js";
3
+ import { ICON_FILE_COMPONENT_INFO as t } from "../../utils/names.js";
4
+ import { PropsContext as n } from "./context.js";
5
+ import { forwardRef as r, useContext as i, useImperativeHandle as a, useRef as o } from "react";
6
+ import { UI_COMMON_PREFIX as s } from "@unicom-cloud/utils/constants/ui";
7
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
+ //#region components/common/icons/file/File.tsx
9
+ function u(t, r) {
10
+ let { style: u, className: d, backgroundColor: f, color: p, text: m, ...h } = {
11
+ ...i(n),
12
+ ...t
13
+ }, g = `${s}-icons-file`, _ = o(null), v = o(null);
14
+ return a(r, () => ({
15
+ getRootElement() {
16
+ return _.current;
17
+ },
18
+ getSvgElement() {
19
+ return v.current;
20
+ }
21
+ })), /* @__PURE__ */ c("div", {
22
+ ref: _,
23
+ className: e(g, d),
24
+ children: /* @__PURE__ */ l("svg", {
25
+ ref: v,
26
+ className: `${g}-svg`,
27
+ style: u,
28
+ ...h,
29
+ width: "100%",
30
+ height: "100%",
31
+ viewBox: "0 0 166 200",
32
+ version: "1.1",
33
+ children: [
34
+ /* @__PURE__ */ c("path", {
35
+ className: `${g}-svg-bg`,
36
+ d: "M9.911,0c-5.4,0.149 -9.792,4.556 -9.911,9.944l0,179.114c-0.012,2.627 1.066,5.147 2.976,6.956c1.811,1.889 4.312,2.968 6.931,2.991l145.363,-0c2.623,0.008 5.134,-1.075 6.928,-2.985c1.88,-1.833 2.952,-4.34 2.976,-6.962l0,-132.696l-56.159,-56.362l-99.111,0l0.007,0Z",
37
+ style: { fill: f }
38
+ }),
39
+ /* @__PURE__ */ c("path", {
40
+ className: `${g}-svg-tr`,
41
+ d: "M165.174,55.97l-46.193,0c-5.379,-0.13 -9.768,-4.505 -9.904,-9.872l0,-46.098l56.088,55.97l0.009,0Z"
42
+ }),
43
+ /* @__PURE__ */ c("text", {
44
+ className: `${g}-svg-text`,
45
+ x: "50%",
46
+ y: "142.967px",
47
+ textAnchor: "middle",
48
+ dominantBaseline: "middle",
49
+ style: { fill: p },
50
+ children: m ?? "doc"
51
+ })
52
+ ]
53
+ })
54
+ });
55
+ }
56
+ var d = r(u);
57
+ d.displayName = t.displayName;
58
+ //#endregion
59
+ export { d as default };
60
+ /* 独立思考,明辨是非 */
File without changes
@@ -0,0 +1,3 @@
1
+ import type { IconFileProps } from './interface';
2
+ export declare const defaultProps: Partial<IconFileProps>;
3
+ export declare const PropsContext: import("react").Context<Partial<IconFileProps>>;