working storybook

This commit is contained in:
2024-08-03 14:41:00 +02:00
parent 76d053774d
commit a1b9742e74
12 changed files with 7178 additions and 16 deletions

View File

@@ -7,7 +7,9 @@
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -23,13 +25,24 @@
"default": "./dist/index.cjs"
}
},
"./css": "./dist/style.css"
"./style.css": "./dist/style.css"
},
"dependencies": {
"@ladle/react": "^4.1.0",
"clsx": "^2.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@chromatic-com/storybook": "^1.6.1",
"@storybook/addon-essentials": "^8.2.7",
"@storybook/addon-interactions": "^8.2.7",
"@storybook/addon-links": "^8.2.7",
"@storybook/addon-onboarding": "^8.2.7",
"@storybook/blocks": "^8.2.7",
"@storybook/react": "^8.2.7",
"@storybook/react-vite": "^8.2.7",
"@storybook/test": "^8.2.7",
"@types/node": "^22.1.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
@@ -39,7 +52,9 @@
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
"eslint-plugin-storybook": "^0.8.0",
"prettier": "^3.3.3",
"storybook": "^8.2.7",
"typescript": "5.4.2",
"vite": "^5.3.4",
"vite-plugin-dts": "4.0.0-beta.2"