@declarion/react 0.1.60 → 0.1.61
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-lib/components/primitives/BrandLogo.d.ts +16 -0
- package/dist-lib/index.js +877 -881
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface BrandLogoProps {
|
|
3
|
+
/** URL from branding.app_logo in consumer YAML. */
|
|
4
|
+
appLogo?: string;
|
|
5
|
+
/** Pixel edge of the rendered image. */
|
|
6
|
+
size: number;
|
|
7
|
+
/** Border radius for the image frame. Defaults to 8 at size>=30 else 6. */
|
|
8
|
+
radius?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Rendered when appLogo is missing or not a valid URL. Surfaces like
|
|
11
|
+
* the pre-login AuthShell want a visible platform-default tile;
|
|
12
|
+
* surfaces like the Sidebar prefer nothing (text app_name fills in).
|
|
13
|
+
*/
|
|
14
|
+
fallback?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare function BrandLogo({ appLogo, size, radius, fallback }: BrandLogoProps): import("react/jsx-runtime").JSX.Element | null;
|