diff --git a/.storybook/preview.js b/.storybook/preview.js index c63c617..5e5f732 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -1,5 +1,3 @@ -import '../src/css/tailwind.css'; - export const parameters = { actions: { argTypesRegex: '^on[A-Z].*' }, controls: { diff --git a/package-lock.json b/package-lock.json index 062ab51..c7b876a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,6 +33,7 @@ "autoprefixer": "^10.4.14", "chromatic": "^6.17.4", "cssnano": "^6.0.3", + "identity-obj-proxy": "^3.0.0", "jest": "^29.5.0", "jest-environment-jsdom": "^29.5.0", "postcss": "^8.4.33", @@ -14448,6 +14449,12 @@ "node": ">=6" } }, + "node_modules/harmony-reflect": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/harmony-reflect/-/harmony-reflect-1.6.2.tgz", + "integrity": "sha512-HIp/n38R9kQjDEziXyDTuW3vvoxxyxjxFzXLrBr18uB47GnSt+G9D29fqrpM5ZkspMcPICud3XsBJQ4Y2URg8g==", + "dev": true + }, "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -14817,6 +14824,18 @@ "postcss": "^8.1.0" } }, + "node_modules/identity-obj-proxy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz", + "integrity": "sha512-00n6YnVHKrinT9t0d9+5yZC6UBNJANpYEQvL2LlX6Ab9lnmxzIRcEmTPuyGScvl1+jKuCICX1Z0Ab1pPKKdikA==", + "dev": true, + "dependencies": { + "harmony-reflect": "^1.4.6" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", diff --git a/package.json b/package.json index 1fad879..e18a5c3 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "autoprefixer": "^10.4.14", "chromatic": "^6.17.4", "cssnano": "^6.0.3", + "identity-obj-proxy": "^3.0.0", "jest": "^29.5.0", "jest-environment-jsdom": "^29.5.0", "postcss": "^8.4.33", @@ -74,5 +75,10 @@ "storybook": "^7.6.10", "storybook-dark-mode": "^3.0.0", "tailwindcss": "^3.3.2" + }, + "jest": { + "moduleNameMapper":{ + "\\.(css|less|scss|sass)$": "identity-obj-proxy" + } } } diff --git a/src/js/index.js b/src/js/index.js index 564a5b8..023034f 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -1,2 +1,4 @@ +import '../css/tailwind.css'; + export { Button } from './components/button'; export { Panel } from './components/panel'; \ No newline at end of file