@uipath/apollo-wind 0.9.1 → 0.10.0-pr219.61d64eb

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.
Files changed (158) hide show
  1. package/dist/components/custom/canvas.cjs +44 -0
  2. package/dist/components/custom/canvas.d.ts +14 -0
  3. package/dist/components/custom/canvas.js +10 -0
  4. package/dist/components/custom/chat-composer.cjs +105 -0
  5. package/dist/components/custom/chat-composer.d.ts +15 -0
  6. package/dist/components/custom/chat-composer.js +71 -0
  7. package/dist/components/custom/chat-first-experience.cjs +87 -0
  8. package/dist/components/custom/chat-first-experience.d.ts +24 -0
  9. package/dist/components/custom/chat-first-experience.js +53 -0
  10. package/dist/components/custom/chat-prompt-suggestions.cjs +48 -0
  11. package/dist/components/custom/chat-prompt-suggestions.d.ts +18 -0
  12. package/dist/components/custom/chat-prompt-suggestions.js +14 -0
  13. package/dist/components/custom/chat-steps-view.cjs +307 -0
  14. package/dist/components/custom/chat-steps-view.d.ts +38 -0
  15. package/dist/components/custom/chat-steps-view.js +273 -0
  16. package/dist/components/custom/flow-node.cjs +76 -0
  17. package/dist/components/custom/flow-node.d.ts +20 -0
  18. package/dist/components/custom/flow-node.js +42 -0
  19. package/dist/components/custom/flow-properties-bar.cjs +101 -0
  20. package/dist/components/custom/flow-properties-bar.d.ts +21 -0
  21. package/dist/components/custom/flow-properties-bar.js +67 -0
  22. package/dist/components/custom/flow-properties-expanded.cjs +324 -0
  23. package/dist/components/custom/flow-properties-expanded.d.ts +19 -0
  24. package/dist/components/custom/flow-properties-expanded.js +290 -0
  25. package/dist/components/custom/flow-properties-simple.cjs +357 -0
  26. package/dist/components/custom/flow-properties-simple.d.ts +62 -0
  27. package/dist/components/custom/flow-properties-simple.js +323 -0
  28. package/dist/components/custom/flow-properties.cjs +56 -0
  29. package/dist/components/custom/flow-properties.d.ts +28 -0
  30. package/dist/components/custom/flow-properties.js +22 -0
  31. package/dist/components/custom/global-header.cjs +415 -0
  32. package/dist/components/custom/global-header.d.ts +38 -0
  33. package/dist/components/custom/global-header.js +381 -0
  34. package/dist/components/custom/grid-maestro.cjs +62 -0
  35. package/dist/components/custom/grid-maestro.d.ts +19 -0
  36. package/dist/components/custom/grid-maestro.js +22 -0
  37. package/dist/components/custom/panel-delegate.cjs +280 -0
  38. package/dist/components/custom/panel-delegate.d.ts +34 -0
  39. package/dist/components/custom/panel-delegate.js +246 -0
  40. package/dist/components/custom/panel-flow.cjs +260 -0
  41. package/dist/components/custom/panel-flow.d.ts +38 -0
  42. package/dist/components/custom/panel-flow.js +223 -0
  43. package/dist/components/custom/panel-maestro.cjs +73 -0
  44. package/dist/components/custom/panel-maestro.d.ts +30 -0
  45. package/dist/components/custom/panel-maestro.js +39 -0
  46. package/dist/components/custom/toolbar-canvas.cjs +121 -0
  47. package/dist/components/custom/toolbar-canvas.d.ts +15 -0
  48. package/dist/components/custom/toolbar-canvas.js +87 -0
  49. package/dist/components/custom/toolbar-view.cjs +119 -0
  50. package/dist/components/custom/toolbar-view.d.ts +14 -0
  51. package/dist/components/custom/toolbar-view.js +85 -0
  52. package/dist/components/custom/viewport-guard.cjs +92 -0
  53. package/dist/components/custom/viewport-guard.d.ts +23 -0
  54. package/dist/components/custom/viewport-guard.js +55 -0
  55. package/dist/components/ui/button.cjs +3 -3
  56. package/dist/components/ui/button.js +3 -3
  57. package/dist/components/ui/chart.cjs +218 -0
  58. package/dist/components/ui/chart.d.ts +40 -0
  59. package/dist/components/ui/chart.js +169 -0
  60. package/dist/components/ui/data-table.cjs +14 -2
  61. package/dist/components/ui/data-table.d.ts +4 -1
  62. package/dist/components/ui/data-table.js +15 -3
  63. package/dist/components/ui/empty-state.cjs +17 -6
  64. package/dist/components/ui/empty-state.d.ts +7 -0
  65. package/dist/components/ui/empty-state.js +17 -6
  66. package/dist/components/ui/file-upload.cjs +82 -42
  67. package/dist/components/ui/file-upload.d.ts +3 -1
  68. package/dist/components/ui/file-upload.js +82 -42
  69. package/dist/components/ui/index.cjs +289 -149
  70. package/dist/components/ui/index.d.ts +2 -3
  71. package/dist/components/ui/index.js +2 -3
  72. package/dist/components/ui/tree-view.cjs +1101 -0
  73. package/dist/components/ui/tree-view.d.ts +95 -0
  74. package/dist/components/ui/tree-view.js +1067 -0
  75. package/dist/foundation/Future/colors.cjs +92 -0
  76. package/dist/foundation/Future/colors.d.ts +132 -0
  77. package/dist/foundation/Future/colors.js +43 -0
  78. package/dist/foundation/Future/radius.cjs +46 -0
  79. package/dist/foundation/Future/radius.d.ts +33 -0
  80. package/dist/foundation/Future/radius.js +12 -0
  81. package/dist/foundation/Future/responsive.cjs +49 -0
  82. package/dist/foundation/Future/responsive.d.ts +40 -0
  83. package/dist/foundation/Future/responsive.js +12 -0
  84. package/dist/foundation/Future/shadows.cjs +48 -0
  85. package/dist/foundation/Future/shadows.d.ts +29 -0
  86. package/dist/foundation/Future/shadows.js +11 -0
  87. package/dist/foundation/Future/spacing.cjs +71 -0
  88. package/dist/foundation/Future/spacing.d.ts +80 -0
  89. package/dist/foundation/Future/spacing.js +31 -0
  90. package/dist/foundation/Future/strokes.cjs +59 -0
  91. package/dist/foundation/Future/strokes.d.ts +49 -0
  92. package/dist/foundation/Future/strokes.js +19 -0
  93. package/dist/foundation/Future/types.cjs +18 -0
  94. package/dist/foundation/Future/types.d.ts +18 -0
  95. package/dist/foundation/Future/types.js +0 -0
  96. package/dist/foundation/Future/typography.cjs +79 -0
  97. package/dist/foundation/Future/typography.d.ts +86 -0
  98. package/dist/foundation/Future/typography.js +33 -0
  99. package/dist/index.cjs +125 -219
  100. package/dist/index.d.ts +2 -3
  101. package/dist/index.js +2 -4
  102. package/dist/src/foundation/Future/themes.css +371 -0
  103. package/dist/styles.css +1704 -582
  104. package/dist/tailwind.css +4 -0
  105. package/dist/templates/Admin/settings-admin.d.ts +5 -0
  106. package/dist/templates/Admin/template-admin.d.ts +105 -0
  107. package/dist/templates/Delegate/template-delegate.d.ts +26 -0
  108. package/dist/templates/EmptyErrors/error-components.d.ts +3 -0
  109. package/dist/templates/Experiments/ideas-AnimatedGradientText.d.ts +23 -0
  110. package/dist/templates/Flow/template-flow.d.ts +52 -0
  111. package/dist/templates/Maestro/template-maestro.d.ts +52 -0
  112. package/dist/templates/{vscode-example.d.ts → VisualStudio/shell.d.ts} +1 -1
  113. package/package.json +10 -1
  114. package/dist/components/ui/menubar.cjs +0 -210
  115. package/dist/components/ui/menubar.d.ts +0 -28
  116. package/dist/components/ui/menubar.js +0 -131
  117. package/dist/components/ui/navigation-menu.cjs +0 -122
  118. package/dist/components/ui/navigation-menu.d.ts +0 -12
  119. package/dist/components/ui/navigation-menu.js +0 -64
  120. package/dist/examples/admin-layout-example.cjs +0 -490
  121. package/dist/examples/admin-layout-example.d.ts +0 -92
  122. package/dist/examples/admin-layout-example.js +0 -411
  123. package/dist/examples/app-shell-example.cjs +0 -452
  124. package/dist/examples/app-shell-example.d.ts +0 -52
  125. package/dist/examples/app-shell-example.js +0 -418
  126. package/dist/examples/dashboard-example.cjs +0 -590
  127. package/dist/examples/dashboard-example.d.ts +0 -11
  128. package/dist/examples/dashboard-example.js +0 -556
  129. package/dist/examples/data-management-example.cjs +0 -584
  130. package/dist/examples/data-management-example.d.ts +0 -1
  131. package/dist/examples/data-management-example.js +0 -550
  132. package/dist/examples/flow-editor-layout-example.cjs +0 -309
  133. package/dist/examples/flow-editor-layout-example.d.ts +0 -22
  134. package/dist/examples/flow-editor-layout-example.js +0 -269
  135. package/dist/examples/flow-start-example.cjs +0 -467
  136. package/dist/examples/flow-start-example.d.ts +0 -30
  137. package/dist/examples/flow-start-example.js +0 -433
  138. package/dist/examples/form-builder-example.cjs +0 -674
  139. package/dist/examples/form-builder-example.js +0 -640
  140. package/dist/examples/new-project-example.cjs +0 -550
  141. package/dist/examples/new-project-example.d.ts +0 -30
  142. package/dist/examples/new-project-example.js +0 -516
  143. package/dist/examples/settings-example.cjs +0 -864
  144. package/dist/examples/settings-example.d.ts +0 -1
  145. package/dist/examples/settings-example.js +0 -830
  146. package/dist/examples/vscode-example.cjs +0 -340
  147. package/dist/examples/vscode-example.d.ts +0 -80
  148. package/dist/examples/vscode-example.js +0 -270
  149. package/dist/templates/admin-layout-example.d.ts +0 -92
  150. package/dist/templates/app-shell-example.d.ts +0 -52
  151. package/dist/templates/dashboard-example.d.ts +0 -11
  152. package/dist/templates/data-management-example.d.ts +0 -1
  153. package/dist/templates/flow-editor-layout-example.d.ts +0 -22
  154. package/dist/templates/flow-start-example.d.ts +0 -30
  155. package/dist/templates/form-builder-example.d.ts +0 -1
  156. package/dist/templates/new-project-example.d.ts +0 -30
  157. package/dist/templates/settings-example.d.ts +0 -1
  158. /package/dist/{examples → templates/Forms}/form-builder-example.d.ts +0 -0
@@ -0,0 +1,307 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ StepsView: ()=>StepsView
28
+ });
29
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
+ const external_lucide_react_namespaceObject = require("lucide-react");
31
+ const index_cjs_namespaceObject = require("../../lib/index.cjs");
32
+ function HeaderDivider() {
33
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
34
+ className: "h-9 w-px bg-border-subtle"
35
+ });
36
+ }
37
+ function StatusBadge({ label }) {
38
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
39
+ className: "flex h-10 items-center rounded-xl bg-brand-subtle px-4 py-2",
40
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
41
+ className: "text-sm font-bold leading-5 text-foreground-accent-muted",
42
+ children: label
43
+ })
44
+ });
45
+ }
46
+ function StatItem({ value, label }) {
47
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
48
+ className: "flex flex-col gap-0.5",
49
+ children: [
50
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
51
+ className: "text-[15px] font-semibold leading-5 text-foreground",
52
+ children: value
53
+ }),
54
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
55
+ className: "text-sm font-medium leading-5 text-foreground-subtle",
56
+ children: label
57
+ })
58
+ ]
59
+ });
60
+ }
61
+ function ActionButton({ icon, label, onClick }) {
62
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("button", {
63
+ className: "flex h-10 items-center gap-2 rounded-xl border border-border px-4 py-2 text-sm font-medium leading-5 text-foreground-subtle transition-colors hover:border-border-hover hover:text-foreground-hover",
64
+ onClick: onClick,
65
+ children: [
66
+ icon,
67
+ label
68
+ ]
69
+ });
70
+ }
71
+ function TabBar({ activeTab }) {
72
+ const tabs = [
73
+ {
74
+ id: 'steps',
75
+ label: 'Steps',
76
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.List, {
77
+ className: "h-4 w-4"
78
+ })
79
+ },
80
+ {
81
+ id: 'history',
82
+ label: 'History',
83
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Calendar, {
84
+ className: "h-4 w-4"
85
+ })
86
+ },
87
+ {
88
+ id: 'resources',
89
+ label: 'Resources',
90
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Folder, {
91
+ className: "h-4 w-4"
92
+ })
93
+ }
94
+ ];
95
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
96
+ className: "flex h-10 items-center rounded-xl bg-surface-overlay p-1",
97
+ children: tabs.map((tab)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
98
+ className: (0, index_cjs_namespaceObject.cn)('flex h-8 items-center gap-2 rounded-[10px] px-4 py-2 text-sm font-medium leading-5 transition-colors', activeTab === tab.id ? 'border border-border-subtle bg-surface text-foreground' : 'text-foreground-subtle hover:text-foreground-hover'),
99
+ children: [
100
+ tab.icon,
101
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
102
+ children: tab.label
103
+ })
104
+ ]
105
+ }, tab.id))
106
+ });
107
+ }
108
+ function StepCard({ step, isHovered }) {
109
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
110
+ className: (0, index_cjs_namespaceObject.cn)('flex h-16 items-center justify-between rounded-2xl border px-4', isHovered ? 'border-border-subtle bg-surface-overlay shadow-[0px_4px_24px_0px_rgba(0,0,0,0.25)]' : 'border-border-subtle'),
111
+ children: [
112
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
113
+ className: "flex items-center gap-4",
114
+ children: [
115
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
116
+ className: "flex h-8 w-8 items-center justify-center rounded-lg bg-surface-hover",
117
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Bot, {
118
+ className: "h-5 w-5 text-foreground"
119
+ })
120
+ }),
121
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
122
+ className: "flex flex-col",
123
+ children: [
124
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
125
+ className: "flex items-start gap-0.5",
126
+ children: [
127
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
128
+ className: "text-sm font-semibold leading-5 tracking-[-0.35px] text-foreground",
129
+ children: step.title
130
+ }),
131
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
132
+ className: "ms-1 text-xs leading-5 tracking-[-0.3px] text-foreground-subtle",
133
+ children: [
134
+ "• ",
135
+ step.stepRange
136
+ ]
137
+ })
138
+ ]
139
+ }),
140
+ step.loop ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
141
+ className: "flex items-center gap-2",
142
+ children: [
143
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
144
+ className: "flex h-5 w-5 items-center justify-center rounded-[10px] bg-surface-muted",
145
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Repeat2, {
146
+ className: "h-3.5 w-3.5 text-foreground-on-accent"
147
+ })
148
+ }),
149
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
150
+ className: "text-sm leading-5 text-foreground-subtle",
151
+ children: [
152
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
153
+ className: "font-semibold",
154
+ children: "Loop"
155
+ }),
156
+ ": ",
157
+ step.loop
158
+ ]
159
+ })
160
+ ]
161
+ }) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
162
+ className: "text-sm leading-5 tracking-[-0.35px] text-foreground-subtle",
163
+ children: step.description
164
+ })
165
+ ]
166
+ })
167
+ ]
168
+ }),
169
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown, {
170
+ className: "h-4 w-4 shrink-0 text-foreground-subtle"
171
+ })
172
+ ]
173
+ });
174
+ }
175
+ function StepsView({ className, flowName = 'Flow name', flowDescription = 'Lorem ipsum dolor sit amet lorem ipsum.', status = 'ACTIVE', lastRun = '25/11/2025 12:15PM', totalRuns = 32, steps = [
176
+ {
177
+ id: '1',
178
+ title: 'Gmail',
179
+ stepRange: 'Steps 1 - 2',
180
+ description: 'Evaluate temperature conditions and proceed'
181
+ },
182
+ {
183
+ id: '2',
184
+ title: 'Salesforce',
185
+ stepRange: 'Steps 3 - 5',
186
+ description: 'Evaluate temperature conditions and proceed'
187
+ },
188
+ {
189
+ id: '3',
190
+ title: 'Excel - Process vendor from each file',
191
+ stepRange: 'Steps 6 - 12',
192
+ description: 'Evaluate temperature conditions and proceed',
193
+ loop: 'For each row in the "vendor list", starting from the second row.'
194
+ },
195
+ {
196
+ id: '4',
197
+ title: 'Gmail',
198
+ stepRange: 'Steps 1 - 2',
199
+ description: 'Evaluate temperature conditions and proceed'
200
+ }
201
+ ], activeTab = 'steps', onBack, onEdit, onPause }) {
202
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
203
+ className: (0, index_cjs_namespaceObject.cn)('flex flex-1 flex-col p-0', className),
204
+ children: [
205
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
206
+ className: "flex min-h-[78px] shrink-0 items-center gap-8 overflow-x-auto px-10 py-5",
207
+ children: [
208
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
209
+ className: "flex shrink-0 items-center gap-4",
210
+ children: [
211
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
212
+ type: "button",
213
+ className: "shrink-0 text-foreground transition-colors hover:text-foreground",
214
+ onClick: onBack,
215
+ "aria-label": "Go back",
216
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ArrowLeft, {
217
+ className: "h-6 w-6"
218
+ })
219
+ }),
220
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
221
+ className: "flex flex-col gap-1",
222
+ children: [
223
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
224
+ className: "whitespace-nowrap text-xl font-semibold leading-5 text-foreground",
225
+ children: flowName
226
+ }),
227
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
228
+ className: "whitespace-nowrap text-sm font-medium leading-5 text-foreground-subtle",
229
+ children: flowDescription
230
+ })
231
+ ]
232
+ })
233
+ ]
234
+ }),
235
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(HeaderDivider, {}),
236
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(StatusBadge, {
237
+ label: status
238
+ }),
239
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
240
+ className: "flex shrink-0 items-center gap-4",
241
+ children: [
242
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(HeaderDivider, {}),
243
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(StatItem, {
244
+ value: lastRun,
245
+ label: "Last run"
246
+ })
247
+ ]
248
+ }),
249
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
250
+ className: "flex shrink-0 items-center gap-4",
251
+ children: [
252
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(HeaderDivider, {}),
253
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(StatItem, {
254
+ value: String(totalRuns),
255
+ label: "Total runs"
256
+ })
257
+ ]
258
+ }),
259
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
260
+ className: "flex-1"
261
+ }),
262
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
263
+ className: "flex shrink-0 items-center gap-2",
264
+ children: [
265
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ActionButton, {
266
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Pencil, {
267
+ className: "h-4 w-4"
268
+ }),
269
+ label: "Edit",
270
+ onClick: onEdit
271
+ }),
272
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ActionButton, {
273
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Pause, {
274
+ className: "h-4 w-4"
275
+ }),
276
+ label: "Pause",
277
+ onClick: onPause
278
+ })
279
+ ]
280
+ })
281
+ ]
282
+ }),
283
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
284
+ className: "flex flex-1 flex-col rounded-t-2xl border border-border-muted bg-surface p-4",
285
+ children: [
286
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TabBar, {
287
+ activeTab: activeTab
288
+ }),
289
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
290
+ className: "mx-auto mt-20 flex w-full max-w-[680px] flex-col gap-6",
291
+ children: steps.map((step, index)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(StepCard, {
292
+ step: step,
293
+ isHovered: index === steps.length - 1
294
+ }, step.id))
295
+ })
296
+ ]
297
+ })
298
+ ]
299
+ });
300
+ }
301
+ exports.StepsView = __webpack_exports__.StepsView;
302
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
303
+ "StepsView"
304
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
305
+ Object.defineProperty(exports, '__esModule', {
306
+ value: true
307
+ });
@@ -0,0 +1,38 @@
1
+ export interface FlowStep {
2
+ id: string;
3
+ title: string;
4
+ stepRange: string;
5
+ description: string;
6
+ /** Optional loop annotation */
7
+ loop?: string;
8
+ }
9
+ export interface StepsViewProps {
10
+ className?: string;
11
+ /** Flow name displayed in the header */
12
+ flowName?: string;
13
+ /** Flow description */
14
+ flowDescription?: string;
15
+ /** Status badge label */
16
+ status?: string;
17
+ /** Last run date/time */
18
+ lastRun?: string;
19
+ /** Total runs count */
20
+ totalRuns?: number;
21
+ /** Steps to display */
22
+ steps?: FlowStep[];
23
+ /** Currently active tab */
24
+ activeTab?: 'steps' | 'history' | 'resources';
25
+ /** Callback when back button is clicked */
26
+ onBack?: () => void;
27
+ /** Callback when Edit is clicked */
28
+ onEdit?: () => void;
29
+ /** Callback when Pause is clicked */
30
+ onPause?: () => void;
31
+ }
32
+ /**
33
+ * Canvas content for the Delegate Steps page.
34
+ *
35
+ * Shows a flow header with metadata, a tabbed content area,
36
+ * and a vertical list of step cards.
37
+ */
38
+ export declare function StepsView({ className, flowName, flowDescription, status, lastRun, totalRuns, steps, activeTab, onBack, onEdit, onPause, }: StepsViewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,273 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { ArrowLeft, Bot, Calendar, ChevronDown, Folder, List, Pause, Pencil, Repeat2 } from "lucide-react";
3
+ import { cn } from "../../lib/index.js";
4
+ function HeaderDivider() {
5
+ return /*#__PURE__*/ jsx("div", {
6
+ className: "h-9 w-px bg-border-subtle"
7
+ });
8
+ }
9
+ function StatusBadge({ label }) {
10
+ return /*#__PURE__*/ jsx("div", {
11
+ className: "flex h-10 items-center rounded-xl bg-brand-subtle px-4 py-2",
12
+ children: /*#__PURE__*/ jsx("span", {
13
+ className: "text-sm font-bold leading-5 text-foreground-accent-muted",
14
+ children: label
15
+ })
16
+ });
17
+ }
18
+ function StatItem({ value, label }) {
19
+ return /*#__PURE__*/ jsxs("div", {
20
+ className: "flex flex-col gap-0.5",
21
+ children: [
22
+ /*#__PURE__*/ jsx("span", {
23
+ className: "text-[15px] font-semibold leading-5 text-foreground",
24
+ children: value
25
+ }),
26
+ /*#__PURE__*/ jsx("span", {
27
+ className: "text-sm font-medium leading-5 text-foreground-subtle",
28
+ children: label
29
+ })
30
+ ]
31
+ });
32
+ }
33
+ function ActionButton({ icon, label, onClick }) {
34
+ return /*#__PURE__*/ jsxs("button", {
35
+ className: "flex h-10 items-center gap-2 rounded-xl border border-border px-4 py-2 text-sm font-medium leading-5 text-foreground-subtle transition-colors hover:border-border-hover hover:text-foreground-hover",
36
+ onClick: onClick,
37
+ children: [
38
+ icon,
39
+ label
40
+ ]
41
+ });
42
+ }
43
+ function TabBar({ activeTab }) {
44
+ const tabs = [
45
+ {
46
+ id: 'steps',
47
+ label: 'Steps',
48
+ icon: /*#__PURE__*/ jsx(List, {
49
+ className: "h-4 w-4"
50
+ })
51
+ },
52
+ {
53
+ id: 'history',
54
+ label: 'History',
55
+ icon: /*#__PURE__*/ jsx(Calendar, {
56
+ className: "h-4 w-4"
57
+ })
58
+ },
59
+ {
60
+ id: 'resources',
61
+ label: 'Resources',
62
+ icon: /*#__PURE__*/ jsx(Folder, {
63
+ className: "h-4 w-4"
64
+ })
65
+ }
66
+ ];
67
+ return /*#__PURE__*/ jsx("div", {
68
+ className: "flex h-10 items-center rounded-xl bg-surface-overlay p-1",
69
+ children: tabs.map((tab)=>/*#__PURE__*/ jsxs("div", {
70
+ className: cn('flex h-8 items-center gap-2 rounded-[10px] px-4 py-2 text-sm font-medium leading-5 transition-colors', activeTab === tab.id ? 'border border-border-subtle bg-surface text-foreground' : 'text-foreground-subtle hover:text-foreground-hover'),
71
+ children: [
72
+ tab.icon,
73
+ /*#__PURE__*/ jsx("span", {
74
+ children: tab.label
75
+ })
76
+ ]
77
+ }, tab.id))
78
+ });
79
+ }
80
+ function StepCard({ step, isHovered }) {
81
+ return /*#__PURE__*/ jsxs("div", {
82
+ className: cn('flex h-16 items-center justify-between rounded-2xl border px-4', isHovered ? 'border-border-subtle bg-surface-overlay shadow-[0px_4px_24px_0px_rgba(0,0,0,0.25)]' : 'border-border-subtle'),
83
+ children: [
84
+ /*#__PURE__*/ jsxs("div", {
85
+ className: "flex items-center gap-4",
86
+ children: [
87
+ /*#__PURE__*/ jsx("div", {
88
+ className: "flex h-8 w-8 items-center justify-center rounded-lg bg-surface-hover",
89
+ children: /*#__PURE__*/ jsx(Bot, {
90
+ className: "h-5 w-5 text-foreground"
91
+ })
92
+ }),
93
+ /*#__PURE__*/ jsxs("div", {
94
+ className: "flex flex-col",
95
+ children: [
96
+ /*#__PURE__*/ jsxs("div", {
97
+ className: "flex items-start gap-0.5",
98
+ children: [
99
+ /*#__PURE__*/ jsx("span", {
100
+ className: "text-sm font-semibold leading-5 tracking-[-0.35px] text-foreground",
101
+ children: step.title
102
+ }),
103
+ /*#__PURE__*/ jsxs("span", {
104
+ className: "ms-1 text-xs leading-5 tracking-[-0.3px] text-foreground-subtle",
105
+ children: [
106
+ "• ",
107
+ step.stepRange
108
+ ]
109
+ })
110
+ ]
111
+ }),
112
+ step.loop ? /*#__PURE__*/ jsxs("div", {
113
+ className: "flex items-center gap-2",
114
+ children: [
115
+ /*#__PURE__*/ jsx("div", {
116
+ className: "flex h-5 w-5 items-center justify-center rounded-[10px] bg-surface-muted",
117
+ children: /*#__PURE__*/ jsx(Repeat2, {
118
+ className: "h-3.5 w-3.5 text-foreground-on-accent"
119
+ })
120
+ }),
121
+ /*#__PURE__*/ jsxs("span", {
122
+ className: "text-sm leading-5 text-foreground-subtle",
123
+ children: [
124
+ /*#__PURE__*/ jsx("span", {
125
+ className: "font-semibold",
126
+ children: "Loop"
127
+ }),
128
+ ": ",
129
+ step.loop
130
+ ]
131
+ })
132
+ ]
133
+ }) : /*#__PURE__*/ jsx("span", {
134
+ className: "text-sm leading-5 tracking-[-0.35px] text-foreground-subtle",
135
+ children: step.description
136
+ })
137
+ ]
138
+ })
139
+ ]
140
+ }),
141
+ /*#__PURE__*/ jsx(ChevronDown, {
142
+ className: "h-4 w-4 shrink-0 text-foreground-subtle"
143
+ })
144
+ ]
145
+ });
146
+ }
147
+ function StepsView({ className, flowName = 'Flow name', flowDescription = 'Lorem ipsum dolor sit amet lorem ipsum.', status = 'ACTIVE', lastRun = '25/11/2025 12:15PM', totalRuns = 32, steps = [
148
+ {
149
+ id: '1',
150
+ title: 'Gmail',
151
+ stepRange: 'Steps 1 - 2',
152
+ description: 'Evaluate temperature conditions and proceed'
153
+ },
154
+ {
155
+ id: '2',
156
+ title: 'Salesforce',
157
+ stepRange: 'Steps 3 - 5',
158
+ description: 'Evaluate temperature conditions and proceed'
159
+ },
160
+ {
161
+ id: '3',
162
+ title: 'Excel - Process vendor from each file',
163
+ stepRange: 'Steps 6 - 12',
164
+ description: 'Evaluate temperature conditions and proceed',
165
+ loop: 'For each row in the "vendor list", starting from the second row.'
166
+ },
167
+ {
168
+ id: '4',
169
+ title: 'Gmail',
170
+ stepRange: 'Steps 1 - 2',
171
+ description: 'Evaluate temperature conditions and proceed'
172
+ }
173
+ ], activeTab = 'steps', onBack, onEdit, onPause }) {
174
+ return /*#__PURE__*/ jsxs("div", {
175
+ className: cn('flex flex-1 flex-col p-0', className),
176
+ children: [
177
+ /*#__PURE__*/ jsxs("div", {
178
+ className: "flex min-h-[78px] shrink-0 items-center gap-8 overflow-x-auto px-10 py-5",
179
+ children: [
180
+ /*#__PURE__*/ jsxs("div", {
181
+ className: "flex shrink-0 items-center gap-4",
182
+ children: [
183
+ /*#__PURE__*/ jsx("button", {
184
+ type: "button",
185
+ className: "shrink-0 text-foreground transition-colors hover:text-foreground",
186
+ onClick: onBack,
187
+ "aria-label": "Go back",
188
+ children: /*#__PURE__*/ jsx(ArrowLeft, {
189
+ className: "h-6 w-6"
190
+ })
191
+ }),
192
+ /*#__PURE__*/ jsxs("div", {
193
+ className: "flex flex-col gap-1",
194
+ children: [
195
+ /*#__PURE__*/ jsx("span", {
196
+ className: "whitespace-nowrap text-xl font-semibold leading-5 text-foreground",
197
+ children: flowName
198
+ }),
199
+ /*#__PURE__*/ jsx("span", {
200
+ className: "whitespace-nowrap text-sm font-medium leading-5 text-foreground-subtle",
201
+ children: flowDescription
202
+ })
203
+ ]
204
+ })
205
+ ]
206
+ }),
207
+ /*#__PURE__*/ jsx(HeaderDivider, {}),
208
+ /*#__PURE__*/ jsx(StatusBadge, {
209
+ label: status
210
+ }),
211
+ /*#__PURE__*/ jsxs("div", {
212
+ className: "flex shrink-0 items-center gap-4",
213
+ children: [
214
+ /*#__PURE__*/ jsx(HeaderDivider, {}),
215
+ /*#__PURE__*/ jsx(StatItem, {
216
+ value: lastRun,
217
+ label: "Last run"
218
+ })
219
+ ]
220
+ }),
221
+ /*#__PURE__*/ jsxs("div", {
222
+ className: "flex shrink-0 items-center gap-4",
223
+ children: [
224
+ /*#__PURE__*/ jsx(HeaderDivider, {}),
225
+ /*#__PURE__*/ jsx(StatItem, {
226
+ value: String(totalRuns),
227
+ label: "Total runs"
228
+ })
229
+ ]
230
+ }),
231
+ /*#__PURE__*/ jsx("div", {
232
+ className: "flex-1"
233
+ }),
234
+ /*#__PURE__*/ jsxs("div", {
235
+ className: "flex shrink-0 items-center gap-2",
236
+ children: [
237
+ /*#__PURE__*/ jsx(ActionButton, {
238
+ icon: /*#__PURE__*/ jsx(Pencil, {
239
+ className: "h-4 w-4"
240
+ }),
241
+ label: "Edit",
242
+ onClick: onEdit
243
+ }),
244
+ /*#__PURE__*/ jsx(ActionButton, {
245
+ icon: /*#__PURE__*/ jsx(Pause, {
246
+ className: "h-4 w-4"
247
+ }),
248
+ label: "Pause",
249
+ onClick: onPause
250
+ })
251
+ ]
252
+ })
253
+ ]
254
+ }),
255
+ /*#__PURE__*/ jsxs("div", {
256
+ className: "flex flex-1 flex-col rounded-t-2xl border border-border-muted bg-surface p-4",
257
+ children: [
258
+ /*#__PURE__*/ jsx(TabBar, {
259
+ activeTab: activeTab
260
+ }),
261
+ /*#__PURE__*/ jsx("div", {
262
+ className: "mx-auto mt-20 flex w-full max-w-[680px] flex-col gap-6",
263
+ children: steps.map((step, index)=>/*#__PURE__*/ jsx(StepCard, {
264
+ step: step,
265
+ isHovered: index === steps.length - 1
266
+ }, step.id))
267
+ })
268
+ ]
269
+ })
270
+ ]
271
+ });
272
+ }
273
+ export { StepsView };