@rpg-engine/long-bow 0.8.34 → 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 +38 -97
- 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 +38 -97
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/InformationCenter/InformationCenter.tsx +0 -13
- package/src/stories/UI/info/InformationCenter.stories.tsx +2 -2
package/dist/long-bow.esm.js
CHANGED
|
@@ -32390,55 +32390,6 @@ var SearchBarActions$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
32390
32390
|
componentId: "sc-e3h0p2-1"
|
|
32391
32391
|
})(["display:flex;align-items:center;gap:0.5rem;"]);
|
|
32392
32392
|
|
|
32393
|
-
var InformationCenterFAQSection = function InformationCenterFAQSection(_ref) {
|
|
32394
|
-
var faqItems = _ref.faqItems,
|
|
32395
|
-
initialSearchQuery = _ref.initialSearchQuery,
|
|
32396
|
-
tabId = _ref.tabId;
|
|
32397
|
-
var _useState = useState(initialSearchQuery),
|
|
32398
|
-
searchQuery = _useState[0],
|
|
32399
|
-
setSearchQuery = _useState[1];
|
|
32400
|
-
useEffect(function () {
|
|
32401
|
-
setSearchQuery(initialSearchQuery);
|
|
32402
|
-
}, [initialSearchQuery]);
|
|
32403
|
-
var filteredFaqs = useMemo(function () {
|
|
32404
|
-
if (!searchQuery) return faqItems;
|
|
32405
|
-
return faqItems.filter(function (faq) {
|
|
32406
|
-
return faq.question.toLowerCase().includes(searchQuery.toLowerCase()) || faq.answer.toLowerCase().includes(searchQuery.toLowerCase());
|
|
32407
|
-
});
|
|
32408
|
-
}, [searchQuery, faqItems]);
|
|
32409
|
-
var renderItem = function renderItem(item) {
|
|
32410
|
-
return React.createElement(StyledCollapsible$2, {
|
|
32411
|
-
title: item.question
|
|
32412
|
-
}, React.createElement(Answer$1, null, item.answer));
|
|
32413
|
-
};
|
|
32414
|
-
return React.createElement(Container$r, null, React.createElement(SearchHeader, {
|
|
32415
|
-
searchOptions: {
|
|
32416
|
-
value: searchQuery,
|
|
32417
|
-
onChange: setSearchQuery,
|
|
32418
|
-
placeholder: 'Search FAQs...'
|
|
32419
|
-
}
|
|
32420
|
-
}), React.createElement(PaginatedContent, {
|
|
32421
|
-
items: filteredFaqs,
|
|
32422
|
-
renderItem: renderItem,
|
|
32423
|
-
emptyMessage: "No FAQ items found",
|
|
32424
|
-
tabId: tabId,
|
|
32425
|
-
layout: "list",
|
|
32426
|
-
itemsPerPage: 10
|
|
32427
|
-
}));
|
|
32428
|
-
};
|
|
32429
|
-
var Container$r = /*#__PURE__*/styled.div.withConfig({
|
|
32430
|
-
displayName: "InformationCenterFaqSection__Container",
|
|
32431
|
-
componentId: "sc-ofmaa9-0"
|
|
32432
|
-
})(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
|
|
32433
|
-
var StyledCollapsible$2 = /*#__PURE__*/styled(Collapsible).withConfig({
|
|
32434
|
-
displayName: "InformationCenterFaqSection__StyledCollapsible",
|
|
32435
|
-
componentId: "sc-ofmaa9-1"
|
|
32436
|
-
})(["margin-bottom:0.5rem;&:last-child{margin-bottom:0;}"]);
|
|
32437
|
-
var Answer$1 = /*#__PURE__*/styled.p.withConfig({
|
|
32438
|
-
displayName: "InformationCenterFaqSection__Answer",
|
|
32439
|
-
componentId: "sc-ofmaa9-2"
|
|
32440
|
-
})(["font-size:0.9rem;color:#ffffff;margin:0;line-height:1.5;"]);
|
|
32441
|
-
|
|
32442
32393
|
var ITEMS_PER_PAGE$2 = 3;
|
|
32443
32394
|
var GRID_COLUMNS = 3;
|
|
32444
32395
|
var InformationCenterTutorialsSection = function InformationCenterTutorialsSection(_ref) {
|
|
@@ -32578,8 +32529,6 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32578
32529
|
entitiesAtlasIMG = _ref.entitiesAtlasIMG,
|
|
32579
32530
|
iconsAtlasIMG = _ref.iconsAtlasIMG,
|
|
32580
32531
|
iconsAtlasJSON = _ref.iconsAtlasJSON,
|
|
32581
|
-
_ref$faqItems = _ref.faqItems,
|
|
32582
|
-
faqItems = _ref$faqItems === void 0 ? [] : _ref$faqItems,
|
|
32583
32532
|
_ref$bestiaryItems = _ref.bestiaryItems,
|
|
32584
32533
|
bestiaryItems = _ref$bestiaryItems === void 0 ? [] : _ref$bestiaryItems,
|
|
32585
32534
|
_ref$videoGuides = _ref.videoGuides,
|
|
@@ -32625,14 +32574,6 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32625
32574
|
initialSearchQuery: initialSearchQuery,
|
|
32626
32575
|
tabId: "items"
|
|
32627
32576
|
})
|
|
32628
|
-
}, {
|
|
32629
|
-
id: 'faq',
|
|
32630
|
-
title: 'FAQ',
|
|
32631
|
-
content: React.createElement(InformationCenterFAQSection, {
|
|
32632
|
-
faqItems: faqItems,
|
|
32633
|
-
initialSearchQuery: initialSearchQuery,
|
|
32634
|
-
tabId: "faq"
|
|
32635
|
-
})
|
|
32636
32577
|
}, {
|
|
32637
32578
|
id: 'tutorials',
|
|
32638
32579
|
title: 'Tutorials',
|
|
@@ -32645,7 +32586,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32645
32586
|
return React.createElement(DraggableContainer, {
|
|
32646
32587
|
title: "Information Center",
|
|
32647
32588
|
type: RPGUIContainerTypes.Framed
|
|
32648
|
-
}, React.createElement(Container$
|
|
32589
|
+
}, React.createElement(Container$r, null, React.createElement(InternalTabs, {
|
|
32649
32590
|
tabs: tabs,
|
|
32650
32591
|
activeTextColor: "#000000",
|
|
32651
32592
|
activeTab: activeTab,
|
|
@@ -32656,7 +32597,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32656
32597
|
hoverColor: "#fef3c7"
|
|
32657
32598
|
})));
|
|
32658
32599
|
};
|
|
32659
|
-
var Container$
|
|
32600
|
+
var Container$r = /*#__PURE__*/styled.div.withConfig({
|
|
32660
32601
|
displayName: "InformationCenter__Container",
|
|
32661
32602
|
componentId: "sc-1ttl62e-0"
|
|
32662
32603
|
})(["width:100%;max-width:800px;margin:0 auto;padding:1rem;"]);
|
|
@@ -32827,7 +32768,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
32827
32768
|
}
|
|
32828
32769
|
return null;
|
|
32829
32770
|
};
|
|
32830
|
-
return React.createElement(Container$
|
|
32771
|
+
return React.createElement(Container$s, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
|
|
32831
32772
|
id: "shortcuts_list"
|
|
32832
32773
|
}, Array.from({
|
|
32833
32774
|
length: 12
|
|
@@ -32845,7 +32786,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
32845
32786
|
}, getContent(i));
|
|
32846
32787
|
})));
|
|
32847
32788
|
};
|
|
32848
|
-
var Container$
|
|
32789
|
+
var Container$s = /*#__PURE__*/styled.div.withConfig({
|
|
32849
32790
|
displayName: "ShortcutsSetter__Container",
|
|
32850
32791
|
componentId: "sc-xuouuf-0"
|
|
32851
32792
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -33290,7 +33231,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
33290
33231
|
e.stopPropagation();
|
|
33291
33232
|
onClose();
|
|
33292
33233
|
};
|
|
33293
|
-
return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$
|
|
33234
|
+
return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$t, {
|
|
33294
33235
|
onClick: handleClose
|
|
33295
33236
|
}, React.createElement(DraggableContainer, {
|
|
33296
33237
|
width: "auto",
|
|
@@ -33313,7 +33254,7 @@ var Background = /*#__PURE__*/styled.div.withConfig({
|
|
|
33313
33254
|
displayName: "ConfirmModal__Background",
|
|
33314
33255
|
componentId: "sc-11qkyu1-0"
|
|
33315
33256
|
})(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
|
|
33316
|
-
var Container$
|
|
33257
|
+
var Container$t = /*#__PURE__*/styled.div.withConfig({
|
|
33317
33258
|
displayName: "ConfirmModal__Container",
|
|
33318
33259
|
componentId: "sc-11qkyu1-1"
|
|
33319
33260
|
})(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
|
|
@@ -33368,7 +33309,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
33368
33309
|
cancelDrag: ".react-colorful",
|
|
33369
33310
|
width: "25rem",
|
|
33370
33311
|
onCloseButton: onClose
|
|
33371
|
-
}, React.createElement(Container$
|
|
33312
|
+
}, React.createElement(Container$u, null, React.createElement(Header$3, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
|
|
33372
33313
|
color: currentColor,
|
|
33373
33314
|
onChange: function onChange(color) {
|
|
33374
33315
|
setCurrentColor(color);
|
|
@@ -33384,7 +33325,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
33384
33325
|
onClose: handleClose
|
|
33385
33326
|
}));
|
|
33386
33327
|
};
|
|
33387
|
-
var Container$
|
|
33328
|
+
var Container$u = /*#__PURE__*/styled.div.withConfig({
|
|
33388
33329
|
displayName: "ItemPropertyColorSelector__Container",
|
|
33389
33330
|
componentId: "sc-me1r4z-0"
|
|
33390
33331
|
})(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
|
|
@@ -33740,7 +33681,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
33740
33681
|
onSelected = _ref.onSelected,
|
|
33741
33682
|
x = _ref.x,
|
|
33742
33683
|
y = _ref.y;
|
|
33743
|
-
return React.createElement(Container$
|
|
33684
|
+
return React.createElement(Container$v, {
|
|
33744
33685
|
x: x,
|
|
33745
33686
|
y: y
|
|
33746
33687
|
}, React.createElement("ul", {
|
|
@@ -33757,7 +33698,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
33757
33698
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
33758
33699
|
})));
|
|
33759
33700
|
};
|
|
33760
|
-
var Container$
|
|
33701
|
+
var Container$v = /*#__PURE__*/styled.div.withConfig({
|
|
33761
33702
|
displayName: "ListMenu__Container",
|
|
33762
33703
|
componentId: "sc-i9097t-0"
|
|
33763
33704
|
})(["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) {
|
|
@@ -33776,7 +33717,7 @@ var Pager = function Pager(_ref) {
|
|
|
33776
33717
|
itemsPerPage = _ref.itemsPerPage,
|
|
33777
33718
|
onPageChange = _ref.onPageChange;
|
|
33778
33719
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
33779
|
-
return React.createElement(Container$
|
|
33720
|
+
return React.createElement(Container$w, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
|
|
33780
33721
|
disabled: currentPage === 1,
|
|
33781
33722
|
onPointerDown: function onPointerDown() {
|
|
33782
33723
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -33790,7 +33731,7 @@ var Pager = function Pager(_ref) {
|
|
|
33790
33731
|
}
|
|
33791
33732
|
}, '>')));
|
|
33792
33733
|
};
|
|
33793
|
-
var Container$
|
|
33734
|
+
var Container$w = /*#__PURE__*/styled.div.withConfig({
|
|
33794
33735
|
displayName: "Pager__Container",
|
|
33795
33736
|
componentId: "sc-1ekmf50-0"
|
|
33796
33737
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -34311,13 +34252,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
34311
34252
|
children = _ref.children,
|
|
34312
34253
|
styles = _ref.styles,
|
|
34313
34254
|
centerContent = _ref.centerContent;
|
|
34314
|
-
return React.createElement(Container$
|
|
34255
|
+
return React.createElement(Container$x, {
|
|
34315
34256
|
styles: styles,
|
|
34316
34257
|
"data-tab-id": id,
|
|
34317
34258
|
centerContent: centerContent
|
|
34318
34259
|
}, children);
|
|
34319
34260
|
};
|
|
34320
|
-
var Container$
|
|
34261
|
+
var Container$x = /*#__PURE__*/styled.div.withConfig({
|
|
34321
34262
|
displayName: "TabBody__Container",
|
|
34322
34263
|
componentId: "sc-196oof2-0"
|
|
34323
34264
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -34970,7 +34911,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
34970
34911
|
}
|
|
34971
34912
|
return value * 100 / max;
|
|
34972
34913
|
};
|
|
34973
|
-
return React.createElement(Container$
|
|
34914
|
+
return React.createElement(Container$y, {
|
|
34974
34915
|
className: "rpgui-progress",
|
|
34975
34916
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
34976
34917
|
"data-rpguitype": "progress",
|
|
@@ -35000,7 +34941,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
35000
34941
|
displayName: "ProgressBar__TextOverlay",
|
|
35001
34942
|
componentId: "sc-qa6fzh-1"
|
|
35002
34943
|
})(["width:100%;position:relative;"]);
|
|
35003
|
-
var Container$
|
|
34944
|
+
var Container$y = /*#__PURE__*/styled.div.withConfig({
|
|
35004
34945
|
displayName: "ProgressBar__Container",
|
|
35005
34946
|
componentId: "sc-qa6fzh-2"
|
|
35006
34947
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -35241,9 +35182,9 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
35241
35182
|
|
|
35242
35183
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
35243
35184
|
var children = _ref.children;
|
|
35244
|
-
return React.createElement(Container$
|
|
35185
|
+
return React.createElement(Container$z, null, children);
|
|
35245
35186
|
};
|
|
35246
|
-
var Container$
|
|
35187
|
+
var Container$z = /*#__PURE__*/styled.div.withConfig({
|
|
35247
35188
|
displayName: "RPGUIScrollbar__Container",
|
|
35248
35189
|
componentId: "sc-p3msmb-0"
|
|
35249
35190
|
})([".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;}"]);
|
|
@@ -35399,7 +35340,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
35399
35340
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
35400
35341
|
// Ensure the width is at least 1% if value is greater than 0
|
|
35401
35342
|
var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
|
|
35402
|
-
return React.createElement(Container$
|
|
35343
|
+
return React.createElement(Container$A, {
|
|
35403
35344
|
className: "simple-progress-bar"
|
|
35404
35345
|
}, React.createElement(ProgressBarContainer, {
|
|
35405
35346
|
margin: margin
|
|
@@ -35408,7 +35349,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
35408
35349
|
bgColor: bgColor
|
|
35409
35350
|
}))));
|
|
35410
35351
|
};
|
|
35411
|
-
var Container$
|
|
35352
|
+
var Container$A = /*#__PURE__*/styled.div.withConfig({
|
|
35412
35353
|
displayName: "SimpleProgressBar__Container",
|
|
35413
35354
|
componentId: "sc-mbeil3-0"
|
|
35414
35355
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -35741,7 +35682,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
35741
35682
|
title: "Social Channels",
|
|
35742
35683
|
width: "500px",
|
|
35743
35684
|
onCloseButton: onClose
|
|
35744
|
-
}, React.createElement(Container$
|
|
35685
|
+
}, React.createElement(Container$B, null, React.createElement(HeaderImage, {
|
|
35745
35686
|
src: img$9,
|
|
35746
35687
|
alt: ""
|
|
35747
35688
|
}), React.createElement(ButtonsContainer$1, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
|
|
@@ -35759,7 +35700,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
35759
35700
|
onClick: handleWhatsAppClick
|
|
35760
35701
|
}, React.createElement(FaWhatsapp, null), " Join WhatsApp")))));
|
|
35761
35702
|
};
|
|
35762
|
-
var Container$
|
|
35703
|
+
var Container$B = /*#__PURE__*/styled.div.withConfig({
|
|
35763
35704
|
displayName: "SocialModal__Container",
|
|
35764
35705
|
componentId: "sc-tbjhp9-0"
|
|
35765
35706
|
})(["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% );}"]);
|
|
@@ -35805,7 +35746,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
35805
35746
|
castingType = spell.castingType,
|
|
35806
35747
|
cooldown = spell.cooldown,
|
|
35807
35748
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
35808
|
-
return React.createElement(Container$
|
|
35749
|
+
return React.createElement(Container$C, null, React.createElement(Header$5, null, React.createElement("div", null, React.createElement(Title$b, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
|
|
35809
35750
|
className: "label"
|
|
35810
35751
|
}, "Casting Type:"), React.createElement("div", {
|
|
35811
35752
|
className: "value"
|
|
@@ -35831,7 +35772,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
35831
35772
|
className: "value"
|
|
35832
35773
|
}, requiredItem))), React.createElement(Description$4, null, description));
|
|
35833
35774
|
};
|
|
35834
|
-
var Container$
|
|
35775
|
+
var Container$C = /*#__PURE__*/styled.div.withConfig({
|
|
35835
35776
|
displayName: "SpellInfo__Container",
|
|
35836
35777
|
componentId: "sc-4hbw3q-0"
|
|
35837
35778
|
})(["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);
|
|
@@ -35885,7 +35826,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
35885
35826
|
var _ref$current;
|
|
35886
35827
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
35887
35828
|
};
|
|
35888
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
35829
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$D, {
|
|
35889
35830
|
ref: ref,
|
|
35890
35831
|
onTouchEnd: function onTouchEnd() {
|
|
35891
35832
|
handleFadeOut();
|
|
@@ -35910,7 +35851,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
35910
35851
|
}, option.text);
|
|
35911
35852
|
}))));
|
|
35912
35853
|
};
|
|
35913
|
-
var Container$
|
|
35854
|
+
var Container$D = /*#__PURE__*/styled.div.withConfig({
|
|
35914
35855
|
displayName: "MobileSpellTooltip__Container",
|
|
35915
35856
|
componentId: "sc-6p7uvr-0"
|
|
35916
35857
|
})(["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;}"]);
|
|
@@ -35951,13 +35892,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
35951
35892
|
}
|
|
35952
35893
|
return;
|
|
35953
35894
|
}, []);
|
|
35954
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
35895
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$E, {
|
|
35955
35896
|
ref: ref
|
|
35956
35897
|
}, React.createElement(SpellInfoDisplay, {
|
|
35957
35898
|
spell: spell
|
|
35958
35899
|
})));
|
|
35959
35900
|
};
|
|
35960
|
-
var Container$
|
|
35901
|
+
var Container$E = /*#__PURE__*/styled.div.withConfig({
|
|
35961
35902
|
displayName: "SpellTooltip__Container",
|
|
35962
35903
|
componentId: "sc-1go0gwg-0"
|
|
35963
35904
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -36030,7 +35971,7 @@ var Spell = function Spell(_ref) {
|
|
|
36030
35971
|
var IMAGE_SCALE = 2;
|
|
36031
35972
|
return React.createElement(SpellInfoWrapper, {
|
|
36032
35973
|
spell: spell
|
|
36033
|
-
}, React.createElement(Container$
|
|
35974
|
+
}, React.createElement(Container$F, {
|
|
36034
35975
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
36035
35976
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
36036
35977
|
className: "spell"
|
|
@@ -36049,7 +35990,7 @@ var Spell = function Spell(_ref) {
|
|
|
36049
35990
|
className: "mana"
|
|
36050
35991
|
}, manaCost))));
|
|
36051
35992
|
};
|
|
36052
|
-
var Container$
|
|
35993
|
+
var Container$F = /*#__PURE__*/styled.button.withConfig({
|
|
36053
35994
|
displayName: "Spell__Container",
|
|
36054
35995
|
componentId: "sc-j96fa2-0"
|
|
36055
35996
|
})(["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) {
|
|
@@ -36128,7 +36069,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
36128
36069
|
height: "inherit",
|
|
36129
36070
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
36130
36071
|
scale: scale
|
|
36131
|
-
}, React.createElement(Container$
|
|
36072
|
+
}, React.createElement(Container$G, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
|
|
36132
36073
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
36133
36074
|
settingShortcutIndex: settingShortcutIndex,
|
|
36134
36075
|
shortcuts: shortcuts,
|
|
@@ -36164,7 +36105,7 @@ var Title$d = /*#__PURE__*/styled.h1.withConfig({
|
|
|
36164
36105
|
displayName: "Spellbook__Title",
|
|
36165
36106
|
componentId: "sc-r02nfq-0"
|
|
36166
36107
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
36167
|
-
var Container$
|
|
36108
|
+
var Container$G = /*#__PURE__*/styled.div.withConfig({
|
|
36168
36109
|
displayName: "Spellbook__Container",
|
|
36169
36110
|
componentId: "sc-r02nfq-1"
|
|
36170
36111
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -36646,7 +36587,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
36646
36587
|
width: "500px",
|
|
36647
36588
|
cancelDrag: "#TraderContainer",
|
|
36648
36589
|
scale: scale
|
|
36649
|
-
}, React.createElement(Container$
|
|
36590
|
+
}, React.createElement(Container$H, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
|
|
36650
36591
|
className: "golden"
|
|
36651
36592
|
}), React.createElement(ScrollWrapper, {
|
|
36652
36593
|
id: "TraderContainer"
|
|
@@ -36674,7 +36615,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
36674
36615
|
onPointerDown: onClose
|
|
36675
36616
|
}, "Cancel"))));
|
|
36676
36617
|
};
|
|
36677
|
-
var Container$
|
|
36618
|
+
var Container$H = /*#__PURE__*/styled.div.withConfig({
|
|
36678
36619
|
displayName: "TradingMenu__Container",
|
|
36679
36620
|
componentId: "sc-1wjsz1l-0"
|
|
36680
36621
|
})(["width:100%;"]);
|
|
@@ -36708,11 +36649,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
36708
36649
|
var _ref$maxLines = _ref.maxLines,
|
|
36709
36650
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
36710
36651
|
children = _ref.children;
|
|
36711
|
-
return React.createElement(Container$
|
|
36652
|
+
return React.createElement(Container$I, {
|
|
36712
36653
|
maxLines: maxLines
|
|
36713
36654
|
}, children);
|
|
36714
36655
|
};
|
|
36715
|
-
var Container$
|
|
36656
|
+
var Container$I = /*#__PURE__*/styled.div.withConfig({
|
|
36716
36657
|
displayName: "Truncate__Container",
|
|
36717
36658
|
componentId: "sc-6x00qb-0"
|
|
36718
36659
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -36820,7 +36761,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
36820
36761
|
};
|
|
36821
36762
|
});
|
|
36822
36763
|
}, [lessons, imageStyle]);
|
|
36823
|
-
return React.createElement(Container$
|
|
36764
|
+
return React.createElement(Container$J, null, React.createElement(Stepper, {
|
|
36824
36765
|
steps: generateLessons,
|
|
36825
36766
|
finalCTAButton: {
|
|
36826
36767
|
label: 'Close',
|
|
@@ -36837,7 +36778,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
|
|
|
36837
36778
|
displayName: "TutorialStepper__LessonBody",
|
|
36838
36779
|
componentId: "sc-7tgzv2-1"
|
|
36839
36780
|
})([""]);
|
|
36840
|
-
var Container$
|
|
36781
|
+
var Container$J = /*#__PURE__*/styled.div.withConfig({
|
|
36841
36782
|
displayName: "TutorialStepper__Container",
|
|
36842
36783
|
componentId: "sc-7tgzv2-2"
|
|
36843
36784
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|