@vuu-ui/vuu-layout 0.8.22-debug → 0.8.23-debug

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,22 +0,0 @@
1
- import { SelectionStrategy, SpecialKeyMultipleSelection } from "@vuu-ui/vuu-ui-controls";
2
- import { MouseEvent, RefObject } from "react";
3
- export interface SelectionHookProps {
4
- containerRef: RefObject<HTMLElement>;
5
- defaultSelected?: number[];
6
- highlightedIdx: number;
7
- itemQuery: string;
8
- onSelectionChange?: (selectedIndices: number[]) => void;
9
- selected?: number[];
10
- selectionStrategy: SelectionStrategy | SpecialKeyMultipleSelection;
11
- }
12
- export interface ItemHandlers {
13
- onClick?: (e: MouseEvent, itemIndex: number) => void;
14
- onKeyDown?: (event: React.KeyboardEvent) => void;
15
- }
16
- export interface SelectionHookResult {
17
- activateItem: (tabIndex: number) => void;
18
- itemHandlers: ItemHandlers;
19
- isControlled: boolean;
20
- selected: number[];
21
- }
22
- export declare const useSelection: ({ containerRef, defaultSelected, highlightedIdx, itemQuery, onSelectionChange, selected: selectedProp, selectionStrategy, }: SelectionHookProps) => SelectionHookResult;
@@ -1,28 +0,0 @@
1
- import { KeyboardEvent, MouseEvent as ReactMouseEvent, RefObject } from "react";
2
- import { OverflowItem } from "../overflow-container";
3
- import { ToolbarProps } from "./Toolbar";
4
- export interface ToolbarHookProps extends Pick<ToolbarProps, "activeItemIndex" | "defaultActiveItemIndex" | "onActiveChange" | "onNavigateOutOfBounds">, Required<Pick<ToolbarProps, "orientation" | "selectionStrategy">> {
5
- containerRef: RefObject<HTMLElement>;
6
- itemQuery?: string;
7
- }
8
- export declare const useToolbar: ({ activeItemIndex: activeItemIndexProp, defaultActiveItemIndex, containerRef, itemQuery, onActiveChange, onNavigateOutOfBounds, orientation, selectionStrategy, }: ToolbarHookProps) => {
9
- activeItemIndex: number[];
10
- focusableIdx: number;
11
- focusVisible: number;
12
- containerProps: {
13
- onSwitchWrappedItemIntoView: (item: OverflowItem) => void;
14
- onBlur: import("react").FocusEventHandler<Element>;
15
- onFocus: import("react").FocusEventHandler<Element>;
16
- onMouseDownCapture: import("react").MouseEventHandler<Element>;
17
- onMouseLeave: import("react").MouseEventHandler<Element>;
18
- PopupMenuProps: {
19
- onKeyDown: (evt: KeyboardEvent) => void;
20
- onMenuClose: import("packages/vuu-popups/src").PopupCloseCallback | undefined;
21
- };
22
- };
23
- itemProps: {
24
- onClick: (evt: ReactMouseEvent<HTMLElement>) => void;
25
- onFocus: (evt: import("react").FocusEvent<HTMLElement, Element>) => void;
26
- onKeyDown: (evt: KeyboardEvent) => void;
27
- };
28
- };
@@ -1,2 +0,0 @@
1
- import { ReactElement, ReactNode } from "react";
2
- export declare const asReactElements: (children: ReactNode) => ReactElement[];