@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/Calendar.js
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import { jsx as t, jsxs as L, Fragment as ae } from "react/jsx-runtime";
|
|
2
2
|
import Me from "lodash/merge";
|
|
3
3
|
import se, { useMemo as ie, useContext as be, useState as J } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { b as De } from "./chunk/DUxWiN2U.js";
|
|
5
5
|
import Re from "./hooks/useMergeProps.js";
|
|
6
|
-
import V from "
|
|
6
|
+
import { y as V } from "./chunk/Do1aMgY3.js";
|
|
7
7
|
import { getNow as O, methods as E, dayjs as le, getDayjsValue as B } from "./utils/dayjs.js";
|
|
8
8
|
import { pickDataAttributes as Ae } from "./utils/pick.js";
|
|
9
9
|
import { newArray as te } from "./utils/constant.js";
|
|
10
10
|
import { padStart as de } from "./utils/pad.js";
|
|
11
11
|
import K from "lodash/isArray";
|
|
12
|
-
import ce from "
|
|
13
|
-
import me from "@unicom-cloud/icons/IconUiRight";
|
|
12
|
+
import { a as ce, I as me } from "./chunk/D9TqtOhq.js";
|
|
14
13
|
import xe from "./Button.js";
|
|
15
14
|
import Le from "./hooks/useKeyboardEvent.js";
|
|
16
|
-
import { R as Ee } from "./chunk/
|
|
17
|
-
import { S as ne } from "./chunk/
|
|
18
|
-
import Pe from "
|
|
19
|
-
import Ye from "@unicom-cloud/icons/IconUiDoubleRight";
|
|
15
|
+
import { R as Ee } from "./chunk/BbYzi8M0.js";
|
|
16
|
+
import { S as ne } from "./chunk/BpwDupra.js";
|
|
17
|
+
import { I as Pe, a as Ye } from "./chunk/DPvnQJ-H.js";
|
|
20
18
|
function Ve(a) {
|
|
21
19
|
const {
|
|
22
20
|
prefixCls: e,
|
|
@@ -55,7 +53,7 @@ function he(a) {
|
|
|
55
53
|
return !i || !g ? !1 : o(l, i) || o(l, g) || l.isBetween(i, g, null, "[]");
|
|
56
54
|
}
|
|
57
55
|
return function(i, g) {
|
|
58
|
-
const p = _(f, 0), u = _(f, 1), y = _(d, 0), v = _(d, 1), w = !i.isPrev && !i.isNext,
|
|
56
|
+
const p = _(f, 0), u = _(f, 1), y = _(d, 0), v = _(d, 1), w = !i.isPrev && !i.isNext, $ = w && r, b = $ && p && o(i.time, p), D = $ && u && o(i.time, u), c = y && p && y.isBefore(p), k = u && v && v.isAfter(u), x = c && b || k && D;
|
|
59
57
|
let m = o(i.time, O());
|
|
60
58
|
return !r && s === "year" && (m = O().isSame(i.time, "date")), V(`${e}-cell`, {
|
|
61
59
|
[`${e}-cell-in-view`]: w,
|
|
@@ -63,11 +61,11 @@ function he(a) {
|
|
|
63
61
|
[`${e}-cell-selected`]: h && o(i.time, h),
|
|
64
62
|
[`${e}-cell-range-start`]: b,
|
|
65
63
|
[`${e}-cell-range-end`]: D,
|
|
66
|
-
[`${e}-cell-in-range`]:
|
|
64
|
+
[`${e}-cell-in-range`]: $ && n(i.time, p, u),
|
|
67
65
|
[`${e}-cell-in-range-near-hover`]: x,
|
|
68
|
-
[`${e}-cell-hover-range-start`]:
|
|
69
|
-
[`${e}-cell-hover-range-end`]:
|
|
70
|
-
[`${e}-cell-hover-in-range`]:
|
|
66
|
+
[`${e}-cell-hover-range-start`]: $ && y && o(i.time, y),
|
|
67
|
+
[`${e}-cell-hover-range-end`]: $ && v && o(i.time, v),
|
|
68
|
+
[`${e}-cell-hover-in-range`]: $ && n(i.time, y, v),
|
|
71
69
|
[`${e}-cell-disabled`]: g
|
|
72
70
|
});
|
|
73
71
|
};
|
|
@@ -129,13 +127,13 @@ function fe(a) {
|
|
|
129
127
|
dateInnerContent: y,
|
|
130
128
|
mergedPageShowDate: v,
|
|
131
129
|
dayStartOfWeek: w,
|
|
132
|
-
CALENDAR_LOCALE:
|
|
130
|
+
CALENDAR_LOCALE: $
|
|
133
131
|
} = a, b = v.year(), D = he({
|
|
134
132
|
...a,
|
|
135
133
|
isSameTime: (x, m) => x.isSame(m, "day")
|
|
136
134
|
});
|
|
137
135
|
function c(x) {
|
|
138
|
-
return x.map((m,
|
|
136
|
+
return x.map((m, I) => {
|
|
139
137
|
if (m.time) {
|
|
140
138
|
const M = typeof s == "function" && s(m.time), C = () => n(m.time, M), Y = o ? { onClick: C } : {}, P = o ? {} : { onClick: C };
|
|
141
139
|
return /* @__PURE__ */ t(
|
|
@@ -153,7 +151,7 @@ function fe(a) {
|
|
|
153
151
|
!l && i !== "year" && /* @__PURE__ */ t("div", { className: `${e}-date-content`, children: y == null ? void 0 : y(m.time) })
|
|
154
152
|
] })
|
|
155
153
|
},
|
|
156
|
-
|
|
154
|
+
I
|
|
157
155
|
);
|
|
158
156
|
}
|
|
159
157
|
if ("weekOfYear" in m) {
|
|
@@ -169,7 +167,7 @@ function fe(a) {
|
|
|
169
167
|
}),
|
|
170
168
|
children: /* @__PURE__ */ t("div", { className: `${e}-date`, children: /* @__PURE__ */ t("div", { className: `${e}-date-value`, children: m.weekOfYear }) })
|
|
171
169
|
},
|
|
172
|
-
|
|
170
|
+
I
|
|
173
171
|
);
|
|
174
172
|
}
|
|
175
173
|
});
|
|
@@ -185,7 +183,7 @@ function fe(a) {
|
|
|
185
183
|
prefixCls: e,
|
|
186
184
|
dayStartOfWeek: w,
|
|
187
185
|
isWeek: o,
|
|
188
|
-
CALENDAR_LOCALE:
|
|
186
|
+
CALENDAR_LOCALE: $,
|
|
189
187
|
panel: l,
|
|
190
188
|
innerMode: i
|
|
191
189
|
}
|
|
@@ -224,7 +222,7 @@ for (let a = 0; a < 3; a++)
|
|
|
224
222
|
const ye = Array(4);
|
|
225
223
|
for (let a = 0; a < 4; a++)
|
|
226
224
|
ye[a] = pe.slice(a * 3, 3 * (a + 1));
|
|
227
|
-
function
|
|
225
|
+
function Ie(a) {
|
|
228
226
|
const {
|
|
229
227
|
prefixCls: e,
|
|
230
228
|
mergedPageShowDate: h,
|
|
@@ -242,12 +240,12 @@ function Te(a) {
|
|
|
242
240
|
return /* @__PURE__ */ t("div", { className: `${e}-year`, children: p.map((u, y) => /* @__PURE__ */ t("div", { className: `${e}-year-row`, children: u.map((v) => {
|
|
243
241
|
const w = le(
|
|
244
242
|
`${g}-${de(v.value + 1, 2, "0")}-01`
|
|
245
|
-
),
|
|
243
|
+
), $ = typeof r == "function" && r(w), b = f ? { onClick: () => s(w, $) } : {};
|
|
246
244
|
return /* @__PURE__ */ t(
|
|
247
245
|
"div",
|
|
248
246
|
{
|
|
249
|
-
className: i({ ...v, time: w },
|
|
250
|
-
onMouseEnter: () => d == null ? void 0 : d(w,
|
|
247
|
+
className: i({ ...v, time: w }, $),
|
|
248
|
+
onMouseEnter: () => d == null ? void 0 : d(w, $),
|
|
251
249
|
children: o ? se.cloneElement(
|
|
252
250
|
o(w),
|
|
253
251
|
b
|
|
@@ -271,7 +269,7 @@ function Te(a) {
|
|
|
271
269
|
function oe(a) {
|
|
272
270
|
return (a == null ? void 0 : a.parentElement) || null;
|
|
273
271
|
}
|
|
274
|
-
function
|
|
272
|
+
function Te(a) {
|
|
275
273
|
const {
|
|
276
274
|
prefixCls: e,
|
|
277
275
|
changePageShowDate: h,
|
|
@@ -288,7 +286,7 @@ function We(a) {
|
|
|
288
286
|
} = a, u = Le(), y = K(p) ? p.map((c) => ({
|
|
289
287
|
label: r.view[c],
|
|
290
288
|
value: c
|
|
291
|
-
})) : [], v = l === "select", w = d.year(),
|
|
289
|
+
})) : [], v = l === "select", w = d.year(), $ = d.month() + 1, b = ie(() => {
|
|
292
290
|
const c = [w];
|
|
293
291
|
for (let k = 1; k <= 10; k++)
|
|
294
292
|
c.unshift(w - k);
|
|
@@ -315,7 +313,7 @@ function We(a) {
|
|
|
315
313
|
{
|
|
316
314
|
size: "small",
|
|
317
315
|
className: `${e}-header-value-month`,
|
|
318
|
-
value:
|
|
316
|
+
value: $,
|
|
319
317
|
options: D,
|
|
320
318
|
onChange: g,
|
|
321
319
|
getPopupContainer: oe
|
|
@@ -364,7 +362,7 @@ function We(a) {
|
|
|
364
362
|
) })
|
|
365
363
|
] });
|
|
366
364
|
}
|
|
367
|
-
function
|
|
365
|
+
function We(a) {
|
|
368
366
|
const {
|
|
369
367
|
prefixCls: e,
|
|
370
368
|
changePageShowDate: h,
|
|
@@ -443,46 +441,46 @@ function Be(a) {
|
|
|
443
441
|
value: y,
|
|
444
442
|
pageShowDate: v,
|
|
445
443
|
defaultValue: w,
|
|
446
|
-
mode:
|
|
444
|
+
mode: $,
|
|
447
445
|
defaultMode: b,
|
|
448
446
|
onChange: D,
|
|
449
447
|
onPanelChange: c,
|
|
450
448
|
headerRender: k,
|
|
451
449
|
headerType: x,
|
|
452
450
|
modes: m,
|
|
453
|
-
panelOperations:
|
|
451
|
+
panelOperations: I
|
|
454
452
|
} = r, M = Me(h.Calendar, i), C = e("calendar"), [Y, P] = J(
|
|
455
|
-
|
|
456
|
-
), S =
|
|
457
|
-
B(y || w,
|
|
458
|
-
), [we,
|
|
459
|
-
B(u,
|
|
460
|
-
), R = B(v,
|
|
461
|
-
function H(
|
|
462
|
-
ve(
|
|
453
|
+
$ || b
|
|
454
|
+
), S = $ || Y, T = He(S, l), [q, ve] = J(
|
|
455
|
+
B(y || w, T)
|
|
456
|
+
), [we, W] = J(
|
|
457
|
+
B(u, T) || q || O()
|
|
458
|
+
), R = B(v, T) || we, U = "value" in r ? B(y, T) : q, Q = ie(() => ue(r, R), [R.toString(), S, n]);
|
|
459
|
+
function H(N) {
|
|
460
|
+
ve(N), D == null || D(N), X(N);
|
|
463
461
|
}
|
|
464
|
-
function X(
|
|
465
|
-
|
|
462
|
+
function X(N) {
|
|
463
|
+
W(N), c == null || c(N);
|
|
466
464
|
}
|
|
467
|
-
function Z(
|
|
468
|
-
A || H(
|
|
465
|
+
function Z(N, A) {
|
|
466
|
+
A || H(N);
|
|
469
467
|
}
|
|
470
468
|
let G = "";
|
|
471
469
|
S === "month" ? G = M.formatMonth : S === "year" && (G = M.formatYear);
|
|
472
|
-
function
|
|
470
|
+
function $e(N, A) {
|
|
473
471
|
let F;
|
|
474
|
-
|
|
472
|
+
N === "prev" && (F = E.subtract(R, 1, A)), N === "next" && (F = E.add(R, 1, A)), W(F), c == null || c(F);
|
|
475
473
|
}
|
|
476
|
-
function
|
|
477
|
-
const A = E.set(R, "year",
|
|
478
|
-
|
|
474
|
+
function Ne(N) {
|
|
475
|
+
const A = E.set(R, "year", N);
|
|
476
|
+
W(A), c == null || c(A);
|
|
479
477
|
}
|
|
480
|
-
function Ce(
|
|
481
|
-
const A = E.set(R, "month",
|
|
482
|
-
|
|
478
|
+
function Ce(N) {
|
|
479
|
+
const A = E.set(R, "month", N - 1);
|
|
480
|
+
W(A), c == null || c(A);
|
|
483
481
|
}
|
|
484
|
-
function j(
|
|
485
|
-
P(
|
|
482
|
+
function j(N) {
|
|
483
|
+
P(N);
|
|
486
484
|
}
|
|
487
485
|
const Se = V(
|
|
488
486
|
C,
|
|
@@ -494,12 +492,12 @@ function Be(a) {
|
|
|
494
492
|
s
|
|
495
493
|
), ke = l ? { width: g } : {}, ee = {
|
|
496
494
|
prefixCls: C,
|
|
497
|
-
changePageShowDate:
|
|
495
|
+
changePageShowDate: $e,
|
|
498
496
|
headerValueFormat: G,
|
|
499
497
|
mergedPageShowDate: R,
|
|
500
498
|
modes: m,
|
|
501
499
|
innerMode: S,
|
|
502
|
-
panelOperations:
|
|
500
|
+
panelOperations: I
|
|
503
501
|
};
|
|
504
502
|
return /* @__PURE__ */ L(
|
|
505
503
|
"div",
|
|
@@ -514,15 +512,15 @@ function Be(a) {
|
|
|
514
512
|
onChangeMode: j,
|
|
515
513
|
onChange: H,
|
|
516
514
|
onChangePageDate: X
|
|
517
|
-
}) : l ? /* @__PURE__ */ t(
|
|
518
|
-
|
|
515
|
+
}) : l ? /* @__PURE__ */ t(We, { ...ee }) : /* @__PURE__ */ t(
|
|
516
|
+
Te,
|
|
519
517
|
{
|
|
520
518
|
...ee,
|
|
521
519
|
CALENDAR_LOCALE: M,
|
|
522
520
|
move: H,
|
|
523
521
|
innerMode: S,
|
|
524
522
|
changeMode: j,
|
|
525
|
-
onChangeYear:
|
|
523
|
+
onChangeYear: Ne,
|
|
526
524
|
onChangeMonth: Ce,
|
|
527
525
|
headerType: x
|
|
528
526
|
}
|
|
@@ -541,7 +539,7 @@ function Be(a) {
|
|
|
541
539
|
}
|
|
542
540
|
) }),
|
|
543
541
|
S === "year" && /* @__PURE__ */ t("div", { className: `${C}-body`, children: /* @__PURE__ */ t(
|
|
544
|
-
|
|
542
|
+
Ie,
|
|
545
543
|
{
|
|
546
544
|
...r,
|
|
547
545
|
prefixCls: C,
|
package/Card.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import h, { useContext as y } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { b as x } from "./chunk/DUxWiN2U.js";
|
|
4
4
|
import q from "./hooks/useMergeProps.js";
|
|
5
5
|
import A from "./Spin.js";
|
|
6
|
-
import p from "
|
|
6
|
+
import { y as p } from "./chunk/Do1aMgY3.js";
|
|
7
7
|
function B(c, m) {
|
|
8
8
|
const { children: f, style: i, className: r, hoverable: l } = c, { getPrefixCls: n } = y(x), o = n("card-grid");
|
|
9
9
|
return /* @__PURE__ */ a(
|
|
@@ -23,20 +23,20 @@ function B(c, m) {
|
|
|
23
23
|
const g = h.forwardRef(B);
|
|
24
24
|
g.displayName = "CardGrid";
|
|
25
25
|
function D(c, m) {
|
|
26
|
-
const { className: f, title: i, avatar: r, description: l, actionList: n, ...o } = c, { getPrefixCls:
|
|
26
|
+
const { className: f, title: i, avatar: r, description: l, actionList: n, ...o } = c, { getPrefixCls: u } = y(x), t = u("card-meta"), $ = p(t, f);
|
|
27
27
|
return /* @__PURE__ */ d("div", { ...o, ref: m, className: $, children: [
|
|
28
|
-
i || l ? /* @__PURE__ */ d("div", { className: `${
|
|
29
|
-
i && /* @__PURE__ */ a("div", { className: `${
|
|
30
|
-
l && /* @__PURE__ */ a("div", { className: `${
|
|
28
|
+
i || l ? /* @__PURE__ */ d("div", { className: `${t}-content`, children: [
|
|
29
|
+
i && /* @__PURE__ */ a("div", { className: `${t}-title`, children: i }),
|
|
30
|
+
l && /* @__PURE__ */ a("div", { className: `${t}-description`, children: l })
|
|
31
31
|
] }) : null,
|
|
32
32
|
r || n ? /* @__PURE__ */ d(
|
|
33
33
|
"div",
|
|
34
34
|
{
|
|
35
|
-
className: p(`${
|
|
36
|
-
[`${
|
|
35
|
+
className: p(`${t}-footer `, {
|
|
36
|
+
[`${t}-footer-only-actions`]: !r
|
|
37
37
|
}),
|
|
38
38
|
children: [
|
|
39
|
-
r ? /* @__PURE__ */ a("div", { className: `${
|
|
39
|
+
r ? /* @__PURE__ */ a("div", { className: `${t}-avatar`, children: r }) : null,
|
|
40
40
|
n
|
|
41
41
|
]
|
|
42
42
|
}
|
|
@@ -56,37 +56,37 @@ function I(c, m) {
|
|
|
56
56
|
r == null ? void 0 : r.Card
|
|
57
57
|
), {
|
|
58
58
|
className: o,
|
|
59
|
-
children:
|
|
60
|
-
bordered:
|
|
59
|
+
children: u,
|
|
60
|
+
bordered: t,
|
|
61
61
|
loading: $,
|
|
62
62
|
hoverable: z,
|
|
63
63
|
size: S,
|
|
64
|
-
title:
|
|
65
|
-
extra:
|
|
64
|
+
title: C,
|
|
65
|
+
extra: v,
|
|
66
66
|
cover: P,
|
|
67
|
-
actions:
|
|
67
|
+
actions: N,
|
|
68
68
|
headerStyle: j,
|
|
69
69
|
bodyStyle: E,
|
|
70
70
|
...L
|
|
71
|
-
} = n, e = f("card"), R =
|
|
71
|
+
} = n, e = f("card"), R = N && N.length ? /* @__PURE__ */ a("div", { className: `${e}-actions`, children: /* @__PURE__ */ a("div", { className: `${e}-actions-right`, children: N.map((s, k) => /* @__PURE__ */ a(
|
|
72
72
|
"span",
|
|
73
73
|
{
|
|
74
74
|
className: `${e}-actions-item`,
|
|
75
|
-
children:
|
|
75
|
+
children: s
|
|
76
76
|
},
|
|
77
77
|
`action-${k}`
|
|
78
78
|
)) }) }) : null;
|
|
79
79
|
let w = !1, G = !1;
|
|
80
80
|
const F = h.Children.map(
|
|
81
|
-
|
|
82
|
-
(
|
|
83
|
-
if (
|
|
84
|
-
if (
|
|
81
|
+
u,
|
|
82
|
+
(s) => {
|
|
83
|
+
if (s && s.type) {
|
|
84
|
+
if (s.type === g)
|
|
85
85
|
w = !0;
|
|
86
|
-
else if (
|
|
87
|
-
return G = !0, h.cloneElement(
|
|
86
|
+
else if (s.type === b)
|
|
87
|
+
return G = !0, h.cloneElement(s, { actionList: R });
|
|
88
88
|
}
|
|
89
|
-
return
|
|
89
|
+
return s;
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
92
|
return /* @__PURE__ */ d(
|
|
@@ -99,7 +99,7 @@ function I(c, m) {
|
|
|
99
99
|
`${e}-size-${S}`,
|
|
100
100
|
{
|
|
101
101
|
[`${e}-loading`]: $,
|
|
102
|
-
[`${e}-bordered`]:
|
|
102
|
+
[`${e}-bordered`]: t,
|
|
103
103
|
[`${e}-hoverable`]: z,
|
|
104
104
|
[`${e}-contain-grid`]: w,
|
|
105
105
|
[`${e}-rtl`]: l
|
|
@@ -107,16 +107,16 @@ function I(c, m) {
|
|
|
107
107
|
o
|
|
108
108
|
),
|
|
109
109
|
children: [
|
|
110
|
-
|
|
110
|
+
C || v ? /* @__PURE__ */ d(
|
|
111
111
|
"div",
|
|
112
112
|
{
|
|
113
113
|
className: p(`${e}-header`, {
|
|
114
|
-
[`${e}-header-no-title`]: !
|
|
114
|
+
[`${e}-header-no-title`]: !C
|
|
115
115
|
}),
|
|
116
116
|
style: j,
|
|
117
117
|
children: [
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
C && /* @__PURE__ */ a("div", { className: `${e}-header-title`, children: C }),
|
|
119
|
+
v && /* @__PURE__ */ a("div", { className: `${e}-header-extra`, children: v })
|
|
120
120
|
]
|
|
121
121
|
}
|
|
122
122
|
) : null,
|
package/Carousel.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { jsx as s, jsxs as oe } from "react/jsx-runtime";
|
|
2
|
-
import W, { useContext as G, useRef as O, useState as S, useEffect as z, useImperativeHandle as
|
|
3
|
-
import {
|
|
4
|
-
import { useInterval as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import W, { useContext as G, useRef as O, useState as S, useEffect as z, useImperativeHandle as Ce } from "react";
|
|
3
|
+
import { b as J } from "./chunk/DUxWiN2U.js";
|
|
4
|
+
import { useInterval as $e } from "./hooks/useInterval.js";
|
|
5
|
+
import Ne from "./hooks/useMergeProps.js";
|
|
6
|
+
import { y as I } from "./chunk/Do1aMgY3.js";
|
|
7
7
|
import we from "./utils/omit.js";
|
|
8
8
|
import Pe from "./utils/warning.js";
|
|
9
|
-
import be from "
|
|
10
|
-
import Te from "
|
|
11
|
-
import
|
|
12
|
-
import We from "@unicom-cloud/icons/IconUiUp";
|
|
9
|
+
import { I as be } from "./chunk/1mEO29GP.js";
|
|
10
|
+
import { a as Te, I as Se } from "./chunk/D9TqtOhq.js";
|
|
11
|
+
import { I as We } from "./chunk/C2fspJbE.js";
|
|
13
12
|
import Ae from "./hooks/useKeyboardEvent.js";
|
|
14
13
|
function Re(A, P) {
|
|
15
14
|
const {
|
|
@@ -19,14 +18,14 @@ function Re(A, P) {
|
|
|
19
18
|
prev: l,
|
|
20
19
|
next: p,
|
|
21
20
|
icons: u
|
|
22
|
-
} = A, b = Ae(), { getPrefixCls: m } = G(J), r = m("carousel"),
|
|
21
|
+
} = A, b = Ae(), { getPrefixCls: m } = G(J), r = m("carousel"), C = I(
|
|
23
22
|
`${r}-arrow`,
|
|
24
23
|
{
|
|
25
24
|
[`${r}-arrow-hover`]: g === "hover"
|
|
26
25
|
},
|
|
27
26
|
R
|
|
28
|
-
),
|
|
29
|
-
return /* @__PURE__ */ oe("div", { ref: P, className:
|
|
27
|
+
), $ = u && Object.prototype.hasOwnProperty.call(u, "prev") ? u.prev : c === "horizontal" ? /* @__PURE__ */ s(Te, {}) : /* @__PURE__ */ s(We, {}), n = u && Object.prototype.hasOwnProperty.call(u, "next") ? u.next : c === "horizontal" ? /* @__PURE__ */ s(Se, {}) : /* @__PURE__ */ s(be, {});
|
|
28
|
+
return /* @__PURE__ */ oe("div", { ref: P, className: C, children: [
|
|
30
29
|
/* @__PURE__ */ s(
|
|
31
30
|
"div",
|
|
32
31
|
{
|
|
@@ -35,7 +34,7 @@ function Re(A, P) {
|
|
|
35
34
|
role: "button",
|
|
36
35
|
tabIndex: 0,
|
|
37
36
|
...b({ onPressEnter: l }),
|
|
38
|
-
children:
|
|
37
|
+
children: $
|
|
39
38
|
}
|
|
40
39
|
),
|
|
41
40
|
/* @__PURE__ */ s(
|
|
@@ -63,36 +62,36 @@ function Me(A, P) {
|
|
|
63
62
|
position: u = "bottom",
|
|
64
63
|
trigger: b = "click",
|
|
65
64
|
onSelectIndex: m
|
|
66
|
-
} = A, r = R("carousel-indicator"),
|
|
65
|
+
} = A, r = R("carousel-indicator"), C = [];
|
|
67
66
|
if (g === "slider") {
|
|
68
67
|
const n = 100 / l;
|
|
69
|
-
|
|
68
|
+
C.push(
|
|
70
69
|
/* @__PURE__ */ s(
|
|
71
70
|
"span",
|
|
72
71
|
{
|
|
73
72
|
style: { width: `${n}%`, left: `${p * n}%` },
|
|
74
|
-
className:
|
|
73
|
+
className: I(`${r}-item`, `${r}-item-active`)
|
|
75
74
|
},
|
|
76
75
|
0
|
|
77
76
|
)
|
|
78
77
|
);
|
|
79
78
|
} else
|
|
80
79
|
for (let n = 0; n < l; n++)
|
|
81
|
-
|
|
80
|
+
C.push(
|
|
82
81
|
/* @__PURE__ */ s(
|
|
83
82
|
"span",
|
|
84
83
|
{
|
|
85
84
|
"data-index": n,
|
|
86
|
-
className:
|
|
85
|
+
className: I(`${r}-item`, {
|
|
87
86
|
[`${r}-item-active`]: n === p
|
|
88
87
|
})
|
|
89
88
|
},
|
|
90
89
|
n
|
|
91
90
|
)
|
|
92
91
|
);
|
|
93
|
-
const
|
|
92
|
+
const $ = {
|
|
94
93
|
ref: P,
|
|
95
|
-
className:
|
|
94
|
+
className: I(
|
|
96
95
|
r,
|
|
97
96
|
`${r}-${g}`,
|
|
98
97
|
`${r}-${u}`,
|
|
@@ -110,7 +109,7 @@ function Me(A, P) {
|
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
111
|
};
|
|
113
|
-
return /* @__PURE__ */ s("div", {
|
|
112
|
+
return /* @__PURE__ */ s("div", { ...$, children: C });
|
|
114
113
|
}
|
|
115
114
|
const je = W.forwardRef(Me), De = 3e3, ke = {
|
|
116
115
|
animation: "slide",
|
|
@@ -123,7 +122,7 @@ const je = W.forwardRef(Me), De = 3e3, ke = {
|
|
|
123
122
|
timingFunc: "cubic-bezier(0.34, 0.69, 0.1, 1)"
|
|
124
123
|
};
|
|
125
124
|
function Le(A, P) {
|
|
126
|
-
const { getPrefixCls: R, componentConfig: c, rtl: g } = G(J), l =
|
|
125
|
+
const { getPrefixCls: R, componentConfig: c, rtl: g } = G(J), l = Ne(
|
|
127
126
|
A,
|
|
128
127
|
ke,
|
|
129
128
|
c == null ? void 0 : c.Carousel
|
|
@@ -133,8 +132,8 @@ function Le(A, P) {
|
|
|
133
132
|
children: b,
|
|
134
133
|
currentIndex: m,
|
|
135
134
|
animation: r,
|
|
136
|
-
trigger:
|
|
137
|
-
direction:
|
|
135
|
+
trigger: C,
|
|
136
|
+
direction: $,
|
|
138
137
|
moveSpeed: n,
|
|
139
138
|
timingFunc: h,
|
|
140
139
|
indicatorType: D,
|
|
@@ -166,23 +165,23 @@ function Le(A, P) {
|
|
|
166
165
|
indicatorWrapper: null
|
|
167
166
|
}), f = typeof m == "number" ? M(m) : F, K = M(f - 1), Y = M(f + 1), ge = typeof d == "object" && d.interval ? d.interval : De;
|
|
168
167
|
z(() => () => U.current && clearTimeout(U.current), []), z(() => {
|
|
169
|
-
|
|
168
|
+
N({
|
|
170
169
|
targetIndex: f
|
|
171
170
|
});
|
|
172
171
|
}, [f]);
|
|
173
|
-
const he =
|
|
172
|
+
const he = $e(
|
|
174
173
|
() => {
|
|
175
|
-
|
|
174
|
+
N({
|
|
176
175
|
targetIndex: Y
|
|
177
176
|
});
|
|
178
177
|
},
|
|
179
178
|
d && !me && T > 1 ? ge : null
|
|
180
179
|
);
|
|
181
|
-
|
|
180
|
+
Ce(ae, () => ({
|
|
182
181
|
dom: v.current,
|
|
183
182
|
getRootDOMNode: () => v.current,
|
|
184
183
|
goto: ({ index: e, isNegative: t, isManual: o, resetAutoPlayInterval: a }) => {
|
|
185
|
-
|
|
184
|
+
N({
|
|
186
185
|
targetIndex: M(e),
|
|
187
186
|
isNegative: t,
|
|
188
187
|
isManual: o,
|
|
@@ -194,7 +193,7 @@ function Le(A, P) {
|
|
|
194
193
|
const t = +e;
|
|
195
194
|
return typeof t == "number" && !isNaN(t) ? (t + T) % T : e;
|
|
196
195
|
}
|
|
197
|
-
function
|
|
196
|
+
function N({
|
|
198
197
|
targetIndex: e,
|
|
199
198
|
isNegative: t = !1,
|
|
200
199
|
isManual: o = !1,
|
|
@@ -210,7 +209,7 @@ function Le(A, P) {
|
|
|
210
209
|
const e = E.current.children[0];
|
|
211
210
|
if (!e)
|
|
212
211
|
return;
|
|
213
|
-
if (
|
|
212
|
+
if ($ === "horizontal") {
|
|
214
213
|
const t = E.current.clientWidth, o = e.clientWidth, a = (t - o) / 2, x = 200, y = t / 2, w = o, j = y + 50 >= w ? x * 4 : x * y / (w - y);
|
|
215
214
|
_({
|
|
216
215
|
sliderWrapper: {
|
|
@@ -242,7 +241,7 @@ function Le(A, P) {
|
|
|
242
241
|
indicatorWrapper: null
|
|
243
242
|
});
|
|
244
243
|
}
|
|
245
|
-
const i = R("carousel"), xe =
|
|
244
|
+
const i = R("carousel"), xe = I(
|
|
246
245
|
i,
|
|
247
246
|
`${i}-indicator-position-${k}`,
|
|
248
247
|
{
|
|
@@ -257,12 +256,12 @@ function Le(A, P) {
|
|
|
257
256
|
} : null
|
|
258
257
|
);
|
|
259
258
|
let [Z, q] = [
|
|
260
|
-
() =>
|
|
259
|
+
() => N({
|
|
261
260
|
targetIndex: K,
|
|
262
261
|
isNegative: !0,
|
|
263
262
|
isManual: !0
|
|
264
263
|
}),
|
|
265
|
-
() =>
|
|
264
|
+
() => N({
|
|
266
265
|
targetIndex: Y,
|
|
267
266
|
isManual: !0
|
|
268
267
|
})
|
|
@@ -289,9 +288,9 @@ function Le(A, P) {
|
|
|
289
288
|
{
|
|
290
289
|
ref: E,
|
|
291
290
|
style: re.sliderWrapper,
|
|
292
|
-
className:
|
|
291
|
+
className: I(
|
|
293
292
|
`${i}-${r}`,
|
|
294
|
-
`${i}-${
|
|
293
|
+
`${i}-${$}`,
|
|
295
294
|
{
|
|
296
295
|
[`${i}-negative`]: V === "negative"
|
|
297
296
|
}
|
|
@@ -316,15 +315,15 @@ function Le(A, P) {
|
|
|
316
315
|
},
|
|
317
316
|
w
|
|
318
317
|
),
|
|
319
|
-
className:
|
|
318
|
+
className: I(j, {
|
|
320
319
|
[`${i}-item-prev`]: a,
|
|
321
320
|
[`${i}-item-next`]: x,
|
|
322
321
|
[`${i}-item-current`]: o,
|
|
323
322
|
[`${i}-item-slide-in`]: r === "slide" && V && X && o,
|
|
324
323
|
[`${i}-item-slide-out`]: r === "slide" && V && X && t === de
|
|
325
324
|
}),
|
|
326
|
-
onClick: (
|
|
327
|
-
B == null || B(
|
|
325
|
+
onClick: (Ie) => {
|
|
326
|
+
B == null || B(Ie), N({
|
|
328
327
|
targetIndex: t,
|
|
329
328
|
isNegative: t === K,
|
|
330
329
|
isManual: !0
|
|
@@ -338,7 +337,7 @@ function Le(A, P) {
|
|
|
338
337
|
"div",
|
|
339
338
|
{
|
|
340
339
|
style: re.indicatorWrapper,
|
|
341
|
-
className:
|
|
340
|
+
className: I(
|
|
342
341
|
`${i}-indicator-wrapper`,
|
|
343
342
|
`${i}-indicator-wrapper-${k}`
|
|
344
343
|
),
|
|
@@ -350,8 +349,8 @@ function Le(A, P) {
|
|
|
350
349
|
count: T,
|
|
351
350
|
activeIndex: f,
|
|
352
351
|
position: k,
|
|
353
|
-
trigger:
|
|
354
|
-
onSelectIndex: (e) =>
|
|
352
|
+
trigger: C,
|
|
353
|
+
onSelectIndex: (e) => N({
|
|
355
354
|
targetIndex: e,
|
|
356
355
|
isNegative: e < f,
|
|
357
356
|
isManual: !0
|
|
@@ -364,7 +363,7 @@ function Le(A, P) {
|
|
|
364
363
|
Ee,
|
|
365
364
|
{
|
|
366
365
|
className: se,
|
|
367
|
-
direction:
|
|
366
|
+
direction: $,
|
|
368
367
|
showArrow: Q,
|
|
369
368
|
icons: le,
|
|
370
369
|
prev: Z,
|
package/Cascader.js
CHANGED
package/Checkbox.js
CHANGED
package/Collapse.js
CHANGED