@douyinfe/semi-ui 2.32.3 → 2.32.5
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/umd/semi-ui.js +101 -97
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/anchor/index.d.ts +2 -2
- package/lib/cjs/autoComplete/index.d.ts +2 -2
- package/lib/cjs/button/Button.d.ts +2 -2
- package/lib/cjs/button/buttonGroup.d.ts +1 -1
- package/lib/cjs/button/index.d.ts +2 -2
- package/lib/cjs/carousel/CarouselIndicator.d.ts +1 -1
- package/lib/cjs/carousel/index.d.ts +2 -2
- package/lib/cjs/datePicker/dateInput.d.ts +1 -1
- package/lib/cjs/datePicker/datePicker.d.ts +4 -4
- package/lib/cjs/datePicker/monthsGrid.d.ts +3 -3
- package/lib/cjs/datePicker/quickControl.d.ts +1 -1
- package/lib/cjs/datePicker/yearAndMonth.d.ts +2 -2
- package/lib/cjs/dropdown/index.d.ts +1 -1
- package/lib/cjs/form/baseForm.d.ts +4 -4
- package/lib/cjs/form/field.d.ts +4 -4
- package/lib/cjs/input/index.d.ts +1 -1
- package/lib/cjs/input/inputGroup.d.ts +1 -1
- package/lib/cjs/modal/confirm.d.ts +56 -56
- package/lib/cjs/overflowList/index.d.ts +1 -1
- package/lib/cjs/overflowList/index.js +6 -3
- package/lib/cjs/popover/index.d.ts +2 -2
- package/lib/cjs/radio/radio.d.ts +1 -1
- package/lib/cjs/radio/radioGroup.d.ts +1 -1
- package/lib/cjs/rating/index.d.ts +1 -1
- package/lib/cjs/rating/item.d.ts +1 -1
- package/lib/cjs/select/index.d.ts +1 -1
- package/lib/cjs/switch/index.d.ts +1 -1
- package/lib/cjs/table/Table.d.ts +4 -4
- package/lib/cjs/table/index.d.ts +1 -1
- package/lib/cjs/tagInput/index.d.ts +1 -1
- package/lib/cjs/timePicker/TimePicker.d.ts +1 -1
- package/lib/cjs/timePicker/index.d.ts +1 -1
- package/lib/cjs/tooltip/index.d.ts +2 -2
- package/lib/cjs/typography/base.d.ts +1 -1
- package/lib/cjs/typography/numeral.d.ts +2 -2
- package/lib/cjs/typography/paragraph.d.ts +1 -1
- package/lib/cjs/typography/text.d.ts +1 -1
- package/lib/cjs/typography/title.d.ts +2 -2
- package/lib/es/anchor/index.d.ts +2 -2
- package/lib/es/autoComplete/index.d.ts +2 -2
- package/lib/es/button/Button.d.ts +2 -2
- package/lib/es/button/buttonGroup.d.ts +1 -1
- package/lib/es/button/index.d.ts +2 -2
- package/lib/es/carousel/CarouselIndicator.d.ts +1 -1
- package/lib/es/carousel/index.d.ts +2 -2
- package/lib/es/datePicker/dateInput.d.ts +1 -1
- package/lib/es/datePicker/datePicker.d.ts +4 -4
- package/lib/es/datePicker/monthsGrid.d.ts +3 -3
- package/lib/es/datePicker/quickControl.d.ts +1 -1
- package/lib/es/datePicker/yearAndMonth.d.ts +2 -2
- package/lib/es/dropdown/index.d.ts +1 -1
- package/lib/es/form/baseForm.d.ts +4 -4
- package/lib/es/form/field.d.ts +4 -4
- package/lib/es/input/index.d.ts +1 -1
- package/lib/es/input/inputGroup.d.ts +1 -1
- package/lib/es/modal/confirm.d.ts +56 -56
- package/lib/es/overflowList/index.d.ts +1 -1
- package/lib/es/overflowList/index.js +6 -3
- package/lib/es/popover/index.d.ts +2 -2
- package/lib/es/radio/radio.d.ts +1 -1
- package/lib/es/radio/radioGroup.d.ts +1 -1
- package/lib/es/rating/index.d.ts +1 -1
- package/lib/es/rating/item.d.ts +1 -1
- package/lib/es/select/index.d.ts +1 -1
- package/lib/es/switch/index.d.ts +1 -1
- package/lib/es/table/Table.d.ts +4 -4
- package/lib/es/table/index.d.ts +1 -1
- package/lib/es/tagInput/index.d.ts +1 -1
- package/lib/es/timePicker/TimePicker.d.ts +1 -1
- package/lib/es/timePicker/index.d.ts +1 -1
- package/lib/es/tooltip/index.d.ts +2 -2
- package/lib/es/typography/base.d.ts +1 -1
- package/lib/es/typography/numeral.d.ts +2 -2
- package/lib/es/typography/paragraph.d.ts +1 -1
- package/lib/es/typography/text.d.ts +1 -1
- package/lib/es/typography/title.d.ts +2 -2
- package/package.json +8 -8
|
@@ -39,7 +39,7 @@ declare class Anchor extends BaseComponent<AnchorProps, AnchorState> {
|
|
|
39
39
|
static contextType: React.Context<ContextValue>;
|
|
40
40
|
static Link: typeof Link;
|
|
41
41
|
static PropTypes: {
|
|
42
|
-
size: PropTypes.Requireable<"
|
|
42
|
+
size: PropTypes.Requireable<"default" | "small">;
|
|
43
43
|
railTheme: PropTypes.Requireable<"primary" | "tertiary" | "muted">;
|
|
44
44
|
className: PropTypes.Requireable<string>;
|
|
45
45
|
style: PropTypes.Requireable<object>;
|
|
@@ -48,7 +48,7 @@ declare class Anchor extends BaseComponent<AnchorProps, AnchorState> {
|
|
|
48
48
|
offsetTop: PropTypes.Requireable<number>;
|
|
49
49
|
targetOffset: PropTypes.Requireable<number>;
|
|
50
50
|
showTooltip: PropTypes.Requireable<boolean>;
|
|
51
|
-
position: PropTypes.Requireable<"
|
|
51
|
+
position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
|
|
52
52
|
maxWidth: PropTypes.Requireable<NonNullable<string | number>>;
|
|
53
53
|
maxHeight: PropTypes.Requireable<NonNullable<string | number>>;
|
|
54
54
|
getContainer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -116,7 +116,7 @@ declare class AutoComplete<T extends AutoCompleteItems> extends BaseComponent<Au
|
|
|
116
116
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
117
117
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
118
118
|
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
119
|
-
position: PropTypes.Requireable<"
|
|
119
|
+
position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
|
|
120
120
|
placeholder: PropTypes.Requireable<string>;
|
|
121
121
|
prefix: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
122
122
|
onChangeWithObject: PropTypes.Requireable<boolean>;
|
|
@@ -125,7 +125,7 @@ declare class AutoComplete<T extends AutoCompleteItems> extends BaseComponent<Au
|
|
|
125
125
|
renderSelectedItem: PropTypes.Requireable<(...args: any[]) => any>;
|
|
126
126
|
suffix: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
127
127
|
showClear: PropTypes.Requireable<boolean>;
|
|
128
|
-
size: PropTypes.Requireable<"
|
|
128
|
+
size: PropTypes.Requireable<"default" | "small" | "large">;
|
|
129
129
|
style: PropTypes.Requireable<object>;
|
|
130
130
|
stopPropagation: PropTypes.Requireable<NonNullable<string | boolean>>;
|
|
131
131
|
maxHeight: PropTypes.Requireable<NonNullable<string | number>>;
|
|
@@ -47,8 +47,8 @@ export default class Button extends PureComponent<ButtonProps> {
|
|
|
47
47
|
disabled: PropTypes.Requireable<boolean>;
|
|
48
48
|
prefixCls: PropTypes.Requireable<string>;
|
|
49
49
|
style: PropTypes.Requireable<object>;
|
|
50
|
-
size: PropTypes.Requireable<"
|
|
51
|
-
type: PropTypes.Requireable<"warning" | "primary" | "
|
|
50
|
+
size: PropTypes.Requireable<"default" | "small" | "large">;
|
|
51
|
+
type: PropTypes.Requireable<"warning" | "primary" | "secondary" | "tertiary" | "danger">;
|
|
52
52
|
block: PropTypes.Requireable<boolean>;
|
|
53
53
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
54
54
|
onMouseDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -18,7 +18,7 @@ export default class ButtonGroup extends BaseComponent<ButtonGroupProps> {
|
|
|
18
18
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
19
|
disabled: PropTypes.Requireable<boolean>;
|
|
20
20
|
type: PropTypes.Requireable<string>;
|
|
21
|
-
size: PropTypes.Requireable<"
|
|
21
|
+
size: PropTypes.Requireable<"default" | "small" | "large">;
|
|
22
22
|
theme: PropTypes.Requireable<"solid" | "light" | "borderless">;
|
|
23
23
|
'aria-label': PropTypes.Requireable<string>;
|
|
24
24
|
};
|
|
@@ -22,8 +22,8 @@ declare class Button extends React.PureComponent<ButtonProps> {
|
|
|
22
22
|
onMouseEnter: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
23
23
|
onMouseLeave: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
24
24
|
disabled: import("prop-types").Requireable<boolean>;
|
|
25
|
-
size: import("prop-types").Requireable<"
|
|
26
|
-
type: import("prop-types").Requireable<"warning" | "primary" | "
|
|
25
|
+
size: import("prop-types").Requireable<"default" | "small" | "large">;
|
|
26
|
+
type: import("prop-types").Requireable<"warning" | "primary" | "secondary" | "tertiary" | "danger">;
|
|
27
27
|
block: import("prop-types").Requireable<boolean>;
|
|
28
28
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
29
29
|
onMouseDown: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
@@ -8,7 +8,7 @@ declare class CarouselIndicator extends React.PureComponent<CarouselIndicatorPro
|
|
|
8
8
|
position: PropTypes.Requireable<"left" | "right" | "center">;
|
|
9
9
|
size: PropTypes.Requireable<"small" | "medium">;
|
|
10
10
|
style: PropTypes.Requireable<object>;
|
|
11
|
-
theme: PropTypes.Requireable<"
|
|
11
|
+
theme: PropTypes.Requireable<"dark" | "light" | "primary">;
|
|
12
12
|
total: PropTypes.Requireable<number>;
|
|
13
13
|
onIndicatorChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
14
|
type: PropTypes.Requireable<"line" | "dot" | "columnar">;
|
|
@@ -22,9 +22,9 @@ declare class Carousel extends BaseComponent<CarouselProps, CarouselState> {
|
|
|
22
22
|
indicatorPosition: PropTypes.Requireable<"left" | "right" | "center">;
|
|
23
23
|
indicatorSize: PropTypes.Requireable<"small" | "medium">;
|
|
24
24
|
indicatorType: PropTypes.Requireable<"line" | "dot" | "columnar">;
|
|
25
|
-
theme: PropTypes.Requireable<"
|
|
25
|
+
theme: PropTypes.Requireable<"dark" | "light" | "primary">;
|
|
26
26
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
|
-
arrowType: PropTypes.Requireable<"
|
|
27
|
+
arrowType: PropTypes.Requireable<"always" | "hover">;
|
|
28
28
|
showArrow: PropTypes.Requireable<boolean>;
|
|
29
29
|
showIndicator: PropTypes.Requireable<boolean>;
|
|
30
30
|
slideDirection: PropTypes.Requireable<"left" | "right">;
|
|
@@ -29,7 +29,7 @@ export default class DateInput extends BaseComponent<DateInputProps, {}> {
|
|
|
29
29
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
30
|
value: PropTypes.Requireable<any[]>;
|
|
31
31
|
disabled: PropTypes.Requireable<boolean>;
|
|
32
|
-
type: PropTypes.Requireable<"
|
|
32
|
+
type: PropTypes.Requireable<"date" | "dateTime" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
33
33
|
showClear: PropTypes.Requireable<boolean>;
|
|
34
34
|
format: PropTypes.Requireable<string>;
|
|
35
35
|
inputStyle: PropTypes.Requireable<object>;
|
|
@@ -57,8 +57,8 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
|
|
|
57
57
|
'aria-invalid': PropTypes.Requireable<boolean>;
|
|
58
58
|
'aria-labelledby': PropTypes.Requireable<string>;
|
|
59
59
|
'aria-required': PropTypes.Requireable<boolean>;
|
|
60
|
-
type: PropTypes.Requireable<"
|
|
61
|
-
size: PropTypes.Requireable<"
|
|
60
|
+
type: PropTypes.Requireable<"date" | "dateTime" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
61
|
+
size: PropTypes.Requireable<"default" | "small" | "large">;
|
|
62
62
|
clearIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
63
63
|
density: PropTypes.Requireable<"default" | "compact">;
|
|
64
64
|
defaultValue: PropTypes.Requireable<NonNullable<string | number | object>>;
|
|
@@ -73,7 +73,7 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
|
|
|
73
73
|
max: PropTypes.Requireable<number>;
|
|
74
74
|
placeholder: PropTypes.Requireable<NonNullable<string | any[]>>;
|
|
75
75
|
presets: PropTypes.Requireable<any[]>;
|
|
76
|
-
presetPosition: PropTypes.Requireable<"
|
|
76
|
+
presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
|
|
77
77
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
78
78
|
onChangeWithDateFirst: PropTypes.Requireable<boolean>;
|
|
79
79
|
weekStartsOn: PropTypes.Requireable<number>;
|
|
@@ -90,7 +90,7 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
|
|
|
90
90
|
insetLabel: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
91
91
|
insetLabelId: PropTypes.Requireable<string>;
|
|
92
92
|
zIndex: PropTypes.Requireable<number>;
|
|
93
|
-
position: PropTypes.Requireable<"
|
|
93
|
+
position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
|
|
94
94
|
getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
95
95
|
onCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
96
96
|
onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -19,7 +19,7 @@ export interface MonthsGridProps extends MonthsGridFoundationProps, BaseProps {
|
|
|
19
19
|
export declare type MonthsGridState = MonthsGridFoundationState;
|
|
20
20
|
export default class MonthsGrid extends BaseComponent<MonthsGridProps, MonthsGridState> {
|
|
21
21
|
static propTypes: {
|
|
22
|
-
type: PropTypes.Requireable<"
|
|
22
|
+
type: PropTypes.Requireable<"date" | "dateTime" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
23
23
|
defaultValue: PropTypes.Requireable<any[]>;
|
|
24
24
|
defaultPickerValue: PropTypes.Requireable<NonNullable<string | number | object>>;
|
|
25
25
|
multiple: PropTypes.Requireable<boolean>;
|
|
@@ -51,7 +51,7 @@ export default class MonthsGrid extends BaseComponent<MonthsGridProps, MonthsGri
|
|
|
51
51
|
onPanelChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
52
52
|
focusRecordsRef: PropTypes.Requireable<object>;
|
|
53
53
|
triggerRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
54
|
-
presetPosition: PropTypes.Requireable<"
|
|
54
|
+
presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
|
|
55
55
|
renderQuickControls: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
56
56
|
renderDateInput: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
57
57
|
};
|
|
@@ -86,7 +86,7 @@ export default class MonthsGrid extends BaseComponent<MonthsGridProps, MonthsGri
|
|
|
86
86
|
renderMonth(month: Date, panelType: PanelType): JSX.Element;
|
|
87
87
|
handleWeeksRowNumChange: (weeksRowNum: number, panelType: PanelType) => void;
|
|
88
88
|
reselect: () => void;
|
|
89
|
-
getYAMOpenType: () => "
|
|
89
|
+
getYAMOpenType: () => "left" | "right" | "both" | "none";
|
|
90
90
|
renderTimePicker(panelType: PanelType, panelDetail: MonthInfo): JSX.Element;
|
|
91
91
|
renderYearAndMonth(panelType: PanelType, panelDetail: MonthInfo): JSX.Element;
|
|
92
92
|
renderSwitch(panelType: PanelType): JSX.Element;
|
|
@@ -14,7 +14,7 @@ export interface QuickControlProps {
|
|
|
14
14
|
declare class QuickControl extends PureComponent<QuickControlProps> {
|
|
15
15
|
static propTypes: {
|
|
16
16
|
presets: PropTypes.Requireable<any[]>;
|
|
17
|
-
presetPosition: PropTypes.Requireable<"
|
|
17
|
+
presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
|
|
18
18
|
onPresetClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
19
|
type: PropTypes.Requireable<string>;
|
|
20
20
|
insetInput: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
@@ -21,10 +21,10 @@ declare class YearAndMonth extends BaseComponent<YearAndMonthProps, YearAndMonth
|
|
|
21
21
|
noBackBtn: PropTypes.Requireable<boolean>;
|
|
22
22
|
disabledDate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
23
|
density: PropTypes.Requireable<string>;
|
|
24
|
-
presetPosition: PropTypes.Requireable<"
|
|
24
|
+
presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
|
|
25
25
|
renderQuickControls: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
26
26
|
renderDateInput: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
27
|
-
type: PropTypes.Requireable<"
|
|
27
|
+
type: PropTypes.Requireable<"date" | "dateTime" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
28
28
|
};
|
|
29
29
|
static defaultProps: {
|
|
30
30
|
disabledDate: {
|
|
@@ -66,7 +66,7 @@ declare class Dropdown extends BaseComponent<DropdownProps, DropdownState> {
|
|
|
66
66
|
motion: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
67
67
|
onVisibleChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
68
68
|
prefixCls: PropTypes.Requireable<string>;
|
|
69
|
-
position: PropTypes.Requireable<"
|
|
69
|
+
position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
|
|
70
70
|
rePosKey: PropTypes.Requireable<NonNullable<string | number>>;
|
|
71
71
|
render: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
72
72
|
spacing: PropTypes.Requireable<number>;
|
|
@@ -57,9 +57,9 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
|
|
|
57
57
|
static Select: React.ComponentType<import("utility-types").Subtract<{
|
|
58
58
|
'aria-describedby'?: string;
|
|
59
59
|
'aria-errormessage'?: string;
|
|
60
|
-
'aria-invalid'?: boolean | "
|
|
60
|
+
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling";
|
|
61
61
|
'aria-labelledby'?: string;
|
|
62
|
-
'aria-required'?: boolean | "
|
|
62
|
+
'aria-required'?: boolean | "false" | "true";
|
|
63
63
|
id?: string;
|
|
64
64
|
autoFocus?: boolean;
|
|
65
65
|
autoClearSearchValue?: boolean;
|
|
@@ -82,7 +82,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
|
|
|
82
82
|
expandRestTagsOnClick?: boolean;
|
|
83
83
|
onDropdownVisibleChange?: (visible: boolean) => void;
|
|
84
84
|
zIndex?: number;
|
|
85
|
-
position?: "
|
|
85
|
+
position?: "left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
|
|
86
86
|
onSearch?: (value: string, event: React.KeyboardEvent<Element> | React.MouseEvent<Element, MouseEvent>) => void;
|
|
87
87
|
dropdownClassName?: string;
|
|
88
88
|
dropdownStyle?: React.CSSProperties;
|
|
@@ -137,7 +137,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
|
|
|
137
137
|
preventScroll?: boolean;
|
|
138
138
|
showRestTagsPopover?: boolean;
|
|
139
139
|
restTagsPopoverProps?: import("../popover").PopoverProps;
|
|
140
|
-
} & Pick<import("../tooltip").TooltipProps, "
|
|
140
|
+
} & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay" | "getPopupContainer"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
|
|
141
141
|
static Checkbox: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox").CheckboxProps & import("./interface").RCIncludeType>;
|
|
142
142
|
static CheckboxGroup: React.ComponentType<import("utility-types").Subtract<import("../checkbox").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes<any>>;
|
|
143
143
|
static Radio: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../radio").RadioProps & import("./interface").RCIncludeType>;
|
package/lib/cjs/form/field.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ declare const FormTextArea: import("react").ComponentType<import("utility-types"
|
|
|
5
5
|
declare const FormSelect: import("react").ComponentType<import("utility-types").Subtract<{
|
|
6
6
|
'aria-describedby'?: string;
|
|
7
7
|
'aria-errormessage'?: string;
|
|
8
|
-
'aria-invalid'?: boolean | "
|
|
8
|
+
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling";
|
|
9
9
|
'aria-labelledby'?: string;
|
|
10
|
-
'aria-required'?: boolean | "
|
|
10
|
+
'aria-required'?: boolean | "false" | "true";
|
|
11
11
|
id?: string;
|
|
12
12
|
autoFocus?: boolean;
|
|
13
13
|
autoClearSearchValue?: boolean;
|
|
@@ -30,7 +30,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
|
|
|
30
30
|
expandRestTagsOnClick?: boolean;
|
|
31
31
|
onDropdownVisibleChange?: (visible: boolean) => void;
|
|
32
32
|
zIndex?: number;
|
|
33
|
-
position?: "
|
|
33
|
+
position?: "left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
|
|
34
34
|
onSearch?: (value: string, event: import("react").KeyboardEvent<Element> | import("react").MouseEvent<Element, MouseEvent>) => void;
|
|
35
35
|
dropdownClassName?: string;
|
|
36
36
|
dropdownStyle?: import("react").CSSProperties;
|
|
@@ -85,7 +85,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
|
|
|
85
85
|
preventScroll?: boolean;
|
|
86
86
|
showRestTagsPopover?: boolean;
|
|
87
87
|
restTagsPopoverProps?: import("../popover").PopoverProps;
|
|
88
|
-
} & Pick<import("../tooltip").TooltipProps, "
|
|
88
|
+
} & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay" | "getPopupContainer"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
|
|
89
89
|
declare const FormCheckboxGroup: import("react").ComponentType<import("utility-types").Subtract<import("../checkbox/checkboxGroup").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & import("react").RefAttributes<any>>;
|
|
90
90
|
declare const FormCheckbox: import("react").ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox/checkbox").CheckboxProps & import("./interface").RCIncludeType>;
|
|
91
91
|
declare const FormRadioGroup: import("react").ComponentType<import("utility-types").Subtract<import("../radio/radioGroup").RadioGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & import("react").RefAttributes<any>>;
|
package/lib/cjs/input/index.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ declare class Input extends BaseComponent<InputProps, InputState> {
|
|
|
83
83
|
showClear: PropTypes.Requireable<boolean>;
|
|
84
84
|
hideSuffix: PropTypes.Requireable<boolean>;
|
|
85
85
|
placeholder: PropTypes.Requireable<any>;
|
|
86
|
-
size: PropTypes.Requireable<"
|
|
86
|
+
size: PropTypes.Requireable<"default" | "small" | "large">;
|
|
87
87
|
className: PropTypes.Requireable<string>;
|
|
88
88
|
style: PropTypes.Requireable<object>;
|
|
89
89
|
validateStatus: PropTypes.Requireable<"default" | "error" | "warning" | "success">;
|
|
@@ -21,7 +21,7 @@ export default class inputGroup extends BaseComponent<InputGroupProps, InputGrou
|
|
|
21
21
|
static propTypes: {
|
|
22
22
|
className: PropTypes.Requireable<string>;
|
|
23
23
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
24
|
-
size: PropTypes.Requireable<"
|
|
24
|
+
size: PropTypes.Requireable<"default" | "small" | "large">;
|
|
25
25
|
style: PropTypes.Requireable<object>;
|
|
26
26
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
27
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -140,25 +140,25 @@ export declare function withWarning(props: ModalReactProps): {
|
|
|
140
140
|
type: "warning";
|
|
141
141
|
};
|
|
142
142
|
export declare function withError(props: ModalReactProps): {
|
|
143
|
+
title?: React.ReactNode;
|
|
143
144
|
children?: React.ReactNode;
|
|
144
|
-
|
|
145
|
+
size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size;
|
|
145
146
|
style?: React.CSSProperties;
|
|
146
147
|
className?: string;
|
|
147
|
-
|
|
148
|
+
width?: string | number;
|
|
149
|
+
height?: string | number;
|
|
148
150
|
footer?: React.ReactNode;
|
|
149
151
|
header?: React.ReactNode;
|
|
150
|
-
title?: React.ReactNode;
|
|
151
|
-
direction?: any;
|
|
152
|
-
size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size;
|
|
153
152
|
mask?: boolean;
|
|
153
|
+
visible?: boolean;
|
|
154
154
|
content?: React.ReactNode;
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
icon: string | number | boolean | React.ReactFragment | JSX.Element;
|
|
156
|
+
motion?: boolean;
|
|
157
|
+
direction?: any;
|
|
157
158
|
zIndex?: number;
|
|
158
|
-
visible?: boolean;
|
|
159
159
|
closeOnEsc?: boolean;
|
|
160
160
|
preventScroll?: boolean;
|
|
161
|
-
|
|
161
|
+
getPopupContainer?: () => HTMLElement;
|
|
162
162
|
afterClose?: () => void;
|
|
163
163
|
keepDOM?: boolean;
|
|
164
164
|
cancelText?: string;
|
|
@@ -201,52 +201,41 @@ export declare function withError(props: ModalReactProps): {
|
|
|
201
201
|
onMouseEnter?: React.MouseEventHandler<HTMLButtonElement>;
|
|
202
202
|
onMouseLeave?: React.MouseEventHandler<HTMLButtonElement>;
|
|
203
203
|
'aria-label'?: string;
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
title?: string;
|
|
205
|
+
name?: string;
|
|
206
206
|
value?: string | number | readonly string[];
|
|
207
207
|
form?: string;
|
|
208
208
|
slot?: string;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
defaultValue?: string | number | readonly string[];
|
|
214
|
-
suppressContentEditableWarning?: boolean;
|
|
215
|
-
suppressHydrationWarning?: boolean;
|
|
216
|
-
accessKey?: string;
|
|
209
|
+
hidden?: boolean;
|
|
210
|
+
color?: string;
|
|
211
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
212
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
217
213
|
autoFocus?: boolean;
|
|
218
214
|
formAction?: string;
|
|
219
215
|
formEncType?: string;
|
|
220
216
|
formMethod?: string;
|
|
221
217
|
formNoValidate?: boolean;
|
|
222
218
|
formTarget?: string;
|
|
219
|
+
defaultChecked?: boolean;
|
|
220
|
+
defaultValue?: string | number | readonly string[];
|
|
221
|
+
suppressContentEditableWarning?: boolean;
|
|
222
|
+
suppressHydrationWarning?: boolean;
|
|
223
|
+
accessKey?: string;
|
|
224
|
+
contentEditable?: "inherit" | (boolean | "false" | "true");
|
|
225
|
+
contextMenu?: string;
|
|
223
226
|
dir?: string;
|
|
224
|
-
draggable?: boolean | "
|
|
225
|
-
hidden?: boolean;
|
|
227
|
+
draggable?: boolean | "false" | "true";
|
|
226
228
|
lang?: string;
|
|
227
|
-
translate?: "no" | "yes";
|
|
228
|
-
prefix?: string;
|
|
229
|
-
contentEditable?: "inherit" | (boolean | "true" | "false");
|
|
230
|
-
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
231
|
-
tabIndex?: number;
|
|
232
|
-
color?: string;
|
|
233
|
-
role?: React.AriaRole;
|
|
234
|
-
onMouseOut?: React.MouseEventHandler<HTMLButtonElement>;
|
|
235
|
-
onMouseOver?: React.MouseEventHandler<HTMLButtonElement>;
|
|
236
|
-
onFocus?: React.FocusEventHandler<HTMLButtonElement>;
|
|
237
|
-
onBlur?: React.FocusEventHandler<HTMLButtonElement>;
|
|
238
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
239
|
-
'aria-expanded'?: boolean | "true" | "false";
|
|
240
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false";
|
|
241
|
-
'aria-controls'?: string;
|
|
242
|
-
'aria-describedby'?: string;
|
|
243
|
-
contextMenu?: string;
|
|
244
229
|
placeholder?: string;
|
|
245
|
-
spellCheck?: boolean | "
|
|
230
|
+
spellCheck?: boolean | "false" | "true";
|
|
231
|
+
tabIndex?: number;
|
|
232
|
+
translate?: "yes" | "no";
|
|
246
233
|
radioGroup?: string;
|
|
234
|
+
role?: React.AriaRole;
|
|
247
235
|
about?: string;
|
|
248
236
|
datatype?: string;
|
|
249
237
|
inlist?: any;
|
|
238
|
+
prefix?: string;
|
|
250
239
|
property?: string;
|
|
251
240
|
resource?: string;
|
|
252
241
|
typeof?: string;
|
|
@@ -262,44 +251,49 @@ export declare function withError(props: ModalReactProps): {
|
|
|
262
251
|
results?: number;
|
|
263
252
|
security?: string;
|
|
264
253
|
unselectable?: "on" | "off";
|
|
254
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
265
255
|
is?: string;
|
|
266
256
|
'aria-activedescendant'?: string;
|
|
267
|
-
'aria-atomic'?: boolean | "
|
|
268
|
-
'aria-autocomplete'?: "both" | "none" | "
|
|
269
|
-
'aria-busy'?: boolean | "
|
|
270
|
-
'aria-checked'?: boolean | "
|
|
257
|
+
'aria-atomic'?: boolean | "false" | "true";
|
|
258
|
+
'aria-autocomplete'?: "both" | "none" | "inline" | "list";
|
|
259
|
+
'aria-busy'?: boolean | "false" | "true";
|
|
260
|
+
'aria-checked'?: boolean | "mixed" | "false" | "true";
|
|
271
261
|
'aria-colcount'?: number;
|
|
272
262
|
'aria-colindex'?: number;
|
|
273
263
|
'aria-colspan'?: number;
|
|
274
|
-
'aria-
|
|
264
|
+
'aria-controls'?: string;
|
|
265
|
+
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date";
|
|
266
|
+
'aria-describedby'?: string;
|
|
275
267
|
'aria-details'?: string;
|
|
276
|
-
'aria-disabled'?: boolean | "
|
|
277
|
-
'aria-dropeffect'?: "
|
|
268
|
+
'aria-disabled'?: boolean | "false" | "true";
|
|
269
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup";
|
|
278
270
|
'aria-errormessage'?: string;
|
|
271
|
+
'aria-expanded'?: boolean | "false" | "true";
|
|
279
272
|
'aria-flowto'?: string;
|
|
280
|
-
'aria-grabbed'?: boolean | "
|
|
281
|
-
'aria-
|
|
282
|
-
'aria-
|
|
273
|
+
'aria-grabbed'?: boolean | "false" | "true";
|
|
274
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree";
|
|
275
|
+
'aria-hidden'?: boolean | "false" | "true";
|
|
276
|
+
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling";
|
|
283
277
|
'aria-keyshortcuts'?: string;
|
|
284
278
|
'aria-labelledby'?: string;
|
|
285
279
|
'aria-level'?: number;
|
|
286
280
|
'aria-live'?: "off" | "assertive" | "polite";
|
|
287
|
-
'aria-modal'?: boolean | "
|
|
288
|
-
'aria-multiline'?: boolean | "
|
|
289
|
-
'aria-multiselectable'?: boolean | "
|
|
281
|
+
'aria-modal'?: boolean | "false" | "true";
|
|
282
|
+
'aria-multiline'?: boolean | "false" | "true";
|
|
283
|
+
'aria-multiselectable'?: boolean | "false" | "true";
|
|
290
284
|
'aria-orientation'?: "horizontal" | "vertical";
|
|
291
285
|
'aria-owns'?: string;
|
|
292
286
|
'aria-placeholder'?: string;
|
|
293
287
|
'aria-posinset'?: number;
|
|
294
|
-
'aria-pressed'?: boolean | "
|
|
295
|
-
'aria-readonly'?: boolean | "
|
|
288
|
+
'aria-pressed'?: boolean | "mixed" | "false" | "true";
|
|
289
|
+
'aria-readonly'?: boolean | "false" | "true";
|
|
296
290
|
'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
297
|
-
'aria-required'?: boolean | "
|
|
291
|
+
'aria-required'?: boolean | "false" | "true";
|
|
298
292
|
'aria-roledescription'?: string;
|
|
299
293
|
'aria-rowcount'?: number;
|
|
300
294
|
'aria-rowindex'?: number;
|
|
301
295
|
'aria-rowspan'?: number;
|
|
302
|
-
'aria-selected'?: boolean | "
|
|
296
|
+
'aria-selected'?: boolean | "false" | "true";
|
|
303
297
|
'aria-setsize'?: number;
|
|
304
298
|
'aria-sort'?: "none" | "ascending" | "descending" | "other";
|
|
305
299
|
'aria-valuemax'?: number;
|
|
@@ -321,8 +315,11 @@ export declare function withError(props: ModalReactProps): {
|
|
|
321
315
|
onCompositionStartCapture?: React.CompositionEventHandler<HTMLButtonElement>;
|
|
322
316
|
onCompositionUpdate?: React.CompositionEventHandler<HTMLButtonElement>;
|
|
323
317
|
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLButtonElement>;
|
|
318
|
+
onFocus?: React.FocusEventHandler<HTMLButtonElement>;
|
|
324
319
|
onFocusCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
320
|
+
onBlur?: React.FocusEventHandler<HTMLButtonElement>;
|
|
325
321
|
onBlurCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
322
|
+
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
326
323
|
onChangeCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
327
324
|
onBeforeInput?: React.FormEventHandler<HTMLButtonElement>;
|
|
328
325
|
onBeforeInputCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
@@ -338,6 +335,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
338
335
|
onLoadCapture?: React.ReactEventHandler<HTMLButtonElement>;
|
|
339
336
|
onError?: React.ReactEventHandler<HTMLButtonElement>;
|
|
340
337
|
onErrorCapture?: React.ReactEventHandler<HTMLButtonElement>;
|
|
338
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
341
339
|
onKeyDownCapture?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
342
340
|
onKeyPress?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
343
341
|
onKeyPressCapture?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
@@ -413,7 +411,9 @@ export declare function withError(props: ModalReactProps): {
|
|
|
413
411
|
onMouseDownCapture?: React.MouseEventHandler<HTMLButtonElement>;
|
|
414
412
|
onMouseMove?: React.MouseEventHandler<HTMLButtonElement>;
|
|
415
413
|
onMouseMoveCapture?: React.MouseEventHandler<HTMLButtonElement>;
|
|
414
|
+
onMouseOut?: React.MouseEventHandler<HTMLButtonElement>;
|
|
416
415
|
onMouseOutCapture?: React.MouseEventHandler<HTMLButtonElement>;
|
|
416
|
+
onMouseOver?: React.MouseEventHandler<HTMLButtonElement>;
|
|
417
417
|
onMouseOverCapture?: React.MouseEventHandler<HTMLButtonElement>;
|
|
418
418
|
onMouseUp?: React.MouseEventHandler<HTMLButtonElement>;
|
|
419
419
|
onMouseUpCapture?: React.MouseEventHandler<HTMLButtonElement>;
|
|
@@ -88,7 +88,7 @@ declare class OverflowList extends BaseComponent<OverflowListProps, OverflowList
|
|
|
88
88
|
className: string;
|
|
89
89
|
style: {
|
|
90
90
|
maxWidth: string;
|
|
91
|
-
visibility: "
|
|
91
|
+
visibility: "hidden" | "visible";
|
|
92
92
|
accentColor?: import("csstype").Property.AccentColor;
|
|
93
93
|
alignContent?: import("csstype").Property.AlignContent;
|
|
94
94
|
alignItems?: import("csstype").Property.AlignItems;
|
|
@@ -163,13 +163,13 @@ class OverflowList extends _baseComponent.default {
|
|
|
163
163
|
const child = /*#__PURE__*/_react.default.cloneElement(element);
|
|
164
164
|
|
|
165
165
|
return /*#__PURE__*/_react.default.createElement(_resizeObserver.default, {
|
|
166
|
-
key: key,
|
|
166
|
+
key: key !== null && key !== void 0 ? key : idx,
|
|
167
167
|
onResize: _ref2 => {
|
|
168
168
|
let [entry] = _ref2;
|
|
169
169
|
return this.onItemResize(entry, item, idx);
|
|
170
170
|
}
|
|
171
171
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
172
|
-
key: key,
|
|
172
|
+
key: key !== null && key !== void 0 ? key : idx,
|
|
173
173
|
className: `${prefixCls}-item`
|
|
174
174
|
}, child));
|
|
175
175
|
}), collapseFrom === Boundary.END ? overflow : null];
|
|
@@ -290,7 +290,10 @@ class OverflowList extends _baseComponent.default {
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
componentDidUpdate(prevProps, prevState) {
|
|
293
|
-
|
|
293
|
+
const prevItemsKeys = prevProps.items.map(item => item.key);
|
|
294
|
+
const nowItemsKeys = this.props.items.map(item => item.key); // Determine whether to update by comparing key values
|
|
295
|
+
|
|
296
|
+
if (!(0, _isEqual2.default)(prevItemsKeys, nowItemsKeys)) {
|
|
294
297
|
this.itemRefs = {};
|
|
295
298
|
this.setState({
|
|
296
299
|
visibleState: new Map()
|
|
@@ -55,11 +55,11 @@ declare class Popover extends React.PureComponent<PopoverProps, PopoverState> {
|
|
|
55
55
|
visible: PropTypes.Requireable<boolean>;
|
|
56
56
|
autoAdjustOverflow: PropTypes.Requireable<boolean>;
|
|
57
57
|
motion: PropTypes.Requireable<boolean>;
|
|
58
|
-
position: PropTypes.Requireable<"
|
|
58
|
+
position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
|
|
59
59
|
margin: PropTypes.Requireable<NonNullable<number | object>>;
|
|
60
60
|
mouseEnterDelay: PropTypes.Requireable<number>;
|
|
61
61
|
mouseLeaveDelay: PropTypes.Requireable<number>;
|
|
62
|
-
trigger: PropTypes.Validator<NonNullable<"
|
|
62
|
+
trigger: PropTypes.Validator<NonNullable<"custom" | "hover" | "focus" | "click">>;
|
|
63
63
|
contentClassName: PropTypes.Requireable<NonNullable<string | any[]>>;
|
|
64
64
|
onVisibleChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
65
65
|
onClickOutSide: PropTypes.Requireable<(...args: any[]) => any>;
|
package/lib/cjs/radio/radio.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ declare class Radio extends BaseComponent<RadioProps, RadioState> {
|
|
|
82
82
|
prefixCls?: string;
|
|
83
83
|
name?: string;
|
|
84
84
|
onChange?: (e: RadioChangeEvent) => void;
|
|
85
|
-
buttonSize?: "small" | "
|
|
85
|
+
buttonSize?: "small" | "large" | "middle";
|
|
86
86
|
isCardRadio?: boolean;
|
|
87
87
|
isPureCardRadio?: boolean;
|
|
88
88
|
};
|
|
@@ -48,7 +48,7 @@ declare class RadioGroup extends BaseComponent<RadioGroupProps, RadioGroupState>
|
|
|
48
48
|
disabled: PropTypes.Requireable<boolean>;
|
|
49
49
|
name: PropTypes.Requireable<string>;
|
|
50
50
|
options: PropTypes.Requireable<any[]>;
|
|
51
|
-
buttonSize: PropTypes.Requireable<"small" | "
|
|
51
|
+
buttonSize: PropTypes.Requireable<"small" | "large" | "middle">;
|
|
52
52
|
type: PropTypes.Requireable<"default" | "button" | "card" | "pureCard">;
|
|
53
53
|
value: PropTypes.Requireable<any>;
|
|
54
54
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -69,7 +69,7 @@ export default class Rating extends BaseComponent<RatingProps, RatingState> {
|
|
|
69
69
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
70
70
|
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
71
71
|
autoFocus: PropTypes.Requireable<boolean>;
|
|
72
|
-
size: PropTypes.Requireable<NonNullable<number | "
|
|
72
|
+
size: PropTypes.Requireable<NonNullable<number | "default" | "small">>;
|
|
73
73
|
tooltips: PropTypes.Requireable<string[]>;
|
|
74
74
|
id: PropTypes.Requireable<string>;
|
|
75
75
|
preventScroll: PropTypes.Requireable<boolean>;
|
package/lib/cjs/rating/item.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export default class Item extends BaseComponent<RatingItemProps, RatingItemState
|
|
|
40
40
|
disabled: PropTypes.Requireable<boolean>;
|
|
41
41
|
count: PropTypes.Requireable<number>;
|
|
42
42
|
ariaLabelPrefix: PropTypes.Requireable<string>;
|
|
43
|
-
size: PropTypes.Requireable<NonNullable<number | "
|
|
43
|
+
size: PropTypes.Requireable<NonNullable<number | "default" | "small">>;
|
|
44
44
|
'aria-describedby': PropTypes.Requireable<string>;
|
|
45
45
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
46
46
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|