bnstooltips 1.16.1 → 1.16.3
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.es.js +6 -6
- package/build/index.es.js.map +1 -1
- package/build/index.js +6 -6
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -8830,7 +8830,7 @@ var ItemImproveSelectStageTooltipWrapper = function (_a) {
|
|
|
8830
8830
|
childRef ? (React__default["default"].createElement(Tippy, { arrow: showArrow, trigger: trigger, plugins: [followCursor], followCursor: followCursor$1 && !interactive, appendTo: document.body, placement: placement, animation: "fade", interactive: interactive, content: React__default["default"].createElement(ItemImproveSelectStageTooltip, { items: items, onClick: onClick }), theme: "grade" + 2, reference: childRef })) : (React__default["default"].createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
|
|
8831
8831
|
};
|
|
8832
8832
|
|
|
8833
|
-
var css_248z$1 = ".TooltipBase_bns_upgradeRed_color {\n color: #FF2818; }\n\n.TooltipBase_bns_downgradeBlue_color {\n color: #28A9F0; }\n\n.EffectTooltip_mainText {\n font-weight: 500; }\n\n.EffectTooltip_subTextMargin {\n margin-bottom: 0.3rem; }\n\n.tooltipArg {\n color: #46bee1;\n font-weight: 600; }\n";
|
|
8833
|
+
var css_248z$1 = ".TooltipBase_bns_upgradeRed_color {\n color: #FF2818; }\n\n.TooltipBase_bns_downgradeBlue_color {\n color: #28A9F0; }\n\n.EffectTooltip_mainText {\n font-weight: 500; }\n\n.EffectTooltip_subTextMargin {\n margin-bottom: 0.3rem; }\n\n.tooltipArg {\n color: #46bee1;\n font-weight: 600; }\n\n.wordbreakall {\n word-break: break-all; }\n\n.wordbreakword {\n word-break: break-word; }\n";
|
|
8834
8834
|
styleInject(css_248z$1);
|
|
8835
8835
|
|
|
8836
8836
|
function EffectTooltip(_a) {
|
|
@@ -8857,12 +8857,12 @@ function AddDescription(mainInfos, effect) {
|
|
|
8857
8857
|
}
|
|
8858
8858
|
function AddStackInfo(subInfoGroups, effect) {
|
|
8859
8859
|
var texts = [];
|
|
8860
|
-
if (effect.StackCount
|
|
8860
|
+
if (effect.StackCount != 0) {
|
|
8861
8861
|
texts.push(React__default["default"].createElement("div", { key: "stackCount" },
|
|
8862
8862
|
"Stack Count: ",
|
|
8863
8863
|
React__default["default"].createElement(BlueColoredText, { text: effect.StackCount.toString() })));
|
|
8864
8864
|
}
|
|
8865
|
-
if (effect.StackAmount
|
|
8865
|
+
if (effect.StackAmount != 0) {
|
|
8866
8866
|
texts.push(React__default["default"].createElement("div", { key: "stackAmount" },
|
|
8867
8867
|
"Stack Limit: ",
|
|
8868
8868
|
React__default["default"].createElement(BlueColoredText, { text: effect.StackAmount.toString() })));
|
|
@@ -8876,7 +8876,7 @@ function AddStackInfo(subInfoGroups, effect) {
|
|
|
8876
8876
|
}
|
|
8877
8877
|
function AddDurationInfo(subInfoGroups, effect) {
|
|
8878
8878
|
var texts = [];
|
|
8879
|
-
if (effect.PassiveDuratonInMs
|
|
8879
|
+
if (effect.PassiveDuratonInMs != 0) {
|
|
8880
8880
|
texts.push(React__default["default"].createElement("div", { key: "passiveDuration" },
|
|
8881
8881
|
"Duration: ",
|
|
8882
8882
|
React__default["default"].createElement(BlueColoredText, { text: ToDurationString(effect.PassiveDuratonInMs) })));
|
|
@@ -8889,10 +8889,10 @@ function AddDurationInfo(subInfoGroups, effect) {
|
|
|
8889
8889
|
}
|
|
8890
8890
|
}
|
|
8891
8891
|
function AddAliasInfo(subInfoGroups, effect) {
|
|
8892
|
-
if (effect.Alias.length > 0) {
|
|
8892
|
+
if (effect.Alias != null && effect.Alias.length > 0) {
|
|
8893
8893
|
subInfoGroups.push({
|
|
8894
8894
|
title: "Alias",
|
|
8895
|
-
texts: [React__default["default"].createElement(BlueColoredText, { text: effect.Alias })]
|
|
8895
|
+
texts: [React__default["default"].createElement(BlueColoredText, { text: effect.Alias, customClasses: "wordbreakall" })]
|
|
8896
8896
|
});
|
|
8897
8897
|
}
|
|
8898
8898
|
}
|