@rpg-engine/long-bow 0.8.33 → 0.8.35
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 +86 -106
- 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 +86 -106
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/InformationCenter/InformationCenter.tsx +0 -13
- package/src/components/InformationCenter/sections/bestiary/InformationCenterNPCDetails.tsx +67 -4
- package/src/stories/UI/info/InformationCenter.stories.tsx +2 -2
|
@@ -31884,6 +31884,12 @@ var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
|
|
|
31884
31884
|
var _useState2 = React.useState(1),
|
|
31885
31885
|
currentLootPage = _useState2[0],
|
|
31886
31886
|
setCurrentLootPage = _useState2[1];
|
|
31887
|
+
var _useState3 = React.useState(null),
|
|
31888
|
+
selectedItem = _useState3[0],
|
|
31889
|
+
setSelectedItem = _useState3[1];
|
|
31890
|
+
React.useEffect(function () {
|
|
31891
|
+
setCurrentLootPage(1);
|
|
31892
|
+
}, [lootSearchQuery]);
|
|
31887
31893
|
var formatText = function formatText(text) {
|
|
31888
31894
|
if (typeof text === 'number') {
|
|
31889
31895
|
return text.toString();
|
|
@@ -31915,6 +31921,25 @@ var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
|
|
|
31915
31921
|
})) || [];
|
|
31916
31922
|
var totalLootPages = Math.ceil(filteredLoots.length / ITEMS_PER_PAGE$1);
|
|
31917
31923
|
var paginatedLoots = filteredLoots.slice((currentLootPage - 1) * ITEMS_PER_PAGE$1, currentLootPage * ITEMS_PER_PAGE$1);
|
|
31924
|
+
var handleItemClick = function handleItemClick(loot) {
|
|
31925
|
+
var item = {
|
|
31926
|
+
key: loot.itemBlueprintKey,
|
|
31927
|
+
name: formatItemName(loot.itemBlueprintKey),
|
|
31928
|
+
texturePath: loot.itemBlueprintKey,
|
|
31929
|
+
textureAtlas: 'items',
|
|
31930
|
+
type: shared.ItemType.Weapon,
|
|
31931
|
+
subType: shared.ItemSubType.Sword,
|
|
31932
|
+
tier: 1,
|
|
31933
|
+
rarity: shared.ItemRarities.Common,
|
|
31934
|
+
weight: 0,
|
|
31935
|
+
maxStackSize: loot.quantityRange ? loot.quantityRange[1] : 1,
|
|
31936
|
+
canSell: true,
|
|
31937
|
+
description: 'A basic item.',
|
|
31938
|
+
basePrice: 100,
|
|
31939
|
+
allowedEquipSlotType: []
|
|
31940
|
+
};
|
|
31941
|
+
setSelectedItem(item);
|
|
31942
|
+
};
|
|
31918
31943
|
return React__default.createElement(BaseInformationDetails, {
|
|
31919
31944
|
name: npc.name,
|
|
31920
31945
|
spriteKey: npc.key,
|
|
@@ -31929,11 +31954,17 @@ var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
|
|
|
31929
31954
|
defaultOpen: !isMobile
|
|
31930
31955
|
}, React__default.createElement(LootSearchContainer, null, React__default.createElement(StyledSearchBar$1, {
|
|
31931
31956
|
value: lootSearchQuery,
|
|
31932
|
-
onChange:
|
|
31957
|
+
onChange: function onChange(query) {
|
|
31958
|
+
setLootSearchQuery(query);
|
|
31959
|
+
setCurrentLootPage(1);
|
|
31960
|
+
},
|
|
31933
31961
|
placeholder: "Search loot..."
|
|
31934
31962
|
})), React__default.createElement(LootGrid, null, paginatedLoots.map(function (loot, index) {
|
|
31935
31963
|
return React__default.createElement(LootItem, {
|
|
31936
|
-
key: index
|
|
31964
|
+
key: loot.itemBlueprintKey + "-" + index,
|
|
31965
|
+
onClick: function onClick() {
|
|
31966
|
+
return handleItemClick(loot);
|
|
31967
|
+
}
|
|
31937
31968
|
}, React__default.createElement(SpriteFromAtlas, {
|
|
31938
31969
|
atlasJSON: itemsAtlasJSON,
|
|
31939
31970
|
atlasIMG: itemsAtlasIMG,
|
|
@@ -31967,7 +31998,15 @@ var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
|
|
|
31967
31998
|
height: 24,
|
|
31968
31999
|
imgScale: 1
|
|
31969
32000
|
})), React__default.createElement(SpellContent, null, React__default.createElement(SpellName, null, formatText(spell.spellKey)), React__default.createElement(SpellDetails, null, "Power: ", React__default.createElement(SpellValue, null, formatText(spell.power)), React__default.createElement(Separator, null, "\u2022"), "Chance: ", React__default.createElement(SpellValue, null, spell.probability, "%"))));
|
|
31970
|
-
})))
|
|
32001
|
+
}))), selectedItem && React__default.createElement(Portal, null, React__default.createElement(InformationCenterItemDetails, {
|
|
32002
|
+
item: selectedItem,
|
|
32003
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
32004
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
32005
|
+
droppedBy: [npc],
|
|
32006
|
+
onBack: function onBack() {
|
|
32007
|
+
return setSelectedItem(null);
|
|
32008
|
+
}
|
|
32009
|
+
})));
|
|
31971
32010
|
};
|
|
31972
32011
|
var InfoSection$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31973
32012
|
displayName: "InformationCenterNPCDetails__InfoSection",
|
|
@@ -32052,27 +32091,27 @@ var LootGrid = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32052
32091
|
var LootItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
32053
32092
|
displayName: "InformationCenterNPCDetails__LootItem",
|
|
32054
32093
|
componentId: "sc-fdu3xl-20"
|
|
32055
|
-
})(["display:flex;align-items:center;gap:4px;background:rgba(255,255,255,0.05);padding:4px;border-radius:4px;min-width:0;"]);
|
|
32094
|
+
})(["display:flex;align-items:center;gap:4px;background:rgba(255,255,255,0.05);padding:4px;border-radius:4px;min-width:0;cursor:pointer;user-select:none;transition:background-color 0.2s ease;&:hover{background:rgba(255,255,255,0.1);}"]);
|
|
32056
32095
|
var LootDetails = /*#__PURE__*/styled__default.div.withConfig({
|
|
32057
32096
|
displayName: "InformationCenterNPCDetails__LootDetails",
|
|
32058
32097
|
componentId: "sc-fdu3xl-21"
|
|
32059
|
-
})(["flex:1;display:flex;flex-direction:column;gap:4px;"]);
|
|
32098
|
+
})(["flex:1;display:flex;flex-direction:column;gap:4px;user-select:none;"]);
|
|
32060
32099
|
var LootName = /*#__PURE__*/styled__default.div.withConfig({
|
|
32061
32100
|
displayName: "InformationCenterNPCDetails__LootName",
|
|
32062
32101
|
componentId: "sc-fdu3xl-22"
|
|
32063
|
-
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
32102
|
+
})(["color:", ";font-size:0.5rem;user-select:none;"], uiColors.white);
|
|
32064
32103
|
var LootInfo = /*#__PURE__*/styled__default.div.withConfig({
|
|
32065
32104
|
displayName: "InformationCenterNPCDetails__LootInfo",
|
|
32066
32105
|
componentId: "sc-fdu3xl-23"
|
|
32067
|
-
})(["display:flex;align-items:center;gap:8px;"]);
|
|
32106
|
+
})(["display:flex;align-items:center;gap:8px;user-select:none;"]);
|
|
32068
32107
|
var LootChance = /*#__PURE__*/styled__default.span.withConfig({
|
|
32069
32108
|
displayName: "InformationCenterNPCDetails__LootChance",
|
|
32070
32109
|
componentId: "sc-fdu3xl-24"
|
|
32071
|
-
})(["color:", ";font-size:0.45rem;"], uiColors.yellow);
|
|
32110
|
+
})(["color:", ";font-size:0.45rem;user-select:none;"], uiColors.yellow);
|
|
32072
32111
|
var LootQuantity = /*#__PURE__*/styled__default.span.withConfig({
|
|
32073
32112
|
displayName: "InformationCenterNPCDetails__LootQuantity",
|
|
32074
32113
|
componentId: "sc-fdu3xl-25"
|
|
32075
|
-
})(["color:", ";font-size:0.45rem;"], uiColors.lightGray);
|
|
32114
|
+
})(["color:", ";font-size:0.45rem;user-select:none;"], uiColors.lightGray);
|
|
32076
32115
|
var PaginationContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32077
32116
|
displayName: "InformationCenterNPCDetails__PaginationContainer",
|
|
32078
32117
|
componentId: "sc-fdu3xl-26"
|
|
@@ -32356,55 +32395,6 @@ var SearchBarActions$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32356
32395
|
componentId: "sc-e3h0p2-1"
|
|
32357
32396
|
})(["display:flex;align-items:center;gap:0.5rem;"]);
|
|
32358
32397
|
|
|
32359
|
-
var InformationCenterFAQSection = function InformationCenterFAQSection(_ref) {
|
|
32360
|
-
var faqItems = _ref.faqItems,
|
|
32361
|
-
initialSearchQuery = _ref.initialSearchQuery,
|
|
32362
|
-
tabId = _ref.tabId;
|
|
32363
|
-
var _useState = React.useState(initialSearchQuery),
|
|
32364
|
-
searchQuery = _useState[0],
|
|
32365
|
-
setSearchQuery = _useState[1];
|
|
32366
|
-
React.useEffect(function () {
|
|
32367
|
-
setSearchQuery(initialSearchQuery);
|
|
32368
|
-
}, [initialSearchQuery]);
|
|
32369
|
-
var filteredFaqs = React.useMemo(function () {
|
|
32370
|
-
if (!searchQuery) return faqItems;
|
|
32371
|
-
return faqItems.filter(function (faq) {
|
|
32372
|
-
return faq.question.toLowerCase().includes(searchQuery.toLowerCase()) || faq.answer.toLowerCase().includes(searchQuery.toLowerCase());
|
|
32373
|
-
});
|
|
32374
|
-
}, [searchQuery, faqItems]);
|
|
32375
|
-
var renderItem = function renderItem(item) {
|
|
32376
|
-
return React__default.createElement(StyledCollapsible$2, {
|
|
32377
|
-
title: item.question
|
|
32378
|
-
}, React__default.createElement(Answer$1, null, item.answer));
|
|
32379
|
-
};
|
|
32380
|
-
return React__default.createElement(Container$r, null, React__default.createElement(SearchHeader, {
|
|
32381
|
-
searchOptions: {
|
|
32382
|
-
value: searchQuery,
|
|
32383
|
-
onChange: setSearchQuery,
|
|
32384
|
-
placeholder: 'Search FAQs...'
|
|
32385
|
-
}
|
|
32386
|
-
}), React__default.createElement(PaginatedContent, {
|
|
32387
|
-
items: filteredFaqs,
|
|
32388
|
-
renderItem: renderItem,
|
|
32389
|
-
emptyMessage: "No FAQ items found",
|
|
32390
|
-
tabId: tabId,
|
|
32391
|
-
layout: "list",
|
|
32392
|
-
itemsPerPage: 10
|
|
32393
|
-
}));
|
|
32394
|
-
};
|
|
32395
|
-
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
32396
|
-
displayName: "InformationCenterFaqSection__Container",
|
|
32397
|
-
componentId: "sc-ofmaa9-0"
|
|
32398
|
-
})(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
|
|
32399
|
-
var StyledCollapsible$2 = /*#__PURE__*/styled__default(Collapsible).withConfig({
|
|
32400
|
-
displayName: "InformationCenterFaqSection__StyledCollapsible",
|
|
32401
|
-
componentId: "sc-ofmaa9-1"
|
|
32402
|
-
})(["margin-bottom:0.5rem;&:last-child{margin-bottom:0;}"]);
|
|
32403
|
-
var Answer$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
32404
|
-
displayName: "InformationCenterFaqSection__Answer",
|
|
32405
|
-
componentId: "sc-ofmaa9-2"
|
|
32406
|
-
})(["font-size:0.9rem;color:#ffffff;margin:0;line-height:1.5;"]);
|
|
32407
|
-
|
|
32408
32398
|
var ITEMS_PER_PAGE$2 = 3;
|
|
32409
32399
|
var GRID_COLUMNS = 3;
|
|
32410
32400
|
var InformationCenterTutorialsSection = function InformationCenterTutorialsSection(_ref) {
|
|
@@ -32544,8 +32534,6 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32544
32534
|
entitiesAtlasIMG = _ref.entitiesAtlasIMG,
|
|
32545
32535
|
iconsAtlasIMG = _ref.iconsAtlasIMG,
|
|
32546
32536
|
iconsAtlasJSON = _ref.iconsAtlasJSON,
|
|
32547
|
-
_ref$faqItems = _ref.faqItems,
|
|
32548
|
-
faqItems = _ref$faqItems === void 0 ? [] : _ref$faqItems,
|
|
32549
32537
|
_ref$bestiaryItems = _ref.bestiaryItems,
|
|
32550
32538
|
bestiaryItems = _ref$bestiaryItems === void 0 ? [] : _ref$bestiaryItems,
|
|
32551
32539
|
_ref$videoGuides = _ref.videoGuides,
|
|
@@ -32591,14 +32579,6 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32591
32579
|
initialSearchQuery: initialSearchQuery,
|
|
32592
32580
|
tabId: "items"
|
|
32593
32581
|
})
|
|
32594
|
-
}, {
|
|
32595
|
-
id: 'faq',
|
|
32596
|
-
title: 'FAQ',
|
|
32597
|
-
content: React__default.createElement(InformationCenterFAQSection, {
|
|
32598
|
-
faqItems: faqItems,
|
|
32599
|
-
initialSearchQuery: initialSearchQuery,
|
|
32600
|
-
tabId: "faq"
|
|
32601
|
-
})
|
|
32602
32582
|
}, {
|
|
32603
32583
|
id: 'tutorials',
|
|
32604
32584
|
title: 'Tutorials',
|
|
@@ -32611,7 +32591,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32611
32591
|
return React__default.createElement(DraggableContainer, {
|
|
32612
32592
|
title: "Information Center",
|
|
32613
32593
|
type: exports.RPGUIContainerTypes.Framed
|
|
32614
|
-
}, React__default.createElement(Container$
|
|
32594
|
+
}, React__default.createElement(Container$r, null, React__default.createElement(InternalTabs, {
|
|
32615
32595
|
tabs: tabs,
|
|
32616
32596
|
activeTextColor: "#000000",
|
|
32617
32597
|
activeTab: activeTab,
|
|
@@ -32622,7 +32602,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32622
32602
|
hoverColor: "#fef3c7"
|
|
32623
32603
|
})));
|
|
32624
32604
|
};
|
|
32625
|
-
var Container$
|
|
32605
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
32626
32606
|
displayName: "InformationCenter__Container",
|
|
32627
32607
|
componentId: "sc-1ttl62e-0"
|
|
32628
32608
|
})(["width:100%;max-width:800px;margin:0 auto;padding:1rem;"]);
|
|
@@ -32793,7 +32773,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
32793
32773
|
}
|
|
32794
32774
|
return null;
|
|
32795
32775
|
};
|
|
32796
|
-
return React__default.createElement(Container$
|
|
32776
|
+
return React__default.createElement(Container$s, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
|
|
32797
32777
|
id: "shortcuts_list"
|
|
32798
32778
|
}, Array.from({
|
|
32799
32779
|
length: 12
|
|
@@ -32811,7 +32791,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
32811
32791
|
}, getContent(i));
|
|
32812
32792
|
})));
|
|
32813
32793
|
};
|
|
32814
|
-
var Container$
|
|
32794
|
+
var Container$s = /*#__PURE__*/styled__default.div.withConfig({
|
|
32815
32795
|
displayName: "ShortcutsSetter__Container",
|
|
32816
32796
|
componentId: "sc-xuouuf-0"
|
|
32817
32797
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -33255,7 +33235,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
33255
33235
|
e.stopPropagation();
|
|
33256
33236
|
onClose();
|
|
33257
33237
|
};
|
|
33258
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$
|
|
33238
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$t, {
|
|
33259
33239
|
onClick: handleClose
|
|
33260
33240
|
}, React__default.createElement(DraggableContainer, {
|
|
33261
33241
|
width: "auto",
|
|
@@ -33278,7 +33258,7 @@ var Background = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33278
33258
|
displayName: "ConfirmModal__Background",
|
|
33279
33259
|
componentId: "sc-11qkyu1-0"
|
|
33280
33260
|
})(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
|
|
33281
|
-
var Container$
|
|
33261
|
+
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
33282
33262
|
displayName: "ConfirmModal__Container",
|
|
33283
33263
|
componentId: "sc-11qkyu1-1"
|
|
33284
33264
|
})(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
|
|
@@ -33333,7 +33313,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
33333
33313
|
cancelDrag: ".react-colorful",
|
|
33334
33314
|
width: "25rem",
|
|
33335
33315
|
onCloseButton: onClose
|
|
33336
|
-
}, React__default.createElement(Container$
|
|
33316
|
+
}, React__default.createElement(Container$u, null, React__default.createElement(Header$3, null, "Select Color"), React__default.createElement(ColorPickerWrapper, null, React__default.createElement(reactColorful.HexColorPicker, {
|
|
33337
33317
|
color: currentColor,
|
|
33338
33318
|
onChange: function onChange(color) {
|
|
33339
33319
|
setCurrentColor(color);
|
|
@@ -33349,7 +33329,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
33349
33329
|
onClose: handleClose
|
|
33350
33330
|
}));
|
|
33351
33331
|
};
|
|
33352
|
-
var Container$
|
|
33332
|
+
var Container$u = /*#__PURE__*/styled__default.div.withConfig({
|
|
33353
33333
|
displayName: "ItemPropertyColorSelector__Container",
|
|
33354
33334
|
componentId: "sc-me1r4z-0"
|
|
33355
33335
|
})(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
|
|
@@ -33705,7 +33685,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
33705
33685
|
onSelected = _ref.onSelected,
|
|
33706
33686
|
x = _ref.x,
|
|
33707
33687
|
y = _ref.y;
|
|
33708
|
-
return React__default.createElement(Container$
|
|
33688
|
+
return React__default.createElement(Container$v, {
|
|
33709
33689
|
x: x,
|
|
33710
33690
|
y: y
|
|
33711
33691
|
}, React__default.createElement("ul", {
|
|
@@ -33722,7 +33702,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
33722
33702
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
33723
33703
|
})));
|
|
33724
33704
|
};
|
|
33725
|
-
var Container$
|
|
33705
|
+
var Container$v = /*#__PURE__*/styled__default.div.withConfig({
|
|
33726
33706
|
displayName: "ListMenu__Container",
|
|
33727
33707
|
componentId: "sc-i9097t-0"
|
|
33728
33708
|
})(["display:flex;flex-direction:column;width:100%;justify-content:start;align-items:flex-start;position:absolute;top:", "px;left:", "px;li{font-size:", ";}"], function (props) {
|
|
@@ -33741,7 +33721,7 @@ var Pager = function Pager(_ref) {
|
|
|
33741
33721
|
itemsPerPage = _ref.itemsPerPage,
|
|
33742
33722
|
onPageChange = _ref.onPageChange;
|
|
33743
33723
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
33744
|
-
return React__default.createElement(Container$
|
|
33724
|
+
return React__default.createElement(Container$w, null, React__default.createElement("p", null, "Total items: ", totalItems), React__default.createElement(PagerContainer, null, React__default.createElement("button", {
|
|
33745
33725
|
disabled: currentPage === 1,
|
|
33746
33726
|
onPointerDown: function onPointerDown() {
|
|
33747
33727
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -33755,7 +33735,7 @@ var Pager = function Pager(_ref) {
|
|
|
33755
33735
|
}
|
|
33756
33736
|
}, '>')));
|
|
33757
33737
|
};
|
|
33758
|
-
var Container$
|
|
33738
|
+
var Container$w = /*#__PURE__*/styled__default.div.withConfig({
|
|
33759
33739
|
displayName: "Pager__Container",
|
|
33760
33740
|
componentId: "sc-1ekmf50-0"
|
|
33761
33741
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -34276,13 +34256,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
34276
34256
|
children = _ref.children,
|
|
34277
34257
|
styles = _ref.styles,
|
|
34278
34258
|
centerContent = _ref.centerContent;
|
|
34279
|
-
return React__default.createElement(Container$
|
|
34259
|
+
return React__default.createElement(Container$x, {
|
|
34280
34260
|
styles: styles,
|
|
34281
34261
|
"data-tab-id": id,
|
|
34282
34262
|
centerContent: centerContent
|
|
34283
34263
|
}, children);
|
|
34284
34264
|
};
|
|
34285
|
-
var Container$
|
|
34265
|
+
var Container$x = /*#__PURE__*/styled__default.div.withConfig({
|
|
34286
34266
|
displayName: "TabBody__Container",
|
|
34287
34267
|
componentId: "sc-196oof2-0"
|
|
34288
34268
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -34934,7 +34914,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
34934
34914
|
}
|
|
34935
34915
|
return value * 100 / max;
|
|
34936
34916
|
};
|
|
34937
|
-
return React__default.createElement(Container$
|
|
34917
|
+
return React__default.createElement(Container$y, {
|
|
34938
34918
|
className: "rpgui-progress",
|
|
34939
34919
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
34940
34920
|
"data-rpguitype": "progress",
|
|
@@ -34964,7 +34944,7 @@ var TextOverlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34964
34944
|
displayName: "ProgressBar__TextOverlay",
|
|
34965
34945
|
componentId: "sc-qa6fzh-1"
|
|
34966
34946
|
})(["width:100%;position:relative;"]);
|
|
34967
|
-
var Container$
|
|
34947
|
+
var Container$y = /*#__PURE__*/styled__default.div.withConfig({
|
|
34968
34948
|
displayName: "ProgressBar__Container",
|
|
34969
34949
|
componentId: "sc-qa6fzh-2"
|
|
34970
34950
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -35205,9 +35185,9 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
35205
35185
|
|
|
35206
35186
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
35207
35187
|
var children = _ref.children;
|
|
35208
|
-
return React__default.createElement(Container$
|
|
35188
|
+
return React__default.createElement(Container$z, null, children);
|
|
35209
35189
|
};
|
|
35210
|
-
var Container$
|
|
35190
|
+
var Container$z = /*#__PURE__*/styled__default.div.withConfig({
|
|
35211
35191
|
displayName: "RPGUIScrollbar__Container",
|
|
35212
35192
|
componentId: "sc-p3msmb-0"
|
|
35213
35193
|
})([".rpgui-content ::-webkit-scrollbar,.rpgui-content::-webkit-scrollbar{width:25px !important;}.rpgui-content ::-webkit-scrollbar-track,.rpgui-content::-webkit-scrollbar-track{background-size:25px 60px !important;}"]);
|
|
@@ -35363,7 +35343,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
35363
35343
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
35364
35344
|
// Ensure the width is at least 1% if value is greater than 0
|
|
35365
35345
|
var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
|
|
35366
|
-
return React__default.createElement(Container$
|
|
35346
|
+
return React__default.createElement(Container$A, {
|
|
35367
35347
|
className: "simple-progress-bar"
|
|
35368
35348
|
}, React__default.createElement(ProgressBarContainer, {
|
|
35369
35349
|
margin: margin
|
|
@@ -35372,7 +35352,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
35372
35352
|
bgColor: bgColor
|
|
35373
35353
|
}))));
|
|
35374
35354
|
};
|
|
35375
|
-
var Container$
|
|
35355
|
+
var Container$A = /*#__PURE__*/styled__default.div.withConfig({
|
|
35376
35356
|
displayName: "SimpleProgressBar__Container",
|
|
35377
35357
|
componentId: "sc-mbeil3-0"
|
|
35378
35358
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -35705,7 +35685,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
35705
35685
|
title: "Social Channels",
|
|
35706
35686
|
width: "500px",
|
|
35707
35687
|
onCloseButton: onClose
|
|
35708
|
-
}, React__default.createElement(Container$
|
|
35688
|
+
}, React__default.createElement(Container$B, null, React__default.createElement(HeaderImage, {
|
|
35709
35689
|
src: img$9,
|
|
35710
35690
|
alt: ""
|
|
35711
35691
|
}), React__default.createElement(ButtonsContainer$1, null, React__default.createElement(MainButtons, null, React__default.createElement(SocialButton$1, {
|
|
@@ -35723,7 +35703,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
35723
35703
|
onClick: handleWhatsAppClick
|
|
35724
35704
|
}, React__default.createElement(fa.FaWhatsapp, null), " Join WhatsApp")))));
|
|
35725
35705
|
};
|
|
35726
|
-
var Container$
|
|
35706
|
+
var Container$B = /*#__PURE__*/styled__default.div.withConfig({
|
|
35727
35707
|
displayName: "SocialModal__Container",
|
|
35728
35708
|
componentId: "sc-tbjhp9-0"
|
|
35729
35709
|
})(["width:100%;display:flex;flex-direction:column;gap:16px;background-color:#5c4132;position:relative;border-radius:8px;overflow:hidden;&:before,&:after{content:'';position:absolute;left:0;right:0;height:3px;}&:before{bottom:0;background:linear-gradient( to right,#5c4132 0%,#2b1810 2%,#2b1810 98%,#5c4132 100% );}"]);
|
|
@@ -35769,7 +35749,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
35769
35749
|
castingType = spell.castingType,
|
|
35770
35750
|
cooldown = spell.cooldown,
|
|
35771
35751
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
35772
|
-
return React__default.createElement(Container$
|
|
35752
|
+
return React__default.createElement(Container$C, null, React__default.createElement(Header$5, null, React__default.createElement("div", null, React__default.createElement(Title$b, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
|
|
35773
35753
|
className: "label"
|
|
35774
35754
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
35775
35755
|
className: "value"
|
|
@@ -35795,7 +35775,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
35795
35775
|
className: "value"
|
|
35796
35776
|
}, requiredItem))), React__default.createElement(Description$4, null, description));
|
|
35797
35777
|
};
|
|
35798
|
-
var Container$
|
|
35778
|
+
var Container$C = /*#__PURE__*/styled__default.div.withConfig({
|
|
35799
35779
|
displayName: "SpellInfo__Container",
|
|
35800
35780
|
componentId: "sc-4hbw3q-0"
|
|
35801
35781
|
})(["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);
|
|
@@ -35849,7 +35829,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
35849
35829
|
var _ref$current;
|
|
35850
35830
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
35851
35831
|
};
|
|
35852
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
35832
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$D, {
|
|
35853
35833
|
ref: ref,
|
|
35854
35834
|
onTouchEnd: function onTouchEnd() {
|
|
35855
35835
|
handleFadeOut();
|
|
@@ -35874,7 +35854,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
35874
35854
|
}, option.text);
|
|
35875
35855
|
}))));
|
|
35876
35856
|
};
|
|
35877
|
-
var Container$
|
|
35857
|
+
var Container$D = /*#__PURE__*/styled__default.div.withConfig({
|
|
35878
35858
|
displayName: "MobileSpellTooltip__Container",
|
|
35879
35859
|
componentId: "sc-6p7uvr-0"
|
|
35880
35860
|
})(["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;}"]);
|
|
@@ -35915,13 +35895,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
35915
35895
|
}
|
|
35916
35896
|
return;
|
|
35917
35897
|
}, []);
|
|
35918
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
35898
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$E, {
|
|
35919
35899
|
ref: ref
|
|
35920
35900
|
}, React__default.createElement(SpellInfoDisplay, {
|
|
35921
35901
|
spell: spell
|
|
35922
35902
|
})));
|
|
35923
35903
|
};
|
|
35924
|
-
var Container$
|
|
35904
|
+
var Container$E = /*#__PURE__*/styled__default.div.withConfig({
|
|
35925
35905
|
displayName: "SpellTooltip__Container",
|
|
35926
35906
|
componentId: "sc-1go0gwg-0"
|
|
35927
35907
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -35994,7 +35974,7 @@ var Spell = function Spell(_ref) {
|
|
|
35994
35974
|
var IMAGE_SCALE = 2;
|
|
35995
35975
|
return React__default.createElement(SpellInfoWrapper, {
|
|
35996
35976
|
spell: spell
|
|
35997
|
-
}, React__default.createElement(Container$
|
|
35977
|
+
}, React__default.createElement(Container$F, {
|
|
35998
35978
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
35999
35979
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
36000
35980
|
className: "spell"
|
|
@@ -36013,7 +35993,7 @@ var Spell = function Spell(_ref) {
|
|
|
36013
35993
|
className: "mana"
|
|
36014
35994
|
}, manaCost))));
|
|
36015
35995
|
};
|
|
36016
|
-
var Container$
|
|
35996
|
+
var Container$F = /*#__PURE__*/styled__default.button.withConfig({
|
|
36017
35997
|
displayName: "Spell__Container",
|
|
36018
35998
|
componentId: "sc-j96fa2-0"
|
|
36019
35999
|
})(["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) {
|
|
@@ -36092,7 +36072,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
36092
36072
|
height: "inherit",
|
|
36093
36073
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
36094
36074
|
scale: scale
|
|
36095
|
-
}, React__default.createElement(Container$
|
|
36075
|
+
}, React__default.createElement(Container$G, null, React__default.createElement(Title$d, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
36096
36076
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
36097
36077
|
settingShortcutIndex: settingShortcutIndex,
|
|
36098
36078
|
shortcuts: shortcuts,
|
|
@@ -36128,7 +36108,7 @@ var Title$d = /*#__PURE__*/styled__default.h1.withConfig({
|
|
|
36128
36108
|
displayName: "Spellbook__Title",
|
|
36129
36109
|
componentId: "sc-r02nfq-0"
|
|
36130
36110
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
36131
|
-
var Container$
|
|
36111
|
+
var Container$G = /*#__PURE__*/styled__default.div.withConfig({
|
|
36132
36112
|
displayName: "Spellbook__Container",
|
|
36133
36113
|
componentId: "sc-r02nfq-1"
|
|
36134
36114
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -36610,7 +36590,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
36610
36590
|
width: "500px",
|
|
36611
36591
|
cancelDrag: "#TraderContainer",
|
|
36612
36592
|
scale: scale
|
|
36613
|
-
}, React__default.createElement(Container$
|
|
36593
|
+
}, React__default.createElement(Container$H, null, React__default.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React__default.createElement("hr", {
|
|
36614
36594
|
className: "golden"
|
|
36615
36595
|
}), React__default.createElement(ScrollWrapper, {
|
|
36616
36596
|
id: "TraderContainer"
|
|
@@ -36638,7 +36618,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
36638
36618
|
onPointerDown: onClose
|
|
36639
36619
|
}, "Cancel"))));
|
|
36640
36620
|
};
|
|
36641
|
-
var Container$
|
|
36621
|
+
var Container$H = /*#__PURE__*/styled__default.div.withConfig({
|
|
36642
36622
|
displayName: "TradingMenu__Container",
|
|
36643
36623
|
componentId: "sc-1wjsz1l-0"
|
|
36644
36624
|
})(["width:100%;"]);
|
|
@@ -36672,11 +36652,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
36672
36652
|
var _ref$maxLines = _ref.maxLines,
|
|
36673
36653
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
36674
36654
|
children = _ref.children;
|
|
36675
|
-
return React__default.createElement(Container$
|
|
36655
|
+
return React__default.createElement(Container$I, {
|
|
36676
36656
|
maxLines: maxLines
|
|
36677
36657
|
}, children);
|
|
36678
36658
|
};
|
|
36679
|
-
var Container$
|
|
36659
|
+
var Container$I = /*#__PURE__*/styled__default.div.withConfig({
|
|
36680
36660
|
displayName: "Truncate__Container",
|
|
36681
36661
|
componentId: "sc-6x00qb-0"
|
|
36682
36662
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -36784,7 +36764,7 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
36784
36764
|
};
|
|
36785
36765
|
});
|
|
36786
36766
|
}, [lessons, imageStyle]);
|
|
36787
|
-
return React__default.createElement(Container$
|
|
36767
|
+
return React__default.createElement(Container$J, null, React__default.createElement(Stepper, {
|
|
36788
36768
|
steps: generateLessons,
|
|
36789
36769
|
finalCTAButton: {
|
|
36790
36770
|
label: 'Close',
|
|
@@ -36801,7 +36781,7 @@ var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36801
36781
|
displayName: "TutorialStepper__LessonBody",
|
|
36802
36782
|
componentId: "sc-7tgzv2-1"
|
|
36803
36783
|
})([""]);
|
|
36804
|
-
var Container$
|
|
36784
|
+
var Container$J = /*#__PURE__*/styled__default.div.withConfig({
|
|
36805
36785
|
displayName: "TutorialStepper__Container",
|
|
36806
36786
|
componentId: "sc-7tgzv2-2"
|
|
36807
36787
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|