-
Notifications
You must be signed in to change notification settings - Fork 38
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
1 parent
d0c6a57
commit c85fb60
Showing
135 changed files
with
13,197 additions
and
15,062 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16 | ||
20 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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
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 |
---|---|---|
@@ -1,34 +1,41 @@ | ||
module.exports = { | ||
stories: process.env.STORYBOOK_BUILD_MODE == 'production' ? ['../src/**/__stories__/*.stories.tsx'] : ['../src/**/*.stories.tsx'], | ||
import { dirname, join } from 'path'; | ||
import { StorybookConfig } from '@storybook/react-vite'; | ||
|
||
const config: StorybookConfig = { | ||
stories: | ||
process.env.STORYBOOK_BUILD_MODE == 'production' | ||
? ['../src/**/__stories__/*.stories.tsx'] | ||
: ['../src/**/*.stories.tsx'], | ||
|
||
addons: [ | ||
'@storybook/preset-create-react-app', | ||
'@storybook/addon-actions', | ||
getAbsolutePath('@storybook/addon-actions'), | ||
{ | ||
name: '@storybook/addon-docs', | ||
options: { | ||
configureJSX: true, | ||
}, | ||
configureJSX: true | ||
} | ||
}, | ||
'@storybook/addon-knobs' | ||
getAbsolutePath('@storybook/addon-knobs') | ||
], | ||
|
||
core: { | ||
builder: 'webpack5', | ||
disableTelemetry: true | ||
}, | ||
|
||
staticDirs: ['../../../node_modules/pdfjs-dist/build/'], | ||
webpackFinal: (config) => { | ||
// ignore some Node.js packages | ||
config.resolve.fallback.crypto = false; | ||
config.resolve.fallback.fs = false; | ||
config.resolve.fallback.https = false; | ||
config.resolve.fallback.os = false; | ||
config.resolve.fallback.stream = false; | ||
config.resolve.fallback.zlib = false; | ||
|
||
config.module.rules.push({ | ||
test: /\.worker\.min\.js$/, | ||
use: 'raw-loader' | ||
}); | ||
|
||
return config; | ||
|
||
framework: { | ||
name: getAbsolutePath('@storybook/react-vite'), | ||
options: {} | ||
}, | ||
|
||
docs: { | ||
autodocs: true | ||
} | ||
}; | ||
|
||
function getAbsolutePath(value: string): any { | ||
return dirname(require.resolve(join(value, 'package.json'))); | ||
} | ||
|
||
export default config; |
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,14 @@ | ||
import { addParameters } from '@storybook/react'; | ||
import { Preview } from '@storybook/react'; | ||
import { DocsPage, DocsContainer } from '@storybook/addon-docs/blocks'; | ||
import './styles.scss'; | ||
|
||
addParameters({ | ||
docs: { | ||
container: DocsContainer, | ||
page: DocsPage | ||
const preview: Preview = { | ||
parameters: { | ||
docs: { | ||
container: DocsContainer, | ||
page: DocsPage | ||
} | ||
} | ||
}); | ||
}; | ||
|
||
export default preview; |
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,4 +1,4 @@ | ||
@import '~@ibm-watson/discovery-styles/scss/index'; | ||
@import '@ibm-watson/discovery-styles/scss/index'; | ||
|
||
// for document-preview-toolbar story | ||
@import '~carbon-components/scss/components/overflow-menu/overflow-menu'; | ||
@import 'carbon-components/scss/components/overflow-menu/overflow-menu'; |
Oops, something went wrong.