@para-ui/core 3.0.28 → 3.0.30
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 +44 -76
- 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 +813 -800
- 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 +30 -55
- 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/Styles/form.scss +5 -5
- package/Styles/index.scss +37 -37
- package/Styles/normalize.scss +348 -348
- package/Styles/scrollbar.scss +223 -223
- package/Styles/theme.scss +74 -74
- 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 +114 -137
- 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.d.ts +2 -4
- package/index.js +15 -16
- package/package.json +167 -168
- package/Test/index.d.ts +0 -3
- package/Test/index.js +0 -9
- package/_verture/defineProperty-0590dc61.js +0 -16
|
@@ -10,7 +10,7 @@ import { Placement } from "../Dropdown";
|
|
|
10
10
|
import { LabelTooltipProps } from "../Label";
|
|
11
11
|
import { EmptyProps } from '../Empty';
|
|
12
12
|
import { HelperTextDetailProps } from "../HelperText";
|
|
13
|
-
|
|
13
|
+
type TableProps = ITableProps & {
|
|
14
14
|
/** table 参数 */
|
|
15
15
|
params?: Object;
|
|
16
16
|
/** 替换显示字段 */
|
|
@@ -20,12 +20,12 @@ declare type TableProps = ITableProps & {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
export type { TableProps, TreeProps };
|
|
23
|
-
export
|
|
23
|
+
export type SelectOpt = {
|
|
24
24
|
disabled?: boolean;
|
|
25
25
|
closable?: boolean;
|
|
26
26
|
[key: string]: any;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type SelectedOptions = Array<SelectOpt>;
|
|
29
29
|
export type { TreeNodeProps };
|
|
30
30
|
export interface ComboSelectProps extends HelperTextDetailProps {
|
|
31
31
|
/**选择器模式*/
|
package/Container/index.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { $ as $prefixCls } from '../_verture/constant-
|
|
3
|
+
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
4
4
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
5
5
|
|
|
6
6
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-container {\n display: flex;\n width: 100%;\n height: 100%;\n}\n.paraui-v3-container > .container-body {\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-tlr {\n flex-direction: column;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-top {\n flex: none;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-body {\n display: flex;\n overflow: hidden;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-body > .container-body-right {\n flex: 1;\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-body > .container-body-right > .container-right {\n height: 100%;\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-body > .container-left {\n flex: none;\n}\n.paraui-v3-container.paraui-v3-tlrb {\n flex-direction: column;\n}\n.paraui-v3-container.paraui-v3-tlrb > .container-top {\n flex: none;\n}\n.paraui-v3-container.paraui-v3-tlrb > .container-body {\n display: flex;\n overflow: hidden;\n}\n.paraui-v3-container.paraui-v3-tlrb > .container-body > .container-left {\n flex: none;\n}\n.paraui-v3-container.paraui-v3-tlrb > .container-body > .container-right {\n flex: 1;\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-ltrb > .container-body {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.paraui-v3-container.paraui-v3-ltrb > .container-body > .container-right {\n flex: 1;\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-ltrb > .container-left {\n flex: none;\n}\n.paraui-v3-container.paraui-v3-trb {\n flex-direction: column;\n}\n.paraui-v3-container.paraui-v3-trb > .container-right {\n flex: 1;\n overflow: auto;\n}";
|
|
7
7
|
styleInject(css_248z);
|
|
8
8
|
|
|
9
|
+
// 通用布局容器
|
|
9
10
|
var Container = function Container() {
|
|
10
11
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
11
12
|
var _props$className = props.className,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
14
|
+
top = props.top,
|
|
15
|
+
_props$topStyle = props.topStyle,
|
|
16
|
+
topStyle = _props$topStyle === void 0 ? {} : _props$topStyle,
|
|
17
|
+
left = props.left,
|
|
18
|
+
_props$leftStyle = props.leftStyle,
|
|
19
|
+
leftStyle = _props$leftStyle === void 0 ? {} : _props$leftStyle,
|
|
20
|
+
right = props.right,
|
|
21
|
+
_props$rightStyle = props.rightStyle,
|
|
22
|
+
rightStyle = _props$rightStyle === void 0 ? {} : _props$rightStyle,
|
|
23
|
+
bottom = props.bottom,
|
|
24
|
+
_props$bottomStyle = props.bottomStyle,
|
|
25
|
+
bottomStyle = _props$bottomStyle === void 0 ? {} : _props$bottomStyle,
|
|
26
|
+
_props$type = props.type,
|
|
27
|
+
type = _props$type === void 0 ? "tlr" : _props$type;
|
|
27
28
|
var topSty, leftSty, rightSty, bottomSty, bodySty;
|
|
28
29
|
var position = React__default.useMemo(function () {
|
|
29
30
|
switch (type) {
|
|
@@ -82,7 +83,6 @@ var Container = function Container() {
|
|
|
82
83
|
}))]
|
|
83
84
|
}))]
|
|
84
85
|
}));
|
|
85
|
-
|
|
86
86
|
case "tlrb":
|
|
87
87
|
// 上 左右 下
|
|
88
88
|
topSty = Object.assign({
|
|
@@ -135,7 +135,6 @@ var Container = function Container() {
|
|
|
135
135
|
children: bottom
|
|
136
136
|
}))]
|
|
137
137
|
}));
|
|
138
|
-
|
|
139
138
|
case "ltrb":
|
|
140
139
|
// 左 上右下
|
|
141
140
|
leftSty = Object.assign({
|
|
@@ -188,7 +187,6 @@ var Container = function Container() {
|
|
|
188
187
|
}))]
|
|
189
188
|
}))]
|
|
190
189
|
}));
|
|
191
|
-
|
|
192
190
|
case "trb":
|
|
193
191
|
// 上 中 下
|
|
194
192
|
topSty = Object.assign({
|
|
@@ -224,7 +222,6 @@ var Container = function Container() {
|
|
|
224
222
|
}))]
|
|
225
223
|
}));
|
|
226
224
|
}
|
|
227
|
-
|
|
228
225
|
return jsx("div", {
|
|
229
226
|
children: "Error Position"
|
|
230
227
|
});
|
|
@@ -7,23 +7,23 @@ import PickerButton from '../PickerButton';
|
|
|
7
7
|
import PickerTag from '../PickerTag';
|
|
8
8
|
import { Dayjs } from 'dayjs';
|
|
9
9
|
import { LabelTooltipProps } from "../../Label";
|
|
10
|
-
export
|
|
10
|
+
export type ShortcutType = {
|
|
11
11
|
text: string;
|
|
12
12
|
value: Dayjs[] | (() => Dayjs[]);
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type SizeType = 'small' | 'medium' | 'large' | undefined;
|
|
15
15
|
export interface TimePickerLocale {
|
|
16
16
|
placeholder?: string;
|
|
17
17
|
rangePlaceholder?: [string, string];
|
|
18
18
|
}
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
19
|
+
export type NullableDateType<DateType> = DateType | null | undefined | string;
|
|
20
|
+
export type Value<DateType> = NullableDateType<DateType>;
|
|
21
|
+
export type RangeValue<DateType> = [NullableDateType<DateType>, NullableDateType<DateType>] | null;
|
|
22
22
|
export declare const Components: {
|
|
23
23
|
button: typeof PickerButton;
|
|
24
24
|
rangeItem: typeof PickerTag;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
type InjectDefaultProps<Props, Type> = Omit<Props, 'locale' | 'generateConfig' | 'prevIcon' | 'nextIcon' | 'superPrevIcon' | 'superNextIcon' | 'hideHeader' | 'components' | 'value' | 'defaultValue'> & {
|
|
27
27
|
/** 国际化 */
|
|
28
28
|
locale?: 'zh' | 'en';
|
|
29
29
|
/** 大小 */
|
|
@@ -50,17 +50,17 @@ declare type InjectDefaultProps<Props, Type> = Omit<Props, 'locale' | 'generateC
|
|
|
50
50
|
export declare const pickerFormatMap: {
|
|
51
51
|
[index: string]: string;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
53
|
+
export type PickerLocale = {
|
|
54
54
|
lang: RcPickerLocale & AdditionalPickerLocaleLangProps;
|
|
55
55
|
timePickerLocale: TimePickerLocale;
|
|
56
56
|
} & AdditionalPickerLocaleProps;
|
|
57
|
-
export
|
|
57
|
+
export type AdditionalPickerLocaleProps = {
|
|
58
58
|
dateFormat?: string;
|
|
59
59
|
dateTimeFormat?: string;
|
|
60
60
|
weekFormat?: string;
|
|
61
61
|
monthFormat?: string;
|
|
62
62
|
};
|
|
63
|
-
export
|
|
63
|
+
export type AdditionalPickerLocaleLangProps = {
|
|
64
64
|
placeholder?: string;
|
|
65
65
|
yearPlaceholder?: string;
|
|
66
66
|
quarterPlaceholder?: string;
|
|
@@ -71,14 +71,14 @@ export declare type AdditionalPickerLocaleLangProps = {
|
|
|
71
71
|
rangeWeekPlaceholder?: [string, string];
|
|
72
72
|
rangePlaceholder?: [string, string];
|
|
73
73
|
};
|
|
74
|
-
export
|
|
75
|
-
export
|
|
76
|
-
export
|
|
77
|
-
export
|
|
78
|
-
export
|
|
79
|
-
export
|
|
80
|
-
export
|
|
81
|
-
export
|
|
74
|
+
export type PickerBaseProps<DateType> = InjectDefaultProps<RCPickerBaseProps<DateType>, ''>;
|
|
75
|
+
export type PickerDateProps<DateType> = InjectDefaultProps<RCPickerDateProps<DateType>, ''>;
|
|
76
|
+
export type PickerTimeProps<DateType> = InjectDefaultProps<RCPickerTimeProps<DateType>, ''>;
|
|
77
|
+
export type PickerProps<DateType> = PickerBaseProps<DateType> | PickerDateProps<DateType> | PickerTimeProps<DateType>;
|
|
78
|
+
export type RangePickerBaseProps<DateType> = InjectDefaultProps<RCRangePickerBaseProps<DateType>, 'range'>;
|
|
79
|
+
export type RangePickerDateProps<DateType> = InjectDefaultProps<RCRangePickerDateProps<DateType>, 'range'>;
|
|
80
|
+
export type RangePickerTimeProps<DateType> = InjectDefaultProps<RCRangePickerTimeProps<DateType>, 'range'>;
|
|
81
|
+
export type RangePickerProps<DateType> = (RangePickerBaseProps<DateType> | RangePickerDateProps<DateType> | RangePickerTimeProps<DateType>) & {
|
|
82
82
|
/** 预设时间范围快捷选择 */
|
|
83
83
|
shortcuts?: ShortcutType[];
|
|
84
84
|
/** 预设范围选择面板位置 */
|
package/DatePicker/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
3
|
export type { Value, RangeValue, NullableDateType } from './generatePicker';
|
|
4
4
|
import { PickerProps, PickerDateProps, RangePickerProps as BaseRangePickerProps } from './generatePicker';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export type DatePickerProps = PickerProps<Dayjs>;
|
|
6
|
+
export type MonthPickerProps = Omit<PickerDateProps<Dayjs>, 'picker'>;
|
|
7
|
+
export type WeekPickerProps = Omit<PickerDateProps<Dayjs>, 'picker'>;
|
|
8
|
+
export type RangePickerProps = BaseRangePickerProps<Dayjs>;
|
|
9
9
|
import './style/index.scss';
|
|
10
10
|
declare const DatePicker: import("react").ComponentClass<PickerProps<Dayjs>, any> & {
|
|
11
11
|
WeekPicker: import("react").ComponentClass<Omit<PickerDateProps<Dayjs>, "picker">, any>;
|