@7shifts/sous-chef 3.45.3 → 3.45.5
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.css +2 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -2
- 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.modern.js
CHANGED
|
@@ -888,6 +888,7 @@ var ButtonElement = forwardRef(function (_ref2, ref) {
|
|
|
888
888
|
}, React__default.createElement("a", _extends({}, commonProps, rest, {
|
|
889
889
|
href: href,
|
|
890
890
|
target: target,
|
|
891
|
+
rel: target === BUTTON_TARGETS.BLANK ? 'noopener noreferrer' : '',
|
|
891
892
|
"aria-disabled": disabled,
|
|
892
893
|
ref: ref
|
|
893
894
|
}), children));
|
|
@@ -5849,7 +5850,8 @@ var Link = function Link(_ref) {
|
|
|
5849
5850
|
className: classnames(styles$8['link'], (_classNames = {}, _classNames[styles$8['link--primary']] = theme === LINK_THEME.PRIMARY, _classNames[styles$8['link--contrast']] = theme === LINK_THEME.CONTRAST, _classNames)),
|
|
5850
5851
|
href: href,
|
|
5851
5852
|
target: target,
|
|
5852
|
-
onClick: onClick
|
|
5853
|
+
onClick: onClick,
|
|
5854
|
+
rel: target === LINK_TARGET.BLANK ? 'noopener noreferrer' : ''
|
|
5853
5855
|
}), children);
|
|
5854
5856
|
};
|
|
5855
5857
|
|
|
@@ -9042,10 +9044,11 @@ var DataTable$1 = function DataTable(_ref) {
|
|
|
9042
9044
|
className: classnames(styles$b['data-table__body'], (_classNames3 = {}, _classNames3[styles$b['data-table__body--no-bottom-radius']] = isShowingFooter && isShowingContent, _classNames3)),
|
|
9043
9045
|
"data-testid": testId
|
|
9044
9046
|
}, isShowingContent && content.map(function (item, index) {
|
|
9047
|
+
var _item$key;
|
|
9045
9048
|
return React__default.createElement(RowItem, {
|
|
9046
9049
|
item: item,
|
|
9047
9050
|
columns: columns,
|
|
9048
|
-
key: index,
|
|
9051
|
+
key: (_item$key = item === null || item === void 0 ? void 0 : item.key) != null ? _item$key : index,
|
|
9049
9052
|
index: index,
|
|
9050
9053
|
testId: testId
|
|
9051
9054
|
});
|