@codacy/ui-components 0.62.1 → 0.62.2

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.
@@ -84,7 +84,7 @@ export var Dropdown = function Dropdown(_ref) {
84
84
  }, attributes.popper, {
85
85
  size: size
86
86
  }), children);
87
- var containerElement = portal && document.querySelector('body');
87
+ var containerElement = portal && document.querySelector(portal === true ? 'body' : portal);
88
88
  return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
89
89
  value: {
90
90
  open: open,
@@ -6,7 +6,7 @@ import { Size } from '../theme';
6
6
  import { InputProps } from '../Input/types';
7
7
  import { BoxProps } from '../Flexbox';
8
8
  export declare type DropdownPanelAlignment = 'left' | 'right';
9
- export declare type DropdownValueType = object | number | string | null;
9
+ export declare type DropdownValueType = Record<symbol | string | number, unknown> | number | string | null;
10
10
  export interface DropdownProps extends ContainerComponentProps, SpaceProps {
11
11
  /** The content of the dropdown button */
12
12
  trigger: React.ReactElement;
@@ -19,7 +19,7 @@ export interface DropdownProps extends ContainerComponentProps, SpaceProps {
19
19
  /** Initial selected value on start */
20
20
  initialValue?: DropdownValueType;
21
21
  /** Adds the panel object to a portal on the document's root; useful for dropdowns to be shown in a different context like an iframe. */
22
- portal?: boolean;
22
+ portal?: boolean | string;
23
23
  /** Callback to run when opening the dropdown */
24
24
  onOpen?: () => void;
25
25
  /** Callback to run when closing the dropdown */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/ui-components",
3
- "version": "0.62.1",
3
+ "version": "0.62.2",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",