@wavv/ui 1.2.4 → 1.2.5-beta.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.
@@ -7,7 +7,9 @@ declare type MultiSelectProps = {
7
7
  /** The list of selected options */
8
8
  items: DropdownOption[];
9
9
  /** A function that gives control of the list items to the user */
10
- children?: (listOpen: boolean) => ReactNode;
10
+ children?: (listOpen: boolean, disabled: boolean) => ReactNode;
11
+ /** Text to display in place of the conplete list of items */
12
+ listLabel?: string;
11
13
  /** Text to display in front of the list of selected items */
12
14
  listText?: string;
13
15
  /** The name of the items list to display (1/5 items) */
@@ -29,5 +31,5 @@ declare type MultiSelectProps = {
29
31
  /** The function to be called when the input is updated */
30
32
  onTextChange?: (text: string) => void;
31
33
  } & Width & Margin;
32
- declare const MultiSelect: ({ children, options, items, listText, itemsTitle, maxItems, placeholder, width, filter, restrictInput, disabled, addItem, removeItem, onTextChange, ...props }: MultiSelectProps) => JSX.Element;
34
+ declare const MultiSelect: ({ children, options, items, listLabel, listText, itemsTitle, maxItems, placeholder, width, filter, restrictInput, disabled, addItem, removeItem, onTextChange, ...props }: MultiSelectProps) => JSX.Element;
33
35
  export default MultiSelect;
package/build/index.d.ts CHANGED
@@ -2350,7 +2350,9 @@ declare type MultiSelectProps = {
2350
2350
  /** The list of selected options */
2351
2351
  items: OptionItem[];
2352
2352
  /** A function that gives control of the list items to the user */
2353
- children?: (listOpen: boolean) => ReactNode;
2353
+ children?: (listOpen: boolean, disabled: boolean) => ReactNode;
2354
+ /** Text to display in place of the conplete list of items */
2355
+ listLabel?: string;
2354
2356
  /** Text to display in front of the list of selected items */
2355
2357
  listText?: string;
2356
2358
  /** The name of the items list to display (1/5 items) */
@@ -2372,7 +2374,7 @@ declare type MultiSelectProps = {
2372
2374
  /** The function to be called when the input is updated */
2373
2375
  onTextChange?: (text: string) => void;
2374
2376
  } & Width & Margin;
2375
- declare const MultiSelect: ({ children, options, items, listText, itemsTitle, maxItems, placeholder, width, filter, restrictInput, disabled, addItem, removeItem, onTextChange, ...props }: MultiSelectProps) => JSX.Element;
2377
+ declare const MultiSelect: ({ children, options, items, listLabel, listText, itemsTitle, maxItems, placeholder, width, filter, restrictInput, disabled, addItem, removeItem, onTextChange, ...props }: MultiSelectProps) => JSX.Element;
2376
2378
 
2377
2379
  declare const Notification: _emotion_styled.StyledComponent<{
2378
2380
  theme?: _emotion_react.Theme | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavv/ui",
3
- "version": "1.2.4",
3
+ "version": "1.2.5-beta.1",
4
4
  "files": [
5
5
  "build/**/*"
6
6
  ],