@atlaskit/dynamic-table 14.6.1 → 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.
Files changed (122) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/components/{Body.js → body.js} +3 -3
  3. package/dist/cjs/components/{LoadingContainerAdvanced.js → loading-container-advanced.js} +3 -3
  4. package/dist/cjs/components/{LoadingContainer.js → loading-container.js} +3 -3
  5. package/dist/cjs/components/rankable/{Body.js → body.js} +3 -3
  6. package/dist/cjs/components/rankable/{TableCell.js → table-cell.js} +3 -3
  7. package/dist/cjs/components/rankable/{TableHeadCell.js → table-head-cell.js} +3 -3
  8. package/dist/cjs/components/rankable/{TableRow.js → table-row.js} +5 -5
  9. package/dist/cjs/components/{Stateful.js → stateful.js} +6 -4
  10. package/dist/cjs/components/{Stateless.js → stateless.js} +32 -23
  11. package/dist/cjs/components/{TableHeadCell.js → table-head-cell.js} +5 -3
  12. package/dist/cjs/components/{TableHead.js → table-head.js} +7 -6
  13. package/dist/cjs/components/{TableRow.js → table-row.js} +6 -5
  14. package/dist/cjs/hoc/{withDimensions.js → with-dimensions.js} +0 -0
  15. package/dist/cjs/hoc/{withSortedPageRows.js → with-sorted-page-rows.js} +0 -0
  16. package/dist/cjs/index.js +4 -4
  17. package/dist/cjs/styled/constants.js +2 -2
  18. package/dist/cjs/styled/{DynamicTable.js → dynamic-table.js} +19 -25
  19. package/dist/cjs/styled/{EmptyBody.js → empty-body.js} +4 -2
  20. package/dist/cjs/styled/{LoadingContainerAdvanced.js → loading-container-advanced.js} +10 -6
  21. package/dist/cjs/styled/{LoadingContainer.js → loading-container.js} +5 -3
  22. package/dist/cjs/styled/rankable/{RowPlaceholder.js → row-placeholder.js} +6 -4
  23. package/dist/cjs/styled/rankable/{TableCell.js → table-cell.js} +5 -4
  24. package/dist/cjs/styled/rankable/{TableRow.js → table-row.js} +10 -9
  25. package/dist/cjs/styled/{TableCell.js → table-cell.js} +3 -1
  26. package/dist/cjs/styled/{TableHead.js → table-head.js} +73 -95
  27. package/dist/cjs/styled/{TableRow.js → table-row.js} +7 -6
  28. package/dist/cjs/theme.js +13 -40
  29. package/dist/cjs/version.json +1 -1
  30. package/dist/es2019/components/{Body.js → body.js} +2 -2
  31. package/dist/es2019/components/{LoadingContainerAdvanced.js → loading-container-advanced.js} +1 -1
  32. package/dist/es2019/components/{LoadingContainer.js → loading-container.js} +1 -1
  33. package/dist/es2019/components/rankable/{Body.js → body.js} +2 -2
  34. package/dist/es2019/components/rankable/{TableCell.js → table-cell.js} +2 -2
  35. package/dist/es2019/components/rankable/{TableHeadCell.js → table-head-cell.js} +2 -2
  36. package/dist/es2019/components/rankable/{TableRow.js → table-row.js} +3 -3
  37. package/dist/es2019/components/{Stateful.js → stateful.js} +4 -3
  38. package/dist/es2019/components/{Stateless.js → stateless.js} +24 -16
  39. package/dist/es2019/components/{TableHeadCell.js → table-head-cell.js} +4 -2
  40. package/dist/es2019/components/{TableHead.js → table-head.js} +5 -4
  41. package/dist/es2019/components/{TableRow.js → table-row.js} +4 -3
  42. package/dist/es2019/hoc/{withDimensions.js → with-dimensions.js} +0 -0
  43. package/dist/es2019/hoc/{withSortedPageRows.js → with-sorted-page-rows.js} +0 -0
  44. package/dist/es2019/index.js +2 -2
  45. package/dist/es2019/styled/constants.js +4 -6
  46. package/dist/es2019/styled/{DynamicTable.js → dynamic-table.js} +24 -27
  47. package/dist/es2019/styled/{EmptyBody.js → empty-body.js} +4 -2
  48. package/dist/es2019/styled/{LoadingContainerAdvanced.js → loading-container-advanced.js} +7 -4
  49. package/dist/es2019/styled/{LoadingContainer.js → loading-container.js} +5 -3
  50. package/dist/es2019/styled/rankable/row-placeholder.js +12 -0
  51. package/dist/es2019/styled/rankable/{TableCell.js → table-cell.js} +5 -3
  52. package/dist/es2019/styled/rankable/{TableRow.js → table-row.js} +9 -8
  53. package/dist/es2019/styled/{TableCell.js → table-cell.js} +4 -2
  54. package/dist/es2019/styled/table-head.js +138 -0
  55. package/dist/es2019/styled/{TableRow.js → table-row.js} +3 -2
  56. package/dist/es2019/theme.js +10 -37
  57. package/dist/es2019/types.js +1 -0
  58. package/dist/es2019/version.json +1 -1
  59. package/dist/esm/components/{Body.js → body.js} +2 -2
  60. package/dist/esm/components/{LoadingContainerAdvanced.js → loading-container-advanced.js} +1 -1
  61. package/dist/esm/components/{LoadingContainer.js → loading-container.js} +1 -1
  62. package/dist/esm/components/rankable/{Body.js → body.js} +2 -2
  63. package/dist/esm/components/rankable/{TableCell.js → table-cell.js} +2 -2
  64. package/dist/esm/components/rankable/{TableHeadCell.js → table-head-cell.js} +2 -2
  65. package/dist/esm/components/rankable/{TableRow.js → table-row.js} +3 -3
  66. package/dist/esm/components/{Stateful.js → stateful.js} +4 -3
  67. package/dist/esm/components/{Stateless.js → stateless.js} +24 -16
  68. package/dist/esm/components/{TableHeadCell.js → table-head-cell.js} +4 -2
  69. package/dist/esm/components/{TableHead.js → table-head.js} +5 -4
  70. package/dist/esm/components/{TableRow.js → table-row.js} +4 -3
  71. package/dist/esm/hoc/{withDimensions.js → with-dimensions.js} +0 -0
  72. package/dist/esm/hoc/{withSortedPageRows.js → with-sorted-page-rows.js} +0 -0
  73. package/dist/esm/index.js +2 -2
  74. package/dist/esm/styled/constants.js +2 -2
  75. package/dist/esm/styled/{DynamicTable.js → dynamic-table.js} +22 -25
  76. package/dist/esm/styled/{EmptyBody.js → empty-body.js} +4 -2
  77. package/dist/esm/styled/{LoadingContainerAdvanced.js → loading-container-advanced.js} +10 -6
  78. package/dist/esm/styled/{LoadingContainer.js → loading-container.js} +5 -3
  79. package/dist/esm/styled/rankable/{RowPlaceholder.js → row-placeholder.js} +7 -4
  80. package/dist/esm/styled/rankable/{TableCell.js → table-cell.js} +5 -3
  81. package/dist/esm/styled/rankable/{TableRow.js → table-row.js} +9 -8
  82. package/dist/esm/styled/{TableCell.js → table-cell.js} +4 -2
  83. package/dist/esm/styled/{TableHead.js → table-head.js} +75 -94
  84. package/dist/esm/styled/{TableRow.js → table-row.js} +3 -2
  85. package/dist/esm/theme.js +10 -37
  86. package/dist/esm/types.js +1 -0
  87. package/dist/esm/version.json +1 -1
  88. package/dist/types/components/{Body.d.ts → body.d.ts} +23 -23
  89. package/dist/types/components/{LoadingContainerAdvanced.d.ts → loading-container-advanced.d.ts} +5 -5
  90. package/dist/types/components/{LoadingContainer.d.ts → loading-container.d.ts} +0 -0
  91. package/dist/types/components/rankable/body.d.ts +122 -0
  92. package/dist/types/components/rankable/table-cell.d.ts +14 -0
  93. package/dist/types/components/rankable/table-head-cell.d.ts +5 -0
  94. package/dist/types/components/rankable/table-row.d.ts +18 -0
  95. package/dist/types/components/{Stateful.d.ts → stateful.d.ts} +3 -2
  96. package/dist/types/components/{Stateless.d.ts → stateless.d.ts} +9 -8
  97. package/dist/types/components/{TableHeadCell.d.ts → table-head-cell.d.ts} +2 -2
  98. package/dist/types/components/{TableHead.d.ts → table-head.d.ts} +3 -3
  99. package/dist/types/components/{TableRow.d.ts → table-row.d.ts} +2 -2
  100. package/dist/types/hoc/{withDimensions.d.ts → with-dimensions.d.ts} +0 -0
  101. package/dist/types/hoc/{withSortedPageRows.d.ts → with-sorted-page-rows.d.ts} +23 -23
  102. package/dist/types/index.d.ts +2 -2
  103. package/dist/types/styled/constants.d.ts +2 -2
  104. package/dist/types/styled/{DynamicTable.d.ts → dynamic-table.d.ts} +2 -1
  105. package/dist/types/styled/{EmptyBody.d.ts → empty-body.d.ts} +0 -0
  106. package/dist/types/styled/{LoadingContainerAdvanced.d.ts → loading-container-advanced.d.ts} +0 -0
  107. package/dist/types/styled/{LoadingContainer.d.ts → loading-container.d.ts} +0 -0
  108. package/dist/types/styled/rankable/{RowPlaceholder.d.ts → row-placeholder.d.ts} +0 -0
  109. package/dist/types/styled/rankable/{TableCell.d.ts → table-cell.d.ts} +0 -0
  110. package/dist/types/styled/rankable/{TableRow.d.ts → table-row.d.ts} +1 -1
  111. package/dist/types/styled/{TableCell.d.ts → table-cell.d.ts} +0 -0
  112. package/dist/types/styled/{TableHead.d.ts → table-head.d.ts} +0 -2
  113. package/dist/types/styled/{TableRow.d.ts → table-row.d.ts} +0 -0
  114. package/dist/types/theme.d.ts +10 -9
  115. package/dist/types/types.d.ts +37 -33
  116. package/package.json +5 -3
  117. package/dist/es2019/styled/TableHead.js +0 -160
  118. package/dist/es2019/styled/rankable/RowPlaceholder.js +0 -10
  119. package/dist/types/components/rankable/Body.d.ts +0 -122
  120. package/dist/types/components/rankable/TableCell.d.ts +0 -14
  121. package/dist/types/components/rankable/TableHeadCell.d.ts +0 -5
  122. package/dist/types/components/rankable/TableRow.d.ts +0 -18
@@ -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: () => void;
43
- onSort: () => void;
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: () => void;
17
- onSort: () => void;
17
+ onSetPage: typeof noop;
18
+ onSort: typeof noop;
18
19
  page: number;
19
20
  isRankable: boolean;
20
21
  isRankingDisabled: boolean;
21
- onRankStart: () => void;
22
- onRankEnd: () => void;
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: () => void;
45
- onSort: () => void;
45
+ onSetPage: typeof noop;
46
+ onSort: typeof noop;
46
47
  page: number;
47
48
  isRankable: boolean;
48
49
  isRankingDisabled: boolean;
49
- onRankStart: () => void;
50
- onRankEnd: () => void;
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 Props {
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<Props>;
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 Props {
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<Props, {}> {
13
+ declare class TableHead extends React.Component<TableHeadProps, {}> {
14
14
  UNSAFE_componentWillMount(): void;
15
- UNSAFE_componentWillReceiveProps(nextProps: Props): void;
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 Props {
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 }: Props) => JSX.Element;
10
+ declare const Row: ({ row, head, testId, isFixedSize, isHighlighted }: RowProps) => JSX.Element;
11
11
  export default Row;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { HeadType, RowType, SortOrderType } from '../types';
3
- export interface Props {
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 & Props>(WrappedComponent: React.ComponentType<WrappedComponentProps>): {
17
- new (props: Readonly<Omit<WrappedComponentProps & Props, "pageRows">>): {
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 & Props, "pageRows">, prevState: {
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 & Props, "pageRows">>) => {
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 & Props, "pageRows">> & Readonly<{
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 & Props, "pageRows">>, nextState: Readonly<{
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 & Props, "pageRows">>, prevState: Readonly<{
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 & Props, "pageRows">>, nextContext: any): void;
56
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & Props, "pageRows">>, nextContext: any): void;
57
- componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & Props, "pageRows">>, nextState: Readonly<{
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 & Props, "pageRows">>, nextState: Readonly<{
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 & Props, "pageRows">, context?: any): {
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 & Props, "pageRows">, prevState: {
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 & Props, "pageRows">>) => {
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 & Props, "pageRows">> & Readonly<{
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 & Props, "pageRows">>, nextState: Readonly<{
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 & Props, "pageRows">>, prevState: Readonly<{
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 & Props, "pageRows">>, nextContext: any): void;
103
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & Props, "pageRows">>, nextContext: any): void;
104
- componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & Props, "pageRows">>, nextState: Readonly<{
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 & Props, "pageRows">>, nextState: Readonly<{
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 & Props, 'pageRows'>, state: {
111
+ getDerivedStateFromProps(props: Omit<WrappedComponentProps & TableProps, 'pageRows'>, state: {
112
112
  pageRows: Array<RowType>;
113
113
  }): {
114
114
  pageRows: RowType[];
@@ -1,2 +1,2 @@
1
- export { default } from './components/Stateful';
2
- export { default as DynamicTableStateless } from './components/Stateless';
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 | undefined;
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;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { HTMLAttributes } from 'react';
3
- import { ITableRowProps } from '../TableRow';
3
+ import { ITableRowProps } from '../table-row';
4
4
  export declare type RankableTableBodyRowProps = HTMLAttributes<HTMLTableRowElement> & ITableRowProps & {
5
5
  isRanking?: boolean;
6
6
  isRankingItem?: boolean;
@@ -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 {};
@@ -5,17 +5,18 @@ export declare const MSThemeColors: {
5
5
  SelectedText: string;
6
6
  };
7
7
  export declare const arrow: {
8
- defaultColor: import("@atlaskit/theme").ThemedValue<"var(--ds-icon-disabled)">;
9
- selectedColor: import("@atlaskit/theme").ThemedValue<"var(--ds-icon-subtle)">;
10
- hoverColor: import("@atlaskit/theme").ThemedValue<"var(--ds-icon-disabled)">;
8
+ defaultColor: "var(--ds-icon-disabled)";
9
+ selectedColor: "var(--ds-icon-subtle)";
11
10
  };
12
11
  export declare const row: {
13
- focusOutline: import("@atlaskit/theme").ThemedValue<"var(--ds-border-focused)">;
14
- highlightedBackground: import("@atlaskit/theme").ThemedValue<"var(--ds-background-selected)">;
15
- hoverBackground: import("@atlaskit/theme").ThemedValue<"var(--ds-background-neutral-subtle-hovered)">;
16
- hoverHighlightedBackground: import("@atlaskit/theme").ThemedValue<"var(--ds-background-selected-hovered)">;
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
- borderColor: import("@atlaskit/theme").ThemedValue<"var(--ds-border)">;
20
- textColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-subtlest)">;
18
+ textColor: "var(--ds-text-subtlest)";
19
+ };
20
+ export declare const tableBorder: {
21
+ borderColor: "var(--ds-border)";
21
22
  };
@@ -46,7 +46,7 @@ export interface StatelessProps extends WithAnalyticsEventsProps {
46
46
  /**
47
47
  * Rows to be placed in the table.
48
48
  * Each row contains cells which should map to the ones defined in the head.
49
-
49
+ *
50
50
  * Ensure each cell has a unique `key` per column - this is used for both Reacts reconcilation of lists and column sorting.
51
51
  */
52
52
  rows?: Array<RowType>;
@@ -90,7 +90,7 @@ export interface StatelessProps extends WithAnalyticsEventsProps {
90
90
  */
91
91
  onPageRowsUpdate?: (pageRows: Array<RowType>) => void;
92
92
  /**
93
- * Page the table should show.
93
+ * Page the table should show. Set by default to 1, so never undefined.
94
94
  */
95
95
  page?: number;
96
96
  /**
@@ -129,19 +129,19 @@ export interface StatelessProps extends WithAnalyticsEventsProps {
129
129
  */
130
130
  highlightedRowIndex?: number | number[];
131
131
  /**
132
- A `testId` prop is provided for specified elements,
133
- which is a unique string that appears as a data attribute
134
- `data-testid` in the rendered code, serving as a hook for automated tests.
135
-
136
- The value of `testId` is used to prefix `testId` props in given elements.
137
- - `{testId}--table` - Table.
138
- - `{testId}--head` - Table header.
139
- - `{testId}--head--{content of the cell}` - Table header cell can be identified by their content.
140
- - `{testId}--row--{index - content of the first cell}` - Table row.
141
- - `{testId}--body` - Table body.
142
- - `{testId}--body--{content of the cell}` - Table body cell can be identified by their content.
143
- - `{testId}--loadingSpinner` - The spinner overlaid when loading.
144
- - `{testId}--pagination` - The table pagination.
132
+ * A `testId` prop is provided for specified elements,
133
+ * which is a unique string that appears as a data attribute
134
+ * `data-testid` in the rendered code, serving as a hook for automated tests.
135
+ *
136
+ * The value of `testId` is used to prefix `testId` props in given elements.
137
+ * - `{testId}--table` - Table.
138
+ * - `{testId}--head` - Table header.
139
+ * - `{testId}--head--{content of the cell}` - Table header cell can be identified by their content.
140
+ * - `{testId}--row--{index - content of the first cell}` - Table row.
141
+ * - `{testId}--body` - Table body.
142
+ * - `{testId}--body--{content of the cell}` - Table body cell can be identified by their content.
143
+ * - `{testId}--loadingSpinner` - The spinner overlaid when loading.
144
+ * - `{testId}--pagination` - The table pagination.
145
145
  */
146
146
  testId?: string;
147
147
  /**
@@ -165,7 +165,6 @@ export interface StatefulProps extends WithAnalyticsEventsProps {
165
165
  * Rows to be placed in the table.
166
166
  * Each row contains cells which should map to the ones defined in the head.
167
167
  * Rows accept standard HTML <tr> props in addition to those listed below.
168
-
169
168
  * Ensure each cell has a unique `key` per column - this is used for both React's reconciliation of lists and column sorting.
170
169
  */
171
170
  rows?: Array<RowType>;
@@ -187,7 +186,7 @@ export interface StatefulProps extends WithAnalyticsEventsProps {
187
186
  */
188
187
  isFixedSize?: boolean;
189
188
  /**
190
- * Controls how many rows should be diplayed per page.
189
+ * Controls how many rows should be displayed per page. If set, also turns on pagination, if there is more than one page to show.
191
190
  */
192
191
  rowsPerPage?: number;
193
192
  /**
@@ -261,19 +260,18 @@ export interface StatefulProps extends WithAnalyticsEventsProps {
261
260
  */
262
261
  highlightedRowIndex?: number | number[];
263
262
  /**
264
- A `testId` prop is provided for specified elements,
265
- which is a unique string that appears as a data attribute
266
- `data-testid` in the rendered code, serving as a hook for automated tests.
267
-
268
- The value of `testId` is used to prefix `testId` props in given elements.
269
- - `{testId}--table` - Table.
270
- - `{testId}--head` - Table header.
271
- - `{testId}--head--{content of the cell}` - Table header cell can be identified by their content.
272
- - `{testId}--row--{index - content of the first cell}` - Table row.
273
- - `{testId}--body` - Table body.
274
- - `{testId}--body--{content of the cell}` - Table body cell can be identified by their content.
275
- - `{testId}--loadingSpinner` - The spinner overlaid when loading.
276
- - `{testId}--pagination` - The table pagination.
263
+ * A `testId` prop is provided for specified elements,
264
+ * which is a unique string that appears as a data attribute
265
+ * `data-testid` in the rendered code, serving as a hook for automated tests.
266
+ * The value of `testId` is used to prefix `testId` props in given elements.
267
+ * - `{testId}--table` - Table.
268
+ * - `{testId}--head` - Table header.
269
+ * - `{testId}--head--{content of the cell}` - Table header cell can be identified by their content.
270
+ * - `{testId}--row--{index - content of the first cell}` - Table row.
271
+ * - `{testId}--body` - Table body.
272
+ * - `{testId}--body--{content of the cell}` - Table body cell can be identified by their content.
273
+ * - `{testId}--loadingSpinner` - The spinner overlaid when loading.
274
+ * - `{testId}--pagination` - The table pagination.
277
275
  */
278
276
  testId?: string;
279
277
  /**
@@ -315,11 +313,17 @@ export declare type SortOrderType = 'ASC' | 'DESC';
315
313
  export declare type SpinnerSizeType = SizeType;
316
314
  export declare type LoadingSpinnerSizeType = 'small' | 'large';
317
315
  export interface HeadCellType extends RowCellType {
318
- /** Whether the column the cell sits above is sortable. */
316
+ /**
317
+ * Whether the column the cell sits above is sortable.
318
+ */
319
319
  isSortable?: boolean;
320
- /** The width of the cell as a percentage. */
320
+ /**
321
+ * The width of the cell as a percentage.
322
+ */
321
323
  width?: number;
322
- /** Whether the text in the cell will truncate or not if constrained. */
324
+ /**
325
+ * Whether the text in the cell will truncate or not if constrained.
326
+ */
323
327
  shouldTruncate?: boolean;
324
328
  }
325
329
  export interface RankEndLocation {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "14.6.1",
3
+ "version": "14.7.0",
4
4
  "description": "A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -14,7 +14,7 @@
14
14
  "module:es2019": "dist/es2019/index.js",
15
15
  "types": "dist/types/index.d.ts",
16
16
  "sideEffects": false,
17
- "atlaskit:src": "src/index.ts",
17
+ "atlaskit:src": "src/index.tsx",
18
18
  "atlassian": {
19
19
  "team": "Design System Team",
20
20
  "deprecatedAutoEntryPoints": true,
@@ -26,6 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@atlaskit/analytics-next": "^8.0.0",
29
+ "@atlaskit/ds-lib": "^2.1.0",
29
30
  "@atlaskit/pagination": "^14.0.0",
30
31
  "@atlaskit/spinner": "^15.0.0",
31
32
  "@atlaskit/theme": "^12.1.0",
@@ -42,7 +43,7 @@
42
43
  "@atlaskit/avatar": "^21.0.0",
43
44
  "@atlaskit/button": "^16.3.0",
44
45
  "@atlaskit/docs": "*",
45
- "@atlaskit/dropdown-menu": "^11.2.0",
46
+ "@atlaskit/dropdown-menu": "^11.3.0",
46
47
  "@atlaskit/ssr": "*",
47
48
  "@atlaskit/toggle": "^12.4.0",
48
49
  "@atlaskit/visual-regression": "*",
@@ -62,6 +63,7 @@
62
63
  },
63
64
  "@repo/internal": {
64
65
  "dom-events": "use-bind-event-listener",
66
+ "design-system": "v1",
65
67
  "theming": "tokens",
66
68
  "deprecation": "no-deprecated-imports",
67
69
  "styling": [