@muraldevkit/ui-toolkit 4.45.0 → 4.45.1
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.
|
@@ -7,7 +7,6 @@ type RenderPropFn = ({ closeMenu }: {
|
|
|
7
7
|
export interface MrlPopoverProps {
|
|
8
8
|
/**
|
|
9
9
|
* Set initial state of menu
|
|
10
|
-
*
|
|
11
10
|
* @default { actionType: null, isOpen: false }
|
|
12
11
|
*/
|
|
13
12
|
actionState?: ActionState;
|
|
@@ -35,7 +34,6 @@ export interface MrlPopoverProps {
|
|
|
35
34
|
disableClickOutside?: boolean;
|
|
36
35
|
/**
|
|
37
36
|
* Disable flipping of the popover when it goes off the screen
|
|
38
|
-
*
|
|
39
37
|
* @default false
|
|
40
38
|
*/
|
|
41
39
|
disableFlipping?: boolean;
|
|
@@ -62,7 +60,6 @@ export interface MrlPopoverProps {
|
|
|
62
60
|
* Horizontal and vertical alignment of the menu relative to the trigger element
|
|
63
61
|
*
|
|
64
62
|
* This does not impact submenus
|
|
65
|
-
*
|
|
66
63
|
* @default 'bottom'
|
|
67
64
|
*/
|
|
68
65
|
position?: MenuPosition;
|
|
@@ -87,13 +84,11 @@ export interface MrlPopoverProps {
|
|
|
87
84
|
triggerRef?: React.RefObject<HTMLElement>;
|
|
88
85
|
/**
|
|
89
86
|
* If the menu should be rendered with the inverse theme
|
|
90
|
-
*
|
|
91
87
|
* @default 'primary'
|
|
92
88
|
*/
|
|
93
89
|
kind?: 'primary' | 'inverse';
|
|
94
90
|
/**
|
|
95
91
|
* If the menu should have a pointer element
|
|
96
|
-
*
|
|
97
92
|
* @default false
|
|
98
93
|
*/
|
|
99
94
|
point?: boolean;
|
|
@@ -114,7 +109,6 @@ export interface MrlPopoverProps {
|
|
|
114
109
|
onOpen?: () => void;
|
|
115
110
|
/**
|
|
116
111
|
* Callback to be called when the menu is closed
|
|
117
|
-
*
|
|
118
112
|
* @param type - type of close event
|
|
119
113
|
*/
|
|
120
114
|
onClose?: (type?: string) => void;
|
|
@@ -127,7 +121,6 @@ export interface MrlPopoverProps {
|
|
|
127
121
|
* MrlPopover
|
|
128
122
|
*
|
|
129
123
|
* Renders a popover component with position and alignment relative to a trigger element
|
|
130
|
-
*
|
|
131
124
|
* @param {MrlPopoverProps} props - The props for the MrlPopover component
|
|
132
125
|
* @returns {Element} - rendered MrlPopover component
|
|
133
126
|
*/
|