@unicom-cloud/ui-common 0.1.57 → 0.1.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (435) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/animation/Animation.js +41 -42
  3. package/animation/constants.d.ts +2 -0
  4. package/animation/constants.js +4 -4
  5. package/animation/context.d.ts +0 -1
  6. package/animation/context.js +3 -3
  7. package/animation/index.d.ts +0 -6
  8. package/animation/index.js +6 -10
  9. package/animation/interface.d.ts +1 -1
  10. package/animation/style/index.js +1 -1
  11. package/animation/utils.js +1 -1
  12. package/base/Base.js +1 -1
  13. package/base/constants.d.ts +2 -0
  14. package/base/constants.js +4 -1
  15. package/base/context.d.ts +0 -1
  16. package/base/context.js +3 -3
  17. package/base/index.js +1 -1
  18. package/base/style/index.js +1 -1
  19. package/base/utils.js +1 -1
  20. package/border-beam/BorderBeam.js +14 -14
  21. package/border-beam/Effect.d.ts +1 -6
  22. package/border-beam/Effect.js +13 -12
  23. package/border-beam/constants.d.ts +2 -1
  24. package/border-beam/constants.js +8 -3
  25. package/border-beam/context.d.ts +0 -1
  26. package/border-beam/context.js +4 -10
  27. package/border-beam/hooks/useBorderSize.d.ts +1 -5
  28. package/border-beam/hooks/useBorderSize.js +1 -1
  29. package/border-beam/hooks/useChildDom.d.ts +1 -1
  30. package/border-beam/hooks/useChildDom.js +1 -1
  31. package/border-beam/index.d.ts +0 -6
  32. package/border-beam/index.js +5 -9
  33. package/border-beam/interface.d.ts +27 -4
  34. package/border-beam/style/index.js +1 -1
  35. package/border-beam/utils.d.ts +1 -9
  36. package/border-beam/utils.js +9 -9
  37. package/development/Development.js +6 -5
  38. package/development/constants.d.ts +2 -0
  39. package/development/constants.js +4 -1
  40. package/development/context.d.ts +0 -1
  41. package/development/context.js +3 -3
  42. package/development/index.d.ts +0 -6
  43. package/development/index.js +5 -9
  44. package/development/style/index.js +1 -1
  45. package/development/utils.js +1 -1
  46. package/empty/Empty.d.ts +1 -1
  47. package/empty/Empty.js +28 -27
  48. package/empty/constants.d.ts +2 -0
  49. package/empty/constants.js +4 -1
  50. package/empty/context.d.ts +0 -1
  51. package/empty/context.js +3 -3
  52. package/empty/index.d.ts +1 -7
  53. package/empty/index.js +5 -9
  54. package/empty/style/index.js +1 -1
  55. package/empty/utils.js +1 -1
  56. package/flex/Flex.js +5 -4
  57. package/flex/FlexVertical.js +1 -1
  58. package/flex/constants.d.ts +2 -0
  59. package/flex/constants.js +7 -1
  60. package/flex/context.d.ts +0 -1
  61. package/flex/context.js +3 -6
  62. package/flex/index.d.ts +1 -7
  63. package/flex/index.js +9 -11
  64. package/flex/interface.d.ts +1 -1
  65. package/flex/style/index.js +1 -1
  66. package/flex/utils.d.ts +1 -1
  67. package/flex/utils.js +10 -12
  68. package/grid/Grid.js +16 -15
  69. package/grid/Item.js +10 -9
  70. package/grid/constants.d.ts +3 -0
  71. package/grid/constants.js +8 -1
  72. package/grid/context.d.ts +0 -2
  73. package/grid/context.js +4 -8
  74. package/grid/index.d.ts +0 -6
  75. package/grid/index.js +9 -11
  76. package/grid/style/index.js +1 -1
  77. package/grid/utils.js +1 -1
  78. package/higher-order/with-speech-synthesis/constants.d.ts +2 -0
  79. package/higher-order/with-speech-synthesis/constants.js +7 -0
  80. package/higher-order/with-speech-synthesis/context.d.ts +0 -1
  81. package/higher-order/with-speech-synthesis/context.js +3 -3
  82. package/higher-order/with-speech-synthesis/index.d.ts +0 -6
  83. package/higher-order/with-speech-synthesis/index.js +5 -9
  84. package/higher-order/with-speech-synthesis/style/index.js +1 -1
  85. package/higher-order/with-speech-synthesis/withSpeechSynthesis.d.ts +8 -1
  86. package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +28 -27
  87. package/hoc/withContext.js +1 -1
  88. package/hooks/create-deep-compare-effect/index.js +1 -1
  89. package/hooks/create-update-effect/index.js +1 -1
  90. package/hooks/create-use-storage-state/index.js +9 -9
  91. package/hooks/index.d.ts +1 -0
  92. package/hooks/index.js +93 -92
  93. package/hooks/use-async-effect/index.js +1 -1
  94. package/hooks/use-boolean/index.js +1 -1
  95. package/hooks/use-click-away/index.d.ts +7 -1
  96. package/hooks/use-click-away/index.js +20 -12
  97. package/hooks/use-computed-state/index.js +1 -1
  98. package/hooks/use-controllable-value/index.js +1 -1
  99. package/hooks/use-cookie-state/index.js +2 -2
  100. package/hooks/use-count-down/index.js +1 -1
  101. package/hooks/use-counter/index.js +1 -1
  102. package/hooks/use-create/index.js +6 -5
  103. package/hooks/use-creation/index.js +7 -6
  104. package/hooks/use-debounce/debounceOptions.d.ts +1 -6
  105. package/hooks/use-debounce/index.js +1 -1
  106. package/hooks/use-debounce/interface.d.ts +14 -0
  107. package/hooks/use-debounce-effect/index.js +1 -1
  108. package/hooks/use-debounce-fn/index.js +5 -5
  109. package/hooks/use-deep-compare-effect/index.js +1 -1
  110. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  111. package/hooks/use-document-visibility/index.js +7 -7
  112. package/hooks/use-drag/index.d.ts +1 -1
  113. package/hooks/use-drag/index.js +10 -10
  114. package/hooks/use-drag-move/index.js +1 -1
  115. package/hooks/use-drop/index.d.ts +1 -1
  116. package/hooks/use-drop/index.js +1 -1
  117. package/hooks/use-dynamic-list/index.d.ts +18 -0
  118. package/hooks/use-dynamic-list/index.js +105 -0
  119. package/hooks/use-effect-event/index.js +1 -1
  120. package/hooks/use-event/index.js +1 -1
  121. package/hooks/use-event-emitter/index.d.ts +13 -1
  122. package/hooks/use-event-emitter/index.js +15 -12
  123. package/hooks/use-event-listener/index.d.ts +2 -7
  124. package/hooks/use-event-listener/index.js +1 -1
  125. package/hooks/use-event-target/index.js +1 -1
  126. package/hooks/use-external/index.js +2 -2
  127. package/hooks/use-favicon/index.js +2 -2
  128. package/hooks/use-focus-within/index.d.ts +1 -5
  129. package/hooks/use-focus-within/index.js +1 -1
  130. package/hooks/use-focus-within/interface.d.ts +13 -0
  131. package/hooks/use-force-update/index.js +1 -1
  132. package/hooks/use-fullscreen/index.js +14 -14
  133. package/hooks/use-get-state/index.d.ts +1 -7
  134. package/hooks/use-get-state/index.js +1 -1
  135. package/hooks/use-history-travel/index.d.ts +1 -1
  136. package/hooks/use-history-travel/index.js +32 -26
  137. package/hooks/use-hover/index.js +1 -1
  138. package/hooks/use-id/index.js +1 -1
  139. package/hooks/use-in-viewport/index.js +10 -10
  140. package/hooks/use-infinite-scroll/index.js +33 -31
  141. package/hooks/use-intersection-observer/index.js +3 -3
  142. package/hooks/use-intersection-observers/index.js +10 -10
  143. package/hooks/use-interval/index.js +1 -1
  144. package/hooks/use-is-first-render/index.js +1 -1
  145. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  146. package/hooks/use-key-press/index.js +1 -1
  147. package/hooks/use-keyboard-event/index.d.ts +1 -0
  148. package/hooks/use-keyboard-event/index.js +1 -1
  149. package/hooks/use-latest/index.js +1 -1
  150. package/hooks/use-listen-window-resize/index.js +1 -1
  151. package/hooks/use-local-storage-state/index.js +4 -4
  152. package/hooks/use-lock-fn/index.js +1 -1
  153. package/hooks/use-long-press/index.js +1 -1
  154. package/hooks/use-map/index.js +1 -1
  155. package/hooks/use-media/index.js +1 -1
  156. package/hooks/use-memo/index.js +1 -1
  157. package/hooks/use-memoized-fn/index.js +1 -1
  158. package/hooks/use-merge-component-props/index.d.ts +2 -2
  159. package/hooks/use-merge-component-props/index.js +2 -1
  160. package/hooks/use-merge-value/index.d.ts +1 -1
  161. package/hooks/use-merge-value/index.js +1 -1
  162. package/hooks/use-mobile/index.js +1 -1
  163. package/hooks/use-mount/index.js +1 -1
  164. package/hooks/use-mouse/index.d.ts +1 -1
  165. package/hooks/use-mouse/index.js +9 -9
  166. package/hooks/use-mutation-observer/index.js +2 -2
  167. package/hooks/use-mutation-observers/index.js +10 -10
  168. package/hooks/use-network/index.js +1 -1
  169. package/hooks/use-online-status/index.js +1 -1
  170. package/hooks/use-overflow-hidden/index.js +1 -1
  171. package/hooks/use-override-ref/index.d.ts +3 -5
  172. package/hooks/use-override-ref/index.js +5 -5
  173. package/hooks/use-pagination/index.js +1 -1
  174. package/hooks/use-pagination/types.d.ts +5 -8
  175. package/hooks/use-paste-file/index.js +9 -9
  176. package/hooks/use-paste-image/index.js +1 -1
  177. package/hooks/use-persist-callback/index.js +1 -1
  178. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  179. package/hooks/use-previous/index.js +1 -1
  180. package/hooks/use-raf-interval/index.js +17 -17
  181. package/hooks/use-raf-state/index.d.ts +1 -6
  182. package/hooks/use-raf-state/index.js +1 -1
  183. package/hooks/use-raf-timeout/index.js +17 -17
  184. package/hooks/use-reactive/index.js +5 -5
  185. package/hooks/use-ref-latest/index.js +1 -1
  186. package/hooks/use-ref-map/index.d.ts +2 -1
  187. package/hooks/use-ref-map/index.js +1 -1
  188. package/hooks/use-refs/index.js +1 -1
  189. package/hooks/use-request/index.js +5 -5
  190. package/hooks/use-request/src/Fetch.js +1 -1
  191. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  192. package/hooks/use-request/src/plugins/useCachePlugin.js +5 -5
  193. package/hooks/use-request/src/plugins/useDebouncePlugin.js +2 -2
  194. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +13 -12
  195. package/hooks/use-request/src/plugins/usePollingPlugin.js +3 -3
  196. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  197. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  198. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  199. package/hooks/use-request/src/useRequest.d.ts +11 -4
  200. package/hooks/use-request/src/useRequest.js +1 -1
  201. package/hooks/use-request/src/useRequestImplement.js +18 -18
  202. package/hooks/use-request/src/utils/cache.js +1 -1
  203. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  204. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  205. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  206. package/hooks/use-request/src/utils/isOnline.js +3 -3
  207. package/hooks/use-request/src/utils/limit.js +1 -1
  208. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  209. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  210. package/hooks/use-reset-state/index.js +6 -6
  211. package/hooks/use-resize-observer/index.d.ts +6 -1
  212. package/hooks/use-resize-observer/index.js +30 -4
  213. package/hooks/use-resize-observers/index.d.ts +1 -0
  214. package/hooks/use-resize-observers/index.js +23 -24
  215. package/hooks/use-responsive/index.js +2 -2
  216. package/hooks/use-safe-state/index.js +1 -1
  217. package/hooks/use-scroll/index.js +20 -20
  218. package/hooks/use-selections/index.d.ts +1 -1
  219. package/hooks/use-selections/index.js +45 -39
  220. package/hooks/use-session-storage-state/index.js +4 -4
  221. package/hooks/use-set/index.js +1 -1
  222. package/hooks/use-set-state/index.js +1 -1
  223. package/hooks/use-size/index.d.ts +1 -6
  224. package/hooks/use-size/index.js +4 -33
  225. package/hooks/use-state-callback/index.d.ts +1 -5
  226. package/hooks/use-state-callback/index.js +7 -7
  227. package/hooks/use-state-with-promise/index.d.ts +1 -4
  228. package/hooks/use-state-with-promise/index.js +1 -1
  229. package/hooks/use-sync-state/index.js +5 -5
  230. package/hooks/use-text-selection/index.js +1 -1
  231. package/hooks/use-theme/index.js +14 -14
  232. package/hooks/use-throttle/index.js +1 -1
  233. package/hooks/use-throttle/interface.d.ts +13 -0
  234. package/hooks/use-throttle/throttleOptions.d.ts +1 -5
  235. package/hooks/use-throttle-effect/index.js +5 -5
  236. package/hooks/use-throttle-fn/index.js +5 -5
  237. package/hooks/use-throttle-fn-with-raf/index.js +6 -6
  238. package/hooks/use-timeout/index.js +1 -1
  239. package/hooks/use-title/index.js +5 -5
  240. package/hooks/use-toggle/index.d.ts +6 -3
  241. package/hooks/use-toggle/index.js +1 -1
  242. package/hooks/use-tracked-effect/index.js +1 -1
  243. package/hooks/use-unmount/index.js +1 -1
  244. package/hooks/use-unmounted-ref/index.js +1 -1
  245. package/hooks/use-update/index.js +1 -1
  246. package/hooks/use-update-effect/index.js +1 -1
  247. package/hooks/use-update-layout-effect/index.js +1 -1
  248. package/hooks/use-url-state/index.d.ts +1 -1
  249. package/hooks/use-url-state/index.js +1 -1
  250. package/hooks/use-virtual-list/index.js +13 -13
  251. package/hooks/use-watch/index.js +1 -1
  252. package/hooks/use-web-socket/index.js +7 -7
  253. package/hooks/use-why-did-you-update/index.js +1 -1
  254. package/hooks/use-window-size/index.js +7 -7
  255. package/hooks/utils/createEffectWithTarget.js +7 -7
  256. package/hooks/utils/depsAreSame.js +1 -1
  257. package/hooks/utils/depsEqual.js +1 -1
  258. package/hooks/utils/domTarget.js +1 -1
  259. package/hooks/utils/getDocumentOrShadow.js +1 -1
  260. package/hooks/utils/index.js +1 -1
  261. package/hooks/utils/isAppleDevice.js +1 -1
  262. package/hooks/utils/isBrowser.js +1 -1
  263. package/hooks/utils/isDev.js +1 -1
  264. package/hooks/utils/rect.js +1 -1
  265. package/hooks/utils/useDeepCompareWithTarget.js +4 -4
  266. package/hooks/utils/useEffectWithTarget.js +1 -1
  267. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  268. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  269. package/icons/file/File.js +5 -4
  270. package/icons/file/constants.d.ts +2 -0
  271. package/icons/file/constants.js +7 -0
  272. package/icons/file/context.d.ts +0 -1
  273. package/icons/file/context.js +3 -3
  274. package/icons/file/index.js +2 -2
  275. package/icons/file/style/index.js +1 -1
  276. package/index.d.ts +2 -2
  277. package/index.js +542 -537
  278. package/morphicons/core/interpolate.js +1 -1
  279. package/morphicons/core/normalize.js +72 -71
  280. package/morphicons/core/parse.d.ts +1 -9
  281. package/morphicons/core/resample.js +1 -1
  282. package/morphicons/core/serialize.js +1 -1
  283. package/morphicons/core/spring.js +1 -1
  284. package/morphicons/dom/controller.d.ts +3 -3
  285. package/morphicons/dom/index.js +68 -67
  286. package/morphicons/element/index.d.ts +1 -1
  287. package/morphicons/index.d.ts +1 -1
  288. package/morphicons/index.js +6 -6
  289. package/morphicons/react/index.d.ts +1 -1
  290. package/morphicons/react/index.js +65 -64
  291. package/package.json +1 -1
  292. package/progress/Progress.js +20 -20
  293. package/progress/constants.js +1 -1
  294. package/progress/context.js +1 -1
  295. package/progress/index.js +1 -1
  296. package/progress/style/index.js +1 -1
  297. package/progress/utils.js +1 -1
  298. package/resize-observer/Collection.js +1 -1
  299. package/resize-observer/ResizeObserver.js +13 -12
  300. package/resize-observer/SingleObserver.d.ts +1 -5
  301. package/resize-observer/SingleObserver.js +4 -4
  302. package/resize-observer/constants.d.ts +2 -0
  303. package/resize-observer/constants.js +4 -1
  304. package/resize-observer/context.d.ts +0 -1
  305. package/resize-observer/context.js +3 -3
  306. package/resize-observer/index.d.ts +1 -7
  307. package/resize-observer/index.js +7 -9
  308. package/resize-observer/interface.d.ts +18 -0
  309. package/resize-observer/observerUtil.d.ts +1 -1
  310. package/resize-observer/observerUtil.js +1 -1
  311. package/resize-observer/style/index.js +1 -1
  312. package/resize-observer/utils.js +1 -1
  313. package/space/Space.d.ts +2 -1
  314. package/space/Space.js +12 -11
  315. package/space/SpaceVertical.js +1 -1
  316. package/space/constants.d.ts +2 -0
  317. package/space/constants.js +9 -1
  318. package/space/context.d.ts +0 -1
  319. package/space/context.js +3 -8
  320. package/space/index.d.ts +0 -6
  321. package/space/index.js +8 -10
  322. package/space/interface.d.ts +1 -0
  323. package/space/style/index.js +1 -1
  324. package/space/utils.js +1 -1
  325. package/style/animation.less +2 -8
  326. package/style/normalize.less +0 -13
  327. package/style.css +1 -1
  328. package/suspense-fallback-test/NeverLoadLazy.d.ts +3 -0
  329. package/suspense-fallback-test/NeverLoadLazy.js +8 -0
  330. package/suspense-fallback-test/SuspenseFallbackTest.js +14 -14
  331. package/suspense-fallback-test/constants.d.ts +2 -0
  332. package/suspense-fallback-test/constants.js +4 -1
  333. package/suspense-fallback-test/context.d.ts +0 -2
  334. package/suspense-fallback-test/context.js +3 -3
  335. package/suspense-fallback-test/index.d.ts +0 -6
  336. package/suspense-fallback-test/index.js +5 -9
  337. package/suspense-fallback-test/style/index.js +1 -1
  338. package/suspense-fallback-test/utils.js +1 -1
  339. package/test.js +1 -1
  340. package/timer/Timer.js +6 -5
  341. package/timer/constants.d.ts +2 -0
  342. package/timer/constants.js +4 -1
  343. package/timer/context.d.ts +0 -1
  344. package/timer/context.js +3 -3
  345. package/timer/index.d.ts +0 -6
  346. package/timer/index.js +5 -9
  347. package/timer/style/index.js +1 -1
  348. package/timer/utils.js +1 -1
  349. package/transition/Transition.d.ts +0 -1
  350. package/transition/Transition.js +55 -58
  351. package/transition/TransitionCSS.js +15 -15
  352. package/transition/TransitionGroup.js +13 -13
  353. package/transition/TransitionStyle.js +12 -12
  354. package/transition/constants.d.ts +4 -27
  355. package/transition/constants.js +37 -41
  356. package/transition/context.d.ts +2 -3
  357. package/transition/context.js +4 -5
  358. package/transition/index.d.ts +0 -7
  359. package/transition/index.js +15 -16
  360. package/transition/interface.d.ts +26 -1
  361. package/transition/interface.js +11 -0
  362. package/transition/style/index.js +1 -1
  363. package/transition/utils.d.ts +1 -1
  364. package/transition/utils.js +1 -1
  365. package/utils/callbackOriginRef.js +1 -1
  366. package/utils/confetti.js +1 -1
  367. package/utils/constants.d.ts +3 -2
  368. package/utils/constants.js +6 -5
  369. package/utils/copy.js +1 -1
  370. package/utils/createRoot.d.ts +1 -6
  371. package/utils/createRoot.js +11 -11
  372. package/utils/css.js +1 -1
  373. package/utils/date.d.ts +1 -1
  374. package/utils/date.js +1 -1
  375. package/utils/dayjs.js +1 -1
  376. package/utils/document.js +1 -1
  377. package/utils/dom.d.ts +1 -1
  378. package/utils/dom.js +9 -9
  379. package/utils/file.js +1 -1
  380. package/utils/fillNBSP.js +1 -1
  381. package/utils/getCompatProp.js +1 -1
  382. package/utils/getElement.js +1 -1
  383. package/utils/getHighlightText.js +1 -1
  384. package/utils/getHotkeyHandler.d.ts +1 -12
  385. package/utils/getHotkeyHandler.js +17 -17
  386. package/utils/getPrefixCls.js +1 -1
  387. package/utils/getScrollBarHeight.js +1 -1
  388. package/utils/getScrollBarSize.js +1 -1
  389. package/utils/getScrollBarWidth.js +1 -1
  390. package/utils/getScrollParent.js +1 -1
  391. package/utils/getStringLength.js +1 -1
  392. package/utils/getUrlSearchParam.js +1 -1
  393. package/utils/index.js +274 -273
  394. package/utils/initAllLineClamp.js +1 -1
  395. package/utils/injectLineClamp.js +1 -1
  396. package/utils/interface.d.ts +103 -0
  397. package/utils/interface.js +4 -0
  398. package/utils/intersectionObserver.js +1 -1
  399. package/utils/is.js +1 -1
  400. package/utils/keyboardCode.js +1 -1
  401. package/utils/lodash.d.ts +2 -1
  402. package/utils/lodash.js +19 -18
  403. package/utils/math.d.ts +1 -1
  404. package/utils/mergeProps.d.ts +1 -2
  405. package/utils/mergeProps.js +1 -1
  406. package/utils/mergedToString.js +1 -1
  407. package/utils/migrateLegacyProps.d.ts +1 -8
  408. package/utils/migrateLegacyProps.js +1 -1
  409. package/utils/mutationObserver.js +1 -1
  410. package/utils/names.d.ts +1 -8
  411. package/utils/names.js +1 -1
  412. package/utils/object.js +1 -1
  413. package/utils/omit.js +1 -1
  414. package/utils/pad.js +1 -1
  415. package/utils/pick.js +1 -1
  416. package/utils/react19Adapter.js +1 -1
  417. package/utils/reactNode.js +1 -1
  418. package/utils/ref.d.ts +2 -1
  419. package/utils/ref.js +13 -13
  420. package/utils/resizeObserver.js +1 -1
  421. package/utils/scrollIntoViewIfNeeded.js +1 -1
  422. package/utils/scrollTo.js +1 -1
  423. package/utils/setDarkTheme.js +1 -1
  424. package/utils/setDir.js +1 -1
  425. package/utils/setPrimaryColor.js +1 -1
  426. package/utils/setTheme.js +1 -1
  427. package/utils/string.js +1 -1
  428. package/utils/style.js +1 -1
  429. package/utils/tinycolor.js +1 -1
  430. package/utils/toArray.js +1 -1
  431. package/utils/tunnel.d.ts +2 -12
  432. package/utils/tunnel.js +1 -1
  433. package/utils/warning.js +1 -1
  434. package/version/index.js +10 -9
  435. /package/{base → resize-observer}/style/index.css +0 -0
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-03 10:36:21 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  // components/common/morphicons/core/interpolate.ts
4
4
  function e(e) {
@@ -1,27 +1,28 @@
1
- /* 潘启宝 2026-11-03 10:36:21 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { parsePath as e } from "./parse.js";
4
4
  import { cubicsToPathD as t } from "./serialize.js";
5
+ import { isNaN as n, isNumber as r, isString as i, isUndefined as a } from "@unicom-cloud/utils/is";
5
6
  // components/common/morphicons/core/normalize.ts
6
- var n = 4 / 3 * Math.tan(Math.PI / 8), r = 2 * Math.PI;
7
- function i(e, t) {
8
- let n = [e, t], i = e, a = t, o = (e, t, r, o, s, c) => {
9
- n.push(e, t, r, o, s, c), i = s, a = c;
10
- }, s = (e, t) => {
11
- Math.abs(e - i) < 1e-12 && Math.abs(t - a) < 1e-12 || o(i + (e - i) / 3, a + (t - a) / 3, i + 2 * (e - i) / 3, a + 2 * (t - a) / 3, e, t);
7
+ var o = 4 / 3 * Math.tan(Math.PI / 8), s = 2 * Math.PI;
8
+ function c(e, t) {
9
+ let n = [e, t], r = e, i = t, a = (e, t, a, o, s, c) => {
10
+ n.push(e, t, a, o, s, c), r = s, i = c;
11
+ }, o = (e, t) => {
12
+ Math.abs(e - r) < 1e-12 && Math.abs(t - i) < 1e-12 || a(r + (e - r) / 3, i + (t - i) / 3, r + 2 * (e - r) / 3, i + 2 * (t - i) / 3, e, t);
12
13
  };
13
14
  return [
15
+ a,
14
16
  o,
15
- s,
16
- (e, t, n, r) => {
17
- o(i + 2 / 3 * (e - i), a + 2 / 3 * (t - a), n + 2 / 3 * (e - n), r + 2 / 3 * (t - r), n, r);
17
+ (e, t, n, o) => {
18
+ a(r + 2 / 3 * (e - r), i + 2 / 3 * (t - i), n + 2 / 3 * (e - n), o + 2 / 3 * (t - o), n, o);
18
19
  },
19
20
  (e, t, n, c, l, u, d) => {
20
- let f = i, p = a;
21
+ let f = r, p = i;
21
22
  if (Math.abs(u - f) < 1e-12 && Math.abs(d - p) < 1e-12) return;
22
23
  let m = Math.abs(e), h = Math.abs(t);
23
24
  if (m < 1e-12 || h < 1e-12) {
24
- s(u, d);
25
+ o(u, d);
25
26
  return;
26
27
  }
27
28
  let g = n * Math.PI / 180, _ = Math.cos(g), v = Math.sin(g), y = (f - u) / 2, b = (p - d) / 2, x = _ * y + v * b, S = -v * y + _ * b, C = x * x / (m * m) + S * S / (h * h);
@@ -32,134 +33,134 @@ function i(e, t) {
32
33
  let w = m * m, T = h * h, E = x * x, D = S * S, O = (w * T - w * D - T * E) / (w * D + T * E);
33
34
  O < 0 && (O = 0);
34
35
  let k = (c === l ? -1 : 1) * Math.sqrt(O), A = k * m * S / h, j = -k * h * x / m, M = _ * A - v * j + (f + u) / 2, N = v * A + _ * j + (p + d) / 2, P = Math.atan2((S - j) / h, (x - A) / m), F = Math.atan2((-S - j) / h, (-x - A) / m) - P;
35
- l === 0 && F > 0 ? F -= r : l === 1 && F < 0 && (F += r);
36
+ l === 0 && F > 0 ? F -= s : l === 1 && F < 0 && (F += s);
36
37
  let I = Math.max(1, Math.ceil(Math.abs(F) / (Math.PI / 2) - 1e-9)), L = F / I, R = 4 / 3 * Math.tan(L / 4), z = (e) => M + m * Math.cos(e) * _ - h * Math.sin(e) * v, B = (e) => N + m * Math.cos(e) * v + h * Math.sin(e) * _, V = (e) => -m * Math.sin(e) * _ - h * Math.cos(e) * v, H = (e) => -m * Math.sin(e) * v + h * Math.cos(e) * _, U = P, W = f, G = p;
37
38
  for (let e = 1; e <= I; e++) {
38
39
  let t = P + L * e, n = e === I ? u : z(t), r = e === I ? d : B(t);
39
- o(W + R * V(U), G + R * H(U), n - R * V(t), r - R * H(t), n, r), U = t, W = n, G = r;
40
+ a(W + R * V(U), G + R * H(U), n - R * V(t), r - R * H(t), n, r), U = t, W = n, G = r;
40
41
  }
41
42
  },
42
- (e) => (e && s(n[0], n[1]), n.length < 8 ? null : {
43
+ (e) => (e && o(n[0], n[1]), n.length < 8 ? null : {
43
44
  pts: Float64Array.from(n),
44
45
  closed: e
45
46
  })
46
47
  ];
47
48
  }
48
- function a(e) {
49
- let [t, n, r, a, o] = i(e.x0, e.y0);
50
- for (let i of e.segs) switch (i[0]) {
49
+ function l(e) {
50
+ let [t, n, r, i, a] = c(e.x0, e.y0);
51
+ for (let a of e.segs) switch (a[0]) {
51
52
  case "L":
52
- n(i[1], i[2]);
53
+ n(a[1], a[2]);
53
54
  break;
54
55
  case "C":
55
- t(i[1], i[2], i[3], i[4], i[5], i[6]);
56
+ t(a[1], a[2], a[3], a[4], a[5], a[6]);
56
57
  break;
57
58
  case "Q":
58
- r(i[1], i[2], i[3], i[4]);
59
+ r(a[1], a[2], a[3], a[4]);
59
60
  break;
60
- case "A": a(i[1], i[2], i[3], i[4], i[5], i[6], i[7]);
61
+ case "A": i(a[1], a[2], a[3], a[4], a[5], a[6], a[7]);
61
62
  }
62
- return o(e.closed);
63
+ return a(e.closed);
63
64
  }
64
- function o(e, t, n = 0) {
65
- let r = e[t];
66
- if (r === void 0) return n;
67
- let i = typeof r == "number" ? r : Number(r);
68
- return Number.isFinite(i) ? i : n;
65
+ function u(e, t, n = 0) {
66
+ let i = e[t];
67
+ if (a(i)) return n;
68
+ let o = r(i) ? i : Number(i);
69
+ return Number.isFinite(o) ? o : n;
69
70
  }
70
- function s(e) {
71
+ function d(e) {
71
72
  let t = String(e ?? "").trim();
72
73
  if (!t) return [];
73
74
  let n = t.split(/[\s,]+/).map(Number);
74
75
  if (n.some((e) => !Number.isFinite(e))) throw Error(`morphicons: invalid points: "${t}"`);
75
76
  return n;
76
77
  }
77
- function c(e, t) {
78
+ function f(e, t) {
78
79
  if (e.length < 4) return null;
79
- let [, n, , , r] = i(e[0], e[1]);
80
+ let [, n, , , r] = c(e[0], e[1]);
80
81
  for (let t = 2; t + 1 < e.length; t += 2) n(e[t], e[t + 1]);
81
82
  return r(t);
82
83
  }
83
- function l(e, t, r, a) {
84
- if (r < 1e-12 || a < 1e-12) return null;
85
- let o = n * r, s = n * a, c = e + r, l = e - r, u = t + a, d = t - a, [f, , , , p] = i(c, t);
86
- return f(c, t + s, e + o, u, e, u), f(e - o, u, l, t + s, l, t), f(l, t - s, e - o, d, e, d), f(e + o, d, c, t - s, c, t), p(!0);
84
+ function p(e, t, n, r) {
85
+ if (n < 1e-12 || r < 1e-12) return null;
86
+ let i = o * n, a = o * r, s = e + n, l = e - n, u = t + r, d = t - r, [f, , , , p] = c(s, t);
87
+ return f(s, t + a, e + i, u, e, u), f(e - i, u, l, t + a, l, t), f(l, t - a, e - i, d, e, d), f(e + i, d, s, t - a, s, t), p(!0);
87
88
  }
88
- function u(e) {
89
- let t = o(e, "x"), r = o(e, "y"), a = o(e, "width"), s = o(e, "height");
90
- if (a < 1e-12 || s < 1e-12) return null;
91
- let l = o(e, "rx", NaN), u = o(e, "ry", NaN);
92
- if (Number.isNaN(l) && (l = Number.isNaN(u) ? 0 : u), Number.isNaN(u) && (u = l), l = Math.min(Math.max(l, 0), a / 2), u = Math.min(Math.max(u, 0), s / 2), l < 1e-12 || u < 1e-12) return c([
89
+ function m(e) {
90
+ let t = u(e, "x"), r = u(e, "y"), i = u(e, "width"), a = u(e, "height");
91
+ if (i < 1e-12 || a < 1e-12) return null;
92
+ let s = u(e, "rx", NaN), l = u(e, "ry", NaN);
93
+ if (n(s) && (s = n(l) ? 0 : l), n(l) && (l = s), s = Math.min(Math.max(s, 0), i / 2), l = Math.min(Math.max(l, 0), a / 2), s < 1e-12 || l < 1e-12) return f([
93
94
  t,
94
95
  r,
95
- t + a,
96
+ t + i,
96
97
  r,
97
- t + a,
98
- r + s,
98
+ t + i,
99
+ r + a,
99
100
  t,
100
- r + s
101
+ r + a
101
102
  ], !0);
102
- let d = t + l, f = t + a - l, p = t + a, m = r + u, h = r + s - u, g = r + s, _ = n * l, v = n * u, [y, b, , , x] = i(d, r);
103
- return b(f, r), y(f + _, r, p, m - v, p, m), b(p, h), y(p, h + v, f + _, g, f, g), b(d, g), y(d - _, g, t, h + v, t, h), b(t, m), y(t, m - v, d - _, r, d, r), x(!0);
103
+ let d = t + s, p = t + i - s, m = t + i, h = r + l, g = r + a - l, _ = r + a, v = o * s, y = o * l, [b, x, , , S] = c(d, r);
104
+ return x(p, r), b(p + v, r, m, h - y, m, h), x(m, g), b(m, g + y, p + v, _, p, _), x(d, _), b(d - v, _, t, g + y, t, g), x(t, h), b(t, h - y, d - v, r, d, r), S(!0);
104
105
  }
105
- function d(t) {
106
+ function h(t) {
106
107
  let n = [], r = (e) => {
107
108
  e && n.push(e);
108
109
  };
109
- if (typeof t == "string") {
110
- for (let n of e(t)) r(a(n));
110
+ if (i(t)) {
111
+ for (let n of e(t)) r(l(n));
111
112
  return n;
112
113
  }
113
- for (let [n, d] of t) switch (n) {
114
+ for (let [n, i] of t) switch (n) {
114
115
  case "path":
115
- for (let t of e(String(d.d ?? ""))) r(a(t));
116
+ for (let t of e(String(i.d ?? ""))) r(l(t));
116
117
  break;
117
118
  case "line": {
118
- let [, e, , , t] = i(o(d, "x1"), o(d, "y1"));
119
- e(o(d, "x2"), o(d, "y2")), r(t(!1));
119
+ let [, e, , , t] = c(u(i, "x1"), u(i, "y1"));
120
+ e(u(i, "x2"), u(i, "y2")), r(t(!1));
120
121
  break;
121
122
  }
122
123
  case "circle": {
123
- let e = o(d, "r");
124
- r(l(o(d, "cx"), o(d, "cy"), e, e));
124
+ let e = u(i, "r");
125
+ r(p(u(i, "cx"), u(i, "cy"), e, e));
125
126
  break;
126
127
  }
127
128
  case "ellipse":
128
- r(l(o(d, "cx"), o(d, "cy"), o(d, "rx"), o(d, "ry")));
129
+ r(p(u(i, "cx"), u(i, "cy"), u(i, "rx"), u(i, "ry")));
129
130
  break;
130
131
  case "rect":
131
- r(u(d));
132
+ r(m(i));
132
133
  break;
133
134
  case "polyline":
134
- r(c(s(d.points), !1));
135
+ r(f(d(i.points), !1));
135
136
  break;
136
137
  case "polygon":
137
- r(c(s(d.points), !0));
138
+ r(f(d(i.points), !0));
138
139
  break;
139
140
  default: throw Error(`morphicons: unsupported tag <${n}>`);
140
141
  }
141
142
  return n;
142
143
  }
143
- function f(e) {
144
- let t = typeof e == "number" ? [
144
+ function g(e) {
145
+ let t = r(e) ? [
145
146
  0,
146
147
  0,
147
148
  e,
148
149
  e
149
- ] : typeof e == "string" ? e.trim().split(/[\s,]+/).map(Number) : e, [n, r, i, a] = t;
150
- if (t.length !== 4 || !(i > 0) || !(a > 0) || !Number.isFinite(n) || !Number.isFinite(r)) throw Error(`morphicons: invalid viewBox "${String(e)}"`);
150
+ ] : i(e) ? e.trim().split(/[\s,]+/).map(Number) : e, [n, a, o, s] = t;
151
+ if (t.length !== 4 || !(o > 0) || !(s > 0) || !Number.isFinite(n) || !Number.isFinite(a)) throw Error(`morphicons: invalid viewBox "${String(e)}"`);
151
152
  return [
152
153
  n,
153
- r,
154
- i,
155
- a
154
+ a,
155
+ o,
156
+ s
156
157
  ];
157
158
  }
158
- function p(e, n, r = 24) {
159
- let [i, a, o, s] = f(n), c = Math.min(r / o, r / s), l = (r - o * c) / 2 - i * c, u = (r - s * c) / 2 - a * c, p = d(e);
160
- for (let { pts: e } of p) for (let t = 0; t < e.length; t += 2) e[t] = e[t] * c + l, e[t + 1] = e[t + 1] * c + u;
161
- return t(p);
159
+ function _(e, n, r = 24) {
160
+ let [i, a, o, s] = g(n), c = Math.min(r / o, r / s), l = (r - o * c) / 2 - i * c, u = (r - s * c) / 2 - a * c, d = h(e);
161
+ for (let { pts: e } of d) for (let t = 0; t < e.length; t += 2) e[t] = e[t] * c + l, e[t + 1] = e[t + 1] * c + u;
162
+ return t(d);
162
163
  }
163
- export { n as KAPPA, p as fitIcon, d as iconToCubics };
164
+ export { o as KAPPA, _ as fitIcon, h as iconToCubics };
164
165
  /* 欲穷千里目,更上一层楼 */
165
166
  /* 独立思考,明辨是非 */
@@ -1,14 +1,6 @@
1
1
  /** Raw absolute segment (shorthands already resolved), as a labeled tuple —
2
2
  * compact in the bundle (no object keys the minifier can't mangle). */
3
- export type RawSeg = readonly ['L', x: number, y: number] | readonly [
4
- 'C',
5
- x1: number,
6
- y1: number,
7
- x2: number,
8
- y2: number,
9
- x: number,
10
- y: number
11
- ] | readonly ['Q', x1: number, y1: number, x: number, y: number] | readonly [
3
+ export type RawSeg = readonly ['L', x: number, y: number] | readonly ['C', x1: number, y1: number, x2: number, y2: number, x: number, y: number] | readonly ['Q', x1: number, y1: number, x: number, y: number] | readonly [
12
4
  'A',
13
5
  rx: number,
14
6
  ry: number,
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-03 10:36:21 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { iconToCubics as e } from "./normalize.js";
4
4
  // components/common/morphicons/core/resample.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-03 10:36:21 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  // components/common/morphicons/core/serialize.ts
4
4
  function e(e) {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-11-03 10:36:21 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  // components/common/morphicons/core/spring.ts
4
4
  var e = class {
@@ -24,7 +24,7 @@ export interface MorphWatchProps extends MorphCtrlProps {
24
24
  * mount-time props (server and client produce the same string → hydration
25
25
  * without mismatch) and from then on only the driver mutates it outside the
26
26
  * template. */
27
- export declare function computeInitialD({ icon, from, to, progress, }: MorphModeProps): string;
27
+ export declare function computeInitialD({ icon, from, to, progress }: MorphModeProps): string;
28
28
  /** Per-instance driver state — the exact logic of the React/Vue bindings
29
29
  * (mount, mode watch, controlled seek with re-basing, imperative). Takes the
30
30
  * init-time props: they seed the watch baselines so a watcher that fires on
@@ -41,13 +41,13 @@ export declare function computeInitialD({ icon, from, to, progress, }: MorphMode
41
41
  * path back to `icon`.
42
42
  * - Every exit from controlled mode (imperative call or icon takeover)
43
43
  * invalidates the frozen pair, so returning to it re-bases on `from`. */
44
- export declare function createController({ icon, from, to, progress, reducedMotion, }: MorphCtrlProps): {
44
+ export declare function createController({ icon, from, to, progress, reducedMotion }: MorphCtrlProps): {
45
45
  mount(mountEl: PathEl, { icon, from, to, progress, reducedMotion }: MorphCtrlProps): void;
46
46
  destroy(): void;
47
47
  /** Prop watcher: ONE owner decides per run — the controlled pair while it
48
48
  * is fully present, `icon` otherwise (mount doesn't fire thanks to the
49
49
  * init-time baselines). */
50
- watch({ icon, from, to, progress, spring, reducedMotion, }: MorphWatchProps): void;
50
+ watch({ icon, from, to, progress, spring, reducedMotion }: MorphWatchProps): void;
51
51
  morphTo(icon: IconInput, spring?: SpringPreset | MorphOptions): void;
52
52
  set(icon: IconInput): void;
53
53
  };
@@ -1,110 +1,111 @@
1
- /* 潘启宝 2026-11-03 10:36:21 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { allocOutputs as e, interpPolar as t } from "../core/interpolate.js";
4
- import { cubicsToPathD as n, serialize as r } from "../core/serialize.js";
5
- import { iconToCubics as i } from "../core/normalize.js";
6
- import { buildPlan as a } from "../core/plan.js";
7
- import { resampleIcon as o } from "../core/resample.js";
4
+ import { iconToCubics as n } from "../core/normalize.js";
5
+ import { buildPlan as r } from "../core/plan.js";
6
+ import { resampleIcon as i } from "../core/resample.js";
7
+ import { cubicsToPathD as a, serialize as o } from "../core/serialize.js";
8
8
  import { SPRING_PRESETS as s, Spring as c } from "../core/spring.js";
9
+ import { isGlobalUndefined as l, isString as u } from "@unicom-cloud/utils/is";
9
10
  // components/common/morphicons/dom/index.ts
10
- var l = /* @__PURE__ */ new Set(), u = 0, d = -1;
11
- function f(e) {
12
- let t = d < 0 ? 0 : Math.min(Math.max((e - d) / 1e3, 0), .1);
13
- d = e;
14
- for (let e of [...l]) e(t);
15
- l.size > 0 ? u = requestAnimationFrame(f) : (u = 0, d = -1);
16
- }
17
- function p(e) {
18
- l.add(e), u === 0 && (d = -1, u = requestAnimationFrame(f));
19
- }
11
+ var d = /* @__PURE__ */ new Set(), f = 0, p = -1;
20
12
  function m(e) {
21
- l.delete(e), l.size === 0 && u !== 0 && (cancelAnimationFrame(u), u = 0, d = -1);
13
+ let t = p < 0 ? 0 : Math.min(Math.max((e - p) / 1e3, 0), .1);
14
+ p = e;
15
+ for (let e of [...d]) e(t);
16
+ d.size > 0 ? f = requestAnimationFrame(m) : (f = 0, p = -1);
22
17
  }
23
- var h = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
24
- function v(e) {
25
- if (typeof e == "string") return o(e);
26
- let t = h.get(e);
27
- return t || (t = o(e), h.set(e, t)), t;
18
+ function h(e) {
19
+ d.add(e), f === 0 && (p = -1, f = requestAnimationFrame(m));
28
20
  }
29
- function y(e) {
30
- if (typeof e == "string") return e;
31
- let t = g.get(e);
32
- return t || (t = n(i(e)), g.set(e, t)), t;
21
+ function g(e) {
22
+ d.delete(e), d.size === 0 && f !== 0 && (cancelAnimationFrame(f), f = 0, p = -1);
33
23
  }
34
- function b(e, t) {
35
- if (typeof e == "string" || typeof t == "string") return a(v(e), v(t));
36
- let n = _.get(e);
37
- n || (n = /* @__PURE__ */ new WeakMap(), _.set(e, n));
38
- let r = n.get(t);
39
- return r || (r = a(v(e), v(t)), n.set(t, r)), r;
24
+ var _ = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap();
25
+ function b(e) {
26
+ if (u(e)) return i(e);
27
+ let t = _.get(e);
28
+ return t || (t = i(e), _.set(e, t)), t;
40
29
  }
41
30
  function x(e) {
42
- if (typeof e == "string") return s[e];
31
+ if (u(e)) return e;
32
+ let t = v.get(e);
33
+ return t || (t = a(n(e)), v.set(e, t)), t;
34
+ }
35
+ function S(e, t) {
36
+ if (u(e) || u(t)) return r(b(e), b(t));
37
+ let n = y.get(e);
38
+ n || (n = /* @__PURE__ */ new WeakMap(), y.set(e, n));
39
+ let i = n.get(t);
40
+ return i || (i = r(b(e), b(t)), n.set(t, i)), i;
41
+ }
42
+ function C(e) {
43
+ if (u(e)) return s[e];
43
44
  let t = s.snappy;
44
45
  return {
45
46
  k: e?.stiffness ?? t.k,
46
47
  c: e?.damping ?? t.c
47
48
  };
48
49
  }
49
- function S(n, i, o) {
50
- let s = new c(), l = o?.reducedMotion ?? "never", u = i, d = !0, f = null, h = null, g = null, _ = 1, S = !1, C = !1;
51
- n.setAttribute("d", y(i));
52
- let w = (e) => {
53
- let i = f, a = h, o = g;
54
- i && a && o && (_ = e, t(i, e, a), n.setAttribute("d", r(a, o)));
55
- }, T = () => {
56
- S && (S = !1, m(E));
57
- }, E = (e) => {
50
+ function w(n, i, a) {
51
+ let s = new c(), u = a?.reducedMotion ?? "never", d = i, f = !0, p = null, m = null, _ = null, v = 1, y = !1, w = !1;
52
+ n.setAttribute("d", x(i));
53
+ let T = (e) => {
54
+ let r = p, i = m, a = _;
55
+ r && i && a && (v = e, t(r, e, i), n.setAttribute("d", o(i, a)));
56
+ }, E = () => {
57
+ y && (y = !1, g(D));
58
+ }, D = (e) => {
58
59
  let t = s.step(e);
59
- w(s.x), t && (T(), D());
60
- }, D = () => {
61
- d = !0, f = null, h = null, g = null, _ = 1, s.x = 1, s.v = 0, n.setAttribute("d", y(u));
60
+ T(s.x), t && (E(), O());
62
61
  }, O = () => {
63
- let e = f, t = h;
64
- return d || !e || !t ? v(u) : t.map((t, n) => ({
62
+ f = !0, p = null, m = null, _ = null, v = 1, s.x = 1, s.v = 0, n.setAttribute("d", x(d));
63
+ }, k = () => {
64
+ let e = p, t = m;
65
+ return f || !e || !t ? b(d) : t.map((t, n) => ({
65
66
  pts: Float64Array.from(t),
66
67
  closed: e.items[n].closed
67
68
  }));
68
- }, k = (t) => {
69
- f = d ? b(u, t) : a(O(), v(t)), h = e(f), g = f.items.map((e) => e.closed), u = t, d = !1;
70
- }, A = (e) => {
71
- T(), u = e, D();
72
- }, j = () => l === "always" ? !0 : l !== "user" || typeof matchMedia > "u" ? !1 : matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1, M = (e, t) => {
73
- if (C) return;
74
- let n = !d && f !== null && e === u;
75
- T(), s.v = 0, n || k(e), w(t);
69
+ }, A = (t) => {
70
+ p = f ? S(d, t) : r(k(), b(t)), m = e(p), _ = p.items.map((e) => e.closed), d = t, f = !1;
71
+ }, j = (e) => {
72
+ E(), d = e, O();
73
+ }, M = () => u === "always" ? !0 : u !== "user" || l("matchMedia") ? !1 : matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1, N = (e, t) => {
74
+ if (!w) return;
75
+ let n = !f && p !== null && e === d;
76
+ E(), s.v = 0, n || A(e), T(t);
76
77
  };
77
78
  return {
78
79
  morphTo(e, t) {
79
- if (C || e === u && (d || S)) return;
80
- if (j()) {
81
- A(e);
80
+ if (w || e === d && (f || y)) return;
81
+ if (M()) {
82
+ j(e);
82
83
  return;
83
84
  }
84
- let { k: n, c: r } = x(t);
85
- s.config(n, r), k(e), s.start(), S || (S = !0, p(E));
85
+ let { k: n, c: r } = C(t);
86
+ s.config(n, r), A(e), s.start(), y || (y = !0, h(D));
86
87
  },
87
88
  set(e) {
88
- C || A(e);
89
+ w || j(e);
89
90
  },
90
- seek: M,
91
+ seek: N,
91
92
  get progress() {
92
- return d ? 1 : _;
93
+ return f ? 1 : v;
93
94
  },
94
95
  set progress(e) {
95
- C || M(u, e);
96
+ w || N(d, e);
96
97
  },
97
98
  get reducedMotion() {
98
- return l;
99
+ return u;
99
100
  },
100
101
  set reducedMotion(e) {
101
- l = e;
102
+ u = e;
102
103
  },
103
104
  destroy() {
104
- T(), C = !0, f = null, h = null, g = null;
105
+ E(), w = !0, p = null, m = null, _ = null;
105
106
  }
106
107
  };
107
108
  }
108
- export { y as canonicalD, S as createMorph };
109
+ export { x as canonicalD, w as createMorph };
109
110
  /* 欲穷千里目,更上一层楼 */
110
111
  /* 独立思考,明辨是非 */
@@ -35,5 +35,5 @@ declare global {
35
35
  export type { IconInput, IconNode, Sampled } from '../core/types';
36
36
  export { computeInitialD } from '../dom/controller';
37
37
  export type { MorphHandle } from '../dom/controller';
38
- export type { Morph, MorphOptions, PathEl, ReducedMotionMode, } from '../dom/index';
38
+ export type { Morph, MorphOptions, PathEl, ReducedMotionMode } from '../dom/index';
39
39
  export type { SpringPreset };
@@ -4,5 +4,5 @@ export { buildPlan, type MorphPlan, type PlanItem } from './core/plan';
4
4
  export { resampleIcon, resamplePath } from './core/resample';
5
5
  export { cubicsToPathD, serialize } from './core/serialize';
6
6
  export { Spring, SPRING_PRESETS, type SpringPreset } from './core/spring';
7
- export type { CubicPath, IconInput, IconNode, IconNodeAttrs, Sampled, } from './core/types';
7
+ export type { CubicPath, IconInput, IconNode, IconNodeAttrs, Sampled } from './core/types';
8
8
  export { MorphIcon } from './react';
@@ -1,12 +1,12 @@
1
- /* 潘启宝 2026-11-03 10:36:21 星期二 山东省济南市 */
1
+ /* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
2
2
  /* 世界因你而美丽 */
3
3
  import { allocOutputs as e, interpLinear as t, interpPolar as n } from "./core/interpolate.js";
4
- import { cubicsToPathD as r, serialize as i } from "./core/serialize.js";
5
- import { fitIcon as a, iconToCubics as o } from "./core/normalize.js";
6
- import { buildPlan as s } from "./core/plan.js";
7
- import { resampleIcon as c, resamplePath as l } from "./core/resample.js";
4
+ import { fitIcon as r, iconToCubics as i } from "./core/normalize.js";
5
+ import { buildPlan as a } from "./core/plan.js";
6
+ import { resampleIcon as o, resamplePath as s } from "./core/resample.js";
7
+ import { cubicsToPathD as c, serialize as l } from "./core/serialize.js";
8
8
  import { SPRING_PRESETS as u, Spring as d } from "./core/spring.js";
9
9
  import { MorphIcon as f } from "./react/index.js";
10
- export { f as MorphIcon, u as SPRING_PRESETS, d as Spring, e as allocOutputs, s as buildPlan, r as cubicsToPathD, a as fitIcon, o as iconToCubics, t as interpLinear, n as interpPolar, c as resampleIcon, l as resamplePath, i as serialize };
10
+ export { f as MorphIcon, u as SPRING_PRESETS, d as Spring, e as allocOutputs, a as buildPlan, c as cubicsToPathD, r as fitIcon, i as iconToCubics, t as interpLinear, n as interpPolar, o as resampleIcon, s as resamplePath, l as serialize };
11
11
  /* 欲穷千里目,更上一层楼 */
12
12
  /* 独立思考,明辨是非 */
@@ -32,5 +32,5 @@ export interface MorphIconProps extends Omit<SVGProps<SVGSVGElement>, 'from' | '
32
32
  }
33
33
  export declare const MorphIcon: import("react").ForwardRefExoticComponent<MorphIconProps & import("react").RefAttributes<MorphHandle>>;
34
34
  export type { IconInput, IconNode, Sampled } from '../core/types';
35
- export type { Morph, MorphOptions, PathEl, ReducedMotionMode, } from '../dom/index';
35
+ export type { Morph, MorphOptions, PathEl, ReducedMotionMode } from '../dom/index';
36
36
  export type { SpringPreset };