@unicom-cloud/ui-common 0.1.29 → 0.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.virtual/_rolldown/runtime.js +1 -1
- package/animation/Animation.d.ts +9 -0
- package/animation/Animation.js +63 -0
- package/animation/constants.d.ts +1 -0
- package/animation/constants.js +7 -0
- package/animation/context.d.ts +5 -0
- package/animation/context.js +7 -0
- package/animation/index.d.ts +17 -0
- package/animation/index.js +14 -0
- package/animation/interface.d.ts +11 -0
- package/animation/style/index.css +1 -0
- package/animation/style/index.d.ts +1 -0
- package/animation/style/index.js +3 -0
- package/border-beam/BorderBeam.js +30 -30
- package/border-beam/Effect.js +1 -1
- package/border-beam/constants.js +2 -2
- package/border-beam/context.d.ts +3 -0
- package/border-beam/context.js +8 -0
- package/border-beam/hooks/useBorderSize.js +1 -1
- package/border-beam/hooks/useChildDom.js +1 -1
- package/border-beam/index.d.ts +2 -0
- package/border-beam/index.js +9 -4
- package/border-beam/style/index.css +1 -0
- package/border-beam/style/index.d.ts +1 -0
- package/border-beam/style/index.js +3 -0
- package/border-beam/utils.js +1 -1
- package/development/Development.js +32 -30
- package/development/constants.d.ts +0 -0
- package/development/constants.js +2 -0
- package/development/context.d.ts +3 -0
- package/development/context.js +7 -0
- package/development/index.d.ts +2 -0
- package/development/index.js +9 -4
- package/development/style/index.css +1 -0
- package/development/style/index.d.ts +1 -0
- package/development/style/index.js +3 -0
- package/empty/Empty.js +32 -30
- package/empty/constants.d.ts +0 -0
- package/empty/constants.js +2 -0
- package/empty/context.d.ts +3 -0
- package/empty/context.js +7 -0
- package/empty/index.d.ts +2 -0
- package/empty/index.js +9 -4
- package/empty/style/index.css +1 -0
- package/empty/style/index.d.ts +1 -0
- package/empty/style/index.js +3 -0
- package/flex/Flex.js +32 -35
- package/flex/constants.d.ts +0 -0
- package/flex/constants.js +2 -0
- package/flex/context.d.ts +3 -0
- package/flex/context.js +10 -0
- package/flex/index.d.ts +2 -0
- package/flex/index.js +9 -6
- package/flex/style/index.css +1 -0
- package/flex/style/index.d.ts +1 -0
- package/flex/style/index.js +3 -0
- package/flex/utils.d.ts +1 -1
- package/flex/utils.js +1 -1
- package/higher-order/index.js +1 -1
- package/higher-order/with-speech-synthesis/constants.d.ts +0 -0
- package/higher-order/with-speech-synthesis/context.d.ts +3 -0
- package/higher-order/with-speech-synthesis/context.js +6 -0
- package/higher-order/with-speech-synthesis/index.d.ts +2 -0
- package/higher-order/with-speech-synthesis/index.js +9 -4
- package/higher-order/with-speech-synthesis/interface.d.ts +2 -1
- package/higher-order/with-speech-synthesis/style/index.css +1 -0
- package/higher-order/with-speech-synthesis/style/index.d.ts +0 -1
- package/higher-order/with-speech-synthesis/style/index.js +3 -0
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +52 -48
- 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 +1 -1
- package/hooks/index.js +1 -1
- package/hooks/use-async-effect/index.js +1 -1
- package/hooks/use-boolean/index.js +1 -1
- package/hooks/use-click-away/index.js +1 -1
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-controllable-value/index.d.ts +1 -1
- package/hooks/use-controllable-value/index.js +1 -1
- package/hooks/use-cookie-state/index.js +1 -1
- package/hooks/use-count-down/index.js +1 -1
- package/hooks/use-counter/index.js +1 -1
- package/hooks/use-create/index.js +1 -1
- package/hooks/use-creation/index.js +1 -1
- package/hooks/use-debounce/index.js +1 -1
- package/hooks/use-debounce-effect/index.js +1 -1
- package/hooks/use-debounce-fn/index.js +1 -1
- 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 +1 -1
- package/hooks/use-drag/index.js +1 -1
- package/hooks/use-drop/index.js +1 -1
- package/hooks/use-effect-event/index.js +1 -1
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-emitter/index.js +1 -1
- package/hooks/use-event-listener/index.js +1 -1
- package/hooks/use-event-target/index.js +1 -1
- package/hooks/use-external/index.js +1 -1
- package/hooks/use-favicon/index.js +1 -1
- package/hooks/use-focus-within/index.js +1 -1
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-fullscreen/index.js +1 -1
- package/hooks/use-get-state/index.d.ts +1 -1
- package/hooks/use-get-state/index.js +1 -1
- package/hooks/use-history-travel/index.js +1 -1
- package/hooks/use-hover/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-in-viewport/index.js +1 -1
- package/hooks/use-infinite-scroll/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +2 -2
- 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.js +2 -2
- 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 +1 -1
- 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-props/index.d.ts +2 -2
- package/hooks/use-merge-props/index.js +4 -4
- package/hooks/use-merge-value/index.js +1 -1
- package/hooks/use-mobile/index.js +2 -2
- package/hooks/use-mount/index.js +1 -1
- package/hooks/use-mouse/index.js +1 -1
- package/hooks/use-move/index.js +1 -1
- package/hooks/use-mutation-observer/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +2 -2
- package/hooks/use-network/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.d.ts +1 -1
- package/hooks/use-overflow-hidden/index.js +7 -4
- package/hooks/use-override-ref/index.js +1 -1
- package/hooks/use-pagination/index.js +1 -1
- 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 +2 -2
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-raf-interval/index.js +1 -1
- package/hooks/use-raf-state/index.d.ts +1 -1
- package/hooks/use-raf-state/index.js +1 -1
- package/hooks/use-raf-timeout/index.js +1 -1
- package/hooks/use-reactive/index.js +1 -1
- package/hooks/use-ref-latest/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-request/index.js +1 -1
- 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 +1 -1
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
- package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
- 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.js +1 -1
- package/hooks/use-request/src/useRequestImplement.js +1 -1
- 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 +1 -1
- 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.d.ts +1 -1
- package/hooks/use-reset-state/index.js +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +2 -2
- package/hooks/use-responsive/index.js +1 -1
- package/hooks/use-safe-state/index.js +1 -1
- package/hooks/use-scroll/index.js +1 -1
- package/hooks/use-selections/index.js +1 -1
- package/hooks/use-session-storage-state/index.js +1 -1
- package/hooks/use-set/index.js +1 -1
- package/hooks/use-set-state/index.js +17 -17
- package/hooks/use-size/index.js +1 -1
- package/hooks/use-state-callback/index.d.ts +1 -1
- package/hooks/use-state-callback/index.js +1 -1
- package/hooks/use-state-with-promise/index.js +1 -1
- package/hooks/use-sync-state/index.js +1 -1
- package/hooks/use-text-selection/index.js +1 -1
- package/hooks/use-theme/index.js +1 -1
- package/hooks/use-throttle/index.js +1 -1
- package/hooks/use-throttle-effect/index.js +1 -1
- package/hooks/use-throttle-fn/index.js +1 -1
- package/hooks/use-timeout/index.js +1 -1
- package/hooks/use-title/index.js +1 -1
- 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.js +1 -1
- package/hooks/use-virtual-list/index.js +1 -1
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-web-socket/index.js +1 -1
- package/hooks/use-why-did-you-update/index.js +1 -1
- package/hooks/use-window-size/index.js +1 -1
- package/hooks/utils/createEffectWithTarget.js +1 -1
- 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.d.ts +1 -1
- package/hooks/utils/isAppleDevice.js +2 -2
- package/hooks/utils/isBrowser.d.ts +1 -1
- package/hooks/utils/isBrowser.js +2 -2
- package/hooks/utils/isDev.js +1 -1
- package/hooks/utils/noop.d.ts +1 -1
- package/hooks/utils/rect.js +1 -1
- package/hooks/utils/useDeepCompareWithTarget.js +1 -1
- 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 +60 -0
- package/icons/file/constants.d.ts +0 -0
- package/icons/file/context.d.ts +3 -0
- package/icons/file/context.js +6 -0
- package/icons/file/index.d.ts +2 -0
- package/icons/file/index.js +9 -4
- package/icons/file/style/index.css +1 -0
- package/icons/file/style/index.d.ts +0 -1
- package/icons/file/style/index.js +3 -0
- package/index.d.ts +2 -0
- package/index.js +39 -35
- package/package.json +1 -1
- package/progress/Progress.js +2 -2
- package/progress/constants.d.ts +0 -0
- package/progress/constants.js +2 -0
- package/progress/index.d.ts +1 -28
- package/progress/index.js +5 -5
- package/progress/style/index.css +1 -0
- package/progress/style/index.d.ts +1 -0
- package/progress/style/index.js +3 -0
- package/resize-observer/Collection.js +1 -1
- package/resize-observer/ResizeObserver.js +19 -17
- package/resize-observer/SingleObserver.js +1 -1
- package/resize-observer/constants.d.ts +0 -0
- package/resize-observer/constants.js +2 -0
- package/resize-observer/context.d.ts +3 -0
- package/resize-observer/context.js +7 -0
- package/resize-observer/index.d.ts +2 -0
- package/resize-observer/index.js +9 -6
- package/resize-observer/observerUtil.js +1 -1
- package/resize-observer/style/index.d.ts +1 -0
- package/resize-observer/style/index.js +3 -0
- package/space/Space.js +44 -47
- package/space/constants.d.ts +0 -0
- package/space/constants.js +2 -0
- package/space/context.d.ts +3 -0
- package/space/context.js +10 -0
- package/space/index.d.ts +2 -0
- package/space/index.js +8 -5
- package/space/style/index.css +1 -0
- package/space/style/index.d.ts +1 -0
- package/space/style/index.js +3 -0
- package/style/animation.less +39 -0
- package/style/global.less +0 -25
- package/style/index.less +6 -3
- package/style/keyframes.less +0 -32
- package/style/transition.less +0 -63
- package/style/{variables.css → variables-css.less} +2 -0
- package/style.css +1 -2
- package/suspense-fallback-test/SuspenseFallbackTest.js +13 -10
- package/suspense-fallback-test/constants.d.ts +0 -0
- package/suspense-fallback-test/constants.js +2 -0
- package/suspense-fallback-test/context.d.ts +3 -0
- package/suspense-fallback-test/context.js +7 -0
- package/suspense-fallback-test/index.d.ts +2 -0
- package/suspense-fallback-test/index.js +9 -4
- package/suspense-fallback-test/style/index.css +1 -0
- package/suspense-fallback-test/style/index.d.ts +1 -0
- package/suspense-fallback-test/style/index.js +3 -0
- package/test.js +1 -1
- package/timer/Timer.js +28 -26
- package/timer/constants.d.ts +0 -0
- package/timer/constants.js +2 -0
- package/timer/context.d.ts +3 -0
- package/timer/context.js +7 -0
- package/timer/index.d.ts +2 -0
- package/timer/index.js +9 -4
- package/timer/style/index.css +1 -0
- package/timer/style/index.d.ts +1 -0
- package/timer/style/index.js +3 -0
- package/transition/Transition.d.ts +1 -0
- package/transition/Transition.js +46 -43
- package/transition/TransitionCSS.js +1 -1
- package/transition/TransitionGroup.js +1 -1
- package/transition/TransitionStyle.js +1 -1
- package/transition/constants.js +1 -1
- package/transition/context.d.ts +2 -0
- package/transition/context.js +5 -5
- package/transition/index.d.ts +3 -1
- package/transition/index.js +8 -6
- package/transition/style/index.css +1 -0
- package/transition/style/index.d.ts +1 -0
- package/transition/style/index.js +3 -0
- package/transition/utils.js +1 -1
- package/typewriter/Typewriter.js +35 -37
- package/typewriter/constants.d.ts +0 -0
- package/typewriter/constants.js +2 -0
- package/typewriter/context.d.ts +3 -0
- package/typewriter/context.js +10 -0
- package/typewriter/index.d.ts +2 -0
- package/typewriter/index.js +9 -4
- package/typewriter/style/index.css +1 -0
- package/typewriter/style/index.d.ts +1 -0
- package/typewriter/style/index.js +3 -0
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/{constant.d.ts → constants.d.ts} +1 -1
- package/utils/{constant.js → constants.js} +3 -3
- package/utils/copy.js +1 -1
- package/utils/css.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/document.d.ts +1 -0
- package/utils/document.js +3 -0
- package/utils/dom.d.ts +2 -2
- package/utils/dom.js +3 -3
- package/utils/emitter.js +1 -1
- package/utils/file.js +1 -1
- package/utils/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getScrollBarHeight.js +1 -1
- package/utils/getScrollBarSize.js +1 -1
- package/utils/getScrollBarWidth.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.d.ts +1 -1
- package/utils/index.js +2 -2
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +2 -2
- package/utils/keyboardCode.d.ts +2 -2
- package/utils/keyboardCode.js +3 -3
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.d.ts +1 -1
- package/utils/mergeProps.js +6 -4
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.d.ts +13 -0
- package/utils/names.js +10 -4
- 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/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/reactNode.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +2 -2
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +1 -1
- package/utils/setDarkTheme.d.ts +1 -1
- package/utils/setDarkTheme.js +3 -3
- package/utils/setDir.js +3 -3
- package/utils/setPrimaryColor.js +3 -3
- package/utils/setTheme.js +3 -3
- package/utils/string.d.ts +1 -1
- package/utils/string.js +2 -2
- package/utils/style.js +1 -1
- package/utils/throttleByRequestAnimationFrame.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tunnel.js +1 -1
- package/utils/tween.js +1 -1
- package/utils/uuid.js +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +2 -2
- package/version/index.js +8 -8
- package/.vite/license.md +0 -3
- package/.vite/manifest.json +0 -2707
- package/icons/file/IconFile.js +0 -56
- /package/icons/file/{IconFile.d.ts → File.d.ts} +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
|
|
2
|
+
import e from "../../utils/className.js";
|
|
3
|
+
import { ICON_FILE_COMPONENT_INFO as t } from "../../utils/names.js";
|
|
4
|
+
import { PropsContext as n } from "./context.js";
|
|
5
|
+
import { forwardRef as r, useContext as i, useImperativeHandle as a, useRef as o } from "react";
|
|
6
|
+
import { UI_COMMON_PREFIX as s } from "@unicom-cloud/utils/constants/ui";
|
|
7
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
|
+
//#region components/common/icons/file/File.tsx
|
|
9
|
+
function u(t, r) {
|
|
10
|
+
let { style: u, className: d, backgroundColor: f, color: p, text: m, ...h } = {
|
|
11
|
+
...i(n),
|
|
12
|
+
...t
|
|
13
|
+
}, g = `${s}-icons-file`, _ = o(null), v = o(null);
|
|
14
|
+
return a(r, () => ({
|
|
15
|
+
getRootElement() {
|
|
16
|
+
return _.current;
|
|
17
|
+
},
|
|
18
|
+
getSvgElement() {
|
|
19
|
+
return v.current;
|
|
20
|
+
}
|
|
21
|
+
})), /* @__PURE__ */ c("div", {
|
|
22
|
+
ref: _,
|
|
23
|
+
className: e(g, d),
|
|
24
|
+
children: /* @__PURE__ */ l("svg", {
|
|
25
|
+
ref: v,
|
|
26
|
+
className: `${g}-svg`,
|
|
27
|
+
style: u,
|
|
28
|
+
...h,
|
|
29
|
+
width: "100%",
|
|
30
|
+
height: "100%",
|
|
31
|
+
viewBox: "0 0 166 200",
|
|
32
|
+
version: "1.1",
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ c("path", {
|
|
35
|
+
className: `${g}-svg-bg`,
|
|
36
|
+
d: "M9.911,0c-5.4,0.149 -9.792,4.556 -9.911,9.944l0,179.114c-0.012,2.627 1.066,5.147 2.976,6.956c1.811,1.889 4.312,2.968 6.931,2.991l145.363,-0c2.623,0.008 5.134,-1.075 6.928,-2.985c1.88,-1.833 2.952,-4.34 2.976,-6.962l0,-132.696l-56.159,-56.362l-99.111,0l0.007,0Z",
|
|
37
|
+
style: { fill: f }
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ c("path", {
|
|
40
|
+
className: `${g}-svg-tr`,
|
|
41
|
+
d: "M165.174,55.97l-46.193,0c-5.379,-0.13 -9.768,-4.505 -9.904,-9.872l0,-46.098l56.088,55.97l0.009,0Z"
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ c("text", {
|
|
44
|
+
className: `${g}-svg-text`,
|
|
45
|
+
x: "50%",
|
|
46
|
+
y: "142.967px",
|
|
47
|
+
textAnchor: "middle",
|
|
48
|
+
dominantBaseline: "middle",
|
|
49
|
+
style: { fill: p },
|
|
50
|
+
children: m ?? "doc"
|
|
51
|
+
})
|
|
52
|
+
]
|
|
53
|
+
})
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
var d = r(u);
|
|
57
|
+
d.displayName = t.displayName;
|
|
58
|
+
//#endregion
|
|
59
|
+
export { d as default };
|
|
60
|
+
/* 独立思考,明辨是非 */
|
|
File without changes
|
package/icons/file/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import './style';
|
|
1
2
|
declare const IconFile: import("react").ForwardRefExoticComponent<import("./interface").IconFileProps & import("react").RefAttributes<unknown>> & {
|
|
3
|
+
PropsContext: import("react").Context<Partial<import("./interface").IconFileProps>>;
|
|
2
4
|
zh: string;
|
|
3
5
|
en: string;
|
|
4
6
|
displayName: string;
|
package/icons/file/index.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
|
|
2
2
|
import { ICON_FILE_COMPONENT_INFO as e } from "../../utils/names.js";
|
|
3
|
-
import
|
|
3
|
+
import "./style/index.js";
|
|
4
|
+
import { PropsContext as t } from "./context.js";
|
|
5
|
+
import n from "./File.js";
|
|
4
6
|
//#region components/common/icons/file/index.ts
|
|
5
|
-
var
|
|
7
|
+
var r = Object.assign(n, {
|
|
8
|
+
...e,
|
|
9
|
+
PropsContext: t
|
|
10
|
+
});
|
|
6
11
|
//#endregion
|
|
7
|
-
export {
|
|
12
|
+
export { r as default };
|
|
8
13
|
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.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;text-align:center;font-size:66px;font-weight:bolder}
|
package/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import './style.less';
|
|
|
2
2
|
export * from './hooks';
|
|
3
3
|
export * from './transition';
|
|
4
4
|
export * from './utils';
|
|
5
|
+
export { default as Animation, ANIMATION_NAMES } from './animation';
|
|
6
|
+
export type { AnimationProps } from './animation/interface';
|
|
5
7
|
export { default as Development } from './development';
|
|
6
8
|
export type { DevelopmentProps } from './development/interface';
|
|
7
9
|
export { default as Empty } from './empty';
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
|
|
2
2
|
import { __exportAll as ee, __reExport as te } from "./.virtual/_rolldown/runtime.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import ne from "./hooks/create-update-effect/index.js";
|
|
@@ -93,7 +93,7 @@ import xr from "./hooks/use-web-socket/index.js";
|
|
|
93
93
|
import Sr from "./hooks/use-why-did-you-update/index.js";
|
|
94
94
|
import Cr from "./hooks/use-effect-event/index.js";
|
|
95
95
|
import wr from "./hooks/use-id/index.js";
|
|
96
|
-
import { CSS_VARIABLE_ELEMENT as Tr, DAYJS_DEFAULT_FORMAT as Er, DAYJS_DEFAULT_FORMAT_WITH_TIME as Dr, NOOP as Or, PREFIX_CLASS as kr, UI_PC_KEY as Ar, UI_PC_THEME_DARK_CLASS_NAME as jr } from "./utils/
|
|
96
|
+
import { CSS_VARIABLE_ELEMENT as Tr, DAYJS_DEFAULT_FORMAT as Er, DAYJS_DEFAULT_FORMAT_WITH_TIME as Dr, NOOP as Or, PREFIX_CLASS as kr, UI_PC_KEY as Ar, UI_PC_THEME_DARK_CLASS_NAME as jr } from "./utils/constants.js";
|
|
97
97
|
import { assign as Mr, assignIn as Nr, at as Pr, camelCase as Fr, capitalize as Ir, castArray as Lr, chain as Rr, chunk as zr, clone as Br, cloneDeep as Vr, cloneDeepWith as Hr, cloneWith as Ur, compact as Wr, curry as Gr, debounce as Kr, defaultTo as qr, defaults as Jr, defaultsDeep as Yr, difference as Xr, escape as Zr, findKey as Qr, flattenDeep as $r, flow as ei, get as ti, groupBy as ni, has as ri, intersection as ii, invert as ai, invertBy as oi, kebabCase as si, mean as ci, memoize as li, merge as ui, mergeWith as di, noop as L, omit as fi, omitBy as pi, orderBy as mi, partition as hi, pick as gi, pickBy as _i, pullAll as vi, result as yi, sample as bi, sampleSize as xi, set as Si, setWith as Ci, shuffle as wi, snakeCase as Ti, sortBy as Ei, startCase as Di, throttle as Oi, toPath as ki, truncate as Ai, union as ji, uniq as Mi, uniqueId as Ni, unset as Pi, update as Fi, updateWith as Ii, upperCase as Li, upperFirst as Ri, without as zi, xor as Bi, zip as Vi } from "./utils/lodash.js";
|
|
98
98
|
import Hi from "./hooks/use-intersection-observers/index.js";
|
|
99
99
|
import Ui from "./hooks/use-is-first-render/index.js";
|
|
@@ -172,45 +172,49 @@ import { TransitionCSS as Ss } from "./transition/TransitionCSS.js";
|
|
|
172
172
|
import { TransitionGroup as Cs } from "./transition/TransitionGroup.js";
|
|
173
173
|
import { TransitionStyle as ws } from "./transition/TransitionStyle.js";
|
|
174
174
|
import "./transition/index.js";
|
|
175
|
-
import Ts from "./
|
|
176
|
-
import
|
|
177
|
-
import
|
|
178
|
-
import ks from "./flex/
|
|
179
|
-
import {
|
|
180
|
-
import js from "./
|
|
181
|
-
import Ms from "./
|
|
182
|
-
import Ns from "./
|
|
183
|
-
import Ps from "./
|
|
184
|
-
import Fs from "./
|
|
185
|
-
import Is from "./
|
|
186
|
-
import Ls from "./
|
|
187
|
-
import Rs from "./
|
|
188
|
-
import
|
|
175
|
+
import { ANIMATION_NAMES as Ts } from "./animation/constants.js";
|
|
176
|
+
import Es from "./animation/index.js";
|
|
177
|
+
import Ds from "./development/index.js";
|
|
178
|
+
import { GAP_SIZE_MAP as Os, processGap as ks } from "./flex/utils.js";
|
|
179
|
+
import { FlexVertical as As } from "./flex/Flex.js";
|
|
180
|
+
import js from "./flex/index.js";
|
|
181
|
+
import { SpaceVertical as Ms } from "./space/Space.js";
|
|
182
|
+
import Ns from "./space/index.js";
|
|
183
|
+
import Ps from "./empty/index.js";
|
|
184
|
+
import Fs from "./higher-order/with-speech-synthesis/index.js";
|
|
185
|
+
import Is from "./icons/file/index.js";
|
|
186
|
+
import Ls from "./progress/index.js";
|
|
187
|
+
import Rs from "./suspense-fallback-test/index.js";
|
|
188
|
+
import zs from "./timer/index.js";
|
|
189
|
+
import Bs from "./typewriter/index.js";
|
|
190
|
+
import { VERSION as Vs, VERSION_BUILD_DATE as Hs, VERSION_BUILD_INFO as Us, VERSION_BUILD_TIME as Ws } from "./version/index.js";
|
|
189
191
|
export * from "@unicom-cloud/utils/is";
|
|
190
192
|
export * from "@unicom-cloud/utils/object";
|
|
191
193
|
export * from "@unicom-cloud/utils/css";
|
|
192
194
|
export * from "@unicom-cloud/utils/file";
|
|
193
195
|
export * from "@unicom-cloud/utils/tinycolor";
|
|
194
196
|
te(/* @__PURE__ */ ee({
|
|
197
|
+
ANIMATION_NAMES: () => Ts,
|
|
198
|
+
Animation: () => Es,
|
|
195
199
|
COMPONENT_NAMES: () => bo,
|
|
196
200
|
CSS_VARIABLE_ELEMENT: () => Tr,
|
|
197
201
|
DAYJS_DEFAULT_FORMAT: () => Er,
|
|
198
202
|
DAYJS_DEFAULT_FORMAT_WITH_TIME: () => Dr,
|
|
199
|
-
Development: () =>
|
|
203
|
+
Development: () => Ds,
|
|
200
204
|
Emitter: () => aa,
|
|
201
|
-
Empty: () =>
|
|
202
|
-
FLEX_GAP_SIZE_MAP: () =>
|
|
203
|
-
Flex: () =>
|
|
204
|
-
FlexVertical: () =>
|
|
205
|
+
Empty: () => Ps,
|
|
206
|
+
FLEX_GAP_SIZE_MAP: () => Os,
|
|
207
|
+
Flex: () => js,
|
|
208
|
+
FlexVertical: () => As,
|
|
205
209
|
HYPHEN: () => Ra,
|
|
206
|
-
IconFile: () =>
|
|
210
|
+
IconFile: () => Is,
|
|
207
211
|
NOOP: () => Or,
|
|
208
212
|
PREFIX_CLASS: () => kr,
|
|
209
213
|
PqbValidator: () => io,
|
|
210
|
-
Progress: () =>
|
|
211
|
-
Space: () =>
|
|
212
|
-
SpaceVertical: () =>
|
|
213
|
-
SuspenseFallbackTest: () =>
|
|
214
|
+
Progress: () => Ls,
|
|
215
|
+
Space: () => Ns,
|
|
216
|
+
SpaceVertical: () => Ms,
|
|
217
|
+
SuspenseFallbackTest: () => Rs,
|
|
214
218
|
TRANSITION_ADD_END_LISTENER_KEY: () => Io,
|
|
215
219
|
TRANSITION_ALWAYS_MOUNTED_KEY: () => Lo,
|
|
216
220
|
TRANSITION_CSS_CLASS_NAMES_SUFFIX: () => Ro,
|
|
@@ -240,7 +244,7 @@ te(/* @__PURE__ */ ee({
|
|
|
240
244
|
TRANSITION_PHASE_EXIT_KEY: () => cs,
|
|
241
245
|
TRANSITION_PHASE_EXIT_START: () => ls,
|
|
242
246
|
TRANSITION_UNMOUNT_ON_EXIT_KEY: () => us,
|
|
243
|
-
Timer: () =>
|
|
247
|
+
Timer: () => zs,
|
|
244
248
|
Transition: () => xs,
|
|
245
249
|
TransitionCSS: () => Ss,
|
|
246
250
|
TransitionCSS_Context: () => ps,
|
|
@@ -252,13 +256,13 @@ te(/* @__PURE__ */ ee({
|
|
|
252
256
|
TransitionStyle: () => ws,
|
|
253
257
|
TransitionStyleContext: () => gs,
|
|
254
258
|
Tween: () => no,
|
|
255
|
-
Typewriter: () =>
|
|
259
|
+
Typewriter: () => Bs,
|
|
256
260
|
UI_PC_KEY: () => Ar,
|
|
257
261
|
UI_PC_THEME_DARK_CLASS_NAME: () => jr,
|
|
258
|
-
VERSION: () =>
|
|
259
|
-
VERSION_BUILD_DATE: () =>
|
|
260
|
-
VERSION_BUILD_INFO: () =>
|
|
261
|
-
VERSION_BUILD_TIME: () =>
|
|
262
|
+
VERSION: () => Vs,
|
|
263
|
+
VERSION_BUILD_DATE: () => Hs,
|
|
264
|
+
VERSION_BUILD_INFO: () => Us,
|
|
265
|
+
VERSION_BUILD_TIME: () => Ws,
|
|
262
266
|
Validator: () => ao,
|
|
263
267
|
ValidatorArray: () => oo,
|
|
264
268
|
ValidatorBase: () => so,
|
|
@@ -319,7 +323,7 @@ te(/* @__PURE__ */ ee({
|
|
|
319
323
|
findRootElement: () => Mn,
|
|
320
324
|
fixedWidth: () => Ba,
|
|
321
325
|
flattenDeep: () => $r,
|
|
322
|
-
flexProcessGap: () =>
|
|
326
|
+
flexProcessGap: () => ks,
|
|
323
327
|
flow: () => ei,
|
|
324
328
|
focusAtEnd: () => Fn,
|
|
325
329
|
forceReflow: () => I,
|
|
@@ -675,11 +679,11 @@ te(/* @__PURE__ */ ee({
|
|
|
675
679
|
uuidv4: () => eo,
|
|
676
680
|
validatorLocale: () => go,
|
|
677
681
|
warning: () => _o,
|
|
678
|
-
withSpeechSynthesis: () =>
|
|
682
|
+
withSpeechSynthesis: () => Fs,
|
|
679
683
|
without: () => zi,
|
|
680
684
|
xor: () => Bi,
|
|
681
685
|
zip: () => Vi
|
|
682
686
|
}), xo);
|
|
683
687
|
//#endregion
|
|
684
|
-
export { bo as COMPONENT_NAMES, Tr as CSS_VARIABLE_ELEMENT, Er as DAYJS_DEFAULT_FORMAT, Dr as DAYJS_DEFAULT_FORMAT_WITH_TIME, Ts as Development, aa as Emitter, Ms as Empty, Es as FLEX_GAP_SIZE_MAP, ks as Flex, Os as FlexVertical, Ra as HYPHEN, Ps as IconFile, Or as NOOP, kr as PREFIX_CLASS, io as PqbValidator, Fs as Progress, js as Space, As as SpaceVertical, Is as SuspenseFallbackTest, Io as TRANSITION_ADD_END_LISTENER_KEY, Lo as TRANSITION_ALWAYS_MOUNTED_KEY, Ro as TRANSITION_CSS_CLASS_NAMES_SUFFIX, zo as TRANSITION_DEFAULT_PROPS, Bo as TRANSITION_DURATION_DEFAULT, Vo as TRANSITION_DURATION_KEY, Ho as TRANSITION_EVENT_MAP, Uo as TRANSITION_EVENT_NAME_KEY, Wo as TRANSITION_MOUNT_ON_ENTER_KEY, Go as TRANSITION_NEXT_PHASE_KEY, Ko as TRANSITION_PHASE_APPEAR_ACTIVE, qo as TRANSITION_PHASE_APPEAR_DONE, Jo as TRANSITION_PHASE_APPEAR_KEY, Yo as TRANSITION_PHASE_APPEAR_START, Xo as TRANSITION_PHASE_ENTER_ACTIVE, Zo as TRANSITION_PHASE_ENTER_DONE, Qo as TRANSITION_PHASE_ENTER_KEY, $o as TRANSITION_PHASE_ENTER_START, es as TRANSITION_PHASE_EVENT_ON_ENTER_ACTIVE, ts as TRANSITION_PHASE_EVENT_ON_ENTER_DONE, ns as TRANSITION_PHASE_EVENT_ON_ENTER_START, rs as TRANSITION_PHASE_EVENT_ON_EXIT_ACTIVE, is as TRANSITION_PHASE_EVENT_ON_EXIT_DONE, as as TRANSITION_PHASE_EVENT_ON_EXIT_START, os as TRANSITION_PHASE_EXIT_ACTIVE, ss as TRANSITION_PHASE_EXIT_DONE, cs as TRANSITION_PHASE_EXIT_KEY, ls as TRANSITION_PHASE_EXIT_START, us as TRANSITION_UNMOUNT_ON_EXIT_KEY, Ls as Timer, xs as Transition, Ss as TransitionCSS, ps as TransitionCSS_Context, ms as TransitionContext, Cs as TransitionGroup, hs as TransitionGroupContext, ds as TransitionPhase, fs as TransitionPhaseEvent, ws as TransitionStyle, gs as TransitionStyleContext, no as Tween, Rs as Typewriter, Ar as UI_PC_KEY, jr as UI_PC_THEME_DARK_CLASS_NAME, zs as VERSION, Bs as VERSION_BUILD_DATE, Vs as VERSION_BUILD_INFO, Hs as VERSION_BUILD_TIME, ao as Validator, oo as ValidatorArray, so as ValidatorBase, co as ValidatorBoolean, lo as ValidatorCustom, uo as ValidatorNumber, fo as ValidatorObject, po as ValidatorSchema, mo as ValidatorString, ho as ValidatorType, _s as addSuffix, Mr as assign, Nr as assignIn, Pr as at, Xi as callOrReturn, Yi as callbackOriginRef, Fr as camelCase, Nn as canUseDOM, Ir as capitalize, Zi as caseName, Lr as castArray, Rr as chain, zr as chunk, Qi as className, fn as clearCache, R as clipboardCopy, R as copy, Br as clone, Vr as cloneDeep, Hr as cloneDeepWith, Ur as cloneWith, Wr as compact, Tn as composeRef, er as configResponsive, Pn as contains, ea as convertTime, ta as convertToDurationBasedOnTimeUnits, ne as createUpdateEffect, $i as cs, Gr as curry, na as dateFormat, ia as dayjs, ra as dayjsFormat, Kr as debounce, qr as defaultTo, Jr as defaults, Yr as defaultsDeep, Xr as difference, _a as div, ro as easing, Zr as escape, oa as fileRead, sa as fileToDataURL, ca as fillNBSP, En as fillRef, Qr as findKey, Ka as findNodeBy, Mn as findRootElement, Ba as fixedWidth, $r as flattenDeep, Ds as flexProcessGap, ei as flow, Fn as focusAtEnd, I as forceReflow, I as reflow, ti as get, In as getBodyContainer, qa as getChildWithParentBy, Ln as getDOM, Rn as getElementCoordinates, la as getHighlightText, ua as getHotkeyHandler, Ja as getItemBy, Ya as getItemByID, Xa as getLabelFromDictionaryByValue, Dn as getNodeRef, On as getReactElementRef, fa as getScrollBarHeight, da as getScrollBarSize, pa as getScrollBarWidth, zn as getScrollElements, ma as getStringLength, Va as getStyle, ni as groupBy, ri as has, vs as inArrayHandler, ha as include, ii as intersection, ga as intersectionObserver, ai as invert, oi as invertBy, re as is32Bit, z as isActivePhaseHandler, ie as isAllChinese, B as isAppearActivePhaseHandler, V as isAppearDonePhaseHandler, H as isAppearPhaseHandler, U as isAppearStartPhaseHandler, ae as isArguments, oe as isArray, se as isArrayAndNotEmpty, ce as isArrayBuffer, le as isArrayEmpty, ue as isArrayLike, de as isArrayLikeObject, fe as isAscii, pe as isAsyncFunction, me as isBase64, he as isBigInt, ge as isBlob, _e as isBoolean, ve as isBuffer, e as isChinese, t as isColorValue, n as isColorValue_, r as isDOM, i as isDataURI, a as isDate, o as isDayjs, W as isDonePhaseHandler, s as isElement, c as isElementByInstanceof, l as isEmail, u as isEmpty, d as isEmptyArray, f as isEmptyObject, p as isEmptyReactNode, m as isEmptyString, h as isEmptyValue, G as isEnterActivePhaseHandler, K as isEnterDonePhaseHandler, q as isEnterPhaseHandler, J as isEnterStartPhaseHandler, g as isEqual, _ as isEqualWith, v as isError, y as isEventTarget, b as isExist, Y as isExitActivePhaseHandler, X as isExitDonePhaseHandler, Z as isExitPhaseHandler, Q as isExitStartPhaseHandler, x as isFalse, S as isFile, C as isFinite, w as isFullWidth, T as isFunction, E as isHSL, D as isHTMLElement, O as isHalfWidth, k as isHash, A as isHexColor, j as isIMEI, M as isIP, N as isIPRange, P as isIdentityCard, F as isInteger, ye as isJSON, be as isJSON_String, xe as isJWT, Se as isLength, Ce as isMACAddress, we as isMD5, Te as isMap, Ee as isMatch, De as isMatchWith, Oe as isMimeType, ke as isMobilePhone, Ae as isMobilePhoneLocales, je as isNaN, Me as isNative, Ne as isNil, Pe as isNonNullable, Fe as isNotFound, Ie as isNull, Le as isNullOrUndefined, Re as isNumber, ze as isNumberOrString, Be as isObject, Ve as isObjectLike, He as isPlainObject, Ue as isPort, We as isPresent, Ge as isPrimitive, Ke as isPromise, qe as isReact18, Je as isReact19, Ye as isReactClassComponent, Xe as isReactComponent, Ze as isReactComponentAndNotFragment, Qe as isReadableStream, $e as isRegExp, et as isRgbColor, tt as isSVGElement, nt as isSafeInteger, rt as isScrollElement, it as isSemVer, at as isServerRendering, ot as isSet, st as isSlug, ct as isSparseArray, $ as isStartPhaseHandler, lt as isString, ut as isStringAndExist, dt as isStringOrNumber, ft as isStrongPassword, pt as isSymbol, mt as isThenable, ht as isTrue, gt as isTypedArray, _t as isURL, vt as isUUID, yt as isUndefined, bt as isUndefinedOrNull, xt as isVariableWidth, St as isWeakMap, Ct as isWeakSet, wt as isWindow, Tt as isZero, si as kebabCase, yo as keyboardCode, va as math, ci as mean, li as memoize, ui as merge, qi as mergeProps, di as mergeWith, Sa as mergedToString, ya as minus, Ca as mutationObserver, L as noop, Bn as off, fi as omit, pi as omitBy, Vn as on, mi as orderBy, wa as padEnd, Ta as padStart, Hn as parentContainsChildren, hi as partition, gi as pick, _i as pickBy, Ea as pickDataAttributes, vo as pinyin, ba as plus, vi as pullAll, Pa as removeDarkTheme, Ma as render, za as replaceEmptyWithHyphen, Da as resizeObserver, yi as result, bi as sample, xi as sampleSize, Oa as saveAs, ka as screenfull, Aa as scrollIntoViewIfNeeded, Za as searchTree, Si as set, ja as setCreateRoot, Na as setDarkTheme, Fa as setDir, Ia as setPrimaryColor, La as setTheme, Ha as setTransformStyle, Ci as setWith, wi as shuffle, Ti as snakeCase, Ei as sortBy, Di as startCase, kn as supportNodeRef, An as supportRef, Oi as throttle, Ua as throttleByRequestAnimationFrame, xa as times, Wa as tinycolor, Ga as toArray, ki as toPath, ys as transitionFallbackAppearToEnter, z as transitionIsActivePhaseHandler, B as transitionIsAppearActivePhaseHandler, V as transitionIsAppearDonePhaseHandler, H as transitionIsAppearPhaseHandler, U as transitionIsAppearStartPhaseHandler, W as transitionIsDonePhaseHandler, G as transitionIsEnterActivePhaseHandler, K as transitionIsEnterDonePhaseHandler, q as transitionIsEnterPhaseHandler, J as transitionIsEnterStartPhaseHandler, Y as transitionIsExitActivePhaseHandler, X as transitionIsExitDonePhaseHandler, Z as transitionIsExitPhaseHandler, Q as transitionIsExitStartPhaseHandler, $ as transitionIsStartPhaseHandler, bs as transitionNormalizeDurations, Qa as tree, Ai as truncate, to as tunnel, ji as union, Mi as uniq, Ni as uniqueId, Pi as unset, Fi as update, Ii as updateWith, Li as upperCase, Ri as upperFirst, Et as useAsyncEffect, Ot as useBoolean, jt as useClickAway, jn as useComposeRef, Mt as useComputedState, It as useControllableValue, Lt as useCookieState, Rt as useCountDown, zt as useCounter, Bt as useCreate, Vt as useCreation, Ut as useDebounce, Gt as useDebounceEffect, Ht as useDebounceFn, Kt as useDeepCompareEffect, qt as useDeepCompareLayoutEffect, Yt as useDocumentVisibility, Zt as useDrag, Qt as useDrop, Cr as useEffectEvent, $t as useEvent, en as useEventEmitter, Jt as useEventListener, tn as useEventTarget, nn as useExternal, rn as useFavicon, an as useFocusWithin, Un as useForceUpdate, on as useFullscreen, sn as useGetState, cn as useHistoryTravel, ln as useHover, wr as useId, dn as useInViewport, mn as useInfiniteScroll, un as useIntersectionObserver, Hi as useIntersectionObservers, hn as useInterval, Ui as useIsFirstRender, gn as useIsomorphicLayoutEffect, _n as useKeyPress, Wi as useKeyboardEvent, kt as useLatest, Gi as useListenWindowResize, vn as useLocalStorageState, yn as useLockFn, bn as useLongPress, Ki as useMedia, xn as useMemo, Nt as useMemoizedFn, Ji as useMergeProps, Sn as useMobile, Xt as useMount, wn as useMouse, Wn as useMove, Gn as useMutationObserver, So as useMutationObservers, Kn as useNetwork, Co as useOnlineStatus, wo as useOverflowHidden, To as useOverrideRef, qn as usePagination, Eo as usePasteImage, Do as usePersistCallback, Oo as usePrefersColorSchemeDark, Pt as usePrevious, Jn as useRafInterval, Cn as useRafState, Yn as useRafTimeout, Xn as useReactive, Zn as useRefLatest, ko as useRefs, Ao as useRefs2, pn as useRequest, Qn as useResetState, jo as useResizeObserver, Mo as useResizeObservers, $n as useResponsive, nr as useSafeState, rr as useScroll, ir as useSelections, ar as useSessionStorageState, sr as useSetState, cr as useSize, or as useStateCallback, No as useStateWithPromise, lr as useSyncState, ur as useTextSelection, dr as useTheme, pr as useThrottle, mr as useThrottleEffect, fr as useThrottleFn, hr as useTimeout, gr as useTitle, Dt as useToggle, _r as useTrackedEffect, At as useUnmount, tr as useUnmountedRef, Ft as useUpdate, Wt as useUpdateEffect, vr as useUpdateLayoutEffect, yr as useUrlState, br as useVirtualList, Po as useWatch, xr as useWebSocket, Sr as useWhyDidYouUpdate, Fo as useWindowSize, $a as uuid, eo as uuidv4, go as validatorLocale, _o as warning, Ns as withSpeechSynthesis, zi as without, Bi as xor, Vi as zip };
|
|
688
|
+
export { Ts as ANIMATION_NAMES, Es as Animation, bo as COMPONENT_NAMES, Tr as CSS_VARIABLE_ELEMENT, Er as DAYJS_DEFAULT_FORMAT, Dr as DAYJS_DEFAULT_FORMAT_WITH_TIME, Ds as Development, aa as Emitter, Ps as Empty, Os as FLEX_GAP_SIZE_MAP, js as Flex, As as FlexVertical, Ra as HYPHEN, Is as IconFile, Or as NOOP, kr as PREFIX_CLASS, io as PqbValidator, Ls as Progress, Ns as Space, Ms as SpaceVertical, Rs as SuspenseFallbackTest, Io as TRANSITION_ADD_END_LISTENER_KEY, Lo as TRANSITION_ALWAYS_MOUNTED_KEY, Ro as TRANSITION_CSS_CLASS_NAMES_SUFFIX, zo as TRANSITION_DEFAULT_PROPS, Bo as TRANSITION_DURATION_DEFAULT, Vo as TRANSITION_DURATION_KEY, Ho as TRANSITION_EVENT_MAP, Uo as TRANSITION_EVENT_NAME_KEY, Wo as TRANSITION_MOUNT_ON_ENTER_KEY, Go as TRANSITION_NEXT_PHASE_KEY, Ko as TRANSITION_PHASE_APPEAR_ACTIVE, qo as TRANSITION_PHASE_APPEAR_DONE, Jo as TRANSITION_PHASE_APPEAR_KEY, Yo as TRANSITION_PHASE_APPEAR_START, Xo as TRANSITION_PHASE_ENTER_ACTIVE, Zo as TRANSITION_PHASE_ENTER_DONE, Qo as TRANSITION_PHASE_ENTER_KEY, $o as TRANSITION_PHASE_ENTER_START, es as TRANSITION_PHASE_EVENT_ON_ENTER_ACTIVE, ts as TRANSITION_PHASE_EVENT_ON_ENTER_DONE, ns as TRANSITION_PHASE_EVENT_ON_ENTER_START, rs as TRANSITION_PHASE_EVENT_ON_EXIT_ACTIVE, is as TRANSITION_PHASE_EVENT_ON_EXIT_DONE, as as TRANSITION_PHASE_EVENT_ON_EXIT_START, os as TRANSITION_PHASE_EXIT_ACTIVE, ss as TRANSITION_PHASE_EXIT_DONE, cs as TRANSITION_PHASE_EXIT_KEY, ls as TRANSITION_PHASE_EXIT_START, us as TRANSITION_UNMOUNT_ON_EXIT_KEY, zs as Timer, xs as Transition, Ss as TransitionCSS, ps as TransitionCSS_Context, ms as TransitionContext, Cs as TransitionGroup, hs as TransitionGroupContext, ds as TransitionPhase, fs as TransitionPhaseEvent, ws as TransitionStyle, gs as TransitionStyleContext, no as Tween, Bs as Typewriter, Ar as UI_PC_KEY, jr as UI_PC_THEME_DARK_CLASS_NAME, Vs as VERSION, Hs as VERSION_BUILD_DATE, Us as VERSION_BUILD_INFO, Ws as VERSION_BUILD_TIME, ao as Validator, oo as ValidatorArray, so as ValidatorBase, co as ValidatorBoolean, lo as ValidatorCustom, uo as ValidatorNumber, fo as ValidatorObject, po as ValidatorSchema, mo as ValidatorString, ho as ValidatorType, _s as addSuffix, Mr as assign, Nr as assignIn, Pr as at, Xi as callOrReturn, Yi as callbackOriginRef, Fr as camelCase, Nn as canUseDOM, Ir as capitalize, Zi as caseName, Lr as castArray, Rr as chain, zr as chunk, Qi as className, fn as clearCache, R as clipboardCopy, R as copy, Br as clone, Vr as cloneDeep, Hr as cloneDeepWith, Ur as cloneWith, Wr as compact, Tn as composeRef, er as configResponsive, Pn as contains, ea as convertTime, ta as convertToDurationBasedOnTimeUnits, ne as createUpdateEffect, $i as cs, Gr as curry, na as dateFormat, ia as dayjs, ra as dayjsFormat, Kr as debounce, qr as defaultTo, Jr as defaults, Yr as defaultsDeep, Xr as difference, _a as div, ro as easing, Zr as escape, oa as fileRead, sa as fileToDataURL, ca as fillNBSP, En as fillRef, Qr as findKey, Ka as findNodeBy, Mn as findRootElement, Ba as fixedWidth, $r as flattenDeep, ks as flexProcessGap, ei as flow, Fn as focusAtEnd, I as forceReflow, I as reflow, ti as get, In as getBodyContainer, qa as getChildWithParentBy, Ln as getDOM, Rn as getElementCoordinates, la as getHighlightText, ua as getHotkeyHandler, Ja as getItemBy, Ya as getItemByID, Xa as getLabelFromDictionaryByValue, Dn as getNodeRef, On as getReactElementRef, fa as getScrollBarHeight, da as getScrollBarSize, pa as getScrollBarWidth, zn as getScrollElements, ma as getStringLength, Va as getStyle, ni as groupBy, ri as has, vs as inArrayHandler, ha as include, ii as intersection, ga as intersectionObserver, ai as invert, oi as invertBy, re as is32Bit, z as isActivePhaseHandler, ie as isAllChinese, B as isAppearActivePhaseHandler, V as isAppearDonePhaseHandler, H as isAppearPhaseHandler, U as isAppearStartPhaseHandler, ae as isArguments, oe as isArray, se as isArrayAndNotEmpty, ce as isArrayBuffer, le as isArrayEmpty, ue as isArrayLike, de as isArrayLikeObject, fe as isAscii, pe as isAsyncFunction, me as isBase64, he as isBigInt, ge as isBlob, _e as isBoolean, ve as isBuffer, e as isChinese, t as isColorValue, n as isColorValue_, r as isDOM, i as isDataURI, a as isDate, o as isDayjs, W as isDonePhaseHandler, s as isElement, c as isElementByInstanceof, l as isEmail, u as isEmpty, d as isEmptyArray, f as isEmptyObject, p as isEmptyReactNode, m as isEmptyString, h as isEmptyValue, G as isEnterActivePhaseHandler, K as isEnterDonePhaseHandler, q as isEnterPhaseHandler, J as isEnterStartPhaseHandler, g as isEqual, _ as isEqualWith, v as isError, y as isEventTarget, b as isExist, Y as isExitActivePhaseHandler, X as isExitDonePhaseHandler, Z as isExitPhaseHandler, Q as isExitStartPhaseHandler, x as isFalse, S as isFile, C as isFinite, w as isFullWidth, T as isFunction, E as isHSL, D as isHTMLElement, O as isHalfWidth, k as isHash, A as isHexColor, j as isIMEI, M as isIP, N as isIPRange, P as isIdentityCard, F as isInteger, ye as isJSON, be as isJSON_String, xe as isJWT, Se as isLength, Ce as isMACAddress, we as isMD5, Te as isMap, Ee as isMatch, De as isMatchWith, Oe as isMimeType, ke as isMobilePhone, Ae as isMobilePhoneLocales, je as isNaN, Me as isNative, Ne as isNil, Pe as isNonNullable, Fe as isNotFound, Ie as isNull, Le as isNullOrUndefined, Re as isNumber, ze as isNumberOrString, Be as isObject, Ve as isObjectLike, He as isPlainObject, Ue as isPort, We as isPresent, Ge as isPrimitive, Ke as isPromise, qe as isReact18, Je as isReact19, Ye as isReactClassComponent, Xe as isReactComponent, Ze as isReactComponentAndNotFragment, Qe as isReadableStream, $e as isRegExp, et as isRgbColor, tt as isSVGElement, nt as isSafeInteger, rt as isScrollElement, it as isSemVer, at as isServerRendering, ot as isSet, st as isSlug, ct as isSparseArray, $ as isStartPhaseHandler, lt as isString, ut as isStringAndExist, dt as isStringOrNumber, ft as isStrongPassword, pt as isSymbol, mt as isThenable, ht as isTrue, gt as isTypedArray, _t as isURL, vt as isUUID, yt as isUndefined, bt as isUndefinedOrNull, xt as isVariableWidth, St as isWeakMap, Ct as isWeakSet, wt as isWindow, Tt as isZero, si as kebabCase, yo as keyboardCode, va as math, ci as mean, li as memoize, ui as merge, qi as mergeProps, di as mergeWith, Sa as mergedToString, ya as minus, Ca as mutationObserver, L as noop, Bn as off, fi as omit, pi as omitBy, Vn as on, mi as orderBy, wa as padEnd, Ta as padStart, Hn as parentContainsChildren, hi as partition, gi as pick, _i as pickBy, Ea as pickDataAttributes, vo as pinyin, ba as plus, vi as pullAll, Pa as removeDarkTheme, Ma as render, za as replaceEmptyWithHyphen, Da as resizeObserver, yi as result, bi as sample, xi as sampleSize, Oa as saveAs, ka as screenfull, Aa as scrollIntoViewIfNeeded, Za as searchTree, Si as set, ja as setCreateRoot, Na as setDarkTheme, Fa as setDir, Ia as setPrimaryColor, La as setTheme, Ha as setTransformStyle, Ci as setWith, wi as shuffle, Ti as snakeCase, Ei as sortBy, Di as startCase, kn as supportNodeRef, An as supportRef, Oi as throttle, Ua as throttleByRequestAnimationFrame, xa as times, Wa as tinycolor, Ga as toArray, ki as toPath, ys as transitionFallbackAppearToEnter, z as transitionIsActivePhaseHandler, B as transitionIsAppearActivePhaseHandler, V as transitionIsAppearDonePhaseHandler, H as transitionIsAppearPhaseHandler, U as transitionIsAppearStartPhaseHandler, W as transitionIsDonePhaseHandler, G as transitionIsEnterActivePhaseHandler, K as transitionIsEnterDonePhaseHandler, q as transitionIsEnterPhaseHandler, J as transitionIsEnterStartPhaseHandler, Y as transitionIsExitActivePhaseHandler, X as transitionIsExitDonePhaseHandler, Z as transitionIsExitPhaseHandler, Q as transitionIsExitStartPhaseHandler, $ as transitionIsStartPhaseHandler, bs as transitionNormalizeDurations, Qa as tree, Ai as truncate, to as tunnel, ji as union, Mi as uniq, Ni as uniqueId, Pi as unset, Fi as update, Ii as updateWith, Li as upperCase, Ri as upperFirst, Et as useAsyncEffect, Ot as useBoolean, jt as useClickAway, jn as useComposeRef, Mt as useComputedState, It as useControllableValue, Lt as useCookieState, Rt as useCountDown, zt as useCounter, Bt as useCreate, Vt as useCreation, Ut as useDebounce, Gt as useDebounceEffect, Ht as useDebounceFn, Kt as useDeepCompareEffect, qt as useDeepCompareLayoutEffect, Yt as useDocumentVisibility, Zt as useDrag, Qt as useDrop, Cr as useEffectEvent, $t as useEvent, en as useEventEmitter, Jt as useEventListener, tn as useEventTarget, nn as useExternal, rn as useFavicon, an as useFocusWithin, Un as useForceUpdate, on as useFullscreen, sn as useGetState, cn as useHistoryTravel, ln as useHover, wr as useId, dn as useInViewport, mn as useInfiniteScroll, un as useIntersectionObserver, Hi as useIntersectionObservers, hn as useInterval, Ui as useIsFirstRender, gn as useIsomorphicLayoutEffect, _n as useKeyPress, Wi as useKeyboardEvent, kt as useLatest, Gi as useListenWindowResize, vn as useLocalStorageState, yn as useLockFn, bn as useLongPress, Ki as useMedia, xn as useMemo, Nt as useMemoizedFn, Ji as useMergeProps, Sn as useMobile, Xt as useMount, wn as useMouse, Wn as useMove, Gn as useMutationObserver, So as useMutationObservers, Kn as useNetwork, Co as useOnlineStatus, wo as useOverflowHidden, To as useOverrideRef, qn as usePagination, Eo as usePasteImage, Do as usePersistCallback, Oo as usePrefersColorSchemeDark, Pt as usePrevious, Jn as useRafInterval, Cn as useRafState, Yn as useRafTimeout, Xn as useReactive, Zn as useRefLatest, ko as useRefs, Ao as useRefs2, pn as useRequest, Qn as useResetState, jo as useResizeObserver, Mo as useResizeObservers, $n as useResponsive, nr as useSafeState, rr as useScroll, ir as useSelections, ar as useSessionStorageState, sr as useSetState, cr as useSize, or as useStateCallback, No as useStateWithPromise, lr as useSyncState, ur as useTextSelection, dr as useTheme, pr as useThrottle, mr as useThrottleEffect, fr as useThrottleFn, hr as useTimeout, gr as useTitle, Dt as useToggle, _r as useTrackedEffect, At as useUnmount, tr as useUnmountedRef, Ft as useUpdate, Wt as useUpdateEffect, vr as useUpdateLayoutEffect, yr as useUrlState, br as useVirtualList, Po as useWatch, xr as useWebSocket, Sr as useWhyDidYouUpdate, Fo as useWindowSize, $a as uuid, eo as uuidv4, go as validatorLocale, _o as warning, Fs as withSpeechSynthesis, zi as without, Bi as xor, Vi as zip };
|
|
685
689
|
/* 独立思考,明辨是非 */
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@unicom-cloud/ui-common","version":"0.1.
|
|
1
|
+
{"name":"@unicom-cloud/ui-common","version":"0.1.31","dependencies":{"@unicom-cloud/utils":"^0.1.0","@unicom-cloud/icons":"^0.1.0","react-compiler-runtime":"^1.0.0"},"peerDependencies":{"dayjs":"^1.11.21","lodash":"^4.18.1","react":"^18.3.1","react-dom":"^18.3.1","react-is":"^18.3.1"},"type":"module","types":"./index.d.ts","main":"./index.js","bin":{"ui":"./test.js"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
|
package/progress/Progress.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
|
|
2
2
|
import { isNumber as e, isUndefined as t } from "../utils/is.js";
|
|
3
|
-
import { UI_COMMON_PREFIX as n } from "@unicom-cloud/utils/
|
|
3
|
+
import { UI_COMMON_PREFIX as n } from "@unicom-cloud/utils/constants/ui";
|
|
4
4
|
//#region components/common/progress/Progress.js
|
|
5
5
|
var r = {
|
|
6
6
|
status: null,
|
|
File without changes
|
package/progress/index.d.ts
CHANGED
|
@@ -1,29 +1,2 @@
|
|
|
1
1
|
export default Progress;
|
|
2
|
-
|
|
3
|
-
status: null;
|
|
4
|
-
settings: {
|
|
5
|
-
parent: HTMLElement;
|
|
6
|
-
progress: HTMLDivElement;
|
|
7
|
-
bar: HTMLDivElement;
|
|
8
|
-
minimum: number;
|
|
9
|
-
easing: string;
|
|
10
|
-
positionUsing: string;
|
|
11
|
-
speed: number;
|
|
12
|
-
trickle: boolean;
|
|
13
|
-
trickleSpeed: number;
|
|
14
|
-
};
|
|
15
|
-
configure(options: any): /*elided*/ any;
|
|
16
|
-
set(n: any): /*elided*/ any;
|
|
17
|
-
isStarted(): boolean;
|
|
18
|
-
start(): /*elided*/ any;
|
|
19
|
-
done(force: any): /*elided*/ any;
|
|
20
|
-
inc(amount: any): /*elided*/ any | undefined;
|
|
21
|
-
trickle(): /*elided*/ any | undefined;
|
|
22
|
-
render(fromStart: any): HTMLDivElement;
|
|
23
|
-
remove(): void;
|
|
24
|
-
} & {
|
|
25
|
-
zh: string;
|
|
26
|
-
en: string;
|
|
27
|
-
displayName: string;
|
|
28
|
-
id: string;
|
|
29
|
-
};
|
|
2
|
+
import Progress from './Progress';
|
package/progress/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
|
|
2
|
+
import "./style/index.js";
|
|
3
|
+
import e from "./Progress.js";
|
|
4
4
|
//#region components/common/progress/index.js
|
|
5
|
-
var
|
|
5
|
+
var t = e;
|
|
6
6
|
//#endregion
|
|
7
|
-
export {
|
|
7
|
+
export { t as default };
|
|
8
8
|
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.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))));z-index:870227;width:100%;height:2px;position:fixed;inset-block-start:0;inset-inline-start:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
|
|
2
2
|
import { createContext as e, useCallback as t, useContext as n, useRef as r } from "react";
|
|
3
3
|
import { jsx as i } from "react/jsx-runtime";
|
|
4
4
|
//#region components/common/resize-observer/Collection.tsx
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
|
|
2
2
|
import { isFunction as e } from "../utils/is.js";
|
|
3
|
-
import t from "../
|
|
3
|
+
import t from "../hooks/use-merge-props/index.js";
|
|
4
|
+
import n from "../utils/toArray.js";
|
|
4
5
|
import "../utils/warning.js";
|
|
5
|
-
import { RESIZE_OBSERVER_COMPONENT_INFO as
|
|
6
|
-
import { Collection as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import { RESIZE_OBSERVER_COMPONENT_INFO as r } from "../utils/names.js";
|
|
7
|
+
import { Collection as i } from "./Collection.js";
|
|
8
|
+
import { PropsContext as a, defaultProps as o } from "./context.js";
|
|
9
|
+
import s from "./SingleObserver.js";
|
|
10
|
+
import { createElement as c, forwardRef as l, useContext as u } from "react";
|
|
9
11
|
//#region components/common/resize-observer/ResizeObserver.tsx
|
|
10
|
-
function
|
|
11
|
-
let { children:
|
|
12
|
-
return (e(
|
|
13
|
-
let
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
...
|
|
16
|
-
key:
|
|
17
|
-
ref: t === 0 ?
|
|
12
|
+
function d(r, i) {
|
|
13
|
+
let l = t(r, { ...u(a) }, o), { children: d } = l;
|
|
14
|
+
return (e(d) ? [d] : n(d)).map((e, t) => {
|
|
15
|
+
let n = e?.key || `observer-key-${t}`;
|
|
16
|
+
return /* @__PURE__ */ c(s, {
|
|
17
|
+
...l,
|
|
18
|
+
key: n,
|
|
19
|
+
ref: t === 0 ? i : void 0
|
|
18
20
|
}, e);
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
+
var f = l(d);
|
|
24
|
+
f.displayName = r.displayName;
|
|
23
25
|
//#endregion
|
|
24
|
-
export {
|
|
26
|
+
export { i as Collection, f as default };
|
|
25
27
|
/* 独立思考,明辨是非 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
|
|
2
2
|
import { isFunction as e } from "../utils/is.js";
|
|
3
3
|
import { getReactElementRef as t, supportRef as n, useComposeRef as r } from "../utils/ref.js";
|
|
4
4
|
import i from "../utils/findRootElement.js";
|
|
File without changes
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import './style';
|
|
1
2
|
import { Collection } from './ResizeObserver';
|
|
2
3
|
declare const ResizeObserver: import("react").ForwardRefExoticComponent<import("./interface").ResizeObserverProps & import("react").RefAttributes<HTMLElement>> & {
|
|
4
|
+
PropsContext: import("react").Context<Partial<import("./interface").ResizeObserverProps>>;
|
|
3
5
|
Collection: typeof Collection;
|
|
4
6
|
SingleObserver: import("react").ForwardRefExoticComponent<import("./SingleObserver").SingleObserverProps & import("react").RefAttributes<HTMLElement>>;
|
|
5
7
|
zh: string;
|
package/resize-observer/index.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
|
|
2
2
|
import { RESIZE_OBSERVER_COMPONENT_INFO as e } from "../utils/names.js";
|
|
3
3
|
import { Collection as t } from "./Collection.js";
|
|
4
|
-
import n from "./
|
|
5
|
-
import r from "./
|
|
4
|
+
import { PropsContext as n } from "./context.js";
|
|
5
|
+
import r from "./SingleObserver.js";
|
|
6
|
+
import i from "./ResizeObserver.js";
|
|
7
|
+
import "./style/index.js";
|
|
6
8
|
//#region components/common/resize-observer/index.ts
|
|
7
|
-
var
|
|
9
|
+
var a = Object.assign(i, {
|
|
8
10
|
...e,
|
|
11
|
+
PropsContext: n,
|
|
9
12
|
Collection: t,
|
|
10
|
-
SingleObserver:
|
|
13
|
+
SingleObserver: r
|
|
11
14
|
});
|
|
12
15
|
//#endregion
|
|
13
|
-
export { t as Collection,
|
|
16
|
+
export { t as Collection, a as default };
|
|
14
17
|
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|