@lumx/core 4.27.1-alpha.0 → 4.27.1-alpha.2
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/components-and-utils.css +93 -8
- package/js/components/Combobox/Tests.d.ts +5 -0
- package/js/components/Combobox/index.d.ts +1 -1
- package/js/components/Combobox/setupCombobox.d.ts +13 -11
- package/js/components/Combobox/setupComboboxButton.d.ts +2 -2
- package/js/components/Combobox/setupComboboxInput.d.ts +2 -2
- package/js/components/Combobox/types.d.ts +55 -17
- package/js/components/Composite/CompositeItemDescription.d.ts +17 -0
- package/js/components/Composite/CompositeSelectionIcon.d.ts +20 -0
- package/js/components/Composite/CompositeStatus.d.ts +82 -0
- package/js/components/{Listbox → Composite}/constants.d.ts +3 -1
- package/js/components/Composite/index.d.ts +7 -0
- package/js/components/Composite/setupComposite.d.ts +28 -0
- package/js/components/Composite/types.d.ts +260 -0
- package/js/components/Composite/utils.d.ts +19 -0
- package/js/components/Listbox/ListboxSection.d.ts +1 -1
- package/js/components/Listbox/index.d.ts +2 -5
- package/js/components/Listbox/navigation.d.ts +3 -38
- package/js/components/Listbox/setupListbox.d.ts +6 -4
- package/js/components/Listbox/types.d.ts +6 -125
- package/js/components/Listbox/utils.d.ts +4 -28
- package/js/components/TreeList/Stories.d.ts +72 -0
- package/js/components/TreeList/TestStories.d.ts +88 -0
- package/js/components/TreeList/Tests.d.ts +49 -0
- package/js/components/TreeList/TreeList.d.ts +60 -0
- package/js/components/TreeList/TreeListItem.d.ts +84 -0
- package/js/components/TreeList/dom.d.ts +61 -0
- package/js/components/TreeList/index.d.ts +9 -0
- package/js/components/TreeList/navigation.d.ts +15 -0
- package/js/components/TreeList/selection.d.ts +9 -0
- package/js/components/TreeList/setupTreeList.d.ts +18 -0
- package/js/components/TreeList/types.d.ts +55 -0
- package/js/components/TreeList/utils.d.ts +4 -0
- package/js/utils/string/includesIgnoreCase.d.ts +2 -0
- package/lumx.css +93 -8
- package/package.json +2 -2
- package/scss/_components_classes.scss +2 -0
- package/scss/components/combobox/_index.scss +4 -4
- package/scss/components/composite/_index.scss +20 -0
- package/scss/components/list-box/_index.scss +2 -13
- package/scss/components/tree-list/_index.scss +144 -0
- package/scss/core/action-area/_index.scss +3 -4
- package/scss/core/action-area/_mixins.scss +11 -0
- package/js/components/Listbox/ListboxOptionSelectionIcon.d.ts +0 -13
- package/js/components/Listbox/ListboxState.d.ts +0 -105
- package/js/components/Listbox/subscribeListboxState.d.ts +0 -24
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Composite
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
// Parts shared by the composite widgets (listbox, grid, tree).
|
|
6
|
+
|
|
7
|
+
// ---- Status -----------------------
|
|
8
|
+
|
|
9
|
+
.#{$lumx-base-prefix}-composite-status {
|
|
10
|
+
text-align: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// ---- Item -----------------------
|
|
14
|
+
|
|
15
|
+
.#{$lumx-base-prefix}-composite-item {
|
|
16
|
+
// Selection state icon, centered in the `after` slot
|
|
17
|
+
&__selection-icon {
|
|
18
|
+
margin: auto;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -7,18 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
// ---- List -----------------------
|
|
9
9
|
|
|
10
|
-
// The
|
|
11
|
-
// Before the
|
|
10
|
+
// The composite sets `hidden` on the list when it has no visible content (see `setupComposite`).
|
|
11
|
+
// Before the composite mounts: hide an empty list.
|
|
12
12
|
.#{$lumx-base-prefix}-listbox-list:empty {
|
|
13
13
|
display: none;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
// ---- State -----------------------
|
|
17
|
-
|
|
18
|
-
.#{$lumx-base-prefix}-listbox-state {
|
|
19
|
-
text-align: center;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
16
|
// ---- Option -----------------------
|
|
23
17
|
|
|
24
18
|
.#{$lumx-base-prefix}-listbox-option {
|
|
@@ -37,11 +31,6 @@
|
|
|
37
31
|
}
|
|
38
32
|
}
|
|
39
33
|
|
|
40
|
-
// Selection state icon (select options), centered in the `after` slot
|
|
41
|
-
&__selection-icon {
|
|
42
|
-
margin: auto;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
34
|
// Allow flex items to shrink below their content width so `truncate` text shows an ellipsis
|
|
46
35
|
.#{$lumx-base-prefix}-list-item__wrapper,
|
|
47
36
|
.#{$lumx-base-prefix}-list-item__content {
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Tree list
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
// The row reuses the list item structure (`lumx-list-item`, size tiny) and the list item action styles
|
|
6
|
+
// (hover, active, selected), at every depth.
|
|
7
|
+
|
|
8
|
+
// Indent: each group sets `--lumx-tree-list-level` (the level of its sub-items, unset at the root).
|
|
9
|
+
// The rows (and the skeletons or states in a group) get one big spacing unit of indent per level.
|
|
10
|
+
$lumx-tree-list-indent: calc(var(--lumx-tree-list-level, 0) * #{$lumx-spacing-unit-big});
|
|
11
|
+
|
|
12
|
+
// Size of the expand toggle (a size `s` icon button), also the width of the spacer on a leaf item.
|
|
13
|
+
$lumx-tree-list-toggle-size: calc(var(--lumx-button-height) / 1.5);
|
|
14
|
+
|
|
15
|
+
// Duration of the group open and close animation (the same as the expansion panel).
|
|
16
|
+
$lumx-tree-list-transition-duration: 400ms;
|
|
17
|
+
|
|
18
|
+
// ---- Tree -----------------------
|
|
19
|
+
|
|
20
|
+
// The composite sets `hidden` on the tree when it has no visible content (see `setupComposite`).
|
|
21
|
+
// Before the composite mounts: hide an empty tree.
|
|
22
|
+
.#{$lumx-base-prefix}-tree-list:empty {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// ---- Tree item -----------------------
|
|
27
|
+
|
|
28
|
+
.#{$lumx-base-prefix}-tree-list-item {
|
|
29
|
+
&__row {
|
|
30
|
+
padding-left: $lumx-tree-list-indent;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Allow the content to shrink below its text width so that a `truncate` label shows an ellipsis
|
|
34
|
+
&__row > .#{$lumx-base-prefix}-list-item__wrapper > .#{$lumx-base-prefix}-list-item__content {
|
|
35
|
+
min-width: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// The `before` slot holds the expand toggle (or the spacer) and the `before` content: no fixed width
|
|
39
|
+
&__row > .#{$lumx-base-prefix}-list-item__wrapper > .#{$lumx-base-prefix}-list-item__before {
|
|
40
|
+
justify-content: flex-start;
|
|
41
|
+
width: auto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// The row action is a full width block, so that a `truncate` label gets the content width (a block button
|
|
45
|
+
// gets the width of its text). (One class more than the `all: unset` of the action area action.)
|
|
46
|
+
&__row &__action {
|
|
47
|
+
display: block;
|
|
48
|
+
width: 100%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Non-selectable parent item: the expand toggle is the main action of the row. The row action (a `span`)
|
|
52
|
+
// lets the pointer through to the toggle overlay (it stays the `role="treeitem"`).
|
|
53
|
+
&__action--passive {
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Expand toggle, or the spacer of the same width on a leaf item
|
|
58
|
+
&__toggle,
|
|
59
|
+
&__spacer {
|
|
60
|
+
flex-shrink: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&__spacer {
|
|
64
|
+
width: $lumx-tree-list-toggle-size;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Negative vertical margins: the toggle fits in the line height (size `xs`), so that a parent item row
|
|
68
|
+
// keeps the height of a list item of size `tiny`.
|
|
69
|
+
&__toggle {
|
|
70
|
+
margin-block: calc((#{$lumx-size-xs} - #{$lumx-tree-list-toggle-size}) / 2);
|
|
71
|
+
|
|
72
|
+
// A bigger chevron than the default icon of a size `s` icon button
|
|
73
|
+
// (the icon size rule of the button, with the toggle class).
|
|
74
|
+
&.#{$lumx-base-prefix}-button--size-s.#{$lumx-base-prefix}-button--variant-icon > i {
|
|
75
|
+
width: $lumx-size-xs;
|
|
76
|
+
height: $lumx-size-xs;
|
|
77
|
+
font-size: $lumx-size-xs;
|
|
78
|
+
line-height: $lumx-size-xs;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Main toggle: its overlay (`::before`) covers the whole row (the row is the positioning context, not the
|
|
83
|
+
// toggle). (One class more than the `position: relative` of the button.)
|
|
84
|
+
// A pointer anywhere on the row is on the toggle: the toggle shows its own hover and active states on top of
|
|
85
|
+
// the row ones, to show that a click opens or closes the item (it does not select it).
|
|
86
|
+
&__row &__toggle--main {
|
|
87
|
+
position: static;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// The button styles disable the pointer on `::before` and round it: the overlay catches the clicks
|
|
91
|
+
// on the row, with square corners (one class more than the button `::before` rules).
|
|
92
|
+
&__row &__toggle--main.#{$lumx-base-prefix}-button.#{$lumx-base-prefix}-action-area__action::before {
|
|
93
|
+
pointer-events: auto;
|
|
94
|
+
border-radius: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Keyboard: the active item is the row action, show its highlight on the toggle overlay (the focus style of
|
|
98
|
+
// an action overlay).
|
|
99
|
+
&__row:has(&__action--passive[data-focus-visible-added]) &__toggle--main::before {
|
|
100
|
+
@include lumx-action-area-overlay-hover("dark");
|
|
101
|
+
@include lumx-action-area-focus-inset;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Keyboard: the toggle also shows its hover state, as with the pointer (Enter opens or closes the item, it does
|
|
105
|
+
// not select it).
|
|
106
|
+
&__row:has(&__action--passive[data-focus-visible-added]) &__toggle--main {
|
|
107
|
+
color: var(--lumx-button-emphasis-low-state-hover-theme-light-color);
|
|
108
|
+
background-color: var(--lumx-button-emphasis-low-state-hover-theme-light-background-color);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Sub-items (the indent is on their rows)
|
|
112
|
+
&__group {
|
|
113
|
+
padding: 0;
|
|
114
|
+
margin: 0;
|
|
115
|
+
list-style: none;
|
|
116
|
+
|
|
117
|
+
// Skeletons and states: a margin (they have no full width background, and a state has a fixed padding)
|
|
118
|
+
> :not(.#{$lumx-base-prefix}-tree-list-item) {
|
|
119
|
+
margin-left: $lumx-tree-list-indent;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Open and close animation: the height goes to and from `auto` (`interpolate-size`). Where it is supported,
|
|
123
|
+
// a closed group (`hidden`) stays in the layout with no height and hidden content (`visibility` changes at
|
|
124
|
+
// the end of the close), so that it can animate. Elsewhere, a closed group has `display: none`.
|
|
125
|
+
@supports (interpolate-size: allow-keywords) {
|
|
126
|
+
// stylelint-disable-next-line property-no-unknown -- (not in the stylelint 14 property list yet)
|
|
127
|
+
interpolate-size: allow-keywords;
|
|
128
|
+
overflow-y: clip;
|
|
129
|
+
transition:
|
|
130
|
+
height $lumx-tree-list-transition-duration,
|
|
131
|
+
visibility $lumx-tree-list-transition-duration;
|
|
132
|
+
|
|
133
|
+
@media (prefers-reduced-motion: reduce) {
|
|
134
|
+
transition: none;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&[hidden] {
|
|
138
|
+
display: block;
|
|
139
|
+
height: 0;
|
|
140
|
+
visibility: hidden;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
&:hover::before,
|
|
33
33
|
&[data-focus-visible-added]::before,
|
|
34
34
|
&[data-lumx-hover]::before {
|
|
35
|
-
@include lumx-
|
|
35
|
+
@include lumx-action-area-overlay-hover('dark');
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&:active::before,
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
&:hover::before,
|
|
47
47
|
&[data-focus-visible-added]::before,
|
|
48
48
|
&[data-lumx-hover]::before {
|
|
49
|
-
@include lumx-
|
|
49
|
+
@include lumx-action-area-overlay-hover('light');
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
&:active::before,
|
|
@@ -65,8 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
&--focus-inset[data-focus-visible-added]::before {
|
|
68
|
-
|
|
69
|
-
outline-offset: -2px;
|
|
68
|
+
@include lumx-action-area-focus-inset;
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
&--theme-dark[data-focus-visible-added]::before {
|
|
@@ -16,3 +16,14 @@ $interactive: 'a, button, input, select, textarea, label, [tabindex]';
|
|
|
16
16
|
z-index: 1;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
// Hover (and keyboard focus) state of an action overlay (`::before`).
|
|
21
|
+
@mixin lumx-action-area-overlay-hover($theme: 'dark') {
|
|
22
|
+
@include lumx-state(lumx-base-const('state', 'HOVER'), lumx-base-const('emphasis', 'LOW'), $theme);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Focus outline of an action overlay (`::before`), inside the action.
|
|
26
|
+
@mixin lumx-action-area-focus-inset {
|
|
27
|
+
outline-style: solid;
|
|
28
|
+
outline-offset: -2px;
|
|
29
|
+
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface ListboxOptionSelectionIconProps {
|
|
2
|
-
/** Selection type of the select (`undefined` renders nothing). */
|
|
3
|
-
selectionType: 'single' | 'multiple' | undefined;
|
|
4
|
-
/** Whether the option is selected. */
|
|
5
|
-
isSelected: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Selection state icon of an option. The icon is always rendered after the label.
|
|
9
|
-
*
|
|
10
|
-
* - `single`: a check circle icon when selected, a blank radio icon otherwise.
|
|
11
|
-
* - `multiple`: a checkbox icon, marked or blank.
|
|
12
|
-
*/
|
|
13
|
-
export declare const ListboxOptionSelectionIcon: ({ selectionType, isSelected }: ListboxOptionSelectionIconProps) => import("react").JSX.Element | null;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import type { LumxClassName } from '../../types';
|
|
2
|
-
import type { TextProps } from '../Text';
|
|
3
|
-
/**
|
|
4
|
-
* Component display name.
|
|
5
|
-
*/
|
|
6
|
-
export declare const COMPONENT_NAME = "ListboxState";
|
|
7
|
-
/**
|
|
8
|
-
* Component default class name and class prefix.
|
|
9
|
-
*/
|
|
10
|
-
export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
11
|
-
/**
|
|
12
|
-
* Legacy class name, emitted next to `CLASSNAME` for backward compatibility.
|
|
13
|
-
*
|
|
14
|
-
* @deprecated Use `CLASSNAME` (`lumx-listbox-*`). The legacy `lumx-combobox-*` class will be removed in the next major version.
|
|
15
|
-
*/
|
|
16
|
-
export declare const LEGACY_CLASSNAME = "lumx-combobox-state";
|
|
17
|
-
/**
|
|
18
|
-
* Defines the props for the core ListboxState template.
|
|
19
|
-
*/
|
|
20
|
-
export interface ListboxStateProps {
|
|
21
|
-
/**
|
|
22
|
-
* Message to display when the list has no visible options.
|
|
23
|
-
* Can be a plain string or a function receiving the current input value (for dynamic messages).
|
|
24
|
-
* When omitted, the empty state is not shown.
|
|
25
|
-
*/
|
|
26
|
-
emptyMessage?: string | ((inputValue: string) => string);
|
|
27
|
-
/**
|
|
28
|
-
* Message callback to display the number of available options.
|
|
29
|
-
* Called with the current visible option count and should return a human-readable string
|
|
30
|
-
* (e.g. `(n) => \`${n} result(s) available\``).
|
|
31
|
-
* Displayed when the combobox is open, not empty, not loading, and not in error.
|
|
32
|
-
* When omitted, no option count message is shown.
|
|
33
|
-
*/
|
|
34
|
-
nbOptionMessage?: (optionsLength: number) => string;
|
|
35
|
-
/**
|
|
36
|
-
* Error state title message.
|
|
37
|
-
* When provided, the error state is active (takes priority over the empty state).
|
|
38
|
-
* When omitted, the error state is not shown.
|
|
39
|
-
*/
|
|
40
|
-
errorMessage?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Secondary error message (e.g. "Please try again").
|
|
43
|
-
* Only rendered when `errorMessage` is provided.
|
|
44
|
-
*/
|
|
45
|
-
errorTryReloadMessage?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Message to announce when loading persists (after a 500ms debounce).
|
|
48
|
-
* When omitted, no loading announcement is made.
|
|
49
|
-
*/
|
|
50
|
-
loadingMessage?: string;
|
|
51
|
-
/**
|
|
52
|
-
* List state
|
|
53
|
-
*/
|
|
54
|
-
state?: {
|
|
55
|
-
/**
|
|
56
|
-
* The number of currently visible options.
|
|
57
|
-
* Driven by the framework wrapper via the combobox handle's `optionsChange` event.
|
|
58
|
-
*/
|
|
59
|
-
optionsLength?: number;
|
|
60
|
-
/**
|
|
61
|
-
* The current value of the combobox input.
|
|
62
|
-
* Passed to `emptyMessage` when it is a function.
|
|
63
|
-
*/
|
|
64
|
-
inputValue?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Whether loading is active (immediate, from `loadingChange` event).
|
|
67
|
-
* Used to suppress false "empty" state while data is loading.
|
|
68
|
-
*/
|
|
69
|
-
isLoading?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Whether the combobox popover is open.
|
|
72
|
-
* Used to gate live region content so screen readers announce messages
|
|
73
|
-
* when the popover opens (content insertion triggers `aria-live` announcement).
|
|
74
|
-
*/
|
|
75
|
-
isOpen?: boolean;
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Components injected by the framework wrapper (dependency injection).
|
|
80
|
-
*/
|
|
81
|
-
export interface ListboxStateComponents {
|
|
82
|
-
/**
|
|
83
|
-
* GenericBlock component (framework-specific, e.g. React GenericBlock with FlexBox handling).
|
|
84
|
-
*/
|
|
85
|
-
GenericBlock: any;
|
|
86
|
-
/**
|
|
87
|
-
* Text component (framework-specific, e.g. React Text or Vue Text).
|
|
88
|
-
*/
|
|
89
|
-
Text: (props: TextProps) => any;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* ListboxState core template.
|
|
93
|
-
* Renders empty/error/option-count state messages inside the combobox popover.
|
|
94
|
-
* The block itself acts as a screen reader live region (`role="status" aria-live="polite"`).
|
|
95
|
-
*
|
|
96
|
-
* Activation rules:
|
|
97
|
-
* - Error state: active when `errorMessage` is provided (presence-based).
|
|
98
|
-
* - Empty state: active when `optionsLength` is 0 and `emptyMessage` is provided, and there is no error.
|
|
99
|
-
* - Option count: active when `nbOptionMessage` is provided, the list is not empty, not loading, and not in error.
|
|
100
|
-
*
|
|
101
|
-
* @param props Component props.
|
|
102
|
-
* @param components Injected framework-specific components.
|
|
103
|
-
* @return JSX element or null when no state is active.
|
|
104
|
-
*/
|
|
105
|
-
export declare const ListboxState: (props: ListboxStateProps, { GenericBlock, Text }: ListboxStateComponents) => import("react").JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { ListboxHandle } from '../Listbox/types';
|
|
2
|
-
/** Setters invoked by `subscribeListboxState` when handle events fire. */
|
|
3
|
-
export interface ListboxStateSetters {
|
|
4
|
-
/** Called immediately with the current loading state, then on every `loadingChange` event. */
|
|
5
|
-
setIsLoading: (value: boolean) => void;
|
|
6
|
-
/** Called on every `loadingAnnouncement` event (debounced 500ms after skeletons mount). */
|
|
7
|
-
setShouldAnnounce: (value: boolean) => void;
|
|
8
|
-
/** Called with `true` after a short delay when the options become visible, and `false` immediately when hidden. */
|
|
9
|
-
setIsOpen: (value: boolean) => void;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Subscribe to the listbox handle events needed by `ListboxState`.
|
|
13
|
-
*
|
|
14
|
-
* Manages three subscriptions:
|
|
15
|
-
* - `loadingChange` → `setIsLoading` (+ synchronous initial read of `list.isLoading`)
|
|
16
|
-
* - `loadingAnnouncement` → `setShouldAnnounce`
|
|
17
|
-
* - `open` → `setIsOpen` (deferred by {@link OPEN_ANNOUNCEMENT_DELAY}ms when shown, immediate when hidden)
|
|
18
|
-
* (a standalone listbox is always visible: `setIsOpen(true)` once, no subscription)
|
|
19
|
-
*
|
|
20
|
-
* @param list The listbox handle to subscribe to (`ComboboxHandle.list` inside a combobox).
|
|
21
|
-
* @param setters Framework-specific state setters.
|
|
22
|
-
* @returns A cleanup function that unsubscribes all events and clears timers.
|
|
23
|
-
*/
|
|
24
|
-
export declare function subscribeListboxState(list: ListboxHandle, setters: ListboxStateSetters): () => void;
|