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

@ajaysoni7832/lean-ids-components

v1.7.8

Published

React components for Lean IDS design system

Readme

Lean IDS Components

A comprehensive React component library for building consistent, accessible user interfaces. Part of the Lean Internal Design System (IDS).

npm version License: MIT

🎉 What's New in v1.7.8

Current Version: 1.7.8

✨ Component Enhancements

  • Checkbox - indeterminate prop with minus icon and aria-checked="mixed" (WCAG 2.1 AA)
  • Select - onSearchInput, searchDebounceDelay, virtual scrolling support for large datasets
  • Accordion - headingVariant, headingWeight, expandIconPosition props
  • Drawer - Polymorphic as prop and extended content/layout API
  • Table - New TableGroupHeader component and types module
  • BarChart / DonutChart - Props and styles enhancements
  • AlertBanner, SideNavigation, Toast - Story and accessibility improvements

� Installation

npm install @ajaysoni7832/[email protected] @ajaysoni7832/[email protected]

📖 Read Full Release Notes | Migration Guide


🤖 AI Assistant Setup (CRITICAL - READ FIRST!)

⚠️ If you're using AI coding assistants (Cursor, Windsurf, GitHub Copilot, etc.), you MUST set up AI guidelines first!

Why This Matters:

Without proper setup, AI assistants will suggest external UI libraries (Material-UI, Ant Design, etc.) instead of Lean IDS components, breaking design system consistency.

Quick Setup (Choose One):

Option 1: Automatic Setup (Recommended)

After installing the package, copy the AI guidelines to your project root:

# Copy AI guidelines from node_modules
cp node_modules/@ajaysoni7832/lean-ids-components/.cursorrules .
cp node_modules/@ajaysoni7832/lean-ids-components/.windsurfrules .
cp node_modules/@ajaysoni7832/lean-ids-components/AI_GUIDELINES.md .
cp node_modules/@ajaysoni7832/lean-ids-components/AI_READING_FLOW.md .

Option 2: Manual Download

Download these files from the repository and place them in your project root:

Option 3: Quick Prompt

If you can't set up files, tell your AI assistant:

"Use ONLY components from @ajaysoni7832/lean-ids-components. Do NOT use Material-UI, Ant Design, Chakra UI, or any other external UI library. Import all components from @ajaysoni7832/lean-ids-components and use theme tokens from @ajaysoni7832/lean-ids-tokens. Never create custom modal or drawer components - always use Modal and Drawer from Lean IDS."

Verification:

After setup, test by asking your AI:

"Create a button component"

Expected Response:

import { Button } from '@ajaysoni7832/lean-ids-components';

Wrong Response (means setup failed):

import { Button } from '@mui/material'; // ❌ This means AI didn't read guidelines

📦 Installation

npm install @ajaysoni7832/lean-ids-components @ajaysoni7832/lean-ids-tokens styled-components

Note: styled-components is a peer dependency. You must install it separately.

Framework-Specific Setup

Lean IDS works with all modern React frameworks:

  • Next.js (App Router & Pages Router)
  • Vite
  • Create React App
  • Remix

📖 See FRAMEWORK_SUPPORT.md for detailed setup guides.

🚀 Quick Start

1. Wrap your app with ThemeProvider

Lean IDS provides two brand themes: carelonTheme (default) and elevanceTheme.

import React from 'react';
import { ThemeProvider } from 'styled-components';
import { carelonTheme, elevanceTheme } from '@ajaysoni7832/lean-ids-tokens';
import { GlobalStyles } from '@ajaysoni7832/lean-ids-components';

function App() {
  return (
    <ThemeProvider theme={carelonTheme}> {/* or elevanceTheme */}
      <GlobalStyles />
      {/* Your app content */}
    </ThemeProvider>
  );
}

2. Import and use components

import { Button, Avatar, Badge, InputField } from '@ajaysoni7832/lean-ids-components';

function MyComponent() {
  return (
    <div>
      <Avatar size="large" initials="JD" color="purple" />
      <InputField label="Email" placeholder="Enter your email" />
      <Badge label="Active" type="success" />
      <Button label="Submit" variant="primary" />
    </div>
  );
}

📚 Available Components

Form Components

  • Button - Primary, secondary, tertiary, ghost variants
  • InputField - Text inputs with labels, errors, helper text
  • Checkbox - Single or grouped checkboxes
  • RadioButton - Radio button groups
  • Toggle - On/off switch

Display Components

  • Avatar - User profile pictures or initials (3 sizes, 7 colors)
  • Badge - Status indicators
  • Chip - Removable tags
  • Toast - Temporary notifications
  • AlertBanner - Persistent alerts
  • InlineMessage - Contextual messages

Navigation Components

  • Breadcrumb - Individual breadcrumb item
  • BreadcrumbSeparator - Separator
  • Breadcrumbs - Complete navigation

Data Display Components

  • Table - Full-featured data table with:
    • Row selection (single/multiple)
    • Sortable columns with visual indicators
    • Pagination
    • Column visibility controls
    • Column reordering
    • Locked columns (left/right)
    • Global search
    • Row actions
    • Settings panel
    • Toolbar with title and description
    • Responsive design
  • EnhancedTableTemplate - Advanced table template with sorting, filtering, pagination, and side panel integration
  • TableHeader - Sortable column headers
  • TableCell - Flexible cells
  • TableSidePanel - Collapsible/expandable side panel for table detail views
  • TableSubHeader - Enhanced table header component
  • TableSettings - Column visibility controls
  • Accordion - Expand/collapse component for organizing content
  • DateTimePickers - Date and time selection components:
    • DateTimePicker - Combined date and time picker
    • TimePicker - Time selection only
    • DateTimeRangePicker - Date and time range selection

⚠️ Important: Do's and Don'ts

✅ Do's

  • Always wrap your app with ThemeProvider
  • Include GlobalStyles component
  • Use theme tokens for custom styling
  • Follow TypeScript types

❌ Don'ts

  • Don't override styles with !important
  • Don't mix with other UI libraries
  • Don't hardcode colors/spacing
  • Don't forget to install @ajaysoni7832/lean-ids-tokens

📖 Documentation

  • GitHub: https://github.com/ajaysonicarelon/Lean-IDS
  • Figma: https://www.figma.com/design/krtBe5bwqddbHpFjYC5S13/Lean---IDS

📄 License

MIT © Ajay Soni