@para-ui/core 2.2.40 → 2.2.42
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 -34
- package/AutoTips/index.d.ts +27 -27
- package/AutoTips/index.js +1 -1
- package/Breadcrumbs/index.d.ts +39 -39
- package/Breadcrumbs/index.js +1 -1
- package/Button/SplitButton.d.ts +61 -61
- package/Button/index.d.ts +56 -56
- package/Button/lang/en_US.d.ts +4 -4
- package/Button/lang/index.d.ts +9 -9
- package/Button/lang/zh_CN.d.ts +4 -4
- package/ButtonGroup/index.d.ts +33 -33
- package/ButtonGroup/index.js +2 -2
- package/Carousel/index.d.ts +30 -30
- package/Cascader/index.d.ts +54 -54
- package/Cascader/lang/en_US.d.ts +4 -4
- package/Cascader/lang/index.d.ts +9 -9
- package/Cascader/lang/zh_CN.d.ts +4 -4
- package/Checkbox/index.d.ts +40 -40
- package/CheckboxGroup/index.d.ts +46 -46
- package/CheckboxGroup/index.js +2 -2
- package/Collapse/collapsePanel.d.ts +30 -30
- package/Collapse/index.d.ts +57 -57
- package/Collapse/motion.d.ts +5 -5
- package/Collapse/util.d.ts +11 -11
- package/CollapseBox/index.d.ts +27 -27
- package/CollapseBox/util.d.ts +5 -5
- package/CollapseLayout/index.d.ts +51 -51
- package/ColorPicker/index.d.ts +4 -4
- package/ComboSelect/WithTabsCombo/index.d.ts +11 -11
- package/ComboSelect/WithTabsCombo/interface.d.ts +141 -141
- package/ComboSelect/index.d.ts +11 -11
- package/ComboSelect/index.js +1 -1
- package/ComboSelect/interface.d.ts +149 -149
- package/ComboSelect/lang/en_US.d.ts +9 -9
- package/ComboSelect/lang/index.d.ts +19 -19
- package/ComboSelect/lang/zh_CN.d.ts +9 -9
- package/ComboSelect/utils.d.ts +12 -12
- package/Container/index.d.ts +77 -77
- package/DatePicker/PickerButton.d.ts +3 -3
- package/DatePicker/PickerTag.d.ts +3 -3
- package/DatePicker/generatePicker/generateRangePicker.d.ts +4 -4
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +11 -11
- package/DatePicker/generatePicker/index.d.ts +77 -77
- package/DatePicker/index.d.ts +18 -18
- package/DatePicker/lang/en_US.d.ts +3 -3
- package/DatePicker/lang/index.d.ts +7 -7
- package/DatePicker/lang/zh_CN.d.ts +3 -3
- package/DatePicker/util.d.ts +20 -20
- package/Desktop/index.d.ts +55 -55
- package/Drawer/index.d.ts +11 -11
- package/Drawer/interface.d.ts +83 -83
- package/Drawer/lang/en_US.d.ts +5 -5
- package/Drawer/lang/index.d.ts +11 -11
- package/Drawer/lang/zh_CN.d.ts +5 -5
- package/Dropdown/index.d.ts +39 -39
- package/DynamicMultiBox/formItem.d.ts +13 -13
- package/DynamicMultiBox/index.d.ts +4 -4
- package/DynamicMultiBox/index.js +2 -2
- package/DynamicMultiBox/interface.d.ts +161 -161
- package/DynamicMultiBox/rowForm.d.ts +24 -24
- package/Empty/images/index.d.ts +2 -2
- package/Empty/index.d.ts +30 -30
- package/Empty/lang/en_US.d.ts +6 -6
- package/Empty/lang/index.d.ts +13 -13
- package/Empty/lang/zh_CN.d.ts +6 -6
- package/Form/index.d.ts +181 -181
- package/Form/index.js +2 -2
- package/FormItem/compoments/defaultCompoments/index.d.ts +19 -19
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +8 -8
- package/FormItem/compoments/formFile/index.d.ts +38 -38
- package/FormItem/compoments/formRadioGroup/index.d.ts +8 -8
- package/FormItem/compoments/formSelect/index.d.ts +18 -18
- package/FormItem/errorTips.d.ts +12 -12
- package/FormItem/index.d.ts +152 -152
- package/FormItem/index.js +2 -2
- package/FormItem/itemType.d.ts +42 -42
- package/FormItem/validateFunction.d.ts +15 -15
- package/FunctionModal/dialog.d.ts +58 -58
- package/FunctionModal/index.d.ts +8 -8
- package/FunctionModal/modalContext.d.ts +14 -14
- package/GlobalContext/componentsProps.d.ts +21 -21
- package/GlobalContext/confirmLocale.d.ts +7 -7
- package/GlobalContext/constant.d.ts +7 -7
- package/GlobalContext/index.d.ts +28 -28
- package/GlobalContext/intl.d.ts +34 -34
- package/GlobalContext/useFormatMessage.d.ts +3 -3
- package/Help/index.d.ts +20 -20
- package/HelperText/index.d.ts +19 -19
- package/Hooks/useGlobalProps.d.ts +1 -1
- package/InputLang/index.d.ts +49 -49
- package/InputLang/index.js +1 -1
- package/InputNumber/index.d.ts +74 -74
- package/Label/index.d.ts +35 -35
- package/Loading/index.d.ts +17 -17
- package/Menu/footerExpansion.d.ts +9 -9
- package/Menu/index.d.ts +10 -10
- package/Menu/interface.d.ts +139 -139
- package/Menu/logo.d.ts +9 -9
- package/Menu/verticalMenuList.d.ts +14 -14
- package/Message/index.d.ts +73 -73
- package/Modal/Confirm/index.d.ts +66 -66
- package/Modal/index.d.ts +61 -61
- package/Modal/lang/en_US.d.ts +5 -5
- package/Modal/lang/index.d.ts +11 -11
- package/Modal/lang/zh_CN.d.ts +5 -5
- package/MultiBox/index.d.ts +54 -54
- package/MultiBox/index.js +3 -3
- package/Notification/index.d.ts +52 -52
- package/OperateBtn/index.d.ts +59 -59
- package/OperateBtn/index.js +1 -1
- package/OperateBtn/lang/en_US.d.ts +4 -4
- package/OperateBtn/lang/index.d.ts +9 -9
- package/OperateBtn/lang/zh_CN.d.ts +4 -4
- package/PageHeader/horizontalMeun.d.ts +9 -9
- package/PageHeader/horizontalMeunRight.d.ts +9 -9
- package/PageHeader/index.d.ts +10 -10
- package/PageHeader/interface.d.ts +167 -167
- package/Pagination/index.d.ts +33 -33
- package/Pagination/index.js +1 -1
- package/Pagination/lang/en_US.d.ts +8 -8
- package/Pagination/lang/index.d.ts +17 -17
- package/Pagination/lang/zh_CN.d.ts +8 -8
- package/ParauiProvider/index.d.ts +12 -12
- package/PasswordRules/index.d.ts +46 -46
- package/PopConfirm/index.d.ts +56 -56
- package/PopConfirm/lang/en_US.d.ts +5 -5
- package/PopConfirm/lang/index.d.ts +11 -11
- package/PopConfirm/lang/zh_CN.d.ts +5 -5
- package/Popover/index.d.ts +14 -14
- package/PopoverNew/TooltipNew/index.d.ts +11 -11
- package/PopoverNew/TooltipNew/interface.d.ts +31 -31
- package/PopoverNew/TooltipNew/utils.d.ts +18 -18
- package/PopoverNew/index.d.ts +16 -16
- package/Popper/index.d.ts +13 -13
- package/Progress/Line.d.ts +47 -47
- package/Progress/Steps.d.ts +17 -17
- package/Progress/index.d.ts +81 -81
- package/Progress/utils.d.ts +6 -6
- package/Querying/images/index.d.ts +2 -2
- package/Querying/index.d.ts +26 -26
- package/Querying/lang/en_US.d.ts +4 -4
- package/Querying/lang/index.d.ts +9 -9
- package/Querying/lang/zh_CN.d.ts +4 -4
- package/README.md +750 -739
- package/Radio/index.d.ts +38 -38
- package/RadioGroup/index.d.ts +47 -47
- package/RadioGroup/index.js +2 -2
- package/Search/index.d.ts +56 -56
- package/Search/index.js +1 -1
- package/Select/index.d.ts +96 -96
- package/Select/index.js +1 -1
- package/Select/lang/en_US.d.ts +5 -5
- package/Select/lang/index.d.ts +11 -11
- package/Select/lang/zh_CN.d.ts +5 -5
- package/SelectInput/index.d.ts +11 -11
- package/SelectInput/index.js +1 -1
- package/Selector/index.d.ts +11 -11
- package/Selector/index.js +2 -2
- package/Selector/interface.d.ts +428 -428
- package/Selector/lang/en_US.d.ts +11 -11
- package/Selector/lang/index.d.ts +23 -23
- package/Selector/lang/zh_CN.d.ts +11 -11
- package/Selector/selectorData/index.d.ts +10 -10
- package/Selector/selectorMain/index.d.ts +10 -10
- package/Selector/selectorNode/index.d.ts +10 -10
- package/Selector/util.d.ts +15 -15
- package/SelectorPicker/index.d.ts +53 -53
- package/SelectorPicker/index.js +2 -2
- package/SingleBox/index.d.ts +42 -42
- package/SingleBox/index.js +1 -1
- package/Slider/index.d.ts +14 -14
- package/Slider/interface.d.ts +102 -102
- package/Split/index.d.ts +7 -7
- package/Stepper/icons.d.ts +5 -5
- package/Stepper/index.d.ts +39 -39
- package/Switch/index.d.ts +78 -78
- package/Table/index.d.ts +10 -10
- package/Table/index.js +1 -1
- package/Table/interface.d.ts +271 -271
- package/Table/lang/en_US.d.ts +8 -8
- package/Table/lang/index.d.ts +17 -17
- package/Table/lang/zh_CN.d.ts +8 -8
- package/Table/tableBody.d.ts +9 -9
- package/Table/tableBodyElement/index.d.ts +15 -15
- package/Table/tableBodyInterface.d.ts +67 -67
- package/Table/tableContainer/index.d.ts +16 -16
- package/Table/tableElement/index.d.ts +15 -15
- package/Table/tableHead.d.ts +9 -9
- package/Table/tableHeadElement/index.d.ts +15 -15
- package/Table/tableHeadInterface.d.ts +30 -30
- package/Table/tablePagination.d.ts +9 -9
- package/Table/tablePaginationInterFace.d.ts +24 -24
- package/Table/tdElement/index.d.ts +15 -15
- package/Table/thElement/index.d.ts +15 -15
- package/Table/trElement/index.d.ts +15 -15
- package/Table/util.d.ts +28 -28
- package/Tabs/index.d.ts +48 -48
- package/Tag/TagGroup.d.ts +66 -66
- package/Tag/index.d.ts +34 -34
- package/TextField/index.d.ts +95 -95
- package/TextField/index.js +1 -1
- package/TimePicker/index.d.ts +22 -22
- package/TimePicker/locale/en_US.d.ts +3 -3
- package/TimePicker/locale/zh_CN.d.ts +3 -3
- package/TimePicker/style/index.d.ts +1 -1
- package/Timeline/index.d.ts +22 -22
- package/Title/index.d.ts +30 -30
- package/ToggleButton/ToggleButtonGroup.d.ts +49 -49
- package/ToggleButton/index.d.ts +49 -49
- package/Tooltip/index.d.ts +14 -14
- package/Transfer/index.d.ts +37 -37
- package/Transfer/index.js +1 -1
- package/Transfer/lang/en_US.d.ts +8 -8
- package/Transfer/lang/index.d.ts +17 -17
- package/Transfer/lang/zh_CN.d.ts +8 -8
- package/Tree/OperateBar/index.d.ts +13 -13
- package/Tree/Tree.d.ts +4 -4
- package/Tree/index.d.ts +5 -5
- package/Tree/index.js +1 -1
- package/Tree/interface.d.ts +207 -207
- package/Tree/lang/en_US.d.ts +8 -8
- package/Tree/lang/index.d.ts +17 -17
- package/Tree/lang/zh_CN.d.ts +8 -8
- package/Tree/utils/tools.d.ts +26 -26
- package/Tree/utils/treeUtil.d.ts +15 -15
- package/Upload/Dragger/index.d.ts +10 -10
- package/Upload/ErroTip/index.d.ts +13 -13
- package/Upload/ImageUpload/index.d.ts +14 -14
- package/Upload/ImgCrop/EasyCrop.d.ts +17 -17
- package/Upload/ImgCrop/constants.d.ts +7 -7
- package/Upload/ImgCrop/index.d.ts +6 -6
- package/Upload/ImgCrop/interface.d.ts +48 -48
- package/Upload/UploadList/index.d.ts +5 -5
- package/Upload/index.d.ts +15 -15
- package/Upload/interface.d.ts +134 -134
- package/Upload/lang/en_US.d.ts +12 -12
- package/Upload/lang/index.d.ts +25 -25
- package/Upload/lang/zh_CN.d.ts +12 -12
- package/cdn/AutoTips/index.js +1 -1
- package/cdn/Breadcrumbs/index.js +1 -1
- package/cdn/ButtonGroup/index.js +2 -2
- package/cdn/Cascader/index.js +6 -6
- package/cdn/CheckboxGroup/index.js +2 -2
- package/cdn/ColorPicker/index.js +1 -1
- package/cdn/ComboSelect/index.js +2 -2
- package/cdn/DatePicker/index.js +8 -8
- package/cdn/Dropdown/index.js +3 -3
- package/cdn/DynamicMultiBox/index.js +7 -7
- package/cdn/Form/index.js +3 -3
- package/cdn/FormItem/index.js +3 -3
- package/cdn/InputLang/index.js +1 -1
- package/cdn/MultiBox/index.js +1 -1
- package/cdn/OperateBtn/index.js +1 -1
- package/cdn/Pagination/index.js +2 -2
- package/cdn/PopoverNew/index.js +3 -3
- package/cdn/RadioGroup/index.js +2 -2
- package/cdn/Search/index.js +5 -5
- package/cdn/Select/index.js +2 -2
- package/cdn/SelectInput/index.js +2 -2
- package/cdn/Selector/index.js +10 -10
- package/cdn/SelectorPicker/index.js +10 -10
- package/cdn/SingleBox/index.js +1 -1
- package/cdn/Slider/index.js +3 -3
- package/cdn/Table/index.js +2 -2
- package/cdn/Tabs/index.js +1 -1
- package/cdn/TextField/index.js +1 -1
- package/cdn/TimePicker/index.js +10 -10
- package/cdn/Transfer/index.js +1 -1
- package/cdn/Tree/index.js +1 -1
- package/cdn/Upload/index.js +10 -10
- package/index.d.ts +142 -142
- package/index.js +2 -2
- package/package.json +131 -131
- package/style.css +1 -1
package/CheckboxGroup/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core"),require("clsx"),require("@para-ui/icons/Help"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","clsx","@para-ui/icons/Help","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@material-ui/core"),require("clsx"),require("@para-ui/icons/Help"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@material-ui/core"],e.clsx,e["@para-ui/icons/Help"],e["@paraview/lib"])}(self,(function(e,r,o,a,t){return function(){var i={
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core"),require("clsx"),require("@para-ui/icons/Help"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","clsx","@para-ui/icons/Help","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@material-ui/core"),require("clsx"),require("@para-ui/icons/Help"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@material-ui/core"],e.clsx,e["@para-ui/icons/Help"],e["@paraview/lib"])}(self,(function(e,r,o,a,t){return function(){var i={1204:function(e,r,o){(r=o(3645)(!1)).push([e.id,'.paraui-check-box{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;cursor:pointer;display:inline-flex;align-items:flex-start;line-height:16px}.paraui-check-box:hover>.paraui-check-box-label{color:rgba(54,102,214,.8);cursor:pointer}.paraui-check-box:hover>.paraui-check-box-label svg{color:rgba(54,102,214,.8)}.paraui-check-box:hover>.paraui-help{padding:0 8px}.paraui-check-box:hover>.paraui-help>.paraui-check-box-label{color:rgba(54,102,214,.8);cursor:pointer}.paraui-check-box:hover>.paraui-help>.paraui-check-box-label svg{color:rgba(54,102,214,.8)}.paraui-check-box:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{border-color:rgba(54,102,214,.8)}.paraui-check-box>.paraui-checkbox-box{position:relative}.paraui-check-box>.paraui-checkbox-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner{position:relative;top:0;left:0;display:block;border-radius:2px;background-color:#fff;border:1px solid rgba(171,176,185,.4)}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{position:absolute;display:table;content:" "}.paraui-check-box>.paraui-check-box-label{color:#2e3743;padding:0 8px;margin:0;display:inline-flex;align-items:flex-start}.paraui-check-box>.paraui-check-box-label>.paraui-help>svg{top:0}.paraui-check-box .paraui-label{line-height:16px}.paraui-check-box>.paraui-help{padding:0 8px}.paraui-check-box>.paraui-help>.paraui-check-box-label{color:#2e3743;margin:0;display:inline-flex;align-items:center}.paraui-check-box.check-box-checked:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(54,102,214,.8);border-color:rgba(0,0,0,0)}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border:1px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%, -50%)}.paraui-check-box.check-box-indeterminate:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(54,102,214,.8);border-color:rgba(0,0,0,0)}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:#fff;top:50%;left:50%;transform:translate(-50%, -50%) scale(1)}.paraui-check-box.check-box-disabled{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label{color:rgba(46,55,67,.4);cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label svg{color:rgba(46,55,67,.4)}.paraui-check-box.check-box-disabled>.paraui-help>.paraui-check-box-label{color:rgba(46,55,67,.4);cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-help>.paraui-check-box-label svg{color:rgba(46,55,67,.4)}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>input{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,.12);border-color:rgba(171,176,185,.4)}.paraui-check-box.check-box-disabled.check-box-checked:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,.12);border-color:rgba(171,176,185,.4)}.paraui-check-box.check-box-disabled.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border-color:rgba(46,55,67,.4)}.paraui-check-box.check-box-disabled.check-box-indeterminate:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,.12);border-color:rgba(171,176,185,.4)}.paraui-check-box.check-box-disabled.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:rgba(46,55,67,.4)}.paraui-check-box.check-box-small>.paraui-checkbox-box{top:1px}.paraui-check-box.check-box-small>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:14px;height:14px}.paraui-check-box.check-box-small.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:4px;height:7px}.paraui-check-box.check-box-small.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-medium>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-medium.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-medium.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}.paraui-check-box.check-box-large>.paraui-checkbox-box>.paraui-checkbox-box-inner{width:16px;height:16px}.paraui-check-box.check-box-large.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{top:45%;left:21%;width:5px;height:8px}.paraui-check-box.check-box-large.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{width:8px;height:1px}',""]),e.exports=r},9974:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-check-box-group{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;width:100%}.paraui-check-box-group>.check-box-group-content{line-height:0}.paraui-check-box-group.check-box-group-column>.check-box-group-content{display:flex;flex-direction:column}.paraui-check-box-group.check-box-group-column>.check-box-group-content>.paraui-check-box{margin-bottom:8px}.paraui-check-box-group.check-box-group-column>.check-box-group-content>.paraui-check-box:last-child{margin-bottom:0}",""]),e.exports=r},7381:function(e,r,o){(r=o(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=r},9916:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-helper-text{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:400;padding-left:12px;line-height:20px;color:rgba(46,55,67,.7)}.paraui-helper-text.paraui-helper-text-error{color:#eb6054}",""]),e.exports=r},4928:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-label{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;color:rgba(46,55,67,.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=r},9929:function(e,r,o){(r=o(3645)(!1)).push([e.id,".paraui-tooltip>div{padding-left:12px;padding-right:12px;font-size:14px;font-weight:400;color:#fff;background-color:rgba(46,55,67,.7)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var o=function(e,r){var o=e[1]||"",a=e[3];if(!a)return o;if(r&&"function"==typeof btoa){var t=(c=a,n=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(l," */")),i=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(i).concat([t]).join("\n")}var c,n,l;return[o].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(o,"}"):o})).join("")},r.i=function(e,o,a){"string"==typeof e&&(e=[[null,e,""]]);var t={};if(a)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(t[c]=!0)}for(var n=0;n<e.length;n++){var l=[].concat(e[n]);a&&t[l[0]]||(o&&(l[2]?l[2]="".concat(o," and ").concat(l[2]):l[2]=o),r.push(l))}},r}},7418:function(e){"use strict";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
@@ -11,4 +11,4 @@ object-assign
|
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/o(7418);var a=o(8156),t=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;t=i("react.element"),r.Fragment=i("react.fragment")}var c=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,o){var a,i={},u=null,p=null;for(a in void 0!==o&&(u=""+o),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(p=r.ref),r)n.call(r,a)&&!l.hasOwnProperty(a)&&(i[a]=r[a]);if(e&&e.defaultProps)for(a in r=e.defaultProps)void 0===i[a]&&(i[a]=r[a]);return{$$typeof:t,type:e,key:u,ref:p,props:i,_owner:c.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,o){"use strict";e.exports=o(5251)},7708:function(e,r,o){var a=o(3379),t=o(9974);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);var i={insert:("body","body"),singleton:!1};a(t,i);e.exports=t.locals||{}},9036:function(e,r,o){var a=o(3379),t=o(1204);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);var i={insert:("body","body"),singleton:!1};a(t,i);e.exports=t.locals||{}},2113:function(e,r,o){var a=o(3379),t=o(7381);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);var i={insert:("body","body"),singleton:!1};a(t,i);e.exports=t.locals||{}},3936:function(e,r,o){var a=o(3379),t=o(9916);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);var i={insert:("body","body"),singleton:!1};a(t,i);e.exports=t.locals||{}},9663:function(e,r,o){var a=o(3379),t=o(4928);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);var i={insert:("body","body"),singleton:!1};a(t,i);e.exports=t.locals||{}},2310:function(e,r,o){var a=o(3379),t=o(9929);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);var i={insert:("body","body"),singleton:!1};a(t,i);e.exports=t.locals||{}},3379:function(e,r,o){"use strict";var a,t=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},i=function(){var e={};return function(r){if(void 0===e[r]){var o=document.querySelector(r);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[r]=o}return e[r]}}(),c=[];function n(e){for(var r=-1,o=0;o<c.length;o++)if(c[o].identifier===e){r=o;break}return r}function l(e,r){for(var o={},a=[],t=0;t<e.length;t++){var i=e[t],l=r.base?i[0]+r.base:i[0],u=o[l]||0,p="".concat(l," ").concat(u);o[l]=u+1;var s=n(p),b={css:i[1],media:i[2],sourceMap:i[3]};-1!==s?(c[s].references++,c[s].updater(b)):c.push({identifier:p,updater:f(b,r),references:1}),a.push(p)}return a}function u(e){var r=document.createElement("style"),a=e.attributes||{};if(void 0===a.nonce){var t=o.nc;t&&(a.nonce=t)}if(Object.keys(a).forEach((function(e){r.setAttribute(e,a[e])})),"function"==typeof e.insert)e.insert(r);else{var c=i(e.insert||"head");if(!c)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");c.appendChild(r)}return r}var p,s=(p=[],function(e,r){return p[e]=r,p.filter(Boolean).join("\n")});function b(e,r,o,a){var t=o?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(e.styleSheet)e.styleSheet.cssText=s(r,t);else{var i=document.createTextNode(t),c=e.childNodes;c[r]&&e.removeChild(c[r]),c.length?e.insertBefore(i,c[r]):e.appendChild(i)}}function h(e,r,o){var a=o.css,t=o.media,i=o.sourceMap;if(t?e.setAttribute("media",t):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=a;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}var d=null,x=0;function f(e,r){var o,a,t;if(r.singleton){var i=x++;o=d||(d=u(r)),a=b.bind(null,o,i,!1),t=b.bind(null,o,i,!0)}else o=u(r),a=h.bind(null,o,r),t=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return a(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;a(e=r)}else t()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=t());var o=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var a=0;a<o.length;a++){var t=n(o[a]);c[t].references--}for(var i=l(e,r),u=0;u<o.length;u++){var p=n(o[u]);0===c[p].references&&(c[p].updater(),c.splice(p,1))}o=i}}}},9690:function(e,r,o){"use strict";var a=o(5893),t=o(8156),i=o(8767),c=(o(9036),function(){return c=Object.assign||function(e){for(var r,o=1,a=arguments.length;o<a;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e},c.apply(this,arguments)});r.default=function(e){var r=e.className,o=void 0===r?"":r,n=e.label,l=void 0===n?"":n,u=e.labelTooltip,p=e.size,s=void 0===p?"large":p,b=e.disabled,h=void 0!==b&&b,d=e.indeterminate,x=void 0!==d&&d,f=e.onChange,k=e.style,g=(0,t.useState)(!1),v=g[0],m=g[1];(0,t.useEffect)((function(){void 0!==e.defaultChecked&&m(e.defaultChecked)}),[]),(0,t.useEffect)((function(){void 0!==e.checked&&m(e.checked)}),[e.checked]);var y;return(0,a.jsxs)("label",c({className:(y="paraui-check-box",o&&(y+=" "+o),s&&(y+=" check-box-"+s),h&&(y+=" check-box-disabled"),x?y+=" check-box-indeterminate":v&&(y+=" check-box-checked"),y),onClick:function(r){if(r.preventDefault(),!h){if(x)return void 0===e.checked&&m(!0),void(f&&f(r,!0));void 0===e.checked&&m(!v),r.target.checked=!v,r.target.value=!v,f&&f(r,!v)}},style:k},{children:[(0,a.jsxs)("span",c({className:"paraui-checkbox-box"},{children:[(0,a.jsx)("input",c({type:"checkbox",value:v},e.inputProps)),(0,a.jsx)("span",{className:"paraui-checkbox-box-inner"})]})),void 0!==l&&""!==l&&null!==l?(0,a.jsx)(i.default,c({label:l},u,{className:function(){var e="paraui-check-box-label";return u&&u.className&&(e+=" "+u.className),e}()})):null]}))}},3566:function(e,r,o){"use strict";var a=o(5893),t=o(7371),i=o(8076),c=o.n(i),n=o(5744),l=o.n(n),u=(o(2113),function(){return u=Object.assign||function(e){for(var r,o=1,a=arguments.length;o<a;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e},u.apply(this,arguments)}),p=function(e,r){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(o[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(a=Object.getOwnPropertySymbols(e);t<a.length;t++)r.indexOf(a[t])<0&&Object.prototype.propertyIsEnumerable.call(e,a[t])&&(o[a[t]]=e[a[t]])}return o};r.default=function(e){var r=e.title,o=void 0===r?"":r,i=e.children,n=e.arrow,s=void 0===n||n,b=e.interactive,h=void 0===b||b,d=e.className,x=e.placement,f=void 0===x?"top-start":x,k=p(e,["title","children","arrow","interactive","className","placement"]);return(0,a.jsx)(t.default,u({title:o,arrow:s,interactive:h,placement:f},k,{children:(0,a.jsx)("span",u({className:l()("paraui-help",d)},{children:i||(0,a.jsx)(c(),{})}))}))}},4254:function(e,r,o){"use strict";var a=o(5893),t=(o(3936),function(){return t=Object.assign||function(e){for(var r,o=1,a=arguments.length;o<a;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e},t.apply(this,arguments)});r.default=function(e){var r,o=e.className,i=e.style,c=e.error,n=void 0!==c&&c,l=e.helperText;return(0,a.jsx)("p",t({className:(r="paraui-helper-text",o&&(r+=" "+o),n&&(r+=" paraui-helper-text-error"),r),style:i},{children:l}))}},8767:function(e,r,o){"use strict";var a=o(5893),t=o(3566),i=(o(9663),function(){return i=Object.assign||function(e){for(var r,o=1,a=arguments.length;o<a;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e},i.apply(this,arguments)});r.default=function(e){var r=e.className,o=e.style,c=e.label,n=e.labelSign,l=e.required,u=void 0!==l&&l,p=e.tooltip,s=e.tooltipType,b=void 0===s?"icon":s,h=e.placement,d=e.arrow,x=e.tooltipIcon,f=function(){var e="paraui-label";return b&&(e+=" paraui-label-"+b),p&&(e+=" paraui-label-tooltip"),r&&(e+=" "+r),e};return(0,a.jsxs)(a.Fragment,{children:["icon"===b&&(0,a.jsxs)("label",i({className:f(),style:o},{children:[(0,a.jsx)(a.Fragment,{children:c}),u&&(0,a.jsx)("span",i({className:"paraui-label-required"},{children:"*"})),n&&(0,a.jsx)("span",{children:n}),p&&(0,a.jsx)(t.default,i({title:p,placement:h,arrow:d},{children:x}))]})),"line"===b&&(0,a.jsx)(t.default,i({title:p||"",placement:h,arrow:d},{children:(0,a.jsxs)("label",i({className:f(),style:o},{children:[(0,a.jsx)(a.Fragment,{children:c}),u&&(0,a.jsx)("span",i({className:"paraui-label-required"},{children:"*"})),n&&(0,a.jsx)("span",{children:n})]}))}))]})}},7371:function(e,r,o){"use strict";var a=o(5893),t=o(670),i=o(5744),c=o.n(i),n=(o(2310),function(){return n=Object.assign||function(e){for(var r,o=1,a=arguments.length;o<a;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e},n.apply(this,arguments)}),l=function(e,r){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(o[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(a=Object.getOwnPropertySymbols(e);t<a.length;t++)r.indexOf(a[t])<0&&Object.prototype.propertyIsEnumerable.call(e,a[t])&&(o[a[t]]=e[a[t]])}return o};r.default=function(e){var r,o=e.placement,i=void 0===o?"top-start":o,u=e.className,p=e.arrow,s=void 0===p||p,b=e.PopperProps,h=e.boundariesElement,d=void 0===h?"scrollParent":h,x=l(e,["placement","className","arrow","PopperProps","boundariesElement"]),f=n(n({},e.classes),{popper:c()("paraui-tooltip",u,null===(r=e.classes)||void 0===r?void 0:r.popper,{"paraui-tooltip-left-right":(null==i?void 0:i.includes("left"))||(null==i?void 0:i.includes("right")),"paraui-tooltip-top-bottom":(null==i?void 0:i.includes("top"))||(null==i?void 0:i.includes("bottom"))})});return(0,a.jsx)(t.Tooltip,n({},x,{enterTouchDelay:0,arrow:s,placement:i,classes:f,PopperProps:n(n({},b),{modifiers:{preventOverflow:{boundariesElement:d}}})}))}},670:function(e){"use strict";e.exports=r},8076:function(e){"use strict";e.exports=a},8543:function(e){"use strict";e.exports=t},5744:function(e){"use strict";e.exports=o},8156:function(r){"use strict";r.exports=e}},c={};function n(e){var r=c[e];if(void 0!==r)return r.exports;var o=c[e]={id:e,exports:{}};return i[e](o,o.exports,n),o.exports}n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},n.d=function(e,r){for(var o in r)n.o(r,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var l={};return function(){"use strict";n.r(l),n.d(l,{CheckboxGroup:function(){return u}});var e=n(8156),r=n(5893),o=n(9690),a=n(8767),t=n(4254),i=n(8543),c=(n(7708),function(){return c=Object.assign||function(e){for(var r,o=1,a=arguments.length;o<a;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e},c.apply(this,arguments)}),u=function(n){var l=n.label,u=void 0===l?"":l,p=n.labelTooltip,s=n.size,b=void 0===s?"large":s,h=n.row,d=void 0===h||h,x=n.disabled,f=void 0!==x&&x,k=n.required,g=void 0!==k&&k,v=n.error,m=void 0!==v&&v,y=n.helperText,j=void 0===y?"":y,w=n.id,O=void 0===w?"name":w,S=n.list,N=n.className,C=void 0===N?"":N,P=n.onChange,_=n.style,M=(0,e.useState)([]),E=M[0],H=M[1];(0,e.useEffect)((function(){void 0!==n.defaultValue&&H(n.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==n.value&&H(n.value)}),[n.value]);var T,q=function(e){return function(r,o){var a=e[O],t=(0,i.DeepClone)(E);if(o)t.push(a);else{var c=t.indexOf(a);t.splice(c,1)}void 0===n.value&&H(t),P&&P(t)}};return(0,r.jsxs)("div",c({className:(T="paraui-check-box-group",C&&(T+=" "+C),b&&(T+=" check-box-group-"+b),m&&(T+=" check-box-group-error"),f&&(T+=" check-box-group-disabled"),T+=d?" check-box-group-row":" check-box-group-column"),style:_},{children:[function(){if(u||g){return(0,r.jsx)(a.default,c({label:u,required:g},p,{className:(e="check-box-group-label",p&&p.className&&(e+=" "+p.className),e)}))}var e;return null}(),(0,r.jsx)("div",c({className:"check-box-group-content"},{children:S.map((function(r,a){return(0,e.createElement)(o.default,c({},r,{checked:-1!==E.indexOf(r[O]),size:b,disabled:Boolean(f||r.disabled),key:a,onChange:q(r)}))}))})),(0,r.jsx)(t.default,{className:"check-box-group-error-text",error:m,helperText:j})]}))};l.default=u}(),l}()}));
|
|
14
|
+
*/o(7418);var a=o(8156),t=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;t=i("react.element"),r.Fragment=i("react.fragment")}var c=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,o){var a,i={},u=null,p=null;for(a in void 0!==o&&(u=""+o),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(p=r.ref),r)n.call(r,a)&&!l.hasOwnProperty(a)&&(i[a]=r[a]);if(e&&e.defaultProps)for(a in r=e.defaultProps)void 0===i[a]&&(i[a]=r[a]);return{$$typeof:t,type:e,key:u,ref:p,props:i,_owner:c.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,o){"use strict";e.exports=o(5251)},9036:function(e,r,o){var a=o(3379),t=o(1204);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);var i={insert:("body","body"),singleton:!1};a(t,i);e.exports=t.locals||{}},7708:function(e,r,o){var a=o(3379),t=o(9974);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);var i={insert:("body","body"),singleton:!1};a(t,i);e.exports=t.locals||{}},2113:function(e,r,o){var a=o(3379),t=o(7381);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);var i={insert:("body","body"),singleton:!1};a(t,i);e.exports=t.locals||{}},3936:function(e,r,o){var a=o(3379),t=o(9916);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);var i={insert:("body","body"),singleton:!1};a(t,i);e.exports=t.locals||{}},9663:function(e,r,o){var a=o(3379),t=o(4928);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);var i={insert:("body","body"),singleton:!1};a(t,i);e.exports=t.locals||{}},2310:function(e,r,o){var a=o(3379),t=o(9929);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);var i={insert:("body","body"),singleton:!1};a(t,i);e.exports=t.locals||{}},3379:function(e,r,o){"use strict";var a,t=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},i=function(){var e={};return function(r){if(void 0===e[r]){var o=document.querySelector(r);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[r]=o}return e[r]}}(),c=[];function n(e){for(var r=-1,o=0;o<c.length;o++)if(c[o].identifier===e){r=o;break}return r}function l(e,r){for(var o={},a=[],t=0;t<e.length;t++){var i=e[t],l=r.base?i[0]+r.base:i[0],u=o[l]||0,p="".concat(l," ").concat(u);o[l]=u+1;var s=n(p),b={css:i[1],media:i[2],sourceMap:i[3]};-1!==s?(c[s].references++,c[s].updater(b)):c.push({identifier:p,updater:f(b,r),references:1}),a.push(p)}return a}function u(e){var r=document.createElement("style"),a=e.attributes||{};if(void 0===a.nonce){var t=o.nc;t&&(a.nonce=t)}if(Object.keys(a).forEach((function(e){r.setAttribute(e,a[e])})),"function"==typeof e.insert)e.insert(r);else{var c=i(e.insert||"head");if(!c)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");c.appendChild(r)}return r}var p,s=(p=[],function(e,r){return p[e]=r,p.filter(Boolean).join("\n")});function b(e,r,o,a){var t=o?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(e.styleSheet)e.styleSheet.cssText=s(r,t);else{var i=document.createTextNode(t),c=e.childNodes;c[r]&&e.removeChild(c[r]),c.length?e.insertBefore(i,c[r]):e.appendChild(i)}}function h(e,r,o){var a=o.css,t=o.media,i=o.sourceMap;if(t?e.setAttribute("media",t):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=a;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}var d=null,x=0;function f(e,r){var o,a,t;if(r.singleton){var i=x++;o=d||(d=u(r)),a=b.bind(null,o,i,!1),t=b.bind(null,o,i,!0)}else o=u(r),a=h.bind(null,o,r),t=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return a(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;a(e=r)}else t()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=t());var o=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var a=0;a<o.length;a++){var t=n(o[a]);c[t].references--}for(var i=l(e,r),u=0;u<o.length;u++){var p=n(o[u]);0===c[p].references&&(c[p].updater(),c.splice(p,1))}o=i}}}},9690:function(e,r,o){"use strict";var a=o(5893),t=o(8156),i=o(8767),c=(o(9036),function(){return c=Object.assign||function(e){for(var r,o=1,a=arguments.length;o<a;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e},c.apply(this,arguments)});r.default=function(e){var r=e.className,o=void 0===r?"":r,n=e.label,l=void 0===n?"":n,u=e.labelTooltip,p=e.size,s=void 0===p?"large":p,b=e.disabled,h=void 0!==b&&b,d=e.indeterminate,x=void 0!==d&&d,f=e.onChange,k=e.style,g=(0,t.useState)(!1),v=g[0],m=g[1];(0,t.useEffect)((function(){void 0!==e.defaultChecked&&m(e.defaultChecked)}),[]),(0,t.useEffect)((function(){void 0!==e.checked&&m(e.checked)}),[e.checked]);var y;return(0,a.jsxs)("label",c({className:(y="paraui-check-box",o&&(y+=" "+o),s&&(y+=" check-box-"+s),h&&(y+=" check-box-disabled"),x?y+=" check-box-indeterminate":v&&(y+=" check-box-checked"),y),onClick:function(r){if(r.preventDefault(),!h){if(x)return void 0===e.checked&&m(!0),void(f&&f(r,!0));void 0===e.checked&&m(!v),r.target.checked=!v,r.target.value=!v,f&&f(r,!v)}},style:k},{children:[(0,a.jsxs)("span",c({className:"paraui-checkbox-box"},{children:[(0,a.jsx)("input",c({type:"checkbox",value:v},e.inputProps)),(0,a.jsx)("span",{className:"paraui-checkbox-box-inner"})]})),void 0!==l&&""!==l&&null!==l?(0,a.jsx)(i.default,c({label:l},u,{className:function(){var e="paraui-check-box-label";return u&&u.className&&(e+=" "+u.className),e}()})):null]}))}},3566:function(e,r,o){"use strict";var a=o(5893),t=o(7371),i=o(8076),c=o.n(i),n=o(5744),l=o.n(n),u=(o(2113),function(){return u=Object.assign||function(e){for(var r,o=1,a=arguments.length;o<a;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e},u.apply(this,arguments)}),p=function(e,r){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(o[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(a=Object.getOwnPropertySymbols(e);t<a.length;t++)r.indexOf(a[t])<0&&Object.prototype.propertyIsEnumerable.call(e,a[t])&&(o[a[t]]=e[a[t]])}return o};r.default=function(e){var r=e.title,o=void 0===r?"":r,i=e.children,n=e.arrow,s=void 0===n||n,b=e.interactive,h=void 0===b||b,d=e.className,x=e.placement,f=void 0===x?"top-start":x,k=p(e,["title","children","arrow","interactive","className","placement"]);return(0,a.jsx)(t.default,u({title:o,arrow:s,interactive:h,placement:f},k,{children:(0,a.jsx)("span",u({className:l()("paraui-help",d)},{children:i||(0,a.jsx)(c(),{})}))}))}},4254:function(e,r,o){"use strict";var a=o(5893),t=(o(3936),function(){return t=Object.assign||function(e){for(var r,o=1,a=arguments.length;o<a;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e},t.apply(this,arguments)});r.default=function(e){var r,o=e.className,i=e.style,c=e.error,n=void 0!==c&&c,l=e.helperText;return(0,a.jsx)("p",t({className:(r="paraui-helper-text",o&&(r+=" "+o),n&&(r+=" paraui-helper-text-error"),r),style:i},{children:l}))}},8767:function(e,r,o){"use strict";var a=o(5893),t=o(3566),i=(o(9663),function(){return i=Object.assign||function(e){for(var r,o=1,a=arguments.length;o<a;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e},i.apply(this,arguments)});r.default=function(e){var r=e.className,o=e.style,c=e.label,n=e.labelSign,l=e.required,u=void 0!==l&&l,p=e.tooltip,s=e.tooltipType,b=void 0===s?"icon":s,h=e.placement,d=e.arrow,x=e.tooltipIcon,f=function(){var e="paraui-label";return b&&(e+=" paraui-label-"+b),p&&(e+=" paraui-label-tooltip"),r&&(e+=" "+r),e};return(0,a.jsxs)(a.Fragment,{children:["icon"===b&&(0,a.jsxs)("label",i({className:f(),style:o},{children:[(0,a.jsx)(a.Fragment,{children:c}),u&&(0,a.jsx)("span",i({className:"paraui-label-required"},{children:"*"})),n&&(0,a.jsx)("span",{children:n}),p&&(0,a.jsx)(t.default,i({title:p,placement:h,arrow:d},{children:x}))]})),"line"===b&&(0,a.jsx)(t.default,i({title:p||"",placement:h,arrow:d},{children:(0,a.jsxs)("label",i({className:f(),style:o},{children:[(0,a.jsx)(a.Fragment,{children:c}),u&&(0,a.jsx)("span",i({className:"paraui-label-required"},{children:"*"})),n&&(0,a.jsx)("span",{children:n})]}))}))]})}},7371:function(e,r,o){"use strict";var a=o(5893),t=o(670),i=o(5744),c=o.n(i),n=(o(2310),function(){return n=Object.assign||function(e){for(var r,o=1,a=arguments.length;o<a;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e},n.apply(this,arguments)}),l=function(e,r){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(o[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(a=Object.getOwnPropertySymbols(e);t<a.length;t++)r.indexOf(a[t])<0&&Object.prototype.propertyIsEnumerable.call(e,a[t])&&(o[a[t]]=e[a[t]])}return o};r.default=function(e){var r,o=e.placement,i=void 0===o?"top-start":o,u=e.className,p=e.arrow,s=void 0===p||p,b=e.PopperProps,h=e.boundariesElement,d=void 0===h?"scrollParent":h,x=l(e,["placement","className","arrow","PopperProps","boundariesElement"]),f=n(n({},e.classes),{popper:c()("paraui-tooltip",u,null===(r=e.classes)||void 0===r?void 0:r.popper,{"paraui-tooltip-left-right":(null==i?void 0:i.includes("left"))||(null==i?void 0:i.includes("right")),"paraui-tooltip-top-bottom":(null==i?void 0:i.includes("top"))||(null==i?void 0:i.includes("bottom"))})});return(0,a.jsx)(t.Tooltip,n({},x,{enterTouchDelay:0,arrow:s,placement:i,classes:f,PopperProps:n(n({},b),{modifiers:{preventOverflow:{boundariesElement:d}}})}))}},670:function(e){"use strict";e.exports=r},8076:function(e){"use strict";e.exports=a},8543:function(e){"use strict";e.exports=t},5744:function(e){"use strict";e.exports=o},8156:function(r){"use strict";r.exports=e}},c={};function n(e){var r=c[e];if(void 0!==r)return r.exports;var o=c[e]={id:e,exports:{}};return i[e](o,o.exports,n),o.exports}n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},n.d=function(e,r){for(var o in r)n.o(r,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var l={};return function(){"use strict";n.r(l),n.d(l,{CheckboxGroup:function(){return u}});var e=n(8156),r=n(5893),o=n(9690),a=n(8767),t=n(4254),i=n(8543),c=(n(7708),function(){return c=Object.assign||function(e){for(var r,o=1,a=arguments.length;o<a;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e},c.apply(this,arguments)}),u=function(n){var l=n.label,u=void 0===l?"":l,p=n.labelTooltip,s=n.size,b=void 0===s?"large":s,h=n.row,d=void 0===h||h,x=n.disabled,f=void 0!==x&&x,k=n.required,g=void 0!==k&&k,v=n.error,m=void 0!==v&&v,y=n.helperText,j=void 0===y?"":y,w=n.id,O=void 0===w?"name":w,S=n.list,N=n.className,C=void 0===N?"":N,P=n.onChange,_=n.style,M=(0,e.useState)([]),E=M[0],H=M[1];(0,e.useEffect)((function(){void 0!==n.defaultValue&&H(n.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==n.value&&H(n.value)}),[n.value]);var T,q=function(e){return function(r,o){var a=e[O],t=(0,i.DeepClone)(E);if(o)t.push(a);else{var c=t.indexOf(a);t.splice(c,1)}void 0===n.value&&H(t),P&&P(t)}};return(0,r.jsxs)("div",c({className:(T="paraui-check-box-group",C&&(T+=" "+C),b&&(T+=" check-box-group-"+b),m&&(T+=" check-box-group-error"),f&&(T+=" check-box-group-disabled"),T+=d?" check-box-group-row":" check-box-group-column"),style:_},{children:[function(){if(u||g){return(0,r.jsx)(a.default,c({label:u,required:g},p,{className:(e="check-box-group-label",p&&p.className&&(e+=" "+p.className),e)}))}var e;return null}(),(0,r.jsx)("div",c({className:"check-box-group-content"},{children:S.map((function(r,a){return(0,e.createElement)(o.default,c({},r,{checked:-1!==E.indexOf(r[O]),size:b,disabled:Boolean(f||r.disabled),key:a,onChange:q(r)}))}))})),(0,r.jsx)(t.default,{className:"check-box-group-error-text",error:m,helperText:j})]}))};l.default=u}(),l}()}));
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/3/7 4:12 PM
|
|
4
|
-
* @description 折叠面板
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from 'react';
|
|
7
|
-
export type CollapsibleType = 'header' | 'disabled';
|
|
8
|
-
export interface CollapsePanelProps {
|
|
9
|
-
/** className */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** 样式 */
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
/** 对应 activeKey */
|
|
14
|
-
key: string | number;
|
|
15
|
-
/** 面板头内容 */
|
|
16
|
-
header: React.ReactNode;
|
|
17
|
-
/** @deprecated Use `collapsible="disabled"` instead */
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
/** 是否展示当前面板上的箭头 */
|
|
20
|
-
showArrow?: boolean;
|
|
21
|
-
/** 被隐藏时是否渲染 DOM 结构 */
|
|
22
|
-
forceRender?: boolean;
|
|
23
|
-
id?: string;
|
|
24
|
-
/** 自定义渲染每个面板右上角的内容 */
|
|
25
|
-
extra?: React.ReactNode;
|
|
26
|
-
/** 是否可折叠或指定可折叠触发区域 */
|
|
27
|
-
collapsible?: CollapsibleType;
|
|
28
|
-
}
|
|
29
|
-
export declare const CollapsePanelProps: FunctionComponent<CollapsePanelProps>;
|
|
30
|
-
export default CollapsePanelProps;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/3/7 4:12 PM
|
|
4
|
+
* @description 折叠面板
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from 'react';
|
|
7
|
+
export type CollapsibleType = 'header' | 'disabled';
|
|
8
|
+
export interface CollapsePanelProps {
|
|
9
|
+
/** className */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** 样式 */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** 对应 activeKey */
|
|
14
|
+
key: string | number;
|
|
15
|
+
/** 面板头内容 */
|
|
16
|
+
header: React.ReactNode;
|
|
17
|
+
/** @deprecated Use `collapsible="disabled"` instead */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** 是否展示当前面板上的箭头 */
|
|
20
|
+
showArrow?: boolean;
|
|
21
|
+
/** 被隐藏时是否渲染 DOM 结构 */
|
|
22
|
+
forceRender?: boolean;
|
|
23
|
+
id?: string;
|
|
24
|
+
/** 自定义渲染每个面板右上角的内容 */
|
|
25
|
+
extra?: React.ReactNode;
|
|
26
|
+
/** 是否可折叠或指定可折叠触发区域 */
|
|
27
|
+
collapsible?: CollapsibleType;
|
|
28
|
+
}
|
|
29
|
+
export declare const CollapsePanelProps: FunctionComponent<CollapsePanelProps>;
|
|
30
|
+
export default CollapsePanelProps;
|
package/Collapse/index.d.ts
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/3/7 4:03 PM
|
|
4
|
-
* @description 折叠面板
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import CollapsePanel, { CollapsibleType } from './collapsePanel';
|
|
8
|
-
import './index.scss';
|
|
9
|
-
export type ExpandIconPosition = 'left' | 'right' | undefined;
|
|
10
|
-
export interface CollapseProps {
|
|
11
|
-
/** className */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** 样式 */
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
/** 初始化选中面板的 key */
|
|
16
|
-
defaultActiveKey?: Array<string | number> | string | number;
|
|
17
|
-
/** 当前激活 tab 面板的 key */
|
|
18
|
-
activeKey?: Array<string | number> | string | number;
|
|
19
|
-
/** 手风琴模式 */
|
|
20
|
-
accordion?: boolean;
|
|
21
|
-
/** 所有子面板是否可折叠或指定可折叠触发区域 */
|
|
22
|
-
collapsible?: CollapsibleType;
|
|
23
|
-
/** 销毁折叠隐藏的面板 */
|
|
24
|
-
destroyInactivePanel?: boolean;
|
|
25
|
-
/** 自定义切换图标 */
|
|
26
|
-
expandIcon?: (panelProps: PanelProps) => React.ReactNode;
|
|
27
|
-
/** 设置图标位置 */
|
|
28
|
-
expandIconPosition?: ExpandIconPosition;
|
|
29
|
-
/** onChange */
|
|
30
|
-
onChange?: (key: string | string[]) => void;
|
|
31
|
-
children?: any;
|
|
32
|
-
}
|
|
33
|
-
interface PanelProps {
|
|
34
|
-
/** 是否展开 */
|
|
35
|
-
isActive?: boolean;
|
|
36
|
-
/** 面板头内容 */
|
|
37
|
-
header?: React.ReactNode;
|
|
38
|
-
/** className */
|
|
39
|
-
className?: string;
|
|
40
|
-
/** style */
|
|
41
|
-
style?: React.CSSProperties;
|
|
42
|
-
/** 是否展示当前面板上的箭头 */
|
|
43
|
-
showArrow?: boolean;
|
|
44
|
-
/** 被隐藏时是否渲染 DOM 结构 */
|
|
45
|
-
forceRender?: boolean;
|
|
46
|
-
/** @deprecated Use `collapsible="disabled"` instead */
|
|
47
|
-
disabled?: boolean;
|
|
48
|
-
/** 自定义渲染每个面板右上角的内容 */
|
|
49
|
-
extra?: React.ReactNode;
|
|
50
|
-
/** 是否可折叠或指定可折叠触发区域 */
|
|
51
|
-
collapsible?: CollapsibleType;
|
|
52
|
-
}
|
|
53
|
-
interface CollapseInterface extends React.FC<CollapseProps> {
|
|
54
|
-
Panel: typeof CollapsePanel;
|
|
55
|
-
}
|
|
56
|
-
export declare const Collapse: CollapseInterface;
|
|
57
|
-
export default Collapse;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/3/7 4:03 PM
|
|
4
|
+
* @description 折叠面板
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import CollapsePanel, { CollapsibleType } from './collapsePanel';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export type ExpandIconPosition = 'left' | 'right' | undefined;
|
|
10
|
+
export interface CollapseProps {
|
|
11
|
+
/** className */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** 样式 */
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
/** 初始化选中面板的 key */
|
|
16
|
+
defaultActiveKey?: Array<string | number> | string | number;
|
|
17
|
+
/** 当前激活 tab 面板的 key */
|
|
18
|
+
activeKey?: Array<string | number> | string | number;
|
|
19
|
+
/** 手风琴模式 */
|
|
20
|
+
accordion?: boolean;
|
|
21
|
+
/** 所有子面板是否可折叠或指定可折叠触发区域 */
|
|
22
|
+
collapsible?: CollapsibleType;
|
|
23
|
+
/** 销毁折叠隐藏的面板 */
|
|
24
|
+
destroyInactivePanel?: boolean;
|
|
25
|
+
/** 自定义切换图标 */
|
|
26
|
+
expandIcon?: (panelProps: PanelProps) => React.ReactNode;
|
|
27
|
+
/** 设置图标位置 */
|
|
28
|
+
expandIconPosition?: ExpandIconPosition;
|
|
29
|
+
/** onChange */
|
|
30
|
+
onChange?: (key: string | string[]) => void;
|
|
31
|
+
children?: any;
|
|
32
|
+
}
|
|
33
|
+
interface PanelProps {
|
|
34
|
+
/** 是否展开 */
|
|
35
|
+
isActive?: boolean;
|
|
36
|
+
/** 面板头内容 */
|
|
37
|
+
header?: React.ReactNode;
|
|
38
|
+
/** className */
|
|
39
|
+
className?: string;
|
|
40
|
+
/** style */
|
|
41
|
+
style?: React.CSSProperties;
|
|
42
|
+
/** 是否展示当前面板上的箭头 */
|
|
43
|
+
showArrow?: boolean;
|
|
44
|
+
/** 被隐藏时是否渲染 DOM 结构 */
|
|
45
|
+
forceRender?: boolean;
|
|
46
|
+
/** @deprecated Use `collapsible="disabled"` instead */
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
/** 自定义渲染每个面板右上角的内容 */
|
|
49
|
+
extra?: React.ReactNode;
|
|
50
|
+
/** 是否可折叠或指定可折叠触发区域 */
|
|
51
|
+
collapsible?: CollapsibleType;
|
|
52
|
+
}
|
|
53
|
+
interface CollapseInterface extends React.FC<CollapseProps> {
|
|
54
|
+
Panel: typeof CollapsePanel;
|
|
55
|
+
}
|
|
56
|
+
export declare const Collapse: CollapseInterface;
|
|
57
|
+
export default Collapse;
|
package/Collapse/motion.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSMotionProps } from 'rc-motion';
|
|
2
|
-
declare const collapseMotion: CSSMotionProps;
|
|
3
|
-
declare const getTransitionName: (rootPrefixCls: string, motion: string, transitionName?: string) => string;
|
|
4
|
-
export { getTransitionName };
|
|
5
|
-
export default collapseMotion;
|
|
1
|
+
import { CSSMotionProps } from 'rc-motion';
|
|
2
|
+
declare const collapseMotion: CSSMotionProps;
|
|
3
|
+
declare const getTransitionName: (rootPrefixCls: string, motion: string, transitionName?: string) => string;
|
|
4
|
+
export { getTransitionName };
|
|
5
|
+
export default collapseMotion;
|
package/Collapse/util.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const isValidElement: typeof React.isValidElement;
|
|
3
|
-
type AnyObject = Record<any, any>;
|
|
4
|
-
type RenderProps = undefined | AnyObject | ((originProps: AnyObject) => AnyObject | undefined);
|
|
5
|
-
export declare function replaceElement(element: React.ReactNode, replacement: React.ReactNode, props: RenderProps): React.ReactNode;
|
|
6
|
-
export declare function cloneElement(element: React.ReactNode, props?: RenderProps): React.ReactElement;
|
|
7
|
-
/** toArray */
|
|
8
|
-
export declare function toArray<T>(list: T | T[]): T[];
|
|
9
|
-
/** omit */
|
|
10
|
-
export declare function omit<T extends object, K extends keyof T>(obj: T, fields: K[]): Omit<T, K>;
|
|
11
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const isValidElement: typeof React.isValidElement;
|
|
3
|
+
type AnyObject = Record<any, any>;
|
|
4
|
+
type RenderProps = undefined | AnyObject | ((originProps: AnyObject) => AnyObject | undefined);
|
|
5
|
+
export declare function replaceElement(element: React.ReactNode, replacement: React.ReactNode, props: RenderProps): React.ReactNode;
|
|
6
|
+
export declare function cloneElement(element: React.ReactNode, props?: RenderProps): React.ReactElement;
|
|
7
|
+
/** toArray */
|
|
8
|
+
export declare function toArray<T>(list: T | T[]): T[];
|
|
9
|
+
/** omit */
|
|
10
|
+
export declare function omit<T extends object, K extends keyof T>(obj: T, fields: K[]): Omit<T, K>;
|
|
11
|
+
export {};
|
package/CollapseBox/index.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/5/23 2:19 PM
|
|
4
|
-
* @description 折叠容器
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from 'react';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface CollapseBoxProps {
|
|
9
|
-
/** className */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** css样式 */
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
/** 收起状态最小高度 */
|
|
14
|
-
collapsedHeight?: string | number;
|
|
15
|
-
/** 收起时是否不渲染子节点 */
|
|
16
|
-
unmountOnExit?: boolean;
|
|
17
|
-
/** 动画时间 */
|
|
18
|
-
timeout?: 'auto' | number | {
|
|
19
|
-
appear?: number | undefined;
|
|
20
|
-
enter?: number | undefined;
|
|
21
|
-
exit?: number | undefined;
|
|
22
|
-
};
|
|
23
|
-
children?: any;
|
|
24
|
-
[name: string]: any;
|
|
25
|
-
}
|
|
26
|
-
declare const CollapseBox: FunctionComponent<CollapseBoxProps>;
|
|
27
|
-
export default CollapseBox;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/5/23 2:19 PM
|
|
4
|
+
* @description 折叠容器
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface CollapseBoxProps {
|
|
9
|
+
/** className */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** css样式 */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** 收起状态最小高度 */
|
|
14
|
+
collapsedHeight?: string | number;
|
|
15
|
+
/** 收起时是否不渲染子节点 */
|
|
16
|
+
unmountOnExit?: boolean;
|
|
17
|
+
/** 动画时间 */
|
|
18
|
+
timeout?: 'auto' | number | {
|
|
19
|
+
appear?: number | undefined;
|
|
20
|
+
enter?: number | undefined;
|
|
21
|
+
exit?: number | undefined;
|
|
22
|
+
};
|
|
23
|
+
children?: any;
|
|
24
|
+
[name: string]: any;
|
|
25
|
+
}
|
|
26
|
+
declare const CollapseBox: FunctionComponent<CollapseBoxProps>;
|
|
27
|
+
export default CollapseBox;
|
package/CollapseBox/util.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function getTransitionProps(props: any, options: any): {
|
|
2
|
-
duration: any;
|
|
3
|
-
delay: any;
|
|
4
|
-
};
|
|
5
|
-
export declare function getAutoHeightDuration(height: any): number;
|
|
1
|
+
export declare function getTransitionProps(props: any, options: any): {
|
|
2
|
+
duration: any;
|
|
3
|
+
delay: any;
|
|
4
|
+
};
|
|
5
|
+
export declare function getAutoHeightDuration(height: any): number;
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface CollapseLayoutProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
/**
|
|
7
|
-
* 收起出现的位置
|
|
8
|
-
* 默认 left
|
|
9
|
-
*/
|
|
10
|
-
type?: 'left' | 'right' | 'top' | 'bottom';
|
|
11
|
-
/**
|
|
12
|
-
* 普通展示数据
|
|
13
|
-
*/
|
|
14
|
-
defaultContent?: React.ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* 显示隐藏的数据
|
|
17
|
-
*/
|
|
18
|
-
displayContent?: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* 展开还是收起
|
|
21
|
-
*/
|
|
22
|
-
open?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* 允许缩放的长度
|
|
25
|
-
* */
|
|
26
|
-
zoomLength?: number;
|
|
27
|
-
/**
|
|
28
|
-
* 单位
|
|
29
|
-
* 默认px
|
|
30
|
-
*/
|
|
31
|
-
unit?: string;
|
|
32
|
-
/**
|
|
33
|
-
* 展开按钮显示文字
|
|
34
|
-
*/
|
|
35
|
-
showLabel?: string;
|
|
36
|
-
/**
|
|
37
|
-
* 收起按钮展示文字
|
|
38
|
-
*/
|
|
39
|
-
hideLabel?: string;
|
|
40
|
-
/**
|
|
41
|
-
* 间距
|
|
42
|
-
* 默认20
|
|
43
|
-
*/
|
|
44
|
-
spacing?: number;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @author zhanzl
|
|
48
|
-
* @date 2022/08/09
|
|
49
|
-
*/
|
|
50
|
-
declare const CollapseLayout: FC<CollapseLayoutProps>;
|
|
51
|
-
export default CollapseLayout;
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface CollapseLayoutProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
/**
|
|
7
|
+
* 收起出现的位置
|
|
8
|
+
* 默认 left
|
|
9
|
+
*/
|
|
10
|
+
type?: 'left' | 'right' | 'top' | 'bottom';
|
|
11
|
+
/**
|
|
12
|
+
* 普通展示数据
|
|
13
|
+
*/
|
|
14
|
+
defaultContent?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* 显示隐藏的数据
|
|
17
|
+
*/
|
|
18
|
+
displayContent?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* 展开还是收起
|
|
21
|
+
*/
|
|
22
|
+
open?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* 允许缩放的长度
|
|
25
|
+
* */
|
|
26
|
+
zoomLength?: number;
|
|
27
|
+
/**
|
|
28
|
+
* 单位
|
|
29
|
+
* 默认px
|
|
30
|
+
*/
|
|
31
|
+
unit?: string;
|
|
32
|
+
/**
|
|
33
|
+
* 展开按钮显示文字
|
|
34
|
+
*/
|
|
35
|
+
showLabel?: string;
|
|
36
|
+
/**
|
|
37
|
+
* 收起按钮展示文字
|
|
38
|
+
*/
|
|
39
|
+
hideLabel?: string;
|
|
40
|
+
/**
|
|
41
|
+
* 间距
|
|
42
|
+
* 默认20
|
|
43
|
+
*/
|
|
44
|
+
spacing?: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @author zhanzl
|
|
48
|
+
* @date 2022/08/09
|
|
49
|
+
*/
|
|
50
|
+
declare const CollapseLayout: FC<CollapseLayoutProps>;
|
|
51
|
+
export default CollapseLayout;
|
package/ColorPicker/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SketchPicker, ChromePicker, CompactPicker, SwatchesPicker } from 'react-color';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export default SketchPicker;
|
|
4
|
-
export { ChromePicker, CompactPicker, SwatchesPicker };
|
|
1
|
+
import { SketchPicker, ChromePicker, CompactPicker, SwatchesPicker } from 'react-color';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export default SketchPicker;
|
|
4
|
+
export { ChromePicker, CompactPicker, SwatchesPicker };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/8/30 下午2:32
|
|
4
|
-
* @description WithTabsCombo
|
|
5
|
-
*/
|
|
6
|
-
import { FunctionComponent } from 'react';
|
|
7
|
-
import { TabsComboSelectProps } from './interface';
|
|
8
|
-
import '../index.scss';
|
|
9
|
-
declare const TabsComboSelect: FunctionComponent<TabsComboSelectProps>;
|
|
10
|
-
export type { TabsComboSelectProps };
|
|
11
|
-
export default TabsComboSelect;
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2021/8/30 下午2:32
|
|
4
|
+
* @description WithTabsCombo
|
|
5
|
+
*/
|
|
6
|
+
import { FunctionComponent } from 'react';
|
|
7
|
+
import { TabsComboSelectProps } from './interface';
|
|
8
|
+
import '../index.scss';
|
|
9
|
+
declare const TabsComboSelect: FunctionComponent<TabsComboSelectProps>;
|
|
10
|
+
export type { TabsComboSelectProps };
|
|
11
|
+
export default TabsComboSelect;
|