@loafmarkets/ui 0.1.45 → 0.1.47

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/index.d.mts CHANGED
@@ -541,7 +541,7 @@ type HeaderUser = {
541
541
  email?: string | null;
542
542
  walletAddress?: string | null;
543
543
  };
544
- type HeaderActiveTab = "home" | "trade" | "offerings" | "propertyMap" | "about" | "portfolio" | "learn";
544
+ type HeaderActiveTab = "home" | "trade" | "offerings" | "propertyMap" | "about" | "portfolio" | "learn" | "api";
545
545
  type HeaderLoginPopupComponentProps = {
546
546
  onClose: () => void;
547
547
  initialView?: LoginPopupView;
@@ -559,6 +559,7 @@ type HeaderProps = {
559
559
  homePath?: string;
560
560
  aboutPath?: string;
561
561
  learnPath?: string;
562
+ apiPath?: string;
562
563
  offeringsPath?: string;
563
564
  propertyMapPath?: string;
564
565
  portfolioPath?: string;
package/dist/index.d.ts CHANGED
@@ -541,7 +541,7 @@ type HeaderUser = {
541
541
  email?: string | null;
542
542
  walletAddress?: string | null;
543
543
  };
544
- type HeaderActiveTab = "home" | "trade" | "offerings" | "propertyMap" | "about" | "portfolio" | "learn";
544
+ type HeaderActiveTab = "home" | "trade" | "offerings" | "propertyMap" | "about" | "portfolio" | "learn" | "api";
545
545
  type HeaderLoginPopupComponentProps = {
546
546
  onClose: () => void;
547
547
  initialView?: LoginPopupView;
@@ -559,6 +559,7 @@ type HeaderProps = {
559
559
  homePath?: string;
560
560
  aboutPath?: string;
561
561
  learnPath?: string;
562
+ apiPath?: string;
562
563
  offeringsPath?: string;
563
564
  propertyMapPath?: string;
564
565
  portfolioPath?: string;
package/dist/index.js CHANGED
@@ -4918,6 +4918,7 @@ var DEFAULT_TRADE_PATH = "/trade";
4918
4918
  var DEFAULT_HOME_PATH = "/";
4919
4919
  var DEFAULT_ABOUT_PATH = "/about";
4920
4920
  var DEFAULT_LEARN_PATH = "/learn";
4921
+ var DEFAULT_API_PATH = "/api";
4921
4922
  var DEFAULT_PROPERTY_MAP_PATH = "/map";
4922
4923
  var DEFAULT_PORTFOLIO_PATH = "/portfolio";
4923
4924
  var DEFAULT_LOAF_LIQUIDITY_PATH = "/loaf-liquidity";
@@ -4936,6 +4937,7 @@ var Header = ({
4936
4937
  homePath = DEFAULT_HOME_PATH,
4937
4938
  aboutPath = DEFAULT_ABOUT_PATH,
4938
4939
  learnPath = DEFAULT_LEARN_PATH,
4940
+ apiPath = DEFAULT_API_PATH,
4939
4941
  offeringsPath,
4940
4942
  propertyMapPath = DEFAULT_PROPERTY_MAP_PATH,
4941
4943
  portfolioPath = DEFAULT_PORTFOLIO_PATH,
@@ -5124,6 +5126,7 @@ var Header = ({
5124
5126
  const resolvedHomePath = homePath ?? DEFAULT_HOME_PATH;
5125
5127
  const resolvedAboutPath = aboutPath ?? DEFAULT_ABOUT_PATH;
5126
5128
  const resolvedLearnPath = learnPath ?? DEFAULT_LEARN_PATH;
5129
+ const resolvedApiPath = apiPath ?? DEFAULT_API_PATH;
5127
5130
  const resolvedOfferingsPath = offeringsPath ?? void 0;
5128
5131
  const offeringsHref = resolvedOfferingsPath ?? resolvedHomePath;
5129
5132
  const resolvedPropertyMapPath = propertyMapPath ?? DEFAULT_PROPERTY_MAP_PATH;
@@ -5134,6 +5137,7 @@ var Header = ({
5134
5137
  if (locationPath === resolvedHomePath) return "home";
5135
5138
  if (locationPath === resolvedAboutPath) return "about";
5136
5139
  if (locationPath === resolvedLearnPath) return "learn";
5140
+ if (locationPath === resolvedApiPath) return "api";
5137
5141
  if (resolvedOfferingsPath && locationPath.startsWith(resolvedOfferingsPath)) return "offerings";
5138
5142
  if (locationPath === resolvedPropertyMapPath) return "propertyMap";
5139
5143
  if (locationPath === resolvedPortfolioPath) return "portfolio";
@@ -5147,6 +5151,7 @@ var Header = ({
5147
5151
  const aboutActive = resolvedActiveTab === "about";
5148
5152
  const portfolioActive = resolvedActiveTab === "portfolio";
5149
5153
  const learnActive = resolvedActiveTab === "learn";
5154
+ const apiActive = resolvedActiveTab === "api";
5150
5155
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5151
5156
  /* @__PURE__ */ jsxRuntime.jsx(SafeAreaCover, {}),
5152
5157
  /* @__PURE__ */ jsxRuntime.jsx(Overlay, { $isOpen: isMobileMenuOpen, onClick: () => setIsMobileMenuOpen(false) }),
@@ -5247,6 +5252,18 @@ var Header = ({
5247
5252
  children: "About"
5248
5253
  }
5249
5254
  ),
5255
+ /* @__PURE__ */ jsxRuntime.jsx(
5256
+ NavLink,
5257
+ {
5258
+ href: resolvedApiPath,
5259
+ className: apiActive ? "active" : "",
5260
+ onClick: (event) => {
5261
+ event.preventDefault();
5262
+ handleNavigation(resolvedApiPath);
5263
+ },
5264
+ children: "API"
5265
+ }
5266
+ ),
5250
5267
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: { marginLeft: "auto", display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsxRuntime.jsx(
5251
5268
  "div",
5252
5269
  {
@@ -5293,6 +5310,7 @@ var Header = ({
5293
5310
  /* @__PURE__ */ jsxRuntime.jsx(MobileNavItem, { onClick: () => handleNavigation(resolvedPropertyMapPath), children: "Property Map" }),
5294
5311
  /* @__PURE__ */ jsxRuntime.jsx(MobileNavItem, { onClick: () => handleNavigation(resolvedLearnPath), children: "Learn" }),
5295
5312
  /* @__PURE__ */ jsxRuntime.jsx(MobileNavItem, { onClick: () => handleNavigation(resolvedAboutPath), children: "About" }),
5313
+ /* @__PURE__ */ jsxRuntime.jsx(MobileNavItem, { onClick: () => handleNavigation(resolvedApiPath), children: "API" }),
5296
5314
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: { borderTop: "1px solid #2b3139", margin: "8px 0" } }),
5297
5315
  /* @__PURE__ */ jsxRuntime.jsx(
5298
5316
  MobileNavItem,
@@ -11331,6 +11349,7 @@ var TabContainer = styled24__default.default.div`
11331
11349
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
11332
11350
  margin-bottom: 0.75rem;
11333
11351
  overflow-x: auto;
11352
+ overflow-y: hidden;
11334
11353
  -webkit-overflow-scrolling: touch;
11335
11354
  scrollbar-width: none;
11336
11355
  &::-webkit-scrollbar { display: none; }