@applica-software-guru/react-admin 1.5.359 → 1.5.361

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
@@ -108,5 +108,5 @@
108
108
  "type": "module",
109
109
  "types": "dist/index.d.ts",
110
110
  "typings": "dist/index.d.ts",
111
- "version": "1.5.359"
111
+ "version": "1.5.361"
112
112
  }
@@ -1,11 +1,12 @@
1
- import { LabeledInput } from '@/components/ra-inputs/LabeledInput';
1
+ import { LabeledInput, LabeledInputProps } from '@/components/ra-inputs/LabeledInput';
2
2
  import { styled } from '@mui/material/styles';
3
- import { AutocompleteInputProps, AutocompleteInput as RaAutocompleteInput } from 'react-admin';
3
+ import {
4
+ AutocompleteInput as RaAutocompleteInput,
5
+ AutocompleteInputProps as RaAutocompleteInputProps
6
+ } from 'react-admin';
4
7
 
5
- // @ts-ignore
6
- const StyledAutocompleteInput = styled(RaAutocompleteInput, {
7
- name: 'StyledAutocompleteInput',
8
- root: 'root'
8
+ const StyledAutocompleteInput = styled(RaAutocompleteInput as any, {
9
+ name: 'StyledAutocompleteInput'
9
10
  })(({ label }) => ({
10
11
  '& legend': {
11
12
  width: label === false ? 0 : 'auto'
@@ -15,6 +16,8 @@ const StyledAutocompleteInput = styled(RaAutocompleteInput, {
15
16
  }
16
17
  }));
17
18
 
19
+ type AutocompleteInputProps = RaAutocompleteInputProps & LabeledInputProps;
20
+
18
21
  function AutocompleteInput({ size = 'small', ...props }: AutocompleteInputProps): JSX.Element {
19
22
  // Sanitize props removing "perPage":
20
23
  // @ts-ignore