@muraldevkit/ui-toolkit 2.62.4-dev.1 → 2.62.4-dev.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { RefObject } from 'react';
|
|
2
|
-
import { MenuPosition, MenuAlignment, ActionState, CustomMenuPosition } from '../constants';
|
|
2
|
+
import { MenuPosition, MenuAlignment, MenuSpacing, ActionState, CustomMenuPosition } from '../constants';
|
|
3
3
|
export interface MrlMenuProps {
|
|
4
4
|
/** Custom position for the menu */
|
|
5
5
|
customPosition?: CustomMenuPosition;
|
|
@@ -32,7 +32,7 @@ export interface MrlMenuProps {
|
|
|
32
32
|
*
|
|
33
33
|
* @default 'default'
|
|
34
34
|
*/
|
|
35
|
-
spacing?:
|
|
35
|
+
spacing?: MenuSpacing;
|
|
36
36
|
/**
|
|
37
37
|
* Offset of the menu from the trigger element in pixels
|
|
38
38
|
*
|
|
@@ -4,6 +4,7 @@ export type MenuAlignment = 'start' | 'end' | 'center';
|
|
|
4
4
|
export type HorizontalAlign = 'left' | 'right' | 'center';
|
|
5
5
|
export type VerticalAlign = 'top' | 'bottom' | 'center';
|
|
6
6
|
export type MenuIgnore = 'ignore';
|
|
7
|
+
export type MenuSpacing = 'default' | 'compact';
|
|
7
8
|
export interface CustomMenuPosition {
|
|
8
9
|
left: number;
|
|
9
10
|
top: number;
|