@atlaskit/dynamic-table 14.5.5 → 14.7.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 +31 -0
- package/dist/cjs/components/{Body.js → body.js} +3 -3
- package/dist/cjs/components/{LoadingContainerAdvanced.js → loading-container-advanced.js} +3 -3
- package/dist/cjs/components/{LoadingContainer.js → loading-container.js} +3 -3
- package/dist/cjs/components/managed-pagination.js +4 -2
- package/dist/cjs/components/rankable/{Body.js → body.js} +3 -3
- package/dist/cjs/components/rankable/{TableCell.js → table-cell.js} +3 -3
- package/dist/cjs/components/rankable/{TableHeadCell.js → table-head-cell.js} +3 -3
- package/dist/cjs/components/rankable/{TableRow.js → table-row.js} +5 -5
- package/dist/cjs/components/{Stateful.js → stateful.js} +6 -4
- package/dist/cjs/components/{Stateless.js → stateless.js} +34 -24
- package/dist/cjs/components/{TableHeadCell.js → table-head-cell.js} +5 -3
- package/dist/cjs/components/{TableHead.js → table-head.js} +7 -6
- package/dist/cjs/components/{TableRow.js → table-row.js} +6 -5
- package/dist/cjs/hoc/{withDimensions.js → with-dimensions.js} +0 -0
- package/dist/cjs/hoc/{withSortedPageRows.js → with-sorted-page-rows.js} +0 -0
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/styled/constants.js +2 -2
- package/dist/cjs/styled/{DynamicTable.js → dynamic-table.js} +19 -25
- package/dist/cjs/styled/{EmptyBody.js → empty-body.js} +4 -2
- package/dist/cjs/styled/{LoadingContainerAdvanced.js → loading-container-advanced.js} +10 -6
- package/dist/cjs/styled/{LoadingContainer.js → loading-container.js} +5 -3
- package/dist/cjs/styled/rankable/{RowPlaceholder.js → row-placeholder.js} +6 -4
- package/dist/cjs/styled/rankable/{TableCell.js → table-cell.js} +5 -4
- package/dist/cjs/styled/rankable/{TableRow.js → table-row.js} +10 -9
- package/dist/cjs/styled/{TableCell.js → table-cell.js} +3 -1
- package/dist/cjs/styled/{TableHead.js → table-head.js} +73 -95
- package/dist/cjs/styled/{TableRow.js → table-row.js} +7 -6
- package/dist/cjs/theme.js +13 -40
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/{Body.js → body.js} +2 -2
- package/dist/es2019/components/{LoadingContainerAdvanced.js → loading-container-advanced.js} +3 -1
- package/dist/es2019/components/{LoadingContainer.js → loading-container.js} +1 -1
- package/dist/es2019/components/managed-pagination.js +4 -2
- package/dist/es2019/components/rankable/{Body.js → body.js} +2 -2
- package/dist/es2019/components/rankable/{TableCell.js → table-cell.js} +2 -2
- package/dist/es2019/components/rankable/{TableHeadCell.js → table-head-cell.js} +2 -2
- package/dist/es2019/components/rankable/{TableRow.js → table-row.js} +3 -3
- package/dist/es2019/components/{Stateful.js → stateful.js} +4 -3
- package/dist/es2019/components/{Stateless.js → stateless.js} +26 -17
- package/dist/es2019/components/{TableHeadCell.js → table-head-cell.js} +4 -2
- package/dist/es2019/components/{TableHead.js → table-head.js} +5 -4
- package/dist/es2019/components/{TableRow.js → table-row.js} +4 -3
- package/dist/es2019/hoc/{withDimensions.js → with-dimensions.js} +0 -0
- package/dist/es2019/hoc/{withSortedPageRows.js → with-sorted-page-rows.js} +0 -0
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/styled/constants.js +4 -6
- package/dist/es2019/styled/{DynamicTable.js → dynamic-table.js} +24 -27
- package/dist/es2019/styled/{EmptyBody.js → empty-body.js} +4 -2
- package/dist/es2019/styled/{LoadingContainerAdvanced.js → loading-container-advanced.js} +7 -4
- package/dist/es2019/styled/{LoadingContainer.js → loading-container.js} +5 -3
- package/dist/es2019/styled/rankable/row-placeholder.js +12 -0
- package/dist/es2019/styled/rankable/{TableCell.js → table-cell.js} +5 -3
- package/dist/es2019/styled/rankable/{TableRow.js → table-row.js} +9 -8
- package/dist/es2019/styled/{TableCell.js → table-cell.js} +4 -2
- package/dist/es2019/styled/table-head.js +138 -0
- package/dist/es2019/styled/{TableRow.js → table-row.js} +3 -2
- package/dist/es2019/theme.js +10 -37
- package/dist/es2019/types.js +1 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/{Body.js → body.js} +2 -2
- package/dist/esm/components/{LoadingContainerAdvanced.js → loading-container-advanced.js} +2 -1
- package/dist/esm/components/{LoadingContainer.js → loading-container.js} +1 -1
- package/dist/esm/components/managed-pagination.js +4 -2
- package/dist/esm/components/rankable/{Body.js → body.js} +2 -2
- package/dist/esm/components/rankable/{TableCell.js → table-cell.js} +2 -2
- package/dist/esm/components/rankable/{TableHeadCell.js → table-head-cell.js} +2 -2
- package/dist/esm/components/rankable/{TableRow.js → table-row.js} +3 -3
- package/dist/esm/components/{Stateful.js → stateful.js} +4 -3
- package/dist/esm/components/{Stateless.js → stateless.js} +26 -17
- package/dist/esm/components/{TableHeadCell.js → table-head-cell.js} +4 -2
- package/dist/esm/components/{TableHead.js → table-head.js} +5 -4
- package/dist/esm/components/{TableRow.js → table-row.js} +4 -3
- package/dist/esm/hoc/{withDimensions.js → with-dimensions.js} +0 -0
- package/dist/esm/hoc/{withSortedPageRows.js → with-sorted-page-rows.js} +0 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/styled/constants.js +2 -2
- package/dist/esm/styled/{DynamicTable.js → dynamic-table.js} +22 -25
- package/dist/esm/styled/{EmptyBody.js → empty-body.js} +4 -2
- package/dist/esm/styled/{LoadingContainerAdvanced.js → loading-container-advanced.js} +10 -6
- package/dist/esm/styled/{LoadingContainer.js → loading-container.js} +5 -3
- package/dist/esm/styled/rankable/{RowPlaceholder.js → row-placeholder.js} +7 -4
- package/dist/esm/styled/rankable/{TableCell.js → table-cell.js} +5 -3
- package/dist/esm/styled/rankable/{TableRow.js → table-row.js} +9 -8
- package/dist/esm/styled/{TableCell.js → table-cell.js} +4 -2
- package/dist/esm/styled/{TableHead.js → table-head.js} +75 -94
- package/dist/esm/styled/{TableRow.js → table-row.js} +3 -2
- package/dist/esm/theme.js +10 -37
- package/dist/esm/types.js +1 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/components/{Body.d.ts → body.d.ts} +23 -23
- package/dist/types/components/{LoadingContainerAdvanced.d.ts → loading-container-advanced.d.ts} +5 -5
- package/dist/types/components/{LoadingContainer.d.ts → loading-container.d.ts} +0 -0
- package/dist/types/components/managed-pagination.d.ts +1 -0
- package/dist/types/components/rankable/body.d.ts +122 -0
- package/dist/types/components/rankable/table-cell.d.ts +14 -0
- package/dist/types/components/rankable/table-head-cell.d.ts +5 -0
- package/dist/types/components/rankable/table-row.d.ts +18 -0
- package/dist/types/components/{Stateful.d.ts → stateful.d.ts} +3 -2
- package/dist/types/components/{Stateless.d.ts → stateless.d.ts} +9 -8
- package/dist/types/components/{TableHeadCell.d.ts → table-head-cell.d.ts} +2 -2
- package/dist/types/components/{TableHead.d.ts → table-head.d.ts} +3 -3
- package/dist/types/components/{TableRow.d.ts → table-row.d.ts} +2 -2
- package/dist/types/hoc/{withDimensions.d.ts → with-dimensions.d.ts} +0 -0
- package/dist/types/hoc/{withSortedPageRows.d.ts → with-sorted-page-rows.d.ts} +23 -23
- package/dist/types/index.d.ts +2 -2
- package/dist/types/styled/constants.d.ts +2 -2
- package/dist/types/styled/{DynamicTable.d.ts → dynamic-table.d.ts} +2 -1
- package/dist/types/styled/{EmptyBody.d.ts → empty-body.d.ts} +0 -0
- package/dist/types/styled/{LoadingContainerAdvanced.d.ts → loading-container-advanced.d.ts} +0 -0
- package/dist/types/styled/{LoadingContainer.d.ts → loading-container.d.ts} +0 -0
- package/dist/types/styled/rankable/{RowPlaceholder.d.ts → row-placeholder.d.ts} +0 -0
- package/dist/types/styled/rankable/{TableCell.d.ts → table-cell.d.ts} +0 -0
- package/dist/types/styled/rankable/{TableRow.d.ts → table-row.d.ts} +1 -1
- package/dist/types/styled/{TableCell.d.ts → table-cell.d.ts} +0 -0
- package/dist/types/styled/{TableHead.d.ts → table-head.d.ts} +0 -2
- package/dist/types/styled/{TableRow.d.ts → table-row.d.ts} +0 -0
- package/dist/types/theme.d.ts +10 -9
- package/dist/types/types.d.ts +37 -31
- package/package.json +10 -6
- package/report.api.md +508 -0
- package/dist/es2019/styled/TableHead.js +0 -160
- package/dist/es2019/styled/rankable/RowPlaceholder.js +0 -10
- package/dist/types/components/rankable/Body.d.ts +0 -122
- package/dist/types/components/rankable/TableCell.d.ts +0 -14
- package/dist/types/components/rankable/TableHeadCell.d.ts +0 -5
- package/dist/types/components/rankable/TableRow.d.ts +0 -18
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DragStart, DropResult } from 'react-beautiful-dnd';
|
|
3
|
+
import { WithSortedPageRowsProps } from '../../hoc/with-sorted-page-rows';
|
|
4
|
+
import { HeadType, RankEnd, RankStart, RowType } from '../../types';
|
|
5
|
+
export interface RankableBodyProps extends WithSortedPageRowsProps {
|
|
6
|
+
highlightedRowIndex?: number | number[];
|
|
7
|
+
onRankStart: (rankStart: RankStart) => void;
|
|
8
|
+
onRankEnd: (rankEnd: RankEnd) => void;
|
|
9
|
+
isFixedSize: boolean;
|
|
10
|
+
isRanking: boolean;
|
|
11
|
+
isRankingDisabled: boolean;
|
|
12
|
+
head?: HeadType;
|
|
13
|
+
testId?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class RankableBody extends React.Component<RankableBodyProps, {}> {
|
|
16
|
+
onBeforeDragStart: (dragStart: DragStart) => void;
|
|
17
|
+
onDragEnd: (result: DropResult) => void;
|
|
18
|
+
render(): JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: {
|
|
21
|
+
new (props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>): {
|
|
22
|
+
state: {
|
|
23
|
+
pageRows: never[];
|
|
24
|
+
};
|
|
25
|
+
componentDidMount(): void;
|
|
26
|
+
componentDidUpdate(_prevProps: Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">, prevState: {
|
|
27
|
+
pageRows: RowType[];
|
|
28
|
+
}): void;
|
|
29
|
+
render(): JSX.Element;
|
|
30
|
+
context: any;
|
|
31
|
+
setState<K extends "pageRows">(state: {
|
|
32
|
+
pageRows: RowType[];
|
|
33
|
+
} | ((prevState: Readonly<{
|
|
34
|
+
pageRows: RowType[];
|
|
35
|
+
}>, props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>) => {
|
|
36
|
+
pageRows: RowType[];
|
|
37
|
+
} | Pick<{
|
|
38
|
+
pageRows: RowType[];
|
|
39
|
+
}, K> | null) | Pick<{
|
|
40
|
+
pageRows: RowType[];
|
|
41
|
+
}, K> | null, callback?: (() => void) | undefined): void;
|
|
42
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
43
|
+
readonly props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">> & Readonly<{
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
}>;
|
|
46
|
+
refs: {
|
|
47
|
+
[key: string]: React.ReactInstance;
|
|
48
|
+
};
|
|
49
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
50
|
+
pageRows: RowType[];
|
|
51
|
+
}>, nextContext: any): boolean;
|
|
52
|
+
componentWillUnmount?(): void;
|
|
53
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
54
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, prevState: Readonly<{
|
|
55
|
+
pageRows: RowType[];
|
|
56
|
+
}>): any;
|
|
57
|
+
componentWillMount?(): void;
|
|
58
|
+
UNSAFE_componentWillMount?(): void;
|
|
59
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
60
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
61
|
+
componentWillUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
62
|
+
pageRows: RowType[];
|
|
63
|
+
}>, nextContext: any): void;
|
|
64
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
65
|
+
pageRows: RowType[];
|
|
66
|
+
}>, nextContext: any): void;
|
|
67
|
+
};
|
|
68
|
+
new (props: Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">, context?: any): {
|
|
69
|
+
state: {
|
|
70
|
+
pageRows: never[];
|
|
71
|
+
};
|
|
72
|
+
componentDidMount(): void;
|
|
73
|
+
componentDidUpdate(_prevProps: Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">, prevState: {
|
|
74
|
+
pageRows: RowType[];
|
|
75
|
+
}): void;
|
|
76
|
+
render(): JSX.Element;
|
|
77
|
+
context: any;
|
|
78
|
+
setState<K extends "pageRows">(state: {
|
|
79
|
+
pageRows: RowType[];
|
|
80
|
+
} | ((prevState: Readonly<{
|
|
81
|
+
pageRows: RowType[];
|
|
82
|
+
}>, props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>) => {
|
|
83
|
+
pageRows: RowType[];
|
|
84
|
+
} | Pick<{
|
|
85
|
+
pageRows: RowType[];
|
|
86
|
+
}, K> | null) | Pick<{
|
|
87
|
+
pageRows: RowType[];
|
|
88
|
+
}, K> | null, callback?: (() => void) | undefined): void;
|
|
89
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
90
|
+
readonly props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">> & Readonly<{
|
|
91
|
+
children?: React.ReactNode;
|
|
92
|
+
}>;
|
|
93
|
+
refs: {
|
|
94
|
+
[key: string]: React.ReactInstance;
|
|
95
|
+
};
|
|
96
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
97
|
+
pageRows: RowType[];
|
|
98
|
+
}>, nextContext: any): boolean;
|
|
99
|
+
componentWillUnmount?(): void;
|
|
100
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
101
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, prevState: Readonly<{
|
|
102
|
+
pageRows: RowType[];
|
|
103
|
+
}>): any;
|
|
104
|
+
componentWillMount?(): void;
|
|
105
|
+
UNSAFE_componentWillMount?(): void;
|
|
106
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
107
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
108
|
+
componentWillUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
109
|
+
pageRows: RowType[];
|
|
110
|
+
}>, nextContext: any): void;
|
|
111
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
112
|
+
pageRows: RowType[];
|
|
113
|
+
}>, nextContext: any): void;
|
|
114
|
+
};
|
|
115
|
+
getDerivedStateFromProps(props: Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">, state: {
|
|
116
|
+
pageRows: RowType[];
|
|
117
|
+
}): {
|
|
118
|
+
pageRows: RowType[];
|
|
119
|
+
};
|
|
120
|
+
contextType?: React.Context<any> | undefined;
|
|
121
|
+
};
|
|
122
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WithDimensionsProps } from '../../hoc/with-dimensions';
|
|
3
|
+
import { HeadCellType, RowCellType } from '../../types';
|
|
4
|
+
export interface RankableTableCellProps extends WithDimensionsProps {
|
|
5
|
+
head?: HeadCellType;
|
|
6
|
+
cell: RowCellType;
|
|
7
|
+
isFixedSize: boolean;
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class RankableTableCell extends React.Component<RankableTableCellProps, {}> {
|
|
11
|
+
render(): JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: React.ComponentClass<Omit<RankableTableCellProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WithDimensionsProps } from '../../hoc/with-dimensions';
|
|
3
|
+
import { TableHeadCellProps } from '../table-head-cell';
|
|
4
|
+
declare const _default: React.ComponentClass<Omit<WithDimensionsProps & TableHeadCellProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WithDimensionsProps } from '../../hoc/with-dimensions';
|
|
3
|
+
import { HeadType, RowType } from '../../types';
|
|
4
|
+
export interface RankableTableRowProps extends WithDimensionsProps {
|
|
5
|
+
head?: HeadType;
|
|
6
|
+
isFixedSize: boolean;
|
|
7
|
+
row: RowType;
|
|
8
|
+
rowIndex: number;
|
|
9
|
+
isRankingDisabled: boolean;
|
|
10
|
+
isHighlighted?: boolean;
|
|
11
|
+
testId?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class RankableTableRow extends React.Component<RankableTableRowProps> {
|
|
14
|
+
innerRef: (innerRefFn: Function) => (ref: HTMLTableRowElement) => void;
|
|
15
|
+
render(): JSX.Element;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: React.ComponentClass<Omit<RankableTableRowProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
|
|
18
|
+
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import noop from '@atlaskit/ds-lib/noop';
|
|
3
4
|
import { RankEnd, RowType, SortOrderType, StatefulProps } from '../types';
|
|
4
5
|
interface State {
|
|
5
6
|
page?: number;
|
|
@@ -39,8 +40,8 @@ export default class DynamicTable extends React.Component<StatefulProps, State>
|
|
|
39
40
|
isLoading: boolean;
|
|
40
41
|
isFixedSize: boolean;
|
|
41
42
|
isRankable: boolean;
|
|
42
|
-
onSetPage:
|
|
43
|
-
onSort:
|
|
43
|
+
onSetPage: typeof noop;
|
|
44
|
+
onSort: typeof noop;
|
|
44
45
|
rowsPerPage: number;
|
|
45
46
|
};
|
|
46
47
|
state: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import noop from '@atlaskit/ds-lib/noop';
|
|
3
4
|
import { StatelessProps as Props, RankEnd, RankStart, RowCellType } from '../types';
|
|
4
5
|
export interface State {
|
|
5
6
|
isRanking: boolean;
|
|
@@ -13,13 +14,13 @@ declare class DynamicTable extends React.Component<Props, State> {
|
|
|
13
14
|
isLoading: boolean;
|
|
14
15
|
isFixedSize: boolean;
|
|
15
16
|
rowsPerPage: number;
|
|
16
|
-
onSetPage:
|
|
17
|
-
onSort:
|
|
17
|
+
onSetPage: typeof noop;
|
|
18
|
+
onSort: typeof noop;
|
|
18
19
|
page: number;
|
|
19
20
|
isRankable: boolean;
|
|
20
21
|
isRankingDisabled: boolean;
|
|
21
|
-
onRankStart:
|
|
22
|
-
onRankEnd:
|
|
22
|
+
onRankStart: typeof noop;
|
|
23
|
+
onRankEnd: typeof noop;
|
|
23
24
|
paginationi18n: {
|
|
24
25
|
prev: string;
|
|
25
26
|
next: string;
|
|
@@ -41,13 +42,13 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<Props, ke
|
|
|
41
42
|
isLoading: boolean;
|
|
42
43
|
isFixedSize: boolean;
|
|
43
44
|
rowsPerPage: number;
|
|
44
|
-
onSetPage:
|
|
45
|
-
onSort:
|
|
45
|
+
onSetPage: typeof noop;
|
|
46
|
+
onSort: typeof noop;
|
|
46
47
|
page: number;
|
|
47
48
|
isRankable: boolean;
|
|
48
49
|
isRankingDisabled: boolean;
|
|
49
|
-
onRankStart:
|
|
50
|
-
onRankEnd:
|
|
50
|
+
onRankStart: typeof noop;
|
|
51
|
+
onRankEnd: typeof noop;
|
|
51
52
|
paginationi18n: {
|
|
52
53
|
prev: string;
|
|
53
54
|
next: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FC, KeyboardEvent, LegacyRef } from 'react';
|
|
2
2
|
import { SortOrderType } from '../types';
|
|
3
|
-
export interface
|
|
3
|
+
export interface TableHeadCellProps {
|
|
4
4
|
sortKey?: string;
|
|
5
5
|
isSortable?: boolean;
|
|
6
6
|
sortOrder?: SortOrderType;
|
|
@@ -13,5 +13,5 @@ export interface Props {
|
|
|
13
13
|
testId?: string;
|
|
14
14
|
isRanking?: boolean;
|
|
15
15
|
}
|
|
16
|
-
declare const TableHeadCell: FC<
|
|
16
|
+
declare const TableHeadCell: FC<TableHeadCellProps>;
|
|
17
17
|
export default TableHeadCell;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { KeyboardEvent } from 'react';
|
|
2
2
|
import { HeadType, RowCellType, SortOrderType } from '../types';
|
|
3
|
-
interface
|
|
3
|
+
interface TableHeadProps {
|
|
4
4
|
head: HeadType;
|
|
5
5
|
sortKey?: string;
|
|
6
6
|
sortOrder?: SortOrderType;
|
|
@@ -10,9 +10,9 @@ interface Props {
|
|
|
10
10
|
isRanking: boolean;
|
|
11
11
|
testId?: string;
|
|
12
12
|
}
|
|
13
|
-
declare class TableHead extends React.Component<
|
|
13
|
+
declare class TableHead extends React.Component<TableHeadProps, {}> {
|
|
14
14
|
UNSAFE_componentWillMount(): void;
|
|
15
|
-
UNSAFE_componentWillReceiveProps(nextProps:
|
|
15
|
+
UNSAFE_componentWillReceiveProps(nextProps: TableHeadProps): void;
|
|
16
16
|
canSortOnEnterPressed: (e: KeyboardEvent, isSortable: Boolean | void) => boolean | void;
|
|
17
17
|
render(): JSX.Element | null;
|
|
18
18
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HeadType, RowType } from '../types';
|
|
3
|
-
interface
|
|
3
|
+
interface RowProps {
|
|
4
4
|
head?: HeadType;
|
|
5
5
|
isFixedSize: boolean;
|
|
6
6
|
isHighlighted?: boolean;
|
|
7
7
|
row: RowType;
|
|
8
8
|
testId?: string;
|
|
9
9
|
}
|
|
10
|
-
declare const Row: ({ row, head, testId, isFixedSize, isHighlighted }:
|
|
10
|
+
declare const Row: ({ row, head, testId, isFixedSize, isHighlighted }: RowProps) => JSX.Element;
|
|
11
11
|
export default Row;
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HeadType, RowType, SortOrderType } from '../types';
|
|
3
|
-
export interface
|
|
3
|
+
export interface TableProps {
|
|
4
4
|
head?: HeadType;
|
|
5
5
|
page?: number;
|
|
6
6
|
rows?: Array<RowType>;
|
|
@@ -13,13 +13,13 @@ export interface WithSortedPageRowsProps {
|
|
|
13
13
|
pageRows: Array<RowType>;
|
|
14
14
|
isTotalPagesControlledExternally?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export default function withSortedPageRows<WrappedComponentProps extends WithSortedPageRowsProps &
|
|
17
|
-
new (props: Readonly<Omit<WrappedComponentProps &
|
|
16
|
+
export default function withSortedPageRows<WrappedComponentProps extends WithSortedPageRowsProps & TableProps>(WrappedComponent: React.ComponentType<WrappedComponentProps>): {
|
|
17
|
+
new (props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>): {
|
|
18
18
|
state: {
|
|
19
19
|
pageRows: never[];
|
|
20
20
|
};
|
|
21
21
|
componentDidMount(): void;
|
|
22
|
-
componentDidUpdate(_prevProps: Omit<WrappedComponentProps &
|
|
22
|
+
componentDidUpdate(_prevProps: Omit<WrappedComponentProps & TableProps, "pageRows">, prevState: {
|
|
23
23
|
pageRows: Array<RowType>;
|
|
24
24
|
}): void;
|
|
25
25
|
render(): JSX.Element;
|
|
@@ -28,7 +28,7 @@ export default function withSortedPageRows<WrappedComponentProps extends WithSor
|
|
|
28
28
|
pageRows: Array<RowType>;
|
|
29
29
|
} | ((prevState: Readonly<{
|
|
30
30
|
pageRows: Array<RowType>;
|
|
31
|
-
}>, props: Readonly<Omit<WrappedComponentProps &
|
|
31
|
+
}>, props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>) => {
|
|
32
32
|
pageRows: Array<RowType>;
|
|
33
33
|
} | Pick<{
|
|
34
34
|
pageRows: Array<RowType>;
|
|
@@ -36,37 +36,37 @@ export default function withSortedPageRows<WrappedComponentProps extends WithSor
|
|
|
36
36
|
pageRows: Array<RowType>;
|
|
37
37
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
38
38
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
39
|
-
readonly props: Readonly<Omit<WrappedComponentProps &
|
|
39
|
+
readonly props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">> & Readonly<{
|
|
40
40
|
children?: React.ReactNode;
|
|
41
41
|
}>;
|
|
42
42
|
refs: {
|
|
43
43
|
[key: string]: React.ReactInstance;
|
|
44
44
|
};
|
|
45
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<WrappedComponentProps &
|
|
45
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
46
46
|
pageRows: Array<RowType>;
|
|
47
47
|
}>, nextContext: any): boolean;
|
|
48
48
|
componentWillUnmount?(): void;
|
|
49
49
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
50
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<WrappedComponentProps &
|
|
50
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, prevState: Readonly<{
|
|
51
51
|
pageRows: Array<RowType>;
|
|
52
52
|
}>): any;
|
|
53
53
|
componentWillMount?(): void;
|
|
54
54
|
UNSAFE_componentWillMount?(): void;
|
|
55
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps &
|
|
56
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps &
|
|
57
|
-
componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps &
|
|
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
58
|
pageRows: Array<RowType>;
|
|
59
59
|
}>, nextContext: any): void;
|
|
60
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps &
|
|
60
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
61
61
|
pageRows: Array<RowType>;
|
|
62
62
|
}>, nextContext: any): void;
|
|
63
63
|
};
|
|
64
|
-
new (props: Omit<WrappedComponentProps &
|
|
64
|
+
new (props: Omit<WrappedComponentProps & TableProps, "pageRows">, context?: any): {
|
|
65
65
|
state: {
|
|
66
66
|
pageRows: never[];
|
|
67
67
|
};
|
|
68
68
|
componentDidMount(): void;
|
|
69
|
-
componentDidUpdate(_prevProps: Omit<WrappedComponentProps &
|
|
69
|
+
componentDidUpdate(_prevProps: Omit<WrappedComponentProps & TableProps, "pageRows">, prevState: {
|
|
70
70
|
pageRows: Array<RowType>;
|
|
71
71
|
}): void;
|
|
72
72
|
render(): JSX.Element;
|
|
@@ -75,7 +75,7 @@ export default function withSortedPageRows<WrappedComponentProps extends WithSor
|
|
|
75
75
|
pageRows: Array<RowType>;
|
|
76
76
|
} | ((prevState: Readonly<{
|
|
77
77
|
pageRows: Array<RowType>;
|
|
78
|
-
}>, props: Readonly<Omit<WrappedComponentProps &
|
|
78
|
+
}>, props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>) => {
|
|
79
79
|
pageRows: Array<RowType>;
|
|
80
80
|
} | Pick<{
|
|
81
81
|
pageRows: Array<RowType>;
|
|
@@ -83,32 +83,32 @@ export default function withSortedPageRows<WrappedComponentProps extends WithSor
|
|
|
83
83
|
pageRows: Array<RowType>;
|
|
84
84
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
85
85
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
86
|
-
readonly props: Readonly<Omit<WrappedComponentProps &
|
|
86
|
+
readonly props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">> & Readonly<{
|
|
87
87
|
children?: React.ReactNode;
|
|
88
88
|
}>;
|
|
89
89
|
refs: {
|
|
90
90
|
[key: string]: React.ReactInstance;
|
|
91
91
|
};
|
|
92
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<WrappedComponentProps &
|
|
92
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
93
93
|
pageRows: Array<RowType>;
|
|
94
94
|
}>, nextContext: any): boolean;
|
|
95
95
|
componentWillUnmount?(): void;
|
|
96
96
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
97
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<WrappedComponentProps &
|
|
97
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, prevState: Readonly<{
|
|
98
98
|
pageRows: Array<RowType>;
|
|
99
99
|
}>): any;
|
|
100
100
|
componentWillMount?(): void;
|
|
101
101
|
UNSAFE_componentWillMount?(): void;
|
|
102
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps &
|
|
103
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps &
|
|
104
|
-
componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps &
|
|
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
105
|
pageRows: Array<RowType>;
|
|
106
106
|
}>, nextContext: any): void;
|
|
107
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps &
|
|
107
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
108
108
|
pageRows: Array<RowType>;
|
|
109
109
|
}>, nextContext: any): void;
|
|
110
110
|
};
|
|
111
|
-
getDerivedStateFromProps(props: Omit<WrappedComponentProps &
|
|
111
|
+
getDerivedStateFromProps(props: Omit<WrappedComponentProps & TableProps, 'pageRows'>, state: {
|
|
112
112
|
pageRows: Array<RowType>;
|
|
113
113
|
}): {
|
|
114
114
|
pageRows: RowType[];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './components/
|
|
2
|
-
export { default as DynamicTableStateless } from './components/
|
|
1
|
+
export { default } from './components/stateful';
|
|
2
|
+
export { default as DynamicTableStateless } from './components/stateless';
|
|
@@ -11,6 +11,6 @@ export declare const truncationWidthStyles: import("@emotion/utils").SerializedS
|
|
|
11
11
|
export declare const fixedSizeTruncateStyles: import("@emotion/utils").SerializedStyles;
|
|
12
12
|
export declare const overflowTruncateStyles: import("@emotion/utils").SerializedStyles;
|
|
13
13
|
export declare const getTruncationStyleVars: ({ width }: TruncateStyleProps) => {
|
|
14
|
-
"--local-dynamic-table-width": string
|
|
15
|
-
};
|
|
14
|
+
"--local-dynamic-table-width": string;
|
|
15
|
+
} | undefined;
|
|
16
16
|
export declare const cellStyles: import("@emotion/utils").SerializedStyles;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { FC, HTMLProps } from 'react';
|
|
3
3
|
export declare type TableProps = HTMLProps<HTMLTableElement> & {
|
|
4
4
|
isFixedSize?: boolean;
|
|
5
|
+
hasDataRow: boolean;
|
|
5
6
|
};
|
|
6
7
|
export declare const tableRowCSSVars: {
|
|
7
8
|
CSS_VAR_HOVER_BACKGROUND: string;
|
|
@@ -9,6 +10,6 @@ export declare const tableRowCSSVars: {
|
|
|
9
10
|
CSS_VAR_HOVER_HIGHLIGHTED_BACKGROUND: string;
|
|
10
11
|
CSS_VAR_ROW_FOCUS_OUTLINE: string;
|
|
11
12
|
};
|
|
12
|
-
export declare const Table: import("react").ForwardRefExoticComponent<Pick<TableProps, "cite" | "data" | "form" | "label" | "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" | "css" | "content" | "height" | "width" | "isFixedSize" | "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" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "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>>;
|
|
13
|
+
export declare const Table: import("react").ForwardRefExoticComponent<Pick<TableProps, "cite" | "data" | "form" | "label" | "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" | "css" | "content" | "height" | "width" | "isFixedSize" | "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" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "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>>;
|
|
13
14
|
export declare const Caption: FC;
|
|
14
15
|
export declare const PaginationWrapper: FC;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { HTMLAttributes } from 'react';
|
|
3
|
-
import { ITableRowProps } from '../
|
|
3
|
+
import { ITableRowProps } from '../table-row';
|
|
4
4
|
export declare type RankableTableBodyRowProps = HTMLAttributes<HTMLTableRowElement> & ITableRowProps & {
|
|
5
5
|
isRanking?: boolean;
|
|
6
6
|
isRankingItem?: boolean;
|
|
File without changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { FC, HTMLProps } from 'react';
|
|
3
|
-
import { GlobalThemeTokens } from '@atlaskit/theme/components';
|
|
4
3
|
import { SortOrderType } from '../types';
|
|
5
4
|
import { TruncateStyleProps } from './constants';
|
|
6
5
|
interface HeadProps {
|
|
@@ -12,6 +11,5 @@ declare type HeadCellProps = TruncateStyleProps & HTMLProps<HTMLTableCellElement
|
|
|
12
11
|
isSortable?: boolean;
|
|
13
12
|
sortOrder?: SortOrderType;
|
|
14
13
|
};
|
|
15
|
-
export declare const getArrowStyles: (isSortable?: boolean | undefined, sortOrder?: SortOrderType | undefined, theme?: GlobalThemeTokens | undefined) => import("@emotion/utils").SerializedStyles | "";
|
|
16
14
|
export declare const HeadCell: import("react").ForwardRefExoticComponent<Pick<HeadCellProps, "cite" | "data" | "form" | "label" | "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" | "css" | "content" | "height" | "width" | "isFixedSize" | "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" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap" | "sortOrder" | "shouldTruncate" | "innerRef" | "testId" | "isSortable"> & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
17
15
|
export {};
|
|
File without changes
|
package/dist/types/theme.d.ts
CHANGED
|
@@ -5,17 +5,18 @@ export declare const MSThemeColors: {
|
|
|
5
5
|
SelectedText: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const arrow: {
|
|
8
|
-
defaultColor:
|
|
9
|
-
selectedColor:
|
|
10
|
-
hoverColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-neutral-pressed)">;
|
|
8
|
+
defaultColor: "var(--ds-icon-disabled)";
|
|
9
|
+
selectedColor: "var(--ds-icon-subtle)";
|
|
11
10
|
};
|
|
12
11
|
export declare const row: {
|
|
13
|
-
focusOutline:
|
|
14
|
-
highlightedBackground:
|
|
15
|
-
hoverBackground:
|
|
16
|
-
hoverHighlightedBackground:
|
|
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)";
|
|
17
16
|
};
|
|
18
17
|
export declare const head: {
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
textColor: "var(--ds-text-subtlest)";
|
|
19
|
+
};
|
|
20
|
+
export declare const tableBorder: {
|
|
21
|
+
borderColor: "var(--ds-border)";
|
|
21
22
|
};
|