@rpg-engine/long-bow 0.7.27 → 0.7.29
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/{TableTab/TableTab.d.ts → InternalTabs/InternalTabs.d.ts} +1 -1
- package/dist/components/Multitab/TabsContainer.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/long-bow.cjs.development.js +66 -66
- 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 +66 -66
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/{TableTab.stories.d.ts → InternalTabs.stories.d.ts} +1 -1
- package/package.json +1 -1
- package/src/components/Friends/SearchFriend.tsx +2 -2
- package/src/components/{TableTab/TableTab.tsx → InternalTabs/InternalTabs.tsx} +1 -1
- package/src/components/Multitab/TabsContainer.tsx +1 -1
- package/src/index.tsx +1 -1
- package/src/stories/{TableTab.stories.tsx → InternalTabs.stories.tsx} +7 -4
package/dist/long-bow.esm.js
CHANGED
|
@@ -29113,7 +29113,7 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
29113
29113
|
title: "Requests (" + friendRequests.length + ")",
|
|
29114
29114
|
content: requestsTabContent
|
|
29115
29115
|
}];
|
|
29116
|
-
return React.createElement(Container$g, null, React.createElement(
|
|
29116
|
+
return React.createElement(Container$g, null, React.createElement(InternalTabs, {
|
|
29117
29117
|
tabs: tabs,
|
|
29118
29118
|
activeTextColor: "#000",
|
|
29119
29119
|
inactiveColor: "#777",
|
|
@@ -29989,6 +29989,68 @@ var FadeInCarouselImg = /*#__PURE__*/styled(CarouselImg).withConfig({
|
|
|
29989
29989
|
componentId: "sc-gdvbly-5"
|
|
29990
29990
|
})(["animation:", " 0.5s;"], fadeIn);
|
|
29991
29991
|
|
|
29992
|
+
var InternalTabs = function InternalTabs(_ref) {
|
|
29993
|
+
var _tabs$find;
|
|
29994
|
+
var tabs = _ref.tabs,
|
|
29995
|
+
_ref$activeColor = _ref.activeColor,
|
|
29996
|
+
activeColor = _ref$activeColor === void 0 ? '#fef08a' : _ref$activeColor,
|
|
29997
|
+
_ref$activeTextColor = _ref.activeTextColor,
|
|
29998
|
+
activeTextColor = _ref$activeTextColor === void 0 ? '#000000' : _ref$activeTextColor,
|
|
29999
|
+
_ref$inactiveColor = _ref.inactiveColor,
|
|
30000
|
+
inactiveColor = _ref$inactiveColor === void 0 ? '#6b7280' : _ref$inactiveColor,
|
|
30001
|
+
_ref$borderColor = _ref.borderColor,
|
|
30002
|
+
borderColor = _ref$borderColor === void 0 ? '#f59e0b' : _ref$borderColor,
|
|
30003
|
+
_ref$hoverColor = _ref.hoverColor,
|
|
30004
|
+
hoverColor = _ref$hoverColor === void 0 ? '#fef3c7' : _ref$hoverColor;
|
|
30005
|
+
var _useState = useState(tabs[0].id),
|
|
30006
|
+
activeTab = _useState[0],
|
|
30007
|
+
setActiveTab = _useState[1];
|
|
30008
|
+
return React.createElement(TableWrapper, null, React.createElement(TabHeader, {
|
|
30009
|
+
borderColor: borderColor
|
|
30010
|
+
}, tabs.map(function (tab) {
|
|
30011
|
+
return React.createElement(TabButton, {
|
|
30012
|
+
key: tab.id,
|
|
30013
|
+
active: activeTab === tab.id,
|
|
30014
|
+
activeColor: activeColor,
|
|
30015
|
+
activeTextColor: activeTextColor,
|
|
30016
|
+
inactiveColor: inactiveColor,
|
|
30017
|
+
borderColor: borderColor,
|
|
30018
|
+
hoverColor: hoverColor,
|
|
30019
|
+
onClick: function onClick() {
|
|
30020
|
+
return setActiveTab(tab.id);
|
|
30021
|
+
}
|
|
30022
|
+
}, tab.title);
|
|
30023
|
+
})), React.createElement(ContentWrapper, null, (_tabs$find = tabs.find(function (tab) {
|
|
30024
|
+
return tab.id === activeTab;
|
|
30025
|
+
})) == null ? void 0 : _tabs$find.content));
|
|
30026
|
+
};
|
|
30027
|
+
var TableWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
30028
|
+
displayName: "InternalTabs__TableWrapper",
|
|
30029
|
+
componentId: "sc-ldufv0-0"
|
|
30030
|
+
})(["width:100%;"]);
|
|
30031
|
+
var TabHeader = /*#__PURE__*/styled.div.withConfig({
|
|
30032
|
+
displayName: "InternalTabs__TabHeader",
|
|
30033
|
+
componentId: "sc-ldufv0-1"
|
|
30034
|
+
})(["display:flex;border-bottom:1px solid ", ";"], function (props) {
|
|
30035
|
+
return props.borderColor;
|
|
30036
|
+
});
|
|
30037
|
+
var TabButton = /*#__PURE__*/styled.button.withConfig({
|
|
30038
|
+
displayName: "InternalTabs__TabButton",
|
|
30039
|
+
componentId: "sc-ldufv0-2"
|
|
30040
|
+
})(["flex:1;padding:0.5rem 1rem;font-size:0.875rem;font-weight:500;border-right:1px solid ", ";background-color:", ";color:", ";&:last-child{border-right:none;}&:hover{background-color:", ";}"], function (props) {
|
|
30041
|
+
return props.borderColor;
|
|
30042
|
+
}, function (props) {
|
|
30043
|
+
return props.active ? props.activeColor : 'transparent';
|
|
30044
|
+
}, function (props) {
|
|
30045
|
+
return props.active ? props.activeTextColor : props.inactiveColor;
|
|
30046
|
+
}, function (props) {
|
|
30047
|
+
return props.active ? props.activeColor : props.hoverColor;
|
|
30048
|
+
});
|
|
30049
|
+
var ContentWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
30050
|
+
displayName: "InternalTabs__ContentWrapper",
|
|
30051
|
+
componentId: "sc-ldufv0-3"
|
|
30052
|
+
})(["padding:1rem;"]);
|
|
30053
|
+
|
|
29992
30054
|
var SlotsContainer = function SlotsContainer(_ref) {
|
|
29993
30055
|
var children = _ref.children,
|
|
29994
30056
|
title = _ref.title,
|
|
@@ -30741,7 +30803,7 @@ var Leaderboard = function Leaderboard(props) {
|
|
|
30741
30803
|
}) : null), React.createElement(ItemComponentScrollWrapper, {
|
|
30742
30804
|
id: "LeaderboardContainer",
|
|
30743
30805
|
ref: itemsContainer
|
|
30744
|
-
}, React.createElement(TableWrapper, null, React.createElement(LeaderboardTable, {
|
|
30806
|
+
}, React.createElement(TableWrapper$1, null, React.createElement(LeaderboardTable, {
|
|
30745
30807
|
items: items,
|
|
30746
30808
|
rankType: rankType
|
|
30747
30809
|
}))));
|
|
@@ -30758,7 +30820,7 @@ var ItemComponentScrollWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
30758
30820
|
displayName: "Leaderboard__ItemComponentScrollWrapper",
|
|
30759
30821
|
componentId: "sc-1wdsq7i-2"
|
|
30760
30822
|
})(["overflow-y:auto;height:390px;width:100%;margin-top:1rem;@media (max-width:950px){height:250px;}"]);
|
|
30761
|
-
var TableWrapper = /*#__PURE__*/styled.table.withConfig({
|
|
30823
|
+
var TableWrapper$1 = /*#__PURE__*/styled.table.withConfig({
|
|
30762
30824
|
displayName: "Leaderboard__TableWrapper",
|
|
30763
30825
|
componentId: "sc-1wdsq7i-3"
|
|
30764
30826
|
})(["margin:auto;width:100%;"]);
|
|
@@ -33262,68 +33324,6 @@ var ProgressIndicator = /*#__PURE__*/styled.div.withConfig({
|
|
|
33262
33324
|
return isActive ? '0 0 0 1px black, 1px 1px 0 1px black, 2px 2px 0 1px black, -1px -1px 0 1px black' : '0 0 0 1px black, 1px 1px 0 1px gray, 2px 2px 0 1px gray, -1px -1px 0 1px gray';
|
|
33263
33325
|
});
|
|
33264
33326
|
|
|
33265
|
-
var TableTab = function TableTab(_ref) {
|
|
33266
|
-
var _tabs$find;
|
|
33267
|
-
var tabs = _ref.tabs,
|
|
33268
|
-
_ref$activeColor = _ref.activeColor,
|
|
33269
|
-
activeColor = _ref$activeColor === void 0 ? '#fef08a' : _ref$activeColor,
|
|
33270
|
-
_ref$activeTextColor = _ref.activeTextColor,
|
|
33271
|
-
activeTextColor = _ref$activeTextColor === void 0 ? '#000000' : _ref$activeTextColor,
|
|
33272
|
-
_ref$inactiveColor = _ref.inactiveColor,
|
|
33273
|
-
inactiveColor = _ref$inactiveColor === void 0 ? '#6b7280' : _ref$inactiveColor,
|
|
33274
|
-
_ref$borderColor = _ref.borderColor,
|
|
33275
|
-
borderColor = _ref$borderColor === void 0 ? '#f59e0b' : _ref$borderColor,
|
|
33276
|
-
_ref$hoverColor = _ref.hoverColor,
|
|
33277
|
-
hoverColor = _ref$hoverColor === void 0 ? '#fef3c7' : _ref$hoverColor;
|
|
33278
|
-
var _useState = useState(tabs[0].id),
|
|
33279
|
-
activeTab = _useState[0],
|
|
33280
|
-
setActiveTab = _useState[1];
|
|
33281
|
-
return React.createElement(TableWrapper$1, null, React.createElement(TabHeader, {
|
|
33282
|
-
borderColor: borderColor
|
|
33283
|
-
}, tabs.map(function (tab) {
|
|
33284
|
-
return React.createElement(TabButton, {
|
|
33285
|
-
key: tab.id,
|
|
33286
|
-
active: activeTab === tab.id,
|
|
33287
|
-
activeColor: activeColor,
|
|
33288
|
-
activeTextColor: activeTextColor,
|
|
33289
|
-
inactiveColor: inactiveColor,
|
|
33290
|
-
borderColor: borderColor,
|
|
33291
|
-
hoverColor: hoverColor,
|
|
33292
|
-
onClick: function onClick() {
|
|
33293
|
-
return setActiveTab(tab.id);
|
|
33294
|
-
}
|
|
33295
|
-
}, tab.title);
|
|
33296
|
-
})), React.createElement(ContentWrapper, null, (_tabs$find = tabs.find(function (tab) {
|
|
33297
|
-
return tab.id === activeTab;
|
|
33298
|
-
})) == null ? void 0 : _tabs$find.content));
|
|
33299
|
-
};
|
|
33300
|
-
var TableWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
33301
|
-
displayName: "TableTab__TableWrapper",
|
|
33302
|
-
componentId: "sc-m1diiu-0"
|
|
33303
|
-
})(["width:100%;"]);
|
|
33304
|
-
var TabHeader = /*#__PURE__*/styled.div.withConfig({
|
|
33305
|
-
displayName: "TableTab__TabHeader",
|
|
33306
|
-
componentId: "sc-m1diiu-1"
|
|
33307
|
-
})(["display:flex;border-bottom:1px solid ", ";"], function (props) {
|
|
33308
|
-
return props.borderColor;
|
|
33309
|
-
});
|
|
33310
|
-
var TabButton = /*#__PURE__*/styled.button.withConfig({
|
|
33311
|
-
displayName: "TableTab__TabButton",
|
|
33312
|
-
componentId: "sc-m1diiu-2"
|
|
33313
|
-
})(["flex:1;padding:0.5rem 1rem;font-size:0.875rem;font-weight:500;border-right:1px solid ", ";background-color:", ";color:", ";&:last-child{border-right:none;}&:hover{background-color:", ";}"], function (props) {
|
|
33314
|
-
return props.borderColor;
|
|
33315
|
-
}, function (props) {
|
|
33316
|
-
return props.active ? props.activeColor : 'transparent';
|
|
33317
|
-
}, function (props) {
|
|
33318
|
-
return props.active ? props.activeTextColor : props.inactiveColor;
|
|
33319
|
-
}, function (props) {
|
|
33320
|
-
return props.active ? props.activeColor : props.hoverColor;
|
|
33321
|
-
});
|
|
33322
|
-
var ContentWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
33323
|
-
displayName: "TableTab__ContentWrapper",
|
|
33324
|
-
componentId: "sc-m1diiu-3"
|
|
33325
|
-
})(["padding:1rem;"]);
|
|
33326
|
-
|
|
33327
33327
|
var TextArea = function TextArea(_ref) {
|
|
33328
33328
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
33329
33329
|
return React.createElement("textarea", Object.assign({}, props));
|
|
@@ -33830,5 +33830,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
33830
33830
|
componentId: "sc-7tgzv2-6"
|
|
33831
33831
|
})(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
|
|
33832
33832
|
|
|
33833
|
-
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$1 as InputRadio, ItemContainer$1 as ItemContainer, ItemSelector, ItemSlot, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow,
|
|
33833
|
+
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$1 as InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemSelector, ItemSlot, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
|
|
33834
33834
|
//# sourceMappingURL=long-bow.esm.js.map
|