@datatechsolutions/ui 2.11.72 → 2.11.74

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.
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkUZ3CMNUJ_js = require('./chunk-UZ3CMNUJ.js');
5
4
  var chunkYXN2K77G_js = require('./chunk-YXN2K77G.js');
6
5
  var chunkS7KHTUHA_js = require('./chunk-S7KHTUHA.js');
6
+ var chunkUZ3CMNUJ_js = require('./chunk-UZ3CMNUJ.js');
7
7
  var Headless6 = require('@headlessui/react');
8
8
  var clsx = require('clsx');
9
9
  var React12 = require('react');
@@ -16595,76 +16595,70 @@ function DepartmentWorkflowDemo({
16595
16595
  )
16596
16596
  ] })
16597
16597
  ] }),
16598
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full items-center overflow-x-auto px-6 py-8", children: [
16598
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full items-center overflow-x-auto px-4 py-6", children: [
16599
16599
  /* @__PURE__ */ jsxRuntime.jsx("style", { children: `
16600
16600
  @keyframes deptGlow { 0%, 100% { box-shadow: 0 0 12px var(--glow); } 50% { box-shadow: 0 0 28px var(--glow); } }
16601
16601
  @keyframes deptEdge { to { stroke-dashoffset: -16; } }
16602
16602
  ` }),
16603
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-stretch gap-0 min-w-full justify-center", children: columns.map((col, colIdx) => {
16603
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto flex items-center gap-0", children: columns.map((col, colIdx) => {
16604
16604
  const isStepActive = stepIndex === col.stepIndex;
16605
16605
  const isStepDone = stepIndex > col.stepIndex;
16606
16606
  const showsConnector = colIdx > 0;
16607
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-stretch", children: [
16608
- showsConnector && /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "36", height: "100", className: "self-center shrink-0", viewBox: "0 0 36 100", children: [
16609
- /* @__PURE__ */ jsxRuntime.jsx(
16610
- "line",
16607
+ const isParallel = col.nodes.length > 1;
16608
+ const nodeWidth = isParallel ? "w-[170px]" : "w-[200px]";
16609
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-0", children: [
16610
+ showsConnector && /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "40", height: "2", className: "mx-1 shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
16611
+ "line",
16612
+ {
16613
+ x1: "0",
16614
+ y1: "1",
16615
+ x2: "40",
16616
+ y2: "1",
16617
+ stroke: isStepDone ? t.completeEdgeStroke : isStepActive ? t.activeEdgeStroke : "#334155",
16618
+ strokeWidth: "2",
16619
+ strokeDasharray: "5 3",
16620
+ style: { animation: isStepActive ? "deptEdge 0.8s linear infinite" : "none" }
16621
+ }
16622
+ ) }),
16623
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex ${isParallel ? "flex-col gap-2" : ""}`, children: col.nodes.map((node2) => {
16624
+ const status = getStatus(node2);
16625
+ const meta = getNodeMeta(node2.type);
16626
+ const avatar = nodeAvatars?.[node2.id];
16627
+ const statusClass = status === "running" ? `scale-[1.03] ring-2 ${t.activeRing}` : status === "complete" ? "ring-1 ring-emerald-500/40" : "opacity-50";
16628
+ const tagBadge = meta.tag === "agent" || meta.tag === "agent.tool" ? "bg-purple-500/20 text-purple-700 dark:text-purple-300" : meta.tag === "datasource" || meta.tag === "kb" || meta.tag === "entity" ? "bg-sky-500/20 text-sky-700 dark:text-sky-300" : meta.tag === "http" ? "bg-cyan-500/20 text-cyan-700 dark:text-cyan-300" : meta.tag === "code" || meta.tag === "template" ? "bg-amber-500/20 text-amber-700 dark:text-amber-300" : meta.tag === "branch" || meta.tag === "classifier" ? "bg-orange-500/20 text-orange-700 dark:text-orange-300" : meta.tag === "aggregate" || meta.tag === "assign" ? "bg-yellow-500/20 text-yellow-700 dark:text-yellow-300" : meta.tag === "iterate" || meta.tag === "list" ? "bg-fuchsia-500/20 text-fuchsia-700 dark:text-fuchsia-300" : meta.tag === "dashboard" || meta.tag === "answer" || meta.tag === "start" || meta.tag === "end" ? "bg-emerald-500/20 text-emerald-700 dark:text-emerald-300" : "bg-slate-500/20 text-slate-700 dark:text-slate-300";
16629
+ return /* @__PURE__ */ jsxRuntime.jsxs(
16630
+ "div",
16611
16631
  {
16612
- x1: "0",
16613
- y1: "50",
16614
- x2: "36",
16615
- y2: "50",
16616
- stroke: isStepDone ? t.completeEdgeStroke : isStepActive ? t.activeEdgeStroke : "#334155",
16617
- strokeWidth: "2",
16618
- strokeDasharray: "6 4",
16619
- style: { animation: isStepActive ? "deptEdge 0.8s linear infinite" : "none" }
16620
- }
16621
- ),
16622
- /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "34", cy: "50", r: "3", fill: isStepDone ? t.completeEdgeStroke : isStepActive ? t.activeEdgeStroke : "#334155" })
16623
- ] }),
16624
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-[160px] flex-col gap-2 shrink-0", children: [
16625
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[8px] font-bold uppercase tracking-wider text-gray-400 dark:text-gray-500 text-center", children: [
16626
- "Step ",
16627
- col.stepIndex + 1
16628
- ] }),
16629
- col.nodes.map((node2) => {
16630
- const status = getStatus(node2);
16631
- const meta = getNodeMeta(node2.type);
16632
- const avatar = nodeAvatars?.[node2.id];
16633
- const statusClass = status === "running" ? `scale-[1.04] ring-2 ${t.activeRing}` : status === "complete" ? "ring-1 ring-emerald-500/40" : "opacity-50";
16634
- return /* @__PURE__ */ jsxRuntime.jsx(
16635
- "div",
16636
- {
16637
- className: `liquid-surface rounded-xl p-2.5 transition-all duration-500 ${statusClass}`,
16638
- style: status === "running" ? { "--glow": meta.glow, animation: "deptGlow 1.4s ease-in-out infinite" } : void 0,
16639
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
16632
+ className: `liquid-surface rounded-2xl px-3.5 py-3 transition-all duration-500 ${nodeWidth} ${statusClass}`,
16633
+ style: status === "running" ? { "--glow": meta.glow, animation: "deptGlow 1.4s ease-in-out infinite" } : void 0,
16634
+ children: [
16635
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center gap-2.5", children: [
16640
16636
  avatar ? /* @__PURE__ */ jsxRuntime.jsx(
16641
16637
  "img",
16642
16638
  {
16643
16639
  src: avatar,
16644
16640
  alt: "",
16645
- className: `h-10 w-10 shrink-0 rounded-xl bg-white/40 dark:bg-white/[0.06] ${status === "running" ? "ring-2 ring-white/40" : ""}`
16641
+ className: `h-9 w-9 shrink-0 rounded-xl bg-white/40 dark:bg-white/[0.06] ${status === "running" ? "ring-2 ring-white/40" : ""}`
16646
16642
  }
16647
16643
  ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex h-9 w-9 shrink-0 items-center justify-center rounded-xl ${meta.bg}`, children: /* @__PURE__ */ jsxRuntime.jsx(meta.icon, { className: `h-5 w-5 ${meta.color}` }) }),
16648
16644
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
16649
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "truncate text-[11px] font-semibold text-gray-900 dark:text-white", children: node2.data.label }),
16650
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1 text-[8px] text-gray-500 dark:text-gray-500", children: [
16651
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate font-mono", children: meta.tag }),
16652
- status === "running" && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: `flex items-center gap-0.5 ${t.stepActiveBg.replace("bg-", "text-")}`, children: [
16653
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "h-1 w-1 rounded-full bg-current animate-pulse" }),
16654
- "ativo"
16655
- ] }),
16656
- status === "complete" && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-0.5 text-emerald-500", children: [
16657
- /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.CheckCircleIcon, { className: "h-2.5 w-2.5" }),
16658
- "ok"
16659
- ] })
16660
- ] })
16645
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "truncate text-[12px] font-semibold leading-tight text-gray-900 dark:text-white", children: node2.data.label }),
16646
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "truncate text-[9px] text-gray-500 dark:text-gray-500 mt-0.5 font-mono", children: meta.tag })
16647
+ ] }),
16648
+ status === "complete" && /* @__PURE__ */ jsxRuntime.jsx(HeroIcons.CheckCircleIcon, { className: "h-4 w-4 shrink-0 text-emerald-500" })
16649
+ ] }),
16650
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-1", children: [
16651
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `rounded-full px-2 py-0.5 text-[8.5px] font-semibold ${tagBadge}`, children: meta.tag }),
16652
+ status === "running" && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: `rounded-full px-2 py-0.5 text-[8.5px] font-semibold ${t.stepActiveBg.replace("bg-", "bg-")}/20 ${t.stepActiveBg.replace("bg-", "text-")}`, children: [
16653
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mr-0.5 inline-block h-1 w-1 rounded-full bg-current animate-pulse" }),
16654
+ "executando"
16661
16655
  ] })
16662
16656
  ] })
16663
- },
16664
- node2.id
16665
- );
16666
- })
16667
- ] })
16657
+ ]
16658
+ },
16659
+ node2.id
16660
+ );
16661
+ }) })
16668
16662
  ] }, col.stepIndex);
16669
16663
  }) })
16670
16664
  ] }),
@@ -25420,5 +25414,5 @@ exports.usePullToRefresh = usePullToRefresh;
25420
25414
  exports.validateDashboardSpec = validateDashboardSpec;
25421
25415
  exports.xScale = xScale;
25422
25416
  exports.yScale = yScale;
25423
- //# sourceMappingURL=chunk-6TL7IE36.js.map
25424
- //# sourceMappingURL=chunk-6TL7IE36.js.map
25417
+ //# sourceMappingURL=chunk-NIGFMRWC.js.map
25418
+ //# sourceMappingURL=chunk-NIGFMRWC.js.map