@unicom-cloud/ui-common 0.1.29 → 0.1.31

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 (395) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/animation/Animation.d.ts +9 -0
  3. package/animation/Animation.js +63 -0
  4. package/animation/constants.d.ts +1 -0
  5. package/animation/constants.js +7 -0
  6. package/animation/context.d.ts +5 -0
  7. package/animation/context.js +7 -0
  8. package/animation/index.d.ts +17 -0
  9. package/animation/index.js +14 -0
  10. package/animation/interface.d.ts +11 -0
  11. package/animation/style/index.css +1 -0
  12. package/animation/style/index.d.ts +1 -0
  13. package/animation/style/index.js +3 -0
  14. package/border-beam/BorderBeam.js +30 -30
  15. package/border-beam/Effect.js +1 -1
  16. package/border-beam/constants.js +2 -2
  17. package/border-beam/context.d.ts +3 -0
  18. package/border-beam/context.js +8 -0
  19. package/border-beam/hooks/useBorderSize.js +1 -1
  20. package/border-beam/hooks/useChildDom.js +1 -1
  21. package/border-beam/index.d.ts +2 -0
  22. package/border-beam/index.js +9 -4
  23. package/border-beam/style/index.css +1 -0
  24. package/border-beam/style/index.d.ts +1 -0
  25. package/border-beam/style/index.js +3 -0
  26. package/border-beam/utils.js +1 -1
  27. package/development/Development.js +32 -30
  28. package/development/constants.d.ts +0 -0
  29. package/development/constants.js +2 -0
  30. package/development/context.d.ts +3 -0
  31. package/development/context.js +7 -0
  32. package/development/index.d.ts +2 -0
  33. package/development/index.js +9 -4
  34. package/development/style/index.css +1 -0
  35. package/development/style/index.d.ts +1 -0
  36. package/development/style/index.js +3 -0
  37. package/empty/Empty.js +32 -30
  38. package/empty/constants.d.ts +0 -0
  39. package/empty/constants.js +2 -0
  40. package/empty/context.d.ts +3 -0
  41. package/empty/context.js +7 -0
  42. package/empty/index.d.ts +2 -0
  43. package/empty/index.js +9 -4
  44. package/empty/style/index.css +1 -0
  45. package/empty/style/index.d.ts +1 -0
  46. package/empty/style/index.js +3 -0
  47. package/flex/Flex.js +32 -35
  48. package/flex/constants.d.ts +0 -0
  49. package/flex/constants.js +2 -0
  50. package/flex/context.d.ts +3 -0
  51. package/flex/context.js +10 -0
  52. package/flex/index.d.ts +2 -0
  53. package/flex/index.js +9 -6
  54. package/flex/style/index.css +1 -0
  55. package/flex/style/index.d.ts +1 -0
  56. package/flex/style/index.js +3 -0
  57. package/flex/utils.d.ts +1 -1
  58. package/flex/utils.js +1 -1
  59. package/higher-order/index.js +1 -1
  60. package/higher-order/with-speech-synthesis/constants.d.ts +0 -0
  61. package/higher-order/with-speech-synthesis/context.d.ts +3 -0
  62. package/higher-order/with-speech-synthesis/context.js +6 -0
  63. package/higher-order/with-speech-synthesis/index.d.ts +2 -0
  64. package/higher-order/with-speech-synthesis/index.js +9 -4
  65. package/higher-order/with-speech-synthesis/interface.d.ts +2 -1
  66. package/higher-order/with-speech-synthesis/style/index.css +1 -0
  67. package/higher-order/with-speech-synthesis/style/index.d.ts +0 -1
  68. package/higher-order/with-speech-synthesis/style/index.js +3 -0
  69. package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +52 -48
  70. package/hooks/create-deep-compare-effect/index.js +1 -1
  71. package/hooks/create-update-effect/index.js +1 -1
  72. package/hooks/create-use-storage-state/index.js +1 -1
  73. package/hooks/index.js +1 -1
  74. package/hooks/use-async-effect/index.js +1 -1
  75. package/hooks/use-boolean/index.js +1 -1
  76. package/hooks/use-click-away/index.js +1 -1
  77. package/hooks/use-computed-state/index.js +1 -1
  78. package/hooks/use-controllable-value/index.d.ts +1 -1
  79. package/hooks/use-controllable-value/index.js +1 -1
  80. package/hooks/use-cookie-state/index.js +1 -1
  81. package/hooks/use-count-down/index.js +1 -1
  82. package/hooks/use-counter/index.js +1 -1
  83. package/hooks/use-create/index.js +1 -1
  84. package/hooks/use-creation/index.js +1 -1
  85. package/hooks/use-debounce/index.js +1 -1
  86. package/hooks/use-debounce-effect/index.js +1 -1
  87. package/hooks/use-debounce-fn/index.js +1 -1
  88. package/hooks/use-deep-compare-effect/index.js +1 -1
  89. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  90. package/hooks/use-document-visibility/index.js +1 -1
  91. package/hooks/use-drag/index.js +1 -1
  92. package/hooks/use-drop/index.js +1 -1
  93. package/hooks/use-effect-event/index.js +1 -1
  94. package/hooks/use-event/index.js +1 -1
  95. package/hooks/use-event-emitter/index.js +1 -1
  96. package/hooks/use-event-listener/index.js +1 -1
  97. package/hooks/use-event-target/index.js +1 -1
  98. package/hooks/use-external/index.js +1 -1
  99. package/hooks/use-favicon/index.js +1 -1
  100. package/hooks/use-focus-within/index.js +1 -1
  101. package/hooks/use-force-update/index.js +1 -1
  102. package/hooks/use-fullscreen/index.js +1 -1
  103. package/hooks/use-get-state/index.d.ts +1 -1
  104. package/hooks/use-get-state/index.js +1 -1
  105. package/hooks/use-history-travel/index.js +1 -1
  106. package/hooks/use-hover/index.js +1 -1
  107. package/hooks/use-id/index.js +1 -1
  108. package/hooks/use-in-viewport/index.js +1 -1
  109. package/hooks/use-infinite-scroll/index.js +1 -1
  110. package/hooks/use-intersection-observer/index.js +1 -1
  111. package/hooks/use-intersection-observers/index.js +2 -2
  112. package/hooks/use-interval/index.js +1 -1
  113. package/hooks/use-is-first-render/index.js +1 -1
  114. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  115. package/hooks/use-key-press/index.js +1 -1
  116. package/hooks/use-keyboard-event/index.js +2 -2
  117. package/hooks/use-latest/index.js +1 -1
  118. package/hooks/use-listen-window-resize/index.js +1 -1
  119. package/hooks/use-local-storage-state/index.js +1 -1
  120. package/hooks/use-lock-fn/index.js +1 -1
  121. package/hooks/use-long-press/index.js +1 -1
  122. package/hooks/use-map/index.js +1 -1
  123. package/hooks/use-media/index.js +1 -1
  124. package/hooks/use-memo/index.js +1 -1
  125. package/hooks/use-memoized-fn/index.js +1 -1
  126. package/hooks/use-merge-props/index.d.ts +2 -2
  127. package/hooks/use-merge-props/index.js +4 -4
  128. package/hooks/use-merge-value/index.js +1 -1
  129. package/hooks/use-mobile/index.js +2 -2
  130. package/hooks/use-mount/index.js +1 -1
  131. package/hooks/use-mouse/index.js +1 -1
  132. package/hooks/use-move/index.js +1 -1
  133. package/hooks/use-mutation-observer/index.js +1 -1
  134. package/hooks/use-mutation-observers/index.js +2 -2
  135. package/hooks/use-network/index.js +1 -1
  136. package/hooks/use-online-status/index.js +1 -1
  137. package/hooks/use-overflow-hidden/index.d.ts +1 -1
  138. package/hooks/use-overflow-hidden/index.js +7 -4
  139. package/hooks/use-override-ref/index.js +1 -1
  140. package/hooks/use-pagination/index.js +1 -1
  141. package/hooks/use-paste-image/index.js +1 -1
  142. package/hooks/use-persist-callback/index.js +1 -1
  143. package/hooks/use-prefers-color-scheme-dark/index.js +2 -2
  144. package/hooks/use-previous/index.js +1 -1
  145. package/hooks/use-raf-interval/index.js +1 -1
  146. package/hooks/use-raf-state/index.d.ts +1 -1
  147. package/hooks/use-raf-state/index.js +1 -1
  148. package/hooks/use-raf-timeout/index.js +1 -1
  149. package/hooks/use-reactive/index.js +1 -1
  150. package/hooks/use-ref-latest/index.js +1 -1
  151. package/hooks/use-refs/index.js +1 -1
  152. package/hooks/use-request/index.js +1 -1
  153. package/hooks/use-request/src/Fetch.js +1 -1
  154. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  155. package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
  156. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  157. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
  158. package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
  159. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  160. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  161. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  162. package/hooks/use-request/src/useRequest.js +1 -1
  163. package/hooks/use-request/src/useRequestImplement.js +1 -1
  164. package/hooks/use-request/src/utils/cache.js +1 -1
  165. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  166. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  167. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  168. package/hooks/use-request/src/utils/isOnline.js +1 -1
  169. package/hooks/use-request/src/utils/limit.js +1 -1
  170. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  171. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  172. package/hooks/use-reset-state/index.d.ts +1 -1
  173. package/hooks/use-reset-state/index.js +1 -1
  174. package/hooks/use-resize-observer/index.js +1 -1
  175. package/hooks/use-resize-observers/index.js +2 -2
  176. package/hooks/use-responsive/index.js +1 -1
  177. package/hooks/use-safe-state/index.js +1 -1
  178. package/hooks/use-scroll/index.js +1 -1
  179. package/hooks/use-selections/index.js +1 -1
  180. package/hooks/use-session-storage-state/index.js +1 -1
  181. package/hooks/use-set/index.js +1 -1
  182. package/hooks/use-set-state/index.js +17 -17
  183. package/hooks/use-size/index.js +1 -1
  184. package/hooks/use-state-callback/index.d.ts +1 -1
  185. package/hooks/use-state-callback/index.js +1 -1
  186. package/hooks/use-state-with-promise/index.js +1 -1
  187. package/hooks/use-sync-state/index.js +1 -1
  188. package/hooks/use-text-selection/index.js +1 -1
  189. package/hooks/use-theme/index.js +1 -1
  190. package/hooks/use-throttle/index.js +1 -1
  191. package/hooks/use-throttle-effect/index.js +1 -1
  192. package/hooks/use-throttle-fn/index.js +1 -1
  193. package/hooks/use-timeout/index.js +1 -1
  194. package/hooks/use-title/index.js +1 -1
  195. package/hooks/use-toggle/index.js +1 -1
  196. package/hooks/use-tracked-effect/index.js +1 -1
  197. package/hooks/use-unmount/index.js +1 -1
  198. package/hooks/use-unmounted-ref/index.js +1 -1
  199. package/hooks/use-update/index.js +1 -1
  200. package/hooks/use-update-effect/index.js +1 -1
  201. package/hooks/use-update-layout-effect/index.js +1 -1
  202. package/hooks/use-url-state/index.js +1 -1
  203. package/hooks/use-virtual-list/index.js +1 -1
  204. package/hooks/use-watch/index.js +1 -1
  205. package/hooks/use-web-socket/index.js +1 -1
  206. package/hooks/use-why-did-you-update/index.js +1 -1
  207. package/hooks/use-window-size/index.js +1 -1
  208. package/hooks/utils/createEffectWithTarget.js +1 -1
  209. package/hooks/utils/depsAreSame.js +1 -1
  210. package/hooks/utils/depsEqual.js +1 -1
  211. package/hooks/utils/domTarget.js +1 -1
  212. package/hooks/utils/getDocumentOrShadow.js +1 -1
  213. package/hooks/utils/index.js +1 -1
  214. package/hooks/utils/isAppleDevice.d.ts +1 -1
  215. package/hooks/utils/isAppleDevice.js +2 -2
  216. package/hooks/utils/isBrowser.d.ts +1 -1
  217. package/hooks/utils/isBrowser.js +2 -2
  218. package/hooks/utils/isDev.js +1 -1
  219. package/hooks/utils/noop.d.ts +1 -1
  220. package/hooks/utils/rect.js +1 -1
  221. package/hooks/utils/useDeepCompareWithTarget.js +1 -1
  222. package/hooks/utils/useEffectWithTarget.js +1 -1
  223. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  224. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  225. package/icons/file/File.js +60 -0
  226. package/icons/file/constants.d.ts +0 -0
  227. package/icons/file/context.d.ts +3 -0
  228. package/icons/file/context.js +6 -0
  229. package/icons/file/index.d.ts +2 -0
  230. package/icons/file/index.js +9 -4
  231. package/icons/file/style/index.css +1 -0
  232. package/icons/file/style/index.d.ts +0 -1
  233. package/icons/file/style/index.js +3 -0
  234. package/index.d.ts +2 -0
  235. package/index.js +39 -35
  236. package/package.json +1 -1
  237. package/progress/Progress.js +2 -2
  238. package/progress/constants.d.ts +0 -0
  239. package/progress/constants.js +2 -0
  240. package/progress/index.d.ts +1 -28
  241. package/progress/index.js +5 -5
  242. package/progress/style/index.css +1 -0
  243. package/progress/style/index.d.ts +1 -0
  244. package/progress/style/index.js +3 -0
  245. package/resize-observer/Collection.js +1 -1
  246. package/resize-observer/ResizeObserver.js +19 -17
  247. package/resize-observer/SingleObserver.js +1 -1
  248. package/resize-observer/constants.d.ts +0 -0
  249. package/resize-observer/constants.js +2 -0
  250. package/resize-observer/context.d.ts +3 -0
  251. package/resize-observer/context.js +7 -0
  252. package/resize-observer/index.d.ts +2 -0
  253. package/resize-observer/index.js +9 -6
  254. package/resize-observer/observerUtil.js +1 -1
  255. package/resize-observer/style/index.d.ts +1 -0
  256. package/resize-observer/style/index.js +3 -0
  257. package/space/Space.js +44 -47
  258. package/space/constants.d.ts +0 -0
  259. package/space/constants.js +2 -0
  260. package/space/context.d.ts +3 -0
  261. package/space/context.js +10 -0
  262. package/space/index.d.ts +2 -0
  263. package/space/index.js +8 -5
  264. package/space/style/index.css +1 -0
  265. package/space/style/index.d.ts +1 -0
  266. package/space/style/index.js +3 -0
  267. package/style/animation.less +39 -0
  268. package/style/global.less +0 -25
  269. package/style/index.less +6 -3
  270. package/style/keyframes.less +0 -32
  271. package/style/transition.less +0 -63
  272. package/style/{variables.css → variables-css.less} +2 -0
  273. package/style.css +1 -2
  274. package/suspense-fallback-test/SuspenseFallbackTest.js +13 -10
  275. package/suspense-fallback-test/constants.d.ts +0 -0
  276. package/suspense-fallback-test/constants.js +2 -0
  277. package/suspense-fallback-test/context.d.ts +3 -0
  278. package/suspense-fallback-test/context.js +7 -0
  279. package/suspense-fallback-test/index.d.ts +2 -0
  280. package/suspense-fallback-test/index.js +9 -4
  281. package/suspense-fallback-test/style/index.css +1 -0
  282. package/suspense-fallback-test/style/index.d.ts +1 -0
  283. package/suspense-fallback-test/style/index.js +3 -0
  284. package/test.js +1 -1
  285. package/timer/Timer.js +28 -26
  286. package/timer/constants.d.ts +0 -0
  287. package/timer/constants.js +2 -0
  288. package/timer/context.d.ts +3 -0
  289. package/timer/context.js +7 -0
  290. package/timer/index.d.ts +2 -0
  291. package/timer/index.js +9 -4
  292. package/timer/style/index.css +1 -0
  293. package/timer/style/index.d.ts +1 -0
  294. package/timer/style/index.js +3 -0
  295. package/transition/Transition.d.ts +1 -0
  296. package/transition/Transition.js +46 -43
  297. package/transition/TransitionCSS.js +1 -1
  298. package/transition/TransitionGroup.js +1 -1
  299. package/transition/TransitionStyle.js +1 -1
  300. package/transition/constants.js +1 -1
  301. package/transition/context.d.ts +2 -0
  302. package/transition/context.js +5 -5
  303. package/transition/index.d.ts +3 -1
  304. package/transition/index.js +8 -6
  305. package/transition/style/index.css +1 -0
  306. package/transition/style/index.d.ts +1 -0
  307. package/transition/style/index.js +3 -0
  308. package/transition/utils.js +1 -1
  309. package/typewriter/Typewriter.js +35 -37
  310. package/typewriter/constants.d.ts +0 -0
  311. package/typewriter/constants.js +2 -0
  312. package/typewriter/context.d.ts +3 -0
  313. package/typewriter/context.js +10 -0
  314. package/typewriter/index.d.ts +2 -0
  315. package/typewriter/index.js +9 -4
  316. package/typewriter/style/index.css +1 -0
  317. package/typewriter/style/index.d.ts +1 -0
  318. package/typewriter/style/index.js +3 -0
  319. package/utils/callOrReturn.js +1 -1
  320. package/utils/callbackOriginRef.js +1 -1
  321. package/utils/caseName.js +1 -1
  322. package/utils/className.js +1 -1
  323. package/utils/{constant.d.ts → constants.d.ts} +1 -1
  324. package/utils/{constant.js → constants.js} +3 -3
  325. package/utils/copy.js +1 -1
  326. package/utils/css.js +1 -1
  327. package/utils/date.js +1 -1
  328. package/utils/dayjs.js +1 -1
  329. package/utils/document.d.ts +1 -0
  330. package/utils/document.js +3 -0
  331. package/utils/dom.d.ts +2 -2
  332. package/utils/dom.js +3 -3
  333. package/utils/emitter.js +1 -1
  334. package/utils/file.js +1 -1
  335. package/utils/fileRead.js +1 -1
  336. package/utils/fileToDataURL.js +1 -1
  337. package/utils/fillNBSP.js +1 -1
  338. package/utils/findRootElement.js +1 -1
  339. package/utils/findScrollParent.js +1 -1
  340. package/utils/getHighlightText.js +1 -1
  341. package/utils/getHotkeyHandler.js +1 -1
  342. package/utils/getScrollBarHeight.js +1 -1
  343. package/utils/getScrollBarSize.js +1 -1
  344. package/utils/getScrollBarWidth.js +1 -1
  345. package/utils/getStringLength.js +1 -1
  346. package/utils/include.js +1 -1
  347. package/utils/index.d.ts +1 -1
  348. package/utils/index.js +2 -2
  349. package/utils/intersectionObserver.js +1 -1
  350. package/utils/is.js +2 -2
  351. package/utils/keyboardCode.d.ts +2 -2
  352. package/utils/keyboardCode.js +3 -3
  353. package/utils/lodash.js +1 -1
  354. package/utils/math.js +1 -1
  355. package/utils/mergeProps.d.ts +1 -1
  356. package/utils/mergeProps.js +6 -4
  357. package/utils/mergedToString.js +1 -1
  358. package/utils/mutationObserver.js +1 -1
  359. package/utils/names.d.ts +13 -0
  360. package/utils/names.js +10 -4
  361. package/utils/object.js +1 -1
  362. package/utils/omit.js +1 -1
  363. package/utils/pad.js +1 -1
  364. package/utils/pick.js +1 -1
  365. package/utils/pinyin.js +1 -1
  366. package/utils/react19Adapter.js +1 -1
  367. package/utils/reactNode.js +1 -1
  368. package/utils/ref.js +1 -1
  369. package/utils/resizeObserver.js +2 -2
  370. package/utils/saveAs.js +1 -1
  371. package/utils/screenfull.js +1 -1
  372. package/utils/scrollIntoViewIfNeeded.js +1 -1
  373. package/utils/setCreateRoot.js +1 -1
  374. package/utils/setDarkTheme.d.ts +1 -1
  375. package/utils/setDarkTheme.js +3 -3
  376. package/utils/setDir.js +3 -3
  377. package/utils/setPrimaryColor.js +3 -3
  378. package/utils/setTheme.js +3 -3
  379. package/utils/string.d.ts +1 -1
  380. package/utils/string.js +2 -2
  381. package/utils/style.js +1 -1
  382. package/utils/throttleByRequestAnimationFrame.js +1 -1
  383. package/utils/tinycolor.js +1 -1
  384. package/utils/toArray.js +1 -1
  385. package/utils/tree.js +1 -1
  386. package/utils/tunnel.js +1 -1
  387. package/utils/tween.js +1 -1
  388. package/utils/uuid.js +1 -1
  389. package/utils/validate.js +1 -1
  390. package/utils/warning.js +2 -2
  391. package/version/index.js +8 -8
  392. package/.vite/license.md +0 -3
  393. package/.vite/manifest.json +0 -2707
  394. package/icons/file/IconFile.js +0 -56
  395. /package/icons/file/{IconFile.d.ts → File.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:23:21 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  //#region \0rolldown/runtime.js
3
3
  var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, r = Object.prototype.hasOwnProperty, i = (t, n) => {
4
4
  let r = {};
@@ -0,0 +1,9 @@
1
+ import type { AnimationProps } from './interface';
2
+ declare const Animation: import("react").ForwardRefExoticComponent<AnimationProps & import("react").RefAttributes<unknown>> & {
3
+ zh: string;
4
+ en: string;
5
+ displayName: string;
6
+ id: string;
7
+ };
8
+ export { Animation };
9
+ export default Animation;
@@ -0,0 +1,63 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ import { isFunction as e } from "../utils/is.js";
3
+ import t from "../hooks/use-create/index.js";
4
+ import n from "../hooks/use-update-effect/index.js";
5
+ import r from "../hooks/use-set-state/index.js";
6
+ import i from "../hooks/use-update-layout-effect/index.js";
7
+ import { defaults as a } from "../utils/lodash.js";
8
+ import o from "../hooks/use-is-first-render/index.js";
9
+ import s from "../utils/className.js";
10
+ import { ANIMATION_COMPONENT_INFO as c } from "../utils/names.js";
11
+ import l, { PropsContext as u, defaultProps as d } from "./context.js";
12
+ import { forwardRef as f, isValidElement as p, useContext as m, useEffect as h, useImperativeHandle as g, useLayoutEffect as _, useRef as v, useTransition as y } from "react";
13
+ import { UI_COMMON_PREFIX as b } from "@unicom-cloud/utils/constants/ui";
14
+ import { jsx as x } from "react/jsx-runtime";
15
+ //#region components/common/animation/Animation.tsx
16
+ var { setTimeout: S, clearTimeout: C, requestAnimationFrame: w, cancelAnimationFrame: T } = window;
17
+ function E(c, f) {
18
+ let S = m(u), C = `${b}-animation`, w = a({}, c, S, d), { style: T, className: E, children: D, name: O, onStart: k, onEnd: A, onIteration: j } = w;
19
+ t(() => {}), o(), v({});
20
+ let M = v(null), [N, P, F] = r(() => {}), [I, L] = y();
21
+ function R() {}
22
+ function z() {}
23
+ i(() => () => {}, []), _(() => () => {}, []), n(() => () => {}, []), h(() => () => {}, []), g(f, () => ({
24
+ start: R,
25
+ destroy: z,
26
+ getRootElement() {
27
+ return M.current;
28
+ }
29
+ }));
30
+ let B = D;
31
+ if (e(B) && (B = B(w, N)), p(B)) {
32
+ let { className: t } = B.props, n = s(t, O && [C, `${C}-${O}`], E);
33
+ B = /* @__PURE__ */ x(l.Provider, {
34
+ value: {
35
+ props: w,
36
+ name: O
37
+ },
38
+ children: /* @__PURE__ */ x("div", {
39
+ ref: M,
40
+ style: T,
41
+ className: n,
42
+ onAnimationStart: (t) => {
43
+ let n = k;
44
+ e(n) && n(t);
45
+ },
46
+ onAnimationEnd: (t) => {
47
+ let n = A;
48
+ e(n) && n(t);
49
+ },
50
+ onAnimationIteration: (t) => {
51
+ let n = j;
52
+ e(n) && n(t);
53
+ },
54
+ children: B
55
+ })
56
+ });
57
+ }
58
+ return B;
59
+ }
60
+ var D = Object.assign(f(E), { ...c });
61
+ //#endregion
62
+ export { D as Animation, D as default };
63
+ /* 独立思考,明辨是非 */
@@ -0,0 +1 @@
1
+ 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"];
@@ -0,0 +1,7 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ //#region components/common/animation/constants.ts
3
+ 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(".");
4
+ Object.freeze(e);
5
+ //#endregion
6
+ export { e as ANIMATION_NAMES };
7
+ /* 独立思考,明辨是非 */
@@ -0,0 +1,5 @@
1
+ import type { AnimationProps } from './interface';
2
+ export declare const defaultProps: Partial<AnimationProps>;
3
+ export declare const PropsContext: import("react").Context<Partial<AnimationProps>>;
4
+ declare const AnimationContext: import("react").Context<{}>;
5
+ export default AnimationContext;
@@ -0,0 +1,7 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ import { createContext as e } from "react";
3
+ //#region components/common/animation/context.ts
4
+ var t = {}, n = e(t), r = e({});
5
+ //#endregion
6
+ export { n as PropsContext, r as default, t as defaultProps };
7
+ /* 独立思考,明辨是非 */
@@ -0,0 +1,17 @@
1
+ import './style';
2
+ import { ANIMATION_NAMES } from './constants';
3
+ declare const Animation: import("react").ForwardRefExoticComponent<import("./interface").AnimationProps & import("react").RefAttributes<unknown>> & {
4
+ zh: string;
5
+ en: string;
6
+ displayName: string;
7
+ id: string;
8
+ } & {
9
+ PropsContext: import("react").Context<Partial<import("./interface").AnimationProps>>;
10
+ zh: string;
11
+ en: string;
12
+ displayName: string;
13
+ id: string;
14
+ };
15
+ export { ANIMATION_NAMES };
16
+ export default Animation;
17
+ export type * from './interface';
@@ -0,0 +1,14 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ import { ANIMATION_COMPONENT_INFO as e } from "../utils/names.js";
3
+ import "./style/index.js";
4
+ import { PropsContext as t } from "./context.js";
5
+ import { Animation as n } from "./Animation.js";
6
+ import { ANIMATION_NAMES as r } from "./constants.js";
7
+ //#region components/common/animation/index.ts
8
+ var i = Object.assign(n, {
9
+ ...e,
10
+ PropsContext: t
11
+ });
12
+ //#endregion
13
+ export { r as ANIMATION_NAMES, i as default };
14
+ /* 独立思考,明辨是非 */
@@ -0,0 +1,11 @@
1
+ import type { CSSProperties, PropsWithChildren } from 'react';
2
+ import { ANIMATION_NAMES } from './constants';
3
+ export interface AnimationProps extends PropsWithChildren {
4
+ style?: CSSProperties;
5
+ className?: string;
6
+ /** 动画的名字 */
7
+ name?: (typeof ANIMATION_NAMES)[number];
8
+ onStart?: (event: AnimationEvent) => void;
9
+ onEnd?: (event: AnimationEvent) => void;
10
+ onIteration?: (event: AnimationEvent) => void;
11
+ }
@@ -0,0 +1 @@
1
+ :root{--pqbc-animation-duration:1s}.pqbc-animation{animation-duration:var(--pqbc-animation-duration);animation-fill-mode:both}.pqbc-animation.infinite{animation-iteration-count:infinite}.pqbc-animation.faster{animation-duration:calc(var(--pqbc-animation-duration) / 2)}.pqbc-animation.fast{animation-duration:calc(var(--pqbc-animation-duration) * .8)}.pqbc-animation.slow{animation-duration:calc(var(--pqbc-animation-duration) * 2)}.pqbc-animation.slower{animation-duration:calc(var(--pqbc-animation-duration) * 3)}@media print,(prefers-reduced-motion:reduce){.pqbc-animation{transition-duration:1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important}.pqbc-animation[class*=out]{opacity:0}}@keyframes pqbc-keyframes-bounce{0%,20%,53%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translate(0,0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translateY(-30px)scaleY(1.1)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translateY(-15px)scaleY(1.05)}80%{transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translate(0,0)scaleY(.95)}90%{transform:translateY(-4px)scaleY(1.02)}}.pqbc-animation-bounce{transform-origin:bottom;animation-name:pqbc-keyframes-bounce}@keyframes pqbc-keyframes-flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.pqbc-animation-flash{animation-name:pqbc-keyframes-flash}@keyframes pqbc-keyframes-pulse{0%{transform:scale(1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scale(1)}}.pqbc-animation-pulse{animation-name:pqbc-keyframes-pulse;animation-timing-function:ease-in-out}@keyframes pqbc-keyframes-rubber-band{0%{transform:scale(1)}30%{transform:scale(1.25,.75)}40%{transform:scale(.75,1.25)}50%{transform:scale(1.15,.85)}65%{transform:scale(.95,1.05)}75%{transform:scale(1.05,.95)}to{transform:scale(1)}}.pqbc-animation-rubber-band{animation-name:pqbc-keyframes-rubber-band}@keyframes pqbc-keyframes-shake{0%,to{transform:translate(0,0)}10%,30%,50%,70%,90%{transform:translate(-10px)}20%,40%,60%,80%{transform:translate(10px)}}.pqbc-animation-shake{animation-name:pqbc-keyframes-shake}@keyframes pqbc-keyframes-shake-x{0%,to{transform:translate(0,0)}10%,30%,50%,70%,90%{transform:translate(-10px)}20%,40%,60%,80%{transform:translate(10px)}}.pqbc-animation-shake-x{animation-name:pqbc-keyframes-shake-x}@keyframes pqbc-keyframes-shake-y{0%,to{transform:translate(0,0)}10%,30%,50%,70%,90%{transform:translateY(-10px)}20%,40%,60%,80%{transform:translateY(10px)}}.pqbc-animation-shake-y{animation-name:pqbc-keyframes-shake-y}@keyframes pqbc-keyframes-head-shake{0%{transform:translate(0)}6.5%{transform:translate(-6px)rotateY(-9deg)}18.5%{transform:translate(5px)rotateY(7deg)}31.5%{transform:translate(-3px)rotateY(-5deg)}43.5%{transform:translate(2px)rotateY(3deg)}50%{transform:translate(0)}}.pqbc-animation-head-shake{animation-name:pqbc-keyframes-head-shake;animation-timing-function:ease-in-out}@keyframes pqbc-keyframes-swing{20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}to{transform:rotate(0)}}.pqbc-animation-swing{transform-origin:top;animation-name:pqbc-keyframes-swing}@keyframes pqbc-keyframes-tada{0%{transform:scale(1)}10%,20%{transform:scale3d(.9,.9,.9)rotate(-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1)rotate(3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1)rotate(-3deg)}to{transform:scale(1)}}.pqbc-animation-tada{animation-name:pqbc-keyframes-tada}@keyframes pqbc-keyframes-wobble{0%{transform:translate(0,0)}15%{transform:translate(-25%)rotate(-5deg)}30%{transform:translate(20%)rotate(3deg)}45%{transform:translate(-15%)rotate(-3deg)}60%{transform:translate(10%)rotate(2deg)}75%{transform:translate(-5%)rotate(-1deg)}to{transform:translate(0,0)}}.pqbc-animation-wobble{animation-name:pqbc-keyframes-wobble}@keyframes pqbc-keyframes-jello{0%,11.1%,to{transform:translate(0,0)}22.2%{transform:skew(-12.5deg)skewY(-12.5deg)}33.3%{transform:skew(6.25deg)skewY(6.25deg)}44.4%{transform:skew(-3.125deg)skewY(-3.125deg)}55.5%{transform:skew(1.5625deg)skewY(1.5625deg)}66.6%{transform:skew(-.78125deg)skewY(-.78125deg)}77.7%{transform:skew(.390625deg)skewY(.390625deg)}88.8%{transform:skew(-.195313deg)skewY(-.195313deg)}}.pqbc-animation-jello{transform-origin:50%;animation-name:pqbc-keyframes-jello}@keyframes pqbc-keyframes-heart-beat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}.pqbc-animation-heart-beat{animation-name:pqbc-keyframes-heart-beat;animation-duration:calc(var(--pqbc-animation-duration) * 1.3);animation-timing-function:ease-in-out}@keyframes pqbc-keyframes-back-in-down{0%{opacity:.7;transform:translateY(-1200px)scale(.7)}80%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:1;transform:scale(1)}}.pqbc-animation-back-in-down{animation-name:pqbc-keyframes-back-in-down}@keyframes pqbc-keyframes-back-in-left{0%{opacity:.7;transform:translate(-2000px)scale(.7)}80%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:1;transform:scale(1)}}.pqbc-animation-back-in-left{animation-name:pqbc-keyframes-back-in-left}@keyframes pqbc-keyframes-back-in-right{0%{opacity:.7;transform:translate(2000px)scale(.7)}80%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:1;transform:scale(1)}}.pqbc-animation-back-in-right{animation-name:pqbc-keyframes-back-in-right}@keyframes pqbc-keyframes-back-in-up{0%{opacity:.7;transform:translateY(1200px)scale(.7)}80%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:1;transform:scale(1)}}.pqbc-animation-back-in-up{animation-name:pqbc-keyframes-back-in-up}@keyframes pqbc-keyframes-back-out-down{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:.7;transform:translateY(700px)scale(.7)}}.pqbc-animation-back-out-down{animation-name:pqbc-keyframes-back-out-down}@keyframes pqbc-keyframes-back-out-left{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:.7;transform:translate(-2000px)scale(.7)}}.pqbc-animation-back-out-left{animation-name:pqbc-keyframes-back-out-left}@keyframes pqbc-keyframes-back-out-right{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:.7;transform:translate(2000px)scale(.7)}}.pqbc-animation-back-out-right{animation-name:pqbc-keyframes-back-out-right}@keyframes pqbc-keyframes-back-out-up{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:.7;transform:translateY(-700px)scale(.7)}}.pqbc-animation-back-out-up{animation-name:pqbc-keyframes-back-out-up}@keyframes pqbc-keyframes-bounce-in{0%,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scale(1)}}.pqbc-animation-bounce-in{animation-duration:calc(var(--pqbc-animation-duration) * .75);animation-name:pqbc-keyframes-bounce-in}@keyframes pqbc-keyframes-bounce-in-down{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translateY(-3000px)scaleY(3)}60%{opacity:1;transform:translateY(25px)scaleY(.9)}75%{transform:translateY(-10px)scaleY(.95)}90%{transform:translateY(5px)scaleY(.985)}to{transform:translate(0,0)}}.pqbc-animation-bounce-in-down{animation-name:pqbc-keyframes-bounce-in-down}@keyframes pqbc-keyframes-bounce-in-left{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate(-3000px)scaleX(3)}60%{opacity:1;transform:translate(25px)scaleX(1)}75%{transform:translate(-10px)scaleX(.98)}90%{transform:translate(5px)scaleX(.995)}to{transform:translate(0,0)}}.pqbc-animation-bounce-in-left{animation-name:pqbc-keyframes-bounce-in-left}@keyframes pqbc-keyframes-bounce-in-right{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate(3000px)scaleX(3)}60%{opacity:1;transform:translate(-25px)scaleX(1)}75%{transform:translate(10px)scaleX(.98)}90%{transform:translate(-5px)scaleX(.995)}to{transform:translate(0,0)}}.pqbc-animation-bounce-in-right{animation-name:pqbc-keyframes-bounce-in-right}@keyframes pqbc-keyframes-bounce-in-up{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translateY(3000px)scaleY(5)}60%{opacity:1;transform:translateY(-20px)scaleY(.9)}75%{transform:translateY(10px)scaleY(.95)}90%{transform:translateY(-5px)scaleY(.985)}to{transform:translate(0,0)}}.pqbc-animation-bounce-in-up{animation-name:pqbc-keyframes-bounce-in-up}@keyframes pqbc-keyframes-bounce-out{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}.pqbc-animation-bounce-out{animation-duration:calc(var(--pqbc-animation-duration) * .75);animation-name:pqbc-keyframes-bounce-out}@keyframes pqbc-keyframes-bounce-out-down{20%{transform:translateY(10px)scaleY(.985)}40%,45%{opacity:1;transform:translateY(-20px)scaleY(.9)}to{opacity:0;transform:translateY(2000px)scaleY(3)}}.pqbc-animation-bounce-out-down{animation-name:pqbc-keyframes-bounce-out-down}@keyframes pqbc-keyframes-bounce-out-left{20%{opacity:1;transform:translate(20px)scaleX(.9)}to{opacity:0;transform:translate(-2000px)scaleX(2)}}.pqbc-animation-bounce-out-left{animation-name:pqbc-keyframes-bounce-out-left}@keyframes pqbc-keyframes-bounce-out-right{20%{opacity:1;transform:translate(-20px)scaleX(.9)}to{opacity:0;transform:translate(2000px)scaleX(2)}}.pqbc-animation-bounce-out-right{animation-name:pqbc-keyframes-bounce-out-right}@keyframes pqbc-keyframes-bounce-out-up{20%{transform:translateY(-10px)scaleY(.985)}40%,45%{opacity:1;transform:translateY(20px)scaleY(.9)}to{opacity:0;transform:translateY(-2000px)scaleY(3)}}.pqbc-animation-bounce-out-up{animation-name:pqbc-keyframes-bounce-out-up}@keyframes pqbc-keyframes-fade-in{0%{opacity:0}to{opacity:1}}.pqbc-animation-fade-in{animation-name:pqbc-keyframes-fade-in}@keyframes pqbc-keyframes-fade-in-down{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-down{animation-name:pqbc-keyframes-fade-in-down}@keyframes pqbc-keyframes-fade-in-down-big{0%{opacity:0;transform:translateY(-2000px)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-down-big{animation-name:pqbc-keyframes-fade-in-down-big}@keyframes pqbc-keyframes-fade-in-left{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-left{animation-name:pqbc-keyframes-fade-in-left}@keyframes pqbc-keyframes-fade-in-left-big{0%{opacity:0;transform:translate(-2000px)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-left-big{animation-name:pqbc-keyframes-fade-in-left-big}@keyframes pqbc-keyframes-fade-in-right{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-right{animation-name:pqbc-keyframes-fade-in-right}@keyframes pqbc-keyframes-fade-in-right-big{0%{opacity:0;transform:translate(2000px)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-right-big{animation-name:pqbc-keyframes-fade-in-right-big}@keyframes pqbc-keyframes-fade-in-up{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-up{animation-name:pqbc-keyframes-fade-in-up}@keyframes pqbc-keyframes-fade-in-up-big{0%{opacity:0;transform:translateY(2000px)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-up-big{animation-name:pqbc-keyframes-fade-in-up-big}@keyframes pqbc-keyframes-fade-in-top-left{0%{opacity:0;transform:translate(-100%,-100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-top-left{animation-name:pqbc-keyframes-fade-in-top-left}@keyframes pqbc-keyframes-fade-in-top-right{0%{opacity:0;transform:translate(100%,-100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-top-right{animation-name:pqbc-keyframes-fade-in-top-right}@keyframes pqbc-keyframes-fade-in-bottom-left{0%{opacity:0;transform:translate(-100%,100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-bottom-left{animation-name:pqbc-keyframes-fade-in-bottom-left}@keyframes pqbc-keyframes-fade-in-bottom-right{0%{opacity:0;transform:translate(100%,100%)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-fade-in-bottom-right{animation-name:pqbc-keyframes-fade-in-bottom-right}@keyframes pqbc-keyframes-fade-out{0%{opacity:1}to{opacity:0}}.pqbc-animation-fade-out{animation-name:pqbc-keyframes-fade-out}@keyframes pqbc-keyframes-fade-out-down{0%{opacity:1}to{opacity:0;transform:translateY(100%)}}.pqbc-animation-fade-out-down{animation-name:pqbc-keyframes-fade-out-down}@keyframes pqbc-keyframes-fade-out-down-big{0%{opacity:1}to{opacity:0;transform:translateY(2000px)}}.pqbc-animation-fade-out-down-big{animation-name:pqbc-keyframes-fade-out-down-big}@keyframes pqbc-keyframes-fade-out-left{0%{opacity:1}to{opacity:0;transform:translate(-100%)}}.pqbc-animation-fade-out-left{animation-name:pqbc-keyframes-fade-out-left}@keyframes pqbc-keyframes-fade-out-left-big{0%{opacity:1}to{opacity:0;transform:translate(-2000px)}}.pqbc-animation-fade-out-left-big{animation-name:pqbc-keyframes-fade-out-left-big}@keyframes pqbc-keyframes-fade-out-right{0%{opacity:1}to{opacity:0;transform:translate(100%)}}.pqbc-animation-fade-out-right{animation-name:pqbc-keyframes-fade-out-right}@keyframes pqbc-keyframes-fade-out-right-big{0%{opacity:1}to{opacity:0;transform:translate(2000px)}}.pqbc-animation-fade-out-right-big{animation-name:pqbc-keyframes-fade-out-right-big}@keyframes pqbc-keyframes-fade-out-up{0%{opacity:1}to{opacity:0;transform:translateY(-100%)}}.pqbc-animation-fade-out-up{animation-name:pqbc-keyframes-fade-out-up}@keyframes pqbc-keyframes-fade-out-up-big{0%{opacity:1}to{opacity:0;transform:translateY(-2000px)}}.pqbc-animation-fade-out-up-big{animation-name:pqbc-keyframes-fade-out-up-big}@keyframes pqbc-keyframes-fade-out-top-left{0%{opacity:1;transform:translate(0,0)}to{opacity:0;transform:translate(-100%,-100%)}}.pqbc-animation-fade-out-top-left{animation-name:pqbc-keyframes-fade-out-top-left}@keyframes pqbc-keyframes-fade-out-top-right{0%{opacity:1;transform:translate(0,0)}to{opacity:0;transform:translate(100%,-100%)}}.pqbc-animation-fade-out-top-right{animation-name:pqbc-keyframes-fade-out-top-right}@keyframes pqbc-keyframes-fade-out-bottom-right{0%{opacity:1;transform:translate(0,0)}to{opacity:0;transform:translate(100%,100%)}}.pqbc-animation-fade-out-bottom-right{animation-name:pqbc-keyframes-fade-out-bottom-right}@keyframes pqbc-keyframes-fade-out-bottom-left{0%{opacity:1;transform:translate(0,0)}to{opacity:0;transform:translate(-100%,100%)}}.pqbc-animation-fade-out-bottom-left{animation-name:pqbc-keyframes-fade-out-bottom-left}@keyframes pqbc-keyframes-flip{0%{animation-timing-function:ease-out;transform:perspective(400px)scale(1)translate(0,0)rotateY(-360deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)scale(1)translateZ(150px)rotateY(-190deg)}50%{animation-timing-function:ease-in;transform:perspective(400px)scale(1)translateZ(150px)rotateY(-170deg)}80%{animation-timing-function:ease-in;transform:perspective(400px)scale3d(.95,.95,.95)translate(0,0)rotateY(0)}to{animation-timing-function:ease-in;transform:perspective(400px)scale(1)translate(0,0)rotateY(0)}}.pqbc-animation-flip{backface-visibility:visible;animation-name:pqbc-keyframes-flip}@keyframes pqbc-keyframes-flip-in-x{0%{opacity:0;animation-timing-function:ease-in;transform:perspective(400px)rotateX(90deg)}40%{animation-timing-function:ease-in;transform:perspective(400px)rotateX(-20deg)}60%{opacity:1;transform:perspective(400px)rotateX(10deg)}80%{transform:perspective(400px)rotateX(-5deg)}to{transform:perspective(400px)}}.pqbc-animation-flip-in-x{animation-name:pqbc-keyframes-flip-in-x;backface-visibility:visible!important}@keyframes pqbc-keyframes-flip-in-y{0%{opacity:0;animation-timing-function:ease-in;transform:perspective(400px)rotateY(90deg)}40%{animation-timing-function:ease-in;transform:perspective(400px)rotateY(-20deg)}60%{opacity:1;transform:perspective(400px)rotateY(10deg)}80%{transform:perspective(400px)rotateY(-5deg)}to{transform:perspective(400px)}}.pqbc-animation-flip-in-y{animation-name:pqbc-keyframes-flip-in-y;backface-visibility:visible!important}@keyframes pqbc-keyframes-flip-out-x{0%{transform:perspective(400px)}30%{opacity:1;transform:perspective(400px)rotateX(-20deg)}to{opacity:0;transform:perspective(400px)rotateX(90deg)}}.pqbc-animation-flip-out-x{animation-duration:calc(var(--pqbc-animation-duration) * .75);animation-name:pqbc-keyframes-flip-out-x;backface-visibility:visible!important}@keyframes pqbc-keyframes-flip-out-y{0%{transform:perspective(400px)}30%{opacity:1;transform:perspective(400px)rotateY(-15deg)}to{opacity:0;transform:perspective(400px)rotateY(90deg)}}.pqbc-animation-flip-out-y{animation-duration:calc(var(--pqbc-animation-duration) * .75);animation-name:pqbc-keyframes-flip-out-y;backface-visibility:visible!important}@keyframes pqbc-keyframes-light-speed-in-right{0%{opacity:0;transform:translate(100%)skew(-30deg)}60%{opacity:1;transform:skew(20deg)}80%{transform:skew(-5deg)}to{transform:translate(0,0)}}.pqbc-animation-light-speed-in-right{animation-name:pqbc-keyframes-light-speed-in-right;animation-timing-function:ease-out}@keyframes pqbc-keyframes-light-speed-in-left{0%{opacity:0;transform:translate(-100%)skew(30deg)}60%{opacity:1;transform:skew(-20deg)}80%{transform:skew(5deg)}to{transform:translate(0,0)}}.pqbc-animation-light-speed-in-left{animation-name:pqbc-keyframes-light-speed-in-left;animation-timing-function:ease-out}@keyframes pqbc-keyframes-light-speed-out-right{0%{opacity:1}to{opacity:0;transform:translate(100%)skew(30deg)}}.pqbc-animation-light-speed-out-right{animation-name:pqbc-keyframes-light-speed-out-right;animation-timing-function:ease-in}@keyframes pqbc-keyframes-light-speed-out-left{0%{opacity:1}to{opacity:0;transform:translate(-100%)skew(-30deg)}}.pqbc-animation-light-speed-out-left{animation-name:pqbc-keyframes-light-speed-out-left;animation-timing-function:ease-in}@keyframes pqbc-keyframes-rotate-in{0%{opacity:0;transform:rotate(-200deg)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-rotate-in{transform-origin:50%;animation-name:pqbc-keyframes-rotate-in}@keyframes pqbc-keyframes-rotate-in-down-left{0%{opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-rotate-in-down-left{transform-origin:0 100%;animation-name:pqbc-keyframes-rotate-in-down-left}@keyframes pqbc-keyframes-rotate-in-down-right{0%{opacity:0;transform:rotate(45deg)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-rotate-in-down-right{transform-origin:100% 100%;animation-name:pqbc-keyframes-rotate-in-down-right}@keyframes pqbc-keyframes-rotate-in-up-left{0%{opacity:0;transform:rotate(45deg)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-rotate-in-up-left{transform-origin:0 100%;animation-name:pqbc-keyframes-rotate-in-up-left}@keyframes pqbc-keyframes-rotate-in-up-right{0%{opacity:0;transform:rotate(-90deg)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-rotate-in-up-right{transform-origin:100% 100%;animation-name:pqbc-keyframes-rotate-in-up-right}@keyframes pqbc-keyframes-rotate-out{0%{opacity:1}to{opacity:0;transform:rotate(200deg)}}.pqbc-animation-rotate-out{transform-origin:50%;animation-name:pqbc-keyframes-rotate-out}@keyframes pqbc-keyframes-rotate-out-down-left{0%{opacity:1}to{opacity:0;transform:rotate(45deg)}}.pqbc-animation-rotate-out-down-left{transform-origin:0 100%;animation-name:pqbc-keyframes-rotate-out-down-left}@keyframes pqbc-keyframes-rotate-out-down-right{0%{opacity:1}to{opacity:0;transform:rotate(-45deg)}}.pqbc-animation-rotate-out-down-right{transform-origin:100% 100%;animation-name:pqbc-keyframes-rotate-out-down-right}@keyframes pqbc-keyframes-rotate-out-up-left{0%{opacity:1}to{opacity:0;transform:rotate(-45deg)}}.pqbc-animation-rotate-out-up-left{transform-origin:0 100%;animation-name:pqbc-keyframes-rotate-out-up-left}@keyframes pqbc-keyframes-rotate-out-up-right{0%{opacity:1}to{opacity:0;transform:rotate(90deg)}}.pqbc-animation-rotate-out-up-right{transform-origin:100% 100%;animation-name:pqbc-keyframes-rotate-out-up-right}@keyframes pqbc-keyframes-hinge{0%{animation-timing-function:ease-in-out}20%,60%{animation-timing-function:ease-in-out;transform:rotate(80deg)}40%,80%{opacity:1;animation-timing-function:ease-in-out;transform:rotate(60deg)}to{opacity:0;transform:translateY(700px)}}.pqbc-animation-hinge{animation-duration:calc(var(--pqbc-animation-duration) * 2);transform-origin:0 0;animation-name:pqbc-keyframes-hinge}@keyframes pqbc-keyframes-jack-in-the-box{0%{opacity:0;transform-origin:bottom;transform:scale(.1)rotate(30deg)}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{opacity:1;transform:scale(1)}}.pqbc-animation-jack-in-the-box{animation-name:pqbc-keyframes-jack-in-the-box}@keyframes pqbc-keyframes-roll-in{0%{opacity:0;transform:translate(-100%)rotate(-120deg)}to{opacity:1;transform:translate(0,0)}}.pqbc-animation-roll-in{animation-name:pqbc-keyframes-roll-in}@keyframes pqbc-keyframes-roll-out{0%{opacity:1}to{opacity:0;transform:translate(100%)rotate(120deg)}}.pqbc-animation-roll-out{animation-name:pqbc-keyframes-roll-out}@keyframes pqbc-keyframes-zoom-in{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}.pqbc-animation-zoom-in{animation-name:pqbc-keyframes-zoom-in}@keyframes pqbc-keyframes-zoom-in-down{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translateY(-1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translateY(60px)}}.pqbc-animation-zoom-in-down{animation-name:pqbc-keyframes-zoom-in-down}@keyframes pqbc-keyframes-zoom-in-left{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translate(-1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translate(10px)}}.pqbc-animation-zoom-in-left{animation-name:pqbc-keyframes-zoom-in-left}@keyframes pqbc-keyframes-zoom-in-right{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translate(1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translate(-10px)}}.pqbc-animation-zoom-in-right{animation-name:pqbc-keyframes-zoom-in-right}@keyframes pqbc-keyframes-zoom-in-up{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translateY(1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translateY(-60px)}}.pqbc-animation-zoom-in-up{animation-name:pqbc-keyframes-zoom-in-up}@keyframes pqbc-keyframes-zoom-out{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}.pqbc-animation-zoom-out{animation-name:pqbc-keyframes-zoom-out}@keyframes pqbc-keyframes-zoom-out-down{40%{opacity:1;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.475,.475,.475)translateY(-60px)}to{opacity:0;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.1,.1,.1)translateY(2000px)}}.pqbc-animation-zoom-out-down{transform-origin:bottom;animation-name:pqbc-keyframes-zoom-out-down}@keyframes pqbc-keyframes-zoom-out-left{40%{opacity:1;transform:scale3d(.475,.475,.475)translate(42px)}to{opacity:0;transform:scale(.1)translate(-2000px)}}.pqbc-animation-zoom-out-left{transform-origin:0;animation-name:pqbc-keyframes-zoom-out-left}@keyframes pqbc-keyframes-zoom-out-right{40%{opacity:1;transform:scale3d(.475,.475,.475)translate(-42px)}to{opacity:0;transform:scale(.1)translate(2000px)}}.pqbc-animation-zoom-out-right{transform-origin:100%;animation-name:pqbc-keyframes-zoom-out-right}@keyframes pqbc-keyframes-zoom-out-up{40%{opacity:1;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.475,.475,.475)translateY(60px)}to{opacity:0;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.1,.1,.1)translateY(-2000px)}}.pqbc-animation-zoom-out-up{transform-origin:bottom;animation-name:pqbc-keyframes-zoom-out-up}@keyframes pqbc-keyframes-slide-in-down{0%{visibility:visible;transform:translateY(-100%)}to{transform:translate(0,0)}}.pqbc-animation-slide-in-down{animation-name:pqbc-keyframes-slide-in-down}@keyframes pqbc-keyframes-slide-in-left{0%{visibility:visible;transform:translate(-100%)}to{transform:translate(0,0)}}.pqbc-animation-slide-in-left{animation-name:pqbc-keyframes-slide-in-left}@keyframes pqbc-keyframes-slide-in-right{0%{visibility:visible;transform:translate(100%)}to{transform:translate(0,0)}}.pqbc-animation-slide-in-right{animation-name:pqbc-keyframes-slide-in-right}@keyframes pqbc-keyframes-slide-in-up{0%{visibility:visible;transform:translateY(100%)}to{transform:translate(0,0)}}.pqbc-animation-slide-in-up{animation-name:pqbc-keyframes-slide-in-up}@keyframes pqbc-keyframes-slide-out-down{0%{transform:translate(0,0)}to{visibility:hidden;transform:translateY(100%)}}.pqbc-animation-slide-out-down{animation-name:pqbc-keyframes-slide-out-down}@keyframes pqbc-keyframes-slide-out-left{0%{transform:translate(0,0)}to{visibility:hidden;transform:translate(-100%)}}.pqbc-animation-slide-out-left{animation-name:pqbc-keyframes-slide-out-left}@keyframes pqbc-keyframes-slide-out-right{0%{transform:translate(0,0)}to{visibility:hidden;transform:translate(100%)}}.pqbc-animation-slide-out-right{animation-name:pqbc-keyframes-slide-out-right}@keyframes pqbc-keyframes-slide-out-up{0%{transform:translate(0,0)}to{visibility:hidden;transform:translateY(-100%)}}.pqbc-animation-slide-out-up{animation-name:pqbc-keyframes-slide-out-up}
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,3 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ /* empty css */
3
+ /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:23:21 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { isNonNullable as e, isString as t } from "../utils/is.js";
3
3
  import n from "../hooks/use-merge-props/index.js";
4
4
  import r from "../utils/className.js";
@@ -6,40 +6,40 @@ import { BORDER_BEAM_COMPONENT_INFO as i } from "../utils/names.js";
6
6
  import "../utils/index.js";
7
7
  import a from "./Effect.js";
8
8
  import { GRADIENT_PRESETS as o } from "./constants.js";
9
- import s from "./hooks/useBorderSize.js";
10
- import c from "./hooks/useChildDom.js";
11
- import { getBorderBeamGradient as l } from "./utils.js";
12
- import { forwardRef as u, useImperativeHandle as d, useMemo as f, useRef as p } from "react";
13
- import { UI_COMMON_PREFIX as m } from "@unicom-cloud/utils/constant/ui";
14
- import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
9
+ import { PropsContext as s, defaultProps as c } from "./context.js";
10
+ import l from "./hooks/useBorderSize.js";
11
+ import u from "./hooks/useChildDom.js";
12
+ import { getBorderBeamGradient as d } from "./utils.js";
13
+ import { forwardRef as f, useContext as p, useImperativeHandle as m, useMemo as h, useRef as g } from "react";
14
+ import { UI_COMMON_PREFIX as _ } from "@unicom-cloud/utils/constants/ui";
15
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
15
16
  //#region components/common/border-beam/BorderBeam.tsx
16
- var v = { gradientType: o[0].key };
17
- function y(i, u) {
18
- let { className: y, style: b, children: x, color: S, gradientType: C, outset: w, ...T } = n(i, v, {}), E = S;
19
- if (!E && C) {
20
- let e = o.find((e, t, n) => e.key === C);
21
- e && (E = e.color);
17
+ function x(i, f) {
18
+ let { className: x, style: S, children: C, color: w, gradientType: T, outset: E, ...D } = n(i, { ...p(s) }, c), O = w;
19
+ if (!O && T) {
20
+ let e = o.find((e, t, n) => e.key === T);
21
+ e && (O = e.color);
22
22
  }
23
- let D = `${m}-border-beam`, [O, k] = c(x), { borderWidth: A, borderRadius: j } = s(k), M = f(() => l(E), [E]), N = (e) => t(e) ? `calc(-1 * ${e})` : `${-1 * e}px`, P = f(() => e(w) ? N(w) : A.map(N).join(" "), [A, w]), F = {}, I = p(null);
24
- return d(u, () => ({ getRootElement() {
25
- return I.current;
26
- } })), /* @__PURE__ */ _(h, { children: [O, /* @__PURE__ */ g(a, {
27
- ref: I,
28
- prefixCls: D,
29
- hostDom: k,
30
- className: r(D, y),
23
+ let k = `${_}-border-beam`, [A, j] = u(C), { borderWidth: M, borderRadius: N } = l(j), P = h(() => d(O), [O]), F = (e) => t(e) ? `calc(-1 * ${e})` : `${-1 * e}px`, I = h(() => e(E) ? F(E) : M.map(F).join(" "), [M, E]), L = {}, R = g(null);
24
+ return m(f, () => ({ getRootElement() {
25
+ return R.current;
26
+ } })), /* @__PURE__ */ b(v, { children: [A, /* @__PURE__ */ y(a, {
27
+ ref: R,
28
+ prefixCls: k,
29
+ hostDom: j,
30
+ className: r(k, x),
31
31
  style: {
32
- ...F,
33
- ...b,
34
- ...M && { [`--${D}-gradient`]: M },
35
- [`--${D}-inset-offset`]: P,
36
- [`--${D}-border-radius`]: j
32
+ ...L,
33
+ ...S,
34
+ ...P && { [`--${k}-gradient`]: P },
35
+ [`--${k}-inset-offset`]: I,
36
+ [`--${k}-border-radius`]: N
37
37
  },
38
- ...T
38
+ ...D
39
39
  })] });
40
40
  }
41
- var b = u(y);
42
- b.displayName = i.displayName;
41
+ var S = f(x);
42
+ S.displayName = i.displayName;
43
43
  //#endregion
44
- export { b as default };
44
+ export { S as default };
45
45
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:23:21 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import e from "../utils/className.js";
3
3
  import { forwardRef as t } from "react";
4
4
  import { createPortal as n } from "react-dom";
@@ -1,5 +1,5 @@
1
- /* 潘启宝 2026-06-12 15:23:21 星期五 山东省济南市 */
2
- import { UI_COMMON_PREFIX as e, UI_MOBILE_PREFIX as t, UI_PC_PREFIX as n } from "@unicom-cloud/utils/constant/ui";
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ import { UI_COMMON_PREFIX as e, UI_MOBILE_PREFIX as t, UI_PC_PREFIX as n } from "@unicom-cloud/utils/constants/ui";
3
3
  //#region components/common/border-beam/constants.ts
4
4
  function r(r) {
5
5
  return `rgb(var(--${e}-${r},var(--${n}-${r},var(--${t}-${r}))))`;
@@ -0,0 +1,3 @@
1
+ import type { BorderBeamProps } from './interface';
2
+ export declare const defaultProps: Partial<BorderBeamProps>;
3
+ export declare const PropsContext: import("react").Context<Partial<BorderBeamProps>>;
@@ -0,0 +1,8 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ import { GRADIENT_PRESETS as e } from "./constants.js";
3
+ import { createContext as t } from "react";
4
+ //#region components/common/border-beam/context.ts
5
+ var n = { gradientType: e[0].key }, r = t(n);
6
+ //#endregion
7
+ export { r as PropsContext, n as defaultProps };
8
+ /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:23:21 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { useEffect as e, useState as t } from "react";
3
3
  //#region components/common/border-beam/hooks/useBorderSize.ts
4
4
  var n = {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:23:21 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { getNodeRef as e, supportRef as t, useComposeRef as n } from "../../utils/ref.js";
3
3
  import { getDOM as r } from "../../utils/dom.js";
4
4
  import "../../utils/index.js";
@@ -1,5 +1,7 @@
1
+ import './style';
1
2
  import { GRADIENT_PRESETS } from './constants';
2
3
  declare const BorderBeam: import("react").ForwardRefExoticComponent<import("./interface").BorderBeamProps & import("react").RefAttributes<unknown>> & {
4
+ PropsContext: import("react").Context<Partial<import("./interface").BorderBeamProps>>;
3
5
  zh: string;
4
6
  en: string;
5
7
  displayName: string;
@@ -1,9 +1,14 @@
1
- /* 潘启宝 2026-06-12 15:23:21 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { BORDER_BEAM_COMPONENT_INFO as e } from "../utils/names.js";
3
3
  import { GRADIENT_PRESETS as t } from "./constants.js";
4
- import n from "./BorderBeam.js";
4
+ import { PropsContext as n } from "./context.js";
5
+ import r from "./BorderBeam.js";
6
+ import "./style/index.js";
5
7
  //#region components/common/border-beam/index.ts
6
- var r = Object.assign(n, { ...e });
8
+ var i = Object.assign(r, {
9
+ ...e,
10
+ PropsContext: n
11
+ });
7
12
  //#endregion
8
- export { t as BORDER_BEAM_GRADIENT_PRESETS, r as default };
13
+ export { t as BORDER_BEAM_GRADIENT_PRESETS, i as default };
9
14
  /* 独立思考,明辨是非 */
@@ -0,0 +1 @@
1
+ .pqbc-border-beam{--pqbc-border-beam-gradient:linear-gradient(to left, rgb(var(--pqbc-primary-5,var(--pqb-primary-5,--pqbm-primary-5))) 0%, rgb(var(--pqbc-cyan-5,var(--pqb-cyan-5,--pqbm-cyan-5))) 36.4%, rgb(var(--pqbc-lime-5,var(--pqb-lime-5,--pqbm-lime-5))) 70%, transparent);--pqbc-border-beam-inset-offset:-1px -1px -1px -1px;--pqbc-border-beam-border-radius:8px;box-sizing:border-box;inset:var(--pqbc-border-beam-inset-offset,0);border-radius:var(--pqbc-border-beam-border-radius,0);z-index:1;pointer-events:none;padding:1px;display:none;position:absolute;overflow:hidden}@supports (mask-composite:exclude) or (-webkit-mask-composite:exclude) or (-webkit-mask-composite:xor){.pqbc-border-beam{mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);mask-position:0 0,0 0;mask-size:auto,auto;mask-repeat:repeat,repeat;mask-clip:content-box,border-box;mask-origin:content-box,border-box;mask-composite:exclude;mask-mode:match-source,match-source}@supports (offset-path:rect(0 auto auto 0 round 1px)){.pqbc-border-beam{display:block}.pqbc-border-beam:before{content:"";aspect-ratio:1;opacity:.95;background-image:var(--pqbc-border-beam-gradient,linear-gradient(to left, rgb(var(--pqbc-primary-6,var(--pqb-primary-6,--pqbm-primary-6))) 0%, rgba(var(--pqbc-primary-6,var(--pqb-primary-6,--pqbm-primary-6)), .7) 70%, transparent));offset-anchor:90%50%;offset-distance:0%;offset-path:rect(0 auto auto 0 round 100px);offset-rotate:auto;will-change:offset-distance;width:100px;animation-name:pqbc-border-beam-move;animation-duration:6s;animation-timing-function:linear;animation-iteration-count:infinite;position:absolute;top:0;left:0}@media (prefers-reduced-motion:reduce){.pqbc-border-beam:before{transition:none;animation:none}}}}@media (prefers-reduced-motion:reduce){.pqbc-border-beam:before{display:none}}@keyframes pqbc-border-beam-move{0%{offset-distance:0%}to{offset-distance:100%}}
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,3 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ /* empty css */
3
+ /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:23:21 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { isString as e } from "../utils/is.js";
3
3
  //#region components/common/border-beam/utils.ts
4
4
  var t = 70, n = (...e) => `linear-gradient(to left, ${e.join(", ")}, transparent)`, r = (t) => e(t) ? [{
@@ -1,37 +1,39 @@
1
- /* 潘启宝 2026-06-12 15:23:21 星期五 山东省济南市 */
2
- import { DEVELOPMENT_COMPONENT_INFO as e } from "../utils/names.js";
3
- import { forwardRef as t, useImperativeHandle as n, useMemo as r, useRef as i } from "react";
4
- import { UI_COMMON_PREFIX as a } from "@unicom-cloud/utils/constant/ui";
5
- import o from "@unicom-cloud/utils/class-name";
6
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
- import l from "@unicom-cloud/icons/IconFluentHourglassNotDone";
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ import e from "../hooks/use-merge-props/index.js";
3
+ import { DEVELOPMENT_COMPONENT_INFO as t } from "../utils/names.js";
4
+ import { PropsContext as n, defaultProps as r } from "./context.js";
5
+ import { forwardRef as i, useContext as a, useImperativeHandle as o, useMemo as s, useRef as c } from "react";
6
+ import { UI_COMMON_PREFIX as l } from "@unicom-cloud/utils/constants/ui";
7
+ import u from "@unicom-cloud/utils/class-name";
8
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
9
+ import p from "@unicom-cloud/icons/IconFluentHourglassNotDone";
8
10
  //#region components/common/development/Development.tsx
9
- function u(e, t) {
10
- let { url: u, imgClassName: d, icon: f, iconClassName: p, tip: m, label: h = "等待开发", labelClassName: g, style: _, className: v } = e, y = `${a}-development`, b = r(() => u ? /* @__PURE__ */ s("img", {
11
- className: o(`${y}-img`, d),
12
- src: u,
11
+ function m(t, i) {
12
+ let { url: m, imgClassName: h, icon: g, iconClassName: _, label: v = "等待开发", tip: y = v, labelClassName: b, style: x, className: S } = e(t, { ...a(n) }, r), C = `${l}-development`, w = s(() => m ? /* @__PURE__ */ d("img", {
13
+ className: u(`${C}-img`, h),
14
+ src: m,
13
15
  alt: "开发预览图"
14
- }) : f ?? /* @__PURE__ */ s(l, { className: o(`${y}-icon`, p) }), [
15
- u,
16
- y,
17
- d,
18
- f,
19
- p
20
- ]), x = m ?? h, S = i(null);
21
- return n(t, () => ({ getRootElement() {
22
- return S.current;
23
- } })), /* @__PURE__ */ c("div", {
24
- ref: S,
25
- style: { ..._ },
26
- className: o(y, v),
27
- children: [b, /* @__PURE__ */ s("div", {
28
- className: o(`${y}-label`, g),
29
- children: x
16
+ }) : g ?? /* @__PURE__ */ d(p, { className: u(`${C}-icon`, _) }), [
17
+ m,
18
+ C,
19
+ h,
20
+ g,
21
+ _
22
+ ]), T = c(null);
23
+ return o(i, () => ({ getRootElement() {
24
+ return T.current;
25
+ } })), /* @__PURE__ */ f("div", {
26
+ ref: T,
27
+ style: { ...x },
28
+ className: u(C, S),
29
+ children: [w, /* @__PURE__ */ d("div", {
30
+ className: u(`${C}-label`, b),
31
+ children: y
30
32
  })]
31
33
  });
32
34
  }
33
- var d = t(u);
34
- d.displayName = e.displayName;
35
+ var h = i(m);
36
+ h.displayName = t.displayName;
35
37
  //#endregion
36
- export { d as default };
38
+ export { h as default };
37
39
  /* 独立思考,明辨是非 */
File without changes
@@ -0,0 +1,2 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ /* 独立思考,明辨是非 */
@@ -0,0 +1,3 @@
1
+ import type { DevelopmentProps } from './interface';
2
+ export declare const defaultProps: Partial<DevelopmentProps>;
3
+ export declare const PropsContext: import("react").Context<Partial<DevelopmentProps>>;
@@ -0,0 +1,7 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ import { createContext as e } from "react";
3
+ //#region components/common/development/context.ts
4
+ var t = {}, n = e(t);
5
+ //#endregion
6
+ export { n as PropsContext, t as defaultProps };
7
+ /* 独立思考,明辨是非 */
@@ -1,4 +1,6 @@
1
+ import './style';
1
2
  declare const Development: import("react").ForwardRefExoticComponent<import("./interface").DevelopmentProps & import("react").RefAttributes<HTMLDivElement>> & {
3
+ PropsContext: import("react").Context<Partial<import("./interface").DevelopmentProps>>;
2
4
  zh: string;
3
5
  en: string;
4
6
  displayName: string;
@@ -1,8 +1,13 @@
1
- /* 潘启宝 2026-06-12 15:23:21 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { DEVELOPMENT_COMPONENT_INFO as e } from "../utils/names.js";
3
- import t from "./Development.js";
3
+ import "./style/index.js";
4
+ import { PropsContext as t } from "./context.js";
5
+ import n from "./Development.js";
4
6
  //#region components/common/development/index.ts
5
- var n = Object.assign(t, { ...e });
7
+ var r = Object.assign(n, {
8
+ ...e,
9
+ PropsContext: t
10
+ });
6
11
  //#endregion
7
- export { n as default };
12
+ export { r as default };
8
13
  /* 独立思考,明辨是非 */
@@ -0,0 +1 @@
1
+ .pqbc-development{flex-direction:column;justify-content:center;align-items:center;gap:10px;width:100%;height:100%;min-height:300px;display:flex}.pqbc-development .pqbc-development-icon,.pqbc-development .pqbc-development-img{width:50px;height:50px}.pqbc-development-label{--color-neutral:#868788;color:var(--pqbc-color-neutral-6,var(--pqb-color-neutral-6,var(--pqbm-color-neutral-6,--color-neutral)));font-size:20px}
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,3 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ /* empty css */
3
+ /* 独立思考,明辨是非 */