karsten-design-system 1.2.90 → 2.0.0

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.
@@ -1,4 +1,4 @@
1
- import type { StoryObj } from '@storybook/react';
1
+ import type { StoryObj } from '@storybook/react-vite';
2
2
  import { Button } from './button';
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,9 +1,9 @@
1
- type AllowedFileType = 'image' | 'pdf';
1
+ type AllowedFileType = 'image' | 'pdf' | 'word' | 'excel' | 'video';
2
2
  export type FileWithPreview = {
3
3
  file?: File;
4
4
  id?: string;
5
5
  previewUrl?: string;
6
- type: 'image' | 'pdf';
6
+ type: AllowedFileType;
7
7
  isDeleted?: boolean;
8
8
  name?: string;
9
9
  };
@@ -1,4 +1,4 @@
1
- import type { StoryObj } from '@storybook/react';
1
+ import type { StoryObj } from '@storybook/react-vite';
2
2
  import { IconButton } from './iconButton';
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import type { StoryObj } from '@storybook/react';
1
+ import type { StoryObj } from '@storybook/react-vite';
2
2
  import { Spinner } from './spinner';
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import type { StoryObj } from '@storybook/react';
1
+ import type { StoryObj } from '@storybook/react-vite';
2
2
  import { Button } from './button';
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,9 +1,9 @@
1
- type AllowedFileType = 'image' | 'pdf';
1
+ type AllowedFileType = 'image' | 'pdf' | 'word' | 'excel' | 'video';
2
2
  export type FileWithPreview = {
3
3
  file?: File;
4
4
  id?: string;
5
5
  previewUrl?: string;
6
- type: 'image' | 'pdf';
6
+ type: AllowedFileType;
7
7
  isDeleted?: boolean;
8
8
  name?: string;
9
9
  };
@@ -1,4 +1,4 @@
1
- import type { StoryObj } from '@storybook/react';
1
+ import type { StoryObj } from '@storybook/react-vite';
2
2
  import { IconButton } from './iconButton';
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import type { StoryObj } from '@storybook/react';
1
+ import type { StoryObj } from '@storybook/react-vite';
2
2
  import { Spinner } from './spinner';
3
3
  declare const meta: {
4
4
  title: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "karsten-design-system",
3
3
  "description": "Karsten Design System Components",
4
- "version": "1.2.90",
4
+ "version": "2.0.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -32,8 +32,8 @@
32
32
  "access": "public"
33
33
  },
34
34
  "peerDependencies": {
35
- "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
36
- "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
35
+ "react": "^19.2.0",
36
+ "react-dom": "^19.2.0",
37
37
  "react-router-dom": "^7.1.4"
38
38
  },
39
39
  "dependencies": {
@@ -48,19 +48,15 @@
48
48
  "tailwindcss": "3"
49
49
  },
50
50
  "devDependencies": {
51
- "@chromatic-com/storybook": "^3.2.3",
51
+ "@chromatic-com/storybook": "^4.1.3",
52
52
  "@eslint/js": "^9.17.0",
53
53
  "@rollup/plugin-commonjs": "^28.0.2",
54
54
  "@rollup/plugin-json": "^6.1.0",
55
55
  "@rollup/plugin-node-resolve": "^16.0.0",
56
56
  "@rollup/plugin-typescript": "^12.1.2",
57
- "@storybook/addon-essentials": "^8.4.7",
58
- "@storybook/addon-interactions": "^8.4.7",
59
- "@storybook/addon-onboarding": "^8.4.7",
60
- "@storybook/blocks": "^8.4.7",
61
- "@storybook/react": "^8.4.7",
62
- "@storybook/react-vite": "^8.4.7",
63
- "@storybook/test": "^8.4.7",
57
+ "@storybook/addon-docs": "^10.0.8",
58
+ "@storybook/addon-onboarding": "^10.0.8",
59
+ "@storybook/react-vite": "^10.0.8",
64
60
  "@types/react": "^18.3.17",
65
61
  "@types/react-dom": "^18.3.5",
66
62
  "@typescript-eslint/eslint-plugin": "^8.18.2",
@@ -72,7 +68,7 @@
72
68
  "eslint-plugin-react": "^7.37.2",
73
69
  "eslint-plugin-react-hooks": "^5.1.0",
74
70
  "eslint-plugin-react-refresh": "^0.4.16",
75
- "eslint-plugin-storybook": "^0.11.2",
71
+ "eslint-plugin-storybook": "^10.0.8",
76
72
  "globals": "^15.13.0",
77
73
  "patch-package": "^8.0.1",
78
74
  "postcss": "^8.4.49",
@@ -81,8 +77,7 @@
81
77
  "rollup": "^4.32.1",
82
78
  "rollup-plugin-peer-deps-external": "^2.2.4",
83
79
  "rollup-plugin-postcss": "^4.0.2",
84
- "storybook": "^8.4.7",
85
- "storybook-dark-mode": "^4.0.2",
80
+ "storybook": "^10.0.8",
86
81
  "tailwindcss": "^3.4.17",
87
82
  "typescript": "~5.6.2",
88
83
  "typescript-eslint": "^8.18.1",