@para-ui/core 2.1.35 → 2.1.36
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/ColorPicker/index.d.ts +4 -0
- package/ColorPicker/index.js +1 -0
- package/ComBox/index.d.ts +16 -0
- package/ComBox/index.js +16 -0
- package/ComBox/interface.d.ts +5 -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 +29 -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 +15 -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/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 +137 -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 +25 -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 +1 -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 +85 -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/Select/selectCom.d.ts +11 -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 +9 -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/tableCom.d.ts +11 -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/TextField/textFieldCom.d.ts +11 -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/ColorPicker/index.js +1 -0
- package/cdn/ComBox/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 +55 -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 +1 -1
- package/{temp/style.css → style.css} +0 -0
- 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,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2021/8/4 上午10:21
|
|
4
|
+
* @description 按钮组
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import { ButtonProps } from '../Button';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export interface ButtonItem extends ButtonProps {
|
|
10
|
+
/** 图标*/
|
|
11
|
+
icon?: ReactNode;
|
|
12
|
+
/** 文本*/
|
|
13
|
+
text?: ReactNode;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
16
|
+
export interface ButtonGroupProps {
|
|
17
|
+
/** 按钮组模式 */
|
|
18
|
+
mode?: 'icon' | 'iconSplit' | 'text';
|
|
19
|
+
/** 按钮组数据 */
|
|
20
|
+
data: ButtonItem[];
|
|
21
|
+
/** cls */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** 显示tooltip */
|
|
24
|
+
showToolTip?: boolean;
|
|
25
|
+
/** 禁用按钮组 */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/**自定义样式*/
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
/** onClick */
|
|
30
|
+
onClick?: (item: ButtonItem, event?: React.MouseEvent) => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const ButtonGroup: FunctionComponent<ButtonGroupProps>;
|
|
33
|
+
export default ButtonGroup;
|
|
@@ -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 u=(e=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),c=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[i].concat(c).concat([u]).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 u=0;u<t.length;u++){var c=[].concat(t[u]);r&&o[c[0]]||(e&&(c[2]?c[2]="".concat(e," and ").concat(c[2]):c[2]=e),n.push(c))}},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,u,c=o(t),l=1;l<arguments.length;l++){for(var s in a=Object(arguments[l]))e.call(a,s)&&(c[s]=a[s]);if(n){u=n(a);for(var p=0;p<u.length;p++)r.call(a,u[p])&&(c[u[p]]=a[u[p]])}}return c}},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,u=Object.prototype.hasOwnProperty,c={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)u.call(n,r)&&!c.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 u(t){for(var n=-1,e=0;e<a.length;e++)if(a[e].identifier===t){n=e;break}return n}function c(t,n){for(var e={},r=[],o=0;o<t.length;o++){var i=t[o],c=n.base?i[0]+n.base:i[0],l=e[c]||0,s="".concat(c," ").concat(l);e[c]=l+1;var p=u(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=c(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=u(e[r]);a[o].references--}for(var i=c(t,n),l=0;l<e.length;l++){var s=u(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,u=t.color,c=void 0===u?"primary":u,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),c&&(n+=" paraui-icon-"+c),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 u=(e=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),c=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[i].concat(c).concat([u]).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 u=0;u<t.length;u++){var c=[].concat(t[u]);r&&o[c[0]]||(e&&(c[2]?c[2]="".concat(e," and ").concat(c[2]):c[2]=e),n.push(c))}},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,u,c=o(t),l=1;l<arguments.length;l++){for(var s in a=Object(arguments[l]))e.call(a,s)&&(c[s]=a[s]);if(n){u=n(a);for(var p=0;p<u.length;p++)r.call(a,u[p])&&(c[u[p]]=a[u[p]])}}return c}},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,u=Object.prototype.hasOwnProperty,c={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)u.call(n,r)&&!c.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 u(t){for(var n=-1,e=0;e<a.length;e++)if(a[e].identifier===t){n=e;break}return n}function c(t,n){for(var e={},r=[],o=0;o<t.length;o++){var i=t[o],c=n.base?i[0]+n.base:i[0],l=e[c]||0,s="".concat(c," ").concat(l);e[c]=l+1;var p=u(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=c(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=u(e[r]);a[o].references--}for(var i=c(t,n),l=0;l<e.length;l++){var s=u(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,u=t.color,c=void 0===u?"primary":u,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),c&&(n+=" paraui-icon-"+c),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 u=(e=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),c=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[i].concat(c).concat([u]).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 u=0;u<t.length;u++){var c=[].concat(t[u]);r&&o[c[0]]||(e&&(c[2]?c[2]="".concat(e," and ").concat(c[2]):c[2]=e),n.push(c))}},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,u,c=o(t),l=1;l<arguments.length;l++){for(var s in a=Object(arguments[l]))e.call(a,s)&&(c[s]=a[s]);if(n){u=n(a);for(var p=0;p<u.length;p++)r.call(a,u[p])&&(c[u[p]]=a[u[p]])}}return c}},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,u=Object.prototype.hasOwnProperty,c={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)u.call(n,r)&&!c.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 u(t){for(var n=-1,e=0;e<a.length;e++)if(a[e].identifier===t){n=e;break}return n}function c(t,n){for(var e={},r=[],o=0;o<t.length;o++){var i=t[o],c=n.base?i[0]+n.base:i[0],l=e[c]||0,s="".concat(c," ").concat(l);e[c]=l+1;var p=u(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=c(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=u(e[r]);a[o].references--}for(var i=c(t,n),l=0;l<e.length;l++){var s=u(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,u=t.color,c=void 0===u?"primary":u,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),c&&(n+=" paraui-icon-"+c),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},9114:function(t,n,e){(n=e(3645)(!1)).push([t.id,".paraui-button-group{display:inline-flex;align-items:center}.paraui-button-group-iconSplit .paraui-icon-button:not(:last-child){margin-right:8px}.paraui-button-group-iconSplit.paraui-button-group-tooltip>span:not(:last-child){margin-right:8px}.paraui-button-group-icon{border:1px solid rgba(171,176,185,0.4);border-radius:4px}.paraui-button-group-icon .paraui-icon-button{border:none;border-radius:0}.paraui-button-group-icon .paraui-icon-button:not(:last-child){border-right:1px solid rgba(171,176,185,0.4)}.paraui-button-group-icon .paraui-icon-button:first-child{border-radius:4px 0 0 4px}.paraui-button-group-icon .paraui-icon-button:last-child{border-radius:0 4px 4px 0}.paraui-button-group-icon.paraui-button-group-tooltip>span .paraui-icon-button{border:none;border-radius:0}.paraui-button-group-icon.paraui-button-group-tooltip>span:not(:last-child) .paraui-icon-button{border-right:1px solid rgba(171,176,185,0.4)}.paraui-button-group-icon.paraui-button-group-tooltip>span:first-child .paraui-icon-button{border-radius:4px 0 0 4px}.paraui-button-group-icon.paraui-button-group-tooltip>span:last-child .paraui-icon-button{border-radius:0 4px 4px 0}.paraui-button-group-text .paraui-button{border:none;border-radius:0}.paraui-button-group-text .paraui-button:not(:last-child){border-right:1px solid rgba(171,176,185,0.4)}\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,u=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(c," */")),i=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[e].concat(i).concat([o]).join("\n")}var a,u,c;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 u=0;u<t.length;u++){var c=[].concat(t[u]);r&&o[c[0]]||(e&&(c[2]?c[2]="".concat(e," and ").concat(c[2]):c[2]=e),n.push(c))}},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,u,c=o(t),l=1;l<arguments.length;l++){for(var s in a=Object(arguments[l]))e.call(a,s)&&(c[s]=a[s]);if(n){u=n(a);for(var p=0;p<u.length;p++)r.call(a,u[p])&&(c[u[p]]=a[u[p]])}}return c}},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,u=Object.prototype.hasOwnProperty,c={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)u.call(n,r)&&!c.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||{}},954:function(t,n,e){var r=e(3379),o=e(9114);"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 u(t){for(var n=-1,e=0;e<a.length;e++)if(a[e].identifier===t){n=e;break}return n}function c(t,n){for(var e={},r=[],o=0;o<t.length;o++){var i=t[o],c=n.base?i[0]+n.base:i[0],l=e[c]||0,s="".concat(c," ").concat(l);e[c]=l+1;var p=u(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=c(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=u(e[r]);a[o].references--}for(var i=c(t,n),l=0;l<e.length;l++){var s=u(e[l]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}e=i}}}},7896:function(t,n,e){"use strict";e.d(n,{default:function(){return x}});var r=e(5893),o=e(8156),i=e(670),a=e(6010),u=e(1217),c=e.n(u),l=e(465),s=e.n(l),p=e(7371),d=e(4352),f=e.n(d),b=e(3054),v={zh:{moreActions:"更多操作"},en:{moreActions:"More actions"}},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)};e(5822);var h=function(){return h=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},h.apply(this,arguments)},m=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},y=function(t){var n=t.variant,e=void 0===n?"contained":n,u=t.size,l=void 0===u?"large":u,d=t.className,f=t.disabled,b=void 0!==f&&f,v=t.children,g=t.startIcon,y=t.endIcon,x=t.loading,j=void 0!==x&&x,O=t.toolTipTitle,w=void 0===O?"":O,S=t.TooltipProps,_=t.danger,P=void 0!==_&&_,N=m(t,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","TooltipProps","danger"]),k=(0,o.useState)(!1),C=k[0],T=k[1],E=function(t){if(!C)return"start"===t&&g?(0,r.jsx)("span",h({className:(0,a.Z)("btn-icon","start-icon")},{children:g})):"end"===t&&y?(0,r.jsx)("span",h({className:(0,a.Z)("btn-icon","end-icon")},{children:y})):null;if("object"==typeof j){var n=j.delay||0;setTimeout((function(){return T(!1)}),n)}return"start"===t?(0,r.jsx)("span",h({className:"btn-icon loading-icon"},{children:(0,r.jsx)(c(),{})})):null},M=(0,r.jsx)(i.Button,h({},N,{color:"default",variant:"contained",disabled:b,disableRipple:!0,disableElevation:!0,className:(0,a.Z)("paraui-button",d,"paraui-button-".concat(e),"paraui-button-".concat(l),C&&"paraui-button-loading",P&&!b&&"paraui-button-dangerous"),classes:{label:"paraui-button-label"},startIcon:E("start"),endIcon:E("end")},{children:v}));return(0,o.useEffect)((function(){T(!!j)}),[j]),b&&w?(0,r.jsx)(p.default,h({},S,{title:function(){if(b&&w){return(0,r.jsxs)("span",{children:[(0,r.jsx)(s(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),w]})}return w}()},{children:(0,r.jsx)("span",h({className:"paraui-button--disabled"},{children:M}))})):M};y.IconButton=function(t){var n=t.variant,e=void 0===n?"contained":n,u=t.size,l=void 0===u?"large":u,d=t.toolTipTitle,f=void 0===d?"":d,b=t.children,v=t.className,g=t.disabled,y=void 0!==g&&g,x=t.loading,j=void 0!==x&&x,O=t.TooltipProps,w=t.danger,S=void 0!==w&&w,_=m(t,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),P=(0,o.useState)(!1),N=P[0],k=P[1],C=(0,r.jsx)(i.IconButton,h({},_,{disabled:y,disableRipple:!0,className:(0,a.Z)("paraui-icon-button",v,"paraui-icon-button-".concat(e),"paraui-icon-button-".concat(l),N&&"paraui-icon-button-loading",S&&!y&&"paraui-icon-button-dangerous")},{children:function(){if(!N)return b;if("object"==typeof j){var t=j.delay||0;setTimeout((function(){return k(!1)}),t)}return(0,r.jsx)("span",h({className:"loading-icon"},{children:(0,r.jsx)(c(),{})}))}()}));return(0,o.useEffect)((function(){k(!!j)}),[j]),f?(0,r.jsx)(p.default,h({},O,{title:function(){if(y&&f){return(0,r.jsxs)("span",{children:[(0,r.jsx)(s(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),f]})}return f}()},{children:y?(0,r.jsx)("span",h({className:"paraui-button--disabled"},{children:C})):C}),+N):C},y.SplitButton=function(t){var n=t.buttonText,e=t.options,u=void 0===e?[]:e,c=t.className,l=t.popperClassName,s=t.style,p=t.popperStyle,d=t.disabled,h=void 0!==d&&d,m=t.onClick,y=t.optionRender,j=t.placement,O=void 0===j?"bottom-end":j,w=t.buttonProps,S=(0,b.Z)("Button",v),_=(0,o.useState)(!1),P=_[0],N=_[1],k=(0,o.useRef)(null),C=(0,o.useRef)(),T=(0,o.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"))},z=function(){return(0,r.jsx)("div",g({className:"paraui-button-split-list"},{children:(0,r.jsx)("ul",{children:u.map((function(t,n){return Array.isArray(t)?function(t,n){return(0,r.jsx)("li",g({className:"split-li-group"},{children:t.map((function(t,e){var o="".concat(n,"-").concat(e);return(0,r.jsx)("div",g({className:(0,a.Z)("split-li",o===E&&"split-li--active",t.disabled&&"split-li--disabled"),onClick:function(n){return R(t,o,n)}},{children:(null==y?void 0:y(t))||t.label}),o)}))}),n)}(t,n):(0,r.jsx)("li",g({className:(0,a.Z)("split-li",n===E&&"split-li--active",t.disabled&&"split-li--disabled"),onClick:function(e){return R(t,n,e)}},{children:(null==y?void 0:y(t))||t.label}),n)}))})}))};return(0,r.jsxs)("div",g({className:(0,a.Z)("paraui-button-split",c),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,r.jsx)(x,g({variant:"outlined",size:"large",startIcon:(0,r.jsx)(f(),{}),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!=n?n:S({id:"moreActions"})})),(0,r.jsx)(i.Popper,g({open:P,anchorEl:k.current,transition:!0,placement:O,style:g({zIndex:1500},p),className:(0,a.Z)("paraui-button-split-popper",l)},{children:function(t){var n=t.TransitionProps;t.placement;return(0,r.jsx)(i.Grow,g({},n,{children:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.ClickAwayListener,g({onClickAway:I},{children:z()}))})}))}}))]}))};var x=y},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)}),u=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,c=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=u(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==c?void 0:c.includes("left"))||(null==c?void 0:c.includes("right")),"paraui-tooltip-top-bottom":(null==c?void 0:c.includes("top"))||(null==c?void 0:c.includes("bottom"))})});return(0,r.jsx)(o.Tooltip,a({},v,{enterTouchDelay:0,arrow:p,placement:c,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,{ButtonGroup:function(){return d}});var t=i(5893),n=i(8156),e=i.n(n),r=i(7896),o=i(7371),u=i(6010),c=i(465),l=i.n(c),s=(i(954),function(){return s=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},s.apply(this,arguments)}),p=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},d=function(n){var i=n.mode,a=void 0===i?"icon":i,c=n.data,d=void 0===c?[]:c,f=n.className,b=n.showToolTip,v=void 0!==b&&b,g=n.onClick,h=n.disabled,m=void 0!==h&&h,y=n.style,x=function(n,e){if(n&&e){return(0,t.jsxs)("span",{children:[(0,t.jsx)(l(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),e]})}return e},j=function(t){return function(n){null==g||g(t,n)}},O=function(n){var e=null!=n?n:{},o=e.text,i=e.icon,u=p(e,["text","icon"]);switch(a){case"text":return(0,t.jsx)(r.default,s({onClick:j(n),variant:"outlined",size:"small"},u,{children:o}));case"icon":case"iconSplit":return(0,t.jsx)(r.default.IconButton,s({onClick:j(n),variant:"outlined"},u,{children:i}))}};return(0,t.jsx)("div",s({className:(0,u.Z)("paraui-button-group","paraui-button-group-".concat(a),f,v&&"paraui-button-group-tooltip"),style:y},{children:d&&d.length?d.map((function(n,r){var i=n.text,u=n.disabled;return void 0===u&&(u=m,n.disabled=m),v&&["icon","iconSplit"].includes(a)?(0,t.jsx)(o.default,s({title:x(u,i)},{children:(0,t.jsx)("span",{children:O(n)})}),r):(0,t.jsx)(e().Fragment,{children:O(n)},r)})):null}))};a.default=d}(),a}()}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2022/2/28 上午11:02
|
|
4
|
+
* @description Carousel
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { Settings } from "react-slick";
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export declare type CarouselEffect = 'scrollx' | 'fade';
|
|
10
|
+
export declare type DotPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
11
|
+
export interface CarouselProps extends Omit<Settings, 'dots' | 'dotsClass'> {
|
|
12
|
+
effect?: CarouselEffect;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
prefixCls?: string;
|
|
15
|
+
slickGoTo?: number;
|
|
16
|
+
dotPosition?: DotPosition;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
dots?: boolean | {
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface CarouselRef {
|
|
23
|
+
goTo: (slide: number, dontAnimate?: boolean) => void;
|
|
24
|
+
next: () => void;
|
|
25
|
+
prev: () => void;
|
|
26
|
+
play: () => void;
|
|
27
|
+
pause: () => void;
|
|
28
|
+
}
|
|
29
|
+
export declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<CarouselRef>>;
|
|
30
|
+
export default Carousel;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("react-slick")):"function"==typeof define&&define.amd?define(["react","react-slick"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("react-slick")):e.ParaUI=r(e.react,e["react-slick"])}(self,(function(e,r){return function(){var t={6010:function(e,r,t){"use strict";function i(e){var r,t,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=i(e[r]))&&(a&&(a+=" "),a+=t);else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function a(){for(var e,r,t=0,a="";t<arguments.length;)(e=arguments[t++])&&(r=i(e))&&(a&&(a+=" "),a+=r);return a}t.d(r,{Z:function(){return a}})},1881:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-carousel{box-sizing:border-box;margin:0;padding:0;color:#2e3743;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:'tnum'}.paraui-carousel .slick-slider{position:relative;display:block;box-sizing:border-box;touch-action:pan-y;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.paraui-carousel .slick-list{position:relative;display:block;margin:0;padding:0;overflow:hidden}.paraui-carousel .slick-list:focus{outline:none}.paraui-carousel .slick-list.dragging{cursor:pointer}.paraui-carousel .slick-list .slick-slide{pointer-events:none}.paraui-carousel .slick-list .slick-slide input.ant-radio-input,.paraui-carousel .slick-list .slick-slide input.ant-checkbox-input{visibility:hidden}.paraui-carousel .slick-list .slick-slide.slick-active{pointer-events:auto}.paraui-carousel .slick-list .slick-slide.slick-active input.ant-radio-input,.paraui-carousel .slick-list .slick-slide.slick-active input.ant-checkbox-input{visibility:visible}.paraui-carousel .slick-list .slick-slide>div>div{vertical-align:bottom}.paraui-carousel .slick-slider .slick-track,.paraui-carousel .slick-slider .slick-list{transform:translate3d(0, 0, 0);touch-action:pan-y}.paraui-carousel .slick-track{position:relative;top:0;left:0;display:block}.paraui-carousel .slick-track::before,.paraui-carousel .slick-track::after{display:table;content:''}.paraui-carousel .slick-track::after{clear:both}.paraui-carousel .slick-slide{display:none;float:left;height:100%;min-height:1px}.paraui-carousel .slick-slide img{display:block}.paraui-carousel .slick-slide.slick-loading img{display:none}.paraui-carousel .slick-slide.dragging img{pointer-events:none}.paraui-carousel .slick-initialized .slick-slide{display:block}.paraui-carousel .slick-loading .slick-slide{visibility:hidden}.paraui-carousel .slick-vertical .slick-slide{display:block;height:auto}.paraui-carousel .slick-arrow.slick-hidden{display:none}.paraui-carousel .slick-prev,.paraui-carousel .slick-next{position:absolute;top:50%;display:block;width:20px;height:20px;margin-top:-10px;padding:0;color:transparent;font-size:0;line-height:0;background:transparent;border:0;outline:none;cursor:pointer}.paraui-carousel .slick-prev:hover,.paraui-carousel .slick-next:hover,.paraui-carousel .slick-prev:focus,.paraui-carousel .slick-next:focus{color:transparent;background:transparent;outline:none}.paraui-carousel .slick-prev:hover::before,.paraui-carousel .slick-next:hover::before,.paraui-carousel .slick-prev:focus::before,.paraui-carousel .slick-next:focus::before{opacity:1}.paraui-carousel .slick-prev.slick-disabled::before,.paraui-carousel .slick-next.slick-disabled::before{opacity:0.25}.paraui-carousel .slick-prev{left:-25px}.paraui-carousel .slick-prev::before{content:'←'}.paraui-carousel .slick-next{right:-25px}.paraui-carousel .slick-next::before{content:'→'}.paraui-carousel .slick-dots{position:absolute;right:0;bottom:0;left:0;z-index:15;display:flex !important;justify-content:center;margin-right:15%;margin-left:15%;padding-left:0;list-style:none}.paraui-carousel .slick-dots-bottom{bottom:12px}.paraui-carousel .slick-dots-top{top:12px;bottom:auto}.paraui-carousel .slick-dots li{position:relative;display:inline-block;flex:0 1 auto;box-sizing:content-box;width:16px;height:3px;margin:0 2px;margin-right:3px;margin-left:3px;padding:0;text-align:center;text-indent:-999px;vertical-align:top;transition:all 0.5s}.paraui-carousel .slick-dots li button{display:block;width:100%;height:3px;padding:0;color:transparent;font-size:0;background:#fff;border:0;border-radius:1px;outline:none;cursor:pointer;opacity:0.3;transition:all 0.5s}.paraui-carousel .slick-dots li button:hover,.paraui-carousel .slick-dots li button:focus{opacity:0.75}.paraui-carousel .slick-dots li.slick-active{width:24px}.paraui-carousel .slick-dots li.slick-active button{background:#fff;opacity:1}.paraui-carousel .slick-dots li.slick-active:hover,.paraui-carousel .slick-dots li.slick-active:focus{opacity:1}.paraui-carousel .slick-loading .paraui-carousel .slick-track{visibility:hidden}.paraui-carousel-vertical .slick-dots{top:50%;bottom:auto;flex-direction:column;width:3px;height:auto;margin:0;transform:translateY(-50%)}.paraui-carousel-vertical .slick-dots-left{right:auto;left:12px}.paraui-carousel-vertical .slick-dots-right{right:12px;left:auto}.paraui-carousel-vertical .slick-dots li{width:3px;height:16px;margin:4px 2px;vertical-align:baseline}.paraui-carousel-vertical .slick-dots li button{width:3px;height:16px}.paraui-carousel-vertical .slick-dots li.slick-active{width:3px;height:24px}.paraui-carousel-vertical .slick-dots li.slick-active button{width:3px;height:24px}.paraui-carousel-rtl{direction:rtl}.paraui-carousel-rtl .paraui-carousel .slick-track{right:0;left:auto}.paraui-carousel-rtl .paraui-carousel .slick-prev{right:-25px;left:auto}.paraui-carousel-rtl .paraui-carousel .slick-prev::before{content:'→'}.paraui-carousel-rtl .paraui-carousel .slick-next{right:auto;left:-25px}.paraui-carousel-rtl .paraui-carousel .slick-next::before{content:'←'}.paraui-carousel-rtl.paraui-carousel .slick-dots{flex-direction:row-reverse}.paraui-carousel-rtl.paraui-carousel-vertical .slick-dots{flex-direction:column}\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]||"",i=e[3];if(!i)return t;if(r&&"function"==typeof btoa){var a=(n=i,c=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(l," */")),o=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[t].concat(o).concat([a]).join("\n")}var n,c,l;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,i){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(i)for(var o=0;o<this.length;o++){var n=this[o][0];null!=n&&(a[n]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);i&&a[l[0]]||(t&&(l[2]?l[2]="".concat(t," and ").concat(l[2]):l[2]=t),r.push(l))}},r}},7418:function(e){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var n,c,l=a(e),s=1;s<arguments.length;s++){for(var u in n=Object(arguments[s]))t.call(n,u)&&(l[u]=n[u]);if(r){c=r(n);for(var p=0;p<c.length;p++)i.call(n,c[p])&&(l[c[p]]=n[c[p]])}}return l}},5251:function(e,r,t){"use strict";
|
|
7
|
+
/** @license React v17.0.2
|
|
8
|
+
* react-jsx-runtime.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
t(7418);var i=t(8156),a=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;a=o("react.element"),o("react.fragment")}var n=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,t){var i,o={},s=null,u=null;for(i in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(u=r.ref),r)c.call(r,i)&&!l.hasOwnProperty(i)&&(o[i]=r[i]);if(e&&e.defaultProps)for(i in r=e.defaultProps)void 0===o[i]&&(o[i]=r[i]);return{$$typeof:a,type:e,key:s,ref:u,props:o,_owner:n.current}}r.jsx=s},5893:function(e,r,t){"use strict";e.exports=t(5251)},5846:function(e,r,t){var i=t(3379),a=t(1881);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var o={insert:("body","body"),singleton:!1};i(a,o);e.exports=a.locals||{}},3379:function(e,r,t){"use strict";var i,a=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),n=[];function c(e){for(var r=-1,t=0;t<n.length;t++)if(n[t].identifier===e){r=t;break}return r}function l(e,r){for(var t={},i=[],a=0;a<e.length;a++){var o=e[a],l=r.base?o[0]+r.base:o[0],s=t[l]||0,u="".concat(l," ").concat(s);t[l]=s+1;var p=c(u),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==p?(n[p].references++,n[p].updater(d)):n.push({identifier:u,updater:k(d,r),references:1}),i.push(u)}return i}function s(e){var r=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var a=t.nc;a&&(i.nonce=a)}if(Object.keys(i).forEach((function(e){r.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(r);else{var n=o(e.insert||"head");if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}return r}var u,p=(u=[],function(e,r){return u[e]=r,u.filter(Boolean).join("\n")});function d(e,r,t,i){var a=t?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=p(r,a);else{var o=document.createTextNode(a),n=e.childNodes;n[r]&&e.removeChild(n[r]),n.length?e.insertBefore(o,n[r]):e.appendChild(o)}}function f(e,r,t){var i=t.css,a=t.media,o=t.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var v=null,b=0;function k(e,r){var t,i,a;if(r.singleton){var o=b++;t=v||(v=s(r)),i=d.bind(null,t,o,!1),a=d.bind(null,t,o,!0)}else t=s(r),i=f.bind(null,t,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return i(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;i(e=r)}else a()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=a());var t=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<t.length;i++){var a=c(t[i]);n[a].references--}for(var o=l(e,r),s=0;s<t.length;s++){var u=c(t[s]);0===n[u].references&&(n[u].updater(),n.splice(u,1))}t=o}}}},8156:function(r){"use strict";r.exports=e},2574:function(e){"use strict";e.exports=r}},i={};function a(e){var r=i[e];if(void 0!==r)return r.exports;var o=i[e]={id:e,exports:{}};return t[e](o,o.exports,a),o.exports}a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,{a:r}),r},a.d=function(e,r){for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";a.r(o),a.d(o,{Carousel:function(){return u}});var e=a(5893),r=a(8156),t=a.n(r),i=a(2574),n=a.n(i),c=a(6010),l=(a(5846),function(){return l=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},l.apply(this,arguments)}),s=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)r.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t},u=t().forwardRef((function(r,i){var a,o=r.dots,u=void 0===o||o,p=r.arrows,d=void 0!==p&&p,f=r.draggable,v=void 0!==f&&f,b=r.dotPosition,k=void 0===b?"bottom":b,h=s(r,["dots","arrows","draggable","dotPosition"]),g=t().useRef(),y=function(e,r){void 0===r&&(r=!1),g.current.slickGoTo(e,r)};t().useImperativeHandle(i,(function(){return{goTo:y,prev:g.current.slickPrev,next:g.current.slickNext,play:g.current.slickPlay,pause:g.current.slickPause}}),[g.current]);var m=t().useRef(t().Children.count(h.children));t().useEffect((function(){m.current!==t().Children.count(h.children)&&(y(h.initialSlide||0,!1),m.current=t().Children.count(h.children))}),[h.children]);var x=l({},h);"fade"===x.effect&&(x.fade=!0);var w="paraui-carousel",O="slick-dots";x.vertical="left"===k||"right"===k;var j=!!u,S=(0,c.Z)(O,"".concat(O,"-").concat(k),"boolean"!=typeof u&&(null==u?void 0:u.className)),P=(0,c.Z)(w,((a={})["".concat(w,"-vertical")]=x.vertical,a));return(0,e.jsx)("div",l({className:P},{children:(0,e.jsx)(n(),l({ref:g},x,{dots:j,dotsClass:S,arrows:d,draggable:v}))}))}));o.default=u}(),o}()}));
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style/index.scss';
|
|
3
|
+
/**
|
|
4
|
+
* @description: 级联选择器
|
|
5
|
+
* @param value{ string }: 选中的值
|
|
6
|
+
* @param label: { string }: 选项
|
|
7
|
+
* @param disabled: { Boolean }: 是否禁用
|
|
8
|
+
* @param children: { Array }: 子选项
|
|
9
|
+
* @param loading: { Boolean }: 是否加载中
|
|
10
|
+
* @param isLeaf: { Boolean }: 是否叶子节点
|
|
11
|
+
*/
|
|
12
|
+
interface Option {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
children?: Option[];
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
isLeaf?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @param data{ Array }: 数据源
|
|
22
|
+
* @param value{array}: 选中的值
|
|
23
|
+
* @param onChange{ Function }: 选中的值改变时的回调
|
|
24
|
+
* @param onDropdownVisibleChange{ Function }: 弹出层显示状态改变时的回调
|
|
25
|
+
* @param changeOnSelect{ Boolean }: 是否在选中时发生改变
|
|
26
|
+
* @param expandTrigger{ String }: 展开时触发的方式
|
|
27
|
+
* @param expandIcon{ React.ReactNode }: 展开图标
|
|
28
|
+
* @param loadingIcon{ React.ReactNode }: 加载图标
|
|
29
|
+
* @param expandJoin{ String }: 展开时的连接符
|
|
30
|
+
* @param fieldNames{ Object }: 字段名称
|
|
31
|
+
* @param disabled{ Boolean }: 是否禁用
|
|
32
|
+
* @param placeholder{ String }: 占位符
|
|
33
|
+
* @param loadData{ Function }: 加载数据的方法
|
|
34
|
+
*/
|
|
35
|
+
interface Props {
|
|
36
|
+
data: Option[];
|
|
37
|
+
expandTrigger?: 'click' | 'hover';
|
|
38
|
+
value?: string[];
|
|
39
|
+
onChange?: (value: string[], selectedOptions: Option[]) => void;
|
|
40
|
+
onDropdownVisibleChange?: (visible: boolean) => void;
|
|
41
|
+
changeOnSelect?: boolean;
|
|
42
|
+
expandIcon?: React.ReactNode;
|
|
43
|
+
expandJoin?: string;
|
|
44
|
+
fieldNames?: object;
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
placeholder?: string;
|
|
47
|
+
size?: 'small' | 'medium' | 'large';
|
|
48
|
+
loadData?: (selectedOptions: Option[], setState?: React.Dispatch<React.SetStateAction<Option[]>>) => void;
|
|
49
|
+
loadingIcon?: React.ReactNode;
|
|
50
|
+
}
|
|
51
|
+
export declare const Cascader: ({ data, expandTrigger, value, onChange, onDropdownVisibleChange, changeOnSelect, expandIcon, expandJoin, fieldNames, disabled, placeholder, loadData, loadingIcon, }: Props) => JSX.Element;
|
|
52
|
+
export default Cascader;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("rc-cascader"),require("@para-ui/core/GlobalContext")):"function"==typeof define&&define.amd?define(["react","rc-cascader","@para-ui/core/GlobalContext"],n):"object"==typeof exports?exports.ParaUI=n(require("react"),require("rc-cascader"),require("@para-ui/core/GlobalContext")):e.ParaUI=n(e.react,e["rc-cascader"],e["@para-ui/core/GlobalContext"])}(self,(function(e,n,t){return function(){var r={7692:function(e,n,t){var r;self,e.exports=(r=t(8156),function(){var e={466:function(e,n,t){(n=t(3645)(!1)).push([e.id,".paraui-icon{width:1em;height:1em;fill:currentColor;display:inline-block;user-select:none;flex-shrink:0}.paraui-icon-primary{color:#3666d6}.paraui-icon-secondary{color:#3666d6}.paraui-icon-thirdary{color:#3666d6}.paraui-icon-small{font-size:16px}.paraui-icon-medium{font-size:18px}.paraui-icon-large{font-size:20px}\n",""]),e.exports=n},3645:function(e){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=function(e,n){var t,r,o,a=e[1]||"",i=e[3];if(!i)return a;if(n&&"function"==typeof btoa){var c=(t=i,r=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),s=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[a].concat(s).concat([c]).join("\n")}return[a].join("\n")}(n,e);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);r&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),n.push(s))}},n}},7418:function(e){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,c,s=o(e),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))t.call(i,l)&&(s[l]=i[l]);if(n){c=n(i);for(var f=0;f<c.length;f++)r.call(i,c[f])&&(s[c[f]]=i[c[f]])}}return s}},5251:function(e,n,t){"use strict";
|
|
7
|
+
/** @license React v17.0.2
|
|
8
|
+
* react-jsx-runtime.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/t(7418);var r=t(8156),o=60103;if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),n.Fragment=a("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,n,t){var r,a={},u=null,l=null;for(r in void 0!==t&&(u=""+t),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(l=n.ref),n)c.call(n,r)&&!s.hasOwnProperty(r)&&(a[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===a[r]&&(a[r]=n[r]);return{$$typeof:o,type:e,key:u,ref:l,props:a,_owner:i.current}}n.jsx=u,n.jsxs=u},5893:function(e,n,t){"use strict";e.exports=t(5251)},7856:function(e,n,t){var r=t(3379),o=t(466);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]),r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3379:function(e,n,t){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function c(e){for(var n=-1,t=0;t<i.length;t++)if(i[t].identifier===e){n=t;break}return n}function s(e,n){for(var t={},r=[],o=0;o<e.length;o++){var a=e[o],s=n.base?a[0]+n.base:a[0],u=t[s]||0,l="".concat(s," ").concat(u);t[s]=u+1;var f=c(l),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==f?(i[f].references++,i[f].updater(d)):i.push({identifier:l,updater:h(d,n),references:1}),r.push(l)}return r}function u(e){var n=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=t.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){n.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(n);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}return n}var l,f=(l=[],function(e,n){return l[e]=n,l.filter(Boolean).join("\n")});function d(e,n,t,r){var o=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(n,o);else{var a=document.createTextNode(o),i=e.childNodes;i[n]&&e.removeChild(i[n]),i.length?e.insertBefore(a,i[n]):e.appendChild(a)}}function p(e,n,t){var r=t.css,o=t.media,a=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,m=0;function h(e,n){var t,r,o;if(n.singleton){var a=m++;t=v||(v=u(n)),r=d.bind(null,t,a,!1),o=d.bind(null,t,a,!0)}else t=u(n),r=p.bind(null,t,n),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return r(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else o()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=o());var t=s(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<t.length;r++){var o=c(t[r]);i[o].references--}for(var a=s(e,n),u=0;u<t.length;u++){var l=c(t[u]);0===i[l].references&&(i[l].updater(),i.splice(l,1))}t=a}}}},4939:function(e,n,t){"use strict";var r=t(5893),o=(t(7856),function(){return o=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},o.apply(this,arguments)}),a=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};n.default=function(e){var n,t=e.path,i=e.className,c=e.color,s=void 0===c?"primary":c,u=e.size,l=void 0===u?"small":u,f=e.dataName,d=void 0===f?"":f,p=a(e,["path","className","color","size","dataName"]);return(0,r.jsx)("svg",o({className:(n="paraui-icon",n+=" svg-icon",i&&(n+=" "+i),s&&(n+=" paraui-icon-"+s),l&&(n+=" paraui-icon-"+l),n),viewBox:"0 0 1024 1024","data-name":d},p,{children:t}),void 0)}},8156:function(e){"use strict";e.exports=r}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var a=n[r]={id:r,exports:{}};return e[r](a,a.exports,t),a.exports}t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";t.r(o),t.d(o,{Loading:function(){return a}});var e=t(5893),n=t(4939),r=function(){return r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},r.apply(this,arguments)},a=function(t){return(0,e.jsx)(n.default,r({dataName:"Loading",path:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M511.232 315.861333a42.666667 42.666667 0 0 1-42.666667-42.666666v-142.506667a42.666667 42.666667 0 0 1 85.333334 0v142.506667a42.666667 42.666667 0 0 1-42.666667 42.666666z"},void 0),(0,e.jsx)("path",{d:"M341.418667 386.304a42.666667 42.666667 0 0 1-29.866667-12.373333L209.877333 272.938667a42.666667 42.666667 0 0 1 60.117334-60.544L371.498667 313.173333a42.666667 42.666667 0 0 1-30.08 72.917334z"},void 0),(0,e.jsx)("path",{d:"M271.530667 555.392H128a42.666667 42.666667 0 0 1 0-85.333333h143.530667a42.666667 42.666667 0 0 1 0 85.333333z"},void 0),(0,e.jsx)("path",{d:"M241.024 824.789333a42.666667 42.666667 0 0 1-30.08-72.917333l101.504-100.778667a42.666667 42.666667 0 1 1 60.117333 60.544l-101.504 100.778667a42.410667 42.410667 0 0 1-30.037333 12.373333z"},void 0),(0,e.jsx)("path",{d:"M512.768 935.936a42.666667 42.666667 0 0 1-42.666667-42.666667v-142.506666a42.666667 42.666667 0 0 1 85.333334 0v142.506666a42.666667 42.666667 0 0 1-42.666667 42.666667z"},void 0),(0,e.jsx)("path",{d:"M784.085333 823.722667a42.666667 42.666667 0 0 1-29.866666-12.373334l-101.461334-100.778666a42.666667 42.666667 0 0 1 60.117334-60.544l101.461333 100.736a42.666667 42.666667 0 0 1-29.866667 72.96z"},void 0),(0,e.jsx)("path",{d:"M896 553.898667h-143.530667a42.666667 42.666667 0 0 1 0-85.333334H896a42.666667 42.666667 0 0 1 0 85.333334z"},void 0),(0,e.jsx)("path",{d:"M681.514667 385.28a42.666667 42.666667 0 0 1-29.866667-72.96l101.504-100.778667a42.666667 42.666667 0 1 1 60.117333 60.544l-101.504 100.778667a42.666667 42.666667 0 0 1-30.250666 12.416z"},void 0)]},void 0)},t),void 0)};o.default=a}(),o}())},4674:function(e,n,t){var r;self,e.exports=(r=t(8156),function(){var e={466:function(e,n,t){(n=t(3645)(!1)).push([e.id,".paraui-icon{width:1em;height:1em;fill:currentColor;display:inline-block;user-select:none;flex-shrink:0}.paraui-icon-primary{color:#3666d6}.paraui-icon-secondary{color:#3666d6}.paraui-icon-thirdary{color:#3666d6}.paraui-icon-small{font-size:16px}.paraui-icon-medium{font-size:18px}.paraui-icon-large{font-size:20px}\n",""]),e.exports=n},3645:function(e){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=function(e,n){var t,r,o,a=e[1]||"",i=e[3];if(!i)return a;if(n&&"function"==typeof btoa){var c=(t=i,r=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),s=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[a].concat(s).concat([c]).join("\n")}return[a].join("\n")}(n,e);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);r&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),n.push(s))}},n}},7418:function(e){"use strict";
|
|
15
|
+
/*
|
|
16
|
+
object-assign
|
|
17
|
+
(c) Sindre Sorhus
|
|
18
|
+
@license MIT
|
|
19
|
+
*/var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,c,s=o(e),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))t.call(i,l)&&(s[l]=i[l]);if(n){c=n(i);for(var f=0;f<c.length;f++)r.call(i,c[f])&&(s[c[f]]=i[c[f]])}}return s}},5251:function(e,n,t){"use strict";
|
|
20
|
+
/** @license React v17.0.2
|
|
21
|
+
* react-jsx-runtime.production.min.js
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/t(7418);var r=t(8156),o=60103;if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),n.Fragment=a("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,n,t){var r,a={},u=null,l=null;for(r in void 0!==t&&(u=""+t),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(l=n.ref),n)c.call(n,r)&&!s.hasOwnProperty(r)&&(a[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===a[r]&&(a[r]=n[r]);return{$$typeof:o,type:e,key:u,ref:l,props:a,_owner:i.current}}n.jsx=u},5893:function(e,n,t){"use strict";e.exports=t(5251)},7856:function(e,n,t){var r=t(3379),o=t(466);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]),r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3379:function(e,n,t){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function c(e){for(var n=-1,t=0;t<i.length;t++)if(i[t].identifier===e){n=t;break}return n}function s(e,n){for(var t={},r=[],o=0;o<e.length;o++){var a=e[o],s=n.base?a[0]+n.base:a[0],u=t[s]||0,l="".concat(s," ").concat(u);t[s]=u+1;var f=c(l),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==f?(i[f].references++,i[f].updater(d)):i.push({identifier:l,updater:h(d,n),references:1}),r.push(l)}return r}function u(e){var n=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=t.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){n.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(n);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}return n}var l,f=(l=[],function(e,n){return l[e]=n,l.filter(Boolean).join("\n")});function d(e,n,t,r){var o=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(n,o);else{var a=document.createTextNode(o),i=e.childNodes;i[n]&&e.removeChild(i[n]),i.length?e.insertBefore(a,i[n]):e.appendChild(a)}}function p(e,n,t){var r=t.css,o=t.media,a=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,m=0;function h(e,n){var t,r,o;if(n.singleton){var a=m++;t=v||(v=u(n)),r=d.bind(null,t,a,!1),o=d.bind(null,t,a,!0)}else t=u(n),r=p.bind(null,t,n),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return r(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else o()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=o());var t=s(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<t.length;r++){var o=c(t[r]);i[o].references--}for(var a=s(e,n),u=0;u<t.length;u++){var l=c(t[u]);0===i[l].references&&(i[l].updater(),i.splice(l,1))}t=a}}}},4939:function(e,n,t){"use strict";var r=t(5893),o=(t(7856),function(){return o=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},o.apply(this,arguments)}),a=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};n.default=function(e){var n,t=e.path,i=e.className,c=e.color,s=void 0===c?"primary":c,u=e.size,l=void 0===u?"small":u,f=e.dataName,d=void 0===f?"":f,p=a(e,["path","className","color","size","dataName"]);return(0,r.jsx)("svg",o({className:(n="paraui-icon",n+=" svg-icon",i&&(n+=" "+i),s&&(n+=" paraui-icon-"+s),l&&(n+=" paraui-icon-"+l),n),viewBox:"0 0 1024 1024","data-name":d},p,{children:t}),void 0)}},8156:function(e){"use strict";e.exports=r}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var a=n[r]={id:r,exports:{}};return e[r](a,a.exports,t),a.exports}t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";t.r(o),t.d(o,{Right:function(){return a}});var e=t(5893),n=t(4939),r=function(){return r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},r.apply(this,arguments)},a=function(t){return(0,e.jsx)(n.default,r({dataName:"Right",path:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("path",{d:"M318.506667 813.696a42.368 42.368 0 0 1 12.501333-30.165333l271.488-271.573334-271.488-271.488a42.666667 42.666667 0 1 1 60.330667-60.330666l301.653333 301.653333a42.666667 42.666667 0 0 1 0 60.373333l-301.653333 301.696a42.666667 42.666667 0 0 1-72.832-30.165333z"},void 0)},void 0)},t),void 0)};o.default=a}(),o}())},2788:function(e,n,t){(n=t(3645)(!1)).push([e.id,".cascader input{color:#333;width:560px;padding:6px 12px;overflow:hidden;box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;border-radius:4px;border:1px solid #d9d9d9}.rc-cascader{font-size:12px}.rc-cascader-dropdown-hidden{display:none}.rc-cascader-menus{font-size:12px;overflow:hidden;background:#fff;position:absolute;border:1px solid #d9d9d9;border-radius:4px;box-shadow:0 0 4px rgba(0,0,0,0.17);white-space:nowrap}.rc-cascader-menus.slide-up-enter,.rc-cascader-menus.slide-up-appear{animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;opacity:0;animation-timing-function:cubic-bezier(0.08, 0.82, 0.17, 1);animation-play-state:paused}.rc-cascader-menus.slide-up-leave{animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;opacity:1;animation-timing-function:cubic-bezier(0.6, 0.04, 0.98, 0.34);animation-play-state:paused}.rc-cascader-menus.slide-up-enter.slide-up-enter-active,.rc-cascader-menus-placement-bottomLeft,.rc-cascader-menus.slide-up-appear.slide-up-appear-active,.rc-cascader-menus-placement-bottomLeft{animation-name:SlideUpIn;animation-play-state:running}.rc-cascader-menus.slide-up-enter.slide-up-enter-active,.rc-cascader-menus-placement-topLeft,.rc-cascader-menus.slide-up-appear.slide-up-appear-active,.rc-cascader-menus-placement-topLeft{animation-name:SlideDownIn;animation-play-state:running}.rc-cascader-menus.slide-up-leave.slide-up-leave-active,.rc-cascader-menus-placement-bottomLeft{animation-name:SlideUpOut;animation-play-state:running}.rc-cascader-menus.slide-up-leave.slide-up-leave-active,.rc-cascader-menus-placement-topLeft{animation-name:SlideDownOut;animation-play-state:running}.rc-cascader-menu{display:inline-block;min-width:100px;height:192px;list-style:none;margin:0;padding:0;border-right:1px solid #e9e9e9;overflow:auto}.rc-cascader-menu:last-child{border-right:0}.rc-cascader-menu-item{height:32px;line-height:32px;padding:0 16px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all 0.3s ease;position:relative}.rc-cascader-menu-item:hover{background:#abb0b93b}.rc-cascader-menu-item-disabled{cursor:not-allowed;color:#ccc}.rc-cascader-menu-item-disabled:hover{background:transparent}.rc-cascader-menu-item-active{color:#3666d6}.rc-cascader-menu-item-loading-icon{display:flex;align-items:center;margin-left:10px}.rc-cascader-menu-item-expand{position:relative;display:flex;align-items:center;justify-content:space-between}.rc-cascader-menu-item-expand-icon{font-size:12px;margin-left:10px}.rc-cascader-menu-item-expand-icon SVG{display:flex;align-items:center}.rc-cascader-menu-item-expand-icon SVG path{fill:#999}@keyframes SlideUpIn{0%{opacity:0;transform-origin:0% 0%;transform:scaleY(0.8)}100%{opacity:1;transform-origin:0% 0%;transform:scaleY(1)}}@keyframes SlideUpOut{0%{opacity:1;transform-origin:0% 0%;transform:scaleY(1)}100%{opacity:0;transform-origin:0% 0%;transform:scaleY(0.8)}}@keyframes SlideDownIn{0%{opacity:0;transform-origin:0% 100%;transform:scaleY(0.8)}100%{opacity:1;transform-origin:0% 100%;transform:scaleY(1)}}@keyframes SlideDownOut{0%{opacity:1;transform-origin:0% 100%;transform:scaleY(1)}100%{opacity:0;transform-origin:0% 100%;transform:scaleY(0.8)}}\n",""]),e.exports=n},3645:function(e){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=function(e,n){var t=e[1]||"",r=e[3];if(!r)return t;if(n&&"function"==typeof btoa){var o=(i=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([o]).join("\n")}var i,c,s;return[t].join("\n")}(n,e);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);r&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),n.push(s))}},n}},7418:function(e){"use strict";
|
|
28
|
+
/*
|
|
29
|
+
object-assign
|
|
30
|
+
(c) Sindre Sorhus
|
|
31
|
+
@license MIT
|
|
32
|
+
*/var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,c,s=o(e),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))t.call(i,l)&&(s[l]=i[l]);if(n){c=n(i);for(var f=0;f<c.length;f++)r.call(i,c[f])&&(s[c[f]]=i[c[f]])}}return s}},5251:function(e,n,t){"use strict";
|
|
33
|
+
/** @license React v17.0.2
|
|
34
|
+
* react-jsx-runtime.production.min.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/
|
|
41
|
+
t(7418);var r=t(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),a("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,n,t){var r,a={},u=null,l=null;for(r in void 0!==t&&(u=""+t),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(l=n.ref),n)c.call(n,r)&&!s.hasOwnProperty(r)&&(a[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===a[r]&&(a[r]=n[r]);return{$$typeof:o,type:e,key:u,ref:l,props:a,_owner:i.current}}n.jsx=u},5893:function(e,n,t){"use strict";e.exports=t(5251)},1149:function(e,n,t){var r=t(3379),o=t(2788);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};r(o,a);e.exports=o.locals||{}},3379:function(e,n,t){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function c(e){for(var n=-1,t=0;t<i.length;t++)if(i[t].identifier===e){n=t;break}return n}function s(e,n){for(var t={},r=[],o=0;o<e.length;o++){var a=e[o],s=n.base?a[0]+n.base:a[0],u=t[s]||0,l="".concat(s," ").concat(u);t[s]=u+1;var f=c(l),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==f?(i[f].references++,i[f].updater(d)):i.push({identifier:l,updater:h(d,n),references:1}),r.push(l)}return r}function u(e){var n=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=t.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){n.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(n);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}return n}var l,f=(l=[],function(e,n){return l[e]=n,l.filter(Boolean).join("\n")});function d(e,n,t,r){var o=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(n,o);else{var a=document.createTextNode(o),i=e.childNodes;i[n]&&e.removeChild(i[n]),i.length?e.insertBefore(a,i[n]):e.appendChild(a)}}function p(e,n,t){var r=t.css,o=t.media,a=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,m=0;function h(e,n){var t,r,o;if(n.singleton){var a=m++;t=v||(v=u(n)),r=d.bind(null,t,a,!1),o=d.bind(null,t,a,!0)}else t=u(n),r=p.bind(null,t,n),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return r(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else o()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=o());var t=s(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<t.length;r++){var o=c(t[r]);i[o].references--}for(var a=s(e,n),u=0;u<t.length;u++){var l=c(t[u]);0===i[l].references&&(i[l].updater(),i.splice(l,1))}t=a}}}},3054:function(e,n,t){"use strict";var r=t(8156),o=t.n(r),a=t(5395),i=t.n(a);n.Z=function(e,n){var t=o().useContext(i()).intlFormat;return n.zh_CN=n.zh,n.en_US=n.en,t&&t(e,n)}},5395:function(e){"use strict";e.exports=t},3888:function(e){"use strict";e.exports=n},8156:function(n){"use strict";n.exports=e}},o={};function a(e){var n=o[e];if(void 0!==n)return n.exports;var t=o[e]={id:e,exports:{}};return r[e](t,t.exports,a),t.exports}a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,{a:n}),n},a.d=function(e,n){for(var t in n)a.o(n,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";a.r(i),a.d(i,{Cascader:function(){return h},default:function(){return y}});var e=a(5893),n=a(8156),t=a(3888),r=a.n(t),o=a(4674),c=a.n(o),s=a(7692),u=a.n(s),l=a(3054),f={zh:{placeholder:"请选择"},en:{placeholder:"Please select"}},d=(a(1149),function(){return d=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},d.apply(this,arguments)}),p=function(e,n,t,r){return new(t||(t=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function c(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,c)}s((r=r.apply(e,n||[])).next())}))},v=function(e,n){var t,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=n.call(e,i)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},m=function(e,n,t){if(t||2===arguments.length)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))},h=function(t){var o=t.data,a=t.expandTrigger,i=void 0===a?"click":a,s=t.value,h=void 0===s?[]:s,y=t.onChange,b=t.onDropdownVisibleChange,g=t.changeOnSelect,O=void 0!==g&&g,j=t.expandIcon,x=void 0===j?(0,e.jsx)(c(),{}):j,w=t.expandJoin,S=void 0===w?" , ":w,_=t.fieldNames,C=void 0===_?{label:"label",value:"value",children:"children"}:_,N=t.disabled,P=void 0!==N&&N,k=t.placeholder,E=t.loadData,M=void 0===E?function(){return p(void 0,void 0,void 0,(function(){return v(this,(function(e){return[2]}))}))}:E,T=t.loadingIcon,I=void 0===T?(0,e.jsx)(u(),{}):T,R=(0,l.Z)("Cascader",f),L=(0,n.useState)(o),z=L[0],U=L[1],A=(0,n.useState)(h),D=A[0],F=A[1],q=(0,n.useState)(function(e,n,t){var r=[],o=0;function a(e){for(var t=0;t<e.length;t++)e[t].value===n[o]&&(t===e.length-1?r.push(e[t].label):(o++,r.push(e[t].label),a(e[t].children)));return r}return a(e),r.join(t)}(o,h,S)),B=q[0],Y=q[1],H=(0,n.useCallback)((function(e,n){F(e),Y(n.map((function(e){return e.label})).join(S)),y&&y(e,n)}),[]);return(0,e.jsx)("div",d({className:"cascader"},{children:(0,e.jsx)(r(),d({options:z,onChange:H,changeOnSelect:O,expandTrigger:i,expandIcon:x,fieldNames:C,loadData:function(e){return p(void 0,void 0,void 0,(function(){return v(this,(function(n){switch(n.label){case 0:return[4,M(e)];case 1:return n.sent(),U(m([],o,!0)),[2]}}))}))},loadingIcon:I,onDropdownVisibleChange:b,value:D},{children:(0,e.jsx)("input",{value:B,readOnly:!0,disabled:P,placeholder:k||R({id:"placeholder"})})}))}))};var y=h}(),i}()}));
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/4 15:54
|
|
4
|
+
* @description 复选框
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import { LabelTooltipProps } from '../Label';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export interface CheckboxProps {
|
|
10
|
+
/** 样式class */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** style */
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
/** 标题 */
|
|
15
|
+
label?: ReactNode;
|
|
16
|
+
/** 帮组提示信息 */
|
|
17
|
+
labelTooltip?: LabelTooltipProps;
|
|
18
|
+
/** 大小 */
|
|
19
|
+
size?: 'small' | 'medium' | 'large';
|
|
20
|
+
/** 默认值 有值不受控组件 初始化第一次 */
|
|
21
|
+
defaultChecked?: boolean;
|
|
22
|
+
/** 默认值 有值受控组件*/
|
|
23
|
+
checked?: boolean;
|
|
24
|
+
/** 禁用 */
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/** 半选 */
|
|
27
|
+
indeterminate?: boolean;
|
|
28
|
+
/** inputProps */
|
|
29
|
+
inputProps?: {
|
|
30
|
+
type?: string;
|
|
31
|
+
value?: any;
|
|
32
|
+
checked?: any;
|
|
33
|
+
[name: string]: any;
|
|
34
|
+
};
|
|
35
|
+
/** 改变时间 */
|
|
36
|
+
onChange?: (e: any, checked: boolean) => void;
|
|
37
|
+
[name: string]: any;
|
|
38
|
+
}
|
|
39
|
+
export declare const Checkbox: FunctionComponent<CheckboxProps>;
|
|
40
|
+
export default Checkbox;
|