@aivenio/aquarium 1.36.1 → 1.37.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.
@@ -0,0 +1,26 @@
1
+ import { type DropdownMenuItemsComponent } from '../src/molecules/DropdownMenu/DropdownMenu';
2
+ export declare type CommonContextualMenuProps = {
3
+ /**
4
+ * Menu items definition. Can either be static collection of items or callback function
5
+ * that returns the items.
6
+ */
7
+ menu: DropdownMenuItemsComponent;
8
+ /**
9
+ * @deprecated Use menuAriaLabel instead.
10
+ * Optional label for menu that will be used as aria-label attribute.
11
+ */
12
+ menuLabel?: string;
13
+ /**
14
+ * Optional aria-label for menu that will be used as aria-label attribute. Defaults to 'menuLabel' or 'Context menu'.
15
+ */
16
+ menuAriaLabel?: string;
17
+ /**
18
+ * Menu callback function that gets called whenever an item from the menu is selected.
19
+ * @param action menu item action type
20
+ */
21
+ onAction: (action: number | string) => void;
22
+ /**
23
+ * Handler that is called when the menu's open state changes.
24
+ */
25
+ onMenuOpenChange?: (isOpen: boolean) => void;
26
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29udGV4dHVhbE1lbnUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90eXBlcy9Db250ZXh0dWFsTWVudS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aivenio/aquarium",
3
- "version": "1.36.1",
3
+ "version": "1.37.0",
4
4
  "description": "Aiven Aquarium design system",
5
5
  "main": "dist/system.cjs",
6
6
  "module": "dist/system.mjs",