@muraldevkit/ui-toolkit 2.29.1 → 2.29.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.
|
@@ -9,6 +9,15 @@ export interface MrlMenuProps {
|
|
|
9
9
|
clickOutsideEvent?: 'mouseup' | 'mousedown' | 'click';
|
|
10
10
|
/** Unique identifier for the menu */
|
|
11
11
|
id?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Use when the menu is embedded within another component
|
|
14
|
+
* Removes the following styles:
|
|
15
|
+
* - padding on the menu
|
|
16
|
+
* - drop shadow and border
|
|
17
|
+
*
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
isInternal?: boolean;
|
|
12
21
|
/**
|
|
13
22
|
* Private isSubMenu prop for use with MrlMenuItem
|
|
14
23
|
*
|
|
@@ -32,6 +41,9 @@ export interface MrlMenuProps {
|
|
|
32
41
|
menuOffset?: number;
|
|
33
42
|
/**
|
|
34
43
|
* Horizontal and vertical alignment of the menu relative to the trigger element
|
|
44
|
+
* - position 'left', 'right', 'top', 'bottom' position relative to the trigger
|
|
45
|
+
* - position 'static' renders the menu in place, not using the portal
|
|
46
|
+
* - position 'ignore' will not position the menu, allowing you to use the customPosition prop to position the element
|
|
35
47
|
*
|
|
36
48
|
* @default 'bottom'
|
|
37
49
|
*/
|
|
@@ -79,7 +91,7 @@ export interface MrlMenuProps {
|
|
|
79
91
|
* @param {MrlMenuProps} props - The props for the MrlMenu component
|
|
80
92
|
* @returns {Element} - rendered MrlMenu component
|
|
81
93
|
*/
|
|
82
|
-
export declare function MrlMenu({ actionState, alignment, children, customPosition, clickOutsideEvent, id, isSubMenu, spacing, menuOffset, position, triggerStopPropagation, onClose, triggerRef }: MrlMenuProps): JSX.Element;
|
|
94
|
+
export declare function MrlMenu({ actionState, alignment, children, customPosition, clickOutsideEvent, id, isInternal, isSubMenu, spacing, menuOffset, position, triggerStopPropagation, onClose, triggerRef }: MrlMenuProps): JSX.Element;
|
|
83
95
|
export declare namespace MrlMenu {
|
|
84
96
|
var componentType: string;
|
|
85
97
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export type MenuPosition = 'bottom' | 'left' | 'right' | 'top' | MenuIgnore;
|
|
2
|
+
export type MenuPosition = 'bottom' | 'left' | 'right' | 'top' | 'static' | MenuIgnore;
|
|
3
3
|
export type MenuAlignment = HorizontalAlign | VerticalAlign | MenuIgnore;
|
|
4
4
|
export type HorizontalAlign = 'left' | 'right' | 'center';
|
|
5
5
|
export type VerticalAlign = 'top' | 'bottom' | 'center';
|