npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

pyme360

v0.9.2

Published

Una librería moderna de componentes React diseñada específicamente para aplicaciones empresariales y PYMEs.

Downloads

391

Readme

Pyme360 UI Components

Una librería moderna de componentes React diseñada específicamente para aplicaciones empresariales y PYMEs.

🚀 Características

  • TypeScript completo - Tipado seguro y autocompletado
  • 🎨 Tailwind CSS - Diseño moderno y customizable
  • 🌙 Modo oscuro - Soporte nativo para temas claro/oscuro
  • 📱 Responsive - Diseño adaptativo para todos los dispositivos
  • 🔧 Tree-shaking - Importa solo lo que necesitas
  • 📦 Importaciones modulares - Importa componentes específicos
  • Accesibilidad - Cumple estándares WCAG
  • 🎭 Headless UI - Componentes accesibles de alta calidad

📦 Instalación

# npm
npm install pyme360

# yarn
yarn add pyme360

# pnpm
pnpm add pyme360

Peer Dependencies

npm install react react-dom @headlessui/react

🎯 Uso

Importación completa

import { Button, Card, Modal } from "pyme360";
import "pyme360/styles";

function App() {
  return (
    <Card>
      <Button variant="primary">Click me</Button>
    </Card>
  );
}

Importaciones específicas (Tree-shaking optimizado)

// Importar solo el componente Button
import { Button } from "pyme360/components";

// Importar todos los componentes de formularios
import { Input, Select, TextArea } from "pyme360/components";

// Importar utilidades específicas
import { cn, formatDate } from "pyme360/utils";

// Importar hooks específicos
import { useTheme, useSidebar } from "pyme360/hooks";

Configuración de estilos

Para usar los componentes correctamente, importa los estilos CSS:

// En tu archivo principal (main.tsx, App.tsx, etc.)
import "pyme360/index.css";

Usar con TailwindCSS

Si ya tienes TailwindCSS en tu proyecto y prefieres controlar los estilos directamente, también puedes importar el tema del paquete en tu archivo donde configures los estilos de Tailwind (por ejemplo index.css o globals.css):

@import 'tailwindcss';
@import '../node_modules/pyme360/dist/styles/theme.css';

Además, asegúrate de agregar la ruta de los componentes del paquete en la configuración de content de Tailwind, para que compile correctamente las clases usadas en la librería:

@source "../node_modules/pyme360/dist/**/*.{js,jsx,ts,tsx,vue,html}";

📌 Nota: la ruta es relativa a node_modules, por lo que si tu gestor de paquetes instala las dependencias en otra ubicación, deberás ajustar el path según corresponda.

📚 Componentes Disponibles

🧱 Componentes Base

  • Alert - Notificaciones y alertas
  • Badge - Etiquetas de estado
  • Button - Botones con variantes
  • Card - Contenedores con estilo
  • Modal - Ventanas modales

📝 Formularios

  • Input - Campo de texto
  • InputPassword - Campo de contraseña
  • InputTel - Campo de teléfono
  • Select - Selector con búsqueda
  • TextArea - Área de texto
  • Checkbox - Casillas de verificación
  • ToggleSwitch - Interruptores
  • DateInput - Selector de fecha
  • FileDropzone - Área de carga de archivos

📊 Visualización de Datos

  • Table - Tablas con funcionalidades avanzadas
  • Charts - Gráficos (LineChart, BarChart, PieChart, etc.)
  • Calendar - Calendario interactivo
  • Pagination - Paginación

🎛️ Navegación

  • Sidebar - Barra lateral
  • Dropdown - Menús desplegables
  • Layout - Layouts predefinidos
  • ThemeToggle - Alternador de tema

🔧 Utilidades

  • Toast - Notificaciones toast
  • Providers - Contextos globales

🎨 Personalización

Tema personalizado

import { ThemeProvider } from "pyme360/providers";

function App() {
  return (
    <ThemeProvider defaultTheme="dark">
      <YourApp />
    </ThemeProvider>
  );
}

Estilos personalizados con Tailwind

Los componentes están construidos con Tailwind CSS y soportan todas las clases:

<Button
  className="bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600"
  variant="primary"
>
  Botón personalizado
</Button>

🔧 Configuración avanzada

Vite

// vite.config.ts
import { defineConfig } from "vite";
import tailwindcss from "@tailwindcss/vite";

export default defineConfig({
  plugins: [tailwindcss()],
  // ...resto de configuración
});

📖 Documentación completa

Para documentación detallada, ejemplos y guías: