@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
package/Tabs.js
CHANGED
package/Tag.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsx as c, jsxs as T, Fragment as G } from "react/jsx-runtime";
|
|
2
|
-
import J from "
|
|
3
|
-
import Q from "@unicom-cloud/icons/IconUiLoading";
|
|
2
|
+
import { I as J, e as Q } from "./chunk/B45v5S9k.js";
|
|
4
3
|
import b from "lodash/isPlainObject";
|
|
5
4
|
import { forwardRef as W, useContext as X, useState as v } from "react";
|
|
6
|
-
import {
|
|
5
|
+
import { b as Y, I as Z } from "./chunk/DUxWiN2U.js";
|
|
7
6
|
import ee from "./hooks/useKeyboardEvent.js";
|
|
8
7
|
import oe from "./hooks/useMergeProps.js";
|
|
9
8
|
import ne from "./Popconfirm.js";
|
|
10
|
-
import re from "
|
|
9
|
+
import { y as re } from "./chunk/Do1aMgY3.js";
|
|
11
10
|
import ie from "./utils/omit.js";
|
|
12
11
|
const te = [
|
|
13
12
|
"red",
|
|
@@ -39,32 +38,32 @@ function se(_, j) {
|
|
|
39
38
|
closable: e,
|
|
40
39
|
checkable: d,
|
|
41
40
|
defaultChecked: K,
|
|
42
|
-
size:
|
|
41
|
+
size: y,
|
|
43
42
|
onClose: m,
|
|
44
43
|
onCheck: f,
|
|
45
|
-
icon:
|
|
44
|
+
icon: I,
|
|
46
45
|
closeIcon: p,
|
|
47
46
|
bordered: R,
|
|
48
47
|
__closeIconProps: U,
|
|
49
48
|
...V
|
|
50
|
-
} = i, o = z("tag"), [q,
|
|
49
|
+
} = i, o = z("tag"), [q, N] = v(
|
|
51
50
|
"visible" in i ? i.visible : !0
|
|
52
51
|
), [F, M] = v(
|
|
53
52
|
"checked" in i ? i.checked : K
|
|
54
|
-
), [h, g] = v(),
|
|
53
|
+
), [h, g] = v(), P = "checked" in i ? i.checked : F, A = "visible" in i ? i.visible : q;
|
|
55
54
|
function u(n) {
|
|
56
55
|
const r = m == null ? void 0 : m(n);
|
|
57
56
|
r && r.then ? (g(!0), r.then(() => {
|
|
58
|
-
g(!1),
|
|
57
|
+
g(!1), N(!1);
|
|
59
58
|
}).catch(() => {
|
|
60
59
|
g(!1);
|
|
61
|
-
})) :
|
|
60
|
+
})) : N(!1);
|
|
62
61
|
}
|
|
63
62
|
function B() {
|
|
64
|
-
const n = !
|
|
63
|
+
const n = !P;
|
|
65
64
|
"checked" in i || M(n), f == null || f(n);
|
|
66
65
|
}
|
|
67
|
-
const a = t && te.indexOf(t) !== -1 ? t : "", k = d ?
|
|
66
|
+
const a = t && te.indexOf(t) !== -1 ? t : "", k = d ? P : !0, D = re(
|
|
68
67
|
o,
|
|
69
68
|
{
|
|
70
69
|
[`${o}-loading`]: h,
|
|
@@ -72,7 +71,7 @@ function se(_, j) {
|
|
|
72
71
|
[`${o}-${a}`]: a,
|
|
73
72
|
[`${o}-checkable`]: d,
|
|
74
73
|
[`${o}-checked`]: k,
|
|
75
|
-
[`${o}-size-${
|
|
74
|
+
[`${o}-size-${y}`]: y,
|
|
76
75
|
[`${o}-bordered`]: R,
|
|
77
76
|
[`${o}-custom-color`]: k && t && !a,
|
|
78
77
|
[`${o}-rtl`]: H
|
|
@@ -123,7 +122,7 @@ function se(_, j) {
|
|
|
123
122
|
children: $
|
|
124
123
|
}
|
|
125
124
|
)), /* @__PURE__ */ T("div", { ref: j, style: C, className: D, ...O, children: [
|
|
126
|
-
|
|
125
|
+
I && /* @__PURE__ */ c("span", { className: `${o}-icon`, children: I }),
|
|
127
126
|
/* @__PURE__ */ c("span", { className: `${o}-content`, children: x }),
|
|
128
127
|
!!e && !h && p !== null && $,
|
|
129
128
|
h && /* @__PURE__ */ c("span", { className: `${o}-loading-icon`, children: /* @__PURE__ */ c(Q, {}) })
|
package/TimePicker.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import Re from "
|
|
2
|
+
import { I as Re } from "./chunk/B1S1OEw6.js";
|
|
3
3
|
import { isDayjs as L } from "dayjs";
|
|
4
4
|
import p from "lodash/isArray";
|
|
5
5
|
import He, { useContext as pe, useState as z, useRef as ze } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
6
|
+
import { b as Ae } from "./chunk/DUxWiN2U.js";
|
|
7
|
+
import Oe from "./hooks/useMergeProps.js";
|
|
8
8
|
import ce from "./hooks/usePrevious.js";
|
|
9
|
-
import
|
|
10
|
-
import { a as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
9
|
+
import Ee from "./hooks/useUpdateEffect.js";
|
|
10
|
+
import { a as Fe, I as Ne } from "./chunk/BuEC_zcc.js";
|
|
11
|
+
import Ue from "./Trigger.js";
|
|
12
|
+
import { y as $e } from "./chunk/Do1aMgY3.js";
|
|
13
13
|
import { getDayjsValue as B, toLocal as d, toTimezone as X, isValidTimeString as Q, getSortedDayjsArray as Be, isDayjsArrayChange as Le, isDayjsChange as Me } from "./utils/dayjs.js";
|
|
14
14
|
import { pickDataAttributes as We } from "./utils/pick.js";
|
|
15
|
-
import { P as me, g as _e, T as de } from "./chunk/
|
|
15
|
+
import { P as me, g as _e, T as de } from "./chunk/Bv8ZRDFt.js";
|
|
16
16
|
import qe from "./utils/omit.js";
|
|
17
17
|
function Ge(h) {
|
|
18
18
|
return h.format || "HH:mm:ss";
|
|
@@ -26,9 +26,9 @@ const fe = {
|
|
|
26
26
|
scrollSticky: !0
|
|
27
27
|
}, Je = { bottom: 4 }, Ke = (h) => {
|
|
28
28
|
var se, ae;
|
|
29
|
-
const { locale: u, getPrefixCls: v, componentConfig: l, rtl:
|
|
30
|
-
|
|
31
|
-
const t =
|
|
29
|
+
const { locale: u, getPrefixCls: v, componentConfig: l, rtl: b } = pe(Ae);
|
|
30
|
+
b && (fe.position = "br");
|
|
31
|
+
const t = Oe(
|
|
32
32
|
h,
|
|
33
33
|
fe,
|
|
34
34
|
l == null ? void 0 : l.TimePicker
|
|
@@ -36,10 +36,10 @@ const fe = {
|
|
|
36
36
|
allowClear: A = !0,
|
|
37
37
|
className: f,
|
|
38
38
|
disableConfirm: M,
|
|
39
|
-
style:
|
|
40
|
-
placeholder:
|
|
41
|
-
getPopupContainer:
|
|
42
|
-
disabled:
|
|
39
|
+
style: x,
|
|
40
|
+
placeholder: y,
|
|
41
|
+
getPopupContainer: O,
|
|
42
|
+
disabled: T,
|
|
43
43
|
position: W,
|
|
44
44
|
isRangePicker: g,
|
|
45
45
|
picker: _,
|
|
@@ -57,38 +57,38 @@ const fe = {
|
|
|
57
57
|
utcOffset: n,
|
|
58
58
|
timezone: r
|
|
59
59
|
} = t, a = Ge(t), Ce = v("timepicker");
|
|
60
|
-
function
|
|
60
|
+
function Ie() {
|
|
61
61
|
let e;
|
|
62
62
|
return t.value ? e = B(t.value, a, n, r) : t.defaultValue && (e = B(t.defaultValue, a, n, r)), e;
|
|
63
63
|
}
|
|
64
|
-
const [ee, oe] = z(!1), [C, te] = z(
|
|
65
|
-
|
|
66
|
-
if (C && (
|
|
67
|
-
const e = p(C) ? C.map((c) => d(c,
|
|
64
|
+
const [ee, oe] = z(!1), [C, te] = z(Ie()), [i, j] = z(), [R, I] = z(), [E, ke] = z(0), V = "value" in t ? B(P, a, n, r) : C, q = "popupVisible" in t ? t.popupVisible : ee, F = ce(n), N = ce(r);
|
|
65
|
+
Ee(() => {
|
|
66
|
+
if (C && (F !== n || r !== N)) {
|
|
67
|
+
const e = p(C) ? C.map((c) => d(c, F, N)) : d(C, F, N), o = p(e) ? e.map((c) => X(c, n, r)) : X(e, n, r);
|
|
68
68
|
te(o);
|
|
69
69
|
}
|
|
70
|
-
}, [n,
|
|
70
|
+
}, [n, F, r, N]);
|
|
71
71
|
const G = ze(null);
|
|
72
72
|
function J(e) {
|
|
73
73
|
var o, c;
|
|
74
74
|
(c = (o = G.current) == null ? void 0 : o.focus) == null || c.call(o, e);
|
|
75
75
|
}
|
|
76
76
|
function K(e) {
|
|
77
|
-
|
|
77
|
+
ke(e), setTimeout(() => J(e));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function be(e) {
|
|
80
80
|
e ? H(e, () => {
|
|
81
81
|
setTimeout(() => J());
|
|
82
82
|
}) : H(!1);
|
|
83
83
|
}
|
|
84
84
|
function H(e, o) {
|
|
85
|
-
oe(e),
|
|
85
|
+
oe(e), I(void 0), o == null || o(), e || j(void 0);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function U(e) {
|
|
88
88
|
const o = g && ve && p(e) ? Be(e.map((c) => _e(c))) : e;
|
|
89
|
-
te(o), j(void 0),
|
|
89
|
+
te(o), j(void 0), I(void 0), xe(o), M || H(!1);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function xe(e) {
|
|
92
92
|
p(e) && Le(V, e) && (s == null || s(
|
|
93
93
|
e.map((o) => d(o, n, r).format(a)),
|
|
94
94
|
e.map((o) => d(o, n, r))
|
|
@@ -102,20 +102,20 @@ const fe = {
|
|
|
102
102
|
return /* @__PURE__ */ m(
|
|
103
103
|
"div",
|
|
104
104
|
{
|
|
105
|
-
className:
|
|
106
|
-
style: e ?
|
|
105
|
+
className: $e(`${Ce}-container`, e ? f : ""),
|
|
106
|
+
style: e ? x : {},
|
|
107
107
|
onClick: () => J(),
|
|
108
108
|
children: He.cloneElement(_, {
|
|
109
109
|
...t,
|
|
110
110
|
format: a,
|
|
111
111
|
inputValue: R,
|
|
112
|
-
setInputValue:
|
|
113
|
-
onConfirmValue:
|
|
112
|
+
setInputValue: I,
|
|
113
|
+
onConfirmValue: U,
|
|
114
114
|
setValueShow: j,
|
|
115
115
|
valueShow: o,
|
|
116
116
|
value: V,
|
|
117
117
|
popupVisible: q,
|
|
118
|
-
focusedInputIndex:
|
|
118
|
+
focusedInputIndex: E,
|
|
119
119
|
changeFocusedInputIndex: K
|
|
120
120
|
})
|
|
121
121
|
}
|
|
@@ -123,48 +123,48 @@ const fe = {
|
|
|
123
123
|
}
|
|
124
124
|
function ne(e) {
|
|
125
125
|
const o = e.target.value;
|
|
126
|
-
ee || oe(!0),
|
|
126
|
+
ee || oe(!0), I(o), ye(o);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function ye(e) {
|
|
129
129
|
var c, ue;
|
|
130
130
|
const o = B(e, a);
|
|
131
131
|
if (g) {
|
|
132
|
-
const
|
|
132
|
+
const k = [
|
|
133
133
|
...p(i) ? i : C || []
|
|
134
134
|
];
|
|
135
135
|
if (Q(e, a)) {
|
|
136
|
-
|
|
137
|
-
const le =
|
|
138
|
-
(
|
|
136
|
+
k[E] = o;
|
|
137
|
+
const le = k.map(
|
|
138
|
+
($) => d($, n, r)
|
|
139
139
|
);
|
|
140
140
|
(c = t.onSelect) == null || c.call(
|
|
141
141
|
t,
|
|
142
|
-
le.map((
|
|
142
|
+
le.map(($) => $ && $.format(a)),
|
|
143
143
|
le
|
|
144
|
-
), j(
|
|
144
|
+
), j(k), I(void 0);
|
|
145
145
|
}
|
|
146
146
|
} else if (Q(e, a)) {
|
|
147
|
-
const
|
|
148
|
-
(ue = t.onSelect) == null || ue.call(t,
|
|
147
|
+
const k = d(o, n, r);
|
|
148
|
+
(ue = t.onSelect) == null || ue.call(t, k.format(a), k), j(o), I(void 0);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
g ? p(i) && i.length ? R && !Q(R, a) ? H(!1) : i[0] === void 0 || i[1] === void 0 ? K(
|
|
151
|
+
function Te() {
|
|
152
|
+
g ? p(i) && i.length ? R && !Q(R, a) ? H(!1) : i[0] === void 0 || i[1] === void 0 ? K(E === 0 ? 1 : 0) : i.length === 2 && U(i) : H(!1) : U(i || V);
|
|
153
153
|
}
|
|
154
154
|
function Se(e) {
|
|
155
155
|
var o;
|
|
156
|
-
e.stopPropagation(),
|
|
156
|
+
e.stopPropagation(), U(void 0), s == null || s(void 0, void 0), (o = t.onClear) == null || o.call(t);
|
|
157
157
|
}
|
|
158
|
-
const we = g && p(
|
|
159
|
-
style:
|
|
158
|
+
const we = g && p(y) ? y : (se = u == null ? void 0 : u.TimePicker) == null ? void 0 : se.placeholders, De = y || ((ae = u == null ? void 0 : u.TimePicker) == null ? void 0 : ae.placeholder), je = Z && Z.inputSuffix || /* @__PURE__ */ m(Re, {}), re = {
|
|
159
|
+
style: x,
|
|
160
160
|
className: f,
|
|
161
161
|
popupVisible: q,
|
|
162
162
|
format: a,
|
|
163
|
-
disabled:
|
|
163
|
+
disabled: T,
|
|
164
164
|
error: S,
|
|
165
165
|
status: Y,
|
|
166
166
|
size: Pe,
|
|
167
|
-
onPressEnter:
|
|
167
|
+
onPressEnter: Te,
|
|
168
168
|
onClear: Se,
|
|
169
169
|
suffixIcon: je,
|
|
170
170
|
editable: Ve,
|
|
@@ -173,22 +173,22 @@ const fe = {
|
|
|
173
173
|
...We(t)
|
|
174
174
|
};
|
|
175
175
|
return /* @__PURE__ */ m(me.Provider, { value: { utcOffset: n, timezone: r }, children: w === null ? ie(!0) : /* @__PURE__ */ m(
|
|
176
|
-
|
|
176
|
+
Ue,
|
|
177
177
|
{
|
|
178
178
|
popup: () => ie(),
|
|
179
179
|
trigger: "click",
|
|
180
180
|
clickToClose: !1,
|
|
181
181
|
position: W,
|
|
182
|
-
disabled:
|
|
182
|
+
disabled: T,
|
|
183
183
|
popupAlign: Je,
|
|
184
|
-
getPopupContainer:
|
|
185
|
-
onVisibleChange:
|
|
184
|
+
getPopupContainer: O,
|
|
185
|
+
onVisibleChange: be,
|
|
186
186
|
popupVisible: q,
|
|
187
187
|
classNames: "slideDynamicOrigin",
|
|
188
188
|
unmountOnExit: !!he,
|
|
189
189
|
...D,
|
|
190
190
|
children: w || (g ? /* @__PURE__ */ m(
|
|
191
|
-
|
|
191
|
+
Fe,
|
|
192
192
|
{
|
|
193
193
|
...re,
|
|
194
194
|
ref: G,
|
|
@@ -197,10 +197,10 @@ const fe = {
|
|
|
197
197
|
onChange: ne,
|
|
198
198
|
inputValue: R,
|
|
199
199
|
changeFocusedInputIndex: K,
|
|
200
|
-
focusedInputIndex:
|
|
200
|
+
focusedInputIndex: E
|
|
201
201
|
}
|
|
202
202
|
) : /* @__PURE__ */ m(
|
|
203
|
-
|
|
203
|
+
Ne,
|
|
204
204
|
{
|
|
205
205
|
...re,
|
|
206
206
|
ref: G,
|
|
@@ -218,25 +218,25 @@ function Qe(h) {
|
|
|
218
218
|
format: u = "HH:mm:ss",
|
|
219
219
|
onSelect: v,
|
|
220
220
|
focusedInputIndex: l,
|
|
221
|
-
changeFocusedInputIndex:
|
|
221
|
+
changeFocusedInputIndex: b,
|
|
222
222
|
popupVisible: t,
|
|
223
223
|
onConfirmValue: A,
|
|
224
224
|
valueShow: f = [],
|
|
225
225
|
setValueShow: M,
|
|
226
|
-
disableConfirm:
|
|
227
|
-
...
|
|
228
|
-
} = h, { utcOffset:
|
|
226
|
+
disableConfirm: x,
|
|
227
|
+
...y
|
|
228
|
+
} = h, { utcOffset: O, timezone: T } = pe(me);
|
|
229
229
|
function W(Y, w) {
|
|
230
|
-
const D = f.slice(), P = f.map((s) => d(s,
|
|
231
|
-
D[l] = X(w,
|
|
230
|
+
const D = f.slice(), P = f.map((s) => d(s, O, T));
|
|
231
|
+
D[l] = X(w, O, T), P[l] = w, v == null || v(
|
|
232
232
|
P.map((s) => s.format(u)),
|
|
233
233
|
P
|
|
234
|
-
), M(D),
|
|
234
|
+
), M(D), x && p(P) && L(P[0]) && L(P[1]) && A(D);
|
|
235
235
|
}
|
|
236
236
|
function g() {
|
|
237
|
-
f.length && (f[0] === void 0 || f[1] === void 0) ?
|
|
237
|
+
f.length && (f[0] === void 0 || f[1] === void 0) ? b(l === 0 ? 1 : 0) : A(f);
|
|
238
238
|
}
|
|
239
|
-
const _ = qe(
|
|
239
|
+
const _ = qe(y, [
|
|
240
240
|
"defaultValue",
|
|
241
241
|
"placeholder",
|
|
242
242
|
"value",
|
|
@@ -253,14 +253,14 @@ function Qe(h) {
|
|
|
253
253
|
confirmBtnDisabled: !L(S),
|
|
254
254
|
valueShow: S,
|
|
255
255
|
popupVisible: t,
|
|
256
|
-
disableConfirm:
|
|
256
|
+
disableConfirm: x,
|
|
257
257
|
..._
|
|
258
258
|
}
|
|
259
259
|
);
|
|
260
260
|
}
|
|
261
261
|
function ge(h, u, v) {
|
|
262
|
-
function l(
|
|
263
|
-
return /* @__PURE__ */ m(Ke, { ...
|
|
262
|
+
function l(b) {
|
|
263
|
+
return /* @__PURE__ */ m(Ke, { ...b, picker: h, isRangePicker: v === "range" });
|
|
264
264
|
}
|
|
265
265
|
return l.displayName = u, l;
|
|
266
266
|
}
|
package/Timeline.js
CHANGED
package/Tooltip.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import F from "
|
|
3
|
-
import
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { a as q } from "./chunk/xPzFRQJn.js";
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { b as F, n as I } from "./chunk/DUxWiN2U.js";
|
|
3
|
+
import S from "lodash/isFunction";
|
|
4
|
+
import { forwardRef as j, useContext as z, useRef as B, useImperativeHandle as W, useMemo as q } from "react";
|
|
6
5
|
import G from "./hooks/useMergeProps.js";
|
|
7
6
|
import J, { EventsByTriggerNeed as K } from "./Trigger.js";
|
|
8
|
-
import P from "
|
|
7
|
+
import { y as P } from "./chunk/Do1aMgY3.js";
|
|
9
8
|
import { isEmptyReactNode as Q } from "./utils/is.js";
|
|
10
9
|
import U, { pickDataAttributes as X } from "./utils/pick.js";
|
|
11
10
|
const Y = {
|
|
@@ -25,22 +24,22 @@ const Y = {
|
|
|
25
24
|
bottom: 12
|
|
26
25
|
};
|
|
27
26
|
function oo(b, h) {
|
|
28
|
-
const { getPrefixCls: C, componentConfig: n } =
|
|
27
|
+
const { getPrefixCls: C, componentConfig: n } = z(F), a = G(
|
|
29
28
|
b,
|
|
30
29
|
Y,
|
|
31
30
|
n == null ? void 0 : n.Tooltip
|
|
32
31
|
), {
|
|
33
32
|
style: x,
|
|
34
33
|
className: c,
|
|
35
|
-
children:
|
|
36
|
-
trigger:
|
|
37
|
-
escToClose:
|
|
38
|
-
defaultPopupVisible:
|
|
34
|
+
children: y,
|
|
35
|
+
trigger: w,
|
|
36
|
+
escToClose: N,
|
|
37
|
+
defaultPopupVisible: T,
|
|
39
38
|
position: m,
|
|
40
39
|
unmountOnExit: V,
|
|
41
40
|
popupVisible: v,
|
|
42
|
-
prefixCls:
|
|
43
|
-
blurToHide:
|
|
41
|
+
prefixCls: D,
|
|
42
|
+
blurToHide: $,
|
|
44
43
|
popupHoverStay: A,
|
|
45
44
|
disabled: E,
|
|
46
45
|
onVisibleChange: H,
|
|
@@ -51,10 +50,10 @@ function oo(b, h) {
|
|
|
51
50
|
mini: k,
|
|
52
51
|
color: r,
|
|
53
52
|
...f
|
|
54
|
-
} =
|
|
53
|
+
} = a, i = B(), M = (o = 0, e) => {
|
|
55
54
|
i.current && i.current.updatePopupPosition(o, e);
|
|
56
55
|
};
|
|
57
|
-
|
|
56
|
+
W(
|
|
58
57
|
h,
|
|
59
58
|
() => ({
|
|
60
59
|
// ...refTrigger.current,
|
|
@@ -74,18 +73,18 @@ function oo(b, h) {
|
|
|
74
73
|
}),
|
|
75
74
|
[]
|
|
76
75
|
);
|
|
77
|
-
const s =
|
|
76
|
+
const s = D || C("tooltip"), t = {
|
|
78
77
|
...U(f, K),
|
|
79
78
|
...X(f),
|
|
80
79
|
...p,
|
|
81
80
|
className: P(c, p == null ? void 0 : p.className)
|
|
82
|
-
}, d =
|
|
83
|
-
"popupVisible" in
|
|
81
|
+
}, d = S(l) ? l() : l;
|
|
82
|
+
"popupVisible" in a ? t.popupVisible = v : Q(d, !0) && (t.popupVisible = !1), (t.showArrow !== !1 || t.arrowProps) && (t.arrowProps = t.arrowProps || {}, r && (t.arrowProps.style = {
|
|
84
83
|
backgroundColor: r,
|
|
85
84
|
...t.arrowProps.style
|
|
86
85
|
}));
|
|
87
|
-
const L =
|
|
88
|
-
return /* @__PURE__ */
|
|
86
|
+
const L = q(() => r ? new I(r).isLight() ?? !1 : !1, [r]);
|
|
87
|
+
return /* @__PURE__ */ u(
|
|
89
88
|
J,
|
|
90
89
|
{
|
|
91
90
|
style: {
|
|
@@ -96,7 +95,7 @@ function oo(b, h) {
|
|
|
96
95
|
ref: i,
|
|
97
96
|
classNames: "zoomInFadeOut",
|
|
98
97
|
duration: Z,
|
|
99
|
-
popup: () => /* @__PURE__ */
|
|
98
|
+
popup: () => /* @__PURE__ */ u(
|
|
100
99
|
"div",
|
|
101
100
|
{
|
|
102
101
|
style: { backgroundColor: r },
|
|
@@ -109,30 +108,30 @@ function oo(b, h) {
|
|
|
109
108
|
}
|
|
110
109
|
),
|
|
111
110
|
role: "tooltip",
|
|
112
|
-
children: /* @__PURE__ */
|
|
111
|
+
children: /* @__PURE__ */ u("div", { className: `${s}-content-inner`, children: d })
|
|
113
112
|
}
|
|
114
113
|
),
|
|
115
114
|
position: m,
|
|
116
115
|
disabled: E,
|
|
117
|
-
trigger:
|
|
118
|
-
escToClose:
|
|
116
|
+
trigger: w,
|
|
117
|
+
escToClose: N,
|
|
119
118
|
showArrow: !0,
|
|
120
119
|
popupAlign: _,
|
|
121
120
|
mouseEnterDelay: 200,
|
|
122
121
|
mouseLeaveDelay: 200,
|
|
123
122
|
unmountOnExit: V,
|
|
124
123
|
popupHoverStay: A,
|
|
125
|
-
blurToHide:
|
|
124
|
+
blurToHide: $,
|
|
126
125
|
childrenPrefix: O || s,
|
|
127
126
|
getPopupContainer: R,
|
|
128
127
|
onVisibleChange: H,
|
|
129
|
-
defaultPopupVisible:
|
|
128
|
+
defaultPopupVisible: T,
|
|
130
129
|
...t,
|
|
131
|
-
children:
|
|
130
|
+
children: y
|
|
132
131
|
}
|
|
133
132
|
);
|
|
134
133
|
}
|
|
135
|
-
const eo =
|
|
134
|
+
const eo = j(oo);
|
|
136
135
|
eo.displayName = "Tooltip";
|
|
137
136
|
export {
|
|
138
137
|
eo as default
|
package/Transfer.js
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import { jsxs as q, jsx as n, Fragment as re } from "react/jsx-runtime";
|
|
2
|
-
import be from "
|
|
3
|
-
import Ie from "@unicom-cloud/icons/IconUiRight";
|
|
2
|
+
import { a as be, I as Ie } from "./chunk/D9TqtOhq.js";
|
|
4
3
|
import ne from "lodash/isPlainObject";
|
|
5
4
|
import de, { useRef as le, useState as G, useEffect as ae, useContext as fe, useMemo as ce } from "react";
|
|
6
5
|
import ue from "./Button.js";
|
|
7
|
-
import { I as pe,
|
|
6
|
+
import { I as pe, b as me } from "./chunk/DUxWiN2U.js";
|
|
8
7
|
import Ke from "./hooks/useMergeProps.js";
|
|
9
8
|
import ie from "./hooks/useMergeValue.js";
|
|
10
|
-
import se from "
|
|
9
|
+
import { y as se } from "./chunk/Do1aMgY3.js";
|
|
11
10
|
import { pickDataAttributes as xe } from "./utils/pick.js";
|
|
12
|
-
import Ce from "
|
|
13
|
-
import $e from "
|
|
14
|
-
import { C as oe } from "./chunk/
|
|
11
|
+
import { I as Ce } from "./chunk/sl8s35SK.js";
|
|
12
|
+
import { I as $e } from "./chunk/DhLbnw3R.js";
|
|
13
|
+
import { C as oe } from "./chunk/DJmWXheU.js";
|
|
15
14
|
import ge from "./hooks/useKeyboardEvent.js";
|
|
16
|
-
import { I as ve } from "./chunk/
|
|
15
|
+
import { I as ve } from "./chunk/Bl-ODC57.js";
|
|
17
16
|
import Se from "./List.js";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
17
|
+
import { I as Te } from "./chunk/B45v5S9k.js";
|
|
18
|
+
import { I as Ne } from "./chunk/C95ipQ6b.js";
|
|
20
19
|
function ke(z) {
|
|
21
20
|
const {
|
|
22
|
-
className:
|
|
21
|
+
className: N,
|
|
23
22
|
prefixCls: J,
|
|
24
23
|
render: E,
|
|
25
24
|
item: f,
|
|
@@ -53,7 +52,7 @@ function ke(z) {
|
|
|
53
52
|
[`${h}-gap-bottom`]: v && y > 0,
|
|
54
53
|
[`${h}-${C}`]: C !== "none"
|
|
55
54
|
},
|
|
56
|
-
|
|
55
|
+
N
|
|
57
56
|
),
|
|
58
57
|
draggable: F,
|
|
59
58
|
onDragStart: (t) => {
|
|
@@ -80,7 +79,7 @@ function ke(z) {
|
|
|
80
79
|
g && (t.stopPropagation(), t.preventDefault(), B(!1), O(0), $("none"), u == null || u(t, f, y));
|
|
81
80
|
},
|
|
82
81
|
children: [
|
|
83
|
-
w ? /* @__PURE__ */ n(
|
|
82
|
+
w ? /* @__PURE__ */ n(Ne, { className: `${h}-icon-drag` }) : null,
|
|
84
83
|
U ? /* @__PURE__ */ q(re, { children: [
|
|
85
84
|
/* @__PURE__ */ n("span", { className: `${h}-content`, children: P }),
|
|
86
85
|
!K && /* @__PURE__ */ n(
|
|
@@ -93,7 +92,7 @@ function ke(z) {
|
|
|
93
92
|
...j({
|
|
94
93
|
onPressEnter: () => k(f.key)
|
|
95
94
|
}),
|
|
96
|
-
children: /* @__PURE__ */ n(
|
|
95
|
+
children: /* @__PURE__ */ n(Te, {})
|
|
97
96
|
}
|
|
98
97
|
)
|
|
99
98
|
] }) : /* @__PURE__ */ n(
|
|
@@ -111,7 +110,7 @@ function ke(z) {
|
|
|
111
110
|
f.key
|
|
112
111
|
);
|
|
113
112
|
}
|
|
114
|
-
const De = (z,
|
|
113
|
+
const De = (z, N) => {
|
|
115
114
|
const J = ge(), {
|
|
116
115
|
style: E,
|
|
117
116
|
prefixCls: f,
|
|
@@ -149,10 +148,10 @@ const De = (z, T) => {
|
|
|
149
148
|
Y ? w.filter((d) => v(Y, d)) : w
|
|
150
149
|
);
|
|
151
150
|
}, [w, Y, v]);
|
|
152
|
-
const s = (d,
|
|
153
|
-
|
|
154
|
-
), r = (d,
|
|
155
|
-
|
|
151
|
+
const s = (d, T) => C(
|
|
152
|
+
T ? g.concat(d) : g.filter((o) => o !== d)
|
|
153
|
+
), r = (d, T) => C(
|
|
154
|
+
T ? [...new Set(g.concat(d))] : g.filter(
|
|
156
155
|
(o) => d.indexOf(o) === -1
|
|
157
156
|
)
|
|
158
157
|
), a = (d) => () => $(d), p = /* @__PURE__ */ n(
|
|
@@ -163,13 +162,13 @@ const De = (z, T) => {
|
|
|
163
162
|
placeholder: j,
|
|
164
163
|
suffix: /* @__PURE__ */ n($e, {}),
|
|
165
164
|
...ne(I) ? I : {},
|
|
166
|
-
onChange: (d,
|
|
165
|
+
onChange: (d, T) => {
|
|
167
166
|
var o;
|
|
168
|
-
ee(d), O == null || O(d), ne(I) && ((o = I.onChange) == null || o.call(I, d,
|
|
167
|
+
ee(d), O == null || O(d), ne(I) && ((o = I.onChange) == null || o.call(I, d, T));
|
|
169
168
|
}
|
|
170
169
|
}
|
|
171
170
|
), _ = () => {
|
|
172
|
-
const d = g.length,
|
|
171
|
+
const d = g.length, T = e.length, o = Y ? U.filter(
|
|
173
172
|
(X) => e.find(({ key: ye }) => ye === X)
|
|
174
173
|
) : U, c = o.filter(
|
|
175
174
|
(X) => g.indexOf(X) > -1
|
|
@@ -181,13 +180,13 @@ const De = (z, T) => {
|
|
|
181
180
|
};
|
|
182
181
|
if (typeof k == "function")
|
|
183
182
|
return k({
|
|
184
|
-
countTotal:
|
|
183
|
+
countTotal: T,
|
|
185
184
|
countSelected: d,
|
|
186
185
|
clear: a(o),
|
|
187
186
|
checkbox: /* @__PURE__ */ n(oe, { ...m }),
|
|
188
187
|
searchInput: p
|
|
189
188
|
});
|
|
190
|
-
const te = /* @__PURE__ */ n("span", { className: `${l}-header-unit`, children: B(d,
|
|
189
|
+
const te = /* @__PURE__ */ n("span", { className: `${l}-header-unit`, children: B(d, T) });
|
|
191
190
|
return V ? /* @__PURE__ */ q(re, { children: [
|
|
192
191
|
/* @__PURE__ */ n("span", { className: `${l}-header-title`, children: k }),
|
|
193
192
|
te,
|
|
@@ -209,7 +208,7 @@ const De = (z, T) => {
|
|
|
209
208
|
te
|
|
210
209
|
] });
|
|
211
210
|
}, he = () => {
|
|
212
|
-
var
|
|
211
|
+
var T;
|
|
213
212
|
const d = D == null ? void 0 : D({
|
|
214
213
|
listType: Q,
|
|
215
214
|
disabled: b,
|
|
@@ -238,7 +237,7 @@ const De = (z, T) => {
|
|
|
238
237
|
size: "mini",
|
|
239
238
|
...typeof A == "object" ? A : {}
|
|
240
239
|
} : void 0,
|
|
241
|
-
footer: u === !0 ? /* @__PURE__ */ n(ue, { size: "mini", disabled: b, onClick: K, children: (
|
|
240
|
+
footer: u === !0 ? /* @__PURE__ */ n(ue, { size: "mini", disabled: b, onClick: K, children: (T = S == null ? void 0 : S.Transfer) == null ? void 0 : T.resetText }) : u || null,
|
|
242
241
|
render: (o) => /* @__PURE__ */ n(
|
|
243
242
|
ke,
|
|
244
243
|
{
|
|
@@ -274,7 +273,7 @@ const De = (z, T) => {
|
|
|
274
273
|
}
|
|
275
274
|
);
|
|
276
275
|
};
|
|
277
|
-
return /* @__PURE__ */ q("div", { ref:
|
|
276
|
+
return /* @__PURE__ */ q("div", { ref: N, className: se(l, W), style: E, children: [
|
|
278
277
|
/* @__PURE__ */ n("div", { className: `${l}-header`, children: _() }),
|
|
279
278
|
I && /* @__PURE__ */ n("div", { className: `${l}-search`, children: p }),
|
|
280
279
|
he()
|
|
@@ -284,9 +283,9 @@ const De = (z, T) => {
|
|
|
284
283
|
defaultSelectedKeys: [],
|
|
285
284
|
defaultTargetKeys: [],
|
|
286
285
|
dataSource: [],
|
|
287
|
-
filterOption: (z,
|
|
286
|
+
filterOption: (z, N) => typeof (N == null ? void 0 : N.value) == "string" && N.value.indexOf(z) !== -1
|
|
288
287
|
};
|
|
289
|
-
function Re(z,
|
|
288
|
+
function Re(z, N) {
|
|
290
289
|
const { getPrefixCls: J, componentConfig: E, rtl: f } = fe(me), W = Ke(
|
|
291
290
|
z,
|
|
292
291
|
Pe,
|
|
@@ -425,7 +424,7 @@ function Re(z, T) {
|
|
|
425
424
|
"div",
|
|
426
425
|
{
|
|
427
426
|
...xe(W),
|
|
428
|
-
ref:
|
|
427
|
+
ref: N,
|
|
429
428
|
className: se(
|
|
430
429
|
y,
|
|
431
430
|
{
|