@loafmarkets/ui 0.1.46 → 0.1.48
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4893,6 +4893,7 @@ var DEFAULT_TRADE_PATH = "/trade";
|
|
|
4893
4893
|
var DEFAULT_HOME_PATH = "/";
|
|
4894
4894
|
var DEFAULT_ABOUT_PATH = "/about";
|
|
4895
4895
|
var DEFAULT_LEARN_PATH = "/learn";
|
|
4896
|
+
var DEFAULT_API_PATH = "/api";
|
|
4896
4897
|
var DEFAULT_PROPERTY_MAP_PATH = "/map";
|
|
4897
4898
|
var DEFAULT_PORTFOLIO_PATH = "/portfolio";
|
|
4898
4899
|
var DEFAULT_LOAF_LIQUIDITY_PATH = "/loaf-liquidity";
|
|
@@ -4911,6 +4912,7 @@ var Header = ({
|
|
|
4911
4912
|
homePath = DEFAULT_HOME_PATH,
|
|
4912
4913
|
aboutPath = DEFAULT_ABOUT_PATH,
|
|
4913
4914
|
learnPath = DEFAULT_LEARN_PATH,
|
|
4915
|
+
apiPath = DEFAULT_API_PATH,
|
|
4914
4916
|
offeringsPath,
|
|
4915
4917
|
propertyMapPath = DEFAULT_PROPERTY_MAP_PATH,
|
|
4916
4918
|
portfolioPath = DEFAULT_PORTFOLIO_PATH,
|
|
@@ -5099,6 +5101,7 @@ var Header = ({
|
|
|
5099
5101
|
const resolvedHomePath = homePath ?? DEFAULT_HOME_PATH;
|
|
5100
5102
|
const resolvedAboutPath = aboutPath ?? DEFAULT_ABOUT_PATH;
|
|
5101
5103
|
const resolvedLearnPath = learnPath ?? DEFAULT_LEARN_PATH;
|
|
5104
|
+
const resolvedApiPath = apiPath ?? DEFAULT_API_PATH;
|
|
5102
5105
|
const resolvedOfferingsPath = offeringsPath ?? void 0;
|
|
5103
5106
|
const offeringsHref = resolvedOfferingsPath ?? resolvedHomePath;
|
|
5104
5107
|
const resolvedPropertyMapPath = propertyMapPath ?? DEFAULT_PROPERTY_MAP_PATH;
|
|
@@ -5109,6 +5112,7 @@ var Header = ({
|
|
|
5109
5112
|
if (locationPath === resolvedHomePath) return "home";
|
|
5110
5113
|
if (locationPath === resolvedAboutPath) return "about";
|
|
5111
5114
|
if (locationPath === resolvedLearnPath) return "learn";
|
|
5115
|
+
if (locationPath === resolvedApiPath) return "api";
|
|
5112
5116
|
if (resolvedOfferingsPath && locationPath.startsWith(resolvedOfferingsPath)) return "offerings";
|
|
5113
5117
|
if (locationPath === resolvedPropertyMapPath) return "propertyMap";
|
|
5114
5118
|
if (locationPath === resolvedPortfolioPath) return "portfolio";
|
|
@@ -5122,6 +5126,7 @@ var Header = ({
|
|
|
5122
5126
|
const aboutActive = resolvedActiveTab === "about";
|
|
5123
5127
|
const portfolioActive = resolvedActiveTab === "portfolio";
|
|
5124
5128
|
const learnActive = resolvedActiveTab === "learn";
|
|
5129
|
+
const apiActive = resolvedActiveTab === "api";
|
|
5125
5130
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5126
5131
|
/* @__PURE__ */ jsx(SafeAreaCover, {}),
|
|
5127
5132
|
/* @__PURE__ */ jsx(Overlay, { $isOpen: isMobileMenuOpen, onClick: () => setIsMobileMenuOpen(false) }),
|
|
@@ -5222,6 +5227,18 @@ var Header = ({
|
|
|
5222
5227
|
children: "About"
|
|
5223
5228
|
}
|
|
5224
5229
|
),
|
|
5230
|
+
/* @__PURE__ */ jsx(
|
|
5231
|
+
NavLink,
|
|
5232
|
+
{
|
|
5233
|
+
href: resolvedApiPath,
|
|
5234
|
+
className: apiActive ? "active" : "",
|
|
5235
|
+
onClick: (event) => {
|
|
5236
|
+
event.preventDefault();
|
|
5237
|
+
handleNavigation(resolvedApiPath);
|
|
5238
|
+
},
|
|
5239
|
+
children: "API"
|
|
5240
|
+
}
|
|
5241
|
+
),
|
|
5225
5242
|
/* @__PURE__ */ jsx("div", { style: { marginLeft: "auto", display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx(
|
|
5226
5243
|
"div",
|
|
5227
5244
|
{
|
|
@@ -5268,6 +5285,7 @@ var Header = ({
|
|
|
5268
5285
|
/* @__PURE__ */ jsx(MobileNavItem, { onClick: () => handleNavigation(resolvedPropertyMapPath), children: "Property Map" }),
|
|
5269
5286
|
/* @__PURE__ */ jsx(MobileNavItem, { onClick: () => handleNavigation(resolvedLearnPath), children: "Learn" }),
|
|
5270
5287
|
/* @__PURE__ */ jsx(MobileNavItem, { onClick: () => handleNavigation(resolvedAboutPath), children: "About" }),
|
|
5288
|
+
/* @__PURE__ */ jsx(MobileNavItem, { onClick: () => handleNavigation(resolvedApiPath), children: "API" }),
|
|
5271
5289
|
/* @__PURE__ */ jsx("div", { style: { borderTop: "1px solid #2b3139", margin: "8px 0" } }),
|
|
5272
5290
|
/* @__PURE__ */ jsx(
|
|
5273
5291
|
MobileNavItem,
|
|
@@ -5350,7 +5368,7 @@ var Header = ({
|
|
|
5350
5368
|
}
|
|
5351
5369
|
)
|
|
5352
5370
|
] }) : /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center" }, children: [
|
|
5353
|
-
/* @__PURE__ */ jsx(Button2, { className: "signup", onClick: handleSignIn, children: "
|
|
5371
|
+
/* @__PURE__ */ jsx(Button2, { className: "signup", onClick: handleSignIn, children: "Connect" }),
|
|
5354
5372
|
!isMobileMenuOpen && /* @__PURE__ */ jsx(
|
|
5355
5373
|
MobileOnlyButton,
|
|
5356
5374
|
{
|