@inf-monkeys-tech/monkeys-design 1.0.60 → 1.0.61

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/index.mjs CHANGED
@@ -18690,8 +18690,8 @@ function AgentWorkbenchExploreSidebar({
18690
18690
  ),
18691
18691
  children: [
18692
18692
  /* @__PURE__ */ jsxs("div", { className: "shrink-0 space-y-3 px-4 pb-2 pt-4", children: [
18693
- /* @__PURE__ */ jsxs(InputGroup, { className: "h-12 rounded-2xl border-white/15 bg-white/[0.04] text-white", children: [
18694
- /* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(Search, { className: "size-4 text-white/70", "aria-hidden": "true" }) }),
18693
+ /* @__PURE__ */ jsxs(InputGroup, { className: "h-12 rounded-[var(--radius)] border-border bg-card text-foreground", children: [
18694
+ /* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(Search, { className: "size-4 text-muted-foreground", "aria-hidden": "true" }) }),
18695
18695
  /* @__PURE__ */ jsx(
18696
18696
  InputGroupInput,
18697
18697
  {
@@ -18700,17 +18700,17 @@ function AgentWorkbenchExploreSidebar({
18700
18700
  value: searchQuery,
18701
18701
  "aria-label": labels.search,
18702
18702
  placeholder: labels.search,
18703
- className: "min-w-0 text-white placeholder:text-white/55 [&::-webkit-search-cancel-button]:hidden",
18703
+ className: "min-w-0 text-foreground placeholder:text-muted-foreground [&::-webkit-search-cancel-button]:hidden",
18704
18704
  onChange: (event) => onIntent?.({ type: "change-search", query: event.target.value })
18705
18705
  }
18706
18706
  ),
18707
- /* @__PURE__ */ jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsx("kbd", { className: "rounded border border-white/20 px-1.5 py-0.5 text-[10px] text-white/70", children: "Ctrl K" }) })
18707
+ /* @__PURE__ */ jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsx("kbd", { className: "rounded-sm border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground", children: "Ctrl K" }) })
18708
18708
  ] }),
18709
18709
  /* @__PURE__ */ jsxs(
18710
18710
  Button,
18711
18711
  {
18712
18712
  type: "button",
18713
- className: "h-11 w-full justify-start gap-2 rounded-xl border border-primary/60 bg-primary px-3 font-semibold text-primary-foreground hover:bg-primary/90",
18713
+ className: "h-11 w-full justify-start gap-2 rounded-[var(--radius)] border border-primary/60 bg-primary px-3 font-semibold text-primary-foreground hover:bg-primary/90",
18714
18714
  onClick: () => onIntent?.({ type: "create-session" }),
18715
18715
  children: [
18716
18716
  /* @__PURE__ */ jsx(SquarePen, { className: "size-4", "aria-hidden": "true" }),
@@ -18719,13 +18719,13 @@ function AgentWorkbenchExploreSidebar({
18719
18719
  }
18720
18720
  )
18721
18721
  ] }),
18722
- /* @__PURE__ */ jsx("div", { className: "min-h-[160px] flex-[0_1_280px] overflow-y-auto px-4 pb-3", children: loading && sessions.length === 0 ? /* @__PURE__ */ jsx("div", { className: "flex h-24 items-center justify-center text-white/60", children: /* @__PURE__ */ jsx(Loader2, { className: "size-5 animate-spin" }) }) : filteredSessions.length === 0 && !draftVisible ? /* @__PURE__ */ jsx("div", { className: "px-3 py-8 text-center text-sm text-white/55", children: normalizedQuery ? labels.noResults : labels.emptySessions }) : /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
18722
+ /* @__PURE__ */ jsx("div", { className: "min-h-[160px] flex-[0_1_280px] overflow-y-auto px-4 pb-3", children: loading && sessions.length === 0 ? /* @__PURE__ */ jsx("div", { className: "flex h-24 items-center justify-center text-muted-foreground", children: /* @__PURE__ */ jsx(Loader2, { className: "size-5 animate-spin" }) }) : filteredSessions.length === 0 && !draftVisible ? /* @__PURE__ */ jsx("div", { className: "px-3 py-8 text-center text-sm text-muted-foreground", children: normalizedQuery ? labels.noResults : labels.emptySessions }) : /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
18723
18723
  draftVisible ? /* @__PURE__ */ jsx(
18724
18724
  "button",
18725
18725
  {
18726
18726
  type: "button",
18727
18727
  "aria-current": "page",
18728
- className: "block h-10 w-full truncate rounded-xl border border-primary bg-white/10 px-3 text-left text-sm font-semibold text-white",
18728
+ className: "block h-10 w-full truncate rounded-[var(--radius)] border border-primary bg-primary/10 px-3 text-left text-sm font-semibold text-foreground",
18729
18729
  onClick: () => onIntent?.({ type: "create-session" }),
18730
18730
  children: labels.draftSession
18731
18731
  }
@@ -18735,18 +18735,18 @@ function AgentWorkbenchExploreSidebar({
18735
18735
  {
18736
18736
  type: "button",
18737
18737
  "aria-current": session.id === selectedSessionId ? "page" : void 0,
18738
- className: "block h-10 w-full truncate rounded-xl border border-transparent bg-white/10 px-3 text-left text-sm font-semibold text-white transition hover:bg-white/15 aria-[current=page]:border-primary",
18738
+ className: "block h-10 w-full truncate rounded-[var(--radius)] border border-transparent bg-muted/60 px-3 text-left text-sm font-semibold text-foreground transition hover:bg-muted aria-[current=page]:border-primary aria-[current=page]:bg-primary/10",
18739
18739
  onClick: () => onIntent?.({ type: "select-session", sessionId: session.id }),
18740
18740
  children: session.title
18741
18741
  },
18742
18742
  session.id
18743
18743
  ))
18744
18744
  ] }) }),
18745
- activeGroup ? /* @__PURE__ */ jsxs("div", { className: "shrink-0 border-t border-white/10 px-4 pb-4 pt-3", children: [
18745
+ activeGroup ? /* @__PURE__ */ jsxs("div", { className: "shrink-0 border-t border-border px-4 pb-4 pt-3", children: [
18746
18746
  /* @__PURE__ */ jsx(Tabs, { value: activeGroup.id, onValueChange: changeGroup, children: /* @__PURE__ */ jsx(
18747
18747
  TabsList,
18748
18748
  {
18749
- className: "grid h-10 w-full rounded-xl bg-white/10 p-0.5 text-white/55",
18749
+ className: "grid h-10 w-full rounded-[var(--radius)] bg-muted p-0.5 text-muted-foreground",
18750
18750
  style: {
18751
18751
  gridTemplateColumns: `repeat(${groups.length}, minmax(0, 1fr))`
18752
18752
  },
@@ -18754,7 +18754,7 @@ function AgentWorkbenchExploreSidebar({
18754
18754
  TabsTrigger,
18755
18755
  {
18756
18756
  value: group.id,
18757
- className: "rounded-[10px] text-sm font-semibold text-white/55 data-[state=active]:border data-[state=active]:border-white/15 data-[state=active]:bg-background data-[state=active]:text-white",
18757
+ className: "rounded-md text-sm font-semibold text-muted-foreground data-[state=active]:border data-[state=active]:border-border data-[state=active]:bg-background data-[state=active]:text-foreground",
18758
18758
  children: group.label
18759
18759
  },
18760
18760
  group.id
@@ -18766,7 +18766,7 @@ function AgentWorkbenchExploreSidebar({
18766
18766
  {
18767
18767
  type: "button",
18768
18768
  "aria-label": item.title,
18769
- className: "group relative aspect-[1.27] overflow-hidden rounded-xl border border-white/15 bg-card text-left transition hover:border-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",
18769
+ className: "group relative aspect-[1.27] overflow-hidden rounded-[var(--radius)] border border-border bg-card text-left transition hover:border-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
18770
18770
  style: Number.isFinite(activeGroup.itemAspectRatio) && Number(activeGroup.itemAspectRatio) > 0 ? { aspectRatio: activeGroup.itemAspectRatio } : void 0,
18771
18771
  onClick: () => onIntent?.({
18772
18772
  type: "select-item",
@@ -28190,6 +28190,90 @@ function DataExplorerCollectionFooter({ selectedCount, loadedStart, loadedEnd, t
28190
28190
  pageText ? `(${pageText})` : null
28191
28191
  ] }), selectedLabel, pageSizeLabel, className, classNames: { root: classNames?.root, summary: classNames?.summary, pageSize: classNames?.pageSizeControl }, onSummaryClick: onJump, onPageSizeChange });
28192
28192
  }
28193
+ function toCssSize6(value) {
28194
+ return typeof value === "number" ? `${value}px` : value;
28195
+ }
28196
+ function DataExplorerFilterBar({
28197
+ label,
28198
+ leading,
28199
+ children,
28200
+ actions,
28201
+ maxFieldsHeight = 80,
28202
+ className,
28203
+ classNames,
28204
+ style,
28205
+ ...props
28206
+ }) {
28207
+ const fieldsViewportStyle = {
28208
+ maxHeight: toCssSize6(maxFieldsHeight)
28209
+ };
28210
+ return /* @__PURE__ */ jsx(
28211
+ "div",
28212
+ {
28213
+ className: cn4(
28214
+ "border-b border-border/60 bg-background px-8 py-3",
28215
+ classNames?.root,
28216
+ className
28217
+ ),
28218
+ style,
28219
+ ...props,
28220
+ children: /* @__PURE__ */ jsxs(
28221
+ "div",
28222
+ {
28223
+ className: cn4(
28224
+ "flex min-w-0 items-start gap-2 text-sm",
28225
+ classNames?.layout
28226
+ ),
28227
+ children: [
28228
+ label ? /* @__PURE__ */ jsx(
28229
+ "div",
28230
+ {
28231
+ className: cn4(
28232
+ "flex h-9 shrink-0 items-center font-semibold text-foreground",
28233
+ classNames?.label
28234
+ ),
28235
+ children: label
28236
+ }
28237
+ ) : null,
28238
+ /* @__PURE__ */ jsx(
28239
+ "div",
28240
+ {
28241
+ className: cn4(
28242
+ "min-w-0 flex-1 overflow-y-auto overscroll-contain",
28243
+ classNames?.fieldsViewport
28244
+ ),
28245
+ style: fieldsViewportStyle,
28246
+ children: /* @__PURE__ */ jsxs(
28247
+ "div",
28248
+ {
28249
+ className: cn4(
28250
+ "flex flex-wrap items-center gap-2",
28251
+ classNames?.fields
28252
+ ),
28253
+ children: [
28254
+ leading,
28255
+ children
28256
+ ]
28257
+ }
28258
+ )
28259
+ }
28260
+ ),
28261
+ actions ? /* @__PURE__ */ jsx(
28262
+ "div",
28263
+ {
28264
+ className: cn4(
28265
+ "flex shrink-0 items-center gap-2",
28266
+ classNames?.actions
28267
+ ),
28268
+ children: actions
28269
+ }
28270
+ ) : null
28271
+ ]
28272
+ }
28273
+ )
28274
+ }
28275
+ );
28276
+ }
28193
28277
  function DataExplorerDetailField({
28194
28278
  field,
28195
28279
  label = field?.label,
@@ -31716,6 +31800,6 @@ function useDarkMode() {
31716
31800
  return { mode, setMode, resolvedMode };
31717
31801
  }
31718
31802
 
31719
- export { AgentWorkbenchActivity, AgentWorkbenchExploreSidebar, AgentWorkbenchSidebar, AgentWorkbenchTaskDetails, AgentWorkbenchTool, 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, BaseListFooter, BaseListItem, BaseLoadingState, BaseMultiSelect, BaseNotice, BaseNumberInput, BasePagination, BasePanel, BasePasswordInput, BasePortal, BaseProgress, BaseRadioGroup, BaseScrollArea, BaseSectionHeader, BaseSegmentedControl, BaseSelect, BaseSkeleton, BaseSpinner, BaseStack, BaseSteps, BaseSwitch, BaseSystemState, 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, UnifiedDropdown, UserAccountMenu, WorkbenchAssetGallery, WorkbenchCollection, WorkbenchContentPane, WorkbenchContentToolbar, WorkbenchDetailSidebar, WorkbenchEvidenceList, WorkbenchGalleryCard, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsPanel, WorkbenchGalleryView, WorkbenchJourneyNavigation, WorkbenchLaneView, WorkbenchMasonryLayout, WorkbenchMetricGrid, WorkbenchRadarFilterChip, WorkbenchRadarFilterRow, WorkbenchRadarInspectorSection, WorkbenchRadarMatrix, WorkbenchRadarNavigation, WorkbenchRadarWorkspace, WorkbenchRankedList, WorkbenchRelationshipGraph, WorkbenchResizableSidebar, WorkbenchScatterPlot, WorkbenchSelectionTray, WorkbenchTableView, applyThemeTokens, browserOverlayHistoryAdapter, buildOverlayUrl, calculateHue, calculateLightness, calculateSaturation, cn2 as cn, compileThemeTokens, createAgentWorkbenchActivityModel, createAgentWorkbenchDetailsModel, 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, useMonkeysListFooter, useMonkeysLocale, useMonkeysLocaleMessages, useMonkeysPortalOptions, useMonkeysResolvedTheme, useMonkeysStatusStates, useToastFeed, useToastOnValue, zhCN };
31803
+ export { AgentWorkbenchActivity, AgentWorkbenchExploreSidebar, AgentWorkbenchSidebar, AgentWorkbenchTaskDetails, AgentWorkbenchTool, 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, BaseListFooter, BaseListItem, BaseLoadingState, BaseMultiSelect, BaseNotice, BaseNumberInput, BasePagination, BasePanel, BasePasswordInput, BasePortal, BaseProgress, BaseRadioGroup, BaseScrollArea, BaseSectionHeader, BaseSegmentedControl, BaseSelect, BaseSkeleton, BaseSpinner, BaseStack, BaseSteps, BaseSwitch, BaseSystemState, 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, DataExplorerFilterBar, 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, UnifiedDropdown, UserAccountMenu, WorkbenchAssetGallery, WorkbenchCollection, WorkbenchContentPane, WorkbenchContentToolbar, WorkbenchDetailSidebar, WorkbenchEvidenceList, WorkbenchGalleryCard, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsPanel, WorkbenchGalleryView, WorkbenchJourneyNavigation, WorkbenchLaneView, WorkbenchMasonryLayout, WorkbenchMetricGrid, WorkbenchRadarFilterChip, WorkbenchRadarFilterRow, WorkbenchRadarInspectorSection, WorkbenchRadarMatrix, WorkbenchRadarNavigation, WorkbenchRadarWorkspace, WorkbenchRankedList, WorkbenchRelationshipGraph, WorkbenchResizableSidebar, WorkbenchScatterPlot, WorkbenchSelectionTray, WorkbenchTableView, applyThemeTokens, browserOverlayHistoryAdapter, buildOverlayUrl, calculateHue, calculateLightness, calculateSaturation, cn2 as cn, compileThemeTokens, createAgentWorkbenchActivityModel, createAgentWorkbenchDetailsModel, 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, useMonkeysListFooter, useMonkeysLocale, useMonkeysLocaleMessages, useMonkeysPortalOptions, useMonkeysResolvedTheme, useMonkeysStatusStates, useToastFeed, useToastOnValue, zhCN };
31720
31804
  //# sourceMappingURL=index.mjs.map
31721
31805
  //# sourceMappingURL=index.mjs.map