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

ui-library-t1

v0.0.22

Published

Libreria de componentes reutilizables

Downloads

88

Readme

Biblioteca de compontens T1

Esta diseñada para entregar una biblioteca de componentes para poder se reutilizados en cualqueir proyecto

Autor

Tecnologías Utilizadas

  • React
  • TypeScript
  • Vite
  • Tailwind CSS
  • class-variance-authority
  • tailwind-merge
  • clsx
  • Storybook
  • Jest
  • React Testing Library
  • @testing-library/user-event
  • ts-jest
  • ESLint
  • Prettier

Requisitos

  • Node.js >= v22.13.1
  • npm >= 10.9.2
  • Git - Para control de versiones

Navegadores Soportados

  • Chrome >= 90
  • Firefox >= 88
  • Safari >= 14
  • Edge >= 90

Pasos para ejecutar el proyecto

  1. Instalar las dependencias
  npm install
  1. Levantar el servidor de la documentación
    npm run storybook

Pasos para compilar y publicar en npm

  1. No tener ningun trabajo en progreso.
  2. Compilar la libreria
   npm run build
  1. Subir version al paquete
   npm version patch
  1. Publicar. en el npm registry
   npm publish

Pruebas unitarias

  1. Ejecutar
   npm test

Estructura del Proyecto

ui-library-t1/
├── 📁 src/
│   ├── 📄 index.css                  # Estilos globales
│   ├── 📄 main.ts                    # Punto de entrada principal
│   ├── 📁 Button/
│   │   ├── 📄 Button.tsx             # Componente Button
│   │   └── 📄 Button.stories.tsx     # Historias de Storybook
│   ├── 📁 Card/
│   │   └── 📄 Card.tsx               # Componente Card
│   ├── 📁 Input/
│   │   └── 📄 Input.tsx              # Componente Input
│   ├── 📁 Modal/
│   │   └── 📄 Modal.tsx              # Componente Modal
│   ├── 📁 tokens/
│   │   ├── 📄 index.ts               # Exportaciones de tokens
│   │   ├── 📄 breakpoints.ts         # Breakpoints responsivos
│   │   ├── 📄 colors.ts              # Paleta de colores
│   │   ├── 📄 spacing.ts             # Sistema de espaciado
│   │   └── 📄 theme.ts               # Configuración del tema
│   ├── 📁 types/
│   │   └── 📄 index.ts               # Tipos TypeScript
│   ├── 📁 utils/
│   │   └── 📄 index.ts               # Utilidades y helpers
│   └── 📁 __tests__/
│       ├── 📄 Button.test.tsx        # Tests del Button (9 tests)
│       ├── 📄 Card.test.tsx          # Tests del Card (9 tests)
│       ├── 📄 Input.test.tsx         # Tests del Input (12 tests)
│       └── 📄 Modal.test.tsx         # Tests del Modal (12 tests)
├── 📁 __mocks__/
│   ├── 📄 clsx.js                    # Mock para clsx
│   ├── 📄 tailwind-merge.js          # Mock para tailwind-merge
│   └── 📄 class-variance-authority.js # Mock para CVA
├── 📄 package.json                   # Configuración del proyecto
├── 📄 tsconfig.json                  # Configuración de TypeScript
├── 📄 vite.config.ts                 # Configuración de Vite
├── 📄 tailwind.config.js             # Configuración de Tailwind CSS
├── 📄 eslint.config.js               # Configuración de ESLint
├── 📄 jest.config.js                 # Configuración de Jest
├── 📄 index.html                     # Archivo HTML principal
└── 📄 README.md                      # Documentación del proyecto

Componentes Disponibles

Button

  • Variantes: primary, secondary, outline, ghost
  • Tamaños: sm, md, lg
  • Estados: loading, disabled
  • Cobertura: 9 tests unitarios

Card

  • Secciones: CardHeader, CardContent, CardFooter, CardImage
  • Opciones: border, borderType, rounded, separator
  • Cobertura: 9 tests unitarios

Input

  • Tipos: text, email, password, number
  • Estados: error, success, disabled
  • Validación automática para email
  • Cobertura: 12 tests unitarios

Modal

  • Tamaños: sm, md, lg, xl
  • Overlay personalizable
  • Gestión de eventos de teclado
  • Cobertura: 12 tests unitarios

Sistema de Tokens

  • Colores: Paleta completa con variantes
  • Espaciado: Sistema consistente de spacing
  • Breakpoints: Configuración responsive
  • Tema: Configuración centralizada