@commercetools-uikit/dropdown-menu 19.9.0 → 19.11.0

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.
@@ -374,7 +374,7 @@ DropdownMenu.defaultProps = defaultProps;
374
374
  DropdownMenu.ListMenuItem = DropdownListMenuItem;
375
375
 
376
376
  // NOTE: This string will be replaced on build time with the package version.
377
- var version = "19.9.0";
377
+ var version = "19.11.0";
378
378
 
379
379
  exports["default"] = DropdownMenu;
380
380
  exports.useDropdownMenuContext = useDropdownMenuContext;
@@ -335,7 +335,7 @@ DropdownMenu.defaultProps = defaultProps;
335
335
  DropdownMenu.ListMenuItem = DropdownListMenuItem;
336
336
 
337
337
  // NOTE: This string will be replaced on build time with the package version.
338
- var version = "19.9.0";
338
+ var version = "19.11.0";
339
339
 
340
340
  exports["default"] = DropdownMenu;
341
341
  exports.useDropdownMenuContext = useDropdownMenuContext;
@@ -352,6 +352,6 @@ DropdownMenu.defaultProps = defaultProps;
352
352
  DropdownMenu.ListMenuItem = DropdownListMenuItem;
353
353
 
354
354
  // NOTE: This string will be replaced on build time with the package version.
355
- var version = "19.9.0";
355
+ var version = "19.11.0";
356
356
 
357
357
  export { DropdownMenu as default, useDropdownMenuContext, version };
@@ -2,11 +2,31 @@ import { type ReactElement, type ReactNode } from 'react';
2
2
  import { type TMaxProp } from '@commercetools-uikit/constraints';
3
3
  import { DropdownListMenuItem } from "./menu/index.js";
4
4
  export type TDropdownMenuProps = {
5
+ /**
6
+ * The position of the menu relative to the trigger element.
7
+ */
5
8
  menuPosition?: 'left' | 'right';
9
+ /**
10
+ * The maximum height for the menu in pixels.
11
+ * By default, the max height will be the available space between the trigger element and the bottom of the viewport.
12
+ */
6
13
  menuMaxHeight?: number;
14
+ /**
15
+ * The element that triggers the dropdown.
16
+ */
7
17
  triggerElement: ReactElement;
18
+ /**
19
+ * The type of the menu.
20
+ * The 'default' type just renders a dropdown container but the 'list' type is intended to be used with the DropdownMenu.ListMenuItem component.
21
+ */
8
22
  menuType?: 'default' | 'list';
23
+ /**
24
+ * The horizontal constraint of the menu.
25
+ */
9
26
  menuHorizontalConstraint?: TMaxProp;
27
+ /**
28
+ * The content of the dropdown.
29
+ */
10
30
  children: ReactNode;
11
31
  };
12
32
  declare function DropdownMenu(props: TDropdownMenuProps): import("@emotion/react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/dropdown-menu",
3
3
  "description": "The Dropdown Menu component represents a component that triggers the rendering of a floating menu.",
4
- "version": "19.9.0",
4
+ "version": "19.11.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,14 +21,14 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/accessible-button": "19.9.0",
25
- "@commercetools-uikit/constraints": "19.9.0",
26
- "@commercetools-uikit/design-system": "19.9.0",
27
- "@commercetools-uikit/hooks": "19.9.0",
28
- "@commercetools-uikit/secondary-button": "19.9.0",
29
- "@commercetools-uikit/spacings-inline": "19.9.0",
30
- "@commercetools-uikit/spacings-stack": "19.9.0",
31
- "@commercetools-uikit/utils": "19.9.0",
24
+ "@commercetools-uikit/accessible-button": "19.11.0",
25
+ "@commercetools-uikit/constraints": "19.11.0",
26
+ "@commercetools-uikit/design-system": "19.11.0",
27
+ "@commercetools-uikit/hooks": "19.11.0",
28
+ "@commercetools-uikit/secondary-button": "19.11.0",
29
+ "@commercetools-uikit/spacings-inline": "19.11.0",
30
+ "@commercetools-uikit/spacings-stack": "19.11.0",
31
+ "@commercetools-uikit/utils": "19.11.0",
32
32
  "@emotion/react": "^11.10.5",
33
33
  "@emotion/styled": "^11.10.5",
34
34
  "prop-types": "15.8.1",