@unicom-cloud/ui-common 0.1.58 → 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 +3 -3
- 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 +57 -57
- 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 +23 -23
- 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 -65
- 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 +8 -8
- /package/{suspense-fallback-test → resize-observer}/style/index.css +0 -0
package/development/constants.js
CHANGED
package/development/context.d.ts
CHANGED
package/development/context.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { createContext as e } from "react";
|
|
4
4
|
// components/common/development/context.ts
|
|
5
|
-
var t =
|
|
6
|
-
export {
|
|
5
|
+
var t = e({});
|
|
6
|
+
export { t as PropsContext };
|
|
7
7
|
/* 欲穷千里目,更上一层楼 */
|
|
8
8
|
/* 独立思考,明辨是非 */
|
package/development/index.d.ts
CHANGED
|
@@ -8,12 +8,6 @@ declare const Development: import("react").ForwardRefExoticComponent<import("./i
|
|
|
8
8
|
descriptions?: string;
|
|
9
9
|
} & {
|
|
10
10
|
PropsContext: import("react").Context<Partial<import("./interface").DevelopmentProps>>;
|
|
11
|
-
zh: string;
|
|
12
|
-
en: string;
|
|
13
|
-
displayName: string;
|
|
14
|
-
id: string;
|
|
15
|
-
legacy?: string;
|
|
16
|
-
descriptions?: string;
|
|
17
11
|
};
|
|
18
12
|
export default Development;
|
|
19
13
|
export type * from './interface';
|
package/development/index.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
import { COMPONENT_INFO_DEVELOPMENT as e } from "../utils/names.js";
|
|
4
3
|
import "./style/index.js";
|
|
5
|
-
import { PropsContext as
|
|
6
|
-
import
|
|
4
|
+
import { PropsContext as e } from "./context.js";
|
|
5
|
+
import t from "./Development.js";
|
|
7
6
|
// components/common/development/index.ts
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
PropsContext: t
|
|
11
|
-
});
|
|
12
|
-
export { r as default };
|
|
7
|
+
var n = Object.assign(t, { PropsContext: e });
|
|
8
|
+
export { n as default };
|
|
13
9
|
/* 欲穷千里目,更上一层楼 */
|
|
14
10
|
/* 独立思考,明辨是非 */
|
package/development/utils.js
CHANGED
package/empty/Empty.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EmptyProps } from './interface';
|
|
3
|
-
declare const Empty: React.
|
|
3
|
+
declare const Empty: React.ForwardRefExoticComponent<EmptyProps & React.RefAttributes<HTMLDivElement>> & {
|
|
4
4
|
zh: string;
|
|
5
5
|
en: string;
|
|
6
6
|
displayName: string;
|
package/empty/Empty.js
CHANGED
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../hooks/use-merge-component-props/index.js";
|
|
4
|
-
import t from "../
|
|
5
|
-
import n from "../utils/
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
4
|
+
import t from "../space/index.js";
|
|
5
|
+
import n from "../utils/className.js";
|
|
6
|
+
import r from "../utils/getPrefixCls.js";
|
|
7
|
+
import { COMPONENT_INFO_EMPTY as i } from "../utils/names.js";
|
|
8
|
+
import { defaultProps as a } from "./constants.js";
|
|
9
|
+
import { PropsContext as o } from "./context.js";
|
|
10
|
+
import { forwardRef as s, useContext as c, useImperativeHandle as l, useRef as u } from "react";
|
|
11
|
+
import { isString as d } from "@unicom-cloud/utils/is";
|
|
12
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
13
|
+
import m from "@unicom-cloud/icons/IconUiEmpty";
|
|
13
14
|
// components/common/empty/Empty.tsx
|
|
14
|
-
function
|
|
15
|
-
let
|
|
16
|
-
internalProps:
|
|
17
|
-
contextProps:
|
|
15
|
+
function h(i, s) {
|
|
16
|
+
let h = c(o), { style: g, className: _, description: v = "无数据", icon: y, imgSrc: b, prefixCls: x, ...S } = e({
|
|
17
|
+
internalProps: i,
|
|
18
|
+
contextProps: h,
|
|
18
19
|
globalProps: {},
|
|
19
20
|
defaultProps: a
|
|
20
|
-
}), C =
|
|
21
|
-
className:
|
|
21
|
+
}), C = r("empty"), w = x || C, T = d(v) ? v : "empty", E = () => b ? /* @__PURE__ */ f("img", {
|
|
22
|
+
className: n(`${C}-img`, `${w}-img`),
|
|
22
23
|
alt: T,
|
|
23
24
|
src: b,
|
|
24
25
|
loading: "lazy"
|
|
25
|
-
}) : y ? /* @__PURE__ */
|
|
26
|
-
className:
|
|
26
|
+
}) : y ? /* @__PURE__ */ f("div", {
|
|
27
|
+
className: n(`${C}-icon`, `${w}-icon`),
|
|
27
28
|
children: y
|
|
28
|
-
}) : /* @__PURE__ */
|
|
29
|
-
return
|
|
29
|
+
}) : /* @__PURE__ */ f(m, { className: n(`${C}-icon`, `${w}-icon`) }), D = u(null);
|
|
30
|
+
return l(s, () => ({ getRootElement() {
|
|
30
31
|
return D.current;
|
|
31
|
-
} })), /* @__PURE__ */
|
|
32
|
+
} })), /* @__PURE__ */ f("div", {
|
|
32
33
|
ref: D,
|
|
33
|
-
className:
|
|
34
|
+
className: n(C, w, _),
|
|
34
35
|
style: g,
|
|
35
36
|
...S,
|
|
36
|
-
children: /* @__PURE__ */
|
|
37
|
+
children: /* @__PURE__ */ p(t.Vertical, {
|
|
37
38
|
justifyContent: "center",
|
|
38
39
|
alignItems: "center",
|
|
39
40
|
gap: 5,
|
|
40
|
-
children: [E(), /* @__PURE__ */
|
|
41
|
-
className:
|
|
41
|
+
children: [E(), /* @__PURE__ */ f("div", {
|
|
42
|
+
className: n(`${C}-description`, `${w}-description`),
|
|
42
43
|
children: v
|
|
43
44
|
})]
|
|
44
45
|
})
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
|
-
var
|
|
48
|
-
export {
|
|
48
|
+
var g = Object.assign(s(h), { ...i });
|
|
49
|
+
export { g as default };
|
|
49
50
|
/* 欲穷千里目,更上一层楼 */
|
|
50
51
|
/* 独立思考,明辨是非 */
|
package/empty/constants.d.ts
CHANGED
package/empty/constants.js
CHANGED
package/empty/context.d.ts
CHANGED
package/empty/context.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { createContext as e } from "react";
|
|
4
4
|
// components/common/empty/context.ts
|
|
5
|
-
var t =
|
|
6
|
-
export {
|
|
5
|
+
var t = e({});
|
|
6
|
+
export { t as PropsContext };
|
|
7
7
|
/* 欲穷千里目,更上一层楼 */
|
|
8
8
|
/* 独立思考,明辨是非 */
|
package/empty/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './style';
|
|
2
|
-
declare const Empty: import("react").
|
|
2
|
+
declare const Empty: import("react").ForwardRefExoticComponent<import("./interface").EmptyProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
3
3
|
zh: string;
|
|
4
4
|
en: string;
|
|
5
5
|
displayName: string;
|
|
@@ -8,12 +8,6 @@ declare const Empty: import("react").NamedExoticComponent<import("./interface").
|
|
|
8
8
|
descriptions?: string;
|
|
9
9
|
} & {
|
|
10
10
|
PropsContext: import("react").Context<Partial<import("./interface").EmptyProps>>;
|
|
11
|
-
zh: string;
|
|
12
|
-
en: string;
|
|
13
|
-
displayName: string;
|
|
14
|
-
id: string;
|
|
15
|
-
legacy?: string;
|
|
16
|
-
descriptions?: string;
|
|
17
11
|
};
|
|
18
12
|
export default Empty;
|
|
19
13
|
export type * from './interface';
|
package/empty/index.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
import { COMPONENT_INFO_EMPTY as e } from "../utils/names.js";
|
|
4
3
|
import "./style/index.js";
|
|
5
|
-
import { PropsContext as
|
|
6
|
-
import
|
|
4
|
+
import { PropsContext as e } from "./context.js";
|
|
5
|
+
import t from "./Empty.js";
|
|
7
6
|
// components/common/empty/index.ts
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
PropsContext: t
|
|
11
|
-
});
|
|
12
|
-
export { r as default };
|
|
7
|
+
var n = Object.assign(t, { PropsContext: e });
|
|
8
|
+
export { n as default };
|
|
13
9
|
/* 欲穷千里目,更上一层楼 */
|
|
14
10
|
/* 独立思考,明辨是非 */
|
package/empty/style/index.js
CHANGED
package/empty/utils.js
CHANGED
package/flex/Flex.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../hooks/use-merge-component-props/index.js";
|
|
4
4
|
import t from "../utils/className.js";
|
|
5
5
|
import n from "../utils/getPrefixCls.js";
|
|
6
6
|
import { COMPONENT_INFO_FLEX as r } from "../utils/names.js";
|
|
7
|
-
import {
|
|
7
|
+
import { defaultProps as i } from "./constants.js";
|
|
8
|
+
import { PropsContext as a } from "./context.js";
|
|
8
9
|
import { parseGap as o } from "./utils.js";
|
|
9
10
|
import { forwardRef as s, useContext as c, useImperativeHandle as l, useRef as u } from "react";
|
|
10
11
|
import { isBoolean as d, isExist as f, isTrue as p } from "@unicom-cloud/utils/is";
|
|
11
12
|
import { jsx as m } from "react/jsx-runtime";
|
|
12
13
|
// components/common/flex/Flex.tsx
|
|
13
14
|
function h(r, s) {
|
|
14
|
-
let h = c(
|
|
15
|
+
let h = c(a), g = e({
|
|
15
16
|
internalProps: r,
|
|
16
17
|
contextProps: h,
|
|
17
18
|
globalProps: {},
|
|
18
|
-
defaultProps:
|
|
19
|
+
defaultProps: i,
|
|
19
20
|
legacyProps: {
|
|
20
21
|
justifyContent: "justify",
|
|
21
22
|
alignItems: "align"
|
package/flex/FlexVertical.js
CHANGED
package/flex/constants.d.ts
CHANGED
package/flex/constants.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
+
// components/common/flex/constants.ts
|
|
4
|
+
var e = {
|
|
5
|
+
component: "div",
|
|
6
|
+
gap: "small"
|
|
7
|
+
};
|
|
8
|
+
export { e as defaultProps };
|
|
3
9
|
/* 欲穷千里目,更上一层楼 */
|
|
4
10
|
/* 独立思考,明辨是非 */
|
package/flex/context.d.ts
CHANGED
package/flex/context.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { createContext as e } from "react";
|
|
4
4
|
// components/common/flex/context.ts
|
|
5
|
-
var t = {
|
|
6
|
-
|
|
7
|
-
gap: "small"
|
|
8
|
-
}, n = e({});
|
|
9
|
-
export { n as PropsContext, t as defaultProps };
|
|
5
|
+
var t = e({});
|
|
6
|
+
export { t as PropsContext };
|
|
10
7
|
/* 欲穷千里目,更上一层楼 */
|
|
11
8
|
/* 独立思考,明辨是非 */
|
package/flex/index.d.ts
CHANGED
|
@@ -18,13 +18,7 @@ declare const Flex: import("react").ForwardRefExoticComponent<import("./interfac
|
|
|
18
18
|
legacy?: string;
|
|
19
19
|
descriptions?: string;
|
|
20
20
|
};
|
|
21
|
-
zh: string;
|
|
22
|
-
en: string;
|
|
23
|
-
displayName: string;
|
|
24
|
-
id: string;
|
|
25
|
-
legacy?: string;
|
|
26
|
-
descriptions?: string;
|
|
27
21
|
};
|
|
28
|
-
export { GAP_SIZE_MAP as FLEX_GAP_SIZE_MAP, parseGap as flexParseGap, FlexVertical
|
|
22
|
+
export { GAP_SIZE_MAP as FLEX_GAP_SIZE_MAP, parseGap as flexParseGap, FlexVertical };
|
|
29
23
|
export default Flex;
|
|
30
24
|
export type * from './interface';
|
package/flex/index.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
import { COMPONENT_INFO_FLEX as e } from "../utils/names.js";
|
|
4
3
|
import "./style/index.js";
|
|
5
|
-
import { PropsContext as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
4
|
+
import { PropsContext as e } from "./context.js";
|
|
5
|
+
import t from "./Flex.js";
|
|
6
|
+
import n from "./FlexVertical.js";
|
|
7
|
+
import { GAP_SIZE_MAP as r, parseGap as i } from "./utils.js";
|
|
9
8
|
// components/common/flex/index.ts
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Vertical: a
|
|
9
|
+
var a = Object.assign(t, {
|
|
10
|
+
PropsContext: e,
|
|
11
|
+
Vertical: n
|
|
14
12
|
});
|
|
15
|
-
export {
|
|
13
|
+
export { r as FLEX_GAP_SIZE_MAP, n as FlexVertical, a as default, i as flexParseGap };
|
|
16
14
|
/* 欲穷千里目,更上一层楼 */
|
|
17
15
|
/* 独立思考,明辨是非 */
|
package/flex/interface.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
3
|
export type GapProperty = 'gap' | 'rowGap' | 'columnGap';
|
|
4
4
|
export type SizeType = 'default' | 'mini' | 'small' | 'medium' | 'large' | '1x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x' | 'x1' | 'x2' | 'x3' | 'x4' | 'x5' | 'x6' | 'x7' | 'x8' | 'x9';
|
|
5
5
|
export type GapType = SizeType | React.CSSProperties['gap'];
|
package/flex/style/index.js
CHANGED
package/flex/utils.d.ts
CHANGED
package/flex/utils.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
import "react";
|
|
4
3
|
import { isArray as e, isExist as t, isString as n } from "@unicom-cloud/utils/is";
|
|
5
4
|
// components/common/flex/utils.ts
|
|
6
5
|
var r = 8, i = {
|
|
7
|
-
"1x": r
|
|
6
|
+
"1x": r * .5,
|
|
8
7
|
"2x": r * 1,
|
|
9
8
|
"3x": r * 2,
|
|
10
9
|
"4x": r * 3,
|
|
@@ -16,19 +15,18 @@ var r = 8, i = {
|
|
|
16
15
|
};
|
|
17
16
|
Object.entries(i).forEach(([e, t], n, r) => {
|
|
18
17
|
i[e[1] + e[0]] = t;
|
|
19
|
-
})
|
|
20
|
-
var a = {
|
|
18
|
+
}), Object.assign(i, {
|
|
21
19
|
default: r,
|
|
22
20
|
mini: i["1x"],
|
|
23
21
|
small: i["2x"],
|
|
24
22
|
medium: i["3x"],
|
|
25
23
|
large: i["4x"]
|
|
26
|
-
};
|
|
27
|
-
function
|
|
28
|
-
return i[e] ??
|
|
24
|
+
}), i.middle = i.medium, Object.freeze(i);
|
|
25
|
+
function a(e) {
|
|
26
|
+
return i[e] ?? e ?? r;
|
|
29
27
|
}
|
|
30
|
-
function
|
|
31
|
-
let { gap: i, rowGap:
|
|
28
|
+
function o(r) {
|
|
29
|
+
let { gap: i, rowGap: o, columnGap: s } = r, c = i, l = {};
|
|
32
30
|
if (t(c)) {
|
|
33
31
|
if (n(c)) {
|
|
34
32
|
let e = c.trim().split(" ").filter(t);
|
|
@@ -36,8 +34,8 @@ function s(r) {
|
|
|
36
34
|
}
|
|
37
35
|
e(c) ? (l.rowGap = c[0], l.columnGap = c[1] ?? c[0]) : l.rowGap = l.columnGap = c;
|
|
38
36
|
}
|
|
39
|
-
return t(
|
|
37
|
+
return t(o) && (l.rowGap = o), t(s) && (l.columnGap = s), l.rowGap = a(l.rowGap), l.columnGap = a(l.columnGap), l.gap = `${l.rowGap} ${l.columnGap}`, l;
|
|
40
38
|
}
|
|
41
|
-
export { i as GAP_SIZE_MAP,
|
|
39
|
+
export { i as GAP_SIZE_MAP, o as parseGap, a as parseGapSize };
|
|
42
40
|
/* 欲穷千里目,更上一层楼 */
|
|
43
41
|
/* 独立思考,明辨是非 */
|
package/grid/Grid.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
import e from "../
|
|
4
|
-
import t from "../
|
|
5
|
-
import n from "../utils/
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { parseGap as e } from "../flex/utils.js";
|
|
4
|
+
import t from "../hooks/use-merge-component-props/index.js";
|
|
5
|
+
import n from "../utils/className.js";
|
|
6
|
+
import r from "../utils/getPrefixCls.js";
|
|
7
|
+
import { COMPONENT_INFO_GRID as i } from "../utils/names.js";
|
|
8
|
+
import { defaultProps as a } from "./constants.js";
|
|
9
|
+
import { GridContext as o, PropsContext as s } from "./context.js";
|
|
9
10
|
import { resolveGridTemplateColumns as c } from "./utils.js";
|
|
10
11
|
import { forwardRef as l, useContext as u, useEffect as d, useImperativeHandle as f, useRef as p } from "react";
|
|
11
12
|
import { isExist as m, isNil as h } from "@unicom-cloud/utils/is";
|
|
12
13
|
import { jsx as g } from "react/jsx-runtime";
|
|
13
14
|
// components/common/grid/Grid.tsx
|
|
14
|
-
function _(
|
|
15
|
-
let _ = u(
|
|
16
|
-
internalProps:
|
|
15
|
+
function _(i, l) {
|
|
16
|
+
let _ = u(s), v = u(o), y = r("grid"), b = p(null), x = t({
|
|
17
|
+
internalProps: i,
|
|
17
18
|
contextProps: _,
|
|
18
19
|
globalProps: {},
|
|
19
|
-
defaultProps:
|
|
20
|
+
defaultProps: a,
|
|
20
21
|
legacyProps: {
|
|
21
22
|
columns: "cols",
|
|
22
23
|
columnGap: "colGap"
|
|
23
24
|
}
|
|
24
25
|
}), { style: S, className: C, children: w, columns: T, rows: E, areas: D, gap: O, columnGap: k, rowGap: A, autoColumns: j, autoRows: M, autoFlow: N, justifyContent: P, justifyItems: F, alignContent: I, alignItems: L, placeContent: R, placeItems: z } = x;
|
|
25
26
|
h(O), h(A), h(k);
|
|
26
|
-
let B =
|
|
27
|
+
let B = e({
|
|
27
28
|
gap: O,
|
|
28
29
|
rowGap: A,
|
|
29
30
|
columnGap: k
|
|
@@ -32,7 +33,7 @@ function _(r, l) {
|
|
|
32
33
|
let G = c(U);
|
|
33
34
|
return m(G) && (W.gridTemplateColumns = G), m(E) && (W.gridTemplateRows = E), m(D) && (W.gridTemplateAreas = D), m(j) && (W.gridAutoColumns = j), m(M) && (W.gridAutoRows = M), m(N) && (W.gridAutoFlow = N), m(P) && (W.justifyContent = P), m(F) && (W.justifyItems = F), m(I) && (W.alignContent = I), m(L) && (W.alignItems = L), m(R) && (W.placeContent = R), m(z) && (W.placeItems = z), d(() => () => {}, []), f(l, () => ({ getRootElement() {
|
|
34
35
|
return b.current;
|
|
35
|
-
} })), /* @__PURE__ */ g(
|
|
36
|
+
} })), /* @__PURE__ */ g(o.Provider, {
|
|
36
37
|
value: {
|
|
37
38
|
...v,
|
|
38
39
|
...x,
|
|
@@ -46,12 +47,12 @@ function _(r, l) {
|
|
|
46
47
|
...W,
|
|
47
48
|
...S
|
|
48
49
|
},
|
|
49
|
-
className:
|
|
50
|
+
className: n(y, C),
|
|
50
51
|
children: w
|
|
51
52
|
})
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
|
-
var v = Object.assign(l(_), { ...
|
|
55
|
+
var v = Object.assign(l(_), { ...i });
|
|
55
56
|
export { v as default };
|
|
56
57
|
/* 欲穷千里目,更上一层楼 */
|
|
57
58
|
/* 独立思考,明辨是非 */
|
package/grid/Item.js
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
import
|
|
4
|
-
import t from "../
|
|
5
|
-
import n from "../utils/
|
|
3
|
+
import e from "../hooks/use-merge-component-props/index.js";
|
|
4
|
+
import t from "../utils/className.js";
|
|
5
|
+
import { getDOM as n } from "../utils/dom.js";
|
|
6
6
|
import r from "../utils/getPrefixCls.js";
|
|
7
7
|
import { COMPONENT_INFO_GRID_ITEM as i } from "../utils/names.js";
|
|
8
|
-
import {
|
|
8
|
+
import { defaultPropsGridItem as a } from "./constants.js";
|
|
9
|
+
import { GridContext as o, PropsContextGridItem as s } from "./context.js";
|
|
9
10
|
import { resolveItemData as c } from "./utils.js";
|
|
10
11
|
import { forwardRef as l, useContext as u, useEffect as d, useImperativeHandle as f, useRef as p } from "react";
|
|
11
12
|
import { isExist as m, isNumber as h } from "@unicom-cloud/utils/is";
|
|
12
13
|
import { jsx as g } from "react/jsx-runtime";
|
|
13
14
|
// components/common/grid/Item.tsx
|
|
14
15
|
function _(i, l) {
|
|
15
|
-
let _ = u(
|
|
16
|
+
let _ = u(s), { columnGap: v, columns: y } = u(o), b = r("grid-item"), x = p(null), { style: S, className: C, children: w, offset: T, span: E, area: D, order: O, column: k, row: A, columnStart: j, columnEnd: M, rowStart: N, rowEnd: P, justifySelf: F, alignSelf: I, placeSelf: L } = e({
|
|
16
17
|
internalProps: i,
|
|
17
18
|
contextProps: _,
|
|
18
19
|
globalProps: {},
|
|
19
|
-
defaultProps:
|
|
20
|
+
defaultProps: a
|
|
20
21
|
}), { span: R, offset: z } = h(y) ? c(y, {
|
|
21
22
|
span: E,
|
|
22
23
|
offset: T
|
|
23
24
|
}) : {}, B = {};
|
|
24
25
|
return h(R) && (B.gridColumnStart = `span ${R}`, h(v) && h(z) && z > 0 && (B.marginInlineStart = `calc(${`(100% - ${v * (R - 1)}px) / ${R}`} * ${z} + ${v * z}px)`), B.gridColumnEnd = `span ${E}`), m(O) && (B.order = O), m(k) && (B.gridColumn = k), m(j) && (B.gridColumnStart = j), m(M) && (B.gridColumnEnd = M), m(A) && (B.gridRow = A), m(N) && (B.gridRowStart = N), m(P) && (B.gridRowEnd = P), m(D) && (B.gridArea = D), m(F) && (B.justifySelf = F), m(I) && (B.alignSelf = I), m(L) && (B.placeSelf = L), d(() => () => {}, []), f(l, () => ({ getRootElement() {
|
|
25
|
-
return
|
|
26
|
+
return n(x);
|
|
26
27
|
} })), /* @__PURE__ */ g("div", {
|
|
27
28
|
ref: x,
|
|
28
29
|
style: {
|
|
29
30
|
...B,
|
|
30
31
|
...S
|
|
31
32
|
},
|
|
32
|
-
className:
|
|
33
|
+
className: t(b, C),
|
|
33
34
|
children: w
|
|
34
35
|
});
|
|
35
36
|
}
|
package/grid/constants.d.ts
CHANGED
package/grid/constants.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
+
import { GAP_SIZE_MAP as e } from "../flex/utils.js";
|
|
4
|
+
// components/common/grid/constants.ts
|
|
5
|
+
var t = { gap: e.small }, n = {
|
|
6
|
+
offset: 0,
|
|
7
|
+
span: 1
|
|
8
|
+
};
|
|
9
|
+
export { t as defaultProps, n as defaultPropsGridItem };
|
|
3
10
|
/* 欲穷千里目,更上一层楼 */
|
|
4
11
|
/* 独立思考,明辨是非 */
|
package/grid/context.d.ts
CHANGED
|
@@ -5,8 +5,6 @@ type GridContextType = {
|
|
|
5
5
|
columnGap?: GridProps['columnGap'];
|
|
6
6
|
};
|
|
7
7
|
export declare const GridContext: import("react").Context<GridContextType>;
|
|
8
|
-
export declare const defaultProps: Partial<GridProps>;
|
|
9
8
|
export declare const PropsContext: import("react").Context<Partial<GridProps>>;
|
|
10
|
-
export declare const defaultPropsGridItem: GridItemProps;
|
|
11
9
|
export declare const PropsContextGridItem: import("react").Context<Partial<GridItemProps>>;
|
|
12
10
|
export {};
|
package/grid/context.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-19 14:01:53 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
import {
|
|
4
|
-
import { createContext as t } from "react";
|
|
3
|
+
import { createContext as e } from "react";
|
|
5
4
|
// components/common/grid/context.ts
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
span: 1
|
|
9
|
-
}, o = t({});
|
|
10
|
-
export { n as GridContext, i as PropsContext, o as PropsContextGridItem, r as defaultProps, a as defaultPropsGridItem };
|
|
5
|
+
var t = e({}), n = e({}), r = e({});
|
|
6
|
+
export { t as GridContext, n as PropsContext, r as PropsContextGridItem };
|
|
11
7
|
/* 欲穷千里目,更上一层楼 */
|
|
12
8
|
/* 独立思考,明辨是非 */
|
package/grid/index.d.ts
CHANGED
|
@@ -23,12 +23,6 @@ declare const Grid: import("react").ForwardRefExoticComponent<import("./interfac
|
|
|
23
23
|
rowGap?: import("./interface").GridProps["rowGap"];
|
|
24
24
|
columnGap?: import("./interface").GridProps["columnGap"];
|
|
25
25
|
}>;
|
|
26
|
-
zh: string;
|
|
27
|
-
en: string;
|
|
28
|
-
displayName: string;
|
|
29
|
-
id: string;
|
|
30
|
-
legacy?: string;
|
|
31
|
-
descriptions?: string;
|
|
32
26
|
};
|
|
33
27
|
export { GridContext, Item as GridItem };
|
|
34
28
|
export default Grid;
|