@yhattav/react-component-cursor
Version:
A lightweight, TypeScript-first React library for creating beautiful custom cursors with SSR support, smooth animations, and zero dependencies. Perfect for interactive websites, games, and creative applications.
2 lines • 945 B
JavaScript
;var a=Object.defineProperty;var i=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;var r=(o,n,e)=>n in o?a(o,n,{enumerable:true,configurable:true,writable:true,value:e}):o[n]=e,d=(o,n)=>{for(var e in n||(n={}))u.call(n,e)&&r(o,e,n[e]);if(i)for(var e of i(n))l.call(n,e)&&r(o,e,n[e]);return o};var c=()=>typeof window=="undefined",t=()=>typeof window!="undefined",b=()=>{if(c())return false;let o="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),s=window.innerWidth<=768||window.innerHeight<=768;return o&&(e||s)},f=(o,n)=>t()?o():n,p=()=>t()?document:null,g=()=>t()?window:null;exports.a=d;exports.b=c;exports.c=t;exports.d=b;exports.e=f;exports.f=p;exports.g=g;//# sourceMappingURL=chunk-2SU5TQC4.js.map
//# sourceMappingURL=chunk-2SU5TQC4.js.map