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-color-picker

v2.1.0

Published

Compact labeled color selection control with helper text, a saturation and brightness surface, hue slider, and hex field.

Readme

@net-advantage/jo-ui-color-picker

Compact labeled color selection control with helper text, a saturation and brightness surface, hue slider, and hex field.

The picker follows a strict MVVM split. The model owns color math. The view-model owns the current color, hex draft, and pointer sampling. The view renders the view-model.

MVVM

flowchart LR
  Props["ColorPickerProps"] --> ViewModel["useColorPickerViewModel"]
  Model["color-picker.model.ts<br/>hex and HSV"] --> ViewModel
  ViewModel --> View["ColorPicker.tsx"]
  Metadata["jo-ui-field-metadata"] --> View
  View -->|"surface, hue, hex"| ViewModel
  ViewModel -->|"onValueChange"| Host["Host application"]

| Layer | File | Responsibility | | --- | --- | --- | | Contract | color-picker.types.ts | Props and view-model | | Model | color-picker.model.ts | Convert hex and HSV and map pointer positions | | View-model | color-picker.view-model.ts | Framework-free color picker observable; own value, draft, sampling, and eyedropper | | View | color-picker.use-view-model.ts | useColorPickerViewModel reads that observable and syncs the hex draft | | View | ColorPicker.tsx | Render the stage from the view-model | | Shared metadata | @net-advantage/jo-ui-field-metadata | Render the label, helper text, spacing, and association IDs |

Models

flowchart TD
  Hex["hex string"] --> Hsv["HsvColor"]
  Hsv --> Hex
  Props["ColorPickerProps"] --> ViewModel["ColorPickerViewModel"]
  Hsv --> ViewModel
  • HsvColor is hue, saturation, and value. Hue is 0 to 360. Saturation and value are 0 to 1.
  • label or ariaLabel is required. A visible label is preferred and names the group. ariaLabel is the group's aria-label when the picker should not show a label. Passing neither is a compile error. A caller that bypasses the type and passes neither still sees the visible label COLOR. helperText still defaults to the gradient and hue guidance.
  • Composite label and helper rendering comes from FieldMetadata; the color picker does not own duplicate metadata selectors.
  • labelPlacement accepts top or left; descriptionPlacement accepts below-label or below-control.
  • A valid hex is committed in uppercase. An invalid hex stays in the draft until blur, then the draft resets to the current color.
  • The eyedropper is disabled unless EyeDropper is a function.

Structure

  • src: runtime component, model, view-model, and types.

Features

  • Saturation and brightness gradient
  • Hue slider
  • JO UI hex input for direct value entry
  • Controlled and uncontrolled value support

Publish footprint

  • dist
  • README.md