@rpg-engine/long-bow 0.5.32 → 0.5.34
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 +32 -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 +32 -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/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 +24 -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) {
|
|
@@ -17441,13 +17441,27 @@ var NoQuestContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
17441
17441
|
componentId: "sc-1a2vx6q-3"
|
|
17442
17442
|
})(["text-align:center;p{margin-top:5px;}"]);
|
|
17443
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
|
+
})([".rpgui-content ::-webkit-scrollbar,.rpgui-content::-webkit-scrollbar{width:25px;}.rpgui-content ::-webkit-scrollbar-track,.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
|
+
|
|
17444
17458
|
//@ts-ignore
|
|
17445
17459
|
var _RPGUI = RPGUI;
|
|
17446
17460
|
var RPGUIRoot = function RPGUIRoot(_ref) {
|
|
17447
17461
|
var children = _ref.children;
|
|
17448
|
-
return React.createElement("div", {
|
|
17462
|
+
return React.createElement(RPGUIOverrides, null, React.createElement("div", {
|
|
17449
17463
|
className: "rpgui-content"
|
|
17450
|
-
}, children);
|
|
17464
|
+
}, children));
|
|
17451
17465
|
};
|
|
17452
17466
|
|
|
17453
17467
|
var InputRadio$1 = function InputRadio(_ref) {
|
|
@@ -17609,7 +17623,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
17609
17623
|
bgColor = _ref$bgColor === void 0 ? 'red' : _ref$bgColor,
|
|
17610
17624
|
_ref$margin = _ref.margin,
|
|
17611
17625
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
17612
|
-
return React.createElement(Container$
|
|
17626
|
+
return React.createElement(Container$p, {
|
|
17613
17627
|
className: "simple-progress-bar"
|
|
17614
17628
|
}, React.createElement(ProgressBarContainer, {
|
|
17615
17629
|
margin: margin
|
|
@@ -17618,7 +17632,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
17618
17632
|
bgColor: bgColor
|
|
17619
17633
|
}))));
|
|
17620
17634
|
};
|
|
17621
|
-
var Container$
|
|
17635
|
+
var Container$p = /*#__PURE__*/styled.div.withConfig({
|
|
17622
17636
|
displayName: "SimpleProgressBar__Container",
|
|
17623
17637
|
componentId: "sc-mbeil3-0"
|
|
17624
17638
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -17907,7 +17921,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
17907
17921
|
castingType = spell.castingType,
|
|
17908
17922
|
cooldown = spell.cooldown,
|
|
17909
17923
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
17910
|
-
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", {
|
|
17911
17925
|
className: "label"
|
|
17912
17926
|
}, "Casting Type:"), React.createElement("div", {
|
|
17913
17927
|
className: "value"
|
|
@@ -17933,7 +17947,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
17933
17947
|
className: "value"
|
|
17934
17948
|
}, requiredItem))), React.createElement(Description$2, null, description));
|
|
17935
17949
|
};
|
|
17936
|
-
var Container$
|
|
17950
|
+
var Container$q = /*#__PURE__*/styled.div.withConfig({
|
|
17937
17951
|
displayName: "SpellInfo__Container",
|
|
17938
17952
|
componentId: "sc-4hbw3q-0"
|
|
17939
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);
|
|
@@ -17987,7 +18001,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
17987
18001
|
var _ref$current;
|
|
17988
18002
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
17989
18003
|
};
|
|
17990
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
18004
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$r, {
|
|
17991
18005
|
ref: ref,
|
|
17992
18006
|
onTouchEnd: function onTouchEnd() {
|
|
17993
18007
|
handleFadeOut();
|
|
@@ -18012,7 +18026,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
18012
18026
|
}, option.text);
|
|
18013
18027
|
}))));
|
|
18014
18028
|
};
|
|
18015
|
-
var Container$
|
|
18029
|
+
var Container$r = /*#__PURE__*/styled.div.withConfig({
|
|
18016
18030
|
displayName: "MobileSpellTooltip__Container",
|
|
18017
18031
|
componentId: "sc-6p7uvr-0"
|
|
18018
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;}"]);
|
|
@@ -18053,13 +18067,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
18053
18067
|
}
|
|
18054
18068
|
return;
|
|
18055
18069
|
}, []);
|
|
18056
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
18070
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$s, {
|
|
18057
18071
|
ref: ref
|
|
18058
18072
|
}, React.createElement(SpellInfoDisplay, {
|
|
18059
18073
|
spell: spell
|
|
18060
18074
|
})));
|
|
18061
18075
|
};
|
|
18062
|
-
var Container$
|
|
18076
|
+
var Container$s = /*#__PURE__*/styled.div.withConfig({
|
|
18063
18077
|
displayName: "SpellTooltip__Container",
|
|
18064
18078
|
componentId: "sc-1go0gwg-0"
|
|
18065
18079
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -18119,7 +18133,7 @@ var Spell = function Spell(_ref) {
|
|
|
18119
18133
|
var IMAGE_SCALE = 2;
|
|
18120
18134
|
return React.createElement(SpellInfoWrapper, {
|
|
18121
18135
|
spell: spell
|
|
18122
|
-
}, React.createElement(Container$
|
|
18136
|
+
}, React.createElement(Container$t, {
|
|
18123
18137
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
18124
18138
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
18125
18139
|
className: "spell"
|
|
@@ -18138,7 +18152,7 @@ var Spell = function Spell(_ref) {
|
|
|
18138
18152
|
className: "mana"
|
|
18139
18153
|
}, manaCost))));
|
|
18140
18154
|
};
|
|
18141
|
-
var Container$
|
|
18155
|
+
var Container$t = /*#__PURE__*/styled.button.withConfig({
|
|
18142
18156
|
displayName: "Spell__Container",
|
|
18143
18157
|
componentId: "sc-j96fa2-0"
|
|
18144
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) {
|
|
@@ -18217,7 +18231,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
18217
18231
|
height: "inherit",
|
|
18218
18232
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
18219
18233
|
scale: scale
|
|
18220
|
-
}, React.createElement(Container$
|
|
18234
|
+
}, React.createElement(Container$u, null, React.createElement(Title$b, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
|
|
18221
18235
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
18222
18236
|
settingShortcutIndex: settingShortcutIndex,
|
|
18223
18237
|
shortcuts: shortcuts,
|
|
@@ -18253,7 +18267,7 @@ var Title$b = /*#__PURE__*/styled.h1.withConfig({
|
|
|
18253
18267
|
displayName: "Spellbook__Title",
|
|
18254
18268
|
componentId: "sc-r02nfq-0"
|
|
18255
18269
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
18256
|
-
var Container$
|
|
18270
|
+
var Container$u = /*#__PURE__*/styled.div.withConfig({
|
|
18257
18271
|
displayName: "Spellbook__Container",
|
|
18258
18272
|
componentId: "sc-r02nfq-1"
|
|
18259
18273
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -18599,11 +18613,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
18599
18613
|
var _ref$maxLines = _ref.maxLines,
|
|
18600
18614
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
18601
18615
|
children = _ref.children;
|
|
18602
|
-
return React.createElement(Container$
|
|
18616
|
+
return React.createElement(Container$v, {
|
|
18603
18617
|
maxLines: maxLines
|
|
18604
18618
|
}, children);
|
|
18605
18619
|
};
|
|
18606
|
-
var Container$
|
|
18620
|
+
var Container$v = /*#__PURE__*/styled.div.withConfig({
|
|
18607
18621
|
displayName: "Truncate__Container",
|
|
18608
18622
|
componentId: "sc-6x00qb-0"
|
|
18609
18623
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|