@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.
- package/.virtual/_rolldown/runtime.js +1 -1
- package/animation/Animation.js +41 -42
- package/animation/constants.d.ts +2 -0
- package/animation/constants.js +4 -4
- package/animation/context.d.ts +0 -1
- package/animation/context.js +3 -3
- package/animation/index.d.ts +0 -6
- package/animation/index.js +6 -10
- package/animation/interface.d.ts +1 -1
- package/animation/style/index.js +1 -1
- package/animation/utils.js +1 -1
- package/base/Base.js +1 -1
- package/base/constants.d.ts +2 -0
- package/base/constants.js +4 -1
- package/base/context.d.ts +0 -1
- package/base/context.js +3 -3
- package/base/index.js +1 -1
- package/base/style/index.js +1 -1
- package/base/utils.js +1 -1
- package/border-beam/BorderBeam.js +14 -14
- package/border-beam/Effect.d.ts +1 -6
- package/border-beam/Effect.js +13 -12
- package/border-beam/constants.d.ts +2 -1
- package/border-beam/constants.js +8 -3
- package/border-beam/context.d.ts +0 -1
- package/border-beam/context.js +4 -10
- package/border-beam/hooks/useBorderSize.d.ts +1 -5
- package/border-beam/hooks/useBorderSize.js +1 -1
- package/border-beam/hooks/useChildDom.d.ts +1 -1
- package/border-beam/hooks/useChildDom.js +1 -1
- package/border-beam/index.d.ts +0 -6
- package/border-beam/index.js +5 -9
- package/border-beam/interface.d.ts +27 -4
- package/border-beam/style/index.js +1 -1
- package/border-beam/utils.d.ts +1 -9
- package/border-beam/utils.js +9 -9
- package/development/Development.js +6 -5
- package/development/constants.d.ts +2 -0
- package/development/constants.js +4 -1
- package/development/context.d.ts +0 -1
- package/development/context.js +3 -3
- package/development/index.d.ts +0 -6
- package/development/index.js +5 -9
- package/development/style/index.js +1 -1
- package/development/utils.js +1 -1
- package/empty/Empty.d.ts +1 -1
- package/empty/Empty.js +28 -27
- package/empty/constants.d.ts +2 -0
- package/empty/constants.js +4 -1
- package/empty/context.d.ts +0 -1
- package/empty/context.js +3 -3
- package/empty/index.d.ts +1 -7
- package/empty/index.js +5 -9
- package/empty/style/index.js +1 -1
- package/empty/utils.js +1 -1
- package/flex/Flex.js +5 -4
- package/flex/FlexVertical.js +1 -1
- package/flex/constants.d.ts +2 -0
- package/flex/constants.js +7 -1
- package/flex/context.d.ts +0 -1
- package/flex/context.js +3 -6
- package/flex/index.d.ts +1 -7
- package/flex/index.js +9 -11
- package/flex/interface.d.ts +1 -1
- package/flex/style/index.js +1 -1
- package/flex/utils.d.ts +1 -1
- package/flex/utils.js +10 -12
- package/grid/Grid.js +16 -15
- package/grid/Item.js +10 -9
- package/grid/constants.d.ts +3 -0
- package/grid/constants.js +8 -1
- package/grid/context.d.ts +0 -2
- package/grid/context.js +4 -8
- package/grid/index.d.ts +0 -6
- package/grid/index.js +9 -11
- package/grid/style/index.js +1 -1
- package/grid/utils.js +1 -1
- package/higher-order/with-speech-synthesis/constants.d.ts +2 -0
- package/higher-order/with-speech-synthesis/constants.js +7 -0
- package/higher-order/with-speech-synthesis/context.d.ts +0 -1
- package/higher-order/with-speech-synthesis/context.js +3 -3
- package/higher-order/with-speech-synthesis/index.d.ts +0 -6
- package/higher-order/with-speech-synthesis/index.js +5 -9
- package/higher-order/with-speech-synthesis/style/index.js +1 -1
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.d.ts +8 -1
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +28 -27
- package/hoc/withContext.js +1 -1
- package/hooks/create-deep-compare-effect/index.js +1 -1
- package/hooks/create-update-effect/index.js +1 -1
- package/hooks/create-use-storage-state/index.js +9 -9
- package/hooks/index.d.ts +1 -0
- package/hooks/index.js +93 -92
- package/hooks/use-async-effect/index.js +1 -1
- package/hooks/use-boolean/index.js +1 -1
- package/hooks/use-click-away/index.d.ts +7 -1
- package/hooks/use-click-away/index.js +20 -12
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-controllable-value/index.js +1 -1
- package/hooks/use-cookie-state/index.js +2 -2
- package/hooks/use-count-down/index.js +1 -1
- package/hooks/use-counter/index.js +1 -1
- package/hooks/use-create/index.js +6 -5
- package/hooks/use-creation/index.js +7 -6
- package/hooks/use-debounce/debounceOptions.d.ts +1 -6
- package/hooks/use-debounce/index.js +1 -1
- package/hooks/use-debounce/interface.d.ts +14 -0
- package/hooks/use-debounce-effect/index.js +1 -1
- package/hooks/use-debounce-fn/index.js +5 -5
- package/hooks/use-deep-compare-effect/index.js +1 -1
- package/hooks/use-deep-compare-layout-effect/index.js +1 -1
- package/hooks/use-document-visibility/index.js +7 -7
- package/hooks/use-drag/index.d.ts +1 -1
- package/hooks/use-drag/index.js +10 -10
- package/hooks/use-drag-move/index.js +1 -1
- package/hooks/use-drop/index.d.ts +1 -1
- package/hooks/use-drop/index.js +1 -1
- package/hooks/use-dynamic-list/index.d.ts +18 -0
- package/hooks/use-dynamic-list/index.js +105 -0
- package/hooks/use-effect-event/index.js +1 -1
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-emitter/index.d.ts +13 -1
- package/hooks/use-event-emitter/index.js +15 -12
- package/hooks/use-event-listener/index.d.ts +2 -7
- package/hooks/use-event-listener/index.js +1 -1
- package/hooks/use-event-target/index.js +1 -1
- package/hooks/use-external/index.js +2 -2
- package/hooks/use-favicon/index.js +2 -2
- package/hooks/use-focus-within/index.d.ts +1 -5
- package/hooks/use-focus-within/index.js +1 -1
- package/hooks/use-focus-within/interface.d.ts +13 -0
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-fullscreen/index.js +14 -14
- package/hooks/use-get-state/index.d.ts +1 -7
- package/hooks/use-get-state/index.js +1 -1
- package/hooks/use-history-travel/index.d.ts +1 -1
- package/hooks/use-history-travel/index.js +32 -26
- package/hooks/use-hover/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-in-viewport/index.js +10 -10
- package/hooks/use-infinite-scroll/index.js +33 -31
- package/hooks/use-intersection-observer/index.js +3 -3
- package/hooks/use-intersection-observers/index.js +10 -10
- package/hooks/use-interval/index.js +1 -1
- package/hooks/use-is-first-render/index.js +1 -1
- package/hooks/use-isomorphic-layout-effect/index.js +1 -1
- package/hooks/use-key-press/index.js +1 -1
- package/hooks/use-keyboard-event/index.d.ts +1 -0
- package/hooks/use-keyboard-event/index.js +1 -1
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +1 -1
- package/hooks/use-local-storage-state/index.js +4 -4
- package/hooks/use-lock-fn/index.js +1 -1
- package/hooks/use-long-press/index.js +1 -1
- package/hooks/use-map/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-memo/index.js +1 -1
- package/hooks/use-memoized-fn/index.js +1 -1
- package/hooks/use-merge-component-props/index.d.ts +2 -2
- package/hooks/use-merge-component-props/index.js +2 -1
- package/hooks/use-merge-value/index.d.ts +1 -1
- package/hooks/use-merge-value/index.js +1 -1
- package/hooks/use-mobile/index.js +1 -1
- package/hooks/use-mount/index.js +1 -1
- package/hooks/use-mouse/index.d.ts +1 -1
- package/hooks/use-mouse/index.js +9 -9
- package/hooks/use-mutation-observer/index.js +2 -2
- package/hooks/use-mutation-observers/index.js +10 -10
- package/hooks/use-network/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +1 -1
- package/hooks/use-override-ref/index.d.ts +3 -5
- package/hooks/use-override-ref/index.js +5 -5
- package/hooks/use-pagination/index.js +1 -1
- package/hooks/use-pagination/types.d.ts +5 -8
- package/hooks/use-paste-file/index.js +9 -9
- package/hooks/use-paste-image/index.js +1 -1
- package/hooks/use-persist-callback/index.js +1 -1
- package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-raf-interval/index.js +17 -17
- package/hooks/use-raf-state/index.d.ts +1 -6
- package/hooks/use-raf-state/index.js +1 -1
- package/hooks/use-raf-timeout/index.js +17 -17
- package/hooks/use-reactive/index.js +5 -5
- package/hooks/use-ref-latest/index.js +1 -1
- package/hooks/use-ref-map/index.d.ts +2 -1
- package/hooks/use-ref-map/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-request/index.js +5 -5
- package/hooks/use-request/src/Fetch.js +1 -1
- package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useCachePlugin.js +5 -5
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +2 -2
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +13 -12
- package/hooks/use-request/src/plugins/usePollingPlugin.js +3 -3
- package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
- package/hooks/use-request/src/useRequest.d.ts +11 -4
- package/hooks/use-request/src/useRequest.js +1 -1
- package/hooks/use-request/src/useRequestImplement.js +18 -18
- package/hooks/use-request/src/utils/cache.js +1 -1
- package/hooks/use-request/src/utils/cachePromise.js +1 -1
- package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
- package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
- package/hooks/use-request/src/utils/isOnline.js +3 -3
- package/hooks/use-request/src/utils/limit.js +1 -1
- package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
- package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
- package/hooks/use-reset-state/index.js +6 -6
- package/hooks/use-resize-observer/index.d.ts +6 -1
- package/hooks/use-resize-observer/index.js +30 -4
- package/hooks/use-resize-observers/index.d.ts +1 -0
- package/hooks/use-resize-observers/index.js +23 -24
- package/hooks/use-responsive/index.js +2 -2
- package/hooks/use-safe-state/index.js +1 -1
- package/hooks/use-scroll/index.js +20 -20
- package/hooks/use-selections/index.d.ts +1 -1
- package/hooks/use-selections/index.js +45 -39
- package/hooks/use-session-storage-state/index.js +4 -4
- package/hooks/use-set/index.js +1 -1
- package/hooks/use-set-state/index.js +1 -1
- package/hooks/use-size/index.d.ts +1 -6
- package/hooks/use-size/index.js +4 -33
- package/hooks/use-state-callback/index.d.ts +1 -5
- package/hooks/use-state-callback/index.js +7 -7
- package/hooks/use-state-with-promise/index.d.ts +1 -4
- package/hooks/use-state-with-promise/index.js +1 -1
- package/hooks/use-sync-state/index.js +5 -5
- package/hooks/use-text-selection/index.js +1 -1
- package/hooks/use-theme/index.js +14 -14
- package/hooks/use-throttle/index.js +1 -1
- package/hooks/use-throttle/interface.d.ts +13 -0
- package/hooks/use-throttle/throttleOptions.d.ts +1 -5
- package/hooks/use-throttle-effect/index.js +5 -5
- package/hooks/use-throttle-fn/index.js +5 -5
- package/hooks/use-throttle-fn-with-raf/index.js +6 -6
- package/hooks/use-timeout/index.js +1 -1
- package/hooks/use-title/index.js +5 -5
- package/hooks/use-toggle/index.d.ts +6 -3
- package/hooks/use-toggle/index.js +1 -1
- package/hooks/use-tracked-effect/index.js +1 -1
- package/hooks/use-unmount/index.js +1 -1
- package/hooks/use-unmounted-ref/index.js +1 -1
- package/hooks/use-update/index.js +1 -1
- package/hooks/use-update-effect/index.js +1 -1
- package/hooks/use-update-layout-effect/index.js +1 -1
- package/hooks/use-url-state/index.d.ts +1 -1
- package/hooks/use-url-state/index.js +1 -1
- package/hooks/use-virtual-list/index.js +13 -13
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-web-socket/index.js +7 -7
- package/hooks/use-why-did-you-update/index.js +1 -1
- package/hooks/use-window-size/index.js +7 -7
- package/hooks/utils/createEffectWithTarget.js +7 -7
- package/hooks/utils/depsAreSame.js +1 -1
- package/hooks/utils/depsEqual.js +1 -1
- package/hooks/utils/domTarget.js +1 -1
- package/hooks/utils/getDocumentOrShadow.js +1 -1
- package/hooks/utils/index.js +1 -1
- package/hooks/utils/isAppleDevice.js +1 -1
- package/hooks/utils/isBrowser.js +1 -1
- package/hooks/utils/isDev.js +1 -1
- package/hooks/utils/rect.js +1 -1
- package/hooks/utils/useDeepCompareWithTarget.js +4 -4
- package/hooks/utils/useEffectWithTarget.js +1 -1
- package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
- package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
- package/icons/file/File.js +5 -4
- package/icons/file/constants.d.ts +2 -0
- package/icons/file/constants.js +7 -0
- package/icons/file/context.d.ts +0 -1
- package/icons/file/context.js +3 -3
- package/icons/file/index.js +2 -2
- package/icons/file/style/index.js +1 -1
- package/index.d.ts +2 -2
- package/index.js +542 -537
- package/morphicons/core/interpolate.js +1 -1
- package/morphicons/core/normalize.js +72 -71
- package/morphicons/core/parse.d.ts +1 -9
- package/morphicons/core/resample.js +1 -1
- package/morphicons/core/serialize.js +1 -1
- package/morphicons/core/spring.js +1 -1
- package/morphicons/dom/controller.d.ts +3 -3
- package/morphicons/dom/index.js +68 -67
- package/morphicons/element/index.d.ts +1 -1
- package/morphicons/index.d.ts +1 -1
- package/morphicons/index.js +6 -6
- package/morphicons/react/index.d.ts +1 -1
- package/morphicons/react/index.js +65 -64
- package/package.json +1 -1
- package/progress/Progress.js +20 -20
- package/progress/constants.js +1 -1
- package/progress/context.js +1 -1
- package/progress/index.js +1 -1
- package/progress/style/index.js +1 -1
- package/progress/utils.js +1 -1
- package/resize-observer/Collection.js +1 -1
- package/resize-observer/ResizeObserver.js +13 -12
- package/resize-observer/SingleObserver.d.ts +1 -5
- package/resize-observer/SingleObserver.js +4 -4
- package/resize-observer/constants.d.ts +2 -0
- package/resize-observer/constants.js +4 -1
- package/resize-observer/context.d.ts +0 -1
- package/resize-observer/context.js +3 -3
- package/resize-observer/index.d.ts +1 -7
- package/resize-observer/index.js +7 -9
- package/resize-observer/interface.d.ts +18 -0
- package/resize-observer/observerUtil.d.ts +1 -1
- package/resize-observer/observerUtil.js +1 -1
- package/resize-observer/style/index.js +1 -1
- package/resize-observer/utils.js +1 -1
- package/space/Space.d.ts +2 -1
- package/space/Space.js +12 -11
- package/space/SpaceVertical.js +1 -1
- package/space/constants.d.ts +2 -0
- package/space/constants.js +9 -1
- package/space/context.d.ts +0 -1
- package/space/context.js +3 -8
- package/space/index.d.ts +0 -6
- package/space/index.js +8 -10
- package/space/interface.d.ts +1 -0
- package/space/style/index.js +1 -1
- package/space/utils.js +1 -1
- package/style/animation.less +2 -8
- package/style/normalize.less +0 -13
- package/style.css +1 -1
- package/suspense-fallback-test/NeverLoadLazy.d.ts +3 -0
- package/suspense-fallback-test/NeverLoadLazy.js +8 -0
- package/suspense-fallback-test/SuspenseFallbackTest.js +14 -14
- package/suspense-fallback-test/constants.d.ts +2 -0
- package/suspense-fallback-test/constants.js +4 -1
- package/suspense-fallback-test/context.d.ts +0 -2
- package/suspense-fallback-test/context.js +3 -3
- package/suspense-fallback-test/index.d.ts +0 -6
- package/suspense-fallback-test/index.js +5 -9
- package/suspense-fallback-test/style/index.js +1 -1
- package/suspense-fallback-test/utils.js +1 -1
- package/test.js +1 -1
- package/timer/Timer.js +6 -5
- package/timer/constants.d.ts +2 -0
- package/timer/constants.js +4 -1
- package/timer/context.d.ts +0 -1
- package/timer/context.js +3 -3
- package/timer/index.d.ts +0 -6
- package/timer/index.js +5 -9
- package/timer/style/index.js +1 -1
- package/timer/utils.js +1 -1
- package/transition/Transition.d.ts +0 -1
- package/transition/Transition.js +55 -58
- package/transition/TransitionCSS.js +15 -15
- package/transition/TransitionGroup.js +13 -13
- package/transition/TransitionStyle.js +12 -12
- package/transition/constants.d.ts +4 -27
- package/transition/constants.js +37 -41
- package/transition/context.d.ts +2 -3
- package/transition/context.js +4 -5
- package/transition/index.d.ts +0 -7
- package/transition/index.js +15 -16
- package/transition/interface.d.ts +26 -1
- package/transition/interface.js +11 -0
- package/transition/style/index.js +1 -1
- package/transition/utils.d.ts +1 -1
- package/transition/utils.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/confetti.js +1 -1
- package/utils/constants.d.ts +3 -2
- package/utils/constants.js +6 -5
- package/utils/copy.js +1 -1
- package/utils/createRoot.d.ts +1 -6
- package/utils/createRoot.js +11 -11
- package/utils/css.js +1 -1
- package/utils/date.d.ts +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/document.js +1 -1
- package/utils/dom.d.ts +1 -1
- package/utils/dom.js +9 -9
- package/utils/file.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/getCompatProp.js +1 -1
- package/utils/getElement.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.d.ts +1 -12
- package/utils/getHotkeyHandler.js +17 -17
- package/utils/getPrefixCls.js +1 -1
- package/utils/getScrollBarHeight.js +1 -1
- package/utils/getScrollBarSize.js +1 -1
- package/utils/getScrollBarWidth.js +1 -1
- package/utils/getScrollParent.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/getUrlSearchParam.js +1 -1
- package/utils/index.js +274 -273
- package/utils/initAllLineClamp.js +1 -1
- package/utils/injectLineClamp.js +1 -1
- package/utils/interface.d.ts +103 -0
- package/utils/interface.js +4 -0
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.d.ts +2 -1
- package/utils/lodash.js +19 -18
- package/utils/math.d.ts +1 -1
- package/utils/mergeProps.d.ts +1 -2
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/migrateLegacyProps.d.ts +1 -8
- package/utils/migrateLegacyProps.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.d.ts +1 -8
- package/utils/names.js +1 -1
- package/utils/object.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/reactNode.js +1 -1
- package/utils/ref.d.ts +2 -1
- package/utils/ref.js +13 -13
- package/utils/resizeObserver.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/scrollTo.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/setDir.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +1 -1
- package/utils/style.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tunnel.d.ts +2 -12
- package/utils/tunnel.js +1 -1
- package/utils/warning.js +1 -1
- package/version/index.js +10 -9
- /package/{base → resize-observer}/style/index.css +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
|
+
/* 世界因你而美丽 */
|
|
3
|
+
// components/common/transition/interface.ts
|
|
4
|
+
var e = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e.APPEAR_START = "appearStart", e.APPEAR_ACTIVE = "appearActive", e.APPEAR_DONE = "appearDone", e.ENTER_START = "enterStart", e.ENTER_ACTIVE = "enterActive", e.ENTER_DONE = "enterDone", e.EXIT_START = "exitStart", e.EXIT_ACTIVE = "exitActive", e.EXIT_DONE = "exitDone", e;
|
|
6
|
+
}({}), t = /* @__PURE__ */ function(e) {
|
|
7
|
+
return e.ON_ENTER_START = "onEnterStart", e.ON_ENTER_ACTIVE = "onEnterActive", e.ON_ENTER_DONE = "onEnterDone", e.ON_EXIT_START = "onExitStart", e.ON_EXIT_ACTIVE = "onExitActive", e.ON_EXIT_DONE = "onExitDone", e;
|
|
8
|
+
}({});
|
|
9
|
+
export { e as TransitionPhase, t as TransitionPhaseEvent };
|
|
10
|
+
/* 欲穷千里目,更上一层楼 */
|
|
11
|
+
/* 独立思考,明辨是非 */
|
package/transition/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TransitionPhase } from './constants';
|
|
1
|
+
import type { TransitionPhase } from './constants';
|
|
2
2
|
import type { TransitionCSS_ClassNamesObject, TransitionDurationObjectType, TransitionDurationType, TransitionStyleStyles } from './interface';
|
|
3
3
|
export declare function transitionNormalizeDurations(duration: TransitionDurationType, declarationValue?: number): TransitionDurationObjectType;
|
|
4
4
|
export declare function transitionFallbackAppearToEnter(o: TransitionStyleStyles | TransitionCSS_ClassNamesObject): TransitionCSS_ClassNamesObject | Partial<Record<TransitionPhase, import("react").CSSProperties>>;
|
package/transition/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { TRANSITION_PHASE_APPEAR_ACTIVE as e, TRANSITION_PHASE_APPEAR_DONE as t, TRANSITION_PHASE_APPEAR_KEY as n, TRANSITION_PHASE_APPEAR_START as r, TRANSITION_PHASE_ENTER_ACTIVE as i, TRANSITION_PHASE_ENTER_DONE as a, TRANSITION_PHASE_ENTER_KEY as o, TRANSITION_PHASE_ENTER_START as s, TRANSITION_PHASE_EXIT_ACTIVE as c, TRANSITION_PHASE_EXIT_DONE as l, TRANSITION_PHASE_EXIT_KEY as u, TRANSITION_PHASE_EXIT_START as d } from "./constants.js";
|
|
4
4
|
import { isNullOrUndefined as f, isNumber as p, isPlainObject as m } from "@unicom-cloud/utils/is";
|
package/utils/confetti.js
CHANGED
package/utils/constants.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from '@unicom-cloud/utils/constants/ui';
|
|
2
2
|
export declare const PREFIX_CLASS: "pqbc";
|
|
3
3
|
export declare const CSS_VARIABLE_ELEMENT: HTMLElement;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
4
|
+
export declare const DAYJS_FORMAT_DATE_STRING = "YYYY-MM-DD";
|
|
5
|
+
export declare const DAYJS_FORMAT_TIME_STRING = "HH:mm:ss";
|
|
6
|
+
export declare const DAYJS_FORMAT_DATE_TIME_STRING = "YYYY-MM-DD HH:mm:ss";
|
package/utils/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { __exportAll as e, __reExport as t } from "../.virtual/_rolldown/runtime.js";
|
|
4
4
|
import { getDocumentElement as n } from "./dom.js";
|
|
@@ -7,13 +7,14 @@ export * from "@unicom-cloud/utils/constants/ui";
|
|
|
7
7
|
// components/common/utils/constants.ts
|
|
8
8
|
var i = /* @__PURE__ */ e({
|
|
9
9
|
CSS_VARIABLE_ELEMENT: () => s,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
DAYJS_FORMAT_DATE_STRING: () => c,
|
|
11
|
+
DAYJS_FORMAT_DATE_TIME_STRING: () => u,
|
|
12
|
+
DAYJS_FORMAT_TIME_STRING: () => l,
|
|
12
13
|
PREFIX_CLASS: () => o
|
|
13
14
|
});
|
|
14
15
|
import * as a from "@unicom-cloud/utils/constants/ui";
|
|
15
16
|
t(i, a);
|
|
16
|
-
var o = r, s = n(), c = "YYYY-MM-DD", l = `${c}
|
|
17
|
-
export { s as CSS_VARIABLE_ELEMENT, c as
|
|
17
|
+
var o = r, s = n(), c = "YYYY-MM-DD", l = "HH:mm:ss", u = `${c} ${l}`;
|
|
18
|
+
export { s as CSS_VARIABLE_ELEMENT, c as DAYJS_FORMAT_DATE_STRING, u as DAYJS_FORMAT_DATE_TIME_STRING, l as DAYJS_FORMAT_TIME_STRING, o as PREFIX_CLASS, i as constants_exports };
|
|
18
19
|
/* 欲穷千里目,更上一层楼 */
|
|
19
20
|
/* 独立思考,明辨是非 */
|
package/utils/copy.js
CHANGED
package/utils/createRoot.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export type CreateRootFnType = (container: Element | DocumentFragment) => Root;
|
|
2
|
+
import type { CreateRootFnType, RenderResult } from './interface';
|
|
4
3
|
declare let createRoot: CreateRootFnType;
|
|
5
|
-
export type RenderResult = {
|
|
6
|
-
render: (app: ReactElement) => void;
|
|
7
|
-
_unmount: () => void;
|
|
8
|
-
};
|
|
9
4
|
declare function setCreateRoot(v?: CreateRootFnType): void;
|
|
10
5
|
declare function render(app: ReactElement, container: Element | DocumentFragment): RenderResult;
|
|
11
6
|
export { createRoot, render, setCreateRoot };
|
package/utils/createRoot.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "./call.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { isReact18 as t } from "./is.js";
|
|
5
|
+
import { get as n, set as r } from "./lodash.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { isFunction as i, isObject as a } from "@unicom-cloud/utils/is";
|
|
8
8
|
import o from "react-dom";
|
|
@@ -10,11 +10,11 @@ import s from "react-dom/client";
|
|
|
10
10
|
// components/common/utils/createRoot.ts
|
|
11
11
|
var c = "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED";
|
|
12
12
|
function l(e) {
|
|
13
|
-
a(
|
|
13
|
+
a(n(o, [c])) && r(o, [c, "usingClientEntryPoint"], e);
|
|
14
14
|
}
|
|
15
|
-
var u = s.createRoot ||
|
|
16
|
-
function f(
|
|
17
|
-
|
|
15
|
+
var u = s.createRoot || n(o, ["createRoot"]), d;
|
|
16
|
+
function f(r) {
|
|
17
|
+
r && (u = r), d = t && u ? (e, t) => {
|
|
18
18
|
l(!0);
|
|
19
19
|
let n = u(t);
|
|
20
20
|
return l(!1), n.render(e), {
|
|
@@ -28,14 +28,14 @@ function f(n) {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
} : (
|
|
32
|
-
let i =
|
|
33
|
-
return e(i,
|
|
31
|
+
} : (t, r) => {
|
|
32
|
+
let i = n(o, ["render"]);
|
|
33
|
+
return e(i, t, r), {
|
|
34
34
|
render(t) {
|
|
35
35
|
e(i, t, r);
|
|
36
36
|
},
|
|
37
37
|
_unmount() {
|
|
38
|
-
e(
|
|
38
|
+
e(n(o, ["unmountComponentAtNode"]), r);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
};
|
package/utils/css.js
CHANGED
package/utils/date.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { formatDuration, dateFormat, dayjsFormat, } from '@unicom-cloud/utils/date';
|
package/utils/date.js
CHANGED
package/utils/dayjs.js
CHANGED
package/utils/document.js
CHANGED
package/utils/dom.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare function getElementOuterSize(e: HTMLElement | null | undefined):
|
|
|
50
50
|
* Retrieves a DOM node via a ref, and does not invoke `findDOMNode`.
|
|
51
51
|
*/
|
|
52
52
|
export declare const getDOM: typeof getElement;
|
|
53
|
-
export { canUseDOM, forceReflow, getElement, getElementCoordinates, forceReflow as reflow
|
|
53
|
+
export { canUseDOM, forceReflow, getElement, getElementCoordinates, forceReflow as reflow };
|
|
54
54
|
export declare function getClientRects(element: HTMLElement): DOMRectList;
|
|
55
55
|
export declare function getTextLineCount(element: HTMLElement): number;
|
|
56
56
|
export declare function isSingleLine(element: HTMLElement): boolean;
|
package/utils/dom.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
import
|
|
4
|
-
import t from "./
|
|
3
|
+
import e from "./getElement.js";
|
|
4
|
+
import { isServerRendering as t } from "./is.js";
|
|
5
5
|
import n from "./screenfull.js";
|
|
6
6
|
import { isEventTarget as r, isFunction as i, isHTMLElement as a, isInstanceOf as o, isScrollElement as s, isString as c } from "@unicom-cloud/utils/is";
|
|
7
7
|
import l from "@unicom-cloud/utils/dom-helpers/canUseDOM";
|
|
8
8
|
import u from "@unicom-cloud/utils/dom-helpers/getElementCoordinates";
|
|
9
9
|
import d from "@unicom-cloud/utils/dom-helpers/reflow";
|
|
10
10
|
// components/common/utils/dom.ts
|
|
11
|
-
function f(
|
|
12
|
-
|
|
11
|
+
function f(e, n, a, o) {
|
|
12
|
+
t || r(e) && c(n) && i(a) && e.addEventListener(n, a, o ?? !1);
|
|
13
13
|
}
|
|
14
|
-
function p(
|
|
15
|
-
|
|
14
|
+
function p(e, n, a, o) {
|
|
15
|
+
t || r(e) && c(n) && i(a) && e.removeEventListener(n, a, o ?? !1);
|
|
16
16
|
}
|
|
17
17
|
function m(e, t) {
|
|
18
18
|
if (!(e && t)) return !1;
|
|
@@ -77,7 +77,7 @@ function w(e) {
|
|
|
77
77
|
height: i
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
var T =
|
|
80
|
+
var T = e;
|
|
81
81
|
function E(e) {
|
|
82
82
|
let t = document.createRange();
|
|
83
83
|
return t.selectNodeContents(e), t.getClientRects();
|
|
@@ -113,6 +113,6 @@ function k(e, t, n, r) {
|
|
|
113
113
|
}
|
|
114
114
|
return null;
|
|
115
115
|
}
|
|
116
|
-
export { l as canUseDOM, m as contains, k as findSingleChainDescendantByStyle, C as focusAtEnd, d as forceReflow, d as reflow, v as getBody, y as getBodyContainer, E as getClientRects, T as getDOM, S as getDocument, x as getDocumentElement,
|
|
116
|
+
export { l as canUseDOM, m as contains, k as findSingleChainDescendantByStyle, C as focusAtEnd, d as forceReflow, d as reflow, v as getBody, y as getBodyContainer, E as getClientRects, T as getDOM, S as getDocument, x as getDocumentElement, e as getElement, u as getElementCoordinates, w as getElementOuterSize, _ as getHead, h as getScrollElements, D as getTextLineCount, b as getTopLevelOverlayContainer, O as isSingleLine, p as off, f as on, g as parentContainsChildren };
|
|
117
117
|
/* 欲穷千里目,更上一层楼 */
|
|
118
118
|
/* 独立思考,明辨是非 */
|
package/utils/file.js
CHANGED
package/utils/fillNBSP.js
CHANGED
package/utils/getCompatProp.js
CHANGED
package/utils/getElement.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
/** Keyboard key code */
|
|
3
|
-
code: number | string;
|
|
4
|
-
/** Ctrl / ⌃ */
|
|
5
|
-
ctrl?: boolean;
|
|
6
|
-
/** Shift key */
|
|
7
|
-
shift?: boolean;
|
|
8
|
-
/** Alt / ⌥ */
|
|
9
|
-
alt?: boolean;
|
|
10
|
-
/** meta ⌘ / ⊞ */
|
|
11
|
-
meta?: boolean;
|
|
12
|
-
}
|
|
1
|
+
import type { Key } from './interface';
|
|
13
2
|
/**
|
|
14
3
|
* @param hotkeyMap - 快捷键描述对象
|
|
15
4
|
*/
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
import {
|
|
3
|
+
import { isFalse as e, isStringOrNumber as t } from "@unicom-cloud/utils/is";
|
|
4
4
|
// components/common/utils/getHotkeyHandler.ts
|
|
5
|
-
var
|
|
5
|
+
var n = (e) => JSON.stringify({
|
|
6
6
|
code: e.code,
|
|
7
7
|
ctrl: !!e.ctrl,
|
|
8
8
|
shift: !!e.shift,
|
|
9
9
|
alt: !!e.alt,
|
|
10
10
|
meta: !!e.meta
|
|
11
11
|
});
|
|
12
|
-
function
|
|
13
|
-
let
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
}), (
|
|
17
|
-
let
|
|
18
|
-
code:
|
|
19
|
-
ctrl: !!
|
|
20
|
-
shift: !!
|
|
21
|
-
alt: !!
|
|
22
|
-
meta: !!
|
|
23
|
-
}),
|
|
24
|
-
|
|
12
|
+
function r(r) {
|
|
13
|
+
let i = {};
|
|
14
|
+
return r.forEach((e, r) => {
|
|
15
|
+
r = t(r) ? { code: r } : r, i[n(r)] = e;
|
|
16
|
+
}), (t) => {
|
|
17
|
+
let r = n({
|
|
18
|
+
code: t.code,
|
|
19
|
+
ctrl: !!t.ctrlKey,
|
|
20
|
+
shift: !!t.shiftKey,
|
|
21
|
+
alt: !!t.altKey,
|
|
22
|
+
meta: !!t.metaKey
|
|
23
|
+
}), a = i[r];
|
|
24
|
+
a && (t.stopPropagation(), e(a(t)) && t.preventDefault());
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
export {
|
|
27
|
+
export { r as default, r as getHotkeyHandler };
|
|
28
28
|
/* 欲穷千里目,更上一层楼 */
|
|
29
29
|
/* 独立思考,明辨是非 */
|
package/utils/getPrefixCls.js
CHANGED
package/utils/getScrollParent.js
CHANGED
package/utils/getStringLength.js
CHANGED