@unicom-cloud/ui-common 0.1.58 → 0.1.60

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 (437) 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.d.ts +2 -0
  191. package/hooks/use-request/src/Fetch.js +32 -28
  192. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  193. package/hooks/use-request/src/plugins/useCachePlugin.js +5 -5
  194. package/hooks/use-request/src/plugins/useDebouncePlugin.js +2 -2
  195. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +13 -12
  196. package/hooks/use-request/src/plugins/usePollingPlugin.js +3 -3
  197. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  198. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  199. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  200. package/hooks/use-request/src/types.d.ts +2 -1
  201. package/hooks/use-request/src/useRequest.d.ts +11 -4
  202. package/hooks/use-request/src/useRequest.js +1 -1
  203. package/hooks/use-request/src/useRequestImplement.js +18 -18
  204. package/hooks/use-request/src/utils/cache.js +1 -1
  205. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  206. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  207. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  208. package/hooks/use-request/src/utils/isOnline.js +3 -3
  209. package/hooks/use-request/src/utils/limit.js +1 -1
  210. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  211. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  212. package/hooks/use-reset-state/index.js +6 -6
  213. package/hooks/use-resize-observer/index.d.ts +6 -1
  214. package/hooks/use-resize-observer/index.js +30 -4
  215. package/hooks/use-resize-observers/index.d.ts +1 -0
  216. package/hooks/use-resize-observers/index.js +23 -24
  217. package/hooks/use-responsive/index.js +2 -2
  218. package/hooks/use-safe-state/index.js +1 -1
  219. package/hooks/use-scroll/index.js +20 -20
  220. package/hooks/use-selections/index.d.ts +1 -1
  221. package/hooks/use-selections/index.js +45 -39
  222. package/hooks/use-session-storage-state/index.js +4 -4
  223. package/hooks/use-set/index.js +1 -1
  224. package/hooks/use-set-state/index.js +1 -1
  225. package/hooks/use-size/index.d.ts +1 -6
  226. package/hooks/use-size/index.js +4 -33
  227. package/hooks/use-state-callback/index.d.ts +1 -5
  228. package/hooks/use-state-callback/index.js +7 -7
  229. package/hooks/use-state-with-promise/index.d.ts +1 -4
  230. package/hooks/use-state-with-promise/index.js +1 -1
  231. package/hooks/use-sync-state/index.js +5 -5
  232. package/hooks/use-text-selection/index.js +1 -1
  233. package/hooks/use-theme/index.js +14 -14
  234. package/hooks/use-throttle/index.js +1 -1
  235. package/hooks/use-throttle/interface.d.ts +13 -0
  236. package/hooks/use-throttle/throttleOptions.d.ts +1 -5
  237. package/hooks/use-throttle-effect/index.js +5 -5
  238. package/hooks/use-throttle-fn/index.js +5 -5
  239. package/hooks/use-throttle-fn-with-raf/index.js +6 -6
  240. package/hooks/use-timeout/index.js +1 -1
  241. package/hooks/use-title/index.js +5 -5
  242. package/hooks/use-toggle/index.d.ts +6 -3
  243. package/hooks/use-toggle/index.js +1 -1
  244. package/hooks/use-tracked-effect/index.js +1 -1
  245. package/hooks/use-unmount/index.js +1 -1
  246. package/hooks/use-unmounted-ref/index.js +1 -1
  247. package/hooks/use-update/index.js +1 -1
  248. package/hooks/use-update-effect/index.js +1 -1
  249. package/hooks/use-update-layout-effect/index.js +1 -1
  250. package/hooks/use-url-state/index.d.ts +1 -1
  251. package/hooks/use-url-state/index.js +1 -1
  252. package/hooks/use-virtual-list/index.js +13 -13
  253. package/hooks/use-watch/index.js +1 -1
  254. package/hooks/use-web-socket/index.js +7 -7
  255. package/hooks/use-why-did-you-update/index.js +1 -1
  256. package/hooks/use-window-size/index.js +7 -7
  257. package/hooks/utils/createEffectWithTarget.js +7 -7
  258. package/hooks/utils/depsAreSame.js +1 -1
  259. package/hooks/utils/depsEqual.js +1 -1
  260. package/hooks/utils/domTarget.js +1 -1
  261. package/hooks/utils/getDocumentOrShadow.js +1 -1
  262. package/hooks/utils/index.js +1 -1
  263. package/hooks/utils/isAppleDevice.js +1 -1
  264. package/hooks/utils/isBrowser.js +1 -1
  265. package/hooks/utils/isDev.js +1 -1
  266. package/hooks/utils/rect.js +1 -1
  267. package/hooks/utils/useDeepCompareWithTarget.js +4 -4
  268. package/hooks/utils/useEffectWithTarget.js +1 -1
  269. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  270. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  271. package/icons/file/File.js +5 -4
  272. package/icons/file/constants.d.ts +2 -0
  273. package/icons/file/constants.js +7 -0
  274. package/icons/file/context.d.ts +0 -1
  275. package/icons/file/context.js +3 -3
  276. package/icons/file/index.js +2 -2
  277. package/icons/file/style/index.js +1 -1
  278. package/index.d.ts +2 -2
  279. package/index.js +542 -537
  280. package/morphicons/core/interpolate.js +1 -1
  281. package/morphicons/core/normalize.js +57 -57
  282. package/morphicons/core/parse.d.ts +1 -9
  283. package/morphicons/core/resample.js +1 -1
  284. package/morphicons/core/serialize.js +1 -1
  285. package/morphicons/core/spring.js +1 -1
  286. package/morphicons/dom/controller.d.ts +3 -3
  287. package/morphicons/dom/index.js +23 -23
  288. package/morphicons/element/index.d.ts +1 -1
  289. package/morphicons/index.d.ts +1 -1
  290. package/morphicons/index.js +6 -6
  291. package/morphicons/react/index.d.ts +1 -1
  292. package/morphicons/react/index.js +65 -65
  293. package/package.json +1 -1
  294. package/progress/Progress.js +20 -20
  295. package/progress/constants.js +1 -1
  296. package/progress/context.js +1 -1
  297. package/progress/index.js +1 -1
  298. package/progress/style/index.js +1 -1
  299. package/progress/utils.js +1 -1
  300. package/resize-observer/Collection.js +1 -1
  301. package/resize-observer/ResizeObserver.js +13 -12
  302. package/resize-observer/SingleObserver.d.ts +1 -5
  303. package/resize-observer/SingleObserver.js +4 -4
  304. package/resize-observer/constants.d.ts +2 -0
  305. package/resize-observer/constants.js +4 -1
  306. package/resize-observer/context.d.ts +0 -1
  307. package/resize-observer/context.js +3 -3
  308. package/resize-observer/index.d.ts +1 -7
  309. package/resize-observer/index.js +7 -9
  310. package/resize-observer/interface.d.ts +18 -0
  311. package/resize-observer/observerUtil.d.ts +1 -1
  312. package/resize-observer/observerUtil.js +1 -1
  313. package/resize-observer/style/index.js +1 -1
  314. package/resize-observer/utils.js +1 -1
  315. package/space/Space.d.ts +2 -1
  316. package/space/Space.js +12 -11
  317. package/space/SpaceVertical.js +1 -1
  318. package/space/constants.d.ts +2 -0
  319. package/space/constants.js +9 -1
  320. package/space/context.d.ts +0 -1
  321. package/space/context.js +3 -8
  322. package/space/index.d.ts +0 -6
  323. package/space/index.js +8 -10
  324. package/space/interface.d.ts +1 -0
  325. package/space/style/index.js +1 -1
  326. package/space/utils.js +1 -1
  327. package/style/animation.less +2 -8
  328. package/style/normalize.less +0 -13
  329. package/style.css +1 -1
  330. package/suspense-fallback-test/NeverLoadLazy.d.ts +3 -0
  331. package/suspense-fallback-test/NeverLoadLazy.js +8 -0
  332. package/suspense-fallback-test/SuspenseFallbackTest.js +14 -14
  333. package/suspense-fallback-test/constants.d.ts +2 -0
  334. package/suspense-fallback-test/constants.js +4 -1
  335. package/suspense-fallback-test/context.d.ts +0 -2
  336. package/suspense-fallback-test/context.js +3 -3
  337. package/suspense-fallback-test/index.d.ts +0 -6
  338. package/suspense-fallback-test/index.js +5 -9
  339. package/suspense-fallback-test/style/index.js +1 -1
  340. package/suspense-fallback-test/utils.js +1 -1
  341. package/test.js +1 -1
  342. package/timer/Timer.js +6 -5
  343. package/timer/constants.d.ts +2 -0
  344. package/timer/constants.js +4 -1
  345. package/timer/context.d.ts +0 -1
  346. package/timer/context.js +3 -3
  347. package/timer/index.d.ts +0 -6
  348. package/timer/index.js +5 -9
  349. package/timer/style/index.js +1 -1
  350. package/timer/utils.js +1 -1
  351. package/transition/Transition.d.ts +0 -1
  352. package/transition/Transition.js +55 -58
  353. package/transition/TransitionCSS.js +15 -15
  354. package/transition/TransitionGroup.js +13 -13
  355. package/transition/TransitionStyle.js +12 -12
  356. package/transition/constants.d.ts +4 -27
  357. package/transition/constants.js +37 -41
  358. package/transition/context.d.ts +2 -3
  359. package/transition/context.js +4 -5
  360. package/transition/index.d.ts +0 -7
  361. package/transition/index.js +15 -16
  362. package/transition/interface.d.ts +26 -1
  363. package/transition/interface.js +11 -0
  364. package/transition/style/index.js +1 -1
  365. package/transition/utils.d.ts +1 -1
  366. package/transition/utils.js +1 -1
  367. package/utils/callbackOriginRef.js +1 -1
  368. package/utils/confetti.js +1 -1
  369. package/utils/constants.d.ts +3 -2
  370. package/utils/constants.js +6 -5
  371. package/utils/copy.js +1 -1
  372. package/utils/createRoot.d.ts +1 -6
  373. package/utils/createRoot.js +11 -11
  374. package/utils/css.js +1 -1
  375. package/utils/date.d.ts +1 -1
  376. package/utils/date.js +1 -1
  377. package/utils/dayjs.js +1 -1
  378. package/utils/document.js +1 -1
  379. package/utils/dom.d.ts +1 -1
  380. package/utils/dom.js +9 -9
  381. package/utils/file.js +1 -1
  382. package/utils/fillNBSP.js +1 -1
  383. package/utils/getCompatProp.js +1 -1
  384. package/utils/getElement.js +1 -1
  385. package/utils/getHighlightText.js +1 -1
  386. package/utils/getHotkeyHandler.d.ts +1 -12
  387. package/utils/getHotkeyHandler.js +17 -17
  388. package/utils/getPrefixCls.js +1 -1
  389. package/utils/getScrollBarHeight.js +1 -1
  390. package/utils/getScrollBarSize.js +1 -1
  391. package/utils/getScrollBarWidth.js +1 -1
  392. package/utils/getScrollParent.js +1 -1
  393. package/utils/getStringLength.js +1 -1
  394. package/utils/getUrlSearchParam.js +1 -1
  395. package/utils/index.js +274 -273
  396. package/utils/initAllLineClamp.js +1 -1
  397. package/utils/injectLineClamp.js +1 -1
  398. package/utils/interface.d.ts +103 -0
  399. package/utils/interface.js +4 -0
  400. package/utils/intersectionObserver.js +1 -1
  401. package/utils/is.js +1 -1
  402. package/utils/keyboardCode.js +1 -1
  403. package/utils/lodash.d.ts +2 -1
  404. package/utils/lodash.js +19 -18
  405. package/utils/math.d.ts +1 -1
  406. package/utils/mergeProps.d.ts +1 -2
  407. package/utils/mergeProps.js +1 -1
  408. package/utils/mergedToString.js +1 -1
  409. package/utils/migrateLegacyProps.d.ts +1 -8
  410. package/utils/migrateLegacyProps.js +1 -1
  411. package/utils/mutationObserver.js +1 -1
  412. package/utils/names.d.ts +1 -8
  413. package/utils/names.js +1 -1
  414. package/utils/object.js +1 -1
  415. package/utils/omit.js +1 -1
  416. package/utils/pad.js +1 -1
  417. package/utils/pick.js +1 -1
  418. package/utils/react19Adapter.js +1 -1
  419. package/utils/reactNode.js +1 -1
  420. package/utils/ref.d.ts +2 -1
  421. package/utils/ref.js +13 -13
  422. package/utils/resizeObserver.js +1 -1
  423. package/utils/scrollIntoViewIfNeeded.js +1 -1
  424. package/utils/scrollTo.js +1 -1
  425. package/utils/setDarkTheme.js +1 -1
  426. package/utils/setDir.js +1 -1
  427. package/utils/setPrimaryColor.js +1 -1
  428. package/utils/setTheme.js +1 -1
  429. package/utils/string.js +1 -1
  430. package/utils/style.js +1 -1
  431. package/utils/tinycolor.js +1 -1
  432. package/utils/toArray.js +1 -1
  433. package/utils/tunnel.d.ts +2 -12
  434. package/utils/tunnel.js +1 -1
  435. package/utils/warning.js +1 -1
  436. package/version/index.js +9 -9
  437. /package/{suspense-fallback-test → base}/style/index.css +0 -0
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  // \0rolldown/runtime.js
4
4
  var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, r = Object.prototype.hasOwnProperty, i = (t, n) => {
@@ -1,64 +1,63 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../hooks/use-create/index.js";
4
- import t from "../hooks/use-update-effect/index.js";
5
- import { defaults as n, get as r } from "../utils/lodash.js";
6
- import i from "../hooks/use-set-state/index.js";
7
- import a from "../hooks/use-update-layout-effect/index.js";
8
- import o from "../hooks/use-is-first-render/index.js";
9
- import s from "../utils/className.js";
10
- import c from "../utils/getPrefixCls.js";
11
- import { COMPONENT_INFO_ANIMATION as l } from "../utils/names.js";
12
- import u, { PropsContext as d, defaultProps as f } from "./context.js";
13
- import { forwardRef as p, isValidElement as m, useContext as h, useEffect as g, useImperativeHandle as _, useLayoutEffect as v, useRef as y, useTransition as b } from "react";
14
- import { isFunction as x } from "@unicom-cloud/utils/is";
15
- import { jsx as S } from "react/jsx-runtime";
4
+ import t from "../hooks/use-is-first-render/index.js";
5
+ import n from "../hooks/use-set-state/index.js";
6
+ import r from "../hooks/use-update-effect/index.js";
7
+ import i from "../hooks/use-update-layout-effect/index.js";
8
+ import a from "../utils/call.js";
9
+ import o from "../utils/className.js";
10
+ import s from "../utils/getPrefixCls.js";
11
+ import { defaults as c, get as l } from "../utils/lodash.js";
12
+ import { COMPONENT_INFO_ANIMATION as u } from "../utils/names.js";
13
+ import { defaultProps as d } from "./constants.js";
14
+ import f, { PropsContext as p } from "./context.js";
15
+ import { forwardRef as m, isValidElement as h, useContext as g, useEffect as _, useImperativeHandle as v, useLayoutEffect as y, useRef as b, useTransition as x } from "react";
16
+ import { isFunction as S } from "@unicom-cloud/utils/is";
17
+ import { jsx as C } from "react/jsx-runtime";
16
18
  // components/common/animation/Animation.tsx
17
- var { setTimeout: C, clearTimeout: w, requestAnimationFrame: T, cancelAnimationFrame: E } = window;
18
- function D(l, p) {
19
- let C = h(d), w = c("animation"), T = n({}, l, C, f), { style: E, className: D, children: O, name: k, onStart: A, onEnd: j, onIteration: M } = T;
20
- e(() => {}), o(), y({});
21
- let N = y(null), [P, F, I] = i(() => {}), [L, R] = b();
22
- function z() {}
19
+ var { setTimeout: w, clearTimeout: T, requestAnimationFrame: E, cancelAnimationFrame: D } = window;
20
+ function O(u, m) {
21
+ let w = g(p), T = s("animation"), E = c({}, u, w, d), { style: D, className: O, children: k, name: A, onStart: j, onEnd: M, onIteration: N } = E;
22
+ e(() => {}), t(), b({});
23
+ let P = b(null), [F, I, L] = n(() => {}), [R, z] = x();
23
24
  function B() {}
24
- a(() => () => {}, []), v(() => () => {}, []), t(() => () => {}, []), g(() => () => {}, []), _(p, () => ({
25
- start: z,
26
- destroy: B,
25
+ function V() {}
26
+ i(() => () => {}, []), y(() => () => {}, []), r(() => () => {}, []), _(() => () => {}, []), v(m, () => ({
27
+ start: B,
28
+ destroy: V,
27
29
  getRootElement() {
28
- return N.current;
30
+ return P.current;
29
31
  }
30
32
  }));
31
- let V = O;
32
- if (x(V) && (V = V(T, P)), m(V)) {
33
- let e = s(r(V, ["props", "className"]), k && [w, `${w}-${k}`], D);
34
- V = /* @__PURE__ */ S(u.Provider, {
33
+ let H = k;
34
+ if (S(H) && (H = H(E, F)), h(H)) {
35
+ let e = o(l(H, ["props", "className"]), A && [T, `${T}-${A}`], O);
36
+ H = /* @__PURE__ */ C(f.Provider, {
35
37
  value: {
36
- props: T,
37
- name: k
38
+ props: E,
39
+ name: A
38
40
  },
39
- children: /* @__PURE__ */ S("div", {
40
- ref: N,
41
- style: E,
41
+ children: /* @__PURE__ */ C("div", {
42
+ ref: P,
43
+ style: D,
42
44
  className: e,
43
45
  onAnimationStart: (e) => {
44
- let t = A;
45
- x(t) && t(e);
46
+ a(j, e);
46
47
  },
47
48
  onAnimationEnd: (e) => {
48
- let t = j;
49
- x(t) && t(e);
49
+ a(M, e);
50
50
  },
51
51
  onAnimationIteration: (e) => {
52
- let t = M;
53
- x(t) && t(e);
52
+ a(N, e);
54
53
  },
55
- children: V
54
+ children: H
56
55
  })
57
56
  });
58
57
  }
59
- return V;
58
+ return H;
60
59
  }
61
- var O = Object.assign(p(D), { ...l });
62
- export { O as default };
60
+ var k = Object.assign(m(O), { ...u });
61
+ export { k as default };
63
62
  /* 欲穷千里目,更上一层楼 */
64
63
  /* 独立思考,明辨是非 */
@@ -1 +1,3 @@
1
+ import type { AnimationProps } from './interface';
2
+ export declare const defaultProps: Partial<AnimationProps>;
1
3
  export declare const ANIMATION_NAMES: readonly ["back-in-down", "back-in-left", "back-in-right", "back-in-up", "back-out-down", "back-out-left", "back-out-right", "back-out-up", "bounce", "bounce-in", "bounce-in-down", "bounce-in-left", "bounce-in-right", "bounce-in-up", "bounce-out", "bounce-out-down", "bounce-out-left", "bounce-out-right", "bounce-out-up", "flash", "pulse", "rubber-band", "shake", "shake-x", "shake-y", "head-shake", "swing", "tada", "wobble", "jello", "heart-beat", "fade-in", "fade-in-down", "fade-in-down-big", "fade-in-left", "fade-in-left-big", "fade-in-right", "fade-in-right-big", "fade-in-up", "fade-in-up-big", "fade-in-top-left", "fade-in-top-right", "fade-in-bottom-left", "fade-in-bottom-right", "fade-out", "fade-out-down", "fade-out-down-big", "fade-out-left", "fade-out-left-big", "fade-out-right", "fade-out-right-big", "fade-out-up", "fade-out-up-big", "fade-out-top-left", "fade-out-top-right", "fade-out-bottom-right", "fade-out-bottom-left", "flip", "flip-in-x", "flip-in-y", "flip-out-x", "flip-out-y", "light-speed-in-right", "light-speed-in-left", "light-speed-out-right", "light-speed-out-left", "rotate-in", "rotate-in-down-left", "rotate-in-down-right", "rotate-in-up-left", "rotate-in-up-right", "rotate-out", "rotate-out-down-left", "rotate-out-down-right", "rotate-out-up-left", "rotate-out-up-right", "hinge", "jack-in-the-box", "roll-in", "roll-out", "zoom-in", "zoom-in-down", "zoom-in-left", "zoom-in-right", "zoom-in-up", "zoom-out", "zoom-out-down", "zoom-out-left", "zoom-out-right", "zoom-out-up", "slide-in-down", "slide-in-left", "slide-in-right", "slide-in-up", "slide-out-down", "slide-out-left", "slide-out-right", "slide-out-up"];
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  // components/common/animation/constants.ts
4
- var e = /* @__PURE__ */ "back-in-down.back-in-left.back-in-right.back-in-up.back-out-down.back-out-left.back-out-right.back-out-up.bounce.bounce-in.bounce-in-down.bounce-in-left.bounce-in-right.bounce-in-up.bounce-out.bounce-out-down.bounce-out-left.bounce-out-right.bounce-out-up.flash.pulse.rubber-band.shake.shake-x.shake-y.head-shake.swing.tada.wobble.jello.heart-beat.fade-in.fade-in-down.fade-in-down-big.fade-in-left.fade-in-left-big.fade-in-right.fade-in-right-big.fade-in-up.fade-in-up-big.fade-in-top-left.fade-in-top-right.fade-in-bottom-left.fade-in-bottom-right.fade-out.fade-out-down.fade-out-down-big.fade-out-left.fade-out-left-big.fade-out-right.fade-out-right-big.fade-out-up.fade-out-up-big.fade-out-top-left.fade-out-top-right.fade-out-bottom-right.fade-out-bottom-left.flip.flip-in-x.flip-in-y.flip-out-x.flip-out-y.light-speed-in-right.light-speed-in-left.light-speed-out-right.light-speed-out-left.rotate-in.rotate-in-down-left.rotate-in-down-right.rotate-in-up-left.rotate-in-up-right.rotate-out.rotate-out-down-left.rotate-out-down-right.rotate-out-up-left.rotate-out-up-right.hinge.jack-in-the-box.roll-in.roll-out.zoom-in.zoom-in-down.zoom-in-left.zoom-in-right.zoom-in-up.zoom-out.zoom-out-down.zoom-out-left.zoom-out-right.zoom-out-up.slide-in-down.slide-in-left.slide-in-right.slide-in-up.slide-out-down.slide-out-left.slide-out-right.slide-out-up".split(".");
5
- Object.freeze(e);
6
- export { e as ANIMATION_NAMES };
4
+ var e = {}, t = /* @__PURE__ */ "back-in-down.back-in-left.back-in-right.back-in-up.back-out-down.back-out-left.back-out-right.back-out-up.bounce.bounce-in.bounce-in-down.bounce-in-left.bounce-in-right.bounce-in-up.bounce-out.bounce-out-down.bounce-out-left.bounce-out-right.bounce-out-up.flash.pulse.rubber-band.shake.shake-x.shake-y.head-shake.swing.tada.wobble.jello.heart-beat.fade-in.fade-in-down.fade-in-down-big.fade-in-left.fade-in-left-big.fade-in-right.fade-in-right-big.fade-in-up.fade-in-up-big.fade-in-top-left.fade-in-top-right.fade-in-bottom-left.fade-in-bottom-right.fade-out.fade-out-down.fade-out-down-big.fade-out-left.fade-out-left-big.fade-out-right.fade-out-right-big.fade-out-up.fade-out-up-big.fade-out-top-left.fade-out-top-right.fade-out-bottom-right.fade-out-bottom-left.flip.flip-in-x.flip-in-y.flip-out-x.flip-out-y.light-speed-in-right.light-speed-in-left.light-speed-out-right.light-speed-out-left.rotate-in.rotate-in-down-left.rotate-in-down-right.rotate-in-up-left.rotate-in-up-right.rotate-out.rotate-out-down-left.rotate-out-down-right.rotate-out-up-left.rotate-out-up-right.hinge.jack-in-the-box.roll-in.roll-out.zoom-in.zoom-in-down.zoom-in-left.zoom-in-right.zoom-in-up.zoom-out.zoom-out-down.zoom-out-left.zoom-out-right.zoom-out-up.slide-in-down.slide-in-left.slide-in-right.slide-in-up.slide-out-down.slide-out-left.slide-out-right.slide-out-up".split(".");
5
+ Object.freeze(t);
6
+ export { t as ANIMATION_NAMES, e as defaultProps };
7
7
  /* 欲穷千里目,更上一层楼 */
8
8
  /* 独立思考,明辨是非 */
@@ -1,5 +1,4 @@
1
1
  import type { AnimationProps } from './interface';
2
- export declare const defaultProps: Partial<AnimationProps>;
3
2
  export declare const PropsContext: import("react").Context<Partial<AnimationProps>>;
4
3
  declare const AnimationContext: import("react").Context<{}>;
5
4
  export default AnimationContext;
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { createContext as e } from "react";
4
4
  // components/common/animation/context.ts
5
- var t = {}, n = e({}), r = e({});
6
- export { n as PropsContext, r as default, t as defaultProps };
5
+ var t = e({}), n = e({});
6
+ export { t as PropsContext, n as default };
7
7
  /* 欲穷千里目,更上一层楼 */
8
8
  /* 独立思考,明辨是非 */
@@ -9,12 +9,6 @@ declare const Animation: import("react").ForwardRefExoticComponent<import("./int
9
9
  descriptions?: string;
10
10
  } & {
11
11
  PropsContext: import("react").Context<Partial<import("./interface").AnimationProps>>;
12
- zh: string;
13
- en: string;
14
- displayName: string;
15
- id: string;
16
- legacy?: string;
17
- descriptions?: string;
18
12
  };
19
13
  export { ANIMATION_NAMES };
20
14
  export default Animation;
@@ -1,15 +1,11 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
- import { COMPONENT_INFO_ANIMATION as e } from "../utils/names.js";
4
3
  import "./style/index.js";
5
- import { PropsContext as t } from "./context.js";
6
- import n from "./Animation.js";
7
- import { ANIMATION_NAMES as r } from "./constants.js";
4
+ import e from "./Animation.js";
5
+ import { ANIMATION_NAMES as t } from "./constants.js";
6
+ import { PropsContext as n } from "./context.js";
8
7
  // components/common/animation/index.ts
9
- var i = Object.assign(n, {
10
- ...e,
11
- PropsContext: t
12
- });
13
- export { r as ANIMATION_NAMES, i as default };
8
+ var r = Object.assign(e, { PropsContext: n });
9
+ export { t as ANIMATION_NAMES, r as default };
14
10
  /* 欲穷千里目,更上一层楼 */
15
11
  /* 独立思考,明辨是非 */
@@ -1,5 +1,5 @@
1
1
  import type { CSSProperties, PropsWithChildren } from 'react';
2
- import { ANIMATION_NAMES } from './constants';
2
+ import type { ANIMATION_NAMES } from './constants';
3
3
  export interface AnimationProps extends PropsWithChildren {
4
4
  style?: CSSProperties;
5
5
  className?: string;
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  /* empty css */
4
4
  /* 欲穷千里目,更上一层楼 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  /* 欲穷千里目,更上一层楼 */
4
4
  /* 独立思考,明辨是非 */
package/base/Base.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  // components/common/base/Base.tsx
4
4
  function e(e) {}
@@ -0,0 +1,2 @@
1
+ import type { BaseProps } from './interface';
2
+ export declare const defaultProps: Partial<BaseProps>;
package/base/constants.js CHANGED
@@ -1,4 +1,7 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
+ // components/common/base/constants.ts
4
+ var e = {};
5
+ export { e as defaultProps };
3
6
  /* 欲穷千里目,更上一层楼 */
4
7
  /* 独立思考,明辨是非 */
package/base/context.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  import type { BaseProps } from './interface';
2
- export declare const defaultProps: Partial<BaseProps>;
3
2
  export declare const PropsContext: import("react").Context<Partial<BaseProps>>;
package/base/context.js CHANGED
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { createContext as e } from "react";
4
4
  // components/common/base/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
  /* 独立思考,明辨是非 */
package/base/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import "./style/index.js";
4
4
  import e from "./Base.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  /* empty css */
4
4
  /* 欲穷千里目,更上一层楼 */
package/base/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  /* 欲穷千里目,更上一层楼 */
4
4
  /* 独立思考,明辨是非 */
@@ -1,13 +1,13 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../hooks/use-merge-component-props/index.js";
4
- import t from "../utils/className.js";
5
- import n from "../utils/getPrefixCls.js";
6
- import { COMPONENT_INFO_BORDER_BEAM as r } from "../utils/names.js";
7
- import { utils_exports as i } from "../utils/index.js";
4
+ import { utils_exports as t } from "../utils/index.js";
5
+ import n from "../utils/className.js";
6
+ import r from "../utils/getPrefixCls.js";
7
+ import { COMPONENT_INFO_BORDER_BEAM as i } from "../utils/names.js";
8
8
  import a from "./Effect.js";
9
- import { GRADIENT_PRESETS as o } from "./constants.js";
10
- import { PropsContext as s, defaultProps as c } from "./context.js";
9
+ import { GRADIENT_PRESETS as o, defaultProps as s } from "./constants.js";
10
+ import { PropsContext as c } from "./context.js";
11
11
  import l from "./hooks/useBorderSize.js";
12
12
  import u from "./hooks/useChildDom.js";
13
13
  import { getBorderBeamGradient as d } from "./utils.js";
@@ -15,25 +15,25 @@ import { forwardRef as f, useContext as p, useImperativeHandle as m, useMemo as
15
15
  import { cssUnit as _ } from "@unicom-cloud/utils/css";
16
16
  import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
17
17
  // components/common/border-beam/BorderBeam.tsx
18
- function x(r, f) {
19
- let x = p(s), { className: S, style: C, children: w, color: T, gradientType: E, outset: D, duration: O, lineWidth: k, size: A, ...j } = e({
20
- internalProps: r,
18
+ function x(i, f) {
19
+ let x = p(c), { className: S, style: C, children: w, color: T, gradientType: E, outset: D, duration: O, lineWidth: k, size: A, ...j } = e({
20
+ internalProps: i,
21
21
  contextProps: x,
22
22
  globalProps: {},
23
- defaultProps: c
23
+ defaultProps: s
24
24
  }), M = T;
25
25
  if (!M && E) {
26
26
  let e = o.find((e, t, n) => e.key === E);
27
27
  e && (M = e.color);
28
28
  }
29
- let N = n("border-beam"), [P, F] = u(w), { borderWidth: I, borderRadius: L } = l(F), R = h(() => d(M), [M]), z = (e) => (0, i.isString)(e) ? `calc(-1 * ${e})` : `${-1 * e}px`, B = h(() => (0, i.isNonNullable)(D) ? z(D) : I.map(z).join(" "), [I, D]), V = {}, H = g(null);
29
+ let N = r("border-beam"), [P, F] = u(w), { borderWidth: I, borderRadius: L } = l(F), R = h(() => d(M), [M]), z = (e) => (0, t.isString)(e) ? `calc(-1 * ${e})` : `${-1 * e}px`, B = h(() => (0, t.isNonNullable)(D) ? z(D) : I.map(z).join(" "), [I, D]), V = {}, H = g(null);
30
30
  return m(f, () => ({ getRootElement() {
31
31
  return H.current;
32
32
  } })), /* @__PURE__ */ b(v, { children: [P, /* @__PURE__ */ y(a, {
33
33
  ref: H,
34
34
  prefixCls: N,
35
35
  hostDom: F,
36
- className: t(N, S),
36
+ className: n(N, S),
37
37
  style: {
38
38
  ...V,
39
39
  ...C,
@@ -47,7 +47,7 @@ function x(r, f) {
47
47
  ...j
48
48
  })] });
49
49
  }
50
- var S = Object.assign(f(x), { ...r });
50
+ var S = Object.assign(f(x), { ...i });
51
51
  export { S as default };
52
52
  /* 欲穷千里目,更上一层楼 */
53
53
  /* 独立思考,明辨是非 */
@@ -1,9 +1,4 @@
1
1
  import React from 'react';
2
- export type EffectProps = {
3
- style?: React.CSSProperties;
4
- className?: string;
5
- prefixCls: string;
6
- hostDom: HTMLElement | SVGElement | null;
7
- };
2
+ import type { EffectProps } from './interface';
8
3
  declare const Effect: React.FC<EffectProps>;
9
4
  export default Effect;
@@ -1,12 +1,12 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../utils/className.js";
4
4
  import { forwardRef as t } from "react";
5
- import { isNotUndefined as n } from "@unicom-cloud/utils/is";
5
+ import { isGlobalDefined as n } from "@unicom-cloud/utils/is";
6
6
  import { createPortal as r } from "react-dom";
7
7
  import { jsx as i } from "react/jsx-runtime";
8
8
  // components/common/border-beam/Effect.tsx
9
- var a = (e) => n(HTMLElement) && e instanceof HTMLElement, o = t((t, n) => {
9
+ var a = (e) => n("HTMLElement") && e instanceof HTMLElement, o = t((t, n) => {
10
10
  let { prefixCls: r, className: a, ...o } = t;
11
11
  return /* @__PURE__ */ i("div", {
12
12
  ref: n,
@@ -1,2 +1,3 @@
1
- import type { Preset } from './interface';
1
+ import type { BorderBeamProps, Preset } from './interface';
2
2
  export declare const GRADIENT_PRESETS: Preset[];
3
+ export declare const defaultProps: Partial<BorderBeamProps>;
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { UI_COMMON_PREFIX as e, UI_MOBILE_PREFIX as t, UI_PC_PREFIX as n } from "@unicom-cloud/utils/constants/ui";
4
4
  // components/common/border-beam/constants.ts
@@ -126,7 +126,12 @@ var i = [
126
126
  }
127
127
  ]
128
128
  }
129
- ];
130
- export { i as GRADIENT_PRESETS };
129
+ ], a = {
130
+ gradientType: i[0].key,
131
+ duration: 7,
132
+ lineWidth: 1,
133
+ size: 100
134
+ };
135
+ export { i as GRADIENT_PRESETS, a as defaultProps };
131
136
  /* 欲穷千里目,更上一层楼 */
132
137
  /* 独立思考,明辨是非 */
@@ -1,3 +1,2 @@
1
1
  import type { BorderBeamProps } from './interface';
2
- export declare const defaultProps: Partial<BorderBeamProps>;
3
2
  export declare const PropsContext: import("react").Context<Partial<BorderBeamProps>>;
@@ -1,14 +1,8 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
- import { GRADIENT_PRESETS as e } from "./constants.js";
4
- import { createContext as t } from "react";
3
+ import { createContext as e } from "react";
5
4
  // components/common/border-beam/context.ts
6
- var n = {
7
- gradientType: e[0].key,
8
- duration: 7,
9
- lineWidth: 1,
10
- size: 100
11
- }, r = t({});
12
- export { r as PropsContext, n as defaultProps };
5
+ var t = e({});
6
+ export { t as PropsContext };
13
7
  /* 欲穷千里目,更上一层楼 */
14
8
  /* 独立思考,明辨是非 */
@@ -1,7 +1,3 @@
1
- export type BorderWidth = readonly [number, number, number, number];
2
- export type BorderInfo = {
3
- borderWidth: BorderWidth;
4
- borderRadius: string;
5
- };
1
+ import type { BorderInfo } from '../interface';
6
2
  declare const useBorderSize: (domNode: Element | null) => BorderInfo;
7
3
  export default useBorderSize;
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { useEffect as e, useState as t } from "react";
4
4
  // components/common/border-beam/hooks/useBorderSize.ts
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  /**
3
3
  * Merge the child ref with an internal ref and expose the resolved DOM node.
4
4
  *
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { getNodeRef as e, supportRef as t, useComposeRef as n } from "../../utils/ref.js";
4
4
  import { getDOM as r } from "../../utils/dom.js";
@@ -9,12 +9,6 @@ declare const BorderBeam: import("react").ForwardRefExoticComponent<import("./in
9
9
  descriptions?: string;
10
10
  } & {
11
11
  PropsContext: import("react").Context<Partial<import("./interface").BorderBeamProps>>;
12
- zh: string;
13
- en: string;
14
- displayName: string;
15
- id: string;
16
- legacy?: string;
17
- descriptions?: string;
18
12
  };
19
13
  export { GRADIENT_PRESETS as BORDER_BEAM_GRADIENT_PRESETS };
20
14
  export default BorderBeam;
@@ -1,15 +1,11 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
- import { COMPONENT_INFO_BORDER_BEAM as e } from "../utils/names.js";
3
+ import "./style/index.js";
4
+ import e from "./BorderBeam.js";
4
5
  import { GRADIENT_PRESETS as t } from "./constants.js";
5
6
  import { PropsContext as n } from "./context.js";
6
- import r from "./BorderBeam.js";
7
- import "./style/index.js";
8
7
  // components/common/border-beam/index.ts
9
- var i = Object.assign(r, {
10
- ...e,
11
- PropsContext: n
12
- });
13
- export { t as BORDER_BEAM_GRADIENT_PRESETS, i as default };
8
+ var r = Object.assign(e, { PropsContext: n });
9
+ export { t as BORDER_BEAM_GRADIENT_PRESETS, r as default };
14
10
  /* 欲穷千里目,更上一层楼 */
15
11
  /* 独立思考,明辨是非 */
@@ -1,6 +1,26 @@
1
- type BorderBeamGradientItem = {
2
- color: string;
3
- percent: number;
1
+ import type React from 'react';
2
+ /**
3
+ * Effect 子组件 props
4
+ * @en Effect sub-component props
5
+ */
6
+ export type EffectProps = {
7
+ style?: React.CSSProperties;
8
+ className?: string;
9
+ prefixCls: string;
10
+ hostDom: HTMLElement | SVGElement | null;
11
+ };
12
+ /**
13
+ * 边框四角宽度 [top, right, bottom, left]
14
+ * @en Border width [top, right, bottom, left]
15
+ */
16
+ export type BorderWidth = readonly [number, number, number, number];
17
+ /**
18
+ * 边框信息
19
+ * @en Border info
20
+ */
21
+ export type BorderInfo = {
22
+ borderWidth: BorderWidth;
23
+ borderRadius: string;
4
24
  };
5
25
  export type BorderBeamGradient = BorderBeamGradientItem[];
6
26
  export type BorderBeamColor = string | BorderBeamGradient;
@@ -29,4 +49,7 @@ export interface Preset {
29
49
  percent: number;
30
50
  }>;
31
51
  }
32
- export {};
52
+ export type BorderBeamGradientItem = {
53
+ color: string;
54
+ percent: number;
55
+ };
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  /* empty css */
4
4
  /* 欲穷千里目,更上一层楼 */
@@ -1,10 +1,2 @@
1
- type BorderBeamGradientItem = {
2
- color: string;
3
- percent: number;
4
- };
5
- export type BorderBeamGradient = BorderBeamGradientItem[];
6
- export type BorderBeamColor = string | BorderBeamGradient;
7
- export declare const DEFAULT_BORDER_BEAM_DURATION = 6;
8
- export declare const MAX_BEAM_COLOR_STOP_PERCENT = 70;
1
+ import type { BorderBeamColor } from './interface';
9
2
  export declare const getBorderBeamGradient: (value?: BorderBeamColor) => string | undefined;
10
- export {};
@@ -1,23 +1,23 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { isString as e } from "@unicom-cloud/utils/is";
4
4
  // components/common/border-beam/utils.ts
5
- var t = 6, n = 70, r = (...e) => `linear-gradient(to left, ${e.join(", ")}, transparent)`, i = (t) => e(t) ? [{
5
+ var t = (...e) => `linear-gradient(to left, ${e.join(", ")}, transparent)`, n = (t) => e(t) ? [{
6
6
  color: t,
7
7
  percent: 0
8
- }] : t ?? [], a = (e) => {
8
+ }] : t ?? [], r = (e) => {
9
9
  let t = e[e.length - 1];
10
10
  return !t || t.percent === 100 ? e : [...e, {
11
11
  ...t,
12
12
  percent: 100
13
13
  }];
14
- }, o = (e) => Number((Math.min(Math.max(e, 0), 100) / 100 * 70).toFixed(2)), s = (e) => a(e).map((e) => ({
14
+ }, i = (e) => Number((Math.min(Math.max(e, 0), 100) / 100 * 70).toFixed(2)), a = (e) => r(e).map((e) => ({
15
15
  ...e,
16
- percent: o(e.percent)
17
- })), c = (e) => {
18
- let t = s(i(e));
19
- return t.length ? r(...t.map((e) => `${e.color} ${e.percent}%`)) : void 0;
16
+ percent: i(e.percent)
17
+ })), o = (e) => {
18
+ let r = a(n(e));
19
+ return r.length ? t(...r.map((e) => `${e.color} ${e.percent}%`)) : void 0;
20
20
  };
21
- export { t as DEFAULT_BORDER_BEAM_DURATION, n as MAX_BEAM_COLOR_STOP_PERCENT, c as getBorderBeamGradient };
21
+ export { o as getBorderBeamGradient };
22
22
  /* 欲穷千里目,更上一层楼 */
23
23
  /* 独立思考,明辨是非 */
@@ -1,21 +1,22 @@
1
- /* 潘启宝 2026-11-04 17:31:58 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import e from "../hooks/use-merge-component-props/index.js";
4
4
  import t from "../utils/getPrefixCls.js";
5
- import { COMPONENT_INFO_DEVELOPMENT as n } from "../utils/names.js";
6
5
  import "../utils/index.js";
7
- import { PropsContext as r, defaultProps as i } from "./context.js";
6
+ import { COMPONENT_INFO_DEVELOPMENT as n } from "../utils/names.js";
7
+ import { defaultProps as r } from "./constants.js";
8
+ import { PropsContext as i } from "./context.js";
8
9
  import { forwardRef as a, useContext as o, useImperativeHandle as s, useMemo as c, useRef as l } from "react";
9
10
  import u from "@unicom-cloud/utils/class-name";
10
11
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
11
12
  import p from "@unicom-cloud/icons/IconFluentHourglassNotDone";
12
13
  // components/common/development/Development.tsx
13
14
  function m(n, a) {
14
- let m = o(r), { url: h, imgClassName: g, icon: _, iconClassName: v, label: y = "等待开发", tip: b = y, labelClassName: x, style: S, className: C } = e({
15
+ let m = o(i), { url: h, imgClassName: g, icon: _, iconClassName: v, label: y = "等待开发", tip: b = y, labelClassName: x, style: S, className: C } = e({
15
16
  internalProps: n,
16
17
  contextProps: m,
17
18
  globalProps: {},
18
- defaultProps: i
19
+ defaultProps: r
19
20
  }), w = t("development"), T = c(() => h ? /* @__PURE__ */ d("img", {
20
21
  className: u(`${w}-img`, g),
21
22
  src: h,