@rpg-engine/long-bow 0.8.237 → 0.8.238
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/dist/long-bow.cjs.development.js +21 -14
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +21 -14
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Spellbook/Spell.tsx +12 -1
- package/src/components/Spellbook/__tests__/SpellInfoWrapper.test.tsx +26 -0
- package/src/components/Spellbook/__tests__/Spellbook.test.tsx +12 -0
- package/src/components/Spellbook/cards/SpellInfoWrapper.tsx +3 -1
|
@@ -17414,7 +17414,10 @@ var SpellInfoWrapper = function SpellInfoWrapper(_ref) {
|
|
|
17414
17414
|
if (!isTooltipMobileVisible) setIsTooltipVisible(true);
|
|
17415
17415
|
},
|
|
17416
17416
|
onMouseLeave: function onMouseLeave(event) {
|
|
17417
|
-
|
|
17417
|
+
var _document$activeEleme;
|
|
17418
|
+
if (!event.currentTarget.contains(document.activeElement) || !((_document$activeEleme = document.activeElement) != null && _document$activeEleme.matches(':focus-visible'))) {
|
|
17419
|
+
setIsTooltipVisible(false);
|
|
17420
|
+
}
|
|
17418
17421
|
},
|
|
17419
17422
|
onTouchStart: handleTouchStart,
|
|
17420
17423
|
onTouchEnd: clearHold,
|
|
@@ -17527,15 +17530,19 @@ var Spell = function Spell(_ref) {
|
|
|
17527
17530
|
"$unavailable": unavailable
|
|
17528
17531
|
}, note)));
|
|
17529
17532
|
};
|
|
17533
|
+
var assignmentPulse = /*#__PURE__*/styled.keyframes(["0%,100%{background-color:rgba(255,247,215,.5);}50%{background-color:rgba(255,252,235,.9);}"]);
|
|
17530
17534
|
var Card$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
17531
17535
|
displayName: "Spell__Card",
|
|
17532
17536
|
componentId: "sc-j96fa2-0"
|
|
17533
|
-
})(["box-sizing:border-box;display:flex;flex-direction:column;flex:1 1 auto;width:100%;min-width:0;padding:7px 8px 8px;text-align:left;color:#392718;background:rgba(255,247,215,0.5);border:1px solid ", ";box-shadow:", ";border-radius:3px;font:inherit;cursor:pointer;transition:background .12s,border-color .12s;&:hover:not(:disabled){background:rgba(255,252,235,.9);border-color:#8a5a14;box-shadow:inset 0 0 0 1px #8a5a14;}&:focus-visible{outline:3px solid #3a2110;outline-offset:2px;}&&:disabled{cursor:default;background:rgba(113,81,49,.1);border-style:dashed;color:#392718;filter:none;}&:disabled img,&:disabled canvas{opacity:.55;}"], function (_ref2) {
|
|
17537
|
+
})(["box-sizing:border-box;display:flex;flex-direction:column;flex:1 1 auto;width:100%;min-width:0;padding:7px 8px 8px;text-align:left;color:#392718;background:rgba(255,247,215,0.5);border:1px solid ", ";box-shadow:", ";border-radius:3px;font:inherit;cursor:pointer;transition:background .12s,border-color .12s;animation-name:", ";animation-duration:1.4s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;&:disabled{animation-name:none;}@media (prefers-reduced-motion:reduce){animation-name:none;}&:hover:not(:disabled){background:rgba(255,252,235,.9);border-color:#8a5a14;box-shadow:inset 0 0 0 1px #8a5a14;}&:focus-visible{outline:3px solid #3a2110;outline-offset:2px;}&&:disabled{cursor:default;background:rgba(113,81,49,.1);border-style:dashed;color:#392718;filter:none;}&:disabled img,&:disabled canvas{opacity:.55;}"], function (_ref2) {
|
|
17534
17538
|
var $assigning = _ref2.$assigning;
|
|
17535
17539
|
return $assigning ? '#8a5a14' : 'rgba(89, 56, 28, .4)';
|
|
17536
17540
|
}, function (_ref3) {
|
|
17537
17541
|
var $assigning = _ref3.$assigning;
|
|
17538
17542
|
return $assigning ? 'inset 0 0 0 1px #8a5a14' : 'none';
|
|
17543
|
+
}, function (_ref4) {
|
|
17544
|
+
var $assigning = _ref4.$assigning;
|
|
17545
|
+
return $assigning ? assignmentPulse : 'none';
|
|
17539
17546
|
});
|
|
17540
17547
|
var Heading = /*#__PURE__*/styled__default.span.withConfig({
|
|
17541
17548
|
displayName: "Spell__Heading",
|
|
@@ -17568,12 +17575,12 @@ var RARITY_INK = (_RARITY_INK = {}, _RARITY_INK[shared.ItemRarities.Common] = '#
|
|
|
17568
17575
|
var Rarity$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
17569
17576
|
displayName: "Spell__Rarity",
|
|
17570
17577
|
componentId: "sc-j96fa2-6"
|
|
17571
|
-
})(["display:inline-block;flex:none;padding:1px 5px;border:1px solid ", ";border-radius:2px;background:rgba(255,250,229,.7);&&{font-size:9px;line-height:1.3;color:", ";text-shadow:none;}"], function (
|
|
17572
|
-
var $rarity = _ref4.$rarity;
|
|
17573
|
-
return RARITY_INK[$rarity];
|
|
17574
|
-
}, function (_ref5) {
|
|
17578
|
+
})(["display:inline-block;flex:none;padding:1px 5px;border:1px solid ", ";border-radius:2px;background:rgba(255,250,229,.7);&&{font-size:9px;line-height:1.3;color:", ";text-shadow:none;}"], function (_ref5) {
|
|
17575
17579
|
var $rarity = _ref5.$rarity;
|
|
17576
17580
|
return RARITY_INK[$rarity];
|
|
17581
|
+
}, function (_ref6) {
|
|
17582
|
+
var $rarity = _ref6.$rarity;
|
|
17583
|
+
return RARITY_INK[$rarity];
|
|
17577
17584
|
});
|
|
17578
17585
|
var Description$8 = /*#__PURE__*/styled__default.span.withConfig({
|
|
17579
17586
|
displayName: "Spell__Description",
|
|
@@ -17589,8 +17596,8 @@ var Facts = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
17589
17596
|
var Requirement = /*#__PURE__*/styled__default.span.withConfig({
|
|
17590
17597
|
displayName: "Spell__Requirement",
|
|
17591
17598
|
componentId: "sc-j96fa2-9"
|
|
17592
|
-
})(["display:block;&&{font-size:9px;line-height:1.5;color:#392718;text-shadow:none;}", ""], function (
|
|
17593
|
-
var $unmet =
|
|
17599
|
+
})(["display:block;&&{font-size:9px;line-height:1.5;color:#392718;text-shadow:none;}", ""], function (_ref7) {
|
|
17600
|
+
var $unmet = _ref7.$unmet;
|
|
17594
17601
|
return $unmet && styled.css(["padding:3px 6px;background:rgba(138,42,34,.12);border-left:3px solid #8a2a22;border-radius:2px;&&{color:#8a2a22;}"]);
|
|
17595
17602
|
});
|
|
17596
17603
|
var Stats = /*#__PURE__*/styled__default.span.withConfig({
|
|
@@ -17612,18 +17619,18 @@ var STAT_TONES = {
|
|
|
17612
17619
|
var Value$2 = /*#__PURE__*/styled__default.span.withConfig({
|
|
17613
17620
|
displayName: "Spell__Value",
|
|
17614
17621
|
componentId: "sc-j96fa2-13"
|
|
17615
|
-
})(["&&{font-size:10px;line-height:1.4;color:", ";text-shadow:none;}"], function (
|
|
17616
|
-
var $tone =
|
|
17622
|
+
})(["&&{font-size:10px;line-height:1.4;color:", ";text-shadow:none;}"], function (_ref8) {
|
|
17623
|
+
var $tone = _ref8.$tone;
|
|
17617
17624
|
return $tone ? STAT_TONES[$tone] : '#2a1708';
|
|
17618
17625
|
});
|
|
17619
17626
|
var Status$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
17620
17627
|
displayName: "Spell__Status",
|
|
17621
17628
|
componentId: "sc-j96fa2-14"
|
|
17622
|
-
})(["display:flex;align-items:center;gap:6px;margin-top:4px;&&{font-size:9px;line-height:1.5;color:", ";text-shadow:none;}&::before{content:'';flex:none;width:6px;height:6px;background:currentColor;clip-path:", ";}"], function (
|
|
17623
|
-
var $unavailable = _ref8.$unavailable;
|
|
17624
|
-
return $unavailable ? '#8a2a22' : '#4b4420';
|
|
17625
|
-
}, function (_ref9) {
|
|
17629
|
+
})(["display:flex;align-items:center;gap:6px;margin-top:4px;&&{font-size:9px;line-height:1.5;color:", ";text-shadow:none;}&::before{content:'';flex:none;width:6px;height:6px;background:currentColor;clip-path:", ";}"], function (_ref9) {
|
|
17626
17630
|
var $unavailable = _ref9.$unavailable;
|
|
17631
|
+
return $unavailable ? '#8a2a22' : '#4b4420';
|
|
17632
|
+
}, function (_ref10) {
|
|
17633
|
+
var $unavailable = _ref10.$unavailable;
|
|
17627
17634
|
return $unavailable ? 'none' : 'polygon(0 0, 100% 50%, 0 100%)';
|
|
17628
17635
|
});
|
|
17629
17636
|
|