@para-ui/core 2.1.35 → 2.1.38
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.
- package/AutoBox/index.d.ts +34 -0
- package/AutoBox/index.js +28 -0
- package/AutoTips/index.d.ts +27 -0
- package/AutoTips/index.js +15 -0
- package/Breadcrumbs/index.d.ts +39 -0
- package/Breadcrumbs/index.js +28 -0
- package/Button/SplitButton.d.ts +59 -0
- package/Button/index.d.ts +56 -0
- package/Button/index.js +53 -0
- package/Button/lang/en_US.d.ts +4 -0
- package/Button/lang/index.d.ts +9 -0
- package/Button/lang/zh_CN.d.ts +4 -0
- package/ButtonGroup/index.d.ts +33 -0
- package/ButtonGroup/index.js +53 -0
- package/Carousel/index.d.ts +30 -0
- package/Carousel/index.js +15 -0
- package/Cascader/index.d.ts +52 -0
- package/Cascader/index.js +41 -0
- package/Cascader/lang/en_US.d.ts +4 -0
- package/Cascader/lang/index.d.ts +9 -0
- package/Cascader/lang/zh_CN.d.ts +4 -0
- package/Checkbox/index.d.ts +40 -0
- package/Checkbox/index.js +27 -0
- package/CheckboxGroup/index.d.ts +46 -0
- package/CheckboxGroup/index.js +27 -0
- package/Collapse/collapsePanel.d.ts +30 -0
- package/Collapse/index.d.ts +57 -0
- package/Collapse/index.js +28 -0
- package/Collapse/motion.d.ts +5 -0
- package/Collapse/util.d.ts +11 -0
- package/CollapseBox/index.d.ts +27 -0
- package/CollapseBox/index.js +15 -0
- package/CollapseBox/util.d.ts +5 -0
- package/ColorPicker/index.d.ts +4 -0
- package/ColorPicker/index.js +1 -0
- package/ComboSelect/WithTabsCombo/index.d.ts +11 -0
- package/ComboSelect/WithTabsCombo/interface.d.ts +141 -0
- package/ComboSelect/index.d.ts +11 -0
- package/ComboSelect/index.js +391 -0
- package/ComboSelect/interface.d.ts +141 -0
- package/ComboSelect/lang/en_US.d.ts +8 -0
- package/ComboSelect/lang/index.d.ts +17 -0
- package/ComboSelect/lang/zh_CN.d.ts +8 -0
- package/ComboSelect/utils.d.ts +13 -0
- package/Container/index.d.ts +77 -0
- package/Container/index.js +15 -0
- package/DatePicker/PickerButton.d.ts +3 -0
- package/DatePicker/PickerTag.d.ts +3 -0
- package/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +11 -0
- package/DatePicker/generatePicker/index.d.ts +77 -0
- package/DatePicker/index.d.ts +18 -0
- package/DatePicker/index.js +144 -0
- package/DatePicker/lang/en_US.d.ts +3 -0
- package/DatePicker/lang/index.d.ts +7 -0
- package/DatePicker/lang/zh_CN.d.ts +3 -0
- package/DatePicker/util.d.ts +20 -0
- package/Desktop/index.d.ts +55 -0
- package/Desktop/index.js +14 -0
- package/Drawer/index.d.ts +11 -0
- package/Drawer/index.js +53 -0
- package/Drawer/interface.d.ts +78 -0
- package/Drawer/lang/en_US.d.ts +5 -0
- package/Drawer/lang/index.d.ts +11 -0
- package/Drawer/lang/zh_CN.d.ts +5 -0
- package/Empty/images/index.d.ts +2 -0
- package/Empty/index.d.ts +30 -0
- package/Empty/index.js +14 -0
- package/Empty/lang/en_US.d.ts +6 -0
- package/Empty/lang/index.d.ts +13 -0
- package/Empty/lang/zh_CN.d.ts +6 -0
- package/Form/index.d.ts +172 -0
- package/Form/index.js +248 -0
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +8 -0
- package/FormItem/compoments/formFile/index.d.ts +38 -0
- package/FormItem/compoments/formRadioGroup/index.d.ts +8 -0
- package/FormItem/compoments/formSelect/index.d.ts +18 -0
- package/FormItem/errorTips.d.ts +12 -0
- package/FormItem/index.d.ts +145 -0
- package/FormItem/index.js +248 -0
- package/FormItem/itemType.d.ts +42 -0
- package/FormItem/validateFunction.d.ts +15 -0
- package/FunctionModal/dialog.d.ts +58 -0
- package/FunctionModal/index.d.ts +8 -0
- package/FunctionModal/index.js +118 -0
- package/FunctionModal/modalContext.d.ts +14 -0
- package/GlobalContext/componentsProps.d.ts +19 -0
- package/GlobalContext/confirmLocale.d.ts +7 -0
- package/GlobalContext/index.d.ts +28 -0
- package/GlobalContext/index.js +16 -0
- package/GlobalContext/intl.d.ts +34 -0
- package/GlobalContext/useFormatMessage.d.ts +3 -0
- package/Help/index.d.ts +20 -0
- package/Help/index.js +28 -0
- package/HelperText/index.d.ts +19 -0
- package/HelperText/index.js +15 -0
- package/Hooks/useGlobalProps.d.ts +1 -0
- package/InputLang/index.d.ts +49 -0
- package/InputLang/index.js +118 -0
- package/InputNumber/index.d.ts +74 -0
- package/InputNumber/index.js +79 -0
- package/Label/index.d.ts +35 -0
- package/Label/index.js +27 -0
- package/Loading/index.d.ts +17 -0
- package/Loading/index.js +28 -0
- package/Menu/footerExpansion.d.ts +9 -0
- package/Menu/index.d.ts +10 -0
- package/Menu/index.js +53 -0
- package/Menu/interface.d.ts +139 -0
- package/Menu/logo.d.ts +9 -0
- package/Menu/verticalMenuList.d.ts +14 -0
- package/Message/index.d.ts +59 -0
- package/Message/index.js +67 -0
- package/Modal/Confirm/index.d.ts +66 -0
- package/Modal/index.d.ts +61 -0
- package/Modal/index.js +118 -0
- package/Modal/lang/en_US.d.ts +5 -0
- package/Modal/lang/index.d.ts +11 -0
- package/Modal/lang/zh_CN.d.ts +5 -0
- package/MultiBox/index.d.ts +54 -0
- package/MultiBox/index.js +105 -0
- package/Notification/index.d.ts +52 -0
- package/Notification/index.js +67 -0
- package/OperateBtn/index.d.ts +59 -0
- package/OperateBtn/index.js +66 -0
- package/OperateBtn/lang/en_US.d.ts +4 -0
- package/OperateBtn/lang/index.d.ts +9 -0
- package/OperateBtn/lang/zh_CN.d.ts +4 -0
- package/PageHeader/horizontalMeun.d.ts +9 -0
- package/PageHeader/horizontalMeunRight.d.ts +9 -0
- package/PageHeader/index.d.ts +10 -0
- package/PageHeader/index.js +66 -0
- package/PageHeader/interface.d.ts +167 -0
- package/Pagination/index.d.ts +33 -0
- package/Pagination/index.js +183 -0
- package/Pagination/lang/en_US.d.ts +8 -0
- package/Pagination/lang/index.d.ts +17 -0
- package/Pagination/lang/zh_CN.d.ts +8 -0
- package/ParauiProvider/index.d.ts +12 -0
- package/ParauiProvider/index.js +15 -0
- package/PopConfirm/index.d.ts +50 -0
- package/PopConfirm/index.js +105 -0
- package/PopConfirm/lang/en_US.d.ts +5 -0
- package/PopConfirm/lang/index.d.ts +11 -0
- package/PopConfirm/lang/zh_CN.d.ts +5 -0
- package/Popover/index.d.ts +14 -0
- package/Popover/index.js +15 -0
- package/Popper/index.d.ts +13 -0
- package/Popper/index.js +16 -0
- package/Querying/images/index.d.ts +2 -0
- package/Querying/index.d.ts +26 -0
- package/Querying/index.js +14 -0
- package/Querying/lang/en_US.d.ts +4 -0
- package/Querying/lang/index.d.ts +9 -0
- package/Querying/lang/zh_CN.d.ts +4 -0
- package/README.md +29 -1
- package/Radio/index.d.ts +38 -0
- package/Radio/index.js +27 -0
- package/RadioGroup/index.d.ts +47 -0
- package/RadioGroup/index.js +27 -0
- package/Search/index.d.ts +56 -0
- package/Search/index.js +118 -0
- package/Select/index.d.ts +86 -0
- package/Select/index.js +105 -0
- package/Select/lang/en_US.d.ts +5 -0
- package/Select/lang/index.d.ts +11 -0
- package/Select/lang/zh_CN.d.ts +5 -0
- package/SelectInput/index.d.ts +11 -0
- package/SelectInput/index.js +105 -0
- package/SingleBox/index.d.ts +42 -0
- package/SingleBox/index.js +105 -0
- package/Slider/index.d.ts +14 -0
- package/Slider/index.js +15 -0
- package/Slider/interface.d.ts +102 -0
- package/Split/index.d.ts +7 -0
- package/Split/index.js +15 -0
- package/Stepper/icons.d.ts +5 -0
- package/Stepper/index.d.ts +39 -0
- package/Stepper/index.js +145 -0
- package/Switch/index.d.ts +78 -0
- package/Switch/index.js +40 -0
- package/Table/index.d.ts +10 -0
- package/Table/index.js +261 -0
- package/Table/interface.d.ts +200 -0
- package/Table/lang/en_US.d.ts +6 -0
- package/Table/lang/index.d.ts +13 -0
- package/Table/lang/zh_CN.d.ts +6 -0
- package/Table/tableBody.d.ts +9 -0
- package/Table/tableBodyElement/index.d.ts +15 -0
- package/Table/tableBodyInterface.d.ts +67 -0
- package/Table/tableContainer/index.d.ts +16 -0
- package/Table/tableElement/index.d.ts +17 -0
- package/Table/tableHead.d.ts +9 -0
- package/Table/tableHeadElement/index.d.ts +15 -0
- package/Table/tableHeadInterface.d.ts +30 -0
- package/Table/tablePagination.d.ts +9 -0
- package/Table/tablePaginationInterFace.d.ts +24 -0
- package/Table/tdElement/index.d.ts +15 -0
- package/Table/thElement/index.d.ts +15 -0
- package/Table/trElement/index.d.ts +15 -0
- package/Table/util.d.ts +16 -0
- package/Tabs/index.d.ts +48 -0
- package/Tabs/index.js +131 -0
- package/Tag/TagGroup.d.ts +66 -0
- package/Tag/index.d.ts +34 -0
- package/Tag/index.js +40 -0
- package/TextField/index.d.ts +93 -0
- package/TextField/index.js +79 -0
- package/TimePicker/index.d.ts +22 -0
- package/TimePicker/index.js +144 -0
- package/TimePicker/locale/en_US.d.ts +3 -0
- package/TimePicker/locale/zh_CN.d.ts +3 -0
- package/TimePicker/style/index.d.ts +1 -0
- package/Timeline/index.d.ts +22 -0
- package/Timeline/index.js +15 -0
- package/ToggleButton/ToggleButtonGroup.d.ts +49 -0
- package/ToggleButton/index.d.ts +49 -0
- package/ToggleButton/index.js +53 -0
- package/Tooltip/index.d.ts +14 -0
- package/Tooltip/index.js +15 -0
- package/Transfer/index.d.ts +17 -0
- package/Transfer/index.js +144 -0
- package/Transfer/lang/en_US.d.ts +6 -0
- package/Transfer/lang/index.d.ts +13 -0
- package/Transfer/lang/zh_CN.d.ts +6 -0
- package/Tree/OperateBar/index.d.ts +13 -0
- package/Tree/Tree.d.ts +4 -0
- package/Tree/index.d.ts +5 -0
- package/Tree/index.js +131 -0
- package/Tree/interface.d.ts +201 -0
- package/Tree/lang/en_US.d.ts +8 -0
- package/Tree/lang/index.d.ts +17 -0
- package/Tree/lang/zh_CN.d.ts +8 -0
- package/{docs/view/autoTips/index.scss → Tree/utils/closestPolyfill.d.ts} +0 -0
- package/Tree/utils/tools.d.ts +26 -0
- package/Tree/utils/treeUtil.d.ts +15 -0
- package/Upload/Dragger/index.d.ts +10 -0
- package/Upload/ErroTip/index.d.ts +13 -0
- package/Upload/ImageUpload/index.d.ts +14 -0
- package/Upload/ImgCrop/EasyCrop.d.ts +17 -0
- package/Upload/ImgCrop/constants.d.ts +7 -0
- package/Upload/ImgCrop/index.d.ts +6 -0
- package/Upload/ImgCrop/interface.d.ts +24 -0
- package/Upload/UploadList/index.d.ts +5 -0
- package/Upload/index.d.ts +15 -0
- package/Upload/index.js +196 -0
- package/Upload/interface.d.ts +134 -0
- package/Upload/lang/en_US.d.ts +12 -0
- package/Upload/lang/index.d.ts +25 -0
- package/Upload/lang/zh_CN.d.ts +12 -0
- package/cdn/AutoBox/index.js +29 -0
- package/cdn/AutoTips/index.js +40 -0
- package/cdn/Breadcrumbs/index.js +53 -0
- package/cdn/Button/index.js +79 -0
- package/cdn/ButtonGroup/index.js +79 -0
- package/cdn/Carousel/index.js +6 -0
- package/cdn/Cascader/index.js +40 -0
- package/cdn/Checkbox/index.js +53 -0
- package/cdn/CheckboxGroup/index.js +53 -0
- package/cdn/Collapse/index.js +27 -0
- package/cdn/CollapseBox/index.js +1 -0
- package/cdn/ColorPicker/index.js +1 -0
- package/cdn/ComboSelect/index.js +438 -0
- package/cdn/Container/index.js +1 -0
- package/cdn/DatePicker/index.js +183 -0
- package/cdn/Desktop/index.js +24 -0
- package/cdn/Drawer/index.js +84 -0
- package/cdn/Empty/index.js +1 -0
- package/cdn/Form/index.js +295 -0
- package/cdn/FormItem/index.js +295 -0
- package/cdn/FunctionModal/index.js +144 -0
- package/cdn/GlobalContext/index.js +1 -0
- package/cdn/Help/index.js +53 -0
- package/cdn/HelperText/index.js +1 -0
- package/cdn/InputLang/index.js +144 -0
- package/cdn/InputNumber/index.js +118 -0
- package/cdn/Label/index.js +53 -0
- package/cdn/Loading/index.js +14 -0
- package/cdn/Menu/index.js +40 -0
- package/cdn/Message/index.js +53 -0
- package/cdn/Modal/index.js +144 -0
- package/cdn/MultiBox/index.js +131 -0
- package/cdn/Notification/index.js +66 -0
- package/cdn/OperateBtn/index.js +92 -0
- package/cdn/PageHeader/index.js +92 -0
- package/cdn/Pagination/index.js +214 -0
- package/cdn/ParauiProvider/index.js +9 -0
- package/cdn/PopConfirm/index.js +131 -0
- package/cdn/Popover/index.js +16 -0
- package/cdn/Popper/index.js +26 -0
- package/cdn/Querying/index.js +1 -0
- package/cdn/Radio/index.js +53 -0
- package/cdn/RadioGroup/index.js +53 -0
- package/cdn/Search/index.js +144 -0
- package/cdn/Select/index.js +131 -0
- package/cdn/SelectInput/index.js +131 -0
- package/cdn/SingleBox/index.js +131 -0
- package/cdn/Slider/index.js +14 -0
- package/cdn/Split/index.js +1 -0
- package/cdn/Stepper/index.js +154 -0
- package/cdn/Switch/index.js +71 -0
- package/cdn/Table/index.js +292 -0
- package/cdn/Tabs/index.js +165 -0
- package/cdn/Tag/index.js +27 -0
- package/cdn/TextField/index.js +105 -0
- package/cdn/TimePicker/index.js +183 -0
- package/cdn/Timeline/index.js +16 -0
- package/cdn/ToggleButton/index.js +79 -0
- package/cdn/Tooltip/index.js +40 -0
- package/cdn/Transfer/index.js +170 -0
- package/cdn/Tree/index.js +170 -0
- package/cdn/Upload/index.js +249 -0
- package/index.d.ts +124 -0
- package/index.js +729 -0
- package/package.json +5 -4
- package/{temp/style.css → style.css} +12 -10
- package/.eslintignore +0 -12
- package/babel.config.js +0 -7
- package/docs/App.tsx +0 -277
- package/docs/Router.tsx +0 -79
- package/docs/assets/1.jpeg +0 -0
- package/docs/assets/P.svg +0 -1
- package/docs/assets/icon.ico +0 -0
- package/docs/assets/icon.png +0 -0
- package/docs/assets/logo.png +0 -0
- package/docs/config/interceptors.ts +0 -73
- package/docs/config/router.tsx +0 -212
- package/docs/context/global.tsx +0 -65
- package/docs/index.tsx +0 -42
- package/docs/locale/index.ts +0 -64
- package/docs/locale/lang/en_US.ts +0 -16
- package/docs/locale/lang/zh_CN.ts +0 -16
- package/docs/react-app-env.d.ts +0 -18
- package/docs/services/api.ts +0 -6
- package/docs/styles/index.scss +0 -31
- package/docs/view/autoBox/api.tsx +0 -67
- package/docs/view/autoBox/codeString.tsx +0 -137
- package/docs/view/autoBox/index.scss +0 -15
- package/docs/view/autoBox/index.tsx +0 -97
- package/docs/view/autoTips/api.tsx +0 -49
- package/docs/view/autoTips/codeString.tsx +0 -34
- package/docs/view/autoTips/index.tsx +0 -53
- package/docs/view/breadcrumbs/api.tsx +0 -72
- package/docs/view/breadcrumbs/codeString.tsx +0 -160
- package/docs/view/breadcrumbs/index.scss +0 -14
- package/docs/view/breadcrumbs/index.tsx +0 -173
- package/docs/view/button/api.tsx +0 -131
- package/docs/view/button/codeString.tsx +0 -153
- package/docs/view/button/index.scss +0 -23
- package/docs/view/button/index.tsx +0 -165
- package/docs/view/buttonGroup/api.tsx +0 -55
- package/docs/view/buttonGroup/codeString.tsx +0 -108
- package/docs/view/buttonGroup/index.scss +0 -9
- package/docs/view/buttonGroup/index.tsx +0 -93
- package/docs/view/carousel/api.tsx +0 -165
- package/docs/view/carousel/codeString.tsx +0 -207
- package/docs/view/carousel/index.scss +0 -12
- package/docs/view/carousel/index.tsx +0 -174
- package/docs/view/cascader/api.tsx +0 -116
- package/docs/view/cascader/codeString.tsx +0 -584
- package/docs/view/cascader/index.scss +0 -0
- package/docs/view/cascader/index.tsx +0 -261
- package/docs/view/checkbox/api.tsx +0 -148
- package/docs/view/checkbox/codeString.tsx +0 -215
- package/docs/view/checkbox/index.scss +0 -0
- package/docs/view/checkbox/index.tsx +0 -233
- package/docs/view/collapse/api.tsx +0 -109
- package/docs/view/collapse/codeString.tsx +0 -186
- package/docs/view/collapse/index.scss +0 -0
- package/docs/view/collapse/index.tsx +0 -171
- package/docs/view/colorPicker/api.tsx +0 -30
- package/docs/view/colorPicker/codeString.tsx +0 -58
- package/docs/view/colorPicker/index.scss +0 -5
- package/docs/view/colorPicker/index.tsx +0 -39
- package/docs/view/comboSelect/api.tsx +0 -255
- package/docs/view/comboSelect/codeString.tsx +0 -629
- package/docs/view/comboSelect/index.scss +0 -5
- package/docs/view/comboSelect/index.tsx +0 -402
- package/docs/view/container/api.tsx +0 -61
- package/docs/view/container/codeString.tsx +0 -64
- package/docs/view/container/index.scss +0 -0
- package/docs/view/container/index.tsx +0 -84
- package/docs/view/datePicker/api.tsx +0 -264
- package/docs/view/datePicker/codeString.tsx +0 -185
- package/docs/view/datePicker/index.scss +0 -8
- package/docs/view/datePicker/index.tsx +0 -205
- package/docs/view/drawer/api.tsx +0 -123
- package/docs/view/drawer/codeString.tsx +0 -122
- package/docs/view/drawer/index.scss +0 -5
- package/docs/view/drawer/index.tsx +0 -200
- package/docs/view/empty/api.tsx +0 -57
- package/docs/view/empty/codeString.tsx +0 -38
- package/docs/view/empty/index.scss +0 -11
- package/docs/view/empty/index.tsx +0 -43
- package/docs/view/form/api.tsx +0 -266
- package/docs/view/form/codeString.tsx +0 -203
- package/docs/view/form/index.scss +0 -0
- package/docs/view/form/index.tsx +0 -225
- package/docs/view/help/api.tsx +0 -58
- package/docs/view/help/codeString.tsx +0 -39
- package/docs/view/help/index.scss +0 -5
- package/docs/view/help/index.tsx +0 -40
- package/docs/view/helperText/api.tsx +0 -31
- package/docs/view/helperText/codeString.tsx +0 -16
- package/docs/view/helperText/index.scss +0 -0
- package/docs/view/helperText/index.tsx +0 -33
- package/docs/view/home/index.scss +0 -55
- package/docs/view/home/index.tsx +0 -119
- package/docs/view/icons/index.scss +0 -48
- package/docs/view/icons/index.tsx +0 -87
- package/docs/view/inputLang/api.tsx +0 -99
- package/docs/view/inputLang/codeString.tsx +0 -66
- package/docs/view/inputLang/index.scss +0 -0
- package/docs/view/inputLang/index.tsx +0 -85
- package/docs/view/inputNumber/api.tsx +0 -169
- package/docs/view/inputNumber/codeString.tsx +0 -129
- package/docs/view/inputNumber/index.scss +0 -0
- package/docs/view/inputNumber/index.tsx +0 -141
- package/docs/view/label/api.tsx +0 -63
- package/docs/view/label/codeString.tsx +0 -63
- package/docs/view/label/index.scss +0 -0
- package/docs/view/label/index.tsx +0 -82
- package/docs/view/loading/api.tsx +0 -26
- package/docs/view/loading/codeString.tsx +0 -13
- package/docs/view/loading/index.scss +0 -0
- package/docs/view/loading/index.tsx +0 -38
- package/docs/view/menu/api.tsx +0 -227
- package/docs/view/menu/codeString.tsx +0 -302
- package/docs/view/menu/index.scss +0 -42
- package/docs/view/menu/index.tsx +0 -289
- package/docs/view/message/api.tsx +0 -35
- package/docs/view/message/codeString.tsx +0 -73
- package/docs/view/message/index.scss +0 -7
- package/docs/view/message/index.tsx +0 -64
- package/docs/view/modal/api.tsx +0 -141
- package/docs/view/modal/codeString.tsx +0 -222
- package/docs/view/modal/index.scss +0 -9
- package/docs/view/modal/index.tsx +0 -222
- package/docs/view/multiBox/api.tsx +0 -99
- package/docs/view/multiBox/codeString.tsx +0 -104
- package/docs/view/multiBox/index.scss +0 -0
- package/docs/view/multiBox/index.tsx +0 -123
- package/docs/view/notification/api.tsx +0 -148
- package/docs/view/notification/codeString.tsx +0 -110
- package/docs/view/notification/index.scss +0 -9
- package/docs/view/notification/index.tsx +0 -118
- package/docs/view/operateBtn/api.tsx +0 -127
- package/docs/view/operateBtn/codeString.tsx +0 -165
- package/docs/view/operateBtn/index.scss +0 -0
- package/docs/view/operateBtn/index.tsx +0 -160
- package/docs/view/pageHeader/api.tsx +0 -321
- package/docs/view/pageHeader/codeString.tsx +0 -252
- package/docs/view/pageHeader/index.scss +0 -6
- package/docs/view/pageHeader/index.tsx +0 -291
- package/docs/view/pagination/api.tsx +0 -71
- package/docs/view/pagination/codeString.tsx +0 -45
- package/docs/view/pagination/index.scss +0 -0
- package/docs/view/pagination/index.tsx +0 -54
- package/docs/view/popConfirm/api.tsx +0 -96
- package/docs/view/popConfirm/codeString.tsx +0 -130
- package/docs/view/popConfirm/index.scss +0 -33
- package/docs/view/popConfirm/index.tsx +0 -167
- package/docs/view/popover/api.tsx +0 -80
- package/docs/view/popover/codeString.tsx +0 -40
- package/docs/view/popover/index.scss +0 -4
- package/docs/view/popover/index.tsx +0 -53
- package/docs/view/querying/api.tsx +0 -46
- package/docs/view/querying/codeString.tsx +0 -28
- package/docs/view/querying/index.scss +0 -11
- package/docs/view/querying/index.tsx +0 -35
- package/docs/view/radio/api.tsx +0 -142
- package/docs/view/radio/codeString.tsx +0 -136
- package/docs/view/radio/index.scss +0 -0
- package/docs/view/radio/index.tsx +0 -154
- package/docs/view/search/api.tsx +0 -132
- package/docs/view/search/codeString.tsx +0 -164
- package/docs/view/search/index.scss +0 -0
- package/docs/view/search/index.tsx +0 -142
- package/docs/view/select/api.tsx +0 -195
- package/docs/view/select/codeString.tsx +0 -379
- package/docs/view/select/index.scss +0 -12
- package/docs/view/select/index.tsx +0 -370
- package/docs/view/selectInput/api.tsx +0 -161
- package/docs/view/selectInput/codeString.tsx +0 -171
- package/docs/view/selectInput/index.scss +0 -12
- package/docs/view/selectInput/index.tsx +0 -167
- package/docs/view/singleBox/api.tsx +0 -89
- package/docs/view/singleBox/codeString.tsx +0 -94
- package/docs/view/singleBox/index.scss +0 -0
- package/docs/view/singleBox/index.tsx +0 -111
- package/docs/view/slider/api.tsx +0 -135
- package/docs/view/slider/codeString.tsx +0 -99
- package/docs/view/slider/index.scss +0 -11
- package/docs/view/slider/index.tsx +0 -95
- package/docs/view/stepper/api.tsx +0 -49
- package/docs/view/stepper/codeString.tsx +0 -64
- package/docs/view/stepper/index.scss +0 -3
- package/docs/view/stepper/index.tsx +0 -57
- package/docs/view/switch/api.tsx +0 -70
- package/docs/view/switch/codeString.tsx +0 -48
- package/docs/view/switch/index.scss +0 -16
- package/docs/view/switch/index.tsx +0 -50
- package/docs/view/table/api.tsx +0 -330
- package/docs/view/table/codeString.tsx +0 -737
- package/docs/view/table/index.scss +0 -0
- package/docs/view/table/index.tsx +0 -549
- package/docs/view/tabs/api.tsx +0 -106
- package/docs/view/tabs/codeString.tsx +0 -243
- package/docs/view/tabs/index.scss +0 -5
- package/docs/view/tabs/index.tsx +0 -132
- package/docs/view/tag/api.tsx +0 -119
- package/docs/view/tag/codeString.tsx +0 -95
- package/docs/view/tag/index.scss +0 -5
- package/docs/view/tag/index.tsx +0 -91
- package/docs/view/textField/api.tsx +0 -229
- package/docs/view/textField/codeString.tsx +0 -251
- package/docs/view/textField/index.scss +0 -3
- package/docs/view/textField/index.tsx +0 -327
- package/docs/view/timeLine/api.tsx +0 -43
- package/docs/view/timeLine/codeString.tsx +0 -85
- package/docs/view/timeLine/index.scss +0 -5
- package/docs/view/timeLine/index.tsx +0 -73
- package/docs/view/timePicker/api.tsx +0 -178
- package/docs/view/timePicker/codeString.tsx +0 -66
- package/docs/view/timePicker/index.scss +0 -8
- package/docs/view/timePicker/index.tsx +0 -75
- package/docs/view/toggleButton/api.tsx +0 -100
- package/docs/view/toggleButton/codeString.tsx +0 -152
- package/docs/view/toggleButton/index.scss +0 -5
- package/docs/view/toggleButton/index.tsx +0 -108
- package/docs/view/toolTip/api.tsx +0 -96
- package/docs/view/toolTip/codeString.tsx +0 -42
- package/docs/view/toolTip/index.scss +0 -5
- package/docs/view/toolTip/index.tsx +0 -44
- package/docs/view/transfer/api.tsx +0 -33
- package/docs/view/transfer/codeString.tsx +0 -44
- package/docs/view/transfer/index.scss +0 -0
- package/docs/view/transfer/index.tsx +0 -59
- package/docs/view/tree/api.tsx +0 -413
- package/docs/view/tree/codeString.tsx +0 -437
- package/docs/view/tree/index.scss +0 -5
- package/docs/view/tree/index.tsx +0 -362
- package/docs/view/upload/api.tsx +0 -302
- package/docs/view/upload/codeString.tsx +0 -248
- package/docs/view/upload/index.scss +0 -7
- package/docs/view/upload/index.tsx +0 -207
- package/publish.sh +0 -5
- package/run.js +0 -43
- package/scripts/extract-css.js +0 -9
- package/temp/main.js +0 -1103
- package/tsconfig.json +0 -40
- package/webpack.cdn.config.js +0 -81
- package/webpack.config.js +0 -249
- package/webpack.extract.css.js +0 -86
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/9 16:16
|
|
4
|
+
* @description 超出自适应盒子
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface AutoBoxProps {
|
|
9
|
+
/** 样式class */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** style */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** list选项 */
|
|
14
|
+
list?: any[];
|
|
15
|
+
/** 指定渲染几项,存在这个参数,则不自适应 */
|
|
16
|
+
showNum?: number;
|
|
17
|
+
/** 下拉框样式 */
|
|
18
|
+
popoverClassName?: string;
|
|
19
|
+
/** 自定义更多内容 */
|
|
20
|
+
moreCustomize?: ReactNode;
|
|
21
|
+
/** 隐藏更多按钮 */
|
|
22
|
+
hideMore?: boolean;
|
|
23
|
+
/** 打开下拉框 */
|
|
24
|
+
openMore?: boolean;
|
|
25
|
+
/** 定位元素 */
|
|
26
|
+
anchorEl?: any;
|
|
27
|
+
/** 关闭弹窗 */
|
|
28
|
+
onCloseMore?: () => void;
|
|
29
|
+
/** 显示更多 */
|
|
30
|
+
onShowMore?: (bol: boolean) => void;
|
|
31
|
+
[name: string]: any;
|
|
32
|
+
}
|
|
33
|
+
export declare const AutoBox: FunctionComponent<AutoBoxProps>;
|
|
34
|
+
export default AutoBox;
|
package/AutoBox/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@material-ui/core"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@paraview/lib"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@material-ui/core"),require("@paraview/lib")):e.ParaUI=t(e.react,e["@material-ui/core"],e["@paraview/lib"])}(self,(function(e,t,n){return function(){var r={2950:function(e,t,n){var r;self,e.exports=(r=n(8156),function(){var e={466:function(e,t,n){(t=n(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=t},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,o,i=e[1]||"",a=e[3];if(!a)return i;if(t&&"function"==typeof btoa){var c=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),u=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(u).concat([c]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},7418:function(e){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var t=Object.getOwnPropertySymbols,n=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 t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[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,i){for(var a,c,u=o(e),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))n.call(a,l)&&(u[l]=a[l]);if(t){c=t(a);for(var f=0;f<c.length;f++)r.call(a,c[f])&&(u[c[f]]=a[c[f]])}}return u}},5251:function(e,t,n){"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
|
+
*/n(7418);var r=n(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,l=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:l,props:i,_owner:a.current}}t.jsx=s,t.jsxs=s},5893:function(e,t,n){"use strict";e.exports=n(5251)},7856:function(e,t,n){var r=n(3379),o=n(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,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=n[u]||0,l="".concat(u," ").concat(s);n[u]=s+1;var f=c(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:m(p,t),references:1}),r.push(l)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,h=0;function m(e,t){var n,r,o;if(t.singleton){var i=h++;n=v||(v=s(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=s(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=c(n[r]);a[o].references--}for(var i=u(e,t),s=0;s<n.length;s++){var l=c(n[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},4939:function(e,t,n){"use strict";var r=n(5893),o=(n(7856),function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)}),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};t.default=function(e){var t,n=e.path,a=e.className,c=e.color,u=void 0===c?"primary":c,s=e.size,l=void 0===s?"small":s,f=e.dataName,p=void 0===f?"":f,d=i(e,["path","className","color","size","dataName"]);return(0,r.jsx)("svg",o({className:(t="paraui-icon",t+=" svg-icon",a&&(t+=" "+a),u&&(t+=" paraui-icon-"+u),l&&(t+=" paraui-icon-"+l),t),viewBox:"0 0 1024 1024","data-name":p},d,{children:n}),void 0)}},8156:function(e){"use strict";e.exports=r}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.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";n.r(o),n.d(o,{More:function(){return i}});var e=n(5893),t=n(4939),r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},i=function(n){return(0,e.jsx)(t.default,r({dataName:"More",path:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M298.666667 490.666667A64 64 0 1 1 234.666667 426.666667 64 64 0 0 1 298.666667 490.666667"},void 0),(0,e.jsx)("path",{d:"M568.96 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"},void 0),(0,e.jsx)("path",{d:"M839.253333 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"},void 0)]},void 0)},n),void 0)};o.default=i}(),o}())},7388:function(e,t,n){(t=n(3645)(!1)).push([e.id,".paraui-auto-box{width:100%;white-space:nowrap;overflow:hidden}.paraui-auto-box>.auto-box-more{display:inline-block;height:100%;cursor:pointer}.paraui-auto-box-popover .auto-box-popover-content{display:flex;flex-direction:column}\n",""]),e.exports=t},5845:function(e,t,n){(t=n(3645)(!1)).push([e.id,".paraui-popover-paper{box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4)}\n",""]),e.exports=t},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,c,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},7418:function(e){"use strict";
|
|
15
|
+
/*
|
|
16
|
+
object-assign
|
|
17
|
+
(c) Sindre Sorhus
|
|
18
|
+
@license MIT
|
|
19
|
+
*/var t=Object.getOwnPropertySymbols,n=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 t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[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,i){for(var a,c,u=o(e),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))n.call(a,l)&&(u[l]=a[l]);if(t){c=t(a);for(var f=0;f<c.length;f++)r.call(a,c[f])&&(u[c[f]]=a[c[f]])}}return u}},5251:function(e,t,n){"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
|
+
n(7418);var r=n(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,l=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:l,props:i,_owner:a.current}}t.jsx=s,t.jsxs=s},5893:function(e,t,n){"use strict";e.exports=n(5251)},1519:function(e,t,n){var r=n(3379),o=n(7388);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);e.exports=o.locals||{}},8939:function(e,t,n){var r=n(3379),o=n(5845);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);e.exports=o.locals||{}},3379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=n[u]||0,l="".concat(u," ").concat(s);n[u]=s+1;var f=c(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:m(p,t),references:1}),r.push(l)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,h=0;function m(e,t){var n,r,o;if(t.singleton){var i=h++;n=v||(v=s(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=s(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=c(n[r]);a[o].references--}for(var i=u(e,t),s=0;s<n.length;s++){var l=c(n[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},7083:function(e,t,n){"use strict";var r=n(5893),o=n(670),i=(n(8939),function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};t.default=function(e){var t,n=e.className,c=e.children,u=e.classes,s=e.style,l=a(e,["className","children","classes","style"]);return(0,r.jsx)(o.Popover,i({style:i({zIndex:1500},s),className:(t="paraui-popover",n&&(t+=" "+n),t),classes:{paper:u?"paraui-popover-paper ".concat(u):"paraui-popover-paper"}},l,{children:c}))}},670:function(e){"use strict";e.exports=t},8543:function(e){"use strict";e.exports=n},8156:function(t){"use strict";t.exports=e}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e](n,n.exports,i),n.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.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";i.r(a),i.d(a,{AutoBox:function(){return s}});var e=i(5893),t=i(8156),n=i(7083),r=i(2950),o=i.n(r),c=i(8543),u=(i(1519),function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)}),s=function(r){var i=r.className,a=r.list,s=void 0===a?[]:a,l=r.popoverClassName,f=r.moreCustomize,p=r.anchorEl,d=r.hideMore,v=void 0!==d&&d,h=r.showNum,m=r.onCloseMore,y=r.onShowMore,b=r.style,g=(0,t.useState)("auto-box-"+(0,c.UUID)())[0],O=(0,t.useState)(null),j=O[0],x=O[1],w=(0,t.useState)(!1),S=w[0],_=w[1],N=(0,t.useState)(null),E=N[0],M=N[1],P=(0,t.useState)({})[0],C=(0,t.useRef)();(0,t.useEffect)((function(){void 0!==r.openMore&&_(r.openMore)}),[r.openMore]),(0,t.useEffect)((function(){p&&M(p)}),[p]),(0,t.useEffect)((function(){if(void 0===r.showNum)return L(),window.addEventListener("resize",L),function(){window.removeEventListener("resize",L),clearTimeout(P.timer)}}),[s]),(0,t.useEffect)((function(){void 0!==h&&(x(h),window.removeEventListener("resize",L))}),[h]),(0,t.useEffect)((function(){null!==j&&s.length>j?y&&y(!0):y&&y(!1)}),[s,j,y]);var T,R=function(){_(!1),m&&m()},k=function(e){_(!0),M(C.current)},I=function(e){if(null!==e&&0!==e){void 0===e&&(e=s.length);var t=document.querySelector("."+g);if(t)if(t.scrollWidth>t.clientWidth){var n=Number(e)-1;x(n),I(n)}else s.length<=e&&R()}},L=function(){clearTimeout(P.timer),R(),P.timer=setTimeout((function(){x(s.length),I()}),100)},U=(0,t.useMemo)((function(){return S&&(0,e.jsx)(n.default,u({open:S,anchorEl:E,onClose:R,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:(r="auto-box-popover paraui-auto-box-popover",l&&(r+=" "+l),r)},{children:(0,e.jsx)("div",u({className:"auto-box-popover-content"},{children:s&&s.map((function(n,r){return null!==j&&j>r?null:(0,e.jsx)(t.Fragment,{children:n},r)}))}))}));var r}),[S,E,s,j,l]);return(0,e.jsxs)("div",u({className:(T="auto-box paraui-auto-box",g&&(T+=" "+g),i&&(T+=" "+i),T),style:b},{children:[s.map((function(n,r){return null!==j&&j<=r?null:(0,e.jsx)(t.Fragment,{children:n},r)})),function(){if(null!==j&&s.length>j&&!v)return(0,e.jsx)("div",u({className:"auto-box-more",ref:C,onClick:k},{children:f||(0,e.jsx)(o(),{})}))}(),U]}))};a.default=s}(),a}()}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/9 15:15
|
|
4
|
+
* @description 超出...
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface AutoTipsProps {
|
|
9
|
+
/** 样式class */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** style */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** 超出显示的内容 */
|
|
14
|
+
tips?: React.ReactNode;
|
|
15
|
+
/** 文字下拉提示箭头 */
|
|
16
|
+
arrow?: boolean;
|
|
17
|
+
/** 显示文字还是元素 */
|
|
18
|
+
beyondText?: boolean;
|
|
19
|
+
/** 定位方向 */
|
|
20
|
+
placement?: "top-start" | "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top" | undefined;
|
|
21
|
+
/** interactive */
|
|
22
|
+
interactive?: boolean;
|
|
23
|
+
children?: any;
|
|
24
|
+
[name: string]: any;
|
|
25
|
+
}
|
|
26
|
+
declare const AutoTips: FunctionComponent<AutoTipsProps>;
|
|
27
|
+
export default AutoTips;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@material-ui/core")):"function"==typeof define&&define.amd?define(["react","@material-ui/core"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@material-ui/core")):e.ParaUI=t(e.react,e["@material-ui/core"])}(self,(function(e,t){return function(){var r={6010:function(e,t,r){"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}r.d(t,{Z:function(){return o}})},2565:function(e,t,r){(t=r(3645)(!1)).push([e.id,".paraui-auto-tips{max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-auto-tips>.auto-tips-content{display:inline;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-auto-tips-tooltip>div{max-height:calc(100vh - 25px);overflow:auto}\n",""]),e.exports=t},9929:function(e,t,r){(t=r(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=t},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var o=(a=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(i).concat([o]).join("\n")}var a,c,u;return[r].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&o[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),t.push(u))}},t}},7418:function(e){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,u=o(e),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))r.call(a,l)&&(u[l]=a[l]);if(t){c=t(a);for(var f=0;f<c.length;f++)n.call(a,c[f])&&(u[c[f]]=a[c[f]])}}return u}},5251:function(e,t,r){"use strict";
|
|
7
|
+
/** @license React v17.0.2
|
|
8
|
+
* react-jsx-runtime.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
r(7418);var n=r(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,i={},s=null,l=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:s,ref:l,props:i,_owner:a.current}}t.jsx=s},5893:function(e,t,r){"use strict";e.exports=r(5251)},9271:function(e,t,r){var n=r(3379),o=r(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},2310:function(e,t,r){var n=r(3379),o=r(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},3379:function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function c(e){for(var t=-1,r=0;r<a.length;r++)if(a[r].identifier===e){t=r;break}return t}function u(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=r[u]||0,l="".concat(u," ").concat(s);r[u]=s+1;var f=c(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:b(p,t),references:1}),n.push(l)}return n}function s(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,y=0;function b(e,t){var r,n,o;if(t.singleton){var i=y++;r=v||(v=s(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else r=s(t),n=d.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=c(r[n]);a[o].references--}for(var i=u(e,t),s=0;s<r.length;s++){var l=c(r[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}r=i}}}},7371:function(e,t,r){"use strict";var n=r(5893),o=r(670),i=r(6010),a=(r(2310),function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)}),c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};t.default=function(e){var t,r=e.placement,u=void 0===r?"top-start":r,s=e.className,l=e.arrow,f=void 0===l||l,p=e.PopperProps,d=e.boundariesElement,v=void 0===d?"scrollParent":d,y=c(e,["placement","className","arrow","PopperProps","boundariesElement"]),b=a(a({},e.classes),{popper:(0,i.Z)("paraui-tooltip",s,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==u?void 0:u.includes("left"))||(null==u?void 0:u.includes("right")),"paraui-tooltip-top-bottom":(null==u?void 0:u.includes("top"))||(null==u?void 0:u.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,a({},y,{enterTouchDelay:0,arrow:f,placement:u,classes:b,PopperProps:a(a({},p),{modifiers:{preventOverflow:{boundariesElement:v}}})}))}},670:function(e){"use strict";e.exports=t},8156:function(t){"use strict";t.exports=e}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return r[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";o.r(i);var e=o(5893),t=o(8156),r=o(7371),n=(o(9271),function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)});i.default=function(o){var i=o.children,a=o.arrow,c=void 0!==a&&a,u=o.placement,s=void 0===u?"bottom-start":u,l=o.tips,f=void 0===l?"":l,p=o.className,d=void 0===p?"":p,v=o.beyondText,y=void 0===v||v,b=o.interactive,m=void 0===b||b,h=o.style,g=(0,t.useRef)(),O=(0,t.useState)(""),j=O[0],w=O[1];(0,t.useEffect)((function(){w(f)}),[f]);var x;return(0,e.jsx)("div",n({ref:g,className:(x="paraui-auto-tips",d&&(x+=" "+d),x),onMouseOver:function(){var e="";g.current&&g.current.scrollWidth>g.current.offsetWidth&&(e=f||(y?g.current.innerText:i)),w(e)},style:h},{children:(0,e.jsx)(r.default,n({arrow:c,title:j,placement:s,interactive:m,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,e.jsx)("div",n({className:"auto-tips-content"},{children:i}))}))}))}}(),i}()}));
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/3 10:59
|
|
4
|
+
* @description 面包屑
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface listOptions {
|
|
9
|
+
/** 每一项显示名 */
|
|
10
|
+
label: ReactNode;
|
|
11
|
+
/** 每一项最大宽度 */
|
|
12
|
+
maxWidth?: string;
|
|
13
|
+
/** 是否可点击 */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
[name: string]: any;
|
|
16
|
+
}
|
|
17
|
+
export interface BreadcrumbsProps {
|
|
18
|
+
/** 样式class */
|
|
19
|
+
className?: string;
|
|
20
|
+
/** style */
|
|
21
|
+
style?: React.CSSProperties;
|
|
22
|
+
/** 每一项最大宽度 */
|
|
23
|
+
maxWidth?: string;
|
|
24
|
+
/** 初始化数据 */
|
|
25
|
+
list: listOptions[];
|
|
26
|
+
/** 中间符号 */
|
|
27
|
+
separator?: string;
|
|
28
|
+
/** 弹出框样式class */
|
|
29
|
+
popoverClassName?: string;
|
|
30
|
+
/** 是否收缩 */
|
|
31
|
+
isShrink?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 点击菜单
|
|
34
|
+
* @param ops 当前点击菜单数据
|
|
35
|
+
*/
|
|
36
|
+
onClickItem?: (ops: listOptions) => void;
|
|
37
|
+
}
|
|
38
|
+
export declare const Breadcrumbs: FunctionComponent<BreadcrumbsProps>;
|
|
39
|
+
export default Breadcrumbs;
|
|
@@ -0,0 +1,28 @@
|
|
|
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,t){return function(){var n={2950: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,o,i=e[1]||"",a=e[3];if(!a)return i;if(r&&"function"==typeof btoa){var c=(t=a,n=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(o," */")),s=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(s).concat([c]).join("\n")}return[i].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 o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);n&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),r.push(s))}},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 o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,s=o(e),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))t.call(a,l)&&(s[l]=a[l]);if(r){c=r(a);for(var p=0;p<c.length;p++)n.call(a,c[p])&&(s[c[p]]=a[c[p]])}}return s}},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),o=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),r.Fragment=i("react.fragment")}var a=n.__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,r,t){var n,i={},u=null,l=null;for(n in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(l=r.ref),r)c.call(r,n)&&!s.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,t){"use strict";e.exports=t(5251)},7856:function(e,r,t){var n=t(3379),o=t(466);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]),n(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3379:function(e,r,t){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=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]}}(),a=[];function c(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function s(e,r){for(var t={},n=[],o=0;o<e.length;o++){var i=e[o],s=r.base?i[0]+r.base:i[0],u=t[s]||0,l="".concat(s," ").concat(u);t[s]=u+1;var p=c(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:m(f,r),references:1}),n.push(l)}return n}function u(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=t.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var l,p=(l=[],function(e,r){return l[e]=r,l.filter(Boolean).join("\n")});function f(e,r,t,n){var o=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(r,o);else{var i=document.createTextNode(o),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(i,a[r]):e.appendChild(i)}}function d(e,r,t){var n=t.css,o=t.media,i=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,b=0;function m(e,r){var t,n,o;if(r.singleton){var i=b++;t=v||(v=u(r)),n=f.bind(null,t,i,!1),o=f.bind(null,t,i,!0)}else t=u(r),n=d.bind(null,t,r),o=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 o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var t=s(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 o=c(t[n]);a[o].references--}for(var i=s(e,r),u=0;u<t.length;u++){var l=c(t[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}t=i}}}},4939:function(e,r,t){"use strict";var n=t(5893),o=(t(7856),function(){return o=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},o.apply(this,arguments)}),i=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};r.default=function(e){var r,t=e.path,a=e.className,c=e.color,s=void 0===c?"primary":c,u=e.size,l=void 0===u?"small":u,p=e.dataName,f=void 0===p?"":p,d=i(e,["path","className","color","size","dataName"]);return(0,n.jsx)("svg",o({className:(r="paraui-icon",r+=" svg-icon",a&&(r+=" "+a),s&&(r+=" paraui-icon-"+s),l&&(r+=" paraui-icon-"+l),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 o=r[n];if(void 0!==o)return o.exports;var i=r[n]={id:n,exports:{}};return e[n](i,i.exports,t),i.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 o={};return function(){"use strict";t.r(o),t.d(o,{More:function(){return i}});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 o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},n.apply(this,arguments)},i=function(t){return(0,e.jsx)(r.default,n({dataName:"More",path:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M298.666667 490.666667A64 64 0 1 1 234.666667 426.666667 64 64 0 0 1 298.666667 490.666667"},void 0),(0,e.jsx)("path",{d:"M568.96 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"},void 0),(0,e.jsx)("path",{d:"M839.253333 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"},void 0)]},void 0)},t),void 0)};o.default=i}(),o}())},6010:function(e,r,t){"use strict";function n(e){var r,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=n(e[r]))&&(o&&(o+=" "),o+=t);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function o(){for(var e,r,t=0,o="";t<arguments.length;)(e=arguments[t++])&&(r=n(e))&&(o&&(o+=" "),o+=r);return o}t.d(r,{Z:function(){return o}})},2565:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-auto-tips{max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-auto-tips>.auto-tips-content{display:inline;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-auto-tips-tooltip>div{max-height:calc(100vh - 25px);overflow:auto}\n",""]),e.exports=r},4044:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-breadcrumbs{display:inline-block;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;line-height:0;height:17px}.paraui-breadcrumbs.paraui-breadcrumbs-shrink{white-space:nowrap}.paraui-breadcrumbs>div{display:inline-block;line-height:17px;vertical-align:middle;color:rgba(46,55,67,0.7)}.paraui-breadcrumbs>div svg{font-size:14px;vertical-align:middle;color:rgba(46,55,67,0.7)}.paraui-breadcrumbs>div span{display:inline-block;line-height:0;vertical-align:middle;color:rgba(46,55,67,0.7)}.paraui-breadcrumbs>div .paraui-auto-tips{line-height:0}.paraui-breadcrumbs>div .paraui-auto-tips .auto-tips-content{line-height:17px}.paraui-breadcrumbs>div .paraui-auto-tips span{line-height:17px}.paraui-breadcrumbs>.breadcrumbs-separator{user-select:none;margin:0 8px}.paraui-breadcrumbs>.breadcrumbs-item-click{cursor:pointer}.paraui-breadcrumbs>.breadcrumbs-item-click:hover{color:#3666d6}.paraui-breadcrumbs>.breadcrumbs-item-click:hover svg{color:#3666d6}.paraui-breadcrumbs>.breadcrumbs-item-click:hover span{color:#3666d6}.paraui-breadcrumbs>.breadcrumbs-item-disabled{color:rgba(46,55,67,0.4)}.paraui-breadcrumbs>.more-breadcrumbs{cursor:pointer}.paraui-breadcrumbs>.current-breadcrumbs{color:rgba(46,55,67,0.7);font-weight:700}.paraui-breadcrumbs-popover>.paraui-popover-paper{margin-top:8px;padding:0 12px;height:36px;line-height:36px;display:flex;align-items:center}\n",""]),e.exports=r},5845:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-popover-paper{box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4)}\n",""]),e.exports=r},9929:function(e,r,t){(r=t(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 t=function(e,r){var t=e[1]||"",n=e[3];if(!n)return t;if(r&&"function"==typeof btoa){var o=(a=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(i).concat([o]).join("\n")}var a,c,s;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 o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);n&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),r.push(s))}},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 o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,s=o(e),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))t.call(a,l)&&(s[l]=a[l]);if(r){c=r(a);for(var p=0;p<c.length;p++)n.call(a,c[p])&&(s[c[p]]=a[c[p]])}}return s}},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),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,t){var n,i={},u=null,l=null;for(n in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(l=r.ref),r)c.call(r,n)&&!s.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,t){"use strict";e.exports=t(5251)},9271:function(e,r,t){var n=t(3379),o=t(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},4047:function(e,r,t){var n=t(3379),o=t(4044);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},8939:function(e,r,t){var n=t(3379),o=t(5845);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},2310:function(e,r,t){var n=t(3379),o=t(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},3379:function(e,r,t){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=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]}}(),a=[];function c(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function s(e,r){for(var t={},n=[],o=0;o<e.length;o++){var i=e[o],s=r.base?i[0]+r.base:i[0],u=t[s]||0,l="".concat(s," ").concat(u);t[s]=u+1;var p=c(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:m(f,r),references:1}),n.push(l)}return n}function u(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=t.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var l,p=(l=[],function(e,r){return l[e]=r,l.filter(Boolean).join("\n")});function f(e,r,t,n){var o=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(r,o);else{var i=document.createTextNode(o),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(i,a[r]):e.appendChild(i)}}function d(e,r,t){var n=t.css,o=t.media,i=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,b=0;function m(e,r){var t,n,o;if(r.singleton){var i=b++;t=v||(v=u(r)),n=f.bind(null,t,i,!1),o=f.bind(null,t,i,!0)}else t=u(r),n=d.bind(null,t,r),o=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 o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var t=s(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 o=c(t[n]);a[o].references--}for(var i=s(e,r),u=0;u<t.length;u++){var l=c(t[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}t=i}}}},7839:function(e,r,t){"use strict";var n=t(5893),o=t(8156),i=t(7371),a=(t(9271),function(){return a=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},a.apply(this,arguments)});r.default=function(e){var r=e.children,t=e.arrow,c=void 0!==t&&t,s=e.placement,u=void 0===s?"bottom-start":s,l=e.tips,p=void 0===l?"":l,f=e.className,d=void 0===f?"":f,v=e.beyondText,b=void 0===v||v,m=e.interactive,h=void 0===m||m,y=e.style,g=(0,o.useRef)(),x=(0,o.useState)(""),j=x[0],O=x[1];(0,o.useEffect)((function(){O(p)}),[p]);var w;return(0,n.jsx)("div",a({ref:g,className:(w="paraui-auto-tips",d&&(w+=" "+d),w),onMouseOver:function(){var e="";g.current&&g.current.scrollWidth>g.current.offsetWidth&&(e=p||(b?g.current.innerText:r)),O(e)},style:y},{children:(0,n.jsx)(i.default,a({arrow:c,title:j,placement:u,interactive:h,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,n.jsx)("div",a({className:"auto-tips-content"},{children:r}))}))}))}},7083:function(e,r,t){"use strict";var n=t(5893),o=t(670),i=(t(8939),function(){return i=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},i.apply(this,arguments)}),a=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};r.default=function(e){var r,t=e.className,c=e.children,s=e.classes,u=e.style,l=a(e,["className","children","classes","style"]);return(0,n.jsx)(o.Popover,i({style:i({zIndex:1500},u),className:(r="paraui-popover",t&&(r+=" "+t),r),classes:{paper:s?"paraui-popover-paper ".concat(s):"paraui-popover-paper"}},l,{children:c}))}},7371:function(e,r,t){"use strict";var n=t(5893),o=t(670),i=t(6010),a=(t(2310),function(){return a=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},a.apply(this,arguments)}),c=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};r.default=function(e){var r,t=e.placement,s=void 0===t?"top-start":t,u=e.className,l=e.arrow,p=void 0===l||l,f=e.PopperProps,d=e.boundariesElement,v=void 0===d?"scrollParent":d,b=c(e,["placement","className","arrow","PopperProps","boundariesElement"]),m=a(a({},e.classes),{popper:(0,i.Z)("paraui-tooltip",u,null===(r=e.classes)||void 0===r?void 0:r.popper,{"paraui-tooltip-left-right":(null==s?void 0:s.includes("left"))||(null==s?void 0:s.includes("right")),"paraui-tooltip-top-bottom":(null==s?void 0:s.includes("top"))||(null==s?void 0:s.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,a({},b,{enterTouchDelay:0,arrow:p,placement:s,classes:m,PopperProps:a(a({},f),{modifiers:{preventOverflow:{boundariesElement:v}}})}))}},670:function(e){"use strict";e.exports=r},8543:function(e){"use strict";e.exports=t},8156:function(r){"use strict";r.exports=e}},o={};function i(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={id:e,exports:{}};return n[e](t,t.exports,i),t.exports}i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,{a:r}),r},i.d=function(e,r){for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.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";i.r(a),i.d(a,{Breadcrumbs:function(){return p}});var e=i(5893),r=i(8156),t=i(7083),n=i(7839),o=i(2950),c=i.n(o),s=i(8543),u=(i(4047),function(){return u=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},u.apply(this,arguments)}),l=function(e,r,t){if(t||2===arguments.length)for(var n,o=0,i=r.length;o<i;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return e.concat(n||Array.prototype.slice.call(r))},p=function(o){var i=o.maxWidth,a=void 0===i?"":i,p=o.className,f=o.list,d=o.separator,v=void 0===d?"/":d,b=o.popoverClassName,m=o.isShrink,h=void 0===m||m,y=o.onClickItem,g=o.style,x=(0,r.useState)("breadcrumbs-"+(0,s.UUID)())[0],j=(0,r.useState)([]),O=j[0],w=j[1],S=(0,r.useState)(0),N=S[0],_=S[1],P=(0,r.useState)(!1),E=P[0],C=P[1],k=(0,r.useState)({})[0],M=(0,r.useRef)();(0,r.useEffect)((function(){setTimeout((function(){var e=document.querySelector("."+x);e&&_(e.offsetWidth)})),w(l([],f,!0))}),[f]),(0,r.useEffect)((function(){return h?(setTimeout((function(){T()})),window.addEventListener("resize",T)):window.removeEventListener("resize",T),function(){window.removeEventListener("resize",T)}}),[O,N,h]);var T=function(){if(!(f.length<=2||0===N)){var e=document.querySelector("."+x);if(e&&N)if(e.parentNode&&e.parentNode.offsetWidth>=N){if(!k.scroll)return;k.scroll=!1,w(l([],f,!0)),C(!1)}else{if(k.scroll)return;k.scroll=!0;var r=[];r.push(f[0]),r.push({more:"more-breadcrumbs"}),r.push(f[f.length-1]),w(l([],r,!0))}}},I=function(e){return function(){e.disabled||("more-breadcrumbs"===e.more?C(!0):y&&y(e))}},R=function(){C(!1)},L=function(){var e="paraui-breadcrumbs "+x;return h&&(e+=" paraui-breadcrumbs-shrink"),p&&(e+=" "+p),e},U=function(e,r,t){var n=" breadcrumbs-item";return r===t.length-1&&(n+=" current-breadcrumbs"),e.disabled?n+=" breadcrumbs-item-disabled":n+=" breadcrumbs-item-click",n},A=(0,r.useMemo)((function(){return E&&(0,e.jsx)(t.default,u({open:E,anchorEl:M.current,onClose:R,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:(n="paraui-breadcrumbs-popover",b&&(n+=" "+b),n)},{children:(0,e.jsx)("div",u({className:L()},{children:f.map((function(t,n){var o=f.length-1!==n;return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({onClick:I(t),className:U(t,n,f)},{children:t.label})),o&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:v}))]},n)}))}))}));var n}),[E,M,v,f,b]),q=function(e){var r={};return a&&(r.maxWidth=a),e.maxWidth&&(r.maxWidth=e.maxWidth),r};return(0,e.jsxs)("div",u({className:L(),style:g,ref:M},{children:[O.map((function(t,o){var i=O.length-1!==o;return"more-breadcrumbs"===t.more?(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({onClick:I(t),className:"more-breadcrumbs"},{children:(0,e.jsx)(c(),{})})),i&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:v}))]},o):(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({style:q(t),onClick:I(t),className:U(t,o,O)},{children:(0,e.jsx)(n.default,{children:t.label})})),i&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:v}))]},o)})),A]}))};a.default=p}(),a}()}));
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2021/8/4 上午10:22
|
|
4
|
+
* @description 分体式按钮组
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { PopperPlacementType } from '@material-ui/core';
|
|
8
|
+
import { ButtonProps } from '../Button';
|
|
9
|
+
interface Option {
|
|
10
|
+
/**
|
|
11
|
+
* 按钮文字
|
|
12
|
+
*/
|
|
13
|
+
label: string;
|
|
14
|
+
/**
|
|
15
|
+
* 按钮value
|
|
16
|
+
*/
|
|
17
|
+
value?: any;
|
|
18
|
+
/**
|
|
19
|
+
* 禁用按钮
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
[name: string]: any;
|
|
23
|
+
}
|
|
24
|
+
declare type GroupOption = Array<Option>;
|
|
25
|
+
export interface SplitButtonProps {
|
|
26
|
+
/**
|
|
27
|
+
* 分体式按钮文本
|
|
28
|
+
*/
|
|
29
|
+
buttonText?: React.ReactNode;
|
|
30
|
+
/** 按钮选项数组 */
|
|
31
|
+
options?: Option[] | GroupOption[];
|
|
32
|
+
/** cls */
|
|
33
|
+
className?: string;
|
|
34
|
+
/** style */
|
|
35
|
+
style?: React.CSSProperties;
|
|
36
|
+
/** popperClassName */
|
|
37
|
+
popperClassName?: string;
|
|
38
|
+
/** popperStyle */
|
|
39
|
+
popperStyle?: React.CSSProperties;
|
|
40
|
+
/** 禁用按钮组 */
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/** 浮层位置 */
|
|
43
|
+
placement?: PopperPlacementType;
|
|
44
|
+
/** button props */
|
|
45
|
+
buttonProps?: ButtonProps;
|
|
46
|
+
/**
|
|
47
|
+
* click callback
|
|
48
|
+
* @param option
|
|
49
|
+
* @param evt
|
|
50
|
+
*/
|
|
51
|
+
onClick?: (option: Option, evt?: React.MouseEvent<HTMLElement>) => void;
|
|
52
|
+
/**
|
|
53
|
+
* 自定义选项渲染
|
|
54
|
+
* @param option
|
|
55
|
+
*/
|
|
56
|
+
optionRender?: (option: Option) => React.ReactNode;
|
|
57
|
+
}
|
|
58
|
+
export default function SplitButton(props: SplitButtonProps): JSX.Element;
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2021/8/4 上午10:21
|
|
4
|
+
* @description 按钮
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from 'react';
|
|
7
|
+
import { ButtonProps as MuiButtonProps, IconButtonProps as MuiIconButtonProps } from "@material-ui/core";
|
|
8
|
+
import { TooltipProps } from '../Tooltip';
|
|
9
|
+
import SplitButton from "./SplitButton";
|
|
10
|
+
import './index.scss';
|
|
11
|
+
export interface ButtonProps extends Omit<MuiButtonProps, 'variant'> {
|
|
12
|
+
variant?: 'contained' | 'outlined' | 'text';
|
|
13
|
+
/** 设置按钮载入状态 */
|
|
14
|
+
loading?: boolean | {
|
|
15
|
+
delay: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 禁用时提示文字 disabled 为true有效
|
|
19
|
+
*/
|
|
20
|
+
toolTipTitle?: NonNullable<React.ReactNode>;
|
|
21
|
+
/**
|
|
22
|
+
* tooltip props
|
|
23
|
+
*/
|
|
24
|
+
TooltipProps?: Omit<TooltipProps, 'title' | 'children'>;
|
|
25
|
+
/**
|
|
26
|
+
* 设置危险按钮
|
|
27
|
+
*/
|
|
28
|
+
danger?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface IconButtonProps extends Omit<MuiIconButtonProps, 'size'> {
|
|
31
|
+
/** 按钮形状 */
|
|
32
|
+
variant?: 'contained' | 'outlined' | 'text';
|
|
33
|
+
size?: 'small' | 'medium' | 'large';
|
|
34
|
+
/** tooltip title */
|
|
35
|
+
toolTipTitle?: NonNullable<React.ReactNode>;
|
|
36
|
+
/** 设置按钮载入状态 */
|
|
37
|
+
loading?: boolean | {
|
|
38
|
+
delay: number;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* tooltip props
|
|
42
|
+
*/
|
|
43
|
+
TooltipProps?: Omit<TooltipProps, 'title' | 'children'>;
|
|
44
|
+
/**
|
|
45
|
+
* 设置危险按钮
|
|
46
|
+
*/
|
|
47
|
+
danger?: boolean;
|
|
48
|
+
}
|
|
49
|
+
declare const InternalButton: FunctionComponent<ButtonProps>;
|
|
50
|
+
declare const IconButton: FunctionComponent<IconButtonProps>;
|
|
51
|
+
declare type mergedButtonType = typeof InternalButton & {
|
|
52
|
+
IconButton: typeof IconButton;
|
|
53
|
+
SplitButton: typeof SplitButton;
|
|
54
|
+
};
|
|
55
|
+
export declare const Button: mergedButtonType;
|
|
56
|
+
export default Button;
|
package/Button/index.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("@material-ui/core"),require("@para-ui/core/GlobalContext")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@para-ui/core/GlobalContext"],n):"object"==typeof exports?exports.ParaUI=n(require("react"),require("@material-ui/core"),require("@para-ui/core/GlobalContext")):t.ParaUI=n(t.react,t["@material-ui/core"],t["@para-ui/core/GlobalContext"])}(self,(function(t,n,e){return function(){var r={4352:function(t,n,e){var r;self,t.exports=(r=e(8156),function(){var t={466:function(t,n,e){(n=e(3645)(!1)).push([t.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",""]),t.exports=n},3645:function(t){"use strict";t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e=function(t,n){var e,r,o,i=t[1]||"",a=t[3];if(!a)return i;if(n&&"function"==typeof btoa){var c=(e=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),u=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[i].concat(u).concat([c]).join("\n")}return[i].join("\n")}(n,t);return n[2]?"@media ".concat(n[2]," {").concat(e,"}"):e})).join("")},n.i=function(t,e,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);r&&o[u[0]]||(e&&(u[2]?u[2]="".concat(e," and ").concat(u[2]):u[2]=e),n.push(u))}},n}},7418:function(t){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var n=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var n={},e=0;e<10;e++)n["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(t){return n[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var a,c,u=o(t),l=1;l<arguments.length;l++){for(var s in a=Object(arguments[l]))e.call(a,s)&&(u[s]=a[s]);if(n){c=n(a);for(var p=0;p<c.length;p++)r.call(a,c[p])&&(u[c[p]]=a[c[p]])}}return u}},5251:function(t,n,e){"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
|
+
*/e(7418);var r=e(8156),o=60103;if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),n.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(t,n,e){var r,i={},l=null,s=null;for(r in void 0!==e&&(l=""+e),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(s=n.ref),n)c.call(n,r)&&!u.hasOwnProperty(r)&&(i[r]=n[r]);if(t&&t.defaultProps)for(r in n=t.defaultProps)void 0===i[r]&&(i[r]=n[r]);return{$$typeof:o,type:t,key:l,ref:s,props:i,_owner:a.current}}n.jsx=l},5893:function(t,n,e){"use strict";t.exports=e(5251)},7856:function(t,n,e){var r=e(3379),o=e(466);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},3379:function(t,n,e){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var t={};return function(n){if(void 0===t[n]){var e=document.querySelector(n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}t[n]=e}return t[n]}}(),a=[];function c(t){for(var n=-1,e=0;e<a.length;e++)if(a[e].identifier===t){n=e;break}return n}function u(t,n){for(var e={},r=[],o=0;o<t.length;o++){var i=t[o],u=n.base?i[0]+n.base:i[0],l=e[u]||0,s="".concat(u," ").concat(l);e[u]=l+1;var p=c(s),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(d)):a.push({identifier:s,updater:g(d,n),references:1}),r.push(s)}return r}function l(t){var n=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=e.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){n.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(n);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}return n}var s,p=(s=[],function(t,n){return s[t]=n,s.filter(Boolean).join("\n")});function d(t,n,e,r){var o=e?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=p(n,o);else{var i=document.createTextNode(o),a=t.childNodes;a[n]&&t.removeChild(a[n]),a.length?t.insertBefore(i,a[n]):t.appendChild(i)}}function f(t,n,e){var r=e.css,o=e.media,i=e.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var b=null,v=0;function g(t,n){var e,r,o;if(n.singleton){var i=v++;e=b||(b=l(n)),r=d.bind(null,e,i,!1),o=d.bind(null,e,i,!0)}else e=l(n),r=f.bind(null,e,n),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)};return r(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;r(t=n)}else o()}}t.exports=function(t,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=o());var e=u(t=t||[],n);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<e.length;r++){var o=c(e[r]);a[o].references--}for(var i=u(t,n),l=0;l<e.length;l++){var s=c(e[l]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}e=i}}}},4939:function(t,n,e){"use strict";var r=e(5893),o=(e(7856),function(){return o=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},o.apply(this,arguments)}),i=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e};n.default=function(t){var n,e=t.path,a=t.className,c=t.color,u=void 0===c?"primary":c,l=t.size,s=void 0===l?"small":l,p=t.dataName,d=void 0===p?"":p,f=i(t,["path","className","color","size","dataName"]);return(0,r.jsx)("svg",o({className:(n="paraui-icon",n+=" svg-icon",a&&(n+=" "+a),u&&(n+=" paraui-icon-"+u),s&&(n+=" paraui-icon-"+s),n),viewBox:"0 0 1024 1024","data-name":d},f,{children:e}),void 0)}},8156:function(t){"use strict";t.exports=r}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={id:r,exports:{}};return t[r](i,i.exports,e),i.exports}e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return function(){"use strict";e.r(o),e.d(o,{Down:function(){return i}});var t=e(5893),n=e(4939),r=function(){return r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},r.apply(this,arguments)},i=function(e){return(0,t.jsx)(n.default,r({dataName:"Down",path:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("path",{d:"M813.696 318.464a42.666667 42.666667 0 0 0-30.165333 12.501333L512 602.496 240.469333 330.965333a42.666667 42.666667 0 0 0-60.330666 60.373334l301.696 301.653333a42.666667 42.666667 0 0 0 60.330666 0l301.696-301.653333a42.666667 42.666667 0 0 0-30.165333-72.874667z"},void 0)},void 0)},e),void 0)};o.default=i}(),o}())},465:function(t,n,e){var r;self,t.exports=(r=e(8156),function(){var t={466:function(t,n,e){(n=e(3645)(!1)).push([t.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",""]),t.exports=n},3645:function(t){"use strict";t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e=function(t,n){var e,r,o,i=t[1]||"",a=t[3];if(!a)return i;if(n&&"function"==typeof btoa){var c=(e=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),u=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[i].concat(u).concat([c]).join("\n")}return[i].join("\n")}(n,t);return n[2]?"@media ".concat(n[2]," {").concat(e,"}"):e})).join("")},n.i=function(t,e,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);r&&o[u[0]]||(e&&(u[2]?u[2]="".concat(e," and ").concat(u[2]):u[2]=e),n.push(u))}},n}},7418:function(t){"use strict";
|
|
15
|
+
/*
|
|
16
|
+
object-assign
|
|
17
|
+
(c) Sindre Sorhus
|
|
18
|
+
@license MIT
|
|
19
|
+
*/var n=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var n={},e=0;e<10;e++)n["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(t){return n[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var a,c,u=o(t),l=1;l<arguments.length;l++){for(var s in a=Object(arguments[l]))e.call(a,s)&&(u[s]=a[s]);if(n){c=n(a);for(var p=0;p<c.length;p++)r.call(a,c[p])&&(u[c[p]]=a[c[p]])}}return u}},5251:function(t,n,e){"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
|
+
*/e(7418);var r=e(8156),o=60103;if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),n.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(t,n,e){var r,i={},l=null,s=null;for(r in void 0!==e&&(l=""+e),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(s=n.ref),n)c.call(n,r)&&!u.hasOwnProperty(r)&&(i[r]=n[r]);if(t&&t.defaultProps)for(r in n=t.defaultProps)void 0===i[r]&&(i[r]=n[r]);return{$$typeof:o,type:t,key:l,ref:s,props:i,_owner:a.current}}n.jsx=l},5893:function(t,n,e){"use strict";t.exports=e(5251)},7856:function(t,n,e){var r=e(3379),o=e(466);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},3379:function(t,n,e){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var t={};return function(n){if(void 0===t[n]){var e=document.querySelector(n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}t[n]=e}return t[n]}}(),a=[];function c(t){for(var n=-1,e=0;e<a.length;e++)if(a[e].identifier===t){n=e;break}return n}function u(t,n){for(var e={},r=[],o=0;o<t.length;o++){var i=t[o],u=n.base?i[0]+n.base:i[0],l=e[u]||0,s="".concat(u," ").concat(l);e[u]=l+1;var p=c(s),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(d)):a.push({identifier:s,updater:g(d,n),references:1}),r.push(s)}return r}function l(t){var n=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=e.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){n.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(n);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}return n}var s,p=(s=[],function(t,n){return s[t]=n,s.filter(Boolean).join("\n")});function d(t,n,e,r){var o=e?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=p(n,o);else{var i=document.createTextNode(o),a=t.childNodes;a[n]&&t.removeChild(a[n]),a.length?t.insertBefore(i,a[n]):t.appendChild(i)}}function f(t,n,e){var r=e.css,o=e.media,i=e.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var b=null,v=0;function g(t,n){var e,r,o;if(n.singleton){var i=v++;e=b||(b=l(n)),r=d.bind(null,e,i,!1),o=d.bind(null,e,i,!0)}else e=l(n),r=f.bind(null,e,n),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)};return r(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;r(t=n)}else o()}}t.exports=function(t,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=o());var e=u(t=t||[],n);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<e.length;r++){var o=c(e[r]);a[o].references--}for(var i=u(t,n),l=0;l<e.length;l++){var s=c(e[l]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}e=i}}}},4939:function(t,n,e){"use strict";var r=e(5893),o=(e(7856),function(){return o=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},o.apply(this,arguments)}),i=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e};n.default=function(t){var n,e=t.path,a=t.className,c=t.color,u=void 0===c?"primary":c,l=t.size,s=void 0===l?"small":l,p=t.dataName,d=void 0===p?"":p,f=i(t,["path","className","color","size","dataName"]);return(0,r.jsx)("svg",o({className:(n="paraui-icon",n+=" svg-icon",a&&(n+=" "+a),u&&(n+=" paraui-icon-"+u),s&&(n+=" paraui-icon-"+s),n),viewBox:"0 0 1024 1024","data-name":d},f,{children:e}),void 0)}},8156:function(t){"use strict";t.exports=r}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={id:r,exports:{}};return t[r](i,i.exports,e),i.exports}e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return function(){"use strict";e.r(o),e.d(o,{Forbid:function(){return i}});var t=e(5893),n=e(4939),r=function(){return r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},r.apply(this,arguments)},i=function(e){return(0,t.jsx)(n.default,r({dataName:"Forbid",path:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("path",{d:"M865.536 204.288a42.368 42.368 0 0 0-9.429333-14.506667 41.130667 41.130667 0 0 0-9.386667-6.186666 481.024 481.024 0 1 0 18.816 20.693333zM512 128a381.952 381.952 0 0 1 251.264 94.250667L222.336 763.264A383.402667 383.402667 0 0 1 512 128z m0 768a381.44 381.44 0 0 1-226.858667-74.922667L821.12 285.141333A383.274667 383.274667 0 0 1 512 896z"},void 0)},void 0)},e),void 0)};o.default=i}(),o}())},1217:function(t,n,e){var r;self,t.exports=(r=e(8156),function(){var t={466:function(t,n,e){(n=e(3645)(!1)).push([t.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",""]),t.exports=n},3645:function(t){"use strict";t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e=function(t,n){var e,r,o,i=t[1]||"",a=t[3];if(!a)return i;if(n&&"function"==typeof btoa){var c=(e=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),u=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[i].concat(u).concat([c]).join("\n")}return[i].join("\n")}(n,t);return n[2]?"@media ".concat(n[2]," {").concat(e,"}"):e})).join("")},n.i=function(t,e,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);r&&o[u[0]]||(e&&(u[2]?u[2]="".concat(e," and ").concat(u[2]):u[2]=e),n.push(u))}},n}},7418:function(t){"use strict";
|
|
28
|
+
/*
|
|
29
|
+
object-assign
|
|
30
|
+
(c) Sindre Sorhus
|
|
31
|
+
@license MIT
|
|
32
|
+
*/var n=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var n={},e=0;e<10;e++)n["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(t){return n[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var a,c,u=o(t),l=1;l<arguments.length;l++){for(var s in a=Object(arguments[l]))e.call(a,s)&&(u[s]=a[s]);if(n){c=n(a);for(var p=0;p<c.length;p++)r.call(a,c[p])&&(u[c[p]]=a[c[p]])}}return u}},5251:function(t,n,e){"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
|
+
*/e(7418);var r=e(8156),o=60103;if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),n.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(t,n,e){var r,i={},l=null,s=null;for(r in void 0!==e&&(l=""+e),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(s=n.ref),n)c.call(n,r)&&!u.hasOwnProperty(r)&&(i[r]=n[r]);if(t&&t.defaultProps)for(r in n=t.defaultProps)void 0===i[r]&&(i[r]=n[r]);return{$$typeof:o,type:t,key:l,ref:s,props:i,_owner:a.current}}n.jsx=l},5893:function(t,n,e){"use strict";t.exports=e(5251)},7856:function(t,n,e){var r=e(3379),o=e(466);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},3379:function(t,n,e){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var t={};return function(n){if(void 0===t[n]){var e=document.querySelector(n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}t[n]=e}return t[n]}}(),a=[];function c(t){for(var n=-1,e=0;e<a.length;e++)if(a[e].identifier===t){n=e;break}return n}function u(t,n){for(var e={},r=[],o=0;o<t.length;o++){var i=t[o],u=n.base?i[0]+n.base:i[0],l=e[u]||0,s="".concat(u," ").concat(l);e[u]=l+1;var p=c(s),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(d)):a.push({identifier:s,updater:g(d,n),references:1}),r.push(s)}return r}function l(t){var n=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=e.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){n.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(n);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}return n}var s,p=(s=[],function(t,n){return s[t]=n,s.filter(Boolean).join("\n")});function d(t,n,e,r){var o=e?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=p(n,o);else{var i=document.createTextNode(o),a=t.childNodes;a[n]&&t.removeChild(a[n]),a.length?t.insertBefore(i,a[n]):t.appendChild(i)}}function f(t,n,e){var r=e.css,o=e.media,i=e.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var b=null,v=0;function g(t,n){var e,r,o;if(n.singleton){var i=v++;e=b||(b=l(n)),r=d.bind(null,e,i,!1),o=d.bind(null,e,i,!0)}else e=l(n),r=f.bind(null,e,n),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)};return r(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;r(t=n)}else o()}}t.exports=function(t,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=o());var e=u(t=t||[],n);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<e.length;r++){var o=c(e[r]);a[o].references--}for(var i=u(t,n),l=0;l<e.length;l++){var s=c(e[l]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}e=i}}}},4939:function(t,n,e){"use strict";var r=e(5893),o=(e(7856),function(){return o=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},o.apply(this,arguments)}),i=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e};n.default=function(t){var n,e=t.path,a=t.className,c=t.color,u=void 0===c?"primary":c,l=t.size,s=void 0===l?"small":l,p=t.dataName,d=void 0===p?"":p,f=i(t,["path","className","color","size","dataName"]);return(0,r.jsx)("svg",o({className:(n="paraui-icon",n+=" svg-icon",a&&(n+=" "+a),u&&(n+=" paraui-icon-"+u),s&&(n+=" paraui-icon-"+s),n),viewBox:"0 0 1024 1024","data-name":d},f,{children:e}),void 0)}},8156:function(t){"use strict";t.exports=r}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={id:r,exports:{}};return t[r](i,i.exports,e),i.exports}e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return function(){"use strict";e.r(o),e.d(o,{LoadingF:function(){return i}});var t=e(5893),n=e(4939),r=function(){return r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},r.apply(this,arguments)},i=function(e){return(0,t.jsx)(n.default,r({dataName:"LoadingF",path:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("path",{d:"M512 0a512 512 0 0 1 512 512h-64A448 448 0 0 0 512 64V0z","p-id":"11109"},void 0)},void 0)},e),void 0)};o.default=i}(),o}())},6010:function(t,n,e){"use strict";function r(t){var n,e,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(e=r(t[n]))&&(o&&(o+=" "),o+=e);else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function o(){for(var t,n,e=0,o="";e<arguments.length;)(t=arguments[e++])&&(n=r(t))&&(o&&(o+=" "),o+=n);return o}e.d(n,{Z:function(){return o}})},8313:function(t,n,e){(n=e(3645)(!1)).push([t.id,"@keyframes loadingSpin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.paraui-button{min-width:auto;padding:0 16px;line-height:0;text-transform:none;border-radius:4px;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;white-space:nowrap}.paraui-button-label{height:100%}.paraui-button-loading{pointer-events:none}.paraui-button-contained{color:#fff;background-color:#3666d6;box-shadow:none}.paraui-button-contained:hover{background-color:rgba(54,102,214,0.8);box-shadow:none}.paraui-button-contained[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.12);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-contained[disabled]:hover{background-color:rgba(171,176,185,0.12)}.paraui-button-contained .btn-icon{display:inline-flex;color:inherit}.paraui-button-contained .btn-icon svg{color:inherit;font-size:16px}.paraui-button-contained .btn-icon.start-icon{margin-left:3px}.paraui-button-contained .btn-icon.end-icon{margin-right:3px}.paraui-button-contained .btn-icon.loading-icon{margin-left:3px;animation:loadingSpin 1s infinite linear}.paraui-button-contained.paraui-button-dangerous{background-color:#eb6054}.paraui-button-contained.paraui-button-dangerous:hover{background-color:rgba(235,96,84,0.8)}.paraui-button-outlined{color:rgba(46,55,67,0.7);background-color:#fff;border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-outlined:hover{color:#3666d6;border-color:rgba(54,102,214,0.2);background-color:#fff;box-shadow:none}.paraui-button-outlined[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.12);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-button-outlined[disabled]:hover{background-color:rgba(171,176,185,0.12)}.paraui-button-outlined .btn-icon{display:inline-flex;color:inherit}.paraui-button-outlined .btn-icon svg{color:inherit;font-size:16px}.paraui-button-outlined .btn-icon.start-icon{margin-left:3px}.paraui-button-outlined .btn-icon.end-icon{margin-right:3px}.paraui-button-outlined .btn-icon.loading-icon{margin-left:3px;animation:loadingSpin 1s infinite linear}.paraui-button-outlined.paraui-button-dangerous{color:#eb6054;border-color:#eb6054}.paraui-button-outlined.paraui-button-dangerous:hover{color:rgba(235,96,84,0.8);border-color:rgba(235,96,84,0.8)}.paraui-button-text{color:rgba(46,55,67,0.7);background-color:#fff;border:1px solid rgba(171,176,185,0.4);box-shadow:none;color:#3666d6;background-color:transparent;border:none}.paraui-button-text:hover{color:rgba(54,102,214,0.8);background-color:transparent;box-shadow:none}.paraui-button-text[disabled]{color:rgba(46,55,67,0.4);background-color:transparent;border:none}.paraui-button-text[disabled]:hover{background-color:transparent}.paraui-button-text .btn-icon{display:inline-flex;color:inherit}.paraui-button-text .btn-icon svg{color:inherit;font-size:16px}.paraui-button-text .btn-icon.start-icon{margin-left:3px}.paraui-button-text .btn-icon.end-icon{margin-right:3px}.paraui-button-text .btn-icon.loading-icon{margin-left:3px;animation:loadingSpin 1s infinite linear}.paraui-button-text.paraui-button-dangerous{color:#eb6054}.paraui-button-text.paraui-button-dangerous:hover{color:rgba(235,96,84,0.8)}.paraui-button-large{height:36px}.paraui-button-medium{height:32px}.paraui-button-small{height:28px}.paraui-button--disabled{display:inline-block}.paraui-icon-button{padding:0;border-radius:4px}.paraui-icon-button-loading{pointer-events:none}.paraui-icon-button-loading .loading-icon{display:inline-flex;animation:loadingSpin 1s infinite linear}.paraui-icon-button-contained{color:#fff;background-color:#3666d6;box-shadow:none}.paraui-icon-button-contained:hover{background-color:rgba(54,102,214,0.8);box-shadow:none}.paraui-icon-button-contained[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.12);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-icon-button-contained[disabled]:hover{background-color:rgba(171,176,185,0.12)}.paraui-icon-button-contained svg{color:inherit;font-size:16px}.paraui-icon-button-contained.paraui-icon-button-dangerous{background-color:#eb6054}.paraui-icon-button-contained.paraui-icon-button-dangerous:hover{background-color:rgba(235,96,84,0.8)}.paraui-icon-button-outlined{color:rgba(46,55,67,0.7);background-color:#fff;border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-icon-button-outlined:hover{color:#3666d6;border-color:rgba(54,102,214,0.2);box-shadow:none;background-color:#fff}.paraui-icon-button-outlined[disabled]{color:rgba(46,55,67,0.4);background-color:rgba(171,176,185,0.12);border:1px solid rgba(171,176,185,0.4);box-shadow:none}.paraui-icon-button-outlined[disabled]:hover{background-color:rgba(171,176,185,0.12)}.paraui-icon-button-outlined svg{color:inherit;font-size:16px}.paraui-icon-button-outlined.paraui-icon-button-dangerous{color:#eb6054;border-color:#eb6054}.paraui-icon-button-outlined.paraui-icon-button-dangerous:hover{color:rgba(235,96,84,0.8);border-color:rgba(235,96,84,0.8)}.paraui-icon-button-text{color:#3666d6}.paraui-icon-button-text:hover{color:rgba(54,102,214,0.8);background-color:transparent}.paraui-icon-button-text[disabled]{color:rgba(46,55,67,0.4)}.paraui-icon-button-text[disabled]:hover{background-color:transparent}.paraui-icon-button-text svg{color:inherit}.paraui-icon-button-text.paraui-icon-button-dangerous{color:#eb6054}.paraui-icon-button-text.paraui-icon-button-dangerous:hover{color:rgba(235,96,84,0.8)}.paraui-icon-button-text.paraui-icon-button-large{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-large svg{font-size:28px}.paraui-icon-button-text.paraui-icon-button-medium{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-medium svg{font-size:24px}.paraui-icon-button-text.paraui-icon-button-small{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-small svg{font-size:20px}.paraui-icon-button-large{width:36px;height:36px}.paraui-icon-button-medium{width:32px;height:32px}.paraui-icon-button-small{width:28px;height:28px}.paraui-button-split{display:inline-block}.paraui-button-split .paraui-button:hover{border-color:rgba(54,102,214,0.8)}.paraui-button-split .paraui-button-split--active{color:#3666d6;border-color:rgba(54,102,214,0.8);box-shadow:none;background-color:#fff}.paraui-button-split-list{padding:8px 0;margin:8px 0;border-radius:4px;box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4);background-color:#fff}.paraui-button-split-list ul .split-li{min-width:140px;padding:11px 12px;color:#2e3743;font-size:14px;line-height:1;cursor:pointer;transition:background-color .3s, color .3s}.paraui-button-split-list ul .split-li:hover{background-color:rgba(171,176,185,0.12)}.paraui-button-split-list ul .split-li.split-li--active{color:#3666d6}.paraui-button-split-list ul .split-li.split-li--active:hover{background-color:rgba(171,176,185,0.12)}.paraui-button-split-list ul .split-li.split-li--disabled{color:rgba(46,55,67,0.4);cursor:not-allowed}.paraui-button-split-list ul .split-li.split-li--disabled:hover{background-color:#fff}.paraui-button-split-list ul .split-li-group:not(:first-child){position:relative;margin-top:16px}.paraui-button-split-list ul .split-li-group:not(:first-child):before{content:'';position:absolute;top:-8px;left:8px;right:8px;border-top:1px solid rgba(171,176,185,0.2)}\n",""]),t.exports=n},9929:function(t,n,e){(n=e(3645)(!1)).push([t.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",""]),t.exports=n},3645:function(t){"use strict";t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e=function(t,n){var e=t[1]||"",r=t[3];if(!r)return e;if(n&&"function"==typeof btoa){var o=(a=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),i=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[e].concat(i).concat([o]).join("\n")}var a,c,u;return[e].join("\n")}(n,t);return n[2]?"@media ".concat(n[2]," {").concat(e,"}"):e})).join("")},n.i=function(t,e,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);r&&o[u[0]]||(e&&(u[2]?u[2]="".concat(e," and ").concat(u[2]):u[2]=e),n.push(u))}},n}},7418:function(t){"use strict";
|
|
41
|
+
/*
|
|
42
|
+
object-assign
|
|
43
|
+
(c) Sindre Sorhus
|
|
44
|
+
@license MIT
|
|
45
|
+
*/var n=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var n={},e=0;e<10;e++)n["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(t){return n[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var a,c,u=o(t),l=1;l<arguments.length;l++){for(var s in a=Object(arguments[l]))e.call(a,s)&&(u[s]=a[s]);if(n){c=n(a);for(var p=0;p<c.length;p++)r.call(a,c[p])&&(u[c[p]]=a[c[p]])}}return u}},5251:function(t,n,e){"use strict";
|
|
46
|
+
/** @license React v17.0.2
|
|
47
|
+
* react-jsx-runtime.production.min.js
|
|
48
|
+
*
|
|
49
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the MIT license found in the
|
|
52
|
+
* LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/e(7418);var r=e(8156),o=60103;if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),n.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(t,n,e){var r,i={},l=null,s=null;for(r in void 0!==e&&(l=""+e),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(s=n.ref),n)c.call(n,r)&&!u.hasOwnProperty(r)&&(i[r]=n[r]);if(t&&t.defaultProps)for(r in n=t.defaultProps)void 0===i[r]&&(i[r]=n[r]);return{$$typeof:o,type:t,key:l,ref:s,props:i,_owner:a.current}}n.jsx=l,n.jsxs=l},5893:function(t,n,e){"use strict";t.exports=e(5251)},5822:function(t,n,e){var r=e(3379),o=e(8313);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);t.exports=o.locals||{}},2310:function(t,n,e){var r=e(3379),o=e(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);t.exports=o.locals||{}},3379:function(t,n,e){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var t={};return function(n){if(void 0===t[n]){var e=document.querySelector(n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}t[n]=e}return t[n]}}(),a=[];function c(t){for(var n=-1,e=0;e<a.length;e++)if(a[e].identifier===t){n=e;break}return n}function u(t,n){for(var e={},r=[],o=0;o<t.length;o++){var i=t[o],u=n.base?i[0]+n.base:i[0],l=e[u]||0,s="".concat(u," ").concat(l);e[u]=l+1;var p=c(s),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(d)):a.push({identifier:s,updater:g(d,n),references:1}),r.push(s)}return r}function l(t){var n=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=e.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){n.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(n);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}return n}var s,p=(s=[],function(t,n){return s[t]=n,s.filter(Boolean).join("\n")});function d(t,n,e,r){var o=e?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=p(n,o);else{var i=document.createTextNode(o),a=t.childNodes;a[n]&&t.removeChild(a[n]),a.length?t.insertBefore(i,a[n]):t.appendChild(i)}}function f(t,n,e){var r=e.css,o=e.media,i=e.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var b=null,v=0;function g(t,n){var e,r,o;if(n.singleton){var i=v++;e=b||(b=l(n)),r=d.bind(null,e,i,!1),o=d.bind(null,e,i,!0)}else e=l(n),r=f.bind(null,e,n),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)};return r(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;r(t=n)}else o()}}t.exports=function(t,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=o());var e=u(t=t||[],n);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<e.length;r++){var o=c(e[r]);a[o].references--}for(var i=u(t,n),l=0;l<e.length;l++){var s=c(e[l]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}e=i}}}},3054:function(t,n,e){"use strict";var r=e(8156),o=e.n(r),i=e(5395),a=e.n(i);n.Z=function(t,n){var e=o().useContext(a()).intlFormat;return n.zh_CN=n.zh,n.en_US=n.en,e&&e(t,n)}},7371:function(t,n,e){"use strict";var r=e(5893),o=e(670),i=e(6010),a=(e(2310),function(){return a=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},a.apply(this,arguments)}),c=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e};n.default=function(t){var n,e=t.placement,u=void 0===e?"top-start":e,l=t.className,s=t.arrow,p=void 0===s||s,d=t.PopperProps,f=t.boundariesElement,b=void 0===f?"scrollParent":f,v=c(t,["placement","className","arrow","PopperProps","boundariesElement"]),g=a(a({},t.classes),{popper:(0,i.Z)("paraui-tooltip",l,null===(n=t.classes)||void 0===n?void 0:n.popper,{"paraui-tooltip-left-right":(null==u?void 0:u.includes("left"))||(null==u?void 0:u.includes("right")),"paraui-tooltip-top-bottom":(null==u?void 0:u.includes("top"))||(null==u?void 0:u.includes("bottom"))})});return(0,r.jsx)(o.Tooltip,a({},v,{enterTouchDelay:0,arrow:p,placement:u,classes:g,PopperProps:a(a({},d),{modifiers:{preventOverflow:{boundariesElement:b}}})}))}},670:function(t){"use strict";t.exports=n},5395:function(t){"use strict";t.exports=e},8156:function(n){"use strict";n.exports=t}},o={};function i(t){var n=o[t];if(void 0!==n)return n.exports;var e=o[t]={id:t,exports:{}};return r[t](e,e.exports,i),e.exports}i.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(n,{a:n}),n},i.d=function(t,n){for(var e in n)i.o(n,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},i.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return function(){"use strict";i.r(a),i.d(a,{Button:function(){return m},default:function(){return y}});var t=i(5893),n=i(8156),e=i(670),r=i(6010),o=i(1217),c=i.n(o),u=i(465),l=i.n(u),s=i(7371),p=i(4352),d=i.n(p),f=i(3054),b={zh:{moreActions:"更多操作"},en:{moreActions:"More actions"}},v=function(){return v=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},v.apply(this,arguments)};i(5822);var g=function(){return g=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},g.apply(this,arguments)},h=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e},m=function(o){var i=o.variant,a=void 0===i?"contained":i,u=o.size,p=void 0===u?"large":u,d=o.className,f=o.disabled,b=void 0!==f&&f,v=o.children,m=o.startIcon,y=o.endIcon,x=o.loading,j=void 0!==x&&x,O=o.toolTipTitle,w=void 0===O?"":O,S=o.TooltipProps,_=o.danger,P=void 0!==_&&_,N=h(o,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","TooltipProps","danger"]),k=(0,n.useState)(!1),C=k[0],T=k[1],E=function(n){if(!C)return"start"===n&&m?(0,t.jsx)("span",g({className:(0,r.Z)("btn-icon","start-icon")},{children:m})):"end"===n&&y?(0,t.jsx)("span",g({className:(0,r.Z)("btn-icon","end-icon")},{children:y})):null;if("object"==typeof j){var e=j.delay||0;setTimeout((function(){return T(!1)}),e)}return"start"===n?(0,t.jsx)("span",g({className:"btn-icon loading-icon"},{children:(0,t.jsx)(c(),{})})):null},M=(0,t.jsx)(e.Button,g({},N,{color:"default",variant:"contained",disabled:b,disableRipple:!0,disableElevation:!0,className:(0,r.Z)("paraui-button",d,"paraui-button-".concat(a),"paraui-button-".concat(p),C&&"paraui-button-loading",P&&!b&&"paraui-button-dangerous"),classes:{label:"paraui-button-label"},startIcon:E("start"),endIcon:E("end")},{children:v}));return(0,n.useEffect)((function(){T(!!j)}),[j]),b&&w?(0,t.jsx)(s.default,g({},S,{title:function(){if(b&&w){return(0,t.jsxs)("span",{children:[(0,t.jsx)(l(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),w]})}return w}()},{children:(0,t.jsx)("span",g({className:"paraui-button--disabled"},{children:M}))})):M};m.IconButton=function(o){var i=o.variant,a=void 0===i?"contained":i,u=o.size,p=void 0===u?"large":u,d=o.toolTipTitle,f=void 0===d?"":d,b=o.children,v=o.className,m=o.disabled,y=void 0!==m&&m,x=o.loading,j=void 0!==x&&x,O=o.TooltipProps,w=o.danger,S=void 0!==w&&w,_=h(o,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),P=(0,n.useState)(!1),N=P[0],k=P[1],C=(0,t.jsx)(e.IconButton,g({},_,{disabled:y,disableRipple:!0,className:(0,r.Z)("paraui-icon-button",v,"paraui-icon-button-".concat(a),"paraui-icon-button-".concat(p),N&&"paraui-icon-button-loading",S&&!y&&"paraui-icon-button-dangerous")},{children:function(){if(!N)return b;if("object"==typeof j){var n=j.delay||0;setTimeout((function(){return k(!1)}),n)}return(0,t.jsx)("span",g({className:"loading-icon"},{children:(0,t.jsx)(c(),{})}))}()}));return(0,n.useEffect)((function(){k(!!j)}),[j]),f?(0,t.jsx)(s.default,g({},O,{title:function(){if(y&&f){return(0,t.jsxs)("span",{children:[(0,t.jsx)(l(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),f]})}return f}()},{children:y?(0,t.jsx)("span",g({className:"paraui-button--disabled"},{children:C})):C}),+N):C},m.SplitButton=function(o){var i=o.buttonText,a=o.options,c=void 0===a?[]:a,u=o.className,l=o.popperClassName,s=o.style,p=o.popperStyle,g=o.disabled,h=void 0!==g&&g,m=o.onClick,x=o.optionRender,j=o.placement,O=void 0===j?"bottom-end":j,w=o.buttonProps,S=(0,f.Z)("Button",b),_=(0,n.useState)(!1),P=_[0],N=_[1],k=(0,n.useRef)(null),C=(0,n.useRef)(),T=(0,n.useState)(),E=T[0],M=T[1],R=function(t,n,e){var r;t.disabled?e.stopPropagation():(M(n),N(!1),null===(r=C.current)||void 0===r||r.classList.remove("paraui-button-split--active"),null==m||m(t,e))},I=function(t){var n,e;(null===(n=k.current)||void 0===n?void 0:n.contains(t.target))||(N(!1),null===(e=C.current)||void 0===e||e.classList.remove("paraui-button-split--active"))},L=function(){return(0,t.jsx)("div",v({className:"paraui-button-split-list"},{children:(0,t.jsx)("ul",{children:c.map((function(n,e){return Array.isArray(n)?function(n,e){return(0,t.jsx)("li",v({className:"split-li-group"},{children:n.map((function(n,o){var i="".concat(e,"-").concat(o);return(0,t.jsx)("div",v({className:(0,r.Z)("split-li",i===E&&"split-li--active",n.disabled&&"split-li--disabled"),onClick:function(t){return R(n,i,t)}},{children:(null==x?void 0:x(n))||n.label}),i)}))}),e)}(n,e):(0,t.jsx)("li",v({className:(0,r.Z)("split-li",e===E&&"split-li--active",n.disabled&&"split-li--disabled"),onClick:function(t){return R(n,e,t)}},{children:(null==x?void 0:x(n))||n.label}),e)}))})}))};return(0,t.jsxs)("div",v({className:(0,r.Z)("paraui-button-split",u),ref:k,style:s,onMouseLeave:function(t){var n;t.stopPropagation(),null===(n=t.currentTarget.firstElementChild)||void 0===n||n.classList.remove("paraui-button-split--active"),N(!1)}},{children:[(0,t.jsx)(y,v({variant:"outlined",size:"large",startIcon:(0,t.jsx)(d(),{}),disabled:h},w,{onMouseEnter:function(t){t.stopPropagation();var n=t.currentTarget;C.current=n,n.classList.add("paraui-button-split--active"),N(!0)}},{children:null!=i?i:S({id:"moreActions"})})),(0,t.jsx)(e.Popper,v({open:P,anchorEl:k.current,transition:!0,placement:O,style:v({zIndex:1500},p),className:(0,r.Z)("paraui-button-split-popper",l)},{children:function(n){var r=n.TransitionProps;n.placement;return(0,t.jsx)(e.Grow,v({},r,{children:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(e.ClickAwayListener,v({onClickAway:I},{children:L()}))})}))}}))]}))};var y=m}(),a}()}));
|