@atlaskit/dynamic-table 14.9.2 → 14.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/dynamic-table
2
2
 
3
+ ## 14.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`12d9c63d4c1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12d9c63d4c1) - [ux] pass pageLabel to dynamic-table component and updat prev label in examples, add description in the types file, update example files
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 14.9.3
14
+
15
+ ### Patch Changes
16
+
17
+ - [`77766ad157d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/77766ad157d) - Enrol packages to push-model consumption in Jira.
18
+
3
19
  ## 14.9.2
4
20
 
5
21
  ### Patch Changes
@@ -23,6 +23,9 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
23
23
  // there is a bug with findDOMNode and Suspense in React < 16.9: https://github.com/facebook/react/issues/14188
24
24
  var safeFindDOMNode = function safeFindDOMNode(component) {
25
25
  try {
26
+ // DSP-10519 TODO: ReactDOM.findDOMNode is deprecated in React18, consider using alternative solution
27
+ // https://react.dev/reference/react-dom/findDOMNode#alternatives
28
+ // eslint-disable-next-line react/no-find-dom-node
26
29
  return (0, _reactDom.findDOMNode)(component);
27
30
  } catch (e) {
28
31
  return null;
@@ -52,6 +52,7 @@ var ManagedPagination = /*#__PURE__*/function (_React$Component) {
52
52
  label: i18n === null || i18n === void 0 ? void 0 : i18n.label,
53
53
  nextLabel: i18n === null || i18n === void 0 ? void 0 : i18n.next,
54
54
  previousLabel: i18n === null || i18n === void 0 ? void 0 : i18n.prev,
55
+ pageLabel: i18n === null || i18n === void 0 ? void 0 : i18n.pageLabel,
55
56
  onChange: this.onChange,
56
57
  pages: pages,
57
58
  testId: testId && "".concat(testId, "--pagination")
@@ -29,7 +29,7 @@ var _tableHead = _interopRequireDefault(require("./table-head"));
29
29
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
30
30
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
31
  var packageName = "@atlaskit/dynamic-table";
32
- var packageVersion = "14.9.2";
32
+ var packageVersion = "14.10.0";
33
33
  function toggleSortOrder(currentSortOrder) {
34
34
  switch (currentSortOrder) {
35
35
  case _constants.DESC:
@@ -265,9 +265,10 @@ exports.DynamicTableWithoutAnalytics = DynamicTable;
265
265
  onRankStart: _noop.default,
266
266
  onRankEnd: _noop.default,
267
267
  paginationi18n: {
268
- prev: 'Prev',
268
+ prev: 'Previous',
269
269
  next: 'Next',
270
- label: 'Pagination'
270
+ label: 'Pagination',
271
+ pageLabel: 'Page'
271
272
  }
272
273
  });
273
274
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "14.9.2",
3
+ "version": "14.10.0",
4
4
  "sideEffects": false
5
5
  }
@@ -8,6 +8,9 @@ import { Container, SpinnerBackdrop, SpinnerContainer } from '../styled/loading-
8
8
  // there is a bug with findDOMNode and Suspense in React < 16.9: https://github.com/facebook/react/issues/14188
9
9
  const safeFindDOMNode = component => {
10
10
  try {
11
+ // DSP-10519 TODO: ReactDOM.findDOMNode is deprecated in React18, consider using alternative solution
12
+ // https://react.dev/reference/react-dom/findDOMNode#alternatives
13
+ // eslint-disable-next-line react/no-find-dom-node
11
14
  return findDOMNode(component);
12
15
  } catch (e) {
13
16
  return null;
@@ -24,6 +24,7 @@ export default class ManagedPagination extends React.Component {
24
24
  label: i18n === null || i18n === void 0 ? void 0 : i18n.label,
25
25
  nextLabel: i18n === null || i18n === void 0 ? void 0 : i18n.next,
26
26
  previousLabel: i18n === null || i18n === void 0 ? void 0 : i18n.prev,
27
+ pageLabel: i18n === null || i18n === void 0 ? void 0 : i18n.pageLabel,
27
28
  onChange: this.onChange,
28
29
  pages: pages,
29
30
  testId: testId && `${testId}--pagination`
@@ -14,7 +14,7 @@ import ManagedPagination from './managed-pagination';
14
14
  import RankableTableBody from './rankable/body';
15
15
  import TableHead from './table-head';
16
16
  const packageName = "@atlaskit/dynamic-table";
17
- const packageVersion = "14.9.2";
17
+ const packageVersion = "14.10.0";
18
18
  function toggleSortOrder(currentSortOrder) {
19
19
  switch (currentSortOrder) {
20
20
  case DESC:
@@ -236,9 +236,10 @@ _defineProperty(DynamicTable, "defaultProps", {
236
236
  onRankStart: noop,
237
237
  onRankEnd: noop,
238
238
  paginationi18n: {
239
- prev: 'Prev',
239
+ prev: 'Previous',
240
240
  next: 'Next',
241
- label: 'Pagination'
241
+ label: 'Pagination',
242
+ pageLabel: 'Page'
242
243
  }
243
244
  });
244
245
  export { DynamicTable as DynamicTableWithoutAnalytics };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "14.9.2",
3
+ "version": "14.10.0",
4
4
  "sideEffects": false
5
5
  }
@@ -17,6 +17,9 @@ import { Container, SpinnerBackdrop, SpinnerContainer } from '../styled/loading-
17
17
  // there is a bug with findDOMNode and Suspense in React < 16.9: https://github.com/facebook/react/issues/14188
18
18
  var safeFindDOMNode = function safeFindDOMNode(component) {
19
19
  try {
20
+ // DSP-10519 TODO: ReactDOM.findDOMNode is deprecated in React18, consider using alternative solution
21
+ // https://react.dev/reference/react-dom/findDOMNode#alternatives
22
+ // eslint-disable-next-line react/no-find-dom-node
20
23
  return findDOMNode(component);
21
24
  } catch (e) {
22
25
  return null;
@@ -45,6 +45,7 @@ var ManagedPagination = /*#__PURE__*/function (_React$Component) {
45
45
  label: i18n === null || i18n === void 0 ? void 0 : i18n.label,
46
46
  nextLabel: i18n === null || i18n === void 0 ? void 0 : i18n.next,
47
47
  previousLabel: i18n === null || i18n === void 0 ? void 0 : i18n.prev,
48
+ pageLabel: i18n === null || i18n === void 0 ? void 0 : i18n.pageLabel,
48
49
  onChange: this.onChange,
49
50
  pages: pages,
50
51
  testId: testId && "".concat(testId, "--pagination")
@@ -22,7 +22,7 @@ import ManagedPagination from './managed-pagination';
22
22
  import RankableTableBody from './rankable/body';
23
23
  import TableHead from './table-head';
24
24
  var packageName = "@atlaskit/dynamic-table";
25
- var packageVersion = "14.9.2";
25
+ var packageVersion = "14.10.0";
26
26
  function toggleSortOrder(currentSortOrder) {
27
27
  switch (currentSortOrder) {
28
28
  case DESC:
@@ -257,9 +257,10 @@ _defineProperty(DynamicTable, "defaultProps", {
257
257
  onRankStart: noop,
258
258
  onRankEnd: noop,
259
259
  paginationi18n: {
260
- prev: 'Prev',
260
+ prev: 'Previous',
261
261
  next: 'Next',
262
- label: 'Pagination'
262
+ label: 'Pagination',
263
+ pageLabel: 'Page'
263
264
  }
264
265
  });
265
266
  export { DynamicTable as DynamicTableWithoutAnalytics };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "14.9.2",
3
+ "version": "14.10.0",
4
4
  "sideEffects": false
5
5
  }
@@ -25,6 +25,7 @@ declare class DynamicTable extends React.Component<Props, State> {
25
25
  prev: string;
26
26
  next: string;
27
27
  label: string;
28
+ pageLabel: string;
28
29
  };
29
30
  };
30
31
  UNSAFE_componentWillMount(): void;
@@ -53,6 +54,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<Props, ke
53
54
  prev: string;
54
55
  next: string;
55
56
  label: string;
57
+ pageLabel: string;
56
58
  };
57
59
  }, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "head" | "caption" | "rows" | "emptyView" | "loadingSpinnerSize" | "isLoading" | "isFixedSize" | "rowsPerPage" | "totalRows" | "onSetPage" | "onSort" | "onPageRowsUpdate" | "page" | "sortKey" | "sortOrder" | "isRankable" | "isRankingDisabled" | "onRankStart" | "onRankEnd" | "paginationi18n" | "highlightedRowIndex" | "testId" | "label" | "key" | "analyticsContext"> & React.RefAttributes<any>>;
58
60
  export default _default;
@@ -32,6 +32,13 @@ export interface I18nShape {
32
32
  * Accessible label applied to the current page button in the pagination component.
33
33
  */
34
34
  label: string;
35
+ /**
36
+ * Accessible label for the individual page numbers.
37
+ * The page number is automatically appended to the pageLabel.
38
+ * For Example, pageLabel="página" will render aria-label="página 1"
39
+ * as the label for page 1.
40
+ */
41
+ pageLabel?: string;
35
42
  }
36
43
  export interface StatelessProps extends WithAnalyticsEventsProps {
37
44
  /**
@@ -121,7 +128,7 @@ export interface StatelessProps extends WithAnalyticsEventsProps {
121
128
  onRankEnd?: (rankEnd: RankEnd, uiAnalyticsEvent?: UIAnalyticsEvent) => void;
122
129
  /**
123
130
  * Labels for the pagination wrapper, previous and next buttons used in pagination.
124
- * Defaults to `"pagination"`, `"previous"` and `"next"`.
131
+ * Defaults to `"page"`, `"pagination"`, `"previous"` and `"next"`.
125
132
  */
126
133
  paginationi18n?: I18nShape;
127
134
  /**
@@ -25,6 +25,7 @@ declare class DynamicTable extends React.Component<Props, State> {
25
25
  prev: string;
26
26
  next: string;
27
27
  label: string;
28
+ pageLabel: string;
28
29
  };
29
30
  };
30
31
  UNSAFE_componentWillMount(): void;
@@ -53,6 +54,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<Props, ke
53
54
  prev: string;
54
55
  next: string;
55
56
  label: string;
57
+ pageLabel: string;
56
58
  };
57
59
  }, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "head" | "caption" | "rows" | "emptyView" | "loadingSpinnerSize" | "isLoading" | "isFixedSize" | "rowsPerPage" | "totalRows" | "onSetPage" | "onSort" | "onPageRowsUpdate" | "page" | "sortKey" | "sortOrder" | "isRankable" | "isRankingDisabled" | "onRankStart" | "onRankEnd" | "paginationi18n" | "highlightedRowIndex" | "testId" | "label" | "key" | "analyticsContext"> & React.RefAttributes<any>>;
58
60
  export default _default;
@@ -32,6 +32,13 @@ export interface I18nShape {
32
32
  * Accessible label applied to the current page button in the pagination component.
33
33
  */
34
34
  label: string;
35
+ /**
36
+ * Accessible label for the individual page numbers.
37
+ * The page number is automatically appended to the pageLabel.
38
+ * For Example, pageLabel="página" will render aria-label="página 1"
39
+ * as the label for page 1.
40
+ */
41
+ pageLabel?: string;
35
42
  }
36
43
  export interface StatelessProps extends WithAnalyticsEventsProps {
37
44
  /**
@@ -121,7 +128,7 @@ export interface StatelessProps extends WithAnalyticsEventsProps {
121
128
  onRankEnd?: (rankEnd: RankEnd, uiAnalyticsEvent?: UIAnalyticsEvent) => void;
122
129
  /**
123
130
  * Labels for the pagination wrapper, previous and next buttons used in pagination.
124
- * Defaults to `"pagination"`, `"previous"` and `"next"`.
131
+ * Defaults to `"page"`, `"pagination"`, `"previous"` and `"next"`.
125
132
  */
126
133
  paginationi18n?: I18nShape;
127
134
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "14.9.2",
3
+ "version": "14.10.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/"
@@ -26,7 +26,10 @@
26
26
  "atlassian": {
27
27
  "team": "Design System Team",
28
28
  "deprecatedAutoEntryPoints": true,
29
- "releaseModel": "scheduled",
29
+ "releaseModel": "continuous",
30
+ "productPushConsumption": [
31
+ "jira"
32
+ ],
30
33
  "website": {
31
34
  "name": "Dynamic table",
32
35
  "category": "Components"
@@ -35,10 +38,10 @@
35
38
  "dependencies": {
36
39
  "@atlaskit/analytics-next": "^9.1.0",
37
40
  "@atlaskit/ds-lib": "^2.2.0",
38
- "@atlaskit/pagination": "^14.3.0",
41
+ "@atlaskit/pagination": "^14.4.0",
39
42
  "@atlaskit/spinner": "^15.5.0",
40
43
  "@atlaskit/theme": "^12.5.0",
41
- "@atlaskit/tokens": "^1.4.0",
44
+ "@atlaskit/tokens": "^1.5.0",
42
45
  "@babel/runtime": "^7.0.0",
43
46
  "@emotion/react": "^11.7.1",
44
47
  "react-beautiful-dnd": "^12.1.1"
package/report.api.md CHANGED
@@ -39,14 +39,11 @@ class DynamicTable extends React_2.Component<StatefulProps, State> {
39
39
  // (undocumented)
40
40
  onRankEndIfExistsHandler: (params: RankEnd) => void;
41
41
  // (undocumented)
42
- onSetPageHandler: (
43
- page: number,
44
- analyticsEvent?: UIAnalyticsEvent | undefined,
45
- ) => void;
42
+ onSetPageHandler: (page: number, analyticsEvent?: UIAnalyticsEvent) => void;
46
43
  // (undocumented)
47
44
  onSortHandler: (
48
45
  { key, item, sortOrder }: any,
49
- analyticsEvent?: UIAnalyticsEvent | undefined,
46
+ analyticsEvent?: UIAnalyticsEvent,
50
47
  ) => void;
51
48
  // (undocumented)
52
49
  render(): JSX.Element;
@@ -113,6 +110,7 @@ export const DynamicTableStateless: React_2.ForwardRefExoticComponent<
113
110
  prev: string;
114
111
  next: string;
115
112
  label: string;
113
+ pageLabel: string;
116
114
  };
117
115
  },
118
116
  never
@@ -166,6 +164,7 @@ interface HeadType {
166
164
  interface I18nShape {
167
165
  label: string;
168
166
  next: string;
167
+ pageLabel?: string;
169
168
  prev: string;
170
169
  }
171
170
 
@@ -0,0 +1,215 @@
1
+ ## API Report File for "@atlaskit/dynamic-table"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import noop from '@atlaskit/ds-lib/noop';
8
+ import { default as React_2 } from 'react';
9
+ import { Ref } from 'react';
10
+ import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
11
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
12
+ import { WithContextProps } from '@atlaskit/analytics-next';
13
+
14
+ // @public
15
+ class DynamicTable extends React_2.Component<StatefulProps, State> {
16
+ // (undocumented)
17
+ static defaultProps: {
18
+ defaultPage: number;
19
+ isLoading: boolean;
20
+ isFixedSize: boolean;
21
+ isRankable: boolean;
22
+ onSetPage: typeof noop;
23
+ onSort: typeof noop;
24
+ rowsPerPage: number;
25
+ };
26
+ // (undocumented)
27
+ onRankEndHandler: (params: RankEnd) => void;
28
+ // (undocumented)
29
+ onRankEndIfExistsHandler: (params: RankEnd) => void;
30
+ // (undocumented)
31
+ onSetPageHandler: (page: number, analyticsEvent?: UIAnalyticsEvent) => void;
32
+ // (undocumented)
33
+ onSortHandler: ({ key, item, sortOrder }: any, analyticsEvent?: UIAnalyticsEvent) => void;
34
+ // (undocumented)
35
+ render(): JSX.Element;
36
+ // (undocumented)
37
+ state: {
38
+ page: number | undefined;
39
+ sortKey: string | undefined;
40
+ sortOrder: SortOrderType | undefined;
41
+ rows: RowType[] | undefined;
42
+ };
43
+ // (undocumented)
44
+ UNSAFE_componentWillReceiveProps(newProps: StatefulProps): void;
45
+ }
46
+ export default DynamicTable;
47
+
48
+ // @public (undocumented)
49
+ export const DynamicTableStateless: React_2.ForwardRefExoticComponent<Pick<Pick<Omit<StatelessProps, keyof WithAnalyticsEventsProps>, "caption" | "emptyView" | "head" | "highlightedRowIndex" | "label" | "loadingSpinnerSize" | "onPageRowsUpdate" | "rows" | "sortKey" | "sortOrder" | "testId" | "totalRows"> & Partial<Pick<Omit<StatelessProps, keyof WithAnalyticsEventsProps>, "isFixedSize" | "isLoading" | "isRankable" | "isRankingDisabled" | "onRankEnd" | "onRankStart" | "onSetPage" | "onSort" | "page" | "paginationi18n" | "rowsPerPage">> & Partial<Pick<{
50
+ isLoading: boolean;
51
+ isFixedSize: boolean;
52
+ rowsPerPage: number;
53
+ onSetPage: typeof noop;
54
+ onSort: typeof noop;
55
+ page: number;
56
+ isRankable: boolean;
57
+ isRankingDisabled: boolean;
58
+ onRankStart: typeof noop;
59
+ onRankEnd: typeof noop;
60
+ paginationi18n: {
61
+ prev: string;
62
+ next: string;
63
+ label: string;
64
+ pageLabel: string;
65
+ };
66
+ }, never>> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "caption" | "emptyView" | "head" | "highlightedRowIndex" | "isFixedSize" | "isLoading" | "isRankable" | "isRankingDisabled" | "key" | "label" | "loadingSpinnerSize" | "onPageRowsUpdate" | "onRankEnd" | "onRankStart" | "onSetPage" | "onSort" | "page" | "paginationi18n" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "testId" | "totalRows"> & React_2.RefAttributes<any>>;
67
+
68
+ // @public (undocumented)
69
+ interface HeadCellType extends RowCellType {
70
+ isSortable?: boolean;
71
+ shouldTruncate?: boolean;
72
+ width?: number;
73
+ }
74
+
75
+ // @public (undocumented)
76
+ interface HeadType {
77
+ // (undocumented)
78
+ cells: Array<HeadCellType>;
79
+ }
80
+
81
+ // @public (undocumented)
82
+ interface I18nShape {
83
+ label: string;
84
+ next: string;
85
+ pageLabel?: string;
86
+ prev: string;
87
+ }
88
+
89
+ // @public (undocumented)
90
+ type LoadingSpinnerSizeType = 'large' | 'small';
91
+
92
+ // @public (undocumented)
93
+ interface RankEnd {
94
+ // (undocumented)
95
+ destination?: RankEndLocation;
96
+ // (undocumented)
97
+ sourceIndex: number;
98
+ // (undocumented)
99
+ sourceKey: string;
100
+ }
101
+
102
+ // @public (undocumented)
103
+ interface RankEndLocation {
104
+ // (undocumented)
105
+ afterKey?: string;
106
+ // (undocumented)
107
+ beforeKey?: string;
108
+ // (undocumented)
109
+ index: number;
110
+ }
111
+
112
+ // @public (undocumented)
113
+ interface RankStart {
114
+ // (undocumented)
115
+ index: number;
116
+ // (undocumented)
117
+ key: string;
118
+ }
119
+
120
+ // @public (undocumented)
121
+ interface RowCellType {
122
+ colSpan?: number;
123
+ content?: React_2.ReactNode | string;
124
+ key?: number | string;
125
+ testId?: string;
126
+ }
127
+
128
+ // @public (undocumented)
129
+ interface RowType extends React_2.ComponentPropsWithoutRef<'tr'> {
130
+ // (undocumented)
131
+ cells: Array<RowCellType>;
132
+ isHighlighted?: boolean;
133
+ // (undocumented)
134
+ key?: string;
135
+ onClick?: React_2.MouseEventHandler;
136
+ onKeyPress?: React_2.KeyboardEventHandler;
137
+ // (undocumented)
138
+ ref?: Ref<HTMLTableRowElement>;
139
+ testId?: string;
140
+ }
141
+
142
+ // @public
143
+ type SortOrderType = 'ASC' | 'DESC';
144
+
145
+ // @public (undocumented)
146
+ interface State {
147
+ // (undocumented)
148
+ page?: number;
149
+ // (undocumented)
150
+ rows?: RowType[];
151
+ // (undocumented)
152
+ sortKey?: string;
153
+ // (undocumented)
154
+ sortOrder?: SortOrderType;
155
+ }
156
+
157
+ // @public (undocumented)
158
+ interface StatefulProps extends WithAnalyticsEventsProps {
159
+ caption?: React_2.ReactNode;
160
+ defaultPage?: number;
161
+ defaultSortKey?: string;
162
+ defaultSortOrder?: SortOrderType;
163
+ emptyView?: React_2.ReactElement<any>;
164
+ head?: HeadType;
165
+ highlightedRowIndex?: number | number[];
166
+ isFixedSize?: boolean;
167
+ isLoading?: boolean;
168
+ isRankable?: boolean;
169
+ isRankingDisabled?: boolean;
170
+ label?: string;
171
+ loadingSpinnerSize?: LoadingSpinnerSizeType;
172
+ onPageRowsUpdate?: (pageRows: Array<RowType>) => void;
173
+ onRankEnd?: (rankEnd: RankEnd) => void;
174
+ onRankStart?: (rankStart: RankStart) => void;
175
+ onSetPage?: (page: number, UIAnalyticsEvent?: UIAnalyticsEvent) => void;
176
+ onSort?: (data: any, UIAnalyticsEvent?: UIAnalyticsEvent) => void;
177
+ page?: number;
178
+ paginationi18n?: I18nShape;
179
+ rows?: Array<RowType>;
180
+ rowsPerPage?: number;
181
+ sortKey?: string;
182
+ sortOrder?: SortOrderType;
183
+ testId?: string;
184
+ }
185
+
186
+ // @public (undocumented)
187
+ interface StatelessProps extends WithAnalyticsEventsProps {
188
+ caption?: React_2.ReactNode;
189
+ emptyView?: React_2.ReactElement<any>;
190
+ head?: HeadType;
191
+ highlightedRowIndex?: number | number[];
192
+ isFixedSize?: boolean;
193
+ isLoading?: boolean;
194
+ isRankable?: boolean;
195
+ isRankingDisabled?: boolean;
196
+ label?: string;
197
+ loadingSpinnerSize?: LoadingSpinnerSizeType;
198
+ onPageRowsUpdate?: (pageRows: Array<RowType>) => void;
199
+ onRankEnd?: (rankEnd: RankEnd, uiAnalyticsEvent?: UIAnalyticsEvent) => void;
200
+ onRankStart?: (rankStart: RankStart) => void;
201
+ onSetPage?: (page: number, UIAnalyticsEvent?: UIAnalyticsEvent) => void;
202
+ onSort?: (data: any, UIAnalyticsEvent?: UIAnalyticsEvent) => void;
203
+ page?: number;
204
+ paginationi18n?: I18nShape;
205
+ rows?: Array<RowType>;
206
+ rowsPerPage?: number;
207
+ sortKey?: string;
208
+ sortOrder?: SortOrderType;
209
+ testId?: string;
210
+ totalRows?: number;
211
+ }
212
+
213
+ // (No @packageDocumentation comment for this package)
214
+
215
+ ```