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

@mantis-core/ui

v0.2.0

Published

Reusable React UI components for Mantis Core.

Readme

@mantis-core/ui

Reusable React component library for Mantis Core applications.

Purpose

@mantis-core/ui centralizes reusable UI building blocks for forms, tables, admin page layout, generic state handling, and maps. The package is intended to be domain-agnostic and portable across multiple apps.

Scope

  • Reusable React components and helper types.
  • Wrappers around PrimeReact, react-select, CKEditor, and Leaflet where Mantis needs a stable contract.
  • Components that optionally consume the visual contracts defined in @mantis-core/styles.

Out of Scope

  • Business rules and domain-specific workflows.
  • App-level providers and framework bootstrapping.
  • Client branding logic outside shared tokens and styles.

Installation

pnpm add @mantis-core/ui @mantis-core/styles

Required peers:

  • react
  • react-dom
  • next
  • primereact
  • primeicons
  • react-hook-form

Some exports also require optional peers already pulled by this package surface, such as CKEditor, react-select, react-datepicker, leaflet, and react-leaflet.

Import Strategy

Preferred:

import { PaginatedTable, TableToolbar, TextInput } from "@mantis-core/ui";

Supported subpaths:

  • @mantis-core/ui/components/*
  • @mantis-core/ui/table-toolbar
  • @mantis-core/ui/table-filter-field

Use subpaths only when you need a narrow import boundary.

Styling Model

This package does not inject CSS automatically.

  • PrimeReact wrappers inherit your PrimeReact theme plus any Mantis SCSS overrides you import.
  • Components with mantis-core-* classes require the matching partial from @mantis-core/styles.
  • Some components use utility classes or inline styles and do not depend on a Mantis SCSS partial.

Example:

@use "@mantis-core/styles/scss/buttons.scss";
@use "@mantis-core/styles/scss/inputs.scss";
@use "@mantis-core/styles/scss/select.scss";
@use "@mantis-core/styles/scss/table.scss";
@use "@mantis-core/styles/scss/confirm-dialog.scss";

Documentation Index

Public API Summary

Main export groups:

  • Buttons: Button
  • Loaders: Loading
  • Forms: TextInput, TextArea, NumberInput, DropDown, DateInput, Select, AsyncSelect, Switch, Toggle, ToggleInlineButton, CKEditorInput, FileDropzone, UploadFilesPreview
  • Form helpers: RenderField, FormFieldRender, FormActionsBar, DirtyFormGuard, useDirtyFormGuard, ErrorMessage, HiddenField
  • Tables: PaginatedTable, TableToolbar, TableFilterField, ActionColumn, MenuButton, IndexColumn, FilterPannel, MultiSelectFilter
  • Page layout: AdminPageConfigurator, AdminPageLayoutProvider, useAdminPageLayout, AdminPageLayoutShell, AdminPageHeader, FormSection, PageTitle
  • Generic UI: Pagination, PaginationInfo, PageSizeSelector, RichTextPreview, StatusBadge, DataState, ConfirmDialog
  • Maps: MapPicker, MapPickerClient, MapPickerOSM

Contributor Rules

  1. Keep new exports domain-agnostic.
  2. Keep the public API anchored in src/index.ts.
  3. Document new exports in COMPONENTS.md.
  4. Update PRIMEREACT_MAPPING.md when the underlying implementation library changes.
  5. Preserve the mantis-core-* style contract where shared styles are intended.

Local Validation

pnpm --filter @mantis-core/ui build
pnpm --filter @mantis-core/ui typecheck