@retailmenot/anchor
Version:
A React UI Library by RetailMeNot
54 lines (53 loc) • 3.19 kB
TypeScript
import * as React from 'react';
import { WidthProps, HeightProps, MaxWidthProps, MinWidthProps, TextAlignProps, FontSizeProps, FontWeightProps, BorderRadiusProps, BorderProps, SpaceProps } from '@xstyled/system';
export declare const sizeVariantStyles: (props: any) => any;
interface TableProps extends React.HTMLAttributes<HTMLTableElement>, FontSizeProps, FontWeightProps, BorderRadiusProps, BorderProps, MaxWidthProps, MinWidthProps, SpaceProps {
borderRadius?: string;
background?: string;
altBackground?: string;
width?: any;
height?: any;
size?: string;
}
export declare const Table: {
({ className, children, ...props }: TableProps): React.ReactElement<TableProps>;
defaultProps: {
color: string;
fontWeight: number;
border: string;
borderRadius: string;
background: string;
altBackground: string;
};
Row: ({ className, children, ...props }: TableRowProps) => React.ReactElement<TableRowProps>;
Body: ({ className, children, ...props }: TableBodyProps) => React.ReactElement<TableBodyProps>;
Head: ({ className, children, ...props }: TableHeadProps) => React.ReactElement<TableHeadProps>;
Footer: ({ className, children, ...props }: TableFooterProps) => React.ReactElement<TableFooterProps>;
Cell: ({ className, children, ...props }: TableCellProps) => React.ReactElement<TableCellProps>;
HeaderCell: ({ className, children, ...props }: TableHeaderCellProps) => React.ReactElement<TableHeaderCellProps>;
};
interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement>, HeightProps, SpaceProps {
background?: string;
}
export declare const TableRow: ({ className, children, ...props }: TableRowProps) => React.ReactElement<TableRowProps>;
interface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
}
export declare const TableBody: ({ className, children, ...props }: TableBodyProps) => React.ReactElement<TableBodyProps>;
interface TableHeadProps extends React.HTMLAttributes<HTMLTableSectionElement> {
}
export declare const TableHead: ({ className, children, ...props }: TableHeadProps) => React.ReactElement<TableHeadProps>;
interface TableFooterProps extends React.HTMLAttributes<HTMLTableSectionElement> {
}
export declare const TableFooter: ({ className, children, ...props }: TableFooterProps) => React.ReactElement<TableFooterProps>;
interface TableCellProps extends React.HTMLAttributes<HTMLTableCellElement>, FontSizeProps, FontWeightProps, TextAlignProps, MaxWidthProps, MinWidthProps, SpaceProps {
align?: 'center' | 'left' | 'right';
height?: any;
width?: any;
}
export declare const TableCell: ({ className, children, ...props }: TableCellProps) => React.ReactElement<TableCellProps>;
interface TableHeaderCellProps extends React.HTMLAttributes<HTMLTableHeaderCellElement>, FontSizeProps, FontWeightProps, TextAlignProps, WidthProps, MaxWidthProps, MinWidthProps, HeightProps, SpaceProps {
align?: 'center' | 'left' | 'right';
scope?: string;
}
export declare const TableHeaderCell: ({ className, children, ...props }: TableHeaderCellProps) => React.ReactElement<TableHeaderCellProps>;
export {};