@unicom-cloud/ui 0.8.149 → 0.8.151
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 +8214 -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 -890
- 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 +16 -107
- package/progress/interface.d.ts +85 -0
- package/qr-code/QRCode.d.ts +5 -0
- package/qr-code/QRCode.js +50 -77
- package/qr-code/index.d.ts +5 -0
- package/qr-code/index.js +8 -7
- package/qr-code/src/index.js +195 -257
- package/qr-code/src/qrcodegen.d.ts +66 -0
- package/qr-code/src/qrcodegen.js +782 -943
- 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 -660
- 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 -1041
- 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 -15
- package/Progress2.js +0 -6
- 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/progress2/index.js +0 -6
- 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 -195
- 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 -4
- package/types/progress/interface.d.ts +0 -84
- package/types/progress2/index.d.ts +0 -1
- package/types/progress2/interface.d.ts +0 -1
- package/types/qr-code/QRCode.d.ts +0 -5
- package/types/qr-code/index.d.ts +0 -4
- 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 -1035
- 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/qr-code → qr-code}/examples/demo.d.ts +0 -0
- /package/{types/qr-code → qr-code}/examples/download.d.ts +0 -0
- /package/{types/qr-code → qr-code}/examples/full.d.ts +0 -0
- /package/{types/qr-code → qr-code}/examples/image.d.ts +0 -0
- /package/{types/qr-code → qr-code}/interface.d.ts +0 -0
- /package/{types/qr-code → qr-code}/src/index.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,148 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import type { InputProps } from '../input';
|
|
3
|
+
import type { ReadOnly } from '../interface';
|
|
4
|
+
import type { TriggerProps } from '../trigger';
|
|
5
|
+
/**
|
|
6
|
+
* @title ColorPicker
|
|
7
|
+
*/
|
|
8
|
+
export interface ColorPickerProps extends ReadOnly {
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
className?: string | string[];
|
|
11
|
+
/**
|
|
12
|
+
* @zh 默认值
|
|
13
|
+
* @en The initial input content
|
|
14
|
+
*/
|
|
15
|
+
defaultValue?: string | GradientColor[];
|
|
16
|
+
/**
|
|
17
|
+
* @zh 颜色值,受控模式
|
|
18
|
+
* @en The input content value
|
|
19
|
+
*/
|
|
20
|
+
value?: string | GradientColor[];
|
|
21
|
+
/**
|
|
22
|
+
* @zh 显示颜色值
|
|
23
|
+
* @en Show color value
|
|
24
|
+
*/
|
|
25
|
+
showText?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @zh 颜色值的格式
|
|
28
|
+
* @en Color value format
|
|
29
|
+
*/
|
|
30
|
+
format?: 'hex' | 'rgb';
|
|
31
|
+
/**
|
|
32
|
+
* @zh 单一颜色或渐变色模式
|
|
33
|
+
* @en Whether to use single color or gradient color mode
|
|
34
|
+
* @defaultValue single
|
|
35
|
+
*/
|
|
36
|
+
mode?: 'single' | 'gradient' | ['single', 'gradient'];
|
|
37
|
+
/**
|
|
38
|
+
* @zh 禁用
|
|
39
|
+
* @en disabled
|
|
40
|
+
*/
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @zh 输入框的尺寸
|
|
44
|
+
* @en The size of the input box
|
|
45
|
+
* @defaultValue default
|
|
46
|
+
*/
|
|
47
|
+
size?: InputProps['size'];
|
|
48
|
+
/**
|
|
49
|
+
* @zh 默认弹出框是打开还是关闭
|
|
50
|
+
* @en Whether the confirmation box is visible by default
|
|
51
|
+
*/
|
|
52
|
+
defaultPopupVisible?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @zh 弹出框是打开还是关闭。(受控)
|
|
55
|
+
* @en Whether the confirmation box is visible
|
|
56
|
+
*/
|
|
57
|
+
popupVisible?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* @zh 隐藏后是否销毁 DOM 结构
|
|
60
|
+
* @en Whether to umount the node on hiding
|
|
61
|
+
* @defaultValue true
|
|
62
|
+
*/
|
|
63
|
+
unmountOnExit?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* @zh 可以接受所有 Trigger 组件的 Props
|
|
66
|
+
* @en All `Trigger` component props
|
|
67
|
+
*/
|
|
68
|
+
triggerProps?: Partial<TriggerProps>;
|
|
69
|
+
/**
|
|
70
|
+
* @zh 禁用透明通道
|
|
71
|
+
* @en Disable transparency channel
|
|
72
|
+
*/
|
|
73
|
+
disabledAlpha?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* @zh 显示历史颜色
|
|
76
|
+
* @en Show history colors
|
|
77
|
+
*/
|
|
78
|
+
showHistory?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* @zh 历史颜色的颜色数组
|
|
81
|
+
* @en Color array of history colors
|
|
82
|
+
*/
|
|
83
|
+
historyColors?: string[];
|
|
84
|
+
/**
|
|
85
|
+
* @zh 显示预设颜色
|
|
86
|
+
* @en Show preset colors
|
|
87
|
+
*/
|
|
88
|
+
showPreset?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* @zh 预设颜色的颜色数组
|
|
91
|
+
* @en Color array of preset colors
|
|
92
|
+
*/
|
|
93
|
+
presetColors?: string[];
|
|
94
|
+
extra?: ReactNode | ((params: {
|
|
95
|
+
value: string;
|
|
96
|
+
}) => ReactNode);
|
|
97
|
+
/**
|
|
98
|
+
* @zh 自定义触发元素。
|
|
99
|
+
* @en The trigger element which executes the dropdown action.
|
|
100
|
+
*/
|
|
101
|
+
triggerElement?: ReactNode | ((params: {
|
|
102
|
+
value: string | GradientColor[];
|
|
103
|
+
}) => ReactNode);
|
|
104
|
+
/**
|
|
105
|
+
* @zh 颜色值改变时触发
|
|
106
|
+
* @en Callback when the color value changes
|
|
107
|
+
*/
|
|
108
|
+
onChange?: (value: string | GradientColor[]) => void;
|
|
109
|
+
/**
|
|
110
|
+
* @zh 下拉框收起展开时触发。
|
|
111
|
+
* @en Callback when popup shown or hidden.
|
|
112
|
+
*/
|
|
113
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
114
|
+
/**
|
|
115
|
+
* @zh 自定义面板底部内容
|
|
116
|
+
* @en Customize the bottom content of the panel
|
|
117
|
+
*/
|
|
118
|
+
renderFooter?: () => ReactNode;
|
|
119
|
+
}
|
|
120
|
+
export interface RGB {
|
|
121
|
+
r: number;
|
|
122
|
+
g: number;
|
|
123
|
+
b: number;
|
|
124
|
+
}
|
|
125
|
+
export interface HSV {
|
|
126
|
+
h: number;
|
|
127
|
+
s: number;
|
|
128
|
+
v: number;
|
|
129
|
+
}
|
|
130
|
+
export interface Color {
|
|
131
|
+
hsv: HSV;
|
|
132
|
+
rgb: RGB;
|
|
133
|
+
hex: string;
|
|
134
|
+
}
|
|
135
|
+
export declare enum ColorPickerMode {
|
|
136
|
+
Single = "single",
|
|
137
|
+
Gradient = "gradient"
|
|
138
|
+
}
|
|
139
|
+
export interface GradientColor {
|
|
140
|
+
color: string;
|
|
141
|
+
percent: number;
|
|
142
|
+
}
|
|
143
|
+
export interface InternalGradientColor {
|
|
144
|
+
id: string;
|
|
145
|
+
color: Color;
|
|
146
|
+
alpha: number;
|
|
147
|
+
percent: number;
|
|
148
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
/* 2026-03-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/* 潘启宝 2026-03-24 15:26:28 星期二 */
|
|
2
|
+
import "react";
|
|
3
|
+
//#region components/pc/color-picker/interface.ts
|
|
4
|
+
var e = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e.Single = "single", e.Gradient = "gradient", e;
|
|
6
|
+
}({});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as ColorPickerMode };
|
|
9
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { GradientColor, HSV, InternalGradientColor, RGB } from './interface';
|
|
2
|
+
interface RGBA extends RGB {
|
|
3
|
+
a: number | undefined;
|
|
4
|
+
}
|
|
5
|
+
export declare const sortGradientColors: (gradientColors: InternalGradientColor[]) => InternalGradientColor[];
|
|
6
|
+
export declare const mix: (source: RGBA, target: RGBA, progress: number) => RGBA;
|
|
7
|
+
export declare const getGradientString: (value: GradientColor[]) => string;
|
|
8
|
+
export declare const renderGradientBackground: (value: GradientColor[]) => string;
|
|
9
|
+
export declare const renderBackground: (value: GradientColor[] | string) => string;
|
|
10
|
+
export declare const formatRgba: (r: number, g: number, b: number, a: number) => string;
|
|
11
|
+
export declare const formatHex: (r: number, g: number, b: number, a: number) => string;
|
|
12
|
+
export declare const getColorFromHsv: (hsv: HSV) => {
|
|
13
|
+
hsv: HSV;
|
|
14
|
+
rgb: import("@unicom-cloud/utils/tinycolor").Numberify<import("@unicom-cloud/utils/tinycolor").RGBA>;
|
|
15
|
+
hex: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const getRandomId: () => string;
|
|
18
|
+
export declare const mapValueToGradientColor: (value: GradientColor[], disabledAlpha: boolean) => InternalGradientColor[];
|
|
19
|
+
export declare const getColorByGradients: (gradientColors: InternalGradientColor[], percent: number, id?: string) => InternalGradientColor;
|
|
20
|
+
export declare const equalsHsv: (a: HSV, b: HSV) => boolean;
|
|
21
|
+
export declare const equalsRgba: (a: RGBA, b: RGBA) => boolean;
|
|
22
|
+
export declare const isEqualsColors: (colorA: string | GradientColor[], colorB: string | GradientColor[]) => boolean;
|
|
23
|
+
export {};
|
package/color-picker/utils.js
CHANGED
|
@@ -1,91 +1,65 @@
|
|
|
1
|
-
/* 2026-03-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
g: b,
|
|
63
|
-
b: w
|
|
64
|
-
}).toHsv_()
|
|
65
|
-
),
|
|
66
|
-
alpha: C,
|
|
67
|
-
percent: r
|
|
68
|
-
};
|
|
69
|
-
}, _ = (t, r) => t.h === r.h && t.s === r.s && t.v === r.v, G = (t, r) => t.r === r.r && t.g === r.g && t.b === r.b && t.a === r.a, E = (t, r) => l(t) && l(r) ? t === r : a(t) && a(r) ? t.length === r.length && t.every((n, e) => {
|
|
70
|
-
const o = r[e];
|
|
71
|
-
return G(
|
|
72
|
-
new s(n.color).toRgba(),
|
|
73
|
-
new s(o.color).toRgba()
|
|
74
|
-
) && n.percent === o.percent;
|
|
1
|
+
/* 潘启宝 2026-03-24 15:26:28 星期二 */
|
|
2
|
+
import { isArray as e, isString as t } from "../utils/is.js";
|
|
3
|
+
import n from "@unicom-cloud/utils/tinycolor";
|
|
4
|
+
//#region components/pc/color-picker/utils.ts
|
|
5
|
+
var r = (e) => e.sort((e, t) => e.percent - t.percent), i = (e, t, n) => Object.keys(e).reduce((r, i) => ({
|
|
6
|
+
...r,
|
|
7
|
+
[i]: e[i] + (t[i] - e[i]) * n
|
|
8
|
+
}), { ...e }), a = (t) => e(t) ? t.map(({ color: e, percent: t }) => `${e} ${t}%`).join(", ") : t, o = (e) => `linear-gradient(to right, ${a(e)})`, s = (t) => e(t) ? o(t) : t, c = (e, t, n, r) => r < 1 ? `rgba(${e}, ${t}, ${n}, ${r.toFixed(2)})` : `rgb(${e}, ${t}, ${n})`, l = (e, t, r, i) => i < 1 ? new n({
|
|
9
|
+
r: e,
|
|
10
|
+
g: t,
|
|
11
|
+
b: r,
|
|
12
|
+
a: i
|
|
13
|
+
}).toHex8String() : new n({
|
|
14
|
+
r: e,
|
|
15
|
+
g: t,
|
|
16
|
+
b: r
|
|
17
|
+
}).toHexString(), u = (e) => {
|
|
18
|
+
let t = new n({
|
|
19
|
+
h: e.h * 360,
|
|
20
|
+
s: e.s * 100,
|
|
21
|
+
v: e.v * 100
|
|
22
|
+
});
|
|
23
|
+
return {
|
|
24
|
+
hsv: e,
|
|
25
|
+
rgb: t.toRgb(),
|
|
26
|
+
hex: t.toHex()
|
|
27
|
+
};
|
|
28
|
+
}, d = () => Math.random().toFixed(10).slice(2), f = (e, t) => e.map((e) => {
|
|
29
|
+
let r = new n(e.color).toHsv_();
|
|
30
|
+
return {
|
|
31
|
+
id: d(),
|
|
32
|
+
color: u(r),
|
|
33
|
+
alpha: t ? 100 : r.a,
|
|
34
|
+
percent: e.percent
|
|
35
|
+
};
|
|
36
|
+
}), p = (e, t, r) => {
|
|
37
|
+
let a = e.findIndex((e) => e.percent === t);
|
|
38
|
+
if (a !== -1) return {
|
|
39
|
+
...e[a],
|
|
40
|
+
id: r ?? d()
|
|
41
|
+
};
|
|
42
|
+
let o = e.findIndex((e) => e.percent > t), { color: s, alpha: c, percent: l } = e[o - 1], { color: f, alpha: p, percent: m } = e[o], { r: h, g, b: _, a: v } = i({
|
|
43
|
+
...s.rgb,
|
|
44
|
+
a: c
|
|
45
|
+
}, {
|
|
46
|
+
...f.rgb,
|
|
47
|
+
a: p
|
|
48
|
+
}, (t - l) / (m - l));
|
|
49
|
+
return {
|
|
50
|
+
id: r ?? d(),
|
|
51
|
+
color: u(new n({
|
|
52
|
+
r: h,
|
|
53
|
+
g,
|
|
54
|
+
b: _
|
|
55
|
+
}).toHsv_()),
|
|
56
|
+
alpha: v,
|
|
57
|
+
percent: t
|
|
58
|
+
};
|
|
59
|
+
}, m = (e, t) => e.h === t.h && e.s === t.s && e.v === t.v, h = (e, t) => e.r === t.r && e.g === t.g && e.b === t.b && e.a === t.a, g = (r, i) => t(r) && t(i) ? r === i : e(r) && e(i) ? r.length === i.length && r.every((e, t) => {
|
|
60
|
+
let r = i[t];
|
|
61
|
+
return h(new n(e.color).toRgba(), new n(r.color).toRgba()) && e.percent === r.percent;
|
|
75
62
|
}) : !1;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
y as formatHex,
|
|
80
|
-
j as formatRgba,
|
|
81
|
-
T as getColorByGradients,
|
|
82
|
-
d as getColorFromHsv,
|
|
83
|
-
I as getGradientString,
|
|
84
|
-
i as getRandomId,
|
|
85
|
-
E as isEqualsColors,
|
|
86
|
-
P as mapValueToGradientColor,
|
|
87
|
-
v as mix,
|
|
88
|
-
F as renderBackground,
|
|
89
|
-
R as renderGradientBackground,
|
|
90
|
-
q as sortGradientColors
|
|
91
|
-
};
|
|
63
|
+
//#endregion
|
|
64
|
+
export { m as equalsHsv, h as equalsRgba, l as formatHex, c as formatRgba, p as getColorByGradients, u as getColorFromHsv, a as getGradientString, d as getRandomId, g as isEqualsColors, f as mapValueToGradientColor, i as mix, s as renderBackground, o as renderGradientBackground, r as sortGradientColors };
|
|
65
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CommentProps } from './interface';
|
|
2
|
+
declare const Comment: import("react").ForwardRefExoticComponent<CommentProps & {
|
|
3
|
+
children?: import("react").ReactNode | undefined;
|
|
4
|
+
} & import("react").RefAttributes<unknown>>;
|
|
5
|
+
export default Comment;
|
|
6
|
+
export type { CommentProps };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* 潘启宝 2026-03-24 15:26:28 星期二 */
|
|
2
|
+
import { isPlainObject as e, isString as t } from "../utils/is.js";
|
|
3
|
+
import n from "../utils/className.js";
|
|
4
|
+
import { pickDataAttributes as r } from "../utils/pick.js";
|
|
5
|
+
import i from "../hooks/use-merge-props/index.js";
|
|
6
|
+
import a from "../config-provider/context.js";
|
|
7
|
+
import "../config-provider/index.js";
|
|
8
|
+
import { forwardRef as o, useContext as s, useImperativeHandle as c, useRef as l } from "react";
|
|
9
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
10
|
+
//#region components/pc/comment/Comment.tsx
|
|
11
|
+
var f = {
|
|
12
|
+
datetime: "left",
|
|
13
|
+
actions: "left"
|
|
14
|
+
}, p = { align: "left" };
|
|
15
|
+
function m(o, m) {
|
|
16
|
+
let { prefixCls: h, getPrefixCls: g, componentConfig: _, rtl: v } = s(a), y = i(o, p, _?.Comment), b = g?.("comment"), { actions: x, author: S, avatar: C, content: w, datetime: T } = y, E = {
|
|
17
|
+
...f,
|
|
18
|
+
...e(y.align) ? y.align : {
|
|
19
|
+
datetime: y.align,
|
|
20
|
+
actions: y.align
|
|
21
|
+
}
|
|
22
|
+
}, D = l(null);
|
|
23
|
+
return c(m, () => ({ getRootElement() {
|
|
24
|
+
return D.current;
|
|
25
|
+
} })), /* @__PURE__ */ d("div", {
|
|
26
|
+
ref: D,
|
|
27
|
+
className: n(`${b}`, { [`${b}-rtl`]: v }, y.className),
|
|
28
|
+
style: y.style,
|
|
29
|
+
...r(y),
|
|
30
|
+
children: [C && /* @__PURE__ */ u("div", {
|
|
31
|
+
className: n(`${b}-avatar`),
|
|
32
|
+
children: t(C) ? /* @__PURE__ */ u("img", {
|
|
33
|
+
src: C,
|
|
34
|
+
alt: "comment-avatar"
|
|
35
|
+
}) : C
|
|
36
|
+
}), /* @__PURE__ */ d("div", {
|
|
37
|
+
className: `${b}-inner`,
|
|
38
|
+
children: [/* @__PURE__ */ d("div", {
|
|
39
|
+
className: `${b}-inner-content`,
|
|
40
|
+
children: [
|
|
41
|
+
(S || T) && /* @__PURE__ */ d("div", {
|
|
42
|
+
className: `${b}-title ${b}-title-align-${E.datetime}`,
|
|
43
|
+
children: [S && /* @__PURE__ */ u("span", {
|
|
44
|
+
className: `${b}-author`,
|
|
45
|
+
children: S
|
|
46
|
+
}), T && /* @__PURE__ */ u("span", {
|
|
47
|
+
className: `${b}-datetime`,
|
|
48
|
+
children: T
|
|
49
|
+
})]
|
|
50
|
+
}),
|
|
51
|
+
w && /* @__PURE__ */ u("div", {
|
|
52
|
+
className: `${b}-content`,
|
|
53
|
+
children: w
|
|
54
|
+
}),
|
|
55
|
+
x && /* @__PURE__ */ u("div", {
|
|
56
|
+
className: `${b}-actions ${b}-actions-align-${E.actions}`,
|
|
57
|
+
children: x
|
|
58
|
+
})
|
|
59
|
+
]
|
|
60
|
+
}), y.children && /* @__PURE__ */ u("div", {
|
|
61
|
+
className: `${b}-inner-comment`,
|
|
62
|
+
children: y.children
|
|
63
|
+
})]
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
var h = o(m);
|
|
68
|
+
h.displayName = "Comment";
|
|
69
|
+
//#endregion
|
|
70
|
+
export { h as default };
|
|
71
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CommentProps } from './interface';
|
|
2
|
+
declare const Comment: import("react").ForwardRefExoticComponent<CommentProps & {
|
|
3
|
+
children?: import("react").ReactNode | undefined;
|
|
4
|
+
} & import("react").RefAttributes<unknown>>;
|
|
5
|
+
export default Comment;
|
|
6
|
+
export type { CommentProps };
|
package/comment/index.js
CHANGED
|
@@ -1,77 +1,7 @@
|
|
|
1
|
-
/* 2026-03-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { pickDataAttributes as b } from "@unicom-cloud/ui-common/utils/pick";
|
|
9
|
-
import j from "../config-provider/context.js";
|
|
10
|
-
const y = {
|
|
11
|
-
datetime: "left",
|
|
12
|
-
actions: "left"
|
|
13
|
-
}, A = {
|
|
14
|
-
align: "left"
|
|
15
|
-
};
|
|
16
|
-
function E(f, p) {
|
|
17
|
-
const {
|
|
18
|
-
prefixCls: w,
|
|
19
|
-
getPrefixCls: g,
|
|
20
|
-
componentConfig: u,
|
|
21
|
-
rtl: $
|
|
22
|
-
} = N(j), t = x(f, A, u?.Comment), e = g?.("comment"), { actions: o, author: s, avatar: a, content: l, datetime: r } = t, c = {
|
|
23
|
-
...y,
|
|
24
|
-
...P(t.align) ? t.align : {
|
|
25
|
-
datetime: t.align,
|
|
26
|
-
actions: t.align
|
|
27
|
-
}
|
|
28
|
-
}, m = v(null);
|
|
29
|
-
return C(p, () => ({
|
|
30
|
-
getRootElement() {
|
|
31
|
-
return m.current;
|
|
32
|
-
}
|
|
33
|
-
})), /* @__PURE__ */ i(
|
|
34
|
-
"div",
|
|
35
|
-
{
|
|
36
|
-
ref: m,
|
|
37
|
-
className: d(
|
|
38
|
-
`${e}`,
|
|
39
|
-
{ [`${e}-rtl`]: $ },
|
|
40
|
-
t.className
|
|
41
|
-
),
|
|
42
|
-
style: t.style,
|
|
43
|
-
...b(t),
|
|
44
|
-
children: [
|
|
45
|
-
a && /* @__PURE__ */ n("div", { className: d(`${e}-avatar`), children: R(a) ? /* @__PURE__ */ n("img", { src: a, alt: "comment-avatar" }) : a }),
|
|
46
|
-
/* @__PURE__ */ i("div", { className: `${e}-inner`, children: [
|
|
47
|
-
/* @__PURE__ */ i("div", { className: `${e}-inner-content`, children: [
|
|
48
|
-
(s || r) && /* @__PURE__ */ i(
|
|
49
|
-
"div",
|
|
50
|
-
{
|
|
51
|
-
className: `${e}-title ${e}-title-align-${c.datetime}`,
|
|
52
|
-
children: [
|
|
53
|
-
s && /* @__PURE__ */ n("span", { className: `${e}-author`, children: s }),
|
|
54
|
-
r && /* @__PURE__ */ n("span", { className: `${e}-datetime`, children: r })
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
),
|
|
58
|
-
l && /* @__PURE__ */ n("div", { className: `${e}-content`, children: l }),
|
|
59
|
-
o && /* @__PURE__ */ n(
|
|
60
|
-
"div",
|
|
61
|
-
{
|
|
62
|
-
className: `${e}-actions ${e}-actions-align-${c.actions}`,
|
|
63
|
-
children: o
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
] }),
|
|
67
|
-
t.children && /* @__PURE__ */ n("div", { className: `${e}-inner-comment`, children: t.children })
|
|
68
|
-
] })
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
const k = h(E);
|
|
74
|
-
k.displayName = "Comment";
|
|
75
|
-
export {
|
|
76
|
-
k as default
|
|
77
|
-
};
|
|
1
|
+
/* 潘启宝 2026-03-24 15:26:28 星期二 */
|
|
2
|
+
import e from "./Comment.js";
|
|
3
|
+
//#region components/pc/comment/index.tsx
|
|
4
|
+
var t = Object.assign(e, {});
|
|
5
|
+
//#endregion
|
|
6
|
+
export { t as default };
|
|
7
|
+
/* 独立思考,明辨是非 */
|
|
@@ -1,50 +1,39 @@
|
|
|
1
|
-
/* 2026-03-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useContext as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, []);
|
|
36
|
-
const C = g({}, i, r, {
|
|
37
|
-
getPrefixCls: m,
|
|
38
|
-
isRootConfig: !1
|
|
39
|
-
});
|
|
40
|
-
return /* @__PURE__ */ s(e.Provider, { value: C, children: f });
|
|
1
|
+
/* 潘启宝 2026-03-24 15:26:28 星期二 */
|
|
2
|
+
import e from "../hooks/use-merge-props/index.js";
|
|
3
|
+
import t, { ConfigProviderDefaultValue as n } from "./context.js";
|
|
4
|
+
import r from "./initUI.js";
|
|
5
|
+
import i from "./useConfigProvider.js";
|
|
6
|
+
import { useContext as a, useEffect as o, useLayoutEffect as s } from "react";
|
|
7
|
+
import c from "lodash/merge";
|
|
8
|
+
import l from "@unicom-cloud/icons/context";
|
|
9
|
+
import { UI_PC_PREFIX as u } from "@unicom-cloud/utils/constant/ui";
|
|
10
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
11
|
+
//#region components/pc/config-provider/ConfigProvider.tsx
|
|
12
|
+
r();
|
|
13
|
+
var f = { ...n }, p = {};
|
|
14
|
+
function m(n) {
|
|
15
|
+
let r = a(t), m = e(n, f, p), { childrenName: h, theme: g, prefixCls: _ = u, locale: v, rtl: y, effectGlobalNotice: b = !0, effectGlobalModal: x = !0, children: S, getPrefixCls: C } = m;
|
|
16
|
+
function w(e, t) {
|
|
17
|
+
return `${t || _ || u}-${e}`;
|
|
18
|
+
}
|
|
19
|
+
let T = S;
|
|
20
|
+
_ && (_ === u || (T = /* @__PURE__ */ d(l.Provider, {
|
|
21
|
+
value: { prefixCls: _ },
|
|
22
|
+
children: S
|
|
23
|
+
}))), i({
|
|
24
|
+
...m,
|
|
25
|
+
isRootConfig: r.isRootConfig
|
|
26
|
+
}), s(() => () => {}, []), o(() => () => {}, []);
|
|
27
|
+
let E = c({}, r, m, {
|
|
28
|
+
getPrefixCls: w,
|
|
29
|
+
isRootConfig: !1
|
|
30
|
+
});
|
|
31
|
+
return /* @__PURE__ */ d(t.Provider, {
|
|
32
|
+
value: E,
|
|
33
|
+
children: T
|
|
34
|
+
});
|
|
41
35
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
B as ConfigConsumer,
|
|
47
|
-
e as ConfigContext,
|
|
48
|
-
h as ConfigProviderDefaultProps,
|
|
49
|
-
l as default
|
|
50
|
-
};
|
|
36
|
+
m.displayName = "ConfigProvider";
|
|
37
|
+
//#endregion
|
|
38
|
+
export { m as default };
|
|
39
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ConfigProviderProps } from './interface';
|
|
3
|
+
export declare const PREFIX_CLS: "pqb";
|
|
4
|
+
export declare const ConfigProviderDefaultValue: ConfigProviderProps;
|
|
5
|
+
declare const ConfigContext: React.Context<ConfigProviderProps>;
|
|
6
|
+
export default ConfigContext;
|