@indico-data/design-system 2.17.0 → 2.17.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,10 +1,2 @@
1
- import { TableProps as RDTTableProps, Direction as RDTDirection, Alignment as RDTAlignment } from 'react-data-table-component';
2
- export type Direction = `${RDTDirection}`;
3
- export type Alignment = `${RDTAlignment}`;
4
- export type TableProps<T> = Omit<RDTTableProps<T>, 'disabled' | 'progressPending' | 'direction' | 'subHeaderAlign'> & {
5
- isDisabled?: boolean;
6
- isLoading?: boolean;
7
- direction?: Direction;
8
- subHeaderAlign?: Alignment;
9
- };
1
+ import { TableProps } from './types';
10
2
  export declare const Table: <T>(props: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { TableProps as RDTTableProps, Direction as RDTDirection, Alignment as RDTAlignment, TableColumn as RDTTableColumn } from 'react-data-table-component';
2
+ export type Direction = `${RDTDirection}`;
3
+ export type Alignment = `${RDTAlignment}`;
4
+ export type TableColumn<T> = RDTTableColumn<T>;
5
+ export type TableProps<T> = Omit<RDTTableProps<T>, 'disabled' | 'progressPending' | 'direction' | 'subHeaderAlign'> & {
6
+ isDisabled?: boolean;
7
+ isLoading?: boolean;
8
+ direction?: Direction;
9
+ subHeaderAlign?: Alignment;
10
+ };
@@ -12,3 +12,5 @@ import { IconSizes } from './components/icons/types';
12
12
  export type { IconSizes };
13
13
  import { SelectOption } from './components/forms/select/types';
14
14
  export type { SelectOption };
15
+ import { TableProps, TableColumn, Direction, Alignment } from './components/table/types';
16
+ export type { TableProps, TableColumn, Direction, Alignment };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indico-data/design-system",
3
- "version": "2.17.0",
3
+ "version": "2.17.2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "lib/index.js",
@@ -1,23 +1,10 @@
1
1
  import DataTable, {
2
- TableProps as RDTTableProps,
3
2
  Direction as RDTDirection,
4
3
  Alignment as RDTAlignment,
5
4
  } from 'react-data-table-component';
6
5
 
7
6
  import { LoadingComponent } from './LoadingComponent';
8
-
9
- export type Direction = `${RDTDirection}`;
10
- export type Alignment = `${RDTAlignment}`;
11
-
12
- export type TableProps<T> = Omit<
13
- RDTTableProps<T>,
14
- 'disabled' | 'progressPending' | 'direction' | 'subHeaderAlign'
15
- > & {
16
- isDisabled?: boolean;
17
- isLoading?: boolean;
18
- direction?: Direction;
19
- subHeaderAlign?: Alignment;
20
- };
7
+ import { TableProps } from './types';
21
8
 
22
9
  export const Table = <T,>(props: TableProps<T>) => {
23
10
  const {
@@ -0,0 +1,20 @@
1
+ import {
2
+ TableProps as RDTTableProps,
3
+ Direction as RDTDirection,
4
+ Alignment as RDTAlignment,
5
+ TableColumn as RDTTableColumn,
6
+ } from 'react-data-table-component';
7
+
8
+ export type Direction = `${RDTDirection}`;
9
+ export type Alignment = `${RDTAlignment}`;
10
+ export type TableColumn<T> = RDTTableColumn<T>;
11
+
12
+ export type TableProps<T> = Omit<
13
+ RDTTableProps<T>,
14
+ 'disabled' | 'progressPending' | 'direction' | 'subHeaderAlign'
15
+ > & {
16
+ isDisabled?: boolean;
17
+ isLoading?: boolean;
18
+ direction?: Direction;
19
+ subHeaderAlign?: Alignment;
20
+ };
package/src/types.ts CHANGED
@@ -16,3 +16,6 @@ export type { IconSizes };
16
16
 
17
17
  import { SelectOption } from './components/forms/select/types';
18
18
  export type { SelectOption };
19
+
20
+ import { TableProps, TableColumn, Direction, Alignment } from './components/table/types';
21
+ export type { TableProps, TableColumn, Direction, Alignment };