@inf-monkeys-tech/monkeys-design 1.0.7 → 1.0.8
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/runtime/index.d.mts +25 -5
- package/dist/components/runtime/index.d.ts +25 -5
- package/dist/components/runtime/index.js +50 -2
- package/dist/components/runtime/index.js.map +1 -1
- package/dist/components/runtime/index.mjs +50 -3
- package/dist/components/runtime/index.mjs.map +1 -1
- package/dist/components/workbench/index.d.mts +13 -4
- package/dist/components/workbench/index.d.ts +13 -4
- package/dist/components/workbench/index.js +54 -34
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +54 -35
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +54 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +54 -35
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -21583,11 +21583,57 @@ var radarPanelStyle = {
|
|
|
21583
21583
|
backgroundColor: "hsl(var(--radar-panel, var(--card)))",
|
|
21584
21584
|
borderColor: "hsl(var(--radar-border, var(--border)))"
|
|
21585
21585
|
};
|
|
21586
|
+
function WorkbenchRadarNavigation({
|
|
21587
|
+
items,
|
|
21588
|
+
activeItemId,
|
|
21589
|
+
onItemSelect,
|
|
21590
|
+
footer,
|
|
21591
|
+
ariaLabel = "Radar navigation"
|
|
21592
|
+
}) {
|
|
21593
|
+
return /* @__PURE__ */ jsxs(
|
|
21594
|
+
"aside",
|
|
21595
|
+
{
|
|
21596
|
+
"aria-label": ariaLabel,
|
|
21597
|
+
"data-monkeys-component": "workbench-radar-navigation",
|
|
21598
|
+
className: "flex min-h-0 flex-col overflow-hidden rounded-[calc(var(--radius)+0.25rem)] border",
|
|
21599
|
+
style: radarPanelStyle,
|
|
21600
|
+
children: [
|
|
21601
|
+
/* @__PURE__ */ jsx("nav", { className: "min-h-0 flex-1 overflow-y-auto p-3", children: /* @__PURE__ */ jsx("ul", { className: "grid gap-2", children: items.map((item) => {
|
|
21602
|
+
const active = item.id === activeItemId;
|
|
21603
|
+
return /* @__PURE__ */ jsxs("li", { className: "grid gap-1", children: [
|
|
21604
|
+
/* @__PURE__ */ jsxs(
|
|
21605
|
+
"button",
|
|
21606
|
+
{
|
|
21607
|
+
type: "button",
|
|
21608
|
+
"aria-current": active ? "page" : void 0,
|
|
21609
|
+
onClick: onItemSelect ? () => onItemSelect(item) : void 0,
|
|
21610
|
+
className: cn(
|
|
21611
|
+
"flex min-h-11 w-full items-center gap-3 rounded-[var(--radius)] border border-transparent px-3 py-2 text-left text-sm font-semibold outline-none transition-[background-color,border-color,color,box-shadow] focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",
|
|
21612
|
+
active ? "bg-primary text-primary-foreground shadow-[0_0_1.25rem_hsl(var(--primary)/0.28)]" : "text-muted-foreground hover:border-border hover:bg-muted/60 hover:text-foreground"
|
|
21613
|
+
),
|
|
21614
|
+
children: [
|
|
21615
|
+
hasRenderableNode(item.icon) ? /* @__PURE__ */ jsx("span", { className: "flex size-5 shrink-0 items-center justify-center", "aria-hidden": "true", children: item.icon }) : null,
|
|
21616
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate", children: item.label })
|
|
21617
|
+
]
|
|
21618
|
+
}
|
|
21619
|
+
),
|
|
21620
|
+
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) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "flex min-h-9 items-center gap-2 rounded-md px-2 text-xs font-medium text-muted-foreground", children: [
|
|
21621
|
+
hasRenderableNode(child.icon) ? /* @__PURE__ */ jsx("span", { className: "flex size-4 shrink-0 items-center justify-center", "aria-hidden": "true", children: child.icon }) : null,
|
|
21622
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: child.label })
|
|
21623
|
+
] }) }, child.id)) }) : null
|
|
21624
|
+
] }, item.id);
|
|
21625
|
+
}) }) }),
|
|
21626
|
+
hasRenderableNode(footer) ? /* @__PURE__ */ jsx("div", { className: "border-t border-border/70 p-3", children: footer }) : null
|
|
21627
|
+
]
|
|
21628
|
+
}
|
|
21629
|
+
);
|
|
21630
|
+
}
|
|
21586
21631
|
function WorkbenchRadarWorkspace({
|
|
21587
|
-
navigationItems,
|
|
21632
|
+
navigationItems = [],
|
|
21588
21633
|
activeNavigationId,
|
|
21589
21634
|
onNavigationSelect,
|
|
21590
21635
|
navigationFooter,
|
|
21636
|
+
navigation,
|
|
21591
21637
|
children,
|
|
21592
21638
|
inspector,
|
|
21593
21639
|
inspectorLabel = "Context controls",
|
|
@@ -21608,40 +21654,13 @@ function WorkbenchRadarWorkspace({
|
|
|
21608
21654
|
),
|
|
21609
21655
|
style: { ...radarWorkspaceStyle, minHeight: minimumHeight },
|
|
21610
21656
|
children: [
|
|
21611
|
-
/* @__PURE__ */
|
|
21612
|
-
|
|
21657
|
+
hasRenderableNode(navigation) ? navigation : /* @__PURE__ */ jsx(
|
|
21658
|
+
WorkbenchRadarNavigation,
|
|
21613
21659
|
{
|
|
21614
|
-
|
|
21615
|
-
|
|
21616
|
-
|
|
21617
|
-
|
|
21618
|
-
/* @__PURE__ */ jsx("nav", { className: "min-h-0 flex-1 overflow-y-auto p-3", children: /* @__PURE__ */ jsx("ul", { className: "grid gap-2", children: navigationItems.map((item) => {
|
|
21619
|
-
const active = item.id === activeNavigationId;
|
|
21620
|
-
return /* @__PURE__ */ jsxs("li", { className: "grid gap-1", children: [
|
|
21621
|
-
/* @__PURE__ */ jsxs(
|
|
21622
|
-
"button",
|
|
21623
|
-
{
|
|
21624
|
-
type: "button",
|
|
21625
|
-
"aria-current": active ? "page" : void 0,
|
|
21626
|
-
onClick: onNavigationSelect ? () => onNavigationSelect(item) : void 0,
|
|
21627
|
-
className: cn(
|
|
21628
|
-
"flex min-h-11 w-full items-center gap-3 rounded-[var(--radius)] border border-transparent px-3 py-2 text-left text-sm font-semibold outline-none transition-[background-color,border-color,color,box-shadow] focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",
|
|
21629
|
-
active ? "bg-primary text-primary-foreground shadow-[0_0_1.25rem_hsl(var(--primary)/0.28)]" : "text-muted-foreground hover:border-border hover:bg-muted/60 hover:text-foreground"
|
|
21630
|
-
),
|
|
21631
|
-
children: [
|
|
21632
|
-
hasRenderableNode(item.icon) ? /* @__PURE__ */ jsx("span", { className: "flex size-5 shrink-0 items-center justify-center", "aria-hidden": "true", children: item.icon }) : null,
|
|
21633
|
-
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate", children: item.label })
|
|
21634
|
-
]
|
|
21635
|
-
}
|
|
21636
|
-
),
|
|
21637
|
-
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) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "flex min-h-9 items-center gap-2 rounded-md px-2 text-xs font-medium text-muted-foreground", children: [
|
|
21638
|
-
hasRenderableNode(child.icon) ? /* @__PURE__ */ jsx("span", { className: "flex size-4 shrink-0 items-center justify-center", "aria-hidden": "true", children: child.icon }) : null,
|
|
21639
|
-
/* @__PURE__ */ jsx("span", { className: "truncate", children: child.label })
|
|
21640
|
-
] }) }, child.id)) }) : null
|
|
21641
|
-
] }, item.id);
|
|
21642
|
-
}) }) }),
|
|
21643
|
-
hasRenderableNode(navigationFooter) ? /* @__PURE__ */ jsx("div", { className: "border-t border-border/70 p-3", children: navigationFooter }) : null
|
|
21644
|
-
]
|
|
21660
|
+
items: navigationItems,
|
|
21661
|
+
activeItemId: activeNavigationId,
|
|
21662
|
+
onItemSelect: onNavigationSelect,
|
|
21663
|
+
footer: navigationFooter
|
|
21645
21664
|
}
|
|
21646
21665
|
),
|
|
21647
21666
|
/* @__PURE__ */ jsx(
|
|
@@ -27527,6 +27546,6 @@ function useDarkMode() {
|
|
|
27527
27546
|
return { mode, setMode, resolvedMode };
|
|
27528
27547
|
}
|
|
27529
27548
|
|
|
27530
|
-
export { AppHeader, AppLayout, AppShellSidebar, AppSidebar, ApplicationHandoffLink, BaseAccordion, BaseAspectRatio, BaseAvatar, BaseBadge, BaseBreadcrumb, BaseButton, BaseCheckbox, BaseCode, BaseContainer, BaseContextMenu, BaseContextMenuCheckboxItem, BaseContextMenuContent, BaseContextMenuItem, BaseContextMenuLabel, BaseContextMenuRadioGroup, BaseContextMenuRadioItem, BaseContextMenuSeparator, BaseContextMenuSub, BaseContextMenuSubContent, BaseContextMenuSubTrigger, BaseContextMenuTrigger, BaseDescriptionList, BaseDialog, BaseDivider, BaseDropdownMenu, BaseEmptyState, BaseField, BaseFieldset, BaseGrid, BaseHeading, BaseInline, BaseInput, BaseInputGroup, BaseKbd, BaseLayout, BaseLayoutPane, BaseLayoutResizeHandle, BaseLayoutSplit, BaseLink, BaseList, BaseListItem, BaseLoadingState, BaseMultiSelect, BaseNotice, BaseNumberInput, BasePagination, BasePanel, BasePasswordInput, BasePortal, BaseProgress, BaseRadioGroup, BaseScrollArea, BaseSectionHeader, BaseSegmentedControl, BaseSelect, BaseSkeleton, BaseSpinner, BaseStack, BaseSteps, BaseSwitch, BaseTable, BaseTableBody, BaseTableCaption, BaseTableCell, BaseTableContainer, BaseTableEmpty, BaseTableFooter, BaseTableFooterBar, BaseTableHead, BaseTableHeader, BaseTableLoading, BaseTableRow, BaseTabs, BaseText, BaseTextarea, BaseToolbar, BaseTooltip, BaseVisuallyHidden, DarkModeSelector, DarkModeSubMenu, DataExplorerActionBar, DataExplorerButton, DataExplorerCheckbox, DataExplorerCollectionFooter, DataExplorerDetailField, DataExplorerDetailSection, DataExplorerDetailShell, DataExplorerDisplayActionMenu, DataExplorerDisplayCard, DataExplorerDisplayCollectionView, DataExplorerDisplayListItem, DataExplorerDisplayMedia, DataExplorerImagePreview, DataExplorerPage, DataExplorerRecordCard, DataExplorerSelect, DataExplorerToolbarActions, DataExplorerToolbarShell, DataExplorerTree, DataExplorerTreeShell, DataExplorerView, DataExplorerViewCollection, DataExplorerViewItem, DataExplorerViewItemShell, DataExplorerViewShell, DataExplorerViewTree, I18nSelector, InteractiveTable, InteractiveTableEditableTextCell, InteractiveTableReadonlyCell, InteractiveTableSelectCell, LoginPage, MonkeysProvider, MonkeysToastProvider, MonkeysToaster, NavButton, NavigationLayout, OverlayNodeHost, RenderNodeHost, MonkeysToastProvider as ToastProvider, MonkeysToaster as Toaster, UserAccountMenu, WorkbenchAssetGallery, WorkbenchContentPane, WorkbenchContentToolbar, WorkbenchDetailSidebar, WorkbenchEvidenceList, WorkbenchGalleryCard, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsPanel, WorkbenchGalleryView, WorkbenchJourneyNavigation, WorkbenchLaneView, WorkbenchMasonryLayout, WorkbenchMetricGrid, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, WorkbenchRadarMatrix, WorkbenchRadarWorkspace, WorkbenchRankedList, WorkbenchRelationshipGraph, WorkbenchResizableSidebar, WorkbenchScatterPlot, WorkbenchSelectionTray, WorkbenchTableView, applyThemeTokens, browserOverlayHistoryAdapter, buildOverlayUrl, calculateHue, calculateLightness, calculateSaturation, cn2 as cn, compileThemeTokens, createSolidColorScale, defaultMonkeysLocale, enUS, extractToastMessage, genTailwindTheme, getBaseBadgeToneClassName, getBaseButtonToneClassName, getBaseMenuItemToneClassName, getBaseNoticeToneClassName, getDataExplorerActionToneClassName, getDataExplorerMenuItemToneClassName, getOverlayPresentationClassNames, getOverlayZIndex, getRenderNodeDataAttributes, getThemeTokenCssValue, isOverlayUrlActive, markDarkColor, mergeMonkeysLocaleMessages, resolveBaseAppearance, resolveDataExplorerAppearance, resolveMonkeysLocale, resolveRenderNodePolicyState, resolveToastVariantForMessage, sessionRenderNodeScrollRestoration, setTailwindTheme, toast, useDarkMode, useMonkeysBaseAppearance, useMonkeysComponentAttributes, useMonkeysDataExplorerAppearance, useMonkeysDirection, useMonkeysEnvironment, useMonkeysLocale, useMonkeysLocaleMessages, useMonkeysPortalOptions, useMonkeysResolvedTheme, useToastFeed, useToastOnValue, zhCN };
|
|
27549
|
+
export { AppHeader, AppLayout, AppShellSidebar, AppSidebar, ApplicationHandoffLink, BaseAccordion, BaseAspectRatio, BaseAvatar, BaseBadge, BaseBreadcrumb, BaseButton, BaseCheckbox, BaseCode, BaseContainer, BaseContextMenu, BaseContextMenuCheckboxItem, BaseContextMenuContent, BaseContextMenuItem, BaseContextMenuLabel, BaseContextMenuRadioGroup, BaseContextMenuRadioItem, BaseContextMenuSeparator, BaseContextMenuSub, BaseContextMenuSubContent, BaseContextMenuSubTrigger, BaseContextMenuTrigger, BaseDescriptionList, BaseDialog, BaseDivider, BaseDropdownMenu, BaseEmptyState, BaseField, BaseFieldset, BaseGrid, BaseHeading, BaseInline, BaseInput, BaseInputGroup, BaseKbd, BaseLayout, BaseLayoutPane, BaseLayoutResizeHandle, BaseLayoutSplit, BaseLink, BaseList, BaseListItem, BaseLoadingState, BaseMultiSelect, BaseNotice, BaseNumberInput, BasePagination, BasePanel, BasePasswordInput, BasePortal, BaseProgress, BaseRadioGroup, BaseScrollArea, BaseSectionHeader, BaseSegmentedControl, BaseSelect, BaseSkeleton, BaseSpinner, BaseStack, BaseSteps, BaseSwitch, BaseTable, BaseTableBody, BaseTableCaption, BaseTableCell, BaseTableContainer, BaseTableEmpty, BaseTableFooter, BaseTableFooterBar, BaseTableHead, BaseTableHeader, BaseTableLoading, BaseTableRow, BaseTabs, BaseText, BaseTextarea, BaseToolbar, BaseTooltip, BaseVisuallyHidden, DarkModeSelector, DarkModeSubMenu, DataExplorerActionBar, DataExplorerButton, DataExplorerCheckbox, DataExplorerCollectionFooter, DataExplorerDetailField, DataExplorerDetailSection, DataExplorerDetailShell, DataExplorerDisplayActionMenu, DataExplorerDisplayCard, DataExplorerDisplayCollectionView, DataExplorerDisplayListItem, DataExplorerDisplayMedia, DataExplorerImagePreview, DataExplorerPage, DataExplorerRecordCard, DataExplorerSelect, DataExplorerToolbarActions, DataExplorerToolbarShell, DataExplorerTree, DataExplorerTreeShell, DataExplorerView, DataExplorerViewCollection, DataExplorerViewItem, DataExplorerViewItemShell, DataExplorerViewShell, DataExplorerViewTree, I18nSelector, InteractiveTable, InteractiveTableEditableTextCell, InteractiveTableReadonlyCell, InteractiveTableSelectCell, LoginPage, MonkeysProvider, MonkeysToastProvider, MonkeysToaster, NavButton, NavigationLayout, OverlayNodeHost, RenderNodeHost, MonkeysToastProvider as ToastProvider, MonkeysToaster as Toaster, UserAccountMenu, WorkbenchAssetGallery, WorkbenchContentPane, WorkbenchContentToolbar, WorkbenchDetailSidebar, WorkbenchEvidenceList, WorkbenchGalleryCard, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsPanel, WorkbenchGalleryView, WorkbenchJourneyNavigation, WorkbenchLaneView, WorkbenchMasonryLayout, WorkbenchMetricGrid, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, WorkbenchRadarMatrix, WorkbenchRadarNavigation, WorkbenchRadarWorkspace, WorkbenchRankedList, WorkbenchRelationshipGraph, WorkbenchResizableSidebar, WorkbenchScatterPlot, WorkbenchSelectionTray, WorkbenchTableView, applyThemeTokens, browserOverlayHistoryAdapter, buildOverlayUrl, calculateHue, calculateLightness, calculateSaturation, cn2 as cn, compileThemeTokens, createSolidColorScale, defaultMonkeysLocale, enUS, extractToastMessage, genTailwindTheme, getBaseBadgeToneClassName, getBaseButtonToneClassName, getBaseMenuItemToneClassName, getBaseNoticeToneClassName, getDataExplorerActionToneClassName, getDataExplorerMenuItemToneClassName, getOverlayPresentationClassNames, getOverlayZIndex, getRenderNodeDataAttributes, getThemeTokenCssValue, isOverlayUrlActive, markDarkColor, mergeMonkeysLocaleMessages, resolveBaseAppearance, resolveDataExplorerAppearance, resolveMonkeysLocale, resolveRenderNodePolicyState, resolveToastVariantForMessage, sessionRenderNodeScrollRestoration, setTailwindTheme, toast, useDarkMode, useMonkeysBaseAppearance, useMonkeysComponentAttributes, useMonkeysDataExplorerAppearance, useMonkeysDirection, useMonkeysEnvironment, useMonkeysLocale, useMonkeysLocaleMessages, useMonkeysPortalOptions, useMonkeysResolvedTheme, useToastFeed, useToastOnValue, zhCN };
|
|
27531
27550
|
//# sourceMappingURL=index.mjs.map
|
|
27532
27551
|
//# sourceMappingURL=index.mjs.map
|