kotnala_ui 1.0.3 → 1.0.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.
@@ -0,0 +1,14 @@
1
+ interface DiaScrollerNavbarPropTypes {
2
+ navItems: {
3
+ iconPath: string;
4
+ text: string;
5
+ url: string;
6
+ }[];
7
+ theme?: "light" | "dark" | "default";
8
+ fontSize?: string;
9
+ padding?: string;
10
+ previewGap?: string;
11
+ borderRadius?: string;
12
+ }
13
+ declare function DiaScrollerNavbar({ navItems, fontSize, padding, previewGap, borderRadius, theme }: DiaScrollerNavbarPropTypes): import("react").JSX.Element;
14
+ export default DiaScrollerNavbar;
@@ -0,0 +1,13 @@
1
+ interface FluidNavbarPropTypes {
2
+ blobCurvature?: string;
3
+ navItems: {
4
+ iconPath: string;
5
+ text: string;
6
+ url: string;
7
+ }[];
8
+ blobSize?: string;
9
+ blobTop?: string;
10
+ blobY?: "top" | "middle" | "bottom";
11
+ }
12
+ declare function FluidNavbar({ blobCurvature, navItems, blobSize, blobY, blobTop }: FluidNavbarPropTypes): import("react").JSX.Element;
13
+ export default FluidNavbar;
@@ -0,0 +1,12 @@
1
+ interface GooeyNavbarPropTypes {
2
+ navItems: {
3
+ iconPath: string;
4
+ text: string;
5
+ url: string;
6
+ }[];
7
+ paddingX?: string;
8
+ paddingY?: string;
9
+ marginTop?: string;
10
+ }
11
+ declare function GooeyNavbar({ navItems, paddingX, paddingY, marginTop }: GooeyNavbarPropTypes): import("react").JSX.Element;
12
+ export default GooeyNavbar;
@@ -1,2 +1,14 @@
1
- declare function MeteorMash(): import("react").JSX.Element;
1
+ type ThemeTypes = "light" | "dark";
2
+ interface MeteorMashPropInterface {
3
+ numOfMeteors?: number;
4
+ trailLength?: number;
5
+ trailLengthShrinkable?: number;
6
+ trailThickness?: number;
7
+ meteorCoreSize?: number;
8
+ collisionDebriSize?: number;
9
+ theme?: ThemeTypes;
10
+ bgColor?: Record<ThemeTypes, string>;
11
+ animateUntill?: boolean;
12
+ }
13
+ declare function MeteorMash({ numOfMeteors, trailLength, trailLengthShrinkable, trailThickness, meteorCoreSize, collisionDebriSize, theme, bgColor, animateUntill }: MeteorMashPropInterface): import("react").JSX.Element;
2
14
  export default MeteorMash;
@@ -0,0 +1,27 @@
1
+ import { type ChangeEvent, type Dispatch, type FocusEvent, type KeyboardEvent, type MouseEvent, type SetStateAction } from "react";
2
+ interface ParticleVanishingInputPropTypes {
3
+ fontSize?: "text-xs" | "text-sm" | "text-md" | "text-lg" | "text-xl" | "text-2xl";
4
+ fontWeight?: "font-thin" | "font-normal" | "font-semibold" | "font-bold" | "font-extrabold";
5
+ className?: string;
6
+ height?: string;
7
+ theme: "light" | "dark";
8
+ btnIconPathD?: string;
9
+ wave?: {
10
+ amplitude: number;
11
+ cycles: number;
12
+ numOfParticles: number;
13
+ particleSize: number;
14
+ smokeEffect: boolean;
15
+ };
16
+ placeHolder?: string;
17
+ manuallyStartAnimation?: boolean;
18
+ setData: Dispatch<SetStateAction<string>>;
19
+ onClick?: (e: MouseEvent<HTMLInputElement>) => void;
20
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
21
+ onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
22
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
23
+ onKeyUp?: (e: KeyboardEvent<HTMLInputElement>) => void;
24
+ onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
25
+ }
26
+ declare function ParticleVanishingInput({ btnIconPathD, fontSize, fontWeight, manuallyStartAnimation, placeHolder, setData, height, theme, wave, onClick, onChange, onFocus, onBlur, onKeyUp, onKeyDown }: ParticleVanishingInputPropTypes): import("react").JSX.Element;
27
+ export default ParticleVanishingInput;
@@ -0,0 +1,11 @@
1
+ interface PopupNavbarPropTypes {
2
+ navItems: {
3
+ iconPath: string;
4
+ text: string;
5
+ url: string;
6
+ }[];
7
+ fontSize?: string;
8
+ padding?: string;
9
+ }
10
+ declare function PopupNavbar({ navItems, fontSize, padding }: PopupNavbarPropTypes): import("react").JSX.Element;
11
+ export default PopupNavbar;
@@ -0,0 +1,5 @@
1
+ interface TextSlashInputPropTypes {
2
+ placeHolder?: string;
3
+ }
4
+ declare function TextSlashInput({ placeHolder }: TextSlashInputPropTypes): import("react").JSX.Element;
5
+ export default TextSlashInput;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import "./styles.css";
2
- export { default as MeteorMash } from "./components/meteor_mash/MeteorMash.js";
2
+ export { default as MeteorMash } from "./components/meteor_mash/MeteorMash";
package/dist/index.esm.js CHANGED
@@ -1,10 +1 @@
1
- import e from"react";var r,t={exports:{}},n={};var o,a,i={};
2
- /**
3
- * @license React
4
- * react-jsx-runtime.development.js
5
- *
6
- * Copyright (c) Facebook, Inc. and its affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */function s(){return o||(o=1,"production"!==process.env.NODE_ENV&&function(){var r=e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m=Symbol.iterator;var g=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];!function(e,r,t){var n=g.ReactDebugCurrentFrame,o=n.getStackAddendum();""!==o&&(r+="%s",t=t.concat([o]));var a=t.map(function(e){return String(e)});a.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,a)}("error",e,t)}var h;function _(e){return e.displayName||"Context"}function k(e){if(null==e)return null;if("number"==typeof e.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case s:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return _(e)+".Consumer";case c:return _(e._context)+".Provider";case u:return function(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return""!==o?t+"("+o+")":t}(e,e.render,"ForwardRef");case y:var r=e.displayName||null;return null!==r?r:k(e.type)||"Memo";case d:var t=e,i=t._payload,v=t._init;try{return k(v(i))}catch(e){return null}}return null}h=Symbol.for("react.module.reference");var w,S,O,j,R,E,P,T=Object.assign,x=0;function $(){}$.__reactDisabledLog=!0;var N,C=g.ReactCurrentDispatcher;function D(e,r,t){if(void 0===N)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);N=n&&n[1]||""}return"\n"+N+e}var F,I=!1,L="function"==typeof WeakMap?WeakMap:Map;function U(e,r){if(!e||I)return"";var t,n=F.get(e);if(void 0!==n)return n;I=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=C.current,C.current=null,function(){if(0===x){w=console.log,S=console.info,O=console.warn,j=console.error,R=console.group,E=console.groupCollapsed,P=console.groupEnd;var e={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}x++}();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){t=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){t=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){t=e}e()}}catch(r){if(r&&t&&"string"==typeof r.stack){for(var s=r.stack.split("\n"),c=t.stack.split("\n"),l=s.length-1,u=c.length-1;l>=1&&u>=0&&s[l]!==c[u];)u--;for(;l>=1&&u>=0;l--,u--)if(s[l]!==c[u]){if(1!==l||1!==u)do{if(l--,--u<0||s[l]!==c[u]){var f="\n"+s[l].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&F.set(e,f),f}}while(l>=1&&u>=0);break}}}finally{I=!1,C.current=o,function(){if(0===--x){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},e,{value:w}),info:T({},e,{value:S}),warn:T({},e,{value:O}),error:T({},e,{value:j}),group:T({},e,{value:R}),groupCollapsed:T({},e,{value:E}),groupEnd:T({},e,{value:P})})}x<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var p=e?e.displayName||e.name:"",y=p?D(p):"";return"function"==typeof e&&F.set(e,y),y}function W(e,r,t){if(null==e)return"";if("function"==typeof e)return U(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return D(e);switch(e){case f:return D("Suspense");case p:return D("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return U(e.render,!1);case y:return W(e.type,r,t);case d:var o=e,a=o._payload,i=o._init;try{return W(i(a),r,t)}catch(e){}}return""}F=new L;var A=Object.prototype.hasOwnProperty,z={},M=g.ReactDebugCurrentFrame;function Y(e){if(e){var r=e._owner,t=W(e.type,e._source,r?r.type:null);M.setExtraStackFrame(t)}else M.setExtraStackFrame(null)}var B=Array.isArray;function V(e){return B(e)}function J(e){return""+e}function K(e){if(function(e){try{return J(e),!1}catch(e){return!0}}(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),J(e)}var X,q,H=g.ReactCurrentOwner,G={key:!0,ref:!0,__self:!0,__source:!0};function Q(e,r,n,o,a){var i,s={},c=null,l=null;for(i in void 0!==n&&(K(n),c=""+n),function(e){if(A.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(r)&&(K(r.key),c=""+r.key),function(e){if(A.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return void 0!==e.ref}(r)&&(l=r.ref,function(e){"string"==typeof e.ref&&H.current}(r)),r)A.call(r,i)&&!G.hasOwnProperty(i)&&(s[i]=r[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===s[i]&&(s[i]=u[i])}if(c||l){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;c&&function(e,r){var t=function(){X||(X=!0,b("%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})}(s,f),l&&function(e,r){var t=function(){q||(q=!0,b("%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})}(s,f)}return function(e,r,n,o,a,i,s){var c={$$typeof:t,type:e,key:r,ref:n,props:s,_owner:i,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}(e,c,l,a,o,H.current,s)}var Z,ee=g.ReactCurrentOwner,re=g.ReactDebugCurrentFrame;function te(e){if(e){var r=e._owner,t=W(e.type,e._source,r?r.type:null);re.setExtraStackFrame(t)}else re.setExtraStackFrame(null)}function ne(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function oe(){if(ee.current){var e=k(ee.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Z=!1;var ae={};function ie(e,r){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var r=oe();if(!r){var t="string"==typeof e?e:e.displayName||e.name;t&&(r="\n\nCheck the top-level render call using <"+t+">.")}return r}(r);if(!ae[t]){ae[t]=!0;var n="";e&&e._owner&&e._owner!==ee.current&&(n=" It was passed a child from "+k(e._owner.type)+"."),te(e),b('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),te(null)}}}function se(e,r){if("object"==typeof e)if(V(e))for(var t=0;t<e.length;t++){var n=e[t];ne(n)&&ie(n,r)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var r=m&&e[m]||e["@@iterator"];return"function"==typeof r?r:null}(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ne(a.value)&&ie(a.value,r)}}function ce(e){var r,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==u&&t.$$typeof!==y)return;r=t.propTypes}if(r){var n=k(t);!function(e,r,t,n,o){var a=Function.call.bind(A);for(var i in e)if(a(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var c=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}s=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(Y(o),b("%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,i,typeof s),Y(null)),s instanceof Error&&!(s.message in z)&&(z[s.message]=!0,Y(o),b("Failed %s type: %s",t,s.message),Y(null))}}(r,e.props,"prop",n,e)}else if(void 0!==t.PropTypes&&!Z){Z=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k(t)||"Unknown")}"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var le={};function ue(e,r,n,i,m,g){var _=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===f||e===p||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===y||e.$$typeof===c||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||void 0!==e.getModuleId)}(e);if(!_){var w="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(w+=" 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 S;w+=oe(),null===e?S="null":V(e)?S="array":void 0!==e&&e.$$typeof===t?(S="<"+(k(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,w)}var O=Q(e,r,n,m,g);if(null==O)return O;if(_){var j=r.children;if(void 0!==j)if(i)if(V(j)){for(var R=0;R<j.length;R++)se(j[R],e);Object.freeze&&Object.freeze(j)}else b("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 se(j,e)}if(A.call(r,"key")){var E=k(e),P=Object.keys(r).filter(function(e){return"key"!==e}),T=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!le[E+T])b('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',T,E,P.length>0?"{"+P.join(": ..., ")+": ...}":"{}",E),le[E+T]=!0}return e===o?function(e){for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if("children"!==n&&"key"!==n){te(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),te(null);break}}null!==e.ref&&(te(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}(O):ce(O),O}var fe=function(e,r,t){return ue(e,r,t,!1)},pe=function(e,r,t){return ue(e,r,t,!0)};i.Fragment=o,i.jsx=fe,i.jsxs=pe}()),i}var c=(a||(a=1,"production"===process.env.NODE_ENV?t.exports=function(){if(r)return n;r=1;var t=e,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,r,t){var n,a={},l=null,u=null;for(n in void 0!==t&&(l=""+t),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(u=r.ref),r)i.call(r,n)&&!c.hasOwnProperty(n)&&(a[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===a[n]&&(a[n]=r[n]);return{$$typeof:o,type:e,key:l,ref:u,props:a,_owner:s.current}}return n.Fragment=a,n.jsx=l,n.jsxs=l,n}():t.exports=s()),t.exports);function l(){return c.jsx("div",{className:"",children:"this is meteor mash"})}export{l as MeteorMash};
1
+ import{useRef as t,useState as e,useEffect as a}from"react";import{jsx as r}from"react/jsx-runtime";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,r=Array(e);a<e;a++)r[a]=t[a];return r}function o(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=l(t))||e){a&&(t=a);var r=0,n=function(){};return{s:n,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,d=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return i=t.done,t},e:function(t){d=!0,o=t},f:function(){try{i||null==a.return||a.return()}finally{if(d)throw o}}}}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var r,n,o,i,l=[],d=!0,h=!1;try{if(o=(a=a.call(t)).next,0===e);else for(;!(d=(r=o.call(a)).done)&&(l.push(r.value),l.length!==e);d=!0);}catch(t){h=!0,n=t}finally{try{if(!d&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(h)throw n}}return l}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return n(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(t,e):void 0}}var d={light:"white",dark:"black"};function h(n){var l=n.numOfMeteors,h=void 0===l?7:l,c=n.trailLength,s=void 0===c?20:c,y=n.trailLengthShrinkable,m=void 0===y?60:y,p=n.trailThickness,u=void 0===p?3:p,f=n.meteorCoreSize,x=void 0===f?2.4:f,g=n.collisionDebriSize,M=void 0===g?2:g,v=n.theme,b=void 0===v?"light":v,S=n.bgColor,L=void 0===S?d:S,k=n.animateUntill,z=void 0===k||k,w=t(null),A=i(e([]),2),I=A[0],C=A[1];return a(function(){for(var t,e,a=[],r=(null===(t=w.current)||void 0===t||null===(t=t.parentElement)||void 0===t?void 0:t.clientHeight)||400,n=(null===(e=w.current)||void 0===e||null===(e=e.parentElement)||void 0===e?void 0:e.clientWidth)||400,o=0;o<h;o++){var i=Math.floor(Math.random()*(n/2- -n+1))+-n,l=-(s+s+100*o);a.push({index:o,x1:i,y1:l,trailLength:s,trailLengthShrinkable:m,color:"red",dots:[{index:0,x:i+s+r+100*o,y:l+s+r+100*o,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:1,x:i+s+r+100*o,y:l+s+r+100*o,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:2,x:i+s+r+100*o,y:l+s+r+100*o,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:3,x:i+s+r+100*o,y:l+s+r+100*o,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:4,x:i+s+r+100*o,y:l+s+r+100*o,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:5,x:i+s+r+100*o,y:l+s+r+100*o,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:6,x:i+s+r+100*o,y:l+s+r+100*o,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:7,x:i+s+r+100*o,y:l+s+r+100*o,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:8,x:i+s+r+100*o,y:l+s+r+100*o,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:9,x:i+s+r+100*o,y:l+s+r+100*o,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:10,x:i+s+r+100*o,y:l+s+r+100*o,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:11,x:i+s+r+100*o,y:l+s+r+100*o,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}]})}C(a)},[]),a(function(){var t;if(z){var e=w.current;if(e){var a=e.getContext("2d");if(a&&(e.width=window.innerWidth,e.height=window.innerHeight,null!==(t=e.parentElement)&&void 0!==t&&t.clientHeight)){var r,n=e.parentElement.clientHeight,i=e.parentElement.clientWidth,l=function(){a.clearRect(0,0,e.width,e.height);var t,d=o(I);try{var h=function(){var e=t.value;if(e.x1+=2,e.y1+=2,e.trailLengthShrinkable>-20&&e.y1>=n/2){var r=Math.max(0,100*(e.y1+e.trailLength+e.trailLengthShrinkable-n/2)/n/4),l=e.trailLengthShrinkable*r/100;e.trailLengthShrinkable-=l,e.x1+=l,e.y1+=l}if(e.y1+e.trailLength+e.trailLengthShrinkable>=n){!function(){var t,r=0,n=o(e.dots);try{for(n.s();!(t=n.n()).done;){var i=t.value;r=(i.index/10*45+130)*(Math.PI/180),i.x-=Math.cos(r)*i.speed,i.y-=Math.sin(r)*i.speed,i.opacity*=.94,a.beginPath(),a.fillStyle="light"===b?"rgba(255, 106, 0,".concat(i.opacity,")"):"rgba(209, 213, 220,".concat(i.opacity,")"),a.arc(i.x+e.trailLength-e.trailLengthShrinkable+e.trailLengthShrinkable,i.y+e.trailLength-e.trailLengthShrinkable+e.trailLengthShrinkable,i.size,0,2*Math.PI,!1),a.fill()}}catch(t){n.e(t)}finally{n.f()}}()}if(e.y1>=n+150){var d=Math.floor(Math.random()*(i/2- -i+1))+-i,h=-(s+s);e.x1=d,e.y1=h,e.trailLength=s,e.trailLengthShrinkable=m,e.dots=[{index:0,x:d+s+n,y:h+s+n,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}],e.dots.push({index:1,x:d+s+n,y:h+s+n,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:2,x:d+s+n,y:h+s+n,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:3,x:d+s+n,y:h+s+n,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:4,x:d+s+n,y:h+s+n,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:5,x:d+s+n,y:h+s+n,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:6,x:d+s+n,y:h+s+n,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:7,x:d+s+n,y:h+s+n,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:8,x:d+s+n,y:h+s+n,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:9,x:d+s+n,y:h+s+n,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:10,x:d+s+n,y:h+s+n,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:11,x:d+s+n,y:h+s+n,size:Math.random()*(M-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2})}a.beginPath();var c=a.createLinearGradient(e.x1,e.y1,e.x1+e.trailLength+e.trailLengthShrinkable,e.y1+e.trailLength+e.trailLengthShrinkable);c.addColorStop(0,"light"===b?"white":"black"),c.addColorStop(.2,"rgba(255,255,0,1)"),c.addColorStop(.5,"rgba(255,165,0,1)"),c.addColorStop(.8,"rgba(255,69,0,0.8)"),c.addColorStop(1,"oklch(74.6% 0.16 232.661)"),a.moveTo(e.x1,e.y1),a.lineTo(e.x1+e.trailLength+e.trailLengthShrinkable,e.y1+e.trailLength+e.trailLengthShrinkable),a.lineWidth=u,a.strokeStyle=c,a.stroke(),a.beginPath(),a.fillStyle="rgba(0, 191, 255, ".concat(1.01+Math.sin(2*Math.PI*1*(e.y1/100)),")"),a.arc(e.x1+e.trailLength+e.trailLengthShrinkable+1,e.y1+e.trailLength+e.trailLengthShrinkable+1,x,0,2*Math.PI,!1),a.fill(),a.beginPath(),a.fillStyle="rgba(255, 110, 70, ".concat(e.y1%2,")"),a.arc(e.x1+e.trailLength+e.trailLengthShrinkable+1,e.y1+e.trailLength+e.trailLengthShrinkable+1,x-.4,0,2*Math.PI,!1),a.fill()};for(d.s();!(t=d.n()).done;)h()}catch(t){d.e(t)}finally{d.f()}r=requestAnimationFrame(l)};return l(),function(){cancelAnimationFrame(r)}}}}else console.log("animateUntill is false")},[I,z]),r("div",{className:"relative w-full h-full overflow-hidden",children:r("canvas",{ref:w,className:"absolute top-0 left-0 bg-[".concat(L[b],"]")})})}export{h as MeteorMash};
package/dist/index.js CHANGED
@@ -1,10 +1 @@
1
- "use strict";var e,r=require("react"),t={exports:{}},n={};var o,a,i={};
2
- /**
3
- * @license React
4
- * react-jsx-runtime.development.js
5
- *
6
- * Copyright (c) Facebook, Inc. and its affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */function s(){return o||(o=1,"production"!==process.env.NODE_ENV&&function(){var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m=Symbol.iterator;var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];!function(e,r,t){var n=g.ReactDebugCurrentFrame,o=n.getStackAddendum();""!==o&&(r+="%s",t=t.concat([o]));var a=t.map(function(e){return String(e)});a.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,a)}("error",e,t)}var h;function _(e){return e.displayName||"Context"}function k(e){if(null==e)return null;if("number"==typeof e.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case s:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return _(e)+".Consumer";case c:return _(e._context)+".Provider";case u:return function(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return""!==o?t+"("+o+")":t}(e,e.render,"ForwardRef");case y:var r=e.displayName||null;return null!==r?r:k(e.type)||"Memo";case d:var t=e,i=t._payload,v=t._init;try{return k(v(i))}catch(e){return null}}return null}h=Symbol.for("react.module.reference");var w,S,O,j,R,E,P,T=Object.assign,x=0;function $(){}$.__reactDisabledLog=!0;var N,C=g.ReactCurrentDispatcher;function D(e,r,t){if(void 0===N)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);N=n&&n[1]||""}return"\n"+N+e}var F,I=!1,L="function"==typeof WeakMap?WeakMap:Map;function U(e,r){if(!e||I)return"";var t,n=F.get(e);if(void 0!==n)return n;I=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=C.current,C.current=null,function(){if(0===x){w=console.log,S=console.info,O=console.warn,j=console.error,R=console.group,E=console.groupCollapsed,P=console.groupEnd;var e={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}x++}();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){t=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){t=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){t=e}e()}}catch(r){if(r&&t&&"string"==typeof r.stack){for(var s=r.stack.split("\n"),c=t.stack.split("\n"),l=s.length-1,u=c.length-1;l>=1&&u>=0&&s[l]!==c[u];)u--;for(;l>=1&&u>=0;l--,u--)if(s[l]!==c[u]){if(1!==l||1!==u)do{if(l--,--u<0||s[l]!==c[u]){var f="\n"+s[l].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&F.set(e,f),f}}while(l>=1&&u>=0);break}}}finally{I=!1,C.current=o,function(){if(0===--x){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},e,{value:w}),info:T({},e,{value:S}),warn:T({},e,{value:O}),error:T({},e,{value:j}),group:T({},e,{value:R}),groupCollapsed:T({},e,{value:E}),groupEnd:T({},e,{value:P})})}x<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var p=e?e.displayName||e.name:"",y=p?D(p):"";return"function"==typeof e&&F.set(e,y),y}function W(e,r,t){if(null==e)return"";if("function"==typeof e)return U(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return D(e);switch(e){case f:return D("Suspense");case p:return D("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return U(e.render,!1);case y:return W(e.type,r,t);case d:var o=e,a=o._payload,i=o._init;try{return W(i(a),r,t)}catch(e){}}return""}F=new L;var A=Object.prototype.hasOwnProperty,M={},z=g.ReactDebugCurrentFrame;function Y(e){if(e){var r=e._owner,t=W(e.type,e._source,r?r.type:null);z.setExtraStackFrame(t)}else z.setExtraStackFrame(null)}var B=Array.isArray;function V(e){return B(e)}function q(e){return""+e}function J(e){if(function(e){try{return q(e),!1}catch(e){return!0}}(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),q(e)}var K,X,H=g.ReactCurrentOwner,G={key:!0,ref:!0,__self:!0,__source:!0};function Q(e,r,n,o,a){var i,s={},c=null,l=null;for(i in void 0!==n&&(J(n),c=""+n),function(e){if(A.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(r)&&(J(r.key),c=""+r.key),function(e){if(A.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return void 0!==e.ref}(r)&&(l=r.ref,function(e){"string"==typeof e.ref&&H.current}(r)),r)A.call(r,i)&&!G.hasOwnProperty(i)&&(s[i]=r[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===s[i]&&(s[i]=u[i])}if(c||l){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;c&&function(e,r){var t=function(){K||(K=!0,b("%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})}(s,f),l&&function(e,r){var t=function(){X||(X=!0,b("%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})}(s,f)}return function(e,r,n,o,a,i,s){var c={$$typeof:t,type:e,key:r,ref:n,props:s,_owner:i,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}(e,c,l,a,o,H.current,s)}var Z,ee=g.ReactCurrentOwner,re=g.ReactDebugCurrentFrame;function te(e){if(e){var r=e._owner,t=W(e.type,e._source,r?r.type:null);re.setExtraStackFrame(t)}else re.setExtraStackFrame(null)}function ne(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function oe(){if(ee.current){var e=k(ee.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Z=!1;var ae={};function ie(e,r){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var r=oe();if(!r){var t="string"==typeof e?e:e.displayName||e.name;t&&(r="\n\nCheck the top-level render call using <"+t+">.")}return r}(r);if(!ae[t]){ae[t]=!0;var n="";e&&e._owner&&e._owner!==ee.current&&(n=" It was passed a child from "+k(e._owner.type)+"."),te(e),b('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),te(null)}}}function se(e,r){if("object"==typeof e)if(V(e))for(var t=0;t<e.length;t++){var n=e[t];ne(n)&&ie(n,r)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var r=m&&e[m]||e["@@iterator"];return"function"==typeof r?r:null}(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ne(a.value)&&ie(a.value,r)}}function ce(e){var r,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==u&&t.$$typeof!==y)return;r=t.propTypes}if(r){var n=k(t);!function(e,r,t,n,o){var a=Function.call.bind(A);for(var i in e)if(a(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var c=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}s=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(Y(o),b("%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,i,typeof s),Y(null)),s instanceof Error&&!(s.message in M)&&(M[s.message]=!0,Y(o),b("Failed %s type: %s",t,s.message),Y(null))}}(r,e.props,"prop",n,e)}else if(void 0!==t.PropTypes&&!Z){Z=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k(t)||"Unknown")}"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var le={};function ue(e,r,n,i,m,g){var _=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===f||e===p||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===y||e.$$typeof===c||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||void 0!==e.getModuleId)}(e);if(!_){var w="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(w+=" 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 S;w+=oe(),null===e?S="null":V(e)?S="array":void 0!==e&&e.$$typeof===t?(S="<"+(k(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,w)}var O=Q(e,r,n,m,g);if(null==O)return O;if(_){var j=r.children;if(void 0!==j)if(i)if(V(j)){for(var R=0;R<j.length;R++)se(j[R],e);Object.freeze&&Object.freeze(j)}else b("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 se(j,e)}if(A.call(r,"key")){var E=k(e),P=Object.keys(r).filter(function(e){return"key"!==e}),T=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!le[E+T])b('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',T,E,P.length>0?"{"+P.join(": ..., ")+": ...}":"{}",E),le[E+T]=!0}return e===o?function(e){for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if("children"!==n&&"key"!==n){te(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),te(null);break}}null!==e.ref&&(te(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}(O):ce(O),O}var fe=function(e,r,t){return ue(e,r,t,!1)},pe=function(e,r,t){return ue(e,r,t,!0)};i.Fragment=o,i.jsx=fe,i.jsxs=pe}()),i}var c=(a||(a=1,"production"===process.env.NODE_ENV?t.exports=function(){if(e)return n;e=1;var t=r,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,r,t){var n,a={},l=null,u=null;for(n in void 0!==t&&(l=""+t),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(u=r.ref),r)i.call(r,n)&&!c.hasOwnProperty(n)&&(a[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===a[n]&&(a[n]=r[n]);return{$$typeof:o,type:e,key:l,ref:u,props:a,_owner:s.current}}return n.Fragment=a,n.jsx=l,n.jsxs=l,n}():t.exports=s()),t.exports);exports.MeteorMash=function(){return c.jsx("div",{className:"",children:"this is meteor mash"})};
1
+ "use strict";var t=require("react"),e=require("react/jsx-runtime");function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,r=Array(e);a<e;a++)r[a]=t[a];return r}function r(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=o(t))||e){a&&(t=a);var r=0,n=function(){};return{s:n,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,d=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return l=t.done,t},e:function(t){d=!0,i=t},f:function(){try{l||null==a.return||a.return()}finally{if(d)throw i}}}}function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var r,n,o,i,l=[],d=!0,h=!1;try{if(o=(a=a.call(t)).next,0===e);else for(;!(d=(r=o.call(a)).done)&&(l.push(r.value),l.length!==e);d=!0);}catch(t){h=!0,n=t}finally{try{if(!d&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(h)throw n}}return l}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}var i={light:"white",dark:"black"};exports.MeteorMash=function(a){var o=a.numOfMeteors,l=void 0===o?7:o,d=a.trailLength,h=void 0===d?20:d,c=a.trailLengthShrinkable,s=void 0===c?60:c,y=a.trailThickness,u=void 0===y?3:y,p=a.meteorCoreSize,m=void 0===p?2.4:p,f=a.collisionDebriSize,x=void 0===f?2:f,g=a.theme,M=void 0===g?"light":g,v=a.bgColor,b=void 0===v?i:v,S=a.animateUntill,L=void 0===S||S,k=t.useRef(null),z=n(t.useState([]),2),w=z[0],A=z[1];return t.useEffect(function(){for(var t,e,a=[],r=(null===(t=k.current)||void 0===t||null===(t=t.parentElement)||void 0===t?void 0:t.clientHeight)||400,n=(null===(e=k.current)||void 0===e||null===(e=e.parentElement)||void 0===e?void 0:e.clientWidth)||400,o=0;o<l;o++){var i=Math.floor(Math.random()*(n/2- -n+1))+-n,d=-(h+h+100*o);a.push({index:o,x1:i,y1:d,trailLength:h,trailLengthShrinkable:s,color:"red",dots:[{index:0,x:i+h+r+100*o,y:d+h+r+100*o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:1,x:i+h+r+100*o,y:d+h+r+100*o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:2,x:i+h+r+100*o,y:d+h+r+100*o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:3,x:i+h+r+100*o,y:d+h+r+100*o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:4,x:i+h+r+100*o,y:d+h+r+100*o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:5,x:i+h+r+100*o,y:d+h+r+100*o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:6,x:i+h+r+100*o,y:d+h+r+100*o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:7,x:i+h+r+100*o,y:d+h+r+100*o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:8,x:i+h+r+100*o,y:d+h+r+100*o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:9,x:i+h+r+100*o,y:d+h+r+100*o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:10,x:i+h+r+100*o,y:d+h+r+100*o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2},{index:11,x:i+h+r+100*o,y:d+h+r+100*o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}]})}A(a)},[]),t.useEffect(function(){var t;if(L){var e=k.current;if(e){var a=e.getContext("2d");if(a&&(e.width=window.innerWidth,e.height=window.innerHeight,null!==(t=e.parentElement)&&void 0!==t&&t.clientHeight)){var n,o=e.parentElement.clientHeight,i=e.parentElement.clientWidth,l=function(){a.clearRect(0,0,e.width,e.height);var t,d=r(w);try{var c=function(){var e=t.value;if(e.x1+=2,e.y1+=2,e.trailLengthShrinkable>-20&&e.y1>=o/2){var n=Math.max(0,100*(e.y1+e.trailLength+e.trailLengthShrinkable-o/2)/o/4),l=e.trailLengthShrinkable*n/100;e.trailLengthShrinkable-=l,e.x1+=l,e.y1+=l}if(e.y1+e.trailLength+e.trailLengthShrinkable>=o){!function(){var t,n=0,o=r(e.dots);try{for(o.s();!(t=o.n()).done;){var i=t.value;n=(i.index/10*45+130)*(Math.PI/180),i.x-=Math.cos(n)*i.speed,i.y-=Math.sin(n)*i.speed,i.opacity*=.94,a.beginPath(),a.fillStyle="light"===M?"rgba(255, 106, 0,".concat(i.opacity,")"):"rgba(209, 213, 220,".concat(i.opacity,")"),a.arc(i.x+e.trailLength-e.trailLengthShrinkable+e.trailLengthShrinkable,i.y+e.trailLength-e.trailLengthShrinkable+e.trailLengthShrinkable,i.size,0,2*Math.PI,!1),a.fill()}}catch(t){o.e(t)}finally{o.f()}}()}if(e.y1>=o+150){var d=Math.floor(Math.random()*(i/2- -i+1))+-i,c=-(h+h);e.x1=d,e.y1=c,e.trailLength=h,e.trailLengthShrinkable=s,e.dots=[{index:0,x:d+h+o,y:c+h+o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}],e.dots.push({index:1,x:d+h+o,y:c+h+o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:2,x:d+h+o,y:c+h+o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:3,x:d+h+o,y:c+h+o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:4,x:d+h+o,y:c+h+o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:5,x:d+h+o,y:c+h+o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:6,x:d+h+o,y:c+h+o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:7,x:d+h+o,y:c+h+o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:8,x:d+h+o,y:c+h+o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:9,x:d+h+o,y:c+h+o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:10,x:d+h+o,y:c+h+o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2}),e.dots.push({index:11,x:d+h+o,y:c+h+o,size:Math.random()*(x-.8)+.8,color:"",opacity:10,speed:Math.random()*(.8-.2)+.2})}a.beginPath();var y=a.createLinearGradient(e.x1,e.y1,e.x1+e.trailLength+e.trailLengthShrinkable,e.y1+e.trailLength+e.trailLengthShrinkable);y.addColorStop(0,"light"===M?"white":"black"),y.addColorStop(.2,"rgba(255,255,0,1)"),y.addColorStop(.5,"rgba(255,165,0,1)"),y.addColorStop(.8,"rgba(255,69,0,0.8)"),y.addColorStop(1,"oklch(74.6% 0.16 232.661)"),a.moveTo(e.x1,e.y1),a.lineTo(e.x1+e.trailLength+e.trailLengthShrinkable,e.y1+e.trailLength+e.trailLengthShrinkable),a.lineWidth=u,a.strokeStyle=y,a.stroke(),a.beginPath(),a.fillStyle="rgba(0, 191, 255, ".concat(1.01+Math.sin(2*Math.PI*1*(e.y1/100)),")"),a.arc(e.x1+e.trailLength+e.trailLengthShrinkable+1,e.y1+e.trailLength+e.trailLengthShrinkable+1,m,0,2*Math.PI,!1),a.fill(),a.beginPath(),a.fillStyle="rgba(255, 110, 70, ".concat(e.y1%2,")"),a.arc(e.x1+e.trailLength+e.trailLengthShrinkable+1,e.y1+e.trailLength+e.trailLengthShrinkable+1,m-.4,0,2*Math.PI,!1),a.fill()};for(d.s();!(t=d.n()).done;)c()}catch(t){d.e(t)}finally{d.f()}n=requestAnimationFrame(l)};return l(),function(){cancelAnimationFrame(n)}}}}else console.log("animateUntill is false")},[w,L]),e.jsx("div",{className:"relative w-full h-full overflow-hidden",children:e.jsx("canvas",{ref:k,className:"absolute top-0 left-0 bg-[".concat(b[M],"]")})})};
package/dist/styles.css CHANGED
@@ -7,6 +7,59 @@
7
7
  "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
8
8
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
9
9
  "Courier New", monospace;
10
+ --color-orange-500: oklch(70.5% 0.213 47.604);
11
+ --color-sky-400: oklch(74.6% 0.16 232.661);
12
+ --color-sky-600: oklch(58.8% 0.158 241.966);
13
+ --color-gray-50: oklch(98.5% 0.002 247.839);
14
+ --color-gray-100: oklch(96.7% 0.003 264.542);
15
+ --color-gray-200: oklch(92.8% 0.006 264.531);
16
+ --color-gray-300: oklch(87.2% 0.01 258.338);
17
+ --color-gray-400: oklch(70.7% 0.022 261.325);
18
+ --color-gray-500: oklch(55.1% 0.027 264.364);
19
+ --color-gray-600: oklch(44.6% 0.03 256.802);
20
+ --color-gray-700: oklch(37.3% 0.034 259.733);
21
+ --color-gray-800: oklch(27.8% 0.033 256.848);
22
+ --color-gray-900: oklch(21% 0.034 264.665);
23
+ --color-neutral-50: oklch(98.5% 0 0);
24
+ --color-neutral-100: oklch(97% 0 0);
25
+ --color-neutral-200: oklch(92.2% 0 0);
26
+ --color-neutral-300: oklch(87% 0 0);
27
+ --color-neutral-400: oklch(70.8% 0 0);
28
+ --color-neutral-500: oklch(55.6% 0 0);
29
+ --color-neutral-600: oklch(43.9% 0 0);
30
+ --color-neutral-800: oklch(26.9% 0 0);
31
+ --color-neutral-900: oklch(20.5% 0 0);
32
+ --color-black: #000;
33
+ --color-white: #fff;
34
+ --spacing: 0.25rem;
35
+ --container-3xl: 48rem;
36
+ --text-xs: 0.75rem;
37
+ --text-xs--line-height: calc(1 / 0.75);
38
+ --text-sm: 0.875rem;
39
+ --text-sm--line-height: calc(1.25 / 0.875);
40
+ --text-lg: 1.125rem;
41
+ --text-lg--line-height: calc(1.75 / 1.125);
42
+ --text-xl: 1.25rem;
43
+ --text-xl--line-height: calc(1.75 / 1.25);
44
+ --text-2xl: 1.5rem;
45
+ --text-2xl--line-height: calc(2 / 1.5);
46
+ --font-weight-thin: 100;
47
+ --font-weight-normal: 400;
48
+ --font-weight-semibold: 600;
49
+ --font-weight-bold: 700;
50
+ --font-weight-extrabold: 800;
51
+ --radius-sm: 0.25rem;
52
+ --radius-md: 0.375rem;
53
+ --radius-3xl: 1.5rem;
54
+ --ease-in: cubic-bezier(0.4, 0, 1, 1);
55
+ --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
56
+ --animate-spin: spin 1s linear infinite;
57
+ --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
58
+ --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
59
+ --blur-sm: 8px;
60
+ --blur-md: 12px;
61
+ --default-transition-duration: 150ms;
62
+ --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
10
63
  --default-font-family: var(--font-sans);
11
64
  --default-mono-font-family: var(--font-mono);
12
65
  }
@@ -160,41 +213,864 @@
160
213
  }
161
214
  }
162
215
  @layer utilities {
163
- .static {
164
- position: static;
216
+ .pointer-events-none {
217
+ pointer-events: none;
165
218
  }
166
- .transform {
167
- transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
219
+ .absolute {
220
+ position: absolute;
168
221
  }
222
+ .relative {
223
+ position: relative;
224
+ }
225
+ .inset-0 {
226
+ inset: 0;
227
+ }
228
+ .top-0 {
229
+ top: 0;
230
+ }
231
+ .top-\[50\%\] {
232
+ top: 50%;
233
+ }
234
+ .-right-5 {
235
+ right: calc(var(--spacing) * -5);
236
+ }
237
+ .right-0 {
238
+ right: 0;
239
+ }
240
+ .left-0 {
241
+ left: 0;
242
+ }
243
+ .left-\[50\%\] {
244
+ left: 50%;
245
+ }
246
+ .mx-auto {
247
+ margin-inline: auto;
248
+ }
249
+ .mr-auto {
250
+ margin-right: auto;
251
+ }
252
+ .flex {
253
+ display: flex;
254
+ }
255
+ .inline-block {
256
+ display: inline-block;
257
+ }
258
+ .size-4 {
259
+ width: calc(var(--spacing) * 4);
260
+ height: calc(var(--spacing) * 4);
261
+ }
262
+ .h-1\.5 {
263
+ height: calc(var(--spacing) * 1.5);
264
+ }
265
+ .h-5 {
266
+ height: calc(var(--spacing) * 5);
267
+ }
268
+ .h-10 {
269
+ height: calc(var(--spacing) * 10);
270
+ }
271
+ .h-\[50\%\] {
272
+ height: 50%;
273
+ }
274
+ .h-\[75\%\] {
275
+ height: 75%;
276
+ }
277
+ .h-\[87\%\] {
278
+ height: 87%;
279
+ }
280
+ .h-\[90\%\] {
281
+ height: 90%;
282
+ }
283
+ .h-full {
284
+ height: 100%;
285
+ }
286
+ .min-h-screen {
287
+ min-height: 100vh;
288
+ }
289
+ .w-1 {
290
+ width: var(--spacing);
291
+ }
292
+ .w-1\.5 {
293
+ width: calc(var(--spacing) * 1.5);
294
+ }
295
+ .w-5 {
296
+ width: calc(var(--spacing) * 5);
297
+ }
298
+ .w-10 {
299
+ width: calc(var(--spacing) * 10);
300
+ }
301
+ .w-15 {
302
+ width: calc(var(--spacing) * 15);
303
+ }
304
+ .w-23 {
305
+ width: calc(var(--spacing) * 23);
306
+ }
307
+ .w-\[50\%\] {
308
+ width: 50%;
309
+ }
310
+ .w-\[87\%\] {
311
+ width: 87%;
312
+ }
313
+ .w-\[90\%\] {
314
+ width: 90%;
315
+ }
316
+ .w-\[calc\(100\%-41px\)\] {
317
+ width: calc(100% - 41px);
318
+ }
319
+ .w-full {
320
+ width: 100%;
321
+ }
322
+ .w-max {
323
+ width: max-content;
324
+ }
325
+ .w-min {
326
+ width: min-content;
327
+ }
328
+ .max-w-3xl {
329
+ max-width: var(--container-3xl);
330
+ }
331
+ .max-w-full {
332
+ max-width: 100%;
333
+ }
334
+ .origin-center {
335
+ transform-origin: center;
336
+ }
337
+ .translate-x-\[-50\%\] {
338
+ --tw-translate-x: -50%;
339
+ translate: var(--tw-translate-x) var(--tw-translate-y);
340
+ }
341
+ .translate-y-\[-13\.7px\] {
342
+ --tw-translate-y: -13.7px;
343
+ translate: var(--tw-translate-x) var(--tw-translate-y);
344
+ }
345
+ .translate-y-\[-50\%\] {
346
+ --tw-translate-y: -50%;
347
+ translate: var(--tw-translate-x) var(--tw-translate-y);
348
+ }
349
+ .translate-y-\[6\.3px\] {
350
+ --tw-translate-y: 6.3px;
351
+ translate: var(--tw-translate-x) var(--tw-translate-y);
352
+ }
353
+ .animate-ping {
354
+ animation: var(--animate-ping);
355
+ }
356
+ .animate-pulse {
357
+ animation: var(--animate-pulse);
358
+ }
359
+ .animate-spin {
360
+ animation: var(--animate-spin);
361
+ }
362
+ .cursor-default {
363
+ cursor: default;
364
+ }
365
+ .cursor-pointer {
366
+ cursor: pointer;
367
+ }
368
+ .flex-col {
369
+ flex-direction: column;
370
+ }
371
+ .content-center {
372
+ align-content: center;
373
+ }
374
+ .items-center {
375
+ align-items: center;
376
+ }
377
+ .justify-around {
378
+ justify-content: space-around;
379
+ }
380
+ .justify-between {
381
+ justify-content: space-between;
382
+ }
383
+ .justify-end {
384
+ justify-content: flex-end;
385
+ }
386
+ .gap-20 {
387
+ gap: calc(var(--spacing) * 20);
388
+ }
389
+ .overflow-hidden {
390
+ overflow: hidden;
391
+ }
392
+ .rounded-3xl {
393
+ border-radius: var(--radius-3xl);
394
+ }
395
+ .rounded-full {
396
+ border-radius: calc(infinity * 1px);
397
+ }
398
+ .rounded-md {
399
+ border-radius: var(--radius-md);
400
+ }
401
+ .rounded-sm {
402
+ border-radius: var(--radius-sm);
403
+ }
404
+ .border {
405
+ border-style: var(--tw-border-style);
406
+ border-width: 1px;
407
+ }
408
+ .border-2 {
409
+ border-style: var(--tw-border-style);
410
+ border-width: 2px;
411
+ }
412
+ .border-10 {
413
+ border-style: var(--tw-border-style);
414
+ border-width: 10px;
415
+ }
416
+ .border-dashed {
417
+ --tw-border-style: dashed;
418
+ border-style: dashed;
419
+ }
420
+ .border-black {
421
+ border-color: var(--color-black);
422
+ }
423
+ .border-gray-200 {
424
+ border-color: var(--color-gray-200);
425
+ }
426
+ .border-gray-500 {
427
+ border-color: var(--color-gray-500);
428
+ }
429
+ .border-gray-600 {
430
+ border-color: var(--color-gray-600);
431
+ }
432
+ .border-neutral-100 {
433
+ border-color: var(--color-neutral-100);
434
+ }
435
+ .border-neutral-200 {
436
+ border-color: var(--color-neutral-200);
437
+ }
438
+ .border-neutral-500 {
439
+ border-color: var(--color-neutral-500);
440
+ }
441
+ .border-white {
442
+ border-color: var(--color-white);
443
+ }
444
+ .bg-\[\"\.concat\(L\[b\]\,\"\] {
445
+ background-color: ".concat(L[b],";
446
+ }
447
+ .bg-\[\"\.concat\(b\[M\]\,\"\] {
448
+ background-color: ".concat(b[M],";
449
+ }
450
+ .bg-gray-50 {
451
+ background-color: var(--color-gray-50);
452
+ }
453
+ .bg-gray-100 {
454
+ background-color: var(--color-gray-100);
455
+ }
456
+ .bg-gray-200\/5 {
457
+ background-color: color-mix(in srgb, oklch(92.8% 0.006 264.531) 5%, transparent);
458
+ @supports (color: color-mix(in lab, red, red)) {
459
+ background-color: color-mix(in oklab, var(--color-gray-200) 5%, transparent);
460
+ }
461
+ }
462
+ .bg-gray-400 {
463
+ background-color: var(--color-gray-400);
464
+ }
465
+ .bg-gray-800 {
466
+ background-color: var(--color-gray-800);
467
+ }
468
+ .bg-gray-900 {
469
+ background-color: var(--color-gray-900);
470
+ }
471
+ .bg-neutral-50 {
472
+ background-color: var(--color-neutral-50);
473
+ }
474
+ .bg-neutral-800 {
475
+ background-color: var(--color-neutral-800);
476
+ }
477
+ .bg-neutral-900 {
478
+ background-color: var(--color-neutral-900);
479
+ }
480
+ .bg-orange-500 {
481
+ background-color: var(--color-orange-500);
482
+ }
483
+ .bg-sky-400 {
484
+ background-color: var(--color-sky-400);
485
+ }
486
+ .bg-white {
487
+ background-color: var(--color-white);
488
+ }
489
+ .stroke-gray-400 {
490
+ stroke: var(--color-gray-400);
491
+ }
492
+ .stroke-neutral-400 {
493
+ stroke: var(--color-neutral-400);
494
+ }
495
+ .stroke-1 {
496
+ stroke-width: 1;
497
+ }
498
+ .p-2 {
499
+ padding: calc(var(--spacing) * 2);
500
+ }
501
+ .px-1\.25 {
502
+ padding-inline: calc(var(--spacing) * 1.25);
503
+ }
504
+ .px-2 {
505
+ padding-inline: calc(var(--spacing) * 2);
506
+ }
507
+ .px-4 {
508
+ padding-inline: calc(var(--spacing) * 4);
509
+ }
510
+ .py-1 {
511
+ padding-block: var(--spacing);
512
+ }
513
+ .pr-5 {
514
+ padding-right: calc(var(--spacing) * 5);
515
+ }
516
+ .pl-1 {
517
+ padding-left: var(--spacing);
518
+ }
519
+ .pl-2 {
520
+ padding-left: calc(var(--spacing) * 2);
521
+ }
522
+ .text-center {
523
+ text-align: center;
524
+ }
525
+ .font-mono {
526
+ font-family: var(--font-mono);
527
+ }
528
+ .text-2xl {
529
+ font-size: var(--text-2xl);
530
+ line-height: var(--tw-leading, var(--text-2xl--line-height));
531
+ }
532
+ .text-lg {
533
+ font-size: var(--text-lg);
534
+ line-height: var(--tw-leading, var(--text-lg--line-height));
535
+ }
536
+ .text-sm {
537
+ font-size: var(--text-sm);
538
+ line-height: var(--tw-leading, var(--text-sm--line-height));
539
+ }
540
+ .text-xl {
541
+ font-size: var(--text-xl);
542
+ line-height: var(--tw-leading, var(--text-xl--line-height));
543
+ }
544
+ .text-xs {
545
+ font-size: var(--text-xs);
546
+ line-height: var(--tw-leading, var(--text-xs--line-height));
547
+ }
548
+ .font-bold {
549
+ --tw-font-weight: var(--font-weight-bold);
550
+ font-weight: var(--font-weight-bold);
551
+ }
552
+ .font-extrabold {
553
+ --tw-font-weight: var(--font-weight-extrabold);
554
+ font-weight: var(--font-weight-extrabold);
555
+ }
556
+ .font-normal {
557
+ --tw-font-weight: var(--font-weight-normal);
558
+ font-weight: var(--font-weight-normal);
559
+ }
560
+ .font-semibold {
561
+ --tw-font-weight: var(--font-weight-semibold);
562
+ font-weight: var(--font-weight-semibold);
563
+ }
564
+ .font-thin {
565
+ --tw-font-weight: var(--font-weight-thin);
566
+ font-weight: var(--font-weight-thin);
567
+ }
568
+ .text-black {
569
+ color: var(--color-black);
570
+ }
571
+ .text-gray-50 {
572
+ color: var(--color-gray-50);
573
+ }
574
+ .text-gray-400 {
575
+ color: var(--color-gray-400);
576
+ }
577
+ .text-gray-500 {
578
+ color: var(--color-gray-500);
579
+ }
580
+ .text-gray-800 {
581
+ color: var(--color-gray-800);
582
+ }
583
+ .text-neutral-200 {
584
+ color: var(--color-neutral-200);
585
+ }
586
+ .text-neutral-300 {
587
+ color: var(--color-neutral-300);
588
+ }
589
+ .text-neutral-400\/50 {
590
+ color: color-mix(in srgb, oklch(70.8% 0 0) 50%, transparent);
591
+ @supports (color: color-mix(in lab, red, red)) {
592
+ color: color-mix(in oklab, var(--color-neutral-400) 50%, transparent);
593
+ }
594
+ }
595
+ .text-neutral-500 {
596
+ color: var(--color-neutral-500);
597
+ }
598
+ .text-neutral-600 {
599
+ color: var(--color-neutral-600);
600
+ }
601
+ .text-neutral-800 {
602
+ color: var(--color-neutral-800);
603
+ }
604
+ .text-transparent {
605
+ color: transparent;
606
+ }
607
+ .text-white {
608
+ color: var(--color-white);
609
+ }
610
+ .caret-gray-500 {
611
+ caret-color: var(--color-gray-500);
612
+ }
613
+ .opacity-0 {
614
+ opacity: 0%;
615
+ }
616
+ .opacity-100 {
617
+ opacity: 100%;
618
+ }
619
+ .mix-blend-difference {
620
+ mix-blend-mode: difference;
621
+ }
622
+ .\[box-shadow\:0px_0px_8px_0\.1px_gray\] {
623
+ box-shadow: 0px 0px 8px 0.1px gray;
624
+ }
625
+ .blur {
626
+ --tw-blur: blur(8px);
627
+ filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
628
+ }
629
+ .blur-sm {
630
+ --tw-blur: blur(var(--blur-sm));
631
+ filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
632
+ }
633
+ .backdrop-blur-\[6px\] {
634
+ --tw-backdrop-blur: blur(6px);
635
+ -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
636
+ backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
637
+ }
638
+ .backdrop-blur-md {
639
+ --tw-backdrop-blur: blur(var(--blur-md));
640
+ -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
641
+ backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
642
+ }
643
+ .transition {
644
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
645
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
646
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
647
+ }
648
+ .transition-all {
649
+ transition-property: all;
650
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
651
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
652
+ }
653
+ .transition-shadow {
654
+ transition-property: box-shadow;
655
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
656
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
657
+ }
658
+ .transition-transform {
659
+ transition-property: transform, translate, scale, rotate;
660
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
661
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
662
+ }
663
+ .duration-300 {
664
+ --tw-duration: 300ms;
665
+ transition-duration: 300ms;
666
+ }
667
+ .duration-500 {
668
+ --tw-duration: 500ms;
669
+ transition-duration: 500ms;
670
+ }
671
+ .duration-600 {
672
+ --tw-duration: 600ms;
673
+ transition-duration: 600ms;
674
+ }
675
+ .duration-700 {
676
+ --tw-duration: 700ms;
677
+ transition-duration: 700ms;
678
+ }
679
+ .duration-1000 {
680
+ --tw-duration: 1000ms;
681
+ transition-duration: 1000ms;
682
+ }
683
+ .duration-9000 {
684
+ --tw-duration: 9000ms;
685
+ transition-duration: 9000ms;
686
+ }
687
+ .ease-in {
688
+ --tw-ease: var(--ease-in);
689
+ transition-timing-function: var(--ease-in);
690
+ }
691
+ .ease-in-out {
692
+ --tw-ease: var(--ease-in-out);
693
+ transition-timing-function: var(--ease-in-out);
694
+ }
695
+ .outline-none {
696
+ --tw-outline-style: none;
697
+ outline-style: none;
698
+ }
699
+ .focus-within\:\[box-shadow\:0px_0px_8px_0\.1px_\#d4d4d490_inset\] {
700
+ &:focus-within {
701
+ box-shadow: 0px 0px 8px 0.1px #d4d4d490 inset;
702
+ }
703
+ }
704
+ .hover\:scale-115 {
705
+ &:hover {
706
+ @media (hover: hover) {
707
+ --tw-scale-x: 115%;
708
+ --tw-scale-y: 115%;
709
+ --tw-scale-z: 115%;
710
+ scale: var(--tw-scale-x) var(--tw-scale-y);
711
+ }
712
+ }
713
+ }
714
+ .hover\:bg-gray-900 {
715
+ &:hover {
716
+ @media (hover: hover) {
717
+ background-color: var(--color-gray-900);
718
+ }
719
+ }
720
+ }
721
+ .hover\:bg-neutral-800 {
722
+ &:hover {
723
+ @media (hover: hover) {
724
+ background-color: var(--color-neutral-800);
725
+ }
726
+ }
727
+ }
728
+ .hover\:text-gray-300 {
729
+ &:hover {
730
+ @media (hover: hover) {
731
+ color: var(--color-gray-300);
732
+ }
733
+ }
734
+ }
735
+ .hover\:text-neutral-400 {
736
+ &:hover {
737
+ @media (hover: hover) {
738
+ color: var(--color-neutral-400);
739
+ }
740
+ }
741
+ }
742
+ .dark\:border-gray-500 {
743
+ @media (prefers-color-scheme: dark) {
744
+ border-color: var(--color-gray-500);
745
+ }
746
+ }
747
+ .dark\:border-gray-700 {
748
+ @media (prefers-color-scheme: dark) {
749
+ border-color: var(--color-gray-700);
750
+ }
751
+ }
752
+ .dark\:border-neutral-200\/30 {
753
+ @media (prefers-color-scheme: dark) {
754
+ border-color: color-mix(in srgb, oklch(92.2% 0 0) 30%, transparent);
755
+ @supports (color: color-mix(in lab, red, red)) {
756
+ border-color: color-mix(in oklab, var(--color-neutral-200) 30%, transparent);
757
+ }
758
+ }
759
+ }
760
+ .dark\:border-neutral-800 {
761
+ @media (prefers-color-scheme: dark) {
762
+ border-color: var(--color-neutral-800);
763
+ }
764
+ }
765
+ .dark\:border-neutral-900 {
766
+ @media (prefers-color-scheme: dark) {
767
+ border-color: var(--color-neutral-900);
768
+ }
769
+ }
770
+ .dark\:border-white {
771
+ @media (prefers-color-scheme: dark) {
772
+ border-color: var(--color-white);
773
+ }
774
+ }
775
+ .dark\:bg-gray-50 {
776
+ @media (prefers-color-scheme: dark) {
777
+ background-color: var(--color-gray-50);
778
+ }
779
+ }
780
+ .dark\:bg-gray-50\/5 {
781
+ @media (prefers-color-scheme: dark) {
782
+ background-color: color-mix(in srgb, oklch(98.5% 0.002 247.839) 5%, transparent);
783
+ @supports (color: color-mix(in lab, red, red)) {
784
+ background-color: color-mix(in oklab, var(--color-gray-50) 5%, transparent);
785
+ }
786
+ }
787
+ }
788
+ .dark\:bg-gray-100 {
789
+ @media (prefers-color-scheme: dark) {
790
+ background-color: var(--color-gray-100);
791
+ }
792
+ }
793
+ .dark\:bg-gray-200 {
794
+ @media (prefers-color-scheme: dark) {
795
+ background-color: var(--color-gray-200);
796
+ }
797
+ }
798
+ .dark\:bg-gray-800 {
799
+ @media (prefers-color-scheme: dark) {
800
+ background-color: var(--color-gray-800);
801
+ }
802
+ }
803
+ .dark\:bg-gray-900 {
804
+ @media (prefers-color-scheme: dark) {
805
+ background-color: var(--color-gray-900);
806
+ }
807
+ }
808
+ .dark\:bg-neutral-100 {
809
+ @media (prefers-color-scheme: dark) {
810
+ background-color: var(--color-neutral-100);
811
+ }
812
+ }
813
+ .dark\:bg-neutral-500 {
814
+ @media (prefers-color-scheme: dark) {
815
+ background-color: var(--color-neutral-500);
816
+ }
817
+ }
818
+ .dark\:bg-neutral-900 {
819
+ @media (prefers-color-scheme: dark) {
820
+ background-color: var(--color-neutral-900);
821
+ }
822
+ }
823
+ .dark\:bg-sky-600 {
824
+ @media (prefers-color-scheme: dark) {
825
+ background-color: var(--color-sky-600);
826
+ }
827
+ }
828
+ .dark\:text-gray-400 {
829
+ @media (prefers-color-scheme: dark) {
830
+ color: var(--color-gray-400);
831
+ }
832
+ }
833
+ .dark\:text-gray-600 {
834
+ @media (prefers-color-scheme: dark) {
835
+ color: var(--color-gray-600);
836
+ }
837
+ }
838
+ .dark\:text-gray-900 {
839
+ @media (prefers-color-scheme: dark) {
840
+ color: var(--color-gray-900);
841
+ }
842
+ }
843
+ .dark\:text-neutral-100 {
844
+ @media (prefers-color-scheme: dark) {
845
+ color: var(--color-neutral-100);
846
+ }
847
+ }
848
+ .dark\:text-neutral-300 {
849
+ @media (prefers-color-scheme: dark) {
850
+ color: var(--color-neutral-300);
851
+ }
852
+ }
853
+ .dark\:text-neutral-400 {
854
+ @media (prefers-color-scheme: dark) {
855
+ color: var(--color-neutral-400);
856
+ }
857
+ }
858
+ .dark\:text-neutral-600 {
859
+ @media (prefers-color-scheme: dark) {
860
+ color: var(--color-neutral-600);
861
+ }
862
+ }
863
+ .dark\:text-white {
864
+ @media (prefers-color-scheme: dark) {
865
+ color: var(--color-white);
866
+ }
867
+ }
868
+ .dark\:hover\:bg-neutral-800 {
869
+ @media (prefers-color-scheme: dark) {
870
+ &:hover {
871
+ @media (hover: hover) {
872
+ background-color: var(--color-neutral-800);
873
+ }
874
+ }
875
+ }
876
+ }
877
+ .dark\:hover\:text-gray-300 {
878
+ @media (prefers-color-scheme: dark) {
879
+ &:hover {
880
+ @media (hover: hover) {
881
+ color: var(--color-gray-300);
882
+ }
883
+ }
884
+ }
885
+ }
886
+ }
887
+ @property --tw-translate-x {
888
+ syntax: "*";
889
+ inherits: false;
890
+ initial-value: 0;
891
+ }
892
+ @property --tw-translate-y {
893
+ syntax: "*";
894
+ inherits: false;
895
+ initial-value: 0;
896
+ }
897
+ @property --tw-translate-z {
898
+ syntax: "*";
899
+ inherits: false;
900
+ initial-value: 0;
169
901
  }
170
- @property --tw-rotate-x {
902
+ @property --tw-border-style {
171
903
  syntax: "*";
172
904
  inherits: false;
905
+ initial-value: solid;
173
906
  }
174
- @property --tw-rotate-y {
907
+ @property --tw-font-weight {
175
908
  syntax: "*";
176
909
  inherits: false;
177
910
  }
178
- @property --tw-rotate-z {
911
+ @property --tw-blur {
179
912
  syntax: "*";
180
913
  inherits: false;
181
914
  }
182
- @property --tw-skew-x {
915
+ @property --tw-brightness {
183
916
  syntax: "*";
184
917
  inherits: false;
185
918
  }
186
- @property --tw-skew-y {
919
+ @property --tw-contrast {
187
920
  syntax: "*";
188
921
  inherits: false;
189
922
  }
923
+ @property --tw-grayscale {
924
+ syntax: "*";
925
+ inherits: false;
926
+ }
927
+ @property --tw-hue-rotate {
928
+ syntax: "*";
929
+ inherits: false;
930
+ }
931
+ @property --tw-invert {
932
+ syntax: "*";
933
+ inherits: false;
934
+ }
935
+ @property --tw-opacity {
936
+ syntax: "*";
937
+ inherits: false;
938
+ }
939
+ @property --tw-saturate {
940
+ syntax: "*";
941
+ inherits: false;
942
+ }
943
+ @property --tw-sepia {
944
+ syntax: "*";
945
+ inherits: false;
946
+ }
947
+ @property --tw-drop-shadow {
948
+ syntax: "*";
949
+ inherits: false;
950
+ }
951
+ @property --tw-drop-shadow-color {
952
+ syntax: "*";
953
+ inherits: false;
954
+ }
955
+ @property --tw-drop-shadow-alpha {
956
+ syntax: "<percentage>";
957
+ inherits: false;
958
+ initial-value: 100%;
959
+ }
960
+ @property --tw-drop-shadow-size {
961
+ syntax: "*";
962
+ inherits: false;
963
+ }
964
+ @property --tw-backdrop-blur {
965
+ syntax: "*";
966
+ inherits: false;
967
+ }
968
+ @property --tw-backdrop-brightness {
969
+ syntax: "*";
970
+ inherits: false;
971
+ }
972
+ @property --tw-backdrop-contrast {
973
+ syntax: "*";
974
+ inherits: false;
975
+ }
976
+ @property --tw-backdrop-grayscale {
977
+ syntax: "*";
978
+ inherits: false;
979
+ }
980
+ @property --tw-backdrop-hue-rotate {
981
+ syntax: "*";
982
+ inherits: false;
983
+ }
984
+ @property --tw-backdrop-invert {
985
+ syntax: "*";
986
+ inherits: false;
987
+ }
988
+ @property --tw-backdrop-opacity {
989
+ syntax: "*";
990
+ inherits: false;
991
+ }
992
+ @property --tw-backdrop-saturate {
993
+ syntax: "*";
994
+ inherits: false;
995
+ }
996
+ @property --tw-backdrop-sepia {
997
+ syntax: "*";
998
+ inherits: false;
999
+ }
1000
+ @property --tw-duration {
1001
+ syntax: "*";
1002
+ inherits: false;
1003
+ }
1004
+ @property --tw-ease {
1005
+ syntax: "*";
1006
+ inherits: false;
1007
+ }
1008
+ @property --tw-scale-x {
1009
+ syntax: "*";
1010
+ inherits: false;
1011
+ initial-value: 1;
1012
+ }
1013
+ @property --tw-scale-y {
1014
+ syntax: "*";
1015
+ inherits: false;
1016
+ initial-value: 1;
1017
+ }
1018
+ @property --tw-scale-z {
1019
+ syntax: "*";
1020
+ inherits: false;
1021
+ initial-value: 1;
1022
+ }
1023
+ @keyframes spin {
1024
+ to {
1025
+ transform: rotate(360deg);
1026
+ }
1027
+ }
1028
+ @keyframes ping {
1029
+ 75%, 100% {
1030
+ transform: scale(2);
1031
+ opacity: 0;
1032
+ }
1033
+ }
1034
+ @keyframes pulse {
1035
+ 50% {
1036
+ opacity: 0.5;
1037
+ }
1038
+ }
190
1039
  @layer properties {
191
1040
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
192
1041
  *, ::before, ::after, ::backdrop {
193
- --tw-rotate-x: initial;
194
- --tw-rotate-y: initial;
195
- --tw-rotate-z: initial;
196
- --tw-skew-x: initial;
197
- --tw-skew-y: initial;
1042
+ --tw-translate-x: 0;
1043
+ --tw-translate-y: 0;
1044
+ --tw-translate-z: 0;
1045
+ --tw-border-style: solid;
1046
+ --tw-font-weight: initial;
1047
+ --tw-blur: initial;
1048
+ --tw-brightness: initial;
1049
+ --tw-contrast: initial;
1050
+ --tw-grayscale: initial;
1051
+ --tw-hue-rotate: initial;
1052
+ --tw-invert: initial;
1053
+ --tw-opacity: initial;
1054
+ --tw-saturate: initial;
1055
+ --tw-sepia: initial;
1056
+ --tw-drop-shadow: initial;
1057
+ --tw-drop-shadow-color: initial;
1058
+ --tw-drop-shadow-alpha: 100%;
1059
+ --tw-drop-shadow-size: initial;
1060
+ --tw-backdrop-blur: initial;
1061
+ --tw-backdrop-brightness: initial;
1062
+ --tw-backdrop-contrast: initial;
1063
+ --tw-backdrop-grayscale: initial;
1064
+ --tw-backdrop-hue-rotate: initial;
1065
+ --tw-backdrop-invert: initial;
1066
+ --tw-backdrop-opacity: initial;
1067
+ --tw-backdrop-saturate: initial;
1068
+ --tw-backdrop-sepia: initial;
1069
+ --tw-duration: initial;
1070
+ --tw-ease: initial;
1071
+ --tw-scale-x: 1;
1072
+ --tw-scale-y: 1;
1073
+ --tw-scale-z: 1;
198
1074
  }
199
1075
  }
200
1076
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kotnala_ui",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -12,7 +12,8 @@
12
12
  },
13
13
  "peerDependencies": {
14
14
  "react": ">=18",
15
- "react-dom": ">=18"
15
+ "react-dom": ">=18",
16
+ "react-router-dom": ">=6"
16
17
  },
17
18
  "files": [
18
19
  "dist"
@@ -40,6 +41,7 @@
40
41
  "@types/react-dom": "^19.2.3",
41
42
  "autoprefixer": "^10.5.0",
42
43
  "postcss": "^8.5.15",
44
+ "react-router-dom": "^7.17.0",
43
45
  "tailwindcss": "^4.3.1",
44
46
  "typescript": "^6.0.3"
45
47
  }