@wavv/ui 1.3.0-beta.2 → 1.3.0-beta.3

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.
@@ -24,6 +24,9 @@ declare type MultiSelectProps = {
24
24
  restrictInput?: boolean | ((text: string) => boolean);
25
25
  /** Disables the Dropdown */
26
26
  disabled?: boolean;
27
+ /** The selector (id or className) of the element the options should open in relataion to */
28
+ optionsParent?: string;
29
+ /** Causes the MultiSelect to collapse if listLabel is also present */
27
30
  compact?: boolean;
28
31
  /** Function called after an item is selected */
29
32
  addItem: (item: DropdownOption | null) => void;
@@ -32,5 +35,5 @@ declare type MultiSelectProps = {
32
35
  /** The function to be called when the input is updated */
33
36
  onTextChange?: (text: string) => void;
34
37
  } & Width & Margin;
35
- declare const MultiSelect: ({ children, options, items, listLabel, listText, itemsTitle, maxItems, placeholder, width, filter, restrictInput, disabled, compact, addItem, removeItem, onTextChange, ...props }: MultiSelectProps) => JSX.Element;
38
+ declare const MultiSelect: ({ children, options, items, listLabel, listText, itemsTitle, maxItems, placeholder, width, filter, restrictInput, disabled, optionsParent, compact, addItem, removeItem, onTextChange, ...props }: MultiSelectProps) => JSX.Element;
36
39
  export default MultiSelect;
package/build/index.d.ts CHANGED
@@ -2367,6 +2367,9 @@ declare type MultiSelectProps = {
2367
2367
  restrictInput?: boolean | ((text: string) => boolean);
2368
2368
  /** Disables the Dropdown */
2369
2369
  disabled?: boolean;
2370
+ /** The selector (id or className) of the element the options should open in relataion to */
2371
+ optionsParent?: string;
2372
+ /** Causes the MultiSelect to collapse if listLabel is also present */
2370
2373
  compact?: boolean;
2371
2374
  /** Function called after an item is selected */
2372
2375
  addItem: (item: OptionItem | null) => void;
@@ -2375,7 +2378,7 @@ declare type MultiSelectProps = {
2375
2378
  /** The function to be called when the input is updated */
2376
2379
  onTextChange?: (text: string) => void;
2377
2380
  } & Width & Margin;
2378
- declare const MultiSelect: ({ children, options, items, listLabel, listText, itemsTitle, maxItems, placeholder, width, filter, restrictInput, disabled, compact, addItem, removeItem, onTextChange, ...props }: MultiSelectProps) => JSX.Element;
2381
+ declare const MultiSelect: ({ children, options, items, listLabel, listText, itemsTitle, maxItems, placeholder, width, filter, restrictInput, disabled, optionsParent, compact, addItem, removeItem, onTextChange, ...props }: MultiSelectProps) => JSX.Element;
2379
2382
 
2380
2383
  declare const Notification: _emotion_styled.StyledComponent<{
2381
2384
  theme?: _emotion_react.Theme | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavv/ui",
3
- "version": "1.3.0-beta.2",
3
+ "version": "1.3.0-beta.3",
4
4
  "files": [
5
5
  "build/**/*"
6
6
  ],