@atlaskit/table 0.12.1 → 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,21 @@
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
+
13
+ ## 0.12.2
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 0.12.1
4
20
 
5
21
  ### Patch Changes
@@ -9,8 +9,8 @@ exports.default = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _new = require("@atlaskit/button/new");
12
- var _chevronDownHipchatChevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down--hipchat-chevron-down"));
13
- var _chevronUpHipchatChevronUp = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-up--hipchat-chevron-up"));
12
+ var _chevronDownHipchatChevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down--hipchat-chevron-down"));
13
+ var _chevronUpHipchatChevronUp = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-up--hipchat-chevron-up"));
14
14
  var _useExpand2 = _interopRequireDefault(require("./hooks/use-expand"));
15
15
  var _expandableCell = require("./ui/expandable-cell");
16
16
  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); }
@@ -35,7 +35,8 @@ var ExpandableCell = /*#__PURE__*/(0, _react.memo)(function () {
35
35
  appearance: "subtle",
36
36
  icon: function icon(iconProps) {
37
37
  return /*#__PURE__*/_react.default.createElement(Icon, (0, _extends2.default)({}, iconProps, {
38
- LEGACY_size: "small"
38
+ LEGACY_size: "small",
39
+ size: "small"
39
40
  }));
40
41
  },
41
42
  label: "Expand row",
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.ExpandIcon = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
- var _chevronDownHipchatChevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down--hipchat-chevron-down"));
11
- var _chevronUpHipchatChevronUp = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-up--hipchat-chevron-up"));
10
+ var _chevronDownHipchatChevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down--hipchat-chevron-down"));
11
+ var _chevronUpHipchatChevronUp = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-up--hipchat-chevron-up"));
12
12
  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); }
13
13
  // TODO: Using HipChat icons as the standard icon set is missing large
14
14
  // versions of `chevron-up` and `chevron-down`, despite already including
@@ -27,14 +27,16 @@ var ExpandIcon = exports.ExpandIcon = /*#__PURE__*/(0, _react.memo)(function (_r
27
27
  color: "currentColor",
28
28
  LEGACY_size: "small",
29
29
  label: "",
30
- LEGACY_primaryColor: "inherit"
30
+ LEGACY_primaryColor: "inherit",
31
+ size: "small"
31
32
  });
32
33
  case false:
33
34
  return /*#__PURE__*/_react.default.createElement(_chevronDownHipchatChevronDown.default, {
34
35
  color: "currentColor",
35
36
  LEGACY_size: "small",
36
37
  label: "",
37
- LEGACY_primaryColor: "inherit"
38
+ LEGACY_primaryColor: "inherit",
39
+ size: "small"
38
40
  });
39
41
  }
40
42
  });
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.SortIcon = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
- var _arrowDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/arrow-down"));
11
- var _arrowUp = _interopRequireDefault(require("@atlaskit/icon/utility/migration/arrow-up"));
10
+ var _arrowDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/arrow-down"));
11
+ var _arrowUp = _interopRequireDefault(require("@atlaskit/icon/core/migration/arrow-up"));
12
12
  var _useTable2 = require("../hooks/use-table");
13
13
  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); }
14
14
  /**
@@ -28,14 +28,16 @@ var SortIcon = exports.SortIcon = /*#__PURE__*/(0, _react.memo)(function (_ref)
28
28
  color: "currentColor",
29
29
  LEGACY_size: "small",
30
30
  label: "",
31
- LEGACY_primaryColor: "inherit"
31
+ LEGACY_primaryColor: "inherit",
32
+ size: "small"
32
33
  });
33
34
  case 'descending':
34
35
  return /*#__PURE__*/_react.default.createElement(_arrowDown.default, {
35
36
  color: "currentColor",
36
37
  LEGACY_size: "small",
37
38
  label: "",
38
- LEGACY_primaryColor: "inherit"
39
+ LEGACY_primaryColor: "inherit",
40
+ size: "small"
39
41
  });
40
42
  }
41
43
  }
@@ -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,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { memo, useCallback } from 'react';
3
3
  import { IconButton } from '@atlaskit/button/new';
4
- import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down--hipchat-chevron-down';
5
- import ChevronUpIcon from '@atlaskit/icon/utility/migration/chevron-up--hipchat-chevron-up';
4
+ import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down--hipchat-chevron-down';
5
+ import ChevronUpIcon from '@atlaskit/icon/core/migration/chevron-up--hipchat-chevron-up';
6
6
  import useExpand from './hooks/use-expand';
7
7
  import { ExpandableCell as ExpandableCellPrimitive } from './ui/expandable-cell';
8
8
 
@@ -27,7 +27,8 @@ const ExpandableCell = /*#__PURE__*/memo(() => {
27
27
  spacing: "compact",
28
28
  appearance: "subtle",
29
29
  icon: iconProps => /*#__PURE__*/React.createElement(Icon, _extends({}, iconProps, {
30
- LEGACY_size: "small"
30
+ LEGACY_size: "small",
31
+ size: "small"
31
32
  })),
32
33
  label: "Expand row",
33
34
  onClick: handleClick,
@@ -3,8 +3,8 @@ import React, { memo } from 'react';
3
3
  // TODO: Using HipChat icons as the standard icon set is missing large
4
4
  // versions of `chevron-up` and `chevron-down`, despite already including
5
5
  // `chevron-left-large` and `chevron-right-large`...
6
- import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down--hipchat-chevron-down';
7
- import ChevronUpIcon from '@atlaskit/icon/utility/migration/chevron-up--hipchat-chevron-up';
6
+ import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down--hipchat-chevron-down';
7
+ import ChevronUpIcon from '@atlaskit/icon/core/migration/chevron-up--hipchat-chevron-up';
8
8
 
9
9
  /**
10
10
  * __Expand icon__
@@ -20,14 +20,16 @@ export const ExpandIcon = /*#__PURE__*/memo(({
20
20
  color: "currentColor",
21
21
  LEGACY_size: "small",
22
22
  label: "",
23
- LEGACY_primaryColor: "inherit"
23
+ LEGACY_primaryColor: "inherit",
24
+ size: "small"
24
25
  });
25
26
  case false:
26
27
  return /*#__PURE__*/React.createElement(ChevronDownIcon, {
27
28
  color: "currentColor",
28
29
  LEGACY_size: "small",
29
30
  label: "",
30
- LEGACY_primaryColor: "inherit"
31
+ LEGACY_primaryColor: "inherit",
32
+ size: "small"
31
33
  });
32
34
  }
33
35
  });
@@ -1,6 +1,6 @@
1
1
  import React, { memo } from 'react';
2
- import ArrowDownIcon from '@atlaskit/icon/utility/migration/arrow-down';
3
- import ArrowUpIcon from '@atlaskit/icon/utility/migration/arrow-up';
2
+ import ArrowDownIcon from '@atlaskit/icon/core/migration/arrow-down';
3
+ import ArrowUpIcon from '@atlaskit/icon/core/migration/arrow-up';
4
4
  import { useTable } from '../hooks/use-table';
5
5
 
6
6
  /**
@@ -22,14 +22,16 @@ export const SortIcon = /*#__PURE__*/memo(({
22
22
  color: "currentColor",
23
23
  LEGACY_size: "small",
24
24
  label: "",
25
- LEGACY_primaryColor: "inherit"
25
+ LEGACY_primaryColor: "inherit",
26
+ size: "small"
26
27
  });
27
28
  case 'descending':
28
29
  return /*#__PURE__*/React.createElement(ArrowDownIcon, {
29
30
  color: "currentColor",
30
31
  LEGACY_size: "small",
31
32
  label: "",
32
- LEGACY_primaryColor: "inherit"
33
+ LEGACY_primaryColor: "inherit",
34
+ size: "small"
33
35
  });
34
36
  }
35
37
  }
@@ -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,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { memo, useCallback } from 'react';
3
3
  import { IconButton } from '@atlaskit/button/new';
4
- import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down--hipchat-chevron-down';
5
- import ChevronUpIcon from '@atlaskit/icon/utility/migration/chevron-up--hipchat-chevron-up';
4
+ import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down--hipchat-chevron-down';
5
+ import ChevronUpIcon from '@atlaskit/icon/core/migration/chevron-up--hipchat-chevron-up';
6
6
  import useExpand from './hooks/use-expand';
7
7
  import { ExpandableCell as ExpandableCellPrimitive } from './ui/expandable-cell';
8
8
 
@@ -27,7 +27,8 @@ var ExpandableCell = /*#__PURE__*/memo(function () {
27
27
  appearance: "subtle",
28
28
  icon: function icon(iconProps) {
29
29
  return /*#__PURE__*/React.createElement(Icon, _extends({}, iconProps, {
30
- LEGACY_size: "small"
30
+ LEGACY_size: "small",
31
+ size: "small"
31
32
  }));
32
33
  },
33
34
  label: "Expand row",
@@ -3,8 +3,8 @@ import React, { memo } from 'react';
3
3
  // TODO: Using HipChat icons as the standard icon set is missing large
4
4
  // versions of `chevron-up` and `chevron-down`, despite already including
5
5
  // `chevron-left-large` and `chevron-right-large`...
6
- import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down--hipchat-chevron-down';
7
- import ChevronUpIcon from '@atlaskit/icon/utility/migration/chevron-up--hipchat-chevron-up';
6
+ import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down--hipchat-chevron-down';
7
+ import ChevronUpIcon from '@atlaskit/icon/core/migration/chevron-up--hipchat-chevron-up';
8
8
 
9
9
  /**
10
10
  * __Expand icon__
@@ -19,14 +19,16 @@ export var ExpandIcon = /*#__PURE__*/memo(function (_ref) {
19
19
  color: "currentColor",
20
20
  LEGACY_size: "small",
21
21
  label: "",
22
- LEGACY_primaryColor: "inherit"
22
+ LEGACY_primaryColor: "inherit",
23
+ size: "small"
23
24
  });
24
25
  case false:
25
26
  return /*#__PURE__*/React.createElement(ChevronDownIcon, {
26
27
  color: "currentColor",
27
28
  LEGACY_size: "small",
28
29
  label: "",
29
- LEGACY_primaryColor: "inherit"
30
+ LEGACY_primaryColor: "inherit",
31
+ size: "small"
30
32
  });
31
33
  }
32
34
  });
@@ -1,6 +1,6 @@
1
1
  import React, { memo } from 'react';
2
- import ArrowDownIcon from '@atlaskit/icon/utility/migration/arrow-down';
3
- import ArrowUpIcon from '@atlaskit/icon/utility/migration/arrow-up';
2
+ import ArrowDownIcon from '@atlaskit/icon/core/migration/arrow-down';
3
+ import ArrowUpIcon from '@atlaskit/icon/core/migration/arrow-up';
4
4
  import { useTable } from '../hooks/use-table';
5
5
 
6
6
  /**
@@ -20,14 +20,16 @@ export var SortIcon = /*#__PURE__*/memo(function (_ref) {
20
20
  color: "currentColor",
21
21
  LEGACY_size: "small",
22
22
  label: "",
23
- LEGACY_primaryColor: "inherit"
23
+ LEGACY_primaryColor: "inherit",
24
+ size: "small"
24
25
  });
25
26
  case 'descending':
26
27
  return /*#__PURE__*/React.createElement(ArrowDownIcon, {
27
28
  color: "currentColor",
28
29
  LEGACY_size: "small",
29
30
  label: "",
30
- LEGACY_primaryColor: "inherit"
31
+ LEGACY_primaryColor: "inherit",
32
+ size: "small"
31
33
  });
32
34
  }
33
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.1",
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,12 +43,13 @@
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": "^26.4.0",
50
- "@atlaskit/primitives": "^14.8.0",
51
- "@atlaskit/tokens": "^5.0.0",
52
- "@atlaskit/tooltip": "^20.2.0",
49
+ "@atlaskit/icon": "^27.3.0",
50
+ "@atlaskit/primitives": "^14.10.0",
51
+ "@atlaskit/tokens": "^5.4.0",
52
+ "@atlaskit/tooltip": "^20.3.0",
53
53
  "@atlaskit/visually-hidden": "^3.0.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@compiled/react": "^0.18.3",
@@ -63,9 +63,9 @@
63
63
  "@af/integration-testing": "workspace:^",
64
64
  "@atlaskit/avatar": "^25.1.0",
65
65
  "@atlaskit/date": "^2.0.0",
66
- "@atlaskit/docs": "^10.0.0",
67
- "@atlaskit/dynamic-table": "^18.1.0",
68
- "@atlaskit/lozenge": "^12.2.0",
66
+ "@atlaskit/docs": "^11.0.0",
67
+ "@atlaskit/dynamic-table": "^18.2.0",
68
+ "@atlaskit/lozenge": "^13.0.0",
69
69
  "@atlaskit/section-message": "^8.2.0",
70
70
  "@atlaskit/visual-regression": "workspace:^",
71
71
  "@atlassian/ssr-tests": "^0.2.0",