@axis-ds/agentic-ui 1.2.0 → 1.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/dist/agent-avatar/index.js +6 -6
- package/dist/agent-avatar/index.mjs +1 -1
- package/dist/approval-card/index.js +8 -8
- package/dist/approval-card/index.mjs +1 -1
- package/dist/attachment-card/index.js +2 -2
- package/dist/attachment-card/index.mjs +1 -1
- package/dist/{chunk-FPOHPDZ2.mjs → chunk-2A5QQFYL.mjs} +2 -2
- package/dist/{chunk-RGBY6EEU.mjs → chunk-4CMUEGLK.mjs} +1 -1
- package/dist/{chunk-ENIWC4WX.mjs → chunk-7HTVJ6MK.mjs} +8 -8
- package/dist/{chunk-657RY6MM.mjs → chunk-KPRUFC34.mjs} +1 -1
- package/dist/{chunk-RGPKTWK4.mjs → chunk-M325YRLE.mjs} +5 -5
- package/dist/{chunk-H6VXOP7U.mjs → chunk-QS6GQNSE.mjs} +5 -5
- package/dist/{chunk-KH4OXDEV.mjs → chunk-RPW4Y5G2.mjs} +6 -6
- package/dist/{chunk-7UGSLEYG.mjs → chunk-UDL4M5RP.mjs} +3 -3
- package/dist/{chunk-FAJF5RCY.mjs → chunk-WFYQINWD.mjs} +4 -4
- package/dist/{chunk-LZKOCELQ.mjs → chunk-WMQGJIAF.mjs} +7 -7
- package/dist/{chunk-PWKN5UHT.mjs → chunk-WUA5Q76Y.mjs} +20 -20
- package/dist/{chunk-ETFET3LT.mjs → chunk-YHCEJ2L5.mjs} +2 -2
- package/dist/{chunk-NRBIHROX.mjs → chunk-ZFU34YYY.mjs} +6 -6
- package/dist/code-block/index.js +1 -1
- package/dist/code-block/index.mjs +1 -1
- package/dist/diff-viewer/index.js +6 -6
- package/dist/diff-viewer/index.mjs +1 -1
- package/dist/feedback-buttons/index.js +2 -2
- package/dist/feedback-buttons/index.mjs +1 -1
- package/dist/index.js +70 -70
- package/dist/index.mjs +18 -18
- package/dist/message-bubble/index.js +1 -1
- package/dist/message-bubble/index.mjs +1 -1
- package/dist/plan-card/index.js +20 -20
- package/dist/plan-card/index.mjs +1 -1
- package/dist/recovery-banner/index.js +3 -3
- package/dist/recovery-banner/index.mjs +1 -1
- package/dist/run-progress/index.js +7 -7
- package/dist/run-progress/index.mjs +1 -1
- package/dist/step-timeline/index.js +5 -5
- package/dist/step-timeline/index.mjs +1 -1
- package/dist/token-usage-indicator/index.js +5 -5
- package/dist/token-usage-indicator/index.mjs +1 -1
- package/dist/tool-call-card/index.js +4 -4
- package/dist/tool-call-card/index.mjs +1 -1
- package/package.json +4 -4
|
@@ -50,10 +50,10 @@ var STATUS_LABELS = {
|
|
|
50
50
|
// src/run-progress/index.tsx
|
|
51
51
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
52
52
|
var statusColors = {
|
|
53
|
-
pending: "bg-[var(--axis-
|
|
54
|
-
running: "bg-[var(--axis-
|
|
55
|
-
complete: "bg-[var(--axis-
|
|
56
|
-
error: "bg-[var(--axis-
|
|
53
|
+
pending: "bg-[var(--axis-status-neutral-muted)]",
|
|
54
|
+
running: "bg-[var(--axis-status-running)] animate-pulse",
|
|
55
|
+
complete: "bg-[var(--axis-status-success)]",
|
|
56
|
+
error: "bg-[var(--axis-status-error)]"
|
|
57
57
|
};
|
|
58
58
|
var statusIcons = {
|
|
59
59
|
pending: null,
|
|
@@ -87,7 +87,7 @@ function RunProgress({
|
|
|
87
87
|
children: [
|
|
88
88
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between mb-4", children: [
|
|
89
89
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
90
|
-
status === "running" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-2 h-2 rounded-full bg-[var(--axis-
|
|
90
|
+
status === "running" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-2 h-2 rounded-full bg-[var(--axis-status-running)] animate-pulse" }),
|
|
91
91
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "text-sm font-medium text-[var(--axis-text-primary)]", children: [
|
|
92
92
|
status === "idle" && "\uB300\uAE30 \uC911",
|
|
93
93
|
status === "running" && "\uC2E4\uD589 \uC911",
|
|
@@ -112,7 +112,7 @@ function RunProgress({
|
|
|
112
112
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
113
113
|
"div",
|
|
114
114
|
{
|
|
115
|
-
className: "h-full rounded-full bg-[var(--axis-
|
|
115
|
+
className: "h-full rounded-full bg-[var(--axis-status-running)] transition-all duration-300",
|
|
116
116
|
style: { width: `${progressPercent}%` }
|
|
117
117
|
}
|
|
118
118
|
)
|
|
@@ -164,7 +164,7 @@ function RunProgress({
|
|
|
164
164
|
"button",
|
|
165
165
|
{
|
|
166
166
|
onClick: onRetry,
|
|
167
|
-
className: "px-3 py-1.5 text-sm rounded-md bg-[var(--axis-
|
|
167
|
+
className: "px-3 py-1.5 text-sm rounded-md bg-[var(--axis-button-bg-default)] text-[var(--axis-button-text-default)] hover:bg-[var(--axis-button-bg-hover)]",
|
|
168
168
|
children: "\uC7AC\uC2DC\uB3C4"
|
|
169
169
|
}
|
|
170
170
|
)
|
|
@@ -79,11 +79,11 @@ function StepTimeline({
|
|
|
79
79
|
"aria-hidden": "true",
|
|
80
80
|
className: (0, import_ui_react.cn)(
|
|
81
81
|
"relative z-10 w-5 h-5 rounded-full flex items-center justify-center",
|
|
82
|
-
step.status === "complete" && "bg-[var(--axis-
|
|
83
|
-
step.status === "running" && "bg-[var(--axis-
|
|
84
|
-
step.status === "error" && "bg-[var(--axis-
|
|
85
|
-
step.status === "skipped" && "bg-[var(--axis-
|
|
86
|
-
step.status === "pending" && "bg-[var(--axis-
|
|
82
|
+
step.status === "complete" && "bg-[var(--axis-status-success)]",
|
|
83
|
+
step.status === "running" && "bg-[var(--axis-status-running)] animate-pulse",
|
|
84
|
+
step.status === "error" && "bg-[var(--axis-status-error)]",
|
|
85
|
+
step.status === "skipped" && "bg-[var(--axis-status-neutral-muted)]",
|
|
86
|
+
step.status === "pending" && "bg-[var(--axis-status-neutral-muted)]"
|
|
87
87
|
),
|
|
88
88
|
children: step.status === "complete" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className: "w-3 h-3 text-white", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M5 13l4 4L19 7" }) })
|
|
89
89
|
}
|
|
@@ -36,13 +36,13 @@ function TokenUsageIndicator({
|
|
|
36
36
|
const ratio = max > 0 ? current / max : 0;
|
|
37
37
|
const percentage = Math.min(Math.round(ratio * 100), 100);
|
|
38
38
|
const getColor = () => {
|
|
39
|
-
if (ratio >= 1) return "bg-[var(--axis-
|
|
40
|
-
if (ratio >= warningThreshold) return "bg-[var(--axis-
|
|
41
|
-
return "bg-[var(--axis-
|
|
39
|
+
if (ratio >= 1) return "bg-[var(--axis-status-error)]";
|
|
40
|
+
if (ratio >= warningThreshold) return "bg-[var(--axis-status-warning)]";
|
|
41
|
+
return "bg-[var(--axis-status-success)]";
|
|
42
42
|
};
|
|
43
43
|
const getTextColor = () => {
|
|
44
|
-
if (ratio >= 1) return "text-[var(--axis-
|
|
45
|
-
if (ratio >= warningThreshold) return "text-[var(--axis-
|
|
44
|
+
if (ratio >= 1) return "text-[var(--axis-status-error)]";
|
|
45
|
+
if (ratio >= warningThreshold) return "text-[var(--axis-status-warning)]";
|
|
46
46
|
return "text-[var(--axis-text-secondary)]";
|
|
47
47
|
};
|
|
48
48
|
const formatNumber = (n) => n >= 1e3 ? `${(n / 1e3).toFixed(1)}k` : String(n);
|
|
@@ -51,22 +51,22 @@ var STATUS_LABELS = {
|
|
|
51
51
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
52
52
|
var statusConfig = {
|
|
53
53
|
pending: {
|
|
54
|
-
color: "text-[var(--axis-
|
|
54
|
+
color: "text-[var(--axis-status-neutral)]",
|
|
55
55
|
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "10", strokeWidth: 2 }) })
|
|
56
56
|
},
|
|
57
57
|
running: {
|
|
58
|
-
color: "text-[var(--axis-
|
|
58
|
+
color: "text-[var(--axis-status-running)]",
|
|
59
59
|
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { className: "w-4 h-4 animate-spin", viewBox: "0 0 24 24", fill: "none", children: [
|
|
60
60
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
|
|
61
61
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z" })
|
|
62
62
|
] })
|
|
63
63
|
},
|
|
64
64
|
success: {
|
|
65
|
-
color: "text-[var(--axis-
|
|
65
|
+
color: "text-[var(--axis-status-success)]",
|
|
66
66
|
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) })
|
|
67
67
|
},
|
|
68
68
|
error: {
|
|
69
|
-
color: "text-[var(--axis-
|
|
69
|
+
color: "text-[var(--axis-status-error)]",
|
|
70
70
|
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
|
|
71
71
|
}
|
|
72
72
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axis-ds/agentic-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "AXIS Design System - Agentic UI Components for AI/LLM Applications",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"clsx": "^2.1.0",
|
|
89
89
|
"framer-motion": "^11.0.0",
|
|
90
90
|
"tailwind-merge": "^2.5.0",
|
|
91
|
-
"@axis-ds/tokens": "1.2.
|
|
92
|
-
"@axis-ds/ui-react": "1.2.
|
|
91
|
+
"@axis-ds/tokens": "1.2.1",
|
|
92
|
+
"@axis-ds/ui-react": "1.2.1"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"license": "MIT",
|
|
119
119
|
"repository": {
|
|
120
120
|
"type": "git",
|
|
121
|
-
"url": "https://github.com/
|
|
121
|
+
"url": "https://github.com/IDEA-on-Action/AXIS-Design-System.git",
|
|
122
122
|
"directory": "packages/axis-agentic-ui"
|
|
123
123
|
},
|
|
124
124
|
"homepage": "https://axis.minu.best",
|