@acvl/frontend-components 0.0.17 → 0.0.18

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/dist/esm/index.js CHANGED
@@ -26471,7 +26471,7 @@ const ControlledTimePicker = (props) => {
26471
26471
  };
26472
26472
 
26473
26473
  const ControlledPhotoField = (props) => {
26474
- return (jsx(Controller, { control: props.control, name: props.name, render: ({ field: { onChange, onBlur, ref } }) => (jsx("input", { type: "file", accept: "image/*", ref: ref, onBlur: onBlur, onChange: (e) => onChange(e.target.files && e.target.files[0]) })) }));
26474
+ return (jsx(Controller, { control: props.control, name: props.name, render: ({ field: { onChange, onBlur, ref }, fieldState: { error } }) => (jsxs(FormGroup, { sx: { width: 1 }, color: 'secondary', children: [jsx("input", { type: "file", accept: "image/*", ref: ref, onBlur: onBlur, onChange: (e) => onChange(e.target.files && e.target.files[0]) }), jsx(FormHelperText$1, { error: !!error, children: error ? error.message : ' ' })] })) }));
26475
26475
  };
26476
26476
 
26477
26477
  // ==============================|| DESLIZADOR CONTROLADO ||============================== //