@7shifts/sous-chef 3.45.5 → 3.45.6

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.
@@ -6815,6 +6815,14 @@ var TimeFieldInput = function TimeFieldInput(_ref) {
6815
6815
  inputProps.onChange(e);
6816
6816
  inputProps.onBlur(e);
6817
6817
  },
6818
+ onKeyDown: function onKeyDown(e) {
6819
+ if ('key' in e && e.key !== 'Enter') return;
6820
+ if (!(e.target instanceof HTMLInputElement)) return;
6821
+ e.target.value = parseTime(e.target.value, 'g:i A');
6822
+ inputProps.onChange(e);
6823
+ inputProps.onBlur(e);
6824
+ inputProps.onKeyDown(e);
6825
+ },
6818
6826
  onClick: allOtherProps.onClick,
6819
6827
  onMouseEnter: allOtherProps.onMouseEnter,
6820
6828
  onMouseLeave: allOtherProps.onMouseLeave,