@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.js
CHANGED
|
@@ -23660,7 +23660,9 @@ var radarPanelStyle = {
|
|
|
23660
23660
|
function WorkbenchRadarNavigation({
|
|
23661
23661
|
items,
|
|
23662
23662
|
activeItemId,
|
|
23663
|
+
activeChildId,
|
|
23663
23664
|
onItemSelect,
|
|
23665
|
+
onChildSelect,
|
|
23664
23666
|
footer,
|
|
23665
23667
|
ariaLabel = "Radar navigation"
|
|
23666
23668
|
}) {
|
|
@@ -23691,10 +23693,27 @@ function WorkbenchRadarNavigation({
|
|
|
23691
23693
|
]
|
|
23692
23694
|
}
|
|
23693
23695
|
),
|
|
23694
|
-
item.children?.length ? /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "ml-5 grid gap-0.5 border-l border-border/70 py-1 pl-3", children: item.children.map((child) =>
|
|
23695
|
-
|
|
23696
|
-
|
|
23697
|
-
|
|
23696
|
+
item.children?.length ? /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "ml-5 grid gap-0.5 border-l border-border/70 py-1 pl-3", children: item.children.map((child) => {
|
|
23697
|
+
const childActive = child.id === activeChildId;
|
|
23698
|
+
const Comp = onChildSelect ? "button" : "div";
|
|
23699
|
+
return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
23700
|
+
Comp,
|
|
23701
|
+
{
|
|
23702
|
+
type: onChildSelect ? "button" : void 0,
|
|
23703
|
+
"data-radar-navigation-child-id": child.id,
|
|
23704
|
+
"aria-current": onChildSelect && childActive ? "page" : void 0,
|
|
23705
|
+
onClick: onChildSelect ? () => onChildSelect(child, item) : void 0,
|
|
23706
|
+
className: cn(
|
|
23707
|
+
"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",
|
|
23708
|
+
childActive ? "border-primary/40 bg-primary/15 text-primary" : "text-muted-foreground hover:border-border hover:bg-muted/60 hover:text-foreground"
|
|
23709
|
+
),
|
|
23710
|
+
children: [
|
|
23711
|
+
hasRenderableNode(child.icon) ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex size-4 shrink-0 items-center justify-center", "aria-hidden": "true", children: child.icon }) : null,
|
|
23712
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: child.label })
|
|
23713
|
+
]
|
|
23714
|
+
}
|
|
23715
|
+
) }, child.id);
|
|
23716
|
+
}) }) : null
|
|
23698
23717
|
] }, item.id);
|
|
23699
23718
|
}) }) }),
|
|
23700
23719
|
hasRenderableNode(footer) ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t border-border/70 p-3", children: footer }) : null
|
|
@@ -23705,7 +23724,9 @@ function WorkbenchRadarNavigation({
|
|
|
23705
23724
|
function WorkbenchRadarWorkspace({
|
|
23706
23725
|
navigationItems = [],
|
|
23707
23726
|
activeNavigationId,
|
|
23727
|
+
activeNavigationChildId,
|
|
23708
23728
|
onNavigationSelect,
|
|
23729
|
+
onNavigationChildSelect,
|
|
23709
23730
|
navigationFooter,
|
|
23710
23731
|
navigation,
|
|
23711
23732
|
children,
|
|
@@ -23733,7 +23754,9 @@ function WorkbenchRadarWorkspace({
|
|
|
23733
23754
|
{
|
|
23734
23755
|
items: navigationItems,
|
|
23735
23756
|
activeItemId: activeNavigationId,
|
|
23757
|
+
activeChildId: activeNavigationChildId,
|
|
23736
23758
|
onItemSelect: onNavigationSelect,
|
|
23759
|
+
onChildSelect: onNavigationChildSelect,
|
|
23737
23760
|
footer: navigationFooter
|
|
23738
23761
|
}
|
|
23739
23762
|
),
|