Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 2 additions & 7 deletions apps/app-frontend-server/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
import tsconfigPathsPlugin from 'vite-tsconfig-paths';

import type { StorybookConfig } from '@storybook/experimental-nextjs-vite';
import type { StorybookConfig } from '@storybook/nextjs-vite';

const config: StorybookConfig = {
stories: ['../src/**/stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
{
name: '@storybook/addon-essentials',
options: { docs: false },
},
'@storybook/addon-actions',
'storycap',
],
typescript: {
reactDocgen: 'react-docgen',
},
framework: '@storybook/experimental-nextjs-vite',
framework: '@storybook/nextjs-vite',
staticDirs: ['./public'],
viteFinal: config => ({
...config,
Expand Down
12 changes: 5 additions & 7 deletions apps/app-frontend-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,9 @@
"@huuyafwww/eslint-config-storybook": "^1.2.0",
"@huuyafwww/tsconfig-common": "^1.1.2",
"@huuyafwww/tsconfig-next": "^1.2.1",
"@storybook/addon-actions": "^8.6.12",
"@storybook/addon-essentials": "^8.6.12",
"@storybook/blocks": "^8.6.12",
"@storybook/experimental-nextjs-vite": "^8.6.12",
"@storybook/react": "^8.6.12",
"@storybook/test": "^8.6.12",
"@storybook/addon-actions": "^9.0.8",
"@storybook/nextjs-vite": "^9.0.8",
"@storybook/react": "^9.0.8",
"@tailwindcss/postcss": "^4.1.6",
"@tailwindcss/vite": "^4.1.6",
"@testing-library/react": "^16.3.0",
Expand Down Expand Up @@ -92,8 +89,9 @@
"reg-publish-s3-plugin": "^0.14.4",
"reg-suit": "^0.14.4",
"sql.js": "1.12.0",
"storybook": "^8.6.12",
"storybook": "^9.0.8",
"storycap": "^5.0.1",
"styled-jsx": "5.1.6",
"tailwindcss": "^4.1.6",
"tsx": "^4.19.3",
"typescript": "^5.8.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fn } from '@storybook/test';
import { action } from 'storybook/actions';

import { defaultVariant } from './styles.css';

Expand All @@ -12,7 +12,7 @@ const meta = {
args: {
as: 'button',
children: 'Button',
onPress: fn(),
onPress: action('onPress'),
variant: defaultVariant,
},
argTypes: {},
Expand Down
Loading
Loading