@para-ui/core 1.1.31 → 2.0.3

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 (135) hide show
  1. package/AutoBox/index.d.ts +1 -0
  2. package/AutoBox/index.js +3 -3
  3. package/AutoTips/index.d.ts +1 -0
  4. package/AutoTips/index.js +3 -3
  5. package/Breadcrumbs/index.d.ts +1 -0
  6. package/Breadcrumbs/index.js +2 -2
  7. package/Button/SplitButton.d.ts +42 -0
  8. package/Button/index.d.ts +28 -7
  9. package/Button/index.js +3 -3
  10. package/ButtonGroup/index.d.ts +13 -18
  11. package/ButtonGroup/index.js +3 -3
  12. package/Cascader/index.d.ts +52 -0
  13. package/Cascader/index.js +16 -0
  14. package/Checkbox/index.d.ts +21 -5
  15. package/Checkbox/index.js +3 -3
  16. package/CheckboxGroup/index.d.ts +5 -2
  17. package/CheckboxGroup/index.js +3 -3
  18. package/ColorPicker/index.js +1 -1
  19. package/ComboSelect/WithTabsCombo/index.d.ts +3 -2
  20. package/ComboSelect/WithTabsCombo/interface.d.ts +6 -1
  21. package/ComboSelect/index.d.ts +8 -7
  22. package/ComboSelect/index.js +5 -3
  23. package/ComboSelect/interface.d.ts +21 -15
  24. package/ComboSelect/utils.d.ts +5 -0
  25. package/Container/index.js +4 -3
  26. package/DatePicker/index.js +3 -3
  27. package/Desktop/index.js +5 -3
  28. package/Drawer/index.d.ts +10 -4
  29. package/Drawer/index.js +16 -1
  30. package/Drawer/interface.d.ts +63 -0
  31. package/Form/index.js +3 -3
  32. package/FormItem/compoments/formFile/index.d.ts +1 -0
  33. package/FormItem/index.d.ts +46 -45
  34. package/FormItem/index.js +3 -3
  35. package/FunctionModal/index.js +5 -3
  36. package/Help/index.js +2 -2
  37. package/IconList/index.js +4 -3
  38. package/InputLang/index.d.ts +3 -0
  39. package/InputLang/index.js +3 -3
  40. package/InputNumber/index.d.ts +8 -32
  41. package/InputNumber/index.js +3 -3
  42. package/Menu/footerExpansion.d.ts +4 -4
  43. package/Menu/index.d.ts +5 -4
  44. package/Menu/index.js +3 -3
  45. package/Menu/interface.d.ts +12 -125
  46. package/Menu/logo.d.ts +4 -4
  47. package/Menu/verticalMenuList.d.ts +4 -4
  48. package/Message/index.d.ts +8 -0
  49. package/Message/index.js +4 -3
  50. package/Modal/Confirm/index.d.ts +3 -4
  51. package/Modal/index.d.ts +9 -11
  52. package/Modal/index.js +3 -3
  53. package/MultiBox/index.d.ts +3 -0
  54. package/MultiBox/index.js +3 -3
  55. package/{Menu/horizontalMeunList.d.ts → PageHeader/horizontalMeun.d.ts} +2 -2
  56. package/{Menu → PageHeader}/horizontalMeunRight.d.ts +4 -4
  57. package/PageHeader/index.d.ts +10 -0
  58. package/PageHeader/index.js +16 -0
  59. package/PageHeader/interface.d.ts +165 -0
  60. package/Pagination/index.d.ts +6 -0
  61. package/Pagination/index.js +3 -3
  62. package/ParauiProvider/index.d.ts +1 -0
  63. package/ParauiProvider/index.js +3 -3
  64. package/PopConfirm/index.d.ts +8 -5
  65. package/PopConfirm/index.js +3 -3
  66. package/Popover/index.js +3 -3
  67. package/Radio/index.d.ts +22 -8
  68. package/Radio/index.js +3 -3
  69. package/RadioGroup/index.d.ts +8 -4
  70. package/RadioGroup/index.js +3 -3
  71. package/Search/index.d.ts +3 -0
  72. package/Search/index.js +3 -3
  73. package/Select/index.d.ts +5 -4
  74. package/Select/index.js +3 -3
  75. package/SingleBox/index.d.ts +6 -1
  76. package/SingleBox/index.js +3 -3
  77. package/Slider/index.d.ts +13 -2
  78. package/Slider/index.js +16 -1
  79. package/Slider/interface.d.ts +100 -0
  80. package/Split/index.js +4 -3
  81. package/Stepper/index.d.ts +1 -0
  82. package/Stepper/index.js +3 -3
  83. package/Styles/index.scss +7 -6
  84. package/Styles/normalize.scss +348 -0
  85. package/Styles/theme.scss +53 -0
  86. package/Switch/index.d.ts +52 -10
  87. package/Switch/index.js +3 -3
  88. package/Table/index.d.ts +1 -0
  89. package/Table/index.js +3 -3
  90. package/Table/tableBodyInterface.d.ts +1 -1
  91. package/Tabs/index.d.ts +9 -9
  92. package/Tabs/index.js +3 -3
  93. package/TextField/index.d.ts +4 -5
  94. package/TextField/index.js +3 -3
  95. package/TimePicker/index.js +3 -3
  96. package/Timeline/index.d.ts +8 -7
  97. package/Timeline/index.js +3 -3
  98. package/ToggleButton/ToggleButtonGroup.d.ts +44 -0
  99. package/ToggleButton/index.d.ts +44 -0
  100. package/ToggleButton/index.js +16 -0
  101. package/{ToolTip → Tooltip}/index.d.ts +4 -3
  102. package/Tooltip/index.js +16 -0
  103. package/Transfer/index.d.ts +17 -0
  104. package/Transfer/index.js +16 -0
  105. package/Tree/OperateBar/index.d.ts +11 -2
  106. package/Tree/index.d.ts +1 -0
  107. package/Tree/index.js +5 -3
  108. package/Tree/interface.d.ts +14 -10
  109. package/Tree/utils/closestPolyfill.d.ts +0 -0
  110. package/Tree/utils/tools.d.ts +2 -1
  111. package/Upload/Dragger/index.d.ts +10 -0
  112. package/Upload/ErroTip/index.d.ts +13 -0
  113. package/Upload/ImageUpload/index.d.ts +3 -5
  114. package/Upload/UploadList/index.d.ts +1 -0
  115. package/Upload/index.d.ts +11 -9
  116. package/Upload/index.js +3 -3
  117. package/Upload/interface.d.ts +22 -14
  118. package/index.d.ts +5 -1
  119. package/index.js +3 -3
  120. package/package.json +8 -2
  121. package/style.css +100 -0
  122. package/Breadcrumbs/theme.d.ts +0 -42
  123. package/Button/theme.d.ts +0 -216
  124. package/ButtonGroup/SplitButton.d.ts +0 -17
  125. package/Checkbox/iconMapping.d.ts +0 -2
  126. package/ComboSelect/styles.d.ts +0 -6
  127. package/Menu/horizontalMenu.d.ts +0 -9
  128. package/Menu/verticalFooter.d.ts +0 -9
  129. package/Menu/verticalMenu.d.ts +0 -9
  130. package/ParauiProvider/theme/paraTheme.d.ts +0 -3
  131. package/ParauiProvider/theme/styleConfig.d.ts +0 -74
  132. package/Radio/iconMapping.d.ts +0 -2
  133. package/Stepper/theme.d.ts +0 -56
  134. package/Tabs/theme.d.ts +0 -53
  135. package/ToolTip/index.js +0 -16
@@ -1,42 +0,0 @@
1
- declare const _default: {
2
- root: {
3
- display: string;
4
- padding: string;
5
- };
6
- ol: {
7
- flexWrap: string;
8
- };
9
- li: {
10
- '& a': {
11
- whiteSpace: string;
12
- fontSize: string;
13
- color: string;
14
- '&:hover': {
15
- textDecoration: string;
16
- color: string;
17
- };
18
- '& svg': {
19
- fontSize: string;
20
- position: string;
21
- top: string;
22
- marginRight: string;
23
- };
24
- };
25
- '& .current-breadcrumbs': {
26
- fontWeight: string;
27
- color: string;
28
- };
29
- '& .more-breadcrumbs': {
30
- '& svg': {
31
- fontSize: string;
32
- position: string;
33
- top: string;
34
- };
35
- };
36
- };
37
- separator: {
38
- marginLeft: string;
39
- marginRight: string;
40
- };
41
- };
42
- export default _default;
package/Button/theme.d.ts DELETED
@@ -1,216 +0,0 @@
1
- declare const _default: {
2
- root: {
3
- minWidth: number;
4
- height: number;
5
- textTransform: string;
6
- color: string;
7
- lineHeight: string;
8
- };
9
- disabled: {};
10
- label: {};
11
- text: {
12
- padding: string;
13
- '&:hover': {
14
- backgroundColor: string;
15
- color: string;
16
- };
17
- '&$disabled': {
18
- color: string;
19
- pointerEvents: string;
20
- cursor: string;
21
- };
22
- };
23
- textPrimary: {
24
- '&:hover': {
25
- backgroundColor: string;
26
- color: string;
27
- };
28
- '&$disabled': {
29
- color: string;
30
- pointerEvents: string;
31
- cursor: string;
32
- };
33
- };
34
- textSecondary: {
35
- color: string;
36
- };
37
- outlined: {
38
- padding: string;
39
- color: string;
40
- boxShadow: string;
41
- border: number;
42
- backgroundColor: string;
43
- '&$disabled': {
44
- color: string;
45
- padding: string;
46
- border: number;
47
- pointerEvents: string;
48
- cursor: string;
49
- };
50
- '&:hover': {
51
- color: string;
52
- backgroundColor: string;
53
- border: number;
54
- '&$disabled': {
55
- color: string;
56
- padding: string;
57
- backgroundColor: string;
58
- border: number;
59
- pointerEvents: string;
60
- cursor: string;
61
- };
62
- };
63
- };
64
- outlinedPrimary: {
65
- padding: string;
66
- color: string;
67
- border: number;
68
- '&$disabled': {
69
- color: string;
70
- padding: string;
71
- border: number;
72
- pointerEvents: string;
73
- cursor: string;
74
- };
75
- '&:hover': {
76
- color: string;
77
- backgroundColor: string;
78
- border: number;
79
- '&$disabled': {
80
- color: string;
81
- padding: string;
82
- backgroundColor: string;
83
- border: number;
84
- pointerEvents: string;
85
- cursor: string;
86
- };
87
- };
88
- };
89
- outlinedSecondary: {
90
- padding: string;
91
- color: string;
92
- border: number;
93
- '&$disabled': {
94
- color: string;
95
- padding: string;
96
- border: number;
97
- pointerEvents: string;
98
- cursor: string;
99
- };
100
- '&:hover': {
101
- color: string;
102
- backgroundColor: string;
103
- border: number;
104
- '&$disabled': {
105
- color: string;
106
- padding: string;
107
- backgroundColor: string;
108
- border: number;
109
- pointerEvents: string;
110
- cursor: string;
111
- };
112
- };
113
- };
114
- contained: {
115
- padding: string;
116
- backgroundColor: string;
117
- color: string;
118
- boxShadow: string;
119
- '&$disabled': {
120
- color: string;
121
- backgroundColor: string;
122
- pointerEvents: string;
123
- cursor: string;
124
- };
125
- '&:hover': {
126
- color: string;
127
- backgroundColor: string;
128
- boxShadow: string;
129
- '&$disabled': {
130
- color: string;
131
- backgroundColor: string;
132
- pointerEvents: string;
133
- cursor: string;
134
- };
135
- };
136
- };
137
- containedPrimary: {
138
- '&$disabled': {
139
- color: string;
140
- backgroundColor: string;
141
- pointerEvents: string;
142
- cursor: string;
143
- };
144
- '&:hover': {
145
- color: string;
146
- backgroundColor: string;
147
- boxShadow: string;
148
- '&$disabled': {
149
- color: string;
150
- backgroundColor: string;
151
- boxShadow: string;
152
- };
153
- };
154
- };
155
- containedSecondary: {};
156
- textSizeSmall: {};
157
- textSizeLarge: {};
158
- outlinedSizeSmall: {
159
- height: number;
160
- padding: string;
161
- };
162
- outlinedSizeLarge: {
163
- height: number;
164
- padding: string;
165
- };
166
- containedSizeSmall: {
167
- height: number;
168
- padding: string;
169
- };
170
- containedSizeLarge: {
171
- height: number;
172
- padding: string;
173
- };
174
- sizeSmall: {};
175
- sizeLarge: {};
176
- startIcon: {};
177
- endIcon: {};
178
- iconSizeSmall: {};
179
- iconSizeMedium: {};
180
- iconSizeLarge: {};
181
- };
182
- export default _default;
183
- export declare const MuiIconButton: {
184
- root: {
185
- padding: number;
186
- '&:hover': {
187
- backgroundColor: string;
188
- };
189
- '&$disabled': {
190
- color: string;
191
- pointerEvents: string;
192
- cursor: string;
193
- };
194
- };
195
- colorPrimary: {
196
- '&:hover': {
197
- backgroundColor: string;
198
- };
199
- '&$disabled': {
200
- color: string;
201
- pointerEvents: string;
202
- cursor: string;
203
- };
204
- };
205
- colorSecondary: {
206
- '&:hover': {
207
- backgroundColor: string;
208
- };
209
- '&$disabled': {
210
- color: string;
211
- pointerEvents: string;
212
- cursor: string;
213
- };
214
- };
215
- disabled: {};
216
- };
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { MenuItemProps } from '@material-ui/core';
3
- import { ButtonData } from "./index";
4
- import { CustomButtonProps } from "./index";
5
- export declare type ButtonSplitData = CustomButtonProps & MenuItemProps;
6
- interface SplitButtonProps {
7
- /**按钮组列表*/
8
- data: ButtonSplitData;
9
- /** cls*/
10
- className?: string;
11
- /** 禁用按钮组*/
12
- disabled?: boolean;
13
- /** onClick*/
14
- onClick?: (evt: any, data: ButtonData) => void;
15
- }
16
- export default function SplitButton(props: SplitButtonProps): JSX.Element;
17
- export {};
@@ -1,2 +0,0 @@
1
- declare const iconMapping: any;
2
- export default iconMapping;
@@ -1,6 +0,0 @@
1
- declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"comboSelect" | "comboPopover">;
2
- declare const anchorOriginEnum: {
3
- [index: string]: any;
4
- };
5
- export { anchorOriginEnum };
6
- export default useStyles;
@@ -1,9 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/10 15:31
4
- * @description 横向菜单
5
- */
6
- import { FunctionComponent } from 'react';
7
- import { MenuProps } from './interface';
8
- export declare const HorizontalMenu: FunctionComponent<MenuProps>;
9
- export default HorizontalMenu;
@@ -1,9 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/10 16:43
4
- * @description 竖向菜单尾部
5
- */
6
- import { FunctionComponent } from 'react';
7
- import { FooterProps } from './interface';
8
- export declare const VerticalFooter: FunctionComponent<FooterProps>;
9
- export default VerticalFooter;
@@ -1,9 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/10 16:58
4
- * @description 竖向菜单list
5
- */
6
- import { FunctionComponent } from 'react';
7
- import { MenuProps } from './interface';
8
- export declare const VerticalMenu: FunctionComponent<MenuProps>;
9
- export default VerticalMenu;
@@ -1,3 +0,0 @@
1
- import { ThemeOptions } from '@material-ui/core/styles';
2
- declare const _default: ThemeOptions;
3
- export default _default;
@@ -1,74 +0,0 @@
1
- export interface StyleConfigOptions {
2
- thmemColor: {
3
- primary: string;
4
- secondary: string;
5
- thirdary: string;
6
- };
7
- textColor: {
8
- primary: string;
9
- secondary: string;
10
- thirdary: string;
11
- white: string;
12
- };
13
- bgBorderColor: {
14
- bg1: string;
15
- bg2: string;
16
- bg3: string;
17
- bg4: string;
18
- line1: string;
19
- universal: string;
20
- };
21
- stateColor: {
22
- info: string;
23
- success: string;
24
- warning: string;
25
- error: string;
26
- };
27
- gradientColor: {
28
- gradient1: string;
29
- gradient2: string;
30
- gradient3: string;
31
- gradient4: string;
32
- gradient5: string;
33
- };
34
- fontFamily: {
35
- zh: string;
36
- en: string;
37
- };
38
- fontSize: number;
39
- borderRadius: number;
40
- boxShadow: string;
41
- buttonShadow: string;
42
- standardFont: {
43
- standardFont1: {
44
- fontSize: string;
45
- fontWeight: string;
46
- };
47
- standardFont2: {
48
- fontSize: string;
49
- fontWeight: string;
50
- };
51
- };
52
- titleFont: {
53
- titleFont1: {
54
- fontSize: string;
55
- fontWeight: string;
56
- };
57
- titleFont2: {
58
- fontSize: string;
59
- fontWeight: string;
60
- };
61
- };
62
- visualLargeFont: {
63
- visualLargeFont1: {
64
- fontSize: string;
65
- fontWeight: string;
66
- };
67
- visualLargeFont2: {
68
- fontSize: string;
69
- fontWeight: string;
70
- };
71
- };
72
- }
73
- declare const styleConfig: () => StyleConfigOptions;
74
- export default styleConfig;
@@ -1,2 +0,0 @@
1
- declare const iconMapping: any;
2
- export default iconMapping;
@@ -1,56 +0,0 @@
1
- declare const _default: {
2
- root: {};
3
- };
4
- export default _default;
5
- export declare const MuiStepConnector: {
6
- vertical: {
7
- padding: string;
8
- };
9
- alternativeLabel: {
10
- top: number;
11
- left: string;
12
- right: string;
13
- margin: string;
14
- };
15
- active: {
16
- '& $line': {
17
- border: number;
18
- height: number;
19
- backgroundColor: string;
20
- };
21
- };
22
- completed: {
23
- '& $line': {
24
- border: number;
25
- height: number;
26
- backgroundColor: string;
27
- };
28
- };
29
- line: {
30
- borderColor: string;
31
- borderRadius: number;
32
- borderTopStyle: string;
33
- };
34
- lineHorizontal: {
35
- borderTopStyle: string;
36
- };
37
- lineVertical: {
38
- minHeight: number;
39
- borderTop: number;
40
- borderLeftStyle: string;
41
- };
42
- };
43
- export declare const MuiStepLabel: {
44
- label: {
45
- color: string;
46
- '&$active': {
47
- color: string;
48
- };
49
- '&$completed': {
50
- color: string;
51
- };
52
- '&$alternativeLabel': {
53
- marginTop: string;
54
- };
55
- };
56
- };
package/Tabs/theme.d.ts DELETED
@@ -1,53 +0,0 @@
1
- declare const _default: {
2
- root: {
3
- position: string;
4
- boxSizing: string;
5
- minHeight: string;
6
- '&:before': {
7
- content: string;
8
- position: string;
9
- right: number;
10
- left: number;
11
- bottom: number;
12
- borderBottom: string;
13
- };
14
- };
15
- vertical: {
16
- '&:before': {
17
- right: number;
18
- top: number;
19
- bottom: number;
20
- borderBottom: number;
21
- borderRight: string;
22
- };
23
- };
24
- indicator: {
25
- display: string;
26
- justifyContent: string;
27
- backgroundColor: string;
28
- height: number;
29
- '& > span': {
30
- maxWidth: number;
31
- width: string;
32
- backgroundColor: string;
33
- };
34
- };
35
- };
36
- export default _default;
37
- export declare const MuiTab: {
38
- root: {
39
- color: string;
40
- '&$selected': {
41
- fontSize: string;
42
- fontWeight: string;
43
- };
44
- fontSize: string;
45
- fontWeight: string;
46
- position: string;
47
- height: number;
48
- minHeight: string;
49
- minWidth: string;
50
- textTransform: string;
51
- overflow: string;
52
- };
53
- };
package/ToolTip/index.js DELETED
@@ -1,16 +0,0 @@
1
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core")):"function"==typeof define&&define.amd?define(["react","@material-ui/core"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@material-ui/core")):e.ParaUI=r(e.react,e["@material-ui/core"])}(self,(function(e,r){return function(){"use strict";var t={4126:function(e){
2
- /*
3
- object-assign
4
- (c) Sindre Sorhus
5
- @license MIT
6
- */
7
- var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,u,c=o(e),f=1;f<arguments.length;f++){for(var l in a=Object(arguments[f]))t.call(a,l)&&(c[l]=a[l]);if(r){u=r(a);for(var p=0;p<u.length;p++)n.call(a,u[p])&&(c[u[p]]=a[u[p]])}}return c}},9524:function(e,r,t){
8
- /** @license React v17.0.2
9
- * react-jsx-runtime.production.min.js
10
- *
11
- * Copyright (c) Facebook, Inc. and its affiliates.
12
- *
13
- * This source code is licensed under the MIT license found in the
14
- * LICENSE file in the root directory of this source tree.
15
- */
16
- t(4126);var n=t(9297),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function f(e,r,t){var n,i={},f=null,l=null;for(n in void 0!==t&&(f=""+t),void 0!==r.key&&(f=""+r.key),void 0!==r.ref&&(l=r.ref),r)u.call(r,n)&&!c.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:f,ref:l,props:i,_owner:a.current}}r.jsx=f},7712:function(e,r,t){e.exports=t(9524)},1731:function(e){e.exports=r},9297:function(r){r.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,{a:r}),r},o.d=function(e,r){for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){o.r(i);var e=o(7712),r=o(1731),t=function(){return t=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},t.apply(this,arguments)};i.default=function(n){return(0,e.jsx)(r.Tooltip,t({},n),void 0)}}(),i}()}));