@para-ui/core 2.2.4 → 2.2.5-beta

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 (353) hide show
  1. package/AutoBox/index.d.ts +12 -6
  2. package/AutoBox/index.js +203 -15
  3. package/AutoTips/index.d.ts +12 -6
  4. package/AutoTips/index.js +84 -15
  5. package/Breadcrumbs/index.d.ts +13 -7
  6. package/Breadcrumbs/index.js +227 -15
  7. package/Button/index.d.ts +92 -11
  8. package/Button/index.js +348 -14
  9. package/ButtonGroup/index.d.ts +21 -9
  10. package/ButtonGroup/index.js +128 -14
  11. package/Carousel/index.d.ts +17 -11
  12. package/Carousel/index.js +74 -15
  13. package/Cascader/index.d.ts +12 -7
  14. package/Cascader/index.js +166 -15
  15. package/Checkbox/index.d.ts +13 -7
  16. package/Checkbox/index.js +105 -14
  17. package/CheckboxGroup/index.d.ts +15 -9
  18. package/CheckboxGroup/index.js +138 -14
  19. package/Collapse/index.d.ts +49 -14
  20. package/Collapse/index.js +171 -15
  21. package/CollapseBox/index.d.ts +11 -5
  22. package/CollapseBox/index.js +164 -15
  23. package/ColorPicker/index.d.ts +4 -4
  24. package/ColorPicker/index.js +4 -1
  25. package/ComboSelect/index.d.ts +306 -6
  26. package/ComboSelect/index.js +1803 -14
  27. package/Container/index.d.ts +13 -8
  28. package/Container/index.js +239 -15
  29. package/DatePicker/index.d.ts +30 -17
  30. package/DatePicker/index.js +733 -14
  31. package/Desktop/index.d.ts +14 -6
  32. package/Desktop/index.js +853 -14
  33. package/Drawer/index.d.ts +92 -6
  34. package/Drawer/index.js +186 -14
  35. package/Dropdown/index.d.ts +29 -0
  36. package/Dropdown/index.js +67 -0
  37. package/Empty/index.d.ts +16 -10
  38. package/Empty/index.js +644 -14
  39. package/Form/index.d.ts +11 -9
  40. package/Form/index.js +384 -14
  41. package/FormItem/index.d.ts +5 -152
  42. package/FormItem/index.js +81 -14
  43. package/FunctionModal/index.d.ts +14 -3
  44. package/FunctionModal/index.js +39 -14
  45. package/GlobalContext/index.d.ts +38 -8
  46. package/GlobalContext/index.js +41 -16
  47. package/Help/index.d.ts +16 -10
  48. package/Help/index.js +39 -15
  49. package/HelperText/index.d.ts +11 -5
  50. package/HelperText/index.js +29 -15
  51. package/InputLang/index.d.ts +13 -7
  52. package/InputLang/index.js +270 -14
  53. package/InputNumber/index.d.ts +16 -10
  54. package/InputNumber/index.js +308 -14
  55. package/Label/index.d.ts +12 -6
  56. package/Label/index.js +81 -14
  57. package/Loading/index.d.ts +12 -6
  58. package/Loading/index.js +47 -15
  59. package/Menu/index.d.ts +123 -5
  60. package/Menu/index.js +1232 -14
  61. package/Message/index.d.ts +11 -5
  62. package/Message/index.js +222 -15
  63. package/Modal/index.d.ts +142 -40
  64. package/Modal/index.js +443 -14
  65. package/MultiBox/index.d.ts +13 -7
  66. package/MultiBox/index.js +231 -14
  67. package/Notification/index.d.ts +22 -16
  68. package/Notification/index.js +266 -15
  69. package/OperateBtn/index.d.ts +16 -10
  70. package/OperateBtn/index.js +260 -14
  71. package/PageHeader/index.d.ts +178 -5
  72. package/PageHeader/index.js +1171 -14
  73. package/Pagination/index.d.ts +12 -6
  74. package/Pagination/index.js +469 -14
  75. package/ParauiProvider/index.d.ts +9 -8
  76. package/ParauiProvider/index.js +53 -15
  77. package/PopConfirm/index.d.ts +23 -10
  78. package/PopConfirm/index.js +189 -14
  79. package/Popover/index.d.ts +18 -11
  80. package/Popover/index.js +66 -15
  81. package/Progress/index.d.ts +18 -12
  82. package/Progress/index.js +358 -20
  83. package/Querying/index.d.ts +15 -9
  84. package/Querying/index.js +762 -14
  85. package/Radio/index.d.ts +13 -7
  86. package/Radio/index.js +94 -14
  87. package/RadioGroup/index.d.ts +15 -9
  88. package/RadioGroup/index.js +128 -14
  89. package/Search/index.d.ts +18 -12
  90. package/Search/index.js +220 -14
  91. package/Select/index.d.ts +13 -7
  92. package/Select/index.js +1288 -14
  93. package/SelectInput/index.d.ts +11 -5
  94. package/SelectInput/index.js +51 -14
  95. package/SingleBox/index.d.ts +13 -7
  96. package/SingleBox/index.js +194 -14
  97. package/Slider/index.d.ts +104 -7
  98. package/Slider/index.js +125 -15
  99. package/Split/index.d.ts +8 -3
  100. package/Split/index.js +134 -15
  101. package/Stepper/index.d.ts +41 -25
  102. package/Stepper/index.js +99 -15
  103. package/Switch/index.d.ts +16 -10
  104. package/Switch/index.js +73 -14
  105. package/Table/index.d.ts +12 -4
  106. package/Table/index.js +2725 -14
  107. package/Tabs/index.d.ts +64 -29
  108. package/Tabs/index.js +218 -14
  109. package/Tag/index.d.ts +78 -12
  110. package/Tag/index.js +286 -14
  111. package/Test/index.d.ts +3 -2
  112. package/Test/index.js +9 -16
  113. package/TextField/index.d.ts +22 -16
  114. package/TextField/index.js +686 -14
  115. package/TimePicker/index.d.ts +20 -10
  116. package/TimePicker/index.js +77 -14
  117. package/Timeline/index.d.ts +49 -13
  118. package/Timeline/index.js +150 -15
  119. package/ToggleButton/index.d.ts +61 -10
  120. package/ToggleButton/index.js +200 -14
  121. package/Tooltip/index.d.ts +12 -10
  122. package/Tooltip/index.js +335 -15
  123. package/Transfer/index.d.ts +8 -3
  124. package/Transfer/index.js +343 -14
  125. package/Tree/index.d.ts +8 -5
  126. package/Tree/index.js +35 -14
  127. package/Upload/index.d.ts +179 -8
  128. package/Upload/index.js +1542 -14
  129. package/_verture/defineProperty-0590dc61.js +16 -0
  130. package/_verture/index-0d8e1d07.js +4 -0
  131. package/_verture/index-14a47097.js +4 -0
  132. package/_verture/index-342379c6.js +391 -0
  133. package/_verture/index-458032d7.js +10 -0
  134. package/_verture/index-46bfb2f0.js +778 -0
  135. package/_verture/index-50401de7.js +4 -0
  136. package/_verture/index-5b08df83.js +4 -0
  137. package/_verture/index-6190b129.js +4 -0
  138. package/_verture/index-7ef1e3b6.js +1553 -0
  139. package/_verture/index-a369ca3f.js +4 -0
  140. package/_verture/index-c60911dc.js +39 -0
  141. package/_verture/index-e2881a53.js +16 -0
  142. package/_verture/index-ff4c2a27.js +200 -0
  143. package/{Tree/interface.d.ts → _verture/interface-128abdd3.js} +15 -25
  144. package/_verture/interface-a77a851e.js +25 -0
  145. package/{Table/interface.d.ts → _verture/interface-a9b7c716.js} +20 -28
  146. package/_verture/intl-336570e4.js +65 -0
  147. package/_verture/modalContext-25890584.js +228 -0
  148. package/_verture/modalContext-639f2787.js +58 -0
  149. package/_verture/slicedToArray-d7722f4b.js +62 -0
  150. package/_verture/style-inject.es-300983ab.js +28 -0
  151. package/_verture/toConsumableArray-f8047a75.js +19 -0
  152. package/_verture/tslib.es6-55ed4bd2.js +38 -0
  153. package/_verture/typeof-498dd2b1.js +11 -0
  154. package/_verture/useFormatMessage-ac9d6acf.js +20 -0
  155. package/_verture/useGlobalProps-af9a2af6.js +12 -0
  156. package/index.d.ts +88 -128
  157. package/index.js +160 -19
  158. package/package.json +59 -22
  159. package/Button/SplitButton.d.ts +0 -61
  160. package/Button/lang/en_US.d.ts +0 -4
  161. package/Button/lang/index.d.ts +0 -9
  162. package/Button/lang/zh_CN.d.ts +0 -4
  163. package/Cascader/lang/en_US.d.ts +0 -4
  164. package/Cascader/lang/index.d.ts +0 -9
  165. package/Cascader/lang/zh_CN.d.ts +0 -4
  166. package/Collapse/collapsePanel.d.ts +0 -30
  167. package/Collapse/motion.d.ts +0 -5
  168. package/Collapse/util.d.ts +0 -11
  169. package/CollapseBox/util.d.ts +0 -5
  170. package/ComboSelect/WithTabsCombo/index.d.ts +0 -11
  171. package/ComboSelect/WithTabsCombo/interface.d.ts +0 -141
  172. package/ComboSelect/interface.d.ts +0 -143
  173. package/ComboSelect/lang/en_US.d.ts +0 -8
  174. package/ComboSelect/lang/index.d.ts +0 -17
  175. package/ComboSelect/lang/zh_CN.d.ts +0 -8
  176. package/ComboSelect/utils.d.ts +0 -12
  177. package/DatePicker/PickerButton.d.ts +0 -3
  178. package/DatePicker/PickerTag.d.ts +0 -3
  179. package/DatePicker/generatePicker/generateRangePicker.d.ts +0 -4
  180. package/DatePicker/generatePicker/generateSinglePicker.d.ts +0 -11
  181. package/DatePicker/generatePicker/index.d.ts +0 -77
  182. package/DatePicker/lang/en_US.d.ts +0 -3
  183. package/DatePicker/lang/index.d.ts +0 -7
  184. package/DatePicker/lang/zh_CN.d.ts +0 -3
  185. package/DatePicker/util.d.ts +0 -20
  186. package/Drawer/interface.d.ts +0 -83
  187. package/Drawer/lang/en_US.d.ts +0 -5
  188. package/Drawer/lang/index.d.ts +0 -11
  189. package/Drawer/lang/zh_CN.d.ts +0 -5
  190. package/Empty/images/index.d.ts +0 -2
  191. package/Empty/lang/en_US.d.ts +0 -6
  192. package/Empty/lang/index.d.ts +0 -13
  193. package/Empty/lang/zh_CN.d.ts +0 -6
  194. package/FormItem/compoments/defaultCompoments/index.d.ts +0 -19
  195. package/FormItem/compoments/formCheckboxGroup/index.d.ts +0 -8
  196. package/FormItem/compoments/formFile/index.d.ts +0 -38
  197. package/FormItem/compoments/formRadioGroup/index.d.ts +0 -8
  198. package/FormItem/compoments/formSelect/index.d.ts +0 -18
  199. package/FormItem/errorTips.d.ts +0 -12
  200. package/FormItem/itemType.d.ts +0 -42
  201. package/FormItem/validateFunction.d.ts +0 -15
  202. package/FunctionModal/dialog.d.ts +0 -58
  203. package/FunctionModal/modalContext.d.ts +0 -14
  204. package/GlobalContext/componentsProps.d.ts +0 -19
  205. package/GlobalContext/confirmLocale.d.ts +0 -7
  206. package/GlobalContext/intl.d.ts +0 -34
  207. package/GlobalContext/useFormatMessage.d.ts +0 -3
  208. package/Hooks/useGlobalProps.d.ts +0 -1
  209. package/Menu/footerExpansion.d.ts +0 -9
  210. package/Menu/interface.d.ts +0 -139
  211. package/Menu/logo.d.ts +0 -9
  212. package/Menu/verticalMenuList.d.ts +0 -14
  213. package/Modal/Confirm/index.d.ts +0 -66
  214. package/Modal/lang/en_US.d.ts +0 -5
  215. package/Modal/lang/index.d.ts +0 -11
  216. package/Modal/lang/zh_CN.d.ts +0 -5
  217. package/OperateBtn/lang/en_US.d.ts +0 -4
  218. package/OperateBtn/lang/index.d.ts +0 -9
  219. package/OperateBtn/lang/zh_CN.d.ts +0 -4
  220. package/PageHeader/horizontalMeun.d.ts +0 -9
  221. package/PageHeader/horizontalMeunRight.d.ts +0 -9
  222. package/PageHeader/interface.d.ts +0 -167
  223. package/Pagination/lang/en_US.d.ts +0 -8
  224. package/Pagination/lang/index.d.ts +0 -17
  225. package/Pagination/lang/zh_CN.d.ts +0 -8
  226. package/PopConfirm/lang/en_US.d.ts +0 -5
  227. package/PopConfirm/lang/index.d.ts +0 -11
  228. package/PopConfirm/lang/zh_CN.d.ts +0 -5
  229. package/Popper/index.d.ts +0 -13
  230. package/Popper/index.js +0 -16
  231. package/Progress/Line.d.ts +0 -47
  232. package/Progress/Steps.d.ts +0 -17
  233. package/Progress/utils.d.ts +0 -6
  234. package/Querying/images/index.d.ts +0 -2
  235. package/Querying/lang/en_US.d.ts +0 -4
  236. package/Querying/lang/index.d.ts +0 -9
  237. package/Querying/lang/zh_CN.d.ts +0 -4
  238. package/README.md +0 -489
  239. package/Select/lang/en_US.d.ts +0 -5
  240. package/Select/lang/index.d.ts +0 -11
  241. package/Select/lang/zh_CN.d.ts +0 -5
  242. package/Slider/interface.d.ts +0 -102
  243. package/Stepper/icons.d.ts +0 -5
  244. package/Table/lang/en_US.d.ts +0 -6
  245. package/Table/lang/index.d.ts +0 -13
  246. package/Table/lang/zh_CN.d.ts +0 -6
  247. package/Table/tableBody.d.ts +0 -9
  248. package/Table/tableBodyElement/index.d.ts +0 -15
  249. package/Table/tableBodyInterface.d.ts +0 -67
  250. package/Table/tableContainer/index.d.ts +0 -16
  251. package/Table/tableElement/index.d.ts +0 -17
  252. package/Table/tableHead.d.ts +0 -9
  253. package/Table/tableHeadElement/index.d.ts +0 -15
  254. package/Table/tableHeadInterface.d.ts +0 -30
  255. package/Table/tablePagination.d.ts +0 -9
  256. package/Table/tablePaginationInterFace.d.ts +0 -24
  257. package/Table/tdElement/index.d.ts +0 -15
  258. package/Table/thElement/index.d.ts +0 -15
  259. package/Table/trElement/index.d.ts +0 -15
  260. package/Table/util.d.ts +0 -16
  261. package/Tag/TagGroup.d.ts +0 -66
  262. package/TimePicker/locale/en_US.d.ts +0 -3
  263. package/TimePicker/locale/zh_CN.d.ts +0 -3
  264. package/TimePicker/style/index.d.ts +0 -1
  265. package/ToggleButton/ToggleButtonGroup.d.ts +0 -49
  266. package/Transfer/lang/en_US.d.ts +0 -6
  267. package/Transfer/lang/index.d.ts +0 -13
  268. package/Transfer/lang/zh_CN.d.ts +0 -6
  269. package/Tree/OperateBar/index.d.ts +0 -13
  270. package/Tree/Tree.d.ts +0 -4
  271. package/Tree/lang/en_US.d.ts +0 -8
  272. package/Tree/lang/index.d.ts +0 -17
  273. package/Tree/lang/zh_CN.d.ts +0 -8
  274. package/Tree/utils/closestPolyfill.d.ts +0 -0
  275. package/Tree/utils/tools.d.ts +0 -26
  276. package/Tree/utils/treeUtil.d.ts +0 -15
  277. package/Upload/Dragger/index.d.ts +0 -10
  278. package/Upload/ErroTip/index.d.ts +0 -13
  279. package/Upload/ImageUpload/index.d.ts +0 -14
  280. package/Upload/ImgCrop/EasyCrop.d.ts +0 -17
  281. package/Upload/ImgCrop/constants.d.ts +0 -7
  282. package/Upload/ImgCrop/index.d.ts +0 -6
  283. package/Upload/ImgCrop/interface.d.ts +0 -24
  284. package/Upload/UploadList/index.d.ts +0 -5
  285. package/Upload/interface.d.ts +0 -134
  286. package/Upload/lang/en_US.d.ts +0 -12
  287. package/Upload/lang/index.d.ts +0 -25
  288. package/Upload/lang/zh_CN.d.ts +0 -12
  289. package/cdn/AutoBox/index.js +0 -29
  290. package/cdn/AutoTips/index.js +0 -40
  291. package/cdn/Breadcrumbs/index.js +0 -53
  292. package/cdn/Button/index.js +0 -79
  293. package/cdn/ButtonGroup/index.js +0 -79
  294. package/cdn/Carousel/index.js +0 -6
  295. package/cdn/Cascader/index.js +0 -42
  296. package/cdn/Checkbox/index.js +0 -53
  297. package/cdn/CheckboxGroup/index.js +0 -53
  298. package/cdn/Collapse/index.js +0 -27
  299. package/cdn/CollapseBox/index.js +0 -1
  300. package/cdn/ColorPicker/index.js +0 -1
  301. package/cdn/ComboSelect/index.js +0 -438
  302. package/cdn/Container/index.js +0 -1
  303. package/cdn/DatePicker/index.js +0 -185
  304. package/cdn/Desktop/index.js +0 -24
  305. package/cdn/Drawer/index.js +0 -84
  306. package/cdn/Empty/index.js +0 -1
  307. package/cdn/Form/index.js +0 -477
  308. package/cdn/FormItem/index.js +0 -477
  309. package/cdn/FunctionModal/index.js +0 -144
  310. package/cdn/GlobalContext/index.js +0 -1
  311. package/cdn/Help/index.js +0 -53
  312. package/cdn/HelperText/index.js +0 -1
  313. package/cdn/InputLang/index.js +0 -144
  314. package/cdn/InputNumber/index.js +0 -118
  315. package/cdn/Label/index.js +0 -53
  316. package/cdn/Loading/index.js +0 -14
  317. package/cdn/Menu/index.js +0 -40
  318. package/cdn/Message/index.js +0 -53
  319. package/cdn/Modal/index.js +0 -144
  320. package/cdn/MultiBox/index.js +0 -131
  321. package/cdn/Notification/index.js +0 -66
  322. package/cdn/OperateBtn/index.js +0 -92
  323. package/cdn/PageHeader/index.js +0 -92
  324. package/cdn/Pagination/index.js +0 -214
  325. package/cdn/ParauiProvider/index.js +0 -9
  326. package/cdn/PopConfirm/index.js +0 -131
  327. package/cdn/Popover/index.js +0 -16
  328. package/cdn/Popper/index.js +0 -26
  329. package/cdn/Progress/index.js +0 -58
  330. package/cdn/Querying/index.js +0 -1
  331. package/cdn/Radio/index.js +0 -53
  332. package/cdn/RadioGroup/index.js +0 -53
  333. package/cdn/Search/index.js +0 -144
  334. package/cdn/Select/index.js +0 -131
  335. package/cdn/SelectInput/index.js +0 -131
  336. package/cdn/SingleBox/index.js +0 -131
  337. package/cdn/Slider/index.js +0 -16
  338. package/cdn/Split/index.js +0 -1
  339. package/cdn/Stepper/index.js +0 -154
  340. package/cdn/Switch/index.js +0 -71
  341. package/cdn/Table/index.js +0 -292
  342. package/cdn/Tabs/index.js +0 -165
  343. package/cdn/Tag/index.js +0 -27
  344. package/cdn/Test/index.js +0 -1
  345. package/cdn/TextField/index.js +0 -105
  346. package/cdn/TimePicker/index.js +0 -185
  347. package/cdn/Timeline/index.js +0 -16
  348. package/cdn/ToggleButton/index.js +0 -79
  349. package/cdn/Tooltip/index.js +0 -40
  350. package/cdn/Transfer/index.js +0 -170
  351. package/cdn/Tree/index.js +0 -170
  352. package/cdn/Upload/index.js +0 -252
  353. package/style.css +0 -72
@@ -1,139 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/10 14:24
4
- * @description 菜单参数
5
- */
6
- import React, { ReactNode } from 'react';
7
- /** 菜单类型 */
8
- export declare type MenuListTypeType = 'redirect' | 'router' | "iframe" | "snack" | "snackPage";
9
- /** color类型 */
10
- export declare type ColorType = 'deep' | 'light';
11
- /** logo参数 */
12
- export interface LogoProps {
13
- /** 展开 / 收起 */
14
- expansion?: boolean;
15
- /** 自定义内容 */
16
- render?: ReactNode;
17
- /** 样式class */
18
- className?: string;
19
- }
20
- /** 菜单列表项参数 */
21
- export interface MenuChildrenProps {
22
- /** 样式class */
23
- className?: string;
24
- /** 菜单名 */
25
- label?: ReactNode;
26
- /** 菜单类型 */
27
- type?: MenuListTypeType;
28
- /** 菜单路径 */
29
- path?: string;
30
- /** 菜单图标 */
31
- icon?: ReactNode;
32
- /** 菜单组件 */
33
- component?: any;
34
- /** 子菜单 */
35
- children?: MenuChildrenProps[];
36
- /** 菜单最后一层所有上下级 一条线 */
37
- idMenuLast?: any;
38
- /** 当前选中菜单 */
39
- selectMenu?: string;
40
- /** 点击菜单 */
41
- onClickMenu?: (item: MenuChildrenProps | false) => void;
42
- /** 选中菜单,是否收起其他展开项 */
43
- shrinkOthers?: boolean;
44
- /** 唯一值,内部属性,自动生成 */
45
- _paraui_menu_id?: string;
46
- /** 是否第一级 */
47
- _paraui_menu_first?: boolean;
48
- [name: string]: any;
49
- }
50
- /** 菜单列表参数 */
51
- export interface MenuListProps {
52
- /** 颜色 */
53
- color?: ColorType;
54
- /** 展开 / 收起 */
55
- expansion?: boolean;
56
- /** 菜单列表参数 */
57
- list?: MenuChildrenProps[];
58
- /** 当前选中菜单 */
59
- selectMenu?: string;
60
- /** 点击菜单 */
61
- onClickMenu?: (item: MenuChildrenProps | false) => void;
62
- /** 样式class */
63
- className?: string;
64
- /** 选中菜单,是否收起其他展开项 */
65
- shrinkOthers?: boolean;
66
- [name: string]: any;
67
- }
68
- /** 弹出菜单 */
69
- export interface MenuItemPopoverProps {
70
- /** 打开 */
71
- open?: boolean;
72
- /** 定位元素, 自定义属性 paraui-menu-id */
73
- anchorEl?: string;
74
- /** 菜单列表 */
75
- list?: MenuChildrenProps[];
76
- /** 菜单最后一层所有上下级 一条线 */
77
- idMenuLast?: any;
78
- /** 当前选中菜单 */
79
- selectMenu?: string;
80
- /** 点击菜单 */
81
- onClickMenu?: (item: MenuChildrenProps | false) => void;
82
- /** 层级 */
83
- level?: number;
84
- /** 鼠标移入 */
85
- onMouseEnter?: Function;
86
- /** 鼠标移出 */
87
- onMouseLeave: Function;
88
- onMouseEnterBus?: Function;
89
- onMouseLeaveBus?: Function;
90
- /** 主题色 */
91
- color?: ColorType;
92
- className?: string;
93
- [name: string]: any;
94
- }
95
- /** 尾部展开 */
96
- export interface FooterExpansionProps {
97
- /** 是否展开 */
98
- expansion?: boolean;
99
- /** 展开图标 */
100
- expandIcon?: ReactNode;
101
- /** 收起图标 */
102
- shrinkIcon?: ReactNode;
103
- /** 自定义尾部 */
104
- render?: ReactNode;
105
- /** 样式class */
106
- className?: string;
107
- /** 展开事件 */
108
- clickExpansion?: (bol: boolean) => void;
109
- /** 版本号 */
110
- version?: ReactNode;
111
- [name: string]: any;
112
- }
113
- /** 菜单参数 */
114
- export interface MenuProps {
115
- /** 样式class */
116
- className?: string;
117
- /** style */
118
- style?: React.CSSProperties;
119
- /** 颜色 */
120
- color?: ColorType;
121
- /** 展开 / 收起 */
122
- expansion?: boolean;
123
- /** 当前选中菜单 */
124
- selectMenu?: string;
125
- /** 选中菜单,是否收起其他展开项 */
126
- shrinkOthers?: boolean;
127
- /** 显示收缩按钮 */
128
- showExpansion?: boolean;
129
- /** logo配置 */
130
- logoProps?: LogoProps;
131
- /** 菜单配置 */
132
- menuListProps?: MenuListProps;
133
- /** 尾部展开参数 */
134
- footerExpansionProps?: FooterExpansionProps;
135
- /** 展开事件 */
136
- onClickExpansion?: (bol: boolean) => void;
137
- /** 点击菜单 */
138
- onClickMenu?: (item: MenuChildrenProps | false) => void;
139
- }
package/Menu/logo.d.ts DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/10 16:35
4
- * @description 菜单图标
5
- */
6
- import { FunctionComponent } from 'react';
7
- import { LogoProps } from './interface';
8
- export declare const Logo: FunctionComponent<LogoProps>;
9
- export default Logo;
@@ -1,14 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/10 17:54
4
- * @description 竖向菜单
5
- */
6
- import { FunctionComponent } from 'react';
7
- import { MenuListProps } from './interface';
8
- /** 上下箭头 */
9
- export declare type FlipDisable = {
10
- prev: boolean;
11
- next: boolean;
12
- };
13
- export declare const VerticalMenuList: FunctionComponent<MenuListProps>;
14
- export default VerticalMenuList;
@@ -1,66 +0,0 @@
1
- import { FunctionComponent, ReactNode } from "react";
2
- import { ButtonProps } from "../../Button";
3
- import './index.scss';
4
- declare type ConfirmType = "success" | "info" | "error" | "warn" | "warning";
5
- interface InternalConfirmProps {
6
- /**图标类型*/
7
- type?: ConfirmType;
8
- /**打开*/
9
- open?: boolean;
10
- /**标题*/
11
- title?: ReactNode;
12
- /**内容*/
13
- content?: ReactNode;
14
- /**自定义图标*/
15
- icon?: ReactNode;
16
- /**ok文本*/
17
- okText?: string;
18
- /**cancel文本*/
19
- cancelText?: string;
20
- /**底部操作栏*/
21
- actions?: ReactNode;
22
- /**是否显示actions*/
23
- showActions?: boolean;
24
- /**确定回调*/
25
- onOk?: Function;
26
- /**取消回调*/
27
- onCancel?: Function;
28
- /**cls*/
29
- className?: string;
30
- /**confirm 宽度*/
31
- width?: string | number;
32
- /**显示取消按钮*/
33
- showCancel?: boolean;
34
- /**显示关闭按钮*/
35
- closable?: boolean;
36
- /**禁用backdrop点击*/
37
- disableBackdropClick?: boolean;
38
- /**禁用esc键*/
39
- disableEscapeKeyDown?: boolean;
40
- /**确定按钮属性*/
41
- okButtonProps?: ButtonProps;
42
- /**取消按钮属性*/
43
- cancelButtonProps?: ButtonProps;
44
- /**promise resolve*/
45
- resolveFn?: Function;
46
- /**确定时回调*/
47
- callback?: Function;
48
- /**销毁方法*/
49
- destroy?: Function;
50
- }
51
- export declare const InternalConfirm: FunctionComponent<InternalConfirmProps>;
52
- declare type ConfirmProps = Omit<InternalConfirmProps, 'open' | 'resolveFn' | 'destroy' | 'callback'> & {
53
- uuid?: string;
54
- };
55
- interface ConfirmFn {
56
- (config: ConfirmProps | string, callback?: Function): void | Promise<any>;
57
- }
58
- export interface ConfirmObject {
59
- info: ConfirmFn;
60
- warn: ConfirmFn;
61
- error: ConfirmFn;
62
- success: ConfirmFn;
63
- destroyAll?: (uuid?: string) => void;
64
- }
65
- export declare const Confirm: ConfirmObject;
66
- export {};
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- cancel: string;
3
- ok: string;
4
- };
5
- export default _default;
@@ -1,11 +0,0 @@
1
- declare const _default: {
2
- zh: {
3
- cancel: string;
4
- ok: string;
5
- };
6
- en: {
7
- cancel: string;
8
- ok: string;
9
- };
10
- };
11
- export default _default;
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- cancel: string;
3
- ok: string;
4
- };
5
- export default _default;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- more: string;
3
- };
4
- export default _default;
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- zh: {
3
- more: string;
4
- };
5
- en: {
6
- more: string;
7
- };
8
- };
9
- export default _default;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- more: string;
3
- };
4
- export default _default;
@@ -1,9 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/10 15:34
4
- * @description 横向菜单详情list
5
- */
6
- import { FunctionComponent } from 'react';
7
- import { MenuListProps } from './interface';
8
- export declare const HorizontalMenu: FunctionComponent<MenuListProps>;
9
- export default HorizontalMenu;
@@ -1,9 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/10 16:16
4
- * @description 横向菜单右侧
5
- */
6
- import { FunctionComponent } from 'react';
7
- import { FooterProps } from './interface';
8
- export declare const HorizontalMeunRight: FunctionComponent<FooterProps>;
9
- export default HorizontalMeunRight;
@@ -1,167 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/10 14:24
4
- * @description 菜单参数
5
- */
6
- import React, { ReactNode } from 'react';
7
- /** 菜单类型 */
8
- export declare type MenuListTypeType = 'redirect' | 'router' | "iframe" | "snack" | "snackPage";
9
- /** 菜单列表项参数 */
10
- export interface MenuChildrenProps {
11
- /** 样式class */
12
- className?: string;
13
- /** 菜单名 */
14
- label?: ReactNode;
15
- /** 菜单类型 */
16
- type?: MenuListTypeType;
17
- /** 菜单路径 */
18
- path?: string;
19
- /** 菜单图标 */
20
- icon?: ReactNode;
21
- /** 菜单组件 */
22
- component?: any;
23
- /** 子菜单 */
24
- children?: MenuChildrenProps[];
25
- /** 菜单最后一层所有上下级 一条线 */
26
- idMenuLast?: any;
27
- /** 当前选中菜单 */
28
- selectMenu?: string;
29
- /** 点击菜单 */
30
- onClickMenu?: (item: MenuChildrenProps | false) => void;
31
- [name: string]: any;
32
- }
33
- /** 菜单列表参数 */
34
- export interface MenuListProps {
35
- /** 菜单列表参数 */
36
- list?: MenuChildrenProps[];
37
- /** 当前选中菜单 */
38
- selectMenu?: string;
39
- /** 点击菜单 */
40
- onClickMenu?: (item: MenuChildrenProps | false) => void;
41
- /** 样式class */
42
- className?: string;
43
- /** 自定义更多内容 */
44
- moreCustomize?: ReactNode;
45
- [name: string]: any;
46
- }
47
- /** 语言 */
48
- export interface LanguageItemProps {
49
- /** 图标 */
50
- icon?: ReactNode;
51
- /** 文字 */
52
- label?: ReactNode;
53
- /** 值 */
54
- value?: string;
55
- [name: string]: any;
56
- }
57
- /** 语言 */
58
- export interface LanguageProps {
59
- /** 样式class */
60
- className?: string;
61
- /** 当前选中的语言 */
62
- selectLang?: string;
63
- /** 语言列表 */
64
- language?: LanguageItemProps[];
65
- /** 点击下拉语言 */
66
- onClick?: (val: any, item: LanguageItemProps) => void;
67
- /** 自定义 */
68
- render?: ReactNode;
69
- }
70
- export interface BackSelfcareProps {
71
- /** 图标 */
72
- icon?: ReactNode;
73
- /** 标题 */
74
- label?: ReactNode;
75
- /** 自定义 */
76
- render?: ReactNode;
77
- /** 样式class */
78
- className?: string;
79
- /** 点击事件 */
80
- onClick?: (e: any) => void;
81
- }
82
- /** 按钮listItem */
83
- export interface BtnListItemProps {
84
- /** 图标 */
85
- icon?: ReactNode;
86
- /** 标题 */
87
- label?: ReactNode;
88
- /** 值 */
89
- value?: string;
90
- /** 标记 */
91
- sign?: boolean;
92
- [name: string]: any;
93
- }
94
- /** 按钮列表 */
95
- export interface BtnListProps {
96
- /** 按钮list */
97
- list?: BtnListItemProps[];
98
- /** 自定义 */
99
- render?: ReactNode;
100
- /** 样式class */
101
- className?: string;
102
- /** 点击事件 */
103
- onClick?: (item: BtnListItemProps, e: any) => void;
104
- }
105
- /** 用户下拉菜单 */
106
- export interface UserListProps {
107
- /** 图标 */
108
- icon?: ReactNode;
109
- /** 标题 */
110
- label?: ReactNode;
111
- /** 值 */
112
- value?: string;
113
- [name: string]: any;
114
- }
115
- /** 用户信息 */
116
- export interface UserProps {
117
- /** 样式class */
118
- className?: string;
119
- /** 图片地址 */
120
- img?: string;
121
- /** imgRender */
122
- imgRender?: ReactNode;
123
- /** 显示名 */
124
- label?: ReactNode;
125
- /** 自定义 */
126
- render?: ReactNode;
127
- /** 下拉菜单选中的值 */
128
- selectValue?: any;
129
- /** 下拉菜单 */
130
- list?: UserListProps[];
131
- /** 点击用户 */
132
- onClick?: (e: any) => void;
133
- /** 点击下拉菜单 */
134
- onClickMenu?: (val: any, item: UserListProps) => void;
135
- }
136
- /** 尾部导航 */
137
- export interface FooterProps {
138
- /** 样式class */
139
- className?: string;
140
- /** 返回自助参数 */
141
- backSelfcareProps?: BackSelfcareProps;
142
- /** 语言参数 */
143
- languageProps?: LanguageProps;
144
- /** 按钮list */
145
- btnListProps?: BtnListProps;
146
- /** 用户参数 */
147
- userProps?: UserProps;
148
- /** 自定义 */
149
- render?: ReactNode;
150
- }
151
- /** 菜单参数 */
152
- export interface PageHeaderProps {
153
- /** 样式class */
154
- className?: string;
155
- /** style */
156
- style?: React.CSSProperties;
157
- /** 当前选中菜单 */
158
- selectMenu?: string;
159
- /** 左侧自定义内容 */
160
- leftRender?: ReactNode;
161
- /** 菜单配置 */
162
- menuListProps?: MenuListProps;
163
- /** 右侧参数 */
164
- footerProps?: FooterProps;
165
- /** 点击菜单 */
166
- onClickMenu?: (item: MenuChildrenProps | false) => void;
167
- }
@@ -1,8 +0,0 @@
1
- declare const _default: {
2
- total: string;
3
- linePerPage: string;
4
- currentPage: string;
5
- jumpTo: string;
6
- page: string;
7
- };
8
- export default _default;
@@ -1,17 +0,0 @@
1
- declare const _default: {
2
- zh: {
3
- total: string;
4
- linePerPage: string;
5
- currentPage: string;
6
- jumpTo: string;
7
- page: string;
8
- };
9
- en: {
10
- total: string;
11
- linePerPage: string;
12
- currentPage: string;
13
- jumpTo: string;
14
- page: string;
15
- };
16
- };
17
- export default _default;
@@ -1,8 +0,0 @@
1
- declare const _default: {
2
- total: string;
3
- linePerPage: string;
4
- currentPage: string;
5
- jumpTo: string;
6
- page: string;
7
- };
8
- export default _default;
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- cancel: string;
3
- ok: string;
4
- };
5
- export default _default;
@@ -1,11 +0,0 @@
1
- declare const _default: {
2
- zh: {
3
- cancel: string;
4
- ok: string;
5
- };
6
- en: {
7
- cancel: string;
8
- ok: string;
9
- };
10
- };
11
- export default _default;
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- cancel: string;
3
- ok: string;
4
- };
5
- export default _default;
package/Popper/index.d.ts DELETED
@@ -1,13 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/12 18:25
4
- * @description 弹出框
5
- */
6
- import { FunctionComponent } from 'react';
7
- import { PopperProps as MuiPopperProps } from '@material-ui/core';
8
- export interface PopperProps extends MuiPopperProps {
9
- /** 样式class */
10
- className?: string;
11
- }
12
- export declare const Popper: FunctionComponent<PopperProps>;
13
- export default Popper;
package/Popper/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={7418: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,a){for(var i,c,u=o(e),f=1;f<arguments.length;f++){for(var p in i=Object(arguments[f]))t.call(i,p)&&(u[p]=i[p]);if(r){c=r(i);for(var l=0;l<c.length;l++)n.call(i,c[l])&&(u[c[l]]=i[c[l]])}}return u}},5251: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(7418);var n=t(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),a("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function f(e,r,t){var n,a={},f=null,p=null;for(n in void 0!==t&&(f=""+t),void 0!==r.key&&(f=""+r.key),void 0!==r.ref&&(p=r.ref),r)c.call(r,n)&&!u.hasOwnProperty(n)&&(a[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===a[n]&&(a[n]=r[n]);return{$$typeof:o,type:e,key:f,ref:p,props:a,_owner:i.current}}r.jsx=f},5893:function(e,r,t){e.exports=t(5251)},670:function(e){e.exports=r},8156:function(r){r.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.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 a={};return function(){o.r(a),o.d(a,{Popper:function(){return i}});var e=o(5893),r=o(670),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)},n=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t},i=function(o){var a,i=o.className,c=o.children,u=n(o,["className","children"]);return(0,e.jsx)(r.Popper,t({className:(a="paraui-popper",i&&(a+=" "+i),a)},u,{children:c}))};a.default=i}(),a}()}));
@@ -1,47 +0,0 @@
1
- /**
2
- * @author jill
3
- * @date 2022/3/10 18:25
4
- * @description 线性进度条
5
- */
6
- import * as React from "react";
7
- import { ProgressProps, StringGradients, DirectionType } from "./index";
8
- interface LineProps extends ProgressProps {
9
- direction?: DirectionType;
10
- children: React.ReactNode;
11
- }
12
- /**
13
- * 转换 百分比 到 样式格式
14
- * {
15
- * "0%": "#afc163",
16
- * "75%": "#009900",
17
- * "50%": "green", // ====> '#afc163 0%, #66FF00 25%, #00CC00 50%, #009900 75%, #ffffff 100%'
18
- * "25%": "#66FF00",
19
- * "100%": "#ffffff"
20
- * }
21
- * @param gradients 渐变的参数
22
- * @return {string} 样式值
23
- */
24
- export declare const sortGradient: (gradients: StringGradients) => string;
25
- /**
26
- * 转换传进来 渐变的参数 为css样式
27
- * {
28
- * "0%": "#afc163",
29
- * "25%": "#66FF00",
30
- * "50%": "#00CC00", // ====> linear-gradient(to right, #afc163 0%, #66FF00 25%,
31
- * "75%": "#009900", // #00CC00 50%, #009900 75%, #ffffff 100%)
32
- * "100%": "#ffffff"
33
- * }
34
- *
35
- * {
36
- * "from": "#afc163",
37
- * "to": "#66FF00",// ====> linear-gradient(to right, #afc163, #66FF00)
38
- * }
39
- *
40
- * @param {string} strokeColor 颜色值
41
- * @return 返回 backgroundImage 的样式值
42
- */
43
- export declare const handleGradient: (strokeColor: any, directionConfig: DirectionType) => {
44
- backgroundImage: string;
45
- };
46
- declare const Line: React.FC<LineProps>;
47
- export default Line;
@@ -1,17 +0,0 @@
1
- /**
2
- * @author jill
3
- * @date 2022/3/10 18:25
4
- * @description 进度条的步骤条
5
- */
6
- import * as React from "react";
7
- import { ProgressProps } from "./index";
8
- interface StepsProps extends ProgressProps {
9
- /** 一共有多少步 **/
10
- steps: number;
11
- /** 进度条高亮部分颜色配置 **/
12
- strokeColor?: string;
13
- /** 进度条轨道部分颜色配置 **/
14
- trailColor?: string;
15
- }
16
- declare const Steps: React.FC<StepsProps>;
17
- export default Steps;
@@ -1,6 +0,0 @@
1
- /**
2
- * 判断进度条传的百分比参数是否规范
3
- * @param {number | undefined} progress 方法入参说明
4
- * @return {numner} 百分比值
5
- */
6
- export declare function validProgress(progress: number | number[] | undefined): number | number[];
@@ -1,2 +0,0 @@
1
- export declare const LargeSearch: () => JSX.Element;
2
- export declare const SmallSearch: () => JSX.Element;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- querying: string;
3
- };
4
- export default _default;
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- zh: {
3
- querying: string;
4
- };
5
- en: {
6
- querying: string;
7
- };
8
- };
9
- export default _default;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- querying: string;
3
- };
4
- export default _default;