@para-ui/core 3.0.79 → 3.0.80

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/umd/Container.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ParaUI=t(require("react")):e.ParaUI=t(e.react)}(self,(function(e){return function(){var t={66461:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-v3-container{display:flex;width:100%;height:100%}.paraui-v3-container>.container-body{overflow:auto}.paraui-v3-container.paraui-v3-tlr{flex-direction:column}.paraui-v3-container.paraui-v3-tlr>.container-top{flex:none}.paraui-v3-container.paraui-v3-tlr>.container-body{display:flex;overflow:hidden}.paraui-v3-container.paraui-v3-tlr>.container-body>.container-body-right{flex:1;overflow:auto}.paraui-v3-container.paraui-v3-tlr>.container-body>.container-body-right>.container-right{height:100%;overflow:auto}.paraui-v3-container.paraui-v3-tlr>.container-body>.container-left{flex:none}.paraui-v3-container.paraui-v3-tlrb{flex-direction:column}.paraui-v3-container.paraui-v3-tlrb>.container-top{flex:none}.paraui-v3-container.paraui-v3-tlrb>.container-body{display:flex;overflow:hidden}.paraui-v3-container.paraui-v3-tlrb>.container-body>.container-left{flex:none}.paraui-v3-container.paraui-v3-tlrb>.container-body>.container-right{flex:1;overflow:auto}.paraui-v3-container.paraui-v3-ltrb>.container-body{flex:1;display:flex;flex-direction:column}.paraui-v3-container.paraui-v3-ltrb>.container-body>.container-right{flex:1;overflow:auto}.paraui-v3-container.paraui-v3-ltrb>.container-left{flex:none}.paraui-v3-container.paraui-v3-trb{flex-direction:column}.paraui-v3-container.paraui-v3-trb>.container-right{flex:1;overflow:auto}",""]),e.exports=t},23645: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=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=(i=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(l," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([a]).join("\n")}var i,c,l;return[n].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 a={};if(r)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},7175:function(e,t,n){var r=n(93379),a=n(66461);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var o={insert:"head",singleton:!1};r(a,o);e.exports=a.locals||{}},93379:function(e,t,n){"use strict";var r,a=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=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]}}(),i=[];function c(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],a=0;a<e.length;a++){var o=e[a],l=t.base?o[0]+t.base:o[0],u=n[l]||0,s="".concat(l," ").concat(u);n[l]=u+1;var d=c(s),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(i[d].references++,i[d].updater(f)):i.push({identifier:s,updater:m(f,t),references:1}),r.push(s)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var a=n.nc;a&&(r.nonce=a)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var i=o(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(t)}return t}var s,d=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function f(e,t,n,r){var a=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function h(e,t,n){var r=n.css,a=n.media,o=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,v=0;function m(e,t){var n,r,a;if(t.singleton){var o=v++;n=p||(p=u(t)),r=f.bind(null,n,o,!1),a=f.bind(null,n,o,!0)}else n=u(t),r=h.bind(null,n,t),a=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 a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var n=l(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 a=c(n[r]);i[a].references--}for(var o=l(e,t),u=0;u<n.length;u++){var s=c(n[u]);0===i[s].references&&(i[s].updater(),i.splice(s,1))}n=o}}}},8156:function(t){"use strict";t.exports=e}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var o=n[e]={id:e,exports:{}};return t[e](o,o.exports,r),o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var a={};return function(){"use strict";r.r(a),r.d(a,{Container:function(){return c},default:function(){return l}});var e=r(8156),t=r.n(e),n="paraui-v3";r(7175);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}var c=function(){var e,r,a,o,c,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=l.className,s=void 0===u?"":u,d=l.top,f=l.topStyle,h=void 0===f?{}:f,p=l.left,v=l.leftStyle,m=void 0===v?{}:v,y=l.right,b=l.rightStyle,g=void 0===b?{}:b,x=l.bottom,w=l.bottomStyle,E=void 0===w?{}:w,N=l.type,j=void 0===N?"tlr":N;return t().useMemo((function(){switch(j){case"tlr":return e=i({height:d?"50px":"0",width:"100%"},h),r=i({height:"100%",width:"auto"},m),o=i({height:x?"20px":"0",width:"100%"},E),a=i({height:"calc(100% - ".concat(o.height,")"),width:"auto"},g),c={width:"100%",height:"calc(100% - ".concat(e.height,")")},t().createElement("div",{className:"".concat(n,"-container ").concat(n,"-tlr ").concat(s)},t().createElement("div",{className:"container-top",style:e},d),t().createElement("div",{className:"container-body",style:c},t().createElement("div",{className:"container-left",style:r},p),t().createElement("div",{className:"container-body-right",style:{width:"auto",height:"100%"}},t().createElement("div",{className:"container-right",style:a},y))));case"tlrb":return e=i({height:d?"50px":"0",width:"100%"},h),r=i({height:"100%",width:"auto"},m),a=i({height:"100%",width:"auto"},g),o=i({height:x?"20px":"0px",width:"100%"},E),c={width:"100%",height:"calc(100% - ".concat(e.height," - ").concat(o.height,")")},t().createElement("div",{className:"".concat(n,"-container ").concat(n,"-tlrb ").concat(s)},t().createElement("div",{className:"container-top",style:e},d),t().createElement("div",{className:"container-body",style:c},t().createElement("div",{className:"container-left",style:r},p),t().createElement("div",{className:"container-right",style:a},y)),t().createElement("div",{className:"container-bottom",style:o},x));case"ltrb":return r=i({height:"100%",width:"auto"},m),e=i({height:d?"50px":"0",width:"100%"},h),o=i({height:x?"30px":"0px",width:"100%"},E),a=i({height:"calc(100% - ".concat(e.height,"px - ").concat(o.height,")"),width:"100%"},g),c={width:"auto",height:"100%"},t().createElement("div",{className:"".concat(n,"-container ").concat(n,"-ltrb ").concat(s)},t().createElement("div",{className:"container-left",style:r},p),t().createElement("div",{className:"container-body",style:c},t().createElement("div",{className:"container-top",style:e},d),t().createElement("div",{className:"container-right",style:a},y),t().createElement("div",{className:"container-bottom",style:o},x)));case"trb":return e=i({height:d?"50px":"0",width:"100%"},h),o=i({height:x?"30px":"0px",width:"100%"},E),a=i({height:"calc(100% - ".concat(e.height,"px - ").concat(o.height,")"),width:"100%"},g),t().createElement("div",{className:"".concat(n,"-container ").concat(n,"-trb ").concat(s)},t().createElement("div",{className:"container-top",style:e},d),t().createElement("div",{className:"container-right",style:a},y),t().createElement("div",{className:"container-bottom",style:o},x))}return t().createElement("div",null,"Error Position")}),[j,s,d,h,p,m,y,g,x,E])},l=c}(),a}()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ParaUI=t(require("react")):e.ParaUI=t(e.react)}(self,(function(e){return function(){var t={66461:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-v3-container{display:flex;width:100%;height:100%}.paraui-v3-container>.container-body{overflow:auto}.paraui-v3-container.paraui-v3-tlr{flex-direction:column}.paraui-v3-container.paraui-v3-tlr>.container-top{flex:none;z-index:1}.paraui-v3-container.paraui-v3-tlr>.container-body{display:flex;overflow:hidden}.paraui-v3-container.paraui-v3-tlr>.container-body>.container-body-right{flex:1;overflow:auto}.paraui-v3-container.paraui-v3-tlr>.container-body>.container-body-right>.container-right{height:100%;overflow:auto}.paraui-v3-container.paraui-v3-tlr>.container-body>.container-left{flex:none}.paraui-v3-container.paraui-v3-tlrb{flex-direction:column}.paraui-v3-container.paraui-v3-tlrb>.container-top{flex:none;z-index:1}.paraui-v3-container.paraui-v3-tlrb>.container-body{display:flex;overflow:hidden}.paraui-v3-container.paraui-v3-tlrb>.container-body>.container-left{flex:none}.paraui-v3-container.paraui-v3-tlrb>.container-body>.container-right{flex:1;overflow:auto}.paraui-v3-container.paraui-v3-ltrb>.container-body{flex:1;display:flex;flex-direction:column}.paraui-v3-container.paraui-v3-ltrb>.container-body>.container-right{flex:1;overflow:auto}.paraui-v3-container.paraui-v3-ltrb>.container-left{flex:none}.paraui-v3-container.paraui-v3-trb{flex-direction:column}.paraui-v3-container.paraui-v3-trb>.container-right{flex:1;overflow:auto}",""]),e.exports=t},23645: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=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=(i=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(l," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([a]).join("\n")}var i,c,l;return[n].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 a={};if(r)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},7175:function(e,t,n){var r=n(93379),a=n(66461);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var o={insert:"head",singleton:!1};r(a,o);e.exports=a.locals||{}},93379:function(e,t,n){"use strict";var r,a=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=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]}}(),i=[];function c(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],a=0;a<e.length;a++){var o=e[a],l=t.base?o[0]+t.base:o[0],u=n[l]||0,s="".concat(l," ").concat(u);n[l]=u+1;var d=c(s),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(i[d].references++,i[d].updater(f)):i.push({identifier:s,updater:m(f,t),references:1}),r.push(s)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var a=n.nc;a&&(r.nonce=a)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var i=o(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(t)}return t}var s,d=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function f(e,t,n,r){var a=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function h(e,t,n){var r=n.css,a=n.media,o=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,v=0;function m(e,t){var n,r,a;if(t.singleton){var o=v++;n=p||(p=u(t)),r=f.bind(null,n,o,!1),a=f.bind(null,n,o,!0)}else n=u(t),r=h.bind(null,n,t),a=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 a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var n=l(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 a=c(n[r]);i[a].references--}for(var o=l(e,t),u=0;u<n.length;u++){var s=c(n[u]);0===i[s].references&&(i[s].updater(),i.splice(s,1))}n=o}}}},8156:function(t){"use strict";t.exports=e}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var o=n[e]={id:e,exports:{}};return t[e](o,o.exports,r),o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var a={};return function(){"use strict";r.r(a),r.d(a,{Container:function(){return c},default:function(){return l}});var e=r(8156),t=r.n(e),n="paraui-v3";r(7175);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}var c=function(){var e,r,a,o,c,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=l.className,s=void 0===u?"":u,d=l.top,f=l.topStyle,h=void 0===f?{}:f,p=l.left,v=l.leftStyle,m=void 0===v?{}:v,y=l.right,b=l.rightStyle,g=void 0===b?{}:b,x=l.bottom,w=l.bottomStyle,E=void 0===w?{}:w,N=l.type,j=void 0===N?"tlr":N;return t().useMemo((function(){switch(j){case"tlr":return e=i({height:d?"50px":"0",width:"100%"},h),r=i({height:"100%",width:"auto"},m),o=i({height:x?"20px":"0",width:"100%"},E),a=i({height:"calc(100% - ".concat(o.height,")"),width:"auto"},g),c={width:"100%",height:"calc(100% - ".concat(e.height,")")},t().createElement("div",{className:"".concat(n,"-container ").concat(n,"-tlr ").concat(s)},t().createElement("div",{className:"container-top",style:e},d),t().createElement("div",{className:"container-body",style:c},t().createElement("div",{className:"container-left",style:r},p),t().createElement("div",{className:"container-body-right",style:{width:"auto",height:"100%"}},t().createElement("div",{className:"container-right",style:a},y))));case"tlrb":return e=i({height:d?"50px":"0",width:"100%"},h),r=i({height:"100%",width:"auto"},m),a=i({height:"100%",width:"auto"},g),o=i({height:x?"20px":"0px",width:"100%"},E),c={width:"100%",height:"calc(100% - ".concat(e.height," - ").concat(o.height,")")},t().createElement("div",{className:"".concat(n,"-container ").concat(n,"-tlrb ").concat(s)},t().createElement("div",{className:"container-top",style:e},d),t().createElement("div",{className:"container-body",style:c},t().createElement("div",{className:"container-left",style:r},p),t().createElement("div",{className:"container-right",style:a},y)),t().createElement("div",{className:"container-bottom",style:o},x));case"ltrb":return r=i({height:"100%",width:"auto"},m),e=i({height:d?"50px":"0",width:"100%"},h),o=i({height:x?"30px":"0px",width:"100%"},E),a=i({height:"calc(100% - ".concat(e.height,"px - ").concat(o.height,")"),width:"100%"},g),c={width:"auto",height:"100%"},t().createElement("div",{className:"".concat(n,"-container ").concat(n,"-ltrb ").concat(s)},t().createElement("div",{className:"container-left",style:r},p),t().createElement("div",{className:"container-body",style:c},t().createElement("div",{className:"container-top",style:e},d),t().createElement("div",{className:"container-right",style:a},y),t().createElement("div",{className:"container-bottom",style:o},x)));case"trb":return e=i({height:d?"50px":"0",width:"100%"},h),o=i({height:x?"30px":"0px",width:"100%"},E),a=i({height:"calc(100% - ".concat(e.height,"px - ").concat(o.height,")"),width:"100%"},g),t().createElement("div",{className:"".concat(n,"-container ").concat(n,"-trb ").concat(s)},t().createElement("div",{className:"container-top",style:e},d),t().createElement("div",{className:"container-right",style:a},y),t().createElement("div",{className:"container-bottom",style:o},x))}return t().createElement("div",null,"Error Position")}),[j,s,d,h,p,m,y,g,x,E])},l=c}(),a}()}));