@unicom-cloud/ui 0.8.115 → 0.8.117
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 +12 -12
- package/Alert.js +7 -5
- package/Anchor.js +2 -1
- package/App.js +1 -0
- package/AutoComplete.js +14 -10
- package/Avatar.js +1 -0
- package/BackTop.js +11 -9
- package/Badge.js +13 -10
- package/Breadcrumb.js +11 -9
- package/Button.js +12 -8
- package/Calendar.js +16 -10
- package/Card.js +10 -8
- package/Carousel.js +12 -8
- package/Cascader.js +3 -2
- package/Checkbox.js +10 -7
- package/Collapse.js +4 -2
- package/ColorPicker.js +21 -19
- package/Comment.js +9 -7
- package/ConfigProvider.js +7 -5
- package/Constant.js +1 -0
- package/Copy.js +8 -6
- package/Countdown.js +20 -17
- package/DatePicker.js +14 -8
- package/Descriptions.js +6 -5
- package/Details.js +19 -15
- package/Development.js +8 -3
- package/Divider.js +7 -5
- package/Draggable.js +5 -3
- package/Drawer.js +1 -0
- package/Dropdown.js +14 -10
- package/Empty.js +13 -3
- package/Flex.js +22 -16
- package/Form.js +25 -20
- package/Grid.js +1 -0
- package/Icon.js +8 -6
- package/IconHover.js +5 -2
- package/Image.js +6 -5
- package/Input.js +18 -12
- package/InputNumber.js +10 -6
- package/InputTag.js +1 -0
- package/Layout.js +17 -13
- package/Link.js +7 -5
- package/LiquidFill.js +19 -16
- package/List.js +13 -10
- package/Loading.js +18 -14
- package/Marquee.js +259 -19
- package/Mentions.js +8 -6
- package/Menu.js +8 -6
- package/Message.js +18 -7
- package/Modal.js +5 -3
- package/Notice.js +19 -13
- package/Notification.js +19 -9
- package/OverflowEllipsis.js +9 -7
- package/PageHeader.js +12 -8
- package/Pagination.js +1 -0
- package/Picker.js +1 -0
- package/Popconfirm.js +9 -7
- package/Popover.js +8 -6
- package/Portal.js +1 -0
- package/Progress.js +7 -5
- package/QrCode.js +21 -15
- package/Radio.js +9 -6
- package/Rate.js +9 -5
- package/ResizeBox.js +15 -12
- package/Result.js +6 -4
- package/RichText.js +26 -12
- package/RowCol.js +1 -0
- package/Segmented.js +20 -17
- package/Select.js +1 -0
- package/SelectView.js +3 -2
- package/Skeleton.js +9 -6
- package/Slider.js +15 -12
- package/Space.js +23 -16
- package/SpeechSynthesis.js +9 -2
- package/Spin.js +7 -5
- package/Splitter.js +1 -0
- package/Statistic.js +12 -10
- package/Steps.js +12 -8
- package/SuspenseFallbackTest.js +3 -2
- package/Switch.js +16 -9
- package/Table.js +27 -15
- package/Tabs.js +6 -5
- package/Tag.js +12 -8
- package/TimePicker.js +1 -0
- package/Timeline.js +1 -0
- package/Tooltip.js +9 -7
- package/Tour.js +22 -17
- package/Transfer.js +7 -6
- package/Tree.js +2 -1
- package/TreeSelect.js +2 -1
- package/Trigger.js +20 -14
- package/Typography.js +1 -0
- package/Upload.js +7 -5
- package/VerificationCode.js +5 -2
- package/VirtualList.js +1 -0
- package/Watermark.js +5 -2
- package/affix/index.js +58 -58
- package/alert/index.js +62 -55
- package/anchor/Anchor.js +123 -130
- package/anchor/Link.js +32 -32
- package/anchor/context.js +1 -0
- package/anchor/index.js +2 -1
- package/anchor/utils.js +51 -0
- package/app/App.js +14 -9
- package/app/context.js +1 -0
- package/app/index.js +1 -0
- package/app/useApp.js +1 -0
- package/auto-complete/index.js +95 -91
- package/avatar/Avatar.js +23 -20
- package/avatar/Group.js +39 -36
- package/avatar/context.js +1 -0
- package/avatar/index.js +1 -0
- package/back-top/index.js +42 -35
- package/badge/Count.js +15 -14
- package/badge/index.js +82 -79
- package/breadcrumb/Item.js +26 -24
- package/breadcrumb/index.js +43 -41
- package/button/Group.js +10 -8
- package/button/index.js +58 -54
- package/calendar/Lunar.js +2 -1
- package/calendar/Month.js +144 -10
- package/calendar/WeekList.js +1 -0
- package/calendar/Year.js +31 -25
- package/calendar/header/Panel.js +59 -0
- package/calendar/header/index.js +112 -0
- package/calendar/hook/useCellClassName.js +43 -0
- package/calendar/index.js +136 -282
- package/card/Grid.js +14 -12
- package/card/Meta.js +15 -13
- package/card/index.js +39 -37
- package/carousel/Arrow.js +20 -18
- package/carousel/Indicator.js +28 -26
- package/carousel/index.js +109 -105
- package/cascader/Cascader.js +290 -24
- package/cascader/base/node.js +97 -0
- package/cascader/base/store.js +59 -0
- package/cascader/hook/useRefCurrent.js +13 -0
- package/cascader/index.js +3 -2
- package/cascader/panel/List.js +274 -0
- package/cascader/panel/Option.js +35 -0
- package/cascader/panel/Search.js +165 -0
- package/cascader/utils.js +73 -0
- package/checkbox/Checkbox.js +124 -17
- package/checkbox/Group.js +96 -12
- package/checkbox/GroupBlock.js +62 -7
- package/checkbox/IconCheck.js +1 -0
- package/checkbox/index.js +9 -7
- package/checkbox/useCheckbox.js +10 -8
- package/collapse/Collapse.js +71 -234
- package/collapse/Item.js +184 -9
- package/collapse/index.js +2 -1
- package/color-picker/ControlBar.js +23 -21
- package/color-picker/InputAlpha.js +12 -10
- package/color-picker/InputHex.js +25 -23
- package/color-picker/InputRgb.js +19 -16
- package/color-picker/Mode.js +9 -7
- package/color-picker/Palette.js +12 -10
- package/color-picker/Panel.js +72 -67
- package/color-picker/colors.js +1 -0
- package/color-picker/hooks/useColorPicker.js +127 -0
- package/color-picker/hooks/useControlBlock.js +59 -0
- package/color-picker/index.js +141 -256
- package/color-picker/interface.js +1 -0
- package/color-picker/utils.js +40 -38
- package/comment/index.js +34 -32
- package/config-provider/ConfigProvider.js +64 -13
- package/config-provider/context.js +25 -7
- package/config-provider/index.js +7 -5
- package/constant/index.js +1 -0
- package/copy/index.js +35 -33
- package/countdown/index.js +52 -49
- package/countdown/utils.js +30 -0
- package/date-picker/Picker.js +277 -273
- package/date-picker/RangePicker.js +582 -22
- package/date-picker/context.js +1 -0
- package/date-picker/hook/useCellClassName.js +63 -0
- package/date-picker/index.js +27 -21
- package/date-picker/panel/Body.js +92 -0
- package/date-picker/panel/Footer.js +73 -0
- package/date-picker/panel/Header.js +72 -0
- package/date-picker/panel/Shortcut.js +47 -0
- package/date-picker/panel/WeekList.js +20 -0
- package/date-picker/panel/date/index.js +200 -0
- package/date-picker/panel/month/index.js +116 -0
- package/date-picker/panel/quarter/index.js +98 -0
- package/date-picker/panel/range/index.js +252 -0
- package/date-picker/panel/week/index.js +36 -0
- package/date-picker/panel/year/index.js +75 -0
- package/date-picker/utils.js +76 -0
- package/descriptions/index.js +74 -73
- package/details/index.js +63 -59
- package/development/index.js +20 -56
- package/dist/ui-common/development/index.js +48 -0
- package/dist/ui-common/empty/index.js +52 -0
- package/dist/ui-common/flex/index.js +76 -0
- package/dist/ui-common/flex/interface.js +10 -0
- package/dist/ui-common/higher-order/with-speech-synthesis/index.js +83 -0
- package/dist/ui-common/hooks/create-deep-compare-effect/index.js +10 -0
- package/dist/ui-common/hooks/create-update-effect/index.js +15 -0
- package/dist/ui-common/hooks/create-use-storage-state/index.js +79 -0
- package/dist/ui-common/hooks/use-async-effect/index.js +26 -0
- package/dist/ui-common/hooks/use-boolean/index.js +15 -0
- package/dist/ui-common/hooks/use-click-away/index.js +32 -0
- package/dist/ui-common/hooks/use-computed-state/index.js +12 -0
- package/dist/ui-common/hooks/use-controllable-value/index.js +27 -0
- package/dist/ui-common/hooks/use-cookie-state/index.js +21 -0
- package/dist/ui-common/hooks/use-count-down/index.js +37 -0
- package/dist/ui-common/hooks/use-counter/index.js +44 -0
- package/dist/ui-common/hooks/use-create/index.js +9 -0
- package/dist/ui-common/hooks/use-creation/index.js +14 -0
- package/dist/ui-common/hooks/use-debounce/index.js +14 -0
- package/dist/ui-common/hooks/use-debounce-effect/index.js +13 -0
- package/dist/ui-common/hooks/use-debounce-fn/index.js +31 -0
- package/dist/ui-common/hooks/use-deep-compare-effect/index.js +7 -0
- package/dist/ui-common/hooks/use-deep-compare-layout-effect/index.js +7 -0
- package/dist/ui-common/hooks/use-document-visibility/index.js +20 -0
- package/dist/ui-common/hooks/use-drag/index.js +47 -0
- package/dist/ui-common/hooks/use-drop/index.js +60 -0
- package/dist/ui-common/hooks/use-event-listener/index.js +37 -0
- package/dist/ui-common/hooks/use-event-target/index.js +21 -0
- package/dist/ui-common/hooks/use-external/index.js +65 -0
- package/dist/ui-common/hooks/use-favicon/index.js +18 -0
- package/dist/ui-common/hooks/use-focus-within/index.js +26 -0
- package/dist/ui-common/hooks/use-fullscreen/index.js +75 -0
- package/dist/ui-common/hooks/use-get-state/index.js +10 -0
- package/dist/ui-common/hooks/use-history-travel/index.js +79 -0
- package/dist/ui-common/hooks/use-hover/index.js +26 -0
- package/dist/ui-common/hooks/use-id/index.js +11 -0
- package/dist/ui-common/hooks/use-in-view/index.js +32 -0
- package/dist/ui-common/hooks/use-in-viewport/index.js +34 -0
- package/dist/ui-common/hooks/use-infinite-scroll/index.js +83 -0
- package/dist/ui-common/hooks/use-intersection-observer/index.js +25 -0
- package/dist/ui-common/hooks/use-interval/index.js +17 -0
- package/dist/ui-common/hooks/use-is-first-render/index.js +10 -0
- package/dist/ui-common/hooks/use-isomorphic-layout-effect/index.js +7 -0
- package/dist/ui-common/hooks/use-key-press/index.js +169 -0
- package/dist/ui-common/hooks/use-keyboard-event/index.js +17 -0
- package/dist/ui-common/hooks/use-latest/index.js +9 -0
- package/dist/ui-common/hooks/use-listen-window-resize/index.js +10 -0
- package/dist/ui-common/hooks/use-local-storage-state/index.js +9 -0
- package/dist/ui-common/hooks/use-lock-fn/index.js +23 -0
- package/dist/ui-common/hooks/use-long-press/index.js +59 -0
- package/dist/ui-common/hooks/use-media/index.js +16 -0
- package/dist/ui-common/hooks/use-memoized-fn/index.js +19 -0
- package/dist/ui-common/hooks/use-merge-props/index.js +18 -0
- package/dist/ui-common/hooks/use-merge-value/index.js +20 -0
- package/dist/ui-common/hooks/use-mount/index.js +13 -0
- package/dist/ui-common/hooks/use-mouse/index.js +50 -0
- package/dist/ui-common/hooks/use-mutation-observer/index.js +23 -0
- package/dist/ui-common/hooks/use-network/index.js +57 -0
- package/dist/ui-common/hooks/use-online-status/index.js +21 -0
- package/dist/ui-common/hooks/use-overflow-hidden/index.js +27 -0
- package/dist/ui-common/hooks/use-override-ref/index.js +15 -0
- package/dist/ui-common/hooks/use-pagination/index.js +49 -0
- package/dist/ui-common/hooks/use-persist-callback/index.js +9 -0
- package/dist/ui-common/hooks/use-prefers-color-scheme-dark/index.js +25 -0
- package/dist/ui-common/hooks/use-previous/index.js +10 -0
- package/dist/ui-common/hooks/use-raf-interval/index.js +36 -0
- package/dist/ui-common/hooks/use-raf-state/index.js +16 -0
- package/dist/ui-common/hooks/use-raf-timeout/index.js +35 -0
- package/dist/ui-common/hooks/use-reactive/index.js +38 -0
- package/dist/ui-common/hooks/use-refs/index.js +11 -0
- package/dist/ui-common/hooks/use-request/src/Fetch.js +93 -0
- package/dist/ui-common/hooks/use-request/src/plugins/useAutoRunPlugin.js +30 -0
- package/dist/ui-common/hooks/use-request/src/plugins/useCachePlugin.js +66 -0
- package/dist/ui-common/hooks/use-request/src/plugins/useDebouncePlugin.js +34 -0
- package/dist/ui-common/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +28 -0
- package/dist/ui-common/hooks/use-request/src/plugins/usePollingPlugin.js +37 -0
- package/dist/ui-common/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +29 -0
- package/dist/ui-common/hooks/use-request/src/plugins/useRetryPlugin.js +28 -0
- package/dist/ui-common/hooks/use-request/src/plugins/useThrottlePlugin.js +31 -0
- package/dist/ui-common/hooks/use-request/src/useRequest.js +26 -0
- package/dist/ui-common/hooks/use-request/src/useRequestImplement.js +54 -0
- package/dist/ui-common/hooks/use-request/src/utils/cache.js +20 -0
- package/dist/ui-common/hooks/use-request/src/utils/cachePromise.js +10 -0
- package/dist/ui-common/hooks/use-request/src/utils/cacheSubscribe.js +11 -0
- package/dist/ui-common/hooks/use-request/src/utils/isDocumentVisible.js +8 -0
- package/dist/ui-common/hooks/use-request/src/utils/isOnline.js +8 -0
- package/dist/ui-common/hooks/use-request/src/utils/limit.js +12 -0
- package/dist/ui-common/hooks/use-request/src/utils/subscribeFocus.js +19 -0
- package/dist/ui-common/hooks/use-request/src/utils/subscribeReVisible.js +18 -0
- package/dist/ui-common/hooks/use-reset-state/index.js +18 -0
- package/dist/ui-common/hooks/use-responsive/index.js +47 -0
- package/dist/ui-common/hooks/use-safe-state/index.js +12 -0
- package/dist/ui-common/hooks/use-scroll/index.js +44 -0
- package/dist/ui-common/hooks/use-selections/index.js +58 -0
- package/dist/ui-common/hooks/use-session-storage-state/index.js +9 -0
- package/dist/ui-common/hooks/use-set-state/index.js +17 -0
- package/dist/ui-common/hooks/use-size/index.js +41 -0
- package/dist/ui-common/hooks/use-state-callback/index.js +16 -0
- package/dist/ui-common/hooks/use-state-with-promise/index.js +36 -0
- package/dist/ui-common/hooks/use-text-selection/index.js +56 -0
- package/dist/ui-common/hooks/use-theme/index.js +34 -0
- package/dist/ui-common/hooks/use-throttle/index.js +14 -0
- package/dist/ui-common/hooks/use-throttle-effect/index.js +13 -0
- package/dist/ui-common/hooks/use-throttle-fn/index.js +31 -0
- package/dist/ui-common/hooks/use-timeout/index.js +17 -0
- package/dist/ui-common/hooks/use-title/index.js +18 -0
- package/dist/ui-common/hooks/use-toggle/index.js +17 -0
- package/dist/ui-common/hooks/use-tracked-effect/index.js +12 -0
- package/dist/ui-common/hooks/use-unmount/index.js +21 -0
- package/dist/ui-common/hooks/use-unmounted-ref/index.js +11 -0
- package/dist/ui-common/hooks/use-update/index.js +9 -0
- package/dist/ui-common/hooks/use-update-effect/index.js +7 -0
- package/dist/ui-common/hooks/use-update-layout-effect/index.js +7 -0
- package/dist/ui-common/hooks/use-url-state/index.js +60 -0
- package/dist/ui-common/hooks/use-virtual-list/index.js +83 -0
- package/dist/ui-common/hooks/use-watch/index.js +14 -0
- package/dist/ui-common/hooks/use-web-socket/index.js +72 -0
- package/dist/ui-common/hooks/use-why-did-you-update/index.js +20 -0
- package/dist/ui-common/hooks/use-window-size/index.js +40 -0
- package/dist/ui-common/hooks/utils/createEffectWithTarget.js +23 -0
- package/dist/ui-common/hooks/utils/depsAreSame.js +12 -0
- package/dist/ui-common/hooks/utils/depsEqual.js +7 -0
- package/dist/ui-common/hooks/utils/domTarget.js +16 -0
- package/dist/ui-common/hooks/utils/getDocumentOrShadow.js +16 -0
- package/dist/ui-common/hooks/utils/isDev.js +5 -0
- package/dist/ui-common/hooks/utils/rect.js +19 -0
- package/dist/ui-common/hooks/utils/useDeepCompareWithTarget.js +11 -0
- package/dist/ui-common/hooks/utils/useEffectWithTarget.js +7 -0
- package/dist/ui-common/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +8 -0
- package/dist/ui-common/hooks/utils/useLayoutEffectWithTarget.js +7 -0
- package/dist/ui-common/icons/file/index.js +59 -0
- package/dist/ui-common/space/index.js +77 -0
- package/dist/ui-common/suspense-fallback-test/index.js +17 -0
- package/dist/ui-common/transition-group/CSSTransition.js +91 -0
- package/dist/ui-common/transition-group/PqbCSSTransition.js +36 -0
- package/dist/ui-common/transition-group/ReplaceTransition.js +34 -0
- package/dist/ui-common/transition-group/SwitchTransition.js +102 -0
- package/dist/ui-common/transition-group/Transition.js +187 -0
- package/dist/ui-common/transition-group/TransitionGroup.js +50 -0
- package/dist/ui-common/transition-group/TransitionGroupContext.js +6 -0
- package/dist/ui-common/transition-group/utils/ChildMapping.js +66 -0
- package/dist/ui-common/utils/compute.js +142 -0
- package/dist/ui-common/utils/constant.js +10 -0
- package/dist/ui-common/utils/dayjs.js +23 -0
- package/dist/ui-common/utils/dom.js +62 -0
- package/dist/ui-common/utils/fillNBSP.js +10 -0
- package/dist/ui-common/utils/findScrollParent.js +18 -0
- package/dist/ui-common/utils/getHighlightText.js +45 -0
- package/dist/ui-common/utils/getHotkeyHandler.js +29 -0
- package/dist/ui-common/utils/getStringLength.js +11 -0
- package/dist/ui-common/utils/include.js +11 -0
- package/dist/ui-common/utils/intersectionObserver.js +23 -0
- package/dist/ui-common/utils/is.js +120 -0
- package/dist/ui-common/utils/mergeProps.js +13 -0
- package/dist/ui-common/utils/mergedToString.js +16 -0
- package/dist/ui-common/utils/mutationObserver.js +21 -0
- package/dist/ui-common/utils/omit.js +13 -0
- package/dist/ui-common/utils/pad.js +19 -0
- package/dist/ui-common/utils/pick.js +19 -0
- package/dist/ui-common/utils/react19Adapter.js +4 -0
- package/dist/ui-common/utils/reactDOM.js +54 -0
- package/dist/ui-common/utils/resizeObserver.js +33 -0
- package/dist/ui-common/utils/scrollIntoViewIfNeeded.js +75 -0
- package/dist/ui-common/utils/setDarkTheme.js +28 -0
- package/dist/ui-common/utils/setDir.js +14 -0
- package/dist/ui-common/utils/setPrimaryColor.js +31 -0
- package/dist/ui-common/utils/setTheme.js +56 -0
- package/dist/ui-common/utils/style.js +40 -0
- package/dist/ui-common/utils/throttleByRaf.js +17 -0
- package/dist/ui-common/utils/throttleByRaf2.js +9 -0
- package/dist/ui-common/utils/toArray.js +15 -0
- package/dist/ui-common/utils/warning.js +12 -0
- package/divider/index.js +25 -23
- package/draggable/Item.js +1 -0
- package/draggable/index.js +22 -20
- package/drawer/Drawer.js +150 -140
- package/drawer/index.js +1 -0
- package/dropdown/Button.js +89 -9
- package/dropdown/index.js +95 -166
- package/empty/index.js +28 -5
- package/flex/index.js +41 -101
- package/form/Control.js +39 -41
- package/form/Form.js +158 -14
- package/form/FormItem.js +69 -69
- package/form/FormLabel.js +22 -21
- package/form/FormList.js +20 -19
- package/form/FormProvider.js +1 -0
- package/form/IconSymbol.js +1 -0
- package/form/context.js +2 -1
- package/form/hook/useContext.js +31 -0
- package/form/hook/useForm.js +59 -0
- package/form/hook/useState.js +32 -0
- package/form/hook/useWatch.js +36 -0
- package/form/index.js +39 -110
- package/form/interface.js +4 -5
- package/form/promisify.js +2 -1
- package/form/store.js +11 -12
- package/form/utils.js +82 -0
- package/grid/Grid.js +41 -41
- package/grid/Item.js +21 -19
- package/grid/context.js +1 -0
- package/grid/index.js +1 -0
- package/grid/utils.js +14 -0
- package/hooks/index.js +199 -128
- package/hooks/use-computed-state/index.js +5 -0
- package/hooks/use-create/index.js +5 -0
- package/hooks/use-creation/index.js +5 -0
- package/hooks/use-force-update/index.js +5 -0
- package/hooks/use-id/index.js +5 -0
- package/hooks/use-in-view/index.js +5 -0
- package/hooks/use-intersection-observer/index.js +5 -0
- package/hooks/use-interval/index.js +5 -0
- package/hooks/use-is-first-render/index.js +5 -0
- package/hooks/use-isomorphic-layout-effect/index.js +5 -0
- package/hooks/use-keyboard-event/index.js +5 -0
- package/hooks/use-listen-window-resize/index.js +5 -0
- package/hooks/use-media/index.js +5 -0
- package/hooks/use-merge-props/index.js +5 -0
- package/hooks/use-merge-value/index.js +5 -0
- package/hooks/use-online-status/index.js +5 -0
- package/hooks/use-overflow-hidden/index.js +5 -0
- package/hooks/use-override-ref/index.js +5 -0
- package/hooks/use-persist-callback/index.js +5 -0
- package/hooks/use-prefers-color-scheme-dark/index.js +5 -0
- package/hooks/use-previous/index.js +5 -0
- package/hooks/use-refs/index.js +5 -0
- package/hooks/use-resize-observer/index.js +5 -0
- package/hooks/use-responsive-state/index.js +56 -0
- package/hooks/use-state-callback/index.js +5 -0
- package/hooks/use-state-with-promise/index.js +5 -0
- package/hooks/use-update-effect/index.js +5 -0
- package/hooks/use-verification-code/index.js +72 -0
- package/hooks/use-watch/index.js +5 -0
- package/hooks/use-watermark/index.js +170 -0
- package/hooks/use-watermark/utils.js +10 -0
- package/hooks/use-window-size/index.js +5 -0
- package/hooks/useComputedState.js +5 -0
- package/hooks/useCreate.js +5 -0
- package/hooks/useCreation.js +3 -2
- package/hooks/useForceUpdate.js +3 -2
- package/hooks/useId.js +3 -2
- package/hooks/useInView.js +3 -2
- package/hooks/useIntersectionObserver.js +3 -2
- package/hooks/useInterval.js +3 -2
- package/hooks/useIsFirstRender.js +3 -2
- package/hooks/useIsomorphicLayoutEffect.js +3 -2
- package/hooks/useKeyboardEvent.js +3 -2
- package/hooks/useListenWindowResize.js +3 -2
- package/hooks/useMedia.js +3 -2
- package/hooks/useMergeProps.js +3 -2
- package/hooks/useMergeValue.js +3 -2
- package/hooks/useOnlineStatus.js +3 -2
- package/hooks/useOverflowHidden.js +3 -2
- package/hooks/useOverrideRef.js +3 -2
- package/hooks/usePersistCallback.js +3 -2
- package/hooks/usePrefersColorSchemeDark.js +3 -2
- package/hooks/usePrevious.js +3 -2
- package/hooks/useRefs.js +3 -2
- package/hooks/useResizeObserver.js +3 -15
- package/hooks/useResponsiveState.js +10 -52
- package/hooks/useStateCallback.js +3 -2
- package/hooks/useStateWithPromise.js +3 -2
- package/hooks/useUpdateEffect.js +3 -2
- package/hooks/useVerificationCode.js +9 -69
- package/hooks/useWatch.js +3 -2
- package/hooks/useWatermark.js +10 -171
- package/hooks/useWindowSize.js +3 -2
- package/icon/addFromIconFontCn.js +34 -5
- package/icon/index.js +24 -49
- package/icon-hover/index.js +38 -5
- package/icons/file/index.js +21 -0
- package/icons/file.js +10 -67
- package/icons.js +1 -0
- package/image/Image.js +75 -72
- package/image/ImageFooter.js +45 -6
- package/image/ImagePreview.js +485 -40
- package/image/ImagePreviewArrow.js +13 -11
- package/image/ImagePreviewGroup.js +36 -36
- package/image/ImagePreviewToolbar.js +7 -6
- package/image/TriggerForToolbar.js +8 -7
- package/image/index.js +4 -3
- package/image/previewGroupContext.js +1 -0
- package/image/utils/getFixTranslate.js +8 -0
- package/image/utils/getScale.js +72 -0
- package/image/utils/hook/useImageStatus.js +17 -0
- package/image/utils/hook/useShowFooter.js +8 -0
- package/index.js +924 -736
- package/input/Button.js +72 -9
- package/input/Group.js +13 -11
- package/input/Input.js +158 -684
- package/input/InputElement.js +94 -95
- package/input/Number.js +3 -2
- package/input/Password.js +70 -11
- package/input/Search.js +66 -11
- package/input/Tag.js +1 -0
- package/input/Textarea.js +170 -14
- package/input/autoSizeTextAreaHeight.js +3 -2
- package/input/index.js +18 -13
- package/input/useComposition.js +1 -0
- package/input-number/decimal.js +14 -11
- package/input-number/index.js +209 -16
- package/input-number/useSelectionRange.js +15 -13
- package/input-number/utils.js +60 -0
- package/input-tag/InputTag.js +228 -219
- package/input-tag/index.js +1 -0
- package/layout/Content.js +8 -6
- package/layout/Footer.js +8 -6
- package/layout/Header.js +9 -7
- package/layout/Sider.js +37 -35
- package/layout/index.js +25 -21
- package/link/index.js +29 -27
- package/liquid-fill/index.js +89 -85
- package/list/Item.js +20 -18
- package/list/Meta.js +12 -10
- package/list/index.js +145 -142
- package/loading/index.js +31 -27
- package/locale/ar-EG.js +1 -0
- package/locale/de-DE.js +1 -0
- package/locale/default.js +1 -0
- package/locale/en-US.js +4 -5
- package/locale/es-ES.js +1 -0
- package/locale/fr-FR.js +1 -0
- package/locale/id-ID.js +1 -0
- package/locale/it-IT.js +1 -0
- package/locale/ja-JP.js +1 -0
- package/locale/ko-KR.js +1 -0
- package/locale/ms-MY.js +1 -0
- package/locale/pt-BR.js +1 -0
- package/locale/pt-PT.js +1 -0
- package/locale/ru-RU.js +1 -0
- package/locale/th-TH.js +1 -0
- package/locale/tr-TR.js +4 -5
- package/locale/vi-VN.js +1 -0
- package/locale/zh-CN.js +1 -0
- package/locale/zh-HK.js +1 -0
- package/locale/zh-TW.js +1 -0
- package/marquee/index.js +122 -78
- package/mentions/index.js +55 -53
- package/mentions/utils.js +29 -0
- package/menu/Indent.js +1 -0
- package/menu/Item.js +40 -37
- package/menu/ItemGroup.js +8 -7
- package/menu/Menu.js +182 -24
- package/menu/OverflowWrap.js +88 -8
- package/menu/context.js +1 -0
- package/menu/index.js +10 -9
- package/menu/sub-menu/Inline.js +112 -0
- package/menu/sub-menu/Pop.js +121 -0
- package/menu/sub-menu/index.js +20 -0
- package/menu/utils.js +81 -0
- package/message/index.js +157 -13
- package/message/useMessage.js +144 -6
- package/modal/Confirm.js +109 -11
- package/modal/Modal.js +446 -21
- package/modal/config.js +1 -0
- package/modal/index.js +5 -4
- package/modal/use-modal/Hook.js +51 -0
- package/modal/use-modal/index.js +66 -0
- package/notice/index.js +184 -23
- package/notification/index.js +149 -15
- package/notification/useNotification.js +141 -4
- package/notification/withNotification.js +1 -0
- package/overflow-ellipsis/OverflowItem.js +18 -15
- package/overflow-ellipsis/index.js +50 -48
- package/package.json +1 -1
- package/page-header/index.js +48 -44
- package/pagination/PageItem.js +20 -18
- package/pagination/PageJumper.js +26 -25
- package/pagination/PageOption.js +72 -31
- package/pagination/Pagination.js +116 -112
- package/pagination/index.js +1 -0
- package/pagination/interface.js +1 -0
- package/picker/Input.js +45 -41
- package/picker/InputRange.js +51 -46
- package/picker/index.js +1 -0
- package/popconfirm/index.js +57 -55
- package/popover/index.js +37 -35
- package/portal/Portal.js +8 -7
- package/portal/index.js +1 -0
- package/progress/CircleProgress.js +16 -15
- package/progress/LineProgess.js +14 -13
- package/progress/StepProgress.js +21 -19
- package/progress/index.js +46 -44
- package/qr-code/index.js +63 -1243
- package/qr-code/src/index.js +261 -0
- package/qr-code/src/qrcodegen.js +943 -0
- package/radio/Group.js +95 -14
- package/radio/GroupBlock.js +68 -8
- package/radio/Radio.js +91 -14
- package/radio/index.js +7 -5
- package/rate/index.js +56 -52
- package/resize-box/ResizeTrigger.js +47 -46
- package/resize-box/Split.js +67 -63
- package/resize-box/SplitGroup.js +35 -36
- package/resize-box/index.js +65 -62
- package/result/403.js +1 -0
- package/result/404.js +1 -0
- package/result/500.js +1 -0
- package/result/index.js +44 -42
- package/rich-text/constant.js +1 -0
- package/rich-text/index.js +95 -6294
- package/rich-text/lib/assets/icons/align-center.svg.js +5 -0
- package/rich-text/lib/assets/icons/align-justify.svg.js +5 -0
- package/rich-text/lib/assets/icons/align-left.svg.js +5 -0
- package/rich-text/lib/assets/icons/align-right.svg.js +5 -0
- package/rich-text/lib/assets/icons/background.svg.js +5 -0
- package/rich-text/lib/assets/icons/blockquote.svg.js +5 -0
- package/rich-text/lib/assets/icons/bold.svg.js +5 -0
- package/rich-text/lib/assets/icons/clean.svg.js +5 -0
- package/rich-text/lib/assets/icons/code.svg.js +5 -0
- package/rich-text/lib/assets/icons/color.svg.js +5 -0
- package/rich-text/lib/assets/icons/direction-ltr.svg.js +5 -0
- package/rich-text/lib/assets/icons/direction-rtl.svg.js +5 -0
- package/rich-text/lib/assets/icons/divider.svg.js +5 -0
- package/rich-text/lib/assets/icons/dropdown.svg.js +5 -0
- package/rich-text/lib/assets/icons/formula.svg.js +5 -0
- package/rich-text/lib/assets/icons/fullscreen-exit.svg.js +5 -0
- package/rich-text/lib/assets/icons/fullscreen.svg.js +5 -0
- package/rich-text/lib/assets/icons/header-2.svg.js +5 -0
- package/rich-text/lib/assets/icons/header-3.svg.js +5 -0
- package/rich-text/lib/assets/icons/header-4.svg.js +5 -0
- package/rich-text/lib/assets/icons/header-5.svg.js +5 -0
- package/rich-text/lib/assets/icons/header-6.svg.js +5 -0
- package/rich-text/lib/assets/icons/header.svg.js +5 -0
- package/rich-text/lib/assets/icons/image.svg.js +5 -0
- package/rich-text/lib/assets/icons/indent.svg.js +5 -0
- package/rich-text/lib/assets/icons/italic.svg.js +5 -0
- package/rich-text/lib/assets/icons/link.svg.js +5 -0
- package/rich-text/lib/assets/icons/list-bullet.svg.js +5 -0
- package/rich-text/lib/assets/icons/list-ordered.svg.js +5 -0
- package/rich-text/lib/assets/icons/outdent.svg.js +5 -0
- package/rich-text/lib/assets/icons/redo.svg.js +5 -0
- package/rich-text/lib/assets/icons/strike.svg.js +5 -0
- package/rich-text/lib/assets/icons/subscript.svg.js +5 -0
- package/rich-text/lib/assets/icons/superscript.svg.js +5 -0
- package/rich-text/lib/assets/icons/table.svg.js +5 -0
- package/rich-text/lib/assets/icons/underline.svg.js +5 -0
- package/rich-text/lib/assets/icons/undo.svg.js +5 -0
- package/rich-text/lib/assets/icons/video.svg.js +5 -0
- package/rich-text/lib/blots/block.js +130 -0
- package/rich-text/lib/blots/break.js +29 -0
- package/rich-text/lib/blots/container.js +15 -0
- package/rich-text/lib/blots/cursor.js +123 -0
- package/rich-text/lib/blots/embed.js +58 -0
- package/rich-text/lib/blots/inline.js +55 -0
- package/rich-text/lib/blots/scroll.js +279 -0
- package/rich-text/lib/blots/text.js +26 -0
- package/rich-text/lib/core/composition.js +27 -0
- package/rich-text/lib/core/editor.js +283 -0
- package/rich-text/lib/core/emitter.js +68 -0
- package/rich-text/lib/core/instances.js +5 -0
- package/rich-text/lib/core/logger.js +19 -0
- package/rich-text/lib/core/module.js +12 -0
- package/rich-text/lib/core/rich.js +442 -0
- package/rich-text/lib/core/selection.js +261 -0
- package/rich-text/lib/core/theme.js +31 -0
- package/rich-text/lib/core/utils/createRegistryWithFormats.js +33 -0
- package/rich-text/lib/core/utils/scrollRectIntoView.js +69 -0
- package/rich-text/lib/core.js +40 -0
- package/rich-text/lib/delta/AttributeMap.js +45 -0
- package/rich-text/lib/delta/Op.js +10 -0
- package/rich-text/lib/delta/OpIterator.js +52 -0
- package/rich-text/lib/delta/index.js +316 -0
- package/rich-text/lib/diff/index.js +384 -0
- package/rich-text/lib/formats/align.js +27 -0
- package/rich-text/lib/formats/background.js +27 -0
- package/rich-text/lib/formats/blockquote.js +15 -0
- package/rich-text/lib/formats/bold.js +24 -0
- package/rich-text/lib/formats/code.js +51 -0
- package/rich-text/lib/formats/color.js +34 -0
- package/rich-text/lib/formats/direction.js +27 -0
- package/rich-text/lib/formats/font.js +32 -0
- package/rich-text/lib/formats/formula.js +35 -0
- package/rich-text/lib/formats/header.js +18 -0
- package/rich-text/lib/formats/hr.js +17 -0
- package/rich-text/lib/formats/image-resize/index.js +83 -0
- package/rich-text/lib/formats/image-resize/modules/BaseModule.js +42 -0
- package/rich-text/lib/formats/image-resize/modules/DisplaySize.js +47 -0
- package/rich-text/lib/formats/image-resize/modules/Resize.js +48 -0
- package/rich-text/lib/formats/image-resize/options.js +10 -0
- package/rich-text/lib/formats/image.js +49 -0
- package/rich-text/lib/formats/indent.js +41 -0
- package/rich-text/lib/formats/italic.js +15 -0
- package/rich-text/lib/formats/lineHeight.js +21 -0
- package/rich-text/lib/formats/link.js +41 -0
- package/rich-text/lib/formats/list.js +47 -0
- package/rich-text/lib/formats/script.js +22 -0
- package/rich-text/lib/formats/size.js +31 -0
- package/rich-text/lib/formats/strike.js +15 -0
- package/rich-text/lib/formats/table.js +145 -0
- package/rich-text/lib/formats/underline.js +15 -0
- package/rich-text/lib/formats/video.js +43 -0
- package/rich-text/lib/index.js +96 -0
- package/rich-text/lib/modules/clipboard.js +385 -0
- package/rich-text/lib/modules/history.js +117 -0
- package/rich-text/lib/modules/input.js +54 -0
- package/rich-text/lib/modules/keyboard.js +516 -0
- package/rich-text/lib/modules/normalizeExternalHTML/index.js +11 -0
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/googleDocs.js +19 -0
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/msWord.js +43 -0
- package/rich-text/lib/modules/syntax.js +215 -0
- package/rich-text/lib/modules/table.js +100 -0
- package/rich-text/lib/modules/toolbar.js +180 -0
- package/rich-text/lib/modules/uiNode.js +72 -0
- package/rich-text/lib/modules/uploader.js +52 -0
- package/rich-text/lib/parchment/attributor/attributor.js +33 -0
- package/rich-text/lib/parchment/attributor/class.js +25 -0
- package/rich-text/lib/parchment/attributor/store.js +45 -0
- package/rich-text/lib/parchment/attributor/style.js +24 -0
- package/rich-text/lib/parchment/blot/abstract/container.js +29 -0
- package/rich-text/lib/parchment/blot/abstract/leaf.js +44 -0
- package/rich-text/lib/parchment/blot/abstract/parent.js +176 -0
- package/rich-text/lib/parchment/blot/abstract/shadow.js +84 -0
- package/rich-text/lib/parchment/blot/block.js +77 -0
- package/rich-text/lib/parchment/blot/embed.js +18 -0
- package/rich-text/lib/parchment/blot/inline.js +80 -0
- package/rich-text/lib/parchment/blot/scroll.js +104 -0
- package/rich-text/lib/parchment/blot/text.js +57 -0
- package/rich-text/lib/parchment/collection/linked-list.js +106 -0
- package/rich-text/lib/parchment/error.js +9 -0
- package/rich-text/lib/parchment/index.js +31 -0
- package/rich-text/lib/parchment/registry.js +59 -0
- package/rich-text/lib/parchment/scope.js +5 -0
- package/rich-text/lib/themes/base.js +171 -0
- package/rich-text/lib/themes/pqb.js +119 -0
- package/rich-text/lib/ui/color-picker.js +28 -0
- package/rich-text/lib/ui/icon-picker.js +27 -0
- package/rich-text/lib/ui/icons.js +100 -0
- package/rich-text/lib/ui/picker.js +101 -0
- package/rich-text/lib/ui/tooltip.js +41 -0
- package/row-col/Col-.js +64 -63
- package/row-col/Col.js +63 -61
- package/row-col/Row.js +32 -30
- package/row-col/context.js +1 -0
- package/row-col/index.js +1 -0
- package/segmented/index.js +39 -36
- package/select/OptGroup.js +12 -11
- package/select/Option.js +30 -26
- package/select/Select.js +238 -231
- package/select/index.js +1 -0
- package/select/utils.js +134 -0
- package/select-view/Core.js +160 -159
- package/select-view/index.js +28 -27
- package/skeleton/Image.js +14 -13
- package/skeleton/Text.js +16 -14
- package/skeleton/index.js +31 -28
- package/slider/Button.js +74 -73
- package/slider/Dot.js +21 -20
- package/slider/Input.js +25 -24
- package/slider/Mark.js +16 -15
- package/slider/Tick.js +13 -12
- package/slider/hook/useInterval.js +74 -0
- package/slider/hook/useLegalValue.js +68 -0
- package/slider/index.js +222 -347
- package/slider/utils.js +64 -0
- package/space/index.js +39 -32
- package/speech-synthesis/index.js +14 -84
- package/spin/DotLoading.js +10 -7
- package/spin/index.js +46 -44
- package/splitter/Panel.js +21 -19
- package/splitter/SplitBar.js +158 -10
- package/splitter/Splitter.js +108 -252
- package/splitter/hooks/useEvent.js +13 -0
- package/splitter/hooks/useItems.js +29 -0
- package/splitter/hooks/useResizable.js +18 -0
- package/splitter/hooks/useResize.js +71 -0
- package/splitter/hooks/useSizes.js +63 -0
- package/splitter/index.js +1 -0
- package/statistic/index.js +53 -51
- package/statistic/interface.js +1 -0
- package/steps/Step.js +15 -14
- package/steps/index.js +47 -43
- package/style/animation/fade.less +46 -0
- package/style/animation/index.less +4 -0
- package/style/animation/keyframes.less +13 -0
- package/style/animation/slide.less +132 -0
- package/style/animation/zoom.less +207 -0
- package/style/global.less +69 -0
- package/style/index.less +19 -0
- package/style/mixin/clearfix.less +13 -0
- package/style/mixin/index.less +28 -0
- package/style/normalize.less +375 -0
- package/style/override.less +4 -0
- package/style/variables.css +902 -0
- package/style/variables.less +2 -0
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +3 -2
- package/switch/index.js +78 -70
- package/table/ColGroup.js +27 -24
- package/table/Table.js +630 -32
- package/table/constant.js +1 -0
- package/table/context.js +1 -0
- package/table/hook/useColumns.js +144 -0
- package/table/hook/useComponent.js +30 -0
- package/table/hook/useExpand.js +39 -0
- package/table/hook/useRowSelection.js +96 -0
- package/table/hook/useSorter.js +56 -0
- package/table/hook/useStickyClassNames.js +32 -0
- package/table/hook/useStickyOffsets.js +29 -0
- package/table/hook/useThResizable.js +38 -0
- package/table/index.js +28 -125
- package/table/summary/Cell.js +11 -0
- package/table/summary/Row.js +25 -0
- package/table/summary/context.js +6 -0
- package/table/summary/index.js +13 -0
- package/table/tbody/Td.js +189 -0
- package/table/tbody/Tr.js +164 -0
- package/table/tbody/index.js +155 -0
- package/table/tfoot/index.js +17 -0
- package/table/th-resizable/index.js +58 -0
- package/table/thead/Column.js +259 -0
- package/table/thead/index.js +132 -0
- package/table/utils.js +118 -0
- package/tabs/Tab.js +170 -16
- package/tabs/TabContent.js +52 -6
- package/tabs/TabPane.js +13 -11
- package/tabs/hook/useDomSize.js +18 -0
- package/tabs/hook/useHeaderScroll.js +65 -0
- package/tabs/index.js +7 -6
- package/tabs/tab-header/DropdownIcon.js +67 -0
- package/tabs/tab-header/TabInk.js +66 -0
- package/tabs/tab-header/TabNavIcon.js +67 -0
- package/tabs/tab-header/TabTitle.js +80 -0
- package/tabs/tab-header/index.js +329 -0
- package/tabs/utils.js +23 -0
- package/tag/index.js +51 -47
- package/time-picker/Picker.js +126 -117
- package/time-picker/RangePicker.js +24 -22
- package/time-picker/TimeColumn.js +19 -16
- package/time-picker/TimePicker.js +156 -151
- package/time-picker/context.js +1 -0
- package/time-picker/index.js +1 -0
- package/time-picker/utils.js +36 -0
- package/timeline/Item.js +32 -30
- package/timeline/Timeline.js +44 -44
- package/timeline/index.js +1 -0
- package/tooltip/index.js +70 -64
- package/tour/index.js +89 -84
- package/transfer/Item.js +32 -30
- package/transfer/List.js +86 -81
- package/transfer/index.js +73 -72
- package/tree/Animation.js +101 -9
- package/tree/Context.js +1 -0
- package/tree/Node.js +207 -14
- package/tree/NodeList.js +39 -36
- package/tree/Tree.js +70 -69
- package/tree/index.js +2 -1
- package/tree/utils.js +77 -0
- package/tree-select/List.js +16 -15
- package/tree-select/Select.js +201 -331
- package/tree-select/hook/useKeyCache.js +56 -0
- package/tree-select/hook/useStateValue.js +94 -0
- package/tree-select/hook/useTreeData.js +14 -0
- package/tree-select/index.js +3 -2
- package/tree-select/interface.js +1 -0
- package/tree-select/utils.js +10 -0
- package/trigger/getPopupStyle.js +93 -92
- package/trigger/index.js +246 -238
- package/types/_common/higher-order/index.d.ts +1 -0
- package/types/_common/hooks/index.d.ts +97 -0
- package/types/_common/hooks/use-async-effect/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-async-effect/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-boolean/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-click-away/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-click-away/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-click-away/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-click-away/demo/demo4.d.ts +1 -0
- package/types/_common/hooks/use-click-away/demo/demo5.d.ts +1 -0
- package/types/_common/hooks/use-click-away/demo/demo6.d.ts +1 -0
- package/types/_common/hooks/use-computed-state/index.d.ts +4 -0
- package/types/_common/hooks/use-controllable-value/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-controllable-value/demo/demo2.d.ts +2 -0
- package/types/_common/hooks/use-controllable-value/demo/demo3.d.ts +2 -0
- package/types/_common/hooks/use-cookie-state/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-cookie-state/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-cookie-state/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-cookie-state/index.d.ts +7 -0
- package/types/_common/hooks/use-count-down/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-count-down/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-count-down/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-counter/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-create/index.d.ts +2 -0
- package/types/_common/hooks/use-creation/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-debounce/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-debounce-effect/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-debounce-fn/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-deep-compare-effect/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-deep-compare-layout-effect/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-document-visibility/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-drop/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-drop/demo/demo2.d.ts +2 -0
- package/types/_common/hooks/use-event-listener/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-event-listener/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-event-listener/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-event-target/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-event-target/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-external/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-external/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-external/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-favicon/demo/demo1.d.ts +3 -0
- package/types/_common/hooks/use-focus-within/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-focus-within/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-force-update/index.d.ts +16 -0
- package/types/_common/hooks/use-fullscreen/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-fullscreen/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-fullscreen/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-fullscreen/demo/demo4.d.ts +1 -0
- package/types/_common/hooks/use-fullscreen/index.d.ts +17 -0
- package/types/_common/hooks/use-get-state/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-history-travel/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-history-travel/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-history-travel/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-hover/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-hover/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-in-viewport/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-in-viewport/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-in-viewport/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-infinite-scroll/demo/default.d.ts +1 -0
- package/types/_common/hooks/use-infinite-scroll/demo/mutate.d.ts +1 -0
- package/types/_common/hooks/use-infinite-scroll/demo/pagination.d.ts +1 -0
- package/types/_common/hooks/use-infinite-scroll/demo/reload.d.ts +1 -0
- package/types/_common/hooks/use-infinite-scroll/demo/scroll.d.ts +1 -0
- package/types/_common/hooks/use-infinite-scroll/demo/scrollTop.d.ts +1 -0
- package/types/_common/hooks/use-interval/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-interval/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-key-press/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-key-press/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-key-press/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-key-press/demo/demo4.d.ts +1 -0
- package/types/_common/hooks/use-key-press/demo/demo5.d.ts +1 -0
- package/types/_common/hooks/use-key-press/demo/demo6.d.ts +1 -0
- package/types/_common/hooks/use-key-press/demo/demo7.d.ts +1 -0
- package/types/_common/hooks/use-key-press/demo/demo8.d.ts +1 -0
- package/types/_common/hooks/use-latest/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-local-storage-state/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-local-storage-state/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-local-storage-state/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-local-storage-state/demo/demo4.d.ts +1 -0
- package/types/_common/hooks/use-lock-fn/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-long-press/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-long-press/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-long-press/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-map/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-map/index.d.ts +8 -0
- package/types/_common/hooks/use-memoized-fn/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-memoized-fn/demo/demo2.d.ts +2 -0
- package/types/_common/hooks/use-mount/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-mouse/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-mouse/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-mutation-observer/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-network/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-pagination/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-pagination/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-pagination/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-pagination/demo/demo4.d.ts +2 -0
- package/types/_common/hooks/use-prefers-color-scheme-dark/index.d.ts +2 -0
- package/types/_common/hooks/use-previous/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-previous/index.d.ts +3 -0
- package/types/_common/hooks/use-raf-interval/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-raf-interval/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-raf-state/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-raf-timeout/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-raf-timeout/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-reactive/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-reactive/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-reactive/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-reactive/demo/demo4.d.ts +1 -0
- package/types/_common/hooks/use-reactive/demo/index.d.ts +1 -0
- package/types/_common/hooks/use-ref-latest/index.d.ts +2 -0
- package/types/_common/hooks/use-request/doc/basic/demo/cancel.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/basic/demo/default.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/basic/demo/lifeCycle.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/basic/demo/manual-run.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/basic/demo/manual-runAsync.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/basic/demo/mutate.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/basic/demo/params.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/basic/demo/refresh.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/cache/demo/cacheKey.d.ts +2 -0
- package/types/_common/hooks/use-request/doc/cache/demo/clearCache.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/cache/demo/params.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/cache/demo/setCache.d.ts +2 -0
- package/types/_common/hooks/use-request/doc/cache/demo/share.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/cache/demo/staleTime.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/debounce/demo/index.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/index/demo/default.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/index/demo/manual.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/loadingDelay/demo/index.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/polling/demo/index.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/polling/demo/indexError.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/ready/demo/index.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/ready/demo/indexManual.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/refreshDeps/demo/index.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/refreshDeps/demo/indexAction.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/refreshOnWindowFocus/demo/index.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/retry/demo/index.d.ts +1 -0
- package/types/_common/hooks/use-request/doc/throttle/demo/index.d.ts +1 -0
- package/types/_common/hooks/use-request/src/utils/cache.d.ts +14 -0
- package/types/_common/hooks/use-reset-state/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-resize-observer/index.d.ts +2 -0
- package/types/_common/hooks/use-responsive/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-safe-state/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-scroll/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-scroll/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-scroll/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-selections/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-selections/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-selections/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-set/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-set/index.d.ts +6 -0
- package/types/_common/hooks/use-set-state/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-set-state/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-size/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-size/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-text-selection/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-text-selection/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-text-selection/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-theme/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-theme/index.d.ts +16 -0
- package/types/_common/hooks/use-throttle/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-throttle-effect/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-throttle-fn/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-timeout/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-timeout/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-title/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-toggle/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-toggle/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-tracked-effect/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-unmount/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-unmounted-ref/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-update/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-update-effect/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-update-layout-effect/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-url-state/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-url-state/demo/demo2.d.ts +1 -0
- package/types/_common/hooks/use-url-state/demo/demo3.d.ts +1 -0
- package/types/_common/hooks/use-url-state/demo/demo4.d.ts +1 -0
- package/types/_common/hooks/use-url-state/index.d.ts +10 -0
- package/types/_common/hooks/use-virtual-list/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-virtual-list/demo/demo2.d.ts +2 -0
- package/types/_common/hooks/use-web-socket/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/use-why-did-you-update/demo/demo1.d.ts +1 -0
- package/types/_common/hooks/utils/index.d.ts +2 -0
- package/types/_common/hooks/utils/isAppleDevice.d.ts +2 -0
- package/types/_common/hooks/utils/isBrowser.d.ts +2 -0
- package/types/_common/hooks/utils/isDev.d.ts +2 -0
- package/types/_common/hooks/utils/rect.d.ts +4 -0
- package/types/_common/index.d.ts +16 -0
- package/types/_common/progress/index.d.ts +437 -0
- package/types/_common/transition-group/CSSTransition.d.ts +98 -0
- package/types/_common/transition-group/PqbCSSTransition.d.ts +4 -0
- package/types/_common/transition-group/ReplaceTransition.d.ts +23 -0
- package/types/_common/transition-group/SwitchTransition.d.ts +88 -0
- package/types/_common/transition-group/Transition.d.ts +130 -0
- package/types/_common/transition-group/TransitionGroup.d.ts +31 -0
- package/types/_common/transition-group/TransitionGroupContext.d.ts +3 -0
- package/types/_common/transition-group/index.d.ts +10 -0
- package/types/_common/transition-group/utils/ChildMapping.d.ts +27 -0
- package/types/_common/utils/caseName.d.ts +2 -0
- package/types/_common/utils/className.d.ts +2 -0
- package/types/_common/utils/compute.d.ts +100 -0
- package/types/_common/utils/constant.d.ts +3 -0
- package/types/_common/utils/copy.d.ts +4 -0
- package/types/_common/utils/date.d.ts +2 -0
- package/types/_common/utils/dayjs.d.ts +3 -0
- package/types/_common/utils/dom.d.ts +27 -0
- package/types/_common/utils/emitter.d.ts +2 -0
- package/types/_common/utils/fileToURL.d.ts +2 -0
- package/types/_common/utils/findScrollParent.d.ts +2 -0
- package/types/_common/utils/index.d.ts +45 -0
- package/types/_common/utils/intersectionObserver.d.ts +3 -0
- package/types/_common/utils/is.d.ts +18 -0
- package/types/_common/utils/keyboardCode.d.ts +5 -0
- package/types/_common/utils/lodash.d.ts +60 -0
- package/types/_common/utils/math.d.ts +2 -0
- package/types/_common/utils/mutationObserver.d.ts +3 -0
- package/types/_common/utils/pick.d.ts +6 -0
- package/types/_common/utils/pinyin.d.ts +2 -0
- package/types/_common/utils/reactDOM.d.ts +34 -0
- package/types/_common/utils/saveAs.d.ts +2 -0
- package/types/_common/utils/screenfull.d.ts +2 -0
- package/types/_common/utils/scrollIntoViewIfNeeded.d.ts +12 -0
- package/types/_common/utils/setDarkTheme.d.ts +4 -0
- package/types/_common/utils/setDir.d.ts +3 -0
- package/types/_common/utils/setPrimaryColor.d.ts +3 -0
- package/types/_common/utils/setTheme.d.ts +3 -0
- package/types/_common/utils/throttleByRaf2.d.ts +6 -0
- package/types/_common/utils/tinycolor.d.ts +3 -0
- package/types/_common/utils/tree.d.ts +2 -0
- package/types/_common/utils/tween.d.ts +2 -0
- package/types/_common/utils/validate.d.ts +2 -0
- package/types/anchor/index.d.ts +5 -0
- package/types/anchor/interface.d.ts +103 -0
- package/types/anchor/utils.d.ts +5 -0
- package/types/app/App.d.ts +6 -0
- package/types/badge/Count.d.ts +8 -0
- package/types/badge/interface.d.ts +93 -0
- package/types/breadcrumb/Item.d.ts +8 -0
- package/types/calendar/Lunar.d.ts +17 -0
- package/types/calendar/Month.d.ts +16 -0
- package/types/calendar/WeekList.d.ts +11 -0
- package/types/calendar/Year.d.ts +14 -0
- package/types/calendar/header/Panel.d.ts +2 -0
- package/types/calendar/header/index.d.ts +2 -0
- package/types/calendar/index.d.ts +10 -0
- package/types/card/interface.d.ts +106 -0
- package/types/cascader/Cascader.d.ts +17 -0
- package/types/cascader/base/node.d.ts +78 -0
- package/types/cascader/panel/List.d.ts +5 -0
- package/types/cascader/panel/Option.d.ts +23 -0
- package/types/cascader/panel/Search.d.ts +28 -0
- package/types/checkbox/Group.d.ts +17 -0
- package/types/checkbox/GroupBlock.d.ts +7 -0
- package/types/checkbox/IconCheck.d.ts +4 -0
- package/types/color-picker/InputRgb.d.ts +10 -0
- package/types/color-picker/Palette.d.ts +7 -0
- package/types/color-picker/hooks/useColorPicker.d.ts +39 -0
- package/types/config-provider/ConfigProvider.d.ts +11 -0
- package/types/config-provider/index.d.ts +4 -0
- package/types/config-provider/interface.d.ts +259 -0
- package/types/copy/index.d.ts +7 -0
- package/types/date-picker/RangePicker.d.ts +3 -0
- package/types/date-picker/interface.d.ts +505 -0
- package/types/date-picker/panel/Body.d.ts +30 -0
- package/types/date-picker/panel/Footer.d.ts +2 -0
- package/types/date-picker/panel/Header.d.ts +20 -0
- package/types/date-picker/panel/WeekList.d.ts +8 -0
- package/types/date-picker/panel/date/index.d.ts +24 -0
- package/types/date-picker/panel/month/index.d.ts +17 -0
- package/types/date-picker/panel/quarter/index.d.ts +17 -0
- package/types/date-picker/panel/range/index.d.ts +28 -0
- package/types/date-picker/panel/week/index.d.ts +16 -0
- package/types/date-picker/panel/year/index.d.ts +16 -0
- package/types/descriptions/index.d.ts +7 -0
- package/types/development/interface.d.ts +15 -0
- package/types/draggable/Item.d.ts +3 -0
- package/types/draggable/index.d.ts +4 -0
- package/types/empty/interface.d.ts +8 -0
- package/types/flex/interface.d.ts +9 -0
- package/types/form/Control.d.ts +64 -0
- package/types/form/FormList.d.ts +7 -0
- package/types/form/IconSymbol.d.ts +4 -0
- package/types/form/interface.d.ts +541 -0
- package/types/form/utils.d.ts +13 -0
- package/types/hooks/index.d.ts +4 -0
- package/types/hooks/use-computed-state/index.d.ts +2 -0
- package/types/hooks/use-create/index.d.ts +2 -0
- package/types/hooks/use-creation/index.d.ts +2 -0
- package/types/hooks/use-force-update/index.d.ts +2 -0
- package/types/hooks/use-id/index.d.ts +2 -0
- package/types/hooks/use-in-view/index.d.ts +2 -0
- package/types/hooks/use-intersection-observer/index.d.ts +2 -0
- package/types/hooks/use-interval/index.d.ts +2 -0
- package/types/hooks/use-is-first-render/index.d.ts +2 -0
- package/types/hooks/use-isomorphic-layout-effect/index.d.ts +2 -0
- package/types/hooks/use-keyboard-event/index.d.ts +2 -0
- package/types/hooks/use-listen-window-resize/index.d.ts +2 -0
- package/types/hooks/use-media/index.d.ts +2 -0
- package/types/hooks/use-merge-props/index.d.ts +2 -0
- package/types/hooks/use-merge-value/index.d.ts +2 -0
- package/types/hooks/use-online-status/index.d.ts +2 -0
- package/types/hooks/use-overflow-hidden/index.d.ts +2 -0
- package/types/hooks/use-override-ref/index.d.ts +2 -0
- package/types/hooks/use-persist-callback/index.d.ts +2 -0
- package/types/hooks/use-prefers-color-scheme-dark/index.d.ts +2 -0
- package/types/hooks/use-previous/index.d.ts +2 -0
- package/types/hooks/use-refs/index.d.ts +2 -0
- package/types/hooks/use-resize-observer/index.d.ts +2 -0
- package/types/hooks/use-responsive-state/index.d.ts +4 -0
- package/types/hooks/use-state-callback/index.d.ts +2 -0
- package/types/hooks/use-state-with-promise/index.d.ts +2 -0
- package/types/hooks/use-update-effect/index.d.ts +2 -0
- package/types/hooks/use-watch/index.d.ts +2 -0
- package/types/hooks/use-window-size/index.d.ts +2 -0
- package/types/icons/file/interface.d.ts +7 -0
- package/types/icons.d.ts +4 -0
- package/types/image/ImageFooter.d.ts +13 -0
- package/types/image/ImagePreviewArrow.d.ts +11 -0
- package/types/image/TriggerForToolbar.d.ts +10 -0
- package/types/image/interface.d.ts +262 -0
- package/types/index.d.ts +187 -0
- package/types/input/Input.d.ts +26 -0
- package/types/input/interface.d.ts +332 -0
- package/types/layout/interface.d.ts +119 -0
- package/types/menu/Indent.d.ts +6 -0
- package/types/menu/OverflowWrap.d.ts +9 -0
- package/types/menu/context.d.ts +15 -0
- package/types/menu/sub-menu/Inline.d.ts +5 -0
- package/types/menu/sub-menu/Pop.d.ts +5 -0
- package/types/message/interface.d.ts +90 -0
- package/types/modal/interface.d.ts +198 -0
- package/types/overflow-ellipsis/OverflowItem.d.ts +3 -0
- package/types/overflow-ellipsis/index.d.ts +6 -0
- package/types/pagination/PageItem.d.ts +18 -0
- package/types/pagination/PageJumper.d.ts +13 -0
- package/types/pagination/PageOption.d.ts +17 -0
- package/types/progress/CircleProgress.d.ts +8 -0
- package/types/progress/LineProgess.d.ts +2 -0
- package/types/progress/StepProgress.d.ts +2 -0
- package/types/qr-code/examples/download.d.ts +2 -0
- package/types/qr-code/examples/full.d.ts +2 -0
- package/types/qr-code/examples/image.d.ts +2 -0
- package/types/qr-code/interface.d.ts +132 -0
- package/types/qr-code/src/index.d.ts +10 -0
- package/types/radio/Group.d.ts +10 -0
- package/types/radio/GroupBlock.d.ts +7 -0
- package/types/radio/Radio.d.ts +15 -0
- package/types/resize-box/ResizeTrigger.d.ts +31 -0
- package/types/result/403.d.ts +2 -0
- package/types/result/404.d.ts +2 -0
- package/types/result/500.d.ts +2 -0
- package/types/select/interface.d.ts +313 -0
- package/types/select/utils.d.ts +25 -0
- package/types/skeleton/Image.d.ts +3 -0
- package/types/skeleton/Text.d.ts +3 -0
- package/types/slider/Button.d.ts +21 -0
- package/types/slider/Input.d.ts +15 -0
- package/types/slider/Tick.d.ts +14 -0
- package/types/space/interface.d.ts +9 -0
- package/types/speech-synthesis/index.d.ts +3 -0
- package/types/speech-synthesis/interface.d.ts +7 -0
- package/types/spin/DotLoading.d.ts +6 -0
- package/types/suspense-fallback-test/index.d.ts +2 -0
- package/types/suspense-fallback-test/interface.d.ts +2 -0
- package/types/table/ColGroup.d.ts +13 -0
- package/types/table/summary/Cell.d.ts +11 -0
- package/types/table/summary/Row.d.ts +6 -0
- package/types/table/tbody/Td.d.ts +25 -0
- package/types/table/tbody/index.d.ts +4 -0
- package/types/table/tfoot/index.d.ts +3 -0
- package/types/table/th-resizable/index.d.ts +2 -0
- package/types/table/thead/Column.d.ts +2 -0
- package/types/table/thead/index.d.ts +4 -0
- package/types/tabs/TabContent.d.ts +9 -0
- package/types/tabs/tab-header/DropdownIcon.d.ts +2 -0
- package/types/tabs/tab-header/TabInk.d.ts +11 -0
- package/types/tabs/tab-header/TabNavIcon.d.ts +17 -0
- package/types/time-picker/Picker.d.ts +15 -0
- package/types/time-picker/RangePicker.d.ts +12 -0
- package/types/time-picker/TimeColumn.d.ts +17 -0
- package/types/time-picker/TimePicker.d.ts +24 -0
- package/types/time-picker/index.d.ts +9 -0
- package/types/time-picker/interface.d.ts +237 -0
- package/types/transfer/Item.d.ts +3 -0
- package/types/transfer/List.d.ts +5 -0
- package/types/tree/Animation.d.ts +4 -0
- package/types/trigger/interface.d.ts +242 -0
- package/types/typography/Operations.d.ts +4 -0
- package/types/upload/index.d.ts +6 -0
- package/types/upload/interface.d.ts +330 -0
- package/types/upload/list/index.d.ts +6 -0
- package/types/utils/caseName.d.ts +4 -0
- package/types/utils/className.d.ts +4 -0
- package/types/utils/constant.d.ts +4 -0
- package/types/utils/contextHolder.d.ts +10 -0
- package/types/utils/copy.d.ts +4 -0
- package/types/utils/date.d.ts +2 -0
- package/types/utils/dayjs.d.ts +26 -0
- package/types/utils/dom.d.ts +2 -0
- package/types/utils/emitter.d.ts +2 -0
- package/types/utils/fileToURL.d.ts +4 -0
- package/types/utils/fillNBSP.d.ts +4 -0
- package/types/utils/findScrollParent.d.ts +3 -0
- package/types/utils/getHighlightText.d.ts +4 -0
- package/types/utils/getHotkeyHandler.d.ts +5 -0
- package/types/utils/getStringLength.d.ts +4 -0
- package/types/utils/include.d.ts +4 -0
- package/types/utils/index.d.ts +48 -0
- package/types/utils/intersectionObserver.d.ts +3 -0
- package/types/utils/is.d.ts +2 -0
- package/types/utils/keyboardCode.d.ts +6 -0
- package/types/utils/lodash.d.ts +2 -0
- package/types/utils/math.d.ts +2 -0
- package/types/utils/mergeProps.d.ts +4 -0
- package/types/utils/mergedToString.d.ts +4 -0
- package/types/utils/mutationObserver.d.ts +3 -0
- package/types/utils/names.d.ts +747 -0
- package/types/utils/omit.d.ts +4 -0
- package/types/utils/pad.d.ts +2 -0
- package/types/utils/pick.d.ts +4 -0
- package/types/utils/pinyin.d.ts +2 -0
- package/types/utils/react19Adapter.d.ts +2 -0
- package/types/utils/reactDOM.d.ts +2 -0
- package/types/utils/resizeObserver.d.ts +3 -0
- package/types/utils/saveAs.d.ts +4 -0
- package/types/utils/screenfull.d.ts +4 -0
- package/types/utils/scrollIntoViewIfNeeded.d.ts +4 -0
- package/types/utils/setDarkTheme.d.ts +5 -0
- package/types/utils/setPrimaryColor.d.ts +4 -0
- package/types/utils/setTheme.d.ts +4 -0
- package/types/utils/style.d.ts +2 -0
- package/types/utils/throttleByRaf.d.ts +2 -0
- package/types/utils/throttleByRaf2.d.ts +2 -0
- package/types/utils/toArray.d.ts +4 -0
- package/types/utils/tree.d.ts +3 -0
- package/types/utils/tween.d.ts +2 -0
- package/types/utils/uuid.d.ts +1 -0
- package/types/utils/validate.d.ts +2 -0
- package/types/utils/warning.d.ts +2 -0
- package/types/verification-code/VerificationCode.d.ts +10 -0
- package/types/verification-code/index.d.ts +6 -0
- package/types/version/index.d.ts +4 -0
- package/types/virtual-list/interface.d.ts +56 -0
- package/types/watermark/Watermark.d.ts +6 -0
- package/types/watermark/index.d.ts +6 -0
- package/typography/Base.js +61 -59
- package/typography/EditContent.js +27 -26
- package/typography/Ellipsis.js +54 -52
- package/typography/Operations.js +32 -33
- package/typography/Paragraph.js +14 -12
- package/typography/Text.js +1 -0
- package/typography/Title.js +1 -0
- package/typography/Typography.js +9 -7
- package/typography/index.js +1 -0
- package/typography/useCssEllipsis.js +17 -16
- package/typography/useEllipsis.js +25 -24
- package/upload/TriggerNode.js +35 -33
- package/upload/Upload.js +125 -522
- package/upload/Uploader.js +85 -79
- package/upload/constant.js +1 -0
- package/upload/index.js +5 -4
- package/upload/list/PictureItem.js +109 -0
- package/upload/list/TextItem.js +117 -0
- package/upload/list/UploadProgress.js +91 -0
- package/upload/list/index.js +142 -0
- package/upload/request.js +24 -21
- package/upload/utils.js +61 -0
- package/utils/caseName.js +1 -0
- package/utils/className.js +4 -3
- package/utils/constant.js +7 -6
- package/utils/contextHolder.js +27 -4
- package/utils/copy.js +1 -0
- package/utils/date.js +1 -0
- package/utils/dayjs.js +173 -17
- package/utils/dom.js +14 -7
- package/utils/emitter.js +1 -0
- package/utils/fileToURL.js +1 -0
- package/utils/fillNBSP.js +4 -3
- package/utils/findScrollParent.js +3 -15
- package/utils/getHighlightText.js +2 -1
- package/utils/getHotkeyHandler.js +2 -1
- package/utils/getStringLength.js +2 -1
- package/utils/include.js +2 -1
- package/utils/index.js +341 -262
- package/utils/intersectionObserver.js +2 -1
- package/utils/is.js +41 -40
- package/utils/keyboardCode.js +1 -0
- package/utils/lodash.js +119 -33
- package/utils/math.js +1 -0
- package/utils/mergeProps.js +2 -1
- package/utils/mergedToString.js +2 -1
- package/utils/mutationObserver.js +3 -2
- package/utils/names.js +1 -0
- package/utils/omit.js +2 -1
- package/utils/pad.js +4 -16
- package/utils/pick.js +6 -5
- package/utils/pinyin.js +1 -0
- package/utils/react19Adapter.js +2 -3
- package/utils/reactDOM.js +4 -3
- package/utils/resizeObserver.js +3 -2
- package/utils/responsiveObserve.js +2 -1
- package/utils/saveAs.js +1 -0
- package/utils/screenfull.js +4 -3
- package/utils/scrollIntoViewIfNeeded.js +7 -8
- package/utils/setDarkTheme.js +11 -30
- package/utils/setPrimaryColor.js +7 -30
- package/utils/setTheme.js +7 -6
- package/utils/style.js +5 -37
- package/utils/throttleByRaf.js +4 -14
- package/utils/throttleByRaf2.js +2 -1
- package/utils/toArray.js +2 -1
- package/utils/tree.js +1 -0
- package/utils/tween.js +5 -4
- package/utils/uuid.js +1 -0
- package/utils/validate.js +15 -14
- package/utils/warning.js +4 -9
- package/verification-code/VerificationCode.js +28 -25
- package/verification-code/index.js +4 -1
- package/version/index.js +2 -1
- package/virtual-list/Filler.js +1 -0
- package/virtual-list/VirtualList.js +282 -393
- package/virtual-list/index.js +1 -0
- package/virtual-list/utils/algorithm.js +33 -0
- package/virtual-list/utils/item.js +101 -0
- package/watermark/Watermark.js +27 -23
- package/watermark/index.js +4 -1
- package/affix/interface.js +0 -1
- package/alert/interface.js +0 -1
- package/anchor/interface.js +0 -1
- package/anchor/util.js +0 -50
- package/app/interface.js +0 -1
- package/auto-complete/interface.js +0 -1
- package/avatar/interface.js +0 -1
- package/back-top/interface.js +0 -1
- package/badge/interface.js +0 -1
- package/breadcrumb/interface.js +0 -1
- package/button/interface.js +0 -1
- package/calendar/interface.js +0 -1
- package/card/interface.js +0 -1
- package/carousel/interface.js +0 -1
- package/cascader/interface.js +0 -1
- package/cascader/util.js +0 -17
- package/checkbox/interface.js +0 -1
- package/chunk/-PX9OR3r.js +0 -154
- package/chunk/2vdCeheu.js +0 -19
- package/chunk/8w-ItYb1.js +0 -9
- package/chunk/B4h3m4Jx.js +0 -69
- package/chunk/B5RFT17G.js +0 -15
- package/chunk/B7M-FGia.js +0 -41
- package/chunk/BE7UY3my.js +0 -53
- package/chunk/BJ9_azwQ.js +0 -1391
- package/chunk/BJeTDXdz.js +0 -8
- package/chunk/BKKEev13.js +0 -11
- package/chunk/BL9DMeor.js +0 -9
- package/chunk/BO_5qdS_.js +0 -13
- package/chunk/BcWPf1id.js +0 -31
- package/chunk/BcdTSJks.js +0 -48
- package/chunk/Bl3hZtxi.js +0 -51
- package/chunk/BqWBaRtM.js +0 -26
- package/chunk/Bvxzb1wd.js +0 -16
- package/chunk/C0pqKVwu.js +0 -18
- package/chunk/CAA93JLq.js +0 -6
- package/chunk/CEAeR6xB.js +0 -24
- package/chunk/CHQ8c547.js +0 -30
- package/chunk/CKojyqln.js +0 -925
- package/chunk/CN7NKv_2.js +0 -11
- package/chunk/CQPG8hFg.js +0 -56
- package/chunk/CRgtPpMG.js +0 -261
- package/chunk/CT7ury1Z.js +0 -13
- package/chunk/CTMmW21t.js +0 -13
- package/chunk/CVMFAeSw.js +0 -39
- package/chunk/CVjWKHBo.js +0 -1470
- package/chunk/CYPFoLks.js +0 -640
- package/chunk/CYhxqVkn.js +0 -9
- package/chunk/Ca6eMq_Y.js +0 -8
- package/chunk/CcH9qbbg.js +0 -1841
- package/chunk/CdXR6dj7.js +0 -4
- package/chunk/CftuXmo_.js +0 -6
- package/chunk/Ch4iApRQ.js +0 -470
- package/chunk/CjNkKiBA.js +0 -7
- package/chunk/ClNkxEcR.js +0 -154
- package/chunk/ClqoGc3r.js +0 -17
- package/chunk/Cs9GrNJa.js +0 -573
- package/chunk/CsqGBZv1.js +0 -10
- package/chunk/CwLSam2p.js +0 -2123
- package/chunk/CxbF1opI.js +0 -231
- package/chunk/Cy26_CKq.js +0 -33
- package/chunk/D1iEYgh3.js +0 -27
- package/chunk/D3F0iWPu.js +0 -14
- package/chunk/D6I1_o6O.js +0 -164
- package/chunk/DE-83rKc.js +0 -23
- package/chunk/DEpQcf8m.js +0 -20
- package/chunk/DGU7ULZK.js +0 -86
- package/chunk/DH7HTOV_.js +0 -11
- package/chunk/DKHXj8Kf.js +0 -9
- package/chunk/DPDyV8yt.js +0 -833
- package/chunk/DQ8_XXrH.js +0 -27
- package/chunk/DS_deHpN.js +0 -180
- package/chunk/DX1O8GPj.js +0 -16
- package/chunk/DfChiMIE.js +0 -15
- package/chunk/Dh-zFF65.js +0 -15
- package/chunk/Dh7Osrvr.js +0 -27
- package/chunk/DmHIX8hU.js +0 -503
- package/chunk/DsaQZE4X.js +0 -45
- package/chunk/DstheLSK.js +0 -806
- package/chunk/Dt2nDgq_.js +0 -178
- package/chunk/DxYoPlum.js +0 -50
- package/chunk/FgWHhRFz.js +0 -17
- package/chunk/HFPyZ48d.js +0 -211
- package/chunk/LTS4rIKA.js +0 -70
- package/chunk/Ry6vahfr.js +0 -15
- package/chunk/efH9HX0H.js +0 -296
- package/chunk/exc7v_Hl.js +0 -53
- package/chunk/gJsdBcpG.js +0 -10
- package/chunk/oopARUrq.js +0 -10
- package/chunk/rT6qmv-Y.js +0 -24
- package/chunk/yXI2bb8U.js +0 -110
- package/chunk/zmmqLCF4.js +0 -20
- package/collapse/interface.js +0 -1
- package/comment/interface.js +0 -1
- package/config-provider/interface.js +0 -1
- package/copy/interface.js +0 -1
- package/countdown/interface.js +0 -1
- package/countdown/util.js +0 -29
- package/date-picker/interface.js +0 -1
- package/date-picker/util.js +0 -75
- package/descriptions/interface.js +0 -1
- package/details/interface.js +0 -1
- package/development/interface.js +0 -1
- package/divider/interface.js +0 -1
- package/draggable/interface.js +0 -1
- package/drawer/interface.js +0 -1
- package/dropdown/interface.js +0 -1
- package/empty/interface.js +0 -1
- package/flex/interface.js +0 -1
- package/form/util.js +0 -84
- package/grid/interface.js +0 -1
- package/grid/util.js +0 -13
- package/icon/interface.js +0 -1
- package/icon-hover/interface.js +0 -1
- package/image/interface.js +0 -1
- package/input/interface.js +0 -1
- package/input-number/interface.js +0 -1
- package/input-number/util.js +0 -57
- package/input-tag/interface.js +0 -1
- package/layout/interface.js +0 -1
- package/link/interface.js +0 -1
- package/liquid-fill/interface.js +0 -1
- package/list/interface.js +0 -1
- package/loading/interface.js +0 -1
- package/locale/interface.js +0 -1
- package/marquee/interface.js +0 -1
- package/marquee-/index.js +0 -241
- package/marquee-/interface.js +0 -1
- package/mentions/interface.js +0 -1
- package/mentions/util.js +0 -27
- package/menu/interface.js +0 -1
- package/menu/util.js +0 -78
- package/message/interface.js +0 -1
- package/modal/interface.js +0 -1
- package/notification/interface.js +0 -1
- package/overflow-ellipsis/interface.js +0 -1
- package/page-header/interface.js +0 -1
- package/popconfirm/interface.js +0 -1
- package/popover/interface.js +0 -1
- package/portal/interface.js +0 -1
- package/progress/interface.js +0 -1
- package/qr-code/interface.js +0 -1
- package/radio/interface.js +0 -1
- package/rate/interface.js +0 -1
- package/resize-box/interface.js +0 -1
- package/result/interface.js +0 -1
- package/rich-text/interface.js +0 -1
- package/row-col/interface.js +0 -1
- package/segmented/interface.js +0 -1
- package/select/interface.js +0 -1
- package/select/util.js +0 -137
- package/select-view/interface.js +0 -1
- package/skeleton/interface.js +0 -1
- package/slider/interface.js +0 -1
- package/slider/util.js +0 -63
- package/space/interface.js +0 -1
- package/speech-synthesis/interface.js +0 -1
- package/spin/interface.js +0 -1
- package/splitter/interface.js +0 -1
- package/steps/interface.js +0 -1
- package/suspense-fallback-test/interface.js +0 -1
- package/switch/interface.js +0 -1
- package/table/interface.js +0 -1
- package/table/util.js +0 -121
- package/tabs/interface.js +0 -1
- package/tabs/util.js +0 -22
- package/tag/interface.js +0 -1
- package/time-picker/interface.js +0 -1
- package/time-picker/util.js +0 -34
- package/timeline/interface.js +0 -1
- package/tooltip/interface.js +0 -1
- package/tour/interface.js +0 -1
- package/transfer/interface.js +0 -1
- package/tree/interface.js +0 -1
- package/tree/util.js +0 -76
- package/tree-select/util.js +0 -9
- package/trigger/interface.js +0 -1
- package/types/common/hooks/src/index.d.ts +0 -74
- package/types/common/hooks/src/use-cookie-state/index.d.ts +0 -7
- package/types/common/hooks/src/use-fullscreen/index.d.ts +0 -17
- package/types/common/hooks/src/use-previous/index.d.ts +0 -3
- package/types/common/hooks/src/use-request/src/utils/cache.d.ts +0 -14
- package/types/common/hooks/src/use-theme/index.d.ts +0 -16
- package/types/common/hooks/src/use-url-state/index.d.ts +0 -10
- package/types/common/hooks/src/utils/is.d.ts +0 -1
- package/types/common/hooks/src/utils/isAppleDevice.d.ts +0 -2
- package/types/common/hooks/src/utils/isBrowser.d.ts +0 -2
- package/types/common/hooks/src/utils/isDev.d.ts +0 -2
- package/types/common/hooks/src/utils/rect.d.ts +0 -4
- package/types/common/hooks/useForceUpdate.d.ts +0 -16
- package/types/common/hooks/useInterval.d.ts +0 -1
- package/types/common/hooks/useIsomorphicLayoutEffect.d.ts +0 -1
- package/types/common/hooks/usePrefersColorSchemeDark.d.ts +0 -2
- package/types/common/hooks/usePrevious.d.ts +0 -1
- package/types/common/hooks/useResizeObserver.d.ts +0 -2
- package/types/common/hooks/useUpdateEffect.d.ts +0 -2
- package/types/common/utils/PqbCSSTransition.d.ts +0 -4
- package/types/common/utils/caseName.d.ts +0 -1
- package/types/common/utils/className.d.ts +0 -1
- package/types/common/utils/constant.d.ts +0 -3
- package/types/common/utils/copy.d.ts +0 -3
- package/types/common/utils/dayjs.d.ts +0 -24
- package/types/common/utils/dom.d.ts +0 -24
- package/types/common/utils/emitter.d.ts +0 -1
- package/types/common/utils/fileToURL.d.ts +0 -1
- package/types/common/utils/findScrollParent.d.ts +0 -2
- package/types/common/utils/intersectionObserver.d.ts +0 -2
- package/types/common/utils/is.d.ts +0 -16
- package/types/common/utils/lodash.d.ts +0 -18
- package/types/common/utils/mutationObserver.d.ts +0 -2
- package/types/common/utils/pick.d.ts +0 -6
- package/types/common/utils/pinyin.d.ts +0 -1
- package/types/common/utils/reactDOM.d.ts +0 -34
- package/types/common/utils/saveAs.d.ts +0 -1
- package/types/common/utils/screenfull.d.ts +0 -1
- package/types/common/utils/scrollIntoViewIfNeeded.d.ts +0 -4
- package/types/common/utils/setDarkTheme.d.ts +0 -3
- package/types/common/utils/setDir.d.ts +0 -2
- package/types/common/utils/setPrimaryColor.d.ts +0 -2
- package/types/common/utils/setTheme.d.ts +0 -2
- package/types/common/utils/tree.d.ts +0 -1
- package/types/common/utils/tween.d.ts +0 -1
- package/types/common/utils/type.d.ts +0 -6
- package/types/common/utils/validate.d.ts +0 -2
- package/types/pc/anchor/index.d.ts +0 -5
- package/types/pc/anchor/interface.d.ts +0 -103
- package/types/pc/anchor/util.d.ts +0 -5
- package/types/pc/app/App.d.ts +0 -6
- package/types/pc/badge/Count.d.ts +0 -8
- package/types/pc/badge/interface.d.ts +0 -94
- package/types/pc/breadcrumb/Item.d.ts +0 -8
- package/types/pc/calendar/Lunar.d.ts +0 -17
- package/types/pc/calendar/Month.d.ts +0 -15
- package/types/pc/calendar/WeekList.d.ts +0 -10
- package/types/pc/calendar/Year.d.ts +0 -13
- package/types/pc/calendar/header/Panel.d.ts +0 -2
- package/types/pc/calendar/header/index.d.ts +0 -2
- package/types/pc/calendar/index.d.ts +0 -10
- package/types/pc/card/interface.d.ts +0 -107
- package/types/pc/cascader/Cascader.d.ts +0 -17
- package/types/pc/cascader/base/node.d.ts +0 -78
- package/types/pc/cascader/panel/List.d.ts +0 -4
- package/types/pc/cascader/panel/Option.d.ts +0 -23
- package/types/pc/cascader/panel/Search.d.ts +0 -28
- package/types/pc/checkbox/Group.d.ts +0 -17
- package/types/pc/checkbox/GroupBlock.d.ts +0 -7
- package/types/pc/checkbox/IconCheck.d.ts +0 -4
- package/types/pc/color-picker/InputRgb.d.ts +0 -10
- package/types/pc/color-picker/Palette.d.ts +0 -7
- package/types/pc/color-picker/hooks/useColorPicker.d.ts +0 -39
- package/types/pc/config-provider/ConfigProvider.d.ts +0 -11
- package/types/pc/config-provider/index.d.ts +0 -4
- package/types/pc/config-provider/interface.d.ts +0 -260
- package/types/pc/copy/index.d.ts +0 -7
- package/types/pc/date-picker/RangePicker.d.ts +0 -3
- package/types/pc/date-picker/interface.d.ts +0 -501
- package/types/pc/date-picker/panel/Body.d.ts +0 -30
- package/types/pc/date-picker/panel/Footer.d.ts +0 -2
- package/types/pc/date-picker/panel/Header.d.ts +0 -20
- package/types/pc/date-picker/panel/WeekList.d.ts +0 -8
- package/types/pc/date-picker/panel/date/index.d.ts +0 -24
- package/types/pc/date-picker/panel/month/index.d.ts +0 -17
- package/types/pc/date-picker/panel/quarter/index.d.ts +0 -17
- package/types/pc/date-picker/panel/range/index.d.ts +0 -28
- package/types/pc/date-picker/panel/week/index.d.ts +0 -16
- package/types/pc/date-picker/panel/year/index.d.ts +0 -16
- package/types/pc/descriptions/index.d.ts +0 -7
- package/types/pc/development/interface.d.ts +0 -15
- package/types/pc/draggable/Item.d.ts +0 -3
- package/types/pc/draggable/index.d.ts +0 -3
- package/types/pc/empty/interface.d.ts +0 -8
- package/types/pc/flex/interface.d.ts +0 -9
- package/types/pc/form/Control.d.ts +0 -64
- package/types/pc/form/FormList.d.ts +0 -6
- package/types/pc/form/IconSymbol.d.ts +0 -4
- package/types/pc/form/interface.d.ts +0 -541
- package/types/pc/form/util.d.ts +0 -14
- package/types/pc/hooks/index.d.ts +0 -29
- package/types/pc/hooks/useCreation.d.ts +0 -1
- package/types/pc/hooks/useForceUpdate.d.ts +0 -1
- package/types/pc/hooks/useId.d.ts +0 -1
- package/types/pc/hooks/useInView.d.ts +0 -1
- package/types/pc/hooks/useIntersectionObserver.d.ts +0 -1
- package/types/pc/hooks/useInterval.d.ts +0 -1
- package/types/pc/hooks/useIsFirstRender.d.ts +0 -1
- package/types/pc/hooks/useIsomorphicLayoutEffect.d.ts +0 -1
- package/types/pc/hooks/useKeyboardEvent.d.ts +0 -1
- package/types/pc/hooks/useListenWindowResize.d.ts +0 -1
- package/types/pc/hooks/useMedia.d.ts +0 -1
- package/types/pc/hooks/useMergeProps.d.ts +0 -2
- package/types/pc/hooks/useMergeValue.d.ts +0 -1
- package/types/pc/hooks/useOnlineStatus.d.ts +0 -1
- package/types/pc/hooks/useOverflowHidden.d.ts +0 -1
- package/types/pc/hooks/useOverrideRef.d.ts +0 -1
- package/types/pc/hooks/usePersistCallback.d.ts +0 -1
- package/types/pc/hooks/usePrefersColorSchemeDark.d.ts +0 -1
- package/types/pc/hooks/usePrevious.d.ts +0 -1
- package/types/pc/hooks/useRefs.d.ts +0 -1
- package/types/pc/hooks/useResizeObserver.d.ts +0 -1
- package/types/pc/hooks/useResponsiveState.d.ts +0 -3
- package/types/pc/hooks/useStateCallback.d.ts +0 -1
- package/types/pc/hooks/useStateWithPromise.d.ts +0 -1
- package/types/pc/hooks/useUpdateEffect.d.ts +0 -1
- package/types/pc/hooks/useWatch.d.ts +0 -1
- package/types/pc/hooks/useWindowSize.d.ts +0 -1
- package/types/pc/icons/file/interface.d.ts +0 -7
- package/types/pc/icons.d.ts +0 -4
- package/types/pc/image/ImageFooter.d.ts +0 -13
- package/types/pc/image/ImagePreviewArrow.d.ts +0 -11
- package/types/pc/image/TriggerForToolbar.d.ts +0 -10
- package/types/pc/image/interface.d.ts +0 -262
- package/types/pc/index.d.ts +0 -187
- package/types/pc/input/Input.d.ts +0 -26
- package/types/pc/input/interface.d.ts +0 -333
- package/types/pc/layout/interface.d.ts +0 -120
- package/types/pc/menu/Indent.d.ts +0 -6
- package/types/pc/menu/OverflowWrap.d.ts +0 -9
- package/types/pc/menu/context.d.ts +0 -15
- package/types/pc/menu/sub-menu/Inline.d.ts +0 -5
- package/types/pc/menu/sub-menu/Pop.d.ts +0 -5
- package/types/pc/message/interface.d.ts +0 -90
- package/types/pc/modal/interface.d.ts +0 -193
- package/types/pc/overflow-ellipsis/OverflowItem.d.ts +0 -3
- package/types/pc/overflow-ellipsis/index.d.ts +0 -5
- package/types/pc/pagination/PageItem.d.ts +0 -18
- package/types/pc/pagination/PageJumper.d.ts +0 -13
- package/types/pc/pagination/PageOption.d.ts +0 -17
- package/types/pc/progress/CircleProgress.d.ts +0 -8
- package/types/pc/progress/LineProgess.d.ts +0 -2
- package/types/pc/progress/StepProgress.d.ts +0 -2
- package/types/pc/qr-code/examples/download.d.ts +0 -2
- package/types/pc/qr-code/examples/full.d.ts +0 -2
- package/types/pc/qr-code/examples/image.d.ts +0 -2
- package/types/pc/qr-code/interface.d.ts +0 -32
- package/types/pc/qr-code/src/index.d.ts +0 -116
- package/types/pc/radio/Group.d.ts +0 -10
- package/types/pc/radio/GroupBlock.d.ts +0 -7
- package/types/pc/radio/Radio.d.ts +0 -15
- package/types/pc/resize-box/ResizeTrigger.d.ts +0 -31
- package/types/pc/result/403.d.ts +0 -2
- package/types/pc/result/404.d.ts +0 -2
- package/types/pc/result/500.d.ts +0 -2
- package/types/pc/select/interface.d.ts +0 -313
- package/types/pc/select/util.d.ts +0 -26
- package/types/pc/skeleton/Image.d.ts +0 -3
- package/types/pc/skeleton/Text.d.ts +0 -4
- package/types/pc/slider/Button.d.ts +0 -21
- package/types/pc/slider/Input.d.ts +0 -15
- package/types/pc/slider/Tick.d.ts +0 -14
- package/types/pc/space/interface.d.ts +0 -9
- package/types/pc/speech-synthesis/index.d.ts +0 -4
- package/types/pc/speech-synthesis/interface.d.ts +0 -7
- package/types/pc/spin/DotLoading.d.ts +0 -6
- package/types/pc/suspense-fallback-test/index.d.ts +0 -2
- package/types/pc/suspense-fallback-test/interface.d.ts +0 -2
- package/types/pc/table/ColGroup.d.ts +0 -13
- package/types/pc/table/summary/Cell.d.ts +0 -12
- package/types/pc/table/summary/Row.d.ts +0 -7
- package/types/pc/table/tbody/Td.d.ts +0 -25
- package/types/pc/table/tbody/index.d.ts +0 -3
- package/types/pc/table/tfoot/index.d.ts +0 -3
- package/types/pc/table/th-resizable/index.d.ts +0 -2
- package/types/pc/table/thead/Column.d.ts +0 -2
- package/types/pc/table/thead/index.d.ts +0 -3
- package/types/pc/tabs/TabContent.d.ts +0 -9
- package/types/pc/tabs/tab-header/DropdownIcon.d.ts +0 -2
- package/types/pc/tabs/tab-header/TabInk.d.ts +0 -11
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +0 -17
- package/types/pc/time-picker/Picker.d.ts +0 -15
- package/types/pc/time-picker/RangePicker.d.ts +0 -12
- package/types/pc/time-picker/TimeColumn.d.ts +0 -17
- package/types/pc/time-picker/TimePicker.d.ts +0 -24
- package/types/pc/time-picker/index.d.ts +0 -9
- package/types/pc/time-picker/interface.d.ts +0 -237
- package/types/pc/transfer/Item.d.ts +0 -3
- package/types/pc/transfer/List.d.ts +0 -5
- package/types/pc/tree/Animation.d.ts +0 -4
- package/types/pc/trigger/interface.d.ts +0 -242
- package/types/pc/typography/Operations.d.ts +0 -4
- package/types/pc/upload/index.d.ts +0 -6
- package/types/pc/upload/interface.d.ts +0 -330
- package/types/pc/upload/list/index.d.ts +0 -6
- package/types/pc/upload/request_.d.ts +0 -3
- package/types/pc/utils/PqbCSSTransition.d.ts +0 -3
- package/types/pc/utils/caseName.d.ts +0 -3
- package/types/pc/utils/className.d.ts +0 -3
- package/types/pc/utils/constant.d.ts +0 -3
- package/types/pc/utils/contextHolder.d.ts +0 -10
- package/types/pc/utils/copy.d.ts +0 -3
- package/types/pc/utils/date.d.ts +0 -1
- package/types/pc/utils/dayjs.d.ts +0 -2
- package/types/pc/utils/dom.d.ts +0 -1
- package/types/pc/utils/emitter.d.ts +0 -1
- package/types/pc/utils/fileToURL.d.ts +0 -3
- package/types/pc/utils/fillNBSP.d.ts +0 -3
- package/types/pc/utils/findScrollParent.d.ts +0 -2
- package/types/pc/utils/getHighlightText.d.ts +0 -3
- package/types/pc/utils/getHotkeyHandler.d.ts +0 -4
- package/types/pc/utils/getStringLength.d.ts +0 -3
- package/types/pc/utils/include.d.ts +0 -3
- package/types/pc/utils/index.d.ts +0 -50
- package/types/pc/utils/intersectionObserver.d.ts +0 -2
- package/types/pc/utils/is.d.ts +0 -1
- package/types/pc/utils/keyboardCode.d.ts +0 -5
- package/types/pc/utils/lodash.d.ts +0 -1
- package/types/pc/utils/math.d.ts +0 -1
- package/types/pc/utils/mergeProps.d.ts +0 -3
- package/types/pc/utils/mergedToString.d.ts +0 -3
- package/types/pc/utils/mutationObserver.d.ts +0 -2
- package/types/pc/utils/names.d.ts +0 -1191
- package/types/pc/utils/omit.d.ts +0 -3
- package/types/pc/utils/pad.d.ts +0 -1
- package/types/pc/utils/pick.d.ts +0 -3
- package/types/pc/utils/pinyin.d.ts +0 -1
- package/types/pc/utils/react19Adapter.d.ts +0 -1
- package/types/pc/utils/reactDOM.d.ts +0 -1
- package/types/pc/utils/reactTransitionGroup.d.ts +0 -1
- package/types/pc/utils/resizeObserver.d.ts +0 -2
- package/types/pc/utils/saveAs.d.ts +0 -3
- package/types/pc/utils/screenfull.d.ts +0 -3
- package/types/pc/utils/scrollIntoViewIfNeeded.d.ts +0 -3
- package/types/pc/utils/setDarkTheme.d.ts +0 -3
- package/types/pc/utils/setPrimaryColor.d.ts +0 -2
- package/types/pc/utils/setTheme.d.ts +0 -2
- package/types/pc/utils/style.d.ts +0 -1
- package/types/pc/utils/throttleByRaf.d.ts +0 -1
- package/types/pc/utils/throttleByRaf2.d.ts +0 -1
- package/types/pc/utils/toArray.d.ts +0 -3
- package/types/pc/utils/tree.d.ts +0 -2
- package/types/pc/utils/tween.d.ts +0 -1
- package/types/pc/utils/type.d.ts +0 -1
- package/types/pc/utils/validate.d.ts +0 -1
- package/types/pc/utils/warning.d.ts +0 -1
- package/types/pc/verification-code/VerificationCode.d.ts +0 -8
- package/types/pc/verification-code/index.d.ts +0 -4
- package/types/pc/version/index.d.ts +0 -4
- package/types/pc/virtual-list/interface.d.ts +0 -56
- package/types/pc/watermark/Watermark.d.ts +0 -4
- package/types/pc/watermark/index.d.ts +0 -4
- package/typography/interface.js +0 -1
- package/upload/interface.js +0 -1
- package/upload/request_.js +0 -1993
- package/upload/util.js +0 -60
- package/utils/PqbCSSTransition.js +0 -5
- package/utils/reactTransitionGroup.js +0 -10
- package/utils/type.js +0 -1
- package/verification-code/interface.js +0 -1
- package/virtual-list/interface.js +0 -1
- package/watermark/interface.js +0 -1
- /package/types/{common → _common}/development/index.d.ts +0 -0
- /package/types/{common → _common}/development/interface.d.ts +0 -0
- /package/types/{common → _common}/empty/index.d.ts +0 -0
- /package/types/{common → _common}/empty/interface.d.ts +0 -0
- /package/types/{common → _common}/flex/index.d.ts +0 -0
- /package/types/{common → _common}/flex/interface.d.ts +0 -0
- /package/types/{common → _common}/higher-order/with-speech-synthesis/index.d.ts +0 -0
- /package/types/{common → _common}/higher-order/with-speech-synthesis/interface.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/create-deep-compare-effect/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/create-update-effect/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/create-use-storage-state/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-async-effect/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-boolean/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-click-away/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-controllable-value/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-count-down/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-counter/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-creation/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-debounce/debounceOptions.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-debounce/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-debounce-effect/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-debounce-fn/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-deep-compare-effect/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-deep-compare-layout-effect/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-document-visibility/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-drag/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-drop/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-event-listener/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-event-target/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-external/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-favicon/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-focus-within/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-get-state/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-history-travel/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-hover/index.d.ts +0 -0
- /package/types/{common/hooks/useId.d.ts → _common/hooks/use-id/index.d.ts} +0 -0
- /package/types/{common/hooks/useInView.d.ts → _common/hooks/use-in-view/index.d.ts} +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-in-viewport/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-infinite-scroll/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-infinite-scroll/types.d.ts +0 -0
- /package/types/{common/hooks/useIntersectionObserver.d.ts → _common/hooks/use-intersection-observer/index.d.ts} +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-interval/index.d.ts +0 -0
- /package/types/{common/hooks/useIsFirstRender.d.ts → _common/hooks/use-is-first-render/index.d.ts} +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-isomorphic-layout-effect/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-key-press/index.d.ts +0 -0
- /package/types/{common/hooks/useKeyboardEvent.d.ts → _common/hooks/use-keyboard-event/index.d.ts} +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-latest/index.d.ts +0 -0
- /package/types/{common/hooks/useListenWindowResize.d.ts → _common/hooks/use-listen-window-resize/index.d.ts} +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-local-storage-state/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-lock-fn/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-long-press/index.d.ts +0 -0
- /package/types/{common/hooks/useMedia.d.ts → _common/hooks/use-media/index.d.ts} +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-memoized-fn/index.d.ts +0 -0
- /package/types/{common/hooks/useMergeProps.d.ts → _common/hooks/use-merge-props/index.d.ts} +0 -0
- /package/types/{common/hooks/useMergeValue.d.ts → _common/hooks/use-merge-value/index.d.ts} +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-mount/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-mouse/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-mutation-observer/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-network/index.d.ts +0 -0
- /package/types/{common/hooks/useOnlineStatus.d.ts → _common/hooks/use-online-status/index.d.ts} +0 -0
- /package/types/{common/hooks/useOverflowHidden.d.ts → _common/hooks/use-overflow-hidden/index.d.ts} +0 -0
- /package/types/{common/hooks/useOverrideRef.d.ts → _common/hooks/use-override-ref/index.d.ts} +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-pagination/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-pagination/types.d.ts +0 -0
- /package/types/{common/hooks/usePersistCallback.d.ts → _common/hooks/use-persist-callback/index.d.ts} +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-raf-interval/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-raf-state/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-raf-timeout/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-reactive/index.d.ts +0 -0
- /package/types/{common/hooks/useRefs.d.ts → _common/hooks/use-refs/index.d.ts} +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/Fetch.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/plugins/useAutoRunPlugin.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/plugins/useCachePlugin.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/plugins/useDebouncePlugin.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/plugins/useLoadingDelayPlugin.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/plugins/usePollingPlugin.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/plugins/useRefreshOnWindowFocusPlugin.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/plugins/useRetryPlugin.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/plugins/useThrottlePlugin.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/types.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/useRequest.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/useRequestImplement.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/utils/cachePromise.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/utils/cacheSubscribe.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/utils/isDocumentVisible.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/utils/isOnline.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/utils/limit.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/utils/subscribeFocus.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-request/src/utils/subscribeReVisible.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-reset-state/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-responsive/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-safe-state/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-scroll/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-selections/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-session-storage-state/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-set-state/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-size/index.d.ts +0 -0
- /package/types/{common/hooks/useStateCallback.d.ts → _common/hooks/use-state-callback/index.d.ts} +0 -0
- /package/types/{common/hooks/useStateWithPromise.d.ts → _common/hooks/use-state-with-promise/index.d.ts} +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-text-selection/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-throttle/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-throttle/throttleOptions.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-throttle-effect/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-throttle-fn/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-timeout/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-title/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-toggle/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-tracked-effect/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-unmount/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-unmounted-ref/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-update/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-update-effect/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-update-layout-effect/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-virtual-list/index.d.ts +0 -0
- /package/types/{common/hooks/useWatch.d.ts → _common/hooks/use-watch/index.d.ts} +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-web-socket/index.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/use-why-did-you-update/index.d.ts +0 -0
- /package/types/{common/hooks/useWindowSize.d.ts → _common/hooks/use-window-size/index.d.ts} +0 -0
- /package/types/{common/hooks/src → _common/hooks}/utils/createEffectWithTarget.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/utils/depsAreSame.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/utils/depsEqual.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/utils/domTarget.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/utils/getDocumentOrShadow.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/utils/useDeepCompareWithTarget.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/utils/useEffectWithTarget.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/utils/useIsomorphicLayoutEffectWithTarget.d.ts +0 -0
- /package/types/{common/hooks/src → _common/hooks}/utils/useLayoutEffectWithTarget.d.ts +0 -0
- /package/types/{common → _common}/icons/file/index.d.ts +0 -0
- /package/types/{common → _common}/icons/file/interface.d.ts +0 -0
- /package/types/{common → _common}/space/index.d.ts +0 -0
- /package/types/{common → _common}/space/interface.d.ts +0 -0
- /package/types/{common → _common}/suspense-fallback-test/index.d.ts +0 -0
- /package/types/{common → _common}/suspense-fallback-test/interface.d.ts +0 -0
- /package/types/{common → _common}/utils/fillNBSP.d.ts +0 -0
- /package/types/{common → _common}/utils/getHighlightText.d.ts +0 -0
- /package/types/{common → _common}/utils/getHotkeyHandler.d.ts +0 -0
- /package/types/{common → _common}/utils/getStringLength.d.ts +0 -0
- /package/types/{common → _common}/utils/include.d.ts +0 -0
- /package/types/{common → _common}/utils/mergeProps.d.ts +0 -0
- /package/types/{common → _common}/utils/mergedToString.d.ts +0 -0
- /package/types/{common → _common}/utils/omit.d.ts +0 -0
- /package/types/{common → _common}/utils/pad.d.ts +0 -0
- /package/types/{common → _common}/utils/react19Adapter.d.ts +0 -0
- /package/types/{common → _common}/utils/resizeObserver.d.ts +0 -0
- /package/types/{common → _common}/utils/style.d.ts +0 -0
- /package/types/{common → _common}/utils/throttleByRaf.d.ts +0 -0
- /package/types/{common → _common}/utils/toArray.d.ts +0 -0
- /package/types/{pc → _common}/utils/uuid.d.ts +0 -0
- /package/types/{common → _common}/utils/warning.d.ts +0 -0
- /package/types/{pc/affix → affix}/index.d.ts +0 -0
- /package/types/{pc/affix → affix}/interface.d.ts +0 -0
- /package/types/{pc/alert → alert}/index.d.ts +0 -0
- /package/types/{pc/alert → alert}/interface.d.ts +0 -0
- /package/types/{pc/anchor → anchor}/Anchor.d.ts +0 -0
- /package/types/{pc/anchor → anchor}/Link.d.ts +0 -0
- /package/types/{pc/anchor → anchor}/context.d.ts +0 -0
- /package/types/{pc/app → app}/context.d.ts +0 -0
- /package/types/{pc/app → app}/index.d.ts +0 -0
- /package/types/{pc/app → app}/interface.d.ts +0 -0
- /package/types/{pc/app → app}/useApp.d.ts +0 -0
- /package/types/{pc/auto-complete → auto-complete}/index.d.ts +0 -0
- /package/types/{pc/auto-complete → auto-complete}/interface.d.ts +0 -0
- /package/types/{pc/avatar → avatar}/Avatar.d.ts +0 -0
- /package/types/{pc/avatar → avatar}/Group.d.ts +0 -0
- /package/types/{pc/avatar → avatar}/context.d.ts +0 -0
- /package/types/{pc/avatar → avatar}/index.d.ts +0 -0
- /package/types/{pc/avatar → avatar}/interface.d.ts +0 -0
- /package/types/{pc/back-top → back-top}/index.d.ts +0 -0
- /package/types/{pc/back-top → back-top}/interface.d.ts +0 -0
- /package/types/{pc/badge → badge}/index.d.ts +0 -0
- /package/types/{pc/breadcrumb → breadcrumb}/index.d.ts +0 -0
- /package/types/{pc/breadcrumb → breadcrumb}/interface.d.ts +0 -0
- /package/types/{pc/button → button}/Group.d.ts +0 -0
- /package/types/{pc/button → button}/index.d.ts +0 -0
- /package/types/{pc/button → button}/interface.d.ts +0 -0
- /package/types/{pc/calendar → calendar}/hook/useCellClassName.d.ts +0 -0
- /package/types/{pc/calendar → calendar}/interface.d.ts +0 -0
- /package/types/{pc/card → card}/Grid.d.ts +0 -0
- /package/types/{pc/card → card}/Meta.d.ts +0 -0
- /package/types/{pc/card → card}/index.d.ts +0 -0
- /package/types/{pc/carousel → carousel}/Arrow.d.ts +0 -0
- /package/types/{pc/carousel → carousel}/Indicator.d.ts +0 -0
- /package/types/{pc/carousel → carousel}/index.d.ts +0 -0
- /package/types/{pc/carousel → carousel}/interface.d.ts +0 -0
- /package/types/{pc/cascader → cascader}/base/store.d.ts +0 -0
- /package/types/{pc/cascader → cascader}/hook/useRefCurrent.d.ts +0 -0
- /package/types/{pc/cascader → cascader}/index.d.ts +0 -0
- /package/types/{pc/cascader → cascader}/interface.d.ts +0 -0
- /package/types/{pc/cascader/util.d.ts → cascader/utils.d.ts} +0 -0
- /package/types/{pc/checkbox → checkbox}/Checkbox.d.ts +0 -0
- /package/types/{pc/checkbox → checkbox}/index.d.ts +0 -0
- /package/types/{pc/checkbox → checkbox}/interface.d.ts +0 -0
- /package/types/{pc/checkbox → checkbox}/useCheckbox.d.ts +0 -0
- /package/types/{pc/collapse → collapse}/Collapse.d.ts +0 -0
- /package/types/{pc/collapse → collapse}/Item.d.ts +0 -0
- /package/types/{pc/collapse → collapse}/index.d.ts +0 -0
- /package/types/{pc/collapse → collapse}/interface.d.ts +0 -0
- /package/types/{pc/color-picker → color-picker}/ControlBar.d.ts +0 -0
- /package/types/{pc/color-picker → color-picker}/InputAlpha.d.ts +0 -0
- /package/types/{pc/color-picker → color-picker}/InputHex.d.ts +0 -0
- /package/types/{pc/color-picker → color-picker}/Mode.d.ts +0 -0
- /package/types/{pc/color-picker → color-picker}/Panel.d.ts +0 -0
- /package/types/{pc/color-picker → color-picker}/colors.d.ts +0 -0
- /package/types/{pc/color-picker → color-picker}/hooks/useControlBlock.d.ts +0 -0
- /package/types/{pc/color-picker → color-picker}/index.d.ts +0 -0
- /package/types/{pc/color-picker → color-picker}/interface.d.ts +0 -0
- /package/types/{pc/color-picker → color-picker}/utils.d.ts +0 -0
- /package/types/{pc/comment → comment}/index.d.ts +0 -0
- /package/types/{pc/comment → comment}/interface.d.ts +0 -0
- /package/types/{pc/config-provider → config-provider}/context.d.ts +0 -0
- /package/types/{pc/constant → constant}/index.d.ts +0 -0
- /package/types/{pc/copy → copy}/interface.d.ts +0 -0
- /package/types/{pc/countdown → countdown}/index.d.ts +0 -0
- /package/types/{pc/countdown → countdown}/interface.d.ts +0 -0
- /package/types/{pc/countdown/util.d.ts → countdown/utils.d.ts} +0 -0
- /package/types/{pc/date-picker → date-picker}/Picker.d.ts +0 -0
- /package/types/{pc/date-picker → date-picker}/context.d.ts +0 -0
- /package/types/{pc/date-picker → date-picker}/hook/useCellClassName.d.ts +0 -0
- /package/types/{pc/date-picker → date-picker}/index.d.ts +0 -0
- /package/types/{pc/date-picker → date-picker}/panel/Shortcut.d.ts +0 -0
- /package/types/{pc/date-picker/util.d.ts → date-picker/utils.d.ts} +0 -0
- /package/types/{pc/descriptions → descriptions}/interface.d.ts +0 -0
- /package/types/{pc/details → details}/index.d.ts +0 -0
- /package/types/{pc/details → details}/interface.d.ts +0 -0
- /package/types/{pc/development → development}/index.d.ts +0 -0
- /package/types/{pc/divider → divider}/index.d.ts +0 -0
- /package/types/{pc/divider → divider}/interface.d.ts +0 -0
- /package/types/{pc/draggable → draggable}/interface.d.ts +0 -0
- /package/types/{pc/drawer → drawer}/Drawer.d.ts +0 -0
- /package/types/{pc/drawer → drawer}/index.d.ts +0 -0
- /package/types/{pc/drawer → drawer}/interface.d.ts +0 -0
- /package/types/{pc/dropdown → dropdown}/Button.d.ts +0 -0
- /package/types/{pc/dropdown → dropdown}/index.d.ts +0 -0
- /package/types/{pc/dropdown → dropdown}/interface.d.ts +0 -0
- /package/types/{pc/empty → empty}/index.d.ts +0 -0
- /package/types/{pc/flex → flex}/index.d.ts +0 -0
- /package/types/{pc/form → form}/Form.d.ts +0 -0
- /package/types/{pc/form → form}/FormItem.d.ts +0 -0
- /package/types/{pc/form → form}/FormLabel.d.ts +0 -0
- /package/types/{pc/form → form}/FormProvider.d.ts +0 -0
- /package/types/{pc/form → form}/context.d.ts +0 -0
- /package/types/{pc/form → form}/hook/useContext.d.ts +0 -0
- /package/types/{pc/form → form}/hook/useForm.d.ts +0 -0
- /package/types/{pc/form → form}/hook/useState.d.ts +0 -0
- /package/types/{pc/form → form}/hook/useWatch.d.ts +0 -0
- /package/types/{pc/form → form}/index.d.ts +0 -0
- /package/types/{pc/form → form}/promisify.d.ts +0 -0
- /package/types/{pc/form → form}/store.d.ts +0 -0
- /package/types/{pc/grid → grid}/Grid.d.ts +0 -0
- /package/types/{pc/grid → grid}/Item.d.ts +0 -0
- /package/types/{pc/grid → grid}/context.d.ts +0 -0
- /package/types/{pc/grid → grid}/index.d.ts +0 -0
- /package/types/{pc/grid → grid}/interface.d.ts +0 -0
- /package/types/{pc/grid/util.d.ts → grid/utils.d.ts} +0 -0
- /package/types/{pc/hooks → hooks}/use-verification-code/index.d.ts +0 -0
- /package/types/{pc/hooks → hooks}/use-verification-code/interface.d.ts +0 -0
- /package/types/{pc/hooks → hooks}/use-watermark/index.d.ts +0 -0
- /package/types/{pc/hooks → hooks}/use-watermark/interface.d.ts +0 -0
- /package/types/{pc/hooks → hooks}/use-watermark/utils.d.ts +0 -0
- /package/types/{pc/icon → icon}/addFromIconFontCn.d.ts +0 -0
- /package/types/{pc/icon → icon}/index.d.ts +0 -0
- /package/types/{pc/icon → icon}/interface.d.ts +0 -0
- /package/types/{pc/icon-hover → icon-hover}/index.d.ts +0 -0
- /package/types/{pc/icon-hover → icon-hover}/interface.d.ts +0 -0
- /package/types/{pc/icons → icons}/file/index.d.ts +0 -0
- /package/types/{pc/image → image}/Image.d.ts +0 -0
- /package/types/{pc/image → image}/ImagePreview.d.ts +0 -0
- /package/types/{pc/image → image}/ImagePreviewGroup.d.ts +0 -0
- /package/types/{pc/image → image}/ImagePreviewToolbar.d.ts +0 -0
- /package/types/{pc/image → image}/index.d.ts +0 -0
- /package/types/{pc/image → image}/previewGroupContext.d.ts +0 -0
- /package/types/{pc/image/util → image/utils}/getFixTranslate.d.ts +0 -0
- /package/types/{pc/image/util → image/utils}/getScale.d.ts +0 -0
- /package/types/{pc/image/util → image/utils}/hook/useImageStatus.d.ts +0 -0
- /package/types/{pc/image/util → image/utils}/hook/useShowFooter.d.ts +0 -0
- /package/types/{pc/input → input}/Button.d.ts +0 -0
- /package/types/{pc/input → input}/Group.d.ts +0 -0
- /package/types/{pc/input → input}/InputElement.d.ts +0 -0
- /package/types/{pc/input → input}/Number.d.ts +0 -0
- /package/types/{pc/input → input}/Password.d.ts +0 -0
- /package/types/{pc/input → input}/Search.d.ts +0 -0
- /package/types/{pc/input → input}/Tag.d.ts +0 -0
- /package/types/{pc/input → input}/Textarea.d.ts +0 -0
- /package/types/{pc/input → input}/autoSizeTextAreaHeight.d.ts +0 -0
- /package/types/{pc/input → input}/index.d.ts +0 -0
- /package/types/{pc/input → input}/useComposition.d.ts +0 -0
- /package/types/{pc/input-number → input-number}/decimal.d.ts +0 -0
- /package/types/{pc/input-number → input-number}/index.d.ts +0 -0
- /package/types/{pc/input-number → input-number}/interface.d.ts +0 -0
- /package/types/{pc/input-number → input-number}/useSelectionRange.d.ts +0 -0
- /package/types/{pc/input-number/util.d.ts → input-number/utils.d.ts} +0 -0
- /package/types/{pc/input-tag → input-tag}/InputTag.d.ts +0 -0
- /package/types/{pc/input-tag → input-tag}/index.d.ts +0 -0
- /package/types/{pc/input-tag → input-tag}/interface.d.ts +0 -0
- /package/types/{pc/layout → layout}/Content.d.ts +0 -0
- /package/types/{pc/layout → layout}/Footer.d.ts +0 -0
- /package/types/{pc/layout → layout}/Header.d.ts +0 -0
- /package/types/{pc/layout → layout}/Sider.d.ts +0 -0
- /package/types/{pc/layout → layout}/index.d.ts +0 -0
- /package/types/{pc/link → link}/index.d.ts +0 -0
- /package/types/{pc/link → link}/interface.d.ts +0 -0
- /package/types/{pc/liquid-fill → liquid-fill}/index.d.ts +0 -0
- /package/types/{pc/liquid-fill → liquid-fill}/interface.d.ts +0 -0
- /package/types/{pc/list → list}/Item.d.ts +0 -0
- /package/types/{pc/list → list}/Meta.d.ts +0 -0
- /package/types/{pc/list → list}/index.d.ts +0 -0
- /package/types/{pc/list → list}/interface.d.ts +0 -0
- /package/types/{pc/loading → loading}/index.d.ts +0 -0
- /package/types/{pc/loading → loading}/interface.d.ts +0 -0
- /package/types/{pc/locale → locale}/ar-EG.d.ts +0 -0
- /package/types/{pc/locale → locale}/de-DE.d.ts +0 -0
- /package/types/{pc/locale → locale}/default.d.ts +0 -0
- /package/types/{pc/locale → locale}/en-US.d.ts +0 -0
- /package/types/{pc/locale → locale}/es-ES.d.ts +0 -0
- /package/types/{pc/locale → locale}/fr-FR.d.ts +0 -0
- /package/types/{pc/locale → locale}/id-ID.d.ts +0 -0
- /package/types/{pc/locale → locale}/interface.d.ts +0 -0
- /package/types/{pc/locale → locale}/it-IT.d.ts +0 -0
- /package/types/{pc/locale → locale}/ja-JP.d.ts +0 -0
- /package/types/{pc/locale → locale}/ko-KR.d.ts +0 -0
- /package/types/{pc/locale → locale}/ms-MY.d.ts +0 -0
- /package/types/{pc/locale → locale}/pt-BR.d.ts +0 -0
- /package/types/{pc/locale → locale}/pt-PT.d.ts +0 -0
- /package/types/{pc/locale → locale}/ru-RU.d.ts +0 -0
- /package/types/{pc/locale → locale}/th-TH.d.ts +0 -0
- /package/types/{pc/locale → locale}/tr-TR.d.ts +0 -0
- /package/types/{pc/locale → locale}/vi-VN.d.ts +0 -0
- /package/types/{pc/locale → locale}/zh-CN.d.ts +0 -0
- /package/types/{pc/locale → locale}/zh-HK.d.ts +0 -0
- /package/types/{pc/locale → locale}/zh-TW.d.ts +0 -0
- /package/types/{pc/marquee → marquee}/index.d.ts +0 -0
- /package/types/{pc/marquee → marquee}/interface.d.ts +0 -0
- /package/types/{pc/marquee- → marquee-}/index.d.ts +0 -0
- /package/types/{pc/marquee- → marquee-}/interface.d.ts +0 -0
- /package/types/{pc/mentions → mentions}/index.d.ts +0 -0
- /package/types/{pc/mentions → mentions}/interface.d.ts +0 -0
- /package/types/{pc/mentions/util.d.ts → mentions/utils.d.ts} +0 -0
- /package/types/{pc/menu → menu}/Item.d.ts +0 -0
- /package/types/{pc/menu → menu}/ItemGroup.d.ts +0 -0
- /package/types/{pc/menu → menu}/Menu.d.ts +0 -0
- /package/types/{pc/menu → menu}/index.d.ts +0 -0
- /package/types/{pc/menu → menu}/interface.d.ts +0 -0
- /package/types/{pc/menu → menu}/sub-menu/index.d.ts +0 -0
- /package/types/{pc/menu/util.d.ts → menu/utils.d.ts} +0 -0
- /package/types/{pc/message → message}/index.d.ts +0 -0
- /package/types/{pc/message → message}/useMessage.d.ts +0 -0
- /package/types/{pc/modal → modal}/Confirm.d.ts +0 -0
- /package/types/{pc/modal → modal}/Modal.d.ts +0 -0
- /package/types/{pc/modal → modal}/config.d.ts +0 -0
- /package/types/{pc/modal → modal}/index.d.ts +0 -0
- /package/types/{pc/modal → modal}/use-modal/Hook.d.ts +0 -0
- /package/types/{pc/modal → modal}/use-modal/index.d.ts +0 -0
- /package/types/{pc/notice → notice}/index.d.ts +0 -0
- /package/types/{pc/notification → notification}/index.d.ts +0 -0
- /package/types/{pc/notification → notification}/interface.d.ts +0 -0
- /package/types/{pc/notification → notification}/useNotification.d.ts +0 -0
- /package/types/{pc/notification → notification}/withNotification.d.ts +0 -0
- /package/types/{pc/overflow-ellipsis → overflow-ellipsis}/interface.d.ts +0 -0
- /package/types/{pc/page-header → page-header}/index.d.ts +0 -0
- /package/types/{pc/page-header → page-header}/interface.d.ts +0 -0
- /package/types/{pc/pagination → pagination}/Pagination.d.ts +0 -0
- /package/types/{pc/pagination → pagination}/index.d.ts +0 -0
- /package/types/{pc/pagination → pagination}/interface.d.ts +0 -0
- /package/types/{pc/picker → picker}/Input.d.ts +0 -0
- /package/types/{pc/picker → picker}/InputRange.d.ts +0 -0
- /package/types/{pc/picker → picker}/index.d.ts +0 -0
- /package/types/{pc/popconfirm → popconfirm}/index.d.ts +0 -0
- /package/types/{pc/popconfirm → popconfirm}/interface.d.ts +0 -0
- /package/types/{pc/popover → popover}/index.d.ts +0 -0
- /package/types/{pc/popover → popover}/interface.d.ts +0 -0
- /package/types/{pc/portal → portal}/Portal.d.ts +0 -0
- /package/types/{pc/portal → portal}/index.d.ts +0 -0
- /package/types/{pc/portal → portal}/interface.d.ts +0 -0
- /package/types/{pc/progress → progress}/index.d.ts +0 -0
- /package/types/{pc/progress → progress}/interface.d.ts +0 -0
- /package/types/{pc/qr-code → qr-code}/examples/demo.d.ts +0 -0
- /package/types/{pc/qr-code → qr-code}/index.d.ts +0 -0
- /package/types/{pc/qr-code → qr-code}/src/qrcodegen.d.ts +0 -0
- /package/types/{pc/qr-code → qr-code}/src/qrcodegen2.d.ts +0 -0
- /package/types/{pc/radio → radio}/index.d.ts +0 -0
- /package/types/{pc/radio → radio}/interface.d.ts +0 -0
- /package/types/{pc/rate → rate}/index.d.ts +0 -0
- /package/types/{pc/rate → rate}/interface.d.ts +0 -0
- /package/types/{pc/resize-box → resize-box}/Split.d.ts +0 -0
- /package/types/{pc/resize-box → resize-box}/SplitGroup.d.ts +0 -0
- /package/types/{pc/resize-box → resize-box}/index.d.ts +0 -0
- /package/types/{pc/resize-box → resize-box}/interface.d.ts +0 -0
- /package/types/{pc/result → result}/index.d.ts +0 -0
- /package/types/{pc/result → result}/interface.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/constant.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/index.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/interface.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/blots/block.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/blots/break.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/blots/container.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/blots/cursor.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/blots/embed.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/blots/inline.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/blots/scroll.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/blots/text.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/core/composition.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/core/editor.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/core/emitter.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/core/instances.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/core/logger.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/core/module.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/core/rich.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/core/selection.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/core/theme.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/core/utils/createRegistryWithFormats.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/core/utils/scrollRectIntoView.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/core.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/delta/AttributeMap.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/delta/Op.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/delta/OpIterator.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/delta/index.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/diff/index.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/align.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/background.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/blockquote.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/bold.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/code.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/color.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/direction.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/font.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/formula.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/header.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/hr.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/image-resize/index.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/image-resize/modules/BaseModule.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/image-resize/modules/DisplaySize.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/image-resize/modules/Resize.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/image-resize/options.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/image.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/indent.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/italic.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/liOl.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/liUl.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/lineHeight.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/link.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/list.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/script.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/size.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/strike.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/table.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/underline.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/formats/video.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/index.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/modules/clipboard.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/modules/history.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/modules/input.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/modules/keyboard.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/modules/normalizeExternalHTML/index.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/modules/normalizeExternalHTML/normalizers/msWord.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/modules/syntax.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/modules/table.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/modules/tableEmbed.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/modules/toolbar.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/modules/uiNode.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/modules/uploader.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/attributor/attributor.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/attributor/class.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/attributor/store.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/attributor/style.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/blot/abstract/blot.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/blot/abstract/container.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/blot/abstract/leaf.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/blot/abstract/parent.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/blot/abstract/shadow.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/blot/block.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/blot/embed.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/blot/inline.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/blot/scroll.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/blot/text.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/collection/linked-list.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/collection/linked-node.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/error.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/index.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/registry.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/parchment/scope.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/themes/base.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/themes/pqb.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/ui/color-picker.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/ui/icon-picker.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/ui/icons.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/ui/picker.d.ts +0 -0
- /package/types/{pc/rich-text → rich-text}/lib/ui/tooltip.d.ts +0 -0
- /package/types/{pc/row-col → row-col}/Col-.d.ts +0 -0
- /package/types/{pc/row-col → row-col}/Col.d.ts +0 -0
- /package/types/{pc/row-col → row-col}/Row.d.ts +0 -0
- /package/types/{pc/row-col → row-col}/context.d.ts +0 -0
- /package/types/{pc/row-col → row-col}/index.d.ts +0 -0
- /package/types/{pc/row-col → row-col}/interface.d.ts +0 -0
- /package/types/{pc/segmented → segmented}/index.d.ts +0 -0
- /package/types/{pc/segmented → segmented}/interface.d.ts +0 -0
- /package/types/{pc/select → select}/OptGroup.d.ts +0 -0
- /package/types/{pc/select → select}/Option.d.ts +0 -0
- /package/types/{pc/select → select}/Select.d.ts +0 -0
- /package/types/{pc/select → select}/index.d.ts +0 -0
- /package/types/{pc/select-view → select-view}/Core.d.ts +0 -0
- /package/types/{pc/select-view → select-view}/index.d.ts +0 -0
- /package/types/{pc/select-view → select-view}/interface.d.ts +0 -0
- /package/types/{pc/skeleton → skeleton}/index.d.ts +0 -0
- /package/types/{pc/skeleton → skeleton}/interface.d.ts +0 -0
- /package/types/{pc/slider → slider}/Dot.d.ts +0 -0
- /package/types/{pc/slider → slider}/Mark.d.ts +0 -0
- /package/types/{pc/slider → slider}/hook/useInterval.d.ts +0 -0
- /package/types/{pc/slider → slider}/hook/useLegalValue.d.ts +0 -0
- /package/types/{pc/slider → slider}/index.d.ts +0 -0
- /package/types/{pc/slider → slider}/interface.d.ts +0 -0
- /package/types/{pc/slider/util.d.ts → slider/utils.d.ts} +0 -0
- /package/types/{pc/space → space}/index.d.ts +0 -0
- /package/types/{pc/speech-synthesis → speech-synthesis}/style/index.d.ts +0 -0
- /package/types/{pc/spin → spin}/index.d.ts +0 -0
- /package/types/{pc/spin → spin}/interface.d.ts +0 -0
- /package/types/{pc/splitter → splitter}/Panel.d.ts +0 -0
- /package/types/{pc/splitter → splitter}/SplitBar.d.ts +0 -0
- /package/types/{pc/splitter → splitter}/Splitter.d.ts +0 -0
- /package/types/{pc/splitter → splitter}/hooks/useEvent.d.ts +0 -0
- /package/types/{pc/splitter → splitter}/hooks/useItems.d.ts +0 -0
- /package/types/{pc/splitter → splitter}/hooks/useResizable.d.ts +0 -0
- /package/types/{pc/splitter → splitter}/hooks/useResize.d.ts +0 -0
- /package/types/{pc/splitter → splitter}/hooks/useSizes.d.ts +0 -0
- /package/types/{pc/splitter → splitter}/index.d.ts +0 -0
- /package/types/{pc/splitter → splitter}/interface.d.ts +0 -0
- /package/types/{pc/statistic → statistic}/index.d.ts +0 -0
- /package/types/{pc/statistic → statistic}/interface.d.ts +0 -0
- /package/types/{pc/steps → steps}/Step.d.ts +0 -0
- /package/types/{pc/steps → steps}/index.d.ts +0 -0
- /package/types/{pc/steps → steps}/interface.d.ts +0 -0
- /package/types/{pc/switch → switch}/index.d.ts +0 -0
- /package/types/{pc/switch → switch}/interface.d.ts +0 -0
- /package/types/{pc/table → table}/Table.d.ts +0 -0
- /package/types/{pc/table → table}/constant.d.ts +0 -0
- /package/types/{pc/table → table}/context.d.ts +0 -0
- /package/types/{pc/table → table}/hook/useColumns.d.ts +0 -0
- /package/types/{pc/table → table}/hook/useComponent.d.ts +0 -0
- /package/types/{pc/table → table}/hook/useExpand.d.ts +0 -0
- /package/types/{pc/table → table}/hook/useRowSelection.d.ts +0 -0
- /package/types/{pc/table → table}/hook/useSorter.d.ts +0 -0
- /package/types/{pc/table → table}/hook/useStickyClassNames.d.ts +0 -0
- /package/types/{pc/table → table}/hook/useStickyOffsets.d.ts +0 -0
- /package/types/{pc/table → table}/hook/useThResizable.d.ts +0 -0
- /package/types/{pc/table → table}/index.d.ts +0 -0
- /package/types/{pc/table → table}/interface.d.ts +0 -0
- /package/types/{pc/table → table}/summary/context.d.ts +0 -0
- /package/types/{pc/table → table}/summary/index.d.ts +0 -0
- /package/types/{pc/table → table}/tbody/Tr.d.ts +0 -0
- /package/types/{pc/table/util.d.ts → table/utils.d.ts} +0 -0
- /package/types/{pc/tabs → tabs}/Tab.d.ts +0 -0
- /package/types/{pc/tabs → tabs}/TabPane.d.ts +0 -0
- /package/types/{pc/tabs → tabs}/hook/useDomSize.d.ts +0 -0
- /package/types/{pc/tabs → tabs}/hook/useHeaderScroll.d.ts +0 -0
- /package/types/{pc/tabs → tabs}/index.d.ts +0 -0
- /package/types/{pc/tabs → tabs}/interface.d.ts +0 -0
- /package/types/{pc/tabs → tabs}/tab-header/TabTitle.d.ts +0 -0
- /package/types/{pc/tabs → tabs}/tab-header/index.d.ts +0 -0
- /package/types/{pc/tabs/util.d.ts → tabs/utils.d.ts} +0 -0
- /package/types/{pc/tag → tag}/index.d.ts +0 -0
- /package/types/{pc/tag → tag}/interface.d.ts +0 -0
- /package/types/{pc/time-picker → time-picker}/context.d.ts +0 -0
- /package/types/{pc/time-picker/util.d.ts → time-picker/utils.d.ts} +0 -0
- /package/types/{pc/timeline → timeline}/Item.d.ts +0 -0
- /package/types/{pc/timeline → timeline}/Timeline.d.ts +0 -0
- /package/types/{pc/timeline → timeline}/index.d.ts +0 -0
- /package/types/{pc/timeline → timeline}/interface.d.ts +0 -0
- /package/types/{pc/tooltip → tooltip}/index.d.ts +0 -0
- /package/types/{pc/tooltip → tooltip}/interface.d.ts +0 -0
- /package/types/{pc/tour → tour}/index.d.ts +0 -0
- /package/types/{pc/tour → tour}/interface.d.ts +0 -0
- /package/types/{pc/transfer → transfer}/index.d.ts +0 -0
- /package/types/{pc/transfer → transfer}/interface.d.ts +0 -0
- /package/types/{pc/tree → tree}/Context.d.ts +0 -0
- /package/types/{pc/tree → tree}/Node.d.ts +0 -0
- /package/types/{pc/tree → tree}/NodeList.d.ts +0 -0
- /package/types/{pc/tree → tree}/Tree.d.ts +0 -0
- /package/types/{pc/tree → tree}/index.d.ts +0 -0
- /package/types/{pc/tree → tree}/interface.d.ts +0 -0
- /package/types/{pc/tree/util.d.ts → tree/utils.d.ts} +0 -0
- /package/types/{pc/tree-select → tree-select}/List.d.ts +0 -0
- /package/types/{pc/tree-select → tree-select}/Select.d.ts +0 -0
- /package/types/{pc/tree-select → tree-select}/hook/useKeyCache.d.ts +0 -0
- /package/types/{pc/tree-select → tree-select}/hook/useStateValue.d.ts +0 -0
- /package/types/{pc/tree-select → tree-select}/hook/useTreeData.d.ts +0 -0
- /package/types/{pc/tree-select → tree-select}/index.d.ts +0 -0
- /package/types/{pc/tree-select → tree-select}/interface.d.ts +0 -0
- /package/types/{pc/tree-select/util.d.ts → tree-select/utils.d.ts} +0 -0
- /package/types/{pc/trigger → trigger}/getPopupStyle.d.ts +0 -0
- /package/types/{pc/trigger → trigger}/index.d.ts +0 -0
- /package/types/{pc/typography → typography}/Base.d.ts +0 -0
- /package/types/{pc/typography → typography}/EditContent.d.ts +0 -0
- /package/types/{pc/typography → typography}/Ellipsis.d.ts +0 -0
- /package/types/{pc/typography → typography}/Paragraph.d.ts +0 -0
- /package/types/{pc/typography → typography}/Text.d.ts +0 -0
- /package/types/{pc/typography → typography}/Title.d.ts +0 -0
- /package/types/{pc/typography → typography}/Typography.d.ts +0 -0
- /package/types/{pc/typography → typography}/index.d.ts +0 -0
- /package/types/{pc/typography → typography}/interface.d.ts +0 -0
- /package/types/{pc/typography → typography}/useCssEllipsis.d.ts +0 -0
- /package/types/{pc/typography → typography}/useEllipsis.d.ts +0 -0
- /package/types/{pc/upload → upload}/TriggerNode.d.ts +0 -0
- /package/types/{pc/upload → upload}/Upload.d.ts +0 -0
- /package/types/{pc/upload → upload}/Uploader.d.ts +0 -0
- /package/types/{pc/upload → upload}/constant.d.ts +0 -0
- /package/types/{pc/upload → upload}/list/PictureItem.d.ts +0 -0
- /package/types/{pc/upload → upload}/list/TextItem.d.ts +0 -0
- /package/types/{pc/upload → upload}/list/UploadProgress.d.ts +0 -0
- /package/types/{pc/upload → upload}/request.d.ts +0 -0
- /package/types/{pc/upload/util.d.ts → upload/utils.d.ts} +0 -0
- /package/types/{pc/utils → utils}/responsiveObserve.d.ts +0 -0
- /package/types/{pc/verification-code → verification-code}/interface.d.ts +0 -0
- /package/types/{pc/virtual-list → virtual-list}/Filler.d.ts +0 -0
- /package/types/{pc/virtual-list → virtual-list}/VirtualList.d.ts +0 -0
- /package/types/{pc/virtual-list → virtual-list}/index.d.ts +0 -0
- /package/types/{pc/virtual-list/util → virtual-list/utils}/algorithm.d.ts +0 -0
- /package/types/{pc/virtual-list/util → virtual-list/utils}/item.d.ts +0 -0
- /package/types/{pc/watermark → watermark}/interface.d.ts +0 -0
package/chunk/CwLSam2p.js
DELETED
|
@@ -1,2123 +0,0 @@
|
|
|
1
|
-
import { useEffect as C, useState as b, useMemo as x, useRef as E, useLayoutEffect as Pe, useCallback as q } from "react";
|
|
2
|
-
import "./DsaQZE4X.js";
|
|
3
|
-
import { isFunction as k, isString as te, isNumber as F, isEqual as qe, isBoolean as Ve, isUndefined as Ue, isObject as $e } from "@unicom-cloud/utils/is";
|
|
4
|
-
import { g as D, u as L, d as U, b as W, i as We, s as Ge, e as Ke, f as Je } from "./ClNkxEcR.js";
|
|
5
|
-
import { a as y } from "./D1iEYgh3.js";
|
|
6
|
-
import { u as ne } from "./BJeTDXdz.js";
|
|
7
|
-
import ce from "@unicom-cloud/utils/js-cookie";
|
|
8
|
-
import Qe from "dayjs";
|
|
9
|
-
import Ce from "lodash/debounce";
|
|
10
|
-
import { i as re } from "./CdXR6dj7.js";
|
|
11
|
-
import { u as K, c as Ze } from "./DfChiMIE.js";
|
|
12
|
-
import { isBrowser as V, isAppleDevice as et } from "@unicom-cloud/utils/constant/platform";
|
|
13
|
-
import X from "@unicom-cloud/utils/screenfull";
|
|
14
|
-
import { a as De, u as tt } from "./Bl3hZtxi.js";
|
|
15
|
-
import { u as se } from "./BO_5qdS_.js";
|
|
16
|
-
import Me from "lodash/throttle";
|
|
17
|
-
import de from "lodash/isPlainObject";
|
|
18
|
-
import ae from "@unicom-cloud/utils/query-string";
|
|
19
|
-
import * as nt from "react-router";
|
|
20
|
-
function rt(e) {
|
|
21
|
-
return k(e[Symbol.asyncIterator]);
|
|
22
|
-
}
|
|
23
|
-
function dn(e, t) {
|
|
24
|
-
C(() => {
|
|
25
|
-
const n = e();
|
|
26
|
-
let r = !1;
|
|
27
|
-
async function s() {
|
|
28
|
-
if (rt(n))
|
|
29
|
-
for (; !((await n.next()).done || r); )
|
|
30
|
-
;
|
|
31
|
-
else
|
|
32
|
-
await n;
|
|
33
|
-
}
|
|
34
|
-
return s(), () => {
|
|
35
|
-
r = !0;
|
|
36
|
-
};
|
|
37
|
-
}, t);
|
|
38
|
-
}
|
|
39
|
-
function st(e = !1, t) {
|
|
40
|
-
const [n, r] = b(e), s = x(() => {
|
|
41
|
-
const o = t === void 0 ? !e : t;
|
|
42
|
-
return {
|
|
43
|
-
toggle: () => r((l) => l === e ? o : e),
|
|
44
|
-
set: (l) => r(l),
|
|
45
|
-
setLeft: () => r(e),
|
|
46
|
-
setRight: () => r(o)
|
|
47
|
-
};
|
|
48
|
-
}, []);
|
|
49
|
-
return [n, s];
|
|
50
|
-
}
|
|
51
|
-
function ot(e = !1) {
|
|
52
|
-
const [t, { toggle: n, set: r }] = st(!!e), s = x(() => ({
|
|
53
|
-
toggle: n,
|
|
54
|
-
set: (c) => r(!!c),
|
|
55
|
-
setTrue: () => r(!0),
|
|
56
|
-
setFalse: () => r(!1)
|
|
57
|
-
}), []);
|
|
58
|
-
return [t, s];
|
|
59
|
-
}
|
|
60
|
-
const ct = (e) => e.every((t) => {
|
|
61
|
-
const n = D(t);
|
|
62
|
-
return n ? n.getRootNode() instanceof ShadowRoot : !1;
|
|
63
|
-
}), at = (e) => e ? e.getRootNode() : document, ut = (e) => {
|
|
64
|
-
if (!e || !document.getRootNode)
|
|
65
|
-
return document;
|
|
66
|
-
const t = Array.isArray(e) ? e : [e];
|
|
67
|
-
return ct(t) ? at(D(t[0])) : document;
|
|
68
|
-
};
|
|
69
|
-
function mn(e, t, n = "click") {
|
|
70
|
-
const r = L(e);
|
|
71
|
-
U(
|
|
72
|
-
() => {
|
|
73
|
-
const s = (c) => {
|
|
74
|
-
(Array.isArray(t) ? t : [t]).some((i) => {
|
|
75
|
-
const l = D(i);
|
|
76
|
-
return !l || l.contains(c.target);
|
|
77
|
-
}) || r.current(c);
|
|
78
|
-
}, o = ut(t), a = Array.isArray(n) ? n : [n];
|
|
79
|
-
return a.forEach(
|
|
80
|
-
(c) => o.addEventListener(c, s)
|
|
81
|
-
), () => {
|
|
82
|
-
a.forEach(
|
|
83
|
-
(c) => o.removeEventListener(c, s)
|
|
84
|
-
);
|
|
85
|
-
};
|
|
86
|
-
},
|
|
87
|
-
Array.isArray(n) ? n : [n],
|
|
88
|
-
t
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
function gn(e, t = {}) {
|
|
92
|
-
const n = e ?? {}, {
|
|
93
|
-
defaultValue: r,
|
|
94
|
-
defaultValuePropName: s = "defaultValue",
|
|
95
|
-
valuePropName: o = "value",
|
|
96
|
-
trigger: a = "onChange"
|
|
97
|
-
} = t, c = n[o], d = Object.prototype.hasOwnProperty.call(
|
|
98
|
-
n,
|
|
99
|
-
o
|
|
100
|
-
), i = x(() => d ? c : Object.prototype.hasOwnProperty.call(n, s) ? n[s] : r, []), l = E(i);
|
|
101
|
-
d && (l.current = c);
|
|
102
|
-
const u = ne();
|
|
103
|
-
function m(h, ...p) {
|
|
104
|
-
const f = k(h) ? h(l.current) : h;
|
|
105
|
-
d || (l.current = f, u()), n[a] && n[a](f, ...p);
|
|
106
|
-
}
|
|
107
|
-
return [l.current, y(m)];
|
|
108
|
-
}
|
|
109
|
-
function hn(e, t = {}) {
|
|
110
|
-
const [n, r] = b(() => {
|
|
111
|
-
const o = ce.get(e);
|
|
112
|
-
return te(o) ? o : k(t.defaultValue) ? t.defaultValue() : t.defaultValue;
|
|
113
|
-
}), s = y(
|
|
114
|
-
(o, a = {}) => {
|
|
115
|
-
const { defaultValue: c, ...d } = { ...t, ...a }, i = k(o) ? o(n) : o;
|
|
116
|
-
r(i), i === void 0 ? ce.remove(e) : ce.set(e, i, d);
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
return [n, s];
|
|
120
|
-
}
|
|
121
|
-
const ue = (e) => {
|
|
122
|
-
if (!e)
|
|
123
|
-
return 0;
|
|
124
|
-
const t = Qe(e).valueOf() - Date.now();
|
|
125
|
-
return t < 0 ? 0 : t;
|
|
126
|
-
}, it = (e) => ({
|
|
127
|
-
days: Math.floor(e / 864e5),
|
|
128
|
-
hours: Math.floor(e / 36e5) % 24,
|
|
129
|
-
minutes: Math.floor(e / 6e4) % 60,
|
|
130
|
-
seconds: Math.floor(e / 1e3) % 60,
|
|
131
|
-
milliseconds: Math.floor(e) % 1e3
|
|
132
|
-
}), pn = (e = {}) => {
|
|
133
|
-
const { leftTime: t, targetDate: n, interval: r = 1e3, onEnd: s } = e || {}, o = x(() => F(t) && t > 0 ? Date.now() + t : void 0, [t]), a = "leftTime" in e ? o : n, [c, d] = b(() => ue(a)), i = L(s);
|
|
134
|
-
C(() => {
|
|
135
|
-
if (!a) {
|
|
136
|
-
d(0);
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
d(ue(a));
|
|
140
|
-
const u = setInterval(() => {
|
|
141
|
-
const m = ue(a);
|
|
142
|
-
d(m), m === 0 && (clearInterval(u), i.current?.());
|
|
143
|
-
}, r);
|
|
144
|
-
return () => clearInterval(u);
|
|
145
|
-
}, [a, r]);
|
|
146
|
-
const l = x(() => it(c), [c]);
|
|
147
|
-
return [c, l];
|
|
148
|
-
};
|
|
149
|
-
function ye(e, t = {}) {
|
|
150
|
-
const { min: n, max: r } = t;
|
|
151
|
-
let s = e;
|
|
152
|
-
return F(r) && (s = Math.min(r, s)), F(n) && (s = Math.max(n, s)), s;
|
|
153
|
-
}
|
|
154
|
-
function vn(e = 0, t = {}) {
|
|
155
|
-
const { min: n, max: r } = t, [s, o] = b(() => ye(e, {
|
|
156
|
-
min: n,
|
|
157
|
-
max: r
|
|
158
|
-
})), a = (u) => {
|
|
159
|
-
o((m) => {
|
|
160
|
-
const h = F(u) ? u : u(m);
|
|
161
|
-
return ye(h, {
|
|
162
|
-
max: r,
|
|
163
|
-
min: n
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
}, c = (u = 1) => {
|
|
167
|
-
a((m) => m + u);
|
|
168
|
-
}, d = (u = 1) => {
|
|
169
|
-
a((m) => m - u);
|
|
170
|
-
}, i = (u) => {
|
|
171
|
-
a(u);
|
|
172
|
-
}, l = () => {
|
|
173
|
-
a(e);
|
|
174
|
-
};
|
|
175
|
-
return [
|
|
176
|
-
s,
|
|
177
|
-
{
|
|
178
|
-
inc: y(c),
|
|
179
|
-
dec: y(d),
|
|
180
|
-
set: y(i),
|
|
181
|
-
reset: y(l)
|
|
182
|
-
}
|
|
183
|
-
];
|
|
184
|
-
}
|
|
185
|
-
function Ne(e, t) {
|
|
186
|
-
re && (k(e) || console.error(
|
|
187
|
-
`useDebounceFn expected parameter is a function, got ${typeof e}`
|
|
188
|
-
));
|
|
189
|
-
const n = L(e), r = t?.wait ?? 1e3, s = x(
|
|
190
|
-
() => Ce(
|
|
191
|
-
(...o) => n.current(...o),
|
|
192
|
-
r,
|
|
193
|
-
t
|
|
194
|
-
),
|
|
195
|
-
[]
|
|
196
|
-
);
|
|
197
|
-
return W(() => {
|
|
198
|
-
s.cancel();
|
|
199
|
-
}), {
|
|
200
|
-
run: s,
|
|
201
|
-
cancel: s.cancel,
|
|
202
|
-
flush: s.flush
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
function yn(e, t) {
|
|
206
|
-
const [n, r] = b(e), { run: s } = Ne(() => {
|
|
207
|
-
r(e);
|
|
208
|
-
}, t);
|
|
209
|
-
return C(() => {
|
|
210
|
-
s();
|
|
211
|
-
}, [e]), n;
|
|
212
|
-
}
|
|
213
|
-
function En(e, t, n) {
|
|
214
|
-
const [r, s] = b({}), { run: o } = Ne(() => {
|
|
215
|
-
s({});
|
|
216
|
-
}, n);
|
|
217
|
-
C(() => o(), t), K(e, [r]);
|
|
218
|
-
}
|
|
219
|
-
const Oe = (e = [], t = []) => qe(e, t), xe = (e) => (t, n) => {
|
|
220
|
-
const r = E(void 0), s = E(0);
|
|
221
|
-
(n === void 0 || !Oe(n, r.current)) && (s.current += 1), r.current = n, e(t, [s.current]);
|
|
222
|
-
}, Sn = xe(C), wn = xe(Pe);
|
|
223
|
-
function j(e, t, n = {}) {
|
|
224
|
-
const { enable: r = !0 } = n, s = L(t);
|
|
225
|
-
U(
|
|
226
|
-
() => {
|
|
227
|
-
if (!r)
|
|
228
|
-
return;
|
|
229
|
-
const o = D(n.target, window);
|
|
230
|
-
if (!o?.addEventListener)
|
|
231
|
-
return;
|
|
232
|
-
const a = (d) => s.current(d), c = Array.isArray(e) ? e : [e];
|
|
233
|
-
return c.forEach((d) => {
|
|
234
|
-
o.addEventListener(d, a, {
|
|
235
|
-
capture: n.capture,
|
|
236
|
-
once: n.once,
|
|
237
|
-
passive: n.passive
|
|
238
|
-
});
|
|
239
|
-
}), () => {
|
|
240
|
-
c.forEach((d) => {
|
|
241
|
-
o.removeEventListener(d, a, {
|
|
242
|
-
capture: n.capture
|
|
243
|
-
});
|
|
244
|
-
});
|
|
245
|
-
};
|
|
246
|
-
},
|
|
247
|
-
[e, n.capture, n.once, n.passive, r],
|
|
248
|
-
n.target
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
const Ee = () => V ? document.visibilityState : "visible";
|
|
252
|
-
function bn() {
|
|
253
|
-
const [e, t] = b(Ee);
|
|
254
|
-
return j(
|
|
255
|
-
"visibilitychange",
|
|
256
|
-
() => {
|
|
257
|
-
t(Ee());
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
target: () => document
|
|
261
|
-
}
|
|
262
|
-
), e;
|
|
263
|
-
}
|
|
264
|
-
const Fe = (e) => {
|
|
265
|
-
re && (k(e) || console.error(
|
|
266
|
-
`useMount: parameter \`fn\` expected to be a function, but got "${typeof e}".`
|
|
267
|
-
)), C(() => e?.(), []);
|
|
268
|
-
}, Rn = (e, t, n = {}) => {
|
|
269
|
-
const r = L(n), s = L(e), o = E(void 0), { dragImage: a } = r.current;
|
|
270
|
-
Fe(() => {
|
|
271
|
-
if (a?.image) {
|
|
272
|
-
const { image: c } = a;
|
|
273
|
-
if (te(c)) {
|
|
274
|
-
const d = new Image();
|
|
275
|
-
d.src = c, o.current = d;
|
|
276
|
-
} else
|
|
277
|
-
o.current = c;
|
|
278
|
-
}
|
|
279
|
-
}), U(
|
|
280
|
-
() => {
|
|
281
|
-
const c = D(t);
|
|
282
|
-
if (!c?.addEventListener)
|
|
283
|
-
return;
|
|
284
|
-
const d = (l) => {
|
|
285
|
-
if (r.current.onDragStart?.(l), l.dataTransfer.setData("custom", JSON.stringify(s.current)), a?.image && o.current) {
|
|
286
|
-
const { offsetX: u = 0, offsetY: m = 0 } = a;
|
|
287
|
-
l.dataTransfer.setDragImage(
|
|
288
|
-
o.current,
|
|
289
|
-
u,
|
|
290
|
-
m
|
|
291
|
-
);
|
|
292
|
-
}
|
|
293
|
-
}, i = (l) => {
|
|
294
|
-
r.current.onDragEnd?.(l);
|
|
295
|
-
};
|
|
296
|
-
return c.setAttribute("draggable", "true"), c.addEventListener("dragstart", d), c.addEventListener("dragend", i), () => {
|
|
297
|
-
c.removeEventListener("dragstart", d), c.removeEventListener("dragend", i);
|
|
298
|
-
};
|
|
299
|
-
},
|
|
300
|
-
[],
|
|
301
|
-
t
|
|
302
|
-
);
|
|
303
|
-
}, Tn = (e, t = {}) => {
|
|
304
|
-
const n = L(t), r = E(void 0);
|
|
305
|
-
U(
|
|
306
|
-
() => {
|
|
307
|
-
const s = D(e);
|
|
308
|
-
if (!s?.addEventListener)
|
|
309
|
-
return;
|
|
310
|
-
const o = (u, m) => {
|
|
311
|
-
const h = u.getData("text/uri-list"), p = u.getData("custom");
|
|
312
|
-
if (p && n.current.onDom) {
|
|
313
|
-
let f = p;
|
|
314
|
-
try {
|
|
315
|
-
f = JSON.parse(p);
|
|
316
|
-
} catch {
|
|
317
|
-
f = p;
|
|
318
|
-
}
|
|
319
|
-
n.current.onDom(f, m);
|
|
320
|
-
return;
|
|
321
|
-
}
|
|
322
|
-
if (h && n.current.onUri) {
|
|
323
|
-
n.current.onUri(h, m);
|
|
324
|
-
return;
|
|
325
|
-
}
|
|
326
|
-
if (u.files && u.files.length && n.current.onFiles) {
|
|
327
|
-
n.current.onFiles(
|
|
328
|
-
Array.from(u.files),
|
|
329
|
-
m
|
|
330
|
-
);
|
|
331
|
-
return;
|
|
332
|
-
}
|
|
333
|
-
u.items && u.items.length && n.current.onText && u.items[0].getAsString((f) => {
|
|
334
|
-
n.current.onText(f, m);
|
|
335
|
-
});
|
|
336
|
-
}, a = (u) => {
|
|
337
|
-
u.preventDefault(), u.stopPropagation(), r.current = u.target, n.current.onDragEnter?.(u);
|
|
338
|
-
}, c = (u) => {
|
|
339
|
-
u.preventDefault(), n.current.onDragOver?.(u);
|
|
340
|
-
}, d = (u) => {
|
|
341
|
-
u.target === r.current && n.current.onDragLeave?.(u);
|
|
342
|
-
}, i = (u) => {
|
|
343
|
-
u.preventDefault(), o(u.dataTransfer, u), n.current.onDrop?.(u);
|
|
344
|
-
}, l = (u) => {
|
|
345
|
-
o(u.clipboardData, u), n.current.onPaste?.(u);
|
|
346
|
-
};
|
|
347
|
-
return s.addEventListener("dragenter", a), s.addEventListener("dragover", c), s.addEventListener("dragleave", d), s.addEventListener("drop", i), s.addEventListener("paste", l), () => {
|
|
348
|
-
s.removeEventListener("dragenter", a), s.removeEventListener("dragover", c), s.removeEventListener("dragleave", d), s.removeEventListener("drop", i), s.removeEventListener("paste", l);
|
|
349
|
-
};
|
|
350
|
-
},
|
|
351
|
-
[],
|
|
352
|
-
e
|
|
353
|
-
);
|
|
354
|
-
};
|
|
355
|
-
function Ln(e) {
|
|
356
|
-
const { initialValue: t, transformer: n } = e || {}, [r, s] = b(t), o = L(n), a = q(() => s(t), []), c = q((d) => {
|
|
357
|
-
const i = d.target.value;
|
|
358
|
-
return k(o.current) ? s(o.current(i)) : s(i);
|
|
359
|
-
}, []);
|
|
360
|
-
return [
|
|
361
|
-
r,
|
|
362
|
-
{
|
|
363
|
-
onChange: c,
|
|
364
|
-
reset: a
|
|
365
|
-
}
|
|
366
|
-
];
|
|
367
|
-
}
|
|
368
|
-
const J = {}, lt = (e, t = {}) => {
|
|
369
|
-
const n = document.querySelector(`script[src="${e}"]`);
|
|
370
|
-
if (!n) {
|
|
371
|
-
const r = document.createElement("script");
|
|
372
|
-
return r.src = e, Object.keys(t).forEach((s) => {
|
|
373
|
-
r[s] = t[s];
|
|
374
|
-
}), r.setAttribute("data-status", "loading"), document.body.appendChild(r), {
|
|
375
|
-
ref: r,
|
|
376
|
-
status: "loading"
|
|
377
|
-
};
|
|
378
|
-
}
|
|
379
|
-
return {
|
|
380
|
-
ref: n,
|
|
381
|
-
status: n.getAttribute("data-status") || "ready"
|
|
382
|
-
};
|
|
383
|
-
}, ft = (e, t = {}) => {
|
|
384
|
-
const n = document.querySelector(`link[href="${e}"]`);
|
|
385
|
-
if (!n) {
|
|
386
|
-
const r = document.createElement("link");
|
|
387
|
-
return r.rel = "stylesheet", r.href = e, Object.keys(t).forEach((o) => {
|
|
388
|
-
r[o] = t[o];
|
|
389
|
-
}), "hideFocus" in r && r.relList && (r.rel = "preload", r.as = "style"), r.setAttribute("data-status", "loading"), document.head.appendChild(r), {
|
|
390
|
-
ref: r,
|
|
391
|
-
status: "loading"
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
return {
|
|
395
|
-
ref: n,
|
|
396
|
-
status: n.getAttribute("data-status") || "ready"
|
|
397
|
-
};
|
|
398
|
-
}, An = (e, t) => {
|
|
399
|
-
const [n, r] = b(e ? "loading" : "unset"), s = E(void 0);
|
|
400
|
-
return C(() => {
|
|
401
|
-
if (!e) {
|
|
402
|
-
r("unset");
|
|
403
|
-
return;
|
|
404
|
-
}
|
|
405
|
-
const o = e.replace(/[|#].*$/, "");
|
|
406
|
-
if (t?.type === "css" || !t?.type && /(^css!|\.css$)/.test(o)) {
|
|
407
|
-
const c = ft(e, t?.css);
|
|
408
|
-
s.current = c.ref, r(c.status);
|
|
409
|
-
} else if (t?.type === "js" || !t?.type && /(^js!|\.js$)/.test(o)) {
|
|
410
|
-
const c = lt(e, t?.js);
|
|
411
|
-
s.current = c.ref, r(c.status);
|
|
412
|
-
} else
|
|
413
|
-
console.error(
|
|
414
|
-
"Cannot infer the type of external resource, and please provide a type ('js' | 'css'). "
|
|
415
|
-
);
|
|
416
|
-
if (!s.current)
|
|
417
|
-
return;
|
|
418
|
-
J[e] === void 0 ? J[e] = 1 : J[e] += 1;
|
|
419
|
-
const a = (c) => {
|
|
420
|
-
const d = c.type === "load" ? "ready" : "error";
|
|
421
|
-
s.current?.setAttribute("data-status", d), r(d);
|
|
422
|
-
};
|
|
423
|
-
return s.current.addEventListener("load", a), s.current.addEventListener("error", a), () => {
|
|
424
|
-
s.current?.removeEventListener("load", a), s.current?.removeEventListener("error", a), J[e] -= 1, J[e] === 0 && !t?.keepWhenUnused && s.current?.remove(), s.current = void 0;
|
|
425
|
-
};
|
|
426
|
-
}, [e]), n;
|
|
427
|
-
}, dt = {
|
|
428
|
-
SVG: "image/svg+xml",
|
|
429
|
-
ICO: "image/x-icon",
|
|
430
|
-
GIF: "image/gif",
|
|
431
|
-
PNG: "image/png"
|
|
432
|
-
}, Pn = (e) => {
|
|
433
|
-
C(() => {
|
|
434
|
-
if (!e)
|
|
435
|
-
return;
|
|
436
|
-
const t = e.split("."), n = t[t.length - 1].toLocaleUpperCase(), r = document.querySelector("link[rel*='icon']") || document.createElement("link");
|
|
437
|
-
r.type = dt[n], r.href = e, r.rel = "shortcut icon", document.getElementsByTagName("head")[0].appendChild(r);
|
|
438
|
-
}, [e]);
|
|
439
|
-
};
|
|
440
|
-
function Cn(e, t) {
|
|
441
|
-
const [n, r] = b(!1), { onFocus: s, onBlur: o, onChange: a } = t || {};
|
|
442
|
-
return j(
|
|
443
|
-
"focusin",
|
|
444
|
-
(c) => {
|
|
445
|
-
n || (s?.(c), a?.(!0), r(!0));
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
target: e
|
|
449
|
-
}
|
|
450
|
-
), j(
|
|
451
|
-
"focusout",
|
|
452
|
-
(c) => {
|
|
453
|
-
n && !c.currentTarget?.contains?.(c.relatedTarget) && (o?.(c), a?.(!1), r(!1));
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
target: e
|
|
457
|
-
}
|
|
458
|
-
), n;
|
|
459
|
-
}
|
|
460
|
-
const Dn = (e, t) => {
|
|
461
|
-
const { onExit: n, onEnter: r, pageFullscreen: s = !1 } = t || {}, { className: o = "@unicom-cloud-ui-hooks-page-fullscreen", zIndex: a = 999999 } = Ve(s) || !s ? {} : s, c = L(n), d = L(r), [i, l] = b(m), u = E(m());
|
|
462
|
-
function m() {
|
|
463
|
-
return X.isEnabled && !!X.element && X.element === D(e);
|
|
464
|
-
}
|
|
465
|
-
const h = (v) => {
|
|
466
|
-
v ? d.current?.() : c.current?.();
|
|
467
|
-
}, p = (v) => {
|
|
468
|
-
u.current !== v && (h(v), l(v), u.current = v);
|
|
469
|
-
}, f = () => {
|
|
470
|
-
const v = m();
|
|
471
|
-
p(v);
|
|
472
|
-
}, T = (v) => {
|
|
473
|
-
const S = D(e);
|
|
474
|
-
if (!S)
|
|
475
|
-
return;
|
|
476
|
-
let R = document.getElementById(o);
|
|
477
|
-
v ? (S.classList.add(o), R || (R = document.createElement("style"), R.setAttribute("id", o), R.textContent = `
|
|
478
|
-
.${o} {
|
|
479
|
-
position: fixed; left: 0; top: 0; right: 0; bottom: 0;
|
|
480
|
-
width: 100% !important; height: 100% !important;
|
|
481
|
-
z-index: ${a};
|
|
482
|
-
}`, S.appendChild(R))) : (S.classList.remove(o), R && R.remove()), p(v);
|
|
483
|
-
}, A = () => {
|
|
484
|
-
const v = D(e);
|
|
485
|
-
if (v) {
|
|
486
|
-
if (s) {
|
|
487
|
-
T(!0);
|
|
488
|
-
return;
|
|
489
|
-
}
|
|
490
|
-
if (X.isEnabled)
|
|
491
|
-
try {
|
|
492
|
-
X.request(v);
|
|
493
|
-
} catch (S) {
|
|
494
|
-
console.error(S);
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
}, O = () => {
|
|
498
|
-
const v = D(e);
|
|
499
|
-
if (v) {
|
|
500
|
-
if (s) {
|
|
501
|
-
T(!1);
|
|
502
|
-
return;
|
|
503
|
-
}
|
|
504
|
-
X.isEnabled && X.element === v && X.exit();
|
|
505
|
-
}
|
|
506
|
-
}, g = () => {
|
|
507
|
-
i ? O() : A();
|
|
508
|
-
};
|
|
509
|
-
return C(() => {
|
|
510
|
-
if (!(!X.isEnabled || s))
|
|
511
|
-
return X.on("change", f), () => {
|
|
512
|
-
X.off("change", f);
|
|
513
|
-
};
|
|
514
|
-
}, []), [
|
|
515
|
-
i,
|
|
516
|
-
{
|
|
517
|
-
enterFullscreen: y(A),
|
|
518
|
-
exitFullscreen: y(O),
|
|
519
|
-
toggleFullscreen: y(g),
|
|
520
|
-
isEnabled: X.isEnabled
|
|
521
|
-
}
|
|
522
|
-
];
|
|
523
|
-
};
|
|
524
|
-
function Mn(e) {
|
|
525
|
-
const [t, n] = b(e), r = L(t), s = q(() => r.current, []);
|
|
526
|
-
return [t, n, s];
|
|
527
|
-
}
|
|
528
|
-
const mt = (e, t) => {
|
|
529
|
-
let n = e > 0 ? e - 1 : t.length + e;
|
|
530
|
-
return n >= t.length - 1 && (n = t.length - 1), n < 0 && (n = 0), n;
|
|
531
|
-
}, Se = (e, t) => {
|
|
532
|
-
const n = mt(e, t);
|
|
533
|
-
return {
|
|
534
|
-
_current: t[n],
|
|
535
|
-
_before: t.slice(0, n),
|
|
536
|
-
_after: t.slice(n + 1)
|
|
537
|
-
};
|
|
538
|
-
};
|
|
539
|
-
function Nn(e, t = 0) {
|
|
540
|
-
const [n, r] = b({
|
|
541
|
-
present: e,
|
|
542
|
-
past: [],
|
|
543
|
-
future: []
|
|
544
|
-
}), { present: s, past: o, future: a } = n, c = E(e), d = (...h) => {
|
|
545
|
-
const p = h.length > 0 ? h[0] : c.current;
|
|
546
|
-
c.current = p, r({
|
|
547
|
-
present: p,
|
|
548
|
-
future: [],
|
|
549
|
-
past: []
|
|
550
|
-
});
|
|
551
|
-
}, i = (h) => {
|
|
552
|
-
const p = [...o, s], f = F(t) ? t : Number(t);
|
|
553
|
-
f > 0 && p.length > f && p.splice(0, 1), r({
|
|
554
|
-
present: h,
|
|
555
|
-
future: [],
|
|
556
|
-
past: p
|
|
557
|
-
});
|
|
558
|
-
}, l = (h = 1) => {
|
|
559
|
-
if (a.length === 0)
|
|
560
|
-
return;
|
|
561
|
-
const { _before: p, _current: f, _after: T } = Se(h, a);
|
|
562
|
-
r({
|
|
563
|
-
past: [...o, s, ...p],
|
|
564
|
-
present: f,
|
|
565
|
-
future: T
|
|
566
|
-
});
|
|
567
|
-
}, u = (h = -1) => {
|
|
568
|
-
if (o.length === 0)
|
|
569
|
-
return;
|
|
570
|
-
const { _before: p, _current: f, _after: T } = Se(h, o);
|
|
571
|
-
r({
|
|
572
|
-
past: p,
|
|
573
|
-
present: f,
|
|
574
|
-
future: [...T, s, ...a]
|
|
575
|
-
});
|
|
576
|
-
}, m = (h) => {
|
|
577
|
-
const p = F(h) ? h : Number(h);
|
|
578
|
-
if (p !== 0) {
|
|
579
|
-
if (p > 0)
|
|
580
|
-
return l(p);
|
|
581
|
-
u(p);
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
return {
|
|
585
|
-
value: s,
|
|
586
|
-
backLength: o.length,
|
|
587
|
-
forwardLength: a.length,
|
|
588
|
-
setValue: y(i),
|
|
589
|
-
go: y(m),
|
|
590
|
-
back: y(() => {
|
|
591
|
-
m(-1);
|
|
592
|
-
}),
|
|
593
|
-
forward: y(() => {
|
|
594
|
-
m(1);
|
|
595
|
-
}),
|
|
596
|
-
reset: y(d)
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
const On = (e, t) => {
|
|
600
|
-
const { onEnter: n, onLeave: r, onChange: s } = t || {}, [o, { setTrue: a, setFalse: c }] = ot(!1);
|
|
601
|
-
return j(
|
|
602
|
-
"mouseenter",
|
|
603
|
-
() => {
|
|
604
|
-
n?.(), a(), s?.(!0);
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
target: e
|
|
608
|
-
}
|
|
609
|
-
), j(
|
|
610
|
-
"mouseleave",
|
|
611
|
-
() => {
|
|
612
|
-
r?.(), c(), s?.(!1);
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
target: e
|
|
616
|
-
}
|
|
617
|
-
), o;
|
|
618
|
-
};
|
|
619
|
-
function xn(e, t) {
|
|
620
|
-
const { callback: n, ...r } = t || {}, [s, o] = b(), [a, c] = b();
|
|
621
|
-
return U(
|
|
622
|
-
() => {
|
|
623
|
-
const i = (Array.isArray(e) ? e : [e]).map((u) => D(u)).filter(Boolean);
|
|
624
|
-
if (!i.length)
|
|
625
|
-
return;
|
|
626
|
-
const l = new IntersectionObserver(
|
|
627
|
-
(u) => {
|
|
628
|
-
for (const m of u)
|
|
629
|
-
c(m.intersectionRatio), o(m.isIntersecting), n?.(m);
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
...r,
|
|
633
|
-
root: D(t?.root)
|
|
634
|
-
}
|
|
635
|
-
);
|
|
636
|
-
return i.forEach((u) => l.observe(u)), () => {
|
|
637
|
-
l.disconnect();
|
|
638
|
-
};
|
|
639
|
-
},
|
|
640
|
-
[t?.rootMargin, t?.threshold, n],
|
|
641
|
-
e
|
|
642
|
-
), [s, a];
|
|
643
|
-
}
|
|
644
|
-
const G = /* @__PURE__ */ new Map(), gt = (e, t, n) => {
|
|
645
|
-
const r = G.get(e);
|
|
646
|
-
r?.timer && clearTimeout(r.timer);
|
|
647
|
-
let s;
|
|
648
|
-
t > -1 && (s = setTimeout(() => {
|
|
649
|
-
G.delete(e);
|
|
650
|
-
}, t)), G.set(e, {
|
|
651
|
-
...n,
|
|
652
|
-
timer: s
|
|
653
|
-
});
|
|
654
|
-
}, ht = (e) => G.get(e), Fn = (e) => {
|
|
655
|
-
e ? (Array.isArray(e) ? e : [e]).forEach((n) => G.delete(n)) : G.clear();
|
|
656
|
-
}, Z = /* @__PURE__ */ new Map(), pt = (e) => Z.get(e), vt = (e, t) => {
|
|
657
|
-
Z.set(e, t), t.then((n) => (Z.delete(e), n)).catch(() => {
|
|
658
|
-
Z.delete(e);
|
|
659
|
-
});
|
|
660
|
-
}, $ = {}, yt = (e, t) => {
|
|
661
|
-
$[e] && $[e].forEach((n) => n(t));
|
|
662
|
-
}, ie = (e, t) => ($[e] || ($[e] = []), $[e].push(t), function() {
|
|
663
|
-
const r = $[e].indexOf(t);
|
|
664
|
-
$[e].splice(r, 1);
|
|
665
|
-
}), Et = (e, {
|
|
666
|
-
cacheKey: t,
|
|
667
|
-
cacheTime: n = 300 * 1e3,
|
|
668
|
-
staleTime: r = 0,
|
|
669
|
-
setCache: s,
|
|
670
|
-
getCache: o
|
|
671
|
-
}) => {
|
|
672
|
-
const a = E(void 0), c = E(void 0), d = (l, u) => {
|
|
673
|
-
s ? s(u) : gt(l, n, u), yt(l, u.data);
|
|
674
|
-
}, i = (l, u = []) => o ? o(u) : ht(l);
|
|
675
|
-
return se(() => {
|
|
676
|
-
if (!t)
|
|
677
|
-
return;
|
|
678
|
-
const l = i(t);
|
|
679
|
-
l && Object.hasOwnProperty.call(l, "data") && (e.state.data = l.data, e.state.params = l.params, (r === -1 || Date.now() - l.time <= r) && (e.state.loading = !1)), a.current = ie(t, (u) => {
|
|
680
|
-
e.setState({ data: u });
|
|
681
|
-
});
|
|
682
|
-
}, []), W(() => {
|
|
683
|
-
a.current?.();
|
|
684
|
-
}), t ? {
|
|
685
|
-
onBefore: (l) => {
|
|
686
|
-
const u = i(t, l);
|
|
687
|
-
return !u || !Object.hasOwnProperty.call(u, "data") ? {} : r === -1 || Date.now() - u.time <= r ? {
|
|
688
|
-
loading: !1,
|
|
689
|
-
data: u?.data,
|
|
690
|
-
error: void 0,
|
|
691
|
-
returnNow: !0
|
|
692
|
-
} : {
|
|
693
|
-
data: u?.data,
|
|
694
|
-
error: void 0
|
|
695
|
-
};
|
|
696
|
-
},
|
|
697
|
-
onRequest: (l, u) => {
|
|
698
|
-
let m = pt(t);
|
|
699
|
-
return m && m !== c.current ? { servicePromise: m } : (m = l(...u), c.current = m, vt(t, m), { servicePromise: m });
|
|
700
|
-
},
|
|
701
|
-
onSuccess: (l, u) => {
|
|
702
|
-
t && (a.current?.(), d(t, {
|
|
703
|
-
data: l,
|
|
704
|
-
params: u,
|
|
705
|
-
time: Date.now()
|
|
706
|
-
}), a.current = ie(t, (m) => {
|
|
707
|
-
e.setState({ data: m });
|
|
708
|
-
}));
|
|
709
|
-
},
|
|
710
|
-
onMutate: (l) => {
|
|
711
|
-
t && (a.current?.(), d(t, {
|
|
712
|
-
data: l,
|
|
713
|
-
params: e.state.params,
|
|
714
|
-
time: Date.now()
|
|
715
|
-
}), a.current = ie(t, (u) => {
|
|
716
|
-
e.setState({ data: u });
|
|
717
|
-
}));
|
|
718
|
-
}
|
|
719
|
-
} : {};
|
|
720
|
-
}, St = (e, { debounceWait: t, debounceLeading: n, debounceTrailing: r, debounceMaxWait: s }) => {
|
|
721
|
-
const o = E(void 0), a = x(() => {
|
|
722
|
-
const c = {};
|
|
723
|
-
return n !== void 0 && (c.leading = n), r !== void 0 && (c.trailing = r), s !== void 0 && (c.maxWait = s), c;
|
|
724
|
-
}, [n, r, s]);
|
|
725
|
-
return C(() => {
|
|
726
|
-
if (t) {
|
|
727
|
-
const c = e.runAsync.bind(e);
|
|
728
|
-
return o.current = Ce(
|
|
729
|
-
(d) => {
|
|
730
|
-
d();
|
|
731
|
-
},
|
|
732
|
-
t,
|
|
733
|
-
a
|
|
734
|
-
), e.runAsync = (...d) => new Promise((i, l) => {
|
|
735
|
-
o.current?.(() => {
|
|
736
|
-
c(...d).then(i).catch(l);
|
|
737
|
-
});
|
|
738
|
-
}), () => {
|
|
739
|
-
o.current?.cancel(), e.runAsync = c;
|
|
740
|
-
};
|
|
741
|
-
}
|
|
742
|
-
}, [t, a]), t ? {
|
|
743
|
-
onCancel: () => {
|
|
744
|
-
o.current?.cancel();
|
|
745
|
-
}
|
|
746
|
-
} : {};
|
|
747
|
-
}, wt = (e, { loadingDelay: t, ready: n }) => {
|
|
748
|
-
const r = E(void 0);
|
|
749
|
-
if (!t)
|
|
750
|
-
return {};
|
|
751
|
-
const s = () => {
|
|
752
|
-
r.current && clearTimeout(r.current);
|
|
753
|
-
};
|
|
754
|
-
return {
|
|
755
|
-
onBefore: () => (s(), n !== !1 && (r.current = setTimeout(() => {
|
|
756
|
-
e.setState({
|
|
757
|
-
loading: !0
|
|
758
|
-
});
|
|
759
|
-
}, t)), {
|
|
760
|
-
loading: !1
|
|
761
|
-
}),
|
|
762
|
-
onFinally: () => {
|
|
763
|
-
s();
|
|
764
|
-
},
|
|
765
|
-
onCancel: () => {
|
|
766
|
-
s();
|
|
767
|
-
}
|
|
768
|
-
};
|
|
769
|
-
}, bt = (e, { pollingInterval: t, pollingWhenHidden: n = !0, pollingErrorRetryCount: r = -1 }) => {
|
|
770
|
-
const s = E(void 0), o = E(void 0), a = E(0), c = () => {
|
|
771
|
-
s.current && clearTimeout(s.current), o.current?.();
|
|
772
|
-
};
|
|
773
|
-
return K(() => {
|
|
774
|
-
t || c();
|
|
775
|
-
}, [t]), t ? {
|
|
776
|
-
onBefore: () => {
|
|
777
|
-
c();
|
|
778
|
-
},
|
|
779
|
-
onError: () => {
|
|
780
|
-
a.current += 1;
|
|
781
|
-
},
|
|
782
|
-
onSuccess: () => {
|
|
783
|
-
a.current = 0;
|
|
784
|
-
},
|
|
785
|
-
onFinally: () => {
|
|
786
|
-
r === -1 || // When an error occurs, the request is not repeated after pollingErrorRetryCount retries
|
|
787
|
-
r !== -1 && a.current <= r ? s.current = setTimeout(() => {
|
|
788
|
-
!n && !We() ? o.current = Ge(() => {
|
|
789
|
-
e.refresh();
|
|
790
|
-
}) : e.refresh();
|
|
791
|
-
}, t) : a.current = 0;
|
|
792
|
-
},
|
|
793
|
-
onCancel: () => {
|
|
794
|
-
c();
|
|
795
|
-
}
|
|
796
|
-
} : {};
|
|
797
|
-
};
|
|
798
|
-
function Rt(e, t) {
|
|
799
|
-
let n = !1;
|
|
800
|
-
return (...r) => {
|
|
801
|
-
n || (n = !0, e(...r), setTimeout(() => {
|
|
802
|
-
n = !1;
|
|
803
|
-
}, t));
|
|
804
|
-
};
|
|
805
|
-
}
|
|
806
|
-
const Tt = (e, { refreshOnWindowFocus: t, focusTimespan: n = 5e3 }) => {
|
|
807
|
-
const r = E(void 0), s = () => {
|
|
808
|
-
r.current?.();
|
|
809
|
-
};
|
|
810
|
-
return C(() => {
|
|
811
|
-
if (t) {
|
|
812
|
-
const o = Rt(
|
|
813
|
-
e.refresh.bind(e),
|
|
814
|
-
n
|
|
815
|
-
);
|
|
816
|
-
r.current = Ke(() => {
|
|
817
|
-
o();
|
|
818
|
-
});
|
|
819
|
-
}
|
|
820
|
-
return () => {
|
|
821
|
-
s();
|
|
822
|
-
};
|
|
823
|
-
}, [t, n]), W(() => {
|
|
824
|
-
s();
|
|
825
|
-
}), {};
|
|
826
|
-
}, Lt = (e, { retryInterval: t, retryCount: n }) => {
|
|
827
|
-
const r = E(void 0), s = E(0), o = E(!1);
|
|
828
|
-
return n ? {
|
|
829
|
-
onBefore: () => {
|
|
830
|
-
o.current || (s.current = 0), o.current = !1, r.current && clearTimeout(r.current);
|
|
831
|
-
},
|
|
832
|
-
onSuccess: () => {
|
|
833
|
-
s.current = 0;
|
|
834
|
-
},
|
|
835
|
-
onError: () => {
|
|
836
|
-
if (s.current += 1, n === -1 || s.current <= n) {
|
|
837
|
-
const a = t ?? Math.min(1e3 * 2 ** s.current, 3e4);
|
|
838
|
-
r.current = setTimeout(() => {
|
|
839
|
-
o.current = !0, e.refresh();
|
|
840
|
-
}, a);
|
|
841
|
-
} else
|
|
842
|
-
s.current = 0;
|
|
843
|
-
},
|
|
844
|
-
onCancel: () => {
|
|
845
|
-
s.current = 0, r.current && clearTimeout(r.current);
|
|
846
|
-
}
|
|
847
|
-
} : {};
|
|
848
|
-
}, At = (e, { throttleWait: t, throttleLeading: n, throttleTrailing: r }) => {
|
|
849
|
-
const s = E(void 0), o = {};
|
|
850
|
-
return n !== void 0 && (o.leading = n), r !== void 0 && (o.trailing = r), C(() => {
|
|
851
|
-
if (t) {
|
|
852
|
-
const a = e.runAsync.bind(e);
|
|
853
|
-
return s.current = Me(
|
|
854
|
-
(c) => {
|
|
855
|
-
c();
|
|
856
|
-
},
|
|
857
|
-
t,
|
|
858
|
-
o
|
|
859
|
-
), e.runAsync = (...c) => new Promise((d, i) => {
|
|
860
|
-
s.current?.(() => {
|
|
861
|
-
a(...c).then(d).catch(i);
|
|
862
|
-
});
|
|
863
|
-
}), () => {
|
|
864
|
-
e.runAsync = a, s.current?.cancel();
|
|
865
|
-
};
|
|
866
|
-
}
|
|
867
|
-
}, [t, n, r]), t ? {
|
|
868
|
-
onCancel: () => {
|
|
869
|
-
s.current?.cancel();
|
|
870
|
-
}
|
|
871
|
-
} : {};
|
|
872
|
-
};
|
|
873
|
-
class Pt {
|
|
874
|
-
constructor(t, n, r, s = {}) {
|
|
875
|
-
this.serviceRef = t, this.options = n, this.subscribe = r, this.initState = s, this.count = 0, this.state = {
|
|
876
|
-
loading: !1,
|
|
877
|
-
params: void 0,
|
|
878
|
-
data: void 0,
|
|
879
|
-
error: void 0
|
|
880
|
-
}, this.state = {
|
|
881
|
-
...this.state,
|
|
882
|
-
loading: !n.manual,
|
|
883
|
-
...s
|
|
884
|
-
};
|
|
885
|
-
}
|
|
886
|
-
setState(t = {}) {
|
|
887
|
-
this.state = {
|
|
888
|
-
...this.state,
|
|
889
|
-
...t
|
|
890
|
-
}, this.subscribe();
|
|
891
|
-
}
|
|
892
|
-
runPluginHandler(t, ...n) {
|
|
893
|
-
const r = this.pluginImpls.map((s) => s[t]?.(...n)).filter(Boolean);
|
|
894
|
-
return Object.assign({}, ...r);
|
|
895
|
-
}
|
|
896
|
-
async runAsync(...t) {
|
|
897
|
-
this.count += 1;
|
|
898
|
-
const n = this.count, {
|
|
899
|
-
stopNow: r = !1,
|
|
900
|
-
returnNow: s = !1,
|
|
901
|
-
...o
|
|
902
|
-
} = this.runPluginHandler("onBefore", t);
|
|
903
|
-
if (r)
|
|
904
|
-
return new Promise(() => {
|
|
905
|
-
});
|
|
906
|
-
if (this.setState({
|
|
907
|
-
loading: !0,
|
|
908
|
-
params: t,
|
|
909
|
-
...o
|
|
910
|
-
}), s)
|
|
911
|
-
return Promise.resolve(o.data);
|
|
912
|
-
this.options.onBefore?.(t);
|
|
913
|
-
try {
|
|
914
|
-
let { servicePromise: a } = this.runPluginHandler(
|
|
915
|
-
"onRequest",
|
|
916
|
-
this.serviceRef.current,
|
|
917
|
-
t
|
|
918
|
-
);
|
|
919
|
-
a || (a = this.serviceRef.current(...t));
|
|
920
|
-
const c = await a;
|
|
921
|
-
return n !== this.count ? new Promise(() => {
|
|
922
|
-
}) : (this.setState({
|
|
923
|
-
data: c,
|
|
924
|
-
error: void 0,
|
|
925
|
-
loading: !1
|
|
926
|
-
}), this.options.onSuccess?.(c, t), this.runPluginHandler("onSuccess", c, t), this.options.onFinally?.(t, c, void 0), n === this.count && this.runPluginHandler("onFinally", t, c, void 0), c);
|
|
927
|
-
} catch (a) {
|
|
928
|
-
if (n !== this.count)
|
|
929
|
-
return new Promise(() => {
|
|
930
|
-
});
|
|
931
|
-
throw this.setState({
|
|
932
|
-
error: a,
|
|
933
|
-
loading: !1
|
|
934
|
-
}), this.options.onError?.(a, t), this.runPluginHandler("onError", a, t), this.options.onFinally?.(t, void 0, a), n === this.count && this.runPluginHandler("onFinally", t, void 0, a), a;
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
run(...t) {
|
|
938
|
-
this.runAsync(...t).catch((n) => {
|
|
939
|
-
this.options.onError || console.error(n);
|
|
940
|
-
});
|
|
941
|
-
}
|
|
942
|
-
cancel() {
|
|
943
|
-
this.count += 1, this.setState({
|
|
944
|
-
loading: !1
|
|
945
|
-
}), this.runPluginHandler("onCancel");
|
|
946
|
-
}
|
|
947
|
-
refresh() {
|
|
948
|
-
this.run(...this.state.params || []);
|
|
949
|
-
}
|
|
950
|
-
refreshAsync() {
|
|
951
|
-
return this.runAsync(...this.state.params || []);
|
|
952
|
-
}
|
|
953
|
-
mutate(t) {
|
|
954
|
-
const n = k(t) ? t(this.state.data) : t;
|
|
955
|
-
this.runPluginHandler("onMutate", n), this.setState({
|
|
956
|
-
data: n
|
|
957
|
-
});
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
function Ct(e, t = {}, n = []) {
|
|
961
|
-
const { manual: r = !1, ready: s = !0, ...o } = t;
|
|
962
|
-
re && t.defaultParams && !Array.isArray(t.defaultParams) && console.warn(
|
|
963
|
-
`expected defaultParams is array, got ${typeof t.defaultParams}`
|
|
964
|
-
);
|
|
965
|
-
const a = {
|
|
966
|
-
manual: r,
|
|
967
|
-
ready: s,
|
|
968
|
-
...o
|
|
969
|
-
}, c = L(e), d = ne(), i = se(() => {
|
|
970
|
-
const l = n.map((u) => u?.onInit?.(a)).filter(Boolean);
|
|
971
|
-
return new Pt(
|
|
972
|
-
c,
|
|
973
|
-
a,
|
|
974
|
-
d,
|
|
975
|
-
Object.assign({}, ...l)
|
|
976
|
-
);
|
|
977
|
-
}, []);
|
|
978
|
-
return i.options = a, i.pluginImpls = n.map(
|
|
979
|
-
(l) => l(i, a)
|
|
980
|
-
), Fe(() => {
|
|
981
|
-
if (!r && s) {
|
|
982
|
-
const l = i.state.params || t.defaultParams || [];
|
|
983
|
-
i.run(...l);
|
|
984
|
-
}
|
|
985
|
-
}), W(() => {
|
|
986
|
-
i.cancel();
|
|
987
|
-
}), {
|
|
988
|
-
loading: i.state.loading,
|
|
989
|
-
data: i.state.data,
|
|
990
|
-
error: i.state.error,
|
|
991
|
-
params: i.state.params || [],
|
|
992
|
-
cancel: y(i.cancel.bind(i)),
|
|
993
|
-
refresh: y(i.refresh.bind(i)),
|
|
994
|
-
refreshAsync: y(i.refreshAsync.bind(i)),
|
|
995
|
-
run: y(i.run.bind(i)),
|
|
996
|
-
runAsync: y(i.runAsync.bind(i)),
|
|
997
|
-
mutate: y(i.mutate.bind(i))
|
|
998
|
-
};
|
|
999
|
-
}
|
|
1000
|
-
function ke(e, t, n) {
|
|
1001
|
-
return Ct(e, t, [
|
|
1002
|
-
...n || [],
|
|
1003
|
-
St,
|
|
1004
|
-
wt,
|
|
1005
|
-
bt,
|
|
1006
|
-
Tt,
|
|
1007
|
-
At,
|
|
1008
|
-
Je,
|
|
1009
|
-
Et,
|
|
1010
|
-
Lt
|
|
1011
|
-
]);
|
|
1012
|
-
}
|
|
1013
|
-
const Dt = (e) => e === document || e === document.documentElement || e === document.body ? Math.max(
|
|
1014
|
-
window.pageYOffset,
|
|
1015
|
-
document.documentElement.scrollTop,
|
|
1016
|
-
document.body.scrollTop
|
|
1017
|
-
) : e.scrollTop, we = (e) => e.scrollHeight || Math.max(document.documentElement.scrollHeight, document.body.scrollHeight), Mt = (e) => e.clientHeight || Math.max(document.documentElement.clientHeight, document.body.clientHeight), kn = (e, t = {}) => {
|
|
1018
|
-
const {
|
|
1019
|
-
target: n,
|
|
1020
|
-
isNoMore: r,
|
|
1021
|
-
threshold: s = 100,
|
|
1022
|
-
direction: o = "bottom",
|
|
1023
|
-
reloadDeps: a = [],
|
|
1024
|
-
manual: c,
|
|
1025
|
-
onBefore: d,
|
|
1026
|
-
onSuccess: i,
|
|
1027
|
-
onError: l,
|
|
1028
|
-
onFinally: u
|
|
1029
|
-
} = t, [m, h] = b(), [p, f] = b(!1), T = o === "top", A = E(void 0), O = E(0), g = x(() => r ? r(m) : !1, [m]), { loading: v, error: S, run: R, runAsync: N, cancel: I } = ke(
|
|
1030
|
-
async (M) => ({ currentData: await e(M), lastData: M }),
|
|
1031
|
-
{
|
|
1032
|
-
manual: c,
|
|
1033
|
-
onFinally: (M, H, z) => {
|
|
1034
|
-
f(!1), u?.(H?.currentData, z);
|
|
1035
|
-
},
|
|
1036
|
-
onBefore: () => d?.(),
|
|
1037
|
-
onSuccess: (M) => {
|
|
1038
|
-
M.lastData ? h({
|
|
1039
|
-
...M.currentData,
|
|
1040
|
-
list: T ? [...M.currentData.list, ...M.lastData.list ?? []] : [...M.lastData.list ?? [], ...M.currentData.list]
|
|
1041
|
-
}) : h({
|
|
1042
|
-
...M.currentData,
|
|
1043
|
-
list: [...M.currentData.list ?? []]
|
|
1044
|
-
}), setTimeout(() => {
|
|
1045
|
-
if (T) {
|
|
1046
|
-
let H = D(n);
|
|
1047
|
-
if (H = H === document ? document.documentElement : H, H) {
|
|
1048
|
-
const z = we(H);
|
|
1049
|
-
H.scrollTo(0, z - O.current);
|
|
1050
|
-
}
|
|
1051
|
-
} else
|
|
1052
|
-
pe();
|
|
1053
|
-
}), i?.(M.currentData);
|
|
1054
|
-
},
|
|
1055
|
-
onError: (M) => l?.(M)
|
|
1056
|
-
}
|
|
1057
|
-
), w = y(() => {
|
|
1058
|
-
g || (f(!0), R(m));
|
|
1059
|
-
}), Y = async (M) => (await N(M)).currentData, P = y(() => g ? Promise.reject() : (f(!0), Y(m))), _ = () => (f(!1), R()), oe = () => (f(!1), Y()), pe = () => {
|
|
1060
|
-
const M = D(n);
|
|
1061
|
-
if (!M)
|
|
1062
|
-
return;
|
|
1063
|
-
const H = M === document ? document.documentElement : M, z = Dt(H), ve = we(H), Be = Mt(H);
|
|
1064
|
-
T ? (A.current !== void 0 && A.current > z && z <= s && w(), A.current = z, O.current = ve - z) : ve - z <= Be + s && w();
|
|
1065
|
-
};
|
|
1066
|
-
return j(
|
|
1067
|
-
"scroll",
|
|
1068
|
-
() => {
|
|
1069
|
-
v || p || pe();
|
|
1070
|
-
},
|
|
1071
|
-
{ target: n }
|
|
1072
|
-
), K(() => {
|
|
1073
|
-
R();
|
|
1074
|
-
}, [...a]), {
|
|
1075
|
-
data: m,
|
|
1076
|
-
loading: !p && v,
|
|
1077
|
-
error: S,
|
|
1078
|
-
loadingMore: p,
|
|
1079
|
-
noMore: g,
|
|
1080
|
-
loadMore: w,
|
|
1081
|
-
loadMoreAsync: P,
|
|
1082
|
-
reload: y(_),
|
|
1083
|
-
reloadAsync: y(oe),
|
|
1084
|
-
mutate: h,
|
|
1085
|
-
cancel: I
|
|
1086
|
-
};
|
|
1087
|
-
}, _e = (e, t, n) => {
|
|
1088
|
-
const r = E(void 0), s = E(0);
|
|
1089
|
-
Oe(t, r.current) || (s.current += 1), r.current = t, U(e, [s.current], n);
|
|
1090
|
-
}, He = {
|
|
1091
|
-
0: 48,
|
|
1092
|
-
1: 49,
|
|
1093
|
-
2: 50,
|
|
1094
|
-
3: 51,
|
|
1095
|
-
4: 52,
|
|
1096
|
-
5: 53,
|
|
1097
|
-
6: 54,
|
|
1098
|
-
7: 55,
|
|
1099
|
-
8: 56,
|
|
1100
|
-
9: 57,
|
|
1101
|
-
backspace: 8,
|
|
1102
|
-
tab: 9,
|
|
1103
|
-
enter: 13,
|
|
1104
|
-
shift: 16,
|
|
1105
|
-
ctrl: 17,
|
|
1106
|
-
alt: 18,
|
|
1107
|
-
pausebreak: 19,
|
|
1108
|
-
capslock: 20,
|
|
1109
|
-
esc: 27,
|
|
1110
|
-
space: 32,
|
|
1111
|
-
pageup: 33,
|
|
1112
|
-
pagedown: 34,
|
|
1113
|
-
end: 35,
|
|
1114
|
-
home: 36,
|
|
1115
|
-
leftarrow: 37,
|
|
1116
|
-
uparrow: 38,
|
|
1117
|
-
rightarrow: 39,
|
|
1118
|
-
downarrow: 40,
|
|
1119
|
-
insert: 45,
|
|
1120
|
-
delete: 46,
|
|
1121
|
-
a: 65,
|
|
1122
|
-
b: 66,
|
|
1123
|
-
c: 67,
|
|
1124
|
-
d: 68,
|
|
1125
|
-
e: 69,
|
|
1126
|
-
f: 70,
|
|
1127
|
-
g: 71,
|
|
1128
|
-
h: 72,
|
|
1129
|
-
i: 73,
|
|
1130
|
-
j: 74,
|
|
1131
|
-
k: 75,
|
|
1132
|
-
l: 76,
|
|
1133
|
-
m: 77,
|
|
1134
|
-
n: 78,
|
|
1135
|
-
o: 79,
|
|
1136
|
-
p: 80,
|
|
1137
|
-
q: 81,
|
|
1138
|
-
r: 82,
|
|
1139
|
-
s: 83,
|
|
1140
|
-
t: 84,
|
|
1141
|
-
u: 85,
|
|
1142
|
-
v: 86,
|
|
1143
|
-
w: 87,
|
|
1144
|
-
x: 88,
|
|
1145
|
-
y: 89,
|
|
1146
|
-
z: 90,
|
|
1147
|
-
leftwindowkey: 91,
|
|
1148
|
-
rightwindowkey: 92,
|
|
1149
|
-
meta: et ? [91, 93] : [91, 92],
|
|
1150
|
-
selectkey: 93,
|
|
1151
|
-
numpad0: 96,
|
|
1152
|
-
numpad1: 97,
|
|
1153
|
-
numpad2: 98,
|
|
1154
|
-
numpad3: 99,
|
|
1155
|
-
numpad4: 100,
|
|
1156
|
-
numpad5: 101,
|
|
1157
|
-
numpad6: 102,
|
|
1158
|
-
numpad7: 103,
|
|
1159
|
-
numpad8: 104,
|
|
1160
|
-
numpad9: 105,
|
|
1161
|
-
multiply: 106,
|
|
1162
|
-
add: 107,
|
|
1163
|
-
subtract: 109,
|
|
1164
|
-
decimalpoint: 110,
|
|
1165
|
-
divide: 111,
|
|
1166
|
-
f1: 112,
|
|
1167
|
-
f2: 113,
|
|
1168
|
-
f3: 114,
|
|
1169
|
-
f4: 115,
|
|
1170
|
-
f5: 116,
|
|
1171
|
-
f6: 117,
|
|
1172
|
-
f7: 118,
|
|
1173
|
-
f8: 119,
|
|
1174
|
-
f9: 120,
|
|
1175
|
-
f10: 121,
|
|
1176
|
-
f11: 122,
|
|
1177
|
-
f12: 123,
|
|
1178
|
-
numlock: 144,
|
|
1179
|
-
scrolllock: 145,
|
|
1180
|
-
semicolon: 186,
|
|
1181
|
-
equalsign: 187,
|
|
1182
|
-
comma: 188,
|
|
1183
|
-
dash: 189,
|
|
1184
|
-
period: 190,
|
|
1185
|
-
forwardslash: 191,
|
|
1186
|
-
graveaccent: 192,
|
|
1187
|
-
openbracket: 219,
|
|
1188
|
-
backslash: 220,
|
|
1189
|
-
closebracket: 221,
|
|
1190
|
-
singlequote: 222
|
|
1191
|
-
}, me = {
|
|
1192
|
-
ctrl: (e) => e.ctrlKey,
|
|
1193
|
-
shift: (e) => e.shiftKey,
|
|
1194
|
-
alt: (e) => e.altKey,
|
|
1195
|
-
meta: (e) => e.type === "keyup" ? He.meta.includes(e.keyCode) : e.metaKey
|
|
1196
|
-
};
|
|
1197
|
-
function Ie(e) {
|
|
1198
|
-
return te(e) || F(e);
|
|
1199
|
-
}
|
|
1200
|
-
function Nt(e) {
|
|
1201
|
-
const t = Object.keys(me).reduce((n, r) => me[r](e) ? n + 1 : n, 0);
|
|
1202
|
-
return [16, 17, 18, 91, 92].includes(e.keyCode) ? t : t + 1;
|
|
1203
|
-
}
|
|
1204
|
-
function be(e, t, n) {
|
|
1205
|
-
if (!e.key)
|
|
1206
|
-
return !1;
|
|
1207
|
-
if (F(t))
|
|
1208
|
-
return e.keyCode === t ? t : !1;
|
|
1209
|
-
const r = t.split(".");
|
|
1210
|
-
let s = 0;
|
|
1211
|
-
for (const o of r) {
|
|
1212
|
-
const a = me[o], c = He[o.toLowerCase()];
|
|
1213
|
-
(a && a(e) || c && c === e.keyCode) && s++;
|
|
1214
|
-
}
|
|
1215
|
-
return n ? s === r.length && Nt(e) === r.length ? t : !1 : s === r.length ? t : !1;
|
|
1216
|
-
}
|
|
1217
|
-
function Ot(e, t) {
|
|
1218
|
-
return k(e) ? e : Ie(e) ? (n) => be(n, e, t) : Array.isArray(e) ? (n) => e.find((r) => be(n, r, t)) : () => !!e;
|
|
1219
|
-
}
|
|
1220
|
-
const xt = ["keydown"];
|
|
1221
|
-
function _n(e, t, n) {
|
|
1222
|
-
const {
|
|
1223
|
-
events: r = xt,
|
|
1224
|
-
target: s,
|
|
1225
|
-
exactMatch: o = !1,
|
|
1226
|
-
useCapture: a = !1
|
|
1227
|
-
} = n || {}, c = L(t), d = L(e);
|
|
1228
|
-
_e(
|
|
1229
|
-
() => {
|
|
1230
|
-
const i = D(s, window);
|
|
1231
|
-
if (!i)
|
|
1232
|
-
return;
|
|
1233
|
-
const l = (u) => {
|
|
1234
|
-
const h = Ot(d.current, o)(u), p = Ie(h) ? h : u.key;
|
|
1235
|
-
if (h)
|
|
1236
|
-
return c.current?.(u, p);
|
|
1237
|
-
};
|
|
1238
|
-
for (const u of r)
|
|
1239
|
-
i?.addEventListener?.(u, l, a);
|
|
1240
|
-
return () => {
|
|
1241
|
-
for (const u of r)
|
|
1242
|
-
i?.removeEventListener?.(u, l, a);
|
|
1243
|
-
};
|
|
1244
|
-
},
|
|
1245
|
-
[r],
|
|
1246
|
-
s
|
|
1247
|
-
);
|
|
1248
|
-
}
|
|
1249
|
-
const Re = "HOOKS_SYNC_STORAGE_EVENT_NAME";
|
|
1250
|
-
function Ye(e) {
|
|
1251
|
-
function t(n, r = {}) {
|
|
1252
|
-
let s;
|
|
1253
|
-
const {
|
|
1254
|
-
listenStorageChange: o = !1,
|
|
1255
|
-
onError: a = (f) => {
|
|
1256
|
-
console.error(f);
|
|
1257
|
-
}
|
|
1258
|
-
} = r;
|
|
1259
|
-
try {
|
|
1260
|
-
s = e();
|
|
1261
|
-
} catch (f) {
|
|
1262
|
-
a(f);
|
|
1263
|
-
}
|
|
1264
|
-
const c = (f) => r.serializer ? r.serializer(f) : JSON.stringify(f), d = (f) => r.deserializer ? r.deserializer(f) : JSON.parse(f);
|
|
1265
|
-
function i() {
|
|
1266
|
-
try {
|
|
1267
|
-
const f = s?.getItem(n);
|
|
1268
|
-
if (f)
|
|
1269
|
-
return d(f);
|
|
1270
|
-
} catch (f) {
|
|
1271
|
-
a(f);
|
|
1272
|
-
}
|
|
1273
|
-
return k(r.defaultValue) ? r.defaultValue() : r.defaultValue;
|
|
1274
|
-
}
|
|
1275
|
-
const [l, u] = b(i);
|
|
1276
|
-
K(() => {
|
|
1277
|
-
u(i());
|
|
1278
|
-
}, [n]);
|
|
1279
|
-
const m = (f) => {
|
|
1280
|
-
const T = k(f) ? f(l) : f;
|
|
1281
|
-
o || u(T);
|
|
1282
|
-
try {
|
|
1283
|
-
let A;
|
|
1284
|
-
const O = s?.getItem(n);
|
|
1285
|
-
Ue(T) ? (A = null, s?.removeItem(n)) : (A = c(T), s?.setItem(n, A)), dispatchEvent(
|
|
1286
|
-
// send custom event to communicate within same page
|
|
1287
|
-
// importantly this should not be a StorageEvent since those cannot
|
|
1288
|
-
// be constructed with a non-built-in storage area
|
|
1289
|
-
new CustomEvent(Re, {
|
|
1290
|
-
detail: {
|
|
1291
|
-
key: n,
|
|
1292
|
-
newValue: A,
|
|
1293
|
-
oldValue: O,
|
|
1294
|
-
storageArea: s
|
|
1295
|
-
}
|
|
1296
|
-
})
|
|
1297
|
-
);
|
|
1298
|
-
} catch (A) {
|
|
1299
|
-
a(A);
|
|
1300
|
-
}
|
|
1301
|
-
}, h = (f) => {
|
|
1302
|
-
f.key !== n || f.storageArea !== s || u(i());
|
|
1303
|
-
}, p = (f) => {
|
|
1304
|
-
h(f.detail);
|
|
1305
|
-
};
|
|
1306
|
-
return j("storage", h, {
|
|
1307
|
-
enable: o
|
|
1308
|
-
}), j(Re, p, {
|
|
1309
|
-
enable: o
|
|
1310
|
-
}), [
|
|
1311
|
-
l,
|
|
1312
|
-
y(m)
|
|
1313
|
-
];
|
|
1314
|
-
}
|
|
1315
|
-
return t;
|
|
1316
|
-
}
|
|
1317
|
-
const Hn = Ye(
|
|
1318
|
-
() => V ? localStorage : void 0
|
|
1319
|
-
);
|
|
1320
|
-
function In(e) {
|
|
1321
|
-
const t = E(!1);
|
|
1322
|
-
return q(
|
|
1323
|
-
async (...n) => {
|
|
1324
|
-
if (!t.current) {
|
|
1325
|
-
t.current = !0;
|
|
1326
|
-
try {
|
|
1327
|
-
return await e(...n);
|
|
1328
|
-
} catch (r) {
|
|
1329
|
-
throw r;
|
|
1330
|
-
} finally {
|
|
1331
|
-
t.current = !1;
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
},
|
|
1335
|
-
[e]
|
|
1336
|
-
);
|
|
1337
|
-
}
|
|
1338
|
-
function Yn(e, t, { delay: n = 300, moveThreshold: r, onClick: s, onLongPressEnd: o } = {}) {
|
|
1339
|
-
const a = L(e), c = L(s), d = L(o), i = E(void 0), l = E(!1), u = E({ x: 0, y: 0 }), m = E(!1), h = E(!1), p = !!(r?.x && r.x > 0 || r?.y && r.y > 0);
|
|
1340
|
-
U(
|
|
1341
|
-
() => {
|
|
1342
|
-
const f = D(t);
|
|
1343
|
-
if (!f?.addEventListener)
|
|
1344
|
-
return;
|
|
1345
|
-
const T = (w) => {
|
|
1346
|
-
const { clientX: Y, clientY: P } = A(w), _ = Math.abs(Y - u.current.x), oe = Math.abs(P - u.current.y);
|
|
1347
|
-
return !!(r?.x && _ > r.x || r?.y && oe > r.y);
|
|
1348
|
-
};
|
|
1349
|
-
function A(w) {
|
|
1350
|
-
return "TouchEvent" in window && w instanceof TouchEvent ? {
|
|
1351
|
-
clientX: w.touches[0].clientX,
|
|
1352
|
-
clientY: w.touches[0].clientY
|
|
1353
|
-
} : w instanceof MouseEvent ? {
|
|
1354
|
-
clientX: w.clientX,
|
|
1355
|
-
clientY: w.clientY
|
|
1356
|
-
} : { clientX: 0, clientY: 0 };
|
|
1357
|
-
}
|
|
1358
|
-
const O = (w) => {
|
|
1359
|
-
i.current = setTimeout(() => {
|
|
1360
|
-
a.current(w), l.current = !0;
|
|
1361
|
-
}, n);
|
|
1362
|
-
}, g = (w) => {
|
|
1363
|
-
if (!h.current) {
|
|
1364
|
-
if (h.current = !0, p) {
|
|
1365
|
-
const { clientX: Y, clientY: P } = A(w);
|
|
1366
|
-
u.current.x = Y, u.current.y = P;
|
|
1367
|
-
}
|
|
1368
|
-
O(w);
|
|
1369
|
-
}
|
|
1370
|
-
}, v = (w) => {
|
|
1371
|
-
w?.sourceCapabilities?.firesTouchEvents || (m.current = !0, p && (u.current.x = w.clientX, u.current.y = w.clientY), O(w));
|
|
1372
|
-
}, S = (w) => {
|
|
1373
|
-
i.current && T(w) && (clearTimeout(i.current), i.current = void 0);
|
|
1374
|
-
}, R = (w) => {
|
|
1375
|
-
h.current && (h.current = !1, i.current && (clearTimeout(i.current), i.current = void 0), l.current ? d.current?.(w) : c.current && c.current(w), l.current = !1);
|
|
1376
|
-
}, N = (w) => {
|
|
1377
|
-
w?.sourceCapabilities?.firesTouchEvents || m.current && (m.current = !1, i.current && (clearTimeout(i.current), i.current = void 0), l.current ? d.current?.(w) : c.current && c.current(w), l.current = !1);
|
|
1378
|
-
}, I = (w) => {
|
|
1379
|
-
m.current && (m.current = !1, i.current && (clearTimeout(i.current), i.current = void 0), l.current && (d.current?.(w), l.current = !1));
|
|
1380
|
-
};
|
|
1381
|
-
return f.addEventListener("mousedown", v), f.addEventListener("mouseup", N), f.addEventListener("mouseleave", I), f.addEventListener("touchstart", g), f.addEventListener("touchend", R), p && (f.addEventListener("mousemove", S), f.addEventListener("touchmove", S)), () => {
|
|
1382
|
-
i.current && (clearTimeout(i.current), l.current = !1), f.removeEventListener("mousedown", v), f.removeEventListener("mouseup", N), f.removeEventListener("mouseleave", I), f.removeEventListener("touchstart", g), f.removeEventListener("touchend", R), p && (f.removeEventListener("mousemove", S), f.removeEventListener("touchmove", S));
|
|
1383
|
-
};
|
|
1384
|
-
},
|
|
1385
|
-
[],
|
|
1386
|
-
t
|
|
1387
|
-
);
|
|
1388
|
-
}
|
|
1389
|
-
const Ft = {
|
|
1390
|
-
screenX: NaN,
|
|
1391
|
-
screenY: NaN,
|
|
1392
|
-
clientX: NaN,
|
|
1393
|
-
clientY: NaN,
|
|
1394
|
-
pageX: NaN,
|
|
1395
|
-
pageY: NaN,
|
|
1396
|
-
elementX: NaN,
|
|
1397
|
-
elementY: NaN,
|
|
1398
|
-
elementH: NaN,
|
|
1399
|
-
elementW: NaN,
|
|
1400
|
-
elementPosX: NaN,
|
|
1401
|
-
elementPosY: NaN
|
|
1402
|
-
}, Xn = (e) => {
|
|
1403
|
-
const [t, n] = De(Ft);
|
|
1404
|
-
return j(
|
|
1405
|
-
"mousemove",
|
|
1406
|
-
(r) => {
|
|
1407
|
-
const { screenX: s, screenY: o, clientX: a, clientY: c, pageX: d, pageY: i } = r, l = {
|
|
1408
|
-
screenX: s,
|
|
1409
|
-
screenY: o,
|
|
1410
|
-
clientX: a,
|
|
1411
|
-
clientY: c,
|
|
1412
|
-
pageX: d,
|
|
1413
|
-
pageY: i,
|
|
1414
|
-
elementX: NaN,
|
|
1415
|
-
elementY: NaN,
|
|
1416
|
-
elementH: NaN,
|
|
1417
|
-
elementW: NaN,
|
|
1418
|
-
elementPosX: NaN,
|
|
1419
|
-
elementPosY: NaN
|
|
1420
|
-
}, u = D(e);
|
|
1421
|
-
if (u) {
|
|
1422
|
-
const { left: m, top: h, width: p, height: f } = u.getBoundingClientRect();
|
|
1423
|
-
l.elementPosX = m + window.pageXOffset, l.elementPosY = h + window.pageYOffset, l.elementX = d - l.elementPosX, l.elementY = i - l.elementPosY, l.elementW = p, l.elementH = f;
|
|
1424
|
-
}
|
|
1425
|
-
n(l);
|
|
1426
|
-
},
|
|
1427
|
-
{
|
|
1428
|
-
target: () => document
|
|
1429
|
-
}
|
|
1430
|
-
), t;
|
|
1431
|
-
}, jn = (e, t, n = {}) => {
|
|
1432
|
-
const r = L(e);
|
|
1433
|
-
_e(
|
|
1434
|
-
() => {
|
|
1435
|
-
const s = D(t);
|
|
1436
|
-
if (!s)
|
|
1437
|
-
return;
|
|
1438
|
-
const o = new MutationObserver(r.current);
|
|
1439
|
-
return o.observe(s, n), () => {
|
|
1440
|
-
o?.disconnect();
|
|
1441
|
-
};
|
|
1442
|
-
},
|
|
1443
|
-
[n],
|
|
1444
|
-
t
|
|
1445
|
-
);
|
|
1446
|
-
};
|
|
1447
|
-
function Xe() {
|
|
1448
|
-
const e = navigator;
|
|
1449
|
-
return $e(e) ? e.connection || e.mozConnection || e.webkitConnection : null;
|
|
1450
|
-
}
|
|
1451
|
-
function Te() {
|
|
1452
|
-
const e = Xe();
|
|
1453
|
-
return e ? {
|
|
1454
|
-
rtt: e.rtt,
|
|
1455
|
-
type: e.type,
|
|
1456
|
-
saveData: e.saveData,
|
|
1457
|
-
downlink: e.downlink,
|
|
1458
|
-
downlinkMax: e.downlinkMax,
|
|
1459
|
-
effectiveType: e.effectiveType
|
|
1460
|
-
} : {};
|
|
1461
|
-
}
|
|
1462
|
-
function zn() {
|
|
1463
|
-
const [e, t] = b(() => ({
|
|
1464
|
-
since: void 0,
|
|
1465
|
-
online: navigator?.onLine,
|
|
1466
|
-
...Te()
|
|
1467
|
-
}));
|
|
1468
|
-
return C(() => {
|
|
1469
|
-
const n = () => {
|
|
1470
|
-
t((a) => ({
|
|
1471
|
-
...a,
|
|
1472
|
-
online: !0,
|
|
1473
|
-
since: /* @__PURE__ */ new Date()
|
|
1474
|
-
}));
|
|
1475
|
-
}, r = () => {
|
|
1476
|
-
t((a) => ({
|
|
1477
|
-
...a,
|
|
1478
|
-
online: !1,
|
|
1479
|
-
since: /* @__PURE__ */ new Date()
|
|
1480
|
-
}));
|
|
1481
|
-
}, s = () => {
|
|
1482
|
-
t((a) => ({
|
|
1483
|
-
...a,
|
|
1484
|
-
...Te()
|
|
1485
|
-
}));
|
|
1486
|
-
};
|
|
1487
|
-
window.addEventListener("online", n), window.addEventListener("offline", r);
|
|
1488
|
-
const o = Xe();
|
|
1489
|
-
return o?.addEventListener("change", s), () => {
|
|
1490
|
-
window.removeEventListener("online", n), window.removeEventListener("offline", r), o?.removeEventListener(
|
|
1491
|
-
"change",
|
|
1492
|
-
s
|
|
1493
|
-
);
|
|
1494
|
-
};
|
|
1495
|
-
}, []), e;
|
|
1496
|
-
}
|
|
1497
|
-
const Bn = (e, t = {}) => {
|
|
1498
|
-
const { defaultPageSize: n = 10, defaultCurrent: r = 1, ...s } = t, o = ke(e, {
|
|
1499
|
-
defaultParams: [{ current: r, pageSize: n }],
|
|
1500
|
-
refreshDepsAction: () => {
|
|
1501
|
-
u(1);
|
|
1502
|
-
},
|
|
1503
|
-
...s
|
|
1504
|
-
}), { current: a = 1, pageSize: c = n } = o.params[0] || {}, d = o.data?.total || 0, i = x(
|
|
1505
|
-
() => Math.ceil(d / c),
|
|
1506
|
-
[c, d]
|
|
1507
|
-
), l = (h, p) => {
|
|
1508
|
-
let f = h <= 0 ? 1 : h;
|
|
1509
|
-
const T = p <= 0 ? 1 : p, A = Math.ceil(d / T);
|
|
1510
|
-
f > A && (f = Math.max(1, A));
|
|
1511
|
-
const [O = {}, ...g] = o.params || [];
|
|
1512
|
-
o.run(
|
|
1513
|
-
{
|
|
1514
|
-
...O,
|
|
1515
|
-
current: f,
|
|
1516
|
-
pageSize: T
|
|
1517
|
-
},
|
|
1518
|
-
...g
|
|
1519
|
-
);
|
|
1520
|
-
}, u = (h) => {
|
|
1521
|
-
l(h, c);
|
|
1522
|
-
}, m = (h) => {
|
|
1523
|
-
l(a, h);
|
|
1524
|
-
};
|
|
1525
|
-
return {
|
|
1526
|
-
...o,
|
|
1527
|
-
pagination: {
|
|
1528
|
-
current: a,
|
|
1529
|
-
pageSize: c,
|
|
1530
|
-
total: d,
|
|
1531
|
-
totalPage: i,
|
|
1532
|
-
onChange: y(l),
|
|
1533
|
-
changeCurrent: y(u),
|
|
1534
|
-
changePageSize: y(m)
|
|
1535
|
-
}
|
|
1536
|
-
};
|
|
1537
|
-
}, kt = (e, t = 0) => {
|
|
1538
|
-
if (typeof requestAnimationFrame > "u")
|
|
1539
|
-
return {
|
|
1540
|
-
id: setInterval(e, t)
|
|
1541
|
-
};
|
|
1542
|
-
let n = Date.now();
|
|
1543
|
-
const r = {
|
|
1544
|
-
id: 0
|
|
1545
|
-
}, s = () => {
|
|
1546
|
-
Date.now() - n >= t && (e(), n = Date.now()), r.id = requestAnimationFrame(s);
|
|
1547
|
-
};
|
|
1548
|
-
return r.id = requestAnimationFrame(s), r;
|
|
1549
|
-
}, _t = (e) => typeof cancelAnimationFrame > "u", Ht = (e) => {
|
|
1550
|
-
if (_t(e.id))
|
|
1551
|
-
return clearInterval(e.id);
|
|
1552
|
-
cancelAnimationFrame(e.id);
|
|
1553
|
-
};
|
|
1554
|
-
function qn(e, t, n) {
|
|
1555
|
-
const r = n?.immediate, s = L(e), o = E(void 0), a = q(() => {
|
|
1556
|
-
o.current && Ht(o.current);
|
|
1557
|
-
}, []);
|
|
1558
|
-
return C(() => {
|
|
1559
|
-
if (!(!F(t) || t < 0))
|
|
1560
|
-
return r && s.current(), o.current = kt(() => {
|
|
1561
|
-
s.current();
|
|
1562
|
-
}, t), a;
|
|
1563
|
-
}, [t]), a;
|
|
1564
|
-
}
|
|
1565
|
-
const It = (e, t = 0) => {
|
|
1566
|
-
if (typeof requestAnimationFrame > "u")
|
|
1567
|
-
return {
|
|
1568
|
-
id: setTimeout(e, t)
|
|
1569
|
-
};
|
|
1570
|
-
const n = {
|
|
1571
|
-
id: 0
|
|
1572
|
-
}, r = Date.now(), s = () => {
|
|
1573
|
-
Date.now() - r >= t ? e() : n.id = requestAnimationFrame(s);
|
|
1574
|
-
};
|
|
1575
|
-
return n.id = requestAnimationFrame(s), n;
|
|
1576
|
-
}, Yt = (e) => typeof cancelAnimationFrame > "u", Xt = (e) => {
|
|
1577
|
-
if (Yt(e.id))
|
|
1578
|
-
return clearTimeout(e.id);
|
|
1579
|
-
cancelAnimationFrame(e.id);
|
|
1580
|
-
};
|
|
1581
|
-
function Vn(e, t) {
|
|
1582
|
-
const n = L(e), r = E(void 0), s = q(() => {
|
|
1583
|
-
r.current && Xt(r.current);
|
|
1584
|
-
}, []);
|
|
1585
|
-
return C(() => {
|
|
1586
|
-
if (!(!F(t) || t < 0))
|
|
1587
|
-
return r.current = It(() => {
|
|
1588
|
-
n.current();
|
|
1589
|
-
}, t), s;
|
|
1590
|
-
}, [t]), s;
|
|
1591
|
-
}
|
|
1592
|
-
const Le = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap();
|
|
1593
|
-
function je(e, t) {
|
|
1594
|
-
const n = Le.get(e);
|
|
1595
|
-
if (n)
|
|
1596
|
-
return n;
|
|
1597
|
-
if (Ae.has(e))
|
|
1598
|
-
return e;
|
|
1599
|
-
const r = new Proxy(e, {
|
|
1600
|
-
get(s, o, a) {
|
|
1601
|
-
const c = Reflect.get(s, o, a), d = Reflect.getOwnPropertyDescriptor(s, o);
|
|
1602
|
-
return !d?.configurable && !d?.writable ? c : de(c) || Array.isArray(c) ? je(c, t) : c;
|
|
1603
|
-
},
|
|
1604
|
-
set(s, o, a) {
|
|
1605
|
-
const c = Reflect.set(s, o, a);
|
|
1606
|
-
return t(), c;
|
|
1607
|
-
},
|
|
1608
|
-
deleteProperty(s, o) {
|
|
1609
|
-
const a = Reflect.deleteProperty(s, o);
|
|
1610
|
-
return t(), a;
|
|
1611
|
-
}
|
|
1612
|
-
});
|
|
1613
|
-
return Le.set(e, r), Ae.set(r, e), r;
|
|
1614
|
-
}
|
|
1615
|
-
function Un(e) {
|
|
1616
|
-
const t = ne(), n = E(e);
|
|
1617
|
-
return se(() => je(n.current, () => {
|
|
1618
|
-
t();
|
|
1619
|
-
}), []);
|
|
1620
|
-
}
|
|
1621
|
-
const $n = (e) => {
|
|
1622
|
-
const t = E(e), n = se(
|
|
1623
|
-
() => k(t.current) ? t.current() : t.current,
|
|
1624
|
-
[]
|
|
1625
|
-
), [r, s] = b(n), o = y(() => {
|
|
1626
|
-
s(n);
|
|
1627
|
-
});
|
|
1628
|
-
return [r, s, o];
|
|
1629
|
-
}, ee = /* @__PURE__ */ new Set();
|
|
1630
|
-
let B, ge = {
|
|
1631
|
-
xs: 0,
|
|
1632
|
-
sm: 576,
|
|
1633
|
-
md: 768,
|
|
1634
|
-
lg: 992,
|
|
1635
|
-
xl: 1200
|
|
1636
|
-
};
|
|
1637
|
-
function le() {
|
|
1638
|
-
const e = B;
|
|
1639
|
-
if (he(), e !== B)
|
|
1640
|
-
for (const t of ee)
|
|
1641
|
-
t();
|
|
1642
|
-
}
|
|
1643
|
-
let Q = !1;
|
|
1644
|
-
function he() {
|
|
1645
|
-
const e = window.innerWidth, t = {};
|
|
1646
|
-
let n = !1;
|
|
1647
|
-
for (const r of Object.keys(ge))
|
|
1648
|
-
t[r] = e >= ge[r], t[r] !== B[r] && (n = !0);
|
|
1649
|
-
n && (B = t);
|
|
1650
|
-
}
|
|
1651
|
-
function Wn(e) {
|
|
1652
|
-
ge = e, B && he();
|
|
1653
|
-
}
|
|
1654
|
-
function Gn() {
|
|
1655
|
-
V && !Q && (B = {}, he(), window.addEventListener("resize", le), Q = !0);
|
|
1656
|
-
const [e, t] = b(B);
|
|
1657
|
-
return C(() => {
|
|
1658
|
-
if (!V)
|
|
1659
|
-
return;
|
|
1660
|
-
Q || window.addEventListener("resize", le);
|
|
1661
|
-
const n = () => {
|
|
1662
|
-
t(B);
|
|
1663
|
-
};
|
|
1664
|
-
return ee.add(n), () => {
|
|
1665
|
-
ee.delete(n), ee.size === 0 && (window.removeEventListener("resize", le), Q = !1);
|
|
1666
|
-
};
|
|
1667
|
-
}, []), e;
|
|
1668
|
-
}
|
|
1669
|
-
const jt = () => {
|
|
1670
|
-
const e = E(!1);
|
|
1671
|
-
return C(() => (e.current = !1, () => {
|
|
1672
|
-
e.current = !0;
|
|
1673
|
-
}), []), e;
|
|
1674
|
-
};
|
|
1675
|
-
function Kn(e) {
|
|
1676
|
-
const t = jt(), [n, r] = b(e), s = q((o) => {
|
|
1677
|
-
t.current || r(o);
|
|
1678
|
-
}, []);
|
|
1679
|
-
return [n, s];
|
|
1680
|
-
}
|
|
1681
|
-
function Jn(e, t = () => !0) {
|
|
1682
|
-
const [n, r] = De(), s = L(t);
|
|
1683
|
-
return U(
|
|
1684
|
-
() => {
|
|
1685
|
-
const o = D(e, document);
|
|
1686
|
-
if (!o)
|
|
1687
|
-
return;
|
|
1688
|
-
const a = () => {
|
|
1689
|
-
let c;
|
|
1690
|
-
o === document ? document.scrollingElement ? c = {
|
|
1691
|
-
left: document.scrollingElement.scrollLeft,
|
|
1692
|
-
top: document.scrollingElement.scrollTop
|
|
1693
|
-
} : c = {
|
|
1694
|
-
left: Math.max(
|
|
1695
|
-
window.pageXOffset,
|
|
1696
|
-
document.documentElement.scrollLeft,
|
|
1697
|
-
document.body.scrollLeft
|
|
1698
|
-
),
|
|
1699
|
-
top: Math.max(
|
|
1700
|
-
window.pageYOffset,
|
|
1701
|
-
document.documentElement.scrollTop,
|
|
1702
|
-
document.body.scrollTop
|
|
1703
|
-
)
|
|
1704
|
-
} : c = {
|
|
1705
|
-
left: o.scrollLeft,
|
|
1706
|
-
top: o.scrollTop
|
|
1707
|
-
}, s.current(c) && r(c);
|
|
1708
|
-
};
|
|
1709
|
-
return a(), o.addEventListener("scroll", a), () => {
|
|
1710
|
-
o.removeEventListener("scroll", a);
|
|
1711
|
-
};
|
|
1712
|
-
},
|
|
1713
|
-
[],
|
|
1714
|
-
e
|
|
1715
|
-
), n;
|
|
1716
|
-
}
|
|
1717
|
-
function Qn(e, t) {
|
|
1718
|
-
let n = [], r;
|
|
1719
|
-
Array.isArray(t) ? n = t : de(t) && (n = t?.defaultSelected ?? n, r = t?.itemKey ?? r);
|
|
1720
|
-
const s = (g) => k(r) ? r(g) : te(r) && de(g) ? g[r] : g, [o, a] = b(n), c = x(() => {
|
|
1721
|
-
const g = /* @__PURE__ */ new Map();
|
|
1722
|
-
return Array.isArray(o) && o.forEach((v) => {
|
|
1723
|
-
g.set(s(v), v);
|
|
1724
|
-
}), g;
|
|
1725
|
-
}, [o]), d = (g) => c.has(s(g)), i = (g) => {
|
|
1726
|
-
c.set(s(g), g), a(Array.from(c.values()));
|
|
1727
|
-
}, l = (g) => {
|
|
1728
|
-
c.delete(s(g)), a(Array.from(c.values()));
|
|
1729
|
-
}, u = (g) => {
|
|
1730
|
-
d(g) ? l(g) : i(g);
|
|
1731
|
-
}, m = () => {
|
|
1732
|
-
e.forEach((g) => {
|
|
1733
|
-
c.set(s(g), g);
|
|
1734
|
-
}), a(Array.from(c.values()));
|
|
1735
|
-
}, h = () => {
|
|
1736
|
-
e.forEach((g) => {
|
|
1737
|
-
c.delete(s(g));
|
|
1738
|
-
}), a(Array.from(c.values()));
|
|
1739
|
-
}, p = x(
|
|
1740
|
-
() => e.every((g) => !c.has(s(g))),
|
|
1741
|
-
[e, c]
|
|
1742
|
-
), f = x(
|
|
1743
|
-
() => e.every((g) => c.has(s(g))) && !p,
|
|
1744
|
-
[e, c, p]
|
|
1745
|
-
), T = x(
|
|
1746
|
-
() => !p && !f,
|
|
1747
|
-
[p, f]
|
|
1748
|
-
), A = () => f ? h() : m(), O = () => {
|
|
1749
|
-
c.clear(), a([]);
|
|
1750
|
-
};
|
|
1751
|
-
return {
|
|
1752
|
-
selected: o,
|
|
1753
|
-
noneSelected: p,
|
|
1754
|
-
allSelected: f,
|
|
1755
|
-
partiallySelected: T,
|
|
1756
|
-
setSelected: a,
|
|
1757
|
-
isSelected: d,
|
|
1758
|
-
select: y(i),
|
|
1759
|
-
unSelect: y(l),
|
|
1760
|
-
toggle: y(u),
|
|
1761
|
-
selectAll: y(m),
|
|
1762
|
-
unSelectAll: y(h),
|
|
1763
|
-
clearAll: y(O),
|
|
1764
|
-
toggleAll: y(A)
|
|
1765
|
-
};
|
|
1766
|
-
}
|
|
1767
|
-
const Zn = Ye(
|
|
1768
|
-
() => V ? sessionStorage : void 0
|
|
1769
|
-
), er = (e) => {
|
|
1770
|
-
const [t, n] = b(e), r = y((s) => {
|
|
1771
|
-
n((o) => {
|
|
1772
|
-
const a = k(s) ? s(o) : s;
|
|
1773
|
-
return a ? { ...o, ...a } : o;
|
|
1774
|
-
});
|
|
1775
|
-
});
|
|
1776
|
-
return [t, r];
|
|
1777
|
-
}, zt = () => {
|
|
1778
|
-
const e = V ? window.matchMedia("(prefers-color-scheme: dark)") : void 0, [t, n] = b(() => V && e?.matches ? "dark" : "light");
|
|
1779
|
-
return C(() => {
|
|
1780
|
-
const r = (s) => {
|
|
1781
|
-
s.matches ? n(
|
|
1782
|
-
"dark"
|
|
1783
|
-
/* DARK */
|
|
1784
|
-
) : n(
|
|
1785
|
-
"light"
|
|
1786
|
-
/* LIGHT */
|
|
1787
|
-
);
|
|
1788
|
-
};
|
|
1789
|
-
return e?.addEventListener("change", r), () => {
|
|
1790
|
-
e?.removeEventListener("change", r);
|
|
1791
|
-
};
|
|
1792
|
-
}, []), t;
|
|
1793
|
-
};
|
|
1794
|
-
function tr(e = {}) {
|
|
1795
|
-
const { localStorageKey: t } = e, [n, r] = b(() => t?.length && localStorage.getItem(t) || "system"), s = (c) => {
|
|
1796
|
-
r(c), t?.length && localStorage.setItem(t, c);
|
|
1797
|
-
}, o = zt();
|
|
1798
|
-
return {
|
|
1799
|
-
theme: n === "system" ? o : n,
|
|
1800
|
-
themeMode: n,
|
|
1801
|
-
setThemeMode: y(s)
|
|
1802
|
-
};
|
|
1803
|
-
}
|
|
1804
|
-
function ze(e, t) {
|
|
1805
|
-
re && (k(e) || console.error(
|
|
1806
|
-
`useThrottleFn expected parameter is a function, got ${typeof e}`
|
|
1807
|
-
));
|
|
1808
|
-
const n = L(e), r = t?.wait ?? 1e3, s = x(
|
|
1809
|
-
() => Me(
|
|
1810
|
-
(...o) => n.current(...o),
|
|
1811
|
-
r,
|
|
1812
|
-
t
|
|
1813
|
-
),
|
|
1814
|
-
[]
|
|
1815
|
-
);
|
|
1816
|
-
return W(() => {
|
|
1817
|
-
s.cancel();
|
|
1818
|
-
}), {
|
|
1819
|
-
run: s,
|
|
1820
|
-
cancel: s.cancel,
|
|
1821
|
-
flush: s.flush
|
|
1822
|
-
};
|
|
1823
|
-
}
|
|
1824
|
-
function nr(e, t) {
|
|
1825
|
-
const [n, r] = b(e), { run: s } = ze(() => {
|
|
1826
|
-
r(e);
|
|
1827
|
-
}, t);
|
|
1828
|
-
return C(() => {
|
|
1829
|
-
s();
|
|
1830
|
-
}, [e]), n;
|
|
1831
|
-
}
|
|
1832
|
-
function rr(e, t, n) {
|
|
1833
|
-
const [r, s] = b({}), { run: o } = ze(() => {
|
|
1834
|
-
s({});
|
|
1835
|
-
}, n);
|
|
1836
|
-
C(() => o(), t), K(e, [r]);
|
|
1837
|
-
}
|
|
1838
|
-
const sr = (e, t) => {
|
|
1839
|
-
const n = y(e), r = E(null), s = q(() => {
|
|
1840
|
-
r.current && clearTimeout(r.current);
|
|
1841
|
-
}, []);
|
|
1842
|
-
return C(() => {
|
|
1843
|
-
if (!(!F(t) || t < 0))
|
|
1844
|
-
return r.current = setTimeout(n, t), s;
|
|
1845
|
-
}, [t]), s;
|
|
1846
|
-
}, Bt = {
|
|
1847
|
-
restoreOnUnmount: !1
|
|
1848
|
-
};
|
|
1849
|
-
function or(e, t = Bt) {
|
|
1850
|
-
const n = E(V ? document.title : "");
|
|
1851
|
-
C(() => {
|
|
1852
|
-
document.title = e;
|
|
1853
|
-
}, [e]), W(() => {
|
|
1854
|
-
t.restoreOnUnmount && (document.title = n.current);
|
|
1855
|
-
});
|
|
1856
|
-
}
|
|
1857
|
-
const qt = (e, t) => e ? e.map((n, r) => Object.is(e[r], t?.[r]) ? -1 : r).filter((n) => n >= 0) : t ? t.map((n, r) => r) : [], cr = (e, t) => {
|
|
1858
|
-
const n = E(void 0);
|
|
1859
|
-
C(() => {
|
|
1860
|
-
const r = qt(n.current, t), s = n.current;
|
|
1861
|
-
return n.current = t, e(r, s, t);
|
|
1862
|
-
}, t);
|
|
1863
|
-
}, ar = Ze(Pe), fe = nt, Vt = {
|
|
1864
|
-
parseNumbers: !1,
|
|
1865
|
-
parseBooleans: !1
|
|
1866
|
-
}, Ut = {
|
|
1867
|
-
skipNull: !1,
|
|
1868
|
-
skipEmptyString: !1
|
|
1869
|
-
}, ur = (e, t) => {
|
|
1870
|
-
const {
|
|
1871
|
-
navigateMode: n = "push",
|
|
1872
|
-
parseOptions: r,
|
|
1873
|
-
stringifyOptions: s
|
|
1874
|
-
} = t || {}, o = { ...Vt, ...r }, a = {
|
|
1875
|
-
...Ut,
|
|
1876
|
-
...s
|
|
1877
|
-
}, c = fe.useLocation(), d = fe.useHistory?.(), i = fe.useNavigate?.(), l = ne(), u = E(
|
|
1878
|
-
typeof e == "function" ? e() : e || {}
|
|
1879
|
-
), m = x(() => ae.parse(c.search, o), [c.search]), h = x(
|
|
1880
|
-
() => ({
|
|
1881
|
-
...u.current,
|
|
1882
|
-
...m
|
|
1883
|
-
}),
|
|
1884
|
-
[m]
|
|
1885
|
-
);
|
|
1886
|
-
return [h, y((f) => {
|
|
1887
|
-
const T = typeof f == "function" ? f(h) : f;
|
|
1888
|
-
l(), d && d[n](
|
|
1889
|
-
{
|
|
1890
|
-
hash: c.hash,
|
|
1891
|
-
search: ae.stringify(
|
|
1892
|
-
{ ...m, ...T },
|
|
1893
|
-
a
|
|
1894
|
-
) || "?"
|
|
1895
|
-
},
|
|
1896
|
-
c.state
|
|
1897
|
-
), i && i(
|
|
1898
|
-
{
|
|
1899
|
-
hash: c.hash,
|
|
1900
|
-
search: ae.stringify(
|
|
1901
|
-
{ ...m, ...T },
|
|
1902
|
-
a
|
|
1903
|
-
) || "?"
|
|
1904
|
-
},
|
|
1905
|
-
{
|
|
1906
|
-
replace: n === "replace",
|
|
1907
|
-
state: c.state
|
|
1908
|
-
}
|
|
1909
|
-
);
|
|
1910
|
-
})];
|
|
1911
|
-
}, ir = (e, t) => {
|
|
1912
|
-
const { containerTarget: n, wrapperTarget: r, itemHeight: s, overscan: o = 5 } = t, a = L(s), c = tt(n), d = E(!1), [i, l] = b(
|
|
1913
|
-
[]
|
|
1914
|
-
), [u, m] = b({}), h = (g, v) => {
|
|
1915
|
-
if (F(a.current))
|
|
1916
|
-
return Math.ceil(g / a.current);
|
|
1917
|
-
let S = 0, R = 0;
|
|
1918
|
-
for (let N = v; N < e.length; N++) {
|
|
1919
|
-
const I = a.current(N, e[N]);
|
|
1920
|
-
if (S += I, R = N, S >= g)
|
|
1921
|
-
break;
|
|
1922
|
-
}
|
|
1923
|
-
return R - v;
|
|
1924
|
-
}, p = (g) => {
|
|
1925
|
-
if (F(a.current))
|
|
1926
|
-
return Math.floor(g / a.current);
|
|
1927
|
-
let v = 0, S = 0;
|
|
1928
|
-
for (let R = 0; R < e.length; R++) {
|
|
1929
|
-
const N = a.current(R, e[R]);
|
|
1930
|
-
if (v += N, v >= g) {
|
|
1931
|
-
S = R;
|
|
1932
|
-
break;
|
|
1933
|
-
}
|
|
1934
|
-
}
|
|
1935
|
-
return S + 1;
|
|
1936
|
-
}, f = (g) => F(a.current) ? g * a.current : e.slice(0, g).reduce(
|
|
1937
|
-
(S, R, N) => S + a.current(N, e[N]),
|
|
1938
|
-
0
|
|
1939
|
-
), T = x(() => F(a.current) ? e.length * a.current : e.reduce(
|
|
1940
|
-
(g, v, S) => g + a.current(S, e[S]),
|
|
1941
|
-
0
|
|
1942
|
-
), [e]), A = () => {
|
|
1943
|
-
const g = D(n);
|
|
1944
|
-
if (g) {
|
|
1945
|
-
const { scrollTop: v, clientHeight: S } = g, R = p(v), N = h(S, R), I = Math.max(0, R - o), w = Math.min(e.length, R + N + o), Y = f(I);
|
|
1946
|
-
m({
|
|
1947
|
-
height: T - Y + "px",
|
|
1948
|
-
marginTop: Y + "px"
|
|
1949
|
-
}), l(
|
|
1950
|
-
e.slice(I, w).map((P, _) => ({
|
|
1951
|
-
data: P,
|
|
1952
|
-
index: _ + I
|
|
1953
|
-
}))
|
|
1954
|
-
);
|
|
1955
|
-
}
|
|
1956
|
-
};
|
|
1957
|
-
return K(() => {
|
|
1958
|
-
const g = D(r);
|
|
1959
|
-
g && Object.keys(u).forEach(
|
|
1960
|
-
(v) => g.style[v] = u[v]
|
|
1961
|
-
);
|
|
1962
|
-
}, [u]), C(() => {
|
|
1963
|
-
!c?.width || !c?.height || A();
|
|
1964
|
-
}, [c?.width, c?.height, e]), j(
|
|
1965
|
-
"scroll",
|
|
1966
|
-
(g) => {
|
|
1967
|
-
if (d.current) {
|
|
1968
|
-
d.current = !1;
|
|
1969
|
-
return;
|
|
1970
|
-
}
|
|
1971
|
-
g.preventDefault(), A();
|
|
1972
|
-
},
|
|
1973
|
-
{
|
|
1974
|
-
target: n
|
|
1975
|
-
}
|
|
1976
|
-
), [i, y((g) => {
|
|
1977
|
-
const v = D(n);
|
|
1978
|
-
v && (d.current = !0, v.scrollTop = f(g), A());
|
|
1979
|
-
})];
|
|
1980
|
-
};
|
|
1981
|
-
function lr(e, t = {}) {
|
|
1982
|
-
const {
|
|
1983
|
-
reconnectLimit: n = 3,
|
|
1984
|
-
reconnectInterval: r = 3 * 1e3,
|
|
1985
|
-
manual: s = !1,
|
|
1986
|
-
onOpen: o,
|
|
1987
|
-
onClose: a,
|
|
1988
|
-
onMessage: c,
|
|
1989
|
-
onError: d,
|
|
1990
|
-
protocols: i
|
|
1991
|
-
} = t, [l, u] = b(), [m, h] = b(
|
|
1992
|
-
3
|
|
1993
|
-
/* Closed */
|
|
1994
|
-
), p = L(o), f = L(a), T = L(c), A = L(d), O = L(m), g = E(0), v = E(void 0), S = E(void 0), R = () => {
|
|
1995
|
-
g.current < n && S.current?.readyState !== 1 && (v.current && clearTimeout(v.current), v.current = setTimeout(() => {
|
|
1996
|
-
N(), g.current++;
|
|
1997
|
-
}, r));
|
|
1998
|
-
}, N = () => {
|
|
1999
|
-
v.current && clearTimeout(v.current), S.current && S.current.close();
|
|
2000
|
-
const P = new WebSocket(e, i);
|
|
2001
|
-
h(
|
|
2002
|
-
0
|
|
2003
|
-
/* Connecting */
|
|
2004
|
-
), P.onerror = (_) => {
|
|
2005
|
-
S.current === P && (R(), A.current?.(_, P), h(
|
|
2006
|
-
P.readyState || 3
|
|
2007
|
-
/* Closed */
|
|
2008
|
-
));
|
|
2009
|
-
}, P.onopen = (_) => {
|
|
2010
|
-
S.current === P && (p.current?.(_, P), g.current = 0, h(
|
|
2011
|
-
P.readyState || 1
|
|
2012
|
-
/* Open */
|
|
2013
|
-
));
|
|
2014
|
-
}, P.onmessage = (_) => {
|
|
2015
|
-
S.current === P && (T.current?.(_, P), u(_));
|
|
2016
|
-
}, P.onclose = (_) => {
|
|
2017
|
-
f.current?.(_, P), S.current === P && R(), (!S.current || S.current === P) && h(
|
|
2018
|
-
P.readyState || 3
|
|
2019
|
-
/* Closed */
|
|
2020
|
-
);
|
|
2021
|
-
}, S.current = P;
|
|
2022
|
-
}, I = (P) => {
|
|
2023
|
-
if (O.current === 1)
|
|
2024
|
-
S.current?.send(P);
|
|
2025
|
-
else
|
|
2026
|
-
throw new Error("WebSocket disconnected");
|
|
2027
|
-
}, w = () => {
|
|
2028
|
-
g.current = 0, N();
|
|
2029
|
-
}, Y = () => {
|
|
2030
|
-
v.current && clearTimeout(v.current), g.current = n, S.current?.close(), S.current = void 0;
|
|
2031
|
-
};
|
|
2032
|
-
return C(() => {
|
|
2033
|
-
!s && e && w();
|
|
2034
|
-
}, [e, s]), W(() => {
|
|
2035
|
-
Y();
|
|
2036
|
-
}), {
|
|
2037
|
-
latestMessage: l,
|
|
2038
|
-
sendMessage: y(I),
|
|
2039
|
-
connect: y(w),
|
|
2040
|
-
disconnect: y(Y),
|
|
2041
|
-
readyState: m,
|
|
2042
|
-
webSocketIns: S.current
|
|
2043
|
-
};
|
|
2044
|
-
}
|
|
2045
|
-
function fr(e, t) {
|
|
2046
|
-
const n = E({});
|
|
2047
|
-
C(() => {
|
|
2048
|
-
if (n.current) {
|
|
2049
|
-
const r = Object.keys({ ...n.current, ...t }), s = {};
|
|
2050
|
-
r.forEach((o) => {
|
|
2051
|
-
Object.is(n.current[o], t[o]) || (s[o] = {
|
|
2052
|
-
from: n.current[o],
|
|
2053
|
-
to: t[o]
|
|
2054
|
-
});
|
|
2055
|
-
}), Object.keys(s).length && console.log("[why-did-you-update]", e, s);
|
|
2056
|
-
}
|
|
2057
|
-
n.current = t;
|
|
2058
|
-
});
|
|
2059
|
-
}
|
|
2060
|
-
export {
|
|
2061
|
-
or as $,
|
|
2062
|
-
kn as A,
|
|
2063
|
-
xn as B,
|
|
2064
|
-
_n as C,
|
|
2065
|
-
Hn as D,
|
|
2066
|
-
In as E,
|
|
2067
|
-
Yn as F,
|
|
2068
|
-
Fe as G,
|
|
2069
|
-
Xn as H,
|
|
2070
|
-
jn as I,
|
|
2071
|
-
zn as J,
|
|
2072
|
-
Bn as K,
|
|
2073
|
-
qn as L,
|
|
2074
|
-
Vn as M,
|
|
2075
|
-
Un as N,
|
|
2076
|
-
ke as O,
|
|
2077
|
-
$n as P,
|
|
2078
|
-
Gn as Q,
|
|
2079
|
-
Kn as R,
|
|
2080
|
-
Jn as S,
|
|
2081
|
-
Qn as T,
|
|
2082
|
-
Zn as U,
|
|
2083
|
-
er as V,
|
|
2084
|
-
tr as W,
|
|
2085
|
-
nr as X,
|
|
2086
|
-
rr as Y,
|
|
2087
|
-
ze as Z,
|
|
2088
|
-
sr as _,
|
|
2089
|
-
Wn as a,
|
|
2090
|
-
st as a0,
|
|
2091
|
-
cr as a1,
|
|
2092
|
-
jt as a2,
|
|
2093
|
-
ar as a3,
|
|
2094
|
-
ur as a4,
|
|
2095
|
-
ir as a5,
|
|
2096
|
-
lr as a6,
|
|
2097
|
-
fr as a7,
|
|
2098
|
-
ot as b,
|
|
2099
|
-
Fn as c,
|
|
2100
|
-
mn as d,
|
|
2101
|
-
gn as e,
|
|
2102
|
-
hn as f,
|
|
2103
|
-
pn as g,
|
|
2104
|
-
vn as h,
|
|
2105
|
-
yn as i,
|
|
2106
|
-
En as j,
|
|
2107
|
-
Ne as k,
|
|
2108
|
-
Sn as l,
|
|
2109
|
-
wn as m,
|
|
2110
|
-
bn as n,
|
|
2111
|
-
Rn as o,
|
|
2112
|
-
Tn as p,
|
|
2113
|
-
j as q,
|
|
2114
|
-
Ln as r,
|
|
2115
|
-
An as s,
|
|
2116
|
-
Pn as t,
|
|
2117
|
-
dn as u,
|
|
2118
|
-
Cn as v,
|
|
2119
|
-
Dn as w,
|
|
2120
|
-
Mn as x,
|
|
2121
|
-
Nn as y,
|
|
2122
|
-
On as z
|
|
2123
|
-
};
|