bnstooltips 1.4.9 → 1.4.10
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 +3 -1
- package/build/index.es.js.map +1 -1
- package/build/index.js +3 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -35,7 +35,7 @@ styleInject(css_248z$6);
|
|
|
35
35
|
|
|
36
36
|
function TooltipBase(_a) {
|
|
37
37
|
var title = _a.title, category = _a.subtitle, grade = _a.grade, _b = _a.icon, icon = _b === void 0 ? "" : _b, _c = _a.mainInfos, mainTexts = _c === void 0 ? [] : _c, _d = _a.subInfoGroups, subTexts = _d === void 0 ? [] : _d, id = _a.id, _e = _a.fullHeight, fullHeight = _e === void 0 ? false : _e;
|
|
38
|
-
return (React.createElement("div", {
|
|
38
|
+
return (React.createElement("div", { "data-contentid": id !== null && id !== void 0 ? id : "", "data-testid": "TooltipBase", className: "TooltipBase_container TooltipBase_border-grade-".concat(grade, " ").concat(fullHeight ? "TooltipBase_containerFullHeight" : "") },
|
|
39
39
|
(title != null && title != "") ||
|
|
40
40
|
(category != null && category != "") ? (React.createElement("div", { className: "TooltipBase_titlesubtitle" },
|
|
41
41
|
React.createElement("div", { className: "TooltipBase_title" },
|
|
@@ -5485,6 +5485,7 @@ function ItemTooltip(_a) {
|
|
|
5485
5485
|
var tooltipBaseProps = {
|
|
5486
5486
|
title: item.name,
|
|
5487
5487
|
grade: item.grade,
|
|
5488
|
+
id: item.id + "-" + item.level,
|
|
5488
5489
|
icon: item.icon ? BuildIconPath(item.icon.iconPath) : "",
|
|
5489
5490
|
subtitle: (_c = (_b = item.categories) === null || _b === void 0 ? void 0 : _b.sort(function (a, b) { return b.index - a.index; })[0].localizedName) !== null && _c !== void 0 ? _c : "",
|
|
5490
5491
|
mainInfos: [],
|
|
@@ -5954,6 +5955,7 @@ function SkillTooltip(_a) {
|
|
|
5954
5955
|
var skill = data;
|
|
5955
5956
|
var tooltipBaseProps = {
|
|
5956
5957
|
title: skill.Name,
|
|
5958
|
+
id: skill.ID + "-" + skill.Variation,
|
|
5957
5959
|
grade: 4,
|
|
5958
5960
|
icon: skill.IconPath ? React.createElement(SkillIconWithButton, { skill: skill }) : "",
|
|
5959
5961
|
subtitle: skill.AdditionalInfo
|