@stokelp/ui 2.21.0 → 2.23.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.
@@ -7,7 +7,7 @@ import { ComponentVariants } from '../../utils/slots';
7
7
  export declare const TableContainer: StyledComponent<"div", TableContainerVariantProps>;
8
8
  declare const StyledTable: ComponentVariants<StyledComponent<"table", {}>, TableRecipe>;
9
9
  type StyledTableProps = ComponentProps<typeof StyledTable>;
10
- export interface TableProps extends StyledTableProps, Pick<TableProviderProps, 'onSortChange'> {
10
+ export interface TableProps extends StyledTableProps, Pick<TableProviderProps, 'onSortChange' | 'descriptor'> {
11
11
  }
12
12
  export declare const Table: FC<TableProps>;
13
13
  export declare const Thead: StyledComponent<"thead", {}>;
@@ -15,6 +15,7 @@ type Context = State & {
15
15
  };
16
16
  export interface TableProviderProps {
17
17
  onSortChange?: (descriptor: TableSortDescriptor<any>) => void;
18
+ descriptor?: TableSortDescriptor<any>;
18
19
  children: ReactNode;
19
20
  }
20
21
  export declare const useTable: () => Context;