@datatechsolutions/ui 2.11.8 → 2.11.9

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.
@@ -234,13 +234,16 @@ type WorkspaceModalProps = {
234
234
  onClose: () => void;
235
235
  title: string;
236
236
  subtitle?: string;
237
+ label?: string;
237
238
  icon?: ReactNode;
238
239
  gradient?: string;
239
240
  maxWidth?: string | GlassModalSize;
241
+ headerActions?: ReactNode;
242
+ footer?: ReactNode;
240
243
  tabs?: ReactNode;
241
244
  children: ReactNode;
242
245
  };
243
- declare function WorkspaceModal({ open, onClose, title, subtitle, icon, gradient, maxWidth, tabs, children, }: WorkspaceModalProps): react_jsx_runtime.JSX.Element;
246
+ declare function WorkspaceModal({ open, onClose, title, subtitle, label, icon, gradient, maxWidth, headerActions, footer, tabs, children, }: WorkspaceModalProps): react_jsx_runtime.JSX.Element;
244
247
 
245
248
  type PipelineSettingsModalProps = {
246
249
  onSave: (name: string, description: string) => Promise<void>;
@@ -234,13 +234,16 @@ type WorkspaceModalProps = {
234
234
  onClose: () => void;
235
235
  title: string;
236
236
  subtitle?: string;
237
+ label?: string;
237
238
  icon?: ReactNode;
238
239
  gradient?: string;
239
240
  maxWidth?: string | GlassModalSize;
241
+ headerActions?: ReactNode;
242
+ footer?: ReactNode;
240
243
  tabs?: ReactNode;
241
244
  children: ReactNode;
242
245
  };
243
- declare function WorkspaceModal({ open, onClose, title, subtitle, icon, gradient, maxWidth, tabs, children, }: WorkspaceModalProps): react_jsx_runtime.JSX.Element;
246
+ declare function WorkspaceModal({ open, onClose, title, subtitle, label, icon, gradient, maxWidth, headerActions, footer, tabs, children, }: WorkspaceModalProps): react_jsx_runtime.JSX.Element;
244
247
 
245
248
  type PipelineSettingsModalProps = {
246
249
  onSave: (name: string, description: string) => Promise<void>;
@@ -952,9 +952,12 @@ function WorkspaceModal({
952
952
  onClose,
953
953
  title,
954
954
  subtitle,
955
+ label,
955
956
  icon,
956
957
  gradient = "from-gray-400 to-gray-500",
957
958
  maxWidth = "2xl",
959
+ headerActions,
960
+ footer,
958
961
  tabs,
959
962
  children
960
963
  }) {
@@ -966,9 +969,12 @@ function WorkspaceModal({
966
969
  onClose,
967
970
  title,
968
971
  subtitle,
972
+ label,
969
973
  icon,
970
974
  gradient,
971
975
  maxWidth: resolvedSize,
976
+ headerActions,
977
+ footer,
972
978
  children: [
973
979
  tabs,
974
980
  children
@@ -2514,7 +2520,7 @@ function DslExportModal({ open, onClose, workflow, graph }) {
2514
2520
  "data-testid": "export-copy-button",
2515
2521
  children: isCopied ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2516
2522
  /* @__PURE__ */ jsxRuntime.jsx(outline.CheckIcon, { className: "h-4 w-4 text-green-500" }),
2517
- translations("copied")
2523
+ /* @__PURE__ */ jsxRuntime.jsx("span", { role: "status", "aria-live": "polite", children: translations("copied") })
2518
2524
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2519
2525
  /* @__PURE__ */ jsxRuntime.jsx(outline.ClipboardDocumentIcon, { className: "h-4 w-4" }),
2520
2526
  translations("copyToClipboard")
@@ -2699,6 +2705,9 @@ function DslImportModal({ open, onClose, onImport }) {
2699
2705
  onClick: handleClickUpload,
2700
2706
  className: `cursor-pointer rounded-xl border-2 border-dashed p-8 text-center transition-colors duration-200 ${isDragActive ? "border-blue-400 bg-blue-50 dark:border-blue-500 dark:bg-blue-500/10" : "border-gray-300 hover:border-gray-400 dark:border-gray-600 dark:hover:border-gray-500"}`,
2701
2707
  "data-testid": "import-dropzone",
2708
+ role: "button",
2709
+ tabIndex: 0,
2710
+ "aria-label": translations("dropzone"),
2702
2711
  children: [
2703
2712
  /* @__PURE__ */ jsxRuntime.jsx(outline.ArrowUpTrayIcon, { className: "mx-auto h-10 w-10 text-gray-400 dark:text-gray-500" }),
2704
2713
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-3 text-sm font-medium text-gray-700 dark:text-gray-300", children: translations("dropzone") }),
@@ -2738,7 +2747,7 @@ function DslImportModal({ open, onClose, onImport }) {
2738
2747
  validationResult.edgeCount
2739
2748
  ] })
2740
2749
  ] })
2741
- ] }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-lg border border-red-200 bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20", children: [
2750
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { role: "alert", className: "rounded-lg border border-red-200 bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20", children: [
2742
2751
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
2743
2752
  /* @__PURE__ */ jsxRuntime.jsx(outline.ExclamationTriangleIcon, { className: "h-5 w-5 text-red-500" }),
2744
2753
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-red-700 dark:text-red-400", children: translations("validationFailed") })