-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Migration to emotion library - Fixed styles for compoents - Simplified Themes & direct use of colors - Removal of obsolete components (ActionsList, InformativeMessage, MainContainer, Menu, Pill) - Renamed components to match specification (CommentBox => TextArea, ReadBox => CodeSnippet, Switch => Toggle) Signed-off-by: Benjamin Perez <[email protected]>
- Loading branch information
Showing
5,091 changed files
with
144,177 additions
and
128,788 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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,40 @@ | ||
import remarkGfm from "remark-gfm"; | ||
|
||
module.exports = { | ||
stories: ["../src/**/**/*.mdx", "../src/**/**/*.stories.@(js|jsx|ts|tsx)"], | ||
|
||
core: { | ||
disableTelemetry: true, | ||
}, | ||
|
||
addons: [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-interactions", | ||
"storybook-dark-mode", | ||
{ | ||
name: "@storybook/addon-docs", | ||
options: { | ||
mdxPluginOptions: { | ||
mdxCompileOptions: { | ||
remarkPlugins: [remarkGfm], | ||
}, | ||
}, | ||
}, | ||
}, | ||
"@storybook/addon-webpack5-compiler-babel", | ||
"@chromatic-com/storybook", | ||
"@storybook/addon-themes", | ||
], | ||
|
||
framework: { | ||
name: "@storybook/react-webpack5", | ||
options: {}, | ||
}, | ||
|
||
docs: {}, | ||
|
||
typescript: { | ||
reactDocgen: "react-docgen-typescript", | ||
}, | ||
}; |
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,69 @@ | ||
import React from "react"; | ||
import { themes } from "@storybook/theming"; | ||
import { darkColors, lightColors } from "../src/global/themes"; | ||
|
||
import { withThemeFromJSXProvider } from "@storybook/addon-themes"; | ||
import { Global, css } from "@emotion/react"; | ||
|
||
export const parameters = { | ||
actions: {}, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
darkMode: { | ||
light: { | ||
...themes.normal, | ||
appBg: "#F6F7F9", | ||
}, | ||
}, | ||
/*darkMode: { | ||
dark: { | ||
...themes.dark, | ||
appBg: darkColors.dark, | ||
appContentBg: darkColors.dark, | ||
appBorderColor: darkColors.divisorColor, | ||
barTextColor: darkColors.mainGrey, | ||
textColor: darkColors.mainGrey, | ||
barSelectedColor: darkColors.mainWhite, | ||
barBg: darkColors.dark, | ||
inputBg: darkColors.dark, | ||
inputBorder: darkColors.mainGrey, | ||
colorSecondary: darkColors.mainRed, | ||
}, | ||
light: { | ||
...themes.normal, | ||
appBg: lightColors.white, | ||
appContentBg: lightColors.white, | ||
appBorderColor: lightColors.divisorColor, | ||
barTextColor: lightColors.mainGrey, | ||
textColor: lightColors.mainGrey, | ||
barSelectedColor: lightColors.mainBlue, | ||
barBg: lightColors.white, | ||
inputBg: lightColors.white, | ||
inputBorder: lightColors.mainGrey, | ||
colorSecondary: lightColors.mainBlue, | ||
}, | ||
},*/ | ||
}; | ||
|
||
const GlobalStyles = () => ( | ||
<Global | ||
styles={css` | ||
body { | ||
font-family: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, | ||
sans-serif; | ||
} | ||
`} | ||
/> | ||
); | ||
|
||
export const decorators = [ | ||
withThemeFromJSXProvider({ | ||
GlobalStyles, // Adds your GlobalStyles component to all stories | ||
}), | ||
]; | ||
|
||
export const tags = ["autodocs"]; |
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.