@unicom-cloud/ui-common 0.1.30 → 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 (381) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/animation/Animation.js +32 -32
  3. package/animation/constants.js +1 -1
  4. package/animation/context.d.ts +3 -0
  5. package/animation/context.js +3 -3
  6. package/animation/index.d.ts +2 -0
  7. package/animation/index.js +10 -5
  8. package/animation/style/index.css +1 -0
  9. package/animation/style/index.d.ts +1 -0
  10. package/animation/style/index.js +3 -0
  11. package/border-beam/BorderBeam.js +30 -30
  12. package/border-beam/Effect.js +1 -1
  13. package/border-beam/constants.js +2 -2
  14. package/border-beam/context.d.ts +3 -0
  15. package/border-beam/context.js +8 -0
  16. package/border-beam/hooks/useBorderSize.js +1 -1
  17. package/border-beam/hooks/useChildDom.js +1 -1
  18. package/border-beam/index.d.ts +2 -0
  19. package/border-beam/index.js +9 -4
  20. package/border-beam/style/index.css +1 -0
  21. package/border-beam/style/index.d.ts +1 -0
  22. package/border-beam/style/index.js +3 -0
  23. package/border-beam/utils.js +1 -1
  24. package/development/Development.js +32 -30
  25. package/development/constants.d.ts +0 -0
  26. package/development/constants.js +2 -0
  27. package/development/context.d.ts +3 -0
  28. package/development/context.js +7 -0
  29. package/development/index.d.ts +2 -0
  30. package/development/index.js +9 -4
  31. package/development/style/index.css +1 -0
  32. package/development/style/index.d.ts +1 -0
  33. package/development/style/index.js +3 -0
  34. package/empty/Empty.js +32 -30
  35. package/empty/constants.d.ts +0 -0
  36. package/empty/constants.js +2 -0
  37. package/empty/context.d.ts +3 -0
  38. package/empty/context.js +7 -0
  39. package/empty/index.d.ts +2 -0
  40. package/empty/index.js +9 -4
  41. package/empty/style/index.css +1 -0
  42. package/empty/style/index.d.ts +1 -0
  43. package/empty/style/index.js +3 -0
  44. package/flex/Flex.js +32 -35
  45. package/flex/constants.d.ts +0 -0
  46. package/flex/constants.js +2 -0
  47. package/flex/context.d.ts +3 -0
  48. package/flex/context.js +10 -0
  49. package/flex/index.d.ts +2 -0
  50. package/flex/index.js +9 -6
  51. package/flex/style/index.css +1 -0
  52. package/flex/style/index.d.ts +1 -0
  53. package/flex/style/index.js +3 -0
  54. package/flex/utils.d.ts +1 -1
  55. package/flex/utils.js +1 -1
  56. package/higher-order/index.js +1 -1
  57. package/higher-order/with-speech-synthesis/constants.d.ts +0 -0
  58. package/higher-order/with-speech-synthesis/context.d.ts +3 -0
  59. package/higher-order/with-speech-synthesis/context.js +6 -0
  60. package/higher-order/with-speech-synthesis/index.d.ts +2 -0
  61. package/higher-order/with-speech-synthesis/index.js +9 -4
  62. package/higher-order/with-speech-synthesis/interface.d.ts +2 -1
  63. package/higher-order/with-speech-synthesis/style/index.css +1 -0
  64. package/higher-order/with-speech-synthesis/style/index.d.ts +0 -1
  65. package/higher-order/with-speech-synthesis/style/index.js +3 -0
  66. package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +52 -48
  67. package/hooks/create-deep-compare-effect/index.js +1 -1
  68. package/hooks/create-update-effect/index.js +1 -1
  69. package/hooks/create-use-storage-state/index.js +1 -1
  70. package/hooks/index.js +1 -1
  71. package/hooks/use-async-effect/index.js +1 -1
  72. package/hooks/use-boolean/index.js +1 -1
  73. package/hooks/use-click-away/index.js +1 -1
  74. package/hooks/use-computed-state/index.js +1 -1
  75. package/hooks/use-controllable-value/index.js +1 -1
  76. package/hooks/use-cookie-state/index.js +1 -1
  77. package/hooks/use-count-down/index.js +1 -1
  78. package/hooks/use-counter/index.js +1 -1
  79. package/hooks/use-create/index.js +1 -1
  80. package/hooks/use-creation/index.js +1 -1
  81. package/hooks/use-debounce/index.js +1 -1
  82. package/hooks/use-debounce-effect/index.js +1 -1
  83. package/hooks/use-debounce-fn/index.js +1 -1
  84. package/hooks/use-deep-compare-effect/index.js +1 -1
  85. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  86. package/hooks/use-document-visibility/index.js +1 -1
  87. package/hooks/use-drag/index.js +1 -1
  88. package/hooks/use-drop/index.js +1 -1
  89. package/hooks/use-effect-event/index.js +1 -1
  90. package/hooks/use-event/index.js +1 -1
  91. package/hooks/use-event-emitter/index.js +1 -1
  92. package/hooks/use-event-listener/index.js +1 -1
  93. package/hooks/use-event-target/index.js +1 -1
  94. package/hooks/use-external/index.js +1 -1
  95. package/hooks/use-favicon/index.js +1 -1
  96. package/hooks/use-focus-within/index.js +1 -1
  97. package/hooks/use-force-update/index.js +1 -1
  98. package/hooks/use-fullscreen/index.js +1 -1
  99. package/hooks/use-get-state/index.js +1 -1
  100. package/hooks/use-history-travel/index.js +1 -1
  101. package/hooks/use-hover/index.js +1 -1
  102. package/hooks/use-id/index.js +1 -1
  103. package/hooks/use-in-viewport/index.js +1 -1
  104. package/hooks/use-infinite-scroll/index.js +1 -1
  105. package/hooks/use-intersection-observer/index.js +1 -1
  106. package/hooks/use-intersection-observers/index.js +2 -2
  107. package/hooks/use-interval/index.js +1 -1
  108. package/hooks/use-is-first-render/index.js +1 -1
  109. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  110. package/hooks/use-key-press/index.js +1 -1
  111. package/hooks/use-keyboard-event/index.js +2 -2
  112. package/hooks/use-latest/index.js +1 -1
  113. package/hooks/use-listen-window-resize/index.js +1 -1
  114. package/hooks/use-local-storage-state/index.js +1 -1
  115. package/hooks/use-lock-fn/index.js +1 -1
  116. package/hooks/use-long-press/index.js +1 -1
  117. package/hooks/use-map/index.js +1 -1
  118. package/hooks/use-media/index.js +1 -1
  119. package/hooks/use-memo/index.js +1 -1
  120. package/hooks/use-memoized-fn/index.js +1 -1
  121. package/hooks/use-merge-props/index.d.ts +2 -2
  122. package/hooks/use-merge-props/index.js +4 -4
  123. package/hooks/use-merge-value/index.js +1 -1
  124. package/hooks/use-mobile/index.js +2 -2
  125. package/hooks/use-mount/index.js +1 -1
  126. package/hooks/use-mouse/index.js +1 -1
  127. package/hooks/use-move/index.js +1 -1
  128. package/hooks/use-mutation-observer/index.js +1 -1
  129. package/hooks/use-mutation-observers/index.js +2 -2
  130. package/hooks/use-network/index.js +1 -1
  131. package/hooks/use-online-status/index.js +1 -1
  132. package/hooks/use-overflow-hidden/index.d.ts +1 -1
  133. package/hooks/use-overflow-hidden/index.js +7 -4
  134. package/hooks/use-override-ref/index.js +1 -1
  135. package/hooks/use-pagination/index.js +1 -1
  136. package/hooks/use-paste-image/index.js +1 -1
  137. package/hooks/use-persist-callback/index.js +1 -1
  138. package/hooks/use-prefers-color-scheme-dark/index.js +2 -2
  139. package/hooks/use-previous/index.js +1 -1
  140. package/hooks/use-raf-interval/index.js +1 -1
  141. package/hooks/use-raf-state/index.js +1 -1
  142. package/hooks/use-raf-timeout/index.js +1 -1
  143. package/hooks/use-reactive/index.js +1 -1
  144. package/hooks/use-ref-latest/index.js +1 -1
  145. package/hooks/use-refs/index.js +1 -1
  146. package/hooks/use-request/index.js +1 -1
  147. package/hooks/use-request/src/Fetch.js +1 -1
  148. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  149. package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
  150. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  151. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
  152. package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
  153. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  154. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  155. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  156. package/hooks/use-request/src/useRequest.js +1 -1
  157. package/hooks/use-request/src/useRequestImplement.js +1 -1
  158. package/hooks/use-request/src/utils/cache.js +1 -1
  159. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  160. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  161. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  162. package/hooks/use-request/src/utils/isOnline.js +1 -1
  163. package/hooks/use-request/src/utils/limit.js +1 -1
  164. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  165. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  166. package/hooks/use-reset-state/index.js +1 -1
  167. package/hooks/use-resize-observer/index.js +1 -1
  168. package/hooks/use-resize-observers/index.js +2 -2
  169. package/hooks/use-responsive/index.js +1 -1
  170. package/hooks/use-safe-state/index.js +1 -1
  171. package/hooks/use-scroll/index.js +1 -1
  172. package/hooks/use-selections/index.js +1 -1
  173. package/hooks/use-session-storage-state/index.js +1 -1
  174. package/hooks/use-set/index.js +1 -1
  175. package/hooks/use-set-state/index.js +1 -1
  176. package/hooks/use-size/index.js +1 -1
  177. package/hooks/use-state-callback/index.js +1 -1
  178. package/hooks/use-state-with-promise/index.js +1 -1
  179. package/hooks/use-sync-state/index.js +1 -1
  180. package/hooks/use-text-selection/index.js +1 -1
  181. package/hooks/use-theme/index.js +1 -1
  182. package/hooks/use-throttle/index.js +1 -1
  183. package/hooks/use-throttle-effect/index.js +1 -1
  184. package/hooks/use-throttle-fn/index.js +1 -1
  185. package/hooks/use-timeout/index.js +1 -1
  186. package/hooks/use-title/index.js +1 -1
  187. package/hooks/use-toggle/index.js +1 -1
  188. package/hooks/use-tracked-effect/index.js +1 -1
  189. package/hooks/use-unmount/index.js +1 -1
  190. package/hooks/use-unmounted-ref/index.js +1 -1
  191. package/hooks/use-update/index.js +1 -1
  192. package/hooks/use-update-effect/index.js +1 -1
  193. package/hooks/use-update-layout-effect/index.js +1 -1
  194. package/hooks/use-url-state/index.js +1 -1
  195. package/hooks/use-virtual-list/index.js +1 -1
  196. package/hooks/use-watch/index.js +1 -1
  197. package/hooks/use-web-socket/index.js +1 -1
  198. package/hooks/use-why-did-you-update/index.js +1 -1
  199. package/hooks/use-window-size/index.js +1 -1
  200. package/hooks/utils/createEffectWithTarget.js +1 -1
  201. package/hooks/utils/depsAreSame.js +1 -1
  202. package/hooks/utils/depsEqual.js +1 -1
  203. package/hooks/utils/domTarget.js +1 -1
  204. package/hooks/utils/getDocumentOrShadow.js +1 -1
  205. package/hooks/utils/index.js +1 -1
  206. package/hooks/utils/isAppleDevice.d.ts +1 -1
  207. package/hooks/utils/isAppleDevice.js +2 -2
  208. package/hooks/utils/isBrowser.d.ts +1 -1
  209. package/hooks/utils/isBrowser.js +2 -2
  210. package/hooks/utils/isDev.js +1 -1
  211. package/hooks/utils/noop.d.ts +1 -1
  212. package/hooks/utils/rect.js +1 -1
  213. package/hooks/utils/useDeepCompareWithTarget.js +1 -1
  214. package/hooks/utils/useEffectWithTarget.js +1 -1
  215. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  216. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  217. package/icons/file/File.js +60 -0
  218. package/icons/file/constants.d.ts +0 -0
  219. package/icons/file/context.d.ts +3 -0
  220. package/icons/file/context.js +6 -0
  221. package/icons/file/index.d.ts +2 -0
  222. package/icons/file/index.js +9 -4
  223. package/icons/file/style/index.css +1 -0
  224. package/icons/file/style/index.d.ts +0 -1
  225. package/icons/file/style/index.js +3 -0
  226. package/index.js +2 -2
  227. package/package.json +1 -1
  228. package/progress/Progress.js +2 -2
  229. package/progress/constants.d.ts +0 -0
  230. package/progress/constants.js +2 -0
  231. package/progress/index.d.ts +1 -28
  232. package/progress/index.js +5 -5
  233. package/progress/style/index.css +1 -0
  234. package/progress/style/index.d.ts +1 -0
  235. package/progress/style/index.js +3 -0
  236. package/resize-observer/Collection.js +1 -1
  237. package/resize-observer/ResizeObserver.js +19 -17
  238. package/resize-observer/SingleObserver.js +1 -1
  239. package/resize-observer/constants.d.ts +0 -0
  240. package/resize-observer/constants.js +2 -0
  241. package/resize-observer/context.d.ts +3 -0
  242. package/resize-observer/context.js +7 -0
  243. package/resize-observer/index.d.ts +2 -0
  244. package/resize-observer/index.js +9 -6
  245. package/resize-observer/observerUtil.js +1 -1
  246. package/resize-observer/style/index.d.ts +1 -0
  247. package/resize-observer/style/index.js +3 -0
  248. package/space/Space.js +44 -47
  249. package/space/constants.d.ts +0 -0
  250. package/space/constants.js +2 -0
  251. package/space/context.d.ts +3 -0
  252. package/space/context.js +10 -0
  253. package/space/index.d.ts +2 -0
  254. package/space/index.js +8 -5
  255. package/space/style/index.css +1 -0
  256. package/space/style/index.d.ts +1 -0
  257. package/space/style/index.js +3 -0
  258. package/style/index.less +5 -1
  259. package/style/variables-css.less +5 -0
  260. package/style/variables.less +0 -4
  261. package/style.css +1 -2
  262. package/suspense-fallback-test/SuspenseFallbackTest.js +13 -10
  263. package/suspense-fallback-test/constants.d.ts +0 -0
  264. package/suspense-fallback-test/constants.js +2 -0
  265. package/suspense-fallback-test/context.d.ts +3 -0
  266. package/suspense-fallback-test/context.js +7 -0
  267. package/suspense-fallback-test/index.d.ts +2 -0
  268. package/suspense-fallback-test/index.js +9 -4
  269. package/suspense-fallback-test/style/index.css +1 -0
  270. package/suspense-fallback-test/style/index.d.ts +1 -0
  271. package/suspense-fallback-test/style/index.js +3 -0
  272. package/test.js +1 -1
  273. package/timer/Timer.js +28 -26
  274. package/timer/constants.d.ts +0 -0
  275. package/timer/constants.js +2 -0
  276. package/timer/context.d.ts +3 -0
  277. package/timer/context.js +7 -0
  278. package/timer/index.d.ts +2 -0
  279. package/timer/index.js +9 -4
  280. package/timer/style/index.css +1 -0
  281. package/timer/style/index.d.ts +1 -0
  282. package/timer/style/index.js +3 -0
  283. package/transition/Transition.d.ts +1 -0
  284. package/transition/Transition.js +46 -43
  285. package/transition/TransitionCSS.js +1 -1
  286. package/transition/TransitionGroup.js +1 -1
  287. package/transition/TransitionStyle.js +1 -1
  288. package/transition/constants.js +1 -1
  289. package/transition/context.d.ts +2 -0
  290. package/transition/context.js +5 -5
  291. package/transition/index.d.ts +3 -1
  292. package/transition/index.js +8 -6
  293. package/transition/style/index.css +1 -0
  294. package/transition/style/index.d.ts +1 -0
  295. package/transition/style/index.js +3 -0
  296. package/transition/utils.js +1 -1
  297. package/typewriter/Typewriter.js +35 -37
  298. package/typewriter/constants.d.ts +0 -0
  299. package/typewriter/constants.js +2 -0
  300. package/typewriter/context.d.ts +3 -0
  301. package/typewriter/context.js +10 -0
  302. package/typewriter/index.d.ts +2 -0
  303. package/typewriter/index.js +9 -4
  304. package/typewriter/style/index.css +1 -0
  305. package/typewriter/style/index.d.ts +1 -0
  306. package/typewriter/style/index.js +3 -0
  307. package/utils/callOrReturn.js +1 -1
  308. package/utils/callbackOriginRef.js +1 -1
  309. package/utils/caseName.js +1 -1
  310. package/utils/className.js +1 -1
  311. package/utils/{constant.d.ts → constants.d.ts} +1 -1
  312. package/utils/{constant.js → constants.js} +3 -3
  313. package/utils/copy.js +1 -1
  314. package/utils/css.js +1 -1
  315. package/utils/date.js +1 -1
  316. package/utils/dayjs.js +1 -1
  317. package/utils/document.d.ts +1 -0
  318. package/utils/document.js +3 -0
  319. package/utils/dom.js +1 -1
  320. package/utils/emitter.js +1 -1
  321. package/utils/file.js +1 -1
  322. package/utils/fileRead.js +1 -1
  323. package/utils/fileToDataURL.js +1 -1
  324. package/utils/fillNBSP.js +1 -1
  325. package/utils/findRootElement.js +1 -1
  326. package/utils/findScrollParent.js +1 -1
  327. package/utils/getHighlightText.js +1 -1
  328. package/utils/getHotkeyHandler.js +1 -1
  329. package/utils/getScrollBarHeight.js +1 -1
  330. package/utils/getScrollBarSize.js +1 -1
  331. package/utils/getScrollBarWidth.js +1 -1
  332. package/utils/getStringLength.js +1 -1
  333. package/utils/include.js +1 -1
  334. package/utils/index.d.ts +1 -1
  335. package/utils/index.js +2 -2
  336. package/utils/intersectionObserver.js +1 -1
  337. package/utils/is.js +2 -2
  338. package/utils/keyboardCode.d.ts +2 -2
  339. package/utils/keyboardCode.js +3 -3
  340. package/utils/lodash.js +1 -1
  341. package/utils/math.js +1 -1
  342. package/utils/mergeProps.d.ts +1 -1
  343. package/utils/mergeProps.js +6 -4
  344. package/utils/mergedToString.js +1 -1
  345. package/utils/mutationObserver.js +1 -1
  346. package/utils/names.d.ts +1 -0
  347. package/utils/names.js +2 -2
  348. package/utils/object.js +1 -1
  349. package/utils/omit.js +1 -1
  350. package/utils/pad.js +1 -1
  351. package/utils/pick.js +1 -1
  352. package/utils/pinyin.js +1 -1
  353. package/utils/react19Adapter.js +1 -1
  354. package/utils/reactNode.js +1 -1
  355. package/utils/ref.js +1 -1
  356. package/utils/resizeObserver.js +2 -2
  357. package/utils/saveAs.js +1 -1
  358. package/utils/screenfull.js +1 -1
  359. package/utils/scrollIntoViewIfNeeded.js +1 -1
  360. package/utils/setCreateRoot.js +1 -1
  361. package/utils/setDarkTheme.js +3 -3
  362. package/utils/setDir.js +3 -3
  363. package/utils/setPrimaryColor.js +3 -3
  364. package/utils/setTheme.js +3 -3
  365. package/utils/string.d.ts +1 -1
  366. package/utils/string.js +2 -2
  367. package/utils/style.js +1 -1
  368. package/utils/throttleByRequestAnimationFrame.js +1 -1
  369. package/utils/tinycolor.js +1 -1
  370. package/utils/toArray.js +1 -1
  371. package/utils/tree.js +1 -1
  372. package/utils/tunnel.js +1 -1
  373. package/utils/tween.js +1 -1
  374. package/utils/uuid.js +1 -1
  375. package/utils/validate.js +1 -1
  376. package/utils/warning.js +2 -2
  377. package/version/index.js +8 -8
  378. package/.vite/license.md +0 -3
  379. package/.vite/manifest.json +0 -2750
  380. package/icons/file/IconFile.js +0 -56
  381. /package/icons/file/{IconFile.d.ts → File.d.ts} +0 -0
@@ -1,14 +1,17 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
2
- import { SUSPENSE_FALLBACK_TEST_COMPONENT_INFO as e } from "../utils/names.js";
3
- import { forwardRef as t, lazy as n, useImperativeHandle as r, useMemo as i } from "react";
4
- import { jsx as a } from "react/jsx-runtime";
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ import e from "../hooks/use-merge-props/index.js";
3
+ import { SUSPENSE_FALLBACK_TEST_COMPONENT_INFO as t } from "../utils/names.js";
4
+ import { PropsContext as n, defaultProps as r } from "./context.js";
5
+ import { forwardRef as i, lazy as a, useContext as o, useImperativeHandle as s, useMemo as c } from "react";
6
+ import { jsx as l } from "react/jsx-runtime";
5
7
  //#region components/common/suspense-fallback-test/SuspenseFallbackTest.tsx
6
- function o(e, t) {
7
- let o = i(() => n(() => new Promise(() => {})), []);
8
- return r(t, () => ({})), /* @__PURE__ */ a(o, {});
8
+ function u(t, i) {
9
+ e(t, { ...o(n) }, r);
10
+ let u = c(() => a(() => new Promise(() => {})), []);
11
+ return s(i, () => ({})), /* @__PURE__ */ l(u, {});
9
12
  }
10
- var s = t(o);
11
- s.displayName = e.displayName;
13
+ var d = i(u);
14
+ d.displayName = t.displayName;
12
15
  //#endregion
13
- export { s as default };
16
+ export { d as default };
14
17
  /* 独立思考,明辨是非 */
File without changes
@@ -0,0 +1,2 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ /* 独立思考,明辨是非 */
@@ -0,0 +1,3 @@
1
+ import type { SuspenseFallbackTestProps } from './interface';
2
+ export declare const defaultProps: Partial<SuspenseFallbackTestProps>;
3
+ export declare const PropsContext: import("react").Context<object>;
@@ -0,0 +1,7 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ import { createContext as e } from "react";
3
+ //#region components/common/suspense-fallback-test/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 SuspenseFallbackTest: import("react").ForwardRefExoticComponent<object & import("react").RefAttributes<unknown>> & {
3
+ PropsContext: import("react").Context<object>;
2
4
  zh: string;
3
5
  en: string;
4
6
  displayName: string;
@@ -1,8 +1,13 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { SUSPENSE_FALLBACK_TEST_COMPONENT_INFO as e } from "../utils/names.js";
3
- import t from "./SuspenseFallbackTest.js";
3
+ import "./style/index.js";
4
+ import { PropsContext as t } from "./context.js";
5
+ import n from "./SuspenseFallbackTest.js";
4
6
  //#region components/common/suspense-fallback-test/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
+ import './index.less';
@@ -0,0 +1,3 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ /* empty css */
3
+ /* 独立思考,明辨是非 */
package/test.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  //#region components/common/test.js
3
3
  console.log("我是潘启宝");
4
4
  //#endregion
package/timer/Timer.js CHANGED
@@ -1,41 +1,43 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { isFunction as e } from "../utils/is.js";
3
- import { DAYJS_DEFAULT_FORMAT_WITH_TIME as t } from "../utils/constant.js";
4
- import n from "../utils/className.js";
5
- import { TIMER_COMPONENT_INFO as r } from "../utils/names.js";
3
+ import { DAYJS_DEFAULT_FORMAT_WITH_TIME as t } from "../utils/constants.js";
4
+ import n from "../hooks/use-merge-props/index.js";
5
+ import r from "../utils/className.js";
6
+ import { TIMER_COMPONENT_INFO as i } from "../utils/names.js";
6
7
  import "../utils/index.js";
7
- import { forwardRef as i, useEffect as a, useImperativeHandle as o, useRef as s, useState as c } from "react";
8
- import l from "dayjs";
9
- import { UI_COMMON_PREFIX as u } from "@unicom-cloud/utils/constant/ui";
10
- import { jsx as d } from "react/jsx-runtime";
8
+ import { PropsContext as a, defaultProps as o } from "./context.js";
9
+ import { forwardRef as s, useContext as c, useEffect as l, useImperativeHandle as u, useRef as d, useState as f } from "react";
10
+ import p from "dayjs";
11
+ import { UI_COMMON_PREFIX as m } from "@unicom-cloud/utils/constants/ui";
12
+ import { jsx as h } from "react/jsx-runtime";
11
13
  //#region components/common/timer/Timer.tsx
12
- function f(r, i) {
13
- let { style: f, className: p, format: m = `${t} dddd`, callback: h, ...g } = r, _ = `${u}-timer`, [v, y] = c({ time: b() });
14
- function b() {
15
- return l().format(m);
14
+ function g(i, s) {
15
+ let { style: g, className: _, format: v = `${t} dddd`, callback: y, ...b } = n(i, { ...c(a) }, o), x = `${m}-timer`, [S, C] = f({ time: w() });
16
+ function w() {
17
+ return p().format(v);
16
18
  }
17
- a(() => {
19
+ l(() => {
18
20
  let t = n();
19
- function n(r = b()) {
20
- return e(h) && h(r), window.requestAnimationFrame(() => {
21
- y({ time: r }), t = n();
21
+ function n(r = w()) {
22
+ return e(y) && y(r), window.requestAnimationFrame(() => {
23
+ C({ time: r }), t = n();
22
24
  });
23
25
  }
24
26
  return () => {
25
27
  window.cancelAnimationFrame(t);
26
28
  };
27
29
  }, []);
28
- let x = s(null);
29
- return o(i, () => ({ getRootElement() {
30
- return x.current;
31
- } })), /* @__PURE__ */ d("div", {
32
- ref: x,
33
- className: n(_, p),
34
- children: v.time
30
+ let T = d(null);
31
+ return u(s, () => ({ getRootElement() {
32
+ return T.current;
33
+ } })), /* @__PURE__ */ h("div", {
34
+ ref: T,
35
+ className: r(x, _),
36
+ children: S.time
35
37
  });
36
38
  }
37
- var p = i(f);
38
- p.displayName = r.displayName;
39
+ var _ = s(g);
40
+ _.displayName = i.displayName;
39
41
  //#endregion
40
- export { p as default };
42
+ export { _ as default };
41
43
  /* 独立思考,明辨是非 */
File without changes
@@ -0,0 +1,2 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ /* 独立思考,明辨是非 */
@@ -0,0 +1,3 @@
1
+ import type { TimerProps } from './interface';
2
+ export declare const defaultProps: Partial<TimerProps>;
3
+ export declare const PropsContext: import("react").Context<Partial<TimerProps>>;
@@ -0,0 +1,7 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ import { createContext as e } from "react";
3
+ //#region components/common/timer/context.ts
4
+ var t = {}, n = e(t);
5
+ //#endregion
6
+ export { n as PropsContext, t as defaultProps };
7
+ /* 独立思考,明辨是非 */
package/timer/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
+ import './style';
1
2
  declare const Timer: import("react").ForwardRefExoticComponent<import("./interface").TimerProps & import("react").RefAttributes<unknown>> & {
3
+ PropsContext: import("react").Context<Partial<import("./interface").TimerProps>>;
2
4
  zh: string;
3
5
  en: string;
4
6
  displayName: string;
package/timer/index.js CHANGED
@@ -1,8 +1,13 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { TIMER_COMPONENT_INFO as e } from "../utils/names.js";
3
- import t from "./Timer.js";
3
+ import "./style/index.js";
4
+ import { PropsContext as t } from "./context.js";
5
+ import n from "./Timer.js";
4
6
  //#region components/common/timer/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-timer-rtl{direction:rtl}
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,3 @@
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ /* empty css */
3
+ /* 独立思考,明辨是非 */
@@ -1,5 +1,6 @@
1
1
  import type { TransitionProps } from './interface';
2
2
  declare const Transition: import("react").ForwardRefExoticComponent<TransitionProps & import("react").RefAttributes<unknown>> & {
3
+ PropsContext: import("react").Context<Partial<TransitionProps>>;
3
4
  zh: string;
4
5
  en: string;
5
6
  displayName: string;
@@ -1,81 +1,81 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { isExist as e, isFunction as t, isNull as n, isUndefined as r } from "../utils/is.js";
3
3
  import i from "../hooks/use-latest/index.js";
4
4
  import a from "../hooks/use-memoized-fn/index.js";
5
5
  import o from "../hooks/use-create/index.js";
6
6
  import s from "../hooks/use-update-effect/index.js";
7
- import c from "../utils/findRootElement.js";
8
- import { forceReflow as ee } from "../utils/dom.js";
9
- import te from "../hooks/use-set-state/index.js";
10
- import l from "../hooks/use-update-layout-effect/index.js";
11
- import { defaults as ne } from "../utils/lodash.js";
7
+ import ee from "../utils/findRootElement.js";
8
+ import { forceReflow as te } from "../utils/dom.js";
9
+ import ne from "../hooks/use-set-state/index.js";
10
+ import c from "../hooks/use-update-layout-effect/index.js";
12
11
  import re from "../hooks/use-is-first-render/index.js";
13
- import { TRANSITION_COMPONENT_INFO as u } from "../utils/names.js";
14
- import { TRANSITION_ADD_END_LISTENER_KEY as d, TRANSITION_ALWAYS_MOUNTED_KEY as ie, TRANSITION_DEFAULT_PROPS as f, TRANSITION_DURATION_KEY as ae, TRANSITION_EVENT_MAP as p, TRANSITION_EVENT_NAME_KEY as oe, TRANSITION_MOUNT_ON_ENTER_KEY as se, TRANSITION_NEXT_PHASE_KEY as ce, TRANSITION_PHASE_APPEAR_DONE as le, TRANSITION_PHASE_APPEAR_KEY as m, TRANSITION_PHASE_APPEAR_START as h, TRANSITION_PHASE_ENTER_DONE as g, TRANSITION_PHASE_ENTER_KEY as _, TRANSITION_PHASE_ENTER_START as ue, TRANSITION_PHASE_EXIT_DONE as v, TRANSITION_PHASE_EXIT_KEY as y, TRANSITION_PHASE_EXIT_START as de, TRANSITION_UNMOUNT_ON_EXIT_KEY as fe } from "./constants.js";
15
- import { TransitionContext as pe, TransitionGroupContext as me } from "./context.js";
16
- import { isActivePhaseHandler as he, isAppearPhaseHandler as ge, isEnterPhaseHandler as _e, isExitDonePhaseHandler as ve, isExitPhaseHandler as b, transitionNormalizeDurations as ye } from "./utils.js";
12
+ import ie from "../hooks/use-merge-props/index.js";
13
+ import { TRANSITION_COMPONENT_INFO as l } from "../utils/names.js";
14
+ import { TRANSITION_ADD_END_LISTENER_KEY as u, TRANSITION_ALWAYS_MOUNTED_KEY as ae, TRANSITION_DURATION_KEY as oe, TRANSITION_EVENT_MAP as d, TRANSITION_EVENT_NAME_KEY as se, TRANSITION_MOUNT_ON_ENTER_KEY as ce, TRANSITION_NEXT_PHASE_KEY as f, TRANSITION_PHASE_APPEAR_DONE as p, TRANSITION_PHASE_APPEAR_KEY as m, TRANSITION_PHASE_APPEAR_START as le, TRANSITION_PHASE_ENTER_DONE as ue, TRANSITION_PHASE_ENTER_KEY as h, TRANSITION_PHASE_ENTER_START as g, TRANSITION_PHASE_EXIT_DONE as _, TRANSITION_PHASE_EXIT_KEY as v, TRANSITION_PHASE_EXIT_START as de, TRANSITION_UNMOUNT_ON_EXIT_KEY as fe } from "./constants.js";
15
+ import { PropsContext as y, TransitionContext as pe, TransitionGroupContext as me, defaultProps as he } from "./context.js";
16
+ import { isActivePhaseHandler as ge, isAppearPhaseHandler as _e, isEnterPhaseHandler as ve, isExitDonePhaseHandler as ye, isExitPhaseHandler as b, transitionNormalizeDurations as be } from "./utils.js";
17
17
  import { forwardRef as x, useContext as S, useDeferredValue as C, useEffect as w, useImperativeHandle as T, useLayoutEffect as E, useRef as D, useTransition as O } from "react";
18
18
  import { jsx as k } from "react/jsx-runtime";
19
19
  //#region components/common/transition/Transition.tsx
20
- var { setTimeout: A, clearTimeout: j, requestAnimationFrame: M, cancelAnimationFrame: N } = window, P = { ...f };
21
- function F(u, f) {
20
+ var { setTimeout: A, clearTimeout: j, requestAnimationFrame: M, cancelAnimationFrame: N } = window;
21
+ function P(l, x) {
22
22
  S(me);
23
- let x = ne({}, u, P), F = "hasShown", I = "refElement", { children: be, in: L, [m]: xe, [_]: Se, [y]: R, [ae]: Ce = 500, [ie]: we, [d]: Te, [se]: z, [fe]: B, [I]: Ee } = x;
23
+ let P = ie(l, { ...S(y) }, he), F = "hasShown", I = "refElement", { children: xe, in: L, [m]: Se, [h]: Ce, [v]: R, [oe]: we = 500, [ae]: Te, [u]: Ee, [ce]: z, [fe]: B, [I]: De } = P;
24
24
  o(() => {}), re();
25
- let V = D({ [F]: L }), H = V.current[F], U = we;
26
- "unmountOnExit" in x && !r(B) && (U = !B);
27
- let W = "mountOnEnter" in x && !r(z);
25
+ let V = D({ [F]: L }), H = V.current[F], U = Te;
26
+ "unmountOnExit" in P && !r(B) && (U = !B);
27
+ let W = "mountOnEnter" in P && !r(z);
28
28
  W && (H || (U = !z));
29
- let [G, De, Oe] = te(() => X(Y())), { phase: K, destroy: q } = G, J = C(q, q);
29
+ let [G, Oe, ke] = ne(() => X(Y())), { phase: K, destroy: q } = G, J = C(q, q);
30
30
  i(K);
31
- let [ke, Ae] = O();
31
+ let [Ae, je] = O();
32
32
  function Y() {
33
- let e = v;
34
- return L && (e = xe ? h : le), e;
33
+ let e = _;
34
+ return L && (e = Se ? le : p), e;
35
35
  }
36
36
  function X(e) {
37
37
  return {
38
38
  phase: e,
39
- destroy: je(e)
39
+ destroy: Me(e)
40
40
  };
41
41
  }
42
42
  function Z() {
43
- let { [I]: e } = x;
44
- return c(e);
43
+ let { [I]: e } = P;
44
+ return ee(e);
45
45
  }
46
- function je(e) {
47
- return U ? void 0 : ve(e);
46
+ function Me(e) {
47
+ return U ? void 0 : ye(e);
48
48
  }
49
49
  function Q(e) {
50
50
  if (e) {
51
51
  {
52
- let n = Z(), { onBeforePhaseChange: r } = x;
53
- t(r) && r(e, n), ee(n);
52
+ let n = Z(), { onBeforePhaseChange: r } = P;
53
+ t(r) && r(e, n), te(n);
54
54
  }
55
- De(X(e));
55
+ Oe(X(e));
56
56
  }
57
57
  }
58
- let Me = a((e = !!L) => {
58
+ let Ne = a((e = !!L) => {
59
59
  let t, n = b(K);
60
- e ? (V.current[F] = !0, n && (t = Se ? ue : g)) : n || (t = R ? de : v), Q(t || K);
60
+ e ? (V.current[F] = !0, n && (t = Ce ? g : ue)) : n || (t = R ? de : _), Q(t || K);
61
61
  });
62
62
  E(() => {
63
63
  if (!(W && !z && !H)) {
64
- let e = p[K]?.[oe], { [e]: n } = x;
64
+ let e = d[K]?.[se], { [e]: n } = P;
65
65
  t(n) && n(Z());
66
66
  }
67
67
  return () => {};
68
68
  }, [K]), s(() => {
69
- let { onAfterPhaseChange: e } = x;
69
+ let { onAfterPhaseChange: e } = P;
70
70
  return t(e) && e(K, Z()), () => {};
71
- }, [K]), l(() => (Me(L), () => {}), [L]), w(() => {
72
- let { [d]: e } = x, r = null, i = null, a = p[K]?.[ce];
73
- if (a && K !== a) if (he(K)) if (t(e)) e(K, (e = a) => {
71
+ }, [K]), c(() => (Ne(L), () => {}), [L]), w(() => {
72
+ let { [u]: e } = P, r = null, i = null, a = d[K]?.[f];
73
+ if (a && K !== a) if (ge(K)) if (t(e)) e(K, (e = a) => {
74
74
  Q(e || a);
75
75
  }, Z());
76
76
  else {
77
- let e = ye(Ce), t = e[_];
78
- t = ge(K) ? e[m] : _e(K) ? e[_] : b(K) ? e[y] : e[_], r = A((e = a) => {
77
+ let e = be(we), t = e[h];
78
+ t = _e(K) ? e[m] : ve(K) ? e[h] : b(K) ? e[v] : e[h], r = A((e = a) => {
79
79
  Q(e || a);
80
80
  }, t, a);
81
81
  }
@@ -85,18 +85,21 @@ function F(u, f) {
85
85
  return () => {
86
86
  n(r) || j(r), n(i) || N(i);
87
87
  };
88
- }, [K]), l(() => () => {}, []), E(() => () => {}, []), s(() => () => {}, []), w(() => () => {}, []), T(f, () => ({
89
- getState: Oe,
88
+ }, [K]), c(() => () => {}, []), E(() => () => {}, []), s(() => () => {}, []), w(() => () => {}, []), T(x, () => ({
89
+ getState: ke,
90
90
  getInitPhase: Y,
91
91
  getRootElement: Z
92
92
  }));
93
- let $ = be;
94
- return r(q) || (R ? L ? q && ($ = null) : J && ($ = null) : L || J && ($ = null)), t($) && ($ = $(x, G, K)), e($) && ($ = /* @__PURE__ */ k(pe.Provider, {
93
+ let $ = xe;
94
+ return r(q) || (R ? L ? q && ($ = null) : J && ($ = null) : L || J && ($ = null)), t($) && ($ = $(P, G, K)), e($) && ($ = /* @__PURE__ */ k(pe.Provider, {
95
95
  value: { phase: K },
96
96
  children: $
97
97
  })), $;
98
98
  }
99
- var I = Object.assign(x(F), { ...u });
99
+ var F = Object.assign(x(P), {
100
+ ...l,
101
+ PropsContext: y
102
+ });
100
103
  //#endregion
101
- export { I as Transition, I as default };
104
+ export { F as Transition, F as default };
102
105
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { isArray as e, isFunction as t, isPlainObject as n, isString as r, isStringAndExist as i } from "../utils/is.js";
3
3
  import { castArray as a } from "../utils/lodash.js";
4
4
  import o from "../utils/className.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { isNumber as e } from "../utils/is.js";
3
3
  import { getReactElementRef as t } from "../utils/ref.js";
4
4
  import { defaults as n } from "../utils/lodash.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { isEmpty as e, isFunction as t } from "../utils/is.js";
3
3
  import { TRANSITION_STYLE_COMPONENT_INFO as n } from "../utils/names.js";
4
4
  import { TRANSITION_PHASE_APPEAR_KEY as r } from "./constants.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  //#region components/common/transition/constants.ts
3
3
  var e = "mountOnEnter", t = "unmountOnExit", n = "alwaysMounted", r = "addEndListener", i = "duration", a = 500, o = "appear", s = "enter", c = "exit", l = /* @__PURE__ */ function(e) {
4
4
  return e.APPEAR_START = `${o}Start`, e.APPEAR_ACTIVE = `${o}Active`, e.APPEAR_DONE = `${o}Done`, e.ENTER_START = `${s}Start`, e.ENTER_ACTIVE = `${s}Active`, e.ENTER_DONE = `${s}Done`, e.EXIT_START = `${c}Start`, e.EXIT_ACTIVE = `${c}Active`, e.EXIT_DONE = `${c}Done`, e;
@@ -11,5 +11,7 @@ declare const TransitionGroupContext: import("react").Context<Partial<Transition
11
11
  declare const TransitionStyleContext: import("react").Context<{
12
12
  style?: CSSProperties;
13
13
  }>;
14
+ export declare const defaultProps: Omit<TransitionProps, 'children'>;
15
+ export declare const PropsContext: import("react").Context<Partial<TransitionProps>>;
14
16
  export { TransitionContext, TransitionCSS_Context, TransitionGroupContext, TransitionStyleContext, };
15
17
  export default TransitionContext;
@@ -1,8 +1,8 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
2
- import "./constants.js";
3
- import { createContext as e } from "react";
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
+ import { TRANSITION_DEFAULT_PROPS as e } from "./constants.js";
3
+ import { createContext as t } from "react";
4
4
  //#region components/common/transition/context.ts
5
- var t = e({}), n = e({}), r = e({}), i = e({});
5
+ var n = t({}), r = t({}), i = t({}), a = t({}), o = { ...e }, s = t(o);
6
6
  //#endregion
7
- export { n as TransitionCSS_Context, t as TransitionContext, t as default, r as TransitionGroupContext, i as TransitionStyleContext };
7
+ export { s as PropsContext, r as TransitionCSS_Context, n as TransitionContext, n as default, i as TransitionGroupContext, a as TransitionStyleContext, o as defaultProps };
8
8
  /* 独立思考,明辨是非 */
@@ -1,3 +1,4 @@
1
+ import './style';
1
2
  import { TRANSITION_CSS_CLASS_NAMES_SUFFIX, TRANSITION_DEFAULT_PROPS, TRANSITION_EVENT_MAP, TRANSITION_EVENT_NAME_KEY, TRANSITION_MOUNT_ON_ENTER_KEY, TRANSITION_NEXT_PHASE_KEY, TRANSITION_PHASE_APPEAR_ACTIVE, TRANSITION_PHASE_APPEAR_DONE, TRANSITION_PHASE_APPEAR_KEY, TRANSITION_PHASE_APPEAR_START, TRANSITION_PHASE_ENTER_ACTIVE, TRANSITION_PHASE_ENTER_DONE, TRANSITION_PHASE_ENTER_KEY, TRANSITION_PHASE_ENTER_START, TRANSITION_PHASE_EVENT_ON_ENTER_ACTIVE, TRANSITION_PHASE_EVENT_ON_ENTER_DONE, TRANSITION_PHASE_EVENT_ON_ENTER_START, TRANSITION_PHASE_EVENT_ON_EXIT_ACTIVE, TRANSITION_PHASE_EVENT_ON_EXIT_DONE, TRANSITION_PHASE_EVENT_ON_EXIT_START, TRANSITION_PHASE_EXIT_ACTIVE, TRANSITION_PHASE_EXIT_DONE, TRANSITION_PHASE_EXIT_KEY, TRANSITION_PHASE_EXIT_START, TRANSITION_UNMOUNT_ON_EXIT_KEY, TransitionPhase, TransitionPhaseEvent } from './constants';
2
3
  import { TransitionCSS_Context, TransitionContext, TransitionGroupContext, TransitionStyleContext } from './context';
3
4
  import type { TransitionCSS_ChildProps, TransitionCSS_ClassNames, TransitionCSS_ClassNamesObject, TransitionCSS_Props, TransitionDurationObjectType, TransitionDurationType, TransitionGroupProps, TransitionGroupVisibleElementProps, TransitionProps, TransitionState, TransitionStyleChildProps, TransitionStyleProps, TransitionStyleStyles } from './interface';
@@ -7,7 +8,6 @@ import TransitionGroup from './TransitionGroup';
7
8
  import TransitionStyle from './TransitionStyle';
8
9
  import { isActivePhaseHandler, isAppearActivePhaseHandler, isAppearDonePhaseHandler, isAppearPhaseHandler, isAppearStartPhaseHandler, isDonePhaseHandler, isEnterActivePhaseHandler, isEnterDonePhaseHandler, isEnterPhaseHandler, isEnterStartPhaseHandler, isExitActivePhaseHandler, isExitDonePhaseHandler, isExitPhaseHandler, isExitStartPhaseHandler, isStartPhaseHandler, transitionFallbackAppearToEnter, transitionNormalizeDurations } from './utils';
9
10
  export * from './constants';
10
- export * from './context';
11
11
  export * from './Transition';
12
12
  export * from './TransitionCSS';
13
13
  export * from './TransitionGroup';
@@ -15,11 +15,13 @@ export * from './TransitionStyle';
15
15
  export * from './utils';
16
16
  export { TRANSITION_CSS_CLASS_NAMES_SUFFIX, TRANSITION_DEFAULT_PROPS, TRANSITION_EVENT_MAP, TRANSITION_EVENT_NAME_KEY, TRANSITION_MOUNT_ON_ENTER_KEY, TRANSITION_NEXT_PHASE_KEY, TRANSITION_PHASE_APPEAR_ACTIVE, TRANSITION_PHASE_APPEAR_DONE, TRANSITION_PHASE_APPEAR_KEY, TRANSITION_PHASE_APPEAR_START, TRANSITION_PHASE_ENTER_ACTIVE, TRANSITION_PHASE_ENTER_DONE, TRANSITION_PHASE_ENTER_KEY, TRANSITION_PHASE_ENTER_START, TRANSITION_PHASE_EVENT_ON_ENTER_ACTIVE, TRANSITION_PHASE_EVENT_ON_ENTER_DONE, TRANSITION_PHASE_EVENT_ON_ENTER_START, TRANSITION_PHASE_EVENT_ON_EXIT_ACTIVE, TRANSITION_PHASE_EVENT_ON_EXIT_DONE, TRANSITION_PHASE_EVENT_ON_EXIT_START, TRANSITION_PHASE_EXIT_ACTIVE, TRANSITION_PHASE_EXIT_DONE, TRANSITION_PHASE_EXIT_KEY, TRANSITION_PHASE_EXIT_START, TRANSITION_UNMOUNT_ON_EXIT_KEY, Component as Transition, TransitionCSS, TransitionCSS_Context, TransitionContext, TransitionGroup, TransitionGroupContext, TransitionPhase, TransitionPhaseEvent, TransitionStyle, TransitionStyleContext, transitionFallbackAppearToEnter, isActivePhaseHandler as transitionIsActivePhaseHandler, isAppearActivePhaseHandler as transitionIsAppearActivePhaseHandler, isAppearDonePhaseHandler as transitionIsAppearDonePhaseHandler, isAppearPhaseHandler as transitionIsAppearPhaseHandler, isAppearStartPhaseHandler as transitionIsAppearStartPhaseHandler, isDonePhaseHandler as transitionIsDonePhaseHandler, isEnterActivePhaseHandler as transitionIsEnterActivePhaseHandler, isEnterDonePhaseHandler as transitionIsEnterDonePhaseHandler, isEnterPhaseHandler as transitionIsEnterPhaseHandler, isEnterStartPhaseHandler as transitionIsEnterStartPhaseHandler, isExitActivePhaseHandler as transitionIsExitActivePhaseHandler, isExitDonePhaseHandler as transitionIsExitDonePhaseHandler, isExitPhaseHandler as transitionIsExitPhaseHandler, isExitStartPhaseHandler as transitionIsExitStartPhaseHandler, isStartPhaseHandler as transitionIsStartPhaseHandler, transitionNormalizeDurations, };
17
17
  declare const Transition: import("react").ForwardRefExoticComponent<TransitionProps & import("react").RefAttributes<unknown>> & {
18
+ PropsContext: import("react").Context<Partial<TransitionProps>>;
18
19
  zh: string;
19
20
  en: string;
20
21
  displayName: string;
21
22
  id: string;
22
23
  } & {
24
+ PropsContext: import("react").Context<Partial<TransitionProps>>;
23
25
  CSS: import("react").NamedExoticComponent<Omit<TransitionProps, "children"> & {
24
26
  children: import("react").ReactElement<import("react").HTMLAttributes<HTMLElement>>;
25
27
  classNames: TransitionCSS_ClassNames;
@@ -1,19 +1,21 @@
1
- /* 潘启宝 2026-06-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { TRANSITION_COMPONENT_INFO as e } from "../utils/names.js";
3
- import { TRANSITION_ADD_END_LISTENER_KEY as t, TRANSITION_ALWAYS_MOUNTED_KEY as n, TRANSITION_CSS_CLASS_NAMES_SUFFIX as r, TRANSITION_DEFAULT_PROPS as ee, TRANSITION_DURATION_DEFAULT as i, TRANSITION_DURATION_KEY as a, TRANSITION_EVENT_MAP as o, TRANSITION_EVENT_NAME_KEY as s, TRANSITION_MOUNT_ON_ENTER_KEY as c, TRANSITION_NEXT_PHASE_KEY as l, TRANSITION_PHASE_APPEAR_ACTIVE as u, TRANSITION_PHASE_APPEAR_DONE as d, TRANSITION_PHASE_APPEAR_KEY as f, TRANSITION_PHASE_APPEAR_START as p, TRANSITION_PHASE_ENTER_ACTIVE as m, TRANSITION_PHASE_ENTER_DONE as h, TRANSITION_PHASE_ENTER_KEY as te, TRANSITION_PHASE_ENTER_START as ne, TRANSITION_PHASE_EVENT_ON_ENTER_ACTIVE as re, TRANSITION_PHASE_EVENT_ON_ENTER_DONE as ie, TRANSITION_PHASE_EVENT_ON_ENTER_START as g, TRANSITION_PHASE_EVENT_ON_EXIT_ACTIVE as _, TRANSITION_PHASE_EVENT_ON_EXIT_DONE as v, TRANSITION_PHASE_EVENT_ON_EXIT_START as y, TRANSITION_PHASE_EXIT_ACTIVE as b, TRANSITION_PHASE_EXIT_DONE as x, TRANSITION_PHASE_EXIT_KEY as S, TRANSITION_PHASE_EXIT_START as C, TRANSITION_UNMOUNT_ON_EXIT_KEY as w, TransitionPhase as T, TransitionPhaseEvent as E } from "./constants.js";
4
- import { TransitionCSS_Context as D, TransitionContext as O, TransitionGroupContext as k, TransitionStyleContext as A } from "./context.js";
5
- import { addSuffix as j, inArrayHandler as M, isActivePhaseHandler as N, isAppearActivePhaseHandler as P, isAppearDonePhaseHandler as F, isAppearPhaseHandler as I, isAppearStartPhaseHandler as L, isDonePhaseHandler as R, isEnterActivePhaseHandler as z, isEnterDonePhaseHandler as B, isEnterPhaseHandler as V, isEnterStartPhaseHandler as H, isExitActivePhaseHandler as U, isExitDonePhaseHandler as W, isExitPhaseHandler as G, isExitStartPhaseHandler as K, isStartPhaseHandler as q, transitionFallbackAppearToEnter as J, transitionNormalizeDurations as Y } from "./utils.js";
3
+ import "./style/index.js";
4
+ import { TRANSITION_ADD_END_LISTENER_KEY as t, TRANSITION_ALWAYS_MOUNTED_KEY as n, TRANSITION_CSS_CLASS_NAMES_SUFFIX as ee, TRANSITION_DEFAULT_PROPS as r, TRANSITION_DURATION_DEFAULT as i, TRANSITION_DURATION_KEY as a, TRANSITION_EVENT_MAP as o, TRANSITION_EVENT_NAME_KEY as s, TRANSITION_MOUNT_ON_ENTER_KEY as c, TRANSITION_NEXT_PHASE_KEY as l, TRANSITION_PHASE_APPEAR_ACTIVE as u, TRANSITION_PHASE_APPEAR_DONE as d, TRANSITION_PHASE_APPEAR_KEY as f, TRANSITION_PHASE_APPEAR_START as p, TRANSITION_PHASE_ENTER_ACTIVE as m, TRANSITION_PHASE_ENTER_DONE as h, TRANSITION_PHASE_ENTER_KEY as te, TRANSITION_PHASE_ENTER_START as ne, TRANSITION_PHASE_EVENT_ON_ENTER_ACTIVE as re, TRANSITION_PHASE_EVENT_ON_ENTER_DONE as ie, TRANSITION_PHASE_EVENT_ON_ENTER_START as g, TRANSITION_PHASE_EVENT_ON_EXIT_ACTIVE as _, TRANSITION_PHASE_EVENT_ON_EXIT_DONE as v, TRANSITION_PHASE_EVENT_ON_EXIT_START as y, TRANSITION_PHASE_EXIT_ACTIVE as b, TRANSITION_PHASE_EXIT_DONE as x, TRANSITION_PHASE_EXIT_KEY as S, TRANSITION_PHASE_EXIT_START as C, TRANSITION_UNMOUNT_ON_EXIT_KEY as w, TransitionPhase as T, TransitionPhaseEvent as E } from "./constants.js";
5
+ import { PropsContext as D, TransitionCSS_Context as O, TransitionContext as k, TransitionGroupContext as A, TransitionStyleContext as j } from "./context.js";
6
+ import { addSuffix as M, inArrayHandler as N, isActivePhaseHandler as P, isAppearActivePhaseHandler as F, isAppearDonePhaseHandler as I, isAppearPhaseHandler as L, isAppearStartPhaseHandler as R, isDonePhaseHandler as z, isEnterActivePhaseHandler as B, isEnterDonePhaseHandler as V, isEnterPhaseHandler as H, isEnterStartPhaseHandler as U, isExitActivePhaseHandler as W, isExitDonePhaseHandler as G, isExitPhaseHandler as K, isExitStartPhaseHandler as q, isStartPhaseHandler as J, transitionFallbackAppearToEnter as Y, transitionNormalizeDurations as ae } from "./utils.js";
6
7
  import { Transition as X } from "./Transition.js";
7
8
  import { TransitionCSS as Z } from "./TransitionCSS.js";
8
9
  import { TransitionGroup as Q } from "./TransitionGroup.js";
9
10
  import { TransitionStyle as $ } from "./TransitionStyle.js";
10
11
  //#region components/common/transition/index.ts
11
- var ae = Object.assign(X, {
12
+ var oe = Object.assign(X, {
12
13
  ...e,
14
+ PropsContext: D,
13
15
  CSS: Z,
14
16
  Group: Q,
15
17
  Style: $
16
18
  });
17
19
  //#endregion
18
- export { t as TRANSITION_ADD_END_LISTENER_KEY, n as TRANSITION_ALWAYS_MOUNTED_KEY, r as TRANSITION_CSS_CLASS_NAMES_SUFFIX, ee as TRANSITION_DEFAULT_PROPS, i as TRANSITION_DURATION_DEFAULT, a as TRANSITION_DURATION_KEY, o as TRANSITION_EVENT_MAP, s as TRANSITION_EVENT_NAME_KEY, c as TRANSITION_MOUNT_ON_ENTER_KEY, l as TRANSITION_NEXT_PHASE_KEY, u as TRANSITION_PHASE_APPEAR_ACTIVE, d as TRANSITION_PHASE_APPEAR_DONE, f as TRANSITION_PHASE_APPEAR_KEY, p as TRANSITION_PHASE_APPEAR_START, m as TRANSITION_PHASE_ENTER_ACTIVE, h as TRANSITION_PHASE_ENTER_DONE, te as TRANSITION_PHASE_ENTER_KEY, ne as TRANSITION_PHASE_ENTER_START, re as TRANSITION_PHASE_EVENT_ON_ENTER_ACTIVE, ie as TRANSITION_PHASE_EVENT_ON_ENTER_DONE, g as TRANSITION_PHASE_EVENT_ON_ENTER_START, _ as TRANSITION_PHASE_EVENT_ON_EXIT_ACTIVE, v as TRANSITION_PHASE_EVENT_ON_EXIT_DONE, y as TRANSITION_PHASE_EVENT_ON_EXIT_START, b as TRANSITION_PHASE_EXIT_ACTIVE, x as TRANSITION_PHASE_EXIT_DONE, S as TRANSITION_PHASE_EXIT_KEY, C as TRANSITION_PHASE_EXIT_START, w as TRANSITION_UNMOUNT_ON_EXIT_KEY, X as Transition, Z as TransitionCSS, D as TransitionCSS_Context, O as TransitionContext, Q as TransitionGroup, k as TransitionGroupContext, T as TransitionPhase, E as TransitionPhaseEvent, $ as TransitionStyle, A as TransitionStyleContext, j as addSuffix, ae as default, M as inArrayHandler, N as isActivePhaseHandler, P as isAppearActivePhaseHandler, F as isAppearDonePhaseHandler, I as isAppearPhaseHandler, L as isAppearStartPhaseHandler, R as isDonePhaseHandler, z as isEnterActivePhaseHandler, B as isEnterDonePhaseHandler, V as isEnterPhaseHandler, H as isEnterStartPhaseHandler, U as isExitActivePhaseHandler, W as isExitDonePhaseHandler, G as isExitPhaseHandler, K as isExitStartPhaseHandler, q as isStartPhaseHandler, J as transitionFallbackAppearToEnter, N as transitionIsActivePhaseHandler, P as transitionIsAppearActivePhaseHandler, F as transitionIsAppearDonePhaseHandler, I as transitionIsAppearPhaseHandler, L as transitionIsAppearStartPhaseHandler, R as transitionIsDonePhaseHandler, z as transitionIsEnterActivePhaseHandler, B as transitionIsEnterDonePhaseHandler, V as transitionIsEnterPhaseHandler, H as transitionIsEnterStartPhaseHandler, U as transitionIsExitActivePhaseHandler, W as transitionIsExitDonePhaseHandler, G as transitionIsExitPhaseHandler, K as transitionIsExitStartPhaseHandler, q as transitionIsStartPhaseHandler, Y as transitionNormalizeDurations };
20
+ export { t as TRANSITION_ADD_END_LISTENER_KEY, n as TRANSITION_ALWAYS_MOUNTED_KEY, ee as TRANSITION_CSS_CLASS_NAMES_SUFFIX, r as TRANSITION_DEFAULT_PROPS, i as TRANSITION_DURATION_DEFAULT, a as TRANSITION_DURATION_KEY, o as TRANSITION_EVENT_MAP, s as TRANSITION_EVENT_NAME_KEY, c as TRANSITION_MOUNT_ON_ENTER_KEY, l as TRANSITION_NEXT_PHASE_KEY, u as TRANSITION_PHASE_APPEAR_ACTIVE, d as TRANSITION_PHASE_APPEAR_DONE, f as TRANSITION_PHASE_APPEAR_KEY, p as TRANSITION_PHASE_APPEAR_START, m as TRANSITION_PHASE_ENTER_ACTIVE, h as TRANSITION_PHASE_ENTER_DONE, te as TRANSITION_PHASE_ENTER_KEY, ne as TRANSITION_PHASE_ENTER_START, re as TRANSITION_PHASE_EVENT_ON_ENTER_ACTIVE, ie as TRANSITION_PHASE_EVENT_ON_ENTER_DONE, g as TRANSITION_PHASE_EVENT_ON_ENTER_START, _ as TRANSITION_PHASE_EVENT_ON_EXIT_ACTIVE, v as TRANSITION_PHASE_EVENT_ON_EXIT_DONE, y as TRANSITION_PHASE_EVENT_ON_EXIT_START, b as TRANSITION_PHASE_EXIT_ACTIVE, x as TRANSITION_PHASE_EXIT_DONE, S as TRANSITION_PHASE_EXIT_KEY, C as TRANSITION_PHASE_EXIT_START, w as TRANSITION_UNMOUNT_ON_EXIT_KEY, X as Transition, Z as TransitionCSS, O as TransitionCSS_Context, k as TransitionContext, Q as TransitionGroup, A as TransitionGroupContext, T as TransitionPhase, E as TransitionPhaseEvent, $ as TransitionStyle, j as TransitionStyleContext, M as addSuffix, oe as default, N as inArrayHandler, P as isActivePhaseHandler, F as isAppearActivePhaseHandler, I as isAppearDonePhaseHandler, L as isAppearPhaseHandler, R as isAppearStartPhaseHandler, z as isDonePhaseHandler, B as isEnterActivePhaseHandler, V as isEnterDonePhaseHandler, H as isEnterPhaseHandler, U as isEnterStartPhaseHandler, W as isExitActivePhaseHandler, G as isExitDonePhaseHandler, K as isExitPhaseHandler, q as isExitStartPhaseHandler, J as isStartPhaseHandler, Y as transitionFallbackAppearToEnter, P as transitionIsActivePhaseHandler, F as transitionIsAppearActivePhaseHandler, I as transitionIsAppearDonePhaseHandler, L as transitionIsAppearPhaseHandler, R as transitionIsAppearStartPhaseHandler, z as transitionIsDonePhaseHandler, B as transitionIsEnterActivePhaseHandler, V as transitionIsEnterDonePhaseHandler, H as transitionIsEnterPhaseHandler, U as transitionIsEnterStartPhaseHandler, W as transitionIsExitActivePhaseHandler, G as transitionIsExitDonePhaseHandler, K as transitionIsExitPhaseHandler, q as transitionIsExitStartPhaseHandler, J as transitionIsStartPhaseHandler, ae as transitionNormalizeDurations };
19
21
  /* 独立思考,明辨是非 */
@@ -0,0 +1 @@
1
+ .pqbc-blink-appear-done,.pqbc-blink-enter-done,.pqbc-blink-exit-done{animation:.5s linear pqbc-keyframes-flash}.pqbc-blink-exit-done{animation-direction:reverse}.pqbc-fade-appear,.pqbc-fade-appear-active,.pqbc-fade-enter,.pqbc-fade-enter-active,.pqbc-fade-exit,.pqbc-fade-exit-active{transition:opacity .27s ease-out}.pqbc-fade-appear,.pqbc-fade-enter,.pqbc-fade-exit-active,.pqbc-fade-exit-done{opacity:0}.pqbc-fade-appear-active,.pqbc-fade-appear-done,.pqbc-fade-enter-active,.pqbc-fade-enter-done,.pqbc-fade-exit{opacity:1}.pqbc-scale-appear,.pqbc-scale-appear-active,.pqbc-scale-enter,.pqbc-scale-enter-active,.pqbc-scale-exit,.pqbc-scale-exit-active{transition:all .27s cubic-bezier(.3,1.3,.3,1)}.pqbc-scale-appear,.pqbc-scale-enter,.pqbc-scale-exit-active,.pqbc-scale-exit-done{transform:scale(0)}.pqbc-scale-appear-active,.pqbc-scale-enter-active,.pqbc-scale-appear-done,.pqbc-scale-enter-done,.pqbc-scale-exit{transform:scale(1)}
@@ -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-17 16:03:00 星期三 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
2
2
  import { isNullOrUndefined as e, isNumber as t, isPlainObject as n } from "../utils/is.js";
3
3
  import { TRANSITION_PHASE_APPEAR_ACTIVE as r, TRANSITION_PHASE_APPEAR_DONE as i, TRANSITION_PHASE_APPEAR_KEY as a, TRANSITION_PHASE_APPEAR_START as o, TRANSITION_PHASE_ENTER_ACTIVE as s, TRANSITION_PHASE_ENTER_DONE as c, TRANSITION_PHASE_ENTER_KEY as l, TRANSITION_PHASE_ENTER_START as u, TRANSITION_PHASE_EXIT_ACTIVE as d, TRANSITION_PHASE_EXIT_DONE as f, TRANSITION_PHASE_EXIT_KEY as p, TRANSITION_PHASE_EXIT_START as m } from "./constants.js";
4
4
  //#region components/common/transition/utils.ts