Skip to content

Commit

Permalink
Merge branch 'main' into issue-10293-size-prop
Browse files Browse the repository at this point in the history
  • Loading branch information
sstrubberg authored Jan 5, 2022
2 parents c60d8d8 + c8fba17 commit 9434e49
Show file tree
Hide file tree
Showing 42 changed files with 928 additions and 749 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

631 changes: 0 additions & 631 deletions .yarn/releases/yarn-3.0.0.cjs

This file was deleted.

768 changes: 768 additions & 0 deletions .yarn/releases/yarn-3.1.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1

yarn-path ".yarn/releases/yarn-3.0.0.cjs"
yarn-path ".yarn/releases/yarn-3.1.1.cjs"
16 changes: 13 additions & 3 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@ nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
spec: '@yarnpkg/plugin-interactive-tools'
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
spec: '@yarnpkg/plugin-workspace-tools'

yarnPath: .yarn/releases/yarn-3.0.0.cjs
supportedArchitectures:
os:
- 'current'
- 'darwin'
- 'linux'
- 'win32'
cpu:
- 'current'
- 'x64'

yarnPath: .yarn/releases/yarn-3.1.1.cjs
2 changes: 1 addition & 1 deletion config/jest-config-carbon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
],
transform: {
'^.+\\.(js|jsx)$': require.resolve('./transform/jsTransform.js'),
'^.+\\.css$': require.resolve('./transform/cssTransform.js'),
'^.+\\.s?css$': require.resolve('./transform/cssTransform.js'),
'^(?!.*\\.(js|jsx|css|json)$)': require.resolve(
'./transform/fileTransform.js'
),
Expand Down
3 changes: 2 additions & 1 deletion config/jest-config-carbon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.6.2",
"jest-circus": "^27.0.6",
"jest-watch-typeahead": "^0.6.4"
"jest-watch-typeahead": "^0.6.4",
"sass": "^1.45.0"
},
"devDependencies": {
"react": "^17.0.1",
Expand Down
47 changes: 40 additions & 7 deletions config/jest-config-carbon/transform/cssTransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,48 @@

'use strict';

// This is a custom Jest transformer turning style imports into empty objects.
// http://facebook.github.io/jest/docs/tutorial-webpack.html
const { createHash } = require('crypto');
const fs = require('fs');
const sass = require('sass');
const path = require('path');

const THIS_FILE = fs.readFileSync(__filename);

module.exports = {
process() {
return 'module.exports = {};';
process(_file, filepath) {
const result = sass.renderSync({
file: filepath,
outputStyle: 'compressed',
});
return `
const css = \`${result.css.toString()}\`;
let style;
beforeAll(() => {
style = document.createElement('style');
style.textContent = css;
document.head.appendChild(style);
});
afterAll(() => {
document.head.removeChild(style);
});
`;
},
getCacheKey() {
// The output is always the same.
return 'cssTransform';
getCacheKey(sourceText, sourcePath, transformOptions) {
const { config, configString, instrument } = transformOptions;
return createHash('md5')
.update(THIS_FILE)
.update('\0', 'utf8')
.update(sourceText)
.update('\0', 'utf8')
.update(path.relative(config.rootDir, sourcePath))
.update('\0', 'utf8')
.update(configString)
.update('\0', 'utf8')
.update(instrument ? 'instrument' : '')
.update('\0', 'utf8')
.update(process.version)
.update('\0', 'utf8')
.update(sass.info)
.digest('hex');
},
};
Binary file not shown.
11 changes: 6 additions & 5 deletions packages/colors/examples/preview/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Manual changes might be lost - proceed with caution!

__metadata:
version: 4
version: 5
cacheKey: 8

"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.16.0":
Expand All @@ -21,7 +21,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/core@npm:7.16.5, @babel/core@npm:^7.12.0":
"@babel/core@npm:^7.12.0":
version: 7.16.5
resolution: "@babel/core@npm:7.16.5"
dependencies:
Expand Down Expand Up @@ -453,7 +453,7 @@ __metadata:
languageName: node
linkType: hard

"@parcel/core@npm:2.0.1, @parcel/core@npm:^2.0.1":
"@parcel/core@npm:^2.0.1":
version: 2.0.1
resolution: "@parcel/core@npm:2.0.1"
dependencies:
Expand Down Expand Up @@ -2979,10 +2979,10 @@ __metadata:

"fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>":
version: 2.3.2
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=1cc4b2"
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"
dependencies:
node-gyp: latest
checksum: 78db9daf1f6526a49cefee3917cc988f62dc7f25b5dd80ad6de4ffc4af7f0cab7491ac737626ff53e482a111bc53aac9e411fe3602458eca36f6a003ecf69c16
conditions: os=darwin
languageName: node
linkType: hard

Expand All @@ -2992,6 +2992,7 @@ fsevents@~2.3.2:
dependencies:
node-gyp: latest
checksum: 97ade64e75091afee5265e6956cb72ba34db7819b4c3e94c431d4be2b19b8bb7a2d4116da417950c3425f17c8fe693d25e20212cac583ac1521ad066b77ae31f
conditions: os=darwin
languageName: node
linkType: hard

Expand Down
3 changes: 0 additions & 3 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
},
"bugs": "https://github.com/carbon-design-system/carbon/issues",
"homepage": "https://www.carbondesignsystem.com/",
"engines": {
"node": ">=6.x"
},
"files": [
"css/**/*",
"es/**/*",
Expand Down
7 changes: 4 additions & 3 deletions packages/grid/examples/css-grid/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Manual changes might be lost - proceed with caution!

__metadata:
version: 4
version: 5
cacheKey: 8

"@babel/code-frame@npm:7.12.11":
Expand Down Expand Up @@ -1199,10 +1199,10 @@ __metadata:

"fsevents@patch:fsevents@~2.3.1#~builtin<compat/fsevents>, fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>":
version: 2.3.2
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=1cc4b2"
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"
dependencies:
node-gyp: latest
checksum: 78db9daf1f6526a49cefee3917cc988f62dc7f25b5dd80ad6de4ffc4af7f0cab7491ac737626ff53e482a111bc53aac9e411fe3602458eca36f6a003ecf69c16
conditions: os=darwin
languageName: node
linkType: hard

Expand All @@ -1212,6 +1212,7 @@ __metadata:
dependencies:
node-gyp: latest
checksum: 97ade64e75091afee5265e6956cb72ba34db7819b4c3e94c431d4be2b19b8bb7a2d4116da417950c3425f17c8fe693d25e20212cac583ac1521ad066b77ae31f
conditions: os=darwin
languageName: node
linkType: hard

Expand Down
11 changes: 6 additions & 5 deletions packages/grid/examples/preview/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Manual changes might be lost - proceed with caution!

__metadata:
version: 4
version: 5
cacheKey: 8

"@babel/code-frame@npm:^7.0.0":
Expand Down Expand Up @@ -30,7 +30,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/core@npm:7.16.5, @babel/core@npm:^7.12.0":
"@babel/core@npm:^7.12.0":
version: 7.16.5
resolution: "@babel/core@npm:7.16.5"
dependencies:
Expand Down Expand Up @@ -463,7 +463,7 @@ __metadata:
languageName: node
linkType: hard

"@parcel/core@npm:2.0.1, @parcel/core@npm:^2.0.1":
"@parcel/core@npm:^2.0.1":
version: 2.0.1
resolution: "@parcel/core@npm:2.0.1"
dependencies:
Expand Down Expand Up @@ -3065,10 +3065,10 @@ __metadata:

"fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>":
version: 2.3.2
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=1cc4b2"
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"
dependencies:
node-gyp: latest
checksum: 78db9daf1f6526a49cefee3917cc988f62dc7f25b5dd80ad6de4ffc4af7f0cab7491ac737626ff53e482a111bc53aac9e411fe3602458eca36f6a003ecf69c16
conditions: os=darwin
languageName: node
linkType: hard

Expand All @@ -3078,6 +3078,7 @@ fsevents@~2.3.2:
dependencies:
node-gyp: latest
checksum: 97ade64e75091afee5265e6956cb72ba34db7819b4c3e94c431d4be2b19b8bb7a2d4116da417950c3425f17c8fe693d25e20212cac583ac1521ad066b77ae31f
conditions: os=darwin
languageName: node
linkType: hard

Expand Down
11 changes: 6 additions & 5 deletions packages/icons/examples/preview/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Manual changes might be lost - proceed with caution!

__metadata:
version: 4
version: 5
cacheKey: 8

"@babel/code-frame@npm:^7.0.0":
Expand Down Expand Up @@ -30,7 +30,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/core@npm:7.16.5, @babel/core@npm:^7.12.0":
"@babel/core@npm:^7.12.0":
version: 7.16.5
resolution: "@babel/core@npm:7.16.5"
dependencies:
Expand Down Expand Up @@ -463,7 +463,7 @@ __metadata:
languageName: node
linkType: hard

"@parcel/core@npm:2.0.1, @parcel/core@npm:^2.0.1":
"@parcel/core@npm:^2.0.1":
version: 2.0.1
resolution: "@parcel/core@npm:2.0.1"
dependencies:
Expand Down Expand Up @@ -3043,10 +3043,10 @@ __metadata:

"fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>":
version: 2.3.2
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=1cc4b2"
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"
dependencies:
node-gyp: latest
checksum: 78db9daf1f6526a49cefee3917cc988f62dc7f25b5dd80ad6de4ffc4af7f0cab7491ac737626ff53e482a111bc53aac9e411fe3602458eca36f6a003ecf69c16
conditions: os=darwin
languageName: node
linkType: hard

Expand All @@ -3056,6 +3056,7 @@ fsevents@~2.3.2:
dependencies:
node-gyp: latest
checksum: 97ade64e75091afee5265e6956cb72ba34db7819b4c3e94c431d4be2b19b8bb7a2d4116da417950c3425f17c8fe693d25e20212cac583ac1521ad066b77ae31f
conditions: os=darwin
languageName: node
linkType: hard

Expand Down
11 changes: 6 additions & 5 deletions packages/layout/examples/preview/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Manual changes might be lost - proceed with caution!

__metadata:
version: 4
version: 5
cacheKey: 8

"@babel/code-frame@npm:^7.0.0":
Expand Down Expand Up @@ -30,7 +30,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/core@npm:7.16.5, @babel/core@npm:^7.12.0":
"@babel/core@npm:^7.12.0":
version: 7.16.5
resolution: "@babel/core@npm:7.16.5"
dependencies:
Expand Down Expand Up @@ -463,7 +463,7 @@ __metadata:
languageName: node
linkType: hard

"@parcel/core@npm:2.0.1, @parcel/core@npm:^2.0.1":
"@parcel/core@npm:^2.0.1":
version: 2.0.1
resolution: "@parcel/core@npm:2.0.1"
dependencies:
Expand Down Expand Up @@ -3012,10 +3012,10 @@ __metadata:

"fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>":
version: 2.3.2
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=1cc4b2"
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"
dependencies:
node-gyp: latest
checksum: 78db9daf1f6526a49cefee3917cc988f62dc7f25b5dd80ad6de4ffc4af7f0cab7491ac737626ff53e482a111bc53aac9e411fe3602458eca36f6a003ecf69c16
conditions: os=darwin
languageName: node
linkType: hard

Expand All @@ -3025,6 +3025,7 @@ fsevents@~2.3.2:
dependencies:
node-gyp: latest
checksum: 97ade64e75091afee5265e6956cb72ba34db7819b4c3e94c431d4be2b19b8bb7a2d4116da417950c3425f17c8fe693d25e20212cac583ac1521ad066b77ae31f
conditions: os=darwin
languageName: node
linkType: hard

Expand Down
11 changes: 6 additions & 5 deletions packages/pictograms/examples/preview/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Manual changes might be lost - proceed with caution!

__metadata:
version: 4
version: 5
cacheKey: 8

"@babel/code-frame@npm:^7.0.0":
Expand Down Expand Up @@ -30,7 +30,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/core@npm:7.16.5, @babel/core@npm:^7.12.0":
"@babel/core@npm:^7.12.0":
version: 7.16.5
resolution: "@babel/core@npm:7.16.5"
dependencies:
Expand Down Expand Up @@ -463,7 +463,7 @@ __metadata:
languageName: node
linkType: hard

"@parcel/core@npm:2.0.1, @parcel/core@npm:^2.0.1":
"@parcel/core@npm:^2.0.1":
version: 2.0.1
resolution: "@parcel/core@npm:2.0.1"
dependencies:
Expand Down Expand Up @@ -3043,10 +3043,10 @@ __metadata:

"fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>":
version: 2.3.2
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=1cc4b2"
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"
dependencies:
node-gyp: latest
checksum: 78db9daf1f6526a49cefee3917cc988f62dc7f25b5dd80ad6de4ffc4af7f0cab7491ac737626ff53e482a111bc53aac9e411fe3602458eca36f6a003ecf69c16
conditions: os=darwin
languageName: node
linkType: hard

Expand All @@ -3056,6 +3056,7 @@ fsevents@~2.3.2:
dependencies:
node-gyp: latest
checksum: 97ade64e75091afee5265e6956cb72ba34db7819b4c3e94c431d4be2b19b8bb7a2d4116da417950c3425f17c8fe693d25e20212cac583ac1521ad066b77ae31f
conditions: os=darwin
languageName: node
linkType: hard

Expand Down
Loading

0 comments on commit 9434e49

Please sign in to comment.