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

@pavanhiro/common-ui

v1.0.10

Published

PM Common UI Component Library - Shared React components with design system

Readme

PM Common UI

Shared React component library for PM projects.

Components

Navigation & Menu Components

  • DropdownMenu - Production-ready dropdown with keyboard navigation
    • Smart positioning (auto-flip, auto-shift)
    • Multiple triggers (click, hover, right-click)
    • Nested submenus
    • Icons, descriptions, shortcuts, badges
    • WCAG 2.1 AA+ accessible
  • DropdownButton - Button with dropdown menu
  • ActionsMenu - Three-dot actions menu
  • ContextMenu - Right-click context menu

Scheduler Components

  • AppointmentScheduler - Professional salon/spa booking system
    • DayView - Time-based grid with staff columns
    • WeekView - 7-day staff scheduling grid
    • MonthView - Calendar month view
    • SharedSchedulerHeader - Common navigation header
    • DetailedStatsModal - Analytics dashboard

Core UI Components

  • Button, Input, Select, Textarea
  • Popup, Toast, Snackbar
  • Calendar, DatePicker, TimePicker
  • Form, FormField
  • Card, List, Page
  • Tab, Segmented, Stepper
  • and many more...

Installation

Local Development (Link Method)

\\ash

In pm-common-ui directory

npm install npm link

In your app directory (salon-scheduler-app or flowycart)

npm link @pm/common-ui \\

Direct Path Import

Update your app's package.json: \\json { "dependencies": { "@pm/common-ui": "file:../pm-common-ui" } } \\

Usage

1. Import Design System (Required)

// In your main entry file (main.tsx or App.tsx)
import '@pm/common-ui/index.css';  // Includes all design tokens

2. Use Components

// Import components
import { Button, DropdownMenu, DropdownButton } from '@pm/common-ui';
import { AppointmentScheduler } from '@pm/common-ui/components/scheduler/AppointmentScheduler';
import { Card } from '@pm/common-ui';

// Use in your app
function MyApp() {
  const menuItems = [
    { id: '1', label: 'Profile', icon: <Icon name="AccountCircle" /> },
    { id: '2', label: 'Settings', icon: <Icon name="Settings" /> },
    { id: '3', label: 'Logout', icon: <Icon name="Logout" />, danger: true },
  ];
  
  return (
    <div>
      <Button>Click Me</Button>
      <DropdownButton buttonLabel="Menu" items={menuItems} />
      <Card title="Hello" content="Using design tokens!" />
      <AppointmentScheduler />
    </div>
  );
}

3. Design Tokens Only (Optional)

// If you only need design tokens without components
import '@pm/common-ui/styles/design-tokens.css';

See DESIGN_SYSTEM.md for complete design token documentation.


## Development

\\\ash
npm install
npm run dev       # Start development server
npm run build     # Build library
npm run type-check # Type checking
\\\

## Structure

\\\
pm-common-ui/
 src/
    components/     # All UI components
       button/
       input/
       scheduler/
       ...
    shared/         # Shared types and utilities
    util/          # Utility functions
 package.json
 README.md
\\\

## Projects Using This Library

1. **salon-scheduler-app** - Dedicated salon appointment scheduler
2. **flowycart-ecommerce-react-redux-master** - Main e-commerce platform with scheduler

## 📄 License

MIT License - Copyright (c) 2025 PM Team

See [LICENSE](./LICENSE) file for details.

### Third-Party Licenses

This project uses several open-source packages. See [NOTICE](./NOTICE) file for complete attribution and license information for all dependencies.

All dependencies are MIT-licensed and compatible with commercial use