@rpg-engine/long-bow 0.7.28 → 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/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/index.tsx +1 -1
- package/src/stories/{TableTab.stories.tsx → InternalTabs.stories.tsx} +7 -4
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './components/HistoryDialog';
|
|
|
17
17
|
export * from './components/ImageCarousel/ImageCarousel';
|
|
18
18
|
export * from './components/ImageCarousel/SimpleImageCarousel';
|
|
19
19
|
export * from './components/Input';
|
|
20
|
+
export * from './components/InternalTabs/InternalTabs';
|
|
20
21
|
export { ErrorBoundary } from './components/Item/Inventory/ErrorBoundary';
|
|
21
22
|
export * from './components/Item/Inventory/ItemContainer';
|
|
22
23
|
export * from './components/Item/Inventory/ItemSlot';
|
|
@@ -45,7 +46,6 @@ export * from './components/SkillProgressBar';
|
|
|
45
46
|
export * from './components/SkillsContainer';
|
|
46
47
|
export * from './components/Spellbook/Spellbook';
|
|
47
48
|
export * from './components/Stepper';
|
|
48
|
-
export * from './components/TableTab/TableTab';
|
|
49
49
|
export * from './components/TextArea';
|
|
50
50
|
export * from './components/TimeWidget/TimeWidget';
|
|
51
51
|
export * from './components/TradingMenu/TradingMenu';
|
|
@@ -29119,7 +29119,7 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
29119
29119
|
title: "Requests (" + friendRequests.length + ")",
|
|
29120
29120
|
content: requestsTabContent
|
|
29121
29121
|
}];
|
|
29122
|
-
return React__default.createElement(Container$g, null, React__default.createElement(
|
|
29122
|
+
return React__default.createElement(Container$g, null, React__default.createElement(InternalTabs, {
|
|
29123
29123
|
tabs: tabs,
|
|
29124
29124
|
activeTextColor: "#000",
|
|
29125
29125
|
inactiveColor: "#777",
|
|
@@ -29993,6 +29993,68 @@ var FadeInCarouselImg = /*#__PURE__*/styled__default(CarouselImg).withConfig({
|
|
|
29993
29993
|
componentId: "sc-gdvbly-5"
|
|
29994
29994
|
})(["animation:", " 0.5s;"], fadeIn);
|
|
29995
29995
|
|
|
29996
|
+
var InternalTabs = function InternalTabs(_ref) {
|
|
29997
|
+
var _tabs$find;
|
|
29998
|
+
var tabs = _ref.tabs,
|
|
29999
|
+
_ref$activeColor = _ref.activeColor,
|
|
30000
|
+
activeColor = _ref$activeColor === void 0 ? '#fef08a' : _ref$activeColor,
|
|
30001
|
+
_ref$activeTextColor = _ref.activeTextColor,
|
|
30002
|
+
activeTextColor = _ref$activeTextColor === void 0 ? '#000000' : _ref$activeTextColor,
|
|
30003
|
+
_ref$inactiveColor = _ref.inactiveColor,
|
|
30004
|
+
inactiveColor = _ref$inactiveColor === void 0 ? '#6b7280' : _ref$inactiveColor,
|
|
30005
|
+
_ref$borderColor = _ref.borderColor,
|
|
30006
|
+
borderColor = _ref$borderColor === void 0 ? '#f59e0b' : _ref$borderColor,
|
|
30007
|
+
_ref$hoverColor = _ref.hoverColor,
|
|
30008
|
+
hoverColor = _ref$hoverColor === void 0 ? '#fef3c7' : _ref$hoverColor;
|
|
30009
|
+
var _useState = React.useState(tabs[0].id),
|
|
30010
|
+
activeTab = _useState[0],
|
|
30011
|
+
setActiveTab = _useState[1];
|
|
30012
|
+
return React__default.createElement(TableWrapper, null, React__default.createElement(TabHeader, {
|
|
30013
|
+
borderColor: borderColor
|
|
30014
|
+
}, tabs.map(function (tab) {
|
|
30015
|
+
return React__default.createElement(TabButton, {
|
|
30016
|
+
key: tab.id,
|
|
30017
|
+
active: activeTab === tab.id,
|
|
30018
|
+
activeColor: activeColor,
|
|
30019
|
+
activeTextColor: activeTextColor,
|
|
30020
|
+
inactiveColor: inactiveColor,
|
|
30021
|
+
borderColor: borderColor,
|
|
30022
|
+
hoverColor: hoverColor,
|
|
30023
|
+
onClick: function onClick() {
|
|
30024
|
+
return setActiveTab(tab.id);
|
|
30025
|
+
}
|
|
30026
|
+
}, tab.title);
|
|
30027
|
+
})), React__default.createElement(ContentWrapper, null, (_tabs$find = tabs.find(function (tab) {
|
|
30028
|
+
return tab.id === activeTab;
|
|
30029
|
+
})) == null ? void 0 : _tabs$find.content));
|
|
30030
|
+
};
|
|
30031
|
+
var TableWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
30032
|
+
displayName: "InternalTabs__TableWrapper",
|
|
30033
|
+
componentId: "sc-ldufv0-0"
|
|
30034
|
+
})(["width:100%;"]);
|
|
30035
|
+
var TabHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
30036
|
+
displayName: "InternalTabs__TabHeader",
|
|
30037
|
+
componentId: "sc-ldufv0-1"
|
|
30038
|
+
})(["display:flex;border-bottom:1px solid ", ";"], function (props) {
|
|
30039
|
+
return props.borderColor;
|
|
30040
|
+
});
|
|
30041
|
+
var TabButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
30042
|
+
displayName: "InternalTabs__TabButton",
|
|
30043
|
+
componentId: "sc-ldufv0-2"
|
|
30044
|
+
})(["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) {
|
|
30045
|
+
return props.borderColor;
|
|
30046
|
+
}, function (props) {
|
|
30047
|
+
return props.active ? props.activeColor : 'transparent';
|
|
30048
|
+
}, function (props) {
|
|
30049
|
+
return props.active ? props.activeTextColor : props.inactiveColor;
|
|
30050
|
+
}, function (props) {
|
|
30051
|
+
return props.active ? props.activeColor : props.hoverColor;
|
|
30052
|
+
});
|
|
30053
|
+
var ContentWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
30054
|
+
displayName: "InternalTabs__ContentWrapper",
|
|
30055
|
+
componentId: "sc-ldufv0-3"
|
|
30056
|
+
})(["padding:1rem;"]);
|
|
30057
|
+
|
|
29996
30058
|
var SlotsContainer = function SlotsContainer(_ref) {
|
|
29997
30059
|
var children = _ref.children,
|
|
29998
30060
|
title = _ref.title,
|
|
@@ -30744,7 +30806,7 @@ var Leaderboard = function Leaderboard(props) {
|
|
|
30744
30806
|
}) : null), React__default.createElement(ItemComponentScrollWrapper, {
|
|
30745
30807
|
id: "LeaderboardContainer",
|
|
30746
30808
|
ref: itemsContainer
|
|
30747
|
-
}, React__default.createElement(TableWrapper, null, React__default.createElement(LeaderboardTable, {
|
|
30809
|
+
}, React__default.createElement(TableWrapper$1, null, React__default.createElement(LeaderboardTable, {
|
|
30748
30810
|
items: items,
|
|
30749
30811
|
rankType: rankType
|
|
30750
30812
|
}))));
|
|
@@ -30761,7 +30823,7 @@ var ItemComponentScrollWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30761
30823
|
displayName: "Leaderboard__ItemComponentScrollWrapper",
|
|
30762
30824
|
componentId: "sc-1wdsq7i-2"
|
|
30763
30825
|
})(["overflow-y:auto;height:390px;width:100%;margin-top:1rem;@media (max-width:950px){height:250px;}"]);
|
|
30764
|
-
var TableWrapper = /*#__PURE__*/styled__default.table.withConfig({
|
|
30826
|
+
var TableWrapper$1 = /*#__PURE__*/styled__default.table.withConfig({
|
|
30765
30827
|
displayName: "Leaderboard__TableWrapper",
|
|
30766
30828
|
componentId: "sc-1wdsq7i-3"
|
|
30767
30829
|
})(["margin:auto;width:100%;"]);
|
|
@@ -33264,68 +33326,6 @@ var ProgressIndicator = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33264
33326
|
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';
|
|
33265
33327
|
});
|
|
33266
33328
|
|
|
33267
|
-
var TableTab = function TableTab(_ref) {
|
|
33268
|
-
var _tabs$find;
|
|
33269
|
-
var tabs = _ref.tabs,
|
|
33270
|
-
_ref$activeColor = _ref.activeColor,
|
|
33271
|
-
activeColor = _ref$activeColor === void 0 ? '#fef08a' : _ref$activeColor,
|
|
33272
|
-
_ref$activeTextColor = _ref.activeTextColor,
|
|
33273
|
-
activeTextColor = _ref$activeTextColor === void 0 ? '#000000' : _ref$activeTextColor,
|
|
33274
|
-
_ref$inactiveColor = _ref.inactiveColor,
|
|
33275
|
-
inactiveColor = _ref$inactiveColor === void 0 ? '#6b7280' : _ref$inactiveColor,
|
|
33276
|
-
_ref$borderColor = _ref.borderColor,
|
|
33277
|
-
borderColor = _ref$borderColor === void 0 ? '#f59e0b' : _ref$borderColor,
|
|
33278
|
-
_ref$hoverColor = _ref.hoverColor,
|
|
33279
|
-
hoverColor = _ref$hoverColor === void 0 ? '#fef3c7' : _ref$hoverColor;
|
|
33280
|
-
var _useState = React.useState(tabs[0].id),
|
|
33281
|
-
activeTab = _useState[0],
|
|
33282
|
-
setActiveTab = _useState[1];
|
|
33283
|
-
return React__default.createElement(TableWrapper$1, null, React__default.createElement(TabHeader, {
|
|
33284
|
-
borderColor: borderColor
|
|
33285
|
-
}, tabs.map(function (tab) {
|
|
33286
|
-
return React__default.createElement(TabButton, {
|
|
33287
|
-
key: tab.id,
|
|
33288
|
-
active: activeTab === tab.id,
|
|
33289
|
-
activeColor: activeColor,
|
|
33290
|
-
activeTextColor: activeTextColor,
|
|
33291
|
-
inactiveColor: inactiveColor,
|
|
33292
|
-
borderColor: borderColor,
|
|
33293
|
-
hoverColor: hoverColor,
|
|
33294
|
-
onClick: function onClick() {
|
|
33295
|
-
return setActiveTab(tab.id);
|
|
33296
|
-
}
|
|
33297
|
-
}, tab.title);
|
|
33298
|
-
})), React__default.createElement(ContentWrapper, null, (_tabs$find = tabs.find(function (tab) {
|
|
33299
|
-
return tab.id === activeTab;
|
|
33300
|
-
})) == null ? void 0 : _tabs$find.content));
|
|
33301
|
-
};
|
|
33302
|
-
var TableWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
33303
|
-
displayName: "TableTab__TableWrapper",
|
|
33304
|
-
componentId: "sc-m1diiu-0"
|
|
33305
|
-
})(["width:100%;"]);
|
|
33306
|
-
var TabHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
33307
|
-
displayName: "TableTab__TabHeader",
|
|
33308
|
-
componentId: "sc-m1diiu-1"
|
|
33309
|
-
})(["display:flex;border-bottom:1px solid ", ";"], function (props) {
|
|
33310
|
-
return props.borderColor;
|
|
33311
|
-
});
|
|
33312
|
-
var TabButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
33313
|
-
displayName: "TableTab__TabButton",
|
|
33314
|
-
componentId: "sc-m1diiu-2"
|
|
33315
|
-
})(["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) {
|
|
33316
|
-
return props.borderColor;
|
|
33317
|
-
}, function (props) {
|
|
33318
|
-
return props.active ? props.activeColor : 'transparent';
|
|
33319
|
-
}, function (props) {
|
|
33320
|
-
return props.active ? props.activeTextColor : props.inactiveColor;
|
|
33321
|
-
}, function (props) {
|
|
33322
|
-
return props.active ? props.activeColor : props.hoverColor;
|
|
33323
|
-
});
|
|
33324
|
-
var ContentWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
33325
|
-
displayName: "TableTab__ContentWrapper",
|
|
33326
|
-
componentId: "sc-m1diiu-3"
|
|
33327
|
-
})(["padding:1rem;"]);
|
|
33328
|
-
|
|
33329
33329
|
var TextArea = function TextArea(_ref) {
|
|
33330
33330
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
33331
33331
|
return React__default.createElement("textarea", Object.assign({}, props));
|
|
@@ -33855,6 +33855,7 @@ exports.HistoryDialog = HistoryDialog;
|
|
|
33855
33855
|
exports.ImageCarousel = ImageCarousel;
|
|
33856
33856
|
exports.Input = Input;
|
|
33857
33857
|
exports.InputRadio = InputRadio$1;
|
|
33858
|
+
exports.InternalTabs = InternalTabs;
|
|
33858
33859
|
exports.ItemContainer = ItemContainer$1;
|
|
33859
33860
|
exports.ItemSelector = ItemSelector;
|
|
33860
33861
|
exports.ItemSlot = ItemSlot;
|
|
@@ -33891,7 +33892,6 @@ exports.Table = Table;
|
|
|
33891
33892
|
exports.TableCell = TableCell;
|
|
33892
33893
|
exports.TableHeader = TableHeader;
|
|
33893
33894
|
exports.TableRow = TableRow;
|
|
33894
|
-
exports.TableTab = TableTab;
|
|
33895
33895
|
exports.TabsContainer = TabsContainer;
|
|
33896
33896
|
exports.TextArea = TextArea;
|
|
33897
33897
|
exports.TimeWidget = TimeWidget;
|