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 CHANGED
@@ -8822,7 +8822,7 @@ var ItemImproveSelectStageTooltipWrapper = function (_a) {
8822
8822
  childRef ? (React.createElement(Tippy, { arrow: showArrow, trigger: trigger, plugins: [followCursor], followCursor: followCursor$1 && !interactive, appendTo: document.body, placement: placement, animation: "fade", interactive: interactive, content: React.createElement(ItemImproveSelectStageTooltip, { items: items, onClick: onClick }), theme: "grade" + 2, reference: childRef })) : (React.createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
8823
8823
  };
8824
8824
 
8825
- 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";
8825
+ 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";
8826
8826
  styleInject(css_248z$1);
8827
8827
 
8828
8828
  function EffectTooltip(_a) {
@@ -8849,12 +8849,12 @@ function AddDescription(mainInfos, effect) {
8849
8849
  }
8850
8850
  function AddStackInfo(subInfoGroups, effect) {
8851
8851
  var texts = [];
8852
- if (effect.StackCount > 0) {
8852
+ if (effect.StackCount != 0) {
8853
8853
  texts.push(React.createElement("div", { key: "stackCount" },
8854
8854
  "Stack Count: ",
8855
8855
  React.createElement(BlueColoredText, { text: effect.StackCount.toString() })));
8856
8856
  }
8857
- if (effect.StackAmount > 0) {
8857
+ if (effect.StackAmount != 0) {
8858
8858
  texts.push(React.createElement("div", { key: "stackAmount" },
8859
8859
  "Stack Limit: ",
8860
8860
  React.createElement(BlueColoredText, { text: effect.StackAmount.toString() })));
@@ -8868,7 +8868,7 @@ function AddStackInfo(subInfoGroups, effect) {
8868
8868
  }
8869
8869
  function AddDurationInfo(subInfoGroups, effect) {
8870
8870
  var texts = [];
8871
- if (effect.PassiveDuratonInMs > 0) {
8871
+ if (effect.PassiveDuratonInMs != 0) {
8872
8872
  texts.push(React.createElement("div", { key: "passiveDuration" },
8873
8873
  "Duration: ",
8874
8874
  React.createElement(BlueColoredText, { text: ToDurationString(effect.PassiveDuratonInMs) })));
@@ -8881,10 +8881,10 @@ function AddDurationInfo(subInfoGroups, effect) {
8881
8881
  }
8882
8882
  }
8883
8883
  function AddAliasInfo(subInfoGroups, effect) {
8884
- if (effect.Alias.length > 0) {
8884
+ if (effect.Alias != null && effect.Alias.length > 0) {
8885
8885
  subInfoGroups.push({
8886
8886
  title: "Alias",
8887
- texts: [React.createElement(BlueColoredText, { text: effect.Alias })]
8887
+ texts: [React.createElement(BlueColoredText, { text: effect.Alias, customClasses: "wordbreakall" })]
8888
8888
  });
8889
8889
  }
8890
8890
  }