Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .claude/skills/fold/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ packages/
design/ → Design tokens via Style Dictionary (@fold-ui/design)
```

**Tech stack:** TypeScript 4.8, React 18, Storybook 7, Jest 29, ESBuild, PostCSS, npm workspaces.
**Tech stack:** TypeScript 5.9, React 18, Storybook 10 (react-webpack5 + SWC compiler), Jest 29, ESBuild, PostCSS, npm workspaces.

## Component Directory Structure

Expand Down
10 changes: 1 addition & 9 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ let stories = [

const config: StorybookConfig = {
stories,
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions'
],
addons: ['@storybook/addon-webpack5-compiler-swc'],
webpackFinal: async (config: any) => {
config.resolve.extensions.push(".ts", ".tsx")
return config
Expand All @@ -28,10 +24,6 @@ const config: StorybookConfig = {
docs: {
autodocs: 'tag',
},
babel: async (options: any) => {
options.presets.push('@babel/preset-typescript')
return options
},
staticDirs: ['../public'],
features: {},
}
Expand Down
2 changes: 1 addition & 1 deletion .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addons } from '@storybook/addons'
import { addons } from 'storybook/manager-api'
import theme from './theme'

addons.setConfig({ theme })
15 changes: 8 additions & 7 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,21 @@ export const decorators = [
const preview: Preview = {
decorators,
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
backgrounds: {
default: 'light',
values: [
{
options: {
default: {
name: 'default',
value: 'var(--f-color-background)',
},
{
highlight: {
name: 'highlight',
value: '#f0f3f5',
},
{
light: {
name: 'light',
value: 'var(--f-color-background)',
},
],
},
},
controls: {
matchers: {
Expand All @@ -57,6 +55,9 @@ const preview: Preview = {
},
},
},
initialGlobals: {
backgrounds: { value: 'light' },
},
}

export default preview
2 changes: 1 addition & 1 deletion .storybook/theme.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { create } from '@storybook/theming'
import { create } from 'storybook/theming'

export default create({
base: 'light',
Expand Down
Loading
Loading