Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ node_modules
.build
.idea
web_modules
dist
dist-commonjs
types
coverage
coverage
.claude
5 changes: 5 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# @storybook/react@6 and some other dev tools declare React ^16/17 peer deps
# but work fine with React 18/19. Legacy mode skips strict peer dep checking
# for the development environment only. Runtime dependencies are fully React 19
# compatible.
legacy-peer-deps=true
29 changes: 7 additions & 22 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
const path = require("path")
import type { StorybookConfig } from "@storybook/react-vite"

const toPath = (_path: string) => path.join(process.cwd(), _path)

module.exports = {
const config: StorybookConfig = {
stories: ["../src/**/stories/*.stories.tsx"],
webpackFinal: async (config: any) => {
config.module.rules.push({
test: /\.mjs$/,
include: /node_modules/,
type: "javascript/auto",
})
return {
...config,
devtool: "inline-source-map",
resolve: {
...config.resolve,
alias: {
...config.resolve.alias,
"@emotion/core": toPath("node_modules/@emotion/react"),
"emotion-theming": toPath("node_modules/@emotion/react"),
},
},
}
framework: {
name: "@storybook/react-vite",
options: {},
},
staticDirs: ["../src/stories/static"],
}

export default config
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

Loading