@lumx/vue 4.28.0-next.1 → 4.28.0-next.3

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.
@@ -5,7 +5,9 @@ import { CompositeHandle, CompositeType } from '@lumx/core/js/components/Composi
5
5
  * its items, sections, skeletons and state.
6
6
  *
7
7
  * Provided by `ListboxProvider` (standalone listbox) and by `Combobox.Provider` (the list registered on
8
- * the combobox, with `comboboxListId`), then re-provided by the list with its `type`, without `comboboxListId`.
8
+ * the combobox, with `comboboxListId`), then re-provided by the list with its `type` (and by a tree item with
9
+ * the next `level`), without `comboboxListId`. A standalone `TreeList` has no provider above it: it provides the
10
+ * first context itself.
9
11
  */
10
12
  export interface CompositeContextValue {
11
13
  /** The composite handle (null inside a combobox until a list registers). */
@@ -35,6 +37,6 @@ export declare function provideCompositeContext(value: CompositeContextValue): v
35
37
  export declare function useOptionalCompositeContext(): CompositeContextValue | undefined;
36
38
  /**
37
39
  * Access the composite context.
38
- * @throws Error outside a `ListboxProvider` or a `Combobox.Provider`.
40
+ * @throws Error outside a `ListboxProvider`, a `Combobox.Provider` or a standalone `TreeList`.
39
41
  */
40
42
  export declare function useCompositeContext(): CompositeContextValue;
@@ -4,15 +4,26 @@ import { CompositeHandle, CompositeOptions } from '@lumx/core/js/components/Comp
4
4
  export interface UseCompositeListOptions<H extends CompositeHandle> {
5
5
  /** The list element, mounted on the handle. */
6
6
  elementRef: Readonly<Ref<HTMLElement | null>>;
7
- /** Create the list handle (e.g. `setupListbox`) with the combobox list options. */
7
+ /** Create the list handle (e.g. `setupListbox`): with the combobox list options, or as a standalone list. */
8
8
  createList(options: CompositeOptions): H;
9
9
  /** Standalone list: the handle of the list provider above the list (e.g. `ListboxProvider`). */
10
- standaloneHandle: Readonly<Ref<H | null>>;
10
+ standaloneHandle?: Readonly<Ref<H | null>>;
11
+ /**
12
+ * Standalone list without a list provider (e.g. `TreeList`): the composable creates the handle with
13
+ * `createList` (and destroys it on unmount). `standaloneHandle` is then ignored.
14
+ */
15
+ createStandalone?: boolean;
16
+ /** Standalone list created by the composable: called on a selection. */
17
+ onSelect?(option: {
18
+ value: string;
19
+ }): void;
11
20
  }
12
21
  /** Result of {@link useCompositeList}. */
13
22
  export interface UseCompositeListResult<H extends CompositeHandle> {
14
23
  /** The list handle (null inside a combobox until the trigger mounts). */
15
24
  handle: Readonly<Ref<H | null>>;
25
+ /** The combobox list ID when the list is the combobox list (the trigger `aria-controls` it), else undefined. */
26
+ comboboxListId?: string;
16
27
  /** Whether the items are visible (standalone: always; combobox: while open). */
17
28
  isOpen: Readonly<Ref<boolean>>;
18
29
  /** Whether root skeletons are registered (`aria-busy` on the list). */
@@ -24,7 +35,7 @@ export interface UseCompositeListResult<H extends CompositeHandle> {
24
35
  * carries `comboboxListId`). Set on setup.
25
36
  * - Combobox list: attach the handle (linked to the trigger) when the combobox handle exists, then detach it on
26
37
  * unmount or when the combobox handle changes.
27
- * - Standalone list: the handle of the list provider.
38
+ * - Standalone list: the handle of the list provider, or a handle created on setup.
28
39
  * - Mount the list element on the handle.
29
40
  * - Replay the pending keyboard navigation after the items render on open.
30
41
  */
@@ -0,0 +1,98 @@
1
+ import { TreeListProps as UIProps, COMPONENT_NAME, CLASSNAME, DEFAULT_PROPS } from '@lumx/core/js/components/TreeList/TreeList';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ /**
4
+ * Props common to the single and multiple selection trees.
5
+ * The ARIA attributes (`aria-label`, `aria-labelledby`) are read from the attributes.
6
+ */
7
+ type BaseTreeListProps = VueToJSXProps<UIProps, 'aria-label' | 'aria-labelledby' | 'aria-busy' | 'selectionType' | 'tabIndex'>;
8
+ /** Single selection tree props (`selectionType` defaults to `'single'`). */
9
+ export interface SingleTreeListProps extends BaseTreeListProps {
10
+ /** Selection type. Optional: defaults to `'single'`. */
11
+ selectionType?: 'single';
12
+ /** The value of the selected tree item (or `undefined` when nothing is selected). */
13
+ value?: string;
14
+ }
15
+ /** Multiple selection tree props (`selectionType: 'multiple'` is required to opt in). */
16
+ export interface MultipleTreeListProps extends BaseTreeListProps {
17
+ /** Selection type. */
18
+ selectionType: 'multiple';
19
+ /** The values of the selected tree items. */
20
+ value?: string[];
21
+ }
22
+ /**
23
+ * Props of the TreeList component. Discriminated on `selectionType`: with `'multiple'`, `value` (and the
24
+ * `change` payload) take arrays.
25
+ */
26
+ export type TreeListProps = SingleTreeListProps | MultipleTreeListProps;
27
+ export declare const emitSchema: {
28
+ /**
29
+ * On a selection of a selectable tree item (Enter, Space or a click), in a standalone tree only.
30
+ * In a combobox, the trigger `select` event (`Combobox.Input` or `Combobox.Button`) handles the selection.
31
+ */
32
+ select: (option: {
33
+ value: string;
34
+ }) => boolean;
35
+ /**
36
+ * Selection change, on every selection (in a combobox too). Payload: the selected value, or the toggled
37
+ * values with `selectionType="multiple"`.
38
+ */
39
+ change: (newValue: string | string[]) => boolean;
40
+ };
41
+ /**
42
+ * TreeList component: a list in the WAI-ARIA tree pattern (`role="tree"`), with `TreeListItem` (`TreeList.Item`) items.
43
+ * Use `Combobox.OptionSkeleton` and `Combobox.State` inside, as in a list.
44
+ *
45
+ * Selection: `value` holds the selected tree item value (or values with `selectionType="multiple"`), and
46
+ * the tree items read their selected state from it. `change` is emitted with the new value on every
47
+ * selection (in a combobox too): the selected value, or the toggled values with `selectionType="multiple"`.
48
+ *
49
+ * Adapts to its parent:
50
+ * - Inside a combobox (`Combobox.Provider`): the tree is the combobox list. The trigger owns focus, the
51
+ * popup opens and closes, and the tree items render only while it is open. The `id` prop is ignored
52
+ * (the tree takes the combobox list ID, used by the trigger `aria-controls`).
53
+ * - Otherwise, a standalone tree: the tree is its own focus owner (a single tab stop, `aria-activedescendant`
54
+ * on the tree), handles its own keyboard, and is always open. It has no filter. `select` is emitted on
55
+ * a selection.
56
+ *
57
+ * The parent is the nearest one: a tree rendered inside a list, an option or a tree item of a combobox
58
+ * (e.g. in a `Combobox.OptionMoreInfo` popover) is standalone. A tree rendered directly under a
59
+ * `Combobox.Provider` is the combobox list, even through a teleport (e.g. in a dialog opened from the
60
+ * combobox): render a standalone tree outside of the `Combobox.Provider`. The mode is set on setup.
61
+ *
62
+ * Keyboard and filter:
63
+ * - Up/Down move over the visible tree items, Right/Left open and close the parent items (or move to
64
+ * the first sub-item and to the parent item). Enter (or a click) selects a selectable tree item.
65
+ * - With `filter="auto"` on `Combobox.Input`, a tree item matches on its own label and description. The
66
+ * matching items, their ancestors (opened) and the descendants of a matching parent item stay visible.
67
+ * - With `filter="manual"`, the consumer renders the result: while the input text is not empty, every
68
+ * parent item with rendered sub-items opens (a matching parent item with no matching sub-item opens
69
+ * too, unlike `"auto"`). For a tree with lazy parent items, prefer `"manual"` with a search on the server.
70
+ * - Option count (`Combobox.State`): the matching items during an auto filter, every rendered tree item
71
+ * during a manual filter, and no count without a filter.
72
+ *
73
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/treeview/
74
+ *
75
+ * @param props Component props.
76
+ * @return Vue element.
77
+ */
78
+ declare const TreeList: import('vue').DefineSetupFnComponent<TreeListProps, {
79
+ /**
80
+ * On a selection of a selectable tree item (Enter, Space or a click), in a standalone tree only.
81
+ * In a combobox, the trigger `select` event (`Combobox.Input` or `Combobox.Button`) handles the selection.
82
+ */
83
+ select: (option: {
84
+ value: string;
85
+ }) => boolean;
86
+ /**
87
+ * Selection change, on every selection (in a combobox too). Payload: the selected value, or the toggled
88
+ * values with `selectionType="multiple"`.
89
+ */
90
+ change: (newValue: string | string[]) => boolean;
91
+ }, {}, TreeListProps & {
92
+ onSelect?: ((option: {
93
+ value: string;
94
+ }) => any) | undefined;
95
+ onChange?: ((newValue: string | string[]) => any) | undefined;
96
+ }, import('vue').PublicProps>;
97
+ export { COMPONENT_NAME, CLASSNAME, DEFAULT_PROPS };
98
+ export default TreeList;
@@ -0,0 +1,73 @@
1
+ declare const _default: {
2
+ component: any;
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const Standalone: {
7
+ args: {
8
+ value: string;
9
+ };
10
+ decorators: ((story: any, context: any) => any)[];
11
+ render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
12
+ };
13
+ export declare const StandaloneMultipleSelection: {
14
+ args: {
15
+ value: string[];
16
+ };
17
+ decorators: ((story: any, context: any) => any)[];
18
+ render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
19
+ };
20
+ export declare const InComboboxInput: {
21
+ args: {
22
+ value: {
23
+ text: string;
24
+ selected: string;
25
+ };
26
+ };
27
+ decorators: ((story: any, context: any) => any)[];
28
+ render: ({ value, onUpdate }: any) => import("vue/jsx-runtime").JSX.Element;
29
+ };
30
+ export declare const InComboboxInline: {
31
+ args: {
32
+ value: {
33
+ text: string;
34
+ selected: string;
35
+ };
36
+ };
37
+ decorators: ((story: any, context: any) => any)[];
38
+ render: ({ value, onUpdate }: any) => import("vue/jsx-runtime").JSX.Element;
39
+ };
40
+ export declare const InComboboxButton: {
41
+ args: {
42
+ value: string;
43
+ };
44
+ decorators: ((story: any, context: any) => any)[];
45
+ render: ({ value, onChange }: any) => import("vue/jsx-runtime").JSX.Element;
46
+ };
47
+ export declare const InComboboxMultipleSelection: {
48
+ args: {
49
+ value: {
50
+ text: string;
51
+ selected: string[];
52
+ };
53
+ };
54
+ decorators: ((story: any, context: any) => any)[];
55
+ render: ({ value, onUpdate }: any) => import("vue/jsx-runtime").JSX.Element;
56
+ };
57
+ export declare const LazyParentItem: {
58
+ args: {
59
+ snacks: string;
60
+ };
61
+ decorators: ((story: any, context: any) => any)[];
62
+ render: ({ snacks, onSnacksChange }: any) => import("vue/jsx-runtime").JSX.Element;
63
+ };
64
+ export declare const WithSections: {
65
+ args: {
66
+ value: {
67
+ text: string;
68
+ selected: string;
69
+ };
70
+ };
71
+ decorators: ((story: any, context: any) => any)[];
72
+ render: ({ value, onUpdate }: any) => import("vue/jsx-runtime").JSX.Element;
73
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,83 @@
1
+ declare const _default: {
2
+ component: any;
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const TreeItemRowLayout: {
7
+ render: ({ value, onUpdate, onSelect, treeOnSelect, filter, selectionType, onOpenChange, onClick, nbOptionMessage, withoutState, snacks, }: any) => import("vue/jsx-runtime").JSX.Element;
8
+ play(): Promise<void>;
9
+ args: {
10
+ value: {
11
+ text: string;
12
+ selected: string;
13
+ };
14
+ };
15
+ decorators: ((story: any, context: any) => any)[];
16
+ };
17
+ export declare const ClickNonSelectableParentItemRow: {
18
+ render: ({ value, onUpdate, onSelect, treeOnSelect, filter, selectionType, onOpenChange, onClick, nbOptionMessage, withoutState, snacks, }: any) => import("vue/jsx-runtime").JSX.Element;
19
+ play(): Promise<void>;
20
+ args: {
21
+ value: {
22
+ text: string;
23
+ selected: string;
24
+ };
25
+ };
26
+ decorators: ((story: any, context: any) => any)[];
27
+ };
28
+ export declare const FilterNoMatchHidesPopover: {
29
+ args: {
30
+ withoutState: boolean;
31
+ snacks: string;
32
+ value: {
33
+ text: string;
34
+ selected: string;
35
+ };
36
+ };
37
+ render: ({ value, onUpdate, onSelect, treeOnSelect, filter, selectionType, onOpenChange, onClick, nbOptionMessage, withoutState, snacks, }: any) => import("vue/jsx-runtime").JSX.Element;
38
+ play(): Promise<void>;
39
+ decorators: ((story: any, context: any) => any)[];
40
+ };
41
+ export declare const AccessibilityOpenTree: {
42
+ parameters: {
43
+ a11y: {
44
+ test: string;
45
+ };
46
+ };
47
+ render: ({ value, onUpdate, onSelect, treeOnSelect, filter, selectionType, onOpenChange, onClick, nbOptionMessage, withoutState, snacks, }: any) => import("vue/jsx-runtime").JSX.Element;
48
+ play(): Promise<void>;
49
+ args: {
50
+ value: {
51
+ text: string;
52
+ selected: string;
53
+ };
54
+ };
55
+ decorators: ((story: any, context: any) => any)[];
56
+ };
57
+ export declare const AccessibilityLoadingGroup: {
58
+ args: {
59
+ value: string;
60
+ load: Promise<unknown>;
61
+ };
62
+ decorators: ((story: any, context: any) => any)[];
63
+ parameters: {
64
+ a11y: {
65
+ test: string;
66
+ };
67
+ };
68
+ render: ({ value, onChange, onOpenChange, load }: any) => import("vue/jsx-runtime").JSX.Element;
69
+ play(): Promise<void>;
70
+ };
71
+ export declare const AccessibilityStandaloneTree: {
72
+ args: {
73
+ value: string;
74
+ };
75
+ decorators: ((story: any, context: any) => any)[];
76
+ parameters: {
77
+ a11y: {
78
+ test: string;
79
+ };
80
+ };
81
+ render: ({ value, onUpdate, onSelect, onOpenChange, onClick, selectionType }: any) => import("vue/jsx-runtime").JSX.Element;
82
+ play(): Promise<void>;
83
+ };
@@ -0,0 +1,9 @@
1
+ /** Context value provided by `TreeList` to its tree items: the selection. */
2
+ export interface TreeListContextValue {
3
+ /** Whether a tree item value is selected (in the tree `value`). */
4
+ isSelected(value: string): boolean;
5
+ }
6
+ /** Provide the tree list context (see `TreeList`). */
7
+ export declare function provideTreeListContext(value: TreeListContextValue): void;
8
+ /** Access the tree list context, or `undefined` outside of a `TreeList` (does not throw). */
9
+ export declare function useOptionalTreeListContext(): TreeListContextValue | undefined;
@@ -0,0 +1,73 @@
1
+ import { TreeListItemProps as UIProps, TreeListItemPropsToOverride, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/TreeList/TreeListItem';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ import { TooltipProps } from '../tooltip/Tooltip';
4
+ export type TreeListItemProps = VueToJSXProps<UIProps, TreeListItemPropsToOverride | 'id' | 'isParent' | 'isOpen' | 'isSelected' | 'hidden' | 'level' | 'handleClick' | 'handleToggleClick'> & {
5
+ /** Content of the row (the tree item label), when the `label` slot is not used. */
6
+ label?: string;
7
+ /**
8
+ * Make a lazy parent item: a parent item with no sub-items until the user opens it (load the
9
+ * sub-items on `openChange`). Not needed when sub-items are present.
10
+ * In a combobox, the open state resets on each popup open: cache the loaded sub-items.
11
+ */
12
+ hasSubItems?: boolean;
13
+ /** Props forwarded to a Tooltip wrapping the `role="treeitem"` element. */
14
+ tooltipProps?: Partial<TooltipProps>;
15
+ /** Props forwarded to the inner `role="treeitem"` element. */
16
+ actionProps?: Record<string, any>;
17
+ };
18
+ export declare const emitSchema: {
19
+ /**
20
+ * On every open and close by the user (expand toggle, Right, Left, Enter or a click on a
21
+ * non-selectable parent item). Not emitted for the initial state or for the filter.
22
+ */
23
+ openChange: (isOpen: boolean) => boolean;
24
+ /** On tree item clicked (or activated with Enter), selectable or not. */
25
+ click: () => boolean;
26
+ };
27
+ /**
28
+ * TreeListItem component: one tree item of a `TreeList`, with its sub-items (default slot: `TreeListItem`,
29
+ * `Combobox.OptionSkeleton` or `Combobox.State`). Label: the `label` slot, or the `label` prop.
30
+ * The `before` and `after` slots take e.g. an icon.
31
+ *
32
+ * - With a `value`, the tree item is selectable (Enter or a click selects it), and it is selected when the
33
+ * tree `value` holds it. Without, it is not selectable: Enter or a click on a non-selectable parent item
34
+ * opens or closes it, and on a non-selectable leaf item only emits `click` (e.g. an action such as
35
+ * "Create a new list…").
36
+ * - The open state is internal: a parent item starts open when a sub-item at any depth is selected.
37
+ * In a combobox, it resets on each popup open.
38
+ * - Touch screen readers: TalkBack (Chrome) can open and close the parent items. On iOS, a user can
39
+ * only reach the sub-items of a selectable parent item through the filter. To support it, use a
40
+ * non-selectable parent item with an "All <name>" leaf item that carries the parent value.
41
+ *
42
+ * @param props Component props.
43
+ * @return Vue element.
44
+ */
45
+ declare const TreeListItem: import('vue').DefineSetupFnComponent<TreeListItemProps, {
46
+ /**
47
+ * On every open and close by the user (expand toggle, Right, Left, Enter or a click on a
48
+ * non-selectable parent item). Not emitted for the initial state or for the filter.
49
+ */
50
+ openChange: (isOpen: boolean) => boolean;
51
+ /** On tree item clicked (or activated with Enter), selectable or not. */
52
+ click: () => boolean;
53
+ }, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "isOpen" | "level" | "id" | "isSelected" | "hidden" | "isParent" | "handleToggleClick" | TreeListItemPropsToOverride> & {
54
+ class?: import('../../utils/VueToJSX').ClassValue;
55
+ } & {
56
+ /** Content of the row (the tree item label), when the `label` slot is not used. */
57
+ label?: string;
58
+ /**
59
+ * Make a lazy parent item: a parent item with no sub-items until the user opens it (load the
60
+ * sub-items on `openChange`). Not needed when sub-items are present.
61
+ * In a combobox, the open state resets on each popup open: cache the loaded sub-items.
62
+ */
63
+ hasSubItems?: boolean;
64
+ /** Props forwarded to a Tooltip wrapping the `role="treeitem"` element. */
65
+ tooltipProps?: Partial<TooltipProps>;
66
+ /** Props forwarded to the inner `role="treeitem"` element. */
67
+ actionProps?: Record<string, any>;
68
+ } & {
69
+ onClick?: (() => any) | undefined;
70
+ onOpenChange?: ((isOpen: boolean) => any) | undefined;
71
+ }, import('vue').PublicProps>;
72
+ export { COMPONENT_NAME, CLASSNAME };
73
+ export default TreeListItem;
@@ -0,0 +1,34 @@
1
+ import { TreeListSectionProps as UIProps, TreeListSectionPropsToOverride, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/TreeList/TreeListSection';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type TreeListSectionProps = VueToJSXProps<UIProps, TreeListSectionPropsToOverride | 'hidden'> & {
4
+ /**
5
+ * Section label, shown as the section title (visual only), when the `label` slot is not used. Without a
6
+ * label, the section is a plain group.
7
+ */
8
+ label?: string;
9
+ };
10
+ /**
11
+ * TreeListSection component: a section of root tree items in a `TreeList`, with an optional label (`label`
12
+ * prop or slot). Default slot: the `TreeListItem` elements.
13
+ *
14
+ * - The sections get a divider between them (and between them and the standalone tree items). Use a section
15
+ * without a label as a separator.
16
+ * - Root level only: the tree items of a section are root tree items. Do not use it in a tree item.
17
+ * - With `filter="auto"`, the section is hidden when the filter hides all of its tree items.
18
+ * - The label is visual only: the section has no ARIA semantics (a group in a tree changes the tree item levels).
19
+ * - Renders nothing without children.
20
+ *
21
+ * @param props Component props.
22
+ * @return Vue element.
23
+ */
24
+ declare const TreeListSection: import('vue').DefineSetupFnComponent<TreeListSectionProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "hidden" | TreeListSectionPropsToOverride> & {
25
+ class?: import('../../utils/VueToJSX').ClassValue;
26
+ } & {
27
+ /**
28
+ * Section label, shown as the section title (visual only), when the `label` slot is not used. Without a
29
+ * label, the section is a plain group.
30
+ */
31
+ label?: string;
32
+ } & {}, import('vue').PublicProps>;
33
+ export { COMPONENT_NAME, CLASSNAME };
34
+ export default TreeListSection;
@@ -0,0 +1,2 @@
1
+ /** Whether the rendered slot content is not empty (ignores comments, blank text and empty fragments). */
2
+ export declare function hasContent(nodes: unknown): boolean;
@@ -0,0 +1,43 @@
1
+ import { default as TreeListItem } from './TreeListItem';
2
+ import { default as TreeListSection } from './TreeListSection';
3
+ export type { TreeListProps, SingleTreeListProps, MultipleTreeListProps } from './TreeList';
4
+ export type { TreeListItemProps } from './TreeListItem';
5
+ export type { TreeListSectionProps } from './TreeListSection';
6
+ /**
7
+ * TreeList compound component: `TreeList.Item` is the tree item (also exported as `TreeListItem`), and
8
+ * `TreeList.Section` a section of root tree items (also exported as `TreeListSection`).
9
+ */
10
+ export declare const TreeList: import('vue').DefineSetupFnComponent<import('./TreeList').TreeListProps, {
11
+ select: (option: {
12
+ value: string;
13
+ }) => boolean;
14
+ change: (newValue: string | string[]) => boolean;
15
+ }, {}, import('./TreeList').TreeListProps & {
16
+ onSelect?: ((option: {
17
+ value: string;
18
+ }) => any) | undefined;
19
+ onChange?: ((newValue: string | string[]) => any) | undefined;
20
+ }, import('vue').PublicProps> & {
21
+ /** One tree item of the tree, with its sub-items. */
22
+ Item: import('vue').DefineSetupFnComponent<import('./TreeListItem').TreeListItemProps, {
23
+ openChange: (isOpen: boolean) => boolean;
24
+ click: () => boolean;
25
+ }, {}, Omit<import('@lumx/core/js/components/TreeList/TreeListItem').TreeListItemProps, "className" | import('@lumx/core/js/types').PropsToOverride | "isOpen" | "level" | "id" | "isSelected" | "hidden" | "isParent" | "handleToggleClick" | import('@lumx/core/js/components/TreeList/TreeListItem').TreeListItemPropsToOverride> & {
26
+ class?: import('../../utils/VueToJSX').ClassValue;
27
+ } & {
28
+ label?: string;
29
+ hasSubItems?: boolean;
30
+ tooltipProps?: Partial<import('../tooltip').TooltipProps>;
31
+ actionProps?: Record<string, any>;
32
+ } & {
33
+ onClick?: (() => any) | undefined;
34
+ onOpenChange?: ((isOpen: boolean) => any) | undefined;
35
+ }, import('vue').PublicProps>;
36
+ /** A section of root tree items, with an optional label (a divider between the sections). */
37
+ Section: import('vue').DefineSetupFnComponent<import('./TreeListSection').TreeListSectionProps, {}, {}, Omit<import('@lumx/core/js/components/TreeList/TreeListSection').TreeListSectionProps, "className" | import('@lumx/core/js/types').PropsToOverride | "hidden" | import('@lumx/core/js/components/TreeList/TreeListSection').TreeListSectionPropsToOverride> & {
38
+ class?: import('../../utils/VueToJSX').ClassValue;
39
+ } & {
40
+ label?: string;
41
+ } & {}, import('vue').PublicProps>;
42
+ };
43
+ export { TreeListItem, TreeListSection };
package/index.d.ts CHANGED
@@ -44,6 +44,7 @@ export * from './components/text';
44
44
  export * from './components/thumbnail';
45
45
  export * from './components/toolbar';
46
46
  export * from './components/tooltip';
47
+ export * from './components/tree-list';
47
48
  export * from './components/user-block';
48
49
  export * from './components/select-button';
49
50
  export * from './components/select-text-field';