mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 05:39:05 +08:00
- Added @storybook/addon-themes to package.json and yarn.lock for theme support in Storybook. - Updated CustomCollapse component to utilize HeroUI's Accordion and AccordionItem for improved functionality and styling. - Removed the ReasoningIcon component as it was deemed unnecessary. - Enhanced ProviderAvatar component to ensure consistent className handling. - Added new stories for FileIcons, SvgSpinners180Ring, and ToolsCallingIcon to showcase their usage and variations.
18 lines
594 B
TypeScript
18 lines
594 B
TypeScript
import type { StorybookConfig } from '@storybook/react-vite'
|
|
|
|
const config: StorybookConfig = {
|
|
stories: ['../stories/components/**/*.stories.@(js|jsx|ts|tsx)'],
|
|
addons: ['@storybook/addon-docs', '@storybook/addon-themes'],
|
|
framework: '@storybook/react-vite',
|
|
viteFinal: async (config) => {
|
|
const { mergeConfig } = await import('vite')
|
|
// 动态导入 @tailwindcss/vite 以避免 ESM/CJS 兼容性问题
|
|
const tailwindPlugin = (await import('@tailwindcss/vite')).default
|
|
return mergeConfig(config, {
|
|
plugins: [tailwindPlugin()]
|
|
})
|
|
}
|
|
}
|
|
|
|
export default config
|