@deque/cauldron-react 6.19.0 → 6.20.0-canary.38d97249
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/lib/index.js +3 -11
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2920,12 +2920,6 @@ var Badge = React.forwardRef(function (_a, ref) {
|
|
|
2920
2920
|
});
|
|
2921
2921
|
Badge.displayName = 'Badge';
|
|
2922
2922
|
|
|
2923
|
-
var iconByType = {
|
|
2924
|
-
critical: 'chevron-double-up',
|
|
2925
|
-
serious: 'chevron-up',
|
|
2926
|
-
moderate: 'chevron-down',
|
|
2927
|
-
minor: 'chevron-double-down'
|
|
2928
|
-
};
|
|
2929
2923
|
var typeValues = {
|
|
2930
2924
|
critical: 'Critical',
|
|
2931
2925
|
serious: 'Serious',
|
|
@@ -2934,11 +2928,9 @@ var typeValues = {
|
|
|
2934
2928
|
};
|
|
2935
2929
|
var ImpactBadge = React.forwardRef(function (_a, ref) {
|
|
2936
2930
|
var type = _a.type, label = _a.label, className = _a.className, other = tslib.__rest(_a, ["type", "label", "className"]);
|
|
2937
|
-
return (React__default["default"].createElement(Badge, tslib.__assign({ className: classNames__default["default"]("ImpactBadge", "ImpactBadge--".concat(type), className), ref: ref }, other),
|
|
2938
|
-
React__default["default"].createElement(
|
|
2939
|
-
|
|
2940
|
-
React__default["default"].createElement(BadgeLabel, null, "Impact:"),
|
|
2941
|
-
typeValues[type]))));
|
|
2931
|
+
return (React__default["default"].createElement(Badge, tslib.__assign({ className: classNames__default["default"]("ImpactBadge", "ImpactBadge--".concat(type), className), ref: ref }, other), label || (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
2932
|
+
React__default["default"].createElement(BadgeLabel, null, "Impact:"),
|
|
2933
|
+
typeValues[type]))));
|
|
2942
2934
|
});
|
|
2943
2935
|
ImpactBadge.displayName = 'ImpactBadge';
|
|
2944
2936
|
|
package/package.json
CHANGED