@atlaskit/table 0.12.19 → 0.12.21
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/expandable-cell.js +3 -3
- package/dist/cjs/ui/expand-icon.js +4 -4
- package/dist/es2019/expandable-cell.js +2 -2
- package/dist/es2019/ui/expand-icon.js +2 -2
- package/dist/esm/expandable-cell.js +2 -2
- package/dist/esm/ui/expand-icon.js +2 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/table
|
|
2
2
|
|
|
3
|
+
## 0.12.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.12.20
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`d14ea5f60b689`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d14ea5f60b689) -
|
|
14
|
+
chore: migrate platform UI & component libraries icon imports from migration paths to core
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 0.12.19
|
|
4
18
|
|
|
5
19
|
### 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
|
|
13
|
-
var
|
|
12
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
13
|
+
var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/core/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); }
|
|
@@ -27,7 +27,7 @@ var ExpandableCell = /*#__PURE__*/(0, _react.memo)(function () {
|
|
|
27
27
|
var handleClick = (0, _react.useCallback)(function () {
|
|
28
28
|
toggleExpanded();
|
|
29
29
|
}, [toggleExpanded]);
|
|
30
|
-
var Icon = isExpanded ?
|
|
30
|
+
var Icon = isExpanded ? _chevronUp.default : _chevronDown.default;
|
|
31
31
|
return /*#__PURE__*/_react.default.createElement(_expandableCell.ExpandableCell, {
|
|
32
32
|
as: "td"
|
|
33
33
|
}, /*#__PURE__*/_react.default.createElement(_new.IconButton, {
|
|
@@ -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
|
|
11
|
-
var
|
|
10
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
11
|
+
var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/core/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
|
|
@@ -23,7 +23,7 @@ var ExpandIcon = exports.ExpandIcon = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
23
23
|
var isExpanded = _ref.isExpanded;
|
|
24
24
|
switch (isExpanded) {
|
|
25
25
|
case true:
|
|
26
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(_chevronUp.default, {
|
|
27
27
|
color: "currentColor",
|
|
28
28
|
LEGACY_size: "small",
|
|
29
29
|
label: "",
|
|
@@ -31,7 +31,7 @@ var ExpandIcon = exports.ExpandIcon = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
31
31
|
size: "small"
|
|
32
32
|
});
|
|
33
33
|
case false:
|
|
34
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement(_chevronDown.default, {
|
|
35
35
|
color: "currentColor",
|
|
36
36
|
LEGACY_size: "small",
|
|
37
37
|
label: "",
|
|
@@ -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/core/
|
|
5
|
-
import ChevronUpIcon from '@atlaskit/icon/core/
|
|
4
|
+
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
5
|
+
import ChevronUpIcon from '@atlaskit/icon/core/chevron-up';
|
|
6
6
|
import useExpand from './hooks/use-expand';
|
|
7
7
|
import { ExpandableCell as ExpandableCellPrimitive } from './ui/expandable-cell';
|
|
8
8
|
|
|
@@ -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/core/
|
|
7
|
-
import ChevronUpIcon from '@atlaskit/icon/core/
|
|
6
|
+
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
7
|
+
import ChevronUpIcon from '@atlaskit/icon/core/chevron-up';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* __Expand icon__
|
|
@@ -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/core/
|
|
5
|
-
import ChevronUpIcon from '@atlaskit/icon/core/
|
|
4
|
+
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
5
|
+
import ChevronUpIcon from '@atlaskit/icon/core/chevron-up';
|
|
6
6
|
import useExpand from './hooks/use-expand';
|
|
7
7
|
import { ExpandableCell as ExpandableCellPrimitive } from './ui/expandable-cell';
|
|
8
8
|
|
|
@@ -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/core/
|
|
7
|
-
import ChevronUpIcon from '@atlaskit/icon/core/
|
|
6
|
+
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
7
|
+
import ChevronUpIcon from '@atlaskit/icon/core/chevron-up';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* __Expand icon__
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.21",
|
|
4
4
|
"description": "A table is used to display data.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
],
|
|
38
38
|
"atlaskit:src": "src/index.tsx",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@atlaskit/button": "^23.
|
|
40
|
+
"@atlaskit/button": "^23.9.0",
|
|
41
41
|
"@atlaskit/checkbox": "^17.2.0",
|
|
42
|
-
"@atlaskit/css": "^0.
|
|
42
|
+
"@atlaskit/css": "^0.19.0",
|
|
43
43
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
44
|
-
"@atlaskit/icon": "^29.
|
|
45
|
-
"@atlaskit/primitives": "^
|
|
46
|
-
"@atlaskit/tokens": "^
|
|
44
|
+
"@atlaskit/icon": "^29.3.0",
|
|
45
|
+
"@atlaskit/primitives": "^17.0.0",
|
|
46
|
+
"@atlaskit/tokens": "^9.0.0",
|
|
47
47
|
"@atlaskit/tooltip": "^20.11.0",
|
|
48
48
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|