-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate stories of Badge, Button, Checkbox and FormField to addon-controls * Migrate from themeprovider-storybook to @storybook/addon-styling * Deprecate SFC * List children prop explicitly in type definition * Run linter to fix format issue * Fix type error in PopOver * Migrate integration test demo to react 18 * Migrate to storybook v7 * Rename *.stories.mdx files to *.mdx * Migrate stories for SDK Components * Migrate stories for Providers and Hooks * Export components from their declaration statement to be able to populate ArgTypes Check this storybook issue: storybookjs/storybook#13304 (comment). * Migrate stories of Badge, Button, Checkbox and FormField to storybook v7 style * Migrate Radio UI Component * Upgrade styled-components to latest version * Migrate stories for icons * Upgrade Flex component story * Fix flex stack story * Migrate stories for several components * Migrate stories for more components * Migrate more stories for components * Migrate stories for reset components * Add copyright and changelog * Add react 18 support in peerDependencies * Fix broken links in the storybook * Fix unit tests * Re-generate package-lock.json to mitigate "... when your package.json and package-lock.json or npm-shrinkwrap.json are in sync" error --------- Co-authored-by: Venkatesh Devale <[email protected]> Co-authored-by: Kyu Simm <[email protected]>
- Loading branch information
1 parent
6d91a9a
commit 01bca2b
Showing
414 changed files
with
31,501 additions
and
26,519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"sourceType": "unambiguous", | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"chrome": 100 | ||
} | ||
} | ||
], | ||
"@babel/preset-typescript", | ||
"@babel/preset-react" | ||
], | ||
"plugins": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import type { StorybookConfig } from '@storybook/react-webpack5'; | ||
|
||
const config: StorybookConfig = { | ||
typescript: { | ||
check: false, | ||
checkOptions: {}, | ||
reactDocgen: 'react-docgen-typescript', | ||
reactDocgenTypescriptOptions: { | ||
shouldExtractLiteralValuesFromEnum: true, | ||
propFilter: (prop) => | ||
prop.parent ? !/node_modules/.test(prop.parent.fileName) : true, | ||
}, | ||
}, | ||
stories: ['../src/**/*.@(stories.tsx|mdx)'], | ||
addons: [ | ||
{ | ||
name: '@storybook/addon-essentials', | ||
options: { | ||
actions: false, | ||
}, | ||
}, | ||
'@storybook/addon-storysource', | ||
'@storybook/addon-styling', | ||
'@storybook/addon-a11y', | ||
], | ||
framework: { | ||
name: '@storybook/react-webpack5', | ||
options: {}, | ||
}, | ||
docs: { | ||
autodocs: true, | ||
// Storybook 7 appends "--page" to the URL of auto-generated documentation. | ||
// By default, Storybook uses the "Docs" name that would break all our existing links. | ||
defaultName: 'Page', | ||
}, | ||
}; | ||
export default config; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { ThemeProvider } from 'styled-components'; | ||
import { withThemeFromJSXProvider } from '@storybook/addon-styling'; | ||
|
||
import { GlobalStyles } from '../src/theme/GlobalStyles'; | ||
import lightTheme from '../src/theme/light'; | ||
import darkTheme from '../src/theme/dark'; | ||
|
||
export const decorators = [ | ||
withThemeFromJSXProvider({ | ||
themes: { | ||
light: lightTheme, | ||
dark: darkTheme, | ||
}, | ||
defaultTheme: 'light', | ||
Provider: ThemeProvider, | ||
GlobalStyles: GlobalStyles, | ||
}), | ||
]; | ||
|
||
export const argTypes = { | ||
tag: { table: { disable: true } }, | ||
id: { table: { disable: true } }, | ||
className: { table: { disable: true } }, | ||
css: { table: { disable: true } }, | ||
testId: { table: { disable: true } }, | ||
viewBox: { table: { disable: true } }, | ||
height: { table: { disable: true } }, | ||
title: { table: { disable: true } }, | ||
children: { table: { disable: true } }, | ||
}; | ||
|
||
export const parameters = { | ||
layout: 'centered', | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.