@petrarca/sonnet-ui 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.
- package/README.md +38 -0
- package/package.json +5 -5
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# @petrarca/sonnet-ui
|
|
2
|
+
|
|
3
|
+
UI primitives and data components for the Petrarca Sonnet component library.
|
|
4
|
+
|
|
5
|
+
## What's included
|
|
6
|
+
|
|
7
|
+
**UI primitives** -- Tailwind CSS + Radix UI based components following the shadcn pattern: Button, Badge, Card, Dialog, Tabs, Input, Tooltip, Spinner, Stepper, and more.
|
|
8
|
+
|
|
9
|
+
**Data components** -- Higher-level components for building data-driven UIs:
|
|
10
|
+
- **EntityTable** -- Schema-driven data table with pagination, row actions, custom cell renderers
|
|
11
|
+
- **EntitySelect** -- Async searchable select with typeahead, backed by a fetcher API
|
|
12
|
+
- **EntityTree** -- Hierarchical tree browser with search, edit, drag support
|
|
13
|
+
- **TreeView** -- Generic tree renderer with keyboard navigation
|
|
14
|
+
- **SearchInput** -- Faceted search input with chip-based filters
|
|
15
|
+
- **JsonEditor** -- CodeMirror-based JSON editor with validation highlighting (subpath: `@petrarca/sonnet-ui/json-editor`)
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pnpm add @petrarca/sonnet-ui @petrarca/sonnet-core
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Peer dependencies: `react`, `react-dom`, `tailwindcss`.
|
|
24
|
+
|
|
25
|
+
## Tailwind setup
|
|
26
|
+
|
|
27
|
+
Add the package dist to your Tailwind `content` config so component classes are included:
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
content: [
|
|
31
|
+
"./src/**/*.{ts,tsx}",
|
|
32
|
+
"./node_modules/@petrarca/sonnet-*/dist/**/*.js",
|
|
33
|
+
]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
Apache 2.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@petrarca/sonnet-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "UI primitives, data components, and table schema system for the Petrarca Sonnet component library",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -45,10 +45,6 @@
|
|
|
45
45
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
46
46
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
47
47
|
"@tanstack/react-table": "^8.21.3",
|
|
48
|
-
"@codemirror/lang-json": "^6.0.2",
|
|
49
|
-
"@codemirror/state": "^6.5.4",
|
|
50
|
-
"@codemirror/view": "^6.39.14",
|
|
51
|
-
"@uiw/react-codemirror": "^4.25.4",
|
|
52
48
|
"class-variance-authority": "^0.7.1",
|
|
53
49
|
"cmdk": "^1.1.1",
|
|
54
50
|
"lucide-react": "^0.553.0",
|
|
@@ -57,6 +53,10 @@
|
|
|
57
53
|
"zustand": "5.0.8"
|
|
58
54
|
},
|
|
59
55
|
"peerDependencies": {
|
|
56
|
+
"@codemirror/lang-json": ">=6",
|
|
57
|
+
"@codemirror/state": ">=6",
|
|
58
|
+
"@codemirror/view": ">=6",
|
|
59
|
+
"@uiw/react-codemirror": ">=4",
|
|
60
60
|
"react": ">=18",
|
|
61
61
|
"react-dom": ">=18",
|
|
62
62
|
"tailwindcss": ">=3"
|