@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.
Files changed (140) hide show
  1. package/AutoBox/index.js +48 -88
  2. package/AutoTips/index.js +25 -32
  3. package/Breadcrumbs/index.js +43 -63
  4. package/Button/SplitButton.d.ts +1 -1
  5. package/Button/index.d.ts +1 -1
  6. package/Button/index.js +88 -118
  7. package/ButtonGroup/index.js +27 -36
  8. package/Carousel/index.d.ts +2 -2
  9. package/Carousel/index.js +27 -28
  10. package/Cascader/index.js +52 -64
  11. package/Checkbox/index.js +23 -39
  12. package/CheckboxGroup/index.js +31 -48
  13. package/Collapse/collapsePanel.d.ts +1 -1
  14. package/Collapse/index.d.ts +1 -1
  15. package/Collapse/index.js +9 -29
  16. package/Collapse/util.d.ts +2 -2
  17. package/CollapseBox/index.js +45 -56
  18. package/CollapseLayout/index.js +35 -54
  19. package/ComboSelect/index.js +222 -349
  20. package/ComboSelect/interface.d.ts +3 -3
  21. package/Container/index.js +17 -20
  22. package/DatePicker/generatePicker/index.d.ts +17 -17
  23. package/DatePicker/index.d.ts +4 -4
  24. package/DatePicker/index.js +111 -167
  25. package/Desktop/index.js +62 -173
  26. package/Drawer/index.js +65 -58
  27. package/Drawer/interface.d.ts +7 -3
  28. package/Dropdown/index.d.ts +1 -1
  29. package/Dropdown/index.js +3 -3
  30. package/Empty/index.js +17 -22
  31. package/Form/index.d.ts +1 -1
  32. package/Form/index.js +38 -80
  33. package/FormItem/index.d.ts +1 -1
  34. package/FormItem/index.js +11 -11
  35. package/FormItem/validateFunction.d.ts +1 -1
  36. package/FunctionModal/index.js +11 -11
  37. package/GlobalContext/index.js +3 -3
  38. package/GlobalContext/usePopupContainer.d.ts +1 -1
  39. package/Help/index.js +11 -11
  40. package/HelperText/index.js +11 -12
  41. package/InputLang/index.js +47 -80
  42. package/InputNumber/index.js +65 -100
  43. package/Label/index.js +15 -16
  44. package/Loading/index.js +6 -7
  45. package/Menu/index.js +148 -328
  46. package/Menu/interface.d.ts +2 -2
  47. package/Menu/verticalMenuList.d.ts +1 -1
  48. package/Message/index.d.ts +1 -1
  49. package/Message/index.js +45 -64
  50. package/Modal/Confirm/index.d.ts +2 -2
  51. package/Modal/index.d.ts +1 -1
  52. package/Modal/index.js +119 -152
  53. package/MultiBox/index.js +44 -76
  54. package/Notification/index.d.ts +2 -2
  55. package/Notification/index.js +51 -72
  56. package/OperateBtn/index.js +42 -70
  57. package/PageHeader/index.js +120 -286
  58. package/PageHeader/interface.d.ts +1 -1
  59. package/Pagination/index.d.ts +2 -2
  60. package/Pagination/index.js +79 -131
  61. package/ParauiProvider/index.js +2 -3
  62. package/PasswordRules/index.js +12 -30
  63. package/PopConfirm/index.d.ts +1 -1
  64. package/PopConfirm/index.js +52 -59
  65. package/Popover/index.js +8 -9
  66. package/Progress/index.d.ts +6 -6
  67. package/Progress/index.js +50 -89
  68. package/Querying/index.js +14 -17
  69. package/README.md +813 -800
  70. package/Radio/index.js +21 -33
  71. package/RadioGroup/index.js +32 -47
  72. package/Search/index.js +44 -66
  73. package/Select/index.js +176 -343
  74. package/SelectInput/index.js +8 -9
  75. package/Selector/index.js +285 -681
  76. package/SelectorPicker/index.js +62 -97
  77. package/SingleBox/index.js +30 -55
  78. package/Slider/index.d.ts +1 -1
  79. package/Slider/index.js +29 -41
  80. package/Slider/interface.d.ts +2 -2
  81. package/Split/index.js +10 -23
  82. package/Status/index.js +8 -7
  83. package/Stepper/index.d.ts +1 -1
  84. package/Stepper/index.js +20 -25
  85. package/Styles/form.scss +5 -5
  86. package/Styles/index.scss +37 -37
  87. package/Styles/normalize.scss +348 -348
  88. package/Styles/scrollbar.scss +223 -223
  89. package/Styles/theme.scss +74 -74
  90. package/Switch/index.d.ts +2 -2
  91. package/Switch/index.js +19 -20
  92. package/Table/index.js +568 -1019
  93. package/Table/interface.d.ts +5 -5
  94. package/Tabs/index.d.ts +3 -3
  95. package/Tabs/index.js +47 -65
  96. package/Tag/TagGroup.d.ts +1 -1
  97. package/Tag/index.d.ts +2 -2
  98. package/Tag/index.js +72 -107
  99. package/TextEditor/index.d.ts +2 -2
  100. package/TextEditor/index.js +81 -105
  101. package/TextField/index.js +141 -220
  102. package/TimePicker/index.d.ts +1 -1
  103. package/TimePicker/index.js +12 -15
  104. package/Timeline/index.js +42 -52
  105. package/Title/index.js +10 -9
  106. package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
  107. package/ToggleButton/index.js +50 -70
  108. package/Tooltip/index.js +64 -98
  109. package/Tooltip/interface.d.ts +1 -1
  110. package/Transfer/index.d.ts +1 -1
  111. package/Transfer/index.js +114 -137
  112. package/Transfer/useClick.d.ts +1 -1
  113. package/Tree/index.js +10 -10
  114. package/Tree/interface.d.ts +6 -6
  115. package/Upload/Dragger/index.d.ts +1 -1
  116. package/Upload/ImageUpload/index.d.ts +1 -1
  117. package/Upload/ImgCrop/EasyCrop.d.ts +1 -1
  118. package/Upload/index.d.ts +1 -1
  119. package/Upload/index.js +283 -475
  120. package/Upload/interface.d.ts +2 -2
  121. package/_verture/{constant-bf34e6fa.js → constant-66aa48a1.js} +0 -1
  122. package/_verture/defineProperty-62acccfc.js +34 -0
  123. package/_verture/{index-342379c6.js → index-06fea29b.js} +79 -124
  124. package/_verture/{index-48875ffd.js → index-131f8fe5.js} +80 -181
  125. package/_verture/{index-31ce5a11.js → index-92144ad3.js} +238 -445
  126. package/_verture/{index-bbed73a3.js → index-be4faaee.js} +19 -61
  127. package/_verture/{intl-336570e4.js → intl-5cbb940c.js} +4 -12
  128. package/_verture/{modalContext-d646d9db.js → modalContext-c749e1c6.js} +18 -43
  129. package/_verture/{slicedToArray-d7722f4b.js → slicedToArray-77980792.js} +23 -25
  130. package/_verture/{toConsumableArray-f8047a75.js → toConsumableArray-87c7d895.js} +1 -1
  131. package/_verture/{useFormatMessage-f4452258.js → useFormatMessage-703f8b20.js} +1 -3
  132. package/_verture/{useGlobalProps-af9a2af6.js → useGlobalProps-1b846a65.js} +1 -2
  133. package/_verture/{usePopupContainer-b8ab7cab.js → usePopupContainer-87febeb9.js} +10 -25
  134. package/_verture/{util-a77b261e.js → util-7e1fb1e2.js} +2 -3
  135. package/index.d.ts +2 -4
  136. package/index.js +15 -16
  137. package/package.json +167 -168
  138. package/Test/index.d.ts +0 -3
  139. package/Test/index.js +0 -9
  140. 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
- declare type TableProps = ITableProps & {
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 declare type SelectOpt = {
23
+ export type SelectOpt = {
24
24
  disabled?: boolean;
25
25
  closable?: boolean;
26
26
  [key: string]: any;
27
27
  };
28
- export declare type SelectedOptions = Array<SelectOpt>;
28
+ export type SelectedOptions = Array<SelectOpt>;
29
29
  export type { TreeNodeProps };
30
30
  export interface ComboSelectProps extends HelperTextDetailProps {
31
31
  /**选择器模式*/
@@ -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-bf34e6fa.js';
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
- className = _props$className === void 0 ? "" : _props$className,
13
- top = props.top,
14
- _props$topStyle = props.topStyle,
15
- topStyle = _props$topStyle === void 0 ? {} : _props$topStyle,
16
- left = props.left,
17
- _props$leftStyle = props.leftStyle,
18
- leftStyle = _props$leftStyle === void 0 ? {} : _props$leftStyle,
19
- right = props.right,
20
- _props$rightStyle = props.rightStyle,
21
- rightStyle = _props$rightStyle === void 0 ? {} : _props$rightStyle,
22
- bottom = props.bottom,
23
- _props$bottomStyle = props.bottomStyle,
24
- bottomStyle = _props$bottomStyle === void 0 ? {} : _props$bottomStyle,
25
- _props$type = props.type,
26
- type = _props$type === void 0 ? "tlr" : _props$type;
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 declare type ShortcutType = {
10
+ export type ShortcutType = {
11
11
  text: string;
12
12
  value: Dayjs[] | (() => Dayjs[]);
13
13
  };
14
- declare type SizeType = 'small' | 'medium' | 'large' | undefined;
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 declare type NullableDateType<DateType> = DateType | null | undefined | string;
20
- export declare type Value<DateType> = NullableDateType<DateType>;
21
- export declare type RangeValue<DateType> = [NullableDateType<DateType>, NullableDateType<DateType>] | null;
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
- declare type InjectDefaultProps<Props, Type> = Omit<Props, 'locale' | 'generateConfig' | 'prevIcon' | 'nextIcon' | 'superPrevIcon' | 'superNextIcon' | 'hideHeader' | 'components' | 'value' | 'defaultValue'> & {
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 declare type PickerLocale = {
53
+ export type PickerLocale = {
54
54
  lang: RcPickerLocale & AdditionalPickerLocaleLangProps;
55
55
  timePickerLocale: TimePickerLocale;
56
56
  } & AdditionalPickerLocaleProps;
57
- export declare type AdditionalPickerLocaleProps = {
57
+ export type AdditionalPickerLocaleProps = {
58
58
  dateFormat?: string;
59
59
  dateTimeFormat?: string;
60
60
  weekFormat?: string;
61
61
  monthFormat?: string;
62
62
  };
63
- export declare type AdditionalPickerLocaleLangProps = {
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 declare type PickerBaseProps<DateType> = InjectDefaultProps<RCPickerBaseProps<DateType>, ''>;
75
- export declare type PickerDateProps<DateType> = InjectDefaultProps<RCPickerDateProps<DateType>, ''>;
76
- export declare type PickerTimeProps<DateType> = InjectDefaultProps<RCPickerTimeProps<DateType>, ''>;
77
- export declare type PickerProps<DateType> = PickerBaseProps<DateType> | PickerDateProps<DateType> | PickerTimeProps<DateType>;
78
- export declare type RangePickerBaseProps<DateType> = InjectDefaultProps<RCRangePickerBaseProps<DateType>, 'range'>;
79
- export declare type RangePickerDateProps<DateType> = InjectDefaultProps<RCRangePickerDateProps<DateType>, 'range'>;
80
- export declare type RangePickerTimeProps<DateType> = InjectDefaultProps<RCRangePickerTimeProps<DateType>, 'range'>;
81
- export declare type RangePickerProps<DateType> = (RangePickerBaseProps<DateType> | RangePickerDateProps<DateType> | RangePickerTimeProps<DateType>) & {
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
  /** 预设范围选择面板位置 */
@@ -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 declare type DatePickerProps = PickerProps<Dayjs>;
6
- export declare type MonthPickerProps = Omit<PickerDateProps<Dayjs>, 'picker'>;
7
- export declare type WeekPickerProps = Omit<PickerDateProps<Dayjs>, 'picker'>;
8
- export declare type RangePickerProps = BaseRangePickerProps<Dayjs>;
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>;