open-index/open-npm huggingface dataset:
npm package: @petrarca/sonnet-core
Description: Shared utilities, schema tools, and hooks for the Petrarca Sonnet component library
Latest version: 0.1.4

# @petrarca/sonnet-core

Foundation utilities for the Petrarca Sonnet component library. This is the leaf package -- all other Sonnet packages depend on it.

## Entry points

| Import | What |
|---|---|
| `@petrarca/sonnet-core` | Utility functions (`cn`, `isEqual`, `formatDateTime`, `normalizeError`, logging, etc.) |
| `@petrarca/sonnet-core/schema` | JSON Schema types, resolution, validation, diffing |
| `@petrarca/sonnet-core/search` | Filter expression types and helpers (`FilterExpr`, `buildListParams`, etc.) |
| `@petrarca/sonnet-core/hooks` | React hooks (`useClipboard`, `useDisclosure`, `useFormState`, `useEntityOptions`) |
| `@petrarca/sonnet-core/entityOptions` | Entity option fetcher context and factory for async select/autocomplete |

## Install

```bash
pnpm add @petrarca/sonnet-core
```

## License

Apache 2.0
npm package: @petrarca/sonnet-forms
Description: Schema-driven form renderer, field components, and widgets for the Petrarca Sonnet component library
Latest version: 0.1.4

# @petrarca/sonnet-forms

Schema-driven form renderer and field components for the Petrarca Sonnet component library.

## What's included

**JsonSchemaFormRenderer** -- Renders a complete form from a JSON Schema definition with automatic widget resolution, validation, nested objects, and repeatable arrays.

**Field components** -- Standalone form fields with label, description, error, and compact mode support: FormInput, FormTextarea, FormSelect, FormMultiSelect, FormCheckbox, FormTagsInput, FormQuantityInput.

**Widget system** -- Extensible widget registry for mapping schema types to UI controls. Built-in widgets for text, number, select, checkbox, textarea, tags, quantity, arrays, objects, entity references, and JSON editing.

## Install

```bash
pnpm add @petrarca/sonnet-forms @petrarca/sonnet-ui @petrarca/sonnet-core
```

Peer dependencies: `react`, `react-dom`, `tailwindcss`.

## License

Apache 2.0
npm package: @petrarca/sonnet-shell
Description: Application shell, layout, navigation, auth flow, and imperative API for the Petrarca Sonnet component library
Latest version: 0.1.4

# @petrarca/sonnet-shell

Application shell, layout, and navigation for the Petrarca Sonnet component library.

## What's included

**AppShell** -- Full application shell with icon rail, top bar, side pane, sub-navigation, command menu, and confirm dialogs.

**Imperative API** -- Shell capabilities exposed as simple function calls: `notification.success()`, `panel.open()`, `navigation.go()`, `dialog.confirm()`, `fullscreen.enter()`.

**Module registry** -- Register application modules with navigation, routes, and search providers. The shell renders the navigation and routes automatically.

**Auth components** (subpath: `@petrarca/sonnet-shell/auth`) -- Login, ProtectedRoute, and TenantSelection components with prop-driven auth configuration. No auth logic baked in -- the host app provides the auth state.

## Install

```bash
pnpm add @petrarca/sonnet-shell @petrarca/sonnet-ui @petrarca/sonnet-core
```

Peer dependencies: `react`, `react-dom`, `react-router-dom`, `tailwindcss`.

## License

Apache 2.0
npm package: @petrarca/sonnet-ui
Description: UI primitives, data components, and table schema system for the Petrarca Sonnet component library
Latest version: 0.1.4

# @petrarca/sonnet-ui

UI primitives and data components for the Petrarca Sonnet component library.

## What's included

**UI primitives** -- Tailwind CSS + Radix UI based components following the shadcn pattern: Button, Badge, Card, Dialog, Tabs, Input, Tooltip, Spinner, Stepper, and more.

**Data components** -- Higher-level components for building data-driven UIs:
- **EntityTable** -- Schema-driven data table with pagination, row actions, custom cell renderers
- **EntitySelect** -- Async searchable select with typeahead, backed by a fetcher API
- **EntityTree** -- Hierarchical tree browser with search, edit, drag support
- **TreeView** -- Generic tree renderer with keyboard navigation
- **SearchInput** -- Faceted search input with chip-based filters
- **JsonEditor** -- CodeMirror-based JSON editor with validation highlighting (subpath: `@petrarca/sonnet-ui/json-editor`)

## Install

```bash
pnpm add @petrarca/sonnet-ui @petrarca/sonnet-core
```

Peer dependencies: `react`, `react-dom`, `tailwindcss`.

## Tailwind setup

Add the package dist to your Tailwind `content` config so component classes are included:

```js
content: [
  "./src/**/*.{ts,tsx}",
  "./node_modules/@petrarca/sonnet-*/dist/**/*.js",
]
```

## License

Apache 2.0