@atlaskit/dynamic-table 14.7.1 → 14.8.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 +17 -0
- package/dist/cjs/components/stateless.js +1 -1
- package/dist/cjs/styled/constants.js +5 -5
- package/dist/cjs/styled/dynamic-table.js +9 -9
- package/dist/cjs/styled/empty-body.js +5 -5
- package/dist/cjs/styled/loading-container-advanced.js +7 -7
- package/dist/cjs/styled/loading-container.js +7 -7
- package/dist/cjs/styled/rankable/row-placeholder.js +3 -3
- package/dist/cjs/styled/rankable/table-cell.js +3 -3
- package/dist/cjs/styled/rankable/table-row.js +5 -5
- package/dist/cjs/styled/table-cell.js +2 -2
- package/dist/cjs/styled/table-head.js +10 -10
- package/dist/cjs/styled/table-row.js +5 -5
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/stateless.js +1 -1
- package/dist/es2019/styled/constants.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/row-placeholder.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/es2019/version.json +1 -1
- package/dist/esm/components/stateless.js +1 -1
- package/dist/esm/styled/constants.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/row-placeholder.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/esm/version.json +1 -1
- package/dist/types/components/stateless.d.ts +2 -2
- package/dist/types/styled/constants.d.ts +5 -4
- package/dist/types/styled/dynamic-table.d.ts +1 -1
- package/dist/types/styled/loading-container-advanced.d.ts +3 -2
- package/dist/types/styled/table-head.d.ts +1 -1
- package/dist/types/styled/table-row.d.ts +1 -0
- package/dist/types-ts4.0/components/body.d.ts +112 -0
- package/dist/types-ts4.0/components/loading-container-advanced.d.ts +43 -0
- package/dist/types-ts4.0/components/loading-container.d.ts +18 -0
- package/dist/types-ts4.0/components/managed-pagination.d.ts +15 -0
- package/dist/types-ts4.0/components/rankable/body.d.ts +122 -0
- package/dist/types-ts4.0/components/rankable/table-cell.d.ts +14 -0
- package/dist/types-ts4.0/components/rankable/table-head-cell.d.ts +5 -0
- package/dist/types-ts4.0/components/rankable/table-row.d.ts +18 -0
- package/dist/types-ts4.0/components/stateful.d.ts +60 -0
- package/dist/types-ts4.0/components/stateless.d.ts +58 -0
- package/dist/types-ts4.0/components/table-head-cell.d.ts +17 -0
- package/dist/types-ts4.0/components/table-head.d.ts +19 -0
- package/dist/types-ts4.0/components/table-row.d.ts +11 -0
- package/dist/types-ts4.0/hoc/with-dimensions.d.ts +12 -0
- package/dist/types-ts4.0/hoc/with-sorted-page-rows.d.ts +117 -0
- package/dist/types-ts4.0/index.d.ts +2 -0
- package/dist/types-ts4.0/internal/constants.d.ts +5 -0
- package/dist/types-ts4.0/internal/helpers.d.ts +7 -0
- package/dist/types-ts4.0/styled/constants.d.ts +17 -0
- package/dist/types-ts4.0/styled/dynamic-table.d.ts +15 -0
- package/dist/types-ts4.0/styled/empty-body.d.ts +4 -0
- package/dist/types-ts4.0/styled/loading-container-advanced.d.ts +6 -0
- package/dist/types-ts4.0/styled/loading-container.d.ts +9 -0
- package/dist/types-ts4.0/styled/rankable/row-placeholder.d.ts +3 -0
- package/dist/types-ts4.0/styled/rankable/table-cell.d.ts +8 -0
- package/dist/types-ts4.0/styled/rankable/table-row.d.ts +11 -0
- package/dist/types-ts4.0/styled/table-cell.d.ts +4 -0
- package/dist/types-ts4.0/styled/table-head.d.ts +15 -0
- package/dist/types-ts4.0/styled/table-row.d.ts +9 -0
- package/dist/types-ts4.0/theme.d.ts +22 -0
- package/dist/types-ts4.0/types.d.ts +345 -0
- package/package.json +16 -10
- package/theme/package.json +8 -1
- package/types/package.json +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/dynamic-table
|
|
2
2
|
|
|
3
|
+
## 14.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
8
|
+
|
|
9
|
+
## 14.8.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`f88eb89b356`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f88eb89b356) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`12e03c6416b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12e03c6416b) - Allow `className` on internal components for css prop functionality. There should be no change in behaviour.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 14.7.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -54,7 +54,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
54
54
|
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; } }
|
|
55
55
|
|
|
56
56
|
var packageName = "@atlaskit/dynamic-table";
|
|
57
|
-
var packageVersion = "14.
|
|
57
|
+
var packageVersion = "14.8.1";
|
|
58
58
|
|
|
59
59
|
function toggleSortOrder(currentSortOrder) {
|
|
60
60
|
switch (currentSortOrder) {
|
|
@@ -9,22 +9,22 @@ exports.truncationWidthStyles = exports.overflowTruncateStyles = exports.getTrun
|
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _react = require("@emotion/react");
|
|
13
13
|
|
|
14
14
|
var _constants = require("@atlaskit/theme/constants");
|
|
15
15
|
|
|
16
16
|
var CSS_VAR_WIDTH = '--local-dynamic-table-width';
|
|
17
17
|
var gridSize = (0, _constants.gridSize)();
|
|
18
|
-
var truncationWidthStyles = (0,
|
|
18
|
+
var truncationWidthStyles = (0, _react.css)({
|
|
19
19
|
width: "var(".concat(CSS_VAR_WIDTH, ")")
|
|
20
20
|
});
|
|
21
21
|
exports.truncationWidthStyles = truncationWidthStyles;
|
|
22
|
-
var fixedSizeTruncateStyles = (0,
|
|
22
|
+
var fixedSizeTruncateStyles = (0, _react.css)({
|
|
23
23
|
textOverflow: 'ellipsis',
|
|
24
24
|
whiteSpace: 'nowrap'
|
|
25
25
|
});
|
|
26
26
|
exports.fixedSizeTruncateStyles = fixedSizeTruncateStyles;
|
|
27
|
-
var overflowTruncateStyles = (0,
|
|
27
|
+
var overflowTruncateStyles = (0, _react.css)({
|
|
28
28
|
overflow: 'hidden'
|
|
29
29
|
});
|
|
30
30
|
exports.overflowTruncateStyles = overflowTruncateStyles;
|
|
@@ -35,7 +35,7 @@ var getTruncationStyleVars = function getTruncationStyleVars(_ref) {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
exports.getTruncationStyleVars = getTruncationStyleVars;
|
|
38
|
-
var cellStyles = (0,
|
|
38
|
+
var cellStyles = (0, _react.css)({
|
|
39
39
|
padding: "".concat(gridSize / 2, "px ").concat(gridSize, "px"),
|
|
40
40
|
border: 'none',
|
|
41
41
|
textAlign: 'left',
|
|
@@ -15,7 +15,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
15
15
|
|
|
16
16
|
var _react = require("react");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
19
|
|
|
20
20
|
var _constants = require("@atlaskit/theme/constants");
|
|
21
21
|
|
|
@@ -32,15 +32,15 @@ var tableRowCSSVars = {
|
|
|
32
32
|
CSS_VAR_ROW_FOCUS_OUTLINE: '--local-dynamic-table-row-focus-outline'
|
|
33
33
|
};
|
|
34
34
|
exports.tableRowCSSVars = tableRowCSSVars;
|
|
35
|
-
var fixedSizeTableStyles = (0,
|
|
35
|
+
var fixedSizeTableStyles = (0, _react2.css)({
|
|
36
36
|
tableLayout: 'fixed'
|
|
37
37
|
});
|
|
38
|
-
var tableStyles = (0,
|
|
38
|
+
var tableStyles = (0, _react2.css)({
|
|
39
39
|
width: '100%',
|
|
40
40
|
borderCollapse: 'separate',
|
|
41
41
|
borderSpacing: '0px'
|
|
42
42
|
});
|
|
43
|
-
var bodyBorder = (0,
|
|
43
|
+
var bodyBorder = (0, _react2.css)({
|
|
44
44
|
borderBottom: "2px solid ".concat(_theme.tableBorder.borderColor)
|
|
45
45
|
});
|
|
46
46
|
var Table = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
@@ -50,14 +50,14 @@ var Table = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
50
50
|
hasDataRow = _ref.hasDataRow,
|
|
51
51
|
children = _ref.children,
|
|
52
52
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
53
|
-
return (0,
|
|
53
|
+
return (0, _react2.jsx)("table", (0, _extends2.default)({
|
|
54
54
|
style: (_ref2 = {}, (0, _defineProperty2.default)(_ref2, tableRowCSSVars.CSS_VAR_HOVER_BACKGROUND, _theme.row.hoverBackground), (0, _defineProperty2.default)(_ref2, tableRowCSSVars.CSS_VAR_HIGHLIGHTED_BACKGROUND, _theme.row.highlightedBackground), (0, _defineProperty2.default)(_ref2, tableRowCSSVars.CSS_VAR_HOVER_HIGHLIGHTED_BACKGROUND, _theme.row.hoverHighlightedBackground), (0, _defineProperty2.default)(_ref2, tableRowCSSVars.CSS_VAR_ROW_FOCUS_OUTLINE, _theme.row.focusOutline), _ref2),
|
|
55
55
|
css: [tableStyles, isFixedSize && fixedSizeTableStyles, hasDataRow && bodyBorder],
|
|
56
56
|
ref: ref
|
|
57
57
|
}, rest), children);
|
|
58
58
|
});
|
|
59
59
|
exports.Table = Table;
|
|
60
|
-
var captionStyles = (0,
|
|
60
|
+
var captionStyles = (0, _react2.css)({
|
|
61
61
|
marginTop: "".concat(gridSize * 3.5, "px"),
|
|
62
62
|
marginBottom: "".concat(gridSize, "px"),
|
|
63
63
|
fontSize: '1.42857143em',
|
|
@@ -76,20 +76,20 @@ var captionStyles = (0, _core.css)({
|
|
|
76
76
|
|
|
77
77
|
var Caption = function Caption(_ref3) {
|
|
78
78
|
var children = _ref3.children;
|
|
79
|
-
return (0,
|
|
79
|
+
return (0, _react2.jsx)("caption", {
|
|
80
80
|
css: captionStyles
|
|
81
81
|
}, children);
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
exports.Caption = Caption;
|
|
85
|
-
var paginationWrapperStyles = (0,
|
|
85
|
+
var paginationWrapperStyles = (0, _react2.css)({
|
|
86
86
|
display: 'flex',
|
|
87
87
|
justifyContent: 'center'
|
|
88
88
|
});
|
|
89
89
|
|
|
90
90
|
var PaginationWrapper = function PaginationWrapper(_ref4) {
|
|
91
91
|
var children = _ref4.children;
|
|
92
|
-
return (0,
|
|
92
|
+
return (0, _react2.jsx)("div", {
|
|
93
93
|
css: paginationWrapperStyles
|
|
94
94
|
}, children);
|
|
95
95
|
};
|
|
@@ -5,26 +5,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.EmptyViewWithFixedHeight = exports.EmptyViewContainer = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
9
|
|
|
10
10
|
var _constants = require("@atlaskit/theme/constants");
|
|
11
11
|
|
|
12
12
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
13
13
|
|
|
14
14
|
/** @jsx jsx */
|
|
15
|
-
var fixedHeightStyles = (0,
|
|
15
|
+
var fixedHeightStyles = (0, _react.css)({
|
|
16
16
|
height: "".concat((0, _constants.gridSize)() * 18, "px")
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
var EmptyViewWithFixedHeight = function EmptyViewWithFixedHeight(_ref) {
|
|
20
20
|
var children = _ref.children;
|
|
21
|
-
return (0,
|
|
21
|
+
return (0, _react.jsx)("div", {
|
|
22
22
|
css: fixedHeightStyles
|
|
23
23
|
}, children);
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
exports.EmptyViewWithFixedHeight = EmptyViewWithFixedHeight;
|
|
27
|
-
var emptyViewContainerStyles = (0,
|
|
27
|
+
var emptyViewContainerStyles = (0, _react.css)({
|
|
28
28
|
width: '50%',
|
|
29
29
|
margin: 'auto',
|
|
30
30
|
padding: '10px',
|
|
@@ -33,7 +33,7 @@ var emptyViewContainerStyles = (0, _core.css)({
|
|
|
33
33
|
|
|
34
34
|
var EmptyViewContainer = function EmptyViewContainer(_ref2) {
|
|
35
35
|
var children = _ref2.children;
|
|
36
|
-
return (0,
|
|
36
|
+
return (0, _react.jsx)("div", {
|
|
37
37
|
css: emptyViewContainerStyles
|
|
38
38
|
}, children);
|
|
39
39
|
};
|
|
@@ -11,28 +11,28 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
15
|
|
|
16
16
|
var _constants = require("@atlaskit/theme/constants");
|
|
17
17
|
|
|
18
18
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
19
19
|
|
|
20
20
|
/** @jsx jsx */
|
|
21
|
-
var containerStyles = (0,
|
|
21
|
+
var containerStyles = (0, _react2.css)({
|
|
22
22
|
marginBottom: "".concat((0, _constants.gridSize)() * 3, "px"),
|
|
23
23
|
position: 'relative'
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
var Container = function Container(props) {
|
|
27
27
|
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
28
|
-
(0,
|
|
28
|
+
(0, _react2.jsx)("div", (0, _extends2.default)({
|
|
29
29
|
css: containerStyles
|
|
30
30
|
}, props))
|
|
31
31
|
);
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
exports.Container = Container;
|
|
35
|
-
var spinnerBackdropStyles = (0,
|
|
35
|
+
var spinnerBackdropStyles = (0, _react2.css)({
|
|
36
36
|
display: 'flex',
|
|
37
37
|
position: 'absolute',
|
|
38
38
|
top: 0,
|
|
@@ -46,19 +46,19 @@ var spinnerBackdropStyles = (0, _core.css)({
|
|
|
46
46
|
|
|
47
47
|
var SpinnerBackdrop = function SpinnerBackdrop(_ref) {
|
|
48
48
|
var children = _ref.children;
|
|
49
|
-
return (0,
|
|
49
|
+
return (0, _react2.jsx)("div", {
|
|
50
50
|
css: spinnerBackdropStyles
|
|
51
51
|
}, children);
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
exports.SpinnerBackdrop = SpinnerBackdrop;
|
|
55
|
-
var spinnerContainerStyles = (0,
|
|
55
|
+
var spinnerContainerStyles = (0, _react2.css)({
|
|
56
56
|
position: 'relative',
|
|
57
57
|
top: 0
|
|
58
58
|
});
|
|
59
59
|
var SpinnerContainer = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
60
60
|
var children = _ref2.children;
|
|
61
|
-
return (0,
|
|
61
|
+
return (0, _react2.jsx)("div", {
|
|
62
62
|
css: spinnerContainerStyles,
|
|
63
63
|
ref: ref
|
|
64
64
|
}, children);
|
|
@@ -9,25 +9,25 @@ exports.SpinnerContainer = exports.ContentsContainer = exports.Container = void
|
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _react = require("@emotion/react");
|
|
13
13
|
|
|
14
14
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
15
15
|
|
|
16
16
|
/** @jsx jsx */
|
|
17
17
|
var CSS_VAR_CONTENTS_OPACITY = '--contents-opacity';
|
|
18
|
-
var containerStyles = (0,
|
|
18
|
+
var containerStyles = (0, _react.css)({
|
|
19
19
|
position: 'relative'
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
var Container = function Container(_ref) {
|
|
23
23
|
var children = _ref.children;
|
|
24
|
-
return (0,
|
|
24
|
+
return (0, _react.jsx)("div", {
|
|
25
25
|
css: containerStyles
|
|
26
26
|
}, children);
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
exports.Container = Container;
|
|
30
|
-
var contentsContainerStyles = (0,
|
|
30
|
+
var contentsContainerStyles = (0, _react.css)({
|
|
31
31
|
opacity: "var(".concat(CSS_VAR_CONTENTS_OPACITY, ")"),
|
|
32
32
|
pointerEvents: 'none'
|
|
33
33
|
});
|
|
@@ -35,14 +35,14 @@ var contentsContainerStyles = (0, _core.css)({
|
|
|
35
35
|
var ContentsContainer = function ContentsContainer(_ref2) {
|
|
36
36
|
var contentsOpacity = _ref2.contentsOpacity,
|
|
37
37
|
children = _ref2.children;
|
|
38
|
-
return (0,
|
|
38
|
+
return (0, _react.jsx)("div", {
|
|
39
39
|
style: (0, _defineProperty2.default)({}, CSS_VAR_CONTENTS_OPACITY, contentsOpacity),
|
|
40
40
|
css: [contentsContainerStyles]
|
|
41
41
|
}, children);
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
exports.ContentsContainer = ContentsContainer;
|
|
45
|
-
var spinnerContainerStyles = (0,
|
|
45
|
+
var spinnerContainerStyles = (0, _react.css)({
|
|
46
46
|
display: 'flex',
|
|
47
47
|
position: 'absolute',
|
|
48
48
|
top: 0,
|
|
@@ -55,7 +55,7 @@ var spinnerContainerStyles = (0, _core.css)({
|
|
|
55
55
|
|
|
56
56
|
var SpinnerContainer = function SpinnerContainer(_ref4) {
|
|
57
57
|
var children = _ref4.children;
|
|
58
|
-
return (0,
|
|
58
|
+
return (0, _react.jsx)("div", {
|
|
59
59
|
css: spinnerContainerStyles
|
|
60
60
|
}, children);
|
|
61
61
|
};
|
|
@@ -9,16 +9,16 @@ exports.RowPlaceholderCell = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _react = require("@emotion/react");
|
|
13
13
|
|
|
14
14
|
/** @jsx jsx */
|
|
15
|
-
var rowPlaceholderStyles = (0,
|
|
15
|
+
var rowPlaceholderStyles = (0, _react.css)({
|
|
16
16
|
padding: 0
|
|
17
17
|
}); // eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
18
18
|
|
|
19
19
|
var RowPlaceholderCell = function RowPlaceholderCell(props) {
|
|
20
20
|
return (// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
21
|
-
(0,
|
|
21
|
+
(0, _react.jsx)("td", (0, _extends2.default)({
|
|
22
22
|
css: rowPlaceholderStyles
|
|
23
23
|
}, props))
|
|
24
24
|
);
|
|
@@ -11,12 +11,12 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react = require("@emotion/react");
|
|
15
15
|
|
|
16
16
|
var _tableCell = require("../table-cell");
|
|
17
17
|
|
|
18
18
|
var _excluded = ["isRanking", "innerRef"];
|
|
19
|
-
var rankingStyles = (0,
|
|
19
|
+
var rankingStyles = (0, _react.css)({
|
|
20
20
|
boxSizing: 'border-box'
|
|
21
21
|
}); // eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ var RankableTableBodyCell = function RankableTableBodyCell(_ref) {
|
|
|
24
24
|
var isRanking = _ref.isRanking,
|
|
25
25
|
innerRef = _ref.innerRef,
|
|
26
26
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
27
|
-
return (0,
|
|
27
|
+
return (0, _react.jsx)(_tableCell.TableBodyCell, (0, _extends2.default)({
|
|
28
28
|
css: isRanking && rankingStyles // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
29
|
|
|
30
30
|
}, props, {
|
|
@@ -13,14 +13,14 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
13
13
|
|
|
14
14
|
var _react = require("react");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
19
19
|
|
|
20
20
|
var _tableRow = require("../table-row");
|
|
21
21
|
|
|
22
22
|
var _excluded = ["isRanking", "isRankingItem"];
|
|
23
|
-
var rankingStyles = (0,
|
|
23
|
+
var rankingStyles = (0, _react2.css)({
|
|
24
24
|
display: 'block'
|
|
25
25
|
});
|
|
26
26
|
var elevationStyle = "var(--ds-shadow-overlay, ".concat("0 20px 32px -8px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")");
|
|
@@ -29,12 +29,12 @@ var elevationStyle = "var(--ds-shadow-overlay, ".concat("0 20px 32px -8px ".conc
|
|
|
29
29
|
* Skipping it for now as it may impact migration as util-shared-styles does not support this feature
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
|
-
var rankingItemStyles = (0,
|
|
32
|
+
var rankingItemStyles = (0, _react2.css)({
|
|
33
33
|
backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
|
|
34
34
|
borderRadius: '2px',
|
|
35
35
|
boxShadow: elevationStyle
|
|
36
36
|
});
|
|
37
|
-
var draggableStyles = (0,
|
|
37
|
+
var draggableStyles = (0, _react2.css)({
|
|
38
38
|
outlineWidth: '2px',
|
|
39
39
|
'&:focus': {
|
|
40
40
|
outlineColor: "var(--ds-border-focused, ".concat(_colors.B100, ")"),
|
|
@@ -46,7 +46,7 @@ var RankableTableBodyRow = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, r
|
|
|
46
46
|
var isRanking = _ref.isRanking,
|
|
47
47
|
isRankingItem = _ref.isRankingItem,
|
|
48
48
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
49
|
-
return (0,
|
|
49
|
+
return (0, _react2.jsx)(_tableRow.TableBodyRow, (0, _extends2.default)({
|
|
50
50
|
css: [isRanking && rankingStyles, isRankingItem && rankingItemStyles, draggableStyles],
|
|
51
51
|
ref: ref
|
|
52
52
|
}, props));
|
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react = require("@emotion/react");
|
|
15
15
|
|
|
16
16
|
var _constants = require("./constants");
|
|
17
17
|
|
|
@@ -24,7 +24,7 @@ var TableBodyCell = function TableBodyCell(_ref) {
|
|
|
24
24
|
shouldTruncate = _ref.shouldTruncate,
|
|
25
25
|
innerRef = _ref.innerRef,
|
|
26
26
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
27
|
-
return (0,
|
|
27
|
+
return (0, _react.jsx)("td", (0, _extends2.default)({
|
|
28
28
|
style: (0, _constants.getTruncationStyleVars)({
|
|
29
29
|
width: width
|
|
30
30
|
}),
|
|
@@ -15,7 +15,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
15
15
|
|
|
16
16
|
var _react = require("react");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
19
|
|
|
20
20
|
var _colors = require("@atlaskit/theme/colors");
|
|
21
21
|
|
|
@@ -36,24 +36,24 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
36
36
|
|
|
37
37
|
var gridSize = (0, _constants.gridSize)();
|
|
38
38
|
var CSS_VAR_TEXT_COLOR = '--local-dynamic-table-text-color';
|
|
39
|
-
var rankingStyles = (0,
|
|
39
|
+
var rankingStyles = (0, _react2.css)({
|
|
40
40
|
display: 'block'
|
|
41
41
|
});
|
|
42
|
-
var headStyles = (0,
|
|
42
|
+
var headStyles = (0, _react2.css)({
|
|
43
43
|
borderBottom: "none"
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
var Head = function Head(_ref) {
|
|
47
47
|
var isRanking = _ref.isRanking,
|
|
48
48
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
49
|
-
return (0,
|
|
49
|
+
return (0, _react2.jsx)("thead", (0, _extends2.default)({
|
|
50
50
|
css: [headStyles, isRanking && rankingStyles] // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
51
51
|
|
|
52
52
|
}, props));
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
exports.Head = Head;
|
|
56
|
-
var headCellStyles = (0,
|
|
56
|
+
var headCellStyles = (0, _react2.css)([_constants3.cellStyles, {
|
|
57
57
|
boxSizing: 'border-box',
|
|
58
58
|
position: 'relative',
|
|
59
59
|
border: 'none',
|
|
@@ -67,13 +67,13 @@ var headCellStyles = (0, _core.css)([_constants3.cellStyles, {
|
|
|
67
67
|
outline: "solid 2px ".concat("var(--ds-border-focused, ".concat(_colors.B100, ")"))
|
|
68
68
|
}
|
|
69
69
|
}]);
|
|
70
|
-
var onClickStyles = (0,
|
|
70
|
+
var onClickStyles = (0, _react2.css)({
|
|
71
71
|
'&:hover': {
|
|
72
72
|
backgroundColor: "var(--ds-background-neutral-hovered, ".concat(_colors.N30A, ")"),
|
|
73
73
|
cursor: 'pointer'
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
-
var baseStyles = (0,
|
|
76
|
+
var baseStyles = (0, _react2.css)({
|
|
77
77
|
'& > span': {
|
|
78
78
|
position: 'relative',
|
|
79
79
|
'&::before, &::after': {
|
|
@@ -108,7 +108,7 @@ var baseStyles = (0, _core.css)({
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
|
-
var ascendingStyles = (0,
|
|
111
|
+
var ascendingStyles = (0, _react2.css)({
|
|
112
112
|
'& > span': {
|
|
113
113
|
'&::before': {
|
|
114
114
|
borderBottom: "3px solid ".concat(_theme.arrow.selectedColor)
|
|
@@ -122,7 +122,7 @@ var ascendingStyles = (0, _core.css)({
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
|
-
var descendingStyles = (0,
|
|
125
|
+
var descendingStyles = (0, _react2.css)({
|
|
126
126
|
'& > span': {
|
|
127
127
|
'&::after': {
|
|
128
128
|
borderTop: "3px solid ".concat(_theme.arrow.selectedColor)
|
|
@@ -153,7 +153,7 @@ var HeadCell = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
|
153
153
|
|
|
154
154
|
var isASC = sortOrder === _constants2.ASC;
|
|
155
155
|
var isDESC = sortOrder === _constants2.DESC;
|
|
156
|
-
return (0,
|
|
156
|
+
return (0, _react2.jsx)("th", (0, _extends2.default)({
|
|
157
157
|
style: mergedStyles,
|
|
158
158
|
css: [headCellStyles, onClick && onClickStyles, _constants3.truncationWidthStyles, isFixedSize && shouldTruncate && _constants3.fixedSizeTruncateStyles, isFixedSize && _constants3.overflowTruncateStyles, isSortable && baseStyles, isASC && ascendingStyles, isDESC && descendingStyles],
|
|
159
159
|
onClick: onClick,
|
|
@@ -13,23 +13,23 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
13
13
|
|
|
14
14
|
var _react = require("react");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
var _dynamicTable = require("./dynamic-table");
|
|
19
19
|
|
|
20
20
|
var _excluded = ["isHighlighted", "children", "style"];
|
|
21
|
-
var rowStyles = (0,
|
|
21
|
+
var rowStyles = (0, _react2.css)({
|
|
22
22
|
'&:focus': {
|
|
23
23
|
outline: "2px solid ".concat("var(--ds-border-focused, ".concat("var(".concat(_dynamicTable.tableRowCSSVars.CSS_VAR_HOVER_BACKGROUND, ")"), ")")),
|
|
24
24
|
outlineOffset: "-2px"
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
var rowBackgroundStyles = (0,
|
|
27
|
+
var rowBackgroundStyles = (0, _react2.css)({
|
|
28
28
|
'&:hover': {
|
|
29
29
|
backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat("var(".concat(_dynamicTable.tableRowCSSVars.CSS_VAR_HOVER_BACKGROUND, ")"), ")")
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
var rowHighlightedBackgroundStyles = (0,
|
|
32
|
+
var rowHighlightedBackgroundStyles = (0, _react2.css)({
|
|
33
33
|
backgroundColor: "var(--ds-background-selected, ".concat("var(".concat(_dynamicTable.tableRowCSSVars.CSS_VAR_HIGHLIGHTED_BACKGROUND, ")"), ")"),
|
|
34
34
|
'&:hover': {
|
|
35
35
|
backgroundColor: "var(--ds-background-selected-hovered, ".concat("var(".concat(_dynamicTable.tableRowCSSVars.CSS_VAR_HOVER_HIGHLIGHTED_BACKGROUND, ")"), ")")
|
|
@@ -41,7 +41,7 @@ var TableBodyRow = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
41
41
|
children = _ref.children,
|
|
42
42
|
style = _ref.style,
|
|
43
43
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
44
|
-
return (0,
|
|
44
|
+
return (0, _react2.jsx)("tr", (0, _extends2.default)({
|
|
45
45
|
style: style,
|
|
46
46
|
css: [rowStyles, isHighlighted ? rowHighlightedBackgroundStyles : rowBackgroundStyles]
|
|
47
47
|
}, rest, {
|
package/dist/cjs/version.json
CHANGED
|
@@ -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.
|
|
17
|
+
const packageVersion = "14.8.1";
|
|
18
18
|
|
|
19
19
|
function toggleSortOrder(currentSortOrder) {
|
|
20
20
|
switch (currentSortOrder) {
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
9
9
|
import { row, tableBorder } from '../theme';
|
|
10
10
|
const gridSize = getGridSize();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { css, jsx } from '@emotion/
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
6
6
|
const fixedHeightStyles = css({
|
|
7
7
|
height: `${gridSize() * 18}px`
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
9
9
|
const containerStyles = css({
|
|
10
10
|
marginBottom: `${gridSize() * 3}px`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { css, jsx } from '@emotion/
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
const CSS_VAR_CONTENTS_OPACITY = '--contents-opacity';
|
|
6
6
|
const containerStyles = css({
|
|
7
7
|
position: 'relative'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { css, jsx } from '@emotion/
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
const rowPlaceholderStyles = css({
|
|
6
6
|
padding: 0
|
|
7
7
|
}); // eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { css, jsx } from '@emotion/
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import { TableBodyCell } from '../table-cell';
|
|
6
6
|
const rankingStyles = css({
|
|
7
7
|
boxSizing: 'border-box'
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { B100, N20, N50A, N60A } from '@atlaskit/theme/colors';
|
|
7
7
|
import { TableBodyRow } from '../table-row';
|
|
8
8
|
const rankingStyles = css({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { jsx } from '@emotion/
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
5
5
|
import { cellStyles, fixedSizeTruncateStyles, getTruncationStyleVars, overflowTruncateStyles, truncationWidthStyles } from './constants'; // eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
6
6
|
|
|
7
7
|
export const TableBodyCell = ({
|
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { B100, N30A } from '@atlaskit/theme/colors';
|
|
9
9
|
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
10
10
|
import { ASC, DESC } from '../internal/constants';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { tableRowCSSVars as cssVars } from './dynamic-table';
|
|
7
7
|
const rowStyles = css({
|
|
8
8
|
'&:focus': {
|
package/dist/es2019/version.json
CHANGED