dawn-ui-react 1.0.0-alpha.14 → 1.0.0-alpha.16

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.
@@ -0,0 +1,2 @@
1
+ import { ComboboxVirtualizedListProps } from './combobox.types';
2
+ export declare const ComboboxVirtualizedList: <TItem>({ open, virtualizerRef, estimateSize, overscan, className, children, ...props }: ComboboxVirtualizedListProps<TItem>) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +1,6 @@
1
1
  import { Combobox as BaseCombobox } from '@base-ui/react/combobox';
2
2
  import { inputVariants } from '../input/input.types';
3
+ import { Virtualizer } from '@tanstack/react-virtual';
3
4
  import { VariantProps } from 'class-variance-authority';
4
5
  export type ComboboxEmptyProps = React.ComponentProps<typeof BaseCombobox.Empty>;
5
6
  export type ComboboxInputProps = React.ComponentProps<typeof BaseCombobox.Input> & VariantProps<typeof inputVariants> & {
@@ -19,4 +20,12 @@ export type ComboboxGroupProps = React.ComponentProps<typeof BaseCombobox.Group>
19
20
  export type ComboboxGroupLabelProps = React.ComponentProps<typeof BaseCombobox.GroupLabel>;
20
21
  export type ComboboxCollectionProps = React.ComponentProps<typeof BaseCombobox.Collection>;
21
22
  export type ComboboxStatusProps = React.ComponentProps<typeof BaseCombobox.Status>;
23
+ export type ComboboxVirtualizedListProps<TItem> = Omit<React.ComponentProps<'div'>, 'children'> & {
24
+ open: boolean;
25
+ virtualizerRef?: React.RefObject<Virtualizer<HTMLDivElement, HTMLDivElement> | null>;
26
+ estimateSize?: number;
27
+ overscan?: number;
28
+ children?: React.ReactNode | ((item: TItem) => React.ReactNode);
29
+ };
22
30
  export declare const useFilter: typeof BaseCombobox.useFilter;
31
+ export declare const useFilteredItems: typeof BaseCombobox.useFilteredItems;
@@ -1,5 +1,5 @@
1
1
  export { Combobox } from './combobox';
2
- export type { ComboboxChipProps, ComboboxChipsProps, ComboboxCollectionProps, ComboboxEmptyProps, ComboboxGroupLabelProps, ComboboxGroupProps, ComboboxInputProps, ComboboxItemProps, ComboboxListProps, ComboboxPopupProps, ComboboxProps, ComboboxStatusProps, ComboboxTriggerProps, ComboboxValueProps, } from './combobox.types';
2
+ export type { ComboboxChipProps, ComboboxChipsProps, ComboboxCollectionProps, ComboboxEmptyProps, ComboboxGroupLabelProps, ComboboxGroupProps, ComboboxInputProps, ComboboxItemProps, ComboboxListProps, ComboboxPopupProps, ComboboxProps, ComboboxStatusProps, ComboboxTriggerProps, ComboboxValueProps, ComboboxVirtualizedListProps, useFilteredItems, useFilter, } from './combobox.types';
3
3
  export { ComboboxChip } from './combobox-chip';
4
4
  export { ComboboxChips } from './combobox-chips';
5
5
  export { ComboboxCollection } from './combobox-collection';
@@ -13,3 +13,4 @@ export { ComboboxPopup } from './combobox-popup';
13
13
  export { ComboboxStatus } from './combobox-status';
14
14
  export { ComboboxTrigger } from './combobox-trigger';
15
15
  export { ComboboxValue } from './combobox-value';
16
+ export { ComboboxVirtualizedList } from './combobox-virtualized-list';