@exegia/corpora-ui 0.15.0 → 0.17.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.
@@ -1,3 +1,3 @@
1
1
  import { ShellLayoutProps } from './type';
2
2
  import * as React from "react";
3
- export declare function ShellLayout({ children, variant, panels, className, defaultOpen, ...panelControlProps }: ShellLayoutProps): React.ReactElement;
3
+ export declare function ShellLayout({ children, variant, panels, className, header, defaultOpen, ...panelControlProps }: ShellLayoutProps): React.ReactElement;
@@ -16,6 +16,10 @@ export interface IPanel {
16
16
  id: string;
17
17
  name: string;
18
18
  component: ReactNode;
19
+ /** Replaces the default icon inside the panel's header trigger. The shell
20
+ * keeps the trigger button itself (toggle wiring, aria-label) — this only
21
+ * swaps what renders inside it. */
22
+ trigger?: ReactNode;
19
23
  open: boolean;
20
24
  defaultOpen?: boolean;
21
25
  side: "left" | "bottom" | "right" | "sidebar";
@@ -64,6 +68,7 @@ export interface ShellLayoutProps extends ShellPanelControlProps {
64
68
  /** Content for the shell's panels, keyed by the side. The shell renders
65
69
  * the `left` rail and the `right` drawer; other sides are reserved. */
66
70
  panels?: TPanelMap;
71
+ header?: ReactNode;
67
72
  className?: string;
68
73
  variant?: "web" | "desktop";
69
74
  }
@@ -1,7 +1,7 @@
1
1
  import { HTMLMotionProps } from 'motion/react';
2
2
  import { ButtonHTMLAttributes, CSSProperties, HTMLAttributes, ReactNode } from 'react';
3
3
  export type SidebarSide = "left" | "right";
4
- /** Open flags keyed by side. Sides left out stay uncontrolled / at their
4
+ /** Open flags keyed by the side. Sides left out stay uncontrolled / at their
5
5
  * default — there is no per-side prop, the record IS the API. */
6
6
  export type SidebarOpenState = Partial<Record<SidebarSide, boolean>>;
7
7
  type SidebarVariant = "sidebar" | "floating" | "inset";
@@ -27,7 +27,7 @@ type SidebarProviderStyle = CSSProperties & {
27
27
  "--sidebar-width-mobile"?: string;
28
28
  };
29
29
  export interface AnimatedSidebarProviderProps extends HTMLAttributes<HTMLDivElement> {
30
- /** Controlled desktop open state, keyed by side. A side left undefined
30
+ /** Controlled desktop open state, keyed by the side. A side left undefined
31
31
  * stays uncontrolled. */
32
32
  open?: SidebarOpenState;
33
33
  /** Initial desktop open state, merged over `{ left: true, right: false }`. */
@@ -58,9 +58,6 @@ export interface AnimatedSidebarCloseProps extends ButtonHTMLAttributes<HTMLButt
58
58
  side?: SidebarSide;
59
59
  }
60
60
  export declare const AnimatedSidebarClose: import('react').ForwardRefExoticComponent<AnimatedSidebarCloseProps & import('react').RefAttributes<HTMLButtonElement>>;
61
- export interface AnimatedSidebarRailProps extends ButtonHTMLAttributes<HTMLButtonElement> {
62
- }
63
- export declare const AnimatedSidebarRail: import('react').ForwardRefExoticComponent<AnimatedSidebarRailProps & import('react').RefAttributes<HTMLButtonElement>>;
64
61
  export interface AnimatedSidebarInsetProps extends HTMLMotionProps<"main"> {
65
62
  }
66
63
  export declare const AnimatedSidebarInset: import('react').ForwardRefExoticComponent<Omit<AnimatedSidebarInsetProps, "ref"> & import('react').RefAttributes<HTMLElement>>;