Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Upgrading storybook from 7.5 to 7.6 (#592)
Browse files Browse the repository at this point in the history
* refactor: updating deprecated storybook components

* Upgrading storybook from 7.5 to 7.6.10

* fix:updating order of pages
  • Loading branch information
georgewrmarshall authored Jan 22, 2024
1 parent 0910f70 commit 7362336
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 317 deletions.
9 changes: 8 additions & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ export const parameters = {
},
options: {
storySort: {
order: ['Getting Started', ['Introduction', 'Installation']],
order: [
'Getting Started',
['Introduction'],
'Colors',
'Shadows',
'Typography',
'Doc Components',
],
},
},
};
6 changes: 3 additions & 3 deletions docs/ThemeColors.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import { StoryFn, Meta } from '@storybook/react';

import { ColorSwatchGroup } from './components';
import README from './ThemeColors.mdx';
Expand All @@ -14,9 +14,9 @@ export default {
page: README,
},
},
} as ComponentMeta<typeof ColorSwatchGroup>;
} as Meta<typeof ColorSwatchGroup>;

const Template: ComponentStory<typeof ColorSwatchGroup> = (args) => {
const Template: StoryFn<typeof ColorSwatchGroup> = (args) => {
return (
<>
<ColorSwatchGroup {...args} />
Expand Down
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"test": "jest",
"test:watch": "jest --watch"
},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.17.0",
"@babel/preset-env": "^7.23.2",
Expand All @@ -47,14 +46,14 @@
"@metamask/eslint-config-jest": "^9.0.0",
"@metamask/eslint-config-nodejs": "^9.0.0",
"@metamask/eslint-config-typescript": "^9.0.1",
"@storybook/addon-a11y": "^7.5.0",
"@storybook/addon-actions": "^7.5.0",
"@storybook/addon-essentials": "^7.5.0",
"@storybook/addon-links": "^7.5.0",
"@storybook/addon-mdx-gfm": "^7.5.0",
"@storybook/addon-a11y": "^7.6.10",
"@storybook/addon-actions": "^7.6.10",
"@storybook/addon-essentials": "^7.6.10",
"@storybook/addon-links": "^7.6.10",
"@storybook/addon-mdx-gfm": "^7.6.10",
"@storybook/preset-scss": "^1.0.3",
"@storybook/react": "^7.5.0",
"@storybook/react-webpack5": "^7.5.0",
"@storybook/react": "^7.6.10",
"@storybook/react-webpack5": "^7.6.10",
"@types/jest": "^26.0.13",
"@typescript-eslint/eslint-plugin": "^4.21.0",
"@typescript-eslint/parser": "^4.21.0",
Expand All @@ -78,7 +77,7 @@
"rimraf": "^3.0.2",
"sass": "^1.54.3",
"sass-loader": "10.1.1",
"storybook": "^7.5.0",
"storybook": "^7.6.10",
"style-loader": "2.0.0",
"ts-jest": "^26.3.0",
"typescript": "^4.2.4",
Expand Down
Loading

0 comments on commit 7362336

Please sign in to comment.