@para-ui/core 2.1.32 → 2.1.35

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 (556) hide show
  1. package/.eslintignore +12 -0
  2. package/README.md +31 -0
  3. package/babel.config.js +7 -0
  4. package/docs/App.tsx +277 -0
  5. package/docs/Router.tsx +79 -0
  6. package/docs/assets/1.jpeg +0 -0
  7. package/docs/assets/P.svg +1 -0
  8. package/docs/assets/icon.ico +0 -0
  9. package/docs/assets/icon.png +0 -0
  10. package/docs/assets/logo.png +0 -0
  11. package/docs/config/interceptors.ts +73 -0
  12. package/docs/config/router.tsx +212 -0
  13. package/docs/context/global.tsx +65 -0
  14. package/docs/index.tsx +42 -0
  15. package/docs/locale/index.ts +64 -0
  16. package/docs/locale/lang/en_US.ts +16 -0
  17. package/docs/locale/lang/zh_CN.ts +16 -0
  18. package/docs/react-app-env.d.ts +18 -0
  19. package/docs/services/api.ts +6 -0
  20. package/docs/styles/index.scss +31 -0
  21. package/docs/view/autoBox/api.tsx +67 -0
  22. package/docs/view/autoBox/codeString.tsx +137 -0
  23. package/docs/view/autoBox/index.scss +15 -0
  24. package/docs/view/autoBox/index.tsx +97 -0
  25. package/docs/view/autoTips/api.tsx +49 -0
  26. package/docs/view/autoTips/codeString.tsx +34 -0
  27. package/{Tree/utils/closestPolyfill.d.ts → docs/view/autoTips/index.scss} +0 -0
  28. package/docs/view/autoTips/index.tsx +53 -0
  29. package/docs/view/breadcrumbs/api.tsx +72 -0
  30. package/docs/view/breadcrumbs/codeString.tsx +160 -0
  31. package/docs/view/breadcrumbs/index.scss +14 -0
  32. package/docs/view/breadcrumbs/index.tsx +173 -0
  33. package/docs/view/button/api.tsx +131 -0
  34. package/docs/view/button/codeString.tsx +153 -0
  35. package/docs/view/button/index.scss +23 -0
  36. package/docs/view/button/index.tsx +165 -0
  37. package/docs/view/buttonGroup/api.tsx +55 -0
  38. package/docs/view/buttonGroup/codeString.tsx +108 -0
  39. package/docs/view/buttonGroup/index.scss +9 -0
  40. package/docs/view/buttonGroup/index.tsx +93 -0
  41. package/docs/view/carousel/api.tsx +165 -0
  42. package/docs/view/carousel/codeString.tsx +207 -0
  43. package/docs/view/carousel/index.scss +12 -0
  44. package/docs/view/carousel/index.tsx +174 -0
  45. package/docs/view/cascader/api.tsx +116 -0
  46. package/docs/view/cascader/codeString.tsx +584 -0
  47. package/docs/view/cascader/index.scss +0 -0
  48. package/docs/view/cascader/index.tsx +261 -0
  49. package/docs/view/checkbox/api.tsx +148 -0
  50. package/docs/view/checkbox/codeString.tsx +215 -0
  51. package/docs/view/checkbox/index.scss +0 -0
  52. package/docs/view/checkbox/index.tsx +233 -0
  53. package/docs/view/collapse/api.tsx +109 -0
  54. package/docs/view/collapse/codeString.tsx +186 -0
  55. package/docs/view/collapse/index.scss +0 -0
  56. package/docs/view/collapse/index.tsx +171 -0
  57. package/docs/view/colorPicker/api.tsx +30 -0
  58. package/docs/view/colorPicker/codeString.tsx +58 -0
  59. package/docs/view/colorPicker/index.scss +5 -0
  60. package/docs/view/colorPicker/index.tsx +39 -0
  61. package/docs/view/comboSelect/api.tsx +255 -0
  62. package/docs/view/comboSelect/codeString.tsx +629 -0
  63. package/docs/view/comboSelect/index.scss +5 -0
  64. package/docs/view/comboSelect/index.tsx +402 -0
  65. package/docs/view/container/api.tsx +61 -0
  66. package/docs/view/container/codeString.tsx +64 -0
  67. package/docs/view/container/index.scss +0 -0
  68. package/docs/view/container/index.tsx +84 -0
  69. package/docs/view/datePicker/api.tsx +264 -0
  70. package/docs/view/datePicker/codeString.tsx +185 -0
  71. package/docs/view/datePicker/index.scss +8 -0
  72. package/docs/view/datePicker/index.tsx +205 -0
  73. package/docs/view/drawer/api.tsx +123 -0
  74. package/docs/view/drawer/codeString.tsx +122 -0
  75. package/docs/view/drawer/index.scss +5 -0
  76. package/docs/view/drawer/index.tsx +200 -0
  77. package/docs/view/empty/api.tsx +57 -0
  78. package/docs/view/empty/codeString.tsx +38 -0
  79. package/docs/view/empty/index.scss +11 -0
  80. package/docs/view/empty/index.tsx +43 -0
  81. package/docs/view/form/api.tsx +266 -0
  82. package/docs/view/form/codeString.tsx +203 -0
  83. package/docs/view/form/index.scss +0 -0
  84. package/docs/view/form/index.tsx +225 -0
  85. package/docs/view/help/api.tsx +58 -0
  86. package/docs/view/help/codeString.tsx +39 -0
  87. package/docs/view/help/index.scss +5 -0
  88. package/docs/view/help/index.tsx +40 -0
  89. package/docs/view/helperText/api.tsx +31 -0
  90. package/docs/view/helperText/codeString.tsx +16 -0
  91. package/docs/view/helperText/index.scss +0 -0
  92. package/docs/view/helperText/index.tsx +33 -0
  93. package/docs/view/home/index.scss +55 -0
  94. package/docs/view/home/index.tsx +119 -0
  95. package/docs/view/icons/index.scss +48 -0
  96. package/docs/view/icons/index.tsx +87 -0
  97. package/docs/view/inputLang/api.tsx +99 -0
  98. package/docs/view/inputLang/codeString.tsx +66 -0
  99. package/docs/view/inputLang/index.scss +0 -0
  100. package/docs/view/inputLang/index.tsx +85 -0
  101. package/docs/view/inputNumber/api.tsx +169 -0
  102. package/docs/view/inputNumber/codeString.tsx +129 -0
  103. package/docs/view/inputNumber/index.scss +0 -0
  104. package/docs/view/inputNumber/index.tsx +141 -0
  105. package/docs/view/label/api.tsx +63 -0
  106. package/docs/view/label/codeString.tsx +63 -0
  107. package/docs/view/label/index.scss +0 -0
  108. package/docs/view/label/index.tsx +82 -0
  109. package/docs/view/loading/api.tsx +26 -0
  110. package/docs/view/loading/codeString.tsx +13 -0
  111. package/docs/view/loading/index.scss +0 -0
  112. package/docs/view/loading/index.tsx +38 -0
  113. package/docs/view/menu/api.tsx +227 -0
  114. package/docs/view/menu/codeString.tsx +302 -0
  115. package/docs/view/menu/index.scss +42 -0
  116. package/docs/view/menu/index.tsx +289 -0
  117. package/docs/view/message/api.tsx +35 -0
  118. package/docs/view/message/codeString.tsx +73 -0
  119. package/docs/view/message/index.scss +7 -0
  120. package/docs/view/message/index.tsx +64 -0
  121. package/docs/view/modal/api.tsx +141 -0
  122. package/docs/view/modal/codeString.tsx +222 -0
  123. package/docs/view/modal/index.scss +9 -0
  124. package/docs/view/modal/index.tsx +222 -0
  125. package/docs/view/multiBox/api.tsx +99 -0
  126. package/docs/view/multiBox/codeString.tsx +104 -0
  127. package/docs/view/multiBox/index.scss +0 -0
  128. package/docs/view/multiBox/index.tsx +123 -0
  129. package/docs/view/notification/api.tsx +148 -0
  130. package/docs/view/notification/codeString.tsx +110 -0
  131. package/docs/view/notification/index.scss +9 -0
  132. package/docs/view/notification/index.tsx +118 -0
  133. package/docs/view/operateBtn/api.tsx +127 -0
  134. package/docs/view/operateBtn/codeString.tsx +165 -0
  135. package/docs/view/operateBtn/index.scss +0 -0
  136. package/docs/view/operateBtn/index.tsx +160 -0
  137. package/docs/view/pageHeader/api.tsx +321 -0
  138. package/docs/view/pageHeader/codeString.tsx +252 -0
  139. package/docs/view/pageHeader/index.scss +6 -0
  140. package/docs/view/pageHeader/index.tsx +291 -0
  141. package/docs/view/pagination/api.tsx +71 -0
  142. package/docs/view/pagination/codeString.tsx +45 -0
  143. package/docs/view/pagination/index.scss +0 -0
  144. package/docs/view/pagination/index.tsx +54 -0
  145. package/docs/view/popConfirm/api.tsx +96 -0
  146. package/docs/view/popConfirm/codeString.tsx +130 -0
  147. package/docs/view/popConfirm/index.scss +33 -0
  148. package/docs/view/popConfirm/index.tsx +167 -0
  149. package/docs/view/popover/api.tsx +80 -0
  150. package/docs/view/popover/codeString.tsx +40 -0
  151. package/docs/view/popover/index.scss +4 -0
  152. package/docs/view/popover/index.tsx +53 -0
  153. package/docs/view/querying/api.tsx +46 -0
  154. package/docs/view/querying/codeString.tsx +28 -0
  155. package/docs/view/querying/index.scss +11 -0
  156. package/docs/view/querying/index.tsx +35 -0
  157. package/docs/view/radio/api.tsx +142 -0
  158. package/docs/view/radio/codeString.tsx +136 -0
  159. package/docs/view/radio/index.scss +0 -0
  160. package/docs/view/radio/index.tsx +154 -0
  161. package/docs/view/search/api.tsx +132 -0
  162. package/docs/view/search/codeString.tsx +164 -0
  163. package/docs/view/search/index.scss +0 -0
  164. package/docs/view/search/index.tsx +142 -0
  165. package/docs/view/select/api.tsx +195 -0
  166. package/docs/view/select/codeString.tsx +379 -0
  167. package/docs/view/select/index.scss +12 -0
  168. package/docs/view/select/index.tsx +370 -0
  169. package/docs/view/selectInput/api.tsx +161 -0
  170. package/docs/view/selectInput/codeString.tsx +171 -0
  171. package/docs/view/selectInput/index.scss +12 -0
  172. package/docs/view/selectInput/index.tsx +167 -0
  173. package/docs/view/singleBox/api.tsx +89 -0
  174. package/docs/view/singleBox/codeString.tsx +94 -0
  175. package/docs/view/singleBox/index.scss +0 -0
  176. package/docs/view/singleBox/index.tsx +111 -0
  177. package/docs/view/slider/api.tsx +135 -0
  178. package/docs/view/slider/codeString.tsx +99 -0
  179. package/docs/view/slider/index.scss +11 -0
  180. package/docs/view/slider/index.tsx +95 -0
  181. package/docs/view/stepper/api.tsx +49 -0
  182. package/docs/view/stepper/codeString.tsx +64 -0
  183. package/docs/view/stepper/index.scss +3 -0
  184. package/docs/view/stepper/index.tsx +57 -0
  185. package/docs/view/switch/api.tsx +70 -0
  186. package/docs/view/switch/codeString.tsx +48 -0
  187. package/docs/view/switch/index.scss +16 -0
  188. package/docs/view/switch/index.tsx +50 -0
  189. package/docs/view/table/api.tsx +330 -0
  190. package/docs/view/table/codeString.tsx +737 -0
  191. package/docs/view/table/index.scss +0 -0
  192. package/docs/view/table/index.tsx +549 -0
  193. package/docs/view/tabs/api.tsx +106 -0
  194. package/docs/view/tabs/codeString.tsx +243 -0
  195. package/docs/view/tabs/index.scss +5 -0
  196. package/docs/view/tabs/index.tsx +132 -0
  197. package/docs/view/tag/api.tsx +119 -0
  198. package/docs/view/tag/codeString.tsx +95 -0
  199. package/docs/view/tag/index.scss +5 -0
  200. package/docs/view/tag/index.tsx +91 -0
  201. package/docs/view/textField/api.tsx +229 -0
  202. package/docs/view/textField/codeString.tsx +251 -0
  203. package/docs/view/textField/index.scss +3 -0
  204. package/docs/view/textField/index.tsx +327 -0
  205. package/docs/view/timeLine/api.tsx +43 -0
  206. package/docs/view/timeLine/codeString.tsx +85 -0
  207. package/docs/view/timeLine/index.scss +5 -0
  208. package/docs/view/timeLine/index.tsx +73 -0
  209. package/docs/view/timePicker/api.tsx +178 -0
  210. package/docs/view/timePicker/codeString.tsx +66 -0
  211. package/docs/view/timePicker/index.scss +8 -0
  212. package/docs/view/timePicker/index.tsx +75 -0
  213. package/docs/view/toggleButton/api.tsx +100 -0
  214. package/docs/view/toggleButton/codeString.tsx +152 -0
  215. package/docs/view/toggleButton/index.scss +5 -0
  216. package/docs/view/toggleButton/index.tsx +108 -0
  217. package/docs/view/toolTip/api.tsx +96 -0
  218. package/docs/view/toolTip/codeString.tsx +42 -0
  219. package/docs/view/toolTip/index.scss +5 -0
  220. package/docs/view/toolTip/index.tsx +44 -0
  221. package/docs/view/transfer/api.tsx +33 -0
  222. package/docs/view/transfer/codeString.tsx +44 -0
  223. package/docs/view/transfer/index.scss +0 -0
  224. package/docs/view/transfer/index.tsx +59 -0
  225. package/docs/view/tree/api.tsx +413 -0
  226. package/docs/view/tree/codeString.tsx +437 -0
  227. package/docs/view/tree/index.scss +5 -0
  228. package/docs/view/tree/index.tsx +362 -0
  229. package/docs/view/upload/api.tsx +302 -0
  230. package/docs/view/upload/codeString.tsx +248 -0
  231. package/docs/view/upload/index.scss +7 -0
  232. package/docs/view/upload/index.tsx +207 -0
  233. package/package.json +1 -1
  234. package/publish.sh +5 -0
  235. package/run.js +43 -0
  236. package/scripts/extract-css.js +9 -0
  237. package/temp/main.js +1103 -0
  238. package/{style.css → temp/style.css} +5 -5
  239. package/tsconfig.json +40 -0
  240. package/webpack.cdn.config.js +81 -0
  241. package/webpack.config.js +249 -0
  242. package/webpack.extract.css.js +86 -0
  243. package/AutoBox/index.d.ts +0 -34
  244. package/AutoBox/index.js +0 -28
  245. package/AutoTips/index.d.ts +0 -25
  246. package/AutoTips/index.js +0 -15
  247. package/Breadcrumbs/index.d.ts +0 -39
  248. package/Breadcrumbs/index.js +0 -28
  249. package/Button/SplitButton.d.ts +0 -56
  250. package/Button/index.d.ts +0 -56
  251. package/Button/index.js +0 -53
  252. package/Button/lang/en_US.d.ts +0 -4
  253. package/Button/lang/index.d.ts +0 -9
  254. package/Button/lang/zh_CN.d.ts +0 -4
  255. package/ButtonGroup/index.d.ts +0 -33
  256. package/ButtonGroup/index.js +0 -53
  257. package/Carousel/index.d.ts +0 -30
  258. package/Carousel/index.js +0 -15
  259. package/Cascader/index.d.ts +0 -52
  260. package/Cascader/index.js +0 -41
  261. package/Cascader/lang/en_US.d.ts +0 -4
  262. package/Cascader/lang/index.d.ts +0 -9
  263. package/Cascader/lang/zh_CN.d.ts +0 -4
  264. package/Checkbox/index.d.ts +0 -40
  265. package/Checkbox/index.js +0 -27
  266. package/CheckboxGroup/index.d.ts +0 -46
  267. package/CheckboxGroup/index.js +0 -27
  268. package/Collapse/collapsePanel.d.ts +0 -30
  269. package/Collapse/index.d.ts +0 -57
  270. package/Collapse/index.js +0 -28
  271. package/Collapse/motion.d.ts +0 -5
  272. package/Collapse/util.d.ts +0 -11
  273. package/ColorPicker/index.d.ts +0 -4
  274. package/ColorPicker/index.js +0 -1
  275. package/ComBox/index.d.ts +0 -16
  276. package/ComBox/index.js +0 -16
  277. package/ComBox/interface.d.ts +0 -5
  278. package/ComboSelect/WithTabsCombo/index.d.ts +0 -11
  279. package/ComboSelect/WithTabsCombo/interface.d.ts +0 -141
  280. package/ComboSelect/index.d.ts +0 -11
  281. package/ComboSelect/index.js +0 -391
  282. package/ComboSelect/interface.d.ts +0 -139
  283. package/ComboSelect/lang/en_US.d.ts +0 -8
  284. package/ComboSelect/lang/index.d.ts +0 -17
  285. package/ComboSelect/lang/zh_CN.d.ts +0 -8
  286. package/ComboSelect/utils.d.ts +0 -13
  287. package/Container/index.d.ts +0 -77
  288. package/Container/index.js +0 -15
  289. package/DatePicker/PickerButton.d.ts +0 -3
  290. package/DatePicker/PickerTag.d.ts +0 -3
  291. package/DatePicker/generatePicker/generateRangePicker.d.ts +0 -4
  292. package/DatePicker/generatePicker/generateSinglePicker.d.ts +0 -11
  293. package/DatePicker/generatePicker/index.d.ts +0 -77
  294. package/DatePicker/index.d.ts +0 -18
  295. package/DatePicker/index.js +0 -144
  296. package/DatePicker/lang/en_US.d.ts +0 -3
  297. package/DatePicker/lang/index.d.ts +0 -7
  298. package/DatePicker/lang/zh_CN.d.ts +0 -3
  299. package/DatePicker/util.d.ts +0 -20
  300. package/Desktop/index.d.ts +0 -55
  301. package/Desktop/index.js +0 -14
  302. package/Drawer/index.d.ts +0 -11
  303. package/Drawer/index.js +0 -53
  304. package/Drawer/interface.d.ts +0 -78
  305. package/Drawer/lang/en_US.d.ts +0 -5
  306. package/Drawer/lang/index.d.ts +0 -11
  307. package/Drawer/lang/zh_CN.d.ts +0 -5
  308. package/Empty/images/index.d.ts +0 -2
  309. package/Empty/index.d.ts +0 -29
  310. package/Empty/index.js +0 -14
  311. package/Empty/lang/en_US.d.ts +0 -6
  312. package/Empty/lang/index.d.ts +0 -13
  313. package/Empty/lang/zh_CN.d.ts +0 -6
  314. package/Form/index.d.ts +0 -154
  315. package/Form/index.js +0 -209
  316. package/FormItem/compoments/formCheckboxGroup/index.d.ts +0 -8
  317. package/FormItem/compoments/formFile/index.d.ts +0 -38
  318. package/FormItem/compoments/formRadioGroup/index.d.ts +0 -8
  319. package/FormItem/compoments/formSelect/index.d.ts +0 -18
  320. package/FormItem/errorTips.d.ts +0 -10
  321. package/FormItem/index.d.ts +0 -130
  322. package/FormItem/index.js +0 -209
  323. package/FormItem/itemType.d.ts +0 -42
  324. package/FormItem/validateFunction.d.ts +0 -15
  325. package/FunctionModal/dialog.d.ts +0 -58
  326. package/FunctionModal/index.d.ts +0 -8
  327. package/FunctionModal/index.js +0 -118
  328. package/FunctionModal/modalContext.d.ts +0 -14
  329. package/GlobalContext/componentsProps.d.ts +0 -15
  330. package/GlobalContext/confirmLocale.d.ts +0 -7
  331. package/GlobalContext/index.d.ts +0 -28
  332. package/GlobalContext/index.js +0 -16
  333. package/GlobalContext/intl.d.ts +0 -34
  334. package/GlobalContext/useFormatMessage.d.ts +0 -3
  335. package/Help/index.d.ts +0 -20
  336. package/Help/index.js +0 -28
  337. package/HelperText/index.d.ts +0 -19
  338. package/HelperText/index.js +0 -15
  339. package/InputLang/index.d.ts +0 -49
  340. package/InputLang/index.js +0 -118
  341. package/InputNumber/index.d.ts +0 -74
  342. package/InputNumber/index.js +0 -79
  343. package/Label/index.d.ts +0 -35
  344. package/Label/index.js +0 -27
  345. package/Loading/index.d.ts +0 -17
  346. package/Loading/index.js +0 -28
  347. package/Menu/footerExpansion.d.ts +0 -9
  348. package/Menu/index.d.ts +0 -10
  349. package/Menu/index.js +0 -53
  350. package/Menu/interface.d.ts +0 -137
  351. package/Menu/logo.d.ts +0 -9
  352. package/Menu/verticalMenuList.d.ts +0 -14
  353. package/Message/index.d.ts +0 -59
  354. package/Message/index.js +0 -67
  355. package/Modal/Confirm/index.d.ts +0 -62
  356. package/Modal/index.d.ts +0 -61
  357. package/Modal/index.js +0 -118
  358. package/Modal/lang/en_US.d.ts +0 -5
  359. package/Modal/lang/index.d.ts +0 -11
  360. package/Modal/lang/zh_CN.d.ts +0 -5
  361. package/MultiBox/index.d.ts +0 -54
  362. package/MultiBox/index.js +0 -105
  363. package/Notification/index.d.ts +0 -52
  364. package/Notification/index.js +0 -67
  365. package/OperateBtn/index.d.ts +0 -59
  366. package/OperateBtn/index.js +0 -66
  367. package/OperateBtn/lang/en_US.d.ts +0 -4
  368. package/OperateBtn/lang/index.d.ts +0 -9
  369. package/OperateBtn/lang/zh_CN.d.ts +0 -4
  370. package/PageHeader/horizontalMeun.d.ts +0 -9
  371. package/PageHeader/horizontalMeunRight.d.ts +0 -9
  372. package/PageHeader/index.d.ts +0 -10
  373. package/PageHeader/index.js +0 -66
  374. package/PageHeader/interface.d.ts +0 -167
  375. package/Pagination/index.d.ts +0 -33
  376. package/Pagination/index.js +0 -183
  377. package/Pagination/lang/en_US.d.ts +0 -8
  378. package/Pagination/lang/index.d.ts +0 -17
  379. package/Pagination/lang/zh_CN.d.ts +0 -8
  380. package/ParauiProvider/index.d.ts +0 -12
  381. package/ParauiProvider/index.js +0 -15
  382. package/PopConfirm/index.d.ts +0 -50
  383. package/PopConfirm/index.js +0 -105
  384. package/PopConfirm/lang/en_US.d.ts +0 -5
  385. package/PopConfirm/lang/index.d.ts +0 -11
  386. package/PopConfirm/lang/zh_CN.d.ts +0 -5
  387. package/Popover/index.d.ts +0 -14
  388. package/Popover/index.js +0 -15
  389. package/Popper/index.d.ts +0 -13
  390. package/Popper/index.js +0 -16
  391. package/Querying/images/index.d.ts +0 -2
  392. package/Querying/index.d.ts +0 -25
  393. package/Querying/index.js +0 -14
  394. package/Querying/lang/en_US.d.ts +0 -4
  395. package/Querying/lang/index.d.ts +0 -9
  396. package/Querying/lang/zh_CN.d.ts +0 -4
  397. package/Radio/index.d.ts +0 -38
  398. package/Radio/index.js +0 -27
  399. package/RadioGroup/index.d.ts +0 -47
  400. package/RadioGroup/index.js +0 -27
  401. package/Search/index.d.ts +0 -56
  402. package/Search/index.js +0 -118
  403. package/Select/index.d.ts +0 -85
  404. package/Select/index.js +0 -105
  405. package/Select/lang/en_US.d.ts +0 -5
  406. package/Select/lang/index.d.ts +0 -11
  407. package/Select/lang/zh_CN.d.ts +0 -5
  408. package/Select/selectCom.d.ts +0 -11
  409. package/SelectInput/index.d.ts +0 -11
  410. package/SelectInput/index.js +0 -105
  411. package/SingleBox/index.d.ts +0 -42
  412. package/SingleBox/index.js +0 -105
  413. package/Slider/index.d.ts +0 -14
  414. package/Slider/index.js +0 -15
  415. package/Slider/interface.d.ts +0 -102
  416. package/Split/index.d.ts +0 -7
  417. package/Split/index.js +0 -15
  418. package/Stepper/icons.d.ts +0 -5
  419. package/Stepper/index.d.ts +0 -39
  420. package/Stepper/index.js +0 -145
  421. package/Switch/index.d.ts +0 -78
  422. package/Switch/index.js +0 -40
  423. package/Table/index.d.ts +0 -9
  424. package/Table/index.js +0 -261
  425. package/Table/interface.d.ts +0 -200
  426. package/Table/lang/en_US.d.ts +0 -6
  427. package/Table/lang/index.d.ts +0 -13
  428. package/Table/lang/zh_CN.d.ts +0 -6
  429. package/Table/tableBody.d.ts +0 -9
  430. package/Table/tableBodyElement/index.d.ts +0 -15
  431. package/Table/tableBodyInterface.d.ts +0 -67
  432. package/Table/tableCom.d.ts +0 -11
  433. package/Table/tableContainer/index.d.ts +0 -16
  434. package/Table/tableElement/index.d.ts +0 -17
  435. package/Table/tableHead.d.ts +0 -9
  436. package/Table/tableHeadElement/index.d.ts +0 -15
  437. package/Table/tableHeadInterface.d.ts +0 -30
  438. package/Table/tablePagination.d.ts +0 -9
  439. package/Table/tablePaginationInterFace.d.ts +0 -24
  440. package/Table/tdElement/index.d.ts +0 -15
  441. package/Table/thElement/index.d.ts +0 -15
  442. package/Table/trElement/index.d.ts +0 -15
  443. package/Table/util.d.ts +0 -16
  444. package/Tabs/index.d.ts +0 -48
  445. package/Tabs/index.js +0 -131
  446. package/Tag/TagGroup.d.ts +0 -66
  447. package/Tag/index.d.ts +0 -34
  448. package/Tag/index.js +0 -40
  449. package/TextField/index.d.ts +0 -93
  450. package/TextField/index.js +0 -79
  451. package/TextField/textFieldCom.d.ts +0 -11
  452. package/TimePicker/index.d.ts +0 -22
  453. package/TimePicker/index.js +0 -144
  454. package/TimePicker/locale/en_US.d.ts +0 -3
  455. package/TimePicker/locale/zh_CN.d.ts +0 -3
  456. package/TimePicker/style/index.d.ts +0 -1
  457. package/Timeline/index.d.ts +0 -22
  458. package/Timeline/index.js +0 -15
  459. package/ToggleButton/ToggleButtonGroup.d.ts +0 -45
  460. package/ToggleButton/index.d.ts +0 -49
  461. package/ToggleButton/index.js +0 -53
  462. package/Tooltip/index.d.ts +0 -11
  463. package/Tooltip/index.js +0 -15
  464. package/Transfer/index.d.ts +0 -17
  465. package/Transfer/index.js +0 -144
  466. package/Transfer/lang/en_US.d.ts +0 -6
  467. package/Transfer/lang/index.d.ts +0 -13
  468. package/Transfer/lang/zh_CN.d.ts +0 -6
  469. package/Tree/OperateBar/index.d.ts +0 -13
  470. package/Tree/Tree.d.ts +0 -4
  471. package/Tree/index.d.ts +0 -5
  472. package/Tree/index.js +0 -131
  473. package/Tree/interface.d.ts +0 -201
  474. package/Tree/lang/en_US.d.ts +0 -8
  475. package/Tree/lang/index.d.ts +0 -17
  476. package/Tree/lang/zh_CN.d.ts +0 -8
  477. package/Tree/utils/tools.d.ts +0 -26
  478. package/Tree/utils/treeUtil.d.ts +0 -15
  479. package/Upload/Dragger/index.d.ts +0 -10
  480. package/Upload/ErroTip/index.d.ts +0 -13
  481. package/Upload/ImageUpload/index.d.ts +0 -14
  482. package/Upload/ImgCrop/EasyCrop.d.ts +0 -17
  483. package/Upload/ImgCrop/constants.d.ts +0 -7
  484. package/Upload/ImgCrop/index.d.ts +0 -6
  485. package/Upload/ImgCrop/interface.d.ts +0 -24
  486. package/Upload/UploadList/index.d.ts +0 -5
  487. package/Upload/index.d.ts +0 -15
  488. package/Upload/index.js +0 -196
  489. package/Upload/interface.d.ts +0 -134
  490. package/Upload/lang/en_US.d.ts +0 -12
  491. package/Upload/lang/index.d.ts +0 -25
  492. package/Upload/lang/zh_CN.d.ts +0 -12
  493. package/cdn/AutoBox/index.js +0 -29
  494. package/cdn/AutoTips/index.js +0 -40
  495. package/cdn/Breadcrumbs/index.js +0 -53
  496. package/cdn/Button/index.js +0 -79
  497. package/cdn/ButtonGroup/index.js +0 -79
  498. package/cdn/Carousel/index.js +0 -6
  499. package/cdn/Cascader/index.js +0 -40
  500. package/cdn/Checkbox/index.js +0 -53
  501. package/cdn/CheckboxGroup/index.js +0 -53
  502. package/cdn/Collapse/index.js +0 -27
  503. package/cdn/ColorPicker/index.js +0 -1
  504. package/cdn/ComBox/index.js +0 -1
  505. package/cdn/ComboSelect/index.js +0 -438
  506. package/cdn/Container/index.js +0 -1
  507. package/cdn/DatePicker/index.js +0 -183
  508. package/cdn/Desktop/index.js +0 -24
  509. package/cdn/Drawer/index.js +0 -84
  510. package/cdn/Empty/index.js +0 -1
  511. package/cdn/Form/index.js +0 -248
  512. package/cdn/FormItem/index.js +0 -248
  513. package/cdn/FunctionModal/index.js +0 -144
  514. package/cdn/GlobalContext/index.js +0 -1
  515. package/cdn/Help/index.js +0 -53
  516. package/cdn/HelperText/index.js +0 -1
  517. package/cdn/InputLang/index.js +0 -144
  518. package/cdn/InputNumber/index.js +0 -118
  519. package/cdn/Label/index.js +0 -53
  520. package/cdn/Loading/index.js +0 -14
  521. package/cdn/Menu/index.js +0 -55
  522. package/cdn/Message/index.js +0 -53
  523. package/cdn/Modal/index.js +0 -144
  524. package/cdn/MultiBox/index.js +0 -131
  525. package/cdn/Notification/index.js +0 -66
  526. package/cdn/OperateBtn/index.js +0 -92
  527. package/cdn/PageHeader/index.js +0 -92
  528. package/cdn/Pagination/index.js +0 -214
  529. package/cdn/ParauiProvider/index.js +0 -9
  530. package/cdn/PopConfirm/index.js +0 -131
  531. package/cdn/Popover/index.js +0 -16
  532. package/cdn/Popper/index.js +0 -26
  533. package/cdn/Querying/index.js +0 -1
  534. package/cdn/Radio/index.js +0 -53
  535. package/cdn/RadioGroup/index.js +0 -53
  536. package/cdn/Search/index.js +0 -144
  537. package/cdn/Select/index.js +0 -131
  538. package/cdn/SelectInput/index.js +0 -131
  539. package/cdn/SingleBox/index.js +0 -131
  540. package/cdn/Slider/index.js +0 -14
  541. package/cdn/Split/index.js +0 -1
  542. package/cdn/Stepper/index.js +0 -154
  543. package/cdn/Switch/index.js +0 -71
  544. package/cdn/Table/index.js +0 -292
  545. package/cdn/Tabs/index.js +0 -165
  546. package/cdn/Tag/index.js +0 -27
  547. package/cdn/TextField/index.js +0 -105
  548. package/cdn/TimePicker/index.js +0 -183
  549. package/cdn/Timeline/index.js +0 -16
  550. package/cdn/ToggleButton/index.js +0 -79
  551. package/cdn/Tooltip/index.js +0 -40
  552. package/cdn/Transfer/index.js +0 -170
  553. package/cdn/Tree/index.js +0 -170
  554. package/cdn/Upload/index.js +0 -249
  555. package/index.d.ts +0 -124
  556. package/index.js +0 -690
package/Cascader/index.js DELETED
@@ -1,41 +0,0 @@
1
- !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("rc-cascader"),require("@para-ui/core/GlobalContext")):"function"==typeof define&&define.amd?define(["react","rc-cascader","@para-ui/core/GlobalContext"],n):"object"==typeof exports?exports.ParaUI=n(require("react"),require("rc-cascader"),require("@para-ui/core/GlobalContext")):e.ParaUI=n(e.react,e["rc-cascader"],e["@para-ui/core/GlobalContext"])}(self,(function(e,n,t){return function(){var r={7692:function(e,n,t){var r;self,e.exports=(r=t(8156),function(){var e={466:function(e,n,t){(n=t(3645)(!1)).push([e.id,".paraui-icon{width:1em;height:1em;fill:currentColor;display:inline-block;user-select:none;flex-shrink:0}.paraui-icon-primary{color:#3666d6}.paraui-icon-secondary{color:#3666d6}.paraui-icon-thirdary{color:#3666d6}.paraui-icon-small{font-size:16px}.paraui-icon-medium{font-size:18px}.paraui-icon-large{font-size:20px}\n",""]),e.exports=n},3645:function(e){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=function(e,n){var t,r,o,a=e[1]||"",i=e[3];if(!i)return a;if(n&&"function"==typeof btoa){var c=(t=i,r=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),s=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[a].concat(s).concat([c]).join("\n")}return[a].join("\n")}(n,e);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);r&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),n.push(s))}},n}},7418:function(e){"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 o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,c,s=o(e),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))t.call(i,l)&&(s[l]=i[l]);if(n){c=n(i);for(var f=0;f<c.length;f++)r.call(i,c[f])&&(s[c[f]]=i[c[f]])}}return s}},5251:function(e,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),o=60103;if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),n.Fragment=a("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,n,t){var r,a={},u=null,l=null;for(r in void 0!==t&&(u=""+t),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(l=n.ref),n)c.call(n,r)&&!s.hasOwnProperty(r)&&(a[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===a[r]&&(a[r]=n[r]);return{$$typeof:o,type:e,key:u,ref:l,props:a,_owner:i.current}}n.jsx=u,n.jsxs=u},5893:function(e,n,t){"use strict";e.exports=t(5251)},7856:function(e,n,t){var r=t(3379),o=t(466);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]),r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3379:function(e,n,t){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function c(e){for(var n=-1,t=0;t<i.length;t++)if(i[t].identifier===e){n=t;break}return n}function s(e,n){for(var t={},r=[],o=0;o<e.length;o++){var a=e[o],s=n.base?a[0]+n.base:a[0],u=t[s]||0,l="".concat(s," ").concat(u);t[s]=u+1;var f=c(l),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==f?(i[f].references++,i[f].updater(d)):i.push({identifier:l,updater:h(d,n),references:1}),r.push(l)}return r}function u(e){var n=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=t.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){n.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(n);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}return n}var l,f=(l=[],function(e,n){return l[e]=n,l.filter(Boolean).join("\n")});function d(e,n,t,r){var o=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(n,o);else{var a=document.createTextNode(o),i=e.childNodes;i[n]&&e.removeChild(i[n]),i.length?e.insertBefore(a,i[n]):e.appendChild(a)}}function p(e,n,t){var r=t.css,o=t.media,a=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,m=0;function h(e,n){var t,r,o;if(n.singleton){var a=m++;t=v||(v=u(n)),r=d.bind(null,t,a,!1),o=d.bind(null,t,a,!0)}else t=u(n),r=p.bind(null,t,n),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return r(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else o()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=o());var t=s(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<t.length;r++){var o=c(t[r]);i[o].references--}for(var a=s(e,n),u=0;u<t.length;u++){var l=c(t[u]);0===i[l].references&&(i[l].updater(),i.splice(l,1))}t=a}}}},4939:function(e,n,t){"use strict";var r=t(5893),o=(t(7856),function(){return o=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},o.apply(this,arguments)}),a=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};n.default=function(e){var n,t=e.path,i=e.className,c=e.color,s=void 0===c?"primary":c,u=e.size,l=void 0===u?"small":u,f=e.dataName,d=void 0===f?"":f,p=a(e,["path","className","color","size","dataName"]);return(0,r.jsx)("svg",o({className:(n="paraui-icon",n+=" svg-icon",i&&(n+=" "+i),s&&(n+=" paraui-icon-"+s),l&&(n+=" paraui-icon-"+l),n),viewBox:"0 0 1024 1024","data-name":d},p,{children:t}),void 0)}},8156:function(e){"use strict";e.exports=r}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var a=n[r]={id:r,exports:{}};return e[r](a,a.exports,t),a.exports}t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";t.r(o),t.d(o,{Loading:function(){return a}});var e=t(5893),n=t(4939),r=function(){return r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},r.apply(this,arguments)},a=function(t){return(0,e.jsx)(n.default,r({dataName:"Loading",path:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M511.232 315.861333a42.666667 42.666667 0 0 1-42.666667-42.666666v-142.506667a42.666667 42.666667 0 0 1 85.333334 0v142.506667a42.666667 42.666667 0 0 1-42.666667 42.666666z"},void 0),(0,e.jsx)("path",{d:"M341.418667 386.304a42.666667 42.666667 0 0 1-29.866667-12.373333L209.877333 272.938667a42.666667 42.666667 0 0 1 60.117334-60.544L371.498667 313.173333a42.666667 42.666667 0 0 1-30.08 72.917334z"},void 0),(0,e.jsx)("path",{d:"M271.530667 555.392H128a42.666667 42.666667 0 0 1 0-85.333333h143.530667a42.666667 42.666667 0 0 1 0 85.333333z"},void 0),(0,e.jsx)("path",{d:"M241.024 824.789333a42.666667 42.666667 0 0 1-30.08-72.917333l101.504-100.778667a42.666667 42.666667 0 1 1 60.117333 60.544l-101.504 100.778667a42.410667 42.410667 0 0 1-30.037333 12.373333z"},void 0),(0,e.jsx)("path",{d:"M512.768 935.936a42.666667 42.666667 0 0 1-42.666667-42.666667v-142.506666a42.666667 42.666667 0 0 1 85.333334 0v142.506666a42.666667 42.666667 0 0 1-42.666667 42.666667z"},void 0),(0,e.jsx)("path",{d:"M784.085333 823.722667a42.666667 42.666667 0 0 1-29.866666-12.373334l-101.461334-100.778666a42.666667 42.666667 0 0 1 60.117334-60.544l101.461333 100.736a42.666667 42.666667 0 0 1-29.866667 72.96z"},void 0),(0,e.jsx)("path",{d:"M896 553.898667h-143.530667a42.666667 42.666667 0 0 1 0-85.333334H896a42.666667 42.666667 0 0 1 0 85.333334z"},void 0),(0,e.jsx)("path",{d:"M681.514667 385.28a42.666667 42.666667 0 0 1-29.866667-72.96l101.504-100.778667a42.666667 42.666667 0 1 1 60.117333 60.544l-101.504 100.778667a42.666667 42.666667 0 0 1-30.250666 12.416z"},void 0)]},void 0)},t),void 0)};o.default=a}(),o}())},4674:function(e,n,t){var r;self,e.exports=(r=t(8156),function(){var e={466:function(e,n,t){(n=t(3645)(!1)).push([e.id,".paraui-icon{width:1em;height:1em;fill:currentColor;display:inline-block;user-select:none;flex-shrink:0}.paraui-icon-primary{color:#3666d6}.paraui-icon-secondary{color:#3666d6}.paraui-icon-thirdary{color:#3666d6}.paraui-icon-small{font-size:16px}.paraui-icon-medium{font-size:18px}.paraui-icon-large{font-size:20px}\n",""]),e.exports=n},3645:function(e){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=function(e,n){var t,r,o,a=e[1]||"",i=e[3];if(!i)return a;if(n&&"function"==typeof btoa){var c=(t=i,r=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),s=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[a].concat(s).concat([c]).join("\n")}return[a].join("\n")}(n,e);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);r&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),n.push(s))}},n}},7418:function(e){"use strict";
15
- /*
16
- object-assign
17
- (c) Sindre Sorhus
18
- @license MIT
19
- */var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,c,s=o(e),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))t.call(i,l)&&(s[l]=i[l]);if(n){c=n(i);for(var f=0;f<c.length;f++)r.call(i,c[f])&&(s[c[f]]=i[c[f]])}}return s}},5251:function(e,n,t){"use strict";
20
- /** @license React v17.0.2
21
- * react-jsx-runtime.production.min.js
22
- *
23
- * Copyright (c) Facebook, Inc. and its affiliates.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE file in the root directory of this source tree.
27
- */t(7418);var r=t(8156),o=60103;if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),n.Fragment=a("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,n,t){var r,a={},u=null,l=null;for(r in void 0!==t&&(u=""+t),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(l=n.ref),n)c.call(n,r)&&!s.hasOwnProperty(r)&&(a[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===a[r]&&(a[r]=n[r]);return{$$typeof:o,type:e,key:u,ref:l,props:a,_owner:i.current}}n.jsx=u},5893:function(e,n,t){"use strict";e.exports=t(5251)},7856:function(e,n,t){var r=t(3379),o=t(466);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]),r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3379:function(e,n,t){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function c(e){for(var n=-1,t=0;t<i.length;t++)if(i[t].identifier===e){n=t;break}return n}function s(e,n){for(var t={},r=[],o=0;o<e.length;o++){var a=e[o],s=n.base?a[0]+n.base:a[0],u=t[s]||0,l="".concat(s," ").concat(u);t[s]=u+1;var f=c(l),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==f?(i[f].references++,i[f].updater(d)):i.push({identifier:l,updater:h(d,n),references:1}),r.push(l)}return r}function u(e){var n=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=t.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){n.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(n);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}return n}var l,f=(l=[],function(e,n){return l[e]=n,l.filter(Boolean).join("\n")});function d(e,n,t,r){var o=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(n,o);else{var a=document.createTextNode(o),i=e.childNodes;i[n]&&e.removeChild(i[n]),i.length?e.insertBefore(a,i[n]):e.appendChild(a)}}function p(e,n,t){var r=t.css,o=t.media,a=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,m=0;function h(e,n){var t,r,o;if(n.singleton){var a=m++;t=v||(v=u(n)),r=d.bind(null,t,a,!1),o=d.bind(null,t,a,!0)}else t=u(n),r=p.bind(null,t,n),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return r(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else o()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=o());var t=s(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<t.length;r++){var o=c(t[r]);i[o].references--}for(var a=s(e,n),u=0;u<t.length;u++){var l=c(t[u]);0===i[l].references&&(i[l].updater(),i.splice(l,1))}t=a}}}},4939:function(e,n,t){"use strict";var r=t(5893),o=(t(7856),function(){return o=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},o.apply(this,arguments)}),a=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};n.default=function(e){var n,t=e.path,i=e.className,c=e.color,s=void 0===c?"primary":c,u=e.size,l=void 0===u?"small":u,f=e.dataName,d=void 0===f?"":f,p=a(e,["path","className","color","size","dataName"]);return(0,r.jsx)("svg",o({className:(n="paraui-icon",n+=" svg-icon",i&&(n+=" "+i),s&&(n+=" paraui-icon-"+s),l&&(n+=" paraui-icon-"+l),n),viewBox:"0 0 1024 1024","data-name":d},p,{children:t}),void 0)}},8156:function(e){"use strict";e.exports=r}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var a=n[r]={id:r,exports:{}};return e[r](a,a.exports,t),a.exports}t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";t.r(o),t.d(o,{Right:function(){return a}});var e=t(5893),n=t(4939),r=function(){return r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},r.apply(this,arguments)},a=function(t){return(0,e.jsx)(n.default,r({dataName:"Right",path:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("path",{d:"M318.506667 813.696a42.368 42.368 0 0 1 12.501333-30.165333l271.488-271.573334-271.488-271.488a42.666667 42.666667 0 1 1 60.330667-60.330666l301.653333 301.653333a42.666667 42.666667 0 0 1 0 60.373333l-301.653333 301.696a42.666667 42.666667 0 0 1-72.832-30.165333z"},void 0)},void 0)},t),void 0)};o.default=a}(),o}())},2788:function(e,n,t){(n=t(3645)(!1)).push([e.id,".cascader input{color:#333;width:560px;padding:6px 12px;overflow:hidden;box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;border-radius:4px;border:1px solid #d9d9d9}.rc-cascader{font-size:12px}.rc-cascader-dropdown-hidden{display:none}.rc-cascader-menus{font-size:12px;overflow:hidden;background:#fff;position:absolute;border:1px solid #d9d9d9;border-radius:4px;box-shadow:0 0 4px rgba(0,0,0,0.17);white-space:nowrap}.rc-cascader-menus.slide-up-enter,.rc-cascader-menus.slide-up-appear{animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;opacity:0;animation-timing-function:cubic-bezier(0.08, 0.82, 0.17, 1);animation-play-state:paused}.rc-cascader-menus.slide-up-leave{animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;opacity:1;animation-timing-function:cubic-bezier(0.6, 0.04, 0.98, 0.34);animation-play-state:paused}.rc-cascader-menus.slide-up-enter.slide-up-enter-active,.rc-cascader-menus-placement-bottomLeft,.rc-cascader-menus.slide-up-appear.slide-up-appear-active,.rc-cascader-menus-placement-bottomLeft{animation-name:SlideUpIn;animation-play-state:running}.rc-cascader-menus.slide-up-enter.slide-up-enter-active,.rc-cascader-menus-placement-topLeft,.rc-cascader-menus.slide-up-appear.slide-up-appear-active,.rc-cascader-menus-placement-topLeft{animation-name:SlideDownIn;animation-play-state:running}.rc-cascader-menus.slide-up-leave.slide-up-leave-active,.rc-cascader-menus-placement-bottomLeft{animation-name:SlideUpOut;animation-play-state:running}.rc-cascader-menus.slide-up-leave.slide-up-leave-active,.rc-cascader-menus-placement-topLeft{animation-name:SlideDownOut;animation-play-state:running}.rc-cascader-menu{display:inline-block;min-width:100px;height:192px;list-style:none;margin:0;padding:0;border-right:1px solid #e9e9e9;overflow:auto}.rc-cascader-menu:last-child{border-right:0}.rc-cascader-menu-item{height:32px;line-height:32px;padding:0 16px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all 0.3s ease;position:relative}.rc-cascader-menu-item:hover{background:#abb0b93b}.rc-cascader-menu-item-disabled{cursor:not-allowed;color:#ccc}.rc-cascader-menu-item-disabled:hover{background:transparent}.rc-cascader-menu-item-active{color:#3666d6}.rc-cascader-menu-item-loading-icon{display:flex;align-items:center;margin-left:10px}.rc-cascader-menu-item-expand{position:relative;display:flex;align-items:center;justify-content:space-between}.rc-cascader-menu-item-expand-icon{font-size:12px;margin-left:10px}.rc-cascader-menu-item-expand-icon SVG{display:flex;align-items:center}.rc-cascader-menu-item-expand-icon SVG path{fill:#999}@keyframes SlideUpIn{0%{opacity:0;transform-origin:0% 0%;transform:scaleY(0.8)}100%{opacity:1;transform-origin:0% 0%;transform:scaleY(1)}}@keyframes SlideUpOut{0%{opacity:1;transform-origin:0% 0%;transform:scaleY(1)}100%{opacity:0;transform-origin:0% 0%;transform:scaleY(0.8)}}@keyframes SlideDownIn{0%{opacity:0;transform-origin:0% 100%;transform:scaleY(0.8)}100%{opacity:1;transform-origin:0% 100%;transform:scaleY(1)}}@keyframes SlideDownOut{0%{opacity:1;transform-origin:0% 100%;transform:scaleY(1)}100%{opacity:0;transform-origin:0% 100%;transform:scaleY(0.8)}}\n",""]),e.exports=n},3645:function(e){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=function(e,n){var t=e[1]||"",r=e[3];if(!r)return t;if(n&&"function"==typeof btoa){var o=(i=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([o]).join("\n")}var i,c,s;return[t].join("\n")}(n,e);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);r&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),n.push(s))}},n}},7418:function(e){"use strict";
28
- /*
29
- object-assign
30
- (c) Sindre Sorhus
31
- @license MIT
32
- */var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,c,s=o(e),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))t.call(i,l)&&(s[l]=i[l]);if(n){c=n(i);for(var f=0;f<c.length;f++)r.call(i,c[f])&&(s[c[f]]=i[c[f]])}}return s}},5251:function(e,n,t){"use strict";
33
- /** @license React v17.0.2
34
- * react-jsx-runtime.production.min.js
35
- *
36
- * Copyright (c) Facebook, Inc. and its affiliates.
37
- *
38
- * This source code is licensed under the MIT license found in the
39
- * LICENSE file in the root directory of this source tree.
40
- */
41
- t(7418);var r=t(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),a("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,n,t){var r,a={},u=null,l=null;for(r in void 0!==t&&(u=""+t),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(l=n.ref),n)c.call(n,r)&&!s.hasOwnProperty(r)&&(a[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===a[r]&&(a[r]=n[r]);return{$$typeof:o,type:e,key:u,ref:l,props:a,_owner:i.current}}n.jsx=u},5893:function(e,n,t){"use strict";e.exports=t(5251)},1149:function(e,n,t){var r=t(3379),o=t(2788);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};r(o,a);e.exports=o.locals||{}},3379:function(e,n,t){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function c(e){for(var n=-1,t=0;t<i.length;t++)if(i[t].identifier===e){n=t;break}return n}function s(e,n){for(var t={},r=[],o=0;o<e.length;o++){var a=e[o],s=n.base?a[0]+n.base:a[0],u=t[s]||0,l="".concat(s," ").concat(u);t[s]=u+1;var f=c(l),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==f?(i[f].references++,i[f].updater(d)):i.push({identifier:l,updater:h(d,n),references:1}),r.push(l)}return r}function u(e){var n=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=t.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){n.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(n);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}return n}var l,f=(l=[],function(e,n){return l[e]=n,l.filter(Boolean).join("\n")});function d(e,n,t,r){var o=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(n,o);else{var a=document.createTextNode(o),i=e.childNodes;i[n]&&e.removeChild(i[n]),i.length?e.insertBefore(a,i[n]):e.appendChild(a)}}function p(e,n,t){var r=t.css,o=t.media,a=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,m=0;function h(e,n){var t,r,o;if(n.singleton){var a=m++;t=v||(v=u(n)),r=d.bind(null,t,a,!1),o=d.bind(null,t,a,!0)}else t=u(n),r=p.bind(null,t,n),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return r(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else o()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=o());var t=s(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<t.length;r++){var o=c(t[r]);i[o].references--}for(var a=s(e,n),u=0;u<t.length;u++){var l=c(t[u]);0===i[l].references&&(i[l].updater(),i.splice(l,1))}t=a}}}},3054:function(e,n,t){"use strict";var r=t(8156),o=t.n(r),a=t(5395),i=t.n(a);n.Z=function(e,n){var t=o().useContext(i()).intlFormat;return n.zh_CN=n.zh,n.en_US=n.en,t&&t(e,n)}},5395:function(e){"use strict";e.exports=t},3888:function(e){"use strict";e.exports=n},8156:function(n){"use strict";n.exports=e}},o={};function a(e){var n=o[e];if(void 0!==n)return n.exports;var t=o[e]={id:e,exports:{}};return r[e](t,t.exports,a),t.exports}a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,{a:n}),n},a.d=function(e,n){for(var t in n)a.o(n,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";a.r(i),a.d(i,{Cascader:function(){return h},default:function(){return y}});var e=a(5893),n=a(8156),t=a(3888),r=a.n(t),o=a(4674),c=a.n(o),s=a(7692),u=a.n(s),l=a(3054),f={zh:{placeholder:"请选择"},en:{placeholder:"Please select"}},d=(a(1149),function(){return d=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},d.apply(this,arguments)}),p=function(e,n,t,r){return new(t||(t=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function c(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,c)}s((r=r.apply(e,n||[])).next())}))},v=function(e,n){var t,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=n.call(e,i)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},m=function(e,n,t){if(t||2===arguments.length)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))},h=function(t){var o=t.data,a=t.expandTrigger,i=void 0===a?"click":a,s=t.value,h=void 0===s?[]:s,y=t.onChange,b=t.onDropdownVisibleChange,g=t.changeOnSelect,O=void 0!==g&&g,j=t.expandIcon,x=void 0===j?(0,e.jsx)(c(),{}):j,w=t.expandJoin,S=void 0===w?" , ":w,_=t.fieldNames,C=void 0===_?{label:"label",value:"value",children:"children"}:_,N=t.disabled,P=void 0!==N&&N,k=t.placeholder,E=t.loadData,M=void 0===E?function(){return p(void 0,void 0,void 0,(function(){return v(this,(function(e){return[2]}))}))}:E,T=t.loadingIcon,I=void 0===T?(0,e.jsx)(u(),{}):T,R=(0,l.Z)("Cascader",f),L=(0,n.useState)(o),z=L[0],U=L[1],A=(0,n.useState)(h),D=A[0],F=A[1],q=(0,n.useState)(function(e,n,t){var r=[],o=0;function a(e){for(var t=0;t<e.length;t++)e[t].value===n[o]&&(t===e.length-1?r.push(e[t].label):(o++,r.push(e[t].label),a(e[t].children)));return r}return a(e),r.join(t)}(o,h,S)),B=q[0],Y=q[1],H=(0,n.useCallback)((function(e,n){F(e),Y(n.map((function(e){return e.label})).join(S)),y&&y(e,n)}),[]);return(0,e.jsx)("div",d({className:"cascader"},{children:(0,e.jsx)(r(),d({options:z,onChange:H,changeOnSelect:O,expandTrigger:i,expandIcon:x,fieldNames:C,loadData:function(e){return p(void 0,void 0,void 0,(function(){return v(this,(function(n){switch(n.label){case 0:return[4,M(e)];case 1:return n.sent(),U(m([],o,!0)),[2]}}))}))},loadingIcon:I,onDropdownVisibleChange:b,value:D},{children:(0,e.jsx)("input",{value:B,readOnly:!0,disabled:P,placeholder:k||R({id:"placeholder"})})}))}))};var y=h}(),i}()}));
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- placeholder: string;
3
- };
4
- export default _default;
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- zh: {
3
- placeholder: string;
4
- };
5
- en: {
6
- placeholder: string;
7
- };
8
- };
9
- export default _default;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- placeholder: string;
3
- };
4
- export default _default;
@@ -1,40 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/4 15:54
4
- * @description 复选框
5
- */
6
- import React, { FunctionComponent, ReactNode } from 'react';
7
- import { LabelTooltipProps } from '../Label';
8
- import './index.scss';
9
- export interface CheckboxProps {
10
- /** 样式class */
11
- className?: string;
12
- /** style */
13
- style?: React.CSSProperties;
14
- /** 标题 */
15
- label?: ReactNode;
16
- /** 帮组提示信息 */
17
- labelTooltip?: LabelTooltipProps;
18
- /** 大小 */
19
- size?: 'small' | 'medium' | 'large';
20
- /** 默认值 有值不受控组件 初始化第一次 */
21
- defaultChecked?: boolean;
22
- /** 默认值 有值受控组件*/
23
- checked?: boolean;
24
- /** 禁用 */
25
- disabled?: boolean;
26
- /** 半选 */
27
- indeterminate?: boolean;
28
- /** inputProps */
29
- inputProps?: {
30
- type?: string;
31
- value?: any;
32
- checked?: any;
33
- [name: string]: any;
34
- };
35
- /** 改变时间 */
36
- onChange?: (e: any, checked: boolean) => void;
37
- [name: string]: any;
38
- }
39
- export declare const Checkbox: FunctionComponent<CheckboxProps>;
40
- export default Checkbox;
package/Checkbox/index.js DELETED
@@ -1,27 +0,0 @@
1
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core")):"function"==typeof define&&define.amd?define(["react","@material-ui/core"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@material-ui/core")):e.ParaUI=r(e.react,e["@material-ui/core"])}(self,(function(e,r){return function(){var o={5670:function(e,r,o){var t;self,e.exports=(t=o(8156),function(){var e={466:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-icon{width:1em;height:1em;fill:currentColor;display:inline-block;user-select:none;flex-shrink:0}.paraui-icon-primary{color:#3666d6}.paraui-icon-secondary{color:#3666d6}.paraui-icon-thirdary{color:#3666d6}.paraui-icon-small{font-size:16px}.paraui-icon-medium{font-size:18px}.paraui-icon-large{font-size:20px}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var o=function(e,r){var o,t,a,n=e[1]||"",i=e[3];if(!i)return n;if(r&&"function"==typeof btoa){var c=(o=i,t=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t),"/*# ".concat(a," */")),l=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(l).concat([c]).join("\n")}return[n].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(o,"}"):o})).join("")},r.i=function(e,o,t){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(t)for(var n=0;n<this.length;n++){var i=this[n][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);t&&a[l[0]]||(o&&(l[2]?l[2]="".concat(o," and ").concat(l[2]):l[2]=o),r.push(l))}},r}},7418:function(e){"use strict";
2
- /*
3
- object-assign
4
- (c) Sindre Sorhus
5
- @license MIT
6
- */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var i,c,l=a(e),u=1;u<arguments.length;u++){for(var p in i=Object(arguments[u]))o.call(i,p)&&(l[p]=i[p]);if(r){c=r(i);for(var s=0;s<c.length;s++)t.call(i,c[s])&&(l[c[s]]=i[c[s]])}}return l}},5251:function(e,r,o){"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
- */o(7418);var t=o(8156),a=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;a=n("react.element"),r.Fragment=n("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,o){var t,n={},u=null,p=null;for(t in void 0!==o&&(u=""+o),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(p=r.ref),r)c.call(r,t)&&!l.hasOwnProperty(t)&&(n[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===n[t]&&(n[t]=r[t]);return{$$typeof:a,type:e,key:u,ref:p,props:n,_owner:i.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,o){"use strict";e.exports=o(5251)},7856:function(e,r,o){var t=o(3379),a=o(466);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),t(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},3379:function(e,r,o){"use strict";var t,a=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},n=function(){var e={};return function(r){if(void 0===e[r]){var o=document.querySelector(r);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[r]=o}return e[r]}}(),i=[];function c(e){for(var r=-1,o=0;o<i.length;o++)if(i[o].identifier===e){r=o;break}return r}function l(e,r){for(var o={},t=[],a=0;a<e.length;a++){var n=e[a],l=r.base?n[0]+r.base:n[0],u=o[l]||0,p="".concat(l," ").concat(u);o[l]=u+1;var s=c(p),b={css:n[1],media:n[2],sourceMap:n[3]};-1!==s?(i[s].references++,i[s].updater(b)):i.push({identifier:p,updater:x(b,r),references:1}),t.push(p)}return t}function u(e){var r=document.createElement("style"),t=e.attributes||{};if(void 0===t.nonce){var a=o.nc;a&&(t.nonce=a)}if(Object.keys(t).forEach((function(e){r.setAttribute(e,t[e])})),"function"==typeof e.insert)e.insert(r);else{var i=n(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}return r}var p,s=(p=[],function(e,r){return p[e]=r,p.filter(Boolean).join("\n")});function b(e,r,o,t){var a=o?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(e.styleSheet)e.styleSheet.cssText=s(r,a);else{var n=document.createTextNode(a),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(n,i[r]):e.appendChild(n)}}function f(e,r,o){var t=o.css,a=o.media,n=o.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}var d=null,h=0;function x(e,r){var o,t,a;if(r.singleton){var n=h++;o=d||(d=u(r)),t=b.bind(null,o,n,!1),a=b.bind(null,o,n,!0)}else o=u(r),t=f.bind(null,o,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else a()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=a());var o=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<o.length;t++){var a=c(o[t]);i[a].references--}for(var n=l(e,r),u=0;u<o.length;u++){var p=c(o[u]);0===i[p].references&&(i[p].updater(),i.splice(p,1))}o=n}}}},4939:function(e,r,o){"use strict";var t=o(5893),a=(o(7856),function(){return a=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},a.apply(this,arguments)}),n=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(e);a<t.length;a++)r.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(o[t[a]]=e[t[a]])}return o};r.default=function(e){var r,o=e.path,i=e.className,c=e.color,l=void 0===c?"primary":c,u=e.size,p=void 0===u?"small":u,s=e.dataName,b=void 0===s?"":s,f=n(e,["path","className","color","size","dataName"]);return(0,t.jsx)("svg",a({className:(r="paraui-icon",r+=" svg-icon",i&&(r+=" "+i),l&&(r+=" paraui-icon-"+l),p&&(r+=" paraui-icon-"+p),r),viewBox:"0 0 1024 1024","data-name":b},f,{children:o}),void 0)}},8156:function(e){"use strict";e.exports=t}},r={};function o(t){var a=r[t];if(void 0!==a)return a.exports;var n=r[t]={id:t,exports:{}};return e[t](n,n.exports,o),n.exports}o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,{a:r}),r},o.d=function(e,r){for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";o.r(a),o.d(a,{Help:function(){return n}});var e=o(5893),r=o(4939),t=function(){return t=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},t.apply(this,arguments)},n=function(o){return(0,e.jsx)(r.default,t({dataName:"Help",path:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M512 128a384 384 0 1 1-384 384 384 384 0 0 1 384-384m0-64a448 448 0 1 0 448 448 448 448 0 0 0-448-448z","p-id":"11281"},void 0),(0,e.jsx)("path",{d:"M533.76 654.08H465.92v-19.2a140.8 140.8 0 0 1 64-128A135.04 135.04 0 0 0 598.4 403.2 79.36 79.36 0 0 0 518.4 320Q430.72 320 408.32 429.44l-72.32-18.56A168.32 168.32 0 0 1 528.64 256a144 144 0 0 1 152.32 138.88A167.68 167.68 0 0 1 588.8 544a108.8 108.8 0 0 0-55.04 96zM458.24 704h82.56v88.96H458.24z","p-id":"11282"},void 0)]},void 0)},o),void 0)};a.default=n}(),a}())},6010:function(e,r,o){"use strict";function t(e){var r,o,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(o=t(e[r]))&&(a&&(a+=" "),a+=o);else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function a(){for(var e,r,o=0,a="";o<arguments.length;)(e=arguments[o++])&&(r=t(e))&&(a&&(a+=" "),a+=r);return a}o.d(r,{Z:function(){return a}})},1204:function(e,r,o){(r=o(3645)(!1)).push([e.id,'.paraui-check-box{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;cursor:pointer;display:inline-flex;align-items:flex-start;line-height:16px}.paraui-check-box:hover>.paraui-check-box-label{color:rgba(54,102,214,0.8);cursor:pointer}.paraui-check-box:hover>.paraui-check-box-label svg{color:rgba(54,102,214,0.8)}.paraui-check-box:hover>.paraui-help{padding:0 8px}.paraui-check-box:hover>.paraui-help>.paraui-check-box-label{color:rgba(54,102,214,0.8);cursor:pointer}.paraui-check-box:hover>.paraui-help>.paraui-check-box-label svg{color:rgba(54,102,214,0.8)}.paraui-check-box:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{border-color:rgba(54,102,214,0.8)}.paraui-check-box>.paraui-checkbox-box{position:relative}.paraui-check-box>.paraui-checkbox-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner{position:relative;top:0;left:0;display:block;border-radius:2px;background-color:white;border:1px solid rgba(171,176,185,0.4)}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{position:absolute;display:table;content:" "}.paraui-check-box>.paraui-check-box-label{color:#2e3743;padding:0 8px;margin:0;display:inline-flex;align-items:flex-start}.paraui-check-box>.paraui-check-box-label>.paraui-help>svg{top:0}.paraui-check-box .paraui-label{line-height:16px}.paraui-check-box>.paraui-help{padding:0 8px}.paraui-check-box>.paraui-help>.paraui-check-box-label{color:#2e3743;margin:0;display:inline-flex;align-items:center}.paraui-check-box.check-box-checked:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(54,102,214,0.8);border-color:transparent}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border:1px solid white;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%, -50%)}.paraui-check-box.check-box-indeterminate:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(54,102,214,0.8);border-color:transparent}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:white;top:50%;left:50%;transform:translate(-50%, -50%) scale(1)}.paraui-check-box.check-box-disabled{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label{color:rgba(46,55,67,0.4);cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label svg{color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled>.paraui-help>.paraui-check-box-label{color:rgba(46,55,67,0.4);cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-help>.paraui-check-box-label svg{color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>input{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,0.12);border-color:rgba(171,176,185,0.4)}.paraui-check-box.check-box-disabled.check-box-checked:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,0.12);border-color:rgba(171,176,185,0.4)}.paraui-check-box.check-box-disabled.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border-color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled.check-box-indeterminate:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,0.12);border-color:rgba(171,176,185,0.4)}.paraui-check-box.check-box-disabled.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-small>.paraui-checkbox-box{top:1px}.paraui-check-box.check-box-small>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:14px;height:14px}.paraui-check-box.check-box-small.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:4px;height:7px}.paraui-check-box.check-box-small.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-medium>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-medium.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-medium.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-large>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-large.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-large.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}\n',""]),e.exports=r},7381:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-help{display:inline-block;font-size:16px;color:#3666d6}.paraui-help .paraui-icon{font-size:inherit;color:inherit}\n",""]),e.exports=r},4928:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-label{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;color:rgba(46,55,67,0.7);margin-bottom:8px;display:inline-block;line-height:1.43;word-break:break-all}.paraui-label>.paraui-label-required{margin-left:2px;color:#eb6054}.paraui-label>.paraui-help{vertical-align:top;margin-left:4px}.paraui-label>.paraui-help svg{color:rgba(46,55,67,0.4);vertical-align:top;position:relative;top:2px}.paraui-label.paraui-label-line.paraui-label-tooltip{border-bottom:1px dashed rgba(46,55,67,0.4);padding-bottom:2px}\n",""]),e.exports=r},9929:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-tooltip>div{padding-left:12px;padding-right:12px;font-size:14px;font-weight:400;color:#fff;background-color:rgba(46,55,67,0.7)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var o=function(e,r){var o=e[1]||"",t=e[3];if(!t)return o;if(r&&"function"==typeof btoa){var a=(i=t,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(l," */")),n=t.sources.map((function(e){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(e," */")}));return[o].concat(n).concat([a]).join("\n")}var i,c,l;return[o].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(o,"}"):o})).join("")},r.i=function(e,o,t){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(t)for(var n=0;n<this.length;n++){var i=this[n][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);t&&a[l[0]]||(o&&(l[2]?l[2]="".concat(o," and ").concat(l[2]):l[2]=o),r.push(l))}},r}},7418:function(e){"use strict";
15
- /*
16
- object-assign
17
- (c) Sindre Sorhus
18
- @license MIT
19
- */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var i,c,l=a(e),u=1;u<arguments.length;u++){for(var p in i=Object(arguments[u]))o.call(i,p)&&(l[p]=i[p]);if(r){c=r(i);for(var s=0;s<c.length;s++)t.call(i,c[s])&&(l[c[s]]=i[c[s]])}}return l}},5251:function(e,r,o){"use strict";
20
- /** @license React v17.0.2
21
- * react-jsx-runtime.production.min.js
22
- *
23
- * Copyright (c) Facebook, Inc. and its affiliates.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE file in the root directory of this source tree.
27
- */o(7418);var t=o(8156),a=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;a=n("react.element"),r.Fragment=n("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,o){var t,n={},u=null,p=null;for(t in void 0!==o&&(u=""+o),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(p=r.ref),r)c.call(r,t)&&!l.hasOwnProperty(t)&&(n[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===n[t]&&(n[t]=r[t]);return{$$typeof:a,type:e,key:u,ref:p,props:n,_owner:i.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,o){"use strict";e.exports=o(5251)},9036:function(e,r,o){var t=o(3379),a=o(1204);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},2113:function(e,r,o){var t=o(3379),a=o(7381);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},9663:function(e,r,o){var t=o(3379),a=o(4928);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},2310:function(e,r,o){var t=o(3379),a=o(9929);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},3379:function(e,r,o){"use strict";var t,a=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},n=function(){var e={};return function(r){if(void 0===e[r]){var o=document.querySelector(r);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[r]=o}return e[r]}}(),i=[];function c(e){for(var r=-1,o=0;o<i.length;o++)if(i[o].identifier===e){r=o;break}return r}function l(e,r){for(var o={},t=[],a=0;a<e.length;a++){var n=e[a],l=r.base?n[0]+r.base:n[0],u=o[l]||0,p="".concat(l," ").concat(u);o[l]=u+1;var s=c(p),b={css:n[1],media:n[2],sourceMap:n[3]};-1!==s?(i[s].references++,i[s].updater(b)):i.push({identifier:p,updater:x(b,r),references:1}),t.push(p)}return t}function u(e){var r=document.createElement("style"),t=e.attributes||{};if(void 0===t.nonce){var a=o.nc;a&&(t.nonce=a)}if(Object.keys(t).forEach((function(e){r.setAttribute(e,t[e])})),"function"==typeof e.insert)e.insert(r);else{var i=n(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}return r}var p,s=(p=[],function(e,r){return p[e]=r,p.filter(Boolean).join("\n")});function b(e,r,o,t){var a=o?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(e.styleSheet)e.styleSheet.cssText=s(r,a);else{var n=document.createTextNode(a),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(n,i[r]):e.appendChild(n)}}function f(e,r,o){var t=o.css,a=o.media,n=o.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}var d=null,h=0;function x(e,r){var o,t,a;if(r.singleton){var n=h++;o=d||(d=u(r)),t=b.bind(null,o,n,!1),a=b.bind(null,o,n,!0)}else o=u(r),t=f.bind(null,o,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else a()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=a());var o=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<o.length;t++){var a=c(o[t]);i[a].references--}for(var n=l(e,r),u=0;u<o.length;u++){var p=c(o[u]);0===i[p].references&&(i[p].updater(),i.splice(p,1))}o=n}}}},3566:function(e,r,o){"use strict";var t=o(5893),a=o(7371),n=o(5670),i=o.n(n),c=o(6010),l=(o(2113),function(){return l=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},l.apply(this,arguments)}),u=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(e);a<t.length;a++)r.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(o[t[a]]=e[t[a]])}return o};r.default=function(e){var r=e.title,o=void 0===r?"":r,n=e.children,p=e.arrow,s=void 0===p||p,b=e.interactive,f=void 0===b||b,d=e.className,h=(e.placement,u(e,["title","children","arrow","interactive","className","placement"]));return(0,t.jsx)(a.default,l({title:o,arrow:s,interactive:f},h,{children:(0,t.jsx)("span",l({className:(0,c.Z)("paraui-help",d)},{children:n||(0,t.jsx)(i(),{})}))}))}},8767:function(e,r,o){"use strict";var t=o(5893),a=o(3566),n=(o(9663),function(){return n=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},n.apply(this,arguments)});r.default=function(e){var r=e.className,o=e.style,i=e.label,c=e.labelSign,l=e.required,u=void 0!==l&&l,p=e.tooltip,s=e.tooltipType,b=void 0===s?"icon":s,f=e.placement,d=e.arrow,h=e.tooltipIcon,x=function(){var e="paraui-label";return b&&(e+=" paraui-label-"+b),p&&(e+=" paraui-label-tooltip"),r&&(e+=" "+r),e};return(0,t.jsxs)(t.Fragment,{children:["icon"===b&&(0,t.jsxs)("label",n({className:x(),style:o},{children:[(0,t.jsx)(t.Fragment,{children:i}),u&&(0,t.jsx)("span",n({className:"paraui-label-required"},{children:"*"})),c&&(0,t.jsx)("span",{children:c}),p&&(0,t.jsx)(a.default,n({title:p,placement:f,arrow:d},{children:h}))]})),"line"===b&&(0,t.jsx)(a.default,n({title:p||"",placement:f,arrow:d},{children:(0,t.jsxs)("label",n({className:x(),style:o},{children:[(0,t.jsx)(t.Fragment,{children:i}),u&&(0,t.jsx)("span",n({className:"paraui-label-required"},{children:"*"})),c&&(0,t.jsx)("span",{children:c})]}))}))]})}},7371:function(e,r,o){"use strict";var t=o(5893),a=o(670),n=o(6010),i=(o(2310),function(){return i=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},i.apply(this,arguments)});r.default=function(e){var r,o=e.placement,c=void 0===o?"top-start":o,l=e.arrow,u=void 0===l||l,p=e.PopperProps,s=i(i({},e.classes),{popper:(0,n.Z)("paraui-tooltip",null===(r=e.classes)||void 0===r?void 0:r.popper,{"paraui-tooltip-left-right":(null==c?void 0:c.includes("left"))||(null==c?void 0:c.includes("right")),"paraui-tooltip-top-bottom":(null==c?void 0:c.includes("top"))||(null==c?void 0:c.includes("bottom"))})});return(0,t.jsx)(a.Tooltip,i({},e,{arrow:u,placement:c,classes:s,PopperProps:i(i({},p),{popperOptions:{modifiers:{arrow:{enabled:!0},preventOverflow:{boundariesElement:window}}}})}))}},670:function(e){"use strict";e.exports=r},8156:function(r){"use strict";r.exports=e}},t={};function a(e){var r=t[e];if(void 0!==r)return r.exports;var n=t[e]={id:e,exports:{}};return o[e](n,n.exports,a),n.exports}a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,{a:r}),r},a.d=function(e,r){for(var o in r)a.o(r,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){"use strict";a.r(n),a.d(n,{Checkbox:function(){return i}});var e=a(5893),r=a(8156),o=a(8767),t=(a(9036),function(){return t=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},t.apply(this,arguments)}),i=function(a){var n=a.className,i=void 0===n?"":n,c=a.label,l=void 0===c?"":c,u=a.labelTooltip,p=a.size,s=void 0===p?"large":p,b=a.disabled,f=void 0!==b&&b,d=a.indeterminate,h=void 0!==d&&d,x=a.onChange,v=a.style,g=(0,r.useState)(!1),k=g[0],m=g[1];(0,r.useEffect)((function(){void 0!==a.defaultChecked&&m(a.defaultChecked)}),[]),(0,r.useEffect)((function(){void 0!==a.checked&&m(a.checked)}),[a.checked]);var y;return(0,e.jsxs)("label",t({className:(y="paraui-check-box",i&&(y+=" "+i),s&&(y+=" check-box-"+s),f&&(y+=" check-box-disabled"),h?y+=" check-box-indeterminate":k&&(y+=" check-box-checked"),y),onClick:function(e){if(e.preventDefault(),!f){if(h)return void 0===a.checked&&m(!0),void(x&&x(e,!0));void 0===a.checked&&m(!k),e.target.checked=!k,e.target.value=!k,x&&x(e,!k)}},style:v},{children:[(0,e.jsxs)("span",t({className:"paraui-checkbox-box"},{children:[(0,e.jsx)("input",t({type:"checkbox",value:k},a.inputProps)),(0,e.jsx)("span",{className:"paraui-checkbox-box-inner"})]})),l&&(0,e.jsx)(o.default,t({label:l},u,{className:function(){var e="paraui-check-box-label";return u&&u.className&&(e+=" "+u.className),e}()}))]}))};n.default=i}(),n}()}));
@@ -1,46 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2021/8/4 16:23
4
- * @description 复选框组
5
- */
6
- import React, { FunctionComponent, ReactNode } from 'react';
7
- import { CheckboxProps } from '../Checkbox';
8
- import { LabelTooltipProps } from "../Label";
9
- import './index.scss';
10
- export interface CheckboxListProps extends CheckboxProps {
11
- [name: string]: any;
12
- }
13
- export interface CheckboxGroupProps {
14
- /** 样式class */
15
- className?: string;
16
- /** style */
17
- style?: React.CSSProperties;
18
- /** 标题 */
19
- label?: ReactNode;
20
- /** 帮组提示信息 */
21
- labelTooltip?: LabelTooltipProps;
22
- /** 大小 */
23
- size?: 'small' | 'medium' | 'large';
24
- /** 是否必填 */
25
- required?: boolean;
26
- /** 布局方式 横向/竖向 */
27
- row?: boolean;
28
- /** 是否禁用 */
29
- disabled?: boolean;
30
- /** 是否显示错误 */
31
- error?: boolean;
32
- /** 错误提示 */
33
- helperText?: ReactNode;
34
- /** 默认值 不受控 */
35
- defaultValue?: any;
36
- /** 值 */
37
- value?: any[];
38
- /** 选中选值 */
39
- id?: string;
40
- /** 选项数据 */
41
- list: CheckboxListProps[];
42
- /** 改变值 */
43
- onChange?: (val: any) => void;
44
- }
45
- export declare const CheckboxGroup: FunctionComponent<CheckboxGroupProps>;
46
- export default CheckboxGroup;
@@ -1,27 +0,0 @@
1
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@material-ui/core"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@material-ui/core"],e["@paraview/lib"])}(self,(function(e,r,o){return function(){var t={5670:function(e,r,o){var t;self,e.exports=(t=o(8156),function(){var e={466:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-icon{width:1em;height:1em;fill:currentColor;display:inline-block;user-select:none;flex-shrink:0}.paraui-icon-primary{color:#3666d6}.paraui-icon-secondary{color:#3666d6}.paraui-icon-thirdary{color:#3666d6}.paraui-icon-small{font-size:16px}.paraui-icon-medium{font-size:18px}.paraui-icon-large{font-size:20px}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var o=function(e,r){var o,t,a,n=e[1]||"",i=e[3];if(!i)return n;if(r&&"function"==typeof btoa){var c=(o=i,t=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t),"/*# ".concat(a," */")),l=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(l).concat([c]).join("\n")}return[n].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(o,"}"):o})).join("")},r.i=function(e,o,t){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(t)for(var n=0;n<this.length;n++){var i=this[n][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);t&&a[l[0]]||(o&&(l[2]?l[2]="".concat(o," and ").concat(l[2]):l[2]=o),r.push(l))}},r}},7418:function(e){"use strict";
2
- /*
3
- object-assign
4
- (c) Sindre Sorhus
5
- @license MIT
6
- */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var i,c,l=a(e),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))o.call(i,s)&&(l[s]=i[s]);if(r){c=r(i);for(var p=0;p<c.length;p++)t.call(i,c[p])&&(l[c[p]]=i[c[p]])}}return l}},5251:function(e,r,o){"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
- */o(7418);var t=o(8156),a=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;a=n("react.element"),r.Fragment=n("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,o){var t,n={},u=null,s=null;for(t in void 0!==o&&(u=""+o),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(s=r.ref),r)c.call(r,t)&&!l.hasOwnProperty(t)&&(n[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===n[t]&&(n[t]=r[t]);return{$$typeof:a,type:e,key:u,ref:s,props:n,_owner:i.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,o){"use strict";e.exports=o(5251)},7856:function(e,r,o){var t=o(3379),a=o(466);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),t(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},3379:function(e,r,o){"use strict";var t,a=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},n=function(){var e={};return function(r){if(void 0===e[r]){var o=document.querySelector(r);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[r]=o}return e[r]}}(),i=[];function c(e){for(var r=-1,o=0;o<i.length;o++)if(i[o].identifier===e){r=o;break}return r}function l(e,r){for(var o={},t=[],a=0;a<e.length;a++){var n=e[a],l=r.base?n[0]+r.base:n[0],u=o[l]||0,s="".concat(l," ").concat(u);o[l]=u+1;var p=c(s),b={css:n[1],media:n[2],sourceMap:n[3]};-1!==p?(i[p].references++,i[p].updater(b)):i.push({identifier:s,updater:x(b,r),references:1}),t.push(s)}return t}function u(e){var r=document.createElement("style"),t=e.attributes||{};if(void 0===t.nonce){var a=o.nc;a&&(t.nonce=a)}if(Object.keys(t).forEach((function(e){r.setAttribute(e,t[e])})),"function"==typeof e.insert)e.insert(r);else{var i=n(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}return r}var s,p=(s=[],function(e,r){return s[e]=r,s.filter(Boolean).join("\n")});function b(e,r,o,t){var a=o?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(e.styleSheet)e.styleSheet.cssText=p(r,a);else{var n=document.createTextNode(a),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(n,i[r]):e.appendChild(n)}}function f(e,r,o){var t=o.css,a=o.media,n=o.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}var d=null,h=0;function x(e,r){var o,t,a;if(r.singleton){var n=h++;o=d||(d=u(r)),t=b.bind(null,o,n,!1),a=b.bind(null,o,n,!0)}else o=u(r),t=f.bind(null,o,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else a()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=a());var o=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<o.length;t++){var a=c(o[t]);i[a].references--}for(var n=l(e,r),u=0;u<o.length;u++){var s=c(o[u]);0===i[s].references&&(i[s].updater(),i.splice(s,1))}o=n}}}},4939:function(e,r,o){"use strict";var t=o(5893),a=(o(7856),function(){return a=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},a.apply(this,arguments)}),n=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(e);a<t.length;a++)r.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(o[t[a]]=e[t[a]])}return o};r.default=function(e){var r,o=e.path,i=e.className,c=e.color,l=void 0===c?"primary":c,u=e.size,s=void 0===u?"small":u,p=e.dataName,b=void 0===p?"":p,f=n(e,["path","className","color","size","dataName"]);return(0,t.jsx)("svg",a({className:(r="paraui-icon",r+=" svg-icon",i&&(r+=" "+i),l&&(r+=" paraui-icon-"+l),s&&(r+=" paraui-icon-"+s),r),viewBox:"0 0 1024 1024","data-name":b},f,{children:o}),void 0)}},8156:function(e){"use strict";e.exports=t}},r={};function o(t){var a=r[t];if(void 0!==a)return a.exports;var n=r[t]={id:t,exports:{}};return e[t](n,n.exports,o),n.exports}o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,{a:r}),r},o.d=function(e,r){for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";o.r(a),o.d(a,{Help:function(){return n}});var e=o(5893),r=o(4939),t=function(){return t=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},t.apply(this,arguments)},n=function(o){return(0,e.jsx)(r.default,t({dataName:"Help",path:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M512 128a384 384 0 1 1-384 384 384 384 0 0 1 384-384m0-64a448 448 0 1 0 448 448 448 448 0 0 0-448-448z","p-id":"11281"},void 0),(0,e.jsx)("path",{d:"M533.76 654.08H465.92v-19.2a140.8 140.8 0 0 1 64-128A135.04 135.04 0 0 0 598.4 403.2 79.36 79.36 0 0 0 518.4 320Q430.72 320 408.32 429.44l-72.32-18.56A168.32 168.32 0 0 1 528.64 256a144 144 0 0 1 152.32 138.88A167.68 167.68 0 0 1 588.8 544a108.8 108.8 0 0 0-55.04 96zM458.24 704h82.56v88.96H458.24z","p-id":"11282"},void 0)]},void 0)},o),void 0)};a.default=n}(),a}())},6010:function(e,r,o){"use strict";function t(e){var r,o,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(o=t(e[r]))&&(a&&(a+=" "),a+=o);else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function a(){for(var e,r,o=0,a="";o<arguments.length;)(e=arguments[o++])&&(r=t(e))&&(a&&(a+=" "),a+=r);return a}o.d(r,{Z:function(){return a}})},1204:function(e,r,o){(r=o(3645)(!1)).push([e.id,'.paraui-check-box{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;cursor:pointer;display:inline-flex;align-items:flex-start;line-height:16px}.paraui-check-box:hover>.paraui-check-box-label{color:rgba(54,102,214,0.8);cursor:pointer}.paraui-check-box:hover>.paraui-check-box-label svg{color:rgba(54,102,214,0.8)}.paraui-check-box:hover>.paraui-help{padding:0 8px}.paraui-check-box:hover>.paraui-help>.paraui-check-box-label{color:rgba(54,102,214,0.8);cursor:pointer}.paraui-check-box:hover>.paraui-help>.paraui-check-box-label svg{color:rgba(54,102,214,0.8)}.paraui-check-box:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{border-color:rgba(54,102,214,0.8)}.paraui-check-box>.paraui-checkbox-box{position:relative}.paraui-check-box>.paraui-checkbox-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner{position:relative;top:0;left:0;display:block;border-radius:2px;background-color:white;border:1px solid rgba(171,176,185,0.4)}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{position:absolute;display:table;content:" "}.paraui-check-box>.paraui-check-box-label{color:#2e3743;padding:0 8px;margin:0;display:inline-flex;align-items:flex-start}.paraui-check-box>.paraui-check-box-label>.paraui-help>svg{top:0}.paraui-check-box .paraui-label{line-height:16px}.paraui-check-box>.paraui-help{padding:0 8px}.paraui-check-box>.paraui-help>.paraui-check-box-label{color:#2e3743;margin:0;display:inline-flex;align-items:center}.paraui-check-box.check-box-checked:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(54,102,214,0.8);border-color:transparent}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border:1px solid white;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%, -50%)}.paraui-check-box.check-box-indeterminate:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(54,102,214,0.8);border-color:transparent}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:white;top:50%;left:50%;transform:translate(-50%, -50%) scale(1)}.paraui-check-box.check-box-disabled{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label{color:rgba(46,55,67,0.4);cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label svg{color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled>.paraui-help>.paraui-check-box-label{color:rgba(46,55,67,0.4);cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-help>.paraui-check-box-label svg{color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>input{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,0.12);border-color:rgba(171,176,185,0.4)}.paraui-check-box.check-box-disabled.check-box-checked:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,0.12);border-color:rgba(171,176,185,0.4)}.paraui-check-box.check-box-disabled.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border-color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled.check-box-indeterminate:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,0.12);border-color:rgba(171,176,185,0.4)}.paraui-check-box.check-box-disabled.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-small>.paraui-checkbox-box{top:1px}.paraui-check-box.check-box-small>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:14px;height:14px}.paraui-check-box.check-box-small.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:4px;height:7px}.paraui-check-box.check-box-small.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-medium>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-medium.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-medium.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-large>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-large.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-large.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}\n',""]),e.exports=r},9974:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-check-box-group{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;width:100%}.paraui-check-box-group>.check-box-group-content{line-height:0}.paraui-check-box-group.check-box-group-column>.check-box-group-content{display:flex;flex-direction:column}.paraui-check-box-group.check-box-group-column>.check-box-group-content>.paraui-check-box{margin-bottom:8px}.paraui-check-box-group.check-box-group-column>.check-box-group-content>.paraui-check-box:last-child{margin-bottom:0}\n",""]),e.exports=r},7381:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-help{display:inline-block;font-size:16px;color:#3666d6}.paraui-help .paraui-icon{font-size:inherit;color:inherit}\n",""]),e.exports=r},9916:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-helper-text{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:12px;font-weight:400;padding-left:12px;line-height:20px;color:rgba(46,55,67,0.7)}.paraui-helper-text.paraui-helper-text-error{color:#eb6054}\n",""]),e.exports=r},4928:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-label{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;color:rgba(46,55,67,0.7);margin-bottom:8px;display:inline-block;line-height:1.43;word-break:break-all}.paraui-label>.paraui-label-required{margin-left:2px;color:#eb6054}.paraui-label>.paraui-help{vertical-align:top;margin-left:4px}.paraui-label>.paraui-help svg{color:rgba(46,55,67,0.4);vertical-align:top;position:relative;top:2px}.paraui-label.paraui-label-line.paraui-label-tooltip{border-bottom:1px dashed rgba(46,55,67,0.4);padding-bottom:2px}\n",""]),e.exports=r},9929:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-tooltip>div{padding-left:12px;padding-right:12px;font-size:14px;font-weight:400;color:#fff;background-color:rgba(46,55,67,0.7)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var o=function(e,r){var o=e[1]||"",t=e[3];if(!t)return o;if(r&&"function"==typeof btoa){var a=(i=t,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(l," */")),n=t.sources.map((function(e){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(e," */")}));return[o].concat(n).concat([a]).join("\n")}var i,c,l;return[o].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(o,"}"):o})).join("")},r.i=function(e,o,t){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(t)for(var n=0;n<this.length;n++){var i=this[n][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);t&&a[l[0]]||(o&&(l[2]?l[2]="".concat(o," and ").concat(l[2]):l[2]=o),r.push(l))}},r}},7418:function(e){"use strict";
15
- /*
16
- object-assign
17
- (c) Sindre Sorhus
18
- @license MIT
19
- */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var i,c,l=a(e),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))o.call(i,s)&&(l[s]=i[s]);if(r){c=r(i);for(var p=0;p<c.length;p++)t.call(i,c[p])&&(l[c[p]]=i[c[p]])}}return l}},5251:function(e,r,o){"use strict";
20
- /** @license React v17.0.2
21
- * react-jsx-runtime.production.min.js
22
- *
23
- * Copyright (c) Facebook, Inc. and its affiliates.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE file in the root directory of this source tree.
27
- */o(7418);var t=o(8156),a=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;a=n("react.element"),r.Fragment=n("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,o){var t,n={},u=null,s=null;for(t in void 0!==o&&(u=""+o),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(s=r.ref),r)c.call(r,t)&&!l.hasOwnProperty(t)&&(n[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===n[t]&&(n[t]=r[t]);return{$$typeof:a,type:e,key:u,ref:s,props:n,_owner:i.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,o){"use strict";e.exports=o(5251)},9036:function(e,r,o){var t=o(3379),a=o(1204);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},7708:function(e,r,o){var t=o(3379),a=o(9974);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},2113:function(e,r,o){var t=o(3379),a=o(7381);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},3936:function(e,r,o){var t=o(3379),a=o(9916);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},9663:function(e,r,o){var t=o(3379),a=o(4928);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},2310:function(e,r,o){var t=o(3379),a=o(9929);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var n={insert:("body","body"),singleton:!1};t(a,n);e.exports=a.locals||{}},3379:function(e,r,o){"use strict";var t,a=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},n=function(){var e={};return function(r){if(void 0===e[r]){var o=document.querySelector(r);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[r]=o}return e[r]}}(),i=[];function c(e){for(var r=-1,o=0;o<i.length;o++)if(i[o].identifier===e){r=o;break}return r}function l(e,r){for(var o={},t=[],a=0;a<e.length;a++){var n=e[a],l=r.base?n[0]+r.base:n[0],u=o[l]||0,s="".concat(l," ").concat(u);o[l]=u+1;var p=c(s),b={css:n[1],media:n[2],sourceMap:n[3]};-1!==p?(i[p].references++,i[p].updater(b)):i.push({identifier:s,updater:x(b,r),references:1}),t.push(s)}return t}function u(e){var r=document.createElement("style"),t=e.attributes||{};if(void 0===t.nonce){var a=o.nc;a&&(t.nonce=a)}if(Object.keys(t).forEach((function(e){r.setAttribute(e,t[e])})),"function"==typeof e.insert)e.insert(r);else{var i=n(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}return r}var s,p=(s=[],function(e,r){return s[e]=r,s.filter(Boolean).join("\n")});function b(e,r,o,t){var a=o?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(e.styleSheet)e.styleSheet.cssText=p(r,a);else{var n=document.createTextNode(a),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(n,i[r]):e.appendChild(n)}}function f(e,r,o){var t=o.css,a=o.media,n=o.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}var d=null,h=0;function x(e,r){var o,t,a;if(r.singleton){var n=h++;o=d||(d=u(r)),t=b.bind(null,o,n,!1),a=b.bind(null,o,n,!0)}else o=u(r),t=f.bind(null,o,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else a()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=a());var o=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<o.length;t++){var a=c(o[t]);i[a].references--}for(var n=l(e,r),u=0;u<o.length;u++){var s=c(o[u]);0===i[s].references&&(i[s].updater(),i.splice(s,1))}o=n}}}},9690:function(e,r,o){"use strict";var t=o(5893),a=o(8156),n=o(8767),i=(o(9036),function(){return i=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},i.apply(this,arguments)});r.default=function(e){var r=e.className,o=void 0===r?"":r,c=e.label,l=void 0===c?"":c,u=e.labelTooltip,s=e.size,p=void 0===s?"large":s,b=e.disabled,f=void 0!==b&&b,d=e.indeterminate,h=void 0!==d&&d,x=e.onChange,v=e.style,g=(0,a.useState)(!1),k=g[0],m=g[1];(0,a.useEffect)((function(){void 0!==e.defaultChecked&&m(e.defaultChecked)}),[]),(0,a.useEffect)((function(){void 0!==e.checked&&m(e.checked)}),[e.checked]);var y;return(0,t.jsxs)("label",i({className:(y="paraui-check-box",o&&(y+=" "+o),p&&(y+=" check-box-"+p),f&&(y+=" check-box-disabled"),h?y+=" check-box-indeterminate":k&&(y+=" check-box-checked"),y),onClick:function(r){if(r.preventDefault(),!f){if(h)return void 0===e.checked&&m(!0),void(x&&x(r,!0));void 0===e.checked&&m(!k),r.target.checked=!k,r.target.value=!k,x&&x(r,!k)}},style:v},{children:[(0,t.jsxs)("span",i({className:"paraui-checkbox-box"},{children:[(0,t.jsx)("input",i({type:"checkbox",value:k},e.inputProps)),(0,t.jsx)("span",{className:"paraui-checkbox-box-inner"})]})),l&&(0,t.jsx)(n.default,i({label:l},u,{className:function(){var e="paraui-check-box-label";return u&&u.className&&(e+=" "+u.className),e}()}))]}))}},3566:function(e,r,o){"use strict";var t=o(5893),a=o(7371),n=o(5670),i=o.n(n),c=o(6010),l=(o(2113),function(){return l=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},l.apply(this,arguments)}),u=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(e);a<t.length;a++)r.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(o[t[a]]=e[t[a]])}return o};r.default=function(e){var r=e.title,o=void 0===r?"":r,n=e.children,s=e.arrow,p=void 0===s||s,b=e.interactive,f=void 0===b||b,d=e.className,h=(e.placement,u(e,["title","children","arrow","interactive","className","placement"]));return(0,t.jsx)(a.default,l({title:o,arrow:p,interactive:f},h,{children:(0,t.jsx)("span",l({className:(0,c.Z)("paraui-help",d)},{children:n||(0,t.jsx)(i(),{})}))}))}},4254:function(e,r,o){"use strict";var t=o(5893),a=(o(3936),function(){return a=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},a.apply(this,arguments)});r.default=function(e){var r,o=e.className,n=e.style,i=e.error,c=void 0!==i&&i,l=e.helperText;return(0,t.jsx)("p",a({className:(r="paraui-helper-text",o&&(r+=" "+o),c&&(r+=" paraui-helper-text-error"),r),style:n},{children:l}))}},8767:function(e,r,o){"use strict";var t=o(5893),a=o(3566),n=(o(9663),function(){return n=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},n.apply(this,arguments)});r.default=function(e){var r=e.className,o=e.style,i=e.label,c=e.labelSign,l=e.required,u=void 0!==l&&l,s=e.tooltip,p=e.tooltipType,b=void 0===p?"icon":p,f=e.placement,d=e.arrow,h=e.tooltipIcon,x=function(){var e="paraui-label";return b&&(e+=" paraui-label-"+b),s&&(e+=" paraui-label-tooltip"),r&&(e+=" "+r),e};return(0,t.jsxs)(t.Fragment,{children:["icon"===b&&(0,t.jsxs)("label",n({className:x(),style:o},{children:[(0,t.jsx)(t.Fragment,{children:i}),u&&(0,t.jsx)("span",n({className:"paraui-label-required"},{children:"*"})),c&&(0,t.jsx)("span",{children:c}),s&&(0,t.jsx)(a.default,n({title:s,placement:f,arrow:d},{children:h}))]})),"line"===b&&(0,t.jsx)(a.default,n({title:s||"",placement:f,arrow:d},{children:(0,t.jsxs)("label",n({className:x(),style:o},{children:[(0,t.jsx)(t.Fragment,{children:i}),u&&(0,t.jsx)("span",n({className:"paraui-label-required"},{children:"*"})),c&&(0,t.jsx)("span",{children:c})]}))}))]})}},7371:function(e,r,o){"use strict";var t=o(5893),a=o(670),n=o(6010),i=(o(2310),function(){return i=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},i.apply(this,arguments)});r.default=function(e){var r,o=e.placement,c=void 0===o?"top-start":o,l=e.arrow,u=void 0===l||l,s=e.PopperProps,p=i(i({},e.classes),{popper:(0,n.Z)("paraui-tooltip",null===(r=e.classes)||void 0===r?void 0:r.popper,{"paraui-tooltip-left-right":(null==c?void 0:c.includes("left"))||(null==c?void 0:c.includes("right")),"paraui-tooltip-top-bottom":(null==c?void 0:c.includes("top"))||(null==c?void 0:c.includes("bottom"))})});return(0,t.jsx)(a.Tooltip,i({},e,{arrow:u,placement:c,classes:p,PopperProps:i(i({},s),{popperOptions:{modifiers:{arrow:{enabled:!0},preventOverflow:{boundariesElement:window}}}})}))}},670:function(e){"use strict";e.exports=r},8543:function(e){"use strict";e.exports=o},8156:function(r){"use strict";r.exports=e}},a={};function n(e){var r=a[e];if(void 0!==r)return r.exports;var o=a[e]={id:e,exports:{}};return t[e](o,o.exports,n),o.exports}n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},n.d=function(e,r){for(var o in r)n.o(r,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";n.r(i),n.d(i,{CheckboxGroup:function(){return u}});var e=n(8156),r=n(5893),o=n(9690),t=n(8767),a=n(4254),c=n(8543),l=(n(7708),function(){return l=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var a in r=arguments[o])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},l.apply(this,arguments)}),u=function(n){var i=n.label,u=void 0===i?"":i,s=n.labelTooltip,p=n.size,b=void 0===p?"large":p,f=n.row,d=void 0===f||f,h=n.disabled,x=void 0!==h&&h,v=n.required,g=void 0!==v&&v,k=n.error,m=void 0!==k&&k,y=n.helperText,j=void 0===y?"":y,O=n.id,w=void 0===O?"name":O,S=n.list,N=n.className,_=void 0===N?"":N,C=n.onChange,P=n.style,M=(0,e.useState)([]),E=M[0],T=M[1];(0,e.useEffect)((function(){void 0!==n.defaultValue&&T(n.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==n.value&&T(n.value)}),[n.value]);var H,F=function(e){return function(r,o){var t=e[w],a=(0,c.DeepClone)(E);if(o)a.push(t);else{var i=a.indexOf(t);a.splice(i,1)}void 0===n.value&&T(a),C&&C(a)}};return(0,r.jsxs)("div",l({className:(H="paraui-check-box-group",_&&(H+=" "+_),b&&(H+=" check-box-group-"+b),m&&(H+=" check-box-group-error"),x&&(H+=" check-box-group-disabled"),H+=d?" check-box-group-row":" check-box-group-column"),style:P},{children:[function(){if(u||g){return(0,r.jsx)(t.default,l({label:u,required:g},s,{className:(e="check-box-group-label",s&&s.className&&(e+=" "+s.className),e)}))}var e;return null}(),(0,r.jsx)("div",l({className:"check-box-group-content"},{children:S.map((function(r,t){return(0,e.createElement)(o.default,l({},r,{checked:-1!==E.indexOf(r[w]),size:b,disabled:Boolean(x||r.disabled),key:t,onChange:F(r)}))}))})),(0,r.jsx)(a.default,{className:"check-box-group-error-text",error:m,helperText:j})]}))};i.default=u}(),i}()}));
@@ -1,30 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2022/3/7 4:12 PM
4
- * @description 折叠面板
5
- */
6
- import React, { FunctionComponent } from 'react';
7
- export declare type CollapsibleType = 'header' | 'disabled';
8
- export interface CollapsePanelProps {
9
- /** className */
10
- className?: string;
11
- /** 样式 */
12
- style?: React.CSSProperties;
13
- /** 对应 activeKey */
14
- key: string | number;
15
- /** 面板头内容 */
16
- header: React.ReactNode;
17
- /** @deprecated Use `collapsible="disabled"` instead */
18
- disabled?: boolean;
19
- /** 是否展示当前面板上的箭头 */
20
- showArrow?: boolean;
21
- /** 被隐藏时是否渲染 DOM 结构 */
22
- forceRender?: boolean;
23
- id?: string;
24
- /** 自定义渲染每个面板右上角的内容 */
25
- extra?: React.ReactNode;
26
- /** 是否可折叠或指定可折叠触发区域 */
27
- collapsible?: CollapsibleType;
28
- }
29
- export declare const CollapsePanelProps: FunctionComponent<CollapsePanelProps>;
30
- export default CollapsePanelProps;
@@ -1,57 +0,0 @@
1
- /**
2
- * @author linhd
3
- * @date 2022/3/7 4:03 PM
4
- * @description 折叠面板
5
- */
6
- import React from 'react';
7
- import CollapsePanel, { CollapsibleType } from './collapsePanel';
8
- import './index.scss';
9
- export declare type ExpandIconPosition = 'left' | 'right' | undefined;
10
- export interface CollapseProps {
11
- /** className */
12
- className?: string;
13
- /** 样式 */
14
- style?: React.CSSProperties;
15
- /** 初始化选中面板的 key */
16
- defaultActiveKey?: Array<string | number> | string | number;
17
- /** 当前激活 tab 面板的 key */
18
- activeKey?: Array<string | number> | string | number;
19
- /** 手风琴模式 */
20
- accordion?: boolean;
21
- /** 所有子面板是否可折叠或指定可折叠触发区域 */
22
- collapsible?: CollapsibleType;
23
- /** 销毁折叠隐藏的面板 */
24
- destroyInactivePanel?: boolean;
25
- /** 自定义切换图标 */
26
- expandIcon?: (panelProps: PanelProps) => React.ReactNode;
27
- /** 设置图标位置 */
28
- expandIconPosition?: ExpandIconPosition;
29
- /** onChange */
30
- onChange?: (key: string | string[]) => void;
31
- children?: any;
32
- }
33
- interface PanelProps {
34
- /** 是否展开 */
35
- isActive?: boolean;
36
- /** 面板头内容 */
37
- header?: React.ReactNode;
38
- /** className */
39
- className?: string;
40
- /** style */
41
- style?: React.CSSProperties;
42
- /** 是否展示当前面板上的箭头 */
43
- showArrow?: boolean;
44
- /** 被隐藏时是否渲染 DOM 结构 */
45
- forceRender?: boolean;
46
- /** @deprecated Use `collapsible="disabled"` instead */
47
- disabled?: boolean;
48
- /** 自定义渲染每个面板右上角的内容 */
49
- extra?: React.ReactNode;
50
- /** 是否可折叠或指定可折叠触发区域 */
51
- collapsible?: CollapsibleType;
52
- }
53
- interface CollapseInterface extends React.FC<CollapseProps> {
54
- Panel: typeof CollapsePanel;
55
- }
56
- export declare const Collapse: CollapseInterface;
57
- export default Collapse;
package/Collapse/index.js DELETED
@@ -1,28 +0,0 @@
1
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("rc-collapse")):"function"==typeof define&&define.amd?define(["react","rc-collapse"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("rc-collapse")):e.ParaUI=r(e.react,e["rc-collapse"])}(self,(function(e,r){return function(){var t={4674:function(e,r,t){var n;self,e.exports=(n=t(8156),function(){var e={466:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-icon{width:1em;height:1em;fill:currentColor;display:inline-block;user-select:none;flex-shrink:0}.paraui-icon-primary{color:#3666d6}.paraui-icon-secondary{color:#3666d6}.paraui-icon-thirdary{color:#3666d6}.paraui-icon-small{font-size:16px}.paraui-icon-medium{font-size:18px}.paraui-icon-large{font-size:20px}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t,n,a,o=e[1]||"",i=e[3];if(!i)return o;if(r&&"function"==typeof btoa){var c=(t=i,n=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(a," */")),l=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[o].concat(l).concat([c]).join("\n")}return[o].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);n&&a[l[0]]||(t&&(l[2]?l[2]="".concat(t," and ").concat(l[2]):l[2]=t),r.push(l))}},r}},7418:function(e){"use strict";
2
- /*
3
- object-assign
4
- (c) Sindre Sorhus
5
- @license MIT
6
- */var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,c,l=a(e),s=1;s<arguments.length;s++){for(var u in i=Object(arguments[s]))t.call(i,u)&&(l[u]=i[u]);if(r){c=r(i);for(var p=0;p<c.length;p++)n.call(i,c[p])&&(l[c[p]]=i[c[p]])}}return l}},5251:function(e,r,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 n=t(8156),a=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;a=o("react.element"),r.Fragment=o("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,t){var n,o={},s=null,u=null;for(n in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(u=r.ref),r)c.call(r,n)&&!l.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:a,type:e,key:s,ref:u,props:o,_owner:i.current}}r.jsx=s},5893:function(e,r,t){"use strict";e.exports=t(5251)},7856:function(e,r,t){var n=t(3379),a=t(466);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]),n(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},3379:function(e,r,t){"use strict";var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),i=[];function c(e){for(var r=-1,t=0;t<i.length;t++)if(i[t].identifier===e){r=t;break}return r}function l(e,r){for(var t={},n=[],a=0;a<e.length;a++){var o=e[a],l=r.base?o[0]+r.base:o[0],s=t[l]||0,u="".concat(l," ").concat(s);t[l]=s+1;var p=c(u),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==p?(i[p].references++,i[p].updater(f)):i.push({identifier:u,updater:m(f,r),references:1}),n.push(u)}return n}function s(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var a=t.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var i=o(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}return r}var u,p=(u=[],function(e,r){return u[e]=r,u.filter(Boolean).join("\n")});function f(e,r,t,n){var a=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(r,a);else{var o=document.createTextNode(a),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(o,i[r]):e.appendChild(o)}}function d(e,r,t){var n=t.css,a=t.media,o=t.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,h=0;function m(e,r){var t,n,a;if(r.singleton){var o=h++;t=v||(v=s(r)),n=f.bind(null,t,o,!1),a=f.bind(null,t,o,!0)}else t=s(r),n=d.bind(null,t,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else a()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=a());var t=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var a=c(t[n]);i[a].references--}for(var o=l(e,r),s=0;s<t.length;s++){var u=c(t[s]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}t=o}}}},4939:function(e,r,t){"use strict";var n=t(5893),a=(t(7856),function(){return a=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},a.apply(this,arguments)}),o=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)r.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]])}return t};r.default=function(e){var r,t=e.path,i=e.className,c=e.color,l=void 0===c?"primary":c,s=e.size,u=void 0===s?"small":s,p=e.dataName,f=void 0===p?"":p,d=o(e,["path","className","color","size","dataName"]);return(0,n.jsx)("svg",a({className:(r="paraui-icon",r+=" svg-icon",i&&(r+=" "+i),l&&(r+=" paraui-icon-"+l),u&&(r+=" paraui-icon-"+u),r),viewBox:"0 0 1024 1024","data-name":f},d,{children:t}),void 0)}},8156:function(e){"use strict";e.exports=n}},r={};function t(n){var a=r[n];if(void 0!==a)return a.exports;var o=r[n]={id:n,exports:{}};return e[n](o,o.exports,t),o.exports}t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},t.d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";t.r(a),t.d(a,{Right:function(){return o}});var e=t(5893),r=t(4939),n=function(){return n=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},n.apply(this,arguments)},o=function(t){return(0,e.jsx)(r.default,n({dataName:"Right",path:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("path",{d:"M318.506667 813.696a42.368 42.368 0 0 1 12.501333-30.165333l271.488-271.573334-271.488-271.488a42.666667 42.666667 0 1 1 60.330667-60.330666l301.653333 301.653333a42.666667 42.666667 0 0 1 0 60.373333l-301.653333 301.696a42.666667 42.666667 0 0 1-72.832-30.165333z"},void 0)},void 0)},t),void 0)};a.default=o}(),a}())},8224:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-collapse{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;background-color:white;border-bottom:1px solid rgba(171,176,185,0.4)}.paraui-collapse .paraui-collapse-motion-collapse{overflow:hidden;transition:height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1),opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important}.paraui-collapse>.paraui-collapse-item{border-top:1px solid rgba(171,176,185,0.4)}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-header{display:flex;align-items:center;padding:16px;color:#2e3743;cursor:pointer;font-weight:700}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-header>.paraui-collapse-svg-box{line-height:0;margin-right:16px}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-header>.paraui-collapse-svg-box svg{color:#2e3743}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-header>.paraui-collapse-svg-box .paraui-collapse-expand-svg{transition:all 0.3s, visibility 0s;color:#2e3743}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-header>.paraui-collapse-extra{line-height:0;margin-left:auto}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-header>.paraui-collapse-extra svg{color:#2e3743}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-content.paraui-collapse-content-hidden{display:none}.paraui-collapse>.paraui-collapse-item>.paraui-collapse-content>.paraui-collapse-content-box{padding:0 16px 16px;color:#2e3743;font-size:14px}.paraui-collapse>.paraui-collapse-item.paraui-collapse-item-active>.paraui-collapse-header>.paraui-collapse-svg-box .paraui-collapse-expand-svg{transform:rotate(90deg)}.paraui-collapse.paraui-collapse-svg-right>.paraui-collapse-item>.paraui-collapse-header{padding-right:40px;position:relative}.paraui-collapse.paraui-collapse-svg-right>.paraui-collapse-item>.paraui-collapse-header>.paraui-collapse-svg-box{position:absolute;right:12px;top:17px;margin-right:0}.paraui-collapse>.paraui-collapse-item-disabled>.paraui-collapse-header{color:#2e3743;cursor:not-allowed;background-color:rgba(171,176,185,0.12)}.paraui-collapse>.paraui-collapse-item-disabled>.paraui-collapse-header>.paraui-collapse-svg-box svg{color:#2e3743}.paraui-collapse>.paraui-collapse-item-disabled>.paraui-collapse-header>.paraui-collapse-svg-box .paraui-collapse-expand-svg{color:#2e3743}.paraui-collapse>.paraui-collapse-item-disabled>.paraui-collapse-header>.paraui-collapse-extra svg{color:#2e3743}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t=e[1]||"",n=e[3];if(!n)return t;if(r&&"function"==typeof btoa){var a=(i=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(l," */")),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(o).concat([a]).join("\n")}var i,c,l;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);n&&a[l[0]]||(t&&(l[2]?l[2]="".concat(t," and ").concat(l[2]):l[2]=t),r.push(l))}},r}},7418:function(e){"use strict";
15
- /*
16
- object-assign
17
- (c) Sindre Sorhus
18
- @license MIT
19
- */var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,c,l=a(e),s=1;s<arguments.length;s++){for(var u in i=Object(arguments[s]))t.call(i,u)&&(l[u]=i[u]);if(r){c=r(i);for(var p=0;p<c.length;p++)n.call(i,c[p])&&(l[c[p]]=i[c[p]])}}return l}},5251:function(e,r,t){"use strict";
20
- /** @license React v17.0.2
21
- * react-jsx-runtime.production.min.js
22
- *
23
- * Copyright (c) Facebook, Inc. and its affiliates.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE file in the root directory of this source tree.
27
- */
28
- t(7418);var n=t(8156),a=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;a=o("react.element"),o("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,t){var n,o={},s=null,u=null;for(n in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(u=r.ref),r)c.call(r,n)&&!l.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:a,type:e,key:s,ref:u,props:o,_owner:i.current}}r.jsx=s},5893:function(e,r,t){"use strict";e.exports=t(5251)},5543:function(e,r,t){var n=t(3379),a=t(8224);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var o={insert:("body","body"),singleton:!1};n(a,o);e.exports=a.locals||{}},3379:function(e,r,t){"use strict";var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),i=[];function c(e){for(var r=-1,t=0;t<i.length;t++)if(i[t].identifier===e){r=t;break}return r}function l(e,r){for(var t={},n=[],a=0;a<e.length;a++){var o=e[a],l=r.base?o[0]+r.base:o[0],s=t[l]||0,u="".concat(l," ").concat(s);t[l]=s+1;var p=c(u),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==p?(i[p].references++,i[p].updater(f)):i.push({identifier:u,updater:m(f,r),references:1}),n.push(u)}return n}function s(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var a=t.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var i=o(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}return r}var u,p=(u=[],function(e,r){return u[e]=r,u.filter(Boolean).join("\n")});function f(e,r,t,n){var a=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(r,a);else{var o=document.createTextNode(a),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(o,i[r]):e.appendChild(o)}}function d(e,r,t){var n=t.css,a=t.media,o=t.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,h=0;function m(e,r){var t,n,a;if(r.singleton){var o=h++;t=v||(v=s(r)),n=f.bind(null,t,o,!1),a=f.bind(null,t,o,!0)}else t=s(r),n=d.bind(null,t,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else a()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=a());var t=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var a=c(t[n]);i[a].references--}for(var o=l(e,r),s=0;s<t.length;s++){var u=c(t[s]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}t=o}}}},3749:function(e){"use strict";e.exports=r},8156:function(r){"use strict";r.exports=e}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={id:e,exports:{}};return t[e](o,o.exports,a),o.exports}a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,{a:r}),r},a.d=function(e,r){for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";a.r(o),a.d(o,{Collapse:function(){return y},default:function(){return g}});var e=a(5893),r=a(3749),t=a.n(r),n=function(){return n=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},n.apply(this,arguments)},i=function(r){var a,o=r.className,i=void 0===o?"":o,c=r.showArrow,l=void 0===c||c;return(0,e.jsx)(t().Panel,n({},r,{className:(a="",i&&(a+=i),l||(a+=" paraui-collapse-panel-no-arrow"),a),prefixCls:"paraui-collapse"}))},c=a(8156),l=function(){return l=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},l.apply(this,arguments)},s=c.isValidElement;function u(e,r){return function(e,r,t){return s(e)?c.cloneElement(e,"function"==typeof t?t(e.props||{}):t):r}(e,e,r)}var p=a(4674),f=a.n(p),d=function(){return{height:0,opacity:0}},v=function(e){return{height:e.scrollHeight,opacity:1}},h=function(e,r){return!0===(null==r?void 0:r.deadline)||"height"===r.propertyName},m={motionName:"paraui-collapse-motion-collapse",onAppearStart:d,onEnterStart:d,onAppearActive:v,onEnterActive:v,onLeaveStart:function(e){return{height:e?e.offsetHeight:0}},onLeaveActive:d,onAppearEnd:h,onEnterEnd:h,onLeaveEnd:h,motionDeadline:500},b=(a(5543),function(){return b=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},b.apply(this,arguments)}),y=function(r){var n,a,o,i=r.className,c=void 0===i?"":i,s=r.expandIconPosition,p=void 0===s?"left":s,d=b(b({},m),{motionAppear:!1,leavedClassName:"paraui-collapse-content-hidden"});return(0,e.jsx)(t(),b({openMotion:d},r,{expandIcon:function(t){void 0===t&&(t={});var n=r.expandIcon,a=n?n(t):(0,e.jsx)(f(),{className:"paraui-collapse-expand-svg"});return(0,e.jsx)("div",b({className:"paraui-collapse-svg-box"},{children:a}))},prefixCls:"paraui-collapse",className:(o="",c&&(o+=c),p&&(o+=" paraui-collapse-svg-"+p),o)},{children:(a=r.children,(n=a,n?Array.isArray(n)?n:[n]:[]).map((function(e,r){var t,n,a,o;if(null===(t=e.props)||void 0===t?void 0:t.disabled){var i=e.key||String(r),c=e.props,s=c.disabled,p=c.collapsible;return u(e,b(b({},(n=e.props,a=["disabled"],o=l({},n),Array.isArray(a)&&a.forEach((function(e){delete o[e]})),o)),{key:i,collapsible:null!=p?p:s?"disabled":void 0}))}return e})))}))};y.Panel=i;var g=y}(),o}()}));
@@ -1,5 +0,0 @@
1
- import { CSSMotionProps } from 'rc-motion';
2
- declare const collapseMotion: CSSMotionProps;
3
- declare const getTransitionName: (rootPrefixCls: string, motion: string, transitionName?: string | undefined) => string;
4
- export { getTransitionName };
5
- export default collapseMotion;
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- export declare const isValidElement: typeof React.isValidElement;
3
- declare type AnyObject = Record<any, any>;
4
- declare type RenderProps = undefined | AnyObject | ((originProps: AnyObject) => AnyObject | undefined);
5
- export declare function replaceElement(element: React.ReactNode, replacement: React.ReactNode, props: RenderProps): React.ReactNode;
6
- export declare function cloneElement(element: React.ReactNode, props?: RenderProps): React.ReactElement;
7
- /** toArray */
8
- export declare function toArray<T>(list: T | T[]): T[];
9
- /** omit */
10
- export declare function omit<T extends object, K extends keyof T>(obj: T, fields: K[]): Omit<T, K>;
11
- export {};
@@ -1,4 +0,0 @@
1
- import { SketchPicker, ChromePicker, CompactPicker, SwatchesPicker } from 'react-color';
2
- import './index.scss';
3
- export default SketchPicker;
4
- export { ChromePicker, CompactPicker, SwatchesPicker };