@muraldevkit/ui-toolkit 4.59.0 → 4.59.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.
- package/dist/components/popover/MrlPopover/MrlPopover.d.ts +5 -4
- package/dist/components/popover/MrlPopover/utilities/get-data-point.d.ts +2 -2
- package/dist/hooks/useTriggerPosition/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/styles/MrlPopover/module.scss +4 -5
- package/dist/styles.css +1 -1
- package/package.json +2 -1
|
@@ -64,10 +64,11 @@ export interface MrlPopoverProps {
|
|
|
64
64
|
*/
|
|
65
65
|
position?: MenuPosition;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
68
|
-
* - '
|
|
69
|
-
* - '
|
|
70
|
-
*
|
|
67
|
+
* Alignment of the popover along the axis perpendicular to its position
|
|
68
|
+
* - For position 'top'/'bottom': 'start' = left, 'end' = right, 'center' = center horizontally
|
|
69
|
+
* - For position 'left'/'right': 'start' = top, 'end' = bottom, 'center' = center vertically
|
|
70
|
+
*
|
|
71
|
+
* @default 'center'
|
|
71
72
|
*
|
|
72
73
|
* This does not impact submenus
|
|
73
74
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MenuAlignment } from '../../../menu';
|
|
1
|
+
import { MenuAlignment, MenuPosition } from '../../../menu';
|
|
2
2
|
/**
|
|
3
3
|
* Returns the data-point attribute for the popover pointer
|
|
4
4
|
*
|
|
@@ -6,4 +6,4 @@ import { MenuAlignment } from '../../../menu';
|
|
|
6
6
|
* @param alignment - alignment of the menu
|
|
7
7
|
* @returns - data-point attribute value
|
|
8
8
|
*/
|
|
9
|
-
export declare const getDataPoint: (position:
|
|
9
|
+
export declare const getDataPoint: (position: MenuPosition, alignment: MenuAlignment) => string;
|
|
@@ -5,11 +5,11 @@ import { Alignment, Position } from './constants';
|
|
|
5
5
|
*
|
|
6
6
|
* Calculates the position of a menu element based on the alignment settings relative to a trigger element.
|
|
7
7
|
*
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
11
|
-
* @param
|
|
12
|
-
* @param
|
|
8
|
+
* @param triggerRef - Reference to the DOM element that triggers the menu.
|
|
9
|
+
* @param elementRef - Reference to the DOM element that is the menu.
|
|
10
|
+
* @param menuAlign - The alignment configuration of the menu.
|
|
11
|
+
* @param isElementVisible - Tells the hook if the element is visible. If false, the hook will not calculate the position.
|
|
12
|
+
* @param menuOffset - The offset of the menu from the trigger element.
|
|
13
13
|
* @param disable - Whether to disable the hook.
|
|
14
14
|
* @param disableFlipping - Whether to disable flipping logic when the menu overflows the screen.
|
|
15
15
|
* @returns {Position} The calculated position of the menu element.
|