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

@codeplex-sac/superposiciones

v0.1.7

Published

Utilidades de posicionamiento, portales y transiciones para aplicaciones React, basadas en **Material UI**. API en Español con retrocompatibilidad silenciosa para props en inglés.

Readme

@codeplex-sac/superposiciones

Utilidades de posicionamiento, portales y transiciones para aplicaciones React, basadas en Material UI. API en Español con retrocompatibilidad silenciosa para props en inglés.

Instalación

bun add @codeplex-sac/superposiciones @codeplex-sac/tema @mui/material @emotion/react @emotion/styled

Componentes


CodeplexPortal

Renderiza hijos fuera de la jerarquía DOM del componente padre (útil para modales, tooltips y overlays).

Ejemplo:

import { CodeplexPortal } from '@codeplex-sac/superposiciones';

export const Ejemplo = () => (
  <CodeplexPortal idContenedor="portal-root">
    <div>Esto se renderiza dentro de #portal-root, no del padre React.</div>
  </CodeplexPortal>
);

Props: | Propiedad | Tipo | Por defecto | Descripción | | :--- | :--- | :--- | :--- | | contenedor | Element \| (() => Element) \| null | — | Nodo DOM de destino. | | idContenedor | string | — | ID del nodo DOM de destino (alternativa a contenedor). | | deshabilitarPortal | boolean | false | Si true, renderiza en el lugar original. | | children | ReactNode | — | Contenido a teletransportar. |


CodeplexPosicionador

Popper con Panel flotante que se posiciona relativo a un elemento ancla.

Ejemplo:

import { CodeplexPosicionador } from '@codeplex-sac/superposiciones';
import { useState, useRef } from 'react';

export const Ejemplo = () => {
  const [abierto, setAbierto] = useState(false);
  const ancla = useRef<HTMLButtonElement>(null);

  return (
    <>
      <button ref={ancla} onClick={() => setAbierto(!abierto)}>Opciones</button>
      <CodeplexPosicionador
        abierto={abierto}
        elementoAncla={ancla.current}
        colocacion="bottom-start"
        cerrarAlClicFuera
        alCerrar={() => setAbierto(false)}
        titulo="Acciones disponibles"
      >
        <p>Contenido del panel flotante</p>
      </CodeplexPosicionador>
    </>
  );
};

Props: | Propiedad | Tipo | Por defecto | Descripción | | :--- | :--- | :--- | :--- | | abierto | boolean | — | Controla la visibilidad del panel. | | elementoAncla | PopperProps['anchorEl'] | — | Elemento de referencia para posicionarse. | | colocacion | PopperPlacementType | 'bottom-start' | Posición relativa al ancla. | | titulo | ReactNode | — | Cabecera del panel. | | estiloContenido | SxProps | — | Estilos del contenedor interno. | | conFondo | boolean | true | Envuelve el contenido en un Paper. | | transicion | boolean | true | Activa animación Fade al abrir/cerrar. | | distancia | number | 4 | Separación en px del elemento ancla. | | cerrarAlClicFuera | boolean | false | Cierra el panel al clicar fuera. | | alCerrar | (e: MouseEvent \| TouchEvent) => void | — | Callback al clicar fuera (requiere cerrarAlClicFuera). | | hijos | ReactNode | — | Contenido del panel (alias de children). |


CodeplexDetectorClicFuera

Wrapper que ejecuta un callback cuando el usuario hace clic fuera del área envuelta.

Ejemplo:

import { CodeplexDetectorClicFuera } from '@codeplex-sac/superposiciones';
import { useState } from 'react';

export const Ejemplo = () => {
  const [abierto, setAbierto] = useState(true);

  return (
    <CodeplexDetectorClicFuera alClickFuera={() => setAbierto(false)}>
      {abierto && (
        <div style={{ background: 'white', padding: 16, border: '1px solid #ccc' }}>
          Haz clic fuera para cerrar este panel.
        </div>
      )}
    </CodeplexDetectorClicFuera>
  );
};

Props: | Propiedad | Tipo | Por defecto | Descripción | | :--- | :--- | :--- | :--- | | alClickFuera | (e: MouseEvent \| TouchEvent) => void | — | Callback al detectar clic exterior. | | deshabilitado | boolean | false | Desactiva la detección. | | children | ReactNode | — | Área a monitorear. |


Transiciones

Wrappers en Español para las transiciones nativas de MUI: Collapse, Fade, Grow, Slide, Zoom.

Componentes exportados:

  • CodeplexColapsoCollapse
  • CodeplexDesvanecerFade
  • CodeplexCrecerGrow
  • CodeplexDeslizarSlide
  • CodeplexZoomZoom

Ejemplo con CodeplexDesvanecer:

import { CodeplexDesvanecer } from '@codeplex-sac/superposiciones';
import { useState } from 'react';

export const Ejemplo = () => {
  const [visible, setVisible] = useState(true);

  return (
    <>
      <button onClick={() => setVisible(!visible)}>Toggle</button>
      <CodeplexDesvanecer visible={visible} duracion={400}>
        <div>Contenido que aparece y desaparece con fade.</div>
      </CodeplexDesvanecer>
    </>
  );
};

Props comunes a todas las transiciones: | Propiedad | Tipo | Por defecto | Descripción | | :--- | :--- | :--- | :--- | | visible | boolean | — | Controla si el elemento es visible. | | duracion | number \| { enter?, exit? } | { enter: 300, exit: 200 } | Duración de la animación en ms. | | duracionEntrada | number | — | Duración de la animación de entrada. | | duracionSalida | number | — | Duración de la animación de salida. | | children | ReactNode | — | Elemento a animar. |

Props específicas de CodeplexDeslizar: | Propiedad | Tipo | Por defecto | Descripción | | :--- | :--- | :--- | :--- | | direccion | 'arriba' \| 'abajo' \| 'izquierda' \| 'derecha' | 'abajo' | Dirección del deslizamiento. |


Licencia

Propiedad privada de Codeplex SAC. Todos los derechos reservados.