@atlaskit/dynamic-table 18.2.18 → 18.3.1
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 +14 -0
- package/dist/cjs/components/body.js +1 -0
- package/dist/cjs/components/error-boundary.js +1 -0
- package/dist/cjs/components/loading-container-advanced.js +1 -0
- package/dist/cjs/components/loading-container.js +1 -0
- package/dist/cjs/components/managed-pagination.js +1 -0
- package/dist/cjs/components/rankable/body.js +2 -0
- package/dist/cjs/components/rankable/table-cell.js +1 -0
- package/dist/cjs/components/rankable/table-head-cell.js +1 -0
- package/dist/cjs/components/rankable/table-row.js +1 -0
- package/dist/cjs/components/stateful.js +1 -0
- package/dist/cjs/components/table-head.js +2 -17
- package/dist/cjs/hoc/with-sorted-page-rows.js +1 -0
- package/dist/cjs/styled/dynamic-table.compiled.css +1 -1
- package/dist/cjs/styled/dynamic-table.js +10 -16
- package/dist/cjs/styled/rankable/table-row.compiled.css +4 -4
- package/dist/cjs/styled/rankable/table-row.js +1 -7
- package/dist/cjs/styled/table-head.compiled.css +2 -45
- package/dist/cjs/styled/table-head.js +4 -17
- package/dist/es2019/components/body.js +1 -0
- package/dist/es2019/components/error-boundary.js +1 -0
- package/dist/es2019/components/loading-container-advanced.js +1 -0
- package/dist/es2019/components/loading-container.js +1 -0
- package/dist/es2019/components/managed-pagination.js +1 -0
- package/dist/es2019/components/rankable/body.js +2 -0
- package/dist/es2019/components/rankable/table-cell.js +1 -0
- package/dist/es2019/components/rankable/table-head-cell.js +2 -0
- package/dist/es2019/components/rankable/table-row.js +1 -0
- package/dist/es2019/components/stateful.js +1 -0
- package/dist/es2019/components/table-head.js +2 -17
- package/dist/es2019/hoc/with-sorted-page-rows.js +1 -0
- package/dist/es2019/styled/dynamic-table.compiled.css +1 -1
- package/dist/es2019/styled/dynamic-table.js +5 -6
- package/dist/es2019/styled/rankable/table-row.compiled.css +4 -4
- package/dist/es2019/styled/rankable/table-row.js +1 -2
- package/dist/es2019/styled/table-head.compiled.css +2 -45
- package/dist/es2019/styled/table-head.js +3 -11
- package/dist/esm/components/body.js +1 -0
- package/dist/esm/components/error-boundary.js +1 -0
- package/dist/esm/components/loading-container-advanced.js +1 -0
- package/dist/esm/components/loading-container.js +1 -0
- package/dist/esm/components/managed-pagination.js +1 -0
- package/dist/esm/components/rankable/body.js +2 -0
- package/dist/esm/components/rankable/table-cell.js +1 -0
- package/dist/esm/components/rankable/table-head-cell.js +2 -0
- package/dist/esm/components/rankable/table-row.js +1 -0
- package/dist/esm/components/stateful.js +1 -0
- package/dist/esm/components/table-head.js +2 -17
- package/dist/esm/hoc/with-sorted-page-rows.js +1 -0
- package/dist/esm/styled/dynamic-table.compiled.css +1 -1
- package/dist/esm/styled/dynamic-table.js +10 -16
- package/dist/esm/styled/rankable/table-row.compiled.css +4 -4
- package/dist/esm/styled/rankable/table-row.js +1 -7
- package/dist/esm/styled/table-head.compiled.css +2 -45
- package/dist/esm/styled/table-head.js +4 -17
- package/dist/types/styled/dynamic-table.d.ts +1 -1
- package/dist/types/styled/rankable/table-row.d.ts +2 -4
- package/dist/types/styled/table-head.d.ts +1 -1
- package/dist/types-ts4.5/styled/dynamic-table.d.ts +1 -1
- package/dist/types-ts4.5/styled/rankable/table-row.d.ts +2 -4
- package/dist/types-ts4.5/styled/table-head.d.ts +1 -1
- package/package.json +7 -15
- package/dist/cjs/components/rankable/table-head-cell-old.js +0 -46
- package/dist/cjs/components/table-head-cell-old.js +0 -39
- package/dist/es2019/components/rankable/table-head-cell-old.js +0 -26
- package/dist/es2019/components/table-head-cell-old.js +0 -32
- package/dist/esm/components/rankable/table-head-cell-old.js +0 -42
- package/dist/esm/components/table-head-cell-old.js +0 -33
- package/dist/types/components/rankable/table-head-cell-old.d.ts +0 -5
- package/dist/types/components/table-head-cell-old.d.ts +0 -19
- package/dist/types-ts4.5/components/rankable/table-head-cell-old.d.ts +0 -5
- package/dist/types-ts4.5/components/table-head-cell-old.d.ts +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/dynamic-table
|
|
2
2
|
|
|
3
|
+
## 18.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 18.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`dfb254c12bb7b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dfb254c12bb7b) -
|
|
14
|
+
[ux] Updates dynamic-table styles to reflect our new visual design language. These changes were
|
|
15
|
+
previously behind a feature flag and are now fully rolled out.
|
|
16
|
+
|
|
3
17
|
## 18.2.18
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -16,6 +16,7 @@ var _withSortedPageRows = _interopRequireDefault(require("../hoc/with-sorted-pag
|
|
|
16
16
|
var _tableRow = _interopRequireDefault(require("./table-row"));
|
|
17
17
|
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)); }
|
|
18
18
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
19
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
19
20
|
var BodyComponent = /*#__PURE__*/function (_React$Component) {
|
|
20
21
|
function BodyComponent() {
|
|
21
22
|
(0, _classCallCheck2.default)(this, BodyComponent);
|
|
@@ -13,6 +13,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
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)); }
|
|
15
15
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
16
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
16
17
|
var ErrorBoundary = exports.ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
17
18
|
function ErrorBoundary(props) {
|
|
18
19
|
var _this;
|
|
@@ -18,6 +18,7 @@ var _constants = require("../internal/constants");
|
|
|
18
18
|
var _loadingContainerAdvanced = require("../styled/loading-container-advanced");
|
|
19
19
|
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)); }
|
|
20
20
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */
|
|
21
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
21
22
|
var LoadingContainerAdvanced = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
22
23
|
function LoadingContainerAdvanced() {
|
|
23
24
|
var _this;
|
|
@@ -17,6 +17,7 @@ var _constants = require("../internal/constants");
|
|
|
17
17
|
var _loadingContainer = require("../styled/loading-container");
|
|
18
18
|
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)); }
|
|
19
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
20
21
|
var LoadingContainer = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
21
22
|
function LoadingContainer() {
|
|
22
23
|
(0, _classCallCheck2.default)(this, LoadingContainer);
|
|
@@ -16,6 +16,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
16
16
|
var _pagination = _interopRequireDefault(require("@atlaskit/pagination"));
|
|
17
17
|
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)); }
|
|
18
18
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
19
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
19
20
|
var ManagedPagination = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
20
21
|
function ManagedPagination() {
|
|
21
22
|
var _this;
|
|
@@ -38,6 +38,8 @@ var computeRankDestination = function computeRankDestination(result, pageRows) {
|
|
|
38
38
|
}
|
|
39
39
|
return undefined;
|
|
40
40
|
};
|
|
41
|
+
|
|
42
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
41
43
|
var RankableBody = exports.RankableBody = /*#__PURE__*/function (_React$Component) {
|
|
42
44
|
function RankableBody() {
|
|
43
45
|
var _this;
|
|
@@ -19,6 +19,7 @@ var _tableCell = require("../../styled/rankable/table-cell");
|
|
|
19
19
|
var _excluded = ["content", "testId"];
|
|
20
20
|
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)); }
|
|
21
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
22
23
|
var RankableTableCell = exports.RankableTableCell = /*#__PURE__*/function (_React$Component) {
|
|
23
24
|
function RankableTableCell() {
|
|
24
25
|
(0, _classCallCheck2.default)(this, RankableTableCell);
|
|
@@ -19,6 +19,7 @@ var _tableHeadCell = _interopRequireDefault(require("../table-head-cell"));
|
|
|
19
19
|
var _excluded = ["isRanking", "refHeight", "refWidth"];
|
|
20
20
|
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)); }
|
|
21
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
22
23
|
var RankableTableHeadCellComponent = /*#__PURE__*/function (_React$Component) {
|
|
23
24
|
function RankableTableHeadCellComponent() {
|
|
24
25
|
(0, _classCallCheck2.default)(this, RankableTableHeadCellComponent);
|
|
@@ -24,6 +24,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
24
24
|
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; }
|
|
25
25
|
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)); }
|
|
26
26
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // Allowing existing usage of non Pragmatic drag and drop solution
|
|
27
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
27
28
|
var RankableTableRow = /*#__PURE__*/function (_React$Component) {
|
|
28
29
|
function RankableTableRow() {
|
|
29
30
|
var _this;
|
|
@@ -43,6 +43,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
43
43
|
* }
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
46
47
|
var DynamicTable = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
47
48
|
function DynamicTable() {
|
|
48
49
|
var _this;
|
|
@@ -13,17 +13,15 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
16
|
var _helpers = require("../internal/helpers");
|
|
18
17
|
var _tableHead = require("../styled/table-head");
|
|
19
18
|
var _tableHeadCell = _interopRequireDefault(require("./rankable/table-head-cell"));
|
|
20
|
-
var _tableHeadCellOld = _interopRequireDefault(require("./rankable/table-head-cell-old"));
|
|
21
19
|
var _tableHeadCell2 = _interopRequireDefault(require("./table-head-cell"));
|
|
22
|
-
var _tableHeadCellOld2 = _interopRequireDefault(require("./table-head-cell-old"));
|
|
23
20
|
var _excluded = ["cells"],
|
|
24
21
|
_excluded2 = ["ascendingSortTooltip", "buttonAriaRoleDescription", "colSpan", "content", "descendingSortTooltip", "isIconOnlyHeader", "isSortable", "key", "shouldTruncate", "testId", "width"];
|
|
25
22
|
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)); }
|
|
26
23
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
27
25
|
var TableHead = /*#__PURE__*/function (_React$Component) {
|
|
28
26
|
function TableHead(props) {
|
|
29
27
|
var _this;
|
|
@@ -64,7 +62,6 @@ var TableHead = /*#__PURE__*/function (_React$Component) {
|
|
|
64
62
|
if (!head) {
|
|
65
63
|
return null;
|
|
66
64
|
}
|
|
67
|
-
var HeadCellComponentOld = isRankable ? _tableHeadCellOld.default : _tableHeadCellOld2.default;
|
|
68
65
|
var HeadCellComponent = isRankable ? _tableHeadCell.default : _tableHeadCell2.default;
|
|
69
66
|
|
|
70
67
|
// TODO: Remove `rest` props and use only what is explicitly in the API.
|
|
@@ -98,7 +95,7 @@ var TableHead = /*#__PURE__*/function (_React$Component) {
|
|
|
98
95
|
onSort(cell)();
|
|
99
96
|
}
|
|
100
97
|
};
|
|
101
|
-
return
|
|
98
|
+
return /*#__PURE__*/_react.default.createElement(HeadCellComponent, (0, _extends2.default)({
|
|
102
99
|
colSpan: colSpan,
|
|
103
100
|
content: content,
|
|
104
101
|
isFixedSize: isFixedSize,
|
|
@@ -116,18 +113,6 @@ var TableHead = /*#__PURE__*/function (_React$Component) {
|
|
|
116
113
|
ascendingSortTooltip: ascendingSortTooltip,
|
|
117
114
|
descendingSortTooltip: descendingSortTooltip,
|
|
118
115
|
buttonAriaRoleDescription: buttonAriaRoleDescription
|
|
119
|
-
}, restCellProps)) : /*#__PURE__*/_react.default.createElement(HeadCellComponentOld, (0, _extends2.default)({
|
|
120
|
-
colSpan: colSpan,
|
|
121
|
-
content: content,
|
|
122
|
-
isFixedSize: isFixedSize,
|
|
123
|
-
isSortable: !!isSortable,
|
|
124
|
-
isRanking: isRanking,
|
|
125
|
-
key: key || index,
|
|
126
|
-
onClick: isSortable ? onSort(cell) : undefined,
|
|
127
|
-
testId: cellTestId || testId,
|
|
128
|
-
shouldTruncate: shouldTruncate,
|
|
129
|
-
sortOrder: key === sortKey ? sortOrder : undefined,
|
|
130
|
-
width: width
|
|
131
116
|
}, restCellProps));
|
|
132
117
|
})));
|
|
133
118
|
}
|
|
@@ -93,6 +93,7 @@ var getSortedRows = function getSortedRows(head, rows, sortKey, sortOrder) {
|
|
|
93
93
|
};
|
|
94
94
|
// get one page of data in table, sorting all rows previously
|
|
95
95
|
function withSortedPageRows(WrappedComponent) {
|
|
96
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
96
97
|
var WithSortedPageRows = /*#__PURE__*/function (_React$Component) {
|
|
97
98
|
function WithSortedPageRows() {
|
|
98
99
|
var _this;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
.
|
|
2
|
+
._179r187z{border-block-end:var(--ds-border-width-selected,2px) solid var(--ds-border,#091e4224)}
|
|
3
3
|
._1bah1h6o{justify-content:center}
|
|
4
4
|
._1bsb1osq{width:100%}
|
|
5
5
|
._1e0c1txw{display:flex}
|
|
@@ -12,14 +12,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var React = _react;
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
17
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
18
16
|
var _excluded = ["isFixedSize", "hasDataRow", "children", "testId", "isLoading"];
|
|
19
17
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
20
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
21
|
-
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; }
|
|
22
|
-
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; }
|
|
23
19
|
var fixedSizeTableStyles = null;
|
|
24
20
|
var tableStyles = null;
|
|
25
21
|
var bodyBorder = null;
|
|
@@ -32,22 +28,20 @@ var Table = exports.Table = /*#__PURE__*/(0, _react.forwardRef)(function (_ref,
|
|
|
32
28
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
33
29
|
return /*#__PURE__*/React.createElement("table", (0, _extends2.default)({
|
|
34
30
|
inert: isLoading ? '' : undefined,
|
|
35
|
-
|
|
36
|
-
}, rest, {
|
|
37
|
-
"data-testid": testId && "".concat(testId, "--table"),
|
|
38
|
-
className: (0, _runtime.ax)(["_1bsb1osq _yq5hus1c _btyzidpf _ect41gqc", isFixedSize && "_1kqm1n9t", hasDataRow && "_179r1tpy"]),
|
|
39
|
-
style: _objectSpread(_objectSpread({}, {
|
|
31
|
+
style: {
|
|
40
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
41
|
-
'--local-dynamic-table-hover-bg': "var(--ds-background-neutral-subtle-hovered,
|
|
33
|
+
'--local-dynamic-table-hover-bg': "var(--ds-background-neutral-subtle-hovered, #091E420F)",
|
|
42
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
43
|
-
'--local-dynamic-table-highlighted-bg': "var(--ds-background-selected,
|
|
35
|
+
'--local-dynamic-table-highlighted-bg': "var(--ds-background-selected, #E9F2FF)",
|
|
44
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
45
|
-
'--local-dynamic-table-hover-highlighted-bg': "var(--ds-background-selected-hovered,
|
|
37
|
+
'--local-dynamic-table-hover-highlighted-bg': "var(--ds-background-selected-hovered, #CCE0FF)",
|
|
46
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
47
|
-
'--local-dynamic-table-row-focus-outline': "var(--ds-border-focused,
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
'--local-dynamic-table-row-focus-outline': "var(--ds-border-focused, #388BFF)"
|
|
40
|
+
},
|
|
41
|
+
ref: ref
|
|
42
|
+
}, rest, {
|
|
43
|
+
"data-testid": testId && "".concat(testId, "--table"),
|
|
44
|
+
className: (0, _runtime.ax)(["_1bsb1osq _yq5hus1c _btyzidpf _ect41gqc", isFixedSize && "_1kqm1n9t", hasDataRow && "_179r187z"])
|
|
51
45
|
}), children);
|
|
52
46
|
});
|
|
53
47
|
var captionStyles = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}.
|
|
3
|
-
.
|
|
2
|
+
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}._12y3e4h9{outline-width:var(--ds-border-width,1px)}
|
|
3
|
+
._16qs1cd0{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #091e4226,0 0 1px #091e424f)}
|
|
4
4
|
._1e0c1ule{display:block}
|
|
5
|
-
.
|
|
6
|
-
.
|
|
5
|
+
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
6
|
+
._mizu1p6i:focus-visible{outline-color:var(--ds-border-focused,#388bff)}
|
|
7
7
|
._ra3xnqa1:focus-visible{outline-style:solid}
|
|
@@ -13,7 +13,6 @@ var React = _react;
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
17
16
|
var _tableRow = require("../table-row");
|
|
18
17
|
var _excluded = ["isRanking", "isRankingItem", "testId"];
|
|
19
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -31,11 +30,6 @@ var RankableTableBodyRow = exports.RankableTableBodyRow = /*#__PURE__*/(0, _reac
|
|
|
31
30
|
ref: ref,
|
|
32
31
|
testId: testId
|
|
33
32
|
}, props, {
|
|
34
|
-
className: (0, _runtime.ax)([isRanking && "_1e0c1ule", isRankingItem && "_2rkolb4i
|
|
35
|
-
style: {
|
|
36
|
-
"--_14yez9t": (0, _runtime.ix)("var(--ds-surface-overlay, ".concat(_colors.N20, ")")),
|
|
37
|
-
"--_qzf6oc": (0, _runtime.ix)("var(--ds-shadow-overlay, ".concat("0 20px 32px -8px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")")),
|
|
38
|
-
"--_9ksfq": (0, _runtime.ix)("var(--ds-border-focused, ".concat(_colors.B100, ")"))
|
|
39
|
-
}
|
|
33
|
+
className: (0, _runtime.ax)([isRanking && "_1e0c1ule", isRankingItem && "_2rkolb4i _bfhk1bhr _16qs1cd0", "_12y3e4h9 _mizu1p6i _ra3xnqa1"])
|
|
40
34
|
}));
|
|
41
35
|
});
|
|
@@ -1,67 +1,24 @@
|
|
|
1
|
-
|
|
2
1
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
|
-
._173zglyw>button{background:none}
|
|
4
|
-
._pw6dglyw>button{border:none}
|
|
5
|
-
._1j091l7b>button:before{border-width:3px}
|
|
6
|
-
._1wfn1j28>button:before{border-color:transparent}
|
|
7
|
-
._1xgk1j28>button:after{border-color:transparent}
|
|
8
|
-
._997wnqa1>button:before{border-style:solid}
|
|
9
|
-
._sklb1l7b>button:after{border-width:3px}
|
|
10
|
-
._y9yonqa1>button:after{border-style:solid}
|
|
11
2
|
._h7alglyw{border-inline:none}
|
|
12
3
|
._izbqglyw{border-block:none}
|
|
13
|
-
.
|
|
4
|
+
._179r187z{border-block-end:var(--ds-border-width-selected,2px) solid var(--ds-border,#091e4224)}
|
|
14
5
|
._179rglyw{border-block-end:none}
|
|
15
|
-
._191wglyw{border-inline-start:none}
|
|
16
|
-
._c77k1f6e>button:before{border-block-end:var(--_1rdacuj)}
|
|
17
|
-
._c77k2wk4>button:before{border-block-end:var(--_1qca9zt)}
|
|
18
|
-
._f4731f6e>button:after{border-block-start:var(--_1rdacuj)}
|
|
19
|
-
._f4732wk4>button:after{border-block-start:var(--_1qca9zt)}
|
|
20
6
|
._mqm2glyw{border-block-start:none}
|
|
21
|
-
._t51zglyw{border-inline-end:none}._10pp1kw7>button{font-weight:inherit}
|
|
22
|
-
._14gsx0bf>button:after{inset-inline-end:var(--ds-space-negative-100,-8px)}
|
|
23
7
|
._18m915vq{overflow-y:hidden}
|
|
24
|
-
._19w61ule>button:after{display:block}
|
|
25
|
-
._1ay31kw7>button{cursor:inherit}
|
|
26
8
|
._1bsb8a2a{width:var(--local-dynamic-table-width)}
|
|
27
9
|
._1bto1l2s{text-overflow:ellipsis}
|
|
28
|
-
._1d4oidpf>button:before{height:0}
|
|
29
10
|
._1e0c1ule{display:block}
|
|
30
|
-
._1fpyidpf>button:after{inset-block-end:0}
|
|
31
|
-
._1hvvidpf>button:after{width:0}
|
|
32
11
|
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
33
12
|
._1reo15vq{overflow-x:hidden}
|
|
34
13
|
._1s37ze3t:first-of-type{padding-inline-start:var(--ds-space-0,0)}
|
|
35
|
-
._1w611ule>button:before{display:block}
|
|
36
|
-
._1yw3ze3t>button{padding-block-end:var(--ds-space-0,0)}
|
|
37
|
-
._4b5mb3bt>button:after{content:""}
|
|
38
|
-
._58ej1kw7>button{color:inherit}
|
|
39
14
|
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
40
|
-
._8607ze3t>button{padding-inline-end:var(--ds-space-0,0)}
|
|
41
|
-
._a04fh2mm>button{position:relative}
|
|
42
15
|
._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
|
|
43
|
-
._cigmx0bf>button:before{inset-inline-end:var(--ds-space-negative-100,-8px)}
|
|
44
|
-
._hn3bb3bt>button:before{content:""}
|
|
45
16
|
._k48pmoej{font-weight:var(--ds-font-weight-bold,700)}
|
|
46
17
|
._kqswh2mm{position:relative}
|
|
47
|
-
._mdbq1kw7>button{font-size:inherit}
|
|
48
|
-
._n2fdze3t>button{padding-block-start:var(--ds-space-0,0)}
|
|
49
|
-
._n56nidpf>button:before{width:0}
|
|
50
|
-
._no7mstnw>button:after{position:absolute}
|
|
51
18
|
._o5721q9c{white-space:nowrap}
|
|
52
|
-
._qh32stnw>button:before{position:absolute}
|
|
53
|
-
._qzvtu2gc>button:before{inset-block-end:var(--ds-space-100,8px)}
|
|
54
|
-
._s7n4jp4b{vertical-align:top}
|
|
55
19
|
._s7n4nkob{vertical-align:middle}
|
|
56
20
|
._syaz12fi{color:var(--_17ckjys)}
|
|
57
|
-
._szhwze3t>button{padding-inline-start:var(--ds-space-0,0)}
|
|
58
21
|
._uupyze3t:last-child{padding-inline-end:var(--ds-space-0,0)}
|
|
59
|
-
._vchhusvi{box-sizing:border-box}
|
|
60
|
-
._wyc4idpf>button:after{height:0}
|
|
61
|
-
._xv14glyw>button{-webkit-appearance:none;appearance:none}
|
|
62
22
|
._y3gn1e5h{text-align:left}
|
|
63
23
|
._y4tiu2gc{padding-inline-end:var(--ds-space-100,8px)}
|
|
64
|
-
.
|
|
65
|
-
._d0altlke:hover{cursor:pointer}
|
|
66
|
-
._irr3bfnf:hover{background-color:var(--_6j4ewu)}
|
|
67
|
-
@media (forced-colors:active){._142s94yt>button:before{border-block-end:3px solid Highlight}._17x894yt>button:after{border-block-start:3px solid Highlight}._1g2wwc43>button:after{border-color:Canvas}._ze9fwc43>button:before{border-color:Canvas}._1lcgnqa1>button:after{border-style:solid}._at5qnqa1>button:before{border-style:solid}._o4d71l7b>button:after{border-width:3px}._npl51l7b>button:before{border-width:3px}._1rp11onz>button:before{border-block-end-color:CanvasText}._1iornqa1>button:before{border-block-end-style:solid}._oi051l7b>button:before{border-block-end-width:3px}._1ehx1onz>button:after{border-block-start-color:CanvasText}._19t8nqa1>button:after{border-block-start-style:solid}._1bog1l7b>button:after{border-block-start-width:3px}}
|
|
24
|
+
._1ygbi3bv:focus-visible{outline:solid var(--ds-border-width-focused,2px) var(--ds-border-focused,#388bff)}
|
|
@@ -14,8 +14,6 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
16
16
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
17
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
19
17
|
var _constants = require("../internal/constants");
|
|
20
18
|
var _constants2 = require("./constants");
|
|
21
19
|
var _excluded = ["isRanking", "testId"],
|
|
@@ -43,11 +41,6 @@ var Head = exports.Head = function Head(_ref) {
|
|
|
43
41
|
}));
|
|
44
42
|
};
|
|
45
43
|
var headCellBaseStyles = null;
|
|
46
|
-
var headCellBaseStylesOld = null;
|
|
47
|
-
var onClickStyles = null;
|
|
48
|
-
var baseStyles = null;
|
|
49
|
-
var ascendingStyles = null;
|
|
50
|
-
var descendingStyles = null;
|
|
51
44
|
var HeadCell = exports.HeadCell = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
52
45
|
var width = _ref2.width,
|
|
53
46
|
children = _ref2.children,
|
|
@@ -61,7 +54,7 @@ var HeadCell = exports.HeadCell = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
|
61
54
|
rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
|
62
55
|
var mergedStyles = _objectSpread(_objectSpread(_objectSpread({}, style), width && (0, _constants2.getTruncationStyleVars)({
|
|
63
56
|
width: width
|
|
64
|
-
})), {}, (0, _defineProperty2.default)({}, CSS_VAR_TEXT_COLOR, "var(--ds-text-subtlest,
|
|
57
|
+
})), {}, (0, _defineProperty2.default)({}, CSS_VAR_TEXT_COLOR, "var(--ds-text-subtlest, #626F86)"));
|
|
65
58
|
var isASC = sortOrder === _constants.ASC;
|
|
66
59
|
var isDESC = sortOrder === _constants.DESC;
|
|
67
60
|
var getFormattedSortOrder = function getFormattedSortOrder() {
|
|
@@ -75,24 +68,18 @@ var HeadCell = exports.HeadCell = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
|
75
68
|
// If there is no content in the cell, it should be rendered as an empty `td`, not a `th`.
|
|
76
69
|
// https://dequeuniversity.com/rules/axe/4.7/empty-table-header
|
|
77
70
|
var Component = children ? 'th' : 'td';
|
|
78
|
-
var isVisuallyRefreshed = (0, _platformFeatureFlags.fg)('platform-component-visual-refresh');
|
|
79
71
|
return /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({
|
|
80
72
|
"aria-sort": getFormattedSortOrder()
|
|
81
73
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
82
74
|
,
|
|
83
75
|
|
|
84
|
-
onClick:
|
|
76
|
+
onClick: undefined,
|
|
85
77
|
ref: ref,
|
|
86
78
|
"data-testid": testId
|
|
87
79
|
}, rest, {
|
|
88
|
-
className: (0, _runtime.ax)(["_izbqglyw _h7alglyw _85i51b66 _1q511b66 _y4tiu2gc _bozgu2gc _y3gn1e5h _1s37ze3t _uupyze3t",
|
|
80
|
+
className: (0, _runtime.ax)(["_izbqglyw _h7alglyw _85i51b66 _1q511b66 _y4tiu2gc _bozgu2gc _y3gn1e5h _1s37ze3t _uupyze3t", "_11c8dcr7 _179r187z _mqm2glyw _kqswh2mm _syaz12fi _k48pmoej _y3gn1e5h _s7n4nkob _1ygbi3bv", "_1bsb8a2a", isFixedSize && shouldTruncate && "_1bto1l2s _o5721q9c", isFixedSize && "_1reo15vq _18m915vq"]),
|
|
89
81
|
style: _objectSpread(_objectSpread({}, mergedStyles), {}, {
|
|
90
|
-
"--
|
|
91
|
-
"--_17ckjys": (0, _runtime.ix)("var(--ds-text-subtle, ".concat("var(".concat(CSS_VAR_TEXT_COLOR, ")"), ")")),
|
|
92
|
-
"--_z3oznn": (0, _runtime.ix)("solid ".concat("var(--ds-border-width-focused, 2px)", " ", "var(--ds-border-focused, ".concat(_colors.B100, ")"))),
|
|
93
|
-
"--_6j4ewu": (0, _runtime.ix)("var(--ds-background-neutral-hovered, ".concat(_colors.N30A, ")")),
|
|
94
|
-
"--_1rdacuj": (0, _runtime.ix)("3px solid ".concat("var(--ds-icon-disabled, ".concat(_colors.N40, ")"))),
|
|
95
|
-
"--_1qca9zt": (0, _runtime.ix)("3px solid ".concat("var(--ds-icon-subtle, ".concat(_colors.N300, ")")))
|
|
82
|
+
"--_17ckjys": (0, _runtime.ix)("var(--ds-text-subtle, ".concat("var(".concat(CSS_VAR_TEXT_COLOR, ")"), ")"))
|
|
96
83
|
})
|
|
97
84
|
}), children);
|
|
98
85
|
});
|
|
@@ -4,6 +4,7 @@ import withSortedPageRows
|
|
|
4
4
|
// @ts-ignore -- Required for the below export of Body
|
|
5
5
|
from '../hoc/with-sorted-page-rows';
|
|
6
6
|
import TableRow from './table-row';
|
|
7
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
7
8
|
class BodyComponent extends React.Component {
|
|
8
9
|
render() {
|
|
9
10
|
const {
|
|
@@ -4,6 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import Spinner from '@atlaskit/spinner';
|
|
5
5
|
import { LARGE, LOADING_CONTENTS_OPACITY } from '../internal/constants';
|
|
6
6
|
import { Container, SpinnerBackdrop, SpinnerContainer } from '../styled/loading-container-advanced';
|
|
7
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
7
8
|
export default class LoadingContainerAdvanced extends React.Component {
|
|
8
9
|
constructor(...args) {
|
|
9
10
|
super(...args);
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import Spinner from '@atlaskit/spinner';
|
|
4
4
|
import { LARGE, LOADING_CONTENTS_OPACITY } from '../internal/constants';
|
|
5
5
|
import { Container, ContentsContainer, SpinnerContainer } from '../styled/loading-container';
|
|
6
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
6
7
|
export default class LoadingContainer extends React.Component {
|
|
7
8
|
render() {
|
|
8
9
|
const {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Pagination from '@atlaskit/pagination';
|
|
4
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
4
5
|
export default class ManagedPagination extends React.Component {
|
|
5
6
|
constructor(...args) {
|
|
6
7
|
super(...args);
|
|
@@ -32,6 +32,8 @@ const computeRankDestination = (result, pageRows) => {
|
|
|
32
32
|
}
|
|
33
33
|
return undefined;
|
|
34
34
|
};
|
|
35
|
+
|
|
36
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
35
37
|
export class RankableBody extends React.Component {
|
|
36
38
|
constructor(...args) {
|
|
37
39
|
super(...args);
|
|
@@ -5,6 +5,7 @@ import withDimensions
|
|
|
5
5
|
from '../../hoc/with-dimensions';
|
|
6
6
|
import { inlineStylesIfRanking } from '../../internal/helpers';
|
|
7
7
|
import { RankableTableBodyCell } from '../../styled/rankable/table-cell';
|
|
8
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
8
9
|
export class RankableTableCell extends React.Component {
|
|
9
10
|
render() {
|
|
10
11
|
const {
|
|
@@ -5,6 +5,8 @@ import withDimensions
|
|
|
5
5
|
from '../../hoc/with-dimensions';
|
|
6
6
|
import { inlineStylesIfRanking } from '../../internal/helpers';
|
|
7
7
|
import HeadCell from '../table-head-cell';
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
8
10
|
class RankableTableHeadCellComponent extends React.Component {
|
|
9
11
|
render() {
|
|
10
12
|
const {
|
|
@@ -10,6 +10,7 @@ from '../../hoc/with-dimensions';
|
|
|
10
10
|
import { inlineStylesIfRanking } from '../../internal/helpers';
|
|
11
11
|
import { RankableTableBodyRow } from '../../styled/rankable/table-row';
|
|
12
12
|
import TableCell from './table-cell';
|
|
13
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
13
14
|
class RankableTableRow extends React.Component {
|
|
14
15
|
constructor(...args) {
|
|
15
16
|
super(...args);
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { validateSortKey } from '../internal/helpers';
|
|
5
4
|
import { Head } from '../styled/table-head';
|
|
6
5
|
import RankableHeadCell from './rankable/table-head-cell';
|
|
7
|
-
import RankableHeadCellOld from './rankable/table-head-cell-old';
|
|
8
6
|
import HeadCell from './table-head-cell';
|
|
9
|
-
|
|
7
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
10
8
|
class TableHead extends React.Component {
|
|
11
9
|
constructor(props) {
|
|
12
10
|
super(props);
|
|
@@ -39,7 +37,6 @@ class TableHead extends React.Component {
|
|
|
39
37
|
if (!head) {
|
|
40
38
|
return null;
|
|
41
39
|
}
|
|
42
|
-
const HeadCellComponentOld = isRankable ? RankableHeadCellOld : HeadCellOld;
|
|
43
40
|
const HeadCellComponent = isRankable ? RankableHeadCell : HeadCell;
|
|
44
41
|
|
|
45
42
|
// TODO: Remove `rest` props and use only what is explicitly in the API.
|
|
@@ -79,7 +76,7 @@ class TableHead extends React.Component {
|
|
|
79
76
|
onSort(cell)();
|
|
80
77
|
}
|
|
81
78
|
};
|
|
82
|
-
return
|
|
79
|
+
return /*#__PURE__*/React.createElement(HeadCellComponent, _extends({
|
|
83
80
|
colSpan: colSpan,
|
|
84
81
|
content: content,
|
|
85
82
|
isFixedSize: isFixedSize,
|
|
@@ -97,18 +94,6 @@ class TableHead extends React.Component {
|
|
|
97
94
|
ascendingSortTooltip: ascendingSortTooltip,
|
|
98
95
|
descendingSortTooltip: descendingSortTooltip,
|
|
99
96
|
buttonAriaRoleDescription: buttonAriaRoleDescription
|
|
100
|
-
}, restCellProps)) : /*#__PURE__*/React.createElement(HeadCellComponentOld, _extends({
|
|
101
|
-
colSpan: colSpan,
|
|
102
|
-
content: content,
|
|
103
|
-
isFixedSize: isFixedSize,
|
|
104
|
-
isSortable: !!isSortable,
|
|
105
|
-
isRanking: isRanking,
|
|
106
|
-
key: key || index,
|
|
107
|
-
onClick: isSortable ? onSort(cell) : undefined,
|
|
108
|
-
testId: cellTestId || testId,
|
|
109
|
-
shouldTruncate: shouldTruncate,
|
|
110
|
-
sortOrder: key === sortKey ? sortOrder : undefined,
|
|
111
|
-
width: width
|
|
112
97
|
}, restCellProps));
|
|
113
98
|
})));
|
|
114
99
|
}
|
|
@@ -74,6 +74,7 @@ const getSortedRows = (head, rows, sortKey, sortOrder) => {
|
|
|
74
74
|
};
|
|
75
75
|
// get one page of data in table, sorting all rows previously
|
|
76
76
|
export default function withSortedPageRows(WrappedComponent) {
|
|
77
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
77
78
|
class WithSortedPageRows extends React.Component {
|
|
78
79
|
constructor(...args) {
|
|
79
80
|
super(...args);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
.
|
|
2
|
+
._179r187z{border-block-end:var(--ds-border-width-selected,2px) solid var(--ds-border,#091e4224)}
|
|
3
3
|
._1bah1h6o{justify-content:center}
|
|
4
4
|
._1bsb1osq{width:100%}
|
|
5
5
|
._1e0c1txw{display:flex}
|
|
@@ -6,7 +6,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
7
7
|
|
|
8
8
|
import { forwardRef } from 'react';
|
|
9
|
-
import { B100, B50, B75, N10, N40 } from '@atlaskit/theme/colors';
|
|
10
9
|
const fixedSizeTableStyles = null;
|
|
11
10
|
const tableStyles = null;
|
|
12
11
|
const bodyBorder = null;
|
|
@@ -22,18 +21,18 @@ export const Table = /*#__PURE__*/forwardRef(({
|
|
|
22
21
|
inert: isLoading ? '' : undefined,
|
|
23
22
|
style: {
|
|
24
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
25
|
-
'--local-dynamic-table-hover-bg':
|
|
24
|
+
'--local-dynamic-table-hover-bg': "var(--ds-background-neutral-subtle-hovered, #091E420F)",
|
|
26
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
27
|
-
'--local-dynamic-table-highlighted-bg':
|
|
26
|
+
'--local-dynamic-table-highlighted-bg': "var(--ds-background-selected, #E9F2FF)",
|
|
28
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
29
|
-
'--local-dynamic-table-hover-highlighted-bg':
|
|
28
|
+
'--local-dynamic-table-hover-highlighted-bg': "var(--ds-background-selected-hovered, #CCE0FF)",
|
|
30
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
31
|
-
'--local-dynamic-table-row-focus-outline':
|
|
30
|
+
'--local-dynamic-table-row-focus-outline': "var(--ds-border-focused, #388BFF)"
|
|
32
31
|
},
|
|
33
32
|
ref: ref
|
|
34
33
|
}, rest, {
|
|
35
34
|
"data-testid": testId && `${testId}--table`,
|
|
36
|
-
className: ax(["_1bsb1osq _yq5hus1c _btyzidpf _ect41gqc", isFixedSize && "_1kqm1n9t", hasDataRow && "
|
|
35
|
+
className: ax(["_1bsb1osq _yq5hus1c _btyzidpf _ect41gqc", isFixedSize && "_1kqm1n9t", hasDataRow && "_179r187z"])
|
|
37
36
|
}), children);
|
|
38
37
|
});
|
|
39
38
|
const captionStyles = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}.
|
|
3
|
-
.
|
|
2
|
+
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}._12y3e4h9{outline-width:var(--ds-border-width,1px)}
|
|
3
|
+
._16qs1cd0{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #091e4226,0 0 1px #091e424f)}
|
|
4
4
|
._1e0c1ule{display:block}
|
|
5
|
-
.
|
|
6
|
-
.
|
|
5
|
+
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
6
|
+
._mizu1p6i:focus-visible{outline-color:var(--ds-border-focused,#388bff)}
|
|
7
7
|
._ra3xnqa1:focus-visible{outline-style:solid}
|