@douyinfe/semi-ui 2.16.0 → 2.16.1
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/_base/_story/a11y.jsx +2 -2
- package/avatar/interface.ts +1 -1
- package/collapsible/_story/collapsible.stories.js +6 -6
- package/configProvider/_story/RTLDirection/RTLForm.jsx +1 -1
- package/dist/css/semi.css +5 -2
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +8 -5
- 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/avatar/interface.d.ts +1 -1
- package/lib/cjs/timePicker/TimePicker.js +1 -1
- package/lib/es/avatar/interface.d.ts +1 -1
- package/lib/es/timePicker/TimePicker.js +1 -1
- package/package.json +7 -7
- package/select/_story/select.stories.js +1 -1
- package/select/_story/select.stories.tsx +1 -1
- package/table/_story/Perf/Render/complex.jsx +1 -1
- package/table/_story/Perf/Render/resizableSelection.jsx +1 -1
- package/tagInput/_story/tagInput.stories.js +2 -2
- package/timePicker/TimePicker.tsx +1 -1
- package/upload/__test__/upload.test.js +9 -9
- package/upload/_story/upload.stories.js +5 -5
|
@@ -19,7 +19,7 @@ export interface AvatarProps extends BaseProps {
|
|
|
19
19
|
imgAttr?: React.ImgHTMLAttributes<HTMLImageElement>;
|
|
20
20
|
}
|
|
21
21
|
export declare type AvatarGroupShape = 'circle' | 'square';
|
|
22
|
-
export declare type AvatarGroupSize = 'extra-extra-small' | 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
|
|
22
|
+
export declare type AvatarGroupSize = 'extra-extra-small' | 'extra-small' | 'small' | 'default' | 'medium' | 'large' | 'extra-large';
|
|
23
23
|
export declare type AvatarGroupOverlapFrom = 'start' | 'end';
|
|
24
24
|
export interface AvatarGroupProps {
|
|
25
25
|
children?: React.ReactNode;
|
|
@@ -167,7 +167,7 @@ class TimePicker extends _baseComponent.default {
|
|
|
167
167
|
|
|
168
168
|
if (!isInTimepicker && !isInPanel) {
|
|
169
169
|
const clickedOutside = true;
|
|
170
|
-
this.foundation.
|
|
170
|
+
this.foundation.handlePanelClose(clickedOutside, e);
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
|
|
@@ -19,7 +19,7 @@ export interface AvatarProps extends BaseProps {
|
|
|
19
19
|
imgAttr?: React.ImgHTMLAttributes<HTMLImageElement>;
|
|
20
20
|
}
|
|
21
21
|
export declare type AvatarGroupShape = 'circle' | 'square';
|
|
22
|
-
export declare type AvatarGroupSize = 'extra-extra-small' | 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
|
|
22
|
+
export declare type AvatarGroupSize = 'extra-extra-small' | 'extra-small' | 'small' | 'default' | 'medium' | 'large' | 'extra-large';
|
|
23
23
|
export declare type AvatarGroupOverlapFrom = 'start' | 'end';
|
|
24
24
|
export interface AvatarGroupProps {
|
|
25
25
|
children?: React.ReactNode;
|
|
@@ -133,7 +133,7 @@ export default class TimePicker extends BaseComponent {
|
|
|
133
133
|
|
|
134
134
|
if (!isInTimepicker && !isInPanel) {
|
|
135
135
|
const clickedOutside = true;
|
|
136
|
-
this.foundation.
|
|
136
|
+
this.foundation.handlePanelClose(clickedOutside, e);
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
139
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@babel/runtime-corejs3": "^7.15.4",
|
|
17
17
|
"@douyinfe/semi-animation": "2.12.0",
|
|
18
|
-
"@douyinfe/semi-animation-react": "2.16.
|
|
19
|
-
"@douyinfe/semi-foundation": "2.16.
|
|
20
|
-
"@douyinfe/semi-icons": "2.16.
|
|
18
|
+
"@douyinfe/semi-animation-react": "2.16.1",
|
|
19
|
+
"@douyinfe/semi-foundation": "2.16.1",
|
|
20
|
+
"@douyinfe/semi-icons": "2.16.1",
|
|
21
21
|
"@douyinfe/semi-illustrations": "2.15.0",
|
|
22
|
-
"@douyinfe/semi-theme-default": "2.16.
|
|
22
|
+
"@douyinfe/semi-theme-default": "2.16.1",
|
|
23
23
|
"async-validator": "^3.5.0",
|
|
24
24
|
"classnames": "^2.2.6",
|
|
25
25
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -66,13 +66,13 @@
|
|
|
66
66
|
],
|
|
67
67
|
"author": "",
|
|
68
68
|
"license": "MIT",
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "3de98e4072b5614d5e41e2ad65f687507563dc7c",
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
72
72
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
73
73
|
"@babel/preset-env": "^7.15.8",
|
|
74
74
|
"@babel/preset-react": "^7.14.5",
|
|
75
|
-
"@douyinfe/semi-scss-compile": "2.16.
|
|
75
|
+
"@douyinfe/semi-scss-compile": "2.16.1",
|
|
76
76
|
"@storybook/addon-knobs": "^6.3.1",
|
|
77
77
|
"@types/lodash": "^4.14.176",
|
|
78
78
|
"@types/react": ">=16.0.0",
|
|
@@ -2920,7 +2920,7 @@ SelectInputPropsDemo.story = {
|
|
|
2920
2920
|
export const RenderSelectedItemCallCount = () => {
|
|
2921
2921
|
const list = [
|
|
2922
2922
|
{ "name": "夏可漫", "email": "xiakeman@example.com", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/avatarDemo.jpeg" },
|
|
2923
|
-
{ "name": "申悦", "email": "shenyue@example.com", "avatar": "https://
|
|
2923
|
+
{ "name": "申悦", "email": "shenyue@example.com", "avatar": "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg" },
|
|
2924
2924
|
{ "name": "曲晨一", "email": "quchenyi@example.com", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/8bd8224511db085ed74fea37205aede5.jpg" },
|
|
2925
2925
|
{ "name": "文嘉茂", "email": "wenjiamao@example.com", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/6fbafc2d-e3e6-4cff-a1e2-17709c680624.png" },
|
|
2926
2926
|
{ "name": "文嘉茂2", "email": "wenjiamao@example.com", "avatar": "https://sf6-cdn-tos.douyinstatic.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/6fbafc2d-e3e6-4cff-a1e2-17709c680624.png" },
|
|
@@ -87,7 +87,7 @@ function CustomRender(props) {
|
|
|
87
87
|
name: '申悦',
|
|
88
88
|
email: 'shenyue@example.com',
|
|
89
89
|
avatar:
|
|
90
|
-
'https://
|
|
90
|
+
'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
name: '曲晨一',
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { Table, Typography, Tag, Popover } from '../../../../index';
|
|
4
4
|
|
|
5
5
|
const { Text } = Typography;
|
|
6
|
-
const src = 'https://
|
|
6
|
+
const src = 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg';
|
|
7
7
|
|
|
8
8
|
class App extends React.Component {
|
|
9
9
|
constructor(props) {
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { Table, Typography, Tag, Popover } from '../../../../index';
|
|
4
4
|
|
|
5
5
|
const { Text } = Typography;
|
|
6
|
-
const src = 'https://
|
|
6
|
+
const src = 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg';
|
|
7
7
|
|
|
8
8
|
class App extends React.Component {
|
|
9
9
|
constructor(props) {
|
|
@@ -331,7 +331,7 @@ class CustomRender extends React.Component {
|
|
|
331
331
|
name: 'semi',
|
|
332
332
|
email: 'semi@byte.com',
|
|
333
333
|
avatar:
|
|
334
|
-
'https://
|
|
334
|
+
'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
335
335
|
},
|
|
336
336
|
],
|
|
337
337
|
};
|
|
@@ -367,7 +367,7 @@ class CustomRender extends React.Component {
|
|
|
367
367
|
const item = {};
|
|
368
368
|
item.name = v.name || v;
|
|
369
369
|
item.email = `${item.name}@byte.com`;
|
|
370
|
-
item.avatar = `https://
|
|
370
|
+
item.avatar = `https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg`;
|
|
371
371
|
return item;
|
|
372
372
|
});
|
|
373
373
|
this.setState({
|
|
@@ -248,7 +248,7 @@ export default class TimePicker extends BaseComponent<TimePickerProps, TimePicke
|
|
|
248
248
|
this.timePickerRef.current.contains(e.target as Node);
|
|
249
249
|
if (!isInTimepicker && !isInPanel) {
|
|
250
250
|
const clickedOutside = true;
|
|
251
|
-
this.foundation.
|
|
251
|
+
this.foundation.handlePanelClose(clickedOutside, e);
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
254
|
document.addEventListener('mousedown', this.clickOutSideHandler);
|
|
@@ -45,7 +45,7 @@ const defaultFileList = [
|
|
|
45
45
|
status: 'success',
|
|
46
46
|
size: '130KB',
|
|
47
47
|
preview: true,
|
|
48
|
-
url: 'https://
|
|
48
|
+
url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
uid: '2',
|
|
@@ -53,7 +53,7 @@ const defaultFileList = [
|
|
|
53
53
|
status: 'uploadFail',
|
|
54
54
|
size: '222KB',
|
|
55
55
|
preview: false,
|
|
56
|
-
url: 'https://
|
|
56
|
+
url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
57
57
|
},
|
|
58
58
|
];
|
|
59
59
|
|
|
@@ -448,7 +448,7 @@ describe('Upload', () => {
|
|
|
448
448
|
size: '222KB',
|
|
449
449
|
preview: true,
|
|
450
450
|
fileInstance,
|
|
451
|
-
url: 'https://
|
|
451
|
+
url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
452
452
|
};
|
|
453
453
|
const props = {
|
|
454
454
|
fileList: [file],
|
|
@@ -502,7 +502,7 @@ describe('Upload', () => {
|
|
|
502
502
|
size: '222KB',
|
|
503
503
|
preview: true,
|
|
504
504
|
fileInstance,
|
|
505
|
-
url: 'https://
|
|
505
|
+
url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
506
506
|
};
|
|
507
507
|
let props = {
|
|
508
508
|
defaultFileList: [file],
|
|
@@ -535,7 +535,7 @@ describe('Upload', () => {
|
|
|
535
535
|
status: 'error',
|
|
536
536
|
size: '222KB',
|
|
537
537
|
preview: true,
|
|
538
|
-
url: 'https://
|
|
538
|
+
url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
539
539
|
},
|
|
540
540
|
],
|
|
541
541
|
};
|
|
@@ -756,7 +756,7 @@ describe('Upload', () => {
|
|
|
756
756
|
status: 'success',
|
|
757
757
|
size: '130KB',
|
|
758
758
|
preview: true,
|
|
759
|
-
url: 'https://
|
|
759
|
+
url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
760
760
|
},
|
|
761
761
|
],
|
|
762
762
|
showReplace: true,
|
|
@@ -786,7 +786,7 @@ describe('Upload', () => {
|
|
|
786
786
|
status: 'success',
|
|
787
787
|
size: '130KB',
|
|
788
788
|
preview: true,
|
|
789
|
-
url: 'https://
|
|
789
|
+
url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
790
790
|
},
|
|
791
791
|
],
|
|
792
792
|
};
|
|
@@ -839,7 +839,7 @@ describe('Upload', () => {
|
|
|
839
839
|
status: 'success',
|
|
840
840
|
size: '130KB',
|
|
841
841
|
preview: true,
|
|
842
|
-
url: 'https://
|
|
842
|
+
url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
843
843
|
},
|
|
844
844
|
],
|
|
845
845
|
};
|
|
@@ -933,7 +933,7 @@ describe('Upload', () => {
|
|
|
933
933
|
name: 'jiafang1.jpeg',
|
|
934
934
|
status: 'success',
|
|
935
935
|
size: '130kb',
|
|
936
|
-
url: 'https://
|
|
936
|
+
url: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
937
937
|
},
|
|
938
938
|
],
|
|
939
939
|
showPicInfo: true,
|
|
@@ -258,7 +258,7 @@ const defaultFileList = [
|
|
|
258
258
|
status: 'success',
|
|
259
259
|
size: '130kb',
|
|
260
260
|
url:
|
|
261
|
-
'https://
|
|
261
|
+
'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
264
|
uid: '2',
|
|
@@ -266,7 +266,7 @@ const defaultFileList = [
|
|
|
266
266
|
status: 'uploadFail',
|
|
267
267
|
size: '222kb',
|
|
268
268
|
url:
|
|
269
|
-
'https://
|
|
269
|
+
'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
272
|
uid: '3',
|
|
@@ -275,7 +275,7 @@ const defaultFileList = [
|
|
|
275
275
|
percent: 50,
|
|
276
276
|
size: '222kb',
|
|
277
277
|
url:
|
|
278
|
-
'https://
|
|
278
|
+
'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
uid: '4',
|
|
@@ -284,7 +284,7 @@ const defaultFileList = [
|
|
|
284
284
|
validateMessage: '文件过大',
|
|
285
285
|
size: '222kb',
|
|
286
286
|
url:
|
|
287
|
-
'https://
|
|
287
|
+
'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
uid: '5',
|
|
@@ -293,7 +293,7 @@ const defaultFileList = [
|
|
|
293
293
|
validateMessage: '校验中',
|
|
294
294
|
size: '222kb',
|
|
295
295
|
url:
|
|
296
|
-
'https://
|
|
296
|
+
'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/bag.jpeg',
|
|
297
297
|
},
|
|
298
298
|
];
|
|
299
299
|
|