@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/table
2
2
 
3
+ ## 0.12.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.12.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 0.12.4
4
16
 
5
17
  ### Patch Changes
@@ -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 | undefined;
14
- isDefaultExpanded?: boolean | undefined;
13
+ isExpanded?: boolean;
14
+ isDefaultExpanded?: boolean;
15
15
  }) => React.JSX.Element;
16
16
  declare const useExpand: () => ExpandContextState;
17
17
  export default useExpand;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @internal
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * __Table body provider__
4
3
  * Ensures correct nesting of table elements.
@@ -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, keyof 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 | undefined;
55
+ width?: string;
56
56
  /**
57
57
  * Horizontal alignment of content.
58
58
  */
59
- align?: "number" | "text" | "icon" | undefined;
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" | undefined;
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" | undefined;
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 | undefined;
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 | undefined;
82
+ colSpan?: number;
83
83
  /**
84
84
  * Number of rows to span.
85
85
  */
86
- rowSpan?: number | undefined;
86
+ rowSpan?: number;
87
87
  } & Pick<BoxProps<any>, "backgroundColor" | "paddingBlock" | "paddingInline" | "xcss"> & {
88
- sortDirection?: SortDirection | undefined;
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 | undefined;
14
- isDefaultExpanded?: boolean | undefined;
13
+ isExpanded?: boolean;
14
+ isDefaultExpanded?: boolean;
15
15
  }) => React.JSX.Element;
16
16
  declare const useExpand: () => ExpandContextState;
17
17
  export default useExpand;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @internal
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * __Table body provider__
4
3
  * Ensures correct nesting of table elements.
@@ -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, keyof 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 | undefined;
55
+ width?: string;
56
56
  /**
57
57
  * Horizontal alignment of content.
58
58
  */
59
- align?: "number" | "text" | "icon" | undefined;
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" | undefined;
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" | undefined;
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 | undefined;
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 | undefined;
82
+ colSpan?: number;
83
83
  /**
84
84
  * Number of rows to span.
85
85
  */
86
- rowSpan?: number | undefined;
86
+ rowSpan?: number;
87
87
  } & Pick<BoxProps<any>, "backgroundColor" | "paddingBlock" | "paddingInline" | "xcss"> & {
88
- sortDirection?: SortDirection | undefined;
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.4",
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.2.0",
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": "^27.6.0",
50
- "@atlaskit/primitives": "^14.10.0",
51
- "@atlaskit/tokens": "^5.6.0",
52
- "@atlaskit/tooltip": "^20.3.0",
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.3.0",
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": {
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/ui/index.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/ui/index.d.ts"
14
14
  ]