-
Notifications
You must be signed in to change notification settings - Fork 921
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4384 from uswds/release-3.0.0-beta.1
Release 3.0.0 beta.1
- Loading branch information
Showing
888 changed files
with
70,060 additions
and
13,672 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 |
---|---|---|
@@ -1 +1 @@ | ||
|
||
src/styleguide/ |
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 +1 @@ | ||
14.16.0 | ||
16.13.0 |
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,131 @@ | ||
const path = require("path"); | ||
const { | ||
createJoinFunction, | ||
createJoinImplementation, | ||
asGenerator, | ||
defaultJoinGenerator, | ||
} = require("resolve-url-loader"); | ||
|
||
const imageDirectory = path.resolve("src/img"); | ||
const fontsDirectory = path.resolve("src/fonts"); | ||
|
||
// call default generator then append any additional paths | ||
const pathGenerator = asGenerator((item, ...rest) => [ | ||
...defaultJoinGenerator(item, ...rest), | ||
item.isAbsolute | ||
? null | ||
: /\.(png|svg|jpg|jpeg|gif)$/.test(item.uri) | ||
? imageDirectory | ||
: /\.(woff|woff2|eot|ttf|otf)$/.test(item.uri) | ||
? fontsDirectory | ||
: null, | ||
]); | ||
|
||
const joinSassAssets = createJoinFunction( | ||
"joinSassAssets", | ||
createJoinImplementation(pathGenerator) | ||
); | ||
|
||
module.exports = { | ||
core: { | ||
builder: "webpack5", | ||
}, | ||
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"], | ||
addons: [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-a11y", | ||
], | ||
webpackFinal: async (config, { configType }) => { | ||
// `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION' | ||
// You can change the configuration based on that. | ||
// 'PRODUCTION' is used when building the static version of storybook. | ||
config.module.rules.push( | ||
{ | ||
test: /\.ya?ml$/, | ||
type: "json", | ||
use: "yaml-loader", | ||
}, | ||
{ | ||
test: /\.twig$/, | ||
use: "twigjs-loader", | ||
resolve: { | ||
alias: { | ||
'@components': path.resolve(__dirname, '../src/components') | ||
} | ||
} | ||
}, | ||
{ | ||
test: /\.s(c|a)ss$/i, | ||
use: [ | ||
{ | ||
loader: "style-loader", | ||
}, | ||
{ | ||
loader: "css-loader", | ||
options: { | ||
sourceMap: true, | ||
esModule: false, | ||
}, | ||
}, | ||
{ | ||
loader: "postcss-loader", | ||
options: { | ||
sourceMap: true, | ||
postcssOptions: (loaderContext) => { | ||
return { | ||
plugins: [ | ||
["postcss-import", { root: loaderContext.resourcePath }], | ||
["postcss-discard-comments", { removeAll: true }], | ||
"postcss-preset-env", | ||
[ | ||
"postcss-csso", | ||
{ forceMediaMerge: false, comments: false }, | ||
], | ||
], | ||
}; | ||
}, | ||
}, | ||
}, | ||
{ | ||
loader: "resolve-url-loader", | ||
options: { | ||
join: joinSassAssets, | ||
}, | ||
}, | ||
{ | ||
loader: "sass-loader", | ||
options: { | ||
sourceMap: true, | ||
}, | ||
}, | ||
], | ||
include: path.resolve(__dirname, "../src"), | ||
}, | ||
{ | ||
test: /\.(png|svg|jpg|jpeg|gif)$/i, | ||
type: "javascript/auto", | ||
use: { | ||
loader: "file-loader", | ||
options: { | ||
name: "[path][name].[ext]", | ||
}, | ||
}, | ||
include: path.resolve(__dirname, "../src/img"), | ||
}, | ||
{ | ||
test: /\.(woff|woff2|eot|ttf|otf)$/i, | ||
type: "javascript/auto", | ||
use: { | ||
loader: "file-loader", | ||
options: { | ||
name: "[path][name].[ext]", | ||
}, | ||
}, | ||
include: path.resolve(__dirname, "../src/fonts"), | ||
} | ||
); | ||
|
||
return 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<meta name="robots" content="noindex,nofollow" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
|
||
<!-- Global styles --> | ||
<style> | ||
#root { | ||
box-sizing: border-box; | ||
margin: 8%; | ||
} | ||
|
||
#root * { | ||
box-sizing: border-box !important; | ||
} | ||
|
||
* { | ||
box-sizing: border-box !important; | ||
} | ||
|
||
#root *:before, | ||
#root *:after { | ||
box-sizing: inherit; | ||
} | ||
|
||
html, | ||
body { | ||
font-size: 16px; | ||
} | ||
</style> |
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,11 @@ | ||
import "../dist/js/uswds.min.js"; | ||
|
||
export const parameters = { | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
} |
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,3 +1,2 @@ | ||
# when publishing on Federalist, build only the files in ./build | ||
# (where Pattern library compiles to) | ||
source: build | ||
# when publishing on Federalist, point to built storybook instance | ||
source: storybook-static |
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
Oops, something went wrong.