@wavv/ui 1.7.6 → 1.7.8

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.
@@ -63,7 +63,7 @@ export type InputProps = {
63
63
  pointer?: boolean;
64
64
  /** Removes the padding from the input */
65
65
  textOnly?: boolean;
66
- /** Adds a search icon to the left of the input and a clear icon and funcitonality to the right */
66
+ /** Adds a search icon to the left of the input and a clear icon and functionality to the right */
67
67
  search?: boolean;
68
68
  /** Callback run after onFocus event */
69
69
  onFocus?: (event?: InputFocusEvent) => void;
@@ -121,7 +121,7 @@ declare const Input: import("react").ForwardRefExoticComponent<(Omit<{
121
121
  pointer?: boolean | undefined;
122
122
  /** Removes the padding from the input */
123
123
  textOnly?: boolean | undefined;
124
- /** Adds a search icon to the left of the input and a clear icon and funcitonality to the right */
124
+ /** Adds a search icon to the left of the input and a clear icon and functionality to the right */
125
125
  search?: boolean | undefined;
126
126
  /** Callback run after onFocus event */
127
127
  onFocus?: ((event?: InputFocusEvent) => void) | undefined;
@@ -178,7 +178,7 @@ declare const Input: import("react").ForwardRefExoticComponent<(Omit<{
178
178
  pointer?: boolean | undefined;
179
179
  /** Removes the padding from the input */
180
180
  textOnly?: boolean | undefined;
181
- /** Adds a search icon to the left of the input and a clear icon and funcitonality to the right */
181
+ /** Adds a search icon to the left of the input and a clear icon and functionality to the right */
182
182
  search?: boolean | undefined;
183
183
  /** Callback run after onFocus event */
184
184
  onFocus?: ((event?: InputFocusEvent) => void) | undefined;
@@ -1,6 +1,6 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { DropdownOption, InputProps } from './Dropdown';
3
- import { Width, Margin } from './types';
3
+ import { Width, Margin, MultiSelectRef } from './types';
4
4
  type DropdownProps = Omit<InputProps, 'children'>;
5
5
  type MultiSelectProps = {
6
6
  /** The list of dropdown options to display */
@@ -27,7 +27,7 @@ type MultiSelectProps = {
27
27
  disabled?: boolean;
28
28
  /** Hides the maxItems count and the itemsTitle */
29
29
  hideItemsInfo?: boolean;
30
- /** The selector (id or className) of the element the options should open in relataion to */
30
+ /** The selector (id or className) of the element the options should open in relation to */
31
31
  optionsParent?: string;
32
32
  /** Causes the MultiSelect to collapse if listLabel is also present */
33
33
  compact?: boolean;
@@ -42,5 +42,5 @@ type MultiSelectProps = {
42
42
  /** The function to be called when the input is updated */
43
43
  onTextChange?: (text: string) => void;
44
44
  } & Width & Margin & DropdownProps;
45
- declare const MultiSelect: ({ children, options, items, listLabel, listText, itemsTitle, maxItems, placeholder, width, filter, restrictInput, disabled, hideItemsInfo, optionsParent, compact, backgroundColor, borderless, addItem, removeItem, onTextChange, autoFocus, ...props }: MultiSelectProps) => JSX.Element;
45
+ declare const MultiSelect: React.ForwardRefExoticComponent<Omit<MultiSelectProps, "ref"> & React.RefAttributes<MultiSelectRef>>;
46
46
  export default MultiSelect;
@@ -51,6 +51,7 @@ export type InputRef = {
51
51
  blur: () => void;
52
52
  hasFocus: boolean;
53
53
  };
54
+ export type MultiSelectRef = Omit<InputRef, 'hasFocus'>;
54
55
  export type AudioRef = {
55
56
  play?: () => void;
56
57
  pause?: () => void;
@@ -43,7 +43,7 @@ export type { ITheme, ThemeProp } from './theme/ThemeTypes';
43
43
  export type { IconNames } from './components/Icon/icons';
44
44
  export type { DropdownOption } from './components/Dropdown';
45
45
  export type { Item as TransferItem, Action as TransferAction, Next as TransferNext } from './components/TransferList';
46
- export type { AudioRef, DraftEditorRef, InputRef, Margin, Padding, Position, MaxWidth, MaxHeight, MaxWidthHeight, Width, Height, WidthHeight, MarginPadding, FlexPosition, As, } from './components/types';
46
+ export type { AudioRef, DraftEditorRef, InputRef, MultiSelectRef, Margin, Padding, Position, MaxWidth, MaxHeight, MaxWidthHeight, Width, Height, WidthHeight, MarginPadding, FlexPosition, As, } from './components/types';
47
47
  export { default as useEventListener } from './hooks/useEventListener';
48
48
  export { default as useOnClickOutside } from './hooks/useOnClickOutside';
49
49
  export { default as useSelect } from './hooks/useSelect';