@stenajs-webui/grid 18.9.2 → 18.9.3

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.
@@ -3,6 +3,7 @@ import { ReactNode } from "react";
3
3
  import { StandardTableConfig } from "../config/StandardTableConfig";
4
4
  import { TableContext } from "../context/StandardTableStateContext";
5
5
  import { StandardTableOnKeyDown, StandardTableOnSortOrderChange } from "../types/StandardTableEvents";
6
+ import { TableHeadProps } from "../../table-ui/components/table/TableHeadItem";
6
7
  export interface StandardTableProps<TItem, TColumnKey extends string, TColumnGroupKey extends string> {
7
8
  /**
8
9
  * Variant of table
@@ -29,6 +30,11 @@ export interface StandardTableProps<TItem, TColumnKey extends string, TColumnGro
29
30
  * Config for the table. Required.
30
31
  */
31
32
  config: StandardTableConfig<TItem, TColumnKey, TColumnGroupKey>;
33
+ /**
34
+ * Append tooltip to HTML element. This prop is passed to Tippy.
35
+ * This is useful to solve z-index problems.
36
+ */
37
+ appendTooltipTo?: TableHeadProps["appendTooltipTo"];
32
38
  /**
33
39
  * Items to list in the table.
34
40
  */
@@ -84,4 +90,4 @@ export interface StandardTableProps<TItem, TColumnKey extends string, TColumnGro
84
90
  onSortOrderChange?: StandardTableOnSortOrderChange<TColumnKey>;
85
91
  }
86
92
  export declare type StandardTableVariant = "relaxed" | "standard" | "condensed" | "compact";
87
- export declare const StandardTable: <TItem, TColumnKey extends string, TColumnGroupKey extends string>({ tableContext, config, columnOrder, columnGroupOrder, tableId, variant, onKeyDown, onSortOrderChange, ...props }: StandardTableProps<TItem, TColumnKey, TColumnGroupKey>) => JSX.Element;
93
+ export declare const StandardTable: <TItem, TColumnKey extends string, TColumnGroupKey extends string>({ tableContext, config, columnOrder, columnGroupOrder, tableId, variant, onKeyDown, onSortOrderChange, appendTooltipTo, ...props }: StandardTableProps<TItem, TColumnKey, TColumnGroupKey>) => JSX.Element;
@@ -1,9 +1,11 @@
1
1
  import * as React from "react";
2
+ import { TableHeadProps } from "../../table-ui/components/table/TableHeadItem";
2
3
  export interface StandardTableHeaderItemProps {
3
4
  columnId: string;
4
5
  disableBorderLeft?: boolean;
5
6
  borderFromGroup?: boolean | string;
6
7
  stickyHeader?: boolean;
7
8
  top?: string | number;
9
+ appendTooltipTo?: TableHeadProps["appendTooltipTo"];
8
10
  }
9
11
  export declare const StandardTableHeadItem: React.NamedExoticComponent<StandardTableHeaderItemProps>;
@@ -1,7 +1,9 @@
1
1
  import * as React from "react";
2
+ import { TableHeadProps } from "../../table-ui/components/table/TableHeadItem";
2
3
  interface StandardTableHeaderProps<TItem> {
3
4
  items?: Array<TItem>;
4
5
  height?: string;
6
+ appendTooltipTo?: TableHeadProps["appendTooltipTo"];
5
7
  }
6
- export declare const StandardTableHeadRow: React.MemoExoticComponent<(<TItem>({ items, height }: StandardTableHeaderProps<TItem>) => JSX.Element)>;
8
+ export declare const StandardTableHeadRow: React.MemoExoticComponent<(<TItem>({ items, appendTooltipTo, height, }: StandardTableHeaderProps<TItem>) => JSX.Element)>;
7
9
  export {};
@@ -1,5 +1,5 @@
1
1
  import { BoxProps } from "@stenajs-webui/core";
2
- import { ButtonWithPopoverProps } from "@stenajs-webui/tooltip";
2
+ import { ButtonWithPopoverProps, TooltipProps } from "@stenajs-webui/tooltip";
3
3
  import * as React from "react";
4
4
  import { SortOrderDirection, SortOrderIconVariant } from "./SortOrderIcon";
5
5
  export interface TableHeadProps extends BoxProps {
@@ -12,5 +12,6 @@ export interface TableHeadProps extends BoxProps {
12
12
  selected?: boolean;
13
13
  alignRight?: boolean;
14
14
  sortOrderIconVariant?: SortOrderIconVariant;
15
+ appendTooltipTo?: TooltipProps["appendTo"];
15
16
  }
16
17
  export declare const TableHeadItem: React.FC<TableHeadProps>;