xtreme-ui 0.0.8 → 0.0.10
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/components/base/Button/Button.d.ts +3 -0
- package/dist/components/base/Button/types.d.ts +35 -0
- package/dist/components/base/Icon/Icon.d.ts +3 -0
- package/dist/components/base/Icon/types.d.ts +22 -0
- package/dist/components/base/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/components/base/ProgressBar/types.d.ts +6 -0
- package/dist/components/base/ProgressBar/types.d.ts.map +1 -0
- package/dist/components/base/Textfield/Textfield.d.ts +3 -0
- package/dist/components/base/Textfield/types.d.ts +68 -0
- package/dist/components/base/Textfield/types.d.ts.map +1 -0
- package/dist/components/layout/Navigation/Navigation.d.ts +3 -0
- package/dist/components/layout/Navigation/types.d.ts +12 -0
- package/dist/components/layout/Navigation/types.d.ts.map +1 -0
- package/dist/components/layout/Sider/Sider.d.ts +3 -0
- package/dist/components/layout/Sider/types.d.ts +18 -0
- package/dist/components/layout/Sider/types.d.ts.map +1 -0
- package/dist/index.d.ts +13 -221
- package/dist/index.es.js +274 -277
- package/dist/index.umd.js +8 -8
- package/dist/utils/function/mergeRefs.d.ts +2 -0
- package/dist/utils/function/string.d.ts +2 -0
- package/dist/utils/helper/domHelper.d.ts +16 -0
- package/dist/utils/index.d.ts +3 -0
- package/package.json +1 -1
- package/dist/manifest.json +0 -11
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(m,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(m=typeof globalThis<"u"?globalThis:m||self,x(m.XtremeUI={},m.require$$0))})(this,function(m,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})})},Oe=r=>n=>{r.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})},we=r=>isNaN(r)||r<0||r>1114111||Math.floor(r)!==r?"":String.fromCodePoint(r),Ce=r=>we(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 ue={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 xe;function jr(){if(xe)return J;xe=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,_={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)&&!_.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 Pe;function Or(){return Pe||(Pe=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"),_=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 U(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];_e("error",e,a)}}function _e(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 me=!1,K=!1,R=!1,D=!1,z=!1,Z;Z=Symbol.for("react.module.reference");function Nt(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===_||z||e===l||e===y||e===b||D||e===P||me||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 _: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 ye=w.ReactCurrentDispatcher,be;function ie(e,t,a){{if(be===void 0)try{throw Error()}catch(p){var s=p.stack.trim().match(/\n( *(at )?)/);be=s&&s[1]||""}return`
|
|
18
|
+
`+be+e}}var he=!1,oe;{var Ft=typeof WeakMap=="function"?WeakMap:Map;oe=new Ft}function ar(e,t){if(!e||he)return"";{var a=oe.get(e);if(a!==void 0)return a}var s;he=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=ye.current,ye.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"&&oe.set(e,k),k}while(E>=1&&j>=0);break}}}finally{he=!1,ye.current=v,It(),Error.prepareStackTrace=p}var G=e?e.displayName||e.name:"",mr=G?ie(G):"";return typeof e=="function"&&oe.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 se(e,t,a){if(e==null)return"";if(typeof e=="function")return ar(e,At(e));if(typeof e=="string")return ie(e);switch(e){case y:return ie("Suspense");case b:return ie("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Lt(e.render);case h:return se(e.type,t,a);case O:{var s=e,p=s._payload,v=s._init;try{return se(v(p),t,a)}catch{}}}return""}var le=Object.prototype.hasOwnProperty,ir={},or=w.ReactDebugCurrentFrame;function ce(e){if(e){var t=e._owner,a=se(e.type,e._source,t?t.type:null);or.setExtraStackFrame(a)}else or.setExtraStackFrame(null)}function Wt(e,t,a,s,p){{var v=Function.call.bind(le);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)&&(ce(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),ce(null)),u instanceof Error&&!(u.message in ir)&&(ir[u.message]=!0,ce(p),S("Failed %s type: %s",a,u.message),ce(null))}}}var zt=Array.isArray;function Te(e){return zt(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,Se;Se={};function Yt(e){if(le.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(le.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Bt(e,t){if(typeof e.ref=="string"&&ee.current&&t&&ee.current.stateNode!==t){var a=$(ee.current.type);Se[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),Se[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),Ut(t)&&(lr(t.key),u=""+t.key),Yt(t)&&(C=t.ref,Bt(t,p));for(v in t)le.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 Re=w.ReactCurrentOwner,fr=w.ReactDebugCurrentFrame;function B(e){if(e){var t=e._owner,a=se(e.type,e._source,t?t.type:null);fr.setExtraStackFrame(a)}else fr.setExtraStackFrame(null)}var Ee;Ee=!1;function je(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function dr(){{if(Re.current){var e=$(Re.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 Kt(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 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 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"})});
|
|
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"})});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
export declare const isClient: boolean;
|
|
3
|
+
export declare const dom: (Window & typeof globalThis) | undefined;
|
|
4
|
+
export declare const getCssProperty: (property: string, element: RefObject<HTMLElement>) => string;
|
|
5
|
+
export declare const getCssPropertyPx: (property: string, element: RefObject<HTMLElement>) => number;
|
|
6
|
+
export declare const getCssPropertyVh: (property: string, element: RefObject<HTMLElement>) => number[];
|
|
7
|
+
export declare const getCssPropertyVw: (property: string, element: RefObject<HTMLElement>) => number[];
|
|
8
|
+
export declare const setCssProperty: (property: string, value: string, element: RefObject<HTMLElement>) => void | "";
|
|
9
|
+
export declare const waitForElement: (selector: string) => Promise<HTMLElement>;
|
|
10
|
+
export declare const elementObserver: (cb: ElementObserverCallback, selectors: string[]) => void;
|
|
11
|
+
type ElementObserverCallback = (element: HTMLElement, event: keyof typeof EElementObserverEvent, record: MutationRecord) => void;
|
|
12
|
+
declare enum EElementObserverEvent {
|
|
13
|
+
added = "added",
|
|
14
|
+
removed = "removed"
|
|
15
|
+
}
|
|
16
|
+
export {};
|
package/package.json
CHANGED