@bze/bze-ui-kit 0.4.2 → 0.4.4
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/README.md +12 -0
- package/dist/index.d.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +39 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1394,19 +1394,47 @@ var EXCLUDED_MARKETS = {
|
|
|
1394
1394
|
// src/constants/ecosystem.ts
|
|
1395
1395
|
import { LuGlobe, LuCoins, LuChartColumn, LuFlame, LuFactory } from "react-icons/lu";
|
|
1396
1396
|
var ECOSYSTEM_MENU_LABEL = "Other";
|
|
1397
|
-
var
|
|
1398
|
-
{ name: "Website", href: "https://getbze.com", disabled: false, icon: LuGlobe },
|
|
1399
|
-
{ name: "Staking", href: "https://staking.getbze.com", disabled: false, icon: LuCoins },
|
|
1400
|
-
{ name: "DEX", href: "https://dex.getbze.com", disabled: false, icon: LuChartColumn },
|
|
1401
|
-
{ name: "Burner", href: "https://burner.getbze.com", disabled: false, icon: LuFlame },
|
|
1402
|
-
{ name: "Factory", href: "#", disabled: true, icon: LuFactory }
|
|
1397
|
+
var DEFAULT_APPS = [
|
|
1398
|
+
{ key: "website", name: "Website", href: "https://getbze.com", disabled: false, icon: LuGlobe },
|
|
1399
|
+
{ key: "staking", name: "Staking", href: "https://staking.getbze.com", disabled: false, icon: LuCoins },
|
|
1400
|
+
{ key: "dex", name: "DEX", href: "https://dex.getbze.com", disabled: false, icon: LuChartColumn },
|
|
1401
|
+
{ key: "burner", name: "Burner", href: "https://burner.getbze.com", disabled: false, icon: LuFlame },
|
|
1402
|
+
{ key: "factory", name: "Factory", href: "#", disabled: true, icon: LuFactory }
|
|
1403
1403
|
];
|
|
1404
|
+
var getExcludedKeys = () => {
|
|
1405
|
+
const raw = process.env.NEXT_PUBLIC_ECOSYSTEM_EXCLUDED || "";
|
|
1406
|
+
if (!raw.trim()) {
|
|
1407
|
+
return /* @__PURE__ */ new Set();
|
|
1408
|
+
}
|
|
1409
|
+
return new Set(raw.split(",").map((k) => k.trim().toLowerCase()).filter(Boolean));
|
|
1410
|
+
};
|
|
1411
|
+
var LINK_OVERRIDES = {
|
|
1412
|
+
website: process.env.NEXT_PUBLIC_ECOSYSTEM_LINK_WEBSITE,
|
|
1413
|
+
staking: process.env.NEXT_PUBLIC_ECOSYSTEM_LINK_STAKING,
|
|
1414
|
+
dex: process.env.NEXT_PUBLIC_ECOSYSTEM_LINK_DEX,
|
|
1415
|
+
burner: process.env.NEXT_PUBLIC_ECOSYSTEM_LINK_BURNER,
|
|
1416
|
+
factory: process.env.NEXT_PUBLIC_ECOSYSTEM_LINK_FACTORY
|
|
1417
|
+
};
|
|
1418
|
+
var LABEL_OVERRIDES = {
|
|
1419
|
+
website: process.env.NEXT_PUBLIC_ECOSYSTEM_LABEL_WEBSITE,
|
|
1420
|
+
staking: process.env.NEXT_PUBLIC_ECOSYSTEM_LABEL_STAKING,
|
|
1421
|
+
dex: process.env.NEXT_PUBLIC_ECOSYSTEM_LABEL_DEX,
|
|
1422
|
+
burner: process.env.NEXT_PUBLIC_ECOSYSTEM_LABEL_BURNER,
|
|
1423
|
+
factory: process.env.NEXT_PUBLIC_ECOSYSTEM_LABEL_FACTORY
|
|
1424
|
+
};
|
|
1404
1425
|
var getEcosystemApps = () => {
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1426
|
+
const excluded = getExcludedKeys();
|
|
1427
|
+
return DEFAULT_APPS.filter((app) => !excluded.has(app.key)).map((app) => {
|
|
1428
|
+
const linkOverride = LINK_OVERRIDES[app.key];
|
|
1429
|
+
const labelOverride = LABEL_OVERRIDES[app.key];
|
|
1430
|
+
return {
|
|
1431
|
+
key: app.key,
|
|
1432
|
+
name: labelOverride || app.name,
|
|
1433
|
+
href: linkOverride || app.href,
|
|
1434
|
+
disabled: linkOverride ? false : app.disabled,
|
|
1435
|
+
icon: app.icon
|
|
1436
|
+
};
|
|
1437
|
+
});
|
|
1410
1438
|
};
|
|
1411
1439
|
|
|
1412
1440
|
// src/constants/keplr.ts
|