@para-ui/core 2.0.22 → 2.0.23
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/Breadcrumbs/index.js +3 -3
- package/Button/index.js +3 -3
- package/ButtonGroup/index.js +2 -2
- package/Checkbox/index.js +2 -2
- package/CheckboxGroup/index.js +2 -2
- package/ComboSelect/index.js +2 -2
- package/DatePicker/index.js +2 -2
- package/Form/index.js +2 -2
- package/FormItem/index.js +3 -3
- package/FormItem/validateFunction.d.ts +1 -1
- package/FunctionModal/index.js +3 -3
- package/InputLang/index.js +2 -2
- package/InputNumber/index.js +2 -2
- package/Menu/index.js +2 -2
- package/Modal/index.js +2 -2
- package/MultiBox/index.js +2 -2
- package/PageHeader/index.js +2 -2
- package/Pagination/index.js +2 -2
- package/ParauiProvider/index.js +1 -1
- package/PopConfirm/index.js +2 -2
- package/Radio/index.js +1 -1
- package/RadioGroup/index.js +3 -3
- package/Search/index.js +3 -3
- package/Select/index.js +2 -2
- package/SingleBox/index.js +2 -2
- package/Styles/theme.scss +1 -1
- package/Table/index.js +2 -2
- package/Tabs/index.js +1 -1
- package/TextField/index.js +3 -3
- package/TimePicker/index.js +2 -2
- package/ToggleButton/index.js +2 -2
- package/Transfer/index.js +2 -2
- package/Tree/index.js +2 -2
- package/Upload/index.js +2 -2
- package/cdn/Breadcrumbs/index.js +3 -3
- package/cdn/Button/index.js +3 -3
- package/cdn/ButtonGroup/index.js +3 -3
- package/cdn/Checkbox/index.js +1 -1
- package/cdn/CheckboxGroup/index.js +1 -1
- package/cdn/ComboSelect/index.js +5 -5
- package/cdn/DatePicker/index.js +1 -1
- package/cdn/Form/index.js +4 -4
- package/cdn/FormItem/index.js +4 -4
- package/cdn/FunctionModal/index.js +3 -3
- package/cdn/InputLang/index.js +3 -3
- package/cdn/InputNumber/index.js +3 -3
- package/cdn/Menu/index.js +3 -3
- package/cdn/Modal/index.js +3 -3
- package/cdn/MultiBox/index.js +3 -3
- package/cdn/PageHeader/index.js +3 -3
- package/cdn/Pagination/index.js +4 -4
- package/cdn/ParauiProvider/index.js +1 -1
- package/cdn/PopConfirm/index.js +3 -3
- package/cdn/Radio/index.js +1 -1
- package/cdn/RadioGroup/index.js +1 -1
- package/cdn/Search/index.js +3 -3
- package/cdn/Select/index.js +1 -1
- package/cdn/SingleBox/index.js +3 -3
- package/cdn/Styles/theme.scss +1 -1
- package/cdn/Table/index.js +4 -4
- package/cdn/Tabs/index.js +1 -1
- package/cdn/TextField/index.js +3 -3
- package/cdn/TimePicker/index.js +6 -6
- package/cdn/ToggleButton/index.js +1 -1
- package/cdn/Transfer/index.js +3 -3
- package/cdn/Tree/index.js +5 -5
- package/cdn/Upload/index.js +1 -1
- package/index.js +3 -3
- package/package.json +1 -1
- package/style.css +21 -21
package/cdn/Checkbox/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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(){var r={81204:function(e,r,o){(r=o(23645)(!1)).push([e.id,'.paraui-check-box{font-family:Source Han Sans CN,Source Han Sans CN-Regular;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},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]||"",c=e[3];if(!c)return o;if(r&&"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[o].concat(t).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,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]]||(o&&(u[2]?u[2]="".concat(o," and ").concat(u[2]):u[2]=o),r.push(u))}},r}},97008:function(e,r,o){var c=o(93379),a=o(81204);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var t={insert:"head",singleton:!1};c(a,t);e.exports=a.locals||{}},93379:function(e,r,o){"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(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={},c=[],a=0;a<e.length;a++){var t=e[a],u=r.base?t[0]+r.base:t[0],b=o[u]||0,h="".concat(u," ").concat(b);o[u]=b+1;var l=i(h),p={css:t[1],media:t[2],sourceMap:t[3]};-1!==l?(n[l].references++,n[l].updater(p)):n.push({identifier:h,updater:f(p,r),references:1}),c.push(h)}return c}function b(e){var r=document.createElement("style"),c=e.attributes||{};if(void 0===c.nonce){var a=o.nc;a&&(c.nonce=a)}if(Object.keys(c).forEach((function(e){r.setAttribute(e,c[e])})),"function"==typeof e.insert)e.insert(r);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(r)}return r}var h,l=(h=[],function(e,r){return h[e]=r,h.filter(Boolean).join("\n")});function p(e,r,o,c){var a=o?"":c.media?"@media ".concat(c.media," {").concat(c.css,"}"):c.css;if(e.styleSheet)e.styleSheet.cssText=l(r,a);else{var t=document.createTextNode(a),n=e.childNodes;n[r]&&e.removeChild(n[r]),n.length?e.insertBefore(t,n[r]):e.appendChild(t)}}function x(e,r,o){var c=o.css,a=o.media,t=o.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 d=null,s=0;function f(e,r){var o,c,a;if(r.singleton){var t=s++;o=d||(d=b(r)),c=p.bind(null,o,t,!1),a=p.bind(null,o,t,!0)}else o=b(r),c=x.bind(null,o,r),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return c(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;c(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 c=0;c<o.length;c++){var a=i(o[c]);n[a].references--}for(var t=u(e,r),b=0;b<o.length;b++){var h=i(o[b]);0===n[h].references&&(n[h].updater(),n.splice(h,1))}o=t}}}},69297:function(r){"use strict";r.exports=e}},o={};function c(e){var a=o[e];if(void 0!==a)return a.exports;var t=o[e]={id:e,exports:{}};return r[e](t,t.exports,c),t.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,{Checkbox:function(){return i}});var e=c(69297),r=c.n(e);c(97008);function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,c=new Array(r);o<r;o++)c[o]=e[o];return c}function t(){return t=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(e[c]=o[c])}return e},t.apply(this,arguments)}function n(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 c,a,t=[],n=!0,i=!1;try{for(o=o.call(e);!(n=(c=o.next()).done)&&(t.push(c.value),!r||t.length!==r);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return t}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return o(e,r);var c=Object.prototype.toString.call(e).slice(8,-1);"Object"===c&&e.constructor&&(c=e.constructor.name);if("Map"===c||"Set"===c)return Array.from(c);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return o(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 i=function(o){var c=o.className,a=void 0===c?"":c,i=o.label,u=void 0===i?"":i,b=o.size,h=void 0===b?"large":b,l=o.disabled,p=void 0!==l&&l,x=o.indeterminate,d=void 0!==x&&x,s=o.onChange,f=n((0,e.useState)(!1),2),k=f[0],v=f[1];(0,e.useEffect)((function(){void 0!==o.defaultChecked&&v(o.defaultChecked)}),[]),(0,e.useEffect)((function(){void 0!==o.checked&&v(o.checked)}),[o.checked]);var m;return r().createElement("label",{className:(m="paraui-check-box",a&&(m+=" "+a),h&&(m+=" check-box-"+h),p&&(m+=" check-box-disabled"),d?m+=" check-box-indeterminate":k&&(m+=" check-box-checked"),m),onClick:function(e){if(e.preventDefault(),!p){if(d)return void 0===o.checked&&v(!0),void(s&&s(e,!0));void 0===o.checked&&v(!k),e.target.checked=!k,e.target.value=!k,s&&s(e,!k)}}},r().createElement("span",{className:"paraui-checkbox-box"},r().createElement("input",t({type:"checkbox",value:k},o.inputProps)),r().createElement("span",{className:"paraui-checkbox-box-inner"})),u&&r().createElement("span",{className:"paraui-check-box-label"},u))};a.default=i}(),a}()}));
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("react")):"function"==typeof define&&define.amd?define(["react"],o):"object"==typeof exports?exports.ParaUI=o(require("react")):e.ParaUI=o(e.react)}(self,(function(e){return function(){var o={81204:function(e,o,r){(o=r(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=o},23645: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 t=(n=c,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(u," */")),a=c.sources.map((function(e){return"/*# sourceURL=".concat(c.sourceRoot||"").concat(e," */")}));return[r].concat(a).concat([t]).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 t={};if(c)for(var a=0;a<this.length;a++){var n=this[a][0];null!=n&&(t[n]=!0)}for(var i=0;i<e.length;i++){var u=[].concat(e[i]);c&&t[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),o.push(u))}},o}},97008:function(e,o,r){var c=r(93379),t=r(81204);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[e.id,t,""]]);var a={insert:"head",singleton:!1};c(t,a);e.exports=t.locals||{}},93379:function(e,o,r){"use strict";var c,t=function(){return void 0===c&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},a=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=[],t=0;t<e.length;t++){var a=e[t],u=o.base?a[0]+o.base:a[0],b=r[u]||0,h="".concat(u," ").concat(b);r[u]=b+1;var l=i(h),p={css:a[1],media:a[2],sourceMap:a[3]};-1!==l?(n[l].references++,n[l].updater(p)):n.push({identifier:h,updater:f(p,o),references:1}),c.push(h)}return c}function b(e){var o=document.createElement("style"),c=e.attributes||{};if(void 0===c.nonce){var t=r.nc;t&&(c.nonce=t)}if(Object.keys(c).forEach((function(e){o.setAttribute(e,c[e])})),"function"==typeof e.insert)e.insert(o);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(o)}return o}var h,l=(h=[],function(e,o){return h[e]=o,h.filter(Boolean).join("\n")});function p(e,o,r,c){var t=r?"":c.media?"@media ".concat(c.media," {").concat(c.css,"}"):c.css;if(e.styleSheet)e.styleSheet.cssText=l(o,t);else{var a=document.createTextNode(t),n=e.childNodes;n[o]&&e.removeChild(n[o]),n.length?e.insertBefore(a,n[o]):e.appendChild(a)}}function x(e,o,r){var c=r.css,t=r.media,a=r.sourceMap;if(t?e.setAttribute("media",t):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(c+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=c;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(c))}}var d=null,s=0;function f(e,o){var r,c,t;if(o.singleton){var a=s++;r=d||(d=b(o)),c=p.bind(null,r,a,!1),t=p.bind(null,r,a,!0)}else r=b(o),c=x.bind(null,r,o),t=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 t()}}e.exports=function(e,o){(o=o||{}).singleton||"boolean"==typeof o.singleton||(o.singleton=t());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 t=i(r[c]);n[t].references--}for(var a=u(e,o),b=0;b<r.length;b++){var h=i(r[b]);0===n[h].references&&(n[h].updater(),n.splice(h,1))}r=a}}}},69297:function(o){"use strict";o.exports=e}},r={};function c(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={id:e,exports:{}};return o[e](a,a.exports,c),a.exports}c.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(o,{a:o}),o},c.d=function(e,o){for(var r in o)c.o(o,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},c.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},c.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";c.r(t),c.d(t,{Checkbox:function(){return i}});var e=c(69297),o=c.n(e);c(97008);function r(e,o){(null==o||o>e.length)&&(o=e.length);for(var r=0,c=new Array(o);r<o;r++)c[r]=e[r];return c}function a(){return a=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(e[c]=r[c])}return e},a.apply(this,arguments)}function n(e,o){return function(e){if(Array.isArray(e))return e}(e)||function(e,o){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var c,t,a=[],n=!0,i=!1;try{for(r=r.call(e);!(n=(c=r.next()).done)&&(a.push(c.value),!o||a.length!==o);n=!0);}catch(e){i=!0,t=e}finally{try{n||null==r.return||r.return()}finally{if(i)throw t}}return a}}(e,o)||function(e,o){if(!e)return;if("string"==typeof e)return r(e,o);var c=Object.prototype.toString.call(e).slice(8,-1);"Object"===c&&e.constructor&&(c=e.constructor.name);if("Map"===c||"Set"===c)return Array.from(c);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return r(e,o)}(e,o)||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 i=function(r){var c=r.className,t=void 0===c?"":c,i=r.label,u=void 0===i?"":i,b=r.size,h=void 0===b?"large":b,l=r.disabled,p=void 0!==l&&l,x=r.indeterminate,d=void 0!==x&&x,s=r.onChange,f=n((0,e.useState)(!1),2),k=f[0],m=f[1];(0,e.useEffect)((function(){void 0!==r.defaultChecked&&m(r.defaultChecked)}),[]),(0,e.useEffect)((function(){void 0!==r.checked&&m(r.checked)}),[r.checked]);var v;return o().createElement("label",{className:(v="paraui-check-box",t&&(v+=" "+t),h&&(v+=" check-box-"+h),p&&(v+=" check-box-disabled"),d?v+=" check-box-indeterminate":k&&(v+=" check-box-checked"),v),onClick:function(e){if(e.preventDefault(),!p){if(d)return void 0===r.checked&&m(!0),void(s&&s(e,!0));void 0===r.checked&&m(!k),e.target.checked=!k,e.target.value=!k,s&&s(e,!k)}}},o().createElement("span",{className:"paraui-checkbox-box"},o().createElement("input",a({type:"checkbox",value:k},r.inputProps)),o().createElement("span",{className:"paraui-checkbox-box-inner"})),u&&o().createElement("span",{className:"paraui-check-box-label"},u))};t.default=i}(),t}()}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("para-lib")):"function"==typeof define&&define.amd?define(["react","para-lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("para-lib")):e.ParaUI=r(e.react,e["para-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:Source Han Sans CN,Source Han Sans CN-Regular;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:Source Han Sans CN,Source Han Sans CN-Regular;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 d(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 s=null,x=0;function f(e,r){var o,t,a;if(r.singleton){var c=x++;o=s||(s=l(r)),t=h.bind(null,o,c,!1),a=h.bind(null,o,c,!0)}else o=l(r),t=d.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(69297),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,d=e.indeterminate,s=void 0!==d&&d,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 g;return a().createElement("label",{className:(g="paraui-check-box",o&&(g+=" "+o),b&&(g+=" check-box-"+b),h&&(g+=" check-box-disabled"),s?g+=" check-box-indeterminate":k&&(g+=" check-box-checked"),g),onClick:function(r){if(r.preventDefault(),!h){if(s)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))}},73475:function(e){"use strict";e.exports=r},69297: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(69297),r=a.n(e),o=a(82157),t=a(73475);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,d=a.disabled,s=void 0!==d&&d,x=a.required,f=void 0!==x&&x,k=a.error,v=void 0!==k&&k,g=a.helperText,m=void 0===g?"":g,y=a.id,w=void 0===y?"name":y,S=a.list,j=a.className,C=void 0===j?"":j,E=a.onChange,N=u((0,e.useState)([]),2),O=N[0],A=N[1];(0,e.useEffect)((function(){void 0!==a.defaultValue&&A(a.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==a.value&&A(a.value)}),[a.value]);var M,I=function(e){return function(r,o){var c=e[w],n=(0,t.DeepClone)(O);if(o)n.push(c);else{var i=n.indexOf(c);n.splice(i,1)}void 0===a.value&&A(n),E&&E(n)}};return r().createElement("div",{className:(M="paraui-check-box-group",C&&(M+=" "+C),b&&(M+=" check-box-group-"+b),v&&(M+=" check-box-group-error"),s&&(M+=" check-box-group-disabled"),h&&(M+=" check-box-group-row"),M)},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!==O.indexOf(e[w]),size:b,disabled:Boolean(s||e.disabled),key:t,onChange:I(e)}))}))),m&&r().createElement("p",{className:"check-box-group-error-text"},m))};c.default=l}(),c}()}));
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("para-lib")):"function"==typeof define&&define.amd?define(["react","para-lib"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("para-lib")):e.ParaUI=r(e.react,e["para-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(69297),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))}},73475:function(e){"use strict";e.exports=r},69297: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(69297),r=a.n(e),o=a(82157),t=a(73475);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}()}));
|