@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.
package/dist/index.js CHANGED
@@ -31474,8 +31474,8 @@ function WorkbenchTaskCard({
31474
31474
  "data-monkeys-component": "workbench-task-card",
31475
31475
  "data-view-mode": viewMode,
31476
31476
  className: cn(
31477
- "border-border/70",
31478
- 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",
31477
+ "border-border/70 font-[family-name:var(--font-sans)] text-sm leading-5",
31478
+ 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",
31479
31479
  className
31480
31480
  ),
31481
31481
  children: [
@@ -31488,11 +31488,11 @@ function WorkbenchTaskCard({
31488
31488
  viewMode === "grid" ? "flex-1" : "min-h-60"
31489
31489
  ),
31490
31490
  children: [
31491
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4 flex flex-wrap items-center gap-x-3 gap-y-2", children: heading }),
31492
- 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 }),
31491
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-global flex flex-wrap items-center gap-global", children: heading }),
31492
+ 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 }),
31493
31493
  children,
31494
- message != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 break-words text-sm text-destructive-text", children: message }),
31495
- actions != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-auto flex flex-wrap gap-3 pt-6", children: actions })
31494
+ message != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-global break-words text-sm text-destructive-text", children: message }),
31495
+ actions != null && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-auto flex flex-wrap gap-global pt-global", children: actions })
31496
31496
  ]
31497
31497
  }
31498
31498
  ),
@@ -31524,40 +31524,36 @@ function WorkbenchTaskToolbar({
31524
31524
  {
31525
31525
  "data-monkeys-component": "workbench-task-toolbar",
31526
31526
  classNames: {
31527
- root: "min-h-0 flex-row flex-wrap items-center gap-4 border-0 px-0 pt-0 pb-3",
31528
- end: "max-w-full flex-wrap gap-2"
31527
+ 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",
31528
+ end: "max-w-full flex-wrap gap-global"
31529
31529
  },
31530
31530
  className,
31531
31531
  end: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
31532
31532
  filters,
31533
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
31534
- /* @__PURE__ */ jsxRuntime.jsxs(
31535
- Button,
31533
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-global", children: [
31534
+ /* @__PURE__ */ jsxRuntime.jsx(
31535
+ BaseButton,
31536
31536
  {
31537
31537
  type: "button",
31538
31538
  variant: "outline",
31539
31539
  disabled,
31540
31540
  title: labels.sort,
31541
- 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",
31541
+ icon: sortOrder === "latest" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowUpNarrowWide, {}),
31542
+ 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",
31542
31543
  onClick: () => onSortOrderChange(sortOrder === "latest" ? "oldest" : "latest"),
31543
- children: [
31544
- /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "icon", children: sortOrder === "latest" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowUpNarrowWide, {}) }),
31545
- sortOrder === "latest" ? labels.latest : labels.oldest
31546
- ]
31544
+ children: sortOrder === "latest" ? labels.latest : labels.oldest
31547
31545
  }
31548
31546
  ),
31549
- /* @__PURE__ */ jsxRuntime.jsxs(
31550
- Button,
31547
+ /* @__PURE__ */ jsxRuntime.jsx(
31548
+ BaseButton,
31551
31549
  {
31552
31550
  type: "button",
31553
31551
  variant: "outline",
31554
31552
  disabled,
31555
- className: "h-10 gap-2 rounded-xl bg-muted/40 px-4 text-sm font-medium shadow-none hover:bg-muted/70",
31553
+ icon: viewMode === "list" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Grid2X2, {}) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.LayoutList, {}),
31554
+ 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",
31556
31555
  onClick: () => onViewModeChange(viewMode === "list" ? "grid" : "list"),
31557
- children: [
31558
- /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "icon", children: viewMode === "list" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Grid2X2, {}) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.LayoutList, {}) }),
31559
- viewMode === "list" ? labels.gridView : labels.listView
31560
- ]
31556
+ children: viewMode === "list" ? labels.gridView : labels.listView
31561
31557
  }
31562
31558
  )
31563
31559
  ] })
@@ -31579,7 +31575,7 @@ function WorkbenchTaskOutputs({
31579
31575
  onPreview,
31580
31576
  className
31581
31577
  }) {
31582
- const size = viewMode === "grid" ? "aspect-square w-full" : "aspect-square w-[calc((100%-2.25rem)/4)] min-w-32 max-w-48";
31578
+ const size = viewMode === "grid" ? "aspect-square w-full" : "aspect-square w-[calc((100%-3*var(--global-spacing))/4)] min-w-32 max-w-48";
31583
31579
  return /* @__PURE__ */ jsxRuntime.jsxs(
31584
31580
  "div",
31585
31581
  {
@@ -31588,7 +31584,7 @@ function WorkbenchTaskOutputs({
31588
31584
  "aria-label": ariaLabel,
31589
31585
  tabIndex: 0,
31590
31586
  className: cn(
31591
- "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",
31587
+ "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",
31592
31588
  className
31593
31589
  ),
31594
31590
  children: [
@@ -31620,7 +31616,7 @@ function WorkbenchTaskOutputs({
31620
31616
  ) : /* @__PURE__ */ jsxRuntime.jsx(
31621
31617
  "pre",
31622
31618
  {
31623
- 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",
31619
+ 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",
31624
31620
  children: item.content
31625
31621
  },
31626
31622
  item.id
@@ -31643,7 +31639,7 @@ function WorkbenchTaskOutputs({
31643
31639
  }
31644
31640
  )
31645
31641
  }
31646
- ) : /* @__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 }))
31642
+ ) : /* @__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 }))
31647
31643
  ]
31648
31644
  }
31649
31645
  );
@@ -31738,7 +31734,7 @@ function WorkbenchTaskPrompt({
31738
31734
  "div",
31739
31735
  {
31740
31736
  "data-monkeys-component": "workbench-task-prompt",
31741
- className: cn("min-w-0", className),
31737
+ className: cn("min-w-0 font-[family-name:var(--font-sans)] text-sm leading-5", className),
31742
31738
  children: [
31743
31739
  /* @__PURE__ */ jsxRuntime.jsx(
31744
31740
  "p",
@@ -31746,7 +31742,7 @@ function WorkbenchTaskPrompt({
31746
31742
  ref,
31747
31743
  id,
31748
31744
  className: cn(
31749
- "whitespace-pre-wrap break-words text-sm leading-6 text-foreground [overflow-wrap:anywhere]",
31745
+ "whitespace-pre-wrap break-words text-sm leading-5 text-foreground [overflow-wrap:anywhere]",
31750
31746
  !expanded && "line-clamp-3"
31751
31747
  ),
31752
31748
  children: content
@@ -31759,7 +31755,7 @@ function WorkbenchTaskPrompt({
31759
31755
  "aria-expanded": expanded,
31760
31756
  "aria-controls": id,
31761
31757
  onClick: () => setExpanded((value) => !value),
31762
- 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",
31758
+ 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",
31763
31759
  children: [
31764
31760
  expanded ? labels.less : labels.more,
31765
31761
  expanded ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUp, { "aria-hidden": "true", className: "size-4" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { "aria-hidden": "true", className: "size-4" })