@applica-software-guru/react-admin 1.3.175 → 1.3.176
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ra-inputs/SelectInput.d.ts +1 -24
- package/dist/components/ra-inputs/SelectInput.d.ts.map +1 -1
- package/dist/contexts/ThemeConfigContext.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +51 -51
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +3517 -3521
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +58 -58
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-inputs/AutocompleteArrayInput.jsx +3 -3
- package/src/components/ra-inputs/AutocompleteInput.jsx +3 -3
- package/src/components/ra-inputs/LabeledInput.tsx +1 -1
- package/src/components/ra-inputs/SelectArrayInput.jsx +3 -3
- package/src/components/ra-inputs/SelectInput.tsx +4 -9
- package/src/contexts/ThemeConfigContext.tsx +1 -0
package/package.json
CHANGED
|
@@ -11,10 +11,10 @@ const StyledAutocompleteArrayInput = styled(RaAutocompleteArrayInput, {
|
|
|
11
11
|
},
|
|
12
12
|
'& .MuiAutocomplete-inputRoot': {
|
|
13
13
|
padding: `0px 9px`
|
|
14
|
-
},
|
|
15
|
-
'& label.MuiFormLabel-root[data-shrink="false"]': {
|
|
16
|
-
minHeight: '18px'
|
|
17
14
|
}
|
|
15
|
+
// '& label.MuiFormLabel-root[data-shrink="false"]': {
|
|
16
|
+
// minHeight: '18px'
|
|
17
|
+
// }
|
|
18
18
|
}));
|
|
19
19
|
|
|
20
20
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -9,9 +9,9 @@ const StyledAutocompleteInput = styled(RaAutocompleteInput, {
|
|
|
9
9
|
'& legend': {
|
|
10
10
|
width: label === false ? 0 : 'auto'
|
|
11
11
|
},
|
|
12
|
-
'& label.MuiFormLabel-root[data-shrink="false"]': {
|
|
13
|
-
|
|
14
|
-
},
|
|
12
|
+
// '& label.MuiFormLabel-root[data-shrink="false"]': {
|
|
13
|
+
// minHeight: '18px'
|
|
14
|
+
// },
|
|
15
15
|
'& .MuiAutocomplete-inputRoot': {
|
|
16
16
|
// Serve ad allineare l'altezza di un input di tipo Autocomplete a quella degli altri campi utilizzati.
|
|
17
17
|
padding: `0px 9px`
|
|
@@ -4,7 +4,7 @@ import { FormHelperText, InputLabel, Stack } from '@mui/material';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { useAppConfig } from '../../hooks';
|
|
7
|
-
import { useTheme } from '@
|
|
7
|
+
import { useTheme } from '@mui/material/styles';
|
|
8
8
|
|
|
9
9
|
export type LabeledInputProps = InputProps & {
|
|
10
10
|
sx?: any;
|
|
@@ -12,10 +12,10 @@ const ApplicaStyledSelectArrayInput = styled(RaSelectArrayInput, {
|
|
|
12
12
|
'& .RaSelectArrayInput-chips > .RaSelectArrayInput-chip': {
|
|
13
13
|
marginTop: '-2px',
|
|
14
14
|
marginBottom: '-2px'
|
|
15
|
-
},
|
|
16
|
-
'& label.MuiFormLabel-root[data-shrink="false"]': {
|
|
17
|
-
marginTop: '2px'
|
|
18
15
|
}
|
|
16
|
+
// '& label.MuiFormLabel-root[data-shrink="false"]': {
|
|
17
|
+
// marginTop: '2px'
|
|
18
|
+
// }
|
|
19
19
|
}));
|
|
20
20
|
|
|
21
21
|
ApplicaStyledSelectArrayInput.propTypes = {
|
|
@@ -8,11 +8,11 @@ const ApplicaStyledSelectInput = styled(RaSelectInput, {
|
|
|
8
8
|
slot: 'Root'
|
|
9
9
|
})(({ label }) => ({
|
|
10
10
|
'& legend': {
|
|
11
|
-
width: label === false ? 0 : 'auto'
|
|
12
|
-
},
|
|
13
|
-
'& label.MuiFormLabel-root[data-shrink="false"]': {
|
|
14
|
-
marginTop: '2px'
|
|
11
|
+
width: label === false || label === null ? 0 : 'auto'
|
|
15
12
|
}
|
|
13
|
+
// '& label.MuiFormLabel-root[data-shrink="false"]': {
|
|
14
|
+
// marginTop: '2px'
|
|
15
|
+
// }
|
|
16
16
|
}));
|
|
17
17
|
export type SelectInputProps = LabeledInputProps & RaSelectInputProps;
|
|
18
18
|
const SelectInput = (props: SelectInputProps) => (
|
|
@@ -21,9 +21,4 @@ const SelectInput = (props: SelectInputProps) => (
|
|
|
21
21
|
</LabeledInput>
|
|
22
22
|
);
|
|
23
23
|
|
|
24
|
-
SelectInput.propTypes = {
|
|
25
|
-
...RaSelectInput.propTypes,
|
|
26
|
-
...LabeledInput.propTypes
|
|
27
|
-
};
|
|
28
|
-
|
|
29
24
|
export default SelectInput;
|