@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.
- package/CHANGELOG.md +3 -0
- package/dist/components/atoms/TextField/TextField.style.d.ts +1 -1
- package/dist/components/molecules/Information/Information.style.d.ts +1 -1
- package/dist/components/molecules/Pagination/Pagination.d.ts +10 -3
- package/dist/components/molecules/Pagination/Pagination.style.d.ts +3 -3
- package/dist/components/molecules/Pagination/components/NavButtonOrLink.d.ts +4 -0
- package/dist/components/molecules/Pagination/components/PageLinkOrButton.d.ts +4 -0
- package/dist/components/molecules/Pagination/components/index.d.ts +2 -0
- package/dist/components/molecules/PromoWithTitle/PromoWithTitle.style.d.ts +1 -1
- package/dist/components/molecules/Table/Table.style.d.ts +1 -8
- package/dist/components/molecules/Table/components/DataCells.d.ts +7 -0
- package/dist/components/molecules/Table/components/HeaderCells.d.ts +7 -0
- package/dist/harmonic.cjs.development.js +197 -145
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +197 -145
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/pagination.d.ts +9 -0
- package/dist/types/tableTypes.d.ts +8 -25
- package/package.json +1 -1
|
@@ -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
|
}
|