@inf-monkeys-tech/monkeys-design 2.0.66 → 2.0.67

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.
@@ -19554,8 +19554,8 @@ function WorkbenchTaskCard({
19554
19554
  "data-monkeys-component": "workbench-task-card",
19555
19555
  "data-view-mode": viewMode,
19556
19556
  className: cn(
19557
- "border-border/70",
19558
- viewMode === "grid" ? "flex h-full flex-col gap-5 rounded-lg border bg-card p-5 shadow-sm" : "grid items-center gap-6 border-b py-8 last:border-b-0 lg:grid-cols-2 lg:gap-10",
19557
+ "border-border/70 font-[family-name:var(--font-sans)] text-sm leading-5",
19558
+ viewMode === "grid" ? "flex h-full flex-col gap-global rounded-lg border bg-card p-global shadow-sm" : "grid items-center gap-global border-b py-global last:border-b-0 lg:grid-cols-2",
19559
19559
  className
19560
19560
  ),
19561
19561
  children: [
@@ -19568,11 +19568,11 @@ function WorkbenchTaskCard({
19568
19568
  viewMode === "grid" ? "flex-1" : "min-h-60"
19569
19569
  ),
19570
19570
  children: [
19571
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4 flex flex-wrap items-center gap-x-3 gap-y-2", children: heading }),
19572
- metadata != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4 flex flex-wrap items-center gap-x-4 gap-y-2 text-xs tabular-nums text-muted-foreground [&_span]:text-inherit [&_time]:text-inherit", children: metadata }),
19571
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-global flex flex-wrap items-center gap-global", children: heading }),
19572
+ metadata != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-global flex flex-wrap items-center gap-global text-sm tabular-nums text-muted-foreground [&_span]:text-inherit [&_time]:text-inherit", children: metadata }),
19573
19573
  children,
19574
- message != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 break-words text-sm text-destructive-text", children: message }),
19575
- actions != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-auto flex flex-wrap gap-3 pt-6", children: actions })
19574
+ message != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-global break-words text-sm text-destructive-text", children: message }),
19575
+ actions != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-auto flex flex-wrap gap-global pt-global", children: actions })
19576
19576
  ]
19577
19577
  }
19578
19578
  ),
@@ -19604,40 +19604,36 @@ function WorkbenchTaskToolbar({
19604
19604
  {
19605
19605
  "data-monkeys-component": "workbench-task-toolbar",
19606
19606
  classNames: {
19607
- root: "min-h-0 flex-row flex-wrap items-center gap-4 border-0 px-0 pt-0 pb-3",
19608
- end: "max-w-full flex-wrap gap-2"
19607
+ root: "min-h-0 flex-row flex-wrap items-center gap-global border-0 p-0 font-[family-name:var(--font-sans)] text-sm leading-5",
19608
+ end: "max-w-full flex-wrap gap-global"
19609
19609
  },
19610
19610
  className,
19611
19611
  end: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
19612
19612
  filters,
19613
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
19614
- /* @__PURE__ */ jsxRuntime.jsxs(
19615
- Button,
19613
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-global", children: [
19614
+ /* @__PURE__ */ jsxRuntime.jsx(
19615
+ BaseButton,
19616
19616
  {
19617
19617
  type: "button",
19618
19618
  variant: "outline",
19619
19619
  disabled,
19620
19620
  title: labels.sort,
19621
- className: "h-10 min-w-28 gap-2 rounded-xl bg-muted/40 px-4 text-sm font-medium shadow-none hover:bg-muted/70",
19621
+ icon: sortOrder === "latest" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowUpNarrowWide, {}),
19622
+ className: "h-10 min-w-28 gap-global rounded-lg bg-muted/40 px-global py-global-1/2 text-sm font-medium shadow-none hover:bg-muted/70",
19622
19623
  onClick: () => onSortOrderChange(sortOrder === "latest" ? "oldest" : "latest"),
19623
- children: [
19624
- /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "icon", children: sortOrder === "latest" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowUpNarrowWide, {}) }),
19625
- sortOrder === "latest" ? labels.latest : labels.oldest
19626
- ]
19624
+ children: sortOrder === "latest" ? labels.latest : labels.oldest
19627
19625
  }
19628
19626
  ),
19629
- /* @__PURE__ */ jsxRuntime.jsxs(
19630
- Button,
19627
+ /* @__PURE__ */ jsxRuntime.jsx(
19628
+ BaseButton,
19631
19629
  {
19632
19630
  type: "button",
19633
19631
  variant: "outline",
19634
19632
  disabled,
19635
- className: "h-10 gap-2 rounded-xl bg-muted/40 px-4 text-sm font-medium shadow-none hover:bg-muted/70",
19633
+ icon: viewMode === "list" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Grid2X2, {}) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.LayoutList, {}),
19634
+ className: "h-10 gap-global rounded-lg bg-muted/40 px-global py-global-1/2 text-sm font-medium shadow-none hover:bg-muted/70",
19636
19635
  onClick: () => onViewModeChange(viewMode === "list" ? "grid" : "list"),
19637
- children: [
19638
- /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "icon", children: viewMode === "list" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Grid2X2, {}) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.LayoutList, {}) }),
19639
- viewMode === "list" ? labels.gridView : labels.listView
19640
- ]
19636
+ children: viewMode === "list" ? labels.gridView : labels.listView
19641
19637
  }
19642
19638
  )
19643
19639
  ] })
@@ -19659,7 +19655,7 @@ function WorkbenchTaskOutputs({
19659
19655
  onPreview,
19660
19656
  className
19661
19657
  }) {
19662
- const size = viewMode === "grid" ? "aspect-square w-full" : "aspect-square w-[calc((100%-2.25rem)/4)] min-w-32 max-w-48";
19658
+ const size = viewMode === "grid" ? "aspect-square w-full" : "aspect-square w-[calc((100%-3*var(--global-spacing))/4)] min-w-32 max-w-48";
19663
19659
  return /* @__PURE__ */ jsxRuntime.jsxs(
19664
19660
  "div",
19665
19661
  {
@@ -19668,7 +19664,7 @@ function WorkbenchTaskOutputs({
19668
19664
  "aria-label": ariaLabel,
19669
19665
  tabIndex: 0,
19670
19666
  className: cn(
19671
- "flex w-full min-w-0 snap-x snap-proximity items-center gap-3 overflow-x-auto py-2 focus-visible:outline focus-visible:outline-2",
19667
+ "flex w-full min-w-0 snap-x snap-proximity items-center gap-global overflow-x-auto py-global-1/2 font-[family-name:var(--font-sans)] text-sm leading-5 focus-visible:outline focus-visible:outline-2",
19672
19668
  className
19673
19669
  ),
19674
19670
  children: [
@@ -19700,7 +19696,7 @@ function WorkbenchTaskOutputs({
19700
19696
  ) : /* @__PURE__ */ jsxRuntime.jsx(
19701
19697
  "pre",
19702
19698
  {
19703
- className: "h-60 w-full min-w-0 shrink-0 snap-start overflow-auto whitespace-pre-wrap break-words rounded-xl border bg-muted/20 p-4 text-xs",
19699
+ className: "h-60 w-full min-w-0 shrink-0 snap-start overflow-auto whitespace-pre-wrap break-words rounded-lg border bg-muted/20 p-global font-[family-name:var(--font-sans)] text-sm leading-5",
19704
19700
  children: item.content
19705
19701
  },
19706
19702
  item.id
@@ -19723,7 +19719,7 @@ function WorkbenchTaskOutputs({
19723
19719
  }
19724
19720
  )
19725
19721
  }
19726
- ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-60 w-full items-center justify-center rounded-xl border border-dashed bg-muted/20 p-5 text-center text-sm text-muted-foreground", children: emptyState }))
19722
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-60 w-full items-center justify-center rounded-lg border border-dashed bg-muted/20 p-global text-center text-sm text-muted-foreground", children: emptyState }))
19727
19723
  ]
19728
19724
  }
19729
19725
  );
@@ -19818,7 +19814,7 @@ function WorkbenchTaskPrompt({
19818
19814
  "div",
19819
19815
  {
19820
19816
  "data-monkeys-component": "workbench-task-prompt",
19821
- className: cn("min-w-0", className),
19817
+ className: cn("min-w-0 font-[family-name:var(--font-sans)] text-sm leading-5", className),
19822
19818
  children: [
19823
19819
  /* @__PURE__ */ jsxRuntime.jsx(
19824
19820
  "p",
@@ -19826,7 +19822,7 @@ function WorkbenchTaskPrompt({
19826
19822
  ref,
19827
19823
  id,
19828
19824
  className: cn(
19829
- "whitespace-pre-wrap break-words text-sm leading-6 text-foreground [overflow-wrap:anywhere]",
19825
+ "whitespace-pre-wrap break-words text-sm leading-5 text-foreground [overflow-wrap:anywhere]",
19830
19826
  !expanded && "line-clamp-3"
19831
19827
  ),
19832
19828
  children: content
@@ -19839,7 +19835,7 @@ function WorkbenchTaskPrompt({
19839
19835
  "aria-expanded": expanded,
19840
19836
  "aria-controls": id,
19841
19837
  onClick: () => setExpanded((value) => !value),
19842
- className: "mt-2 inline-flex min-h-8 items-center gap-1 rounded px-1 text-sm font-semibold text-foreground underline underline-offset-4 hover:bg-muted focus-visible:outline focus-visible:outline-2",
19838
+ className: "mt-global-1/2 inline-flex min-h-8 items-center gap-global-1/2 rounded-lg px-global-1/2 text-sm font-medium text-foreground underline underline-offset-4 hover:bg-muted focus-visible:outline focus-visible:outline-2",
19843
19839
  children: [
19844
19840
  expanded ? labels.less : labels.more,
19845
19841
  expanded ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUp, { "aria-hidden": "true", className: "size-4" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { "aria-hidden": "true", className: "size-4" })
@@ -19859,10 +19855,10 @@ function WorkbenchTaskOutputItem({
19859
19855
  onPreview
19860
19856
  }) {
19861
19857
  if (kind === "text")
19862
- return /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "h-60 w-full min-w-0 shrink-0 snap-start overflow-auto whitespace-pre-wrap break-words rounded-xl border bg-muted/20 p-4 text-xs", children: text ?? children });
19858
+ return /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "h-60 w-full min-w-0 shrink-0 snap-start overflow-auto whitespace-pre-wrap break-words rounded-lg border bg-muted/20 p-global font-[family-name:var(--font-sans)] text-sm leading-5", children: text ?? children });
19863
19859
  const className = cn(
19864
19860
  "flex shrink-0 snap-start items-center justify-center overflow-hidden rounded-lg border bg-muted/20",
19865
- viewMode === "grid" ? "aspect-square w-full" : kind === "file" ? "aspect-square w-60 min-w-60 max-w-72" : "aspect-square w-[calc((100%-2.25rem)/4)] min-w-32 max-w-48"
19861
+ viewMode === "grid" ? "aspect-square w-full" : kind === "file" ? "aspect-square w-60 min-w-60 max-w-72" : "aspect-square w-[calc((100%-3*var(--global-spacing))/4)] min-w-32 max-w-48"
19866
19862
  );
19867
19863
  return kind === "media" && onPreview ? /* @__PURE__ */ jsxRuntime.jsx(
19868
19864
  "button",
@@ -19888,7 +19884,7 @@ function WorkbenchTaskSpreadsheet({
19888
19884
  return /* @__PURE__ */ jsxRuntime.jsxs(
19889
19885
  "div",
19890
19886
  {
19891
- className: "flex size-full min-h-0 flex-col",
19887
+ className: "flex size-full min-h-0 flex-col font-[family-name:var(--font-sans)] text-sm leading-5",
19892
19888
  "data-monkeys-component": "workbench-task-spreadsheet",
19893
19889
  children: [
19894
19890
  preview ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -19897,14 +19893,14 @@ function WorkbenchTaskSpreadsheet({
19897
19893
  type: "button",
19898
19894
  onClick: onPreview,
19899
19895
  "aria-label": previewLabel,
19900
- className: "flex min-h-0 flex-1 items-center justify-center p-2 focus-visible:outline focus-visible:outline-2",
19896
+ className: "flex min-h-0 flex-1 items-center justify-center p-global-1/2 focus-visible:outline focus-visible:outline-2",
19901
19897
  children: preview
19902
19898
  }
19903
- ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-0 flex-1 items-center justify-center p-2", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileSpreadsheet, { className: "size-10 text-green-600", "aria-hidden": "true" }) }),
19904
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-2 border-t p-2", children: [
19899
+ ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-0 flex-1 items-center justify-center p-global-1/2", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileSpreadsheet, { className: "size-10 text-green-600", "aria-hidden": "true" }) }),
19900
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-global-1/2 border-t p-global-1/2", children: [
19905
19901
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
19906
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "line-clamp-2 break-all text-xs font-medium", title: filename, children: filename }),
19907
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "XLSX" })
19902
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "line-clamp-2 break-all text-sm font-medium", title: filename, children: filename }),
19903
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "XLSX" })
19908
19904
  ] }),
19909
19905
  /* @__PURE__ */ jsxRuntime.jsx(
19910
19906
  "button",
@@ -19914,7 +19910,7 @@ function WorkbenchTaskSpreadsheet({
19914
19910
  title: downloadLabel,
19915
19911
  disabled: disabled || downloading || !onDownload,
19916
19912
  onClick: onDownload,
19917
- className: "flex size-9 shrink-0 items-center justify-center rounded-md border bg-background disabled:opacity-50 focus-visible:outline focus-visible:outline-2",
19913
+ className: "flex size-9 shrink-0 items-center justify-center rounded-lg border bg-background disabled:opacity-50 focus-visible:outline focus-visible:outline-2",
19918
19914
  children: downloading ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin motion-reduce:animate-none" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Download, { className: "size-4" })
19919
19915
  }
19920
19916
  )