@para-ui/core 2.2.5-beta → 2.2.7

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 +6 -12
  2. package/AutoBox/index.js +15 -203
  3. package/AutoTips/index.d.ts +6 -12
  4. package/AutoTips/index.js +15 -84
  5. package/Breadcrumbs/index.d.ts +7 -13
  6. package/Breadcrumbs/index.js +15 -227
  7. package/Button/SplitButton.d.ts +61 -0
  8. package/Button/index.d.ts +11 -92
  9. package/Button/index.js +14 -348
  10. package/Button/lang/en_US.d.ts +4 -0
  11. package/Button/lang/index.d.ts +9 -0
  12. package/Button/lang/zh_CN.d.ts +4 -0
  13. package/ButtonGroup/index.d.ts +9 -21
  14. package/ButtonGroup/index.js +14 -128
  15. package/Carousel/index.d.ts +11 -17
  16. package/Carousel/index.js +15 -74
  17. package/Cascader/index.d.ts +7 -12
  18. package/Cascader/index.js +15 -166
  19. package/Cascader/lang/en_US.d.ts +4 -0
  20. package/Cascader/lang/index.d.ts +9 -0
  21. package/Cascader/lang/zh_CN.d.ts +4 -0
  22. package/Checkbox/index.d.ts +7 -13
  23. package/Checkbox/index.js +14 -105
  24. package/CheckboxGroup/index.d.ts +9 -15
  25. package/CheckboxGroup/index.js +14 -138
  26. package/Collapse/collapsePanel.d.ts +30 -0
  27. package/Collapse/index.d.ts +14 -49
  28. package/Collapse/index.js +15 -171
  29. package/Collapse/motion.d.ts +5 -0
  30. package/Collapse/util.d.ts +11 -0
  31. package/CollapseBox/index.d.ts +5 -11
  32. package/CollapseBox/index.js +15 -164
  33. package/CollapseBox/util.d.ts +5 -0
  34. package/ColorPicker/index.d.ts +4 -4
  35. package/ColorPicker/index.js +1 -4
  36. package/ComboSelect/WithTabsCombo/index.d.ts +11 -0
  37. package/ComboSelect/WithTabsCombo/interface.d.ts +141 -0
  38. package/ComboSelect/index.d.ts +6 -306
  39. package/ComboSelect/index.js +14 -1803
  40. package/ComboSelect/interface.d.ts +143 -0
  41. package/ComboSelect/lang/en_US.d.ts +8 -0
  42. package/ComboSelect/lang/index.d.ts +17 -0
  43. package/ComboSelect/lang/zh_CN.d.ts +8 -0
  44. package/ComboSelect/utils.d.ts +12 -0
  45. package/Container/index.d.ts +8 -13
  46. package/Container/index.js +15 -239
  47. package/DatePicker/PickerButton.d.ts +3 -0
  48. package/DatePicker/PickerTag.d.ts +3 -0
  49. package/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
  50. package/DatePicker/generatePicker/generateSinglePicker.d.ts +11 -0
  51. package/DatePicker/generatePicker/index.d.ts +77 -0
  52. package/DatePicker/index.d.ts +17 -30
  53. package/DatePicker/index.js +14 -733
  54. package/DatePicker/lang/en_US.d.ts +3 -0
  55. package/DatePicker/lang/index.d.ts +7 -0
  56. package/DatePicker/lang/zh_CN.d.ts +3 -0
  57. package/DatePicker/util.d.ts +20 -0
  58. package/Desktop/index.d.ts +6 -14
  59. package/Desktop/index.js +14 -853
  60. package/Drawer/index.d.ts +6 -92
  61. package/Drawer/index.js +14 -186
  62. package/Drawer/interface.d.ts +83 -0
  63. package/Drawer/lang/en_US.d.ts +5 -0
  64. package/Drawer/lang/index.d.ts +11 -0
  65. package/Drawer/lang/zh_CN.d.ts +5 -0
  66. package/Empty/images/index.d.ts +2 -0
  67. package/Empty/index.d.ts +10 -16
  68. package/Empty/index.js +14 -644
  69. package/Empty/lang/en_US.d.ts +6 -0
  70. package/Empty/lang/index.d.ts +13 -0
  71. package/Empty/lang/zh_CN.d.ts +6 -0
  72. package/Form/index.d.ts +9 -11
  73. package/Form/index.js +14 -384
  74. package/FormItem/compoments/defaultCompoments/index.d.ts +19 -0
  75. package/FormItem/compoments/formCheckboxGroup/index.d.ts +8 -0
  76. package/FormItem/compoments/formFile/index.d.ts +38 -0
  77. package/FormItem/compoments/formRadioGroup/index.d.ts +8 -0
  78. package/FormItem/compoments/formSelect/index.d.ts +18 -0
  79. package/FormItem/errorTips.d.ts +12 -0
  80. package/FormItem/index.d.ts +152 -5
  81. package/FormItem/index.js +14 -81
  82. package/FormItem/itemType.d.ts +42 -0
  83. package/FormItem/validateFunction.d.ts +15 -0
  84. package/FunctionModal/dialog.d.ts +58 -0
  85. package/FunctionModal/index.d.ts +3 -14
  86. package/FunctionModal/index.js +14 -39
  87. package/FunctionModal/modalContext.d.ts +14 -0
  88. package/GlobalContext/componentsProps.d.ts +19 -0
  89. package/GlobalContext/confirmLocale.d.ts +7 -0
  90. package/GlobalContext/index.d.ts +8 -38
  91. package/GlobalContext/index.js +16 -41
  92. package/GlobalContext/intl.d.ts +34 -0
  93. package/GlobalContext/useFormatMessage.d.ts +3 -0
  94. package/Help/index.d.ts +10 -16
  95. package/Help/index.js +15 -39
  96. package/HelperText/index.d.ts +5 -11
  97. package/HelperText/index.js +15 -29
  98. package/Hooks/useGlobalProps.d.ts +1 -0
  99. package/InputLang/index.d.ts +7 -13
  100. package/InputLang/index.js +14 -270
  101. package/InputNumber/index.d.ts +10 -16
  102. package/InputNumber/index.js +14 -308
  103. package/Label/index.d.ts +6 -12
  104. package/Label/index.js +14 -81
  105. package/Loading/index.d.ts +6 -12
  106. package/Loading/index.js +15 -47
  107. package/Menu/footerExpansion.d.ts +9 -0
  108. package/Menu/index.d.ts +5 -123
  109. package/Menu/index.js +14 -1232
  110. package/Menu/interface.d.ts +139 -0
  111. package/Menu/logo.d.ts +9 -0
  112. package/Menu/verticalMenuList.d.ts +14 -0
  113. package/Message/index.d.ts +19 -11
  114. package/Message/index.js +15 -222
  115. package/Modal/Confirm/index.d.ts +66 -0
  116. package/Modal/index.d.ts +40 -142
  117. package/Modal/index.js +14 -443
  118. package/Modal/lang/en_US.d.ts +5 -0
  119. package/Modal/lang/index.d.ts +11 -0
  120. package/Modal/lang/zh_CN.d.ts +5 -0
  121. package/MultiBox/index.d.ts +7 -13
  122. package/MultiBox/index.js +14 -231
  123. package/Notification/index.d.ts +16 -22
  124. package/Notification/index.js +15 -266
  125. package/OperateBtn/index.d.ts +10 -16
  126. package/OperateBtn/index.js +14 -260
  127. package/OperateBtn/lang/en_US.d.ts +4 -0
  128. package/OperateBtn/lang/index.d.ts +9 -0
  129. package/OperateBtn/lang/zh_CN.d.ts +4 -0
  130. package/PageHeader/horizontalMeun.d.ts +9 -0
  131. package/PageHeader/horizontalMeunRight.d.ts +9 -0
  132. package/PageHeader/index.d.ts +5 -178
  133. package/PageHeader/index.js +14 -1171
  134. package/PageHeader/interface.d.ts +167 -0
  135. package/Pagination/index.d.ts +6 -12
  136. package/Pagination/index.js +14 -469
  137. package/Pagination/lang/en_US.d.ts +8 -0
  138. package/Pagination/lang/index.d.ts +17 -0
  139. package/Pagination/lang/zh_CN.d.ts +8 -0
  140. package/ParauiProvider/index.d.ts +8 -9
  141. package/ParauiProvider/index.js +15 -53
  142. package/PopConfirm/index.d.ts +10 -23
  143. package/PopConfirm/index.js +14 -189
  144. package/PopConfirm/lang/en_US.d.ts +5 -0
  145. package/PopConfirm/lang/index.d.ts +11 -0
  146. package/PopConfirm/lang/zh_CN.d.ts +5 -0
  147. package/Popover/index.d.ts +11 -18
  148. package/Popover/index.js +15 -66
  149. package/Popper/index.d.ts +13 -0
  150. package/Popper/index.js +16 -0
  151. package/Progress/Line.d.ts +47 -0
  152. package/Progress/Steps.d.ts +17 -0
  153. package/Progress/index.d.ts +12 -18
  154. package/Progress/index.js +20 -358
  155. package/Progress/utils.d.ts +6 -0
  156. package/Querying/images/index.d.ts +2 -0
  157. package/Querying/index.d.ts +9 -15
  158. package/Querying/index.js +14 -762
  159. package/Querying/lang/en_US.d.ts +4 -0
  160. package/Querying/lang/index.d.ts +9 -0
  161. package/Querying/lang/zh_CN.d.ts +4 -0
  162. package/README.md +506 -0
  163. package/Radio/index.d.ts +7 -13
  164. package/Radio/index.js +14 -94
  165. package/RadioGroup/index.d.ts +9 -15
  166. package/RadioGroup/index.js +14 -128
  167. package/Search/index.d.ts +12 -18
  168. package/Search/index.js +14 -220
  169. package/Select/index.d.ts +7 -13
  170. package/Select/index.js +14 -1288
  171. package/Select/lang/en_US.d.ts +5 -0
  172. package/Select/lang/index.d.ts +11 -0
  173. package/Select/lang/zh_CN.d.ts +5 -0
  174. package/SelectInput/index.d.ts +5 -11
  175. package/SelectInput/index.js +14 -51
  176. package/SingleBox/index.d.ts +7 -13
  177. package/SingleBox/index.js +14 -194
  178. package/Slider/index.d.ts +7 -104
  179. package/Slider/index.js +15 -125
  180. package/Slider/interface.d.ts +102 -0
  181. package/Split/index.d.ts +3 -8
  182. package/Split/index.js +15 -134
  183. package/Stepper/icons.d.ts +5 -0
  184. package/Stepper/index.d.ts +25 -41
  185. package/Stepper/index.js +15 -99
  186. package/Switch/index.d.ts +10 -16
  187. package/Switch/index.js +14 -73
  188. package/Table/index.d.ts +4 -12
  189. package/Table/index.js +14 -2725
  190. package/{_verture/interface-a9b7c716.js → Table/interface.d.ts} +28 -20
  191. package/Table/lang/en_US.d.ts +6 -0
  192. package/Table/lang/index.d.ts +13 -0
  193. package/Table/lang/zh_CN.d.ts +6 -0
  194. package/Table/tableBody.d.ts +9 -0
  195. package/Table/tableBodyElement/index.d.ts +15 -0
  196. package/Table/tableBodyInterface.d.ts +67 -0
  197. package/Table/tableContainer/index.d.ts +16 -0
  198. package/Table/tableElement/index.d.ts +17 -0
  199. package/Table/tableHead.d.ts +9 -0
  200. package/Table/tableHeadElement/index.d.ts +15 -0
  201. package/Table/tableHeadInterface.d.ts +30 -0
  202. package/Table/tablePagination.d.ts +9 -0
  203. package/Table/tablePaginationInterFace.d.ts +24 -0
  204. package/Table/tdElement/index.d.ts +15 -0
  205. package/Table/thElement/index.d.ts +15 -0
  206. package/Table/trElement/index.d.ts +15 -0
  207. package/Table/util.d.ts +16 -0
  208. package/Tabs/index.d.ts +29 -64
  209. package/Tabs/index.js +14 -218
  210. package/Tag/TagGroup.d.ts +66 -0
  211. package/Tag/index.d.ts +12 -78
  212. package/Tag/index.js +14 -286
  213. package/Test/index.d.ts +2 -3
  214. package/Test/index.js +16 -9
  215. package/TextField/index.d.ts +16 -22
  216. package/TextField/index.js +14 -686
  217. package/TimePicker/index.d.ts +10 -20
  218. package/TimePicker/index.js +14 -77
  219. package/TimePicker/locale/en_US.d.ts +3 -0
  220. package/TimePicker/locale/zh_CN.d.ts +3 -0
  221. package/TimePicker/style/index.d.ts +1 -0
  222. package/Timeline/index.d.ts +13 -49
  223. package/Timeline/index.js +15 -150
  224. package/ToggleButton/ToggleButtonGroup.d.ts +49 -0
  225. package/ToggleButton/index.d.ts +10 -61
  226. package/ToggleButton/index.js +14 -200
  227. package/Tooltip/index.d.ts +10 -12
  228. package/Tooltip/index.js +15 -335
  229. package/Transfer/index.d.ts +3 -8
  230. package/Transfer/index.js +14 -343
  231. package/Transfer/lang/en_US.d.ts +6 -0
  232. package/Transfer/lang/index.d.ts +13 -0
  233. package/Transfer/lang/zh_CN.d.ts +6 -0
  234. package/Tree/OperateBar/index.d.ts +13 -0
  235. package/Tree/Tree.d.ts +4 -0
  236. package/Tree/index.d.ts +5 -8
  237. package/Tree/index.js +14 -35
  238. package/{_verture/interface-128abdd3.js → Tree/interface.d.ts} +25 -15
  239. package/Tree/lang/en_US.d.ts +8 -0
  240. package/Tree/lang/index.d.ts +17 -0
  241. package/Tree/lang/zh_CN.d.ts +8 -0
  242. package/Tree/utils/closestPolyfill.d.ts +0 -0
  243. package/Tree/utils/tools.d.ts +26 -0
  244. package/Tree/utils/treeUtil.d.ts +15 -0
  245. package/Upload/Dragger/index.d.ts +10 -0
  246. package/Upload/ErroTip/index.d.ts +13 -0
  247. package/Upload/ImageUpload/index.d.ts +14 -0
  248. package/Upload/ImgCrop/EasyCrop.d.ts +17 -0
  249. package/Upload/ImgCrop/constants.d.ts +7 -0
  250. package/Upload/ImgCrop/index.d.ts +6 -0
  251. package/Upload/ImgCrop/interface.d.ts +24 -0
  252. package/Upload/UploadList/index.d.ts +5 -0
  253. package/Upload/index.d.ts +8 -179
  254. package/Upload/index.js +14 -1542
  255. package/Upload/interface.d.ts +134 -0
  256. package/Upload/lang/en_US.d.ts +12 -0
  257. package/Upload/lang/index.d.ts +25 -0
  258. package/Upload/lang/zh_CN.d.ts +12 -0
  259. package/cdn/AutoBox/index.js +29 -0
  260. package/cdn/AutoTips/index.js +40 -0
  261. package/cdn/Breadcrumbs/index.js +53 -0
  262. package/cdn/Button/index.js +79 -0
  263. package/cdn/ButtonGroup/index.js +79 -0
  264. package/cdn/Carousel/index.js +6 -0
  265. package/cdn/Cascader/index.js +42 -0
  266. package/cdn/Checkbox/index.js +53 -0
  267. package/cdn/CheckboxGroup/index.js +53 -0
  268. package/cdn/Collapse/index.js +27 -0
  269. package/cdn/CollapseBox/index.js +1 -0
  270. package/cdn/ColorPicker/index.js +1 -0
  271. package/cdn/ComboSelect/index.js +438 -0
  272. package/cdn/Container/index.js +1 -0
  273. package/cdn/DatePicker/index.js +185 -0
  274. package/cdn/Desktop/index.js +24 -0
  275. package/cdn/Drawer/index.js +84 -0
  276. package/cdn/Empty/index.js +1 -0
  277. package/cdn/Form/index.js +477 -0
  278. package/cdn/FormItem/index.js +477 -0
  279. package/cdn/FunctionModal/index.js +144 -0
  280. package/cdn/GlobalContext/index.js +1 -0
  281. package/cdn/Help/index.js +53 -0
  282. package/cdn/HelperText/index.js +1 -0
  283. package/cdn/InputLang/index.js +144 -0
  284. package/cdn/InputNumber/index.js +118 -0
  285. package/cdn/Label/index.js +53 -0
  286. package/cdn/Loading/index.js +14 -0
  287. package/cdn/Menu/index.js +40 -0
  288. package/cdn/Message/index.js +53 -0
  289. package/cdn/Modal/index.js +144 -0
  290. package/cdn/MultiBox/index.js +131 -0
  291. package/cdn/Notification/index.js +66 -0
  292. package/cdn/OperateBtn/index.js +92 -0
  293. package/cdn/PageHeader/index.js +92 -0
  294. package/cdn/Pagination/index.js +214 -0
  295. package/cdn/ParauiProvider/index.js +9 -0
  296. package/cdn/PopConfirm/index.js +131 -0
  297. package/cdn/Popover/index.js +16 -0
  298. package/cdn/Popper/index.js +26 -0
  299. package/cdn/Progress/index.js +58 -0
  300. package/cdn/Querying/index.js +1 -0
  301. package/cdn/Radio/index.js +53 -0
  302. package/cdn/RadioGroup/index.js +53 -0
  303. package/cdn/Search/index.js +144 -0
  304. package/cdn/Select/index.js +131 -0
  305. package/cdn/SelectInput/index.js +131 -0
  306. package/cdn/SingleBox/index.js +131 -0
  307. package/cdn/Slider/index.js +16 -0
  308. package/cdn/Split/index.js +1 -0
  309. package/cdn/Stepper/index.js +154 -0
  310. package/cdn/Switch/index.js +71 -0
  311. package/cdn/Table/index.js +292 -0
  312. package/cdn/Tabs/index.js +165 -0
  313. package/cdn/Tag/index.js +27 -0
  314. package/cdn/Test/index.js +1 -0
  315. package/cdn/TextField/index.js +105 -0
  316. package/cdn/TimePicker/index.js +185 -0
  317. package/cdn/Timeline/index.js +16 -0
  318. package/cdn/ToggleButton/index.js +79 -0
  319. package/cdn/Tooltip/index.js +40 -0
  320. package/cdn/Transfer/index.js +170 -0
  321. package/cdn/Tree/index.js +170 -0
  322. package/cdn/Upload/index.js +252 -0
  323. package/index.d.ts +128 -88
  324. package/index.js +19 -160
  325. package/package.json +22 -59
  326. package/style.css +72 -0
  327. package/Dropdown/index.d.ts +0 -29
  328. package/Dropdown/index.js +0 -67
  329. package/_verture/defineProperty-0590dc61.js +0 -16
  330. package/_verture/index-0d8e1d07.js +0 -4
  331. package/_verture/index-14a47097.js +0 -4
  332. package/_verture/index-342379c6.js +0 -391
  333. package/_verture/index-458032d7.js +0 -10
  334. package/_verture/index-46bfb2f0.js +0 -778
  335. package/_verture/index-50401de7.js +0 -4
  336. package/_verture/index-5b08df83.js +0 -4
  337. package/_verture/index-6190b129.js +0 -4
  338. package/_verture/index-7ef1e3b6.js +0 -1553
  339. package/_verture/index-a369ca3f.js +0 -4
  340. package/_verture/index-c60911dc.js +0 -39
  341. package/_verture/index-e2881a53.js +0 -16
  342. package/_verture/index-ff4c2a27.js +0 -200
  343. package/_verture/interface-a77a851e.js +0 -25
  344. package/_verture/intl-336570e4.js +0 -65
  345. package/_verture/modalContext-25890584.js +0 -228
  346. package/_verture/modalContext-639f2787.js +0 -58
  347. package/_verture/slicedToArray-d7722f4b.js +0 -62
  348. package/_verture/style-inject.es-300983ab.js +0 -28
  349. package/_verture/toConsumableArray-f8047a75.js +0 -19
  350. package/_verture/tslib.es6-55ed4bd2.js +0 -38
  351. package/_verture/typeof-498dd2b1.js +0 -11
  352. package/_verture/useFormatMessage-ac9d6acf.js +0 -20
  353. package/_verture/useGlobalProps-af9a2af6.js +0 -12
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ total: string;
3
+ linePerPage: string;
4
+ currentPage: string;
5
+ jumpTo: string;
6
+ page: string;
7
+ };
8
+ export default _default;
@@ -0,0 +1,17 @@
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;
@@ -0,0 +1,8 @@
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,13 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
+ import { ThemeOptions } from '@material-ui/core/styles';
2
3
  import { GlobalContextProps } from '@para-ui/core/GlobalContext';
3
- import styleInject from './node_modules/style-inject/dist/style-inject.es.js';
4
-
5
- var css_248z = "@charset \"UTF-8\";\n/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n/* Document\n ========================================================================== */\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\nhtml {\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n/**\n * Remove the margin in all browsers.\n */\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n/**\n * Remove the gray background on active links in IE 10.\n */\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n/**\n * Remove the border on images inside links in IE 10.\n */\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\nbutton,\n[type=button],\n[type=reset],\n[type=submit] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\nbutton::-moz-focus-inner,\n[type=button]::-moz-focus-inner,\n[type=reset]::-moz-focus-inner,\n[type=submit]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\nbutton:-moz-focusring,\n[type=button]:-moz-focusring,\n[type=reset]:-moz-focusring,\n[type=submit]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n[type=checkbox],\n[type=radio] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n[type=number]::-webkit-inner-spin-button,\n[type=number]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n[type=search] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n[type=search]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n/**\n * Add the correct display in IE 10+.\n */\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n[hidden] {\n display: none;\n}\n\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: rgba(171, 176, 185, 0.12);\n}\n\n::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-thumb {\n background: rgba(46, 55, 67, 0.4);\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-corner {\n background: rgb(236, 238, 240);\n}\n\n::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n\n::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n\n::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(46, 55, 67, 0.4);\n}\n\n.paraui-scrollbar-small *::-webkit-scrollbar, .paraui-scrollbar-small::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n}\n.paraui-scrollbar-small *::-webkit-scrollbar-track, .paraui-scrollbar-small::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-scrollbar-small *::-webkit-scrollbar-thumb, .paraui-scrollbar-small::-webkit-scrollbar-thumb {\n border-radius: 4px;\n}\n\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar, .paraui-scrollbar-small-deep ::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-track, .paraui-scrollbar-small-deep ::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb, .paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-corner, .paraui-scrollbar-small-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb:hover, .paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb:active, .paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-scrollbar-medium *::-webkit-scrollbar, .paraui-scrollbar-medium::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n.paraui-scrollbar-medium *::-webkit-scrollbar-track, .paraui-scrollbar-medium::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-scrollbar-medium *::-webkit-scrollbar-thumb, .paraui-scrollbar-medium::-webkit-scrollbar-thumb {\n border-radius: 6px;\n}\n\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar, .paraui-scrollbar-medium-deep ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-track, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-corner, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:hover, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:active, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-scrollbar-large *::-webkit-scrollbar, .paraui-scrollbar-large::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n}\n.paraui-scrollbar-large *::-webkit-scrollbar-track, .paraui-scrollbar-large::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-scrollbar-large *::-webkit-scrollbar-thumb, .paraui-scrollbar-large::-webkit-scrollbar-thumb {\n border-radius: 8px;\n}\n\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar, .paraui-scrollbar-large-deep ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-track, .paraui-scrollbar-large-deep ::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb, .paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb {\n border-radius: 8px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-corner, .paraui-scrollbar-large-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb:hover, .paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb:active, .paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-form .paraui-helper-text {\n min-height: 20px;\n}\n\n* {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\nhtml, body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\nol, ul {\n list-style: none;\n}\n\na,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ninput,\nselect,\nbutton,\ntextarea {\n outline: none;\n}";
6
- styleInject(css_248z);
7
-
4
+ import '../Styles/index.scss';
8
5
  interface Props extends GlobalContextProps {
9
- children?: ReactNode;
6
+ children: ReactNode;
7
+ theme?: ThemeOptions;
8
+ seed?: string;
9
+ productionPrefix?: string;
10
10
  }
11
- declare const ParauiProvider: (props: Props) => JSX.Element;
12
-
13
- export { ParauiProvider, ParauiProvider as default };
11
+ export declare const ParauiProvider: (props: Props) => JSX.Element;
12
+ export default ParauiProvider;
@@ -1,53 +1,15 @@
1
- import { _ as _defineProperty } from '../_verture/defineProperty-0590dc61.js';
2
- import { jsx } from 'react/jsx-runtime';
3
- import React__default from 'react';
4
- import GlobalContext, { changeConfirmLocale } from '@para-ui/core/GlobalContext';
5
- import { GetLanguage } from '@paraview/lib';
6
- import { i as i18nIntl } from '../_verture/intl-336570e4.js';
7
- import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
8
- import '../_verture/typeof-498dd2b1.js';
9
-
10
- var css_248z = "@charset \"UTF-8\";\n/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n/* Document\n ========================================================================== */\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\nhtml {\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n/**\n * Remove the margin in all browsers.\n */\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n/**\n * Remove the gray background on active links in IE 10.\n */\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n/**\n * Remove the border on images inside links in IE 10.\n */\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\nbutton,\n[type=button],\n[type=reset],\n[type=submit] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\nbutton::-moz-focus-inner,\n[type=button]::-moz-focus-inner,\n[type=reset]::-moz-focus-inner,\n[type=submit]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\nbutton:-moz-focusring,\n[type=button]:-moz-focusring,\n[type=reset]:-moz-focusring,\n[type=submit]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n[type=checkbox],\n[type=radio] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n[type=number]::-webkit-inner-spin-button,\n[type=number]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n[type=search] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n[type=search]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n/**\n * Add the correct display in IE 10+.\n */\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n[hidden] {\n display: none;\n}\n\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: rgba(171, 176, 185, 0.12);\n}\n\n::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-thumb {\n background: rgba(46, 55, 67, 0.4);\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-corner {\n background: rgb(236, 238, 240);\n}\n\n::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n\n::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n\n::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(46, 55, 67, 0.4);\n}\n\n.paraui-scrollbar-small *::-webkit-scrollbar, .paraui-scrollbar-small::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n}\n.paraui-scrollbar-small *::-webkit-scrollbar-track, .paraui-scrollbar-small::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-scrollbar-small *::-webkit-scrollbar-thumb, .paraui-scrollbar-small::-webkit-scrollbar-thumb {\n border-radius: 4px;\n}\n\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar, .paraui-scrollbar-small-deep ::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-track, .paraui-scrollbar-small-deep ::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb, .paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-corner, .paraui-scrollbar-small-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb:hover, .paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb:active, .paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-scrollbar-medium *::-webkit-scrollbar, .paraui-scrollbar-medium::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n.paraui-scrollbar-medium *::-webkit-scrollbar-track, .paraui-scrollbar-medium::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-scrollbar-medium *::-webkit-scrollbar-thumb, .paraui-scrollbar-medium::-webkit-scrollbar-thumb {\n border-radius: 6px;\n}\n\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar, .paraui-scrollbar-medium-deep ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-track, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-corner, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:hover, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:active, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-scrollbar-large *::-webkit-scrollbar, .paraui-scrollbar-large::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n}\n.paraui-scrollbar-large *::-webkit-scrollbar-track, .paraui-scrollbar-large::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-scrollbar-large *::-webkit-scrollbar-thumb, .paraui-scrollbar-large::-webkit-scrollbar-thumb {\n border-radius: 8px;\n}\n\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar, .paraui-scrollbar-large-deep ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-track, .paraui-scrollbar-large-deep ::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb, .paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb {\n border-radius: 8px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-corner, .paraui-scrollbar-large-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb:hover, .paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb:active, .paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-form .paraui-helper-text {\n min-height: 20px;\n}\n\n* {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\nhtml, body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\nol, ul {\n list-style: none;\n}\n\na,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ninput,\nselect,\nbutton,\ntextarea {\n outline: none;\n}";
11
- styleInject(css_248z);
12
-
13
- var ParauiProvider = function ParauiProvider(props) {
14
- /**
15
- * 国际化
16
- * @param defI18nData 默认组件语言
17
- * @param comName 组件名称
18
- * @param id 键值
19
- * */
20
- var intlFormat = function intlFormat(comName, defI18nData) {
21
- return function (ops, params) {
22
- var lang = props.language || GetLanguage();
23
- var locale = props.locale || {};
24
- var i18nData = locale[lang] || {};
25
- i18nData = _defineProperty({}, lang, i18nData[comName] || {});
26
- return i18nIntl({
27
- ops: ops,
28
- i18nData: i18nData,
29
- lang: lang,
30
- params: params,
31
- defI18nData: defI18nData
32
- });
33
- };
34
- };
35
-
36
- React__default.useEffect(function () {
37
- // Confirm 国际化
38
- var lang = props.language || GetLanguage();
39
- var locale = props.locale || {};
40
- var i18nData = locale[lang] || {};
41
- changeConfirmLocale === null || changeConfirmLocale === void 0 ? void 0 : changeConfirmLocale(i18nData);
42
- }, [props.language, props.locale]);
43
- return jsx(GlobalContext.Provider, Object.assign({
44
- value: Object.assign(Object.assign({}, props), {
45
- language: props.language || GetLanguage(),
46
- intlFormat: intlFormat
47
- })
48
- }, {
49
- children: props.children
50
- }));
51
- };
52
-
53
- export { ParauiProvider, ParauiProvider as default };
1
+ !function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("@material-ui/core/styles"),require("@para-ui/core/GlobalContext"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@material-ui/core/styles","@para-ui/core/GlobalContext","@paraview/lib"],e):"object"==typeof exports?exports.ParaUI=e(require("react"),require("@material-ui/core/styles"),require("@para-ui/core/GlobalContext"),require("@paraview/lib")):r.ParaUI=e(r.react,r["@material-ui/core/styles"],r["@para-ui/core/GlobalContext"],r["@paraview/lib"])}(self,(function(r,e,a,t){return function(){var o={5223:function(r,e,a){(e=a(3645)(!1)).push([r.id,"/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}::-webkit-scrollbar{width:6px;height:6px;background-color:rgba(171,176,185,.12)}::-webkit-scrollbar-track{border-radius:6px}::-webkit-scrollbar-thumb{background:rgba(46,55,67,.4);border-radius:6px}::-webkit-scrollbar-corner{background:#eceef0}::-webkit-scrollbar-thumb:hover{background:rgba(171,176,185,.4)}::-webkit-scrollbar-thumb:active{background:rgba(171,176,185,.4)}::-webkit-scrollbar-thumb:window-inactive{background-color:rgba(46,55,67,.4)}.paraui-scrollbar-small *::-webkit-scrollbar,.paraui-scrollbar-small::-webkit-scrollbar{width:4px;height:4px}.paraui-scrollbar-small *::-webkit-scrollbar-track,.paraui-scrollbar-small::-webkit-scrollbar-track{border-radius:4px}.paraui-scrollbar-small *::-webkit-scrollbar-thumb,.paraui-scrollbar-small::-webkit-scrollbar-thumb{border-radius:4px}.paraui-scrollbar-small-deep * ::-webkit-scrollbar,.paraui-scrollbar-small-deep ::-webkit-scrollbar{width:4px;height:4px;background-color:rgba(171,176,185,.2)}.paraui-scrollbar-small-deep * ::-webkit-scrollbar-track,.paraui-scrollbar-small-deep ::-webkit-scrollbar-track{border-radius:4px}.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb,.paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb{border-radius:4px;background:rgba(248,249,251,.8)}.paraui-scrollbar-small-deep * ::-webkit-scrollbar-corner,.paraui-scrollbar-small-deep ::-webkit-scrollbar-corner{background:#4f5969}.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb:hover,.paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb:hover{background:rgba(171,176,185,.4)}.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb:active,.paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb:active{background:rgba(171,176,185,.4)}.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb:window-inactive,.paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb:window-inactive{background-color:rgba(248,249,251,.8)}.paraui-scrollbar-medium *::-webkit-scrollbar,.paraui-scrollbar-medium::-webkit-scrollbar{width:6px;height:6px}.paraui-scrollbar-medium *::-webkit-scrollbar-track,.paraui-scrollbar-medium::-webkit-scrollbar-track{border-radius:6px}.paraui-scrollbar-medium *::-webkit-scrollbar-thumb,.paraui-scrollbar-medium::-webkit-scrollbar-thumb{border-radius:6px}.paraui-scrollbar-medium-deep * ::-webkit-scrollbar,.paraui-scrollbar-medium-deep ::-webkit-scrollbar{width:6px;height:6px;background-color:rgba(171,176,185,.2)}.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-track,.paraui-scrollbar-medium-deep ::-webkit-scrollbar-track{border-radius:6px}.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb,.paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb{border-radius:6px;background:rgba(248,249,251,.8)}.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-corner,.paraui-scrollbar-medium-deep ::-webkit-scrollbar-corner{background:#4f5969}.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:hover,.paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb:hover{background:rgba(171,176,185,.4)}.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:active,.paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb:active{background:rgba(171,176,185,.4)}.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:window-inactive,.paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb:window-inactive{background-color:rgba(248,249,251,.8)}.paraui-scrollbar-large *::-webkit-scrollbar,.paraui-scrollbar-large::-webkit-scrollbar{width:8px;height:8px}.paraui-scrollbar-large *::-webkit-scrollbar-track,.paraui-scrollbar-large::-webkit-scrollbar-track{border-radius:8px}.paraui-scrollbar-large *::-webkit-scrollbar-thumb,.paraui-scrollbar-large::-webkit-scrollbar-thumb{border-radius:8px}.paraui-scrollbar-large-deep * ::-webkit-scrollbar,.paraui-scrollbar-large-deep ::-webkit-scrollbar{width:8px;height:8px;background-color:rgba(171,176,185,.2)}.paraui-scrollbar-large-deep * ::-webkit-scrollbar-track,.paraui-scrollbar-large-deep ::-webkit-scrollbar-track{border-radius:8px}.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb,.paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb{border-radius:8px;background:rgba(248,249,251,.8)}.paraui-scrollbar-large-deep * ::-webkit-scrollbar-corner,.paraui-scrollbar-large-deep ::-webkit-scrollbar-corner{background:#4f5969}.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb:hover,.paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb:hover{background:rgba(171,176,185,.4)}.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb:active,.paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb:active{background:rgba(171,176,185,.4)}.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb:window-inactive,.paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb:window-inactive{background-color:rgba(248,249,251,.8)}.paraui-form .paraui-helper-text{min-height:20px}*{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;margin:0;padding:0;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}html,body{width:100%;height:100%;overflow:hidden}ol,ul{list-style:none}a,h1,h2,h3,h4,h5,h6,input,select,button,textarea{outline:none}",""]),r.exports=e},3645:function(r){"use strict";r.exports=function(r){var e=[];return e.toString=function(){return this.map((function(e){var a=function(r,e){var a=r[1]||"",t=r[3];if(!t)return a;if(e&&"function"==typeof btoa){var o=(n=t,l=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(c," */")),i=t.sources.map((function(r){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(r," */")}));return[a].concat(i).concat([o]).join("\n")}var n,l,c;return[a].join("\n")}(e,r);return e[2]?"@media ".concat(e[2]," {").concat(a,"}"):a})).join("")},e.i=function(r,a,t){"string"==typeof r&&(r=[[null,r,""]]);var o={};if(t)for(var i=0;i<this.length;i++){var n=this[i][0];null!=n&&(o[n]=!0)}for(var l=0;l<r.length;l++){var c=[].concat(r[l]);t&&o[c[0]]||(a&&(c[2]?c[2]="".concat(a," and ").concat(c[2]):c[2]=a),e.push(c))}},e}},7418:function(r){"use strict";
2
+ /*
3
+ object-assign
4
+ (c) Sindre Sorhus
5
+ @license MIT
6
+ */var e=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function o(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}r.exports=function(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var e={},a=0;a<10;a++)e["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(r){return e[r]})).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach((function(r){t[r]=r})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(r){return!1}}()?Object.assign:function(r,i){for(var n,l,c=o(r),u=1;u<arguments.length;u++){for(var s in n=Object(arguments[u]))a.call(n,s)&&(c[s]=n[s]);if(e){l=e(n);for(var b=0;b<l.length;b++)t.call(n,l[b])&&(c[l[b]]=n[l[b]])}}return c}},5251:function(r,e,a){"use strict";
7
+ /** @license React v17.0.2
8
+ * react-jsx-runtime.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ a(7418);var t=a(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(r,e,a){var t,i={},u=null,s=null;for(t in void 0!==a&&(u=""+a),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(s=e.ref),e)l.call(e,t)&&!c.hasOwnProperty(t)&&(i[t]=e[t]);if(r&&r.defaultProps)for(t in e=r.defaultProps)void 0===i[t]&&(i[t]=e[t]);return{$$typeof:o,type:r,key:u,ref:s,props:i,_owner:n.current}}e.jsx=u},5893:function(r,e,a){"use strict";r.exports=a(5251)},2216:function(r,e,a){var t=a(3379),o=a(5223);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[r.id,o,""]]);var i={insert:("body","body"),singleton:!1};t(o,i);r.exports=o.locals||{}},3379:function(r,e,a){"use strict";var t,o=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},i=function(){var r={};return function(e){if(void 0===r[e]){var a=document.querySelector(e);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(r){a=null}r[e]=a}return r[e]}}(),n=[];function l(r){for(var e=-1,a=0;a<n.length;a++)if(n[a].identifier===r){e=a;break}return e}function c(r,e){for(var a={},t=[],o=0;o<r.length;o++){var i=r[o],c=e.base?i[0]+e.base:i[0],u=a[c]||0,s="".concat(c," ").concat(u);a[c]=u+1;var b=l(s),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==b?(n[b].references++,n[b].updater(p)):n.push({identifier:s,updater:g(p,e),references:1}),t.push(s)}return t}function u(r){var e=document.createElement("style"),t=r.attributes||{};if(void 0===t.nonce){var o=a.nc;o&&(t.nonce=o)}if(Object.keys(t).forEach((function(r){e.setAttribute(r,t[r])})),"function"==typeof r.insert)r.insert(e);else{var n=i(r.insert||"head");if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(e)}return e}var s,b=(s=[],function(r,e){return s[r]=e,s.filter(Boolean).join("\n")});function p(r,e,a,t){var o=a?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(r.styleSheet)r.styleSheet.cssText=b(e,o);else{var i=document.createTextNode(o),n=r.childNodes;n[e]&&r.removeChild(n[e]),n.length?r.insertBefore(i,n[e]):r.appendChild(i)}}function d(r,e,a){var t=a.css,o=a.media,i=a.sourceMap;if(o?r.setAttribute("media",o):r.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),r.styleSheet)r.styleSheet.cssText=t;else{for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(document.createTextNode(t))}}var m=null,f=0;function g(r,e){var a,t,o;if(e.singleton){var i=f++;a=m||(m=u(e)),t=p.bind(null,a,i,!1),o=p.bind(null,a,i,!0)}else a=u(e),t=d.bind(null,a,e),o=function(){!function(r){if(null===r.parentNode)return!1;r.parentNode.removeChild(r)}(a)};return t(r),function(e){if(e){if(e.css===r.css&&e.media===r.media&&e.sourceMap===r.sourceMap)return;t(r=e)}else o()}}r.exports=function(r,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var a=c(r=r||[],e);return function(r){if(r=r||[],"[object Array]"===Object.prototype.toString.call(r)){for(var t=0;t<a.length;t++){var o=l(a[t]);n[o].references--}for(var i=c(r,e),u=0;u<a.length;u++){var s=l(a[u]);0===n[s].references&&(n[s].updater(),n.splice(s,1))}a=i}}}},7332:function(r,e,a){"use strict";a.d(e,{e:function(){return n}});var t=a(5893),o=a(8156),i=a.n(o),n=function(r){var e,a,o,n,l=r.ops,c=r.i18nData,u=r.lang,s=r.params,b=r.defI18nData;if("string"==typeof l)n=l;else if("object"==typeof l){if("string"!=typeof l.id)return'i18n intl object "id" is missing';n=l.id}return void 0!==n&&void 0===(o=null===(e=c[u])||void 0===e?void 0:e[n])&&b&&(o=null===(a=b[u])||void 0===a?void 0:a[n]),"string"!=typeof o?"{".concat(n,"}"):function(r,e){if(!e)return r;var a=!1,o=(r=r.replace(/\"/g,'\\"')).replace(/\{(.*?)\}/gi,(function(r,t){return"object"==typeof e[t]&&(a=!0),'",vars.'.concat(t,',"')}));return a?new Function("vars",'return ["'.concat(o,'"];'))(e).map((function(r){return(0,t.jsx)(i().Fragment,{children:r},Math.random())})):new Function("vars",'return ["'.concat(o,"\"].join('');"))(e)}(o,s)}},8793:function(r){"use strict";r.exports=e},5395:function(r){"use strict";r.exports=a},8543:function(r){"use strict";r.exports=t},8156:function(e){"use strict";e.exports=r}},i={};function n(r){var e=i[r];if(void 0!==e)return e.exports;var a=i[r]={id:r,exports:{}};return o[r](a,a.exports,n),a.exports}n.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(e,{a:e}),e},n.d=function(r,e){for(var a in e)n.o(e,a)&&!n.o(r,a)&&Object.defineProperty(r,a,{enumerable:!0,get:e[a]})},n.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},n.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.nc=void 0;var l={};return function(){"use strict";n.r(l),n.d(l,{ParauiProvider:function(){return b}});var r=n(5893),e=n(8156),a=n.n(e),t=n(8793),o=n(5395),i=n.n(o),c=n(8543),u=n(7332),s=(n(2216),function(){return s=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var o in e=arguments[a])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},s.apply(this,arguments)}),b=function(e){var n,l=(0,t.createGenerateClassName)({seed:e.seed||"",productionPrefix:e.productionPrefix||"paraui"});n=e.theme?(0,t.createMuiTheme)(s({},e.theme)):(0,t.createMuiTheme)({});return a().useEffect((function(){var r=e.language||(0,c.GetLanguage)(),a=(e.locale||{})[r]||{};null===o.changeConfirmLocale||void 0===o.changeConfirmLocale||(0,o.changeConfirmLocale)(a)}),[e.language,e.locale]),(0,r.jsx)(t.StylesProvider,s({generateClassName:l,injectFirst:!0},{children:(0,r.jsx)(t.ThemeProvider,s({theme:n},{children:(0,r.jsx)(i().Provider,s({value:s(s({},e),{language:e.language||(0,c.GetLanguage)(),intlFormat:function(r,a){return function(t,o){var i,n=e.language||(0,c.GetLanguage)(),l=(e.locale||{})[n]||{};return(i={})[n]=l[r]||{},l=i,(0,u.e)({ops:t,i18nData:l,lang:n,params:o,defI18nData:a})}}})},{children:e.children}))}))}))};l.default=b}(),l}()}));
@@ -1,24 +1,14 @@
1
- import React__default, { ReactNode, FunctionComponent } from 'react';
2
- import { ButtonProps } from '../Button/index.js';
3
- import { T as TooltipProps } from '../_verture/interface-a77a851e.js';
4
- import '../_verture/index-6190b129.js';
5
- import styleInject from './node_modules/style-inject/dist/style-inject.es.js';
6
- import '../_verture/index-5b08df83.js';
7
- import '../Dropdown/index.js';
8
- import '../_verture/index-0d8e1d07.js';
9
- import 'rc-tooltip/lib/Tooltip';
10
-
11
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午1:44\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-popconfirm {\n position: absolute;\n max-width: 600px;\n padding: 0;\n font-size: 14px;\n color: initial;\n background-color: rgb(255, 255, 255);\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n border-radius: 4px;\n}\n.paraui-popconfirm .paraui-tooltip-inner {\n min-width: auto;\n min-height: auto;\n padding: 0;\n color: initial;\n background-color: transparent;\n}\n.paraui-popconfirm .popconfirm-wrapper {\n min-width: 350px;\n padding: 24px;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-message {\n position: relative;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-message-icon {\n position: absolute;\n top: 2px;\n color: rgb(255, 161, 80);\n line-height: 0;\n font-size: 16px;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-message-icon svg {\n color: inherit;\n font-size: inherit;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-message-body {\n padding-left: 24px;\n line-height: 20px;\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-message-title {\n font-weight: 700;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-message-content {\n font-weight: 400;\n margin-top: 13px;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-btns {\n margin-top: 32px;\n text-align: right;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-btns > button + button {\n margin-left: 16px;\n}";
12
- styleInject(css_248z);
13
-
14
1
  /**
15
2
  * @author Hanz
16
3
  * @date 2021/8/9 下午3:45
17
4
  * @description popConfirm
18
5
  */
19
-
6
+ import React, { FunctionComponent, ReactNode } from 'react';
7
+ import { ButtonProps } from "../Button";
8
+ import { TooltipProps } from "../Tooltip";
9
+ import './index.scss';
20
10
  declare type ConfirmType = "success" | "info" | "error" | "warning";
21
- interface PopConfirmProps {
11
+ export interface PopConfirmProps {
22
12
  /**触发方式*/
23
13
  trigger?: 'click' | 'hover';
24
14
  /** 是否显示弹框,controllable为true时可用 */
@@ -41,6 +31,8 @@ interface PopConfirmProps {
41
31
  onOk?: Function;
42
32
  /** 取消回调*/
43
33
  onCancel?: Function;
34
+ /** 关闭时回调*/
35
+ onClose?: Function;
44
36
  /** 确定按钮属性*/
45
37
  okButtonProps?: ButtonProps;
46
38
  /** 取消按钮属性*/
@@ -49,10 +41,8 @@ interface PopConfirmProps {
49
41
  placement?: TooltipProps['placement'];
50
42
  /** cls*/
51
43
  className?: string;
52
- /** overlayClassName */
53
- overlayClassName?: string;
54
44
  /** 自定义样式*/
55
- style?: React__default.CSSProperties;
45
+ style?: React.CSSProperties;
56
46
  /** 子节点*/
57
47
  children?: ReactNode;
58
48
  /**显示取消按钮*/
@@ -61,9 +51,6 @@ interface PopConfirmProps {
61
51
  bubble?: boolean;
62
52
  /**底部按钮*/
63
53
  actions?: ReactNode;
64
- /** 关闭回调*/
65
- onClose?: () => void;
66
54
  }
67
- declare const PopConfirm: FunctionComponent<PopConfirmProps>;
68
-
69
- export { PopConfirm, PopConfirmProps, PopConfirm as default };
55
+ export declare const PopConfirm: FunctionComponent<PopConfirmProps>;
56
+ export default PopConfirm;
@@ -1,189 +1,14 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-d7722f4b.js';
2
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
- import { useState, useEffect } from 'react';
4
- import SuccessOutlined from '@para-ui/icons/CheckCircleF';
5
- import InfoOutlined from '@para-ui/icons/WarningCircle';
6
- import ErrorOutlined from '@para-ui/icons/CloseCircleF';
7
- import WarningCircleF from '@para-ui/icons/WarningCircleF';
8
- import { Button } from '../Button/index.js';
9
- import { Tooltip } from '../Tooltip/index.js';
10
- import clsx from 'clsx';
11
- import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
12
- import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
13
- import '../_verture/typeof-498dd2b1.js';
14
- import '../_verture/tslib.es6-55ed4bd2.js';
15
- import '@para-ui/icons/LoadingF';
16
- import '@para-ui/icons/Forbid';
17
- import '@para-ui/icons/Down';
18
- import '../Dropdown/index.js';
19
- import 'rc-dropdown';
20
- import 'rc-tooltip';
21
- import 'rc-tooltip/lib/placements';
22
- import '@para-ui/core/GlobalContext';
23
-
24
- var en = {
25
- cancel: 'Cancel',
26
- ok: 'Ok'
27
- };
28
-
29
- var zh = {
30
- cancel: '取消',
31
- ok: '确定'
32
- };
33
-
34
- var localeJson = {
35
- zh: zh,
36
- en: en
37
- };
38
-
39
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午1:44\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-popconfirm {\n position: absolute;\n max-width: 600px;\n padding: 0;\n font-size: 14px;\n color: initial;\n background-color: rgb(255, 255, 255);\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n border-radius: 4px;\n}\n.paraui-popconfirm .paraui-tooltip-inner {\n min-width: auto;\n min-height: auto;\n padding: 0;\n color: initial;\n background-color: transparent;\n}\n.paraui-popconfirm .popconfirm-wrapper {\n min-width: 350px;\n padding: 24px;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-message {\n position: relative;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-message-icon {\n position: absolute;\n top: 2px;\n color: rgb(255, 161, 80);\n line-height: 0;\n font-size: 16px;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-message-icon svg {\n color: inherit;\n font-size: inherit;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-message-body {\n padding-left: 24px;\n line-height: 20px;\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-message-title {\n font-weight: 700;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-message-content {\n font-weight: 400;\n margin-top: 13px;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-btns {\n margin-top: 32px;\n text-align: right;\n}\n.paraui-popconfirm .popconfirm-wrapper .popconfirm-btns > button + button {\n margin-left: 16px;\n}";
40
- styleInject(css_248z);
41
-
42
- var iconMapping = {
43
- "success": jsx(SuccessOutlined, {}),
44
- "warning": jsx(WarningCircleF, {}),
45
- "error": jsx(ErrorOutlined, {}),
46
- "info": jsx(InfoOutlined, {})
47
- }; //popConfirm
48
-
49
- var PopConfirm = function PopConfirm(props) {
50
- var _props$trigger = props.trigger,
51
- trigger = _props$trigger === void 0 ? 'click' : _props$trigger,
52
- _props$type = props.type,
53
- type = _props$type === void 0 ? 'warning' : _props$type,
54
- title = props.title,
55
- content = props.content,
56
- icon = props.icon,
57
- okText = props.okText,
58
- cancelText = props.cancelText,
59
- onOk = props.onOk,
60
- onCancel = props.onCancel,
61
- okButtonProps = props.okButtonProps,
62
- cancelButtonProps = props.cancelButtonProps,
63
- _props$placement = props.placement,
64
- placement = _props$placement === void 0 ? 'bottom' : _props$placement,
65
- className = props.className,
66
- overlayClassName = props.overlayClassName,
67
- style = props.style,
68
- children = props.children,
69
- _props$open = props.open,
70
- open = _props$open === void 0 ? false : _props$open,
71
- _props$controllable = props.controllable,
72
- controllable = _props$controllable === void 0 ? false : _props$controllable,
73
- _props$showCancel = props.showCancel,
74
- showCancel = _props$showCancel === void 0 ? true : _props$showCancel,
75
- _props$bubble = props.bubble,
76
- bubble = _props$bubble === void 0 ? true : _props$bubble,
77
- actions = props.actions,
78
- onClose = props.onClose;
79
- var intl = useFormatMessage('PopConfirm', localeJson); //打开
80
-
81
- var _useState = useState(false),
82
- _useState2 = _slicedToArray(_useState, 2),
83
- inOpen = _useState2[0],
84
- setInOpen = _useState2[1]; //取消
85
-
86
-
87
- var handleCancel = function handleCancel() {
88
- onCancel === null || onCancel === void 0 ? void 0 : onCancel();
89
- handleClose();
90
- }; //确认
91
-
92
-
93
- var handleOk = function handleOk() {
94
- onOk === null || onOk === void 0 ? void 0 : onOk();
95
- handleClose();
96
- }; //关闭
97
-
98
-
99
- var handleClose = function handleClose() {
100
- if (!controllable) {
101
- setInOpen(false);
102
- onClose === null || onClose === void 0 ? void 0 : onClose();
103
- }
104
- }; //tooltip vis
105
-
106
-
107
- var onVisibleChange = function onVisibleChange(vis) {
108
- if (!controllable) {
109
- setInOpen(vis);
110
- if (!vis) onClose === null || onClose === void 0 ? void 0 : onClose();
111
- } else {
112
- if (open) onClose === null || onClose === void 0 ? void 0 : onClose();
113
- }
114
- };
115
-
116
- useEffect(function () {
117
- if (controllable) setInOpen(open);
118
- }, [open]); //渲染内容
119
-
120
- var renderOverlay = function renderOverlay() {
121
- var btns = jsxs(Fragment, {
122
- children: [showCancel && jsx(Button, Object.assign({
123
- onClick: handleCancel,
124
- variant: 'outlined',
125
- size: 'small'
126
- }, cancelButtonProps, {
127
- children: cancelText !== null && cancelText !== void 0 ? cancelText : intl({
128
- id: 'cancel'
129
- })
130
- })), jsx(Button, Object.assign({
131
- onClick: handleOk,
132
- variant: 'contained',
133
- size: 'small'
134
- }, okButtonProps, {
135
- children: okText !== null && okText !== void 0 ? okText : intl({
136
- id: 'ok'
137
- })
138
- }))]
139
- });
140
-
141
- return jsxs("div", Object.assign({
142
- className: clsx('popconfirm-wrapper'),
143
- style: style,
144
- onClick: function onClick(evt) {
145
- if (!bubble) evt.stopPropagation();
146
- }
147
- }, {
148
- children: [jsxs("div", Object.assign({
149
- className: 'popconfirm-message'
150
- }, {
151
- children: [jsx("span", Object.assign({
152
- className: 'popconfirm-message-icon'
153
- }, {
154
- children: icon || iconMapping[type]
155
- })), jsxs("div", Object.assign({
156
- className: 'popconfirm-message-body'
157
- }, {
158
- children: [title && jsx("div", Object.assign({
159
- className: 'popconfirm-message-title'
160
- }, {
161
- children: title
162
- })), jsx("div", Object.assign({
163
- className: 'popconfirm-message-content'
164
- }, {
165
- children: content
166
- }))]
167
- }))]
168
- })), jsx("div", Object.assign({
169
- className: 'popconfirm-btns'
170
- }, {
171
- children: actions !== null && actions !== void 0 ? actions : btns
172
- }))]
173
- }));
174
- };
175
-
176
- return jsx(Tooltip, Object.assign({
177
- trigger: trigger,
178
- open: inOpen,
179
- arrow: false,
180
- placement: placement,
181
- title: renderOverlay(),
182
- onVisibleChange: onVisibleChange,
183
- overlayClassName: clsx('paraui-popconfirm', overlayClassName, className)
184
- }, {
185
- children: children
186
- }));
187
- };
188
-
189
- export { PopConfirm, PopConfirm as default };
1
+ !function(o,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("@material-ui/core"),require("@para-ui/icons/CheckCircleF"),require("@para-ui/icons/WarningCircle"),require("@para-ui/icons/CloseCircleF"),require("@para-ui/icons/WarningCircleF"),require("clsx"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/Down"),require("@para-ui/core/GlobalContext")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@para-ui/icons/CheckCircleF","@para-ui/icons/WarningCircle","@para-ui/icons/CloseCircleF","@para-ui/icons/WarningCircleF","clsx","@para-ui/icons/LoadingF","@para-ui/icons/Forbid","@para-ui/icons/Down","@para-ui/core/GlobalContext"],n):"object"==typeof exports?exports.ParaUI=n(require("react"),require("@material-ui/core"),require("@para-ui/icons/CheckCircleF"),require("@para-ui/icons/WarningCircle"),require("@para-ui/icons/CloseCircleF"),require("@para-ui/icons/WarningCircleF"),require("clsx"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/Down"),require("@para-ui/core/GlobalContext")):o.ParaUI=n(o.react,o["@material-ui/core"],o["@para-ui/icons/CheckCircleF"],o["@para-ui/icons/WarningCircle"],o["@para-ui/icons/CloseCircleF"],o["@para-ui/icons/WarningCircleF"],o.clsx,o["@para-ui/icons/LoadingF"],o["@para-ui/icons/Forbid"],o["@para-ui/icons/Down"],o["@para-ui/core/GlobalContext"])}(self,(function(o,n,t,r,i,e,a,c,u,l,p){return function(){var s={8313:function(o,n,t){(n=t(3645)(!1)).push([o.id,'@keyframes loadingSpin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.paraui-button{min-width:auto;padding:0 16px;line-height:0;text-transform:none;border-radius:4px;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;white-space:nowrap}.paraui-button-label{height:100%}.paraui-button-loading{pointer-events:none}.paraui-button-contained{color:#fff;background-color:#3666d6;box-shadow:none}.paraui-button-contained:hover{background-color:rgba(54,102,214,.8);box-shadow:none}.paraui-button-contained[disabled]{color:rgba(46,55,67,.4);background-color:rgba(171,176,185,.12);border:1px solid rgba(171,176,185,.4);box-shadow:none}.paraui-button-contained[disabled]:hover{background-color:rgba(171,176,185,.12)}.paraui-button-contained .btn-icon{display:inline-flex;color:inherit}.paraui-button-contained .btn-icon svg{color:inherit;font-size:16px}.paraui-button-contained .btn-icon.start-icon{margin-left:3px}.paraui-button-contained .btn-icon.end-icon{margin-right:3px}.paraui-button-contained .btn-icon.loading-icon{margin-left:3px;animation:loadingSpin 1s infinite linear}.paraui-button-contained.paraui-button-dangerous{background-color:#eb6054}.paraui-button-contained.paraui-button-dangerous:hover{background-color:rgba(235,96,84,.8)}.paraui-button-outlined{color:rgba(46,55,67,.7);background-color:#fff;border:1px solid rgba(171,176,185,.4);box-shadow:none}.paraui-button-outlined:hover{color:#3666d6;border-color:rgba(54,102,214,.2);background-color:#fff;box-shadow:none}.paraui-button-outlined[disabled]{color:rgba(46,55,67,.4);background-color:rgba(171,176,185,.12);border:1px solid rgba(171,176,185,.4);box-shadow:none}.paraui-button-outlined[disabled]:hover{background-color:rgba(171,176,185,.12)}.paraui-button-outlined .btn-icon{display:inline-flex;color:inherit}.paraui-button-outlined .btn-icon svg{color:inherit;font-size:16px}.paraui-button-outlined .btn-icon.start-icon{margin-left:3px}.paraui-button-outlined .btn-icon.end-icon{margin-right:3px}.paraui-button-outlined .btn-icon.loading-icon{margin-left:3px;animation:loadingSpin 1s infinite linear}.paraui-button-outlined.paraui-button-dangerous{color:#eb6054;border-color:#eb6054}.paraui-button-outlined.paraui-button-dangerous:hover{color:rgba(235,96,84,.8);border-color:rgba(235,96,84,.8)}.paraui-button-text{color:rgba(46,55,67,.7);background-color:#fff;border:1px solid rgba(171,176,185,.4);box-shadow:none;color:#3666d6;background-color:rgba(0,0,0,0);border:none}.paraui-button-text:hover{color:rgba(54,102,214,.8);background-color:rgba(0,0,0,0);box-shadow:none}.paraui-button-text[disabled]{color:rgba(46,55,67,.4);background-color:rgba(0,0,0,0);border:none}.paraui-button-text[disabled]:hover{background-color:rgba(0,0,0,0)}.paraui-button-text .btn-icon{display:inline-flex;color:inherit}.paraui-button-text .btn-icon svg{color:inherit;font-size:16px}.paraui-button-text .btn-icon.start-icon{margin-left:3px}.paraui-button-text .btn-icon.end-icon{margin-right:3px}.paraui-button-text .btn-icon.loading-icon{margin-left:3px;animation:loadingSpin 1s infinite linear}.paraui-button-text.paraui-button-dangerous{color:#eb6054}.paraui-button-text.paraui-button-dangerous:hover{color:rgba(235,96,84,.8)}.paraui-button-large{height:36px}.paraui-button-medium{height:32px}.paraui-button-small{height:28px}.paraui-button--disabled{display:inline-block}.paraui-icon-button{padding:0;border-radius:4px}.paraui-icon-button-loading{pointer-events:none}.paraui-icon-button-loading .loading-icon{display:inline-flex;animation:loadingSpin 1s infinite linear}.paraui-icon-button-contained{color:#fff;background-color:#3666d6;box-shadow:none}.paraui-icon-button-contained:hover{background-color:rgba(54,102,214,.8);box-shadow:none}.paraui-icon-button-contained[disabled]{color:rgba(46,55,67,.4);background-color:rgba(171,176,185,.12);border:1px solid rgba(171,176,185,.4);box-shadow:none}.paraui-icon-button-contained[disabled]:hover{background-color:rgba(171,176,185,.12)}.paraui-icon-button-contained svg{color:inherit;font-size:16px}.paraui-icon-button-contained.paraui-icon-button-dangerous{background-color:#eb6054}.paraui-icon-button-contained.paraui-icon-button-dangerous:hover{background-color:rgba(235,96,84,.8)}.paraui-icon-button-outlined{color:rgba(46,55,67,.7);background-color:#fff;border:1px solid rgba(171,176,185,.4);box-shadow:none}.paraui-icon-button-outlined:hover{color:#3666d6;border-color:rgba(54,102,214,.2);box-shadow:none;background-color:#fff}.paraui-icon-button-outlined[disabled]{color:rgba(46,55,67,.4);background-color:rgba(171,176,185,.12);border:1px solid rgba(171,176,185,.4);box-shadow:none}.paraui-icon-button-outlined[disabled]:hover{background-color:rgba(171,176,185,.12)}.paraui-icon-button-outlined svg{color:inherit;font-size:16px}.paraui-icon-button-outlined.paraui-icon-button-dangerous{color:#eb6054;border-color:#eb6054}.paraui-icon-button-outlined.paraui-icon-button-dangerous:hover{color:rgba(235,96,84,.8);border-color:rgba(235,96,84,.8)}.paraui-icon-button-text{color:#3666d6}.paraui-icon-button-text:hover{color:rgba(54,102,214,.8);background-color:rgba(0,0,0,0)}.paraui-icon-button-text[disabled]{color:rgba(46,55,67,.4)}.paraui-icon-button-text[disabled]:hover{background-color:rgba(0,0,0,0)}.paraui-icon-button-text svg{color:inherit}.paraui-icon-button-text.paraui-icon-button-dangerous{color:#eb6054}.paraui-icon-button-text.paraui-icon-button-dangerous:hover{color:rgba(235,96,84,.8)}.paraui-icon-button-text.paraui-icon-button-large{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-large svg{font-size:28px}.paraui-icon-button-text.paraui-icon-button-medium{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-medium svg{font-size:24px}.paraui-icon-button-text.paraui-icon-button-small{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-small svg{font-size:20px}.paraui-icon-button-large{width:36px;height:36px}.paraui-icon-button-medium{width:32px;height:32px}.paraui-icon-button-small{width:28px;height:28px}.paraui-button-split{display:inline-block}.paraui-button-split .paraui-button-split--active{color:#3666d6;box-shadow:none;background-color:#fff}.paraui-button-split-list{padding:8px 0;margin:8px 0;border-radius:4px;box-shadow:0px 2px 8px 0px rgba(171,176,185,.4);background-color:#fff}.paraui-button-split-list ul .split-li{min-width:140px;padding:11px 12px;color:#2e3743;font-size:14px;line-height:1;cursor:pointer;transition:background-color .3s,color .3s}.paraui-button-split-list ul .split-li:hover{background-color:rgba(171,176,185,.12)}.paraui-button-split-list ul .split-li.split-li--active{color:#3666d6}.paraui-button-split-list ul .split-li.split-li--active:hover{background-color:rgba(171,176,185,.12)}.paraui-button-split-list ul .split-li.split-li--disabled{color:rgba(46,55,67,.4);cursor:not-allowed}.paraui-button-split-list ul .split-li.split-li--disabled:hover{background-color:#fff}.paraui-button-split-list ul .split-li-group:not(:first-child){position:relative;margin-top:16px}.paraui-button-split-list ul .split-li-group:not(:first-child):before{content:"";position:absolute;top:-8px;left:8px;right:8px;border-top:1px solid rgba(171,176,185,.2)}',""]),o.exports=n},145:function(o,n,t){(n=t(3645)(!1)).push([o.id,".paraui-popconfirm .paraui-popconfirm-tooltip{max-width:600px;padding:0;font-size:14px;color:initial;background-color:#fff;box-shadow:0px 2px 8px 0px rgba(171,176,185,.4);border-radius:4px}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper{min-width:350px;padding:24px}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message{position:relative}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-icon{position:absolute;top:2px;color:#ffa150;line-height:0;font-size:16px}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-icon svg{color:inherit;font-size:inherit}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-body{padding-left:24px;line-height:20px;font-size:14px;color:#2e3743}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-title{font-weight:700}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-content{font-weight:400;margin-top:13px}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-btns{margin-top:32px;text-align:right}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-btns>button+button{margin-left:16px}.paraui-popconfirm-arrow{color:#fff}.paraui-popconfirm-anchor{display:inline-block}.paraui-popconfirm-anchor-wrapper{display:inline-block}",""]),o.exports=n},9929:function(o,n,t){(n=t(3645)(!1)).push([o.id,".paraui-tooltip>div{padding-left:12px;padding-right:12px;font-size:14px;font-weight:400;color:#fff;background-color:rgba(46,55,67,.7)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}",""]),o.exports=n},3645:function(o){"use strict";o.exports=function(o){var n=[];return n.toString=function(){return this.map((function(n){var t=function(o,n){var t=o[1]||"",r=o[3];if(!r)return t;if(n&&"function"==typeof btoa){var i=(a=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),e=r.sources.map((function(o){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(o," */")}));return[t].concat(e).concat([i]).join("\n")}var a,c,u;return[t].join("\n")}(n,o);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(o,t,r){"string"==typeof o&&(o=[[null,o,""]]);var i={};if(r)for(var e=0;e<this.length;e++){var a=this[e][0];null!=a&&(i[a]=!0)}for(var c=0;c<o.length;c++){var u=[].concat(o[c]);r&&i[u[0]]||(t&&(u[2]?u[2]="".concat(t," and ").concat(u[2]):u[2]=t),n.push(u))}},n}},7418:function(o){"use strict";
2
+ /*
3
+ object-assign
4
+ (c) Sindre Sorhus
5
+ @license MIT
6
+ */var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(o){if(null==o)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}o.exports=function(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de","5"===Object.getOwnPropertyNames(o)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(o){return n[o]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(o){r[o]=o})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(o,e){for(var a,c,u=i(o),l=1;l<arguments.length;l++){for(var p in a=Object(arguments[l]))t.call(a,p)&&(u[p]=a[p]);if(n){c=n(a);for(var s=0;s<c.length;s++)r.call(a,c[s])&&(u[c[s]]=a[c[s]])}}return u}},5251:function(o,n,t){"use strict";
7
+ /** @license React v17.0.2
8
+ * react-jsx-runtime.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */t(7418);var r=t(8156),i=60103;if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var e=Symbol.for;i=e("react.element"),n.Fragment=e("react.fragment")}var a=r.__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 l(o,n,t){var r,e={},l=null,p=null;for(r in void 0!==t&&(l=""+t),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(p=n.ref),n)c.call(n,r)&&!u.hasOwnProperty(r)&&(e[r]=n[r]);if(o&&o.defaultProps)for(r in n=o.defaultProps)void 0===e[r]&&(e[r]=n[r]);return{$$typeof:i,type:o,key:l,ref:p,props:e,_owner:a.current}}n.jsx=l,n.jsxs=l},5893:function(o,n,t){"use strict";o.exports=t(5251)},5822:function(o,n,t){var r=t(3379),i=t(8313);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[o.id,i,""]]);var e={insert:("body","body"),singleton:!1};r(i,e);o.exports=i.locals||{}},6084:function(o,n,t){var r=t(3379),i=t(145);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[o.id,i,""]]);var e={insert:("body","body"),singleton:!1};r(i,e);o.exports=i.locals||{}},2310:function(o,n,t){var r=t(3379),i=t(9929);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[o.id,i,""]]);var e={insert:("body","body"),singleton:!1};r(i,e);o.exports=i.locals||{}},3379:function(o,n,t){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},e=function(){var o={};return function(n){if(void 0===o[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(o){t=null}o[n]=t}return o[n]}}(),a=[];function c(o){for(var n=-1,t=0;t<a.length;t++)if(a[t].identifier===o){n=t;break}return n}function u(o,n){for(var t={},r=[],i=0;i<o.length;i++){var e=o[i],u=n.base?e[0]+n.base:e[0],l=t[u]||0,p="".concat(u," ").concat(l);t[u]=l+1;var s=c(p),d={css:e[1],media:e[2],sourceMap:e[3]};-1!==s?(a[s].references++,a[s].updater(d)):a.push({identifier:p,updater:m(d,n),references:1}),r.push(p)}return r}function l(o){var n=document.createElement("style"),r=o.attributes||{};if(void 0===r.nonce){var i=t.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(o){n.setAttribute(o,r[o])})),"function"==typeof o.insert)o.insert(n);else{var a=e(o.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}return n}var p,s=(p=[],function(o,n){return p[o]=n,p.filter(Boolean).join("\n")});function d(o,n,t,r){var i=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(o.styleSheet)o.styleSheet.cssText=s(n,i);else{var e=document.createTextNode(i),a=o.childNodes;a[n]&&o.removeChild(a[n]),a.length?o.insertBefore(e,a[n]):o.appendChild(e)}}function b(o,n,t){var r=t.css,i=t.media,e=t.sourceMap;if(i?o.setAttribute("media",i):o.removeAttribute("media"),e&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(e))))," */")),o.styleSheet)o.styleSheet.cssText=r;else{for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(document.createTextNode(r))}}var f=null,g=0;function m(o,n){var t,r,i;if(n.singleton){var e=g++;t=f||(f=l(n)),r=d.bind(null,t,e,!1),i=d.bind(null,t,e,!0)}else t=l(n),r=b.bind(null,t,n),i=function(){!function(o){if(null===o.parentNode)return!1;o.parentNode.removeChild(o)}(t)};return r(o),function(n){if(n){if(n.css===o.css&&n.media===o.media&&n.sourceMap===o.sourceMap)return;r(o=n)}else i()}}o.exports=function(o,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=i());var t=u(o=o||[],n);return function(o){if(o=o||[],"[object Array]"===Object.prototype.toString.call(o)){for(var r=0;r<t.length;r++){var i=c(t[r]);a[i].references--}for(var e=u(o,n),l=0;l<t.length;l++){var p=c(t[l]);0===a[p].references&&(a[p].updater(),a.splice(p,1))}t=e}}}},7896:function(o,n,t){"use strict";t.d(n,{default:function(){return j}});var r=t(5893),i=t(8156),e=t(670),a=t(5744),c=t.n(a),u=t(2788),l=t.n(u),p=t(3835),s=t.n(p),d=t(7371),b=t(2396),f=t.n(b),g=t(3054),m={zh:{moreActions:"更多操作"},en:{moreActions:"More actions"}},h=function(){return h=Object.assign||function(o){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i]);return o},h.apply(this,arguments)};t(5822);var x=function(){return x=Object.assign||function(o){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i]);return o},x.apply(this,arguments)},v=function(o,n){var t={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&n.indexOf(r)<0&&(t[r]=o[r]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(o);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(o,r[i])&&(t[r[i]]=o[r[i]])}return t},y=function(o){var n=o.variant,t=void 0===n?"contained":n,a=o.size,u=void 0===a?"large":a,p=o.className,b=o.disabled,f=void 0!==b&&b,g=o.children,m=o.startIcon,h=o.endIcon,y=o.loading,j=void 0!==y&&y,w=o.toolTipTitle,k=void 0===w?"":w,C=o.TooltipProps,O=o.danger,S=void 0!==O&&O,N=v(o,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","TooltipProps","danger"]),P=(0,i.useState)(!1),T=P[0],F=P[1],z=function(o){if(!T)return"start"===o&&m?(0,r.jsx)("span",x({className:c()("btn-icon","start-icon")},{children:m})):"end"===o&&h?(0,r.jsx)("span",x({className:c()("btn-icon","end-icon")},{children:h})):null;if("object"==typeof j){var n=j.delay||0;setTimeout((function(){return F(!1)}),n)}return"start"===o?(0,r.jsx)("span",x({className:"btn-icon loading-icon"},{children:(0,r.jsx)(l(),{})})):null},_=(0,r.jsx)(e.Button,x({},N,{color:"default",variant:"contained",disabled:f,disableRipple:!0,disableElevation:!0,className:c()("paraui-button",p,"paraui-button-".concat(t),"paraui-button-".concat(u),T&&"paraui-button-loading",S&&!f&&"paraui-button-dangerous"),classes:{label:"paraui-button-label"},startIcon:z("start"),endIcon:z("end")},{children:g}));return(0,i.useEffect)((function(){F(!!j)}),[j]),f&&k?(0,r.jsx)(d.default,x({},C,{title:function(){if(f&&k){return(0,r.jsxs)("span",{children:[(0,r.jsx)(s(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),k]})}return k}()},{children:(0,r.jsx)("span",x({className:"paraui-button--disabled"},{children:_}))})):_};y.IconButton=function(o){var n=o.variant,t=void 0===n?"contained":n,a=o.size,u=void 0===a?"large":a,p=o.toolTipTitle,b=void 0===p?"":p,f=o.children,g=o.className,m=o.disabled,h=void 0!==m&&m,y=o.loading,j=void 0!==y&&y,w=o.TooltipProps,k=o.danger,C=void 0!==k&&k,O=v(o,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),S=(0,i.useState)(!1),N=S[0],P=S[1],T=(0,r.jsx)(e.IconButton,x({},O,{disabled:h,disableRipple:!0,className:c()("paraui-icon-button",g,"paraui-icon-button-".concat(t),"paraui-icon-button-".concat(u),N&&"paraui-icon-button-loading",C&&!h&&"paraui-icon-button-dangerous")},{children:function(){if(!N)return f;if("object"==typeof j){var o=j.delay||0;setTimeout((function(){return P(!1)}),o)}return(0,r.jsx)("span",x({className:"loading-icon"},{children:(0,r.jsx)(l(),{})}))}()}));return(0,i.useEffect)((function(){P(!!j)}),[j]),b?(0,r.jsx)(d.default,x({},w,{title:function(){if(h&&b){return(0,r.jsxs)("span",{children:[(0,r.jsx)(s(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),b]})}return b}()},{children:h?(0,r.jsx)("span",x({className:"paraui-button--disabled"},{children:T})):T}),+N):T},y.SplitButton=function(o){var n=o.buttonText,t=o.options,a=void 0===t?[]:t,u=o.className,l=o.popperClassName,p=o.style,s=o.popperStyle,d=o.disabled,b=void 0!==d&&d,x=o.onClick,v=o.optionRender,y=o.placement,w=void 0===y?"bottom-end":y,k=o.buttonProps,C=o.iconButton,O=void 0!==C&&C,S=(0,g.Z)("Button",m),N=(0,i.useState)(!1),P=N[0],T=N[1],F=(0,i.useRef)(null),z=(0,i.useRef)(),_=(0,i.useRef)(),E=(0,i.useState)(),q=E[0],I=E[1],L=function(o,n,t){var r;o.disabled?t.stopPropagation():(I(n),T(!1),null===(r=z.current)||void 0===r||r.classList.remove("paraui-button-split--active"),null==x||x(o,t))},M=function(o){o.stopPropagation(),R();var n=o.currentTarget;_.current=window.setTimeout((function(){z.current=n,n.classList.add("paraui-button-split--active"),T(!0)}),150)},R=function(){_.current&&(clearTimeout(_.current),_.current=null)},A=function(o){var n,t;(null===(n=F.current)||void 0===n?void 0:n.contains(o.target))||(T(!1),null===(t=z.current)||void 0===t||t.classList.remove("paraui-button-split--active"))},B=function(){return(0,r.jsx)("div",h({className:"paraui-button-split-list"},{children:(0,r.jsx)("ul",{children:a.map((function(o,n){return Array.isArray(o)?function(o,n){return(0,r.jsx)("li",h({className:"split-li-group"},{children:o.map((function(o,t){var i="".concat(n,"-").concat(t);return(0,r.jsx)("div",h({className:c()("split-li",i===q&&"split-li--active",o.disabled&&"split-li--disabled"),onClick:function(n){return L(o,i,n)}},{children:(null==v?void 0:v(o))||o.label}),i)}))}),n)}(o,n):(0,r.jsx)("li",h({className:c()("split-li",n===q&&"split-li--active",o.disabled&&"split-li--disabled"),onClick:function(t){return L(o,n,t)}},{children:(null==v?void 0:v(o))||o.label}),n)}))})}))};return(0,r.jsxs)("div",h({className:c()("paraui-button-split",u),ref:F,style:p,onMouseLeave:function(o){var n;o.stopPropagation(),R(),null===(n=o.currentTarget.firstElementChild)||void 0===n||n.classList.remove("paraui-button-split--active"),T(!1)}},{children:[O?(0,r.jsx)(j.IconButton,h({variant:"text",size:"small",disabled:b},k,{onMouseEnter:M},{children:null!=n?n:S({id:"moreActions"})})):(0,r.jsx)(j,h({variant:"outlined",size:"large",startIcon:(0,r.jsx)(f(),{}),disabled:b},k,{onMouseEnter:M},{children:null!=n?n:S({id:"moreActions"})})),(0,r.jsx)(e.Popper,h({open:P,anchorEl:F.current,transition:!0,placement:w,style:h({zIndex:1500},s),className:c()("paraui-button-split-popper",l)},{children:function(o){var n=o.TransitionProps;o.placement;return(0,r.jsx)(e.Grow,h({},n,{children:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(e.ClickAwayListener,h({onClickAway:A},{children:B()}))})}))}}))]}))};var j=y},3054:function(o,n,t){"use strict";var r=t(8156),i=t.n(r),e=t(5395),a=t.n(e);n.Z=function(o,n){var t=i().useContext(a()).intlFormat;return n.zh_CN=n.zh,n.en_US=n.en,t&&t(o,n)}},7371:function(o,n,t){"use strict";var r=t(5893),i=t(670),e=t(5744),a=t.n(e),c=(t(2310),function(){return c=Object.assign||function(o){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i]);return o},c.apply(this,arguments)}),u=function(o,n){var t={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&n.indexOf(r)<0&&(t[r]=o[r]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(o);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(o,r[i])&&(t[r[i]]=o[r[i]])}return t};n.default=function(o){var n,t=o.placement,e=void 0===t?"top-start":t,l=o.className,p=o.arrow,s=void 0===p||p,d=o.PopperProps,b=o.boundariesElement,f=void 0===b?"scrollParent":b,g=u(o,["placement","className","arrow","PopperProps","boundariesElement"]),m=c(c({},o.classes),{popper:a()("paraui-tooltip",l,null===(n=o.classes)||void 0===n?void 0:n.popper,{"paraui-tooltip-left-right":(null==e?void 0:e.includes("left"))||(null==e?void 0:e.includes("right")),"paraui-tooltip-top-bottom":(null==e?void 0:e.includes("top"))||(null==e?void 0:e.includes("bottom"))})});return(0,r.jsx)(i.Tooltip,c({},g,{enterTouchDelay:0,arrow:s,placement:e,classes:m,PopperProps:c(c({},d),{modifiers:{preventOverflow:{boundariesElement:f}}})}))}},670:function(o){"use strict";o.exports=n},5395:function(o){"use strict";o.exports=p},1014:function(o){"use strict";o.exports=t},6649:function(o){"use strict";o.exports=i},2396:function(o){"use strict";o.exports=l},3835:function(o){"use strict";o.exports=u},2788:function(o){"use strict";o.exports=c},4753:function(o){"use strict";o.exports=r},595:function(o){"use strict";o.exports=e},5744:function(o){"use strict";o.exports=a},8156:function(n){"use strict";n.exports=o}},d={};function b(o){var n=d[o];if(void 0!==n)return n.exports;var t=d[o]={id:o,exports:{}};return s[o](t,t.exports,b),t.exports}b.n=function(o){var n=o&&o.__esModule?function(){return o.default}:function(){return o};return b.d(n,{a:n}),n},b.d=function(o,n){for(var t in n)b.o(n,t)&&!b.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:n[t]})},b.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)},b.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},b.nc=void 0;var f={};return function(){"use strict";b.r(f),b.d(f,{PopConfirm:function(){return w},default:function(){return k}});var o=b(5893),n=b(8156),t=b.n(n),r=b(670),i=b(1014),e=b.n(i),a=b(4753),c=b.n(a),u=b(6649),l=b.n(u),p=b(595),s=b.n(p),d=b(7896),g=b(7371),m=b(5744),h=b.n(m),x=b(3054),v={zh:{cancel:"取消",ok:"确定"},en:{cancel:"Cancel",ok:"Ok"}},y=(b(6084),function(){return y=Object.assign||function(o){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i]);return o},y.apply(this,arguments)}),j={success:(0,o.jsx)(e(),{}),warning:(0,o.jsx)(s(),{}),error:(0,o.jsx)(l(),{}),info:(0,o.jsx)(c(),{})},w=function(i){var e=i.trigger,a=void 0===e?"click":e,c=i.type,u=void 0===c?"warning":c,l=i.title,p=i.content,s=i.icon,b=i.okText,f=i.cancelText,m=i.onOk,w=i.onCancel,k=i.okButtonProps,C=i.cancelButtonProps,O=i.placement,S=void 0===O?"bottom":O,N=i.className,P=i.style,T=i.children,F=i.open,z=void 0!==F&&F,_=i.controllable,E=void 0!==_&&_,q=i.showCancel,I=void 0===q||q,L=i.bubble,M=void 0===L||L,R=i.actions,A=i.onClose,B=(0,x.Z)("PopConfirm",v),U=t().useRef(),W={interactive:!0,arrow:!1},D="click"===a;D||E?(W.disableFocusListener=!0,W.disableHoverListener=!0,W.disableTouchListener=!0):W.disableFocusListener=!0;var H=(0,n.useState)(!1),G=H[0],J=H[1],Y=function(){E||(J(!1),null==A||A())},Z=function(){J(!0)},$=function(){null==w||w(),Y()},K=function(){null==m||m(),Y()},Q=function(o){U.current&&U.current.contains(o.target)||(E||J(!1),null==A||A())};(0,n.useEffect)((function(){E&&J(z)}),[z]);var V,X;return(0,o.jsx)(o.Fragment,{children:(X=(0,o.jsx)("span",y({className:"paraui-popconfirm-anchor"},{children:T})),D&&(X=(0,o.jsx)(r.ClickAwayListener,y({onClickAway:Q},{children:(0,o.jsx)("span",y({className:"paraui-popconfirm-anchor",onClick:Z},{children:T}))}))),(0,o.jsx)(g.default,y({open:G,placement:S},W,{title:(V=(0,o.jsxs)(o.Fragment,{children:[I&&(0,o.jsx)(d.default,y({onClick:$,variant:"outlined",size:"small"},C,{children:null!=f?f:B({id:"cancel"})})),(0,o.jsx)(d.default,y({onClick:K,variant:"contained",size:"small"},k,{children:null!=b?b:B({id:"ok"})}))]}),(0,o.jsxs)("div",y({className:h()("popconfirm-wrapper"),ref:U,style:P,onClick:function(o){M||o.stopPropagation()}},{children:[(0,o.jsxs)("div",y({className:"popconfirm-message"},{children:[(0,o.jsx)("span",y({className:"popconfirm-message-icon"},{children:s||j[u]})),(0,o.jsxs)("div",y({className:"popconfirm-message-body"},{children:[l&&(0,o.jsx)("div",y({className:"popconfirm-message-title"},{children:l})),(0,o.jsx)("div",y({className:"popconfirm-message-content"},{children:p}))]}))]})),(0,o.jsx)("div",y({className:"popconfirm-btns"},{children:null!=R?R:V}))]}))),onClose:Y,onOpen:Z,classes:{popper:h()("paraui-popconfirm",N),tooltip:"paraui-popconfirm-tooltip",arrow:"paraui-popconfirm-arrow"}},{children:(0,o.jsx)("span",y({className:"paraui-popconfirm-anchor-wrapper"},{children:X}))})))})},k=w}(),f}()}));
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ cancel: string;
3
+ ok: string;
4
+ };
5
+ export default _default;
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ cancel: string;
3
+ ok: string;
4
+ };
5
+ export default _default;
@@ -1,21 +1,14 @@
1
- import React__default, { FC } from 'react';
2
- import { T as TooltipProps } from '../_verture/interface-a77a851e.js';
3
- import styleInject from './node_modules/style-inject/dist/style-inject.es.js';
4
- import 'rc-tooltip/lib/Tooltip';
5
-
6
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/6/7 上午11:06\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-popover {\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1500;\n font-weight: 400;\n white-space: normal;\n text-align: left;\n cursor: auto;\n user-select: text;\n}\n.paraui-popover::after {\n position: absolute;\n background: rgba(255, 255, 255, 0.01);\n content: \"\";\n}\n.paraui-popover-hidden {\n display: none;\n}\n.paraui-popover-inner {\n background-color: rgb(255, 255, 255);\n background-clip: padding-box;\n border-radius: 4px;\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n}\n.paraui-popover-title {\n min-height: 32px;\n margin: 0;\n padding: 4px 16px;\n color: rgb(46, 55, 67);\n font-weight: 400;\n border-bottom: 1px solid #f0f0f0;\n}\n.paraui-popover-inner-content {\n color: rgb(46, 55, 67);\n}\n.paraui-popover-buttons {\n margin-bottom: 4px;\n text-align: right;\n}\n.paraui-popover-buttons button {\n margin-left: 8px;\n}\n.paraui-popover-arrow {\n position: absolute;\n display: block;\n width: 16px;\n height: 16px;\n overflow: hidden;\n background: transparent;\n pointer-events: none;\n}\n.paraui-popover-arrow-content {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 11.3137085px;\n height: 11.3137085px;\n margin: auto;\n background-color: rgb(255, 255, 255);\n content: \"\";\n border-radius: 0 0 4px;\n pointer-events: none;\n}\n.paraui-popover-arrow-content::before {\n position: absolute;\n top: -11.3137085px;\n left: -11.3137085px;\n width: 33.9411255px;\n height: 33.9411255px;\n background: rgb(255, 255, 255) -10px -10px no-repeat;\n content: \"\";\n -webkit-clip-path: path(\"M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z\");\n}\n.paraui-popover-placement-top .paraui-popover-arrow, .paraui-popover-placement-topLeft .paraui-popover-arrow, .paraui-popover-placement-topRight .paraui-popover-arrow {\n bottom: -0.6862915px;\n}\n.paraui-popover-placement-top .paraui-popover-arrow-content, .paraui-popover-placement-topLeft .paraui-popover-arrow-content, .paraui-popover-placement-topRight .paraui-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateY(-1px) rotate(45deg);\n}\n.paraui-popover-placement-top .paraui-popover-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.paraui-popover-placement-topLeft .paraui-popover-arrow {\n left: 16px;\n}\n.paraui-popover-placement-topRight .paraui-popover-arrow {\n right: 16px;\n}\n.paraui-popover-placement-right .paraui-popover-arrow, .paraui-popover-placement-rightTop .paraui-popover-arrow, .paraui-popover-placement-rightBottom .paraui-popover-arrow {\n left: -0.6862915px;\n}\n.paraui-popover-placement-right .paraui-popover-arrow-content, .paraui-popover-placement-rightTop .paraui-popover-arrow-content, .paraui-popover-placement-rightBottom .paraui-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(1px) rotate(135deg);\n}\n.paraui-popover-placement-right .paraui-popover-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.paraui-popover-placement-rightTop .paraui-popover-arrow {\n top: 12px;\n}\n.paraui-popover-placement-rightBottom .paraui-popover-arrow {\n bottom: 12px;\n}\n.paraui-popover-placement-bottom .paraui-popover-arrow, .paraui-popover-placement-bottomLeft .paraui-popover-arrow, .paraui-popover-placement-bottomRight .paraui-popover-arrow {\n top: -0.6862915px;\n}\n.paraui-popover-placement-bottom .paraui-popover-arrow-content, .paraui-popover-placement-bottomLeft .paraui-popover-arrow-content, .paraui-popover-placement-bottomRight .paraui-popover-arrow-content {\n box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.06);\n transform: translateY(1px) rotate(-135deg);\n}\n.paraui-popover-placement-bottom .paraui-popover-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.paraui-popover-placement-bottomLeft .paraui-popover-arrow {\n left: 16px;\n}\n.paraui-popover-placement-bottomRight .paraui-popover-arrow {\n right: 16px;\n}\n.paraui-popover-placement-left .paraui-popover-arrow, .paraui-popover-placement-leftTop .paraui-popover-arrow, .paraui-popover-placement-leftBottom .paraui-popover-arrow {\n right: -0.6862915px;\n}\n.paraui-popover-placement-left .paraui-popover-arrow-content, .paraui-popover-placement-leftTop .paraui-popover-arrow-content, .paraui-popover-placement-leftBottom .paraui-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(-1px) rotate(-45deg);\n}\n.paraui-popover-placement-left .paraui-popover-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.paraui-popover-placement-leftTop .paraui-popover-arrow {\n top: 12px;\n}\n.paraui-popover-placement-leftBottom .paraui-popover-arrow {\n bottom: 12px;\n}\n\n.paraui-popover-zoom-big-enter,\n.paraui-popover-zoom-big-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.paraui-popover-zoom-big-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.paraui-popover-zoom-big-enter.paraui-popover-zoom-big-enter-active,\n.paraui-popover-zoom-big-appear.paraui-popover-zoom-big-appear-active {\n animation-name: parauiPopoverZoomBigIn;\n animation-play-state: running;\n}\n\n.paraui-popover-zoom-big-leave.paraui-popover-zoom-big-leave-active {\n animation-name: parauiPopoverZoomBigOut;\n animation-play-state: running;\n pointer-events: none;\n}\n\n.paraui-popover-zoom-big-enter,\n.paraui-popover-zoom-big-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n\n.paraui-popover-zoom-big-enter-prepare,\n.paraui-popover-zoom-big-appear-prepare {\n transform: none;\n}\n\n.paraui-popover-zoom-big-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n\n@keyframes parauiPopoverZoomBigIn {\n 0% {\n transform: scale(0.8);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes parauiPopoverZoomBigOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.8);\n opacity: 0;\n }\n}";
7
- styleInject(css_248z);
8
-
9
1
  /**
10
- * @author Hanz
11
- * @date 2022/6/7 上午10:54
12
- * @description popover
2
+ * @author linhd
3
+ * @date 2021/8/12 18:25
4
+ * @description 弹出框
13
5
  */
14
-
15
- interface PopoverProps extends TooltipProps {
16
- title?: React__default.ReactNode;
17
- content?: React__default.ReactNode;
6
+ import { FunctionComponent } from 'react';
7
+ import { PopoverProps as MuiPopoverProps } from '@material-ui/core';
8
+ import './index.scss';
9
+ export interface PopoverProps extends MuiPopoverProps {
10
+ /** 样式class */
11
+ className?: string;
18
12
  }
19
- declare const Popover: FC<PopoverProps>;
20
-
21
- export { Popover, PopoverProps, Popover as default };
13
+ export declare const Popover: FunctionComponent<PopoverProps>;
14
+ export default Popover;