diff --git a/package.json b/package.json index 3140a688..a0878031 100644 --- a/package.json +++ b/package.json @@ -171,7 +171,8 @@ "react-dom": "^19.0.0", "@types/react-dom": "^19.0.0", "@types/react": "^19.0.0", - "storybook": "$storybook" + "storybook": "$storybook", + "react-docgen-typescript": "2.2.2" } } } diff --git a/packages/components/src/components/Form/Form.stories.tsx b/packages/components/src/components/Form/Form.stories.tsx index 738cc517..ca9ee2b3 100644 --- a/packages/components/src/components/Form/Form.stories.tsx +++ b/packages/components/src/components/Form/Form.stories.tsx @@ -41,7 +41,7 @@ export default meta; type Story = StoryObj; export const Base: Story = { - render: function Render() { + render: function Render(args) { const [isLoading, setIsLoading] = useState(false); const [error, setError] = useState(null); @@ -77,6 +77,7 @@ export const Base: Story = { style={{ width: 240 }} onSubmit={handleSubmit} labelPlacement={{ xs: 'top', m: 'side' }} + {...args} > {error && ( diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 62f5f1b5..4c9aae2e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,6 +10,7 @@ overrides: '@types/react-dom': ^19.0.0 '@types/react': ^19.0.0 storybook: ^10.1.11 + react-docgen-typescript: 2.2.2 importers: @@ -7199,8 +7200,8 @@ packages: re2@1.21.4: resolution: {integrity: sha512-MVIfXWJmsP28mRsSt8HeL750ifb8H5+oF2UDIxGaiJCr8fkMqhLZ7kcX9ADRk2dC8qeGKedB7UVYRfBVpEiLfA==} - react-docgen-typescript@2.4.0: - resolution: {integrity: sha512-ZtAp5XTO5HRzQctjPU0ybY0RRCQO19X/8fxn3w7y2VVTUbGHDKULPTL4ky3vB05euSgG5NpALhEhDPvQ56wvXg==} + react-docgen-typescript@2.2.2: + resolution: {integrity: sha512-tvg2ZtOpOi6QDwsb3GZhOjDkkX0h8Z2gipvTg6OVMUyoYoURhEiRNePT8NZItTVCDh39JJHnLdfCOkzoLbFnTg==} peerDependencies: typescript: '>= 4.3.x' @@ -9678,7 +9679,7 @@ snapshots: '@joshwooding/vite-plugin-react-docgen-typescript@0.6.3(typescript@5.7.3)(vite@6.4.1(@types/node@22.13.13)(jiti@2.6.1)(lightningcss@1.29.3)(sugarss@4.0.1(postcss@8.4.49))(tsx@4.19.3)(yaml@2.7.0))': dependencies: glob: 11.1.0 - react-docgen-typescript: 2.4.0(typescript@5.7.3) + react-docgen-typescript: 2.2.2(typescript@5.7.3) vite: 6.4.1(@types/node@22.13.13)(jiti@2.6.1)(lightningcss@1.29.3)(sugarss@4.0.1(postcss@8.4.49))(tsx@4.19.3)(yaml@2.7.0) optionalDependencies: typescript: 5.7.3 @@ -16634,7 +16635,7 @@ snapshots: - supports-color optional: true - react-docgen-typescript@2.4.0(typescript@5.7.3): + react-docgen-typescript@2.2.2(typescript@5.7.3): dependencies: typescript: 5.7.3