Skip to content

Commit

Permalink
feat: run upgrade to v8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyhw committed Jul 20, 2024
1 parent 6ec9aff commit 8bb606f
Show file tree
Hide file tree
Showing 8 changed files with 3,784 additions and 6,317 deletions.
12 changes: 4 additions & 8 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ const path = require('path');

/** @type{import("@storybook/react-webpack5").StorybookConfig} */
export default {
stories: [
'../stories/**/*.stories.mdx',
'../stories/**/*.stories.@(js|jsx|ts|tsx)',
],
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-webpack5-compiler-babel',
'@chromatic-com/storybook',
'@storybook/addon-essentials',
{
name: '../preset.js',
options: {
Expand All @@ -24,7 +24,6 @@ export default {
],
},
},
'@storybook/addon-essentials',
],
framework: {
name: '@storybook/react-webpack5',
Expand All @@ -45,9 +44,6 @@ export default {
shouldRemoveUndefinedFromOptional: true,
},
},
docs: {
autodocs: true,
},
webpackFinal: async (config) => {
config.module?.rules?.push({
test: /\.css$/,
Expand Down
3 changes: 2 additions & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import './global.css';

const preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
Expand All @@ -13,6 +12,8 @@ const preview = {
source: { excludeDecorators: true },
},
},

tags: ['autodocs'],
};

export default preview;
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@babel/runtime": "^7.23.7",
"@chromatic-com/storybook": "^1",
"@expo/html-elements": "^0.5.1",
"@react-native-community/eslint-config": "^3.2.0",
"@react-native/babel-preset": "^0.73.19",
"@storybook/addon-essentials": "^8.1.5",
"@storybook/addon-mdx-gfm": "^8.1.5",
"@storybook/react": "^8.1.5",
"@storybook/react-webpack5": "^8.1.5",
"@storybook/addon-essentials": "^8.2.5",
"@storybook/addon-mdx-gfm": "^8.2.5",
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/react": "^8.2.5",
"@storybook/react-webpack5": "^8.2.5",
"@types/react-native-vector-icons": "^6.4.18",
"auto": "^11.0.7",
"autoprefixer": "^10.4.17",
Expand All @@ -68,7 +70,7 @@
"eslint": "^8.56.0",
"eslint-plugin-ft-flow": "^3.0.2",
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-storybook": "^0.6.15",
"eslint-plugin-storybook": "^0.8.0",
"expo-linear-gradient": "^12.5.0",
"native-base": "^3.4.28",
"nativewind": "^4.0.1",
Expand All @@ -88,7 +90,7 @@
"react-native-vector-icons": "^10.0.3",
"react-native-web": "^0.19.10",
"rimraf": "^5.0.5",
"storybook": "^8.1.5",
"storybook": "^8.2.5",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3",
"webpack": "^5.89.0",
Expand Down
6 changes: 3 additions & 3 deletions stories/libraries/Paper/Card.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentMeta, ComponentStoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react';
import { StyleSheet, View } from 'react-native';
import { DefaultTheme, Provider as PaperProvider } from 'react-native-paper';
import { Card } from './Card';
Expand All @@ -17,9 +17,9 @@ export default {
</View>
</PaperProvider>
),
} as ComponentMeta<typeof Card>;
} satisfies Meta<typeof Card>;

export const Basic: ComponentStoryObj<typeof Card> = {
export const Basic: StoryObj<typeof Card> = {
args: {
content:
'Cillum sit aute cillum velit occaecat adipisicing aliquip sit ex quis ut dolor.',
Expand Down
4 changes: 2 additions & 2 deletions stories/libraries/Reanimated/Box.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ComponentMeta } from '@storybook/react';
import type { Meta } from '@storybook/react';

import { Box } from './Box';

export default {
component: Box,
} as ComponentMeta<typeof Box>;
} as Meta<typeof Box>;

export const Basic = {
args: {},
Expand Down
2 changes: 1 addition & 1 deletion stories/template/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, StoryObj } from '@storybook/react';
import type { Meta, StoryObj } from '@storybook/react';

import { View, StyleSheet } from 'react-native';
import { Button } from './Button';
Expand Down
4 changes: 2 additions & 2 deletions stories/template/Page.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ComponentMeta } from '@storybook/react';
import type { Meta } from '@storybook/react';
import * as HeaderStories from './Header.stories';
import { Page } from './Page';

export default {
component: Page,
} as ComponentMeta<typeof Page>;
} as Meta<typeof Page>;

export const LoggedIn = {
args: HeaderStories.LoggedIn.args,
Expand Down
Loading

0 comments on commit 8bb606f

Please sign in to comment.