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