@douyinfe/semi-ui 2.32.2 → 2.32.4
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 +117 -98
- 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/datePicker/dateInput.d.ts +1 -1
- package/lib/cjs/datePicker/datePicker.d.ts +2 -2
- package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
- 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 +2 -1
- package/lib/cjs/input/index.js +17 -1
- package/lib/cjs/input/inputGroup.d.ts +1 -1
- package/lib/cjs/modal/confirm.d.ts +21 -21
- package/lib/cjs/overflowList/index.js +2 -2
- 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/treeSelect/index.js +3 -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 +1 -1
- package/lib/es/button/buttonGroup.d.ts +1 -1
- package/lib/es/button/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 +1 -1
- 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 +2 -1
- package/lib/es/input/index.js +17 -1
- package/lib/es/input/inputGroup.d.ts +1 -1
- package/lib/es/modal/confirm.d.ts +21 -21
- package/lib/es/overflowList/index.js +2 -2
- 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/treeSelect/index.js +3 -1
- package/package.json +8 -8
|
@@ -140,22 +140,22 @@ 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/es/modal/modalFoundation").Size;
|
|
146
147
|
style?: React.CSSProperties;
|
|
147
148
|
className?: string;
|
|
148
|
-
motion?: boolean;
|
|
149
|
-
getPopupContainer?: () => HTMLElement;
|
|
150
|
-
footer?: React.ReactNode;
|
|
151
|
-
header?: React.ReactNode;
|
|
152
|
-
direction?: any;
|
|
153
149
|
width?: string | number;
|
|
154
150
|
height?: string | number;
|
|
151
|
+
footer?: React.ReactNode;
|
|
152
|
+
header?: React.ReactNode;
|
|
155
153
|
mask?: boolean;
|
|
156
154
|
visible?: boolean;
|
|
157
155
|
content?: React.ReactNode;
|
|
158
156
|
icon: string | number | boolean | React.ReactFragment | JSX.Element;
|
|
157
|
+
getPopupContainer?: () => HTMLElement;
|
|
158
|
+
direction?: any;
|
|
159
159
|
zIndex?: number;
|
|
160
160
|
closeOnEsc?: boolean;
|
|
161
161
|
preventScroll?: boolean;
|
|
@@ -201,34 +201,24 @@ 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[];
|
|
207
|
-
onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
208
|
-
onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
209
209
|
form?: string;
|
|
210
210
|
slot?: string;
|
|
211
211
|
hidden?: boolean;
|
|
212
212
|
color?: string;
|
|
213
|
-
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
214
|
-
defaultChecked?: boolean;
|
|
215
213
|
defaultValue?: string | number | readonly string[];
|
|
216
|
-
suppressContentEditableWarning?: boolean;
|
|
217
|
-
suppressHydrationWarning?: boolean;
|
|
218
214
|
accessKey?: string;
|
|
219
|
-
autoFocus?: boolean;
|
|
220
|
-
formAction?: string;
|
|
221
|
-
formEncType?: string;
|
|
222
|
-
formMethod?: string;
|
|
223
|
-
formNoValidate?: boolean;
|
|
224
|
-
formTarget?: string;
|
|
225
215
|
dir?: string;
|
|
226
216
|
draggable?: boolean | "false" | "true";
|
|
227
217
|
lang?: string;
|
|
228
|
-
translate?: "
|
|
218
|
+
translate?: "yes" | "no";
|
|
229
219
|
prefix?: string;
|
|
230
220
|
contentEditable?: "inherit" | (boolean | "false" | "true");
|
|
231
|
-
inputMode?: "
|
|
221
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
232
222
|
tabIndex?: number;
|
|
233
223
|
role?: React.AriaRole;
|
|
234
224
|
onMouseOut?: React.MouseEventHandler<HTMLButtonElement>;
|
|
@@ -240,6 +230,9 @@ export declare function withError(props: ModalReactProps): {
|
|
|
240
230
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree";
|
|
241
231
|
'aria-controls'?: string;
|
|
242
232
|
'aria-describedby'?: string;
|
|
233
|
+
defaultChecked?: boolean;
|
|
234
|
+
suppressContentEditableWarning?: boolean;
|
|
235
|
+
suppressHydrationWarning?: boolean;
|
|
243
236
|
contextMenu?: string;
|
|
244
237
|
placeholder?: string;
|
|
245
238
|
spellCheck?: boolean | "false" | "true";
|
|
@@ -274,7 +267,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
274
267
|
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "location" | "step" | "date";
|
|
275
268
|
'aria-details'?: string;
|
|
276
269
|
'aria-disabled'?: boolean | "false" | "true";
|
|
277
|
-
'aria-dropeffect'?: "
|
|
270
|
+
'aria-dropeffect'?: "none" | "link" | "copy" | "move" | "execute" | "popup";
|
|
278
271
|
'aria-errormessage'?: string;
|
|
279
272
|
'aria-flowto'?: string;
|
|
280
273
|
'aria-grabbed'?: boolean | "false" | "true";
|
|
@@ -323,6 +316,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
323
316
|
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLButtonElement>;
|
|
324
317
|
onFocusCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
325
318
|
onBlurCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
319
|
+
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
326
320
|
onChangeCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
327
321
|
onBeforeInput?: React.FormEventHandler<HTMLButtonElement>;
|
|
328
322
|
onBeforeInputCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
@@ -457,6 +451,12 @@ export declare function withError(props: ModalReactProps): {
|
|
|
457
451
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
458
452
|
onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement>;
|
|
459
453
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement>;
|
|
454
|
+
autoFocus?: boolean;
|
|
455
|
+
formAction?: string;
|
|
456
|
+
formEncType?: string;
|
|
457
|
+
formMethod?: string;
|
|
458
|
+
formNoValidate?: boolean;
|
|
459
|
+
formTarget?: string;
|
|
460
460
|
};
|
|
461
461
|
};
|
|
462
462
|
export declare function withConfirm(props: ModalReactProps): {
|
|
@@ -139,13 +139,13 @@ class OverflowList extends BaseComponent {
|
|
|
139
139
|
const element = visibleItemRenderer(item, idx);
|
|
140
140
|
const child = /*#__PURE__*/React.cloneElement(element);
|
|
141
141
|
return /*#__PURE__*/React.createElement(ResizeObserver, {
|
|
142
|
-
key: key,
|
|
142
|
+
key: key !== null && key !== void 0 ? key : idx,
|
|
143
143
|
onResize: _ref2 => {
|
|
144
144
|
let [entry] = _ref2;
|
|
145
145
|
return this.onItemResize(entry, item, idx);
|
|
146
146
|
}
|
|
147
147
|
}, /*#__PURE__*/React.createElement("div", {
|
|
148
|
-
key: key,
|
|
148
|
+
key: key !== null && key !== void 0 ? key : idx,
|
|
149
149
|
className: `${prefixCls}-item`
|
|
150
150
|
}, child));
|
|
151
151
|
}), collapseFrom === Boundary.END ? overflow : null];
|
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" | "default" | "middle">;
|
|
64
64
|
tableLayout: PropTypes.Requireable<"" | "fixed" | "auto">;
|
|
65
65
|
columns: PropTypes.Requireable<PropTypes.InferProps<{
|
|
66
66
|
align: PropTypes.Requireable<"left" | "right" | "center">;
|
|
@@ -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" | "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>>;
|
|
@@ -608,7 +608,8 @@ class TreeSelect extends BaseComponent {
|
|
|
608
608
|
searchPosition,
|
|
609
609
|
searchAutoFocus,
|
|
610
610
|
multiple,
|
|
611
|
-
disabled
|
|
611
|
+
disabled,
|
|
612
|
+
preventScroll
|
|
612
613
|
} = this.props;
|
|
613
614
|
const isDropdownPositionSearch = searchPosition === strings.SEARCH_POSITION_DROPDOWN;
|
|
614
615
|
const inputcls = cls({
|
|
@@ -621,6 +622,7 @@ class TreeSelect extends BaseComponent {
|
|
|
621
622
|
const baseInputProps = {
|
|
622
623
|
value: inputValue,
|
|
623
624
|
className: inputcls,
|
|
625
|
+
preventScroll,
|
|
624
626
|
onChange: value => this.search(value)
|
|
625
627
|
};
|
|
626
628
|
const inputDropdownProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.32.
|
|
3
|
+
"version": "2.32.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"lib/*"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@douyinfe/semi-animation": "2.32.
|
|
21
|
-
"@douyinfe/semi-animation-react": "2.32.
|
|
22
|
-
"@douyinfe/semi-foundation": "2.32.
|
|
23
|
-
"@douyinfe/semi-icons": "2.32.
|
|
24
|
-
"@douyinfe/semi-illustrations": "2.32.
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.32.
|
|
20
|
+
"@douyinfe/semi-animation": "2.32.4",
|
|
21
|
+
"@douyinfe/semi-animation-react": "2.32.4",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.32.4",
|
|
23
|
+
"@douyinfe/semi-icons": "2.32.4",
|
|
24
|
+
"@douyinfe/semi-illustrations": "2.32.4",
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.32.4",
|
|
26
26
|
"async-validator": "^3.5.0",
|
|
27
27
|
"classnames": "^2.2.6",
|
|
28
28
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
],
|
|
70
70
|
"author": "",
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "bed9aff602c6e8cb9119889c87cd5c260e37e53b",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|