@midas-ds/table-styles 2.0.125 โ†’ 2.1.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 CHANGED
@@ -1,3 +1,31 @@
1
+ ## 2.1.1 (2026-10-05)
2
+
3
+ ### ๐Ÿงฑ Updated Dependencies
4
+
5
+ - Updated components to 17.27.4
6
+ - Updated theme to 3.17.5
7
+
8
+ ## 2.1.0 (2026-10-05)
9
+
10
+ ### ๐Ÿš€ Features
11
+
12
+ - **table-styles,docs:** support TanStack Table v9 alongside v8 ([6282173f3ea](https://github.com/migrationsverket/midas/commit/6282173f3ea))
13
+
14
+ ### ๐Ÿ”ง Maintenance
15
+
16
+ - **table-styles:** fix stale doc comment and regroup stories by package ([4d56165d943](https://github.com/migrationsverket/midas/commit/4d56165d943))
17
+
18
+ ### ๐Ÿงช Tests updated
19
+
20
+ - update visual regression screenshots ([f6db394b984](https://github.com/migrationsverket/midas/commit/f6db394b984))
21
+ - **table-styles:** pre-bundle test deps to avoid flaky visual runs ([fe99fffe45e](https://github.com/migrationsverket/midas/commit/fe99fffe45e))
22
+ - **table-styles:** clear hover state before screenshots and show version in Storybook ([a24c63cae66](https://github.com/migrationsverket/midas/commit/a24c63cae66))
23
+
24
+ ### ๐Ÿงฑ Updated Dependencies
25
+
26
+ - Updated components to 17.27.3
27
+ - Updated theme to 3.17.4
28
+
1
29
  ## 2.0.125 (2026-09-29)
2
30
 
3
31
  ### ๐Ÿš€ Features
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Minimal real TanStack Table render exercising every selector in
3
+ * tanstack-table.css: striped/hover rows, a sortable header (with its
4
+ * neutral sort icon), and a drag handle. Used by both the DOM-assertion
5
+ * spec and the visual-regression story โ€” this is the CSS contract's only
6
+ * fixture, so keep both in sync with it rather than each other.
7
+ */
8
+ export declare const BasicTable: () => import('react').JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { BasicTable } from './BasicTable';
3
+ declare const _default: {
4
+ title: string;
5
+ component: () => import('react').JSX.Element;
6
+ };
7
+ export default _default;
8
+ type Story = StoryObj<typeof BasicTable>;
9
+ export declare const Default: Story;
@@ -0,0 +1,19 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { Pagination } from './Pagination';
3
+ interface CustomProps {
4
+ rows?: number;
5
+ }
6
+ type StoryProps = React.ComponentProps<typeof Pagination> & CustomProps;
7
+ type Story = StoryObj<StoryProps>;
8
+ declare const _default: {
9
+ title: string;
10
+ component: <T extends import('@tanstack/table-core').RowData>(props: import('./Pagination').PaginationProps<T>) => import('react').JSX.Element;
11
+ tags: string[];
12
+ args: {
13
+ pageSizeOptions: number[];
14
+ rows: number;
15
+ };
16
+ render: ({ rows, ...args }: StoryProps) => import('react').JSX.Element;
17
+ };
18
+ export default _default;
19
+ export declare const Primary: Story;
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "description": "Midas table components and styles for TanStack Table",
15
15
  "homepage": "https://designsystem.migrationsverket.se/",
16
16
  "license": "CC0-1.0",
17
- "version": "2.0.125",
17
+ "version": "2.1.1",
18
18
  "main": "./index.mjs",
19
19
  "types": "./index.d.ts",
20
20
  "files": [
@@ -31,12 +31,13 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@midas-ds/components": "17.27.2",
35
- "@midas-ds/theme": "3.17.3",
34
+ "@midas-ds/components": "17.27.4",
35
+ "@midas-ds/theme": "3.17.5",
36
36
  "react-aria-components": "1.21.1",
37
37
  "react-aria": "3.52.1"
38
38
  },
39
39
  "peerDependencies": {
40
- "@tanstack/react-table": "^8.21.3"
40
+ "@tanstack/react-table": "^8.21.3 || ^9.0.0",
41
+ "react": "^18.3.1 || ^19.0.0"
41
42
  }
42
43
  }