@unicom-cloud/ui 0.8.150 → 0.8.152
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/.virtual/_rolldown/runtime.js +19 -0
- package/.vite/license.md +3 -0
- package/.vite/manifest.json +8213 -0
- package/affix/Affix.d.ts +10 -0
- package/affix/Affix.js +114 -130
- package/affix/index.d.ts +7 -0
- package/affix/index.js +7 -5
- package/alert/Alert.d.ts +5 -0
- package/alert/Alert.js +82 -111
- package/alert/index.d.ts +3 -0
- package/alert/index.js +7 -5
- package/anchor/Anchor.d.ts +10 -0
- package/anchor/Anchor.js +146 -190
- package/anchor/Link.d.ts +6 -0
- package/anchor/Link.js +40 -57
- package/anchor/context.d.ts +3 -0
- package/anchor/context.js +12 -15
- package/anchor/index.d.ts +14 -0
- package/anchor/index.js +9 -9
- package/anchor/utils.d.ts +5 -0
- package/anchor/utils.js +37 -46
- package/app/App.js +34 -26
- package/app/context.d.ts +4 -0
- package/app/context.js +11 -10
- package/app/index.js +9 -12
- package/app/useApp.d.ts +3 -0
- package/app/useApp.js +8 -7
- package/auto-complete/AutoComplete.d.ts +11 -0
- package/auto-complete/AutoComplete.js +109 -165
- package/auto-complete/index.d.ts +20 -0
- package/auto-complete/index.js +10 -7
- package/auto-complete/interface.d.ts +122 -0
- package/avatar/Avatar.d.ts +6 -0
- package/avatar/Avatar.js +70 -91
- package/avatar/Group.d.ts +6 -0
- package/avatar/Group.js +65 -83
- package/avatar/context.d.ts +3 -0
- package/avatar/context.js +7 -6
- package/avatar/index.d.ts +12 -0
- package/avatar/index.js +9 -11
- package/avatar/interface.d.ts +91 -0
- package/back-top/BackTop.d.ts +6 -0
- package/back-top/BackTop.js +59 -74
- package/back-top/index.d.ts +5 -0
- package/back-top/index.js +7 -5
- package/badge/Badge.d.ts +7 -0
- package/badge/Badge.js +123 -211
- package/badge/Count.js +33 -36
- package/badge/index.d.ts +10 -0
- package/badge/index.js +9 -10
- package/badge/utils.d.ts +5 -0
- package/badge/utils.js +24 -0
- package/breadcrumb/Breadcrumb.d.ts +9 -0
- package/breadcrumb/Breadcrumb.js +77 -94
- package/breadcrumb/Item.d.ts +8 -0
- package/breadcrumb/Item.js +37 -67
- package/breadcrumb/context.d.ts +4 -0
- package/breadcrumb/context.js +7 -6
- package/breadcrumb/index.d.ts +11 -0
- package/breadcrumb/index.js +9 -9
- package/breadcrumb/interface.d.ts +79 -0
- package/button/Button.d.ts +19 -0
- package/button/Button.js +102 -157
- package/button/Group.d.ts +5 -0
- package/button/Group.js +20 -13
- package/button/index.d.ts +18 -0
- package/button/index.js +11 -10
- package/button/interface.d.ts +114 -0
- package/calendar/Calendar.d.ts +4 -0
- package/calendar/Calendar.js +138 -0
- package/calendar/Month.d.ts +15 -0
- package/calendar/Month.js +115 -142
- package/calendar/WeekList.js +24 -24
- package/calendar/Year.d.ts +13 -0
- package/calendar/Year.js +82 -78
- package/calendar/header/Panel.js +43 -57
- package/calendar/header/index.js +95 -109
- package/calendar/hook/useCellClassName.js +32 -40
- package/calendar/index.d.ts +10 -0
- package/calendar/index.js +12 -183
- package/card/Card.d.ts +11 -0
- package/card/Card.js +73 -0
- package/card/Grid.d.ts +5 -0
- package/card/Grid.js +20 -26
- package/card/Meta.d.ts +5 -0
- package/card/Meta.js +35 -31
- package/card/index.d.ts +13 -0
- package/card/index.js +12 -133
- package/carousel/Arrow.d.ts +4 -0
- package/carousel/Arrow.js +37 -56
- package/carousel/Carousel.d.ts +5 -0
- package/carousel/Carousel.js +180 -0
- package/carousel/Indicator.d.ts +4 -0
- package/carousel/Indicator.js +42 -67
- package/carousel/index.d.ts +4 -0
- package/carousel/index.js +7 -287
- package/cascader/Cascader.d.ts +12 -0
- package/cascader/Cascader.js +229 -305
- package/cascader/base/node.d.ts +66 -0
- package/cascader/base/node.js +87 -95
- package/cascader/base/store.d.ts +40 -0
- package/cascader/base/store.js +65 -52
- package/cascader/hook/useRefCurrent.js +13 -12
- package/cascader/index.d.ts +5 -0
- package/cascader/index.js +7 -5
- package/cascader/interface.d.ts +297 -0
- package/cascader/panel/List.d.ts +4 -0
- package/cascader/panel/List.js +198 -269
- package/cascader/panel/Option.d.ts +23 -0
- package/cascader/panel/Option.js +24 -34
- package/cascader/panel/Search.d.ts +28 -0
- package/cascader/panel/Search.js +138 -161
- package/cascader/utils.d.ts +23 -0
- package/cascader/utils.js +50 -64
- package/checkbox/Checkbox.d.ts +5 -0
- package/checkbox/Checkbox.js +87 -138
- package/checkbox/Group.d.ts +9 -0
- package/checkbox/Group.js +71 -104
- package/checkbox/GroupBlock.d.ts +8 -0
- package/checkbox/GroupBlock.js +59 -102
- package/checkbox/context.js +12 -15
- package/checkbox/index.d.ts +12 -0
- package/checkbox/index.js +15 -14
- package/checkbox/interface.d.ts +102 -0
- package/checkbox/useCheckbox.js +49 -45
- package/collapse/Collapse.d.ts +11 -0
- package/collapse/Collapse.js +75 -119
- package/collapse/Item.d.ts +8 -0
- package/collapse/Item.js +118 -182
- package/collapse/context.d.ts +5 -0
- package/collapse/context.js +12 -12
- package/collapse/index.d.ts +14 -0
- package/collapse/index.js +9 -9
- package/color-picker/ColorPicker.d.ts +19 -0
- package/color-picker/ColorPicker.js +120 -0
- package/color-picker/ControlBar.d.ts +18 -0
- package/color-picker/ControlBar.js +45 -64
- package/color-picker/InputAlpha.d.ts +7 -0
- package/color-picker/InputAlpha.js +21 -23
- package/color-picker/InputHex.d.ts +11 -0
- package/color-picker/InputHex.js +49 -55
- package/color-picker/InputRgb.d.ts +10 -0
- package/color-picker/InputRgb.js +67 -63
- package/color-picker/Mode.d.ts +8 -0
- package/color-picker/Mode.js +8 -12
- package/color-picker/Palette.d.ts +7 -0
- package/color-picker/Palette.js +34 -35
- package/color-picker/Panel.d.ts +31 -0
- package/color-picker/Panel.js +227 -284
- package/color-picker/colors.d.ts +2 -0
- package/color-picker/colors.js +12 -34
- package/color-picker/hooks/useColorPicker.d.ts +35 -0
- package/color-picker/hooks/useColorPicker.js +101 -120
- package/color-picker/hooks/useControlBlock.d.ts +18 -0
- package/color-picker/hooks/useControlBlock.js +48 -57
- package/color-picker/index.js +20 -188
- package/color-picker/interface.d.ts +148 -0
- package/color-picker/interface.js +9 -5
- package/color-picker/utils.d.ts +23 -0
- package/color-picker/utils.js +64 -90
- package/comment/Comment.d.ts +6 -0
- package/comment/Comment.js +71 -0
- package/comment/index.d.ts +6 -0
- package/comment/index.js +7 -77
- package/config-provider/ConfigProvider.d.ts +6 -0
- package/config-provider/ConfigProvider.js +38 -49
- package/config-provider/context.d.ts +6 -0
- package/config-provider/context.js +26 -28
- package/config-provider/index.d.ts +8 -0
- package/config-provider/index.js +8 -10
- package/config-provider/initUI.js +14 -14
- package/config-provider/interface.d.ts +273 -0
- package/config-provider/useConfigProvider.js +53 -97
- package/constant/index.d.ts +3 -0
- package/constant/index.js +6 -6
- package/copy/Copy.d.ts +7 -0
- package/copy/Copy.js +46 -0
- package/copy/index.d.ts +5 -0
- package/copy/index.js +7 -71
- package/countdown/Countdown.d.ts +4 -0
- package/countdown/Countdown.js +63 -0
- package/countdown/index.d.ts +4 -0
- package/countdown/index.js +7 -115
- package/countdown/utils.js +21 -28
- package/date-picker/DatePicker.d.ts +11 -0
- package/date-picker/DatePicker.js +53 -0
- package/date-picker/DatePickerRange.d.ts +3 -0
- package/date-picker/DatePickerRange.js +397 -593
- package/date-picker/Picker.d.ts +4 -0
- package/date-picker/Picker.js +307 -408
- package/date-picker/context.d.ts +6 -0
- package/date-picker/context.js +7 -9
- package/date-picker/hook/useCellClassName.js +52 -81
- package/date-picker/index.d.ts +13 -0
- package/date-picker/index.js +16 -64
- package/date-picker/interface.d.ts +532 -0
- package/date-picker/panel/Body.d.ts +30 -0
- package/date-picker/panel/Body.js +63 -94
- package/date-picker/panel/Footer.js +61 -75
- package/date-picker/panel/Header.d.ts +22 -0
- package/date-picker/panel/Header.js +84 -100
- package/date-picker/panel/Shortcut.d.ts +3 -0
- package/date-picker/panel/Shortcut.js +40 -47
- package/date-picker/panel/WeekList.js +28 -26
- package/date-picker/panel/date/index.js +162 -230
- package/date-picker/panel/month/index.d.ts +17 -0
- package/date-picker/panel/month/index.js +93 -129
- package/date-picker/panel/quarter/index.d.ts +17 -0
- package/date-picker/panel/quarter/index.js +79 -111
- package/date-picker/panel/range/index.d.ts +28 -0
- package/date-picker/panel/range/index.js +169 -270
- package/date-picker/panel/week/index.d.ts +16 -0
- package/date-picker/panel/week/index.js +34 -50
- package/date-picker/panel/year/index.d.ts +16 -0
- package/date-picker/panel/year/index.js +59 -87
- package/date-picker/utils.d.ts +11 -0
- package/date-picker/utils.js +75 -100
- package/descriptions/Descriptions.d.ts +4 -0
- package/descriptions/Descriptions.js +142 -0
- package/descriptions/index.d.ts +4 -0
- package/descriptions/index.js +7 -251
- package/descriptions/interface.d.ts +80 -0
- package/details/Details.d.ts +5 -0
- package/details/Details.js +83 -0
- package/details/index.d.ts +4 -0
- package/details/index.js +7 -121
- package/development/Development.js +29 -0
- package/development/index.d.ts +4 -0
- package/development/index.js +7 -36
- package/divider/Divider.d.ts +7 -0
- package/divider/Divider.js +51 -0
- package/divider/index.d.ts +8 -0
- package/divider/index.js +7 -78
- package/draggable/Draggable.d.ts +4 -0
- package/draggable/Draggable.js +33 -0
- package/draggable/Item.d.ts +3 -0
- package/draggable/Item.js +51 -67
- package/draggable/index.d.ts +8 -0
- package/draggable/index.js +8 -39
- package/draw/Draw.d.ts +4 -0
- package/draw/Draw.js +34 -45
- package/draw/constant.js +2 -1
- package/draw/index.d.ts +6 -0
- package/draw/index.js +7 -6
- package/drawer/Drawer.d.ts +5 -0
- package/drawer/Drawer.js +200 -269
- package/drawer/index.d.ts +3 -0
- package/drawer/index.js +7 -5
- package/drawer/interface.d.ts +175 -0
- package/dropdown/Button.d.ts +4 -0
- package/dropdown/Button.js +55 -89
- package/dropdown/Dropdown.d.ts +5 -0
- package/dropdown/Dropdown.js +93 -0
- package/dropdown/index.d.ts +8 -0
- package/dropdown/index.js +8 -130
- package/dropdown/interface.d.ts +100 -0
- package/empty/Empty.d.ts +4 -0
- package/empty/Empty.js +27 -0
- package/empty/index.d.ts +4 -0
- package/empty/index.js +7 -38
- package/empty/interface.d.ts +8 -0
- package/flex/Flex.d.ts +9 -0
- package/flex/Flex.js +39 -0
- package/flex/index.d.ts +8 -0
- package/flex/index.js +7 -51
- package/flex/interface.d.ts +9 -0
- package/form/Control.d.ts +51 -0
- package/form/Control.js +204 -229
- package/form/Form.d.ts +6 -0
- package/form/Form.js +146 -169
- package/form/FormControl.d.ts +50 -0
- package/form/FormControl.js +246 -0
- package/form/FormItem.d.ts +7 -0
- package/form/FormItem.js +169 -250
- package/form/FormItemTip.d.ts +3 -0
- package/form/FormItemTip.js +39 -45
- package/form/FormLabel.js +44 -74
- package/form/FormLabelSymbol.d.ts +3 -0
- package/form/FormLabelSymbol.js +19 -0
- package/form/FormList.d.ts +6 -0
- package/form/FormList.js +85 -100
- package/form/FormProvider.d.ts +5 -0
- package/form/FormProvider.js +28 -45
- package/form/constant.d.ts +2 -0
- package/form/constant.js +6 -0
- package/form/context.d.ts +15 -0
- package/form/context.js +61 -50
- package/form/hook/useForm.d.ts +5 -0
- package/form/hook/useForm.js +53 -57
- package/form/hook/useFormContext.d.ts +10 -0
- package/form/hook/useFormContext.js +33 -31
- package/form/hook/useFormState.d.ts +3 -0
- package/form/hook/useFormState.js +30 -29
- package/form/hook/useWatch.d.ts +3 -0
- package/form/hook/useWatch.js +33 -33
- package/form/index.d.ts +35 -0
- package/form/index.js +37 -43
- package/form/interface.d.ts +558 -0
- package/form/interface.js +16 -10
- package/form/promisify.js +14 -13
- package/form/store.d.ts +81 -0
- package/form/store.js +239 -264
- package/form/utils.d.ts +19 -0
- package/form/utils.js +73 -77
- package/global-provider/GlobalProvider.d.ts +7 -0
- package/global-provider/GlobalProvider.js +18 -0
- package/global-provider/context.d.ts +3 -0
- package/global-provider/context.js +7 -6
- package/global-provider/index.d.ts +11 -0
- package/global-provider/index.js +11 -20
- package/grid/Grid.js +55 -84
- package/grid/Item.d.ts +4 -0
- package/grid/Item.js +34 -59
- package/grid/context.js +7 -6
- package/grid/index.d.ts +25 -0
- package/grid/index.js +16 -17
- package/grid/interface.d.ts +114 -0
- package/grid/utils.d.ts +2 -0
- package/grid/utils.js +11 -13
- package/hooks/index.js +8 -120
- package/hooks/use-breakpoint/index.d.ts +3 -0
- package/hooks/use-breakpoint/index.js +18 -17
- package/hooks/use-computed-state/index.js +7 -6
- package/hooks/use-create/index.js +7 -6
- package/hooks/use-creation/index.js +7 -6
- package/hooks/use-event/index.js +7 -6
- package/hooks/use-event-listener/index.js +7 -6
- package/hooks/use-force-update/index.js +7 -6
- package/hooks/use-fullscreen/index.js +7 -6
- package/hooks/use-id/index.js +7 -6
- package/hooks/use-in-view/index.js +7 -6
- package/hooks/use-intersection-observer/index.js +7 -6
- package/hooks/use-intersection-observers/index.js +7 -6
- package/hooks/use-interval/index.js +7 -6
- package/hooks/use-is-first-render/index.js +7 -6
- package/hooks/use-isomorphic-layout-effect/index.js +7 -6
- package/hooks/use-keyboard-event/index.js +7 -6
- package/hooks/use-latest/index.js +7 -6
- package/hooks/use-listen-window-resize/index.js +7 -6
- package/hooks/use-media/index.js +7 -6
- package/hooks/use-merge-props/index.js +7 -6
- package/hooks/use-merge-value/index.js +7 -6
- package/hooks/use-move/index.js +7 -6
- package/hooks/use-mutation-observers/index.js +7 -6
- package/hooks/use-online-status/index.js +7 -6
- package/hooks/use-overflow-hidden/index.js +7 -6
- package/hooks/use-override-ref/index.js +7 -6
- package/hooks/use-persist-callback/index.js +7 -6
- package/hooks/use-prefers-color-scheme-dark/index.js +7 -6
- package/hooks/use-previous/index.js +7 -6
- package/hooks/use-refs/index.js +7 -7
- package/hooks/use-resize-observer/index.js +7 -6
- package/hooks/use-resize-observers/index.js +7 -6
- package/hooks/use-responsive-state/index.js +42 -52
- package/hooks/use-set-state/index.js +7 -6
- package/hooks/use-state-callback/index.js +7 -6
- package/hooks/use-state-with-promise/index.js +7 -6
- package/hooks/use-update-effect/index.js +7 -6
- package/hooks/use-update-layout-effect/index.js +7 -6
- package/hooks/use-verification-code/index.d.ts +3 -0
- package/hooks/use-verification-code/index.js +64 -69
- package/hooks/use-watch/index.js +7 -6
- package/hooks/use-watermark/index.d.ts +3 -0
- package/hooks/use-watermark/index.js +142 -157
- package/hooks/use-watermark/utils.js +9 -9
- package/hooks/use-window-size/index.js +7 -6
- package/hooks/useUnmountOnExit.js +13 -10
- package/icon/Icon.d.ts +5 -0
- package/icon/Icon.js +32 -41
- package/icon/addIconFromCdn.js +34 -27
- package/icon/index.d.ts +7 -0
- package/icon/index.js +13 -11
- package/icon-hover/IconHover.d.ts +5 -0
- package/icon-hover/IconHover.js +29 -0
- package/icon-hover/index.d.ts +6 -0
- package/icon-hover/index.js +7 -46
- package/icon-hover/interface.d.ts +8 -0
- package/icons/file/File.d.ts +4 -0
- package/icons/file/File.js +26 -0
- package/icons/file/index.d.ts +4 -0
- package/icons/file/index.js +7 -33
- package/icons/file/interface.d.ts +7 -0
- package/icons.js +7 -6
- package/image/Image.d.ts +12 -0
- package/image/Image.js +154 -199
- package/image/ImageFooter.d.ts +13 -0
- package/image/ImageFooter.js +57 -46
- package/image/ImagePreview.d.ts +7 -0
- package/image/ImagePreview.js +400 -481
- package/image/ImagePreviewArrow.js +30 -47
- package/image/ImagePreviewGroup.d.ts +11 -0
- package/image/ImagePreviewGroup.js +103 -126
- package/image/ImagePreviewToolbar.d.ts +14 -0
- package/image/ImagePreviewToolbar.js +60 -100
- package/image/TriggerForToolbar.d.ts +10 -0
- package/image/TriggerForToolbar.js +18 -10
- package/image/context.d.ts +24 -0
- package/image/context.js +18 -19
- package/image/index.d.ts +18 -0
- package/image/index.js +13 -11
- package/image/interface.d.ts +257 -0
- package/image/utils/getFixTranslate.js +8 -7
- package/image/utils/getScale.d.ts +12 -0
- package/image/utils/getScale.js +68 -70
- package/image/utils/hook/useImageStatus.js +17 -16
- package/image/utils/hook/useShowFooter.d.ts +8 -0
- package/image/utils/hook/useShowFooter.js +12 -7
- package/index.d.ts +194 -0
- package/index.js +918 -896
- package/input/Button.d.ts +5 -0
- package/input/Button.js +52 -86
- package/input/Group.d.ts +7 -0
- package/input/Group.js +20 -22
- package/input/Input.d.ts +5 -0
- package/input/Input.js +140 -218
- package/input/InputElement.d.ts +4 -0
- package/input/InputElement.js +183 -241
- package/input/Number.js +7 -5
- package/input/Password.d.ts +5 -0
- package/input/Password.js +57 -85
- package/input/Search.d.ts +5 -0
- package/input/Search.js +53 -81
- package/input/Tag.js +7 -5
- package/input/Textarea.d.ts +9 -0
- package/input/Textarea.js +166 -211
- package/input/autoSizeTextareaHeight.js +65 -72
- package/input/index.d.ts +23 -0
- package/input/index.js +23 -20
- package/input/interface.d.ts +318 -0
- package/input/useComposition.d.ts +18 -0
- package/input/useComposition.js +30 -39
- package/input/utils.js +9 -8
- package/input-number/InputNumber.d.ts +6 -0
- package/input-number/InputNumber.js +158 -0
- package/input-number/decimal.js +113 -140
- package/input-number/index.d.ts +4 -0
- package/input-number/index.js +7 -220
- package/input-number/interface.d.ts +128 -0
- package/input-number/useSelectionRange.js +24 -26
- package/input-number/utils.js +42 -53
- package/input-tag/InputTag.d.ts +7 -0
- package/input-tag/InputTag.js +280 -359
- package/input-tag/constant.d.ts +1 -0
- package/input-tag/constant.js +6 -0
- package/input-tag/hook/useComputeAutoWidthDelay.d.ts +3 -0
- package/input-tag/hook/useComputeAutoWidthDelay.js +12 -0
- package/input-tag/index.d.ts +4 -0
- package/input-tag/index.js +7 -5
- package/input-tag/interface.d.ts +187 -0
- package/layout/Content.d.ts +3 -0
- package/layout/Content.js +20 -14
- package/layout/Footer.d.ts +3 -0
- package/layout/Footer.js +20 -14
- package/layout/Header.d.ts +3 -0
- package/layout/Header.js +20 -14
- package/layout/Layout.d.ts +14 -0
- package/layout/Layout.js +36 -0
- package/layout/Sider.d.ts +8 -0
- package/layout/Sider.js +96 -130
- package/layout/context.js +8 -7
- package/layout/index.d.ts +25 -0
- package/layout/index.js +18 -56
- package/layout/interface.d.ts +123 -0
- package/link/Link.d.ts +6 -0
- package/link/Link.js +42 -0
- package/link/index.d.ts +6 -0
- package/link/index.js +7 -72
- package/liquid-fill/LiquidFill.js +168 -0
- package/liquid-fill/index.d.ts +4 -0
- package/liquid-fill/index.js +7 -222
- package/list/Item.d.ts +8 -0
- package/list/Item.js +49 -50
- package/list/List.d.ts +12 -0
- package/list/List.js +185 -0
- package/list/Meta.d.ts +4 -0
- package/list/Meta.js +32 -20
- package/list/index.js +8 -274
- package/list/interface.d.ts +189 -0
- package/loading/Loading.js +62 -0
- package/loading/index.d.ts +4 -0
- package/loading/index.js +7 -81
- package/locale/ar-EG.d.ts +4 -0
- package/locale/ar-EG.js +164 -169
- package/locale/de-DE.d.ts +4 -0
- package/locale/de-DE.js +164 -169
- package/locale/default.js +7 -5
- package/locale/en-US.js +183 -198
- package/locale/es-ES.d.ts +4 -0
- package/locale/es-ES.js +164 -169
- package/locale/fr-FR.d.ts +4 -0
- package/locale/fr-FR.js +164 -169
- package/locale/id-ID.d.ts +4 -0
- package/locale/id-ID.js +164 -169
- package/locale/it-IT.d.ts +4 -0
- package/locale/it-IT.js +164 -169
- package/locale/ja-JP.d.ts +4 -0
- package/locale/ja-JP.js +219 -226
- package/locale/ko-KR.d.ts +4 -0
- package/locale/ko-KR.js +164 -169
- package/locale/ms-MY.d.ts +4 -0
- package/locale/ms-MY.js +164 -169
- package/locale/pt-BR.d.ts +4 -0
- package/locale/pt-BR.js +164 -169
- package/locale/pt-PT.d.ts +4 -0
- package/locale/pt-PT.js +164 -169
- package/locale/ru-RU.d.ts +4 -0
- package/locale/ru-RU.js +164 -169
- package/locale/th-TH.d.ts +4 -0
- package/locale/th-TH.js +164 -169
- package/locale/tr-TR.d.ts +4 -0
- package/locale/tr-TR.js +164 -169
- package/locale/vi-VN.d.ts +4 -0
- package/locale/vi-VN.js +164 -169
- package/locale/zh-CN.d.ts +4 -0
- package/locale/zh-CN.js +228 -245
- package/locale/zh-HK.d.ts +4 -0
- package/locale/zh-HK.js +219 -227
- package/locale/zh-TW.d.ts +4 -0
- package/locale/zh-TW.js +219 -226
- package/marquee/Marquee.js +135 -0
- package/marquee/index.d.ts +4 -0
- package/marquee/index.js +7 -164
- package/marquee/interface.d.ts +96 -0
- package/mask/Mask.d.ts +5 -0
- package/mask/Mask.js +44 -76
- package/mask/index.d.ts +6 -0
- package/mask/index.js +7 -5
- package/masonry/Masonry.js +110 -211
- package/masonry/MasonryItem.js +36 -35
- package/masonry/hooks/useDelay.d.ts +2 -0
- package/masonry/hooks/useDelay.js +13 -12
- package/masonry/hooks/useGutter.d.ts +5 -0
- package/masonry/hooks/useGutter.js +26 -27
- package/masonry/hooks/usePositions.js +25 -24
- package/masonry/hooks/useRefs.js +7 -6
- package/masonry/index.d.ts +10 -0
- package/masonry/index.js +8 -5
- package/masonry/interface.d.ts +43 -0
- package/mentions/Mentions.d.ts +5 -0
- package/mentions/Mentions.js +123 -0
- package/mentions/index.d.ts +4 -0
- package/mentions/index.js +7 -160
- package/mentions/interface.d.ts +88 -0
- package/mentions/utils.d.ts +9 -0
- package/mentions/utils.js +21 -25
- package/menu/Indent.js +14 -17
- package/menu/Item.d.ts +6 -0
- package/menu/Item.js +75 -124
- package/menu/ItemGroup.d.ts +6 -0
- package/menu/ItemGroup.js +28 -39
- package/menu/Menu.d.ts +3 -0
- package/menu/Menu.js +120 -199
- package/menu/OverflowWrap.d.ts +9 -0
- package/menu/OverflowWrap.js +69 -90
- package/menu/context.d.ts +15 -0
- package/menu/context.js +7 -6
- package/menu/index.d.ts +9 -0
- package/menu/index.js +18 -16
- package/menu/interface.d.ts +222 -0
- package/menu/sub-menu/Inline.d.ts +5 -0
- package/menu/sub-menu/Inline.js +84 -113
- package/menu/sub-menu/Pop.d.ts +5 -0
- package/menu/sub-menu/Pop.js +84 -121
- package/menu/sub-menu/index.d.ts +5 -0
- package/menu/sub-menu/index.js +22 -18
- package/menu/utils.js +74 -80
- package/message/Message.d.ts +20 -0
- package/message/Message.js +127 -167
- package/message/index.js +8 -7
- package/message/useMessage.d.ts +5 -0
- package/message/useMessage.js +51 -113
- package/modal/Confirm.d.ts +15 -0
- package/modal/Confirm.js +102 -112
- package/modal/Modal.d.ts +19 -0
- package/modal/Modal.js +301 -400
- package/modal/config.d.ts +9 -0
- package/modal/config.js +16 -24
- package/modal/index.d.ts +6 -0
- package/modal/index.js +8 -7
- package/modal/interface.d.ts +191 -0
- package/modal/use-modal/Hook.d.ts +7 -0
- package/modal/use-modal/Hook.js +46 -52
- package/modal/use-modal/index.d.ts +4 -0
- package/modal/use-modal/index.js +61 -71
- package/notice/Notice.d.ts +4 -0
- package/notice/Notice.js +151 -171
- package/notice/index.d.ts +4 -0
- package/notice/index.js +7 -5
- package/notification/Notification.d.ts +22 -0
- package/notification/Notification.js +132 -161
- package/notification/index.js +7 -6
- package/notification/interface.d.ts +85 -0
- package/notification/useNotification.d.ts +5 -0
- package/notification/useNotification.js +42 -111
- package/notification/withNotification.js +46 -57
- package/overflow-ellipsis/OverflowEllipsis.d.ts +3 -0
- package/overflow-ellipsis/OverflowEllipsis.js +72 -0
- package/overflow-ellipsis/OverflowItem.js +22 -29
- package/overflow-ellipsis/index.d.ts +6 -0
- package/overflow-ellipsis/index.js +8 -80
- package/package.json +1 -1
- package/page-header/PageHeader.d.ts +6 -0
- package/page-header/PageHeader.js +108 -0
- package/page-header/index.d.ts +6 -0
- package/page-header/index.js +7 -163
- package/page-header/interface.d.ts +57 -0
- package/pagination/PageItem.d.ts +18 -0
- package/pagination/PageItem.js +71 -114
- package/pagination/PageJumper.d.ts +13 -0
- package/pagination/PageJumper.js +64 -58
- package/pagination/PageOption.d.ts +17 -0
- package/pagination/PageOption.js +59 -121
- package/pagination/Pagination.d.ts +11 -0
- package/pagination/Pagination.js +206 -249
- package/pagination/index.d.ts +5 -0
- package/pagination/index.js +6 -5
- package/pagination/interface.d.ts +179 -0
- package/pagination/interface.js +9 -5
- package/picker/Input.d.ts +3 -0
- package/picker/Input.js +92 -135
- package/picker/InputRange.d.ts +3 -0
- package/picker/InputRange.js +129 -167
- package/picker/index.d.ts +3 -0
- package/picker/index.js +8 -7
- package/picker/interface.d.ts +57 -0
- package/popconfirm/Popconfirm.d.ts +6 -0
- package/popconfirm/Popconfirm.js +121 -0
- package/popconfirm/index.d.ts +6 -0
- package/popconfirm/index.js +7 -132
- package/popconfirm/interface.d.ts +109 -0
- package/popover/Popover.d.ts +6 -0
- package/popover/Popover.js +52 -73
- package/popover/index.d.ts +5 -0
- package/popover/index.js +6 -4
- package/popover/interface.d.ts +19 -0
- package/portal/Portal.d.ts +3 -0
- package/portal/Portal.js +21 -27
- package/portal/index.d.ts +4 -0
- package/portal/index.js +7 -5
- package/progress/CircleProgress.d.ts +8 -0
- package/progress/CircleProgress.js +101 -116
- package/progress/LineProgess.js +72 -92
- package/progress/Progress.d.ts +4 -0
- package/progress/Progress.js +82 -0
- package/progress/StepProgress.js +50 -65
- package/progress/index.d.ts +19 -0
- package/progress/index.js +15 -117
- package/progress/interface.d.ts +85 -0
- package/qr-code/QRCode.d.ts +3 -0
- package/qr-code/QRCode.js +49 -77
- package/qr-code/index.d.ts +6 -0
- package/qr-code/index.js +8 -7
- package/qr-code/interface.d.ts +132 -0
- package/qr-code/src/index.d.ts +4 -0
- package/qr-code/src/index.js +195 -257
- package/qr-code/src/qrcodegen.d.ts +66 -0
- package/qr-code/src/qrcodegen.js +664 -669
- package/radio/Group.d.ts +8 -0
- package/radio/Group.js +81 -122
- package/radio/GroupBlock.d.ts +7 -0
- package/radio/GroupBlock.js +62 -117
- package/radio/Radio.d.ts +5 -0
- package/radio/Radio.js +74 -118
- package/radio/context.d.ts +2 -0
- package/radio/context.js +6 -0
- package/radio/index.d.ts +13 -0
- package/radio/index.js +15 -11
- package/radio/interface.d.ts +102 -0
- package/rate/Rate.d.ts +5 -0
- package/rate/Rate.js +98 -0
- package/rate/index.d.ts +4 -0
- package/rate/index.js +7 -135
- package/rate/interface.d.ts +66 -0
- package/resize-box/ResizeBox.d.ts +13 -0
- package/resize-box/ResizeBox.js +143 -0
- package/resize-box/ResizeTrigger.js +55 -71
- package/resize-box/Split.d.ts +4 -0
- package/resize-box/Split.js +95 -132
- package/resize-box/SplitGroup.d.ts +4 -0
- package/resize-box/SplitGroup.js +145 -197
- package/resize-box/index.d.ts +15 -0
- package/resize-box/index.js +12 -181
- package/result/403.js +720 -695
- package/result/404.js +508 -513
- package/result/500.js +176 -166
- package/result/Result.d.ts +6 -0
- package/result/Result.js +71 -0
- package/result/index.d.ts +6 -0
- package/result/index.js +7 -79
- package/rich-text/RichText.d.ts +8 -0
- package/rich-text/RichText.js +322 -454
- package/rich-text/Toolbar.js +555 -702
- package/rich-text/constant.d.ts +1 -0
- package/rich-text/constant.js +7 -6
- package/rich-text/index.d.ts +11 -0
- package/rich-text/index.js +19 -25
- package/rich-text/lib/blots/block.js +113 -127
- package/rich-text/lib/blots/break.js +19 -28
- package/rich-text/lib/blots/container.js +8 -15
- package/rich-text/lib/blots/cursor.js +95 -122
- package/rich-text/lib/blots/embed.js +46 -57
- package/rich-text/lib/blots/inline.js +49 -54
- package/rich-text/lib/blots/scroll.d.ts +43 -0
- package/rich-text/lib/blots/scroll.js +246 -277
- package/rich-text/lib/blots/text.js +15 -24
- package/rich-text/lib/core/composition.d.ts +9 -0
- package/rich-text/lib/core/composition.js +36 -40
- package/rich-text/lib/core/editor.js +241 -280
- package/rich-text/lib/core/emitter.js +46 -44
- package/rich-text/lib/core/logger.js +18 -17
- package/rich-text/lib/core/module.js +13 -13
- package/rich-text/lib/core/rich.d.ts +183 -0
- package/rich-text/lib/core/rich.js +359 -471
- package/rich-text/lib/core/selection.d.ts +71 -0
- package/rich-text/lib/core/selection.js +221 -278
- package/rich-text/lib/core/theme.js +31 -36
- package/rich-text/lib/core/utils/createRegistryWithFormats.js +28 -32
- package/rich-text/lib/core/utils/scrollRectIntoView.js +58 -68
- package/rich-text/lib/delta/AttributeMap.js +32 -39
- package/rich-text/lib/delta/Op.js +9 -8
- package/rich-text/lib/delta/OpIterator.js +44 -50
- package/rich-text/lib/delta/index.d.ts +53 -0
- package/rich-text/lib/delta/index.js +234 -314
- package/rich-text/lib/diff/index.js +266 -364
- package/rich-text/lib/formats/align.js +20 -28
- package/rich-text/lib/formats/background.js +11 -28
- package/rich-text/lib/formats/blockquote.js +15 -14
- package/rich-text/lib/formats/bold.js +23 -22
- package/rich-text/lib/formats/code.js +37 -51
- package/rich-text/lib/formats/color.js +16 -36
- package/rich-text/lib/formats/direction.js +15 -28
- package/rich-text/lib/formats/emoji.js +19 -18
- package/rich-text/lib/formats/font.js +51 -67
- package/rich-text/lib/formats/formula.js +33 -32
- package/rich-text/lib/formats/header.js +24 -25
- package/rich-text/lib/formats/hr.js +16 -21
- package/rich-text/lib/formats/image.js +45 -47
- package/rich-text/lib/formats/indent.js +38 -41
- package/rich-text/lib/formats/italic.js +15 -14
- package/rich-text/lib/formats/lineHeight.js +11 -21
- package/rich-text/lib/formats/link.js +46 -40
- package/rich-text/lib/formats/list.js +35 -42
- package/rich-text/lib/formats/script.js +21 -22
- package/rich-text/lib/formats/size.js +26 -32
- package/rich-text/lib/formats/strike.js +15 -14
- package/rich-text/lib/formats/table.js +133 -144
- package/rich-text/lib/formats/underline.js +13 -12
- package/rich-text/lib/formats/video.js +39 -42
- package/rich-text/lib/index.js +113 -121
- package/rich-text/lib/modules/clipboard.d.ts +44 -0
- package/rich-text/lib/modules/clipboard.js +281 -374
- package/rich-text/lib/modules/history.d.ts +38 -0
- package/rich-text/lib/modules/history.js +115 -113
- package/rich-text/lib/modules/image-resize/index.js +78 -81
- package/rich-text/lib/modules/image-resize/modules/Base.js +13 -43
- package/rich-text/lib/modules/image-resize/modules/DisplaySize.js +40 -49
- package/rich-text/lib/modules/image-resize/modules/Resize.js +61 -52
- package/rich-text/lib/modules/image-resize/options.js +10 -9
- package/rich-text/lib/modules/input.d.ts +8 -0
- package/rich-text/lib/modules/input.js +53 -61
- package/rich-text/lib/modules/keyboard.d.ts +60 -0
- package/rich-text/lib/modules/keyboard.js +415 -508
- package/rich-text/lib/modules/normalizeExternalHTML/index.js +10 -9
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/googleDocs.js +20 -17
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/msWord.js +37 -41
- package/rich-text/lib/modules/table.d.ts +22 -0
- package/rich-text/lib/modules/table.js +112 -102
- package/rich-text/lib/modules/toolbar.js +15 -13
- package/rich-text/lib/modules/uiNode.d.ts +11 -0
- package/rich-text/lib/modules/uiNode.js +51 -72
- package/rich-text/lib/modules/uploader.d.ts +17 -0
- package/rich-text/lib/modules/uploader.js +44 -46
- package/rich-text/lib/parchment/attributor/attributor.js +29 -31
- package/rich-text/lib/parchment/attributor/class.js +24 -23
- package/rich-text/lib/parchment/attributor/store.d.ts +14 -0
- package/rich-text/lib/parchment/attributor/store.js +43 -44
- package/rich-text/lib/parchment/attributor/style.js +23 -22
- package/rich-text/lib/parchment/blot/abstract/container.js +30 -28
- package/rich-text/lib/parchment/blot/abstract/leaf.js +24 -43
- package/rich-text/lib/parchment/blot/abstract/parent.js +154 -173
- package/rich-text/lib/parchment/blot/abstract/shadow.js +76 -81
- package/rich-text/lib/parchment/blot/block.js +70 -75
- package/rich-text/lib/parchment/blot/embed.js +17 -17
- package/rich-text/lib/parchment/blot/inline.js +72 -78
- package/rich-text/lib/parchment/blot/scroll.d.ts +35 -0
- package/rich-text/lib/parchment/blot/scroll.js +99 -103
- package/rich-text/lib/parchment/blot/text.js +55 -56
- package/rich-text/lib/parchment/collection/linked-list.js +85 -105
- package/rich-text/lib/parchment/error.js +9 -8
- package/rich-text/lib/parchment/index.js +36 -31
- package/rich-text/lib/parchment/registry.d.ts +18 -0
- package/rich-text/lib/parchment/registry.js +55 -57
- package/rich-text/lib/parchment/scope.js +8 -5
- package/row-col/Col-.js +63 -85
- package/row-col/Col.js +135 -142
- package/row-col/Row.js +57 -79
- package/row-col/context.js +7 -6
- package/row-col/index.d.ts +14 -0
- package/row-col/index.js +12 -13
- package/segmented/Segmented.js +210 -0
- package/segmented/index.d.ts +4 -0
- package/segmented/index.js +7 -272
- package/segmented/interface.d.ts +123 -0
- package/select/Option.d.ts +7 -0
- package/select/Option.js +69 -97
- package/select/OptionGroup.d.ts +7 -0
- package/select/OptionGroup.js +22 -22
- package/select/Select.d.ts +11 -0
- package/select/Select.js +400 -555
- package/select/index.d.ts +16 -0
- package/select/index.js +12 -9
- package/select/interface.d.ts +295 -0
- package/select/utils.d.ts +26 -0
- package/select/utils.js +93 -114
- package/select-view/Core.js +308 -411
- package/select-view/SelectView.js +60 -0
- package/select-view/index.d.ts +3 -0
- package/select-view/index.js +7 -75
- package/select-view/interface.d.ts +148 -0
- package/skeleton/Image.d.ts +3 -0
- package/skeleton/Image.js +17 -24
- package/skeleton/Skeleton.d.ts +7 -0
- package/skeleton/Skeleton.js +62 -0
- package/skeleton/Text.d.ts +4 -0
- package/skeleton/Text.js +23 -27
- package/skeleton/index.d.ts +11 -0
- package/skeleton/index.js +12 -60
- package/slider/Button.d.ts +21 -0
- package/slider/Button.js +120 -151
- package/slider/Dot.d.ts +17 -0
- package/slider/Dot.js +26 -43
- package/slider/Input.d.ts +16 -0
- package/slider/Input.js +56 -79
- package/slider/Mark.d.ts +16 -0
- package/slider/Mark.js +26 -28
- package/slider/Slider.d.ts +5 -0
- package/slider/Slider.js +247 -0
- package/slider/Tick.d.ts +14 -0
- package/slider/Tick.js +31 -41
- package/slider/hook/useInterval.d.ts +24 -0
- package/slider/hook/useInterval.js +92 -71
- package/slider/hook/useLegalValue.d.ts +16 -0
- package/slider/hook/useLegalValue.js +56 -65
- package/slider/index.js +18 -318
- package/slider/interface.d.ts +119 -0
- package/slider/utils.d.ts +11 -0
- package/slider/utils.js +50 -64
- package/space/Space.d.ts +5 -0
- package/space/Space.js +46 -0
- package/space/index.d.ts +8 -0
- package/space/index.js +7 -58
- package/space/interface.d.ts +10 -0
- package/speech-synthesis/SpeechSynthesis.d.ts +3 -0
- package/speech-synthesis/SpeechSynthesis.js +15 -0
- package/speech-synthesis/index.d.ts +4 -0
- package/speech-synthesis/index.js +7 -13
- package/speech-synthesis/interface.d.ts +7 -0
- package/spin/DotLoading.js +32 -25
- package/spin/Spin.d.ts +5 -0
- package/spin/Spin.js +78 -0
- package/spin/index.d.ts +7 -0
- package/spin/index.js +8 -113
- package/splitter/Panel.js +23 -40
- package/splitter/SplitBar.js +96 -157
- package/splitter/Splitter.js +86 -140
- package/splitter/hooks/useItems.js +23 -26
- package/splitter/hooks/useResizable.js +22 -17
- package/splitter/hooks/useResize.js +53 -69
- package/splitter/hooks/useSizes.js +56 -59
- package/splitter/index.d.ts +7 -0
- package/splitter/index.js +8 -9
- package/statistic/Statistic.d.ts +8 -0
- package/statistic/Statistic.js +108 -0
- package/statistic/index.d.ts +10 -0
- package/statistic/index.js +8 -124
- package/statistic/interface.js +8 -5
- package/steps/Step.d.ts +4 -0
- package/steps/Step.js +61 -68
- package/steps/Steps.d.ts +10 -0
- package/steps/Steps.js +62 -0
- package/steps/index.d.ts +12 -0
- package/steps/index.js +11 -97
- package/style.css +2 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +7 -0
- package/suspense-fallback-test/index.d.ts +2 -0
- package/suspense-fallback-test/index.js +7 -6
- package/suspense-fallback-test/interface.d.ts +2 -0
- package/switch/Switch.d.ts +11 -0
- package/switch/Switch.js +75 -0
- package/switch/index.d.ts +8 -0
- package/switch/index.js +7 -103
- package/switch/interface.d.ts +66 -0
- package/table/ColGroup.d.ts +13 -0
- package/table/ColGroup.js +46 -68
- package/table/Table.d.ts +10 -0
- package/table/Table.js +501 -661
- package/table/constant.d.ts +5 -0
- package/table/constant.js +35 -42
- package/table/context.js +7 -10
- package/table/hook/useColumns.d.ts +3 -0
- package/table/hook/useColumns.js +112 -140
- package/table/hook/useComponent.d.ts +31 -0
- package/table/hook/useComponent.js +25 -24
- package/table/hook/useExpand.d.ts +4 -0
- package/table/hook/useExpand.js +32 -44
- package/table/hook/useRowSelection.d.ts +13 -0
- package/table/hook/useRowSelection.js +71 -93
- package/table/hook/useSorter.d.ts +8 -0
- package/table/hook/useSorter.js +50 -57
- package/table/hook/useStickyClassNames.d.ts +3 -0
- package/table/hook/useStickyClassNames.js +23 -30
- package/table/hook/useStickyOffsets.d.ts +3 -0
- package/table/hook/useStickyOffsets.js +27 -28
- package/table/hook/useThResizable.js +35 -36
- package/table/index.js +40 -39
- package/table/interface.d.ts +729 -0
- package/table/summary/Cell.js +20 -10
- package/table/summary/Row.js +29 -24
- package/table/summary/context.d.ts +9 -0
- package/table/summary/context.js +7 -6
- package/table/summary/index.d.ts +11 -0
- package/table/summary/index.js +11 -12
- package/table/tbody/DataRecordRenderer.d.ts +11 -0
- package/table/tbody/DataRecordRenderer.js +58 -0
- package/table/tbody/Td.d.ts +4 -0
- package/table/tbody/Td.js +145 -213
- package/table/tbody/Tr.d.ts +9 -0
- package/table/tbody/Tr.js +153 -196
- package/table/tbody/index.d.ts +3 -0
- package/table/tbody/index.js +81 -177
- package/table/tfoot/index.d.ts +3 -0
- package/table/tfoot/index.js +26 -17
- package/table/th-resizable/index.js +49 -56
- package/table/thead/Column.d.ts +3 -0
- package/table/thead/Column.js +193 -261
- package/table/thead/index.d.ts +3 -0
- package/table/thead/index.js +91 -131
- package/table/utils.d.ts +16 -0
- package/table/utils.js +71 -107
- package/tabs/TabContent.d.ts +3 -0
- package/tabs/TabContent.js +36 -51
- package/tabs/TabPane.d.ts +4 -0
- package/tabs/TabPane.js +27 -33
- package/tabs/Tabs.d.ts +11 -0
- package/tabs/Tabs.js +137 -185
- package/tabs/context.js +7 -7
- package/tabs/hook/useDomSize.d.ts +12 -0
- package/tabs/hook/useDomSize.js +22 -17
- package/tabs/hook/useHeaderScroll.d.ts +12 -0
- package/tabs/hook/useHeaderScroll.js +73 -58
- package/tabs/index.d.ts +25 -0
- package/tabs/index.js +14 -14
- package/tabs/interface.d.ts +228 -0
- package/tabs/tab-header/DropdownIcon.js +65 -73
- package/tabs/tab-header/TabInk.js +58 -65
- package/tabs/tab-header/TabNavIcon.d.ts +17 -0
- package/tabs/tab-header/TabNavIcon.js +61 -66
- package/tabs/tab-header/TabTitle.js +59 -80
- package/tabs/tab-header/index.d.ts +4 -0
- package/tabs/tab-header/index.js +250 -320
- package/tabs/utils.js +20 -23
- package/tag/Tag.d.ts +4 -0
- package/tag/Tag.js +101 -0
- package/tag/index.d.ts +6 -0
- package/tag/index.js +8 -152
- package/tag/interface.d.ts +70 -0
- package/tag/utils.d.ts +1 -0
- package/tag/utils.js +19 -0
- package/time-picker/Picker.d.ts +3 -0
- package/time-picker/Picker.js +173 -231
- package/time-picker/TimeColumn.js +46 -59
- package/time-picker/TimePicker.d.ts +3 -0
- package/time-picker/TimePicker.js +160 -241
- package/time-picker/TimePickerRange.d.ts +3 -0
- package/time-picker/TimePickerRange.js +45 -59
- package/time-picker/context.d.ts +6 -0
- package/time-picker/context.js +6 -10
- package/time-picker/index.d.ts +10 -0
- package/time-picker/index.js +24 -25
- package/time-picker/interface.d.ts +264 -0
- package/time-picker/utils.js +29 -23
- package/timeline/Item.d.ts +8 -0
- package/timeline/Item.js +70 -92
- package/timeline/Timeline.d.ts +11 -0
- package/timeline/Timeline.js +54 -79
- package/timeline/index.d.ts +13 -0
- package/timeline/index.js +8 -7
- package/timer/Timer.js +28 -0
- package/timer/index.d.ts +2 -0
- package/timer/index.js +7 -39
- package/timer/interface.d.ts +6 -0
- package/tooltip/Tooltip.d.ts +6 -0
- package/tooltip/Tooltip.js +103 -133
- package/tooltip/index.d.ts +5 -0
- package/tooltip/index.js +7 -5
- package/tooltip/interface.d.ts +95 -0
- package/tour/Tour.js +211 -0
- package/tour/index.d.ts +4 -0
- package/tour/index.js +7 -287
- package/transfer/Item.d.ts +3 -0
- package/transfer/Item.js +76 -113
- package/transfer/List.d.ts +5 -0
- package/transfer/List.js +164 -213
- package/transfer/Transfer.d.ts +5 -0
- package/transfer/Transfer.js +139 -0
- package/transfer/index.d.ts +4 -0
- package/transfer/index.js +7 -192
- package/transfer/interface.d.ts +219 -0
- package/tree/Animation.d.ts +4 -0
- package/tree/Animation.js +103 -101
- package/tree/Context.d.ts +28 -0
- package/tree/Context2.js +7 -0
- package/tree/Node.d.ts +10 -0
- package/tree/Node.js +194 -208
- package/tree/NodeList.js +74 -83
- package/tree/Tree.d.ts +11 -0
- package/tree/Tree.js +425 -540
- package/tree/context.js +7 -6
- package/tree/index.js +20 -9
- package/tree/interface.d.ts +371 -0
- package/tree/utils.d.ts +15 -0
- package/tree/utils.js +62 -72
- package/tree-select/List.d.ts +11 -0
- package/tree-select/List.js +113 -122
- package/tree-select/TreeSelect.d.ts +13 -0
- package/tree-select/TreeSelect.js +213 -0
- package/tree-select/hook/useKeyCache.d.ts +6 -0
- package/tree-select/hook/useKeyCache.js +49 -55
- package/tree-select/hook/useStateValue.d.ts +19 -0
- package/tree-select/hook/useStateValue.js +69 -93
- package/tree-select/hook/useTreeData.d.ts +4 -0
- package/tree-select/hook/useTreeData.js +14 -13
- package/tree-select/index.d.ts +17 -0
- package/tree-select/index.js +14 -7
- package/tree-select/interface.d.ts +196 -0
- package/tree-select/interface.js +15 -13
- package/tree-select/utils.js +9 -8
- package/trigger/Trigger.d.ts +9 -0
- package/trigger/Trigger.js +494 -0
- package/trigger/getPopupStyle.d.ts +14 -0
- package/trigger/getPopupStyle.js +166 -213
- package/trigger/index.d.ts +6 -0
- package/trigger/index.js +8 -622
- package/trigger/interface.d.ts +258 -0
- package/trigger/utils.d.ts +1 -0
- package/trigger/utils.js +15 -0
- package/typography/Base.d.ts +8 -0
- package/typography/Base.js +139 -189
- package/typography/EditContent.d.ts +4 -0
- package/typography/EditContent.js +53 -58
- package/typography/Ellipsis.d.ts +6 -0
- package/typography/Ellipsis.js +140 -174
- package/typography/Operations.d.ts +4 -0
- package/typography/Operations.js +49 -76
- package/typography/Paragraph.d.ts +3 -0
- package/typography/Paragraph.js +21 -25
- package/typography/Text.js +16 -11
- package/typography/Title.d.ts +3 -0
- package/typography/Title.js +18 -12
- package/typography/Typography.d.ts +3 -0
- package/typography/Typography.js +22 -18
- package/typography/index.d.ts +23 -0
- package/typography/index.js +22 -16
- package/typography/interface.d.ts +277 -0
- package/typography/useCssEllipsis.d.ts +6 -0
- package/typography/useCssEllipsis.js +40 -37
- package/typography/useEllipsis.d.ts +21 -0
- package/typography/useEllipsis.js +148 -148
- package/upload/TriggerNode.d.ts +6 -0
- package/upload/TriggerNode.js +86 -114
- package/upload/Upload.d.ts +7 -0
- package/upload/Upload.js +157 -234
- package/upload/Uploader.d.ts +15 -0
- package/upload/Uploader.js +158 -208
- package/upload/constant.d.ts +4 -0
- package/upload/constant.js +10 -9
- package/upload/index.d.ts +26 -0
- package/upload/index.js +16 -9
- package/upload/interface.d.ts +336 -0
- package/upload/list/PictureItem.d.ts +8 -0
- package/upload/list/PictureItem.js +109 -117
- package/upload/list/TextItem.d.ts +8 -0
- package/upload/list/TextItem.js +114 -121
- package/upload/list/UploadProgress.d.ts +14 -0
- package/upload/list/UploadProgress.js +86 -90
- package/upload/list/index.d.ts +6 -0
- package/upload/list/index.js +70 -104
- package/upload/list/utils.d.ts +2 -0
- package/upload/list/utils.js +32 -18
- package/upload/request.d.ts +3 -0
- package/upload/request.js +33 -49
- package/upload/utils.d.ts +4 -0
- package/upload/utils.js +50 -59
- package/utils/callOrReturn.js +4 -6
- package/utils/callbackOriginRef.js +7 -7
- package/utils/caseName.js +7 -7
- package/utils/className.js +7 -8
- package/utils/constant.d.ts +4 -0
- package/utils/constant.js +20 -23
- package/utils/contextHolder.d.ts +10 -0
- package/utils/contextHolder.js +26 -28
- package/utils/copy.js +7 -8
- package/utils/date.js +4 -8
- package/utils/dayjs.js +125 -164
- package/utils/dom.js +4 -14
- package/utils/emitter.js +7 -12
- package/utils/fileRead.js +4 -6
- package/utils/fileToDataURL.js +4 -6
- package/utils/fillNBSP.js +7 -7
- package/utils/findRootElement.js +7 -7
- package/utils/findScrollParent.js +7 -6
- package/utils/getHighlightText.js +7 -7
- package/utils/getHotkeyHandler.d.ts +5 -0
- package/utils/getHotkeyHandler.js +7 -7
- package/utils/getStringLength.js +7 -7
- package/utils/include.js +7 -7
- package/utils/index.js +337 -332
- package/utils/intersectionObserver.js +7 -6
- package/utils/is.d.ts +1 -0
- package/utils/is.js +107 -97
- package/utils/keyboardCode.js +8 -30
- package/utils/lodash.js +5 -64
- package/utils/math.js +4 -10
- package/utils/mergeProps.js +7 -7
- package/utils/mergedToString.js +7 -7
- package/utils/mutationObserver.js +7 -6
- package/utils/names.d.ts +1023 -0
- package/utils/names.js +1030 -1035
- package/utils/omit.js +7 -7
- package/utils/pad.js +4 -6
- package/utils/pick.js +7 -8
- package/utils/pinyin.js +4 -6
- package/utils/react19Adapter.js +2 -1
- package/utils/ref.js +4 -11
- package/utils/resizeObserver.js +7 -6
- package/utils/responsiveObserve.js +64 -79
- package/utils/saveAs.js +7 -7
- package/utils/screenfull.js +7 -7
- package/utils/scrollIntoViewIfNeeded.js +7 -7
- package/utils/setCreateRoot.js +7 -7
- package/utils/setDarkTheme.js +18 -16
- package/utils/setPrimaryColor.js +12 -9
- package/utils/setTheme.js +11 -8
- package/utils/string.js +4 -6
- package/utils/style.js +4 -7
- package/utils/throttleByRaf.js +4 -6
- package/utils/throttleByRaf2.js +4 -6
- package/utils/toArray.js +7 -7
- package/utils/tree.js +4 -12
- package/utils/tween.js +4 -7
- package/utils/uuid.js +4 -7
- package/utils/validate.d.ts +2 -0
- package/utils/validate.js +4 -16
- package/utils/warning.js +4 -6
- package/verification-code/VerificationCode.d.ts +4 -0
- package/verification-code/VerificationCode.js +74 -105
- package/verification-code/index.d.ts +8 -0
- package/verification-code/index.js +8 -7
- package/verification-code/interface.d.ts +74 -0
- package/version/index.d.ts +5 -0
- package/version/index.js +30 -8
- package/virtual-list/Filler.js +36 -31
- package/virtual-list/VirtualList.js +296 -368
- package/virtual-list/constant.js +7 -7
- package/virtual-list/hook/useCacheChildrenNodes.d.ts +4 -0
- package/virtual-list/hook/useCacheChildrenNodes.js +11 -10
- package/virtual-list/hook/useComputeVirtualItemHeight.d.ts +3 -0
- package/virtual-list/hook/useComputeVirtualItemHeight.js +16 -18
- package/virtual-list/index.js +8 -5
- package/virtual-list/interface.d.ts +55 -0
- package/virtual-list/utils/algorithm.d.ts +23 -0
- package/virtual-list/utils/algorithm.js +32 -31
- package/virtual-list/utils/item.js +71 -91
- package/watermark/Watermark.d.ts +3 -0
- package/watermark/Watermark.js +57 -68
- package/watermark/index.d.ts +8 -0
- package/watermark/index.js +8 -7
- package/Affix.js +0 -5
- package/Alert.js +0 -5
- package/Anchor.js +0 -9
- package/App.js +0 -10
- package/AutoComplete.js +0 -7
- package/Avatar.js +0 -10
- package/BackTop.js +0 -5
- package/Badge.js +0 -9
- package/Breadcrumb.js +0 -9
- package/Button.js +0 -9
- package/Calendar.js +0 -21
- package/Card.js +0 -16
- package/Carousel.js +0 -18
- package/Cascader.js +0 -5
- package/Checkbox.js +0 -14
- package/Collapse.js +0 -9
- package/ColorPicker.js +0 -30
- package/Comment.js +0 -13
- package/ConfigProvider.js +0 -9
- package/Constant.js +0 -6
- package/Copy.js +0 -18
- package/Countdown.js +0 -16
- package/DatePicker.js +0 -23
- package/Descriptions.js +0 -66
- package/Details.js +0 -17
- package/Development.js +0 -11
- package/Divider.js +0 -12
- package/Draggable.js +0 -11
- package/Draw.js +0 -6
- package/Drawer.js +0 -5
- package/Dropdown.js +0 -21
- package/Empty.js +0 -11
- package/Flex.js +0 -13
- package/Form.js +0 -30
- package/GlobalProvider.js +0 -11
- package/Grid.js +0 -14
- package/Icon.js +0 -11
- package/IconHover.js +0 -11
- package/Image.js +0 -11
- package/Input.js +0 -20
- package/InputNumber.js +0 -25
- package/InputTag.js +0 -5
- package/Layout.js +0 -23
- package/Link.js +0 -13
- package/LiquidFill.js +0 -14
- package/List.js +0 -23
- package/Loading.js +0 -11
- package/Marquee.js +0 -214
- package/Mask.js +0 -5
- package/Masonry.js +0 -5
- package/Mentions.js +0 -17
- package/Menu.js +0 -16
- package/Message.js +0 -7
- package/Modal.js +0 -7
- package/Notice.js +0 -5
- package/Notification.js +0 -7
- package/OverflowEllipsis.js +0 -14
- package/PageHeader.js +0 -20
- package/Pagination.js +0 -7
- package/Picker.js +0 -7
- package/Popconfirm.js +0 -16
- package/Popover.js +0 -5
- package/Portal.js +0 -5
- package/Progress.js +0 -20
- package/QrCode.js +0 -7
- package/Radio.js +0 -11
- package/Rate.js +0 -20
- package/ResizeBox.js +0 -20
- package/Result.js +0 -18
- package/RichText.js +0 -25
- package/RowCol.js +0 -11
- package/Segmented.js +0 -14
- package/Select.js +0 -9
- package/SelectView.js +0 -12
- package/Skeleton.js +0 -15
- package/Slider.js +0 -26
- package/Space.js +0 -13
- package/SpeechSynthesis.js +0 -10
- package/Spin.js +0 -18
- package/Splitter.js +0 -8
- package/Statistic.js +0 -19
- package/Steps.js +0 -16
- package/SuspenseFallbackTest.js +0 -5
- package/Switch.js +0 -16
- package/Table.js +0 -38
- package/Tabs.js +0 -15
- package/Tag.js +0 -19
- package/TimePicker.js +0 -13
- package/Timeline.js +0 -7
- package/Timer.js +0 -12
- package/Tooltip.js +0 -5
- package/Tour.js +0 -23
- package/Transfer.js +0 -19
- package/Tree.js +0 -9
- package/TreeSelect.js +0 -7
- package/Trigger.js +0 -24
- package/Typography.js +0 -14
- package/Upload.js +0 -9
- package/VerificationCode.js +0 -7
- package/VirtualList.js +0 -5
- package/Watermark.js +0 -7
- package/calendar/Lunar.js +0 -71
- package/hooks/useBreakpoint.js +0 -8
- package/hooks/useComputedState.js +0 -5
- package/hooks/useCreate.js +0 -5
- package/hooks/useCreation.js +0 -5
- package/hooks/useEvent.js +0 -5
- package/hooks/useEventListener.js +0 -5
- package/hooks/useForceUpdate.js +0 -5
- package/hooks/useFullscreen.js +0 -5
- package/hooks/useId.js +0 -5
- package/hooks/useInView.js +0 -5
- package/hooks/useIntersectionObserver.js +0 -5
- package/hooks/useIntersectionObservers.js +0 -5
- package/hooks/useInterval.js +0 -5
- package/hooks/useIsFirstRender.js +0 -5
- package/hooks/useIsomorphicLayoutEffect.js +0 -5
- package/hooks/useKeyboardEvent.js +0 -5
- package/hooks/useLatest.js +0 -5
- package/hooks/useListenWindowResize.js +0 -5
- package/hooks/useMedia.js +0 -5
- package/hooks/useMergeProps.js +0 -5
- package/hooks/useMergeValue.js +0 -5
- package/hooks/useMove.js +0 -5
- package/hooks/useMutationObservers.js +0 -5
- package/hooks/useOnlineStatus.js +0 -5
- package/hooks/useOverflowHidden.js +0 -5
- package/hooks/useOverrideRef.js +0 -5
- package/hooks/usePersistCallback.js +0 -5
- package/hooks/usePrefersColorSchemeDark.js +0 -5
- package/hooks/usePrevious.js +0 -5
- package/hooks/useRefs.js +0 -6
- package/hooks/useResizeObserver.js +0 -5
- package/hooks/useResizeObservers.js +0 -5
- package/hooks/useResponsiveState.js +0 -11
- package/hooks/useSetState.js +0 -5
- package/hooks/useStateCallback.js +0 -5
- package/hooks/useStateWithPromise.js +0 -5
- package/hooks/useUpdateEffect.js +0 -5
- package/hooks/useUpdateLayoutEffect.js +0 -5
- package/hooks/useVerificationCode.js +0 -10
- package/hooks/useWatch.js +0 -5
- package/hooks/useWatermark.js +0 -11
- package/hooks/useWindowSize.js +0 -5
- package/icons/file.js +0 -11
- package/tree-select/Select.js +0 -262
- package/types/affix/Affix.d.ts +0 -10
- package/types/affix/index.d.ts +0 -3
- package/types/alert/Alert.d.ts +0 -5
- package/types/alert/index.d.ts +0 -3
- package/types/anchor/Anchor.d.ts +0 -12
- package/types/anchor/Link.d.ts +0 -6
- package/types/anchor/context.d.ts +0 -3
- package/types/anchor/index.d.ts +0 -4
- package/types/anchor/utils.d.ts +0 -5
- package/types/app/context.d.ts +0 -4
- package/types/app/useApp.d.ts +0 -3
- package/types/auto-complete/AutoComplete.d.ts +0 -17
- package/types/auto-complete/index.d.ts +0 -4
- package/types/auto-complete/interface.d.ts +0 -122
- package/types/avatar/Avatar.d.ts +0 -8
- package/types/avatar/Group.d.ts +0 -6
- package/types/avatar/context.d.ts +0 -3
- package/types/avatar/index.d.ts +0 -9
- package/types/avatar/interface.d.ts +0 -91
- package/types/back-top/BackTop.d.ts +0 -6
- package/types/back-top/index.d.ts +0 -3
- package/types/badge/Badge.d.ts +0 -11
- package/types/badge/index.d.ts +0 -4
- package/types/breadcrumb/Breadcrumb.d.ts +0 -10
- package/types/breadcrumb/Item.d.ts +0 -8
- package/types/breadcrumb/context.d.ts +0 -4
- package/types/breadcrumb/index.d.ts +0 -6
- package/types/breadcrumb/interface.d.ts +0 -79
- package/types/button/Button.d.ts +0 -19
- package/types/button/Group.d.ts +0 -5
- package/types/button/index.d.ts +0 -4
- package/types/button/interface.d.ts +0 -114
- package/types/calendar/Lunar.d.ts +0 -17
- package/types/calendar/Month.d.ts +0 -15
- package/types/calendar/Year.d.ts +0 -13
- package/types/calendar/index.d.ts +0 -7
- package/types/card/Grid.d.ts +0 -5
- package/types/card/Meta.d.ts +0 -5
- package/types/card/index.d.ts +0 -12
- package/types/carousel/Arrow.d.ts +0 -4
- package/types/carousel/Indicator.d.ts +0 -4
- package/types/carousel/index.d.ts +0 -5
- package/types/cascader/Cascader.d.ts +0 -17
- package/types/cascader/base/node.d.ts +0 -78
- package/types/cascader/base/store.d.ts +0 -44
- package/types/cascader/index.d.ts +0 -5
- package/types/cascader/interface.d.ts +0 -297
- package/types/cascader/panel/List.d.ts +0 -4
- package/types/cascader/panel/Option.d.ts +0 -23
- package/types/cascader/panel/Search.d.ts +0 -28
- package/types/cascader/utils.d.ts +0 -23
- package/types/checkbox/Checkbox.d.ts +0 -18
- package/types/checkbox/Group.d.ts +0 -9
- package/types/checkbox/GroupBlock.d.ts +0 -8
- package/types/checkbox/index.d.ts +0 -5
- package/types/checkbox/interface.d.ts +0 -102
- package/types/collapse/Collapse.d.ts +0 -13
- package/types/collapse/Item.d.ts +0 -8
- package/types/collapse/context.d.ts +0 -5
- package/types/collapse/index.d.ts +0 -5
- package/types/color-picker/ControlBar.d.ts +0 -18
- package/types/color-picker/InputAlpha.d.ts +0 -7
- package/types/color-picker/InputHex.d.ts +0 -11
- package/types/color-picker/InputRgb.d.ts +0 -10
- package/types/color-picker/Mode.d.ts +0 -7
- package/types/color-picker/Palette.d.ts +0 -7
- package/types/color-picker/Panel.d.ts +0 -30
- package/types/color-picker/colors.d.ts +0 -2
- package/types/color-picker/hooks/useColorPicker.d.ts +0 -39
- package/types/color-picker/hooks/useControlBlock.d.ts +0 -18
- package/types/color-picker/index.d.ts +0 -12
- package/types/color-picker/interface.d.ts +0 -148
- package/types/color-picker/utils.d.ts +0 -28
- package/types/comment/index.d.ts +0 -6
- package/types/config-provider/ConfigProvider.d.ts +0 -11
- package/types/config-provider/context.d.ts +0 -5
- package/types/config-provider/index.d.ts +0 -4
- package/types/config-provider/interface.d.ts +0 -273
- package/types/constant/index.d.ts +0 -2
- package/types/copy/index.d.ts +0 -7
- package/types/countdown/index.d.ts +0 -4
- package/types/date-picker/DatePickerRange.d.ts +0 -3
- package/types/date-picker/Picker.d.ts +0 -4
- package/types/date-picker/context.d.ts +0 -6
- package/types/date-picker/index.d.ts +0 -11
- package/types/date-picker/interface.d.ts +0 -530
- package/types/date-picker/panel/Body.d.ts +0 -30
- package/types/date-picker/panel/Header.d.ts +0 -22
- package/types/date-picker/panel/Shortcut.d.ts +0 -3
- package/types/date-picker/panel/month/index.d.ts +0 -17
- package/types/date-picker/panel/quarter/index.d.ts +0 -17
- package/types/date-picker/panel/range/index.d.ts +0 -28
- package/types/date-picker/panel/week/index.d.ts +0 -16
- package/types/date-picker/panel/year/index.d.ts +0 -16
- package/types/date-picker/utils.d.ts +0 -11
- package/types/descriptions/index.d.ts +0 -4
- package/types/descriptions/interface.d.ts +0 -80
- package/types/details/index.d.ts +0 -5
- package/types/divider/index.d.ts +0 -10
- package/types/draggable/Item.d.ts +0 -3
- package/types/draggable/index.d.ts +0 -4
- package/types/draw/Draw.d.ts +0 -6
- package/types/draw/index.d.ts +0 -4
- package/types/drawer/Drawer.d.ts +0 -5
- package/types/drawer/index.d.ts +0 -3
- package/types/drawer/interface.d.ts +0 -175
- package/types/dropdown/Button.d.ts +0 -4
- package/types/dropdown/index.d.ts +0 -10
- package/types/dropdown/interface.d.ts +0 -100
- package/types/empty/index.d.ts +0 -4
- package/types/empty/interface.d.ts +0 -8
- package/types/flex/index.d.ts +0 -11
- package/types/flex/interface.d.ts +0 -9
- package/types/form/Control.d.ts +0 -65
- package/types/form/Form.d.ts +0 -6
- package/types/form/FormItem.d.ts +0 -7
- package/types/form/FormItemTip.d.ts +0 -3
- package/types/form/FormList.d.ts +0 -6
- package/types/form/FormProvider.d.ts +0 -5
- package/types/form/context.d.ts +0 -15
- package/types/form/hook/useForm.d.ts +0 -5
- package/types/form/hook/useFormContext.d.ts +0 -10
- package/types/form/hook/useFormState.d.ts +0 -3
- package/types/form/hook/useWatch.d.ts +0 -3
- package/types/form/index.d.ts +0 -32
- package/types/form/interface.d.ts +0 -552
- package/types/form/store.d.ts +0 -99
- package/types/form/utils.d.ts +0 -17
- package/types/global-provider/context.d.ts +0 -3
- package/types/global-provider/index.d.ts +0 -11
- package/types/grid/Item.d.ts +0 -4
- package/types/grid/index.d.ts +0 -11
- package/types/grid/interface.d.ts +0 -114
- package/types/grid/utils.d.ts +0 -2
- package/types/hooks/use-breakpoint/index.d.ts +0 -3
- package/types/hooks/use-verification-code/index.d.ts +0 -3
- package/types/hooks/use-watermark/index.d.ts +0 -3
- package/types/icon/Icon.d.ts +0 -8
- package/types/icon/index.d.ts +0 -2
- package/types/icon-hover/index.d.ts +0 -6
- package/types/icon-hover/interface.d.ts +0 -8
- package/types/icons/file/index.d.ts +0 -4
- package/types/icons/file/interface.d.ts +0 -7
- package/types/image/Image.d.ts +0 -14
- package/types/image/ImageFooter.d.ts +0 -13
- package/types/image/ImagePreview.d.ts +0 -7
- package/types/image/ImagePreviewGroup.d.ts +0 -11
- package/types/image/ImagePreviewToolbar.d.ts +0 -14
- package/types/image/TriggerForToolbar.d.ts +0 -10
- package/types/image/context.d.ts +0 -24
- package/types/image/index.d.ts +0 -4
- package/types/image/interface.d.ts +0 -257
- package/types/image/utils/getScale.d.ts +0 -13
- package/types/image/utils/hook/useShowFooter.d.ts +0 -8
- package/types/index.d.ts +0 -193
- package/types/input/Button.d.ts +0 -5
- package/types/input/Group.d.ts +0 -7
- package/types/input/Input.d.ts +0 -25
- package/types/input/InputElement.d.ts +0 -4
- package/types/input/Password.d.ts +0 -5
- package/types/input/Search.d.ts +0 -5
- package/types/input/Textarea.d.ts +0 -9
- package/types/input/index.d.ts +0 -8
- package/types/input/interface.d.ts +0 -318
- package/types/input/useComposition.d.ts +0 -18
- package/types/input-number/index.d.ts +0 -6
- package/types/input-number/interface.d.ts +0 -128
- package/types/input-tag/InputTag.d.ts +0 -7
- package/types/input-tag/index.d.ts +0 -3
- package/types/input-tag/interface.d.ts +0 -187
- package/types/layout/Content.d.ts +0 -3
- package/types/layout/Footer.d.ts +0 -3
- package/types/layout/Header.d.ts +0 -3
- package/types/layout/Sider.d.ts +0 -8
- package/types/layout/index.d.ts +0 -16
- package/types/layout/interface.d.ts +0 -123
- package/types/link/index.d.ts +0 -6
- package/types/list/Item.d.ts +0 -8
- package/types/list/Meta.d.ts +0 -4
- package/types/list/index.d.ts +0 -13
- package/types/list/interface.d.ts +0 -189
- package/types/locale/ar-EG.d.ts +0 -4
- package/types/locale/de-DE.d.ts +0 -4
- package/types/locale/es-ES.d.ts +0 -4
- package/types/locale/fr-FR.d.ts +0 -4
- package/types/locale/id-ID.d.ts +0 -4
- package/types/locale/it-IT.d.ts +0 -4
- package/types/locale/ja-JP.d.ts +0 -4
- package/types/locale/ko-KR.d.ts +0 -4
- package/types/locale/ms-MY.d.ts +0 -4
- package/types/locale/pt-BR.d.ts +0 -4
- package/types/locale/pt-PT.d.ts +0 -4
- package/types/locale/ru-RU.d.ts +0 -4
- package/types/locale/th-TH.d.ts +0 -4
- package/types/locale/tr-TR.d.ts +0 -4
- package/types/locale/vi-VN.d.ts +0 -4
- package/types/locale/zh-CN.d.ts +0 -4
- package/types/locale/zh-HK.d.ts +0 -4
- package/types/locale/zh-TW.d.ts +0 -4
- package/types/marquee/interface.d.ts +0 -95
- package/types/marquee-/index.d.ts +0 -8
- package/types/marquee-/interface.d.ts +0 -56
- package/types/mask/Mask.d.ts +0 -5
- package/types/mask/index.d.ts +0 -2
- package/types/masonry/hooks/useDelay.d.ts +0 -2
- package/types/masonry/hooks/useGutter.d.ts +0 -5
- package/types/masonry/index.d.ts +0 -2
- package/types/masonry/interface.d.ts +0 -43
- package/types/mentions/index.d.ts +0 -5
- package/types/mentions/interface.d.ts +0 -88
- package/types/mentions/utils.d.ts +0 -9
- package/types/menu/Item.d.ts +0 -6
- package/types/menu/ItemGroup.d.ts +0 -6
- package/types/menu/Menu.d.ts +0 -16
- package/types/menu/OverflowWrap.d.ts +0 -9
- package/types/menu/context.d.ts +0 -15
- package/types/menu/index.d.ts +0 -4
- package/types/menu/interface.d.ts +0 -222
- package/types/menu/sub-menu/Inline.d.ts +0 -5
- package/types/menu/sub-menu/Pop.d.ts +0 -5
- package/types/menu/sub-menu/index.d.ts +0 -6
- package/types/message/Message.d.ts +0 -20
- package/types/message/index.d.ts +0 -6
- package/types/message/useMessage.d.ts +0 -5
- package/types/modal/Confirm.d.ts +0 -15
- package/types/modal/Modal.d.ts +0 -20
- package/types/modal/config.d.ts +0 -9
- package/types/modal/index.d.ts +0 -4
- package/types/modal/interface.d.ts +0 -191
- package/types/modal/use-modal/Hook.d.ts +0 -7
- package/types/modal/use-modal/index.d.ts +0 -4
- package/types/notice/Notice.d.ts +0 -4
- package/types/notice/index.d.ts +0 -2
- package/types/notification/Notification.d.ts +0 -22
- package/types/notification/index.d.ts +0 -6
- package/types/notification/interface.d.ts +0 -84
- package/types/notification/useNotification.d.ts +0 -5
- package/types/overflow-ellipsis/index.d.ts +0 -5
- package/types/page-header/index.d.ts +0 -7
- package/types/page-header/interface.d.ts +0 -57
- package/types/pagination/PageItem.d.ts +0 -18
- package/types/pagination/PageJumper.d.ts +0 -13
- package/types/pagination/PageOption.d.ts +0 -17
- package/types/pagination/Pagination.d.ts +0 -11
- package/types/pagination/index.d.ts +0 -5
- package/types/pagination/interface.d.ts +0 -179
- package/types/picker/Input.d.ts +0 -3
- package/types/picker/InputRange.d.ts +0 -3
- package/types/picker/index.d.ts +0 -3
- package/types/picker/interface.d.ts +0 -57
- package/types/popconfirm/index.d.ts +0 -6
- package/types/popconfirm/interface.d.ts +0 -108
- package/types/popover/Popover.d.ts +0 -6
- package/types/popover/index.d.ts +0 -3
- package/types/popover/interface.d.ts +0 -19
- package/types/portal/Portal.d.ts +0 -4
- package/types/portal/index.d.ts +0 -4
- package/types/progress/CircleProgress.d.ts +0 -8
- package/types/progress/index.d.ts +0 -41
- package/types/progress/interface.d.ts +0 -85
- package/types/qr-code/QRCode.d.ts +0 -5
- package/types/qr-code/examples/demo.d.ts +0 -1
- package/types/qr-code/examples/download.d.ts +0 -2
- package/types/qr-code/examples/full.d.ts +0 -2
- package/types/qr-code/examples/image.d.ts +0 -2
- package/types/qr-code/index.d.ts +0 -4
- package/types/qr-code/interface.d.ts +0 -132
- package/types/qr-code/src/index.d.ts +0 -5
- package/types/qr-code/src/qrcodegen.d.ts +0 -95
- package/types/qr-code/src/qrcodegen2.d.ts +0 -325
- package/types/radio/Group.d.ts +0 -10
- package/types/radio/GroupBlock.d.ts +0 -7
- package/types/radio/Radio.d.ts +0 -14
- package/types/radio/index.d.ts +0 -6
- package/types/radio/interface.d.ts +0 -102
- package/types/rate/index.d.ts +0 -5
- package/types/rate/interface.d.ts +0 -66
- package/types/resize-box/Split.d.ts +0 -4
- package/types/resize-box/SplitGroup.d.ts +0 -4
- package/types/resize-box/index.d.ts +0 -14
- package/types/result/index.d.ts +0 -6
- package/types/rich-text/RichText.d.ts +0 -8
- package/types/rich-text/constant.d.ts +0 -1
- package/types/rich-text/index.d.ts +0 -6
- package/types/rich-text/lib/blots/scroll.d.ts +0 -44
- package/types/rich-text/lib/core/composition.d.ts +0 -16
- package/types/rich-text/lib/core/rich.d.ts +0 -185
- package/types/rich-text/lib/core/selection.d.ts +0 -74
- package/types/rich-text/lib/delta/index.d.ts +0 -54
- package/types/rich-text/lib/modules/clipboard.d.ts +0 -47
- package/types/rich-text/lib/modules/history.d.ts +0 -39
- package/types/rich-text/lib/modules/input.d.ts +0 -13
- package/types/rich-text/lib/modules/keyboard.d.ts +0 -60
- package/types/rich-text/lib/modules/table.d.ts +0 -22
- package/types/rich-text/lib/modules/uiNode.d.ts +0 -22
- package/types/rich-text/lib/modules/uploader.d.ts +0 -17
- package/types/rich-text/lib/parchment/attributor/store.d.ts +0 -15
- package/types/rich-text/lib/parchment/blot/scroll.d.ts +0 -34
- package/types/rich-text/lib/parchment/registry.d.ts +0 -21
- package/types/row-col/index.d.ts +0 -8
- package/types/segmented/interface.d.ts +0 -123
- package/types/select/Option.d.ts +0 -7
- package/types/select/OptionGroup.d.ts +0 -7
- package/types/select/Select.d.ts +0 -12
- package/types/select/index.d.ts +0 -4
- package/types/select/interface.d.ts +0 -295
- package/types/select/utils.d.ts +0 -25
- package/types/select-view/interface.d.ts +0 -148
- package/types/skeleton/Image.d.ts +0 -3
- package/types/skeleton/Text.d.ts +0 -4
- package/types/skeleton/index.d.ts +0 -7
- package/types/slider/Button.d.ts +0 -21
- package/types/slider/Dot.d.ts +0 -17
- package/types/slider/Input.d.ts +0 -16
- package/types/slider/Mark.d.ts +0 -16
- package/types/slider/Tick.d.ts +0 -14
- package/types/slider/hook/useInterval.d.ts +0 -24
- package/types/slider/hook/useLegalValue.d.ts +0 -16
- package/types/slider/index.d.ts +0 -5
- package/types/slider/interface.d.ts +0 -119
- package/types/slider/utils.d.ts +0 -11
- package/types/space/index.d.ts +0 -7
- package/types/space/interface.d.ts +0 -10
- package/types/speech-synthesis/index.d.ts +0 -3
- package/types/speech-synthesis/interface.d.ts +0 -7
- package/types/speech-synthesis/style/index.d.ts +0 -1
- package/types/spin/index.d.ts +0 -5
- package/types/splitter/index.d.ts +0 -9
- package/types/statistic/index.d.ts +0 -9
- package/types/steps/Step.d.ts +0 -4
- package/types/steps/index.d.ts +0 -11
- package/types/suspense-fallback-test/interface.d.ts +0 -2
- package/types/switch/index.d.ts +0 -11
- package/types/switch/interface.d.ts +0 -66
- package/types/table/ColGroup.d.ts +0 -13
- package/types/table/Table.d.ts +0 -10
- package/types/table/constant.d.ts +0 -4
- package/types/table/hook/useColumns.d.ts +0 -3
- package/types/table/hook/useComponent.d.ts +0 -31
- package/types/table/hook/useExpand.d.ts +0 -4
- package/types/table/hook/useRowSelection.d.ts +0 -13
- package/types/table/hook/useSorter.d.ts +0 -8
- package/types/table/hook/useStickyClassNames.d.ts +0 -3
- package/types/table/hook/useStickyOffsets.d.ts +0 -3
- package/types/table/index.d.ts +0 -19
- package/types/table/interface.d.ts +0 -729
- package/types/table/summary/context.d.ts +0 -9
- package/types/table/summary/index.d.ts +0 -11
- package/types/table/tbody/Td.d.ts +0 -5
- package/types/table/tbody/Tr.d.ts +0 -9
- package/types/table/tbody/index.d.ts +0 -4
- package/types/table/tfoot/index.d.ts +0 -3
- package/types/table/thead/Column.d.ts +0 -3
- package/types/table/thead/index.d.ts +0 -3
- package/types/table/utils.d.ts +0 -17
- package/types/tabs/TabContent.d.ts +0 -3
- package/types/tabs/TabPane.d.ts +0 -5
- package/types/tabs/Tabs.d.ts +0 -13
- package/types/tabs/hook/useDomSize.d.ts +0 -12
- package/types/tabs/hook/useHeaderScroll.d.ts +0 -10
- package/types/tabs/index.d.ts +0 -7
- package/types/tabs/interface.d.ts +0 -228
- package/types/tabs/tab-header/TabNavIcon.d.ts +0 -17
- package/types/tabs/tab-header/index.d.ts +0 -4
- package/types/tag/index.d.ts +0 -6
- package/types/tag/interface.d.ts +0 -70
- package/types/time-picker/Picker.d.ts +0 -3
- package/types/time-picker/TimePicker.d.ts +0 -3
- package/types/time-picker/TimePickerRange.d.ts +0 -3
- package/types/time-picker/context.d.ts +0 -6
- package/types/time-picker/index.d.ts +0 -10
- package/types/time-picker/interface.d.ts +0 -264
- package/types/timeline/Item.d.ts +0 -8
- package/types/timeline/Timeline.d.ts +0 -12
- package/types/timeline/index.d.ts +0 -4
- package/types/timer/interface.d.ts +0 -6
- package/types/tooltip/Tooltip.d.ts +0 -6
- package/types/tooltip/index.d.ts +0 -3
- package/types/tooltip/interface.d.ts +0 -94
- package/types/transfer/Item.d.ts +0 -3
- package/types/transfer/List.d.ts +0 -5
- package/types/transfer/index.d.ts +0 -5
- package/types/transfer/interface.d.ts +0 -219
- package/types/tree/Animation.d.ts +0 -4
- package/types/tree/Context.d.ts +0 -28
- package/types/tree/Node.d.ts +0 -10
- package/types/tree/Tree.d.ts +0 -19
- package/types/tree/index.d.ts +0 -2
- package/types/tree/interface.d.ts +0 -371
- package/types/tree/utils.d.ts +0 -12
- package/types/tree-select/List.d.ts +0 -11
- package/types/tree-select/Select.d.ts +0 -14
- package/types/tree-select/hook/useKeyCache.d.ts +0 -6
- package/types/tree-select/hook/useStateValue.d.ts +0 -19
- package/types/tree-select/hook/useTreeData.d.ts +0 -4
- package/types/tree-select/index.d.ts +0 -4
- package/types/tree-select/interface.d.ts +0 -196
- package/types/trigger/getPopupStyle.d.ts +0 -14
- package/types/trigger/index.d.ts +0 -10
- package/types/trigger/interface.d.ts +0 -257
- package/types/typography/Base.d.ts +0 -8
- package/types/typography/EditContent.d.ts +0 -4
- package/types/typography/Ellipsis.d.ts +0 -6
- package/types/typography/Operations.d.ts +0 -4
- package/types/typography/Paragraph.d.ts +0 -3
- package/types/typography/Title.d.ts +0 -3
- package/types/typography/Typography.d.ts +0 -3
- package/types/typography/index.d.ts +0 -14
- package/types/typography/interface.d.ts +0 -277
- package/types/typography/useCssEllipsis.d.ts +0 -6
- package/types/typography/useEllipsis.d.ts +0 -21
- package/types/upload/TriggerNode.d.ts +0 -6
- package/types/upload/Upload.d.ts +0 -9
- package/types/upload/Uploader.d.ts +0 -15
- package/types/upload/constant.d.ts +0 -4
- package/types/upload/index.d.ts +0 -6
- package/types/upload/interface.d.ts +0 -336
- package/types/upload/list/PictureItem.d.ts +0 -8
- package/types/upload/list/TextItem.d.ts +0 -8
- package/types/upload/list/UploadProgress.d.ts +0 -14
- package/types/upload/list/index.d.ts +0 -6
- package/types/upload/list/utils.d.ts +0 -2
- package/types/upload/request.d.ts +0 -3
- package/types/upload/utils.d.ts +0 -4
- package/types/utils/constant.d.ts +0 -4
- package/types/utils/contextHolder.d.ts +0 -10
- package/types/utils/getHotkeyHandler.d.ts +0 -4
- package/types/utils/is.d.ts +0 -1
- package/types/utils/names.d.ts +0 -1029
- package/types/utils/validate.d.ts +0 -2
- package/types/verification-code/VerificationCode.d.ts +0 -10
- package/types/verification-code/index.d.ts +0 -6
- package/types/verification-code/interface.d.ts +0 -74
- package/types/version/index.d.ts +0 -4
- package/types/virtual-list/hook/useCacheChildrenNodes.d.ts +0 -4
- package/types/virtual-list/hook/useComputeVirtualItemHeight.d.ts +0 -3
- package/types/virtual-list/index.d.ts +0 -4
- package/types/virtual-list/interface.d.ts +0 -55
- package/types/virtual-list/utils/algorithm.d.ts +0 -23
- package/types/watermark/Watermark.d.ts +0 -5
- package/types/watermark/index.d.ts +0 -6
- /package/{types/affix → affix}/interface.d.ts +0 -0
- /package/{types/alert → alert}/interface.d.ts +0 -0
- /package/{types/anchor → anchor}/interface.d.ts +0 -0
- /package/{types/app → app}/App.d.ts +0 -0
- /package/{types/app → app}/index.d.ts +0 -0
- /package/{types/app → app}/interface.d.ts +0 -0
- /package/{types/back-top → back-top}/interface.d.ts +0 -0
- /package/{types/badge → badge}/Count.d.ts +0 -0
- /package/{types/badge → badge}/interface.d.ts +0 -0
- /package/{types/calendar → calendar}/WeekList.d.ts +0 -0
- /package/{types/calendar → calendar}/header/Panel.d.ts +0 -0
- /package/{types/calendar → calendar}/header/index.d.ts +0 -0
- /package/{types/calendar → calendar}/hook/useCellClassName.d.ts +0 -0
- /package/{types/calendar → calendar}/interface.d.ts +0 -0
- /package/{types/card → card}/interface.d.ts +0 -0
- /package/{types/carousel → carousel}/interface.d.ts +0 -0
- /package/{types/cascader → cascader}/hook/useRefCurrent.d.ts +0 -0
- /package/{types/checkbox → checkbox}/context.d.ts +0 -0
- /package/{types/checkbox → checkbox}/useCheckbox.d.ts +0 -0
- /package/{types/collapse → collapse}/interface.d.ts +0 -0
- /package/{types/comment → comment}/interface.d.ts +0 -0
- /package/{types/config-provider → config-provider}/initUI.d.ts +0 -0
- /package/{types/config-provider → config-provider}/useConfigProvider.d.ts +0 -0
- /package/{types/copy → copy}/interface.d.ts +0 -0
- /package/{types/countdown → countdown}/interface.d.ts +0 -0
- /package/{types/countdown → countdown}/utils.d.ts +0 -0
- /package/{types/date-picker → date-picker}/hook/useCellClassName.d.ts +0 -0
- /package/{types/date-picker → date-picker}/panel/Footer.d.ts +0 -0
- /package/{types/date-picker → date-picker}/panel/WeekList.d.ts +0 -0
- /package/{types/date-picker → date-picker}/panel/date/index.d.ts +0 -0
- /package/{types/details → details}/interface.d.ts +0 -0
- /package/{types/development/index.d.ts → development/Development.d.ts} +0 -0
- /package/{types/development → development}/interface.d.ts +0 -0
- /package/{types/divider → divider}/interface.d.ts +0 -0
- /package/{types/draggable → draggable}/interface.d.ts +0 -0
- /package/{types/draw → draw}/constant.d.ts +0 -0
- /package/{types/draw → draw}/interface.d.ts +0 -0
- /package/{types/form → form}/FormLabel.d.ts +0 -0
- /package/{types/form → form}/promisify.d.ts +0 -0
- /package/{types/global-provider → global-provider}/interface.d.ts +0 -0
- /package/{types/grid → grid}/Grid.d.ts +0 -0
- /package/{types/grid → grid}/context.d.ts +0 -0
- /package/{types/hooks → hooks}/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-computed-state/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-create/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-creation/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-event/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-event-listener/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-force-update/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-fullscreen/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-id/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-in-view/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-intersection-observer/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-intersection-observers/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-interval/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-is-first-render/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-isomorphic-layout-effect/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-keyboard-event/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-latest/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-listen-window-resize/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-media/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-merge-props/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-merge-value/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-move/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-mutation-observers/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-online-status/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-overflow-hidden/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-override-ref/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-persist-callback/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-prefers-color-scheme-dark/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-previous/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-refs/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-resize-observer/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-resize-observers/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-responsive-state/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-set-state/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-state-callback/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-state-with-promise/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-update-effect/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-update-layout-effect/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-verification-code/interface.d.ts +0 -0
- /package/{types/hooks → hooks}/use-watch/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-watermark/interface.d.ts +0 -0
- /package/{types/hooks → hooks}/use-watermark/utils.d.ts +0 -0
- /package/{types/hooks → hooks}/use-window-size/index.d.ts +0 -0
- /package/{types/hooks → hooks}/useUnmountOnExit.d.ts +0 -0
- /package/{types/icon → icon}/addIconFromCdn.d.ts +0 -0
- /package/{types/icon → icon}/interface.d.ts +0 -0
- /package/{types/icons.d.ts → icons.d.ts} +0 -0
- /package/{types/image → image}/ImagePreviewArrow.d.ts +0 -0
- /package/{types/image → image}/utils/getFixTranslate.d.ts +0 -0
- /package/{types/image → image}/utils/hook/useImageStatus.d.ts +0 -0
- /package/{types/input → input}/Number.d.ts +0 -0
- /package/{types/input → input}/Tag.d.ts +0 -0
- /package/{types/input → input}/autoSizeTextareaHeight.d.ts +0 -0
- /package/{types/input → input}/utils.d.ts +0 -0
- /package/{types/input-number → input-number}/decimal.d.ts +0 -0
- /package/{types/input-number → input-number}/useSelectionRange.d.ts +0 -0
- /package/{types/input-number → input-number}/utils.d.ts +0 -0
- /package/{types/interface.d.ts → interface.d.ts} +0 -0
- /package/{types/layout → layout}/context.d.ts +0 -0
- /package/{types/link → link}/interface.d.ts +0 -0
- /package/{types/liquid-fill/index.d.ts → liquid-fill/LiquidFill.d.ts} +0 -0
- /package/{types/liquid-fill → liquid-fill}/interface.d.ts +0 -0
- /package/{types/loading/index.d.ts → loading/Loading.d.ts} +0 -0
- /package/{types/loading → loading}/interface.d.ts +0 -0
- /package/{types/locale → locale}/default.d.ts +0 -0
- /package/{types/locale → locale}/en-US.d.ts +0 -0
- /package/{types/locale → locale}/interface.d.ts +0 -0
- /package/{types/marquee/index.d.ts → marquee/Marquee.d.ts} +0 -0
- /package/{types/mask → mask}/interface.d.ts +0 -0
- /package/{types/masonry → masonry}/Masonry.d.ts +0 -0
- /package/{types/masonry → masonry}/MasonryItem.d.ts +0 -0
- /package/{types/masonry → masonry}/hooks/usePositions.d.ts +0 -0
- /package/{types/masonry → masonry}/hooks/useRefs.d.ts +0 -0
- /package/{types/menu → menu}/Indent.d.ts +0 -0
- /package/{types/menu → menu}/utils.d.ts +0 -0
- /package/{types/message → message}/interface.d.ts +0 -0
- /package/{types/notice → notice}/interface.d.ts +0 -0
- /package/{types/notification → notification}/withNotification.d.ts +0 -0
- /package/{types/overflow-ellipsis → overflow-ellipsis}/OverflowItem.d.ts +0 -0
- /package/{types/overflow-ellipsis → overflow-ellipsis}/interface.d.ts +0 -0
- /package/{types/portal → portal}/interface.d.ts +0 -0
- /package/{types/progress → progress}/LineProgess.d.ts +0 -0
- /package/{types/progress → progress}/StepProgress.d.ts +0 -0
- /package/{types/resize-box → resize-box}/ResizeTrigger.d.ts +0 -0
- /package/{types/resize-box → resize-box}/interface.d.ts +0 -0
- /package/{types/result → result}/403.d.ts +0 -0
- /package/{types/result → result}/404.d.ts +0 -0
- /package/{types/result → result}/500.d.ts +0 -0
- /package/{types/result → result}/interface.d.ts +0 -0
- /package/{types/rich-text → rich-text}/Toolbar.d.ts +0 -0
- /package/{types/rich-text → rich-text}/interface.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/block.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/break.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/container.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/cursor.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/embed.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/inline.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/text.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/editor.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/emitter.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/logger.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/module.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/theme.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/utils/createRegistryWithFormats.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/utils/scrollRectIntoView.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/delta/AttributeMap.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/delta/Op.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/delta/OpIterator.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/diff/index.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/align.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/background.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/blockquote.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/bold.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/code.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/color.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/direction.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/emoji.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/font.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/formula.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/header.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/hr.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/image.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/indent.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/italic.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/liOl.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/liUl.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/lineHeight.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/link.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/list.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/script.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/size.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/strike.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/table.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/underline.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/video.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/index.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/image-resize/index.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/image-resize/modules/Base.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/image-resize/modules/DisplaySize.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/image-resize/modules/Resize.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/image-resize/options.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/normalizeExternalHTML/index.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/normalizeExternalHTML/normalizers/msWord.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/tableEmbed.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/toolbar copy.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/toolbar.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/attributor/attributor.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/attributor/class.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/attributor/style.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/abstract/blot.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/abstract/container.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/abstract/leaf.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/abstract/parent.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/abstract/shadow.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/block.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/embed.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/inline.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/text.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/collection/linked-list.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/collection/linked-node.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/error.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/index.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/scope.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/themes/base.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/themes/pqb.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/ui/tooltip.d.ts +0 -0
- /package/{types/row-col → row-col}/Col-.d.ts +0 -0
- /package/{types/row-col → row-col}/Col.d.ts +0 -0
- /package/{types/row-col → row-col}/Row.d.ts +0 -0
- /package/{types/row-col → row-col}/context.d.ts +0 -0
- /package/{types/row-col → row-col}/interface.d.ts +0 -0
- /package/{types/segmented/index.d.ts → segmented/Segmented.d.ts} +0 -0
- /package/{types/select-view → select-view}/Core.d.ts +0 -0
- /package/{types/select-view/index.d.ts → select-view/SelectView.d.ts} +0 -0
- /package/{types/skeleton → skeleton}/interface.d.ts +0 -0
- /package/{types/spin → spin}/DotLoading.d.ts +0 -0
- /package/{types/spin → spin}/interface.d.ts +0 -0
- /package/{types/splitter → splitter}/Panel.d.ts +0 -0
- /package/{types/splitter → splitter}/SplitBar.d.ts +0 -0
- /package/{types/splitter → splitter}/Splitter.d.ts +0 -0
- /package/{types/splitter → splitter}/hooks/useItems.d.ts +0 -0
- /package/{types/splitter → splitter}/hooks/useResizable.d.ts +0 -0
- /package/{types/splitter → splitter}/hooks/useResize.d.ts +0 -0
- /package/{types/splitter → splitter}/hooks/useSizes.d.ts +0 -0
- /package/{types/splitter → splitter}/interface.d.ts +0 -0
- /package/{types/statistic → statistic}/interface.d.ts +0 -0
- /package/{types/steps → steps}/interface.d.ts +0 -0
- /package/{types/suspense-fallback-test/index.d.ts → suspense-fallback-test/SuspenseFallbackTest.d.ts} +0 -0
- /package/{types/table → table}/context.d.ts +0 -0
- /package/{types/table → table}/hook/useThResizable.d.ts +0 -0
- /package/{types/table → table}/summary/Cell.d.ts +0 -0
- /package/{types/table → table}/summary/Row.d.ts +0 -0
- /package/{types/table → table}/th-resizable/index.d.ts +0 -0
- /package/{types/tabs → tabs}/context.d.ts +0 -0
- /package/{types/tabs → tabs}/tab-header/DropdownIcon.d.ts +0 -0
- /package/{types/tabs → tabs}/tab-header/TabInk.d.ts +0 -0
- /package/{types/tabs → tabs}/tab-header/TabTitle.d.ts +0 -0
- /package/{types/tabs → tabs}/utils.d.ts +0 -0
- /package/{types/time-picker → time-picker}/TimeColumn.d.ts +0 -0
- /package/{types/time-picker → time-picker}/utils.d.ts +0 -0
- /package/{types/timeline → timeline}/interface.d.ts +0 -0
- /package/{types/timer/index.d.ts → timer/Timer.d.ts} +0 -0
- /package/{types/tour/index.d.ts → tour/Tour.d.ts} +0 -0
- /package/{types/tour → tour}/interface.d.ts +0 -0
- /package/{types/tree → tree}/NodeList.d.ts +0 -0
- /package/{types/tree-select → tree-select}/utils.d.ts +0 -0
- /package/{types/typography → typography}/Text.d.ts +0 -0
- /package/{types/utils → utils}/callOrReturn.d.ts +0 -0
- /package/{types/utils → utils}/callbackOriginRef.d.ts +0 -0
- /package/{types/utils → utils}/caseName.d.ts +0 -0
- /package/{types/utils → utils}/className.d.ts +0 -0
- /package/{types/utils → utils}/copy.d.ts +0 -0
- /package/{types/utils → utils}/date.d.ts +0 -0
- /package/{types/utils → utils}/dayjs.d.ts +0 -0
- /package/{types/utils → utils}/dom.d.ts +0 -0
- /package/{types/utils → utils}/emitter.d.ts +0 -0
- /package/{types/utils → utils}/fileRead.d.ts +0 -0
- /package/{types/utils → utils}/fileToDataURL.d.ts +0 -0
- /package/{types/utils → utils}/fillNBSP.d.ts +0 -0
- /package/{types/utils → utils}/findRootElement.d.ts +0 -0
- /package/{types/utils → utils}/findScrollParent.d.ts +0 -0
- /package/{types/utils → utils}/getHighlightText.d.ts +0 -0
- /package/{types/utils → utils}/getStringLength.d.ts +0 -0
- /package/{types/utils → utils}/include.d.ts +0 -0
- /package/{types/utils → utils}/index.d.ts +0 -0
- /package/{types/utils → utils}/intersectionObserver.d.ts +0 -0
- /package/{types/utils → utils}/keyboardCode.d.ts +0 -0
- /package/{types/utils → utils}/lodash.d.ts +0 -0
- /package/{types/utils → utils}/math.d.ts +0 -0
- /package/{types/utils → utils}/mergeProps.d.ts +0 -0
- /package/{types/utils → utils}/mergedToString.d.ts +0 -0
- /package/{types/utils → utils}/mutationObserver.d.ts +0 -0
- /package/{types/utils → utils}/omit.d.ts +0 -0
- /package/{types/utils → utils}/pad.d.ts +0 -0
- /package/{types/utils → utils}/pick.d.ts +0 -0
- /package/{types/utils → utils}/pinyin.d.ts +0 -0
- /package/{types/utils → utils}/react19Adapter.d.ts +0 -0
- /package/{types/utils → utils}/ref.d.ts +0 -0
- /package/{types/utils → utils}/resizeObserver.d.ts +0 -0
- /package/{types/utils → utils}/responsiveObserve.d.ts +0 -0
- /package/{types/utils → utils}/saveAs.d.ts +0 -0
- /package/{types/utils → utils}/screenfull.d.ts +0 -0
- /package/{types/utils → utils}/scrollIntoViewIfNeeded.d.ts +0 -0
- /package/{types/utils → utils}/setCreateRoot.d.ts +0 -0
- /package/{types/utils → utils}/setDarkTheme.d.ts +0 -0
- /package/{types/utils → utils}/setPrimaryColor.d.ts +0 -0
- /package/{types/utils → utils}/setTheme.d.ts +0 -0
- /package/{types/utils → utils}/string.d.ts +0 -0
- /package/{types/utils → utils}/style.d.ts +0 -0
- /package/{types/utils → utils}/throttleByRaf.d.ts +0 -0
- /package/{types/utils → utils}/throttleByRaf2.d.ts +0 -0
- /package/{types/utils → utils}/toArray.d.ts +0 -0
- /package/{types/utils → utils}/tree.d.ts +0 -0
- /package/{types/utils → utils}/tween.d.ts +0 -0
- /package/{types/utils → utils}/uuid.d.ts +0 -0
- /package/{types/utils → utils}/warning.d.ts +0 -0
- /package/{types/virtual-list → virtual-list}/Filler.d.ts +0 -0
- /package/{types/virtual-list → virtual-list}/VirtualList.d.ts +0 -0
- /package/{types/virtual-list → virtual-list}/constant.d.ts +0 -0
- /package/{types/virtual-list → virtual-list}/utils/item.d.ts +0 -0
- /package/{types/watermark → watermark}/interface.d.ts +0 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { CSSProperties, ChangeEvent, HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import type { ReadOnly, Size } from '../interface';
|
|
3
|
+
/**
|
|
4
|
+
* @title Radio
|
|
5
|
+
*/
|
|
6
|
+
export interface RadioProps<T = any> extends Omit<HTMLAttributes<HTMLLabelElement>, 'children' | 'className' | 'onChange'>, ReadOnly {
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
className?: string | string[];
|
|
9
|
+
/**
|
|
10
|
+
* @zh 是否禁用
|
|
11
|
+
* @en Whether the radio is disabled
|
|
12
|
+
*/
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @zh 控件的 `value`
|
|
16
|
+
* @en The value of radio
|
|
17
|
+
*/
|
|
18
|
+
value?: T;
|
|
19
|
+
/**
|
|
20
|
+
* @zh 是否选中(受控模式)
|
|
21
|
+
* @en Whether the radio is checked (Controlled)
|
|
22
|
+
*/
|
|
23
|
+
checked?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @zh 初始是否选中
|
|
26
|
+
* @en Whether the radio is initially selected
|
|
27
|
+
*/
|
|
28
|
+
defaultChecked?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @zh 值变化的回调
|
|
31
|
+
* @en Callback when radio status change
|
|
32
|
+
*/
|
|
33
|
+
onChange?: (checked: boolean, event: ChangeEvent) => void;
|
|
34
|
+
children?: ReactNode | ((value: {
|
|
35
|
+
checked: boolean;
|
|
36
|
+
}) => ReactNode);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @title Radio.Group
|
|
40
|
+
*/
|
|
41
|
+
export interface RadioGroupProps extends ReadOnly, Size, PropsWithChildren {
|
|
42
|
+
style?: CSSProperties;
|
|
43
|
+
className?: string | string[];
|
|
44
|
+
/**
|
|
45
|
+
* @zh 禁用
|
|
46
|
+
* @en disabled
|
|
47
|
+
*/
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* @zh `Radio` 的 name
|
|
51
|
+
* @en `Radio`'s name attr
|
|
52
|
+
*/
|
|
53
|
+
name?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @zh 单选的类型,是单选还是按钮
|
|
56
|
+
* @en type of `Radio`
|
|
57
|
+
* @defaultValue radio
|
|
58
|
+
*/
|
|
59
|
+
type?: 'radio' | 'button';
|
|
60
|
+
/**
|
|
61
|
+
* @zh 方向
|
|
62
|
+
* @en Arrangement direction
|
|
63
|
+
* @defaultValue horizontal
|
|
64
|
+
*/
|
|
65
|
+
direction?: 'vertical' | 'horizontal';
|
|
66
|
+
mode?: 'outline' | 'fill';
|
|
67
|
+
/**
|
|
68
|
+
* @zh 点击单选的回调
|
|
69
|
+
* @en Callback when radio status change
|
|
70
|
+
*/
|
|
71
|
+
onChange?: (value: any, event: ChangeEvent) => void;
|
|
72
|
+
/**
|
|
73
|
+
* @zh 默认选中的值
|
|
74
|
+
* @en To set default value
|
|
75
|
+
*/
|
|
76
|
+
defaultValue?: any;
|
|
77
|
+
/**
|
|
78
|
+
* @zh 选中的值(受控模式)
|
|
79
|
+
* @en To set value
|
|
80
|
+
*/
|
|
81
|
+
value?: any;
|
|
82
|
+
/**
|
|
83
|
+
* @zh 以数组配置的形式来设置单选组
|
|
84
|
+
* @en Set children options
|
|
85
|
+
*/
|
|
86
|
+
options?: (string | number | {
|
|
87
|
+
label: ReactNode;
|
|
88
|
+
value: any;
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
})[];
|
|
91
|
+
}
|
|
92
|
+
export interface RadioGroupContextProps {
|
|
93
|
+
type: 'radio' | 'button';
|
|
94
|
+
value?: unknown;
|
|
95
|
+
disabled?: boolean;
|
|
96
|
+
readOnly?: boolean;
|
|
97
|
+
group?: boolean;
|
|
98
|
+
name?: RadioGroupProps['name'];
|
|
99
|
+
onChangeValue?: (value: unknown, event: ChangeEvent) => void;
|
|
100
|
+
prefixCls?: string;
|
|
101
|
+
prefixClsGroup?: string;
|
|
102
|
+
}
|
package/rate/Rate.d.ts
ADDED
package/rate/Rate.js
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* 潘启宝 2026-03-24 16:29:04 星期二 */
|
|
2
|
+
import { isFunction as e } from "../utils/is.js";
|
|
3
|
+
import t from "../utils/className.js";
|
|
4
|
+
import n from "../hooks/use-merge-props/index.js";
|
|
5
|
+
import r from "../config-provider/context.js";
|
|
6
|
+
import { FormContext as i, FormItemContext as a } from "../form/context.js";
|
|
7
|
+
import "../config-provider/index.js";
|
|
8
|
+
import o from "../utils/omit.js";
|
|
9
|
+
import s from "../tooltip/index.js";
|
|
10
|
+
import c, { useContext as l, useImperativeHandle as u, useRef as d, useState as f } from "react";
|
|
11
|
+
import { jsx as p, jsxs as ee } from "react/jsx-runtime";
|
|
12
|
+
import { div as te, times as m } from "@unicom-cloud/utils/math";
|
|
13
|
+
import h from "@unicom-cloud/icons/IconUiFaceFrownFill";
|
|
14
|
+
import g from "@unicom-cloud/icons/IconUiFaceMehFill";
|
|
15
|
+
import _ from "@unicom-cloud/icons/IconUiFaceSmileFill";
|
|
16
|
+
import v from "@unicom-cloud/icons/IconUiStarFill";
|
|
17
|
+
//#region components/pc/rate/Rate.tsx
|
|
18
|
+
var y = {
|
|
19
|
+
character: /* @__PURE__ */ p(v, {}),
|
|
20
|
+
count: 5
|
|
21
|
+
};
|
|
22
|
+
function b(v, b) {
|
|
23
|
+
let { getPrefixCls: x, componentConfig: S, rtl: C } = l(r), w = l(i), T = l(a), E = n(v, y, S?.Rate), { style: D = {}, className: O, defaultValue: k, character: A, count: j, value: M, tooltips: N, allowHalf: P, allowClear: ne, readOnly: F = T?.readOnly ?? w?.readOnly, disabled: I, grading: L, onChange: R, onHoverChange: z, ...B } = E, [V, H] = f(k || M || 0), [U, W] = f(0), [G, K] = f(), q = x?.("rate"), J = t(q, {
|
|
24
|
+
[`${q}-readonly`]: F,
|
|
25
|
+
[`${q}-disabled`]: I,
|
|
26
|
+
[`${q}-rtl`]: C
|
|
27
|
+
}, O), Y = "value" in E ? M : V, X = () => {
|
|
28
|
+
U && (W(0), z?.(0));
|
|
29
|
+
}, Z = (e, t) => {
|
|
30
|
+
let n = t && P ? e + .5 : e + 1;
|
|
31
|
+
n !== U && (W(n), z?.(n));
|
|
32
|
+
}, Q = (e, t) => {
|
|
33
|
+
let n = t && P ? e + .5 : e + 1;
|
|
34
|
+
K(!0), n === Y ? ne && (H(0), R?.(0), X()) : (H(n), R?.(n));
|
|
35
|
+
}, re = (n) => {
|
|
36
|
+
let r = P ? m(+te(Y || 0, .5).toFixed(0), .5) : Math.round(Y), i = U || r, a = e(A) ? A(n) : A;
|
|
37
|
+
L && (a = p(i <= 2 ? h : i <= 3 ? g : _, {}), i <= n && (a = /* @__PURE__ */ p(g, {})));
|
|
38
|
+
let o = t(`${q}-character`, {
|
|
39
|
+
[`${q}-character-half`]: P && n + .5 === i,
|
|
40
|
+
[`${q}-character-full`]: n + 1 <= i,
|
|
41
|
+
[`${q}-character-scale`]: G && n + 1 < Y
|
|
42
|
+
}), l = F || I ? {} : {
|
|
43
|
+
onMouseEnter: Z.bind(this, n, !0),
|
|
44
|
+
onClick: Q.bind(this, n, !0)
|
|
45
|
+
}, u = F || I ? {} : {
|
|
46
|
+
onMouseEnter: Z.bind(this, n, !1),
|
|
47
|
+
onClick: Q.bind(this, n, !1)
|
|
48
|
+
}, d = N && N[n], f = d ? s : c.Fragment, v = d ? { content: d } : {};
|
|
49
|
+
function y(e) {
|
|
50
|
+
return {
|
|
51
|
+
role: "radio",
|
|
52
|
+
"aria-checked": n + (e ? .5 : 1) <= i,
|
|
53
|
+
"aria-setsize": j,
|
|
54
|
+
"aria-posinset": n + (e ? .5 : 1)
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
return /* @__PURE__ */ p(f, {
|
|
58
|
+
...v,
|
|
59
|
+
children: /* @__PURE__ */ ee("div", {
|
|
60
|
+
className: o,
|
|
61
|
+
style: G ? { animationDelay: `${50 * n}ms` } : {},
|
|
62
|
+
onAnimationEnd: () => {
|
|
63
|
+
G && n + 1 >= Y - 1 && K(!1);
|
|
64
|
+
},
|
|
65
|
+
...P ? {} : y(),
|
|
66
|
+
children: [/* @__PURE__ */ p("div", {
|
|
67
|
+
className: `${q}-character-left`,
|
|
68
|
+
...l,
|
|
69
|
+
...P ? y(!0) : {},
|
|
70
|
+
children: a
|
|
71
|
+
}), /* @__PURE__ */ p("div", {
|
|
72
|
+
className: `${q}-character-right`,
|
|
73
|
+
...u,
|
|
74
|
+
...P ? y() : {},
|
|
75
|
+
children: a
|
|
76
|
+
})]
|
|
77
|
+
})
|
|
78
|
+
}, n);
|
|
79
|
+
}, $ = d(null);
|
|
80
|
+
return u(b, () => ({ getRootElement() {
|
|
81
|
+
return $.current;
|
|
82
|
+
} })), /* @__PURE__ */ p("div", {
|
|
83
|
+
ref: $,
|
|
84
|
+
...o(B, ["error"]),
|
|
85
|
+
style: D,
|
|
86
|
+
className: J,
|
|
87
|
+
onMouseLeave: X,
|
|
88
|
+
children: /* @__PURE__ */ p("div", {
|
|
89
|
+
className: `${q}-inner`,
|
|
90
|
+
children: Array.apply(null, Array(L ? 5 : j)).map((e, t) => re(t))
|
|
91
|
+
})
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
var x = c.forwardRef(b);
|
|
95
|
+
x.displayName = "Rate";
|
|
96
|
+
//#endregion
|
|
97
|
+
export { x as default };
|
|
98
|
+
/* 独立思考,明辨是非 */
|
package/rate/index.d.ts
ADDED
package/rate/index.js
CHANGED
|
@@ -1,135 +1,7 @@
|
|
|
1
|
-
/* 2026-03-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import U, { useContext as h, useState as C, useRef as ce, useImperativeHandle as le } from "react";
|
|
9
|
-
import "../config-provider/ConfigProvider.js";
|
|
10
|
-
import { FormContext as ie, FormItemContext as me } from "../form/context.js";
|
|
11
|
-
import fe from "@unicom-cloud/ui-common/hooks/use-merge-props";
|
|
12
|
-
import pe from "../tooltip/Tooltip.js";
|
|
13
|
-
import k from "@unicom-cloud/ui-common/utils/className";
|
|
14
|
-
import { isFunction as ue } from "@unicom-cloud/ui-common/utils/is";
|
|
15
|
-
import de from "@unicom-cloud/ui-common/utils/omit";
|
|
16
|
-
import he from "../config-provider/context.js";
|
|
17
|
-
const Ce = {
|
|
18
|
-
character: /* @__PURE__ */ r(ae, {}),
|
|
19
|
-
count: 5
|
|
20
|
-
};
|
|
21
|
-
function ve(O, S) {
|
|
22
|
-
const { getPrefixCls: _, componentConfig: j, rtl: x } = h(he), z = h(ie), D = h(me), v = fe(
|
|
23
|
-
O,
|
|
24
|
-
Ce,
|
|
25
|
-
j?.Rate
|
|
26
|
-
), {
|
|
27
|
-
style: L = {},
|
|
28
|
-
className: T,
|
|
29
|
-
defaultValue: W,
|
|
30
|
-
character: l,
|
|
31
|
-
count: g,
|
|
32
|
-
value: F,
|
|
33
|
-
tooltips: I,
|
|
34
|
-
allowHalf: a,
|
|
35
|
-
allowClear: q,
|
|
36
|
-
readOnly: i = D?.readOnly ?? z?.readOnly,
|
|
37
|
-
disabled: m,
|
|
38
|
-
grading: $,
|
|
39
|
-
onChange: y,
|
|
40
|
-
onHoverChange: N,
|
|
41
|
-
...B
|
|
42
|
-
} = v, [G, P] = C(W || F || 0), [f, R] = C(0), [p, M] = C(), o = _?.("rate"), J = k(
|
|
43
|
-
o,
|
|
44
|
-
{
|
|
45
|
-
[`${o}-readonly`]: i,
|
|
46
|
-
[`${o}-disabled`]: m,
|
|
47
|
-
[`${o}-rtl`]: x
|
|
48
|
-
},
|
|
49
|
-
T
|
|
50
|
-
), c = "value" in v ? F : G, b = () => {
|
|
51
|
-
f && (R(0), N?.(0));
|
|
52
|
-
}, w = (e, n) => {
|
|
53
|
-
const t = n && a ? e + 0.5 : e + 1;
|
|
54
|
-
t !== f && (R(t), N?.(t));
|
|
55
|
-
}, E = (e, n) => {
|
|
56
|
-
const t = n && a ? e + 0.5 : e + 1;
|
|
57
|
-
M(!0), t !== c ? (P(t), y?.(t)) : q && (P(0), y?.(0), b());
|
|
58
|
-
}, K = (e) => {
|
|
59
|
-
const n = a ? ne(+se(c || 0, 0.5).toFixed(0), 0.5) : Math.round(c), t = f || n;
|
|
60
|
-
let s = ue(l) ? l(e) : l;
|
|
61
|
-
$ && (t <= 2 ? s = /* @__PURE__ */ r(oe, {}) : t <= 3 ? s = /* @__PURE__ */ r(H, {}) : s = /* @__PURE__ */ r(re, {}), t <= e && (s = /* @__PURE__ */ r(H, {})));
|
|
62
|
-
const Q = k(`${o}-character`, {
|
|
63
|
-
[`${o}-character-half`]: a && e + 0.5 === t,
|
|
64
|
-
[`${o}-character-full`]: e + 1 <= t,
|
|
65
|
-
[`${o}-character-scale`]: p && e + 1 < c
|
|
66
|
-
}), X = i || m ? {} : {
|
|
67
|
-
onMouseEnter: w.bind(this, e, !0),
|
|
68
|
-
onClick: E.bind(this, e, !0)
|
|
69
|
-
}, Y = i || m ? {} : {
|
|
70
|
-
onMouseEnter: w.bind(this, e, !1),
|
|
71
|
-
onClick: E.bind(this, e, !1)
|
|
72
|
-
}, u = I && I[e], Z = u ? pe : U.Fragment, ee = u ? { content: u } : {};
|
|
73
|
-
function d(A) {
|
|
74
|
-
return {
|
|
75
|
-
role: "radio",
|
|
76
|
-
"aria-checked": e + (A ? 0.5 : 1) <= t,
|
|
77
|
-
"aria-setsize": g,
|
|
78
|
-
"aria-posinset": e + (A ? 0.5 : 1)
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
return /* @__PURE__ */ r(Z, { ...ee, children: /* @__PURE__ */ te(
|
|
82
|
-
"div",
|
|
83
|
-
{
|
|
84
|
-
className: Q,
|
|
85
|
-
style: p ? { animationDelay: `${50 * e}ms` } : {},
|
|
86
|
-
onAnimationEnd: () => {
|
|
87
|
-
p && e + 1 >= c - 1 && M(!1);
|
|
88
|
-
},
|
|
89
|
-
...a ? {} : d(),
|
|
90
|
-
children: [
|
|
91
|
-
/* @__PURE__ */ r(
|
|
92
|
-
"div",
|
|
93
|
-
{
|
|
94
|
-
className: `${o}-character-left`,
|
|
95
|
-
...X,
|
|
96
|
-
...a ? d(!0) : {},
|
|
97
|
-
children: s
|
|
98
|
-
}
|
|
99
|
-
),
|
|
100
|
-
/* @__PURE__ */ r(
|
|
101
|
-
"div",
|
|
102
|
-
{
|
|
103
|
-
className: `${o}-character-right`,
|
|
104
|
-
...Y,
|
|
105
|
-
...a ? d() : {},
|
|
106
|
-
children: s
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
) }, e);
|
|
112
|
-
}, V = ce(null);
|
|
113
|
-
return le(S, () => ({
|
|
114
|
-
getRootElement() {
|
|
115
|
-
return V.current;
|
|
116
|
-
}
|
|
117
|
-
})), /* @__PURE__ */ r(
|
|
118
|
-
"div",
|
|
119
|
-
{
|
|
120
|
-
ref: V,
|
|
121
|
-
...de(B, ["error"]),
|
|
122
|
-
style: L,
|
|
123
|
-
className: J,
|
|
124
|
-
onMouseLeave: b,
|
|
125
|
-
children: /* @__PURE__ */ r("div", { className: `${o}-inner`, children: Array.apply(null, Array($ ? 5 : g)).map(
|
|
126
|
-
(e, n) => K(n)
|
|
127
|
-
) })
|
|
128
|
-
}
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
const ge = U.forwardRef(ve);
|
|
132
|
-
ge.displayName = "Rate";
|
|
133
|
-
export {
|
|
134
|
-
ge as default
|
|
135
|
-
};
|
|
1
|
+
/* 潘启宝 2026-03-24 16:29:04 星期二 */
|
|
2
|
+
import e from "./Rate.js";
|
|
3
|
+
//#region components/pc/rate/index.tsx
|
|
4
|
+
var t = Object.assign(e, {});
|
|
5
|
+
//#endregion
|
|
6
|
+
export { t as default };
|
|
7
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import type { ReadOnly } from '../interface';
|
|
3
|
+
/**
|
|
4
|
+
* @title Rate
|
|
5
|
+
*/
|
|
6
|
+
export interface RateProps extends ReadOnly {
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
className?: string | string[];
|
|
9
|
+
/**
|
|
10
|
+
* @zh 默认值
|
|
11
|
+
* @en To set default value
|
|
12
|
+
*/
|
|
13
|
+
defaultValue?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @zh 自定义字符
|
|
16
|
+
* @en The custom character of rate
|
|
17
|
+
* @defaultValue <IconUiStarFill />
|
|
18
|
+
*/
|
|
19
|
+
character?: ReactNode | ((index: number) => ReactNode);
|
|
20
|
+
/**
|
|
21
|
+
* @zh 星的总数
|
|
22
|
+
* @en Star count
|
|
23
|
+
* @defaultValue 5
|
|
24
|
+
*/
|
|
25
|
+
count?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @zh 星的个数,受控值
|
|
28
|
+
* @en To set value
|
|
29
|
+
*/
|
|
30
|
+
value?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @zh 自定义每一项的提示信息
|
|
33
|
+
* @en Customize tooltip by each character
|
|
34
|
+
*/
|
|
35
|
+
tooltips?: string[];
|
|
36
|
+
/**
|
|
37
|
+
* @zh 是否允许半选
|
|
38
|
+
* @en Whether to allow half selection
|
|
39
|
+
*/
|
|
40
|
+
allowHalf?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* @zh 是否允许清除
|
|
43
|
+
* @en Whether to allow clear when click again
|
|
44
|
+
*/
|
|
45
|
+
allowClear?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @zh 是否禁用
|
|
48
|
+
* @en Whether is disabled
|
|
49
|
+
*/
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* @zh 笑脸分级
|
|
53
|
+
* @en Whether to show score with smiley icon
|
|
54
|
+
*/
|
|
55
|
+
grading?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* @zh 选择时的回调
|
|
58
|
+
* @en Callback when score is changed
|
|
59
|
+
*/
|
|
60
|
+
onChange?: (value: number) => void;
|
|
61
|
+
/**
|
|
62
|
+
* @zh 鼠标经过时数值变化的回调
|
|
63
|
+
* @en Callback when the score user hovered is changed
|
|
64
|
+
*/
|
|
65
|
+
onHoverChange?: (value: number) => void;
|
|
66
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Split from './Split';
|
|
2
|
+
import SplitGroup from './SplitGroup';
|
|
3
|
+
import type { ResizeBoxProps } from './interface';
|
|
4
|
+
export type DirectionType = 'left' | 'right' | 'top' | 'bottom';
|
|
5
|
+
declare const ForwardRefResizeBox: import("react").ForwardRefExoticComponent<ResizeBoxProps & {
|
|
6
|
+
children?: import("react").ReactNode | undefined;
|
|
7
|
+
} & import("react").RefAttributes<unknown>>;
|
|
8
|
+
declare const ResizeBoxComponent: typeof ForwardRefResizeBox & {
|
|
9
|
+
Split: typeof Split;
|
|
10
|
+
SplitGroup: typeof SplitGroup;
|
|
11
|
+
};
|
|
12
|
+
export default ResizeBoxComponent;
|
|
13
|
+
export type { ResizeBoxProps };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/* 潘启宝 2026-03-24 16:29:04 星期二 */
|
|
2
|
+
import { isNumber as e } from "../utils/is.js";
|
|
3
|
+
import t from "../hooks/use-merge-value/index.js";
|
|
4
|
+
import n from "../utils/className.js";
|
|
5
|
+
import r from "../hooks/use-merge-props/index.js";
|
|
6
|
+
import { off as i, on as a } from "../utils/dom.js";
|
|
7
|
+
import o from "../config-provider/context.js";
|
|
8
|
+
import "../config-provider/index.js";
|
|
9
|
+
import s from "../utils/omit.js";
|
|
10
|
+
import c from "./ResizeTrigger.js";
|
|
11
|
+
import "./Split.js";
|
|
12
|
+
import "./SplitGroup.js";
|
|
13
|
+
import { forwardRef as l, useContext as u, useImperativeHandle as d, useRef as f, useState as ee } from "react";
|
|
14
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
15
|
+
//#region components/pc/resize-box/ResizeBox.tsx
|
|
16
|
+
var h = "left", g = "right", _ = "top", v = "bottom", y = [
|
|
17
|
+
h,
|
|
18
|
+
g,
|
|
19
|
+
_,
|
|
20
|
+
v
|
|
21
|
+
], b = {
|
|
22
|
+
component: "div",
|
|
23
|
+
directions: ["right"],
|
|
24
|
+
resizeIcons: {},
|
|
25
|
+
resizeTriggers: {}
|
|
26
|
+
}, x = (e) => {
|
|
27
|
+
switch (e) {
|
|
28
|
+
case "left": return "right";
|
|
29
|
+
case "right": return "left";
|
|
30
|
+
default: return e;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
function S(l, S) {
|
|
34
|
+
let { getPrefixCls: C, componentConfig: w, rtl: T } = u(o), E = r(l, b, w?.ResizeBox), { style: D, className: O, component: k, directions: A, resizeIcons: j, children: M, resizeTriggers: N, width: P, height: F, ...I } = E, L = T ? A.map((e) => x(e)) : A, R = C?.("resizebox"), z = n(R, { [`${R}-rtl`]: T }, O), [B, V] = ee({}), [H, U] = t(void 0, { value: P }), [W, G] = t(void 0, { value: F }), K = f({
|
|
35
|
+
startX: 0,
|
|
36
|
+
startY: 0,
|
|
37
|
+
startWidth: 0,
|
|
38
|
+
startHeight: 0,
|
|
39
|
+
direction: g,
|
|
40
|
+
moving: !1,
|
|
41
|
+
padding: {
|
|
42
|
+
top: 0,
|
|
43
|
+
bottom: 0,
|
|
44
|
+
left: 0,
|
|
45
|
+
right: 0
|
|
46
|
+
}
|
|
47
|
+
}), q = f(void 0);
|
|
48
|
+
d(S, () => ({ getRootElement() {
|
|
49
|
+
return q.current;
|
|
50
|
+
} }));
|
|
51
|
+
function J(e) {
|
|
52
|
+
return [_, v].includes(e);
|
|
53
|
+
}
|
|
54
|
+
function Y(e, t) {
|
|
55
|
+
if (e === 0) return 0;
|
|
56
|
+
let n = e - t;
|
|
57
|
+
return n <= 0 ? 0 : n;
|
|
58
|
+
}
|
|
59
|
+
function X(e) {
|
|
60
|
+
let t = document.body, n = "data-pqb-origin-cursor";
|
|
61
|
+
if (e) t.setAttribute(n, t.style.cursor), t.style.cursor = e;
|
|
62
|
+
else {
|
|
63
|
+
let e = t.getAttribute(n);
|
|
64
|
+
t.style.cursor = e || "", t.removeAttribute(n);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function Z(e, t) {
|
|
68
|
+
E.onMovingStart?.(), K.current.moving = !0, K.current.startX = t.pageX, K.current.startY = t.pageY, K.current.direction = e;
|
|
69
|
+
let { top: n, left: r, right: i, bottom: o } = K.current.padding;
|
|
70
|
+
K.current.startWidth = Y(q.current?.clientWidth, r + i), K.current.startHeight = Y(q.current?.clientHeight, n + o), a(window, "mousemove", Q), a(window, "touchmove", Q), a(window, "mouseup", $), a(window, "touchend", $), a(window, "contextmenu", $), X(J(e) ? "row-resize" : "col-resize");
|
|
71
|
+
}
|
|
72
|
+
function Q(e) {
|
|
73
|
+
if (!K.current.moving) return !1;
|
|
74
|
+
let { startX: t, startY: n, startWidth: r, startHeight: i } = K.current, a = r, o = i, s = e.pageX - t, c = e.pageY - n;
|
|
75
|
+
switch (K.current.direction) {
|
|
76
|
+
case h:
|
|
77
|
+
a = r - s, U(a);
|
|
78
|
+
break;
|
|
79
|
+
case g:
|
|
80
|
+
a = r + s, U(a);
|
|
81
|
+
break;
|
|
82
|
+
case _:
|
|
83
|
+
o = i - c, G(o);
|
|
84
|
+
break;
|
|
85
|
+
case v:
|
|
86
|
+
o = i + c, G(o);
|
|
87
|
+
break;
|
|
88
|
+
default: break;
|
|
89
|
+
}
|
|
90
|
+
E.onMoving?.(e, {
|
|
91
|
+
width: a,
|
|
92
|
+
height: o
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function $() {
|
|
96
|
+
K.current.moving = !1, te(), X(), E.onMovingEnd?.();
|
|
97
|
+
}
|
|
98
|
+
function te() {
|
|
99
|
+
i(window, "mousemove", Q), i(window, "touchmove", Q), i(window, "mouseup", $), i(window, "touchend", $), i(window, "contextmenu", $);
|
|
100
|
+
}
|
|
101
|
+
function ne(e, t) {
|
|
102
|
+
let n = J(e), { contentRect: r } = t[0], i = `${e.slice(0, 1).toUpperCase()}${e.slice(1)}`, a = r[n ? "height" : "width"];
|
|
103
|
+
K.current.padding[e] = a, V((e) => ({
|
|
104
|
+
...e,
|
|
105
|
+
[`padding${i}`]: a
|
|
106
|
+
}));
|
|
107
|
+
}
|
|
108
|
+
let re = {
|
|
109
|
+
...B,
|
|
110
|
+
...D || {},
|
|
111
|
+
...e(H) ? { width: H } : {},
|
|
112
|
+
...e(W) ? { height: W } : {}
|
|
113
|
+
};
|
|
114
|
+
return /* @__PURE__ */ m(k, {
|
|
115
|
+
...s(I, [
|
|
116
|
+
"onMovingStart",
|
|
117
|
+
"onMoving",
|
|
118
|
+
"onMovingEnd"
|
|
119
|
+
]),
|
|
120
|
+
style: re,
|
|
121
|
+
className: z,
|
|
122
|
+
ref: q,
|
|
123
|
+
children: [M, L.map((e) => {
|
|
124
|
+
if (y.includes(e)) return /* @__PURE__ */ p(c, {
|
|
125
|
+
className: `${R}-direction-${e}`,
|
|
126
|
+
direction: J(e) ? "horizontal" : "vertical",
|
|
127
|
+
icon: j[e],
|
|
128
|
+
onMouseDown: (t) => {
|
|
129
|
+
Z(e, t);
|
|
130
|
+
},
|
|
131
|
+
onResize: (t) => {
|
|
132
|
+
ne(e, t);
|
|
133
|
+
},
|
|
134
|
+
children: N[e]
|
|
135
|
+
}, e);
|
|
136
|
+
})]
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
var C = l(S);
|
|
140
|
+
C.displayName = "ResizeBox";
|
|
141
|
+
//#endregion
|
|
142
|
+
export { C as default };
|
|
143
|
+
/* 独立思考,明辨是非 */
|