@petrarca/sonnet-forms 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +23 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # @petrarca/sonnet-forms
2
+
3
+ Schema-driven form renderer and field components for the Petrarca Sonnet component library.
4
+
5
+ ## What's included
6
+
7
+ **JsonSchemaFormRenderer** -- Renders a complete form from a JSON Schema definition with automatic widget resolution, validation, nested objects, and repeatable arrays.
8
+
9
+ **Field components** -- Standalone form fields with label, description, error, and compact mode support: FormInput, FormTextarea, FormSelect, FormMultiSelect, FormCheckbox, FormTagsInput, FormQuantityInput.
10
+
11
+ **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.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ pnpm add @petrarca/sonnet-forms @petrarca/sonnet-ui @petrarca/sonnet-core
17
+ ```
18
+
19
+ Peer dependencies: `react`, `react-dom`, `tailwindcss`.
20
+
21
+ ## License
22
+
23
+ Apache 2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petrarca/sonnet-forms",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Schema-driven form renderer, field components, and widgets for the Petrarca Sonnet component library",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {