From 90c4b38c383b1c6986a322fcf0607236f1da6fe7 Mon Sep 17 00:00:00 2001 From: Antti Lehto Date: Thu, 19 Dec 2024 02:48:11 +0200 Subject: [PATCH] fix: make storybook work --- .storybook/main.js | 8 +- .storybook/manager.js | 2 +- package.json | 15 +- pnpm-lock.yaml | 378 ++++++------------ stories/{Bar.tsx => Bar.stories.tsx} | 0 stories/{Bubble.tsx => Bubble.stories.tsx} | 0 stories/{Chart.tsx => Chart.stories.tsx} | 0 .../{Doughnut.tsx => Doughnut.stories.tsx} | 0 stories/{Line.tsx => Line.stories.tsx} | 0 stories/{Pie.tsx => Pie.stories.tsx} | 0 .../{PolarArea.tsx => PolarArea.stories.tsx} | 0 stories/{Radar.tsx => Radar.stories.tsx} | 0 stories/{Scatter.tsx => Scatter.stories.tsx} | 0 13 files changed, 128 insertions(+), 275 deletions(-) rename stories/{Bar.tsx => Bar.stories.tsx} (100%) rename stories/{Bubble.tsx => Bubble.stories.tsx} (100%) rename stories/{Chart.tsx => Chart.stories.tsx} (100%) rename stories/{Doughnut.tsx => Doughnut.stories.tsx} (100%) rename stories/{Line.tsx => Line.stories.tsx} (100%) rename stories/{Pie.tsx => Pie.stories.tsx} (100%) rename stories/{PolarArea.tsx => PolarArea.stories.tsx} (100%) rename stories/{Radar.tsx => Radar.stories.tsx} (100%) rename stories/{Scatter.tsx => Scatter.stories.tsx} (100%) diff --git a/.storybook/main.js b/.storybook/main.js index 69756afe8..6ade63c25 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -2,9 +2,6 @@ const path = require('path'); const { mergeConfig } = require('vite'); module.exports = { - core: { - builder: '@storybook/builder-vite', - }, viteFinal(config) { return mergeConfig(config, { resolve: { @@ -20,4 +17,9 @@ module.exports = { '@storybook/addon-controls', '@storybook/addon-actions', ], + framework: { + name: '@storybook/react-vite', + options: {}, + }, + docs: {}, }; diff --git a/.storybook/manager.js b/.storybook/manager.js index d64c248bf..6ff995f8a 100644 --- a/.storybook/manager.js +++ b/.storybook/manager.js @@ -1,4 +1,4 @@ -import { addons } from '@storybook/addons'; +import { addons } from '@storybook/manager-api'; import { theme } from './theme'; diff --git a/package.json b/package.json index 99436094d..7549cbf1c 100644 --- a/package.json +++ b/package.json @@ -42,8 +42,8 @@ "postpublish": "del ./package", "emitDeclarations": "tsc --emitDeclarationOnly", "build": "rollup -c && pnpm emitDeclarations", - "start:storybook": "start-storybook -p 6006 --ci", - "build:storybook": "del ./storybook-static; NODE_ENV=production build-storybook", + "start:storybook": "storybook dev -p 6006 --ci", + "build:storybook": "del ./storybook-static; NODE_ENV=production storybook build", "test:lint": "eslint \"src/**/*.{ts,tsx}\" \"stories/**/*.{ts,tsx}\" \"sandboxes/**/*.{ts,tsx}\" \"test/**/*.{ts,tsx}\"", "test:unit": "vitest run --coverage", "test:unit:watch": "vitest watch", @@ -70,11 +70,12 @@ "@storybook/addon-actions": "^8.4.7", "@storybook/addon-controls": "^8.4.7", "@storybook/addon-docs": "^8.4.7", - "@storybook/addons": "^7.6.17", - "@storybook/builder-vite": "^8.4.7", - "@storybook/client-api": "^7.6.17", + "@storybook/preview-api": "^8.4.7", "@storybook/client-logger": "^8.4.7", + "@storybook/manager-api": "^8.4.7", "@storybook/react": "^8.4.7", + "@storybook/react-vite": "^8.4.7", + "@storybook/theming": "^8.4.7", "@swc/core": "^1.10.1", "@swc/helpers": "^0.5.15", "@testing-library/dom": "^10.4.0", @@ -118,6 +119,7 @@ "simple-github-release": "^1.0.0", "size-limit": "^8.0.0", "standard-version": "^9.3.1", + "storybook": "^8.4.7", "tsd": "^0.25.0", "typescript": "^4.9.4", "vite": "^6.0.3", @@ -133,5 +135,6 @@ ] } } - } + }, + "packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 238bb3cef..2ffe57a85 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,21 +32,24 @@ importers: '@storybook/addon-docs': specifier: ^8.4.7 version: 8.4.7(@types/react@18.3.16)(storybook@8.4.7(prettier@3.4.2)) - '@storybook/addons': - specifier: ^7.6.17 - version: 7.6.17(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@storybook/builder-vite': - specifier: ^8.4.7 - version: 8.4.7(storybook@8.4.7(prettier@3.4.2))(vite@6.0.3(@types/node@18.19.68)(jiti@1.21.6)(terser@5.37.0)) - '@storybook/client-api': - specifier: ^7.6.17 - version: 7.6.17 '@storybook/client-logger': specifier: ^8.4.7 version: 8.4.7(storybook@8.4.7(prettier@3.4.2)) + '@storybook/manager-api': + specifier: ^8.4.7 + version: 8.4.7(storybook@8.4.7(prettier@3.4.2)) + '@storybook/preview-api': + specifier: ^8.4.7 + version: 8.4.7(storybook@8.4.7(prettier@3.4.2)) '@storybook/react': specifier: ^8.4.7 version: 8.4.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@3.4.2))(typescript@4.9.5) + '@storybook/react-vite': + specifier: ^8.4.7 + version: 8.4.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@3.29.5)(storybook@8.4.7(prettier@3.4.2))(typescript@4.9.5)(vite@6.0.3(@types/node@18.19.68)(jiti@1.21.6)(terser@5.37.0)) + '@storybook/theming': + specifier: ^8.4.7 + version: 8.4.7(storybook@8.4.7(prettier@3.4.2)) '@swc/core': specifier: ^1.10.1 version: 1.10.1(@swc/helpers@0.5.15) @@ -176,6 +179,9 @@ importers: standard-version: specifier: ^9.3.1 version: 9.5.0 + storybook: + specifier: ^8.4.7 + version: 8.4.7(prettier@3.4.2) tsd: specifier: ^0.25.0 version: 0.25.0 @@ -388,11 +394,6 @@ packages: resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} - '@emotion/use-insertion-effect-with-fallbacks@1.2.0': - resolution: {integrity: sha512-yJMtVdH59sxi/aVJBpk9FQq+OR8ll5GT8oWd57UpeaKEVGab41JWaCFA7FRLoMLloOZF/c/wsPoe+bfGmRKgDg==} - peerDependencies: - react: '>=16.8.0' - '@esbuild/aix-ppc64@0.21.5': resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} engines: {node: '>=12'} @@ -721,6 +722,15 @@ packages: resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==} engines: {node: '>=8'} + '@joshwooding/vite-plugin-react-docgen-typescript@0.4.2': + resolution: {integrity: sha512-feQ+ntr+8hbVudnsTUapiMN9q8T90XA1d5jn9QzY09sNoj4iD9wi0PY1vsBFTda4ZjEaxRK9S81oarR2nj7TFQ==} + peerDependencies: + typescript: '>= 4.3.x' + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@jridgewell/gen-mapping@0.3.8': resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==} engines: {node: '>=6.0.0'} @@ -978,9 +988,6 @@ packages: peerDependencies: storybook: ^8.4.7 - '@storybook/addons@7.6.17': - resolution: {integrity: sha512-Ok18Y698Ccyg++MoUNJNHY0cXUvo8ETFIRLJk1g9ElJ70j6kPgNnzW2pAtZkBNmswHtofZ7pT156cj96k/LgfA==} - '@storybook/blocks@8.4.7': resolution: {integrity: sha512-+QH7+JwXXXIyP3fRCxz/7E2VZepAanXJM7G8nbR3wWsqWgrRp4Wra6MvybxAYCxU7aNfJX5c+RW84SNikFpcIA==} peerDependencies: @@ -999,15 +1006,6 @@ packages: storybook: ^8.4.7 vite: ^4.0.0 || ^5.0.0 || ^6.0.0 - '@storybook/channels@7.6.17': - resolution: {integrity: sha512-GFG40pzaSxk1hUr/J/TMqW5AFDDPUSu+HkeE/oqSWJbOodBOLJzHN6CReJS6y1DjYSZLNFt1jftPWZZInG/XUA==} - - '@storybook/client-api@7.6.17': - resolution: {integrity: sha512-rsxKBRLtUmBXbxG79Pf1GzUuMDMsFdhNR/a5k7kIA/mlEsvWD8are/aH/zk1oLr7+5QOqEkiXLL6+Erry7dzXA==} - - '@storybook/client-logger@7.6.17': - resolution: {integrity: sha512-6WBYqixAXNAXlSaBWwgljWpAu10tPRBJrcFvx2gPUne58EeMM20Gi/iHYBz2kMCY+JLAgeIH7ZxInqwO8vDwiQ==} - '@storybook/client-logger@8.4.7': resolution: {integrity: sha512-MNkNztleN2LKt16hcX7IfCGOOzlpbaCCgrv4t28S/CpiyCIfvaVtxNZbSWrPV7kCbbL0jKYmRwY2UOutjUn7tg==} peerDependencies: @@ -1018,9 +1016,6 @@ packages: peerDependencies: storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 - '@storybook/core-events@7.6.17': - resolution: {integrity: sha512-AriWMCm/k1cxlv10f+jZ1wavThTRpLaN3kY019kHWbYT9XgaSuLU67G7GPr3cGnJ6HuA6uhbzu8qtqVCd6OfXA==} - '@storybook/core@8.4.7': resolution: {integrity: sha512-7Z8Z0A+1YnhrrSXoKKwFFI4gnsLbWzr8fnDCU6+6HlDukFYh8GHRcZ9zKfqmy6U3hw2h8H5DrHsxWfyaYUUOoA==} peerDependencies: @@ -1047,17 +1042,11 @@ packages: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta - '@storybook/manager-api@7.6.17': - resolution: {integrity: sha512-IJIV1Yc6yw1dhCY4tReHCfBnUKDqEBnMyHp3mbXpsaHxnxJZrXO45WjRAZIKlQKhl/Ge1CrnznmHRCmYgqmrWg==} - '@storybook/manager-api@8.4.7': resolution: {integrity: sha512-ELqemTviCxAsZ5tqUz39sDmQkvhVAvAgiplYy9Uf15kO0SP2+HKsCMzlrm2ue2FfkUNyqbDayCPPCB0Cdn/mpQ==} peerDependencies: storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 - '@storybook/preview-api@7.6.17': - resolution: {integrity: sha512-wLfDdI9RWo1f2zzFe54yRhg+2YWyxLZvqdZnSQ45mTs4/7xXV5Wfbv3QNTtcdw8tT3U5KRTrN1mTfTCiRJc0Kw==} - '@storybook/preview-api@8.4.7': resolution: {integrity: sha512-0QVQwHw+OyZGHAJEXo6Knx+6/4er7n2rTDE5RYJ9F2E2Lg42E19pfdLlq2Jhoods2Xrclo3wj6GWR//Ahi39Eg==} peerDependencies: @@ -1070,6 +1059,15 @@ packages: react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta storybook: ^8.4.7 + '@storybook/react-vite@8.4.7': + resolution: {integrity: sha512-iiY9iLdMXhDnilCEVxU6vQsN72pW3miaf0WSenOZRyZv3HdbpgOxI0qapOS0KCyRUnX9vTlmrSPTMchY4cAeOg==} + engines: {node: '>=18.0.0'} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta + storybook: ^8.4.7 + vite: ^4.0.0 || ^5.0.0 || ^6.0.0 + '@storybook/react@8.4.7': resolution: {integrity: sha512-nQ0/7i2DkaCb7dy0NaT95llRVNYWQiPIVuhNfjr1mVhEP7XD090p0g7eqUmsx8vfdHh2BzWEo6CoBFRd3+EXxw==} engines: {node: '>=18.0.0'} @@ -1085,23 +1083,11 @@ packages: typescript: optional: true - '@storybook/router@7.6.17': - resolution: {integrity: sha512-GnyC0j6Wi5hT4qRhSyT8NPtJfGmf82uZw97LQRWeyYu5gWEshUdM7aj40XlNiScd5cZDp0owO1idduVF2k2l2A==} - - '@storybook/theming@7.6.17': - resolution: {integrity: sha512-ZbaBt3KAbmBtfjNqgMY7wPMBshhSJlhodyMNQypv+95xLD/R+Az6aBYbpVAOygLaUQaQk4ar7H/Ww6lFIoiFbA==} - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - '@storybook/theming@8.4.7': resolution: {integrity: sha512-99rgLEjf7iwfSEmdqlHkSG3AyLcK0sfExcr0jnc6rLiAkBhzuIsvcHjjUwkR210SOCgXqBPW0ZA6uhnuyppHLw==} peerDependencies: storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0 - '@storybook/types@7.6.17': - resolution: {integrity: sha512-GRY0xEJQ0PrL7DY2qCNUdIfUOE0Gsue6N+GBJw9ku1IUDFLJRDOF+4Dx2BvYcVCPI5XPqdWKlEyZdMdKjiQN7Q==} - '@swc/core-darwin-arm64@1.10.1': resolution: {integrity: sha512-NyELPp8EsVZtxH/mEqvzSyWpfPJ1lugpTQcSlMduZLj1EASLO4sC8wt8hmL1aizRlsbjCX+r0PyL+l0xQ64/6Q==} engines: {node: '>=10'} @@ -1233,15 +1219,12 @@ packages: '@types/babel__traverse@7.20.6': resolution: {integrity: sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==} - '@types/body-parser@1.19.5': - resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} - - '@types/connect@3.4.38': - resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} - '@types/conventional-commits-parser@5.0.1': resolution: {integrity: sha512-7uz5EHdzz2TqoMfV7ee61Egf5y6NkcO4FB/1iCCQnbeiI1F3xzv3vK5dBCXUCLQgGYS+mUeigK1iKQzvED+QnQ==} + '@types/doctrine@0.0.9': + resolution: {integrity: sha512-eOIHzCUSH7SMfonMG1LsC2f8vxBFtho6NGBznK41R84YzPuvSBzrhEps33IsQiOW9+VL6NQ9DbjQJznk/S4uRA==} + '@types/eslint-scope@3.7.7': resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} @@ -1254,12 +1237,6 @@ packages: '@types/estree@1.0.6': resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} - '@types/express-serve-static-core@4.19.6': - resolution: {integrity: sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A==} - - '@types/express@4.17.21': - resolution: {integrity: sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==} - '@types/faker@5.5.9': resolution: {integrity: sha512-uCx6mP3UY5SIO14XlspxsGjgaemrxpssJI0Ol+GfhxtcKpv9pgRZYsS4eeKeHVLje6Qtc8lGszuBI461+gVZBA==} @@ -1269,9 +1246,6 @@ packages: '@types/hammerjs@2.0.46': resolution: {integrity: sha512-ynRvcq6wvqexJ9brDMS4BnBLzmr0e14d6ZJTEShTBWKymQiHwlAyGu0ZPEFI2Fh1U53F7tN9ufClWM5KvqkKOw==} - '@types/http-errors@2.0.4': - resolution: {integrity: sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==} - '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} @@ -1281,9 +1255,6 @@ packages: '@types/mdx@2.0.13': resolution: {integrity: sha512-+OWZQfAYyio6YkJb3HLxDrvnx6SWWDbC0zVPfBRzUk0/nqoDyf6dNxQi3eArPe8rJ473nobTMQ/8Zk+LxJ+Yuw==} - '@types/mime@1.3.5': - resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==} - '@types/minimist@1.2.5': resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==} @@ -1299,12 +1270,6 @@ packages: '@types/prop-types@15.7.14': resolution: {integrity: sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==} - '@types/qs@6.9.17': - resolution: {integrity: sha512-rX4/bPcfmvxHDv0XjfJELTTr+iB+tn032nPILqHm5wbthUUUuVtNGGqzhya9XUxjTP8Fpr0qYgSZZKxGY++svQ==} - - '@types/range-parser@1.2.7': - resolution: {integrity: sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==} - '@types/react-dom@18.3.5': resolution: {integrity: sha512-P4t6saawp+b/dFrUr2cvkVsfvPguwsxtH6dNIYRllMsefqFzkZk5UIjzyDOv5g1dXIPdG4Sp1yCR4Z6RCUsG/Q==} peerDependencies: @@ -1316,12 +1281,6 @@ packages: '@types/resolve@1.20.2': resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} - '@types/send@0.17.4': - resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==} - - '@types/serve-static@1.15.7': - resolution: {integrity: sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==} - '@types/uuid@9.0.8': resolution: {integrity: sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==} @@ -2526,9 +2485,6 @@ packages: resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} engines: {node: ^10.12.0 || >=12.0.0} - file-system-cache@2.3.0: - resolution: {integrity: sha512-l4DMNdsIPsVnKrgEXbJwDJsA5mB8rGwHYERMgqQx/xAUtChPJMre1bXBzDEqqVbWv9AIbFezXMxeEkZDSrXUOQ==} - fill-range@7.1.1: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} @@ -2588,10 +2544,6 @@ packages: fs-constants@1.0.0: resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} - fs-extra@11.1.1: - resolution: {integrity: sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==} - engines: {node: '>=14.14'} - fs-extra@11.2.0: resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==} engines: {node: '>=14.14'} @@ -3281,6 +3233,10 @@ packages: resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} hasBin: true + magic-string@0.27.0: + resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==} + engines: {node: '>=12'} + magic-string@0.30.15: resolution: {integrity: sha512-zXeaYRgZ6ldS1RJJUrMrYgNJ4fdwnyI6tVqoiIhyCyv5IVTK9BU8Ic2l253GGETQHxI4HNUwhJ3fjDhKqEoaAw==} @@ -3302,16 +3258,10 @@ packages: resolution: {integrity: sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==} engines: {node: '>=8'} - map-or-similar@1.5.0: - resolution: {integrity: sha512-0aF7ZmVon1igznGI4VS30yugpduQW3y3GkcgGJOp7d8x8QrizhigUxjI/m2UojsXXto+jLAH3KSz+xOJTiORjg==} - math-intrinsics@1.0.0: resolution: {integrity: sha512-4MqMiKP90ybymYvsut0CH2g4XWbfLtmlCkXmtmdcDCxNB+mQcu1w/1+L/VD7vi/PSv7X2JYV7SCcR+jiPXnQtA==} engines: {node: '>= 0.4'} - memoizerific@1.11.3: - resolution: {integrity: sha512-/EuHYwAPdLtXwAwSZkh/Gutery6pD2KYd44oQLhAvQp/50mpyduZh8Q7PYHXTCJ+wuXxt7oij2LXyIJOOYFPog==} - meow@10.1.5: resolution: {integrity: sha512-/d+PQ4GKmGvM9Bee/DPa8z3mXs/pkvJE2KEThngVNOqtmljC6K7NMPxtc2JeZYTmpWb9k/TmxjeL18ez3h7vCw==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -3741,12 +3691,18 @@ packages: resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==} engines: {node: '>=10'} - ramda@0.29.0: - resolution: {integrity: sha512-BBea6L67bYLtdbOqfp8f58fPMqEwx0doL+pAi8TZyp2YWz8R9G8z9x75CZI8W+ftqhFHCpEX2cRnUUXK130iKA==} - randombytes@2.1.0: resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} + react-docgen-typescript@2.2.2: + resolution: {integrity: sha512-tvg2ZtOpOi6QDwsb3GZhOjDkkX0h8Z2gipvTg6OVMUyoYoURhEiRNePT8NZItTVCDh39JJHnLdfCOkzoLbFnTg==} + peerDependencies: + typescript: '>= 4.3.x' + + react-docgen@7.1.0: + resolution: {integrity: sha512-APPU8HB2uZnpl6Vt/+0AFoVYgSRtfiP6FLrZgPPTDmqSb2R4qZRbgd0A3VzIFxDt5e+Fozjx79WjLWnF69DK8g==} + engines: {node: '>=16.14.0'} + react-dom@18.3.1: resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==} peerDependencies: @@ -4072,9 +4028,6 @@ packages: std-env@3.8.0: resolution: {integrity: sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w==} - store2@2.14.3: - resolution: {integrity: sha512-4QcZ+yx7nzEFiV4BMLnr/pRa5HYzNITX2ri0Zh6sT9EyQHbBHacC6YigllUPU9X3D0f/22QCgfokpKs52YRrUg==} - storybook@8.4.7: resolution: {integrity: sha512-RP/nMJxiWyFc8EVMH5gp20ID032Wvk+Yr3lmKidoegto5Iy+2dVQnUoElZb2zpbVXNHWakGuAkfI0dY1Hfp/vw==} hasBin: true @@ -4180,9 +4133,6 @@ packages: symbol-tree@3.2.4: resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} - synchronous-promise@2.0.17: - resolution: {integrity: sha512-AsS729u2RHUfEra9xJrE39peJcc2stq2+poBXX8bcM08Y6g9j/i/PUzwNQqkaJde7Ntg1TO7bSREbR5sdosQ+g==} - synckit@0.9.2: resolution: {integrity: sha512-vrozgXDQwYO72vHjUb/HnFbQx1exDjoKzqx23aXEg2a9VIg2TSFZ8FmeZpTjUCFMYw7mpX4BE2SFu8wI7asYsw==} engines: {node: ^14.18.0 || >=16.0.0} @@ -4198,9 +4148,6 @@ packages: resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} engines: {node: '>=6'} - telejson@7.2.0: - resolution: {integrity: sha512-1QTEcJkJEhc8OnStBx/ILRu5J2p0GjvWsBx56bmZRqnrkdBMUe+nX92jxV+p3dB4CP6PZCdJMQJwCggkNBMzkQ==} - terser-webpack-plugin@5.3.10: resolution: {integrity: sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==} engines: {node: '>= 10.13.0'} @@ -4324,6 +4271,10 @@ packages: tsconfig-paths@3.15.0: resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==} + tsconfig-paths@4.2.0: + resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==} + engines: {node: '>=6'} + tsd@0.25.0: resolution: {integrity: sha512-liUlvKtsdr+70XEZP/kkF6U8+Q9URZi4Pw58ih7a9x3kjJblG8rdVgvG62xcvkgRva1q3yWX5qAxfYZuYiC5CA==} engines: {node: '>=14.16'} @@ -5015,10 +4966,6 @@ snapshots: dependencies: '@jridgewell/trace-mapping': 0.3.9 - '@emotion/use-insertion-effect-with-fallbacks@1.2.0(react@18.3.1)': - dependencies: - react: 18.3.1 - '@esbuild/aix-ppc64@0.21.5': optional: true @@ -5210,6 +5157,14 @@ snapshots: '@istanbuljs/schema@0.1.3': {} + '@joshwooding/vite-plugin-react-docgen-typescript@0.4.2(typescript@4.9.5)(vite@6.0.3(@types/node@18.19.68)(jiti@1.21.6)(terser@5.37.0))': + dependencies: + magic-string: 0.27.0 + react-docgen-typescript: 2.2.2(typescript@4.9.5) + vite: 6.0.3(@types/node@18.19.68)(jiti@1.21.6)(terser@5.37.0) + optionalDependencies: + typescript: 4.9.5 + '@jridgewell/gen-mapping@0.3.8': dependencies: '@jridgewell/set-array': 1.2.1 @@ -5499,15 +5454,6 @@ snapshots: transitivePeerDependencies: - '@types/react' - '@storybook/addons@7.6.17(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': - dependencies: - '@storybook/manager-api': 7.6.17(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@storybook/preview-api': 7.6.17 - '@storybook/types': 7.6.17 - transitivePeerDependencies: - - react - - react-dom - '@storybook/blocks@8.4.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@3.4.2))': dependencies: '@storybook/csf': 0.1.12 @@ -5526,24 +5472,6 @@ snapshots: ts-dedent: 2.2.0 vite: 6.0.3(@types/node@18.19.68)(jiti@1.21.6)(terser@5.37.0) - '@storybook/channels@7.6.17': - dependencies: - '@storybook/client-logger': 7.6.17 - '@storybook/core-events': 7.6.17 - '@storybook/global': 5.0.0 - qs: 6.13.1 - telejson: 7.2.0 - tiny-invariant: 1.3.3 - - '@storybook/client-api@7.6.17': - dependencies: - '@storybook/client-logger': 7.6.17 - '@storybook/preview-api': 7.6.17 - - '@storybook/client-logger@7.6.17': - dependencies: - '@storybook/global': 5.0.0 - '@storybook/client-logger@8.4.7(storybook@8.4.7(prettier@3.4.2))': dependencies: storybook: 8.4.7(prettier@3.4.2) @@ -5552,10 +5480,6 @@ snapshots: dependencies: storybook: 8.4.7(prettier@3.4.2) - '@storybook/core-events@7.6.17': - dependencies: - ts-dedent: 2.2.0 - '@storybook/core@8.4.7(prettier@3.4.2)': dependencies: '@storybook/csf': 0.1.12 @@ -5592,47 +5516,10 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@storybook/manager-api@7.6.17(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': - dependencies: - '@storybook/channels': 7.6.17 - '@storybook/client-logger': 7.6.17 - '@storybook/core-events': 7.6.17 - '@storybook/csf': 0.1.12 - '@storybook/global': 5.0.0 - '@storybook/router': 7.6.17 - '@storybook/theming': 7.6.17(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@storybook/types': 7.6.17 - dequal: 2.0.3 - lodash: 4.17.21 - memoizerific: 1.11.3 - store2: 2.14.3 - telejson: 7.2.0 - ts-dedent: 2.2.0 - transitivePeerDependencies: - - react - - react-dom - '@storybook/manager-api@8.4.7(storybook@8.4.7(prettier@3.4.2))': dependencies: storybook: 8.4.7(prettier@3.4.2) - '@storybook/preview-api@7.6.17': - dependencies: - '@storybook/channels': 7.6.17 - '@storybook/client-logger': 7.6.17 - '@storybook/core-events': 7.6.17 - '@storybook/csf': 0.1.12 - '@storybook/global': 5.0.0 - '@storybook/types': 7.6.17 - '@types/qs': 6.9.17 - dequal: 2.0.3 - lodash: 4.17.21 - memoizerific: 1.11.3 - qs: 6.13.1 - synchronous-promise: 2.0.17 - ts-dedent: 2.2.0 - util-deprecate: 1.0.2 - '@storybook/preview-api@8.4.7(storybook@8.4.7(prettier@3.4.2))': dependencies: storybook: 8.4.7(prettier@3.4.2) @@ -5643,6 +5530,27 @@ snapshots: react-dom: 18.3.1(react@18.3.1) storybook: 8.4.7(prettier@3.4.2) + '@storybook/react-vite@8.4.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@3.29.5)(storybook@8.4.7(prettier@3.4.2))(typescript@4.9.5)(vite@6.0.3(@types/node@18.19.68)(jiti@1.21.6)(terser@5.37.0))': + dependencies: + '@joshwooding/vite-plugin-react-docgen-typescript': 0.4.2(typescript@4.9.5)(vite@6.0.3(@types/node@18.19.68)(jiti@1.21.6)(terser@5.37.0)) + '@rollup/pluginutils': 5.1.3(rollup@3.29.5) + '@storybook/builder-vite': 8.4.7(storybook@8.4.7(prettier@3.4.2))(vite@6.0.3(@types/node@18.19.68)(jiti@1.21.6)(terser@5.37.0)) + '@storybook/react': 8.4.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@3.4.2))(typescript@4.9.5) + find-up: 5.0.0 + magic-string: 0.30.15 + react: 18.3.1 + react-docgen: 7.1.0 + react-dom: 18.3.1(react@18.3.1) + resolve: 1.22.8 + storybook: 8.4.7(prettier@3.4.2) + tsconfig-paths: 4.2.0 + vite: 6.0.3(@types/node@18.19.68)(jiti@1.21.6)(terser@5.37.0) + transitivePeerDependencies: + - '@storybook/test' + - rollup + - supports-color + - typescript + '@storybook/react@8.4.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.4.7(prettier@3.4.2))(typescript@4.9.5)': dependencies: '@storybook/components': 8.4.7(storybook@8.4.7(prettier@3.4.2)) @@ -5657,32 +5565,10 @@ snapshots: optionalDependencies: typescript: 4.9.5 - '@storybook/router@7.6.17': - dependencies: - '@storybook/client-logger': 7.6.17 - memoizerific: 1.11.3 - qs: 6.13.1 - - '@storybook/theming@7.6.17(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': - dependencies: - '@emotion/use-insertion-effect-with-fallbacks': 1.2.0(react@18.3.1) - '@storybook/client-logger': 7.6.17 - '@storybook/global': 5.0.0 - memoizerific: 1.11.3 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - '@storybook/theming@8.4.7(storybook@8.4.7(prettier@3.4.2))': dependencies: storybook: 8.4.7(prettier@3.4.2) - '@storybook/types@7.6.17': - dependencies: - '@storybook/channels': 7.6.17 - '@types/babel__core': 7.20.5 - '@types/express': 4.17.21 - file-system-cache: 2.3.0 - '@swc/core-darwin-arm64@1.10.1': optional: true @@ -5804,20 +5690,13 @@ snapshots: dependencies: '@babel/types': 7.26.3 - '@types/body-parser@1.19.5': - dependencies: - '@types/connect': 3.4.38 - '@types/node': 18.19.68 - - '@types/connect@3.4.38': - dependencies: - '@types/node': 18.19.68 - '@types/conventional-commits-parser@5.0.1': dependencies: '@types/node': 18.19.68 optional: true + '@types/doctrine@0.0.9': {} + '@types/eslint-scope@3.7.7': dependencies: '@types/eslint': 9.6.1 @@ -5835,36 +5714,18 @@ snapshots: '@types/estree@1.0.6': {} - '@types/express-serve-static-core@4.19.6': - dependencies: - '@types/node': 18.19.68 - '@types/qs': 6.9.17 - '@types/range-parser': 1.2.7 - '@types/send': 0.17.4 - - '@types/express@4.17.21': - dependencies: - '@types/body-parser': 1.19.5 - '@types/express-serve-static-core': 4.19.6 - '@types/qs': 6.9.17 - '@types/serve-static': 1.15.7 - '@types/faker@5.5.9': {} '@types/git-url-parse@9.0.3': {} '@types/hammerjs@2.0.46': {} - '@types/http-errors@2.0.4': {} - '@types/json-schema@7.0.15': {} '@types/json5@0.0.29': {} '@types/mdx@2.0.13': {} - '@types/mime@1.3.5': {} - '@types/minimist@1.2.5': {} '@types/node@18.19.68': @@ -5877,10 +5738,6 @@ snapshots: '@types/prop-types@15.7.14': {} - '@types/qs@6.9.17': {} - - '@types/range-parser@1.2.7': {} - '@types/react-dom@18.3.5(@types/react@18.3.16)': dependencies: '@types/react': 18.3.16 @@ -5892,17 +5749,6 @@ snapshots: '@types/resolve@1.20.2': {} - '@types/send@0.17.4': - dependencies: - '@types/mime': 1.3.5 - '@types/node': 18.19.68 - - '@types/serve-static@1.15.7': - dependencies: - '@types/http-errors': 2.0.4 - '@types/node': 18.19.68 - '@types/send': 0.17.4 - '@types/uuid@9.0.8': {} '@types/yauzl@2.10.3': @@ -7428,11 +7274,6 @@ snapshots: dependencies: flat-cache: 3.2.0 - file-system-cache@2.3.0: - dependencies: - fs-extra: 11.1.1 - ramda: 0.29.0 - fill-range@7.1.1: dependencies: to-regex-range: 5.0.1 @@ -7498,12 +7339,6 @@ snapshots: fs-constants@1.0.0: {} - fs-extra@11.1.1: - dependencies: - graceful-fs: 4.2.11 - jsonfile: 6.1.0 - universalify: 2.0.1 - fs-extra@11.2.0: dependencies: graceful-fs: 4.2.11 @@ -8209,6 +8044,10 @@ snapshots: lz-string@1.5.0: {} + magic-string@0.27.0: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + magic-string@0.30.15: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 @@ -8229,14 +8068,8 @@ snapshots: map-obj@4.3.0: {} - map-or-similar@1.5.0: {} - math-intrinsics@1.0.0: {} - memoizerific@1.11.3: - dependencies: - map-or-similar: 1.5.0 - meow@10.1.5: dependencies: '@types/minimist': 1.2.5 @@ -8672,12 +8505,29 @@ snapshots: quick-lru@5.1.1: {} - ramda@0.29.0: {} - randombytes@2.1.0: dependencies: safe-buffer: 5.2.1 + react-docgen-typescript@2.2.2(typescript@4.9.5): + dependencies: + typescript: 4.9.5 + + react-docgen@7.1.0: + dependencies: + '@babel/core': 7.26.0 + '@babel/traverse': 7.26.4 + '@babel/types': 7.26.3 + '@types/babel__core': 7.20.5 + '@types/babel__traverse': 7.20.6 + '@types/doctrine': 0.0.9 + '@types/resolve': 1.20.2 + doctrine: 3.0.0 + resolve: 1.22.8 + strip-indent: 4.0.0 + transitivePeerDependencies: + - supports-color + react-dom@18.3.1(react@18.3.1): dependencies: loose-envify: 1.4.0 @@ -9077,8 +8927,6 @@ snapshots: std-env@3.8.0: {} - store2@2.14.3: {} - storybook@8.4.7(prettier@3.4.2): dependencies: '@storybook/core': 8.4.7(prettier@3.4.2) @@ -9201,8 +9049,6 @@ snapshots: symbol-tree@3.2.4: {} - synchronous-promise@2.0.17: {} - synckit@0.9.2: dependencies: '@pkgr/core': 0.1.1 @@ -9225,10 +9071,6 @@ snapshots: inherits: 2.0.4 readable-stream: 3.6.2 - telejson@7.2.0: - dependencies: - memoizerific: 1.11.3 - terser-webpack-plugin@5.3.10(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.0)(webpack@5.97.1(@swc/core@1.10.1(@swc/helpers@0.5.15))(esbuild@0.24.0)): dependencies: '@jridgewell/trace-mapping': 0.3.25 @@ -9342,6 +9184,12 @@ snapshots: minimist: 1.2.8 strip-bom: 3.0.0 + tsconfig-paths@4.2.0: + dependencies: + json5: 2.2.3 + minimist: 1.2.8 + strip-bom: 3.0.0 + tsd@0.25.0: dependencies: '@tsd/typescript': 4.9.5 diff --git a/stories/Bar.tsx b/stories/Bar.stories.tsx similarity index 100% rename from stories/Bar.tsx rename to stories/Bar.stories.tsx diff --git a/stories/Bubble.tsx b/stories/Bubble.stories.tsx similarity index 100% rename from stories/Bubble.tsx rename to stories/Bubble.stories.tsx diff --git a/stories/Chart.tsx b/stories/Chart.stories.tsx similarity index 100% rename from stories/Chart.tsx rename to stories/Chart.stories.tsx diff --git a/stories/Doughnut.tsx b/stories/Doughnut.stories.tsx similarity index 100% rename from stories/Doughnut.tsx rename to stories/Doughnut.stories.tsx diff --git a/stories/Line.tsx b/stories/Line.stories.tsx similarity index 100% rename from stories/Line.tsx rename to stories/Line.stories.tsx diff --git a/stories/Pie.tsx b/stories/Pie.stories.tsx similarity index 100% rename from stories/Pie.tsx rename to stories/Pie.stories.tsx diff --git a/stories/PolarArea.tsx b/stories/PolarArea.stories.tsx similarity index 100% rename from stories/PolarArea.tsx rename to stories/PolarArea.stories.tsx diff --git a/stories/Radar.tsx b/stories/Radar.stories.tsx similarity index 100% rename from stories/Radar.tsx rename to stories/Radar.stories.tsx diff --git a/stories/Scatter.tsx b/stories/Scatter.stories.tsx similarity index 100% rename from stories/Scatter.tsx rename to stories/Scatter.stories.tsx