Skip to content

Commit

Permalink
migrate material ui to beta for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveDeveloper committed Aug 6, 2021
1 parent 585c0a9 commit 6c67b7b
Show file tree
Hide file tree
Showing 13 changed files with 359 additions and 5,503 deletions.
4 changes: 2 additions & 2 deletions dist/cjs/core-js-c4d3f21b.js → dist/cjs/core-js-dd891070.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

2,890 changes: 172 additions & 2,718 deletions dist/cjs/index-f6cd37ff.js → dist/cjs/index-16c78f0c.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/esm/core-js-8e4c65fc.js → dist/esm/core-js-d0167d4a.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

2,890 changes: 172 additions & 2,718 deletions dist/esm/index-d0cb53ac.js → dist/esm/index-c680f8e3.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 1 addition & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lolocompany/react-admin-lolo",
"version": "1.2.1",
"version": "1.2.2",
"description": "A library for schema-driven web apps using [Lolo](https://lolo.company), [React Admin](https://github.com/marmelab/react-admin) and [RJSF](https://github.com/rjsf-team/react-jsonschema-form)",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -52,7 +52,8 @@
"dependencies": {
"@aws-amplify/ui-react": "^1.2.8",
"@babel/runtime": "^7.13.0",
"@material-ui/lab": "^4.0.0-alpha.60",
"@material-ui/core": "^4.12.3",
"@material-ui/icons": "^4.11.2",
"@rjsf/core": "^3.0.0",
"@rjsf/material-ui": "^3.0.0",
"aws-amplify": "^4.2.2",
Expand Down
43 changes: 1 addition & 42 deletions src/rjsf/ReferenceInputWidget.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import TextField from '@material-ui/core/TextField';
import Autocomplete from '@material-ui/lab/Autocomplete';
import CircularProgress from '@material-ui/core/CircularProgress';
import Grid from '@material-ui/core/Grid';
import Button from '@material-ui/core/Button';
Expand Down Expand Up @@ -92,47 +91,7 @@ function ReferenceInputWidget(props) {
return (
<Grid container>
<Grid item xs={11}>
<Autocomplete
id={id}
autoComplete={true}
blurOnSelect={true}
getOptionLabel={option => option.value || option}
getOptionSelected={option => option && option.id === value}
filterOptions={x => x}
options={options}
autoComplete
includeInputInList
filterSelectedOptions
value={inputValue}
inputValue={inputValue}
onChange={(event, newValue) => {
if (newValue) {
setInputValue(newValue.value);
onChange(newValue.id);
} else {
setInputValue('');
onChange(undefined);
}
}}
onInputChange={(event, newInputValue) => setInputValue(newInputValue)}
renderInput={params => (
<TextField
{...params}
label={(schema && schema.title) || typePlural}
style={{ minWidth: 186, margin: 4 }}
variant={variant}
InputProps={{
...params.InputProps,
endAdornment: (
<React.Fragment>
{loading ? <CircularProgress color="inherit" size={18} /> : null}
{params.InputProps.endAdornment}
</React.Fragment>
),
}}
/>
)}
/>

</Grid>
<Grid item xs={1} align="right">
{showCreate ? (
Expand Down

0 comments on commit 6c67b7b

Please sign in to comment.