@companycam/slab-web 2.2.1 → 2.2.2

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,14 +1,13 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
2
  import { Row, CellContext, ColumnDef, ColumnSort, OnChangeFn, SortingState } from '@tanstack/react-table';
3
3
  import { CellSize } from '../shared/types';
4
- type FilteredCellSize = Exclude<CellSize, 'auto'>;
5
- type TableProps<T> = ComponentPropsWithRef<'table'> & {
4
+ export type TableProps<T> = ComponentPropsWithRef<'table'> & {
6
5
  defaultData: readonly T[];
7
6
  /** Pulls in our spacing tokens for easy margin setting (e.g., `ccMargin="0 m xl"`). */
8
7
  ccMargin?: string;
9
8
  columns: readonly Readonly<ColumnDef<T, unknown>>[];
10
9
  /** Make sure this matches the number of `columns` */
11
- columnSizes: readonly FilteredCellSize[];
10
+ columnSizes: readonly CellSize[];
12
11
  /** Array of columns to sort by default, provided column id and whether or not sort should be descending */
13
12
  defaultSortedColumns?: readonly Readonly<{
14
13
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companycam/slab-web",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "main": "./index.js",
5
5
  "module": "./index.mjs",
6
6
  "types": "./index.d.ts",