@platned/ui 0.6.0 → 0.7.0
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 +7 -7
- package/dist/index.cjs +4961 -2822
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1441 -194
- package/dist/index.d.ts +1441 -194
- package/dist/index.js +4952 -2904
- package/dist/index.js.map +1 -1
- package/dist/sidebar.cjs +542 -876
- package/dist/sidebar.cjs.map +1 -1
- package/dist/sidebar.d.cts +56 -0
- package/dist/sidebar.d.ts +56 -0
- package/dist/sidebar.js +539 -894
- package/dist/sidebar.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +5 -3
- package/tailwind-preset.cjs +79 -0
package/README.md
CHANGED
|
@@ -14,10 +14,10 @@ Peer dependencies:
|
|
|
14
14
|
| Package | Range | Required |
|
|
15
15
|
|---|---|---|
|
|
16
16
|
| `react`, `react-dom` | `>=18` | yes |
|
|
17
|
-
| `react
|
|
17
|
+
| `lucide-react` | `>=1.0.0` | yes — components render Lucide glyphs |
|
|
18
18
|
| `react-router-dom` | `>=6` | **optional** — only for the `./sidebar` entry point |
|
|
19
19
|
|
|
20
|
-
`
|
|
20
|
+
`radix-ui`, `@tanstack/react-table`, `clsx` and `tailwind-merge` are regular dependencies, not
|
|
21
21
|
peers. They are implementation details.
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
@@ -72,17 +72,17 @@ const [collapsed, setCollapsed] = useState(false)
|
|
|
72
72
|
<AppSidebar
|
|
73
73
|
groups={[
|
|
74
74
|
{ items: [
|
|
75
|
-
{ to: '/dashboard', label: 'Dashboard', icon: <
|
|
76
|
-
{ to: '/entities', label: 'Entities', icon: <
|
|
75
|
+
{ to: '/dashboard', label: 'Dashboard', icon: <LayoutGridIcon />, end: true },
|
|
76
|
+
{ to: '/entities', label: 'Entities', icon: <LayersIcon />, indicator: true },
|
|
77
77
|
] },
|
|
78
78
|
{ title: 'Review', items: [
|
|
79
|
-
{ to: '/queue', label: 'Review queue', icon: <
|
|
79
|
+
{ to: '/queue', label: 'Review queue', icon: <ClipboardListIcon /> },
|
|
80
80
|
] },
|
|
81
81
|
]}
|
|
82
82
|
collapsed={collapsed}
|
|
83
83
|
onToggle={() => setCollapsed(c => !c)}
|
|
84
84
|
brand={({ collapsed }) => (collapsed ? <Mark /> : <Logo />)}
|
|
85
|
-
footerNav={[{ to: '/settings', label: 'Settings', icon: <
|
|
85
|
+
footerNav={[{ to: '/settings', label: 'Settings', icon: <SettingsIcon /> }]}
|
|
86
86
|
footer={
|
|
87
87
|
<SidebarUserCard name={user.name} role={user.role} collapsed={collapsed} onLogout={signOut} />
|
|
88
88
|
}
|
|
@@ -132,7 +132,7 @@ and cell parts, `Table` and parts, `ListRow`, `FileRow`, `ScoredRow`, `NumberedL
|
|
|
132
132
|
|
|
133
133
|
**AI & decorative** — `AIChatBar`, `AISuggestionChip`, `QuickActionsBar`, `AuroraBackdrop`
|
|
134
134
|
|
|
135
|
-
Icons are **not** re-exported. Import them from `react
|
|
135
|
+
Icons are **not** re-exported. Import them from `lucide-react` at the call site.
|
|
136
136
|
|
|
137
137
|
## Documentation
|
|
138
138
|
|