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

@cra-risk-management/ui

v1.0.2

Published

Standardized UI Component Library for CRA Risk Management Monorepo applications (`critical-points` and `geovisor-ambiental`).

Readme

@cra-risk-management/ui

Standardized UI Component Library for CRA Risk Management Monorepo applications (critical-points and geovisor-ambiental).


Installation

Install the library via npm (or your preferred package manager):

npm install @cra-risk-management/ui

Peer Dependencies

The library requires Mantine v9 (@mantine/core and @mantine/hooks >= ^9.0.0) and React v19. Make sure you have the required peer dependencies installed in your project:

npm install @mantine/core @mantine/hooks @emotion/react @emotion/styled @mui/icons-material react-geolocated leaflet react-leaflet zustand

Styling Setup

Import the global styles in your application entry file (e.g., App.tsx or main.tsx):

import "@mantine/core/styles.css";
import "@cra-risk-management/ui/dist/ui.css"; // Optional custom library styles

Wrap your root application with CraThemeProvider:

import { CraThemeProvider } from "@cra-risk-management/ui";

function App() {
  return (
    <CraThemeProvider>
      <YourAppContent />
    </CraThemeProvider>
  );
}

Components Summary

1. Structure & Layout

  • CraThemeProvider: Sets up custom Mantine theme configurations (colors, fonts).
  • NavBar: Navigation header bar with branding slots.
  • ColorSchemeToggler: Light/Dark theme switch button.
  • PanelButtons & PanelButton & InfoButton: Floating control actions stacked at the bottom of the map.

2. Standardized Cards (CraCard)

Standardized responsive container blocks.

  • CraCard: Parent card wrapper.
  • CraCardHeader: Title/Subtitle block.
  • CraCardImage: Rounded top cover image.
  • CraCardBody: Main paragraph/content block with line clamping support.
  • CraCardChip: Category pills.
  • CraCardFooter: Footer actions container.
  • CraCardInfoRow: Grid-aligned key-value display rows.

3. Responsive Overlays (CraPanel)

Harmonized panel overlays with responsive widths/heights (desktop/mobile defaults).

  • CraPanel: Backdrop dialog. Takes size ("sm", "md", "xl").
  • CraPanelHeader: Title block with built-in close action.
  • CraPanelBody: Scrollable body content.
  • CraPanelFooter: Footer button layout.

4. Interactive Maps

Leaflet containers synced to store state.

  • CraMap: Standard Leaflet map pane.
  • MapControls: Float-overlay control buttons (Zoom, Home, Geolocation, Basemap).
  • CraLocationInputMap: Controlled point and polygon coordinate capture map.

5. Lists & Feeds (CraDataCardList)

Generic scrolled list containers for feeds.

  • CraDataCardList: Handles scroll boxes and empty states.
  • CraDataCardEntry: Feeds list cards with a square 1:1 cover image.

6. Layer Selectors (CraLayerSelector)

Option selection panel lists styled as interactive cards.

  • CraLayerSelector: Wrapper box.
  • CraLayerSelectorOption: Option cards with radio selects, colored initials avatars, and labels.