@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applica-software-guru/react-admin",
3
- "version": "1.3.175",
3
+ "version": "1.3.176",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -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
- minHeight: '18px'
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 '@emotion/react';
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;
@@ -96,6 +96,7 @@ const ThemeConfigProvider = ({ initialConfig, children }: ThemeConfigProviderPro
96
96
  return (
97
97
  <ThemeConfigContext.Provider
98
98
  value={{
99
+ // @ts-ignore
99
100
  ...config,
100
101
 
101
102
  setFontFamily,