@para-ui/core 2.1.32 → 2.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +12 -0
- package/README.md +31 -0
- package/babel.config.js +7 -0
- package/docs/App.tsx +277 -0
- package/docs/Router.tsx +79 -0
- package/docs/assets/1.jpeg +0 -0
- package/docs/assets/P.svg +1 -0
- 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 +73 -0
- package/docs/config/router.tsx +212 -0
- package/docs/context/global.tsx +65 -0
- package/docs/index.tsx +42 -0
- package/docs/locale/index.ts +64 -0
- package/docs/locale/lang/en_US.ts +16 -0
- package/docs/locale/lang/zh_CN.ts +16 -0
- package/docs/react-app-env.d.ts +18 -0
- package/docs/services/api.ts +6 -0
- package/docs/styles/index.scss +31 -0
- package/docs/view/autoBox/api.tsx +67 -0
- package/docs/view/autoBox/codeString.tsx +137 -0
- package/docs/view/autoBox/index.scss +15 -0
- package/docs/view/autoBox/index.tsx +97 -0
- package/docs/view/autoTips/api.tsx +49 -0
- package/docs/view/autoTips/codeString.tsx +34 -0
- package/{Tree/utils/closestPolyfill.d.ts → docs/view/autoTips/index.scss} +0 -0
- package/docs/view/autoTips/index.tsx +53 -0
- package/docs/view/breadcrumbs/api.tsx +72 -0
- package/docs/view/breadcrumbs/codeString.tsx +160 -0
- package/docs/view/breadcrumbs/index.scss +14 -0
- package/docs/view/breadcrumbs/index.tsx +173 -0
- package/docs/view/button/api.tsx +131 -0
- package/docs/view/button/codeString.tsx +153 -0
- package/docs/view/button/index.scss +23 -0
- package/docs/view/button/index.tsx +165 -0
- package/docs/view/buttonGroup/api.tsx +55 -0
- package/docs/view/buttonGroup/codeString.tsx +108 -0
- package/docs/view/buttonGroup/index.scss +9 -0
- package/docs/view/buttonGroup/index.tsx +93 -0
- package/docs/view/carousel/api.tsx +165 -0
- package/docs/view/carousel/codeString.tsx +207 -0
- package/docs/view/carousel/index.scss +12 -0
- package/docs/view/carousel/index.tsx +174 -0
- package/docs/view/cascader/api.tsx +116 -0
- package/docs/view/cascader/codeString.tsx +584 -0
- package/docs/view/cascader/index.scss +0 -0
- package/docs/view/cascader/index.tsx +261 -0
- package/docs/view/checkbox/api.tsx +148 -0
- package/docs/view/checkbox/codeString.tsx +215 -0
- package/docs/view/checkbox/index.scss +0 -0
- package/docs/view/checkbox/index.tsx +233 -0
- package/docs/view/collapse/api.tsx +109 -0
- package/docs/view/collapse/codeString.tsx +186 -0
- package/docs/view/collapse/index.scss +0 -0
- package/docs/view/collapse/index.tsx +171 -0
- package/docs/view/colorPicker/api.tsx +30 -0
- package/docs/view/colorPicker/codeString.tsx +58 -0
- package/docs/view/colorPicker/index.scss +5 -0
- package/docs/view/colorPicker/index.tsx +39 -0
- package/docs/view/comboSelect/api.tsx +255 -0
- package/docs/view/comboSelect/codeString.tsx +629 -0
- package/docs/view/comboSelect/index.scss +5 -0
- package/docs/view/comboSelect/index.tsx +402 -0
- package/docs/view/container/api.tsx +61 -0
- package/docs/view/container/codeString.tsx +64 -0
- package/docs/view/container/index.scss +0 -0
- package/docs/view/container/index.tsx +84 -0
- package/docs/view/datePicker/api.tsx +264 -0
- package/docs/view/datePicker/codeString.tsx +185 -0
- package/docs/view/datePicker/index.scss +8 -0
- package/docs/view/datePicker/index.tsx +205 -0
- package/docs/view/drawer/api.tsx +123 -0
- package/docs/view/drawer/codeString.tsx +122 -0
- package/docs/view/drawer/index.scss +5 -0
- package/docs/view/drawer/index.tsx +200 -0
- package/docs/view/empty/api.tsx +57 -0
- package/docs/view/empty/codeString.tsx +38 -0
- package/docs/view/empty/index.scss +11 -0
- package/docs/view/empty/index.tsx +43 -0
- package/docs/view/form/api.tsx +266 -0
- package/docs/view/form/codeString.tsx +203 -0
- package/docs/view/form/index.scss +0 -0
- package/docs/view/form/index.tsx +225 -0
- package/docs/view/help/api.tsx +58 -0
- package/docs/view/help/codeString.tsx +39 -0
- package/docs/view/help/index.scss +5 -0
- package/docs/view/help/index.tsx +40 -0
- package/docs/view/helperText/api.tsx +31 -0
- package/docs/view/helperText/codeString.tsx +16 -0
- package/docs/view/helperText/index.scss +0 -0
- package/docs/view/helperText/index.tsx +33 -0
- package/docs/view/home/index.scss +55 -0
- package/docs/view/home/index.tsx +119 -0
- package/docs/view/icons/index.scss +48 -0
- package/docs/view/icons/index.tsx +87 -0
- package/docs/view/inputLang/api.tsx +99 -0
- package/docs/view/inputLang/codeString.tsx +66 -0
- package/docs/view/inputLang/index.scss +0 -0
- package/docs/view/inputLang/index.tsx +85 -0
- package/docs/view/inputNumber/api.tsx +169 -0
- package/docs/view/inputNumber/codeString.tsx +129 -0
- package/docs/view/inputNumber/index.scss +0 -0
- package/docs/view/inputNumber/index.tsx +141 -0
- package/docs/view/label/api.tsx +63 -0
- package/docs/view/label/codeString.tsx +63 -0
- package/docs/view/label/index.scss +0 -0
- package/docs/view/label/index.tsx +82 -0
- package/docs/view/loading/api.tsx +26 -0
- package/docs/view/loading/codeString.tsx +13 -0
- package/docs/view/loading/index.scss +0 -0
- package/docs/view/loading/index.tsx +38 -0
- package/docs/view/menu/api.tsx +227 -0
- package/docs/view/menu/codeString.tsx +302 -0
- package/docs/view/menu/index.scss +42 -0
- package/docs/view/menu/index.tsx +289 -0
- package/docs/view/message/api.tsx +35 -0
- package/docs/view/message/codeString.tsx +73 -0
- package/docs/view/message/index.scss +7 -0
- package/docs/view/message/index.tsx +64 -0
- package/docs/view/modal/api.tsx +141 -0
- package/docs/view/modal/codeString.tsx +222 -0
- package/docs/view/modal/index.scss +9 -0
- package/docs/view/modal/index.tsx +222 -0
- package/docs/view/multiBox/api.tsx +99 -0
- package/docs/view/multiBox/codeString.tsx +104 -0
- package/docs/view/multiBox/index.scss +0 -0
- package/docs/view/multiBox/index.tsx +123 -0
- package/docs/view/notification/api.tsx +148 -0
- package/docs/view/notification/codeString.tsx +110 -0
- package/docs/view/notification/index.scss +9 -0
- package/docs/view/notification/index.tsx +118 -0
- package/docs/view/operateBtn/api.tsx +127 -0
- package/docs/view/operateBtn/codeString.tsx +165 -0
- package/docs/view/operateBtn/index.scss +0 -0
- package/docs/view/operateBtn/index.tsx +160 -0
- package/docs/view/pageHeader/api.tsx +321 -0
- package/docs/view/pageHeader/codeString.tsx +252 -0
- package/docs/view/pageHeader/index.scss +6 -0
- package/docs/view/pageHeader/index.tsx +291 -0
- package/docs/view/pagination/api.tsx +71 -0
- package/docs/view/pagination/codeString.tsx +45 -0
- package/docs/view/pagination/index.scss +0 -0
- package/docs/view/pagination/index.tsx +54 -0
- package/docs/view/popConfirm/api.tsx +96 -0
- package/docs/view/popConfirm/codeString.tsx +130 -0
- package/docs/view/popConfirm/index.scss +33 -0
- package/docs/view/popConfirm/index.tsx +167 -0
- package/docs/view/popover/api.tsx +80 -0
- package/docs/view/popover/codeString.tsx +40 -0
- package/docs/view/popover/index.scss +4 -0
- package/docs/view/popover/index.tsx +53 -0
- package/docs/view/querying/api.tsx +46 -0
- package/docs/view/querying/codeString.tsx +28 -0
- package/docs/view/querying/index.scss +11 -0
- package/docs/view/querying/index.tsx +35 -0
- package/docs/view/radio/api.tsx +142 -0
- package/docs/view/radio/codeString.tsx +136 -0
- package/docs/view/radio/index.scss +0 -0
- package/docs/view/radio/index.tsx +154 -0
- package/docs/view/search/api.tsx +132 -0
- package/docs/view/search/codeString.tsx +164 -0
- package/docs/view/search/index.scss +0 -0
- package/docs/view/search/index.tsx +142 -0
- package/docs/view/select/api.tsx +195 -0
- package/docs/view/select/codeString.tsx +379 -0
- package/docs/view/select/index.scss +12 -0
- package/docs/view/select/index.tsx +370 -0
- package/docs/view/selectInput/api.tsx +161 -0
- package/docs/view/selectInput/codeString.tsx +171 -0
- package/docs/view/selectInput/index.scss +12 -0
- package/docs/view/selectInput/index.tsx +167 -0
- package/docs/view/singleBox/api.tsx +89 -0
- package/docs/view/singleBox/codeString.tsx +94 -0
- package/docs/view/singleBox/index.scss +0 -0
- package/docs/view/singleBox/index.tsx +111 -0
- package/docs/view/slider/api.tsx +135 -0
- package/docs/view/slider/codeString.tsx +99 -0
- package/docs/view/slider/index.scss +11 -0
- package/docs/view/slider/index.tsx +95 -0
- package/docs/view/stepper/api.tsx +49 -0
- package/docs/view/stepper/codeString.tsx +64 -0
- package/docs/view/stepper/index.scss +3 -0
- package/docs/view/stepper/index.tsx +57 -0
- package/docs/view/switch/api.tsx +70 -0
- package/docs/view/switch/codeString.tsx +48 -0
- package/docs/view/switch/index.scss +16 -0
- package/docs/view/switch/index.tsx +50 -0
- package/docs/view/table/api.tsx +330 -0
- package/docs/view/table/codeString.tsx +737 -0
- package/docs/view/table/index.scss +0 -0
- package/docs/view/table/index.tsx +549 -0
- package/docs/view/tabs/api.tsx +106 -0
- package/docs/view/tabs/codeString.tsx +243 -0
- package/docs/view/tabs/index.scss +5 -0
- package/docs/view/tabs/index.tsx +132 -0
- package/docs/view/tag/api.tsx +119 -0
- package/docs/view/tag/codeString.tsx +95 -0
- package/docs/view/tag/index.scss +5 -0
- package/docs/view/tag/index.tsx +91 -0
- package/docs/view/textField/api.tsx +229 -0
- package/docs/view/textField/codeString.tsx +251 -0
- package/docs/view/textField/index.scss +3 -0
- package/docs/view/textField/index.tsx +327 -0
- package/docs/view/timeLine/api.tsx +43 -0
- package/docs/view/timeLine/codeString.tsx +85 -0
- package/docs/view/timeLine/index.scss +5 -0
- package/docs/view/timeLine/index.tsx +73 -0
- package/docs/view/timePicker/api.tsx +178 -0
- package/docs/view/timePicker/codeString.tsx +66 -0
- package/docs/view/timePicker/index.scss +8 -0
- package/docs/view/timePicker/index.tsx +75 -0
- package/docs/view/toggleButton/api.tsx +100 -0
- package/docs/view/toggleButton/codeString.tsx +152 -0
- package/docs/view/toggleButton/index.scss +5 -0
- package/docs/view/toggleButton/index.tsx +108 -0
- package/docs/view/toolTip/api.tsx +96 -0
- package/docs/view/toolTip/codeString.tsx +42 -0
- package/docs/view/toolTip/index.scss +5 -0
- package/docs/view/toolTip/index.tsx +44 -0
- package/docs/view/transfer/api.tsx +33 -0
- package/docs/view/transfer/codeString.tsx +44 -0
- package/docs/view/transfer/index.scss +0 -0
- package/docs/view/transfer/index.tsx +59 -0
- package/docs/view/tree/api.tsx +413 -0
- package/docs/view/tree/codeString.tsx +437 -0
- package/docs/view/tree/index.scss +5 -0
- package/docs/view/tree/index.tsx +362 -0
- package/docs/view/upload/api.tsx +302 -0
- package/docs/view/upload/codeString.tsx +248 -0
- package/docs/view/upload/index.scss +7 -0
- package/docs/view/upload/index.tsx +207 -0
- package/package.json +1 -1
- package/publish.sh +5 -0
- package/run.js +43 -0
- package/scripts/extract-css.js +9 -0
- package/temp/main.js +1103 -0
- package/{style.css → temp/style.css} +5 -5
- package/tsconfig.json +40 -0
- package/webpack.cdn.config.js +81 -0
- package/webpack.config.js +249 -0
- package/webpack.extract.css.js +86 -0
- package/AutoBox/index.d.ts +0 -34
- package/AutoBox/index.js +0 -28
- package/AutoTips/index.d.ts +0 -25
- package/AutoTips/index.js +0 -15
- package/Breadcrumbs/index.d.ts +0 -39
- package/Breadcrumbs/index.js +0 -28
- package/Button/SplitButton.d.ts +0 -56
- package/Button/index.d.ts +0 -56
- package/Button/index.js +0 -53
- package/Button/lang/en_US.d.ts +0 -4
- package/Button/lang/index.d.ts +0 -9
- package/Button/lang/zh_CN.d.ts +0 -4
- package/ButtonGroup/index.d.ts +0 -33
- package/ButtonGroup/index.js +0 -53
- package/Carousel/index.d.ts +0 -30
- package/Carousel/index.js +0 -15
- package/Cascader/index.d.ts +0 -52
- package/Cascader/index.js +0 -41
- package/Cascader/lang/en_US.d.ts +0 -4
- package/Cascader/lang/index.d.ts +0 -9
- package/Cascader/lang/zh_CN.d.ts +0 -4
- package/Checkbox/index.d.ts +0 -40
- package/Checkbox/index.js +0 -27
- package/CheckboxGroup/index.d.ts +0 -46
- package/CheckboxGroup/index.js +0 -27
- package/Collapse/collapsePanel.d.ts +0 -30
- package/Collapse/index.d.ts +0 -57
- package/Collapse/index.js +0 -28
- package/Collapse/motion.d.ts +0 -5
- package/Collapse/util.d.ts +0 -11
- package/ColorPicker/index.d.ts +0 -4
- package/ColorPicker/index.js +0 -1
- package/ComBox/index.d.ts +0 -16
- package/ComBox/index.js +0 -16
- package/ComBox/interface.d.ts +0 -5
- package/ComboSelect/WithTabsCombo/index.d.ts +0 -11
- package/ComboSelect/WithTabsCombo/interface.d.ts +0 -141
- package/ComboSelect/index.d.ts +0 -11
- package/ComboSelect/index.js +0 -391
- package/ComboSelect/interface.d.ts +0 -139
- package/ComboSelect/lang/en_US.d.ts +0 -8
- package/ComboSelect/lang/index.d.ts +0 -17
- package/ComboSelect/lang/zh_CN.d.ts +0 -8
- package/ComboSelect/utils.d.ts +0 -13
- package/Container/index.d.ts +0 -77
- package/Container/index.js +0 -15
- package/DatePicker/PickerButton.d.ts +0 -3
- package/DatePicker/PickerTag.d.ts +0 -3
- package/DatePicker/generatePicker/generateRangePicker.d.ts +0 -4
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +0 -11
- package/DatePicker/generatePicker/index.d.ts +0 -77
- package/DatePicker/index.d.ts +0 -18
- package/DatePicker/index.js +0 -144
- package/DatePicker/lang/en_US.d.ts +0 -3
- package/DatePicker/lang/index.d.ts +0 -7
- package/DatePicker/lang/zh_CN.d.ts +0 -3
- package/DatePicker/util.d.ts +0 -20
- package/Desktop/index.d.ts +0 -55
- package/Desktop/index.js +0 -14
- package/Drawer/index.d.ts +0 -11
- package/Drawer/index.js +0 -53
- package/Drawer/interface.d.ts +0 -78
- package/Drawer/lang/en_US.d.ts +0 -5
- package/Drawer/lang/index.d.ts +0 -11
- package/Drawer/lang/zh_CN.d.ts +0 -5
- package/Empty/images/index.d.ts +0 -2
- package/Empty/index.d.ts +0 -29
- package/Empty/index.js +0 -14
- package/Empty/lang/en_US.d.ts +0 -6
- package/Empty/lang/index.d.ts +0 -13
- package/Empty/lang/zh_CN.d.ts +0 -6
- package/Form/index.d.ts +0 -154
- package/Form/index.js +0 -209
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +0 -8
- package/FormItem/compoments/formFile/index.d.ts +0 -38
- package/FormItem/compoments/formRadioGroup/index.d.ts +0 -8
- package/FormItem/compoments/formSelect/index.d.ts +0 -18
- package/FormItem/errorTips.d.ts +0 -10
- package/FormItem/index.d.ts +0 -130
- package/FormItem/index.js +0 -209
- package/FormItem/itemType.d.ts +0 -42
- package/FormItem/validateFunction.d.ts +0 -15
- package/FunctionModal/dialog.d.ts +0 -58
- package/FunctionModal/index.d.ts +0 -8
- package/FunctionModal/index.js +0 -118
- package/FunctionModal/modalContext.d.ts +0 -14
- package/GlobalContext/componentsProps.d.ts +0 -15
- package/GlobalContext/confirmLocale.d.ts +0 -7
- package/GlobalContext/index.d.ts +0 -28
- package/GlobalContext/index.js +0 -16
- package/GlobalContext/intl.d.ts +0 -34
- package/GlobalContext/useFormatMessage.d.ts +0 -3
- package/Help/index.d.ts +0 -20
- package/Help/index.js +0 -28
- package/HelperText/index.d.ts +0 -19
- package/HelperText/index.js +0 -15
- package/InputLang/index.d.ts +0 -49
- package/InputLang/index.js +0 -118
- package/InputNumber/index.d.ts +0 -74
- package/InputNumber/index.js +0 -79
- package/Label/index.d.ts +0 -35
- package/Label/index.js +0 -27
- package/Loading/index.d.ts +0 -17
- package/Loading/index.js +0 -28
- package/Menu/footerExpansion.d.ts +0 -9
- package/Menu/index.d.ts +0 -10
- package/Menu/index.js +0 -53
- package/Menu/interface.d.ts +0 -137
- package/Menu/logo.d.ts +0 -9
- package/Menu/verticalMenuList.d.ts +0 -14
- package/Message/index.d.ts +0 -59
- package/Message/index.js +0 -67
- package/Modal/Confirm/index.d.ts +0 -62
- package/Modal/index.d.ts +0 -61
- package/Modal/index.js +0 -118
- package/Modal/lang/en_US.d.ts +0 -5
- package/Modal/lang/index.d.ts +0 -11
- package/Modal/lang/zh_CN.d.ts +0 -5
- package/MultiBox/index.d.ts +0 -54
- package/MultiBox/index.js +0 -105
- package/Notification/index.d.ts +0 -52
- package/Notification/index.js +0 -67
- package/OperateBtn/index.d.ts +0 -59
- package/OperateBtn/index.js +0 -66
- package/OperateBtn/lang/en_US.d.ts +0 -4
- package/OperateBtn/lang/index.d.ts +0 -9
- package/OperateBtn/lang/zh_CN.d.ts +0 -4
- package/PageHeader/horizontalMeun.d.ts +0 -9
- package/PageHeader/horizontalMeunRight.d.ts +0 -9
- package/PageHeader/index.d.ts +0 -10
- package/PageHeader/index.js +0 -66
- package/PageHeader/interface.d.ts +0 -167
- package/Pagination/index.d.ts +0 -33
- package/Pagination/index.js +0 -183
- package/Pagination/lang/en_US.d.ts +0 -8
- package/Pagination/lang/index.d.ts +0 -17
- package/Pagination/lang/zh_CN.d.ts +0 -8
- package/ParauiProvider/index.d.ts +0 -12
- package/ParauiProvider/index.js +0 -15
- package/PopConfirm/index.d.ts +0 -50
- package/PopConfirm/index.js +0 -105
- package/PopConfirm/lang/en_US.d.ts +0 -5
- package/PopConfirm/lang/index.d.ts +0 -11
- package/PopConfirm/lang/zh_CN.d.ts +0 -5
- package/Popover/index.d.ts +0 -14
- package/Popover/index.js +0 -15
- package/Popper/index.d.ts +0 -13
- package/Popper/index.js +0 -16
- package/Querying/images/index.d.ts +0 -2
- package/Querying/index.d.ts +0 -25
- package/Querying/index.js +0 -14
- package/Querying/lang/en_US.d.ts +0 -4
- package/Querying/lang/index.d.ts +0 -9
- package/Querying/lang/zh_CN.d.ts +0 -4
- package/Radio/index.d.ts +0 -38
- package/Radio/index.js +0 -27
- package/RadioGroup/index.d.ts +0 -47
- package/RadioGroup/index.js +0 -27
- package/Search/index.d.ts +0 -56
- package/Search/index.js +0 -118
- package/Select/index.d.ts +0 -85
- package/Select/index.js +0 -105
- package/Select/lang/en_US.d.ts +0 -5
- package/Select/lang/index.d.ts +0 -11
- package/Select/lang/zh_CN.d.ts +0 -5
- package/Select/selectCom.d.ts +0 -11
- package/SelectInput/index.d.ts +0 -11
- package/SelectInput/index.js +0 -105
- package/SingleBox/index.d.ts +0 -42
- package/SingleBox/index.js +0 -105
- package/Slider/index.d.ts +0 -14
- package/Slider/index.js +0 -15
- package/Slider/interface.d.ts +0 -102
- package/Split/index.d.ts +0 -7
- package/Split/index.js +0 -15
- package/Stepper/icons.d.ts +0 -5
- package/Stepper/index.d.ts +0 -39
- package/Stepper/index.js +0 -145
- package/Switch/index.d.ts +0 -78
- package/Switch/index.js +0 -40
- package/Table/index.d.ts +0 -9
- package/Table/index.js +0 -261
- package/Table/interface.d.ts +0 -200
- package/Table/lang/en_US.d.ts +0 -6
- package/Table/lang/index.d.ts +0 -13
- package/Table/lang/zh_CN.d.ts +0 -6
- package/Table/tableBody.d.ts +0 -9
- package/Table/tableBodyElement/index.d.ts +0 -15
- package/Table/tableBodyInterface.d.ts +0 -67
- package/Table/tableCom.d.ts +0 -11
- package/Table/tableContainer/index.d.ts +0 -16
- package/Table/tableElement/index.d.ts +0 -17
- package/Table/tableHead.d.ts +0 -9
- package/Table/tableHeadElement/index.d.ts +0 -15
- package/Table/tableHeadInterface.d.ts +0 -30
- package/Table/tablePagination.d.ts +0 -9
- package/Table/tablePaginationInterFace.d.ts +0 -24
- package/Table/tdElement/index.d.ts +0 -15
- package/Table/thElement/index.d.ts +0 -15
- package/Table/trElement/index.d.ts +0 -15
- package/Table/util.d.ts +0 -16
- package/Tabs/index.d.ts +0 -48
- package/Tabs/index.js +0 -131
- package/Tag/TagGroup.d.ts +0 -66
- package/Tag/index.d.ts +0 -34
- package/Tag/index.js +0 -40
- package/TextField/index.d.ts +0 -93
- package/TextField/index.js +0 -79
- package/TextField/textFieldCom.d.ts +0 -11
- package/TimePicker/index.d.ts +0 -22
- package/TimePicker/index.js +0 -144
- package/TimePicker/locale/en_US.d.ts +0 -3
- package/TimePicker/locale/zh_CN.d.ts +0 -3
- package/TimePicker/style/index.d.ts +0 -1
- package/Timeline/index.d.ts +0 -22
- package/Timeline/index.js +0 -15
- package/ToggleButton/ToggleButtonGroup.d.ts +0 -45
- package/ToggleButton/index.d.ts +0 -49
- package/ToggleButton/index.js +0 -53
- package/Tooltip/index.d.ts +0 -11
- package/Tooltip/index.js +0 -15
- package/Transfer/index.d.ts +0 -17
- package/Transfer/index.js +0 -144
- package/Transfer/lang/en_US.d.ts +0 -6
- package/Transfer/lang/index.d.ts +0 -13
- package/Transfer/lang/zh_CN.d.ts +0 -6
- package/Tree/OperateBar/index.d.ts +0 -13
- package/Tree/Tree.d.ts +0 -4
- package/Tree/index.d.ts +0 -5
- package/Tree/index.js +0 -131
- package/Tree/interface.d.ts +0 -201
- package/Tree/lang/en_US.d.ts +0 -8
- package/Tree/lang/index.d.ts +0 -17
- package/Tree/lang/zh_CN.d.ts +0 -8
- package/Tree/utils/tools.d.ts +0 -26
- package/Tree/utils/treeUtil.d.ts +0 -15
- package/Upload/Dragger/index.d.ts +0 -10
- package/Upload/ErroTip/index.d.ts +0 -13
- package/Upload/ImageUpload/index.d.ts +0 -14
- package/Upload/ImgCrop/EasyCrop.d.ts +0 -17
- package/Upload/ImgCrop/constants.d.ts +0 -7
- package/Upload/ImgCrop/index.d.ts +0 -6
- package/Upload/ImgCrop/interface.d.ts +0 -24
- package/Upload/UploadList/index.d.ts +0 -5
- package/Upload/index.d.ts +0 -15
- package/Upload/index.js +0 -196
- package/Upload/interface.d.ts +0 -134
- package/Upload/lang/en_US.d.ts +0 -12
- package/Upload/lang/index.d.ts +0 -25
- package/Upload/lang/zh_CN.d.ts +0 -12
- package/cdn/AutoBox/index.js +0 -29
- package/cdn/AutoTips/index.js +0 -40
- package/cdn/Breadcrumbs/index.js +0 -53
- package/cdn/Button/index.js +0 -79
- package/cdn/ButtonGroup/index.js +0 -79
- package/cdn/Carousel/index.js +0 -6
- package/cdn/Cascader/index.js +0 -40
- package/cdn/Checkbox/index.js +0 -53
- package/cdn/CheckboxGroup/index.js +0 -53
- package/cdn/Collapse/index.js +0 -27
- package/cdn/ColorPicker/index.js +0 -1
- package/cdn/ComBox/index.js +0 -1
- package/cdn/ComboSelect/index.js +0 -438
- package/cdn/Container/index.js +0 -1
- package/cdn/DatePicker/index.js +0 -183
- package/cdn/Desktop/index.js +0 -24
- package/cdn/Drawer/index.js +0 -84
- package/cdn/Empty/index.js +0 -1
- package/cdn/Form/index.js +0 -248
- package/cdn/FormItem/index.js +0 -248
- package/cdn/FunctionModal/index.js +0 -144
- package/cdn/GlobalContext/index.js +0 -1
- package/cdn/Help/index.js +0 -53
- package/cdn/HelperText/index.js +0 -1
- package/cdn/InputLang/index.js +0 -144
- package/cdn/InputNumber/index.js +0 -118
- package/cdn/Label/index.js +0 -53
- package/cdn/Loading/index.js +0 -14
- package/cdn/Menu/index.js +0 -55
- package/cdn/Message/index.js +0 -53
- package/cdn/Modal/index.js +0 -144
- package/cdn/MultiBox/index.js +0 -131
- package/cdn/Notification/index.js +0 -66
- package/cdn/OperateBtn/index.js +0 -92
- package/cdn/PageHeader/index.js +0 -92
- package/cdn/Pagination/index.js +0 -214
- package/cdn/ParauiProvider/index.js +0 -9
- package/cdn/PopConfirm/index.js +0 -131
- package/cdn/Popover/index.js +0 -16
- package/cdn/Popper/index.js +0 -26
- package/cdn/Querying/index.js +0 -1
- package/cdn/Radio/index.js +0 -53
- package/cdn/RadioGroup/index.js +0 -53
- package/cdn/Search/index.js +0 -144
- package/cdn/Select/index.js +0 -131
- package/cdn/SelectInput/index.js +0 -131
- package/cdn/SingleBox/index.js +0 -131
- package/cdn/Slider/index.js +0 -14
- package/cdn/Split/index.js +0 -1
- package/cdn/Stepper/index.js +0 -154
- package/cdn/Switch/index.js +0 -71
- package/cdn/Table/index.js +0 -292
- package/cdn/Tabs/index.js +0 -165
- package/cdn/Tag/index.js +0 -27
- package/cdn/TextField/index.js +0 -105
- package/cdn/TimePicker/index.js +0 -183
- package/cdn/Timeline/index.js +0 -16
- package/cdn/ToggleButton/index.js +0 -79
- package/cdn/Tooltip/index.js +0 -40
- package/cdn/Transfer/index.js +0 -170
- package/cdn/Tree/index.js +0 -170
- package/cdn/Upload/index.js +0 -249
- package/index.d.ts +0 -124
- package/index.js +0 -690
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
const fs = require('fs-extra');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const TerserPlugin = require('terser-webpack-plugin');
|
|
4
|
+
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
5
|
+
const packagePath = path.join(__dirname, 'src');
|
|
6
|
+
const packageList = fs.readdirSync(packagePath);
|
|
7
|
+
const outPath = path.join(__dirname, 'temp');
|
|
8
|
+
let indexExport = '';
|
|
9
|
+
packageList.forEach(packageName => {
|
|
10
|
+
const packageIndex = path.join(packagePath, packageName, 'index.tsx');
|
|
11
|
+
const exists = fs.existsSync(packageIndex);
|
|
12
|
+
if (!exists) return true;
|
|
13
|
+
indexExport += `export * from './${packageName}';\n\n`;
|
|
14
|
+
});
|
|
15
|
+
fs.outputFile(path.join(packagePath, 'index.ts'), indexExport);
|
|
16
|
+
fs.removeSync(outPath);
|
|
17
|
+
|
|
18
|
+
module.exports = {
|
|
19
|
+
mode: 'production',
|
|
20
|
+
entry: './src/index.ts',
|
|
21
|
+
output: {
|
|
22
|
+
filename: `[name].js`,
|
|
23
|
+
path: outPath,
|
|
24
|
+
library: {
|
|
25
|
+
type: 'umd',
|
|
26
|
+
name: 'ParaUI'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
plugins: [
|
|
30
|
+
new MiniCssExtractPlugin({
|
|
31
|
+
filename: "[name].css"
|
|
32
|
+
})
|
|
33
|
+
],
|
|
34
|
+
module: {
|
|
35
|
+
rules: [
|
|
36
|
+
{
|
|
37
|
+
test: /\.(ts|tsx)?$/,
|
|
38
|
+
use: [
|
|
39
|
+
{
|
|
40
|
+
loader: 'ts-loader',
|
|
41
|
+
options: {
|
|
42
|
+
transpileOnly: true
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
exclude: /node_modules/
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
test: /\.(css|sass|scss)$/,
|
|
50
|
+
use: [
|
|
51
|
+
MiniCssExtractPlugin.loader,
|
|
52
|
+
'css-loader',
|
|
53
|
+
'sass-loader'
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
exclude: [/\.(js|mjs|jsx|ts|tsx|vue|sass|scss|css|html|json)$/],
|
|
58
|
+
type: 'asset/resource'
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
resolve: {
|
|
63
|
+
extensions: ['.tsx', '.ts', '.js'],
|
|
64
|
+
alias: {
|
|
65
|
+
'@': path.join(__dirname, 'src')
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
optimization: {
|
|
69
|
+
minimize: true,
|
|
70
|
+
minimizer: [
|
|
71
|
+
new TerserPlugin({
|
|
72
|
+
extractComments: false//不将注释提取到单独的文件中
|
|
73
|
+
})
|
|
74
|
+
],
|
|
75
|
+
splitChunks: {
|
|
76
|
+
cacheGroups: {
|
|
77
|
+
styles: {
|
|
78
|
+
name: "style",
|
|
79
|
+
type: "css/mini-extract",
|
|
80
|
+
chunks: "all",
|
|
81
|
+
enforce: true
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
package/AutoBox/index.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/9 16:16
|
|
4
|
-
* @description 超出自适应盒子
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface AutoBoxProps {
|
|
9
|
-
/** 样式class */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** style */
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
/** list选项 */
|
|
14
|
-
list?: any[];
|
|
15
|
-
/** 指定渲染几项,存在这个参数,则不自适应 */
|
|
16
|
-
showNum?: number;
|
|
17
|
-
/** 下拉框样式 */
|
|
18
|
-
popoverClassName?: string;
|
|
19
|
-
/** 自定义更多内容 */
|
|
20
|
-
moreCustomize?: ReactNode;
|
|
21
|
-
/** 隐藏更多按钮 */
|
|
22
|
-
hideMore?: boolean;
|
|
23
|
-
/** 打开下拉框 */
|
|
24
|
-
openMore?: boolean;
|
|
25
|
-
/** 定位元素 */
|
|
26
|
-
anchorEl?: any;
|
|
27
|
-
/** 关闭弹窗 */
|
|
28
|
-
onCloseMore?: () => void;
|
|
29
|
-
/** 显示更多 */
|
|
30
|
-
onShowMore?: (bol: boolean) => void;
|
|
31
|
-
[name: string]: any;
|
|
32
|
-
}
|
|
33
|
-
export declare const AutoBox: FunctionComponent<AutoBoxProps>;
|
|
34
|
-
export default AutoBox;
|
package/AutoBox/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@material-ui/core"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@paraview/lib"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@material-ui/core"),require("@paraview/lib")):e.ParaUI=t(e.react,e["@material-ui/core"],e["@paraview/lib"])}(self,(function(e,t,r){return function(){var n={2950:function(e,t,r){var n;self,e.exports=(n=r(8156),function(){var e={466:function(e,t,r){(t=r(3645)(!1)).push([e.id,".paraui-icon{width:1em;height:1em;fill:currentColor;display:inline-block;user-select:none;flex-shrink:0}.paraui-icon-primary{color:#3666d6}.paraui-icon-secondary{color:#3666d6}.paraui-icon-thirdary{color:#3666d6}.paraui-icon-small{font-size:16px}.paraui-icon-medium{font-size:18px}.paraui-icon-large{font-size:20px}\n",""]),e.exports=t},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r,n,o,i=e[1]||"",a=e[3];if(!a)return i;if(t&&"function"==typeof btoa){var c=(r=a,n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(o," */")),u=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(u).concat([c]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&o[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),t.push(u))}},t}},7418:function(e){"use strict";
|
|
2
|
-
/*
|
|
3
|
-
object-assign
|
|
4
|
-
(c) Sindre Sorhus
|
|
5
|
-
@license MIT
|
|
6
|
-
*/var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,u=o(e),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))r.call(a,l)&&(u[l]=a[l]);if(t){c=t(a);for(var f=0;f<c.length;f++)n.call(a,c[f])&&(u[c[f]]=a[c[f]])}}return u}},5251:function(e,t,r){"use strict";
|
|
7
|
-
/** @license React v17.0.2
|
|
8
|
-
* react-jsx-runtime.production.min.js
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/r(7418);var n=r(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,i={},s=null,l=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:s,ref:l,props:i,_owner:a.current}}t.jsx=s,t.jsxs=s},5893:function(e,t,r){"use strict";e.exports=r(5251)},7856:function(e,t,r){var n=r(3379),o=r(466);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]),n(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3379:function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function c(e){for(var t=-1,r=0;r<a.length;r++)if(a[r].identifier===e){t=r;break}return t}function u(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=r[u]||0,l="".concat(u," ").concat(s);r[u]=s+1;var f=c(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:m(p,t),references:1}),n.push(l)}return n}function s(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,h=0;function m(e,t){var r,n,o;if(t.singleton){var i=h++;r=v||(v=s(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else r=s(t),n=d.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=c(r[n]);a[o].references--}for(var i=u(e,t),s=0;s<r.length;s++){var l=c(r[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}r=i}}}},4939:function(e,t,r){"use strict";var n=r(5893),o=(r(7856),function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)}),i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};t.default=function(e){var t,r=e.path,a=e.className,c=e.color,u=void 0===c?"primary":c,s=e.size,l=void 0===s?"small":s,f=e.dataName,p=void 0===f?"":f,d=i(e,["path","className","color","size","dataName"]);return(0,n.jsx)("svg",o({className:(t="paraui-icon",t+=" svg-icon",a&&(t+=" "+a),u&&(t+=" paraui-icon-"+u),l&&(t+=" paraui-icon-"+l),t),viewBox:"0 0 1024 1024","data-name":p},d,{children:r}),void 0)}},8156:function(e){"use strict";e.exports=n}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.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";r.r(o),r.d(o,{More:function(){return i}});var e=r(5893),t=r(4939),n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},i=function(r){return(0,e.jsx)(t.default,n({dataName:"More",path:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M298.666667 490.666667A64 64 0 1 1 234.666667 426.666667 64 64 0 0 1 298.666667 490.666667"},void 0),(0,e.jsx)("path",{d:"M568.96 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"},void 0),(0,e.jsx)("path",{d:"M839.253333 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"},void 0)]},void 0)},r),void 0)};o.default=i}(),o}())},7388:function(e,t,r){(t=r(3645)(!1)).push([e.id,".paraui-auto-box{width:100%;white-space:nowrap;overflow:hidden}.paraui-auto-box>.auto-box-more{display:inline-block;height:100%;cursor:pointer}.paraui-auto-box-popover .auto-box-popover-content{display:flex;flex-direction:column}\n",""]),e.exports=t},5845:function(e,t,r){(t=r(3645)(!1)).push([e.id,".paraui-popover-paper{box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4)}\n",""]),e.exports=t},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var o=(a=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(i).concat([o]).join("\n")}var a,c,u;return[r].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&o[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),t.push(u))}},t}},7418:function(e){"use strict";
|
|
15
|
-
/*
|
|
16
|
-
object-assign
|
|
17
|
-
(c) Sindre Sorhus
|
|
18
|
-
@license MIT
|
|
19
|
-
*/var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,u=o(e),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))r.call(a,l)&&(u[l]=a[l]);if(t){c=t(a);for(var f=0;f<c.length;f++)n.call(a,c[f])&&(u[c[f]]=a[c[f]])}}return u}},5251:function(e,t,r){"use strict";
|
|
20
|
-
/** @license React v17.0.2
|
|
21
|
-
* react-jsx-runtime.production.min.js
|
|
22
|
-
*
|
|
23
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the MIT license found in the
|
|
26
|
-
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/
|
|
28
|
-
r(7418);var n=r(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,i={},s=null,l=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:s,ref:l,props:i,_owner:a.current}}t.jsx=s,t.jsxs=s},5893:function(e,t,r){"use strict";e.exports=r(5251)},1519:function(e,t,r){var n=r(3379),o=r(7388);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},8939:function(e,t,r){var n=r(3379),o=r(5845);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},3379:function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function c(e){for(var t=-1,r=0;r<a.length;r++)if(a[r].identifier===e){t=r;break}return t}function u(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=r[u]||0,l="".concat(u," ").concat(s);r[u]=s+1;var f=c(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:m(p,t),references:1}),n.push(l)}return n}function s(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,h=0;function m(e,t){var r,n,o;if(t.singleton){var i=h++;r=v||(v=s(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else r=s(t),n=d.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=c(r[n]);a[o].references--}for(var i=u(e,t),s=0;s<r.length;s++){var l=c(r[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}r=i}}}},7083:function(e,t,r){"use strict";var n=r(5893),o=r(670),i=(r(8939),function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)}),a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};t.default=function(e){var t,r=e.className,c=e.children,u=e.classes,s=a(e,["className","children","classes"]);return(0,n.jsx)(o.Popover,i({className:(t="paraui-popover",r&&(t+=" "+r),t),classes:{paper:u?"paraui-popover-paper ".concat(u):"paraui-popover-paper"}},s,{children:c}))}},670:function(e){"use strict";e.exports=t},8543:function(e){"use strict";e.exports=r},8156:function(t){"use strict";t.exports=e}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,exports:{}};return n[e](r,r.exports,i),r.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";i.r(a),i.d(a,{AutoBox:function(){return s}});var e=i(5893),t=i(8156),r=i(7083),n=i(2950),o=i.n(n),c=i(8543),u=(i(1519),function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)}),s=function(n){var i=n.className,a=n.list,s=void 0===a?[]:a,l=n.popoverClassName,f=n.moreCustomize,p=n.anchorEl,d=n.hideMore,v=void 0!==d&&d,h=n.showNum,m=n.onCloseMore,b=n.onShowMore,y=n.style,g=(0,t.useState)("auto-box-"+(0,c.UUID)())[0],O=(0,t.useState)(null),j=O[0],x=O[1],w=(0,t.useState)(!1),S=w[0],_=w[1],N=(0,t.useState)(null),E=N[0],M=N[1],P=(0,t.useState)({})[0],C=(0,t.useRef)();(0,t.useEffect)((function(){void 0!==n.openMore&&_(n.openMore)}),[n.openMore]),(0,t.useEffect)((function(){p&&M(p)}),[p]),(0,t.useEffect)((function(){if(void 0===n.showNum)return L(),window.addEventListener("resize",L),function(){window.removeEventListener("resize",L),clearTimeout(P.timer)}}),[s]),(0,t.useEffect)((function(){void 0!==h&&(x(h),window.removeEventListener("resize",L))}),[h]),(0,t.useEffect)((function(){null!==j&&s.length>j?b&&b(!0):b&&b(!1)}),[s,j,b]);var T,R=function(){_(!1),m&&m()},k=function(e){_(!0),M(C.current)},I=function(e){if(null!==e&&0!==e){void 0===e&&(e=s.length);var t=document.querySelector("."+g);if(t)if(t.scrollWidth>t.clientWidth){var r=Number(e)-1;x(r),I(r)}else s.length<=e&&R()}},L=function(){clearTimeout(P.timer),R(),P.timer=setTimeout((function(){x(s.length),I()}),100)},U=(0,t.useMemo)((function(){return S&&(0,e.jsx)(r.default,u({open:S,anchorEl:E,onClose:R,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:(n="auto-box-popover paraui-auto-box-popover",l&&(n+=" "+l),n)},{children:(0,e.jsx)("div",u({className:"auto-box-popover-content"},{children:s&&s.map((function(r,n){return null!==j&&j>n?null:(0,e.jsx)(t.Fragment,{children:r},n)}))}))}));var n}),[S,E,s,j,l]);return(0,e.jsxs)("div",u({className:(T="auto-box paraui-auto-box",g&&(T+=" "+g),i&&(T+=" "+i),T),style:y},{children:[s.map((function(r,n){return null!==j&&j<=n?null:(0,e.jsx)(t.Fragment,{children:r},n)})),function(){if(null!==j&&s.length>j&&!v)return(0,e.jsx)("div",u({className:"auto-box-more",ref:C,onClick:k},{children:f||(0,e.jsx)(o(),{})}))}(),U]}))};a.default=s}(),a}()}));
|
package/AutoTips/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/9 15:15
|
|
4
|
-
* @description 超出...
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from 'react';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface AutoTipsProps {
|
|
9
|
-
/** 样式class */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** style */
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
/** 超出显示的内容 */
|
|
14
|
-
tips?: React.ReactNode;
|
|
15
|
-
/** 文字下拉提示箭头 */
|
|
16
|
-
arrow?: boolean;
|
|
17
|
-
/** 显示文字还是元素 */
|
|
18
|
-
beyondText?: boolean;
|
|
19
|
-
/** 定位方向 */
|
|
20
|
-
placement?: "top-start" | "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top" | undefined;
|
|
21
|
-
children?: any;
|
|
22
|
-
[name: string]: any;
|
|
23
|
-
}
|
|
24
|
-
declare const AutoTips: FunctionComponent<AutoTipsProps>;
|
|
25
|
-
export default AutoTips;
|
package/AutoTips/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@material-ui/core")):"function"==typeof define&&define.amd?define(["react","@material-ui/core"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@material-ui/core")):e.ParaUI=t(e.react,e["@material-ui/core"])}(self,(function(e,t){return function(){var r={6010:function(e,t,r){"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}r.d(t,{Z:function(){return o}})},2565:function(e,t,r){(t=r(3645)(!1)).push([e.id,".paraui-auto-tips{max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-auto-tips>.auto-tips-content{display:inline;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n",""]),e.exports=t},9929:function(e,t,r){(t=r(3645)(!1)).push([e.id,".paraui-tooltip>div{padding-left:12px;padding-right:12px;font-size:14px;font-weight:400;color:#fff;background-color:rgba(46,55,67,0.7)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}\n",""]),e.exports=t},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var o=(a=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(i).concat([o]).join("\n")}var a,c,u;return[r].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&o[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),t.push(u))}},t}},7418:function(e){"use strict";
|
|
2
|
-
/*
|
|
3
|
-
object-assign
|
|
4
|
-
(c) Sindre Sorhus
|
|
5
|
-
@license MIT
|
|
6
|
-
*/var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,u=o(e),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))r.call(a,l)&&(u[l]=a[l]);if(t){c=t(a);for(var f=0;f<c.length;f++)n.call(a,c[f])&&(u[c[f]]=a[c[f]])}}return u}},5251:function(e,t,r){"use strict";
|
|
7
|
-
/** @license React v17.0.2
|
|
8
|
-
* react-jsx-runtime.production.min.js
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
r(7418);var n=r(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,i={},s=null,l=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:s,ref:l,props:i,_owner:a.current}}t.jsx=s},5893:function(e,t,r){"use strict";e.exports=r(5251)},9271:function(e,t,r){var n=r(3379),o=r(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},2310:function(e,t,r){var n=r(3379),o=r(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},3379:function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function c(e){for(var t=-1,r=0;r<a.length;r++)if(a[r].identifier===e){t=r;break}return t}function u(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=r[u]||0,l="".concat(u," ").concat(s);r[u]=s+1;var f=c(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:b(p,t),references:1}),n.push(l)}return n}function s(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,y=0;function b(e,t){var r,n,o;if(t.singleton){var i=y++;r=v||(v=s(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else r=s(t),n=d.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=c(r[n]);a[o].references--}for(var i=u(e,t),s=0;s<r.length;s++){var l=c(r[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}r=i}}}},7371:function(e,t,r){"use strict";var n=r(5893),o=r(670),i=r(6010),a=(r(2310),function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)});t.default=function(e){var t,r=e.placement,c=void 0===r?"top-start":r,u=e.arrow,s=void 0===u||u,l=e.PopperProps,f=a(a({},e.classes),{popper:(0,i.Z)("paraui-tooltip",null===(t=e.classes)||void 0===t?void 0:t.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,n.jsx)(o.Tooltip,a({},e,{arrow:s,placement:c,classes:f,PopperProps:a(a({},l),{popperOptions:{modifiers:{arrow:{enabled:!0},preventOverflow:{boundariesElement:window}}}})}))}},670:function(e){"use strict";e.exports=t},8156:function(t){"use strict";t.exports=e}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,exports:{}};return r[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";o.r(i);var e=o(5893),t=o(8156),r=o(7371),n=(o(9271),function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)});i.default=function(o){var i=o.children,a=o.arrow,c=void 0!==a&&a,u=o.placement,s=void 0===u?"bottom-start":u,l=o.tips,f=void 0===l?"":l,p=o.className,d=void 0===p?"":p,v=o.beyondText,y=void 0===v||v,b=o.style,h=(0,t.useRef)(),m=(0,t.useState)(""),g=m[0],w=m[1];(0,t.useEffect)((function(){w(f)}),[f]);var j;return(0,e.jsx)("div",n({ref:h,className:(j="paraui-auto-tips",d&&(j+=" "+d),j),onMouseOver:function(){var e="";h.current&&h.current.scrollWidth>h.current.offsetWidth&&(e=f||(y?h.current.innerText:i)),w(e)},style:b},{children:(0,e.jsx)(r.default,n({arrow:c,title:g,placement:s},{children:(0,e.jsx)("div",n({className:"auto-tips-content"},{children:i}))}))}))}}(),i}()}));
|
package/Breadcrumbs/index.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/3 10:59
|
|
4
|
-
* @description 面包屑
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface listOptions {
|
|
9
|
-
/** 每一项显示名 */
|
|
10
|
-
label: ReactNode;
|
|
11
|
-
/** 每一项最大宽度 */
|
|
12
|
-
maxWidth?: string;
|
|
13
|
-
/** 是否可点击 */
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
[name: string]: any;
|
|
16
|
-
}
|
|
17
|
-
export interface BreadcrumbsProps {
|
|
18
|
-
/** 样式class */
|
|
19
|
-
className?: string;
|
|
20
|
-
/** style */
|
|
21
|
-
style?: React.CSSProperties;
|
|
22
|
-
/** 每一项最大宽度 */
|
|
23
|
-
maxWidth?: string;
|
|
24
|
-
/** 初始化数据 */
|
|
25
|
-
list: listOptions[];
|
|
26
|
-
/** 中间符号 */
|
|
27
|
-
separator?: string;
|
|
28
|
-
/** 弹出框样式class */
|
|
29
|
-
popoverClassName?: string;
|
|
30
|
-
/** 是否收缩 */
|
|
31
|
-
isShrink?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* 点击菜单
|
|
34
|
-
* @param ops 当前点击菜单数据
|
|
35
|
-
*/
|
|
36
|
-
onClickItem?: (ops: listOptions) => void;
|
|
37
|
-
}
|
|
38
|
-
export declare const Breadcrumbs: FunctionComponent<BreadcrumbsProps>;
|
|
39
|
-
export default Breadcrumbs;
|
package/Breadcrumbs/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@material-ui/core"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@material-ui/core"],e["@paraview/lib"])}(self,(function(e,r,t){return function(){var n={2950:function(e,r,t){var n;self,e.exports=(n=t(8156),function(){var e={466:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-icon{width:1em;height:1em;fill:currentColor;display:inline-block;user-select:none;flex-shrink:0}.paraui-icon-primary{color:#3666d6}.paraui-icon-secondary{color:#3666d6}.paraui-icon-thirdary{color:#3666d6}.paraui-icon-small{font-size:16px}.paraui-icon-medium{font-size:18px}.paraui-icon-large{font-size:20px}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t,n,o,i=e[1]||"",a=e[3];if(!a)return i;if(r&&"function"==typeof btoa){var c=(t=a,n=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(o," */")),s=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(s).concat([c]).join("\n")}return[i].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);n&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),r.push(s))}},r}},7418:function(e){"use strict";
|
|
2
|
-
/*
|
|
3
|
-
object-assign
|
|
4
|
-
(c) Sindre Sorhus
|
|
5
|
-
@license MIT
|
|
6
|
-
*/var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,s=o(e),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))t.call(a,l)&&(s[l]=a[l]);if(r){c=r(a);for(var p=0;p<c.length;p++)n.call(a,c[p])&&(s[c[p]]=a[c[p]])}}return s}},5251:function(e,r,t){"use strict";
|
|
7
|
-
/** @license React v17.0.2
|
|
8
|
-
* react-jsx-runtime.production.min.js
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/t(7418);var n=t(8156),o=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),r.Fragment=i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,t){var n,i={},u=null,l=null;for(n in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(l=r.ref),r)c.call(r,n)&&!s.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,t){"use strict";e.exports=t(5251)},7856:function(e,r,t){var n=t(3379),o=t(466);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]),n(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3379:function(e,r,t){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),a=[];function c(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function s(e,r){for(var t={},n=[],o=0;o<e.length;o++){var i=e[o],s=r.base?i[0]+r.base:i[0],u=t[s]||0,l="".concat(s," ").concat(u);t[s]=u+1;var p=c(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:m(f,r),references:1}),n.push(l)}return n}function u(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=t.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var l,p=(l=[],function(e,r){return l[e]=r,l.filter(Boolean).join("\n")});function f(e,r,t,n){var o=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(r,o);else{var i=document.createTextNode(o),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(i,a[r]):e.appendChild(i)}}function d(e,r,t){var n=t.css,o=t.media,i=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,b=0;function m(e,r){var t,n,o;if(r.singleton){var i=b++;t=v||(v=u(r)),n=f.bind(null,t,i,!1),o=f.bind(null,t,i,!0)}else t=u(r),n=d.bind(null,t,r),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var t=s(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var o=c(t[n]);a[o].references--}for(var i=s(e,r),u=0;u<t.length;u++){var l=c(t[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}t=i}}}},4939:function(e,r,t){"use strict";var n=t(5893),o=(t(7856),function(){return o=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},o.apply(this,arguments)}),i=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};r.default=function(e){var r,t=e.path,a=e.className,c=e.color,s=void 0===c?"primary":c,u=e.size,l=void 0===u?"small":u,p=e.dataName,f=void 0===p?"":p,d=i(e,["path","className","color","size","dataName"]);return(0,n.jsx)("svg",o({className:(r="paraui-icon",r+=" svg-icon",a&&(r+=" "+a),s&&(r+=" paraui-icon-"+s),l&&(r+=" paraui-icon-"+l),r),viewBox:"0 0 1024 1024","data-name":f},d,{children:t}),void 0)}},8156:function(e){"use strict";e.exports=n}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={id:n,exports:{}};return e[n](i,i.exports,t),i.exports}t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},t.d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";t.r(o),t.d(o,{More:function(){return i}});var e=t(5893),r=t(4939),n=function(){return n=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},n.apply(this,arguments)},i=function(t){return(0,e.jsx)(r.default,n({dataName:"More",path:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M298.666667 490.666667A64 64 0 1 1 234.666667 426.666667 64 64 0 0 1 298.666667 490.666667"},void 0),(0,e.jsx)("path",{d:"M568.96 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"},void 0),(0,e.jsx)("path",{d:"M839.253333 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"},void 0)]},void 0)},t),void 0)};o.default=i}(),o}())},6010:function(e,r,t){"use strict";function n(e){var r,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=n(e[r]))&&(o&&(o+=" "),o+=t);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function o(){for(var e,r,t=0,o="";t<arguments.length;)(e=arguments[t++])&&(r=n(e))&&(o&&(o+=" "),o+=r);return o}t.d(r,{Z:function(){return o}})},2565:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-auto-tips{max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-auto-tips>.auto-tips-content{display:inline;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n",""]),e.exports=r},4044:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-breadcrumbs{display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;line-height:0;height:17px}.paraui-breadcrumbs.paraui-breadcrumbs-shrink{white-space:nowrap}.paraui-breadcrumbs>div{display:inline-block;line-height:17px;vertical-align:middle;color:rgba(46,55,67,0.7)}.paraui-breadcrumbs>div svg{font-size:14px;vertical-align:middle;color:rgba(46,55,67,0.7)}.paraui-breadcrumbs>div span{display:inline-block;line-height:0;vertical-align:middle;color:rgba(46,55,67,0.7)}.paraui-breadcrumbs>div .paraui-auto-tips{line-height:0}.paraui-breadcrumbs>div .paraui-auto-tips .auto-tips-content{line-height:17px}.paraui-breadcrumbs>div .paraui-auto-tips span{line-height:17px}.paraui-breadcrumbs>.breadcrumbs-separator{user-select:none;margin:0 8px}.paraui-breadcrumbs>.breadcrumbs-item-click{cursor:pointer}.paraui-breadcrumbs>.breadcrumbs-item-click:hover{color:#3666d6}.paraui-breadcrumbs>.breadcrumbs-item-click:hover svg{color:#3666d6}.paraui-breadcrumbs>.breadcrumbs-item-click:hover span{color:#3666d6}.paraui-breadcrumbs>.breadcrumbs-item-disabled{color:rgba(46,55,67,0.4)}.paraui-breadcrumbs>.more-breadcrumbs{cursor:pointer}.paraui-breadcrumbs>.current-breadcrumbs{color:rgba(46,55,67,0.7);font-weight:700}.paraui-breadcrumbs-popover>.paraui-popover-paper{margin-top:8px;padding:0 12px;height:36px;line-height:36px;display:flex;align-items:center}\n",""]),e.exports=r},5845:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-popover-paper{box-shadow:0px 2px 8px 0px rgba(171,176,185,0.4)}\n",""]),e.exports=r},9929:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-tooltip>div{padding-left:12px;padding-right:12px;font-size:14px;font-weight:400;color:#fff;background-color:rgba(46,55,67,0.7)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t=e[1]||"",n=e[3];if(!n)return t;if(r&&"function"==typeof btoa){var o=(a=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(i).concat([o]).join("\n")}var a,c,s;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);n&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),r.push(s))}},r}},7418:function(e){"use strict";
|
|
15
|
-
/*
|
|
16
|
-
object-assign
|
|
17
|
-
(c) Sindre Sorhus
|
|
18
|
-
@license MIT
|
|
19
|
-
*/var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,s=o(e),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))t.call(a,l)&&(s[l]=a[l]);if(r){c=r(a);for(var p=0;p<c.length;p++)n.call(a,c[p])&&(s[c[p]]=a[c[p]])}}return s}},5251:function(e,r,t){"use strict";
|
|
20
|
-
/** @license React v17.0.2
|
|
21
|
-
* react-jsx-runtime.production.min.js
|
|
22
|
-
*
|
|
23
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the MIT license found in the
|
|
26
|
-
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/
|
|
28
|
-
t(7418);var n=t(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,t){var n,i={},u=null,l=null;for(n in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(l=r.ref),r)c.call(r,n)&&!s.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,t){"use strict";e.exports=t(5251)},9271:function(e,r,t){var n=t(3379),o=t(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},4047:function(e,r,t){var n=t(3379),o=t(4044);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},8939:function(e,r,t){var n=t(3379),o=t(5845);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},2310:function(e,r,t){var n=t(3379),o=t(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},3379:function(e,r,t){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),a=[];function c(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function s(e,r){for(var t={},n=[],o=0;o<e.length;o++){var i=e[o],s=r.base?i[0]+r.base:i[0],u=t[s]||0,l="".concat(s," ").concat(u);t[s]=u+1;var p=c(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:l,updater:m(f,r),references:1}),n.push(l)}return n}function u(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=t.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var l,p=(l=[],function(e,r){return l[e]=r,l.filter(Boolean).join("\n")});function f(e,r,t,n){var o=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(r,o);else{var i=document.createTextNode(o),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(i,a[r]):e.appendChild(i)}}function d(e,r,t){var n=t.css,o=t.media,i=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,b=0;function m(e,r){var t,n,o;if(r.singleton){var i=b++;t=v||(v=u(r)),n=f.bind(null,t,i,!1),o=f.bind(null,t,i,!0)}else t=u(r),n=d.bind(null,t,r),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var t=s(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var o=c(t[n]);a[o].references--}for(var i=s(e,r),u=0;u<t.length;u++){var l=c(t[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}t=i}}}},7839:function(e,r,t){"use strict";var n=t(5893),o=t(8156),i=t(7371),a=(t(9271),function(){return a=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},a.apply(this,arguments)});r.default=function(e){var r=e.children,t=e.arrow,c=void 0!==t&&t,s=e.placement,u=void 0===s?"bottom-start":s,l=e.tips,p=void 0===l?"":l,f=e.className,d=void 0===f?"":f,v=e.beyondText,b=void 0===v||v,m=e.style,h=(0,o.useRef)(),y=(0,o.useState)(""),g=y[0],x=y[1];(0,o.useEffect)((function(){x(p)}),[p]);var j;return(0,n.jsx)("div",a({ref:h,className:(j="paraui-auto-tips",d&&(j+=" "+d),j),onMouseOver:function(){var e="";h.current&&h.current.scrollWidth>h.current.offsetWidth&&(e=p||(b?h.current.innerText:r)),x(e)},style:m},{children:(0,n.jsx)(i.default,a({arrow:c,title:g,placement:u},{children:(0,n.jsx)("div",a({className:"auto-tips-content"},{children:r}))}))}))}},7083:function(e,r,t){"use strict";var n=t(5893),o=t(670),i=(t(8939),function(){return i=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},i.apply(this,arguments)}),a=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};r.default=function(e){var r,t=e.className,c=e.children,s=e.classes,u=a(e,["className","children","classes"]);return(0,n.jsx)(o.Popover,i({className:(r="paraui-popover",t&&(r+=" "+t),r),classes:{paper:s?"paraui-popover-paper ".concat(s):"paraui-popover-paper"}},u,{children:c}))}},7371:function(e,r,t){"use strict";var n=t(5893),o=t(670),i=t(6010),a=(t(2310),function(){return a=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},a.apply(this,arguments)});r.default=function(e){var r,t=e.placement,c=void 0===t?"top-start":t,s=e.arrow,u=void 0===s||s,l=e.PopperProps,p=a(a({},e.classes),{popper:(0,i.Z)("paraui-tooltip",null===(r=e.classes)||void 0===r?void 0:r.popper,{"paraui-tooltip-left-right":(null==c?void 0:c.includes("left"))||(null==c?void 0:c.includes("right")),"paraui-tooltip-top-bottom":(null==c?void 0:c.includes("top"))||(null==c?void 0:c.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,a({},e,{arrow:u,placement:c,classes:p,PopperProps:a(a({},l),{popperOptions:{modifiers:{arrow:{enabled:!0},preventOverflow:{boundariesElement:window}}}})}))}},670:function(e){"use strict";e.exports=r},8543:function(e){"use strict";e.exports=t},8156:function(r){"use strict";r.exports=e}},o={};function i(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={id:e,exports:{}};return n[e](t,t.exports,i),t.exports}i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,{a:r}),r},i.d=function(e,r){for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";i.r(a),i.d(a,{Breadcrumbs:function(){return p}});var e=i(5893),r=i(8156),t=i(7083),n=i(7839),o=i(2950),c=i.n(o),s=i(8543),u=(i(4047),function(){return u=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},u.apply(this,arguments)}),l=function(e,r,t){if(t||2===arguments.length)for(var n,o=0,i=r.length;o<i;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return e.concat(n||Array.prototype.slice.call(r))},p=function(o){var i=o.maxWidth,a=void 0===i?"":i,p=o.className,f=o.list,d=o.separator,v=void 0===d?"/":d,b=o.popoverClassName,m=o.isShrink,h=void 0===m||m,y=o.onClickItem,g=o.style,x=(0,r.useState)("breadcrumbs-"+(0,s.UUID)())[0],j=(0,r.useState)([]),O=j[0],w=j[1],S=(0,r.useState)(0),_=S[0],N=S[1],P=(0,r.useState)(!1),C=P[0],k=P[1],E=(0,r.useState)({})[0],M=(0,r.useRef)();(0,r.useEffect)((function(){setTimeout((function(){var e=document.querySelector("."+x);e&&N(e.offsetWidth)})),w(l([],f,!0))}),[f]),(0,r.useEffect)((function(){return h?(setTimeout((function(){T()})),window.addEventListener("resize",T)):window.removeEventListener("resize",T),function(){window.removeEventListener("resize",T)}}),[O,_,h]);var T=function(){if(!(f.length<=2||0===_)){var e=document.querySelector("."+x);if(e&&_)if(e.parentNode&&e.parentNode.offsetWidth>=_){if(!E.scroll)return;E.scroll=!1,w(l([],f,!0)),k(!1)}else{if(E.scroll)return;E.scroll=!0;var r=[];r.push(f[0]),r.push({more:"more-breadcrumbs"}),r.push(f[f.length-1]),w(l([],r,!0))}}},R=function(e){return function(){e.disabled||("more-breadcrumbs"===e.more?k(!0):y&&y(e))}},I=function(){k(!1)},L=function(){var e="paraui-breadcrumbs "+x;return h&&(e+=" paraui-breadcrumbs-shrink"),p&&(e+=" "+p),e},U=function(e,r,t){var n=" breadcrumbs-item";return r===t.length-1&&(n+=" current-breadcrumbs"),e.disabled?n+=" breadcrumbs-item-disabled":n+=" breadcrumbs-item-click",n},A=(0,r.useMemo)((function(){return C&&(0,e.jsx)(t.default,u({open:C,anchorEl:M.current,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:(n="paraui-breadcrumbs-popover",b&&(n+=" "+b),n)},{children:(0,e.jsx)("div",u({className:L()},{children:f.map((function(t,n){var o=f.length-1!==n;return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({onClick:R(t),className:U(t,n,f)},{children:t.label})),o&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:v}))]},n)}))}))}));var n}),[C,M,v,f,b]),q=function(e){var r={};return a&&(r.maxWidth=a),e.maxWidth&&(r.maxWidth=e.maxWidth),r};return(0,e.jsxs)("div",u({className:L(),style:g,ref:M},{children:[O.map((function(t,o){var i=O.length-1!==o;return"more-breadcrumbs"===t.more?(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({onClick:R(t),className:"more-breadcrumbs"},{children:(0,e.jsx)(c(),{})})),i&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:v}))]},o):(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({style:q(t),onClick:R(t),className:U(t,o,O)},{children:(0,e.jsx)(n.default,{children:t.label})})),i&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:v}))]},o)})),A]}))};a.default=p}(),a}()}));
|
package/Button/SplitButton.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/8/4 上午10:22
|
|
4
|
-
* @description 分体式按钮组
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { PopperPlacementType } from '@material-ui/core';
|
|
8
|
-
interface Option {
|
|
9
|
-
/**
|
|
10
|
-
* 按钮文字
|
|
11
|
-
*/
|
|
12
|
-
label: string;
|
|
13
|
-
/**
|
|
14
|
-
* 按钮value
|
|
15
|
-
*/
|
|
16
|
-
value?: any;
|
|
17
|
-
/**
|
|
18
|
-
* 禁用按钮
|
|
19
|
-
*/
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
[name: string]: any;
|
|
22
|
-
}
|
|
23
|
-
declare type GroupOption = Array<Option>;
|
|
24
|
-
export interface SplitButtonProps {
|
|
25
|
-
/**
|
|
26
|
-
* 分体式按钮文本
|
|
27
|
-
*/
|
|
28
|
-
buttonText?: React.ReactNode;
|
|
29
|
-
/** 按钮选项数组 */
|
|
30
|
-
options?: Option[] | GroupOption[];
|
|
31
|
-
/** cls */
|
|
32
|
-
className?: string;
|
|
33
|
-
/** style */
|
|
34
|
-
style?: React.CSSProperties;
|
|
35
|
-
/** popperClassName */
|
|
36
|
-
popperClassName?: string;
|
|
37
|
-
/** popperStyle */
|
|
38
|
-
popperStyle?: React.CSSProperties;
|
|
39
|
-
/** 禁用按钮组 */
|
|
40
|
-
disabled?: boolean;
|
|
41
|
-
/** 浮层位置 */
|
|
42
|
-
placement?: PopperPlacementType;
|
|
43
|
-
/**
|
|
44
|
-
* click callback
|
|
45
|
-
* @param option
|
|
46
|
-
* @param evt
|
|
47
|
-
*/
|
|
48
|
-
onClick?: (option: Option, evt?: React.MouseEvent<HTMLElement>) => void;
|
|
49
|
-
/**
|
|
50
|
-
* 自定义选项渲染
|
|
51
|
-
* @param option
|
|
52
|
-
*/
|
|
53
|
-
optionRender?: (option: Option) => React.ReactNode;
|
|
54
|
-
}
|
|
55
|
-
export default function SplitButton(props: SplitButtonProps): JSX.Element;
|
|
56
|
-
export {};
|
package/Button/index.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/8/4 上午10:21
|
|
4
|
-
* @description 按钮
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from 'react';
|
|
7
|
-
import { ButtonProps as MuiButtonProps, IconButtonProps as MuiIconButtonProps } from "@material-ui/core";
|
|
8
|
-
import { TooltipProps } from '../Tooltip';
|
|
9
|
-
import SplitButton from "./SplitButton";
|
|
10
|
-
import './index.scss';
|
|
11
|
-
export interface ButtonProps extends Omit<MuiButtonProps, 'variant'> {
|
|
12
|
-
variant?: 'contained' | 'outlined' | 'text';
|
|
13
|
-
/** 设置按钮载入状态 */
|
|
14
|
-
loading?: boolean | {
|
|
15
|
-
delay: number;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* 禁用时提示文字 disabled 为true有效
|
|
19
|
-
*/
|
|
20
|
-
toolTipTitle?: NonNullable<React.ReactNode>;
|
|
21
|
-
/**
|
|
22
|
-
* tooltip props
|
|
23
|
-
*/
|
|
24
|
-
TooltipProps?: Omit<TooltipProps, 'title' | 'children'>;
|
|
25
|
-
/**
|
|
26
|
-
* 设置危险按钮
|
|
27
|
-
*/
|
|
28
|
-
danger?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface IconButtonProps extends Omit<MuiIconButtonProps, 'size'> {
|
|
31
|
-
/** 按钮形状 */
|
|
32
|
-
variant?: 'contained' | 'outlined' | 'text';
|
|
33
|
-
size?: 'small' | 'medium' | 'large';
|
|
34
|
-
/** tooltip title */
|
|
35
|
-
toolTipTitle?: NonNullable<React.ReactNode>;
|
|
36
|
-
/** 设置按钮载入状态 */
|
|
37
|
-
loading?: boolean | {
|
|
38
|
-
delay: number;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* tooltip props
|
|
42
|
-
*/
|
|
43
|
-
TooltipProps?: Omit<TooltipProps, 'title' | 'children'>;
|
|
44
|
-
/**
|
|
45
|
-
* 设置危险按钮
|
|
46
|
-
*/
|
|
47
|
-
danger?: boolean;
|
|
48
|
-
}
|
|
49
|
-
declare const InternalButton: FunctionComponent<ButtonProps>;
|
|
50
|
-
declare const IconButton: FunctionComponent<IconButtonProps>;
|
|
51
|
-
declare type mergedButtonType = typeof InternalButton & {
|
|
52
|
-
IconButton: typeof IconButton;
|
|
53
|
-
SplitButton: typeof SplitButton;
|
|
54
|
-
};
|
|
55
|
-
export declare const Button: mergedButtonType;
|
|
56
|
-
export default Button;
|