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

@net-advantage/jo-ui-side-panel

v2.1.0

Published

A sheet anchored to the right edge. While it is the topmost overlay, focus stays inside the panel and Escape closes it.

Readme

@net-advantage/jo-ui-side-panel

A sheet anchored to the right edge. While it is the topmost overlay, focus stays inside the panel and Escape closes it.

The panel follows a strict MVVM split. The model resolves the heading, kicker, class, and portal container. The view-model owns the focus trap and the scrim guard. The view renders the view-model.

MVVM

flowchart LR
  Props["SidePanelProps"] --> ViewModel["useSidePanelViewModel"]
  Model["jo-ui-side-panel.model.ts<br/>heading, container, class"] --> ViewModel
  Trap["useFocusTrap"] --> ViewModel
  ViewModel --> View["SidePanel.tsx"]
  View -->|"close and scrim"| ViewModel
  ViewModel -->|"onClose"| Host["Host application"]

| Layer | File | Responsibility | | --- | --- | --- | | Contract | jo-ui-side-panel.types.ts | Props and view-model | | Model | jo-ui-side-panel.model.ts | Heading, kicker, narrow name, close variant, class, and portal container | | View-model | jo-ui-side-panel.view-model.ts | Framework-free side panel observable; close and scrim guard | | View | jo-ui-side-panel.use-view-model.ts | useSidePanelViewModel reads that observable and owns the focus trap | | View | SidePanel.tsx | Render the sheet through a portal |

Models

flowchart TD
  Props["SidePanelProps"] --> Heading["heading and kicker"]
  Props --> Container["portal container"]
  Heading --> ViewModel["SidePanelViewModel"]
  Container --> ViewModel
  Trap["useFocusTrap"] --> ViewModel
  • open controls visibility. A closed panel renders nothing.
  • container={null} renders nothing. Omit it to portal to document.body.
  • heading and kicker fall back to title. The accessible name is the heading. name, when it differs from the heading, replaces that name below 600px.
  • closeVariant is text by default. icon shows the close mark alone. icon-text shows the mark and the label. The accessible name stays closeLabel.
  • panelRef points at the dialog element. Omit it and the sheet keeps its own ref.
  • active={false} leaves the sheet open and inert. Otherwise the sheet joins the shared overlay stack.
  • The scrim calls onClose only when the pointer starts on the scrim itself.
  • Escape calls onClose only while this sheet is the topmost overlay. A ConfirmDialog opened over it takes Escape and focus, and the sheet does not close. Tab stays inside the topmost overlay. The trap is useFocusTrap from @net-advantage/jo-ui-dialog.
  • The scrim uses --jo-color-scrim. The sheet uses --jo-color-surface and --jo-radius-card.

Publish footprint

This package publishes dist and README.md.