@para-ui/core 3.0.28 → 3.0.29
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/AutoBox/index.js +48 -88
- package/AutoTips/index.js +25 -32
- package/Breadcrumbs/index.js +43 -63
- package/Button/SplitButton.d.ts +1 -1
- package/Button/index.d.ts +1 -1
- package/Button/index.js +88 -118
- package/ButtonGroup/index.js +27 -36
- package/Carousel/index.d.ts +2 -2
- package/Carousel/index.js +27 -28
- package/Cascader/index.js +52 -64
- package/Checkbox/index.js +23 -39
- package/CheckboxGroup/index.js +31 -48
- package/Collapse/collapsePanel.d.ts +1 -1
- package/Collapse/index.d.ts +1 -1
- package/Collapse/index.js +9 -29
- package/Collapse/util.d.ts +2 -2
- package/CollapseBox/index.js +45 -56
- package/CollapseLayout/index.js +35 -54
- package/ComboSelect/index.js +222 -349
- package/ComboSelect/interface.d.ts +3 -3
- package/Container/index.js +17 -20
- package/DatePicker/generatePicker/index.d.ts +17 -17
- package/DatePicker/index.d.ts +4 -4
- package/DatePicker/index.js +111 -167
- package/Desktop/index.js +62 -173
- package/Drawer/index.js +65 -58
- package/Drawer/interface.d.ts +7 -3
- package/Dropdown/index.d.ts +1 -1
- package/Dropdown/index.js +3 -3
- package/Empty/index.js +17 -22
- package/Form/index.d.ts +1 -1
- package/Form/index.js +38 -80
- package/FormItem/index.d.ts +1 -1
- package/FormItem/index.js +11 -11
- package/FormItem/validateFunction.d.ts +1 -1
- package/FunctionModal/index.js +11 -11
- package/GlobalContext/index.js +3 -3
- package/GlobalContext/usePopupContainer.d.ts +1 -1
- package/Help/index.js +11 -11
- package/HelperText/index.js +11 -12
- package/InputLang/index.js +47 -80
- package/InputNumber/index.js +65 -100
- package/Label/index.js +15 -16
- package/Loading/index.js +6 -7
- package/Menu/index.js +148 -328
- package/Menu/interface.d.ts +2 -2
- package/Menu/verticalMenuList.d.ts +1 -1
- package/Message/index.d.ts +1 -1
- package/Message/index.js +45 -64
- package/Modal/Confirm/index.d.ts +2 -2
- package/Modal/index.d.ts +1 -1
- package/Modal/index.js +119 -152
- package/MultiBox/index.js +43 -75
- package/Notification/index.d.ts +2 -2
- package/Notification/index.js +51 -72
- package/OperateBtn/index.js +42 -70
- package/PageHeader/index.js +120 -286
- package/PageHeader/interface.d.ts +1 -1
- package/Pagination/index.d.ts +2 -2
- package/Pagination/index.js +79 -131
- package/ParauiProvider/index.js +2 -3
- package/PasswordRules/index.js +12 -30
- package/PopConfirm/index.d.ts +1 -1
- package/PopConfirm/index.js +52 -59
- package/Popover/index.js +8 -9
- package/Progress/index.d.ts +6 -6
- package/Progress/index.js +50 -89
- package/Querying/index.js +14 -17
- package/README.md +6 -0
- package/Radio/index.js +21 -33
- package/RadioGroup/index.js +32 -47
- package/Search/index.js +44 -66
- package/Select/index.js +176 -343
- package/SelectInput/index.js +8 -9
- package/Selector/index.js +285 -681
- package/SelectorPicker/index.js +62 -97
- package/SingleBox/index.js +29 -54
- package/Slider/index.d.ts +1 -1
- package/Slider/index.js +29 -41
- package/Slider/interface.d.ts +2 -2
- package/Split/index.js +10 -23
- package/Status/index.js +8 -7
- package/Stepper/index.d.ts +1 -1
- package/Stepper/index.js +20 -25
- package/Switch/index.d.ts +2 -2
- package/Switch/index.js +19 -20
- package/Table/index.js +568 -1019
- package/Table/interface.d.ts +5 -5
- package/Tabs/index.d.ts +3 -3
- package/Tabs/index.js +47 -65
- package/Tag/TagGroup.d.ts +1 -1
- package/Tag/index.d.ts +2 -2
- package/Tag/index.js +72 -107
- package/TextEditor/index.d.ts +2 -2
- package/TextEditor/index.js +81 -105
- package/TextField/index.js +141 -220
- package/TimePicker/index.d.ts +1 -1
- package/TimePicker/index.js +12 -15
- package/Timeline/index.js +42 -52
- package/Title/index.js +10 -9
- package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
- package/ToggleButton/index.js +50 -70
- package/Tooltip/index.js +64 -98
- package/Tooltip/interface.d.ts +1 -1
- package/Transfer/index.d.ts +1 -1
- package/Transfer/index.js +77 -106
- package/Transfer/useClick.d.ts +1 -1
- package/Tree/index.js +10 -10
- package/Tree/interface.d.ts +6 -6
- package/Upload/Dragger/index.d.ts +1 -1
- package/Upload/ImageUpload/index.d.ts +1 -1
- package/Upload/ImgCrop/EasyCrop.d.ts +1 -1
- package/Upload/index.d.ts +1 -1
- package/Upload/index.js +283 -475
- package/Upload/interface.d.ts +2 -2
- package/_verture/{constant-bf34e6fa.js → constant-66aa48a1.js} +0 -1
- package/_verture/defineProperty-62acccfc.js +34 -0
- package/_verture/{index-342379c6.js → index-06fea29b.js} +79 -124
- package/_verture/{index-48875ffd.js → index-131f8fe5.js} +80 -181
- package/_verture/{index-31ce5a11.js → index-92144ad3.js} +238 -445
- package/_verture/{index-bbed73a3.js → index-be4faaee.js} +19 -61
- package/_verture/{intl-336570e4.js → intl-5cbb940c.js} +4 -12
- package/_verture/{modalContext-d646d9db.js → modalContext-c749e1c6.js} +18 -43
- package/_verture/{slicedToArray-d7722f4b.js → slicedToArray-77980792.js} +23 -25
- package/_verture/{toConsumableArray-f8047a75.js → toConsumableArray-87c7d895.js} +1 -1
- package/_verture/{useFormatMessage-f4452258.js → useFormatMessage-703f8b20.js} +1 -3
- package/_verture/{useGlobalProps-af9a2af6.js → useGlobalProps-1b846a65.js} +1 -2
- package/_verture/{usePopupContainer-b8ab7cab.js → usePopupContainer-87febeb9.js} +10 -25
- package/_verture/{util-a77b261e.js → util-7e1fb1e2.js} +2 -3
- package/index.js +14 -14
- package/package.json +4 -5
- package/_verture/defineProperty-0590dc61.js +0 -16
package/Tree/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { T as Tree } from '../_verture/index-
|
|
2
|
-
export { T as default } from '../_verture/index-
|
|
3
|
-
import '../_verture/toConsumableArray-
|
|
4
|
-
import '../_verture/slicedToArray-
|
|
5
|
-
import '../_verture/defineProperty-
|
|
6
|
-
import '../_verture/
|
|
1
|
+
import { T as Tree } from '../_verture/index-92144ad3.js';
|
|
2
|
+
export { T as default } from '../_verture/index-92144ad3.js';
|
|
3
|
+
import '../_verture/toConsumableArray-87c7d895.js';
|
|
4
|
+
import '../_verture/slicedToArray-77980792.js';
|
|
5
|
+
import '../_verture/defineProperty-62acccfc.js';
|
|
6
|
+
import '../_verture/typeof-498dd2b1.js';
|
|
7
|
+
import '../_verture/index-06fea29b.js';
|
|
7
8
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
8
9
|
import 'react/jsx-runtime';
|
|
9
10
|
import 'react';
|
|
10
11
|
import 'rc-tree';
|
|
11
12
|
import 'clsx';
|
|
12
|
-
import '../_verture/typeof-498dd2b1.js';
|
|
13
13
|
import '@para-ui/icons/LoadingF';
|
|
14
14
|
import '@para-ui/icons/Document';
|
|
15
15
|
import '@para-ui/icons/DownTriangleF';
|
|
@@ -19,7 +19,7 @@ import '../Help/index.js';
|
|
|
19
19
|
import '../Tooltip/index.js';
|
|
20
20
|
import 'rc-tooltip';
|
|
21
21
|
import 'rc-tooltip/lib/placements';
|
|
22
|
-
import '../_verture/constant-
|
|
22
|
+
import '../_verture/constant-66aa48a1.js';
|
|
23
23
|
import '../_verture/style-inject.es-300983ab.js';
|
|
24
24
|
import '@para-ui/icons/Help';
|
|
25
25
|
import 'react-dom';
|
|
@@ -28,10 +28,10 @@ import '@para-ui/icons/PlusCircle';
|
|
|
28
28
|
import '@para-ui/icons/Delete';
|
|
29
29
|
import '@para-ui/icons/Forbid';
|
|
30
30
|
import '@paraview/lib';
|
|
31
|
-
import '../_verture/useFormatMessage-
|
|
31
|
+
import '../_verture/useFormatMessage-703f8b20.js';
|
|
32
32
|
import '@para-ui/core/GlobalContext';
|
|
33
33
|
import '@para-ui/icons/MoreCircle';
|
|
34
34
|
import '../Empty/index.js';
|
|
35
|
-
import '../_verture/useGlobalProps-
|
|
35
|
+
import '../_verture/useGlobalProps-1b846a65.js';
|
|
36
36
|
import '../Loading/index.js';
|
|
37
37
|
import '../AutoTips/index.js';
|
package/Tree/interface.d.ts
CHANGED
|
@@ -7,21 +7,21 @@ import { ReactNode } from "react";
|
|
|
7
7
|
import { TreeProps as RcTreeProps } from 'rc-tree';
|
|
8
8
|
import { DataNode, EventDataNode, Key } from "rc-tree/lib/interface";
|
|
9
9
|
import { EmptyProps } from "../Empty";
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
type HasAction = (nodeData: DataNode) => boolean;
|
|
11
|
+
type ActionItem = boolean | {
|
|
12
12
|
text: string;
|
|
13
13
|
icon?: ReactNode;
|
|
14
14
|
show?: HasAction;
|
|
15
15
|
} | HasAction;
|
|
16
|
-
export
|
|
16
|
+
export type CustomActionItem = {
|
|
17
17
|
action: string;
|
|
18
18
|
text: string;
|
|
19
19
|
icon: ReactNode;
|
|
20
20
|
show?: HasAction;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type ActionType = 'add' | 'edit' | 'enable' | 'del' | string;
|
|
23
23
|
export type { DataNode };
|
|
24
|
-
export
|
|
24
|
+
export type IActions = boolean | {
|
|
25
25
|
/** 新增 */
|
|
26
26
|
add?: ActionItem;
|
|
27
27
|
/** 编辑 */
|
|
@@ -33,7 +33,7 @@ export declare type IActions = boolean | {
|
|
|
33
33
|
/** 自定义actions */
|
|
34
34
|
customizeActions?: CustomActionItem[];
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export type ICheckedKeys = Key[] | {
|
|
37
37
|
checked: Key[];
|
|
38
38
|
halfChecked: Key[];
|
|
39
39
|
};
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { FunctionComponent } from "react";
|
|
7
7
|
import { UploadProps } from "../index";
|
|
8
|
-
export
|
|
8
|
+
export type DraggerProps = Omit<UploadProps, 'type'>;
|
|
9
9
|
declare const Dragger: FunctionComponent<DraggerProps>;
|
|
10
10
|
export default Dragger;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { UploadProps } from '../interface';
|
|
3
3
|
import './index.scss';
|
|
4
|
-
export
|
|
4
|
+
export type ImageUploadProps = Omit<UploadProps, 'type'> & {
|
|
5
5
|
/** 默认图片 showUploadList为false时有效 */
|
|
6
6
|
defaultImage?: {
|
|
7
7
|
/** 图片地址 */
|
|
@@ -3,7 +3,7 @@ import Cropper from 'react-easy-crop';
|
|
|
3
3
|
import type { Dispatch, SetStateAction, ForwardedRef } from 'react';
|
|
4
4
|
import type { Area } from 'react-easy-crop/types';
|
|
5
5
|
import type { ImgCropProps } from './interface';
|
|
6
|
-
export
|
|
6
|
+
export type EasyCropHandle = {
|
|
7
7
|
rotateVal: number;
|
|
8
8
|
setZoomVal: Dispatch<SetStateAction<number>>;
|
|
9
9
|
setRotateVal: Dispatch<SetStateAction<number>>;
|
package/Upload/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import Dragger, { DraggerProps } from "./Dragger";
|
|
|
5
5
|
import ImgCrop, { ImgCropProps } from "./ImgCrop";
|
|
6
6
|
import './index.scss';
|
|
7
7
|
declare const InternalUpload: FunctionComponent<UploadProps>;
|
|
8
|
-
|
|
8
|
+
type MergedUploadType = typeof InternalUpload & {
|
|
9
9
|
ImageUpload: typeof ImageUpload;
|
|
10
10
|
Dragger: typeof Dragger;
|
|
11
11
|
ImgCrop: typeof ImgCrop;
|