1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00

[BEEEP] [PM-10132] Upgrade storybook to v8 (#10288)

Upgrade storybook to version v8 which is a major upgrade. Storybook provides an
upgrade wizard which did most of the work.

- Ran npx storybook upgrade.
- Manually updated `remark-gfm` since the newer mdx requires v 4.
- Migrated all old stories still using `Story` to `StoryObj`.
This commit is contained in:
Oscar Hinton
2024-08-16 09:28:29 +02:00
committed by GitHub
parent 92f87dad9a
commit 604e22334a
18 changed files with 3875 additions and 8220 deletions

View File

@@ -69,8 +69,7 @@ export const WithoutIcon: Story = {
};
export const WithoutRoute: Story = {
render: (args: NavItemComponent) => ({
props: args,
render: () => ({
template: `
<bit-nav-item text="Hello World" icon="bwi-collection"></bit-nav-item>
`,
@@ -78,7 +77,7 @@ export const WithoutRoute: Story = {
};
export const WithChildButtons: Story = {
render: (args: NavItemComponent) => ({
render: (args) => ({
props: args,
template: `
<bit-nav-item text="Hello World" [route]="['']" icon="bwi-collection">
@@ -104,7 +103,7 @@ export const WithChildButtons: Story = {
};
export const MultipleItemsWithDivider: Story = {
render: (args: NavItemComponent) => ({
render: (args) => ({
props: args,
template: `
<bit-nav-item text="Hello World" icon="bwi-collection"></bit-nav-item>
@@ -117,7 +116,7 @@ export const MultipleItemsWithDivider: Story = {
};
export const ForceActiveStyles: Story = {
render: (args: NavItemComponent) => ({
render: (args) => ({
props: args,
template: `
<bit-nav-item text="First Nav" icon="bwi-collection"></bit-nav-item>