@muraldevkit/ui-toolkit 2.57.2 → 2.58.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 {};
@@ -99,6 +99,10 @@ export interface MrlSmartTableColumn {
99
99
  * the columns to be 'sticky'
100
100
  */
101
101
  sticky?: MrlTableColumnSticky;
102
+ /**
103
+ * A tooltip to display on the column header.
104
+ */
105
+ tooltip?: string;
102
106
  }
103
107
  /**
104
108
  * A set of item ids.
@@ -6,10 +6,17 @@ export declare const SAMPLE_COLUMNS: ({
6
6
  allowsSorting: boolean;
7
7
  id: string;
8
8
  name: string;
9
+ tooltip?: undefined;
10
+ } | {
11
+ allowsSorting: boolean;
12
+ id: string;
13
+ name: string;
14
+ tooltip: string;
9
15
  } | {
10
16
  id: string;
11
17
  name: string;
12
18
  allowsSorting?: undefined;
19
+ tooltip?: undefined;
13
20
  })[];
14
21
  export declare const SAMPLE_ITEMS: {
15
22
  dateModified: string;
@@ -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;