@douyinfe/semi-ui 2.67.2 → 2.67.3-alpha.0
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/lib/cjs/anchor/index.d.ts +2 -2
- package/lib/cjs/autoComplete/index.d.ts +2 -2
- package/lib/cjs/button/Button.d.ts +3 -3
- package/lib/cjs/button/buttonGroup.d.ts +2 -2
- 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 +1 -1
- 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 +3 -3
- package/lib/cjs/form/field.d.ts +3 -3
- 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 +35 -35
- package/lib/cjs/popover/index.d.ts +1 -1
- package/lib/cjs/radio/radio.d.ts +2 -2
- package/lib/cjs/radio/radioGroup.d.ts +2 -2
- 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 +3 -3
- package/lib/cjs/table/index.d.ts +1 -1
- package/lib/cjs/table/interface.d.ts +31 -4
- 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/typography/base.d.ts +3 -3
- package/lib/cjs/typography/context.d.ts +1 -1
- package/lib/cjs/typography/numeral.d.ts +3 -3
- package/lib/cjs/typography/paragraph.d.ts +2 -2
- package/lib/cjs/typography/text.d.ts +2 -2
- package/lib/cjs/typography/title.d.ts +3 -3
- 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 +3 -3
- package/lib/es/button/buttonGroup.d.ts +2 -2
- 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 +1 -1
- 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 +3 -3
- package/lib/es/form/field.d.ts +3 -3
- 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 +35 -35
- package/lib/es/popover/index.d.ts +1 -1
- package/lib/es/radio/radio.d.ts +2 -2
- package/lib/es/radio/radioGroup.d.ts +2 -2
- 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 +3 -3
- package/lib/es/table/index.d.ts +1 -1
- package/lib/es/table/interface.d.ts +31 -4
- 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/typography/base.d.ts +3 -3
- package/lib/es/typography/context.d.ts +1 -1
- package/lib/es/typography/numeral.d.ts +3 -3
- package/lib/es/typography/paragraph.d.ts +2 -2
- package/lib/es/typography/text.d.ts +2 -2
- package/lib/es/typography/title.d.ts +3 -3
- package/package.json +7 -7
|
@@ -146,29 +146,29 @@ export declare function withWarning(props: ModalReactProps): {
|
|
|
146
146
|
type: "warning";
|
|
147
147
|
};
|
|
148
148
|
export declare function withError(props: ModalReactProps): {
|
|
149
|
-
title?: React.ReactNode;
|
|
150
149
|
children?: React.ReactNode;
|
|
151
|
-
|
|
152
|
-
style?: React.CSSProperties;
|
|
153
|
-
className?: string;
|
|
154
|
-
motion?: boolean;
|
|
155
|
-
getPopupContainer?: () => HTMLElement;
|
|
150
|
+
visible?: boolean;
|
|
156
151
|
footer?: React.ReactNode;
|
|
157
152
|
header?: React.ReactNode;
|
|
158
|
-
|
|
159
|
-
|
|
153
|
+
style?: React.CSSProperties;
|
|
154
|
+
title?: React.ReactNode;
|
|
160
155
|
mask?: boolean;
|
|
156
|
+
className?: string;
|
|
161
157
|
zIndex?: number;
|
|
158
|
+
getPopupContainer?: () => HTMLElement;
|
|
159
|
+
direction?: any;
|
|
160
|
+
motion?: boolean;
|
|
161
|
+
size?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").Size;
|
|
162
|
+
onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
|
|
163
|
+
content?: React.ReactNode;
|
|
162
164
|
width?: string | number;
|
|
163
165
|
height?: string | number;
|
|
164
|
-
content?: React.ReactNode;
|
|
165
166
|
closeOnEsc?: boolean;
|
|
166
167
|
preventScroll?: boolean;
|
|
168
|
+
icon: string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element;
|
|
167
169
|
afterClose?: () => void;
|
|
168
170
|
keepDOM?: boolean;
|
|
169
|
-
icon: string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element;
|
|
170
171
|
closable?: boolean;
|
|
171
|
-
onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
|
|
172
172
|
lazyRender?: boolean;
|
|
173
173
|
bodyStyle?: React.CSSProperties;
|
|
174
174
|
cancelButtonProps?: import("../button").BaseButtonProps;
|
|
@@ -210,13 +210,6 @@ export declare function withError(props: ModalReactProps): {
|
|
|
210
210
|
onMouseLeave?: React.MouseEventHandler<HTMLButtonElement>;
|
|
211
211
|
'aria-label'?: string;
|
|
212
212
|
contentClassName?: string;
|
|
213
|
-
title?: string;
|
|
214
|
-
name?: string;
|
|
215
|
-
value?: string | number | readonly string[];
|
|
216
|
-
onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
217
|
-
onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
218
|
-
form?: string;
|
|
219
|
-
slot?: string;
|
|
220
213
|
prefix?: string;
|
|
221
214
|
dangerouslySetInnerHTML?: {
|
|
222
215
|
__html: string | TrustedHTML;
|
|
@@ -369,34 +362,42 @@ export declare function withError(props: ModalReactProps): {
|
|
|
369
362
|
onScrollCapture?: React.UIEventHandler<HTMLButtonElement>;
|
|
370
363
|
onWheel?: React.WheelEventHandler<HTMLButtonElement>;
|
|
371
364
|
onWheelCapture?: React.WheelEventHandler<HTMLButtonElement>;
|
|
365
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
372
366
|
onAnimationStartCapture?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
367
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
373
368
|
onAnimationEndCapture?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
374
369
|
onAnimationIteration?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
375
370
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
376
371
|
onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement>;
|
|
377
372
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement>;
|
|
378
373
|
hidden?: boolean;
|
|
379
|
-
|
|
374
|
+
form?: string;
|
|
375
|
+
slot?: string;
|
|
376
|
+
title?: string;
|
|
377
|
+
value?: string | number | readonly string[];
|
|
378
|
+
name?: string;
|
|
379
|
+
suppressHydrationWarning?: boolean;
|
|
380
|
+
defaultChecked?: boolean;
|
|
380
381
|
defaultValue?: string | number | readonly string[];
|
|
382
|
+
suppressContentEditableWarning?: boolean;
|
|
383
|
+
formAction?: string;
|
|
384
|
+
formEncType?: string;
|
|
385
|
+
formMethod?: string;
|
|
386
|
+
formNoValidate?: boolean;
|
|
387
|
+
formTarget?: string;
|
|
388
|
+
content?: string;
|
|
389
|
+
contextMenu?: string;
|
|
381
390
|
accessKey?: string;
|
|
382
391
|
dir?: string;
|
|
383
392
|
draggable?: boolean | "true" | "false";
|
|
384
393
|
lang?: string;
|
|
385
|
-
translate?: "
|
|
394
|
+
translate?: "no" | "yes";
|
|
386
395
|
role?: React.AriaRole;
|
|
387
396
|
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only";
|
|
388
|
-
inputMode?: "search" | "
|
|
397
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
389
398
|
nonce?: string;
|
|
390
399
|
tabIndex?: number;
|
|
391
400
|
color?: string;
|
|
392
|
-
content?: string;
|
|
393
|
-
"aria-expanded"?: boolean | "true" | "false";
|
|
394
|
-
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false";
|
|
395
|
-
"aria-controls"?: string;
|
|
396
|
-
"aria-describedby"?: string;
|
|
397
|
-
defaultChecked?: boolean;
|
|
398
|
-
suppressContentEditableWarning?: boolean;
|
|
399
|
-
suppressHydrationWarning?: boolean;
|
|
400
401
|
autoFocus?: boolean;
|
|
401
402
|
spellCheck?: boolean | "true" | "false";
|
|
402
403
|
radioGroup?: string;
|
|
@@ -423,7 +424,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
423
424
|
is?: string;
|
|
424
425
|
"aria-activedescendant"?: string;
|
|
425
426
|
"aria-atomic"?: boolean | "true" | "false";
|
|
426
|
-
"aria-autocomplete"?: "
|
|
427
|
+
"aria-autocomplete"?: "none" | "list" | "both" | "inline";
|
|
427
428
|
"aria-braillelabel"?: string;
|
|
428
429
|
"aria-brailleroledescription"?: string;
|
|
429
430
|
"aria-busy"?: boolean | "true" | "false";
|
|
@@ -432,14 +433,18 @@ export declare function withError(props: ModalReactProps): {
|
|
|
432
433
|
"aria-colindex"?: number;
|
|
433
434
|
"aria-colindextext"?: string;
|
|
434
435
|
"aria-colspan"?: number;
|
|
436
|
+
"aria-controls"?: string;
|
|
435
437
|
"aria-current"?: boolean | "time" | "true" | "false" | "location" | "page" | "step" | "date";
|
|
438
|
+
"aria-describedby"?: string;
|
|
436
439
|
"aria-description"?: string;
|
|
437
440
|
"aria-details"?: string;
|
|
438
441
|
"aria-disabled"?: boolean | "true" | "false";
|
|
439
442
|
"aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup";
|
|
440
443
|
"aria-errormessage"?: string;
|
|
444
|
+
"aria-expanded"?: boolean | "true" | "false";
|
|
441
445
|
"aria-flowto"?: string;
|
|
442
446
|
"aria-grabbed"?: boolean | "true" | "false";
|
|
447
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false";
|
|
443
448
|
"aria-hidden"?: boolean | "true" | "false";
|
|
444
449
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
445
450
|
"aria-keyshortcuts"?: string;
|
|
@@ -469,11 +474,6 @@ export declare function withError(props: ModalReactProps): {
|
|
|
469
474
|
"aria-valuemin"?: number;
|
|
470
475
|
"aria-valuenow"?: number;
|
|
471
476
|
"aria-valuetext"?: string;
|
|
472
|
-
formAction?: string;
|
|
473
|
-
formEncType?: string;
|
|
474
|
-
formMethod?: string;
|
|
475
|
-
formNoValidate?: boolean;
|
|
476
|
-
formTarget?: string;
|
|
477
477
|
};
|
|
478
478
|
};
|
|
479
479
|
export declare function withConfirm(props: ModalReactProps): {
|
|
@@ -58,7 +58,7 @@ declare class Popover extends React.PureComponent<PopoverProps, PopoverState> {
|
|
|
58
58
|
visible: PropTypes.Requireable<boolean>;
|
|
59
59
|
autoAdjustOverflow: PropTypes.Requireable<boolean>;
|
|
60
60
|
motion: PropTypes.Requireable<boolean>;
|
|
61
|
-
position: PropTypes.Requireable<"
|
|
61
|
+
position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
|
|
62
62
|
margin: PropTypes.Requireable<NonNullable<number | object>>;
|
|
63
63
|
mouseEnterDelay: PropTypes.Requireable<number>;
|
|
64
64
|
mouseLeaveDelay: PropTypes.Requireable<number>;
|
package/lib/es/radio/radio.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ declare class Radio extends BaseComponent<RadioProps, RadioState> {
|
|
|
61
61
|
extra: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
62
62
|
addonStyle: PropTypes.Requireable<object>;
|
|
63
63
|
addonClassName: PropTypes.Requireable<string>;
|
|
64
|
-
type: PropTypes.Requireable<"
|
|
64
|
+
type: PropTypes.Requireable<"button" | "default" | "card" | "pureCard">;
|
|
65
65
|
'aria-label': PropTypes.Requireable<string>;
|
|
66
66
|
preventScroll: PropTypes.Requireable<boolean>;
|
|
67
67
|
};
|
|
@@ -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" | "middle" | "large";
|
|
86
86
|
isCardRadio?: boolean;
|
|
87
87
|
isPureCardRadio?: boolean;
|
|
88
88
|
};
|
|
@@ -48,8 +48,8 @@ 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" | "
|
|
52
|
-
type: PropTypes.Requireable<"
|
|
51
|
+
buttonSize: PropTypes.Requireable<"small" | "middle" | "large">;
|
|
52
|
+
type: PropTypes.Requireable<"button" | "default" | "card" | "pureCard">;
|
|
53
53
|
value: PropTypes.Requireable<any>;
|
|
54
54
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
55
55
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
package/lib/es/rating/index.d.ts
CHANGED
|
@@ -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/es/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>;
|
package/lib/es/select/index.d.ts
CHANGED
|
@@ -202,7 +202,7 @@ declare class Select extends BaseComponent<SelectProps, SelectState> {
|
|
|
202
202
|
expandRestTagsOnClick: PropTypes.Requireable<boolean>;
|
|
203
203
|
onDropdownVisibleChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
204
204
|
zIndex: PropTypes.Requireable<number>;
|
|
205
|
-
position: PropTypes.Requireable<"
|
|
205
|
+
position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
|
|
206
206
|
onSearch: PropTypes.Requireable<(...args: any[]) => any>;
|
|
207
207
|
getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
208
208
|
dropdownClassName: PropTypes.Requireable<string>;
|
package/lib/es/switch/index.d.ts
CHANGED
|
@@ -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/es/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<"center" | "left" | "right">;
|
|
@@ -298,7 +298,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
|
|
|
298
298
|
showTotal?: boolean;
|
|
299
299
|
pageSize?: number;
|
|
300
300
|
pageSizeOpts?: number[];
|
|
301
|
-
size?: "
|
|
301
|
+
size?: "small" | "default";
|
|
302
302
|
currentPage?: number;
|
|
303
303
|
defaultCurrentPage?: number;
|
|
304
304
|
onPageChange?: (currentPage: number) => void;
|
|
@@ -309,7 +309,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
|
|
|
309
309
|
showSizeChanger?: boolean;
|
|
310
310
|
showQuickJumper?: boolean;
|
|
311
311
|
popoverZIndex?: number;
|
|
312
|
-
popoverPosition?: "
|
|
312
|
+
popoverPosition?: "top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
|
|
313
313
|
hideOnSinglePage?: boolean;
|
|
314
314
|
hoverShowPageSelect?: boolean;
|
|
315
315
|
disabled?: boolean;
|
package/lib/es/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<"center" | "left" | "right">;
|
|
@@ -6,7 +6,6 @@ import type { Locale } from '../locale/interface';
|
|
|
6
6
|
import type { ArrayElement } from '../_base/base';
|
|
7
7
|
import { strings } from '@douyinfe/semi-foundation/lib/es/table/constants';
|
|
8
8
|
import type { BaseRowKeyType, BaseSortOrder, BaseGroupBy, BaseGroupByFn, BaseFixed, BaseAlign, BaseChangeInfoSorter, BaseSorter, BaseFilter, BaseChangeInfoFilter, BaseIncludeGroupRecord, BaseEllipsis } from '@douyinfe/semi-foundation/lib/es/table/foundation';
|
|
9
|
-
import type { ScrollDirection, CSSDirection, VariableSizeList } from 'react-window';
|
|
10
9
|
import type { ColumnFilterProps } from './ColumnFilter';
|
|
11
10
|
export interface TableProps<RecordType extends Record<string, any> = any> extends BaseProps {
|
|
12
11
|
bordered?: boolean;
|
|
@@ -254,7 +253,35 @@ export type FormatPageText = ((pageInfo?: {
|
|
|
254
253
|
currentEnd?: number;
|
|
255
254
|
total?: number;
|
|
256
255
|
}) => React.ReactNode) | boolean;
|
|
257
|
-
|
|
256
|
+
/**
|
|
257
|
+
* ref to react-window `VariableSizeList` instance
|
|
258
|
+
*
|
|
259
|
+
* only work when `virtualized` is truthy
|
|
260
|
+
*
|
|
261
|
+
* @see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/58aabc0cfd2baf08f5f71a2712ae7baa6cb2a3ce/types/react-window/index.d.ts#L378
|
|
262
|
+
*/
|
|
263
|
+
export type GetVirtualizedListRef = (ref: MutableRefObject<{
|
|
264
|
+
/**
|
|
265
|
+
* Scroll to the specified offset (scrollTop or scrollLeft, depending on the direction prop).
|
|
266
|
+
*/
|
|
267
|
+
scrollTo(scrollOffset: number): void;
|
|
268
|
+
/**
|
|
269
|
+
* Scroll to the specified item.
|
|
270
|
+
*
|
|
271
|
+
* By default, the List will scroll as little as possible to ensure the item is visible.
|
|
272
|
+
* You can control the alignment of the item though by specifying a second alignment parameter. Acceptable values are:
|
|
273
|
+
*
|
|
274
|
+
* - auto (default) - Scroll as little as possible to ensure the item is visible. (If the item is already visible, it won't scroll at all.)
|
|
275
|
+
* - smart
|
|
276
|
+
* - If the item is already visible, don't scroll at all.
|
|
277
|
+
* - If it is less than one viewport away, scroll as little as possible so that it becomes visible.
|
|
278
|
+
* - If it is more than one viewport away, scroll so that it is centered within the list.
|
|
279
|
+
* - center - Center align the item within the list.
|
|
280
|
+
* - end - Align the item to the end of the list (the bottom for vertical lists or the right for horizontal lists).
|
|
281
|
+
* - start - Align the item to the beginning of the list (the top for vertical lists or the left for horizontal lists).
|
|
282
|
+
*/
|
|
283
|
+
scrollToItem(index: number, align?: Align): void;
|
|
284
|
+
}>) => void;
|
|
258
285
|
export type GroupByFunction<RecordType> = BaseGroupByFn<RecordType>;
|
|
259
286
|
export type GroupBy<RecordType> = BaseGroupBy<RecordType>;
|
|
260
287
|
export type Size = ArrayElement<typeof strings.SIZES>;
|
|
@@ -288,7 +315,7 @@ export type RowExpandable<RecordType> = (record?: RecordType) => boolean;
|
|
|
288
315
|
export type RowKey<RecordType> = BaseRowKeyType | ((record?: RecordType) => string);
|
|
289
316
|
export type RowSelection<RecordType> = RowSelectionProps<RecordType> | boolean;
|
|
290
317
|
export type VirtualizedOnScrollArgs = {
|
|
291
|
-
scrollDirection?:
|
|
318
|
+
scrollDirection?: "forward" | "backward";
|
|
292
319
|
scrollOffset?: number;
|
|
293
320
|
scrollUpdateWasRequested?: boolean;
|
|
294
321
|
};
|
|
@@ -323,7 +350,7 @@ export interface BodyScrollEvent extends React.UIEvent {
|
|
|
323
350
|
}
|
|
324
351
|
export type BodyScrollPosition = 'both' | 'middle' | 'left' | 'right';
|
|
325
352
|
export type TableLocale = Locale['Table'];
|
|
326
|
-
export type Direction =
|
|
353
|
+
export type Direction = "ltr" | "rtl";
|
|
327
354
|
export type IncludeGroupRecord<RecordType> = BaseIncludeGroupRecord<RecordType>;
|
|
328
355
|
export type Sticky = boolean | {
|
|
329
356
|
top?: number;
|
|
@@ -97,7 +97,7 @@ declare class TagInput extends BaseComponent<TagInputProps, TagInputState> {
|
|
|
97
97
|
onAdd: PropTypes.Requireable<(...args: any[]) => any>;
|
|
98
98
|
onRemove: PropTypes.Requireable<(...args: any[]) => any>;
|
|
99
99
|
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
100
|
-
size: PropTypes.Requireable<"
|
|
100
|
+
size: PropTypes.Requireable<"small" | "default" | "large">;
|
|
101
101
|
validateStatus: PropTypes.Requireable<"default" | "error" | "warning" | "success">;
|
|
102
102
|
prefix: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
103
103
|
suffix: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
@@ -133,7 +133,7 @@ export default class TimePicker extends BaseComponent<TimePickerProps, TimePicke
|
|
|
133
133
|
secondStep: PropTypes.Requireable<number>;
|
|
134
134
|
focusOnOpen: PropTypes.Requireable<boolean>;
|
|
135
135
|
autoFocus: PropTypes.Requireable<boolean>;
|
|
136
|
-
size: PropTypes.Requireable<"
|
|
136
|
+
size: PropTypes.Requireable<"small" | "default" | "large">;
|
|
137
137
|
stopPropagation: PropTypes.Requireable<boolean>;
|
|
138
138
|
panels: PropTypes.Requireable<PropTypes.InferProps<{
|
|
139
139
|
panelHeader: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
@@ -49,7 +49,7 @@ export default class LocaleTimePicker extends React.PureComponent<LocalePickerPr
|
|
|
49
49
|
secondStep: import("prop-types").Requireable<number>;
|
|
50
50
|
focusOnOpen: import("prop-types").Requireable<boolean>;
|
|
51
51
|
autoFocus: import("prop-types").Requireable<boolean>;
|
|
52
|
-
size: import("prop-types").Requireable<"
|
|
52
|
+
size: import("prop-types").Requireable<"small" | "default" | "large">;
|
|
53
53
|
stopPropagation: import("prop-types").Requireable<boolean>;
|
|
54
54
|
panels: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
55
55
|
panelHeader: import("prop-types").Requireable<NonNullable<import("prop-types").ReactNodeLike>>;
|
|
@@ -91,7 +91,7 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
|
|
|
91
91
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
92
92
|
motion: PropTypes.Requireable<boolean>;
|
|
93
93
|
autoAdjustOverflow: PropTypes.Requireable<boolean>;
|
|
94
|
-
position: PropTypes.Requireable<"
|
|
94
|
+
position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
|
|
95
95
|
getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
96
96
|
mouseEnterDelay: PropTypes.Requireable<number>;
|
|
97
97
|
mouseLeaveDelay: PropTypes.Requireable<number>;
|
|
@@ -85,8 +85,8 @@ export default class Base extends Component<BaseTypographyProps, BaseTypographyS
|
|
|
85
85
|
link: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
86
86
|
spacing: PropTypes.Requireable<"normal" | "extended">;
|
|
87
87
|
strong: PropTypes.Requireable<boolean>;
|
|
88
|
-
size: PropTypes.Requireable<"small" | "
|
|
89
|
-
type: PropTypes.Requireable<"warning" | "success" | "primary" | "
|
|
88
|
+
size: PropTypes.Requireable<"small" | "inherit" | "normal">;
|
|
89
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
|
|
90
90
|
style: PropTypes.Requireable<object>;
|
|
91
91
|
className: PropTypes.Requireable<string>;
|
|
92
92
|
icon: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
@@ -110,7 +110,7 @@ export default class Base extends Component<BaseTypographyProps, BaseTypographyS
|
|
|
110
110
|
style: {};
|
|
111
111
|
className: string;
|
|
112
112
|
};
|
|
113
|
-
static contextType: React.Context<"small" | "
|
|
113
|
+
static contextType: React.Context<"small" | "inherit" | "normal">;
|
|
114
114
|
context: TypographyBaseSize;
|
|
115
115
|
wrapperRef: React.RefObject<any>;
|
|
116
116
|
expandRef: React.RefObject<any>;
|
|
@@ -28,7 +28,7 @@ export default class Numeral extends PureComponent<NumeralProps> {
|
|
|
28
28
|
static propTypes: {
|
|
29
29
|
rule: PropTypes.Requireable<"text" | "numbers" | "bytes-decimal" | "bytes-binary" | "percentages" | "exponential">;
|
|
30
30
|
precision: PropTypes.Requireable<number>;
|
|
31
|
-
truncate: PropTypes.Requireable<"
|
|
31
|
+
truncate: PropTypes.Requireable<"ceil" | "floor" | "round">;
|
|
32
32
|
parser: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
33
|
copyable: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
34
34
|
delete: PropTypes.Requireable<boolean>;
|
|
@@ -38,8 +38,8 @@ 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" | "
|
|
42
|
-
size: PropTypes.Requireable<"small" | "
|
|
41
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
|
|
42
|
+
size: PropTypes.Requireable<"small" | "inherit" | "normal">;
|
|
43
43
|
style: PropTypes.Requireable<object>;
|
|
44
44
|
className: PropTypes.Requireable<string>;
|
|
45
45
|
code: PropTypes.Requireable<boolean>;
|
|
@@ -50,8 +50,8 @@ export default class Paragraph extends PureComponent<ParagraphProps> {
|
|
|
50
50
|
link: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
51
51
|
underline: PropTypes.Requireable<boolean>;
|
|
52
52
|
strong: PropTypes.Requireable<boolean>;
|
|
53
|
-
type: PropTypes.Requireable<"warning" | "success" | "primary" | "
|
|
54
|
-
size: PropTypes.Requireable<"small" | "
|
|
53
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
|
|
54
|
+
size: PropTypes.Requireable<"small" | "inherit" | "normal">;
|
|
55
55
|
spacing: PropTypes.Requireable<"normal" | "extended">;
|
|
56
56
|
style: PropTypes.Requireable<object>;
|
|
57
57
|
className: PropTypes.Requireable<string>;
|
|
@@ -54,8 +54,8 @@ export default class Text extends PureComponent<TextProps> {
|
|
|
54
54
|
underline: PropTypes.Requireable<boolean>;
|
|
55
55
|
link: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
56
56
|
strong: PropTypes.Requireable<boolean>;
|
|
57
|
-
type: PropTypes.Requireable<"warning" | "success" | "primary" | "
|
|
58
|
-
size: PropTypes.Requireable<"small" | "
|
|
57
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
|
|
58
|
+
size: PropTypes.Requireable<"small" | "inherit" | "normal">;
|
|
59
59
|
style: PropTypes.Requireable<object>;
|
|
60
60
|
className: PropTypes.Requireable<string>;
|
|
61
61
|
code: PropTypes.Requireable<boolean>;
|
|
@@ -60,12 +60,12 @@ export default class Title extends PureComponent<TitleProps> {
|
|
|
60
60
|
link: PropTypes.Requireable<NonNullable<boolean | object>>;
|
|
61
61
|
underline: PropTypes.Requireable<boolean>;
|
|
62
62
|
strong: PropTypes.Requireable<boolean>;
|
|
63
|
-
type: PropTypes.Requireable<"warning" | "success" | "primary" | "
|
|
64
|
-
heading: PropTypes.Requireable<
|
|
63
|
+
type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
|
|
64
|
+
heading: PropTypes.Requireable<2 | 1 | 4 | 3 | 5 | 6>;
|
|
65
65
|
style: PropTypes.Requireable<object>;
|
|
66
66
|
className: PropTypes.Requireable<string>;
|
|
67
67
|
component: PropTypes.Requireable<string>;
|
|
68
|
-
weight: PropTypes.Requireable<NonNullable<number | "
|
|
68
|
+
weight: PropTypes.Requireable<NonNullable<number | "bold" | "default" | "light" | "regular" | "medium" | "semibold">>;
|
|
69
69
|
};
|
|
70
70
|
static defaultProps: {
|
|
71
71
|
copyable: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.67.
|
|
3
|
+
"version": "2.67.3-alpha.0",
|
|
4
4
|
"description": "A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"@dnd-kit/core": "^6.0.8",
|
|
21
21
|
"@dnd-kit/sortable": "^7.0.2",
|
|
22
22
|
"@dnd-kit/utilities": "^3.2.1",
|
|
23
|
-
"@douyinfe/semi-animation": "2.67.
|
|
24
|
-
"@douyinfe/semi-animation-react": "2.67.
|
|
25
|
-
"@douyinfe/semi-foundation": "2.67.
|
|
26
|
-
"@douyinfe/semi-icons": "2.67.
|
|
27
|
-
"@douyinfe/semi-illustrations": "2.67.
|
|
23
|
+
"@douyinfe/semi-animation": "2.67.3-alpha.0",
|
|
24
|
+
"@douyinfe/semi-animation-react": "2.67.3-alpha.0",
|
|
25
|
+
"@douyinfe/semi-foundation": "2.67.3-alpha.0",
|
|
26
|
+
"@douyinfe/semi-icons": "2.67.3-alpha.0",
|
|
27
|
+
"@douyinfe/semi-illustrations": "2.67.3-alpha.0",
|
|
28
28
|
"@douyinfe/semi-theme-default": "2.61.0",
|
|
29
29
|
"async-validator": "^3.5.0",
|
|
30
30
|
"classnames": "^2.2.6",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
],
|
|
76
76
|
"author": "",
|
|
77
77
|
"license": "MIT",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "d6d8847b6406fe9e0000ea4eebe52265d762f48d",
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
81
81
|
"@babel/plugin-transform-runtime": "^7.15.8",
|