@voxel51/voodo 0.0.38 → 0.0.40
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/NOTICE +37 -0
- package/README.md +24 -0
- package/dist/components/ActivityToast/ActivityToast.d.ts +5 -4
- package/dist/components/ActivityToast/ActivityToast.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +6 -5
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Card/RichCard.d.ts +4 -4
- package/dist/components/Card/RichCard.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Clickable/Clickable.d.ts +1 -1
- package/dist/components/Datepicker/DatepickerIconButton.d.ts +3 -3
- package/dist/components/Datepicker/DatepickerIconButton.d.ts.map +1 -1
- package/dist/components/Datepicker/DatepickerInput.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/components/Dropdown/DropdownTrigger.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +2 -2
- package/dist/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/components/Icons/DragHandle.d.ts +1 -1
- package/dist/components/Icons/DragHandle.d.ts.map +1 -1
- package/dist/components/Icons/IconBase.d.ts +30 -0
- package/dist/components/Icons/IconBase.d.ts.map +1 -0
- package/dist/components/Icons/IconWrapper.d.ts +5 -5
- package/dist/components/Icons/IconWrapper.d.ts.map +1 -1
- package/dist/components/Icons/icons.d.ts +312 -0
- package/dist/components/Icons/icons.d.ts.map +1 -0
- package/dist/components/Icons/index.d.ts +2 -1
- package/dist/components/Icons/index.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +4 -4
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/InputIcon.d.ts +4 -3
- package/dist/components/Input/InputIcon.d.ts.map +1 -1
- package/dist/components/ListItem/ListItem.d.ts +1 -1
- package/dist/components/Menu/MenuCheckItem.d.ts.map +1 -1
- package/dist/components/Menu/MenuIconTextItem.d.ts +3 -4
- package/dist/components/Menu/MenuIconTextItem.d.ts.map +1 -1
- package/dist/components/Menu/MenuSectionTitle.d.ts +1 -1
- package/dist/components/Menu/styles.d.ts +1 -1
- package/dist/components/Pill/Pill.d.ts +3 -2
- package/dist/components/Pill/Pill.d.ts.map +1 -1
- package/dist/components/RichButton/RichButton.d.ts +3 -3
- package/dist/components/RichButton/RichButton.d.ts.map +1 -1
- package/dist/components/RichList/RichList.d.ts +3 -3
- package/dist/components/Select/Option.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.d.ts +0 -2
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +5 -4
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +3 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tree/TreeBody.d.ts +37 -0
- package/dist/components/Tree/TreeBody.d.ts.map +1 -0
- package/dist/components/{TreeSelect/TreeSelectNode.d.ts → Tree/TreeItem.d.ts} +7 -6
- package/dist/components/Tree/TreeItem.d.ts.map +1 -0
- package/dist/components/{TreeSelect/TreeSelectSearchInput.d.ts → Tree/TreeSearchInput.d.ts} +5 -5
- package/dist/components/Tree/TreeSearchInput.d.ts.map +1 -0
- package/dist/components/Tree/TreeSelect.d.ts.map +1 -0
- package/dist/components/{TreeSelect → Tree}/TreeSelectPanel.d.ts +8 -1
- package/dist/components/Tree/TreeSelectPanel.d.ts.map +1 -0
- package/dist/components/Tree/TreeSelectTrigger.d.ts.map +1 -0
- package/dist/components/Tree/TreeView.d.ts +32 -0
- package/dist/components/Tree/TreeView.d.ts.map +1 -0
- package/dist/components/Tree/index.d.ts +5 -0
- package/dist/components/Tree/index.d.ts.map +1 -0
- package/dist/components/{TreeSelect → Tree}/tree.d.ts +1 -1
- package/dist/components/Tree/tree.d.ts.map +1 -0
- package/dist/components/{TreeSelect → Tree}/types.d.ts +99 -34
- package/dist/components/Tree/types.d.ts.map +1 -0
- package/dist/{util → components/Tree}/useTree.d.ts +13 -6
- package/dist/components/Tree/useTree.d.ts.map +1 -0
- package/dist/components/Tree/useTreeViewState.d.ts +59 -0
- package/dist/components/Tree/useTreeViewState.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3381 -3019
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/voodo.css +1 -1
- package/package.json +5 -2
- package/dist/components/Icons/Icon.d.ts +0 -37
- package/dist/components/Icons/Icon.d.ts.map +0 -1
- package/dist/components/TreeSelect/TreeSelect.d.ts.map +0 -1
- package/dist/components/TreeSelect/TreeSelectNode.d.ts.map +0 -1
- package/dist/components/TreeSelect/TreeSelectPanel.d.ts.map +0 -1
- package/dist/components/TreeSelect/TreeSelectSearchInput.d.ts.map +0 -1
- package/dist/components/TreeSelect/TreeSelectTrigger.d.ts.map +0 -1
- package/dist/components/TreeSelect/index.d.ts +0 -4
- package/dist/components/TreeSelect/index.d.ts.map +0 -1
- package/dist/components/TreeSelect/tree.d.ts.map +0 -1
- package/dist/components/TreeSelect/types.d.ts.map +0 -1
- package/dist/types/icons.d.ts +0 -104
- package/dist/types/icons.d.ts.map +0 -1
- package/dist/util/useTree.d.ts.map +0 -1
- /package/dist/components/{TreeSelect → Tree}/TreeSelect.d.ts +0 -0
- /package/dist/components/{TreeSelect → Tree}/TreeSelectTrigger.d.ts +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IconProps } from '../Icons';
|
|
3
|
+
import { Anchor, Variant } from '../../types';
|
|
3
4
|
type ToastVariant = Exclude<Variant, Variant.Borderless>;
|
|
4
5
|
export interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
5
6
|
action?: ReactNode;
|
|
6
7
|
anchor?: Anchor;
|
|
7
8
|
description?: ReactNode;
|
|
8
|
-
icon?: FC
|
|
9
|
+
icon?: FC<IconProps>;
|
|
9
10
|
open?: boolean;
|
|
10
11
|
title?: ReactNode;
|
|
11
12
|
variant?: ToastVariant;
|
|
@@ -25,7 +26,7 @@ export interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"
|
|
|
25
26
|
* open={open}
|
|
26
27
|
* title="Message sent"
|
|
27
28
|
* description="You will be notified when the recipient opens your message"
|
|
28
|
-
* icon={
|
|
29
|
+
* icon={CheckIcon}
|
|
29
30
|
* action={
|
|
30
31
|
* <Button onClick={() => setOpen(false)}>
|
|
31
32
|
* Close
|
|
@@ -41,7 +42,7 @@ export interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"
|
|
|
41
42
|
* @param anchor The location in the viewport to anchor the toast. See {@link Anchor}.
|
|
42
43
|
* @param className `class` overrides to apply to the component.
|
|
43
44
|
* @param description Optional content to display in the "description" slot; this should be considered secondary content.
|
|
44
|
-
* @param icon An optional
|
|
45
|
+
* @param icon An optional icon component to display in the "icon" slot.
|
|
45
46
|
* @param open If `true`, the toast will be visible; otherwise it will be hidden.
|
|
46
47
|
* @param title Optional content to display in the "title" slot; this should be considered the primary content.
|
|
47
48
|
* @param variant The variant of the toast; this controls icon styling. See {@link Variant}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,oBAAoB,CAAC;AAMjE,OAAO,EAEL,MAAM,EAUN,OAAO,EACR,MAAM,SAAS,CAAC;AAGjB,KAAK,YAAY,GAAG,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;AAEzD,MAAM,WAAW,UAAW,SAAQ,IAAI,CACtC,cAAc,CAAC,cAAc,CAAC,EAC9B,OAAO,CACR;IACC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CA0ChC,CAAC"}
|
|
@@ -22,7 +22,9 @@ export interface TooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, "cont
|
|
|
22
22
|
* @param content The content of the tooltip.
|
|
23
23
|
* @param children The content which this component wraps; this acts as the element anchor and the hover trigger.
|
|
24
24
|
* @param className `class` overrides to apply to the tooltip panel.
|
|
25
|
-
* @param portal If `true`, renders the tooltip via a React portal
|
|
25
|
+
* @param portal If `true`, renders the tooltip via a React portal into `document.body` with an
|
|
26
|
+
* above-modal z-index, so it escapes ancestor stacking contexts (e.g. inside modals). The default
|
|
27
|
+
* tooltip already uses fixed positioning, so it is never clipped by overflow-hidden/scroll ancestors.
|
|
26
28
|
* @param shadow The shadow to apply to the tooltip. See {@link Shadow}.
|
|
27
29
|
* @param wrapperClassName Additional classes to apply to the outer wrapper element.
|
|
28
30
|
* @param props Additional HTML properties to apply to the component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,EAAE,EACP,KAAK,cAAc,EACnB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAKf,OAAO,EACL,MAAM,EAMN,MAAM,EAKP,MAAM,SAAS,CAAC;AAGjB,MAAM,MAAM,aAAa,GAAG,OAAO,CACjC,MAAM,EACN,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CACxD,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,IAAI,CACxC,cAAc,CAAC,cAAc,CAAC,EAC9B,SAAS,CACV;IACC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,EAAE,EACP,KAAK,cAAc,EACnB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAKf,OAAO,EACL,MAAM,EAMN,MAAM,EAKP,MAAM,SAAS,CAAC;AAGjB,MAAM,MAAM,aAAa,GAAG,OAAO,CACjC,MAAM,EACN,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CACxD,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,IAAI,CACxC,cAAc,CAAC,cAAc,CAAC,EAC9B,SAAS,CACV;IACC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAkED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAoFpC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FC, RefObject } from 'react';
|
|
2
|
+
import { RenderTreeLabel } from './types';
|
|
3
|
+
import { UseTreeReturn } from './useTree';
|
|
4
|
+
export interface TreeBodyProps {
|
|
5
|
+
tree: UseTreeReturn;
|
|
6
|
+
query: string;
|
|
7
|
+
onQueryChange: (q: string) => void;
|
|
8
|
+
debouncedQuery: string;
|
|
9
|
+
filteredTree: boolean;
|
|
10
|
+
multiSelect?: boolean;
|
|
11
|
+
onRetryLoad?: (path: string) => void;
|
|
12
|
+
searchInputRef: RefObject<HTMLInputElement | null>;
|
|
13
|
+
/** When false, the search input is hidden and the wrapper becomes the keyboard focus target. */
|
|
14
|
+
showSearch?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* When `true`, hovering the tree focuses the search input (or wrapper)
|
|
17
|
+
* so keyboard navigation works without a click. Only safe inside a
|
|
18
|
+
* transient surface like the TreeSelect dropdown — an embedded TreeView
|
|
19
|
+
* must not steal focus from the rest of the page. When `false`, hover
|
|
20
|
+
* only retargets focus that is already inside the tree.
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
focusOnHover?: boolean;
|
|
24
|
+
/** Custom label renderer forwarded to each {@link TreeItem}. */
|
|
25
|
+
renderLabel?: RenderTreeLabel;
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Shared tree rendering body: virtualizer + optional search input + empty state.
|
|
30
|
+
*
|
|
31
|
+
* Owns no chrome (border, shadow, z-index, portal). The parent
|
|
32
|
+
* (`TreeSelectPanel` or `TreeView`) provides that.
|
|
33
|
+
*
|
|
34
|
+
* @internal Shared by TreeSelectPanel and TreeView.
|
|
35
|
+
*/
|
|
36
|
+
export declare const TreeBody: FC<TreeBodyProps>;
|
|
37
|
+
//# sourceMappingURL=TreeBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeBody.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeBody.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAkC,MAAM,OAAO,CAAC;AAShF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAK/C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,cAAc,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACnD,gGAAgG;IAChG,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gEAAgE;IAChE,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA2HtC,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface
|
|
2
|
+
import { RenderTreeLabel, ResolvedNode } from './types';
|
|
3
|
+
import { UseTreeReturn } from './useTree';
|
|
4
|
+
export interface TreeItemViewProps {
|
|
5
5
|
resolved: ResolvedNode;
|
|
6
6
|
tree: UseTreeReturn;
|
|
7
7
|
query?: string;
|
|
8
8
|
multiSelect?: boolean;
|
|
9
9
|
onRetryLoad?: (path: string) => void;
|
|
10
|
+
renderLabel?: RenderTreeLabel;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* Renders a single node row. The parent renders a flat list of all visible
|
|
@@ -15,7 +16,7 @@ export interface TreeSelectNodeProps {
|
|
|
15
16
|
* All state is driven by the `tree` hook — this component is purely
|
|
16
17
|
* presentational.
|
|
17
18
|
*
|
|
18
|
-
* @internal
|
|
19
|
+
* @internal Shared by TreeSelectPanel and TreeBody.
|
|
19
20
|
*/
|
|
20
|
-
export declare const
|
|
21
|
-
//# sourceMappingURL=
|
|
21
|
+
export declare const TreeItem: FC<TreeItemViewProps>;
|
|
22
|
+
//# sourceMappingURL=TreeItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeItem.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AA0BvC,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAI/C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAqBD;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,iBAAiB,CA0K1C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, KeyboardEvent, Ref } from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface TreeSearchInputProps {
|
|
3
3
|
value: string;
|
|
4
4
|
onChange: (value: string) => void;
|
|
5
5
|
onKeyDown: (e: KeyboardEvent) => void;
|
|
@@ -7,10 +7,10 @@ export interface TreeSelectSearchInputProps {
|
|
|
7
7
|
activeDescendantId?: string;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Sticky search bar rendered at the top of
|
|
10
|
+
* Sticky search bar rendered at the top of a tree panel.
|
|
11
11
|
* Owns the magnifier icon, text input, and clear button.
|
|
12
12
|
*
|
|
13
|
-
* @internal
|
|
13
|
+
* @internal Shared by TreeSelectPanel and TreeBody.
|
|
14
14
|
*/
|
|
15
|
-
export declare const
|
|
16
|
-
//# sourceMappingURL=
|
|
15
|
+
export declare const TreeSearchInput: FC<TreeSearchInputProps>;
|
|
16
|
+
//# sourceMappingURL=TreeSearchInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeSearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeSearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,aAAa,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAgB9D,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IACtC,QAAQ,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA6DpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeSelect.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeSelect.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,EAAE,EAAoC,MAAM,OAAO,CAAC;AAYlE,OAAO,KAAK,EAAY,eAAe,EAAE,MAAM,SAAS,CAAC;AAYzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA4M1C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, FC, RefObject } from 'react';
|
|
2
2
|
import { ZIndex } from '../../types';
|
|
3
|
-
import { UseTreeReturn } from '
|
|
3
|
+
import { UseTreeReturn } from './useTree';
|
|
4
4
|
export interface TreeSelectPanelProps {
|
|
5
5
|
floatingRef: (node: HTMLElement | null) => void;
|
|
6
6
|
floatingStyles: CSSProperties;
|
|
@@ -17,5 +17,12 @@ export interface TreeSelectPanelProps {
|
|
|
17
17
|
onRetryLoad?: (path: string) => void;
|
|
18
18
|
panelMaxHeight?: string;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Floating panel for TreeSelect. Provides the dropdown shell (border,
|
|
22
|
+
* shadow, z-index, portal, max-height) and delegates the tree body
|
|
23
|
+
* rendering to {@link TreeBody}.
|
|
24
|
+
*
|
|
25
|
+
* @internal For use by TreeSelect.
|
|
26
|
+
*/
|
|
20
27
|
export declare const TreeSelectPanel: FC<TreeSelectPanelProps>;
|
|
21
28
|
//# sourceMappingURL=TreeSelectPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeSelectPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeSelectPanel.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,EAAE,E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B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAC;IACjD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AA2DD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAsGxD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TreeViewProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* A tree-shaped navigation or selection component. Drop it into a sidebar,
|
|
5
|
+
* panel, or inline layout.
|
|
6
|
+
*
|
|
7
|
+
* Supports three modes via the `selectable` prop:
|
|
8
|
+
* - **Navigate (default)**: clicking a leaf fires `onChange` with the
|
|
9
|
+
* path; clicking a branch toggles expansion. No selection state is
|
|
10
|
+
* tracked, no checkboxes, no "selected" highlight.
|
|
11
|
+
* - **Single-select** (`selectable={true}`): same as TreeSelect's
|
|
12
|
+
* single-select but always visible.
|
|
13
|
+
* - **Multi-select** (`selectable={true} multiSelect={true}`): same as
|
|
14
|
+
* TreeSelect's multi-select but always visible.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <TreeView root={tree} onChange={(path) => navigate(path)} />
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <TreeView
|
|
24
|
+
* root={tree}
|
|
25
|
+
* selectable
|
|
26
|
+
* value={selected}
|
|
27
|
+
* onChange={(path) => setSelected(path ?? undefined)}
|
|
28
|
+
* />
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const TreeView: FC<TreeViewProps>;
|
|
32
|
+
//# sourceMappingURL=TreeView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeView.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAe,MAAM,OAAO,CAAC;AAO7C,OAAO,KAAK,EAAY,aAAa,EAAE,MAAM,SAAS,CAAC;AAGvD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAqFtC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { TreeSelect } from './TreeSelect';
|
|
2
|
+
export { TreeView } from './TreeView';
|
|
3
|
+
export type { RenderTreeLabel, TreeNode, TreePath, TreeSelectProps, TreeViewProps, } from './types';
|
|
4
|
+
export { formatBreadcrumb, getNodeByPath } from './tree';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EACV,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -76,7 +76,7 @@ export declare function getParentPath(path: string): string | undefined;
|
|
|
76
76
|
* Depth-first walk of a resolved tree returning nodes in DOM render order.
|
|
77
77
|
* Skips the root itself (callers render `root.children`). For each child,
|
|
78
78
|
* includes the child, then if `isOpen(child.path)` returns true, recurses
|
|
79
|
-
* into its children. This mirrors exactly what `
|
|
79
|
+
* into its children. This mirrors exactly what `TreeItem` renders.
|
|
80
80
|
*/
|
|
81
81
|
export declare function flattenVisible(root: ResolvedNode, isOpen: (path: string) => boolean): ResolvedNode[];
|
|
82
82
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/tree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AA8BhE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAEvD;AAcD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,UAAQ,GAAG,OAAO,CAIxE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,QAAQ,EACd,OAAO,GAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAO,EACtC,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,GACvC,YAAY,CAyCd;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,MAAM,GACZ;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAAE,GAAG,IAAI,CAyE5D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,QAAQ,GACb,QAAQ,GAAG,SAAS,CAatB;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,MAAM,GACnB,QAAQ,GAAG,SAAS,CAEtB;AAWD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAG9D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,YAAY,EAClB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAChC,YAAY,EAAE,CAiBhB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,YAAY,GAAG,GAAG,CAAC,MAAM,CAAC,CAiBlE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAEvD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { SelectAnchor } from '../Select';
|
|
3
3
|
import { ZIndex } from '../../types';
|
|
4
4
|
/**
|
|
@@ -56,9 +56,9 @@ export interface ResolvedNode {
|
|
|
56
56
|
setsize: number;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Data-layer props shared by all tree consumers (`TreeSelect` and `TreeView`).
|
|
60
60
|
*/
|
|
61
|
-
interface
|
|
61
|
+
export interface TreeDataProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
62
62
|
/** The root node of the tree. */
|
|
63
63
|
root: TreeNode;
|
|
64
64
|
/**
|
|
@@ -67,6 +67,31 @@ interface TreeSelectBaseProps extends Omit<HTMLAttributes<HTMLDivElement>, "onCh
|
|
|
67
67
|
* @default false
|
|
68
68
|
*/
|
|
69
69
|
leavesOnly?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Fetches children for a lazy branch (a node whose `values` is an empty
|
|
72
|
+
* array). Called exactly once per lazy branch on first user-initiated
|
|
73
|
+
* expand. Receives a {@link TreePath} of raw node names.
|
|
74
|
+
* The returned children are spliced into the tree and cached for
|
|
75
|
+
* the lifetime of `root`. Errors set the branch to an "error" state with
|
|
76
|
+
* an inline retry control.
|
|
77
|
+
*/
|
|
78
|
+
loadChildren?: (path: TreePath) => Promise<TreeNode[]>;
|
|
79
|
+
/**
|
|
80
|
+
* Branches to expand when the component first renders (or when the
|
|
81
|
+
* TreeSelect panel first opens). These paths are user-collapsible and
|
|
82
|
+
* restored on panel re-open (TreeSelect) or component remount (TreeView).
|
|
83
|
+
*
|
|
84
|
+
* - `TreePath[]` — explicit branch paths (each a {@link TreePath} of
|
|
85
|
+
* raw node names) to start expanded.
|
|
86
|
+
* - `true` — expand every branch in the tree.
|
|
87
|
+
* - `false` / `undefined` — expand nothing (default).
|
|
88
|
+
*/
|
|
89
|
+
defaultExpanded?: readonly TreePath[] | boolean;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* UI props specific to TreeSelect (trigger + floating panel).
|
|
93
|
+
*/
|
|
94
|
+
interface TreeSelectUIProps {
|
|
70
95
|
/** If `true`, the entire component is disabled. */
|
|
71
96
|
disabled?: boolean;
|
|
72
97
|
/** Placeholder text shown in the input when no value is selected. */
|
|
@@ -96,32 +121,10 @@ interface TreeSelectBaseProps extends Omit<HTMLAttributes<HTMLDivElement>, "onCh
|
|
|
96
121
|
* When omitted, the node name is shown (e.g. `"Civic"`).
|
|
97
122
|
*/
|
|
98
123
|
displayValue?: (path: TreePath, node: TreeNode) => string;
|
|
99
|
-
/**
|
|
100
|
-
* Fetches children for a lazy branch (a node whose `values` is an empty
|
|
101
|
-
* array). Called exactly once per lazy branch on first user-initiated
|
|
102
|
-
* expand. Receives a {@link TreePath} of raw node names.
|
|
103
|
-
* The returned children are spliced into the tree and cached for
|
|
104
|
-
* the lifetime of `root`. Errors set the branch to an "error" state with
|
|
105
|
-
* an inline retry control.
|
|
106
|
-
*/
|
|
107
|
-
loadChildren?: (path: TreePath) => Promise<TreeNode[]>;
|
|
108
|
-
/**
|
|
109
|
-
* Branches to expand when the panel first opens. Unlike `forceOpenPaths`
|
|
110
|
-
* (which prevents collapsing), these paths are user-collapsible and
|
|
111
|
-
* restored on panel re-open.
|
|
112
|
-
*
|
|
113
|
-
* - `TreePath[]` — explicit branch paths (each a {@link TreePath} of
|
|
114
|
-
* raw node names) to start expanded.
|
|
115
|
-
* - `true` — expand every branch in the tree.
|
|
116
|
-
* - `false` / `undefined` — expand nothing (default).
|
|
117
|
-
*/
|
|
118
|
-
defaultExpanded?: readonly TreePath[] | boolean;
|
|
119
124
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
*/
|
|
124
|
-
interface TreeSelectSingleProps extends TreeSelectBaseProps {
|
|
125
|
+
interface TreeSelectBaseProps extends TreeDataProps, TreeSelectUIProps {
|
|
126
|
+
}
|
|
127
|
+
interface TreeSingleSelection {
|
|
125
128
|
multiSelect?: false;
|
|
126
129
|
/**
|
|
127
130
|
* Currently selected node path as a {@link TreePath} — an ordered array
|
|
@@ -134,11 +137,7 @@ interface TreeSelectSingleProps extends TreeSelectBaseProps {
|
|
|
134
137
|
*/
|
|
135
138
|
onChange?: (path: TreePath | null) => void;
|
|
136
139
|
}
|
|
137
|
-
|
|
138
|
-
* Multi-select mode. `value` is an array of {@link TreePath} entries and
|
|
139
|
-
* `onChange` fires with the full updated array on every toggle.
|
|
140
|
-
*/
|
|
141
|
-
interface TreeSelectMultiProps extends TreeSelectBaseProps {
|
|
140
|
+
interface TreeMultiSelection {
|
|
142
141
|
multiSelect: true;
|
|
143
142
|
/**
|
|
144
143
|
* Currently selected node paths. Each entry is a {@link TreePath} —
|
|
@@ -158,6 +157,72 @@ interface TreeSelectMultiProps extends TreeSelectBaseProps {
|
|
|
158
157
|
* - `multiSelect?: false` (default) — single-select; `value` is `TreePath`, `onChange` fires `TreePath | null`.
|
|
159
158
|
* - `multiSelect: true` — multi-select; `value` is `readonly TreePath[]`, `onChange` fires `TreePath[]`.
|
|
160
159
|
*/
|
|
161
|
-
export type TreeSelectProps =
|
|
160
|
+
export type TreeSelectProps = (TreeSelectBaseProps & TreeSingleSelection) | (TreeSelectBaseProps & TreeMultiSelection);
|
|
161
|
+
/**
|
|
162
|
+
* Custom renderer for a row's label content in {@link TreeView}.
|
|
163
|
+
*
|
|
164
|
+
* Receives the source node, its {@link TreePath}, and the default label
|
|
165
|
+
* element (the node name with search-match highlighting applied). The
|
|
166
|
+
* returned content replaces only the name text — chevron, checkbox, and
|
|
167
|
+
* `description` rendering are unaffected. The custom content is wrapped in
|
|
168
|
+
* a flex-1 container, so trailing content (e.g. a count) can be
|
|
169
|
+
* right-aligned with `justify-between`.
|
|
170
|
+
*/
|
|
171
|
+
export type RenderTreeLabel = (node: TreeNode, path: TreePath, defaultLabel: ReactNode) => ReactNode;
|
|
172
|
+
interface TreeViewSharedProps extends TreeDataProps {
|
|
173
|
+
/**
|
|
174
|
+
* Custom renderer for each row's label content. See
|
|
175
|
+
* {@link RenderTreeLabel}. When omitted, the node name is rendered with
|
|
176
|
+
* search-match highlighting.
|
|
177
|
+
*/
|
|
178
|
+
renderLabel?: RenderTreeLabel;
|
|
179
|
+
/** Show the built-in search input. @default true */
|
|
180
|
+
showSearch?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Controlled search query. When provided, `onQueryChange` is required
|
|
183
|
+
* and the built-in search input is hidden — the consumer renders their
|
|
184
|
+
* own search UI.
|
|
185
|
+
*/
|
|
186
|
+
query?: string;
|
|
187
|
+
/** Required when `query` is controlled. */
|
|
188
|
+
onQueryChange?: (q: string) => void;
|
|
189
|
+
maxHeight?: string;
|
|
190
|
+
className?: string;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Navigation mode (default). `onChange` fires per leaf click; no value is
|
|
194
|
+
* tracked, no checkboxes, no "selected" highlight. Clicking a branch
|
|
195
|
+
* toggles its expansion.
|
|
196
|
+
*/
|
|
197
|
+
interface TreeViewNavigateProps extends TreeViewSharedProps {
|
|
198
|
+
selectable?: false;
|
|
199
|
+
multiSelect?: never;
|
|
200
|
+
value?: never;
|
|
201
|
+
/** Fires when the user clicks a selectable node. */
|
|
202
|
+
onChange?: (path: TreePath) => void;
|
|
203
|
+
}
|
|
204
|
+
/** Single-select mode. */
|
|
205
|
+
interface TreeViewSingleSelectProps extends TreeViewSharedProps {
|
|
206
|
+
selectable: true;
|
|
207
|
+
multiSelect?: false;
|
|
208
|
+
value?: TreePath;
|
|
209
|
+
onChange?: (path: TreePath | null) => void;
|
|
210
|
+
}
|
|
211
|
+
/** Multi-select mode. */
|
|
212
|
+
interface TreeViewMultiSelectProps extends TreeViewSharedProps {
|
|
213
|
+
selectable: true;
|
|
214
|
+
multiSelect: true;
|
|
215
|
+
value?: readonly TreePath[];
|
|
216
|
+
onChange?: (paths: TreePath[]) => void;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Props for {@link TreeView}.
|
|
220
|
+
*
|
|
221
|
+
* Discriminated on `selectable` and `multiSelect`:
|
|
222
|
+
* - `selectable?: false` (default) — navigation mode; `onChange` fires `TreePath` per click, no selection state tracked.
|
|
223
|
+
* - `selectable: true, multiSelect?: false` — single-select; `value` is `TreePath`, `onChange` fires `TreePath | null`.
|
|
224
|
+
* - `selectable: true, multiSelect: true` — multi-select; `value` is `readonly TreePath[]`, `onChange` fires `TreePath[]`.
|
|
225
|
+
*/
|
|
226
|
+
export type TreeViewProps = TreeViewNavigateProps | TreeViewSingleSelectProps | TreeViewMultiSelectProps;
|
|
162
227
|
export {};
|
|
163
228
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC;;;;;;GAMG;AACH,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OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,aAAa,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,UAAU,qBAAsB,SAAQ,mBAAmB;IACzD,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,oDAAoD;IACpD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACrC;AAED,0BAA0B;AAC1B,UAAU,yBAA0B,SAAQ,mBAAmB;IAC7D,UAAU,EAAE,IAAI,CAAC;IACjB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;CAC5C;AAED,yBAAyB;AACzB,UAAU,wBAAyB,SAAQ,mBAAmB;IAC5D,UAAU,EAAE,IAAI,CAAC;IACjB,WAAW,EAAE,IAAI,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;CACxC;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GACrB,qBAAqB,GACrB,yBAAyB,GACzB,wBAAwB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KeyboardEvent } from 'react';
|
|
2
|
-
import { ResolvedNode } from '
|
|
2
|
+
import { ResolvedNode } from './types';
|
|
3
3
|
export interface UseTreeOptions {
|
|
4
4
|
/** Pre-resolved (and optionally pre-filtered) tree. */
|
|
5
5
|
tree: ResolvedNode;
|
|
@@ -115,12 +115,19 @@ export interface UseTreeReturn {
|
|
|
115
115
|
getLoadState: (path: string) => "loading" | "error" | undefined;
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
119
|
-
* keyboard navigation per WAI-ARIA treeview semantics, ARIA prop generation,
|
|
120
|
-
* and scroll-into-view. Owns no rendering or styling.
|
|
118
|
+
* **UI mechanics layer** — sits below {@link useTreeViewState} in the stack.
|
|
121
119
|
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
120
|
+
* Headless hook that manages pure interaction state: which branches are
|
|
121
|
+
* expanded, which node has the keyboard cursor (`activePath`), keyboard
|
|
122
|
+
* navigation per WAI-ARIA treeview semantics, ARIA prop generation, and
|
|
123
|
+
* scroll-into-view. Owns no data fetching, search, filtering, or selection
|
|
124
|
+
* values — it operates on a pre-resolved, pre-filtered `ResolvedNode` tree
|
|
125
|
+
* that the caller is responsible for producing.
|
|
126
|
+
*
|
|
127
|
+
* {@link useTreeViewState} calls this hook after handling search, debouncing,
|
|
128
|
+
* async `loadChildren`, and selection bookkeeping. Neither `TreeSelect` nor
|
|
129
|
+
* `TreeView` calls `useTree` directly — they receive its return value via
|
|
130
|
+
* `state.tree` from `useTreeViewState`.
|
|
124
131
|
*/
|
|
125
132
|
export declare function useTree(options: UseTreeOptions): UseTreeReturn;
|
|
126
133
|
//# sourceMappingURL=useTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTree.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/useTree.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAOnB,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAM5D,MAAM,WAAW,cAAc;IAC7B,uDAAuD;IACvD,IAAI,EAAE,YAAY,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;I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AAM,KAAK,MAAM,CAAC;IAChC,mEAAmE;IACnE,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IAClC,iDAAiD;IACjD,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACpC,4CAA4C;IAC5C,UAAU,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC;IAC5C,oEAAoE;IACpE,qBAAqB,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC;IACvD,2EAA2E;IAC3E,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;CACjE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,aAAa,CAkT9D"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { TreeNode, TreePath } from './types';
|
|
3
|
+
import { UseTreeReturn } from './useTree';
|
|
4
|
+
export interface UseTreeViewStateOptions {
|
|
5
|
+
root: TreeNode;
|
|
6
|
+
multiSelect?: boolean;
|
|
7
|
+
leavesOnly?: boolean;
|
|
8
|
+
defaultExpanded?: readonly TreePath[] | boolean;
|
|
9
|
+
loadChildren?: (path: TreePath) => Promise<TreeNode[]>;
|
|
10
|
+
value?: TreePath | readonly TreePath[];
|
|
11
|
+
onChange?: ((p: TreePath | null) => void) | ((p: TreePath[]) => void);
|
|
12
|
+
onEscape?: () => void;
|
|
13
|
+
onAfterSelect?: (internalPath: string) => void;
|
|
14
|
+
/**
|
|
15
|
+
* When provided, the hook treats query as controlled and skips
|
|
16
|
+
* internal query state. The consumer must also provide `onQueryChange`.
|
|
17
|
+
*/
|
|
18
|
+
query?: string;
|
|
19
|
+
/** Required when `query` is controlled. */
|
|
20
|
+
onQueryChange?: (q: string) => void;
|
|
21
|
+
scrollActiveIntoView?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* When `true`, single-select picks reset the search query. Correct for
|
|
24
|
+
* TreeSelect, where selecting closes the panel and the query is stale on
|
|
25
|
+
* re-open. Persistent consumers (TreeView) must leave this off: the tree
|
|
26
|
+
* stays on screen, so wiping the filter — and firing `onQueryChange("")`
|
|
27
|
+
* behind a controlled-query consumer's back — discards user state.
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
clearQueryOnSelect?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface UseTreeViewStateReturn {
|
|
33
|
+
tree: UseTreeReturn;
|
|
34
|
+
query: string;
|
|
35
|
+
setQuery: (q: string) => void;
|
|
36
|
+
debouncedQuery: string;
|
|
37
|
+
filteredTree: boolean;
|
|
38
|
+
onRetryLoad: (path: string) => void;
|
|
39
|
+
searchInputRef: RefObject<HTMLInputElement | null>;
|
|
40
|
+
clearSelection: () => void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* **Data layer** — sits above {@link useTree} in the stack.
|
|
44
|
+
*
|
|
45
|
+
* Shared data-layer hook for tree components. Manages:
|
|
46
|
+
* - Search query (internal or controlled) + 200ms debounce
|
|
47
|
+
* - Async `loadChildren` with loading/error state and retry
|
|
48
|
+
* - `buildResolvedTree` / `filterTreeForQuery` memoization
|
|
49
|
+
* - Selection logic (single/multi) with `toInternalPath` encoding
|
|
50
|
+
* - Wiring into {@link useTree} (the UI mechanics layer below)
|
|
51
|
+
*
|
|
52
|
+
* Consumed by both `TreeSelect` and `TreeView`. Each consumer composes
|
|
53
|
+
* its own UI around the returned `tree` and query state. Neither component
|
|
54
|
+
* calls `useTree` directly — they receive its return value via `state.tree`.
|
|
55
|
+
*
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
export declare function useTreeViewState(options: UseTreeViewStateOptions): UseTreeViewStateReturn;
|
|
59
|
+
//# sourceMappingURL=useTreeViewState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTree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