@atlaskit/dynamic-table 14.18.3 → 14.18.4
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 +6 -0
- package/dist/cjs/components/rankable/table-row.js +3 -1
- package/dist/cjs/components/stateless.js +1 -1
- package/dist/cjs/styled/dynamic-table.js +1 -1
- package/dist/cjs/styled/empty-body.js +1 -1
- package/dist/cjs/styled/loading-container-advanced.js +1 -1
- package/dist/cjs/styled/loading-container.js +1 -1
- package/dist/cjs/styled/rankable/table-cell.js +1 -1
- package/dist/cjs/styled/rankable/table-row.js +1 -1
- package/dist/cjs/styled/table-cell.js +1 -1
- package/dist/cjs/styled/table-head.js +1 -1
- package/dist/cjs/styled/table-row.js +1 -1
- package/dist/es2019/components/rankable/table-row.js +3 -1
- package/dist/es2019/components/stateless.js +1 -1
- package/dist/es2019/styled/dynamic-table.js +1 -1
- package/dist/es2019/styled/empty-body.js +1 -1
- package/dist/es2019/styled/loading-container-advanced.js +1 -1
- package/dist/es2019/styled/loading-container.js +1 -1
- package/dist/es2019/styled/rankable/table-cell.js +1 -1
- package/dist/es2019/styled/rankable/table-row.js +1 -1
- package/dist/es2019/styled/table-cell.js +1 -1
- package/dist/es2019/styled/table-head.js +1 -1
- package/dist/es2019/styled/table-row.js +1 -1
- package/dist/esm/components/rankable/table-row.js +3 -1
- package/dist/esm/components/stateless.js +1 -1
- package/dist/esm/styled/dynamic-table.js +1 -1
- package/dist/esm/styled/empty-body.js +1 -1
- package/dist/esm/styled/loading-container-advanced.js +1 -1
- package/dist/esm/styled/loading-container.js +1 -1
- package/dist/esm/styled/rankable/table-cell.js +1 -1
- package/dist/esm/styled/rankable/table-row.js +1 -1
- package/dist/esm/styled/table-cell.js +1 -1
- package/dist/esm/styled/table-head.js +1 -1
- package/dist/esm/styled/table-row.js +1 -1
- package/dist/types/components/table-head-cell.d.ts +2 -2
- package/dist/types/hoc/with-dimensions.d.ts +2 -2
- package/dist/types/styled/constants.d.ts +2 -2
- package/dist/types/styled/dynamic-table.d.ts +1 -1
- package/dist/types/styled/empty-body.d.ts +1 -1
- package/dist/types/styled/loading-container-advanced.d.ts +1 -1
- package/dist/types/styled/loading-container.d.ts +1 -1
- package/dist/types/styled/rankable/table-cell.d.ts +1 -1
- package/dist/types/styled/rankable/table-row.d.ts +1 -1
- package/dist/types/styled/table-cell.d.ts +1 -1
- package/dist/types/styled/table-head.d.ts +1 -1
- package/dist/types/styled/table-row.d.ts +1 -1
- package/dist/types-ts4.5/components/table-head-cell.d.ts +2 -2
- package/dist/types-ts4.5/hoc/with-dimensions.d.ts +2 -2
- package/dist/types-ts4.5/styled/constants.d.ts +2 -2
- package/dist/types-ts4.5/styled/dynamic-table.d.ts +1 -1
- package/dist/types-ts4.5/styled/empty-body.d.ts +1 -1
- package/dist/types-ts4.5/styled/loading-container-advanced.d.ts +1 -1
- package/dist/types-ts4.5/styled/loading-container.d.ts +1 -1
- package/dist/types-ts4.5/styled/rankable/table-cell.d.ts +1 -1
- package/dist/types-ts4.5/styled/rankable/table-row.d.ts +1 -1
- package/dist/types-ts4.5/styled/table-cell.d.ts +1 -1
- package/dist/types-ts4.5/styled/table-head.d.ts +1 -1
- package/dist/types-ts4.5/styled/table-row.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -77,7 +77,9 @@ var RankableTableRow = exports.RankableTableRow = /*#__PURE__*/function (_React$
|
|
|
77
77
|
var _provided$dragHandleP;
|
|
78
78
|
return /*#__PURE__*/_react.default.createElement(_tableRow.RankableTableBodyRow, (0, _extends2.default)({}, restRowProps, provided.dragHandleProps, provided.draggableProps, {
|
|
79
79
|
// It is necessary to prevent the passing of aria-labelledby
|
|
80
|
-
"aria-labelledby": undefined
|
|
80
|
+
"aria-labelledby": undefined
|
|
81
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
82
|
+
,
|
|
81
83
|
"aria-describedby": (_provided$dragHandleP = provided.dragHandleProps) === null || _provided$dragHandleP === void 0 ? void 0 : _provided$dragHandleP['aria-describedby'],
|
|
82
84
|
ref: _this2.innerRef(provided.innerRef)
|
|
83
85
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -35,7 +35,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
35
35
|
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); }; }
|
|
36
36
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
37
37
|
var packageName = "@atlaskit/dynamic-table";
|
|
38
|
-
var packageVersion = "14.18.
|
|
38
|
+
var packageVersion = "14.18.4";
|
|
39
39
|
function toggleSortOrder(currentSortOrder) {
|
|
40
40
|
switch (currentSortOrder) {
|
|
41
41
|
case _constants.DESC:
|
|
@@ -16,8 +16,8 @@ var _excluded = ["isFixedSize", "hasDataRow", "children", "testId", "isLoading"]
|
|
|
16
16
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
17
17
|
/**
|
|
18
18
|
* @jsxRuntime classic
|
|
19
|
+
* @jsx jsx
|
|
19
20
|
*/
|
|
20
|
-
/** @jsx jsx */
|
|
21
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
22
|
// CSS vars for table row
|
|
23
23
|
// these are declared here to avoid being re-declared in each table row
|
|
@@ -8,8 +8,8 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
9
9
|
/**
|
|
10
10
|
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
11
12
|
*/
|
|
12
|
-
/** @jsx jsx */
|
|
13
13
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
|
|
@@ -13,8 +13,8 @@ var _excluded = ["children", "testId"];
|
|
|
13
13
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
14
14
|
/**
|
|
15
15
|
* @jsxRuntime classic
|
|
16
|
+
* @jsx jsx
|
|
16
17
|
*/
|
|
17
|
-
/** @jsx jsx */
|
|
18
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
19
|
var containerStyles = (0, _react2.css)({
|
|
20
20
|
position: 'relative',
|
|
@@ -10,8 +10,8 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
11
11
|
/**
|
|
12
12
|
* @jsxRuntime classic
|
|
13
|
+
* @jsx jsx
|
|
13
14
|
*/
|
|
14
|
-
/** @jsx jsx */
|
|
15
15
|
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
17
|
|
|
@@ -12,8 +12,8 @@ var _tableCell = require("../table-cell");
|
|
|
12
12
|
var _excluded = ["isRanking", "innerRef"];
|
|
13
13
|
/**
|
|
14
14
|
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
15
16
|
*/
|
|
16
|
-
/** @jsx jsx */
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
var rankingStyles = (0, _react.css)({
|
|
19
19
|
boxSizing: 'border-box'
|
|
@@ -14,8 +14,8 @@ var _tableRow = require("../table-row");
|
|
|
14
14
|
var _excluded = ["isRanking", "isRankingItem", "testId"];
|
|
15
15
|
/**
|
|
16
16
|
* @jsxRuntime classic
|
|
17
|
+
* @jsx jsx
|
|
17
18
|
*/
|
|
18
|
-
/** @jsx jsx */
|
|
19
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
20
|
var rankingStyles = (0, _react2.css)({
|
|
21
21
|
display: 'block'
|
|
@@ -12,8 +12,8 @@ var _constants = require("./constants");
|
|
|
12
12
|
var _excluded = ["width", "isFixedSize", "shouldTruncate", "innerRef"];
|
|
13
13
|
/**
|
|
14
14
|
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
15
16
|
*/
|
|
16
|
-
/** @jsx jsx */
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
19
19
|
var TableBodyCell = exports.TableBodyCell = function TableBodyCell(_ref) {
|
|
@@ -20,8 +20,8 @@ var _excluded = ["isRanking", "testId"],
|
|
|
20
20
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
21
21
|
/**
|
|
22
22
|
* @jsxRuntime classic
|
|
23
|
+
* @jsx jsx
|
|
23
24
|
*/
|
|
24
|
-
/** @jsx jsx */
|
|
25
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27
27
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -13,8 +13,8 @@ var _dynamicTable = require("./dynamic-table");
|
|
|
13
13
|
var _excluded = ["isHighlighted", "children", "style", "testId"];
|
|
14
14
|
/**
|
|
15
15
|
* @jsxRuntime classic
|
|
16
|
+
* @jsx jsx
|
|
16
17
|
*/
|
|
17
|
-
/** @jsx jsx */
|
|
18
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
19
|
var rowStyles = (0, _react2.css)({
|
|
20
20
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
@@ -51,7 +51,9 @@ export class RankableTableRow extends React.Component {
|
|
|
51
51
|
var _provided$dragHandleP;
|
|
52
52
|
return /*#__PURE__*/React.createElement(RankableTableBodyRow, _extends({}, restRowProps, provided.dragHandleProps, provided.draggableProps, {
|
|
53
53
|
// It is necessary to prevent the passing of aria-labelledby
|
|
54
|
-
"aria-labelledby": undefined
|
|
54
|
+
"aria-labelledby": undefined
|
|
55
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
56
|
+
,
|
|
55
57
|
"aria-describedby": (_provided$dragHandleP = provided.dragHandleProps) === null || _provided$dragHandleP === void 0 ? void 0 : _provided$dragHandleP['aria-describedby'],
|
|
56
58
|
ref: this.innerRef(provided.innerRef)
|
|
57
59
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -14,7 +14,7 @@ import LoadingContainerAdvanced from './loading-container-advanced';
|
|
|
14
14
|
import ManagedPagination from './managed-pagination';
|
|
15
15
|
import TableHead from './table-head';
|
|
16
16
|
const packageName = "@atlaskit/dynamic-table";
|
|
17
|
-
const packageVersion = "14.18.
|
|
17
|
+
const packageVersion = "14.18.4";
|
|
18
18
|
function toggleSortOrder(currentSortOrder) {
|
|
19
19
|
switch (currentSortOrder) {
|
|
20
20
|
case DESC:
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
3
3
|
/**
|
|
4
4
|
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
5
6
|
*/
|
|
6
|
-
/** @jsx jsx */
|
|
7
7
|
import { forwardRef } from 'react';
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
3
3
|
/**
|
|
4
4
|
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
5
6
|
*/
|
|
6
|
-
/** @jsx jsx */
|
|
7
7
|
import { forwardRef } from 'react';
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
3
3
|
/**
|
|
4
4
|
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
5
6
|
*/
|
|
6
|
-
/** @jsx jsx */
|
|
7
7
|
import { forwardRef } from 'react';
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -72,7 +72,9 @@ export var RankableTableRow = /*#__PURE__*/function (_React$Component) {
|
|
|
72
72
|
var _provided$dragHandleP;
|
|
73
73
|
return /*#__PURE__*/React.createElement(RankableTableBodyRow, _extends({}, restRowProps, provided.dragHandleProps, provided.draggableProps, {
|
|
74
74
|
// It is necessary to prevent the passing of aria-labelledby
|
|
75
|
-
"aria-labelledby": undefined
|
|
75
|
+
"aria-labelledby": undefined
|
|
76
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
77
|
+
,
|
|
76
78
|
"aria-describedby": (_provided$dragHandleP = provided.dragHandleProps) === null || _provided$dragHandleP === void 0 ? void 0 : _provided$dragHandleP['aria-describedby'],
|
|
77
79
|
ref: _this2.innerRef(provided.innerRef)
|
|
78
80
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -25,7 +25,7 @@ import LoadingContainerAdvanced from './loading-container-advanced';
|
|
|
25
25
|
import ManagedPagination from './managed-pagination';
|
|
26
26
|
import TableHead from './table-head';
|
|
27
27
|
var packageName = "@atlaskit/dynamic-table";
|
|
28
|
-
var packageVersion = "14.18.
|
|
28
|
+
var packageVersion = "14.18.4";
|
|
29
29
|
function toggleSortOrder(currentSortOrder) {
|
|
30
30
|
switch (currentSortOrder) {
|
|
31
31
|
case DESC:
|
|
@@ -5,8 +5,8 @@ var _excluded = ["isFixedSize", "hasDataRow", "children", "testId", "isLoading"]
|
|
|
5
5
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
6
6
|
/**
|
|
7
7
|
* @jsxRuntime classic
|
|
8
|
+
* @jsx jsx
|
|
8
9
|
*/
|
|
9
|
-
/** @jsx jsx */
|
|
10
10
|
import { forwardRef } from 'react';
|
|
11
11
|
|
|
12
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
@@ -4,8 +4,8 @@ var _excluded = ["children", "testId"];
|
|
|
4
4
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
5
5
|
/**
|
|
6
6
|
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
7
8
|
*/
|
|
8
|
-
/** @jsx jsx */
|
|
9
9
|
import { forwardRef } from 'react';
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -2,8 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
3
3
|
/**
|
|
4
4
|
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
5
6
|
*/
|
|
6
|
-
/** @jsx jsx */
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["isRanking", "innerRef"];
|
|
4
4
|
/**
|
|
5
5
|
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
6
7
|
*/
|
|
7
|
-
/** @jsx jsx */
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["isRanking", "isRankingItem", "testId"];
|
|
4
4
|
/**
|
|
5
5
|
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
6
7
|
*/
|
|
7
|
-
/** @jsx jsx */
|
|
8
8
|
import { forwardRef } from 'react';
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["width", "isFixedSize", "shouldTruncate", "innerRef"];
|
|
4
4
|
/**
|
|
5
5
|
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
6
7
|
*/
|
|
7
|
-
/** @jsx jsx */
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { jsx } from '@emotion/react';
|
|
@@ -8,8 +8,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
9
9
|
/**
|
|
10
10
|
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
11
12
|
*/
|
|
12
|
-
/** @jsx jsx */
|
|
13
13
|
import { forwardRef } from 'react';
|
|
14
14
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["isHighlighted", "children", "style", "testId"];
|
|
4
4
|
/**
|
|
5
5
|
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
6
7
|
*/
|
|
7
|
-
/** @jsx jsx */
|
|
8
8
|
import { forwardRef } from 'react';
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { type FC, type
|
|
1
|
+
import React, { type FC, type Ref } from 'react';
|
|
2
2
|
import { type SortOrderType } from '../types';
|
|
3
3
|
export interface TableHeadCellProps {
|
|
4
4
|
colSpan?: number;
|
|
@@ -6,7 +6,7 @@ export interface TableHeadCellProps {
|
|
|
6
6
|
isSortable?: boolean;
|
|
7
7
|
sortOrder?: SortOrderType;
|
|
8
8
|
isFixedSize?: boolean;
|
|
9
|
-
innerRef?:
|
|
9
|
+
innerRef?: Ref<HTMLTableCellElement>;
|
|
10
10
|
inlineStyles?: {};
|
|
11
11
|
content?: React.ReactNode;
|
|
12
12
|
onClick?: () => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, { type
|
|
1
|
+
import React, { type Ref } from 'react';
|
|
2
2
|
export interface State {
|
|
3
3
|
refWidth: number;
|
|
4
4
|
refHeight: number;
|
|
5
5
|
}
|
|
6
6
|
export interface WithDimensionsProps {
|
|
7
|
-
innerRef?:
|
|
7
|
+
innerRef?: Ref<HTMLTableCellElement | HTMLTableRowElement>;
|
|
8
8
|
isRanking: boolean;
|
|
9
9
|
refWidth: number;
|
|
10
10
|
refHeight: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ReactNode, type Ref } from 'react';
|
|
2
2
|
export interface TruncateStyleProps {
|
|
3
3
|
width?: number;
|
|
4
4
|
isFixedSize?: boolean;
|
|
5
5
|
shouldTruncate?: boolean;
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
testId?: string;
|
|
8
|
-
innerRef?:
|
|
8
|
+
innerRef?: Ref<HTMLTableCellElement | HTMLTableRowElement> | undefined;
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const truncationWidthStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
3
4
|
*/
|
|
4
|
-
/** @jsx jsx */
|
|
5
5
|
import { type FC, type HTMLProps, type ReactNode } from 'react';
|
|
6
6
|
import { type TruncateStyleProps } from '../constants';
|
|
7
7
|
type RankableTableBodyCellProps = HTMLProps<HTMLTableCellElement | HTMLTableRowElement> & TruncateStyleProps & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { type FC, type
|
|
1
|
+
import React, { type FC, type Ref } from 'react';
|
|
2
2
|
import { type SortOrderType } from '../types';
|
|
3
3
|
export interface TableHeadCellProps {
|
|
4
4
|
colSpan?: number;
|
|
@@ -6,7 +6,7 @@ export interface TableHeadCellProps {
|
|
|
6
6
|
isSortable?: boolean;
|
|
7
7
|
sortOrder?: SortOrderType;
|
|
8
8
|
isFixedSize?: boolean;
|
|
9
|
-
innerRef?:
|
|
9
|
+
innerRef?: Ref<HTMLTableCellElement>;
|
|
10
10
|
inlineStyles?: {};
|
|
11
11
|
content?: React.ReactNode;
|
|
12
12
|
onClick?: () => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, { type
|
|
1
|
+
import React, { type Ref } from 'react';
|
|
2
2
|
export interface State {
|
|
3
3
|
refWidth: number;
|
|
4
4
|
refHeight: number;
|
|
5
5
|
}
|
|
6
6
|
export interface WithDimensionsProps {
|
|
7
|
-
innerRef?:
|
|
7
|
+
innerRef?: Ref<HTMLTableCellElement | HTMLTableRowElement>;
|
|
8
8
|
isRanking: boolean;
|
|
9
9
|
refWidth: number;
|
|
10
10
|
refHeight: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ReactNode, type Ref } from 'react';
|
|
2
2
|
export interface TruncateStyleProps {
|
|
3
3
|
width?: number;
|
|
4
4
|
isFixedSize?: boolean;
|
|
5
5
|
shouldTruncate?: boolean;
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
testId?: string;
|
|
8
|
-
innerRef?:
|
|
8
|
+
innerRef?: Ref<HTMLTableCellElement | HTMLTableRowElement> | undefined;
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const truncationWidthStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
3
4
|
*/
|
|
4
|
-
/** @jsx jsx */
|
|
5
5
|
import { type FC, type HTMLProps, type ReactNode } from 'react';
|
|
6
6
|
import { type TruncateStyleProps } from '../constants';
|
|
7
7
|
type RankableTableBodyCellProps = HTMLProps<HTMLTableCellElement | HTMLTableRowElement> & TruncateStyleProps & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dynamic-table",
|
|
3
|
-
"version": "14.18.
|
|
3
|
+
"version": "14.18.4",
|
|
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/"
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"runReact18": true
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@atlaskit/analytics-next": "^
|
|
44
|
+
"@atlaskit/analytics-next": "^10.0.0",
|
|
45
45
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
46
46
|
"@atlaskit/pagination": "^14.7.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
48
48
|
"@atlaskit/spinner": "^16.2.0",
|
|
49
49
|
"@atlaskit/theme": "^12.11.0",
|
|
50
|
-
"@atlaskit/tokens": "^1.
|
|
50
|
+
"@atlaskit/tokens": "^1.57.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@emotion/react": "^11.7.1",
|
|
53
53
|
"react-beautiful-dnd": "^12.2.0"
|