@rpg-engine/long-bow 0.5.62 → 0.5.66
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/AsyncDropdown.d.ts +13 -0
- package/dist/components/Dropdown.d.ts +0 -1
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +187 -105
- 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 +188 -107
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +3 -2
- package/src/components/AsyncDropdown.tsx +127 -0
- package/src/components/Dropdown.tsx +1 -15
- package/src/index.tsx +1 -0
- package/src/stories/Dropdown.stories.tsx +2 -2
|
@@ -6,8 +6,10 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
6
6
|
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var React__default = _interopDefault(React);
|
|
9
|
+
var reactSpinners = require('react-spinners');
|
|
9
10
|
var styled = require('styled-components');
|
|
10
11
|
var styled__default = _interopDefault(styled);
|
|
12
|
+
var uuid = require('uuid');
|
|
11
13
|
var shared = require('@rpg-engine/shared');
|
|
12
14
|
var dayjs = _interopDefault(require('dayjs'));
|
|
13
15
|
var reactErrorBoundary = require('react-error-boundary');
|
|
@@ -16,12 +18,125 @@ var Draggable = _interopDefault(require('react-draggable'));
|
|
|
16
18
|
var ReactDOM = _interopDefault(require('react-dom'));
|
|
17
19
|
var lodash = require('lodash');
|
|
18
20
|
var mobxReactLite = require('mobx-react-lite');
|
|
19
|
-
var uuid = require('uuid');
|
|
20
21
|
var ai = require('react-icons/ai');
|
|
21
22
|
require('rpgui/rpgui.css');
|
|
22
23
|
require('rpgui/rpgui.min.js');
|
|
23
24
|
var capitalize = _interopDefault(require('lodash/capitalize'));
|
|
24
25
|
|
|
26
|
+
var uiColors = {
|
|
27
|
+
lightGray: '#888',
|
|
28
|
+
gray: '#4E4A4E',
|
|
29
|
+
darkGray: '#3e3e3e',
|
|
30
|
+
darkYellow: '#FFC857',
|
|
31
|
+
yellow: '#FFFF00',
|
|
32
|
+
orange: '#D27D2C',
|
|
33
|
+
cardinal: '#C5283D',
|
|
34
|
+
red: '#D04648',
|
|
35
|
+
darkRed: '#442434',
|
|
36
|
+
raisinBlack: '#191923',
|
|
37
|
+
navyBlue: '#0E79B2',
|
|
38
|
+
purple: '#6833A3',
|
|
39
|
+
darkPurple: '#522761',
|
|
40
|
+
blue: '#597DCE',
|
|
41
|
+
darkBlue: '#30346D',
|
|
42
|
+
brown: '#854C30',
|
|
43
|
+
lightGreen: '#66cd1c',
|
|
44
|
+
brownGreen: '#346524',
|
|
45
|
+
white: '#fff'
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
var AsyncDropdown = function AsyncDropdown(_ref) {
|
|
49
|
+
var _options$, _options$find, _options$2;
|
|
50
|
+
var options = _ref.options,
|
|
51
|
+
width = _ref.width,
|
|
52
|
+
onChange = _ref.onChange,
|
|
53
|
+
defaultValue = _ref.defaultValue;
|
|
54
|
+
var dropdownId = uuid.v4();
|
|
55
|
+
var _useState = React.useState(defaultValue || (options == null ? void 0 : (_options$ = options[0]) == null ? void 0 : _options$.value)),
|
|
56
|
+
selectedValue = _useState[0],
|
|
57
|
+
setSelectedValue = _useState[1];
|
|
58
|
+
var _useState2 = React.useState((options == null ? void 0 : (_options$find = options.find(function (option) {
|
|
59
|
+
return option.value === defaultValue;
|
|
60
|
+
})) == null ? void 0 : _options$find.option) || (options == null ? void 0 : (_options$2 = options[0]) == null ? void 0 : _options$2.option)),
|
|
61
|
+
selectedOption = _useState2[0],
|
|
62
|
+
setSelectedOption = _useState2[1];
|
|
63
|
+
var _useState3 = React.useState(false),
|
|
64
|
+
opened = _useState3[0],
|
|
65
|
+
setOpened = _useState3[1];
|
|
66
|
+
React.useEffect(function () {
|
|
67
|
+
if (defaultValue) {
|
|
68
|
+
var _options$find2;
|
|
69
|
+
setSelectedValue(defaultValue);
|
|
70
|
+
setSelectedOption( //@ts-ignore
|
|
71
|
+
options == null ? void 0 : (_options$find2 = options.find(function (option) {
|
|
72
|
+
return option.value === defaultValue;
|
|
73
|
+
})) == null ? void 0 : _options$find2.option);
|
|
74
|
+
} else if ((options == null ? void 0 : options.length) > 0) {
|
|
75
|
+
setSelectedValue(options[0].value);
|
|
76
|
+
setSelectedOption(options[0].option);
|
|
77
|
+
}
|
|
78
|
+
}, [options, defaultValue]);
|
|
79
|
+
var handleSelection = function handleSelection(value, option) {
|
|
80
|
+
if (value !== selectedValue) {
|
|
81
|
+
setSelectedValue(value);
|
|
82
|
+
setSelectedOption(option);
|
|
83
|
+
onChange(value);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
return React__default.createElement(Container, {
|
|
87
|
+
onMouseLeave: function onMouseLeave() {
|
|
88
|
+
return setOpened(false);
|
|
89
|
+
},
|
|
90
|
+
width: width
|
|
91
|
+
}, React__default.createElement(DropdownSelect, {
|
|
92
|
+
id: "dropdown-" + dropdownId,
|
|
93
|
+
className: "rpgui-dropdown-imp rpgui-dropdown-imp-header",
|
|
94
|
+
onPointerUp: function onPointerUp() {
|
|
95
|
+
return setOpened(function (prev) {
|
|
96
|
+
return !prev;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}, React__default.createElement(DropdownDisplay, null, React__default.createElement(DropdownLabel, null, "\u25BC"), " ", selectedOption, !options.length && React__default.createElement(reactSpinners.BeatLoader, {
|
|
100
|
+
size: 4,
|
|
101
|
+
color: uiColors.white
|
|
102
|
+
}))), React__default.createElement(DropdownOptions, {
|
|
103
|
+
className: "rpgui-dropdown-imp",
|
|
104
|
+
opened: opened
|
|
105
|
+
}, options == null ? void 0 : options.map(function (option) {
|
|
106
|
+
return React__default.createElement("li", {
|
|
107
|
+
key: option.id,
|
|
108
|
+
onPointerUp: function onPointerUp() {
|
|
109
|
+
handleSelection(option.value, option.option);
|
|
110
|
+
setOpened(false);
|
|
111
|
+
}
|
|
112
|
+
}, option.option);
|
|
113
|
+
})));
|
|
114
|
+
};
|
|
115
|
+
var DropdownDisplay = /*#__PURE__*/styled__default.span.withConfig({
|
|
116
|
+
displayName: "AsyncDropdown__DropdownDisplay",
|
|
117
|
+
componentId: "sc-lk409c-0"
|
|
118
|
+
})(["display:flex;flex-wrap:wrap;justify-content:start;align-items:center;"]);
|
|
119
|
+
var DropdownLabel = /*#__PURE__*/styled__default.label.withConfig({
|
|
120
|
+
displayName: "AsyncDropdown__DropdownLabel",
|
|
121
|
+
componentId: "sc-lk409c-1"
|
|
122
|
+
})(["margin-right:0.5rem;"]);
|
|
123
|
+
var Container = /*#__PURE__*/styled__default.div.withConfig({
|
|
124
|
+
displayName: "AsyncDropdown__Container",
|
|
125
|
+
componentId: "sc-lk409c-2"
|
|
126
|
+
})(["position:relative;width:", ";"], function (props) {
|
|
127
|
+
return props.width || '100%';
|
|
128
|
+
});
|
|
129
|
+
var DropdownSelect = /*#__PURE__*/styled__default.p.withConfig({
|
|
130
|
+
displayName: "AsyncDropdown__DropdownSelect",
|
|
131
|
+
componentId: "sc-lk409c-3"
|
|
132
|
+
})(["width:100%;box-sizing:border-box;label{display:inline-block;transform:translateY(-2px);}"]);
|
|
133
|
+
var DropdownOptions = /*#__PURE__*/styled__default.ul.withConfig({
|
|
134
|
+
displayName: "AsyncDropdown__DropdownOptions",
|
|
135
|
+
componentId: "sc-lk409c-4"
|
|
136
|
+
})(["position:absolute;width:100%;max-height:300px;overflow-y:auto;display:", ";box-sizing:border-box;@media (max-width:768px){padding:8px 0;}"], function (props) {
|
|
137
|
+
return props.opened ? 'block' : 'none';
|
|
138
|
+
});
|
|
139
|
+
|
|
25
140
|
function _extends() {
|
|
26
141
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
27
142
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -129,7 +244,7 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
|
|
|
129
244
|
console.error("SpriteFromAtlas: Could not find sprite with key " + spriteKey + " in atlasJSON.");
|
|
130
245
|
return null;
|
|
131
246
|
}
|
|
132
|
-
return React__default.createElement(Container, {
|
|
247
|
+
return React__default.createElement(Container$1, {
|
|
133
248
|
width: width,
|
|
134
249
|
height: height,
|
|
135
250
|
hasHover: grayScale,
|
|
@@ -147,7 +262,7 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
|
|
|
147
262
|
borderRadius: borderRadius
|
|
148
263
|
}));
|
|
149
264
|
};
|
|
150
|
-
var Container = /*#__PURE__*/styled__default.div.withConfig({
|
|
265
|
+
var Container$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
151
266
|
displayName: "SpriteFromAtlas__Container",
|
|
152
267
|
componentId: "sc-1lpani8-0"
|
|
153
268
|
})(["width:", "px;height:", "px;", ""], function (props) {
|
|
@@ -12363,7 +12478,7 @@ var Ellipsis = function Ellipsis(_ref) {
|
|
|
12363
12478
|
maxWidth = _ref.maxWidth,
|
|
12364
12479
|
fontSize = _ref.fontSize,
|
|
12365
12480
|
center = _ref.center;
|
|
12366
|
-
return React__default.createElement(Container$
|
|
12481
|
+
return React__default.createElement(Container$2, {
|
|
12367
12482
|
maxWidth: maxWidth,
|
|
12368
12483
|
fontSize: fontSize,
|
|
12369
12484
|
center: center
|
|
@@ -12371,7 +12486,7 @@ var Ellipsis = function Ellipsis(_ref) {
|
|
|
12371
12486
|
className: "ellipsis-" + maxLines + "-lines"
|
|
12372
12487
|
}, children));
|
|
12373
12488
|
};
|
|
12374
|
-
var Container$
|
|
12489
|
+
var Container$2 = /*#__PURE__*/styled__default.span.withConfig({
|
|
12375
12490
|
displayName: "Ellipsis__Container",
|
|
12376
12491
|
componentId: "sc-ysrlju-0"
|
|
12377
12492
|
})(["display:block;margin:0;.ellipsis-1-lines{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:", ";font-size:", ";", "}.ellipsis-2-lines{display:block;display:-webkit-box;max-width:", "px;height:25px;margin:0 auto;line-height:1;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;font-size:", ";}.ellipsis-3-lines{display:block;display:-webkit-box;max-width:", "px;height:43px;margin:0 auto;line-height:1;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;font-size:", ";}"], function (props) {
|
|
@@ -12420,7 +12535,7 @@ var PropertySelect = function PropertySelect(_ref) {
|
|
|
12420
12535
|
}
|
|
12421
12536
|
return '';
|
|
12422
12537
|
};
|
|
12423
|
-
return React__default.createElement(Container$
|
|
12538
|
+
return React__default.createElement(Container$3, null, React__default.createElement(TextOverlay, null, React__default.createElement("p", null, React__default.createElement(Item, null, React__default.createElement(Ellipsis, {
|
|
12424
12539
|
maxLines: 1,
|
|
12425
12540
|
maxWidth: "60%",
|
|
12426
12541
|
center: true
|
|
@@ -12442,7 +12557,7 @@ var TextOverlay = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
12442
12557
|
displayName: "PropertySelect__TextOverlay",
|
|
12443
12558
|
componentId: "sc-12uqx6s-1"
|
|
12444
12559
|
})(["width:100%;position:relative;"]);
|
|
12445
|
-
var Container$
|
|
12560
|
+
var Container$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
12446
12561
|
displayName: "PropertySelect__Container",
|
|
12447
12562
|
componentId: "sc-12uqx6s-2"
|
|
12448
12563
|
})(["position:relative;display:flex;flex-direction:column;justify-content:start;align-items:flex-start;min-width:100px;width:40%;"]);
|
|
@@ -12479,7 +12594,7 @@ var CharacterSelection = function CharacterSelection(_ref) {
|
|
|
12479
12594
|
React.useEffect(function () {
|
|
12480
12595
|
setSelectedValue(propertySelectValues[0]);
|
|
12481
12596
|
}, [availableCharacters]);
|
|
12482
|
-
return React__default.createElement(Container$
|
|
12597
|
+
return React__default.createElement(Container$4, null, selectedSpriteKey && atlasIMG && atlasJSON && React__default.createElement(ErrorBoundary, null, React__default.createElement(SpriteFromAtlas, {
|
|
12483
12598
|
spriteKey: selectedSpriteKey,
|
|
12484
12599
|
atlasIMG: atlasIMG,
|
|
12485
12600
|
atlasJSON: atlasJSON,
|
|
@@ -12501,7 +12616,7 @@ var CharacterSelection = function CharacterSelection(_ref) {
|
|
|
12501
12616
|
}
|
|
12502
12617
|
}));
|
|
12503
12618
|
};
|
|
12504
|
-
var Container$
|
|
12619
|
+
var Container$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
12505
12620
|
displayName: "CharacterSelection__Container",
|
|
12506
12621
|
componentId: "sc-b34498-0"
|
|
12507
12622
|
})(["display:flex;flex-direction:column;align-items:center;image-rendering:pixelated;"]);
|
|
@@ -12642,28 +12757,6 @@ var Button$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
|
12642
12757
|
return buttonBackgroundColor;
|
|
12643
12758
|
});
|
|
12644
12759
|
|
|
12645
|
-
var uiColors = {
|
|
12646
|
-
lightGray: '#888',
|
|
12647
|
-
gray: '#4E4A4E',
|
|
12648
|
-
darkGray: '#3e3e3e',
|
|
12649
|
-
darkYellow: '#FFC857',
|
|
12650
|
-
yellow: '#FFFF00',
|
|
12651
|
-
orange: '#D27D2C',
|
|
12652
|
-
cardinal: '#C5283D',
|
|
12653
|
-
red: '#D04648',
|
|
12654
|
-
darkRed: '#442434',
|
|
12655
|
-
raisinBlack: '#191923',
|
|
12656
|
-
navyBlue: '#0E79B2',
|
|
12657
|
-
purple: '#6833A3',
|
|
12658
|
-
darkPurple: '#522761',
|
|
12659
|
-
blue: '#597DCE',
|
|
12660
|
-
darkBlue: '#30346D',
|
|
12661
|
-
brown: '#854C30',
|
|
12662
|
-
lightGreen: '#66cd1c',
|
|
12663
|
-
brownGreen: '#346524',
|
|
12664
|
-
white: '#fff'
|
|
12665
|
-
};
|
|
12666
|
-
|
|
12667
12760
|
var SearchCharacter = function SearchCharacter(_ref) {
|
|
12668
12761
|
var onChangeCharacterName = _ref.onChangeCharacterName,
|
|
12669
12762
|
onBlur = _ref.onBlur,
|
|
@@ -12979,13 +13072,13 @@ var RPGUIContainer = function RPGUIContainer(_ref) {
|
|
|
12979
13072
|
width = _ref$width === void 0 ? '50%' : _ref$width,
|
|
12980
13073
|
height = _ref.height,
|
|
12981
13074
|
className = _ref.className;
|
|
12982
|
-
return React__default.createElement(Container$
|
|
13075
|
+
return React__default.createElement(Container$5, {
|
|
12983
13076
|
width: width,
|
|
12984
13077
|
height: height || 'auto',
|
|
12985
13078
|
className: "rpgui-container " + type + " " + className
|
|
12986
13079
|
}, children);
|
|
12987
13080
|
};
|
|
12988
|
-
var Container$
|
|
13081
|
+
var Container$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
12989
13082
|
displayName: "RPGUIContainer__Container",
|
|
12990
13083
|
componentId: "sc-a7heha-0"
|
|
12991
13084
|
})(["height:", ";width:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;"], function (props) {
|
|
@@ -13044,7 +13137,7 @@ var ChatDeprecated = function ChatDeprecated(_ref) {
|
|
|
13044
13137
|
}, onRenderMessageLines(emitter, createdAt, message));
|
|
13045
13138
|
}) : React__default.createElement(MessageText, null, "No messages available.");
|
|
13046
13139
|
};
|
|
13047
|
-
return React__default.createElement(Container$
|
|
13140
|
+
return React__default.createElement(Container$6, null, React__default.createElement(CustomContainer, {
|
|
13048
13141
|
type: exports.RPGUIContainerTypes.FramedGrey,
|
|
13049
13142
|
width: width,
|
|
13050
13143
|
height: height,
|
|
@@ -13082,7 +13175,7 @@ var ChatDeprecated = function ChatDeprecated(_ref) {
|
|
|
13082
13175
|
id: "chat-send-button"
|
|
13083
13176
|
}, "Send"))))));
|
|
13084
13177
|
};
|
|
13085
|
-
var Container$
|
|
13178
|
+
var Container$6 = /*#__PURE__*/styled__default.div.withConfig({
|
|
13086
13179
|
displayName: "ChatDeprecated__Container",
|
|
13087
13180
|
componentId: "sc-fuuod3-0"
|
|
13088
13181
|
})(["position:relative;"]);
|
|
@@ -13418,7 +13511,7 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
13418
13511
|
},
|
|
13419
13512
|
defaultPosition: initialPosition,
|
|
13420
13513
|
scale: scale
|
|
13421
|
-
}, React__default.createElement(Container$
|
|
13514
|
+
}, React__default.createElement(Container$7, {
|
|
13422
13515
|
ref: draggableRef,
|
|
13423
13516
|
width: width,
|
|
13424
13517
|
height: height || 'auto',
|
|
@@ -13433,7 +13526,7 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
13433
13526
|
onPointerDown: onCloseButton
|
|
13434
13527
|
}, "X"), children));
|
|
13435
13528
|
};
|
|
13436
|
-
var Container$
|
|
13529
|
+
var Container$7 = /*#__PURE__*/styled__default.div.withConfig({
|
|
13437
13530
|
displayName: "DraggableContainer__Container",
|
|
13438
13531
|
componentId: "sc-184mpyl-0"
|
|
13439
13532
|
})(["height:", ";width:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;&.rpgui-container{padding-top:1.5rem;}"], function (props) {
|
|
@@ -13504,11 +13597,11 @@ var countItemFromInventory = function countItemFromInventory(itemKey, inventory)
|
|
|
13504
13597
|
var modalRoot = /*#__PURE__*/document.getElementById('modal-root');
|
|
13505
13598
|
var ModalPortal = function ModalPortal(_ref) {
|
|
13506
13599
|
var children = _ref.children;
|
|
13507
|
-
return ReactDOM.createPortal(React__default.createElement(Container$
|
|
13600
|
+
return ReactDOM.createPortal(React__default.createElement(Container$8, {
|
|
13508
13601
|
className: "rpgui-content"
|
|
13509
13602
|
}, children), modalRoot);
|
|
13510
13603
|
};
|
|
13511
|
-
var Container$
|
|
13604
|
+
var Container$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
13512
13605
|
displayName: "ModalPortal__Container",
|
|
13513
13606
|
componentId: "sc-dgmp04-0"
|
|
13514
13607
|
})(["position:static !important;"]);
|
|
@@ -13643,7 +13736,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
13643
13736
|
document.removeEventListener('clickOutside', function (_e) {});
|
|
13644
13737
|
};
|
|
13645
13738
|
}, []);
|
|
13646
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
13739
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$9, Object.assign({
|
|
13647
13740
|
fontSize: fontSize,
|
|
13648
13741
|
ref: ref
|
|
13649
13742
|
}, pos), React__default.createElement("ul", {
|
|
@@ -13660,7 +13753,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
13660
13753
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
13661
13754
|
}))));
|
|
13662
13755
|
};
|
|
13663
|
-
var Container$
|
|
13756
|
+
var Container$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
13664
13757
|
displayName: "RelativeListMenu__Container",
|
|
13665
13758
|
componentId: "sc-7hohf-0"
|
|
13666
13759
|
})(["position:absolute;top:", "px;left:", "px;display:flex;flex-direction:column;width:max-content;justify-content:start;align-items:flex-start;li{font-size:", "em;}"], function (props) {
|
|
@@ -13690,7 +13783,7 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
|
|
|
13690
13783
|
var _ref$current;
|
|
13691
13784
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
13692
13785
|
};
|
|
13693
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
13786
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$a, {
|
|
13694
13787
|
ref: ref,
|
|
13695
13788
|
onTouchEnd: function onTouchEnd() {
|
|
13696
13789
|
handleFadeOut();
|
|
@@ -13718,7 +13811,7 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
|
|
|
13718
13811
|
}, option.text);
|
|
13719
13812
|
}))));
|
|
13720
13813
|
};
|
|
13721
|
-
var Container$
|
|
13814
|
+
var Container$a = /*#__PURE__*/styled__default.div.withConfig({
|
|
13722
13815
|
displayName: "MobileItemTooltip__Container",
|
|
13723
13816
|
componentId: "sc-ku4p1j-0"
|
|
13724
13817
|
})(["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:640px){flex-direction:column;}"]);
|
|
@@ -14118,7 +14211,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
14118
14211
|
setDraggingItem(item);
|
|
14119
14212
|
}
|
|
14120
14213
|
};
|
|
14121
|
-
return React__default.createElement(Container$
|
|
14214
|
+
return React__default.createElement(Container$b, {
|
|
14122
14215
|
isDraggingItem: !!draggingItem,
|
|
14123
14216
|
item: item,
|
|
14124
14217
|
className: "rpgui-icon empty-slot",
|
|
@@ -14196,7 +14289,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
14196
14289
|
setIsTooltipVisible: setTooltipVisible
|
|
14197
14290
|
}));
|
|
14198
14291
|
});
|
|
14199
|
-
var Container$
|
|
14292
|
+
var Container$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
14200
14293
|
displayName: "ItemSlot__Container",
|
|
14201
14294
|
componentId: "sc-l2j5ef-0"
|
|
14202
14295
|
})(["margin:0.1rem;.react-draggable-dragging{opacity:", ";}position:relative;.sprite-from-atlas-img--item{position:relative;top:1.5rem;left:1.5rem;border-color:", ";box-shadow:", " inset,", ";}&::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-radius:12px;pointer-events:none;animation:", ";@keyframes bg-color-change{0%{background-color:rgba(255 255 255 / 0.5);}50%{background-color:transparent;}100%{background-color:rgba(255 255 255 / 0.5);}}}"], function (_ref2) {
|
|
@@ -14312,7 +14405,7 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
14312
14405
|
});
|
|
14313
14406
|
};
|
|
14314
14407
|
var skillName = (_item$minRequirements = item.minRequirements) == null ? void 0 : (_item$minRequirements2 = _item$minRequirements.skill) == null ? void 0 : _item$minRequirements2.name;
|
|
14315
|
-
return React__default.createElement(Container$
|
|
14408
|
+
return React__default.createElement(Container$c, {
|
|
14316
14409
|
item: item
|
|
14317
14410
|
}, React__default.createElement(Header, null, React__default.createElement("div", null, React__default.createElement(Title$1, null, item.name), item.rarity !== 'Common' && React__default.createElement(Rarity, {
|
|
14318
14411
|
item: item
|
|
@@ -14326,7 +14419,7 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
14326
14419
|
"$isSpecial": true
|
|
14327
14420
|
}, "Two handed"), React__default.createElement(Description, null, item.description), item.maxStackSize && item.maxStackSize !== 1 && React__default.createElement(StackInfo, null, "x", Math.round(((_item$stackQty = item.stackQty) != null ? _item$stackQty : 1) * 100) / 100, "(", item.maxStackSize, ")"), renderMissingStatistic().length > 0 && React__default.createElement(MissingStatistics, null, React__default.createElement(Statistic, null, "Equipped Diff"), itemToCompare && renderMissingStatistic()));
|
|
14328
14421
|
};
|
|
14329
|
-
var Container$
|
|
14422
|
+
var Container$c = /*#__PURE__*/styled__default.div.withConfig({
|
|
14330
14423
|
displayName: "ItemInfo__Container",
|
|
14331
14424
|
componentId: "sc-1xm4q8k-0"
|
|
14332
14425
|
})(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:18rem;@media (max-width:640px){width:80vw;}"], uiFonts.size.small, function (_ref2) {
|
|
@@ -14472,7 +14565,7 @@ var ItemTooltip = function ItemTooltip(_ref) {
|
|
|
14472
14565
|
}
|
|
14473
14566
|
return;
|
|
14474
14567
|
}, []);
|
|
14475
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
14568
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$d, {
|
|
14476
14569
|
ref: ref
|
|
14477
14570
|
}, React__default.createElement(ItemInfoDisplay, {
|
|
14478
14571
|
item: item,
|
|
@@ -14481,7 +14574,7 @@ var ItemTooltip = function ItemTooltip(_ref) {
|
|
|
14481
14574
|
equipmentSet: equipmentSet
|
|
14482
14575
|
})));
|
|
14483
14576
|
};
|
|
14484
|
-
var Container$
|
|
14577
|
+
var Container$d = /*#__PURE__*/styled__default.div.withConfig({
|
|
14485
14578
|
displayName: "ItemTooltip__Container",
|
|
14486
14579
|
componentId: "sc-11d9r7x-0"
|
|
14487
14580
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -14799,10 +14892,9 @@ var ItemTypes = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
14799
14892
|
var Dropdown = function Dropdown(_ref) {
|
|
14800
14893
|
var options = _ref.options,
|
|
14801
14894
|
width = _ref.width,
|
|
14802
|
-
onChange = _ref.onChange
|
|
14803
|
-
defaultValue = _ref.defaultValue;
|
|
14895
|
+
onChange = _ref.onChange;
|
|
14804
14896
|
var dropdownId = uuid.v4();
|
|
14805
|
-
var _useState = React.useState(
|
|
14897
|
+
var _useState = React.useState(''),
|
|
14806
14898
|
selectedValue = _useState[0],
|
|
14807
14899
|
setSelectedValue = _useState[1];
|
|
14808
14900
|
var _useState2 = React.useState(''),
|
|
@@ -14830,28 +14922,17 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
14830
14922
|
}
|
|
14831
14923
|
}
|
|
14832
14924
|
}, [options]);
|
|
14833
|
-
React.useEffect(function () {
|
|
14834
|
-
if (defaultValue) {
|
|
14835
|
-
var option = options.find(function (o) {
|
|
14836
|
-
return o.value === defaultValue;
|
|
14837
|
-
});
|
|
14838
|
-
if (option) {
|
|
14839
|
-
setSelectedValue(option.value);
|
|
14840
|
-
setSelectedOption(option.option);
|
|
14841
|
-
}
|
|
14842
|
-
}
|
|
14843
|
-
}, [defaultValue]);
|
|
14844
14925
|
React.useEffect(function () {
|
|
14845
14926
|
if (selectedValue) {
|
|
14846
14927
|
onChange(selectedValue);
|
|
14847
14928
|
}
|
|
14848
14929
|
}, [selectedValue]);
|
|
14849
|
-
return React__default.createElement(Container$
|
|
14930
|
+
return React__default.createElement(Container$e, {
|
|
14850
14931
|
onMouseLeave: function onMouseLeave() {
|
|
14851
14932
|
return setOpened(false);
|
|
14852
14933
|
},
|
|
14853
14934
|
width: width
|
|
14854
|
-
}, React__default.createElement(DropdownSelect, {
|
|
14935
|
+
}, React__default.createElement(DropdownSelect$1, {
|
|
14855
14936
|
id: "dropdown-" + dropdownId,
|
|
14856
14937
|
className: "rpgui-dropdown-imp rpgui-dropdown-imp-header",
|
|
14857
14938
|
onPointerUp: function onPointerUp() {
|
|
@@ -14859,7 +14940,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
14859
14940
|
return !prev;
|
|
14860
14941
|
});
|
|
14861
14942
|
}
|
|
14862
|
-
}, React__default.createElement("label", null, "\u25BC"), " ", selectedOption), React__default.createElement(DropdownOptions, {
|
|
14943
|
+
}, React__default.createElement("label", null, "\u25BC"), " ", selectedOption), React__default.createElement(DropdownOptions$1, {
|
|
14863
14944
|
className: "rpgui-dropdown-imp",
|
|
14864
14945
|
opened: opened
|
|
14865
14946
|
}, options.map(function (option) {
|
|
@@ -14873,17 +14954,17 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
14873
14954
|
}, option.option);
|
|
14874
14955
|
})));
|
|
14875
14956
|
};
|
|
14876
|
-
var Container$
|
|
14957
|
+
var Container$e = /*#__PURE__*/styled__default.div.withConfig({
|
|
14877
14958
|
displayName: "Dropdown__Container",
|
|
14878
14959
|
componentId: "sc-8arn65-0"
|
|
14879
14960
|
})(["position:relative;width:", ";"], function (props) {
|
|
14880
14961
|
return props.width || '100%';
|
|
14881
14962
|
});
|
|
14882
|
-
var DropdownSelect = /*#__PURE__*/styled__default.p.withConfig({
|
|
14963
|
+
var DropdownSelect$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
14883
14964
|
displayName: "Dropdown__DropdownSelect",
|
|
14884
14965
|
componentId: "sc-8arn65-1"
|
|
14885
14966
|
})(["width:100%;box-sizing:border-box;label{display:inline-block;transform:translateY(-2px);}"]);
|
|
14886
|
-
var DropdownOptions = /*#__PURE__*/styled__default.ul.withConfig({
|
|
14967
|
+
var DropdownOptions$1 = /*#__PURE__*/styled__default.ul.withConfig({
|
|
14887
14968
|
displayName: "Dropdown__DropdownOptions",
|
|
14888
14969
|
componentId: "sc-8arn65-2"
|
|
14889
14970
|
})(["position:absolute;width:100%;max-height:300px;overflow-y:auto;display:", ";box-sizing:border-box;@media (max-width:768px){padding:8px 0;}"], function (props) {
|
|
@@ -14985,7 +15066,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
14985
15066
|
var centeredX = x - OFFSET;
|
|
14986
15067
|
var centeredY = y - OFFSET;
|
|
14987
15068
|
var stackInfo = onRenderStackInfo((_item$_id = item == null ? void 0 : item._id) != null ? _item$_id : '', (_item$stackQty = item == null ? void 0 : item.stackQty) != null ? _item$stackQty : 0);
|
|
14988
|
-
return React__default.createElement(Container$
|
|
15069
|
+
return React__default.createElement(Container$f, null, React__default.createElement(SpriteContainer, {
|
|
14989
15070
|
x: centeredX,
|
|
14990
15071
|
y: centeredY
|
|
14991
15072
|
}, React__default.createElement(SpriteFromAtlas, {
|
|
@@ -15003,7 +15084,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
15003
15084
|
}), stackInfo));
|
|
15004
15085
|
};
|
|
15005
15086
|
var pulse = "\n @keyframes pulse {\n 0%, 100% {\n transform: scale(1) rotate(-3deg);\n }\n 50% {\n transform: scale(0.95) rotate(-3deg);\n }\n }\n";
|
|
15006
|
-
var Container$
|
|
15087
|
+
var Container$f = /*#__PURE__*/styled__default.div.withConfig({
|
|
15007
15088
|
displayName: "DraggedItem__Container",
|
|
15008
15089
|
componentId: "sc-mlzzcp-0"
|
|
15009
15090
|
})(["position:relative;"]);
|
|
@@ -15396,7 +15477,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
15396
15477
|
var _useState2 = React.useState(false),
|
|
15397
15478
|
showGoNextIndicator = _useState2[0],
|
|
15398
15479
|
setShowGoNextIndicator = _useState2[1];
|
|
15399
|
-
return React__default.createElement(Container$
|
|
15480
|
+
return React__default.createElement(Container$g, null, React__default.createElement(DynamicText, {
|
|
15400
15481
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
15401
15482
|
onFinish: function onFinish() {
|
|
15402
15483
|
setShowGoNextIndicator(true);
|
|
@@ -15414,7 +15495,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
15414
15495
|
}
|
|
15415
15496
|
}));
|
|
15416
15497
|
};
|
|
15417
|
-
var Container$
|
|
15498
|
+
var Container$g = /*#__PURE__*/styled__default.div.withConfig({
|
|
15418
15499
|
displayName: "NPCDialogText__Container",
|
|
15419
15500
|
componentId: "sc-1cxkdh9-0"
|
|
15420
15501
|
})([""]);
|
|
@@ -15566,7 +15647,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
15566
15647
|
return null;
|
|
15567
15648
|
});
|
|
15568
15649
|
};
|
|
15569
|
-
return React__default.createElement(Container$
|
|
15650
|
+
return React__default.createElement(Container$h, null, React__default.createElement(QuestionContainer, null, React__default.createElement(DynamicText, {
|
|
15570
15651
|
text: currentQuestion.text,
|
|
15571
15652
|
onStart: function onStart() {
|
|
15572
15653
|
return setCanShowAnswers(false);
|
|
@@ -15576,7 +15657,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
15576
15657
|
}
|
|
15577
15658
|
})), canShowAnswers && React__default.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
15578
15659
|
};
|
|
15579
|
-
var Container$
|
|
15660
|
+
var Container$h = /*#__PURE__*/styled__default.div.withConfig({
|
|
15580
15661
|
displayName: "QuestionDialog__Container",
|
|
15581
15662
|
componentId: "sc-bxc5u0-0"
|
|
15582
15663
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -15636,7 +15717,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
15636
15717
|
}
|
|
15637
15718
|
})), type === exports.NPCDialogType.TextAndThumbnail && React__default.createElement(ThumbnailContainer, null, React__default.createElement(NPCThumbnail, {
|
|
15638
15719
|
src: imagePath || img$7
|
|
15639
|
-
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
15720
|
+
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$i, null, React__default.createElement(TextContainer$1, {
|
|
15640
15721
|
flex: type === exports.NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
15641
15722
|
}, React__default.createElement(NPCDialogText, {
|
|
15642
15723
|
type: type,
|
|
@@ -15650,7 +15731,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
15650
15731
|
src: imagePath || img$7
|
|
15651
15732
|
})))));
|
|
15652
15733
|
};
|
|
15653
|
-
var Container$
|
|
15734
|
+
var Container$i = /*#__PURE__*/styled__default.div.withConfig({
|
|
15654
15735
|
displayName: "NPCDialog__Container",
|
|
15655
15736
|
componentId: "sc-1b4aw74-0"
|
|
15656
15737
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -15706,7 +15787,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
15706
15787
|
type: exports.RPGUIContainerTypes.FramedGold,
|
|
15707
15788
|
width: '50%',
|
|
15708
15789
|
height: '180px'
|
|
15709
|
-
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
15790
|
+
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$j, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React__default.createElement(React__default.Fragment, null, React__default.createElement(TextContainer$2, {
|
|
15710
15791
|
flex: '70%'
|
|
15711
15792
|
}, React__default.createElement(NPCDialogText, {
|
|
15712
15793
|
onStartStep: function onStartStep() {
|
|
@@ -15748,7 +15829,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
15748
15829
|
src: img$6
|
|
15749
15830
|
}))), ")"));
|
|
15750
15831
|
};
|
|
15751
|
-
var Container$
|
|
15832
|
+
var Container$j = /*#__PURE__*/styled__default.div.withConfig({
|
|
15752
15833
|
displayName: "NPCMultiDialog__Container",
|
|
15753
15834
|
componentId: "sc-rvu5wg-0"
|
|
15754
15835
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -16176,7 +16257,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
16176
16257
|
}
|
|
16177
16258
|
return null;
|
|
16178
16259
|
};
|
|
16179
|
-
return React__default.createElement(Container$
|
|
16260
|
+
return React__default.createElement(Container$k, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
|
|
16180
16261
|
id: "shortcuts_list"
|
|
16181
16262
|
}, Array.from({
|
|
16182
16263
|
length: 12
|
|
@@ -16194,7 +16275,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
16194
16275
|
}, getContent(i));
|
|
16195
16276
|
})));
|
|
16196
16277
|
};
|
|
16197
|
-
var Container$
|
|
16278
|
+
var Container$k = /*#__PURE__*/styled__default.div.withConfig({
|
|
16198
16279
|
displayName: "ShortcutsSetter__Container",
|
|
16199
16280
|
componentId: "sc-xuouuf-0"
|
|
16200
16281
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -16686,7 +16767,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
16686
16767
|
onSelected = _ref.onSelected,
|
|
16687
16768
|
x = _ref.x,
|
|
16688
16769
|
y = _ref.y;
|
|
16689
|
-
return React__default.createElement(Container$
|
|
16770
|
+
return React__default.createElement(Container$l, {
|
|
16690
16771
|
x: x,
|
|
16691
16772
|
y: y
|
|
16692
16773
|
}, React__default.createElement("ul", {
|
|
@@ -16703,7 +16784,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
16703
16784
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
16704
16785
|
})));
|
|
16705
16786
|
};
|
|
16706
|
-
var Container$
|
|
16787
|
+
var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
16707
16788
|
displayName: "ListMenu__Container",
|
|
16708
16789
|
componentId: "sc-i9097t-0"
|
|
16709
16790
|
})(["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) {
|
|
@@ -16722,7 +16803,7 @@ var Pager = function Pager(_ref) {
|
|
|
16722
16803
|
itemsPerPage = _ref.itemsPerPage,
|
|
16723
16804
|
onPageChange = _ref.onPageChange;
|
|
16724
16805
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
16725
|
-
return React__default.createElement(Container$
|
|
16806
|
+
return React__default.createElement(Container$m, null, React__default.createElement("p", null, "Total items: ", totalItems), React__default.createElement(PagerContainer, null, React__default.createElement("button", {
|
|
16726
16807
|
disabled: currentPage === 1,
|
|
16727
16808
|
onPointerDown: function onPointerDown() {
|
|
16728
16809
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -16736,7 +16817,7 @@ var Pager = function Pager(_ref) {
|
|
|
16736
16817
|
}
|
|
16737
16818
|
}, '>')));
|
|
16738
16819
|
};
|
|
16739
|
-
var Container$
|
|
16820
|
+
var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
16740
16821
|
displayName: "Pager__Container",
|
|
16741
16822
|
componentId: "sc-1ekmf50-0"
|
|
16742
16823
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -16749,7 +16830,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
16749
16830
|
var onConfirm = _ref.onConfirm,
|
|
16750
16831
|
onClose = _ref.onClose,
|
|
16751
16832
|
message = _ref.message;
|
|
16752
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$
|
|
16833
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$n, {
|
|
16753
16834
|
onPointerDown: onClose
|
|
16754
16835
|
}, React__default.createElement(DraggableContainer, {
|
|
16755
16836
|
width: "auto",
|
|
@@ -16772,7 +16853,7 @@ var Background = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
16772
16853
|
displayName: "ConfirmModal__Background",
|
|
16773
16854
|
componentId: "sc-11qkyu1-0"
|
|
16774
16855
|
})(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
|
|
16775
|
-
var Container$
|
|
16856
|
+
var Container$n = /*#__PURE__*/styled__default.div.withConfig({
|
|
16776
16857
|
displayName: "ConfirmModal__Container",
|
|
16777
16858
|
componentId: "sc-11qkyu1-1"
|
|
16778
16859
|
})(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
|
|
@@ -17737,7 +17818,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
17737
17818
|
}
|
|
17738
17819
|
return value * 100 / max;
|
|
17739
17820
|
};
|
|
17740
|
-
return React__default.createElement(Container$
|
|
17821
|
+
return React__default.createElement(Container$o, {
|
|
17741
17822
|
className: "rpgui-progress",
|
|
17742
17823
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
17743
17824
|
"data-rpguitype": "progress",
|
|
@@ -17767,7 +17848,7 @@ var TextOverlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
17767
17848
|
displayName: "ProgressBar__TextOverlay",
|
|
17768
17849
|
componentId: "sc-qa6fzh-1"
|
|
17769
17850
|
})(["width:100%;position:relative;"]);
|
|
17770
|
-
var Container$
|
|
17851
|
+
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
17771
17852
|
displayName: "ProgressBar__Container",
|
|
17772
17853
|
componentId: "sc-qa6fzh-2"
|
|
17773
17854
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -17949,9 +18030,9 @@ var NoQuestContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
17949
18030
|
|
|
17950
18031
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
17951
18032
|
var children = _ref.children;
|
|
17952
|
-
return React__default.createElement(Container$
|
|
18033
|
+
return React__default.createElement(Container$p, null, children);
|
|
17953
18034
|
};
|
|
17954
|
-
var Container$
|
|
18035
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
17955
18036
|
displayName: "RPGUIScrollbar__Container",
|
|
17956
18037
|
componentId: "sc-p3msmb-0"
|
|
17957
18038
|
})([".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;}"]);
|
|
@@ -18129,7 +18210,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
18129
18210
|
bgColor = _ref$bgColor === void 0 ? 'red' : _ref$bgColor,
|
|
18130
18211
|
_ref$margin = _ref.margin,
|
|
18131
18212
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
18132
|
-
return React__default.createElement(Container$
|
|
18213
|
+
return React__default.createElement(Container$q, {
|
|
18133
18214
|
className: "simple-progress-bar"
|
|
18134
18215
|
}, React__default.createElement(ProgressBarContainer, {
|
|
18135
18216
|
margin: margin
|
|
@@ -18138,7 +18219,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
18138
18219
|
bgColor: bgColor
|
|
18139
18220
|
}))));
|
|
18140
18221
|
};
|
|
18141
|
-
var Container$
|
|
18222
|
+
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
18142
18223
|
displayName: "SimpleProgressBar__Container",
|
|
18143
18224
|
componentId: "sc-mbeil3-0"
|
|
18144
18225
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -18432,7 +18513,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
18432
18513
|
castingType = spell.castingType,
|
|
18433
18514
|
cooldown = spell.cooldown,
|
|
18434
18515
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
18435
|
-
return React__default.createElement(Container$
|
|
18516
|
+
return React__default.createElement(Container$r, null, React__default.createElement(Header$1, null, React__default.createElement("div", null, React__default.createElement(Title$9, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
|
|
18436
18517
|
className: "label"
|
|
18437
18518
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
18438
18519
|
className: "value"
|
|
@@ -18458,7 +18539,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
18458
18539
|
className: "value"
|
|
18459
18540
|
}, requiredItem))), React__default.createElement(Description$2, null, description));
|
|
18460
18541
|
};
|
|
18461
|
-
var Container$
|
|
18542
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
18462
18543
|
displayName: "SpellInfo__Container",
|
|
18463
18544
|
componentId: "sc-4hbw3q-0"
|
|
18464
18545
|
})(["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);
|
|
@@ -18512,7 +18593,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
18512
18593
|
var _ref$current;
|
|
18513
18594
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
18514
18595
|
};
|
|
18515
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
18596
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$s, {
|
|
18516
18597
|
ref: ref,
|
|
18517
18598
|
onTouchEnd: function onTouchEnd() {
|
|
18518
18599
|
handleFadeOut();
|
|
@@ -18537,7 +18618,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
18537
18618
|
}, option.text);
|
|
18538
18619
|
}))));
|
|
18539
18620
|
};
|
|
18540
|
-
var Container$
|
|
18621
|
+
var Container$s = /*#__PURE__*/styled__default.div.withConfig({
|
|
18541
18622
|
displayName: "MobileSpellTooltip__Container",
|
|
18542
18623
|
componentId: "sc-6p7uvr-0"
|
|
18543
18624
|
})(["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;}"]);
|
|
@@ -18578,13 +18659,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
18578
18659
|
}
|
|
18579
18660
|
return;
|
|
18580
18661
|
}, []);
|
|
18581
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
18662
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$t, {
|
|
18582
18663
|
ref: ref
|
|
18583
18664
|
}, React__default.createElement(SpellInfoDisplay, {
|
|
18584
18665
|
spell: spell
|
|
18585
18666
|
})));
|
|
18586
18667
|
};
|
|
18587
|
-
var Container$
|
|
18668
|
+
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
18588
18669
|
displayName: "SpellTooltip__Container",
|
|
18589
18670
|
componentId: "sc-1go0gwg-0"
|
|
18590
18671
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -18644,7 +18725,7 @@ var Spell = function Spell(_ref) {
|
|
|
18644
18725
|
var IMAGE_SCALE = 2;
|
|
18645
18726
|
return React__default.createElement(SpellInfoWrapper, {
|
|
18646
18727
|
spell: spell
|
|
18647
|
-
}, React__default.createElement(Container$
|
|
18728
|
+
}, React__default.createElement(Container$u, {
|
|
18648
18729
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
18649
18730
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
18650
18731
|
className: "spell"
|
|
@@ -18663,7 +18744,7 @@ var Spell = function Spell(_ref) {
|
|
|
18663
18744
|
className: "mana"
|
|
18664
18745
|
}, manaCost))));
|
|
18665
18746
|
};
|
|
18666
|
-
var Container$
|
|
18747
|
+
var Container$u = /*#__PURE__*/styled__default.button.withConfig({
|
|
18667
18748
|
displayName: "Spell__Container",
|
|
18668
18749
|
componentId: "sc-j96fa2-0"
|
|
18669
18750
|
})(["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) {
|
|
@@ -18742,7 +18823,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
18742
18823
|
height: "inherit",
|
|
18743
18824
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
18744
18825
|
scale: scale
|
|
18745
|
-
}, React__default.createElement(Container$
|
|
18826
|
+
}, React__default.createElement(Container$v, null, React__default.createElement(Title$b, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
18746
18827
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
18747
18828
|
settingShortcutIndex: settingShortcutIndex,
|
|
18748
18829
|
shortcuts: shortcuts,
|
|
@@ -18778,7 +18859,7 @@ var Title$b = /*#__PURE__*/styled__default.h1.withConfig({
|
|
|
18778
18859
|
displayName: "Spellbook__Title",
|
|
18779
18860
|
componentId: "sc-r02nfq-0"
|
|
18780
18861
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
18781
|
-
var Container$
|
|
18862
|
+
var Container$v = /*#__PURE__*/styled__default.div.withConfig({
|
|
18782
18863
|
displayName: "Spellbook__Container",
|
|
18783
18864
|
componentId: "sc-r02nfq-1"
|
|
18784
18865
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -19124,11 +19205,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
19124
19205
|
var _ref$maxLines = _ref.maxLines,
|
|
19125
19206
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
19126
19207
|
children = _ref.children;
|
|
19127
|
-
return React__default.createElement(Container$
|
|
19208
|
+
return React__default.createElement(Container$w, {
|
|
19128
19209
|
maxLines: maxLines
|
|
19129
19210
|
}, children);
|
|
19130
19211
|
};
|
|
19131
|
-
var Container$
|
|
19212
|
+
var Container$w = /*#__PURE__*/styled__default.div.withConfig({
|
|
19132
19213
|
displayName: "Truncate__Container",
|
|
19133
19214
|
componentId: "sc-6x00qb-0"
|
|
19134
19215
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -19221,6 +19302,7 @@ var ButtonWrapper$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
19221
19302
|
componentId: "sc-gptoxp-5"
|
|
19222
19303
|
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
|
|
19223
19304
|
|
|
19305
|
+
exports.AsyncDropdown = AsyncDropdown;
|
|
19224
19306
|
exports.Button = Button;
|
|
19225
19307
|
exports.CharacterSelection = CharacterSelection;
|
|
19226
19308
|
exports.Chat = Chat;
|