@atlaskit/table 0.4.17 → 0.4.18

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/table
2
2
 
3
+ ## 0.4.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 0.4.17
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/table",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "description": "A table is used to display data.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -40,13 +40,13 @@
40
40
  "./primitives": "./src/ui/index.tsx"
41
41
  },
42
42
  "dependencies": {
43
- "@atlaskit/button": "^16.16.0",
43
+ "@atlaskit/button": "^17.0.0",
44
44
  "@atlaskit/checkbox": "^13.0.0",
45
45
  "@atlaskit/ds-lib": "^2.2.0",
46
46
  "@atlaskit/focus-ring": "^1.3.0",
47
47
  "@atlaskit/icon": "^22.0.0",
48
- "@atlaskit/primitives": "^1.10.0",
49
- "@atlaskit/tokens": "^1.28.0",
48
+ "@atlaskit/primitives": "^1.15.0",
49
+ "@atlaskit/tokens": "^1.30.0",
50
50
  "@atlaskit/tooltip": "^18.0.0",
51
51
  "@atlaskit/visually-hidden": "^1.2.0",
52
52
  "@babel/runtime": "^7.0.0",
@@ -1,122 +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/primitives';
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
-
17
- // @public (undocumented)
18
- type BaseCellProps = {
19
- width?: string;
20
- align?: 'icon' | 'number' | 'text';
21
- as?: 'td' | 'th';
22
- scope?: 'col' | 'row';
23
- testId?: string;
24
- children?: ReactNode;
25
- colSpan?: number;
26
- } & Pick<BoxProps<any>, 'backgroundColor' | 'paddingBlock' | 'paddingInline' | 'xcss'>;
27
-
28
- // @public (undocumented)
29
- type BodyProps<Item extends object> = {
30
- rows: Item[];
31
- children: (row: Item) => ReactElement;
32
- } | {
33
- rows?: never;
34
- children: ReactElement | ReactElement[];
35
- };
36
-
37
- // @public
38
- export const Cell: FC<Omit<BaseCellProps, 'as'>>;
39
-
40
- // @public (undocumented)
41
- interface CellProps {
42
- // (undocumented)
43
- children?: ReactNode;
44
- name: string;
45
- // (undocumented)
46
- onClick?: React.MouseEventHandler;
47
- testId?: string;
48
- }
49
-
50
- // @public
51
- export const ExpandableCell: MemoExoticComponent<() => jsx.JSX.Element>;
52
-
53
- // @public
54
- export const ExpandableRow: ({ children, isExpanded, isDefaultExpanded, }: ExpandableRowProps) => JSX.Element;
55
-
56
- // @public
57
- export const ExpandableRowContent: ({ children }: ExpandableRowContentProps) => JSX.Element;
58
-
59
- // @public (undocumented)
60
- type ExpandableRowContentProps = {
61
- children?: React_2.ReactNode;
62
- };
63
-
64
- // @public (undocumented)
65
- type ExpandableRowProps = {
66
- children: React_2.ReactNode;
67
- isExpanded?: boolean;
68
- isDefaultExpanded?: boolean;
69
- };
70
-
71
- // @public
72
- export const HeadCell: FC<THProps>;
73
-
74
- // @public
75
- export const Row: FC<RowProps>;
76
-
77
- // @public (undocumented)
78
- type RowProps = {
79
- testId?: string;
80
- children?: ReactNode;
81
- };
82
-
83
- // @public
84
- export const SortableColumn: FC<CellProps>;
85
-
86
- // @public (undocumented)
87
- type SortKey<Key extends number | string | symbol> = 'unset' | Key;
88
-
89
- // @public
90
- function Table<ItemType extends object = object>({ children, isSelectable, sortKey, testId, }: TableProps<ItemType>): jsx.JSX.Element;
91
- export default Table;
92
-
93
- // @public (undocumented)
94
- type TableProps<ItemType extends object = {}> = {
95
- testId?: string;
96
- sortKey?: SortKey<keyof ItemType>;
97
- children: ReactElement | ReactElement[];
98
- } & ({
99
- isSelectable: true;
100
- defaultSelected?: number;
101
- } | {
102
- isSelectable?: false;
103
- });
104
-
105
- // @public
106
- export function TBody<ObjectType extends object>({ rows, children, }: BodyProps<ObjectType>): jsx.JSX.Element;
107
-
108
- // @public (undocumented)
109
- export const THead: FC<THeadProps>;
110
-
111
- // @public (undocumented)
112
- type THeadProps = {
113
- actions?: (selected: number[]) => ReactNode;
114
- children?: ReactNode;
115
- };
116
-
117
- // @public (undocumented)
118
- type THProps = Omit<BaseCellProps, 'as'>;
119
-
120
- // (No @packageDocumentation comment for this package)
121
-
122
- ```