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

@cristianmpx/react-import-sheet-ui-raw

v1.0.1

Published

UI components for sheet import — built on @cristianmpx/react-import-sheet-headless

Readme

@cristianmpx/react-import-sheet-ui-raw

UI components for sheet import — built on @cristianmpx/react-import-sheet-headless. Hooks-first, headless: no styles; you apply your own CSS and markup.

Features

  • Hooks (useRawFilePicker, useRawCell, useRawTableBody, etc.) with prop-getters and DOM contract (data-*, aria-*).
  • RawImporterWorkflow — optional orchestrator for idle → mapping → process → result/error.
  • Validation errors: cells expose data-has-error and an error message slot (getErrorProps, data-ris-ui="raw-cell-error-message"). The workflow supports cellErrorPlacement (inline | below | none) to show the message inline, on a second line in the cell, or not in the cell (e.g. tooltip elsewhere).

Usage reference: run npm run storybook for live examples and demos.

Install

npm install @cristianmpx/react-import-sheet-ui-raw @cristianmpx/react-import-sheet-headless react react-dom

Usage

Configure the headless engine with ImporterProvider, then use the raw UI components (e.g. RawProgressMonitor, RawAbortController) inside that tree. See the headless package for layout and pipeline setup.

import { ImporterProvider } from '@cristianmpx/react-import-sheet-headless';
import { RawProgressMonitor, RawAbortController } from '@cristianmpx/react-import-sheet-ui-raw';

<ImporterProvider layout={myLayout} engine="auto">
  <RawProgressMonitor>
    {({ phase, progressRef, aborted }) => (
      <div>
        {phase} {aborted && 'Aborted'}
      </div>
    )}
  </RawProgressMonitor>
  <RawAbortController>Cancel</RawAbortController>
</ImporterProvider>;

Scripts

| Script | Description | | ------------------------- | ---------------------------------- | | npm run build | Build ESM + CJS + types to dist/ | | npm run lint | Run ESLint | | npm run lint:fix | ESLint with auto-fix | | npm run format | Prettier write | | npm run format:check | Prettier check | | npm run test | Vitest watch | | npm run test:run | Vitest run once | | npm run test:coverage | Vitest with coverage (≥90%) | | npm run storybook | Storybook dev server | | npm run build-storybook | Build static Storybook | | npm run commit | Commitizen (conventional commits) |

Storybook

Storybook includes:

  • Test widget (addon-vitest): run component tests on stories from the sidebar; optional Accessibility and Coverage.
  • Accessibility (addon-a11y): run a11y checks alongside tests and inspect violations in the Accessibility panel.
  • Docs (addon-docs): auto-generated docs and MDX (e.g. Get started in the sidebar).

Restart Storybook after installing or updating addons.

License

ISC