@wavv/ui 1.7.9 → 1.7.11

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.
@@ -1,4 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { TableHeaderRow } from './types';
3
- declare const Header: ({ children, columns, columnStyles, ...rest }: TableHeaderRow) => JSX.Element;
3
+ type HeaderProps = {
4
+ /** Compensates for the misalignment caused by a scrollable Table Body */
5
+ alignToScrollBody?: boolean;
6
+ };
7
+ declare const Header: ({ children, columns, columnStyles, alignToScrollBody, ...rest }: HeaderProps & TableHeaderRow) => JSX.Element;
4
8
  export default Header;
@@ -1,8 +1,15 @@
1
1
  import { ReactNode } from 'react';
2
+ import { Width } from '../types';
2
3
  import { Data, TableProps } from './types';
3
4
  declare const Table: {
4
5
  <DataType extends Data>({ children, columns, data, ...rest }: TableProps<DataType>): JSX.Element;
5
- Header: ({ children, columns, columnStyles, ...rest }: import("./types").TableHeaderRow) => JSX.Element;
6
+ Header: ({ children, columns, columnStyles, alignToScrollBody, ...rest }: {
7
+ alignToScrollBody?: boolean | undefined;
8
+ } & {
9
+ columnStyles?: import("react").CSSProperties | undefined;
10
+ } & {
11
+ columns?: import("./types").Columns | undefined;
12
+ } & Width & import("../types").Margin & import("../types").Padding & import("react").HTMLProps<HTMLTableRowElement>) => JSX.Element;
6
13
  HeaderCell: ({ children, onClick, contentPosition, sorted, sortKey }: {
7
14
  children?: ReactNode;
8
15
  contentPosition?: import("../types").FlexPosition | undefined;