@atlaskit/dynamic-table 17.0.0 → 17.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/dynamic-table
2
2
 
3
+ ## 17.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 17.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#99494](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99494)
14
+ [`71da0c3911d56`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/71da0c3911d56) -
15
+ [ux] Added customisable sort button labels
16
+
3
17
  ## 17.0.0
4
18
 
5
19
  ### Major Changes
@@ -86,14 +86,14 @@ var DynamicTable = function DynamicTable(_ref) {
86
86
  action: 'sorted',
87
87
  componentName: 'dynamicTable',
88
88
  packageName: "@atlaskit/dynamic-table",
89
- packageVersion: "17.0.0"
89
+ packageVersion: "17.0.2"
90
90
  });
91
91
  var onRankEnd = (0, _analyticsNext.usePlatformLeafEventHandler)({
92
92
  fn: providedOnRankEnd,
93
93
  action: 'ranked',
94
94
  componentName: 'dynamicTable',
95
95
  packageName: "@atlaskit/dynamic-table",
96
- packageVersion: "17.0.0"
96
+ packageVersion: "17.0.2"
97
97
  });
98
98
  (0, _react.useEffect)(function () {
99
99
  (0, _helpers.validateSortKey)(sortKey, head);
@@ -1,4 +1,4 @@
1
- /* table-head-cell.tsx generated by @compiled/babel-plugin v0.32.2 */
1
+ /* table-head-cell.tsx generated by @compiled/babel-plugin v0.35.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -20,13 +20,13 @@ var _compiled = require("@atlaskit/primitives/compiled");
20
20
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
21
21
  var _constants = require("../internal/constants");
22
22
  var _tableHead = require("../styled/table-head");
23
- var _excluded = ["content", "inlineStyles", "testId", "isRanking", "innerRef", "isSortable", "sortOrder", "onClick", "headCellId", "activeSortButtonId"];
23
+ var _excluded = ["content", "inlineStyles", "testId", "isRanking", "innerRef", "isSortable", "sortOrder", "onClick", "headCellId", "activeSortButtonId", "ascendingSortTooltip", "descendingSortTooltip", "buttonAriaRoleDescription"];
24
24
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
25
25
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
26
26
  var styles = {
27
27
  buttonWrapper: "_19bvu2gc _d0altlke",
28
- buttonHiddenWrapper: "_1e0c1txw _tzy4idpf _bfhk18uv _1yt41b66 _1h7hkb7n",
29
- buttonVisibleWrapper: "_1e0c1txw _tzy4kb7n _bfhk18uv _1yt41b66"
28
+ buttonHiddenWrapper: "_1yt41b66 _1e0c1txw _tzy4idpf _bfhk18uv _1h7hkb7n",
29
+ buttonVisibleWrapper: "_1yt41b66 _1e0c1txw _tzy4kb7n _bfhk18uv"
30
30
  };
31
31
  var headCellStyles = {
32
32
  headCellContainer: "_1e0c1txw _4cvr1h6o"
@@ -42,6 +42,12 @@ var TableHeadCell = function TableHeadCell(_ref) {
42
42
  onClick = _ref.onClick,
43
43
  headCellId = _ref.headCellId,
44
44
  activeSortButtonId = _ref.activeSortButtonId,
45
+ _ref$ascendingSortToo = _ref.ascendingSortTooltip,
46
+ ascendingSortTooltip = _ref$ascendingSortToo === void 0 ? 'Sort ascending' : _ref$ascendingSortToo,
47
+ _ref$descendingSortTo = _ref.descendingSortTooltip,
48
+ descendingSortTooltip = _ref$descendingSortTo === void 0 ? 'Sort descending' : _ref$descendingSortTo,
49
+ _ref$buttonAriaRoleDe = _ref.buttonAriaRoleDescription,
50
+ buttonAriaRoleDescription = _ref$buttonAriaRoleDe === void 0 ? 'Sort button' : _ref$buttonAriaRoleDe,
45
51
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
46
52
  var _ref2 = (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ?
47
53
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -74,11 +80,11 @@ var TableHeadCell = function TableHeadCell(_ref) {
74
80
  }, content), /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
75
81
  xcss: styles.buttonWrapper
76
82
  }, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
77
- content: sortOrder === _constants.ASC ? 'Sort ascending' : 'Sort descending'
83
+ content: sortOrder === _constants.ASC ? ascendingSortTooltip : descendingSortTooltip
78
84
  }, /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
79
85
  onClick: onClick,
80
86
  xcss: isSortButtonVisible ? styles.buttonVisibleWrapper : styles.buttonHiddenWrapper,
81
- "aria-roledescription": "Sort button"
87
+ "aria-roledescription": buttonAriaRoleDescription
82
88
  }, sortOrder === _constants.ASC ? /*#__PURE__*/_react.default.createElement(_arrowUp.default, {
83
89
  label: "",
84
90
  color: "var(--ds-text-subtle, #44546F)"
@@ -19,7 +19,7 @@ var _tableHead = require("../styled/table-head");
19
19
  var _tableHeadCell = _interopRequireDefault(require("./rankable/table-head-cell"));
20
20
  var _tableHeadCell2 = _interopRequireDefault(require("./table-head-cell"));
21
21
  var _excluded = ["cells"],
22
- _excluded2 = ["colSpan", "content", "isSortable", "key", "shouldTruncate", "testId", "width"];
22
+ _excluded2 = ["ascendingSortTooltip", "buttonAriaRoleDescription", "colSpan", "content", "descendingSortTooltip", "isSortable", "key", "shouldTruncate", "testId", "width"];
23
23
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
24
24
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25
25
  var TableHead = /*#__PURE__*/function (_React$Component) {
@@ -74,8 +74,11 @@ var TableHead = /*#__PURE__*/function (_React$Component) {
74
74
  isRanking: isRanking,
75
75
  testId: testId && "".concat(testId, "--head")
76
76
  }), /*#__PURE__*/_react.default.createElement("tr", null, cells.map(function (cell, index) {
77
- var colSpan = cell.colSpan,
77
+ var ascendingSortTooltip = cell.ascendingSortTooltip,
78
+ buttonAriaRoleDescription = cell.buttonAriaRoleDescription,
79
+ colSpan = cell.colSpan,
78
80
  content = cell.content,
81
+ descendingSortTooltip = cell.descendingSortTooltip,
79
82
  isSortable = cell.isSortable,
80
83
  key = cell.key,
81
84
  shouldTruncate = cell.shouldTruncate,
@@ -108,7 +111,10 @@ var TableHead = /*#__PURE__*/function (_React$Component) {
108
111
  testId: cellTestId || testId,
109
112
  shouldTruncate: shouldTruncate,
110
113
  sortOrder: key === sortKey ? sortOrder : undefined,
111
- width: width
114
+ width: width,
115
+ ascendingSortTooltip: ascendingSortTooltip,
116
+ descendingSortTooltip: descendingSortTooltip,
117
+ buttonAriaRoleDescription: buttonAriaRoleDescription
112
118
  }, restCellProps));
113
119
  })));
114
120
  }
@@ -88,7 +88,9 @@ var baseStyles = (0, _react2.css)({
88
88
  border: 'none',
89
89
  color: 'inherit',
90
90
  cursor: 'inherit',
91
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
91
92
  fontSize: 'inherit',
93
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
92
94
  fontWeight: 'inherit',
93
95
  '&::before, &::after': {
94
96
  display: 'block',
@@ -60,14 +60,14 @@ const DynamicTable = ({
60
60
  action: 'sorted',
61
61
  componentName: 'dynamicTable',
62
62
  packageName: "@atlaskit/dynamic-table",
63
- packageVersion: "17.0.0"
63
+ packageVersion: "17.0.2"
64
64
  });
65
65
  const onRankEnd = usePlatformLeafEventHandler({
66
66
  fn: providedOnRankEnd,
67
67
  action: 'ranked',
68
68
  componentName: 'dynamicTable',
69
69
  packageName: "@atlaskit/dynamic-table",
70
- packageVersion: "17.0.0"
70
+ packageVersion: "17.0.2"
71
71
  });
72
72
  useEffect(() => {
73
73
  validateSortKey(sortKey, head);
@@ -1,4 +1,4 @@
1
- /* table-head-cell.tsx generated by @compiled/babel-plugin v0.32.2 */
1
+ /* table-head-cell.tsx generated by @compiled/babel-plugin v0.35.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./table-head-cell.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -12,8 +12,8 @@ import { ASC } from '../internal/constants';
12
12
  import { HeadCell } from '../styled/table-head';
13
13
  const styles = {
14
14
  buttonWrapper: "_19bvu2gc _d0altlke",
15
- buttonHiddenWrapper: "_1e0c1txw _tzy4idpf _bfhk18uv _1yt41b66 _1h7hkb7n",
16
- buttonVisibleWrapper: "_1e0c1txw _tzy4kb7n _bfhk18uv _1yt41b66"
15
+ buttonHiddenWrapper: "_1yt41b66 _1e0c1txw _tzy4idpf _bfhk18uv _1h7hkb7n",
16
+ buttonVisibleWrapper: "_1yt41b66 _1e0c1txw _tzy4kb7n _bfhk18uv"
17
17
  };
18
18
  const headCellStyles = {
19
19
  headCellContainer: "_1e0c1txw _4cvr1h6o"
@@ -29,6 +29,9 @@ const TableHeadCell = ({
29
29
  onClick,
30
30
  headCellId,
31
31
  activeSortButtonId,
32
+ ascendingSortTooltip = 'Sort ascending',
33
+ descendingSortTooltip = 'Sort descending',
34
+ buttonAriaRoleDescription = 'Sort button',
32
35
  ...rest
33
36
  }) => {
34
37
  const [isHovered, setIsHovered] = fg('platform-component-visual-refresh') ?
@@ -59,11 +62,11 @@ const TableHeadCell = ({
59
62
  }, content), /*#__PURE__*/React.createElement(Flex, {
60
63
  xcss: styles.buttonWrapper
61
64
  }, /*#__PURE__*/React.createElement(Tooltip, {
62
- content: sortOrder === ASC ? 'Sort ascending' : 'Sort descending'
65
+ content: sortOrder === ASC ? ascendingSortTooltip : descendingSortTooltip
63
66
  }, /*#__PURE__*/React.createElement(Pressable, {
64
67
  onClick: onClick,
65
68
  xcss: isSortButtonVisible ? styles.buttonVisibleWrapper : styles.buttonHiddenWrapper,
66
- "aria-roledescription": "Sort button"
69
+ "aria-roledescription": buttonAriaRoleDescription
67
70
  }, sortOrder === ASC ? /*#__PURE__*/React.createElement(ArrowUpIcon, {
68
71
  label: "",
69
72
  color: "var(--ds-text-subtle, #44546F)"
@@ -52,8 +52,11 @@ class TableHead extends React.Component {
52
52
  testId: testId && `${testId}--head`
53
53
  }), /*#__PURE__*/React.createElement("tr", null, cells.map((cell, index) => {
54
54
  const {
55
+ ascendingSortTooltip,
56
+ buttonAriaRoleDescription,
55
57
  colSpan,
56
58
  content,
59
+ descendingSortTooltip,
57
60
  isSortable,
58
61
  key,
59
62
  shouldTruncate,
@@ -89,7 +92,10 @@ class TableHead extends React.Component {
89
92
  testId: cellTestId || testId,
90
93
  shouldTruncate: shouldTruncate,
91
94
  sortOrder: key === sortKey ? sortOrder : undefined,
92
- width: width
95
+ width: width,
96
+ ascendingSortTooltip: ascendingSortTooltip,
97
+ descendingSortTooltip: descendingSortTooltip,
98
+ buttonAriaRoleDescription: buttonAriaRoleDescription
93
99
  }, restCellProps));
94
100
  })));
95
101
  }
@@ -77,7 +77,9 @@ const baseStyles = css({
77
77
  border: 'none',
78
78
  color: 'inherit',
79
79
  cursor: 'inherit',
80
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
80
81
  fontSize: 'inherit',
82
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
81
83
  fontWeight: 'inherit',
82
84
  '&::before, &::after': {
83
85
  display: 'block',
@@ -76,14 +76,14 @@ var DynamicTable = function DynamicTable(_ref) {
76
76
  action: 'sorted',
77
77
  componentName: 'dynamicTable',
78
78
  packageName: "@atlaskit/dynamic-table",
79
- packageVersion: "17.0.0"
79
+ packageVersion: "17.0.2"
80
80
  });
81
81
  var onRankEnd = usePlatformLeafEventHandler({
82
82
  fn: providedOnRankEnd,
83
83
  action: 'ranked',
84
84
  componentName: 'dynamicTable',
85
85
  packageName: "@atlaskit/dynamic-table",
86
- packageVersion: "17.0.0"
86
+ packageVersion: "17.0.2"
87
87
  });
88
88
  useEffect(function () {
89
89
  validateSortKey(sortKey, head);
@@ -1,8 +1,8 @@
1
- /* table-head-cell.tsx generated by @compiled/babel-plugin v0.32.2 */
1
+ /* table-head-cell.tsx generated by @compiled/babel-plugin v0.35.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
5
- var _excluded = ["content", "inlineStyles", "testId", "isRanking", "innerRef", "isSortable", "sortOrder", "onClick", "headCellId", "activeSortButtonId"];
5
+ var _excluded = ["content", "inlineStyles", "testId", "isRanking", "innerRef", "isSortable", "sortOrder", "onClick", "headCellId", "activeSortButtonId", "ascendingSortTooltip", "descendingSortTooltip", "buttonAriaRoleDescription"];
6
6
  import "./table-head-cell.compiled.css";
7
7
  import { ax, ix } from "@compiled/react/runtime";
8
8
  import React, { useCallback, useState } from 'react';
@@ -15,8 +15,8 @@ import { ASC } from '../internal/constants';
15
15
  import { HeadCell } from '../styled/table-head';
16
16
  var styles = {
17
17
  buttonWrapper: "_19bvu2gc _d0altlke",
18
- buttonHiddenWrapper: "_1e0c1txw _tzy4idpf _bfhk18uv _1yt41b66 _1h7hkb7n",
19
- buttonVisibleWrapper: "_1e0c1txw _tzy4kb7n _bfhk18uv _1yt41b66"
18
+ buttonHiddenWrapper: "_1yt41b66 _1e0c1txw _tzy4idpf _bfhk18uv _1h7hkb7n",
19
+ buttonVisibleWrapper: "_1yt41b66 _1e0c1txw _tzy4kb7n _bfhk18uv"
20
20
  };
21
21
  var headCellStyles = {
22
22
  headCellContainer: "_1e0c1txw _4cvr1h6o"
@@ -32,6 +32,12 @@ var TableHeadCell = function TableHeadCell(_ref) {
32
32
  onClick = _ref.onClick,
33
33
  headCellId = _ref.headCellId,
34
34
  activeSortButtonId = _ref.activeSortButtonId,
35
+ _ref$ascendingSortToo = _ref.ascendingSortTooltip,
36
+ ascendingSortTooltip = _ref$ascendingSortToo === void 0 ? 'Sort ascending' : _ref$ascendingSortToo,
37
+ _ref$descendingSortTo = _ref.descendingSortTooltip,
38
+ descendingSortTooltip = _ref$descendingSortTo === void 0 ? 'Sort descending' : _ref$descendingSortTo,
39
+ _ref$buttonAriaRoleDe = _ref.buttonAriaRoleDescription,
40
+ buttonAriaRoleDescription = _ref$buttonAriaRoleDe === void 0 ? 'Sort button' : _ref$buttonAriaRoleDe,
35
41
  rest = _objectWithoutProperties(_ref, _excluded);
36
42
  var _ref2 = fg('platform-component-visual-refresh') ?
37
43
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -64,11 +70,11 @@ var TableHeadCell = function TableHeadCell(_ref) {
64
70
  }, content), /*#__PURE__*/React.createElement(Flex, {
65
71
  xcss: styles.buttonWrapper
66
72
  }, /*#__PURE__*/React.createElement(Tooltip, {
67
- content: sortOrder === ASC ? 'Sort ascending' : 'Sort descending'
73
+ content: sortOrder === ASC ? ascendingSortTooltip : descendingSortTooltip
68
74
  }, /*#__PURE__*/React.createElement(Pressable, {
69
75
  onClick: onClick,
70
76
  xcss: isSortButtonVisible ? styles.buttonVisibleWrapper : styles.buttonHiddenWrapper,
71
- "aria-roledescription": "Sort button"
77
+ "aria-roledescription": buttonAriaRoleDescription
72
78
  }, sortOrder === ASC ? /*#__PURE__*/React.createElement(ArrowUpIcon, {
73
79
  label: "",
74
80
  color: "var(--ds-text-subtle, #44546F)"
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _inherits from "@babel/runtime/helpers/inherits";
8
8
  var _excluded = ["cells"],
9
- _excluded2 = ["colSpan", "content", "isSortable", "key", "shouldTruncate", "testId", "width"];
9
+ _excluded2 = ["ascendingSortTooltip", "buttonAriaRoleDescription", "colSpan", "content", "descendingSortTooltip", "isSortable", "key", "shouldTruncate", "testId", "width"];
10
10
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
11
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  import React from 'react';
@@ -67,8 +67,11 @@ var TableHead = /*#__PURE__*/function (_React$Component) {
67
67
  isRanking: isRanking,
68
68
  testId: testId && "".concat(testId, "--head")
69
69
  }), /*#__PURE__*/React.createElement("tr", null, cells.map(function (cell, index) {
70
- var colSpan = cell.colSpan,
70
+ var ascendingSortTooltip = cell.ascendingSortTooltip,
71
+ buttonAriaRoleDescription = cell.buttonAriaRoleDescription,
72
+ colSpan = cell.colSpan,
71
73
  content = cell.content,
74
+ descendingSortTooltip = cell.descendingSortTooltip,
72
75
  isSortable = cell.isSortable,
73
76
  key = cell.key,
74
77
  shouldTruncate = cell.shouldTruncate,
@@ -101,7 +104,10 @@ var TableHead = /*#__PURE__*/function (_React$Component) {
101
104
  testId: cellTestId || testId,
102
105
  shouldTruncate: shouldTruncate,
103
106
  sortOrder: key === sortKey ? sortOrder : undefined,
104
- width: width
107
+ width: width,
108
+ ascendingSortTooltip: ascendingSortTooltip,
109
+ descendingSortTooltip: descendingSortTooltip,
110
+ buttonAriaRoleDescription: buttonAriaRoleDescription
105
111
  }, restCellProps));
106
112
  })));
107
113
  }
@@ -82,7 +82,9 @@ var baseStyles = css({
82
82
  border: 'none',
83
83
  color: 'inherit',
84
84
  cursor: 'inherit',
85
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
85
86
  fontSize: 'inherit',
87
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
86
88
  fontWeight: 'inherit',
87
89
  '&::before, &::after': {
88
90
  display: 'block',
@@ -16,6 +16,9 @@ export interface TableHeadCellProps {
16
16
  isRanking?: boolean;
17
17
  headCellId: string;
18
18
  activeSortButtonId?: string | null;
19
+ ascendingSortTooltip?: string;
20
+ descendingSortTooltip?: string;
21
+ buttonAriaRoleDescription?: string;
19
22
  }
20
23
  declare const TableHeadCell: FC<TableHeadCellProps>;
21
24
  export default TableHeadCell;
@@ -338,6 +338,21 @@ export interface HeadCellType extends RowCellType {
338
338
  * Whether the text in the cell will truncate or not if constrained. Avoid truncating content wherever possible.
339
339
  */
340
340
  shouldTruncate?: boolean;
341
+ /**
342
+ * Accessible tooltip applied to the ascending sort button.
343
+ * Defaults to "Sort ascending".
344
+ */
345
+ ascendingSortTooltip?: string;
346
+ /**
347
+ * Accessible tooltip applied to the descending sort button.
348
+ * Defaults to "Sort descending".
349
+ */
350
+ descendingSortTooltip?: string;
351
+ /**
352
+ * Accessible aria role description applied to the sort button.
353
+ * Defaults to "Sort button".
354
+ */
355
+ buttonAriaRoleDescription?: string;
341
356
  }
342
357
  export interface RankEndLocation {
343
358
  index: number;
@@ -16,6 +16,9 @@ export interface TableHeadCellProps {
16
16
  isRanking?: boolean;
17
17
  headCellId: string;
18
18
  activeSortButtonId?: string | null;
19
+ ascendingSortTooltip?: string;
20
+ descendingSortTooltip?: string;
21
+ buttonAriaRoleDescription?: string;
19
22
  }
20
23
  declare const TableHeadCell: FC<TableHeadCellProps>;
21
24
  export default TableHeadCell;
@@ -338,6 +338,21 @@ export interface HeadCellType extends RowCellType {
338
338
  * Whether the text in the cell will truncate or not if constrained. Avoid truncating content wherever possible.
339
339
  */
340
340
  shouldTruncate?: boolean;
341
+ /**
342
+ * Accessible tooltip applied to the ascending sort button.
343
+ * Defaults to "Sort ascending".
344
+ */
345
+ ascendingSortTooltip?: string;
346
+ /**
347
+ * Accessible tooltip applied to the descending sort button.
348
+ * Defaults to "Sort descending".
349
+ */
350
+ descendingSortTooltip?: string;
351
+ /**
352
+ * Accessible aria role description applied to the sort button.
353
+ * Defaults to "Sort button".
354
+ */
355
+ buttonAriaRoleDescription?: string;
341
356
  }
342
357
  export interface RankEndLocation {
343
358
  index: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "17.0.0",
3
+ "version": "17.0.2",
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/"
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration": "^1.3.0",
47
47
  "@atlaskit/spinner": "^16.3.0",
48
48
  "@atlaskit/theme": "^14.0.0",
49
- "@atlaskit/tokens": "^2.4.0",
49
+ "@atlaskit/tokens": "^3.0.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
52
52
  "react-beautiful-dnd": "^12.2.0"