@unicom-cloud/ui 0.8.54 → 0.8.56
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/{RRWbBHK-.js → B2Bp3i5u.js} +221 -221
- 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/{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/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/CilQ012k.js +1796 -0
- package/chunk/CkAOsst1.js +73 -0
- package/chunk/CnY8SvgY.js +126 -0
- package/chunk/{CTSIr-Pr.js → CwXmtKib.js} +89 -101
- package/chunk/{C3I_L73_.js → CwjaGytU.js} +39 -40
- package/chunk/{DTgc2wl4.js → D6RTBH4C.js} +36 -36
- package/chunk/D6mVoX-C.js +116 -0
- package/chunk/D9TqtOhq.js +40 -0
- package/chunk/{qSJXQ1qu.js → DBJ8d0o0.js} +183 -189
- package/chunk/{RL1SNlng.js → DDda6s72.js} +16 -16
- package/chunk/{BH5fVprw.js → DJmWXheU.js} +9 -9
- package/chunk/DPvnQJ-H.js +52 -0
- package/chunk/DQXq1QT0.js +58 -0
- package/chunk/DRJO1GfY.js +855 -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/{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/{Niaq_og8.js → Dw4SJ4o1.js} +219 -225
- package/chunk/{DbtCtriE.js → DxNRWF67.js} +30 -31
- package/chunk/JnyGFb5j.js +284 -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/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/chunk/{Dki1RB5p.js → t51ig1FZ.js} +154 -155
- package/chunk/{BC0PujUD.js → yvbAFxtk.js} +119 -121
- 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/modal/config.d.ts +1 -1
- 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/utils/scrollIntoView.js +1 -1
- package/chunk/BdYAMaw9.js +0 -6
- package/chunk/CiZVOdJ3.js +0 -122
- 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
|
@@ -8,39 +8,27 @@ import Ze from "lodash/isUndefined";
|
|
|
8
8
|
import ie, { useContext as Pe, forwardRef as Ne, createContext as $t, useState as M, useRef as U, useMemo as Se, useImperativeHandle as je, useCallback as At, useEffect as A } from "react";
|
|
9
9
|
import Ut from "../hooks/useIsFirstRender.js";
|
|
10
10
|
import Me from "../hooks/useMergeValue.js";
|
|
11
|
-
import Be from "
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import He from "
|
|
15
|
-
import
|
|
16
|
-
import Et from "@unicom-cloud/icons/IconUiOriginalSize";
|
|
17
|
-
import _e from "@unicom-cloud/icons/IconUiRight";
|
|
18
|
-
import Dt from "@unicom-cloud/icons/IconUiRotateLeft";
|
|
19
|
-
import Ot from "@unicom-cloud/icons/IconUiRotateRight";
|
|
20
|
-
import Vt from "@unicom-cloud/icons/IconUiZoomIn";
|
|
21
|
-
import Yt from "@unicom-cloud/icons/IconUiZoomOut";
|
|
22
|
-
import { a as qe, b as Ft } from "./xPzFRQJn.js";
|
|
11
|
+
import { I as Be, e as Tt } from "./B45v5S9k.js";
|
|
12
|
+
import { I as Rt } from "./BCk8e9fj.js";
|
|
13
|
+
import { a as zt, b as Et, c as Dt, d as Ot, e as Vt, f as Yt } from "./CPl52AZh.js";
|
|
14
|
+
import { a as He, I as _e } from "./D9TqtOhq.js";
|
|
15
|
+
import { b as qe, C as Ft } from "./DUxWiN2U.js";
|
|
23
16
|
import "lodash/isEqualWith";
|
|
24
17
|
import "../utils/is.js";
|
|
25
18
|
import { ArrowDown as Xt, ArrowUp as Bt, ArrowLeft as Gt, ArrowRight as Wt, Esc as Zt } from "../utils/keyCode.js";
|
|
26
19
|
import "lodash/isNumber";
|
|
27
20
|
import "lodash/merge";
|
|
28
|
-
import { isServerRendering as jt, on as Ce, off as
|
|
29
|
-
import Ht from "@unicom-cloud/utils/clipboard-copy";
|
|
30
|
-
import "@unicom-cloud/utils/screenfull";
|
|
31
|
-
import "lodash/throttle";
|
|
21
|
+
import { isServerRendering as jt, on as Ce, off as Ie } from "../utils/dom.js";
|
|
32
22
|
import "../hooks/useIntersectionObserver.js";
|
|
33
|
-
import
|
|
34
|
-
import "../hooks/
|
|
35
|
-
import qt from "../
|
|
36
|
-
import "../hooks/
|
|
37
|
-
import
|
|
38
|
-
import {
|
|
39
|
-
import "
|
|
40
|
-
import Qt from "
|
|
41
|
-
import {
|
|
42
|
-
import Y from "@unicom-cloud/utils/class-name";
|
|
43
|
-
import en from "@unicom-cloud/icons/IconUiMore";
|
|
23
|
+
import Ht from "../hooks/useMergeProps.js";
|
|
24
|
+
import _t from "../hooks/useOverflowHidden.js";
|
|
25
|
+
import { findDOMNode as qt } from "../utils/reactDOM.js";
|
|
26
|
+
import Kt from "../hooks/useUpdateEffect.js";
|
|
27
|
+
import Jt from "../Portal.js";
|
|
28
|
+
import { P as Ge } from "./BP7xX86Q.js";
|
|
29
|
+
import { y as Y } from "./Do1aMgY3.js";
|
|
30
|
+
import { s as Qt } from "./Cb_oWoGj.js";
|
|
31
|
+
import { I as en } from "./BK1FKNAX.js";
|
|
44
32
|
import tn from "../Tooltip.js";
|
|
45
33
|
import nn from "../Trigger.js";
|
|
46
34
|
const on = (s) => {
|
|
@@ -97,15 +85,15 @@ const sn = (s, t) => {
|
|
|
97
85
|
...u.filter(v)
|
|
98
86
|
], b = u.filter(
|
|
99
87
|
(f) => !N.has(f.key)
|
|
100
|
-
), X = F.sort((f,
|
|
101
|
-
const L = c.indexOf(f.key), R = c.indexOf(
|
|
88
|
+
), X = F.sort((f, k) => {
|
|
89
|
+
const L = c.indexOf(f.key), R = c.indexOf(k.key);
|
|
102
90
|
return L > R ? 1 : -1;
|
|
103
91
|
});
|
|
104
92
|
if (N.has("extra")) {
|
|
105
93
|
const f = c.indexOf("extra");
|
|
106
94
|
X.splice(f, 0, ...b);
|
|
107
95
|
}
|
|
108
|
-
const T = (f,
|
|
96
|
+
const T = (f, k = !1) => {
|
|
109
97
|
const { content: L, disabled: R, key: C, name: P, getContainer: z, onClick: E, ...j } = f, D = /* @__PURE__ */ V(
|
|
110
98
|
"div",
|
|
111
99
|
{
|
|
@@ -121,7 +109,7 @@ const sn = (s, t) => {
|
|
|
121
109
|
...j,
|
|
122
110
|
children: [
|
|
123
111
|
L && /* @__PURE__ */ i("span", { className: `${n}-toolbar-action-content`, children: L }),
|
|
124
|
-
|
|
112
|
+
k && P && /* @__PURE__ */ i("span", { className: `${n}-toolbar-action-name`, children: P })
|
|
125
113
|
]
|
|
126
114
|
},
|
|
127
115
|
C
|
|
@@ -130,16 +118,16 @@ const sn = (s, t) => {
|
|
|
130
118
|
};
|
|
131
119
|
if (!X.length) return null;
|
|
132
120
|
const Z = X.map((f) => {
|
|
133
|
-
const
|
|
121
|
+
const k = T(f, r);
|
|
134
122
|
return !r && f.name && !f.getContainer ? /* @__PURE__ */ i(
|
|
135
123
|
tn,
|
|
136
124
|
{
|
|
137
125
|
content: f.name,
|
|
138
126
|
className: `${n}-toolbar-tooltip`,
|
|
139
|
-
children:
|
|
127
|
+
children: k
|
|
140
128
|
},
|
|
141
129
|
f.key
|
|
142
|
-
) :
|
|
130
|
+
) : k;
|
|
143
131
|
});
|
|
144
132
|
return /* @__PURE__ */ V(
|
|
145
133
|
"div",
|
|
@@ -265,7 +253,7 @@ function un(s) {
|
|
|
265
253
|
setStatus: o
|
|
266
254
|
};
|
|
267
255
|
}
|
|
268
|
-
const
|
|
256
|
+
const ke = 90, fn = {
|
|
269
257
|
maskClosable: !0,
|
|
270
258
|
closable: !0,
|
|
271
259
|
breakPoint: 316,
|
|
@@ -297,7 +285,7 @@ function mn(s, t) {
|
|
|
297
285
|
setCurrentIndex: u,
|
|
298
286
|
infinite: c,
|
|
299
287
|
previewPropsMap: y
|
|
300
|
-
} = Pe(Ke), N = o ? y.get(r) : {}, v =
|
|
288
|
+
} = Pe(Ke), N = o ? y.get(r) : {}, v = Ht(
|
|
301
289
|
s,
|
|
302
290
|
fn,
|
|
303
291
|
N
|
|
@@ -308,7 +296,7 @@ function mn(s, t) {
|
|
|
308
296
|
defaultVisible: T,
|
|
309
297
|
maskClosable: Z,
|
|
310
298
|
closable: f,
|
|
311
|
-
breakPoint:
|
|
299
|
+
breakPoint: k,
|
|
312
300
|
actions: L,
|
|
313
301
|
actionsLayout: R,
|
|
314
302
|
getPopupContainer: C,
|
|
@@ -322,11 +310,11 @@ function mn(s, t) {
|
|
|
322
310
|
} = v, H = o ? n.get(r) : X, [G, Q] = M(H), [h, se] = Me(!1, {
|
|
323
311
|
defaultValue: T,
|
|
324
312
|
value: v.visible
|
|
325
|
-
}), ee = Pe(qe), { getPrefixCls: l, locale: m, rtl:
|
|
326
|
-
|
|
313
|
+
}), ee = Pe(qe), { getPrefixCls: l, locale: m, rtl: I } = ee, x = l("image"), d = `${x}-preview`, p = Y(
|
|
314
|
+
d,
|
|
327
315
|
{
|
|
328
|
-
[`${
|
|
329
|
-
[`${
|
|
316
|
+
[`${d}-hide`]: !h,
|
|
317
|
+
[`${d}-rtl`]: I
|
|
330
318
|
},
|
|
331
319
|
F
|
|
332
320
|
), _ = U(), et = U(), S = U(), Le = U(), ae = U(!1), K = U({
|
|
@@ -336,8 +324,8 @@ function mn(s, t) {
|
|
|
336
324
|
originY: 0
|
|
337
325
|
}), { isLoading: tt, isLoaded: nt, setStatus: ce } = un("loading"), [ot, rt] = M(!1), [$, le] = M({ x: 0, y: 0 }), [g, ue] = M(1), [$e, Ae] = M(!1), [te, fe] = M(0), [O, Ue] = M(!1), W = Se(() => new ln(z), []), {
|
|
338
326
|
onLoad: me,
|
|
339
|
-
onError:
|
|
340
|
-
onMouseDown:
|
|
327
|
+
onError: de,
|
|
328
|
+
onMouseDown: pe,
|
|
341
329
|
style: it,
|
|
342
330
|
className: st,
|
|
343
331
|
...at
|
|
@@ -351,9 +339,9 @@ function mn(s, t) {
|
|
|
351
339
|
}));
|
|
352
340
|
const [ne, ct] = M(), ze = At(() => ne, [ne]);
|
|
353
341
|
A(() => {
|
|
354
|
-
const e = C == null ? void 0 : C(), a =
|
|
342
|
+
const e = C == null ? void 0 : C(), a = qt(e) || document.body;
|
|
355
343
|
ct(a);
|
|
356
|
-
}, [C]),
|
|
344
|
+
}, [C]), _t(ze, { hidden: h });
|
|
357
345
|
const lt = Se(
|
|
358
346
|
() => !jt && ne === document.body,
|
|
359
347
|
[ne]
|
|
@@ -369,10 +357,10 @@ function mn(s, t) {
|
|
|
369
357
|
Ee(r + 1);
|
|
370
358
|
}
|
|
371
359
|
function ut() {
|
|
372
|
-
fe(te === 0 ? 360 -
|
|
360
|
+
fe(te === 0 ? 360 - ke : te - ke);
|
|
373
361
|
}
|
|
374
362
|
function ft() {
|
|
375
|
-
fe((te +
|
|
363
|
+
fe((te + ke) % 360);
|
|
376
364
|
}
|
|
377
365
|
const we = U(null), mt = () => {
|
|
378
366
|
!$e && Ae(!0), we.current && clearTimeout(we.current), we.current = setTimeout(() => {
|
|
@@ -389,10 +377,10 @@ function mn(s, t) {
|
|
|
389
377
|
const e = W.getNextScale(g, "zoomOut");
|
|
390
378
|
oe(e);
|
|
391
379
|
}
|
|
392
|
-
function
|
|
380
|
+
function dt(e) {
|
|
393
381
|
e.deltaY > 0 ? g >= W.minScale && xe() : g <= W.maxScale && ye();
|
|
394
382
|
}
|
|
395
|
-
function
|
|
383
|
+
function pt() {
|
|
396
384
|
oe(1);
|
|
397
385
|
}
|
|
398
386
|
function gt() {
|
|
@@ -403,7 +391,7 @@ function mn(s, t) {
|
|
|
403
391
|
e.target === e.currentTarget && Z && re();
|
|
404
392
|
}
|
|
405
393
|
function ht() {
|
|
406
|
-
|
|
394
|
+
Qt(G);
|
|
407
395
|
}
|
|
408
396
|
function Oe() {
|
|
409
397
|
re();
|
|
@@ -416,7 +404,7 @@ function mn(s, t) {
|
|
|
416
404
|
}
|
|
417
405
|
function wt(e) {
|
|
418
406
|
if (e && e.length) {
|
|
419
|
-
const w = e[0].contentRect.width <
|
|
407
|
+
const w = e[0].contentRect.width < k;
|
|
420
408
|
rt(w);
|
|
421
409
|
}
|
|
422
410
|
}
|
|
@@ -437,7 +425,7 @@ function mn(s, t) {
|
|
|
437
425
|
var a;
|
|
438
426
|
if (h && O) {
|
|
439
427
|
(a = e.preventDefault) == null || a.call(e);
|
|
440
|
-
const { originX: w, originY: q, pageX: be, pageY:
|
|
428
|
+
const { originX: w, originY: q, pageX: be, pageY: kt } = K.current, Pt = w + (e.pageX - be) / g, St = q + (e.pageY - kt) / g;
|
|
441
429
|
le({
|
|
442
430
|
x: Pt,
|
|
443
431
|
y: St
|
|
@@ -451,16 +439,16 @@ function mn(s, t) {
|
|
|
451
439
|
ce("loaded"), me == null || me(e);
|
|
452
440
|
}
|
|
453
441
|
function xt(e) {
|
|
454
|
-
ce("error"),
|
|
442
|
+
ce("error"), de == null || de(e);
|
|
455
443
|
}
|
|
456
444
|
const bt = (e) => {
|
|
457
445
|
var w;
|
|
458
446
|
(w = e.preventDefault) == null || w.call(e), Ue(!0);
|
|
459
447
|
const a = e.type === "touchstart" ? e.touches[0] : e;
|
|
460
|
-
K.current.pageX = a.pageX, K.current.pageY = a.pageY, K.current.originX = $.x, K.current.originY = $.y,
|
|
448
|
+
K.current.pageX = a.pageX, K.current.pageY = a.pageY, K.current.originX = $.x, K.current.originY = $.y, pe == null || pe(e);
|
|
461
449
|
};
|
|
462
450
|
A(() => (h && O && (Ce(document, "mousemove", Ye, !1), Ce(document, "mouseup", Fe, !1)), () => {
|
|
463
|
-
|
|
451
|
+
Ie(document, "mousemove", Ye, !1), Ie(document, "mouseup", Fe, !1);
|
|
464
452
|
}), [h, O]), A(() => {
|
|
465
453
|
J && !O && Ve();
|
|
466
454
|
}, [O, $]), A(() => {
|
|
@@ -469,7 +457,7 @@ function mn(s, t) {
|
|
|
469
457
|
h && ge();
|
|
470
458
|
}, [h]), A(() => {
|
|
471
459
|
Q(H), ce(H ? "loading" : "loaded"), ge();
|
|
472
|
-
}, [H]),
|
|
460
|
+
}, [H]), Kt(() => {
|
|
473
461
|
W.updateScale(z), ue(1);
|
|
474
462
|
}, [z]), A(() => {
|
|
475
463
|
const e = (a) => {
|
|
@@ -493,7 +481,7 @@ function mn(s, t) {
|
|
|
493
481
|
}
|
|
494
482
|
};
|
|
495
483
|
return h && !O && !ae.current && (ae.current = !0, Ce(document, "keydown", e)), () => {
|
|
496
|
-
ae.current = !1,
|
|
484
|
+
ae.current = !1, Ie(document, "keydown", e);
|
|
497
485
|
};
|
|
498
486
|
}, [h, E, O, r, g]);
|
|
499
487
|
const Ct = [
|
|
@@ -501,39 +489,39 @@ function mn(s, t) {
|
|
|
501
489
|
{
|
|
502
490
|
key: "rotateRight",
|
|
503
491
|
name: m.ImagePreview.rotateRight,
|
|
504
|
-
content: /* @__PURE__ */ i(
|
|
492
|
+
content: /* @__PURE__ */ i(zt, {}),
|
|
505
493
|
onClick: ft
|
|
506
494
|
},
|
|
507
495
|
{
|
|
508
496
|
key: "rotateLeft",
|
|
509
497
|
name: m.ImagePreview.rotateLeft,
|
|
510
|
-
content: /* @__PURE__ */ i(
|
|
498
|
+
content: /* @__PURE__ */ i(Et, {}),
|
|
511
499
|
onClick: ut
|
|
512
500
|
},
|
|
513
501
|
{
|
|
514
502
|
key: "zoomIn",
|
|
515
503
|
name: m.ImagePreview.zoomIn,
|
|
516
|
-
content: /* @__PURE__ */ i(
|
|
504
|
+
content: /* @__PURE__ */ i(Dt, {}),
|
|
517
505
|
onClick: ye,
|
|
518
506
|
disabled: g === W.maxScale
|
|
519
507
|
},
|
|
520
508
|
{
|
|
521
509
|
key: "zoomOut",
|
|
522
510
|
name: m.ImagePreview.zoomOut,
|
|
523
|
-
content: /* @__PURE__ */ i(
|
|
511
|
+
content: /* @__PURE__ */ i(Ot, {}),
|
|
524
512
|
onClick: xe,
|
|
525
513
|
disabled: g === W.minScale
|
|
526
514
|
},
|
|
527
515
|
{
|
|
528
516
|
key: "originalSize",
|
|
529
517
|
name: m.ImagePreview.originalSize,
|
|
530
|
-
content: /* @__PURE__ */ i(
|
|
531
|
-
onClick:
|
|
518
|
+
content: /* @__PURE__ */ i(Vt, {}),
|
|
519
|
+
onClick: pt
|
|
532
520
|
},
|
|
533
521
|
{
|
|
534
522
|
key: "maximize",
|
|
535
523
|
name: "最大化",
|
|
536
|
-
content: /* @__PURE__ */ i(
|
|
524
|
+
content: /* @__PURE__ */ i(Yt, {}),
|
|
537
525
|
onClick: gt
|
|
538
526
|
},
|
|
539
527
|
!!o && {
|
|
@@ -553,7 +541,7 @@ function mn(s, t) {
|
|
|
553
541
|
{
|
|
554
542
|
key: "copy",
|
|
555
543
|
name: "复制",
|
|
556
|
-
content: /* @__PURE__ */ i(
|
|
544
|
+
content: /* @__PURE__ */ i(Rt, {}),
|
|
557
545
|
onClick: ht
|
|
558
546
|
},
|
|
559
547
|
{
|
|
@@ -570,14 +558,14 @@ function mn(s, t) {
|
|
|
570
558
|
S.current && ((a = e == null ? void 0 : e.unobserve) == null || a.call(e, S.current)), (w = e == null ? void 0 : e.disconnect) == null || w.call(e), e = null;
|
|
571
559
|
};
|
|
572
560
|
}, [S.current]);
|
|
573
|
-
const
|
|
561
|
+
const It = () => {
|
|
574
562
|
const e = /* @__PURE__ */ i(
|
|
575
563
|
"img",
|
|
576
564
|
{
|
|
577
|
-
onWheel:
|
|
565
|
+
onWheel: dt,
|
|
578
566
|
ref: _,
|
|
579
|
-
className: Y(st, `${
|
|
580
|
-
[`${
|
|
567
|
+
className: Y(st, `${d}-img`, {
|
|
568
|
+
[`${d}-img-moving`]: O
|
|
581
569
|
}),
|
|
582
570
|
style: {
|
|
583
571
|
...it,
|
|
@@ -595,7 +583,7 @@ function mn(s, t) {
|
|
|
595
583
|
);
|
|
596
584
|
return (D == null ? void 0 : D(e)) ?? e;
|
|
597
585
|
};
|
|
598
|
-
return /* @__PURE__ */ i(
|
|
586
|
+
return /* @__PURE__ */ i(Jt, { visible: h, forceRender: !1, getContainer: ze, children: /* @__PURE__ */ i(
|
|
599
587
|
Ft,
|
|
600
588
|
{
|
|
601
589
|
...ee,
|
|
@@ -603,7 +591,7 @@ function mn(s, t) {
|
|
|
603
591
|
children: /* @__PURE__ */ V(
|
|
604
592
|
"div",
|
|
605
593
|
{
|
|
606
|
-
className:
|
|
594
|
+
className: p,
|
|
607
595
|
style: {
|
|
608
596
|
...b || {},
|
|
609
597
|
...lt ? {} : { zIndex: "inherit", position: "absolute" }
|
|
@@ -625,26 +613,26 @@ function mn(s, t) {
|
|
|
625
613
|
onExited: (e) => {
|
|
626
614
|
e && (e.parentNode.style.display = "", e.style.display = "none");
|
|
627
615
|
},
|
|
628
|
-
children: /* @__PURE__ */ i("div", { className: `${
|
|
616
|
+
children: /* @__PURE__ */ i("div", { className: `${d}-mask`, onClick: vt })
|
|
629
617
|
}
|
|
630
618
|
),
|
|
631
619
|
h && /* @__PURE__ */ V(
|
|
632
620
|
"div",
|
|
633
621
|
{
|
|
634
622
|
ref: S,
|
|
635
|
-
className: `${
|
|
623
|
+
className: `${d}-wrapper`,
|
|
636
624
|
onClick: De,
|
|
637
625
|
children: [
|
|
638
626
|
/* @__PURE__ */ V(
|
|
639
627
|
"div",
|
|
640
628
|
{
|
|
641
629
|
ref: et,
|
|
642
|
-
className: `${
|
|
630
|
+
className: `${d}-img-container`,
|
|
643
631
|
style: { transform: `scale(${g}, ${g})` },
|
|
644
632
|
onClick: De,
|
|
645
633
|
children: [
|
|
646
|
-
|
|
647
|
-
tt && /* @__PURE__ */ i("div", { className: `${
|
|
634
|
+
It(),
|
|
635
|
+
tt && /* @__PURE__ */ i("div", { className: `${d}-loading`, children: /* @__PURE__ */ i(Tt, {}) })
|
|
648
636
|
]
|
|
649
637
|
}
|
|
650
638
|
),
|
|
@@ -656,7 +644,7 @@ function mn(s, t) {
|
|
|
656
644
|
appear: !0,
|
|
657
645
|
classNames: "fadeImage",
|
|
658
646
|
unmountOnExit: !0,
|
|
659
|
-
children: /* @__PURE__ */ V("div", { className: `${
|
|
647
|
+
children: /* @__PURE__ */ V("div", { className: `${d}-scale-value`, children: [
|
|
660
648
|
(g * 100).toFixed(0),
|
|
661
649
|
"%"
|
|
662
650
|
] })
|
|
@@ -666,7 +654,7 @@ function mn(s, t) {
|
|
|
666
654
|
an,
|
|
667
655
|
{
|
|
668
656
|
prefixCls: x,
|
|
669
|
-
previewPrefixCls:
|
|
657
|
+
previewPrefixCls: d,
|
|
670
658
|
actions: L,
|
|
671
659
|
actionsLayout: R,
|
|
672
660
|
defaultActions: Ct,
|
|
@@ -676,7 +664,7 @@ function mn(s, t) {
|
|
|
676
664
|
f && /* @__PURE__ */ i(
|
|
677
665
|
"div",
|
|
678
666
|
{
|
|
679
|
-
className: `${
|
|
667
|
+
className: `${d}-close-btn`,
|
|
680
668
|
onClick: Oe,
|
|
681
669
|
children: /* @__PURE__ */ i(Be, {})
|
|
682
670
|
}
|
|
@@ -707,7 +695,7 @@ const Qe = Ne(
|
|
|
707
695
|
mn
|
|
708
696
|
);
|
|
709
697
|
Qe.displayName = "ImagePreview";
|
|
710
|
-
function
|
|
698
|
+
function dn(s, t) {
|
|
711
699
|
const {
|
|
712
700
|
children: o,
|
|
713
701
|
srcList: n,
|
|
@@ -726,11 +714,11 @@ function pn(s, t) {
|
|
|
726
714
|
}), f = Se(
|
|
727
715
|
() => n ? new Map(n.map((l, m) => [m, { url: l, preview: !0 }])) : null,
|
|
728
716
|
[n]
|
|
729
|
-
),
|
|
717
|
+
), k = Ut(), L = () => f ? new Map(f) : /* @__PURE__ */ new Map(), [R, C] = M(L()), P = U(), z = P.current || /* @__PURE__ */ new Map(), E = (l) => {
|
|
730
718
|
P.current = l(P.current);
|
|
731
719
|
};
|
|
732
720
|
A(() => {
|
|
733
|
-
|
|
721
|
+
k || C(L());
|
|
734
722
|
}, [f]);
|
|
735
723
|
const j = new Map(
|
|
736
724
|
Array.from(R).filter(([, { preview: l }]) => l).map(([l, { url: m }]) => [l, m])
|
|
@@ -738,26 +726,26 @@ function pn(s, t) {
|
|
|
738
726
|
value: u,
|
|
739
727
|
defaultValue: c
|
|
740
728
|
});
|
|
741
|
-
function J(l, m,
|
|
729
|
+
function J(l, m, I) {
|
|
742
730
|
return f || C(
|
|
743
731
|
(x) => new Map(x).set(l, {
|
|
744
732
|
url: m,
|
|
745
|
-
preview:
|
|
733
|
+
preview: I
|
|
746
734
|
})
|
|
747
735
|
), function() {
|
|
748
|
-
f || C((
|
|
749
|
-
const
|
|
750
|
-
return
|
|
736
|
+
f || C((d) => {
|
|
737
|
+
const p = new Map(d);
|
|
738
|
+
return p.delete(l) ? p : d;
|
|
751
739
|
});
|
|
752
740
|
};
|
|
753
741
|
}
|
|
754
742
|
function H(l, m) {
|
|
755
743
|
return E(
|
|
756
|
-
(
|
|
744
|
+
(I) => new Map(I).set(l, Lt(m) ? m : {})
|
|
757
745
|
), function() {
|
|
758
746
|
E((x) => {
|
|
759
|
-
const
|
|
760
|
-
return
|
|
747
|
+
const d = new Map(x);
|
|
748
|
+
return d.delete(l) ? d : x;
|
|
761
749
|
});
|
|
762
750
|
};
|
|
763
751
|
}
|
|
@@ -768,19 +756,19 @@ function pn(s, t) {
|
|
|
768
756
|
}
|
|
769
757
|
}));
|
|
770
758
|
const Q = (l, m) => {
|
|
771
|
-
const
|
|
772
|
-
b == null || b(l,
|
|
759
|
+
const I = Ze(m) ? T : m;
|
|
760
|
+
b == null || b(l, I), Z(l);
|
|
773
761
|
}, h = (l) => {
|
|
774
762
|
y == null || y(l), B(l);
|
|
775
763
|
}, se = (l) => {
|
|
776
764
|
let m = 0;
|
|
777
|
-
const
|
|
778
|
-
const
|
|
779
|
-
children:
|
|
780
|
-
}) :
|
|
781
|
-
return !We(x) && ie.Children.count(x) === 1 ?
|
|
765
|
+
const I = (x) => {
|
|
766
|
+
const d = ie.Children.map(x, (p) => p && p.props && p.type && p.type.displayName === "Image" ? ie.cloneElement(p, { _index: m++ }) : p && p.props && p.props.children ? ie.cloneElement(p, {
|
|
767
|
+
children: I(p.props.children)
|
|
768
|
+
}) : p);
|
|
769
|
+
return !We(x) && ie.Children.count(x) === 1 ? d[0] : d;
|
|
782
770
|
};
|
|
783
|
-
return
|
|
771
|
+
return I(l);
|
|
784
772
|
}, ee = () => {
|
|
785
773
|
const l = Array.from(j.values());
|
|
786
774
|
return l.length > 0 ? /* @__PURE__ */ i("div", { style: { display: "none" }, children: l.map((m) => /* @__PURE__ */ i("img", { src: m }, m)) }) : null;
|
|
@@ -818,12 +806,12 @@ function pn(s, t) {
|
|
|
818
806
|
}
|
|
819
807
|
);
|
|
820
808
|
}
|
|
821
|
-
const
|
|
822
|
-
|
|
809
|
+
const pn = Ne(dn);
|
|
810
|
+
pn.displayName = "ImagePreviewGroup";
|
|
823
811
|
export {
|
|
824
812
|
Qe as P,
|
|
825
813
|
on as T,
|
|
826
|
-
|
|
814
|
+
pn as a,
|
|
827
815
|
Ke as b,
|
|
828
816
|
un as u
|
|
829
817
|
};
|