motioncss-ui 0.1.2 → 0.1.3

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