@para-ui/core 2.2.4 → 2.2.5-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) hide show
  1. package/AutoBox/index.d.ts +12 -6
  2. package/AutoBox/index.js +203 -15
  3. package/AutoTips/index.d.ts +12 -6
  4. package/AutoTips/index.js +84 -15
  5. package/Breadcrumbs/index.d.ts +13 -7
  6. package/Breadcrumbs/index.js +227 -15
  7. package/Button/index.d.ts +92 -11
  8. package/Button/index.js +348 -14
  9. package/ButtonGroup/index.d.ts +21 -9
  10. package/ButtonGroup/index.js +128 -14
  11. package/Carousel/index.d.ts +17 -11
  12. package/Carousel/index.js +74 -15
  13. package/Cascader/index.d.ts +12 -7
  14. package/Cascader/index.js +166 -15
  15. package/Checkbox/index.d.ts +13 -7
  16. package/Checkbox/index.js +105 -14
  17. package/CheckboxGroup/index.d.ts +15 -9
  18. package/CheckboxGroup/index.js +138 -14
  19. package/Collapse/index.d.ts +49 -14
  20. package/Collapse/index.js +171 -15
  21. package/CollapseBox/index.d.ts +11 -5
  22. package/CollapseBox/index.js +164 -15
  23. package/ColorPicker/index.d.ts +4 -4
  24. package/ColorPicker/index.js +4 -1
  25. package/ComboSelect/index.d.ts +306 -6
  26. package/ComboSelect/index.js +1803 -14
  27. package/Container/index.d.ts +13 -8
  28. package/Container/index.js +239 -15
  29. package/DatePicker/index.d.ts +30 -17
  30. package/DatePicker/index.js +733 -14
  31. package/Desktop/index.d.ts +14 -6
  32. package/Desktop/index.js +853 -14
  33. package/Drawer/index.d.ts +92 -6
  34. package/Drawer/index.js +186 -14
  35. package/Dropdown/index.d.ts +29 -0
  36. package/Dropdown/index.js +67 -0
  37. package/Empty/index.d.ts +16 -10
  38. package/Empty/index.js +644 -14
  39. package/Form/index.d.ts +11 -9
  40. package/Form/index.js +384 -14
  41. package/FormItem/index.d.ts +5 -152
  42. package/FormItem/index.js +81 -14
  43. package/FunctionModal/index.d.ts +14 -3
  44. package/FunctionModal/index.js +39 -14
  45. package/GlobalContext/index.d.ts +38 -8
  46. package/GlobalContext/index.js +41 -16
  47. package/Help/index.d.ts +16 -10
  48. package/Help/index.js +39 -15
  49. package/HelperText/index.d.ts +11 -5
  50. package/HelperText/index.js +29 -15
  51. package/InputLang/index.d.ts +13 -7
  52. package/InputLang/index.js +270 -14
  53. package/InputNumber/index.d.ts +16 -10
  54. package/InputNumber/index.js +308 -14
  55. package/Label/index.d.ts +12 -6
  56. package/Label/index.js +81 -14
  57. package/Loading/index.d.ts +12 -6
  58. package/Loading/index.js +47 -15
  59. package/Menu/index.d.ts +123 -5
  60. package/Menu/index.js +1232 -14
  61. package/Message/index.d.ts +11 -5
  62. package/Message/index.js +222 -15
  63. package/Modal/index.d.ts +142 -40
  64. package/Modal/index.js +443 -14
  65. package/MultiBox/index.d.ts +13 -7
  66. package/MultiBox/index.js +231 -14
  67. package/Notification/index.d.ts +22 -16
  68. package/Notification/index.js +266 -15
  69. package/OperateBtn/index.d.ts +16 -10
  70. package/OperateBtn/index.js +260 -14
  71. package/PageHeader/index.d.ts +178 -5
  72. package/PageHeader/index.js +1171 -14
  73. package/Pagination/index.d.ts +12 -6
  74. package/Pagination/index.js +469 -14
  75. package/ParauiProvider/index.d.ts +9 -8
  76. package/ParauiProvider/index.js +53 -15
  77. package/PopConfirm/index.d.ts +23 -10
  78. package/PopConfirm/index.js +189 -14
  79. package/Popover/index.d.ts +18 -11
  80. package/Popover/index.js +66 -15
  81. package/Progress/index.d.ts +18 -12
  82. package/Progress/index.js +358 -20
  83. package/Querying/index.d.ts +15 -9
  84. package/Querying/index.js +762 -14
  85. package/Radio/index.d.ts +13 -7
  86. package/Radio/index.js +94 -14
  87. package/RadioGroup/index.d.ts +15 -9
  88. package/RadioGroup/index.js +128 -14
  89. package/Search/index.d.ts +18 -12
  90. package/Search/index.js +220 -14
  91. package/Select/index.d.ts +13 -7
  92. package/Select/index.js +1288 -14
  93. package/SelectInput/index.d.ts +11 -5
  94. package/SelectInput/index.js +51 -14
  95. package/SingleBox/index.d.ts +13 -7
  96. package/SingleBox/index.js +194 -14
  97. package/Slider/index.d.ts +104 -7
  98. package/Slider/index.js +125 -15
  99. package/Split/index.d.ts +8 -3
  100. package/Split/index.js +134 -15
  101. package/Stepper/index.d.ts +41 -25
  102. package/Stepper/index.js +99 -15
  103. package/Switch/index.d.ts +16 -10
  104. package/Switch/index.js +73 -14
  105. package/Table/index.d.ts +12 -4
  106. package/Table/index.js +2725 -14
  107. package/Tabs/index.d.ts +64 -29
  108. package/Tabs/index.js +218 -14
  109. package/Tag/index.d.ts +78 -12
  110. package/Tag/index.js +286 -14
  111. package/Test/index.d.ts +3 -2
  112. package/Test/index.js +9 -16
  113. package/TextField/index.d.ts +22 -16
  114. package/TextField/index.js +686 -14
  115. package/TimePicker/index.d.ts +20 -10
  116. package/TimePicker/index.js +77 -14
  117. package/Timeline/index.d.ts +49 -13
  118. package/Timeline/index.js +150 -15
  119. package/ToggleButton/index.d.ts +61 -10
  120. package/ToggleButton/index.js +200 -14
  121. package/Tooltip/index.d.ts +12 -10
  122. package/Tooltip/index.js +335 -15
  123. package/Transfer/index.d.ts +8 -3
  124. package/Transfer/index.js +343 -14
  125. package/Tree/index.d.ts +8 -5
  126. package/Tree/index.js +35 -14
  127. package/Upload/index.d.ts +179 -8
  128. package/Upload/index.js +1542 -14
  129. package/_verture/defineProperty-0590dc61.js +16 -0
  130. package/_verture/index-0d8e1d07.js +4 -0
  131. package/_verture/index-14a47097.js +4 -0
  132. package/_verture/index-342379c6.js +391 -0
  133. package/_verture/index-458032d7.js +10 -0
  134. package/_verture/index-46bfb2f0.js +778 -0
  135. package/_verture/index-50401de7.js +4 -0
  136. package/_verture/index-5b08df83.js +4 -0
  137. package/_verture/index-6190b129.js +4 -0
  138. package/_verture/index-7ef1e3b6.js +1553 -0
  139. package/_verture/index-a369ca3f.js +4 -0
  140. package/_verture/index-c60911dc.js +39 -0
  141. package/_verture/index-e2881a53.js +16 -0
  142. package/_verture/index-ff4c2a27.js +200 -0
  143. package/{Tree/interface.d.ts → _verture/interface-128abdd3.js} +15 -25
  144. package/_verture/interface-a77a851e.js +25 -0
  145. package/{Table/interface.d.ts → _verture/interface-a9b7c716.js} +20 -28
  146. package/_verture/intl-336570e4.js +65 -0
  147. package/_verture/modalContext-25890584.js +228 -0
  148. package/_verture/modalContext-639f2787.js +58 -0
  149. package/_verture/slicedToArray-d7722f4b.js +62 -0
  150. package/_verture/style-inject.es-300983ab.js +28 -0
  151. package/_verture/toConsumableArray-f8047a75.js +19 -0
  152. package/_verture/tslib.es6-55ed4bd2.js +38 -0
  153. package/_verture/typeof-498dd2b1.js +11 -0
  154. package/_verture/useFormatMessage-ac9d6acf.js +20 -0
  155. package/_verture/useGlobalProps-af9a2af6.js +12 -0
  156. package/index.d.ts +88 -128
  157. package/index.js +160 -19
  158. package/package.json +59 -22
  159. package/Button/SplitButton.d.ts +0 -61
  160. package/Button/lang/en_US.d.ts +0 -4
  161. package/Button/lang/index.d.ts +0 -9
  162. package/Button/lang/zh_CN.d.ts +0 -4
  163. package/Cascader/lang/en_US.d.ts +0 -4
  164. package/Cascader/lang/index.d.ts +0 -9
  165. package/Cascader/lang/zh_CN.d.ts +0 -4
  166. package/Collapse/collapsePanel.d.ts +0 -30
  167. package/Collapse/motion.d.ts +0 -5
  168. package/Collapse/util.d.ts +0 -11
  169. package/CollapseBox/util.d.ts +0 -5
  170. package/ComboSelect/WithTabsCombo/index.d.ts +0 -11
  171. package/ComboSelect/WithTabsCombo/interface.d.ts +0 -141
  172. package/ComboSelect/interface.d.ts +0 -143
  173. package/ComboSelect/lang/en_US.d.ts +0 -8
  174. package/ComboSelect/lang/index.d.ts +0 -17
  175. package/ComboSelect/lang/zh_CN.d.ts +0 -8
  176. package/ComboSelect/utils.d.ts +0 -12
  177. package/DatePicker/PickerButton.d.ts +0 -3
  178. package/DatePicker/PickerTag.d.ts +0 -3
  179. package/DatePicker/generatePicker/generateRangePicker.d.ts +0 -4
  180. package/DatePicker/generatePicker/generateSinglePicker.d.ts +0 -11
  181. package/DatePicker/generatePicker/index.d.ts +0 -77
  182. package/DatePicker/lang/en_US.d.ts +0 -3
  183. package/DatePicker/lang/index.d.ts +0 -7
  184. package/DatePicker/lang/zh_CN.d.ts +0 -3
  185. package/DatePicker/util.d.ts +0 -20
  186. package/Drawer/interface.d.ts +0 -83
  187. package/Drawer/lang/en_US.d.ts +0 -5
  188. package/Drawer/lang/index.d.ts +0 -11
  189. package/Drawer/lang/zh_CN.d.ts +0 -5
  190. package/Empty/images/index.d.ts +0 -2
  191. package/Empty/lang/en_US.d.ts +0 -6
  192. package/Empty/lang/index.d.ts +0 -13
  193. package/Empty/lang/zh_CN.d.ts +0 -6
  194. package/FormItem/compoments/defaultCompoments/index.d.ts +0 -19
  195. package/FormItem/compoments/formCheckboxGroup/index.d.ts +0 -8
  196. package/FormItem/compoments/formFile/index.d.ts +0 -38
  197. package/FormItem/compoments/formRadioGroup/index.d.ts +0 -8
  198. package/FormItem/compoments/formSelect/index.d.ts +0 -18
  199. package/FormItem/errorTips.d.ts +0 -12
  200. package/FormItem/itemType.d.ts +0 -42
  201. package/FormItem/validateFunction.d.ts +0 -15
  202. package/FunctionModal/dialog.d.ts +0 -58
  203. package/FunctionModal/modalContext.d.ts +0 -14
  204. package/GlobalContext/componentsProps.d.ts +0 -19
  205. package/GlobalContext/confirmLocale.d.ts +0 -7
  206. package/GlobalContext/intl.d.ts +0 -34
  207. package/GlobalContext/useFormatMessage.d.ts +0 -3
  208. package/Hooks/useGlobalProps.d.ts +0 -1
  209. package/Menu/footerExpansion.d.ts +0 -9
  210. package/Menu/interface.d.ts +0 -139
  211. package/Menu/logo.d.ts +0 -9
  212. package/Menu/verticalMenuList.d.ts +0 -14
  213. package/Modal/Confirm/index.d.ts +0 -66
  214. package/Modal/lang/en_US.d.ts +0 -5
  215. package/Modal/lang/index.d.ts +0 -11
  216. package/Modal/lang/zh_CN.d.ts +0 -5
  217. package/OperateBtn/lang/en_US.d.ts +0 -4
  218. package/OperateBtn/lang/index.d.ts +0 -9
  219. package/OperateBtn/lang/zh_CN.d.ts +0 -4
  220. package/PageHeader/horizontalMeun.d.ts +0 -9
  221. package/PageHeader/horizontalMeunRight.d.ts +0 -9
  222. package/PageHeader/interface.d.ts +0 -167
  223. package/Pagination/lang/en_US.d.ts +0 -8
  224. package/Pagination/lang/index.d.ts +0 -17
  225. package/Pagination/lang/zh_CN.d.ts +0 -8
  226. package/PopConfirm/lang/en_US.d.ts +0 -5
  227. package/PopConfirm/lang/index.d.ts +0 -11
  228. package/PopConfirm/lang/zh_CN.d.ts +0 -5
  229. package/Popper/index.d.ts +0 -13
  230. package/Popper/index.js +0 -16
  231. package/Progress/Line.d.ts +0 -47
  232. package/Progress/Steps.d.ts +0 -17
  233. package/Progress/utils.d.ts +0 -6
  234. package/Querying/images/index.d.ts +0 -2
  235. package/Querying/lang/en_US.d.ts +0 -4
  236. package/Querying/lang/index.d.ts +0 -9
  237. package/Querying/lang/zh_CN.d.ts +0 -4
  238. package/README.md +0 -489
  239. package/Select/lang/en_US.d.ts +0 -5
  240. package/Select/lang/index.d.ts +0 -11
  241. package/Select/lang/zh_CN.d.ts +0 -5
  242. package/Slider/interface.d.ts +0 -102
  243. package/Stepper/icons.d.ts +0 -5
  244. package/Table/lang/en_US.d.ts +0 -6
  245. package/Table/lang/index.d.ts +0 -13
  246. package/Table/lang/zh_CN.d.ts +0 -6
  247. package/Table/tableBody.d.ts +0 -9
  248. package/Table/tableBodyElement/index.d.ts +0 -15
  249. package/Table/tableBodyInterface.d.ts +0 -67
  250. package/Table/tableContainer/index.d.ts +0 -16
  251. package/Table/tableElement/index.d.ts +0 -17
  252. package/Table/tableHead.d.ts +0 -9
  253. package/Table/tableHeadElement/index.d.ts +0 -15
  254. package/Table/tableHeadInterface.d.ts +0 -30
  255. package/Table/tablePagination.d.ts +0 -9
  256. package/Table/tablePaginationInterFace.d.ts +0 -24
  257. package/Table/tdElement/index.d.ts +0 -15
  258. package/Table/thElement/index.d.ts +0 -15
  259. package/Table/trElement/index.d.ts +0 -15
  260. package/Table/util.d.ts +0 -16
  261. package/Tag/TagGroup.d.ts +0 -66
  262. package/TimePicker/locale/en_US.d.ts +0 -3
  263. package/TimePicker/locale/zh_CN.d.ts +0 -3
  264. package/TimePicker/style/index.d.ts +0 -1
  265. package/ToggleButton/ToggleButtonGroup.d.ts +0 -49
  266. package/Transfer/lang/en_US.d.ts +0 -6
  267. package/Transfer/lang/index.d.ts +0 -13
  268. package/Transfer/lang/zh_CN.d.ts +0 -6
  269. package/Tree/OperateBar/index.d.ts +0 -13
  270. package/Tree/Tree.d.ts +0 -4
  271. package/Tree/lang/en_US.d.ts +0 -8
  272. package/Tree/lang/index.d.ts +0 -17
  273. package/Tree/lang/zh_CN.d.ts +0 -8
  274. package/Tree/utils/closestPolyfill.d.ts +0 -0
  275. package/Tree/utils/tools.d.ts +0 -26
  276. package/Tree/utils/treeUtil.d.ts +0 -15
  277. package/Upload/Dragger/index.d.ts +0 -10
  278. package/Upload/ErroTip/index.d.ts +0 -13
  279. package/Upload/ImageUpload/index.d.ts +0 -14
  280. package/Upload/ImgCrop/EasyCrop.d.ts +0 -17
  281. package/Upload/ImgCrop/constants.d.ts +0 -7
  282. package/Upload/ImgCrop/index.d.ts +0 -6
  283. package/Upload/ImgCrop/interface.d.ts +0 -24
  284. package/Upload/UploadList/index.d.ts +0 -5
  285. package/Upload/interface.d.ts +0 -134
  286. package/Upload/lang/en_US.d.ts +0 -12
  287. package/Upload/lang/index.d.ts +0 -25
  288. package/Upload/lang/zh_CN.d.ts +0 -12
  289. package/cdn/AutoBox/index.js +0 -29
  290. package/cdn/AutoTips/index.js +0 -40
  291. package/cdn/Breadcrumbs/index.js +0 -53
  292. package/cdn/Button/index.js +0 -79
  293. package/cdn/ButtonGroup/index.js +0 -79
  294. package/cdn/Carousel/index.js +0 -6
  295. package/cdn/Cascader/index.js +0 -42
  296. package/cdn/Checkbox/index.js +0 -53
  297. package/cdn/CheckboxGroup/index.js +0 -53
  298. package/cdn/Collapse/index.js +0 -27
  299. package/cdn/CollapseBox/index.js +0 -1
  300. package/cdn/ColorPicker/index.js +0 -1
  301. package/cdn/ComboSelect/index.js +0 -438
  302. package/cdn/Container/index.js +0 -1
  303. package/cdn/DatePicker/index.js +0 -185
  304. package/cdn/Desktop/index.js +0 -24
  305. package/cdn/Drawer/index.js +0 -84
  306. package/cdn/Empty/index.js +0 -1
  307. package/cdn/Form/index.js +0 -477
  308. package/cdn/FormItem/index.js +0 -477
  309. package/cdn/FunctionModal/index.js +0 -144
  310. package/cdn/GlobalContext/index.js +0 -1
  311. package/cdn/Help/index.js +0 -53
  312. package/cdn/HelperText/index.js +0 -1
  313. package/cdn/InputLang/index.js +0 -144
  314. package/cdn/InputNumber/index.js +0 -118
  315. package/cdn/Label/index.js +0 -53
  316. package/cdn/Loading/index.js +0 -14
  317. package/cdn/Menu/index.js +0 -40
  318. package/cdn/Message/index.js +0 -53
  319. package/cdn/Modal/index.js +0 -144
  320. package/cdn/MultiBox/index.js +0 -131
  321. package/cdn/Notification/index.js +0 -66
  322. package/cdn/OperateBtn/index.js +0 -92
  323. package/cdn/PageHeader/index.js +0 -92
  324. package/cdn/Pagination/index.js +0 -214
  325. package/cdn/ParauiProvider/index.js +0 -9
  326. package/cdn/PopConfirm/index.js +0 -131
  327. package/cdn/Popover/index.js +0 -16
  328. package/cdn/Popper/index.js +0 -26
  329. package/cdn/Progress/index.js +0 -58
  330. package/cdn/Querying/index.js +0 -1
  331. package/cdn/Radio/index.js +0 -53
  332. package/cdn/RadioGroup/index.js +0 -53
  333. package/cdn/Search/index.js +0 -144
  334. package/cdn/Select/index.js +0 -131
  335. package/cdn/SelectInput/index.js +0 -131
  336. package/cdn/SingleBox/index.js +0 -131
  337. package/cdn/Slider/index.js +0 -16
  338. package/cdn/Split/index.js +0 -1
  339. package/cdn/Stepper/index.js +0 -154
  340. package/cdn/Switch/index.js +0 -71
  341. package/cdn/Table/index.js +0 -292
  342. package/cdn/Tabs/index.js +0 -165
  343. package/cdn/Tag/index.js +0 -27
  344. package/cdn/Test/index.js +0 -1
  345. package/cdn/TextField/index.js +0 -105
  346. package/cdn/TimePicker/index.js +0 -185
  347. package/cdn/Timeline/index.js +0 -16
  348. package/cdn/ToggleButton/index.js +0 -79
  349. package/cdn/Tooltip/index.js +0 -40
  350. package/cdn/Transfer/index.js +0 -170
  351. package/cdn/Tree/index.js +0 -170
  352. package/cdn/Upload/index.js +0 -252
  353. package/style.css +0 -72
@@ -1,12 +1,13 @@
1
1
  import { ReactNode } from 'react';
2
- import { ThemeOptions } from '@material-ui/core/styles';
3
2
  import { GlobalContextProps } from '@para-ui/core/GlobalContext';
4
- import '../Styles/index.scss';
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
+
5
8
  interface Props extends GlobalContextProps {
6
- children: ReactNode;
7
- theme?: ThemeOptions;
8
- seed?: string;
9
- productionPrefix?: string;
9
+ children?: ReactNode;
10
10
  }
11
- export declare const ParauiProvider: (props: Props) => JSX.Element;
12
- export default ParauiProvider;
11
+ declare const ParauiProvider: (props: Props) => JSX.Element;
12
+
13
+ export { ParauiProvider, ParauiProvider as default };
@@ -1,15 +1,53 @@
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
+ 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,14 +1,24 @@
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
+
1
14
  /**
2
15
  * @author Hanz
3
16
  * @date 2021/8/9 下午3:45
4
17
  * @description popConfirm
5
18
  */
6
- import React, { FunctionComponent, ReactNode } from 'react';
7
- import { ButtonProps } from "../Button";
8
- import { TooltipProps } from "../Tooltip";
9
- import './index.scss';
19
+
10
20
  declare type ConfirmType = "success" | "info" | "error" | "warning";
11
- export interface PopConfirmProps {
21
+ interface PopConfirmProps {
12
22
  /**触发方式*/
13
23
  trigger?: 'click' | 'hover';
14
24
  /** 是否显示弹框,controllable为true时可用 */
@@ -31,8 +41,6 @@ export interface PopConfirmProps {
31
41
  onOk?: Function;
32
42
  /** 取消回调*/
33
43
  onCancel?: Function;
34
- /** 关闭时回调*/
35
- onClose?: Function;
36
44
  /** 确定按钮属性*/
37
45
  okButtonProps?: ButtonProps;
38
46
  /** 取消按钮属性*/
@@ -41,8 +49,10 @@ export interface PopConfirmProps {
41
49
  placement?: TooltipProps['placement'];
42
50
  /** cls*/
43
51
  className?: string;
52
+ /** overlayClassName */
53
+ overlayClassName?: string;
44
54
  /** 自定义样式*/
45
- style?: React.CSSProperties;
55
+ style?: React__default.CSSProperties;
46
56
  /** 子节点*/
47
57
  children?: ReactNode;
48
58
  /**显示取消按钮*/
@@ -51,6 +61,9 @@ export interface PopConfirmProps {
51
61
  bubble?: boolean;
52
62
  /**底部按钮*/
53
63
  actions?: ReactNode;
64
+ /** 关闭回调*/
65
+ onClose?: () => void;
54
66
  }
55
- export declare const PopConfirm: FunctionComponent<PopConfirmProps>;
56
- export default PopConfirm;
67
+ declare const PopConfirm: FunctionComponent<PopConfirmProps>;
68
+
69
+ export { PopConfirm, PopConfirmProps, PopConfirm as default };
@@ -1,14 +1,189 @@
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}()}));
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,14 +1,21 @@
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
+
1
9
  /**
2
- * @author linhd
3
- * @date 2021/8/12 18:25
4
- * @description 弹出框
10
+ * @author Hanz
11
+ * @date 2022/6/7 上午10:54
12
+ * @description popover
5
13
  */
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;
14
+
15
+ interface PopoverProps extends TooltipProps {
16
+ title?: React__default.ReactNode;
17
+ content?: React__default.ReactNode;
12
18
  }
13
- export declare const Popover: FunctionComponent<PopoverProps>;
14
- export default Popover;
19
+ declare const Popover: FC<PopoverProps>;
20
+
21
+ export { Popover, PopoverProps, Popover as default };