@atlaskit/dynamic-table 14.9.0 → 14.9.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.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/components/stateless.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/stateless.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/stateless.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/loading-container-advanced.d.ts +2 -2
- package/dist/types/components/managed-pagination.d.ts +1 -1
- package/dist/types/components/stateful.d.ts +2 -2
- package/dist/types/components/stateless.d.ts +1 -1
- package/dist/types/internal/helpers.d.ts +6 -6
- package/dist/types/styled/dynamic-table.d.ts +1 -1
- package/dist/types/styled/empty-body.d.ts +2 -2
- package/dist/types/styled/loading-container-advanced.d.ts +2 -2
- package/dist/types/styled/loading-container.d.ts +2 -2
- package/dist/types/styled/rankable/table-cell.d.ts +1 -1
- package/dist/types/styled/rankable/table-row.d.ts +1 -1
- package/dist/types/styled/table-head.d.ts +1 -1
- package/dist/types/styled/table-row.d.ts +1 -1
- package/dist/types/types.d.ts +3 -3
- package/dist/types-ts4.5/components/body.d.ts +112 -0
- package/dist/types-ts4.5/components/loading-container-advanced.d.ts +43 -0
- package/dist/types-ts4.5/components/loading-container.d.ts +18 -0
- package/dist/types-ts4.5/components/managed-pagination.d.ts +15 -0
- package/dist/types-ts4.5/components/rankable/body.d.ts +122 -0
- package/dist/types-ts4.5/components/rankable/table-cell.d.ts +14 -0
- package/dist/types-ts4.5/components/rankable/table-head-cell.d.ts +5 -0
- package/dist/types-ts4.5/components/rankable/table-row.d.ts +18 -0
- package/dist/types-ts4.5/components/stateful.d.ts +60 -0
- package/dist/types-ts4.5/components/stateless.d.ts +58 -0
- package/dist/types-ts4.5/components/table-head-cell.d.ts +19 -0
- package/dist/types-ts4.5/components/table-head.d.ts +18 -0
- package/dist/types-ts4.5/components/table-row.d.ts +11 -0
- package/dist/types-ts4.5/hoc/with-dimensions.d.ts +12 -0
- package/dist/types-ts4.5/hoc/with-sorted-page-rows.d.ts +117 -0
- package/dist/types-ts4.5/index.d.ts +2 -0
- package/dist/types-ts4.5/internal/constants.d.ts +5 -0
- package/dist/types-ts4.5/internal/helpers.d.ts +7 -0
- package/dist/types-ts4.5/styled/constants.d.ts +17 -0
- package/dist/types-ts4.5/styled/dynamic-table.d.ts +20 -0
- package/dist/types-ts4.5/styled/empty-body.d.ts +13 -0
- package/dist/types-ts4.5/styled/loading-container-advanced.d.ts +14 -0
- package/dist/types-ts4.5/styled/loading-container.d.ts +14 -0
- package/dist/types-ts4.5/styled/rankable/table-cell.d.ts +9 -0
- package/dist/types-ts4.5/styled/rankable/table-row.d.ts +13 -0
- package/dist/types-ts4.5/styled/table-cell.d.ts +4 -0
- package/dist/types-ts4.5/styled/table-head.d.ts +18 -0
- package/dist/types-ts4.5/styled/table-row.d.ts +10 -0
- package/dist/types-ts4.5/theme.d.ts +22 -0
- package/dist/types-ts4.5/types.d.ts +345 -0
- package/package.json +12 -4
- package/theme/package.json +2 -2
- package/types/package.json +2 -2
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import noop from '@atlaskit/ds-lib/noop';
|
|
4
|
+
import { RankEnd, RowType, SortOrderType, StatefulProps } from '../types';
|
|
5
|
+
interface State {
|
|
6
|
+
page?: number;
|
|
7
|
+
sortKey?: string;
|
|
8
|
+
sortOrder?: SortOrderType;
|
|
9
|
+
rows?: RowType[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* __Dynamic Table__
|
|
13
|
+
*
|
|
14
|
+
* A table displays rows of data with built-in pagination, sorting, and re-ordering functionality.
|
|
15
|
+
*
|
|
16
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/dynamic-table)
|
|
17
|
+
* - [Code](https://bitbucket.org/atlassian/atlassian-frontend/packages/design-system/dynamic-table)
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```jsx
|
|
21
|
+
* import DynamicTable from '@atlaskit/dynamic-table';
|
|
22
|
+
*
|
|
23
|
+
* export default function TableUncontrolled() {
|
|
24
|
+
* return (
|
|
25
|
+
* <DynamicTable
|
|
26
|
+
* head={head}
|
|
27
|
+
* rows={rows}
|
|
28
|
+
* rowsPerPage={10}
|
|
29
|
+
* defaultPage={1}
|
|
30
|
+
* loadingSpinnerSize="large"
|
|
31
|
+
* isLoading={false}
|
|
32
|
+
* />
|
|
33
|
+
* );
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export default class DynamicTable extends React.Component<StatefulProps, State> {
|
|
38
|
+
static defaultProps: {
|
|
39
|
+
defaultPage: number;
|
|
40
|
+
isLoading: boolean;
|
|
41
|
+
isFixedSize: boolean;
|
|
42
|
+
isRankable: boolean;
|
|
43
|
+
onSetPage: typeof noop;
|
|
44
|
+
onSort: typeof noop;
|
|
45
|
+
rowsPerPage: number;
|
|
46
|
+
};
|
|
47
|
+
state: {
|
|
48
|
+
page: number | undefined;
|
|
49
|
+
sortKey: string | undefined;
|
|
50
|
+
sortOrder: SortOrderType | undefined;
|
|
51
|
+
rows: RowType[] | undefined;
|
|
52
|
+
};
|
|
53
|
+
UNSAFE_componentWillReceiveProps(newProps: StatefulProps): void;
|
|
54
|
+
onSetPageHandler: (page: number, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
55
|
+
onSortHandler: ({ key, item, sortOrder }: any, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
56
|
+
onRankEndIfExistsHandler: (params: RankEnd) => void;
|
|
57
|
+
onRankEndHandler: (params: RankEnd) => void;
|
|
58
|
+
render(): JSX.Element;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import noop from '@atlaskit/ds-lib/noop';
|
|
4
|
+
import { StatelessProps as Props, RankEnd, RankStart, RowCellType } from '../types';
|
|
5
|
+
export interface State {
|
|
6
|
+
isRanking: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare class DynamicTable extends React.Component<Props, State> {
|
|
9
|
+
tableBody?: HTMLDivElement;
|
|
10
|
+
state: {
|
|
11
|
+
isRanking: boolean;
|
|
12
|
+
};
|
|
13
|
+
static defaultProps: {
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
isFixedSize: boolean;
|
|
16
|
+
rowsPerPage: number;
|
|
17
|
+
onSetPage: typeof noop;
|
|
18
|
+
onSort: typeof noop;
|
|
19
|
+
page: number;
|
|
20
|
+
isRankable: boolean;
|
|
21
|
+
isRankingDisabled: boolean;
|
|
22
|
+
onRankStart: typeof noop;
|
|
23
|
+
onRankEnd: typeof noop;
|
|
24
|
+
paginationi18n: {
|
|
25
|
+
prev: string;
|
|
26
|
+
next: string;
|
|
27
|
+
label: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
UNSAFE_componentWillMount(): void;
|
|
31
|
+
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
32
|
+
onSortHandler: (item: RowCellType) => () => void;
|
|
33
|
+
onSetPageHandler: (page: number, event?: UIAnalyticsEvent) => void;
|
|
34
|
+
onRankStartHandler: (params: RankStart) => void;
|
|
35
|
+
onRankEndHandler: (params: RankEnd) => void;
|
|
36
|
+
getSpinnerSize: () => import("../types").LoadingSpinnerSizeType;
|
|
37
|
+
renderEmptyBody: () => JSX.Element | undefined;
|
|
38
|
+
render(): JSX.Element;
|
|
39
|
+
}
|
|
40
|
+
export { DynamicTable as DynamicTableWithoutAnalytics };
|
|
41
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<Props, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "head" | "caption" | "rows" | "emptyView" | "loadingSpinnerSize" | "totalRows" | "onPageRowsUpdate" | "sortKey" | "sortOrder" | "highlightedRowIndex" | "testId" | "label"> & Partial<Pick<Omit<Props, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "isLoading" | "isFixedSize" | "rowsPerPage" | "onSetPage" | "onSort" | "page" | "isRankable" | "isRankingDisabled" | "onRankStart" | "onRankEnd" | "paginationi18n">> & Partial<Pick<{
|
|
42
|
+
isLoading: boolean;
|
|
43
|
+
isFixedSize: boolean;
|
|
44
|
+
rowsPerPage: number;
|
|
45
|
+
onSetPage: typeof noop;
|
|
46
|
+
onSort: typeof noop;
|
|
47
|
+
page: number;
|
|
48
|
+
isRankable: boolean;
|
|
49
|
+
isRankingDisabled: boolean;
|
|
50
|
+
onRankStart: typeof noop;
|
|
51
|
+
onRankEnd: typeof noop;
|
|
52
|
+
paginationi18n: {
|
|
53
|
+
prev: string;
|
|
54
|
+
next: string;
|
|
55
|
+
label: string;
|
|
56
|
+
};
|
|
57
|
+
}, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "head" | "caption" | "rows" | "emptyView" | "loadingSpinnerSize" | "isLoading" | "isFixedSize" | "rowsPerPage" | "totalRows" | "onSetPage" | "onSort" | "onPageRowsUpdate" | "page" | "sortKey" | "sortOrder" | "isRankable" | "isRankingDisabled" | "onRankStart" | "onRankEnd" | "paginationi18n" | "highlightedRowIndex" | "testId" | "label" | "key" | "analyticsContext"> & React.RefAttributes<any>>;
|
|
58
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { FC, LegacyRef } from 'react';
|
|
2
|
+
import { SortOrderType } from '../types';
|
|
3
|
+
export interface TableHeadCellProps {
|
|
4
|
+
colSpan?: number;
|
|
5
|
+
sortKey?: string;
|
|
6
|
+
isSortable?: boolean;
|
|
7
|
+
sortOrder?: SortOrderType;
|
|
8
|
+
isFixedSize?: boolean;
|
|
9
|
+
innerRef?: LegacyRef<HTMLTableCellElement>;
|
|
10
|
+
inlineStyles?: {};
|
|
11
|
+
content?: React.ReactNode;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
shouldTruncate?: boolean;
|
|
14
|
+
testId?: string;
|
|
15
|
+
width?: number;
|
|
16
|
+
isRanking?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const TableHeadCell: FC<TableHeadCellProps>;
|
|
19
|
+
export default TableHeadCell;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HeadType, RowCellType, SortOrderType } from '../types';
|
|
3
|
+
interface TableHeadProps {
|
|
4
|
+
head: HeadType;
|
|
5
|
+
sortKey?: string;
|
|
6
|
+
sortOrder?: SortOrderType;
|
|
7
|
+
isFixedSize?: boolean;
|
|
8
|
+
onSort: (item: RowCellType) => () => void;
|
|
9
|
+
isRankable?: boolean;
|
|
10
|
+
isRanking: boolean;
|
|
11
|
+
testId?: string;
|
|
12
|
+
}
|
|
13
|
+
declare class TableHead extends React.Component<TableHeadProps, {}> {
|
|
14
|
+
UNSAFE_componentWillMount(): void;
|
|
15
|
+
UNSAFE_componentWillReceiveProps(nextProps: TableHeadProps): void;
|
|
16
|
+
render(): JSX.Element | null;
|
|
17
|
+
}
|
|
18
|
+
export default TableHead;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HeadType, RowType } from '../types';
|
|
3
|
+
interface RowProps {
|
|
4
|
+
head?: HeadType;
|
|
5
|
+
isFixedSize: boolean;
|
|
6
|
+
isHighlighted?: boolean;
|
|
7
|
+
row: RowType;
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const Row: ({ row, head, testId, isFixedSize, isHighlighted }: RowProps) => JSX.Element;
|
|
11
|
+
export default Row;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { LegacyRef } from 'react';
|
|
2
|
+
export interface State {
|
|
3
|
+
refWidth: number;
|
|
4
|
+
refHeight: number;
|
|
5
|
+
}
|
|
6
|
+
export interface WithDimensionsProps {
|
|
7
|
+
innerRef?: LegacyRef<HTMLTableCellElement | HTMLTableRowElement>;
|
|
8
|
+
isRanking: boolean;
|
|
9
|
+
refWidth: number;
|
|
10
|
+
refHeight: number;
|
|
11
|
+
}
|
|
12
|
+
export default function withDimensions<WrappedComponentProps extends WithDimensionsProps>(WrappedComponent: React.ComponentType<WrappedComponentProps>): React.ComponentClass<Omit<WrappedComponentProps, 'refWidth' | 'refHeight' | 'innerRef'>, State>;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HeadType, RowType, SortOrderType } from '../types';
|
|
3
|
+
export interface TableProps {
|
|
4
|
+
head?: HeadType;
|
|
5
|
+
page?: number;
|
|
6
|
+
rows?: Array<RowType>;
|
|
7
|
+
rowsPerPage?: number;
|
|
8
|
+
sortKey?: string;
|
|
9
|
+
sortOrder?: SortOrderType;
|
|
10
|
+
onPageRowsUpdate?: (pageRows: Array<RowType>) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface WithSortedPageRowsProps {
|
|
13
|
+
pageRows: Array<RowType>;
|
|
14
|
+
isTotalPagesControlledExternally?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export default function withSortedPageRows<WrappedComponentProps extends WithSortedPageRowsProps & TableProps>(WrappedComponent: React.ComponentType<WrappedComponentProps>): {
|
|
17
|
+
new (props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>): {
|
|
18
|
+
state: {
|
|
19
|
+
pageRows: never[];
|
|
20
|
+
};
|
|
21
|
+
componentDidMount(): void;
|
|
22
|
+
componentDidUpdate(_prevProps: Omit<WrappedComponentProps & TableProps, "pageRows">, prevState: {
|
|
23
|
+
pageRows: Array<RowType>;
|
|
24
|
+
}): void;
|
|
25
|
+
render(): JSX.Element;
|
|
26
|
+
context: any;
|
|
27
|
+
setState<K extends "pageRows">(state: {
|
|
28
|
+
pageRows: Array<RowType>;
|
|
29
|
+
} | ((prevState: Readonly<{
|
|
30
|
+
pageRows: Array<RowType>;
|
|
31
|
+
}>, props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>) => {
|
|
32
|
+
pageRows: Array<RowType>;
|
|
33
|
+
} | Pick<{
|
|
34
|
+
pageRows: Array<RowType>;
|
|
35
|
+
}, K> | null) | Pick<{
|
|
36
|
+
pageRows: Array<RowType>;
|
|
37
|
+
}, K> | null, callback?: (() => void) | undefined): void;
|
|
38
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
39
|
+
readonly props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">> & Readonly<{
|
|
40
|
+
children?: React.ReactNode;
|
|
41
|
+
}>;
|
|
42
|
+
refs: {
|
|
43
|
+
[key: string]: React.ReactInstance;
|
|
44
|
+
};
|
|
45
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
46
|
+
pageRows: Array<RowType>;
|
|
47
|
+
}>, nextContext: any): boolean;
|
|
48
|
+
componentWillUnmount?(): void;
|
|
49
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
50
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, prevState: Readonly<{
|
|
51
|
+
pageRows: Array<RowType>;
|
|
52
|
+
}>): any;
|
|
53
|
+
componentWillMount?(): void;
|
|
54
|
+
UNSAFE_componentWillMount?(): void;
|
|
55
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextContext: any): void;
|
|
56
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextContext: any): void;
|
|
57
|
+
componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
58
|
+
pageRows: Array<RowType>;
|
|
59
|
+
}>, nextContext: any): void;
|
|
60
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
61
|
+
pageRows: Array<RowType>;
|
|
62
|
+
}>, nextContext: any): void;
|
|
63
|
+
};
|
|
64
|
+
new (props: Omit<WrappedComponentProps & TableProps, "pageRows">, context?: any): {
|
|
65
|
+
state: {
|
|
66
|
+
pageRows: never[];
|
|
67
|
+
};
|
|
68
|
+
componentDidMount(): void;
|
|
69
|
+
componentDidUpdate(_prevProps: Omit<WrappedComponentProps & TableProps, "pageRows">, prevState: {
|
|
70
|
+
pageRows: Array<RowType>;
|
|
71
|
+
}): void;
|
|
72
|
+
render(): JSX.Element;
|
|
73
|
+
context: any;
|
|
74
|
+
setState<K extends "pageRows">(state: {
|
|
75
|
+
pageRows: Array<RowType>;
|
|
76
|
+
} | ((prevState: Readonly<{
|
|
77
|
+
pageRows: Array<RowType>;
|
|
78
|
+
}>, props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>) => {
|
|
79
|
+
pageRows: Array<RowType>;
|
|
80
|
+
} | Pick<{
|
|
81
|
+
pageRows: Array<RowType>;
|
|
82
|
+
}, K> | null) | Pick<{
|
|
83
|
+
pageRows: Array<RowType>;
|
|
84
|
+
}, K> | null, callback?: (() => void) | undefined): void;
|
|
85
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
86
|
+
readonly props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">> & Readonly<{
|
|
87
|
+
children?: React.ReactNode;
|
|
88
|
+
}>;
|
|
89
|
+
refs: {
|
|
90
|
+
[key: string]: React.ReactInstance;
|
|
91
|
+
};
|
|
92
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
93
|
+
pageRows: Array<RowType>;
|
|
94
|
+
}>, nextContext: any): boolean;
|
|
95
|
+
componentWillUnmount?(): void;
|
|
96
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
97
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, prevState: Readonly<{
|
|
98
|
+
pageRows: Array<RowType>;
|
|
99
|
+
}>): any;
|
|
100
|
+
componentWillMount?(): void;
|
|
101
|
+
UNSAFE_componentWillMount?(): void;
|
|
102
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextContext: any): void;
|
|
103
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextContext: any): void;
|
|
104
|
+
componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
105
|
+
pageRows: Array<RowType>;
|
|
106
|
+
}>, nextContext: any): void;
|
|
107
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
108
|
+
pageRows: Array<RowType>;
|
|
109
|
+
}>, nextContext: any): void;
|
|
110
|
+
};
|
|
111
|
+
getDerivedStateFromProps(props: Omit<WrappedComponentProps & TableProps, 'pageRows'>, state: {
|
|
112
|
+
pageRows: Array<RowType>;
|
|
113
|
+
}): {
|
|
114
|
+
pageRows: RowType[];
|
|
115
|
+
};
|
|
116
|
+
contextType?: React.Context<any> | undefined;
|
|
117
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HeadType, RankEnd, RowType } from '../types';
|
|
2
|
+
export declare const getPageRows: (allRows: Array<RowType>, pageNumber?: number, rowsPerPage?: number) => Array<RowType>;
|
|
3
|
+
export declare const assertIsSortable: (head?: HeadType) => void;
|
|
4
|
+
export declare const validateSortKey: (sortKey?: string, head?: HeadType) => void;
|
|
5
|
+
export declare const inlineStylesIfRanking: (isRanking: boolean, width: number, height?: number) => {};
|
|
6
|
+
export declare const computeIndex: (index: number, page: number, rowsPerPage?: number) => number;
|
|
7
|
+
export declare const reorderRows: (rankEnd: RankEnd, rows: RowType[], page?: number, rowsPerPage?: number) => RowType[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LegacyRef, ReactNode } from 'react';
|
|
2
|
+
export interface TruncateStyleProps {
|
|
3
|
+
width?: number;
|
|
4
|
+
isFixedSize?: boolean;
|
|
5
|
+
shouldTruncate?: boolean;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
testId?: string;
|
|
8
|
+
innerRef?: LegacyRef<HTMLTableCellElement | HTMLTableRowElement> | undefined;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const truncationWidthStyles: import("@emotion/react").SerializedStyles;
|
|
12
|
+
export declare const fixedSizeTruncateStyles: import("@emotion/react").SerializedStyles;
|
|
13
|
+
export declare const overflowTruncateStyles: import("@emotion/react").SerializedStyles;
|
|
14
|
+
export declare const getTruncationStyleVars: ({ width }: TruncateStyleProps) => {
|
|
15
|
+
"--local-dynamic-table-width": string;
|
|
16
|
+
} | undefined;
|
|
17
|
+
export declare const cellStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { FC, HTMLProps, ReactNode } from 'react';
|
|
3
|
+
export type TableProps = HTMLProps<HTMLTableElement> & {
|
|
4
|
+
isFixedSize?: boolean;
|
|
5
|
+
hasDataRow: boolean;
|
|
6
|
+
testId?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const tableRowCSSVars: {
|
|
9
|
+
CSS_VAR_HOVER_BACKGROUND: string;
|
|
10
|
+
CSS_VAR_HIGHLIGHTED_BACKGROUND: string;
|
|
11
|
+
CSS_VAR_HOVER_HIGHLIGHTED_BACKGROUND: string;
|
|
12
|
+
CSS_VAR_ROW_FOCUS_OUTLINE: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const Table: import("react").ForwardRefExoticComponent<Pick<TableProps, "headers" | "method" | "rows" | "isFixedSize" | "testId" | "label" | "cite" | "data" | "form" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "width" | "height" | "content" | "hasDataRow" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap"> & import("react").RefAttributes<HTMLTableElement>>;
|
|
15
|
+
export declare const Caption: FC<{
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const PaginationWrapper: FC<{
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
|
+
type EmptyViewWithFixedHeightProps = {
|
|
4
|
+
testId?: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
type EmptyViewContainerProps = {
|
|
8
|
+
testId?: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare const EmptyViewWithFixedHeight: FC<EmptyViewWithFixedHeightProps>;
|
|
12
|
+
export declare const EmptyViewContainer: FC<EmptyViewContainerProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { FC, HTMLProps, ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
type ContainerProps = HTMLProps<HTMLDivElement> & {
|
|
5
|
+
testId?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const Container: (props: ContainerProps) => jsx.JSX.Element;
|
|
8
|
+
type SpinnerBackdropProps = {
|
|
9
|
+
testId?: string;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export declare const SpinnerBackdrop: FC<SpinnerBackdropProps>;
|
|
13
|
+
export declare const SpinnerContainer: import("react").ForwardRefExoticComponent<Pick<HTMLProps<HTMLDivElement>, "headers" | "method" | "rows" | "label" | "cite" | "data" | "form" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "width" | "height" | "content" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
|
+
export declare const CSS_VAR_CONTENTS_OPACITY = "--contents-opacity";
|
|
4
|
+
type ContainerProps = {
|
|
5
|
+
testId?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
type LoadingContainerProps = ContainerProps & {
|
|
9
|
+
contentsOpacity: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const Container: FC<ContainerProps>;
|
|
12
|
+
export declare const ContentsContainer: FC<LoadingContainerProps>;
|
|
13
|
+
export declare const SpinnerContainer: FC<ContainerProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { FC, HTMLProps, ReactNode } from 'react';
|
|
3
|
+
import { TruncateStyleProps } from '../constants';
|
|
4
|
+
type RankableTableBodyCellProps = HTMLProps<HTMLTableCellElement | HTMLTableRowElement> & TruncateStyleProps & {
|
|
5
|
+
isRanking?: boolean;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const RankableTableBodyCell: FC<RankableTableBodyCellProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
import { ITableRowProps } from '../table-row';
|
|
4
|
+
export type RankableTableBodyRowProps = HTMLAttributes<HTMLTableRowElement> & ITableRowProps & {
|
|
5
|
+
isRanking?: boolean;
|
|
6
|
+
isRankingItem?: boolean;
|
|
7
|
+
testId?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const RankableTableBodyRow: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLTableRowElement> & ITableRowProps & {
|
|
10
|
+
isRanking?: boolean | undefined;
|
|
11
|
+
isRankingItem?: boolean | undefined;
|
|
12
|
+
testId?: string | undefined;
|
|
13
|
+
} & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { FC, HTMLProps, ReactNode } from 'react';
|
|
3
|
+
import { SortOrderType } from '../types';
|
|
4
|
+
import { TruncateStyleProps } from './constants';
|
|
5
|
+
interface HeadProps {
|
|
6
|
+
isRanking?: boolean;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Head: FC<HeadProps>;
|
|
11
|
+
type HeadCellProps = TruncateStyleProps & HTMLProps<HTMLTableCellElement> & {
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
isSortable?: boolean;
|
|
14
|
+
sortOrder?: SortOrderType;
|
|
15
|
+
testId?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const HeadCell: import("react").ForwardRefExoticComponent<Pick<HeadCellProps, "headers" | "method" | "rows" | "isFixedSize" | "sortOrder" | "testId" | "label" | "cite" | "data" | "form" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "isSortable" | "width" | "shouldTruncate" | "height" | "content" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap" | "innerRef"> & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
+
export type ITableRowProps = {
|
|
4
|
+
isHighlighted?: boolean;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
className?: string;
|
|
8
|
+
testId?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const TableBodyRow: import("react").ForwardRefExoticComponent<ITableRowProps & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const MSThemeColors: {
|
|
2
|
+
Background: string;
|
|
3
|
+
Text: string;
|
|
4
|
+
SelectedBackground: string;
|
|
5
|
+
SelectedText: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const arrow: {
|
|
8
|
+
defaultColor: "var(--ds-icon-disabled)";
|
|
9
|
+
selectedColor: "var(--ds-icon-subtle)";
|
|
10
|
+
};
|
|
11
|
+
export declare const row: {
|
|
12
|
+
focusOutline: "var(--ds-border-focused)";
|
|
13
|
+
highlightedBackground: "var(--ds-background-selected)";
|
|
14
|
+
hoverBackground: "var(--ds-background-neutral-subtle-hovered)";
|
|
15
|
+
hoverHighlightedBackground: "var(--ds-background-selected-hovered)";
|
|
16
|
+
};
|
|
17
|
+
export declare const head: {
|
|
18
|
+
textColor: "var(--ds-text-subtlest)";
|
|
19
|
+
};
|
|
20
|
+
export declare const tableBorder: {
|
|
21
|
+
borderColor: "var(--ds-border)";
|
|
22
|
+
};
|