@atlaskit/table 0.12.2 → 0.12.3
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 +10 -0
- package/dist/cjs/ui/tr.compiled.css +3 -2
- package/dist/cjs/ui/tr.js +14 -15
- package/dist/es2019/ui/tr.compiled.css +3 -2
- package/dist/es2019/ui/tr.js +14 -11
- package/dist/esm/ui/tr.compiled.css +3 -2
- package/dist/esm/ui/tr.js +14 -14
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/table
|
|
2
2
|
|
|
3
|
+
## 0.12.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#182316](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/182316)
|
|
8
|
+
[`3e3e11916be69`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3e3e11916be69) -
|
|
9
|
+
Migrated the internal usage of @atlaskit/focus-ring which uses Emotion for styling, to the new
|
|
10
|
+
version built with Compiled CSS-in-JS.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 0.12.2
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
._19itglyw{border:none}.
|
|
2
|
+
._19itglyw{border:none}._12ornqa1{border-block-end-style:solid}
|
|
3
|
+
._1ezz1tr0{border-block-end-color:var(--ds-border,#eee)}
|
|
4
|
+
._1r62e4h9{border-block-end-width:var(--ds-border-width,1px)}
|
|
3
5
|
._4t3i1wto{height:3rem}
|
|
4
6
|
._bfhkcslv{background-color:var(--ds-background-selected,#deebff88)}
|
|
5
7
|
._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
|
|
6
8
|
._btyzidpf{border-spacing:0}
|
|
7
9
|
._hpylidpf{border-image-width:0}
|
|
8
10
|
._kqswh2mm{position:relative}
|
|
9
|
-
._x6vyglyw:focus-visible:after{box-shadow:none}
|
|
10
11
|
._irr3134o:hover{background-color:var(--ds-background-neutral-subtle-hovered,#f8f8f8)}
|
|
11
12
|
._irr3quvt:hover{background-color:var(--ds-background-selected-hovered,#deebff)}
|
package/dist/cjs/ui/tr.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* tr.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
@@ -10,12 +9,15 @@ exports.TR = void 0;
|
|
|
10
9
|
require("./tr.compiled.css");
|
|
11
10
|
var React = _interopRequireWildcard(require("react"));
|
|
12
11
|
var _runtime = require("@compiled/react/runtime");
|
|
13
|
-
var
|
|
12
|
+
var _css = require("@atlaskit/css");
|
|
13
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
14
14
|
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); }
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
var styles = {
|
|
16
|
+
base: "_19itglyw _4t3i1wto _kqswh2mm _hpylidpf _btyzidpf",
|
|
17
|
+
selected: "_bfhkcslv _irr3quvt",
|
|
18
|
+
subitem: "_bfhkm7j4",
|
|
19
|
+
bodyRow: "_1r62e4h9 _12ornqa1 _1ezz1tr0 _irr3134o"
|
|
20
|
+
};
|
|
19
21
|
/**
|
|
20
22
|
* __Row__
|
|
21
23
|
*
|
|
@@ -30,15 +32,12 @@ var TR = exports.TR = function TR(_ref) {
|
|
|
30
32
|
_ref$isBodyRow = _ref.isBodyRow,
|
|
31
33
|
isBodyRow = _ref$isBodyRow === void 0 ? true : _ref$isBodyRow,
|
|
32
34
|
isSubitem = _ref.isSubitem;
|
|
33
|
-
return /*#__PURE__*/React.createElement(
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
return /*#__PURE__*/React.createElement(_compiled.Focusable, {
|
|
36
|
+
as: "tr",
|
|
37
|
+
isInset: true,
|
|
36
38
|
tabIndex: -1,
|
|
37
39
|
"aria-selected": isSelected,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"--_1748cv6": (0, _runtime.ix)("1px solid ".concat("var(--ds-border, #eee)"))
|
|
42
|
-
}
|
|
43
|
-
}, children));
|
|
40
|
+
testId: testId,
|
|
41
|
+
xcss: (0, _css.cx)(styles.base, isBodyRow && styles.bodyRow, isSelected && styles.selected, isSubitem && styles.subitem)
|
|
42
|
+
}, children);
|
|
44
43
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
._19itglyw{border:none}.
|
|
2
|
+
._19itglyw{border:none}._12ornqa1{border-block-end-style:solid}
|
|
3
|
+
._1ezz1tr0{border-block-end-color:var(--ds-border,#eee)}
|
|
4
|
+
._1r62e4h9{border-block-end-width:var(--ds-border-width,1px)}
|
|
3
5
|
._4t3i1wto{height:3rem}
|
|
4
6
|
._bfhkcslv{background-color:var(--ds-background-selected,#deebff88)}
|
|
5
7
|
._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
|
|
6
8
|
._btyzidpf{border-spacing:0}
|
|
7
9
|
._hpylidpf{border-image-width:0}
|
|
8
10
|
._kqswh2mm{position:relative}
|
|
9
|
-
._x6vyglyw:focus-visible:after{box-shadow:none}
|
|
10
11
|
._irr3134o:hover{background-color:var(--ds-background-neutral-subtle-hovered,#f8f8f8)}
|
|
11
12
|
._irr3quvt:hover{background-color:var(--ds-background-selected-hovered,#deebff)}
|
package/dist/es2019/ui/tr.js
CHANGED
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
import "./tr.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
import { cx } from '@atlaskit/css';
|
|
6
|
+
import { Focusable } from '@atlaskit/primitives/compiled';
|
|
7
|
+
const styles = {
|
|
8
|
+
base: "_19itglyw _4t3i1wto _kqswh2mm _hpylidpf _btyzidpf",
|
|
9
|
+
selected: "_bfhkcslv _irr3quvt",
|
|
10
|
+
subitem: "_bfhkm7j4",
|
|
11
|
+
bodyRow: "_1r62e4h9 _12ornqa1 _1ezz1tr0 _irr3134o"
|
|
12
|
+
};
|
|
10
13
|
/**
|
|
11
14
|
* __Row__
|
|
12
15
|
*
|
|
@@ -21,12 +24,12 @@ export const TR = ({
|
|
|
21
24
|
isBodyRow = true,
|
|
22
25
|
isSubitem
|
|
23
26
|
}) => {
|
|
24
|
-
return /*#__PURE__*/React.createElement(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
return /*#__PURE__*/React.createElement(Focusable, {
|
|
28
|
+
as: "tr",
|
|
29
|
+
isInset: true,
|
|
27
30
|
tabIndex: -1,
|
|
28
31
|
"aria-selected": isSelected,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}, children)
|
|
32
|
+
testId: testId,
|
|
33
|
+
xcss: cx(styles.base, isBodyRow && styles.bodyRow, isSelected && styles.selected, isSubitem && styles.subitem)
|
|
34
|
+
}, children);
|
|
32
35
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
._19itglyw{border:none}.
|
|
2
|
+
._19itglyw{border:none}._12ornqa1{border-block-end-style:solid}
|
|
3
|
+
._1ezz1tr0{border-block-end-color:var(--ds-border,#eee)}
|
|
4
|
+
._1r62e4h9{border-block-end-width:var(--ds-border-width,1px)}
|
|
3
5
|
._4t3i1wto{height:3rem}
|
|
4
6
|
._bfhkcslv{background-color:var(--ds-background-selected,#deebff88)}
|
|
5
7
|
._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
|
|
6
8
|
._btyzidpf{border-spacing:0}
|
|
7
9
|
._hpylidpf{border-image-width:0}
|
|
8
10
|
._kqswh2mm{position:relative}
|
|
9
|
-
._x6vyglyw:focus-visible:after{box-shadow:none}
|
|
10
11
|
._irr3134o:hover{background-color:var(--ds-background-neutral-subtle-hovered,#f8f8f8)}
|
|
11
12
|
._irr3quvt:hover{background-color:var(--ds-background-selected-hovered,#deebff)}
|
package/dist/esm/ui/tr.js
CHANGED
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
import "./tr.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
import { cx } from '@atlaskit/css';
|
|
6
|
+
import { Focusable } from '@atlaskit/primitives/compiled';
|
|
7
|
+
var styles = {
|
|
8
|
+
base: "_19itglyw _4t3i1wto _kqswh2mm _hpylidpf _btyzidpf",
|
|
9
|
+
selected: "_bfhkcslv _irr3quvt",
|
|
10
|
+
subitem: "_bfhkm7j4",
|
|
11
|
+
bodyRow: "_1r62e4h9 _12ornqa1 _1ezz1tr0 _irr3134o"
|
|
12
|
+
};
|
|
10
13
|
/**
|
|
11
14
|
* __Row__
|
|
12
15
|
*
|
|
@@ -21,15 +24,12 @@ export var TR = function TR(_ref) {
|
|
|
21
24
|
_ref$isBodyRow = _ref.isBodyRow,
|
|
22
25
|
isBodyRow = _ref$isBodyRow === void 0 ? true : _ref$isBodyRow,
|
|
23
26
|
isSubitem = _ref.isSubitem;
|
|
24
|
-
return /*#__PURE__*/React.createElement(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
return /*#__PURE__*/React.createElement(Focusable, {
|
|
28
|
+
as: "tr",
|
|
29
|
+
isInset: true,
|
|
27
30
|
tabIndex: -1,
|
|
28
31
|
"aria-selected": isSelected,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"--_1748cv6": ix("1px solid ".concat("var(--ds-border, #eee)"))
|
|
33
|
-
}
|
|
34
|
-
}, children));
|
|
32
|
+
testId: testId,
|
|
33
|
+
xcss: cx(styles.base, isBodyRow && styles.bodyRow, isSelected && styles.selected, isSubitem && styles.subitem)
|
|
34
|
+
}, children);
|
|
35
35
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "A table is used to display data.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"type": "intent-to-deprecate",
|
|
18
18
|
"description": "This package was an experiment, and is currently deprioritized. It is not recommended for use in production, and we are not providing support for it at this time. Consider using [@atlaskit/dynamic-table](/components/dynamic-table) instead."
|
|
19
19
|
}
|
|
20
|
-
}
|
|
21
|
-
"runReact18": true
|
|
20
|
+
}
|
|
22
21
|
},
|
|
23
22
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
24
23
|
"main": "dist/cjs/index.js",
|
|
@@ -44,11 +43,12 @@
|
|
|
44
43
|
"dependencies": {
|
|
45
44
|
"@atlaskit/button": "^23.2.0",
|
|
46
45
|
"@atlaskit/checkbox": "^17.1.0",
|
|
46
|
+
"@atlaskit/css": "^0.12.0",
|
|
47
47
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
48
48
|
"@atlaskit/focus-ring": "^3.0.0",
|
|
49
|
-
"@atlaskit/icon": "^27.
|
|
50
|
-
"@atlaskit/primitives": "^14.
|
|
51
|
-
"@atlaskit/tokens": "^5.
|
|
49
|
+
"@atlaskit/icon": "^27.3.0",
|
|
50
|
+
"@atlaskit/primitives": "^14.10.0",
|
|
51
|
+
"@atlaskit/tokens": "^5.4.0",
|
|
52
52
|
"@atlaskit/tooltip": "^20.3.0",
|
|
53
53
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|