xtreme-ui 0.0.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.
Files changed (46) hide show
  1. package/README.md +6 -0
  2. package/dist/components/base/Button/Button.d.ts +33 -0
  3. package/dist/components/base/Button/Button.d.ts.map +1 -0
  4. package/dist/components/base/Button/Button.stories.d.ts +57 -0
  5. package/dist/components/base/Button/Button.stories.d.ts.map +1 -0
  6. package/dist/components/base/Icon/Icon.d.ts +13 -0
  7. package/dist/components/base/Icon/Icon.d.ts.map +1 -0
  8. package/dist/components/base/Icon/Icon.stories.d.ts +38 -0
  9. package/dist/components/base/Icon/Icon.stories.d.ts.map +1 -0
  10. package/dist/components/base/ProgressBar/ProgressBar.d.ts +7 -0
  11. package/dist/components/base/ProgressBar/ProgressBar.d.ts.map +1 -0
  12. package/dist/components/base/ProgressBar/ProgressBar.stories.d.ts +33 -0
  13. package/dist/components/base/ProgressBar/ProgressBar.stories.d.ts.map +1 -0
  14. package/dist/components/base/Textfield/Textfield.d.ts +23 -0
  15. package/dist/components/base/Textfield/Textfield.d.ts.map +1 -0
  16. package/dist/components/base/Textfield/Textfield.stories.d.ts +37 -0
  17. package/dist/components/base/Textfield/Textfield.stories.d.ts.map +1 -0
  18. package/dist/components/base/Textfield/types.d.ts +47 -0
  19. package/dist/components/base/Textfield/types.d.ts.map +1 -0
  20. package/dist/components/index.d.ts +8 -0
  21. package/dist/components/index.d.ts.map +1 -0
  22. package/dist/components/layout/Navigation/Navigation.d.ts +8 -0
  23. package/dist/components/layout/Navigation/Navigation.d.ts.map +1 -0
  24. package/dist/components/layout/Navigation/Navigation.stories.d.ts +16 -0
  25. package/dist/components/layout/Navigation/Navigation.stories.d.ts.map +1 -0
  26. package/dist/components/layout/Navigation/Routes.d.ts +3 -0
  27. package/dist/components/layout/Navigation/Routes.d.ts.map +1 -0
  28. package/dist/components/layout/Navigation/types.d.ts +7 -0
  29. package/dist/components/layout/Navigation/types.d.ts.map +1 -0
  30. package/dist/components/layout/Sider/Sider.d.ts +19 -0
  31. package/dist/components/layout/Sider/Sider.d.ts.map +1 -0
  32. package/dist/components/layout/Sider/Sider.stories.d.ts +41 -0
  33. package/dist/components/layout/Sider/Sider.stories.d.ts.map +1 -0
  34. package/dist/index.d.ts +1 -0
  35. package/dist/index.es.js +1037 -0
  36. package/dist/index.umd.js +27 -0
  37. package/dist/manifest.json +11 -0
  38. package/dist/style.css +1 -0
  39. package/dist/utils/helper/domHelper.d.ts +17 -0
  40. package/dist/utils/helper/domHelper.d.ts.map +1 -0
  41. package/dist/utils/helper/fontHelper.d.ts +1 -0
  42. package/dist/utils/helper/fontHelper.d.ts.map +1 -0
  43. package/dist/utils/index.d.ts +2 -0
  44. package/dist/utils/index.d.ts.map +1 -0
  45. package/dist/vite.svg +1 -0
  46. package/package.json +97 -0
@@ -0,0 +1,27 @@
1
+ (function(h,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],F):(h=typeof globalThis<"u"?globalThis:h||self,F(h.XtremeUI={},h.require$$0))})(this,function(h,F){"use strict";const rn="",tn="",nn="",an="",re=typeof window<"u",W=re?window:void 0,te=(r,n)=>re?getComputedStyle((n==null?void 0:n.current)||document.documentElement).getPropertyValue(r):"",cr=(r,n)=>parseInt(te(r,n).replace(/px/g,"")),ur=(r,n)=>{const a=parseInt(te(r,n).replace(/vh/g,""));return[((W==null?void 0:W.innerHeight)??0)*a/100,a]},fr=(r,n)=>{const a=parseInt(te(r,n).replace(/vw/g,""));return[((W==null?void 0:W.innerWidth)??0)*a/100,a]},dr=(r,n,a)=>re?((a==null?void 0:a.current)||document.documentElement).style.setProperty(r,n):"",vr=r=>new Promise(n=>{let a=document.querySelector(r);if(a)return n(a);const o=new MutationObserver(()=>{a=document.querySelector(r),a&&(n(a),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})}),pr=(r,n)=>{var a;(a=n==null?void 0:n.forEach)==null||a.call(n,o=>{let c;new MutationObserver(g=>{var d;document.querySelector(o)&&(c=document.querySelector(o)),(d=g==null?void 0:g.forEach)==null||d.call(g,_=>{_.type==="childList"&&(Array.from(_.addedNodes).indexOf(c)>-1&&r(c,"added",_),Array.from(_.removedNodes).indexOf(c)>-1&&r(c,"removed",_))})}).observe(document.body,{childList:!0,subtree:!0})})};var ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ce={exports:{}},G={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Ee;function _r(){if(Ee)return G;Ee=1;var r=F,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function g(f,d,_){var m,y={},O=null,k=null;_!==void 0&&(O=""+_),d.key!==void 0&&(O=""+d.key),d.ref!==void 0&&(k=d.ref);for(m in d)o.call(d,m)&&!b.hasOwnProperty(m)&&(y[m]=d[m]);if(f&&f.defaultProps)for(m in d=f.defaultProps,d)y[m]===void 0&&(y[m]=d[m]);return{$$typeof:n,type:f,key:O,ref:k,props:y,_owner:c.current}}return G.Fragment=a,G.jsx=g,G.jsxs=g,G}var J={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Re;function mr(){return Re||(Re=1,process.env.NODE_ENV!=="production"&&function(){var r=F,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),M=Symbol.iterator,H="@@iterator";function N(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[H];return typeof t=="function"?t:null}var C=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];pe("error",e,i)}}function pe(e,t,i){{var s=C.ReactDebugCurrentFrame,v=s.getStackAddendum();v!==""&&(t+="%s",i=i.concat([v]));var p=i.map(function(u){return String(u)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var ge=!1,K=!1,S=!1,$=!1,B=!1,Z;Z=Symbol.for("react.module.reference");function Ct(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===b||B||e===c||e===_||e===m||$||e===k||ge||K||S||typeof e=="object"&&e!==null&&(e.$$typeof===O||e.$$typeof===y||e.$$typeof===g||e.$$typeof===f||e.$$typeof===d||e.$$typeof===Z||e.getModuleId!==void 0))}function wt(e,t,i){var s=e.displayName;if(s)return s;var v=t.displayName||t.name||"";return v!==""?i+"("+v+")":i}function ze(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 a:return"Portal";case b:return"Profiler";case c:return"StrictMode";case _:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f:var t=e;return ze(t)+".Consumer";case g:var i=e;return ze(i._context)+".Provider";case d:return wt(e,e.render,"ForwardRef");case y:var s=e.displayName||null;return s!==null?s:I(e.type)||"Memo";case O:{var v=e,p=v._payload,u=v._init;try{return I(u(p))}catch{return null}}}return null}var Y=Object.assign,Q=0,qe,Me,Be,Ye,Ve,Ue,Ge;function Je(){}Je.__reactDisabledLog=!0;function Pt(){{if(Q===0){qe=console.log,Me=console.info,Be=console.warn,Ye=console.error,Ve=console.group,Ue=console.groupCollapsed,Ge=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Je,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Q++}}function kt(){{if(Q--,Q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},e,{value:qe}),info:Y({},e,{value:Me}),warn:Y({},e,{value:Be}),error:Y({},e,{value:Ye}),group:Y({},e,{value:Ve}),groupCollapsed:Y({},e,{value:Ue}),groupEnd:Y({},e,{value:Ge})})}Q<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=C.ReactCurrentDispatcher,me;function ie(e,t,i){{if(me===void 0)try{throw Error()}catch(v){var s=v.stack.trim().match(/\n( *(at )?)/);me=s&&s[1]||""}return`
18
+ `+me+e}}var ye=!1,ae;{var $t=typeof WeakMap=="function"?WeakMap:Map;ae=new $t}function Xe(e,t){if(!e||ye)return"";{var i=ae.get(e);if(i!==void 0)return i}var s;ye=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=_e.current,_e.current=null,Pt();try{if(t){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(D){s=D}Reflect.construct(e,[],u)}else{try{u.call()}catch(D){s=D}e.call(u.prototype)}}else{try{throw Error()}catch(D){s=D}e()}}catch(D){if(D&&s&&typeof D.stack=="string"){for(var l=D.stack.split(`
19
+ `),x=s.stack.split(`
20
+ `),j=l.length-1,E=x.length-1;j>=1&&E>=0&&l[j]!==x[E];)E--;for(;j>=1&&E>=0;j--,E--)if(l[j]!==x[E]){if(j!==1||E!==1)do if(j--,E--,E<0||l[j]!==x[E]){var w=`
21
+ `+l[j].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,w),w}while(j>=1&&E>=0);break}}}finally{ye=!1,_e.current=p,kt(),Error.prepareStackTrace=v}var U=e?e.displayName||e.name:"",lr=U?ie(U):"";return typeof e=="function"&&ae.set(e,lr),lr}function Nt(e,t,i){return Xe(e,!1)}function It(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function oe(e,t,i){if(e==null)return"";if(typeof e=="function")return Xe(e,It(e));if(typeof e=="string")return ie(e);switch(e){case _:return ie("Suspense");case m:return ie("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Nt(e.render);case y:return oe(e.type,t,i);case O:{var s=e,v=s._payload,p=s._init;try{return oe(p(v),t,i)}catch{}}}return""}var se=Object.prototype.hasOwnProperty,He={},Ke=C.ReactDebugCurrentFrame;function le(e){if(e){var t=e._owner,i=oe(e.type,e._source,t?t.type:null);Ke.setExtraStackFrame(i)}else Ke.setExtraStackFrame(null)}function Dt(e,t,i,s,v){{var p=Function.call.bind(se);for(var u in e)if(p(e,u)){var l=void 0;try{if(typeof e[u]!="function"){var x=Error((s||"React class")+": "+i+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}l=e[u](t,u,s,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){l=j}l&&!(l instanceof Error)&&(le(v),R("%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",i,u,typeof l),le(null)),l instanceof Error&&!(l.message in He)&&(He[l.message]=!0,le(v),R("Failed %s type: %s",i,l.message),le(null))}}}var Ft=Array.isArray;function be(e){return Ft(e)}function At(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,i=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function Lt(e){try{return Ze(e),!1}catch{return!0}}function Ze(e){return""+e}function Qe(e){if(Lt(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",At(e)),Ze(e)}var ee=C.ReactCurrentOwner,Wt={key:!0,ref:!0,__self:!0,__source:!0},er,rr,he;he={};function zt(e){if(se.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function qt(e){if(se.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Mt(e,t){if(typeof e.ref=="string"&&ee.current&&t&&ee.current.stateNode!==t){var i=I(ee.current.type);he[i]||(R('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',I(ee.current.type),e.ref),he[i]=!0)}}function Bt(e,t){{var i=function(){er||(er=!0,R("%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))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function Yt(e,t){{var i=function(){rr||(rr=!0,R("%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))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var Vt=function(e,t,i,s,v,p,u){var l={$$typeof:n,type:e,key:t,ref:i,props:u,_owner:p};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function Ut(e,t,i,s,v){{var p,u={},l=null,x=null;i!==void 0&&(Qe(i),l=""+i),qt(t)&&(Qe(t.key),l=""+t.key),zt(t)&&(x=t.ref,Mt(t,v));for(p in t)se.call(t,p)&&!Wt.hasOwnProperty(p)&&(u[p]=t[p]);if(e&&e.defaultProps){var j=e.defaultProps;for(p in j)u[p]===void 0&&(u[p]=j[p])}if(l||x){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&Bt(u,E),x&&Yt(u,E)}return Vt(e,l,x,v,s,ee.current,u)}}var Te=C.ReactCurrentOwner,tr=C.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,i=oe(e.type,e._source,t?t.type:null);tr.setExtraStackFrame(i)}else tr.setExtraStackFrame(null)}var Se;Se=!1;function je(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function nr(){{if(Te.current){var e=I(Te.current.type);if(e)return`
22
+
23
+ Check the render method of \``+e+"`."}return""}}function Gt(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),i=e.lineNumber;return`
24
+
25
+ Check your code at `+t+":"+i+"."}return""}}var ir={};function Jt(e){{var t=nr();if(!t){var i=typeof e=="string"?e:e.displayName||e.name;i&&(t=`
26
+
27
+ Check the top-level render call using <`+i+">.")}return t}}function ar(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=Jt(t);if(ir[i])return;ir[i]=!0;var s="";e&&e._owner&&e._owner!==Te.current&&(s=" It was passed a child from "+I(e._owner.type)+"."),V(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,s),V(null)}}function or(e,t){{if(typeof e!="object")return;if(be(e))for(var i=0;i<e.length;i++){var s=e[i];je(s)&&ar(s,t)}else if(je(e))e._store&&(e._store.validated=!0);else if(e){var v=N(e);if(typeof v=="function"&&v!==e.entries)for(var p=v.call(e),u;!(u=p.next()).done;)je(u.value)&&ar(u.value,t)}}}function Xt(e){{var t=e.type;if(t==null||typeof t=="string")return;var i;if(typeof t=="function")i=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===d||t.$$typeof===y))i=t.propTypes;else return;if(i){var s=I(t);Dt(i,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!Se){Se=!0;var v=I(t);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ht(e){{for(var t=Object.keys(e.props),i=0;i<t.length;i++){var s=t[i];if(s!=="children"&&s!=="key"){V(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),V(null);break}}e.ref!==null&&(V(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}function sr(e,t,i,s,v,p){{var u=Ct(e);if(!u){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" 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=Gt(v);x?l+=x:l+=nr();var j;e===null?j="null":be(e)?j="array":e!==void 0&&e.$$typeof===n?(j="<"+(I(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,l)}var E=Ut(e,t,i,v,p);if(E==null)return E;if(u){var w=t.children;if(w!==void 0)if(s)if(be(w)){for(var U=0;U<w.length;U++)or(w[U],e);Object.freeze&&Object.freeze(w)}else R("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 or(w,e)}return e===o?Ht(E):Xt(E),E}}function Kt(e,t,i){return sr(e,t,i,!0)}function Zt(e,t,i){return sr(e,t,i,!1)}var Qt=Zt,en=Kt;J.Fragment=o,J.jsx=Qt,J.jsxs=en}()),J}process.env.NODE_ENV==="production"?ce.exports=_r():ce.exports=mr();var T=ce.exports;function Oe(r){var n,a,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]&&(a=Oe(r[n]))&&(o&&(o+=" "),o+=a);else for(n in r)r[n]&&(o&&(o+=" "),o+=n);return o}function A(){for(var r,n,a=0,o="";a<arguments.length;)(r=arguments[a++])&&(n=Oe(r))&&(o&&(o+=" "),o+=n);return o}function yr(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var ue=yr,br=typeof ne=="object"&&ne&&ne.Object===Object&&ne,hr=br,Tr=hr,Sr=typeof self=="object"&&self&&self.Object===Object&&self,jr=Tr||Sr||Function("return this")(),xe=jr,Er=xe,Rr=function(){return Er.Date.now()},Or=Rr,xr=/\s/;function Cr(r){for(var n=r.length;n--&&xr.test(r.charAt(n)););return n}var wr=Cr,Pr=wr,kr=/^\s+/;function $r(r){return r&&r.slice(0,Pr(r)+1).replace(kr,"")}var Nr=$r,Ir=xe,Dr=Ir.Symbol,Ce=Dr,we=Ce,Pe=Object.prototype,Fr=Pe.hasOwnProperty,Ar=Pe.toString,X=we?we.toStringTag:void 0;function Lr(r){var n=Fr.call(r,X),a=r[X];try{r[X]=void 0;var o=!0}catch{}var c=Ar.call(r);return o&&(n?r[X]=a:delete r[X]),c}var Wr=Lr,zr=Object.prototype,qr=zr.toString;function Mr(r){return qr.call(r)}var Br=Mr,ke=Ce,Yr=Wr,Vr=Br,Ur="[object Null]",Gr="[object Undefined]",$e=ke?ke.toStringTag:void 0;function Jr(r){return r==null?r===void 0?Gr:Ur:$e&&$e in Object(r)?Yr(r):Vr(r)}var Xr=Jr;function Hr(r){return r!=null&&typeof r=="object"}var Kr=Hr,Zr=Xr,Qr=Kr,et="[object Symbol]";function rt(r){return typeof r=="symbol"||Qr(r)&&Zr(r)==et}var tt=rt,nt=Nr,Ne=ue,it=tt,Ie=0/0,at=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,st=/^0o[0-7]+$/i,lt=parseInt;function ct(r){if(typeof r=="number")return r;if(it(r))return Ie;if(Ne(r)){var n=typeof r.valueOf=="function"?r.valueOf():r;r=Ne(n)?n+"":n}if(typeof r!="string")return r===0?r:+r;r=nt(r);var a=ot.test(r);return a||st.test(r)?lt(r.slice(2),a?2:8):at.test(r)?Ie:+r}var ut=ct,ft=ue,fe=Or,De=ut,dt="Expected a function",vt=Math.max,pt=Math.min;function gt(r,n,a){var o,c,b,g,f,d,_=0,m=!1,y=!1,O=!0;if(typeof r!="function")throw new TypeError(dt);n=De(n)||0,ft(a)&&(m=!!a.leading,y="maxWait"in a,b=y?vt(De(a.maxWait)||0,n):b,O="trailing"in a?!!a.trailing:O);function k(S){var $=o,B=c;return o=c=void 0,_=S,g=r.apply(B,$),g}function M(S){return _=S,f=setTimeout(C,n),m?k(S):g}function H(S){var $=S-d,B=S-_,Z=n-$;return y?pt(Z,b-B):Z}function N(S){var $=S-d,B=S-_;return d===void 0||$>=n||$<0||y&&B>=b}function C(){var S=fe();if(N(S))return R(S);f=setTimeout(C,H(S))}function R(S){return f=void 0,O&&o?k(S):(o=c=void 0,g)}function pe(){f!==void 0&&clearTimeout(f),_=0,o=d=c=f=void 0}function ge(){return f===void 0?g:R(fe())}function K(){var S=fe(),$=N(S);if(o=arguments,c=this,d=S,$){if(f===void 0)return M(d);if(y)return clearTimeout(f),f=setTimeout(C,n),k(d)}return f===void 0&&(f=setTimeout(C,n)),g}return K.cancel=pe,K.flush=ge,K}var _t=gt,mt=_t,yt=ue,bt="Expected a function";function ht(r,n,a){var o=!0,c=!0;if(typeof r!="function")throw new TypeError(bt);return yt(a)&&(o="leading"in a?!!a.leading:o,c="trailing"in a?!!a.trailing:c),mt(r,n,{leading:o,maxWait:n,trailing:c})}var Tt=ht;const St=gr(Tt),Fe={icon:"_icon_99rko_2",filled:"_filled_99rko_7"},de=r=>{const{className:n,name:a,size:o,filled:c}=r,b=A(Fe.icon,n,c&&Fe.filled);return T.jsx("span",{className:b,style:{fontSize:`${o}px`},children:a})},jt={mini:16,default:24,large:32},ve={progressBar:"_progressBar_luf46_1",progress:"_progress_luf46_1",intermediate:"_intermediate_luf46_31",barberPole:"_barberPole_luf46_1"},Ae=r=>{const{className:n,progress:a=100,intermediate:o=!1}=r,c=o?150:Math.min(Math.max(a,0),100),b=A(ve.progressBar,o&&ve.intermediate,n);return T.jsx("div",{className:b,children:T.jsx("span",{className:ve.progress,style:{width:`${c}%`}})})},P={button:"_button_1qj4y_1",label:"_label_1qj4y_17",icon:"_icon_1qj4y_23",filled:"_filled_1qj4y_28",underline:"_underline_1qj4y_31",primaryType:"_primaryType_1qj4y_54",primaryDangerType:"_primaryDangerType_1qj4y_54",secondaryType:"_secondaryType_1qj4y_59",secondaryDangerType:"_secondaryDangerType_1qj4y_59",linkType:"_linkType_1qj4y_64",linkDangerType:"_linkDangerType_1qj4y_64",miniSize:"_miniSize_1qj4y_93",iconOnly:"_iconOnly_1qj4y_107",defaultSize:"_defaultSize_1qj4y_114",largeSize:"_largeSize_1qj4y_135",clicked:"_clicked_1qj4y_171",ripple:"_ripple_1qj4y_1",loading:"_loading_1qj4y_180",barberPole:"_barberPole_1qj4y_1",spin:"_spin_1qj4y_1"},Le=100;let We;const Et=r=>{const{className:n,label:a,type:o="primary",size:c="default",disabled:b=!1,loading:g=!1,iconName:f,iconFilled:d=!1,iconPosition:_="left",onClick:m}=r,y=F.useRef(null),O=St(()=>{var N;clearTimeout(We),(N=y.current)==null||N.classList.add(P.clicked),We=window.setTimeout(()=>{var C;(C=y.current)==null||C.classList.remove(P.clicked)},600+Le)},Le),k=N=>{m==null||m(N),o.includes("link")||O()},M=()=>f?T.jsx(de,{className:A(P.icon,d&&P.filled),name:f,size:jt[c]}):null,H=A(P.button,P[`${o}Type`],P[`${c}Size`],!a&&P.iconOnly,g&&P.loading,n);return!a&&!f?null:T.jsxs("button",{className:H,ref:y,onClick:k,disabled:b,children:[o.includes("link")&&T.jsx(Ae,{className:P.underline,intermediate:g}),_==="left"&&T.jsx(M,{}),a&&T.jsx("span",{className:P.label,children:a}),_==="right"&&T.jsx(M,{})]})},z={textfield:"_textfield_p93uo_1",icon:"_icon_p93uo_28",filled:"_filled_p93uo_38",input:"_input_p93uo_41",textarea:"_textarea_p93uo_55",withIcon:"_withIcon_p93uo_60"},Rt=r=>{const{className:n,type:a="text",textarea:o,placeholder:c,autoComplete:b="off",autoFocus:g,iconName:f,iconFilled:d=!1,value:_,onChange:m}=r,y=F.useMemo(()=>{if(o===!0)return null;if(f)return f;if(a==="number")return"numbers";if(a==="search")return"search";if(a==="password")return"shield"},[o,f,a]),O=A(z.textfield,y&&z.withIcon,o&&z.textarea,n);return T.jsxs("div",{className:O,children:[!!y&&!o&&T.jsx(de,{className:A(z.icon,d&&z.filled),name:y,size:20,filled:d}),o?T.jsx("textarea",{className:z.input,autoFocus:g,placeholder:c,autoComplete:b,value:_,onChange:m}):T.jsx("input",{className:z.input,type:a,autoFocus:g,placeholder:c,autoComplete:b,value:_,onChange:m})]})},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"},Ot=r=>{const{className:n,children:a,leftSider:o,showMiniLeftSider:c=!0,rightSider:b,showMiniRightSider:g=!1,open:f="closed",setOpen:d}=r,_=A(L.sider,f==="left"&&L.leftOpen,c&&L.miniLeftSider,f==="right"&&L.rightOpen,g&&L.miniRightSider,n);return T.jsxs("section",{className:_,role:"sider",children:[T.jsx("div",{className:L.leftSiderContainer,children:o}),T.jsx("div",{className:L.rightSiderContainer,children:b}),T.jsx("div",{className:L.content,children:a})]})},q={navigation:"_navigation_1mgj4_1",brand:"_brand_1mgj4_9",routeList:"_routeList_1mgj4_18",route:"_route_1mgj4_18",icon:"_icon_1mgj4_59",label:"_label_1mgj4_71",active:"_active_1mgj4_83"},xt=r=>{const{className:n,Routes:a}=r,o=A(q.navigation,n);return T.jsxs("section",{className:o,role:"navigation",children:[T.jsx("div",{className:q.brand,children:"🎲 XtremeUI"}),T.jsx("div",{className:q.routeList,children:!!a&&T.jsx(a,{className:q.route,activeClassName:q.active,iconClassName:q.icon,labelClassName:q.label})})]})};h.Button=Et,h.Icon=de,h.Navigation=xt,h.ProgressBar=Ae,h.Sider=Ot,h.Textfield=Rt,h.dom=W,h.elementObserver=pr,h.getCssProperty=te,h.getCssPropertyPx=cr,h.getCssPropertyVh=ur,h.getCssPropertyVw=fr,h.isClient=re,h.setCssProperty=dr,h.waitForElement=vr,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,11 @@
1
+ {
2
+ "src/components/index.ts": {
3
+ "file": "index.umd.js",
4
+ "isEntry": true,
5
+ "src": "src/components/index.ts"
6
+ },
7
+ "style.css": {
8
+ "file": "style.css",
9
+ "src": "style.css"
10
+ }
11
+ }