@atlaskit/table 0.12.4 → 0.12.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/types/hooks/use-expand.d.ts +2 -2
- package/dist/types/hooks/use-row-id.d.ts +0 -1
- package/dist/types/hooks/use-table-body.d.ts +0 -1
- package/dist/types/hooks/use-table.d.ts +1 -1
- package/dist/types/ui/base-cell.d.ts +8 -8
- package/dist/types-ts4.5/hooks/use-expand.d.ts +2 -2
- package/dist/types-ts4.5/hooks/use-row-id.d.ts +0 -1
- package/dist/types-ts4.5/hooks/use-table-body.d.ts +0 -1
- package/dist/types-ts4.5/hooks/use-table.d.ts +1 -1
- package/dist/types-ts4.5/ui/base-cell.d.ts +8 -8
- package/package.json +8 -9
- package/primitives/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,8 +10,8 @@ type ExpandContextState = {
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const ExpandContextProvider: ({ children, isExpanded: isExpandedProp, isDefaultExpanded, }: {
|
|
12
12
|
children: React.ReactNode;
|
|
13
|
-
isExpanded?: boolean
|
|
14
|
-
isDefaultExpanded?: boolean
|
|
13
|
+
isExpanded?: boolean;
|
|
14
|
+
isDefaultExpanded?: boolean;
|
|
15
15
|
}) => React.JSX.Element;
|
|
16
16
|
declare const useExpand: () => ExpandContextState;
|
|
17
17
|
export default useExpand;
|
|
@@ -20,5 +20,5 @@ export declare function TableProvider<T extends object>({ children, state, }: {
|
|
|
20
20
|
children: React.ReactNode;
|
|
21
21
|
state: TableContext<T>;
|
|
22
22
|
}): React.JSX.Element;
|
|
23
|
-
export declare const useTable: <TableItem extends object>() => TableContext<TableItem
|
|
23
|
+
export declare const useTable: <TableItem extends object>() => TableContext<TableItem>;
|
|
24
24
|
export {};
|
|
@@ -52,26 +52,26 @@ export declare const BaseCell: React.ForwardRefExoticComponent<{
|
|
|
52
52
|
/**
|
|
53
53
|
* A percentage of pixel width of the table to apply to a column.
|
|
54
54
|
*/
|
|
55
|
-
width?: string
|
|
55
|
+
width?: string;
|
|
56
56
|
/**
|
|
57
57
|
* Horizontal alignment of content.
|
|
58
58
|
*/
|
|
59
|
-
align?: "
|
|
59
|
+
align?: "icon" | "text" | "number";
|
|
60
60
|
/**
|
|
61
61
|
* Whether the cell should render as a `td` or `th` element.
|
|
62
62
|
*/
|
|
63
|
-
as?: "td" | "th"
|
|
63
|
+
as?: "td" | "th";
|
|
64
64
|
/**
|
|
65
65
|
* Same behavior as the HTML attribute.
|
|
66
66
|
*
|
|
67
67
|
* @see 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope'
|
|
68
68
|
*/
|
|
69
|
-
scope?: "col" | "row"
|
|
69
|
+
scope?: "col" | "row";
|
|
70
70
|
/**
|
|
71
71
|
* A `testId` prop is a unique string that appears as a data attribute `data-testid`
|
|
72
72
|
* in the rendered code, serving as a hook for automated tests.
|
|
73
73
|
*/
|
|
74
|
-
testId?: string
|
|
74
|
+
testId?: string;
|
|
75
75
|
/**
|
|
76
76
|
* Content of the cell.
|
|
77
77
|
*/
|
|
@@ -79,11 +79,11 @@ export declare const BaseCell: React.ForwardRefExoticComponent<{
|
|
|
79
79
|
/**
|
|
80
80
|
* Number of columns to span.
|
|
81
81
|
*/
|
|
82
|
-
colSpan?: number
|
|
82
|
+
colSpan?: number;
|
|
83
83
|
/**
|
|
84
84
|
* Number of rows to span.
|
|
85
85
|
*/
|
|
86
|
-
rowSpan?: number
|
|
86
|
+
rowSpan?: number;
|
|
87
87
|
} & Pick<BoxProps<any>, "backgroundColor" | "paddingBlock" | "paddingInline" | "xcss"> & {
|
|
88
|
-
sortDirection?: SortDirection
|
|
88
|
+
sortDirection?: SortDirection;
|
|
89
89
|
} & React.RefAttributes<HTMLTableCellElement>>;
|
|
@@ -10,8 +10,8 @@ type ExpandContextState = {
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const ExpandContextProvider: ({ children, isExpanded: isExpandedProp, isDefaultExpanded, }: {
|
|
12
12
|
children: React.ReactNode;
|
|
13
|
-
isExpanded?: boolean
|
|
14
|
-
isDefaultExpanded?: boolean
|
|
13
|
+
isExpanded?: boolean;
|
|
14
|
+
isDefaultExpanded?: boolean;
|
|
15
15
|
}) => React.JSX.Element;
|
|
16
16
|
declare const useExpand: () => ExpandContextState;
|
|
17
17
|
export default useExpand;
|
|
@@ -20,5 +20,5 @@ export declare function TableProvider<T extends object>({ children, state, }: {
|
|
|
20
20
|
children: React.ReactNode;
|
|
21
21
|
state: TableContext<T>;
|
|
22
22
|
}): React.JSX.Element;
|
|
23
|
-
export declare const useTable: <TableItem extends object>() => TableContext<TableItem
|
|
23
|
+
export declare const useTable: <TableItem extends object>() => TableContext<TableItem>;
|
|
24
24
|
export {};
|
|
@@ -52,26 +52,26 @@ export declare const BaseCell: React.ForwardRefExoticComponent<{
|
|
|
52
52
|
/**
|
|
53
53
|
* A percentage of pixel width of the table to apply to a column.
|
|
54
54
|
*/
|
|
55
|
-
width?: string
|
|
55
|
+
width?: string;
|
|
56
56
|
/**
|
|
57
57
|
* Horizontal alignment of content.
|
|
58
58
|
*/
|
|
59
|
-
align?: "
|
|
59
|
+
align?: "icon" | "text" | "number";
|
|
60
60
|
/**
|
|
61
61
|
* Whether the cell should render as a `td` or `th` element.
|
|
62
62
|
*/
|
|
63
|
-
as?: "td" | "th"
|
|
63
|
+
as?: "td" | "th";
|
|
64
64
|
/**
|
|
65
65
|
* Same behavior as the HTML attribute.
|
|
66
66
|
*
|
|
67
67
|
* @see 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope'
|
|
68
68
|
*/
|
|
69
|
-
scope?: "col" | "row"
|
|
69
|
+
scope?: "col" | "row";
|
|
70
70
|
/**
|
|
71
71
|
* A `testId` prop is a unique string that appears as a data attribute `data-testid`
|
|
72
72
|
* in the rendered code, serving as a hook for automated tests.
|
|
73
73
|
*/
|
|
74
|
-
testId?: string
|
|
74
|
+
testId?: string;
|
|
75
75
|
/**
|
|
76
76
|
* Content of the cell.
|
|
77
77
|
*/
|
|
@@ -79,11 +79,11 @@ export declare const BaseCell: React.ForwardRefExoticComponent<{
|
|
|
79
79
|
/**
|
|
80
80
|
* Number of columns to span.
|
|
81
81
|
*/
|
|
82
|
-
colSpan?: number
|
|
82
|
+
colSpan?: number;
|
|
83
83
|
/**
|
|
84
84
|
* Number of rows to span.
|
|
85
85
|
*/
|
|
86
|
-
rowSpan?: number
|
|
86
|
+
rowSpan?: number;
|
|
87
87
|
} & Pick<BoxProps<any>, "backgroundColor" | "paddingBlock" | "paddingInline" | "xcss"> & {
|
|
88
|
-
sortDirection?: SortDirection
|
|
88
|
+
sortDirection?: SortDirection;
|
|
89
89
|
} & React.RefAttributes<HTMLTableCellElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/table",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"description": "A table is used to display data.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"./primitives": "./src/ui/index.tsx"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@atlaskit/button": "^23.
|
|
44
|
+
"@atlaskit/button": "^23.4.0",
|
|
45
45
|
"@atlaskit/checkbox": "^17.1.0",
|
|
46
46
|
"@atlaskit/css": "^0.12.0",
|
|
47
47
|
"@atlaskit/ds-lib": "^5.0.0",
|
|
48
48
|
"@atlaskit/focus-ring": "^3.0.0",
|
|
49
|
-
"@atlaskit/icon": "^
|
|
50
|
-
"@atlaskit/primitives": "^14.
|
|
51
|
-
"@atlaskit/tokens": "^
|
|
52
|
-
"@atlaskit/tooltip": "^20.
|
|
49
|
+
"@atlaskit/icon": "^28.0.0",
|
|
50
|
+
"@atlaskit/primitives": "^14.11.0",
|
|
51
|
+
"@atlaskit/tokens": "^6.0.0",
|
|
52
|
+
"@atlaskit/tooltip": "^20.4.0",
|
|
53
53
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@compiled/react": "^0.18.3",
|
|
@@ -66,14 +66,13 @@
|
|
|
66
66
|
"@atlaskit/docs": "^11.0.0",
|
|
67
67
|
"@atlaskit/dynamic-table": "^18.2.0",
|
|
68
68
|
"@atlaskit/lozenge": "^13.0.0",
|
|
69
|
-
"@atlaskit/section-message": "^8.
|
|
69
|
+
"@atlaskit/section-message": "^8.5.0",
|
|
70
70
|
"@atlaskit/visual-regression": "workspace:^",
|
|
71
71
|
"@atlassian/ssr-tests": "^0.2.0",
|
|
72
72
|
"@testing-library/react": "^13.4.0",
|
|
73
73
|
"@testing-library/react-hooks": "^8.0.1",
|
|
74
74
|
"raw-loader": "^0.5.1",
|
|
75
|
-
"react-dom": "^18.2.0"
|
|
76
|
-
"typescript": "~5.4.2"
|
|
75
|
+
"react-dom": "^18.2.0"
|
|
77
76
|
},
|
|
78
77
|
"techstack": {
|
|
79
78
|
"@atlassian/frontend": {
|