@unicom-cloud/ui 0.8.93 → 0.8.95
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/Checkbox.js +5 -4
- package/Layout.js +8 -7
- package/Message.js +1 -1
- package/Notification.js +1 -1
- package/Switch.js +1 -1
- package/Tooltip.js +1 -1
- package/Trigger.js +1 -1
- package/back-top/index.js +8 -8
- package/badge/index.js +11 -11
- package/cascader/panel/List.js +1 -1
- package/cascader/panel/Option.js +7 -6
- package/cascader/panel/Search.js +17 -16
- package/checkbox/index.js +7 -6
- package/collapse/Item.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Mode.js +7 -6
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +1 -1
- package/color-picker/colors.js +1 -1
- package/color-picker/hooks/useColorPicker.js +1 -1
- package/color-picker/utils.js +1 -1
- package/components/common/empty/index.js +33 -13
- package/components/common/space/index.js +4 -3
- package/components/common/utils/PqbCSSTransition.js +1 -1
- package/components/common/utils/setPrimaryColor.js +21 -21
- package/components/common/utils/setTheme.js +23 -23
- package/dist/react-transition-group/src/CSSTransition.js +1 -1
- package/dist/react-transition-group/src/SwitchTransition.js +1 -1
- package/dist/tinycolor/chunk/{DGZSWe7E.js → BOzCVdr0.js} +43 -43
- package/dist/tinycolor/customize/index.js +1 -1
- package/dist/tween/src/tween.js +25 -24
- package/index.js +173 -173
- package/input-tag/InputTag.js +1 -1
- package/layout/index.js +11 -9
- package/message/index.js +1 -1
- package/notification/index.js +1 -1
- package/package.json +1 -1
- package/pagination/PageItem.js +52 -53
- package/pagination/Pagination.js +2 -1
- package/pagination/interface.js +4 -1
- package/select/Option.js +12 -11
- package/select/Select.js +1 -0
- package/statistic/index.js +16 -16
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +153 -153
- package/table/tbody/Tr.js +3 -2
- package/table/thead/Column.js +3 -2
- package/table/thead/index.js +3 -2
- package/tag/index.js +24 -24
- package/time-picker/util.js +4 -4
- package/tooltip/index.js +1 -1
- package/transfer/Item.js +17 -16
- package/transfer/List.js +12 -11
- package/tree/Node.js +43 -41
- package/tree/Tree.js +215 -211
- package/trigger/index.js +1 -1
- package/types/pc/affix/index.d.ts +1 -1
- package/types/pc/alert/index.d.ts +1 -1
- package/types/pc/anchor/Anchor.d.ts +1 -1
- package/types/pc/anchor/Link.d.ts +1 -1
- package/types/pc/anchor/context.d.ts +1 -1
- package/types/pc/auto-complete/index.d.ts +1 -1
- package/types/pc/avatar/Avatar.d.ts +1 -1
- package/types/pc/avatar/Group.d.ts +1 -1
- package/types/pc/avatar/context.d.ts +1 -1
- package/types/pc/back-top/index.d.ts +1 -1
- package/types/pc/badge/index.d.ts +2 -2
- package/types/pc/badge/interface.d.ts +1 -1
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/breadcrumb/index.d.ts +1 -1
- package/types/pc/button/Group.d.ts +1 -1
- package/types/pc/button/index.d.ts +1 -1
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/card/Grid.d.ts +1 -1
- package/types/pc/card/Meta.d.ts +1 -1
- package/types/pc/card/index.d.ts +1 -1
- package/types/pc/carousel/Arrow.d.ts +1 -1
- package/types/pc/carousel/Indicator.d.ts +1 -1
- package/types/pc/carousel/index.d.ts +2 -2
- package/types/pc/cascader/Cascader.d.ts +1 -1
- package/types/pc/cascader/util.d.ts +1 -1
- package/types/pc/checkbox/Checkbox.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +1 -1
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/index.d.ts +1 -1
- package/types/pc/collapse/Collapse.d.ts +1 -1
- package/types/pc/collapse/Item.d.ts +1 -1
- package/types/pc/color-picker/InputHex.d.ts +1 -1
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Mode.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/color-picker/index.d.ts +1 -1
- package/types/pc/color-picker/utils.d.ts +1 -1
- package/types/pc/comment/index.d.ts +1 -1
- package/types/pc/config-provider/ConfigProvider.d.ts +3 -2
- package/types/pc/config-provider/context.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +1 -1
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/date-picker/Picker.d.ts +1 -2
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/date-picker/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/details/index.d.ts +1 -1
- package/types/pc/divider/index.d.ts +1 -1
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -1
- package/types/pc/drawer/Drawer.d.ts +2 -2
- package/types/pc/dropdown/Button.d.ts +1 -1
- package/types/pc/dropdown/index.d.ts +1 -1
- package/types/pc/empty/index.d.ts +1 -1
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/Form.d.ts +1 -1
- package/types/pc/form/FormLabel.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/FormProvider.d.ts +1 -1
- package/types/pc/form/context.d.ts +1 -1
- package/types/pc/form/hook/useForm.d.ts +1 -1
- package/types/pc/form/index.d.ts +1 -1
- package/types/pc/form/interface.d.ts +2 -2
- package/types/pc/form/store.d.ts +3 -4
- package/types/pc/form/util.d.ts +3 -3
- package/types/pc/grid/Col.d.ts +1 -1
- package/types/pc/grid/Grid.d.ts +1 -1
- package/types/pc/grid/GridItem.d.ts +1 -1
- package/types/pc/grid/Row.d.ts +1 -1
- package/types/pc/grid/context.d.ts +1 -1
- package/types/pc/grid/util.d.ts +1 -1
- package/types/pc/hooks/use-watermark/index.d.ts +1 -1
- package/types/pc/icons/file/index.d.ts +1 -1
- package/types/pc/image/Image.d.ts +1 -1
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreview.d.ts +1 -1
- package/types/pc/image/ImagePreviewGroup.d.ts +1 -1
- package/types/pc/image/ImagePreviewToolbar.d.ts +1 -1
- package/types/pc/image/index.d.ts +1 -1
- package/types/pc/image/previewGroupContext.d.ts +1 -1
- package/types/pc/input/Button.d.ts +1 -1
- package/types/pc/input/Group.d.ts +1 -1
- package/types/pc/input/Input.d.ts +1 -1
- package/types/pc/input/InputElement.d.ts +1 -1
- package/types/pc/input/Password.d.ts +1 -1
- package/types/pc/input/Search.d.ts +1 -1
- package/types/pc/input/Textarea.d.ts +1 -1
- package/types/pc/input/index.d.ts +1 -1
- package/types/pc/input/useComposition.d.ts +1 -1
- package/types/pc/input-number/index.d.ts +1 -1
- package/types/pc/input-tag/InputTag.d.ts +2 -2
- package/types/pc/input-tag/interface.d.ts +2 -2
- package/types/pc/layout/Content.d.ts +1 -1
- package/types/pc/layout/Footer.d.ts +1 -1
- package/types/pc/layout/Header.d.ts +1 -1
- package/types/pc/layout/Sider.d.ts +1 -1
- package/types/pc/layout/index.d.ts +2 -2
- package/types/pc/link/index.d.ts +1 -1
- package/types/pc/list/Item.d.ts +1 -1
- package/types/pc/list/Meta.d.ts +1 -1
- package/types/pc/list/index.d.ts +2 -2
- package/types/pc/mentions/index.d.ts +1 -1
- package/types/pc/mentions/util.d.ts +1 -1
- package/types/pc/menu/Item.d.ts +1 -1
- package/types/pc/menu/ItemGroup.d.ts +1 -1
- package/types/pc/menu/Menu.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/context.d.ts +2 -2
- package/types/pc/menu/index.d.ts +1 -1
- package/types/pc/menu/interface.d.ts +1 -1
- package/types/pc/message/index.d.ts +2 -2
- package/types/pc/message/useMessage.d.ts +1 -1
- package/types/pc/modal/Modal.d.ts +2 -2
- package/types/pc/modal/config.d.ts +1 -1
- package/types/pc/notification/index.d.ts +2 -2
- package/types/pc/notification/useNotification.d.ts +1 -1
- package/types/pc/page-header/index.d.ts +2 -2
- package/types/pc/pagination/PageItem.d.ts +2 -47
- package/types/pc/pagination/Pagination.d.ts +1 -1
- package/types/pc/pagination/interface.d.ts +47 -0
- package/types/pc/popconfirm/index.d.ts +1 -1
- package/types/pc/popover/index.d.ts +1 -1
- package/types/pc/popover/interface.d.ts +1 -1
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/index.d.ts +1 -1
- package/types/pc/radio/Group.d.ts +1 -1
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/radio/index.d.ts +1 -1
- package/types/pc/rate/index.d.ts +1 -1
- package/types/pc/resize-box/Split.d.ts +1 -1
- package/types/pc/resize-box/SplitGroup.d.ts +1 -1
- package/types/pc/resize-box/index.d.ts +1 -1
- package/types/pc/result/index.d.ts +1 -1
- package/types/pc/select/OptGroup.d.ts +1 -1
- package/types/pc/select/Option.d.ts +1 -1
- package/types/pc/select/Select.d.ts +3 -2
- package/types/pc/select/index.d.ts +1 -1
- package/types/pc/select/util.d.ts +1 -1
- package/types/pc/select-view/Core.d.ts +1 -1
- package/types/pc/select-view/index.d.ts +1 -1
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +1 -1
- package/types/pc/skeleton/index.d.ts +1 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/hook/useInterval.d.ts +1 -1
- package/types/pc/slider/index.d.ts +1 -1
- package/types/pc/space/index.d.ts +1 -1
- package/types/pc/space-/index.d.ts +1 -1
- package/types/pc/spin/index.d.ts +1 -1
- package/types/pc/statistic/Countdown.d.ts +1 -1
- package/types/pc/statistic/index.d.ts +2 -2
- package/types/pc/steps/Step.d.ts +1 -1
- package/types/pc/steps/index.d.ts +1 -1
- package/types/pc/switch/index.d.ts +2 -2
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/Table.d.ts +1 -1
- package/types/pc/table/constant.d.ts +1 -1
- package/types/pc/table/interface.d.ts +1 -1
- package/types/pc/table/util.d.ts +1 -1
- package/types/pc/tabs/Tab.d.ts +1 -1
- package/types/pc/tabs/TabPane.d.ts +1 -1
- package/types/pc/tabs/index.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/index.d.ts +1 -1
- package/types/pc/tag/index.d.ts +1 -1
- package/types/pc/time-picker/Picker.d.ts +1 -1
- package/types/pc/time-picker/RangePicker.d.ts +1 -1
- package/types/pc/time-picker/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/timeline/Item.d.ts +1 -1
- package/types/pc/timeline/Timeline.d.ts +1 -1
- package/types/pc/timeline/index.d.ts +1 -1
- package/types/pc/tooltip/index.d.ts +2 -2
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/transfer/index.d.ts +1 -1
- package/types/pc/tree/Animation.d.ts +1 -1
- package/types/pc/tree/Context.d.ts +1 -1
- package/types/pc/tree/Node.d.ts +1 -1
- package/types/pc/tree/Tree.d.ts +1 -1
- package/types/pc/tree/index.d.ts +2 -2
- package/types/pc/tree/interface.d.ts +19 -3
- package/types/pc/tree/util.d.ts +1 -1
- package/types/pc/tree-select/List.d.ts +1 -1
- package/types/pc/trigger/getPopupStyle.d.ts +1 -1
- package/types/pc/trigger/index.d.ts +2 -2
- package/types/pc/typography/EditContent.d.ts +1 -1
- package/types/pc/typography/Ellipsis.d.ts +1 -1
- package/types/pc/typography/Operations.d.ts +1 -1
- package/types/pc/typography/Paragraph.d.ts +1 -1
- package/types/pc/typography/Title.d.ts +1 -1
- package/types/pc/typography/Typography.d.ts +1 -1
- package/types/pc/typography/useCssEllipsis.d.ts +1 -1
- package/types/pc/typography/useEllipsis.d.ts +1 -1
- package/types/pc/upload/TriggerNode.d.ts +1 -1
- package/types/pc/upload/Upload.d.ts +2 -2
- package/types/pc/upload/Uploader.d.ts +1 -1
- package/types/pc/upload/request.d.ts +1 -1
- package/types/pc/upload/util.d.ts +1 -1
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/verification-code/index.d.ts +1 -1
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/types/pc/watermark/index.d.ts +2 -2
- package/typography/Ellipsis.js +7 -5
- package/upload/list/index.js +1 -1
- package/utils/color.js +1 -1
- package/utils/index.js +2 -2
- package/utils/reactTransitionGroup.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/version/index.js +1 -1
- /package/dist/react-transition-group/chunk/{CPfP7aNL.js → C6QwjD4L.js} +0 -0
package/types/pc/grid/Col.d.ts
CHANGED
package/types/pc/grid/Grid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { GridProps } from './interface';
|
|
3
3
|
declare const GridComponent: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default GridComponent;
|
|
5
5
|
export type { GridProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { GridItemProps } from './interface';
|
|
3
3
|
declare const ForwardRefGridItem: React.ForwardRefExoticComponent<GridItemProps & React.RefAttributes<unknown>>;
|
|
4
4
|
declare const GridItemComponent: typeof ForwardRefGridItem & {
|
|
5
5
|
__PQB_GRID_ITEM__: boolean;
|
package/types/pc/grid/Row.d.ts
CHANGED
package/types/pc/grid/util.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { GridItemData } from './interface';
|
|
2
2
|
export declare function resolveItemData(cols: number, { span, offset, suffix }: GridItemData): GridItemData;
|
|
3
3
|
export declare function setItemVisible({ cols, collapsed, collapsedRows, itemDataList, }: {
|
|
4
4
|
cols: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IconFileProps } from './interface';
|
|
2
2
|
declare const IconFile: import("react").ForwardRefExoticComponent<IconFileProps & import("react").RefAttributes<unknown>>;
|
|
3
3
|
export default IconFile;
|
|
4
4
|
export type { IconFileProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ImagePreview from './ImagePreview';
|
|
3
3
|
import ImagePreviewGroup from './ImagePreviewGroup';
|
|
4
|
-
import
|
|
4
|
+
import { ImageProps } from './interface';
|
|
5
5
|
declare const RefImageComponent: React.ForwardRefExoticComponent<ImageProps & {
|
|
6
6
|
_index?: number;
|
|
7
7
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Image from './Image';
|
|
2
|
-
export type { ImagePreviewActionProps, ImagePreviewGroupProps, ImagePreviewProps, ImageProps, } from './interface';
|
|
3
2
|
export * from './Image';
|
|
3
|
+
export type { ImagePreviewActionProps, ImagePreviewGroupProps, ImagePreviewProps, ImageProps, } from './interface';
|
|
4
4
|
export default Image;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { InputButtonProps, RefInputType } from './interface';
|
|
3
3
|
declare const Button: React.ForwardRefExoticComponent<InputButtonProps & React.RefAttributes<RefInputType>>;
|
|
4
4
|
export default Button;
|
|
5
5
|
export type { InputButtonProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { InputGroupProps } from './interface';
|
|
3
3
|
declare const Group: React.ForwardRefExoticComponent<InputGroupProps & {
|
|
4
4
|
children?: React.ReactNode | undefined;
|
|
5
5
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -7,7 +7,7 @@ import Password from './Password';
|
|
|
7
7
|
import Search from './Search';
|
|
8
8
|
import InputTag from './Tag';
|
|
9
9
|
import TextArea from './Textarea';
|
|
10
|
-
import
|
|
10
|
+
import { InputProps, RefInputType } from './interface';
|
|
11
11
|
export declare function formatValue(value: any, maxLength: any): any;
|
|
12
12
|
declare const ForwardRefInput: React.ForwardRefExoticComponent<InputProps & MergePropsOptions & React.RefAttributes<RefInputType>>;
|
|
13
13
|
declare const Input: typeof ForwardRefInput & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { InputComponentProps, RefInputType } from './interface';
|
|
3
3
|
declare const InputComponent: React.ForwardRefExoticComponent<InputComponentProps & React.RefAttributes<RefInputType>>;
|
|
4
4
|
export default InputComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { InputPasswordProps, RefInputType } from './interface';
|
|
3
3
|
declare const Password: React.ForwardRefExoticComponent<InputPasswordProps & React.RefAttributes<RefInputType>>;
|
|
4
4
|
export default Password;
|
|
5
5
|
export type { InputPasswordProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { InputSearchProps, RefInputType } from './interface';
|
|
3
3
|
declare const Search: React.ForwardRefExoticComponent<InputSearchProps & React.RefAttributes<RefInputType>>;
|
|
4
4
|
export default Search;
|
|
5
5
|
export type { InputSearchProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Input from './Input';
|
|
2
|
-
import
|
|
2
|
+
import { InputProps, RefInputType, TextAreaProps } from './interface';
|
|
3
3
|
import { InputPasswordProps } from './Password';
|
|
4
4
|
import { InputSearchProps } from './Search';
|
|
5
5
|
import { RefTextAreaType } from './Textarea';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { InputProps, TextAreaProps } from './interface';
|
|
3
3
|
declare function useComposition({ value, maxLength, onChange, onKeyDown, onPressEnter, beforeTriggerValueChangeCallback, normalizeHandler, }: {
|
|
4
4
|
value: string;
|
|
5
5
|
maxLength: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RefInputType } from '../input/interface';
|
|
3
|
-
import
|
|
3
|
+
import { InputNumberProps } from './interface';
|
|
4
4
|
declare const InputNumberComponent: React.ForwardRefExoticComponent<InputNumberProps & React.RefAttributes<RefInputType>>;
|
|
5
5
|
export default InputNumberComponent;
|
|
6
6
|
export type { InputNumberProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { InputTagProps } from './interface';
|
|
3
3
|
type InputTagHandle = {
|
|
4
4
|
focus: () => void;
|
|
5
5
|
blur: () => void;
|
|
6
6
|
};
|
|
7
7
|
declare const InputTagRef: React.ForwardRefExoticComponent<InputTagProps<any> & React.RefAttributes<InputTagHandle>>;
|
|
8
8
|
export default InputTagRef;
|
|
9
|
-
export { InputTagProps };
|
|
9
|
+
export type { InputTagProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { PopoverProps } from '../popover';
|
|
3
3
|
export type ObjectValueType = {
|
|
4
|
-
value?:
|
|
4
|
+
value?: unknown;
|
|
5
5
|
label?: ReactNode;
|
|
6
6
|
closable?: boolean;
|
|
7
7
|
};
|
|
@@ -9,7 +9,7 @@ export type ValueChangeReason = 'add' | 'remove' | 'clear' | 'sort';
|
|
|
9
9
|
/**
|
|
10
10
|
* @title InputTag
|
|
11
11
|
*/
|
|
12
|
-
export interface InputTagProps<T =
|
|
12
|
+
export interface InputTagProps<T = unknown> {
|
|
13
13
|
className?: string | string[];
|
|
14
14
|
style?: CSSProperties;
|
|
15
15
|
/**
|
|
@@ -3,11 +3,11 @@ import Content from './Content';
|
|
|
3
3
|
import Footer from './Footer';
|
|
4
4
|
import Header from './Header';
|
|
5
5
|
import Sider, { SiderContext } from './Sider';
|
|
6
|
-
import
|
|
6
|
+
import { LayoutProps } from './interface';
|
|
7
7
|
export interface LayoutState {
|
|
8
8
|
siders: string[];
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export { SiderContext };
|
|
11
11
|
declare const ForwardRefLayout: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<unknown>>;
|
|
12
12
|
declare const LayoutComponent: typeof ForwardRefLayout & {
|
|
13
13
|
Sider: typeof Sider;
|
package/types/pc/link/index.d.ts
CHANGED
package/types/pc/list/Item.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Meta from './Meta';
|
|
3
|
-
import
|
|
3
|
+
import { ListItemProps } from './interface';
|
|
4
4
|
declare const ForwardRefItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const ItemComponent: typeof ForwardRefItem & {
|
|
6
6
|
Meta: typeof Meta;
|
package/types/pc/list/Meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { ListItemMetaProps } from './interface';
|
|
3
3
|
declare const MetaComponent: React.ForwardRefExoticComponent<ListItemMetaProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default MetaComponent;
|
package/types/pc/list/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Item from './Item';
|
|
3
|
-
import
|
|
3
|
+
import { ListProps } from './interface';
|
|
4
4
|
interface ForwardRefListType extends React.ForwardRefExoticComponent<React.PropsWithoutRef<ListProps> & React.RefAttributes<HTMLDivElement>> {
|
|
5
5
|
<T = any>(props: React.PropsWithChildren<ListProps<T>> & {
|
|
6
6
|
ref?: React.Ref<HTMLDivElement>;
|
|
@@ -10,4 +10,4 @@ interface ForwardRefListType extends React.ForwardRefExoticComponent<React.Props
|
|
|
10
10
|
declare const ListComponent: ForwardRefListType;
|
|
11
11
|
export { Item as ListItem };
|
|
12
12
|
export default ListComponent;
|
|
13
|
-
export { ListProps };
|
|
13
|
+
export type { ListProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { MentionsProps } from './interface';
|
|
3
3
|
declare const MentionsComponent: React.ForwardRefExoticComponent<MentionsProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default MentionsComponent;
|
|
5
5
|
export type { MentionsProps };
|
package/types/pc/menu/Item.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MenuItemProps } from './interface';
|
|
2
2
|
declare const ForwardRefItem: import("react").ForwardRefExoticComponent<MenuItemProps & import("react").RefAttributes<unknown>>;
|
|
3
3
|
declare const ItemComponent: typeof ForwardRefItem & {
|
|
4
4
|
menuType: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MenuItemGroupProps } from './interface';
|
|
2
2
|
declare const ForwardRefItemGroup: import("react").ForwardRefExoticComponent<MenuItemGroupProps & import("react").RefAttributes<unknown>>;
|
|
3
3
|
declare const ItemGroupComponent: typeof ForwardRefItemGroup & {
|
|
4
4
|
menuType: string;
|
package/types/pc/menu/Menu.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MenuProps } from './interface';
|
|
2
2
|
export type HotkeyInfo = {
|
|
3
3
|
update: boolean;
|
|
4
4
|
activeKeyPath: string[];
|
|
5
5
|
type: 'sibling' | 'generation' | 'enter';
|
|
6
6
|
};
|
|
7
7
|
export type ResetHotkeyInfo = (activeKey?: string) => void;
|
|
8
|
-
declare const MenuContext: import("react").Context<Pick<MenuProps, "theme" | "
|
|
8
|
+
declare const MenuContext: import("react").Context<Pick<MenuProps, "theme" | "mode" | "collapse" | "icons" | "triggerProps" | "inDropdown" | "tooltipProps" | "levelIndent" | "selectedKeys" | "openKeys" | "autoScrollIntoView" | "scrollConfig"> & {
|
|
9
9
|
id?: string;
|
|
10
10
|
prefixCls?: string;
|
|
11
11
|
onClickMenuItem?: (key: string, e: any) => void;
|
package/types/pc/menu/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Menu from './Menu';
|
|
2
|
+
export type { MenuItemGroupProps, MenuItemProps, MenuProps, MenuSubMenuProps, } from './interface';
|
|
2
3
|
export * from './Menu';
|
|
3
4
|
export default Menu;
|
|
4
|
-
export type { MenuItemGroupProps, MenuItemProps, MenuProps, MenuSubMenuProps, } from './interface';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import { MessageHookReturnType, MessageProps } from './interface';
|
|
3
3
|
import useMessage from './useMessage';
|
|
4
4
|
export declare const messageTypes: string[];
|
|
5
5
|
export type ConfigProps = {
|
|
@@ -30,4 +30,4 @@ interface ComponentStaticProps {
|
|
|
30
30
|
declare const Message: React.FC<MessageProps> & ComponentStaticProps;
|
|
31
31
|
export { useMessage };
|
|
32
32
|
export default Message;
|
|
33
|
-
export { MessageProps };
|
|
33
|
+
export type { MessageProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
import { ConfigProps } from '.';
|
|
3
|
-
import
|
|
3
|
+
import { MessageHookReturnType } from './interface';
|
|
4
4
|
export type messageFuncType = MessageHookReturnType;
|
|
5
5
|
declare function useMessage(commonConfig?: ConfigProps): [MessageHookReturnType, JSX.Element];
|
|
6
6
|
export default useMessage;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, PropsWithChildren } from 'react';
|
|
2
2
|
import { ConfirmProps } from './Confirm';
|
|
3
3
|
import { ModalConfigType } from './config';
|
|
4
|
-
import
|
|
4
|
+
import { ModalProps, ModalReturnProps } from './interface';
|
|
5
5
|
import useModal from './use-modal';
|
|
6
6
|
export interface ModalComponent extends ForwardRefExoticComponent<PropsWithChildren<ModalProps>> {
|
|
7
7
|
show: (props: ConfirmProps) => ModalReturnProps;
|
|
@@ -16,4 +16,4 @@ export interface ModalComponent extends ForwardRefExoticComponent<PropsWithChild
|
|
|
16
16
|
}
|
|
17
17
|
declare const ExportedModalComponent: ModalComponent;
|
|
18
18
|
export default ExportedModalComponent;
|
|
19
|
-
export { ModalProps, ModalReturnProps };
|
|
19
|
+
export type { ModalProps, ModalReturnProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ConfigProviderProps } from '../config-provider';
|
|
2
2
|
export declare function setConfigProviderProps(configProviderProps: ConfigProviderProps): void;
|
|
3
3
|
export declare function getConfigProviderProps(): ConfigProviderProps;
|
|
4
4
|
export type ModalConfigType = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactInstance } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { NotificationHookReturnType, NotificationProps } from './interface';
|
|
3
3
|
import useNotification from './useNotification';
|
|
4
4
|
export declare const notificationTypes: string[];
|
|
5
5
|
export type ConfigProps = {
|
|
@@ -26,4 +26,4 @@ interface ComponentStaticProps {
|
|
|
26
26
|
declare const Notification: React.FC<NotificationProps> & ComponentStaticProps;
|
|
27
27
|
export { useNotification };
|
|
28
28
|
export default Notification;
|
|
29
|
-
export { NotificationProps };
|
|
29
|
+
export type { NotificationProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
import { ConfigProps } from '.';
|
|
3
|
-
import
|
|
3
|
+
import { NotificationHookReturnType } from './interface';
|
|
4
4
|
export type notificationFuncType = NotificationHookReturnType;
|
|
5
5
|
declare function useNotification(commonConfig?: ConfigProps): [NotificationHookReturnType, JSX.Element];
|
|
6
6
|
export default useNotification;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { PageHeaderProps } from './interface';
|
|
3
3
|
declare const _default: React.ForwardRefExoticComponent<PageHeaderProps & {
|
|
4
4
|
children?: React.ReactNode | undefined;
|
|
5
5
|
} & React.RefAttributes<unknown>>;
|
|
6
6
|
export default _default;
|
|
7
|
-
export { PageHeaderProps };
|
|
7
|
+
export type { PageHeaderProps };
|
|
@@ -1,50 +1,5 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
export interface PagerProps {
|
|
4
|
-
pageItemStyle?: CSSProperties;
|
|
5
|
-
activePageItemStyle?: CSSProperties;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
rootPrefixCls: string;
|
|
8
|
-
pageNum: number;
|
|
9
|
-
current: number;
|
|
10
|
-
onClick: (value: number) => void;
|
|
11
|
-
itemRender?: itemRenderType;
|
|
12
|
-
}
|
|
13
|
-
export interface JumpPagerProps {
|
|
14
|
-
pageItemStyle?: CSSProperties;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
rootPrefixCls: string;
|
|
17
|
-
type: StepType;
|
|
18
|
-
current: number;
|
|
19
|
-
allPages: number;
|
|
20
|
-
jumpPage: number;
|
|
21
|
-
onClick: (value: number) => void;
|
|
22
|
-
icons?: {
|
|
23
|
-
prev?: ReactNode;
|
|
24
|
-
next?: ReactNode;
|
|
25
|
-
more?: ReactNode;
|
|
26
|
-
};
|
|
27
|
-
itemRender?: itemRenderType;
|
|
28
|
-
}
|
|
29
|
-
export declare enum StepType {
|
|
30
|
-
previous = 0,
|
|
31
|
-
next = 1
|
|
32
|
-
}
|
|
33
|
-
export interface StepPagerProps {
|
|
34
|
-
pageItemStyle?: CSSProperties;
|
|
35
|
-
disabled?: boolean;
|
|
36
|
-
rootPrefixCls: string;
|
|
37
|
-
type: StepType;
|
|
38
|
-
current: number;
|
|
39
|
-
allPages: number;
|
|
40
|
-
onClick: (value: number) => void;
|
|
41
|
-
icons?: {
|
|
42
|
-
prev?: ReactNode;
|
|
43
|
-
next?: ReactNode;
|
|
44
|
-
more?: ReactNode;
|
|
45
|
-
};
|
|
46
|
-
itemRender?: itemRenderType;
|
|
47
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JumpPagerProps, PagerProps, StepPagerProps } from './interface';
|
|
48
3
|
/**
|
|
49
4
|
* default pager item
|
|
50
5
|
*/
|
|
@@ -132,3 +132,50 @@ export interface PaginationProps {
|
|
|
132
132
|
mini?: boolean;
|
|
133
133
|
pageOption?: boolean | ReactNode;
|
|
134
134
|
}
|
|
135
|
+
type itemRenderType = (page: number, type: 'page' | 'more' | 'prev' | 'next', originElement: ReactNode) => ReactNode;
|
|
136
|
+
export interface PagerProps {
|
|
137
|
+
pageItemStyle?: CSSProperties;
|
|
138
|
+
activePageItemStyle?: CSSProperties;
|
|
139
|
+
disabled?: boolean;
|
|
140
|
+
rootPrefixCls: string;
|
|
141
|
+
pageNum: number;
|
|
142
|
+
current: number;
|
|
143
|
+
onClick: (value: number) => void;
|
|
144
|
+
itemRender?: itemRenderType;
|
|
145
|
+
}
|
|
146
|
+
export interface JumpPagerProps {
|
|
147
|
+
pageItemStyle?: CSSProperties;
|
|
148
|
+
disabled?: boolean;
|
|
149
|
+
rootPrefixCls: string;
|
|
150
|
+
type: StepType;
|
|
151
|
+
current: number;
|
|
152
|
+
allPages: number;
|
|
153
|
+
jumpPage: number;
|
|
154
|
+
onClick: (value: number) => void;
|
|
155
|
+
icons?: {
|
|
156
|
+
prev?: ReactNode;
|
|
157
|
+
next?: ReactNode;
|
|
158
|
+
more?: ReactNode;
|
|
159
|
+
};
|
|
160
|
+
itemRender?: itemRenderType;
|
|
161
|
+
}
|
|
162
|
+
export declare enum StepType {
|
|
163
|
+
previous = 0,
|
|
164
|
+
next = 1
|
|
165
|
+
}
|
|
166
|
+
export interface StepPagerProps {
|
|
167
|
+
pageItemStyle?: CSSProperties;
|
|
168
|
+
disabled?: boolean;
|
|
169
|
+
rootPrefixCls: string;
|
|
170
|
+
type: StepType;
|
|
171
|
+
current: number;
|
|
172
|
+
allPages: number;
|
|
173
|
+
onClick: (value: number) => void;
|
|
174
|
+
icons?: {
|
|
175
|
+
prev?: ReactNode;
|
|
176
|
+
next?: ReactNode;
|
|
177
|
+
more?: ReactNode;
|
|
178
|
+
};
|
|
179
|
+
itemRender?: itemRenderType;
|
|
180
|
+
}
|
|
181
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PopconfirmProps } from './interface';
|
|
2
2
|
declare const PopconfirmComponent: import("react").ForwardRefExoticComponent<PopconfirmProps & {
|
|
3
3
|
children?: import("react").ReactNode | undefined;
|
|
4
4
|
} & import("react").RefAttributes<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PopoverProps } from './interface';
|
|
2
2
|
declare const PopoverComponent: import("react").ForwardRefExoticComponent<PopoverProps & {
|
|
3
3
|
children?: import("react").ReactNode | undefined;
|
|
4
4
|
} & import("react").RefAttributes<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ProgressProps } from './interface';
|
|
2
2
|
declare const ProgressRef: import("react").ForwardRefExoticComponent<ProgressProps & import("react").RefAttributes<unknown>>;
|
|
3
3
|
export default ProgressRef;
|
|
4
4
|
export type { ProgressProps };
|