UNPKG

@richaadgigi/stylexui

Version:

Build responsive, beautiful interfaces faster than ever with utility-first classes and smart defaults. No bloat. No fuss. Just results.

1 lines 20.6 kB
let findElementWithAttribute=(e,t)=>{for(;e;){if(e.hasAttribute(t))return e;e=e.parentElement}return null},isHidden=e=>{var t;return!e||(t=window.getComputedStyle(e),"none"===e.style.display)||null===e.offsetParent||"hidden"===t.visibility||"0"===t.opacity||"inset(0 0 100% 0)"===t.clipPath||"scale(0)"===t.transform||0===parseInt(t.maxHeight)},xuiLoadingScreen=()=>{let e=document.querySelector(".xui-loader"),t=(null!==e&&(e.style.display="flex"),setInterval(()=>{"complete"===document.readyState&&(clearInterval(t),setTimeout(()=>{null!==e&&(e.style.display="none")},1e3))},100))},xuiHideSkeleton=e=>{setTimeout(function(){if(void 0!==e){var t=document.querySelectorAll(e+" .xui--skeleton"),i=document.querySelectorAll(e+" .xui--skeleton-btn-small");for(let e=0;e<t.length;e++)t[e].classList.add("hidden");for(let e=0;e<i.length;e++)i[e].classList.add("hidden")}else{var r=document.querySelectorAll(".xui--skeleton"),o=document.querySelectorAll(".xui--skeleton-btn-small");for(let e=0;e<r.length;e++)r[e].classList.add("hidden");for(let e=0;e<o.length;e++)o[e].classList.add("hidden")}},2500)},xuiAlerts=()=>{let r=document.querySelectorAll(".xui-alert .xui-alert-close, .xui-alert .cancel");for(var e=0;e<r.length;e++)r[e].addEventListener("click",(i=>function(){let e=r[i].closest(".xui-alert");var t;e.classList.contains("xui-anime")?null!==(t=e.getAttribute("xui-anime-duration"))&&""!==t?(e.style.transition=t+"s",e.classList.remove("xui-anime"),setTimeout(()=>{e.style.transition=""},Number(1e3*t))):(e.style.transition="1s",e.classList.remove("xui-anime"),setTimeout(()=>{e.style.transition=""},1e3)):e.removeAttribute("xui-present")})(e))},xuiLazyLoadings=()=>{{let e=document.querySelectorAll("[xui-bg-img]"),t=0,i=function(){e.forEach(e=>{var t=e.getBoundingClientRect();"undefined"!=typeof window&&t.top<=window.innerHeight&&0<=t.bottom&&e.getAttribute("xui-bg-img")&&(t=e.getAttribute("xui-bg-img"))&&(e.style.backgroundImage=`url('${t}')`,e.onload=function(){e.removeAttribute("xui-bg-img")})}),(t=Array.from(e).filter(e=>null===e.getAttribute("xui-bg-img")).length)===e.length&&"undefined"!=typeof window&&window.removeEventListener("scroll",i)};"undefined"!=typeof window&&window.addEventListener("scroll",i),(r=document.querySelector(".xui-dashboard .screen .content"))&&r.addEventListener("scroll",i),i()}{let e=document.querySelectorAll("[xui-img-src]"),t=0,i=function(){e.forEach(e=>{var t=e.getBoundingClientRect();"undefined"!=typeof window&&t.top<=window.innerHeight&&0<=t.bottom&&e.getAttribute("xui-img-src")&&(t=e.getAttribute("xui-img-src"))&&(e.src=t,e.onload=function(){e.removeAttribute("xui-img-src")})}),(t=Array.from(e).filter(e=>null===e.getAttribute("xui-img-src")).length)===e.length&&"undefined"!=typeof window&&window.removeEventListener("scroll",i)};var r;"undefined"!=typeof window&&window.addEventListener("scroll",i),(r=document.querySelector(".xui-dashboard .screen .content"))&&r.addEventListener("scroll",i),i()}},xuiAnime=e=>{if(void 0!==e){let i=document.querySelector(`[xui-custom="${e}"], [xui-anime="${e}"]`);if(null!==i){i.getAttribute("xui-placed")||i.getAttribute("xui-set");let t=i.getAttribute("xui-anime-reverse");e=i.getAttribute("xui-anime-duration");setTimeout(()=>{null!==i&&i.classList.add("xui-anime")}),setTimeout(()=>{var e;null!=t?(e=1e3*Number(t),setTimeout(()=>{null!==i&&i.classList.remove("xui-anime")},e)):setTimeout(()=>{null!==i&&i.classList.remove("xui-anime")},3e3)},Number(e?e+240:3e3))}}else console.warn("xuiAnime() is missing a parameter")},xuiAnimeStart=t=>{if(void 0!==t){let e=document.querySelector(`[xui-custom="${t}"], [xui-anime="${t}"]`);null!==e&&(e.getAttribute("xui-anime-duration"),setTimeout(()=>{null!==e&&e.classList.add("xui-anime")}))}else console.warn("xui.animate() is missing a parameter")},xuiAnimeEnd=t=>{if(void 0!==t){let e=document.querySelector(`[xui-custom="${t}"], [xui-anime="${t}"]`);null!==e&&(null!==(t=e.getAttribute("xui-anime-duration"))&&""!==t&&Number(t),e.classList.remove("xui-anime"),setTimeout(()=>{null!==e&&e.removeAttribute("xui-present")}))}else console.warn("xui.animateEnd() is missing a parameter")},xuiTypeWriter=e=>{let i=e.words,u=e.duration,n=e.target,s=e.delay;e=e.cursor;if(void 0===i&&(i=["Hello friend 👋. This is a default text from XUI. I hope you're enjoying this","It can be changed as well! Just like this."],console.warn('XUI Typewriter: We didn\'t find "words" parameter in your object')),u,"number"!=typeof u&&(u=1e3),s,"number"!=typeof s&&(s=1e3),void 0!==n)if(l=document.querySelector('.xui-effect-typewriter[xui-effect-typewriter="'+n+'"]')){l.innerHTML=l.innerHTML+'<span class="xui-effect-typewriter-content"></span>',void 0!==e&&e&&(l.innerHTML=l.innerHTML+'<span class="xui-effect-typewriter-cursor"></span>');var l=document.querySelector('.xui-effect-typewriter[xui-effect-typewriter="'+n+'"] span.xui-effect-typewriter-content'),d=i;let o=(e,t,i)=>{0<=t?(null!==l&&(l.innerHTML=e.substring(0,t--)),Math.random(),setTimeout(function(){o(e,t,i)},u)):"function"==typeof i&&setTimeout(i,u)},a=(e,t,i)=>{var r;1<d.length?t<e.length+1?(null!==l&&(l.innerHTML=e.substring(0,t++)),Math.random(),setTimeout(function(){a(e,t++,i)},u)):t===e.length+1&&setTimeout(function(){o(e,t,i)},s):t<e.length+1?(null!==l&&(l.innerHTML=e.substring(0,t++)),Math.random(),setTimeout(function(){a(e,t++,i)},u)):t===e.length+1&&(null!==(r=document.querySelector('.xui-effect-typewriter[xui-effect-typewriter="'+n+'"]'))&&r.classList.add("xui-effect-typewriter-ready"),null!==(r=document.querySelector('.xui-effect-typewriter[xui-effect-typewriter="'+n+'"] span.xui-effect-typewriter-cursor')))&&(r.style.display="none")},t=e=>{void 0===d[e]?setTimeout(function(){t(0)},s):e<d[e].length+1&&(d.length,a(d[e],0,function(){t(e+1)}))};setTimeout(function(){t(0)},s)}else console.error('[xui-effect-typewriter="'+n+'"] not found');else console.error("No target found in xui.effect.typewriter(obj)")},xuiScrollOnAnimation=()=>{var e=document.querySelector("body");if(null!==e&&(e.classList.contains("xui-aos")&&null!==(e=document.querySelector('meta[name="viewport"]'))&&e.setAttribute("content","width=device-width, initial-scale=1 maximum-scale=1.0, user-scalable=no"),"IntersectionObserver"in window))for(var t,i,r=(e,o,t)=>{let a=new IntersectionObserver(function(i){if("undefined"!=typeof window){var r=window.outerWidth;let e,t;576<r&&r<768?(0===(e=i[0].target.getAttribute("xui-sm-aos-duration"))&&(e=i[0].target.getAttribute("xui-aos-duration")),0===(t=Number(1e3*i[0].target.getAttribute("xui-sm-aos-delay")))&&(t=Number(1e3*i[0].target.getAttribute("xui-aos-delay")))):768<r&&r<992?(0===(e=i[0].target.getAttribute("xui-md-aos-duration"))&&0===(e=i[0].target.getAttribute("xui-sm-aos-duration"))&&(e=i[0].target.getAttribute("xui-aos-duration")),0===(t=Number(1e3*i[0].target.getAttribute("xui-md-aos-delay")))&&0===(t=Number(1e3*i[0].target.getAttribute("xui-sm-aos-delay")))&&(t=Number(1e3*i[0].target.getAttribute("xui-aos-delay")))):992<r&&r<1200?(0===(e=i[0].target.getAttribute("xui-lg-aos-duration"))&&0===(e=i[0].target.getAttribute("xui-md-aos-duration"))&&0===(e=i[0].target.getAttribute("xui-sm-aos-duration"))&&(e=i[0].target.getAttribute("xui-aos-duration")),0===(t=Number(1e3*i[0].target.getAttribute("xui-lg-aos-delay")))&&0===(t=Number(1e3*i[0].target.getAttribute("xui-md-aos-delay")))&&0===(t=Number(1e3*i[0].target.getAttribute("xui-sm-aos-delay")))&&(t=Number(1e3*i[0].target.getAttribute("xui-aos-delay")))):1200<r?(0===(e=i[0].target.getAttribute("xui-xl-aos-duration"))&&0===(e=i[0].target.getAttribute("xui-lg-aos-duration"))&&0===(e=i[0].target.getAttribute("xui-md-aos-duration"))&&0===(e=i[0].target.getAttribute("xui-sm-aos-duration"))&&(e=i[0].target.getAttribute("xui-aos-duration")),0===(t=Number(1e3*i[0].target.getAttribute("xui-xl-aos-delay")))&&0===(t=Number(1e3*i[0].target.getAttribute("xui-lg-aos-delay")))&&0===(t=Number(1e3*i[0].target.getAttribute("xui-md-aos-delay")))&&0===(t=Number(1e3*i[0].target.getAttribute("xui-sm-aos-delay")))&&(t=Number(1e3*i[0].target.getAttribute("xui-aos-delay")))):(e=i[0].target.getAttribute("xui-aos-duration"),t=Number(1e3*i[0].target.getAttribute("xui-aos-delay"))),null!==e?(i[0].target.style.animationDuration=e+"s",i[0].target.style.transition=e+"s"):(i[0].target.style.animationDuration=".5s",i[0].target.style.transition=".5s"),!0===i[0].isIntersecting?(null!==t?setTimeout(()=>{i[0].target.classList.add("xui-aos-animate")},t):i[0].target.classList.add("xui-aos-animate"),o&&a.unobserve(i[0].target)):i[0].target.classList.remove("xui-aos-animate")}},{rootMargin:t,threshold:0});a.observe(e)},o=document.querySelectorAll("[xui-aos]"),a=0;a<o.length;a++)"undefined"!=typeof window&&(576<(i=window.outerWidth)&&i<768?0===(t=Number(o[a].getAttribute("xui-sm-aos-offset")))&&(t=Number(o[a].getAttribute("xui-aos-offset"))):768<i&&i<992?0===(t=Number(o[a].getAttribute("xui-md-aos-offset")))&&0===(t=Number(o[a].getAttribute("xui-sm-aos-offset")))&&(t=Number(o[a].getAttribute("xui-aos-offset"))):992<i&&i<1200?0===(t=Number(o[a].getAttribute("xui-lg-aos-offset")))&&0===(t=Number(o[a].getAttribute("xui-md-aos-offset")))&&0===(t=Number(o[a].getAttribute("xui-sm-aos-offset")))&&(t=Number(o[a].getAttribute("xui-aos-offset"))):1200<i?0===(t=Number(o[a].getAttribute("xui-xl-aos-offset")))&&0===(t=Number(o[a].getAttribute("xui-lg-aos-offset")))&&0===(t=Number(o[a].getAttribute("xui-md-aos-offset")))&&0===(t=Number(o[a].getAttribute("xui-sm-aos-offset")))&&(t=Number(o[a].getAttribute("xui-aos-offset"))):t=o[a].getAttribute("xui-aos-offset"),i=o[a].hasAttribute("xui-aos-once"),r(o[a],i,null!==t?"0px 0px -"+t+"%":"0px 0px -5%"))},xuiModalShow=e=>{e=document.querySelector('[xui-modal="'+e+'"]');null!==e&&(e.hasAttribute("xui-present")?(e.removeAttribute("xui-present"),e.offsetWidth,e.setAttribute("xui-present",!0)):(e.removeAttribute("display"),e.offsetWidth,e.setAttribute("display",!0)))},xuiModalHide=e=>{e=document.querySelector('[xui-modal="'+e+'"]');null!==e&&(e.hasAttribute("xui-present")?(e.removeAttribute("xui-present"),e.offsetWidth,e.setAttribute("xui-present",!1)):(e.removeAttribute("display"),e.offsetWidth,e.setAttribute("display",!1)))},xuiModalOpen=e=>{e=document.querySelector('[xui-modal="'+e+'"]');null!==e&&(e.hasAttribute("xui-present")?(e.removeAttribute("xui-present"),e.offsetWidth,e.setAttribute("xui-present",!0)):(e.removeAttribute("display"),e.offsetWidth,e.setAttribute("display",!0)))},xuiModalClose=e=>{e=document.querySelector('[xui-modal="'+e+'"]');null!==e&&(e.hasAttribute("xui-present")?(e.removeAttribute("xui-present"),e.offsetWidth,e.setAttribute("xui-present",!1)):(e.removeAttribute("display"),e.offsetWidth,e.setAttribute("display",!1)))},xuiDynamicCSS=()=>{let n={styleId:"xui-dynamic-css-styles",propertyMap:{"xui-bg":"background-color","xui-bg-img":"background-image","xui-text":"color","xui-img":"max-width","xui-column-count":"column-count","xui-column-count-gap":"column-gap","xui-m":"margin","xui-mt":"margin-top","xui-mr":"margin-right","xui-mb":"margin-bottom","xui-ml":"margin-left","xui-mx":["margin-left","margin-right"],"xui-my":["margin-top","margin-bottom"],"xui-p":"padding","xui-pt":"padding-top","xui-pr":"padding-right","xui-pb":"padding-bottom","xui-pl":"padding-left","xui-px":["padding-left","padding-right"],"xui-py":["padding-top","padding-bottom"],"xui-space":"letter-spacing","xui-bdr-rad":"border-radius","xui-bdr-w":"border-width","xui-bdr":"border-color","xui-z-index":"z-index","xui-min-w":"min-width","xui-min-h":"min-height","xui-max-w":"max-width","xui-max-h":"max-height","xui-font-w":"font-weight","xui-font-sz":"font-size","xui-opacity":"opacity","xui-w":"width","xui-h":"height","xui-line-height":"line-height","xui-letter-spacing":"letter-spacing","xui-grid-gap":"grid-gap","xui-flex-grow":"flex-grow","xui-flex-shrink":"flex-shrink"},responsiveMap:{"xui-sm":"(min-width: 640px)","xui-md":"(min-width: 768px)","xui-lg":"(min-width: 1024px)","xui-xl":"(min-width: 1280px)"}},i=null,u=new Set;let s=e=>{var t=e.match(/xui-(sm|md|lg|xl)?-?([a-z-]+)?-\[([^\]]+)\]/);if(!t)return null;var[,t,i,r]=t,o=(i?n.propertyMap["xui-"+i]:null)||(i?null:"font-size");if(!o)return console.warn("No property mapping found for: "+i),null;i=r.trim().endsWith("!");let a=r.trim().replace(/!$/,"");r="."+e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1");let u=i?" !important":"";r+=` { ${i=o,Array.isArray(i)?i.map(e=>e+": "+a+u).join("; "):i+": "+a+u}; }`;return t&&n.responsiveMap["xui-"+t]?{rule:`@media ${n.responsiveMap["xui-"+t]} { ${r} }`,selectorClass:e}:{rule:r,selectorClass:e}},t=()=>{if(i){let a={base:[],sm:[],md:[],lg:[],xl:[]};document.querySelectorAll('[class*="xui-"]').forEach(o=>{o.className.split(/\s+/).forEach(e=>{var t,i,r;e.startsWith("xui-")&&(t=s(e))&&t.rule&&({selectorClass:i,rule:r}=t,o.classList.contains(i)||o.classList.add(i),u.has(i)||(e.startsWith("xui-xl-")?a.xl:e.startsWith("xui-lg-")?a.lg:e.startsWith("xui-md-")?a.md:e.startsWith("xui-sm-")?a.sm:a.base).push(t))})}),["base","sm","md","lg","xl"].forEach(e=>{a[e].forEach(({rule:e,selectorClass:t})=>{if(!u.has(t))try{i.sheet?i.sheet.insertRule(e,i.sheet.cssRules.length):i.textContent+=e+"\n",u.add(t)}catch(e){console.error(`Error inserting rule for ${t}:`,e)}})})}},e=()=>{!document.head||((i=document.getElementById(n.styleId))||((i=document.createElement("style")).id=n.styleId,document.head.appendChild(i)),0)?setTimeout(e,50):(t(),new MutationObserver(e=>{let r=!1;e.forEach(e=>{var t,i;"attributes"===e.type&&"class"===e.attributeName&&(t=e.oldValue?e.oldValue.split(/\s+/):[],i=e.target.className.split(/\s+/),t=t.some(e=>e.startsWith("xui-")),i=i.some(e=>e.startsWith("xui-")),t||i)&&(r=!0),e.addedNodes&&e.addedNodes.forEach(e=>{1===e.nodeType&&(e.classList?.value.includes("xui-")||e.querySelector?.('[class*="xui-"]'))&&(r=!0)})}),r&&t()}).observe(document.body,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["class"],attributeOldValue:!0}))};return e(),{refresh:t,destroy:()=>{i?.parentNode&&i.parentNode.removeChild(i),u.clear()}}},setupEventListeners=()=>{document.querySelectorAll(".xui-tilt-card").forEach(r=>{r.addEventListener("mousemove",e=>{var t=r.getBoundingClientRect(),i=(e.clientX-t.left)/t.width-.5;r.style.transform=`rotateX(${45*((e.clientY-t.top)/t.height-.5)}deg) rotateY(${-45*i}deg)`}),r.addEventListener("mouseleave",()=>{r.style.transform="rotateX(0deg) rotateY(0deg)"})}),document.addEventListener("click",t=>{if(0<document.getElementsByClassName("xui-navbar").length){var i=document.querySelector(".xui-navbar .menu"),r=document.querySelector(".xui-navbar .links .main");document.querySelectorAll(".xui-navbar .links a");t.target.closest(".xui-navbar .menu")&&(t.target&&t.target.classList.contains("animate")?(r&&r.classList.remove("animate"),i.classList.remove("animate")):(r&&r.classList.add("animate"),i.classList.add("animate")));let e=t.target;e.closest(".xui-navbar .links .main a")&&"#"!==(o=e.getAttribute("href"))&&""!==o&&(null!==i&&i.classList.remove("animate"),null!==r)&&r.classList.remove("animate")}var o=document.querySelector(".xui-dashboard"),i=document.querySelector(".xui-dashboard .menu"),r=(t.target.closest(".xui-dashboard .menu")&&(t.target&&t.target.classList.contains("animate")?(o&&o.classList.remove("animate"),i.classList.remove("animate")):(o&&o.classList.add("animate"),i.classList.add("animate"))),t.target===o&&t.target&&t.target.classList.contains("animate")&&(o&&o.classList.remove("animate"),i.classList.remove("animate")),t.target),a=(r.closest(".xui-dashboard .navigator .links a")&&"#"!==(r=r.getAttribute("href"))&&""!==r&&(o.classList.remove("animate"),i.classList.remove("animate")),document.querySelectorAll("[xui-modal]")),u=t.target.getAttribute("xui-modal");if(t.target.hasAttribute("xui-modal")){for(let e=0;e<a.length;e++){var n=a[e];n.hasAttribute("disable-click-on-outside")||u===n.getAttribute("xui-modal")&&(n.hasAttribute("xui-set")?(n.removeAttribute("xui-present"),n.removeAttribute("display"),n.offsetWidth,n.setAttribute("xui-present",!1)):n.hasAttribute("display")&&(n.removeAttribute("xui-present"),n.removeAttribute("display"),n.offsetWidth,n.setAttribute("display",!1)))}var r=document.querySelector("body");null!==r&&(r.style.overflow="auto")}let e=t.target,s=e.getAttribute("xui-modal-open"),l=e.getAttribute("xui-modal-close");s||(o=findElementWithAttribute(e,"xui-modal-open"))&&(s=o.getAttribute("xui-modal-open")),l||(i=findElementWithAttribute(e,"xui-modal-close"))&&(l=i.getAttribute("xui-modal-close")),null!==s&&(null!==(r=document.querySelector('[xui-modal="'+s+'"]'))&&(r.hasAttribute("xui-present")?(r.removeAttribute("xui-present"),r.offsetWidth,r.setAttribute("xui-present",!0)):(r.removeAttribute("display"),r.offsetWidth,r.setAttribute("display",!0))),null!==(o=document.querySelector("body")))&&(o.style.overflow="hidden"),null!==l&&(null!==(i=document.querySelector('[xui-modal="'+l+'"]'))&&(i.hasAttribute("xui-present")?(i.removeAttribute("xui-present"),i.offsetWidth,i.setAttribute("xui-present",!1)):(i.removeAttribute("display"),i.offsetWidth,i.setAttribute("display",!1))),null!==(r=document.querySelector("body")))&&(r.style.overflow="auto");var d,o=Array.from(document.querySelectorAll(".xui-accordion-box .xui-accordion-header, .xui-accordion .box .header")),m=(t.target.closest(".xui-accordion-box .xui-accordion-header, .xui-accordion .box .header")&&(i=t.target.closest(".xui-accordion-box .xui-accordion-header, .xui-accordion .box .header"),r=o.indexOf(i),o=i.querySelector(".xui-accordion-header-icon-open, .xui-accordion .header .icon .open"),i=i.querySelector(".xui-accordion-header-icon-close, .xui-accordion .header .icon .close"),d=(r=(m=document.querySelectorAll(".xui-accordion-box .xui-accordion-content, .xui-accordion .box .content"))[r]).style.maxHeight&&"0px"!==r.style.maxHeight,m.forEach(e=>{e.style.maxHeight="0",e.style.marginBottom="0"}),document.querySelectorAll(".xui-accordion-header-icon-open, .xui-accordion .header .icon .open").forEach(e=>{e.style.display="inline-block"}),document.querySelectorAll(".xui-accordion-header-icon-close, .xui-accordion .header .icon .close").forEach(e=>{e.style.display="none"}),d||(r.style.maxHeight=r.scrollHeight+"px",r.style.marginBottom="20px",o&&(o.style.display="none"),i&&(i.style.display="inline-block"))),Array.from(document.querySelectorAll(".link-box.dropdown")),t.target.closest(".link-box.dropdown")),o=(m&&(d=m.querySelector(".dropdown-box"),"0px"!==(r=window.getComputedStyle(d)).maxHeight&&"none"!==r.maxHeight?(d.style.maxHeight="0",m.classList.remove("focus")):(d.style.maxHeight=d.scrollHeight+8+"px",m.classList.add("focus"))),document.querySelector(".xui-dashboard .screen"));t.target.closest(".xui-dashboard [xui-aside-open]")&&o.setAttribute("xui-aside","true"),t.target.closest(".xui-dashboard [xui-aside-close]")&&o.setAttribute("xui-aside","false")})},isApplied=!1,appliedComponents=new Set,applyComponent=(t,e)=>{if(!appliedComponents.has(t)){appliedComponents.add(t);try{e()}catch(e){console.error(`Failed to initialize ${t}:`,e)}}},apply=()=>{var e;isApplied||(e=()=>{isApplied=!0,applyComponent("dynamicCSS",xuiDynamicCSS),applyComponent("loadingScreen",xuiLoadingScreen),applyComponent("alerts",xuiAlerts),applyComponent("lazyLoad",xuiLazyLoadings),applyComponent("scrollAnimation",xuiScrollOnAnimation),setupEventListeners()},"complete"===document.readyState||"interactive"===document.readyState?e():document.addEventListener("DOMContentLoaded",e))};function xuiRun(){apply()}let stylexui={run:apply,apply:apply,control:{navbar:()=>{},loader:xuiLoadingScreen},animate:{default:xuiAnime,start:xuiAnimeStart,end:xuiAnimeEnd},effect:{typewriter:xuiTypeWriter},reveal:{images:xuiLazyLoadings,skeletons:xuiHideSkeleton},modal:{show:xuiModalShow,hide:xuiModalHide,open:xuiModalOpen,close:xuiModalClose}};export default stylexui;if("undefined"!=typeof window&&(window.stylexui=stylexui),"undefined"!=typeof window&&"undefined"!=typeof document){let e=()=>{isApplied||apply()};"complete"===document.readyState||"interactive"===document.readyState?setTimeout(e,0):document.addEventListener("DOMContentLoaded",e)}export{findElementWithAttribute,isHidden,xuiLoadingScreen as loadingScreen,xuiHideSkeleton as hideSkeleton,xuiModalShow as modalShow,xuiModalHide as modalHide,xuiModalOpen as modalOpen,xuiModalClose as modalClose,xuiAlerts as alerts,xuiLazyLoadings as lazyLoadings,xuiAnime as animate,xuiAnimeStart as animateStart,xuiAnimeEnd as animateEnd,xuiTypeWriter as typewriter,xuiScrollOnAnimation as scrollOnAnimation,xuiDynamicCSS as dynamicCSS,xuiRun as run,apply};