aot-ui 0.2.24 → 0.2.27
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.
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
type AppShellProps = {
|
|
3
3
|
title?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Brand logo for the titlebar (local asset URL / data URL).
|
|
6
|
+
* Prefer this over the default mark so packaged apps work offline.
|
|
7
|
+
*/
|
|
8
|
+
logoSrc?: string;
|
|
4
9
|
/** Fired when the titlebar logo is clicked (e.g. secret gestures). */
|
|
5
10
|
onLogoClick?: MouseEventHandler<HTMLButtonElement>;
|
|
6
11
|
children: ReactNode;
|
|
7
12
|
};
|
|
8
|
-
export declare function AppShell({ title, onLogoClick, children, }: AppShellProps): import('react').JSX.Element;
|
|
13
|
+
export declare function AppShell({ title, logoSrc, onLogoClick, children, }: AppShellProps): import('react').JSX.Element;
|
|
9
14
|
export {};
|
|
@@ -2,7 +2,9 @@ import { MouseEventHandler } from 'react';
|
|
|
2
2
|
type TitleBarProps = {
|
|
3
3
|
title?: string;
|
|
4
4
|
isMaximized: boolean;
|
|
5
|
+
/** Host brand logo URL (local asset / data URL). Falls back to built-in mark. */
|
|
6
|
+
logoSrc?: string;
|
|
5
7
|
onLogoClick?: MouseEventHandler<HTMLButtonElement>;
|
|
6
8
|
};
|
|
7
|
-
export declare function TitleBar({ title, isMaximized, onLogoClick, }: TitleBarProps): import('react').JSX.Element;
|
|
9
|
+
export declare function TitleBar({ title, isMaximized, logoSrc, onLogoClick, }: TitleBarProps): import('react').JSX.Element;
|
|
8
10
|
export {};
|