@stenajs-webui/panels 19.0.0-next.1 → 19.0.0-next.12

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.
@@ -5,7 +5,6 @@ export declare type NavBarVariant = "compact" | "standard" | "relaxed";
5
5
  export interface NavBarProps {
6
6
  className?: string;
7
7
  showMenuButton?: boolean;
8
- menuButtonVisibility?: "visible" | "hidden";
9
8
  onClickMenuButton?: SidebarMenuButtonProps["onClick"];
10
9
  right?: ReactNode;
11
10
  center?: ReactNode;
@@ -1,8 +1,10 @@
1
1
  import * as React from "react";
2
2
  import { ReactNode } from "react";
3
3
  import { HeadingVariant } from "@stenajs-webui/core";
4
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
4
5
  export declare type PageHeadingVariant = "compact" | "standard" | "relaxed";
5
6
  interface PageHeadingProps {
7
+ icon?: IconDefinition;
6
8
  contentLeft?: ReactNode;
7
9
  contentRight?: ReactNode;
8
10
  heading: string;
@@ -5,8 +5,9 @@ import { NavBarVariant } from "../nav-bar/NavBar";
5
5
  export declare type SidebarMenuVariant = NavBarVariant;
6
6
  export interface SidebarMenuProps extends BoxProps {
7
7
  onCloseClick?: SidebarMenuCloseButtonRowProps["onClick"];
8
- hideCloseButton?: boolean;
9
- collapsed?: boolean;
10
8
  variant?: SidebarMenuVariant;
9
+ pinButtonVisible?: boolean;
10
+ isPinned?: boolean;
11
+ onClickPinButton?: () => void;
11
12
  }
12
13
  export declare const SidebarMenu: React.FC<SidebarMenuProps>;
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import { MenuButtonProps } from "@stenajs-webui/elements";
3
+ export interface SidebarMenuPinButtonProps {
4
+ isPinned?: boolean;
5
+ label?: string;
6
+ onClick?: MenuButtonProps["onClick"];
7
+ }
8
+ export declare const SidebarMenuPinButton: React.FC<SidebarMenuPinButtonProps>;
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import { ReactNode } from "react";
3
+ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
4
+ export interface RailMenuCollapsibleProps {
5
+ label: string;
6
+ collapsed?: boolean;
7
+ icon: IconDefinition;
8
+ children?: ReactNode;
9
+ popupMinWidth?: string;
10
+ }
11
+ export declare const RailMenuCollapsible: React.FC<RailMenuCollapsibleProps>;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import { MenuButtonLinkNotSelectedProps, MenuButtonLinkWithRenderLinkProps, MenuButtonLinkWithSelectedProps } from "@stenajs-webui/elements";
3
+ export declare type RailMenuLinkProps = (MenuButtonLinkNotSelectedProps | MenuButtonLinkWithSelectedProps | MenuButtonLinkWithRenderLinkProps) & {
4
+ label: string;
5
+ };
6
+ export declare const RailMenuLink: React.FC<RailMenuLinkProps>;
@@ -1,4 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { MenuButtonLinkNotSelectedProps, MenuButtonLinkWithRenderLinkProps, MenuButtonLinkWithSelectedProps } from "@stenajs-webui/elements";
3
- export declare type SidebarMenuLinkProps = MenuButtonLinkNotSelectedProps | MenuButtonLinkWithSelectedProps | MenuButtonLinkWithRenderLinkProps;
3
+ export declare type SidebarMenuLinkProps = (MenuButtonLinkNotSelectedProps | MenuButtonLinkWithSelectedProps | MenuButtonLinkWithRenderLinkProps) & {
4
+ label: string;
5
+ };
4
6
  export declare const SidebarMenuLink: React.FC<SidebarMenuLinkProps>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const RailContext: import("react").Context<boolean | undefined>;
3
+ export declare const useRailContext: () => boolean | undefined;
@@ -1,10 +1,10 @@
1
1
  import * as React from "react";
2
- import { SidebarMenuVariant } from "../SidebarMenu";
3
2
  import { ReactNode } from "react";
4
- interface RailMenuProps {
5
- variant?: SidebarMenuVariant;
3
+ interface SidebarRailMenuProps {
4
+ closeButtonVisible?: boolean;
5
+ onClickCloseButton?: () => void;
6
6
  onClickMenuButton?: () => void;
7
7
  children?: ReactNode;
8
8
  }
9
- export declare const SidebarRailMenu: React.FC<RailMenuProps>;
9
+ export declare const SidebarRailMenu: React.FC<SidebarRailMenuProps>;
10
10
  export {};
package/dist/index.d.ts CHANGED
@@ -26,10 +26,8 @@ export * from "./components/page-header/PageHeaderRow";
26
26
  export * from "./components/page-header/PageHeading";
27
27
  export * from "./components/sidebar-menu/SidebarMenu";
28
28
  export * from "./components/sidebar-menu/rail/SidebarRailMenu";
29
- export * from "./components/sidebar-menu/rail/renderer/RailRenderer";
30
- export * from "./components/sidebar-menu/rail/renderer/types";
31
- export * from "./components/sidebar-menu/SidebarMenuHeading";
32
- export * from "./components/sidebar-menu/SidebarMenuLink";
33
- export * from "./components/sidebar-menu/SidebarMenuCollapsible";
34
- export * from "./components/sidebar-menu/SidebarMenuSeparator";
29
+ export * from "./components/sidebar-menu/items/SidebarMenuHeading";
30
+ export * from "./components/sidebar-menu/items/SidebarMenuLink";
31
+ export * from "./components/sidebar-menu/items/SidebarMenuCollapsible";
32
+ export * from "./components/sidebar-menu/items/SidebarMenuSeparator";
35
33
  export * from "./components/selected-items-actions-panel/SelectedItemsActionsPanel";