@petrarca/sonnet-shell
v0.1.4
Published
Application shell, layout, navigation, auth flow, and imperative API for the Petrarca Sonnet component library
Readme
@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
pnpm add @petrarca/sonnet-shell @petrarca/sonnet-ui @petrarca/sonnet-corePeer dependencies: react, react-dom, react-router-dom, tailwindcss.
License
Apache 2.0
