@ekidpro/ui.portlet
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -1,2 +0,18 @@ | ||
/*! For license information please see index.js.LICENSE.txt */ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["lib/index.js"]=t():e["lib/index.js"]=t()}(self,(function(){return(()=>{"use strict";var e={320:e=>{var t=Object.getOwnPropertySymbols,r=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 t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[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,u){for(var i,a,c=o(e),f=1;f<arguments.length;f++){for(var l in i=Object(arguments[f]))r.call(i,l)&&(c[l]=i[l]);if(t){a=t(i);for(var s=0;s<a.length;s++)n.call(i,a[s])&&(c[a[s]]=i[a[s]])}}return c}},426:(e,t,r)=>{var n=r(320),o=60103,u=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,a=60110,c=60112;t.Suspense=60113;var f=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var s=Symbol.for;o=s("react.element"),u=s("react.portal"),t.Fragment=s("react.fragment"),t.StrictMode=s("react.strict_mode"),t.Profiler=s("react.profiler"),i=s("react.provider"),a=s("react.context"),c=s("react.forward_ref"),t.Suspense=s("react.suspense"),f=s("react.memo"),l=s("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function h(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||d}function m(){}function b(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||d}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=h.prototype;var _=b.prototype=new m;_.constructor=b,n(_,h.prototype),_.isPureReactComponent=!0;var g={current:null},j=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var n,u={},i=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)j.call(t,n)&&!w.hasOwnProperty(n)&&(u[n]=t[n]);var c=arguments.length-2;if(1===c)u.children=r;else if(1<c){for(var f=Array(c),l=0;l<c;l++)f[l]=arguments[l+2];u.children=f}if(e&&e.defaultProps)for(n in c=e.defaultProps)void 0===u[n]&&(u[n]=c[n]);return{$$typeof:o,type:e,key:i,ref:a,props:u,_owner:g.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var E=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function k(e,t,r,n,i){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var c=!1;if(null===e)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case o:case u:c=!0}}if(c)return i=i(c=e),e=""===n?"."+P(c,0):n,Array.isArray(i)?(r="",null!=e&&(r=e.replace(E,"$&/")+"/"),k(i,t,r,"",(function(e){return e}))):null!=i&&(S(i)&&(i=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,r+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(E,"$&/")+"/")+e)),t.push(i)),1;if(c=0,n=""===n?".":n+":",Array.isArray(e))for(var f=0;f<e.length;f++){var l=n+P(a=e[f],f);c+=k(a,t,r,l,i)}else if("function"==typeof(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e)))for(e=l.call(e),f=0;!(a=e.next()).done;)c+=k(a=a.value,t,r,l=n+P(a,f++),i);else if("object"===a)throw t=""+e,Error(y(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return c}function $(e,t,r){if(null==e)return e;var n=[],o=0;return k(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function x(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var C={current:null};function R(){var e=C.current;if(null===e)throw Error(y(321));return e}var A={ReactCurrentDispatcher:C,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:g,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:$,forEach:function(e,t,r){$(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return $(e,(function(){t++})),t},toArray:function(e){return $(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(y(143));return e}},t.Component=h,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,r){if(null==e)throw Error(y(267,e));var u=n({},e.props),i=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=g.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var f=e.type.defaultProps;for(l in t)j.call(t,l)&&!w.hasOwnProperty(l)&&(u[l]=void 0===t[l]&&void 0!==f?f[l]:t[l])}var l=arguments.length-2;if(1===l)u.children=r;else if(1<l){f=Array(l);for(var s=0;s<l;s++)f[s]=arguments[s+2];u.children=f}return{$$typeof:o,type:e.type,key:i,ref:a,props:u,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return R().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,r){return R().useReducer(e,t,r)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"},784:(e,t,r)=>{e.exports=r(426)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var u=t[n]={exports:{}};return e[n](u,u.exports,r),u.exports}r.d=(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=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{Portlet:()=>t,PortletBody:()=>o,PortletFooter:()=>u,PortletHeader:()=>i});var e=r(784),t=function(t){var r=t.children;return e.createElement("div",{className:"bg-white rounded-lg shadow-lg"},r)},o=function(t){var r=t.children;return e.createElement("div",{className:"bg-white rounded p-7"},r)},u=function(){return e.createElement("div",null)},i=function(t){var r=t.title,n=t.toolbar;return e.createElement("div",{className:"flex items-center justify-between rounded bg-white px-7 py-4",style:{borderBottomWidth:1}},e.createElement("div",null,e.createElement("span",{className:"uppercase font-bold"},r)),e.createElement("div",null,n))}})(),n})()})); | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var r=e(require("react")),t={exports:{}},n={},o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function c(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var s=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,r){for(var t,n,s=c(e),l=1;l<arguments.length;l++){for(var u in t=Object(arguments[l]))a.call(t,u)&&(s[u]=t[u]);if(o){n=o(t);for(var f=0;f<n.length;f++)i.call(t,n[f])&&(s[n[f]]=t[n[f]])}}return s},l=r.default,u=60103; | ||
/** @license React v17.0.2 | ||
* react-jsx-runtime.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/if(n.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var f=Symbol.for;u=f("react.element"),n.Fragment=f("react.fragment")}var p=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y=Object.prototype.hasOwnProperty,d={key:!0,ref:!0,__self:!0,__source:!0};function v(e,r,t){var n,o={},a=null,i=null;for(n in void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(i=r.ref),r)y.call(r,n)&&!d.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:u,type:e,key:a,ref:i,props:o,_owner:p.current}}n.jsx=v,n.jsxs=v;var g={}; | ||
/** @license React v17.0.2 | ||
* react-jsx-runtime.development.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/!function(e){"production"!==process.env.NODE_ENV&&function(){var t=r.default,n=s,o=60103,a=60106;e.Fragment=60107;var i=60108,c=60114,l=60109,u=60110,f=60112,p=60113,y=60120,d=60115,v=60116,g=60121,b=60122,m=60117,h=60129,_=60131;if("function"==typeof Symbol&&Symbol.for){var j=Symbol.for;o=j("react.element"),a=j("react.portal"),e.Fragment=j("react.fragment"),i=j("react.strict_mode"),c=j("react.profiler"),l=j("react.provider"),u=j("react.context"),f=j("react.forward_ref"),p=j("react.suspense"),y=j("react.suspense_list"),d=j("react.memo"),v=j("react.lazy"),g=j("react.block"),b=j("react.server.block"),m=j("react.fundamental"),j("react.scope"),j("react.opaque.id"),h=j("react.debug_trace_mode"),j("react.offscreen"),_=j("react.legacy_hidden")}var O="function"==typeof Symbol&&Symbol.iterator;var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];x("error",e,t)}function x(e,r,t){var n=w.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(r+="%s",t=t.concat([n]));var o=t.map((function(e){return""+e}));o.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,o)}function R(e){return e.displayName||"Context"}function E(r){if(null==r)return null;if("number"==typeof r.tag&&k("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof r)return r.displayName||r.name||null;if("string"==typeof r)return r;switch(r){case e.Fragment:return"Fragment";case a:return"Portal";case c:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case y:return"SuspenseList"}if("object"==typeof r)switch(r.$$typeof){case u:return R(r)+".Consumer";case l:return R(r._context)+".Provider";case f:return s=r,b=r.render,m="ForwardRef",h=b.displayName||b.name||"",s.displayName||(""!==h?m+"("+h+")":m);case d:return E(r.type);case g:return E(r._render);case v:var t=r,n=t._payload,o=t._init;try{return E(o(n))}catch(e){return null}}var s,b,m,h;return null}var P,S,$,N,T,C,F,D=0;function I(){}I.__reactDisabledLog=!0;var A,L=w.ReactCurrentDispatcher;function W(e,r,t){if(void 0===A)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);A=n&&n[1]||""}return"\n"+A+e}var U,z=!1,q="function"==typeof WeakMap?WeakMap:Map;function B(e,r){if(!e||z)return"";var t,o=U.get(e);if(void 0!==o)return o;z=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=L.current,L.current=null,function(){if(0===D){P=console.log,S=console.info,$=console.warn,N=console.error,T=console.group,C=console.groupCollapsed,F=console.groupEnd;var e={configurable:!0,enumerable:!0,value:I,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}();try{if(r){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(c,[])}catch(e){t=e}Reflect.construct(e,[],c)}else{try{c.call()}catch(e){t=e}e.call(c.prototype)}}else{try{throw Error()}catch(e){t=e}e()}}catch(r){if(r&&t&&"string"==typeof r.stack){for(var s=r.stack.split("\n"),l=t.stack.split("\n"),u=s.length-1,f=l.length-1;u>=1&&f>=0&&s[u]!==l[f];)f--;for(;u>=1&&f>=0;u--,f--)if(s[u]!==l[f]){if(1!==u||1!==f)do{if(u--,--f<0||s[u]!==l[f]){var p="\n"+s[u].replace(" at new "," at ");return"function"==typeof e&&U.set(e,p),p}}while(u>=1&&f>=0);break}}}finally{z=!1,L.current=a,function(){if(0==--D){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},e,{value:P}),info:n({},e,{value:S}),warn:n({},e,{value:$}),error:n({},e,{value:N}),group:n({},e,{value:T}),groupCollapsed:n({},e,{value:C}),groupEnd:n({},e,{value:F})})}D<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var y=e?e.displayName||e.name:"",d=y?W(y):"";return"function"==typeof e&&U.set(e,d),d}function Y(e,r,t){return B(e,!1)}function M(e,r,t){if(null==e)return"";if("function"==typeof e)return B(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return W(e);switch(e){case p:return W("Suspense");case y:return W("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case f:return Y(e.render);case d:return M(e.type,r,t);case g:return Y(e._render);case v:var o=e,a=o._payload,i=o._init;try{return M(i(a),r,t)}catch(e){}}return""}U=new q;var V={},H=w.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,t=M(e.type,e._source,r?r.type:null);H.setExtraStackFrame(t)}else H.setExtraStackFrame(null)}var X,G,K,Q=w.ReactCurrentOwner,Z=Object.prototype.hasOwnProperty,ee={key:!0,ref:!0,__self:!0,__source:!0};K={};function re(e,r,t,n,a){var i,c={},s=null,l=null;for(i in void 0!==t&&(s=""+t),function(e){if(Z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(r)&&(s=""+r.key),function(e){if(Z.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return void 0!==e.ref}(r)&&(l=r.ref,function(e,r){if("string"==typeof e.ref&&Q.current&&r&&Q.current.stateNode!==r){var t=E(Q.current.type);K[t]||(k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',E(Q.current.type),e.ref),K[t]=!0)}}(r,a)),r)Z.call(r,i)&&!ee.hasOwnProperty(i)&&(c[i]=r[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===c[i]&&(c[i]=u[i])}if(s||l){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,r){var t=function(){X||(X=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(c,f),l&&function(e,r){var t=function(){G||(G=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(c,f)}return function(e,r,t,n,a,i,c){var s={$$typeof:o,type:e,key:r,ref:t,props:c,_owner:i,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}(e,s,l,a,n,Q.current,c)}var te,ne=w.ReactCurrentOwner,oe=w.ReactDebugCurrentFrame;function ae(e){if(e){var r=e._owner,t=M(e.type,e._source,r?r.type:null);oe.setExtraStackFrame(t)}else oe.setExtraStackFrame(null)}function ie(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}function ce(){if(ne.current){var e=E(ne.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}te=!1;var se={};function le(e,r){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var r=ce();if(!r){var t="string"==typeof e?e:e.displayName||e.name;t&&(r="\n\nCheck the top-level render call using <"+t+">.")}return r}(r);if(!se[t]){se[t]=!0;var n="";e&&e._owner&&e._owner!==ne.current&&(n=" It was passed a child from "+E(e._owner.type)+"."),ae(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),ae(null)}}}function ue(e,r){if("object"==typeof e)if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];ie(n)&&le(n,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var r=O&&e[O]||e["@@iterator"];return"function"==typeof r?r:null}(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ie(a.value)&&le(a.value,r)}}function fe(e){var r,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==f&&t.$$typeof!==d)return;r=t.propTypes}if(r){var n=E(t);!function(e,r,t,n,o){var a=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(a(e,i)){var c=void 0;try{if("function"!=typeof e[i]){var s=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}c=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){c=e}!c||c instanceof Error||(J(o),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof c),J(null)),c instanceof Error&&!(c.message in V)&&(V[c.message]=!0,J(o),k("Failed %s type: %s",t,c.message),J(null))}}(r,e.props,"prop",n,e)}else if(void 0!==t.PropTypes&&!te){te=!0,k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E(t)||"Unknown")}"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pe(r,t,n,a,s,j){var O=function(r){return"string"==typeof r||"function"==typeof r||r===e.Fragment||r===c||r===h||r===i||r===p||r===y||r===_||"object"==typeof r&&null!==r&&(r.$$typeof===v||r.$$typeof===d||r.$$typeof===l||r.$$typeof===u||r.$$typeof===f||r.$$typeof===m||r.$$typeof===g||r[0]===b)}(r);if(!O){var w="";(void 0===r||"object"==typeof r&&null!==r&&0===Object.keys(r).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var x,R=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(s);w+=R||ce(),null===r?x="null":Array.isArray(r)?x="array":void 0!==r&&r.$$typeof===o?(x="<"+(E(r.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):x=typeof r,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,w)}var P=re(r,t,n,s,j);if(null==P)return P;if(O){var S=t.children;if(void 0!==S)if(a)if(Array.isArray(S)){for(var $=0;$<S.length;$++)ue(S[$],r);Object.freeze&&Object.freeze(S)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ue(S,r)}return r===e.Fragment?function(e){for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if("children"!==n&&"key"!==n){ae(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),ae(null);break}}null!==e.ref&&(ae(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}(P):fe(P),P}var ye=function(e,r,t){return pe(e,r,t,!1)},de=function(e,r,t){return pe(e,r,t,!0)};e.jsx=ye,e.jsxs=de}()}(g),"production"===process.env.NODE_ENV?t.exports=n:t.exports=g;exports.Portlet=e=>{const{children:r}=e;return t.exports.jsx("div",Object.assign({className:"bg-white rounded-lg shadow-lg"},{children:r}),void 0)},exports.PortletBody=e=>{const{children:r}=e;return t.exports.jsx("div",Object.assign({className:"bg-white rounded p-7"},{children:r}),void 0)},exports.PortletFooter=()=>t.exports.jsx("div",{},void 0),exports.PortletHeader=e=>{const{title:r,toolbar:n}=e;return t.exports.jsxs("div",Object.assign({className:"flex items-center justify-between rounded bg-white px-7 py-4",style:{borderBottomWidth:1}},{children:[t.exports.jsx("div",{children:t.exports.jsx("span",Object.assign({className:"uppercase font-bold"},{children:r}),void 0)},void 0),t.exports.jsx("div",{children:n},void 0)]}),void 0)}; | ||
//# sourceMappingURL=index.js.map |
export * from './portlet'; | ||
export { Portlet } from './portlet'; | ||
export * from './portlet-body'; | ||
@@ -4,0 +3,0 @@ export * from './portlet-footer'; |
import React from 'react'; | ||
export declare const PortletBody: React.FC; | ||
//# sourceMappingURL=portlet-body.d.ts.map |
import React from 'react'; | ||
export declare const PortletFooter: React.FC; | ||
//# sourceMappingURL=portlet-footer.d.ts.map |
@@ -0,0 +0,0 @@ import React from 'react'; |
import React from 'react'; | ||
export declare const Portlet: React.FC; | ||
//# sourceMappingURL=portlet.d.ts.map |
@@ -0,0 +0,0 @@ /// <reference types="react" /> |
{ | ||
"name": "@ekidpro/ui.portlet", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "> TODO: description", | ||
@@ -33,3 +33,3 @@ "author": "lamlv <lam.luongvan2305@gmail.com>", | ||
}, | ||
"gitHead": "77a7f069c6ce323c87fe6ce8398b26a949fbda2a" | ||
"gitHead": "ef43281919475b7755e6935af50796a9cd36bb94" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
157611
17
0
157
0
3
5