@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.
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/lists/DataTable/types.d.ts +2 -1
- package/package.json +1 -1
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,
|
|
@@ -9048,10 +9056,11 @@ var DataTable$1 = function DataTable(_ref) {
|
|
|
9048
9056
|
className: classnames(styles$b['data-table__body'], (_classNames3 = {}, _classNames3[styles$b['data-table__body--no-bottom-radius']] = isShowingFooter && isShowingContent, _classNames3)),
|
|
9049
9057
|
"data-testid": testId
|
|
9050
9058
|
}, isShowingContent && content.map(function (item, index) {
|
|
9059
|
+
var _item$key;
|
|
9051
9060
|
return React__default.createElement(RowItem, {
|
|
9052
9061
|
item: item,
|
|
9053
9062
|
columns: columns,
|
|
9054
|
-
key: index,
|
|
9063
|
+
key: (_item$key = item === null || item === void 0 ? void 0 : item.key) != null ? _item$key : index,
|
|
9055
9064
|
index: index,
|
|
9056
9065
|
testId: testId
|
|
9057
9066
|
});
|