-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
277 changed files
with
19,162 additions
and
18,874 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
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ node_modules | |
dist | ||
.DS_Store | ||
storybook-static | ||
package-lock.json | ||
package-lock.json | ||
.vscode |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"bracketSpacing": true, | ||
"singleQuote": false, | ||
"trailingComma": "all", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"printWidth": 100, | ||
"jsxSingleQuote": false, | ||
"endOfLine": "auto" | ||
"bracketSpacing": true, | ||
"singleQuote": false, | ||
"trailingComma": "all", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"printWidth": 100, | ||
"jsxSingleQuote": false, | ||
"endOfLine": "auto" | ||
} |
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 |
---|---|---|
@@ -1,34 +1,59 @@ | ||
var path = require('path'); | ||
var path = require("path"); | ||
|
||
module.exports = { | ||
"stories": ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"], | ||
"addons": ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-interactions", { | ||
name: '@storybook/addon-postcss', | ||
options: { | ||
cssLoaderOptions: { | ||
// When you have splitted your css over multiple files | ||
// and use @import('./other-styles.css') | ||
importLoaders: 1, | ||
}, | ||
postcssLoaderOptions: { | ||
// When using postCSS 8 | ||
implementation: require('postcss'), | ||
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"], | ||
|
||
addons: [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-interactions", | ||
"@storybook/addon-styling-webpack", | ||
"@storybook/addon-themes", | ||
"@storybook/addon-a11y", | ||
{ | ||
name: "@storybook/addon-styling-webpack", | ||
options: { | ||
rules: [ | ||
{ | ||
test: /\.css$/, | ||
sideEffects: true, | ||
use: [ | ||
require.resolve("style-loader"), | ||
{ | ||
loader: require.resolve("css-loader"), | ||
options: { | ||
importLoaders: 1, | ||
}, | ||
}, | ||
{ | ||
loader: require.resolve("postcss-loader"), | ||
options: { | ||
implementation: require.resolve("postcss"), | ||
}, | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
}], | ||
"framework": "@storybook/react", | ||
core: { | ||
builder: "webpack5" | ||
], | ||
|
||
framework: { | ||
name: "@storybook/react-webpack5", | ||
options: {}, | ||
}, | ||
|
||
features: { | ||
previewMdx2: true, | ||
}, | ||
|
||
webpackFinal: async (config) => { | ||
config.resolve.modules = [ | ||
...(config.resolve.modules || []), | ||
path.resolve(__dirname, "../src"), | ||
]; | ||
config.resolve.modules = [...(config.resolve.modules || []), path.resolve(__dirname, "../src")]; | ||
|
||
return config; | ||
}, | ||
}; | ||
|
||
docs: { | ||
autodocs: true, | ||
}, | ||
}; |
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,7 @@ | ||
import { addons } from '@storybook/manager-api'; | ||
import { themes } from '@storybook/theming'; | ||
import tremorTheme from './tremorTheme'; | ||
|
||
addons.setConfig({ | ||
theme: tremorTheme, | ||
}); |
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,21 @@ | ||
import { create } from "@storybook/theming/create"; | ||
|
||
export default create({ | ||
base: "light", | ||
brandTitle: "Tremor Storybook", | ||
brandUrl: "https://storybook.tremor.so", | ||
// brandImage: 'images/tremor-logo.svg', | ||
brandTarget: "_self", | ||
// | ||
colorSecondary: "#3b82f6", | ||
|
||
// UI | ||
appBg: "#ffffff", | ||
appContentBg: "#ffffff", | ||
// appBorderColor: '#585C6D', | ||
appBorderRadius: 0, | ||
// | ||
barTextColor: "#9E9E9E", | ||
barSelectedColor: "#3b82f6", | ||
barBg: "#ffffff", | ||
}); |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.