@nimbus-ds/patterns 1.34.1 → 1.35.0-rc.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/CHANGELOG.md +10 -0
- package/dist/AppShell/index.d.ts +32 -2
- package/dist/AppShell/index.js +1 -1
- package/dist/CHANGELOG.md +10 -0
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +32 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -23,9 +23,39 @@ export interface AppShellHeaderProperties {
|
|
|
23
23
|
}
|
|
24
24
|
export type AppShellHeaderProps = AppShellHeaderProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & Omit<BoxProperties, "display" | "justifyContent" | "position" | "top">;
|
|
25
25
|
declare const AppShellHeader: React.FC<AppShellHeaderProps>;
|
|
26
|
-
export
|
|
26
|
+
export interface AppShellBodyProperties {
|
|
27
|
+
/**
|
|
28
|
+
* Chat region rendered alongside the body content (e.g. `AppShell.Chat`).
|
|
29
|
+
* It is rendered outside the content wrapper, so it stays visible while the
|
|
30
|
+
* body content is automatically hidden when the chat is expanded.
|
|
31
|
+
*/
|
|
32
|
+
chat?: ReactNode;
|
|
33
|
+
}
|
|
34
|
+
export type AppShellBodyProps = AppShellBodyProperties & Omit<BoxProps, "display" | "flex">;
|
|
27
35
|
declare const AppShellBody: React.FC<AppShellBodyProps>;
|
|
28
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Properties specific to the AppShellChat component.
|
|
38
|
+
*/
|
|
39
|
+
export interface AppShellChatProperties {
|
|
40
|
+
/**
|
|
41
|
+
* Default expanded state for uncontrolled usage.
|
|
42
|
+
*/
|
|
43
|
+
defaultExpanded?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the chat panel is expanded to overlay mode, filling the parent container area.
|
|
46
|
+
* The overlay auto-detects the parent bounds (respecting menu and header).
|
|
47
|
+
*/
|
|
48
|
+
expanded?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Width of the chat panel in collapsed (non-expanded) mode.
|
|
51
|
+
* Accepts any valid CSS length value (e.g. "300px", "25vw").
|
|
52
|
+
* Useful for consumer-controlled resize interactions such as a drag handle.
|
|
53
|
+
* Defaults to "300px".
|
|
54
|
+
*/
|
|
55
|
+
collapsedWidth?: string;
|
|
56
|
+
}
|
|
57
|
+
export type AppShellChatProps = AppShellChatProperties & Omit<BoxProps, "position">;
|
|
58
|
+
export declare const APPSHELL_CHAT_DEFAULT_WIDTH = "300px";
|
|
29
59
|
declare const AppShellChat: React.FC<AppShellChatProps>;
|
|
30
60
|
export interface AppShellComponents {
|
|
31
61
|
Header: typeof AppShellHeader;
|