@douyinfe/semi-ui 2.32.5 → 2.32.6
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 +126 -111
- 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 +1 -1
- package/lib/cjs/autoComplete/index.d.ts +1 -1
- 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/index.d.ts +1 -1
- package/lib/cjs/datePicker/dateInput.d.ts +1 -1
- package/lib/cjs/datePicker/datePicker.d.ts +2 -2
- package/lib/cjs/datePicker/monthsGrid.d.ts +2 -2
- package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/cjs/form/baseForm.d.ts +1 -1
- package/lib/cjs/form/field.d.ts +1 -1
- 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 +32 -32
- package/lib/cjs/popover/index.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/switch/index.d.ts +1 -1
- package/lib/cjs/table/Table.d.ts +3 -3
- 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 +1 -1
- package/lib/cjs/tree/index.js +6 -4
- package/lib/cjs/treeSelect/index.js +29 -16
- package/lib/cjs/typography/base.d.ts +1 -1
- package/lib/cjs/typography/numeral.d.ts +1 -1
- 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 +1 -1
- package/lib/es/anchor/index.d.ts +1 -1
- package/lib/es/autoComplete/index.d.ts +1 -1
- 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/index.d.ts +1 -1
- package/lib/es/datePicker/dateInput.d.ts +1 -1
- package/lib/es/datePicker/datePicker.d.ts +2 -2
- package/lib/es/datePicker/monthsGrid.d.ts +2 -2
- package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/es/form/baseForm.d.ts +1 -1
- package/lib/es/form/field.d.ts +1 -1
- 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 +32 -32
- package/lib/es/popover/index.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/switch/index.d.ts +1 -1
- package/lib/es/table/Table.d.ts +3 -3
- 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 +1 -1
- package/lib/es/tree/index.js +6 -4
- package/lib/es/treeSelect/index.js +29 -16
- package/lib/es/typography/base.d.ts +1 -1
- package/lib/es/typography/numeral.d.ts +1 -1
- 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 +1 -1
- 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<"small" | "default">;
|
|
43
43
|
railTheme: PropTypes.Requireable<"primary" | "tertiary" | "muted">;
|
|
44
44
|
className: PropTypes.Requireable<string>;
|
|
45
45
|
style: PropTypes.Requireable<object>;
|
|
@@ -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<"small" | "default" | "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<"small" | "default" | "large">;
|
|
51
|
+
type: PropTypes.Requireable<"warning" | "primary" | "tertiary" | "secondary" | "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<"small" | "default" | "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<"small" | "default" | "large">;
|
|
26
|
+
type: import("prop-types").Requireable<"warning" | "primary" | "tertiary" | "secondary" | "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>;
|
|
@@ -14,7 +14,7 @@ export interface CarouselState {
|
|
|
14
14
|
declare class Carousel extends BaseComponent<CarouselProps, CarouselState> {
|
|
15
15
|
static propTypes: {
|
|
16
16
|
activeIndex: PropTypes.Requireable<number>;
|
|
17
|
-
animation: PropTypes.Requireable<"
|
|
17
|
+
animation: PropTypes.Requireable<"fade" | "slide">;
|
|
18
18
|
arrowProps: PropTypes.Requireable<object>;
|
|
19
19
|
autoPlay: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
20
20
|
className: PropTypes.Requireable<string>;
|
|
@@ -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<"dateTime" | "date" | "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<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
61
|
+
size: PropTypes.Requireable<"small" | "default" | "large">;
|
|
62
62
|
clearIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
63
63
|
density: PropTypes.Requireable<"default" | "compact">;
|
|
64
64
|
defaultValue: PropTypes.Requireable<NonNullable<string | number | object>>;
|
|
@@ -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<"dateTime" | "date" | "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>;
|
|
@@ -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: () => "both" | "none" | "left" | "right";
|
|
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;
|
|
@@ -24,7 +24,7 @@ declare class YearAndMonth extends BaseComponent<YearAndMonthProps, YearAndMonth
|
|
|
24
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<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
28
28
|
};
|
|
29
29
|
static defaultProps: {
|
|
30
30
|
disabledDate: {
|
|
@@ -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, "stopPropagation" | "
|
|
140
|
+
} & Pick<import("../tooltip").TooltipProps, "motion" | "stopPropagation" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & 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
|
@@ -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, "stopPropagation" | "
|
|
88
|
+
} & Pick<import("../tooltip").TooltipProps, "motion" | "stopPropagation" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & 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<"small" | "default" | "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<"small" | "default" | "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;
|
|
144
143
|
children?: React.ReactNode;
|
|
144
|
+
motion?: boolean;
|
|
145
|
+
title?: React.ReactNode;
|
|
145
146
|
size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size;
|
|
146
147
|
style?: React.CSSProperties;
|
|
147
148
|
className?: string;
|
|
148
|
-
|
|
149
|
-
height?: string | number;
|
|
149
|
+
getPopupContainer?: () => HTMLElement;
|
|
150
150
|
footer?: React.ReactNode;
|
|
151
151
|
header?: React.ReactNode;
|
|
152
|
+
direction?: any;
|
|
153
|
+
width?: string | number;
|
|
154
|
+
height?: string | number;
|
|
152
155
|
mask?: boolean;
|
|
153
156
|
visible?: boolean;
|
|
154
157
|
content?: React.ReactNode;
|
|
155
158
|
icon: string | number | boolean | React.ReactFragment | JSX.Element;
|
|
156
|
-
motion?: boolean;
|
|
157
|
-
direction?: any;
|
|
158
159
|
zIndex?: number;
|
|
159
160
|
closeOnEsc?: boolean;
|
|
160
161
|
preventScroll?: boolean;
|
|
161
|
-
getPopupContainer?: () => HTMLElement;
|
|
162
162
|
afterClose?: () => void;
|
|
163
163
|
keepDOM?: boolean;
|
|
164
164
|
cancelText?: string;
|
|
@@ -201,6 +201,8 @@ export declare function withError(props: ModalReactProps): {
|
|
|
201
201
|
onMouseEnter?: React.MouseEventHandler<HTMLButtonElement>;
|
|
202
202
|
onMouseLeave?: React.MouseEventHandler<HTMLButtonElement>;
|
|
203
203
|
'aria-label'?: string;
|
|
204
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
205
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
204
206
|
title?: string;
|
|
205
207
|
name?: string;
|
|
206
208
|
value?: string | number | readonly string[];
|
|
@@ -208,34 +210,43 @@ export declare function withError(props: ModalReactProps): {
|
|
|
208
210
|
slot?: string;
|
|
209
211
|
hidden?: boolean;
|
|
210
212
|
color?: string;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
+
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
214
|
+
defaultChecked?: boolean;
|
|
215
|
+
defaultValue?: string | number | readonly string[];
|
|
216
|
+
suppressContentEditableWarning?: boolean;
|
|
217
|
+
suppressHydrationWarning?: boolean;
|
|
218
|
+
accessKey?: string;
|
|
213
219
|
autoFocus?: boolean;
|
|
214
220
|
formAction?: string;
|
|
215
221
|
formEncType?: string;
|
|
216
222
|
formMethod?: string;
|
|
217
223
|
formNoValidate?: boolean;
|
|
218
224
|
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;
|
|
226
225
|
dir?: string;
|
|
227
226
|
draggable?: boolean | "false" | "true";
|
|
228
227
|
lang?: string;
|
|
228
|
+
translate?: "no" | "yes";
|
|
229
|
+
prefix?: string;
|
|
230
|
+
contentEditable?: "inherit" | (boolean | "false" | "true");
|
|
231
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
232
|
+
tabIndex?: number;
|
|
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 | "false" | "true";
|
|
240
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree";
|
|
241
|
+
'aria-controls'?: string;
|
|
242
|
+
'aria-describedby'?: string;
|
|
243
|
+
contextMenu?: string;
|
|
229
244
|
placeholder?: string;
|
|
230
245
|
spellCheck?: boolean | "false" | "true";
|
|
231
|
-
tabIndex?: number;
|
|
232
|
-
translate?: "yes" | "no";
|
|
233
246
|
radioGroup?: string;
|
|
234
|
-
role?: React.AriaRole;
|
|
235
247
|
about?: string;
|
|
236
248
|
datatype?: string;
|
|
237
249
|
inlist?: any;
|
|
238
|
-
prefix?: string;
|
|
239
250
|
property?: string;
|
|
240
251
|
resource?: string;
|
|
241
252
|
typeof?: string;
|
|
@@ -251,7 +262,6 @@ export declare function withError(props: ModalReactProps): {
|
|
|
251
262
|
results?: number;
|
|
252
263
|
security?: string;
|
|
253
264
|
unselectable?: "on" | "off";
|
|
254
|
-
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
255
265
|
is?: string;
|
|
256
266
|
'aria-activedescendant'?: string;
|
|
257
267
|
'aria-atomic'?: boolean | "false" | "true";
|
|
@@ -261,17 +271,13 @@ export declare function withError(props: ModalReactProps): {
|
|
|
261
271
|
'aria-colcount'?: number;
|
|
262
272
|
'aria-colindex'?: number;
|
|
263
273
|
'aria-colspan'?: number;
|
|
264
|
-
'aria-
|
|
265
|
-
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date";
|
|
266
|
-
'aria-describedby'?: string;
|
|
274
|
+
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "location" | "step" | "date";
|
|
267
275
|
'aria-details'?: string;
|
|
268
276
|
'aria-disabled'?: boolean | "false" | "true";
|
|
269
|
-
'aria-dropeffect'?: "
|
|
277
|
+
'aria-dropeffect'?: "none" | "link" | "copy" | "move" | "execute" | "popup";
|
|
270
278
|
'aria-errormessage'?: string;
|
|
271
|
-
'aria-expanded'?: boolean | "false" | "true";
|
|
272
279
|
'aria-flowto'?: string;
|
|
273
280
|
'aria-grabbed'?: boolean | "false" | "true";
|
|
274
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree";
|
|
275
281
|
'aria-hidden'?: boolean | "false" | "true";
|
|
276
282
|
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling";
|
|
277
283
|
'aria-keyshortcuts'?: string;
|
|
@@ -315,11 +321,8 @@ export declare function withError(props: ModalReactProps): {
|
|
|
315
321
|
onCompositionStartCapture?: React.CompositionEventHandler<HTMLButtonElement>;
|
|
316
322
|
onCompositionUpdate?: React.CompositionEventHandler<HTMLButtonElement>;
|
|
317
323
|
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLButtonElement>;
|
|
318
|
-
onFocus?: React.FocusEventHandler<HTMLButtonElement>;
|
|
319
324
|
onFocusCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
320
|
-
onBlur?: React.FocusEventHandler<HTMLButtonElement>;
|
|
321
325
|
onBlurCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
322
|
-
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
323
326
|
onChangeCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
324
327
|
onBeforeInput?: React.FormEventHandler<HTMLButtonElement>;
|
|
325
328
|
onBeforeInputCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
@@ -335,7 +338,6 @@ export declare function withError(props: ModalReactProps): {
|
|
|
335
338
|
onLoadCapture?: React.ReactEventHandler<HTMLButtonElement>;
|
|
336
339
|
onError?: React.ReactEventHandler<HTMLButtonElement>;
|
|
337
340
|
onErrorCapture?: React.ReactEventHandler<HTMLButtonElement>;
|
|
338
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
339
341
|
onKeyDownCapture?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
340
342
|
onKeyPress?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
341
343
|
onKeyPressCapture?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
@@ -411,9 +413,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
411
413
|
onMouseDownCapture?: React.MouseEventHandler<HTMLButtonElement>;
|
|
412
414
|
onMouseMove?: React.MouseEventHandler<HTMLButtonElement>;
|
|
413
415
|
onMouseMoveCapture?: React.MouseEventHandler<HTMLButtonElement>;
|
|
414
|
-
onMouseOut?: React.MouseEventHandler<HTMLButtonElement>;
|
|
415
416
|
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>;
|
|
@@ -59,7 +59,7 @@ declare class Popover extends React.PureComponent<PopoverProps, PopoverState> {
|
|
|
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<"hover" | "focus" | "click" | "custom">>;
|
|
63
63
|
contentClassName: PropTypes.Requireable<NonNullable<string | any[]>>;
|
|
64
64
|
onVisibleChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
65
65
|
onClickOutSide: 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 | "small" | "default">>;
|
|
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 | "small" | "default">>;
|
|
44
44
|
'aria-describedby': PropTypes.Requireable<string>;
|
|
45
45
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
46
46
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -45,7 +45,7 @@ declare class Switch extends BaseComponent<SwitchProps, SwitchState> {
|
|
|
45
45
|
onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
46
46
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
47
47
|
style: PropTypes.Requireable<object>;
|
|
48
|
-
size: PropTypes.Requireable<"
|
|
48
|
+
size: PropTypes.Requireable<"small" | "default" | "large">;
|
|
49
49
|
uncheckedText: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
50
50
|
id: PropTypes.Requireable<string>;
|
|
51
51
|
};
|
package/lib/cjs/table/Table.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
|
|
|
60
60
|
components: PropTypes.Requireable<any>;
|
|
61
61
|
bordered: PropTypes.Requireable<boolean>;
|
|
62
62
|
loading: PropTypes.Requireable<boolean>;
|
|
63
|
-
size: PropTypes.Requireable<"
|
|
63
|
+
size: PropTypes.Requireable<"small" | "default" | "middle">;
|
|
64
64
|
tableLayout: PropTypes.Requireable<"" | "fixed" | "auto">;
|
|
65
65
|
columns: PropTypes.Requireable<PropTypes.InferProps<{
|
|
66
66
|
align: PropTypes.Requireable<"left" | "right" | "center">;
|
|
@@ -288,7 +288,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
|
|
|
288
288
|
* Combine pagination and table paging processing functions
|
|
289
289
|
*/
|
|
290
290
|
mergePagination: (pagination: TablePaginationProps) => {
|
|
291
|
-
position?: "
|
|
291
|
+
position?: "both" | "top" | "bottom";
|
|
292
292
|
formatPageText?: import("./interface").FormatPageText;
|
|
293
293
|
style?: React.CSSProperties;
|
|
294
294
|
className?: string;
|
|
@@ -297,7 +297,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
|
|
|
297
297
|
showTotal?: boolean;
|
|
298
298
|
pageSize?: number;
|
|
299
299
|
pageSizeOpts?: number[];
|
|
300
|
-
size?: "
|
|
300
|
+
size?: "small" | "default";
|
|
301
301
|
currentPage?: number;
|
|
302
302
|
defaultCurrentPage?: number;
|
|
303
303
|
onPageChange?: (currentPage: number) => void;
|
package/lib/cjs/table/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ declare class Table<RecordType extends Record<string, any> = Data> extends React
|
|
|
16
16
|
components: PropTypes.Requireable<any>;
|
|
17
17
|
bordered: PropTypes.Requireable<boolean>;
|
|
18
18
|
loading: PropTypes.Requireable<boolean>;
|
|
19
|
-
size: PropTypes.Requireable<"
|
|
19
|
+
size: PropTypes.Requireable<"small" | "default" | "middle">;
|
|
20
20
|
tableLayout: PropTypes.Requireable<"" | "fixed" | "auto">;
|
|
21
21
|
columns: PropTypes.Requireable<PropTypes.InferProps<{
|
|
22
22
|
align: PropTypes.Requireable<"left" | "right" | "center">;
|
|
@@ -96,7 +96,7 @@ declare class TagInput extends BaseComponent<TagInputProps, TagInputState> {
|
|
|
96
96
|
onAdd: PropTypes.Requireable<(...args: any[]) => any>;
|
|
97
97
|
onRemove: PropTypes.Requireable<(...args: any[]) => any>;
|
|
98
98
|
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
99
|
-
size: PropTypes.Requireable<"
|
|
99
|
+
size: PropTypes.Requireable<"small" | "default" | "large">;
|
|
100
100
|
validateStatus: PropTypes.Requireable<"default" | "error" | "warning" | "success">;
|
|
101
101
|
prefix: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
102
102
|
suffix: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
@@ -130,7 +130,7 @@ export default class TimePicker extends BaseComponent<TimePickerProps, TimePicke
|
|
|
130
130
|
secondStep: PropTypes.Requireable<number>;
|
|
131
131
|
focusOnOpen: PropTypes.Requireable<boolean>;
|
|
132
132
|
autoFocus: PropTypes.Requireable<boolean>;
|
|
133
|
-
size: PropTypes.Requireable<"
|
|
133
|
+
size: PropTypes.Requireable<"small" | "default" | "large">;
|
|
134
134
|
panels: PropTypes.Requireable<PropTypes.InferProps<{
|
|
135
135
|
panelHeader: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
136
136
|
panelFooter: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
@@ -48,7 +48,7 @@ export default class LocaleTimePicker extends React.PureComponent<LocalePickerPr
|
|
|
48
48
|
secondStep: import("prop-types").Requireable<number>;
|
|
49
49
|
focusOnOpen: import("prop-types").Requireable<boolean>;
|
|
50
50
|
autoFocus: import("prop-types").Requireable<boolean>;
|
|
51
|
-
size: import("prop-types").Requireable<"
|
|
51
|
+
size: import("prop-types").Requireable<"small" | "default" | "large">;
|
|
52
52
|
panels: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
53
53
|
panelHeader: import("prop-types").Requireable<NonNullable<import("prop-types").ReactNodeLike>>;
|
|
54
54
|
panelFooter: import("prop-types").Requireable<NonNullable<import("prop-types").ReactNodeLike>>;
|
|
@@ -92,7 +92,7 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
|
|
|
92
92
|
getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
93
93
|
mouseEnterDelay: PropTypes.Requireable<number>;
|
|
94
94
|
mouseLeaveDelay: PropTypes.Requireable<number>;
|
|
95
|
-
trigger: PropTypes.Validator<NonNullable<"
|
|
95
|
+
trigger: PropTypes.Validator<NonNullable<"hover" | "focus" | "click" | "custom">>;
|
|
96
96
|
className: PropTypes.Requireable<string>;
|
|
97
97
|
wrapperClassName: PropTypes.Requireable<string>;
|
|
98
98
|
clickToHide: PropTypes.Requireable<boolean>;
|
package/lib/cjs/tree/index.js
CHANGED
|
@@ -293,10 +293,12 @@ class Tree extends _baseComponent.default {
|
|
|
293
293
|
const firstInProps = !prevProps && 'treeData' in props;
|
|
294
294
|
const treeDataHasChange = prevProps && prevProps.treeData !== props.treeData;
|
|
295
295
|
return firstInProps || treeDataHasChange;
|
|
296
|
-
};
|
|
296
|
+
};
|
|
297
297
|
|
|
298
|
+
const needUpdateTreeData = needUpdate('treeData');
|
|
299
|
+
const needUpdateSimpleJson = needUpdate('treeDataSimpleJson'); // Update the data of tree in state
|
|
298
300
|
|
|
299
|
-
if (
|
|
301
|
+
if (needUpdateTreeData || props.draggable && needUpdateData()) {
|
|
300
302
|
// eslint-disable-next-line prefer-destructuring
|
|
301
303
|
treeData = props.treeData;
|
|
302
304
|
newState.treeData = treeData;
|
|
@@ -305,7 +307,7 @@ class Tree extends _baseComponent.default {
|
|
|
305
307
|
keyEntities = newState.keyEntities;
|
|
306
308
|
newState.cachedKeyValuePairs = Object.assign({}, entitiesMap.valueEntities);
|
|
307
309
|
valueEntities = newState.cachedKeyValuePairs;
|
|
308
|
-
} else if (
|
|
310
|
+
} else if (needUpdateSimpleJson) {
|
|
309
311
|
// Convert treeDataSimpleJson to treeData
|
|
310
312
|
treeData = (0, _treeUtil.convertJsonToData)(props.treeDataSimpleJson);
|
|
311
313
|
newState.treeData = treeData;
|
|
@@ -324,7 +326,7 @@ class Tree extends _baseComponent.default {
|
|
|
324
326
|
}
|
|
325
327
|
}
|
|
326
328
|
|
|
327
|
-
const dataUpdated =
|
|
329
|
+
const dataUpdated = needUpdateSimpleJson || needUpdateTreeData;
|
|
328
330
|
const expandAllWhenDataChange = dataUpdated && props.expandAll;
|
|
329
331
|
|
|
330
332
|
if (!isSeaching) {
|
|
@@ -102,10 +102,14 @@ class TreeSelect extends _baseComponent.default {
|
|
|
102
102
|
[`${prefixcls}-suffix-text`]: suffix && (0, _isString2.default)(suffix),
|
|
103
103
|
[`${prefixcls}-suffix-icon`]: (0, _utils.isSemiIcon)(suffix)
|
|
104
104
|
});
|
|
105
|
-
return
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
return (
|
|
106
|
+
/*#__PURE__*/
|
|
107
|
+
// eslint-disable-next-line react/no-unknown-property
|
|
108
|
+
_react.default.createElement("div", {
|
|
109
|
+
className: suffixWrapperCls,
|
|
110
|
+
"x-semi-prop": "suffix"
|
|
111
|
+
}, suffix)
|
|
112
|
+
);
|
|
109
113
|
};
|
|
110
114
|
|
|
111
115
|
this.renderPrefix = () => {
|
|
@@ -122,11 +126,15 @@ class TreeSelect extends _baseComponent.default {
|
|
|
122
126
|
[`${prefixcls}-prefix-text`]: labelNode && (0, _isString2.default)(labelNode),
|
|
123
127
|
[`${prefixcls}-prefix-icon`]: (0, _utils.isSemiIcon)(labelNode)
|
|
124
128
|
});
|
|
125
|
-
return
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"
|
|
129
|
-
|
|
129
|
+
return (
|
|
130
|
+
/*#__PURE__*/
|
|
131
|
+
// eslint-disable-next-line react/no-unknown-property
|
|
132
|
+
_react.default.createElement("div", {
|
|
133
|
+
className: prefixWrapperCls,
|
|
134
|
+
id: insetLabelId,
|
|
135
|
+
"x-semi-prop": "prefix,insetLabel"
|
|
136
|
+
}, labelNode)
|
|
137
|
+
);
|
|
130
138
|
};
|
|
131
139
|
|
|
132
140
|
this.renderContent = () => {
|
|
@@ -398,7 +406,10 @@ class TreeSelect extends _baseComponent.default {
|
|
|
398
406
|
return null;
|
|
399
407
|
}
|
|
400
408
|
|
|
401
|
-
return arrowIcon ?
|
|
409
|
+
return arrowIcon ?
|
|
410
|
+
/*#__PURE__*/
|
|
411
|
+
// eslint-disable-next-line react/no-unknown-property
|
|
412
|
+
_react.default.createElement("div", {
|
|
402
413
|
className: (0, _classnames.default)(`${prefixcls}-arrow`),
|
|
403
414
|
"x-semi-prop": "arrowIcon"
|
|
404
415
|
}, arrowIcon) : null;
|
|
@@ -1014,9 +1025,11 @@ class TreeSelect extends _baseComponent.default {
|
|
|
1014
1025
|
let valueEntities = prevState.cachedKeyValuePairs || {};
|
|
1015
1026
|
const newState = {
|
|
1016
1027
|
prevProps: props
|
|
1017
|
-
};
|
|
1028
|
+
};
|
|
1029
|
+
const needUpdateTreeData = needUpdate('treeData');
|
|
1030
|
+
const needUpdateExpandedKeys = needUpdate('expandedKeys'); // TreeNode
|
|
1018
1031
|
|
|
1019
|
-
if (
|
|
1032
|
+
if (needUpdateTreeData) {
|
|
1020
1033
|
treeData = props.treeData;
|
|
1021
1034
|
newState.treeData = treeData;
|
|
1022
1035
|
const entitiesMap = (0, _treeUtil.convertDataToEntities)(treeData);
|
|
@@ -1034,9 +1047,9 @@ class TreeSelect extends _baseComponent.default {
|
|
|
1034
1047
|
}
|
|
1035
1048
|
}
|
|
1036
1049
|
|
|
1037
|
-
const expandAllWhenDataChange =
|
|
1050
|
+
const expandAllWhenDataChange = needUpdateTreeData && props.expandAll; // expandedKeys
|
|
1038
1051
|
|
|
1039
|
-
if (
|
|
1052
|
+
if (needUpdateExpandedKeys || prevProps && needUpdate('autoExpandParent')) {
|
|
1040
1053
|
newState.expandedKeys = (0, _treeUtil.calcExpandedKeys)(props.expandedKeys, keyEntities, props.autoExpandParent || !prevProps); // only show animation when treeData does not change
|
|
1041
1054
|
|
|
1042
1055
|
if (prevProps && props.motion && !treeData) {
|
|
@@ -1058,7 +1071,7 @@ class TreeSelect extends _baseComponent.default {
|
|
|
1058
1071
|
} // flattenNodes
|
|
1059
1072
|
|
|
1060
1073
|
|
|
1061
|
-
if (treeData ||
|
|
1074
|
+
if (treeData || needUpdateExpandedKeys) {
|
|
1062
1075
|
const flattenNodes = (0, _treeUtil.flattenTreeData)(treeData || prevState.treeData, newState.expandedKeys || prevState.expandedKeys);
|
|
1063
1076
|
newState.flattenNodes = flattenNodes;
|
|
1064
1077
|
} // selectedKeys: single mode controlled
|
|
@@ -1116,7 +1129,7 @@ class TreeSelect extends _baseComponent.default {
|
|
|
1116
1129
|
} // ================== rePosKey ==================
|
|
1117
1130
|
|
|
1118
1131
|
|
|
1119
|
-
if (
|
|
1132
|
+
if (needUpdateTreeData || needUpdate('value')) {
|
|
1120
1133
|
newState.rePosKey = rePosKey + 1;
|
|
1121
1134
|
} // ================ disableStrictly =================
|
|
1122
1135
|
|
|
@@ -64,7 +64,7 @@ export default class Base extends Component<BaseTypographyProps, BaseTypographyS
|
|
|
64
64
|
spacing: PropTypes.Requireable<"normal" | "extended">;
|
|
65
65
|
strong: PropTypes.Requireable<boolean>;
|
|
66
66
|
size: PropTypes.Requireable<"small" | "normal">;
|
|
67
|
-
type: PropTypes.Requireable<"warning" | "success" | "primary" | "
|
|
67
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
|
|
68
68
|
style: PropTypes.Requireable<object>;
|
|
69
69
|
className: PropTypes.Requireable<string>;
|
|
70
70
|
icon: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
@@ -38,7 +38,7 @@ export default class Numeral extends PureComponent<NumeralProps> {
|
|
|
38
38
|
underline: PropTypes.Requireable<boolean>;
|
|
39
39
|
link: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
40
40
|
strong: PropTypes.Requireable<boolean>;
|
|
41
|
-
type: PropTypes.Requireable<"warning" | "success" | "primary" | "
|
|
41
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
|
|
42
42
|
size: PropTypes.Requireable<"small" | "normal">;
|
|
43
43
|
style: PropTypes.Requireable<object>;
|
|
44
44
|
className: PropTypes.Requireable<string>;
|
|
@@ -29,7 +29,7 @@ export default class Paragraph extends PureComponent<ParagraphProps> {
|
|
|
29
29
|
link: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
30
30
|
underline: PropTypes.Requireable<boolean>;
|
|
31
31
|
strong: PropTypes.Requireable<boolean>;
|
|
32
|
-
type: PropTypes.Requireable<"warning" | "success" | "primary" | "
|
|
32
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
|
|
33
33
|
size: PropTypes.Requireable<"small" | "normal">;
|
|
34
34
|
spacing: PropTypes.Requireable<"normal" | "extended">;
|
|
35
35
|
style: PropTypes.Requireable<object>;
|
|
@@ -32,7 +32,7 @@ export default class Text extends PureComponent<TextProps> {
|
|
|
32
32
|
underline: PropTypes.Requireable<boolean>;
|
|
33
33
|
link: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
34
34
|
strong: PropTypes.Requireable<boolean>;
|
|
35
|
-
type: PropTypes.Requireable<"warning" | "success" | "primary" | "
|
|
35
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
|
|
36
36
|
size: PropTypes.Requireable<"small" | "normal">;
|
|
37
37
|
style: PropTypes.Requireable<object>;
|
|
38
38
|
className: PropTypes.Requireable<string>;
|