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