@tangle-network/sandbox-ui 0.24.2 → 0.25.0
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.
|
@@ -1629,7 +1629,15 @@ function SidebarLayoutInner({
|
|
|
1629
1629
|
showLabel: railLabels
|
|
1630
1630
|
},
|
|
1631
1631
|
item.id
|
|
1632
|
-
) : /* @__PURE__ */ jsx14(RailButton, { icon: item.icon, label: item.label, badge: item.badge, isActive: activeId === item.id, showLabel: railLabels, asChild: true, children: /* @__PURE__ */ jsx14(
|
|
1632
|
+
) : /* @__PURE__ */ jsx14(RailButton, { icon: item.icon, label: item.label, badge: item.badge, isActive: activeId === item.id, showLabel: railLabels, asChild: true, children: /* @__PURE__ */ jsx14(
|
|
1633
|
+
Link,
|
|
1634
|
+
{
|
|
1635
|
+
href: item.href,
|
|
1636
|
+
to: item.href,
|
|
1637
|
+
onClick: handleNavClick,
|
|
1638
|
+
...item.prefetch !== void 0 ? { prefetch: item.prefetch } : {}
|
|
1639
|
+
}
|
|
1640
|
+
) }, item.id)
|
|
1633
1641
|
) }),
|
|
1634
1642
|
(railFooter !== void 0 || hasProfile) && /* @__PURE__ */ jsxs13(SidebarRailFooter, { className: cn("border-t border-border pt-2", railLabels && "items-stretch px-2"), children: [
|
|
1635
1643
|
railFooter,
|
package/dist/dashboard.d.ts
CHANGED
|
@@ -544,6 +544,12 @@ interface SidebarLayoutNavItem {
|
|
|
544
544
|
/** Render this item as the panel toggle instead of a link. */
|
|
545
545
|
togglesPanel?: boolean;
|
|
546
546
|
badge?: number;
|
|
547
|
+
/**
|
|
548
|
+
* React Router prefetch behavior for this link, forwarded to the underlying
|
|
549
|
+
* `<Link prefetch>`. Omit to preserve the router's default (no prefetch).
|
|
550
|
+
* Ignored for panel-toggle items and for `LinkComponent`s that don't support it.
|
|
551
|
+
*/
|
|
552
|
+
prefetch?: "none" | "intent" | "render" | "viewport";
|
|
547
553
|
}
|
|
548
554
|
interface SidebarLayoutProps {
|
|
549
555
|
children: React.ReactNode;
|
package/dist/dashboard.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED