@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.
@@ -19519,8 +19519,8 @@ function WorkbenchTaskCard({
19519
19519
  "data-monkeys-component": "workbench-task-card",
19520
19520
  "data-view-mode": viewMode,
19521
19521
  className: cn(
19522
- "border-border/70",
19523
- 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",
19522
+ "border-border/70 font-[family-name:var(--font-sans)] text-sm leading-5",
19523
+ 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",
19524
19524
  className
19525
19525
  ),
19526
19526
  children: [
@@ -19533,11 +19533,11 @@ function WorkbenchTaskCard({
19533
19533
  viewMode === "grid" ? "flex-1" : "min-h-60"
19534
19534
  ),
19535
19535
  children: [
19536
- /* @__PURE__ */ jsx("div", { className: "mb-4 flex flex-wrap items-center gap-x-3 gap-y-2", children: heading }),
19537
- metadata != null && /* @__PURE__ */ 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 }),
19536
+ /* @__PURE__ */ jsx("div", { className: "mb-global flex flex-wrap items-center gap-global", children: heading }),
19537
+ metadata != null && /* @__PURE__ */ 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 }),
19538
19538
  children,
19539
- message != null && /* @__PURE__ */ jsx("div", { className: "mt-3 break-words text-sm text-destructive-text", children: message }),
19540
- actions != null && /* @__PURE__ */ jsx("div", { className: "mt-auto flex flex-wrap gap-3 pt-6", children: actions })
19539
+ message != null && /* @__PURE__ */ jsx("div", { className: "mt-global break-words text-sm text-destructive-text", children: message }),
19540
+ actions != null && /* @__PURE__ */ jsx("div", { className: "mt-auto flex flex-wrap gap-global pt-global", children: actions })
19541
19541
  ]
19542
19542
  }
19543
19543
  ),
@@ -19569,40 +19569,36 @@ function WorkbenchTaskToolbar({
19569
19569
  {
19570
19570
  "data-monkeys-component": "workbench-task-toolbar",
19571
19571
  classNames: {
19572
- root: "min-h-0 flex-row flex-wrap items-center gap-4 border-0 px-0 pt-0 pb-3",
19573
- end: "max-w-full flex-wrap gap-2"
19572
+ 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",
19573
+ end: "max-w-full flex-wrap gap-global"
19574
19574
  },
19575
19575
  className,
19576
19576
  end: /* @__PURE__ */ jsxs(Fragment, { children: [
19577
19577
  filters,
19578
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
19579
- /* @__PURE__ */ jsxs(
19580
- Button,
19578
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-global", children: [
19579
+ /* @__PURE__ */ jsx(
19580
+ BaseButton,
19581
19581
  {
19582
19582
  type: "button",
19583
19583
  variant: "outline",
19584
19584
  disabled,
19585
19585
  title: labels.sort,
19586
- 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",
19586
+ icon: sortOrder === "latest" ? /* @__PURE__ */ jsx(ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsx(ArrowUpNarrowWide, {}),
19587
+ 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",
19587
19588
  onClick: () => onSortOrderChange(sortOrder === "latest" ? "oldest" : "latest"),
19588
- children: [
19589
- /* @__PURE__ */ jsx("span", { "data-slot": "icon", children: sortOrder === "latest" ? /* @__PURE__ */ jsx(ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsx(ArrowUpNarrowWide, {}) }),
19590
- sortOrder === "latest" ? labels.latest : labels.oldest
19591
- ]
19589
+ children: sortOrder === "latest" ? labels.latest : labels.oldest
19592
19590
  }
19593
19591
  ),
19594
- /* @__PURE__ */ jsxs(
19595
- Button,
19592
+ /* @__PURE__ */ jsx(
19593
+ BaseButton,
19596
19594
  {
19597
19595
  type: "button",
19598
19596
  variant: "outline",
19599
19597
  disabled,
19600
- className: "h-10 gap-2 rounded-xl bg-muted/40 px-4 text-sm font-medium shadow-none hover:bg-muted/70",
19598
+ icon: viewMode === "list" ? /* @__PURE__ */ jsx(Grid2X2, {}) : /* @__PURE__ */ jsx(LayoutList, {}),
19599
+ 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",
19601
19600
  onClick: () => onViewModeChange(viewMode === "list" ? "grid" : "list"),
19602
- children: [
19603
- /* @__PURE__ */ jsx("span", { "data-slot": "icon", children: viewMode === "list" ? /* @__PURE__ */ jsx(Grid2X2, {}) : /* @__PURE__ */ jsx(LayoutList, {}) }),
19604
- viewMode === "list" ? labels.gridView : labels.listView
19605
- ]
19601
+ children: viewMode === "list" ? labels.gridView : labels.listView
19606
19602
  }
19607
19603
  )
19608
19604
  ] })
@@ -19624,7 +19620,7 @@ function WorkbenchTaskOutputs({
19624
19620
  onPreview,
19625
19621
  className
19626
19622
  }) {
19627
- const size = viewMode === "grid" ? "aspect-square w-full" : "aspect-square w-[calc((100%-2.25rem)/4)] min-w-32 max-w-48";
19623
+ const size = viewMode === "grid" ? "aspect-square w-full" : "aspect-square w-[calc((100%-3*var(--global-spacing))/4)] min-w-32 max-w-48";
19628
19624
  return /* @__PURE__ */ jsxs(
19629
19625
  "div",
19630
19626
  {
@@ -19633,7 +19629,7 @@ function WorkbenchTaskOutputs({
19633
19629
  "aria-label": ariaLabel,
19634
19630
  tabIndex: 0,
19635
19631
  className: cn(
19636
- "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",
19632
+ "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",
19637
19633
  className
19638
19634
  ),
19639
19635
  children: [
@@ -19665,7 +19661,7 @@ function WorkbenchTaskOutputs({
19665
19661
  ) : /* @__PURE__ */ jsx(
19666
19662
  "pre",
19667
19663
  {
19668
- 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",
19664
+ 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",
19669
19665
  children: item.content
19670
19666
  },
19671
19667
  item.id
@@ -19688,7 +19684,7 @@ function WorkbenchTaskOutputs({
19688
19684
  }
19689
19685
  )
19690
19686
  }
19691
- ) : /* @__PURE__ */ 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 }))
19687
+ ) : /* @__PURE__ */ 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 }))
19692
19688
  ]
19693
19689
  }
19694
19690
  );
@@ -19783,7 +19779,7 @@ function WorkbenchTaskPrompt({
19783
19779
  "div",
19784
19780
  {
19785
19781
  "data-monkeys-component": "workbench-task-prompt",
19786
- className: cn("min-w-0", className),
19782
+ className: cn("min-w-0 font-[family-name:var(--font-sans)] text-sm leading-5", className),
19787
19783
  children: [
19788
19784
  /* @__PURE__ */ jsx(
19789
19785
  "p",
@@ -19791,7 +19787,7 @@ function WorkbenchTaskPrompt({
19791
19787
  ref,
19792
19788
  id,
19793
19789
  className: cn(
19794
- "whitespace-pre-wrap break-words text-sm leading-6 text-foreground [overflow-wrap:anywhere]",
19790
+ "whitespace-pre-wrap break-words text-sm leading-5 text-foreground [overflow-wrap:anywhere]",
19795
19791
  !expanded && "line-clamp-3"
19796
19792
  ),
19797
19793
  children: content
@@ -19804,7 +19800,7 @@ function WorkbenchTaskPrompt({
19804
19800
  "aria-expanded": expanded,
19805
19801
  "aria-controls": id,
19806
19802
  onClick: () => setExpanded((value) => !value),
19807
- 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",
19803
+ 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",
19808
19804
  children: [
19809
19805
  expanded ? labels.less : labels.more,
19810
19806
  expanded ? /* @__PURE__ */ jsx(ChevronUp, { "aria-hidden": "true", className: "size-4" }) : /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true", className: "size-4" })
@@ -19824,10 +19820,10 @@ function WorkbenchTaskOutputItem({
19824
19820
  onPreview
19825
19821
  }) {
19826
19822
  if (kind === "text")
19827
- return /* @__PURE__ */ 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 });
19823
+ return /* @__PURE__ */ 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 });
19828
19824
  const className = cn(
19829
19825
  "flex shrink-0 snap-start items-center justify-center overflow-hidden rounded-lg border bg-muted/20",
19830
- 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"
19826
+ 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"
19831
19827
  );
19832
19828
  return kind === "media" && onPreview ? /* @__PURE__ */ jsx(
19833
19829
  "button",
@@ -19853,7 +19849,7 @@ function WorkbenchTaskSpreadsheet({
19853
19849
  return /* @__PURE__ */ jsxs(
19854
19850
  "div",
19855
19851
  {
19856
- className: "flex size-full min-h-0 flex-col",
19852
+ className: "flex size-full min-h-0 flex-col font-[family-name:var(--font-sans)] text-sm leading-5",
19857
19853
  "data-monkeys-component": "workbench-task-spreadsheet",
19858
19854
  children: [
19859
19855
  preview ? /* @__PURE__ */ jsx(
@@ -19862,14 +19858,14 @@ function WorkbenchTaskSpreadsheet({
19862
19858
  type: "button",
19863
19859
  onClick: onPreview,
19864
19860
  "aria-label": previewLabel,
19865
- className: "flex min-h-0 flex-1 items-center justify-center p-2 focus-visible:outline focus-visible:outline-2",
19861
+ className: "flex min-h-0 flex-1 items-center justify-center p-global-1/2 focus-visible:outline focus-visible:outline-2",
19866
19862
  children: preview
19867
19863
  }
19868
- ) : /* @__PURE__ */ jsx("div", { className: "flex min-h-0 flex-1 items-center justify-center p-2", children: /* @__PURE__ */ jsx(FileSpreadsheet, { className: "size-10 text-green-600", "aria-hidden": "true" }) }),
19869
- /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-2 border-t p-2", children: [
19864
+ ) : /* @__PURE__ */ jsx("div", { className: "flex min-h-0 flex-1 items-center justify-center p-global-1/2", children: /* @__PURE__ */ jsx(FileSpreadsheet, { className: "size-10 text-green-600", "aria-hidden": "true" }) }),
19865
+ /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-global-1/2 border-t p-global-1/2", children: [
19870
19866
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
19871
- /* @__PURE__ */ jsx("p", { className: "line-clamp-2 break-all text-xs font-medium", title: filename, children: filename }),
19872
- /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "XLSX" })
19867
+ /* @__PURE__ */ jsx("p", { className: "line-clamp-2 break-all text-sm font-medium", title: filename, children: filename }),
19868
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "XLSX" })
19873
19869
  ] }),
19874
19870
  /* @__PURE__ */ jsx(
19875
19871
  "button",
@@ -19879,7 +19875,7 @@ function WorkbenchTaskSpreadsheet({
19879
19875
  title: downloadLabel,
19880
19876
  disabled: disabled || downloading || !onDownload,
19881
19877
  onClick: onDownload,
19882
- 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",
19878
+ 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",
19883
19879
  children: downloading ? /* @__PURE__ */ jsx(Loader2, { className: "size-4 animate-spin motion-reduce:animate-none" }) : /* @__PURE__ */ jsx(Download, { className: "size-4" })
19884
19880
  }
19885
19881
  )