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

@rxbenefits/ui

v1.0.0

Published

Comprehensive UI component library for RxBenefits applications built on Ant Design v4

Readme

@rxbenefits/ui

Comprehensive UI component library for RxBenefits applications built on Ant Design v4

npm version License: MIT

Overview

@rxbenefits/ui is a comprehensive React component library that provides a consistent design system for RxBenefits healthcare benefits management applications. Built on top of Ant Design v4, it includes 47+ customized and specialized components, design tokens, and interactive Storybook documentation.

Features

  • 47+ React Components - Complete UI component library
  • 🎨 Design System - Consistent theme tokens and styling
  • 📚 Storybook Documentation - Interactive component playground
  • Accessible - WCAG 2.1 compliant components
  • 🔧 TypeScript - Full type safety with strict mode
  • 🧪 Well Tested - Comprehensive test coverage
  • 📦 Tree-shakeable - Optimized bundle sizes
  • 🎯 Healthcare Focused - Specialized components for pharmacy benefits

Installation

npm install @rxbenefits/ui

Peer Dependencies

This library requires the following peer dependencies:

npm install react@^18.0.0 react-dom@^18.0.0 antd@^4.18.0 @rxbenefits/types@^1.0.0 @rxbenefits/constants@^1.0.0 @rxbenefits/icons@^1.0.0 @rxbenefits/styles@^1.0.0

Quick Start

import { Button, Input, Form, Table } from '@rxbenefits/ui';
import '@rxbenefits/styles'; // Import global styles

function App() {
  return (
    <div>
      <Button type="primary">Click Me</Button>
      <Input placeholder="Enter text" />
    </div>
  );
}

Components

Form Components

  • Button - Primary, secondary, danger, and split buttons
  • Input - Text input with various styles
  • InputNumber - Numeric input with formatting
  • InputPhone - Phone number input with masking
  • InputSSN - SSN input with security
  • InputZip - ZIP code input with validation
  • Select - Dropdown selection with options
  • Checkbox - Single and grouped checkboxes
  • Radio - Radio button groups
  • Switch - Toggle switches
  • DatePicker - Date and date range pickers
  • Form - Form wrapper with validation
  • FormField - Individual form fields
  • FormFieldGroup - Grouped form fields

Data Display

  • Table - Advanced data tables with sorting, filtering, search
  • List - Simple, infinite scroll, and paginated lists
  • Card - Content cards
  • Collapse - Collapsible sections
  • Tabs - Tabbed interfaces
  • Tag - Labels and tags
  • Avatar - User avatars
  • Empty - Empty state display
  • Skeleton - Loading placeholders

Feedback

  • Alert - Alert messages
  • Modal - Dialog boxes
  • Drawer - Side panels
  • Notification - Toast notifications
  • Loading - Loading indicators
  • Result - Result pages

Navigation

  • Menu - Navigation menus
  • Navigation - App navigation
  • PageHeader - Page headers
  • Steps - Step-by-step navigation
  • Affix - Fixed positioning

Layout

  • Grid - Row and column layout
  • Space - Spacing utilities
  • Divider - Content dividers
  • Layout - App and content layouts

Specialized Components

  • LoginForm - Authentication forms
  • Transfer - Transfer lists
  • Upload - File upload components

Note: The DataMapper component has been removed from this library due to circular dependencies with @optimize/api. It will be available in a separate @rxbenefits/data-management package.

Typography

import { Typography } from '@rxbenefits/ui';

const { Title, Text } = Typography;

<Title level={1}>Heading</Title>
<Text>Body text</Text>

Theme

Access design tokens:

import { theme } from '@rxbenefits/ui';

const primaryColor = theme.tokens.colors.primary;

Storybook

View interactive component documentation:

npm run storybook

Visit https://rxbenefits.github.io/rxbenefits-ui for online docs.

Development

# Install dependencies
npm install

# Run tests
npm test

# Run tests in watch mode
npm run test:watch

# Run tests with coverage
npm run test:coverage

# Lint code
npm run lint

# Format code
npm run format

# Type check
npm run typecheck

# Build library
npm run build

# Run Storybook
npm run storybook

# Build Storybook
npm run build-storybook

Browser Support

  • Chrome (latest 2 versions)
  • Firefox (latest 2 versions)
  • Safari (latest 2 versions)
  • Edge (latest 2 versions)
  • IE 11 (with polyfills)

Migration from Monorepo

If migrating from the RxBenefits Optimize.UI monorepo:

Before (Monorepo)

import { Button } from '@rxbenefits/ui'; // Local package

After (npm Package)

import { Button } from '@rxbenefits/ui'; // npm package

The import path remains the same! Simply install the package and update your package.json.

What's Not Included

Data Mapper Component: The data-mapper component has been excluded from this package due to circular dependencies with @optimize/api. If you need data mapping functionality, it remains available in the monorepo or will be published as a separate package.

Breaking Changes in v1.0.0

  • Removed: data-mapper component (circular dependency with @optimize/api)
  • Removed: form-wrapper component (had @optimize dependencies)
  • Updated: All components now use strict TypeScript mode
  • Updated: React 18.3+ required (was React 17)
  • Updated: Storybook 7.6+ for component documentation

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

License

MIT © RxBenefits

Support

Related Packages