@protonradio/proton-ui 0.11.4 → 0.11.5-beta.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.
package/dist/index.d.ts CHANGED
@@ -12,7 +12,6 @@ import { ReactElement } from 'react';
12
12
  import { ReactNode } from 'react';
13
13
  import { RefAttributes } from 'react';
14
14
  import { Selection as Selection_2 } from '@react-types/shared';
15
- import { TableColumnData as TableColumnData_2 } from '../Table';
16
15
  import { TooltipProps as TooltipProps_2 } from 'react-aria-components';
17
16
  import { TooltipTriggerComponentProps } from 'react-aria-components';
18
17
 
@@ -996,7 +995,7 @@ export declare const Table: (({ children, name }: TableProps) => JSX_2.Element)
996
995
  Cell: ({ ...props }: TableCellProps) => any;
997
996
  };
998
997
 
999
- export declare interface TableBodyProps {
998
+ declare interface TableBodyProps {
1000
999
  children: TableRowElement | TableRowElement[];
1001
1000
  }
1002
1001
 
@@ -1010,14 +1009,12 @@ export declare type TableCellData = {
1010
1009
 
1011
1010
  declare type TableCellElement = ReactElement<TableCellProps, typeof TableCell>;
1012
1011
 
1013
- export declare interface TableCellProps {
1012
+ declare interface TableCellProps {
1014
1013
  columnKey?: string;
1015
1014
  children?: ReactNode;
1016
1015
  colSpan?: number;
1017
1016
  }
1018
1017
 
1019
- export declare type TableCollection = ReturnType<typeof useTableCollection>;
1020
-
1021
1018
  declare const TableColumn: ({ ...props }: TableColumnProps) => any;
1022
1019
 
1023
1020
  export declare type TableColumnData = {
@@ -1029,7 +1026,7 @@ export declare type TableColumnData = {
1029
1026
 
1030
1027
  declare type TableColumnElement = ReactElement<TableColumnProps, typeof TableColumn>;
1031
1028
 
1032
- export declare interface TableColumnProps {
1029
+ declare interface TableColumnProps {
1033
1030
  id: string;
1034
1031
  children: ReactNode;
1035
1032
  "aria-sort"?: AriaAttributes["aria-sort"];
@@ -1040,7 +1037,7 @@ export declare type TableData = {
1040
1037
  rows: TableRowData[];
1041
1038
  };
1042
1039
 
1043
- export declare interface TableHeaderProps {
1040
+ declare interface TableHeaderProps {
1044
1041
  children: TableColumnElement | TableColumnElement[];
1045
1042
  isHidden?: boolean;
1046
1043
  }
@@ -1061,7 +1058,7 @@ export declare type TableRowData = {
1061
1058
 
1062
1059
  declare type TableRowElement = ReactElement<TableRowProps, typeof TableRow>;
1063
1060
 
1064
- export declare interface TableRowProps {
1061
+ declare interface TableRowProps {
1065
1062
  key?: string | number;
1066
1063
  children: TableCellElement | TableCellElement[];
1067
1064
  onClick?: () => void;
@@ -1268,25 +1265,6 @@ export declare function usePopoverTrigger(props?: OverlayTriggerProps): {
1268
1265
  state: OverlayTriggerState;
1269
1266
  };
1270
1267
 
1271
- /**
1272
- * Hook for managing table data structure and providing navigation methods
1273
- */
1274
- export declare function useTableCollection(data: TableData): {
1275
- columns: TableColumnData_2[];
1276
- rows: TableRowData[];
1277
- size: number;
1278
- firstItem: TableRowData;
1279
- lastItem: TableRowData;
1280
- isHeaderHidden: boolean;
1281
- hasVisibleHeader: boolean;
1282
- getTotalRowCount: number;
1283
- getRowAriaIndex: (rowIndex: number) => number;
1284
- getItemByKey: (key: string | number) => TableRowData | null;
1285
- getItemAfter: (key: string | number) => TableRowData | null;
1286
- getItemBefore: (key: string | number) => TableRowData | null;
1287
- getItemIndex: (key: string | number) => number;
1288
- };
1289
-
1290
1268
  export declare const useTheme: () => ThemeContextType;
1291
1269
 
1292
1270
  /**