@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 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}._179rmc7d{border-block-end:var(--_1748cv6)}
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 _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
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 baseStyles = null;
16
- var selectedStyles = null;
17
- var subitemStyles = null;
18
- var bodyRowStyles = null;
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(_focusRing.default, {
34
- isInset: true
35
- }, /*#__PURE__*/React.createElement("tr", {
35
+ return /*#__PURE__*/React.createElement(_compiled.Focusable, {
36
+ as: "tr",
37
+ isInset: true,
36
38
  tabIndex: -1,
37
39
  "aria-selected": isSelected,
38
- "data-testid": testId,
39
- className: (0, _runtime.ax)(["_19itglyw _4t3i1wto _kqswh2mm _hpylidpf _btyzidpf", isBodyRow && "_179rmc7d _x6vyglyw _irr3134o", isSelected && "_bfhkcslv _irr3quvt", isSubitem && "_bfhkm7j4"]),
40
- style: {
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}._179rn7ae{border-block-end:1px solid var(--ds-border,#eee)}
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)}
@@ -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 FocusRing from '@atlaskit/focus-ring';
6
- const baseStyles = null;
7
- const selectedStyles = null;
8
- const subitemStyles = null;
9
- const bodyRowStyles = null;
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(FocusRing, {
25
- isInset: true
26
- }, /*#__PURE__*/React.createElement("tr", {
27
+ return /*#__PURE__*/React.createElement(Focusable, {
28
+ as: "tr",
29
+ isInset: true,
27
30
  tabIndex: -1,
28
31
  "aria-selected": isSelected,
29
- "data-testid": testId,
30
- className: ax(["_19itglyw _4t3i1wto _kqswh2mm _hpylidpf _btyzidpf", isBodyRow && "_179rn7ae _x6vyglyw _irr3134o", isSelected && "_bfhkcslv _irr3quvt", isSubitem && "_bfhkm7j4"])
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}._179rmc7d{border-block-end:var(--_1748cv6)}
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 FocusRing from '@atlaskit/focus-ring';
6
- var baseStyles = null;
7
- var selectedStyles = null;
8
- var subitemStyles = null;
9
- var bodyRowStyles = null;
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(FocusRing, {
25
- isInset: true
26
- }, /*#__PURE__*/React.createElement("tr", {
27
+ return /*#__PURE__*/React.createElement(Focusable, {
28
+ as: "tr",
29
+ isInset: true,
27
30
  tabIndex: -1,
28
31
  "aria-selected": isSelected,
29
- "data-testid": testId,
30
- className: ax(["_19itglyw _4t3i1wto _kqswh2mm _hpylidpf _btyzidpf", isBodyRow && "_179rmc7d _x6vyglyw _irr3134o", isSelected && "_bfhkcslv _irr3quvt", isSubitem && "_bfhkm7j4"]),
31
- style: {
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.2",
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.0.0",
50
- "@atlaskit/primitives": "^14.8.0",
51
- "@atlaskit/tokens": "^5.2.0",
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",