-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'users/procload/badgeDarkContrastFix' of https://github.…
…com/procload/fluentui into users/procload/badgeDarkContrastFix
- Loading branch information
Showing
73 changed files
with
2,869 additions
and
475 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
Validating CODEOWNERS rules …
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
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,23 +1,18 @@ | ||
/* remove the docs wrapper bg to let page bg show through */ | ||
/* remove unnecessary padding now that theme switcher is not taking up space */ | ||
#docs-root .sbdocs-wrapper { | ||
background: transparent !important; | ||
padding-top: 0; | ||
} | ||
|
||
/* sb-show-main is missing during page transitions causing a page shift */ | ||
/* todo: cleanup once we no longer inherit docs-root */ | ||
.sb-show-main.sb-main-fullscreen, | ||
.sb-main-fullscreen { | ||
margin: 0; | ||
padding: 0; | ||
display: block; | ||
} | ||
|
||
/* remove loading overlay */ | ||
.sb-preparing-story, | ||
.sb-preparing-docs, | ||
.sb-nopreview, | ||
.sb-errordisplay { | ||
display: none !important; | ||
} | ||
|
||
/* Hide props table controls, since they don't work in the React implementation */ | ||
#docs-root .docblock-argstable-head > tr > th:nth-child(4), | ||
#docs-root .docblock-argstable-body > tr > td:nth-child(4) { | ||
display: none; | ||
} | ||
|
||
/* Hide the toolbar on the first story: zoom in, zoom out, reset zoom, open in new tab */ | ||
#docs-root .sbdocs-preview > .os-host { | ||
display: none; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint", "import"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"@typescript-eslint/explicit-module-boundary-types": "off" | ||
} | ||
} |
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,85 @@ | ||
const path = require('path'); | ||
const CircularDependencyPlugin = require('circular-dependency-plugin'); | ||
const { TsconfigPathsPlugin } = require('tsconfig-paths-webpack-plugin'); | ||
|
||
const tsBin = require.resolve('typescript'); | ||
const tsConfigPath = path.resolve(__dirname, '../../../tsconfig.base.wc.json'); | ||
|
||
const tsPaths = new TsconfigPathsPlugin({ | ||
configFile: tsConfigPath, | ||
}); | ||
|
||
module.exports = /** @type {import('../../../.storybook/main').StorybookBaseConfig} */ ({ | ||
addons: [ | ||
{ | ||
name: '@storybook/addon-docs', | ||
}, | ||
{ | ||
name: '@storybook/addon-essentials', | ||
options: { | ||
backgrounds: false, | ||
viewport: false, | ||
toolbars: false, | ||
actions: false, | ||
}, | ||
}, | ||
], | ||
|
||
stories: ['../src/**/*.stories.tsx'], | ||
core: { | ||
builder: 'webpack5', | ||
disableTelemetry: true, | ||
}, | ||
babel: {}, | ||
typescript: { | ||
// disable react-docgen-typescript (totally not needed here, slows things down a lot) | ||
reactDocgen: false, | ||
}, | ||
webpackFinal: async config => { | ||
config.resolve = config.resolve ?? {}; | ||
config.resolve.extensions = config.resolve.extensions ?? []; | ||
config.resolve.plugins = config.resolve.plugins ?? []; | ||
config.module = config.module ?? {}; | ||
config.plugins = config.plugins ?? []; | ||
|
||
config.resolve.extensionAlias = { | ||
'.js': ['.ts', '.js'], | ||
'.mjs': ['.mts', '.mjs'], | ||
}; | ||
config.resolve.extensions.push(...['.ts', '.js']); | ||
config.resolve.plugins.push(tsPaths); | ||
config.module.rules = config.module.rules ?? []; | ||
config.module.rules.push( | ||
{ | ||
test: /\.([cm]?ts|tsx)$/, | ||
loader: 'ts-loader', | ||
sideEffects: true, | ||
options: { | ||
transpileOnly: true, | ||
compiler: tsBin, | ||
}, | ||
}, | ||
// Following config is needed to be able to resolve @storybook packages imported in specified files that don't ship valid ESM | ||
// It also enables importing other packages without proper ESM extensions, but that should be avoided ! | ||
// @see https://webpack.js.org/configuration/module/#resolvefullyspecified | ||
{ | ||
test: /\.m?js/, | ||
resolve: { fullySpecified: false }, | ||
}, | ||
); | ||
|
||
config.plugins.push( | ||
new CircularDependencyPlugin({ | ||
exclude: /node_modules/, | ||
failOnError: process.env.NODE_ENV === 'production', | ||
}), | ||
); | ||
|
||
// Disable ProgressPlugin which logs verbose webpack build progress. Warnings and Errors are still logged. | ||
if (process.env.TF_BUILD || process.env.LAGE_PACKAGE_NAME) { | ||
config.plugins = config.plugins.filter(({ constructor }) => constructor.name !== 'ProgressPlugin'); | ||
} | ||
|
||
return config; | ||
}, | ||
}); |
Oops, something went wrong.