@muraldevkit/ui-toolkit 2.47.1-dev.1 → 2.47.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/hooks/useTriggerPosition/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/styles/MrlSwitchStandalone/module.scss +43 -43
- package/package.json +1 -1
- package/dist/components/menu/demo/MenuWithIconButtonTrigger.d.ts +0 -19
- package/dist/components/popover/demo/PopoverWithIconButton.d.ts +0 -21
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
1
2
|
import { Alignment, Position } from './constants';
|
|
2
3
|
/**
|
|
3
4
|
* useTriggerPosition hook.
|
|
@@ -12,4 +13,4 @@ import { Alignment, Position } from './constants';
|
|
|
12
13
|
* @param disable - Whether to disable the hook.
|
|
13
14
|
* @returns {Position} The calculated position of the menu element.
|
|
14
15
|
*/
|
|
15
|
-
export declare const useTriggerPosition: (triggerRef:
|
|
16
|
+
export declare const useTriggerPosition: (triggerRef: RefObject<HTMLElement> | undefined, elementRef: RefObject<HTMLElement>, menuAlign: Alignment, isElementVisible?: boolean, menuOffset?: number, disable?: boolean) => Position;
|