@applica-software-guru/react-admin 1.1.92 → 1.1.94

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.1.92",
3
+ "version": "1.1.94",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,8 +10,10 @@ const StyledAutocompleteArrayInput = styled(RaAutocompleteArrayInput, {
10
10
  width: label === false ? 0 : 'auto'
11
11
  },
12
12
  '& .MuiAutocomplete-inputRoot': {
13
- // Serve ad allineare l'altezza di un input di tipo Autocomplete a quella degli altri campi utilizzati.
14
13
  padding: `0px 9px`
14
+ },
15
+ '& label.MuiFormLabel-root[data-shrink="false"]': {
16
+ minHeight: '18px'
15
17
  }
16
18
  }));
17
19
 
@@ -25,5 +27,9 @@ AutocompleteArrayInput.propTypes = {
25
27
  ...RaAutocompleteArrayInput.propTypes,
26
28
  ...LabeledInput.propTypes
27
29
  };
30
+ AutocompleteArrayInput.defaultProps = {
31
+ ...RaAutocompleteArrayInput.defaultProps,
32
+ size: 'small'
33
+ };
28
34
 
29
35
  export default AutocompleteArrayInput;
@@ -9,6 +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
15
  '& .MuiAutocomplete-inputRoot': {
13
16
  // Serve ad allineare l'altezza di un input di tipo Autocomplete a quella degli altri campi utilizzati.
14
17
  padding: `0px 9px`
@@ -33,4 +36,9 @@ AutocompleteInput.propTypes = {
33
36
  ...LabeledInput.propTypes
34
37
  };
35
38
 
39
+ AutocompleteInput.defaultProps = {
40
+ ...RaAutocompleteInput.defaultProps,
41
+ size: 'small'
42
+ };
43
+
36
44
  export default AutocompleteInput;
@@ -12,6 +12,9 @@ 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'
15
18
  }
16
19
  }));
17
20
 
@@ -9,6 +9,9 @@ const ApplicaStyledSelectInput = styled(RaSelectInput, {
9
9
  })(({ label }) => ({
10
10
  '& legend': {
11
11
  width: label === false ? 0 : 'auto'
12
+ },
13
+ '& label.MuiFormLabel-root[data-shrink="false"]': {
14
+ marginTop: '2px'
12
15
  }
13
16
  }));
14
17
  export type SelectInputProps = LabeledInputProps & RaSelectInputProps;
@@ -51,11 +51,7 @@ const ApplicaStyledList = styled(RaList, {
51
51
  alignSelf: 'center',
52
52
  marginTop: 0
53
53
  },
54
- [theme.breakpoints.down('sm')]: {
55
- // Quando lo schermo è piccolo, il filtro viene visualizzato in una colonna.
56
- // Diamo un margine maggiore in basso per evitare che siano troppo vicini.
57
- marginBottom: theme.spacing(1.5)
58
- }
54
+ marginTop: theme.spacing(1.5)
59
55
  },
60
56
  '& .RaFilterFormInput-hideButton': {
61
57
  marginTop: theme.spacing(1),