@para-ui/core 2.2.1-beta → 2.2.2
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 +15 -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 +15 -0
- package/Button/SplitButton.d.ts +61 -0
- package/Button/index.d.ts +56 -0
- package/Button/index.js +14 -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 +14 -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 +15 -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 +14 -0
- package/CheckboxGroup/index.d.ts +46 -0
- package/CheckboxGroup/index.js +14 -0
- package/Collapse/collapsePanel.d.ts +30 -0
- package/Collapse/index.d.ts +57 -0
- package/Collapse/index.js +15 -0
- package/Collapse/motion.d.ts +5 -0
- package/Collapse/util.d.ts +11 -0
- package/CollapseBox/index.d.ts +27 -0
- package/CollapseBox/index.js +15 -0
- package/CollapseBox/util.d.ts +5 -0
- package/ColorPicker/index.d.ts +4 -0
- package/ColorPicker/index.js +1 -0
- package/ComboSelect/WithTabsCombo/index.d.ts +11 -0
- package/ComboSelect/WithTabsCombo/interface.d.ts +141 -0
- package/ComboSelect/index.d.ts +11 -0
- package/ComboSelect/index.js +14 -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 +14 -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 +14 -0
- package/Drawer/interface.d.ts +83 -0
- package/Drawer/lang/en_US.d.ts +5 -0
- package/Drawer/lang/index.d.ts +11 -0
- package/Drawer/lang/zh_CN.d.ts +5 -0
- package/Empty/images/index.d.ts +2 -0
- package/Empty/index.d.ts +30 -0
- package/Empty/index.js +14 -0
- package/Empty/lang/en_US.d.ts +6 -0
- package/Empty/lang/index.d.ts +13 -0
- package/Empty/lang/zh_CN.d.ts +6 -0
- package/Form/index.d.ts +181 -0
- package/Form/index.js +14 -0
- package/FormItem/compoments/defaultCompoments/index.d.ts +19 -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 +152 -0
- package/FormItem/index.js +14 -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 +14 -0
- package/FunctionModal/modalContext.d.ts +14 -0
- package/GlobalContext/componentsProps.d.ts +19 -0
- package/GlobalContext/confirmLocale.d.ts +7 -0
- package/GlobalContext/index.d.ts +28 -0
- package/GlobalContext/index.js +16 -0
- package/GlobalContext/intl.d.ts +34 -0
- package/GlobalContext/useFormatMessage.d.ts +3 -0
- package/Help/index.d.ts +20 -0
- package/Help/index.js +15 -0
- package/HelperText/index.d.ts +19 -0
- package/HelperText/index.js +15 -0
- package/Hooks/useGlobalProps.d.ts +1 -0
- package/InputLang/index.d.ts +49 -0
- package/InputLang/index.js +14 -0
- package/InputNumber/index.d.ts +74 -0
- package/InputNumber/index.js +14 -0
- package/Label/index.d.ts +35 -0
- package/Label/index.js +14 -0
- package/Loading/index.d.ts +17 -0
- package/Loading/index.js +15 -0
- package/Menu/footerExpansion.d.ts +9 -0
- package/Menu/index.d.ts +10 -0
- package/Menu/index.js +14 -0
- package/Menu/interface.d.ts +139 -0
- package/Menu/logo.d.ts +9 -0
- package/Menu/verticalMenuList.d.ts +14 -0
- package/Message/index.d.ts +59 -0
- package/Message/index.js +15 -0
- package/Modal/Confirm/index.d.ts +66 -0
- package/Modal/index.d.ts +61 -0
- package/Modal/index.js +14 -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 +14 -0
- package/Notification/index.d.ts +52 -0
- package/Notification/index.js +15 -0
- package/OperateBtn/index.d.ts +59 -0
- package/OperateBtn/index.js +14 -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 +14 -0
- package/PageHeader/interface.d.ts +167 -0
- package/Pagination/index.d.ts +33 -0
- package/Pagination/index.js +14 -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 +56 -0
- package/PopConfirm/index.js +14 -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/Progress/Line.d.ts +47 -0
- package/Progress/Steps.d.ts +17 -0
- package/Progress/index.d.ts +81 -0
- package/Progress/index.js +20 -0
- package/Progress/utils.d.ts +6 -0
- package/Querying/images/index.d.ts +2 -0
- package/Querying/index.d.ts +26 -0
- package/Querying/index.js +14 -0
- package/Querying/lang/en_US.d.ts +4 -0
- package/Querying/lang/index.d.ts +9 -0
- package/Querying/lang/zh_CN.d.ts +4 -0
- package/README.md +481 -0
- package/Radio/index.d.ts +38 -0
- package/Radio/index.js +14 -0
- package/RadioGroup/index.d.ts +47 -0
- package/RadioGroup/index.js +14 -0
- package/Search/index.d.ts +56 -0
- package/Search/index.js +14 -0
- package/Select/index.d.ts +86 -0
- package/Select/index.js +14 -0
- package/Select/lang/en_US.d.ts +5 -0
- package/Select/lang/index.d.ts +11 -0
- package/Select/lang/zh_CN.d.ts +5 -0
- package/SelectInput/index.d.ts +11 -0
- package/SelectInput/index.js +14 -0
- package/SingleBox/index.d.ts +42 -0
- package/SingleBox/index.js +14 -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 +15 -0
- package/Switch/index.d.ts +78 -0
- package/Switch/index.js +14 -0
- package/Table/index.d.ts +10 -0
- package/Table/index.js +14 -0
- package/Table/interface.d.ts +202 -0
- package/Table/lang/en_US.d.ts +6 -0
- package/Table/lang/index.d.ts +13 -0
- package/Table/lang/zh_CN.d.ts +6 -0
- package/Table/tableBody.d.ts +9 -0
- package/Table/tableBodyElement/index.d.ts +15 -0
- package/Table/tableBodyInterface.d.ts +67 -0
- package/Table/tableContainer/index.d.ts +16 -0
- package/Table/tableElement/index.d.ts +17 -0
- package/Table/tableHead.d.ts +9 -0
- package/Table/tableHeadElement/index.d.ts +15 -0
- package/Table/tableHeadInterface.d.ts +30 -0
- package/Table/tablePagination.d.ts +9 -0
- package/Table/tablePaginationInterFace.d.ts +24 -0
- package/Table/tdElement/index.d.ts +15 -0
- package/Table/thElement/index.d.ts +15 -0
- package/Table/trElement/index.d.ts +15 -0
- package/Table/util.d.ts +16 -0
- package/Tabs/index.d.ts +48 -0
- package/Tabs/index.js +14 -0
- package/Tag/TagGroup.d.ts +66 -0
- package/Tag/index.d.ts +34 -0
- package/Tag/index.js +14 -0
- package/Test/index.d.ts +2 -0
- package/Test/index.js +16 -0
- package/TextField/index.d.ts +93 -0
- package/TextField/index.js +14 -0
- package/TimePicker/index.d.ts +22 -0
- package/TimePicker/index.js +14 -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 +14 -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 +14 -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 +14 -0
- package/Tree/interface.d.ts +207 -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/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 +14 -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 +42 -0
- package/cdn/Checkbox/index.js +53 -0
- package/cdn/CheckboxGroup/index.js +53 -0
- package/cdn/Collapse/index.js +27 -0
- package/cdn/CollapseBox/index.js +1 -0
- package/cdn/ColorPicker/index.js +1 -0
- package/cdn/ComboSelect/index.js +438 -0
- package/cdn/Container/index.js +1 -0
- package/cdn/DatePicker/index.js +185 -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 +477 -0
- package/cdn/FormItem/index.js +477 -0
- package/cdn/FunctionModal/index.js +144 -0
- package/cdn/GlobalContext/index.js +1 -0
- package/cdn/Help/index.js +53 -0
- package/cdn/HelperText/index.js +1 -0
- package/cdn/InputLang/index.js +144 -0
- package/cdn/InputNumber/index.js +118 -0
- package/cdn/Label/index.js +53 -0
- package/cdn/Loading/index.js +14 -0
- package/cdn/Menu/index.js +40 -0
- package/cdn/Message/index.js +53 -0
- package/cdn/Modal/index.js +144 -0
- package/cdn/MultiBox/index.js +131 -0
- package/cdn/Notification/index.js +66 -0
- package/cdn/OperateBtn/index.js +92 -0
- package/cdn/PageHeader/index.js +92 -0
- package/cdn/Pagination/index.js +214 -0
- package/cdn/ParauiProvider/index.js +9 -0
- package/cdn/PopConfirm/index.js +131 -0
- package/cdn/Popover/index.js +16 -0
- package/cdn/Popper/index.js +26 -0
- package/cdn/Progress/index.js +58 -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 +16 -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/Test/index.js +1 -0
- package/cdn/TextField/index.js +105 -0
- package/cdn/TimePicker/index.js +185 -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 +252 -0
- package/index.d.ts +128 -0
- package/index.js +19 -0
- package/package.json +21 -21
- package/style.css +72 -0
package/Tabs/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
!function(t,a){"object"==typeof exports&&"object"==typeof module?module.exports=a(require("react"),require("@material-ui/core"),require("@para-ui/icons/Close"),require("clsx"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/Down"),require("@para-ui/core/GlobalContext"),require("@para-ui/icons/CheckCircleF"),require("@para-ui/icons/WarningCircle"),require("@para-ui/icons/CloseCircleF"),require("@para-ui/icons/WarningCircleF"),require("@para-ui/icons/Plus")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@para-ui/icons/Close","clsx","@para-ui/icons/LoadingF","@para-ui/icons/Forbid","@para-ui/icons/Down","@para-ui/core/GlobalContext","@para-ui/icons/CheckCircleF","@para-ui/icons/WarningCircle","@para-ui/icons/CloseCircleF","@para-ui/icons/WarningCircleF","@para-ui/icons/Plus"],a):"object"==typeof exports?exports.ParaUI=a(require("react"),require("@material-ui/core"),require("@para-ui/icons/Close"),require("clsx"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/Forbid"),require("@para-ui/icons/Down"),require("@para-ui/core/GlobalContext"),require("@para-ui/icons/CheckCircleF"),require("@para-ui/icons/WarningCircle"),require("@para-ui/icons/CloseCircleF"),require("@para-ui/icons/WarningCircleF"),require("@para-ui/icons/Plus")):t.ParaUI=a(t.react,t["@material-ui/core"],t["@para-ui/icons/Close"],t.clsx,t["@para-ui/icons/LoadingF"],t["@para-ui/icons/Forbid"],t["@para-ui/icons/Down"],t["@para-ui/core/GlobalContext"],t["@para-ui/icons/CheckCircleF"],t["@para-ui/icons/WarningCircle"],t["@para-ui/icons/CloseCircleF"],t["@para-ui/icons/WarningCircleF"],t["@para-ui/icons/Plus"])}(self,(function(t,a,o,i,r,n,e,c,s,l,u,p,d){return function(){var b={8313:function(t,a,o){(a=o(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,.8);box-shadow:none}.paraui-button-contained[disabled]{color:rgba(46,55,67,.4);background-color:rgba(171,176,185,.12);border:1px solid rgba(171,176,185,.4);box-shadow:none}.paraui-button-contained[disabled]:hover{background-color:rgba(171,176,185,.12)}.paraui-button-contained .btn-icon{display:inline-flex;color:inherit}.paraui-button-contained .btn-icon svg{color:inherit;font-size:16px}.paraui-button-contained .btn-icon.start-icon{margin-left:3px}.paraui-button-contained .btn-icon.end-icon{margin-right:3px}.paraui-button-contained .btn-icon.loading-icon{margin-left:3px;animation:loadingSpin 1s infinite linear}.paraui-button-contained.paraui-button-dangerous{background-color:#eb6054}.paraui-button-contained.paraui-button-dangerous:hover{background-color:rgba(235,96,84,.8)}.paraui-button-outlined{color:rgba(46,55,67,.7);background-color:#fff;border:1px solid rgba(171,176,185,.4);box-shadow:none}.paraui-button-outlined:hover{color:#3666d6;border-color:rgba(54,102,214,.2);background-color:#fff;box-shadow:none}.paraui-button-outlined[disabled]{color:rgba(46,55,67,.4);background-color:rgba(171,176,185,.12);border:1px solid rgba(171,176,185,.4);box-shadow:none}.paraui-button-outlined[disabled]:hover{background-color:rgba(171,176,185,.12)}.paraui-button-outlined .btn-icon{display:inline-flex;color:inherit}.paraui-button-outlined .btn-icon svg{color:inherit;font-size:16px}.paraui-button-outlined .btn-icon.start-icon{margin-left:3px}.paraui-button-outlined .btn-icon.end-icon{margin-right:3px}.paraui-button-outlined .btn-icon.loading-icon{margin-left:3px;animation:loadingSpin 1s infinite linear}.paraui-button-outlined.paraui-button-dangerous{color:#eb6054;border-color:#eb6054}.paraui-button-outlined.paraui-button-dangerous:hover{color:rgba(235,96,84,.8);border-color:rgba(235,96,84,.8)}.paraui-button-text{color:rgba(46,55,67,.7);background-color:#fff;border:1px solid rgba(171,176,185,.4);box-shadow:none;color:#3666d6;background-color:rgba(0,0,0,0);border:none}.paraui-button-text:hover{color:rgba(54,102,214,.8);background-color:rgba(0,0,0,0);box-shadow:none}.paraui-button-text[disabled]{color:rgba(46,55,67,.4);background-color:rgba(0,0,0,0);border:none}.paraui-button-text[disabled]:hover{background-color:rgba(0,0,0,0)}.paraui-button-text .btn-icon{display:inline-flex;color:inherit}.paraui-button-text .btn-icon svg{color:inherit;font-size:16px}.paraui-button-text .btn-icon.start-icon{margin-left:3px}.paraui-button-text .btn-icon.end-icon{margin-right:3px}.paraui-button-text .btn-icon.loading-icon{margin-left:3px;animation:loadingSpin 1s infinite linear}.paraui-button-text.paraui-button-dangerous{color:#eb6054}.paraui-button-text.paraui-button-dangerous:hover{color:rgba(235,96,84,.8)}.paraui-button-large{height:36px}.paraui-button-medium{height:32px}.paraui-button-small{height:28px}.paraui-button--disabled{display:inline-block}.paraui-icon-button{padding:0;border-radius:4px}.paraui-icon-button-loading{pointer-events:none}.paraui-icon-button-loading .loading-icon{display:inline-flex;animation:loadingSpin 1s infinite linear}.paraui-icon-button-contained{color:#fff;background-color:#3666d6;box-shadow:none}.paraui-icon-button-contained:hover{background-color:rgba(54,102,214,.8);box-shadow:none}.paraui-icon-button-contained[disabled]{color:rgba(46,55,67,.4);background-color:rgba(171,176,185,.12);border:1px solid rgba(171,176,185,.4);box-shadow:none}.paraui-icon-button-contained[disabled]:hover{background-color:rgba(171,176,185,.12)}.paraui-icon-button-contained svg{color:inherit;font-size:16px}.paraui-icon-button-contained.paraui-icon-button-dangerous{background-color:#eb6054}.paraui-icon-button-contained.paraui-icon-button-dangerous:hover{background-color:rgba(235,96,84,.8)}.paraui-icon-button-outlined{color:rgba(46,55,67,.7);background-color:#fff;border:1px solid rgba(171,176,185,.4);box-shadow:none}.paraui-icon-button-outlined:hover{color:#3666d6;border-color:rgba(54,102,214,.2);box-shadow:none;background-color:#fff}.paraui-icon-button-outlined[disabled]{color:rgba(46,55,67,.4);background-color:rgba(171,176,185,.12);border:1px solid rgba(171,176,185,.4);box-shadow:none}.paraui-icon-button-outlined[disabled]:hover{background-color:rgba(171,176,185,.12)}.paraui-icon-button-outlined svg{color:inherit;font-size:16px}.paraui-icon-button-outlined.paraui-icon-button-dangerous{color:#eb6054;border-color:#eb6054}.paraui-icon-button-outlined.paraui-icon-button-dangerous:hover{color:rgba(235,96,84,.8);border-color:rgba(235,96,84,.8)}.paraui-icon-button-text{color:#3666d6}.paraui-icon-button-text:hover{color:rgba(54,102,214,.8);background-color:rgba(0,0,0,0)}.paraui-icon-button-text[disabled]{color:rgba(46,55,67,.4)}.paraui-icon-button-text[disabled]:hover{background-color:rgba(0,0,0,0)}.paraui-icon-button-text svg{color:inherit}.paraui-icon-button-text.paraui-icon-button-dangerous{color:#eb6054}.paraui-icon-button-text.paraui-icon-button-dangerous:hover{color:rgba(235,96,84,.8)}.paraui-icon-button-text.paraui-icon-button-large{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-large svg{font-size:28px}.paraui-icon-button-text.paraui-icon-button-medium{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-medium svg{font-size:24px}.paraui-icon-button-text.paraui-icon-button-small{width:auto;height:auto}.paraui-icon-button-text.paraui-icon-button-small svg{font-size:20px}.paraui-icon-button-large{width:36px;height:36px}.paraui-icon-button-medium{width:32px;height:32px}.paraui-icon-button-small{width:28px;height:28px}.paraui-button-split{display:inline-block}.paraui-button-split .paraui-button-split--active{color:#3666d6;box-shadow:none;background-color:#fff}.paraui-button-split-list{padding:8px 0;margin:8px 0;border-radius:4px;box-shadow:0px 2px 8px 0px rgba(171,176,185,.4);background-color:#fff}.paraui-button-split-list ul .split-li{min-width:140px;padding:11px 12px;color:#2e3743;font-size:14px;line-height:1;cursor:pointer;transition:background-color .3s,color .3s}.paraui-button-split-list ul .split-li:hover{background-color:rgba(171,176,185,.12)}.paraui-button-split-list ul .split-li.split-li--active{color:#3666d6}.paraui-button-split-list ul .split-li.split-li--active:hover{background-color:rgba(171,176,185,.12)}.paraui-button-split-list ul .split-li.split-li--disabled{color:rgba(46,55,67,.4);cursor:not-allowed}.paraui-button-split-list ul .split-li.split-li--disabled:hover{background-color:#fff}.paraui-button-split-list ul .split-li-group:not(:first-child){position:relative;margin-top:16px}.paraui-button-split-list ul .split-li-group:not(:first-child):before{content:"";position:absolute;top:-8px;left:8px;right:8px;border-top:1px solid rgba(171,176,185,.2)}',""]),t.exports=a},145:function(t,a,o){(a=o(3645)(!1)).push([t.id,".paraui-popconfirm .paraui-popconfirm-tooltip{max-width:600px;padding:0;font-size:14px;color:initial;background-color:#fff;box-shadow:0px 2px 8px 0px rgba(171,176,185,.4);border-radius:4px}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper{min-width:350px;padding:24px}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message{position:relative}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-icon{position:absolute;top:2px;color:#ffa150;line-height:0;font-size:16px}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-icon svg{color:inherit;font-size:inherit}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-body{padding-left:24px;line-height:20px;font-size:14px;color:#2e3743}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-title{font-weight:700}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-message-content{font-weight:400;margin-top:13px}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-btns{margin-top:32px;text-align:right}.paraui-popconfirm .paraui-popconfirm-tooltip .popconfirm-wrapper .popconfirm-btns>button+button{margin-left:16px}.paraui-popconfirm-arrow{color:#fff}.paraui-popconfirm-anchor{display:inline-block}.paraui-popconfirm-anchor-wrapper{display:inline-block}",""]),t.exports=a},3497:function(t,a,o){(a=o(3645)(!1)).push([t.id,".paraui-tabs-horizontal{height:40px;min-height:auto;border-bottom:1px solid rgba(171,176,185,.2)}.paraui-tabs-horizontal .paraui-tabs-tab-editable-icon{position:absolute;right:4px;top:50%;transform:translateY(-50%);line-height:0;cursor:pointer}.paraui-tabs-horizontal .paraui-tabs-tab-editable-icon--interactive{visibility:hidden;transition:.3s;opacity:0}.paraui-tabs-horizontal .paraui-tabs-tab-editable-icon svg{color:inherit;font-size:12px}.paraui-tabs-tab{position:relative;height:40px;min-width:auto;min-height:auto;padding:0 20px;margin:0;line-height:normal;text-transform:none;color:#2e3743;background-color:#fff;overflow:visible;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;opacity:1;transition:.3s}.paraui-tabs-tab:hover{color:rgba(54,102,214,.8)}.paraui-tabs-tab:hover .paraui-tabs-tab-editable-icon--interactive{visibility:visible;opacity:1}.paraui-tabs-tab:hover .paraui-tabs-tab-editable-icon--interactive svg{color:#eb6054}.paraui-tabs-tab--selected.paraui-tabs-tab{color:#3666d6;font-weight:700}.paraui-tabs-tab[disabled]{pointer-events:auto;cursor:not-allowed;color:rgba(46,55,67,.4);opacity:1}.paraui-tabs-tab[disabled]:hover{color:rgba(46,55,67,.4)}.paraui-tabs-indicator{height:1px;background-color:rgba(0,0,0,0)}.paraui-tabs-indicator>span{position:absolute;height:1px;width:calc(100% - 40px);left:50%;top:0;transform:translateX(-50%);background-color:#3666d6}.paraui-tabs-scrollbtn{width:auto}.paraui-tabs-scrollbtn>svg{color:#2e3743}.paraui-tabs-scrollbtn>svg:hover{color:rgba(54,102,214,.8)}.paraui-tabs-vertical{display:inline-flex;height:100%;min-width:100px;border-right:1px solid rgba(171,176,185,.2)}.paraui-tabs-vertical .paraui-tabs-tab{margin:0;padding:0 12px 0 0}.paraui-tabs-vertical .paraui-tabs-tab:hover .paraui-tabs-tab-content--interactive{width:calc(100% - 18px)}.paraui-tabs-vertical .paraui-tabs-tab:hover .paraui-tabs-tab-editable-icon--interactive{width:auto;height:auto}.paraui-tabs-vertical .paraui-tabs-tab-content{display:inline-block;width:100%;text-align:right}.paraui-tabs-vertical .paraui-tabs-tab-editable{width:100%;display:inline-flex;align-items:center}.paraui-tabs-vertical .paraui-tabs-tab-editable-icon{margin-left:6px;line-height:0}.paraui-tabs-vertical .paraui-tabs-tab-editable-icon--interactive{width:0;height:0;visibility:hidden;transition:opacity .3s;opacity:0}.paraui-tabs-vertical .paraui-tabs-tab-editable-icon svg{color:inherit;font-size:12px}.paraui-tabs-vertical:not(.paraui-tabs-card) .paraui-tabs-tab--selected{background-color:rgba(54,102,214,.05)}.paraui-tabs-vertical .paraui-tabs-indicator{width:1px;background-color:#3666d6}.paraui-tabs-card{border-bottom:none}.paraui-tabs-card .paraui-tabs-tab{border:1px solid rgba(171,176,185,.4);margin:0;padding:0 20px}.paraui-tabs-card .paraui-tabs-tab:not(:last-child){border-right:none}.paraui-tabs-card .paraui-tabs-tab--selected{border-bottom-color:rgba(0,0,0,0)}.paraui-tabs-card .paraui-tabs-indicator{display:none}.paraui-tabs-card--editable .paraui-tabs-tab-editable{display:inline-flex;align-items:center}.paraui-tabs-card--editable .paraui-tabs-tab-editable-icon{position:static;margin-left:6px}.paraui-tabs-card--editable .paraui-tabs-tab-editable-icon svg{color:inherit;font-size:12px}.paraui-tabs-card.paraui-tabs-vertical{border-right:none}.paraui-tabs-card.paraui-tabs-vertical .paraui-tabs-tab{border-right:1px solid rgba(171,176,185,.4)}.paraui-tabs-card.paraui-tabs-vertical .paraui-tabs-tab:not(:last-child){border-bottom:none}.paraui-tabs-card.paraui-tabs-vertical .paraui-tabs-tab--selected{border-right-color:rgba(0,0,0,0);border-bottom-color:rgba(171,176,185,.4)}.paraui-tabs-card.paraui-tabs-vertical .paraui-tabs-tab-content{display:inline-block;width:100%;text-align:center}.paraui-tabs-track{display:inline-flex;height:36px;border-bottom:0;background-color:rgba(171,176,185,.12);border-radius:4px}.paraui-tabs-track .paraui-tabs-tab{height:28px;margin:4px;padding:0 16px;background-color:rgba(0,0,0,0);border-radius:4px}.paraui-tabs-track .paraui-tabs-tab--selected.paraui-tabs-tab{color:#3666d6;background-color:#fff;font-weight:400}.paraui-tabs-track .paraui-tabs-indicator{display:none}.paraui-tabs-with-add{position:relative;display:flex;align-items:center}.paraui-tabs-with-add .paraui-tabs{flex:1}.paraui-tabs-with-add .paraui-tabs-tab-add{margin-left:8px}",""]),t.exports=a},9929:function(t,a,o){(a=o(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,.7)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}",""]),t.exports=a},3645:function(t){"use strict";t.exports=function(t){var a=[];return a.toString=function(){return this.map((function(a){var o=function(t,a){var o=t[1]||"",i=t[3];if(!i)return o;if(a&&"function"==typeof btoa){var r=(e=i,c=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),n=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[o].concat(n).concat([r]).join("\n")}var e,c,s;return[o].join("\n")}(a,t);return a[2]?"@media ".concat(a[2]," {").concat(o,"}"):o})).join("")},a.i=function(t,o,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var n=0;n<this.length;n++){var e=this[n][0];null!=e&&(r[e]=!0)}for(var c=0;c<t.length;c++){var s=[].concat(t[c]);i&&r[s[0]]||(o&&(s[2]?s[2]="".concat(o," and ").concat(s[2]):s[2]=o),a.push(s))}},a}},7418:function(t){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function r(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 a={},o=0;o<10;o++)a["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(a).map((function(t){return a[t]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(t){return!1}}()?Object.assign:function(t,n){for(var e,c,s=r(t),l=1;l<arguments.length;l++){for(var u in e=Object(arguments[l]))o.call(e,u)&&(s[u]=e[u]);if(a){c=a(e);for(var p=0;p<c.length;p++)i.call(e,c[p])&&(s[c[p]]=e[c[p]])}}return s}},5251:function(t,a,o){"use strict";
|
|
7
|
+
/** @license React v17.0.2
|
|
8
|
+
* react-jsx-runtime.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/o(7418);var i=o(8156),r=60103;if(a.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;r=n("react.element"),a.Fragment=n("react.fragment")}var e=i.__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 l(t,a,o){var i,n={},l=null,u=null;for(i in void 0!==o&&(l=""+o),void 0!==a.key&&(l=""+a.key),void 0!==a.ref&&(u=a.ref),a)c.call(a,i)&&!s.hasOwnProperty(i)&&(n[i]=a[i]);if(t&&t.defaultProps)for(i in a=t.defaultProps)void 0===n[i]&&(n[i]=a[i]);return{$$typeof:r,type:t,key:l,ref:u,props:n,_owner:e.current}}a.jsx=l,a.jsxs=l},5893:function(t,a,o){"use strict";t.exports=o(5251)},5822:function(t,a,o){var i=o(3379),r=o(8313);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.id,r,""]]);var n={insert:("body","body"),singleton:!1};i(r,n);t.exports=r.locals||{}},6084:function(t,a,o){var i=o(3379),r=o(145);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.id,r,""]]);var n={insert:("body","body"),singleton:!1};i(r,n);t.exports=r.locals||{}},9302:function(t,a,o){var i=o(3379),r=o(3497);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.id,r,""]]);var n={insert:("body","body"),singleton:!1};i(r,n);t.exports=r.locals||{}},2310:function(t,a,o){var i=o(3379),r=o(9929);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.id,r,""]]);var n={insert:("body","body"),singleton:!1};i(r,n);t.exports=r.locals||{}},3379:function(t,a,o){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},n=function(){var t={};return function(a){if(void 0===t[a]){var o=document.querySelector(a);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}t[a]=o}return t[a]}}(),e=[];function c(t){for(var a=-1,o=0;o<e.length;o++)if(e[o].identifier===t){a=o;break}return a}function s(t,a){for(var o={},i=[],r=0;r<t.length;r++){var n=t[r],s=a.base?n[0]+a.base:n[0],l=o[s]||0,u="".concat(s," ").concat(l);o[s]=l+1;var p=c(u),d={css:n[1],media:n[2],sourceMap:n[3]};-1!==p?(e[p].references++,e[p].updater(d)):e.push({identifier:u,updater:h(d,a),references:1}),i.push(u)}return i}function l(t){var a=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=o.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(t){a.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(a);else{var e=n(t.insert||"head");if(!e)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");e.appendChild(a)}return a}var u,p=(u=[],function(t,a){return u[t]=a,u.filter(Boolean).join("\n")});function d(t,a,o,i){var r=o?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=p(a,r);else{var n=document.createTextNode(r),e=t.childNodes;e[a]&&t.removeChild(e[a]),e.length?t.insertBefore(n,e[a]):t.appendChild(n)}}function b(t,a,o){var i=o.css,r=o.media,n=o.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var f=null,g=0;function h(t,a){var o,i,r;if(a.singleton){var n=g++;o=f||(f=l(a)),i=d.bind(null,o,n,!1),r=d.bind(null,o,n,!0)}else o=l(a),i=b.bind(null,o,a),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(o)};return i(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap)return;i(t=a)}else r()}}t.exports=function(t,a){(a=a||{}).singleton||"boolean"==typeof a.singleton||(a.singleton=r());var o=s(t=t||[],a);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<o.length;i++){var r=c(o[i]);e[r].references--}for(var n=s(t,a),l=0;l<o.length;l++){var u=c(o[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}o=n}}}},7896:function(t,a,o){"use strict";o.d(a,{default:function(){return w}});var i=o(5893),r=o(8156),n=o(670),e=o(5744),c=o.n(e),s=o(2788),l=o.n(s),u=o(3835),p=o.n(u),d=o(7371),b=o(2396),f=o.n(b),g=o(3054),h={zh:{moreActions:"更多操作"},en:{moreActions:"More actions"}},m=function(){return m=Object.assign||function(t){for(var a,o=1,i=arguments.length;o<i;o++)for(var r in a=arguments[o])Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r]);return t},m.apply(this,arguments)};o(5822);var v=function(){return v=Object.assign||function(t){for(var a,o=1,i=arguments.length;o<i;o++)for(var r in a=arguments[o])Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r]);return t},v.apply(this,arguments)},x=function(t,a){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&a.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)a.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(o[i[r]]=t[i[r]])}return o},y=function(t){var a=t.variant,o=void 0===a?"contained":a,e=t.size,s=void 0===e?"large":e,u=t.className,b=t.disabled,f=void 0!==b&&b,g=t.children,h=t.startIcon,m=t.endIcon,y=t.loading,w=void 0!==y&&y,j=t.toolTipTitle,k=void 0===j?"":j,C=t.TooltipProps,O=t.danger,N=void 0!==O&&O,P=x(t,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","TooltipProps","danger"]),S=(0,r.useState)(!1),T=S[0],z=S[1],F=function(t){if(!T)return"start"===t&&h?(0,i.jsx)("span",v({className:c()("btn-icon","start-icon")},{children:h})):"end"===t&&m?(0,i.jsx)("span",v({className:c()("btn-icon","end-icon")},{children:m})):null;if("object"==typeof w){var a=w.delay||0;setTimeout((function(){return z(!1)}),a)}return"start"===t?(0,i.jsx)("span",v({className:"btn-icon loading-icon"},{children:(0,i.jsx)(l(),{})})):null},_=(0,i.jsx)(n.Button,v({},P,{color:"default",variant:"contained",disabled:f,disableRipple:!0,disableElevation:!0,className:c()("paraui-button",u,"paraui-button-".concat(o),"paraui-button-".concat(s),T&&"paraui-button-loading",N&&!f&&"paraui-button-dangerous"),classes:{label:"paraui-button-label"},startIcon:F("start"),endIcon:F("end")},{children:g}));return(0,r.useEffect)((function(){z(!!w)}),[w]),f&&k?(0,i.jsx)(d.default,v({},C,{title:function(){if(f&&k){return(0,i.jsxs)("span",{children:[(0,i.jsx)(p(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),k]})}return k}()},{children:(0,i.jsx)("span",v({className:"paraui-button--disabled"},{children:_}))})):_};y.IconButton=function(t){var a=t.variant,o=void 0===a?"contained":a,e=t.size,s=void 0===e?"large":e,u=t.toolTipTitle,b=void 0===u?"":u,f=t.children,g=t.className,h=t.disabled,m=void 0!==h&&h,y=t.loading,w=void 0!==y&&y,j=t.TooltipProps,k=t.danger,C=void 0!==k&&k,O=x(t,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),N=(0,r.useState)(!1),P=N[0],S=N[1],T=(0,i.jsx)(n.IconButton,v({},O,{disabled:m,disableRipple:!0,className:c()("paraui-icon-button",g,"paraui-icon-button-".concat(o),"paraui-icon-button-".concat(s),P&&"paraui-icon-button-loading",C&&!m&&"paraui-icon-button-dangerous")},{children:function(){if(!P)return f;if("object"==typeof w){var t=w.delay||0;setTimeout((function(){return S(!1)}),t)}return(0,i.jsx)("span",v({className:"loading-icon"},{children:(0,i.jsx)(l(),{})}))}()}));return(0,r.useEffect)((function(){S(!!w)}),[w]),b?(0,i.jsx)(d.default,v({},j,{title:function(){if(m&&b){return(0,i.jsxs)("span",{children:[(0,i.jsx)(p(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),b]})}return b}()},{children:m?(0,i.jsx)("span",v({className:"paraui-button--disabled"},{children:T})):T}),+P):T},y.SplitButton=function(t){var a=t.buttonText,o=t.options,e=void 0===o?[]:o,s=t.className,l=t.popperClassName,u=t.style,p=t.popperStyle,d=t.disabled,b=void 0!==d&&d,v=t.onClick,x=t.optionRender,y=t.placement,j=void 0===y?"bottom-end":y,k=t.buttonProps,C=t.iconButton,O=void 0!==C&&C,N=(0,g.Z)("Button",h),P=(0,r.useState)(!1),S=P[0],T=P[1],z=(0,r.useRef)(null),F=(0,r.useRef)(),_=(0,r.useRef)(),E=(0,r.useState)(),q=E[0],I=E[1],M=function(t,a,o){var i;t.disabled?o.stopPropagation():(I(a),T(!1),null===(i=F.current)||void 0===i||i.classList.remove("paraui-button-split--active"),null==v||v(t,o))},L=function(t){t.stopPropagation(),R();var a=t.currentTarget;_.current=window.setTimeout((function(){F.current=a,a.classList.add("paraui-button-split--active"),T(!0)}),150)},R=function(){_.current&&(clearTimeout(_.current),_.current=null)},A=function(t){var a,o;(null===(a=z.current)||void 0===a?void 0:a.contains(t.target))||(T(!1),null===(o=F.current)||void 0===o||o.classList.remove("paraui-button-split--active"))},B=function(){return(0,i.jsx)("div",m({className:"paraui-button-split-list"},{children:(0,i.jsx)("ul",{children:e.map((function(t,a){return Array.isArray(t)?function(t,a){return(0,i.jsx)("li",m({className:"split-li-group"},{children:t.map((function(t,o){var r="".concat(a,"-").concat(o);return(0,i.jsx)("div",m({className:c()("split-li",r===q&&"split-li--active",t.disabled&&"split-li--disabled"),onClick:function(a){return M(t,r,a)}},{children:(null==x?void 0:x(t))||t.label}),r)}))}),a)}(t,a):(0,i.jsx)("li",m({className:c()("split-li",a===q&&"split-li--active",t.disabled&&"split-li--disabled"),onClick:function(o){return M(t,a,o)}},{children:(null==x?void 0:x(t))||t.label}),a)}))})}))};return(0,i.jsxs)("div",m({className:c()("paraui-button-split",s),ref:z,style:u,onMouseLeave:function(t){var a;t.stopPropagation(),R(),null===(a=t.currentTarget.firstElementChild)||void 0===a||a.classList.remove("paraui-button-split--active"),T(!1)}},{children:[O?(0,i.jsx)(w.IconButton,m({variant:"text",size:"small",disabled:b},k,{onMouseEnter:L},{children:null!=a?a:N({id:"moreActions"})})):(0,i.jsx)(w,m({variant:"outlined",size:"large",startIcon:(0,i.jsx)(f(),{}),disabled:b},k,{onMouseEnter:L},{children:null!=a?a:N({id:"moreActions"})})),(0,i.jsx)(n.Popper,m({open:S,anchorEl:z.current,transition:!0,placement:j,style:m({zIndex:1500},p),className:c()("paraui-button-split-popper",l)},{children:function(t){var a=t.TransitionProps;t.placement;return(0,i.jsx)(n.Grow,m({},a,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.ClickAwayListener,m({onClickAway:A},{children:B()}))})}))}}))]}))};var w=y},3054:function(t,a,o){"use strict";var i=o(8156),r=o.n(i),n=o(5395),e=o.n(n);a.Z=function(t,a){var o=r().useContext(e()).intlFormat;return a.zh_CN=a.zh,a.en_US=a.en,o&&o(t,a)}},7580:function(t,a,o){"use strict";o.d(a,{default:function(){return k}});var i=o(5893),r=o(8156),n=o.n(r),e=o(670),c=o(1014),s=o.n(c),l=o(4753),u=o.n(l),p=o(6649),d=o.n(p),b=o(595),f=o.n(b),g=o(7896),h=o(7371),m=o(5744),v=o.n(m),x=o(3054),y={zh:{cancel:"取消",ok:"确定"},en:{cancel:"Cancel",ok:"Ok"}},w=(o(6084),function(){return w=Object.assign||function(t){for(var a,o=1,i=arguments.length;o<i;o++)for(var r in a=arguments[o])Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r]);return t},w.apply(this,arguments)}),j={success:(0,i.jsx)(s(),{}),warning:(0,i.jsx)(f(),{}),error:(0,i.jsx)(d(),{}),info:(0,i.jsx)(u(),{})},k=function(t){var a=t.trigger,o=void 0===a?"click":a,c=t.type,s=void 0===c?"warning":c,l=t.title,u=t.content,p=t.icon,d=t.okText,b=t.cancelText,f=t.onOk,m=t.onCancel,k=t.okButtonProps,C=t.cancelButtonProps,O=t.placement,N=void 0===O?"bottom":O,P=t.className,S=t.style,T=t.children,z=t.open,F=void 0!==z&&z,_=t.controllable,E=void 0!==_&&_,q=t.showCancel,I=void 0===q||q,M=t.bubble,L=void 0===M||M,R=t.actions,A=t.onClose,B=(0,x.Z)("PopConfirm",y),H=n().useRef(),W={interactive:!0,arrow:!1},U="click"===o;U||E?(W.disableFocusListener=!0,W.disableHoverListener=!0,W.disableTouchListener=!0):W.disableFocusListener=!0;var D=(0,r.useState)(!1),Y=D[0],G=D[1],J=function(){E||(G(!1),null==A||A())},Z=function(){G(!0)},K=function(){null==m||m(),J()},Q=function(){null==f||f(),J()},$=function(t){H.current&&H.current.contains(t.target)||(E||G(!1),null==A||A())};(0,r.useEffect)((function(){E&&G(F)}),[F]);var X,V;return(0,i.jsx)(i.Fragment,{children:(V=(0,i.jsx)("span",w({className:"paraui-popconfirm-anchor"},{children:T})),U&&(V=(0,i.jsx)(e.ClickAwayListener,w({onClickAway:$},{children:(0,i.jsx)("span",w({className:"paraui-popconfirm-anchor",onClick:Z},{children:T}))}))),(0,i.jsx)(h.default,w({open:Y,placement:N},W,{title:(X=(0,i.jsxs)(i.Fragment,{children:[I&&(0,i.jsx)(g.default,w({onClick:K,variant:"outlined",size:"small"},C,{children:null!=b?b:B({id:"cancel"})})),(0,i.jsx)(g.default,w({onClick:Q,variant:"contained",size:"small"},k,{children:null!=d?d:B({id:"ok"})}))]}),(0,i.jsxs)("div",w({className:v()("popconfirm-wrapper"),ref:H,style:S,onClick:function(t){L||t.stopPropagation()}},{children:[(0,i.jsxs)("div",w({className:"popconfirm-message"},{children:[(0,i.jsx)("span",w({className:"popconfirm-message-icon"},{children:p||j[s]})),(0,i.jsxs)("div",w({className:"popconfirm-message-body"},{children:[l&&(0,i.jsx)("div",w({className:"popconfirm-message-title"},{children:l})),(0,i.jsx)("div",w({className:"popconfirm-message-content"},{children:u}))]}))]})),(0,i.jsx)("div",w({className:"popconfirm-btns"},{children:null!=R?R:X}))]}))),onClose:J,onOpen:Z,classes:{popper:v()("paraui-popconfirm",P),tooltip:"paraui-popconfirm-tooltip",arrow:"paraui-popconfirm-arrow"}},{children:(0,i.jsx)("span",w({className:"paraui-popconfirm-anchor-wrapper"},{children:V}))})))})}},7371:function(t,a,o){"use strict";var i=o(5893),r=o(670),n=o(5744),e=o.n(n),c=(o(2310),function(){return c=Object.assign||function(t){for(var a,o=1,i=arguments.length;o<i;o++)for(var r in a=arguments[o])Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r]);return t},c.apply(this,arguments)}),s=function(t,a){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&a.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)a.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(o[i[r]]=t[i[r]])}return o};a.default=function(t){var a,o=t.placement,n=void 0===o?"top-start":o,l=t.className,u=t.arrow,p=void 0===u||u,d=t.PopperProps,b=t.boundariesElement,f=void 0===b?"scrollParent":b,g=s(t,["placement","className","arrow","PopperProps","boundariesElement"]),h=c(c({},t.classes),{popper:e()("paraui-tooltip",l,null===(a=t.classes)||void 0===a?void 0:a.popper,{"paraui-tooltip-left-right":(null==n?void 0:n.includes("left"))||(null==n?void 0:n.includes("right")),"paraui-tooltip-top-bottom":(null==n?void 0:n.includes("top"))||(null==n?void 0:n.includes("bottom"))})});return(0,i.jsx)(r.Tooltip,c({},g,{enterTouchDelay:0,arrow:p,placement:n,classes:h,PopperProps:c(c({},d),{modifiers:{preventOverflow:{boundariesElement:f}}})}))}},670:function(t){"use strict";t.exports=a},5395:function(t){"use strict";t.exports=c},1014:function(t){"use strict";t.exports=s},5927:function(t){"use strict";t.exports=o},6649:function(t){"use strict";t.exports=u},2396:function(t){"use strict";t.exports=e},3835:function(t){"use strict";t.exports=n},2788:function(t){"use strict";t.exports=r},1632:function(t){"use strict";t.exports=d},4753:function(t){"use strict";t.exports=l},595:function(t){"use strict";t.exports=p},5744:function(t){"use strict";t.exports=i},8156:function(a){"use strict";a.exports=t}},f={};function g(t){var a=f[t];if(void 0!==a)return a.exports;var o=f[t]={id:t,exports:{}};return b[t](o,o.exports,g),o.exports}g.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return g.d(a,{a:a}),a},g.d=function(t,a){for(var o in a)g.o(a,o)&&!g.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:a[o]})},g.o=function(t,a){return Object.prototype.hasOwnProperty.call(t,a)},g.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},g.nc=void 0;var h={};return function(){"use strict";g.r(h),g.d(h,{Tabs:function(){return b}});var t=g(5893),a=g(670),o=g(5927),i=g.n(o),r=g(7371),n=g(7896),e=g(7580),c=g(5744),s=g.n(c),l=g(1632),u=g.n(l),p=(g(9302),function(){return p=Object.assign||function(t){for(var a,o=1,i=arguments.length;o<i;o++)for(var r in a=arguments[o])Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r]);return t},p.apply(this,arguments)}),d=function(t,a){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&a.indexOf(i)<0&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)a.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(o[i[r]]=t[i[r]])}return o},b=function(o){var c=o.mode,l=void 0===c?"line":c,b=o.editable,f=void 0!==b&&b,g=o.showAdd,h=void 0!==g&&g,m=o.showPopConfirm,v=void 0!==m&&m,x=o.popConfirmProps,y=o.data,w=void 0===y?[]:y,j=o.showToolTip,k=void 0!==j&&j,C=o.orientation,O=void 0===C?"horizontal":C,N=o.className,P=o.onChange,S=o.onEdit,T=o.onAdd,z=d(o,["mode","editable","showAdd","showPopConfirm","popConfirmProps","data","showToolTip","orientation","className","onChange","onEdit","onAdd"]),F=function(a){var o,n=a.label,c=void 0===n?"":n,l=a.closable,u=a.interactive,d=s()("paraui-tabs-tab-content",{"paraui-tabs-tab-content--interactive":f&&u}),b=s()("paraui-tabs-tab-editable-icon",u&&"paraui-tabs-tab-editable-icon--interactive"),g=k?(0,t.jsx)(r.default,p({title:c,placement:"horizontal"===O?"top-start":"right"},{children:(0,t.jsx)("span",p({className:d},{children:c}))})):(0,t.jsx)("span",p({className:d},{children:c}));return f?(0,t.jsxs)("span",p({className:"paraui-tabs-tab-editable"},{children:[g,!1===l?null:v?(0,t.jsx)("span",p({onClick:function(t){return t.stopPropagation()}},{children:(0,t.jsx)(e.default,p({content:"确认删除吗?",placement:"top"},x,{onOk:function(){return _(a,o)}},{children:(0,t.jsx)("span",p({className:b,onClick:function(t){return o=t}},{children:(0,t.jsx)(i(),{})}))}))})):(0,t.jsx)("span",p({className:b,onClick:function(t){return _(a,t)}},{children:(0,t.jsx)(i(),{})}))]})):g},_=function(t,a){a.stopPropagation(),null==S||S(t,a)},E=function(t){null==T||T(t)},q=(0,t.jsx)(a.Tabs,p({className:s()("paraui-tabs",N,"paraui-tabs-".concat(O),{"paraui-tabs-card":"card"===l,"paraui-tabs-card--editable":"card"===l&&f,"paraui-tabs-track":"track"===l}),indicatorColor:"primary",textColor:"inherit",orientation:O,TabIndicatorProps:{children:(0,t.jsx)("span",{}),datatype:"indicator",className:"paraui-tabs-indicator"},TabScrollButtonProps:{className:"paraui-tabs-scrollbtn"},onChange:function(t,a){var o={};o="number"==typeof a?w[a]:w.find((function(t){return t.value===a}))||{},null==P||P(a,o,t)}},z,{children:(null==w?void 0:w.length)?w.map((function(o,i){var r=o.value,n=o.disabled,e=o.className;return(0,t.jsx)(a.Tab,{value:r,disabled:n,disableRipple:!0,label:F(o),className:s()("paraui-tabs-tab",e),classes:{selected:"paraui-tabs-tab--selected"}},i)})):null}));return h?(0,t.jsxs)("div",p({className:"paraui-tabs-with-add"},{children:[q,h?"boolean"!=typeof h?(0,t.jsx)("span",p({className:"paraui-tabs-tab-add"},{children:h})):(0,t.jsx)(n.default.IconButton,p({variant:"outlined",size:"small",onClick:E,className:"paraui-tabs-tab-add"},{children:(0,t.jsx)(u(),{})})):null]})):q};h.default=b}(),h}()}));
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2022/1/12 下午1:16
|
|
4
|
+
* @description tag group
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from "react";
|
|
7
|
+
import { TagProps } from "./index";
|
|
8
|
+
import './index.scss';
|
|
9
|
+
interface TagItem extends Omit<TagProps, 'visible' | 'size' | 'bordered'> {
|
|
10
|
+
/**
|
|
11
|
+
* label
|
|
12
|
+
*/
|
|
13
|
+
label: string;
|
|
14
|
+
/**
|
|
15
|
+
* value
|
|
16
|
+
*/
|
|
17
|
+
value: string;
|
|
18
|
+
}
|
|
19
|
+
declare type Item = string | number;
|
|
20
|
+
export interface TagGroupProps {
|
|
21
|
+
/**
|
|
22
|
+
* cls
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 样式
|
|
27
|
+
*/
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
/**
|
|
30
|
+
* 大小
|
|
31
|
+
*/
|
|
32
|
+
size?: 'small' | 'large';
|
|
33
|
+
/**
|
|
34
|
+
* 显示边框
|
|
35
|
+
*/
|
|
36
|
+
bordered?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* input 默认值
|
|
39
|
+
*/
|
|
40
|
+
defaultInputValue?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 动态添加
|
|
43
|
+
*/
|
|
44
|
+
increased?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 动态添加按钮 increased 为true 有效
|
|
47
|
+
*/
|
|
48
|
+
increasedTag?: {
|
|
49
|
+
/** 图标 */
|
|
50
|
+
icon?: React.ReactNode;
|
|
51
|
+
/** 文字 */
|
|
52
|
+
text?: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* 组数据源
|
|
56
|
+
*/
|
|
57
|
+
data?: TagItem[] | Item[];
|
|
58
|
+
/**
|
|
59
|
+
* onchange
|
|
60
|
+
* @param tagData
|
|
61
|
+
* @param value
|
|
62
|
+
*/
|
|
63
|
+
onChange?: (tagData: TagItem[], value: string[]) => void;
|
|
64
|
+
}
|
|
65
|
+
declare const TagGroup: FunctionComponent<TagGroupProps>;
|
|
66
|
+
export default TagGroup;
|
package/Tag/index.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2022/1/11 上午10:15
|
|
4
|
+
* @description tag
|
|
5
|
+
*/
|
|
6
|
+
import React, { PropsWithChildren } from 'react';
|
|
7
|
+
import TagGroup, { TagGroupProps } from './TagGroup';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
declare type PresetColorTypes = 'blue' | 'green' | 'yellow' | 'red';
|
|
10
|
+
export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
11
|
+
/** 颜色 */
|
|
12
|
+
color?: string | PresetColorTypes;
|
|
13
|
+
/** 可关闭 */
|
|
14
|
+
closable?: boolean;
|
|
15
|
+
/** 关闭图标 */
|
|
16
|
+
closeIcon?: React.ReactNode;
|
|
17
|
+
/** 是否显示 */
|
|
18
|
+
visible?: boolean;
|
|
19
|
+
/** onclose */
|
|
20
|
+
onClose?: (event: React.MouseEvent) => void;
|
|
21
|
+
/** 图标 */
|
|
22
|
+
icon?: React.ReactNode;
|
|
23
|
+
/** cls */
|
|
24
|
+
className?: string;
|
|
25
|
+
/** 显示边框 */
|
|
26
|
+
bordered?: boolean;
|
|
27
|
+
/** 大小 */
|
|
28
|
+
size?: 'small' | 'large';
|
|
29
|
+
}
|
|
30
|
+
export declare type TagPropsWithChild = PropsWithChildren<TagProps>;
|
|
31
|
+
export type { TagGroupProps };
|
|
32
|
+
export { TagGroup };
|
|
33
|
+
export declare const Tag: React.FC<TagPropsWithChild>;
|
|
34
|
+
export default Tag;
|
package/Tag/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@para-ui/icons/Close"),require("clsx"),require("@para-ui/icons/Plus")):"function"==typeof define&&define.amd?define(["react","@para-ui/icons/Close","clsx","@para-ui/icons/Plus"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@para-ui/icons/Close"),require("clsx"),require("@para-ui/icons/Plus")):e.ParaUI=r(e.react,e["@para-ui/icons/Close"],e.clsx,e["@para-ui/icons/Plus"])}(self,(function(e,r,t,n){return function(){var a={5243:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-tag{display:inline-flex;justify-content:center;align-items:center;height:24px;margin-right:8px;padding:0 12px;font-size:12px;color:#2e3743;white-space:nowrap;background:rgba(171,176,185,.2);border-radius:4px}.paraui-tag-bordered{border:1px solid rgba(171,176,185,.2);line-height:22px}.paraui-tag-small{line-height:24px}.paraui-tag-small.paraui-tag-bordered{line-height:22px}.paraui-tag-large{line-height:28px}.paraui-tag-large.paraui-tag-bordered{line-height:26px}.paraui-tag .paraui-tag-close-icon{margin-left:4px;color:inherit;font-size:16px;cursor:pointer}.paraui-tag-close-icon:hover{color:inherit}.paraui-tag>.paraui-icon{vertical-align:-4px;color:inherit;font-size:16px}.paraui-tag>.paraui-icon+span{margin-left:4px}.paraui-tag-has-color,.paraui-tag-has-color .paraui-icon,.paraui-tag-has-color .paraui-icon:hover{color:inherit}.paraui-tag-blue{color:#3666d6;background-color:rgba(54,102,214,.05)}.paraui-tag-green{color:#53c31b;background-color:rgba(83,195,27,.05)}.paraui-tag-yellow{color:#ffa150;background-color:rgba(255,161,80,.05)}.paraui-tag-red{color:#eb6054;background-color:rgba(235,96,84,.05)}.paraui-tag-checkable{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0);cursor:pointer}.paraui-tag-checkable:not(.paraui-tag-checkable-checked):hover{color:#1890ff}.paraui-tag-checkable:active,.paraui-tag .ant-tag-checkable-checked{color:#fff}.paraui-tag-checkable-checked{background-color:#1890ff}.paraui-tag-checkable:active{background-color:#096dd9}.paraui-tag-hidden{display:none}.paraui-tag-group{display:flex;align-items:center;flex-flow:row wrap}.paraui-tag-group-input{width:78px;height:24px;font-size:12px;color:#2e3743;text-indent:8px;border:1px solid rgba(171,176,185,.4);border-radius:4px}.paraui-tag-group-input-large{height:28px}.paraui-tag-group-new-icon{padding:0 5px}",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t=e[1]||"",n=e[3];if(!n)return t;if(r&&"function"==typeof btoa){var a=(i=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(o).concat([a]).join("\n")}var i,c,u;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&a[u[0]]||(t&&(u[2]?u[2]="".concat(t," and ").concat(u[2]):u[2]=t),r.push(u))}},r}},7418:function(e){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,c,u=a(e),l=1;l<arguments.length;l++){for(var s in i=Object(arguments[l]))t.call(i,s)&&(u[s]=i[s]);if(r){c=r(i);for(var p=0;p<c.length;p++)n.call(i,c[p])&&(u[c[p]]=i[c[p]])}}return u}},5251:function(e,r,t){"use strict";
|
|
7
|
+
/** @license React v17.0.2
|
|
8
|
+
* react-jsx-runtime.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/t(7418);var n=t(8156),a=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;a=o("react.element"),r.Fragment=o("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,r,t){var n,o={},l=null,s=null;for(n in void 0!==t&&(l=""+t),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(s=r.ref),r)c.call(r,n)&&!u.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:a,type:e,key:l,ref:s,props:o,_owner:i.current}}r.jsx=l,r.jsxs=l},5893:function(e,r,t){"use strict";e.exports=t(5251)},32:function(e,r,t){var n=t(3379),a=t(5243);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var o={insert:("body","body"),singleton:!1};n(a,o);e.exports=a.locals||{}},3379:function(e,r,t){"use strict";var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),i=[];function c(e){for(var r=-1,t=0;t<i.length;t++)if(i[t].identifier===e){r=t;break}return r}function u(e,r){for(var t={},n=[],a=0;a<e.length;a++){var o=e[a],u=r.base?o[0]+r.base:o[0],l=t[u]||0,s="".concat(u," ").concat(l);t[u]=l+1;var p=c(s),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==p?(i[p].references++,i[p].updater(f)):i.push({identifier:s,updater:v(f,r),references:1}),n.push(s)}return n}function l(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var a=t.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var i=o(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}return r}var s,p=(s=[],function(e,r){return s[e]=r,s.filter(Boolean).join("\n")});function f(e,r,t,n){var a=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(r,a);else{var o=document.createTextNode(a),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(o,i[r]):e.appendChild(o)}}function d(e,r,t){var n=t.css,a=t.media,o=t.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var g=null,b=0;function v(e,r){var t,n,a;if(r.singleton){var o=b++;t=g||(g=l(r)),n=f.bind(null,t,o,!1),a=f.bind(null,t,o,!0)}else t=l(r),n=d.bind(null,t,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else a()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=a());var t=u(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var a=c(t[n]);i[a].references--}for(var o=u(e,r),l=0;l<t.length;l++){var s=c(t[l]);0===i[s].references&&(i[s].updater(),i.splice(s,1))}t=o}}}},5927:function(e){"use strict";e.exports=r},1632:function(e){"use strict";e.exports=n},5744: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 a[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})},i.nc=void 0;var c={};return function(){"use strict";i.r(c),i.d(c,{Tag:function(){return v},TagGroup:function(){return f},default:function(){return h}});var e=i(5893),r=i(8156),t=i(5927),n=i.n(t),a=i(5744),o=i.n(a),u=i(1632),l=i.n(u),s=(i(32),function(){return s=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},s.apply(this,arguments)}),p=function(e,r,t){if(t||2===arguments.length)for(var n,a=0,o=r.length;a<o;a++)!n&&a in r||(n||(n=Array.prototype.slice.call(r,0,a)),n[a]=r[a]);return e.concat(n||Array.prototype.slice.call(r))},f=function(t){var n=t.className,a=t.size,i=void 0===a?"small":a,c=t.style,u=t.bordered,f=void 0!==u&&u,d=t.defaultInputValue,g=t.increased,b=void 0!==g&&g,v=t.increasedTag,y=t.onChange,m=(0,r.useState)([]),x=m[0],j=m[1],O=(0,r.useState)(null!=d?d:""),w=O[0],k=O[1],C=(0,r.useState)(!1),S=C[0],P=C[1],N=(0,r.useRef)();(0,r.useEffect)((function(){if(t.data){var e=t.data;e.some((function(e){return["string","number"].includes(typeof e)}))&&(e=e.map((function(e){return{value:e,label:e}}))),j(p([],e,!0))}}),[t.data]);var _=function(e){return e.map((function(e){return e.value}))},T=function(){P(!0),setTimeout((function(){var e;null===(e=N.current)||void 0===e||e.focus()}))},E=function(e){k(e.target.value)},I=function(){var e=w.trim();""!==e&&(x.push({value:e,label:e,closable:!0}),j(p([],x,!0)),null==y||y(x,_(x))),k(null!=d?d:""),P(!1)},M=function(e){13!==e.keyCode&&13!==e.which||I()},R=function(e){return function(r){var t=x.findIndex((function(r){return r.value===e.value}));t>-1&&(x.splice(t,1),j(p([],x,!0))),e.onClose&&e.onClose(r),null==y||y(x,_(x))}};return(0,e.jsxs)("div",s({className:o()("paraui-tag-group",n),style:c},{children:[(null==x?void 0:x.length)?x.map((function(r,t){return(0,e.jsx)(h,s({},r,{size:i,bordered:f,visible:!0,onClose:R(r)},{children:r.label}),t)})):null,b&&function(){var r;if(S){var t=o()("paraui-tag-group-input",{"paraui-tag-group-input-large":"large"===i});return(0,e.jsx)("input",{type:"text",ref:N,className:t,value:w,onChange:E,onBlur:I,onKeyDown:M})}var n=(0,e.jsx)(l(),{}),a="New Tag";v&&(n=v.icon||(0,e.jsx)(l(),{}),a=null!==(r=v.text)&&void 0!==r?r:"New Tag");var c=o()("paraui-tag-group-new",{"paraui-tag-group-new-icon":!a});return(0,e.jsx)(h,s({className:c,size:i,bordered:f,icon:n,onClick:T},{children:a}))}()]}))},d=function(){return d=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},d.apply(this,arguments)},g=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)r.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]])}return t},b=["blue","green","yellow","red"],v=function(t){var a,i=t.className,c=t.children,u=t.icon,l=t.color,s=t.onClose,p=t.closeIcon,f=t.closable,v=void 0!==f&&f,h=t.bordered,y=void 0!==h&&h,m=t.size,x=void 0===m?"small":m,j=t.style,O=t.visible,w=g(t,["className","children","icon","color","onClose","closeIcon","closable","bordered","size","style","visible"]),k=(0,r.useState)(!0),C=k[0],S=k[1];(0,r.useEffect)((function(){"visible"in t&&S(!!O)}),[O]);var P=function(){return!!l&&b.includes(l)},N=d({color:l&&!P()?l:void 0},j),_=o()("paraui-tag",i,((a={"paraui-tag-has-color":l,"paraui-tag-hidden":!C,"paraui-tag-bordered":y,"paraui-tag-large":"large"===x})["paraui-tag-".concat(l)]=P(),a)),T=function(e){e.stopPropagation(),null==s||s(e),e.defaultPrevented||"visible"in t||S(!1)};return(0,e.jsxs)("span",d({},w,{className:_,style:N},{children:[u?(0,e.jsxs)(e.Fragment,{children:[u,c&&(0,e.jsx)("span",{children:c})]}):c,v?p?(0,e.jsx)("span",d({className:"paraui-tag-close-icon",onClick:T},{children:p})):(0,e.jsx)(n(),{className:"paraui-tag-close-icon",onClick:T}):null]}))},h=v}(),c}()}));
|
package/Test/index.d.ts
ADDED
package/Test/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof exports?exports.ParaUI=r(require("react")):e.ParaUI=r(e.react)}(self,(function(e){return function(){"use strict";var r={7418:function(e){
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/
|
|
7
|
+
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,f){for(var i,c,a=o(e),u=1;u<arguments.length;u++){for(var p in i=Object(arguments[u]))t.call(i,p)&&(a[p]=i[p]);if(r){c=r(i);for(var l=0;l<c.length;l++)n.call(i,c[l])&&(a[c[l]]=i[c[l]])}}return a}},5251:function(e,r,t){
|
|
8
|
+
/** @license React v17.0.2
|
|
9
|
+
* react-jsx-runtime.production.min.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
t(7418);var n=t(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),f("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,a={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,t){var n,f={},u=null,p=null;for(n in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(p=r.ref),r)c.call(r,n)&&!a.hasOwnProperty(n)&&(f[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===f[n]&&(f[n]=r[n]);return{$$typeof:o,type:e,key:u,ref:p,props:f,_owner:i.current}}r.jsx=u},5893:function(e,r,t){e.exports=t(5251)},8156:function(r){r.exports=e}},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var f=t[e]={exports:{}};return r[e](f,f.exports,n),f.exports}n.d=function(e,r){for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){n.r(o),n.d(o,{Test:function(){return r}});var e=n(5893),r=function(){return(0,e.jsx)("div",{children:"123"})};o.default=r}(),o}()}));
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/5 15:05
|
|
4
|
+
* @description 输入框
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import { LabelTooltipProps } from '../Label';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export interface TextFieldProps {
|
|
10
|
+
/** 样式class */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** style */
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
/** 大小 */
|
|
15
|
+
size?: 'small' | 'medium' | 'large';
|
|
16
|
+
/** 标题在外,还是在内 */
|
|
17
|
+
labelMode?: 'outside' | 'inside';
|
|
18
|
+
/** 标题 */
|
|
19
|
+
label?: ReactNode;
|
|
20
|
+
/** 标题提示 */
|
|
21
|
+
labelSign?: ReactNode;
|
|
22
|
+
/** 是否必填 */
|
|
23
|
+
required?: boolean;
|
|
24
|
+
/** 帮组提示信息 */
|
|
25
|
+
labelTooltip?: LabelTooltipProps;
|
|
26
|
+
/** 提示语 */
|
|
27
|
+
placeholder?: ReactNode;
|
|
28
|
+
/** 是否禁用 */
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/** 多行 */
|
|
31
|
+
multiline?: boolean;
|
|
32
|
+
/** 是否显示错误 */
|
|
33
|
+
error?: boolean;
|
|
34
|
+
/** 错误提示 */
|
|
35
|
+
helperText?: ReactNode;
|
|
36
|
+
/** 前缀 */
|
|
37
|
+
addonBefore?: ReactNode;
|
|
38
|
+
/** 后缀 */
|
|
39
|
+
addonAfter?: ReactNode;
|
|
40
|
+
/** 默认值 不受控 */
|
|
41
|
+
defaultValue?: string | number;
|
|
42
|
+
/** 默认值 受控 */
|
|
43
|
+
value?: string | number;
|
|
44
|
+
/** 是否得到焦点 */
|
|
45
|
+
autoFocus?: boolean;
|
|
46
|
+
/** 文本类型 */
|
|
47
|
+
type?: 'text' | 'number' | 'password';
|
|
48
|
+
/** 多行文本行 */
|
|
49
|
+
rows?: number;
|
|
50
|
+
/** 多行文本是否可拖动 */
|
|
51
|
+
resize?: boolean;
|
|
52
|
+
/** 右侧图标 */
|
|
53
|
+
rightIcon?: ReactNode;
|
|
54
|
+
/** 是否显示右边图标 */
|
|
55
|
+
showRightIcon?: boolean;
|
|
56
|
+
/** 是否显示清空按钮 */
|
|
57
|
+
allowClear?: boolean;
|
|
58
|
+
/** 长度限制 */
|
|
59
|
+
limitLength?: number;
|
|
60
|
+
/** 下拉框class */
|
|
61
|
+
selectPopoverClass?: string;
|
|
62
|
+
/** 下拉框显示字段 */
|
|
63
|
+
showSelectName?: string;
|
|
64
|
+
/** 返回输入建议的方法,仅当你的输入建议数据 resolve 时,通过调用 callback(data:[]) 来返回它 */
|
|
65
|
+
fetchSuggestions?: (val: string, cb: (data: any[]) => void) => void;
|
|
66
|
+
/** 渲染下拉子节点 */
|
|
67
|
+
renderSelectItem?: (item: any) => ReactNode;
|
|
68
|
+
/** 失去焦点 */
|
|
69
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
70
|
+
/** 得到焦点 */
|
|
71
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
72
|
+
/** 改变输入框 */
|
|
73
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
74
|
+
/** 点击图标 */
|
|
75
|
+
onClickIcon?: (event: React.PointerEvent<HTMLSpanElement>) => void;
|
|
76
|
+
/** 键盘按下 */
|
|
77
|
+
onKeydown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
78
|
+
/** 键盘抬起 */
|
|
79
|
+
onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
80
|
+
/** 回车事件 */
|
|
81
|
+
onEnter?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
82
|
+
/** 点击前缀 */
|
|
83
|
+
onClickAddonBefore?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
84
|
+
/** 点击后缀 */
|
|
85
|
+
onClickAddonAfter?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
86
|
+
/** 点击清空内容回调 */
|
|
87
|
+
onClear?: () => void;
|
|
88
|
+
/** 选着下拉框 */
|
|
89
|
+
onSelect?: (item: any) => void;
|
|
90
|
+
[name: string]: any;
|
|
91
|
+
}
|
|
92
|
+
export declare const TextField: FunctionComponent<TextFieldProps>;
|
|
93
|
+
export default TextField;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@material-ui/core"),require("clsx"),require("@para-ui/icons/Help"),require("@paraview/lib"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/CloseCircle"),require("@para-ui/icons/LoadingF"),require("@para-ui/core/GlobalContext")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","clsx","@para-ui/icons/Help","@paraview/lib","@para-ui/icons/PreviewClose","@para-ui/icons/PreviewOpen","@para-ui/icons/CloseCircle","@para-ui/icons/LoadingF","@para-ui/core/GlobalContext"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@material-ui/core"),require("clsx"),require("@para-ui/icons/Help"),require("@paraview/lib"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/CloseCircle"),require("@para-ui/icons/LoadingF"),require("@para-ui/core/GlobalContext")):e.ParaUI=t(e.react,e["@material-ui/core"],e.clsx,e["@para-ui/icons/Help"],e["@paraview/lib"],e["@para-ui/icons/PreviewClose"],e["@para-ui/icons/PreviewOpen"],e["@para-ui/icons/CloseCircle"],e["@para-ui/icons/LoadingF"],e["@para-ui/core/GlobalContext"])}(self,(function(e,t,i,n,o,r,l,a,c,d){return function(){var s={2565:function(e,t,i){(t=i(3645)(!1)).push([e.id,".paraui-auto-tips{max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-auto-tips>.auto-tips-content{display:inline;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-auto-tips-tooltip>div{max-height:calc(100vh - 25px);overflow:auto}",""]),e.exports=t},7381:function(e,t,i){(t=i(3645)(!1)).push([e.id,".paraui-help{display:inline-block;font-size:16px;color:rgba(46,55,67,.7)}.paraui-help:hover{color:#3666d6}.paraui-help .paraui-icon{font-size:inherit;color:inherit}",""]),e.exports=t},9916:function(e,t,i){(t=i(3645)(!1)).push([e.id,".paraui-helper-text{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:400;padding-left:12px;line-height:20px;color:rgba(46,55,67,.7)}.paraui-helper-text.paraui-helper-text-error{color:#eb6054}",""]),e.exports=t},4928:function(e,t,i){(t=i(3645)(!1)).push([e.id,".paraui-label{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;color:rgba(46,55,67,.7);margin-bottom:8px;display:inline-block;line-height:1.43;word-break:break-all}.paraui-label>.paraui-label-required{margin-left:2px;color:#eb6054}.paraui-label>.paraui-help{vertical-align:top;margin-left:4px}.paraui-label>.paraui-help svg{color:rgba(46,55,67,.4);vertical-align:top;position:relative;top:2px}.paraui-label.paraui-label-line.paraui-label-tooltip{border-bottom:1px dashed rgba(46,55,67,.4);padding-bottom:2px}",""]),e.exports=t},5714:function(e,t,i){(t=i(3645)(!1)).push([e.id,"@keyframes rotateLoading{0%{transformOrigin:50% 50%}100%{transform:rotate(360deg)}}.paraui-loading{position:absolute;left:0;top:0;width:100%;height:100%}.paraui-loading .paraui-loading-mask{position:absolute;width:100%;height:100%;background-color:#fff;z-index:1}.paraui-loading .paraui-loading-box{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:2}.paraui-loading .paraui-loading-box>svg{transition:all .3s ease-in-out;animation:rotateLoading 1s infinite linear;font-size:20px}",""]),e.exports=t},3637:function(e,t,i){(t=i(3645)(!1)).push([e.id,".paraui-text-field{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;display:inline-block;width:100%}.paraui-text-field>.text-field-content{border:1px solid;border-radius:4px;border-color:rgba(171,176,185,.4);display:flex;width:100%;position:relative;background-color:#fff}.paraui-text-field>.text-field-content:hover{border-color:#3666d6}.paraui-text-field>.text-field-content>.text-field-content-before{color:#2e3743;padding:0 12px;border-right:1px solid rgba(171,176,185,.4);background-color:rgba(171,176,185,.12);border-bottom-left-radius:4px;border-top-left-radius:4px;white-space:nowrap;display:flex;align-items:center}.paraui-text-field>.text-field-content>.text-field-content-before svg{font-size:20px}.paraui-text-field>.text-field-content>.text-field-content-within{position:relative;display:flex;flex-grow:1}.paraui-text-field>.text-field-content>.text-field-content-within>.clean-up-icon{display:flex;height:100%;align-items:center;margin-right:12px;cursor:pointer}.paraui-text-field>.text-field-content>.text-field-content-within>.clean-up-icon svg{color:rgba(46,55,67,.7);font-size:16px}.paraui-text-field>.text-field-content>.text-field-content-within>.clean-up-icon:hover svg{color:rgba(54,102,214,.8)}.paraui-text-field>.text-field-content>.text-field-content-within>.right-icon{display:flex;height:100%;align-items:center;margin-right:12px;cursor:pointer;color:rgba(46,55,67,.7);position:relative;z-index:1}.paraui-text-field>.text-field-content>.text-field-content-within>.right-icon.right-icon-password:hover svg{color:rgba(54,102,214,.8)}.paraui-text-field>.text-field-content>.text-field-content-within>.right-icon svg{color:rgba(46,55,67,.7);font-size:20px}.paraui-text-field>.text-field-content>.text-field-content-within>.length-limit{display:flex;height:100%;align-items:center;margin-right:12px;color:rgba(46,55,67,.7)}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input{width:100%;line-height:0;position:relative}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input::-webkit-outer-spin-button,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input::-webkit-inner-spin-button{-webkit-appearance:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input input[type=number]{-moz-appearance:textfield}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{width:100%;height:100%}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{width:100% !important;padding:12px;resize:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{font-size:14px;color:#2e3743;border:0;border-radius:4px;background:rgba(0,0,0,0)}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input::-ms-clear,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea::-ms-clear{display:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input::-ms-reveal,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea::-ms-reveal{display:none}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>input:disabled,.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea:disabled{background-color:rgba(0,0,0,0)}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{width:100%;position:absolute;left:0;top:0;height:100%;padding:0 12px;color:rgba(46,55,67,.4);cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paraui-text-field>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder>.text-field-required{margin-left:2px;color:#eb6054}.paraui-text-field>.text-field-content>.text-field-content-after{color:#2e3743;padding:0 12px;border-left:1px solid rgba(171,176,185,.4);background-color:rgba(171,176,185,.12);border-bottom-right-radius:4px;border-top-right-radius:4px;white-space:nowrap;display:flex;align-items:center}.paraui-text-field>.text-field-content>.text-field-content-after svg{font-size:20px}.paraui-text-field.text-field-multiline>.text-field-content .text-field-content-within>.clean-up-icon{display:none}.paraui-text-field.text-field-multiline>.text-field-content .text-field-content-within>.length-limit{position:absolute;height:22px;bottom:0;border-radius:4px;width:calc(100% - 12px);background:#fff;justify-content:flex-end;padding-bottom:8px;margin-right:0}.paraui-text-field.text-field-multiline>.text-field-content .text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{padding-top:12px;line-height:1;height:calc(100% - 24px)}.paraui-text-field.text-field-disabled>.text-field-content{background-color:rgba(171,176,185,.12)}.paraui-text-field.text-field-disabled>.text-field-content:hover{border-color:rgba(171,176,185,.4)}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-before{background-color:rgba(0,0,0,0)}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{cursor:not-allowed}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>input,.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{cursor:not-allowed}.paraui-text-field.text-field-disabled>.text-field-content>.text-field-content-after{background-color:rgba(0,0,0,0)}.paraui-text-field.text-field-disabled.text-field-multiline>.text-field-content .text-field-content-within>.length-limit{background-color:rgba(0,0,0,0)}.paraui-text-field.text-field-error>.text-field-content{border-color:#eb6054 !important}.paraui-text-field.text-field-error>.text-field-content:hover{border-color:#eb6054}.paraui-text-field.text-field-limit>.text-field-content{border-color:#eb6054 !important}.paraui-text-field.text-field-limit>.text-field-content:hover{border-color:#eb6054 !important}.paraui-text-field.text-field-limit-length>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{padding-bottom:25px}.paraui-text-field.text-field-focus>.text-field-content{border-color:#3666d6}.paraui-text-field.text-field-small>.text-field-content{height:28px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-before{line-height:26px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:26px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:6px 12px}.paraui-text-field.text-field-small>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:26px}.paraui-text-field.text-field-small>.text-field-content .text-field-content-after{line-height:26px}.paraui-text-field.text-field-medium>.text-field-content{height:32px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-before{line-height:30px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:30px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:8px 12px}.paraui-text-field.text-field-medium>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:30px}.paraui-text-field.text-field-medium>.text-field-content .text-field-content-after{line-height:30px}.paraui-text-field.text-field-large>.text-field-content{height:36px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-before{line-height:34px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input{height:34px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input>input{padding:10px 12px}.paraui-text-field.text-field-large>.text-field-content>.text-field-content-within>.text-field-content-within-input>.text-field-label-placeholder{line-height:34px}.paraui-text-field.text-field-large>.text-field-content .text-field-content-after{line-height:34px}.paraui-text-field.text-field-resize>.text-field-content>.text-field-content-within>.text-field-content-within-input>textarea{resize:both}.paraui-text-field-select.paraui-tooltip>div{max-width:none;padding:0;background-color:#fff;box-shadow:0px 2px 8px 0px rgba(171,176,185,.4);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}.paraui-text-field-select.paraui-tooltip>div>span{color:#fff}.paraui-text-field-select.paraui-tooltip>div .text-field-select-content{max-height:300px;overflow:auto}.paraui-text-field-select.paraui-tooltip>div .text-field-select-content>.text-field-select-content-item{display:flex;cursor:pointer;color:#2e3743;padding:0 12px}.paraui-text-field-select.paraui-tooltip>div .text-field-select-content>.text-field-select-content-item:hover{background-color:rgba(171,176,185,.12);color:#3666d6}.paraui-text-field-select.paraui-tooltip>div .text-field-select-content>.text-field-select-content-item.text-field-select-content-item-keydown{background-color:rgba(171,176,185,.12);color:#3666d6}.paraui-text-field-select.paraui-tooltip>div .text-field-select-content.text-field-select-content-loading{height:100px;position:relative;overflow:hidden}.paraui-text-field-select.paraui-tooltip.paraui-text-field-select-small>div .text-field-select-content>.text-field-select-content-item{line-height:28px}.paraui-text-field-select.paraui-tooltip.paraui-text-field-select-medium>div .text-field-select-content>.text-field-select-content-item{line-height:32px}.paraui-text-field-select.paraui-tooltip.paraui-text-field-select-large>div .text-field-select-content>.text-field-select-content-item{line-height:36px}.paraui-text-field-select.paraui-text-field-select-data.paraui-tooltip{padding:8px 0}",""]),e.exports=t},9929:function(e,t,i){(t=i(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,.7)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}",""]),e.exports=t},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",n=e[3];if(!n)return i;if(t&&"function"==typeof btoa){var o=(l=n,a=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(c," */")),r=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[i].concat(r).concat([o]).join("\n")}var l,a,c;return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var r=0;r<this.length;r++){var l=this[r][0];null!=l&&(o[l]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);n&&o[c[0]]||(i&&(c[2]?c[2]="".concat(i," and ").concat(c[2]):c[2]=i),t.push(c))}},t}},7418:function(e){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var t=Object.getOwnPropertySymbols,i=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={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;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,r){for(var l,a,c=o(e),d=1;d<arguments.length;d++){for(var s in l=Object(arguments[d]))i.call(l,s)&&(c[s]=l[s]);if(t){a=t(l);for(var u=0;u<a.length;u++)n.call(l,a[u])&&(c[a[u]]=l[a[u]])}}return c}},5251:function(e,t,i){"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
|
+
*/i(7418);var n=i(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;o=r("react.element"),t.Fragment=r("react.fragment")}var l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function d(e,t,i){var n,r={},d=null,s=null;for(n in void 0!==i&&(d=""+i),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(s=t.ref),t)a.call(t,n)&&!c.hasOwnProperty(n)&&(r[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===r[n]&&(r[n]=t[n]);return{$$typeof:o,type:e,key:d,ref:s,props:r,_owner:l.current}}t.jsx=d,t.jsxs=d},5893:function(e,t,i){"use strict";e.exports=i(5251)},9271:function(e,t,i){var n=i(3379),o=i(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},2113:function(e,t,i){var n=i(3379),o=i(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3936:function(e,t,i){var n=i(3379),o=i(9916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},9663:function(e,t,i){var n=i(3379),o=i(4928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3492:function(e,t,i){var n=i(3379),o=i(5714);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},6202:function(e,t,i){var n=i(3379),o=i(3637);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},2310:function(e,t,i){var n=i(3379),o=i(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3379:function(e,t,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),l=[];function a(e){for(var t=-1,i=0;i<l.length;i++)if(l[i].identifier===e){t=i;break}return t}function c(e,t){for(var i={},n=[],o=0;o<e.length;o++){var r=e[o],c=t.base?r[0]+t.base:r[0],d=i[c]||0,s="".concat(c," ").concat(d);i[c]=d+1;var u=a(s),f={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(l[u].references++,l[u].updater(f)):l.push({identifier:s,updater:g(f,t),references:1}),n.push(s)}return n}function d(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=i.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 l=r(e.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(t)}return t}var s,u=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function f(e,t,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=u(t,o);else{var r=document.createTextNode(o),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(r,l[t]):e.appendChild(r)}}function p(e,t,i){var n=i.css,o=i.media,r=i.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var x=null,h=0;function g(e,t){var i,n,o;if(t.singleton){var r=h++;i=x||(x=d(t)),n=f.bind(null,i,r,!1),o=f.bind(null,i,r,!0)}else i=d(t),n=p.bind(null,i,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};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 i=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var o=a(i[n]);l[o].references--}for(var r=c(e,t),d=0;d<i.length;d++){var s=a(i[d]);0===l[s].references&&(l[s].updater(),l.splice(s,1))}i=r}}}},7839:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(7371),l=(i(9271),function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)});t.default=function(e){var t=e.children,i=e.arrow,a=void 0!==i&&i,c=e.placement,d=void 0===c?"bottom-start":c,s=e.tips,u=void 0===s?"":s,f=e.className,p=void 0===f?"":f,x=e.beyondText,h=void 0===x||x,g=e.interactive,v=void 0===g||g,b=e.style,m=(0,o.useRef)(),w=(0,o.useState)(""),y=w[0],j=w[1];(0,o.useEffect)((function(){j(u)}),[u]);var O;return(0,n.jsx)("div",l({ref:m,className:(O="paraui-auto-tips",p&&(O+=" "+p),O),onMouseOver:function(){var e="";m.current&&m.current.scrollWidth>m.current.offsetWidth&&(e=u||(h?m.current.innerText:t)),j(e)},style:b},{children:(0,n.jsx)(r.default,l({arrow:a,title:y,placement:d,interactive:v,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,n.jsx)("div",l({className:"auto-tips-content"},{children:t}))}))}))}},3566:function(e,t,i){"use strict";var n=i(5893),o=i(7371),r=i(8076),l=i.n(r),a=i(5744),c=i.n(a),d=(i(2113),function(){return d=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)}),s=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[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])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t=e.title,i=void 0===t?"":t,r=e.children,a=e.arrow,u=void 0===a||a,f=e.interactive,p=void 0===f||f,x=e.className,h=e.placement,g=void 0===h?"top-start":h,v=s(e,["title","children","arrow","interactive","className","placement"]);return(0,n.jsx)(o.default,d({title:i,arrow:u,interactive:p,placement:g},v,{children:(0,n.jsx)("span",d({className:c()("paraui-help",x)},{children:r||(0,n.jsx)(l(),{})}))}))}},4254:function(e,t,i){"use strict";var n=i(5893),o=(i(3936),function(){return o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)});t.default=function(e){var t,i=e.className,r=e.style,l=e.error,a=void 0!==l&&l,c=e.helperText;return(0,n.jsx)("p",o({className:(t="paraui-helper-text",i&&(t+=" "+i),a&&(t+=" paraui-helper-text-error"),t),style:r},{children:c}))}},6010:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var n=i(8156),o=i.n(n),r=i(5395),l=i.n(r),a=function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function c(e,t){var i=o().useContext(l()).componentsProps,n=i&&i[t];return a(a({},n),e)}},8767:function(e,t,i){"use strict";var n=i(5893),o=i(3566),r=(i(9663),function(){return r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,l=e.label,a=e.labelSign,c=e.required,d=void 0!==c&&c,s=e.tooltip,u=e.tooltipType,f=void 0===u?"icon":u,p=e.placement,x=e.arrow,h=e.tooltipIcon,g=function(){var e="paraui-label";return f&&(e+=" paraui-label-"+f),s&&(e+=" paraui-label-tooltip"),t&&(e+=" "+t),e};return(0,n.jsxs)(n.Fragment,{children:["icon"===f&&(0,n.jsxs)("label",r({className:g(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:l}),d&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),a&&(0,n.jsx)("span",{children:a}),s&&(0,n.jsx)(o.default,r({title:s,placement:p,arrow:x},{children:h}))]})),"line"===f&&(0,n.jsx)(o.default,r({title:s||"",placement:p,arrow:x},{children:(0,n.jsxs)("label",r({className:g(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:l}),d&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),a&&(0,n.jsx)("span",{children:a})]}))}))]})}},7502:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(2788),l=i.n(r),a=(i(3492),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,r=e.opacity,c=void 0===r?.7:r,d=(0,o.useRef)(null);(0,o.useEffect)((function(){d&&d.current&&d.current.parentNode&&(d.current.parentNode.style.position||(d.current.parentNode.style.position="relative"))}),[]);var s;return(0,n.jsxs)("div",a({className:(s="paraui-loading",t&&(s+=" "+t),s),style:i,ref:d},{children:[(0,n.jsx)("div",a({className:"paraui-loading-box"},{children:(0,n.jsx)(l(),{})})),(0,n.jsx)("div",{className:"paraui-loading-mask",style:{opacity:c}})]}))}},7371:function(e,t,i){"use strict";var n=i(5893),o=i(670),r=i(5744),l=i.n(r),a=(i(2310),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)}),c=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[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])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t,i=e.placement,r=void 0===i?"top-start":i,d=e.className,s=e.arrow,u=void 0===s||s,f=e.PopperProps,p=e.boundariesElement,x=void 0===p?"scrollParent":p,h=c(e,["placement","className","arrow","PopperProps","boundariesElement"]),g=a(a({},e.classes),{popper:l()("paraui-tooltip",d,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==r?void 0:r.includes("left"))||(null==r?void 0:r.includes("right")),"paraui-tooltip-top-bottom":(null==r?void 0:r.includes("top"))||(null==r?void 0:r.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,a({},h,{enterTouchDelay:0,arrow:u,placement:r,classes:g,PopperProps:a(a({},f),{modifiers:{preventOverflow:{boundariesElement:x}}})}))}},670:function(e){"use strict";e.exports=t},5395:function(e){"use strict";e.exports=d},6788:function(e){"use strict";e.exports=a},8076:function(e){"use strict";e.exports=n},2788:function(e){"use strict";e.exports=c},5428:function(e){"use strict";e.exports=r},9979:function(e){"use strict";e.exports=l},8543:function(e){"use strict";e.exports=o},5744:function(e){"use strict";e.exports=i},8156:function(t){"use strict";t.exports=e}},u={};function f(e){var t=u[e];if(void 0!==t)return t.exports;var i=u[e]={id:e,exports:{}};return s[e](i,i.exports,f),i.exports}f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,{a:t}),t},f.d=function(e,t){for(var i in t)f.o(t,i)&&!f.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nc=void 0;var p={};return function(){"use strict";f.r(p),f.d(p,{TextField:function(){return w}});var e=f(5893),t=f(8156),i=f(8767),n=f(8543),o=f(5428),r=f.n(o),l=f(9979),a=f.n(l),c=f(6788),d=f.n(c),s=f(7839),u=f(7502),x=f(7371),h=f(4254),g=f(6010),v=(f(6202),function(){return v=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v.apply(this,arguments)}),b=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[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])&&(i[n[o]]=e[n[o]])}return i},m=function(e){return"number"==typeof e&&!isNaN(e)},w=function(o){var l=(0,g.Z)(o,"TextField"),c=l.className,f=l.style,p=l.size,w=void 0===p?"large":p,y=l.labelMode,j=void 0===y?"outside":y,O=l.placeholder,S=void 0===O?"":O,C=l.label,N=void 0===C?"":C,k=l.labelTooltip,P=l.disabled,M=void 0!==P&&P,q=l.multiline,E=void 0!==q&&q,_=l.required,F=void 0!==_&&_,L=l.labelSign,T=l.rows,z=void 0===T?2:T,H=l.error,I=void 0!==H&&H,B=l.helperText,R=void 0===B?"":B,U=l.addonBefore,D=void 0===U?"":U,A=l.addonAfter,K=void 0===A?"":A,Y=(l.defaultValue,l.value),J=l.autoFocus,W=void 0!==J&&J,G=l.type,Q=void 0===G?"text":G,V=l.onClickIcon,Z=l.rightIcon,$=l.showRightIcon,X=void 0===$||$,ee=l.allowClear,te=void 0!==ee&&ee,ie=l.limitLength,ne=l.fetchSuggestions,oe=l.selectPopoverClass,re=l.renderSelectItem,le=l.showSelectName,ae=void 0===le?"value":le,ce=l.resize,de=void 0===ce||ce,se=l.onBlur,ue=l.onFocus,fe=l.onChange,pe=l.onKeydown,xe=l.onKeyUp,he=l.onEnter,ge=l.onClickAddonBefore,ve=l.onClickAddonAfter,be=l.onSelect,me=l.onClear,we=b(l,["className","style","size","labelMode","placeholder","label","labelTooltip","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","allowClear","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","resize","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect","onClear"]),ye=(0,t.useState)("text-field-select-content-"+(0,n.UUID)())[0],je=(0,t.useState)(!0),Oe=je[0],Se=je[1],Ce=(0,t.useState)(""),Ne=Ce[0],ke=Ce[1],Pe=(0,t.useState)(!1),Me=Pe[0],qe=Pe[1],Ee=(0,t.useState)("text"),_e=Ee[0],Fe=Ee[1],Le=(0,t.useState)(!1),Te=Le[0],ze=Le[1],He=(0,t.useState)(!1),Ie=He[0],Be=He[1],Re=(0,t.useState)([]),Ue=Re[0],De=Re[1],Ae=(0,t.useRef)(null),Ke=(0,t.useRef)(null);(0,t.useEffect)((function(){void 0!==o.defaultValue&&ke(o.defaultValue)}),[]),(0,t.useEffect)((function(){Q!==_e&&Fe(Q)}),[Q]),(0,t.useEffect)((function(){void 0!==Y&&ke(Y)}),[Y]),(0,t.useEffect)((function(){Se(""===Ne||void 0===Ne)}),[Ne]),(0,t.useEffect)((function(){ne&&ze(Me)}),[Me,ne]),(0,t.useEffect)((function(){return Te?window.addEventListener("keydown",Ve):window.removeEventListener("keydown",Ve),function(){window.removeEventListener("keydown",Ve)}}),[Te]),(0,t.useEffect)((function(){if(!Me&&Ne){var e=Je(Ne);if(e!==Ne){var t={};t.target=Ae.current,t.target.value=e,void 0===o.value&&ke(e),o.onChange&&o.onChange(t)}}}),[Ne,Me]);var Ye,Je=function(e){var t=e;return m(o.limitLength)&&e.toString().length>Number(o.limitLength)&&(t=t.toString().substr(0,o.limitLength)),t},We=function(){M||(Se(!1),(Ae&&Ae.current).focus())},Ge=function(e){var t=e.selectDom,i=e.keyCode,n=e.currentDom,o="nextSibling",r=".text-field-select-content-item";38===i&&(o="previousSibling",r=".text-field-select-content-item:last-child"),n?(n=n[o])||(n=t.querySelector(r)):n=t.querySelector(".text-field-select-content-item"),n&&(n.classList.add("text-field-select-content-item-keydown"),Qe(n,t))},Qe=function(e,t){var i=t.clientHeight,n=e.offsetTop+e.clientHeight-i;t.scrollTop=n>0?n:0},Ve=function(e){var t=document.querySelector("."+ye),i=null,n=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&n){var o=n.dataset.val;lt(JSON.parse(o))(e),(Ae&&Ae.current).blur()}n&&(i=n,n.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Ge({selectDom:t,keyCode:e.keyCode,currentDom:i}),38===e.keyCode&&Ge({selectDom:t,keyCode:e.keyCode,currentDom:i})},Ze=function(e){qe(!1),""===e.target.value&&Se(!0),se&&se(e)},$e=function(e){ne&&(Be(!0),ne(e,(function(e){De(e||[]),Be(!1)})))},Xe=function(e){qe(!0),ue&&ue(e),$e(e.target.value)},et=function(e){var t=e.target.value;t&&Se(!1),void 0===o.value&&ke(t),fe&&fe(e),$e(e.target.value)},tt=function(e){13===e.keyCode&&he&&he(e),pe&&pe(e)},it=function(e){xe&&xe(e)},nt=function(e){"password"===Q&&("text"===_e&&Fe("password"),"password"===_e&&Fe("text")),V&&V(e)},ot=function(){return void 0===o.value?Ne:Y},rt=function(){ze(!1)},lt=function(e){return function(t){be&&be(e)}},at=(0,t.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:m(ie)&&(0,e.jsx)("span",v({className:"length-limit"},{children:(Ne?Ne.toString().length:0)+"/"+ie}))})}),[ie,Ne]),ct=(0,t.useMemo)((function(){var t=Z||("password"===Q?"password"===_e?(0,e.jsx)(r(),{}):(0,e.jsx)(a(),{}):null);return(0,e.jsx)(e.Fragment,{children:X&&t&&(0,e.jsx)("span",v({className:"password"===Q?"right-icon right-icon-password":"right-icon",onClick:nt},{children:t}))})}),[X,Z,Q,_e,V]),dt=function(){var e=Ae.current;e.value="",void 0===o.value&&ke(""),fe&&fe({target:e}),$e(""),me&&me()},st=function(){if(ot()&&!M&&te)return(0,e.jsx)("span",v({className:"clean-up-icon",onClick:dt},{children:(0,e.jsx)(d(),{})}))},ut=(0,t.useMemo)((function(){return(0,e.jsxs)("div",v({className:"text-field-content-within",ref:Ke},{children:[(0,e.jsxs)("div",v({className:"text-field-content-within-input"},{children:[E?(0,e.jsx)("textarea",v({ref:Ae,rows:z,value:ot(),onBlur:Ze,onFocus:Xe,onChange:et,onKeyDown:tt,onKeyUp:it,disabled:M},we)):(0,e.jsx)("input",v({ref:Ae,type:_e,value:ot(),onBlur:Ze,onFocus:Xe,onChange:et,onKeyDown:tt,onKeyUp:it,disabled:M},we)),Oe&&!Me&&(0,e.jsx)("span",v({className:"text-field-label-placeholder",onClick:We},{children:"outside"===j?S:(0,e.jsxs)(e.Fragment,{children:[N||S,F&&(0,e.jsx)("span",v({className:"text-field-required"},{children:"*"})),L&&(0,e.jsx)("span",{children:L})]})}))]})),st(),at,ct]}))}),[Oe,Me,W,_e,Ne,at,ct,j,S,N,M,E,z,we,fe,ne,V,te,me]),ft=(0,t.useMemo)((function(){var t,i=function(e){return"object"==typeof e&&null!==e?e[ae]:e};return(0,e.jsxs)("div",v({className:(t="text-field-select-content",Ie&&(t+=" text-field-select-content-loading"),ye&&(t+=" "+ye),t),style:{width:(Ke&&Ke.current?Ke.current.offsetWidth:0)+"px"}},{children:[Ue&&Ue.map((function(t,n){return(0,e.jsx)("div",v({className:"text-field-select-content-item",onMouseDown:lt(t),"data-val":JSON.stringify(t)},{children:re?re(t):(0,e.jsx)(s.default,{children:i(t)})}),n)})),Ie&&(0,e.jsx)(u.default,{})]}))}),[Ke,Te,Ue,re,ae,be,Ie,ye]),pt=(0,t.useMemo)((function(){return(0,e.jsx)(x.default,v({open:Te,title:ft,onClose:rt,arrow:!1,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,placement:"bottom-start",classes:{popper:(t="paraui-text-field-select paraui-scrollbar-small",w&&(t+=" paraui-text-field-select-"+w),oe&&(t+=" "+oe),Ue.length>0&&(t+=" paraui-text-field-select-data"),t)}},{children:ut}));var t}),[Oe,Me,W,_e,Ne,at,ct,j,S,N,M,E,z,we,fe,ne,be,Ke,Te,oe,w,V,Ue,te,me]),xt=(0,t.useMemo)((function(){var t,n=Boolean(F||L||N);if("outside"===j&&n){return(0,e.jsx)(i.default,v({label:N,required:F,labelSign:L},k,{className:(t="text-field-label",k&&k.className&&(t+=" "+k.className),t)}))}return null}),[j,N,L,F,k]);return(0,e.jsxs)("div",v({className:(Ye="paraui-text-field",Ye+=" text-field",w&&!E&&(Ye+=" text-field-"+w),c&&(Ye+=" "+c),I&&(Ye+=" text-field-error"),Me&&(Ye+=" text-field-focus"),M&&(Ye+=" text-field-disabled"),E&&(Ye+=" text-field-multiline"),m(o.limitLength)&&(Ye+=" text-field-limit-length"),m(o.limitLength)&&Ne&&Ne.toString().length>Number(o.limitLength)&&(Ye+=" text-field-limit"),de&&(Ye+=" text-field-resize"),ot()&&(Ye+=" text-field-value"),te&&(Ye+=" text-field-allow-clear"),Ye),style:f},{children:[xt,(0,e.jsxs)("div",v({className:"text-field-content"},{children:[D&&(0,e.jsx)("div",v({className:"text-field-content-before",onClick:function(e){ge&&ge(e)}},{children:D})),ne?pt:ut,K&&(0,e.jsx)("div",v({className:"text-field-content-after",onClick:function(e){ve&&ve(e)}},{children:K}))]})),(0,e.jsx)(h.default,{className:"text-field-error-text",error:I,helperText:R})]}))};p.default=w}(),p}()}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Moment } from 'moment';
|
|
3
|
+
import { PickerTimeProps, RangePickerTimeProps } from '../DatePicker/generatePicker';
|
|
4
|
+
export interface TimePickerLocale {
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
rangePlaceholder?: [string, string];
|
|
7
|
+
}
|
|
8
|
+
export interface TimeRangePickerProps extends Omit<RangePickerTimeProps<Moment>, 'picker'> {
|
|
9
|
+
popupClassName?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const RangePicker: React.ForwardRefExoticComponent<TimeRangePickerProps & React.RefAttributes<any>>;
|
|
12
|
+
export interface TimePickerProps extends Omit<PickerTimeProps<Moment>, 'picker'> {
|
|
13
|
+
addon?: () => React.ReactNode;
|
|
14
|
+
popupClassName?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<any>>;
|
|
17
|
+
declare type MergedTimePicker = typeof TimePicker & {
|
|
18
|
+
TimeRangePicker: typeof RangePicker;
|
|
19
|
+
RangePicker: typeof RangePicker;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: MergedTimePicker;
|
|
22
|
+
export default _default;
|