ai-design-system 0.1.39 → 0.1.41

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/index.d.ts CHANGED
@@ -105,6 +105,8 @@ export interface FileItem {
105
105
  id: string;
106
106
  name: string;
107
107
  path?: string;
108
+ icon?: string;
109
+ iconColor?: string;
108
110
  }
109
111
 
110
112
  export interface FileGroup {
@@ -805,6 +807,9 @@ export const WorkflowBuilder: React.FC<WorkflowBuilderProps>;
805
807
  // From components/features/WorkflowObservabilityFeature/WorkflowObservabilityFeature.tsx
806
808
  export const WorkflowObservabilityFeature: React.FC<WorkflowObservabilityFeatureProps>;
807
809
 
810
+ export const WorkflowToolbarActions: React.FC<any>;
811
+ export const WorkflowToolbar: React.FC<any>;
812
+
808
813
  // From components/composites/WorkflowRunObservabilityPanel/WorkflowRunObservabilityPanel.tsx
809
814
  export interface WorkflowRunSummary {
810
815
  runId: string
@@ -906,9 +911,6 @@ export const WorkflowRunObservabilityTracePanel: React.FC<WorkflowRunObservabili
906
911
  export const WorkflowRunObservabilityDetailsPanel: React.FC<WorkflowRunObservabilityDetailsPanelProps>;
907
912
  export const WorkflowRunObservabilityPanel: React.FC<WorkflowRunObservabilityPanelProps>;
908
913
 
909
- export const WorkflowToolbarActions: React.FC<any>;
910
- export const WorkflowToolbar: React.FC<any>;
911
-
912
914
  // From components/composites/UserMessage/UserMessage.tsx
913
915
  export interface UserMessageData {
914
916
  id: string
@@ -1349,6 +1351,18 @@ export interface FormReportsDrawerFormProps {
1349
1351
 
1350
1352
  export const FormReportsDrawerForm: React.FC<FormReportsDrawerFormProps>;
1351
1353
 
1354
+ // From components/composites/FileQueue/FileStatusBadge.tsx
1355
+ export type FileStatus = "pending" | "modified" | "created" | "deleted";
1356
+
1357
+ export interface FileStatusBadgeProps {
1358
+ status: FileStatus;
1359
+ className?: string;
1360
+ }
1361
+
1362
+ export const FileStatusBadge: React.FC<FileStatusBadgeProps>;
1363
+
1364
+ export const FileQueue: React.FC<any>;
1365
+
1352
1366
  // From components/composites/FilePreviewDialog/FilePreviewDialog.tsx
1353
1367
  export interface FilePreviewDialogProps {
1354
1368
  open: boolean;
@@ -1362,18 +1376,6 @@ export interface FilePreviewDialogProps {
1362
1376
 
1363
1377
  export const FilePreviewDialog: React.FC<FilePreviewDialogProps>;
1364
1378
 
1365
- // From components/composites/FileQueue/FileStatusBadge.tsx
1366
- export type FileStatus = "pending" | "modified" | "created" | "deleted";
1367
-
1368
- export interface FileStatusBadgeProps {
1369
- status: FileStatus;
1370
- className?: string;
1371
- }
1372
-
1373
- export const FileStatusBadge: React.FC<FileStatusBadgeProps>;
1374
-
1375
- export const FileQueue: React.FC<any>;
1376
-
1377
1379
  // From components/composites/DocumentTabBar/DocumentTabBar.tsx
1378
1380
  export interface DocumentTabBarProps {
1379
1381
  /**
@@ -1406,6 +1408,40 @@ export const DocumentTabBar: React.FC<DocumentTabBarProps>;
1406
1408
 
1407
1409
  export const DocumentEditor: React.FC<any>;
1408
1410
 
1411
+ // From components/composites/Confirmation/Confirmation.tsx
1412
+ export interface ConfirmationProps {
1413
+ /**
1414
+ * Title text displayed at the top of the confirmation
1415
+ */
1416
+ title?: string;
1417
+ /**
1418
+ * Callback when user approves
1419
+ */
1420
+ onApprove?: () => void;
1421
+ /**
1422
+ * Callback when user rejects
1423
+ */
1424
+ onReject?: () => void;
1425
+ /**
1426
+ * Confirmation state
1427
+ */
1428
+ state: ToolUIState;
1429
+ /**
1430
+ * Approval data
1431
+ */
1432
+ approval?: ToolApproval;
1433
+ /**
1434
+ * Content to display (e.g., FileQueue)
1435
+ */
1436
+ children: React.ReactNode;
1437
+ /**
1438
+ * Additional CSS classes
1439
+ */
1440
+ className?: string;
1441
+ }
1442
+
1443
+ export const Confirmation: React.FC<ConfirmationProps>;
1444
+
1409
1445
 
1410
1446
  // From components/composites/DataTable/StatusCell.tsx
1411
1447
  export interface StatusCellProps {
@@ -1483,42 +1519,10 @@ export interface DataTableProps<TData, TValue> {
1483
1519
 
1484
1520
  export const DataTable: React.FC<DataTableProps>;
1485
1521
 
1486
- // From components/composites/Confirmation/Confirmation.tsx
1487
- export interface ConfirmationProps {
1488
- /**
1489
- * Title text displayed at the top of the confirmation
1490
- */
1491
- title?: string;
1492
- /**
1493
- * Callback when user approves
1494
- */
1495
- onApprove?: () => void;
1496
- /**
1497
- * Callback when user rejects
1498
- */
1499
- onReject?: () => void;
1500
- /**
1501
- * Confirmation state
1502
- */
1503
- state: ToolUIState;
1504
- /**
1505
- * Approval data
1506
- */
1507
- approval?: ToolApproval;
1508
- /**
1509
- * Content to display (e.g., FileQueue)
1510
- */
1511
- children: React.ReactNode;
1512
- /**
1513
- * Additional CSS classes
1514
- */
1515
- className?: string;
1516
- }
1517
-
1518
- export const Confirmation: React.FC<ConfirmationProps>;
1519
-
1520
1522
  export const CommentBox: React.FC<any>;
1521
1523
 
1524
+ export const AppHeader: React.FC<any>;
1525
+
1522
1526
  // From components/composites/AgentIndicator/AgentIndicator.tsx
1523
1527
  export interface SubAgent {
1524
1528
  id: string
@@ -1546,8 +1550,6 @@ export interface AgentIndicatorProps {
1546
1550
 
1547
1551
  export const AgentIndicator: React.FC<AgentIndicatorProps>;
1548
1552
 
1549
- export const AppHeader: React.FC<any>;
1550
-
1551
1553
  // From components/composites/AdjustableLayout/AdjustableLayout.tsx
1552
1554
  export interface AdjustableLayoutSection {
1553
1555
  id: string
package/dist/index.js CHANGED
@@ -2941,7 +2941,14 @@ var FileQueue = React3.memo(
2941
2941
  onKeyDown: (e) => handleKeyDown(e, file.id),
2942
2942
  "aria-selected": isClickable ? isSelected : void 0,
2943
2943
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-2", children: [
2944
- /* @__PURE__ */ jsx(Icon, { name: "file", size: "sm", className: "mt-0.5" }),
2944
+ /* @__PURE__ */ jsx(
2945
+ Icon,
2946
+ {
2947
+ name: file.icon || "file",
2948
+ size: "sm",
2949
+ className: cn("mt-0.5", file.iconColor)
2950
+ }
2951
+ ),
2945
2952
  /* @__PURE__ */ jsxs(QueueItemContent, { children: [
2946
2953
  file.name,
2947
2954
  file.path && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground/70", children: [
@@ -8255,14 +8262,13 @@ var StateNode = memo(({ data, selected, id }) => {
8255
8262
  const displayDescription = data.description;
8256
8263
  const status = data.status;
8257
8264
  const isDisabled = data.enabled === false;
8258
- const isTerminal = data.isTerminal === true;
8265
+ data.isTerminal === true;
8259
8266
  return /* @__PURE__ */ jsxs(
8260
8267
  Node2,
8261
8268
  {
8262
8269
  className: cn(
8263
8270
  "relative flex flex-col items-center justify-center border border-border bg-card shadow-none transition-all duration-150 ease-out",
8264
- selected && "border-primary border-2",
8265
- isTerminal && "border-2 border-primary",
8271
+ selected ? "border-primary border-2" : "border border-border",
8266
8272
  isDisabled && "opacity-50"
8267
8273
  ),
8268
8274
  "data-testid": `state-node-${id}`,
@@ -9396,7 +9402,7 @@ function WorkflowCanvasInner({
9396
9402
  connectionMode: ConnectionMode.Strict,
9397
9403
  edges,
9398
9404
  edgeTypes,
9399
- elementsSelectable: interactive,
9405
+ elementsSelectable: true,
9400
9406
  isValidConnection,
9401
9407
  nodes,
9402
9408
  nodeTypes,
@@ -9405,8 +9411,8 @@ function WorkflowCanvasInner({
9405
9411
  onConnect: interactive ? onConnect : void 0,
9406
9412
  onConnectEnd: interactive ? onConnectEnd : void 0,
9407
9413
  onConnectStart: interactive ? onConnectStart : void 0,
9408
- onEdgesChange: interactive ? onEdgesChange : void 0,
9409
- onNodesChange: interactive ? onNodesChange : void 0,
9414
+ onEdgesChange,
9415
+ onNodesChange,
9410
9416
  onPaneClick,
9411
9417
  onNodeClick,
9412
9418
  onEdgeClick,