@atlaskit/dynamic-table 16.0.0 → 16.1.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/stateless.js +2 -2
- package/dist/cjs/styled/table-head.js +1 -16
- package/dist/es2019/components/stateless.js +2 -2
- package/dist/es2019/styled/table-head.js +1 -16
- package/dist/esm/components/stateless.js +2 -2
- package/dist/esm/styled/table-head.js +1 -16
- package/package.json +2 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/dynamic-table
|
|
2
2
|
|
|
3
|
+
## 16.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 16.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#151641](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151641)
|
|
14
|
+
[`d212954f3fb10`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d212954f3fb10) -
|
|
15
|
+
Updated header styles introduced in v15.1.0 are now default and no longer behind a feature flag.
|
|
16
|
+
|
|
3
17
|
## 16.0.0
|
|
4
18
|
|
|
5
19
|
### Major Changes
|
|
@@ -86,14 +86,14 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
86
86
|
action: 'sorted',
|
|
87
87
|
componentName: 'dynamicTable',
|
|
88
88
|
packageName: "@atlaskit/dynamic-table",
|
|
89
|
-
packageVersion: "16.
|
|
89
|
+
packageVersion: "16.1.1"
|
|
90
90
|
});
|
|
91
91
|
var onRankEnd = (0, _analyticsNext.usePlatformLeafEventHandler)({
|
|
92
92
|
fn: providedOnRankEnd,
|
|
93
93
|
action: 'ranked',
|
|
94
94
|
componentName: 'dynamicTable',
|
|
95
95
|
packageName: "@atlaskit/dynamic-table",
|
|
96
|
-
packageVersion: "16.
|
|
96
|
+
packageVersion: "16.1.1"
|
|
97
97
|
});
|
|
98
98
|
(0, _react.useEffect)(function () {
|
|
99
99
|
(0, _helpers.validateSortKey)(sortKey, head);
|
|
@@ -10,7 +10,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
14
|
var _constants = require("../internal/constants");
|
|
16
15
|
var _theme = require("../theme");
|
|
@@ -43,20 +42,6 @@ var Head = exports.Head = function Head(_ref) {
|
|
|
43
42
|
}, props));
|
|
44
43
|
};
|
|
45
44
|
var headCellBaseStyles = (0, _react2.css)({
|
|
46
|
-
boxSizing: 'border-box',
|
|
47
|
-
position: 'relative',
|
|
48
|
-
border: 'none',
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
50
|
-
borderBlockEnd: "2px solid ".concat(_theme.tableBorder.borderColor),
|
|
51
|
-
color: "var(--ds-text-subtlest, ".concat("var(".concat(CSS_VAR_TEXT_COLOR, ")"), ")"),
|
|
52
|
-
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
53
|
-
textAlign: 'left',
|
|
54
|
-
verticalAlign: 'top',
|
|
55
|
-
'&:focus-visible': {
|
|
56
|
-
outline: "solid 2px ".concat("var(--ds-border-focused, ".concat(_colors.B100, ")"))
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
var headCellBaseStylesModernized = (0, _react2.css)({
|
|
60
45
|
boxSizing: 'border-box',
|
|
61
46
|
position: 'relative',
|
|
62
47
|
border: 'none',
|
|
@@ -197,7 +182,7 @@ var HeadCell = exports.HeadCell = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
|
197
182
|
style: mergedStyles,
|
|
198
183
|
css: [
|
|
199
184
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
200
|
-
_constants2.cellStyles,
|
|
185
|
+
_constants2.cellStyles, headCellBaseStyles, onClick && onClickStyles,
|
|
201
186
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
202
187
|
_constants2.truncationWidthStyles,
|
|
203
188
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -60,14 +60,14 @@ const DynamicTable = ({
|
|
|
60
60
|
action: 'sorted',
|
|
61
61
|
componentName: 'dynamicTable',
|
|
62
62
|
packageName: "@atlaskit/dynamic-table",
|
|
63
|
-
packageVersion: "16.
|
|
63
|
+
packageVersion: "16.1.1"
|
|
64
64
|
});
|
|
65
65
|
const onRankEnd = usePlatformLeafEventHandler({
|
|
66
66
|
fn: providedOnRankEnd,
|
|
67
67
|
action: 'ranked',
|
|
68
68
|
componentName: 'dynamicTable',
|
|
69
69
|
packageName: "@atlaskit/dynamic-table",
|
|
70
|
-
packageVersion: "16.
|
|
70
|
+
packageVersion: "16.1.1"
|
|
71
71
|
});
|
|
72
72
|
useEffect(() => {
|
|
73
73
|
validateSortKey(sortKey, head);
|
|
@@ -8,7 +8,6 @@ import { forwardRef } from 'react';
|
|
|
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';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { B100, N30A } from '@atlaskit/theme/colors';
|
|
13
12
|
import { ASC, DESC } from '../internal/constants';
|
|
14
13
|
import { arrow, head, MSThemeColors, tableBorder } from '../theme';
|
|
@@ -32,20 +31,6 @@ export const Head = ({
|
|
|
32
31
|
}, props));
|
|
33
32
|
};
|
|
34
33
|
const headCellBaseStyles = css({
|
|
35
|
-
boxSizing: 'border-box',
|
|
36
|
-
position: 'relative',
|
|
37
|
-
border: 'none',
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
|
-
borderBlockEnd: `2px solid ${tableBorder.borderColor}`,
|
|
40
|
-
color: `var(--ds-text-subtlest, ${`var(${CSS_VAR_TEXT_COLOR})`})`,
|
|
41
|
-
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
42
|
-
textAlign: 'left',
|
|
43
|
-
verticalAlign: 'top',
|
|
44
|
-
'&:focus-visible': {
|
|
45
|
-
outline: `solid 2px ${`var(--ds-border-focused, ${B100})`}`
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
const headCellBaseStylesModernized = css({
|
|
49
34
|
boxSizing: 'border-box',
|
|
50
35
|
position: 'relative',
|
|
51
36
|
border: 'none',
|
|
@@ -191,7 +176,7 @@ export const HeadCell = /*#__PURE__*/forwardRef(({
|
|
|
191
176
|
style: mergedStyles,
|
|
192
177
|
css: [
|
|
193
178
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
194
|
-
cellStyles,
|
|
179
|
+
cellStyles, headCellBaseStyles, onClick && onClickStyles,
|
|
195
180
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
196
181
|
truncationWidthStyles,
|
|
197
182
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -76,14 +76,14 @@ var DynamicTable = function DynamicTable(_ref) {
|
|
|
76
76
|
action: 'sorted',
|
|
77
77
|
componentName: 'dynamicTable',
|
|
78
78
|
packageName: "@atlaskit/dynamic-table",
|
|
79
|
-
packageVersion: "16.
|
|
79
|
+
packageVersion: "16.1.1"
|
|
80
80
|
});
|
|
81
81
|
var onRankEnd = usePlatformLeafEventHandler({
|
|
82
82
|
fn: providedOnRankEnd,
|
|
83
83
|
action: 'ranked',
|
|
84
84
|
componentName: 'dynamicTable',
|
|
85
85
|
packageName: "@atlaskit/dynamic-table",
|
|
86
|
-
packageVersion: "16.
|
|
86
|
+
packageVersion: "16.1.1"
|
|
87
87
|
});
|
|
88
88
|
useEffect(function () {
|
|
89
89
|
validateSortKey(sortKey, head);
|
|
@@ -14,7 +14,6 @@ import { forwardRef } from 'react';
|
|
|
14
14
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
import { css, jsx } from '@emotion/react';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
17
|
import { B100, N30A } from '@atlaskit/theme/colors';
|
|
19
18
|
import { ASC, DESC } from '../internal/constants';
|
|
20
19
|
import { arrow, head, MSThemeColors, tableBorder } from '../theme';
|
|
@@ -37,20 +36,6 @@ export var Head = function Head(_ref) {
|
|
|
37
36
|
}, props));
|
|
38
37
|
};
|
|
39
38
|
var headCellBaseStyles = css({
|
|
40
|
-
boxSizing: 'border-box',
|
|
41
|
-
position: 'relative',
|
|
42
|
-
border: 'none',
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
44
|
-
borderBlockEnd: "2px solid ".concat(tableBorder.borderColor),
|
|
45
|
-
color: "var(--ds-text-subtlest, ".concat("var(".concat(CSS_VAR_TEXT_COLOR, ")"), ")"),
|
|
46
|
-
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
47
|
-
textAlign: 'left',
|
|
48
|
-
verticalAlign: 'top',
|
|
49
|
-
'&:focus-visible': {
|
|
50
|
-
outline: "solid 2px ".concat("var(--ds-border-focused, ".concat(B100, ")"))
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
var headCellBaseStylesModernized = css({
|
|
54
39
|
boxSizing: 'border-box',
|
|
55
40
|
position: 'relative',
|
|
56
41
|
border: 'none',
|
|
@@ -191,7 +176,7 @@ export var HeadCell = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
191
176
|
style: mergedStyles,
|
|
192
177
|
css: [
|
|
193
178
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
194
|
-
cellStyles,
|
|
179
|
+
cellStyles, headCellBaseStyles, onClick && onClickStyles,
|
|
195
180
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
196
181
|
truncationWidthStyles,
|
|
197
182
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dynamic-table",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.1.1",
|
|
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/"
|
|
@@ -40,10 +40,9 @@
|
|
|
40
40
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
41
41
|
"@atlaskit/ds-lib": "^3.1.0",
|
|
42
42
|
"@atlaskit/pagination": "^14.9.0",
|
|
43
|
-
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
44
43
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration": "^1.2.1",
|
|
45
44
|
"@atlaskit/spinner": "^16.3.0",
|
|
46
|
-
"@atlaskit/theme": "^
|
|
45
|
+
"@atlaskit/theme": "^14.0.0",
|
|
47
46
|
"@atlaskit/tokens": "^2.0.0",
|
|
48
47
|
"@babel/runtime": "^7.0.0",
|
|
49
48
|
"@emotion/react": "^11.7.1",
|
|
@@ -83,10 +82,5 @@
|
|
|
83
82
|
"emotion"
|
|
84
83
|
]
|
|
85
84
|
}
|
|
86
|
-
},
|
|
87
|
-
"platform-feature-flags": {
|
|
88
|
-
"design_system_team_dynamic_table_typography": {
|
|
89
|
-
"type": "boolean"
|
|
90
|
-
}
|
|
91
85
|
}
|
|
92
86
|
}
|