@muraldevkit/ui-toolkit 2.29.3 → 2.29.5

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.
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { CustomMenuPosition } from '..';
3
+ import { MenuPosition, MenuAlignment } from '../constants';
4
+ interface MenuWithTriggerProps {
5
+ position?: MenuPosition;
6
+ spacing?: 'default' | 'compact';
7
+ alignment?: MenuAlignment;
8
+ onClose?: () => void;
9
+ customPosition?: CustomMenuPosition;
10
+ triggerAlignment?: 'left' | 'right' | 'center';
11
+ }
12
+ /**
13
+ * Demo of a menu that is manually opened by setting the action state.
14
+ *
15
+ * @param {MenuWithTriggerProps} props - The props for the menu with trigger
16
+ * @returns {Element} The menu with trigger demo
17
+ */
18
+ export declare const MenuWithActionState: ({ alignment, position, spacing, customPosition, onClose, triggerAlignment }: MenuWithTriggerProps) => JSX.Element;
19
+ export {};
@@ -1,6 +1,7 @@
1
1
  import React, { ReactElement } from 'react';
2
2
  import { AttrsObject } from '../../../utils';
3
3
  import { MrlTooltipAnchor, MrlTooltipPosition, MrlTooltipVariant } from '../constants';
4
+ import '../../../styles/shared/a11y-helpers/a11y.global.scss';
4
5
  interface MrlTooltipProps {
5
6
  /** The arrow position of the tooltip in relation to its trigger's content */
6
7
  anchor?: MrlTooltipAnchor;
@@ -18,7 +18,7 @@ interface MrlTooltipContentProps {
18
18
  /** The kind of tooltip to be rendered */
19
19
  kind: MrlTooltipVariant;
20
20
  /** The id of the tooltip used for aria-describedby in the parent component */
21
- id: string;
21
+ id?: string;
22
22
  /** The placement of the tooltip in relation to its trigger */
23
23
  position: MrlTooltipPosition;
24
24
  /** The tooltip content to display */