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

webtic-ui

v1.0.6

Published

**Webtic UI Library** es una librería desarrollada por **Webtic**, diseñada para ofrecer componentes reutilizables y herramientas útiles para acelerar el desarrollo de aplicaciones web. Esta librería está orientada a ser un conjunto modular y flexible de

Readme

Webtic UI Library

Descripción

Webtic UI Library es una librería desarrollada por Webtic, diseñada para ofrecer componentes reutilizables y herramientas útiles para acelerar el desarrollo de aplicaciones web. Esta librería está orientada a ser un conjunto modular y flexible de herramientas, ideal para proyectos que requieren un diseño limpio y funcional.

Actualmente, la librería incluye el componente DataTable, y en el futuro se agregarán utilidades adicionales como formatDate y formatCurrency para manipulación y formateo de datos.


Instalación

Puedes instalar esta librería usando npm o yarn:

npm install @webtic-ui
# o
yarn add @webtic-ui

Uso

DataTable Component

El componente DataTable es una tabla personalizable que permite mostrar y administrar datos dinámicamente. Está diseñado para ser modular, accesible y fácil de integrar en cualquier proyecto.

Ejemplo básico:

<DataTable
	customColumn={columns}
	data={data}
	tableId="example-table"
	onView={(item) => console.log("Ver:", item)}
	loading={false}
/>

Props de DataTable:

| Propiedad | Tipo | Descripción | | --------------- | -------------------------------- | ----------------------------------------------------------------------------------------------- | | customColumn | CustomColumn[] | Lista de columnas personalizadas con propiedades como property, label, format y colors. | | data | any[] | Arreglo de datos que se mostrarán en la tabla. | | tableId | string | Identificador único de la tabla (usado para las keys internas). | | onView | (item: any) => void | Callback que se ejecuta al hacer clic en el botón de "Ver detalles". | | onEdit | (item: any) => void | Callback que se ejecuta al hacer clic en el botón de "Editar". | | onDelete | (item: any) => void | Callback que se ejecuta al hacer clic en el botón de "Eliminar". | | renderActions | (item: any) => React.ReactNode | Renderiza acciones adicionales personalizadas. | | loading | boolean | Indica si la tabla está cargando datos. |


Utilidades futuras

Próximamente se agregarán funciones útiles para la manipulación y el formateo de datos:

formatDate

Formatea fechas en diferentes formatos personalizados:

import { formatDate } from "@webtic/ui-library/utils";

const formattedDate = formatDate("2025-01-24", "DD/MM/YYYY");
console.log(formattedDate); // "24/01/2025"

formatCurrency

Convierte valores numéricos a formatos monetarios:

import { formatCurrency } from "@webtic/ui-library/utils";

const formattedCurrency = formatCurrency(1500.5, "USD");
console.log(formattedCurrency); // "$1,500.50"

Contribuir

Si deseas contribuir a esta librería, sigue estos pasos:

  1. Clona el repositorio:
git clone https://github.com/webtic/ui-library.git
  1. Instala las dependencias:
npm install
  1. Realiza tus cambios y envía un pull request.

Licencia

Esta librería está licenciada bajo la licencia MIT. Puedes usarla libremente en tus proyectos personales o comerciales.