JSPM

@enterprise-ui-react/react

1.0.13
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 41
  • Score
    100M100P100Q45929F
  • License MIT

Production-ready, enterprise-grade UI library for React 18+ and Next.js 15+

Package Exports

  • @enterprise-ui-react/react
  • @enterprise-ui-react/react/styles
  • @enterprise-ui-react/react/tokens

Readme

🚀 Enterprise UI React

Production-ready, enterprise-grade UI library for React 18+ and Next.js 15+

A complete, accessible, and professional component library following battle-tested design patterns from Microsoft, Atlassian, and IBM.

TypeScript WCAG 2.2 AA License: MIT


✨ Features

  • 🎨 Neutral-First Design - UI fades into background; data takes center stage
  • 🎯 Battle-Tested Colors - Industry-standard palettes (Microsoft, Atlassian, IBM)
  • Fully Accessible - WCAG 2.2 AA compliant with keyboard navigation
  • 🔧 TypeScript-First - 100% typed with excellent DX
  • Performance Optimized - Tree-shakable, minimal bundle
  • 🌙 Dark Mode Built-in - Seamless theme switching
  • 🎬 Animation Ready - Smooth micro-interactions with Framer Motion
  • 📱 Responsive - Mobile-first design
  • 🧩 40+ Components - Complete UI toolkit
  • 📚 Comprehensive Docs - 10 documentation files

📦 Installation

npm install @enterprise-ui/react
# or
yarn add @enterprise-ui/react
# or
pnpm add @enterprise-ui/react

🚀 Quick Start

1. Basic Setup

import { ThemeProvider, Button, Card } from '@enterprise-ui/react';
import '@enterprise-ui/react/styles';

function App() {
  return (
    <ThemeProvider defaultTheme="light">
      <Card>
        <Button variant="primary">Get Started</Button>
      </Card>
    </ThemeProvider>
  );
}

2. Complete Form Example

import { Input, Button, VStack, useToast, Toaster } from '@enterprise-ui/react';

function ContactForm() {
  const { toast } = useToast();

  return (
    <>
      <VStack gap={4}>
        <Input label="Email" type="email" required />
        <Input label="Message" required />
        <Button 
          variant="primary" 
          onClick={() => toast({ title: 'Sent!', variant: 'success' })}
        >
          Submit
        </Button>
      </VStack>
      <Toaster />
    </>
  );
}

3. Dashboard Layout

import { PageShell, Sidebar, SidebarNav, SidebarNavItem } from '@enterprise-ui/react';
import { Home, Users } from 'lucide-react';

function Dashboard() {
  return (
    <PageShell
      sidebar={
        <Sidebar>
          <SidebarNav>
            <SidebarNavItem href="/" icon={<Home />} active>
              Dashboard
            </SidebarNavItem>
            <SidebarNavItem href="/users" icon={<Users />}>
              Users
            </SidebarNavItem>
          </SidebarNav>
        </Sidebar>
      }
    >
      {/* Your content */}
    </PageShell>
  );
}

🎨 Design Philosophy

Core Principles

  1. Neutral-First Design - UI doesn't compete with content
  2. Single Primary Color - Only blue (#2563EB) for actions
  3. Low Saturation - Professional, not flashy
  4. Contrast Over Aesthetics - Accessibility first
  5. Color Supports Hierarchy - Structure over branding

Color Palette

Light Theme (Default)

Background:      #F8FAFC  (neutral gray-50)
Surface:         #FFFFFF  (pure white)
Border:          #E2E8F0  (gray-200)
Text Primary:    #0F172A  (gray-900)
Text Secondary:  #475569  (gray-600)
Primary:         #2563EB  (blue-600)

Dark Theme

Background:      #0B1220  (very dark blue)
Surface:         #111827  (gray-900)
Border:          #374151  (gray-700)
Text Primary:    #E5E7EB  (gray-200)
Text Secondary:  #9CA3AF  (gray-400)
Primary:         #3B82F6  (blue-500)

🧩 Components (40+)

Foundation

  • Typography - H1-H6, Text, Label, Caption, Code
  • Icons - 800+ Lucide icons
  • Motion - FadeIn, SlideIn, ScaleIn, Stagger

Layout

  • Container - Responsive max-width
  • Grid - CSS Grid with responsive columns
  • Stack - VStack, HStack for flexbox
  • Sidebar - Collapsible navigation
  • PageShell - Complete page layout

Forms

  • Input - Text input with icons & validation
  • Textarea - Multi-line input
  • Checkbox - Custom styled checkbox
  • Radio - Radio group & items
  • Switch - Toggle switch
  • Select - Dropdown select

Feedback

  • Button - 7 variants, 5 sizes, loading states
  • Toast - Notification system
  • Alert - Inline alerts (5 variants)
  • Modal - Dialog modals

Data Display

  • Card - Content container
  • Badge - Status indicators (7 variants)
  • Avatar - User profiles (6 sizes)
  • Table - Data tables
  • Tooltip - Context tooltips
  • Progress - Progress bars
  • Skeleton - Loading placeholders

📖 Documentation

Document Description
GETTING_STARTED.md 📘 Step-by-step setup guide
USAGE_GUIDE.md 📗 Comprehensive usage examples
COMPONENT_API.md 📕 Complete API reference
ARCHITECTURE.md 📙 Design decisions & patterns
INDEX.md 📑 File index & navigation
PROJECT_SUMMARY.md 📊 Project overview
DELIVERABLES.md ✅ Complete inventory

🎯 Examples

Complete Dashboard

See examples/dashboard/page.tsx for a full enterprise dashboard with:

  • ✅ KPI cards with statistics
  • ✅ Collapsible sidebar navigation
  • ✅ Data tables with badges
  • ✅ Toast notifications
  • ✅ Responsive design
  • ✅ Dark mode support

Component Showcase

See examples/components-showcase/page.tsx for:

  • ✅ All 40+ components demonstrated
  • ✅ Interactive examples
  • ✅ Copy-paste ready code

🔧 Tech Stack

  • React 18+ - Latest React features
  • TypeScript - Type safety
  • Tailwind CSS - Utility-first styling
  • Radix UI - Accessible primitives
  • Framer Motion - Animations
  • Lucide React - Icons

✅ Quality Standards

  • TypeScript: Strict mode, 100% type coverage
  • Accessibility: WCAG 2.2 AA compliant
  • Performance: Tree-shakable, minimal bundle
  • Documentation: 10 comprehensive docs
  • Examples: 2 complete applications
  • Testing: ESLint + Prettier configured

🎓 Learning Path

  1. README.md ← You are here
  2. GETTING_STARTED.md - Setup guide
  3. examples/dashboard/ - Real-world example
  4. USAGE_GUIDE.md - Patterns & best practices
  5. COMPONENT_API.md - API reference

🏆 Perfect For

  • ✅ Admin Dashboards
  • ✅ SaaS Applications
  • ✅ Internal Enterprise Tools
  • ✅ B2B Products
  • ✅ Data Platforms
  • ✅ CRM Systems
  • ✅ Analytics Platforms

📊 Project Stats

  • 91 Files created
  • 224 KB total size
  • 40+ Components built
  • 8 Token Categories defined
  • 30+ Utilities included
  • 10 Documentation Files written
  • 2 Example Apps completed

🤝 Contributing

See CONTRIBUTING.md for guidelines.


📝 License

MIT License - See LICENSE file for details.


🎉 Get Started Now!

# Install
npm install @enterprise-ui/react

# Start building
# Check GETTING_STARTED.md for detailed setup

Built with ❤️ for enterprise applications