kotnala_ui 1.0.4 → 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 StaggeredText(): import("react").JSX.Element;
2
- export default StaggeredText;
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;
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.esm.js CHANGED
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";function r(){return e("div",{className:"",children:"this is Staggered Text"})}export{r 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 +1 @@
1
- "use strict";var e=require("react/jsx-runtime");exports.MeteorMash=function(){return e.jsx("div",{className:"",children:"this is Staggered Text"})};
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
@@ -1,4 +1,5 @@
1
1
  /*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
2
+ @layer properties;
2
3
  @layer theme, base, components, utilities;
3
4
  @layer theme {
4
5
  :root, :host {
@@ -6,6 +7,59 @@
6
7
  "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
7
8
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
8
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);
9
63
  --default-font-family: var(--font-sans);
10
64
  --default-mono-font-family: var(--font-mono);
11
65
  }
@@ -158,4 +212,865 @@
158
212
  display: none !important;
159
213
  }
160
214
  }
161
- @layer utilities;
215
+ @layer utilities {
216
+ .pointer-events-none {
217
+ pointer-events: none;
218
+ }
219
+ .absolute {
220
+ position: absolute;
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;
901
+ }
902
+ @property --tw-border-style {
903
+ syntax: "*";
904
+ inherits: false;
905
+ initial-value: solid;
906
+ }
907
+ @property --tw-font-weight {
908
+ syntax: "*";
909
+ inherits: false;
910
+ }
911
+ @property --tw-blur {
912
+ syntax: "*";
913
+ inherits: false;
914
+ }
915
+ @property --tw-brightness {
916
+ syntax: "*";
917
+ inherits: false;
918
+ }
919
+ @property --tw-contrast {
920
+ syntax: "*";
921
+ inherits: false;
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
+ }
1039
+ @layer properties {
1040
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
1041
+ *, ::before, ::after, ::backdrop {
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;
1074
+ }
1075
+ }
1076
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kotnala_ui",
3
- "version": "1.0.4",
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
  }