@rpg-engine/long-bow 0.7.96 → 0.7.98
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/DPad/JoystickDPad.d.ts +21 -0
- package/dist/components/InformationCenter/InformationCenter.d.ts +29 -0
- package/dist/components/InformationCenter/InformationCenterCell.d.ts +14 -0
- package/dist/components/InformationCenter/InformationCenterTabView.d.ts +19 -0
- package/dist/components/InformationCenter/InformationCenterTypes.d.ts +79 -0
- package/dist/components/InformationCenter/sections/bestiary/BestiarySection.d.ts +12 -0
- package/dist/components/InformationCenter/sections/bestiary/InformationCenterNPCDetails.d.ts +12 -0
- package/dist/components/InformationCenter/sections/bestiary/InformationCenterNPCTooltip.d.ts +9 -0
- package/dist/components/InformationCenter/sections/faq/FaqSection.d.ts +8 -0
- package/dist/components/InformationCenter/sections/items/InformationCenterItemDetails.d.ts +11 -0
- package/dist/components/InformationCenter/sections/items/InformationCenterItemTooltip.d.ts +7 -0
- package/dist/components/InformationCenter/sections/items/ItemsSection.d.ts +11 -0
- package/dist/components/InformationCenter/sections/tutorials/TutorialsSection.d.ts +8 -0
- package/dist/components/InformationCenter/shared/BaseInformationDetails.d.ts +10 -0
- package/dist/components/shared/BaseTooltip.d.ts +12 -0
- package/dist/components/shared/Collapsible/Collapsible.d.ts +9 -0
- package/dist/components/shared/Portal/Portal.d.ts +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +250 -12
- 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 +251 -14
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/mocks/informationCenter.mocks.d.ts +6 -0
- package/dist/stories/Features/craftbook/CraftBook.stories.d.ts +2 -0
- package/dist/stories/UI/info/InformationCenter.stories.d.ts +7 -0
- package/dist/stories/UI/joystick/JoystickDPad.stories.d.ts +6 -0
- package/package.json +1 -1
- package/src/components/CraftBook/CraftBook.tsx +70 -31
- package/src/components/CraftBook/CraftingRecipe.tsx +2 -1
- package/src/components/CraftBook/CraftingTooltip.tsx +4 -3
- package/src/components/DPad/JoystickDPad.tsx +318 -0
- package/src/components/InformationCenter/InformationCenter.tsx +155 -0
- package/src/components/InformationCenter/InformationCenterCell.tsx +96 -0
- package/src/components/InformationCenter/InformationCenterTabView.tsx +121 -0
- package/src/components/InformationCenter/InformationCenterTypes.ts +87 -0
- package/src/components/InformationCenter/sections/bestiary/BestiarySection.tsx +170 -0
- package/src/components/InformationCenter/sections/bestiary/InformationCenterNPCDetails.tsx +366 -0
- package/src/components/InformationCenter/sections/bestiary/InformationCenterNPCTooltip.tsx +204 -0
- package/src/components/InformationCenter/sections/faq/FaqSection.tsx +71 -0
- package/src/components/InformationCenter/sections/items/InformationCenterItemDetails.tsx +323 -0
- package/src/components/InformationCenter/sections/items/InformationCenterItemTooltip.tsx +88 -0
- package/src/components/InformationCenter/sections/items/ItemsSection.tsx +180 -0
- package/src/components/InformationCenter/sections/tutorials/TutorialsSection.tsx +144 -0
- package/src/components/InformationCenter/shared/BaseInformationDetails.tsx +162 -0
- package/src/components/InternalTabs/InternalTabs.tsx +1 -3
- package/src/components/shared/BaseTooltip.tsx +60 -0
- package/src/components/shared/Collapsible/Collapsible.tsx +70 -0
- package/src/components/shared/Portal/Portal.tsx +19 -0
- package/src/index.tsx +1 -0
- package/src/mocks/informationCenter.mocks.ts +562 -0
- package/src/stories/Features/craftbook/CraftBook.stories.tsx +15 -1
- package/src/stories/UI/info/InformationCenter.stories.tsx +58 -0
- package/src/stories/UI/joystick/JoystickDPad.stories.tsx +52 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import { v4 } from 'uuid';
|
|
|
5
5
|
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemRarities, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemSubType, isMobile, ItemSlotType, isMobileOrTablet, CharacterClass, QuestStatus, getSPForLevel, getXPForLevel, PeriodOfDay, UserAccountTypes } from '@rpg-engine/shared';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
7
|
import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
|
|
8
|
-
import { FaTimes, FaSearch, FaThumbtack, FaChevronLeft, FaChevronRight } from 'react-icons/fa';
|
|
8
|
+
import { FaTimes, FaSearch, FaThumbtack, FaBoxOpen, FaChevronLeft, FaChevronRight } from 'react-icons/fa';
|
|
9
9
|
import { RxMagnifyingGlass, RxCross2 } from 'react-icons/rx';
|
|
10
10
|
import { IoMdContract, IoMdExpand } from 'react-icons/io';
|
|
11
11
|
import Draggable from 'react-draggable';
|
|
@@ -28618,14 +28618,14 @@ var TooltipContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
28618
28618
|
var MinCraftingRequirementsText = /*#__PURE__*/styled.div.withConfig({
|
|
28619
28619
|
displayName: "CraftingTooltip__MinCraftingRequirementsText",
|
|
28620
28620
|
componentId: "sc-iqzgok-1"
|
|
28621
|
-
})(["font-size:0.55rem;margin:0;margin-bottom:12px;color:", " !important;"], function (_ref) {
|
|
28621
|
+
})(["font-size:0.55rem;margin:0;margin-bottom:12px;margin-left:0.5rem;color:", " !important;"], function (_ref) {
|
|
28622
28622
|
var levelIsOk = _ref.levelIsOk;
|
|
28623
28623
|
return levelIsOk ? uiColors.lightGreen : uiColors.lightGray;
|
|
28624
28624
|
});
|
|
28625
|
-
var
|
|
28626
|
-
displayName: "
|
|
28625
|
+
var TooltipTitle = /*#__PURE__*/styled.div.withConfig({
|
|
28626
|
+
displayName: "CraftingTooltip__TooltipTitle",
|
|
28627
28627
|
componentId: "sc-iqzgok-2"
|
|
28628
|
-
})(["color:", ";font-size:0.6rem;margin-bottom:12px;
|
|
28628
|
+
})(["color:", ";font-size:0.6rem;margin-bottom:12px;letter-spacing:0.5px;"], uiColors.yellow);
|
|
28629
28629
|
var Recipe = /*#__PURE__*/styled.div.withConfig({
|
|
28630
28630
|
displayName: "CraftingTooltip__Recipe",
|
|
28631
28631
|
componentId: "sc-iqzgok-3"
|
|
@@ -28651,9 +28651,9 @@ var CraftingTooltip = function CraftingTooltip(_ref3) {
|
|
|
28651
28651
|
return React.createElement(TooltipContainer, {
|
|
28652
28652
|
x: x,
|
|
28653
28653
|
y: y
|
|
28654
|
-
}, React.createElement(MinCraftingRequirementsText, {
|
|
28654
|
+
}, React.createElement(TooltipTitle, null, "Skill Requirements"), React.createElement(MinCraftingRequirementsText, {
|
|
28655
28655
|
levelIsOk: levelIsOk
|
|
28656
|
-
}, modifyString("" + ((_recipe$minCraftingRe3 = recipe == null ? void 0 : (_recipe$minCraftingRe4 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe4[0]) != null ? _recipe$minCraftingRe3 : '')), " lvl", ' ', (_recipe$minCraftingRe5 = recipe == null ? void 0 : (_recipe$minCraftingRe6 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe6[1]) != null ? _recipe$minCraftingRe5 : 0, " (", levelInSkill, ")"), React.createElement(
|
|
28656
|
+
}, modifyString("" + ((_recipe$minCraftingRe3 = recipe == null ? void 0 : (_recipe$minCraftingRe4 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe4[0]) != null ? _recipe$minCraftingRe3 : '')), " lvl", ' ', (_recipe$minCraftingRe5 = recipe == null ? void 0 : (_recipe$minCraftingRe6 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe6[1]) != null ? _recipe$minCraftingRe5 : 0, " (", levelInSkill, ")"), React.createElement(TooltipTitle, null, "Ingredients"), recipe.ingredients.map(function (ingredient, index) {
|
|
28657
28657
|
var itemQtyInInventory = !inventory ? 0 : countItemFromInventory(ingredient.key, inventory);
|
|
28658
28658
|
var isQuantityOk = ingredient.qty <= itemQtyInInventory;
|
|
28659
28659
|
return React.createElement(Recipe, {
|
|
@@ -28684,7 +28684,7 @@ var MainContent = /*#__PURE__*/styled.div.withConfig({
|
|
|
28684
28684
|
var ItemHeader = /*#__PURE__*/styled.div.withConfig({
|
|
28685
28685
|
displayName: "CraftingRecipe__ItemHeader",
|
|
28686
28686
|
componentId: "sc-1fe04wz-3"
|
|
28687
|
-
})(["display:flex;align-items:center;gap:8px;margin-bottom:4px;label{font-size:0.
|
|
28687
|
+
})(["display:flex;align-items:center;gap:8px;margin-bottom:4px;label{font-size:0.8rem;font-weight:bold;display:flex;align-items:center;padding-right:1rem;}"]);
|
|
28688
28688
|
var CraftingRecipe = function CraftingRecipe(_ref) {
|
|
28689
28689
|
var atlasIMG = _ref.atlasIMG,
|
|
28690
28690
|
atlasJSON = _ref.atlasJSON,
|
|
@@ -28935,7 +28935,7 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
28935
28935
|
return setSearchTerm(e.target.value);
|
|
28936
28936
|
},
|
|
28937
28937
|
autoFocus: true
|
|
28938
|
-
})), React.createElement(ContentContainer, null, React.createElement(RadioInputScroller, {
|
|
28938
|
+
})), React.createElement(ContentContainer, null, paginatedItems.length > 0 ? React.createElement(RadioInputScroller, {
|
|
28939
28939
|
className: "inputRadioCraftBook"
|
|
28940
28940
|
}, paginatedItems == null ? void 0 : paginatedItems.map(function (item) {
|
|
28941
28941
|
return React.createElement(CraftingRecipeWrapper, {
|
|
@@ -28960,7 +28960,9 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
28960
28960
|
inventory: inventory,
|
|
28961
28961
|
skills: skills
|
|
28962
28962
|
}));
|
|
28963
|
-
}))
|
|
28963
|
+
})) : React.createElement(EmptyState, null, React.createElement(FaBoxOpen, {
|
|
28964
|
+
size: 48
|
|
28965
|
+
}), React.createElement("p", null, "No craftable items found"))), totalPages > 1 && React.createElement(PaginationContainer, null, React.createElement(PaginationButton, {
|
|
28964
28966
|
onClick: function onClick() {
|
|
28965
28967
|
return setCurrentPage(function (prev) {
|
|
28966
28968
|
return Math.max(1, prev - 1);
|
|
@@ -29029,11 +29031,11 @@ var SearchContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
29029
29031
|
var ContentContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29030
29032
|
displayName: "CraftBook__ContentContainer",
|
|
29031
29033
|
componentId: "sc-19q95ue-7"
|
|
29032
|
-
})(["flex:1;
|
|
29034
|
+
})(["flex:1;display:flex;flex-direction:column;padding:16px;padding-right:0;padding-bottom:0;width:100%;position:relative;min-height:300px;overflow:hidden;"]);
|
|
29033
29035
|
var RadioInputScroller = /*#__PURE__*/styled.div.withConfig({
|
|
29034
29036
|
displayName: "CraftBook__RadioInputScroller",
|
|
29035
29037
|
componentId: "sc-19q95ue-8"
|
|
29036
|
-
})(["height:100%;overflow-y:
|
|
29038
|
+
})(["height:100%;min-height:300px;overflow-y:auto;overflow-x:hidden;padding:8px 16px;padding-right:24px;width:100%;box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-content:start;@media (max-width:", "){grid-template-columns:1fr;}"], MOBILE_WIDTH);
|
|
29037
29039
|
var CraftingRecipeWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29038
29040
|
displayName: "CraftBook__CraftingRecipeWrapper",
|
|
29039
29041
|
componentId: "sc-19q95ue-9"
|
|
@@ -29070,6 +29072,241 @@ var PageInfo = /*#__PURE__*/styled.div.withConfig({
|
|
|
29070
29072
|
displayName: "CraftBook__PageInfo",
|
|
29071
29073
|
componentId: "sc-19q95ue-14"
|
|
29072
29074
|
})(["color:", ";font-size:0.8rem;font-family:'Press Start 2P',cursive;"], uiColors.lightGray);
|
|
29075
|
+
var EmptyState = /*#__PURE__*/styled.div.withConfig({
|
|
29076
|
+
displayName: "CraftBook__EmptyState",
|
|
29077
|
+
componentId: "sc-19q95ue-15"
|
|
29078
|
+
})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:", ";width:100%;padding:2rem;svg{font-size:3rem;margin-bottom:1rem;opacity:0.7;}p{font-family:'Press Start 2P',cursive;font-size:0.9rem;margin:0;}"], uiColors.lightGray);
|
|
29079
|
+
|
|
29080
|
+
var JoystickDPad = function JoystickDPad(_ref) {
|
|
29081
|
+
var onDirectionPress = _ref.onDirectionPress,
|
|
29082
|
+
_ref$disabled = _ref.disabled,
|
|
29083
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
29084
|
+
_ref$options = _ref.options,
|
|
29085
|
+
options = _ref$options === void 0 ? {} : _ref$options;
|
|
29086
|
+
var _options$opacity = options.opacity,
|
|
29087
|
+
opacity = _options$opacity === void 0 ? 1 : _options$opacity,
|
|
29088
|
+
_options$showBackgrou = options.showBackground,
|
|
29089
|
+
showBackground = _options$showBackgrou === void 0 ? false : _options$showBackgrou,
|
|
29090
|
+
_options$size = options.size,
|
|
29091
|
+
size = _options$size === void 0 ? 100 : _options$size,
|
|
29092
|
+
_options$pressInterva = options.pressInterval,
|
|
29093
|
+
pressInterval = _options$pressInterva === void 0 ? 500 : _options$pressInterva;
|
|
29094
|
+
var _useState = useState(new Set()),
|
|
29095
|
+
pressedButtons = _useState[0],
|
|
29096
|
+
setPressedButtons = _useState[1];
|
|
29097
|
+
var intervalRef = useRef(null);
|
|
29098
|
+
var activeDirectionRef = useRef(null);
|
|
29099
|
+
var clearPressInterval = useCallback(function () {
|
|
29100
|
+
if (intervalRef.current) {
|
|
29101
|
+
window.clearInterval(intervalRef.current);
|
|
29102
|
+
intervalRef.current = null;
|
|
29103
|
+
}
|
|
29104
|
+
activeDirectionRef.current = null;
|
|
29105
|
+
}, []);
|
|
29106
|
+
var handleDirectionPress = useCallback(function (direction) {
|
|
29107
|
+
if (disabled) return;
|
|
29108
|
+
// Clear any existing interval
|
|
29109
|
+
clearPressInterval();
|
|
29110
|
+
// Set the active direction
|
|
29111
|
+
activeDirectionRef.current = direction;
|
|
29112
|
+
setPressedButtons(function (prev) {
|
|
29113
|
+
return new Set(prev).add(direction);
|
|
29114
|
+
});
|
|
29115
|
+
// Trigger first press immediately
|
|
29116
|
+
onDirectionPress == null ? void 0 : onDirectionPress(direction);
|
|
29117
|
+
// Set up the interval for continuous press
|
|
29118
|
+
intervalRef.current = window.setInterval(function () {
|
|
29119
|
+
if (activeDirectionRef.current === direction) {
|
|
29120
|
+
onDirectionPress == null ? void 0 : onDirectionPress(direction);
|
|
29121
|
+
}
|
|
29122
|
+
}, pressInterval);
|
|
29123
|
+
}, [disabled, onDirectionPress, pressInterval, clearPressInterval]);
|
|
29124
|
+
var handleDirectionRelease = useCallback(function (direction) {
|
|
29125
|
+
setPressedButtons(function (prev) {
|
|
29126
|
+
var next = new Set(prev);
|
|
29127
|
+
next["delete"](direction);
|
|
29128
|
+
return next;
|
|
29129
|
+
});
|
|
29130
|
+
if (activeDirectionRef.current === direction) {
|
|
29131
|
+
clearPressInterval();
|
|
29132
|
+
}
|
|
29133
|
+
}, [clearPressInterval]);
|
|
29134
|
+
// Cleanup on unmount
|
|
29135
|
+
useEffect(function () {
|
|
29136
|
+
return function () {
|
|
29137
|
+
clearPressInterval();
|
|
29138
|
+
};
|
|
29139
|
+
}, [clearPressInterval]);
|
|
29140
|
+
var preventDefault = function preventDefault(e) {
|
|
29141
|
+
e.preventDefault();
|
|
29142
|
+
e.stopPropagation();
|
|
29143
|
+
};
|
|
29144
|
+
return React.createElement(DPadContainer, {
|
|
29145
|
+
opacity: opacity,
|
|
29146
|
+
showBackground: showBackground,
|
|
29147
|
+
size: size,
|
|
29148
|
+
disabled: disabled,
|
|
29149
|
+
onContextMenu: preventDefault
|
|
29150
|
+
}, React.createElement(DPadButton, {
|
|
29151
|
+
className: "up",
|
|
29152
|
+
onMouseDown: function onMouseDown() {
|
|
29153
|
+
return handleDirectionPress('up');
|
|
29154
|
+
},
|
|
29155
|
+
onMouseUp: function onMouseUp() {
|
|
29156
|
+
return handleDirectionRelease('up');
|
|
29157
|
+
},
|
|
29158
|
+
onMouseLeave: function onMouseLeave() {
|
|
29159
|
+
return handleDirectionRelease('up');
|
|
29160
|
+
},
|
|
29161
|
+
onTouchStart: function onTouchStart() {
|
|
29162
|
+
return handleDirectionPress('up');
|
|
29163
|
+
},
|
|
29164
|
+
onTouchEnd: function onTouchEnd() {
|
|
29165
|
+
return handleDirectionRelease('up');
|
|
29166
|
+
},
|
|
29167
|
+
onContextMenu: preventDefault,
|
|
29168
|
+
size: size,
|
|
29169
|
+
isPressed: pressedButtons.has('up'),
|
|
29170
|
+
disabled: disabled
|
|
29171
|
+
}), React.createElement(DPadButton, {
|
|
29172
|
+
className: "right",
|
|
29173
|
+
onMouseDown: function onMouseDown() {
|
|
29174
|
+
return handleDirectionPress('right');
|
|
29175
|
+
},
|
|
29176
|
+
onMouseUp: function onMouseUp() {
|
|
29177
|
+
return handleDirectionRelease('right');
|
|
29178
|
+
},
|
|
29179
|
+
onMouseLeave: function onMouseLeave() {
|
|
29180
|
+
return handleDirectionRelease('right');
|
|
29181
|
+
},
|
|
29182
|
+
onTouchStart: function onTouchStart() {
|
|
29183
|
+
return handleDirectionPress('right');
|
|
29184
|
+
},
|
|
29185
|
+
onTouchEnd: function onTouchEnd() {
|
|
29186
|
+
return handleDirectionRelease('right');
|
|
29187
|
+
},
|
|
29188
|
+
onContextMenu: preventDefault,
|
|
29189
|
+
size: size,
|
|
29190
|
+
isPressed: pressedButtons.has('right'),
|
|
29191
|
+
disabled: disabled
|
|
29192
|
+
}), React.createElement(DPadButton, {
|
|
29193
|
+
className: "down",
|
|
29194
|
+
onMouseDown: function onMouseDown() {
|
|
29195
|
+
return handleDirectionPress('down');
|
|
29196
|
+
},
|
|
29197
|
+
onMouseUp: function onMouseUp() {
|
|
29198
|
+
return handleDirectionRelease('down');
|
|
29199
|
+
},
|
|
29200
|
+
onMouseLeave: function onMouseLeave() {
|
|
29201
|
+
return handleDirectionRelease('down');
|
|
29202
|
+
},
|
|
29203
|
+
onTouchStart: function onTouchStart() {
|
|
29204
|
+
return handleDirectionPress('down');
|
|
29205
|
+
},
|
|
29206
|
+
onTouchEnd: function onTouchEnd() {
|
|
29207
|
+
return handleDirectionRelease('down');
|
|
29208
|
+
},
|
|
29209
|
+
onContextMenu: preventDefault,
|
|
29210
|
+
size: size,
|
|
29211
|
+
isPressed: pressedButtons.has('down'),
|
|
29212
|
+
disabled: disabled
|
|
29213
|
+
}), React.createElement(DPadButton, {
|
|
29214
|
+
className: "left",
|
|
29215
|
+
onMouseDown: function onMouseDown() {
|
|
29216
|
+
return handleDirectionPress('left');
|
|
29217
|
+
},
|
|
29218
|
+
onMouseUp: function onMouseUp() {
|
|
29219
|
+
return handleDirectionRelease('left');
|
|
29220
|
+
},
|
|
29221
|
+
onMouseLeave: function onMouseLeave() {
|
|
29222
|
+
return handleDirectionRelease('left');
|
|
29223
|
+
},
|
|
29224
|
+
onTouchStart: function onTouchStart() {
|
|
29225
|
+
return handleDirectionPress('left');
|
|
29226
|
+
},
|
|
29227
|
+
onTouchEnd: function onTouchEnd() {
|
|
29228
|
+
return handleDirectionRelease('left');
|
|
29229
|
+
},
|
|
29230
|
+
onContextMenu: preventDefault,
|
|
29231
|
+
size: size,
|
|
29232
|
+
isPressed: pressedButtons.has('left'),
|
|
29233
|
+
disabled: disabled
|
|
29234
|
+
}), React.createElement(DPadCenter, {
|
|
29235
|
+
size: size,
|
|
29236
|
+
disabled: disabled,
|
|
29237
|
+
onContextMenu: preventDefault
|
|
29238
|
+
}));
|
|
29239
|
+
};
|
|
29240
|
+
var DPadContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29241
|
+
displayName: "JoystickDPad__DPadContainer",
|
|
29242
|
+
componentId: "sc-q1e3gk-0"
|
|
29243
|
+
})(["width:", "px;height:", "px;position:relative;background:", ";border-radius:50%;box-shadow:", ";opacity:", ";user-select:none;cursor:", ";transition:opacity 0.2s ease;touch-action:none;-webkit-tap-highlight-color:transparent;"], function (props) {
|
|
29244
|
+
var _props$size;
|
|
29245
|
+
return (_props$size = props.size) != null ? _props$size : 100;
|
|
29246
|
+
}, function (props) {
|
|
29247
|
+
var _props$size2;
|
|
29248
|
+
return (_props$size2 = props.size) != null ? _props$size2 : 100;
|
|
29249
|
+
}, function (props) {
|
|
29250
|
+
return props.showBackground ? '#b8b8b8' : 'transparent';
|
|
29251
|
+
}, function (props) {
|
|
29252
|
+
return props.showBackground ? 'inset 0 0 10px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2)' : 'none';
|
|
29253
|
+
}, function (props) {
|
|
29254
|
+
var _props$opacity;
|
|
29255
|
+
return props.disabled ? 0.5 : (_props$opacity = props.opacity) != null ? _props$opacity : 1;
|
|
29256
|
+
}, function (props) {
|
|
29257
|
+
return props.disabled ? 'not-allowed' : 'default';
|
|
29258
|
+
});
|
|
29259
|
+
var DPadButton = /*#__PURE__*/styled.div.withConfig({
|
|
29260
|
+
displayName: "JoystickDPad__DPadButton",
|
|
29261
|
+
componentId: "sc-q1e3gk-1"
|
|
29262
|
+
})(["position:absolute;background:", ";box-shadow:", ";cursor:", ";user-select:none;transition:all 0.08s cubic-bezier(0.4,0,0.2,1);touch-action:none;-webkit-tap-highlight-color:transparent;transform-origin:center center;&:hover:not(:active){@media (hover:hover){filter:", ";}}&::after{content:'';position:absolute;width:0;height:0;border:", "px solid transparent;pointer-events:none;opacity:", ";transition:all 0.08s cubic-bezier(0.4,0,0.2,1);}&.up,&.down{width:", "px;height:", "px;left:50%;transform:translateX(-50%) scale(", ");}&.left,&.right{width:", "px;height:", "px;top:50%;transform:translateY(-50%) scale(", ");}&.up{top:0;border-radius:5px 5px 0 0;&::after{border-bottom-color:#2a2a2a;top:45%;left:50%;transform:translate(-50%,-50%);}}&.down{bottom:0;border-radius:0 0 5px 5px;&::after{border-top-color:#2a2a2a;bottom:45%;left:50%;transform:translate(-50%,50%);}}&.left{left:0;border-radius:5px 0 0 5px;&::after{border-right-color:#2a2a2a;left:45%;top:50%;transform:translate(-50%,-50%);}}&.right{right:0;border-radius:0 5px 5px 0;&::after{border-left-color:#2a2a2a;right:45%;top:50%;transform:translate(50%,-50%);}}"], function (props) {
|
|
29263
|
+
return props.isPressed ? '#363636' : '#424242';
|
|
29264
|
+
}, function (props) {
|
|
29265
|
+
return props.isPressed ? 'inset 0 0 12px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.3)' : 'inset 0 0 5px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.2)';
|
|
29266
|
+
}, function (props) {
|
|
29267
|
+
return props.disabled ? 'not-allowed' : 'pointer';
|
|
29268
|
+
}, function (props) {
|
|
29269
|
+
return !props.disabled && !props.isPressed ? 'brightness(1.1)' : 'none';
|
|
29270
|
+
}, function (props) {
|
|
29271
|
+
var _props$size3;
|
|
29272
|
+
return ((_props$size3 = props.size) != null ? _props$size3 : 100) * 0.05;
|
|
29273
|
+
}, function (props) {
|
|
29274
|
+
return props.isPressed ? 0.7 : 1;
|
|
29275
|
+
}, function (props) {
|
|
29276
|
+
var _props$size4;
|
|
29277
|
+
return ((_props$size4 = props.size) != null ? _props$size4 : 100) * 0.3;
|
|
29278
|
+
}, function (props) {
|
|
29279
|
+
var _props$size5;
|
|
29280
|
+
return ((_props$size5 = props.size) != null ? _props$size5 : 100) * 0.4;
|
|
29281
|
+
}, function (props) {
|
|
29282
|
+
return props.isPressed ? 0.95 : 1;
|
|
29283
|
+
}, function (props) {
|
|
29284
|
+
var _props$size6;
|
|
29285
|
+
return ((_props$size6 = props.size) != null ? _props$size6 : 100) * 0.4;
|
|
29286
|
+
}, function (props) {
|
|
29287
|
+
var _props$size7;
|
|
29288
|
+
return ((_props$size7 = props.size) != null ? _props$size7 : 100) * 0.3;
|
|
29289
|
+
}, function (props) {
|
|
29290
|
+
return props.isPressed ? 0.95 : 1;
|
|
29291
|
+
});
|
|
29292
|
+
var DPadCenter = /*#__PURE__*/styled.div.withConfig({
|
|
29293
|
+
displayName: "JoystickDPad__DPadCenter",
|
|
29294
|
+
componentId: "sc-q1e3gk-2"
|
|
29295
|
+
})(["position:absolute;width:", "px;height:", "px;background:#424242;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:inset 0 0 8px rgba(0,0,0,0.6);border-radius:50%;user-select:none;cursor:", ";touch-action:none;-webkit-tap-highlight-color:transparent;&::after{content:'';position:absolute;width:", "px;height:", "px;background:#2a2a2a;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;box-shadow:inset 0 0 2px rgba(0,0,0,0.8);}"], function (props) {
|
|
29296
|
+
var _props$size8;
|
|
29297
|
+
return ((_props$size8 = props.size) != null ? _props$size8 : 100) * 0.3;
|
|
29298
|
+
}, function (props) {
|
|
29299
|
+
var _props$size9;
|
|
29300
|
+
return ((_props$size9 = props.size) != null ? _props$size9 : 100) * 0.3;
|
|
29301
|
+
}, function (props) {
|
|
29302
|
+
return props.disabled ? 'not-allowed' : 'default';
|
|
29303
|
+
}, function (props) {
|
|
29304
|
+
var _props$size10;
|
|
29305
|
+
return ((_props$size10 = props.size) != null ? _props$size10 : 100) * 0.08;
|
|
29306
|
+
}, function (props) {
|
|
29307
|
+
var _props$size11;
|
|
29308
|
+
return ((_props$size11 = props.size) != null ? _props$size11 : 100) * 0.08;
|
|
29309
|
+
});
|
|
29073
29310
|
|
|
29074
29311
|
var DropdownSelectorContainer = function DropdownSelectorContainer(_ref) {
|
|
29075
29312
|
var title = _ref.title,
|
|
@@ -30450,7 +30687,7 @@ var TabButton = /*#__PURE__*/styled.button.withConfig({
|
|
|
30450
30687
|
var ContentWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
30451
30688
|
displayName: "InternalTabs__ContentWrapper",
|
|
30452
30689
|
componentId: "sc-ldufv0-3"
|
|
30453
|
-
})(["
|
|
30690
|
+
})([""]);
|
|
30454
30691
|
|
|
30455
30692
|
var SlotsContainer = function SlotsContainer(_ref) {
|
|
30456
30693
|
var children = _ref.children,
|
|
@@ -34302,5 +34539,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
34302
34539
|
componentId: "sc-7tgzv2-6"
|
|
34303
34540
|
})(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
|
|
34304
34541
|
|
|
34305
|
-
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemQuantitySelectorModal, ItemSelector, ItemSlot, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
|
|
34542
|
+
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
|
|
34306
34543
|
//# sourceMappingURL=long-bow.esm.js.map
|