@para-ui/core 2.1.14 → 2.1.17
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.js +5 -5
- package/AutoTips/index.js +2 -2
- package/Breadcrumbs/index.js +2 -2
- package/Button/index.js +8 -8
- package/ButtonGroup/index.js +9 -9
- package/Checkbox/index.d.ts +3 -0
- package/Checkbox/index.js +16 -4
- package/CheckboxGroup/index.d.ts +3 -0
- package/CheckboxGroup/index.js +16 -4
- package/ComboSelect/index.js +56 -4
- package/ComboSelect/interface.d.ts +8 -1
- package/DatePicker/generatePicker/index.d.ts +8 -1
- package/DatePicker/index.js +36 -23
- package/Drawer/index.js +42 -4
- package/Drawer/interface.d.ts +10 -0
- package/Form/index.js +16 -3
- package/FormItem/index.js +44 -31
- package/FunctionModal/index.js +2 -2
- package/Help/index.js +1 -1
- package/HelperText/index.d.ts +19 -0
- package/HelperText/index.js +15 -0
- package/InputLang/index.d.ts +3 -0
- package/InputLang/index.js +20 -7
- package/InputNumber/index.d.ts +5 -2
- package/InputNumber/index.js +24 -11
- package/Label/index.d.ts +35 -0
- package/Label/index.js +27 -0
- package/Modal/index.d.ts +2 -2
- package/Modal/index.js +2 -2
- package/Modal/lang/index.d.ts +6 -0
- package/MultiBox/index.d.ts +3 -0
- package/MultiBox/index.js +26 -13
- package/Notification/index.js +1 -1
- package/PageHeader/index.js +11 -11
- package/Pagination/index.js +16 -3
- package/PopConfirm/index.js +8 -8
- package/Popover/index.d.ts +1 -0
- package/Popover/index.js +3 -4
- package/README.md +37 -0
- package/Radio/index.d.ts +3 -0
- package/Radio/index.js +16 -4
- package/RadioGroup/index.d.ts +3 -0
- package/RadioGroup/index.js +16 -4
- package/Search/index.d.ts +2 -0
- package/Search/index.js +16 -3
- package/Select/index.d.ts +3 -0
- package/Select/index.js +26 -13
- package/SelectInput/index.js +26 -13
- package/SingleBox/index.d.ts +3 -0
- package/SingleBox/index.js +19 -6
- package/Slider/index.js +1 -1
- package/Stepper/index.js +1 -1
- package/Switch/index.js +1 -1
- package/Table/index.js +32 -19
- package/Tabs/index.d.ts +9 -0
- package/Tabs/index.js +109 -6
- package/Tag/index.js +1 -1
- package/TextField/index.d.ts +7 -4
- package/TextField/index.js +22 -9
- package/TimePicker/index.js +36 -23
- package/Timeline/index.js +2 -2
- package/ToggleButton/index.js +9 -9
- package/Tooltip/index.js +1 -1
- package/Transfer/index.js +33 -20
- package/Tree/index.js +17 -4
- package/Upload/index.js +2 -2
- package/cdn/AutoBox/index.js +4 -4
- package/cdn/AutoTips/index.js +1 -1
- package/cdn/Breadcrumbs/index.js +4 -4
- package/cdn/Button/index.js +2 -2
- package/cdn/ButtonGroup/index.js +2 -2
- package/cdn/Cascader/index.js +1 -1
- package/cdn/Checkbox/index.js +53 -1
- package/cdn/CheckboxGroup/index.js +53 -1
- package/cdn/ComboSelect/index.js +106 -54
- package/cdn/DatePicker/index.js +19 -6
- package/cdn/Drawer/index.js +80 -2
- package/cdn/Form/index.js +46 -33
- package/cdn/FormItem/index.js +46 -33
- package/cdn/FunctionModal/index.js +19 -19
- package/cdn/Help/index.js +1 -1
- package/cdn/HelperText/index.js +1 -0
- package/cdn/InputLang/index.js +18 -5
- package/cdn/InputNumber/index.js +63 -11
- package/cdn/Label/index.js +53 -0
- package/cdn/Modal/index.js +2 -2
- package/cdn/MultiBox/index.js +18 -5
- package/cdn/Notification/index.js +1 -1
- package/cdn/PageHeader/index.js +2 -2
- package/cdn/Pagination/index.js +40 -27
- package/cdn/PopConfirm/index.js +2 -2
- package/cdn/Popover/index.js +3 -4
- package/cdn/Radio/index.js +53 -1
- package/cdn/RadioGroup/index.js +53 -1
- package/cdn/Search/index.js +30 -17
- package/cdn/Select/index.js +26 -13
- package/cdn/SelectInput/index.js +26 -13
- package/cdn/SingleBox/index.js +18 -5
- package/cdn/Slider/index.js +2 -2
- package/cdn/Stepper/index.js +1 -1
- package/cdn/Switch/index.js +4 -4
- package/cdn/Table/index.js +18 -5
- package/cdn/Tabs/index.js +110 -6
- package/cdn/Tag/index.js +1 -1
- package/cdn/TextField/index.js +17 -4
- package/cdn/TimePicker/index.js +19 -6
- package/cdn/Timeline/index.js +2 -2
- package/cdn/ToggleButton/index.js +2 -2
- package/cdn/Tooltip/index.js +1 -1
- package/cdn/Transfer/index.js +18 -5
- package/cdn/Tree/index.js +19 -6
- package/cdn/Upload/index.js +4 -4
- package/index.d.ts +4 -0
- package/index.js +107 -107
- package/package.json +2 -1
- package/style.css +39 -33
package/CheckboxGroup/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
!function(e,
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@material-ui/core"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@material-ui/core"],e["@paraview/lib"])}(self,(function(e,r,t){return function(){var o={5670:function(e,r,t){var o;self,e.exports=(o=t(8156),function(){var e={466:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-icon{width:1em;height:1em;fill:currentColor;display:inline-block;user-select:none;flex-shrink:0}.paraui-icon-primary{color:#3666d6}.paraui-icon-secondary{color:#3666d6}.paraui-icon-thirdary{color:#3666d6}.paraui-icon-small{font-size:16px}.paraui-icon-medium{font-size:18px}.paraui-icon-large{font-size:20px}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t,o,n,a=e[1]||"",i=e[3];if(!i)return a;if(r&&"function"==typeof btoa){var c=(t=i,o=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),"/*# ".concat(n," */")),u=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[a].concat(u).concat([c]).join("\n")}return[a].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,o){"string"==typeof e&&(e=[[null,e,""]]);var n={};if(o)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(n[i]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&n[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
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/var
|
|
6
|
+
*/var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function n(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 o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,c,u=n(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++)o.call(i,c[p])&&(u[c[p]]=i[c[p]])}}return u}},5251:function(e,r,t){"use strict";
|
|
7
7
|
/** @license React v17.0.2
|
|
8
8
|
* react-jsx-runtime.production.min.js
|
|
9
9
|
*
|
|
@@ -11,5 +11,17 @@ 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
|
-
*/
|
|
15
|
-
|
|
14
|
+
*/t(7418);var o=t(8156),n=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;n=a("react.element"),r.Fragment=a("react.fragment")}var i=o.__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 o,a={},l=null,s=null;for(o in void 0!==t&&(l=""+t),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(s=r.ref),r)c.call(r,o)&&!u.hasOwnProperty(o)&&(a[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===a[o]&&(a[o]=r[o]);return{$$typeof:n,type:e,key:l,ref:s,props:a,_owner:i.current}}r.jsx=l,r.jsxs=l},5893:function(e,r,t){"use strict";e.exports=t(5251)},7856:function(e,r,t){var o=t(3379),n=t(466);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]),o(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},3379:function(e,r,t){"use strict";var o,n=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},a=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={},o=[],n=0;n<e.length;n++){var a=e[n],u=r.base?a[0]+r.base:a[0],l=t[u]||0,s="".concat(u," ").concat(l);t[u]=l+1;var p=c(s),f={css:a[1],media:a[2],sourceMap:a[3]};-1!==p?(i[p].references++,i[p].updater(f)):i.push({identifier:s,updater:x(f,r),references:1}),o.push(s)}return o}function l(e){var r=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var n=t.nc;n&&(o.nonce=n)}if(Object.keys(o).forEach((function(e){r.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(r);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}return r}var s,p=(s=[],function(e,r){return s[e]=r,s.filter(Boolean).join("\n")});function f(e,r,t,o){var n=t?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=p(r,n);else{var a=document.createTextNode(n),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(a,i[r]):e.appendChild(a)}}function d(e,r,t){var o=t.css,n=t.media,a=t.sourceMap;if(n?e.setAttribute("media",n):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var b=null,h=0;function x(e,r){var t,o,n;if(r.singleton){var a=h++;t=b||(b=l(r)),o=f.bind(null,t,a,!1),n=f.bind(null,t,a,!0)}else t=l(r),o=d.bind(null,t,r),n=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return o(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;o(e=r)}else n()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=n());var t=u(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<t.length;o++){var n=c(t[o]);i[n].references--}for(var a=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=a}}}},4939:function(e,r,t){"use strict";var o=t(5893),n=(t(7856),function(){return n=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},n.apply(this,arguments)}),a=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t};r.default=function(e){var r,t=e.path,i=e.className,c=e.color,u=void 0===c?"primary":c,l=e.size,s=void 0===l?"small":l,p=e.dataName,f=void 0===p?"":p,d=a(e,["path","className","color","size","dataName"]);return(0,o.jsx)("svg",n({className:(r="paraui-icon",r+=" svg-icon",i&&(r+=" "+i),u&&(r+=" paraui-icon-"+u),s&&(r+=" paraui-icon-"+s),r),viewBox:"0 0 1024 1024","data-name":f},d,{children:t}),void 0)}},8156:function(e){"use strict";e.exports=o}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var a=r[o]={id:o,exports:{}};return e[o](a,a.exports,t),a.exports}t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},t.d=function(e,r){for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){"use strict";t.r(n),t.d(n,{Help:function(){return a}});var e=t(5893),r=t(4939),o=function(){return o=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},o.apply(this,arguments)},a=function(t){return(0,e.jsx)(r.default,o({dataName:"Help",path:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M512 128a384 384 0 1 1-384 384 384 384 0 0 1 384-384m0-64a448 448 0 1 0 448 448 448 448 0 0 0-448-448z","p-id":"11281"},void 0),(0,e.jsx)("path",{d:"M533.76 654.08H465.92v-19.2a140.8 140.8 0 0 1 64-128A135.04 135.04 0 0 0 598.4 403.2 79.36 79.36 0 0 0 518.4 320Q430.72 320 408.32 429.44l-72.32-18.56A168.32 168.32 0 0 1 528.64 256a144 144 0 0 1 152.32 138.88A167.68 167.68 0 0 1 588.8 544a108.8 108.8 0 0 0-55.04 96zM458.24 704h82.56v88.96H458.24z","p-id":"11282"},void 0)]},void 0)},t),void 0)};n.default=a}(),n}())},6010:function(e,r,t){"use strict";function o(e){var r,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=o(e[r]))&&(n&&(n+=" "),n+=t);else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function n(){for(var e,r,t=0,n="";t<arguments.length;)(e=arguments[t++])&&(r=o(e))&&(n&&(n+=" "),n+=r);return n}t.d(r,{Z:function(){return n}})},1204:function(e,r,t){(r=t(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;cursor:pointer}.paraui-check-box:hover>.paraui-check-box-label svg{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;margin:0;display:inline-flex;align-items:center}.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-checked>.paraui-check-box-label svg{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-indeterminate>.paraui-check-box-label svg{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);cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label svg{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=r},9974:function(e,r,t){(r=t(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-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}\n",""]),e.exports=r},7381:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-help{display:inline-block}\n",""]),e.exports=r},9916:function(e,r,t){(r=t(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:14px;font-weight:400;margin:8px 0 0 0;padding-left:12px;line-height:1;color:rgba(46,55,67,0.7)}.paraui-helper-text.paraui-helper-text-error{color:#eb6054}\n",""]),e.exports=r},4928:function(e,r,t){(r=t(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,0.7);margin-bottom:8px;display:inline-block}.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,0.4);vertical-align:middle}.paraui-label.paraui-label-line.paraui-label-tooltip{border-bottom:1px dashed rgba(46,55,67,0.4);padding-bottom:2px}\n",""]),e.exports=r},9929:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-tooltip>div{padding-left:12px;padding-right:12px;font-size:14px;font-weight:400;color:#fff;background-color:rgba(46,55,67,0.7)}.paraui-tooltip-left-right>div{margin:0 8px}.paraui-tooltip-top-bottom>div{margin:8px 0}\n",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t=e[1]||"",o=e[3];if(!o)return t;if(r&&"function"==typeof btoa){var n=(i=o,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),a=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([n]).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,o){"string"==typeof e&&(e=[[null,e,""]]);var n={};if(o)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(n[i]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&n[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";
|
|
15
|
+
/*
|
|
16
|
+
object-assign
|
|
17
|
+
(c) Sindre Sorhus
|
|
18
|
+
@license MIT
|
|
19
|
+
*/var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function n(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 o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,c,u=n(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++)o.call(i,c[p])&&(u[c[p]]=i[c[p]])}}return u}},5251:function(e,r,t){"use strict";
|
|
20
|
+
/** @license React v17.0.2
|
|
21
|
+
* react-jsx-runtime.production.min.js
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/t(7418);var o=t(8156),n=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;n=a("react.element"),r.Fragment=a("react.fragment")}var i=o.__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 o,a={},l=null,s=null;for(o in void 0!==t&&(l=""+t),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(s=r.ref),r)c.call(r,o)&&!u.hasOwnProperty(o)&&(a[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===a[o]&&(a[o]=r[o]);return{$$typeof:n,type:e,key:l,ref:s,props:a,_owner:i.current}}r.jsx=l,r.jsxs=l},5893:function(e,r,t){"use strict";e.exports=t(5251)},9036:function(e,r,t){var o=t(3379),n=t(1204);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);var a={insert:("body","body"),singleton:!1};o(n,a);e.exports=n.locals||{}},7708:function(e,r,t){var o=t(3379),n=t(9974);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);var a={insert:("body","body"),singleton:!1};o(n,a);e.exports=n.locals||{}},2113:function(e,r,t){var o=t(3379),n=t(7381);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);var a={insert:("body","body"),singleton:!1};o(n,a);e.exports=n.locals||{}},3936:function(e,r,t){var o=t(3379),n=t(9916);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);var a={insert:("body","body"),singleton:!1};o(n,a);e.exports=n.locals||{}},9663:function(e,r,t){var o=t(3379),n=t(4928);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);var a={insert:("body","body"),singleton:!1};o(n,a);e.exports=n.locals||{}},2310:function(e,r,t){var o=t(3379),n=t(9929);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);var a={insert:("body","body"),singleton:!1};o(n,a);e.exports=n.locals||{}},3379:function(e,r,t){"use strict";var o,n=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},a=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={},o=[],n=0;n<e.length;n++){var a=e[n],u=r.base?a[0]+r.base:a[0],l=t[u]||0,s="".concat(u," ").concat(l);t[u]=l+1;var p=c(s),f={css:a[1],media:a[2],sourceMap:a[3]};-1!==p?(i[p].references++,i[p].updater(f)):i.push({identifier:s,updater:x(f,r),references:1}),o.push(s)}return o}function l(e){var r=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var n=t.nc;n&&(o.nonce=n)}if(Object.keys(o).forEach((function(e){r.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(r);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}return r}var s,p=(s=[],function(e,r){return s[e]=r,s.filter(Boolean).join("\n")});function f(e,r,t,o){var n=t?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=p(r,n);else{var a=document.createTextNode(n),i=e.childNodes;i[r]&&e.removeChild(i[r]),i.length?e.insertBefore(a,i[r]):e.appendChild(a)}}function d(e,r,t){var o=t.css,n=t.media,a=t.sourceMap;if(n?e.setAttribute("media",n):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var b=null,h=0;function x(e,r){var t,o,n;if(r.singleton){var a=h++;t=b||(b=l(r)),o=f.bind(null,t,a,!1),n=f.bind(null,t,a,!0)}else t=l(r),o=d.bind(null,t,r),n=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return o(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;o(e=r)}else n()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=n());var t=u(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<t.length;o++){var n=c(t[o]);i[n].references--}for(var a=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=a}}}},9690:function(e,r,t){"use strict";var o=t(5893),n=t(8156),a=t(8767),i=(t(9036),function(){return i=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},i.apply(this,arguments)});r.default=function(e){var r=e.className,t=void 0===r?"":r,c=e.label,u=void 0===c?"":c,l=e.labelTooltip,s=e.size,p=void 0===s?"large":s,f=e.disabled,d=void 0!==f&&f,b=e.indeterminate,h=void 0!==b&&b,x=e.onChange,v=e.style,g=(0,n.useState)(!1),m=g[0],y=g[1];(0,n.useEffect)((function(){void 0!==e.defaultChecked&&y(e.defaultChecked)}),[]),(0,n.useEffect)((function(){void 0!==e.checked&&y(e.checked)}),[e.checked]);var k;return(0,o.jsxs)("label",i({className:(k="paraui-check-box",t&&(k+=" "+t),p&&(k+=" check-box-"+p),d&&(k+=" check-box-disabled"),h?k+=" check-box-indeterminate":m&&(k+=" check-box-checked"),k),onClick:function(r){if(r.preventDefault(),!d){if(h)return void 0===e.checked&&y(!0),void(x&&x(r,!0));void 0===e.checked&&y(!m),r.target.checked=!m,r.target.value=!m,x&&x(r,!m)}},style:v},{children:[(0,o.jsxs)("span",i({className:"paraui-checkbox-box"},{children:[(0,o.jsx)("input",i({type:"checkbox",value:m},e.inputProps)),(0,o.jsx)("span",{className:"paraui-checkbox-box-inner"})]})),u&&(0,o.jsx)(a.default,i({label:u},l,{className:function(){var e="paraui-check-box-label";return l&&l.className&&(e+=" "+l.className),e}()}))]}))}},3566:function(e,r,t){"use strict";var o=t(5893),n=t(7371),a=t(5670),i=t.n(a),c=t(6010),u=(t(2113),function(){return u=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},u.apply(this,arguments)}),l=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t};r.default=function(e){var r=e.title,t=void 0===r?"":r,a=e.children,s=e.arrow,p=void 0===s||s,f=e.interactive,d=void 0===f||f,b=e.className,h=l(e,["title","children","arrow","interactive","className"]);return(0,o.jsx)(n.default,u({title:t,arrow:p,interactive:d},h,{children:(0,o.jsx)("span",u({className:(0,c.Z)("paraui-help",b)},{children:a||(0,o.jsx)(i(),{})}))}))}},4254:function(e,r,t){"use strict";var o=t(5893),n=(t(3936),function(){return n=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},n.apply(this,arguments)});r.default=function(e){var r,t=e.className,a=e.style,i=e.error,c=void 0!==i&&i,u=e.helperText;return(0,o.jsx)(o.Fragment,{children:u&&(0,o.jsx)("p",n({className:(r="paraui-helper-text",t&&(r+=" "+t),c&&(r+=" paraui-helper-text-error"),r),style:a},{children:u}))})}},8767:function(e,r,t){"use strict";var o=t(5893),n=t(3566),a=(t(9663),function(){return a=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},a.apply(this,arguments)});r.default=function(e){var r=e.className,t=e.style,i=e.label,c=e.labelSign,u=e.required,l=void 0!==u&&u,s=e.tooltip,p=e.tooltipType,f=void 0===p?"icon":p,d=e.placement,b=e.arrow,h=void 0!==b&&b,x=e.tooltipIcon,v=function(){return d||("line"===f?"bottom":"right-start")},g=function(){var e="paraui-label";return f&&(e+=" paraui-label-"+f),s&&(e+=" paraui-label-tooltip"),r&&(e+=" "+r),e};return(0,o.jsxs)(o.Fragment,{children:["icon"===f&&(0,o.jsxs)("label",a({className:g(),style:t},{children:[(0,o.jsx)(o.Fragment,{children:i}),l&&(0,o.jsx)("span",a({className:"paraui-label-required"},{children:"*"})),c&&(0,o.jsx)("span",{children:c}),s&&(0,o.jsx)(n.default,a({title:s,placement:v(),arrow:h},{children:x}))]})),"line"===f&&(0,o.jsx)(n.default,a({title:s||"",placement:v(),arrow:h},{children:(0,o.jsxs)("label",a({className:g(),style:t},{children:[(0,o.jsx)(o.Fragment,{children:i}),l&&(0,o.jsx)("span",a({className:"paraui-label-required"},{children:"*"})),c&&(0,o.jsx)("span",{children:c})]}))}))]})}},7371:function(e,r,t){"use strict";var o=t(5893),n=t(670),a=t(6010),i=(t(2310),function(){return i=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},i.apply(this,arguments)});r.default=function(e){var r,t=e.placement,c=void 0===t?"bottom":t,u=i(i({},e.classes),{popper:(0,a.Z)("paraui-tooltip",null===(r=e.classes)||void 0===r?void 0:r.popper,{"paraui-tooltip-left-right":(null==c?void 0:c.includes("left"))||(null==c?void 0:c.includes("right")),"paraui-tooltip-top-bottom":(null==c?void 0:c.includes("top"))||(null==c?void 0:c.includes("bottom"))})});return(0,o.jsx)(n.Tooltip,i({},e,{classes:u}))}},670:function(e){"use strict";e.exports=r},8543:function(e){"use strict";e.exports=t},8156:function(r){"use strict";r.exports=e}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={id:e,exports:{}};return o[e](t,t.exports,a),t.exports}a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,{a:r}),r},a.d=function(e,r){for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";a.r(i),a.d(i,{CheckboxGroup:function(){return l}});var e=a(8156),r=a(5893),t=a(9690),o=a(8767),n=a(4254),c=a(8543),u=(a(7708),function(){return u=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},u.apply(this,arguments)}),l=function(a){var i=a.label,l=void 0===i?"":i,s=a.labelTooltip,p=a.size,f=void 0===p?"large":p,d=a.row,b=void 0===d||d,h=a.disabled,x=void 0!==h&&h,v=a.required,g=void 0!==v&&v,m=a.error,y=void 0!==m&&m,k=a.helperText,j=void 0===k?"":k,O=a.id,w=void 0===O?"name":O,S=a.list,N=a.className,_=void 0===N?"":N,C=a.onChange,P=a.style,M=(0,e.useState)([]),E=M[0],T=M[1];(0,e.useEffect)((function(){void 0!==a.defaultValue&&T(a.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==a.value&&T(a.value)}),[a.value]);var H,F=function(e){return function(r,t){var o=e[w],n=(0,c.DeepClone)(E);if(t)n.push(o);else{var i=n.indexOf(o);n.splice(i,1)}void 0===a.value&&T(n),C&&C(n)}};return(0,r.jsxs)("div",u({className:(H="paraui-check-box-group",_&&(H+=" "+_),f&&(H+=" check-box-group-"+f),y&&(H+=" check-box-group-error"),x&&(H+=" check-box-group-disabled"),H+=b?" check-box-group-row":" check-box-group-column"),style:P},{children:[function(){if(l||g){return(0,r.jsx)(o.default,u({label:l,required:g},s,{className:(e="check-box-group-label",s&&s.className&&(e+=" "+s.className),e)}))}var e;return null}(),(0,r.jsx)("div",u({className:"check-box-group-content"},{children:S.map((function(r,o){return(0,e.createElement)(t.default,u({},r,{checked:-1!==E.indexOf(r[w]),size:f,disabled:Boolean(x||r.disabled),key:o,onChange:F(r)}))}))})),(0,r.jsx)(n.default,{className:"check-box-group-error-text",error:y,helperText:j})]}))};i.default=l}(),i}()}));
|