@lumx/core 4.27.1-alpha.1 → 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 +82 -1
- 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 -16
- package/js/components/Composite/CompositeStatus.d.ts +8 -27
- package/js/components/Composite/types.d.ts +43 -9
- package/js/components/Composite/utils.d.ts +2 -0
- package/js/components/Listbox/index.d.ts +0 -2
- 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 +82 -1
- package/package.json +2 -2
- package/scss/_components_classes.scss +1 -0
- package/scss/components/combobox/_index.scss +1 -1
- package/scss/components/tree-list/_index.scss +144 -0
- package/js/components/Listbox/subscribeListboxState.d.ts +0 -24
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { CompositeHandle } from '../Composite/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 `CompositeStatus`.
|
|
13
|
-
*
|
|
14
|
-
* Manages three subscriptions:
|
|
15
|
-
* - `loadingChange` → `setIsLoading` (+ synchronous initial read of the `loadingChange` snapshot)
|
|
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: CompositeHandle, setters: ListboxStateSetters): () => void;
|