open-index/open-npm huggingface dataset:
npm package: @lightbreak/ng-form
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.2.
Latest version: 1.0.0-beta2

# LightBreakDynamic

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.2.

## Code scaffolding

Run `ng generate component component-name --project LightBreakDynamic` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project LightBreakDynamic`.
> Note: Don't forget to add `--project LightBreakDynamic` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build LightBreakDynamic` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build LightBreakDynamic`, go to the dist folder `cd dist/light-break-dynamic` and run `npm publish`.

## Running unit tests

Run `ng test LightBreakDynamic` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @lightcast-ui/moon
Description: The base UI kit for Lightcast's design system, based on shadcn/ui components with full TypeScript support.
Latest version: 0.0.10

# Moon

The base UI kit for Lightcast's design system, based on shadcn/ui components with full TypeScript support.

## Installation

```bash
npm install @lightcast-ui/moon
# or
yarn add @lightcast-ui/moon
# or
pnpm add @lightcast-ui/moon
```

## Setup

### 1. Configure Tailwind CSS with Vite

If you're using Tailwind CSS v4 with Vite, follow these steps:

1. Install Tailwind CSS and the Vite plugin:

```bash
npm install tailwindcss @tailwindcss/vite
```

2. Configure the Vite plugin in your vite.config.ts:

```typescript
import { defineConfig } from "vite";
import tailwindcss from "@tailwindcss/vite";

export default defineConfig({
  plugins: [
    tailwindcss({
      // Optional: Add Moon components to be scanned for classes
      content: [
        "./src/**/*.{js,ts,jsx,tsx}",
        "./node_modules/@lightcast-ui/moon/**/*.{js,cjs,mjs}",
      ],
    }),
    // Your other plugins...
  ],
});
```

### 2. Import the styles

For Tailwind CSS v4, you can import the styles in two ways:

**Option 1**: In your CSS file, import both Tailwind CSS and Moon styles:

```css
/* In your main CSS file */
@import "tailwindcss";
@import "@lightcast-ui/moon/styles.css";
```

**Option 2**: In your main component file:

```tsx
// In your main file (e.g., main.tsx, App.tsx)
import "@lightcast-ui/moon/styles.css";
```

## Usage

### Method 1: Import from specific components (recommended)

This approach enables better tree-shaking:

```tsx
import { Button } from "@lightcast-ui/moon/button";
import {
  AlertDialog,
  AlertDialogTrigger,
  AlertDialogContent,
} from "@lightcast-ui/moon/alert-dialog";

function MyComponent() {
  return (
    <div>
      <Button variant="outline">Click me</Button>

      <AlertDialog>
        <AlertDialogTrigger asChild>
          <Button>Open Alert</Button>
        </AlertDialogTrigger>
        <AlertDialogContent>{/* Alert content here */}</AlertDialogContent>
      </AlertDialog>
    </div>
  );
}
```

### Method 2: Import from main entry point

```tsx
import { Button, AlertDialog, AlertDialogTrigger } from "@lightcast-ui/moon";

function MyComponent() {
  return (
    <div>
      <Button>Click me</Button>
    </div>
  );
}
```

## Available Components

Moon includes all shadcn/ui components:

- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Command
- Context Menu
- Dialog
- Drawer
- Dropdown Menu
- Form
- Hover Card
- Input
- Input OTP
- Label
- Menubar
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip

## Custom Hooks

Moon also includes some useful hooks:

```tsx
import { useMobile } from "@lightcast-ui/moon/hooks/use-mobile";

function MyComponent() {
  const isMobile = useMobile();

  return <div>{isMobile ? "Mobile view" : "Desktop view"}</div>;
}
```