@inf-monkeys-tech/monkeys-design 1.0.21 → 1.0.23
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/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/components/layout/index.d.mts +1 -0
- package/dist/components/layout/index.d.ts +1 -0
- package/dist/components/layout/index.js +42 -18
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +42 -18
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/index.js +42 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +42 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -16727,24 +16727,20 @@ function NavigationHeadbarMenu({
|
|
|
16727
16727
|
return /* @__PURE__ */ jsx("div", { className: "flex w-max min-w-0 shrink-0 items-center gap-1", children: items.map((item) => {
|
|
16728
16728
|
const isActive = activeRootId === item.id || activeItemId === item.id;
|
|
16729
16729
|
const label = item.headbarLabel ?? item.label;
|
|
16730
|
-
|
|
16731
|
-
|
|
16732
|
-
|
|
16733
|
-
|
|
16734
|
-
|
|
16735
|
-
|
|
16736
|
-
|
|
16737
|
-
|
|
16738
|
-
|
|
16739
|
-
|
|
16740
|
-
|
|
16741
|
-
|
|
16742
|
-
|
|
16743
|
-
|
|
16744
|
-
item.id
|
|
16745
|
-
);
|
|
16746
|
-
}
|
|
16747
|
-
return /* @__PURE__ */ jsx(
|
|
16730
|
+
const primaryAction = item.children?.length ? /* @__PURE__ */ jsx(
|
|
16731
|
+
HeadbarNavMenuItem,
|
|
16732
|
+
{
|
|
16733
|
+
activeItemId,
|
|
16734
|
+
isActive,
|
|
16735
|
+
item,
|
|
16736
|
+
label,
|
|
16737
|
+
menuButtonRadiusClass,
|
|
16738
|
+
menuContentRadiusClass,
|
|
16739
|
+
menuItemRadiusClass,
|
|
16740
|
+
onNavigate,
|
|
16741
|
+
useTokenRadius
|
|
16742
|
+
}
|
|
16743
|
+
) : /* @__PURE__ */ jsx(
|
|
16748
16744
|
BaseButton,
|
|
16749
16745
|
{
|
|
16750
16746
|
appearance: NAVIGATION_LAYOUT_DEFAULT_APPEARANCE,
|
|
@@ -16767,6 +16763,34 @@ function NavigationHeadbarMenu({
|
|
|
16767
16763
|
menuButtonRadiusClass,
|
|
16768
16764
|
isActive ? "" : "hover:!bg-[var(--monkeys-component-navigation-headbar-item-hover-background,hsl(var(--muted)))] hover:!text-[var(--monkeys-component-navigation-headbar-item-hover-foreground,hsl(var(--foreground)))]"
|
|
16769
16765
|
)
|
|
16766
|
+
}
|
|
16767
|
+
);
|
|
16768
|
+
if (!item.headbarSecondaryAction) {
|
|
16769
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: primaryAction }, item.id);
|
|
16770
|
+
}
|
|
16771
|
+
return /* @__PURE__ */ jsxs(
|
|
16772
|
+
"div",
|
|
16773
|
+
{
|
|
16774
|
+
"data-navigation-headbar-compound-item": item.id,
|
|
16775
|
+
className: "inline-flex min-w-0 shrink-0 items-center gap-1",
|
|
16776
|
+
children: [
|
|
16777
|
+
/* @__PURE__ */ jsx(
|
|
16778
|
+
"span",
|
|
16779
|
+
{
|
|
16780
|
+
"data-navigation-headbar-primary-action": "",
|
|
16781
|
+
className: "inline-flex min-w-0 shrink-0",
|
|
16782
|
+
children: primaryAction
|
|
16783
|
+
}
|
|
16784
|
+
),
|
|
16785
|
+
/* @__PURE__ */ jsx(
|
|
16786
|
+
"span",
|
|
16787
|
+
{
|
|
16788
|
+
"data-navigation-headbar-secondary-action": item.id,
|
|
16789
|
+
className: "inline-flex min-w-0 shrink-0 items-center",
|
|
16790
|
+
children: item.headbarSecondaryAction
|
|
16791
|
+
}
|
|
16792
|
+
)
|
|
16793
|
+
]
|
|
16770
16794
|
},
|
|
16771
16795
|
item.id
|
|
16772
16796
|
);
|