@campxdev/shared 1.4.2 → 1.4.4

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": "@campxdev/shared",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -8,7 +8,7 @@ interface ActionButtonProps extends ButtonProps {
8
8
  export default function ActionButton({ loading, ...props }: ActionButtonProps) {
9
9
  return (
10
10
  <Button
11
- sx={{ height: '50px', flexGrow: 1 }}
11
+ sx={{ height: '50px' }}
12
12
  variant={!props?.variant ? 'contained' : props?.variant}
13
13
  endIcon={loading ? <CircularProgress size={20} /> : null}
14
14
  disabled={loading}
@@ -17,7 +17,7 @@ export default function FormTextField({
17
17
  name,
18
18
  control,
19
19
  label,
20
- value,
20
+ required,
21
21
  ...rest
22
22
  }: MyTextFieldProps) {
23
23
  return (
@@ -30,6 +30,7 @@ export default function FormTextField({
30
30
  label={label}
31
31
  onChange={onChange}
32
32
  value={value}
33
+ required={required}
33
34
  error={error ? true : false}
34
35
  helperText={error ? error.message : null}
35
36
  {...rest}
@@ -253,6 +253,9 @@ const muiTheme = createTheme({
253
253
  '&.MuiTextField-root > .MuiInputBase-root': {
254
254
  padding: 0,
255
255
  },
256
+ '& .MuiInputBase-inputMultiline': {
257
+ padding: '14px',
258
+ },
256
259
  '& .MuiSelect-select': {
257
260
  padding: '14px',
258
261
  '&.MuiInputBase-inputSizeSmall': {