telecop 0.1.36 → 0.1.39

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/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export * from './ui';
2
+ export { ScrollReveal, ZoomIn, RotateIn } from './components/Animations';
3
+ export type { ScrollAnimationProps, AnimationDirection, AnimationTrigger, AnimationEasing, BaseAnimationProps, HoverAnimationProps } from './components/Animations';
2
4
  export { TeleMotion } from './animations/react';
3
5
  export type { TeleMotionProps } from './animations/react';
4
6
  export { Animator, createAnimator, animateGroup, sequence, parallel } from './animations/core/animator';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./Container-QgggZFO5.cjs"),m=require("react/jsx-runtime"),l=require("react");class b{constructor(e){this.animation=null,this.element=e}animate(e,t={}){const{duration:r=600,delay:n=0,easing:s="ease",iterations:o=1,direction:g="normal",fill:d="both"}=t;return this.animation&&this.animation.cancel(),this.animation=this.element.animate(e,{duration:r,delay:n,easing:typeof s=="string"?s:"linear",iterations:o,direction:g,fill:d}),this.animation.finished}stop(){this.animation&&(this.animation.cancel(),this.animation=null)}pause(){this.animation&&this.animation.pause()}resume(){this.animation&&this.animation.play()}reverse(){this.animation&&this.animation.reverse()}getProgress(){return!this.animation||!this.animation.effect?0:this.animation.effect.getComputedTiming().progress||0}isRunning(){var e;return((e=this.animation)==null?void 0:e.playState)==="running"}}function W(a){return new b(a)}async function F(a,e,t={}){const r=t.stagger??0,n={duration:t.duration,delay:t.delay,easing:t.easing,iterations:t.iterations,direction:t.direction,fill:t.fill},s=a.map((o,g)=>new b(o).animate(e,{...n,delay:(n.delay||0)+r*g}));return Promise.all(s)}async function Q(a){const e=[];for(const{element:t,keyframes:r,config:n}of a){const o=await new b(t).animate(r,n);e.push(o)}return e}async function V(a){const e=a.map(({element:t,keyframes:r,config:n})=>new b(t).animate(r,n));return Promise.all(e)}const $={keyframes:[{opacity:0},{opacity:1}],config:{duration:600,easing:"ease-out",fill:"both"}},Z={keyframes:[{opacity:0,transform:"translateY(30px)"},{opacity:1,transform:"translateY(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},J={keyframes:[{opacity:0,transform:"translateY(-30px)"},{opacity:1,transform:"translateY(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},K={keyframes:[{opacity:0,transform:"translateX(-30px)"},{opacity:1,transform:"translateX(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},_={keyframes:[{opacity:0,transform:"translateX(30px)"},{opacity:1,transform:"translateX(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},aa={keyframes:[{opacity:1},{opacity:0}],config:{duration:600,easing:"ease-in",fill:"both"}},ea={keyframes:[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-30px)"}],config:{duration:800,easing:"ease-in",fill:"both"}},ta={keyframes:[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(30px)"}],config:{duration:800,easing:"ease-in",fill:"both"}},ra={keyframes:[{opacity:1,transform:"translateX(0)"},{opacity:0,transform:"translateX(-30px)"}],config:{duration:800,easing:"ease-in",fill:"both"}},na={keyframes:[{opacity:1,transform:"translateX(0)"},{opacity:0,transform:"translateX(30px)"}],config:{duration:800,easing:"ease-in",fill:"both"}},ia={keyframes:[{opacity:0,transform:"translateY(100%)"},{opacity:1,transform:"translateY(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},sa={keyframes:[{opacity:0,transform:"translateY(-100%)"},{opacity:1,transform:"translateY(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},oa={keyframes:[{opacity:0,transform:"translateX(-100%)"},{opacity:1,transform:"translateX(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},la={keyframes:[{opacity:0,transform:"translateX(100%)"},{opacity:1,transform:"translateX(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},ca={keyframes:[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-100%)"}],config:{duration:800,easing:"ease-in",fill:"both"}},ga={keyframes:[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(100%)"}],config:{duration:800,easing:"ease-in",fill:"both"}},da={keyframes:[{opacity:1,transform:"translateX(0)"},{opacity:0,transform:"translateX(-100%)"}],config:{duration:800,easing:"ease-in",fill:"both"}},fa={keyframes:[{opacity:1,transform:"translateX(0)"},{opacity:0,transform:"translateX(100%)"}],config:{duration:800,easing:"ease-in",fill:"both"}},ma={keyframes:[{opacity:0,transform:"scale(0.5)"},{opacity:1,transform:"scale(1)"}],config:{duration:600,easing:"ease-out",fill:"both"}},ua={keyframes:[{opacity:0,transform:"scale(0.5) translateY(50px)"},{opacity:1,transform:"scale(1) translateY(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},pa={keyframes:[{opacity:0,transform:"scale(0.5) translateY(-50px)"},{opacity:1,transform:"scale(1) translateY(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},ba={keyframes:[{opacity:0,transform:"scale(0.5) translateX(-50px)"},{opacity:1,transform:"scale(1) translateX(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},ya={keyframes:[{opacity:0,transform:"scale(0.5) translateX(50px)"},{opacity:1,transform:"scale(1) translateX(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},ha={keyframes:[{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.5)"}],config:{duration:600,easing:"ease-in",fill:"both"}},xa={keyframes:[{opacity:1,transform:"scale(1) translateY(0)"},{opacity:0,transform:"scale(0.5) translateY(-50px)"}],config:{duration:800,easing:"ease-in",fill:"both"}},wa={keyframes:[{opacity:1,transform:"scale(1) translateY(0)"},{opacity:0,transform:"scale(0.5) translateY(50px)"}],config:{duration:800,easing:"ease-in",fill:"both"}},ka={keyframes:[{opacity:0,transform:"scale(0)"},{opacity:1,transform:"scale(1)"}],config:{duration:1e3,easing:"ease-out",fill:"both"}},Ia={keyframes:[{opacity:0,transform:"scale(0)"},{opacity:1,transform:"scale(1.1)"},{transform:"scale(0.9)"},{transform:"scale(1)"}],config:{duration:800,easing:"ease-out",fill:"both"}},Oa={keyframes:[{opacity:0,transform:"rotate(-180deg) scale(0.5)"},{opacity:1,transform:"rotate(0deg) scale(1)"}],config:{duration:800,easing:"ease-out",fill:"both"}},va={keyframes:[{opacity:0,transform:"rotate(-45deg) translate(-50px, -50px) scale(0.5)",transformOrigin:"left bottom"},{opacity:1,transform:"rotate(0deg) translate(0, 0) scale(1)",transformOrigin:"left bottom"}],config:{duration:800,easing:"ease-out",fill:"both"}},Ya={keyframes:[{opacity:0,transform:"rotate(45deg) translate(50px, -50px) scale(0.5)",transformOrigin:"right bottom"},{opacity:1,transform:"rotate(0deg) translate(0, 0) scale(1)",transformOrigin:"right bottom"}],config:{duration:800,easing:"ease-out",fill:"both"}},Pa={keyframes:[{opacity:0,transform:"rotate(45deg) translate(-50px, 50px) scale(0.5)",transformOrigin:"left top"},{opacity:1,transform:"rotate(0deg) translate(0, 0) scale(1)",transformOrigin:"left top"}],config:{duration:800,easing:"ease-out",fill:"both"}},Xa={keyframes:[{opacity:0,transform:"rotate(-45deg) translate(50px, 50px) scale(0.5)",transformOrigin:"right top"},{opacity:1,transform:"rotate(0deg) translate(0, 0) scale(1)",transformOrigin:"right top"}],config:{duration:800,easing:"ease-out",fill:"both"}},Ma={keyframes:[{opacity:1,transform:"rotate(0deg) scale(1)"},{opacity:0,transform:"rotate(180deg) scale(0.5)"}],config:{duration:800,easing:"ease-in",fill:"both"}},Ra={keyframes:[{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],config:{duration:1e3,easing:"linear",iterations:1/0,fill:"both"}},Sa={keyframes:[{transform:"rotate(360deg)"},{transform:"rotate(0deg)"}],config:{duration:1e3,easing:"linear",iterations:1/0,fill:"both"}},Ga={keyframes:[{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],config:{duration:3e3,easing:"linear",iterations:1/0,fill:"both"}},Ba={keyframes:[{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],config:{duration:500,easing:"linear",iterations:1/0,fill:"both"}},Ca={keyframes:[{opacity:0,transform:"scale(0.3)"},{opacity:1,transform:"scale(1.05)"},{transform:"scale(0.9)"},{transform:"scale(1)"}],config:{duration:800,easing:"ease-out",fill:"both"}},za={keyframes:[{opacity:0,transform:"translateY(100%) scale(0.7)"},{opacity:1,transform:"translateY(-20px) scale(1.05)"},{transform:"translateY(10px) scale(0.95)"},{transform:"translateY(0) scale(1)"}],config:{duration:1e3,easing:"ease-out",fill:"both"}},Ea={keyframes:[{opacity:0,transform:"translateY(-100%) scale(0.7)"},{opacity:1,transform:"translateY(20px) scale(1.05)"},{transform:"translateY(-10px) scale(0.95)"},{transform:"translateY(0) scale(1)"}],config:{duration:1e3,easing:"ease-out",fill:"both"}},Da={keyframes:[{opacity:0,transform:"translateX(-100%) scale(0.7)"},{opacity:1,transform:"translateX(20px) scale(1.05)"},{transform:"translateX(-10px) scale(0.95)"},{transform:"translateX(0) scale(1)"}],config:{duration:1e3,easing:"ease-out",fill:"both"}},Ua={keyframes:[{opacity:0,transform:"translateX(100%) scale(0.7)"},{opacity:1,transform:"translateX(-20px) scale(1.05)"},{transform:"translateX(10px) scale(0.95)"},{transform:"translateX(0) scale(1)"}],config:{duration:1e3,easing:"ease-out",fill:"both"}},ja={keyframes:[{transform:"scale(1)"},{transform:"scale(1.1)"},{opacity:1,transform:"scale(0.3)"},{opacity:0,transform:"scale(0)"}],config:{duration:800,easing:"ease-in",fill:"both"}},Aa={keyframes:[{transform:"translateY(0)"},{transform:"translateY(-30px)"},{transform:"translateY(0)"}],config:{duration:600,easing:"ease-out",fill:"both"}},Na={keyframes:[{transform:"translateY(0)",offset:0},{transform:"translateY(-20px)",offset:.4},{transform:"translateY(0)",offset:.5},{transform:"translateY(-10px)",offset:.7},{transform:"translateY(0)",offset:1}],config:{duration:1e3,easing:"ease-out",iterations:1/0,fill:"both"}},La={keyframes:[{transform:"translateX(0)"},{transform:"translateX(-10px)"},{transform:"translateX(10px)"},{transform:"translateX(-10px)"},{transform:"translateX(10px)"},{transform:"translateX(0)"}],config:{duration:500,easing:"ease-in-out",fill:"both"}},qa={keyframes:[{transform:"translateY(0)"},{transform:"translateY(-10px)"},{transform:"translateY(10px)"},{transform:"translateY(-10px)"},{transform:"translateY(10px)"},{transform:"translateY(0)"}],config:{duration:500,easing:"ease-in-out",fill:"both"}},Ha={keyframes:[{transform:"scale(1)"},{transform:"scale(1.05)"},{transform:"scale(1)"}],config:{duration:500,easing:"ease-in-out",fill:"both"}},Ta={keyframes:[{transform:"scale(1)"},{transform:"scale(1.05)"},{transform:"scale(1)"}],config:{duration:1e3,easing:"ease-in-out",iterations:1/0,fill:"both"}},Wa={keyframes:[{transform:"scale(1)"},{transform:"scale(1.3)"},{transform:"scale(1)"},{transform:"scale(1.3)"},{transform:"scale(1)"}],config:{duration:1300,easing:"ease-in-out",fill:"both"}},Fa={keyframes:[{opacity:1},{opacity:0},{opacity:1},{opacity:0},{opacity:1}],config:{duration:750,easing:"linear",fill:"both"}},Qa={keyframes:[{transform:"scaleX(1) scaleY(1)"},{transform:"scaleX(1.25) scaleY(0.75)"},{transform:"scaleX(0.75) scaleY(1.25)"},{transform:"scaleX(1.15) scaleY(0.85)"},{transform:"scaleX(0.95) scaleY(1.05)"},{transform:"scaleX(1) scaleY(1)"}],config:{duration:1e3,easing:"ease-in-out",fill:"both"}},Va={keyframes:[{transform:"skewX(0deg) skewY(0deg)"},{transform:"skewX(-12.5deg) skewY(-12.5deg)"},{transform:"skewX(6.25deg) skewY(6.25deg)"},{transform:"skewX(-3.125deg) skewY(-3.125deg)"},{transform:"skewX(1.5625deg) skewY(1.5625deg)"},{transform:"skewX(0deg) skewY(0deg)"}],config:{duration:1e3,easing:"ease-in-out",fill:"both"}},$a={keyframes:[{transform:"rotate(0deg)",transformOrigin:"top center"},{transform:"rotate(15deg)",transformOrigin:"top center"},{transform:"rotate(-10deg)",transformOrigin:"top center"},{transform:"rotate(5deg)",transformOrigin:"top center"},{transform:"rotate(-5deg)",transformOrigin:"top center"},{transform:"rotate(0deg)",transformOrigin:"top center"}],config:{duration:1e3,easing:"ease-in-out",fill:"both"}},Za={keyframes:[{transform:"translateX(0%) rotate(0deg)"},{transform:"translateX(-25%) rotate(-5deg)"},{transform:"translateX(20%) rotate(3deg)"},{transform:"translateX(-15%) rotate(-3deg)"},{transform:"translateX(10%) rotate(2deg)"},{transform:"translateX(-5%) rotate(-1deg)"},{transform:"translateX(0%) rotate(0deg)"}],config:{duration:1e3,easing:"ease-in-out",fill:"both"}},Ja={keyframes:[{transform:"scale(1) rotate(0deg)"},{transform:"scale(0.9) rotate(-3deg)"},{transform:"scale(0.9) rotate(-3deg)"},{transform:"scale(1.1) rotate(3deg)"},{transform:"scale(1.1) rotate(-3deg)"},{transform:"scale(1.1) rotate(3deg)"},{transform:"scale(1.1) rotate(-3deg)"},{transform:"scale(1.1) rotate(3deg)"},{transform:"scale(1.1) rotate(-3deg)"},{transform:"scale(1) rotate(0deg)"}],config:{duration:1e3,easing:"ease-in-out",fill:"both"}},Ka={keyframes:[{width:"0",opacity:0},{width:"0",opacity:1,offset:.01},{width:"100%",opacity:1}],config:{duration:2e3,easing:"steps(40, end)"}},_a={keyframes:[{transform:"translate(0)",offset:0},{transform:"translate(-2px, 2px)",offset:.2},{transform:"translate(-2px, -2px)",offset:.4},{transform:"translate(2px, 2px)",offset:.6},{transform:"translate(2px, -2px)",offset:.8},{transform:"translate(0)",offset:1}],config:{duration:500,easing:"linear"}},ae={keyframes:[{transform:"translateY(0)",offset:0},{transform:"translateY(-10px)",offset:.5},{transform:"translateY(0)",offset:1}],config:{duration:600,easing:"ease-in-out"}},ee={keyframes:[{filter:"blur(12px)",opacity:0},{filter:"blur(0)",opacity:1}],config:{duration:800,easing:"ease-out"}},te={keyframes:[{letterSpacing:"-0.5em",opacity:0},{letterSpacing:"-0.5em",opacity:.6,offset:.4},{letterSpacing:"normal",opacity:1}],config:{duration:700,easing:"cubic-bezier(0.215, 0.610, 0.355, 1.000)"}},re={keyframes:[{letterSpacing:"normal",opacity:1},{letterSpacing:"0em",opacity:.6,offset:.5},{letterSpacing:"-0.5em",opacity:0}],config:{duration:700,easing:"cubic-bezier(0.550, 0.085, 0.680, 0.530)"}},ne={keyframes:[{filter:"blur(12px)",opacity:0},{filter:"blur(0)",opacity:1}],config:{duration:800,easing:"cubic-bezier(0.550, 0.085, 0.680, 0.530)"}},ie={keyframes:[{textShadow:"0 0 #555, 0 0 #555, 0 0 #555, 0 0 #555"},{textShadow:"1px 1px #555, 2px 2px #555, 3px 3px #555, 4px 4px #555"}],config:{duration:600,easing:"ease-out"}},se={keyframes:[{opacity:1,offset:0},{opacity:1,offset:.4199},{opacity:0,offset:.42},{opacity:0,offset:.43},{opacity:1,offset:.4301},{opacity:1,offset:.4799},{opacity:0,offset:.48},{opacity:0,offset:.49},{opacity:1,offset:.4901},{opacity:1,offset:1}],config:{duration:1e3,easing:"linear"}},oe={keyframes:[{transform:"scale(0)",transformOrigin:"50% 50%",opacity:0},{transform:"scale(1)",transformOrigin:"50% 50%",opacity:1}],config:{duration:500,easing:"cubic-bezier(0.250, 0.460, 0.450, 0.940)"}},le={keyframes:[{transform:"rotate(-360deg)",opacity:0},{transform:"rotate(0)",opacity:1}],config:{duration:600,easing:"ease-out"}},ce={keyframes:[{transform:"scale(0.5)",opacity:0},{transform:"scale(1)",opacity:1}],config:{duration:400,easing:"cubic-bezier(0.390, 0.575, 0.565, 1.000)"}},ge={keyframes:[{transform:"translateX(0) rotate(0)",offset:0},{transform:"translateX(-25px) rotate(-5deg)",offset:.15},{transform:"translateX(20px) rotate(3deg)",offset:.3},{transform:"translateX(-15px) rotate(-3deg)",offset:.45},{transform:"translateX(10px) rotate(2deg)",offset:.6},{transform:"translateX(-5px) rotate(-1deg)",offset:.75},{transform:"translateX(0) rotate(0)",offset:1}],config:{duration:1e3,easing:"ease-in-out"}},de={keyframes:[{transform:"rotateX(-100deg)",transformOrigin:"top",opacity:0},{transform:"rotateX(0deg)",transformOrigin:"top",opacity:1}],config:{duration:600,easing:"cubic-bezier(0.175, 0.885, 0.320, 1.275)"}},fe={keyframes:[{transform:"translateX(-1000px) scaleX(2.5) scaleY(0.2)",filter:"blur(40px)",opacity:0},{transform:"translateX(0) scaleY(1) scaleX(1)",filter:"blur(0)",opacity:1}],config:{duration:800,easing:"cubic-bezier(0.230, 1.000, 0.320, 1.000)"}},me={keyframes:[{transform:"scale(1) translateX(0) translateY(0)"},{transform:"scale(1.2) translateX(15px) translateY(15px)"}],config:{duration:5e3,easing:"ease-out"}},h={fadeIn:$,fadeInUp:Z,fadeInDown:J,fadeInLeft:K,fadeInRight:_,fadeOut:aa,fadeOutUp:ea,fadeOutDown:ta,fadeOutLeft:ra,fadeOutRight:na,slideInUp:ia,slideInDown:sa,slideInLeft:oa,slideInRight:la,slideOutUp:ca,slideOutDown:ga,slideOutLeft:da,slideOutRight:fa,zoomIn:ma,zoomInUp:ua,zoomInDown:pa,zoomInLeft:ba,zoomInRight:ya,zoomOut:ha,zoomOutUp:xa,zoomOutDown:wa,zoomInBig:ka,zoomInBounce:Ia,rotateIn:Oa,rotateInUpLeft:va,rotateInUpRight:Ya,rotateInDownLeft:Pa,rotateInDownRight:Xa,rotateOut:Ma,spin:Ra,spinReverse:Sa,spinSlow:Ga,spinFast:Ba,bounceIn:Ca,bounceInUp:za,bounceInDown:Ea,bounceInLeft:Da,bounceInRight:Ua,bounceOut:ja,bounce:Aa,bounceLoop:Na,shake:La,shakeY:qa,pulse:Ha,pulseLoop:Ta,heartbeat:Wa,flash:Fa,rubberBand:Qa,jello:Va,swing:$a,wobble:Za,tada:Ja,typing:Ka,glitch:_a,waveText:ae,blurIn:ee,trackingInExpand:te,trackingOutContract:re,focusIn:ne,textShadowPop:ie,flicker:se,textPopUp:oe,textRotateIn:le,textScaleUp:ce,textWobble:ge,swingInTop:de,slideInBlurred:fe,kenburns:me};function ue(a){return h[a]}function D(){return Object.keys(h)}function pe(a){return a==="text"?["typing","glitch","waveText","blurIn","trackingInExpand","trackingOutContract","focusIn","textShadowPop","flicker","textPopUp","textRotateIn","textScaleUp","textWobble","swingInTop","slideInBlurred","kenburns"]:D().filter(e=>e.startsWith(a))}const U=({children:a,preset:e="fadeIn",duration:t,delay:r,easing:n,iterations:s,trigger:o="mount",threshold:g=.1,triggerOnce:d=!0,onAnimationStart:c,onAnimationEnd:f,className:w="",style:k={}})=>{const u=l.useRef(null),x=l.useRef(null),y=l.useRef(null),O=l.useRef(!1),I=async()=>{var G,B,C,z;if(!u.current||d&&O.current)return;const p=h[e];if(!p){console.warn(`[TeleMotion] Preset "${e}" not found`);return}x.current||(x.current=new b(u.current)),c==null||c();const v={...p.config,duration:t??((G=p.config)==null?void 0:G.duration),delay:r??((B=p.config)==null?void 0:B.delay),easing:n??((C=p.config)==null?void 0:C.easing),iterations:s??((z=p.config)==null?void 0:z.iterations)};try{await x.current.animate(p.keyframes,v),O.current=!0,f==null||f()}catch(T){console.error("[TeleMotion] Animation error:",T)}};l.useEffect(()=>{o==="mount"&&I()},[e,t,r,n,s]),l.useEffect(()=>{if(!(o!=="scroll"||!u.current))return y.current=new IntersectionObserver(p=>{p.forEach(v=>{v.isIntersecting&&(I(),d&&y.current&&y.current.unobserve(v.target))})},{threshold:g}),y.current.observe(u.current),()=>{y.current&&y.current.disconnect()}},[o,g,d,e]);const M=()=>{o==="hover"&&I()},R=()=>{o==="click"&&I()};return l.useEffect(()=>()=>{x.current&&x.current.stop()},[]),m.jsx("div",{ref:u,className:w,style:k,onMouseEnter:o==="hover"?M:void 0,onClick:o==="click"?R:void 0,children:a})};U.displayName="TeleMotion";function be(){const a=l.useRef(null),e=l.useRef(null),t=async(r,n)=>{a.current&&(e.current||(e.current=new b(a.current)),await e.current.animate(r,n))};return l.useEffect(()=>()=>{e.current&&e.current.stop()},[]),[a,t]}function ye(a,e){const t=l.useRef(null),r=l.useRef(null),n=async()=>{if(!t.current)return;const s=h[a];if(!s){console.warn(`[usePresetAnimation] Preset "${a}" not found`);return}r.current||(r.current=new b(t.current));const o={...s.config,...e};await r.current.animate(s.keyframes,o)};return l.useEffect(()=>{(e==null?void 0:e.trigger)!=="manual"&&n()},[a]),l.useEffect(()=>()=>{r.current&&r.current.stop()},[]),[t,n]}function he(a,e){const t=l.useRef(null),r=l.useRef(null),n=l.useRef(null),s=l.useRef(!1);return l.useEffect(()=>{if(!t.current)return;const o=h[a];if(!o){console.warn(`[useScrollAnimation] Preset "${a}" not found`);return}return r.current=new b(t.current),n.current=new IntersectionObserver(g=>{g.forEach(d=>{if(d.isIntersecting&&!s.current&&r.current){const c={...o.config,...e==null?void 0:e.config};r.current.animate(o.keyframes,c),s.current=!0,(e==null?void 0:e.triggerOnce)!==!1&&n.current&&n.current.unobserve(d.target)}})},{threshold:(e==null?void 0:e.threshold)??.1}),n.current.observe(t.current),()=>{n.current&&n.current.disconnect(),r.current&&r.current.stop()}},[a,e==null?void 0:e.threshold,e==null?void 0:e.triggerOnce]),t}function xe(a,e=100,t){const r=l.useRef(null);return[r,async()=>{if(!r.current)return;const s=h[a];if(!s)return;const g=Array.from(r.current.children).map((d,c)=>new b(d).animate(s.keyframes,{...s.config,...t,delay:((t==null?void 0:t.delay)??0)+e*c}));await Promise.all(g)}]}function we(a,e){const t=l.useRef(null),r=l.useRef(null);return[t,{onMouseEnter:async()=>{if(!t.current)return;const o=h[a];o&&(r.current||(r.current=new b(t.current)),await r.current.animate(o.keyframes,{...o.config,...e}))},onMouseLeave:()=>{r.current&&r.current.stop()}}]}function ke(a=.1){const e=l.useRef(null),[t,r]=l.useState(!1);return l.useEffect(()=>{if(!e.current)return;const n=new IntersectionObserver(s=>{s.forEach(o=>{r(o.isIntersecting)})},{threshold:a});return n.observe(e.current),()=>{n.disconnect()}},[a]),[e,t]}const j=a=>a,Ie=a=>a*a*a,Oe=a=>1-Math.pow(1-a,3),ve=a=>a<.5?4*a*a*a:1-Math.pow(-2*a+2,3)/2,Ye=a=>a*a,Pe=a=>1-(1-a)*(1-a),Xe=a=>a<.5?2*a*a:1-Math.pow(-2*a+2,2)/2,Me=a=>a*a*a*a,Re=a=>1-Math.pow(1-a,4),Se=a=>a<.5?8*a*a*a*a:1-Math.pow(-2*a+2,4)/2,Ge=a=>a*a*a*a*a,Be=a=>1-Math.pow(1-a,5),Ce=a=>a<.5?16*a*a*a*a*a:1-Math.pow(-2*a+2,5)/2,ze=a=>a===0?0:Math.pow(2,10*a-10),Ee=a=>a===1?1:1-Math.pow(2,-10*a),De=a=>a===0?0:a===1?1:a<.5?Math.pow(2,20*a-10)/2:(2-Math.pow(2,-20*a+10))/2,X=1.70158,Y=X*1.525,A=X+1,Ue=a=>A*a*a*a-X*a*a,je=a=>1+A*Math.pow(a-1,3)+X*Math.pow(a-1,2),Ae=a=>a<.5?Math.pow(2*a,2)*((Y+1)*2*a-Y)/2:(Math.pow(2*a-2,2)*((Y+1)*(a*2-2)+Y)+2)/2,N=2*Math.PI/3,E=2*Math.PI/4.5,Ne=a=>a===0?0:a===1?1:-Math.pow(2,10*a-10)*Math.sin((a*10-10.75)*N),Le=a=>a===0?0:a===1?1:Math.pow(2,-10*a)*Math.sin((a*10-.75)*N)+1,qe=a=>a===0?0:a===1?1:a<.5?-(Math.pow(2,20*a-10)*Math.sin((20*a-11.125)*E))/2:Math.pow(2,-20*a+10)*Math.sin((20*a-11.125)*E)/2+1,P=a=>a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,He=a=>1-P(1-a),Te=a=>a<.5?(1-P(1-2*a))/2:(1+P(2*a-1))/2,We=a=>1-Math.cos(a*Math.PI/2),Fe=a=>Math.sin(a*Math.PI/2),Qe=a=>-(Math.cos(Math.PI*a)-1)/2,Ve=a=>1-Math.sqrt(1-Math.pow(a,2)),$e=a=>Math.sqrt(1-Math.pow(a-1,2)),Ze=a=>a<.5?(1-Math.sqrt(1-Math.pow(2*a,2)))/2:(Math.sqrt(1-Math.pow(-2*a+2,2))+1)/2,L={linear:j,easeInCubic:Ie,easeOutCubic:Oe,easeInOutCubic:ve,easeInQuad:Ye,easeOutQuad:Pe,easeInOutQuad:Xe,easeInQuart:Me,easeOutQuart:Re,easeInOutQuart:Se,easeInQuint:Ge,easeOutQuint:Be,easeInOutQuint:Ce,easeInExpo:ze,easeOutExpo:Ee,easeInOutExpo:De,easeInBack:Ue,easeOutBack:je,easeInOutBack:Ae,easeInElastic:Ne,easeOutElastic:Le,easeInOutElastic:qe,easeInBounce:He,easeOutBounce:P,easeInOutBounce:Te,easeInSine:We,easeOutSine:Fe,easeInOutSine:Qe,easeInCirc:Ve,easeOutCirc:$e,easeInOutCirc:Ze};function Je(a){return typeof a=="function"?a:L[a]||j}function Ke(a=100,e=10,t=1){return r=>{const n=Math.sqrt(a/t),s=e/(2*Math.sqrt(a*t));if(s<1){const o=n*Math.sqrt(1-s*s);return 1-Math.exp(-s*n*r)*Math.cos(o*r)}else return 1-Math.exp(-n*r)}}function _e(a,e,t,r){return n=>{const s=3*e,o=3*(r-e)-s,g=1-s-o;return(c=>((g*c+o)*c+s)*c)(n)}}class S{constructor(){if(this.observer=null,this.elements=new Map,typeof window>"u"||!("IntersectionObserver"in window)){console.warn("IntersectionObserver not supported");return}}observe(e,t={}){const{threshold:r=.1,rootMargin:n="0px",triggerOnce:s=!1,onEnter:o,onExit:g}=t;this.elements.set(e,t),this.observer||(this.observer=new IntersectionObserver(d=>{d.forEach(c=>{var w,k;const f=this.elements.get(c.target);f&&(c.isIntersecting?((w=f.onEnter)==null||w.call(f,c),f.triggerOnce&&this.unobserve(c.target)):(k=f.onExit)==null||k.call(f,c))})},{threshold:r,rootMargin:n})),this.observer.observe(e)}unobserve(e){this.observer&&(this.observer.unobserve(e),this.elements.delete(e))}disconnect(){this.observer&&(this.observer.disconnect(),this.elements.clear(),this.observer=null)}}function q(a,e){const t=new S;return t.observe(a,e),()=>t.disconnect()}function at(a,e){const t=new S;return a.forEach(r=>t.observe(r,e)),()=>t.disconnect()}function et(a,e,t={}){return q(a,{...t,onEnter:e})}function tt(a){const e=a.getBoundingClientRect(),t=window.innerHeight,r=e.top,n=e.height,s=1-(r+n)/(t+n);return Math.max(0,Math.min(1,s))}function rt(a,e=0){const t=a.getBoundingClientRect(),r=window.innerHeight,n=window.innerWidth,s=t.top+t.height*e<=r&&t.bottom-t.height*e>=0,o=t.left+t.width*e<=n&&t.right-t.width*e>=0;return s&&o}const H=[{id:"glass-morphism",name:"Glass Morphism",gradient:`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Container-QgggZFO5.cjs"),u=require("react/jsx-runtime"),l=require("react"),H=({children:e,direction:a="up",delay:t=0,duration:r=800,threshold:n=.1,once:s=!0,className:i=""})=>{const g=l.useRef(null),[d,c]=l.useState(!1);l.useEffect(()=>{const y=new IntersectionObserver(([x])=>{x.isIntersecting?(c(!0),s&&g.current&&y.unobserve(g.current)):s||c(!1)},{threshold:n,rootMargin:"0px"});return g.current&&y.observe(g.current),()=>{g.current&&y.unobserve(g.current)}},[n,s]);const f=`scroll-fade-${a}`;return u.jsx("div",{ref:g,className:`scroll-animation ${f} ${d?"active":""} ${i}`,style:{animationDelay:`${t}ms`,animationDuration:`${r}ms`},children:e})},T=({children:e,delay:a=0,duration:t=600,threshold:r=.1,once:n=!0,className:s=""})=>{const i=l.useRef(null),[g,d]=l.useState(!1);return l.useEffect(()=>{const c=new IntersectionObserver(([f])=>{f.isIntersecting?(d(!0),n&&i.current&&c.unobserve(i.current)):n||d(!1)},{threshold:r});return i.current&&c.observe(i.current),()=>{i.current&&c.unobserve(i.current)}},[r,n]),u.jsx("div",{ref:i,className:`scroll-animation scroll-zoom-in ${g?"active":""} ${s}`,style:{animationDelay:`${a}ms`,animationDuration:`${t}ms`},children:e})},W=({children:e,delay:a=0,duration:t=800,threshold:r=.1,once:n=!0,className:s=""})=>{const i=l.useRef(null),[g,d]=l.useState(!1);return l.useEffect(()=>{const c=new IntersectionObserver(([f])=>{f.isIntersecting?(d(!0),n&&i.current&&c.unobserve(i.current)):n||d(!1)},{threshold:r});return i.current&&c.observe(i.current),()=>{i.current&&c.unobserve(i.current)}},[r,n]),u.jsx("div",{ref:i,className:`scroll-animation scroll-rotate-in ${g?"active":""} ${s}`,style:{animationDelay:`${a}ms`,animationDuration:`${t}ms`},children:e})};class b{constructor(a){this.animation=null,this.element=a}animate(a,t={}){const{duration:r=600,delay:n=0,easing:s="ease",iterations:i=1,direction:g="normal",fill:d="both"}=t;return this.animation&&this.animation.cancel(),this.animation=this.element.animate(a,{duration:r,delay:n,easing:typeof s=="string"?s:"linear",iterations:i,direction:g,fill:d}),this.animation.finished}stop(){this.animation&&(this.animation.cancel(),this.animation=null)}pause(){this.animation&&this.animation.pause()}resume(){this.animation&&this.animation.play()}reverse(){this.animation&&this.animation.reverse()}getProgress(){return!this.animation||!this.animation.effect?0:this.animation.effect.getComputedTiming().progress||0}isRunning(){var a;return((a=this.animation)==null?void 0:a.playState)==="running"}}function F(e){return new b(e)}async function Q(e,a,t={}){const r=t.stagger??0,n={duration:t.duration,delay:t.delay,easing:t.easing,iterations:t.iterations,direction:t.direction,fill:t.fill},s=e.map((i,g)=>new b(i).animate(a,{...n,delay:(n.delay||0)+r*g}));return Promise.all(s)}async function Z(e){const a=[];for(const{element:t,keyframes:r,config:n}of e){const i=await new b(t).animate(r,n);a.push(i)}return a}async function J(e){const a=e.map(({element:t,keyframes:r,config:n})=>new b(t).animate(r,n));return Promise.all(a)}const K={keyframes:[{opacity:0},{opacity:1}],config:{duration:600,easing:"ease-out",fill:"both"}},_={keyframes:[{opacity:0,transform:"translateY(30px)"},{opacity:1,transform:"translateY(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},ee={keyframes:[{opacity:0,transform:"translateY(-30px)"},{opacity:1,transform:"translateY(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},ae={keyframes:[{opacity:0,transform:"translateX(-30px)"},{opacity:1,transform:"translateX(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},te={keyframes:[{opacity:0,transform:"translateX(30px)"},{opacity:1,transform:"translateX(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},re={keyframes:[{opacity:1},{opacity:0}],config:{duration:600,easing:"ease-in",fill:"both"}},ne={keyframes:[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-30px)"}],config:{duration:800,easing:"ease-in",fill:"both"}},ie={keyframes:[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(30px)"}],config:{duration:800,easing:"ease-in",fill:"both"}},se={keyframes:[{opacity:1,transform:"translateX(0)"},{opacity:0,transform:"translateX(-30px)"}],config:{duration:800,easing:"ease-in",fill:"both"}},oe={keyframes:[{opacity:1,transform:"translateX(0)"},{opacity:0,transform:"translateX(30px)"}],config:{duration:800,easing:"ease-in",fill:"both"}},le={keyframes:[{opacity:0,transform:"translateY(100%)"},{opacity:1,transform:"translateY(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},ce={keyframes:[{opacity:0,transform:"translateY(-100%)"},{opacity:1,transform:"translateY(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},ge={keyframes:[{opacity:0,transform:"translateX(-100%)"},{opacity:1,transform:"translateX(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},de={keyframes:[{opacity:0,transform:"translateX(100%)"},{opacity:1,transform:"translateX(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},fe={keyframes:[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-100%)"}],config:{duration:800,easing:"ease-in",fill:"both"}},ue={keyframes:[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(100%)"}],config:{duration:800,easing:"ease-in",fill:"both"}},me={keyframes:[{opacity:1,transform:"translateX(0)"},{opacity:0,transform:"translateX(-100%)"}],config:{duration:800,easing:"ease-in",fill:"both"}},pe={keyframes:[{opacity:1,transform:"translateX(0)"},{opacity:0,transform:"translateX(100%)"}],config:{duration:800,easing:"ease-in",fill:"both"}},be={keyframes:[{opacity:0,transform:"scale(0.5)"},{opacity:1,transform:"scale(1)"}],config:{duration:600,easing:"ease-out",fill:"both"}},ye={keyframes:[{opacity:0,transform:"scale(0.5) translateY(50px)"},{opacity:1,transform:"scale(1) translateY(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},he={keyframes:[{opacity:0,transform:"scale(0.5) translateY(-50px)"},{opacity:1,transform:"scale(1) translateY(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},xe={keyframes:[{opacity:0,transform:"scale(0.5) translateX(-50px)"},{opacity:1,transform:"scale(1) translateX(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},we={keyframes:[{opacity:0,transform:"scale(0.5) translateX(50px)"},{opacity:1,transform:"scale(1) translateX(0)"}],config:{duration:800,easing:"ease-out",fill:"both"}},Ie={keyframes:[{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.5)"}],config:{duration:600,easing:"ease-in",fill:"both"}},ke={keyframes:[{opacity:1,transform:"scale(1) translateY(0)"},{opacity:0,transform:"scale(0.5) translateY(-50px)"}],config:{duration:800,easing:"ease-in",fill:"both"}},ve={keyframes:[{opacity:1,transform:"scale(1) translateY(0)"},{opacity:0,transform:"scale(0.5) translateY(50px)"}],config:{duration:800,easing:"ease-in",fill:"both"}},Oe={keyframes:[{opacity:0,transform:"scale(0)"},{opacity:1,transform:"scale(1)"}],config:{duration:1e3,easing:"ease-out",fill:"both"}},Re={keyframes:[{opacity:0,transform:"scale(0)"},{opacity:1,transform:"scale(1.1)"},{transform:"scale(0.9)"},{transform:"scale(1)"}],config:{duration:800,easing:"ease-out",fill:"both"}},Ye={keyframes:[{opacity:0,transform:"rotate(-180deg) scale(0.5)"},{opacity:1,transform:"rotate(0deg) scale(1)"}],config:{duration:800,easing:"ease-out",fill:"both"}},Me={keyframes:[{opacity:0,transform:"rotate(-45deg) translate(-50px, -50px) scale(0.5)",transformOrigin:"left bottom"},{opacity:1,transform:"rotate(0deg) translate(0, 0) scale(1)",transformOrigin:"left bottom"}],config:{duration:800,easing:"ease-out",fill:"both"}},Pe={keyframes:[{opacity:0,transform:"rotate(45deg) translate(50px, -50px) scale(0.5)",transformOrigin:"right bottom"},{opacity:1,transform:"rotate(0deg) translate(0, 0) scale(1)",transformOrigin:"right bottom"}],config:{duration:800,easing:"ease-out",fill:"both"}},Xe={keyframes:[{opacity:0,transform:"rotate(45deg) translate(-50px, 50px) scale(0.5)",transformOrigin:"left top"},{opacity:1,transform:"rotate(0deg) translate(0, 0) scale(1)",transformOrigin:"left top"}],config:{duration:800,easing:"ease-out",fill:"both"}},Se={keyframes:[{opacity:0,transform:"rotate(-45deg) translate(50px, 50px) scale(0.5)",transformOrigin:"right top"},{opacity:1,transform:"rotate(0deg) translate(0, 0) scale(1)",transformOrigin:"right top"}],config:{duration:800,easing:"ease-out",fill:"both"}},Ge={keyframes:[{opacity:1,transform:"rotate(0deg) scale(1)"},{opacity:0,transform:"rotate(180deg) scale(0.5)"}],config:{duration:800,easing:"ease-in",fill:"both"}},Be={keyframes:[{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],config:{duration:1e3,easing:"linear",iterations:1/0,fill:"both"}},Ce={keyframes:[{transform:"rotate(360deg)"},{transform:"rotate(0deg)"}],config:{duration:1e3,easing:"linear",iterations:1/0,fill:"both"}},ze={keyframes:[{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],config:{duration:3e3,easing:"linear",iterations:1/0,fill:"both"}},De={keyframes:[{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],config:{duration:500,easing:"linear",iterations:1/0,fill:"both"}},Ee={keyframes:[{opacity:0,transform:"scale(0.3)"},{opacity:1,transform:"scale(1.05)"},{transform:"scale(0.9)"},{transform:"scale(1)"}],config:{duration:800,easing:"ease-out",fill:"both"}},Ue={keyframes:[{opacity:0,transform:"translateY(100%) scale(0.7)"},{opacity:1,transform:"translateY(-20px) scale(1.05)"},{transform:"translateY(10px) scale(0.95)"},{transform:"translateY(0) scale(1)"}],config:{duration:1e3,easing:"ease-out",fill:"both"}},je={keyframes:[{opacity:0,transform:"translateY(-100%) scale(0.7)"},{opacity:1,transform:"translateY(20px) scale(1.05)"},{transform:"translateY(-10px) scale(0.95)"},{transform:"translateY(0) scale(1)"}],config:{duration:1e3,easing:"ease-out",fill:"both"}},Ne={keyframes:[{opacity:0,transform:"translateX(-100%) scale(0.7)"},{opacity:1,transform:"translateX(20px) scale(1.05)"},{transform:"translateX(-10px) scale(0.95)"},{transform:"translateX(0) scale(1)"}],config:{duration:1e3,easing:"ease-out",fill:"both"}},Ae={keyframes:[{opacity:0,transform:"translateX(100%) scale(0.7)"},{opacity:1,transform:"translateX(-20px) scale(1.05)"},{transform:"translateX(10px) scale(0.95)"},{transform:"translateX(0) scale(1)"}],config:{duration:1e3,easing:"ease-out",fill:"both"}},Le={keyframes:[{transform:"scale(1)"},{transform:"scale(1.1)"},{opacity:1,transform:"scale(0.3)"},{opacity:0,transform:"scale(0)"}],config:{duration:800,easing:"ease-in",fill:"both"}},$e={keyframes:[{transform:"translateY(0)"},{transform:"translateY(-30px)"},{transform:"translateY(0)"}],config:{duration:600,easing:"ease-out",fill:"both"}},qe={keyframes:[{transform:"translateY(0)",offset:0},{transform:"translateY(-20px)",offset:.4},{transform:"translateY(0)",offset:.5},{transform:"translateY(-10px)",offset:.7},{transform:"translateY(0)",offset:1}],config:{duration:1e3,easing:"ease-out",iterations:1/0,fill:"both"}},Ve={keyframes:[{transform:"translateX(0)"},{transform:"translateX(-10px)"},{transform:"translateX(10px)"},{transform:"translateX(-10px)"},{transform:"translateX(10px)"},{transform:"translateX(0)"}],config:{duration:500,easing:"ease-in-out",fill:"both"}},He={keyframes:[{transform:"translateY(0)"},{transform:"translateY(-10px)"},{transform:"translateY(10px)"},{transform:"translateY(-10px)"},{transform:"translateY(10px)"},{transform:"translateY(0)"}],config:{duration:500,easing:"ease-in-out",fill:"both"}},Te={keyframes:[{transform:"scale(1)"},{transform:"scale(1.05)"},{transform:"scale(1)"}],config:{duration:500,easing:"ease-in-out",fill:"both"}},We={keyframes:[{transform:"scale(1)"},{transform:"scale(1.05)"},{transform:"scale(1)"}],config:{duration:1e3,easing:"ease-in-out",iterations:1/0,fill:"both"}},Fe={keyframes:[{transform:"scale(1)"},{transform:"scale(1.3)"},{transform:"scale(1)"},{transform:"scale(1.3)"},{transform:"scale(1)"}],config:{duration:1300,easing:"ease-in-out",fill:"both"}},Qe={keyframes:[{opacity:1},{opacity:0},{opacity:1},{opacity:0},{opacity:1}],config:{duration:750,easing:"linear",fill:"both"}},Ze={keyframes:[{transform:"scaleX(1) scaleY(1)"},{transform:"scaleX(1.25) scaleY(0.75)"},{transform:"scaleX(0.75) scaleY(1.25)"},{transform:"scaleX(1.15) scaleY(0.85)"},{transform:"scaleX(0.95) scaleY(1.05)"},{transform:"scaleX(1) scaleY(1)"}],config:{duration:1e3,easing:"ease-in-out",fill:"both"}},Je={keyframes:[{transform:"skewX(0deg) skewY(0deg)"},{transform:"skewX(-12.5deg) skewY(-12.5deg)"},{transform:"skewX(6.25deg) skewY(6.25deg)"},{transform:"skewX(-3.125deg) skewY(-3.125deg)"},{transform:"skewX(1.5625deg) skewY(1.5625deg)"},{transform:"skewX(0deg) skewY(0deg)"}],config:{duration:1e3,easing:"ease-in-out",fill:"both"}},Ke={keyframes:[{transform:"rotate(0deg)",transformOrigin:"top center"},{transform:"rotate(15deg)",transformOrigin:"top center"},{transform:"rotate(-10deg)",transformOrigin:"top center"},{transform:"rotate(5deg)",transformOrigin:"top center"},{transform:"rotate(-5deg)",transformOrigin:"top center"},{transform:"rotate(0deg)",transformOrigin:"top center"}],config:{duration:1e3,easing:"ease-in-out",fill:"both"}},_e={keyframes:[{transform:"translateX(0%) rotate(0deg)"},{transform:"translateX(-25%) rotate(-5deg)"},{transform:"translateX(20%) rotate(3deg)"},{transform:"translateX(-15%) rotate(-3deg)"},{transform:"translateX(10%) rotate(2deg)"},{transform:"translateX(-5%) rotate(-1deg)"},{transform:"translateX(0%) rotate(0deg)"}],config:{duration:1e3,easing:"ease-in-out",fill:"both"}},ea={keyframes:[{transform:"scale(1) rotate(0deg)"},{transform:"scale(0.9) rotate(-3deg)"},{transform:"scale(0.9) rotate(-3deg)"},{transform:"scale(1.1) rotate(3deg)"},{transform:"scale(1.1) rotate(-3deg)"},{transform:"scale(1.1) rotate(3deg)"},{transform:"scale(1.1) rotate(-3deg)"},{transform:"scale(1.1) rotate(3deg)"},{transform:"scale(1.1) rotate(-3deg)"},{transform:"scale(1) rotate(0deg)"}],config:{duration:1e3,easing:"ease-in-out",fill:"both"}},aa={keyframes:[{width:"0",opacity:0},{width:"0",opacity:1,offset:.01},{width:"100%",opacity:1}],config:{duration:2e3,easing:"steps(40, end)"}},ta={keyframes:[{transform:"translate(0)",offset:0},{transform:"translate(-2px, 2px)",offset:.2},{transform:"translate(-2px, -2px)",offset:.4},{transform:"translate(2px, 2px)",offset:.6},{transform:"translate(2px, -2px)",offset:.8},{transform:"translate(0)",offset:1}],config:{duration:500,easing:"linear"}},ra={keyframes:[{transform:"translateY(0)",offset:0},{transform:"translateY(-10px)",offset:.5},{transform:"translateY(0)",offset:1}],config:{duration:600,easing:"ease-in-out"}},na={keyframes:[{filter:"blur(12px)",opacity:0},{filter:"blur(0)",opacity:1}],config:{duration:800,easing:"ease-out"}},ia={keyframes:[{letterSpacing:"-0.5em",opacity:0},{letterSpacing:"-0.5em",opacity:.6,offset:.4},{letterSpacing:"normal",opacity:1}],config:{duration:700,easing:"cubic-bezier(0.215, 0.610, 0.355, 1.000)"}},sa={keyframes:[{letterSpacing:"normal",opacity:1},{letterSpacing:"0em",opacity:.6,offset:.5},{letterSpacing:"-0.5em",opacity:0}],config:{duration:700,easing:"cubic-bezier(0.550, 0.085, 0.680, 0.530)"}},oa={keyframes:[{filter:"blur(12px)",opacity:0},{filter:"blur(0)",opacity:1}],config:{duration:800,easing:"cubic-bezier(0.550, 0.085, 0.680, 0.530)"}},la={keyframes:[{textShadow:"0 0 #555, 0 0 #555, 0 0 #555, 0 0 #555"},{textShadow:"1px 1px #555, 2px 2px #555, 3px 3px #555, 4px 4px #555"}],config:{duration:600,easing:"ease-out"}},ca={keyframes:[{opacity:1,offset:0},{opacity:1,offset:.4199},{opacity:0,offset:.42},{opacity:0,offset:.43},{opacity:1,offset:.4301},{opacity:1,offset:.4799},{opacity:0,offset:.48},{opacity:0,offset:.49},{opacity:1,offset:.4901},{opacity:1,offset:1}],config:{duration:1e3,easing:"linear"}},ga={keyframes:[{transform:"scale(0)",transformOrigin:"50% 50%",opacity:0},{transform:"scale(1)",transformOrigin:"50% 50%",opacity:1}],config:{duration:500,easing:"cubic-bezier(0.250, 0.460, 0.450, 0.940)"}},da={keyframes:[{transform:"rotate(-360deg)",opacity:0},{transform:"rotate(0)",opacity:1}],config:{duration:600,easing:"ease-out"}},fa={keyframes:[{transform:"scale(0.5)",opacity:0},{transform:"scale(1)",opacity:1}],config:{duration:400,easing:"cubic-bezier(0.390, 0.575, 0.565, 1.000)"}},ua={keyframes:[{transform:"translateX(0) rotate(0)",offset:0},{transform:"translateX(-25px) rotate(-5deg)",offset:.15},{transform:"translateX(20px) rotate(3deg)",offset:.3},{transform:"translateX(-15px) rotate(-3deg)",offset:.45},{transform:"translateX(10px) rotate(2deg)",offset:.6},{transform:"translateX(-5px) rotate(-1deg)",offset:.75},{transform:"translateX(0) rotate(0)",offset:1}],config:{duration:1e3,easing:"ease-in-out"}},ma={keyframes:[{transform:"rotateX(-100deg)",transformOrigin:"top",opacity:0},{transform:"rotateX(0deg)",transformOrigin:"top",opacity:1}],config:{duration:600,easing:"cubic-bezier(0.175, 0.885, 0.320, 1.275)"}},pa={keyframes:[{transform:"translateX(-1000px) scaleX(2.5) scaleY(0.2)",filter:"blur(40px)",opacity:0},{transform:"translateX(0) scaleY(1) scaleX(1)",filter:"blur(0)",opacity:1}],config:{duration:800,easing:"cubic-bezier(0.230, 1.000, 0.320, 1.000)"}},ba={keyframes:[{transform:"scale(1) translateX(0) translateY(0)"},{transform:"scale(1.2) translateX(15px) translateY(15px)"}],config:{duration:5e3,easing:"ease-out"}},w={fadeIn:K,fadeInUp:_,fadeInDown:ee,fadeInLeft:ae,fadeInRight:te,fadeOut:re,fadeOutUp:ne,fadeOutDown:ie,fadeOutLeft:se,fadeOutRight:oe,slideInUp:le,slideInDown:ce,slideInLeft:ge,slideInRight:de,slideOutUp:fe,slideOutDown:ue,slideOutLeft:me,slideOutRight:pe,zoomIn:be,zoomInUp:ye,zoomInDown:he,zoomInLeft:xe,zoomInRight:we,zoomOut:Ie,zoomOutUp:ke,zoomOutDown:ve,zoomInBig:Oe,zoomInBounce:Re,rotateIn:Ye,rotateInUpLeft:Me,rotateInUpRight:Pe,rotateInDownLeft:Xe,rotateInDownRight:Se,rotateOut:Ge,spin:Be,spinReverse:Ce,spinSlow:ze,spinFast:De,bounceIn:Ee,bounceInUp:Ue,bounceInDown:je,bounceInLeft:Ne,bounceInRight:Ae,bounceOut:Le,bounce:$e,bounceLoop:qe,shake:Ve,shakeY:He,pulse:Te,pulseLoop:We,heartbeat:Fe,flash:Qe,rubberBand:Ze,jello:Je,swing:Ke,wobble:_e,tada:ea,typing:aa,glitch:ta,waveText:ra,blurIn:na,trackingInExpand:ia,trackingOutContract:sa,focusIn:oa,textShadowPop:la,flicker:ca,textPopUp:ga,textRotateIn:da,textScaleUp:fa,textWobble:ua,swingInTop:ma,slideInBlurred:pa,kenburns:ba};function ya(e){return w[e]}function E(){return Object.keys(w)}function ha(e){return e==="text"?["typing","glitch","waveText","blurIn","trackingInExpand","trackingOutContract","focusIn","textShadowPop","flicker","textPopUp","textRotateIn","textScaleUp","textWobble","swingInTop","slideInBlurred","kenburns"]:E().filter(a=>a.startsWith(e))}const U=({children:e,preset:a="fadeIn",duration:t,delay:r,easing:n,iterations:s,trigger:i="mount",threshold:g=.1,triggerOnce:d=!0,onAnimationStart:c,onAnimationEnd:f,className:y="",style:x={}})=>{const m=l.useRef(null),I=l.useRef(null),h=l.useRef(null),v=l.useRef(!1),k=async()=>{var G,B,C,z;if(!m.current||d&&v.current)return;const p=w[a];if(!p){console.warn(`[TeleMotion] Preset "${a}" not found`);return}I.current||(I.current=new b(m.current)),c==null||c();const O={...p.config,duration:t??((G=p.config)==null?void 0:G.duration),delay:r??((B=p.config)==null?void 0:B.delay),easing:n??((C=p.config)==null?void 0:C.easing),iterations:s??((z=p.config)==null?void 0:z.iterations)};try{await I.current.animate(p.keyframes,O),v.current=!0,f==null||f()}catch(V){console.error("[TeleMotion] Animation error:",V)}};l.useEffect(()=>{i==="mount"&&k()},[a,t,r,n,s]),l.useEffect(()=>{if(!(i!=="scroll"||!m.current))return h.current=new IntersectionObserver(p=>{p.forEach(O=>{O.isIntersecting&&(k(),d&&h.current&&h.current.unobserve(O.target))})},{threshold:g}),h.current.observe(m.current),()=>{h.current&&h.current.disconnect()}},[i,g,d,a]);const P=()=>{i==="hover"&&k()},X=()=>{i==="click"&&k()};return l.useEffect(()=>()=>{I.current&&I.current.stop()},[]),u.jsx("div",{ref:m,className:y,style:x,onMouseEnter:i==="hover"?P:void 0,onClick:i==="click"?X:void 0,children:e})};U.displayName="TeleMotion";function xa(){const e=l.useRef(null),a=l.useRef(null),t=async(r,n)=>{e.current&&(a.current||(a.current=new b(e.current)),await a.current.animate(r,n))};return l.useEffect(()=>()=>{a.current&&a.current.stop()},[]),[e,t]}function wa(e,a){const t=l.useRef(null),r=l.useRef(null),n=async()=>{if(!t.current)return;const s=w[e];if(!s){console.warn(`[usePresetAnimation] Preset "${e}" not found`);return}r.current||(r.current=new b(t.current));const i={...s.config,...a};await r.current.animate(s.keyframes,i)};return l.useEffect(()=>{(a==null?void 0:a.trigger)!=="manual"&&n()},[e]),l.useEffect(()=>()=>{r.current&&r.current.stop()},[]),[t,n]}function Ia(e,a){const t=l.useRef(null),r=l.useRef(null),n=l.useRef(null),s=l.useRef(!1);return l.useEffect(()=>{if(!t.current)return;const i=w[e];if(!i){console.warn(`[useScrollAnimation] Preset "${e}" not found`);return}return r.current=new b(t.current),n.current=new IntersectionObserver(g=>{g.forEach(d=>{if(d.isIntersecting&&!s.current&&r.current){const c={...i.config,...a==null?void 0:a.config};r.current.animate(i.keyframes,c),s.current=!0,(a==null?void 0:a.triggerOnce)!==!1&&n.current&&n.current.unobserve(d.target)}})},{threshold:(a==null?void 0:a.threshold)??.1}),n.current.observe(t.current),()=>{n.current&&n.current.disconnect(),r.current&&r.current.stop()}},[e,a==null?void 0:a.threshold,a==null?void 0:a.triggerOnce]),t}function ka(e,a=100,t){const r=l.useRef(null);return[r,async()=>{if(!r.current)return;const s=w[e];if(!s)return;const g=Array.from(r.current.children).map((d,c)=>new b(d).animate(s.keyframes,{...s.config,...t,delay:((t==null?void 0:t.delay)??0)+a*c}));await Promise.all(g)}]}function va(e,a){const t=l.useRef(null),r=l.useRef(null);return[t,{onMouseEnter:async()=>{if(!t.current)return;const i=w[e];i&&(r.current||(r.current=new b(t.current)),await r.current.animate(i.keyframes,{...i.config,...a}))},onMouseLeave:()=>{r.current&&r.current.stop()}}]}function Oa(e=.1){const a=l.useRef(null),[t,r]=l.useState(!1);return l.useEffect(()=>{if(!a.current)return;const n=new IntersectionObserver(s=>{s.forEach(i=>{r(i.isIntersecting)})},{threshold:e});return n.observe(a.current),()=>{n.disconnect()}},[e]),[a,t]}const j=e=>e,Ra=e=>e*e*e,Ya=e=>1-Math.pow(1-e,3),Ma=e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,Pa=e=>e*e,Xa=e=>1-(1-e)*(1-e),Sa=e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,Ga=e=>e*e*e*e,Ba=e=>1-Math.pow(1-e,4),Ca=e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,za=e=>e*e*e*e*e,Da=e=>1-Math.pow(1-e,5),Ea=e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,Ua=e=>e===0?0:Math.pow(2,10*e-10),ja=e=>e===1?1:1-Math.pow(2,-10*e),Na=e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,M=1.70158,R=M*1.525,N=M+1,Aa=e=>N*e*e*e-M*e*e,La=e=>1+N*Math.pow(e-1,3)+M*Math.pow(e-1,2),$a=e=>e<.5?Math.pow(2*e,2)*((R+1)*2*e-R)/2:(Math.pow(2*e-2,2)*((R+1)*(e*2-2)+R)+2)/2,A=2*Math.PI/3,D=2*Math.PI/4.5,qa=e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*A),Va=e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*A)+1,Ha=e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*D))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*D)/2+1,Y=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Ta=e=>1-Y(1-e),Wa=e=>e<.5?(1-Y(1-2*e))/2:(1+Y(2*e-1))/2,Fa=e=>1-Math.cos(e*Math.PI/2),Qa=e=>Math.sin(e*Math.PI/2),Za=e=>-(Math.cos(Math.PI*e)-1)/2,Ja=e=>1-Math.sqrt(1-Math.pow(e,2)),Ka=e=>Math.sqrt(1-Math.pow(e-1,2)),_a=e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,L={linear:j,easeInCubic:Ra,easeOutCubic:Ya,easeInOutCubic:Ma,easeInQuad:Pa,easeOutQuad:Xa,easeInOutQuad:Sa,easeInQuart:Ga,easeOutQuart:Ba,easeInOutQuart:Ca,easeInQuint:za,easeOutQuint:Da,easeInOutQuint:Ea,easeInExpo:Ua,easeOutExpo:ja,easeInOutExpo:Na,easeInBack:Aa,easeOutBack:La,easeInOutBack:$a,easeInElastic:qa,easeOutElastic:Va,easeInOutElastic:Ha,easeInBounce:Ta,easeOutBounce:Y,easeInOutBounce:Wa,easeInSine:Fa,easeOutSine:Qa,easeInOutSine:Za,easeInCirc:Ja,easeOutCirc:Ka,easeInOutCirc:_a};function et(e){return typeof e=="function"?e:L[e]||j}function at(e=100,a=10,t=1){return r=>{const n=Math.sqrt(e/t),s=a/(2*Math.sqrt(e*t));if(s<1){const i=n*Math.sqrt(1-s*s);return 1-Math.exp(-s*n*r)*Math.cos(i*r)}else return 1-Math.exp(-n*r)}}function tt(e,a,t,r){return n=>{const s=3*a,i=3*(r-a)-s,g=1-s-i;return(c=>((g*c+i)*c+s)*c)(n)}}class S{constructor(){if(this.observer=null,this.elements=new Map,typeof window>"u"||!("IntersectionObserver"in window)){console.warn("IntersectionObserver not supported");return}}observe(a,t={}){const{threshold:r=.1,rootMargin:n="0px",triggerOnce:s=!1,onEnter:i,onExit:g}=t;this.elements.set(a,t),this.observer||(this.observer=new IntersectionObserver(d=>{d.forEach(c=>{var y,x;const f=this.elements.get(c.target);f&&(c.isIntersecting?((y=f.onEnter)==null||y.call(f,c),f.triggerOnce&&this.unobserve(c.target)):(x=f.onExit)==null||x.call(f,c))})},{threshold:r,rootMargin:n})),this.observer.observe(a)}unobserve(a){this.observer&&(this.observer.unobserve(a),this.elements.delete(a))}disconnect(){this.observer&&(this.observer.disconnect(),this.elements.clear(),this.observer=null)}}function $(e,a){const t=new S;return t.observe(e,a),()=>t.disconnect()}function rt(e,a){const t=new S;return e.forEach(r=>t.observe(r,a)),()=>t.disconnect()}function nt(e,a,t={}){return $(e,{...t,onEnter:a})}function it(e){const a=e.getBoundingClientRect(),t=window.innerHeight,r=a.top,n=a.height,s=1-(r+n)/(t+n);return Math.max(0,Math.min(1,s))}function st(e,a=0){const t=e.getBoundingClientRect(),r=window.innerHeight,n=window.innerWidth,s=t.top+t.height*a<=r&&t.bottom-t.height*a>=0,i=t.left+t.width*a<=n&&t.right-t.width*a>=0;return s&&i}const q=[{id:"glass-morphism",name:"Glass Morphism",gradient:`
2
2
  radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
3
3
  radial-gradient(circle at 80% 80%, rgba(255, 128, 171, 0.3), transparent 50%),
4
4
  radial-gradient(circle at 40% 90%, rgba(88, 166, 255, 0.3), transparent 50%),
@@ -172,4 +172,4 @@
172
172
  radial-gradient(circle at 25% 75%, rgba(185, 28, 28, 0.6), transparent 35%),
173
173
  radial-gradient(circle at 75% 80%, rgba(239, 68, 68, 0.5), transparent 40%),
174
174
  linear-gradient(135deg, #0f0000 0%, #1a0505 50%, #0f0000 100%)
175
- `,category:"premium",animation:"flow"},{id:"purple-dark",name:"Purple Dark",gradient:"linear-gradient(147deg, #000000 0%, #8d45d5 187%)",category:"dark"},{id:"red-fire",name:"Red Fire",gradient:"linear-gradient(308deg, #a70b0b 0%, #000000 75%)",category:"dark"},{id:"green-emerald",name:"Green Emerald",gradient:"linear-gradient(308deg, #0ba769 0%, #000000 75%)",category:"dark"},{id:"blue-ocean",name:"Blue Ocean",gradient:"linear-gradient(308deg, #0b32a7 0%, #000000 67%)",category:"dark"},{id:"purple-magic",name:"Purple Magic",gradient:"linear-gradient(308deg, #960ba7 0%, #000000 67%)",category:"dark"},{id:"green-forest",name:"Green Forest",gradient:"linear-gradient(308deg, #3da70b 0%, #000000 67%)",category:"dark"},{id:"pink-rose",name:"Pink Rose",gradient:"linear-gradient(308deg, #a70b7e 0%, #000000 67%)",category:"dark"},{id:"red-crimson",name:"Red Crimson",gradient:"linear-gradient(308deg, #a70b0b 0%, #000000 67%)",category:"dark"},{id:"yellow-gold",name:"Yellow Gold",gradient:"linear-gradient(308deg, #a5a70b 0%, #000000 67%)",category:"dark"},{id:"red-center",name:"Red Center",gradient:"linear-gradient(322deg, #000000 23%, #a70b0b 54%, #000000 73%)",category:"mixed"},{id:"blue-center",name:"Blue Center",gradient:"linear-gradient(322deg, #000000 23%, #120ba7 54%, #000000 73%)",category:"mixed"},{id:"gray-steel",name:"Gray Steel",gradient:"linear-gradient(322deg, #000000 23%, #34334d 54%, #000000 73%)",category:"mixed"},{id:"blue-bright",name:"Blue Bright",gradient:"linear-gradient(322deg, #000000 23%, #52a9ff 54%, #000000 73%)",category:"colorful"},{id:"red-fire-flow",name:"Red Fire Flow",gradient:"linear-gradient(308deg, #a70b0b 0%, #ff6b6b 50%, #000000 75%)",category:"animated",animation:"flow"},{id:"blue-wave",name:"Blue Wave",gradient:"linear-gradient(308deg, #0b32a7 0%, #52a9ff 50%, #000000 67%)",category:"animated",animation:"wave"},{id:"purple-shift",name:"Purple Shift",gradient:"linear-gradient(308deg, #960ba7 0%, #e100ff 50%, #000000 67%)",category:"animated",animation:"shift"},{id:"green-pulse",name:"Green Pulse",gradient:"linear-gradient(308deg, #3da70b 0%, #a8e063 50%, #000000 67%)",category:"animated",animation:"pulse"},{id:"pink-rotate",name:"Pink Rotate",gradient:"linear-gradient(308deg, #a70b7e 0%, #ff6ec7 50%, #000000 67%)",category:"animated",animation:"rotate"},{id:"gold-zoom",name:"Gold Zoom",gradient:"linear-gradient(308deg, #a5a70b 0%, #f6d365 50%, #000000 67%)",category:"animated",animation:"zoom"}],nt=({name:a,title:e,description:t="Welcome to my portfolio",primaryButtonText:r="Get Started",primaryButtonLink:n,primaryButtonOnClick:s,secondaryButtonText:o="Learn More",secondaryButtonLink:g,secondaryButtonOnClick:d,theme:c,backgroundGradient:f,animationType:w,className:k=""})=>{const u=c?H.find(p=>p.id===c):null,x=(u==null?void 0:u.gradient)||f||"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",y=w||(u==null?void 0:u.animation),O=()=>{n?window.location.href=n:s&&s()},I=()=>{g?window.location.href=g:d&&d()},M=n?m.jsx("a",{href:n,style:{textDecoration:"none"},children:m.jsx(i.GlassButton,{variant:"waves",size:"lg",children:r})}):m.jsx(i.GlassButton,{variant:"waves",size:"lg",onClick:s||O,children:r}),R=g?m.jsx("a",{href:g,style:{textDecoration:"none"},children:m.jsx(i.GlassButton,{variant:"blur",size:"lg",children:o})}):m.jsx(i.GlassButton,{variant:"blur",size:"lg",onClick:d||I,children:o});return m.jsx("div",{className:y?`animate-gradient-${y}`:"",style:{background:x,minHeight:"100vh"},children:m.jsx("div",{className:`min-h-screen flex items-center justify-center p-8 ${k}`,children:m.jsxs("div",{className:"max-w-4xl w-full text-center space-y-8",children:[m.jsx("h1",{className:"text-6xl md:text-8xl font-bold text-white mb-4",style:{textShadow:"0 0 40px rgba(0,0,0,0.3)",animation:"fadeInUp 0.8s ease-out"},children:a}),m.jsx("h2",{className:"text-3xl md:text-5xl font-semibold text-white/90",style:{textShadow:"0 0 30px rgba(0,0,0,0.2)",animation:"fadeInUp 1s ease-out 0.2s backwards"},children:e}),m.jsx("p",{className:"text-xl md:text-2xl text-white/80 max-w-2xl mx-auto",style:{textShadow:"0 0 20px rgba(0,0,0,0.2)",animation:"fadeInUp 1.2s ease-out 0.4s backwards"},children:t}),m.jsxs("div",{className:"flex flex-wrap gap-6 justify-center mt-12",style:{animation:"fadeInUp 1.4s ease-out 0.6s backwards"},children:[M,R]}),m.jsx("div",{className:"mt-16 mx-auto w-32 h-1 rounded-full",style:{background:"linear-gradient(90deg, transparent, white, transparent)",animation:"fadeIn 2s ease-out 1s backwards"}})]})})})};exports.AnimatedBounce=i.AnimatedBounce;exports.AnimatedGlow=i.AnimatedGlow;exports.AnimatedPulse=i.AnimatedPulse;exports.AnimatedShimmer=i.AnimatedShimmer;exports.Button=i.Button;exports.Button3DBlue=i.Button3DBlue;exports.Button3DGreen=i.Button3DGreen;exports.Button3DPink=i.Button3DPink;exports.Container=i.Container;exports.ContainerButton=i.ContainerButton;exports.ContainerContent=i.ContainerContent;exports.ContainerImage=i.ContainerImage;exports.FeatureCard=i.FeatureCard;exports.GhostBlue=i.GhostBlue;exports.GhostPurple=i.GhostPurple;exports.GhostRed=i.GhostRed;exports.GlassBlue=i.GlassBlue;exports.GlassButton=i.GlassButton;exports.GlassPink=i.GlassPink;exports.GlassPurple=i.GlassPurple;exports.GlassWhite=i.GlassWhite;exports.GradientBlueGreen=i.GradientBlueGreen;exports.GradientCyan=i.GradientCyan;exports.GradientOrangeRed=i.GradientOrangeRed;exports.GradientPurplePink=i.GradientPurplePink;exports.GradientSunset=i.GradientSunset;exports.NeonBlue=i.NeonBlue;exports.NeonGreen=i.NeonGreen;exports.NeonPink=i.NeonPink;exports.OutlinedBlue=i.OutlinedBlue;exports.OutlinedGradient=i.OutlinedGradient;exports.OutlinedPurple=i.OutlinedPurple;exports.ProductCard=i.ProductCard;exports.SolidBlue=i.SolidBlue;exports.SolidGreen=i.SolidGreen;exports.SolidPill=i.SolidPill;exports.SolidPurple=i.SolidPurple;exports.SolidRed=i.SolidRed;exports.StatCard=i.StatCard;exports.Animator=b;exports.Home=nt;exports.ScrollObserver=S;exports.TeleMotion=U;exports.animateGroup=F;exports.animateOnScroll=et;exports.bezier=_e;exports.createAnimator=W;exports.easings=L;exports.getEasing=Je;exports.getPreset=ue;exports.getPresetNames=D;exports.getPresetsByCategory=pe;exports.getScrollProgress=tt;exports.gradients=H;exports.isInViewport=rt;exports.observeElement=q;exports.observeElements=at;exports.parallel=V;exports.presets=h;exports.sequence=Q;exports.spring=Ke;exports.useAnimator=be;exports.useHoverAnimation=we;exports.useInView=ke;exports.usePresetAnimation=ye;exports.useScrollAnimation=he;exports.useStagger=xe;
175
+ `,category:"premium",animation:"flow"},{id:"purple-dark",name:"Purple Dark",gradient:"linear-gradient(147deg, #000000 0%, #8d45d5 187%)",category:"dark"},{id:"red-fire",name:"Red Fire",gradient:"linear-gradient(308deg, #a70b0b 0%, #000000 75%)",category:"dark"},{id:"green-emerald",name:"Green Emerald",gradient:"linear-gradient(308deg, #0ba769 0%, #000000 75%)",category:"dark"},{id:"blue-ocean",name:"Blue Ocean",gradient:"linear-gradient(308deg, #0b32a7 0%, #000000 67%)",category:"dark"},{id:"purple-magic",name:"Purple Magic",gradient:"linear-gradient(308deg, #960ba7 0%, #000000 67%)",category:"dark"},{id:"green-forest",name:"Green Forest",gradient:"linear-gradient(308deg, #3da70b 0%, #000000 67%)",category:"dark"},{id:"pink-rose",name:"Pink Rose",gradient:"linear-gradient(308deg, #a70b7e 0%, #000000 67%)",category:"dark"},{id:"red-crimson",name:"Red Crimson",gradient:"linear-gradient(308deg, #a70b0b 0%, #000000 67%)",category:"dark"},{id:"yellow-gold",name:"Yellow Gold",gradient:"linear-gradient(308deg, #a5a70b 0%, #000000 67%)",category:"dark"},{id:"red-center",name:"Red Center",gradient:"linear-gradient(322deg, #000000 23%, #a70b0b 54%, #000000 73%)",category:"mixed"},{id:"blue-center",name:"Blue Center",gradient:"linear-gradient(322deg, #000000 23%, #120ba7 54%, #000000 73%)",category:"mixed"},{id:"gray-steel",name:"Gray Steel",gradient:"linear-gradient(322deg, #000000 23%, #34334d 54%, #000000 73%)",category:"mixed"},{id:"blue-bright",name:"Blue Bright",gradient:"linear-gradient(322deg, #000000 23%, #52a9ff 54%, #000000 73%)",category:"colorful"},{id:"red-fire-flow",name:"Red Fire Flow",gradient:"linear-gradient(308deg, #a70b0b 0%, #ff6b6b 50%, #000000 75%)",category:"animated",animation:"flow"},{id:"blue-wave",name:"Blue Wave",gradient:"linear-gradient(308deg, #0b32a7 0%, #52a9ff 50%, #000000 67%)",category:"animated",animation:"wave"},{id:"purple-shift",name:"Purple Shift",gradient:"linear-gradient(308deg, #960ba7 0%, #e100ff 50%, #000000 67%)",category:"animated",animation:"shift"},{id:"green-pulse",name:"Green Pulse",gradient:"linear-gradient(308deg, #3da70b 0%, #a8e063 50%, #000000 67%)",category:"animated",animation:"pulse"},{id:"pink-rotate",name:"Pink Rotate",gradient:"linear-gradient(308deg, #a70b7e 0%, #ff6ec7 50%, #000000 67%)",category:"animated",animation:"rotate"},{id:"gold-zoom",name:"Gold Zoom",gradient:"linear-gradient(308deg, #a5a70b 0%, #f6d365 50%, #000000 67%)",category:"animated",animation:"zoom"}],ot=({name:e,title:a,description:t="Welcome to my portfolio",primaryButtonText:r="Get Started",primaryButtonLink:n,primaryButtonOnClick:s,secondaryButtonText:i="Learn More",secondaryButtonLink:g,secondaryButtonOnClick:d,theme:c,backgroundGradient:f,animationType:y,className:x=""})=>{const m=c?q.find(p=>p.id===c):null,I=(m==null?void 0:m.gradient)||f||"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",h=y||(m==null?void 0:m.animation),v=()=>{n?window.location.href=n:s&&s()},k=()=>{g?window.location.href=g:d&&d()},P=n?u.jsx("a",{href:n,style:{textDecoration:"none"},children:u.jsx(o.GlassButton,{variant:"waves",size:"lg",children:r})}):u.jsx(o.GlassButton,{variant:"waves",size:"lg",onClick:s||v,children:r}),X=g?u.jsx("a",{href:g,style:{textDecoration:"none"},children:u.jsx(o.GlassButton,{variant:"blur",size:"lg",children:i})}):u.jsx(o.GlassButton,{variant:"blur",size:"lg",onClick:d||k,children:i});return u.jsx("div",{className:h?`animate-gradient-${h}`:"",style:{background:I,minHeight:"100vh"},children:u.jsx("div",{className:`min-h-screen flex items-center justify-center p-8 ${x}`,children:u.jsxs("div",{className:"max-w-4xl w-full text-center space-y-8",children:[u.jsx("h1",{className:"text-6xl md:text-8xl font-bold text-white mb-4",style:{textShadow:"0 0 40px rgba(0,0,0,0.3)",animation:"fadeInUp 0.8s ease-out"},children:e}),u.jsx("h2",{className:"text-3xl md:text-5xl font-semibold text-white/90",style:{textShadow:"0 0 30px rgba(0,0,0,0.2)",animation:"fadeInUp 1s ease-out 0.2s backwards"},children:a}),u.jsx("p",{className:"text-xl md:text-2xl text-white/80 max-w-2xl mx-auto",style:{textShadow:"0 0 20px rgba(0,0,0,0.2)",animation:"fadeInUp 1.2s ease-out 0.4s backwards"},children:t}),u.jsxs("div",{className:"flex flex-wrap gap-6 justify-center mt-12",style:{animation:"fadeInUp 1.4s ease-out 0.6s backwards"},children:[P,X]}),u.jsx("div",{className:"mt-16 mx-auto w-32 h-1 rounded-full",style:{background:"linear-gradient(90deg, transparent, white, transparent)",animation:"fadeIn 2s ease-out 1s backwards"}})]})})})};exports.AnimatedBounce=o.AnimatedBounce;exports.AnimatedGlow=o.AnimatedGlow;exports.AnimatedPulse=o.AnimatedPulse;exports.AnimatedShimmer=o.AnimatedShimmer;exports.Button=o.Button;exports.Button3DBlue=o.Button3DBlue;exports.Button3DGreen=o.Button3DGreen;exports.Button3DPink=o.Button3DPink;exports.Container=o.Container;exports.ContainerButton=o.ContainerButton;exports.ContainerContent=o.ContainerContent;exports.ContainerImage=o.ContainerImage;exports.FeatureCard=o.FeatureCard;exports.GhostBlue=o.GhostBlue;exports.GhostPurple=o.GhostPurple;exports.GhostRed=o.GhostRed;exports.GlassBlue=o.GlassBlue;exports.GlassButton=o.GlassButton;exports.GlassPink=o.GlassPink;exports.GlassPurple=o.GlassPurple;exports.GlassWhite=o.GlassWhite;exports.GradientBlueGreen=o.GradientBlueGreen;exports.GradientCyan=o.GradientCyan;exports.GradientOrangeRed=o.GradientOrangeRed;exports.GradientPurplePink=o.GradientPurplePink;exports.GradientSunset=o.GradientSunset;exports.NeonBlue=o.NeonBlue;exports.NeonGreen=o.NeonGreen;exports.NeonPink=o.NeonPink;exports.OutlinedBlue=o.OutlinedBlue;exports.OutlinedGradient=o.OutlinedGradient;exports.OutlinedPurple=o.OutlinedPurple;exports.ProductCard=o.ProductCard;exports.SolidBlue=o.SolidBlue;exports.SolidGreen=o.SolidGreen;exports.SolidPill=o.SolidPill;exports.SolidPurple=o.SolidPurple;exports.SolidRed=o.SolidRed;exports.StatCard=o.StatCard;exports.Animator=b;exports.Home=ot;exports.RotateIn=W;exports.ScrollObserver=S;exports.ScrollReveal=H;exports.TeleMotion=U;exports.ZoomIn=T;exports.animateGroup=Q;exports.animateOnScroll=nt;exports.bezier=tt;exports.createAnimator=F;exports.easings=L;exports.getEasing=et;exports.getPreset=ya;exports.getPresetNames=E;exports.getPresetsByCategory=ha;exports.getScrollProgress=it;exports.gradients=q;exports.isInViewport=st;exports.observeElement=$;exports.observeElements=rt;exports.parallel=J;exports.presets=w;exports.sequence=Z;exports.spring=at;exports.useAnimator=xa;exports.useHoverAnimation=va;exports.useInView=Oa;exports.usePresetAnimation=wa;exports.useScrollAnimation=Ia;exports.useStagger=ka;
package/dist/index.mjs CHANGED
@@ -1,9 +1,109 @@
1
1
  "use client";
2
2
  import { z as Y } from "./Container-P3r8bCP7.js";
3
- import { n as mt, o as pt, m as ut, A as bt, y as yt, B as ht, v as xt, u as wt, D as kt, I as It, H as Ot, E as vt, F as Yt, r as Xt, t as Mt, s as Pt, i as Rt, l as St, j as zt, k as Ct, e as Dt, g as Bt, f as Gt, G as Ut, h as Et, N as Lt, x as Nt, w as qt, O as At, q as Ht, p as Ft, P as Tt, S as Wt, b as Qt, d as jt, c as Vt, a as $t, C as Zt } from "./Container-P3r8bCP7.js";
4
- import { jsx as f, jsxs as G } from "react/jsx-runtime";
5
- import { useRef as g, useEffect as y, useState as H } from "react";
6
- class u {
3
+ import { n as bt, o as yt, m as ht, A as xt, y as wt, B as kt, v as It, u as vt, D as Ot, I as Yt, H as Xt, E as Mt, F as Pt, r as Rt, t as St, s as zt, i as Ct, l as Dt, j as Bt, k as Gt, e as Ut, g as Et, f as Nt, G as Lt, h as $t, N as qt, x as Vt, w as At, O as Ht, q as Ft, p as Tt, P as Wt, S as Qt, b as jt, d as Zt, c as Jt, a as Kt, C as _t } from "./Container-P3r8bCP7.js";
4
+ import { jsx as f, jsxs as U } from "react/jsx-runtime";
5
+ import { useRef as d, useState as P, useEffect as u } from "react";
6
+ const Fe = ({
7
+ children: a,
8
+ direction: e = "up",
9
+ delay: t = 0,
10
+ duration: r = 800,
11
+ threshold: n = 0.1,
12
+ once: s = !0,
13
+ className: i = ""
14
+ }) => {
15
+ const l = d(null), [c, o] = P(!1);
16
+ u(() => {
17
+ const b = new IntersectionObserver(
18
+ ([x]) => {
19
+ x.isIntersecting ? (o(!0), s && l.current && b.unobserve(l.current)) : s || o(!1);
20
+ },
21
+ {
22
+ threshold: n,
23
+ rootMargin: "0px"
24
+ }
25
+ );
26
+ return l.current && b.observe(l.current), () => {
27
+ l.current && b.unobserve(l.current);
28
+ };
29
+ }, [n, s]);
30
+ const g = `scroll-fade-${e}`;
31
+ return /* @__PURE__ */ f(
32
+ "div",
33
+ {
34
+ ref: l,
35
+ className: `scroll-animation ${g} ${c ? "active" : ""} ${i}`,
36
+ style: {
37
+ animationDelay: `${t}ms`,
38
+ animationDuration: `${r}ms`
39
+ },
40
+ children: a
41
+ }
42
+ );
43
+ }, Te = ({
44
+ children: a,
45
+ delay: e = 0,
46
+ duration: t = 600,
47
+ threshold: r = 0.1,
48
+ once: n = !0,
49
+ className: s = ""
50
+ }) => {
51
+ const i = d(null), [l, c] = P(!1);
52
+ return u(() => {
53
+ const o = new IntersectionObserver(
54
+ ([g]) => {
55
+ g.isIntersecting ? (c(!0), n && i.current && o.unobserve(i.current)) : n || c(!1);
56
+ },
57
+ { threshold: r }
58
+ );
59
+ return i.current && o.observe(i.current), () => {
60
+ i.current && o.unobserve(i.current);
61
+ };
62
+ }, [r, n]), /* @__PURE__ */ f(
63
+ "div",
64
+ {
65
+ ref: i,
66
+ className: `scroll-animation scroll-zoom-in ${l ? "active" : ""} ${s}`,
67
+ style: {
68
+ animationDelay: `${e}ms`,
69
+ animationDuration: `${t}ms`
70
+ },
71
+ children: a
72
+ }
73
+ );
74
+ }, We = ({
75
+ children: a,
76
+ delay: e = 0,
77
+ duration: t = 800,
78
+ threshold: r = 0.1,
79
+ once: n = !0,
80
+ className: s = ""
81
+ }) => {
82
+ const i = d(null), [l, c] = P(!1);
83
+ return u(() => {
84
+ const o = new IntersectionObserver(
85
+ ([g]) => {
86
+ g.isIntersecting ? (c(!0), n && i.current && o.unobserve(i.current)) : n || c(!1);
87
+ },
88
+ { threshold: r }
89
+ );
90
+ return i.current && o.observe(i.current), () => {
91
+ i.current && o.unobserve(i.current);
92
+ };
93
+ }, [r, n]), /* @__PURE__ */ f(
94
+ "div",
95
+ {
96
+ ref: i,
97
+ className: `scroll-animation scroll-rotate-in ${l ? "active" : ""} ${s}`,
98
+ style: {
99
+ animationDelay: `${e}ms`,
100
+ animationDuration: `${t}ms`
101
+ },
102
+ children: a
103
+ }
104
+ );
105
+ };
106
+ class y {
7
107
  constructor(e) {
8
108
  this.animation = null, this.element = e;
9
109
  }
@@ -14,16 +114,16 @@ class u {
14
114
  const {
15
115
  duration: r = 600,
16
116
  delay: n = 0,
17
- easing: i = "ease",
18
- iterations: s = 1,
117
+ easing: s = "ease",
118
+ iterations: i = 1,
19
119
  direction: l = "normal",
20
120
  fill: c = "both"
21
121
  } = t;
22
122
  return this.animation && this.animation.cancel(), this.animation = this.element.animate(e, {
23
123
  duration: r,
24
124
  delay: n,
25
- easing: typeof i == "string" ? i : "linear",
26
- iterations: s,
125
+ easing: typeof s == "string" ? s : "linear",
126
+ iterations: i,
27
127
  direction: l,
28
128
  fill: c
29
129
  }), this.animation.finished;
@@ -66,10 +166,10 @@ class u {
66
166
  return ((e = this.animation) == null ? void 0 : e.playState) === "running";
67
167
  }
68
168
  }
69
- function We(a) {
70
- return new u(a);
169
+ function Qe(a) {
170
+ return new y(a);
71
171
  }
72
- async function Qe(a, e, t = {}) {
172
+ async function je(a, e, t = {}) {
73
173
  const r = t.stagger ?? 0, n = {
74
174
  duration: t.duration,
75
175
  delay: t.delay,
@@ -77,25 +177,25 @@ async function Qe(a, e, t = {}) {
77
177
  iterations: t.iterations,
78
178
  direction: t.direction,
79
179
  fill: t.fill
80
- }, i = a.map((s, l) => new u(s).animate(e, {
180
+ }, s = a.map((i, l) => new y(i).animate(e, {
81
181
  ...n,
82
182
  delay: (n.delay || 0) + r * l
83
183
  }));
84
- return Promise.all(i);
184
+ return Promise.all(s);
85
185
  }
86
- async function je(a) {
186
+ async function Ze(a) {
87
187
  const e = [];
88
188
  for (const { element: t, keyframes: r, config: n } of a) {
89
- const s = await new u(t).animate(r, n);
90
- e.push(s);
189
+ const i = await new y(t).animate(r, n);
190
+ e.push(i);
91
191
  }
92
192
  return e;
93
193
  }
94
- async function Ve(a) {
95
- const e = a.map(({ element: t, keyframes: r, config: n }) => new u(t).animate(r, n));
194
+ async function Je(a) {
195
+ const e = a.map(({ element: t, keyframes: r, config: n }) => new y(t).animate(r, n));
96
196
  return Promise.all(e);
97
197
  }
98
- const F = {
198
+ const A = {
99
199
  keyframes: [
100
200
  { opacity: 0 },
101
201
  { opacity: 1 }
@@ -105,7 +205,7 @@ const F = {
105
205
  easing: "ease-out",
106
206
  fill: "both"
107
207
  }
108
- }, T = {
208
+ }, H = {
109
209
  keyframes: [
110
210
  {
111
211
  opacity: 0,
@@ -121,7 +221,7 @@ const F = {
121
221
  easing: "ease-out",
122
222
  fill: "both"
123
223
  }
124
- }, W = {
224
+ }, F = {
125
225
  keyframes: [
126
226
  {
127
227
  opacity: 0,
@@ -137,7 +237,7 @@ const F = {
137
237
  easing: "ease-out",
138
238
  fill: "both"
139
239
  }
140
- }, Q = {
240
+ }, T = {
141
241
  keyframes: [
142
242
  {
143
243
  opacity: 0,
@@ -153,7 +253,7 @@ const F = {
153
253
  easing: "ease-out",
154
254
  fill: "both"
155
255
  }
156
- }, j = {
256
+ }, W = {
157
257
  keyframes: [
158
258
  {
159
259
  opacity: 0,
@@ -169,7 +269,7 @@ const F = {
169
269
  easing: "ease-out",
170
270
  fill: "both"
171
271
  }
172
- }, V = {
272
+ }, Q = {
173
273
  keyframes: [
174
274
  { opacity: 1 },
175
275
  { opacity: 0 }
@@ -179,7 +279,7 @@ const F = {
179
279
  easing: "ease-in",
180
280
  fill: "both"
181
281
  }
182
- }, $ = {
282
+ }, j = {
183
283
  keyframes: [
184
284
  {
185
285
  opacity: 1,
@@ -641,7 +741,7 @@ const F = {
641
741
  easing: "ease-in",
642
742
  fill: "both"
643
743
  }
644
- }, Oa = {
744
+ }, va = {
645
745
  keyframes: [
646
746
  { transform: "rotate(0deg)" },
647
747
  { transform: "rotate(360deg)" }
@@ -652,7 +752,7 @@ const F = {
652
752
  iterations: 1 / 0,
653
753
  fill: "both"
654
754
  }
655
- }, va = {
755
+ }, Oa = {
656
756
  keyframes: [
657
757
  { transform: "rotate(360deg)" },
658
758
  { transform: "rotate(0deg)" }
@@ -881,7 +981,7 @@ const F = {
881
981
  easing: "ease-in-out",
882
982
  fill: "both"
883
983
  }
884
- }, La = {
984
+ }, Na = {
885
985
  keyframes: [
886
986
  { transform: "scale(1)" },
887
987
  { transform: "scale(1.05)" },
@@ -893,7 +993,7 @@ const F = {
893
993
  iterations: 1 / 0,
894
994
  fill: "both"
895
995
  }
896
- }, Na = {
996
+ }, La = {
897
997
  keyframes: [
898
998
  { transform: "scale(1)" },
899
999
  { transform: "scale(1.3)" },
@@ -906,7 +1006,7 @@ const F = {
906
1006
  easing: "ease-in-out",
907
1007
  fill: "both"
908
1008
  }
909
- }, qa = {
1009
+ }, $a = {
910
1010
  keyframes: [
911
1011
  { opacity: 1 },
912
1012
  { opacity: 0 },
@@ -919,7 +1019,7 @@ const F = {
919
1019
  easing: "linear",
920
1020
  fill: "both"
921
1021
  }
922
- }, Aa = {
1022
+ }, qa = {
923
1023
  keyframes: [
924
1024
  { transform: "scaleX(1) scaleY(1)" },
925
1025
  { transform: "scaleX(1.25) scaleY(0.75)" },
@@ -933,7 +1033,7 @@ const F = {
933
1033
  easing: "ease-in-out",
934
1034
  fill: "both"
935
1035
  }
936
- }, Ha = {
1036
+ }, Va = {
937
1037
  keyframes: [
938
1038
  { transform: "skewX(0deg) skewY(0deg)" },
939
1039
  { transform: "skewX(-12.5deg) skewY(-12.5deg)" },
@@ -947,7 +1047,7 @@ const F = {
947
1047
  easing: "ease-in-out",
948
1048
  fill: "both"
949
1049
  }
950
- }, Fa = {
1050
+ }, Aa = {
951
1051
  keyframes: [
952
1052
  { transform: "rotate(0deg)", transformOrigin: "top center" },
953
1053
  { transform: "rotate(15deg)", transformOrigin: "top center" },
@@ -961,7 +1061,7 @@ const F = {
961
1061
  easing: "ease-in-out",
962
1062
  fill: "both"
963
1063
  }
964
- }, Ta = {
1064
+ }, Ha = {
965
1065
  keyframes: [
966
1066
  { transform: "translateX(0%) rotate(0deg)" },
967
1067
  { transform: "translateX(-25%) rotate(-5deg)" },
@@ -976,7 +1076,7 @@ const F = {
976
1076
  easing: "ease-in-out",
977
1077
  fill: "both"
978
1078
  }
979
- }, Wa = {
1079
+ }, Fa = {
980
1080
  keyframes: [
981
1081
  { transform: "scale(1) rotate(0deg)" },
982
1082
  { transform: "scale(0.9) rotate(-3deg)" },
@@ -994,14 +1094,14 @@ const F = {
994
1094
  easing: "ease-in-out",
995
1095
  fill: "both"
996
1096
  }
997
- }, Qa = {
1097
+ }, Ta = {
998
1098
  keyframes: [
999
1099
  { width: "0", opacity: 0 },
1000
1100
  { width: "0", opacity: 1, offset: 0.01 },
1001
1101
  { width: "100%", opacity: 1 }
1002
1102
  ],
1003
1103
  config: { duration: 2e3, easing: "steps(40, end)" }
1004
- }, ja = {
1104
+ }, Wa = {
1005
1105
  keyframes: [
1006
1106
  { transform: "translate(0)", offset: 0 },
1007
1107
  { transform: "translate(-2px, 2px)", offset: 0.2 },
@@ -1011,14 +1111,14 @@ const F = {
1011
1111
  { transform: "translate(0)", offset: 1 }
1012
1112
  ],
1013
1113
  config: { duration: 500, easing: "linear" }
1014
- }, Va = {
1114
+ }, Qa = {
1015
1115
  keyframes: [
1016
1116
  { transform: "translateY(0)", offset: 0 },
1017
1117
  { transform: "translateY(-10px)", offset: 0.5 },
1018
1118
  { transform: "translateY(0)", offset: 1 }
1019
1119
  ],
1020
1120
  config: { duration: 600, easing: "ease-in-out" }
1021
- }, $a = {
1121
+ }, ja = {
1022
1122
  keyframes: [
1023
1123
  { filter: "blur(12px)", opacity: 0 },
1024
1124
  { filter: "blur(0)", opacity: 1 }
@@ -1131,15 +1231,15 @@ const F = {
1131
1231
  }
1132
1232
  ],
1133
1233
  config: { duration: 5e3, easing: "ease-out" }
1134
- }, x = {
1234
+ }, k = {
1135
1235
  // Fade (10)
1136
- fadeIn: F,
1137
- fadeInUp: T,
1138
- fadeInDown: W,
1139
- fadeInLeft: Q,
1140
- fadeInRight: j,
1141
- fadeOut: V,
1142
- fadeOutUp: $,
1236
+ fadeIn: A,
1237
+ fadeInUp: H,
1238
+ fadeInDown: F,
1239
+ fadeInLeft: T,
1240
+ fadeInRight: W,
1241
+ fadeOut: Q,
1242
+ fadeOutUp: j,
1143
1243
  fadeOutDown: Z,
1144
1244
  fadeOutLeft: J,
1145
1245
  fadeOutRight: K,
@@ -1170,8 +1270,8 @@ const F = {
1170
1270
  rotateInDownLeft: wa,
1171
1271
  rotateInDownRight: ka,
1172
1272
  rotateOut: Ia,
1173
- spin: Oa,
1174
- spinReverse: va,
1273
+ spin: va,
1274
+ spinReverse: Oa,
1175
1275
  spinSlow: Ya,
1176
1276
  spinFast: Xa,
1177
1277
  // Bounce (8)
@@ -1187,19 +1287,19 @@ const F = {
1187
1287
  shake: Ga,
1188
1288
  shakeY: Ua,
1189
1289
  pulse: Ea,
1190
- pulseLoop: La,
1191
- heartbeat: Na,
1192
- flash: qa,
1193
- rubberBand: Aa,
1194
- jello: Ha,
1195
- swing: Fa,
1196
- wobble: Ta,
1197
- tada: Wa,
1290
+ pulseLoop: Na,
1291
+ heartbeat: La,
1292
+ flash: $a,
1293
+ rubberBand: qa,
1294
+ jello: Va,
1295
+ swing: Aa,
1296
+ wobble: Ha,
1297
+ tada: Fa,
1198
1298
  // ✅ Text (16) - NEW!
1199
- typing: Qa,
1200
- glitch: ja,
1201
- waveText: Va,
1202
- blurIn: $a,
1299
+ typing: Ta,
1300
+ glitch: Wa,
1301
+ waveText: Qa,
1302
+ blurIn: ja,
1203
1303
  trackingInExpand: Za,
1204
1304
  trackingOutContract: Ja,
1205
1305
  focusIn: Ka,
@@ -1213,13 +1313,13 @@ const F = {
1213
1313
  slideInBlurred: se,
1214
1314
  kenburns: oe
1215
1315
  };
1216
- function $e(a) {
1217
- return x[a];
1316
+ function Ke(a) {
1317
+ return k[a];
1218
1318
  }
1219
1319
  function le() {
1220
- return Object.keys(x);
1320
+ return Object.keys(k);
1221
1321
  }
1222
- function Ze(a) {
1322
+ function _e(a) {
1223
1323
  return a === "text" ? [
1224
1324
  "typing",
1225
1325
  "glitch",
@@ -1245,119 +1345,119 @@ const ce = ({
1245
1345
  duration: t,
1246
1346
  delay: r,
1247
1347
  easing: n,
1248
- iterations: i,
1249
- trigger: s = "mount",
1348
+ iterations: s,
1349
+ trigger: i = "mount",
1250
1350
  threshold: l = 0.1,
1251
1351
  triggerOnce: c = !0,
1252
1352
  onAnimationStart: o,
1253
- onAnimationEnd: d,
1254
- className: w = "",
1255
- style: k = {}
1353
+ onAnimationEnd: g,
1354
+ className: b = "",
1355
+ style: x = {}
1256
1356
  }) => {
1257
- const m = g(null), h = g(null), b = g(null), O = g(!1), I = async () => {
1258
- var z, C, D, B;
1259
- if (!m.current || c && O.current) return;
1260
- const p = x[e];
1357
+ const m = d(null), w = d(null), h = d(null), v = d(!1), I = async () => {
1358
+ var C, D, B, G;
1359
+ if (!m.current || c && v.current) return;
1360
+ const p = k[e];
1261
1361
  if (!p) {
1262
1362
  console.warn(`[TeleMotion] Preset "${e}" not found`);
1263
1363
  return;
1264
1364
  }
1265
- h.current || (h.current = new u(m.current)), o == null || o();
1266
- const v = {
1365
+ w.current || (w.current = new y(m.current)), o == null || o();
1366
+ const O = {
1267
1367
  ...p.config,
1268
- duration: t ?? ((z = p.config) == null ? void 0 : z.duration),
1269
- delay: r ?? ((C = p.config) == null ? void 0 : C.delay),
1270
- easing: n ?? ((D = p.config) == null ? void 0 : D.easing),
1271
- iterations: i ?? ((B = p.config) == null ? void 0 : B.iterations)
1368
+ duration: t ?? ((C = p.config) == null ? void 0 : C.duration),
1369
+ delay: r ?? ((D = p.config) == null ? void 0 : D.delay),
1370
+ easing: n ?? ((B = p.config) == null ? void 0 : B.easing),
1371
+ iterations: s ?? ((G = p.config) == null ? void 0 : G.iterations)
1272
1372
  };
1273
1373
  try {
1274
- await h.current.animate(p.keyframes, v), O.current = !0, d == null || d();
1275
- } catch (A) {
1276
- console.error("[TeleMotion] Animation error:", A);
1374
+ await w.current.animate(p.keyframes, O), v.current = !0, g == null || g();
1375
+ } catch (V) {
1376
+ console.error("[TeleMotion] Animation error:", V);
1277
1377
  }
1278
1378
  };
1279
- y(() => {
1280
- s === "mount" && I();
1281
- }, [e, t, r, n, i]), y(() => {
1282
- if (!(s !== "scroll" || !m.current))
1283
- return b.current = new IntersectionObserver(
1379
+ u(() => {
1380
+ i === "mount" && I();
1381
+ }, [e, t, r, n, s]), u(() => {
1382
+ if (!(i !== "scroll" || !m.current))
1383
+ return h.current = new IntersectionObserver(
1284
1384
  (p) => {
1285
- p.forEach((v) => {
1286
- v.isIntersecting && (I(), c && b.current && b.current.unobserve(v.target));
1385
+ p.forEach((O) => {
1386
+ O.isIntersecting && (I(), c && h.current && h.current.unobserve(O.target));
1287
1387
  });
1288
1388
  },
1289
1389
  { threshold: l }
1290
- ), b.current.observe(m.current), () => {
1291
- b.current && b.current.disconnect();
1390
+ ), h.current.observe(m.current), () => {
1391
+ h.current && h.current.disconnect();
1292
1392
  };
1293
- }, [s, l, c, e]);
1294
- const R = () => {
1295
- s === "hover" && I();
1296
- }, S = () => {
1297
- s === "click" && I();
1393
+ }, [i, l, c, e]);
1394
+ const S = () => {
1395
+ i === "hover" && I();
1396
+ }, z = () => {
1397
+ i === "click" && I();
1298
1398
  };
1299
- return y(() => () => {
1300
- h.current && h.current.stop();
1399
+ return u(() => () => {
1400
+ w.current && w.current.stop();
1301
1401
  }, []), /* @__PURE__ */ f(
1302
1402
  "div",
1303
1403
  {
1304
1404
  ref: m,
1305
- className: w,
1306
- style: k,
1307
- onMouseEnter: s === "hover" ? R : void 0,
1308
- onClick: s === "click" ? S : void 0,
1405
+ className: b,
1406
+ style: x,
1407
+ onMouseEnter: i === "hover" ? S : void 0,
1408
+ onClick: i === "click" ? z : void 0,
1309
1409
  children: a
1310
1410
  }
1311
1411
  );
1312
1412
  };
1313
1413
  ce.displayName = "TeleMotion";
1314
- function Je() {
1315
- const a = g(null), e = g(null), t = async (r, n) => {
1316
- a.current && (e.current || (e.current = new u(a.current)), await e.current.animate(r, n));
1414
+ function at() {
1415
+ const a = d(null), e = d(null), t = async (r, n) => {
1416
+ a.current && (e.current || (e.current = new y(a.current)), await e.current.animate(r, n));
1317
1417
  };
1318
- return y(() => () => {
1418
+ return u(() => () => {
1319
1419
  e.current && e.current.stop();
1320
1420
  }, []), [a, t];
1321
1421
  }
1322
- function Ke(a, e) {
1323
- const t = g(null), r = g(null), n = async () => {
1422
+ function et(a, e) {
1423
+ const t = d(null), r = d(null), n = async () => {
1324
1424
  if (!t.current) return;
1325
- const i = x[a];
1326
- if (!i) {
1425
+ const s = k[a];
1426
+ if (!s) {
1327
1427
  console.warn(`[usePresetAnimation] Preset "${a}" not found`);
1328
1428
  return;
1329
1429
  }
1330
- r.current || (r.current = new u(t.current));
1331
- const s = {
1332
- ...i.config,
1430
+ r.current || (r.current = new y(t.current));
1431
+ const i = {
1432
+ ...s.config,
1333
1433
  ...e
1334
1434
  };
1335
- await r.current.animate(i.keyframes, s);
1435
+ await r.current.animate(s.keyframes, i);
1336
1436
  };
1337
- return y(() => {
1437
+ return u(() => {
1338
1438
  (e == null ? void 0 : e.trigger) !== "manual" && n();
1339
- }, [a]), y(() => () => {
1439
+ }, [a]), u(() => () => {
1340
1440
  r.current && r.current.stop();
1341
1441
  }, []), [t, n];
1342
1442
  }
1343
- function _e(a, e) {
1344
- const t = g(null), r = g(null), n = g(null), i = g(!1);
1345
- return y(() => {
1443
+ function tt(a, e) {
1444
+ const t = d(null), r = d(null), n = d(null), s = d(!1);
1445
+ return u(() => {
1346
1446
  if (!t.current) return;
1347
- const s = x[a];
1348
- if (!s) {
1447
+ const i = k[a];
1448
+ if (!i) {
1349
1449
  console.warn(`[useScrollAnimation] Preset "${a}" not found`);
1350
1450
  return;
1351
1451
  }
1352
- return r.current = new u(t.current), n.current = new IntersectionObserver(
1452
+ return r.current = new y(t.current), n.current = new IntersectionObserver(
1353
1453
  (l) => {
1354
1454
  l.forEach((c) => {
1355
- if (c.isIntersecting && !i.current && r.current) {
1455
+ if (c.isIntersecting && !s.current && r.current) {
1356
1456
  const o = {
1357
- ...s.config,
1457
+ ...i.config,
1358
1458
  ...e == null ? void 0 : e.config
1359
1459
  };
1360
- r.current.animate(s.keyframes, o), i.current = !0, (e == null ? void 0 : e.triggerOnce) !== !1 && n.current && n.current.unobserve(c.target);
1460
+ r.current.animate(i.keyframes, o), s.current = !0, (e == null ? void 0 : e.triggerOnce) !== !1 && n.current && n.current.unobserve(c.target);
1361
1461
  }
1362
1462
  });
1363
1463
  },
@@ -1367,41 +1467,41 @@ function _e(a, e) {
1367
1467
  };
1368
1468
  }, [a, e == null ? void 0 : e.threshold, e == null ? void 0 : e.triggerOnce]), t;
1369
1469
  }
1370
- function at(a, e = 100, t) {
1371
- const r = g(null);
1470
+ function rt(a, e = 100, t) {
1471
+ const r = d(null);
1372
1472
  return [r, async () => {
1373
1473
  if (!r.current) return;
1374
- const i = x[a];
1375
- if (!i) return;
1376
- const l = Array.from(r.current.children).map((c, o) => new u(c).animate(i.keyframes, {
1377
- ...i.config,
1474
+ const s = k[a];
1475
+ if (!s) return;
1476
+ const l = Array.from(r.current.children).map((c, o) => new y(c).animate(s.keyframes, {
1477
+ ...s.config,
1378
1478
  ...t,
1379
1479
  delay: ((t == null ? void 0 : t.delay) ?? 0) + e * o
1380
1480
  }));
1381
1481
  await Promise.all(l);
1382
1482
  }];
1383
1483
  }
1384
- function et(a, e) {
1385
- const t = g(null), r = g(null);
1484
+ function nt(a, e) {
1485
+ const t = d(null), r = d(null);
1386
1486
  return [t, { onMouseEnter: async () => {
1387
1487
  if (!t.current) return;
1388
- const s = x[a];
1389
- s && (r.current || (r.current = new u(t.current)), await r.current.animate(s.keyframes, {
1390
- ...s.config,
1488
+ const i = k[a];
1489
+ i && (r.current || (r.current = new y(t.current)), await r.current.animate(i.keyframes, {
1490
+ ...i.config,
1391
1491
  ...e
1392
1492
  }));
1393
1493
  }, onMouseLeave: () => {
1394
1494
  r.current && r.current.stop();
1395
1495
  } }];
1396
1496
  }
1397
- function tt(a = 0.1) {
1398
- const e = g(null), [t, r] = H(!1);
1399
- return y(() => {
1497
+ function it(a = 0.1) {
1498
+ const e = d(null), [t, r] = P(!1);
1499
+ return u(() => {
1400
1500
  if (!e.current) return;
1401
1501
  const n = new IntersectionObserver(
1402
- (i) => {
1403
- i.forEach((s) => {
1404
- r(s.isIntersecting);
1502
+ (s) => {
1503
+ s.forEach((i) => {
1504
+ r(i.isIntersecting);
1405
1505
  });
1406
1506
  },
1407
1507
  { threshold: a }
@@ -1411,8 +1511,8 @@ function tt(a = 0.1) {
1411
1511
  };
1412
1512
  }, [a]), [e, t];
1413
1513
  }
1414
- const E = (a) => a, ge = (a) => a * a * a, de = (a) => 1 - Math.pow(1 - a, 3), fe = (a) => a < 0.5 ? 4 * a * a * a : 1 - Math.pow(-2 * a + 2, 3) / 2, me = (a) => a * a, pe = (a) => 1 - (1 - a) * (1 - a), ue = (a) => a < 0.5 ? 2 * a * a : 1 - Math.pow(-2 * a + 2, 2) / 2, be = (a) => a * a * a * a, ye = (a) => 1 - Math.pow(1 - a, 4), he = (a) => a < 0.5 ? 8 * a * a * a * a : 1 - Math.pow(-2 * a + 2, 4) / 2, xe = (a) => a * a * a * a * a, we = (a) => 1 - Math.pow(1 - a, 5), ke = (a) => a < 0.5 ? 16 * a * a * a * a * a : 1 - Math.pow(-2 * a + 2, 5) / 2, Ie = (a) => a === 0 ? 0 : Math.pow(2, 10 * a - 10), Oe = (a) => a === 1 ? 1 : 1 - Math.pow(2, -10 * a), ve = (a) => a === 0 ? 0 : a === 1 ? 1 : a < 0.5 ? Math.pow(2, 20 * a - 10) / 2 : (2 - Math.pow(2, -20 * a + 10)) / 2, P = 1.70158, X = P * 1.525, L = P + 1, Ye = (a) => L * a * a * a - P * a * a, Xe = (a) => 1 + L * Math.pow(a - 1, 3) + P * Math.pow(a - 1, 2), Me = (a) => a < 0.5 ? Math.pow(2 * a, 2) * ((X + 1) * 2 * a - X) / 2 : (Math.pow(2 * a - 2, 2) * ((X + 1) * (a * 2 - 2) + X) + 2) / 2, N = 2 * Math.PI / 3, U = 2 * Math.PI / 4.5, Pe = (a) => a === 0 ? 0 : a === 1 ? 1 : -Math.pow(2, 10 * a - 10) * Math.sin((a * 10 - 10.75) * N), Re = (a) => a === 0 ? 0 : a === 1 ? 1 : Math.pow(2, -10 * a) * Math.sin((a * 10 - 0.75) * N) + 1, Se = (a) => a === 0 ? 0 : a === 1 ? 1 : a < 0.5 ? -(Math.pow(2, 20 * a - 10) * Math.sin((20 * a - 11.125) * U)) / 2 : Math.pow(2, -20 * a + 10) * Math.sin((20 * a - 11.125) * U) / 2 + 1, M = (a) => a < 1 / 2.75 ? 7.5625 * a * a : a < 2 / 2.75 ? 7.5625 * (a -= 1.5 / 2.75) * a + 0.75 : a < 2.5 / 2.75 ? 7.5625 * (a -= 2.25 / 2.75) * a + 0.9375 : 7.5625 * (a -= 2.625 / 2.75) * a + 0.984375, ze = (a) => 1 - M(1 - a), Ce = (a) => a < 0.5 ? (1 - M(1 - 2 * a)) / 2 : (1 + M(2 * a - 1)) / 2, De = (a) => 1 - Math.cos(a * Math.PI / 2), Be = (a) => Math.sin(a * Math.PI / 2), Ge = (a) => -(Math.cos(Math.PI * a) - 1) / 2, Ue = (a) => 1 - Math.sqrt(1 - Math.pow(a, 2)), Ee = (a) => Math.sqrt(1 - Math.pow(a - 1, 2)), Le = (a) => a < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * a, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * a + 2, 2)) + 1) / 2, Ne = {
1415
- linear: E,
1514
+ const N = (a) => a, ge = (a) => a * a * a, de = (a) => 1 - Math.pow(1 - a, 3), fe = (a) => a < 0.5 ? 4 * a * a * a : 1 - Math.pow(-2 * a + 2, 3) / 2, me = (a) => a * a, pe = (a) => 1 - (1 - a) * (1 - a), ue = (a) => a < 0.5 ? 2 * a * a : 1 - Math.pow(-2 * a + 2, 2) / 2, be = (a) => a * a * a * a, ye = (a) => 1 - Math.pow(1 - a, 4), he = (a) => a < 0.5 ? 8 * a * a * a * a : 1 - Math.pow(-2 * a + 2, 4) / 2, xe = (a) => a * a * a * a * a, we = (a) => 1 - Math.pow(1 - a, 5), ke = (a) => a < 0.5 ? 16 * a * a * a * a * a : 1 - Math.pow(-2 * a + 2, 5) / 2, Ie = (a) => a === 0 ? 0 : Math.pow(2, 10 * a - 10), ve = (a) => a === 1 ? 1 : 1 - Math.pow(2, -10 * a), Oe = (a) => a === 0 ? 0 : a === 1 ? 1 : a < 0.5 ? Math.pow(2, 20 * a - 10) / 2 : (2 - Math.pow(2, -20 * a + 10)) / 2, R = 1.70158, X = R * 1.525, L = R + 1, Ye = (a) => L * a * a * a - R * a * a, Xe = (a) => 1 + L * Math.pow(a - 1, 3) + R * Math.pow(a - 1, 2), Me = (a) => a < 0.5 ? Math.pow(2 * a, 2) * ((X + 1) * 2 * a - X) / 2 : (Math.pow(2 * a - 2, 2) * ((X + 1) * (a * 2 - 2) + X) + 2) / 2, $ = 2 * Math.PI / 3, E = 2 * Math.PI / 4.5, Pe = (a) => a === 0 ? 0 : a === 1 ? 1 : -Math.pow(2, 10 * a - 10) * Math.sin((a * 10 - 10.75) * $), Re = (a) => a === 0 ? 0 : a === 1 ? 1 : Math.pow(2, -10 * a) * Math.sin((a * 10 - 0.75) * $) + 1, Se = (a) => a === 0 ? 0 : a === 1 ? 1 : a < 0.5 ? -(Math.pow(2, 20 * a - 10) * Math.sin((20 * a - 11.125) * E)) / 2 : Math.pow(2, -20 * a + 10) * Math.sin((20 * a - 11.125) * E) / 2 + 1, M = (a) => a < 1 / 2.75 ? 7.5625 * a * a : a < 2 / 2.75 ? 7.5625 * (a -= 1.5 / 2.75) * a + 0.75 : a < 2.5 / 2.75 ? 7.5625 * (a -= 2.25 / 2.75) * a + 0.9375 : 7.5625 * (a -= 2.625 / 2.75) * a + 0.984375, ze = (a) => 1 - M(1 - a), Ce = (a) => a < 0.5 ? (1 - M(1 - 2 * a)) / 2 : (1 + M(2 * a - 1)) / 2, De = (a) => 1 - Math.cos(a * Math.PI / 2), Be = (a) => Math.sin(a * Math.PI / 2), Ge = (a) => -(Math.cos(Math.PI * a) - 1) / 2, Ue = (a) => 1 - Math.sqrt(1 - Math.pow(a, 2)), Ee = (a) => Math.sqrt(1 - Math.pow(a - 1, 2)), Ne = (a) => a < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * a, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * a + 2, 2)) + 1) / 2, Le = {
1515
+ linear: N,
1416
1516
  easeInCubic: ge,
1417
1517
  easeOutCubic: de,
1418
1518
  easeInOutCubic: fe,
@@ -1426,8 +1526,8 @@ const E = (a) => a, ge = (a) => a * a * a, de = (a) => 1 - Math.pow(1 - a, 3), f
1426
1526
  easeOutQuint: we,
1427
1527
  easeInOutQuint: ke,
1428
1528
  easeInExpo: Ie,
1429
- easeOutExpo: Oe,
1430
- easeInOutExpo: ve,
1529
+ easeOutExpo: ve,
1530
+ easeInOutExpo: Oe,
1431
1531
  easeInBack: Ye,
1432
1532
  easeOutBack: Xe,
1433
1533
  easeInOutBack: Me,
@@ -1442,25 +1542,25 @@ const E = (a) => a, ge = (a) => a * a * a, de = (a) => 1 - Math.pow(1 - a, 3), f
1442
1542
  easeInOutSine: Ge,
1443
1543
  easeInCirc: Ue,
1444
1544
  easeOutCirc: Ee,
1445
- easeInOutCirc: Le
1545
+ easeInOutCirc: Ne
1446
1546
  };
1447
- function rt(a) {
1448
- return typeof a == "function" ? a : Ne[a] || E;
1547
+ function st(a) {
1548
+ return typeof a == "function" ? a : Le[a] || N;
1449
1549
  }
1450
- function nt(a = 100, e = 10, t = 1) {
1550
+ function ot(a = 100, e = 10, t = 1) {
1451
1551
  return (r) => {
1452
- const n = Math.sqrt(a / t), i = e / (2 * Math.sqrt(a * t));
1453
- if (i < 1) {
1454
- const s = n * Math.sqrt(1 - i * i);
1455
- return 1 - Math.exp(-i * n * r) * Math.cos(s * r);
1552
+ const n = Math.sqrt(a / t), s = e / (2 * Math.sqrt(a * t));
1553
+ if (s < 1) {
1554
+ const i = n * Math.sqrt(1 - s * s);
1555
+ return 1 - Math.exp(-s * n * r) * Math.cos(i * r);
1456
1556
  } else
1457
1557
  return 1 - Math.exp(-n * r);
1458
1558
  };
1459
1559
  }
1460
- function it(a, e, t, r) {
1560
+ function lt(a, e, t, r) {
1461
1561
  return (n) => {
1462
- const i = 3 * e, s = 3 * (r - e) - i, l = 1 - i - s;
1463
- return ((o) => ((l * o + s) * o + i) * o)(n);
1562
+ const s = 3 * e, i = 3 * (r - e) - s, l = 1 - s - i;
1563
+ return ((o) => ((l * o + i) * o + s) * o)(n);
1464
1564
  };
1465
1565
  }
1466
1566
  class q {
@@ -1477,16 +1577,16 @@ class q {
1477
1577
  const {
1478
1578
  threshold: r = 0.1,
1479
1579
  rootMargin: n = "0px",
1480
- triggerOnce: i = !1,
1481
- onEnter: s,
1580
+ triggerOnce: s = !1,
1581
+ onEnter: i,
1482
1582
  onExit: l
1483
1583
  } = t;
1484
1584
  this.elements.set(e, t), this.observer || (this.observer = new IntersectionObserver(
1485
1585
  (c) => {
1486
1586
  c.forEach((o) => {
1487
- var w, k;
1488
- const d = this.elements.get(o.target);
1489
- d && (o.isIntersecting ? ((w = d.onEnter) == null || w.call(d, o), d.triggerOnce && this.unobserve(o.target)) : (k = d.onExit) == null || k.call(d, o));
1587
+ var b, x;
1588
+ const g = this.elements.get(o.target);
1589
+ g && (o.isIntersecting ? ((b = g.onEnter) == null || b.call(g, o), g.triggerOnce && this.unobserve(o.target)) : (x = g.onExit) == null || x.call(g, o));
1490
1590
  });
1491
1591
  },
1492
1592
  { threshold: r, rootMargin: n }
@@ -1505,29 +1605,29 @@ class q {
1505
1605
  this.observer && (this.observer.disconnect(), this.elements.clear(), this.observer = null);
1506
1606
  }
1507
1607
  }
1508
- function qe(a, e) {
1608
+ function $e(a, e) {
1509
1609
  const t = new q();
1510
1610
  return t.observe(a, e), () => t.disconnect();
1511
1611
  }
1512
- function st(a, e) {
1612
+ function ct(a, e) {
1513
1613
  const t = new q();
1514
1614
  return a.forEach((r) => t.observe(r, e)), () => t.disconnect();
1515
1615
  }
1516
- function ot(a, e, t = {}) {
1517
- return qe(a, {
1616
+ function gt(a, e, t = {}) {
1617
+ return $e(a, {
1518
1618
  ...t,
1519
1619
  onEnter: e
1520
1620
  });
1521
1621
  }
1522
- function lt(a) {
1523
- const e = a.getBoundingClientRect(), t = window.innerHeight, r = e.top, n = e.height, i = 1 - (r + n) / (t + n);
1524
- return Math.max(0, Math.min(1, i));
1622
+ function dt(a) {
1623
+ const e = a.getBoundingClientRect(), t = window.innerHeight, r = e.top, n = e.height, s = 1 - (r + n) / (t + n);
1624
+ return Math.max(0, Math.min(1, s));
1525
1625
  }
1526
- function ct(a, e = 0) {
1527
- const t = a.getBoundingClientRect(), r = window.innerHeight, n = window.innerWidth, i = t.top + t.height * e <= r && t.bottom - t.height * e >= 0, s = t.left + t.width * e <= n && t.right - t.width * e >= 0;
1528
- return i && s;
1626
+ function ft(a, e = 0) {
1627
+ const t = a.getBoundingClientRect(), r = window.innerHeight, n = window.innerWidth, s = t.top + t.height * e <= r && t.bottom - t.height * e >= 0, i = t.left + t.width * e <= n && t.right - t.width * e >= 0;
1628
+ return s && i;
1529
1629
  }
1530
- const Ae = [
1630
+ const qe = [
1531
1631
  // ========== PREMIUM THEMES (NEW) ==========
1532
1632
  {
1533
1633
  id: "glass-morphism",
@@ -1992,54 +2092,54 @@ const Ae = [
1992
2092
  category: "animated",
1993
2093
  animation: "zoom"
1994
2094
  }
1995
- ], gt = ({
2095
+ ], mt = ({
1996
2096
  name: a,
1997
2097
  title: e,
1998
2098
  description: t = "Welcome to my portfolio",
1999
2099
  primaryButtonText: r = "Get Started",
2000
2100
  primaryButtonLink: n,
2001
- primaryButtonOnClick: i,
2002
- secondaryButtonText: s = "Learn More",
2101
+ primaryButtonOnClick: s,
2102
+ secondaryButtonText: i = "Learn More",
2003
2103
  secondaryButtonLink: l,
2004
2104
  secondaryButtonOnClick: c,
2005
2105
  theme: o,
2006
2106
  // ✅ NEW
2007
- backgroundGradient: d,
2107
+ backgroundGradient: g,
2008
2108
  // ⚠️ KEEP للناس اللي يبغون custom
2009
- animationType: w,
2010
- className: k = ""
2109
+ animationType: b,
2110
+ className: x = ""
2011
2111
  }) => {
2012
- const m = o ? Ae.find((p) => p.id === o) : null, h = (m == null ? void 0 : m.gradient) || d || "linear-gradient(135deg, #667eea 0%, #764ba2 100%)", b = w || (m == null ? void 0 : m.animation), O = () => {
2013
- n ? window.location.href = n : i && i();
2112
+ const m = o ? qe.find((p) => p.id === o) : null, w = (m == null ? void 0 : m.gradient) || g || "linear-gradient(135deg, #667eea 0%, #764ba2 100%)", h = b || (m == null ? void 0 : m.animation), v = () => {
2113
+ n ? window.location.href = n : s && s();
2014
2114
  }, I = () => {
2015
2115
  l ? window.location.href = l : c && c();
2016
- }, R = n ? /* @__PURE__ */ f("a", { href: n, style: { textDecoration: "none" }, children: /* @__PURE__ */ f(Y, { variant: "waves", size: "lg", children: r }) }) : /* @__PURE__ */ f(
2116
+ }, S = n ? /* @__PURE__ */ f("a", { href: n, style: { textDecoration: "none" }, children: /* @__PURE__ */ f(Y, { variant: "waves", size: "lg", children: r }) }) : /* @__PURE__ */ f(
2017
2117
  Y,
2018
2118
  {
2019
2119
  variant: "waves",
2020
2120
  size: "lg",
2021
- onClick: i || O,
2121
+ onClick: s || v,
2022
2122
  children: r
2023
2123
  }
2024
- ), S = l ? /* @__PURE__ */ f("a", { href: l, style: { textDecoration: "none" }, children: /* @__PURE__ */ f(Y, { variant: "blur", size: "lg", children: s }) }) : /* @__PURE__ */ f(
2124
+ ), z = l ? /* @__PURE__ */ f("a", { href: l, style: { textDecoration: "none" }, children: /* @__PURE__ */ f(Y, { variant: "blur", size: "lg", children: i }) }) : /* @__PURE__ */ f(
2025
2125
  Y,
2026
2126
  {
2027
2127
  variant: "blur",
2028
2128
  size: "lg",
2029
2129
  onClick: c || I,
2030
- children: s
2130
+ children: i
2031
2131
  }
2032
2132
  );
2033
2133
  return /* @__PURE__ */ f(
2034
2134
  "div",
2035
2135
  {
2036
- className: b ? `animate-gradient-${b}` : "",
2136
+ className: h ? `animate-gradient-${h}` : "",
2037
2137
  style: {
2038
- background: h,
2138
+ background: w,
2039
2139
  // ✅ استخدام الـ gradient المحدد
2040
2140
  minHeight: "100vh"
2041
2141
  },
2042
- children: /* @__PURE__ */ f("div", { className: `min-h-screen flex items-center justify-center p-8 ${k}`, children: /* @__PURE__ */ G("div", { className: "max-w-4xl w-full text-center space-y-8", children: [
2142
+ children: /* @__PURE__ */ f("div", { className: `min-h-screen flex items-center justify-center p-8 ${x}`, children: /* @__PURE__ */ U("div", { className: "max-w-4xl w-full text-center space-y-8", children: [
2043
2143
  /* @__PURE__ */ f(
2044
2144
  "h1",
2045
2145
  {
@@ -2073,7 +2173,7 @@ const Ae = [
2073
2173
  children: t
2074
2174
  }
2075
2175
  ),
2076
- /* @__PURE__ */ G(
2176
+ /* @__PURE__ */ U(
2077
2177
  "div",
2078
2178
  {
2079
2179
  className: "flex flex-wrap gap-6 justify-center mt-12",
@@ -2081,8 +2181,8 @@ const Ae = [
2081
2181
  animation: "fadeInUp 1.4s ease-out 0.6s backwards"
2082
2182
  },
2083
2183
  children: [
2084
- R,
2085
- S
2184
+ S,
2185
+ z
2086
2186
  ]
2087
2187
  }
2088
2188
  ),
@@ -2101,71 +2201,74 @@ const Ae = [
2101
2201
  );
2102
2202
  };
2103
2203
  export {
2104
- mt as AnimatedBounce,
2105
- pt as AnimatedGlow,
2106
- ut as AnimatedPulse,
2107
- bt as AnimatedShimmer,
2108
- u as Animator,
2109
- yt as Button,
2110
- ht as Button3DBlue,
2111
- xt as Button3DGreen,
2112
- wt as Button3DPink,
2113
- kt as Container,
2114
- It as ContainerButton,
2115
- Ot as ContainerContent,
2116
- vt as ContainerImage,
2117
- Yt as FeatureCard,
2118
- Xt as GhostBlue,
2119
- Mt as GhostPurple,
2120
- Pt as GhostRed,
2121
- Rt as GlassBlue,
2204
+ bt as AnimatedBounce,
2205
+ yt as AnimatedGlow,
2206
+ ht as AnimatedPulse,
2207
+ xt as AnimatedShimmer,
2208
+ y as Animator,
2209
+ wt as Button,
2210
+ kt as Button3DBlue,
2211
+ It as Button3DGreen,
2212
+ vt as Button3DPink,
2213
+ Ot as Container,
2214
+ Yt as ContainerButton,
2215
+ Xt as ContainerContent,
2216
+ Mt as ContainerImage,
2217
+ Pt as FeatureCard,
2218
+ Rt as GhostBlue,
2219
+ St as GhostPurple,
2220
+ zt as GhostRed,
2221
+ Ct as GlassBlue,
2122
2222
  Y as GlassButton,
2123
- St as GlassPink,
2124
- zt as GlassPurple,
2125
- Ct as GlassWhite,
2126
- Dt as GradientBlueGreen,
2127
- Bt as GradientCyan,
2128
- Gt as GradientOrangeRed,
2129
- Ut as GradientPurplePink,
2130
- Et as GradientSunset,
2131
- gt as Home,
2132
- Lt as NeonBlue,
2133
- Nt as NeonGreen,
2134
- qt as NeonPink,
2135
- At as OutlinedBlue,
2136
- Ht as OutlinedGradient,
2137
- Ft as OutlinedPurple,
2138
- Tt as ProductCard,
2223
+ Dt as GlassPink,
2224
+ Bt as GlassPurple,
2225
+ Gt as GlassWhite,
2226
+ Ut as GradientBlueGreen,
2227
+ Et as GradientCyan,
2228
+ Nt as GradientOrangeRed,
2229
+ Lt as GradientPurplePink,
2230
+ $t as GradientSunset,
2231
+ mt as Home,
2232
+ qt as NeonBlue,
2233
+ Vt as NeonGreen,
2234
+ At as NeonPink,
2235
+ Ht as OutlinedBlue,
2236
+ Ft as OutlinedGradient,
2237
+ Tt as OutlinedPurple,
2238
+ Wt as ProductCard,
2239
+ We as RotateIn,
2139
2240
  q as ScrollObserver,
2140
- Wt as SolidBlue,
2141
- Qt as SolidGreen,
2142
- jt as SolidPill,
2143
- Vt as SolidPurple,
2144
- $t as SolidRed,
2145
- Zt as StatCard,
2241
+ Fe as ScrollReveal,
2242
+ Qt as SolidBlue,
2243
+ jt as SolidGreen,
2244
+ Zt as SolidPill,
2245
+ Jt as SolidPurple,
2246
+ Kt as SolidRed,
2247
+ _t as StatCard,
2146
2248
  ce as TeleMotion,
2147
- Qe as animateGroup,
2148
- ot as animateOnScroll,
2149
- it as bezier,
2150
- We as createAnimator,
2151
- Ne as easings,
2152
- rt as getEasing,
2153
- $e as getPreset,
2249
+ Te as ZoomIn,
2250
+ je as animateGroup,
2251
+ gt as animateOnScroll,
2252
+ lt as bezier,
2253
+ Qe as createAnimator,
2254
+ Le as easings,
2255
+ st as getEasing,
2256
+ Ke as getPreset,
2154
2257
  le as getPresetNames,
2155
- Ze as getPresetsByCategory,
2156
- lt as getScrollProgress,
2157
- Ae as gradients,
2158
- ct as isInViewport,
2159
- qe as observeElement,
2160
- st as observeElements,
2161
- Ve as parallel,
2162
- x as presets,
2163
- je as sequence,
2164
- nt as spring,
2165
- Je as useAnimator,
2166
- et as useHoverAnimation,
2167
- tt as useInView,
2168
- Ke as usePresetAnimation,
2169
- _e as useScrollAnimation,
2170
- at as useStagger
2258
+ _e as getPresetsByCategory,
2259
+ dt as getScrollProgress,
2260
+ qe as gradients,
2261
+ ft as isInViewport,
2262
+ $e as observeElement,
2263
+ ct as observeElements,
2264
+ Je as parallel,
2265
+ k as presets,
2266
+ Ze as sequence,
2267
+ ot as spring,
2268
+ at as useAnimator,
2269
+ nt as useHoverAnimation,
2270
+ it as useInView,
2271
+ et as usePresetAnimation,
2272
+ tt as useScrollAnimation,
2273
+ rt as useStagger
2171
2274
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telecop",
3
- "version": "0.1.36",
3
+ "version": "0.1.39",
4
4
  "description": "Modern React UI Components Library with optional GSAP animations",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -13,14 +13,14 @@
13
13
  "require": "./dist/index.js"
14
14
  },
15
15
  "./ui": {
16
- "types": "./dist/ui/index.d.ts",
17
- "import": "./dist/ui/index.mjs",
18
- "require": "./dist/ui/index.js"
16
+ "types": "./dist/ui.d.ts",
17
+ "import": "./dist/ui.mjs",
18
+ "require": "./dist/ui.js"
19
19
  },
20
20
  "./motion": {
21
- "types": "./dist/motion/index.d.ts",
22
- "import": "./dist/motion/index.mjs",
23
- "require": "./dist/motion/index.js"
21
+ "types": "./dist/motion.d.ts",
22
+ "import": "./dist/motion.mjs",
23
+ "require": "./dist/motion.js"
24
24
  },
25
25
  "./style.css": "./dist/style.css"
26
26
  },