@stenajs-webui/panels 21.8.2 → 21.8.4
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/components/action-menu-button/ActionMenuButton.d.ts +5 -1
- package/dist/components/nav-bar/NavBarButton.d.ts +1 -1
- package/dist/components/nav-bar/NavBarNotificationButton.d.ts +1 -1
- package/dist/components/nav-bar/NavBarPopoverButton.d.ts +2 -1
- package/dist/index.es.js +288 -274
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ReactNode, RefObject } from "react";
|
|
3
3
|
import { ActionMenuProps, FlatButton, PrimaryButton, PrimaryButtonProps, SecondaryButton } from "@stenajs-webui/elements";
|
|
4
|
-
import { PopoverProps } from "@stenajs-webui/tooltip";
|
|
4
|
+
import { ControlledPopoverProps, PopoverProps } from "@stenajs-webui/tooltip";
|
|
5
5
|
export interface ActionMenuButtonProps extends Omit<PrimaryButtonProps, "variant" | "loading" | "loadingLabel" | "success" | "successLabel"> {
|
|
6
6
|
/** The content of the Action Menu. */
|
|
7
7
|
renderItems: (close: () => void) => ReactNode;
|
|
8
8
|
/** The placement of the Action Menu. */
|
|
9
9
|
placement?: PopoverProps["placement"];
|
|
10
|
+
/** Z-index of the Action Menu */
|
|
11
|
+
zIndex?: number;
|
|
12
|
+
/** Portal target, HTML element. If not set, portal is not used. */
|
|
13
|
+
appendTo?: ControlledPopoverProps["appendTo"];
|
|
10
14
|
menuWidth?: ActionMenuProps["width"];
|
|
11
15
|
menuTop?: ActionMenuProps["top"];
|
|
12
16
|
buttonComponent: typeof PrimaryButton | typeof SecondaryButton | typeof FlatButton;
|
|
@@ -3,4 +3,4 @@ import * as React from "react";
|
|
|
3
3
|
export interface NavBarButtonProps extends FlatButtonProps {
|
|
4
4
|
selected?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const NavBarButton: React.
|
|
6
|
+
export declare const NavBarButton: React.ForwardRefExoticComponent<NavBarButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -6,4 +6,4 @@ export interface NavBarNotificationButtonProps extends Omit<FlatButtonProps, "le
|
|
|
6
6
|
unread: boolean;
|
|
7
7
|
icon?: IconDefinition;
|
|
8
8
|
}
|
|
9
|
-
export declare const NavBarNotificationButton: React.
|
|
9
|
+
export declare const NavBarNotificationButton: React.ForwardRefExoticComponent<NavBarNotificationButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { NavBarButtonProps } from "./NavBarButton";
|
|
4
|
+
import { ControlledPopoverProps } from "@stenajs-webui/tooltip";
|
|
4
5
|
type RenderProp = (args: RenderPropArgs) => ReactNode;
|
|
5
6
|
interface RenderPropArgs {
|
|
6
7
|
close: () => void;
|
|
7
8
|
}
|
|
8
|
-
export interface NavBarPopoverButtonProps extends Omit<NavBarButtonProps, "onClick" | "content"> {
|
|
9
|
+
export interface NavBarPopoverButtonProps extends Omit<NavBarButtonProps, "onClick" | "content">, Pick<ControlledPopoverProps, "zIndex" | "appendTo"> {
|
|
9
10
|
content?: RenderProp;
|
|
10
11
|
}
|
|
11
12
|
export declare const NavBarPopoverButton: React.FC<NavBarPopoverButtonProps>;
|