@muraldevkit/ui-toolkit 2.30.0 → 2.30.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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { MenuPosition, MenuAlignment, ActionState } from '../constants';
|
|
3
3
|
interface MenuWithLinkProps {
|
|
4
4
|
menuAlign?: MenuPosition;
|
|
5
|
-
|
|
5
|
+
spacing?: 'default' | 'compact';
|
|
6
6
|
alignment?: MenuAlignment;
|
|
7
7
|
menuState?: ActionState;
|
|
8
8
|
onClose?: () => void;
|
|
@@ -14,5 +14,5 @@ interface MenuWithLinkProps {
|
|
|
14
14
|
* @param {MenuWithLinkProps} props - The props for the menu with trigger
|
|
15
15
|
* @returns {Element} The menu with trigger demo
|
|
16
16
|
*/
|
|
17
|
-
export declare const MenuWithLink: ({ menuAlign, alignment, menuState, onClose, triggerAlignment }: MenuWithLinkProps) => JSX.Element;
|
|
17
|
+
export declare const MenuWithLink: ({ menuAlign, alignment, menuState, spacing, onClose, triggerAlignment }: MenuWithLinkProps) => JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MenuPosition } from '../constants';
|
|
1
|
+
import { MenuAlignment, MenuPosition } from '../constants';
|
|
2
2
|
interface ElementScrollStyles {
|
|
3
3
|
isScrolling: boolean;
|
|
4
4
|
styles: AdjustedElementStyle;
|
|
5
5
|
}
|
|
6
|
-
interface AdjustedElementStyle {
|
|
6
|
+
export interface AdjustedElementStyle {
|
|
7
7
|
maxHeight: string;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
@@ -13,8 +13,10 @@ interface AdjustedElementStyle {
|
|
|
13
13
|
* and will provide a max height value for the element to allow it to scroll instead of bleed over
|
|
14
14
|
*
|
|
15
15
|
* @param elementRef - reference to the DOM element that is the menu
|
|
16
|
+
* @param elementPosition - the position of the menu
|
|
16
17
|
* @param elementAlign - the alignment of the menu
|
|
18
|
+
* @param disable - disable the hook from running
|
|
17
19
|
* @returns AdjustedElementStyle - returns the new updated style for scrolling the menu
|
|
18
20
|
*/
|
|
19
|
-
export declare const useBrowserEdgeScroll: (elementRef: React.RefObject<HTMLElement>, elementAlign?:
|
|
21
|
+
export declare const useBrowserEdgeScroll: (elementRef: React.RefObject<HTMLElement>, elementPosition: MenuPosition | undefined, elementAlign: MenuAlignment, disable?: boolean) => ElementScrollStyles | null;
|
|
20
22
|
export {};
|