@atlaskit/table 0.14.1 → 0.14.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 +12 -0
- package/dist/cjs/head-cell.js +2 -2
- package/dist/cjs/sortable-column.js +1 -1
- package/dist/cjs/ui/tbody.js +1 -1
- package/dist/cjs/ui/thead.js +1 -1
- package/dist/cjs/ui/tr.js +1 -1
- package/dist/es2019/head-cell.js +1 -1
- package/dist/es2019/sortable-column.js +1 -1
- package/dist/es2019/ui/tbody.js +1 -1
- package/dist/es2019/ui/thead.js +1 -1
- package/dist/es2019/ui/tr.js +1 -1
- package/dist/esm/head-cell.js +1 -1
- package/dist/esm/sortable-column.js +1 -1
- package/dist/esm/ui/tbody.js +1 -1
- package/dist/esm/ui/thead.js +1 -1
- package/dist/esm/ui/tr.js +1 -1
- package/dist/types/hooks/selection-provider.d.ts +2 -1
- package/dist/types/hooks/use-row-id.d.ts +1 -1
- package/dist/types/hooks/use-sorting.d.ts +1 -1
- package/dist/types/hooks/use-table-body.d.ts +1 -1
- package/dist/types-ts4.5/hooks/selection-provider.d.ts +2 -1
- package/dist/types-ts4.5/hooks/use-row-id.d.ts +1 -1
- package/dist/types-ts4.5/hooks/use-sorting.d.ts +1 -1
- package/dist/types-ts4.5/hooks/use-table-body.d.ts +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
package/dist/cjs/head-cell.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
10
10
|
var _th = require("./ui/th");
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
12
12
|
|
|
@@ -27,7 +27,7 @@ var HeadCell = function HeadCell(_ref) {
|
|
|
27
27
|
align: align,
|
|
28
28
|
testId: testId,
|
|
29
29
|
backgroundColor: backgroundColor
|
|
30
|
-
}, children && /*#__PURE__*/_react.default.createElement(
|
|
30
|
+
}, children && /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
31
31
|
weight: "medium"
|
|
32
32
|
}, children));
|
|
33
33
|
};
|
package/dist/cjs/ui/tbody.js
CHANGED
package/dist/cjs/ui/thead.js
CHANGED
package/dist/cjs/ui/tr.js
CHANGED
package/dist/es2019/head-cell.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
4
|
-
import { Text } from '@atlaskit/primitives';
|
|
4
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
5
5
|
import { TH } from './ui/th';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* sortable-column.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* sortable-column.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./sortable-column.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
package/dist/es2019/ui/tbody.js
CHANGED
package/dist/es2019/ui/thead.js
CHANGED
package/dist/es2019/ui/tr.js
CHANGED
package/dist/esm/head-cell.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
4
|
-
import { Text } from '@atlaskit/primitives';
|
|
4
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
5
5
|
import { TH } from './ui/th';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* sortable-column.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* sortable-column.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["name", "testId", "onClick", "children"];
|
package/dist/esm/ui/tbody.js
CHANGED
package/dist/esm/ui/thead.js
CHANGED
package/dist/esm/ui/tr.js
CHANGED
|
@@ -2,10 +2,11 @@ import React, { type FC, type ReactNode } from 'react';
|
|
|
2
2
|
import { type SelectableActions, type SelectableState } from './use-selectable';
|
|
3
3
|
type SelectionContext = [
|
|
4
4
|
SelectableState,
|
|
5
|
+
(
|
|
5
6
|
/**
|
|
6
7
|
* Context actions will be undefined without a `SelectionProvider` mounted.
|
|
7
8
|
*/
|
|
8
|
-
SelectableActions | Partial<SelectableActions>
|
|
9
|
+
SelectableActions | Partial<SelectableActions>)
|
|
9
10
|
];
|
|
10
11
|
declare const SelectionContext: React.Context<SelectionContext>;
|
|
11
12
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SortDirection, type SortKey } from './use-table';
|
|
2
2
|
export declare const useSorting: <ItemType extends object>(sortKey: SortKey<keyof ItemType>) => {
|
|
3
|
-
sortKey:
|
|
3
|
+
sortKey: 'unset' | keyof ItemType;
|
|
4
4
|
sortDirection: SortDirection | undefined;
|
|
5
5
|
setSortState: (key: SortKey<keyof ItemType>) => void;
|
|
6
6
|
sortFn: (rowA: ItemType, rowB: ItemType) => number;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* __Table body provider__
|
|
3
3
|
* Ensures correct nesting of table elements.
|
|
4
4
|
*/
|
|
5
|
-
export declare const TableBodyProvider: import(
|
|
5
|
+
export declare const TableBodyProvider: import('react').Provider<boolean>;
|
|
6
6
|
export declare const useTableBody: () => void;
|
|
@@ -2,10 +2,11 @@ import React, { type FC, type ReactNode } from 'react';
|
|
|
2
2
|
import { type SelectableActions, type SelectableState } from './use-selectable';
|
|
3
3
|
type SelectionContext = [
|
|
4
4
|
SelectableState,
|
|
5
|
+
(
|
|
5
6
|
/**
|
|
6
7
|
* Context actions will be undefined without a `SelectionProvider` mounted.
|
|
7
8
|
*/
|
|
8
|
-
SelectableActions | Partial<SelectableActions>
|
|
9
|
+
SelectableActions | Partial<SelectableActions>)
|
|
9
10
|
];
|
|
10
11
|
declare const SelectionContext: React.Context<SelectionContext>;
|
|
11
12
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SortDirection, type SortKey } from './use-table';
|
|
2
2
|
export declare const useSorting: <ItemType extends object>(sortKey: SortKey<keyof ItemType>) => {
|
|
3
|
-
sortKey:
|
|
3
|
+
sortKey: 'unset' | keyof ItemType;
|
|
4
4
|
sortDirection: SortDirection | undefined;
|
|
5
5
|
setSortState: (key: SortKey<keyof ItemType>) => void;
|
|
6
6
|
sortFn: (rowA: ItemType, rowB: ItemType) => number;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* __Table body provider__
|
|
3
3
|
* Ensures correct nesting of table elements.
|
|
4
4
|
*/
|
|
5
|
-
export declare const TableBodyProvider: import(
|
|
5
|
+
export declare const TableBodyProvider: import('react').Provider<boolean>;
|
|
6
6
|
export declare const useTableBody: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.3",
|
|
4
4
|
"description": "A table is used to display data.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
],
|
|
38
38
|
"atlaskit:src": "src/index.tsx",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@atlaskit/button": "^23.
|
|
40
|
+
"@atlaskit/button": "^23.10.0",
|
|
41
41
|
"@atlaskit/checkbox": "^17.3.0",
|
|
42
42
|
"@atlaskit/css": "^0.19.0",
|
|
43
|
-
"@atlaskit/ds-lib": "^
|
|
44
|
-
"@atlaskit/icon": "^
|
|
43
|
+
"@atlaskit/ds-lib": "^6.0.0",
|
|
44
|
+
"@atlaskit/icon": "^32.0.0",
|
|
45
45
|
"@atlaskit/primitives": "^18.0.0",
|
|
46
|
-
"@atlaskit/tokens": "^11.
|
|
46
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
47
47
|
"@atlaskit/tooltip": "^20.14.0",
|
|
48
48
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
|
-
"@compiled/react": "^0.
|
|
50
|
+
"@compiled/react": "^0.20.0",
|
|
51
51
|
"tiny-invariant": "^1.2.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@af/accessibility-testing": "workspace:^",
|
|
58
58
|
"@af/integration-testing": "workspace:^",
|
|
59
|
-
"@atlaskit/avatar": "^25.
|
|
59
|
+
"@atlaskit/avatar": "^25.8.0",
|
|
60
60
|
"@atlaskit/date": "^2.0.0",
|
|
61
|
-
"@atlaskit/docs": "^11.
|
|
61
|
+
"@atlaskit/docs": "^11.6.0",
|
|
62
62
|
"@atlaskit/dynamic-table": "^18.3.0",
|
|
63
|
-
"@atlaskit/lozenge": "^13.
|
|
63
|
+
"@atlaskit/lozenge": "^13.5.0",
|
|
64
64
|
"@atlaskit/section-message": "^8.12.0",
|
|
65
65
|
"@atlassian/ssr-tests": "workspace:^",
|
|
66
66
|
"@testing-library/react": "^16.3.0",
|