@muraldevkit/ui-toolkit 2.58.0 → 2.59.0-dev.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.
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { MrlPopoverProps } from '../../popover';
3
- import '../../../styles/layers/layers.scss';
4
3
  export type MrlCalloutPopoverProps = Omit<MrlPopoverProps, 'children' | 'actionState' | 'isSubMenu' | 'triggerRef' | 'kind'>;
5
4
  interface MrlCalloutCTA {
6
5
  onClick: () => void;
@@ -1,7 +1,6 @@
1
1
  import React, { RefObject } from 'react';
2
2
  import { PortalProps } from '../../';
3
3
  import { MenuPosition, MenuAlignment, ActionState, CustomMenuPosition } from '../../menu/constants';
4
- import '../../../styles/layers/layers.scss';
5
4
  export interface MrlPopoverProps {
6
5
  /**
7
6
  * Set initial state of menu
@@ -1,10 +1,12 @@
1
1
  import React from 'react';
2
- import '../../styles/layers/layers.scss';
2
+ import { PORTAL_LAYERS } from '../../utils/layers';
3
+ type PortalLayer = (typeof PORTAL_LAYERS)[keyof typeof PORTAL_LAYERS];
3
4
  export interface PortalProps extends React.HTMLAttributes<HTMLDivElement> {
4
5
  children: React.ReactNode;
5
6
  className?: string;
6
7
  ['data-qa']?: string;
7
8
  id?: string;
9
+ layer?: PortalLayer;
8
10
  }
9
11
  export declare const MRL_PORTAL_ID: "mrl-root-portal";
10
12
  /**
@@ -14,4 +16,5 @@ export declare const MRL_PORTAL_ID: "mrl-root-portal";
14
16
  * @param PortalProps Portal only takes children. Contact the platform team if you need to extend this.
15
17
  * @returns MrlPortal component
16
18
  */
17
- export declare const MrlPortal: ({ children, className, id, ...remainingProps }: PortalProps) => React.ReactElement | null;
19
+ export declare const MrlPortal: ({ children, className, id, layer, ...remainingProps }: PortalProps) => React.ReactElement | null;
20
+ export {};
@@ -2,7 +2,6 @@ import React, { ReactElement } from 'react';
2
2
  import { AttrsObject } from '../../../utils';
3
3
  import { MrlTooltipAnchor, MrlTooltipPosition, MrlTooltipVariant } from '../constants';
4
4
  import '../../../styles/shared/a11y-helpers/a11y.global.scss';
5
- import '../../../styles/layers/layers.scss';
6
5
  interface MrlTooltipProps {
7
6
  /** The arrow position of the tooltip in relation to its trigger's content */
8
7
  anchor?: MrlTooltipAnchor;