forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Create @mui/material-next package (mui#28200)
- Loading branch information
1 parent
a4bbca2
commit 50f1864
Showing
16 changed files
with
166 additions
and
2 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
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,5 @@ | ||
# @mui/material-next | ||
|
||
Material Design components built using @mui/core. | ||
|
||
This package is a nursery for components that will ultimately replace the @mui/material ones. |
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,81 @@ | ||
{ | ||
"name": "@mui/material-next", | ||
"version": "6.0.0-alpha.0", | ||
"private": false, | ||
"author": "Material-UI Team", | ||
"description": "Material Design components built using @mui/core.", | ||
"main": "./src/index.ts", | ||
"keywords": [ | ||
"react", | ||
"react-component", | ||
"material-ui", | ||
"material design" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/mui-org/material-ui.git", | ||
"directory": "packages/mui-material-next" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/mui-org/material-ui/issues" | ||
}, | ||
"homepage": "https://material-ui.com/", | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/material-ui" | ||
}, | ||
"scripts": { | ||
"build": "yarn build:modern && yarn build:node && yarn build:stable && yarn build:types && yarn build:copy-files", | ||
"build:modern": "node ../../scripts/build modern", | ||
"build:node": "node ../../scripts/build node", | ||
"build:stable": "node ../../scripts/build stable", | ||
"build:copy-files": "node ../../scripts/copy-files.js", | ||
"build:types": "node ../../scripts/buildTypes", | ||
"prebuild": "rimraf build tsconfig.build.tsbuildinfo", | ||
"release": "yarn build && npm publish build --tag next", | ||
"test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-material-next/**/*.test.{js,ts,tsx}'", | ||
"typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{spec,d}.{ts,tsx}\" && tsc -p tsconfig.json", | ||
"typescript:module-augmentation": "node scripts/testModuleAugmentation.js" | ||
}, | ||
"peerDependencies": { | ||
"@emotion/react": "^11.4.1", | ||
"@emotion/styled": "^11.3.0", | ||
"@types/react": "^16.8.6 || ^17.0.0", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@types/react": { | ||
"optional": true | ||
}, | ||
"@emotion/react": { | ||
"optional": true | ||
}, | ||
"@emotion/styled": { | ||
"optional": true | ||
} | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.14.8", | ||
"@mui/core": "5.0.0-alpha.45", | ||
"@mui/system": "5.0.0-rc.0", | ||
"@mui/types": "7.0.0-rc.0", | ||
"@mui/utils": "5.0.0-rc.0", | ||
"@popperjs/core": "^2.4.4", | ||
"@types/react-transition-group": "^4.2.0", | ||
"clsx": "^1.1.1", | ||
"csstype": "^3.0.8", | ||
"hoist-non-react-statics": "^3.3.2", | ||
"prop-types": "^15.7.2", | ||
"react-is": "^17.0.2", | ||
"react-transition-group": "^4.4.0" | ||
}, | ||
"sideEffects": false, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"engines": { | ||
"node": ">=12.0.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* eslint import/namespace: ['error', { allowComputed: true }] */ | ||
/** | ||
* Important: This test also serves as a point to | ||
* import the entire lib for coverage reporting | ||
*/ | ||
|
||
import { expect } from 'chai'; | ||
import * as materialNext from './index'; | ||
|
||
describe('@mui/material-next', () => { | ||
it('should have exports', () => { | ||
expect(typeof materialNext).to.equal('object'); | ||
}); | ||
|
||
it('should not have undefined exports', () => { | ||
Object.keys(materialNext).forEach((exportKey) => | ||
expect(Boolean(materialNext[exportKey])).to.equal(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 @@ | ||
export default () => {}; |
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,19 @@ | ||
{ | ||
// This config is for emitting declarations (.d.ts) only | ||
// Actual .ts source files are transpiled via babel | ||
"extends": "./tsconfig", | ||
"compilerOptions": { | ||
"composite": true, | ||
"declaration": true, | ||
"noEmit": false, | ||
"emitDeclarationOnly": true, | ||
"outDir": "build", | ||
"rootDir": "./src" | ||
}, | ||
"include": ["./src/**/*.ts*"], | ||
"exclude": ["src/**/*.spec.ts*", "src/**/*.test.ts*"], | ||
"references": [ | ||
{ "path": "../mui-core/tsconfig.build.json" }, | ||
{ "path": "../mui-system/tsconfig.build.json" } | ||
] | ||
} |
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,4 @@ | ||
{ | ||
"extends": "../../tsconfig", | ||
"include": ["src/**/*"] | ||
} |
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