@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.
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/components/MultiSelect.d.ts +4 -1
- package/build/esm/index.js +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/components/MultiSelect.d.ts +4 -1
- package/build/index.d.ts +4 -1
- package/package.json +1 -1
|
@@ -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;
|