@sovereignfs/ui 0.91.0 → 0.92.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/dist/index.d.ts +16 -12
- package/dist/index.js +1054 -567
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -233,7 +233,7 @@ interface BadgeProps {
|
|
|
233
233
|
*/
|
|
234
234
|
declare function Badge({ variant, size, status, uppercase, children, }: BadgeProps): react.JSX.Element;
|
|
235
235
|
|
|
236
|
-
type IconName = 'house' | 'settings' | 'log-out' | 'smartphone' | 'chevron-right' | 'chevron-left' | 'chevron-down' | 'chevron-up' | 'circle-chevron-left' | 'menu' | 'x' | 'check' | 'plus' | 'trash-2' | 'pencil' | 'rotate-ccw' | 'search' | 'copy' | 'user' | 'users' | 'user-round-plus' | 'shield' | 'lock' | 'eye' | 'eye-off' | 'hat-glasses' | 'mail' | 'message-square' | 'archive' | 'archive-restore' | 'clock' | 'bell' | 'inbox' | 'activity' | 'package' | 'database' | 'layers' | 'grid-2x2' | 'layout-dashboard' | 'layout-grid' | 'square-kanban' | 'info' | 'alert-triangle' | 'circle-check' | 'circle-x' | 'calendar' | 'sliders-horizontal' | 'ellipsis-vertical' | 'rectangle-ellipsis' | 'file' | 'folder' | 'upload' | 'download' | 'external-link' | 'arrow-left-right' | 'send' | 'list' | 'list-ordered' | 'link' | 'code' | 'rotate-cw' | 'refresh-cw' | 'history' | 'minus' | 'table' | 'sheet' | 'folders' | 'folder-closed' | 'file-text' | 'folder-open' | 'share-2' | 'luggage' | 'map-pin' | 'route' | 'bold' | 'italic' | 'paint-bucket' | 'banana' | 'apple' | 'carrot' | 'egg' | 'beef' | 'fish' | 'coffee' | 'wine' | 'beer' | 'cookie' | 'pizza' | 'candy' | 'salad' | 'milk' | 'drumstick' | 'croissant' | 'cup-soda' | 'spray-can' | 'snowflake' | 'shopping-basket' | 'panel-left' | 'pin' | 'credit-card' | 'ban' | 'shield-off' | 'user-x';
|
|
236
|
+
type IconName = 'house' | 'settings' | 'log-out' | 'smartphone' | 'chevron-right' | 'chevron-left' | 'chevron-down' | 'chevron-up' | 'circle-chevron-left' | 'menu' | 'x' | 'check' | 'plus' | 'trash-2' | 'pencil' | 'rotate-ccw' | 'search' | 'copy' | 'user' | 'users' | 'user-round-plus' | 'shield' | 'lock' | 'eye' | 'eye-off' | 'hat-glasses' | 'mail' | 'message-square' | 'archive' | 'archive-restore' | 'clock' | 'bell' | 'inbox' | 'activity' | 'package' | 'database' | 'layers' | 'grid-2x2' | 'layout-dashboard' | 'layout-grid' | 'square-kanban' | 'info' | 'alert-triangle' | 'circle-check' | 'circle-x' | 'calendar' | 'sliders-horizontal' | 'ellipsis-vertical' | 'rectangle-ellipsis' | 'file' | 'folder' | 'upload' | 'download' | 'external-link' | 'arrow-left-right' | 'send' | 'list' | 'list-ordered' | 'link' | 'code' | 'rotate-cw' | 'refresh-cw' | 'history' | 'minus' | 'table' | 'sheet' | 'folders' | 'folder-closed' | 'file-text' | 'folder-open' | 'share-2' | 'luggage' | 'map-pin' | 'route' | 'bold' | 'italic' | 'paint-bucket' | 'banana' | 'apple' | 'carrot' | 'egg' | 'beef' | 'fish' | 'coffee' | 'wine' | 'beer' | 'cookie' | 'pizza' | 'candy' | 'salad' | 'milk' | 'drumstick' | 'croissant' | 'cup-soda' | 'spray-can' | 'snowflake' | 'shopping-basket' | 'panel-left' | 'pin' | 'credit-card' | 'ban' | 'shield-off' | 'user-x' | 'panel-left-close' | 'panel-left-open' | 'list-todo' | 'user-plus' | 'calendar-days' | 'folder-kanban' | 'folder-lock' | 'folder-plus' | 'folder-input' | 'file-image' | 'square-text' | 'file-code-corner' | 'archive-x' | 'settings-2' | 'arrow-right-left' | 'save' | 'hard-drive' | 'notebook-pen' | 'fingerprint-pattern';
|
|
237
237
|
|
|
238
238
|
/** Decorative icon — visually meaningful but described by surrounding text. */
|
|
239
239
|
type DecorativeProps = {
|
|
@@ -1249,16 +1249,19 @@ interface HeaderProps extends HTMLAttributes<HTMLElement> {
|
|
|
1249
1249
|
/** The active plugin, rendered next to the brand badge. Omit for a page
|
|
1250
1250
|
* with no single active plugin (e.g. the Launcher itself). */
|
|
1251
1251
|
plugin?: HeaderPlugin;
|
|
1252
|
+
/** Before the brand badge, at the far left: an app's own control, such as
|
|
1253
|
+
* the button that opens and closes its sidebar. Omit for none. */
|
|
1254
|
+
leading?: ReactNode;
|
|
1252
1255
|
/** Apps launcher trigger — already wired by the consumer (icon button plus
|
|
1253
|
-
* whatever popover/drawer it opens).
|
|
1254
|
-
*
|
|
1255
|
-
*
|
|
1256
|
-
launcher
|
|
1257
|
-
/** Notification bell trigger
|
|
1258
|
-
*
|
|
1259
|
-
notifications
|
|
1260
|
-
/** Avatar / account menu trigger
|
|
1261
|
-
avatarMenu
|
|
1256
|
+
* whatever popover/drawer it opens). This component owns layout only,
|
|
1257
|
+
* never launcher/notification/account interaction logic. Omit it for an
|
|
1258
|
+
* app that runs on its own, with no instance's apps to switch to. */
|
|
1259
|
+
launcher?: ReactNode;
|
|
1260
|
+
/** Notification bell trigger. Same "just an icon slot" boundary as
|
|
1261
|
+
* `MobileHeader`'s own `bell` prop. Omit until there is one to show. */
|
|
1262
|
+
notifications?: ReactNode;
|
|
1263
|
+
/** Avatar / account menu trigger. Omit until there is one to show. */
|
|
1264
|
+
avatarMenu?: ReactNode;
|
|
1262
1265
|
}
|
|
1263
1266
|
/**
|
|
1264
1267
|
* The web top-bar header: brand badge (+ optional active plugin) on the
|
|
@@ -1274,9 +1277,10 @@ interface HeaderProps extends HTMLAttributes<HTMLElement> {
|
|
|
1274
1277
|
* fully built, exactly like `MobileHeader`'s `bell`/`avatarMenu`: this
|
|
1275
1278
|
* component stays router-agnostic and interaction-agnostic, and never
|
|
1276
1279
|
* duplicates a real `AccountMenu`/notification-panel/apps-switcher
|
|
1277
|
-
* implementation.
|
|
1280
|
+
* implementation. Every slot on the right is optional, so an app that runs
|
|
1281
|
+
* on its own (with no launcher, say) uses this header too.
|
|
1278
1282
|
*/
|
|
1279
|
-
declare function Header({ instanceName, instanceLogoUrl, homeHref, plugin, launcher, notifications, avatarMenu, className, ...rest }: HeaderProps): react.JSX.Element;
|
|
1283
|
+
declare function Header({ instanceName, instanceLogoUrl, homeHref, plugin, leading, launcher, notifications, avatarMenu, className, ...rest }: HeaderProps): react.JSX.Element;
|
|
1280
1284
|
|
|
1281
1285
|
interface MobileHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
1282
1286
|
/** The brand/logo element — already a complete, clickable link home (e.g. an
|