@applica-software-guru/react-admin 1.3.161 → 1.3.162

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.161",
3
+ "version": "1.3.162",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,14 @@ export type ArrayInputProps = RaArrayInputProps &
35
35
  * @returns {React.ReactElement}
36
36
  */
37
37
  const ArrayInput = ({ label, addLabel, source, helperText, divider = true, ...props }: ArrayInputProps): React.ReactElement => (
38
- <LabeledArrayInput label={label} addLabel={addLabel} source={source} helperText={helperText} divider={divider}>
38
+ <LabeledArrayInput
39
+ label={label}
40
+ addLabel={addLabel}
41
+ source={source}
42
+ helperText={helperText}
43
+ divider={divider}
44
+ fullWidth={props?.fullWidth}
45
+ >
39
46
  <StyledArrayInput source={source} label={false} {...props} />
40
47
  </LabeledArrayInput>
41
48
  );
@@ -18,6 +18,7 @@ export type LabeledArrayInputProps = {
18
18
  divider?: boolean;
19
19
  sx?: SxProps;
20
20
  children: React.ReactElement;
21
+ fullWidth?: boolean;
21
22
  };
22
23
 
23
24
  /**
@@ -34,6 +35,7 @@ const LabeledArrayInput = ({
34
35
  sx,
35
36
  addLabel,
36
37
  divider,
38
+ fullWidth,
37
39
  ...props
38
40
  }: LabeledArrayInputProps): React.ReactElement => {
39
41
  const theme = useTheme() as any;
@@ -56,6 +58,7 @@ const LabeledArrayInput = ({
56
58
  display: 'none'
57
59
  }
58
60
  },
61
+ width: fullWidth ? '100%' : 'auto',
59
62
  ...sx
60
63
  }}
61
64
  >