@yuva-devlab/ui 2.1.0 → 2.2.1
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/README.md +4 -3
- package/dist/components/checkpoint/checkpoint.css +6 -0
- package/dist/components/code-block/code-block.css +12 -0
- package/dist/components/file-tree/file-tree.css +39 -0
- package/dist/components/legal-footer/legal-footer.css +98 -0
- package/dist/components/legal-footer/legal-footer.mdx +38 -0
- package/dist/components/model-selector/model-selector.css +49 -0
- package/dist/components/multi-select/multi-select.css +12 -0
- package/dist/components/plan/plan.css +47 -0
- package/dist/components/prompt-input/prompt-input.css +7 -0
- package/dist/components/queue/queue.css +61 -0
- package/dist/components/search-input/search-input.css +12 -0
- package/dist/components/sources/sources.css +16 -0
- package/dist/components/stack-trace/stack-trace.css +19 -0
- package/dist/components/subagent/subagent.css +47 -0
- package/dist/components/terminal/terminal.css +17 -0
- package/dist/components/test-results/test-results.css +34 -0
- package/dist/components.css +478 -0
- package/dist/index.cjs +283 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -2
- package/dist/index.d.ts +26 -2
- package/dist/index.js +282 -90
- package/dist/index.js.map +1 -1
- package/dist/styles/components.css +478 -0
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -959,7 +959,7 @@ var Checkpoint = React14.forwardRef(
|
|
|
959
959
|
...props
|
|
960
960
|
}, ref) => {
|
|
961
961
|
return /* @__PURE__ */ jsx14("div", { ref, className: cn("dl-checkpoint", className), ...props, children: /* @__PURE__ */ jsxs7("div", { className: "dl-checkpoint__content", children: [
|
|
962
|
-
/* @__PURE__ */ jsx14(History, { className: "
|
|
962
|
+
/* @__PURE__ */ jsx14(History, { className: "dl-checkpoint__icon" }),
|
|
963
963
|
/* @__PURE__ */ jsx14("span", { children: label }),
|
|
964
964
|
onRestore && /* @__PURE__ */ jsx14(
|
|
965
965
|
"button",
|
|
@@ -1243,11 +1243,11 @@ var CodeBlockCopyButton = React20.forwardRef(({ className, code = "", onClick, .
|
|
|
1243
1243
|
});
|
|
1244
1244
|
CodeBlockCopyButton.displayName = "CodeBlockCopyButton";
|
|
1245
1245
|
var CodeBlockHeader = React20.forwardRef(({ className, filename, language, children, ...props }, ref) => /* @__PURE__ */ jsxs11("div", { ref, className: cn("dl-code-block__header", className), ...props, children: [
|
|
1246
|
-
/* @__PURE__ */ jsxs11("div", { className: "
|
|
1246
|
+
/* @__PURE__ */ jsxs11("div", { className: "dl-code-block__header-meta", children: [
|
|
1247
1247
|
filename && /* @__PURE__ */ jsx19("span", { className: "dl-code-block__filename", children: filename }),
|
|
1248
1248
|
language && /* @__PURE__ */ jsx19("span", { className: "dl-code-block__language", children: language })
|
|
1249
1249
|
] }),
|
|
1250
|
-
/* @__PURE__ */ jsx19("div", { className: "
|
|
1250
|
+
/* @__PURE__ */ jsx19("div", { className: "dl-code-block__header-actions", children })
|
|
1251
1251
|
] }));
|
|
1252
1252
|
CodeBlockHeader.displayName = "CodeBlockHeader";
|
|
1253
1253
|
var CodeBlockContent = React20.forwardRef(
|
|
@@ -2706,16 +2706,10 @@ var SearchInput = React42.forwardRef(
|
|
|
2706
2706
|
onClick: onClear,
|
|
2707
2707
|
"aria-label": "Clear search query",
|
|
2708
2708
|
tabIndex: -1,
|
|
2709
|
-
children: /* @__PURE__ */ jsx44(X2, { className: "
|
|
2709
|
+
children: /* @__PURE__ */ jsx44(X2, { className: "dl-search-icon", "aria-hidden": "true" })
|
|
2710
2710
|
}
|
|
2711
2711
|
) : null;
|
|
2712
|
-
const trailingIcon = loading ? /* @__PURE__ */ jsx44(
|
|
2713
|
-
Loader22,
|
|
2714
|
-
{
|
|
2715
|
-
className: "size-4 animate-spin text-muted-foreground",
|
|
2716
|
-
"aria-hidden": "true"
|
|
2717
|
-
}
|
|
2718
|
-
) : clearButton ?? endIcon;
|
|
2712
|
+
const trailingIcon = loading ? /* @__PURE__ */ jsx44(Loader22, { className: "dl-search-spinner", "aria-hidden": "true" }) : clearButton ?? endIcon;
|
|
2719
2713
|
return /* @__PURE__ */ jsx44(
|
|
2720
2714
|
Input,
|
|
2721
2715
|
{
|
|
@@ -3049,7 +3043,7 @@ function MultiSelect({
|
|
|
3049
3043
|
onClick: (e) => handleRemove(e, opt.value),
|
|
3050
3044
|
"aria-label": `Remove ${opt.label}`,
|
|
3051
3045
|
className: "dl-multi-select-chip__remove",
|
|
3052
|
-
children: /* @__PURE__ */ jsx49(X3, { className: "
|
|
3046
|
+
children: /* @__PURE__ */ jsx49(X3, { className: "dl-multi-select-chip__icon" })
|
|
3053
3047
|
}
|
|
3054
3048
|
)
|
|
3055
3049
|
] }, opt.value)),
|
|
@@ -3059,7 +3053,7 @@ function MultiSelect({
|
|
|
3059
3053
|
" more"
|
|
3060
3054
|
] })
|
|
3061
3055
|
] }) }),
|
|
3062
|
-
/* @__PURE__ */ jsx49(ChevronDown4, { className: "
|
|
3056
|
+
/* @__PURE__ */ jsx49(ChevronDown4, { className: "dl-multi-select-chevron" })
|
|
3063
3057
|
]
|
|
3064
3058
|
}
|
|
3065
3059
|
) }),
|
|
@@ -4887,7 +4881,7 @@ var PromptInput = React74.forwardRef(
|
|
|
4887
4881
|
...props,
|
|
4888
4882
|
children: [
|
|
4889
4883
|
files.length > 0 && /* @__PURE__ */ jsx78("div", { className: "dl-prompt-input__attachments", children: files.map((file) => /* @__PURE__ */ jsxs48("span", { className: "dl-prompt-input__chip", children: [
|
|
4890
|
-
/* @__PURE__ */ jsx78(FileText, { className: "
|
|
4884
|
+
/* @__PURE__ */ jsx78(FileText, { className: "dl-prompt-input__chip-icon" }),
|
|
4891
4885
|
/* @__PURE__ */ jsx78("span", { className: "dl-prompt-input__chip-name", children: file.name }),
|
|
4892
4886
|
/* @__PURE__ */ jsx78(
|
|
4893
4887
|
"button",
|
|
@@ -4896,7 +4890,7 @@ var PromptInput = React74.forwardRef(
|
|
|
4896
4890
|
onClick: () => handleRemoveFile(file.id),
|
|
4897
4891
|
"aria-label": `Remove ${file.name}`,
|
|
4898
4892
|
className: "dl-prompt-input__chip-remove",
|
|
4899
|
-
children: /* @__PURE__ */ jsx78(X5, { className: "
|
|
4893
|
+
children: /* @__PURE__ */ jsx78(X5, { className: "dl-prompt-input__chip-icon" })
|
|
4900
4894
|
}
|
|
4901
4895
|
)
|
|
4902
4896
|
] }, file.id)) }),
|
|
@@ -5149,18 +5143,18 @@ var TerminalHeader = React77.forwardRef(
|
|
|
5149
5143
|
className: cn("dl-terminal__header", className),
|
|
5150
5144
|
...props,
|
|
5151
5145
|
children: [
|
|
5152
|
-
/* @__PURE__ */ jsxs51("div", { className: "
|
|
5146
|
+
/* @__PURE__ */ jsxs51("div", { className: "dl-terminal__header-left", children: [
|
|
5153
5147
|
windowControls && /* @__PURE__ */ jsxs51("div", { className: "dl-terminal__dots", "aria-hidden": "true", children: [
|
|
5154
5148
|
/* @__PURE__ */ jsx81("span", { className: "dl-terminal__dot" }),
|
|
5155
5149
|
/* @__PURE__ */ jsx81("span", { className: "dl-terminal__dot" }),
|
|
5156
5150
|
/* @__PURE__ */ jsx81("span", { className: "dl-terminal__dot" })
|
|
5157
5151
|
] }),
|
|
5158
5152
|
/* @__PURE__ */ jsxs51("div", { className: "dl-terminal__title", children: [
|
|
5159
|
-
/* @__PURE__ */ jsx81(TerminalIcon, { className: "
|
|
5153
|
+
/* @__PURE__ */ jsx81(TerminalIcon, { className: "dl-terminal__icon" }),
|
|
5160
5154
|
/* @__PURE__ */ jsx81("span", { children: command ?? "Terminal" })
|
|
5161
5155
|
] })
|
|
5162
5156
|
] }),
|
|
5163
|
-
/* @__PURE__ */ jsxs51("div", { className: "
|
|
5157
|
+
/* @__PURE__ */ jsxs51("div", { className: "dl-terminal__header-actions", children: [
|
|
5164
5158
|
/* @__PURE__ */ jsx81(
|
|
5165
5159
|
"button",
|
|
5166
5160
|
{
|
|
@@ -5168,7 +5162,13 @@ var TerminalHeader = React77.forwardRef(
|
|
|
5168
5162
|
onClick: handleCopy,
|
|
5169
5163
|
"aria-label": copied ? "Copied" : "Copy output",
|
|
5170
5164
|
className: "dl-code-block__copy-btn",
|
|
5171
|
-
children: copied ? /* @__PURE__ */ jsx81(
|
|
5165
|
+
children: copied ? /* @__PURE__ */ jsx81(
|
|
5166
|
+
Check10,
|
|
5167
|
+
{
|
|
5168
|
+
className: "dl-terminal__icon",
|
|
5169
|
+
style: { color: "var(--success, #22c55e)" }
|
|
5170
|
+
}
|
|
5171
|
+
) : /* @__PURE__ */ jsx81(Copy3, { className: "dl-terminal__icon" })
|
|
5172
5172
|
}
|
|
5173
5173
|
),
|
|
5174
5174
|
children
|
|
@@ -5324,16 +5324,25 @@ var ModelSelector = React78.forwardRef(
|
|
|
5324
5324
|
"aria-haspopup": "listbox",
|
|
5325
5325
|
"aria-expanded": isOpen,
|
|
5326
5326
|
children: [
|
|
5327
|
-
/* @__PURE__ */ jsxs52("div", { className: "
|
|
5328
|
-
currentModel?.icon ?? /* @__PURE__ */ jsx82(
|
|
5329
|
-
|
|
5327
|
+
/* @__PURE__ */ jsxs52("div", { className: "dl-model-selector__trigger-label", children: [
|
|
5328
|
+
currentModel?.icon ?? /* @__PURE__ */ jsx82(
|
|
5329
|
+
Bot,
|
|
5330
|
+
{
|
|
5331
|
+
style: {
|
|
5332
|
+
width: "0.875rem",
|
|
5333
|
+
height: "0.875rem",
|
|
5334
|
+
color: "var(--primary)"
|
|
5335
|
+
}
|
|
5336
|
+
}
|
|
5337
|
+
),
|
|
5338
|
+
/* @__PURE__ */ jsx82("span", { style: { fontWeight: 600, color: "var(--foreground)" }, children: currentModel ? currentModel.name : placeholder })
|
|
5330
5339
|
] }),
|
|
5331
5340
|
/* @__PURE__ */ jsx82(
|
|
5332
5341
|
ChevronDown9,
|
|
5333
5342
|
{
|
|
5334
5343
|
className: cn(
|
|
5335
|
-
"
|
|
5336
|
-
isOpen && "
|
|
5344
|
+
"dl-model-selector__chevron",
|
|
5345
|
+
isOpen && "dl-model-selector__chevron--open"
|
|
5337
5346
|
)
|
|
5338
5347
|
}
|
|
5339
5348
|
)
|
|
@@ -5341,8 +5350,8 @@ var ModelSelector = React78.forwardRef(
|
|
|
5341
5350
|
}
|
|
5342
5351
|
),
|
|
5343
5352
|
isOpen && /* @__PURE__ */ jsxs52("div", { className: "dl-model-selector__content", role: "listbox", children: [
|
|
5344
|
-
models.length > 3 && /* @__PURE__ */ jsxs52("div", { className: "
|
|
5345
|
-
/* @__PURE__ */ jsx82(Search5, { className: "
|
|
5353
|
+
models.length > 3 && /* @__PURE__ */ jsxs52("div", { className: "dl-model-selector__search-wrapper", children: [
|
|
5354
|
+
/* @__PURE__ */ jsx82(Search5, { className: "dl-model-selector__search-icon" }),
|
|
5346
5355
|
/* @__PURE__ */ jsx82(
|
|
5347
5356
|
"input",
|
|
5348
5357
|
{
|
|
@@ -5350,12 +5359,13 @@ var ModelSelector = React78.forwardRef(
|
|
|
5350
5359
|
placeholder: "Filter models...",
|
|
5351
5360
|
value: query,
|
|
5352
5361
|
onChange: (e) => setQuery(e.target.value),
|
|
5353
|
-
className: "dl-model-selector__search
|
|
5362
|
+
className: "dl-model-selector__search",
|
|
5363
|
+
style: { width: "100%", paddingLeft: "1.75rem" },
|
|
5354
5364
|
autoFocus: true
|
|
5355
5365
|
}
|
|
5356
5366
|
)
|
|
5357
5367
|
] }),
|
|
5358
|
-
/* @__PURE__ */ jsx82("div", { className: "
|
|
5368
|
+
/* @__PURE__ */ jsx82("div", { className: "dl-model-selector__list", children: filteredModels.length === 0 ? /* @__PURE__ */ jsx82("div", { className: "dl-model-selector__empty", children: "No matching models found" }) : filteredModels.map((model) => {
|
|
5359
5369
|
const isSelected = model.id === activeId;
|
|
5360
5370
|
return /* @__PURE__ */ jsxs52(
|
|
5361
5371
|
"div",
|
|
@@ -5367,14 +5377,24 @@ var ModelSelector = React78.forwardRef(
|
|
|
5367
5377
|
className: cn(
|
|
5368
5378
|
"dl-model-selector__item",
|
|
5369
5379
|
isSelected && "dl-model-selector__item--active",
|
|
5370
|
-
model.disabled && "
|
|
5380
|
+
model.disabled && "dl-cursor-not-allowed"
|
|
5371
5381
|
),
|
|
5382
|
+
style: model.disabled ? { opacity: 0.5 } : void 0,
|
|
5372
5383
|
children: [
|
|
5373
5384
|
/* @__PURE__ */ jsxs52("div", { className: "dl-model-selector__item-info", children: [
|
|
5374
5385
|
/* @__PURE__ */ jsxs52("div", { className: "dl-model-selector__item-title", children: [
|
|
5375
|
-
model.icon ?? /* @__PURE__ */ jsx82(
|
|
5386
|
+
model.icon ?? /* @__PURE__ */ jsx82(
|
|
5387
|
+
Sparkles4,
|
|
5388
|
+
{
|
|
5389
|
+
style: {
|
|
5390
|
+
width: "0.75rem",
|
|
5391
|
+
height: "0.75rem",
|
|
5392
|
+
color: "var(--primary)"
|
|
5393
|
+
}
|
|
5394
|
+
}
|
|
5395
|
+
),
|
|
5376
5396
|
/* @__PURE__ */ jsx82("span", { children: model.name }),
|
|
5377
|
-
/* @__PURE__ */ jsxs52("span", { className: "
|
|
5397
|
+
/* @__PURE__ */ jsxs52("span", { className: "dl-model-selector__provider", children: [
|
|
5378
5398
|
"(",
|
|
5379
5399
|
model.provider,
|
|
5380
5400
|
")"
|
|
@@ -5434,11 +5454,11 @@ var PlanHeader = React79.forwardRef(
|
|
|
5434
5454
|
"span",
|
|
5435
5455
|
{
|
|
5436
5456
|
className: cn(
|
|
5437
|
-
"
|
|
5438
|
-
status === "completed" && "
|
|
5439
|
-
status === "in-progress" && "
|
|
5440
|
-
status === "failed" && "
|
|
5441
|
-
status === "pending" && "
|
|
5457
|
+
"dl-plan__status-chip",
|
|
5458
|
+
status === "completed" && "dl-plan__status-chip--completed",
|
|
5459
|
+
status === "in-progress" && "dl-plan__status-chip--in-progress",
|
|
5460
|
+
status === "failed" && "dl-plan__status-chip--failed",
|
|
5461
|
+
status === "pending" && "dl-plan__status-chip--pending"
|
|
5442
5462
|
),
|
|
5443
5463
|
children: status
|
|
5444
5464
|
}
|
|
@@ -5463,14 +5483,47 @@ var PlanTask = React79.forwardRef(
|
|
|
5463
5483
|
const renderIcon = () => {
|
|
5464
5484
|
switch (status) {
|
|
5465
5485
|
case "completed":
|
|
5466
|
-
return /* @__PURE__ */ jsx83(
|
|
5486
|
+
return /* @__PURE__ */ jsx83(
|
|
5487
|
+
CheckCircle24,
|
|
5488
|
+
{
|
|
5489
|
+
style: { width: "1rem", height: "1rem", color: "var(--success)" }
|
|
5490
|
+
}
|
|
5491
|
+
);
|
|
5467
5492
|
case "running":
|
|
5468
|
-
return /* @__PURE__ */ jsx83(
|
|
5493
|
+
return /* @__PURE__ */ jsx83(
|
|
5494
|
+
Loader25,
|
|
5495
|
+
{
|
|
5496
|
+
style: {
|
|
5497
|
+
width: "1rem",
|
|
5498
|
+
height: "1rem",
|
|
5499
|
+
color: "var(--primary)",
|
|
5500
|
+
animation: "spin 1s linear infinite"
|
|
5501
|
+
}
|
|
5502
|
+
}
|
|
5503
|
+
);
|
|
5469
5504
|
case "failed":
|
|
5470
|
-
return /* @__PURE__ */ jsx83(
|
|
5505
|
+
return /* @__PURE__ */ jsx83(
|
|
5506
|
+
XCircle,
|
|
5507
|
+
{
|
|
5508
|
+
style: {
|
|
5509
|
+
width: "1rem",
|
|
5510
|
+
height: "1rem",
|
|
5511
|
+
color: "var(--destructive)"
|
|
5512
|
+
}
|
|
5513
|
+
}
|
|
5514
|
+
);
|
|
5471
5515
|
case "pending":
|
|
5472
5516
|
default:
|
|
5473
|
-
return /* @__PURE__ */ jsx83(
|
|
5517
|
+
return /* @__PURE__ */ jsx83(
|
|
5518
|
+
Circle6,
|
|
5519
|
+
{
|
|
5520
|
+
style: {
|
|
5521
|
+
width: "1rem",
|
|
5522
|
+
height: "1rem",
|
|
5523
|
+
color: "var(--muted-foreground)"
|
|
5524
|
+
}
|
|
5525
|
+
}
|
|
5526
|
+
);
|
|
5474
5527
|
}
|
|
5475
5528
|
};
|
|
5476
5529
|
return /* @__PURE__ */ jsxs53(
|
|
@@ -5493,14 +5546,14 @@ var PlanTask = React79.forwardRef(
|
|
|
5493
5546
|
/* @__PURE__ */ jsx83("div", { className: "dl-plan__task-icon", children: renderIcon() }),
|
|
5494
5547
|
/* @__PURE__ */ jsxs53("div", { className: "dl-plan__task-body", children: [
|
|
5495
5548
|
/* @__PURE__ */ jsx83("span", { className: "dl-plan__task-title", children: title }),
|
|
5496
|
-
description && !expanded && /* @__PURE__ */ jsx83("span", { className: "dl-plan__task-desc line-clamp-1", children: description })
|
|
5549
|
+
description && !expanded && /* @__PURE__ */ jsx83("span", { className: "dl-plan__task-desc dl-line-clamp-1", children: description })
|
|
5497
5550
|
] }),
|
|
5498
5551
|
hasChildren && /* @__PURE__ */ jsx83(
|
|
5499
5552
|
ChevronRight6,
|
|
5500
5553
|
{
|
|
5501
5554
|
className: cn(
|
|
5502
|
-
"
|
|
5503
|
-
expanded && "
|
|
5555
|
+
"dl-plan__chevron",
|
|
5556
|
+
expanded && "dl-plan__chevron--expanded"
|
|
5504
5557
|
)
|
|
5505
5558
|
}
|
|
5506
5559
|
)
|
|
@@ -5508,7 +5561,7 @@ var PlanTask = React79.forwardRef(
|
|
|
5508
5561
|
}
|
|
5509
5562
|
),
|
|
5510
5563
|
expanded && hasChildren && /* @__PURE__ */ jsxs53("div", { className: "dl-plan__task-details", children: [
|
|
5511
|
-
description && /* @__PURE__ */ jsx83("div", { className: "
|
|
5564
|
+
description && /* @__PURE__ */ jsx83("div", { className: "dl-plan__desc-block", children: description }),
|
|
5512
5565
|
children
|
|
5513
5566
|
] })
|
|
5514
5567
|
]
|
|
@@ -5586,9 +5639,9 @@ var SourceCard = React80.forwardRef(
|
|
|
5586
5639
|
children: [
|
|
5587
5640
|
/* @__PURE__ */ jsxs54("div", { className: "dl-source-card__meta", children: [
|
|
5588
5641
|
/* @__PURE__ */ jsx84("span", { className: "dl-source-card__index", children: source.index }),
|
|
5589
|
-
/* @__PURE__ */ jsx84(Globe, { className: "
|
|
5642
|
+
/* @__PURE__ */ jsx84(Globe, { className: "dl-source-card__icon" }),
|
|
5590
5643
|
/* @__PURE__ */ jsx84("span", { className: "dl-source-card__domain", children: domain }),
|
|
5591
|
-
/* @__PURE__ */ jsx84(ExternalLink, { className: "
|
|
5644
|
+
/* @__PURE__ */ jsx84(ExternalLink, { className: "dl-source-card__external" })
|
|
5592
5645
|
] }),
|
|
5593
5646
|
/* @__PURE__ */ jsx84("div", { className: "dl-source-card__title", title: source.title, children: source.title })
|
|
5594
5647
|
]
|
|
@@ -5636,15 +5689,15 @@ import {
|
|
|
5636
5689
|
import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
5637
5690
|
var getFileIcon = (name) => {
|
|
5638
5691
|
if (name.endsWith(".ts") || name.endsWith(".tsx") || name.endsWith(".js") || name.endsWith(".jsx")) {
|
|
5639
|
-
return /* @__PURE__ */ jsx85(FileCode, { className: "
|
|
5692
|
+
return /* @__PURE__ */ jsx85(FileCode, { className: "dl-file-tree__glyph dl-file-tree__glyph--primary" });
|
|
5640
5693
|
}
|
|
5641
5694
|
if (name.endsWith(".json")) {
|
|
5642
|
-
return /* @__PURE__ */ jsx85(FileJson, { className: "
|
|
5695
|
+
return /* @__PURE__ */ jsx85(FileJson, { className: "dl-file-tree__glyph dl-file-tree__glyph--warning" });
|
|
5643
5696
|
}
|
|
5644
5697
|
if (name.endsWith(".md") || name.endsWith(".mdx")) {
|
|
5645
|
-
return /* @__PURE__ */ jsx85(FileText2, { className: "
|
|
5698
|
+
return /* @__PURE__ */ jsx85(FileText2, { className: "dl-file-tree__glyph dl-file-tree__glyph--info" });
|
|
5646
5699
|
}
|
|
5647
|
-
return /* @__PURE__ */ jsx85(File, { className: "
|
|
5700
|
+
return /* @__PURE__ */ jsx85(File, { className: "dl-file-tree__glyph dl-file-tree__glyph--muted" });
|
|
5648
5701
|
};
|
|
5649
5702
|
var FileTreeNode = React81.forwardRef(
|
|
5650
5703
|
({ className, item, level = 0, selectedId, onSelect, ...props }, ref) => {
|
|
@@ -5658,7 +5711,7 @@ var FileTreeNode = React81.forwardRef(
|
|
|
5658
5711
|
}
|
|
5659
5712
|
onSelect?.(item);
|
|
5660
5713
|
};
|
|
5661
|
-
return /* @__PURE__ */ jsxs55("div", { ref, className: cn("
|
|
5714
|
+
return /* @__PURE__ */ jsxs55("div", { ref, className: cn("dl-file-tree__item", className), ...props, children: [
|
|
5662
5715
|
/* @__PURE__ */ jsxs55(
|
|
5663
5716
|
"div",
|
|
5664
5717
|
{
|
|
@@ -5672,12 +5725,12 @@ var FileTreeNode = React81.forwardRef(
|
|
|
5672
5725
|
ChevronRight7,
|
|
5673
5726
|
{
|
|
5674
5727
|
className: cn(
|
|
5675
|
-
"
|
|
5676
|
-
isOpen && "
|
|
5728
|
+
"dl-file-tree__chevron",
|
|
5729
|
+
isOpen && "dl-file-tree__chevron--open"
|
|
5677
5730
|
)
|
|
5678
5731
|
}
|
|
5679
5732
|
),
|
|
5680
|
-
/* @__PURE__ */ jsx85("span", { className: "dl-file-tree__icon", children: isFolder ? isOpen ? /* @__PURE__ */ jsx85(FolderOpen, { className: "
|
|
5733
|
+
/* @__PURE__ */ jsx85("span", { className: "dl-file-tree__icon", children: isFolder ? isOpen ? /* @__PURE__ */ jsx85(FolderOpen, { className: "dl-file-tree__glyph dl-file-tree__glyph--warning" }) : /* @__PURE__ */ jsx85(Folder, { className: "dl-file-tree__glyph dl-file-tree__glyph--warning" }) : getFileIcon(item.name) }),
|
|
5681
5734
|
/* @__PURE__ */ jsx85("span", { className: "dl-file-tree__name", children: item.name })
|
|
5682
5735
|
]
|
|
5683
5736
|
}
|
|
@@ -5752,13 +5805,13 @@ var StackFrame = React82.forwardRef(
|
|
|
5752
5805
|
className: "dl-stack-frame__header",
|
|
5753
5806
|
onClick: () => hasSnippet && setExpanded((prev) => !prev),
|
|
5754
5807
|
children: [
|
|
5755
|
-
/* @__PURE__ */ jsxs56("div", { className: "
|
|
5808
|
+
/* @__PURE__ */ jsxs56("div", { className: "dl-stack-frame__fn-wrapper", children: [
|
|
5756
5809
|
hasSnippet && /* @__PURE__ */ jsx86(
|
|
5757
5810
|
ChevronRight8,
|
|
5758
5811
|
{
|
|
5759
5812
|
className: cn(
|
|
5760
|
-
"
|
|
5761
|
-
expanded && "
|
|
5813
|
+
"dl-stack-frame__chevron",
|
|
5814
|
+
expanded && "dl-stack-frame__chevron--expanded"
|
|
5762
5815
|
)
|
|
5763
5816
|
}
|
|
5764
5817
|
),
|
|
@@ -5843,24 +5896,33 @@ import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
|
5843
5896
|
var getStatusBadge = (status) => {
|
|
5844
5897
|
switch (status) {
|
|
5845
5898
|
case "running":
|
|
5846
|
-
return /* @__PURE__ */ jsxs57("span", { className: "
|
|
5847
|
-
/* @__PURE__ */ jsx87(
|
|
5899
|
+
return /* @__PURE__ */ jsxs57("span", { className: "dl-subagent__status dl-subagent__status--running", children: [
|
|
5900
|
+
/* @__PURE__ */ jsx87(
|
|
5901
|
+
Loader26,
|
|
5902
|
+
{
|
|
5903
|
+
style: {
|
|
5904
|
+
width: "0.75rem",
|
|
5905
|
+
height: "0.75rem",
|
|
5906
|
+
animation: "spin 1s linear infinite"
|
|
5907
|
+
}
|
|
5908
|
+
}
|
|
5909
|
+
),
|
|
5848
5910
|
/* @__PURE__ */ jsx87("span", { children: "Running" })
|
|
5849
5911
|
] });
|
|
5850
5912
|
case "completed":
|
|
5851
|
-
return /* @__PURE__ */ jsxs57("span", { className: "
|
|
5852
|
-
/* @__PURE__ */ jsx87(CheckCircle25, {
|
|
5913
|
+
return /* @__PURE__ */ jsxs57("span", { className: "dl-subagent__status dl-subagent__status--completed", children: [
|
|
5914
|
+
/* @__PURE__ */ jsx87(CheckCircle25, { style: { width: "0.75rem", height: "0.75rem" } }),
|
|
5853
5915
|
/* @__PURE__ */ jsx87("span", { children: "Done" })
|
|
5854
5916
|
] });
|
|
5855
5917
|
case "failed":
|
|
5856
|
-
return /* @__PURE__ */ jsxs57("span", { className: "
|
|
5857
|
-
/* @__PURE__ */ jsx87(XCircle2, {
|
|
5918
|
+
return /* @__PURE__ */ jsxs57("span", { className: "dl-subagent__status dl-subagent__status--failed", children: [
|
|
5919
|
+
/* @__PURE__ */ jsx87(XCircle2, { style: { width: "0.75rem", height: "0.75rem" } }),
|
|
5858
5920
|
/* @__PURE__ */ jsx87("span", { children: "Failed" })
|
|
5859
5921
|
] });
|
|
5860
5922
|
case "idle":
|
|
5861
5923
|
default:
|
|
5862
|
-
return /* @__PURE__ */ jsxs57("span", { className: "
|
|
5863
|
-
/* @__PURE__ */ jsx87(Circle7, {
|
|
5924
|
+
return /* @__PURE__ */ jsxs57("span", { className: "dl-subagent__status dl-subagent__status--idle", children: [
|
|
5925
|
+
/* @__PURE__ */ jsx87(Circle7, { style: { width: "0.75rem", height: "0.75rem" } }),
|
|
5864
5926
|
/* @__PURE__ */ jsx87("span", { children: "Idle" })
|
|
5865
5927
|
] });
|
|
5866
5928
|
}
|
|
@@ -5894,8 +5956,8 @@ var Subagent = React83.forwardRef(
|
|
|
5894
5956
|
] })
|
|
5895
5957
|
] }),
|
|
5896
5958
|
/* @__PURE__ */ jsxs57("div", { className: "dl-subagent__badges", children: [
|
|
5897
|
-
model && /* @__PURE__ */ jsx87("span", { className: "
|
|
5898
|
-
conversationId && /* @__PURE__ */ jsxs57("span", { className: "
|
|
5959
|
+
model && /* @__PURE__ */ jsx87("span", { className: "dl-subagent__chip", children: model }),
|
|
5960
|
+
conversationId && /* @__PURE__ */ jsxs57("span", { className: "dl-subagent__chip", children: [
|
|
5899
5961
|
"#",
|
|
5900
5962
|
conversationId.slice(0, 6)
|
|
5901
5963
|
] }),
|
|
@@ -5904,8 +5966,8 @@ var Subagent = React83.forwardRef(
|
|
|
5904
5966
|
ChevronRight9,
|
|
5905
5967
|
{
|
|
5906
5968
|
className: cn(
|
|
5907
|
-
"
|
|
5908
|
-
open && "
|
|
5969
|
+
"dl-subagent__chevron",
|
|
5970
|
+
open && "dl-subagent__chevron--open"
|
|
5909
5971
|
)
|
|
5910
5972
|
}
|
|
5911
5973
|
)
|
|
@@ -6015,10 +6077,30 @@ var QueueItem = React85.forwardRef(
|
|
|
6015
6077
|
case "active":
|
|
6016
6078
|
return /* @__PURE__ */ jsx89(Loader27, { className: "size-3 text-primary animate-spin shrink-0" });
|
|
6017
6079
|
case "paused":
|
|
6018
|
-
return /* @__PURE__ */ jsx89(
|
|
6080
|
+
return /* @__PURE__ */ jsx89(
|
|
6081
|
+
Pause,
|
|
6082
|
+
{
|
|
6083
|
+
style: {
|
|
6084
|
+
width: "0.75rem",
|
|
6085
|
+
height: "0.75rem",
|
|
6086
|
+
color: "var(--warning, #eab308)",
|
|
6087
|
+
flexShrink: 0
|
|
6088
|
+
}
|
|
6089
|
+
}
|
|
6090
|
+
);
|
|
6019
6091
|
case "waiting":
|
|
6020
6092
|
default:
|
|
6021
|
-
return /* @__PURE__ */ jsx89(
|
|
6093
|
+
return /* @__PURE__ */ jsx89(
|
|
6094
|
+
Clock,
|
|
6095
|
+
{
|
|
6096
|
+
style: {
|
|
6097
|
+
width: "0.75rem",
|
|
6098
|
+
height: "0.75rem",
|
|
6099
|
+
color: "var(--muted-foreground)",
|
|
6100
|
+
flexShrink: 0
|
|
6101
|
+
}
|
|
6102
|
+
}
|
|
6103
|
+
);
|
|
6022
6104
|
}
|
|
6023
6105
|
};
|
|
6024
6106
|
return /* @__PURE__ */ jsxs59("div", { ref, className: cn("dl-queue-item", className), ...props, children: [
|
|
@@ -6032,23 +6114,23 @@ var QueueItem = React85.forwardRef(
|
|
|
6032
6114
|
"span",
|
|
6033
6115
|
{
|
|
6034
6116
|
className: cn(
|
|
6035
|
-
"
|
|
6036
|
-
task.priority === "high" && "
|
|
6037
|
-
task.priority === "normal" && "
|
|
6038
|
-
task.priority === "low" && "
|
|
6117
|
+
"dl-queue-item__priority",
|
|
6118
|
+
task.priority === "high" && "dl-queue-item__priority--high",
|
|
6119
|
+
task.priority === "normal" && "dl-queue-item__priority--normal",
|
|
6120
|
+
task.priority === "low" && "dl-queue-item__priority--low"
|
|
6039
6121
|
),
|
|
6040
6122
|
children: task.priority
|
|
6041
6123
|
}
|
|
6042
6124
|
),
|
|
6043
|
-
task.estimatedDuration && /* @__PURE__ */ jsx89("span", { className: "
|
|
6125
|
+
task.estimatedDuration && /* @__PURE__ */ jsx89("span", { className: "dl-queue-item__duration", children: task.estimatedDuration }),
|
|
6044
6126
|
onRemove && /* @__PURE__ */ jsx89(
|
|
6045
6127
|
"button",
|
|
6046
6128
|
{
|
|
6047
6129
|
type: "button",
|
|
6048
6130
|
onClick: onRemove,
|
|
6049
6131
|
"aria-label": "Remove task",
|
|
6050
|
-
className: "
|
|
6051
|
-
children: /* @__PURE__ */ jsx89(X6, {
|
|
6132
|
+
className: "dl-queue-item__remove-btn",
|
|
6133
|
+
children: /* @__PURE__ */ jsx89(X6, { style: { width: "0.875rem", height: "0.875rem" } })
|
|
6052
6134
|
}
|
|
6053
6135
|
)
|
|
6054
6136
|
] })
|
|
@@ -6067,11 +6149,16 @@ var Queue = React85.forwardRef(
|
|
|
6067
6149
|
}, ref) => {
|
|
6068
6150
|
return /* @__PURE__ */ jsxs59("div", { ref, className: cn("dl-queue", className), ...props, children: [
|
|
6069
6151
|
/* @__PURE__ */ jsxs59("div", { className: "dl-queue__header", children: [
|
|
6070
|
-
/* @__PURE__ */ jsxs59("div", { className: "
|
|
6071
|
-
/* @__PURE__ */ jsx89(
|
|
6152
|
+
/* @__PURE__ */ jsxs59("div", { className: "dl-queue__header-left", children: [
|
|
6153
|
+
/* @__PURE__ */ jsx89(
|
|
6154
|
+
ListOrdered,
|
|
6155
|
+
{
|
|
6156
|
+
style: { width: "1rem", height: "1rem", color: "var(--primary)" }
|
|
6157
|
+
}
|
|
6158
|
+
),
|
|
6072
6159
|
/* @__PURE__ */ jsx89("span", { children: title })
|
|
6073
6160
|
] }),
|
|
6074
|
-
/* @__PURE__ */ jsxs59("span", { className: "
|
|
6161
|
+
/* @__PURE__ */ jsxs59("span", { className: "dl-queue__header-count", children: [
|
|
6075
6162
|
tasks.length,
|
|
6076
6163
|
" item",
|
|
6077
6164
|
tasks.length === 1 ? "" : "s"
|
|
@@ -6114,21 +6201,31 @@ var TestCase = React86.forwardRef(
|
|
|
6114
6201
|
return /* @__PURE__ */ jsx90(XCircle3, { className: "size-4 text-destructive shrink-0" });
|
|
6115
6202
|
case "skipped":
|
|
6116
6203
|
default:
|
|
6117
|
-
return /* @__PURE__ */ jsx90(
|
|
6204
|
+
return /* @__PURE__ */ jsx90(
|
|
6205
|
+
MinusCircle,
|
|
6206
|
+
{
|
|
6207
|
+
style: {
|
|
6208
|
+
width: "1rem",
|
|
6209
|
+
height: "1rem",
|
|
6210
|
+
color: "var(--muted-foreground)",
|
|
6211
|
+
flexShrink: 0
|
|
6212
|
+
}
|
|
6213
|
+
}
|
|
6214
|
+
);
|
|
6118
6215
|
}
|
|
6119
6216
|
};
|
|
6120
6217
|
return /* @__PURE__ */ jsxs60("div", { ref, className: cn("dl-test-case", className), ...props, children: [
|
|
6121
6218
|
/* @__PURE__ */ jsxs60(
|
|
6122
6219
|
"div",
|
|
6123
6220
|
{
|
|
6124
|
-
className: cn("dl-test-case__row", hasError && "cursor-pointer"),
|
|
6221
|
+
className: cn("dl-test-case__row", hasError && "dl-cursor-pointer"),
|
|
6125
6222
|
onClick: () => hasError && setExpanded((prev) => !prev),
|
|
6126
6223
|
children: [
|
|
6127
6224
|
/* @__PURE__ */ jsxs60("div", { className: "dl-test-case__info", children: [
|
|
6128
6225
|
renderIcon(),
|
|
6129
6226
|
/* @__PURE__ */ jsx90("span", { className: "dl-test-case__name", children: test.name })
|
|
6130
6227
|
] }),
|
|
6131
|
-
/* @__PURE__ */ jsxs60("div", { className: "
|
|
6228
|
+
/* @__PURE__ */ jsxs60("div", { className: "dl-test-case__meta", children: [
|
|
6132
6229
|
test.durationMs !== void 0 && /* @__PURE__ */ jsxs60("span", { className: "dl-test-case__duration", children: [
|
|
6133
6230
|
test.durationMs,
|
|
6134
6231
|
"ms"
|
|
@@ -6137,8 +6234,8 @@ var TestCase = React86.forwardRef(
|
|
|
6137
6234
|
ChevronRight10,
|
|
6138
6235
|
{
|
|
6139
6236
|
className: cn(
|
|
6140
|
-
"
|
|
6141
|
-
expanded && "
|
|
6237
|
+
"dl-test-case__chevron",
|
|
6238
|
+
expanded && "dl-test-case__chevron--expanded"
|
|
6142
6239
|
)
|
|
6143
6240
|
}
|
|
6144
6241
|
)
|
|
@@ -6165,10 +6262,15 @@ var TestResults = React86.forwardRef(
|
|
|
6165
6262
|
const skipped = tests.filter((t) => t.status === "skipped").length;
|
|
6166
6263
|
return /* @__PURE__ */ jsxs60("div", { ref, className: cn("dl-test-results", className), ...props, children: [
|
|
6167
6264
|
/* @__PURE__ */ jsxs60("div", { className: "dl-test-results__header", children: [
|
|
6168
|
-
/* @__PURE__ */ jsxs60("div", { className: "
|
|
6169
|
-
/* @__PURE__ */ jsx90(
|
|
6170
|
-
|
|
6171
|
-
|
|
6265
|
+
/* @__PURE__ */ jsxs60("div", { className: "dl-test-results__header-left", children: [
|
|
6266
|
+
/* @__PURE__ */ jsx90(
|
|
6267
|
+
FlaskConical,
|
|
6268
|
+
{
|
|
6269
|
+
style: { width: "1rem", height: "1rem", color: "var(--primary)" }
|
|
6270
|
+
}
|
|
6271
|
+
),
|
|
6272
|
+
/* @__PURE__ */ jsx90("span", { className: "dl-test-results__title", children: title }),
|
|
6273
|
+
duration && /* @__PURE__ */ jsxs60("span", { className: "dl-test-results__duration", children: [
|
|
6172
6274
|
"in ",
|
|
6173
6275
|
duration
|
|
6174
6276
|
] })
|
|
@@ -6562,6 +6664,95 @@ var Container = React94.forwardRef(
|
|
|
6562
6664
|
}
|
|
6563
6665
|
);
|
|
6564
6666
|
Container.displayName = "Container";
|
|
6667
|
+
|
|
6668
|
+
// src/components/legal-footer/legal-footer.tsx
|
|
6669
|
+
import * as React95 from "react";
|
|
6670
|
+
import { jsx as jsx101, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
6671
|
+
var LegalFooter = React95.forwardRef(
|
|
6672
|
+
({
|
|
6673
|
+
appName,
|
|
6674
|
+
version,
|
|
6675
|
+
companyName = "Yuva Devlab",
|
|
6676
|
+
variant = "login",
|
|
6677
|
+
showLinks = true,
|
|
6678
|
+
termsHref = "#",
|
|
6679
|
+
privacyHref = "#",
|
|
6680
|
+
securityHref = "#",
|
|
6681
|
+
className,
|
|
6682
|
+
...props
|
|
6683
|
+
}, ref) => {
|
|
6684
|
+
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
6685
|
+
if (variant === "sidebar") {
|
|
6686
|
+
return /* @__PURE__ */ jsxs64(
|
|
6687
|
+
"div",
|
|
6688
|
+
{
|
|
6689
|
+
ref,
|
|
6690
|
+
className: cn("dl-legal-footer dl-legal-footer--sidebar", className),
|
|
6691
|
+
...props,
|
|
6692
|
+
children: [
|
|
6693
|
+
/* @__PURE__ */ jsx101("span", { children: appName ? `${appName} ${version ?? ""}`.trim() : version ?? "v1.0.0" }),
|
|
6694
|
+
/* @__PURE__ */ jsxs64("span", { children: [
|
|
6695
|
+
"\xA9 ",
|
|
6696
|
+
currentYear,
|
|
6697
|
+
" ",
|
|
6698
|
+
companyName
|
|
6699
|
+
] })
|
|
6700
|
+
]
|
|
6701
|
+
}
|
|
6702
|
+
);
|
|
6703
|
+
}
|
|
6704
|
+
if (variant === "settings") {
|
|
6705
|
+
return /* @__PURE__ */ jsxs64(
|
|
6706
|
+
"div",
|
|
6707
|
+
{
|
|
6708
|
+
ref,
|
|
6709
|
+
className: cn("dl-legal-footer dl-legal-footer--settings", className),
|
|
6710
|
+
...props,
|
|
6711
|
+
children: [
|
|
6712
|
+
/* @__PURE__ */ jsxs64("div", { className: "dl-legal-footer__meta-row", children: [
|
|
6713
|
+
/* @__PURE__ */ jsx101("span", { children: appName ?? companyName }),
|
|
6714
|
+
version && /* @__PURE__ */ jsx101("span", { className: "dl-legal-footer__version-badge", children: version })
|
|
6715
|
+
] }),
|
|
6716
|
+
/* @__PURE__ */ jsxs64("p", { className: "dl-legal-footer__copyright", children: [
|
|
6717
|
+
"\xA9 ",
|
|
6718
|
+
currentYear,
|
|
6719
|
+
" ",
|
|
6720
|
+
companyName,
|
|
6721
|
+
". All rights reserved."
|
|
6722
|
+
] })
|
|
6723
|
+
]
|
|
6724
|
+
}
|
|
6725
|
+
);
|
|
6726
|
+
}
|
|
6727
|
+
return /* @__PURE__ */ jsxs64(
|
|
6728
|
+
"footer",
|
|
6729
|
+
{
|
|
6730
|
+
ref,
|
|
6731
|
+
className: cn("dl-legal-footer dl-legal-footer--login", className),
|
|
6732
|
+
...props,
|
|
6733
|
+
children: [
|
|
6734
|
+
showLinks && /* @__PURE__ */ jsxs64("nav", { "aria-label": "Legal navigation", className: "dl-legal-footer__links", children: [
|
|
6735
|
+
appName && /* @__PURE__ */ jsx101("span", { className: "dl-legal-footer__app-name", children: appName }),
|
|
6736
|
+
appName && /* @__PURE__ */ jsx101("span", { className: "dl-legal-footer__divider", "aria-hidden": "true", children: "\u2022" }),
|
|
6737
|
+
/* @__PURE__ */ jsx101("a", { href: privacyHref, className: "dl-legal-footer__link", children: "Privacy" }),
|
|
6738
|
+
/* @__PURE__ */ jsx101("span", { className: "dl-legal-footer__divider", "aria-hidden": "true", children: "\u2022" }),
|
|
6739
|
+
/* @__PURE__ */ jsx101("a", { href: termsHref, className: "dl-legal-footer__link", children: "Terms" }),
|
|
6740
|
+
/* @__PURE__ */ jsx101("span", { className: "dl-legal-footer__divider", "aria-hidden": "true", children: "\u2022" }),
|
|
6741
|
+
/* @__PURE__ */ jsx101("a", { href: securityHref, className: "dl-legal-footer__link", children: "Security" })
|
|
6742
|
+
] }),
|
|
6743
|
+
/* @__PURE__ */ jsxs64("p", { className: "dl-legal-footer__copyright", children: [
|
|
6744
|
+
"\xA9 ",
|
|
6745
|
+
currentYear,
|
|
6746
|
+
" ",
|
|
6747
|
+
companyName,
|
|
6748
|
+
". All rights reserved."
|
|
6749
|
+
] })
|
|
6750
|
+
]
|
|
6751
|
+
}
|
|
6752
|
+
);
|
|
6753
|
+
}
|
|
6754
|
+
);
|
|
6755
|
+
LegalFooter.displayName = "LegalFooter";
|
|
6565
6756
|
export {
|
|
6566
6757
|
Accordion,
|
|
6567
6758
|
AccordionContent,
|
|
@@ -6729,6 +6920,7 @@ export {
|
|
|
6729
6920
|
Kbd,
|
|
6730
6921
|
KbdGroup,
|
|
6731
6922
|
Label3 as Label,
|
|
6923
|
+
LegalFooter,
|
|
6732
6924
|
LoadingState,
|
|
6733
6925
|
Menubar,
|
|
6734
6926
|
MenubarCheckboxItem,
|