@7shifts/sous-chef 3.45.4 → 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,
@@ -9044,10 +9052,11 @@ var DataTable$1 = function DataTable(_ref) {
9044
9052
  className: classnames(styles$b['data-table__body'], (_classNames3 = {}, _classNames3[styles$b['data-table__body--no-bottom-radius']] = isShowingFooter && isShowingContent, _classNames3)),
9045
9053
  "data-testid": testId
9046
9054
  }, isShowingContent && content.map(function (item, index) {
9055
+ var _item$key;
9047
9056
  return React__default.createElement(RowItem, {
9048
9057
  item: item,
9049
9058
  columns: columns,
9050
- key: index,
9059
+ key: (_item$key = item === null || item === void 0 ? void 0 : item.key) != null ? _item$key : index,
9051
9060
  index: index,
9052
9061
  testId: testId
9053
9062
  });