@atlaskit/table 0.2.8 → 0.3.1
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 +16 -0
- package/dist/cjs/body.js +1 -3
- package/dist/cjs/expandable-cell.js +45 -0
- package/dist/cjs/expandable-row-content.js +21 -0
- package/dist/cjs/expandable-row.js +25 -0
- package/dist/cjs/head-cell.js +3 -3
- package/dist/cjs/hooks/selection-provider.js +0 -4
- package/dist/cjs/hooks/use-expand-content.js +33 -0
- package/dist/cjs/hooks/use-expand.js +50 -0
- package/dist/cjs/index.js +21 -0
- package/dist/cjs/row.js +19 -3
- package/dist/cjs/sortable-column.js +2 -0
- package/dist/cjs/thead.js +2 -7
- package/dist/cjs/ui/base-cell.js +25 -14
- package/dist/cjs/ui/expand-icon.js +41 -0
- package/dist/cjs/ui/expandable-cell.js +28 -0
- package/dist/cjs/ui/index.js +14 -0
- package/dist/cjs/ui/selectable-cell.js +2 -9
- package/dist/cjs/ui/td.js +1 -0
- package/dist/cjs/ui/th.js +9 -13
- package/dist/cjs/ui/tr.js +6 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/body.js +0 -2
- package/dist/es2019/expandable-cell.js +35 -0
- package/dist/es2019/expandable-row-content.js +14 -0
- package/dist/es2019/expandable-row.js +18 -0
- package/dist/es2019/head-cell.js +3 -3
- package/dist/es2019/hooks/selection-provider.js +0 -4
- package/dist/es2019/hooks/use-expand-content.js +23 -0
- package/dist/es2019/hooks/use-expand.js +32 -0
- package/dist/es2019/index.js +3 -0
- package/dist/es2019/row.js +21 -3
- package/dist/es2019/thead.js +2 -7
- package/dist/es2019/ui/base-cell.js +26 -14
- package/dist/es2019/ui/expand-icon.js +34 -0
- package/dist/es2019/ui/expandable-cell.js +22 -0
- package/dist/es2019/ui/index.js +2 -0
- package/dist/es2019/ui/selectable-cell.js +2 -8
- package/dist/es2019/ui/th.js +1 -4
- package/dist/es2019/ui/tr.js +6 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/body.js +0 -2
- package/dist/esm/expandable-cell.js +34 -0
- package/dist/esm/expandable-row-content.js +13 -0
- package/dist/esm/expandable-row.js +17 -0
- package/dist/esm/head-cell.js +3 -3
- package/dist/esm/hooks/selection-provider.js +0 -4
- package/dist/esm/hooks/use-expand-content.js +22 -0
- package/dist/esm/hooks/use-expand.js +38 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/row.js +19 -3
- package/dist/esm/thead.js +2 -7
- package/dist/esm/ui/base-cell.js +26 -14
- package/dist/esm/ui/expand-icon.js +33 -0
- package/dist/esm/ui/expandable-cell.js +21 -0
- package/dist/esm/ui/index.js +2 -0
- package/dist/esm/ui/selectable-cell.js +2 -9
- package/dist/esm/ui/th.js +9 -13
- package/dist/esm/ui/tr.js +6 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/expandable-cell.d.ts +10 -0
- package/dist/types/expandable-row-content.d.ts +12 -0
- package/dist/types/expandable-row.d.ts +19 -0
- package/dist/types/head-cell.d.ts +3 -3
- package/dist/types/hooks/selection-provider.d.ts +0 -4
- package/dist/types/hooks/use-expand-content.d.ts +15 -0
- package/dist/types/hooks/use-expand.d.ts +17 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/ui/base-cell.d.ts +11 -3
- package/dist/types/ui/expand-icon.d.ts +10 -0
- package/dist/types/ui/expandable-cell.d.ts +14 -0
- package/dist/types/ui/index.d.ts +2 -0
- package/dist/types/ui/selectable-cell.d.ts +3 -2
- package/dist/types/ui/td.d.ts +1 -1
- package/dist/types/ui/thead.d.ts +1 -1
- package/dist/types/ui/tr.d.ts +5 -1
- package/package.json +3 -2
- package/report.api.md +36 -3
- package/tmp/api-report-tmp.d.ts +30 -3
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -4,17 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
|
|
7
9
|
import { BoxProps } from '@atlaskit/ds-explorations/box';
|
|
8
10
|
import { FC } from 'react';
|
|
9
11
|
import { jsx } from '@emotion/react';
|
|
12
|
+
import { MemoExoticComponent } from 'react';
|
|
13
|
+
import { default as React_2 } from 'react';
|
|
10
14
|
import { ReactElement } from 'react';
|
|
11
15
|
import { ReactNode } from 'react';
|
|
16
|
+
import { SerializedStyles } from '@emotion/react';
|
|
12
17
|
|
|
13
18
|
// @public (undocumented)
|
|
14
19
|
const alignMap: {
|
|
15
|
-
readonly text:
|
|
16
|
-
readonly number:
|
|
17
|
-
readonly icon:
|
|
20
|
+
readonly text: SerializedStyles;
|
|
21
|
+
readonly number: SerializedStyles;
|
|
22
|
+
readonly icon: SerializedStyles;
|
|
18
23
|
};
|
|
19
24
|
|
|
20
25
|
// @public (undocumented)
|
|
@@ -25,6 +30,7 @@ type BaseCellProps = {
|
|
|
25
30
|
scope?: 'col' | 'row';
|
|
26
31
|
testId?: string;
|
|
27
32
|
children?: ReactNode;
|
|
33
|
+
colSpan?: number;
|
|
28
34
|
} & Pick<BoxProps, 'backgroundColor' | 'className' | 'paddingBlock' | 'paddingInline'>;
|
|
29
35
|
|
|
30
36
|
// @public (undocumented)
|
|
@@ -49,6 +55,27 @@ interface CellProps {
|
|
|
49
55
|
testId?: string;
|
|
50
56
|
}
|
|
51
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
|
+
|
|
52
79
|
// @public
|
|
53
80
|
export const HeadCell: FC<THProps>;
|
|
54
81
|
|