-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plasma-infra(plasma-new-hope): Migrate to storybook 7 [Part 4] #840
Conversation
if (val.true) { | ||
control.control.type = 'boolean'; | ||
control.defaultValue = false; | ||
control.table = { defaultValue: { summary: false } }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Note]:
To manually configure the value that is shown in the ArgsTable doc block, you can configure the table.defaultValue setting:
export default {
component: MyComponent,
argTypes: {
argName: {
table: { defaultValue: { summary: 'SomeType<T>' } },
},
},
};
2b25f20
to
ccd7b07
Compare
linaria({ | ||
exclude: ['../../../'], | ||
babelOptions: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/callstack/linaria/blob/master/docs/BUNDLERS_INTEGRATION.md#Vite
If you are using language features that requires a babel transform (such as typescript), ensure the proper babel presets or plugins are passed to linaria.
import { defineConfig } from 'vite';
import linaria from '@linaria/vite';
// example to support typescript syntax:
export default defineConfig(() => ({
// ...
plugins: [
linaria({
include: ['**/*.{ts,tsx}'],
babelOptions: {
presets: ['@babel/preset-typescript', '@babel/preset-react'],
},
}),
],
}));
7adc3d6
to
ccd7b07
Compare
Theme Builder app deployed! http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-840/ |
f9eebbe
to
07aea04
Compare
`argType.defaultValue` is deprecated and will be removed in Storybook 7.0.
07aea04
to
f83d0dc
Compare
Theme Builder app deployed! http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-840/ |
Theme Builder app deployed! http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-840/ |
Theme Builder app deployed! http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-840/ |
Documentation preview deployed! website: http://plasma.sberdevices.ru/pr/pr-840/ |
⚡ Component performance testingResult: 🟢 OK |
Release Notes
Переход на
Storybook@latest(7.5.3)
:What/why Changed
From version 6.5.x to 7.0.0
.stories
to CSF 3main.ts
preview.ts
⚡ Component performance testing
Result: 🟢 OK
📦 Published PR as canary version:
Canary Versions
✨ Test out this PR locally via: