telecop 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("react"),N=({children:i,variant:a="primary",size:l="md",onClick:o,disabled:t=!1,className:d=""})=>{const r="font-semibold rounded-lg transition-all duration-200 cursor-pointer",n={primary:"bg-blue-600 hover:bg-blue-700 text-white shadow-md hover:shadow-lg",secondary:"bg-gray-600 hover:bg-gray-700 text-white shadow-md hover:shadow-lg",danger:"bg-red-600 hover:bg-red-700 text-white shadow-md hover:shadow-lg"},c={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-6 py-3 text-lg"},h=t?"opacity-50 cursor-not-allowed":"";return e.jsx("button",{className:`${r} ${n[a]} ${c[l]} ${h} ${d}`,onClick:o,disabled:t,children:i})},x=({children:i,variant:a="blur",size:l="md",onClick:o,disabled:t=!1,className:d=""})=>{const[r,n]=j.useState([]),c=s=>{if(!t&&o){const p=s.currentTarget.getBoundingClientRect(),g=s.clientX-p.left,v=s.clientY-p.top,m=Date.now();n([...r,{x:g,y:v,id:m}]),setTimeout(()=>{n(f=>f.filter(y=>y.id!==m))},800),o()}},h=`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("react"),N=({children:i,variant:a="primary",size:l="md",onClick:o,disabled:t=!1,className:d=""})=>{const r="font-semibold rounded-lg transition-all duration-200 cursor-pointer",n={primary:"bg-blue-600 hover:bg-blue-700 text-white shadow-md hover:shadow-lg",secondary:"bg-gray-600 hover:bg-gray-700 text-white shadow-md hover:shadow-lg",danger:"bg-red-600 hover:bg-red-700 text-white shadow-md hover:shadow-lg"},c={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-6 py-3 text-lg"},h=t?"opacity-50 cursor-not-allowed":"";return e.jsx("button",{className:`${r} ${n[a]} ${c[l]} ${h} ${d}`,onClick:o,disabled:t,children:i})},x=({children:i,variant:a="blur",size:l="md",onClick:o,disabled:t=!1,className:d=""})=>{const[r,n]=j.useState([]),c=s=>{if(!t&&o){const p=s.currentTarget.getBoundingClientRect(),g=s.clientX-p.left,v=s.clientY-p.top,u=Date.now();n([...r,{x:g,y:v,id:u}]),setTimeout(()=>{n(f=>f.filter(y=>y.id!==u))},800),o()}},h=`
2
2
  relative overflow-hidden
3
3
  backdrop-blur-xl
4
4
  border border-white/30
@@ -8,7 +8,7 @@
8
8
  cursor-pointer
9
9
  shadow-xl
10
10
  group
11
- `,u={sm:"px-5 py-2.5 text-sm",md:"px-7 py-3.5 text-base",lg:"px-9 py-4.5 text-lg"},b={blur:`
11
+ `,m={sm:"px-5 py-2.5 text-sm",md:"px-7 py-3.5 text-base",lg:"px-9 py-4.5 text-lg"},b={blur:`
12
12
  bg-white/5
13
13
  hover:bg-white/15
14
14
  hover:border-white/50
@@ -31,4 +31,4 @@
31
31
  before:translate-x-[-200%]
32
32
  hover:before:translate-x-[200%]
33
33
  before:transition-transform before:duration-1000
34
- `},w=t?"opacity-40 cursor-not-allowed hover:scale-100 hover:shadow-xl":"";return e.jsxs("button",{className:`${h} ${u[l]} ${b[a]} ${w} ${d}`,onClick:c,disabled:t,children:[a==="waves"&&!t&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"absolute inset-0 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-pink-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-700"}),e.jsx("span",{className:"absolute inset-0 bg-gradient-to-br from-transparent via-white/10 to-transparent animate-pulse"})]}),a==="blur"&&!t&&e.jsx("span",{className:"absolute inset-0 bg-white/5 blur-xl opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),e.jsx("span",{className:"absolute inset-0 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none",children:e.jsx("span",{className:"absolute inset-[-2px] rounded-2xl bg-gradient-to-r from-transparent via-white/40 to-transparent blur-sm animate-shimmer"})}),r.map(s=>e.jsx("span",{className:"absolute rounded-full bg-white/30 pointer-events-none animate-ripple",style:{left:s.x,top:s.y,width:"20px",height:"20px",transform:"translate(-50%, -50%)"}},s.id)),e.jsx("span",{className:"relative z-10 drop-shadow-lg",children:i})]})},C=({name:i,title:a,description:l="Welcome to my portfolio",primaryButtonText:o="Get Started",secondaryButtonText:t="Learn More",onPrimaryClick:d,onSecondaryClick:r,backgroundGradient:n="linear-gradient(135deg, #667eea 0%, #764ba2 100%)",className:c=""})=>e.jsx("div",{className:`min-h-screen flex items-center justify-center p-8 ${c}`,style:{background:n},children:e.jsxs("div",{className:"max-w-4xl w-full text-center space-y-8",children:[e.jsx("h1",{className:"text-6xl md:text-8xl font-bold text-white mb-4 animate-fade-in",style:{textShadow:"0 0 40px rgba(0,0,0,0.3)",animation:"fadeInUp 0.8s ease-out"},children:i}),e.jsx("h2",{className:"text-3xl md:text-5xl font-semibold text-white/90",style:{textShadow:"0 0 30px rgba(0,0,0,0.2)",animation:"fadeInUp 1s ease-out 0.2s backwards"},children:a}),e.jsx("p",{className:"text-xl md:text-2xl text-white/80 max-w-2xl mx-auto",style:{textShadow:"0 0 20px rgba(0,0,0,0.2)",animation:"fadeInUp 1.2s ease-out 0.4s backwards"},children:l}),e.jsxs("div",{className:"flex flex-wrap gap-6 justify-center mt-12",style:{animation:"fadeInUp 1.4s ease-out 0.6s backwards"},children:[e.jsx(x,{variant:"waves",size:"lg",onClick:d,children:o}),e.jsx(x,{variant:"blur",size:"lg",onClick:r,children:t})]}),e.jsx("div",{className:"mt-16 mx-auto w-32 h-1 rounded-full",style:{background:"linear-gradient(90deg, transparent, white, transparent)",animation:"fadeIn 2s ease-out 1s backwards"}})]})});exports.Button=N;exports.GlassButton=x;exports.Home=C;
34
+ `},w=t?"opacity-40 cursor-not-allowed hover:scale-100 hover:shadow-xl":"";return e.jsxs("button",{className:`${h} ${m[l]} ${b[a]} ${w} ${d}`,onClick:c,disabled:t,children:[a==="waves"&&!t&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"absolute inset-0 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-pink-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-700"}),e.jsx("span",{className:"absolute inset-0 bg-gradient-to-br from-transparent via-white/10 to-transparent animate-pulse"})]}),a==="blur"&&!t&&e.jsx("span",{className:"absolute inset-0 bg-white/5 blur-xl opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),e.jsx("span",{className:"absolute inset-0 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none",children:e.jsx("span",{className:"absolute inset-[-2px] rounded-2xl bg-gradient-to-r from-transparent via-white/40 to-transparent blur-sm animate-shimmer"})}),r.map(s=>e.jsx("span",{className:"absolute rounded-full bg-white/30 pointer-events-none animate-ripple",style:{left:s.x,top:s.y,width:"20px",height:"20px",transform:"translate(-50%, -50%)"}},s.id)),e.jsx("span",{className:"relative z-10 drop-shadow-lg",children:i})]})},C=({name:i,title:a,description:l="Welcome to my portfolio",primaryButtonText:o="Get Started",secondaryButtonText:t="Learn More",onPrimaryClick:d,onSecondaryClick:r,backgroundGradient:n="linear-gradient(135deg, #667eea 0%, #764ba2 100%)",className:c=""})=>e.jsx("div",{className:`min-h-screen flex items-center justify-center p-8 ${c}`,style:{background:n},children:e.jsxs("div",{className:"max-w-4xl w-full text-center space-y-8",children:[e.jsx("h1",{className:"text-6xl md:text-8xl font-bold text-white mb-4 animate-fade-in",style:{textShadow:"0 0 40px rgba(0,0,0,0.3)",animation:"fadeInUp 0.8s ease-out"},children:i}),e.jsx("h2",{className:"text-3xl md:text-5xl font-semibold text-white/90",style:{textShadow:"0 0 30px rgba(0,0,0,0.2)",animation:"fadeInUp 1s ease-out 0.2s backwards"},children:a}),e.jsx("p",{className:"text-xl md:text-2xl text-white/80 max-w-2xl mx-auto",style:{textShadow:"0 0 20px rgba(0,0,0,0.2)",animation:"fadeInUp 1.2s ease-out 0.4s backwards"},children:l}),e.jsxs("div",{className:"flex flex-wrap gap-6 justify-center mt-12",style:{animation:"fadeInUp 1.4s ease-out 0.6s backwards"},children:[e.jsx(x,{variant:"waves",size:"lg",onClick:d,children:o}),e.jsx(x,{variant:"blur",size:"lg",onClick:r,children:t})]}),e.jsx("div",{className:"mt-16 mx-auto w-32 h-1 rounded-full",style:{background:"linear-gradient(90deg, transparent, white, transparent)",animation:"fadeIn 2s ease-out 1s backwards"}})]})});exports.Button=N;exports.GlassButton=x;exports.Home=C;
package/dist/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as e, jsxs as h, Fragment as C } from "react/jsx-runtime";
2
3
  import { useState as k } from "react";
3
4
  const I = ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telecop",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Modern React UI Components Library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",