@vuu-ui/vuu-layout 0.8.22 → 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,3 +0,0 @@
1
- export declare const getIndexOfItem: (container: HTMLElement | null, query: string) => number;
2
- export declare const getIndexOfSelectedTab: (container: HTMLElement | null) => number;
3
- export declare const getIndexOfEditedItem: (container: HTMLElement | null) => number;
@@ -1,32 +0,0 @@
1
- import { orientationType } from "@vuu-ui/vuu-utils";
2
- import { FocusEvent, FocusEventHandler, KeyboardEvent, MouseEvent as ReactMouseEvent, MouseEventHandler, RefObject } from "react";
3
- import { NavigationOutOfBoundsHandler } from "./Toolbar";
4
- import { PopupCloseCallback } from "@vuu-ui/vuu-popups";
5
- export interface ContainerNavigationProps {
6
- onBlur: FocusEventHandler;
7
- onFocus: FocusEventHandler;
8
- onMouseDownCapture: MouseEventHandler;
9
- onMouseLeave: MouseEventHandler;
10
- }
11
- interface ToolbarNavigationHookProps {
12
- containerRef: RefObject<HTMLElement>;
13
- defaultHighlightedIdx?: number;
14
- highlightedIdx?: number;
15
- onNavigateOutOfBounds?: NavigationOutOfBoundsHandler;
16
- orientation: orientationType;
17
- }
18
- interface ToolbarNavigationHookResult {
19
- containerProps: ContainerNavigationProps;
20
- focusableIdx: number;
21
- highlightedIdx: number;
22
- focusItem: (itemIndex: number, immediateFocus?: boolean, withKeyboard?: boolean, delay?: number) => void;
23
- focusVisible: number;
24
- focusIsWithinComponent: boolean;
25
- onClick: (evt: ReactMouseEvent, tabIndex: number) => void;
26
- onFocus: (evt: FocusEvent<HTMLElement>) => void;
27
- onKeyDown: (evt: KeyboardEvent) => void;
28
- onOverflowMenuClose?: PopupCloseCallback;
29
- setHighlightedIdx: (highlightedIndex: number) => void;
30
- }
31
- export declare const useKeyboardNavigation: ({ containerRef, defaultHighlightedIdx, highlightedIdx: highlightedIdxProp, onNavigateOutOfBounds, orientation, }: ToolbarNavigationHookProps) => ToolbarNavigationHookResult;
32
- export {};
@@ -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[];