xtreme-ui 0.0.10 → 0.0.12
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.
|
@@ -6,9 +6,10 @@ export type TSiderProps = {
|
|
|
6
6
|
showMiniLeftSider?: boolean;
|
|
7
7
|
rightSider?: ReactNode;
|
|
8
8
|
showMiniRightSider?: boolean;
|
|
9
|
-
open?:
|
|
9
|
+
open?: TSiderModes;
|
|
10
10
|
setOpen?: (open: boolean) => void;
|
|
11
11
|
};
|
|
12
|
+
export type TSiderModes = keyof typeof EOpenModes;
|
|
12
13
|
declare enum EOpenModes {
|
|
13
14
|
left = "left",
|
|
14
15
|
right = "right",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Sider/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Sider/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAClC,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,UAAU,CAAC;AAClD,aAAK,UAAU;IACd,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;CACjB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export * from './utils/index';
|
|
2
2
|
export { Button } from './components/base/Button/Button';
|
|
3
|
-
export type
|
|
3
|
+
export { type TButtonProps, EButtonTypes } from './components/base/Button/types';
|
|
4
4
|
export { Icon } from './components/base/Icon/Icon';
|
|
5
|
-
export type
|
|
5
|
+
export { type IIconProps, type EIconType, EIconSize } from './components/base/Icon/types';
|
|
6
6
|
export { ProgressBar } from './components/base/ProgressBar/ProgressBar';
|
|
7
|
-
export type
|
|
7
|
+
export { type IProgressBarProps } from './components/base/ProgressBar/types';
|
|
8
8
|
export { Textfield } from './components/base/Textfield/Textfield';
|
|
9
|
-
export type
|
|
9
|
+
export { type TTextfieldProps } from './components/base/Textfield/types';
|
|
10
10
|
export { Sider } from './components/layout/Sider/Sider';
|
|
11
|
-
export type
|
|
11
|
+
export { type TSiderProps, type TSiderModes } from './components/layout/Sider/types';
|
|
12
12
|
export { Navigation } from './components/layout/Navigation/Navigation';
|
|
13
|
-
export type
|
|
13
|
+
export { type TNavigationProps, type TNavigationRoute } from './components/layout/Navigation/types';
|
package/dist/index.es.js
CHANGED
|
@@ -1020,6 +1020,8 @@ const Xn = "_navigation_zrgjp_1", Hn = "_brand_zrgjp_9", Kn = "_routeList_zrgjp_
|
|
|
1020
1020
|
ta.displayName = "Navigation";
|
|
1021
1021
|
export {
|
|
1022
1022
|
kn as Button,
|
|
1023
|
+
be as EButtonTypes,
|
|
1024
|
+
lr as EIconSize,
|
|
1023
1025
|
Re as Icon,
|
|
1024
1026
|
ta as Navigation,
|
|
1025
1027
|
ur as ProgressBar,
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(_=typeof globalThis<"u"?globalThis:_||self,x(_.XtremeUI={},_.require$$0))})(this,function(_,x){"use strict";const on="",re=typeof window<"u",A=re?window:void 0,te=(r,n)=>re?getComputedStyle((n==null?void 0:n.current)||document.documentElement).getPropertyValue(r):"",yr=(r,n)=>parseInt(te(r,n).replace(/px/g,"")),br=(r,n)=>{const i=parseInt(te(r,n).replace(/vh/g,""));return[((A==null?void 0:A.innerHeight)??0)*i/100,i]},hr=(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):"",Sr=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})}),Rr=(r,n)=>{var i;(i=n==null?void 0:n.forEach)==null||i.call(n,o=>{let l;new MutationObserver(g=>{var c;document.querySelector(o)&&(l=document.querySelector(o)),(c=g==null?void 0:g.forEach)==null||c.call(g,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 Er(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 jr(){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 g(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=g,J.jsxs=g,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 Or(){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"),g=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 S(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,p=s.getStackAddendum();p!==""&&(t+="%s",a=a.concat([p]));var v=a.map(function(f){return String(f)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var ye=!1,K=!1,R=!1,D=!1,W=!1,Z;Z=Symbol.for("react.module.reference");function Nt(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===g||e.$$typeof===d||e.$$typeof===c||e.$$typeof===Z||e.getModuleId!==void 0))}function Dt(e,t,a){var s=e.displayName;if(s)return s;var p=t.displayName||t.name||"";return p!==""?a+"("+p+")":a}function Xe(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&S("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 Xe(t)+".Consumer";case g:var a=e;return Xe(a._context)+".Provider";case c:return Dt(e,e.render,"ForwardRef");case h:var s=e.displayName||null;return s!==null?s:$(e.type)||"Memo";case O:{var p=e,v=p._payload,f=p._init;try{return $(f(v))}catch{return null}}}return null}var M=Object.assign,Q=0,He,Ke,Ze,Qe,er,rr,tr;function nr(){}nr.__reactDisabledLog=!0;function $t(){{if(Q===0){He=console.log,Ke=console.info,Ze=console.warn,Qe=console.error,er=console.group,rr=console.groupCollapsed,tr=console.groupEnd;var e={configurable:!0,enumerable:!0,value:nr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Q++}}function It(){{if(Q--,Q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:He}),info:M({},e,{value:Ke}),warn:M({},e,{value:Ze}),error:M({},e,{value:Qe}),group:M({},e,{value:er}),groupCollapsed:M({},e,{value:rr}),groupEnd:M({},e,{value:tr})})}Q<0&&S("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(p){var s=p.stack.trim().match(/\n( *(at )?)/);he=s&&s[1]||""}return`
|
|
18
|
+
`+he+e}}var Te=!1,se;{var Ft=typeof WeakMap=="function"?WeakMap:Map;se=new Ft}function ar(e,t){if(!e||Te)return"";{var a=se.get(e);if(a!==void 0)return a}var s;Te=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=be.current,be.current=null,$t();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{Te=!1,be.current=v,It(),Error.prepareStackTrace=p}var G=e?e.displayName||e.name:"",mr=G?oe(G):"";return typeof e=="function"&&se.set(e,mr),mr}function Lt(e,t,a){return ar(e,!1)}function At(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function le(e,t,a){if(e==null)return"";if(typeof e=="function")return ar(e,At(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 Lt(e.render);case h:return le(e.type,t,a);case O:{var s=e,p=s._payload,v=s._init;try{return le(v(p),t,a)}catch{}}}return""}var ce=Object.prototype.hasOwnProperty,ir={},or=w.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,a=le(e.type,e._source,t?t.type:null);or.setExtraStackFrame(a)}else or.setExtraStackFrame(null)}function zt(e,t,a,s,p){{var v=Function.call.bind(ce);for(var f in e)if(v(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(p),S("%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 ir)&&(ir[u.message]=!0,ue(p),S("Failed %s type: %s",a,u.message),ue(null))}}}var Wt=Array.isArray;function Se(e){return Wt(e)}function Mt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,a=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Vt(e){try{return sr(e),!1}catch{return!0}}function sr(e){return""+e}function lr(e){if(Vt(e))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mt(e)),sr(e)}var ee=w.ReactCurrentOwner,qt={key:!0,ref:!0,__self:!0,__source:!0},cr,ur,Re;Re={};function Yt(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 Bt(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 Ut(e,t){if(typeof e.ref=="string"&&ee.current&&t&&ee.current.stateNode!==t){var a=$(ee.current.type);Re[a]||(S('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 Gt(e,t){{var a=function(){cr||(cr=!0,S("%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 Jt(e,t){{var a=function(){ur||(ur=!0,S("%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 Xt=function(e,t,a,s,p,v,f){var u={$$typeof:n,type:e,key:t,ref:a,props:f,_owner:v};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:p}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Ht(e,t,a,s,p){{var v,f={},u=null,C=null;a!==void 0&&(lr(a),u=""+a),Bt(t)&&(lr(t.key),u=""+t.key),Yt(t)&&(C=t.ref,Ut(t,p));for(v in t)ce.call(t,v)&&!qt.hasOwnProperty(v)&&(f[v]=t[v]);if(e&&e.defaultProps){var E=e.defaultProps;for(v in E)f[v]===void 0&&(f[v]=E[v])}if(u||C){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&Gt(f,j),C&&Jt(f,j)}return Xt(e,u,C,p,s,ee.current,f)}}var Ee=w.ReactCurrentOwner,fr=w.ReactDebugCurrentFrame;function U(e){if(e){var t=e._owner,a=le(e.type,e._source,t?t.type:null);fr.setExtraStackFrame(a)}else fr.setExtraStackFrame(null)}var je;je=!1;function Oe(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function dr(){{if(Ee.current){var e=$(Ee.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function Kt(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
|
|
24
24
|
|
|
25
25
|
Check your code at `+t+":"+a+"."}return""}}var pr={};function Zt(e){{var t=dr();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 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!==Ee.current&&(s=" It was passed a child from "+$(e._owner.type)+"."),U(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),U(null)}}function vr(e,t){{if(typeof e!="object")return;if(Se(e))for(var a=0;a<e.length;a++){var s=e[a];Oe(s)&&gr(s,t)}else if(Oe(e))e._store&&(e._store.validated=!0);else if(e){var p=B(e);if(typeof p=="function"&&p!==e.entries)for(var v=p.call(e),f;!(f=v.next()).done;)Oe(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);zt(a,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!je){je=!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"){U(e),S("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),S("Invalid attribute `ref` supplied to `React.Fragment`."),U(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":Se(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(Se(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"?fe.exports=jr():fe.exports=Or();var T=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 wr(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var de=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")(),De=Nr,Dr=De,$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,zr=Ar,Wr=/^\s+/;function Mr(r){return r&&r.slice(0,zr(r)+1).replace(Wr,"")}var Vr=Mr,qr=De,Yr=qr.Symbol,$e=Yr,Ie=$e,Fe=Object.prototype,Br=Fe.hasOwnProperty,Ur=Fe.toString,H=Ie?Ie.toStringTag:void 0;function Gr(r){var n=Br.call(r,H),i=r[H];try{r[H]=void 0;var o=!0}catch{}var l=Ur.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,Le=$e,Qr=Jr,et=Zr,rt="[object Null]",tt="[object Undefined]",Ae=Le?Le.toStringTag:void 0;function nt(r){return r==null?r===void 0?tt:rt:Ae&&Ae 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,ze=de,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(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=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=de,pe=Ir,Me=bt,Tt="Expected a function",St=Math.max,Rt=Math.min;function Et(r,n,i){var o,l,m,g,d,c,y=0,b=!1,h=!1,O=!0;if(typeof r!="function")throw new TypeError(Tt);n=Me(n)||0,ht(i)&&(b=!!i.leading,h="maxWait"in i,m=h?St(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,g=r.apply(W,D),g}function q(R){return y=R,d=setTimeout(w,n),b?P(R):g}function Y(R){var D=R-c,W=R-y,Z=n-D;return h?Rt(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=pe();if(B(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 me(){d!==void 0&&clearTimeout(d),y=0,o=c=l=d=void 0}function ye(){return d===void 0?g:S(pe())}function K(){var R=pe(),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)),g}return K.cancel=me,K.flush=ye,K}var jt=Et,Ot=jt,wt=de,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),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 ge=(r=>(r[r.mini=12]="mini",r[r.default=18]="default",r[r.large=24]="large",r))(ge||{});const ae=x.forwardRef((r,n)=>{const{className:i,code:o,type:l="light",size:m}=r,g=m?`${typeof m=="number"?m:ge[m]}px`:void 0,d=V(Ve.icon,l&&Ve[l],i);return T.jsx("span",{className:d,ref:n,style:{"--iconSize":g},"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),g=V(ve.progressBar,l&&ve.intermediate,i);return T.jsx("div",{className:g,ref:n,children:T.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 qe=100;let Ye;const Be=x.forwardRef((r,n)=>{const{className:i,label:o,type:l="primary",size:m="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(ie.link)||P()},Y=()=>c?T.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:T.jsxs("button",{className:B,ref:we([O,n]),onClick:q,disabled:g,children:[l.includes(ie.link)&&T.jsx(_e,{className:N.underline,intermediate:d}),b==="left"&&T.jsx(Y,{}),o&&T.jsx("span",{className:N.label,children:o}),b==="right"&&T.jsx(Y,{})]})});Be.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"},Ue=x.forwardRef((r,n)=>{const{className:i,type:o="text",textarea:l,placeholder:m,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:m})]})});Ue.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:m=!0,rightSider:g,showMiniRightSider:d=!1,open:c="closed"}=r,y=V(L.sider,c==="left"&&L.leftOpen,m&&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 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"},Je=x.forwardRef((r,n)=>{const{className:i,Routes:o}=r,l=V(z.navigation,i);return T.jsxs("section",{className:l,ref:n,role:"navigation",children:[T.jsx("div",{className:z.brand,children:"🎲 XtremeUI"}),T.jsx("div",{className:z.routeList,children:!!o&&T.jsx(o,{className:z.route,activeClassName:z.active,iconClassName:z.icon,labelClassName:z.label})})]})});Je.displayName="Navigation",_.Button=Be,_.EButtonTypes=ie,_.EIconSize=ge,_.Icon=ae,_.Navigation=Je,_.ProgressBar=_e,_.Sider=Ge,_.Textfield=Ue,_.dom=A,_.elementObserver=Rr,_.getCssProperty=te,_.getCssPropertyPx=yr,_.getCssPropertyVh=br,_.getCssPropertyVw=hr,_.isClient=re,_.mergeRefs=we,_.safeStringFromCodePoint=Ce,_.setCssProperty=Tr,_.unicodeToString=xe,_.waitForElement=Sr,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|