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

@pos-360/horizon

v0.6.1

Published

POS-360 unified component library - the horizon all apps look toward

Readme

@pos-360/horizon

Unified UI component library for the POS-360 software ecosystem. Built with React, TypeScript, and Tailwind CSS.

Installation

npm install @pos-360/horizon
# or
pnpm add @pos-360/horizon
# or
yarn add @pos-360/horizon

Peer Dependencies

Ensure you have the following peer dependencies installed:

npm install react react-dom tailwindcss clsx tailwind-merge class-variance-authority
# For enhanced components
npm install framer-motion lucide-react @radix-ui/react-checkbox @radix-ui/react-dialog @radix-ui/react-dropdown-menu @radix-ui/react-popover @radix-ui/react-select @radix-ui/react-tabs

Setup

Tailwind Configuration

Extend your tailwind.config.js with the Horizon preset:

const horizonPreset = require("@pos-360/horizon/tailwind");

module.exports = {
  presets: [horizonPreset],
  content: [
    // ... your content paths
    "./node_modules/@pos-360/horizon/**/*.{js,ts,jsx,tsx}",
  ],
  // ... rest of your config
};

Usage

Importing Components

// Import specific components
import { Button, Card, Badge } from "@pos-360/horizon";

// Or import from specific entry points for better tree-shaking
import { Button, Badge } from "@pos-360/horizon/primitives";
import { Input, Toast } from "@pos-360/horizon/enhanced";
import { useToast } from "@pos-360/horizon/hooks";

Basic Example

import { Button, Card, CardHeader, CardTitle, CardContent } from "@pos-360/horizon";

function MyComponent() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Welcome</CardTitle>
      </CardHeader>
      <CardContent>
        <Button variant="default">Click me</Button>
      </CardContent>
    </Card>
  );
}

Using Toast Notifications

import { Toast, useToast } from "@pos-360/horizon";

function MyComponent() {
  const { toast, showSuccess, showError } = useToast();

  return (
    <div>
      <button onClick={() => showSuccess("Operation completed!")}>
        Show Success
      </button>
      <button onClick={() => showError("Something went wrong")}>
        Show Error
      </button>
      {toast && <Toast {...toast} />}
    </div>
  );
}

Components

Primitives

Core UI building blocks based on shadcn/ui patterns:

| Component | Description | |-----------|-------------| | Button | Versatile button with variants (default, destructive, outline, secondary, ghost, link) | | Badge | Status indicators with variants (default, secondary, destructive, outline, success, warning, info) | | Card | Container with header, title, description, content, and footer subcomponents | | Checkbox | Accessible checkbox built on Radix UI | | Dialog | Modal dialog with overlay, header, footer, title, and description | | DropdownMenu | Full-featured dropdown menu system | | Popover | Floating content container | | Select | Accessible select/dropdown built on Radix UI | | Skeleton | Loading state placeholders (text, title, avatar, card, table rows) | | Table | Full table system with header, body, row, cell components | | Tabs | Tab navigation built on Radix UI | | Textarea | Multi-line text input |

Enhanced

Feature-rich components with advanced behaviors:

| Component | Description | |-----------|-------------| | AnimatedButton | Framer Motion powered button with hover/tap animations | | Input | Full-featured input with icons, decorators, number controls, select mode, and mobile formatting | | TextButton | Text-style button with leading/trailing decorators | | Toast | Animated toast notifications with progress bar |

Hooks

| Hook | Description | |------|-------------| | useToast | Toast notification state management |

Utilities

| Utility | Description | |---------|-------------| | cn | Class name merger (clsx + tailwind-merge) |

Design Tokens

The Horizon Tailwind preset includes POS-360 design tokens:

Colors

  • Primary: primary-50 through primary-950
  • Semantic: background, foreground, card, popover, muted, accent, destructive
  • Border and input colors with dark mode support

Animations

  • accordion-down / accordion-up
  • pulse-slow (slower pulse for skeletons)

Development

# Install dependencies
pnpm install

# Build the package
pnpm build

# Watch mode
pnpm dev

Package Exports

{
  ".": "./dist/index.js",
  "./primitives": "./dist/primitives.js",
  "./enhanced": "./dist/enhanced.js",
  "./hooks": "./dist/hooks.js",
  "./tailwind": "./dist/tailwind.js"
}

License

MIT - POS-360