@para-ui/core 2.1.6 → 2.1.9
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 +2 -0
- package/AutoBox/index.js +4 -4
- package/AutoTips/index.js +2 -2
- package/Breadcrumbs/index.js +2 -2
- package/Button/index.js +4 -4
- package/ButtonGroup/index.js +4 -4
- package/Carousel/index.d.ts +30 -0
- package/Carousel/index.js +15 -0
- package/Cascader/index.js +3 -3
- package/Checkbox/index.js +2 -2
- package/CheckboxGroup/index.js +2 -2
- package/Collapse/collapsePanel.d.ts +10 -0
- package/Collapse/index.d.ts +12 -0
- package/Collapse/index.js +16 -0
- package/ComboSelect/index.js +51 -51
- package/ComboSelect/interface.d.ts +6 -3
- package/Container/index.js +2 -2
- package/DatePicker/generatePicker/index.d.ts +15 -7
- package/DatePicker/index.js +11 -11
- package/DatePicker/util.d.ts +1 -0
- package/Desktop/index.js +3 -3
- package/Form/index.js +15 -15
- package/FormItem/index.js +15 -15
- package/FunctionModal/index.js +9 -9
- package/Help/index.js +2 -2
- package/IconList/index.js +5 -5
- package/InputLang/index.js +7 -7
- package/InputNumber/index.d.ts +8 -8
- package/InputNumber/index.js +8 -8
- package/Loading/index.js +2 -2
- package/Menu/index.js +4 -4
- package/Message/index.js +5 -5
- package/Modal/index.js +9 -9
- package/MultiBox/index.d.ts +4 -2
- package/MultiBox/index.js +13 -13
- package/Notification/index.d.ts +1 -1
- package/Notification/index.js +5 -5
- package/PageHeader/index.js +11 -11
- package/PageHeader/interface.d.ts +3 -3
- package/Pagination/index.d.ts +11 -0
- package/Pagination/index.js +12 -12
- package/ParauiProvider/index.js +1 -1
- package/PopConfirm/index.js +8 -8
- package/Popover/index.js +1 -1
- package/Popper/index.js +1 -1
- package/README.md +39 -4
- package/Radio/index.js +2 -2
- package/RadioGroup/index.js +2 -2
- package/Search/index.js +16 -16
- package/Select/index.js +13 -13
- package/SingleBox/index.d.ts +3 -1
- package/SingleBox/index.js +12 -12
- package/Slider/index.js +2 -2
- package/Split/index.js +1 -1
- package/Stepper/index.js +11 -11
- package/Switch/index.js +2 -2
- package/Table/index.js +19 -19
- package/Table/interface.d.ts +10 -6
- package/Table/tableBodyInterface.d.ts +0 -2
- package/Table/tableHeadInterface.d.ts +0 -2
- package/Table/tablePaginationInterFace.d.ts +4 -0
- package/Tabs/index.js +2 -2
- package/Tag/index.js +3 -3
- package/TextField/index.js +8 -8
- package/TimePicker/index.js +11 -11
- package/Timeline/index.js +1 -1
- package/ToggleButton/index.js +8 -8
- package/Tooltip/index.js +2 -2
- package/Transfer/index.js +10 -10
- package/Tree/index.js +9 -9
- package/Tree/interface.d.ts +1 -1
- package/Upload/index.js +19 -19
- package/Upload/interface.d.ts +4 -2
- package/cdn/AutoBox/index.js +4 -4
- package/cdn/AutoTips/index.js +1 -1
- package/cdn/Breadcrumbs/index.js +1 -1
- package/cdn/Button/index.js +3 -3
- package/cdn/ButtonGroup/index.js +3 -3
- package/cdn/Carousel/index.js +6 -0
- package/cdn/Cascader/index.js +3 -3
- package/cdn/Checkbox/index.js +1 -1
- package/cdn/CheckboxGroup/index.js +1 -1
- package/cdn/Collapse/index.js +1 -0
- package/cdn/ComboSelect/index.js +29 -29
- package/cdn/Container/index.js +1 -1
- package/cdn/DatePicker/index.js +15 -15
- package/cdn/Drawer/index.js +1 -1
- package/cdn/Form/index.js +16 -16
- package/cdn/FormItem/index.js +16 -16
- package/cdn/FunctionModal/index.js +9 -9
- package/cdn/Help/index.js +1 -1
- package/cdn/IconList/index.js +4 -4
- package/cdn/InputLang/index.js +9 -9
- package/cdn/InputNumber/index.js +8 -8
- package/cdn/Loading/index.js +1 -1
- package/cdn/Menu/index.js +5 -5
- package/cdn/Message/index.js +4 -4
- package/cdn/Modal/index.js +9 -9
- package/cdn/MultiBox/index.js +6 -6
- package/cdn/Notification/index.js +6 -6
- package/cdn/PageHeader/index.js +5 -5
- package/cdn/Pagination/index.js +16 -16
- package/cdn/PopConfirm/index.js +7 -7
- package/cdn/Radio/index.js +1 -1
- package/cdn/RadioGroup/index.js +1 -1
- package/cdn/Search/index.js +10 -10
- package/cdn/Select/index.js +6 -6
- package/cdn/SingleBox/index.js +6 -6
- package/cdn/Slider/index.js +1 -1
- package/cdn/Stepper/index.js +10 -10
- package/cdn/Switch/index.js +4 -4
- package/cdn/Table/index.js +22 -22
- package/cdn/Tabs/index.js +1 -1
- package/cdn/Tag/index.js +2 -2
- package/cdn/TextField/index.js +4 -4
- package/cdn/TimePicker/index.js +15 -15
- package/cdn/ToggleButton/index.js +3 -3
- package/cdn/Tooltip/index.js +1 -1
- package/cdn/Transfer/index.js +10 -10
- package/cdn/Tree/index.js +10 -10
- package/cdn/Upload/index.js +10 -10
- package/index.d.ts +4 -0
- package/index.js +54 -54
- package/package.json +10 -7
- package/style.css +34 -32
package/CheckboxGroup/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("react"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@paraview/lib"],o):"object"==typeof exports?exports.ParaUI=o(require("react"),require("@paraview/lib")):e.ParaUI=o(e.react,e["@paraview/lib"])}(self,(function(e,o){return function(){var r={1204:function(e,o,r){(o=r(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:center;line-height:14px}.paraui-check-box:hover>.paraui-check-box-label{color:#3666d6}.paraui-check-box:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{border-color:#3666d6}.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:white;border:1px solid rgba(171,176,185,0.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}.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 white;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%, -50%)}.paraui-check-box.check-box-checked>.paraui-check-box-label{color:#3666d6}.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:white;top:50%;left:50%;transform:translate(-50%, -50%) scale(1)}.paraui-check-box.check-box-indeterminate>.paraui-check-box-label{color:#3666d6}.paraui-check-box.check-box-disabled{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label{color:rgba(46,55,67,0.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,0.
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("react"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@paraview/lib"],o):"object"==typeof exports?exports.ParaUI=o(require("react"),require("@paraview/lib")):e.ParaUI=o(e.react,e["@paraview/lib"])}(self,(function(e,o){return function(){var r={1204:function(e,o,r){(o=r(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:center;line-height:14px}.paraui-check-box:hover>.paraui-check-box-label{color:#3666d6}.paraui-check-box:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{border-color:#3666d6}.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:white;border:1px solid rgba(171,176,185,0.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}.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 white;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%, -50%)}.paraui-check-box.check-box-checked>.paraui-check-box-label{color:#3666d6}.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:white;top:50%;left:50%;transform:translate(-50%, -50%) scale(1)}.paraui-check-box.check-box-indeterminate>.paraui-check-box-label{color:#3666d6}.paraui-check-box.check-box-disabled{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label{color:rgba(46,55,67,0.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,0.12);border-color:rgba(171,176,185,0.4)}.paraui-check-box.check-box-disabled.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border-color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:rgba(46,55,67,0.4)}.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}\n',""]),e.exports=o},9974:function(e,o,r){(o=r(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%;padding-bottom:20px}.paraui-check-box-group>.check-box-group-label{color:rgba(46,55,67,0.7);margin-bottom:8px;display:inline-block}.paraui-check-box-group>.check-box-group-label>.required-char{margin-left:2px;color:#eb6054}.paraui-check-box-group>.check-box-group-content{line-height:0}.paraui-check-box-group>.check-box-group-error-text{margin:8px 0 0 0;padding-left:12px;line-height:1}.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}.paraui-check-box-group.check-box-group-error>.check-box-group-error-text{color:#eb6054}\n",""]),e.exports=o},3645:function(e){"use strict";e.exports=function(e){var o=[];return o.toString=function(){return this.map((function(o){var r=function(e,o){var r=e[1]||"",c=e[3];if(!c)return r;if(o&&"function"==typeof btoa){var a=(n=c,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(u," */")),t=c.sources.map((function(e){return"/*# sourceURL=".concat(c.sourceRoot||"").concat(e," */")}));return[r].concat(t).concat([a]).join("\n")}var n,i,u;return[r].join("\n")}(o,e);return o[2]?"@media ".concat(o[2]," {").concat(r,"}"):r})).join("")},o.i=function(e,r,c){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(c)for(var t=0;t<this.length;t++){var n=this[t][0];null!=n&&(a[n]=!0)}for(var i=0;i<e.length;i++){var u=[].concat(e[i]);c&&a[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),o.push(u))}},o}},7418:function(e){"use strict";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
@@ -12,4 +12,4 @@ object-assign
|
|
|
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
14
|
*/
|
|
15
|
-
r(7418);var c=r(8156),a=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var t=Symbol.for;a=t("react.element"),t("react.fragment")}var n=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function b(e,o,r){var c,t={},b=null,p=null;for(c in void 0!==r&&(b=""+r),void 0!==o.key&&(b=""+o.key),void 0!==o.ref&&(p=o.ref),o)i.call(o,c)&&!u.hasOwnProperty(c)&&(t[c]=o[c]);if(e&&e.defaultProps)for(c in o=e.defaultProps)void 0===t[c]&&(t[c]=o[c]);return{$$typeof:a,type:e,key:b,ref:p,props:t,_owner:n.current}}o.jsx=b,o.jsxs=b},5893:function(e,o,r){"use strict";e.exports=r(5251)},9036:function(e,o,r){var c=r(3379),a=r(1204);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var t={insert:("body","body"),singleton:!1};c(a,t);e.exports=a.locals||{}},7708:function(e,o,r){var c=r(3379),a=r(9974);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var t={insert:("body","body"),singleton:!1};c(a,t);e.exports=a.locals||{}},3379:function(e,o,r){"use strict";var c,a=function(){return void 0===c&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},t=function(){var e={};return function(o){if(void 0===e[o]){var r=document.querySelector(o);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[o]=r}return e[o]}}(),n=[];function i(e){for(var o=-1,r=0;r<n.length;r++)if(n[r].identifier===e){o=r;break}return o}function u(e,o){for(var r={},c=[],a=0;a<e.length;a++){var t=e[a],u=o.base?t[0]+o.base:t[0],b=r[u]||0,p="".concat(u," ").concat(b);r[u]=b+1;var l=i(p),s={css:t[1],media:t[2],sourceMap:t[3]};-1!==l?(n[l].references++,n[l].updater(s)):n.push({identifier:p,updater:f(s,o),references:1}),c.push(p)}return c}function b(e){var o=document.createElement("style"),c=e.attributes||{};if(void 0===c.nonce){var a=r.nc;a&&(c.nonce=a)}if(Object.keys(c).forEach((function(e){o.setAttribute(e,c[e])})),"function"==typeof e.insert)e.insert(o);else{var n=t(e.insert||"head");if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}return o}var p,l=(p=[],function(e,o){return p[e]=o,p.filter(Boolean).join("\n")});function s(e,o,r,c){var a=r?"":c.media?"@media ".concat(c.media," {").concat(c.css,"}"):c.css;if(e.styleSheet)e.styleSheet.cssText=l(o,a);else{var t=document.createTextNode(a),n=e.childNodes;n[o]&&e.removeChild(n[o]),n.length?e.insertBefore(t,n[o]):e.appendChild(t)}}function h(e,o,r){var c=r.css,a=r.media,t=r.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),t&&"undefined"!=typeof btoa&&(c+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(t))))," */")),e.styleSheet)e.styleSheet.cssText=c;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(c))}}var
|
|
15
|
+
r(7418);var c=r(8156),a=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var t=Symbol.for;a=t("react.element"),t("react.fragment")}var n=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function b(e,o,r){var c,t={},b=null,p=null;for(c in void 0!==r&&(b=""+r),void 0!==o.key&&(b=""+o.key),void 0!==o.ref&&(p=o.ref),o)i.call(o,c)&&!u.hasOwnProperty(c)&&(t[c]=o[c]);if(e&&e.defaultProps)for(c in o=e.defaultProps)void 0===t[c]&&(t[c]=o[c]);return{$$typeof:a,type:e,key:b,ref:p,props:t,_owner:n.current}}o.jsx=b,o.jsxs=b},5893:function(e,o,r){"use strict";e.exports=r(5251)},9036:function(e,o,r){var c=r(3379),a=r(1204);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var t={insert:("body","body"),singleton:!1};c(a,t);e.exports=a.locals||{}},7708:function(e,o,r){var c=r(3379),a=r(9974);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var t={insert:("body","body"),singleton:!1};c(a,t);e.exports=a.locals||{}},3379:function(e,o,r){"use strict";var c,a=function(){return void 0===c&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},t=function(){var e={};return function(o){if(void 0===e[o]){var r=document.querySelector(o);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[o]=r}return e[o]}}(),n=[];function i(e){for(var o=-1,r=0;r<n.length;r++)if(n[r].identifier===e){o=r;break}return o}function u(e,o){for(var r={},c=[],a=0;a<e.length;a++){var t=e[a],u=o.base?t[0]+o.base:t[0],b=r[u]||0,p="".concat(u," ").concat(b);r[u]=b+1;var l=i(p),s={css:t[1],media:t[2],sourceMap:t[3]};-1!==l?(n[l].references++,n[l].updater(s)):n.push({identifier:p,updater:f(s,o),references:1}),c.push(p)}return c}function b(e){var o=document.createElement("style"),c=e.attributes||{};if(void 0===c.nonce){var a=r.nc;a&&(c.nonce=a)}if(Object.keys(c).forEach((function(e){o.setAttribute(e,c[e])})),"function"==typeof e.insert)e.insert(o);else{var n=t(e.insert||"head");if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}return o}var p,l=(p=[],function(e,o){return p[e]=o,p.filter(Boolean).join("\n")});function s(e,o,r,c){var a=r?"":c.media?"@media ".concat(c.media," {").concat(c.css,"}"):c.css;if(e.styleSheet)e.styleSheet.cssText=l(o,a);else{var t=document.createTextNode(a),n=e.childNodes;n[o]&&e.removeChild(n[o]),n.length?e.insertBefore(t,n[o]):e.appendChild(t)}}function h(e,o,r){var c=r.css,a=r.media,t=r.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),t&&"undefined"!=typeof btoa&&(c+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(t))))," */")),e.styleSheet)e.styleSheet.cssText=c;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(c))}}var x=null,d=0;function f(e,o){var r,c,a;if(o.singleton){var t=d++;r=x||(x=b(o)),c=s.bind(null,r,t,!1),a=s.bind(null,r,t,!0)}else r=b(o),c=h.bind(null,r,o),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return c(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;c(e=o)}else a()}}e.exports=function(e,o){(o=o||{}).singleton||"boolean"==typeof o.singleton||(o.singleton=a());var r=u(e=e||[],o);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var c=0;c<r.length;c++){var a=i(r[c]);n[a].references--}for(var t=u(e,o),b=0;b<r.length;b++){var p=i(r[b]);0===n[p].references&&(n[p].updater(),n.splice(p,1))}r=t}}}},9690:function(e,o,r){"use strict";var c=r(5893),a=r(8156),t=(r(9036),function(){return t=Object.assign||function(e){for(var o,r=1,c=arguments.length;r<c;r++)for(var a in o=arguments[r])Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a]);return e},t.apply(this,arguments)});o.default=function(e){var o=e.className,r=void 0===o?"":o,n=e.label,i=void 0===n?"":n,u=e.size,b=void 0===u?"large":u,p=e.disabled,l=void 0!==p&&p,s=e.indeterminate,h=void 0!==s&&s,x=e.onChange,d=e.style,f=(0,a.useState)(!1),k=f[0],g=f[1];(0,a.useEffect)((function(){void 0!==e.defaultChecked&&g(e.defaultChecked)}),[]),(0,a.useEffect)((function(){void 0!==e.checked&&g(e.checked)}),[e.checked]);var v;return(0,c.jsxs)("label",t({className:(v="paraui-check-box",r&&(v+=" "+r),b&&(v+=" check-box-"+b),l&&(v+=" check-box-disabled"),h?v+=" check-box-indeterminate":k&&(v+=" check-box-checked"),v),onClick:function(o){if(o.preventDefault(),!l){if(h)return void 0===e.checked&&g(!0),void(x&&x(o,!0));void 0===e.checked&&g(!k),o.target.checked=!k,o.target.value=!k,x&&x(o,!k)}},style:d},{children:[(0,c.jsxs)("span",t({className:"paraui-checkbox-box"},{children:[(0,c.jsx)("input",t({type:"checkbox",value:k},e.inputProps)),(0,c.jsx)("span",{className:"paraui-checkbox-box-inner"})]})),i&&(0,c.jsx)("span",t({className:"paraui-check-box-label"},{children:i}))]}))}},8543:function(e){"use strict";e.exports=o},8156:function(o){"use strict";o.exports=e}},c={};function a(e){var o=c[e];if(void 0!==o)return o.exports;var t=c[e]={id:e,exports:{}};return r[e](t,t.exports,a),t.exports}a.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(o,{a:o}),o},a.d=function(e,o){for(var r in o)a.o(o,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},a.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};return function(){"use strict";a.r(t),a.d(t,{CheckboxGroup:function(){return i}});var e=a(8156),o=a(5893),r=a(9690),c=a(8543),n=(a(7708),function(){return n=Object.assign||function(e){for(var o,r=1,c=arguments.length;r<c;r++)for(var a in o=arguments[r])Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a]);return e},n.apply(this,arguments)}),i=function(a){var t=a.label,i=void 0===t?"":t,u=a.size,b=void 0===u?"large":u,p=a.row,l=void 0===p||p,s=a.disabled,h=void 0!==s&&s,x=a.required,d=void 0!==x&&x,f=a.error,k=void 0!==f&&f,g=a.helperText,v=void 0===g?"":g,m=a.id,y=void 0===m?"name":m,j=a.list,w=a.className,O=void 0===w?"":w,S=a.onChange,C=a.style,N=(0,e.useState)([]),_=N[0],E=N[1];(0,e.useEffect)((function(){void 0!==a.defaultValue&&E(a.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==a.value&&E(a.value)}),[a.value]);var M,P=function(e){return function(o,r){var t=e[y],n=(0,c.DeepClone)(_);if(r)n.push(t);else{var i=n.indexOf(t);n.splice(i,1)}void 0===a.value&&E(n),S&&S(n)}};return(0,o.jsxs)("div",n({className:(M="paraui-check-box-group",O&&(M+=" "+O),b&&(M+=" check-box-group-"+b),k&&(M+=" check-box-group-error"),h&&(M+=" check-box-group-disabled"),M+=l?" check-box-group-row":" check-box-group-column"),style:C},{children:[i||d?(0,o.jsxs)("label",n({className:"check-box-group-label"},{children:[i,d&&(0,o.jsx)("span",n({className:"required-char"},{children:"*"}))]})):null,(0,o.jsx)("div",n({className:"check-box-group-content"},{children:j.map((function(o,c){return(0,e.createElement)(r.default,n({},o,{checked:-1!==_.indexOf(o[y]),size:b,disabled:Boolean(h||o.disabled),key:c,onChange:P(o)}))}))})),v&&(0,o.jsx)("p",n({className:"check-box-group-error-text"},{children:v}))]}))};t.default=i}(),t}()}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/3/7 4:12 PM
|
|
4
|
+
* @description 折叠面板
|
|
5
|
+
*/
|
|
6
|
+
import { FunctionComponent } from 'react';
|
|
7
|
+
export interface CollapsePanelProps {
|
|
8
|
+
}
|
|
9
|
+
export declare const CollapsePanelProps: FunctionComponent<CollapsePanelProps>;
|
|
10
|
+
export default CollapsePanelProps;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/3/7 4:03 PM
|
|
4
|
+
* @description 折叠面板
|
|
5
|
+
*/
|
|
6
|
+
import { FunctionComponent } from 'react';
|
|
7
|
+
export interface CollapseProps {
|
|
8
|
+
/** 手风琴模式 */
|
|
9
|
+
accordion?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const Collapse: FunctionComponent<CollapseProps>;
|
|
12
|
+
export default Collapse;
|
|
@@ -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,{Collapse:function(){return r}});var e=n(5893),r=function(r){return(0,e.jsx)("div",{})};o.default=r}(),o}()}));
|