@atlaskit/table 0.4.11 → 0.4.12
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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +3 -3
- package/tmp/api-report-tmp.d.ts +0 -130
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/table
|
|
2
2
|
|
|
3
|
+
## 0.4.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
|
|
8
|
+
|
|
3
9
|
## 0.4.11
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.12",
|
|
4
4
|
"description": "A table is used to display data.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
"react": "^16.8.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
+
"@af/accessibility-testing": "*",
|
|
61
62
|
"@atlaskit/ds-lib": "*",
|
|
62
63
|
"@atlaskit/ssr": "*",
|
|
63
64
|
"@atlaskit/visual-regression": "*",
|
|
64
65
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
65
66
|
"@testing-library/react": "^12.1.5",
|
|
66
67
|
"@testing-library/react-hooks": "^8.0.1",
|
|
67
|
-
"jest-axe": "^4.0.0",
|
|
68
68
|
"react-dom": "^16.8.0",
|
|
69
69
|
"storybook-addon-designs": "^6.3.1",
|
|
70
70
|
"typescript": "~4.9.5",
|
|
@@ -105,4 +105,4 @@
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
108
|
-
}
|
|
108
|
+
}
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/table"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
|
-
import { BoxProps } from '@atlaskit/ds-explorations/box';
|
|
10
|
-
import { FC } from 'react';
|
|
11
|
-
import { jsx } from '@emotion/react';
|
|
12
|
-
import { MemoExoticComponent } from 'react';
|
|
13
|
-
import { default as React_2 } from 'react';
|
|
14
|
-
import { ReactElement } from 'react';
|
|
15
|
-
import { ReactNode } from 'react';
|
|
16
|
-
import { SerializedStyles } from '@emotion/react';
|
|
17
|
-
|
|
18
|
-
// @public (undocumented)
|
|
19
|
-
const alignMap: {
|
|
20
|
-
readonly text: SerializedStyles;
|
|
21
|
-
readonly number: SerializedStyles;
|
|
22
|
-
readonly icon: SerializedStyles;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
// @public (undocumented)
|
|
26
|
-
type BaseCellProps = {
|
|
27
|
-
width?: string;
|
|
28
|
-
align?: keyof typeof alignMap;
|
|
29
|
-
as?: 'td' | 'th';
|
|
30
|
-
scope?: 'col' | 'row';
|
|
31
|
-
testId?: string;
|
|
32
|
-
children?: ReactNode;
|
|
33
|
-
colSpan?: number;
|
|
34
|
-
} & Pick<BoxProps, 'backgroundColor' | 'className' | 'paddingBlock' | 'paddingInline'>;
|
|
35
|
-
|
|
36
|
-
// @public (undocumented)
|
|
37
|
-
type BodyProps<Item extends object> = {
|
|
38
|
-
rows: Item[];
|
|
39
|
-
children: (row: Item) => ReactElement;
|
|
40
|
-
} | {
|
|
41
|
-
rows?: never;
|
|
42
|
-
children: ReactElement | ReactElement[];
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
// @public
|
|
46
|
-
export const Cell: FC<Omit<BaseCellProps, 'as'>>;
|
|
47
|
-
|
|
48
|
-
// @public (undocumented)
|
|
49
|
-
interface CellProps {
|
|
50
|
-
// (undocumented)
|
|
51
|
-
children?: ReactNode;
|
|
52
|
-
name: string;
|
|
53
|
-
// (undocumented)
|
|
54
|
-
onClick?: React.MouseEventHandler;
|
|
55
|
-
testId?: string;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// @public
|
|
59
|
-
export const ExpandableCell: MemoExoticComponent<() => jsx.JSX.Element>;
|
|
60
|
-
|
|
61
|
-
// @public
|
|
62
|
-
export const ExpandableRow: ({ children, isExpanded, isDefaultExpanded, }: ExpandableRowProps) => JSX.Element;
|
|
63
|
-
|
|
64
|
-
// @public
|
|
65
|
-
export const ExpandableRowContent: ({ children }: ExpandableRowContentProps) => JSX.Element;
|
|
66
|
-
|
|
67
|
-
// @public (undocumented)
|
|
68
|
-
type ExpandableRowContentProps = {
|
|
69
|
-
children?: React_2.ReactNode;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
// @public (undocumented)
|
|
73
|
-
type ExpandableRowProps = {
|
|
74
|
-
children: React_2.ReactNode;
|
|
75
|
-
isExpanded?: boolean;
|
|
76
|
-
isDefaultExpanded?: boolean;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
// @public
|
|
80
|
-
export const HeadCell: FC<THProps>;
|
|
81
|
-
|
|
82
|
-
// @public
|
|
83
|
-
export const Row: FC<RowProps>;
|
|
84
|
-
|
|
85
|
-
// @public (undocumented)
|
|
86
|
-
type RowProps = {
|
|
87
|
-
testId?: string;
|
|
88
|
-
children?: ReactNode;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
// @public
|
|
92
|
-
export const SortableColumn: FC<CellProps>;
|
|
93
|
-
|
|
94
|
-
// @public (undocumented)
|
|
95
|
-
type SortKey<Key extends number | string | symbol> = 'unset' | Key;
|
|
96
|
-
|
|
97
|
-
// @public
|
|
98
|
-
function Table<ItemType extends object = object>({ children, isSelectable, sortKey, testId, }: TableProps<ItemType>): jsx.JSX.Element;
|
|
99
|
-
export default Table;
|
|
100
|
-
|
|
101
|
-
// @public (undocumented)
|
|
102
|
-
type TableProps<ItemType extends object = {}> = {
|
|
103
|
-
testId?: string;
|
|
104
|
-
sortKey?: SortKey<keyof ItemType>;
|
|
105
|
-
children: ReactElement | ReactElement[];
|
|
106
|
-
} & ({
|
|
107
|
-
isSelectable: true;
|
|
108
|
-
defaultSelected?: number;
|
|
109
|
-
} | {
|
|
110
|
-
isSelectable?: false;
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
// @public
|
|
114
|
-
export function TBody<ObjectType extends object>({ rows, children, }: BodyProps<ObjectType>): jsx.JSX.Element;
|
|
115
|
-
|
|
116
|
-
// @public (undocumented)
|
|
117
|
-
export const THead: FC<THeadProps>;
|
|
118
|
-
|
|
119
|
-
// @public (undocumented)
|
|
120
|
-
type THeadProps = {
|
|
121
|
-
actions?: (selected: number[]) => ReactNode;
|
|
122
|
-
children?: ReactNode;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
// @public (undocumented)
|
|
126
|
-
type THProps = Omit<BaseCellProps, 'as'>;
|
|
127
|
-
|
|
128
|
-
// (No @packageDocumentation comment for this package)
|
|
129
|
-
|
|
130
|
-
```
|