revdev-components 0.278.0 → 0.279.0
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/build/index.js
CHANGED
|
@@ -6263,7 +6263,7 @@ var s$6 = {"root":"index-module_root__ogwMI","root__hasActive":"index-module_roo
|
|
|
6263
6263
|
|
|
6264
6264
|
var LevelLetterBadge = function (_a) {
|
|
6265
6265
|
var _b;
|
|
6266
|
-
var value = _a.levels, className = _a.className, activeCode = _a.activeCode, title = _a.title, href = _a.href;
|
|
6266
|
+
var value = _a.levels, showRate = _a.showRate, className = _a.className, activeCode = _a.activeCode, title = _a.title, href = _a.href;
|
|
6267
6267
|
var levels = React.useMemo(function () {
|
|
6268
6268
|
if (typeof value === "string") {
|
|
6269
6269
|
return [{ code: value }];
|
|
@@ -6287,7 +6287,8 @@ var LevelLetterBadge = function (_a) {
|
|
|
6287
6287
|
if (typeof rate === "number") {
|
|
6288
6288
|
titleText += " (".concat(numeral(rate).format("0%"), ")");
|
|
6289
6289
|
}
|
|
6290
|
-
|
|
6290
|
+
var content = "".concat(code === null || code === void 0 ? void 0 : code.toUpperCase()).concat(typeof rate === "number" && showRate === true ? " ".concat(numeral(rate).format(".0")) : "");
|
|
6291
|
+
return (React.createElement(AppTooltip, { key: code, title: title ? title({ code: code, rate: rate }) : titleText }, href ? (React.createElement(AppLink, { href: href({ code: code }), className: levelClassName }, content)) : (React.createElement("div", { className: levelClassName }, content))));
|
|
6291
6292
|
})));
|
|
6292
6293
|
};
|
|
6293
6294
|
|