@rpg-engine/long-bow 0.8.130 → 0.8.131

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.
@@ -8,6 +8,8 @@ export interface IStoreProps {
8
8
  atlasIMG: string;
9
9
  onPurchase: (purchase: Partial<IPurchase>) => Promise<boolean>;
10
10
  onShowHistory?: () => void;
11
+ onShowWallet?: () => void;
12
+ walletLabel?: string;
11
13
  userAccountType: UserAccountTypes;
12
14
  loading?: boolean;
13
15
  error?: string;
@@ -59015,6 +59015,8 @@ var Store = function Store(_ref) {
59015
59015
  atlasIMG = _ref.atlasIMG,
59016
59016
  _onPurchase2 = _ref.onPurchase,
59017
59017
  onShowHistory = _ref.onShowHistory,
59018
+ onShowWallet = _ref.onShowWallet,
59019
+ walletLabel = _ref.walletLabel,
59018
59020
  userAccountType = _ref.userAccountType,
59019
59021
  _ref$loading = _ref.loading,
59020
59022
  loading = _ref$loading === void 0 ? false : _ref$loading,
@@ -59232,10 +59234,14 @@ var Store = function Store(_ref) {
59232
59234
  onAddToCart: function onAddToCart() {
59233
59235
  return handleAddPackToCart(selectedPack);
59234
59236
  }
59235
- }) : React__default.createElement(Container$N, null, React__default.createElement(TopBar$1, null, React__default.createElement(HistoryButton, null, onShowHistory && React__default.createElement(CTAButton, {
59237
+ }) : React__default.createElement(Container$N, null, React__default.createElement(TopBar$1, null, React__default.createElement(LeftButtons, null, onShowHistory && React__default.createElement(CTAButton, {
59236
59238
  icon: React__default.createElement(fa.FaHistory, null),
59237
59239
  label: "History",
59238
59240
  onClick: onShowHistory
59241
+ }), onShowWallet && React__default.createElement(CTAButton, {
59242
+ icon: React__default.createElement(fa.FaWallet, null),
59243
+ label: walletLabel != null ? walletLabel : 'DC Wallet',
59244
+ onClick: onShowWallet
59239
59245
  })), React__default.createElement(CartButton, null, React__default.createElement(CTAButton, {
59240
59246
  icon: React__default.createElement(fa.FaShoppingCart, null),
59241
59247
  label: getTotalItems() + " items ($" + getTotalPrice().toFixed(2) + ")",
@@ -59266,10 +59272,10 @@ var TopBar$1 = /*#__PURE__*/styled__default.div.withConfig({
59266
59272
  displayName: "Store__TopBar",
59267
59273
  componentId: "sc-64dj00-1"
59268
59274
  })(["display:flex;align-items:center;justify-content:flex-end;gap:1rem;padding:0 1rem;flex-shrink:0;margin-top:0.5rem;"]);
59269
- var HistoryButton = /*#__PURE__*/styled__default.div.withConfig({
59270
- displayName: "Store__HistoryButton",
59275
+ var LeftButtons = /*#__PURE__*/styled__default.div.withConfig({
59276
+ displayName: "Store__LeftButtons",
59271
59277
  componentId: "sc-64dj00-2"
59272
- })(["min-width:fit-content;margin-right:auto;"]);
59278
+ })(["display:flex;gap:0.5rem;min-width:fit-content;margin-right:auto;"]);
59273
59279
  var CartButton = /*#__PURE__*/styled__default.div.withConfig({
59274
59280
  displayName: "Store__CartButton",
59275
59281
  componentId: "sc-64dj00-3"