@datatechsolutions/ui 2.11.15 → 2.11.17

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.
@@ -340,7 +340,7 @@ var LOGIC_NODE_GRADIENTS = {
340
340
  note: "from-yellow-400 to-amber-500",
341
341
  entity: "from-blue-400 to-cyan-500",
342
342
  datasource: "from-cyan-500 to-blue-600",
343
- model_provider: "from-rose-500 to-pink-600",
343
+ model_provider: "from-slate-500 to-gray-600",
344
344
  group: "from-slate-400 to-gray-500"
345
345
  };
346
346
  var LOGIC_NODE_BADGE_COLORS = {
@@ -363,7 +363,7 @@ var LOGIC_NODE_BADGE_COLORS = {
363
363
  note: "bg-yellow-100 text-yellow-700 dark:bg-yellow-500/20 dark:text-yellow-300",
364
364
  entity: "bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300",
365
365
  datasource: "bg-cyan-100 text-cyan-700 dark:bg-cyan-500/20 dark:text-cyan-300",
366
- model_provider: "bg-rose-100 text-rose-700 dark:bg-rose-500/20 dark:text-rose-300",
366
+ model_provider: "bg-slate-100 text-slate-700 dark:bg-slate-500/20 dark:text-slate-300",
367
367
  group: "bg-slate-100 text-slate-700 dark:bg-slate-500/20 dark:text-slate-300"
368
368
  };
369
369
  var LOGIC_NODE_BADGE_SOFT_COLORS = {
@@ -386,7 +386,7 @@ var LOGIC_NODE_BADGE_SOFT_COLORS = {
386
386
  note: "bg-yellow-50 text-yellow-600 dark:bg-yellow-500/20 dark:text-yellow-400",
387
387
  entity: "bg-blue-50 text-blue-600 dark:bg-blue-500/20 dark:text-blue-400",
388
388
  datasource: "bg-cyan-50 text-cyan-600 dark:bg-cyan-500/20 dark:text-cyan-400",
389
- model_provider: "bg-rose-50 text-rose-600 dark:bg-rose-500/20 dark:text-rose-400",
389
+ model_provider: "bg-slate-50 text-slate-600 dark:bg-slate-500/20 dark:text-slate-400",
390
390
  group: "bg-slate-50 text-slate-600 dark:bg-slate-500/20 dark:text-slate-400"
391
391
  };
392
392
  var LOGIC_ICON_MAP = {
@@ -438,7 +438,7 @@ var NODE_BORDER_COLORS = {
438
438
  list_operator: "border-lime-300/50 dark:border-lime-600/50",
439
439
  note: "border-gray-200/50 dark:border-gray-700/50",
440
440
  datasource: "border-cyan-300/50 dark:border-cyan-600/50",
441
- model_provider: "border-rose-300/50 dark:border-rose-600/50"
441
+ model_provider: "border-slate-300/50 dark:border-slate-600/50"
442
442
  };
443
443
  function getNodeStateClass(selected, nodeType, customBorder) {
444
444
  if (selected) return NODE_SELECTED_CLASS;
@@ -469,7 +469,7 @@ var MINIMAP_NODE_COLORS = {
469
469
  note: "#eab308",
470
470
  entity: "#3b82f6",
471
471
  datasource: "#06b6d4",
472
- model_provider: "#f43f5e",
472
+ model_provider: "#64748b",
473
473
  group: "#64748b"
474
474
  };
475
475
  var LOGIC_NODE_HANDLE_COLORS = {
@@ -492,7 +492,7 @@ var LOGIC_NODE_HANDLE_COLORS = {
492
492
  note: "!bg-yellow-500",
493
493
  entity: "!bg-blue-500",
494
494
  datasource: "!bg-cyan-500",
495
- model_provider: "!bg-rose-500",
495
+ model_provider: "!bg-slate-500",
496
496
  group: "!bg-slate-500"
497
497
  };
498
498
  var INSERTABLE_NODES = [
@@ -2767,6 +2767,14 @@ var DatasourceFlowNode = react.memo(function DatasourceFlowNode2({ id, data, sel
2767
2767
  /* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Right, id: "right-out", colorClass: "!bg-cyan-400" })
2768
2768
  ] });
2769
2769
  });
2770
+ var SI = (slug, color) => `https://cdn.simpleicons.org/${slug}/${color}`;
2771
+ var PROVIDER_LOGOS = {
2772
+ aws_bedrock: "https://www.svgrepo.com/show/448266/aws.svg",
2773
+ openai_api: "https://www.svgrepo.com/show/306500/openai.svg",
2774
+ google_vertex: SI("googlegemini", "8E75B2"),
2775
+ azure_openai: SI("microsoftazure", "0078D4"),
2776
+ anthropic_api: SI("anthropic", "D4A27F")
2777
+ };
2770
2778
  var PROVIDER_TYPE_LABELS = {
2771
2779
  aws_bedrock: "AWS Bedrock",
2772
2780
  openai_api: "OpenAI API",
@@ -2792,14 +2800,15 @@ var ModelProviderFlowNode = react.memo(function ModelProviderFlowNode2({ id, dat
2792
2800
  iconClassName: "flex h-11 w-11 items-center justify-center rounded-xl bg-gradient-to-br from-amber-400 to-orange-500 shadow-lg"
2793
2801
  }
2794
2802
  ) }),
2795
- /* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Right, id: "right-out", colorClass: "!bg-rose-500" }),
2796
- /* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Bottom, id: "bottom-out", colorClass: "!bg-rose-500" })
2803
+ /* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Right, id: "right-out", colorClass: "!bg-slate-500" }),
2804
+ /* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Bottom, id: "bottom-out", colorClass: "!bg-slate-500" })
2797
2805
  ] });
2798
2806
  }
2799
2807
  const providerLabel = PROVIDER_TYPE_LABELS[config.providerType] ?? config.providerType;
2800
2808
  const displayName = config.name || providerLabel;
2801
2809
  const regionLabel = config.region ? config.region : void 0;
2802
2810
  const isConfigured = !!(config.credentialRef || config.apiKeyRef);
2811
+ const logo = PROVIDER_LOGOS[config.providerType];
2803
2812
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2804
2813
  /* @__PURE__ */ jsxRuntime.jsx(NodeRunningIndicator, { nodeId: id }),
2805
2814
  /* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "target", position: react$1.Position.Left, id: "left-in", colorClass: "!bg-gray-400 dark:!bg-gray-500" }),
@@ -2814,14 +2823,14 @@ var ModelProviderFlowNode = react.memo(function ModelProviderFlowNode2({ id, dat
2814
2823
  /* @__PURE__ */ jsxRuntime.jsx(
2815
2824
  NodeCardHeader,
2816
2825
  {
2817
- icon: /* @__PURE__ */ jsxRuntime.jsx(outline.KeyIcon, { className: "h-6 w-6 text-white" }),
2826
+ icon: logo ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: logo, alt: providerLabel, className: "h-6 w-6 object-contain", loading: "lazy" }) : /* @__PURE__ */ jsxRuntime.jsx(outline.KeyIcon, { className: "h-6 w-6 text-white" }),
2818
2827
  title: displayName,
2819
2828
  description: providerLabel,
2820
- iconClassName: "flex h-11 w-11 items-center justify-center rounded-xl bg-gradient-to-br from-rose-500 to-pink-600 shadow-lg"
2829
+ iconClassName: `flex h-11 w-11 items-center justify-center rounded-xl shadow-lg ${logo ? "bg-white/10 dark:bg-white/5 p-2" : "bg-gradient-to-br from-slate-600 to-slate-700 p-1.5"}`
2821
2830
  }
2822
2831
  ),
2823
2832
  /* @__PURE__ */ jsxRuntime.jsx(NodeCardMeta, { compact: isCompact, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
2824
- /* @__PURE__ */ jsxRuntime.jsx(NodeCardBadge, { className: "rounded-full bg-rose-100 px-2 py-0.5 text-[10px] font-semibold text-rose-700 dark:bg-rose-500/20 dark:text-rose-300", children: providerLabel }),
2833
+ /* @__PURE__ */ jsxRuntime.jsx(NodeCardBadge, { className: "rounded-full bg-slate-100 px-2 py-0.5 text-[10px] font-semibold text-slate-700 dark:bg-slate-500/20 dark:text-slate-300", children: providerLabel }),
2825
2834
  regionLabel && /* @__PURE__ */ jsxRuntime.jsx(NodeCardBadge, { className: "rounded-full bg-gray-100 px-2 py-0.5 text-[10px] font-medium text-gray-600 dark:bg-white/10 dark:text-gray-300", children: regionLabel }),
2826
2835
  /* @__PURE__ */ jsxRuntime.jsx(NodeCardBadge, { className: `rounded-full px-2 py-0.5 text-[10px] font-medium ${isConfigured ? "bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300" : "bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300"}`, children: isConfigured ? "Configured" : "Setup needed" }),
2827
2836
  config.modelFilter && config.modelFilter.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(NodeCardBadge, { className: "rounded-full bg-gray-100 px-2 py-0.5 text-[10px] font-medium text-gray-600 dark:bg-white/10 dark:text-gray-300", children: [
@@ -2832,8 +2841,8 @@ var ModelProviderFlowNode = react.memo(function ModelProviderFlowNode2({ id, dat
2832
2841
  ] })
2833
2842
  }
2834
2843
  ),
2835
- /* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Right, id: "right-out", colorClass: "!bg-rose-500" }),
2836
- /* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Bottom, id: "bottom-out", colorClass: "!bg-rose-500" })
2844
+ /* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Right, id: "right-out", colorClass: "!bg-slate-500" }),
2845
+ /* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Bottom, id: "bottom-out", colorClass: "!bg-slate-500" })
2837
2846
  ] });
2838
2847
  });
2839
2848
  var GROUP_COLORS = {
@@ -7367,5 +7376,5 @@ exports.useModalStore = useModalStore;
7367
7376
  exports.useWorkflowBuilderClient = useWorkflowBuilderClient;
7368
7377
  exports.useWorkflowBuilderClientOptional = useWorkflowBuilderClientOptional;
7369
7378
  exports.useWorkflowStore = useWorkflowStore;
7370
- //# sourceMappingURL=chunk-WB5CWGXD.js.map
7371
- //# sourceMappingURL=chunk-WB5CWGXD.js.map
7379
+ //# sourceMappingURL=chunk-PNN6KWXQ.js.map
7380
+ //# sourceMappingURL=chunk-PNN6KWXQ.js.map