diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index faf12ab..18a42e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,11 +48,6 @@ jobs: node-version: 22 cache: 'npm' - - name: Update npm - run: | - npm install -g npm@11.7.0 - npm -v - - name: Install dependencies run: npm ci diff --git a/.gitignore b/.gitignore index e0b8a3e..676f768 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ node_modules dist dist-types addon +storybook-static .adnbn dist-ssr *.local diff --git a/.storybook/main.ts b/.storybook/main.ts index f676e69..f89b530 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -1,5 +1,5 @@ import path from "path"; -import merge from "webpack-merge"; +import {merge} from "webpack-merge"; import type {StorybookConfig} from "storybook-react-rsbuild"; const config: StorybookConfig = { diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index a7f6c4d..99f037e 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -1,5 +1,5 @@ import React, {useEffect} from "react"; -import type {Preview, StoryContext, StoryFn} from "@storybook/react"; +import type {Preview, StoryContext, StoryFn} from "storybook-react-rsbuild"; import {ThemeProvider} from "../src/providers"; import "../src/providers/ui/styles/default.scss"; import "../src/providers/ui/styles/reset.scss"; diff --git a/eslint.config.js b/eslint.config.js index 25dc6ec..7af7930 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,3 +1,6 @@ +// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format +import storybook from "eslint-plugin-storybook"; + import js from "@eslint/js"; import tseslint from "typescript-eslint"; @@ -19,6 +22,7 @@ export default tseslint.config( ".storybook", "public", "*.config.js", + "storybook-static", ], }, { @@ -36,5 +40,6 @@ export default tseslint.config( ...reactHooks.configs.recommended.rules, "react-refresh/only-export-components": "off", }, - } + }, + storybook.configs["flat/recommended"] ); diff --git a/package-lock.json b/package-lock.json index 82ea4a4..ae7b82f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,8 +26,9 @@ "@commitlint/config-conventional": "^20.0.0", "@eslint/js": "^9.21.0", "@release-it/conventional-changelog": "^10.0.4", - "@rsbuild/plugin-sass": "^1.4.0", - "@storybook/react": "^9.1.3", + "@rsbuild/core": "^1.7.3", + "@rsbuild/plugin-sass": "^1.5.1", + "@storybook/react": "^10.2.18", "@types/chrome": "^0.1.12", "@types/jest": "^30.0.0", "@types/lodash": "^4.17.20", @@ -39,6 +40,7 @@ "eslint": "^9.21.0", "eslint-plugin-react-hooks": "^5.1.0", "eslint-plugin-react-refresh": "^0.4.19", + "eslint-plugin-storybook": "10.2.18", "globals": "^15.15.0", "husky": "^9.1.7", "jest": "^30.1.3", @@ -47,8 +49,8 @@ "react-dom": "^19.1.0", "release-it": "^19.2.3", "rspack-plugin-virtual-module": "^1.0.0", - "storybook": "^9.1.3", - "storybook-react-rsbuild": "^2.1.0", + "storybook": "^10.2.18", + "storybook-react-rsbuild": "^3.3.2", "typescript": "~5.7.2", "typescript-eslint": "^8.24.1" }, @@ -6757,7 +6759,6 @@ "integrity": "sha512-kI1oQvCXbQYxUvQPnDLdjSX4gFsbrFNpuUj6jXEJ7IcJ74Q+n4oeFj74/8tKerhxhe0L90m/ZQfzLeN5ORGA9w==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@rspack/core": "~1.7.5", "@rspack/lite-tapable": "~1.1.0", @@ -6795,33 +6796,38 @@ } }, "node_modules/@rsbuild/plugin-sass": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@rsbuild/plugin-sass/-/plugin-sass-1.5.0.tgz", - "integrity": "sha512-m9eLjN8KQe43obVAevy8ivbcAVWJkChxooWev9m+7JZYSDPW1Fr3Zmc5ZBkroQUy8NxGTj/eWc434TmtzL2Mrw==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@rsbuild/plugin-sass/-/plugin-sass-1.5.1.tgz", + "integrity": "sha512-rwou4KvDerqvAI0hstjlwF9jgzxPaSOr0PkwtEPjTnQcR5mK6AXZICpUBJbHGgjlAM0aTegKf5IYl/ENvaAQrQ==", "dev": true, "license": "MIT", "dependencies": { "deepmerge": "^4.3.1", "loader-utils": "^2.0.4", - "postcss": "^8.5.6", + "postcss": "^8.5.8", "reduce-configs": "^1.1.1", "sass-embedded": "^1.97.3" }, "peerDependencies": { "@rsbuild/core": "^1.3.0 || ^2.0.0-0" + }, + "peerDependenciesMeta": { + "@rsbuild/core": { + "optional": true + } } }, "node_modules/@rsbuild/plugin-type-check": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@rsbuild/plugin-type-check/-/plugin-type-check-1.3.3.tgz", - "integrity": "sha512-V+WfrfofOy3zaCZ/CqR6TZDF/jTHqlL9DlwivlsmBjzT3A2zr86e9bzmzprrUwrqZNTAXQBpXiXJP1lJAFJ8Gw==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rsbuild/plugin-type-check/-/plugin-type-check-1.3.4.tgz", + "integrity": "sha512-ibOlMRVKeDfBBSd09YVzJjAUhX1KnTVbK0NK/rPBai3/DAovhUsmkxKDIsE+3HN93iGBSBiqOCIOrYFO2Z21Fw==", "dev": true, "license": "MIT", "dependencies": { "deepmerge": "^4.3.1", "json5": "^2.2.3", "reduce-configs": "^1.1.1", - "ts-checker-rspack-plugin": "^1.2.1" + "ts-checker-rspack-plugin": "^1.3.0" }, "peerDependencies": { "@rsbuild/core": "^1.0.0 || ^2.0.0-0" @@ -7273,27 +7279,36 @@ "dev": true, "license": "MIT" }, + "node_modules/@storybook/icons": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@storybook/icons/-/icons-2.0.1.tgz", + "integrity": "sha512-/smVjw88yK3CKsiuR71vNgWQ9+NuY2L+e8X7IMrFjexjm6ZR8ULrV2DRkTA61aV6ryefslzHEGDInGpnNeIocg==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, "node_modules/@storybook/react": { - "version": "9.1.17", - "resolved": "https://registry.npmjs.org/@storybook/react/-/react-9.1.17.tgz", - "integrity": "sha512-TZCplpep5BwjHPIIcUOMHebc/2qKadJHYPisRn5Wppl014qgT3XkFLpYkFgY1BaRXtqw8Mn3gqq4M/49rQ7Iww==", + "version": "10.2.18", + "resolved": "https://registry.npmjs.org/@storybook/react/-/react-10.2.18.tgz", + "integrity": "sha512-+HfDXFX0QAaohvI3RtEGpKs7mzDx3N78D5s5Y1FD1VZ53aqcIOsN4ZRkyKHiQW5vK/CBxVG3y2OgadQj5ske1g==", "dev": true, "license": "MIT", "dependencies": { "@storybook/global": "^5.0.0", - "@storybook/react-dom-shim": "9.1.17" - }, - "engines": { - "node": ">=20.0.0" + "@storybook/react-dom-shim": "10.2.18", + "react-docgen": "^8.0.2" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/storybook" }, "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": "^9.1.17", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "storybook": "^10.2.18", "typescript": ">= 4.9.x" }, "peerDependenciesMeta": { @@ -7323,9 +7338,9 @@ } }, "node_modules/@storybook/react-dom-shim": { - "version": "9.1.17", - "resolved": "https://registry.npmjs.org/@storybook/react-dom-shim/-/react-dom-shim-9.1.17.tgz", - "integrity": "sha512-Ss/lNvAy0Ziynu+KniQIByiNuyPz3dq7tD62hqSC/pHw190X+M7TKU3zcZvXhx2AQx1BYyxtdSHIZapb+P5mxQ==", + "version": "10.2.18", + "resolved": "https://registry.npmjs.org/@storybook/react-dom-shim/-/react-dom-shim-10.2.18.tgz", + "integrity": "sha512-LhVH5oTknCEF4cG5LDM81O1G/bzD15/lbsS6iqtJDqWsncrukwiUweA0uoRp2Uoc3E3/wW2qHs81sdLBi3qsMQ==", "dev": true, "license": "MIT", "funding": { @@ -7333,9 +7348,9 @@ "url": "https://opencollective.com/storybook" }, "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": "^9.1.17" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "storybook": "^10.2.18" } }, "node_modules/@svgr/babel-plugin-add-jsx-attribute": { @@ -7664,12 +7679,11 @@ } }, "node_modules/@swc/helpers": { - "version": "0.5.18", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.18.tgz", - "integrity": "sha512-TXTnIcNJQEKwThMMqBXsZ4VGAza6bvN4pa41Rkqoio6QBKMvo+5lexeTMScGCIxtzgQJzElcvIltani+adC5PQ==", + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.19.tgz", + "integrity": "sha512-QamiFeIK3txNjgUTNppE6MiG3p7TdninpZu0E0PbqVh1a9FNLT2FRhisaa4NcaX52XVhA5l7Pk58Ft7Sqi/2sA==", "dev": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "tslib": "^2.8.0" } @@ -9248,9 +9262,9 @@ } }, "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", "dev": true, "license": "MIT", "bin": { @@ -9850,76 +9864,6 @@ "dev": true, "license": "Apache-2.0" }, - "node_modules/better-opn": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/better-opn/-/better-opn-3.0.2.tgz", - "integrity": "sha512-aVNobHnJqLiUelTaHat9DZ1qM2w0C0Eym4LPI/3JxOnSokGVdsl1T1kN7TFvsEAD8G47A6VKQ0TVHqbBnYMJlQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "open": "^8.0.4" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/better-opn/node_modules/define-lazy-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/better-opn/node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true, - "license": "MIT", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/better-opn/node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/better-opn/node_modules/open": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", - "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", - "is-wsl": "^2.2.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/big.js": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", @@ -10994,7 +10938,6 @@ "dev": true, "hasInstallScript": true, "license": "MIT", - "peer": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" @@ -12094,19 +12037,6 @@ "@esbuild/win32-x64": "0.25.12" } }, - "node_modules/esbuild-register": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/esbuild-register/-/esbuild-register-3.6.0.tgz", - "integrity": "sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, - "peerDependencies": { - "esbuild": ">=0.12 <1" - } - }, "node_modules/esbuild/node_modules/@esbuild/darwin-arm64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", @@ -12270,6 +12200,20 @@ "eslint": ">=8.40" } }, + "node_modules/eslint-plugin-storybook": { + "version": "10.2.18", + "resolved": "https://registry.npmjs.org/eslint-plugin-storybook/-/eslint-plugin-storybook-10.2.18.tgz", + "integrity": "sha512-odqqHOKLY86phM/gFUxv5VVbl+m6YIh3Brpdb+tZmINr75JB96gUqwEeGWqVAJ1QUXHyq5UUZxCEbaT1unhsBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/utils": "^8.48.0" + }, + "peerDependencies": { + "eslint": ">=8", + "storybook": "^10.2.18" + } + }, "node_modules/eslint-scope": { "version": "8.4.0", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", @@ -16805,9 +16749,9 @@ } }, "node_modules/postcss": { - "version": "8.5.6", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", - "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "version": "8.5.8", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz", + "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==", "dev": true, "funding": [ { @@ -17205,17 +17149,6 @@ } } }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", @@ -17276,17 +17209,17 @@ } }, "node_modules/react-docgen": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/react-docgen/-/react-docgen-7.1.1.tgz", - "integrity": "sha512-hlSJDQ2synMPKFZOsKo9Hi8WWZTC7POR8EmWvTSjow+VDgKzkmjQvFm2fk0tmRw+f0vTOIYKlarR0iL4996pdg==", + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/react-docgen/-/react-docgen-8.0.2.tgz", + "integrity": "sha512-+NRMYs2DyTP4/tqWz371Oo50JqmWltR1h2gcdgUMAWZJIAvrd0/SqlCfx7tpzpl/s36rzw6qH2MjoNrxtRNYhA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/core": "^7.18.9", - "@babel/traverse": "^7.18.9", - "@babel/types": "^7.18.9", - "@types/babel__core": "^7.18.0", - "@types/babel__traverse": "^7.18.0", + "@babel/core": "^7.28.0", + "@babel/traverse": "^7.28.0", + "@babel/types": "^7.28.2", + "@types/babel__core": "^7.20.5", + "@types/babel__traverse": "^7.20.7", "@types/doctrine": "^0.0.9", "@types/resolve": "^1.20.2", "doctrine": "^3.0.0", @@ -17294,7 +17227,7 @@ "strip-indent": "^4.0.0" }, "engines": { - "node": ">=16.14.0" + "node": "^20.9.0 || >=22" } }, "node_modules/react-docgen-typescript": { @@ -18494,17 +18427,6 @@ "dev": true, "license": "MIT" }, - "node_modules/serialize-javascript": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", - "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", - "dev": true, - "license": "BSD-3-Clause", - "peer": true, - "dependencies": { - "randombytes": "^2.1.0" - } - }, "node_modules/serve-index": { "version": "1.9.2", "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.2.tgz", @@ -19130,27 +19052,27 @@ } }, "node_modules/storybook": { - "version": "9.1.17", - "resolved": "https://registry.npmjs.org/storybook/-/storybook-9.1.17.tgz", - "integrity": "sha512-kfr6kxQAjA96ADlH6FMALJwJ+eM80UqXy106yVHNgdsAP/CdzkkicglRAhZAvUycXK9AeadF6KZ00CWLtVMN4w==", + "version": "10.2.18", + "resolved": "https://registry.npmjs.org/storybook/-/storybook-10.2.18.tgz", + "integrity": "sha512-1kF8QV/F+Qq2WVHYPTtDJltG9UVOS4PAArf6lmtMt/QbCzYYlLiHHnjZZuFpbDHUSh0SIC6G/97GJ3+HcJHRdg==", "dev": true, "license": "MIT", "dependencies": { "@storybook/global": "^5.0.0", + "@storybook/icons": "^2.0.1", "@testing-library/jest-dom": "^6.6.3", "@testing-library/user-event": "^14.6.1", "@vitest/expect": "3.2.4", - "@vitest/mocker": "3.2.4", "@vitest/spy": "3.2.4", - "better-opn": "^3.0.2", - "esbuild": "^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0 || ^0.25.0", - "esbuild-register": "^3.5.0", + "esbuild": "^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0 || ^0.25.0 || ^0.26.0 || ^0.27.0", + "open": "^10.2.0", "recast": "^0.23.5", - "semver": "^7.6.2", + "semver": "^7.7.3", + "use-sync-external-store": "^1.5.0", "ws": "^8.18.0" }, "bin": { - "storybook": "bin/index.cjs" + "storybook": "dist/bin/dispatcher.js" }, "funding": { "type": "opencollective", @@ -19166,23 +19088,25 @@ } }, "node_modules/storybook-builder-rsbuild": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/storybook-builder-rsbuild/-/storybook-builder-rsbuild-2.1.6.tgz", - "integrity": "sha512-Ut5tW8j9lJVriMaBTNlXOtGyjk5GJTCzT/ebHOekVntjwbK5O+lJW4IGVUp79HSGtYUII2rEABnY9P7TctMBSg==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/storybook-builder-rsbuild/-/storybook-builder-rsbuild-3.3.2.tgz", + "integrity": "sha512-3wH8SuSEBm+qL2tHAbuyAI5iATlINoEEN334RXiKHiej1TimaJtW4oFYHoQqPM9JTzvJsGxRMc/qlKpvyrFYlw==", "dev": true, "license": "MIT", "dependencies": { - "@rsbuild/plugin-type-check": "^1.2.4", + "@rsbuild/plugin-type-check": "^1.3.3", + "@vitest/mocker": "3.2.4", "browser-assert": "^1.2.1", "case-sensitive-paths-webpack-plugin": "^2.4.0", - "cjs-module-lexer": "^1.4.3", + "cjs-module-lexer": "^2.2.0", "constants-browserify": "^1.0.0", "es-module-lexer": "^1.7.0", - "fs-extra": "^11.3.2", + "fs-extra": "^11.3.3", "magic-string": "^0.30.21", "path-browserify": "^1.0.1", + "picocolors": "^1.1.1", "process": "^0.11.10", - "rsbuild-plugin-html-minifier-terser": "^1.1.2", + "rsbuild-plugin-html-minifier-terser": "^1.1.3", "sirv": "^2.0.4", "ts-dedent": "^2.2.0", "url": "^0.11.4", @@ -19190,10 +19114,10 @@ "util-deprecate": "^1.0.2" }, "peerDependencies": { - "@rsbuild/core": "^1.5.0", - "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": "^9.0.0 || ^10.0.0" + "@rsbuild/core": "^1.5.0 || ^2.0.0-0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "storybook": "^10.1.0" }, "peerDependenciesMeta": { "react": { @@ -19207,39 +19131,32 @@ } } }, - "node_modules/storybook-builder-rsbuild/node_modules/cjs-module-lexer": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", - "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", - "dev": true, - "license": "MIT" - }, "node_modules/storybook-react-rsbuild": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/storybook-react-rsbuild/-/storybook-react-rsbuild-2.1.6.tgz", - "integrity": "sha512-PNyxCyBsdLOq4hW5LcsvvmsctwX9XfxkmzC+X5st8Ygn2ar96JKIBjw6kmf+9bfMO/59f2KnzzbTwwj5X3gP3A==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/storybook-react-rsbuild/-/storybook-react-rsbuild-3.3.2.tgz", + "integrity": "sha512-h80dmLjg6+dDqfco00/rSEvuFuUPgKTvPLcKrAybk6BZsrUFjA5lyIdrVcd/RhVXLL1Yv5OrRwJtNGjk5euYoQ==", "dev": true, "license": "MIT", "dependencies": { "@rollup/pluginutils": "^5.3.0", - "@storybook/react": "^9.1.15 || ^10.0.0", + "@storybook/react": "^10.2.17", "@storybook/react-docgen-typescript-plugin": "^1.0.1", "find-up": "^5.0.0", "magic-string": "^0.30.21", - "react-docgen": "^7.1.1", + "react-docgen": "^8.0.2", "react-docgen-typescript": "^2.4.0", "resolve": "^1.22.11", - "storybook-builder-rsbuild": "2.1.6", + "storybook-builder-rsbuild": "3.3.2", "tsconfig-paths": "^4.2.0" }, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@rsbuild/core": "^1.5.0", - "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": "^9.0.0 || ^10.0.0", + "@rsbuild/core": "^1.5.0 || ^2.0.0-0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "storybook": "^10.1.0", "typescript": ">= 4.2.x" }, "peerDependenciesMeta": { @@ -19519,9 +19436,9 @@ } }, "node_modules/terser-webpack-plugin": { - "version": "5.3.16", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.16.tgz", - "integrity": "sha512-h9oBFCWrq78NyWWVcSwZarJkZ01c2AyGrzs1crmHZO3QUg9D61Wu4NPjBy69n7JqylFF5y+CsUZYmYEIZ3mR+Q==", + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.4.0.tgz", + "integrity": "sha512-Bn5vxm48flOIfkdl5CaD2+1CiUVbonWQ3KQPyP7/EuIl9Gbzq/gQFOzaMFUEgVjB1396tcK0SG8XcNJ/2kDH8g==", "dev": true, "license": "MIT", "peer": true, @@ -19529,7 +19446,6 @@ "@jridgewell/trace-mapping": "^0.3.25", "jest-worker": "^27.4.5", "schema-utils": "^4.3.0", - "serialize-javascript": "^6.0.2", "terser": "^5.31.1" }, "engines": { @@ -19855,18 +19771,15 @@ } }, "node_modules/ts-checker-rspack-plugin": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/ts-checker-rspack-plugin/-/ts-checker-rspack-plugin-1.2.6.tgz", - "integrity": "sha512-aAJIfoNr2cPu8G6mqp/oPoNlUT/LgNoqt2n3SsbxWG0TwQogbjsYsr2f/fdsufUDoGDu8Jolmpf3L4PmIH/cEg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/ts-checker-rspack-plugin/-/ts-checker-rspack-plugin-1.3.0.tgz", + "integrity": "sha512-89oK/BtApjdid1j9CGjPGiYry+EZBhsnTAM481/8ipgr/y2IOgCbW1HPnan+fs5FnzlpUgf9dWGNZ4Ayw3Bd8A==", "dev": true, "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.27.1", "@rspack/lite-tapable": "^1.1.0", "chokidar": "^3.6.0", - "is-glob": "^4.0.3", - "memfs": "^4.51.1", - "minimatch": "^9.0.5", + "memfs": "^4.56.10", "picocolors": "^1.1.1" }, "peerDependencies": { @@ -19879,37 +19792,6 @@ } } }, - "node_modules/ts-checker-rspack-plugin/node_modules/@babel/code-frame": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", - "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.28.5", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/ts-checker-rspack-plugin/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/ts-dedent": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.2.0.tgz", @@ -20472,9 +20354,9 @@ } }, "node_modules/webpack": { - "version": "5.105.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.0.tgz", - "integrity": "sha512-gX/dMkRQc7QOMzgTe6KsYFM7DxeIONQSui1s0n/0xht36HvrgbxtM1xBlgx596NbpHuQU8P7QpKwrZYwUX48nw==", + "version": "5.105.4", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.4.tgz", + "integrity": "sha512-jTywjboN9aHxFlToqb0K0Zs9SbBoW4zRUlGzI2tYNxVYcEi/IPpn+Xi4ye5jTLvX2YeLuic/IvxNot+Q1jMoOw==", "dev": true, "license": "MIT", "peer": true, @@ -20485,11 +20367,11 @@ "@webassemblyjs/ast": "^1.14.1", "@webassemblyjs/wasm-edit": "^1.14.1", "@webassemblyjs/wasm-parser": "^1.14.1", - "acorn": "^8.15.0", + "acorn": "^8.16.0", "acorn-import-phases": "^1.0.3", "browserslist": "^4.28.1", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.19.0", + "enhanced-resolve": "^5.20.0", "es-module-lexer": "^2.0.0", "eslint-scope": "5.1.1", "events": "^3.2.0", @@ -20501,9 +20383,9 @@ "neo-async": "^2.6.2", "schema-utils": "^4.3.3", "tapable": "^2.3.0", - "terser-webpack-plugin": "^5.3.16", + "terser-webpack-plugin": "^5.3.17", "watchpack": "^2.5.1", - "webpack-sources": "^3.3.3" + "webpack-sources": "^3.3.4" }, "bin": { "webpack": "bin/webpack.js" @@ -20731,9 +20613,9 @@ } }, "node_modules/webpack-sources": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.3.tgz", - "integrity": "sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==", + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.4.tgz", + "integrity": "sha512-7tP1PdV4vF+lYPnkMR0jMY5/la2ub5Fc/8VQrrU+lXkiM6C4TjVfGw7iKfyhnTQOsD+6Q/iKw0eFciziRgD58Q==", "dev": true, "license": "MIT", "peer": true, @@ -20750,9 +20632,9 @@ "peer": true }, "node_modules/webpack/node_modules/enhanced-resolve": { - "version": "5.19.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.19.0.tgz", - "integrity": "sha512-phv3E1Xl4tQOShqSte26C7Fl84EwUdZsyOuSSk9qtAGyyQs2s3jJzComh+Abf4g187lUUAvH+H26omrqia2aGg==", + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.20.0.tgz", + "integrity": "sha512-/ce7+jQ1PQ6rVXwe+jKEg5hW5ciicHwIQUagZkp6IufBoY3YDgdTTY1azVs0qoRgVmvsNB+rbjLJxDAeHHtwsQ==", "dev": true, "license": "MIT", "peer": true, diff --git a/package.json b/package.json index c6d2b1d..d0b2427 100644 --- a/package.json +++ b/package.json @@ -15,10 +15,7 @@ "typescript", "design-system" ], - "author": "Addon Stack ", - "contributors": [ - "Anjey Tsibylskij (https://github.com/atldays)" - ], + "author": "Anjey Tsibylskij (https://github.com/atldays)", "license": "MIT", "repository": { "type": "git", @@ -98,8 +95,9 @@ "@commitlint/config-conventional": "^20.0.0", "@eslint/js": "^9.21.0", "@release-it/conventional-changelog": "^10.0.4", - "@rsbuild/plugin-sass": "^1.4.0", - "@storybook/react": "^9.1.3", + "@rsbuild/core": "^1.7.3", + "@rsbuild/plugin-sass": "^1.5.1", + "@storybook/react": "^10.2.18", "@types/chrome": "^0.1.12", "@types/jest": "^30.0.0", "@types/lodash": "^4.17.20", @@ -111,6 +109,7 @@ "eslint": "^9.21.0", "eslint-plugin-react-hooks": "^5.1.0", "eslint-plugin-react-refresh": "^0.4.19", + "eslint-plugin-storybook": "10.2.18", "globals": "^15.15.0", "husky": "^9.1.7", "jest": "^30.1.3", @@ -119,8 +118,8 @@ "react-dom": "^19.1.0", "release-it": "^19.2.3", "rspack-plugin-virtual-module": "^1.0.0", - "storybook": "^9.1.3", - "storybook-react-rsbuild": "^2.1.0", + "storybook": "^10.2.18", + "storybook-react-rsbuild": "^3.3.2", "typescript": "~5.7.2", "typescript-eslint": "^8.24.1" }, @@ -142,10 +141,5 @@ "overrides": { "flat-cache": "^6.1.18", "glob": "^13.0.0" - }, - "eslintConfig": { - "extends": [ - "plugin:storybook/recommended" - ] } } diff --git a/src/components/Accordion/Accordion.stories.tsx b/src/components/Accordion/Accordion.stories.tsx index a0f874d..c65f80f 100644 --- a/src/components/Accordion/Accordion.stories.tsx +++ b/src/components/Accordion/Accordion.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {hideInTable} from "../../utils"; diff --git a/src/components/Avatar/Avatar.stories.tsx b/src/components/Avatar/Avatar.stories.tsx index e592cd2..b9d53bc 100644 --- a/src/components/Avatar/Avatar.stories.tsx +++ b/src/components/Avatar/Avatar.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {capitalizeFirstLetter, hideInTable} from "../../utils"; diff --git a/src/components/Button/Button.stories.tsx b/src/components/Button/Button.stories.tsx index b0b6853..1f2943e 100644 --- a/src/components/Button/Button.stories.tsx +++ b/src/components/Button/Button.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {capitalizeFirstLetter, hideInTable} from "../../utils"; diff --git a/src/components/Checkbox/Checkbox.stories.tsx b/src/components/Checkbox/Checkbox.stories.tsx index 5e72a38..33fc78d 100644 --- a/src/components/Checkbox/Checkbox.stories.tsx +++ b/src/components/Checkbox/Checkbox.stories.tsx @@ -1,5 +1,5 @@ import React, {useState} from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {capitalizeFirstLetter, hideInTable} from "../../utils"; diff --git a/src/components/Drawer/Drawer.stories.tsx b/src/components/Drawer/Drawer.stories.tsx index 56dd4ca..922fc63 100644 --- a/src/components/Drawer/Drawer.stories.tsx +++ b/src/components/Drawer/Drawer.stories.tsx @@ -1,5 +1,5 @@ import React, {useState} from "react"; -import {Meta} from "@storybook/react"; +import {Meta} from "storybook-react-rsbuild"; import {capitalizeFirstLetter, hideInTable} from "../../utils"; diff --git a/src/components/Footer/Footer.stories.tsx b/src/components/Footer/Footer.stories.tsx index e3f18ba..633e8f4 100644 --- a/src/components/Footer/Footer.stories.tsx +++ b/src/components/Footer/Footer.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {hideInTable} from "../../utils"; diff --git a/src/components/Header/Header.stories.tsx b/src/components/Header/Header.stories.tsx index 74b8580..9d0e53e 100644 --- a/src/components/Header/Header.stories.tsx +++ b/src/components/Header/Header.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {hideInTable} from "../../utils"; diff --git a/src/components/Highlight/Highlight.stories.tsx b/src/components/Highlight/Highlight.stories.tsx index 725a90f..c7186fd 100644 --- a/src/components/Highlight/Highlight.stories.tsx +++ b/src/components/Highlight/Highlight.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {capitalizeFirstLetter, hideInTable} from "../../utils"; diff --git a/src/components/IconButton/IconButton.stories.tsx b/src/components/IconButton/IconButton.stories.tsx index e7d141f..e7863ff 100644 --- a/src/components/IconButton/IconButton.stories.tsx +++ b/src/components/IconButton/IconButton.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {capitalizeFirstLetter, hideInTable} from "../../utils"; diff --git a/src/components/List/List.stories.tsx b/src/components/List/List.stories.tsx index e34fd52..aaa0141 100644 --- a/src/components/List/List.stories.tsx +++ b/src/components/List/List.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {hideInTable} from "../../utils"; diff --git a/src/components/Modal/Modal.stories.tsx b/src/components/Modal/Modal.stories.tsx index 0cbee38..fa3ee09 100644 --- a/src/components/Modal/Modal.stories.tsx +++ b/src/components/Modal/Modal.stories.tsx @@ -1,5 +1,5 @@ import React, {useState} from "react"; -import {Meta} from "@storybook/react"; +import {Meta} from "storybook-react-rsbuild"; import {capitalizeFirstLetter, hideInTable} from "../../utils"; diff --git a/src/components/Odometer/Odometer.stories.tsx b/src/components/Odometer/Odometer.stories.tsx index e5ef9f9..601ea89 100644 --- a/src/components/Odometer/Odometer.stories.tsx +++ b/src/components/Odometer/Odometer.stories.tsx @@ -1,5 +1,5 @@ import React, {useEffect, useState} from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {hideInTable} from "../../utils"; diff --git a/src/components/Popover/Popover.stories.tsx b/src/components/Popover/Popover.stories.tsx index be2137a..86b2218 100644 --- a/src/components/Popover/Popover.stories.tsx +++ b/src/components/Popover/Popover.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import { Popover as PopoverComponent, diff --git a/src/components/ScrollArea/ScrollArea.stories.tsx b/src/components/ScrollArea/ScrollArea.stories.tsx index ba291ec..484b429 100644 --- a/src/components/ScrollArea/ScrollArea.stories.tsx +++ b/src/components/ScrollArea/ScrollArea.stories.tsx @@ -1,4 +1,4 @@ -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {hideInTable} from "../../utils"; diff --git a/src/components/Select/Select.stories.tsx b/src/components/Select/Select.stories.tsx index 5481308..3e53903 100644 --- a/src/components/Select/Select.stories.tsx +++ b/src/components/Select/Select.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import { Select as SelectComponent, diff --git a/src/components/Shift/Shift.stories.tsx b/src/components/Shift/Shift.stories.tsx index 6558c1c..0cb3853 100644 --- a/src/components/Shift/Shift.stories.tsx +++ b/src/components/Shift/Shift.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import ShiftComponent, {ShiftProps} from "./Shift"; import {TextField} from "../index"; diff --git a/src/components/Switch/Switch.stories.tsx b/src/components/Switch/Switch.stories.tsx index dd8ad51..a773234 100644 --- a/src/components/Switch/Switch.stories.tsx +++ b/src/components/Switch/Switch.stories.tsx @@ -1,4 +1,4 @@ -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {hideInTable} from "../../utils"; diff --git a/src/components/Tabs/Tabs.stories.tsx b/src/components/Tabs/Tabs.stories.tsx index bc6753a..0aa6c89 100644 --- a/src/components/Tabs/Tabs.stories.tsx +++ b/src/components/Tabs/Tabs.stories.tsx @@ -1,5 +1,5 @@ import React, {PropsWithChildren} from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {Header} from "../Header"; import {Footer} from "../Footer"; diff --git a/src/components/Tag/Tag.stories.tsx b/src/components/Tag/Tag.stories.tsx index cdd056f..5cccbac 100644 --- a/src/components/Tag/Tag.stories.tsx +++ b/src/components/Tag/Tag.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {capitalizeFirstLetter} from "../../utils"; diff --git a/src/components/TextArea/TextArea.stories.tsx b/src/components/TextArea/TextArea.stories.tsx index 2fb3886..34382f9 100644 --- a/src/components/TextArea/TextArea.stories.tsx +++ b/src/components/TextArea/TextArea.stories.tsx @@ -1,5 +1,5 @@ import React, {Fragment} from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {capitalizeFirstLetter, hideInTable} from "../../utils"; diff --git a/src/components/TextField/TextField.stories.tsx b/src/components/TextField/TextField.stories.tsx index 7ee2c9c..6e186a7 100644 --- a/src/components/TextField/TextField.stories.tsx +++ b/src/components/TextField/TextField.stories.tsx @@ -1,5 +1,5 @@ import React, {Fragment} from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {capitalizeFirstLetter, hideInTable} from "../../utils"; diff --git a/src/components/Toast/Toast.stories.tsx b/src/components/Toast/Toast.stories.tsx index e52b062..dc9a7f9 100644 --- a/src/components/Toast/Toast.stories.tsx +++ b/src/components/Toast/Toast.stories.tsx @@ -1,5 +1,5 @@ import React, {FC, useState} from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {hideInTable} from "../../utils"; diff --git a/src/components/ToggleGroup/ToggleGroup.stories.tsx b/src/components/ToggleGroup/ToggleGroup.stories.tsx index c6e395a..e7b2e7b 100644 --- a/src/components/ToggleGroup/ToggleGroup.stories.tsx +++ b/src/components/ToggleGroup/ToggleGroup.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {Button} from "../index"; import {ToggleGroup as ToggleGroupComponent, ToggleGroupItem, ToggleGroupIndicator, ToggleGroupProps} from "./index"; diff --git a/src/components/Tooltip/Tooltip.stories.tsx b/src/components/Tooltip/Tooltip.stories.tsx index 8b603da..8525e26 100644 --- a/src/components/Tooltip/Tooltip.stories.tsx +++ b/src/components/Tooltip/Tooltip.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {hideInTable} from "../../utils"; diff --git a/src/components/Truncate/Truncate.stories.tsx b/src/components/Truncate/Truncate.stories.tsx index 6732cf7..30aa407 100644 --- a/src/components/Truncate/Truncate.stories.tsx +++ b/src/components/Truncate/Truncate.stories.tsx @@ -1,6 +1,6 @@ import React, {useState} from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import TruncateComponent, {TruncateProps} from "./Truncate"; import {Header, Highlight, ScrollArea, TextField, ViewportProvider} from "../index"; diff --git a/src/components/TruncateList/TruncateList.stories.tsx b/src/components/TruncateList/TruncateList.stories.tsx index 4f3fb93..1c93eaf 100644 --- a/src/components/TruncateList/TruncateList.stories.tsx +++ b/src/components/TruncateList/TruncateList.stories.tsx @@ -1,6 +1,6 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import TruncateListComponent, {TruncateListProps} from "./TruncateList"; import {Tag, TagColor, TagVariant} from "../Tag"; diff --git a/src/components/View/View.stories.tsx b/src/components/View/View.stories.tsx index 72589a6..3ba6743 100644 --- a/src/components/View/View.stories.tsx +++ b/src/components/View/View.stories.tsx @@ -1,5 +1,5 @@ import React from "react"; -import {Meta, StoryObj} from "@storybook/react"; +import {Meta, StoryObj} from "storybook-react-rsbuild"; import {hideInTable} from "../../utils"; diff --git a/src/components/ViewDrawer/ViewDrawer.stories.tsx b/src/components/ViewDrawer/ViewDrawer.stories.tsx index 5c0f875..a440331 100644 --- a/src/components/ViewDrawer/ViewDrawer.stories.tsx +++ b/src/components/ViewDrawer/ViewDrawer.stories.tsx @@ -1,5 +1,5 @@ import React, {useState} from "react"; -import {Meta} from "@storybook/react"; +import {Meta} from "storybook-react-rsbuild"; import {hideInTable} from "../../utils"; diff --git a/src/components/ViewModal/ViewModal.stories.tsx b/src/components/ViewModal/ViewModal.stories.tsx index 899b954..65d97b7 100644 --- a/src/components/ViewModal/ViewModal.stories.tsx +++ b/src/components/ViewModal/ViewModal.stories.tsx @@ -1,5 +1,5 @@ import React, {useState} from "react"; -import {Meta} from "@storybook/react"; +import {Meta} from "storybook-react-rsbuild"; import {hideInTable} from "../../utils"; diff --git a/src/components/Viewport/Viewport.stories.tsx b/src/components/Viewport/Viewport.stories.tsx index 36ffddf..96b9571 100644 --- a/src/components/Viewport/Viewport.stories.tsx +++ b/src/components/Viewport/Viewport.stories.tsx @@ -1,5 +1,5 @@ import React, {useState} from "react"; -import {Meta} from "@storybook/react"; +import {Meta} from "storybook-react-rsbuild"; import {hideInTable} from "../../utils";