@unicom-cloud/ui 0.8.115 → 0.8.116
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 +19 -17
- package/DatePicker.js +14 -8
- package/Descriptions.js +6 -5
- package/Details.js +18 -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 +21 -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 +18 -16
- package/List.js +13 -10
- package/Loading.js +17 -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 +18 -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 +20 -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 +19 -17
- package/Select.js +1 -0
- package/SelectView.js +3 -2
- package/Skeleton.js +9 -6
- package/Slider.js +15 -12
- package/Space.js +22 -16
- package/SpeechSynthesis.js +9 -2
- package/Spin.js +7 -5
- package/Splitter.js +1 -0
- package/Statistic.js +13 -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 +21 -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 +54 -54
- package/alert/index.js +62 -55
- package/anchor/Anchor.js +120 -128
- package/anchor/Link.js +32 -32
- package/anchor/context.js +1 -0
- package/anchor/index.js +2 -1
- package/anchor/utils.js +52 -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 +143 -10
- package/calendar/WeekList.js +1 -0
- package/calendar/Year.js +27 -23
- 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 +63 -58
- 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 +53 -51
- package/countdown/utils.js +30 -0
- package/date-picker/Picker.js +274 -271
- package/date-picker/RangePicker.js +581 -22
- package/date-picker/context.js +1 -0
- package/date-picker/hook/useCellClassName.js +62 -0
- package/date-picker/index.js +27 -21
- package/date-picker/panel/Body.js +88 -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 +195 -0
- package/date-picker/panel/month/index.js +113 -0
- package/date-picker/panel/quarter/index.js +95 -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 +74 -0
- package/date-picker/utils.js +76 -0
- package/descriptions/index.js +74 -73
- package/details/index.js +62 -59
- package/development/index.js +20 -56
- package/dist/axios/chunk/CemRDaZ_.js +253 -0
- package/dist/axios/index.js +41 -0
- package/dist/axios/lib/axios.js +1690 -0
- package/dist/tween/chunk/DXM3Ican.js +88 -0
- package/dist/tween/src/tween.js +44 -0
- 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 +30 -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-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 +35 -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 +32 -0
- package/dist/ui-common/hooks/use-infinite-scroll/index.js +82 -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 +11 -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 +48 -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 +52 -0
- package/dist/ui-common/hooks/use-request/src/utils/cache.js +19 -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 +21 -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 +14 -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 +90 -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 +186 -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/constant.js +10 -0
- package/dist/ui-common/utils/dayjs.js +182 -0
- package/dist/ui-common/utils/dom.js +67 -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 +113 -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 +188 -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/dist/validate/chunk/Buve6GHm.js +50 -0
- package/dist/validate/src/index.js +462 -0
- package/dist/validate/src/utils.js +8 -0
- package/divider/index.js +25 -23
- package/draggable/Item.js +1 -0
- package/draggable/index.js +22 -20
- package/drawer/Drawer.js +149 -139
- 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 +40 -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 +84 -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 +194 -127
- 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/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 +484 -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 +918 -736
- package/input/Button.js +72 -9
- package/input/Group.js +13 -11
- package/input/Input.js +157 -683
- 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 +36 -34
- package/layout/index.js +25 -21
- package/link/index.js +29 -27
- package/liquid-fill/index.js +88 -85
- package/list/Item.js +20 -18
- package/list/Meta.js +12 -10
- package/list/index.js +142 -139
- package/loading/index.js +30 -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 +5 -3
- 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 +5 -3
- 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 +41 -38
- 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 +142 -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 +183 -23
- package/notification/index.js +149 -15
- package/notification/useNotification.js +139 -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 +70 -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 +36 -34
- 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 +62 -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 +33 -34
- 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 +38 -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 +76 -75
- 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 +38 -32
- package/speech-synthesis/index.js +14 -84
- package/spin/DotLoading.js +10 -7
- package/spin/index.js +37 -35
- 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 +60 -57
- 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 +3 -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 +114 -105
- package/time-picker/RangePicker.js +21 -19
- package/time-picker/TimeColumn.js +17 -16
- package/time-picker/TimePicker.js +153 -149
- package/time-picker/context.js +1 -0
- package/time-picker/index.js +1 -0
- package/time-picker/utils.js +35 -0
- package/timeline/Item.js +32 -30
- package/timeline/Timeline.js +44 -44
- package/timeline/index.js +1 -0
- package/tooltip/index.js +68 -62
- package/tour/index.js +72 -68
- 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 +41 -38
- 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 +94 -93
- package/trigger/index.js +252 -244
- package/types/_common/higher-order/index.d.ts +1 -0
- package/types/_common/hooks/index.d.ts +95 -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-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-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-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/transition-group/utils/reflow.d.ts +3 -0
- package/types/_common/utils/caseName.d.ts +2 -0
- package/types/_common/utils/className.d.ts +2 -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/dom.d.ts +25 -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 +16 -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 +69 -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 +500 -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-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/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/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 +3 -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/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 +59 -57
- 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 +84 -78
- 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/request_.js +44 -1973
- 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 +14 -13
- package/utils/dom.js +10 -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 +335 -258
- 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 -9
- 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 +6 -4
- package/utils/uuid.js +1 -0
- package/utils/validate.js +9 -6
- 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-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/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/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/list/index.d.ts +0 -6
- 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/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/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/cache.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/dayjs.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 → time-picker}/interface.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}/index.d.ts +0 -0
- /package/types/{pc/upload → upload}/interface.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 → 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/version → version}/index.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/qr-code/index.js
CHANGED
|
@@ -1,1273 +1,92 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import "../
|
|
1
|
+
/* 2025-10-30 15:47:58 */
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as z } from "react";
|
|
4
|
+
import "../config-provider/ConfigProvider.js";
|
|
5
|
+
import "../dist/ui-common/utils/is.js";
|
|
6
|
+
import "@unicom-cloud/utils/is";
|
|
5
7
|
import "@unicom-cloud/utils/constant/platform";
|
|
6
|
-
import "../
|
|
8
|
+
import "../dist/ui-common/hooks/utils/isDev.js";
|
|
7
9
|
import "@unicom-cloud/utils/js-cookie";
|
|
8
10
|
import "dayjs";
|
|
9
11
|
import "lodash/debounce";
|
|
10
12
|
import "@unicom-cloud/utils/screenfull";
|
|
11
|
-
import "../
|
|
13
|
+
import "../dist/ui-common/hooks/use-request/src/plugins/useAutoRunPlugin.js";
|
|
14
|
+
import "../dist/ui-common/hooks/use-request/src/utils/subscribeReVisible.js";
|
|
15
|
+
import "../dist/ui-common/hooks/use-request/src/utils/subscribeFocus.js";
|
|
12
16
|
import "lodash/throttle";
|
|
13
|
-
import "
|
|
17
|
+
import "../dist/ui-common/hooks/use-text-selection/index.js";
|
|
14
18
|
import "@unicom-cloud/utils/query-string";
|
|
15
19
|
import "react-router";
|
|
16
|
-
import "
|
|
20
|
+
import "../dist/ui-common/hooks/use-intersection-observer/index.js";
|
|
17
21
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
18
|
-
import "
|
|
19
|
-
import "
|
|
20
|
-
import "../chunk/BcdTSJks.js";
|
|
21
|
-
import "../chunk/CEAeR6xB.js";
|
|
22
|
-
import { u as st } from "../chunk/FgWHhRFz.js";
|
|
23
|
-
import "../chunk/exc7v_Hl.js";
|
|
22
|
+
import P from "../dist/ui-common/hooks/use-merge-props/index.js";
|
|
23
|
+
import "../dist/ui-common/utils/reactDOM.js";
|
|
24
24
|
import "@unicom-cloud/utils/constant";
|
|
25
|
-
import
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
// This is a low-level API that most users should not use directly.
|
|
33
|
-
// A mid-level API is the encodeSegments() function.
|
|
34
|
-
constructor(t, s, e, o) {
|
|
35
|
-
if (this.version = t, this.errorCorrectionLevel = s, this.modules = [], this.isFunction = [], t < i.MIN_VERSION || t > i.MAX_VERSION)
|
|
36
|
-
throw new RangeError("Version value out of range");
|
|
37
|
-
if (o < -1 || o > 7) throw new RangeError("Mask value out of range");
|
|
38
|
-
this.size = t * 4 + 17;
|
|
39
|
-
const n = [];
|
|
40
|
-
for (let r = 0; r < this.size; r++) n.push(!1);
|
|
41
|
-
for (let r = 0; r < this.size; r++)
|
|
42
|
-
this.modules.push(n.slice()), this.isFunction.push(n.slice());
|
|
43
|
-
this.drawFunctionPatterns();
|
|
44
|
-
const a = this.addEccAndInterleave(e);
|
|
45
|
-
if (this.drawCodewords(a), o == -1) {
|
|
46
|
-
let r = 1e9;
|
|
47
|
-
for (let f = 0; f < 8; f++) {
|
|
48
|
-
this.applyMask(f), this.drawFormatBits(f);
|
|
49
|
-
const h = this.getPenaltyScore();
|
|
50
|
-
h < r && (o = f, r = h), this.applyMask(f);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
u(0 <= o && o <= 7), this.mask = o, this.applyMask(o), this.drawFormatBits(o), this.isFunction = [];
|
|
54
|
-
}
|
|
55
|
-
/*-- Static factory functions (high level) --*/
|
|
56
|
-
// Returns a QR Code representing the given Unicode text string at the given error correction level.
|
|
57
|
-
// As a conservative upper bound, this function is guaranteed to succeed for strings that have 738 or fewer
|
|
58
|
-
// Unicode code points (not UTF-16 code units) if the low error correction level is used. The smallest possible
|
|
59
|
-
// QR Code version is automatically chosen for the output. The ECC level of the result may be higher than the
|
|
60
|
-
// ecl argument if it can be done without increasing the version.
|
|
61
|
-
static encodeText(t, s) {
|
|
62
|
-
const e = E.QrSegment.makeSegments(t);
|
|
63
|
-
return i.encodeSegments(e, s);
|
|
64
|
-
}
|
|
65
|
-
// Returns a QR Code representing the given binary data at the given error correction level.
|
|
66
|
-
// This function always encodes using the binary segment mode, not any text mode. The maximum number of
|
|
67
|
-
// bytes allowed is 2953. The smallest possible QR Code version is automatically chosen for the output.
|
|
68
|
-
// The ECC level of the result may be higher than the ecl argument if it can be done without increasing the version.
|
|
69
|
-
static encodeBinary(t, s) {
|
|
70
|
-
const e = E.QrSegment.makeBytes(t);
|
|
71
|
-
return i.encodeSegments([e], s);
|
|
72
|
-
}
|
|
73
|
-
/*-- Static factory functions (mid level) --*/
|
|
74
|
-
// Returns a QR Code representing the given segments with the given encoding parameters.
|
|
75
|
-
// The smallest possible QR Code version within the given range is automatically
|
|
76
|
-
// chosen for the output. Iff boostEcl is true, then the ECC level of the result
|
|
77
|
-
// may be higher than the ecl argument if it can be done without increasing the
|
|
78
|
-
// version. The mask number is either between 0 to 7 (inclusive) to force that
|
|
79
|
-
// mask, or -1 to automatically choose an appropriate mask (which may be slow).
|
|
80
|
-
// This function allows the user to create a custom sequence of segments that switches
|
|
81
|
-
// between modes (such as alphanumeric and byte) to encode text in less space.
|
|
82
|
-
// This is a mid-level API; the high-level API is encodeText() and encodeBinary().
|
|
83
|
-
static encodeSegments(t, s, e = 1, o = 40, n = -1, a = !0) {
|
|
84
|
-
if (!(i.MIN_VERSION <= e && e <= o && o <= i.MAX_VERSION) || n < -1 || n > 7)
|
|
85
|
-
throw new RangeError("Invalid value");
|
|
86
|
-
let r, f;
|
|
87
|
-
for (r = e; ; r++) {
|
|
88
|
-
const m = i.getNumDataCodewords(r, s) * 8, w = l.getTotalBits(t, r);
|
|
89
|
-
if (w <= m) {
|
|
90
|
-
f = w;
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
if (r >= o)
|
|
94
|
-
throw new RangeError("Data too long");
|
|
95
|
-
}
|
|
96
|
-
for (const m of [
|
|
97
|
-
i.Ecc.MEDIUM,
|
|
98
|
-
i.Ecc.QUARTILE,
|
|
99
|
-
i.Ecc.HIGH
|
|
100
|
-
])
|
|
101
|
-
a && f <= i.getNumDataCodewords(r, m) * 8 && (s = m);
|
|
102
|
-
const h = [];
|
|
103
|
-
for (const m of t) {
|
|
104
|
-
c(m.mode.modeBits, 4, h), c(m.numChars, m.mode.numCharCountBits(r), h);
|
|
105
|
-
for (const w of m.getData()) h.push(w);
|
|
106
|
-
}
|
|
107
|
-
u(h.length == f);
|
|
108
|
-
const M = i.getNumDataCodewords(r, s) * 8;
|
|
109
|
-
u(h.length <= M), c(0, Math.min(4, M - h.length), h), c(0, (8 - h.length % 8) % 8, h), u(h.length % 8 == 0);
|
|
110
|
-
for (let m = 236; h.length < M; m ^= 253)
|
|
111
|
-
c(m, 8, h);
|
|
112
|
-
const p = [];
|
|
113
|
-
for (; p.length * 8 < h.length; ) p.push(0);
|
|
114
|
-
return h.forEach(
|
|
115
|
-
(m, w) => p[w >>> 3] |= m << 7 - (w & 7)
|
|
116
|
-
), new i(r, s, p, n);
|
|
117
|
-
}
|
|
118
|
-
/*-- Accessor methods --*/
|
|
119
|
-
// Returns the color of the module (pixel) at the given coordinates, which is false
|
|
120
|
-
// for light or true for dark. The top left corner has the coordinates (x=0, y=0).
|
|
121
|
-
// If the given coordinates are out of bounds, then false (light) is returned.
|
|
122
|
-
getModule(t, s) {
|
|
123
|
-
return 0 <= t && t < this.size && 0 <= s && s < this.size && this.modules[s][t];
|
|
124
|
-
}
|
|
125
|
-
// Modified to expose modules for easy access
|
|
126
|
-
getModules() {
|
|
127
|
-
return this.modules;
|
|
128
|
-
}
|
|
129
|
-
/*-- Private helper methods for constructor: Drawing function modules --*/
|
|
130
|
-
// Reads this object's version field, and draws and marks all function modules.
|
|
131
|
-
drawFunctionPatterns() {
|
|
132
|
-
for (let e = 0; e < this.size; e++)
|
|
133
|
-
this.setFunctionModule(6, e, e % 2 == 0), this.setFunctionModule(e, 6, e % 2 == 0);
|
|
134
|
-
this.drawFinderPattern(3, 3), this.drawFinderPattern(this.size - 4, 3), this.drawFinderPattern(3, this.size - 4);
|
|
135
|
-
const t = this.getAlignmentPatternPositions(), s = t.length;
|
|
136
|
-
for (let e = 0; e < s; e++)
|
|
137
|
-
for (let o = 0; o < s; o++)
|
|
138
|
-
e == 0 && o == 0 || e == 0 && o == s - 1 || e == s - 1 && o == 0 || this.drawAlignmentPattern(t[e], t[o]);
|
|
139
|
-
this.drawFormatBits(0), this.drawVersion();
|
|
140
|
-
}
|
|
141
|
-
// Draws two copies of the format bits (with its own error correction code)
|
|
142
|
-
// based on the given mask and this object's error correction level field.
|
|
143
|
-
drawFormatBits(t) {
|
|
144
|
-
const s = this.errorCorrectionLevel.formatBits << 3 | t;
|
|
145
|
-
let e = s;
|
|
146
|
-
for (let n = 0; n < 10; n++) e = e << 1 ^ (e >>> 9) * 1335;
|
|
147
|
-
const o = (s << 10 | e) ^ 21522;
|
|
148
|
-
u(o >>> 15 == 0);
|
|
149
|
-
for (let n = 0; n <= 5; n++)
|
|
150
|
-
this.setFunctionModule(8, n, d(o, n));
|
|
151
|
-
this.setFunctionModule(8, 7, d(o, 6)), this.setFunctionModule(8, 8, d(o, 7)), this.setFunctionModule(7, 8, d(o, 8));
|
|
152
|
-
for (let n = 9; n < 15; n++)
|
|
153
|
-
this.setFunctionModule(14 - n, 8, d(o, n));
|
|
154
|
-
for (let n = 0; n < 8; n++)
|
|
155
|
-
this.setFunctionModule(this.size - 1 - n, 8, d(o, n));
|
|
156
|
-
for (let n = 8; n < 15; n++)
|
|
157
|
-
this.setFunctionModule(8, this.size - 15 + n, d(o, n));
|
|
158
|
-
this.setFunctionModule(8, this.size - 8, !0);
|
|
159
|
-
}
|
|
160
|
-
// Draws two copies of the version bits (with its own error correction code),
|
|
161
|
-
// based on this object's version field, iff 7 <= version <= 40.
|
|
162
|
-
drawVersion() {
|
|
163
|
-
if (this.version < 7) return;
|
|
164
|
-
let t = this.version;
|
|
165
|
-
for (let e = 0; e < 12; e++) t = t << 1 ^ (t >>> 11) * 7973;
|
|
166
|
-
const s = this.version << 12 | t;
|
|
167
|
-
u(s >>> 18 == 0);
|
|
168
|
-
for (let e = 0; e < 18; e++) {
|
|
169
|
-
const o = d(s, e), n = this.size - 11 + e % 3, a = Math.floor(e / 3);
|
|
170
|
-
this.setFunctionModule(n, a, o), this.setFunctionModule(a, n, o);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
// Draws a 9*9 finder pattern including the border separator,
|
|
174
|
-
// with the center module at (x, y). Modules can be out of bounds.
|
|
175
|
-
drawFinderPattern(t, s) {
|
|
176
|
-
for (let e = -4; e <= 4; e++)
|
|
177
|
-
for (let o = -4; o <= 4; o++) {
|
|
178
|
-
const n = Math.max(Math.abs(o), Math.abs(e)), a = t + o, r = s + e;
|
|
179
|
-
0 <= a && a < this.size && 0 <= r && r < this.size && this.setFunctionModule(a, r, n != 2 && n != 4);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
// Draws a 5*5 alignment pattern, with the center module
|
|
183
|
-
// at (x, y). All modules must be in bounds.
|
|
184
|
-
drawAlignmentPattern(t, s) {
|
|
185
|
-
for (let e = -2; e <= 2; e++)
|
|
186
|
-
for (let o = -2; o <= 2; o++)
|
|
187
|
-
this.setFunctionModule(
|
|
188
|
-
t + o,
|
|
189
|
-
s + e,
|
|
190
|
-
Math.max(Math.abs(o), Math.abs(e)) != 1
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
// Sets the color of a module and marks it as a function module.
|
|
194
|
-
// Only used by the constructor. Coordinates must be in bounds.
|
|
195
|
-
setFunctionModule(t, s, e) {
|
|
196
|
-
this.modules[s][t] = e, this.isFunction[s][t] = !0;
|
|
197
|
-
}
|
|
198
|
-
/*-- Private helper methods for constructor: Codewords and masking --*/
|
|
199
|
-
// Returns a new byte string representing the given data with the appropriate error correction
|
|
200
|
-
// codewords appended to it, based on this object's version and error correction level.
|
|
201
|
-
addEccAndInterleave(t) {
|
|
202
|
-
const s = this.version, e = this.errorCorrectionLevel;
|
|
203
|
-
if (t.length != i.getNumDataCodewords(s, e))
|
|
204
|
-
throw new RangeError("Invalid argument");
|
|
205
|
-
const o = i.NUM_ERROR_CORRECTION_BLOCKS[e.ordinal][s], n = i.ECC_CODEWORDS_PER_BLOCK[e.ordinal][s], a = Math.floor(
|
|
206
|
-
i.getNumRawDataModules(s) / 8
|
|
207
|
-
), r = o - a % o, f = Math.floor(a / o), h = [], M = i.reedSolomonComputeDivisor(n);
|
|
208
|
-
for (let m = 0, w = 0; m < o; m++) {
|
|
209
|
-
const R = t.slice(
|
|
210
|
-
w,
|
|
211
|
-
w + f - n + (m < r ? 0 : 1)
|
|
212
|
-
);
|
|
213
|
-
w += R.length;
|
|
214
|
-
const I = i.reedSolomonComputeRemainder(R, M);
|
|
215
|
-
m < r && R.push(0), h.push(R.concat(I));
|
|
216
|
-
}
|
|
217
|
-
const p = [];
|
|
218
|
-
for (let m = 0; m < h[0].length; m++)
|
|
219
|
-
h.forEach((w, R) => {
|
|
220
|
-
(m != f - n || R >= r) && p.push(w[m]);
|
|
221
|
-
});
|
|
222
|
-
return u(p.length == a), p;
|
|
223
|
-
}
|
|
224
|
-
// Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
|
|
225
|
-
// data area of this QR Code. Function modules need to be marked off before this is called.
|
|
226
|
-
drawCodewords(t) {
|
|
227
|
-
if (t.length != Math.floor(i.getNumRawDataModules(this.version) / 8))
|
|
228
|
-
throw new RangeError("Invalid argument");
|
|
229
|
-
let s = 0;
|
|
230
|
-
for (let e = this.size - 1; e >= 1; e -= 2) {
|
|
231
|
-
e == 6 && (e = 5);
|
|
232
|
-
for (let o = 0; o < this.size; o++)
|
|
233
|
-
for (let n = 0; n < 2; n++) {
|
|
234
|
-
const a = e - n, f = (e + 1 & 2) == 0 ? this.size - 1 - o : o;
|
|
235
|
-
!this.isFunction[f][a] && s < t.length * 8 && (this.modules[f][a] = d(t[s >>> 3], 7 - (s & 7)), s++);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
u(s == t.length * 8);
|
|
239
|
-
}
|
|
240
|
-
// XORs the codeword modules in this QR Code with the given mask pattern.
|
|
241
|
-
// The function modules must be marked and the codeword bits must be drawn
|
|
242
|
-
// before masking. Due to the arithmetic of XOR, calling applyMask() with
|
|
243
|
-
// the same mask value a second time will undo the mask. A final well-formed
|
|
244
|
-
// QR Code needs exactly one (not zero, two, etc.) mask applied.
|
|
245
|
-
applyMask(t) {
|
|
246
|
-
if (t < 0 || t > 7) throw new RangeError("Mask value out of range");
|
|
247
|
-
for (let s = 0; s < this.size; s++)
|
|
248
|
-
for (let e = 0; e < this.size; e++) {
|
|
249
|
-
let o;
|
|
250
|
-
switch (t) {
|
|
251
|
-
case 0:
|
|
252
|
-
o = (e + s) % 2 == 0;
|
|
253
|
-
break;
|
|
254
|
-
case 1:
|
|
255
|
-
o = s % 2 == 0;
|
|
256
|
-
break;
|
|
257
|
-
case 2:
|
|
258
|
-
o = e % 3 == 0;
|
|
259
|
-
break;
|
|
260
|
-
case 3:
|
|
261
|
-
o = (e + s) % 3 == 0;
|
|
262
|
-
break;
|
|
263
|
-
case 4:
|
|
264
|
-
o = (Math.floor(e / 3) + Math.floor(s / 2)) % 2 == 0;
|
|
265
|
-
break;
|
|
266
|
-
case 5:
|
|
267
|
-
o = e * s % 2 + e * s % 3 == 0;
|
|
268
|
-
break;
|
|
269
|
-
case 6:
|
|
270
|
-
o = (e * s % 2 + e * s % 3) % 2 == 0;
|
|
271
|
-
break;
|
|
272
|
-
case 7:
|
|
273
|
-
o = ((e + s) % 2 + e * s % 3) % 2 == 0;
|
|
274
|
-
break;
|
|
275
|
-
default:
|
|
276
|
-
throw new Error("Unreachable");
|
|
277
|
-
}
|
|
278
|
-
!this.isFunction[s][e] && o && (this.modules[s][e] = !this.modules[s][e]);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
// Calculates and returns the penalty score based on state of this QR Code's current modules.
|
|
282
|
-
// This is used by the automatic mask choice algorithm to find the mask pattern that yields the lowest score.
|
|
283
|
-
getPenaltyScore() {
|
|
284
|
-
let t = 0;
|
|
285
|
-
for (let n = 0; n < this.size; n++) {
|
|
286
|
-
let a = !1, r = 0;
|
|
287
|
-
const f = [0, 0, 0, 0, 0, 0, 0];
|
|
288
|
-
for (let h = 0; h < this.size; h++)
|
|
289
|
-
this.modules[n][h] == a ? (r++, r == 5 ? t += i.PENALTY_N1 : r > 5 && t++) : (this.finderPenaltyAddHistory(r, f), a || (t += this.finderPenaltyCountPatterns(f) * i.PENALTY_N3), a = this.modules[n][h], r = 1);
|
|
290
|
-
t += this.finderPenaltyTerminateAndCount(a, r, f) * i.PENALTY_N3;
|
|
291
|
-
}
|
|
292
|
-
for (let n = 0; n < this.size; n++) {
|
|
293
|
-
let a = !1, r = 0;
|
|
294
|
-
const f = [0, 0, 0, 0, 0, 0, 0];
|
|
295
|
-
for (let h = 0; h < this.size; h++)
|
|
296
|
-
this.modules[h][n] == a ? (r++, r == 5 ? t += i.PENALTY_N1 : r > 5 && t++) : (this.finderPenaltyAddHistory(r, f), a || (t += this.finderPenaltyCountPatterns(f) * i.PENALTY_N3), a = this.modules[h][n], r = 1);
|
|
297
|
-
t += this.finderPenaltyTerminateAndCount(a, r, f) * i.PENALTY_N3;
|
|
298
|
-
}
|
|
299
|
-
for (let n = 0; n < this.size - 1; n++)
|
|
300
|
-
for (let a = 0; a < this.size - 1; a++) {
|
|
301
|
-
const r = this.modules[n][a];
|
|
302
|
-
r == this.modules[n][a + 1] && r == this.modules[n + 1][a] && r == this.modules[n + 1][a + 1] && (t += i.PENALTY_N2);
|
|
303
|
-
}
|
|
304
|
-
let s = 0;
|
|
305
|
-
for (const n of this.modules)
|
|
306
|
-
s = n.reduce((a, r) => a + (r ? 1 : 0), s);
|
|
307
|
-
const e = this.size * this.size, o = Math.ceil(Math.abs(s * 20 - e * 10) / e) - 1;
|
|
308
|
-
return u(0 <= o && o <= 9), t += o * i.PENALTY_N4, u(0 <= t && t <= 2568888), t;
|
|
309
|
-
}
|
|
310
|
-
/*-- Private helper functions --*/
|
|
311
|
-
// Returns an ascending list of positions of alignment patterns for this version number.
|
|
312
|
-
// Each position is in the range [0,177), and are used on both the x and y axes.
|
|
313
|
-
// This could be implemented as lookup table of 40 variable-length lists of integers.
|
|
314
|
-
getAlignmentPatternPositions() {
|
|
315
|
-
if (this.version == 1) return [];
|
|
316
|
-
{
|
|
317
|
-
const t = Math.floor(this.version / 7) + 2, s = Math.floor(
|
|
318
|
-
(this.version * 8 + t * 3 + 5) / (t * 4 - 4)
|
|
319
|
-
) * 2, e = [6];
|
|
320
|
-
for (let o = this.size - 7; e.length < t; o -= s)
|
|
321
|
-
e.splice(1, 0, o);
|
|
322
|
-
return e;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
// Returns the number of data bits that can be stored in a QR Code of the given version number, after
|
|
326
|
-
// all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8.
|
|
327
|
-
// The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table.
|
|
328
|
-
static getNumRawDataModules(t) {
|
|
329
|
-
if (t < i.MIN_VERSION || t > i.MAX_VERSION)
|
|
330
|
-
throw new RangeError("Version number out of range");
|
|
331
|
-
let s = (16 * t + 128) * t + 64;
|
|
332
|
-
if (t >= 2) {
|
|
333
|
-
const e = Math.floor(t / 7) + 2;
|
|
334
|
-
s -= (25 * e - 10) * e - 55, t >= 7 && (s -= 36);
|
|
335
|
-
}
|
|
336
|
-
return u(208 <= s && s <= 29648), s;
|
|
337
|
-
}
|
|
338
|
-
// Returns the number of 8-bit data (i.e. not error correction) codewords contained in any
|
|
339
|
-
// QR Code of the given version number and error correction level, with remainder bits discarded.
|
|
340
|
-
// This stateless pure function could be implemented as a (40*4)-cell lookup table.
|
|
341
|
-
static getNumDataCodewords(t, s) {
|
|
342
|
-
return Math.floor(i.getNumRawDataModules(t) / 8) - i.ECC_CODEWORDS_PER_BLOCK[s.ordinal][t] * i.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][t];
|
|
343
|
-
}
|
|
344
|
-
// Returns a Reed-Solomon ECC generator polynomial for the given degree. This could be
|
|
345
|
-
// implemented as a lookup table over all possible parameter values, instead of as an algorithm.
|
|
346
|
-
static reedSolomonComputeDivisor(t) {
|
|
347
|
-
if (t < 1 || t > 255)
|
|
348
|
-
throw new RangeError("Degree out of range");
|
|
349
|
-
const s = [];
|
|
350
|
-
for (let o = 0; o < t - 1; o++) s.push(0);
|
|
351
|
-
s.push(1);
|
|
352
|
-
let e = 1;
|
|
353
|
-
for (let o = 0; o < t; o++) {
|
|
354
|
-
for (let n = 0; n < s.length; n++)
|
|
355
|
-
s[n] = i.reedSolomonMultiply(s[n], e), n + 1 < s.length && (s[n] ^= s[n + 1]);
|
|
356
|
-
e = i.reedSolomonMultiply(e, 2);
|
|
357
|
-
}
|
|
358
|
-
return s;
|
|
359
|
-
}
|
|
360
|
-
// Returns the Reed-Solomon error correction codeword for the given data and divisor polynomials.
|
|
361
|
-
static reedSolomonComputeRemainder(t, s) {
|
|
362
|
-
const e = s.map((o) => 0);
|
|
363
|
-
for (const o of t) {
|
|
364
|
-
const n = o ^ e.shift();
|
|
365
|
-
e.push(0), s.forEach(
|
|
366
|
-
(a, r) => e[r] ^= i.reedSolomonMultiply(a, n)
|
|
367
|
-
);
|
|
368
|
-
}
|
|
369
|
-
return e;
|
|
370
|
-
}
|
|
371
|
-
// Returns the product of the two given field elements modulo GF(2^8/0x11D). The arguments and result
|
|
372
|
-
// are unsigned 8-bit integers. This could be implemented as a lookup table of 256*256 entries of uint8.
|
|
373
|
-
static reedSolomonMultiply(t, s) {
|
|
374
|
-
if (t >>> 8 || s >>> 8)
|
|
375
|
-
throw new RangeError("Byte out of range");
|
|
376
|
-
let e = 0;
|
|
377
|
-
for (let o = 7; o >= 0; o--)
|
|
378
|
-
e = e << 1 ^ (e >>> 7) * 285, e ^= (s >>> o & 1) * t;
|
|
379
|
-
return u(e >>> 8 == 0), e;
|
|
380
|
-
}
|
|
381
|
-
// Can only be called immediately after a light run is added, and
|
|
382
|
-
// returns either 0, 1, or 2. A helper function for getPenaltyScore().
|
|
383
|
-
finderPenaltyCountPatterns(t) {
|
|
384
|
-
const s = t[1];
|
|
385
|
-
u(s <= this.size * 3);
|
|
386
|
-
const e = s > 0 && t[2] == s && t[3] == s * 3 && t[4] == s && t[5] == s;
|
|
387
|
-
return (e && t[0] >= s * 4 && t[6] >= s ? 1 : 0) + (e && t[6] >= s * 4 && t[0] >= s ? 1 : 0);
|
|
388
|
-
}
|
|
389
|
-
// Must be called at the end of a line (row or column) of modules. A helper function for getPenaltyScore().
|
|
390
|
-
finderPenaltyTerminateAndCount(t, s, e) {
|
|
391
|
-
return t && (this.finderPenaltyAddHistory(s, e), s = 0), s += this.size, this.finderPenaltyAddHistory(s, e), this.finderPenaltyCountPatterns(e);
|
|
392
|
-
}
|
|
393
|
-
// Pushes the given value to the front and drops the last value. A helper function for getPenaltyScore().
|
|
394
|
-
finderPenaltyAddHistory(t, s) {
|
|
395
|
-
s[0] == 0 && (t += this.size), s.pop(), s.unshift(t);
|
|
396
|
-
}
|
|
397
|
-
static {
|
|
398
|
-
this.MIN_VERSION = 1;
|
|
399
|
-
}
|
|
400
|
-
static {
|
|
401
|
-
this.MAX_VERSION = 40;
|
|
402
|
-
}
|
|
403
|
-
static {
|
|
404
|
-
this.PENALTY_N1 = 3;
|
|
405
|
-
}
|
|
406
|
-
static {
|
|
407
|
-
this.PENALTY_N2 = 3;
|
|
408
|
-
}
|
|
409
|
-
static {
|
|
410
|
-
this.PENALTY_N3 = 40;
|
|
411
|
-
}
|
|
412
|
-
static {
|
|
413
|
-
this.PENALTY_N4 = 10;
|
|
414
|
-
}
|
|
415
|
-
static {
|
|
416
|
-
this.ECC_CODEWORDS_PER_BLOCK = [
|
|
417
|
-
// Version: (note that index 0 is for padding, and is set to an illegal value)
|
|
418
|
-
//0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level
|
|
419
|
-
[
|
|
420
|
-
-1,
|
|
421
|
-
7,
|
|
422
|
-
10,
|
|
423
|
-
15,
|
|
424
|
-
20,
|
|
425
|
-
26,
|
|
426
|
-
18,
|
|
427
|
-
20,
|
|
428
|
-
24,
|
|
429
|
-
30,
|
|
430
|
-
18,
|
|
431
|
-
20,
|
|
432
|
-
24,
|
|
433
|
-
26,
|
|
434
|
-
30,
|
|
435
|
-
22,
|
|
436
|
-
24,
|
|
437
|
-
28,
|
|
438
|
-
30,
|
|
439
|
-
28,
|
|
440
|
-
28,
|
|
441
|
-
28,
|
|
442
|
-
28,
|
|
443
|
-
30,
|
|
444
|
-
30,
|
|
445
|
-
26,
|
|
446
|
-
28,
|
|
447
|
-
30,
|
|
448
|
-
30,
|
|
449
|
-
30,
|
|
450
|
-
30,
|
|
451
|
-
30,
|
|
452
|
-
30,
|
|
453
|
-
30,
|
|
454
|
-
30,
|
|
455
|
-
30,
|
|
456
|
-
30,
|
|
457
|
-
30,
|
|
458
|
-
30,
|
|
459
|
-
30,
|
|
460
|
-
30
|
|
461
|
-
],
|
|
462
|
-
// Low
|
|
463
|
-
[
|
|
464
|
-
-1,
|
|
465
|
-
10,
|
|
466
|
-
16,
|
|
467
|
-
26,
|
|
468
|
-
18,
|
|
469
|
-
24,
|
|
470
|
-
16,
|
|
471
|
-
18,
|
|
472
|
-
22,
|
|
473
|
-
22,
|
|
474
|
-
26,
|
|
475
|
-
30,
|
|
476
|
-
22,
|
|
477
|
-
22,
|
|
478
|
-
24,
|
|
479
|
-
24,
|
|
480
|
-
28,
|
|
481
|
-
28,
|
|
482
|
-
26,
|
|
483
|
-
26,
|
|
484
|
-
26,
|
|
485
|
-
26,
|
|
486
|
-
28,
|
|
487
|
-
28,
|
|
488
|
-
28,
|
|
489
|
-
28,
|
|
490
|
-
28,
|
|
491
|
-
28,
|
|
492
|
-
28,
|
|
493
|
-
28,
|
|
494
|
-
28,
|
|
495
|
-
28,
|
|
496
|
-
28,
|
|
497
|
-
28,
|
|
498
|
-
28,
|
|
499
|
-
28,
|
|
500
|
-
28,
|
|
501
|
-
28,
|
|
502
|
-
28,
|
|
503
|
-
28,
|
|
504
|
-
28
|
|
505
|
-
],
|
|
506
|
-
// Medium
|
|
507
|
-
[
|
|
508
|
-
-1,
|
|
509
|
-
13,
|
|
510
|
-
22,
|
|
511
|
-
18,
|
|
512
|
-
26,
|
|
513
|
-
18,
|
|
514
|
-
24,
|
|
515
|
-
18,
|
|
516
|
-
22,
|
|
517
|
-
20,
|
|
518
|
-
24,
|
|
519
|
-
28,
|
|
520
|
-
26,
|
|
521
|
-
24,
|
|
522
|
-
20,
|
|
523
|
-
30,
|
|
524
|
-
24,
|
|
525
|
-
28,
|
|
526
|
-
28,
|
|
527
|
-
26,
|
|
528
|
-
30,
|
|
529
|
-
28,
|
|
530
|
-
30,
|
|
531
|
-
30,
|
|
532
|
-
30,
|
|
533
|
-
30,
|
|
534
|
-
28,
|
|
535
|
-
30,
|
|
536
|
-
30,
|
|
537
|
-
30,
|
|
538
|
-
30,
|
|
539
|
-
30,
|
|
540
|
-
30,
|
|
541
|
-
30,
|
|
542
|
-
30,
|
|
543
|
-
30,
|
|
544
|
-
30,
|
|
545
|
-
30,
|
|
546
|
-
30,
|
|
547
|
-
30,
|
|
548
|
-
30
|
|
549
|
-
],
|
|
550
|
-
// Quartile
|
|
551
|
-
[
|
|
552
|
-
-1,
|
|
553
|
-
17,
|
|
554
|
-
28,
|
|
555
|
-
22,
|
|
556
|
-
16,
|
|
557
|
-
22,
|
|
558
|
-
28,
|
|
559
|
-
26,
|
|
560
|
-
26,
|
|
561
|
-
24,
|
|
562
|
-
28,
|
|
563
|
-
24,
|
|
564
|
-
28,
|
|
565
|
-
22,
|
|
566
|
-
24,
|
|
567
|
-
24,
|
|
568
|
-
30,
|
|
569
|
-
28,
|
|
570
|
-
28,
|
|
571
|
-
26,
|
|
572
|
-
28,
|
|
573
|
-
30,
|
|
574
|
-
24,
|
|
575
|
-
30,
|
|
576
|
-
30,
|
|
577
|
-
30,
|
|
578
|
-
30,
|
|
579
|
-
30,
|
|
580
|
-
30,
|
|
581
|
-
30,
|
|
582
|
-
30,
|
|
583
|
-
30,
|
|
584
|
-
30,
|
|
585
|
-
30,
|
|
586
|
-
30,
|
|
587
|
-
30,
|
|
588
|
-
30,
|
|
589
|
-
30,
|
|
590
|
-
30,
|
|
591
|
-
30,
|
|
592
|
-
30
|
|
593
|
-
]
|
|
594
|
-
// High
|
|
595
|
-
];
|
|
596
|
-
}
|
|
597
|
-
static {
|
|
598
|
-
this.NUM_ERROR_CORRECTION_BLOCKS = [
|
|
599
|
-
// Version: (note that index 0 is for padding, and is set to an illegal value)
|
|
600
|
-
//0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level
|
|
601
|
-
[
|
|
602
|
-
-1,
|
|
603
|
-
1,
|
|
604
|
-
1,
|
|
605
|
-
1,
|
|
606
|
-
1,
|
|
607
|
-
1,
|
|
608
|
-
2,
|
|
609
|
-
2,
|
|
610
|
-
2,
|
|
611
|
-
2,
|
|
612
|
-
4,
|
|
613
|
-
4,
|
|
614
|
-
4,
|
|
615
|
-
4,
|
|
616
|
-
4,
|
|
617
|
-
6,
|
|
618
|
-
6,
|
|
619
|
-
6,
|
|
620
|
-
6,
|
|
621
|
-
7,
|
|
622
|
-
8,
|
|
623
|
-
8,
|
|
624
|
-
9,
|
|
625
|
-
9,
|
|
626
|
-
10,
|
|
627
|
-
12,
|
|
628
|
-
12,
|
|
629
|
-
12,
|
|
630
|
-
13,
|
|
631
|
-
14,
|
|
632
|
-
15,
|
|
633
|
-
16,
|
|
634
|
-
17,
|
|
635
|
-
18,
|
|
636
|
-
19,
|
|
637
|
-
19,
|
|
638
|
-
20,
|
|
639
|
-
21,
|
|
640
|
-
22,
|
|
641
|
-
24,
|
|
642
|
-
25
|
|
643
|
-
],
|
|
644
|
-
// Low
|
|
645
|
-
[
|
|
646
|
-
-1,
|
|
647
|
-
1,
|
|
648
|
-
1,
|
|
649
|
-
1,
|
|
650
|
-
2,
|
|
651
|
-
2,
|
|
652
|
-
4,
|
|
653
|
-
4,
|
|
654
|
-
4,
|
|
655
|
-
5,
|
|
656
|
-
5,
|
|
657
|
-
5,
|
|
658
|
-
8,
|
|
659
|
-
9,
|
|
660
|
-
9,
|
|
661
|
-
10,
|
|
662
|
-
10,
|
|
663
|
-
11,
|
|
664
|
-
13,
|
|
665
|
-
14,
|
|
666
|
-
16,
|
|
667
|
-
17,
|
|
668
|
-
17,
|
|
669
|
-
18,
|
|
670
|
-
20,
|
|
671
|
-
21,
|
|
672
|
-
23,
|
|
673
|
-
25,
|
|
674
|
-
26,
|
|
675
|
-
28,
|
|
676
|
-
29,
|
|
677
|
-
31,
|
|
678
|
-
33,
|
|
679
|
-
35,
|
|
680
|
-
37,
|
|
681
|
-
38,
|
|
682
|
-
40,
|
|
683
|
-
43,
|
|
684
|
-
45,
|
|
685
|
-
47,
|
|
686
|
-
49
|
|
687
|
-
],
|
|
688
|
-
// Medium
|
|
689
|
-
[
|
|
690
|
-
-1,
|
|
691
|
-
1,
|
|
692
|
-
1,
|
|
693
|
-
2,
|
|
694
|
-
2,
|
|
695
|
-
4,
|
|
696
|
-
4,
|
|
697
|
-
6,
|
|
698
|
-
6,
|
|
699
|
-
8,
|
|
700
|
-
8,
|
|
701
|
-
8,
|
|
702
|
-
10,
|
|
703
|
-
12,
|
|
704
|
-
16,
|
|
705
|
-
12,
|
|
706
|
-
17,
|
|
707
|
-
16,
|
|
708
|
-
18,
|
|
709
|
-
21,
|
|
710
|
-
20,
|
|
711
|
-
23,
|
|
712
|
-
23,
|
|
713
|
-
25,
|
|
714
|
-
27,
|
|
715
|
-
29,
|
|
716
|
-
34,
|
|
717
|
-
34,
|
|
718
|
-
35,
|
|
719
|
-
38,
|
|
720
|
-
40,
|
|
721
|
-
43,
|
|
722
|
-
45,
|
|
723
|
-
48,
|
|
724
|
-
51,
|
|
725
|
-
53,
|
|
726
|
-
56,
|
|
727
|
-
59,
|
|
728
|
-
62,
|
|
729
|
-
65,
|
|
730
|
-
68
|
|
731
|
-
],
|
|
732
|
-
// Quartile
|
|
733
|
-
[
|
|
734
|
-
-1,
|
|
735
|
-
1,
|
|
736
|
-
1,
|
|
737
|
-
2,
|
|
738
|
-
4,
|
|
739
|
-
4,
|
|
740
|
-
4,
|
|
741
|
-
5,
|
|
742
|
-
6,
|
|
743
|
-
8,
|
|
744
|
-
8,
|
|
745
|
-
11,
|
|
746
|
-
11,
|
|
747
|
-
16,
|
|
748
|
-
16,
|
|
749
|
-
18,
|
|
750
|
-
16,
|
|
751
|
-
19,
|
|
752
|
-
21,
|
|
753
|
-
25,
|
|
754
|
-
25,
|
|
755
|
-
25,
|
|
756
|
-
34,
|
|
757
|
-
30,
|
|
758
|
-
32,
|
|
759
|
-
35,
|
|
760
|
-
37,
|
|
761
|
-
40,
|
|
762
|
-
42,
|
|
763
|
-
45,
|
|
764
|
-
48,
|
|
765
|
-
51,
|
|
766
|
-
54,
|
|
767
|
-
57,
|
|
768
|
-
60,
|
|
769
|
-
63,
|
|
770
|
-
66,
|
|
771
|
-
70,
|
|
772
|
-
74,
|
|
773
|
-
77,
|
|
774
|
-
81
|
|
775
|
-
]
|
|
776
|
-
// High
|
|
777
|
-
];
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
E.QrCode = i;
|
|
781
|
-
function c(g, t, s) {
|
|
782
|
-
if (t < 0 || t > 31 || g >>> t)
|
|
783
|
-
throw new RangeError("Value out of range");
|
|
784
|
-
for (let e = t - 1; e >= 0; e--)
|
|
785
|
-
s.push(g >>> e & 1);
|
|
786
|
-
}
|
|
787
|
-
function d(g, t) {
|
|
788
|
-
return (g >>> t & 1) != 0;
|
|
789
|
-
}
|
|
790
|
-
function u(g) {
|
|
791
|
-
if (!g) throw new Error("Assertion error");
|
|
792
|
-
}
|
|
793
|
-
class l {
|
|
794
|
-
/*-- Constructor (low level) and fields --*/
|
|
795
|
-
// Creates a new QR Code segment with the given attributes and data.
|
|
796
|
-
// The character count (numChars) must agree with the mode and the bit buffer length,
|
|
797
|
-
// but the constraint isn't checked. The given bit buffer is cloned and stored.
|
|
798
|
-
constructor(t, s, e) {
|
|
799
|
-
if (this.mode = t, this.numChars = s, this.bitData = e, s < 0) throw new RangeError("Invalid argument");
|
|
800
|
-
this.bitData = e.slice();
|
|
801
|
-
}
|
|
802
|
-
/*-- Static factory functions (mid level) --*/
|
|
803
|
-
// Returns a segment representing the given binary data encoded in
|
|
804
|
-
// byte mode. All input byte arrays are acceptable. Any text string
|
|
805
|
-
// can be converted to UTF-8 bytes and encoded as a byte mode segment.
|
|
806
|
-
static makeBytes(t) {
|
|
807
|
-
const s = [];
|
|
808
|
-
for (const e of t) c(e, 8, s);
|
|
809
|
-
return new l(l.Mode.BYTE, t.length, s);
|
|
810
|
-
}
|
|
811
|
-
// Returns a segment representing the given string of decimal digits encoded in numeric mode.
|
|
812
|
-
static makeNumeric(t) {
|
|
813
|
-
if (!l.isNumeric(t))
|
|
814
|
-
throw new RangeError("String contains non-numeric characters");
|
|
815
|
-
const s = [];
|
|
816
|
-
for (let e = 0; e < t.length; ) {
|
|
817
|
-
const o = Math.min(t.length - e, 3);
|
|
818
|
-
c(parseInt(t.substring(e, e + o), 10), o * 3 + 1, s), e += o;
|
|
819
|
-
}
|
|
820
|
-
return new l(l.Mode.NUMERIC, t.length, s);
|
|
821
|
-
}
|
|
822
|
-
// Returns a segment representing the given text string encoded in alphanumeric mode.
|
|
823
|
-
// The characters allowed are: 0 to 9, A to Z (uppercase only), space,
|
|
824
|
-
// dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
825
|
-
static makeAlphanumeric(t) {
|
|
826
|
-
if (!l.isAlphanumeric(t))
|
|
827
|
-
throw new RangeError(
|
|
828
|
-
"String contains unencodable characters in alphanumeric mode"
|
|
829
|
-
);
|
|
830
|
-
const s = [];
|
|
831
|
-
let e;
|
|
832
|
-
for (e = 0; e + 2 <= t.length; e += 2) {
|
|
833
|
-
let o = l.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e)) * 45;
|
|
834
|
-
o += l.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e + 1)), c(o, 11, s);
|
|
835
|
-
}
|
|
836
|
-
return e < t.length && c(
|
|
837
|
-
l.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e)),
|
|
838
|
-
6,
|
|
839
|
-
s
|
|
840
|
-
), new l(l.Mode.ALPHANUMERIC, t.length, s);
|
|
841
|
-
}
|
|
842
|
-
// Returns a new mutable list of zero or more segments to represent the given Unicode text string.
|
|
843
|
-
// The result may use various segment modes and switch modes to optimize the length of the bit stream.
|
|
844
|
-
static makeSegments(t) {
|
|
845
|
-
return t == "" ? [] : l.isNumeric(t) ? [l.makeNumeric(t)] : l.isAlphanumeric(t) ? [l.makeAlphanumeric(t)] : [l.makeBytes(l.toUtf8ByteArray(t))];
|
|
846
|
-
}
|
|
847
|
-
// Returns a segment representing an Extended Channel Interpretation
|
|
848
|
-
// (ECI) designator with the given assignment value.
|
|
849
|
-
static makeEci(t) {
|
|
850
|
-
const s = [];
|
|
851
|
-
if (t < 0)
|
|
852
|
-
throw new RangeError("ECI assignment value out of range");
|
|
853
|
-
if (t < 128) c(t, 8, s);
|
|
854
|
-
else if (t < 16384)
|
|
855
|
-
c(2, 2, s), c(t, 14, s);
|
|
856
|
-
else if (t < 1e6)
|
|
857
|
-
c(6, 3, s), c(t, 21, s);
|
|
858
|
-
else throw new RangeError("ECI assignment value out of range");
|
|
859
|
-
return new l(l.Mode.ECI, 0, s);
|
|
860
|
-
}
|
|
861
|
-
// Tests whether the given string can be encoded as a segment in numeric mode.
|
|
862
|
-
// A string is encodable iff each character is in the range 0 to 9.
|
|
863
|
-
static isNumeric(t) {
|
|
864
|
-
return l.NUMERIC_REGEX.test(t);
|
|
865
|
-
}
|
|
866
|
-
// Tests whether the given string can be encoded as a segment in alphanumeric mode.
|
|
867
|
-
// A string is encodable iff each character is in the following set: 0 to 9, A to Z
|
|
868
|
-
// (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
869
|
-
static isAlphanumeric(t) {
|
|
870
|
-
return l.ALPHANUMERIC_REGEX.test(t);
|
|
871
|
-
}
|
|
872
|
-
/*-- Methods --*/
|
|
873
|
-
// Returns a new copy of the data bits of this segment.
|
|
874
|
-
getData() {
|
|
875
|
-
return this.bitData.slice();
|
|
876
|
-
}
|
|
877
|
-
// (Package-private) Calculates and returns the number of bits needed to encode the given segments at
|
|
878
|
-
// the given version. The result is infinity if a segment has too many characters to fit its length field.
|
|
879
|
-
static getTotalBits(t, s) {
|
|
880
|
-
let e = 0;
|
|
881
|
-
for (const o of t) {
|
|
882
|
-
const n = o.mode.numCharCountBits(s);
|
|
883
|
-
if (o.numChars >= 1 << n) return 1 / 0;
|
|
884
|
-
e += 4 + n + o.bitData.length;
|
|
885
|
-
}
|
|
886
|
-
return e;
|
|
887
|
-
}
|
|
888
|
-
// Returns a new array of bytes representing the given string encoded in UTF-8.
|
|
889
|
-
static toUtf8ByteArray(t) {
|
|
890
|
-
t = encodeURI(t);
|
|
891
|
-
const s = [];
|
|
892
|
-
for (let e = 0; e < t.length; e++)
|
|
893
|
-
t.charAt(e) != "%" ? s.push(t.charCodeAt(e)) : (s.push(parseInt(t.substring(e + 1, e + 3), 16)), e += 2);
|
|
894
|
-
return s;
|
|
895
|
-
}
|
|
896
|
-
static {
|
|
897
|
-
this.NUMERIC_REGEX = /^[0-9]*$/;
|
|
898
|
-
}
|
|
899
|
-
static {
|
|
900
|
-
this.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+./:-]*$/;
|
|
901
|
-
}
|
|
902
|
-
static {
|
|
903
|
-
this.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
E.QrSegment = l;
|
|
907
|
-
})(L || (L = {}));
|
|
908
|
-
((E) => {
|
|
909
|
-
((i) => {
|
|
910
|
-
class c {
|
|
911
|
-
// The QR Code can tolerate about 30% erroneous codewords
|
|
912
|
-
/*-- Constructor and fields --*/
|
|
913
|
-
constructor(u, l) {
|
|
914
|
-
this.ordinal = u, this.formatBits = l;
|
|
915
|
-
}
|
|
916
|
-
static {
|
|
917
|
-
this.LOW = new c(0, 1);
|
|
918
|
-
}
|
|
919
|
-
static {
|
|
920
|
-
this.MEDIUM = new c(1, 0);
|
|
921
|
-
}
|
|
922
|
-
static {
|
|
923
|
-
this.QUARTILE = new c(2, 3);
|
|
924
|
-
}
|
|
925
|
-
static {
|
|
926
|
-
this.HIGH = new c(3, 2);
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
i.Ecc = c;
|
|
930
|
-
})(E.QrCode || (E.QrCode = {}));
|
|
931
|
-
})(L || (L = {}));
|
|
932
|
-
((E) => {
|
|
933
|
-
((i) => {
|
|
934
|
-
class c {
|
|
935
|
-
/*-- Constructor and fields --*/
|
|
936
|
-
constructor(u, l) {
|
|
937
|
-
this.modeBits = u, this.numBitsCharCount = l;
|
|
938
|
-
}
|
|
939
|
-
static {
|
|
940
|
-
this.NUMERIC = new c(1, [10, 12, 14]);
|
|
941
|
-
}
|
|
942
|
-
static {
|
|
943
|
-
this.ALPHANUMERIC = new c(2, [9, 11, 13]);
|
|
944
|
-
}
|
|
945
|
-
static {
|
|
946
|
-
this.BYTE = new c(4, [8, 16, 16]);
|
|
947
|
-
}
|
|
948
|
-
static {
|
|
949
|
-
this.KANJI = new c(8, [8, 10, 12]);
|
|
950
|
-
}
|
|
951
|
-
static {
|
|
952
|
-
this.ECI = new c(7, [0, 0, 0]);
|
|
953
|
-
}
|
|
954
|
-
/*-- Method --*/
|
|
955
|
-
// (Package-private) Returns the bit width of the character count field for a segment in
|
|
956
|
-
// this mode in a QR Code at the given version number. The result is in the range [0, 16].
|
|
957
|
-
numCharCountBits(u) {
|
|
958
|
-
return this.numBitsCharCount[Math.floor((u + 7) / 17)];
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
i.Mode = c;
|
|
962
|
-
})(E.QrSegment || (E.QrSegment = {}));
|
|
963
|
-
})(L || (L = {}));
|
|
964
|
-
const b = L, nt = {
|
|
965
|
-
L: b.QrCode.Ecc.LOW,
|
|
966
|
-
M: b.QrCode.Ecc.MEDIUM,
|
|
967
|
-
Q: b.QrCode.Ecc.QUARTILE,
|
|
968
|
-
H: b.QrCode.Ecc.HIGH
|
|
969
|
-
}, k = 128, H = "L", $ = "#FFFFFF", x = "#000000", Y = 1, it = 0, rt = 0.1;
|
|
970
|
-
function G(E, i = 0) {
|
|
971
|
-
const c = [];
|
|
972
|
-
return E.forEach(function(d, u) {
|
|
973
|
-
let l = null;
|
|
974
|
-
d.forEach(function(g, t) {
|
|
975
|
-
if (!g && l !== null) {
|
|
976
|
-
c.push(
|
|
977
|
-
`M${l + i} ${u + i}h${t - l}v1H${l + i}z`
|
|
978
|
-
), l = null;
|
|
979
|
-
return;
|
|
980
|
-
}
|
|
981
|
-
if (t === d.length - 1) {
|
|
982
|
-
if (!g)
|
|
983
|
-
return;
|
|
984
|
-
l === null ? c.push(`M${t + i},${u + i} h1v1H${t + i}z`) : c.push(
|
|
985
|
-
`M${l + i},${u + i} h${t + 1 - l}v1H${l + i}z`
|
|
986
|
-
);
|
|
987
|
-
return;
|
|
988
|
-
}
|
|
989
|
-
g && l === null && (l = t);
|
|
990
|
-
});
|
|
991
|
-
}), c.join("");
|
|
992
|
-
}
|
|
993
|
-
function V(E, i) {
|
|
994
|
-
return E.slice().map((c, d) => d < i.y || d >= i.y + i.h ? c : c.map((u, l) => l < i.x || l >= i.x + i.w ? u : !1));
|
|
995
|
-
}
|
|
996
|
-
function lt(E, i, c, d) {
|
|
997
|
-
if (d == null)
|
|
998
|
-
return null;
|
|
999
|
-
const u = E.length + c * 2, l = Math.floor(i * rt), g = u / i, t = (d.width || l) * g, s = (d.height || l) * g, e = d.x == null ? E.length / 2 - t / 2 : d.x * g, o = d.y == null ? E.length / 2 - s / 2 : d.y * g, n = d.opacity == null ? 1 : d.opacity;
|
|
1000
|
-
let a = null;
|
|
1001
|
-
if (d.excavate) {
|
|
1002
|
-
const f = Math.floor(e), h = Math.floor(o), M = Math.ceil(t + e - f), p = Math.ceil(s + o - h);
|
|
1003
|
-
a = { x: f, y: h, w: M, h: p };
|
|
1004
|
-
}
|
|
1005
|
-
const r = d.crossOrigin;
|
|
1006
|
-
return { x: e, y: o, h: s, w: t, excavation: a, opacity: n, crossOrigin: r };
|
|
1007
|
-
}
|
|
1008
|
-
function at(E) {
|
|
1009
|
-
return E != null ? Math.max(Math.floor(E), 0) : it;
|
|
1010
|
-
}
|
|
1011
|
-
function X({
|
|
1012
|
-
value: E,
|
|
1013
|
-
level: i,
|
|
1014
|
-
minVersion: c,
|
|
1015
|
-
marginSize: d,
|
|
1016
|
-
imageSettings: u,
|
|
1017
|
-
size: l,
|
|
1018
|
-
boostLevel: g
|
|
1019
|
-
}) {
|
|
1020
|
-
const t = A.useMemo(() => {
|
|
1021
|
-
const r = (Array.isArray(E) ? E : [E]).reduce((f, h) => (f.push(...b.QrSegment.makeSegments(h)), f), []);
|
|
1022
|
-
return b.QrCode.encodeSegments(
|
|
1023
|
-
r,
|
|
1024
|
-
nt[i],
|
|
1025
|
-
c,
|
|
1026
|
-
void 0,
|
|
1027
|
-
void 0,
|
|
1028
|
-
g
|
|
1029
|
-
);
|
|
1030
|
-
}, [E, i, c, g]), { cells: s, margin: e, numCells: o, calculatedImageSettings: n } = A.useMemo(() => {
|
|
1031
|
-
const a = t.getModules(), r = at(d), f = a.length + r * 2, h = lt(
|
|
1032
|
-
a,
|
|
1033
|
-
l,
|
|
1034
|
-
r,
|
|
1035
|
-
u
|
|
1036
|
-
);
|
|
1037
|
-
return {
|
|
1038
|
-
cells: a,
|
|
1039
|
-
margin: r,
|
|
1040
|
-
numCells: f,
|
|
1041
|
-
calculatedImageSettings: h
|
|
1042
|
-
};
|
|
1043
|
-
}, [t, l, u, d]);
|
|
1044
|
-
return {
|
|
1045
|
-
qrcode: t,
|
|
1046
|
-
margin: e,
|
|
1047
|
-
cells: s,
|
|
1048
|
-
numCells: o,
|
|
1049
|
-
calculatedImageSettings: n
|
|
1050
|
-
};
|
|
1051
|
-
}
|
|
1052
|
-
const ct = (function() {
|
|
1053
|
-
try {
|
|
1054
|
-
new Path2D().addPath(new Path2D());
|
|
1055
|
-
} catch {
|
|
1056
|
-
return !1;
|
|
1057
|
-
}
|
|
1058
|
-
return !0;
|
|
1059
|
-
})(), K = A.forwardRef(
|
|
1060
|
-
function(i, c) {
|
|
1061
|
-
const {
|
|
1062
|
-
value: d,
|
|
1063
|
-
size: u = k,
|
|
1064
|
-
level: l = H,
|
|
1065
|
-
bgColor: g = $,
|
|
1066
|
-
fgColor: t = x,
|
|
1067
|
-
minVersion: s = Y,
|
|
1068
|
-
boostLevel: e,
|
|
1069
|
-
marginSize: o,
|
|
1070
|
-
imageSettings: n,
|
|
1071
|
-
...a
|
|
1072
|
-
} = i, { style: r, ...f } = a, h = n?.src, M = A.useRef(null), p = A.useRef(null), m = A.useCallback(
|
|
1073
|
-
(y) => {
|
|
1074
|
-
M.current = y, typeof c == "function" ? c(y) : c && (c.current = y);
|
|
1075
|
-
},
|
|
1076
|
-
[c]
|
|
1077
|
-
), [w, R] = A.useState(!1), { margin: I, cells: O, numCells: F, calculatedImageSettings: C } = X({
|
|
1078
|
-
value: d,
|
|
1079
|
-
level: l,
|
|
1080
|
-
minVersion: s,
|
|
1081
|
-
boostLevel: e,
|
|
1082
|
-
marginSize: o,
|
|
1083
|
-
imageSettings: n,
|
|
1084
|
-
size: u
|
|
1085
|
-
});
|
|
1086
|
-
A.useEffect(() => {
|
|
1087
|
-
if (M.current != null) {
|
|
1088
|
-
const y = M.current, N = y.getContext("2d");
|
|
1089
|
-
if (!N)
|
|
1090
|
-
return;
|
|
1091
|
-
let B = O;
|
|
1092
|
-
const v = p.current, T = C != null && v !== null && v.complete && v.naturalHeight !== 0 && v.naturalWidth !== 0;
|
|
1093
|
-
T && C.excavation != null && (B = V(
|
|
1094
|
-
O,
|
|
1095
|
-
C.excavation
|
|
1096
|
-
));
|
|
1097
|
-
const D = window.devicePixelRatio || 1;
|
|
1098
|
-
y.height = y.width = u * D;
|
|
1099
|
-
const S = u / F * D;
|
|
1100
|
-
N.scale(S, S), N.fillStyle = g, N.fillRect(0, 0, F, F), N.fillStyle = t, ct ? N.fill(new Path2D(G(B, I))) : O.forEach(function(Z, q) {
|
|
1101
|
-
Z.forEach(function(J, _) {
|
|
1102
|
-
J && N.fillRect(_ + I, q + I, 1, 1);
|
|
1103
|
-
});
|
|
1104
|
-
}), C && (N.globalAlpha = C.opacity), T && N.drawImage(
|
|
1105
|
-
v,
|
|
1106
|
-
C.x + I,
|
|
1107
|
-
C.y + I,
|
|
1108
|
-
C.w,
|
|
1109
|
-
C.h
|
|
1110
|
-
);
|
|
1111
|
-
}
|
|
1112
|
-
}), A.useEffect(() => {
|
|
1113
|
-
R(!1);
|
|
1114
|
-
}, [h]);
|
|
1115
|
-
const j = { height: u, width: u, ...r };
|
|
1116
|
-
let z = null;
|
|
1117
|
-
return h != null && (z = /* @__PURE__ */ P(
|
|
1118
|
-
"img",
|
|
1119
|
-
{
|
|
1120
|
-
src: h,
|
|
1121
|
-
style: { display: "none" },
|
|
1122
|
-
onLoad: () => {
|
|
1123
|
-
R(!0);
|
|
1124
|
-
},
|
|
1125
|
-
ref: p,
|
|
1126
|
-
crossOrigin: C?.crossOrigin
|
|
1127
|
-
},
|
|
1128
|
-
h
|
|
1129
|
-
)), /* @__PURE__ */ U(Q, { children: [
|
|
1130
|
-
/* @__PURE__ */ P(
|
|
1131
|
-
"canvas",
|
|
1132
|
-
{
|
|
1133
|
-
style: j,
|
|
1134
|
-
height: u,
|
|
1135
|
-
width: u,
|
|
1136
|
-
ref: m,
|
|
1137
|
-
role: "img",
|
|
1138
|
-
...f
|
|
1139
|
-
}
|
|
1140
|
-
),
|
|
1141
|
-
z
|
|
1142
|
-
] });
|
|
1143
|
-
}
|
|
1144
|
-
);
|
|
1145
|
-
K.displayName = "QRCodeCanvas";
|
|
1146
|
-
const W = A.forwardRef(
|
|
1147
|
-
function(i, c) {
|
|
1148
|
-
const {
|
|
1149
|
-
value: d,
|
|
1150
|
-
size: u = k,
|
|
1151
|
-
level: l = H,
|
|
1152
|
-
bgColor: g = $,
|
|
1153
|
-
fgColor: t = x,
|
|
1154
|
-
minVersion: s = Y,
|
|
1155
|
-
boostLevel: e,
|
|
1156
|
-
title: o,
|
|
1157
|
-
marginSize: n,
|
|
1158
|
-
imageSettings: a,
|
|
1159
|
-
...r
|
|
1160
|
-
} = i, { margin: f, cells: h, numCells: M, calculatedImageSettings: p } = X({
|
|
1161
|
-
value: d,
|
|
1162
|
-
level: l,
|
|
1163
|
-
minVersion: s,
|
|
1164
|
-
boostLevel: e,
|
|
1165
|
-
marginSize: n,
|
|
1166
|
-
imageSettings: a,
|
|
1167
|
-
size: u
|
|
1168
|
-
});
|
|
1169
|
-
let m = h, w = null;
|
|
1170
|
-
a != null && p != null && (p.excavation != null && (m = V(
|
|
1171
|
-
h,
|
|
1172
|
-
p.excavation
|
|
1173
|
-
)), w = /* @__PURE__ */ P(
|
|
1174
|
-
"image",
|
|
1175
|
-
{
|
|
1176
|
-
href: a.src,
|
|
1177
|
-
height: p.h,
|
|
1178
|
-
width: p.w,
|
|
1179
|
-
x: p.x + f,
|
|
1180
|
-
y: p.y + f,
|
|
1181
|
-
preserveAspectRatio: "none",
|
|
1182
|
-
opacity: p.opacity,
|
|
1183
|
-
crossOrigin: p.crossOrigin
|
|
1184
|
-
}
|
|
1185
|
-
));
|
|
1186
|
-
const R = G(m, f);
|
|
1187
|
-
return /* @__PURE__ */ U(
|
|
1188
|
-
"svg",
|
|
1189
|
-
{
|
|
1190
|
-
height: u,
|
|
1191
|
-
width: u,
|
|
1192
|
-
viewBox: `0 0 ${M} ${M}`,
|
|
1193
|
-
ref: c,
|
|
1194
|
-
role: "img",
|
|
1195
|
-
...r,
|
|
1196
|
-
children: [
|
|
1197
|
-
!!o && /* @__PURE__ */ P("title", { children: o }),
|
|
1198
|
-
/* @__PURE__ */ P(
|
|
1199
|
-
"path",
|
|
1200
|
-
{
|
|
1201
|
-
fill: g,
|
|
1202
|
-
d: `M0,0 h${M}v${M}H0z`,
|
|
1203
|
-
shapeRendering: "crispEdges"
|
|
1204
|
-
}
|
|
1205
|
-
),
|
|
1206
|
-
/* @__PURE__ */ P("path", { fill: t, d: R, shapeRendering: "crispEdges" }),
|
|
1207
|
-
w
|
|
1208
|
-
]
|
|
1209
|
-
}
|
|
1210
|
-
);
|
|
1211
|
-
}
|
|
1212
|
-
);
|
|
1213
|
-
W.displayName = "QRCodeSVG";
|
|
1214
|
-
const ht = {
|
|
25
|
+
import "lodash/merge";
|
|
26
|
+
import "../dist/ui-common/utils/dom.js";
|
|
27
|
+
import Q from "@unicom-cloud/utils/class-name";
|
|
28
|
+
import { QRCodeCanvas as R, QRCodeSVG as S } from "./src/index.js";
|
|
29
|
+
import { default as mo } from "./src/qrcodegen.js";
|
|
30
|
+
import h from "../config-provider/context.js";
|
|
31
|
+
const N = {
|
|
1215
32
|
renderAs: "svg",
|
|
1216
33
|
size: 160,
|
|
1217
34
|
bordered: !0,
|
|
1218
35
|
errorLevel: "M",
|
|
1219
|
-
fgColor: "#000000",
|
|
1220
|
-
bgColor: "#ffffff",
|
|
36
|
+
fgColor: "var(--pqb-color-text-1, #000000)",
|
|
37
|
+
bgColor: "var(--pqb-color-bg-2, #ffffff)",
|
|
1221
38
|
marginSize: 0,
|
|
1222
|
-
value: "
|
|
1223
|
-
},
|
|
1224
|
-
const { getPrefixCls:
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
39
|
+
value: "二维码组件"
|
|
40
|
+
}, eo = (p) => {
|
|
41
|
+
const { getPrefixCls: s, componentConfig: n } = z(h), d = P(
|
|
42
|
+
p,
|
|
43
|
+
N,
|
|
44
|
+
n?.QRCode
|
|
1228
45
|
), {
|
|
1229
|
-
value:
|
|
1230
|
-
renderAs:
|
|
1231
|
-
size:
|
|
46
|
+
value: l,
|
|
47
|
+
renderAs: e,
|
|
48
|
+
size: o,
|
|
1232
49
|
bordered: t,
|
|
1233
|
-
errorLevel:
|
|
1234
|
-
fgColor:
|
|
1235
|
-
bgColor:
|
|
1236
|
-
marginSize:
|
|
1237
|
-
imageSettings:
|
|
1238
|
-
className:
|
|
1239
|
-
style:
|
|
1240
|
-
|
|
50
|
+
errorLevel: a,
|
|
51
|
+
fgColor: c,
|
|
52
|
+
bgColor: f,
|
|
53
|
+
marginSize: C = 0,
|
|
54
|
+
imageSettings: g,
|
|
55
|
+
className: v,
|
|
56
|
+
style: u,
|
|
57
|
+
...b
|
|
58
|
+
} = d, i = s?.("qrcode"), x = o - (t ? 12 : 0), q = () => {
|
|
1241
59
|
const m = {
|
|
1242
|
-
value:
|
|
1243
|
-
size:
|
|
1244
|
-
level:
|
|
1245
|
-
fgColor:
|
|
1246
|
-
bgColor:
|
|
1247
|
-
marginSize:
|
|
1248
|
-
imageSettings:
|
|
60
|
+
value: l,
|
|
61
|
+
size: x,
|
|
62
|
+
level: a,
|
|
63
|
+
fgColor: c,
|
|
64
|
+
bgColor: f,
|
|
65
|
+
marginSize: C,
|
|
66
|
+
imageSettings: g,
|
|
67
|
+
...b
|
|
1249
68
|
};
|
|
1250
|
-
return
|
|
69
|
+
return e === "canvas" ? /* @__PURE__ */ r(R, { ...m }) : /* @__PURE__ */ r(S, { ...m });
|
|
1251
70
|
};
|
|
1252
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ r(
|
|
1253
72
|
"div",
|
|
1254
73
|
{
|
|
1255
|
-
className:
|
|
1256
|
-
|
|
1257
|
-
t && `${
|
|
1258
|
-
|
|
1259
|
-
`qrcode-${
|
|
74
|
+
className: Q(
|
|
75
|
+
i,
|
|
76
|
+
t && `${i}-bordered`,
|
|
77
|
+
v,
|
|
78
|
+
`qrcode-${e}`
|
|
1260
79
|
),
|
|
1261
80
|
style: {
|
|
1262
|
-
width:
|
|
1263
|
-
height:
|
|
1264
|
-
...
|
|
81
|
+
width: o,
|
|
82
|
+
height: o,
|
|
83
|
+
...u
|
|
1265
84
|
},
|
|
1266
|
-
children:
|
|
85
|
+
children: q()
|
|
1267
86
|
}
|
|
1268
87
|
);
|
|
1269
88
|
};
|
|
1270
89
|
export {
|
|
1271
|
-
|
|
1272
|
-
|
|
90
|
+
eo as default,
|
|
91
|
+
mo as qrcodegen
|
|
1273
92
|
};
|