@vuu-ui/vuu-ui-controls 0.8.14-debug → 0.8.15-debug

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
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-ui-controls",
3
- "version": "0.8.14-debug",
3
+ "version": "0.8.15-debug",
4
4
  "description": "VUU UI Controls",
5
5
  "author": "heswell",
6
6
  "license": "Apache-2.0",
7
7
  "dependencies": {
8
8
  "@salt-ds/core": "1.8.0",
9
- "@vuu-ui/vuu-data": "0.8.14-debug",
10
- "@vuu-ui/vuu-data-types": "0.8.14-debug",
11
- "@vuu-ui/vuu-table-types": "0.8.14-debug",
12
- "@vuu-ui/vuu-layout": "0.8.14-debug",
13
- "@vuu-ui/vuu-table": "0.8.14-debug",
14
- "@vuu-ui/vuu-popups": "0.8.14-debug",
15
- "@vuu-ui/vuu-utils": "0.8.14-debug"
9
+ "@vuu-ui/vuu-data": "0.8.15-debug",
10
+ "@vuu-ui/vuu-data-types": "0.8.15-debug",
11
+ "@vuu-ui/vuu-table-types": "0.8.15-debug",
12
+ "@vuu-ui/vuu-layout": "0.8.15-debug",
13
+ "@vuu-ui/vuu-table": "0.8.15-debug",
14
+ "@vuu-ui/vuu-popups": "0.8.15-debug",
15
+ "@vuu-ui/vuu-utils": "0.8.15-debug"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "classnames": "^2.2.6",
@@ -6,12 +6,15 @@ import { ListProps } from "../list";
6
6
  export interface ComboBoxProps<Item = string, S extends SelectionStrategy = "default"> extends Omit<DropdownBaseProps, "triggerComponent" | "onBlur" | "onChange" | "onFocus">, Pick<InputProps, "onBlur" | "onChange" | "onFocus" | "onSelect">, Omit<ComponentSelectionProps<Item, S>, "onSelect">, Pick<ListProps<Item, S>, "ListItem" | "itemToString" | "source" | "width"> {
7
7
  InputProps?: InputProps;
8
8
  ListProps?: Omit<ListProps<Item>, "ListItem" | "itemToString" | "source">;
9
+ allowBackspaceClearsSelection?: boolean;
9
10
  allowFreeText?: boolean;
10
11
  defaultValue?: string;
11
12
  getFilterRegex?: (inputValue: string) => RegExp;
12
13
  initialHighlightedIndex?: number;
13
14
  itemsToString?: (items: Item[]) => string;
15
+ onDeselect?: () => void;
14
16
  onSetSelectedText?: (text: string) => void;
17
+ disableFilter?: boolean;
15
18
  value?: string;
16
19
  }
17
20
  export declare const ComboBox: <Item, S extends SelectionStrategy = "default">(props: ComboBoxProps<Item, S> & {
@@ -3,23 +3,18 @@ import { RefObject } from "react";
3
3
  import { ComponentSelectionProps, MultiSelectionStrategy, SelectionStrategy } from "../common-hooks";
4
4
  import { DropdownHookProps, DropdownHookResult, OpenChangeHandler } from "../dropdown";
5
5
  import { ListHookProps, ListHookResult } from "../list";
6
- export interface ComboboxHookProps<Item = string, S extends SelectionStrategy = "default"> extends Partial<Omit<DropdownHookProps, "id" | "onKeyDown">>, Pick<InputProps, "onBlur" | "onChange" | "onFocus" | "onSelect">, Omit<ComponentSelectionProps<Item, S>, "onSelect">, Omit<ListHookProps<Item, S>, "containerRef" | "defaultSelected" | "onSelect" | "selected"> {
6
+ import { ComboBoxProps } from "./ComboBox";
7
+ export interface ComboboxHookProps<Item = string, S extends SelectionStrategy = "default"> extends Partial<Omit<DropdownHookProps, "id" | "onKeyDown">>, Pick<InputProps, "onBlur" | "onChange" | "onFocus" | "onSelect">, Pick<ComboBoxProps<Item>, "allowBackspaceClearsSelection" | "allowFreeText" | "defaultValue" | "initialHighlightedIndex" | "itemsToString" | "onDeselect" | "onSetSelectedText" | "value">, Omit<ComponentSelectionProps<Item, S>, "onSelect">, Omit<ListHookProps<Item, S>, "containerRef" | "defaultSelected" | "onSelect" | "selected"> {
7
8
  InputProps?: InputProps;
8
- allowFreeText?: boolean;
9
9
  ariaLabel?: string;
10
- defaultValue?: string;
11
10
  id: string;
12
- initialHighlightedIndex?: number;
13
11
  itemCount: number;
14
- itemsToString?: (items: Item[]) => string;
15
12
  itemToString?: (item: Item) => string;
16
13
  listRef: RefObject<HTMLDivElement>;
17
- onSetSelectedText?: (text: string) => void;
18
- value?: string;
19
14
  }
20
15
  export interface ComboboxHookResult<Item, S extends SelectionStrategy> extends Pick<ListHookResult<Item>, "focusVisible" | "highlightedIndex" | "listControlProps" | "listHandlers">, Partial<DropdownHookResult> {
21
16
  inputProps: InputProps;
22
17
  onOpenChange: OpenChangeHandler;
23
18
  selected?: S extends MultiSelectionStrategy ? Item[] : Item | null;
24
19
  }
25
- export declare const useCombobox: <Item, S extends SelectionStrategy>({ allowFreeText, ariaLabel, collectionHook, defaultIsOpen, defaultSelected, defaultValue, onBlur, onFocus, onChange, onSelect, id, initialHighlightedIndex, isOpen: isOpenProp, itemCount, itemsToString, itemToString, listRef, onOpenChange, onSelectionChange, onSetSelectedText, selected: selectedProp, selectionStrategy, value: valueProp, InputProps: inputProps, }: ComboboxHookProps<Item, S>) => ComboboxHookResult<Item, S>;
20
+ export declare const useCombobox: <Item, S extends SelectionStrategy>({ allowBackspaceClearsSelection, allowFreeText, ariaLabel, collectionHook, defaultIsOpen, defaultSelected, defaultValue, onBlur, onFocus, onChange, onDeselect, onSelect, id, initialHighlightedIndex, isOpen: isOpenProp, itemCount, itemsToString, itemToString, listRef, onOpenChange, onSelectionChange, onSetSelectedText, selected: selectedProp, selectionKeys, selectionStrategy, value: valueProp, InputProps: inputProps, }: ComboboxHookProps<Item, S>) => ComboboxHookResult<Item, S>;
@@ -25,6 +25,7 @@ export interface SourceGroup<T> {
25
25
  export type CollectionOptions<T> = {
26
26
  collapsibleHeaders?: boolean;
27
27
  defaultExpanded?: boolean;
28
+ disableFilter?: boolean;
28
29
  filterPattern?: string;
29
30
  getFilterRegex?: (inputValue: string) => RegExp;
30
31
  getItemId?: (indexOfItem: number) => string;