@antscorp/antsomi-ui 1.3.3-beta.50 → 1.3.3-beta.51
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EmptyProps } from 'antd';
|
|
3
|
+
export interface IEmpty extends EmptyProps {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const Empty: React.FC<IEmpty>;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Empty as AntdEmpty } from 'antd';
|
|
2
|
-
|
|
3
|
+
import { Spin } from '../Spin';
|
|
4
|
+
import { LoadingOutlined } from '@ant-design/icons';
|
|
5
|
+
export const Empty = props => {
|
|
6
|
+
const { loading, description } = props;
|
|
7
|
+
return (React.createElement(AntdEmpty, Object.assign({}, props, { description: loading ? (React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 24 }, spin: true }) })) : (description) })));
|
|
8
|
+
};
|
|
@@ -9,13 +9,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import React, { useEffect, useState } from 'react';
|
|
11
11
|
import { Avatar, Select } from 'antd';
|
|
12
|
-
import { useDebounce } from 'use-debounce';
|
|
13
12
|
import { StyledSearchUserRoot, StyledSelectItem } from './styled';
|
|
14
|
-
import { isEmail } from '
|
|
13
|
+
import { isEmail } from 'src/utils';
|
|
15
14
|
import { useShareAccess } from '../../hooks';
|
|
16
15
|
import { produce } from 'immer';
|
|
17
16
|
import { ACCESS_PROPERTIES_BY_ROLE, ROLE_MAPPING } from '../../constants';
|
|
18
17
|
import { updateObjAccessInfo } from '../../actions';
|
|
18
|
+
import { useDebounce } from '../../../../../hooks/useDebounce';
|
|
19
19
|
export const SearchUser = (props) => {
|
|
20
20
|
const { getUserInfo } = props;
|
|
21
21
|
const { state, dispatch } = useShareAccess();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antscorp/antsomi-ui",
|
|
3
|
-
"version": "1.3.3-beta.
|
|
3
|
+
"version": "1.3.3-beta.51",
|
|
4
4
|
"description": "An enterprise-class UI design language and React UI library.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"dist/*",
|
|
@@ -88,8 +88,7 @@
|
|
|
88
88
|
"rehype-highlight": "^6.0.0",
|
|
89
89
|
"remark-gfm": "^3.0.1",
|
|
90
90
|
"ts-dedent": "^2.2.0",
|
|
91
|
-
"tui-image-editor": "^3.15.3"
|
|
92
|
-
"use-debounce": "^10.0.0"
|
|
91
|
+
"tui-image-editor": "^3.15.3"
|
|
93
92
|
},
|
|
94
93
|
"devDependencies": {
|
|
95
94
|
"@ant-design/cssinjs": "^1.6.2",
|