@deadragdoll/reactnu 0.1.56 → 0.1.73
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/MainMenu/MainMenu.types.d.ts +8 -1
- package/dist/components/MainMenu/internals/MainMenuSubmenuShell.d.ts +7 -0
- package/dist/components/Spacer/Spacer.d.ts +7 -0
- package/dist/components/Spacer/index.d.ts +1 -0
- package/dist/components/ToolBar/ToolBar.d.ts +6 -2
- package/dist/index.cjs +894 -809
- package/dist/index.d.ts +1 -0
- package/dist/index.js +645 -562
- package/dist/styles.css +80 -9
- package/dist/windowing/AppBarItem.d.ts +1 -1
- package/docs/API_REFERENCE.md +2 -0
- package/docs/COMPONENT_INDEX.md +1 -0
- package/docs/MainMenu.md +11 -1
- package/docs/PopupMenu.md +2 -0
- package/docs/Spacer.md +41 -0
- package/docs/StatusBarItem.md +1 -0
- package/docs/TOKEN_CHECKLIST.md +9 -0
- package/docs/ToolBar.md +15 -2
- package/package.json +1 -1
|
@@ -10,6 +10,12 @@ export type MainMenuDivider = {
|
|
|
10
10
|
id: string;
|
|
11
11
|
type: "divider";
|
|
12
12
|
};
|
|
13
|
+
/** Flexible root-menu space that pushes following menu items to the end. */
|
|
14
|
+
export type MainMenuSpacer = {
|
|
15
|
+
hidden?: boolean;
|
|
16
|
+
id: string;
|
|
17
|
+
type: "spacer";
|
|
18
|
+
};
|
|
13
19
|
export type MainMenuItem = MainMenuFlags & {
|
|
14
20
|
id: string;
|
|
15
21
|
/** Decorative mark shown before the item label in popup menus. */
|
|
@@ -21,6 +27,7 @@ export type MainMenuItem = MainMenuFlags & {
|
|
|
21
27
|
text: string;
|
|
22
28
|
type?: "item";
|
|
23
29
|
};
|
|
24
|
-
export type MainMenuNode = MainMenuItem | MainMenuDivider;
|
|
30
|
+
export type MainMenuNode = MainMenuItem | MainMenuDivider | MainMenuSpacer;
|
|
25
31
|
export declare function isMainMenuDivider(item: MainMenuNode): item is MainMenuDivider;
|
|
32
|
+
export declare function isMainMenuSpacer(item: MainMenuNode): item is MainMenuSpacer;
|
|
26
33
|
export declare function isMainMenuItem(item: MainMenuNode): item is MainMenuItem;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
type MainMenuSubmenuShellProps = PropsWithChildren<{
|
|
3
|
+
placement: "root" | "submenu";
|
|
4
|
+
}>;
|
|
5
|
+
/** Chooses the viewport-facing side only when the default right opening clips. */
|
|
6
|
+
export declare function MainMenuSubmenuShell({ children, placement }: MainMenuSubmenuShellProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
export type SpacerProps = Omit<HTMLAttributes<HTMLSpanElement>, "children">;
|
|
3
|
+
/**
|
|
4
|
+
* Flexible, decorative space for a horizontal or vertical flex layout.
|
|
5
|
+
* Place it before controls that should move to the opposite edge.
|
|
6
|
+
*/
|
|
7
|
+
export declare function Spacer({ className, ...props }: SpacerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Spacer";
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
1
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
import { SlotCustomizationProps } from "../_shared/slotProps";
|
|
3
3
|
import { CommandButtonProps } from "../CommandButton/CommandButton";
|
|
4
4
|
import { MainMenuItem, MainMenuNode } from "../MainMenu/MainMenu.types";
|
|
5
5
|
export type ToolBarProps = HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
/** Static decorative or informative content before the tool controls. */
|
|
7
|
+
startContent?: ReactNode;
|
|
8
|
+
/** Static decorative or informative content after the tool controls. */
|
|
9
|
+
endContent?: ReactNode;
|
|
6
10
|
fill?: boolean;
|
|
7
11
|
slotClassNames?: SlotCustomizationProps<"root">["slotClassNames"];
|
|
8
12
|
slotStyles?: SlotCustomizationProps<"root">["slotStyles"];
|
|
@@ -19,7 +23,7 @@ export type ToolDropButtonProps = ToolButtonProps & {
|
|
|
19
23
|
onMenuItemSelect?: (item: MainMenuItem) => void;
|
|
20
24
|
uncheckedShape?: "box" | "none";
|
|
21
25
|
};
|
|
22
|
-
export declare function ToolBar({ children, className, fill, slotClassNames, slotStyles, wrap, ...props }: ToolBarProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function ToolBar({ children, className, endContent, fill, slotClassNames, slotStyles, startContent, wrap, ...props }: ToolBarProps): import("react/jsx-runtime").JSX.Element;
|
|
23
27
|
export declare function ToolButton({ className, slotClassNames, slotStyles, ...props }: ToolButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
24
28
|
export declare function ToolDropButton({ className, menuItems, onMenuItemSelect, slotClassNames, slotStyles, uncheckedShape, ...props }: ToolDropButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
25
29
|
export declare function ToolSeparator({ className, ...props }: ToolSeparatorProps): import("react/jsx-runtime").JSX.Element;
|