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-ecommerce

v1.0.7

Published

Librería de componentes UI moderna y accesible para React

Readme

UI Component Library

Una librería de componentes UI moderna y accesible para React, construida con TypeScript.

Instalación

npm install ui-ecommerce

Uso

import { Button, Input, Icon } from 'ui-ecommerce';

Componentes

Button

Componente de botón con múltiples variantes y estados.

import { Button } from 'ui-ecommerce';

<Button 
  variant="primary" 
  size="md" 
  onClick={() => console.log('clicked')}
>
  Click me
</Button>

Props

| Prop | Tipo | Default | Descripción | |------|------|---------|-------------| | variant | 'primary' | 'secondary' | 'ghost' | 'outline' | 'primary' | Estilo visual del botón | | size | 'sm' | 'md' | 'lg' | 'md' | Tamaño del botón | | disabled | boolean | false | Estado deshabilitado | | loading | boolean | false | Estado de carga | | leftIcon | ReactNode | - | Icono a la izquierda | | rightIcon | ReactNode | - | Icono a la derecha |

Input

Campo de entrada con soporte para estados, iconos y mensajes de error.

import { Input } from 'ui-ecommerce';

<Input
  label="Email"
  type="email"
  placeholder="[email protected]"
  error="Email inválido"
  required
/>

Props

| Prop | Tipo | Default | Descripción | |------|------|---------|-------------| | label | string | - | Etiqueta del campo | | error | string | - | Mensaje de error | | helperText | string | - | Texto de ayuda | | size | 'sm' | 'md' | 'lg' | 'md' | Tamaño del input | | leftIcon | ReactNode | - | Icono a la izquierda | | rightIcon | ReactNode | - | Icono a la derecha | | required | boolean | false | Campo requerido |

Icon

Sistema de iconos con soporte para diferentes tamaños y colores.

import { Icon } from 'ui-ecommerce';

<Icon name="check" size="md" color="primary" />

Props

| Prop | Tipo | Default | Descripción | |------|------|---------|-------------| | name | string | - | Nombre del icono | | size | 'sm' | 'md' | 'lg' | 'md' | Tamaño del icono | | color | string | 'currentColor' | Color del icono |

Typography

Componentes tipográficos consistentes.

import { Typography } from 'ui-ecommerce';

<Typography variant="h1">Título Principal</Typography>
<Typography variant="body1">Texto regular</Typography>

Props

| Prop | Tipo | Default | Descripción | |------|------|---------|-------------| | variant | 'h1' | 'h2' | 'h3' | 'h4' | 'body1' | 'body2' | 'caption' | 'body1' | Variante tipográfica | | align | 'left' | 'center' | 'right' | 'left' | Alineación del texto | | color | string | - | Color del texto |

Temas

La librería soporta modo claro y oscuro. Para cambiar el tema:

<div data-theme="dark">
  {/* Tus componentes aquí */}
</div>

Variables CSS

La librería utiliza variables CSS para personalización:

:root {
  /* Colores */
  --primary-500: #2563eb;
  --error-500: #dc2626;
  --gray-900: #111827;
  
  /* Espaciado */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  
  /* Tipografía */
  --font-family-base: system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
}

Desarrollo

# Instalar dependencias
npm install

# Ejecutar Storybook
npm run storybook

# Ejecutar pruebas
npm run test

# Construir la librería
npm run build

Licencia

MIT