@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/components/workbench/index.js +35 -39
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +35 -39
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/index.js +26 -30
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -30
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -31439,8 +31439,8 @@ function WorkbenchTaskCard({
|
|
|
31439
31439
|
"data-monkeys-component": "workbench-task-card",
|
|
31440
31440
|
"data-view-mode": viewMode,
|
|
31441
31441
|
className: cn(
|
|
31442
|
-
"border-border/70",
|
|
31443
|
-
viewMode === "grid" ? "flex h-full flex-col gap-
|
|
31442
|
+
"border-border/70 font-[family-name:var(--font-sans)] text-sm leading-5",
|
|
31443
|
+
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",
|
|
31444
31444
|
className
|
|
31445
31445
|
),
|
|
31446
31446
|
children: [
|
|
@@ -31453,11 +31453,11 @@ function WorkbenchTaskCard({
|
|
|
31453
31453
|
viewMode === "grid" ? "flex-1" : "min-h-60"
|
|
31454
31454
|
),
|
|
31455
31455
|
children: [
|
|
31456
|
-
/* @__PURE__ */ jsx("div", { className: "mb-
|
|
31457
|
-
metadata != null && /* @__PURE__ */ jsx("div", { className: "mb-
|
|
31456
|
+
/* @__PURE__ */ jsx("div", { className: "mb-global flex flex-wrap items-center gap-global", children: heading }),
|
|
31457
|
+
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 }),
|
|
31458
31458
|
children,
|
|
31459
|
-
message != null && /* @__PURE__ */ jsx("div", { className: "mt-
|
|
31460
|
-
actions != null && /* @__PURE__ */ jsx("div", { className: "mt-auto flex flex-wrap gap-
|
|
31459
|
+
message != null && /* @__PURE__ */ jsx("div", { className: "mt-global break-words text-sm text-destructive-text", children: message }),
|
|
31460
|
+
actions != null && /* @__PURE__ */ jsx("div", { className: "mt-auto flex flex-wrap gap-global pt-global", children: actions })
|
|
31461
31461
|
]
|
|
31462
31462
|
}
|
|
31463
31463
|
),
|
|
@@ -31489,40 +31489,36 @@ function WorkbenchTaskToolbar({
|
|
|
31489
31489
|
{
|
|
31490
31490
|
"data-monkeys-component": "workbench-task-toolbar",
|
|
31491
31491
|
classNames: {
|
|
31492
|
-
root: "min-h-0 flex-row flex-wrap items-center gap-
|
|
31493
|
-
end: "max-w-full flex-wrap gap-
|
|
31492
|
+
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",
|
|
31493
|
+
end: "max-w-full flex-wrap gap-global"
|
|
31494
31494
|
},
|
|
31495
31495
|
className,
|
|
31496
31496
|
end: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
31497
31497
|
filters,
|
|
31498
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-
|
|
31499
|
-
/* @__PURE__ */
|
|
31500
|
-
|
|
31498
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-global", children: [
|
|
31499
|
+
/* @__PURE__ */ jsx(
|
|
31500
|
+
BaseButton,
|
|
31501
31501
|
{
|
|
31502
31502
|
type: "button",
|
|
31503
31503
|
variant: "outline",
|
|
31504
31504
|
disabled,
|
|
31505
31505
|
title: labels.sort,
|
|
31506
|
-
|
|
31506
|
+
icon: sortOrder === "latest" ? /* @__PURE__ */ jsx(ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsx(ArrowUpNarrowWide, {}),
|
|
31507
|
+
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",
|
|
31507
31508
|
onClick: () => onSortOrderChange(sortOrder === "latest" ? "oldest" : "latest"),
|
|
31508
|
-
children:
|
|
31509
|
-
/* @__PURE__ */ jsx("span", { "data-slot": "icon", children: sortOrder === "latest" ? /* @__PURE__ */ jsx(ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsx(ArrowUpNarrowWide, {}) }),
|
|
31510
|
-
sortOrder === "latest" ? labels.latest : labels.oldest
|
|
31511
|
-
]
|
|
31509
|
+
children: sortOrder === "latest" ? labels.latest : labels.oldest
|
|
31512
31510
|
}
|
|
31513
31511
|
),
|
|
31514
|
-
/* @__PURE__ */
|
|
31515
|
-
|
|
31512
|
+
/* @__PURE__ */ jsx(
|
|
31513
|
+
BaseButton,
|
|
31516
31514
|
{
|
|
31517
31515
|
type: "button",
|
|
31518
31516
|
variant: "outline",
|
|
31519
31517
|
disabled,
|
|
31520
|
-
|
|
31518
|
+
icon: viewMode === "list" ? /* @__PURE__ */ jsx(Grid2X2, {}) : /* @__PURE__ */ jsx(LayoutList, {}),
|
|
31519
|
+
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",
|
|
31521
31520
|
onClick: () => onViewModeChange(viewMode === "list" ? "grid" : "list"),
|
|
31522
|
-
children:
|
|
31523
|
-
/* @__PURE__ */ jsx("span", { "data-slot": "icon", children: viewMode === "list" ? /* @__PURE__ */ jsx(Grid2X2, {}) : /* @__PURE__ */ jsx(LayoutList, {}) }),
|
|
31524
|
-
viewMode === "list" ? labels.gridView : labels.listView
|
|
31525
|
-
]
|
|
31521
|
+
children: viewMode === "list" ? labels.gridView : labels.listView
|
|
31526
31522
|
}
|
|
31527
31523
|
)
|
|
31528
31524
|
] })
|
|
@@ -31544,7 +31540,7 @@ function WorkbenchTaskOutputs({
|
|
|
31544
31540
|
onPreview,
|
|
31545
31541
|
className
|
|
31546
31542
|
}) {
|
|
31547
|
-
const size = viewMode === "grid" ? "aspect-square w-full" : "aspect-square w-[calc((100%-
|
|
31543
|
+
const size = viewMode === "grid" ? "aspect-square w-full" : "aspect-square w-[calc((100%-3*var(--global-spacing))/4)] min-w-32 max-w-48";
|
|
31548
31544
|
return /* @__PURE__ */ jsxs(
|
|
31549
31545
|
"div",
|
|
31550
31546
|
{
|
|
@@ -31553,7 +31549,7 @@ function WorkbenchTaskOutputs({
|
|
|
31553
31549
|
"aria-label": ariaLabel,
|
|
31554
31550
|
tabIndex: 0,
|
|
31555
31551
|
className: cn(
|
|
31556
|
-
"flex w-full min-w-0 snap-x snap-proximity items-center gap-
|
|
31552
|
+
"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",
|
|
31557
31553
|
className
|
|
31558
31554
|
),
|
|
31559
31555
|
children: [
|
|
@@ -31585,7 +31581,7 @@ function WorkbenchTaskOutputs({
|
|
|
31585
31581
|
) : /* @__PURE__ */ jsx(
|
|
31586
31582
|
"pre",
|
|
31587
31583
|
{
|
|
31588
|
-
className: "h-60 w-full min-w-0 shrink-0 snap-start overflow-auto whitespace-pre-wrap break-words rounded-
|
|
31584
|
+
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",
|
|
31589
31585
|
children: item.content
|
|
31590
31586
|
},
|
|
31591
31587
|
item.id
|
|
@@ -31608,7 +31604,7 @@ function WorkbenchTaskOutputs({
|
|
|
31608
31604
|
}
|
|
31609
31605
|
)
|
|
31610
31606
|
}
|
|
31611
|
-
) : /* @__PURE__ */ jsx("div", { className: "flex min-h-60 w-full items-center justify-center rounded-
|
|
31607
|
+
) : /* @__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 }))
|
|
31612
31608
|
]
|
|
31613
31609
|
}
|
|
31614
31610
|
);
|
|
@@ -31703,7 +31699,7 @@ function WorkbenchTaskPrompt({
|
|
|
31703
31699
|
"div",
|
|
31704
31700
|
{
|
|
31705
31701
|
"data-monkeys-component": "workbench-task-prompt",
|
|
31706
|
-
className: cn("min-w-0", className),
|
|
31702
|
+
className: cn("min-w-0 font-[family-name:var(--font-sans)] text-sm leading-5", className),
|
|
31707
31703
|
children: [
|
|
31708
31704
|
/* @__PURE__ */ jsx(
|
|
31709
31705
|
"p",
|
|
@@ -31711,7 +31707,7 @@ function WorkbenchTaskPrompt({
|
|
|
31711
31707
|
ref,
|
|
31712
31708
|
id,
|
|
31713
31709
|
className: cn(
|
|
31714
|
-
"whitespace-pre-wrap break-words text-sm leading-
|
|
31710
|
+
"whitespace-pre-wrap break-words text-sm leading-5 text-foreground [overflow-wrap:anywhere]",
|
|
31715
31711
|
!expanded && "line-clamp-3"
|
|
31716
31712
|
),
|
|
31717
31713
|
children: content
|
|
@@ -31724,7 +31720,7 @@ function WorkbenchTaskPrompt({
|
|
|
31724
31720
|
"aria-expanded": expanded,
|
|
31725
31721
|
"aria-controls": id,
|
|
31726
31722
|
onClick: () => setExpanded((value) => !value),
|
|
31727
|
-
className: "mt-2 inline-flex min-h-8 items-center gap-1 rounded px-1 text-sm font-
|
|
31723
|
+
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",
|
|
31728
31724
|
children: [
|
|
31729
31725
|
expanded ? labels.less : labels.more,
|
|
31730
31726
|
expanded ? /* @__PURE__ */ jsx(ChevronUp, { "aria-hidden": "true", className: "size-4" }) : /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true", className: "size-4" })
|