@popmenu/table 0.64.0 → 0.65.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.
@@ -0,0 +1 @@
1
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"chip" | "label">;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { TableProps } from './TableProps';
3
3
  declare const defaultTableProps: {
4
+ enableSortingRemoval: boolean;
4
5
  fullWidth: boolean;
5
6
  sortable: boolean;
6
7
  searchable: boolean;
@@ -9,6 +10,7 @@ declare type DefaultTableProps = TableProps & typeof defaultTableProps;
9
10
  export declare const Table: {
10
11
  (props: DefaultTableProps): JSX.Element;
11
12
  defaultProps: {
13
+ enableSortingRemoval: boolean;
12
14
  fullWidth: boolean;
13
15
  sortable: boolean;
14
16
  searchable: boolean;
@@ -10,6 +10,8 @@ export interface TableProps<T = unknown> {
10
10
  data: Array<T>;
11
11
  /** List of column definitions. */
12
12
  columns: Array<Column<T>>;
13
+ /** Change column sorting change pattern - true: 'none' -> 'desc' -> 'asc' -> 'none' -> ..., false: 'none' -> 'desc' -> 'asc' -> 'desc' -> 'asc' -> ... */
14
+ enableSortingRemoval?: boolean;
13
15
  /** Controls table loading state. */
14
16
  loading?: boolean;
15
17
  /** Forces a table to take up the width of its container when true. */
@@ -34,4 +36,6 @@ export interface TableProps<T = unknown> {
34
36
  pageCount?: number;
35
37
  /** A React Component to be rendered when the data set is empty. */
36
38
  Empty?: () => JSX.Element;
39
+ /** A string used to construct ids and tags used throughout the table for tagging inner elements. ie: data-tour-id. */
40
+ idBase?: string;
37
41
  }