@wavv/ui 1.6.0 → 1.6.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.
@@ -1,7 +1,8 @@
1
1
  import { HTMLProps, ReactNode } from 'react';
2
- import { Height } from '../types';
2
+ import { As, Height, MaxHeight } from '../types';
3
+ type DefaultBodyProps = Omit<HTMLProps<HTMLTableSectionElement>, 'as'> & As;
3
4
  type BodyProps = {
4
5
  children: ReactNode;
5
- } & Height & HTMLProps<HTMLTableSectionElement>;
6
- declare const Body: ({ children, height }: BodyProps) => JSX.Element;
6
+ } & Height & MaxHeight & DefaultBodyProps;
7
+ declare const Body: ({ children, height, maxHeight, ...rest }: BodyProps) => JSX.Element;
7
8
  export default Body;
@@ -10,9 +10,9 @@ declare const Table: {
10
10
  sorted?: import("./types").SortDir | undefined;
11
11
  sortKey?: string | undefined;
12
12
  }) => JSX.Element;
13
- Body: ({ children, height }: {
13
+ Body: ({ children, height, maxHeight, ...rest }: {
14
14
  children: ReactNode;
15
- } & import("../types").Height & import("react").HTMLProps<HTMLTableSectionElement>) => JSX.Element;
15
+ } & import("../types").Height & import("../types").MaxHeight & Omit<import("react").HTMLProps<HTMLTableSectionElement>, "as"> & import("../types").As) => JSX.Element;
16
16
  Row: ({ children, columns, onClick, ...rest }: import("./types").TableHeaderRow) => JSX.Element;
17
17
  Column: ({ children, contentPosition, defaultValue, padding, paddingTop, paddingBottom, paddingRight, paddingLeft, }: {
18
18
  children?: ReactNode;