@applica-software-guru/react-admin 1.0.73 → 1.0.74

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/index.html CHANGED
@@ -3,7 +3,9 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="theme-color" content="#f0f6ff" />
6
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
7
9
  <title>React-Admin Demo Application</title>
8
10
  </head>
9
11
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applica-software-guru/react-admin",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,32 @@
1
+ import { DateTimeInputProps, DateTimeInput as RaDateTimeInput } from 'react-admin';
2
+
3
+ import LabeledInput from './LabeledInput';
4
+ import { styled } from '@mui/material/styles';
5
+
6
+ const StyledDateInput = styled(RaDateTimeInput, {
7
+ name: 'RaApplicaDateTimeInput',
8
+ slot: 'root'
9
+ })(({ label }) => ({
10
+ '& legend': {
11
+ width: label === false ? 0 : 'auto'
12
+ }
13
+ }));
14
+
15
+ const DateTimeInput = (props: DateTimeInputProps) => (
16
+ /** @ts-ignore */
17
+ <LabeledInput {...props}>
18
+ {/** @ts-ignore */}
19
+ <StyledDateInput />
20
+ </LabeledInput>
21
+ );
22
+
23
+ DateTimeInput.propTypes = {
24
+ ...RaDateTimeInput.propTypes,
25
+ ...LabeledInput.propTypes
26
+ };
27
+
28
+ DateTimeInput.defaultProps = {
29
+ ...LabeledInput.defaultProps
30
+ };
31
+
32
+ export default DateTimeInput;
@@ -4,6 +4,7 @@ import AutocompleteArrayInput from './AutocompleteArrayInput';
4
4
  import AutocompleteInput from './AutocompleteInput';
5
5
  import BooleanInput from './BooleanInput';
6
6
  import DateInput from './DateInput';
7
+ import DateTimeInput from './DateTimeInput';
7
8
  import FileInput from './FileInput';
8
9
  import ImageInput from './ImageInput';
9
10
  import LabeledArrayInput from './LabeledArrayInput';
@@ -26,10 +27,11 @@ export {
26
27
  AutocompleteInput,
27
28
  BooleanInput,
28
29
  DateInput,
30
+ DateTimeInput,
29
31
  FileInput,
30
32
  ImageInput,
31
- LabeledInput,
32
33
  LabeledArrayInput,
34
+ LabeledInput,
33
35
  NumberInput,
34
36
  RecordInput,
35
37
  ReferenceArrayInput,