@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.
@@ -64,10 +64,11 @@ export interface MrlPopoverProps {
64
64
  */
65
65
  position?: MenuPosition;
66
66
  /**
67
- * Vertical and horizontal alignment of the popover relative to the position with the trigger
68
- * - 'left' and 'right' work with position 'top' and 'bottom'
69
- * - 'top' and 'bottom' work with position 'left' and 'right'
70
- * - 'center' works with all positions
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: string, alignment: MenuAlignment) => string;
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 {RefObject<HTMLElement>} triggerRef - Reference to the DOM element that triggers the menu.
9
- * @param {RefObject<HTMLElement>} elementRef - Reference to the DOM element that is the menu.
10
- * @param {Alignment} menuAlign - The alignment configuration of the menu.
11
- * @param {boolean} isElementVisible - Tells the hook if the element is visible. If false, the hook will not calculate the position.
12
- * @param {number} menuOffset - The offset of the menu from the trigger element.
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.