Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into issue-1652
  • Loading branch information
todor-a committed Jul 15, 2020
2 parents db16c0b + a865eaa commit 0a60e63
Show file tree
Hide file tree
Showing 7 changed files with 710 additions and 561 deletions.
2 changes: 2 additions & 0 deletions docs/pages/guides/css-overrides.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ This will also autocomplete classnames.

Add the following to a TypeScript declaration file in your project, such as `overrides-mui.d.ts`:

Add the following to a TypeScript declaration file in your project, such as `overrides-mui.d.ts`:

<!-- should be in sync with lib/src/__tests__/typings.d.ts -->

```typescript
Expand Down
92 changes: 92 additions & 0 deletions docs/patrons.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,98 @@
"vanity": null,
"youtube": null
},
{
"about": null,
"created": "2019-01-27T13:06:03.000+00:00",
"default_country_code": null,
"email": "leif.john@korshavn.net",
"facebook": null,
"first_name": "Leif",
"full_name": "Leif Korshavn",
"gender": 0,
"image_url": "https://c10.patreonusercontent.com/3/eyJ3IjoyMDB9/patreon-media/p/user/16869088/0d6c8bb815f14881938dd132fbb9c51e/1.jpeg?token-time=2145916800&token-hash=PI9zmNuGjHubXKa-0YOX0g3KpyNonMaOfNLam-3v4AU%3D",
"is_email_verified": true,
"last_name": "Korshavn",
"social_connections": {
"deviantart": null,
"discord": null,
"facebook": null,
"google": null,
"instagram": null,
"reddit": null,
"spotify": null,
"twitch": null,
"twitter": null,
"youtube": null
},
"thumb_url": "https://c10.patreonusercontent.com/3/eyJ3IjoyMDB9/patreon-media/p/user/16869088/0d6c8bb815f14881938dd132fbb9c51e/1.jpeg?token-time=2145916800&token-hash=PI9zmNuGjHubXKa-0YOX0g3KpyNonMaOfNLam-3v4AU%3D",
"twitch": null,
"twitter": null,
"url": "https://www.patreon.com/user?u=16869088",
"vanity": null,
"youtube": null
},
{
"about": null,
"created": "2019-07-30T14:05:20.000+00:00",
"default_country_code": null,
"email": "felipepastorff@gmail.com",
"facebook": null,
"first_name": "Felipe",
"full_name": "Felipe Pastor de Freitas Ferreira",
"gender": 0,
"image_url": "https://c8.patreon.com/2/200/22732849",
"is_email_verified": true,
"last_name": "Pastor de Freitas Ferreira",
"social_connections": {
"deviantart": null,
"discord": null,
"facebook": null,
"google": null,
"instagram": null,
"reddit": null,
"spotify": null,
"twitch": null,
"twitter": null,
"youtube": null
},
"thumb_url": "https://c8.patreon.com/2/200/22732849",
"twitch": null,
"twitter": null,
"url": "https://www.patreon.com/user?u=22732849",
"vanity": null,
"youtube": null
},
{
"about": null,
"created": "2019-07-30T14:05:20.000+00:00",
"default_country_code": null,
"email": "felipepastorff@gmail.com",
"facebook": null,
"first_name": "Felipe",
"full_name": "Felipe Pastor de Freitas Ferreira",
"gender": 0,
"image_url": "https://c8.patreon.com/2/200/22732849",
"is_email_verified": true,
"last_name": "Pastor de Freitas Ferreira",
"social_connections": {
"deviantart": null,
"discord": null,
"facebook": null,
"instagram": null,
"reddit": null,
"spotify": null,
"twitch": null,
"twitter": null,
"youtube": null
},
"thumb_url": "https://c8.patreon.com/2/200/22732849",
"twitch": null,
"twitter": null,
"url": "https://www.patreon.com/user?u=22732849",
"vanity": null,
"youtube": null
},
{
"about": null,
"created": "2018-08-02T01:46:34.000+00:00",
Expand Down
30 changes: 15 additions & 15 deletions lib/.size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"material-ui-pickers.esm.js": {
"bundled": 206357,
"minified": 110201,
"gzipped": 28112,
"build/dist/material-ui-pickers.esm.js": {
"bundled": 97826,
"minified": 54733,
"gzipped": 15237,
"treeshaked": {
"rollup": {
"code": 89508,
"import_statements": 2098
"code": 43817,
"import_statements": 1794
},
"webpack": {
"code": 99259
"code": 50069
}
}
},
"material-ui-pickers.umd.js": {
"bundled": 319934,
"minified": 124137,
"gzipped": 34867
"build/dist/material-ui-pickers.umd.js": {
"bundled": 205895,
"minified": 78743,
"gzipped": 23429
},
"material-ui-pickers.umd.min.js": {
"bundled": 275030,
"minified": 114319,
"gzipped": 32057
"build/dist/material-ui-pickers.umd.min.js": {
"bundled": 160063,
"minified": 67220,
"gzipped": 20255
}
}
10 changes: 1 addition & 9 deletions lib/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,11 @@ module.exports = {
plugins: [
'optimize-clsx',
['@babel/plugin-proposal-class-properties', { loose: true }],
// ['@babel/plugin-transform-runtime'],
['@babel/plugin-transform-runtime'],
// for IE 11 support
'@babel/plugin-transform-object-assign',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
path.resolve(__dirname, './remove-prop-types.js'),
],
env: {
production: {
plugins: [
'@babel/plugin-transform-react-constant-elements',
['babel-plugin-react-remove-properties', { properties: ['data-mui-test'] }],
],
},
},
};
130 changes: 77 additions & 53 deletions lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@
}
},
"dependencies": {
"@date-io/date-fns": "^2.6.0",
"@date-io/dayjs": "^2.6.0",
"@date-io/luxon": "^2.6.0",
"@date-io/moment": "^2.6.0",
"@babel/runtime": "^7.6.0",
"@types/styled-jsx": "^2.2.8",
"clsx": "^1.0.2",
"prop-types": "^15.7.2",
"react-transition-group": "^4.4.1",
Expand All @@ -67,62 +65,88 @@
"prebuild": "rimraf build",
"build:prepare-files": "node prepare-build-files.js",
"build:bundle": "rollup --config",
"build:typescript": "tsc --project tsconfig.json && tsc -p tsconfig.adapters.json",
"build": "yarn build:typescript && yarn build:bundle && yarn build:prepare-files",
"build:analyze": "yarn build",
"release": "yarn test && yarn version && yarn build && yarn publish --non-interactive --tag next build"
"build:typescript": "tsc --project tsconfig.json",
"build": "npm run build:typescript && npm run build:bundle && npm run build:copy",
"build:analyze": "npm run build",
"release": "yarn test && yarn version && yarn build && yarn publish --non-interactive build"
},
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/node": "^7.8.7",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-transform-object-assign": "^7.8.3",
"@babel/plugin-transform-react-constant-elements": "^7.7.4",
"@babel/core": "^7.6.0",
"@babel/node": "^7.6.1",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/plugin-transform-runtime": "~7.6.0",
"@babel/preset-env": "^7.9.6",
"@babel/preset-react": "^7.9.4",
"@babel/runtime": "^7.9.6",
"@cypress/webpack-preprocessor": "^4.1.1",
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1",
"@rollup/plugin-babel": "^5.0.3",
"@rollup/plugin-commonjs": "^13.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"@testing-library/jest-dom": "^5.11.0",
"@types/enzyme": "^3.10.5",
"@babel/preset-env": "^7.6.0",
"@babel/preset-react": "^7.0.0",
"@date-io/core": "^1.2.0",
"@date-io/date-fns": "^1.3.0",
"@date-io/luxon": "^1.3.0",
"@date-io/moment": "^1.3.0",
"@material-ui/core": "^4.0.0",
"@material-ui/icons": "^3.0.2",
"@material-ui/styles": "^4.0.0",
"@types/enzyme": "^3.1.17",
"@types/enzyme-adapter-react-16": "^1.0.3",
"@types/fs-extra": "^8.1.0",
"@types/jest": "^25.2.1",
"@types/luxon": "^1.11.0",
"@types/prop-types": "^15.5.8",
"@types/react": "^16.9.35",
"@types/react-dom": "^16.9.8",
"@types/react-transition-group": "^4.2.4",
"@typescript-eslint/eslint-plugin": "^1.6.0",
"@typescript-eslint/parser": "^1.6.0",
"babel-loader": "^8.1.0",
"babel-plugin-optimize-clsx": "^2.6.0",
"babel-plugin-react-remove-properties": "^0.3.0",
"codecov": "^3.6.5",
"cross-env": "^7.0.2",
"cypress-react-unit-test": "^3.3.1",
"date-fns": "^2.12.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^4.0.5",
"fs-extra": "^9.0.0",
"full-icu": "^1.3.1",
"jest": "^26.1.0",
"luxon": "^1.23.0",
"moment": "2.27.0",
"react": "^16.13.0",
"react-dom": "^16.13.0",
"rollup": "^2.18.1",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-size-snapshot": "^0.12.0",
"rollup-plugin-terser": "^6.1.0",
"ts-jest": "^25.5.1",
"typescript": "^3.9.6"
"@types/react": "^16.8.2",
"@types/react-dom": "^16.8.0",
"@types/react-transition-group": "^2.0.15",
"babel-plugin-optimize-clsx": "^2.3.0",
"codecov": "^3.1.0",
"cross-env": "^5.2.0",
"date-fns": "^2.0.0-alpha.27",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.9.1",
"fs-extra": "^7.0.1",
"full-icu": "^1.2.1",
"glob": "^7.1.3",
"jest": "^24.1.0",
"luxon": "^1.11.1",
"moment": "2.22.2",
"prop-types": "^15.6.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"rollup": "^1.21.2",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-size-snapshot": "^0.10.0",
"rollup-plugin-terser": "^5.1.1",
"rollup-plugin-typescript": "^1.0.0",
"size-limit": "^0.21.1",
"ts-jest": "^24.0.1",
"ts-lib": "0.0.5",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.3.3"
},
"jest": {
"setupFilesAfterEnv": [
"<rootDir>/src/__tests__/setup.js"
],
"testRegex": "./src/__tests__/.*\\.test\\.(js|tsx)$",
"testURL": "http://localhost/",
"collectCoverage": true,
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"coveragePathIgnorePatterns": [
"<rootDir>/src/__tests__/"
],
"globals": {
"ts-jest": {
"tsConfig": "./src/__tests__/tsconfig.json"
}
}
}
}
Loading

0 comments on commit 0a60e63

Please sign in to comment.