@talogic/react 0.6.1 → 0.6.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/app/app-shell.component.d.ts +10 -3
- package/index.js +508 -508
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -19,8 +19,14 @@ export interface AppCommand {
|
|
|
19
19
|
}
|
|
20
20
|
/** Props of {@link AppShell}. */
|
|
21
21
|
export interface AppShellProps {
|
|
22
|
-
/** The product, for the switcher. Theme the accent with ThemeRoot or `<html data-product>`. */
|
|
22
|
+
/** The product, for the switcher or the brand. Theme the accent with ThemeRoot or `<html data-product>`. */
|
|
23
23
|
product: Product;
|
|
24
|
+
/**
|
|
25
|
+
* The top of the sidebar: `switcher` (default) is the product switcher of a portal; `logo` is the product's
|
|
26
|
+
* symbol and name, for a single-product app. With `logo` the symbol is the collapse button, and a collapsed
|
|
27
|
+
* sidebar shows the symbol only.
|
|
28
|
+
*/
|
|
29
|
+
brand?: 'switcher' | 'logo';
|
|
24
30
|
workspace?: string;
|
|
25
31
|
onProductChange?: (product: Product) => void;
|
|
26
32
|
/** The main sidebar entries. */
|
|
@@ -49,11 +55,12 @@ export interface AppShellProps {
|
|
|
49
55
|
className?: string;
|
|
50
56
|
}
|
|
51
57
|
/**
|
|
52
|
-
* The AppShell pattern of a web portal: the `nav` Sidebar with the product switcher
|
|
58
|
+
* The AppShell pattern of a web portal: the `nav` Sidebar with the product switcher (or, with `brand='logo'`, the
|
|
59
|
+
* product's symbol as the collapse button), search, navigation, a footer
|
|
53
60
|
* card and the user, beside a top bar and the page. The sidebar collapses to its icons; on a phone it opens in a
|
|
54
61
|
* sheet from the top bar. ⌘K or Ctrl+K opens the command palette; the search shows the one for the user's system.
|
|
55
62
|
*
|
|
56
63
|
* @param props - Product, navigation, user, top bar, commands and the page.
|
|
57
64
|
* @returns The shell.
|
|
58
65
|
*/
|
|
59
|
-
export declare function AppShell({ product, workspace, onProductChange, nav, secondaryNav, sidebarFooter, user, breadcrumb, topActions, commands, children, className }: AppShellProps): import("react").JSX.Element;
|
|
66
|
+
export declare function AppShell({ product, brand, workspace, onProductChange, nav, secondaryNav, sidebarFooter, user, breadcrumb, topActions, commands, children, className }: AppShellProps): import("react").JSX.Element;
|