@inf-monkeys-tech/monkeys-design 1.0.20 → 1.0.21
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/components/workbench/index.d.mts +6 -2
- package/dist/components/workbench/index.d.ts +6 -2
- package/dist/components/workbench/index.js +27 -4
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +27 -4
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/index.js +27 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -4
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -23625,7 +23625,9 @@ var radarPanelStyle = {
|
|
|
23625
23625
|
function WorkbenchRadarNavigation({
|
|
23626
23626
|
items,
|
|
23627
23627
|
activeItemId,
|
|
23628
|
+
activeChildId,
|
|
23628
23629
|
onItemSelect,
|
|
23630
|
+
onChildSelect,
|
|
23629
23631
|
footer,
|
|
23630
23632
|
ariaLabel = "Radar navigation"
|
|
23631
23633
|
}) {
|
|
@@ -23656,10 +23658,27 @@ function WorkbenchRadarNavigation({
|
|
|
23656
23658
|
]
|
|
23657
23659
|
}
|
|
23658
23660
|
),
|
|
23659
|
-
item.children?.length ? /* @__PURE__ */ jsx("ul", { className: "ml-5 grid gap-0.5 border-l border-border/70 py-1 pl-3", children: item.children.map((child) =>
|
|
23660
|
-
|
|
23661
|
-
|
|
23662
|
-
|
|
23661
|
+
item.children?.length ? /* @__PURE__ */ jsx("ul", { className: "ml-5 grid gap-0.5 border-l border-border/70 py-1 pl-3", children: item.children.map((child) => {
|
|
23662
|
+
const childActive = child.id === activeChildId;
|
|
23663
|
+
const Comp = onChildSelect ? "button" : "div";
|
|
23664
|
+
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
|
|
23665
|
+
Comp,
|
|
23666
|
+
{
|
|
23667
|
+
type: onChildSelect ? "button" : void 0,
|
|
23668
|
+
"data-radar-navigation-child-id": child.id,
|
|
23669
|
+
"aria-current": onChildSelect && childActive ? "page" : void 0,
|
|
23670
|
+
onClick: onChildSelect ? () => onChildSelect(child, item) : void 0,
|
|
23671
|
+
className: cn(
|
|
23672
|
+
"flex min-h-9 w-full items-center gap-2 rounded-md border border-transparent px-2 text-left text-xs font-medium outline-none transition-[background-color,border-color,color] focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",
|
|
23673
|
+
childActive ? "border-primary/40 bg-primary/15 text-primary" : "text-muted-foreground hover:border-border hover:bg-muted/60 hover:text-foreground"
|
|
23674
|
+
),
|
|
23675
|
+
children: [
|
|
23676
|
+
hasRenderableNode(child.icon) ? /* @__PURE__ */ jsx("span", { className: "flex size-4 shrink-0 items-center justify-center", "aria-hidden": "true", children: child.icon }) : null,
|
|
23677
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: child.label })
|
|
23678
|
+
]
|
|
23679
|
+
}
|
|
23680
|
+
) }, child.id);
|
|
23681
|
+
}) }) : null
|
|
23663
23682
|
] }, item.id);
|
|
23664
23683
|
}) }) }),
|
|
23665
23684
|
hasRenderableNode(footer) ? /* @__PURE__ */ jsx("div", { className: "border-t border-border/70 p-3", children: footer }) : null
|
|
@@ -23670,7 +23689,9 @@ function WorkbenchRadarNavigation({
|
|
|
23670
23689
|
function WorkbenchRadarWorkspace({
|
|
23671
23690
|
navigationItems = [],
|
|
23672
23691
|
activeNavigationId,
|
|
23692
|
+
activeNavigationChildId,
|
|
23673
23693
|
onNavigationSelect,
|
|
23694
|
+
onNavigationChildSelect,
|
|
23674
23695
|
navigationFooter,
|
|
23675
23696
|
navigation,
|
|
23676
23697
|
children,
|
|
@@ -23698,7 +23719,9 @@ function WorkbenchRadarWorkspace({
|
|
|
23698
23719
|
{
|
|
23699
23720
|
items: navigationItems,
|
|
23700
23721
|
activeItemId: activeNavigationId,
|
|
23722
|
+
activeChildId: activeNavigationChildId,
|
|
23701
23723
|
onItemSelect: onNavigationSelect,
|
|
23724
|
+
onChildSelect: onNavigationChildSelect,
|
|
23702
23725
|
footer: navigationFooter
|
|
23703
23726
|
}
|
|
23704
23727
|
),
|