motioncss-ui 0.1.4 → 0.1.6

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.
@@ -1,4 +1,4 @@
1
- (function(C,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],b):(C=typeof globalThis<"u"?globalThis:C||self,b(C.MotionCSSUI={},C.React))})(this,(function(C,b){"use strict";var q={exports:{}},K={};/**
1
+ (function(j,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],m):(j=typeof globalThis<"u"?globalThis:j||self,m(j.MotionCSSUI={},j.React))})(this,(function(j,m){"use strict";var ee={exports:{}},K={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ve;function Ve(){if(ve)return K;ve=1;var m=b,n=Symbol.for("react.element"),h=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(p,a,f){var s,g={},c=null,E=null;f!==void 0&&(c=""+f),a.key!==void 0&&(c=""+a.key),a.ref!==void 0&&(E=a.ref);for(s in a)i.call(a,s)&&!u.hasOwnProperty(s)&&(g[s]=a[s]);if(p&&p.defaultProps)for(s in a=p.defaultProps,a)g[s]===void 0&&(g[s]=a[s]);return{$$typeof:n,type:p,key:c,ref:E,props:g,_owner:l.current}}return K.Fragment=h,K.jsx=d,K.jsxs=d,K}var z={};/**
9
+ */var pe;function Je(){if(pe)return K;pe=1;var l=m,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,v=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(p,a,f){var s,h={},y=null,E=null;f!==void 0&&(y=""+f),a.key!==void 0&&(y=""+a.key),a.ref!==void 0&&(E=a.ref);for(s in a)o.call(a,s)&&!c.hasOwnProperty(s)&&(h[s]=a[s]);if(p&&p.defaultProps)for(s in a=p.defaultProps,a)h[s]===void 0&&(h[s]=a[s]);return{$$typeof:n,type:p,key:y,ref:E,props:h,_owner:v.current}}return K.Fragment=i,K.jsx=u,K.jsxs=u,K}var H={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,30 +14,34 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var pe;function Be(){return pe||(pe=1,process.env.NODE_ENV!=="production"&&(function(){var m=b,n=Symbol.for("react.element"),h=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),_=Symbol.iterator,S="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var t=_&&e[_]||e[S];return typeof t=="function"?t:null}var j=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];M("error",e,r)}}function M(e,t,r){{var o=j.ReactDebugCurrentFrame,R=o.getStackAddendum();R!==""&&(t+="%s",r=r.concat([R]));var x=r.map(function(y){return String(y)});x.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,x)}}var I=!1,W=!1,D=!1,Y=!1,V=!1,X;X=Symbol.for("react.module.reference");function B(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===u||V||e===l||e===f||e===s||Y||e===E||I||W||D||typeof e=="object"&&e!==null&&(e.$$typeof===c||e.$$typeof===g||e.$$typeof===d||e.$$typeof===p||e.$$typeof===a||e.$$typeof===X||e.getModuleId!==void 0))}function H(e,t,r){var o=e.displayName;if(o)return o;var R=t.displayName||t.name||"";return R!==""?r+"("+R+")":r}function me(e){return e.displayName||"Context"}function L(e){if(e==null)return null;if(typeof e.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case i:return"Fragment";case h:return"Portal";case u:return"Profiler";case l:return"StrictMode";case f:return"Suspense";case s:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var t=e;return me(t)+".Consumer";case d:var r=e;return me(r._context)+".Provider";case a:return H(e,e.render,"ForwardRef");case g:var o=e.displayName||null;return o!==null?o:L(e.type)||"Memo";case c:{var R=e,x=R._payload,y=R._init;try{return L(y(x))}catch{return null}}}return null}var N=Object.assign,Z=0,ge,Re,be,Ee,_e,xe,Se;function we(){}we.__reactDisabledLog=!0;function tt(){{if(Z===0){ge=console.log,Re=console.info,be=console.warn,Ee=console.error,_e=console.group,xe=console.groupCollapsed,Se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Z++}}function rt(){{if(Z--,Z===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:ge}),info:N({},e,{value:Re}),warn:N({},e,{value:be}),error:N({},e,{value:Ee}),group:N({},e,{value:_e}),groupCollapsed:N({},e,{value:xe}),groupEnd:N({},e,{value:Se})})}Z<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oe=j.ReactCurrentDispatcher,ie;function ee(e,t,r){{if(ie===void 0)try{throw Error()}catch(R){var o=R.stack.trim().match(/\n( *(at )?)/);ie=o&&o[1]||""}return`
18
- `+ie+e}}var se=!1,te;{var nt=typeof WeakMap=="function"?WeakMap:Map;te=new nt}function Te(e,t){if(!e||se)return"";{var r=te.get(e);if(r!==void 0)return r}var o;se=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var x;x=oe.current,oe.current=null,tt();try{if(t){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(k){o=k}Reflect.construct(e,[],y)}else{try{y.call()}catch(k){o=k}e.call(y.prototype)}}else{try{throw Error()}catch(k){o=k}e()}}catch(k){if(k&&o&&typeof k.stack=="string"){for(var v=k.stack.split(`
19
- `),O=o.stack.split(`
20
- `),T=v.length-1,P=O.length-1;T>=1&&P>=0&&v[T]!==O[P];)P--;for(;T>=1&&P>=0;T--,P--)if(v[T]!==O[P]){if(T!==1||P!==1)do if(T--,P--,P<0||v[T]!==O[P]){var A=`
21
- `+v[T].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,A),A}while(T>=1&&P>=0);break}}}finally{se=!1,oe.current=x,rt(),Error.prepareStackTrace=R}var G=e?e.displayName||e.name:"",U=G?ee(G):"";return typeof e=="function"&&te.set(e,U),U}function at(e,t,r){return Te(e,!1)}function ot(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function re(e,t,r){if(e==null)return"";if(typeof e=="function")return Te(e,ot(e));if(typeof e=="string")return ee(e);switch(e){case f:return ee("Suspense");case s:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case a:return at(e.render);case g:return re(e.type,t,r);case c:{var o=e,R=o._payload,x=o._init;try{return re(x(R),t,r)}catch{}}}return""}var Q=Object.prototype.hasOwnProperty,Pe={},je=j.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);je.setExtraStackFrame(r)}else je.setExtraStackFrame(null)}function it(e,t,r,o,R){{var x=Function.call.bind(Q);for(var y in e)if(x(e,y)){var v=void 0;try{if(typeof e[y]!="function"){var O=Error((o||"React class")+": "+r+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}v=e[y](t,y,o,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(T){v=T}v&&!(v instanceof Error)&&(ne(R),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",r,y,typeof v),ne(null)),v instanceof Error&&!(v.message in Pe)&&(Pe[v.message]=!0,ne(R),w("Failed %s type: %s",r,v.message),ne(null))}}}var st=Array.isArray;function ce(e){return st(e)}function ct(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function ut(e){try{return Oe(e),!1}catch{return!0}}function Oe(e){return""+e}function Ce(e){if(ut(e))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ct(e)),Oe(e)}var ke=j.ReactCurrentOwner,lt={key:!0,ref:!0,__self:!0,__source:!0},Fe,$e;function ft(e){if(Q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function dt(e){if(Q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function vt(e,t){typeof e.ref=="string"&&ke.current}function pt(e,t){{var r=function(){Fe||(Fe=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function ht(e,t){{var r=function(){$e||($e=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var yt=function(e,t,r,o,R,x,y){var v={$$typeof:n,type:e,key:t,ref:r,props:y,_owner:x};return v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(v,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(v,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v};function mt(e,t,r,o,R){{var x,y={},v=null,O=null;r!==void 0&&(Ce(r),v=""+r),dt(t)&&(Ce(t.key),v=""+t.key),ft(t)&&(O=t.ref,vt(t,R));for(x in t)Q.call(t,x)&&!lt.hasOwnProperty(x)&&(y[x]=t[x]);if(e&&e.defaultProps){var T=e.defaultProps;for(x in T)y[x]===void 0&&(y[x]=T[x])}if(v||O){var P=typeof e=="function"?e.displayName||e.name||"Unknown":e;v&&pt(y,P),O&&ht(y,P)}return yt(e,v,O,R,o,ke.current,y)}}var ue=j.ReactCurrentOwner,Me=j.ReactDebugCurrentFrame;function J(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(r)}else Me.setExtraStackFrame(null)}var le;le=!1;function fe(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ie(){{if(ue.current){var e=L(ue.current.type);if(e)return`
17
+ */var ye;function Ge(){return ye||(ye=1,process.env.NODE_ENV!=="production"&&(function(){var l=m,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),p=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),x=Symbol.iterator,S="@@iterator";function M(e){if(e===null||typeof e!="object")return null;var t=x&&e[x]||e[S];return typeof t=="function"?t:null}var O=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),d=1;d<t;d++)r[d-1]=arguments[d];A("error",e,r)}}function A(e,t,r){{var d=O.ReactDebugCurrentFrame,R=d.getStackAddendum();R!==""&&(t+="%s",r=r.concat([R]));var _=r.map(function(b){return String(b)});_.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,_)}}var I=!1,W=!1,$=!1,L=!1,V=!1,J;J=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===c||V||e===v||e===f||e===s||L||e===E||I||W||$||typeof e=="object"&&e!==null&&(e.$$typeof===y||e.$$typeof===h||e.$$typeof===u||e.$$typeof===p||e.$$typeof===a||e.$$typeof===J||e.getModuleId!==void 0))}function Z(e,t,r){var d=e.displayName;if(d)return d;var R=t.displayName||t.name||"";return R!==""?r+"("+R+")":r}function xe(e){return e.displayName||"Context"}function Y(e){if(e==null)return null;if(typeof e.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case i:return"Portal";case c:return"Profiler";case v:return"StrictMode";case f:return"Suspense";case s:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var t=e;return xe(t)+".Consumer";case u:var r=e;return xe(r._context)+".Provider";case a:return Z(e,e.render,"ForwardRef");case h:var d=e.displayName||null;return d!==null?d:Y(e.type)||"Memo";case y:{var R=e,_=R._payload,b=R._init;try{return Y(b(_))}catch{return null}}}return null}var B=Object.assign,Q=0,_e,Se,we,Pe,Te,je,Ce;function Oe(){}Oe.__reactDisabledLog=!0;function lt(){{if(Q===0){_e=console.log,Se=console.info,we=console.warn,Pe=console.error,Te=console.group,je=console.groupCollapsed,Ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Oe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Q++}}function ut(){{if(Q--,Q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:B({},e,{value:_e}),info:B({},e,{value:Se}),warn:B({},e,{value:we}),error:B({},e,{value:Pe}),group:B({},e,{value:Te}),groupCollapsed:B({},e,{value:je}),groupEnd:B({},e,{value:Ce})})}Q<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var se=O.ReactCurrentDispatcher,ie;function te(e,t,r){{if(ie===void 0)try{throw Error()}catch(R){var d=R.stack.trim().match(/\n( *(at )?)/);ie=d&&d[1]||""}return`
18
+ `+ie+e}}var ce=!1,re;{var ft=typeof WeakMap=="function"?WeakMap:Map;re=new ft}function ke(e,t){if(!e||ce)return"";{var r=re.get(e);if(r!==void 0)return r}var d;ce=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=se.current,se.current=null,lt();try{if(t){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(F){d=F}Reflect.construct(e,[],b)}else{try{b.call()}catch(F){d=F}e.call(b.prototype)}}else{try{throw Error()}catch(F){d=F}e()}}catch(F){if(F&&d&&typeof F.stack=="string"){for(var g=F.stack.split(`
19
+ `),k=d.stack.split(`
20
+ `),P=g.length-1,T=k.length-1;P>=1&&T>=0&&g[P]!==k[T];)T--;for(;P>=1&&T>=0;P--,T--)if(g[P]!==k[T]){if(P!==1||T!==1)do if(P--,T--,T<0||g[P]!==k[T]){var D=`
21
+ `+g[P].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,D),D}while(P>=1&&T>=0);break}}}finally{ce=!1,se.current=_,ut(),Error.prepareStackTrace=R}var z=e?e.displayName||e.name:"",U=z?te(z):"";return typeof e=="function"&&re.set(e,U),U}function dt(e,t,r){return ke(e,!1)}function vt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,r){if(e==null)return"";if(typeof e=="function")return ke(e,vt(e));if(typeof e=="string")return te(e);switch(e){case f:return te("Suspense");case s:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case a:return dt(e.render);case h:return ne(e.type,t,r);case y:{var d=e,R=d._payload,_=d._init;try{return ne(_(R),t,r)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,Fe={},Me=O.ReactDebugCurrentFrame;function ae(e){if(e){var t=e._owner,r=ne(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(r)}else Me.setExtraStackFrame(null)}function pt(e,t,r,d,R){{var _=Function.call.bind(q);for(var b in e)if(_(e,b)){var g=void 0;try{if(typeof e[b]!="function"){var k=Error((d||"React class")+": "+r+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw k.name="Invariant Violation",k}g=e[b](t,b,d,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){g=P}g&&!(g instanceof Error)&&(ae(R),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",r,b,typeof g),ae(null)),g instanceof Error&&!(g.message in Fe)&&(Fe[g.message]=!0,ae(R),w("Failed %s type: %s",r,g.message),ae(null))}}}var yt=Array.isArray;function le(e){return yt(e)}function ht(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function gt(e){try{return Ae(e),!1}catch{return!0}}function Ae(e){return""+e}function Ie(e){if(gt(e))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ht(e)),Ae(e)}var De=O.ReactCurrentOwner,mt={key:!0,ref:!0,__self:!0,__source:!0},$e,Le;function bt(e){if(q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Rt(e){if(q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Et(e,t){typeof e.ref=="string"&&De.current}function xt(e,t){{var r=function(){$e||($e=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function _t(e,t){{var r=function(){Le||(Le=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var St=function(e,t,r,d,R,_,b){var g={$$typeof:n,type:e,key:t,ref:r,props:b,_owner:_};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function wt(e,t,r,d,R){{var _,b={},g=null,k=null;r!==void 0&&(Ie(r),g=""+r),Rt(t)&&(Ie(t.key),g=""+t.key),bt(t)&&(k=t.ref,Et(t,R));for(_ in t)q.call(t,_)&&!mt.hasOwnProperty(_)&&(b[_]=t[_]);if(e&&e.defaultProps){var P=e.defaultProps;for(_ in P)b[_]===void 0&&(b[_]=P[_])}if(g||k){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&xt(b,T),k&&_t(b,T)}return St(e,g,k,R,d,De.current,b)}}var ue=O.ReactCurrentOwner,Ye=O.ReactDebugCurrentFrame;function G(e){if(e){var t=e._owner,r=ne(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(r)}else Ye.setExtraStackFrame(null)}var fe;fe=!1;function de(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function We(){{if(ue.current){var e=Y(ue.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function gt(e){return""}var Ae={};function Rt(e){{var t=Ie();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
23
+ Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Ve={};function Tt(e){{var t=We();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
24
24
 
25
- Check the top-level render call using <`+r+">.")}return t}}function De(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=Rt(t);if(Ae[r])return;Ae[r]=!0;var o="";e&&e._owner&&e._owner!==ue.current&&(o=" It was passed a child from "+L(e._owner.type)+"."),J(e),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,o),J(null)}}function Ye(e,t){{if(typeof e!="object")return;if(ce(e))for(var r=0;r<e.length;r++){var o=e[r];fe(o)&&De(o,t)}else if(fe(e))e._store&&(e._store.validated=!0);else if(e){var R=$(e);if(typeof R=="function"&&R!==e.entries)for(var x=R.call(e),y;!(y=x.next()).done;)fe(y.value)&&De(y.value,t)}}}function bt(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===a||t.$$typeof===g))r=t.propTypes;else return;if(r){var o=L(t);it(r,e.props,"prop",o,e)}else if(t.PropTypes!==void 0&&!le){le=!0;var R=L(t);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Et(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var o=t[r];if(o!=="children"&&o!=="key"){J(e),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),J(null);break}}e.ref!==null&&(J(e),w("Invalid attribute `ref` supplied to `React.Fragment`."),J(null))}}var Le={};function We(e,t,r,o,R,x){{var y=B(e);if(!y){var v="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(v+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=gt();O?v+=O:v+=Ie();var T;e===null?T="null":ce(e)?T="array":e!==void 0&&e.$$typeof===n?(T="<"+(L(e.type)||"Unknown")+" />",v=" Did you accidentally export a JSX literal instead of a component?"):T=typeof e,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,v)}var P=mt(e,t,r,R,x);if(P==null)return P;if(y){var A=t.children;if(A!==void 0)if(o)if(ce(A)){for(var G=0;G<A.length;G++)Ye(A[G],e);Object.freeze&&Object.freeze(A)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ye(A,e)}if(Q.call(t,"key")){var U=L(e),k=Object.keys(t).filter(function(Pt){return Pt!=="key"}),de=k.length>0?"{key: someKey, "+k.join(": ..., ")+": ...}":"{key: someKey}";if(!Le[U+de]){var Tt=k.length>0?"{"+k.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+r+">.")}return t}}function Ne(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=Tt(t);if(Ve[r])return;Ve[r]=!0;var d="";e&&e._owner&&e._owner!==ue.current&&(d=" It was passed a child from "+Y(e._owner.type)+"."),G(e),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,d),G(null)}}function Be(e,t){{if(typeof e!="object")return;if(le(e))for(var r=0;r<e.length;r++){var d=e[r];de(d)&&Ne(d,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var R=M(e);if(typeof R=="function"&&R!==e.entries)for(var _=R.call(e),b;!(b=_.next()).done;)de(b.value)&&Ne(b.value,t)}}}function jt(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===a||t.$$typeof===h))r=t.propTypes;else return;if(r){var d=Y(t);pt(r,e.props,"prop",d,e)}else if(t.PropTypes!==void 0&&!fe){fe=!0;var R=Y(t);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ct(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var d=t[r];if(d!=="children"&&d!=="key"){G(e),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),G(null);break}}e.ref!==null&&(G(e),w("Invalid attribute `ref` supplied to `React.Fragment`."),G(null))}}var Ue={};function Xe(e,t,r,d,R,_){{var b=N(e);if(!b){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var k=Pt();k?g+=k:g+=We();var P;e===null?P="null":le(e)?P="array":e!==void 0&&e.$$typeof===n?(P="<"+(Y(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):P=typeof e,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",P,g)}var T=wt(e,t,r,R,_);if(T==null)return T;if(b){var D=t.children;if(D!==void 0)if(d)if(le(D)){for(var z=0;z<D.length;z++)Be(D[z],e);Object.freeze&&Object.freeze(D)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Be(D,e)}if(q.call(t,"key")){var U=Y(e),F=Object.keys(t).filter(function(It){return It!=="key"}),ve=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Ue[U+ve]){var At=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,de,U,Tt,U),Le[U+de]=!0}}return e===i?Et(P):bt(P),P}}function _t(e,t,r){return We(e,t,r,!0)}function xt(e,t,r){return We(e,t,r,!1)}var St=xt,wt=_t;z.Fragment=i,z.jsx=St,z.jsxs=wt})()),z}var he;function Ne(){return he||(he=1,process.env.NODE_ENV==="production"?q.exports=Ve():q.exports=Be()),q.exports}var F=Ne();function Ue({children:m,strength:n=.3,speed:h=.25,scale:i=1,className:l=""}){const u=b.useRef(null),d=a=>{const f=u.current;if(!f)return;const s=f.getBoundingClientRect(),g=a.clientX-(s.left+s.width/2),c=a.clientY-(s.top+s.height/2);f.style.transform=`
31
- translate(${g*n}px, ${c*n}px)
32
- scale(${i})
33
- `},p=()=>{const a=u.current;a&&(a.style.transform="translate(0, 0) scale(1)")};return F.jsx("div",{ref:u,className:l,onMouseMove:d,onMouseLeave:p,style:{display:"inline-block",transition:`transform ${h}s ease-out`,willChange:"transform"},children:m})}function ae(){const[m,n]=b.useState(!1);return b.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const h=window.matchMedia("(prefers-reduced-motion: reduce)");n(h.matches);const i=l=>n(l.matches);return h.addEventListener("change",i),()=>h.removeEventListener("change",i)},[]),m}function Xe({children:m,tilt:n=15,scale:h=1.03,glare:i=!0,perspective:l=1e3,className:u="",style:d}){const p=b.useRef(null),a=b.useRef(null),f=ae(),s=c=>{const E=p.current;if(!E||f)return;const _=E.getBoundingClientRect(),S=(c.clientX-_.left)/_.width,$=(c.clientY-_.top)/_.height,j=(S-.5)*2*n,w=(.5-$)*2*n;E.style.transition="transform 0.08s linear",E.style.transform=`perspective(${l}px) rotateX(${w}deg) rotateY(${j}deg) scale(${h})`;const M=a.current;M&&(M.style.opacity="1",M.style.background=`radial-gradient(circle at ${S*100}% ${$*100}%, rgba(255,255,255,0.35), transparent 55%)`)},g=()=>{const c=p.current;c&&(c.style.transition="transform 0.4s ease-out",c.style.transform=`perspective(${l}px) rotateX(0deg) rotateY(0deg) scale(1)`,a.current&&(a.current.style.opacity="0"))};return F.jsxs("div",{ref:p,className:u,onMouseMove:s,onMouseLeave:g,style:{position:"relative",transformStyle:"preserve-3d",willChange:"transform",...d},children:[m,i&&F.jsx("div",{ref:a,"aria-hidden":"true",style:{position:"absolute",inset:0,borderRadius:"inherit",pointerEvents:"none",opacity:0,transition:"opacity 0.3s ease-out"}})]})}const Je={radial:{opacity:1,blurScale:1,gradient:"radial"},glow:{opacity:.9,blurScale:1.5,gradient:"radial"},soft:{opacity:.7,blurScale:2,gradient:"radial"},sharp:{opacity:1,blurScale:.3,gradient:"radial"},neon:{opacity:1,blurScale:1.2,gradient:"radial"}};function Ge({children:m,size:n=320,intensity:h=.85,color:i="#ffffff",blur:l=60,mode:u="radial",enabled:d=!0,className:p="",style:a}){const f=b.useRef(null),s=b.useRef(null),g=b.useRef(!1),c=Je[u],E=b.useCallback((_,S)=>(n/2*c.blurScale,l*c.blurScale,u==="neon"?`radial-gradient(${n*c.blurScale}px circle at ${_}px ${S}px,
34
- ${i}33 0%,
35
- ${i}22 25%,
36
- ${i}11 50%,
37
- transparent 75%)`:u==="sharp"?`radial-gradient(${n*.4}px circle at ${_}px ${S}px,
38
- ${i}dd 0%,
39
- ${i}99 30%,
40
- transparent 100%)`:`radial-gradient(${n*c.blurScale}px circle at ${_}px ${S}px,
41
- ${i}${Math.round(h*255).toString(16).padStart(2,"0")} 0%,
42
- ${i}${Math.round(h*.5*255).toString(16).padStart(2,"0")} 40%,
43
- transparent 100%)`),[n,h,i,l,u,c]);return b.useEffect(()=>{if(!d)return;const _=f.current,S=s.current;if(!_||!S)return;const $=M=>{const I=_.getBoundingClientRect(),W=M.clientX-I.left,D=M.clientY-I.top;S.style.background=E(W,D),S.style.opacity=String(c.opacity)},j=()=>{g.current=!0,S.style.transition="opacity 300ms ease",S.style.opacity=String(c.opacity)},w=()=>{g.current=!1,S.style.transition="opacity 600ms ease",S.style.opacity="0"};return _.addEventListener("mousemove",$),_.addEventListener("mouseenter",j),_.addEventListener("mouseleave",w),()=>{_.removeEventListener("mousemove",$),_.removeEventListener("mouseenter",j),_.removeEventListener("mouseleave",w)}},[d,E,c]),F.jsxs("div",{ref:f,className:`motioncss-spotlight ${p}`,style:{position:"relative",overflow:"hidden",...a},children:[m,F.jsx("div",{ref:s,"aria-hidden":"true",style:{position:"absolute",inset:0,pointerEvents:"none",opacity:0,zIndex:10,filter:l>0?`blur(${l*.15}px)`:void 0,mixBlendMode:u==="neon"?"screen":"normal"}})]})}function ye({threshold:m=.2,rootMargin:n="0px",once:h=!0}={}){const i=b.useRef(null),[l,u]=b.useState(!1);return b.useEffect(()=>{const d=i.current;if(!d)return;if(typeof IntersectionObserver>"u"){u(!0);return}const p=new IntersectionObserver(([a])=>{a.isIntersecting?(u(!0),h&&p.disconnect()):h||u(!1)},{threshold:m,rootMargin:n});return p.observe(d),()=>p.disconnect()},[m,n,h]),{ref:i,inView:l}}function Ke({children:m,stagger:n=70,duration:h=700,delay:i=0,once:l=!0,as:u="div",className:d="",style:p}){const{ref:a,inView:f}=ye({once:l}),s=ae(),g=u,c=m.split(/\s+/).filter(Boolean),E=f||s;return F.jsx(g,{ref:a,className:d,style:p,"aria-label":m,children:c.map((_,S)=>F.jsx("span",{"aria-hidden":"true",style:{display:"inline-block",overflow:"hidden",verticalAlign:"top",paddingBottom:"0.15em",marginRight:"0.25em"},children:F.jsx("span",{style:{display:"inline-block",transform:E?"translateY(0)":"translateY(110%)",opacity:E?1:0,transition:s?"none":`transform ${h}ms cubic-bezier(0.22, 1, 0.36, 1) ${i+S*n}ms, opacity ${h}ms ease ${i+S*n}ms`},children:_})},S))})}function ze(m,n){switch(m){case"fade-up":return`translateY(${n}px)`;case"fade-down":return`translateY(${-n}px)`;case"fade-left":return`translateX(${n}px)`;case"fade-right":return`translateX(${-n}px)`;case"zoom":return"scale(0.92)";default:return"none"}}function He({children:m,animation:n="fade-up",duration:h=700,delay:i=0,distance:l=32,threshold:u=.2,once:d=!0,className:p="",style:a}){const{ref:f,inView:s}=ye({threshold:u,once:d}),g=ae(),c=s||g;return F.jsx("div",{ref:f,className:p,style:{opacity:c?1:0,transform:c?"none":ze(n,l),transition:g?"none":`opacity ${h}ms ease ${i}ms, transform ${h}ms cubic-bezier(0.22, 1, 0.36, 1) ${i}ms`,willChange:"opacity, transform",...a},children:m})}function Ze({children:m,colors:n=["#6366f1","#ec4899","#f59e0b","#06b6d4"],angle:h=120,duration:i=12,className:l="",style:u}){const d=[...n,n[0]].join(", ");return F.jsx("div",{className:`mcss-gradient-flow ${l}`.trim(),style:{backgroundImage:`linear-gradient(${h}deg, ${d})`,animationDuration:`${i}s`,...u},children:m})}function Qe(m,n,h,i){const l=[],u=h;if(m==="left"||m==="right"){const d=m==="left",p=d?n*100:100-n*100,a=d?p-100:p+100;l.push(`${a}% 0%`),l.push(`${a}% 100%`);for(let f=i;f>=0;f--){const s=f/i,g=s*100,c=Math.sin(s*Math.PI)*u,E=p+(d?c:-c);l.push(`${E}% ${g}%`)}}else{const d=m==="top",p=d?n*100:100-n*100,a=d?p-100:p+100;l.push(`0% ${a}%`),l.push(`100% ${a}%`);for(let f=i;f>=0;f--){const s=f/i,g=s*100,c=Math.sin(s*Math.PI)*u,E=p+(d?c:-c);l.push(`${g}% ${E}%`)}}return`polygon(${l.join(", ")})`}function qe({origin:m="left",duration:n=900,color:h="#111111",curve:i=8,resolution:l=20,blur:u=0,onComplete:d,style:p}){const a=b.useRef(null),f=b.useRef(null),s=b.useRef(null);return b.useEffect(()=>{const g=a.current;if(!g)return;const c=E=>{s.current||(s.current=E);const _=E-s.current,S=Math.min(_/n,1)*2;g.style.clipPath=Qe(m,S,i,l),S<2?f.current=requestAnimationFrame(c):(g.style.clipPath="polygon(200% 0%, 200% 100%, 100% 100%, 100% 0%)",d==null||d())};return f.current=requestAnimationFrame(c),()=>{f.current&&cancelAnimationFrame(f.current)}},[m,n,i,l,d]),F.jsx("div",{ref:a,"aria-hidden":"true",style:{position:"fixed",inset:0,zIndex:9999,pointerEvents:"none",background:h,backdropFilter:u>0?`blur(${u}px)`:void 0,WebkitBackdropFilter:u>0?`blur(${u}px)`:void 0,...p}})}function et({children:m,origin:n="left",duration:h=900,color:i="#111111",curve:l=8,blur:u=0,className:d="",style:p}){const a=b.useRef(null),f=b.useRef(null),s=b.useRef(null),[g,c]=b.useState(!1);return b.useEffect(()=>{const E=a.current;if(!E)return;const _=S=>{s.current||(s.current=S);const $=Math.min((S-s.current)/h,1),j=[],w=l,M=20;if(n==="left"||n==="right"){const I=n==="left",W=I?$*100:100-$*100,D=I?150:-50;for(let Y=0;Y<=M;Y++){const V=Y/M,X=V*100,B=Math.sin(V*Math.PI)*w,H=W+(I?B:-B);j.push(`${H}% ${X}%`)}j.push(`${D}% 100%`),j.push(`${D}% 0%`)}else{const I=n==="top",W=I?$*100:100-$*100,D=I?150:-50;for(let Y=0;Y<=M;Y++){const V=Y/M,X=V*100,B=Math.sin(V*Math.PI)*w,H=W+(I?B:-B);j.push(`${X}% ${H}%`)}j.push(`100% ${D}%`),j.push(`0% ${D}%`)}E.style.clipPath=`polygon(${j.join(", ")})`,$<1?f.current=requestAnimationFrame(_):(E.style.clipPath="none",E.style.display="none",c(!0))};return f.current=requestAnimationFrame(_),()=>{f.current&&cancelAnimationFrame(f.current)}},[n,h,i,l]),F.jsxs("div",{className:`motioncss-wave-reveal ${d}`,style:{position:"relative",overflow:"hidden",...p},children:[m,!g&&F.jsx("div",{ref:a,"aria-hidden":"true",style:{position:"absolute",inset:0,background:i,backdropFilter:u>0?`blur(${u}px)`:void 0,WebkitBackdropFilter:u>0?`blur(${u}px)`:void 0,zIndex:10,pointerEvents:"none"}})]})}C.EdgeWave=qe,C.GradientFlow=Ze,C.Magnetic=Ue,C.RevealText=Ke,C.ScrollReveal=He,C.Spotlight=Ge,C.TiltCard=Xe,C.WaveReveal=et,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
30
+ <%s key={someKey} {...props} />`,ve,U,At,U),Ue[U+ve]=!0}}return e===o?Ct(T):jt(T),T}}function Ot(e,t,r){return Xe(e,t,r,!0)}function kt(e,t,r){return Xe(e,t,r,!1)}var Ft=kt,Mt=Ot;H.Fragment=o,H.jsx=Ft,H.jsxs=Mt})()),H}var he;function ze(){return he||(he=1,process.env.NODE_ENV==="production"?ee.exports=Je():ee.exports=Ge()),ee.exports}var C=ze();function Ke({children:l,strength:n=.3,speed:i=.25,scale:o=1,className:v=""}){const c=m.useRef(null),u=a=>{const f=c.current;if(!f)return;const s=f.getBoundingClientRect(),h=a.clientX-(s.left+s.width/2),y=a.clientY-(s.top+s.height/2);f.style.transform=`
31
+ translate(${h*n}px, ${y*n}px)
32
+ scale(${o})
33
+ `},p=()=>{const a=c.current;a&&(a.style.transform="translate(0, 0) scale(1)")};return C.jsx("div",{ref:c,className:v,onMouseMove:u,onMouseLeave:p,style:{display:"inline-block",transition:`transform ${i}s ease-out`,willChange:"transform"},children:l})}function oe(){const[l,n]=m.useState(!1);return m.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const i=window.matchMedia("(prefers-reduced-motion: reduce)");n(i.matches);const o=v=>n(v.matches);return i.addEventListener("change",o),()=>i.removeEventListener("change",o)},[]),l}function He({children:l,tilt:n=15,scale:i=1.03,glare:o=!0,perspective:v=1e3,className:c="",style:u}){const p=m.useRef(null),a=m.useRef(null),f=oe(),s=y=>{const E=p.current;if(!E||f)return;const x=E.getBoundingClientRect(),S=(y.clientX-x.left)/x.width,M=(y.clientY-x.top)/x.height,O=(S-.5)*2*n,w=(.5-M)*2*n;E.style.transition="transform 0.08s linear",E.style.transform=`perspective(${v}px) rotateX(${w}deg) rotateY(${O}deg) scale(${i})`;const A=a.current;A&&(A.style.opacity="1",A.style.background=`radial-gradient(circle at ${S*100}% ${M*100}%, rgba(255,255,255,0.35), transparent 55%)`)},h=()=>{const y=p.current;y&&(y.style.transition="transform 0.4s ease-out",y.style.transform=`perspective(${v}px) rotateX(0deg) rotateY(0deg) scale(1)`,a.current&&(a.current.style.opacity="0"))};return C.jsxs("div",{ref:p,className:c,onMouseMove:s,onMouseLeave:h,style:{position:"relative",transformStyle:"preserve-3d",willChange:"transform",...u},children:[l,o&&C.jsx("div",{ref:a,"aria-hidden":"true",style:{position:"absolute",inset:0,borderRadius:"inherit",pointerEvents:"none",opacity:0,transition:"opacity 0.3s ease-out"}})]})}const Ze={radial:{opacity:1,blurScale:1,gradient:"radial"},glow:{opacity:.9,blurScale:1.5,gradient:"radial"},soft:{opacity:.7,blurScale:2,gradient:"radial"},sharp:{opacity:1,blurScale:.3,gradient:"radial"},neon:{opacity:1,blurScale:1.2,gradient:"radial"}};function Qe({children:l,size:n=320,intensity:i=.85,color:o="#ffffff",blur:v=60,mode:c="radial",enabled:u=!0,className:p="",style:a}){const f=m.useRef(null),s=m.useRef(null),h=m.useRef(!1),y=Ze[c],E=m.useCallback((x,S)=>(n/2*y.blurScale,v*y.blurScale,c==="neon"?`radial-gradient(${n*y.blurScale}px circle at ${x}px ${S}px,
34
+ ${o}33 0%,
35
+ ${o}22 25%,
36
+ ${o}11 50%,
37
+ transparent 75%)`:c==="sharp"?`radial-gradient(${n*.4}px circle at ${x}px ${S}px,
38
+ ${o}dd 0%,
39
+ ${o}99 30%,
40
+ transparent 100%)`:`radial-gradient(${n*y.blurScale}px circle at ${x}px ${S}px,
41
+ ${o}${Math.round(i*255).toString(16).padStart(2,"0")} 0%,
42
+ ${o}${Math.round(i*.5*255).toString(16).padStart(2,"0")} 40%,
43
+ transparent 100%)`),[n,i,o,v,c,y]);return m.useEffect(()=>{if(!u)return;const x=f.current,S=s.current;if(!x||!S)return;const M=A=>{const I=x.getBoundingClientRect(),W=A.clientX-I.left,$=A.clientY-I.top;S.style.background=E(W,$),S.style.opacity=String(y.opacity)},O=()=>{h.current=!0,S.style.transition="opacity 300ms ease",S.style.opacity=String(y.opacity)},w=()=>{h.current=!1,S.style.transition="opacity 600ms ease",S.style.opacity="0"};return x.addEventListener("mousemove",M),x.addEventListener("mouseenter",O),x.addEventListener("mouseleave",w),()=>{x.removeEventListener("mousemove",M),x.removeEventListener("mouseenter",O),x.removeEventListener("mouseleave",w)}},[u,E,y]),C.jsxs("div",{ref:f,className:`motioncss-spotlight ${p}`,style:{position:"relative",overflow:"hidden",...a},children:[l,C.jsx("div",{ref:s,"aria-hidden":"true",style:{position:"absolute",inset:0,pointerEvents:"none",opacity:0,zIndex:10,filter:v>0?`blur(${v*.15}px)`:void 0,mixBlendMode:c==="neon"?"screen":"normal"}})]})}function ge({threshold:l=.2,rootMargin:n="0px",once:i=!0}={}){const o=m.useRef(null),[v,c]=m.useState(!1);return m.useEffect(()=>{const u=o.current;if(!u)return;if(typeof IntersectionObserver>"u"){c(!0);return}const p=new IntersectionObserver(([a])=>{a.isIntersecting?(c(!0),i&&p.disconnect()):i||c(!1)},{threshold:l,rootMargin:n});return p.observe(u),()=>p.disconnect()},[l,n,i]),{ref:o,inView:v}}function qe({children:l,stagger:n=70,duration:i=700,delay:o=0,once:v=!0,as:c="div",className:u="",style:p}){const{ref:a,inView:f}=ge({once:v}),s=oe(),h=c,y=l.split(/\s+/).filter(Boolean),E=f||s;return C.jsx(h,{ref:a,className:u,style:p,"aria-label":l,children:y.map((x,S)=>C.jsx("span",{"aria-hidden":"true",style:{display:"inline-block",overflow:"hidden",verticalAlign:"top",paddingBottom:"0.15em",marginRight:"0.25em"},children:C.jsx("span",{style:{display:"inline-block",transform:E?"translateY(0)":"translateY(110%)",opacity:E?1:0,transition:s?"none":`transform ${i}ms cubic-bezier(0.22, 1, 0.36, 1) ${o+S*n}ms, opacity ${i}ms ease ${o+S*n}ms`},children:x})},S))})}function et(l,n){switch(l){case"fade-up":return`translateY(${n}px)`;case"fade-down":return`translateY(${-n}px)`;case"fade-left":return`translateX(${n}px)`;case"fade-right":return`translateX(${-n}px)`;case"zoom":return"scale(0.92)";default:return"none"}}function tt({children:l,animation:n="fade-up",duration:i=700,delay:o=0,distance:v=32,threshold:c=.2,once:u=!0,className:p="",style:a}){const{ref:f,inView:s}=ge({threshold:c,once:u}),h=oe(),y=s||h;return C.jsx("div",{ref:f,className:p,style:{opacity:y?1:0,transform:y?"none":et(n,v),transition:h?"none":`opacity ${i}ms ease ${o}ms, transform ${i}ms cubic-bezier(0.22, 1, 0.36, 1) ${o}ms`,willChange:"opacity, transform",...a},children:l})}function rt({children:l,colors:n=["#6366f1","#ec4899","#f59e0b","#06b6d4"],angle:i=120,duration:o=12,className:v="",style:c}){const u=[...n,n[0]].join(", ");return C.jsx("div",{className:`mcss-gradient-flow ${v}`.trim(),style:{backgroundImage:`linear-gradient(${i}deg, ${u})`,animationDuration:`${o}s`,...c},children:l})}function nt(l,n,i,o){const v=[],c=i;if(l==="left"||l==="right"){const u=l==="left",p=u?n*100:100-n*100,a=u?p-100:p+100;v.push(`${a}% 0%`),v.push(`${a}% 100%`);for(let f=o;f>=0;f--){const s=f/o,h=s*100,y=Math.sin(s*Math.PI)*c,E=p+(u?y:-y);v.push(`${E}% ${h}%`)}}else{const u=l==="top",p=u?n*100:100-n*100,a=u?p-100:p+100;v.push(`0% ${a}%`),v.push(`100% ${a}%`);for(let f=o;f>=0;f--){const s=f/o,h=s*100,y=Math.sin(s*Math.PI)*c,E=p+(u?y:-y);v.push(`${h}% ${E}%`)}}return`polygon(${v.join(", ")})`}function at({origin:l="left",duration:n=900,color:i="#111111",curve:o=8,resolution:v=20,blur:c=0,onComplete:u,style:p}){const a=m.useRef(null),f=m.useRef(null),s=m.useRef(null);return m.useEffect(()=>{const h=a.current;if(!h)return;const y=E=>{s.current||(s.current=E);const x=E-s.current,S=Math.min(x/n,1)*2;h.style.clipPath=nt(l,S,o,v),S<2?f.current=requestAnimationFrame(y):(h.style.clipPath="polygon(200% 0%, 200% 100%, 100% 100%, 100% 0%)",u==null||u())};return f.current=requestAnimationFrame(y),()=>{f.current&&cancelAnimationFrame(f.current)}},[l,n,o,v,u]),C.jsx("div",{ref:a,"aria-hidden":"true",style:{position:"fixed",inset:0,zIndex:9999,pointerEvents:"none",background:i,backdropFilter:c>0?`blur(${c}px)`:void 0,WebkitBackdropFilter:c>0?`blur(${c}px)`:void 0,...p}})}function ot({children:l,origin:n="left",duration:i=900,color:o="#111111",curve:v=8,blur:c=0,className:u="",style:p}){const a=m.useRef(null),f=m.useRef(null),s=m.useRef(null),[h,y]=m.useState(!1);return m.useEffect(()=>{const E=a.current;if(!E)return;const x=S=>{s.current||(s.current=S);const M=Math.min((S-s.current)/i,1),O=[],w=v,A=20;if(n==="left"||n==="right"){const I=n==="left",W=I?M*100:100-M*100,$=I?150:-50;for(let L=0;L<=A;L++){const V=L/A,J=V*100,N=Math.sin(V*Math.PI)*w,Z=W+(I?N:-N);O.push(`${Z}% ${J}%`)}O.push(`${$}% 100%`),O.push(`${$}% 0%`)}else{const I=n==="top",W=I?M*100:100-M*100,$=I?150:-50;for(let L=0;L<=A;L++){const V=L/A,J=V*100,N=Math.sin(V*Math.PI)*w,Z=W+(I?N:-N);O.push(`${J}% ${Z}%`)}O.push(`100% ${$}%`),O.push(`0% ${$}%`)}E.style.clipPath=`polygon(${O.join(", ")})`,M<1?f.current=requestAnimationFrame(x):(E.style.clipPath="none",E.style.display="none",y(!0))};return f.current=requestAnimationFrame(x),()=>{f.current&&cancelAnimationFrame(f.current)}},[n,i,o,v]),C.jsxs("div",{className:`motioncss-wave-reveal ${u}`,style:{position:"relative",overflow:"hidden",...p},children:[l,!h&&C.jsx("div",{ref:a,"aria-hidden":"true",style:{position:"absolute",inset:0,background:o,backdropFilter:c>0?`blur(${c}px)`:void 0,WebkitBackdropFilter:c>0?`blur(${c}px)`:void 0,zIndex:10,pointerEvents:"none"}})]})}const me=m.createContext(null);function be(){const l=m.useContext(me);if(!l)throw new Error("useScrollytelling must be used inside <Scrollytelling>");return l}function st({children:l,height:n="400vh",className:i="",style:o}){const v=m.useRef(null),[c,u]=m.useState(0);return m.useEffect(()=>{let p=0;const a=()=>{p||(p=requestAnimationFrame(()=>{p=0;const f=v.current;if(!f)return;const s=f.getBoundingClientRect(),h=s.height-window.innerHeight;if(h<=0){u(0);return}const y=-s.top/h,E=Math.min(1,Math.max(0,y));u(E)}))};return a(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a),p&&cancelAnimationFrame(p)}},[]),C.jsx(me.Provider,{value:{progress:c},children:C.jsx("section",{ref:v,className:`motioncss-scrollytelling ${i}`,style:{height:n,position:"relative",...o},children:C.jsx("div",{className:"motioncss-scrollytelling__stage",style:{position:"sticky",top:0,width:"100%",height:"100vh",overflow:"hidden"},children:l})})})}const Re=m.createContext(null);function Ee(){const l=m.useContext(Re);if(!l)throw new Error("useSceneProgress must be used inside <Scene>");return l}function it({children:l,start:n,end:i,fadeOutRange:o=.05,className:v="",style:c}){const{progress:u}=be(),p=Math.max(i-n,1e-4),a=(u-n)/p,f=Math.min(1,Math.max(0,a));let s=1;if(o>0&&u>i){const h=u-i;s=1-Math.min(1,h/o)}else o===0&&u>i&&(s=0);return C.jsx(Re.Provider,{value:{progress:f},children:C.jsx("div",{className:`motioncss-scene ${v}`,style:{position:"absolute",inset:0,opacity:s,pointerEvents:f>0&&f<1?"auto":"none",...c},children:l})})}function X(l=0,n=0,i){return l+(n-l)*i}function ct({children:l,from:n={},to:i={},className:o="",style:v}){const{progress:c}=Ee(),u=X(n.opacity??1,i.opacity??1,c),p=X(n.scale??1,i.scale??1,c),a=X(n.x??0,i.x??0,c),f=X(n.y??0,i.y??0,c),s=X(n.rotate??0,i.rotate??0,c),h=X(n.blur??0,i.blur??0,c);return C.jsx("div",{className:`motioncss-scroll-layer ${o}`,style:{opacity:u,transform:`
44
+ translate3d(${a}px, ${f}px, 0)
45
+ scale(${p})
46
+ rotate(${s}deg)
47
+ `,filter:h>0?`blur(${h}px)`:"none",willChange:"transform, opacity, filter",...v},children:l})}j.EdgeWave=at,j.GradientFlow=rt,j.Magnetic=Ke,j.RevealText=qe,j.Scene=it,j.ScrollLayer=ct,j.ScrollReveal=tt,j.Scrollytelling=st,j.Spotlight=Qe,j.TiltCard=He,j.WaveReveal=ot,j.useSceneProgress=Ee,j.useScrollytelling=be,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "motioncss-ui",
3
- "version": "0.1.4",
4
- "description": "Zero-dependency React motion components: Magnetic, TiltCard, Spotlight, ScrollReveal, GradientFlow, EdgeWave.",
3
+ "version": "0.1.6",
4
+ "description": "Zero-dependency React motion components: Magnetic, TiltCard, Spotlight, ScrollReveal, ScrollReveal, AmbientBackground, RevealText, GradientFlow, EdgeWave, WaveReveal, Scrollytelling.",
5
5
  "type": "module",
6
6
  "main": "./dist/motioncss-ui.umd.cjs",
7
7
  "module": "./dist/motioncss-ui.js",