xtreme-ui 0.0.7 → 0.0.8
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/dist/index.d.ts +10 -10
- package/dist/index.es.js +277 -274
- package/dist/index.umd.js +8 -8
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(v,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(v=typeof globalThis<"u"?globalThis:v||self,x(v.XtremeUI={},v.require$$0))})(this,function(v,x){"use strict";const sn="",re=typeof window<"u",A=re?window:void 0,te=(r,n)=>re?getComputedStyle((n==null?void 0:n.current)||document.documentElement).getPropertyValue(r):"",br=(r,n)=>parseInt(te(r,n).replace(/px/g,"")),hr=(r,n)=>{const i=parseInt(te(r,n).replace(/vh/g,""));return[((A==null?void 0:A.innerHeight)??0)*i/100,i]},Sr=(r,n)=>{const i=parseInt(te(r,n).replace(/vw/g,""));return[((A==null?void 0:A.innerWidth)??0)*i/100,i]},Tr=(r,n,i)=>re?((i==null?void 0:i.current)||document.documentElement).style.setProperty(r,n):"",Rr=r=>new Promise(n=>{let i=document.querySelector(r);if(i)return n(i);const o=new MutationObserver(()=>{i=document.querySelector(r),i&&(n(i),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})}),Er=(r,n)=>{var i;(i=n==null?void 0:n.forEach)==null||i.call(n,o=>{let l;new MutationObserver(p=>{var c;document.querySelector(o)&&(l=document.querySelector(o)),(c=p==null?void 0:p.forEach)==null||c.call(p,y=>{y.type==="childList"&&(Array.from(y.addedNodes).indexOf(l)>-1&&r(l,"added",y),Array.from(y.removedNodes).indexOf(l)>-1&&r(l,"removed",y))})}).observe(document.body,{childList:!0,subtree:!0})})},we=r=>n=>{r.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})},Ce=r=>isNaN(r)||r<0||r>1114111||Math.floor(r)!==r?"":String.fromCodePoint(r),xe=r=>Ce(parseInt(`0x${r}`,16));var ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var fe={exports:{}},J={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Pe;function Or(){if(Pe)return J;Pe=1;var r=x,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function p(d,c,y){var b,h={},O=null,P=null;y!==void 0&&(O=""+y),c.key!==void 0&&(O=""+c.key),c.ref!==void 0&&(P=c.ref);for(b in c)o.call(c,b)&&!m.hasOwnProperty(b)&&(h[b]=c[b]);if(d&&d.defaultProps)for(b in c=d.defaultProps,c)h[b]===void 0&&(h[b]=c[b]);return{$$typeof:n,type:d,key:O,ref:P,props:h,_owner:l.current}}return J.Fragment=i,J.jsx=p,J.jsxs=p,J}var X={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
17
|
+
*/var ke;function wr(){return ke||(ke=1,process.env.NODE_ENV!=="production"&&function(){var r=x,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),q=Symbol.iterator,Y="@@iterator";function B(e){if(e===null||typeof e!="object")return null;var t=q&&e[q]||e[Y];return typeof t=="function"?t:null}var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(e){{for(var t=arguments.length,a=new Array(t>1?t-1:0),s=1;s<t;s++)a[s-1]=arguments[s];me("error",e,a)}}function me(e,t,a){{var s=w.ReactDebugCurrentFrame,g=s.getStackAddendum();g!==""&&(t+="%s",a=a.concat([g]));var _=a.map(function(f){return String(f)});_.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,_)}}var ye=!1,K=!1,R=!1,D=!1,W=!1,Z;Z=Symbol.for("react.module.reference");function Dt(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===m||W||e===l||e===y||e===b||D||e===P||ye||K||R||typeof e=="object"&&e!==null&&(e.$$typeof===O||e.$$typeof===h||e.$$typeof===p||e.$$typeof===d||e.$$typeof===c||e.$$typeof===Z||e.getModuleId!==void 0))}function $t(e,t,a){var s=e.displayName;if(s)return s;var g=t.displayName||t.name||"";return g!==""?a+"("+g+")":a}function He(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case i:return"Portal";case m:return"Profiler";case l:return"StrictMode";case y:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d:var t=e;return He(t)+".Consumer";case p:var a=e;return He(a._context)+".Provider";case c:return $t(e,e.render,"ForwardRef");case h:var s=e.displayName||null;return s!==null?s:$(e.type)||"Memo";case O:{var g=e,_=g._payload,f=g._init;try{return $(f(_))}catch{return null}}}return null}var M=Object.assign,Q=0,Ke,Ze,Qe,er,rr,tr,nr;function ar(){}ar.__reactDisabledLog=!0;function It(){{if(Q===0){Ke=console.log,Ze=console.info,Qe=console.warn,er=console.error,rr=console.group,tr=console.groupCollapsed,nr=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ar,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Q++}}function Lt(){{if(Q--,Q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:Ke}),info:M({},e,{value:Ze}),warn:M({},e,{value:Qe}),error:M({},e,{value:er}),group:M({},e,{value:rr}),groupCollapsed:M({},e,{value:tr}),groupEnd:M({},e,{value:nr})})}Q<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=w.ReactCurrentDispatcher,he;function oe(e,t,a){{if(he===void 0)try{throw Error()}catch(g){var s=g.stack.trim().match(/\n( *(at )?)/);he=s&&s[1]||""}return`
|
|
18
|
+
`+he+e}}var Se=!1,se;{var Ft=typeof WeakMap=="function"?WeakMap:Map;se=new Ft}function ir(e,t){if(!e||Se)return"";{var a=se.get(e);if(a!==void 0)return a}var s;Se=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=be.current,be.current=null,It();try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(I){s=I}Reflect.construct(e,[],f)}else{try{f.call()}catch(I){s=I}e.call(f.prototype)}}else{try{throw Error()}catch(I){s=I}e()}}catch(I){if(I&&s&&typeof I.stack=="string"){for(var u=I.stack.split(`
|
|
19
19
|
`),C=s.stack.split(`
|
|
20
20
|
`),E=u.length-1,j=C.length-1;E>=1&&j>=0&&u[E]!==C[j];)j--;for(;E>=1&&j>=0;E--,j--)if(u[E]!==C[j]){if(E!==1||j!==1)do if(E--,j--,j<0||u[E]!==C[j]){var k=`
|
|
21
|
-
`+u[E].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),typeof e=="function"&&
|
|
21
|
+
`+u[E].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),typeof e=="function"&&se.set(e,k),k}while(E>=1&&j>=0);break}}}finally{Se=!1,be.current=_,Lt(),Error.prepareStackTrace=g}var G=e?e.displayName||e.name:"",yr=G?oe(G):"";return typeof e=="function"&&se.set(e,yr),yr}function At(e,t,a){return ir(e,!1)}function zt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function le(e,t,a){if(e==null)return"";if(typeof e=="function")return ir(e,zt(e));if(typeof e=="string")return oe(e);switch(e){case y:return oe("Suspense");case b:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return At(e.render);case h:return le(e.type,t,a);case O:{var s=e,g=s._payload,_=s._init;try{return le(_(g),t,a)}catch{}}}return""}var ce=Object.prototype.hasOwnProperty,or={},sr=w.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,a=le(e.type,e._source,t?t.type:null);sr.setExtraStackFrame(a)}else sr.setExtraStackFrame(null)}function Wt(e,t,a,s,g){{var _=Function.call.bind(ce);for(var f in e)if(_(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var C=Error((s||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}u=e[f](t,f,s,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){u=E}u&&!(u instanceof Error)&&(ue(g),T("%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).",s||"React class",a,f,typeof u),ue(null)),u instanceof Error&&!(u.message in or)&&(or[u.message]=!0,ue(g),T("Failed %s type: %s",a,u.message),ue(null))}}}var Mt=Array.isArray;function Te(e){return Mt(e)}function Vt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,a=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function qt(e){try{return lr(e),!1}catch{return!0}}function lr(e){return""+e}function cr(e){if(qt(e))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Vt(e)),lr(e)}var ee=w.ReactCurrentOwner,Yt={key:!0,ref:!0,__self:!0,__source:!0},ur,fr,Re;Re={};function Bt(e){if(ce.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Ut(e){if(ce.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Gt(e,t){if(typeof e.ref=="string"&&ee.current&&t&&ee.current.stateNode!==t){var a=$(ee.current.type);Re[a]||(T('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',$(ee.current.type),e.ref),Re[a]=!0)}}function Jt(e,t){{var a=function(){ur||(ur=!0,T("%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)",t))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Xt(e,t){{var a=function(){fr||(fr=!0,T("%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)",t))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Ht=function(e,t,a,s,g,_,f){var u={$$typeof:n,type:e,key:t,ref:a,props:f,_owner:_};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Kt(e,t,a,s,g){{var _,f={},u=null,C=null;a!==void 0&&(cr(a),u=""+a),Ut(t)&&(cr(t.key),u=""+t.key),Bt(t)&&(C=t.ref,Gt(t,g));for(_ in t)ce.call(t,_)&&!Yt.hasOwnProperty(_)&&(f[_]=t[_]);if(e&&e.defaultProps){var E=e.defaultProps;for(_ in E)f[_]===void 0&&(f[_]=E[_])}if(u||C){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&Jt(f,j),C&&Xt(f,j)}return Ht(e,u,C,g,s,ee.current,f)}}var Ee=w.ReactCurrentOwner,dr=w.ReactDebugCurrentFrame;function U(e){if(e){var t=e._owner,a=le(e.type,e._source,t?t.type:null);dr.setExtraStackFrame(a)}else dr.setExtraStackFrame(null)}var je;je=!1;function Oe(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function gr(){{if(Ee.current){var e=$(Ee.current.type);if(e)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function Zt(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+t+":"+a+"."}return""}}var pr={};function
|
|
25
|
+
Check your code at `+t+":"+a+"."}return""}}var pr={};function Qt(e){{var t=gr();if(!t){var a=typeof e=="string"?e:e.displayName||e.name;a&&(t=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+a+">.")}return t}}function gr(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Zt(t);if(pr[a])return;pr[a]=!0;var s="";e&&e._owner&&e._owner!==Re.current&&(s=" It was passed a child from "+$(e._owner.type)+"."),B(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,s),B(null)}}function vr(e,t){{if(typeof e!="object")return;if(Te(e))for(var a=0;a<e.length;a++){var s=e[a];je(s)&&gr(s,t)}else if(je(e))e._store&&(e._store.validated=!0);else if(e){var p=U(e);if(typeof p=="function"&&p!==e.entries)for(var v=p.call(e),f;!(f=v.next()).done;)je(f.value)&&gr(f.value,t)}}}function Qt(e){{var t=e.type;if(t==null||typeof t=="string")return;var a;if(typeof t=="function")a=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===h))a=t.propTypes;else return;if(a){var s=$(t);Wt(a,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!Ee){Ee=!0;var p=$(t);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function en(e){{for(var t=Object.keys(e.props),a=0;a<t.length;a++){var s=t[a];if(s!=="children"&&s!=="key"){B(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),B(null);break}}e.ref!==null&&(B(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),B(null))}}function _r(e,t,a,s,p,v){{var f=Nt(e);if(!f){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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 C=Kt(p);C?u+=C:u+=dr();var E;e===null?E="null":Te(e)?E="array":e!==void 0&&e.$$typeof===n?(E="<"+($(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):E=typeof e,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,u)}var j=Ht(e,t,a,p,v);if(j==null)return j;if(f){var k=t.children;if(k!==void 0)if(s)if(Te(k)){for(var G=0;G<k.length;G++)vr(k[G],e);Object.freeze&&Object.freeze(k)}else S("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 vr(k,e)}return e===o?en(j):Qt(j),j}}function rn(e,t,a){return _r(e,t,a,!0)}function tn(e,t,a){return _r(e,t,a,!1)}var nn=tn,an=rn;X.Fragment=o,X.jsx=nn,X.jsxs=an}()),X}process.env.NODE_ENV==="production"?ue.exports=jr():ue.exports=Or();var T=ue.exports;function ke(r){var n,i,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r))for(n=0;n<r.length;n++)r[n]&&(i=ke(r[n]))&&(o&&(o+=" "),o+=i);else for(n in r)r[n]&&(o&&(o+=" "),o+=n);return o}function V(){for(var r,n,i=0,o="";i<arguments.length;)(r=arguments[i++])&&(n=ke(r))&&(o&&(o+=" "),o+=n);return o}function wr(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var fe=wr,Cr=typeof ne=="object"&&ne&&ne.Object===Object&&ne,xr=Cr,Pr=xr,kr=typeof self=="object"&&self&&self.Object===Object&&self,Nr=Pr||kr||Function("return this")(),Ne=Nr,Dr=Ne,$r=function(){return Dr.Date.now()},Ir=$r,Fr=/\s/;function Lr(r){for(var n=r.length;n--&&Fr.test(r.charAt(n)););return n}var Ar=Lr,Wr=Ar,zr=/^\s+/;function Mr(r){return r&&r.slice(0,Wr(r)+1).replace(zr,"")}var Vr=Mr,qr=Ne,Yr=qr.Symbol,De=Yr,$e=De,Ie=Object.prototype,Ur=Ie.hasOwnProperty,Br=Ie.toString,H=$e?$e.toStringTag:void 0;function Gr(r){var n=Ur.call(r,H),i=r[H];try{r[H]=void 0;var o=!0}catch{}var l=Br.call(r);return o&&(n?r[H]=i:delete r[H]),l}var Jr=Gr,Xr=Object.prototype,Hr=Xr.toString;function Kr(r){return Hr.call(r)}var Zr=Kr,Fe=De,Qr=Jr,et=Zr,rt="[object Null]",tt="[object Undefined]",Le=Fe?Fe.toStringTag:void 0;function nt(r){return r==null?r===void 0?tt:rt:Le&&Le in Object(r)?Qr(r):et(r)}var at=nt;function it(r){return r!=null&&typeof r=="object"}var ot=it,st=at,lt=ot,ct="[object Symbol]";function ut(r){return typeof r=="symbol"||lt(r)&&st(r)==ct}var ft=ut,dt=Vr,Ae=fe,pt=ft,We=0/0,gt=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,_t=/^0o[0-7]+$/i,mt=parseInt;function yt(r){if(typeof r=="number")return r;if(pt(r))return We;if(Ae(r)){var n=typeof r.valueOf=="function"?r.valueOf():r;r=Ae(n)?n+"":n}if(typeof r!="string")return r===0?r:+r;r=dt(r);var i=vt.test(r);return i||_t.test(r)?mt(r.slice(2),i?2:8):gt.test(r)?We:+r}var bt=yt,ht=fe,de=Ir,ze=bt,Tt="Expected a function",St=Math.max,Rt=Math.min;function Et(r,n,i){var o,l,_,g,d,c,y=0,b=!1,h=!1,O=!0;if(typeof r!="function")throw new TypeError(Tt);n=ze(n)||0,ht(i)&&(b=!!i.leading,h="maxWait"in i,_=h?St(ze(i.maxWait)||0,n):_,O="trailing"in i?!!i.trailing:O);function P(R){var D=o,z=l;return o=l=void 0,y=R,g=r.apply(z,D),g}function q(R){return y=R,d=setTimeout(w,n),b?P(R):g}function Y(R){var D=R-c,z=R-y,Z=n-D;return h?Rt(Z,_-z):Z}function U(R){var D=R-c,z=R-y;return c===void 0||D>=n||D<0||h&&z>=_}function w(){var R=de();if(U(R))return S(R);d=setTimeout(w,Y(R))}function S(R){return d=void 0,O&&o?P(R):(o=l=void 0,g)}function _e(){d!==void 0&&clearTimeout(d),y=0,o=c=l=d=void 0}function me(){return d===void 0?g:S(de())}function K(){var R=de(),D=U(R);if(o=arguments,l=this,c=R,D){if(d===void 0)return q(c);if(h)return clearTimeout(d),d=setTimeout(w,n),P(c)}return d===void 0&&(d=setTimeout(w,n)),g}return K.cancel=_e,K.flush=me,K}var jt=Et,Ot=jt,wt=fe,Ct="Expected a function";function xt(r,n,i){var o=!0,l=!0;if(typeof r!="function")throw new TypeError(Ct);return wt(i)&&(o="leading"in i?!!i.leading:o,l="trailing"in i?!!i.trailing:l),Ot(r,n,{leading:o,maxWait:n,trailing:l})}var Pt=xt;const kt=Er(Pt),Me={icon:"_icon_awnbf_2",thin:"_thin_awnbf_25",light:"_light_awnbf_29",regular:"_regular_awnbf_33",solid:"_solid_awnbf_37",duotone:"_duotone_awnbf_41",sharpSolid:"_sharpSolid_awnbf_52",sharpRegular:"_sharpRegular_awnbf_56",sharpLight:"_sharpLight_awnbf_60",brand:"_brand_awnbf_64"};var Ve=(r=>(r[r.mini=12]="mini",r[r.default=18]="default",r[r.large=24]="large",r))(Ve||{});const ae=x.forwardRef((r,n)=>{const{className:i,code:o,type:l="light",size:_}=r,g=_?`${typeof _=="number"?_:Ve[_]}px`:void 0,d=V(Me.icon,l&&Me[l],i);return T.jsx("span",{className:d,ref:n,style:{"--iconSize":g},"data-content":Ce(o)})});ae.displayName="Icon";const pe={progressBar:"_progressBar_luf46_1",progress:"_progress_luf46_1",intermediate:"_intermediate_luf46_31",barberPole:"_barberPole_luf46_1"},ge=x.forwardRef((r,n)=>{const{className:i,progress:o=100,intermediate:l=!1}=r,_=l?150:Math.min(Math.max(o,0),100),g=V(pe.progressBar,l&&pe.intermediate,i);return T.jsx("div",{className:g,ref:n,children:T.jsx("span",{className:pe.progress,style:{width:`${_}%`}})})});ge.displayName="ProgressBar";const N={button:"_button_6uqr8_1",label:"_label_6uqr8_17",icon:"_icon_6uqr8_23",underline:"_underline_6uqr8_26",primaryType:"_primaryType_6uqr8_49",primaryDangerType:"_primaryDangerType_6uqr8_49",secondaryType:"_secondaryType_6uqr8_54",secondaryDangerType:"_secondaryDangerType_6uqr8_54",linkType:"_linkType_6uqr8_59",linkDangerType:"_linkDangerType_6uqr8_59",miniSize:"_miniSize_6uqr8_88",iconOnly:"_iconOnly_6uqr8_99",defaultSize:"_defaultSize_6uqr8_106",largeSize:"_largeSize_6uqr8_124",clicked:"_clicked_6uqr8_157",ripple:"_ripple_6uqr8_1",loading:"_loading_6uqr8_166",barberPole:"_barberPole_6uqr8_1",spin:"_spin_6uqr8_1"};var ve=(r=>(r.primary="primary",r.primaryDanger="primaryDanger",r.secondary="secondary",r.secondaryDanger="secondaryDanger",r.link="link",r.linkDanger="linkDanger",r))(ve||{});const qe=100;let Ye;const Ue=x.forwardRef((r,n)=>{const{className:i,label:o,type:l="primary",size:_="default",disabled:g=!1,loading:d=!1,icon:c,iconType:y,iconPosition:b="left",onClick:h}=r,O=x.useRef(null),P=kt(()=>{var w;clearTimeout(Ye),(w=O.current)==null||w.classList.add(N.clicked),Ye=window.setTimeout(()=>{var S;(S=O.current)==null||S.classList.remove(N.clicked)},600+qe)},qe),q=w=>{h==null||h(w),l.includes(ve.link)||P()},Y=()=>c?T.jsx(ae,{className:N.icon,code:c,type:y,size:_}):null,U=V(N.button,N[`${l}Type`],N[`${_}Size`],!o&&N.iconOnly,d&&N.loading,i);return!o&&!c?null:T.jsxs("button",{className:U,ref:Oe([O,n]),onClick:q,disabled:g,children:[l.includes(ve.link)&&T.jsx(ge,{className:N.underline,intermediate:d}),b==="left"&&T.jsx(Y,{}),o&&T.jsx("span",{className:N.label,children:o}),b==="right"&&T.jsx(Y,{})]})});Ue.displayName="Button";const F={textfield:"_textfield_7y99a_1",icon:"_icon_7y99a_27",input:"_input_7y99a_36",placeholder:"_placeholder_7y99a_49",withIcon:"_withIcon_7y99a_73",textarea:"_textarea_7y99a_83",hasValue:"_hasValue_7y99a_92"},Be=x.forwardRef((r,n)=>{const{className:i,type:o="text",textarea:l,placeholder:_,autoComplete:g="off",autoFocus:d,icon:c,iconType:y="regular",value:b,onChange:h}=r,O=x.useMemo(()=>{if(l===!0)return null;if(c)return c;if(o==="number")return"23";if(o==="search")return"f002";if(o==="password")return"f30d"},[l,c,o]),P=V(F.textfield,O&&F.withIcon,l&&F.textarea,b&&F.hasValue,i);return T.jsxs("div",{className:P,ref:n,children:[!!O&&!l&&T.jsx(ae,{className:F.icon,code:O,type:y}),l?T.jsx("textarea",{className:F.input,autoFocus:d,autoComplete:g,value:b,onChange:h}):T.jsx("input",{className:F.input,type:o,autoFocus:d,autoComplete:g,value:b,onChange:h}),T.jsx("span",{className:F.placeholder,children:_})]})});Be.displayName="Textfield";const L={sider:"_sider_9guyz_1",leftSiderContainer:"_leftSiderContainer_9guyz_13",rightSiderContainer:"_rightSiderContainer_9guyz_20",content:"_content_9guyz_27",miniLeftSider:"_miniLeftSider_9guyz_37",miniRightSider:"_miniRightSider_9guyz_44",leftOpen:"_leftOpen_9guyz_51",rightOpen:"_rightOpen_9guyz_57"},Ge=x.forwardRef((r,n)=>{const{className:i,children:o,leftSider:l,showMiniLeftSider:_=!0,rightSider:g,showMiniRightSider:d=!1,open:c="closed"}=r,y=V(L.sider,c==="left"&&L.leftOpen,_&&L.miniLeftSider,c==="right"&&L.rightOpen,d&&L.miniRightSider,i);return T.jsxs("section",{className:y,ref:n,role:"sider",children:[T.jsx("div",{className:L.leftSiderContainer,children:l}),T.jsx("div",{className:L.rightSiderContainer,children:g}),T.jsx("div",{className:L.content,children:o})]})});Ge.displayName="Sider";const W={navigation:"_navigation_zrgjp_1",brand:"_brand_zrgjp_9",routeList:"_routeList_zrgjp_18",route:"_route_zrgjp_18",icon:"_icon_zrgjp_59",label:"_label_zrgjp_65",active:"_active_zrgjp_77"},Je=x.forwardRef((r,n)=>{const{className:i,Routes:o}=r,l=V(W.navigation,i);return T.jsxs("section",{className:l,ref:n,role:"navigation",children:[T.jsx("div",{className:W.brand,children:"🎲 XtremeUI"}),T.jsx("div",{className:W.routeList,children:!!o&&T.jsx(o,{className:W.route,activeClassName:W.active,iconClassName:W.icon,labelClassName:W.label})})]})});Je.displayName="Navigation",m.Button=Ue,m.Icon=ae,m.Navigation=Je,m.ProgressBar=ge,m.Sider=Ge,m.Textfield=Be,m.dom=A,m.elementObserver=Rr,m.getCssProperty=te,m.getCssPropertyPx=yr,m.getCssPropertyVh=br,m.getCssPropertyVw=hr,m.isClient=re,m.mergeRefs=Oe,m.safeStringFromCodePoint=we,m.setCssProperty=Tr,m.unicodeToString=Ce,m.waitForElement=Sr,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
|
|
27
|
+
Check the top-level render call using <`+a+">.")}return t}}function vr(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Qt(t);if(pr[a])return;pr[a]=!0;var s="";e&&e._owner&&e._owner!==Ee.current&&(s=" It was passed a child from "+$(e._owner.type)+"."),U(e),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,s),U(null)}}function _r(e,t){{if(typeof e!="object")return;if(Te(e))for(var a=0;a<e.length;a++){var s=e[a];Oe(s)&&vr(s,t)}else if(Oe(e))e._store&&(e._store.validated=!0);else if(e){var g=B(e);if(typeof g=="function"&&g!==e.entries)for(var _=g.call(e),f;!(f=_.next()).done;)Oe(f.value)&&vr(f.value,t)}}}function en(e){{var t=e.type;if(t==null||typeof t=="string")return;var a;if(typeof t=="function")a=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===h))a=t.propTypes;else return;if(a){var s=$(t);Wt(a,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!je){je=!0;var g=$(t);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rn(e){{for(var t=Object.keys(e.props),a=0;a<t.length;a++){var s=t[a];if(s!=="children"&&s!=="key"){U(e),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),U(null);break}}e.ref!==null&&(U(e),T("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}function mr(e,t,a,s,g,_){{var f=Dt(e);if(!f){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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 C=Zt(g);C?u+=C:u+=gr();var E;e===null?E="null":Te(e)?E="array":e!==void 0&&e.$$typeof===n?(E="<"+($(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):E=typeof e,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,u)}var j=Kt(e,t,a,g,_);if(j==null)return j;if(f){var k=t.children;if(k!==void 0)if(s)if(Te(k)){for(var G=0;G<k.length;G++)_r(k[G],e);Object.freeze&&Object.freeze(k)}else T("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 _r(k,e)}return e===o?rn(j):en(j),j}}function tn(e,t,a){return mr(e,t,a,!0)}function nn(e,t,a){return mr(e,t,a,!1)}var an=nn,on=tn;X.Fragment=o,X.jsx=an,X.jsxs=on}()),X}process.env.NODE_ENV==="production"?fe.exports=Or():fe.exports=wr();var S=fe.exports;function Ne(r){var n,i,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r))for(n=0;n<r.length;n++)r[n]&&(i=Ne(r[n]))&&(o&&(o+=" "),o+=i);else for(n in r)r[n]&&(o&&(o+=" "),o+=n);return o}function V(){for(var r,n,i=0,o="";i<arguments.length;)(r=arguments[i++])&&(n=Ne(r))&&(o&&(o+=" "),o+=n);return o}function Cr(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var de=Cr,xr=typeof ne=="object"&&ne&&ne.Object===Object&&ne,Pr=xr,kr=Pr,Nr=typeof self=="object"&&self&&self.Object===Object&&self,Dr=kr||Nr||Function("return this")(),De=Dr,$r=De,Ir=function(){return $r.Date.now()},Lr=Ir,Fr=/\s/;function Ar(r){for(var n=r.length;n--&&Fr.test(r.charAt(n)););return n}var zr=Ar,Wr=zr,Mr=/^\s+/;function Vr(r){return r&&r.slice(0,Wr(r)+1).replace(Mr,"")}var qr=Vr,Yr=De,Br=Yr.Symbol,$e=Br,Ie=$e,Le=Object.prototype,Ur=Le.hasOwnProperty,Gr=Le.toString,H=Ie?Ie.toStringTag:void 0;function Jr(r){var n=Ur.call(r,H),i=r[H];try{r[H]=void 0;var o=!0}catch{}var l=Gr.call(r);return o&&(n?r[H]=i:delete r[H]),l}var Xr=Jr,Hr=Object.prototype,Kr=Hr.toString;function Zr(r){return Kr.call(r)}var Qr=Zr,Fe=$e,et=Xr,rt=Qr,tt="[object Null]",nt="[object Undefined]",Ae=Fe?Fe.toStringTag:void 0;function at(r){return r==null?r===void 0?nt:tt:Ae&&Ae in Object(r)?et(r):rt(r)}var it=at;function ot(r){return r!=null&&typeof r=="object"}var st=ot,lt=it,ct=st,ut="[object Symbol]";function ft(r){return typeof r=="symbol"||ct(r)&<(r)==ut}var dt=ft,gt=qr,ze=de,pt=dt,We=0/0,vt=/^[-+]0x[0-9a-f]+$/i,_t=/^0b[01]+$/i,mt=/^0o[0-7]+$/i,yt=parseInt;function bt(r){if(typeof r=="number")return r;if(pt(r))return We;if(ze(r)){var n=typeof r.valueOf=="function"?r.valueOf():r;r=ze(n)?n+"":n}if(typeof r!="string")return r===0?r:+r;r=gt(r);var i=_t.test(r);return i||mt.test(r)?yt(r.slice(2),i?2:8):vt.test(r)?We:+r}var ht=bt,St=de,ge=Lr,Me=ht,Tt="Expected a function",Rt=Math.max,Et=Math.min;function jt(r,n,i){var o,l,m,p,d,c,y=0,b=!1,h=!1,O=!0;if(typeof r!="function")throw new TypeError(Tt);n=Me(n)||0,St(i)&&(b=!!i.leading,h="maxWait"in i,m=h?Rt(Me(i.maxWait)||0,n):m,O="trailing"in i?!!i.trailing:O);function P(R){var D=o,W=l;return o=l=void 0,y=R,p=r.apply(W,D),p}function q(R){return y=R,d=setTimeout(w,n),b?P(R):p}function Y(R){var D=R-c,W=R-y,Z=n-D;return h?Et(Z,m-W):Z}function B(R){var D=R-c,W=R-y;return c===void 0||D>=n||D<0||h&&W>=m}function w(){var R=ge();if(B(R))return T(R);d=setTimeout(w,Y(R))}function T(R){return d=void 0,O&&o?P(R):(o=l=void 0,p)}function me(){d!==void 0&&clearTimeout(d),y=0,o=c=l=d=void 0}function ye(){return d===void 0?p:T(ge())}function K(){var R=ge(),D=B(R);if(o=arguments,l=this,c=R,D){if(d===void 0)return q(c);if(h)return clearTimeout(d),d=setTimeout(w,n),P(c)}return d===void 0&&(d=setTimeout(w,n)),p}return K.cancel=me,K.flush=ye,K}var Ot=jt,wt=Ot,Ct=de,xt="Expected a function";function Pt(r,n,i){var o=!0,l=!0;if(typeof r!="function")throw new TypeError(xt);return Ct(i)&&(o="leading"in i?!!i.leading:o,l="trailing"in i?!!i.trailing:l),wt(r,n,{leading:o,maxWait:n,trailing:l})}var kt=Pt;const Nt=jr(kt),Ve={icon:"_icon_awnbf_2",thin:"_thin_awnbf_25",light:"_light_awnbf_29",regular:"_regular_awnbf_33",solid:"_solid_awnbf_37",duotone:"_duotone_awnbf_41",sharpSolid:"_sharpSolid_awnbf_52",sharpRegular:"_sharpRegular_awnbf_56",sharpLight:"_sharpLight_awnbf_60",brand:"_brand_awnbf_64"};var qe=(r=>(r.thin="thin",r.light="light",r.regular="regular",r.solid="solid",r.duotone="duotone",r.sharpSolid="sharpSolid",r.sharpRegular="sharpRegular",r.sharpLight="sharpLight",r.brand="brand",r))(qe||{}),pe=(r=>(r[r.mini=12]="mini",r[r.default=18]="default",r[r.large=24]="large",r))(pe||{});const ae=x.forwardRef((r,n)=>{const{className:i,code:o,type:l="light",size:m}=r,p=m?`${typeof m=="number"?m:pe[m]}px`:void 0,d=V(Ve.icon,l&&Ve[l],i);return S.jsx("span",{className:d,ref:n,style:{"--iconSize":p},"data-content":xe(o)})});ae.displayName="Icon";const ve={progressBar:"_progressBar_luf46_1",progress:"_progress_luf46_1",intermediate:"_intermediate_luf46_31",barberPole:"_barberPole_luf46_1"},_e=x.forwardRef((r,n)=>{const{className:i,progress:o=100,intermediate:l=!1}=r,m=l?150:Math.min(Math.max(o,0),100),p=V(ve.progressBar,l&&ve.intermediate,i);return S.jsx("div",{className:p,ref:n,children:S.jsx("span",{className:ve.progress,style:{width:`${m}%`}})})});_e.displayName="ProgressBar";const N={button:"_button_6uqr8_1",label:"_label_6uqr8_17",icon:"_icon_6uqr8_23",underline:"_underline_6uqr8_26",primaryType:"_primaryType_6uqr8_49",primaryDangerType:"_primaryDangerType_6uqr8_49",secondaryType:"_secondaryType_6uqr8_54",secondaryDangerType:"_secondaryDangerType_6uqr8_54",linkType:"_linkType_6uqr8_59",linkDangerType:"_linkDangerType_6uqr8_59",miniSize:"_miniSize_6uqr8_88",iconOnly:"_iconOnly_6uqr8_99",defaultSize:"_defaultSize_6uqr8_106",largeSize:"_largeSize_6uqr8_124",clicked:"_clicked_6uqr8_157",ripple:"_ripple_6uqr8_1",loading:"_loading_6uqr8_166",barberPole:"_barberPole_6uqr8_1",spin:"_spin_6uqr8_1"};var ie=(r=>(r.primary="primary",r.primaryDanger="primaryDanger",r.secondary="secondary",r.secondaryDanger="secondaryDanger",r.link="link",r.linkDanger="linkDanger",r))(ie||{});const Ye=100;let Be;const Ue=x.forwardRef((r,n)=>{const{className:i,label:o,type:l="primary",size:m="default",disabled:p=!1,loading:d=!1,icon:c,iconType:y,iconPosition:b="left",onClick:h}=r,O=x.useRef(null),P=Nt(()=>{var w;clearTimeout(Be),(w=O.current)==null||w.classList.add(N.clicked),Be=window.setTimeout(()=>{var T;(T=O.current)==null||T.classList.remove(N.clicked)},600+Ye)},Ye),q=w=>{h==null||h(w),l.includes(ie.link)||P()},Y=()=>c?S.jsx(ae,{className:N.icon,code:c,type:y,size:m}):null,B=V(N.button,N[`${l}Type`],N[`${m}Size`],!o&&N.iconOnly,d&&N.loading,i);return!o&&!c?null:S.jsxs("button",{className:B,ref:we([O,n]),onClick:q,disabled:p,children:[l.includes(ie.link)&&S.jsx(_e,{className:N.underline,intermediate:d}),b==="left"&&S.jsx(Y,{}),o&&S.jsx("span",{className:N.label,children:o}),b==="right"&&S.jsx(Y,{})]})});Ue.displayName="Button";const L={textfield:"_textfield_7y99a_1",icon:"_icon_7y99a_27",input:"_input_7y99a_36",placeholder:"_placeholder_7y99a_49",withIcon:"_withIcon_7y99a_73",textarea:"_textarea_7y99a_83",hasValue:"_hasValue_7y99a_92"},Ge=x.forwardRef((r,n)=>{const{className:i,type:o="text",textarea:l,placeholder:m,autoComplete:p="off",autoFocus:d,icon:c,iconType:y="regular",value:b,onChange:h}=r,O=x.useMemo(()=>{if(l===!0)return null;if(c)return c;if(o==="number")return"23";if(o==="search")return"f002";if(o==="password")return"f30d"},[l,c,o]),P=V(L.textfield,O&&L.withIcon,l&&L.textarea,b&&L.hasValue,i);return S.jsxs("div",{className:P,ref:n,children:[!!O&&!l&&S.jsx(ae,{className:L.icon,code:O,type:y}),l?S.jsx("textarea",{className:L.input,autoFocus:d,autoComplete:p,value:b,onChange:h}):S.jsx("input",{className:L.input,type:o,autoFocus:d,autoComplete:p,value:b,onChange:h}),S.jsx("span",{className:L.placeholder,children:m})]})});Ge.displayName="Textfield";const F={sider:"_sider_9guyz_1",leftSiderContainer:"_leftSiderContainer_9guyz_13",rightSiderContainer:"_rightSiderContainer_9guyz_20",content:"_content_9guyz_27",miniLeftSider:"_miniLeftSider_9guyz_37",miniRightSider:"_miniRightSider_9guyz_44",leftOpen:"_leftOpen_9guyz_51",rightOpen:"_rightOpen_9guyz_57"},Je=x.forwardRef((r,n)=>{const{className:i,children:o,leftSider:l,showMiniLeftSider:m=!0,rightSider:p,showMiniRightSider:d=!1,open:c="closed"}=r,y=V(F.sider,c==="left"&&F.leftOpen,m&&F.miniLeftSider,c==="right"&&F.rightOpen,d&&F.miniRightSider,i);return S.jsxs("section",{className:y,ref:n,role:"sider",children:[S.jsx("div",{className:F.leftSiderContainer,children:l}),S.jsx("div",{className:F.rightSiderContainer,children:p}),S.jsx("div",{className:F.content,children:o})]})});Je.displayName="Sider";const z={navigation:"_navigation_zrgjp_1",brand:"_brand_zrgjp_9",routeList:"_routeList_zrgjp_18",route:"_route_zrgjp_18",icon:"_icon_zrgjp_59",label:"_label_zrgjp_65",active:"_active_zrgjp_77"},Xe=x.forwardRef((r,n)=>{const{className:i,Routes:o}=r,l=V(z.navigation,i);return S.jsxs("section",{className:l,ref:n,role:"navigation",children:[S.jsx("div",{className:z.brand,children:"🎲 XtremeUI"}),S.jsx("div",{className:z.routeList,children:!!o&&S.jsx(o,{className:z.route,activeClassName:z.active,iconClassName:z.icon,labelClassName:z.label})})]})});Xe.displayName="Navigation",v.Button=Ue,v.EButtonTypes=ie,v.EIconSize=pe,v.EIconType=qe,v.Icon=ae,v.Navigation=Xe,v.ProgressBar=_e,v.Sider=Je,v.Textfield=Ge,v.dom=A,v.elementObserver=Er,v.getCssProperty=te,v.getCssPropertyPx=br,v.getCssPropertyVh=hr,v.getCssPropertyVw=Sr,v.isClient=re,v.mergeRefs=we,v.safeStringFromCodePoint=Ce,v.setCssProperty=Tr,v.unicodeToString=xe,v.waitForElement=Rr,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
|