@rpg-engine/long-bow 0.5.31 → 0.5.33
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/components/DraggableContainer.d.ts +1 -1
- package/dist/components/RPGUI/RPGUIOverrides.d.ts +6 -0
- package/dist/components/{RPGUIRoot.d.ts → RPGUI/RPGUIRoot.d.ts} +1 -1
- package/dist/components/RPGUI/RPGUIScrollbar.d.ts +6 -0
- package/dist/index.d.ts +2 -2
- package/dist/long-bow.cjs.development.js +35 -18
- 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 +35 -18
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/RPGUIContainers.stories.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/Abstractions/SlotsContainer.tsx +1 -1
- package/src/components/Chatdeprecated/ChatDeprecated.tsx +1 -1
- package/src/components/CraftBook/CraftBook.tsx +1 -1
- package/src/components/DraggableContainer.tsx +1 -1
- package/src/components/Equipment/EquipmentSet.tsx +1 -1
- package/src/components/ImageCarousel/ImageCarousel.tsx +1 -1
- package/src/components/Item/Inventory/ItemQuantitySelector.tsx +4 -1
- package/src/components/Item/Inventory/ItemSlot.tsx +6 -0
- package/src/components/Marketplace/Marketplace.tsx +1 -1
- package/src/components/Multitab/TabsContainer.tsx +1 -1
- package/src/components/NPCDialog/NPCDialog.tsx +1 -1
- package/src/components/NPCDialog/NPCMultiDialog.tsx +2 -2
- package/src/components/PartySystem/PartyCreate/PartyCreate.tsx +1 -1
- package/src/components/PartySystem/PartyDashboard/PartyDashboard.tsx +1 -1
- package/src/components/PartySystem/PartyInvite/PartyInvite.tsx +1 -1
- package/src/components/PartySystem/PartyManager/PartyManager.tsx +1 -1
- package/src/components/QuestInfo/QuestInfo.tsx +1 -1
- package/src/components/QuestList.tsx +1 -1
- package/src/components/RPGUI/RPGUIOverrides.tsx +9 -0
- package/src/components/{RPGUIRoot.tsx → RPGUI/RPGUIRoot.tsx} +7 -2
- package/src/components/RPGUI/RPGUIScrollbar.tsx +49 -0
- package/src/components/RadioInput/RadioInput.tsx +1 -1
- package/src/components/Spellbook/Spellbook.tsx +1 -1
- package/src/components/TradingMenu/TradingMenu.tsx +1 -1
- package/src/components/itemSelector/ItemSelector.tsx +1 -1
- package/src/index.tsx +2 -2
- package/src/stories/Button.stories.tsx +1 -1
- package/src/stories/CharacterStatus.stories.tsx +1 -1
- package/src/stories/Chat.stories.tsx +1 -1
- package/src/stories/ChatDeprecated.stories.tsx +1 -1
- package/src/stories/ChatRevamp.stories.tsx +1 -1
- package/src/stories/CheckButton.stories.tsx +2 -2
- package/src/stories/DayNightPeriod.stories.tsx +1 -1
- package/src/stories/DraggableContainer.stories.tsx +1 -1
- package/src/stories/EquipmentSet.stories.tsx +1 -1
- package/src/stories/HistoryDialog.stories.tsx +5 -5
- package/src/stories/ImageCarousel.stories.tsx +1 -1
- package/src/stories/ItemContainer.stories.tsx +1 -1
- package/src/stories/ItemInfoDisplay.stories.tsx +1 -1
- package/src/stories/ItemTradingComponent.stories.tsx +2 -2
- package/src/stories/Leaderboard.stories.tsx +1 -1
- package/src/stories/ListMenu.stories.tsx +1 -1
- package/src/stories/Multitab.stories.tsx +1 -1
- package/src/stories/NPCDialog.stories.tsx +1 -1
- package/src/stories/NPCMultiDialog.stories.tsx +3 -3
- package/src/stories/PartyCreate.stories.tsx +1 -1
- package/src/stories/PartyDashboard.stories.tsx +1 -1
- package/src/stories/PartyInvite.stories.tsx +1 -1
- package/src/stories/PartyManager.stories.tsx +1 -1
- package/src/stories/ProgressBar.stories.tsx +1 -1
- package/src/stories/QuestInfo.stories.tsx +1 -1
- package/src/stories/QuestList.stories.tsx +1 -1
- package/src/stories/RPGUIContainers.stories.tsx +2 -2
- package/src/stories/RadioButton.stories.tsx +3 -3
- package/src/stories/RadioInput.stories.tsx +25 -26
- package/src/stories/RangeSlider.stories.tsx +1 -1
- package/src/stories/ScrollList.stories.tsx +1 -1
- package/src/stories/Shortcuts.stories.tsx +1 -1
- package/src/stories/SimpleProgressBar.stories.tsx +1 -1
- package/src/stories/SkillProgressBar.stories.tsx +3 -3
- package/src/stories/SkillsContainer.stories.tsx +1 -1
- package/src/stories/SpellInfoDisplay.stories.tsx +1 -1
- package/src/stories/Spellbook.stories.tsx +1 -1
- package/src/stories/TimeWidget.stories.tsx +1 -1
- package/src/stories/TradingMenu.stories.tsx +2 -2
- /package/dist/components/{RPGUIContainer.d.ts → RPGUI/RPGUIContainer.d.ts} +0 -0
- /package/dist/components/{RPGUIForceRenderStart.d.ts → RPGUI/RPGUIForceRenderStart.d.ts} +0 -0
- /package/src/components/{RPGUIContainer.tsx → RPGUI/RPGUIContainer.tsx} +0 -0
- /package/src/components/{RPGUIForceRenderStart.tsx → RPGUI/RPGUIForceRenderStart.tsx} +0 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -10,7 +10,7 @@ import { camelCase } from 'lodash-es';
|
|
|
10
10
|
import { observer } from 'mobx-react-lite';
|
|
11
11
|
import { v4 } from 'uuid';
|
|
12
12
|
import { AiFillCaretRight } from 'react-icons/ai';
|
|
13
|
-
import 'rpgui/rpgui.
|
|
13
|
+
import 'rpgui/rpgui.css';
|
|
14
14
|
import 'rpgui/rpgui.min.js';
|
|
15
15
|
import capitalize from 'lodash-es/capitalize';
|
|
16
16
|
|
|
@@ -12860,7 +12860,7 @@ var RPGUIContainer = function RPGUIContainer(_ref) {
|
|
|
12860
12860
|
};
|
|
12861
12861
|
var Container$4 = /*#__PURE__*/styled.div.withConfig({
|
|
12862
12862
|
displayName: "RPGUIContainer__Container",
|
|
12863
|
-
componentId: "sc-
|
|
12863
|
+
componentId: "sc-a7heha-0"
|
|
12864
12864
|
})(["height:", ";width:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;"], function (props) {
|
|
12865
12865
|
return props.height;
|
|
12866
12866
|
}, function (_ref2) {
|
|
@@ -13906,6 +13906,9 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
|
|
|
13906
13906
|
setItemShortcut(item, index);
|
|
13907
13907
|
}
|
|
13908
13908
|
}
|
|
13909
|
+
// remove the class react-draggable-dragging from the element
|
|
13910
|
+
// to prevent the item from being dragged again
|
|
13911
|
+
target.classList.remove('react-draggable-dragging');
|
|
13909
13912
|
if (wasDragged && item && !isSelectingShortcut) {
|
|
13910
13913
|
var _e$target;
|
|
13911
13914
|
//@ts-ignore
|
|
@@ -17438,13 +17441,27 @@ var NoQuestContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
17438
17441
|
componentId: "sc-1a2vx6q-3"
|
|
17439
17442
|
})(["text-align:center;p{margin-top:5px;}"]);
|
|
17440
17443
|
|
|
17444
|
+
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
17445
|
+
var children = _ref.children;
|
|
17446
|
+
return React.createElement(Container$o, null, children);
|
|
17447
|
+
};
|
|
17448
|
+
var Container$o = /*#__PURE__*/styled.div.withConfig({
|
|
17449
|
+
displayName: "RPGUIScrollbar__Container",
|
|
17450
|
+
componentId: "sc-p3msmb-0"
|
|
17451
|
+
})(["::-webkit-scrollbar{width:15px;background-color:rgba( 0,0,0,0.2 );}::-webkit-scrollbar-thumb{background-color:darkgrey;border-radius:10px;border:3px solid orange;}scrollbar-width:auto;scrollbar-color:darkgrey orange;-ms-overflow-style:scrollbar;.rpgui-content ::-webkit-scrollbar{width:25px;}.rpgui-content ::-webkit-scrollbar-track{background-size:25px 60px;}"]);
|
|
17452
|
+
|
|
17453
|
+
var RPGUIOverrides = function RPGUIOverrides(_ref) {
|
|
17454
|
+
var children = _ref.children;
|
|
17455
|
+
return React.createElement(RPGUIScrollbar, null, children);
|
|
17456
|
+
};
|
|
17457
|
+
|
|
17441
17458
|
//@ts-ignore
|
|
17442
17459
|
var _RPGUI = RPGUI;
|
|
17443
17460
|
var RPGUIRoot = function RPGUIRoot(_ref) {
|
|
17444
17461
|
var children = _ref.children;
|
|
17445
|
-
return React.createElement("div", {
|
|
17462
|
+
return React.createElement(RPGUIOverrides, null, React.createElement("div", {
|
|
17446
17463
|
className: "rpgui-content"
|
|
17447
|
-
}, children);
|
|
17464
|
+
}, children));
|
|
17448
17465
|
};
|
|
17449
17466
|
|
|
17450
17467
|
var InputRadio$1 = function InputRadio(_ref) {
|
|
@@ -17606,7 +17623,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
17606
17623
|
bgColor = _ref$bgColor === void 0 ? 'red' : _ref$bgColor,
|
|
17607
17624
|
_ref$margin = _ref.margin,
|
|
17608
17625
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
17609
|
-
return React.createElement(Container$
|
|
17626
|
+
return React.createElement(Container$p, {
|
|
17610
17627
|
className: "simple-progress-bar"
|
|
17611
17628
|
}, React.createElement(ProgressBarContainer, {
|
|
17612
17629
|
margin: margin
|
|
@@ -17615,7 +17632,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
17615
17632
|
bgColor: bgColor
|
|
17616
17633
|
}))));
|
|
17617
17634
|
};
|
|
17618
|
-
var Container$
|
|
17635
|
+
var Container$p = /*#__PURE__*/styled.div.withConfig({
|
|
17619
17636
|
displayName: "SimpleProgressBar__Container",
|
|
17620
17637
|
componentId: "sc-mbeil3-0"
|
|
17621
17638
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -17904,7 +17921,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
17904
17921
|
castingType = spell.castingType,
|
|
17905
17922
|
cooldown = spell.cooldown,
|
|
17906
17923
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
17907
|
-
return React.createElement(Container$
|
|
17924
|
+
return React.createElement(Container$q, null, React.createElement(Header$1, null, React.createElement("div", null, React.createElement(Title$9, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
|
|
17908
17925
|
className: "label"
|
|
17909
17926
|
}, "Casting Type:"), React.createElement("div", {
|
|
17910
17927
|
className: "value"
|
|
@@ -17930,7 +17947,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
17930
17947
|
className: "value"
|
|
17931
17948
|
}, requiredItem))), React.createElement(Description$2, null, description));
|
|
17932
17949
|
};
|
|
17933
|
-
var Container$
|
|
17950
|
+
var Container$q = /*#__PURE__*/styled.div.withConfig({
|
|
17934
17951
|
displayName: "SpellInfo__Container",
|
|
17935
17952
|
componentId: "sc-4hbw3q-0"
|
|
17936
17953
|
})(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:30rem;@media (max-width:580px){width:80vw;}"], uiFonts.size.small, uiColors.lightGray);
|
|
@@ -17984,7 +18001,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
17984
18001
|
var _ref$current;
|
|
17985
18002
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
17986
18003
|
};
|
|
17987
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
18004
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$r, {
|
|
17988
18005
|
ref: ref,
|
|
17989
18006
|
onTouchEnd: function onTouchEnd() {
|
|
17990
18007
|
handleFadeOut();
|
|
@@ -18009,7 +18026,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
18009
18026
|
}, option.text);
|
|
18010
18027
|
}))));
|
|
18011
18028
|
};
|
|
18012
|
-
var Container$
|
|
18029
|
+
var Container$r = /*#__PURE__*/styled.div.withConfig({
|
|
18013
18030
|
displayName: "MobileSpellTooltip__Container",
|
|
18014
18031
|
componentId: "sc-6p7uvr-0"
|
|
18015
18032
|
})(["position:absolute;z-index:100;left:0;top:0;width:100vw;height:100vh;background-color:rgba(0 0 0 / 0.5);display:flex;justify-content:center;align-items:center;gap:0.5rem;transition:opacity 0.08s;animation:fadeIn 0.1s forwards;@keyframes fadeIn{0%{opacity:0;}100%{opacity:0.92;}}@keyframes fadeOut{0%{opacity:0.92;}100%{opacity:0;}}&.fadeOut{animation:fadeOut 0.1s forwards;}@media (max-width:580px){flex-direction:column;}"]);
|
|
@@ -18050,13 +18067,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
18050
18067
|
}
|
|
18051
18068
|
return;
|
|
18052
18069
|
}, []);
|
|
18053
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
18070
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$s, {
|
|
18054
18071
|
ref: ref
|
|
18055
18072
|
}, React.createElement(SpellInfoDisplay, {
|
|
18056
18073
|
spell: spell
|
|
18057
18074
|
})));
|
|
18058
18075
|
};
|
|
18059
|
-
var Container$
|
|
18076
|
+
var Container$s = /*#__PURE__*/styled.div.withConfig({
|
|
18060
18077
|
displayName: "SpellTooltip__Container",
|
|
18061
18078
|
componentId: "sc-1go0gwg-0"
|
|
18062
18079
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -18116,7 +18133,7 @@ var Spell = function Spell(_ref) {
|
|
|
18116
18133
|
var IMAGE_SCALE = 2;
|
|
18117
18134
|
return React.createElement(SpellInfoWrapper, {
|
|
18118
18135
|
spell: spell
|
|
18119
|
-
}, React.createElement(Container$
|
|
18136
|
+
}, React.createElement(Container$t, {
|
|
18120
18137
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
18121
18138
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
18122
18139
|
className: "spell"
|
|
@@ -18135,7 +18152,7 @@ var Spell = function Spell(_ref) {
|
|
|
18135
18152
|
className: "mana"
|
|
18136
18153
|
}, manaCost))));
|
|
18137
18154
|
};
|
|
18138
|
-
var Container$
|
|
18155
|
+
var Container$t = /*#__PURE__*/styled.button.withConfig({
|
|
18139
18156
|
displayName: "Spell__Container",
|
|
18140
18157
|
componentId: "sc-j96fa2-0"
|
|
18141
18158
|
})(["display:block;background:none;border:2px solid transparent;border-radius:1rem;width:100%;display:flex;gap:1rem;align-items:center;padding:0 1rem;text-align:left;position:relative;animation:", ";@keyframes border-color-change{0%{border-color:", ";}50%{border-color:transparent;}100%{border-color:", ";}}&:hover,&:focus{background-color:", ";}&:active{background:none;}"], function (_ref2) {
|
|
@@ -18214,7 +18231,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
18214
18231
|
height: "inherit",
|
|
18215
18232
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
18216
18233
|
scale: scale
|
|
18217
|
-
}, React.createElement(Container$
|
|
18234
|
+
}, React.createElement(Container$u, null, React.createElement(Title$b, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
|
|
18218
18235
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
18219
18236
|
settingShortcutIndex: settingShortcutIndex,
|
|
18220
18237
|
shortcuts: shortcuts,
|
|
@@ -18250,7 +18267,7 @@ var Title$b = /*#__PURE__*/styled.h1.withConfig({
|
|
|
18250
18267
|
displayName: "Spellbook__Title",
|
|
18251
18268
|
componentId: "sc-r02nfq-0"
|
|
18252
18269
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
18253
|
-
var Container$
|
|
18270
|
+
var Container$u = /*#__PURE__*/styled.div.withConfig({
|
|
18254
18271
|
displayName: "Spellbook__Container",
|
|
18255
18272
|
componentId: "sc-r02nfq-1"
|
|
18256
18273
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -18596,11 +18613,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
18596
18613
|
var _ref$maxLines = _ref.maxLines,
|
|
18597
18614
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
18598
18615
|
children = _ref.children;
|
|
18599
|
-
return React.createElement(Container$
|
|
18616
|
+
return React.createElement(Container$v, {
|
|
18600
18617
|
maxLines: maxLines
|
|
18601
18618
|
}, children);
|
|
18602
18619
|
};
|
|
18603
|
-
var Container$
|
|
18620
|
+
var Container$v = /*#__PURE__*/styled.div.withConfig({
|
|
18604
18621
|
displayName: "Truncate__Container",
|
|
18605
18622
|
componentId: "sc-6x00qb-0"
|
|
18606
18623
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|