acud 1.2.23 → 1.2.25
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/dist/acud.css +5 -4
- package/dist/acud.css.map +1 -1
- package/dist/acud.js +191 -159
- package/dist/acud.js.map +1 -1
- package/dist/acud.min.css +1 -1
- package/dist/acud.min.css.map +1 -1
- package/dist/acud.min.js +4 -4
- package/dist/acud.min.js.map +1 -1
- package/es/affix/index.d.ts +1 -1
- package/es/anchor/Anchor.d.ts +1 -1
- package/es/anchor/AnchorLink.d.ts +2 -2
- package/es/badge/SingleNumber.d.ts +2 -2
- package/es/button/LoadingIcon.d.ts +1 -2
- package/es/calendar/Header.d.ts +2 -2
- package/es/calendar/generateCalendar.d.ts +1 -1
- package/es/calendar/index.d.ts +1 -1
- package/es/card/Card.d.ts +1 -1
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/MenuItem.d.ts +1 -1
- package/es/cascader/Menus.d.ts +3 -3
- package/es/checkbox/BaseCheckbox.d.ts +1 -1
- package/es/checkbox/ButtonCheckbox.d.ts +1 -1
- package/es/checkbox/GroupButtonCheckbox.d.ts +1 -2
- package/es/clear/index.d.ts +1 -2
- package/es/date-picker/PickerButton.d.ts +2 -2
- package/es/date-picker/PickerTag.d.ts +2 -2
- package/es/date-picker/src/Picker.d.ts +1 -1
- package/es/date-picker/src/PickerPanel.d.ts +1 -1
- package/es/date-picker/src/PickerTrigger.d.ts +1 -1
- package/es/date-picker/src/RangePicker.d.ts +1 -1
- package/es/date-picker/src/panels/DatePanel/DateBody.d.ts +1 -1
- package/es/date-picker/src/panels/DatePanel/DateHeader.d.ts +2 -2
- package/es/date-picker/src/panels/DatePanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/DatetimePanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/DecadePanel/DecadeBody.d.ts +2 -2
- package/es/date-picker/src/panels/DecadePanel/DecadeHeader.d.ts +2 -2
- package/es/date-picker/src/panels/DecadePanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/Header.d.ts +1 -1
- package/es/date-picker/src/panels/MonthPanel/MonthBody.d.ts +1 -1
- package/es/date-picker/src/panels/MonthPanel/MonthHeader.d.ts +2 -2
- package/es/date-picker/src/panels/MonthPanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/PanelBody.d.ts +1 -1
- package/es/date-picker/src/panels/QuarterPanel/QuarterBody.d.ts +2 -2
- package/es/date-picker/src/panels/QuarterPanel/QuarterHeader.d.ts +2 -2
- package/es/date-picker/src/panels/QuarterPanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/TimePanel/TimeBody.d.ts +1 -1
- package/es/date-picker/src/panels/TimePanel/TimeHeader.d.ts +2 -2
- package/es/date-picker/src/panels/TimePanel/TimeUnitColumn.d.ts +1 -1
- package/es/date-picker/src/panels/TimePanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/WeekPanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/YearPanel/YearBody.d.ts +2 -2
- package/es/date-picker/src/panels/YearPanel/YearHeader.d.ts +2 -2
- package/es/date-picker/src/panels/YearPanel/index.d.ts +2 -2
- package/es/date-picker/src/utils/getExtraFooter.d.ts +1 -1
- package/es/date-picker/src/utils/getRanges.d.ts +2 -2
- package/es/form/ErrorList.d.ts +1 -1
- package/es/input-number/src/StepHandler.d.ts +1 -1
- package/es/loading/icon.d.ts +1 -2
- package/es/locale-provider/index.d.ts +1 -1
- package/es/menu/SubMenu.js +4 -1
- package/es/menu/rc-menu/Divider.d.ts +1 -1
- package/es/menu/rc-menu/SubMenu/InlineSubMenuList.d.ts +1 -1
- package/es/menu/rc-menu/SubMenu/PopupTrigger.d.ts +1 -1
- package/es/menu/rc-menu/SubMenu/index.d.ts +1 -1
- package/es/menu/rc-menu/context/MenuContext.d.ts +1 -1
- package/es/radio/RadioButton.d.ts +1 -2
- package/es/radio/RadioGroup.d.ts +1 -1
- package/es/select/src/Select.d.ts +1 -1
- package/es/skeleton/Avatar.d.ts +1 -2
- package/es/skeleton/Button.d.ts +1 -2
- package/es/skeleton/Element.d.ts +1 -1
- package/es/skeleton/Image.d.ts +1 -2
- package/es/skeleton/Input.d.ts +1 -2
- package/es/skeleton/Paragraph.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +5 -5
- package/es/skeleton/Title.d.ts +1 -1
- package/es/space/Item.d.ts +1 -1
- package/es/steps/index.d.ts +1 -1
- package/es/steps/src/step.d.ts +1 -1
- package/es/steps/src/steps.d.ts +1 -1
- package/es/table/ExpandIcon.d.ts +1 -1
- package/es/table/baseTable/Body/BodyRow.d.ts +1 -1
- package/es/table/baseTable/Body/ExpandedRow.d.ts +1 -1
- package/es/table/baseTable/Body/MeasureCell.d.ts +1 -1
- package/es/table/baseTable/Body/MeasureRow.d.ts +1 -1
- package/es/table/baseTable/Body/index.d.ts +1 -1
- package/es/table/baseTable/ColGroup.d.ts +2 -2
- package/es/table/baseTable/Footer/Cell.d.ts +1 -1
- package/es/table/baseTable/Footer/Row.d.ts +1 -1
- package/es/table/baseTable/Footer/index.d.ts +1 -1
- package/es/table/baseTable/Header/HeaderRow.d.ts +2 -2
- package/es/table/baseTable/Panel/index.d.ts +1 -1
- package/es/table/baseTable/Table.d.ts +1 -1
- package/es/table/baseTable/utils/expandUtil.d.ts +2 -2
- package/es/table/hooks/useFilter/FilterDropdown.d.ts +1 -1
- package/es/table/hooks/useFilter/FilterSearch.d.ts +1 -1
- package/es/table/hooks/useFilter/FilterWrapper.d.ts +1 -1
- package/es/table/hooks/useSorter.js +6 -4
- package/es/table/style/index.css +4 -3
- package/es/table/style/index.less +5 -20
- package/es/tabs/src/TabPanelList/TabPane.d.ts +1 -1
- package/es/tabs/src/TabPanelList/index.d.ts +1 -1
- package/es/tabs/tabs.d.ts +1 -1
- package/es/toast/PurePanel.d.ts +2 -2
- package/es/transfer/DataSource.d.ts +1 -2
- package/es/transfer/SourceList.d.ts +1 -2
- package/es/transfer/Target.d.ts +1 -2
- package/es/transfer/TargetList.d.ts +1 -2
- package/es/transfer/index.d.ts +1 -1
- package/es/tree/utils/dragHelper.d.ts +2 -2
- package/es/upload/BaseUpload/AjaxUploader.d.ts +1 -1
- package/es/upload/BaseUpload/Upload.d.ts +2 -2
- package/es/virtual-list/List.d.ts +1 -1
- package/es/virtual-list/ScrollBar.d.ts +1 -1
- package/es/virtual-list/hooks/useChildren.d.ts +2 -2
- package/lib/affix/index.d.ts +1 -1
- package/lib/anchor/Anchor.d.ts +1 -1
- package/lib/anchor/AnchorLink.d.ts +2 -2
- package/lib/badge/SingleNumber.d.ts +2 -2
- package/lib/button/LoadingIcon.d.ts +1 -2
- package/lib/calendar/Header.d.ts +2 -2
- package/lib/calendar/generateCalendar.d.ts +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/card/Card.d.ts +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/MenuItem.d.ts +1 -1
- package/lib/cascader/Menus.d.ts +3 -3
- package/lib/checkbox/BaseCheckbox.d.ts +1 -1
- package/lib/checkbox/ButtonCheckbox.d.ts +1 -1
- package/lib/checkbox/GroupButtonCheckbox.d.ts +1 -2
- package/lib/clear/index.d.ts +1 -2
- package/lib/date-picker/PickerButton.d.ts +2 -2
- package/lib/date-picker/PickerTag.d.ts +2 -2
- package/lib/date-picker/src/Picker.d.ts +1 -1
- package/lib/date-picker/src/PickerPanel.d.ts +1 -1
- package/lib/date-picker/src/PickerTrigger.d.ts +1 -1
- package/lib/date-picker/src/RangePicker.d.ts +1 -1
- package/lib/date-picker/src/panels/DatePanel/DateBody.d.ts +1 -1
- package/lib/date-picker/src/panels/DatePanel/DateHeader.d.ts +2 -2
- package/lib/date-picker/src/panels/DatePanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/DatetimePanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/DecadePanel/DecadeBody.d.ts +2 -2
- package/lib/date-picker/src/panels/DecadePanel/DecadeHeader.d.ts +2 -2
- package/lib/date-picker/src/panels/DecadePanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/Header.d.ts +1 -1
- package/lib/date-picker/src/panels/MonthPanel/MonthBody.d.ts +1 -1
- package/lib/date-picker/src/panels/MonthPanel/MonthHeader.d.ts +2 -2
- package/lib/date-picker/src/panels/MonthPanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/PanelBody.d.ts +1 -1
- package/lib/date-picker/src/panels/QuarterPanel/QuarterBody.d.ts +2 -2
- package/lib/date-picker/src/panels/QuarterPanel/QuarterHeader.d.ts +2 -2
- package/lib/date-picker/src/panels/QuarterPanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/TimePanel/TimeBody.d.ts +1 -1
- package/lib/date-picker/src/panels/TimePanel/TimeHeader.d.ts +2 -2
- package/lib/date-picker/src/panels/TimePanel/TimeUnitColumn.d.ts +1 -1
- package/lib/date-picker/src/panels/TimePanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/WeekPanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/YearPanel/YearBody.d.ts +2 -2
- package/lib/date-picker/src/panels/YearPanel/YearHeader.d.ts +2 -2
- package/lib/date-picker/src/panels/YearPanel/index.d.ts +2 -2
- package/lib/date-picker/src/utils/getExtraFooter.d.ts +1 -1
- package/lib/date-picker/src/utils/getRanges.d.ts +2 -2
- package/lib/form/ErrorList.d.ts +1 -1
- package/lib/input-number/src/StepHandler.d.ts +1 -1
- package/lib/loading/icon.d.ts +1 -2
- package/lib/locale-provider/index.d.ts +1 -1
- package/lib/menu/SubMenu.js +4 -1
- package/lib/menu/rc-menu/Divider.d.ts +1 -1
- package/lib/menu/rc-menu/SubMenu/InlineSubMenuList.d.ts +1 -1
- package/lib/menu/rc-menu/SubMenu/PopupTrigger.d.ts +1 -1
- package/lib/menu/rc-menu/SubMenu/index.d.ts +1 -1
- package/lib/menu/rc-menu/context/MenuContext.d.ts +1 -1
- package/lib/radio/RadioButton.d.ts +1 -2
- package/lib/radio/RadioGroup.d.ts +1 -1
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/skeleton/Avatar.d.ts +1 -2
- package/lib/skeleton/Button.d.ts +1 -2
- package/lib/skeleton/Element.d.ts +1 -1
- package/lib/skeleton/Image.d.ts +1 -2
- package/lib/skeleton/Input.d.ts +1 -2
- package/lib/skeleton/Paragraph.d.ts +1 -1
- package/lib/skeleton/Skeleton.d.ts +5 -5
- package/lib/skeleton/Title.d.ts +1 -1
- package/lib/space/Item.d.ts +1 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/steps/src/step.d.ts +1 -1
- package/lib/steps/src/steps.d.ts +1 -1
- package/lib/table/ExpandIcon.d.ts +1 -1
- package/lib/table/baseTable/Body/BodyRow.d.ts +1 -1
- package/lib/table/baseTable/Body/ExpandedRow.d.ts +1 -1
- package/lib/table/baseTable/Body/MeasureCell.d.ts +1 -1
- package/lib/table/baseTable/Body/MeasureRow.d.ts +1 -1
- package/lib/table/baseTable/Body/index.d.ts +1 -1
- package/lib/table/baseTable/ColGroup.d.ts +2 -2
- package/lib/table/baseTable/Footer/Cell.d.ts +1 -1
- package/lib/table/baseTable/Footer/Row.d.ts +1 -1
- package/lib/table/baseTable/Footer/index.d.ts +1 -1
- package/lib/table/baseTable/Header/HeaderRow.d.ts +2 -2
- package/lib/table/baseTable/Panel/index.d.ts +1 -1
- package/lib/table/baseTable/Table.d.ts +1 -1
- package/lib/table/baseTable/utils/expandUtil.d.ts +2 -2
- package/lib/table/hooks/useFilter/FilterDropdown.d.ts +1 -1
- package/lib/table/hooks/useFilter/FilterSearch.d.ts +1 -1
- package/lib/table/hooks/useFilter/FilterWrapper.d.ts +1 -1
- package/lib/table/hooks/useSorter.js +6 -4
- package/lib/table/style/index.css +4 -3
- package/lib/table/style/index.less +5 -20
- package/lib/tabs/src/TabPanelList/TabPane.d.ts +1 -1
- package/lib/tabs/src/TabPanelList/index.d.ts +1 -1
- package/lib/tabs/tabs.d.ts +1 -1
- package/lib/toast/PurePanel.d.ts +2 -2
- package/lib/transfer/DataSource.d.ts +1 -2
- package/lib/transfer/SourceList.d.ts +1 -2
- package/lib/transfer/Target.d.ts +1 -2
- package/lib/transfer/TargetList.d.ts +1 -2
- package/lib/transfer/index.d.ts +1 -1
- package/lib/tree/utils/dragHelper.d.ts +2 -2
- package/lib/upload/BaseUpload/AjaxUploader.d.ts +1 -1
- package/lib/upload/BaseUpload/Upload.d.ts +2 -2
- package/lib/virtual-list/List.d.ts +1 -1
- package/lib/virtual-list/ScrollBar.d.ts +1 -1
- package/lib/virtual-list/hooks/useChildren.d.ts +2 -2
- package/package.json +1 -1
package/lib/skeleton/Avatar.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { SkeletonElementProps } from './Element';
|
|
3
2
|
export interface AvatarProps extends Omit<SkeletonElementProps, 'shape'> {
|
|
4
3
|
shape?: 'circle' | 'square';
|
|
5
4
|
}
|
|
6
5
|
declare const SkeletonAvatar: {
|
|
7
|
-
(props: AvatarProps):
|
|
6
|
+
(props: AvatarProps): JSX.Element;
|
|
8
7
|
defaultProps: {
|
|
9
8
|
size: string;
|
|
10
9
|
shape: string;
|
package/lib/skeleton/Button.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { SkeletonElementProps } from './Element';
|
|
3
2
|
export interface SkeletonButtonProps extends Omit<SkeletonElementProps, 'size'> {
|
|
4
3
|
size?: 'large' | 'small' | 'default';
|
|
5
4
|
block?: boolean;
|
|
6
5
|
}
|
|
7
6
|
declare const SkeletonButton: {
|
|
8
|
-
(props: SkeletonButtonProps):
|
|
7
|
+
(props: SkeletonButtonProps): JSX.Element;
|
|
9
8
|
defaultProps: {
|
|
10
9
|
size: string;
|
|
11
10
|
};
|
|
@@ -7,5 +7,5 @@ export interface SkeletonElementProps {
|
|
|
7
7
|
shape?: 'circle' | 'square' | 'round' | 'default';
|
|
8
8
|
active?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const Element: (props: SkeletonElementProps) =>
|
|
10
|
+
declare const Element: (props: SkeletonElementProps) => JSX.Element;
|
|
11
11
|
export default Element;
|
package/lib/skeleton/Image.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import type { SkeletonElementProps } from './Element';
|
|
3
2
|
export interface SkeletonImageProps extends Omit<SkeletonElementProps, 'size' | 'shape'> {
|
|
4
3
|
}
|
|
5
|
-
declare const SkeletonImage: (props: SkeletonImageProps) =>
|
|
4
|
+
declare const SkeletonImage: (props: SkeletonImageProps) => JSX.Element;
|
|
6
5
|
export default SkeletonImage;
|
package/lib/skeleton/Input.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { SkeletonElementProps } from './Element';
|
|
3
2
|
export interface SkeletonInputProps extends Omit<SkeletonElementProps, 'size' | 'shape'> {
|
|
4
3
|
size?: 'large' | 'small' | 'default';
|
|
5
4
|
block?: boolean;
|
|
6
5
|
}
|
|
7
6
|
declare const SkeletonInput: {
|
|
8
|
-
(props: SkeletonInputProps):
|
|
7
|
+
(props: SkeletonInputProps): JSX.Element;
|
|
9
8
|
defaultProps: {
|
|
10
9
|
size: string;
|
|
11
10
|
};
|
|
@@ -7,5 +7,5 @@ export interface SkeletonParagraphProps {
|
|
|
7
7
|
width?: widthUnit | Array<widthUnit>;
|
|
8
8
|
rows?: number;
|
|
9
9
|
}
|
|
10
|
-
declare const Paragraph: (props: SkeletonParagraphProps) =>
|
|
10
|
+
declare const Paragraph: (props: SkeletonParagraphProps) => JSX.Element;
|
|
11
11
|
export default Paragraph;
|
|
@@ -17,32 +17,32 @@ export interface SkeletonProps {
|
|
|
17
17
|
round?: boolean;
|
|
18
18
|
}
|
|
19
19
|
declare const Skeleton: {
|
|
20
|
-
(props: SkeletonProps):
|
|
20
|
+
(props: SkeletonProps): JSX.Element;
|
|
21
21
|
defaultProps: {
|
|
22
22
|
avatar: boolean;
|
|
23
23
|
title: boolean;
|
|
24
24
|
paragraph: boolean;
|
|
25
25
|
};
|
|
26
26
|
Button: {
|
|
27
|
-
(props: import("./Button").SkeletonButtonProps):
|
|
27
|
+
(props: import("./Button").SkeletonButtonProps): JSX.Element;
|
|
28
28
|
defaultProps: {
|
|
29
29
|
size: string;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
Avatar: {
|
|
33
|
-
(props: AvatarProps):
|
|
33
|
+
(props: AvatarProps): JSX.Element;
|
|
34
34
|
defaultProps: {
|
|
35
35
|
size: string;
|
|
36
36
|
shape: string;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
Input: {
|
|
40
|
-
(props: import("./Input").SkeletonInputProps):
|
|
40
|
+
(props: import("./Input").SkeletonInputProps): JSX.Element;
|
|
41
41
|
defaultProps: {
|
|
42
42
|
size: string;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
Image: (props: import("./Image").SkeletonImageProps) =>
|
|
45
|
+
Image: (props: import("./Image").SkeletonImageProps) => JSX.Element;
|
|
46
46
|
Node: React.FC<import("./Node").SkeletonNodeProps>;
|
|
47
47
|
};
|
|
48
48
|
export default Skeleton;
|
package/lib/skeleton/Title.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export interface SkeletonTitleProps {
|
|
|
5
5
|
style?: React.CSSProperties;
|
|
6
6
|
width?: number | string;
|
|
7
7
|
}
|
|
8
|
-
declare const Title: ({ prefixCls, className, width, style }: SkeletonTitleProps) =>
|
|
8
|
+
declare const Title: ({ prefixCls, className, width, style }: SkeletonTitleProps) => JSX.Element;
|
|
9
9
|
export default Title;
|
package/lib/space/Item.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export interface ItemProps {
|
|
|
8
8
|
split?: string | React.ReactNode;
|
|
9
9
|
wrap?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export default function Item({ className, direction, index, marginDirection, children, split, wrap }: ItemProps):
|
|
11
|
+
export default function Item({ className, direction, index, marginDirection, children, split, wrap }: ItemProps): JSX.Element;
|
package/lib/steps/index.d.ts
CHANGED
package/lib/steps/src/step.d.ts
CHANGED
package/lib/steps/src/steps.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ interface DefaultExpandIconProps<RecordType> {
|
|
|
7
7
|
expanded: boolean;
|
|
8
8
|
expandable: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare function renderExpandIcon(locale: TableLocale): <RecordType>({ prefixCls, onExpand, record, expanded, expandable }: DefaultExpandIconProps<RecordType>) =>
|
|
10
|
+
declare function renderExpandIcon(locale: TableLocale): <RecordType>({ prefixCls, onExpand, record, expanded, expandable }: DefaultExpandIconProps<RecordType>) => JSX.Element;
|
|
11
11
|
export default renderExpandIcon;
|
|
@@ -19,7 +19,7 @@ export interface BodyRowProps<RecordType> {
|
|
|
19
19
|
}
|
|
20
20
|
declare function BodyRow<RecordType extends {
|
|
21
21
|
children?: readonly RecordType[];
|
|
22
|
-
}>(props: BodyRowProps<RecordType>):
|
|
22
|
+
}>(props: BodyRowProps<RecordType>): JSX.Element;
|
|
23
23
|
declare namespace BodyRow {
|
|
24
24
|
var displayName: string;
|
|
25
25
|
}
|
|
@@ -10,5 +10,5 @@ export interface ExpandedRowProps {
|
|
|
10
10
|
colSpan: number;
|
|
11
11
|
isEmpty: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare function ExpandedRow({ prefixCls, children, component: Component, cellComponent, className, expanded, colSpan, isEmpty }: ExpandedRowProps):
|
|
13
|
+
declare function ExpandedRow({ prefixCls, children, component: Component, cellComponent, className, expanded, colSpan, isEmpty }: ExpandedRowProps): JSX.Element;
|
|
14
14
|
export default ExpandedRow;
|
|
@@ -3,4 +3,4 @@ export interface MeasureCellProps {
|
|
|
3
3
|
columnKey: React.Key;
|
|
4
4
|
onColumnResize: (key: React.Key, width: number) => void;
|
|
5
5
|
}
|
|
6
|
-
export default function MeasureCell({ columnKey, onColumnResize }: MeasureCellProps):
|
|
6
|
+
export default function MeasureCell({ columnKey, onColumnResize }: MeasureCellProps): JSX.Element;
|
|
@@ -4,4 +4,4 @@ export interface MeasureCellProps {
|
|
|
4
4
|
onColumnResize: (key: React.Key, width: number) => void;
|
|
5
5
|
columnsKey: React.Key[];
|
|
6
6
|
}
|
|
7
|
-
export default function MeasureRow({ prefixCls, columnsKey, onColumnResize }: MeasureCellProps):
|
|
7
|
+
export default function MeasureRow({ prefixCls, columnsKey, onColumnResize }: MeasureCellProps): JSX.Element;
|
|
@@ -10,6 +10,6 @@ export interface BodyProps<RecordType> {
|
|
|
10
10
|
emptyNode: React.ReactNode;
|
|
11
11
|
childrenColumnName: string;
|
|
12
12
|
}
|
|
13
|
-
declare function Body<RecordType>({ data, getRowKey, measureColumnWidth, expandedKeys, onRow, rowExpandable, emptyNode, childrenColumnName }: BodyProps<RecordType>):
|
|
13
|
+
declare function Body<RecordType>({ data, getRowKey, measureColumnWidth, expandedKeys, onRow, rowExpandable, emptyNode, childrenColumnName }: BodyProps<RecordType>): JSX.Element;
|
|
14
14
|
declare const MemoBody: React.MemoExoticComponent<typeof Body>;
|
|
15
15
|
export default MemoBody;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { ColumnType } from './interface';
|
|
3
3
|
export interface ColGroupProps<RecordType> {
|
|
4
4
|
colWidths: readonly (number | string)[];
|
|
5
5
|
columns?: readonly ColumnType<RecordType>[];
|
|
6
6
|
columCount?: number;
|
|
7
7
|
}
|
|
8
|
-
declare function ColGroup<RecordType>({ colWidths, columns, columCount }: ColGroupProps<RecordType>):
|
|
8
|
+
declare function ColGroup<RecordType>({ colWidths, columns, columCount }: ColGroupProps<RecordType>): JSX.Element;
|
|
9
9
|
export default ColGroup;
|
|
@@ -8,4 +8,4 @@ export interface SummaryCellProps {
|
|
|
8
8
|
rowSpan?: number;
|
|
9
9
|
align?: AlignType;
|
|
10
10
|
}
|
|
11
|
-
export default function SummaryCell({ className, index, children, colSpan, rowSpan, align }: SummaryCellProps):
|
|
11
|
+
export default function SummaryCell({ className, index, children, colSpan, rowSpan, align }: SummaryCellProps): JSX.Element;
|
|
@@ -4,4 +4,4 @@ export interface FooterRowProps {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
style?: React.CSSProperties;
|
|
6
6
|
}
|
|
7
|
-
export default function FooterRow({ children, ...props }: FooterRowProps):
|
|
7
|
+
export default function FooterRow({ children, ...props }: FooterRowProps): JSX.Element;
|
|
@@ -14,6 +14,6 @@ export interface FooterProps<RecordType> {
|
|
|
14
14
|
stickyOffsets: StickyOffsets;
|
|
15
15
|
flattenColumns: FlattenColumns<RecordType>;
|
|
16
16
|
}
|
|
17
|
-
declare function Footer<RecordType>({ children, stickyOffsets, flattenColumns }: FooterProps<RecordType>):
|
|
17
|
+
declare function Footer<RecordType>({ children, stickyOffsets, flattenColumns }: FooterProps<RecordType>): JSX.Element;
|
|
18
18
|
export default Footer;
|
|
19
19
|
export declare const FooterComponents: typeof Summary;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { CellType, StickyOffsets, ColumnType, CustomizeComponent, GetComponentProps } from '../interface';
|
|
3
3
|
export interface RowProps<RecordType> {
|
|
4
4
|
cells: readonly CellType<RecordType>[];
|
|
@@ -9,7 +9,7 @@ export interface RowProps<RecordType> {
|
|
|
9
9
|
onHeaderRow: GetComponentProps<readonly ColumnType<RecordType>[]>;
|
|
10
10
|
index: number;
|
|
11
11
|
}
|
|
12
|
-
declare function HeaderRow<RecordType>({ cells, stickyOffsets, flattenColumns, rowComponent: RowComponent, cellComponent: CellComponent, onHeaderRow, index }: RowProps<RecordType>):
|
|
12
|
+
declare function HeaderRow<RecordType>({ cells, stickyOffsets, flattenColumns, rowComponent: RowComponent, cellComponent: CellComponent, onHeaderRow, index }: RowProps<RecordType>): JSX.Element;
|
|
13
13
|
declare namespace HeaderRow {
|
|
14
14
|
var displayName: string;
|
|
15
15
|
}
|
|
@@ -75,7 +75,7 @@ export interface TableProps<RecordType = unknown> extends Omit<LegacyExpandableP
|
|
|
75
75
|
};
|
|
76
76
|
sticky?: boolean | TableSticky;
|
|
77
77
|
}
|
|
78
|
-
declare function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordType>):
|
|
78
|
+
declare function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordType>): JSX.Element;
|
|
79
79
|
declare namespace Table {
|
|
80
80
|
var EXPAND_COLUMN: {};
|
|
81
81
|
var Column: typeof import("./sugar/Column").default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { RenderExpandIconProps, Key, GetRowKey } from '../interface';
|
|
3
|
-
export declare function renderExpandIcon<RecordType>({ prefixCls, record, onExpand, expanded, expandable }: RenderExpandIconProps<RecordType>):
|
|
3
|
+
export declare function renderExpandIcon<RecordType>({ prefixCls, record, onExpand, expanded, expandable }: RenderExpandIconProps<RecordType>): JSX.Element;
|
|
4
4
|
export declare function findAllChildrenKeys<RecordType>(data: readonly RecordType[], getRowKey: GetRowKey<RecordType>, childrenColumnName: string): Key[];
|
|
@@ -16,5 +16,5 @@ export interface FilterDropdownProps<RecordType> {
|
|
|
16
16
|
locale: TableLocale;
|
|
17
17
|
getPopupContainer?: GetPopupContainer;
|
|
18
18
|
}
|
|
19
|
-
declare function FilterDropdown<RecordType>(props: FilterDropdownProps<RecordType>):
|
|
19
|
+
declare function FilterDropdown<RecordType>(props: FilterDropdownProps<RecordType>): JSX.Element;
|
|
20
20
|
export default FilterDropdown;
|
|
@@ -7,5 +7,5 @@ interface FilterSearchProps<RecordType> {
|
|
|
7
7
|
tablePrefixCls: string;
|
|
8
8
|
locale: TableLocale;
|
|
9
9
|
}
|
|
10
|
-
declare function FilterSearch<RecordType>(props: FilterSearchProps<RecordType>):
|
|
10
|
+
declare function FilterSearch<RecordType>(props: FilterSearchProps<RecordType>): JSX.Element;
|
|
11
11
|
export default FilterSearch;
|
|
@@ -3,5 +3,5 @@ export interface FilterDropdownMenuWrapperProps {
|
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
declare const FilterDropdownMenuWrapper: (props: FilterDropdownMenuWrapperProps) =>
|
|
6
|
+
declare const FilterDropdownMenuWrapper: (props: FilterDropdownMenuWrapperProps) => JSX.Element;
|
|
7
7
|
export default FilterDropdownMenuWrapper;
|
|
@@ -94,17 +94,19 @@ function injectSorter(prefixCls, columns, sorterSates, triggerSorter, defaultSor
|
|
|
94
94
|
var sorterOrder = sorterState ? sorterState.sortOrder : null;
|
|
95
95
|
var nextSortOrder = nextSortDirection(sortDirections, sorterOrder);
|
|
96
96
|
var upNode = sortDirections.includes(ASCEND) && /*#__PURE__*/React.createElement(_OutlinedUpArrow["default"], {
|
|
97
|
-
className: (0, _classnames["default"])("".concat(prefixCls, "-column-sorter-up"), {
|
|
97
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "-column-sorter-icon"), "".concat(prefixCls, "-column-sorter-up"), {
|
|
98
98
|
active: sorterOrder === ASCEND
|
|
99
99
|
})
|
|
100
100
|
});
|
|
101
101
|
var downNode = sortDirections.includes(DESCEND) && /*#__PURE__*/React.createElement(_OutlinedDownArrow["default"], {
|
|
102
|
-
className: (0, _classnames["default"])("".concat(prefixCls, "-column-sorter-down"), {
|
|
102
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "-column-sorter-icon"), "".concat(prefixCls, "-column-sorter-down"), {
|
|
103
103
|
active: sorterOrder === DESCEND
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
var sortNode = (sortDirections.includes(ASCEND) || sortDirections.includes(DESCEND)) && /*#__PURE__*/React.createElement(_OutlinedSortArrow["default"], {
|
|
107
|
-
className: "".concat(prefixCls, "-column-sorter-default")
|
|
107
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "-column-sorter-icon"), "".concat(prefixCls, "-column-sorter-default"), {
|
|
108
|
+
active: sorterOrder !== ASCEND && sorterOrder !== DESCEND
|
|
109
|
+
})
|
|
108
110
|
});
|
|
109
111
|
var _ref2 = tableLocale || {},
|
|
110
112
|
cancelSort = _ref2.cancelSort,
|
|
@@ -138,7 +140,7 @@ function injectSorter(prefixCls, columns, sorterSates, triggerSorter, defaultSor
|
|
|
138
140
|
}
|
|
139
141
|
}, /*#__PURE__*/React.createElement("span", {
|
|
140
142
|
className: "".concat(prefixCls, "-column-sorter-inner")
|
|
141
|
-
},
|
|
143
|
+
}, upNode, downNode, sortNode))) : /*#__PURE__*/React.createElement("span", {
|
|
142
144
|
className: (0, _classnames["default"])("".concat(prefixCls, "-column-sorter"), (0, _defineProperty2["default"])({}, "".concat(prefixCls, "-column-sorter-full"), !!(upNode && downNode))),
|
|
143
145
|
onClick: function onClick(event) {
|
|
144
146
|
triggerSorter({
|
|
@@ -307,6 +307,9 @@ div.acud-table-summary {
|
|
|
307
307
|
flex-direction: column;
|
|
308
308
|
align-items: center;
|
|
309
309
|
}
|
|
310
|
+
.acud-table-column-sorter-icon {
|
|
311
|
+
display: none;
|
|
312
|
+
}
|
|
310
313
|
.acud-table-column-sorter-default,
|
|
311
314
|
.acud-table-column-sorter-up,
|
|
312
315
|
.acud-table-column-sorter-down {
|
|
@@ -315,11 +318,9 @@ div.acud-table-summary {
|
|
|
315
318
|
.acud-table-column-sorter-default.active,
|
|
316
319
|
.acud-table-column-sorter-up.active,
|
|
317
320
|
.acud-table-column-sorter-down.active {
|
|
321
|
+
display: inherit;
|
|
318
322
|
color: #D4E5FF;
|
|
319
323
|
}
|
|
320
|
-
.acud-table-column-sorter-up + .acud-table-column-sorter-down {
|
|
321
|
-
margin-top: -0.3em;
|
|
322
|
-
}
|
|
323
324
|
.acud-table-column-sorters:hover .acud-table-column-sorter {
|
|
324
325
|
color: #a6a6a6;
|
|
325
326
|
}
|
|
@@ -357,19 +357,20 @@
|
|
|
357
357
|
align-items: center;
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
+
&-icon {
|
|
361
|
+
display: none;
|
|
362
|
+
}
|
|
363
|
+
|
|
360
364
|
&-default,
|
|
361
365
|
&-up,
|
|
362
366
|
&-down {
|
|
363
367
|
font-size: 16px;
|
|
364
368
|
|
|
365
369
|
&.active {
|
|
370
|
+
display: inherit;
|
|
366
371
|
color: @primary-color;
|
|
367
372
|
}
|
|
368
373
|
}
|
|
369
|
-
|
|
370
|
-
&-up + &-down {
|
|
371
|
-
margin-top: -0.3em;
|
|
372
|
-
}
|
|
373
374
|
}
|
|
374
375
|
|
|
375
376
|
&-column-sorters:hover &-column-sorter {
|
|
@@ -402,11 +403,6 @@
|
|
|
402
403
|
cursor: pointer;
|
|
403
404
|
transition: all 0.3s;
|
|
404
405
|
|
|
405
|
-
&:hover {
|
|
406
|
-
// color: @text-color-secondary;
|
|
407
|
-
// background: @table-header-filter-active-bg;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
406
|
&.active {
|
|
411
407
|
color: @primary-color;
|
|
412
408
|
}
|
|
@@ -444,17 +440,6 @@
|
|
|
444
440
|
padding: @P * 2 @P * 3;
|
|
445
441
|
max-height: 216px;
|
|
446
442
|
overflow-y: auto;
|
|
447
|
-
|
|
448
|
-
.@{tree-prefix-cls}-treenode .@{tree-prefix-cls}-node-content-wrapper:hover {
|
|
449
|
-
// background-color: @tree-node-hover-bg;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
.@{tree-prefix-cls}-treenode-checkbox-checked .@{tree-prefix-cls}-node-content-wrapper {
|
|
453
|
-
&,
|
|
454
|
-
&:hover {
|
|
455
|
-
// background-color: @tree-node-selected-bg;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
443
|
}
|
|
459
444
|
|
|
460
445
|
&-search {
|
|
@@ -15,4 +15,4 @@ export interface TabPaneProps {
|
|
|
15
15
|
active?: boolean;
|
|
16
16
|
destroyInactiveTabPane?: boolean;
|
|
17
17
|
}
|
|
18
|
-
export default function TabPane({ prefixCls, forceRender, className, style, id, active, animated, destroyInactiveTabPane, tabKey, children, }: TabPaneProps):
|
|
18
|
+
export default function TabPane({ prefixCls, forceRender, className, style, id, active, animated, destroyInactiveTabPane, tabKey, children, }: TabPaneProps): JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface TabPanelListProps {
|
|
|
8
8
|
tabPosition?: TabPosition;
|
|
9
9
|
destroyInactiveTabPane?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export default function TabPanelList({ id, activeKey, animated, tabPosition, rtl, destroyInactiveTabPane, }: TabPanelListProps):
|
|
11
|
+
export default function TabPanelList({ id, activeKey, animated, tabPosition, rtl, destroyInactiveTabPane, }: TabPanelListProps): JSX.Element;
|
package/lib/tabs/tabs.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface TabsProps extends Omit<RcTabsProps, 'editable'> {
|
|
|
12
12
|
addIcon?: React.ReactNode;
|
|
13
13
|
onEdit?: (e: React.MouseEvent | React.KeyboardEvent | string, action: 'add' | 'remove') => void;
|
|
14
14
|
}
|
|
15
|
-
declare function Tabs({ type, className, size: propSize, onEdit, hideAdd, centered, addIcon, ...props }: TabsProps):
|
|
15
|
+
declare function Tabs({ type, className, size: propSize, onEdit, hideAdd, centered, addIcon, ...props }: TabsProps): JSX.Element;
|
|
16
16
|
declare namespace Tabs {
|
|
17
17
|
var TabPane: typeof import("./src").TabPane;
|
|
18
18
|
}
|
package/lib/toast/PurePanel.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ export interface PureContentProps {
|
|
|
10
10
|
btn?: React.ReactNode;
|
|
11
11
|
type?: IconType;
|
|
12
12
|
}
|
|
13
|
-
export declare function PureContent({ prefixCls, icon, type, message, description, btn, }: PureContentProps):
|
|
13
|
+
export declare function PureContent({ prefixCls, icon, type, message, description, btn, }: PureContentProps): JSX.Element;
|
|
14
14
|
export interface PurePanelProps extends Omit<NoticeProps, 'prefixCls' | 'eventKey'>, Omit<PureContentProps, 'prefixCls' | 'children'> {
|
|
15
15
|
prefixCls?: string;
|
|
16
16
|
}
|
|
17
17
|
/** @private Internal Component. Do not use in your production. */
|
|
18
|
-
export default function PurePanel(props: PurePanelProps):
|
|
18
|
+
export default function PurePanel(props: PurePanelProps): JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { TransferItem, TransferProps } from '.';
|
|
3
2
|
export interface DataSourceProps<RecordType> extends TransferProps<RecordType> {
|
|
4
3
|
tKeys: string[];
|
|
@@ -7,5 +6,5 @@ export interface DataSourceProps<RecordType> extends TransferProps<RecordType> {
|
|
|
7
6
|
loading: boolean;
|
|
8
7
|
setLoading: (loading: boolean) => void;
|
|
9
8
|
}
|
|
10
|
-
declare const DataSource: (props: DataSourceProps<TransferItem>) =>
|
|
9
|
+
declare const DataSource: (props: DataSourceProps<TransferItem>) => JSX.Element;
|
|
11
10
|
export default DataSource;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { DataSourceProps } from './DataSource';
|
|
3
2
|
import { TransferItem } from '.';
|
|
4
3
|
export interface DataSourceListProps<RecordType> extends DataSourceProps<RecordType> {
|
|
5
4
|
filterSource: RecordType[];
|
|
6
5
|
}
|
|
7
|
-
declare const SourceList: (props: DataSourceListProps<TransferItem>) =>
|
|
6
|
+
declare const SourceList: (props: DataSourceListProps<TransferItem>) => JSX.Element;
|
|
8
7
|
export default SourceList;
|
package/lib/transfer/Target.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { TransferItem, TransferProps } from '.';
|
|
3
2
|
export interface DataSourceProps<RecordType> extends TransferProps<RecordType> {
|
|
4
3
|
tKeys: string[];
|
|
@@ -7,5 +6,5 @@ export interface DataSourceProps<RecordType> extends TransferProps<RecordType> {
|
|
|
7
6
|
setLoading: (loading: boolean) => void;
|
|
8
7
|
expansionSource: RecordType[];
|
|
9
8
|
}
|
|
10
|
-
declare const Target: (props: DataSourceProps<TransferItem>) =>
|
|
9
|
+
declare const Target: (props: DataSourceProps<TransferItem>) => JSX.Element;
|
|
11
10
|
export default Target;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { DataSourceProps } from './DataSource';
|
|
3
2
|
import { TransferItem } from '.';
|
|
4
3
|
export interface DataSourceListProps<RecordType> extends DataSourceProps<RecordType> {
|
|
5
4
|
filterSource: RecordType[];
|
|
6
5
|
}
|
|
7
|
-
declare const TargetList: (props: DataSourceListProps<TransferItem>) =>
|
|
6
|
+
declare const TargetList: (props: DataSourceListProps<TransferItem>) => JSX.Element;
|
|
8
7
|
export default TargetList;
|
package/lib/transfer/index.d.ts
CHANGED
|
@@ -53,5 +53,5 @@ export interface TransferProps<RecordType> {
|
|
|
53
53
|
workerLoading?: boolean;
|
|
54
54
|
columns?: ColumnsType<RecordType>;
|
|
55
55
|
}
|
|
56
|
-
declare const Transfer: (props: TransferProps<TransferItem>) =>
|
|
56
|
+
declare const Transfer: (props: TransferProps<TransferItem>) => JSX.Element;
|
|
57
57
|
export default Transfer;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export declare function dropIndicatorRender(props: {
|
|
3
3
|
dropPosition: -1 | 0 | 1;
|
|
4
4
|
dropLevelOffset: number;
|
|
5
5
|
indent: number;
|
|
6
6
|
prefixCls: string;
|
|
7
7
|
direction: 'ltr' | 'rtl';
|
|
8
|
-
}):
|
|
8
|
+
}): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component } from 'react';
|
|
2
2
|
import AjaxUpload from './AjaxUploader';
|
|
3
3
|
import type { UploadProps, RcFile } from './interface';
|
|
4
4
|
declare function empty(): void;
|
|
@@ -22,6 +22,6 @@ declare class Upload extends Component<UploadProps> {
|
|
|
22
22
|
private uploader;
|
|
23
23
|
abort(file: RcFile): void;
|
|
24
24
|
saveUploader: (node: AjaxUpload) => void;
|
|
25
|
-
render():
|
|
25
|
+
render(): JSX.Element;
|
|
26
26
|
}
|
|
27
27
|
export default Upload;
|
|
@@ -30,7 +30,7 @@ export interface ListProps<T> extends Omit<React.HTMLAttributes<any>, 'children'
|
|
|
30
30
|
/** Trigger when render list item changed */
|
|
31
31
|
onVisibleChange?: (visibleList: T[], fullList: T[]) => void;
|
|
32
32
|
}
|
|
33
|
-
export declare function RawList<T>(props: ListProps<T>, ref: React.Ref<ListRef>):
|
|
33
|
+
export declare function RawList<T>(props: ListProps<T>, ref: React.Ref<ListRef>): JSX.Element;
|
|
34
34
|
declare const _default: <Item = any>(props: ListProps<Item> & {
|
|
35
35
|
ref?: React.Ref<ListRef>;
|
|
36
36
|
}) => React.ReactElement;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { SharedConfig, RenderFunc } from '../interface';
|
|
3
|
-
export default function useChildren<T>(list: T[], startIndex: number, endIndex: number, setNodeRef: (item: T, element: HTMLElement) => void, renderFunc: RenderFunc<T>, { getKey }: SharedConfig<T>):
|
|
3
|
+
export default function useChildren<T>(list: T[], startIndex: number, endIndex: number, setNodeRef: (item: T, element: HTMLElement) => void, renderFunc: RenderFunc<T>, { getKey }: SharedConfig<T>): JSX.Element[];
|