@unicom-cloud/ui 0.8.55 → 0.8.57
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/Affix.js +36 -36
- package/Alert.js +41 -45
- package/Anchor.js +1 -1
- package/AutoComplete.js +40 -40
- package/Avatar.js +36 -36
- package/BackTop.js +26 -26
- package/Badge.js +43 -43
- package/Breadcrumb.js +17 -17
- package/Button.js +42 -42
- package/Calendar.js +54 -56
- package/Card.js +28 -28
- package/Carousel.js +42 -43
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +11 -580
- package/Comment.js +14 -14
- package/ConfigProvider.js +2 -2
- package/Copy.js +26 -26
- package/DatePicker.js +661 -670
- package/Descriptions.js +53 -53
- package/Divider.js +15 -15
- package/Draggable.js +16 -16
- package/Drawer.js +1 -1
- package/Dropdown.js +10 -10
- package/Empty.js +3 -3
- package/Form.js +10 -1410
- package/Grid.js +49 -49
- package/Icon.js +10 -10
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +7 -7
- package/InputTag.js +1 -1
- package/Layout.js +34 -34
- package/Link.js +26 -26
- package/List.js +39 -39
- package/Mentions.js +17 -17
- package/Menu.js +1 -1
- package/Message.js +3 -3
- package/Modal.js +1 -1
- package/Notice.js +4 -10
- package/Notification.js +3 -3
- package/OverflowEllipsis.js +18 -18
- package/PageHeader.js +26 -27
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +15 -15
- package/Popover.js +22 -22
- package/Progress.js +18 -18
- package/Radio.js +2 -2
- package/Rate.js +40 -43
- package/ResizeBox.js +191 -192
- package/Result.js +17 -17
- package/Select.js +1 -1
- package/SelectView.js +56 -56
- package/Skeleton.js +35 -35
- package/Slider.js +81 -81
- package/Space.js +27 -27
- package/SpeechSynthesis.js +29 -32
- package/Spin.js +15 -15
- package/Statistic.js +54 -54
- package/Steps.js +44 -44
- package/Switch.js +39 -38
- package/Table.js +488 -488
- package/Tabs.js +1 -1
- package/Tag.js +13 -14
- package/TimePicker.js +68 -68
- package/Timeline.js +1 -1
- package/Tooltip.js +27 -28
- package/Transfer.js +29 -30
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +53 -52
- package/Typography.js +2 -737
- package/Upload.js +1 -1
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/1mEO29GP.js +23 -0
- package/chunk/5pZ3ayqs.js +29 -0
- package/chunk/9Gh1afjL.js +23 -0
- package/chunk/B1S1OEw6.js +29 -0
- package/chunk/B45v5S9k.js +209 -0
- package/chunk/B6fn5y_s.js +23 -0
- package/chunk/B9PsJar0.js +118 -0
- package/chunk/BA02BFUV.js +41 -0
- package/chunk/BCk8e9fj.js +29 -0
- package/chunk/BHK9zpXn.js +207 -0
- package/chunk/BHLTzWzi.js +29 -0
- package/chunk/BK1FKNAX.js +41 -0
- package/chunk/BM6dpkeM.js +32 -0
- package/chunk/{BC0PujUD.js → BMvZCjSU.js} +118 -120
- package/chunk/{DQ3uFRJD.js → BP7xX86Q.js} +223 -202
- package/chunk/BWx1cVT_.js +66 -0
- package/chunk/BbI3gqVr.js +23 -0
- package/chunk/{CIc4yo9k.js → BbYzi8M0.js} +46 -46
- package/chunk/Be7oeWU8.js +34 -0
- package/chunk/BeM2hfks.js +88 -0
- package/chunk/BkHxm4sv.js +41 -0
- package/chunk/{BUQBof6z.js → Bl-ODC57.js} +206 -207
- package/chunk/BlKc_pDZ.js +678 -0
- package/chunk/{BzqZZHGK.js → Bny52uiG.js} +48 -48
- package/chunk/{PuuHmqnW.js → BpwDupra.js} +238 -238
- package/chunk/BqxwlITu.js +52 -0
- package/chunk/BuEC_zcc.js +278 -0
- package/chunk/{CqcZfQQ4.js → Bv8ZRDFt.js} +80 -80
- package/chunk/{DZGcv_9A.js → C-w9pFY-.js} +32 -32
- package/chunk/C2fspJbE.js +23 -0
- package/chunk/C7Okdv4u.js +34 -0
- package/chunk/C95ipQ6b.js +41 -0
- package/chunk/{BzMYgxgO.js → CF3Telny.js} +26 -26
- package/chunk/CPl52AZh.js +206 -0
- package/chunk/CR4u270n.js +284 -0
- package/chunk/CXNW5Y2a.js +23 -0
- package/chunk/Cb_oWoGj.js +40 -0
- package/chunk/CcX2pBUh.js +46 -0
- package/chunk/{BdJcAQ0Q.js → CggcswbO.js} +18 -18
- package/chunk/CkAOsst1.js +73 -0
- package/chunk/{CTSIr-Pr.js → CwXmtKib.js} +89 -101
- package/chunk/{C3I_L73_.js → CwjaGytU.js} +39 -40
- package/chunk/{RRWbBHK-.js → D5p8q9Pa.js} +221 -221
- package/chunk/{DTgc2wl4.js → D6RTBH4C.js} +36 -36
- package/chunk/D6mVoX-C.js +116 -0
- package/chunk/D9TqtOhq.js +40 -0
- package/chunk/{CZ8iz63Z.js → DBJ8d0o0.js} +210 -217
- package/chunk/{RL1SNlng.js → DDda6s72.js} +16 -16
- package/chunk/{BH5fVprw.js → DJmWXheU.js} +9 -9
- package/chunk/{Niaq_og8.js → DMWMrXg1.js} +220 -226
- package/chunk/DPvnQJ-H.js +52 -0
- package/chunk/DQXq1QT0.js +58 -0
- package/chunk/DUxWiN2U.js +1465 -0
- package/chunk/DYZzQ2uT.js +29 -0
- package/chunk/{CK0H_Yi4.js → DafaH1Qt.js} +140 -138
- package/chunk/{ShWkfsJd.js → DalIRWr7.js} +21 -21
- package/chunk/Dbk4DVhB.js +855 -0
- package/chunk/{CzTYWtfa.js → Dg2DmtzA.js} +31 -30
- package/chunk/DhLbnw3R.js +29 -0
- package/chunk/{BmtF7P8U.js → DkIjpuBZ.js} +170 -170
- package/chunk/Do1aMgY3.js +12 -0
- package/chunk/Dtnux4qL.js +38 -0
- package/chunk/{DbtCtriE.js → DxNRWF67.js} +30 -31
- package/chunk/HlP8inLK.js +1796 -0
- package/chunk/Lk60-jkf.js +1098 -0
- package/chunk/V_IcWDFx.js +49 -0
- package/chunk/{DG7VgAhL.js → WkB0MERB.js} +107 -108
- package/chunk/{Dki1RB5p.js → aM2ePYrq.js} +154 -155
- package/chunk/bsawGxt8.js +32 -0
- package/chunk/cUuQh7L_.js +46 -0
- package/chunk/fqgc8r6C.js +29 -0
- package/chunk/m_kOQCiU.js +29 -0
- package/chunk/sl8s35SK.js +29 -0
- package/hooks/index.js +52 -246
- package/hooks/useForceUpdate.js +6 -6
- package/hooks/useIntersectionObserver.js +12 -10
- package/hooks/useKeyboardEvent.js +7 -7
- package/hooks/useMedia.js +9 -12
- package/hooks/useMergeValue.js +10 -8
- package/hooks/useResizeObserver.js +16 -0
- package/hooks/useUpdateEffect.js +7 -9
- package/hooks/useWindowSize.js +16 -20
- package/icons.js +6003 -0
- package/index.js +377 -472
- package/locale/en-US.js +20 -6
- package/locale/ja-JP.js +4 -2
- package/locale/ko-KR.js +2 -2
- package/locale/pt-BR.js +3 -3
- package/locale/pt-PT.js +3 -3
- package/locale/tr-TR.js +11 -3
- package/locale/zh-CN.js +6 -0
- package/locale/zh-HK.js +2 -0
- package/locale/zh-TW.js +2 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/anchor/util.d.ts +1 -0
- package/types/button/index.d.ts +2 -2
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/util.d.ts +1 -1
- package/types/hooks/index.d.ts +3 -101
- package/types/hooks/useForceUpdate.d.ts +1 -2
- package/types/hooks/useIntersectionObserver.d.ts +1 -1
- package/types/hooks/useKeyboardEvent.d.ts +2 -2
- package/types/hooks/useMergeProps.d.ts +1 -1
- package/types/hooks/useResizeObserver.d.ts +5 -0
- package/types/hooks/useUpdateEffect.d.ts +2 -3
- package/types/hooks/useWindowSize.d.ts +1 -1
- package/types/icons.d.ts +4 -0
- package/types/index.d.ts +12 -2
- package/types/locale/en-US.d.ts +4 -0
- package/types/locale/interface.d.ts +2 -0
- package/types/locale/ja-JP.d.ts +4 -0
- package/types/locale/zh-CN.d.ts +4 -0
- package/types/locale/zh-HK.d.ts +4 -0
- package/types/locale/zh-TW.d.ts +4 -0
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/className.js +2 -3
- package/utils/contextHolder.js +2 -2
- package/utils/copy.js +2 -3
- package/utils/is.js +127 -90
- package/utils/reactDOM.js +17 -15
- package/utils/responsiveObserve.js +16 -16
- package/utils/saveAs.js +2 -3
- package/chunk/BdYAMaw9.js +0 -6
- package/chunk/DdtfPvgk.js +0 -272
- package/chunk/I4RV9SKZ.js +0 -135
- package/chunk/TXCrI0jN.js +0 -20
- package/chunk/i1A7W8Qt.js +0 -277
- package/chunk/xPzFRQJn.js +0 -740
- package/hooks/useAsync.js +0 -13
- package/hooks/useAsyncFn.js +0 -15
- package/hooks/useAsyncRetry.js +0 -17
- package/hooks/useAudio.js +0 -5
- package/hooks/useBeforeUnload.js +0 -18
- package/hooks/useBoolean.js +0 -4
- package/hooks/useClickAway.js +0 -22
- package/hooks/useCopyToClipboard.js +0 -51
- package/hooks/useCounter.js +0 -45
- package/hooks/useCreation.js +0 -17
- package/hooks/useCustomCompareEffect.js +0 -15
- package/hooks/useDebounce.js +0 -9
- package/hooks/useDefault.js +0 -10
- package/hooks/useDrop.js +0 -44
- package/hooks/useDropArea.js +0 -45
- package/hooks/useEffectOnce.js +0 -7
- package/hooks/useEffectState.js +0 -9
- package/hooks/useEnsuredForwardedRef.js +0 -17
- package/hooks/useError.js +0 -13
- package/hooks/useEvent.js +0 -13
- package/hooks/useEventListener.js +0 -39
- package/hooks/useFavicon.js +0 -16
- package/hooks/useFirstMountState.js +0 -8
- package/hooks/useFullscreen.js +0 -39
- package/hooks/useGeolocation.js +0 -38
- package/hooks/useGetSet.js +0 -18
- package/hooks/useGetSetState.js +0 -12
- package/hooks/useHash.js +0 -26
- package/hooks/useHover.js +0 -16
- package/hooks/useHoverDirty.js +0 -17
- package/hooks/useIdle.js +0 -34
- package/hooks/useIntersection.js +0 -19
- package/hooks/useIsomorphicLayoutEffect2.js +0 -6
- package/hooks/useKey.js +0 -16
- package/hooks/useKeyPress.js +0 -13
- package/hooks/useKeyPressEvent.js +0 -11
- package/hooks/useLatest.js +0 -8
- package/hooks/useLifecycles.js +0 -9
- package/hooks/useList.js +0 -67
- package/hooks/useLocalStorage.js +0 -42
- package/hooks/useLocation.js +0 -51
- package/hooks/useLockBodyScroll.js +0 -55
- package/hooks/useLogger.js +0 -10
- package/hooks/useLongPress.js +0 -24
- package/hooks/useMap.js +0 -31
- package/hooks/useMeasure.js +0 -34
- package/hooks/useMeasureDirty.js +0 -24
- package/hooks/useMediaDevices.js +0 -26
- package/hooks/useMediatedState.js +0 -14
- package/hooks/useMethods.js +0 -14
- package/hooks/useMotion.js +0 -56
- package/hooks/useMount.js +0 -9
- package/hooks/useMountedState.js +0 -10
- package/hooks/useMouse.js +0 -44
- package/hooks/useMouseHovered.js +0 -9
- package/hooks/useMouseWheel.js +0 -14
- package/hooks/useMultiStateValidator.js +0 -19
- package/hooks/useNetworkState.js +0 -31
- package/hooks/useNumber.js +0 -4
- package/hooks/useObservable.js +0 -12
- package/hooks/useOrientation.js +0 -30
- package/hooks/usePageLeave.js +0 -19
- package/hooks/usePermission.js +0 -19
- package/hooks/usePinchZoom.js +0 -40
- package/hooks/usePreviousDistinct.js +0 -10
- package/hooks/usePromise.js +0 -19
- package/hooks/useQueue.js +0 -25
- package/hooks/useRaf.js +0 -24
- package/hooks/useRafLoop.js +0 -24
- package/hooks/useRafState.js +0 -15
- package/hooks/useReactive.js +0 -21
- package/hooks/useRendersCount.js +0 -7
- package/hooks/useScroll.js +0 -27
- package/hooks/useScrolling.js +0 -23
- package/hooks/useSearchParam.js +0 -18
- package/hooks/useSessionStorage.js +0 -29
- package/hooks/useSet.js +0 -15
- package/hooks/useSetState.js +0 -16
- package/hooks/useSize.js +0 -58
- package/hooks/useSlider.js +0 -48
- package/hooks/useSpeech.js +0 -45
- package/hooks/useStartTyping.js +0 -30
- package/hooks/useStateList.js +0 -37
- package/hooks/useStateValidator.js +0 -17
- package/hooks/useStateWithHistory.js +0 -46
- package/hooks/useSyncState.js +0 -14
- package/hooks/useThrottle.js +0 -21
- package/hooks/useThrottleFn.js +0 -21
- package/hooks/useTimeout.js +0 -17
- package/hooks/useTimeoutFn.js +0 -16
- package/hooks/useTitle.js +0 -18
- package/hooks/useToggle.js +0 -5
- package/hooks/useTween.js +0 -11
- package/hooks/useUnmount.js +0 -9
- package/hooks/useUnmountPromise.js +0 -20
- package/hooks/useUpdate.js +0 -10
- package/hooks/useUpdateTimeout.js +0 -9
- package/hooks/useUpsert.js +0 -16
- package/hooks/useVibrate.js +0 -21
- package/hooks/useVideo.js +0 -5
- package/hooks/useWindowScroll.js +0 -29
- package/types/hooks/component/UseKey.d.ts +0 -2
- package/types/hooks/factory/createBreakpoint.d.ts +0 -4
- package/types/hooks/factory/createGlobalState.d.ts +0 -7
- package/types/hooks/factory/createHTMLMediaHook.d.ts +0 -33
- package/types/hooks/factory/createMemo.d.ts +0 -2
- package/types/hooks/factory/createReducer.d.ts +0 -8
- package/types/hooks/factory/createReducerContext.d.ts +0 -5
- package/types/hooks/factory/createRenderProp.d.ts +0 -1
- package/types/hooks/factory/createRouter.d.ts +0 -7
- package/types/hooks/factory/createStateContext.d.ts +0 -5
- package/types/hooks/misc/hookState.d.ts +0 -8
- package/types/hooks/misc/parseTimeRanges.d.ts +0 -4
- package/types/hooks/misc/types.d.ts +0 -2
- package/types/hooks/misc/util.d.ts +0 -5
- package/types/hooks/useAsync.d.ts +0 -20
- package/types/hooks/useAsyncFn.d.ts +0 -23
- package/types/hooks/useAsyncRetry.d.ts +0 -27
- package/types/hooks/useAudio.d.ts +0 -11
- package/types/hooks/useBeforeUnload.d.ts +0 -2
- package/types/hooks/useBoolean.d.ts +0 -2
- package/types/hooks/useClickAway.d.ts +0 -3
- package/types/hooks/useCopyToClipboard.d.ts +0 -7
- package/types/hooks/useCounter.d.ts +0 -9
- package/types/hooks/useCreation.d.ts +0 -2
- package/types/hooks/useCustomCompareEffect.d.ts +0 -4
- package/types/hooks/useDebounce.d.ts +0 -3
- package/types/hooks/useDefault.d.ts +0 -2
- package/types/hooks/useDrop.d.ts +0 -17
- package/types/hooks/useDropArea.d.ts +0 -18
- package/types/hooks/useEffectOnce.d.ts +0 -3
- package/types/hooks/useEffectState.d.ts +0 -2
- package/types/hooks/useEnsuredForwardedRef.d.ts +0 -3
- package/types/hooks/useError.d.ts +0 -2
- package/types/hooks/useEvent.d.ts +0 -13
- package/types/hooks/useEventListener.d.ts +0 -2
- package/types/hooks/useFavicon.d.ts +0 -2
- package/types/hooks/useFirstMountState.d.ts +0 -1
- package/types/hooks/useFullscreen.d.ts +0 -10
- package/types/hooks/useGeolocation.d.ts +0 -21
- package/types/hooks/useGetSet.d.ts +0 -3
- package/types/hooks/useGetSetState.d.ts +0 -2
- package/types/hooks/useHash.d.ts +0 -2
- package/types/hooks/useHover.d.ts +0 -4
- package/types/hooks/useHoverDirty.d.ts +0 -3
- package/types/hooks/useIdle.d.ts +0 -2
- package/types/hooks/useIntersection.d.ts +0 -3
- package/types/hooks/useIsomorphicLayoutEffect2.d.ts +0 -3
- package/types/hooks/useKey.d.ts +0 -12
- package/types/hooks/useKeyPress.d.ts +0 -3
- package/types/hooks/useKeyPressEvent.d.ts +0 -3
- package/types/hooks/useLatest.d.ts +0 -4
- package/types/hooks/useLifecycles.d.ts +0 -2
- package/types/hooks/useList.d.ts +0 -18
- package/types/hooks/useLocalStorage.d.ts +0 -10
- package/types/hooks/useLocation.d.ts +0 -16
- package/types/hooks/useLockBodyScroll.d.ts +0 -8
- package/types/hooks/useLogger.d.ts +0 -2
- package/types/hooks/useLongPress.d.ts +0 -12
- package/types/hooks/useMap.d.ts +0 -11
- package/types/hooks/useMeasure.d.ts +0 -9
- package/types/hooks/useMeasureDirty.d.ts +0 -11
- package/types/hooks/useMediaDevices.d.ts +0 -2
- package/types/hooks/useMediatedState.d.ts +0 -9
- package/types/hooks/useMethods.d.ts +0 -8
- package/types/hooks/useMotion.d.ts +0 -20
- package/types/hooks/useMount.d.ts +0 -2
- package/types/hooks/useMountedState.d.ts +0 -1
- package/types/hooks/useMouse.d.ts +0 -13
- package/types/hooks/useMouseHovered.d.ts +0 -8
- package/types/hooks/useMouseWheel.d.ts +0 -2
- package/types/hooks/useMultiStateValidator.d.ts +0 -9
- package/types/hooks/useNetworkState.d.ts +0 -22
- package/types/hooks/useNumber.d.ts +0 -2
- package/types/hooks/useObservable.d.ts +0 -8
- package/types/hooks/useOrientation.d.ts +0 -6
- package/types/hooks/usePageLeave.d.ts +0 -2
- package/types/hooks/usePermission.d.ts +0 -16
- package/types/hooks/usePinchZoom.d.ts +0 -18
- package/types/hooks/usePreviousDistinct.d.ts +0 -2
- package/types/hooks/usePromise.d.ts +0 -3
- package/types/hooks/useQueue.d.ts +0 -9
- package/types/hooks/useRaf.d.ts +0 -2
- package/types/hooks/useRafLoop.d.ts +0 -2
- package/types/hooks/useRafState.d.ts +0 -3
- package/types/hooks/useReactive.d.ts +0 -2
- package/types/hooks/useRendersCount.d.ts +0 -1
- package/types/hooks/useScroll.d.ts +0 -7
- package/types/hooks/useScrolling.d.ts +0 -3
- package/types/hooks/useSearchParam.d.ts +0 -3
- package/types/hooks/useSessionStorage.d.ts +0 -2
- package/types/hooks/useSet.d.ts +0 -11
- package/types/hooks/useSetState.d.ts +0 -2
- package/types/hooks/useSize.d.ts +0 -8
- package/types/hooks/useSlider.d.ts +0 -15
- package/types/hooks/useSpeech.d.ts +0 -16
- package/types/hooks/useStartTyping.d.ts +0 -2
- package/types/hooks/useStateList.d.ts +0 -9
- package/types/hooks/useStateValidator.d.ts +0 -8
- package/types/hooks/useStateWithHistory.d.ts +0 -18
- package/types/hooks/useSyncState.d.ts +0 -3
- package/types/hooks/useThrottle.d.ts +0 -2
- package/types/hooks/useThrottleFn.d.ts +0 -2
- package/types/hooks/useTimeout.d.ts +0 -2
- package/types/hooks/useTimeoutFn.d.ts +0 -2
- package/types/hooks/useTitle.d.ts +0 -6
- package/types/hooks/useToggle.d.ts +0 -2
- package/types/hooks/useTween.d.ts +0 -3
- package/types/hooks/useUnmount.d.ts +0 -2
- package/types/hooks/useUnmountPromise.d.ts +0 -3
- package/types/hooks/useUpdate.d.ts +0 -2
- package/types/hooks/useUpdateTimeout.d.ts +0 -2
- package/types/hooks/useUpsert.d.ts +0 -6
- package/types/hooks/useVibrate.d.ts +0 -4
- package/types/hooks/useVideo.d.ts +0 -11
- package/types/hooks/useWindowScroll.d.ts +0 -6
package/List.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as N, jsx as s, Fragment as At } from "react/jsx-runtime";
|
|
2
2
|
import F, { useContext as K, useRef as R, useState as J, useImperativeHandle as Dt, useCallback as Ht, createElement as Tt } from "react";
|
|
3
3
|
import Vt from "lodash/throttle";
|
|
4
|
-
import {
|
|
5
|
-
import { R as mt, C as dt } from "./chunk/
|
|
4
|
+
import { b as Q } from "./chunk/DUxWiN2U.js";
|
|
5
|
+
import { R as mt, C as dt } from "./chunk/C-w9pFY-.js";
|
|
6
6
|
import ht from "./hooks/useMergeProps.js";
|
|
7
|
-
import { P as _t } from "./chunk/
|
|
7
|
+
import { P as _t } from "./chunk/WkB0MERB.js";
|
|
8
8
|
import kt from "./Spin.js";
|
|
9
|
-
import M from "
|
|
9
|
+
import { y as M } from "./chunk/Do1aMgY3.js";
|
|
10
10
|
import Bt from "./utils/omit.js";
|
|
11
11
|
import { pickDataAttributes as Gt } from "./utils/pick.js";
|
|
12
12
|
import Ot from "./utils/scrollIntoView.js";
|
|
13
13
|
import { V as Ut } from "./chunk/CiEln_Q1.js";
|
|
14
14
|
function Wt(w, S) {
|
|
15
|
-
const { getPrefixCls: z } = K(Q), { className: y, avatar: $, title: v, description: d, ...f } = w, m = `${z("list")}-item-meta`,
|
|
15
|
+
const { getPrefixCls: z } = K(Q), { className: y, avatar: $, title: v, description: d, ...f } = w, m = `${z("list")}-item-meta`, b = !!$, j = !!(v || d);
|
|
16
16
|
return /* @__PURE__ */ N("div", { ref: S, ...f, className: M(m, y), children: [
|
|
17
|
-
|
|
17
|
+
b && /* @__PURE__ */ s("div", { className: `${m}-avatar`, children: $ }),
|
|
18
18
|
j && /* @__PURE__ */ N("div", { className: `${m}-content`, children: [
|
|
19
19
|
v && /* @__PURE__ */ s("div", { className: `${m}-title`, children: v }),
|
|
20
20
|
d && /* @__PURE__ */ s("div", { className: `${m}-description`, children: d })
|
|
@@ -31,25 +31,25 @@ function qt(w, S) {
|
|
|
31
31
|
w,
|
|
32
32
|
Zt,
|
|
33
33
|
y && y["List.Item"]
|
|
34
|
-
), { children: v, className: d, actions: f, extra:
|
|
34
|
+
), { children: v, className: d, actions: f, extra: c, actionLayout: m, ...b } = $, h = `${z("list")}-item`, L = [], p = [];
|
|
35
35
|
F.Children.forEach(v, (t) => {
|
|
36
36
|
t && t.type && t.type === X ? L.push(t) : p.push(t);
|
|
37
37
|
});
|
|
38
|
-
const V = p.length ? /* @__PURE__ */ s("div", { className: `${h}-content`, children: p }) : null, A =
|
|
38
|
+
const V = p.length ? /* @__PURE__ */ s("div", { className: `${h}-content`, children: p }) : null, A = c ? /* @__PURE__ */ s("div", { className: `${h}-extra-content`, children: c }) : null, x = f && f.length ? /* @__PURE__ */ s("div", { className: `${h}-action`, children: f.map((t, _) => /* @__PURE__ */ s("li", { children: t }, `${h}-action-${_}`)) }) : null;
|
|
39
39
|
return /* @__PURE__ */ N(
|
|
40
40
|
"div",
|
|
41
41
|
{
|
|
42
42
|
role: "listitem",
|
|
43
43
|
ref: S,
|
|
44
44
|
className: M(h, d),
|
|
45
|
-
...
|
|
45
|
+
...b,
|
|
46
46
|
children: [
|
|
47
47
|
/* @__PURE__ */ N("div", { className: `${h}-main`, children: [
|
|
48
48
|
L,
|
|
49
49
|
V,
|
|
50
|
-
m === "vertical" ?
|
|
50
|
+
m === "vertical" ? x : null
|
|
51
51
|
] }),
|
|
52
|
-
m === "horizontal" ?
|
|
52
|
+
m === "horizontal" ? x : null,
|
|
53
53
|
A
|
|
54
54
|
]
|
|
55
55
|
}
|
|
@@ -73,20 +73,20 @@ function Xt(w, S) {
|
|
|
73
73
|
renderEmpty: v,
|
|
74
74
|
componentConfig: d,
|
|
75
75
|
rtl: f
|
|
76
|
-
} = K(Q),
|
|
76
|
+
} = K(Q), c = ht(
|
|
77
77
|
w,
|
|
78
78
|
Qt,
|
|
79
79
|
d == null ? void 0 : d.List
|
|
80
80
|
), {
|
|
81
81
|
style: m,
|
|
82
|
-
wrapperStyle:
|
|
82
|
+
wrapperStyle: b,
|
|
83
83
|
className: j,
|
|
84
84
|
wrapperClassName: h,
|
|
85
85
|
children: L = [],
|
|
86
86
|
dataSource: p = [],
|
|
87
87
|
size: V,
|
|
88
88
|
footer: A,
|
|
89
|
-
header:
|
|
89
|
+
header: x,
|
|
90
90
|
pagination: t,
|
|
91
91
|
bordered: _,
|
|
92
92
|
split: Ct,
|
|
@@ -103,11 +103,11 @@ function Xt(w, S) {
|
|
|
103
103
|
listRef: Lt,
|
|
104
104
|
onReachBottom: E,
|
|
105
105
|
onListScroll: H
|
|
106
|
-
} =
|
|
106
|
+
} = c, Pt = V || (Kt.indexOf($) > -1 ? $ : "default"), e = z("list"), B = R(null), G = R(null), P = R(null), O = R(null), U = R(!0), [It, wt] = J(
|
|
107
107
|
t && typeof t == "object" && (t.pageSize || t.defaultPageSize) || pt
|
|
108
|
-
), [zt,
|
|
108
|
+
), [zt, bt] = J(
|
|
109
109
|
t && typeof t == "object" && (t.current || t.defaultCurrent) || ft
|
|
110
|
-
), [W,
|
|
110
|
+
), [W, xt] = J(St), rt = F.Children.count(L);
|
|
111
111
|
Dt(Lt, () => ({
|
|
112
112
|
dom: B.current,
|
|
113
113
|
scrollIntoView: (n, l) => {
|
|
@@ -123,7 +123,7 @@ function Xt(w, S) {
|
|
|
123
123
|
},
|
|
124
124
|
getRootDOMNode: () => B.current
|
|
125
125
|
}));
|
|
126
|
-
const Z =
|
|
126
|
+
const Z = c.virtualListProps ? c.virtualListProps : c.height ? { height: c.height } : void 0, C = {
|
|
127
127
|
pageSize: It,
|
|
128
128
|
current: zt,
|
|
129
129
|
total: p.length > 0 ? p.length : rt,
|
|
@@ -134,7 +134,7 @@ function Xt(w, S) {
|
|
|
134
134
|
},
|
|
135
135
|
onChange: (n, l) => {
|
|
136
136
|
var o;
|
|
137
|
-
|
|
137
|
+
bt(n), t && typeof t == "object" && ((o = t.onChange) == null || o.call(t, n, l));
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
C.current = Math.min(
|
|
@@ -149,19 +149,19 @@ function Xt(w, S) {
|
|
|
149
149
|
}
|
|
150
150
|
if (!P.current)
|
|
151
151
|
return;
|
|
152
|
-
const { scrollTop: n, scrollHeight: l, clientHeight: o } = P.current,
|
|
153
|
-
Math.abs(
|
|
152
|
+
const { scrollTop: n, scrollHeight: l, clientHeight: o } = P.current, i = l - (n + o);
|
|
153
|
+
Math.abs(i) < vt + 1 ? U.current && (xt(W + 1), E == null || E(W + 1), U.current = !1) : U.current = !0;
|
|
154
154
|
}, et),
|
|
155
155
|
[et, W, H, E]
|
|
156
156
|
), Et = () => {
|
|
157
|
-
const n = (
|
|
157
|
+
const n = (i) => {
|
|
158
158
|
const { current: u, pageSize: a } = C, r = (u - 1) * a;
|
|
159
|
-
return t &&
|
|
160
|
-
}, l = (
|
|
161
|
-
const a = n(
|
|
159
|
+
return t && i.length > r ? i.slice(r, r + a) : i;
|
|
160
|
+
}, l = (i, u) => {
|
|
161
|
+
const a = n(i);
|
|
162
162
|
return u ? a.map(u) : a;
|
|
163
|
-
}, o = (
|
|
164
|
-
const a = n(
|
|
163
|
+
}, o = (i, u) => {
|
|
164
|
+
const a = n(i);
|
|
165
165
|
if (g.column || g.span) {
|
|
166
166
|
const r = [], {
|
|
167
167
|
gutter: T,
|
|
@@ -172,7 +172,7 @@ function Xt(w, S) {
|
|
|
172
172
|
} = g, q = Ft || Math.floor(24 / g.span), jt = lt.span || Math.floor(24 / q);
|
|
173
173
|
let I = 0;
|
|
174
174
|
for (; I < a.length; ) {
|
|
175
|
-
const at = I + q,
|
|
175
|
+
const at = I + q, it = ~~(I / q);
|
|
176
176
|
r.push(
|
|
177
177
|
/* @__PURE__ */ s(
|
|
178
178
|
mt,
|
|
@@ -181,18 +181,18 @@ function Xt(w, S) {
|
|
|
181
181
|
gutter: T,
|
|
182
182
|
justify: Rt,
|
|
183
183
|
align: Mt,
|
|
184
|
-
children: a.slice(I, at).map((
|
|
184
|
+
children: a.slice(I, at).map((ct, ut) => /* @__PURE__ */ s(
|
|
185
185
|
dt,
|
|
186
186
|
{
|
|
187
187
|
className: `${e}-row-col`,
|
|
188
188
|
...lt,
|
|
189
189
|
span: jt,
|
|
190
|
-
children: u ? u(
|
|
190
|
+
children: u ? u(ct, I + ut) : ct
|
|
191
191
|
},
|
|
192
|
-
`${
|
|
192
|
+
`${it}_${ut}`
|
|
193
193
|
))
|
|
194
194
|
},
|
|
195
|
-
|
|
195
|
+
it
|
|
196
196
|
)
|
|
197
197
|
), I = at;
|
|
198
198
|
}
|
|
@@ -219,14 +219,14 @@ function Xt(w, S) {
|
|
|
219
219
|
C && C.className
|
|
220
220
|
)
|
|
221
221
|
}
|
|
222
|
-
) : null,
|
|
222
|
+
) : null, i = tt ? o : null, u = tt ? null : o, a = D != null ? /* @__PURE__ */ s("div", { className: `${e}-item ${e}-scroll-loading`, children: D }) : null;
|
|
223
223
|
return /* @__PURE__ */ N(
|
|
224
224
|
"div",
|
|
225
225
|
{
|
|
226
226
|
ref: (r) => {
|
|
227
227
|
S = r, B.current = S;
|
|
228
228
|
},
|
|
229
|
-
style:
|
|
229
|
+
style: b,
|
|
230
230
|
className: M(
|
|
231
231
|
`${e}-wrapper`,
|
|
232
232
|
{ [`${e}-wrapper-rtl`]: f },
|
|
@@ -236,7 +236,7 @@ function Xt(w, S) {
|
|
|
236
236
|
/* @__PURE__ */ N(
|
|
237
237
|
"div",
|
|
238
238
|
{
|
|
239
|
-
...Gt(
|
|
239
|
+
...Gt(c),
|
|
240
240
|
style: m,
|
|
241
241
|
className: M(
|
|
242
242
|
e,
|
|
@@ -254,7 +254,7 @@ function Xt(w, S) {
|
|
|
254
254
|
},
|
|
255
255
|
onScroll: !l && nt ? ot : void 0,
|
|
256
256
|
children: [
|
|
257
|
-
|
|
257
|
+
x ? /* @__PURE__ */ s("div", { className: `${e}-header`, children: x }) : null,
|
|
258
258
|
l ? /* @__PURE__ */ s(At, { children: /* @__PURE__ */ s(
|
|
259
259
|
Ut,
|
|
260
260
|
{
|
|
@@ -281,9 +281,9 @@ function Xt(w, S) {
|
|
|
281
281
|
]
|
|
282
282
|
}
|
|
283
283
|
),
|
|
284
|
-
A ||
|
|
284
|
+
A || i ? /* @__PURE__ */ N("div", { className: `${e}-footer`, children: [
|
|
285
285
|
A,
|
|
286
|
-
|
|
286
|
+
i
|
|
287
287
|
] }) : null
|
|
288
288
|
]
|
|
289
289
|
}
|
|
@@ -293,7 +293,7 @@ function Xt(w, S) {
|
|
|
293
293
|
}
|
|
294
294
|
);
|
|
295
295
|
};
|
|
296
|
-
return "loading" in
|
|
296
|
+
return "loading" in c ? /* @__PURE__ */ s(
|
|
297
297
|
kt,
|
|
298
298
|
{
|
|
299
299
|
style: { display: "block" },
|
package/Mentions.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as V, jsx as T } from "react/jsx-runtime";
|
|
2
2
|
import q, { useContext as z, useRef as v, useState as G, useEffect as J } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { b as Q } from "./chunk/DUxWiN2U.js";
|
|
4
4
|
import X from "./hooks/useMergeProps.js";
|
|
5
5
|
import Y from "./hooks/useMergeValue.js";
|
|
6
|
-
import { I as Z } from "./chunk/
|
|
7
|
-
import { S as _ } from "./chunk/
|
|
8
|
-
import ee from "
|
|
9
|
-
import { Esc as
|
|
6
|
+
import { I as Z } from "./chunk/Bl-ODC57.js";
|
|
7
|
+
import { S as _ } from "./chunk/BpwDupra.js";
|
|
8
|
+
import { y as ee } from "./chunk/Do1aMgY3.js";
|
|
9
|
+
import { Esc as S, Enter as w, ArrowUp as E, ArrowDown as N } from "./utils/keyCode.js";
|
|
10
10
|
function te(i, { split: t }) {
|
|
11
11
|
return !t || i.indexOf(t) === -1;
|
|
12
12
|
}
|
|
@@ -28,7 +28,7 @@ function ne(i, t = "") {
|
|
|
28
28
|
{ location: -1, prefix: "" }
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
const oe = Z.TextArea, se = [
|
|
31
|
+
const oe = Z.TextArea, se = [S.key, w.key, E.key, N.key], ie = {
|
|
32
32
|
prefix: "@",
|
|
33
33
|
split: " ",
|
|
34
34
|
rows: 1,
|
|
@@ -43,8 +43,8 @@ function ae(i, t) {
|
|
|
43
43
|
), {
|
|
44
44
|
style: O,
|
|
45
45
|
className: W,
|
|
46
|
-
options:
|
|
47
|
-
prefix:
|
|
46
|
+
options: b,
|
|
47
|
+
prefix: L,
|
|
48
48
|
split: g,
|
|
49
49
|
position: B,
|
|
50
50
|
alignTextarea: C,
|
|
@@ -58,7 +58,7 @@ function ae(i, t) {
|
|
|
58
58
|
} = a, f = A("mentions"), h = v(null), k = v(null), m = v(null), [x, I] = Y("", {
|
|
59
59
|
value: a.value,
|
|
60
60
|
defaultValue: a.defaultValue
|
|
61
|
-
}), [e,
|
|
61
|
+
}), [e, P] = G({
|
|
62
62
|
measuring: !1,
|
|
63
63
|
location: 0,
|
|
64
64
|
text: "",
|
|
@@ -68,7 +68,7 @@ function ae(i, t) {
|
|
|
68
68
|
m.current && k.current && (k.current.scrollTop = m.current.dom.scrollTop);
|
|
69
69
|
});
|
|
70
70
|
const $ = () => {
|
|
71
|
-
|
|
71
|
+
P({
|
|
72
72
|
...e,
|
|
73
73
|
measuring: !1,
|
|
74
74
|
location: 0,
|
|
@@ -88,16 +88,16 @@ function ae(i, t) {
|
|
|
88
88
|
},
|
|
89
89
|
onKeyDown: (r) => {
|
|
90
90
|
const o = r.key;
|
|
91
|
-
o ===
|
|
91
|
+
o === S.key && m.current && m.current.blur(), h.current && (h.current.hotkeyHandler(r), (o === w.key || o === E.key || o === N.key) && r.preventDefault());
|
|
92
92
|
},
|
|
93
93
|
onKeyUp: (r) => {
|
|
94
94
|
const { key: o, target: M } = r;
|
|
95
95
|
if (~se.indexOf(o))
|
|
96
96
|
return;
|
|
97
|
-
const s = re(M), { location: n, prefix: p } = ne(s,
|
|
97
|
+
const s = re(M), { location: n, prefix: p } = ne(s, L), l = s.slice(
|
|
98
98
|
n + p.length
|
|
99
99
|
);
|
|
100
|
-
n > -1 && te(l, a) ? ((o === p || e.measuring || l !== e.text) &&
|
|
100
|
+
n > -1 && te(l, a) ? ((o === p || e.measuring || l !== e.text) && P({
|
|
101
101
|
measuring: !0,
|
|
102
102
|
text: l,
|
|
103
103
|
prefix: p,
|
|
@@ -106,7 +106,7 @@ function ae(i, t) {
|
|
|
106
106
|
},
|
|
107
107
|
onBlur: $
|
|
108
108
|
};
|
|
109
|
-
return /* @__PURE__ */
|
|
109
|
+
return /* @__PURE__ */ V(
|
|
110
110
|
"div",
|
|
111
111
|
{
|
|
112
112
|
ref: t,
|
|
@@ -130,13 +130,13 @@ function ae(i, t) {
|
|
|
130
130
|
...F
|
|
131
131
|
}
|
|
132
132
|
),
|
|
133
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ V("div", { ref: k, className: `${f}-measure`, children: [
|
|
134
134
|
x.slice(0, e.location),
|
|
135
135
|
/* @__PURE__ */ T(
|
|
136
136
|
_,
|
|
137
137
|
{
|
|
138
138
|
ref: h,
|
|
139
|
-
options:
|
|
139
|
+
options: b,
|
|
140
140
|
inputValue: e.text,
|
|
141
141
|
notFoundContent: j,
|
|
142
142
|
triggerElement: /* @__PURE__ */ T("span", { className: `${f}-measure-trigger`, children: e.prefix }),
|
package/Menu.js
CHANGED
package/Message.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "./chunk/
|
|
2
|
+
import "./chunk/BP7xX86Q.js";
|
|
3
3
|
import "lodash/isNumber";
|
|
4
4
|
import "lodash/isUndefined";
|
|
5
|
-
import {
|
|
5
|
+
import { g as d } from "./chunk/DUxWiN2U.js";
|
|
6
6
|
import "./NotificationBase.js";
|
|
7
|
-
import "
|
|
7
|
+
import "./chunk/Do1aMgY3.js";
|
|
8
8
|
import "./utils/reactDOM.js";
|
|
9
9
|
export {
|
|
10
10
|
d as default
|
package/Modal.js
CHANGED
package/Notice.js
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import "@unicom-cloud/icons/IconUiClose";
|
|
4
|
-
import "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
5
|
-
import "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
6
|
-
import "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
7
|
-
import "@unicom-cloud/icons/IconUiLoading";
|
|
8
|
-
import "@unicom-cloud/icons/context";
|
|
2
|
+
import "./chunk/B45v5S9k.js";
|
|
9
3
|
import "react";
|
|
10
|
-
import {
|
|
11
|
-
import "
|
|
4
|
+
import { r as a } from "./chunk/DUxWiN2U.js";
|
|
5
|
+
import "./chunk/Do1aMgY3.js";
|
|
12
6
|
export {
|
|
13
|
-
|
|
7
|
+
a as default
|
|
14
8
|
};
|
package/Notification.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "./chunk/
|
|
2
|
+
import "./chunk/BP7xX86Q.js";
|
|
3
3
|
import "lodash/isNumber";
|
|
4
4
|
import "lodash/isUndefined";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { N as l } from "./chunk/
|
|
6
|
+
import { N as l } from "./chunk/DUxWiN2U.js";
|
|
7
7
|
import "./NotificationBase.js";
|
|
8
|
-
import "
|
|
8
|
+
import "./chunk/Do1aMgY3.js";
|
|
9
9
|
import "./utils/reactDOM.js";
|
|
10
10
|
export {
|
|
11
11
|
l as default
|
package/OverflowEllipsis.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as C, jsxs as D } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as k, useRef as _, useEffect as g, useState as m, useLayoutEffect as P } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import E from "
|
|
3
|
+
import { b as v } from "./chunk/DUxWiN2U.js";
|
|
4
|
+
import { y as E } from "./chunk/Do1aMgY3.js";
|
|
5
5
|
function j(l) {
|
|
6
6
|
const { getPrefixCls: x } = k(v), i = x("overflow-item"), u = _();
|
|
7
7
|
g(() => {
|
|
8
8
|
let e;
|
|
9
|
-
return u.current && (e = new ResizeObserver((
|
|
10
|
-
l.onResize(
|
|
9
|
+
return u.current && (e = new ResizeObserver((f) => {
|
|
10
|
+
l.onResize(f == null ? void 0 : f[0].target);
|
|
11
11
|
}), e.observe(u.current)), () => {
|
|
12
|
-
var
|
|
13
|
-
u.current && ((
|
|
12
|
+
var f, d;
|
|
13
|
+
u.current && ((f = e == null ? void 0 : e.unobserve) == null || f.call(e, u.current)), (d = e == null ? void 0 : e.disconnect) == null || d.call(e), e = null;
|
|
14
14
|
};
|
|
15
15
|
}, [u.current]), g(() => (l.onResize(u.current), () => {
|
|
16
16
|
l.unregister(u.current);
|
|
@@ -28,40 +28,40 @@ function j(l) {
|
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
function q(l) {
|
|
31
|
-
const { getPrefixCls: x } = k(v), i = x("overflow"), { items: u, suffixItems: w } = l, e = l.ellipsisNode || (({ ellipsisCount: t }) => `+${t}`), [
|
|
31
|
+
const { getPrefixCls: x } = k(v), i = x("overflow"), { items: u, suffixItems: w } = l, e = l.ellipsisNode || (({ ellipsisCount: t }) => `+${t}`), [f, d] = m(), [y, I] = m(), [h, N] = m({}), [R, W] = m({}), $ = u.length - y, M = $ > 0 ? e({ ellipsisCount: $ }) : null;
|
|
32
32
|
P(() => {
|
|
33
33
|
const t = Object.values(h).length;
|
|
34
|
-
let c = Object.values(
|
|
34
|
+
let c = Object.values(R).reduce((o, r) => o + ((r == null ? void 0 : r.width) || 0), 0), n = t;
|
|
35
35
|
Object.keys(h).some((o, r) => {
|
|
36
36
|
const a = h[o];
|
|
37
|
-
if (a && c + a.width >
|
|
37
|
+
if (a && c + a.width > f)
|
|
38
38
|
return n = r, !0;
|
|
39
39
|
c += (a == null ? void 0 : a.width) || 0;
|
|
40
40
|
}), I(Math.max(n, 0));
|
|
41
|
-
}, [h,
|
|
42
|
-
const
|
|
41
|
+
}, [h, f, R]);
|
|
42
|
+
const s = _();
|
|
43
43
|
return g(() => {
|
|
44
44
|
let t;
|
|
45
|
-
return
|
|
45
|
+
return s.current && (t = new ResizeObserver((c) => {
|
|
46
46
|
var n;
|
|
47
47
|
d(((n = c == null ? void 0 : c[0]) == null ? void 0 : n.target.clientWidth) || 0);
|
|
48
|
-
}), t.observe(
|
|
48
|
+
}), t.observe(s.current)), () => {
|
|
49
49
|
var c, n;
|
|
50
|
-
|
|
50
|
+
s.current && ((c = t == null ? void 0 : t.unobserve) == null || c.call(t, s.current)), (n = t == null ? void 0 : t.disconnect) == null || n.call(t), t = null;
|
|
51
51
|
};
|
|
52
|
-
}, [
|
|
52
|
+
}, [s.current]), /* @__PURE__ */ D("div", { ref: s, className: E(i, l.className), children: [
|
|
53
53
|
u.map((t, c) => {
|
|
54
54
|
const n = `${(t == null ? void 0 : t.key) || c}_overflow_item`;
|
|
55
55
|
return /* @__PURE__ */ C(
|
|
56
56
|
j,
|
|
57
57
|
{
|
|
58
58
|
onResize: (o) => {
|
|
59
|
-
|
|
59
|
+
N((r) => (r[n] = { node: o, width: o.clientWidth }, r));
|
|
60
60
|
},
|
|
61
61
|
unregister: () => {
|
|
62
|
-
|
|
62
|
+
N((o) => (delete o[n], o));
|
|
63
63
|
},
|
|
64
|
-
hidden:
|
|
64
|
+
hidden: y < c + 1,
|
|
65
65
|
children: t
|
|
66
66
|
},
|
|
67
67
|
n
|
package/PageHeader.js
CHANGED
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
import { jsxs as s, jsx as r, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
-
import T from "
|
|
3
|
-
import W from "@unicom-cloud/icons/IconUiRight";
|
|
2
|
+
import { I as T, a as W } from "./chunk/D9TqtOhq.js";
|
|
4
3
|
import j, { useContext as K, useState as U, useRef as D, useImperativeHandle as F, useEffect as L } from "react";
|
|
5
4
|
import M from "./Breadcrumb.js";
|
|
6
|
-
import {
|
|
5
|
+
import { b as S, I as q } from "./chunk/DUxWiN2U.js";
|
|
7
6
|
import G from "./hooks/useKeyboardEvent.js";
|
|
8
7
|
import J from "./hooks/useMergeProps.js";
|
|
9
|
-
import N from "
|
|
8
|
+
import { y as N } from "./chunk/Do1aMgY3.js";
|
|
10
9
|
import Q from "./utils/omit.js";
|
|
11
|
-
function x
|
|
10
|
+
function b(x, y) {
|
|
12
11
|
const { getPrefixCls: v, componentConfig: m, rtl: p } = K(S), n = J(
|
|
13
|
-
|
|
12
|
+
x,
|
|
14
13
|
{},
|
|
15
14
|
m == null ? void 0 : m.PageHeader
|
|
16
15
|
), {
|
|
17
16
|
header: k,
|
|
18
17
|
title: w,
|
|
19
18
|
subTitle: A,
|
|
20
|
-
extra:
|
|
21
|
-
children:
|
|
19
|
+
extra: I,
|
|
20
|
+
children: u,
|
|
22
21
|
backIcon: d,
|
|
23
|
-
footer:
|
|
22
|
+
footer: f,
|
|
24
23
|
breadcrumb: h,
|
|
25
|
-
...
|
|
24
|
+
...R
|
|
26
25
|
} = n;
|
|
27
26
|
let i = k;
|
|
28
27
|
Array.isArray(i) && !i.length && (i = null);
|
|
29
|
-
let
|
|
30
|
-
Array.isArray(o) && !o.length && (o = null);
|
|
31
|
-
let c = A;
|
|
28
|
+
let c = w;
|
|
32
29
|
Array.isArray(c) && !c.length && (c = null);
|
|
33
|
-
let l =
|
|
30
|
+
let l = A;
|
|
34
31
|
Array.isArray(l) && !l.length && (l = null);
|
|
32
|
+
let o = I;
|
|
33
|
+
Array.isArray(o) && !o.length && (o = null);
|
|
35
34
|
const P = G(), [C, E] = U(!1), a = D(), e = v("page-header");
|
|
36
35
|
F(y, () => ({
|
|
37
36
|
getRootDomElement: H
|
|
@@ -51,14 +50,14 @@ function x(b, y) {
|
|
|
51
50
|
}, [a.current]), /* @__PURE__ */ s(
|
|
52
51
|
"div",
|
|
53
52
|
{
|
|
54
|
-
...Q(
|
|
53
|
+
...Q(R, ["onBack"]),
|
|
55
54
|
ref: a,
|
|
56
55
|
className: N(
|
|
57
56
|
`${e}`,
|
|
58
57
|
{
|
|
59
58
|
[`${e}-with-breadcrumb`]: h,
|
|
60
|
-
[`${e}-with-content`]:
|
|
61
|
-
[`${e}-with-footer`]:
|
|
59
|
+
[`${e}-with-content`]: u,
|
|
60
|
+
[`${e}-with-footer`]: f,
|
|
62
61
|
[`${e}-wrap`]: C,
|
|
63
62
|
[`${e}-rtl`]: p
|
|
64
63
|
},
|
|
@@ -88,28 +87,28 @@ function x(b, y) {
|
|
|
88
87
|
...P({
|
|
89
88
|
onPressEnter: n.onBack
|
|
90
89
|
}),
|
|
91
|
-
children: /* @__PURE__ */ r("span", { className: `${e}-back-icon`, children: d === !0 ? p ? /* @__PURE__ */ r(
|
|
90
|
+
children: /* @__PURE__ */ r("span", { className: `${e}-back-icon`, children: d === !0 ? p ? /* @__PURE__ */ r(T, {}) : /* @__PURE__ */ r(W, {}) : d })
|
|
92
91
|
}
|
|
93
92
|
),
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
c && /* @__PURE__ */ r("div", { className: `${e}-title`, children: c }),
|
|
94
|
+
l && /* @__PURE__ */ s(_, { children: [
|
|
96
95
|
/* @__PURE__ */ r("div", { className: `${e}-divider` }),
|
|
97
|
-
/* @__PURE__ */ r("div", { className: `${e}-sub-title`, children:
|
|
96
|
+
/* @__PURE__ */ r("div", { className: `${e}-sub-title`, children: l })
|
|
98
97
|
] })
|
|
99
98
|
]
|
|
100
99
|
}
|
|
101
100
|
),
|
|
102
|
-
|
|
101
|
+
o && /* @__PURE__ */ r("div", { className: `${e}-head-extra`, children: o })
|
|
103
102
|
] })
|
|
104
103
|
] }),
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
u && /* @__PURE__ */ r("div", { className: `${e}-content`, children: u }),
|
|
105
|
+
f && /* @__PURE__ */ r("div", { className: `${e}-footer`, children: f })
|
|
107
106
|
]
|
|
108
107
|
}
|
|
109
108
|
);
|
|
110
109
|
}
|
|
111
|
-
|
|
112
|
-
const
|
|
110
|
+
b.displayName = "PageHeader";
|
|
111
|
+
const ae = j.forwardRef(b);
|
|
113
112
|
export {
|
|
114
|
-
|
|
113
|
+
ae as default
|
|
115
114
|
};
|
package/Pagination.js
CHANGED
package/Picker.js
CHANGED