@unicom-cloud/ui-common 0.1.8 → 0.1.10

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 (384) hide show
  1. package/Development.js +1 -1
  2. package/Empty.js +1 -1
  3. package/Flex.js +7 -5
  4. package/Motion.js +1 -1
  5. package/Progress.js +1 -1
  6. package/ResizeObserver.js +1 -1
  7. package/Space.js +5 -7
  8. package/SuspenseFallbackTest.js +1 -1
  9. package/TransitionGroup.js +27 -26
  10. package/development/index.js +27 -25
  11. package/empty/index.js +1 -1
  12. package/flex/index.js +63 -67
  13. package/flex/utils.js +35 -0
  14. package/higher-order/index.js +1 -1
  15. package/higher-order/with-speech-synthesis/index.js +1 -1
  16. package/higher-order/withSpeechSynthesis.js +1 -1
  17. package/hooks/create-deep-compare-effect/index.js +1 -1
  18. package/hooks/create-update-effect/index.js +1 -1
  19. package/hooks/create-use-storage-state/index.js +1 -1
  20. package/hooks/createDeepCompareEffect.js +1 -1
  21. package/hooks/createUpdateEffect.js +1 -1
  22. package/hooks/createUseStorageState.js +1 -1
  23. package/hooks/index.js +54 -52
  24. package/hooks/use-async-effect/index.js +1 -1
  25. package/hooks/use-boolean/index.js +1 -1
  26. package/hooks/use-click-away/index.js +1 -1
  27. package/hooks/use-computed-state/index.js +1 -1
  28. package/hooks/use-controllable-value/index.js +1 -1
  29. package/hooks/use-cookie-state/index.js +1 -1
  30. package/hooks/use-count-down/index.js +1 -1
  31. package/hooks/use-counter/index.js +1 -1
  32. package/hooks/use-create/index.js +1 -1
  33. package/hooks/use-creation/index.js +1 -1
  34. package/hooks/use-debounce/index.js +1 -1
  35. package/hooks/use-debounce-effect/index.js +1 -1
  36. package/hooks/use-debounce-fn/index.js +1 -1
  37. package/hooks/use-deep-compare-effect/index.js +1 -1
  38. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  39. package/hooks/use-document-visibility/index.js +1 -1
  40. package/hooks/use-drag/index.js +1 -1
  41. package/hooks/use-drop/index.js +1 -1
  42. package/hooks/use-event/index.js +1 -1
  43. package/hooks/use-event-listener/index.js +1 -1
  44. package/hooks/use-event-target/index.js +1 -1
  45. package/hooks/use-external/index.js +1 -1
  46. package/hooks/use-favicon/index.js +1 -1
  47. package/hooks/use-focus-within/index.js +1 -1
  48. package/hooks/use-force-update/index.js +1 -1
  49. package/hooks/use-fullscreen/index.js +1 -1
  50. package/hooks/use-get-state/index.js +1 -1
  51. package/hooks/use-history-travel/index.js +1 -1
  52. package/hooks/use-hover/index.js +1 -1
  53. package/hooks/use-id/index.js +1 -1
  54. package/hooks/use-in-view/index.js +1 -1
  55. package/hooks/use-in-viewport/index.js +1 -1
  56. package/hooks/use-infinite-scroll/index.js +34 -29
  57. package/hooks/use-intersection-observer/index.js +10 -12
  58. package/hooks/use-intersection-observers/index.js +5 -32
  59. package/hooks/use-interval/index.js +1 -1
  60. package/hooks/use-is-first-render/index.js +1 -1
  61. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  62. package/hooks/use-key-press/index.js +1 -1
  63. package/hooks/use-keyboard-event/index.js +1 -1
  64. package/hooks/use-latest/index.js +1 -1
  65. package/hooks/use-listen-window-resize/index.js +1 -1
  66. package/hooks/use-local-storage-state/index.js +1 -1
  67. package/hooks/use-lock-fn/index.js +1 -1
  68. package/hooks/use-long-press/index.js +1 -1
  69. package/hooks/use-map/index.js +1 -1
  70. package/hooks/use-media/index.js +1 -1
  71. package/hooks/use-memo/index.js +1 -1
  72. package/hooks/use-memoized-fn/index.js +1 -1
  73. package/hooks/use-merge-props/index.js +1 -1
  74. package/hooks/use-merge-value/index.js +9 -12
  75. package/hooks/use-mount/index.js +1 -1
  76. package/hooks/use-mouse/index.js +1 -1
  77. package/hooks/use-move/index.js +59 -49
  78. package/hooks/use-mutation-observer/index.js +1 -1
  79. package/hooks/use-mutation-observers/index.js +8 -5
  80. package/hooks/use-network/index.js +1 -1
  81. package/hooks/use-online-status/index.js +1 -1
  82. package/hooks/use-overflow-hidden/index.js +1 -1
  83. package/hooks/use-override-ref/index.js +1 -1
  84. package/hooks/use-pagination/index.js +1 -1
  85. package/hooks/use-paste-image/index.js +20 -0
  86. package/hooks/use-persist-callback/index.js +1 -1
  87. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  88. package/hooks/use-previous/index.js +1 -1
  89. package/hooks/use-raf-interval/index.js +1 -1
  90. package/hooks/use-raf-state/index.js +1 -1
  91. package/hooks/use-raf-timeout/index.js +1 -1
  92. package/hooks/use-reactive/index.js +1 -1
  93. package/hooks/use-ref-latest/index.js +1 -1
  94. package/hooks/use-refs/index.js +1 -1
  95. package/hooks/use-request/index.js +1 -1
  96. package/hooks/use-request/src/Fetch.js +1 -1
  97. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  98. package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
  99. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  100. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
  101. package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
  102. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  103. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  104. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  105. package/hooks/use-request/src/useRequest.js +1 -1
  106. package/hooks/use-request/src/useRequestImplement.js +1 -1
  107. package/hooks/use-request/src/utils/cache.js +1 -1
  108. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  109. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  110. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  111. package/hooks/use-request/src/utils/isOnline.js +1 -1
  112. package/hooks/use-request/src/utils/limit.js +1 -1
  113. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  114. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  115. package/hooks/use-reset-state/index.js +1 -1
  116. package/hooks/use-resize-observer/index.js +1 -1
  117. package/hooks/use-resize-observers/index.js +8 -5
  118. package/hooks/use-responsive/index.js +1 -1
  119. package/hooks/use-safe-state/index.js +1 -1
  120. package/hooks/use-scroll/index.js +1 -1
  121. package/hooks/use-selections/index.js +1 -1
  122. package/hooks/use-session-storage-state/index.js +1 -1
  123. package/hooks/use-set/index.js +1 -1
  124. package/hooks/use-set-state/index.js +1 -1
  125. package/hooks/use-size/index.js +1 -1
  126. package/hooks/use-state-callback/index.js +1 -1
  127. package/hooks/use-state-with-promise/index.js +1 -1
  128. package/hooks/use-sync-state/index.js +1 -1
  129. package/hooks/use-text-selection/index.js +1 -1
  130. package/hooks/use-theme/index.js +1 -1
  131. package/hooks/use-throttle/index.js +1 -1
  132. package/hooks/use-throttle-effect/index.js +1 -1
  133. package/hooks/use-throttle-fn/index.js +1 -1
  134. package/hooks/use-timeout/index.js +1 -1
  135. package/hooks/use-title/index.js +1 -1
  136. package/hooks/use-toggle/index.js +1 -1
  137. package/hooks/use-tracked-effect/index.js +1 -1
  138. package/hooks/use-unmount/index.js +1 -1
  139. package/hooks/use-unmounted-ref/index.js +1 -1
  140. package/hooks/use-update/index.js +1 -1
  141. package/hooks/use-update-effect/index.js +1 -1
  142. package/hooks/use-update-layout-effect/index.js +1 -1
  143. package/hooks/use-url-state/index.js +1 -1
  144. package/hooks/use-virtual-list/index.js +1 -1
  145. package/hooks/use-watch/index.js +1 -1
  146. package/hooks/use-web-socket/index.js +1 -1
  147. package/hooks/use-why-did-you-update/index.js +1 -1
  148. package/hooks/use-window-size/index.js +1 -1
  149. package/hooks/useAsyncEffect.js +1 -1
  150. package/hooks/useBoolean.js +1 -1
  151. package/hooks/useClickAway.js +1 -1
  152. package/hooks/useComputedState.js +1 -1
  153. package/hooks/useControllableValue.js +1 -1
  154. package/hooks/useCookieState.js +1 -1
  155. package/hooks/useCountDown.js +1 -1
  156. package/hooks/useCounter.js +1 -1
  157. package/hooks/useCreate.js +1 -1
  158. package/hooks/useCreation.js +1 -1
  159. package/hooks/useDebounce.js +1 -1
  160. package/hooks/useDebounceEffect.js +1 -1
  161. package/hooks/useDebounceFn.js +1 -1
  162. package/hooks/useDeepCompareEffect.js +1 -1
  163. package/hooks/useDeepCompareLayoutEffect.js +1 -1
  164. package/hooks/useDocumentVisibility.js +1 -1
  165. package/hooks/useDrag.js +1 -1
  166. package/hooks/useDrop.js +1 -1
  167. package/hooks/useEvent.js +1 -1
  168. package/hooks/useEventListener.js +1 -1
  169. package/hooks/useEventTarget.js +1 -1
  170. package/hooks/useExternal.js +1 -1
  171. package/hooks/useFavicon.js +1 -1
  172. package/hooks/useFocusWithin.js +1 -1
  173. package/hooks/useForceUpdate.js +1 -1
  174. package/hooks/useFullscreen.js +1 -1
  175. package/hooks/useGetState.js +1 -1
  176. package/hooks/useHistoryTravel.js +1 -1
  177. package/hooks/useHover.js +1 -1
  178. package/hooks/useId.js +1 -1
  179. package/hooks/useInView.js +1 -1
  180. package/hooks/useInViewport.js +1 -1
  181. package/hooks/useInfiniteScroll.js +1 -1
  182. package/hooks/useIntersectionObserver.js +4 -6
  183. package/hooks/useIntersectionObservers.js +5 -32
  184. package/hooks/useInterval.js +1 -1
  185. package/hooks/useIsFirstRender.js +1 -1
  186. package/hooks/useIsomorphicLayoutEffect.js +1 -1
  187. package/hooks/useKeyPress.js +1 -1
  188. package/hooks/useKeyboardEvent.js +1 -1
  189. package/hooks/useLatest.js +1 -1
  190. package/hooks/useListenWindowResize.js +1 -1
  191. package/hooks/useLocalStorageState.js +1 -1
  192. package/hooks/useLockFn.js +1 -1
  193. package/hooks/useLongPress.js +1 -1
  194. package/hooks/useMap.js +1 -1
  195. package/hooks/useMedia.js +1 -1
  196. package/hooks/useMemo.js +1 -1
  197. package/hooks/useMemoizedFn.js +1 -1
  198. package/hooks/useMergeProps.js +1 -1
  199. package/hooks/useMergeValue.js +4 -3
  200. package/hooks/useMount.js +1 -1
  201. package/hooks/useMouse.js +1 -1
  202. package/hooks/useMove.js +4 -3
  203. package/hooks/useMutationObserver.js +1 -1
  204. package/hooks/useMutationObservers.js +8 -5
  205. package/hooks/useNetwork.js +1 -1
  206. package/hooks/useOnlineStatus.js +1 -1
  207. package/hooks/useOverflowHidden.js +1 -1
  208. package/hooks/useOverrideRef.js +1 -1
  209. package/hooks/usePagination.js +1 -1
  210. package/hooks/usePasteImage.js +9 -0
  211. package/hooks/usePersistCallback.js +1 -1
  212. package/hooks/usePrefersColorSchemeDark.js +1 -1
  213. package/hooks/usePrevious.js +1 -1
  214. package/hooks/useRafInterval.js +1 -1
  215. package/hooks/useRafState.js +1 -1
  216. package/hooks/useRafTimeout.js +1 -1
  217. package/hooks/useReactive.js +1 -1
  218. package/hooks/useRefLatest.js +1 -1
  219. package/hooks/useRefs.js +1 -1
  220. package/hooks/useRequest.js +1 -1
  221. package/hooks/useResetState.js +1 -1
  222. package/hooks/useResizeObserver.js +1 -1
  223. package/hooks/useResizeObservers.js +8 -5
  224. package/hooks/useResponsive.js +1 -1
  225. package/hooks/useSafeState.js +1 -1
  226. package/hooks/useScroll.js +1 -1
  227. package/hooks/useSelections.js +1 -1
  228. package/hooks/useSessionStorageState.js +1 -1
  229. package/hooks/useSet.js +1 -1
  230. package/hooks/useSetState.js +1 -1
  231. package/hooks/useSize.js +1 -1
  232. package/hooks/useStateCallback.js +1 -1
  233. package/hooks/useStateWithPromise.js +1 -1
  234. package/hooks/useSyncState.js +1 -1
  235. package/hooks/useTextSelection.js +1 -1
  236. package/hooks/useTheme.js +1 -1
  237. package/hooks/useThrottle.js +1 -1
  238. package/hooks/useThrottleEffect.js +1 -1
  239. package/hooks/useThrottleFn.js +1 -1
  240. package/hooks/useTimeout.js +1 -1
  241. package/hooks/useTitle.js +1 -1
  242. package/hooks/useToggle.js +1 -1
  243. package/hooks/useTrackedEffect.js +1 -1
  244. package/hooks/useUnmount.js +1 -1
  245. package/hooks/useUnmountedRef.js +1 -1
  246. package/hooks/useUpdate.js +1 -1
  247. package/hooks/useUpdateEffect.js +1 -1
  248. package/hooks/useUpdateLayoutEffect.js +1 -1
  249. package/hooks/useUrlState.js +1 -1
  250. package/hooks/useVirtualList.js +1 -1
  251. package/hooks/useWatch.js +1 -1
  252. package/hooks/useWebSocket.js +1 -1
  253. package/hooks/useWhyDidYouUpdate.js +1 -1
  254. package/hooks/useWindowSize.js +1 -1
  255. package/hooks/utils/createEffectWithTarget.js +1 -1
  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 +1 -1
  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/hooks/utils.js +1 -1
  270. package/icons/file/index.js +1 -1
  271. package/icons/file.js +1 -1
  272. package/index.js +641 -48
  273. package/motion/CSSMotion.js +1 -1
  274. package/motion/CSSMotionList.js +1 -1
  275. package/motion/context.js +1 -1
  276. package/motion/hooks/useDomMotionEvents.js +1 -1
  277. package/motion/hooks/useNextFrame.js +1 -1
  278. package/motion/hooks/useStatus.js +1 -1
  279. package/motion/hooks/useStepQueue.js +1 -1
  280. package/motion/index.js +1 -1
  281. package/motion/interface.js +1 -1
  282. package/motion/util/diff.js +1 -1
  283. package/motion/util/motion.js +11 -10
  284. package/package.json +1 -1
  285. package/progress/index.js +40 -53
  286. package/resize-observer/Collection.js +1 -1
  287. package/resize-observer/SingleObserver.js +1 -1
  288. package/resize-observer/index.js +1 -1
  289. package/resize-observer/observerUtil.js +1 -1
  290. package/space/index.js +79 -88
  291. package/style.css +1 -1
  292. package/suspense-fallback-test/index.js +1 -1
  293. package/transition-group/CSSTransition.js +36 -35
  294. package/transition-group/ChildMapping.js +1 -1
  295. package/transition-group/PqbCSSTransition.js +1 -1
  296. package/transition-group/ReplaceTransition.js +1 -1
  297. package/transition-group/SwitchTransition.js +1 -1
  298. package/transition-group/Transition.js +2 -1
  299. package/transition-group/TransitionGroup.js +1 -1
  300. package/transition-group/TransitionGroupContext.js +1 -1
  301. package/transition-group/index.js +27 -26
  302. package/types/development/interface.d.ts +3 -2
  303. package/types/flex/index.d.ts +6 -5
  304. package/types/flex/interface.d.ts +13 -12
  305. package/types/flex/utils.d.ts +19 -0
  306. package/types/hooks/index.d.ts +1 -0
  307. package/types/hooks/use-paste-image/index.d.ts +3 -0
  308. package/types/hooks/use-theme/index.d.ts +2 -2
  309. package/types/index.d.ts +3 -1
  310. package/types/motion/hooks/useStepQueue.d.ts +1 -1
  311. package/types/progress/index.d.ts +0 -28
  312. package/types/space/index.d.ts +4 -4
  313. package/types/space/interface.d.ts +17 -10
  314. package/types/transition-group/index.d.ts +10 -10
  315. package/types/utils/callOrReturn.d.ts +1 -0
  316. package/types/utils/date.d.ts +1 -1
  317. package/types/utils/dom.d.ts +8 -9
  318. package/types/utils/fileRead.d.ts +1 -0
  319. package/types/utils/fileToDataURL.d.ts +1 -0
  320. package/types/utils/index.d.ts +3 -1
  321. package/types/utils/is.d.ts +3 -2
  322. package/types/utils/ref.d.ts +11 -11
  323. package/types/utils/scrollIntoViewIfNeeded.d.ts +1 -1
  324. package/types/utils/tree.d.ts +1 -1
  325. package/types/utils/uuid.d.ts +1 -1
  326. package/types/utils/validate.d.ts +2 -1
  327. package/utils/callOrReturn.js +6 -0
  328. package/utils/callbackOriginRef.js +1 -1
  329. package/utils/caseName.js +1 -1
  330. package/utils/className.js +1 -1
  331. package/utils/compute.js +1 -1
  332. package/utils/constant.js +1 -1
  333. package/utils/copy.js +1 -1
  334. package/utils/date.js +8 -2
  335. package/utils/dayjs.js +1 -1
  336. package/utils/dom.js +19 -25
  337. package/utils/emitter.js +1 -1
  338. package/utils/fileRead.js +6 -0
  339. package/utils/fileToDataURL.js +6 -0
  340. package/utils/fillNBSP.js +1 -1
  341. package/utils/findRootElement.js +15 -15
  342. package/utils/findScrollParent.js +1 -1
  343. package/utils/getHighlightText.js +1 -1
  344. package/utils/getHotkeyHandler.js +1 -1
  345. package/utils/getStringLength.js +1 -1
  346. package/utils/include.js +6 -6
  347. package/utils/index.js +378 -340
  348. package/utils/intersectionObserver.js +1 -1
  349. package/utils/is.js +118 -79
  350. package/utils/keyboardCode.js +1 -1
  351. package/utils/lodash.js +1 -1
  352. package/utils/math.js +1 -1
  353. package/utils/mergeProps.js +1 -1
  354. package/utils/mergedToString.js +1 -1
  355. package/utils/mutationObserver.js +1 -1
  356. package/utils/omit.js +1 -1
  357. package/utils/pad.js +1 -1
  358. package/utils/pick.js +1 -1
  359. package/utils/pinyin.js +1 -1
  360. package/utils/react19Adapter.js +1 -1
  361. package/utils/ref.js +1 -1
  362. package/utils/resizeObserver.js +1 -1
  363. package/utils/saveAs.js +1 -1
  364. package/utils/screenfull.js +1 -1
  365. package/utils/scrollIntoViewIfNeeded.js +1 -1
  366. package/utils/setCreateRoot.js +1 -1
  367. package/utils/setDarkTheme.js +1 -1
  368. package/utils/setDir.js +1 -1
  369. package/utils/setPrimaryColor.js +1 -1
  370. package/utils/setTheme.js +1 -1
  371. package/utils/string.js +1 -1
  372. package/utils/style.js +1 -1
  373. package/utils/throttleByRaf.js +1 -1
  374. package/utils/throttleByRaf2.js +1 -1
  375. package/utils/tinycolor.js +1 -1
  376. package/utils/toArray.js +1 -1
  377. package/utils/tree.js +7 -9
  378. package/utils/tween.js +1 -1
  379. package/utils/uuid.js +5 -4
  380. package/utils/validate.js +14 -16
  381. package/utils/warning.js +1 -1
  382. package/flex/interface.js +0 -10
  383. package/types/utils/fileToURL.d.ts +0 -1
  384. package/utils/fileToURL.js +0 -6
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import o, { useRef as _ } from "react";
3
3
  import h from "@unicom-cloud/utils/class-name";
4
4
  import { findRootElement as V } from "../utils/findRootElement.js";
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import { jsx as f } from "react/jsx-runtime";
3
3
  import l, { createElement as A } from "react";
4
4
  import h from "./CSSMotion.js";
package/motion/context.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import { jsx as r } from "react/jsx-runtime";
3
3
  import e from "react";
4
4
  const n = e.createContext({});
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import f, { useRef as s } from "react";
3
3
  import { transitionEndName as c, animationEndName as u } from "../util/motion.js";
4
4
  function a(e) {
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import a from "react";
3
3
  function f() {
4
4
  const e = a.useRef(null);
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import Q, { useRef as d, useEffect as x } from "react";
3
3
  import st from "../../hooks/use-event/index.js";
4
4
  import ct from "../../hooks/use-isomorphic-layout-effect/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import l from "react";
3
3
  import x from "../../hooks/use-isomorphic-layout-effect/index.js";
4
4
  import A from "../../hooks/use-safe-state/index.js";
package/motion/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import t from "./CSSMotion.js";
3
3
  import { default as a } from "./CSSMotionList.js";
4
4
  import { default as i } from "./context.js";
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  const T = "none", E = "appear", n = "enter", t = "leave", S = "none", e = "prepare", o = "start", A = "active", P = "end", c = "prepared";
3
3
  export {
4
4
  E as STATUS_APPEAR,
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  const d = "add", l = "keep", p = "remove", b = "removed";
3
3
  function E(s) {
4
4
  let n;
@@ -1,19 +1,20 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import d from "@unicom-cloud/utils/dom-helpers/canUseDOM";
3
+ import "@unicom-cloud/utils/dom-helpers/getElementCoordinates";
3
4
  import "@unicom-cloud/utils/dom-helpers/reflow";
4
5
  import "../../utils/is.js";
5
6
  function a(n, t) {
6
7
  const i = {};
7
8
  return i[n.toLowerCase()] = t.toLowerCase(), i[`Webkit${n}`] = `webkit${t}`, i[`Moz${n}`] = `moz${t}`, i[`ms${n}`] = `MS${t}`, i[`O${n}`] = `o${t.toLowerCase()}`, i;
8
9
  }
9
- function m(n, t) {
10
+ function u(n, t) {
10
11
  const i = {
11
12
  animationend: a("Animation", "AnimationEnd"),
12
13
  transitionend: a("Transition", "TransitionEnd")
13
14
  };
14
15
  return n && ("AnimationEvent" in t || delete i.animationend.animation, "TransitionEvent" in t || delete i.transitionend.transition), i;
15
16
  }
16
- const l = m(
17
+ const l = u(
17
18
  d,
18
19
  typeof window < "u" ? window : {}
19
20
  );
@@ -34,8 +35,8 @@ function f(n) {
34
35
  }
35
36
  return "";
36
37
  }
37
- const p = f("animationend"), u = f("transitionend"), x = !!(p && u), b = p || "animationend", g = u || "transitionend";
38
- function M(n, t) {
38
+ const p = f("animationend"), m = f("transitionend"), b = !!(p && m), g = p || "animationend", M = m || "transitionend";
39
+ function O(n, t) {
39
40
  if (!n) return null;
40
41
  if (typeof n == "object") {
41
42
  const i = t.replace(
@@ -47,10 +48,10 @@ function M(n, t) {
47
48
  return `${n}-${t}`;
48
49
  }
49
50
  export {
50
- b as animationEndName,
51
- M as getTransitionName,
51
+ g as animationEndName,
52
+ O as getTransitionName,
52
53
  f as getVendorPrefixedEventName,
53
- m as getVendorPrefixes,
54
- x as supportTransition,
55
- g as transitionEndName
54
+ u as getVendorPrefixes,
55
+ b as supportTransition,
56
+ M as transitionEndName
56
57
  };
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@unicom-cloud/ui-common","version":"0.1.8","dependencies":{"dayjs":"^1.11.19","lodash":"^4.17.21","@unicom-cloud/utils":"^0.1.0","@unicom-cloud/icons":"^0.1.0"},"peerDependencies":{"react":"^18.3.1","react-dom":"^18.3.1","react-is":"^18.3.1"},"type":"module","types":"types/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
1
+ {"name":"@unicom-cloud/ui-common","version":"0.1.10","dependencies":{"@unicom-cloud/utils":"^0.1.0","@unicom-cloud/icons":"^0.1.0"},"peerDependencies":{"dayjs":"^1.11.19","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1","react-is":"^18.3.1"},"type":"module","types":"types/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
package/progress/index.js CHANGED
@@ -1,19 +1,19 @@
1
- /* 2025-11-28 16:31:16 */
2
- import { UI_COMMON_PREFIX as u } from "@unicom-cloud/utils/constant/ui";
1
+ /* 2025-12-22 09:21:00 */
2
+ import { UI_COMMON_PREFIX as a } from "@unicom-cloud/utils/constant/ui";
3
3
  import "../utils/is.js";
4
- import { isNumber as f } from "@unicom-cloud/utils/is";
4
+ import { isNumber as u } from "@unicom-cloud/utils/is";
5
5
  const t = {
6
6
  status: null,
7
7
  settings: {
8
8
  parent: document.body,
9
9
  progress: document.createElement("div"),
10
10
  bar: document.createElement("div"),
11
- minimum: 0.08,
12
- easing: "linear",
13
- positionUsing: "",
14
- speed: 200,
11
+ minimum: 0.07,
12
+ easing: "ease-out",
13
+ positionUsing: "translate",
14
+ speed: 227,
15
15
  trickle: !0,
16
- trickleSpeed: 200
16
+ trickleSpeed: 227
17
17
  },
18
18
  /**
19
19
  * Updates configuration.
@@ -33,24 +33,16 @@ const t = {
33
33
  */
34
34
  set(e) {
35
35
  const s = t.isStarted();
36
- e = c(e, t.settings.minimum, 1), t.status = e === 1 ? null : e;
37
- const r = t.render(!s), i = t.settings.speed, l = t.settings.easing;
38
- return r.offsetWidth, b(function(o) {
39
- t.settings.positionUsing === "" && (t.settings.positionUsing = t.getPositioningCSS()), n(t.settings.bar, m(e, i, l)), e === 1 ? (n(r, {
40
- transition: "none",
41
- opacity: 1
42
- }), r.offsetWidth, setTimeout(function() {
43
- n(r, {
44
- transition: `all ${i}ms linear`,
45
- opacity: 0
46
- }), setTimeout(function() {
47
- t.remove(), o();
48
- }, i);
49
- }, i)) : setTimeout(o, i);
36
+ e = g(e, t.settings.minimum, 1), t.status = e === 1 ? null : e;
37
+ const r = t.render(!s), i = t.settings.speed;
38
+ return r.offsetWidth, m(function(n) {
39
+ f(t.settings.bar, c(e, i)), e === 1 ? (r.offsetWidth, setTimeout(function() {
40
+ t.remove(), n();
41
+ }, i)) : setTimeout(n, i);
50
42
  }), t;
51
43
  },
52
44
  isStarted() {
53
- return f(t.status);
45
+ return u(t.status);
54
46
  },
55
47
  /**
56
48
  * Shows the progress bar.
@@ -60,7 +52,7 @@ const t = {
60
52
  *
61
53
  */
62
54
  start() {
63
- return t.status || t.set(0), t.settings.trickle && p(), t;
55
+ return t.status || t.set(0), t.settings.trickle && l(), t;
64
56
  },
65
57
  /**
66
58
  * Hides the progress bar.
@@ -81,7 +73,10 @@ const t = {
81
73
  */
82
74
  inc(e) {
83
75
  let s = t.status;
84
- return s ? s > 1 ? void 0 : (f(e) || (s >= 0 && s < 0.2 ? e = 0.1 : s >= 0.2 && s < 0.5 ? e = 0.04 : s >= 0.5 && s < 0.8 ? e = 0.02 : s >= 0.8 && s < 0.99 ? e = 5e-3 : e = 0), s = c(s + e, 0, 0.994), t.set(s)) : t.start();
76
+ if (!s)
77
+ return t.start();
78
+ if (!(s > 1))
79
+ return u(e) || (s >= 0 && s < 0.2 && (e = 0.1), s >= 0.2 && s < 0.5 && (e = 0.04), s >= 0.5 && s < 0.8 && (e = 0.02), s >= 0.8 && s < 0.99 && (e = 5e-3)), e ??= 7e-4, s = g(s + e, 0, 0.994), t.set(s);
85
80
  },
86
81
  trickle() {
87
82
  return t.inc();
@@ -95,56 +90,48 @@ const t = {
95
90
  return t.settings.progress;
96
91
  t.settings.progress.hasAttribute("class"), t.settings.bar.hasAttribute("class"), t.settings.progress.setAttribute(
97
92
  "class",
98
- `${u}-progress`
93
+ `${a}-progress`
99
94
  ), t.settings.bar.setAttribute(
100
95
  "class",
101
- `${u}-progress-bar`
102
- ), t.settings.progress.contains(t.settings.bar) || t.settings.progress.appendChild(t.settings.bar);
103
- let s = e ? "-100" : a(t.status || 0);
104
- return n(t.settings.bar, {
105
- transition: "all 0 linear",
106
- transform: `translate3d(${s}%,0,0)`
107
- }), t.settings.parent.appendChild(t.settings.progress), t.settings.progress;
96
+ `${a}-progress-bar`
97
+ ), t.settings.progress.contains(t.settings.bar) || t.settings.progress.append(t.settings.bar);
98
+ let s = e ? "-100" : p(t.status || 0);
99
+ return f(t.settings.bar, c(0, s)), t.settings.parent.append(t.settings.progress), t.settings.progress;
108
100
  },
109
101
  /**
110
102
  * Removes the element. Opposite of render().
111
103
  */
112
104
  remove() {
113
105
  t.settings.progress.remove();
114
- },
115
- /**
116
- * Determine which positioning CSS rule to use.
117
- */
118
- getPositioningCSS() {
119
- const e = t.settings.parent.style;
120
- return "perspective" in e ? "translate3d" : "transform" in e ? "translate" : "margin";
121
106
  }
122
107
  };
123
- function c(e, s, r) {
108
+ function g(e, s, r) {
124
109
  return Math.max(Math.min(e, r), s);
125
110
  }
126
- function a(e) {
111
+ function p(e) {
127
112
  return (-1 + e) * 100;
128
113
  }
129
- function m(e, s, r) {
130
- let i;
131
- return t.settings.positionUsing === "translate3d" ? i = { transform: `translate3d(${a(e)}%,0,0)` } : t.settings.positionUsing === "translate" ? i = { transform: `translate(${a(e)}%,0)` } : i = { "margin-left": `${a(e)}%` }, i.transition = `all ${s}ms ${r}`, i;
114
+ function c(e, s, r = t.settings.easing) {
115
+ return {
116
+ transform: `translate(${p(e)}%,0)`,
117
+ transition: `transform ${s}ms ${r}`
118
+ };
132
119
  }
133
- function p() {
120
+ function l() {
134
121
  setTimeout(() => {
135
- t.status && (t.trickle(), p());
122
+ t.status && (t.trickle(), l());
136
123
  }, t.settings.trickleSpeed);
137
124
  }
138
- const g = [];
125
+ const o = [];
139
126
  function d() {
140
- const e = g.shift();
127
+ const e = o.shift();
141
128
  e && e(d);
142
129
  }
143
- function b(e) {
144
- g.push(e), g.length === 1 && d();
130
+ function m(e) {
131
+ o.push(e), o.length && d();
145
132
  }
146
- function n(e, s) {
147
- Object.entries(s).forEach(([r, i], l, o) => {
133
+ function f(e, s) {
134
+ Object.entries(s).forEach(([r, i], n, b) => {
148
135
  i === void 0 || (e.style[r] = i);
149
136
  });
150
137
  }
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import { jsx as R } from "react/jsx-runtime";
3
3
  import e from "react";
4
4
  const i = e.createContext(null);
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import e from "react";
3
3
  import { findRootElement as I } from "../utils/findRootElement.js";
4
4
  import { supportRef as S, getReactElementRef as y, useComposeRef as P } from "../utils/ref.js";
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import c, { createElement as m } from "react";
3
3
  import { toArray as a } from "../utils/toArray.js";
4
4
  import { warning as t } from "../utils/warning.js";
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  const s = /* @__PURE__ */ new Map();
3
3
  function f(e) {
4
4
  e.forEach((r) => {
package/space/index.js CHANGED
@@ -1,94 +1,85 @@
1
- /* 2025-11-28 16:31:16 */
2
- import { jsx as n, jsxs as M } from "react/jsx-runtime";
3
- import { UI_COMMON_PREFIX as _ } from "@unicom-cloud/utils/constant/ui";
4
- import { forwardRef as $, useRef as O, useImperativeHandle as b, Fragment as k } from "react";
5
- import { GAP_SIZE_MAP as d } from "../flex/interface.js";
6
- import F from "../hooks/use-merge-props/index.js";
7
- import H from "@unicom-cloud/utils/class-name";
8
- import "../utils/is.js";
9
- import { toArray as L } from "../utils/toArray.js";
10
- import { isString as U, isNumber as g, isArray as X } from "@unicom-cloud/utils/is";
11
- const Z = {
12
- size: "small",
1
+ /* 2025-12-22 09:21:00 */
2
+ import { jsx as o, jsxs as k } from "react/jsx-runtime";
3
+ import { UI_COMMON_PREFIX as H } from "@unicom-cloud/utils/constant/ui";
4
+ import { forwardRef as g, useRef as O, useImperativeHandle as _, Fragment as A } from "react";
5
+ import L from "../flex/index.js";
6
+ import U from "../hooks/use-merge-props/index.js";
7
+ import X from "@unicom-cloud/utils/class-name";
8
+ import { toArray as b } from "../utils/toArray.js";
9
+ const q = {
10
+ gap: "small",
13
11
  direction: "horizontal"
14
- }, l = $(
15
- (a, s) => {
16
- const S = F(
17
- a,
18
- Z,
19
- {}
20
- ), {
21
- className: h,
22
- style: N,
23
- children: G,
24
- gap: w,
25
- size: x,
26
- direction: i = "horizontal",
27
- align: P,
28
- alignItems: R,
29
- justifyContent: p,
30
- wrap: V,
31
- separator: m,
32
- rtl: j,
33
- ...v
34
- } = S, e = `${_}-space`, t = w ?? x, u = R ?? P ?? (i === "horizontal" ? "center" : ""), z = H(
35
- e,
36
- {
37
- [`${e}-${i}`]: i,
38
- [`${e}-justify-content-${p}`]: p,
39
- [`${e}-align-items-${u}`]: u,
40
- [`${e}-rtl`]: j
41
- },
42
- V ? `${e}-wrap` : `${e}-no-wrap`,
43
- h
44
- ), c = (r) => g(r) ? r : d[r] ?? d.small, A = {
45
- ...(() => {
46
- if (U(t) || g(t))
47
- return {
48
- gap: `${c(t)}px`
49
- };
50
- if (X(t)) {
51
- const r = c(t[1]), o = c(t[0]);
52
- return {
53
- rowGap: `${r}px`,
54
- columnGap: `${o}px`
55
- };
56
- }
57
- return {};
58
- })(),
59
- ...N
60
- }, I = L(G), f = O(null);
61
- return b(s, () => ({
62
- getRootElement() {
63
- return f.current;
64
- }
65
- })), /* @__PURE__ */ n(
66
- "div",
67
- {
68
- ref: f,
69
- className: z,
70
- style: A,
71
- ...v,
72
- children: I.map((r, o) => {
73
- const C = r?.key ?? o, E = m != null && o > 0;
74
- return /* @__PURE__ */ M(k, { children: [
75
- E && /* @__PURE__ */ n("div", { className: `${e}-item-separator`, children: m }),
76
- /* @__PURE__ */ n("div", { className: `${e}-item`, children: r })
77
- ] }, C);
78
- })
79
- }
80
- );
81
- }
82
- );
83
- l.displayName = "Space";
84
- const y = $(
85
- (a, s) => /* @__PURE__ */ n(l, { ...a, ref: s, direction: "vertical" })
12
+ };
13
+ function B(n, s) {
14
+ const h = U(
15
+ n,
16
+ q,
17
+ {}
18
+ ), {
19
+ className: v,
20
+ style: w,
21
+ children: N,
22
+ size: R,
23
+ gap: j,
24
+ direction: r,
25
+ justifyContent: i,
26
+ align: x,
27
+ alignItems: C,
28
+ wrap: l,
29
+ separator: c,
30
+ rtl: m,
31
+ legacy: I,
32
+ ...P
33
+ } = h, e = `${H}-space`, z = ["horizontal", "row-reverse", "row"].includes(
34
+ r
35
+ ), E = { horizontal: "row", vertical: "column" }[r] ?? r, p = I ? { start: "flex-start", end: "flex-end" } : {}, a = p[i] ?? i;
36
+ let t = C ?? x ?? (z ? "center" : void 0);
37
+ t = p[t] ?? t;
38
+ const M = X(
39
+ e,
40
+ {
41
+ [`${e}-${r}`]: r,
42
+ [`${e}-justify-content-${a}`]: a,
43
+ [`${e}-align-items-${t}`]: t,
44
+ [`${e}-rtl`]: m
45
+ },
46
+ l ? `${e}-wrap` : `${e}-no-wrap`,
47
+ v
48
+ ), S = b(N), d = O(null);
49
+ return _(s, () => ({
50
+ getRootElement() {
51
+ return d.current.getRootElement();
52
+ }
53
+ })), /* @__PURE__ */ o(
54
+ L,
55
+ {
56
+ ref: d,
57
+ style: w,
58
+ className: M,
59
+ gap: j ?? R,
60
+ wrap: l,
61
+ justifyContent: a,
62
+ alignItems: t,
63
+ direction: E,
64
+ rtl: m,
65
+ inline: !0,
66
+ ...P,
67
+ children: S.map((f, u) => {
68
+ const F = f?.key ?? u, V = c != null && u > 0;
69
+ return /* @__PURE__ */ k(A, { children: [
70
+ V && /* @__PURE__ */ o("div", { className: `${e}-item-separator`, children: c }),
71
+ /* @__PURE__ */ o("div", { className: `${e}-item`, children: f })
72
+ ] }, F);
73
+ })
74
+ }
75
+ );
76
+ }
77
+ const $ = g(B), y = g(
78
+ (n, s) => /* @__PURE__ */ o($, { ...n, ref: s, direction: "vertical" })
86
79
  );
87
80
  y.displayName = "SpaceVertical";
88
- const re = Object.assign(l, {
89
- Vertical: y
90
- });
81
+ $.Vertical = y;
91
82
  export {
92
83
  y as SpaceVertical,
93
- re as default
84
+ $ as default
94
85
  };
package/style.css CHANGED
@@ -1 +1 @@
1
- :root{--pi: 3.141592653589793}@keyframes pqbc-keyframes-vibrate{0%{transform:translate(0)}20%{transform:translate(-2px,2px)}40%{transform:translate(-2px,-2px)}60%{transform:translate(2px,2px)}80%{transform:translate(2px,-2px)}to{transform:translate(0)}}@keyframes pqbc-keyframes-rotate-360deg{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pqbc-keyframes-blink{0%{opacity:1}50%{opacity:0}to{opacity:1}}.pqbc-animation-rotate-360deg{animation:pqbc-keyframes-rotate-360deg 1s infinite cubic-bezier(0,0,1,1)}.pqbc-animation-vibrate{animation:pqbc-keyframes-vibrate .3s linear infinite both}.pqbc-animation-blink-enter,.pqbc-animation-blink-appear{opacity:0}.pqbc-animation-blink-enter-active,.pqbc-animation-blink-appear-active{opacity:1;transition:opacity .3s linear}.pqbc-animation-blink-enter-done{animation:pqbc-keyframes-blink .5s linear}.pqbc-display-none{display:none!important}.pqbc-visibility-hidden{visibility:hidden!important}.pqbc-overflow-hidden{overflow:hidden}.pqbc-cursor-pointer{cursor:pointer}.pqbc-filter-invert-100{filter:invert(100%)}.pqbc-filter-grayscale-100{filter:grayscale(100%)}.pqbc-isolation-isolate{isolation:isolate}.pqbc-direction-rtl{direction:rtl}.pqbc-line-height-1{line-height:1}.pqbc-text-overflow-ellipsis{text-overflow:ellipsis;white-space:nowrap;word-break:break-all;overflow:hidden}.pqbc-line-clamp-2,.pqbc-line-clamp-3,.pqbc-line-clamp-4,.pqbc-line-clamp-5{display:-webkit-box;display:-moz-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal}.pqbc-line-clamp-2{line-clamp:2;-webkit-line-clamp:2}.pqbc-line-clamp-3{line-clamp:3;-webkit-line-clamp:3}.pqbc-line-clamp-4{line-clamp:4;-webkit-line-clamp:4}.pqbc-line-clamp-5{line-clamp:5;-webkit-line-clamp:5}.pqb-theme-dark,.pqbm-theme-dark,.pqb-theme-dark *,.pqbm-theme-dark *{color-scheme:dark}[dir=rtl] *{direction:rtl}.pqbc-empty{width:100%}.pqbc-empty .pqbc-empty-description{line-height:1}.pqbc-development{width:100%;height:100%;min-height:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px}.pqbc-development-icon,.pqbc-development-img{width:50px;height:50px}.pqbc-development-label{font-size:20px;color:var(--pqbc-color-neutral-6, var(--pqb-color-neutral-6, var(--pqbm-color-neutral-6, #868788)))}.pqbc-space{display:inline-flex;flex-wrap:nowrap}.pqbc-space-vertical{flex-direction:column;width:100%}.pqbc-space-align-items-baseline{align-items:baseline}.pqbc-space-align-items-start{align-items:flex-start}.pqbc-space-align-items-end{align-items:flex-end}.pqbc-space-align-items-center{align-items:center}.pqbc-space-justify-content-baseline{justify-content:baseline}.pqbc-space-justify-content-start{justify-content:flex-start}.pqbc-space-justify-content-end{justify-content:flex-end}.pqbc-space-justify-content-center{justify-content:center}.pqbc-space-justify-content-space-between{justify-content:space-between}.pqbc-space-wrap{flex-wrap:wrap}.pqbc-space-rtl{direction:rtl}.pqbc-icons-file{position:relative}.pqbc-icons-file-svg{width:30px;height:30px}.pqbc-icons-file-svg-bg{fill:rgb(var(--pqb-primary-6, --pqbm-primary-6, 20, 118, 241))}.pqbc-icons-file-svg-tr{fill:#fff;fill-opacity:.7}.pqbc-icons-file-svg-text{fill:#fff;font-weight:bolder;font-size:66px;text-align:center}.pqbc-flex{display:flex;margin:0;padding:0;box-sizing:border-box}.pqbc-flex-inline{display:inline-flex}.pqbc-flex:empty{display:none}.pqbc-flex-rtl{direction:rtl}.pqbc-progress{pointer-events:none}.pqbc-progress-bar{--pqb-primary: 26, 94, 255;background-color:rgb(var(--pqb-primary-6, --pqbm-primary-6, --pqbc-primary-6, --pqb-primary));position:fixed;z-index:870227;top:0;left:0;width:100%;height:2px}
1
+ :root{--pi: 3.141592653589793}@keyframes pqbc-keyframes-vibrate{0%{transform:translate(0)}20%{transform:translate(-2px,2px)}40%{transform:translate(-2px,-2px)}60%{transform:translate(2px,2px)}80%{transform:translate(2px,-2px)}to{transform:translate(0)}}@keyframes pqbc-keyframes-rotate-360deg{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pqbc-keyframes-blink{0%{opacity:1}50%{opacity:0}to{opacity:1}}.pqbc-animation-rotate-360deg{animation:pqbc-keyframes-rotate-360deg 1s infinite cubic-bezier(0,0,1,1)}.pqbc-animation-vibrate{animation:pqbc-keyframes-vibrate .3s linear infinite both}.pqbc-animation-blink-enter,.pqbc-animation-blink-appear{opacity:0}.pqbc-animation-blink-enter-active,.pqbc-animation-blink-appear-active{opacity:1;transition:opacity .3s linear}.pqbc-animation-blink-enter-done{animation:pqbc-keyframes-blink .5s linear}.pqbc-display-none{display:none!important}.pqbc-visibility-hidden{visibility:hidden!important}.pqbc-overflow-hidden{overflow:hidden}.pqbc-cursor-pointer{cursor:pointer}.pqbc-filter-invert-100{filter:invert(100%)}.pqbc-filter-grayscale-100{filter:grayscale(100%)}.pqbc-isolation-isolate{isolation:isolate}.pqbc-direction-rtl{direction:rtl}.pqbc-line-height-1{line-height:1}.pqbc-text-overflow-ellipsis{text-overflow:ellipsis;white-space:nowrap;word-break:break-all;overflow:hidden}.pqbc-line-clamp-2,.pqbc-line-clamp-3,.pqbc-line-clamp-4,.pqbc-line-clamp-5{display:-webkit-box;display:-moz-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal}.pqbc-line-clamp-2{line-clamp:2;-webkit-line-clamp:2}.pqbc-line-clamp-3{line-clamp:3;-webkit-line-clamp:3}.pqbc-line-clamp-4{line-clamp:4;-webkit-line-clamp:4}.pqbc-line-clamp-5{line-clamp:5;-webkit-line-clamp:5}.pqb-theme-dark,.pqbm-theme-dark,.pqb-theme-dark *,.pqbm-theme-dark *{color-scheme:dark}[dir=rtl] *{direction:rtl}.pqbc-empty{width:100%}.pqbc-empty .pqbc-empty-description{line-height:1}.pqbc-development{width:100%;height:100%;min-height:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px}.pqbc-development-icon,.pqbc-development-img{width:50px;height:50px}.pqbc-development-label{font-size:20px;--color-neutral: #868788;color:var(--pqbc-color-neutral-6, var(--pqb-color-neutral-6, var(--pqbm-color-neutral-6, --color-neutral)))}.pqbc-space-vertical{width:100%}.pqbc-space-rtl{direction:rtl}.pqbc-icons-file{position:relative}.pqbc-icons-file-svg{width:30px;height:30px}.pqbc-icons-file-svg-bg{--primary: 26, 94, 255;fill:rgb(var(--pqbc-primary-6, var(--pqb-primary-6, var(--pqbm-primary-6, --primary))))}.pqbc-icons-file-svg-tr{fill:#fff;fill-opacity:.7}.pqbc-icons-file-svg-text{fill:#fff;font-weight:bolder;font-size:66px;text-align:center}.pqbc-flex{display:flex;margin:0;padding:0;box-sizing:border-box}.pqbc-flex-inline{display:inline-flex}.pqbc-flex:empty{display:none}.pqbc-flex-rtl{direction:rtl}.pqbc-progress{pointer-events:none}.pqbc-progress-bar{--primary: 26, 94, 255;background-color:rgb(var(--pqbc-primary-6, var(--pqb-primary-6, var(--pqbm-primary-6, --primary))));position:fixed;z-index:870227;inset-block-start:0;inset-inline-start:0;width:100%;height:2px}
@@ -1,4 +1,4 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import { jsx as o } from "react/jsx-runtime";
3
3
  import e from "react";
4
4
  const a = (n, r) => {
@@ -1,55 +1,56 @@
1
- /* 2025-11-28 16:31:16 */
1
+ /* 2025-12-22 09:21:00 */
2
2
  import { jsx as h } from "react/jsx-runtime";
3
3
  import m from "react";
4
4
  import "@unicom-cloud/utils/dom-helpers/canUseDOM";
5
+ import "@unicom-cloud/utils/dom-helpers/getElementCoordinates";
5
6
  import d from "@unicom-cloud/utils/dom-helpers/reflow";
6
7
  import "../utils/is.js";
7
8
  import { findRootElement as c } from "../utils/findRootElement.js";
8
9
  import E from "./Transition.js";
9
10
  import { isString as a } from "@unicom-cloud/utils/is";
10
- function o(r, e, s = "add") {
11
- r instanceof Element && e && a(e) && e.split(" ").filter(Boolean).forEach((t, i, n) => {
12
- r.classList[s](t);
11
+ function o(r, t, s = "add") {
12
+ r instanceof Element && t && a(t) && t.split(" ").filter(Boolean).forEach((e, i, n) => {
13
+ r.classList[s](e);
13
14
  });
14
15
  }
15
- class A extends m.Component {
16
+ class S extends m.Component {
16
17
  constructor() {
17
18
  super(...arguments), this.appliedClasses = {
18
19
  appear: {},
19
20
  enter: {},
20
21
  exit: {}
21
- }, this.onEnter = (e, s) => {
22
- const [t, i] = this.resolveArguments(
23
- e,
22
+ }, this.onEnter = (t, s) => {
23
+ const [e, i] = this.resolveArguments(
24
+ t,
24
25
  s
25
26
  );
26
- this.removeClasses(t, "exit"), this.addClass(t, i ? "appear" : "enter", "base"), this.props.onEnter && this.props.onEnter(t, s);
27
- }, this.onEntering = (e, s) => {
28
- const [t, i] = this.resolveArguments(
29
- e,
27
+ this.removeClasses(e, "exit"), this.addClass(e, i ? "appear" : "enter", "base"), this.props.onEnter && this.props.onEnter(e, s);
28
+ }, this.onEntering = (t, s) => {
29
+ const [e, i] = this.resolveArguments(
30
+ t,
30
31
  s
31
32
  ), n = i ? "appear" : "enter";
32
- this.addClass(t, n, "active"), this.props.onEntering && this.props.onEntering(t, s);
33
- }, this.onEntered = (e, s) => {
34
- const [t, i] = this.resolveArguments(
35
- e,
33
+ this.addClass(e, n, "active"), this.props.onEntering && this.props.onEntering(e, s);
34
+ }, this.onEntered = (t, s) => {
35
+ const [e, i] = this.resolveArguments(
36
+ t,
36
37
  s
37
38
  ), n = i ? "appear" : "enter";
38
- this.removeClasses(t, n), this.addClass(t, n, "done"), this.props.onEntered && this.props.onEntered(t, s);
39
- }, this.onExit = (e) => {
40
- const [s] = this.resolveArguments(e);
39
+ this.removeClasses(e, n), this.addClass(e, n, "done"), this.props.onEntered && this.props.onEntered(e, s);
40
+ }, this.onExit = (t) => {
41
+ const [s] = this.resolveArguments(t);
41
42
  this.removeClasses(s, "appear"), this.removeClasses(s, "enter"), this.addClass(s, "exit", "base"), this.props.onExit && this.props.onExit(s);
42
- }, this.onExiting = (e) => {
43
- const [s] = this.resolveArguments(e);
43
+ }, this.onExiting = (t) => {
44
+ const [s] = this.resolveArguments(t);
44
45
  this.addClass(s, "exit", "active"), this.props.onExiting && this.props.onExiting(s);
45
- }, this.onExited = (e) => {
46
- const [s] = this.resolveArguments(e);
46
+ }, this.onExited = (t) => {
47
+ const [s] = this.resolveArguments(t);
47
48
  this.removeClasses(s, "exit"), this.addClass(s, "exit", "done"), this.props.onExited && this.props.onExited(s);
48
- }, this.resolveArguments = (e, s) => [
49
- c(this.props.refElement) || e,
49
+ }, this.resolveArguments = (t, s) => [
50
+ c(this.props.refElement) || t,
50
51
  s
51
- ], this.getClassNames = (e) => {
52
- const { classNames: s } = this.props, t = a(s), i = t && s ? `${s}-` : "", n = t ? `${i}${e}` : s[e], p = t ? `${n}-active` : s[`${e}Active`], l = t ? `${n}-done` : s[`${e}Done`];
52
+ ], this.getClassNames = (t) => {
53
+ const { classNames: s } = this.props, e = a(s), i = e && s ? `${s}-` : "", n = e ? `${i}${t}` : s[t], p = e ? `${n}-active` : s[`${t}Active`], l = e ? `${n}-done` : s[`${t}Done`];
53
54
  return {
54
55
  baseClassName: n,
55
56
  activeClassName: p,
@@ -62,21 +63,21 @@ class A extends m.Component {
62
63
  classNames: ""
63
64
  };
64
65
  }
65
- addClass(e, s, t) {
66
- let i = this.getClassNames(s)[`${t}ClassName`];
66
+ addClass(t, s, e) {
67
+ let i = this.getClassNames(s)[`${e}ClassName`];
67
68
  const { doneClassName: n } = this.getClassNames("enter");
68
- s === "appear" && t === "done" && n && (i += ` ${n}`), t === "active" && e && d(e), i && (this.appliedClasses[s][t] = i, o(e, i, "add"));
69
+ s === "appear" && e === "done" && n && (i += ` ${n}`), e === "active" && t && d(t), i && (this.appliedClasses[s][e] = i, o(t, i, "add"));
69
70
  }
70
- removeClasses(e, s) {
71
+ removeClasses(t, s) {
71
72
  const {
72
- base: t,
73
+ base: e,
73
74
  active: i,
74
75
  done: n
75
76
  } = this.appliedClasses[s];
76
- this.appliedClasses[s] = {}, t && o(e, t, "remove"), i && o(e, i, "remove"), n && o(e, n, "remove");
77
+ this.appliedClasses[s] = {}, e && o(t, e, "remove"), i && o(t, i, "remove"), n && o(t, n, "remove");
77
78
  }
78
79
  render() {
79
- const { classNames: e, ...s } = this.props;
80
+ const { classNames: t, ...s } = this.props;
80
81
  return /* @__PURE__ */ h(
81
82
  E,
82
83
  {
@@ -92,5 +93,5 @@ class A extends m.Component {
92
93
  }
93
94
  }
94
95
  export {
95
- A as default
96
+ S as default
96
97
  };