@para-ui/core 4.0.31 → 4.0.32
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/Cascader/index.js +5 -6
- package/ComboSelect/index.js +4 -5
- package/CycleSelector/index.js +1 -4
- package/DatePicker/index.js +1 -4
- package/DynamicMultiBox/index.js +5 -6
- package/Form/index.js +5 -6
- package/FormItem/index.js +5 -6
- package/Image/index.js +2 -3
- package/InputCode/index.d.ts +82 -0
- package/InputCode/index.js +392 -0
- package/InputCode/inputCodeCard/index.d.ts +10 -0
- package/InputCode/inputCodeInput/index.d.ts +10 -0
- package/InputCode/lang/en_US.d.ts +7 -0
- package/InputCode/lang/index.d.ts +15 -0
- package/InputCode/lang/zh_CN.d.ts +7 -0
- package/PopConfirm/index.js +2 -2
- package/QuickReply/index.js +1 -1
- package/README.md +5 -0
- package/Select/index.js +2 -2
- package/Selector/index.js +223 -281
- package/SelectorPicker/index.js +4 -4
- package/SingleBox/index.js +2 -2
- package/SortBox/index.d.ts +2 -0
- package/SortBox/index.js +23 -3
- package/Stepper/index.js +1 -1
- package/Switch/index.js +2 -2
- package/Table/index.js +1 -2
- package/Tabs/index.js +2 -2
- package/Tag/index.js +53 -82
- package/TextEditor/index.js +3 -3
- package/TimePicker/index.js +1 -4
- package/Timeline/index.js +1 -2
- package/ToggleButton/index.js +26 -25
- package/Tree/index.js +5 -6
- package/Upload/index.js +4 -5
- package/_verture/{Portal-edd94cac.js → Portal-42560ff0.js} +1 -2
- package/_verture/{defineProperty-6f62bb2a.js → defineProperty-f0e15205.js} +10 -2
- package/_verture/{index-567b5779.js → index-44152845.js} +2 -3
- package/_verture/{index-8752ccab.js → index-519d0a1f.js} +3 -4
- package/_verture/{index-94e24006.js → index-8ac46bd9.js} +1 -1
- package/index.d.ts +2 -0
- package/index.js +9 -9
- package/locale/en-US.d.ts +6 -0
- package/locale/index.d.ts +12 -0
- package/locale/index.js +12 -0
- package/locale/zh-CN.d.ts +6 -0
- package/package.json +3 -2
- package/umd/InputCode.js +43 -0
- package/umd/SortBox.js +2 -2
- package/umd/locale.js +1 -1
- package/_verture/typeof-adeedc13.js +0 -11
- /package/_verture/{index-c8cb6751.js → index-0f5ee6f7.js} +0 -0
- /package/_verture/{index-3795d730.js → index-b037486c.js} +0 -0
- /package/_verture/{typeof-4646b22c.js → typeof-6ec38efd.js} +0 -0
package/Cascader/index.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { C as Cascader } from '../_verture/index-
|
|
2
|
-
export { C as default } from '../_verture/index-
|
|
1
|
+
import { C as Cascader } from '../_verture/index-519d0a1f.js';
|
|
2
|
+
export { C as default } from '../_verture/index-519d0a1f.js';
|
|
3
3
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
|
-
import '../_verture/Portal-
|
|
5
|
+
import '../_verture/Portal-42560ff0.js';
|
|
6
6
|
import '../_verture/slicedToArray-75fa4188.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import '../_verture/
|
|
9
|
+
import '../_verture/defineProperty-f0e15205.js';
|
|
10
10
|
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
11
|
-
import '../_verture/defineProperty-6f62bb2a.js';
|
|
12
11
|
import 'rc-motion';
|
|
13
12
|
import 'clsx';
|
|
14
|
-
import '../_verture/typeof-
|
|
13
|
+
import '../_verture/typeof-6ec38efd.js';
|
|
15
14
|
import 'rc-tree/lib/utils/conductUtil';
|
|
16
15
|
import '@para-ui/icons/Right';
|
|
17
16
|
import '@para-ui/icons/Down';
|
package/ComboSelect/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import SearchIcon from '@para-ui/icons/Search';
|
|
|
6
6
|
import CloseIcon from '@para-ui/icons/Close';
|
|
7
7
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
8
8
|
import Table from '../Table/index.js';
|
|
9
|
-
import { T as Tree } from '../_verture/index-
|
|
9
|
+
import { T as Tree } from '../_verture/index-44152845.js';
|
|
10
10
|
import { Button } from '../Button/index.js';
|
|
11
11
|
import { D as Dropdown } from '../_verture/index-bde7aabe.js';
|
|
12
12
|
import { Popover } from '../Popover/index.js';
|
|
@@ -24,7 +24,7 @@ import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
|
24
24
|
import { Search } from '../Search/index.js';
|
|
25
25
|
import LoadingOutlined from '@para-ui/icons/LoadingF';
|
|
26
26
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
27
|
-
import '../_verture/
|
|
27
|
+
import '../_verture/defineProperty-f0e15205.js';
|
|
28
28
|
import '../_verture/slicedToArray-75fa4188.js';
|
|
29
29
|
import '../Checkbox/index.js';
|
|
30
30
|
import '../Help/index.js';
|
|
@@ -37,7 +37,6 @@ import '@para-ui/icons/UpTriangleF';
|
|
|
37
37
|
import '@para-ui/icons/DownTriangleF';
|
|
38
38
|
import '@para-ui/icons/Panel';
|
|
39
39
|
import '../Empty/index.js';
|
|
40
|
-
import '../_verture/defineProperty-6f62bb2a.js';
|
|
41
40
|
import '../Radio/index.js';
|
|
42
41
|
import '../OperateBtn/index.js';
|
|
43
42
|
import '@para-ui/icons/More';
|
|
@@ -60,8 +59,8 @@ import '@para-ui/icons/Right';
|
|
|
60
59
|
import '@para-ui/icons/DoubleLeft';
|
|
61
60
|
import '@para-ui/icons/DoubleRight';
|
|
62
61
|
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
63
|
-
import '../_verture/index-
|
|
64
|
-
import '../_verture/typeof-
|
|
62
|
+
import '../_verture/index-8ac46bd9.js';
|
|
63
|
+
import '../_verture/typeof-6ec38efd.js';
|
|
65
64
|
import 'rc-tree';
|
|
66
65
|
import '@para-ui/icons/Document';
|
|
67
66
|
import 'react-dom';
|
package/CycleSelector/index.js
CHANGED
|
@@ -19,9 +19,6 @@ import 'rc-picker/es/generate/dayjs';
|
|
|
19
19
|
import '../Tag/index.js';
|
|
20
20
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
21
21
|
import '@para-ui/icons/EditOutline';
|
|
22
|
-
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
23
|
-
import '../_verture/slicedToArray-75fa4188.js';
|
|
24
|
-
import '../_verture/typeof-adeedc13.js';
|
|
25
22
|
import '../AutoTips/index.js';
|
|
26
23
|
import '../Tooltip/index.js';
|
|
27
24
|
import 'rc-tooltip';
|
|
@@ -30,7 +27,7 @@ import '@para-ui/icons/Forbid';
|
|
|
30
27
|
import '@paraview/lib';
|
|
31
28
|
import '../_verture/tinycolor-ece3542d.js';
|
|
32
29
|
import '@para-ui/icons/Plus';
|
|
33
|
-
import '../_verture/defineProperty-
|
|
30
|
+
import '../_verture/defineProperty-f0e15205.js';
|
|
34
31
|
import 'rc-picker';
|
|
35
32
|
import '@para-ui/icons/CloseCircleF';
|
|
36
33
|
import '@para-ui/icons/Calendar';
|
package/DatePicker/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import dayjsGenerateConfig from 'rc-picker/es/generate/dayjs';
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { Button } from '../Button/index.js';
|
|
4
4
|
import { Tag } from '../Tag/index.js';
|
|
5
|
-
import {
|
|
5
|
+
import { a as _defineProperty } from '../_verture/defineProperty-f0e15205.js';
|
|
6
6
|
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
7
7
|
import React__default, { forwardRef, useImperativeHandle } from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
@@ -33,9 +33,6 @@ import '../_verture/usePopupContainer-635f66f4.js';
|
|
|
33
33
|
import 'dayjs';
|
|
34
34
|
import '@para-ui/icons/Close';
|
|
35
35
|
import '@para-ui/icons/EditOutline';
|
|
36
|
-
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
37
|
-
import '../_verture/slicedToArray-75fa4188.js';
|
|
38
|
-
import '../_verture/typeof-adeedc13.js';
|
|
39
36
|
import '../_verture/tinycolor-ece3542d.js';
|
|
40
37
|
import '@para-ui/icons/Plus';
|
|
41
38
|
import '../Help/index.js';
|
package/DynamicMultiBox/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { ComboSelect } from '../ComboSelect/index.js';
|
|
|
17
17
|
import DatePicker from '../DatePicker/index.js';
|
|
18
18
|
import AutoTips from '../AutoTips/index.js';
|
|
19
19
|
import { UUID } from '@paraview/lib';
|
|
20
|
-
import { d as dist } from '../_verture/index-
|
|
20
|
+
import { d as dist } from '../_verture/index-0f5ee6f7.js';
|
|
21
21
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
22
22
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
|
|
23
23
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
@@ -52,13 +52,12 @@ import '@para-ui/icons/Up';
|
|
|
52
52
|
import '../MultiBox/index.js';
|
|
53
53
|
import '@para-ui/icons/Internet';
|
|
54
54
|
import '../Table/index.js';
|
|
55
|
-
import '../_verture/
|
|
55
|
+
import '../_verture/defineProperty-f0e15205.js';
|
|
56
56
|
import '../_verture/slicedToArray-75fa4188.js';
|
|
57
57
|
import '../Button/index.js';
|
|
58
58
|
import '@para-ui/icons/ScreenF';
|
|
59
59
|
import '@para-ui/icons/UpTriangleF';
|
|
60
60
|
import '@para-ui/icons/DownTriangleF';
|
|
61
|
-
import '../_verture/defineProperty-6f62bb2a.js';
|
|
62
61
|
import '../Radio/index.js';
|
|
63
62
|
import '../OperateBtn/index.js';
|
|
64
63
|
import '@para-ui/icons/More';
|
|
@@ -73,10 +72,10 @@ import 'rc-pagination';
|
|
|
73
72
|
import '@para-ui/icons/Right';
|
|
74
73
|
import '@para-ui/icons/DoubleLeft';
|
|
75
74
|
import '@para-ui/icons/DoubleRight';
|
|
76
|
-
import '../_verture/index-
|
|
75
|
+
import '../_verture/index-44152845.js';
|
|
77
76
|
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
78
|
-
import '../_verture/index-
|
|
79
|
-
import '../_verture/typeof-
|
|
77
|
+
import '../_verture/index-8ac46bd9.js';
|
|
78
|
+
import '../_verture/typeof-6ec38efd.js';
|
|
80
79
|
import 'rc-tree';
|
|
81
80
|
import '@para-ui/icons/Document';
|
|
82
81
|
import 'react-dom';
|
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-b037486c.js';
|
|
5
5
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
6
6
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
|
|
7
7
|
import '../TextField/index.js';
|
|
@@ -51,12 +51,11 @@ import 'rc-input-number';
|
|
|
51
51
|
import '@para-ui/icons/Up';
|
|
52
52
|
import '../ComboSelect/index.js';
|
|
53
53
|
import '../Table/index.js';
|
|
54
|
-
import '../_verture/
|
|
54
|
+
import '../_verture/defineProperty-f0e15205.js';
|
|
55
55
|
import '@para-ui/icons/ScreenF';
|
|
56
56
|
import '@para-ui/icons/UpTriangleF';
|
|
57
57
|
import '@para-ui/icons/DownTriangleF';
|
|
58
58
|
import '@para-ui/icons/Panel';
|
|
59
|
-
import '../_verture/defineProperty-6f62bb2a.js';
|
|
60
59
|
import '../OperateBtn/index.js';
|
|
61
60
|
import '@para-ui/icons/More';
|
|
62
61
|
import '../PopConfirm/index.js';
|
|
@@ -70,10 +69,10 @@ import 'rc-pagination';
|
|
|
70
69
|
import '@para-ui/icons/Right';
|
|
71
70
|
import '@para-ui/icons/DoubleLeft';
|
|
72
71
|
import '@para-ui/icons/DoubleRight';
|
|
73
|
-
import '../_verture/index-
|
|
72
|
+
import '../_verture/index-44152845.js';
|
|
74
73
|
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
75
|
-
import '../_verture/index-
|
|
76
|
-
import '../_verture/typeof-
|
|
74
|
+
import '../_verture/index-8ac46bd9.js';
|
|
75
|
+
import '../_verture/typeof-6ec38efd.js';
|
|
77
76
|
import 'rc-tree';
|
|
78
77
|
import '@para-ui/icons/Document';
|
|
79
78
|
import 'react-dom';
|
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-b037486c.js';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
import '../Label/index.js';
|
|
6
6
|
import '../_verture/constant-5317fc89.js';
|
|
@@ -51,12 +51,11 @@ import 'rc-input-number';
|
|
|
51
51
|
import '@para-ui/icons/Up';
|
|
52
52
|
import '../ComboSelect/index.js';
|
|
53
53
|
import '../Table/index.js';
|
|
54
|
-
import '../_verture/
|
|
54
|
+
import '../_verture/defineProperty-f0e15205.js';
|
|
55
55
|
import '@para-ui/icons/ScreenF';
|
|
56
56
|
import '@para-ui/icons/UpTriangleF';
|
|
57
57
|
import '@para-ui/icons/DownTriangleF';
|
|
58
58
|
import '@para-ui/icons/Panel';
|
|
59
|
-
import '../_verture/defineProperty-6f62bb2a.js';
|
|
60
59
|
import '../OperateBtn/index.js';
|
|
61
60
|
import '@para-ui/icons/More';
|
|
62
61
|
import '../PopConfirm/index.js';
|
|
@@ -70,10 +69,10 @@ import 'rc-pagination';
|
|
|
70
69
|
import '@para-ui/icons/Right';
|
|
71
70
|
import '@para-ui/icons/DoubleLeft';
|
|
72
71
|
import '@para-ui/icons/DoubleRight';
|
|
73
|
-
import '../_verture/index-
|
|
72
|
+
import '../_verture/index-44152845.js';
|
|
74
73
|
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
75
|
-
import '../_verture/index-
|
|
76
|
-
import '../_verture/typeof-
|
|
74
|
+
import '../_verture/index-8ac46bd9.js';
|
|
75
|
+
import '../_verture/typeof-6ec38efd.js';
|
|
77
76
|
import 'rc-tree';
|
|
78
77
|
import '@para-ui/icons/Document';
|
|
79
78
|
import 'react-dom';
|
package/Image/index.js
CHANGED
|
@@ -2,10 +2,9 @@ import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useState, useRef, useEffect, useContext, useMemo } from 'react';
|
|
5
|
-
import { i as warningOnce, d as wrapperRaf, _ as _objectSpread2, w as warning, c as clsx, P as Portal, K as KeyCode, b as _objectWithoutProperties, a as _extends, j as useMergedState } from '../_verture/Portal-
|
|
6
|
-
import { _ as _defineProperty } from '../_verture/defineProperty-
|
|
5
|
+
import { i as warningOnce, d as wrapperRaf, _ as _objectSpread2, w as warning, c as clsx, P as Portal, K as KeyCode, b as _objectWithoutProperties, a as _extends, j as useMergedState } from '../_verture/Portal-42560ff0.js';
|
|
6
|
+
import { _ as _typeof, a as _defineProperty } from '../_verture/defineProperty-f0e15205.js';
|
|
7
7
|
import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
|
|
8
|
-
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
9
8
|
import Dialog from 'rc-dialog';
|
|
10
9
|
import ReactDOM from 'react-dom';
|
|
11
10
|
import CSSMotion from 'rc-motion';
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2024/8/16 16:33
|
|
4
|
+
* @description 验证码
|
|
5
|
+
*/
|
|
6
|
+
import React, { ReactNode } from 'react';
|
|
7
|
+
import { HelperTextDetailProps } from "../HelperText";
|
|
8
|
+
import InputCodeCard from './inputCodeCard';
|
|
9
|
+
import InputCodeInput from './inputCodeInput';
|
|
10
|
+
import './index.scss';
|
|
11
|
+
import { TextFieldProps } from "../TextField";
|
|
12
|
+
import { LabelTooltipProps } from "../Label";
|
|
13
|
+
export interface InputCodeCardProps extends HelperTextDetailProps {
|
|
14
|
+
/** 样式class */
|
|
15
|
+
className?: string;
|
|
16
|
+
/** style */
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
/** 大小 */
|
|
19
|
+
size?: 'small' | 'medium' | 'large';
|
|
20
|
+
/** 类型 */
|
|
21
|
+
type?: 'card' | 'underline';
|
|
22
|
+
/** 卡片数量 */
|
|
23
|
+
cardNumber?: number;
|
|
24
|
+
/** 分隔符 没值 不带 */
|
|
25
|
+
separator?: ReactNode;
|
|
26
|
+
/** 辅助文案 */
|
|
27
|
+
sendText?: ReactNode;
|
|
28
|
+
/** 倒计时 */
|
|
29
|
+
countdown?: number;
|
|
30
|
+
/** 倒计时开始计时,不等于undefined就开始计时 */
|
|
31
|
+
refreshCountdown?: number | undefined;
|
|
32
|
+
/** 默认值 不受控 */
|
|
33
|
+
defaultValue?: string[];
|
|
34
|
+
/** 默认值 受控 */
|
|
35
|
+
value?: string[];
|
|
36
|
+
/** 输入框props */
|
|
37
|
+
inputProps?: (index: number) => TextFieldProps;
|
|
38
|
+
onChange?: (val: string[]) => void;
|
|
39
|
+
/** 最后一个输入框完成输入 */
|
|
40
|
+
onFinish?: (val: string) => void;
|
|
41
|
+
/** 重新发送 */
|
|
42
|
+
onReset?: () => Promise<boolean> | boolean;
|
|
43
|
+
[name: string]: any;
|
|
44
|
+
}
|
|
45
|
+
export interface InputCodeInputProps extends HelperTextDetailProps {
|
|
46
|
+
/** 样式class */
|
|
47
|
+
className?: string;
|
|
48
|
+
/** style */
|
|
49
|
+
style?: React.CSSProperties;
|
|
50
|
+
/** 大小 */
|
|
51
|
+
size?: 'small' | 'medium' | 'large';
|
|
52
|
+
/** 类型 */
|
|
53
|
+
type?: 'btnIntegrated' | 'btnSplit';
|
|
54
|
+
/** 标题 */
|
|
55
|
+
label?: ReactNode;
|
|
56
|
+
/** label 提示信息 */
|
|
57
|
+
labelTooltip?: LabelTooltipProps;
|
|
58
|
+
/** 提示语 */
|
|
59
|
+
placeholder?: ReactNode;
|
|
60
|
+
/** 是否必填 */
|
|
61
|
+
required?: boolean;
|
|
62
|
+
/** 倒计时 */
|
|
63
|
+
countdown?: number;
|
|
64
|
+
/** 默认值 不受控 */
|
|
65
|
+
defaultValue?: string;
|
|
66
|
+
/** 默认值 受控 */
|
|
67
|
+
value?: string;
|
|
68
|
+
/** 获取验证码宽度 */
|
|
69
|
+
getCodeWidth?: string;
|
|
70
|
+
/** 输入框props */
|
|
71
|
+
inputProps?: TextFieldProps;
|
|
72
|
+
onChange?: (val: string) => void;
|
|
73
|
+
/** 获取验证码事件 */
|
|
74
|
+
onGetCode?: () => Promise<boolean> | boolean;
|
|
75
|
+
[name: string]: any;
|
|
76
|
+
}
|
|
77
|
+
type MergedInputCode = {
|
|
78
|
+
Card: typeof InputCodeCard;
|
|
79
|
+
Input: typeof InputCodeInput;
|
|
80
|
+
};
|
|
81
|
+
export declare const InputCode: MergedInputCode;
|
|
82
|
+
export default InputCode;
|