@para-ui/core 4.0.0 → 4.0.2
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/Button/index.js +1 -1
- package/ButtonGroup/index.js +1 -1
- package/ComboSelect/index.js +1 -1
- package/CopyText/index.js +1 -1
- package/DatePicker/index.js +1 -1
- package/Descriptions/index.js +1 -1
- package/Desktop/index.js +1 -1
- package/Drawer/index.js +1 -1
- package/Dropdown/index.js +1 -1
- package/DynamicMultiBox/index.js +1 -1
- package/Form/index.js +2 -2
- package/FormItem/index.js +2 -2
- package/FunctionModal/index.js +3 -3
- package/InputLang/index.js +1 -1
- package/Message/index.js +2 -2
- package/Modal/index.js +3 -3
- package/MultiBox/index.js +1 -1
- package/Notification/index.js +2 -2
- package/OperateBtn/index.js +1 -1
- package/PageHeader/index.js +1 -1
- package/Pagination/index.js +1 -1
- package/PasswordRules/index.js +2 -2
- package/PopConfirm/index.js +4 -4
- package/Popover/index.js +1 -1
- package/Progress/index.js +2 -2
- package/Prompt/index.d.ts +30 -0
- package/Prompt/index.js +97 -0
- package/QuickReply/index.js +1 -1
- package/README.md +11 -0
- package/Search/index.d.ts +1 -1
- package/Search/index.js +5 -3
- package/Select/index.js +1 -1
- package/SelectInput/index.js +1 -1
- package/Selector/index.js +2 -2
- package/SelectorPicker/index.js +1 -1
- package/SingleBox/index.js +1 -1
- package/Status/index.js +2 -2
- package/Table/index.js +3 -3
- package/Tabs/index.js +1 -1
- package/Tag/index.js +1 -1
- package/TextField/index.js +1 -1
- package/TimePicker/index.js +1 -1
- package/ToggleButton/index.js +1 -1
- package/Transfer/index.js +1 -1
- package/Upload/index.js +1 -1
- package/_verture/{index-da9097d3.js → index-389675ab.js} +1 -1
- package/index.d.ts +2 -0
- package/index.js +4 -3
- package/package.json +1 -1
- package/umd/AutoBox.js +1 -1
- package/umd/Breadcrumbs.js +1 -1
- package/umd/Button.js +1 -1
- package/umd/ButtonGroup.js +1 -1
- package/umd/ComboSelect.js +2 -2
- package/umd/CopyText.js +1 -1
- package/umd/DatePicker.js +1 -1
- package/umd/Descriptions.js +1 -1
- package/umd/Desktop.js +1 -1
- package/umd/Drawer.js +1 -1
- package/umd/Dropdown.js +1 -1
- package/umd/DynamicMultiBox.js +2 -2
- package/umd/Form.js +4 -4
- package/umd/FormItem.js +2 -2
- package/umd/FunctionModal.js +1 -1
- package/umd/InputLang.js +1 -1
- package/umd/Modal.js +1 -1
- package/umd/MultiBox.js +1 -1
- package/umd/OperateBtn.js +1 -1
- package/umd/PageHeader.js +1 -1
- package/umd/Pagination.js +1 -1
- package/umd/PopConfirm.js +1 -1
- package/umd/Popover.js +1 -1
- package/umd/Prompt.js +29 -0
- package/umd/QuickReply.js +1 -1
- package/umd/Search.js +2 -2
- package/umd/Select.js +1 -1
- package/umd/SelectInput.js +1 -1
- package/umd/Selector.js +2 -2
- package/umd/SelectorPicker.js +2 -2
- package/umd/SingleBox.js +1 -1
- package/umd/Table.js +2 -2
- package/umd/Tabs.js +1 -1
- package/umd/Tag.js +1 -1
- package/umd/TextField.js +1 -1
- package/umd/TimePicker.js +1 -1
- package/umd/ToggleButton.js +1 -1
- package/umd/Transfer.js +2 -2
- package/umd/Upload.js +1 -1
- /package/_verture/{index-bd14bb50.js → index-80e8eb3f.js} +0 -0
- /package/_verture/{modalContext-e4361800.js → modalContext-8982647f.js} +0 -0
package/Button/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Tooltip } from '../Tooltip/index.js';
|
|
|
7
7
|
import Down from '@para-ui/icons/Down';
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
9
9
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
10
|
-
import { D as Dropdown } from '../_verture/index-
|
|
10
|
+
import { D as Dropdown } from '../_verture/index-389675ab.js';
|
|
11
11
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-eb13cf56.js';
|
|
12
12
|
import AutoTips from '../AutoTips/index.js';
|
|
13
13
|
import 'rc-tooltip';
|
package/ButtonGroup/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
|
9
9
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
10
10
|
import '@para-ui/icons/LoadingF';
|
|
11
11
|
import '@para-ui/icons/Down';
|
|
12
|
-
import '../_verture/index-
|
|
12
|
+
import '../_verture/index-389675ab.js';
|
|
13
13
|
import 'rc-dropdown';
|
|
14
14
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
15
15
|
import 'dayjs';
|
package/ComboSelect/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
|
8
8
|
import Table from '../Table/index.js';
|
|
9
9
|
import { T as Tree } from '../_verture/index-e3011376.js';
|
|
10
10
|
import { Button } from '../Button/index.js';
|
|
11
|
-
import { D as Dropdown } from '../_verture/index-
|
|
11
|
+
import { D as Dropdown } from '../_verture/index-389675ab.js';
|
|
12
12
|
import { Popover } from '../Popover/index.js';
|
|
13
13
|
import AutoTips from '../AutoTips/index.js';
|
|
14
14
|
import { Tooltip } from '../Tooltip/index.js';
|
package/CopyText/index.js
CHANGED
|
@@ -22,7 +22,7 @@ import '@para-ui/icons/Forbid';
|
|
|
22
22
|
import '../HelperText/index.js';
|
|
23
23
|
import '../_verture/useGlobalProps-1e416658.js';
|
|
24
24
|
import '@para-ui/core/GlobalContext';
|
|
25
|
-
import '../_verture/index-
|
|
25
|
+
import '../_verture/index-389675ab.js';
|
|
26
26
|
import 'rc-dropdown';
|
|
27
27
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
28
28
|
import 'dayjs';
|
package/DatePicker/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import RCPicker, { RangePicker } from 'rc-picker';
|
|
|
10
10
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
11
11
|
import DateIcon from '@para-ui/icons/Calendar';
|
|
12
12
|
import TimeIcon from '@para-ui/icons/Time';
|
|
13
|
-
import { m as mergedLocale, g as getTimeProps, a as getPlaceholder, f as formatPickerValue, b as getPopupContainer, i as isolationPopupPollution, c as getRangePlaceholder } from '../_verture/index-
|
|
13
|
+
import { m as mergedLocale, g as getTimeProps, a as getPlaceholder, f as formatPickerValue, b as getPopupContainer, i as isolationPopupPollution, c as getRangePlaceholder } from '../_verture/index-389675ab.js';
|
|
14
14
|
import CalendarLocale from 'rc-picker/lib/locale/en_US';
|
|
15
15
|
import CalendarLocale$1 from 'rc-picker/lib/locale/zh_CN';
|
|
16
16
|
import GlobalContext from '@para-ui/core/GlobalContext';
|
package/Descriptions/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import 'react-transition-group';
|
|
|
23
23
|
import '../_verture/util-82646c4f.js';
|
|
24
24
|
import '@para-ui/icons/LoadingF';
|
|
25
25
|
import '@para-ui/icons/Down';
|
|
26
|
-
import '../_verture/index-
|
|
26
|
+
import '../_verture/index-389675ab.js';
|
|
27
27
|
import 'rc-dropdown';
|
|
28
28
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
29
29
|
import 'dayjs';
|
package/Desktop/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import '@para-ui/icons/LoadingF';
|
|
|
23
23
|
import '../HelperText/index.js';
|
|
24
24
|
import '../_verture/useGlobalProps-1e416658.js';
|
|
25
25
|
import '@para-ui/core/GlobalContext';
|
|
26
|
-
import '../_verture/index-
|
|
26
|
+
import '../_verture/index-389675ab.js';
|
|
27
27
|
import 'rc-dropdown';
|
|
28
28
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
29
29
|
import 'dayjs';
|
package/Drawer/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import 'rc-tooltip';
|
|
|
15
15
|
import 'rc-tooltip/lib/placements';
|
|
16
16
|
import '@para-ui/icons/Forbid';
|
|
17
17
|
import '@para-ui/icons/Down';
|
|
18
|
-
import '../_verture/index-
|
|
18
|
+
import '../_verture/index-389675ab.js';
|
|
19
19
|
import 'rc-dropdown';
|
|
20
20
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
21
21
|
import 'dayjs';
|
package/Dropdown/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import 'rc-dropdown';
|
|
|
4
4
|
import '../_verture/constant-5317fc89.js';
|
|
5
5
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
6
6
|
import 'clsx';
|
|
7
|
-
export { D as Dropdown, D as default } from '../_verture/index-
|
|
7
|
+
export { D as Dropdown, D as default } from '../_verture/index-389675ab.js';
|
|
8
8
|
import '@paraview/lib';
|
|
9
9
|
import 'dayjs';
|
|
10
10
|
import '../_verture/style-inject.es-300983ab.js';
|
package/DynamicMultiBox/index.js
CHANGED
|
@@ -38,7 +38,7 @@ import '../Loading/index.js';
|
|
|
38
38
|
import '@para-ui/icons/LoadingF';
|
|
39
39
|
import '../_verture/useGlobalProps-1e416658.js';
|
|
40
40
|
import '@para-ui/core/GlobalContext';
|
|
41
|
-
import '../_verture/index-
|
|
41
|
+
import '../_verture/index-389675ab.js';
|
|
42
42
|
import 'rc-dropdown';
|
|
43
43
|
import 'dayjs';
|
|
44
44
|
import '../Empty/index.js';
|
package/Form/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DeepClone } from '@paraview/lib';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-
|
|
4
|
+
import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-80e8eb3f.js';
|
|
5
5
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
6
6
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-eb13cf56.js';
|
|
7
7
|
import '../TextField/index.js';
|
|
@@ -24,7 +24,7 @@ import '@para-ui/icons/LoadingF';
|
|
|
24
24
|
import '../HelperText/index.js';
|
|
25
25
|
import '../_verture/useGlobalProps-1e416658.js';
|
|
26
26
|
import '@para-ui/core/GlobalContext';
|
|
27
|
-
import '../_verture/index-
|
|
27
|
+
import '../_verture/index-389675ab.js';
|
|
28
28
|
import 'rc-dropdown';
|
|
29
29
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
30
30
|
import 'dayjs';
|
package/FormItem/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { F as default } from '../_verture/index-
|
|
3
|
+
export { F as default } from '../_verture/index-80e8eb3f.js';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
import '../Label/index.js';
|
|
6
6
|
import '../_verture/constant-5317fc89.js';
|
|
@@ -21,7 +21,7 @@ import '@para-ui/icons/LoadingF';
|
|
|
21
21
|
import '../HelperText/index.js';
|
|
22
22
|
import '../_verture/useGlobalProps-1e416658.js';
|
|
23
23
|
import '@para-ui/core/GlobalContext';
|
|
24
|
-
import '../_verture/index-
|
|
24
|
+
import '../_verture/index-389675ab.js';
|
|
25
25
|
import 'rc-dropdown';
|
|
26
26
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
27
27
|
import 'dayjs';
|
package/FunctionModal/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as useModal } from '../_verture/modalContext-
|
|
2
|
-
export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-
|
|
1
|
+
import { u as useModal } from '../_verture/modalContext-8982647f.js';
|
|
2
|
+
export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-8982647f.js';
|
|
3
3
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
@@ -15,7 +15,7 @@ import '../_verture/constant-5317fc89.js';
|
|
|
15
15
|
import '@para-ui/icons/Forbid';
|
|
16
16
|
import '../_verture/style-inject.es-300983ab.js';
|
|
17
17
|
import '@para-ui/icons/Down';
|
|
18
|
-
import '../_verture/index-
|
|
18
|
+
import '../_verture/index-389675ab.js';
|
|
19
19
|
import 'rc-dropdown';
|
|
20
20
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
21
21
|
import 'dayjs';
|
package/InputLang/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import '../Loading/index.js';
|
|
|
25
25
|
import '@para-ui/icons/LoadingF';
|
|
26
26
|
import '../_verture/useGlobalProps-1e416658.js';
|
|
27
27
|
import '@para-ui/core/GlobalContext';
|
|
28
|
-
import '../_verture/index-
|
|
28
|
+
import '../_verture/index-389675ab.js';
|
|
29
29
|
import 'rc-dropdown';
|
|
30
30
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
31
31
|
import 'dayjs';
|
package/Message/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
4
|
import WarningCircleF from '@para-ui/icons/WarningCircleF';
|
|
5
|
-
import
|
|
5
|
+
import CheckCircleF from '@para-ui/icons/CheckCircleF';
|
|
6
6
|
import CloseIcon from '@para-ui/icons/Close';
|
|
7
7
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
@@ -16,7 +16,7 @@ const iconMapping = {
|
|
|
16
16
|
info: jsx(WarningCircleF, {}),
|
|
17
17
|
warn: jsx(WarningCircleF, {}),
|
|
18
18
|
error: jsx(CloseCircleF, {}),
|
|
19
|
-
success: jsx(
|
|
19
|
+
success: jsx(CheckCircleF, {})
|
|
20
20
|
};
|
|
21
21
|
//获取window
|
|
22
22
|
const getMsgWindow = () => {
|
package/Modal/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import clsx from 'clsx';
|
|
|
11
11
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
12
12
|
import AutoTips from '../AutoTips/index.js';
|
|
13
13
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
14
|
-
import
|
|
14
|
+
import CheckCircleF from '@para-ui/icons/CheckCircleF';
|
|
15
15
|
import WarningCircleF from '@para-ui/icons/WarningCircleF';
|
|
16
16
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
17
17
|
import { UUID } from '@paraview/lib';
|
|
@@ -22,7 +22,7 @@ import 'rc-tooltip';
|
|
|
22
22
|
import 'rc-tooltip/lib/placements';
|
|
23
23
|
import '@para-ui/icons/Forbid';
|
|
24
24
|
import '@para-ui/icons/Down';
|
|
25
|
-
import '../_verture/index-
|
|
25
|
+
import '../_verture/index-389675ab.js';
|
|
26
26
|
import 'rc-dropdown';
|
|
27
27
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
28
28
|
import 'dayjs';
|
|
@@ -32,7 +32,7 @@ styleInject(css_248z$1);
|
|
|
32
32
|
|
|
33
33
|
//图标
|
|
34
34
|
const iconMap = {
|
|
35
|
-
success: jsx(
|
|
35
|
+
success: jsx(CheckCircleF, {}),
|
|
36
36
|
warn: jsx(WarningCircleF, {}),
|
|
37
37
|
warning: jsx(WarningCircleF, {}),
|
|
38
38
|
error: jsx(CloseCircleF, {}),
|
package/MultiBox/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import '../Loading/index.js';
|
|
|
23
23
|
import '@para-ui/icons/LoadingF';
|
|
24
24
|
import '../_verture/useGlobalProps-1e416658.js';
|
|
25
25
|
import '@para-ui/core/GlobalContext';
|
|
26
|
-
import '../_verture/index-
|
|
26
|
+
import '../_verture/index-389675ab.js';
|
|
27
27
|
import 'rc-dropdown';
|
|
28
28
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
29
29
|
import 'dayjs';
|
package/Notification/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import Notification from 'rc-notification';
|
|
4
4
|
import WarningCircleF from '@para-ui/icons/WarningCircleF';
|
|
5
|
-
import
|
|
5
|
+
import CheckCircleF from '@para-ui/icons/CheckCircleF';
|
|
6
6
|
import CloseIcon from '@para-ui/icons/Close';
|
|
7
7
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
8
8
|
import clsx from 'clsx';
|
|
@@ -161,7 +161,7 @@ function getNotificationInstance(args, callback) {
|
|
|
161
161
|
}
|
|
162
162
|
//通知框类型图标
|
|
163
163
|
const typeToIcon = {
|
|
164
|
-
success:
|
|
164
|
+
success: CheckCircleF,
|
|
165
165
|
info: WarningCircleF,
|
|
166
166
|
error: CloseCircleF,
|
|
167
167
|
warning: WarningCircleF
|
package/OperateBtn/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import clsx from 'clsx';
|
|
|
13
13
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
14
14
|
import '@para-ui/icons/LoadingF';
|
|
15
15
|
import '@para-ui/icons/Down';
|
|
16
|
-
import '../_verture/index-
|
|
16
|
+
import '../_verture/index-389675ab.js';
|
|
17
17
|
import 'rc-dropdown';
|
|
18
18
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
19
19
|
import 'dayjs';
|
package/PageHeader/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import 'clsx';
|
|
|
18
18
|
import '@para-ui/icons/Forbid';
|
|
19
19
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
20
20
|
import '@para-ui/icons/LoadingF';
|
|
21
|
-
import '../_verture/index-
|
|
21
|
+
import '../_verture/index-389675ab.js';
|
|
22
22
|
import 'rc-dropdown';
|
|
23
23
|
import 'dayjs';
|
|
24
24
|
import '../_verture/useFormatMessage-eb13cf56.js';
|
package/Pagination/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import '../Loading/index.js';
|
|
|
30
30
|
import '@para-ui/icons/LoadingF';
|
|
31
31
|
import '../HelperText/index.js';
|
|
32
32
|
import '../_verture/useGlobalProps-1e416658.js';
|
|
33
|
-
import '../_verture/index-
|
|
33
|
+
import '../_verture/index-389675ab.js';
|
|
34
34
|
import 'rc-dropdown';
|
|
35
35
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
36
36
|
import 'dayjs';
|
package/PasswordRules/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
3
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
4
4
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
5
|
-
import
|
|
5
|
+
import CheckCircleF from '@para-ui/icons/CheckCircleF';
|
|
6
6
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
7
7
|
|
|
8
8
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2021/11/1 20:28\n* @description 文字隐藏...\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-password-rules {\n padding: 16px;\n line-height: 1.43;\n}\n.paraui-v4-password-rules > .password-rules-item:first-child > .password-rules-item-title {\n margin-top: 0px;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-title {\n font-size: 14px;\n color: rgb(29, 33, 38);\n font-weight: 700;\n margin-bottom: 6px;\n margin-top: 10px;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail {\n display: flex;\n margin-bottom: 6px;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail:last-child {\n margin-bottom: 0;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail > .item-flag {\n min-width: 26px;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail > .item-label {\n flex: 1;\n font-size: 14px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-icon > .item-flag {\n margin-top: 0px;\n line-height: 1;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-icon > .item-flag svg {\n font-size: 18px;\n color: rgb(161, 168, 179);\n position: relative;\n top: 1px;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-order {\n font-size: 14px;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-order > .item-flag {\n margin-top: -1px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-success.rules-item-detail-icon > .item-flag svg {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-error.rules-item-detail-order > .item-flag {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-error.rules-item-detail-order > .item-label {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-password-rules.paraui-v4-password-rules-box-shadow {\n box-shadow: 1px 1px 10px 2px rgba(212, 218, 227, 0.4);\n border-radius: 4px;\n}";
|
|
@@ -71,7 +71,7 @@ const PasswordRules = props => {
|
|
|
71
71
|
if (type === 'order') {
|
|
72
72
|
return "".concat(inx + 1, "\u3001");
|
|
73
73
|
}
|
|
74
|
-
if (result === true) return jsx(
|
|
74
|
+
if (result === true) return jsx(CheckCircleF, {}); // 成功
|
|
75
75
|
return jsx(CloseCircleF, {});
|
|
76
76
|
};
|
|
77
77
|
// 处理内容
|
package/PopConfirm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useRef, useState, useMemo, useEffect } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import CheckCircleF from '@para-ui/icons/CheckCircleF';
|
|
5
5
|
import InfoOutlined from '@para-ui/icons/WarningCircle';
|
|
6
6
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
7
7
|
import WarningCircleF from '@para-ui/icons/WarningCircleF';
|
|
@@ -14,7 +14,7 @@ import { u as usePopupContainer } from '../_verture/usePopupContainer-635f66f4.j
|
|
|
14
14
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
15
15
|
import '@para-ui/icons/LoadingF';
|
|
16
16
|
import '@para-ui/icons/Down';
|
|
17
|
-
import '../_verture/index-
|
|
17
|
+
import '../_verture/index-389675ab.js';
|
|
18
18
|
import 'rc-dropdown';
|
|
19
19
|
import 'dayjs';
|
|
20
20
|
import '@paraview/lib';
|
|
@@ -39,12 +39,12 @@ var localeJson = {
|
|
|
39
39
|
en
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午1:44\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-popconfirm.paraui-v4-tooltip {\n position: absolute;\n width: 440px;\n padding: 0;\n font-size: 14px;\n color: initial;\n background-color: rgb(255, 255, 255);\n box-shadow: 1px 1px 10px 2px rgba(212, 218, 227, 0.4);\n border-radius: 8px;\n border: 1px solid rgba(212, 218, 227, 0.4);\n}\n.paraui-v4-popconfirm.paraui-v4-tooltip .component-tooltip-inner {\n padding: 0;\n color: initial;\n background-color: transparent;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper {\n padding: 16px;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message {\n position: relative;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-icon {\n position: absolute;\n top: 1px;\n color: rgb(255, 147, 38);\n line-height: 0;\n font-size: 18px;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-icon svg {\n color: inherit;\n font-size: inherit;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-body {\n padding-left: 24px;\n line-height: 20px;\n font-size: 14px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-title {\n font-weight: 600;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-content {\n font-weight: 400;\n margin-top: 8px;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-content.without-title {\n margin-top: 0;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-description {\n margin-top: 4px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-description.without-title-or-content {\n margin-top: 0;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-btns {\n margin-top: 12px;\n text-align: right;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-btns > button + button {\n margin-left: 12px;\n}\n.paraui-v4-popconfirm .paraui-v4-popconfirm-btn {\n min-width: 54px;\n}";
|
|
42
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午1:44\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-popconfirm.paraui-v4-tooltip {\n position: absolute;\n width: 440px;\n padding: 0;\n font-size: 14px;\n color: initial;\n background-color: rgb(255, 255, 255);\n box-shadow: 1px 1px 10px 2px rgba(212, 218, 227, 0.4);\n border-radius: 8px;\n border: 1px solid rgba(212, 218, 227, 0.4);\n}\n.paraui-v4-popconfirm.component-tooltip-hidden.paraui-v4-tooltip {\n border: none;\n}\n.paraui-v4-popconfirm.paraui-v4-tooltip .component-tooltip-inner {\n padding: 0;\n color: initial;\n background-color: transparent;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper {\n padding: 16px;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message {\n position: relative;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-icon {\n position: absolute;\n top: 1px;\n color: rgb(255, 147, 38);\n line-height: 0;\n font-size: 18px;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-icon svg {\n color: inherit;\n font-size: inherit;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-body {\n padding-left: 24px;\n line-height: 20px;\n font-size: 14px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-title {\n font-weight: 600;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-content {\n font-weight: 400;\n margin-top: 8px;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-content.without-title {\n margin-top: 0;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-description {\n margin-top: 4px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-description.without-title-or-content {\n margin-top: 0;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-btns {\n margin-top: 12px;\n text-align: right;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-btns > button + button {\n margin-left: 12px;\n}\n.paraui-v4-popconfirm .paraui-v4-popconfirm-btn {\n min-width: 54px;\n}";
|
|
43
43
|
styleInject(css_248z);
|
|
44
44
|
|
|
45
45
|
//图标
|
|
46
46
|
const iconMapping = {
|
|
47
|
-
success: jsx(
|
|
47
|
+
success: jsx(CheckCircleF, {}),
|
|
48
48
|
warning: jsx(WarningCircleF, {}),
|
|
49
49
|
error: jsx(CloseCircleF, {}),
|
|
50
50
|
info: jsx(InfoOutlined, {})
|
package/Popover/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import 'rc-tooltip';
|
|
|
10
10
|
import 'rc-tooltip/lib/placements';
|
|
11
11
|
import '@para-ui/icons/Forbid';
|
|
12
12
|
|
|
13
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/6/7 上午11:06\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-popover {\n color: rgb(29, 33, 38);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1500;\n font-weight: 400;\n white-space: normal;\n text-align: left;\n cursor: auto;\n user-select: text;\n}\n.paraui-v4-popover::after {\n position: absolute;\n content: \"\";\n}\n.paraui-v4-popover.component-popover-hidden {\n display: none;\n}\n.paraui-v4-popover .component-popover-inner {\n background-color: rgb(255, 255, 255);\n background-clip: padding-box;\n border-radius: 4px;\n box-shadow: 1px 1px 10px 2px rgba(212, 218, 227, 0.4);\n border: 1px solid rgba(212, 218, 227, 0.4);\n}\n.paraui-v4-popover .component-popover-title {\n margin: 0;\n padding: 0 24px;\n color: rgb(29, 33, 38);\n font-weight: 700;\n border-bottom: 1px solid #f0f0f0;\n min-height: 44px;\n display: flex;\n align-items: center;\n}\n.paraui-v4-popover .component-popover-inner-content {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-popover .component-popover-buttons {\n margin-bottom: 4px;\n text-align: right;\n}\n.paraui-v4-popover .component-popover-buttons button {\n margin-left: 8px;\n}\n.paraui-v4-popover .component-popover-arrow {\n position: absolute;\n display: none;\n width: 16px;\n height: 16px;\n overflow: hidden;\n background: transparent;\n pointer-events: none;\n}\n.paraui-v4-popover .component-popover-arrow-content {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 11.3137085px;\n height: 11.3137085px;\n margin: auto;\n background-color: rgb(255, 255, 255);\n content: \"\";\n border-radius: 0 0 4px;\n pointer-events: none;\n}\n.paraui-v4-popover .component-popover-arrow-content::before {\n position: absolute;\n top: -11.3137085px;\n left: -11.3137085px;\n width: 33.9411255px;\n height: 33.9411255px;\n background: rgb(255, 255, 255) -10px -10px no-repeat;\n content: \"\";\n -webkit-clip-path: path(\"M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z\");\n}\n.paraui-v4-popover.component-popover-placement-top .component-popover-arrow, .paraui-v4-popover.component-popover-placement-topLeft .component-popover-arrow, .paraui-v4-popover.component-popover-placement-topRight .component-popover-arrow {\n bottom: -0.6862915px;\n}\n.paraui-v4-popover.component-popover-placement-top .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-topLeft .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-topRight .component-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateY(-1px) rotate(45deg);\n}\n.paraui-v4-popover.component-popover-placement-top .component-popover-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.paraui-v4-popover.component-popover-placement-topLeft .component-popover-arrow {\n left: 16px;\n}\n.paraui-v4-popover.component-popover-placement-topRight .component-popover-arrow {\n right: 16px;\n}\n.paraui-v4-popover.component-popover-placement-right .component-popover-arrow, .paraui-v4-popover.component-popover-placement-rightTop .component-popover-arrow, .paraui-v4-popover.component-popover-placement-rightBottom .component-popover-arrow {\n left: -0.6862915px;\n}\n.paraui-v4-popover.component-popover-placement-right .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-rightTop .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-rightBottom .component-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(1px) rotate(135deg);\n}\n.paraui-v4-popover.component-popover-placement-right .component-popover-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.paraui-v4-popover.component-popover-placement-rightTop .component-popover-arrow {\n top: 12px;\n}\n.paraui-v4-popover.component-popover-placement-rightBottom .component-popover-arrow {\n bottom: 12px;\n}\n.paraui-v4-popover.component-popover-placement-bottom .component-popover-arrow, .paraui-v4-popover.component-popover-placement-bottomLeft .component-popover-arrow, .paraui-v4-popover.component-popover-placement-bottomRight .component-popover-arrow {\n top: -0.6862915px;\n}\n.paraui-v4-popover.component-popover-placement-bottom .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-bottomLeft .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-bottomRight .component-popover-arrow-content {\n box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.06);\n transform: translateY(1px) rotate(-135deg);\n}\n.paraui-v4-popover.component-popover-placement-bottom .component-popover-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.paraui-v4-popover.component-popover-placement-bottomLeft .component-popover-arrow {\n left: 16px;\n}\n.paraui-v4-popover.component-popover-placement-bottomRight .component-popover-arrow {\n right: 16px;\n}\n.paraui-v4-popover.component-popover-placement-left .component-popover-arrow, .paraui-v4-popover.component-popover-placement-leftTop .component-popover-arrow, .paraui-v4-popover.component-popover-placement-leftBottom .component-popover-arrow {\n right: -0.6862915px;\n}\n.paraui-v4-popover.component-popover-placement-left .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-leftTop .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-leftBottom .component-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(-1px) rotate(-45deg);\n}\n.paraui-v4-popover.component-popover-placement-left .component-popover-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.paraui-v4-popover.component-popover-placement-leftTop .component-popover-arrow {\n top: 12px;\n}\n.paraui-v4-popover.component-popover-placement-leftBottom .component-popover-arrow {\n bottom: 12px;\n}\n\n.component-popover-zoom-big-enter,\n.component-popover-zoom-big-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.component-popover-zoom-big-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.component-popover-zoom-big-enter.component-popover-zoom-big-enter-active,\n.component-popover-zoom-big-appear.component-popover-zoom-big-appear-active {\n animation-name: componentPopoverZoomBigIn;\n animation-play-state: running;\n}\n\n.component-popover-zoom-big-leave.component-popover-zoom-big-leave-active {\n animation-name: componentPopoverZoomBigOut;\n animation-play-state: running;\n pointer-events: none;\n}\n\n.component-popover-zoom-big-enter,\n.component-popover-zoom-big-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n\n.component-popover-zoom-big-enter-prepare,\n.component-popover-zoom-big-appear-prepare {\n transform: none;\n}\n\n.component-popover-zoom-big-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n\n@keyframes componentPopoverZoomBigIn {\n 0% {\n transform: scale(0.8);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes componentPopoverZoomBigOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.8);\n opacity: 0;\n }\n}";
|
|
13
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/6/7 上午11:06\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-popover {\n color: rgb(29, 33, 38);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1500;\n font-weight: 400;\n white-space: normal;\n text-align: left;\n cursor: auto;\n user-select: text;\n}\n.paraui-v4-popover::after {\n position: absolute;\n content: \"\";\n}\n.paraui-v4-popover.component-popover-hidden {\n display: none;\n}\n.paraui-v4-popover.component-popover-hidden .component-popover-inner {\n border: none;\n}\n.paraui-v4-popover .component-popover-inner {\n background-color: rgb(255, 255, 255);\n background-clip: padding-box;\n border-radius: 4px;\n box-shadow: 1px 1px 10px 2px rgba(212, 218, 227, 0.4);\n border: 1px solid rgba(212, 218, 227, 0.4);\n}\n.paraui-v4-popover .component-popover-title {\n margin: 0;\n padding: 0 24px;\n color: rgb(29, 33, 38);\n font-weight: 700;\n border-bottom: 1px solid #f0f0f0;\n min-height: 44px;\n display: flex;\n align-items: center;\n}\n.paraui-v4-popover .component-popover-inner-content {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-popover .component-popover-buttons {\n margin-bottom: 4px;\n text-align: right;\n}\n.paraui-v4-popover .component-popover-buttons button {\n margin-left: 8px;\n}\n.paraui-v4-popover .component-popover-arrow {\n position: absolute;\n display: none;\n width: 16px;\n height: 16px;\n overflow: hidden;\n background: transparent;\n pointer-events: none;\n}\n.paraui-v4-popover .component-popover-arrow-content {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 11.3137085px;\n height: 11.3137085px;\n margin: auto;\n background-color: rgb(255, 255, 255);\n content: \"\";\n border-radius: 0 0 4px;\n pointer-events: none;\n}\n.paraui-v4-popover .component-popover-arrow-content::before {\n position: absolute;\n top: -11.3137085px;\n left: -11.3137085px;\n width: 33.9411255px;\n height: 33.9411255px;\n background: rgb(255, 255, 255) -10px -10px no-repeat;\n content: \"\";\n -webkit-clip-path: path(\"M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z\");\n}\n.paraui-v4-popover.component-popover-placement-top .component-popover-arrow, .paraui-v4-popover.component-popover-placement-topLeft .component-popover-arrow, .paraui-v4-popover.component-popover-placement-topRight .component-popover-arrow {\n bottom: -0.6862915px;\n}\n.paraui-v4-popover.component-popover-placement-top .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-topLeft .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-topRight .component-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateY(-1px) rotate(45deg);\n}\n.paraui-v4-popover.component-popover-placement-top .component-popover-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.paraui-v4-popover.component-popover-placement-topLeft .component-popover-arrow {\n left: 16px;\n}\n.paraui-v4-popover.component-popover-placement-topRight .component-popover-arrow {\n right: 16px;\n}\n.paraui-v4-popover.component-popover-placement-right .component-popover-arrow, .paraui-v4-popover.component-popover-placement-rightTop .component-popover-arrow, .paraui-v4-popover.component-popover-placement-rightBottom .component-popover-arrow {\n left: -0.6862915px;\n}\n.paraui-v4-popover.component-popover-placement-right .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-rightTop .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-rightBottom .component-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(1px) rotate(135deg);\n}\n.paraui-v4-popover.component-popover-placement-right .component-popover-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.paraui-v4-popover.component-popover-placement-rightTop .component-popover-arrow {\n top: 12px;\n}\n.paraui-v4-popover.component-popover-placement-rightBottom .component-popover-arrow {\n bottom: 12px;\n}\n.paraui-v4-popover.component-popover-placement-bottom .component-popover-arrow, .paraui-v4-popover.component-popover-placement-bottomLeft .component-popover-arrow, .paraui-v4-popover.component-popover-placement-bottomRight .component-popover-arrow {\n top: -0.6862915px;\n}\n.paraui-v4-popover.component-popover-placement-bottom .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-bottomLeft .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-bottomRight .component-popover-arrow-content {\n box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.06);\n transform: translateY(1px) rotate(-135deg);\n}\n.paraui-v4-popover.component-popover-placement-bottom .component-popover-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.paraui-v4-popover.component-popover-placement-bottomLeft .component-popover-arrow {\n left: 16px;\n}\n.paraui-v4-popover.component-popover-placement-bottomRight .component-popover-arrow {\n right: 16px;\n}\n.paraui-v4-popover.component-popover-placement-left .component-popover-arrow, .paraui-v4-popover.component-popover-placement-leftTop .component-popover-arrow, .paraui-v4-popover.component-popover-placement-leftBottom .component-popover-arrow {\n right: -0.6862915px;\n}\n.paraui-v4-popover.component-popover-placement-left .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-leftTop .component-popover-arrow-content, .paraui-v4-popover.component-popover-placement-leftBottom .component-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(-1px) rotate(-45deg);\n}\n.paraui-v4-popover.component-popover-placement-left .component-popover-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.paraui-v4-popover.component-popover-placement-leftTop .component-popover-arrow {\n top: 12px;\n}\n.paraui-v4-popover.component-popover-placement-leftBottom .component-popover-arrow {\n bottom: 12px;\n}\n\n.component-popover-zoom-big-enter,\n.component-popover-zoom-big-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.component-popover-zoom-big-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.component-popover-zoom-big-enter.component-popover-zoom-big-enter-active,\n.component-popover-zoom-big-appear.component-popover-zoom-big-appear-active {\n animation-name: componentPopoverZoomBigIn;\n animation-play-state: running;\n}\n\n.component-popover-zoom-big-leave.component-popover-zoom-big-leave-active {\n animation-name: componentPopoverZoomBigOut;\n animation-play-state: running;\n pointer-events: none;\n}\n\n.component-popover-zoom-big-enter,\n.component-popover-zoom-big-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n\n.component-popover-zoom-big-enter-prepare,\n.component-popover-zoom-big-appear-prepare {\n transform: none;\n}\n\n.component-popover-zoom-big-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n\n@keyframes componentPopoverZoomBigIn {\n 0% {\n transform: scale(0.8);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes componentPopoverZoomBigOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.8);\n opacity: 0;\n }\n}";
|
|
14
14
|
styleInject(css_248z);
|
|
15
15
|
|
|
16
16
|
//popover
|
package/Progress/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { Circle } from 'rc-progress';
|
|
4
|
-
import
|
|
4
|
+
import CheckCircleF from '@para-ui/icons/CheckCircleF';
|
|
5
5
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
6
6
|
import Check from '@para-ui/icons/Check';
|
|
7
7
|
import CloseIcon from '@para-ui/icons/Close';
|
|
@@ -252,7 +252,7 @@ const Progress = props => {
|
|
|
252
252
|
if (format) return format(percent);
|
|
253
253
|
if (isSuccessStatus) return type === 'circle' ? jsx(Check, {
|
|
254
254
|
className: "success"
|
|
255
|
-
}) : jsx(
|
|
255
|
+
}) : jsx(CheckCircleF, {
|
|
256
256
|
className: "success"
|
|
257
257
|
});
|
|
258
258
|
if (status === 'exception') return type === 'circle' ? jsx(CloseIcon, {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface PromptProps {
|
|
4
|
+
/** 自定义样式名 **/
|
|
5
|
+
className?: string;
|
|
6
|
+
/** 样式 */
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
/** 信息类型 */
|
|
9
|
+
type?: 'error' | 'success' | 'warn' | 'info';
|
|
10
|
+
/** 状态 固定 或 反馈 */
|
|
11
|
+
status?: 'fixed' | 'feedback';
|
|
12
|
+
/** 标题 */
|
|
13
|
+
title?: string;
|
|
14
|
+
/** 内容 可以为string也可以是array,也可以自定义 */
|
|
15
|
+
content?: string | string[];
|
|
16
|
+
/** 自定义内容 */
|
|
17
|
+
customContent?: ReactNode;
|
|
18
|
+
/** 是否展示 */
|
|
19
|
+
show?: boolean;
|
|
20
|
+
/** 是否展示关闭按钮 */
|
|
21
|
+
closeIcon?: boolean;
|
|
22
|
+
/** icon 自定义图标 */
|
|
23
|
+
icon?: ReactNode;
|
|
24
|
+
/** 关闭回调 */
|
|
25
|
+
onClose?: Function;
|
|
26
|
+
/** 是否显示边框 */
|
|
27
|
+
outline?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const Prompt: (props: PromptProps) => JSX.Element | null;
|
|
30
|
+
export default Prompt;
|
package/Prompt/index.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useEffect, useMemo } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
5
|
+
import WarningCircleF from '@para-ui/icons/WarningCircleF';
|
|
6
|
+
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
7
|
+
import CheckCircleF from '@para-ui/icons/CheckCircleF';
|
|
8
|
+
import CloseIcon from '@para-ui/icons/Close';
|
|
9
|
+
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
10
|
+
|
|
11
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-prompt {\n width: 100%;\n border-radius: 4px;\n padding: 10px 16px 10px 40px;\n position: relative;\n box-sizing: border-box;\n}\n.paraui-v4-prompt.prompt-outline {\n border-width: 1px;\n border-style: solid;\n}\n.paraui-v4-prompt.prompt-status-feedback-close {\n padding-right: 44px;\n}\n.paraui-v4-prompt .prompt-icon {\n width: 16px;\n height: 16px;\n position: absolute;\n top: 12px;\n left: 16px;\n z-index: 2;\n}\n.paraui-v4-prompt .prompt-icon svg {\n width: 16px;\n height: 16px;\n}\n.paraui-v4-prompt .prompt-btn-close {\n width: 16px;\n height: 16px;\n position: absolute;\n top: 12px;\n right: 12px;\n z-index: 2;\n margin-left: auto;\n cursor: pointer;\n}\n.paraui-v4-prompt .prompt-btn-close svg {\n width: 100%;\n height: 100%;\n}\n.paraui-v4-prompt .prompt-title {\n width: 100%;\n font-weight: 600;\n height: 20px;\n font-size: 14px;\n color: rgb(29, 33, 38);\n line-height: 20px;\n margin-bottom: 4px;\n}\n.paraui-v4-prompt .prompt-content-list .prompt-content-item {\n margin-top: 4px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-prompt .prompt-content-list .prompt-content-item:first-child {\n margin-top: 0;\n}\n.paraui-v4-prompt .prompt-content-item {\n width: 100%;\n font-size: 14px;\n color: rgb(29, 33, 38);\n line-height: 20px;\n}\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-info .prompt-title,\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-info .prompt-content-item {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-error .prompt-title,\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-error .prompt-content-item {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-success .prompt-title,\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-success .prompt-content-item {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-warn .prompt-title,\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-warn .prompt-content-item {\n color: rgb(255, 147, 38);\n}\n.paraui-v4-prompt.prompt-type-info {\n background: rgb(240, 245, 255);\n}\n.paraui-v4-prompt.prompt-type-info svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-prompt.prompt-type-info.prompt-outline {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-prompt.prompt-type-error {\n background: rgb(255, 235, 235);\n}\n.paraui-v4-prompt.prompt-type-error svg {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-prompt.prompt-type-error.prompt-outline {\n border-color: rgb(246, 103, 103);\n}\n.paraui-v4-prompt.prompt-type-success {\n background: rgb(232, 252, 239);\n}\n.paraui-v4-prompt.prompt-type-success svg {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-prompt.prompt-type-success.prompt-outline {\n border-color: rgb(19, 191, 76);\n}\n.paraui-v4-prompt.prompt-type-warn {\n background: rgb(255, 246, 235);\n}\n.paraui-v4-prompt.prompt-type-warn svg {\n color: rgb(255, 147, 38);\n}\n.paraui-v4-prompt.prompt-type-warn.prompt-outline {\n border-color: rgb(255, 147, 38);\n}";
|
|
12
|
+
styleInject(css_248z);
|
|
13
|
+
|
|
14
|
+
const iconMap = {
|
|
15
|
+
info: jsx(WarningCircleF, {
|
|
16
|
+
className: 'icon-info'
|
|
17
|
+
}),
|
|
18
|
+
error: jsx(CloseCircleF, {
|
|
19
|
+
className: 'icon-error'
|
|
20
|
+
}),
|
|
21
|
+
success: jsx(CheckCircleF, {
|
|
22
|
+
className: 'icon-success'
|
|
23
|
+
}),
|
|
24
|
+
warn: jsx(WarningCircleF, {
|
|
25
|
+
className: 'icon-warn'
|
|
26
|
+
})
|
|
27
|
+
};
|
|
28
|
+
const Prompt = props => {
|
|
29
|
+
const {
|
|
30
|
+
className,
|
|
31
|
+
style,
|
|
32
|
+
status = 'fixed',
|
|
33
|
+
type = 'info',
|
|
34
|
+
icon,
|
|
35
|
+
show,
|
|
36
|
+
title = '',
|
|
37
|
+
content,
|
|
38
|
+
customContent,
|
|
39
|
+
closeIcon,
|
|
40
|
+
onClose,
|
|
41
|
+
outline
|
|
42
|
+
} = props;
|
|
43
|
+
const [isShow, setIsShow] = useState(true);
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (show === undefined || show === null) return;
|
|
46
|
+
setIsShow(show);
|
|
47
|
+
}, [show]);
|
|
48
|
+
const closePanel = () => {
|
|
49
|
+
onClose && onClose();
|
|
50
|
+
setIsShow(false);
|
|
51
|
+
};
|
|
52
|
+
const contentMemo = useMemo(() => {
|
|
53
|
+
if (customContent) return customContent;
|
|
54
|
+
if (content instanceof Array) {
|
|
55
|
+
return jsx("div", Object.assign({
|
|
56
|
+
className: 'prompt-content-list'
|
|
57
|
+
}, {
|
|
58
|
+
children: content.map((str, index) => jsx("div", Object.assign({
|
|
59
|
+
className: 'prompt-content-item'
|
|
60
|
+
}, {
|
|
61
|
+
children: str
|
|
62
|
+
}), index))
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
if (typeof content === 'string') return jsx("div", Object.assign({
|
|
66
|
+
className: 'prompt-content-item'
|
|
67
|
+
}, {
|
|
68
|
+
children: content
|
|
69
|
+
}));
|
|
70
|
+
}, [content, customContent]);
|
|
71
|
+
if (!isShow) return null;
|
|
72
|
+
return jsxs("div", Object.assign({
|
|
73
|
+
className: clsx("".concat($prefixCls, "-prompt"), className, "prompt-type-".concat(type), {
|
|
74
|
+
'prompt-outline': outline,
|
|
75
|
+
'prompt-status-feedback': status === 'feedback',
|
|
76
|
+
'prompt-status-feedback-close': closeIcon
|
|
77
|
+
}),
|
|
78
|
+
style: style
|
|
79
|
+
}, {
|
|
80
|
+
children: [jsx("div", Object.assign({
|
|
81
|
+
className: "prompt-icon"
|
|
82
|
+
}, {
|
|
83
|
+
children: icon || iconMap[type]
|
|
84
|
+
})), closeIcon && jsx("div", Object.assign({
|
|
85
|
+
className: 'prompt-btn-close',
|
|
86
|
+
onClick: closePanel
|
|
87
|
+
}, {
|
|
88
|
+
children: jsx(CloseIcon, {})
|
|
89
|
+
})), title && jsx("div", Object.assign({
|
|
90
|
+
className: "prompt-title"
|
|
91
|
+
}, {
|
|
92
|
+
children: title
|
|
93
|
+
})), contentMemo]
|
|
94
|
+
}));
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export { Prompt, Prompt as default };
|
package/QuickReply/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import 'rc-tooltip';
|
|
|
27
27
|
import 'rc-tooltip/lib/placements';
|
|
28
28
|
import '@para-ui/icons/Forbid';
|
|
29
29
|
import '@para-ui/icons/Down';
|
|
30
|
-
import '../_verture/index-
|
|
30
|
+
import '../_verture/index-389675ab.js';
|
|
31
31
|
import 'rc-dropdown';
|
|
32
32
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
33
33
|
import 'dayjs';
|
package/README.md
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
|
+
## 版本: 4.0.2
|
|
2
|
+
para-ui/core@4.0.2 发布
|
|
3
|
+
【表格-Table】修复表格name不传,出现浮层边框
|
|
4
|
+
【高亮提示-Prompt】新增组件
|
|
5
|
+
【标签-Tag】修复非图标tag与图标tag不对齐问题
|
|
6
|
+
|
|
7
|
+
## 版本: 4.0.1
|
|
8
|
+
para-ui/core@4.0.1 发布
|
|
9
|
+
【浮层-Popover,PopConfirm,Dropdown】修复浮层隐藏出现边框
|
|
10
|
+
【搜索框-Search】修复搜索onClickRightIcon事件无效
|
|
11
|
+
|
|
1
12
|
## 版本: 4.0.0
|
|
2
13
|
para-ui/core@4.0.0 发布
|
package/Search/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface SearchProps {
|
|
|
33
33
|
onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
34
34
|
/** 点击按钮 */
|
|
35
35
|
onClickBtn?: (val: string) => void;
|
|
36
|
-
/**
|
|
36
|
+
/** 点击输入框右侧按钮,不建议使用,请使用 onClickBtn */
|
|
37
37
|
onClickRightIcon?: (val: string) => void;
|
|
38
38
|
/** 点击清空内容回调 */
|
|
39
39
|
onClear?: () => void;
|
package/Search/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import '@para-ui/icons/LoadingF';
|
|
|
23
23
|
import '../HelperText/index.js';
|
|
24
24
|
import '../_verture/useGlobalProps-1e416658.js';
|
|
25
25
|
import '@para-ui/core/GlobalContext';
|
|
26
|
-
import '../_verture/index-
|
|
26
|
+
import '../_verture/index-389675ab.js';
|
|
27
27
|
import 'rc-dropdown';
|
|
28
28
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
29
29
|
import 'dayjs';
|
|
@@ -75,8 +75,10 @@ const Search = props => {
|
|
|
75
75
|
* 点击输入框右侧按钮
|
|
76
76
|
*/
|
|
77
77
|
const clickRightIcon = () => {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
var _a;
|
|
79
|
+
if (onClickBtn || props.onClickRightIcon) {
|
|
80
|
+
onClickBtn === null || onClickBtn === void 0 ? void 0 : onClickBtn(valueCom);
|
|
81
|
+
(_a = props.onClickRightIcon) === null || _a === void 0 ? void 0 : _a.call(props, valueCom);
|
|
80
82
|
return;
|
|
81
83
|
}
|
|
82
84
|
onChange && onChange(valueCom, null);
|
package/Select/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import React__default, { useRef, useState, useEffect, useMemo } from 'react';
|
|
3
3
|
import Empty from '../Empty/index.js';
|
|
4
4
|
import Label from '../Label/index.js';
|
|
5
|
-
import { D as Dropdown } from '../_verture/index-
|
|
5
|
+
import { D as Dropdown } from '../_verture/index-389675ab.js';
|
|
6
6
|
import { UUID, DeepClone } from '@paraview/lib';
|
|
7
7
|
import GlobalContext from '@para-ui/core/GlobalContext';
|
|
8
8
|
import CloseIcon from '@para-ui/icons/Close';
|
package/SelectInput/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import 'rc-tooltip';
|
|
|
16
16
|
import 'rc-tooltip/lib/placements';
|
|
17
17
|
import '@para-ui/icons/Forbid';
|
|
18
18
|
import '@para-ui/icons/Help';
|
|
19
|
-
import '../_verture/index-
|
|
19
|
+
import '../_verture/index-389675ab.js';
|
|
20
20
|
import 'rc-dropdown';
|
|
21
21
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
22
22
|
import 'dayjs';
|