@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 +16 -0
- package/dist/cjs/expandable-cell.js +4 -3
- package/dist/cjs/ui/expand-icon.js +6 -4
- package/dist/cjs/ui/sort-icon.js +6 -4
- package/dist/cjs/ui/tr.compiled.css +3 -2
- package/dist/cjs/ui/tr.js +14 -15
- package/dist/es2019/expandable-cell.js +4 -3
- package/dist/es2019/ui/expand-icon.js +6 -4
- package/dist/es2019/ui/sort-icon.js +6 -4
- package/dist/es2019/ui/tr.compiled.css +3 -2
- package/dist/es2019/ui/tr.js +14 -11
- package/dist/esm/expandable-cell.js +4 -3
- package/dist/esm/ui/expand-icon.js +6 -4
- package/dist/esm/ui/sort-icon.js +6 -4
- package/dist/esm/ui/tr.compiled.css +3 -2
- package/dist/esm/ui/tr.js +14 -14
- package/package.json +10 -10
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/
|
|
13
|
-
var _chevronUpHipchatChevronUp = _interopRequireDefault(require("@atlaskit/icon/
|
|
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/
|
|
11
|
-
var _chevronUpHipchatChevronUp = _interopRequireDefault(require("@atlaskit/icon/
|
|
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
|
});
|
package/dist/cjs/ui/sort-icon.js
CHANGED
|
@@ -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/
|
|
11
|
-
var _arrowUp = _interopRequireDefault(require("@atlaskit/icon/
|
|
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}.
|
|
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,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/
|
|
5
|
-
import ChevronUpIcon from '@atlaskit/icon/
|
|
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/
|
|
7
|
-
import ChevronUpIcon from '@atlaskit/icon/
|
|
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/
|
|
3
|
-
import ArrowUpIcon from '@atlaskit/icon/
|
|
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}.
|
|
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,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/
|
|
5
|
-
import ChevronUpIcon from '@atlaskit/icon/
|
|
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/
|
|
7
|
-
import ChevronUpIcon from '@atlaskit/icon/
|
|
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
|
});
|
package/dist/esm/ui/sort-icon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
-
import ArrowDownIcon from '@atlaskit/icon/
|
|
3
|
-
import ArrowUpIcon from '@atlaskit/icon/
|
|
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}.
|
|
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,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": "^
|
|
50
|
-
"@atlaskit/primitives": "^14.
|
|
51
|
-
"@atlaskit/tokens": "^5.
|
|
52
|
-
"@atlaskit/tooltip": "^20.
|
|
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": "^
|
|
67
|
-
"@atlaskit/dynamic-table": "^18.
|
|
68
|
-
"@atlaskit/lozenge": "^
|
|
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",
|