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 🙏

© 2026 – Pkg Stats / Ryan Hefner

buwipro

v1.0.66

Published

library components

Readme

Buwipro UI Library

Una librería de componentes React moderna y personalizable para construir interfaces de usuario.

Requisitos

  • Node.js 20.x o superior
  • React 18.x
  • Styled Components 6.x

Instalación

npm install @bewe/buwipro
# o
yarn add @bewe/buwipro

Uso Básico

import React from 'react';
import { AtomButtonGeneral, LibraryProvider } from '@bewe/buwipro';

const App = () => {
  return (
    <LibraryProvider>
      <AtomButtonGeneral>Click me</AtomButtonGeneral>
    </LibraryProvider>
  );
};

export default App;

Storybook

Para agilizar el proceso de desarrollo de componentes y proporcionar una interfaz visual, utilizamos Storybook. A continuación se detallan los pasos para crear y organizar componentes en Storybook:

  1. Define el Tipo de Componente:

    • Antes de crear un componente, es importante determinar si será un átomo, molécula u organismo.
  2. Crea la Carpeta del Componente:

    • Navega a components/(tipo de componente) y crea una carpeta con el nombre del componente.
    • Ejemplo: components/atoms/Button
  3. Archivos del Componente:

    • Dentro de la carpeta del componente, crea:
      • styles.ts: Estilos del componente usando styled-components
      • index.tsx: Lógica y estructura del componente
  4. Crea la Historia del Componente:

    • En la carpeta stories/(tipo de componente) crea el archivo de historia
    • Ejemplo: Button.stories.ts
  5. Ejecuta el proyecto Storybook:

    npm run storybook

Ejemplo

Build

npm run build

Publicar

npm publish --access=public

Tema

Tema por Defecto

La librería viene con un tema predeterminado:

import React from "react";
import { AtomTextArea } from "@bewe/buwipro";

const App = () => {
  return <AtomTextArea placeholder="Escribe tu mensaje..." />;
};

export default App;

Tema Personalizado

Puedes personalizar el tema usando LibraryProvider:

import React from "react";
import { LibraryProvider, AtomTextArea } from "@bewe/buwipro";

const customTheme = {
  colors: {
    primary: "#FF5733",
    secondary: "#FFC300",
    background: "#f5f5f5",
    grey300: "#d3d3d3",
    // Agrega otras propiedades de color según necesites
  },
};

const App = () => {
  return (
    <LibraryProvider theme={customTheme}>
      <AtomTextArea placeholder="Textarea con tema personalizado" />
    </LibraryProvider>
  );
};

export default App;

Estructura del Tema

Tu objeto de tema personalizado debe coincidir con esta estructura:

export type Colors = {
  primary: string;
  primary100: string;
  primary200: string;
  primary300: string;
  secondary: string;
  secondary100: string;
  secondary200: string;
  grey: string;
  grey100: string;
  grey200: string;
  grey300: string;
  light: string;
  black: string;
  white: string;
  background: string;
  alert: string;
};

Uso Avanzado

Uso con un ThemeProvider Existente

import React from "react";
import { ThemeProvider } from "styled-components";
import { LibraryProvider, AtomTextArea } from "@bewe/buwipro";

const existingTheme = {
  colors: {
    primary: "#00bcd4",
    secondary: "#8bc34a",
    // Define otros colores según necesites
  },
};

const App = () => {
  return (
    <ThemeProvider theme={existingTheme}>
      <LibraryProvider>
        <AtomTextArea placeholder="Escribe tu mensaje..." />
      </LibraryProvider>
    </ThemeProvider>
  );
};

export default App;

Componentes Disponibles

Atoms

  • AtomButtonGeneral - Botón principal
  • AtomButtonGhost - Botón fantasma
  • AtomButtonIcon - Botón con icono
  • AtomButtonOutline - Botón con borde
  • AtomButtonSelect - Botón seleccionable
  • AtomCard - Tarjeta básica
  • AtomCardMobile - Tarjeta para móvil
  • AtomCheckBox - Casilla de verificación
  • AtomInput - Campo de entrada
  • AtomInputForm - Campo de formulario
  • AtomInputAction - Campo de entrada con acción
  • AtomOptions - Opciones
  • AtomRadioButton - Botón de radio
  • AtomSelect - Selector
  • AtomTextArea - Área de texto
  • AtomToggle - Interruptor
  • AtomLoader - Cargador
  • AtomDivisor - Divisor
  • AtomDocumentItem - Item de documento

Molecules

  • MoleculeAlertMobile - Alerta móvil
  • MoleculeCardEditInfo - Tarjeta de edición
  • MoleculeCardMobile - Tarjeta móvil
  • MoleculeExcelDownload - Descarga de Excel
  • MoleculeHeader - Encabezado
  • MoleculeInput - Input compuesto
  • MoleculeInputPhone - Input para teléfono
  • MoleculeMessage - Mensaje
  • MoleculeSelect - Selector compuesto
  • MoleculeTextArea - Área de texto compuesta
  • MoleculeUploadDocument - Carga de documentos

Tokens

  • TokenError - Mensaje de error
  • TokenLabel - Etiqueta
  • TokenLink - Enlace
  • TokenParagraph - Párrafo
  • TokenSubTitle - Subtítulo
  • TokenText - Texto
  • TokenTitle - Título