@muraldevkit/ui-toolkit 2.30.1 → 2.31.0

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
- kind?: 'default' | 'compact';
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?: MenuPosition) => ElementScrollStyles | null;
21
+ export declare const useBrowserEdgeScroll: (elementRef: React.RefObject<HTMLElement>, elementPosition: MenuPosition | undefined, elementAlign: MenuAlignment, disable?: boolean) => ElementScrollStyles | null;
20
22
  export {};
@@ -49,6 +49,10 @@ export interface MrlTableItem extends Record<string, unknown> {
49
49
  * A unique identifier for the row item.
50
50
  */
51
51
  id: MrlTableItemId;
52
+ /**
53
+ * This makes the row item not selectable.
54
+ */
55
+ isSelectable?: boolean;
52
56
  }
53
57
  export type MrlTableColumnSticky = 'left' | 'right';
54
58
  export interface MrlSmartTableColumn {
@@ -17,6 +17,19 @@ export declare const SAMPLE_ITEMS: {
17
17
  name: string;
18
18
  type: string;
19
19
  }[];
20
+ export declare const SAMPLE_ITEMS_WITH_NON_SELECTABLE_ITEM: ({
21
+ dateModified: string;
22
+ id: string;
23
+ name: string;
24
+ type: string;
25
+ isSelectable?: undefined;
26
+ } | {
27
+ dateModified: string;
28
+ id: string;
29
+ isSelectable: boolean;
30
+ name: string;
31
+ type: string;
32
+ })[];
20
33
  export declare const SAMPLE_STICKY_COLUMNS: ({
21
34
  allowsSorting: boolean;
22
35
  id: string;