@royaloperahouse/harmonic 0.9.3 → 0.10.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.
@@ -0,0 +1,9 @@
1
+ export declare type PaginationNavProps = {
2
+ page: number;
3
+ children: React.ReactNode;
4
+ onPageChange?: (page: number) => void;
5
+ baseUrl?: string;
6
+ keyProp?: string;
7
+ testId?: string;
8
+ ariaLabel?: string;
9
+ };
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
- import { Colors } from './types';
3
2
  export interface ContentProps {
4
3
  content: string | ReactNode;
5
4
  }
@@ -7,42 +6,26 @@ export interface CellProps {
7
6
  cell: ReactNode;
8
7
  cellIndex: number;
9
8
  columns: number;
10
- lineColor: Colors;
11
9
  }
12
10
  export declare type TableRowData = Array<Record<string, unknown>>;
13
11
  export interface RowProps {
14
12
  row: TableRowData;
15
13
  rowIndex: number;
16
14
  columns: number;
17
- lineColor: Colors;
18
15
  }
19
16
  export interface ITableProps {
20
- /**
21
- * Number of columns in table
22
- */
17
+ /** Number of columns in table */
23
18
  columns: number;
24
- /**
25
- * Headings array
26
- */
19
+ /** Headings array */
27
20
  headings?: string[];
28
- /**
29
- * Table content
30
- */
21
+ /** Table content */
31
22
  children: ReactNode;
32
- /**
33
- * Line divider color
34
- */
35
- lineColors?: Colors;
36
- /**
37
- * Rows in table per page for pagination
38
- */
23
+ /** Rows in table per page for pagination */
39
24
  rowsPerPage: number;
40
- /**
41
- * Pagination
42
- */
25
+ /** Enable pagination */
43
26
  pagination?: boolean;
44
- /**
45
- * Description - for Accessibility, aria-describedby prop
46
- */
27
+ /** Description for accessibility (aria-describedby) */
47
28
  description?: string;
29
+ /** Custom CSS classes */
30
+ className?: string;
48
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "0.9.3",
3
+ "version": "0.10.0",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",