@para-ui/core 2.1.0-alpha2 → 2.1.1
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 +2 -2
- package/AutoTips/index.d.ts +2 -2
- package/Breadcrumbs/index.js +5 -5
- package/CheckboxGroup/index.js +3 -3
- package/ComboSelect/index.js +26 -26
- package/Desktop/index.js +2 -2
- package/Drawer/index.js +2 -2
- package/Form/index.js +2 -2
- package/FormItem/index.js +2 -2
- package/FunctionModal/index.js +2 -2
- package/InputLang/index.js +2 -2
- package/InputNumber/index.js +9 -9
- package/Menu/index.js +2 -2
- package/Modal/index.js +2 -2
- package/MultiBox/index.js +13 -13
- package/PageHeader/index.js +2 -2
- package/Pagination/index.js +2 -2
- package/README.md +15 -3
- package/Search/index.js +2 -2
- package/Select/index.js +2 -2
- package/SingleBox/index.js +2 -2
- package/Stepper/index.js +2 -2
- package/Table/index.js +20 -20
- package/TextField/index.js +2 -2
- package/ToggleButton/index.js +2 -2
- package/Transfer/index.js +2 -2
- package/Tree/index.js +2 -2
- package/cdn/AutoBox/index.js +3 -3
- package/cdn/Breadcrumbs/index.js +3 -3
- package/cdn/CheckboxGroup/index.js +1 -1
- package/cdn/ComboSelect/index.js +6 -6
- package/cdn/Desktop/index.js +3 -3
- package/cdn/Drawer/index.js +2 -2
- package/cdn/Form/index.js +2 -2
- package/cdn/FormItem/index.js +2 -2
- package/cdn/FunctionModal/index.js +2 -2
- package/cdn/InputLang/index.js +2 -2
- package/cdn/InputNumber/index.js +2 -2
- package/cdn/Menu/index.js +3 -3
- 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 +16 -16
- package/cdn/Search/index.js +2 -2
- package/cdn/Select/index.js +2 -2
- package/cdn/SingleBox/index.js +2 -2
- package/cdn/Table/index.js +40 -40
- package/cdn/TextField/index.js +2 -2
- package/cdn/ToggleButton/index.js +2 -2
- package/cdn/Transfer/index.js +2 -2
- package/cdn/Tree/index.js +2 -2
- package/index.js +4 -4
- package/package.json +3 -3
package/AutoBox/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@material-ui/core"),require("
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@material-ui/core"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@paraview/lib"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@material-ui/core"),require("@paraview/lib")):e.ParaUI=t(e.react,e["@material-ui/core"],e["@paraview/lib"])}(self,(function(e,t,n){return function(){var r={2950:function(e,t,n){var r;self,e.exports=(r=n(8156),function(){var e={466:function(e,t,n){(t=n(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=t},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,o,i=e[1]||"",a=e[3];if(!a)return i;if(t&&"function"==typeof btoa){var c=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),u=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(u).concat([c]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},7418:function(e){"use strict";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
@@ -25,4 +25,4 @@ object-assign
|
|
|
25
25
|
* This source code is licensed under the MIT license found in the
|
|
26
26
|
* LICENSE file in the root directory of this source tree.
|
|
27
27
|
*/
|
|
28
|
-
n(7418);var r=n(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=r.__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 s(e,t,n){var r,i={},s=null,f=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(f=t.ref),t)c.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:f,props:i,_owner:a.current}}t.jsx=s,t.jsxs=s},5893:function(e,t,n){"use strict";e.exports=n(5251)},1519:function(e,t,n){var r=n(3379),o=n(7388);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);e.exports=o.locals||{}},3379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=n[u]||0,f="".concat(u," ").concat(s);n[u]=s+1;var l=c(f),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(a[l].references++,a[l].updater(p)):a.push({identifier:f,updater:h(p,t),references:1}),r.push(f)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var f,l=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=l(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,m=0;function h(e,t){var n,r,o;if(t.singleton){var i=m++;n=v||(v=s(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=s(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=c(n[r]);a[o].references--}for(var i=u(e,t),s=0;s<n.length;s++){var f=c(n[s]);0===a[f].references&&(a[f].updater(),a.splice(f,1))}n=i}}}},670:function(e){"use strict";e.exports=t},
|
|
28
|
+
n(7418);var r=n(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=r.__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 s(e,t,n){var r,i={},s=null,f=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(f=t.ref),t)c.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:f,props:i,_owner:a.current}}t.jsx=s,t.jsxs=s},5893:function(e,t,n){"use strict";e.exports=n(5251)},1519:function(e,t,n){var r=n(3379),o=n(7388);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};r(o,i);e.exports=o.locals||{}},3379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=n[u]||0,f="".concat(u," ").concat(s);n[u]=s+1;var l=c(f),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(a[l].references++,a[l].updater(p)):a.push({identifier:f,updater:h(p,t),references:1}),r.push(f)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var f,l=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=l(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,m=0;function h(e,t){var n,r,o;if(t.singleton){var i=m++;n=v||(v=s(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=s(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=c(n[r]);a[o].references--}for(var i=u(e,t),s=0;s<n.length;s++){var f=c(n[s]);0===a[f].references&&(a[f].updater(),a.splice(f,1))}n=i}}}},670:function(e){"use strict";e.exports=t},8543:function(e){"use strict";e.exports=n},8156:function(t){"use strict";t.exports=e}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e](n,n.exports,i),n.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.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";i.r(a),i.d(a,{AutoBox:function(){return s}});var e=i(5893),t=i(8156),n=i(670),r=i(2950),o=i.n(r),c=i(8543),u=(i(1519),function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)}),s=function(r){var i=r.className,a=r.list,s=void 0===a?[]:a,f=r.popoverClassName,l=r.moreCustomize,p=r.anchorEl,d=r.hideMore,v=void 0!==d&&d,m=r.onCloseMore,h=(0,t.useState)("auto-box-"+(0,c.UUID)())[0],b=(0,t.useState)(null),y=b[0],g=b[1],j=(0,t.useState)(!1),O=j[0],x=j[1],w=(0,t.useState)(null),S=w[0],_=w[1],N=(0,t.useState)({})[0];(0,t.useEffect)((function(){void 0!==r.openMore&&x(r.openMore)}),[r.openMore]),(0,t.useEffect)((function(){p&&_(p)}),[p]),(0,t.useEffect)((function(){return T(),window.addEventListener("resize",T),function(){window.removeEventListener("resize",T)}}),[s]);var C,E=function(){x(!1),m&&m()},M=function(e){x(!0),_(e.target)},P=function(e){if(null!==e&&0!==e){void 0===e&&(e=s.length);var t=document.querySelector("."+h);if(t)if(t.scrollWidth>t.clientWidth){var n=Number(e)-1;g(n),P(n)}else s.length<=e&&(x(!1),m&&m())}},T=function(){clearTimeout(N.timer),x(!1),N.timer=setTimeout((function(){g(s.length),P()}),100)},k=(0,t.useMemo)((function(){return O&&(0,e.jsx)(n.Popover,u({open:O,anchorEl:S,onClose:E,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:(r="auto-box-popover paraui-auto-box-popover",f&&(r+=" "+f),r)},{children:(0,e.jsx)("div",u({className:"auto-box-popover-content"},{children:s&&s.map((function(n,r){return null!==y&&y>r?null:(0,e.jsx)(t.Fragment,{children:n},r)}))}),void 0)}),void 0);var r}),[O,S,s,y,f]);return(0,e.jsxs)("div",u({className:(C="auto-box paraui-auto-box",h&&(C+=" "+h),i&&(C+=" "+i),C)},{children:[s.map((function(n,r){return null!==y&&y<=r?null:(0,e.jsx)(t.Fragment,{children:n},r)})),function(){if(null!==y&&s.length>y&&!v)return(0,e.jsx)("div",u({className:"auto-box-more",onClick:M},{children:l||(0,e.jsx)(o(),{},void 0)}),void 0)}(),k]}),void 0)};a.default=s}(),a}()}));
|
package/AutoTips/index.d.ts
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @date 2021/8/9 15:15
|
|
4
4
|
* @description 超出...
|
|
5
5
|
*/
|
|
6
|
-
import { FunctionComponent } from 'react';
|
|
6
|
+
import React, { FunctionComponent } from 'react';
|
|
7
7
|
import './index.scss';
|
|
8
8
|
export interface AutoTipsProps {
|
|
9
9
|
/** 样式class */
|
|
10
10
|
className?: string;
|
|
11
11
|
/** 超出显示的内容 */
|
|
12
|
-
tips?:
|
|
12
|
+
tips?: React.ReactNode;
|
|
13
13
|
/** 定位方向 */
|
|
14
14
|
placement?: "top-start" | "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top" | undefined;
|
|
15
15
|
}
|
package/Breadcrumbs/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core"),require("
|
|
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 n={2950:function(e,r,t){var n;self,e.exports=(n=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,n,o,i=e[1]||"",a=e[3];if(!a)return i;if(r&&"function"==typeof btoa){var c=(t=a,n=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(o," */")),u=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(u).concat([c]).join("\n")}return[i].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&o[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 r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,
|
|
6
|
+
*/var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,u=o(e),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))t.call(a,l)&&(u[l]=a[l]);if(r){c=r(a);for(var f=0;f<c.length;f++)n.call(a,c[f])&&(u[c[f]]=a[c[f]])}}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,12 +11,12 @@ 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
|
-
*/t(7418);var n=t(9297),o=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var
|
|
14
|
+
*/t(7418);var n=t(9297),o=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),r.Fragment=i("react.fragment")}var a=n.__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 s(e,r,t){var n,i={},s=null,l=null;for(n in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(l=r.ref),r)c.call(r,n)&&!u.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:s,ref:l,props:i,_owner:a.current}}r.jsx=s,r.jsxs=s},5893:function(e,r,t){"use strict";e.exports=t(5251)},7856:function(e,r,t){var n=t(3379),o=t(466);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]),n(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3379:function(e,r,t){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=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]}}(),a=[];function c(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function u(e,r){for(var t={},n=[],o=0;o<e.length;o++){var i=e[o],u=r.base?i[0]+r.base:i[0],s=t[u]||0,l="".concat(u," ").concat(s);t[u]=s+1;var f=c(l),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:l,updater:m(d,r),references:1}),n.push(l)}return n}function s(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=t.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var l,f=(l=[],function(e,r){return l[e]=r,l.filter(Boolean).join("\n")});function d(e,r,t,n){var o=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=f(r,o);else{var i=document.createTextNode(o),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(i,a[r]):e.appendChild(i)}}function p(e,r,t){var n=t.css,o=t.media,i=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,b=0;function m(e,r){var t,n,o;if(r.singleton){var i=b++;t=v||(v=s(r)),n=d.bind(null,t,i,!1),o=d.bind(null,t,i,!0)}else t=s(r),n=p.bind(null,t,r),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var t=u(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var o=c(t[n]);a[o].references--}for(var i=u(e,r),s=0;s<t.length;s++){var l=c(t[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}t=i}}}},4939:function(e,r,t){"use strict";var n=t(5893),o=(t(7856),function(){return o=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},o.apply(this,arguments)}),i=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};r.default=function(e){var r,t=e.path,a=e.className,c=e.color,u=void 0===c?"primary":c,s=e.size,l=void 0===s?"small":s,f=e.dataName,d=void 0===f?"":f,p=i(e,["path","className","color","size","dataName"]);return(0,n.jsx)("svg",o({className:(r="paraui-icon",r+=" svg-icon",a&&(r+=" "+a),u&&(r+=" paraui-icon-"+u),l&&(r+=" paraui-icon-"+l),r),viewBox:"0 0 1024 1024","data-name":d},p,{children:t}),void 0)}},9297:function(e){"use strict";e.exports=n}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={id:n,exports:{}};return e[n](i,i.exports,t),i.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 n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},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 o={};return function(){"use strict";t.r(o),t.d(o,{More:function(){return i}});var e=t(5893),r=t(4939),n=function(){return n=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},n.apply(this,arguments)},i=function(t){return(0,e.jsx)(r.default,n({dataName:"More",path:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M298.666667 490.666667A64 64 0 1 1 234.666667 426.666667 64 64 0 0 1 298.666667 490.666667"},void 0),(0,e.jsx)("path",{d:"M568.96 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"},void 0),(0,e.jsx)("path",{d:"M839.253333 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"},void 0)]},void 0)},t),void 0)};o.default=i}(),o}())},4044:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-breadcrumbs{display:inline-block;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;line-height:0}.paraui-breadcrumbs>div{display:inline-block;line-height:14px;vertical-align:middle;color:rgba(46,55,67,0.701961)}.paraui-breadcrumbs>div svg{font-size:14px;vertical-align:middle;color:rgba(46,55,67,0.701961)}.paraui-breadcrumbs>div span{display:inline-block;line-height:0;vertical-align:middle;color:rgba(46,55,67,0.701961)}.paraui-breadcrumbs>.breadcrumbs-separator{user-select:none;margin:0 8px}.paraui-breadcrumbs>.breadcrumbs-item{cursor:pointer}.paraui-breadcrumbs>.breadcrumbs-item:hover{color:#3666d6}.paraui-breadcrumbs>.breadcrumbs-item:hover svg{color:#3666d6}.paraui-breadcrumbs>.breadcrumbs-item:hover span{color:#3666d6}.paraui-breadcrumbs>.more-breadcrumbs{cursor:pointer}.paraui-breadcrumbs>.current-breadcrumbs{color:rgba(46,55,67,0.701961);font-weight:700}.paraui-breadcrumbs-popover{margin-top:8px}.paraui-breadcrumbs-popover .paraui-breadcrumbs{padding:10px}\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]||"",n=e[3];if(!n)return t;if(r&&"function"==typeof btoa){var o=(a=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(i).concat([o]).join("\n")}var a,c,u;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&o[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
15
|
/*
|
|
16
16
|
object-assign
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
|
-
*/var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,
|
|
19
|
+
*/var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,u=o(e),s=1;s<arguments.length;s++){for(var l in a=Object(arguments[s]))t.call(a,l)&&(u[l]=a[l]);if(r){c=r(a);for(var f=0;f<c.length;f++)n.call(a,c[f])&&(u[c[f]]=a[c[f]])}}return u}},5251:function(e,r,t){"use strict";
|
|
20
20
|
/** @license React v17.0.2
|
|
21
21
|
* react-jsx-runtime.production.min.js
|
|
22
22
|
*
|
|
@@ -25,4 +25,4 @@ object-assign
|
|
|
25
25
|
* This source code is licensed under the MIT license found in the
|
|
26
26
|
* LICENSE file in the root directory of this source tree.
|
|
27
27
|
*/
|
|
28
|
-
t(7418);var n=t(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var
|
|
28
|
+
t(7418);var n=t(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__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 s(e,r,t){var n,i={},s=null,l=null;for(n in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(l=r.ref),r)c.call(r,n)&&!u.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:s,ref:l,props:i,_owner:a.current}}r.jsx=s,r.jsxs=s},5893:function(e,r,t){"use strict";e.exports=t(5251)},4047:function(e,r,t){var n=t(3379),o=t(4044);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},3379:function(e,r,t){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=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]}}(),a=[];function c(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function u(e,r){for(var t={},n=[],o=0;o<e.length;o++){var i=e[o],u=r.base?i[0]+r.base:i[0],s=t[u]||0,l="".concat(u," ").concat(s);t[u]=s+1;var f=c(l),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:l,updater:m(d,r),references:1}),n.push(l)}return n}function s(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=t.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var l,f=(l=[],function(e,r){return l[e]=r,l.filter(Boolean).join("\n")});function d(e,r,t,n){var o=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=f(r,o);else{var i=document.createTextNode(o),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(i,a[r]):e.appendChild(i)}}function p(e,r,t){var n=t.css,o=t.media,i=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,b=0;function m(e,r){var t,n,o;if(r.singleton){var i=b++;t=v||(v=s(r)),n=d.bind(null,t,i,!1),o=d.bind(null,t,i,!0)}else t=s(r),n=p.bind(null,t,r),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var t=u(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var o=c(t[n]);a[o].references--}for(var i=u(e,r),s=0;s<t.length;s++){var l=c(t[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}t=i}}}},670:function(e){"use strict";e.exports=r},8543:function(e){"use strict";e.exports=t},8156:function(r){"use strict";r.exports=e}},o={};function i(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={id:e,exports:{}};return n[e](t,t.exports,i),t.exports}i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,{a:r}),r},i.d=function(e,r){for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.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";i.r(a),i.d(a,{Breadcrumbs:function(){return l}});var e=i(5893),r=i(8156),t=i(670),n=i(2950),o=i.n(n),c=i(8543),u=(i(4047),function(){return u=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},u.apply(this,arguments)}),s=function(e,r,t){if(t||2===arguments.length)for(var n,o=0,i=r.length;o<i;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return e.concat(n||Array.prototype.slice.call(r))},l=function(n){var i=n.className,a=n.list,l=n.separator,f=void 0===l?"/":l,d=n.popoverClassName,p=n.isShrink,v=void 0===p||p,b=n.onClickItem,m=(0,r.useState)("breadcrumbs-"+(0,c.UUID)())[0],h=(0,r.useState)([]),y=h[0],g=h[1],j=(0,r.useState)(0),O=j[0],x=j[1],w=(0,r.useState)(!1),S=w[0],_=w[1],N=(0,r.useRef)();(0,r.useEffect)((function(){setTimeout((function(){var e=document.querySelector("."+m);e&&x(e.offsetWidth)})),g(s([],a,!0))}),[a]),(0,r.useEffect)((function(){return v?(setTimeout((function(){C()})),window.addEventListener("resize",C)):window.removeEventListener("resize",C),function(){window.removeEventListener("resize",C)}}),[y,O,v]);var C=function(){var e=document.querySelector("."+m);if(e&&O)if(e.parentNode&&e.parentNode.offsetWidth>O)a.length!==y.length&&(g(s([],a,!0)),_(!1));else{var r=[];r.push(a[0]),r.push({more:"more-breadcrumbs"}),r.push(a[a.length-1]),r.length!==y.length&&g(s([],r,!0))}},E=function(e){return function(){"more-breadcrumbs"===e.more?_(!0):b&&b(e)}},P=function(){_(!1)},M=function(){var e="paraui-breadcrumbs "+m;return i&&(e+=" "+i),e},k=(0,r.useMemo)((function(){return S&&(0,e.jsx)(t.Popover,u({open:S,anchorEl:N.current,onClose:P,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:(n="paraui-breadcrumbs-popover",d&&(n+=" "+d),n)},{children:(0,e.jsx)("div",u({className:M()},{children:a.map((function(t,n){var o=a.length-1!==n;return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({onClick:E(t),className:n===a.length-1?"current-breadcrumbs breadcrumbs-item":"breadcrumbs-item"},{children:t.label}),void 0),o&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:f}),void 0)]},n)}))}),void 0)}),void 0);var n}),[S,N,f,a,d]);return(0,e.jsxs)("div",u({className:M(),ref:N},{children:[y.map((function(t,n){var i=y.length-1!==n;return"more-breadcrumbs"===t.more?(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({onClick:E(t),className:"more-breadcrumbs"},{children:(0,e.jsx)(o(),{},void 0)}),void 0),i&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:f}),void 0)]},n):(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({onClick:E(t),className:n===y.length-1?"current-breadcrumbs breadcrumbs-item":"breadcrumbs-item"},{children:t.label}),void 0),i&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:f}),void 0)]},n)})),k]}),void 0)};a.default=l}(),a}()}));
|
package/CheckboxGroup/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("react"),require("
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("react"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","@paraview/lib"],o):"object"==typeof exports?exports.ParaUI=o(require("react"),require("@paraview/lib")):e.ParaUI=o(e.react,e["@paraview/lib"])}(self,(function(e,o){return function(){var r={1204:function(e,o,r){(o=r(3645)(!1)).push([e.id,'.paraui-check-box{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;cursor:pointer;display:inline-flex;align-items:center;line-height:14px}.paraui-check-box:hover>.paraui-check-box-label{color:#3666d6}.paraui-check-box:hover>.paraui-checkbox-box>.paraui-checkbox-box-inner{border-color:#3666d6}.paraui-check-box>.paraui-checkbox-box{position:relative}.paraui-check-box>.paraui-checkbox-box>input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner{position:relative;top:0;left:0;display:block;border-radius:2px;background-color:white;border:1px solid rgba(171,176,185,0.4)}.paraui-check-box>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{position:absolute;display:table;content:" "}.paraui-check-box>.paraui-check-box-label{color:#2e3743;padding:0 8px}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-checked>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{border:1px solid white;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%, -50%)}.paraui-check-box.check-box-checked>.paraui-check-box-label{color:#3666d6}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:#3666d6}.paraui-check-box.check-box-indeterminate>.paraui-checkbox-box>.paraui-checkbox-box-inner:after{background-color:white;top:50%;left:50%;transform:translate(-50%, -50%) scale(1)}.paraui-check-box.check-box-indeterminate>.paraui-check-box-label{color:#3666d6}.paraui-check-box.check-box-disabled{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-check-box-label{color:rgba(46,55,67,0.4)}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>input{cursor:not-allowed}.paraui-check-box.check-box-disabled>.paraui-checkbox-box>.paraui-checkbox-box-inner{background-color:rgba(171,176,185,0.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},9974:function(e,o,r){(o=r(3645)(!1)).push([e.id,".paraui-check-box-group{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;width:100%;padding-bottom:20px}.paraui-check-box-group>.check-box-group-label{color:rgba(46,55,67,0.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=o},3645:function(e){"use strict";e.exports=function(e){var o=[];return o.toString=function(){return this.map((function(o){var r=function(e,o){var r=e[1]||"",c=e[3];if(!c)return r;if(o&&"function"==typeof btoa){var a=(i=c,n=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(u," */")),t=c.sources.map((function(e){return"/*# sourceURL=".concat(c.sourceRoot||"").concat(e," */")}));return[r].concat(t).concat([a]).join("\n")}var i,n,u;return[r].join("\n")}(o,e);return o[2]?"@media ".concat(o[2]," {").concat(r,"}"):r})).join("")},o.i=function(e,r,c){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(c)for(var t=0;t<this.length;t++){var i=this[t][0];null!=i&&(a[i]=!0)}for(var n=0;n<e.length;n++){var u=[].concat(e[n]);c&&a[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),o.push(u))}},o}},7418:function(e){"use strict";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;function a(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 o={},r=0;r<10;r++)o["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(o).map((function(e){return o[e]})).join(""))return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach((function(e){c[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},c)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,
|
|
6
|
+
*/var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;function a(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 o={},r=0;r<10;r++)o["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(o).map((function(e){return o[e]})).join(""))return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach((function(e){c[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},c)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var i,n,u=a(e),b=1;b<arguments.length;b++){for(var p in i=Object(arguments[b]))r.call(i,p)&&(u[p]=i[p]);if(o){n=o(i);for(var l=0;l<n.length;l++)c.call(i,n[l])&&(u[n[l]]=i[n[l]])}}return u}},5251:function(e,o,r){"use strict";
|
|
7
7
|
/** @license React v17.0.2
|
|
8
8
|
* react-jsx-runtime.production.min.js
|
|
9
9
|
*
|
|
@@ -12,4 +12,4 @@ object-assign
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
r(7418);var c=r(8156),a=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var t=Symbol.for;a=t("react.element"),t("react.fragment")}var
|
|
15
|
+
r(7418);var c=r(8156),a=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var t=Symbol.for;a=t("react.element"),t("react.fragment")}var i=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function b(e,o,r){var c,t={},b=null,p=null;for(c in void 0!==r&&(b=""+r),void 0!==o.key&&(b=""+o.key),void 0!==o.ref&&(p=o.ref),o)n.call(o,c)&&!u.hasOwnProperty(c)&&(t[c]=o[c]);if(e&&e.defaultProps)for(c in o=e.defaultProps)void 0===t[c]&&(t[c]=o[c]);return{$$typeof:a,type:e,key:b,ref:p,props:t,_owner:i.current}}o.jsx=b,o.jsxs=b},5893:function(e,o,r){"use strict";e.exports=r(5251)},9036:function(e,o,r){var c=r(3379),a=r(1204);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var t={insert:("body","body"),singleton:!1};c(a,t);e.exports=a.locals||{}},7708:function(e,o,r){var c=r(3379),a=r(9974);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var t={insert:("body","body"),singleton:!1};c(a,t);e.exports=a.locals||{}},3379:function(e,o,r){"use strict";var c,a=function(){return void 0===c&&(c=Boolean(window&&document&&document.all&&!window.atob)),c},t=function(){var e={};return function(o){if(void 0===e[o]){var r=document.querySelector(o);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[o]=r}return e[o]}}(),i=[];function n(e){for(var o=-1,r=0;r<i.length;r++)if(i[r].identifier===e){o=r;break}return o}function u(e,o){for(var r={},c=[],a=0;a<e.length;a++){var t=e[a],u=o.base?t[0]+o.base:t[0],b=r[u]||0,p="".concat(u," ").concat(b);r[u]=b+1;var l=n(p),s={css:t[1],media:t[2],sourceMap:t[3]};-1!==l?(i[l].references++,i[l].updater(s)):i.push({identifier:p,updater:f(s,o),references:1}),c.push(p)}return c}function b(e){var o=document.createElement("style"),c=e.attributes||{};if(void 0===c.nonce){var a=r.nc;a&&(c.nonce=a)}if(Object.keys(c).forEach((function(e){o.setAttribute(e,c[e])})),"function"==typeof e.insert)e.insert(o);else{var i=t(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(o)}return o}var p,l=(p=[],function(e,o){return p[e]=o,p.filter(Boolean).join("\n")});function s(e,o,r,c){var a=r?"":c.media?"@media ".concat(c.media," {").concat(c.css,"}"):c.css;if(e.styleSheet)e.styleSheet.cssText=l(o,a);else{var t=document.createTextNode(a),i=e.childNodes;i[o]&&e.removeChild(i[o]),i.length?e.insertBefore(t,i[o]):e.appendChild(t)}}function h(e,o,r){var c=r.css,a=r.media,t=r.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),t&&"undefined"!=typeof btoa&&(c+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(t))))," */")),e.styleSheet)e.styleSheet.cssText=c;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(c))}}var d=null,x=0;function f(e,o){var r,c,a;if(o.singleton){var t=x++;r=d||(d=b(o)),c=s.bind(null,r,t,!1),a=s.bind(null,r,t,!0)}else r=b(o),c=h.bind(null,r,o),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return c(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;c(e=o)}else a()}}e.exports=function(e,o){(o=o||{}).singleton||"boolean"==typeof o.singleton||(o.singleton=a());var r=u(e=e||[],o);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var c=0;c<r.length;c++){var a=n(r[c]);i[a].references--}for(var t=u(e,o),b=0;b<r.length;b++){var p=n(r[b]);0===i[p].references&&(i[p].updater(),i.splice(p,1))}r=t}}}},9690:function(e,o,r){"use strict";var c=r(5893),a=r(8156),t=(r(9036),function(){return t=Object.assign||function(e){for(var o,r=1,c=arguments.length;r<c;r++)for(var a in o=arguments[r])Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a]);return e},t.apply(this,arguments)});o.default=function(e){var o=e.className,r=void 0===o?"":o,i=e.label,n=void 0===i?"":i,u=e.size,b=void 0===u?"large":u,p=e.disabled,l=void 0!==p&&p,s=e.indeterminate,h=void 0!==s&&s,d=e.onChange,x=(0,a.useState)(!1),f=x[0],k=x[1];(0,a.useEffect)((function(){void 0!==e.defaultChecked&&k(e.defaultChecked)}),[]),(0,a.useEffect)((function(){void 0!==e.checked&&k(e.checked)}),[e.checked]);var v;return(0,c.jsxs)("label",t({className:(v="paraui-check-box",r&&(v+=" "+r),b&&(v+=" check-box-"+b),l&&(v+=" check-box-disabled"),h?v+=" check-box-indeterminate":f&&(v+=" check-box-checked"),v),onClick:function(o){if(o.preventDefault(),!l){if(h)return void 0===e.checked&&k(!0),void(d&&d(o,!0));void 0===e.checked&&k(!f),o.target.checked=!f,o.target.value=!f,d&&d(o,!f)}}},{children:[(0,c.jsxs)("span",t({className:"paraui-checkbox-box"},{children:[(0,c.jsx)("input",t({type:"checkbox",value:f},e.inputProps),void 0),(0,c.jsx)("span",{className:"paraui-checkbox-box-inner"},void 0)]}),void 0),n&&(0,c.jsx)("span",t({className:"paraui-check-box-label"},{children:n}),void 0)]}),void 0)}},8543:function(e){"use strict";e.exports=o},8156:function(o){"use strict";o.exports=e}},c={};function a(e){var o=c[e];if(void 0!==o)return o.exports;var t=c[e]={id:e,exports:{}};return r[e](t,t.exports,a),t.exports}a.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(o,{a:o}),o},a.d=function(e,o){for(var r in o)a.o(o,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},a.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};return function(){"use strict";a.r(t),a.d(t,{CheckboxGroup:function(){return n}});var e=a(8156),o=a(5893),r=a(9690),c=a(8543),i=(a(7708),function(){return i=Object.assign||function(e){for(var o,r=1,c=arguments.length;r<c;r++)for(var a in o=arguments[r])Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a]);return e},i.apply(this,arguments)}),n=function(a){var t=a.label,n=void 0===t?"":t,u=a.size,b=void 0===u?"large":u,p=a.row,l=void 0===p||p,s=a.disabled,h=void 0!==s&&s,d=a.required,x=void 0!==d&&d,f=a.error,k=void 0!==f&&f,v=a.helperText,g=void 0===v?"":v,m=a.id,y=void 0===m?"name":m,j=a.list,w=a.className,O=void 0===w?"":w,S=a.onChange,C=(0,e.useState)([]),N=C[0],_=C[1];(0,e.useEffect)((function(){void 0!==a.defaultValue&&_(a.defaultValue)}),[]),(0,e.useEffect)((function(){void 0!==a.value&&_(a.value)}),[a.value]);var E,M=function(e){return function(o,r){var t=e[y],i=(0,c.DeepClone)(N);if(r)i.push(t);else{var n=i.indexOf(t);i.splice(n,1)}void 0===a.value&&_(i),S&&S(i)}};return(0,o.jsxs)("div",i({className:(E="paraui-check-box-group",O&&(E+=" "+O),b&&(E+=" check-box-group-"+b),k&&(E+=" check-box-group-error"),h&&(E+=" check-box-group-disabled"),l&&(E+=" check-box-group-row"),E)},{children:[(0,o.jsxs)("label",i({className:"check-box-group-label"},{children:[n,x&&(0,o.jsx)("span",i({className:"required-char"},{children:"*"}),void 0)]}),void 0),(0,o.jsx)("div",i({className:"check-box-group-content"},{children:j.map((function(o,c){return(0,e.createElement)(r.default,i({},o,{checked:-1!==N.indexOf(o[y]),size:b,disabled:Boolean(h||o.disabled),key:c,onChange:M(o)}))}))}),void 0),g&&(0,o.jsx)("p",i({className:"check-box-group-error-text"},{children:g}),void 0)]}),void 0)};t.default=n}(),t}()}));
|