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

glubox

v0.1.5

Published

Librería de componentes React para aplicaciones empresariales — Sidebar RBAC, DataGrid, formularios, Popup, Toast, botones y temas pastel

Downloads

524

Readme

gluBox

Librería de componentes React para aplicaciones empresariales: Sidebar con RBAC, DataGrid, controles de formulario, botones y 3 temas globales (Indigo / Emerald / Blue) en modo claro y oscuro.

  • Documentación: https://solivoo.github.io/gluebox/
  • Repositorio: https://github.com/solivoo/gluebox
  • npm: https://www.npmjs.com/package/glubox

Instalación

pnpm add glubox
import {
  Sidebar,
  Button,
  Select,
  TextBox,
  DateBox,
  RangeDateBox,
  OptionGroup,
  CheckButton,
  Popup,
  ToastProvider,
  useToast,
  hasPermission,
  filterVisibleMenu,
} from 'glubox';
import 'glubox/style.css';
import 'glubox/themes/default.css'; // o modern.css, enterprise.css, index.css

Tipado de eventos:

import type {
  SelectOnChangeHandler,
  PopupOnCloseHandler,
  ToastShowHandler,
} from 'glubox';

Componentes

| Componente | Descripción | |------------|-------------| | Sidebar | Navegación lateral, menú desde API, RBAC, 3 niveles | | Button | Botón con variantes y temas | | TextBox | Campo de texto con label top / floating / outlined / left | | Select | Desplegable con teclado y búsqueda type-ahead | | DateBox | Selector de fecha con calendario | | RangeDateBox | Rango de fechas en un solo control | | OptionGroup | Selección exclusiva (vertical, horizontal, segmented) | | CheckButton | Toggle con semántica checkbox | | Popup | Diálogo modal arrastrable con acciones en el pie | | Toast | Notificaciones con posicionamiento, timer y animaciones |

Documentación de tipos de eventos: ver docs/guide/event-types.md o la demo → API → Events.

Uso rápido

Sidebar

<Sidebar
  menu={menuConfig}
  userPermissions={userPermissions}
  activePath={pathname}
  onNavigate={navigate}
  renderIcon={renderMenuIcon}
  theme="dark"
  collapseOthersOnSelect
/>

Formularios

<TextBox label="Email" placeholder="[email protected]" clearable />

<Select
  options={[{ value: '1', label: 'Opción 1' }]}
  label="País"
  labelPosition="outlined"
  placeholder="Seleccionar..."
/>

<DateBox label="Vencimiento" labelPosition="outlined" variant="outline" />

<OptionGroup
  label="Plan"
  layout="segmented"
  options={[
    { value: 'basic', label: 'Basic' },
    { value: 'pro', label: 'Pro' },
  ]}
/>

Popup y Toast

<Popup open={open} onClose={() => setOpen(false)} title="Confirmar" width={480}>
  Contenido del diálogo
</Popup>

// Envolver la app con ToastProvider
const { show } = useToast();
show({ title: 'Guardado', message: 'Cambios aplicados.', variant: 'success' });

Label outlined y canvas

Con labelPosition="outlined" el control es transparente y el label se apoya en el fondo del contenedor. Si el formulario está sobre una card, define el canvas en el padre:

.mi-card {
  --glb-field-canvas: var(--glb-surface);
}

Temas globales

import 'glubox/themes/enterprise.css';

document.documentElement.setAttribute('data-theme', 'enterprise');
document.documentElement.setAttribute('data-mode', 'dark');

| Tema | Acento | |------|--------| | default | Periwinkle pastel | | modern | Sage pastel | | enterprise | Powder blue pastel |

Cada componente acepta además su prop theme (light, dark, presets como modern-dark, o tokens custom).

Documentación completa del sistema de temas: docs/guide/themes.md (VitePress) o pnpm docs:devTemas y apariencia.

Desarrollo

pnpm install
pnpm dev              # Demo interactiva (playground)
pnpm docs:dev         # Documentación VitePress
pnpm build:lib        # Build para npm
pnpm publish:lib      # prepublish:lib + npm publish (tras npm login)
pnpm docs:build       # Build docs → GitHub Pages

Publicar en npm (manual)

pnpm install
pnpm build:lib
npm login
npm publish --access public
# o: pnpm publish:lib

Estructura del repo

src/components/       # Componentes publicados en npm
src/demo/             # Demo interactiva (no se publica)
src/styles/           # Temas CSS y tokens globales
docs/                 # Documentación VitePress

Licencia

MIT