@lumx/vue 4.27.1-alpha.0 → 4.27.1-alpha.1

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/package.json CHANGED
@@ -30,11 +30,11 @@
30
30
  }
31
31
  },
32
32
  "sideEffects": false,
33
- "version": "4.27.1-alpha.0",
33
+ "version": "4.27.1-alpha.1",
34
34
  "dependencies": {
35
35
  "@floating-ui/vue": "^1.1.10",
36
- "@lumx/core": "^4.27.1-alpha.0",
37
- "@lumx/icons": "^4.27.1-alpha.0",
36
+ "@lumx/core": "^4.27.1-alpha.1",
37
+ "@lumx/icons": "^4.27.1-alpha.1",
38
38
  "@vueuse/core": "^14.1.0"
39
39
  },
40
40
  "peerDependencies": {
@@ -1,14 +0,0 @@
1
- import { ListboxStateProps as UIProps, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/Listbox/ListboxState';
2
- import { VueToJSXProps } from '../../utils/VueToJSX';
3
- export type ListboxStateProps = VueToJSXProps<UIProps, 'state'>;
4
- /**
5
- * Combobox.State component - displays empty and error states for the combobox list.
6
- *
7
- * @param props Component props.
8
- * @return Vue element.
9
- */
10
- declare const ListboxState: import('vue').DefineSetupFnComponent<ListboxStateProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "state"> & {
11
- class?: import('../../utils/VueToJSX').ClassValue;
12
- } & {}, import('vue').PublicProps>;
13
- export { COMPONENT_NAME, CLASSNAME };
14
- export default ListboxState;
@@ -1,25 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { ListboxHandle } from '@lumx/core/js/components/Listbox/types';
3
- /**
4
- * Context value shared by the listbox sub-components (list, options, sections, skeletons, state).
5
- *
6
- * Provided by `ListboxProvider` (standalone listbox) and by `Combobox.Provider` (listbox of a combobox),
7
- * then re-provided by the list with its `type`.
8
- */
9
- export interface ListboxContextValue {
10
- /** The listbox handle (null inside a combobox until the trigger creates it). */
11
- list: Readonly<Ref<ListboxHandle | null>>;
12
- /** The ID of the listbox element. */
13
- listboxId: string;
14
- /** The pattern of the list. "grid" enables 2D keyboard navigation and action buttons on options. */
15
- type: 'listbox' | 'grid';
16
- /** The selection type of the list (from `aria-multiselectable`). Provided by the list. */
17
- selectionType?: 'single' | 'multiple';
18
- }
19
- /** Provide the listbox context (see `ListboxProvider` and `Combobox.Provider`). */
20
- export declare function provideListboxContext(value: ListboxContextValue): void;
21
- /**
22
- * Access the listbox context.
23
- * @throws Error outside a `ListboxProvider` or a `Combobox.Provider`.
24
- */
25
- export declare function useListboxContext(): ListboxContextValue;
@@ -1,18 +0,0 @@
1
- /** Context value provided by Combobox.Option to its `after` slot children. */
2
- export interface ListboxOptionContextValue {
3
- /** The ID of the parent option element (matches the aria-activedescendant value when highlighted). */
4
- optionId: string;
5
- /** Whether the parent option is selected. */
6
- isSelected: boolean;
7
- }
8
- /**
9
- * Provides the combobox option context.
10
- */
11
- export declare function provideListboxOptionContext(value: ListboxOptionContextValue): void;
12
- /**
13
- * Hook to access the Combobox.Option context.
14
- * Must be used within a Combobox.Option's `after` slot.
15
- * @throws Error if used outside of a Combobox.Option.
16
- * @returns The option context value.
17
- */
18
- export declare function useListboxOptionContext(): ListboxOptionContextValue;
@@ -1,13 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { ListboxEventMap, ListboxHandle } from '@lumx/core/js/components/Listbox/types';
3
- /** Minimal event source shape of the listbox handle. */
4
- export interface EventSource {
5
- subscribe(event: string, callback: (value: unknown) => void): () => void;
6
- }
7
- /**
8
- * Subscribe to an event of a listbox handle. Re-subscribes when the handle changes.
9
- * `optionsChange` bursts are coalesced into a single deferred update.
10
- */
11
- export declare function useHandleEvent<V>(handle: Readonly<Ref<EventSource | null>>, event: string, initialValue: V): Ref<V>;
12
- /** Subscribe to a listbox handle event. */
13
- export declare function useListboxEvent<K extends keyof ListboxEventMap>(handle: Readonly<Ref<ListboxHandle | null>>, event: K, initialValue: ListboxEventMap[K]): Ref<ListboxEventMap[K]>;