@para-ui/core 2.1.3 → 2.1.4
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 +3 -1
- package/AutoBox/index.js +1 -1
- package/AutoTips/index.d.ts +2 -0
- package/AutoTips/index.js +1 -1
- package/Breadcrumbs/index.d.ts +11 -3
- package/Breadcrumbs/index.js +5 -5
- package/Button/index.js +8 -8
- package/ButtonGroup/index.d.ts +2 -0
- package/ButtonGroup/index.js +2 -2
- package/Checkbox/index.d.ts +3 -1
- package/Checkbox/index.js +1 -1
- package/CheckboxGroup/index.d.ts +5 -3
- package/CheckboxGroup/index.js +3 -3
- package/ComboSelect/index.js +2 -2
- package/DatePicker/PickerTag.d.ts +2 -2
- package/DatePicker/generatePicker/index.d.ts +1 -1
- package/DatePicker/index.js +35 -9
- package/Drawer/index.js +1 -1
- package/Drawer/interface.d.ts +5 -2
- package/Form/index.js +2 -2
- package/FormItem/index.js +2 -2
- package/FunctionModal/index.js +2 -2
- package/Help/index.d.ts +1 -0
- package/IconList/index.js +1 -1
- package/InputLang/index.d.ts +3 -1
- package/InputLang/index.js +2 -2
- package/InputNumber/index.js +8 -8
- package/Loading/index.d.ts +2 -2
- package/Menu/index.js +1 -1
- package/Menu/interface.d.ts +3 -1
- package/Message/index.d.ts +3 -1
- package/Message/index.js +1 -1
- package/Modal/index.d.ts +7 -1
- package/Modal/index.js +2 -2
- package/MultiBox/index.d.ts +3 -1
- package/MultiBox/index.js +2 -2
- package/PageHeader/index.js +2 -2
- package/PageHeader/interface.d.ts +3 -1
- package/Pagination/index.d.ts +3 -1
- package/Pagination/index.js +2 -2
- package/PopConfirm/index.d.ts +3 -1
- package/PopConfirm/index.js +2 -2
- package/README.md +20 -5
- package/Radio/index.d.ts +4 -2
- package/Radio/index.js +1 -1
- package/RadioGroup/index.d.ts +6 -4
- package/RadioGroup/index.js +3 -3
- package/Search/index.d.ts +2 -0
- package/Search/index.js +2 -2
- package/Select/index.d.ts +4 -2
- package/Select/index.js +2 -2
- package/SingleBox/index.d.ts +3 -1
- package/SingleBox/index.js +2 -2
- package/Slider/interface.d.ts +2 -0
- package/Switch/index.d.ts +4 -0
- package/Table/index.js +2 -2
- package/Table/interface.d.ts +5 -3
- package/Tabs/index.d.ts +2 -2
- package/Tag/index.js +7 -7
- package/TextField/index.d.ts +2 -0
- package/TextField/index.js +2 -2
- package/TimePicker/index.d.ts +1 -0
- package/TimePicker/index.js +35 -9
- package/Timeline/index.d.ts +3 -1
- package/Timeline/index.js +1 -1
- package/ToggleButton/index.js +9 -9
- package/Transfer/index.js +2 -2
- package/Tree/index.js +1 -1
- package/Upload/index.js +1 -1
- package/cdn/AutoBox/index.js +1 -1
- package/cdn/AutoTips/index.js +1 -1
- package/cdn/Breadcrumbs/index.js +28 -4
- package/cdn/Button/index.js +1 -1
- package/cdn/ButtonGroup/index.js +2 -2
- package/cdn/Checkbox/index.js +1 -1
- package/cdn/CheckboxGroup/index.js +1 -1
- package/cdn/ComboSelect/index.js +2 -2
- package/cdn/DatePicker/index.js +34 -8
- package/cdn/Drawer/index.js +1 -1
- package/cdn/Form/index.js +2 -2
- package/cdn/FormItem/index.js +2 -2
- package/cdn/FunctionModal/index.js +2 -2
- package/cdn/IconList/index.js +1 -1
- package/cdn/InputLang/index.js +4 -4
- package/cdn/InputNumber/index.js +2 -2
- package/cdn/Menu/index.js +1 -1
- package/cdn/Message/index.js +1 -1
- package/cdn/Modal/index.js +2 -2
- package/cdn/MultiBox/index.js +2 -2
- package/cdn/PageHeader/index.js +2 -2
- package/cdn/Pagination/index.js +2 -2
- package/cdn/PopConfirm/index.js +2 -2
- package/cdn/Radio/index.js +1 -1
- package/cdn/RadioGroup/index.js +1 -1
- package/cdn/Search/index.js +17 -17
- package/cdn/Select/index.js +2 -2
- package/cdn/SingleBox/index.js +2 -2
- package/cdn/Table/index.js +2 -2
- package/cdn/Tag/index.js +1 -1
- package/cdn/TextField/index.js +2 -2
- package/cdn/TimePicker/index.js +34 -8
- package/cdn/Timeline/index.js +1 -1
- package/cdn/ToggleButton/index.js +1 -1
- package/cdn/Transfer/index.js +2 -2
- package/cdn/Tree/index.js +1 -1
- package/cdn/Upload/index.js +1 -1
- package/index.js +2 -2
- package/package.json +1 -1
- package/style.css +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@paraview/lib"])}(self,(function(e,r){return function(){var o={81204:function(e,r,o){(r=o(23645)(!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.121569);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},59974:function(e,r,o){(r=o(23645)(!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.701961);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-error>.check-box-group-error-text{color:#eb6054}\n",""]),e.exports=r},23645: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]||"",t=e[3];if(!t)return o;if(r&&"function"==typeof btoa){var a=(n=t,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(u," */")),c=t.sources.map((function(e){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(e," */")}));return[o].concat(c).concat([a]).join("\n")}var n,i,u;return[o].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(o,"}"):o})).join("")},r.i=function(e,o,t){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(t)for(var c=0;c<this.length;c++){var n=this[c][0];null!=n&&(a[n]=!0)}for(var i=0;i<e.length;i++){var u=[].concat(e[i]);t&&a[u[0]]||(o&&(u[2]?u[2]="".concat(o," and ").concat(u[2]):u[2]=o),r.push(u))}},r}},97008:function(e,r,o){var t=o(93379),a=o(81204);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var c={insert:"head",singleton:!1};t(a,c);e.exports=a.locals||{}},6724:function(e,r,o){var t=o(93379),a=o(59974);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var c={insert:"head",singleton:!1};t(a,c);e.exports=a.locals||{}},93379:function(e,r,o){"use strict";var t,a=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},c=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]}}(),n=[];function i(e){for(var r=-1,o=0;o<n.length;o++)if(n[o].identifier===e){r=o;break}return r}function u(e,r){for(var o={},t=[],a=0;a<e.length;a++){var c=e[a],u=r.base?c[0]+r.base:c[0],l=o[u]||0,b="".concat(u," ").concat(l);o[u]=l+1;var p=i(b),h={css:c[1],media:c[2],sourceMap:c[3]};-1!==p?(n[p].references++,n[p].updater(h)):n.push({identifier:b,updater:f(h,r),references:1}),t.push(b)}return t}function l(e){var r=document.createElement("style"),t=e.attributes||{};if(void 0===t.nonce){var a=o.nc;a&&(t.nonce=a)}if(Object.keys(t).forEach((function(e){r.setAttribute(e,t[e])})),"function"==typeof e.insert)e.insert(r);else{var n=c(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(r)}return r}var b,p=(b=[],function(e,r){return b[e]=r,b.filter(Boolean).join("\n")});function h(e,r,o,t){var a=o?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(e.styleSheet)e.styleSheet.cssText=p(r,a);else{var c=document.createTextNode(a),n=e.childNodes;n[r]&&e.removeChild(n[r]),n.length?e.insertBefore(c,n[r]):e.appendChild(c)}}function s(e,r,o){var t=o.css,a=o.media,c=o.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),c&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(c))))," */")),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}var d=null,x=0;function f(e,r){var o,t,a;if(r.singleton){var c=x++;o=d||(d=l(r)),t=h.bind(null,o,c,!1),a=h.bind(null,o,c,!0)}else o=l(r),t=s.bind(null,o,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else a()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=a());var o=u(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<o.length;t++){var a=i(o[t]);n[a].references--}for(var c=u(e,r),l=0;l<o.length;l++){var b=i(o[l]);0===n[b].references&&(n[b].updater(),n.splice(b,1))}o=c}}}},82157:function(e,r,o){"use strict";var t=o(8156),a=o.n(t);o(97008);function c(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,t=new Array(r);o<r;o++)t[o]=e[o];return t}function n(){return n=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},n.apply(this,arguments)}function i(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var t,a,c=[],n=!0,i=!1;try{for(o=o.call(e);!(n=(t=o.next()).done)&&(c.push(t.value),!r||c.length!==r);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return c}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return c(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(o);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return c(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.default=function(e){var r=e.className,o=void 0===r?"":r,c=e.label,u=void 0===c?"":c,l=e.size,b=void 0===l?"large":l,p=e.disabled,h=void 0!==p&&p,s=e.indeterminate,d=void 0!==s&&s,x=e.onChange,f=i((0,t.useState)(!1),2),k=f[0],v=f[1];(0,t.useEffect)((function(){void 0!==e.defaultChecked&&v(e.defaultChecked)}),[]),(0,t.useEffect)((function(){void 0!==e.checked&&v(e.checked)}),[e.checked]);var m;return a().createElement("label",{className:(m="paraui-check-box",o&&(m+=" "+o),b&&(m+=" check-box-"+b),h&&(m+=" check-box-disabled"),d?m+=" check-box-indeterminate":k&&(m+=" check-box-checked"),m),onClick:function(r){if(r.preventDefault(),!h){if(d)return void 0===e.checked&&v(!0),void(x&&x(r,!0));void 0===e.checked&&v(!k),r.target.checked=!k,r.target.value=!k,x&&x(r,!k)}}},a().createElement("span",{className:"paraui-checkbox-box"},a().createElement("input",n({type:"checkbox",value:k},e.inputProps)),a().createElement("span",{className:"paraui-checkbox-box-inner"})),u&&a().createElement("span",{className:"paraui-check-box-label"},u))}},58543:function(e){"use strict";e.exports=r},8156:function(r){"use strict";r.exports=e}},t={};function a(e){var r=t[e];if(void 0!==r)return r.exports;var c=t[e]={id:e,exports:{}};return o[e](c,c.exports,a),c.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 o in r)a.o(r,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},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 c={};return function(){"use strict";a.r(c),a.d(c,{CheckboxGroup:function(){return l}});var e=a(8156),r=a.n(e),o=a(82157),t=a(58543);a(6724);function n(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,t=new Array(r);o<r;o++)t[o]=e[o];return t}function i(){return i=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},i.apply(this,arguments)}function u(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var t,a,c=[],n=!0,i=!1;try{for(o=o.call(e);!(n=(t=o.next()).done)&&(c.push(t.value),!r||c.length!==r);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return c}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return n(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(o);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return n(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=function(a){var c=a.label,n=void 0===c?"":c,l=a.size,b=void 0===l?"large":l,p=a.row,h=void 0===p||p,s=a.disabled,d=void 0!==s&&s,x=a.required,f=void 0!==x&&x,k=a.error,v=void 0!==k&&k,m=a.helperText,g=void 0===m?"":m,y=a.id,w=void 0===y?"name":y,S=a.list,C=a.className,j=void 0===C?"":C,E=a.onChange,N=u((0,e.useState)([]),2),M=N[0],O=N[1];(0,e.useEffect)((function(){void 0!==a.defaultValue&&O(a.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==a.value&&O(a.value)}),[a.value]);var A,I=function(e){return function(r,o){var c=e[w],n=(0,t.DeepClone)(M);if(o)n.push(c);else{var i=n.indexOf(c);n.splice(i,1)}void 0===a.value&&O(n),E&&E(n)}};return r().createElement("div",{className:(A="paraui-check-box-group",j&&(A+=" "+j),b&&(A+=" check-box-group-"+b),v&&(A+=" check-box-group-error"),d&&(A+=" check-box-group-disabled"),h&&(A+=" check-box-group-row"),A)},r().createElement("label",{className:"check-box-group-label"},n,f&&r().createElement("span",{className:"required-char"},"*")),r().createElement("div",{className:"check-box-group-content"},S.map((function(e,t){return r().createElement(o.default,i({},e,{checked:-1!==M.indexOf(e[w]),size:b,disabled:Boolean(d||e.disabled),key:t,onChange:I(e)}))}))),g&&r().createElement("p",{className:"check-box-group-error-text"},g))};c.default=l}(),c}()}));
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@paraview/lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@paraview/lib")):e.ParaUI=r(e.react,e["@paraview/lib"])}(self,(function(e,r){return function(){var o={81204:function(e,r,o){(r=o(23645)(!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.121569);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},59974:function(e,r,o){(r=o(23645)(!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.701961);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=r},23645: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]||"",t=e[3];if(!t)return o;if(r&&"function"==typeof btoa){var c=(n=t,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(u," */")),a=t.sources.map((function(e){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(e," */")}));return[o].concat(a).concat([c]).join("\n")}var n,i,u;return[o].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(o,"}"):o})).join("")},r.i=function(e,o,t){"string"==typeof e&&(e=[[null,e,""]]);var c={};if(t)for(var a=0;a<this.length;a++){var n=this[a][0];null!=n&&(c[n]=!0)}for(var i=0;i<e.length;i++){var u=[].concat(e[i]);t&&c[u[0]]||(o&&(u[2]?u[2]="".concat(o," and ").concat(u[2]):u[2]=o),r.push(u))}},r}},97008:function(e,r,o){var t=o(93379),c=o(81204);"string"==typeof(c=c.__esModule?c.default:c)&&(c=[[e.id,c,""]]);var a={insert:"head",singleton:!1};t(c,a);e.exports=c.locals||{}},6724:function(e,r,o){var t=o(93379),c=o(59974);"string"==typeof(c=c.__esModule?c.default:c)&&(c=[[e.id,c,""]]);var a={insert:"head",singleton:!1};t(c,a);e.exports=c.locals||{}},93379:function(e,r,o){"use strict";var t,c=function(){return void 0===t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t},a=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]}}(),n=[];function i(e){for(var r=-1,o=0;o<n.length;o++)if(n[o].identifier===e){r=o;break}return r}function u(e,r){for(var o={},t=[],c=0;c<e.length;c++){var a=e[c],u=r.base?a[0]+r.base:a[0],l=o[u]||0,b="".concat(u," ").concat(l);o[u]=l+1;var p=i(b),h={css:a[1],media:a[2],sourceMap:a[3]};-1!==p?(n[p].references++,n[p].updater(h)):n.push({identifier:b,updater:f(h,r),references:1}),t.push(b)}return t}function l(e){var r=document.createElement("style"),t=e.attributes||{};if(void 0===t.nonce){var c=o.nc;c&&(t.nonce=c)}if(Object.keys(t).forEach((function(e){r.setAttribute(e,t[e])})),"function"==typeof e.insert)e.insert(r);else{var n=a(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(r)}return r}var b,p=(b=[],function(e,r){return b[e]=r,b.filter(Boolean).join("\n")});function h(e,r,o,t){var c=o?"":t.media?"@media ".concat(t.media," {").concat(t.css,"}"):t.css;if(e.styleSheet)e.styleSheet.cssText=p(r,c);else{var a=document.createTextNode(c),n=e.childNodes;n[r]&&e.removeChild(n[r]),n.length?e.insertBefore(a,n[r]):e.appendChild(a)}}function s(e,r,o){var t=o.css,c=o.media,a=o.sourceMap;if(c?e.setAttribute("media",c):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}var x=null,d=0;function f(e,r){var o,t,c;if(r.singleton){var a=d++;o=x||(x=l(r)),t=h.bind(null,o,a,!1),c=h.bind(null,o,a,!0)}else o=l(r),t=s.bind(null,o,r),c=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else c()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=c());var o=u(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<o.length;t++){var c=i(o[t]);n[c].references--}for(var a=u(e,r),l=0;l<o.length;l++){var b=i(o[l]);0===n[b].references&&(n[b].updater(),n.splice(b,1))}o=a}}}},82157:function(e,r,o){"use strict";var t=o(8156),c=o.n(t);o(97008);function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,t=new Array(r);o<r;o++)t[o]=e[o];return t}function n(){return n=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},n.apply(this,arguments)}function i(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var t,c,a=[],n=!0,i=!1;try{for(o=o.call(e);!(n=(t=o.next()).done)&&(a.push(t.value),!r||a.length!==r);n=!0);}catch(e){i=!0,c=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw c}}return a}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return a(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(o);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return a(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.default=function(e){var r=e.className,o=void 0===r?"":r,a=e.label,u=void 0===a?"":a,l=e.size,b=void 0===l?"large":l,p=e.disabled,h=void 0!==p&&p,s=e.indeterminate,x=void 0!==s&&s,d=e.onChange,f=e.style,k=i((0,t.useState)(!1),2),g=k[0],m=k[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 v;return c().createElement("label",{className:(v="paraui-check-box",o&&(v+=" "+o),b&&(v+=" check-box-"+b),h&&(v+=" check-box-disabled"),x?v+=" check-box-indeterminate":g&&(v+=" check-box-checked"),v),onClick:function(r){if(r.preventDefault(),!h){if(x)return void 0===e.checked&&m(!0),void(d&&d(r,!0));void 0===e.checked&&m(!g),r.target.checked=!g,r.target.value=!g,d&&d(r,!g)}},style:f},c().createElement("span",{className:"paraui-checkbox-box"},c().createElement("input",n({type:"checkbox",value:g},e.inputProps)),c().createElement("span",{className:"paraui-checkbox-box-inner"})),u&&c().createElement("span",{className:"paraui-check-box-label"},u))}},58543:function(e){"use strict";e.exports=r},8156:function(r){"use strict";r.exports=e}},t={};function c(e){var r=t[e];if(void 0!==r)return r.exports;var a=t[e]={id:e,exports:{}};return o[e](a,a.exports,c),a.exports}c.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(r,{a:r}),r},c.d=function(e,r){for(var o in r)c.o(r,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},c.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";c.r(a),c.d(a,{CheckboxGroup:function(){return l}});var e=c(8156),r=c.n(e),o=c(82157),t=c(58543);c(6724);function n(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,t=new Array(r);o<r;o++)t[o]=e[o];return t}function i(){return i=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},i.apply(this,arguments)}function u(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var t,c,a=[],n=!0,i=!1;try{for(o=o.call(e);!(n=(t=o.next()).done)&&(a.push(t.value),!r||a.length!==r);n=!0);}catch(e){i=!0,c=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw c}}return a}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return n(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(o);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return n(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=function(c){var a=c.label,n=void 0===a?"":a,l=c.size,b=void 0===l?"large":l,p=c.row,h=void 0===p||p,s=c.disabled,x=void 0!==s&&s,d=c.required,f=void 0!==d&&d,k=c.error,g=void 0!==k&&k,m=c.helperText,v=void 0===m?"":m,y=c.id,w=void 0===y?"name":y,S=c.list,C=c.className,j=void 0===C?"":C,E=c.onChange,N=c.style,M=u((0,e.useState)([]),2),O=M[0],A=M[1];(0,e.useEffect)((function(){void 0!==c.defaultValue&&A(c.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==c.value&&A(c.value)}),[c.value]);var I,T=function(e){return function(r,o){var a=e[w],n=(0,t.DeepClone)(O);if(o)n.push(a);else{var i=n.indexOf(a);n.splice(i,1)}void 0===c.value&&A(n),E&&E(n)}};return r().createElement("div",{className:(I="paraui-check-box-group",j&&(I+=" "+j),b&&(I+=" check-box-group-"+b),g&&(I+=" check-box-group-error"),x&&(I+=" check-box-group-disabled"),I+=h?" check-box-group-row":" check-box-group-column"),style:N},n||f?r().createElement("label",{className:"check-box-group-label"},n,f&&r().createElement("span",{className:"required-char"},"*")):null,r().createElement("div",{className:"check-box-group-content"},S.map((function(e,t){return r().createElement(o.default,i({},e,{checked:-1!==O.indexOf(e[w]),size:b,disabled:Boolean(x||e.disabled),key:t,onChange:T(e)}))}))),v&&r().createElement("p",{className:"check-box-group-error-text"},v))};a.default=l}(),a}()}));
|