@atlaskit/table 0.2.4 → 0.2.6
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/ui/selectable-cell.js +0 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/ui/selectable-cell.js +0 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/ui/selectable-cell.js +0 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/hooks/selection-provider.d.ts +4 -2
- package/dist/types/row.d.ts +5 -1
- package/dist/types/sortable-column.d.ts +2 -1
- package/dist/types/thead.d.ts +1 -0
- package/dist/types/ui/bulk-action-overlay.d.ts +4 -2
- package/dist/types/ui/selectable-cell.d.ts +7 -4
- package/dist/types/ui/table.d.ts +5 -1
- package/dist/types/ui/tbody.d.ts +4 -2
- package/dist/types/ui/thead.d.ts +4 -2
- package/dist/types/ui/tr.d.ts +5 -1
- package/package.json +2 -2
- package/report.api.md +4 -0
- package/tmp/api-report-tmp.d.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/table
|
|
2
2
|
|
|
3
|
+
## 0.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.2.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) - Upgrades component types to support React 18.
|
|
14
|
+
|
|
3
15
|
## 0.2.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
|
2
2
|
import { SelectableActions, SelectableState } from './use-selectable';
|
|
3
3
|
declare type SelectionContext = [
|
|
4
4
|
SelectableState,
|
|
@@ -17,6 +17,8 @@ declare const SelectionContext: React.Context<SelectionContext>;
|
|
|
17
17
|
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
18
18
|
* - [Usage](https://atlassian.design/components/{packageName}/usage)
|
|
19
19
|
*/
|
|
20
|
-
declare const SelectionProvider: FC
|
|
20
|
+
declare const SelectionProvider: FC<{
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}>;
|
|
21
23
|
export declare const useSelection: () => SelectionContext;
|
|
22
24
|
export default SelectionProvider;
|
package/dist/types/row.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { FC } from 'react';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
3
|
export declare type RowProps = {
|
|
4
4
|
/**
|
|
5
5
|
* A `testId` prop is a unique string that appears as a data attribute `data-testid`
|
|
6
6
|
* in the rendered code, serving as a hook for automated tests.
|
|
7
7
|
*/
|
|
8
8
|
testId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Content of the row.
|
|
11
|
+
*/
|
|
12
|
+
children?: ReactNode;
|
|
9
13
|
};
|
|
10
14
|
/**
|
|
11
15
|
* __Row__
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { FC } from 'react';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
3
|
export interface CellProps {
|
|
4
4
|
/**
|
|
5
5
|
* Unique key used for sorting table data by this column
|
|
@@ -11,6 +11,7 @@ export interface CellProps {
|
|
|
11
11
|
*/
|
|
12
12
|
testId?: string;
|
|
13
13
|
onClick?: React.MouseEventHandler;
|
|
14
|
+
children?: ReactNode;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* __SortableColumn__
|
package/dist/types/thead.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { FC } from 'react';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* __Bulk action overlay__
|
|
5
5
|
*
|
|
6
6
|
* A bulk action overlay is used to conditionally render when a user makes a row selection
|
|
7
7
|
*/
|
|
8
|
-
export declare const BulkActionOverlay: FC
|
|
8
|
+
export declare const BulkActionOverlay: FC<{
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { FC } from 'react';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
|
+
declare type SelectableCellProps = {
|
|
4
|
+
as: 'td' | 'th';
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
};
|
|
3
7
|
/**
|
|
4
8
|
* __Selectable cell__
|
|
5
9
|
*
|
|
6
10
|
* A selectable cell primitive designed to be used for light weight composition.
|
|
7
11
|
*/
|
|
8
|
-
export declare const SelectableCell: FC<
|
|
9
|
-
|
|
10
|
-
}>;
|
|
12
|
+
export declare const SelectableCell: FC<SelectableCellProps>;
|
|
13
|
+
export {};
|
package/dist/types/ui/table.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { FC } from 'react';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
3
|
declare type TableProps = {
|
|
4
4
|
/**
|
|
5
5
|
* A `testId` prop is a unique string that appears as a data attribute `data-testid`
|
|
@@ -12,6 +12,10 @@ declare type TableProps = {
|
|
|
12
12
|
* @see 'https://www.w3.org/WAI/EO/Drafts/tutorials/tables/summary/'
|
|
13
13
|
*/
|
|
14
14
|
summary?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Table content.
|
|
17
|
+
*/
|
|
18
|
+
children: ReactNode;
|
|
15
19
|
};
|
|
16
20
|
/**
|
|
17
21
|
* __Table__
|
package/dist/types/ui/tbody.d.ts
CHANGED
package/dist/types/ui/thead.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { FC } from 'react';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* __THead__
|
|
5
5
|
*
|
|
@@ -7,4 +7,6 @@ import { FC } from 'react';
|
|
|
7
7
|
*
|
|
8
8
|
* @primitive
|
|
9
9
|
*/
|
|
10
|
-
export declare const THead: FC
|
|
10
|
+
export declare const THead: FC<{
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}>;
|
package/dist/types/ui/tr.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { FC } from 'react';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
3
|
interface TRProps {
|
|
4
4
|
/**
|
|
5
5
|
* A `testId` prop is a unique string that appears as a data attribute `data-testid`
|
|
@@ -14,6 +14,10 @@ interface TRProps {
|
|
|
14
14
|
* Adjust the behavior of the element depending on whether the row is in the `THead` or in the `TBody`.
|
|
15
15
|
*/
|
|
16
16
|
isBodyRow?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Content of the row.
|
|
19
|
+
*/
|
|
20
|
+
children?: ReactNode;
|
|
17
21
|
}
|
|
18
22
|
/**
|
|
19
23
|
* __Row__
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "A table is used to display data.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/ds-lib": "^2.1.2",
|
|
39
39
|
"@atlaskit/focus-ring": "^1.2.1",
|
|
40
40
|
"@atlaskit/icon": "^21.11.2",
|
|
41
|
-
"@atlaskit/primitives": "^0.
|
|
41
|
+
"@atlaskit/primitives": "^0.4.0",
|
|
42
42
|
"@atlaskit/tokens": "^1.2.0",
|
|
43
43
|
"@atlaskit/tooltip": "^17.7.0",
|
|
44
44
|
"@atlaskit/visually-hidden": "^1.0.0",
|
package/report.api.md
CHANGED
|
@@ -57,6 +57,8 @@ export const Cell: FC<Omit<BaseCellProps, 'as'>>;
|
|
|
57
57
|
|
|
58
58
|
// @public (undocumented)
|
|
59
59
|
interface CellProps {
|
|
60
|
+
// (undocumented)
|
|
61
|
+
children?: ReactNode;
|
|
60
62
|
name: string;
|
|
61
63
|
// (undocumented)
|
|
62
64
|
onClick?: React.MouseEventHandler;
|
|
@@ -72,6 +74,7 @@ export const Row: FC<RowProps>;
|
|
|
72
74
|
// @public (undocumented)
|
|
73
75
|
type RowProps = {
|
|
74
76
|
testId?: string;
|
|
77
|
+
children?: ReactNode;
|
|
75
78
|
};
|
|
76
79
|
|
|
77
80
|
// @public
|
|
@@ -116,6 +119,7 @@ export const THead: FC<THeadProps>;
|
|
|
116
119
|
// @public (undocumented)
|
|
117
120
|
type THeadProps = {
|
|
118
121
|
actions?: (selected: number[]) => ReactNode;
|
|
122
|
+
children?: ReactNode;
|
|
119
123
|
};
|
|
120
124
|
|
|
121
125
|
// @public (undocumented)
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ export const Cell: FC<Omit<BaseCellProps, 'as'>>;
|
|
|
41
41
|
|
|
42
42
|
// @public (undocumented)
|
|
43
43
|
interface CellProps {
|
|
44
|
+
// (undocumented)
|
|
45
|
+
children?: ReactNode;
|
|
44
46
|
name: string;
|
|
45
47
|
// (undocumented)
|
|
46
48
|
onClick?: React.MouseEventHandler;
|
|
@@ -56,6 +58,7 @@ export const Row: FC<RowProps>;
|
|
|
56
58
|
// @public (undocumented)
|
|
57
59
|
type RowProps = {
|
|
58
60
|
testId?: string;
|
|
61
|
+
children?: ReactNode;
|
|
59
62
|
};
|
|
60
63
|
|
|
61
64
|
// @public
|
|
@@ -89,6 +92,7 @@ export const THead: FC<THeadProps>;
|
|
|
89
92
|
// @public (undocumented)
|
|
90
93
|
type THeadProps = {
|
|
91
94
|
actions?: (selected: number[]) => ReactNode;
|
|
95
|
+
children?: ReactNode;
|
|
92
96
|
};
|
|
93
97
|
|
|
94
98
|
// @public (undocumented)
|