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

@customafk/lunas-ui

v0.2.36

Published

UI library for Lunas Enterprise

Readme

Lunas UI - React Component Library

npm version License: ISC Node Version

A modern, accessible, and customizable React UI component library built for Lunas Enterprise applications.

✨ Features

  • 🎨 Modern Design: Components designed with contemporary UI/UX principles
  • 🔧 Highly Customizable: Supports TailwindCSS with class variance authority
  • 📱 Responsive: All components are responsive and mobile-friendly
  • Accessible: Complies with WCAG 2.1 accessibility standards
  • 📦 Tree-shaking: Import only what you need for optimal bundle size
  • 🔷 TypeScript: Fully typed with comprehensive TypeScript definitions

📦 Installation

# npm
npm install @customafk/lunas-ui

# yarn
yarn add @customafk/lunas-ui

# pnpm
pnpm add @customafk/lunas-ui

Peer Dependencies

Lunas UI requires the following peer dependencies:

npm install react react-dom

Additional peer dependencies for specific components:

npm install @hookform/error-message@^2.0.0 react-hook-form@^7.62.0 lucide-react@^0.541.0

🚀 Quick Start

  1. Import styles in your main application file:
// Import base styles first
import '@customafk/lunas-ui/styles/base'
// Import theme styles (required)
import '@customafk/lunas-ui/styles/theme'
// Optional: Import typography styles if needed
import '@customafk/lunas-ui/styles/typography'
  1. Import and use components:
import React from 'react'
import { Button } from '@customafk/lunas-ui/ui/button'
import { Card } from '@customafk/lunas-ui/ui/card'
import { TextField } from '@customafk/lunas-ui/forms/text-field'
import { FormWrapper } from '@customafk/lunas-ui/forms/form-wrapper'

function App() {
  const onSubmit = (data) => console.log(data)

  return (
    <Card className="mx-auto max-w-md p-6">
      <FormWrapper onSubmit={onSubmit}>
        <TextField name="username" label="Username" placeholder="Enter your username" />
        <Button type="submit">Submit</Button>
      </FormWrapper>
    </Card>
  )
}

export default App

📋 Comprehensive Component Reference

The following table provides a structured reference for all components available in the Lunas UI library:

| Category | Component | Import Path | | ------------ | ----------------- | ----------------------------------------------- | | UI | Alert | @customafk/lunas-ui/ui/alert | | UI | AlertDialog | @customafk/lunas-ui/ui/alert-dialog | | UI | AspectRatio | @customafk/lunas-ui/ui/aspect-ratio | | UI | Avatar | @customafk/lunas-ui/ui/avatar | | UI | Badge | @customafk/lunas-ui/ui/badge | | UI | Breadcrumb | @customafk/lunas-ui/ui/breadcrumb | | UI | Button | @customafk/lunas-ui/ui/button | | UI | Calendar | @customafk/lunas-ui/ui/calendar | | UI | Card | @customafk/lunas-ui/ui/card | | UI | Carousel | @customafk/lunas-ui/ui/carousel | | UI | Collapsible | @customafk/lunas-ui/ui/collapsible | | UI | Command | @customafk/lunas-ui/ui/command | | UI | ContextMenu | @customafk/lunas-ui/ui/context-menu | | UI | Dialog | @customafk/lunas-ui/ui/dialog | | UI | DropdownMenu | @customafk/lunas-ui/ui/dropdown-menu | | UI | FileUploader | @customafk/lunas-ui/ui/file-uploader | | UI | Form | @customafk/lunas-ui/ui/form | | UI | HoverCard | @customafk/lunas-ui/ui/hover-card | | UI | Input | @customafk/lunas-ui/ui/input | | UI | InputOTP | @customafk/lunas-ui/ui/input-otp | | UI | Label | @customafk/lunas-ui/ui/label | | UI | Menubar | @customafk/lunas-ui/ui/menubar | | UI | MultiSelect | @customafk/lunas-ui/ui/multi-select | | UI | NavigationMenu | @customafk/lunas-ui/ui/navigation-menu | | UI | Pagination | @customafk/lunas-ui/ui/pagination | | UI | Popover | @customafk/lunas-ui/ui/popover | | UI | Progress | @customafk/lunas-ui/ui/progress | | UI | RadioGroup | @customafk/lunas-ui/ui/radio-group | | UI | Resizable | @customafk/lunas-ui/ui/resizable | | UI | ScrollArea | @customafk/lunas-ui/ui/scroll-area | | UI | Select | @customafk/lunas-ui/ui/select | | UI | Separator | @customafk/lunas-ui/ui/separator | | UI | Sheet | @customafk/lunas-ui/ui/sheet | | UI | Sidebar | @customafk/lunas-ui/ui/sidebar | | UI | Skeleton | @customafk/lunas-ui/ui/skeleton | | UI | Slider | @customafk/lunas-ui/ui/slider | | UI | Sonner | @customafk/lunas-ui/ui/sonner | | UI | Switch | @customafk/lunas-ui/ui/switch | | UI | Table | @customafk/lunas-ui/ui/table | | UI | Tabs | @customafk/lunas-ui/ui/tabs | | UI | Textarea | @customafk/lunas-ui/ui/textarea | | UI | Toggle | @customafk/lunas-ui/ui/toggle | | UI | ToggleGroup | @customafk/lunas-ui/ui/toggle-group | | UI | Tooltip | @customafk/lunas-ui/ui/tooltip | | UI Buttons | AddNewButton | @customafk/lunas-ui/ui/buttons/add-new | | UI Buttons | EditButton | @customafk/lunas-ui/ui/buttons/edit | | UI Buttons | RefreshButton | @customafk/lunas-ui/ui/buttons/refresh | | UI Buttons | TrashButton | @customafk/lunas-ui/ui/buttons/trash | | UI Buttons | UploadImageButton | @customafk/lunas-ui/ui/buttons/upload-image | | UI Inputs | SearchInput | @customafk/lunas-ui/ui/inputs/search-input | | Forms | FormWrapper | @customafk/lunas-ui/forms/form-wrapper | | Forms | TextField | @customafk/lunas-ui/forms/text-field | | Forms | PasswordField | @customafk/lunas-ui/forms/password-field | | Forms | NumberField | @customafk/lunas-ui/forms/number-field | | Forms | SelectField | @customafk/lunas-ui/forms/select-field | | Forms | DateField | @customafk/lunas-ui/forms/date-field | | Forms | SwitchField | @customafk/lunas-ui/forms/switch-field | | Forms | TextareaField | @customafk/lunas-ui/forms/textarea-field | | Forms | MultiSelectField | @customafk/lunas-ui/forms/multi-select-field | | Layout | Flex | @customafk/lunas-ui/layouts/flex | | Layout | Grid | @customafk/lunas-ui/layouts/grid | | Layout | Main | @customafk/lunas-ui/layouts/main | | Data Display | Country | @customafk/lunas-ui/data-display/country | | Data Display | DataList | @customafk/lunas-ui/data-display/data-list | | Data Display | Date | @customafk/lunas-ui/data-display/date | | Data Display | DateTooltip | @customafk/lunas-ui/data-display/date-tooltip | | Data Display | Empty | @customafk/lunas-ui/data-display/empty | | Data Display | Name | @customafk/lunas-ui/data-display/name | | Data Display | PhoneNumber | @customafk/lunas-ui/data-display/phone-number | | Data Display | RoleBadge | @customafk/lunas-ui/data-display/role-badge | | Data Display | Statistic | @customafk/lunas-ui/data-display/statistic | | Dialogs | ConfirmDialog | @customafk/lunas-ui/dialogs/confirm-dialog | | Dialogs | DetailDialog | @customafk/lunas-ui/dialogs/detail-dialog | | Dialogs | ErrorDialog | @customafk/lunas-ui/dialogs/error-dialog | | Dialogs | FormDialog | @customafk/lunas-ui/dialogs/form-dialog | | Dialogs | LoadingDialog | @customafk/lunas-ui/dialogs/loading-dialog | | Table | DataTable | @customafk/lunas-ui/table | | Typography | Title | @customafk/lunas-ui/typography/title | | Typography | Paragraph | @customafk/lunas-ui/typography/paragraph |

Common Import Requirements

// Required for all form components
import { useForm } from 'react-hook-form'

// Required for icon components
import { LucideIcon } from 'lucide-react'

// Utility for class name merging
import { cn } from '@customafk/lunas-ui/lib/utils'

🎨 Theming

Lunas UI supports customization through CSS variables. To customize the theme:

  1. Import the base theme:
import '@customafk/lunas-ui/styles/theme'
  1. Override CSS variables in your global CSS file:
:root {
  --primary: 222.2 47.4% 55.1%;
  --primary-muted: 222.2 47.4% 95%;
  --primary-weak: 222.2 47.4% 90%;
  --primary-strong: 222.2 47.4% 45%;
  --primary-intense: 222.2 47.4% 35%;

  /* Other variables can be overridden similarly */
}

📖 Component Examples

Form Example

import { FormWrapper } from '@customafk/lunas-ui/forms/form-wrapper'
import { TextField } from '@customafk/lunas-ui/forms/text-field'
import { PasswordField } from '@customafk/lunas-ui/forms/password-field'
import { Button } from '@customafk/lunas-ui/ui/button'

const LoginForm = () => {
  const onSubmit = (data) => {
    console.log('Form submitted:', data)
  }

  return (
    <FormWrapper onSubmit={onSubmit}>
      <TextField name="email" label="Email" placeholder="Enter your email" isShowErrorMsg />
      <PasswordField name="password" label="Password" isShowErrorMsg />
      <Button type="submit">Log In</Button>
    </FormWrapper>
  )
}

Data Table Example

import { DataTable } from '@customafk/lunas-ui/table'

const columns = [
  {
    accessorKey: 'name',
    header: 'Name',
  },
  {
    accessorKey: 'email',
    header: 'Email',
  },
  {
    accessorKey: 'role',
    header: 'Role',
  },
]

const data = [
  { name: 'John Doe', email: '[email protected]', role: 'Admin' },
  { name: 'Jane Smith', email: '[email protected]', role: 'User' },
]

const MyTable = () => {
  return <DataTable columns={columns} data={data} />
}

🛠️ Development

# Clone repository
git clone https://github.com/QuangPhamvt/lunas-enterprise-ui-package.git
cd lunas-enterprise-ui-package

# Install dependencies
npm install

# Start development environment
npm run dev

# Run Storybook
npm run storybook

# Build the library
npm run build

🤝 Contributing

We welcome contributions! Please follow these steps to contribute:

  1. Fork repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Create Pull Request

Coding Standards

  • Follow ESLint config
  • Write tests for new features
  • Update documentation as needed
  • Use conventional commits

📝 Changelog

See CHANGELOG.md for version history and changes.

📄 License

ISC © CustomAFK

🤖 For Claude / AI Coding Assistants

This package ships an ai-docs.md file at the package root, optimized for AI context windows. It covers import rules, the full component catalog with prop types, and copy-ready usage patterns.

Option A — Point Claude's project context at the file

Add this to your project's .claude/CLAUDE.md (or create one):

## UI Library Context

This project uses `@customafk/lunas-ui`. Read the library reference before writing components:

@node_modules/@customafk/lunas-ui/ai-docs.md

Claude Code will attach the file automatically to every conversation in the project.

Option B — Add to your AI tooling's context source list

For Cursor .cursorrules, Copilot codeGeneration.instructions, or an MCP RAG server, add:

node_modules/@customafk/lunas-ui/ai-docs.md

Option C — One-shot reference in chat

I'm using @customafk/lunas-ui.
Read node_modules/@customafk/lunas-ui/ai-docs.md for import paths and usage.

Key rules the AI must follow

  1. Named imports onlyimport { Button } from '@customafk/lunas-ui/ui/button'
  2. No default imports — the library has no default exports
  3. Use full category paths…/ui/button, not …/button
  4. Import styles in root layoutstyles/base + styles/theme are required
  5. Never import from @radix-ui/* directly — use the lunas-ui wrappers

🙋‍♀️ Support

🏆 Credits