@douyinfe/semi-ui 2.55.4 → 2.56.0-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/dist/umd/semi-ui.js +63 -14
- 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 +1 -1
- package/lib/cjs/button/buttonGroup.d.ts +1 -1
- package/lib/cjs/button/index.d.ts +1 -1
- package/lib/cjs/cascader/index.js +7 -3
- package/lib/cjs/datePicker/datePicker.d.ts +1 -1
- package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
- package/lib/cjs/form/baseForm.d.ts +2 -2
- package/lib/cjs/form/field.d.ts +2 -2
- 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 +16 -16
- 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/switch/index.d.ts +1 -1
- package/lib/cjs/table/Table.d.ts +2 -2
- 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/tree/treeNode.js +2 -1
- package/lib/cjs/treeSelect/index.js +2 -2
- package/lib/cjs/typography/title.d.ts +2 -2
- 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 +1 -1
- package/lib/es/button/buttonGroup.d.ts +1 -1
- package/lib/es/button/index.d.ts +1 -1
- package/lib/es/cascader/index.js +7 -3
- package/lib/es/datePicker/datePicker.d.ts +1 -1
- package/lib/es/datePicker/monthsGrid.d.ts +1 -1
- package/lib/es/form/baseForm.d.ts +2 -2
- package/lib/es/form/field.d.ts +2 -2
- 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 +16 -16
- 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/switch/index.d.ts +1 -1
- package/lib/es/table/Table.d.ts +2 -2
- 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/tree/treeNode.js +2 -1
- package/lib/es/treeSelect/index.js +2 -2
- package/lib/es/typography/title.d.ts +2 -2
- package/package.json +8 -8
|
@@ -143,19 +143,19 @@ export declare function withWarning(props: ModalReactProps): {
|
|
|
143
143
|
type: "warning";
|
|
144
144
|
};
|
|
145
145
|
export declare function withError(props: ModalReactProps): {
|
|
146
|
-
title?: React.ReactNode;
|
|
147
146
|
children?: React.ReactNode;
|
|
148
|
-
size?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").Size;
|
|
149
|
-
style?: React.CSSProperties;
|
|
150
|
-
className?: string;
|
|
151
|
-
motion?: boolean;
|
|
152
|
-
getPopupContainer?: () => HTMLElement;
|
|
153
147
|
footer?: React.ReactNode;
|
|
154
148
|
header?: React.ReactNode;
|
|
155
|
-
|
|
149
|
+
style?: React.CSSProperties;
|
|
150
|
+
title?: React.ReactNode;
|
|
156
151
|
mask?: boolean;
|
|
157
152
|
visible?: boolean;
|
|
153
|
+
className?: string;
|
|
158
154
|
zIndex?: number;
|
|
155
|
+
getPopupContainer?: () => HTMLElement;
|
|
156
|
+
direction?: any;
|
|
157
|
+
size?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").Size;
|
|
158
|
+
motion?: boolean;
|
|
159
159
|
width?: string | number;
|
|
160
160
|
height?: string | number;
|
|
161
161
|
content?: React.ReactNode;
|
|
@@ -205,13 +205,6 @@ export declare function withError(props: ModalReactProps): {
|
|
|
205
205
|
onMouseEnter?: React.MouseEventHandler<HTMLButtonElement>;
|
|
206
206
|
onMouseLeave?: React.MouseEventHandler<HTMLButtonElement>;
|
|
207
207
|
'aria-label'?: string;
|
|
208
|
-
title?: string;
|
|
209
|
-
name?: string;
|
|
210
|
-
value?: string | number | readonly string[];
|
|
211
|
-
onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
212
|
-
onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
213
|
-
form?: string;
|
|
214
|
-
slot?: string;
|
|
215
208
|
prefix?: string;
|
|
216
209
|
dangerouslySetInnerHTML?: {
|
|
217
210
|
__html: string | TrustedHTML;
|
|
@@ -366,12 +359,17 @@ export declare function withError(props: ModalReactProps): {
|
|
|
366
359
|
onScrollCapture?: React.UIEventHandler<HTMLButtonElement>;
|
|
367
360
|
onWheel?: React.WheelEventHandler<HTMLButtonElement>;
|
|
368
361
|
onWheelCapture?: React.WheelEventHandler<HTMLButtonElement>;
|
|
362
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
369
363
|
onAnimationStartCapture?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
364
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
370
365
|
onAnimationEndCapture?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
371
366
|
onAnimationIteration?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
372
367
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
373
368
|
onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement>;
|
|
374
369
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement>;
|
|
370
|
+
form?: string;
|
|
371
|
+
slot?: string;
|
|
372
|
+
title?: string;
|
|
375
373
|
hidden?: boolean;
|
|
376
374
|
color?: string;
|
|
377
375
|
defaultChecked?: boolean;
|
|
@@ -380,6 +378,8 @@ export declare function withError(props: ModalReactProps): {
|
|
|
380
378
|
suppressHydrationWarning?: boolean;
|
|
381
379
|
accessKey?: string;
|
|
382
380
|
autoFocus?: boolean;
|
|
381
|
+
value?: string | number | readonly string[];
|
|
382
|
+
name?: string;
|
|
383
383
|
contextMenu?: string;
|
|
384
384
|
dir?: string;
|
|
385
385
|
draggable?: boolean | "true" | "false";
|
|
@@ -387,7 +387,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
387
387
|
translate?: "no" | "yes";
|
|
388
388
|
role?: React.AriaRole;
|
|
389
389
|
contentEditable?: "inherit" | (boolean | "true" | "false");
|
|
390
|
-
inputMode?: "search" | "
|
|
390
|
+
inputMode?: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal";
|
|
391
391
|
nonce?: string;
|
|
392
392
|
tabIndex?: number;
|
|
393
393
|
content?: string;
|
|
@@ -421,7 +421,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
421
421
|
is?: string;
|
|
422
422
|
'aria-activedescendant'?: string;
|
|
423
423
|
'aria-atomic'?: boolean | "true" | "false";
|
|
424
|
-
'aria-autocomplete'?: "
|
|
424
|
+
'aria-autocomplete'?: "none" | "list" | "both" | "inline";
|
|
425
425
|
'aria-busy'?: boolean | "true" | "false";
|
|
426
426
|
'aria-checked'?: boolean | "true" | "false" | "mixed";
|
|
427
427
|
'aria-colcount'?: 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
|
};
|
|
@@ -49,7 +49,7 @@ declare class RadioGroup extends BaseComponent<RadioGroupProps, RadioGroupState>
|
|
|
49
49
|
name: PropTypes.Requireable<string>;
|
|
50
50
|
options: PropTypes.Requireable<any[]>;
|
|
51
51
|
buttonSize: PropTypes.Requireable<"small" | "middle" | "large">;
|
|
52
|
-
type: PropTypes.Requireable<"
|
|
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/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" | "middle" | "default">;
|
|
64
64
|
tableLayout: PropTypes.Requireable<"" | "fixed" | "auto">;
|
|
65
65
|
columns: PropTypes.Requireable<PropTypes.InferProps<{
|
|
66
66
|
align: PropTypes.Requireable<"center" | "left" | "right">;
|
|
@@ -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/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" | "middle" | "default">;
|
|
20
20
|
tableLayout: PropTypes.Requireable<"" | "fixed" | "auto">;
|
|
21
21
|
columns: PropTypes.Requireable<PropTypes.InferProps<{
|
|
22
22
|
align: PropTypes.Requireable<"center" | "left" | "right">;
|
|
@@ -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>>;
|
package/lib/es/tree/treeNode.js
CHANGED
|
@@ -41,6 +41,7 @@ export default class TreeNode extends PureComponent {
|
|
|
41
41
|
onNodeExpand(e, this.props);
|
|
42
42
|
};
|
|
43
43
|
this.onCheck = e => {
|
|
44
|
+
var _a, _b;
|
|
44
45
|
if (this.isDisabled()) {
|
|
45
46
|
return;
|
|
46
47
|
}
|
|
@@ -48,7 +49,7 @@ export default class TreeNode extends PureComponent {
|
|
|
48
49
|
onNodeCheck
|
|
49
50
|
} = this.context;
|
|
50
51
|
e.stopPropagation();
|
|
51
|
-
e.nativeEvent.stopImmediatePropagation();
|
|
52
|
+
(_b = (_a = e.nativeEvent) === null || _a === void 0 ? void 0 : _a.stopImmediatePropagation) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
52
53
|
onNodeCheck(e, this.props);
|
|
53
54
|
};
|
|
54
55
|
/**
|
|
@@ -1133,8 +1133,8 @@ class TreeSelect extends BaseComponent {
|
|
|
1133
1133
|
notifySelect: (selectKey, bool, node) => {
|
|
1134
1134
|
this.props.onSelect && this.props.onSelect(selectKey, bool, node);
|
|
1135
1135
|
},
|
|
1136
|
-
notifySearch: (input, filteredExpandedKeys) => {
|
|
1137
|
-
this.props.onSearch && this.props.onSearch(input, filteredExpandedKeys);
|
|
1136
|
+
notifySearch: (input, filteredExpandedKeys, filteredNodes) => {
|
|
1137
|
+
this.props.onSearch && this.props.onSearch(input, filteredExpandedKeys, filteredNodes);
|
|
1138
1138
|
},
|
|
1139
1139
|
cacheFlattenNodes: bool => {
|
|
1140
1140
|
this.setState({
|
|
@@ -60,11 +60,11 @@ export default class Title extends PureComponent<TitleProps> {
|
|
|
60
60
|
underline: PropTypes.Requireable<boolean>;
|
|
61
61
|
strong: PropTypes.Requireable<boolean>;
|
|
62
62
|
type: PropTypes.Requireable<"warning" | "success" | "primary" | "secondary" | "danger" | "tertiary" | "quaternary">;
|
|
63
|
-
heading: PropTypes.Requireable<
|
|
63
|
+
heading: PropTypes.Requireable<2 | 1 | 4 | 3 | 5 | 6>;
|
|
64
64
|
style: PropTypes.Requireable<object>;
|
|
65
65
|
className: PropTypes.Requireable<string>;
|
|
66
66
|
component: PropTypes.Requireable<string>;
|
|
67
|
-
weight: PropTypes.Requireable<NonNullable<number | "
|
|
67
|
+
weight: PropTypes.Requireable<NonNullable<number | "bold" | "default" | "medium" | "light" | "regular" | "semibold">>;
|
|
68
68
|
};
|
|
69
69
|
static defaultProps: {
|
|
70
70
|
copyable: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.56.0-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,12 +20,12 @@
|
|
|
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.
|
|
24
|
-
"@douyinfe/semi-animation-react": "2.
|
|
25
|
-
"@douyinfe/semi-foundation": "2.
|
|
26
|
-
"@douyinfe/semi-icons": "2.
|
|
27
|
-
"@douyinfe/semi-illustrations": "2.
|
|
28
|
-
"@douyinfe/semi-theme-default": "2.
|
|
23
|
+
"@douyinfe/semi-animation": "2.56.0-alpha.0",
|
|
24
|
+
"@douyinfe/semi-animation-react": "2.56.0-alpha.0",
|
|
25
|
+
"@douyinfe/semi-foundation": "2.56.0-alpha.0",
|
|
26
|
+
"@douyinfe/semi-icons": "2.56.0-alpha.0",
|
|
27
|
+
"@douyinfe/semi-illustrations": "2.56.0-alpha.0",
|
|
28
|
+
"@douyinfe/semi-theme-default": "2.56.0-alpha.0",
|
|
29
29
|
"async-validator": "^3.5.0",
|
|
30
30
|
"classnames": "^2.2.6",
|
|
31
31
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
],
|
|
76
76
|
"author": "",
|
|
77
77
|
"license": "MIT",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "c66a7f2315110d6af211d6edb6163c71a4d8aaa8",
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
81
81
|
"@babel/plugin-transform-runtime": "^7.15.8",
|