@uipath/apollo-wind 0.10.0 → 0.11.0-pr295.af4e744

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 (187) hide show
  1. package/dist/components/custom/canvas-studio.cjs +133 -0
  2. package/dist/components/custom/canvas-studio.d.ts +99 -0
  3. package/dist/components/custom/canvas-studio.js +93 -0
  4. package/dist/components/custom/canvas.cjs +44 -0
  5. package/dist/components/custom/canvas.d.ts +14 -0
  6. package/dist/components/custom/canvas.js +10 -0
  7. package/dist/components/custom/chat-composer.cjs +105 -0
  8. package/dist/components/custom/chat-composer.d.ts +15 -0
  9. package/dist/components/custom/chat-composer.js +71 -0
  10. package/dist/components/custom/chat-first-experience.cjs +87 -0
  11. package/dist/components/custom/chat-first-experience.d.ts +24 -0
  12. package/dist/components/custom/chat-first-experience.js +53 -0
  13. package/dist/components/custom/chat-prompt-suggestions.cjs +49 -0
  14. package/dist/components/custom/chat-prompt-suggestions.d.ts +18 -0
  15. package/dist/components/custom/chat-prompt-suggestions.js +15 -0
  16. package/dist/components/custom/chat-steps-view.cjs +308 -0
  17. package/dist/components/custom/chat-steps-view.d.ts +38 -0
  18. package/dist/components/custom/chat-steps-view.js +274 -0
  19. package/dist/components/custom/flow-node.cjs +76 -0
  20. package/dist/components/custom/flow-node.d.ts +20 -0
  21. package/dist/components/custom/flow-node.js +42 -0
  22. package/dist/components/custom/flow-properties-bar.cjs +103 -0
  23. package/dist/components/custom/flow-properties-bar.d.ts +21 -0
  24. package/dist/components/custom/flow-properties-bar.js +69 -0
  25. package/dist/components/custom/flow-properties-expanded.cjs +328 -0
  26. package/dist/components/custom/flow-properties-expanded.d.ts +21 -0
  27. package/dist/components/custom/flow-properties-expanded.js +294 -0
  28. package/dist/components/custom/flow-properties-simple.cjs +364 -0
  29. package/dist/components/custom/flow-properties-simple.d.ts +62 -0
  30. package/dist/components/custom/flow-properties-simple.js +330 -0
  31. package/dist/components/custom/flow-properties.cjs +56 -0
  32. package/dist/components/custom/flow-properties.d.ts +28 -0
  33. package/dist/components/custom/flow-properties.js +22 -0
  34. package/dist/components/custom/global-header.cjs +422 -0
  35. package/dist/components/custom/global-header.d.ts +38 -0
  36. package/dist/components/custom/global-header.js +388 -0
  37. package/dist/components/custom/grid-maestro.cjs +62 -0
  38. package/dist/components/custom/grid-maestro.d.ts +19 -0
  39. package/dist/components/custom/grid-maestro.js +22 -0
  40. package/dist/components/custom/page-header.cjs +92 -0
  41. package/dist/components/custom/page-header.d.ts +43 -0
  42. package/dist/components/custom/page-header.js +58 -0
  43. package/dist/components/custom/panel-delegate.cjs +285 -0
  44. package/dist/components/custom/panel-delegate.d.ts +34 -0
  45. package/dist/components/custom/panel-delegate.js +251 -0
  46. package/dist/components/custom/panel-flow.cjs +262 -0
  47. package/dist/components/custom/panel-flow.d.ts +38 -0
  48. package/dist/components/custom/panel-flow.js +225 -0
  49. package/dist/components/custom/panel-maestro.cjs +74 -0
  50. package/dist/components/custom/panel-maestro.d.ts +30 -0
  51. package/dist/components/custom/panel-maestro.js +40 -0
  52. package/dist/components/custom/panel-studio.cjs +122 -0
  53. package/dist/components/custom/panel-studio.d.ts +48 -0
  54. package/dist/components/custom/panel-studio.js +85 -0
  55. package/dist/components/custom/toolbar-canvas.cjs +124 -0
  56. package/dist/components/custom/toolbar-canvas.d.ts +15 -0
  57. package/dist/components/custom/toolbar-canvas.js +90 -0
  58. package/dist/components/custom/toolbar-view.cjs +121 -0
  59. package/dist/components/custom/toolbar-view.d.ts +14 -0
  60. package/dist/components/custom/toolbar-view.js +87 -0
  61. package/dist/components/custom/viewport-guard.cjs +92 -0
  62. package/dist/components/custom/viewport-guard.d.ts +23 -0
  63. package/dist/components/custom/viewport-guard.js +55 -0
  64. package/dist/components/forms/field-renderer.cjs +3 -1
  65. package/dist/components/forms/field-renderer.js +3 -1
  66. package/dist/components/forms/form-designer.cjs +13 -2
  67. package/dist/components/forms/form-designer.js +13 -2
  68. package/dist/components/forms/rules-engine.d.ts +1 -1
  69. package/dist/components/ui/breadcrumb.cjs +1 -2
  70. package/dist/components/ui/breadcrumb.js +1 -2
  71. package/dist/components/ui/button-group.cjs +5 -3
  72. package/dist/components/ui/button-group.d.ts +2 -2
  73. package/dist/components/ui/button-group.js +5 -3
  74. package/dist/components/ui/button.cjs +3 -3
  75. package/dist/components/ui/button.js +3 -3
  76. package/dist/components/ui/chart.cjs +223 -0
  77. package/dist/components/ui/chart.d.ts +40 -0
  78. package/dist/components/ui/chart.js +174 -0
  79. package/dist/components/ui/code-block.cjs +258 -0
  80. package/dist/components/ui/code-block.d.ts +48 -0
  81. package/dist/components/ui/code-block.js +207 -0
  82. package/dist/components/ui/data-table.cjs +22 -4
  83. package/dist/components/ui/data-table.d.ts +5 -2
  84. package/dist/components/ui/data-table.js +23 -5
  85. package/dist/components/ui/editable-cell.cjs +3 -10
  86. package/dist/components/ui/editable-cell.js +3 -10
  87. package/dist/components/ui/empty-state.cjs +17 -6
  88. package/dist/components/ui/empty-state.d.ts +7 -0
  89. package/dist/components/ui/empty-state.js +17 -6
  90. package/dist/components/ui/file-upload.cjs +8 -0
  91. package/dist/components/ui/file-upload.js +8 -0
  92. package/dist/components/ui/index.cjs +289 -149
  93. package/dist/components/ui/index.d.ts +2 -3
  94. package/dist/components/ui/index.js +2 -3
  95. package/dist/components/ui/multi-select.cjs +3 -10
  96. package/dist/components/ui/multi-select.js +3 -10
  97. package/dist/components/ui/pagination.cjs +0 -1
  98. package/dist/components/ui/pagination.js +0 -1
  99. package/dist/components/ui/resizable.d.ts +1 -1
  100. package/dist/components/ui/tree-view.cjs +1117 -0
  101. package/dist/components/ui/tree-view.d.ts +95 -0
  102. package/dist/components/ui/tree-view.js +1083 -0
  103. package/dist/foundation/Future/colors.cjs +92 -0
  104. package/dist/foundation/Future/colors.d.ts +132 -0
  105. package/dist/foundation/Future/colors.js +43 -0
  106. package/dist/foundation/Future/radius.cjs +46 -0
  107. package/dist/foundation/Future/radius.d.ts +33 -0
  108. package/dist/foundation/Future/radius.js +12 -0
  109. package/dist/foundation/Future/responsive.cjs +49 -0
  110. package/dist/foundation/Future/responsive.d.ts +40 -0
  111. package/dist/foundation/Future/responsive.js +12 -0
  112. package/dist/foundation/Future/shadows.cjs +48 -0
  113. package/dist/foundation/Future/shadows.d.ts +29 -0
  114. package/dist/foundation/Future/shadows.js +11 -0
  115. package/dist/foundation/Future/spacing.cjs +71 -0
  116. package/dist/foundation/Future/spacing.d.ts +80 -0
  117. package/dist/foundation/Future/spacing.js +31 -0
  118. package/dist/foundation/Future/strokes.cjs +59 -0
  119. package/dist/foundation/Future/strokes.d.ts +49 -0
  120. package/dist/foundation/Future/strokes.js +19 -0
  121. package/dist/foundation/Future/types.cjs +18 -0
  122. package/dist/foundation/Future/types.d.ts +25 -0
  123. package/dist/foundation/Future/types.js +0 -0
  124. package/dist/foundation/Future/typography.cjs +79 -0
  125. package/dist/foundation/Future/typography.d.ts +86 -0
  126. package/dist/foundation/Future/typography.js +33 -0
  127. package/dist/index.cjs +131 -221
  128. package/dist/index.d.ts +4 -3
  129. package/dist/index.js +3 -4
  130. package/dist/src/foundation/Future/themes.css +279 -0
  131. package/dist/styles.css +1941 -605
  132. package/dist/tailwind.css +874 -87
  133. package/dist/templates/Admin/settings-admin.d.ts +5 -0
  134. package/dist/templates/Admin/template-admin.d.ts +86 -0
  135. package/dist/templates/Delegate/template-delegate.d.ts +26 -0
  136. package/dist/templates/EmptyErrors/error-components.d.ts +3 -0
  137. package/dist/templates/Experiments/ideas-AnimatedGradientText.d.ts +23 -0
  138. package/dist/templates/Flow/template-flow.d.ts +57 -0
  139. package/dist/templates/Maestro/template-maestro.d.ts +52 -0
  140. package/dist/templates/Studio/template-studio.d.ts +102 -0
  141. package/dist/templates/{vscode-example.d.ts → VisualStudio/shell.d.ts} +1 -1
  142. package/package.json +12 -1
  143. package/dist/components/ui/menubar.cjs +0 -210
  144. package/dist/components/ui/menubar.d.ts +0 -28
  145. package/dist/components/ui/menubar.js +0 -131
  146. package/dist/components/ui/navigation-menu.cjs +0 -122
  147. package/dist/components/ui/navigation-menu.d.ts +0 -12
  148. package/dist/components/ui/navigation-menu.js +0 -64
  149. package/dist/examples/admin-layout-example.cjs +0 -490
  150. package/dist/examples/admin-layout-example.d.ts +0 -92
  151. package/dist/examples/admin-layout-example.js +0 -411
  152. package/dist/examples/app-shell-example.cjs +0 -452
  153. package/dist/examples/app-shell-example.d.ts +0 -52
  154. package/dist/examples/app-shell-example.js +0 -418
  155. package/dist/examples/dashboard-example.cjs +0 -590
  156. package/dist/examples/dashboard-example.d.ts +0 -11
  157. package/dist/examples/dashboard-example.js +0 -556
  158. package/dist/examples/data-management-example.cjs +0 -584
  159. package/dist/examples/data-management-example.d.ts +0 -1
  160. package/dist/examples/data-management-example.js +0 -550
  161. package/dist/examples/flow-editor-layout-example.cjs +0 -309
  162. package/dist/examples/flow-editor-layout-example.d.ts +0 -22
  163. package/dist/examples/flow-editor-layout-example.js +0 -269
  164. package/dist/examples/flow-start-example.cjs +0 -467
  165. package/dist/examples/flow-start-example.d.ts +0 -30
  166. package/dist/examples/flow-start-example.js +0 -433
  167. package/dist/examples/form-builder-example.cjs +0 -674
  168. package/dist/examples/form-builder-example.js +0 -640
  169. package/dist/examples/new-project-example.cjs +0 -550
  170. package/dist/examples/new-project-example.d.ts +0 -30
  171. package/dist/examples/new-project-example.js +0 -516
  172. package/dist/examples/settings-example.cjs +0 -864
  173. package/dist/examples/settings-example.d.ts +0 -1
  174. package/dist/examples/settings-example.js +0 -830
  175. package/dist/examples/vscode-example.cjs +0 -340
  176. package/dist/examples/vscode-example.d.ts +0 -80
  177. package/dist/examples/vscode-example.js +0 -270
  178. package/dist/templates/admin-layout-example.d.ts +0 -92
  179. package/dist/templates/app-shell-example.d.ts +0 -52
  180. package/dist/templates/dashboard-example.d.ts +0 -11
  181. package/dist/templates/data-management-example.d.ts +0 -1
  182. package/dist/templates/flow-editor-layout-example.d.ts +0 -22
  183. package/dist/templates/flow-start-example.d.ts +0 -30
  184. package/dist/templates/form-builder-example.d.ts +0 -1
  185. package/dist/templates/new-project-example.d.ts +0 -30
  186. package/dist/templates/settings-example.d.ts +0 -1
  187. /package/dist/{examples → templates/Forms}/form-builder-example.d.ts +0 -0
@@ -1,433 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Blocks, Bot, FolderKanban, GitBranch, LayoutGrid, List, MoreHorizontal } from "lucide-react";
3
- import { useMemo, useState } from "react";
4
- import { Badge } from "../components/ui/badge.js";
5
- import { Button } from "../components/ui/button.js";
6
- import { ButtonGroup } from "../components/ui/button-group.js";
7
- import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "../components/ui/card.js";
8
- import { DataTable, DataTableColumnHeader } from "../components/ui/data-table.js";
9
- import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../components/ui/dropdown-menu.js";
10
- import { Skeleton } from "../components/ui/skeleton.js";
11
- import { Column, Grid, Row } from "../components/ui/layout/index.js";
12
- import { cn } from "../lib/index.js";
13
- function ProcessOptionCard({ option, isSelected, onSelect }) {
14
- return /*#__PURE__*/ jsxs(Card, {
15
- className: cn('group relative cursor-pointer transition-all duration-200 hover:border-primary/50 hover:shadow-md', isSelected && 'border-primary ring-2 ring-primary/20'),
16
- onClick: onSelect,
17
- children: [
18
- option.badge && /*#__PURE__*/ jsx(Badge, {
19
- variant: option.badgeVariant,
20
- className: "absolute -top-2 right-4 text-[10px] px-2 py-0.5",
21
- children: option.badge
22
- }),
23
- /*#__PURE__*/ jsx(CardHeader, {
24
- className: "pb-3",
25
- children: /*#__PURE__*/ jsx(Row, {
26
- gap: 3,
27
- align: "center",
28
- children: /*#__PURE__*/ jsx("div", {
29
- className: "flex h-10 w-10 items-center justify-center rounded-lg bg-muted text-muted-foreground transition-colors group-hover:bg-primary/10 group-hover:text-primary",
30
- children: option.icon
31
- })
32
- })
33
- }),
34
- /*#__PURE__*/ jsxs(CardContent, {
35
- className: "pt-0",
36
- children: [
37
- /*#__PURE__*/ jsx(CardTitle, {
38
- className: "text-base mb-2",
39
- children: option.title
40
- }),
41
- /*#__PURE__*/ jsx(CardDescription, {
42
- className: "text-sm leading-relaxed",
43
- children: option.description
44
- })
45
- ]
46
- })
47
- ]
48
- });
49
- }
50
- function getTypeIcon(type) {
51
- switch(type){
52
- case 'flow':
53
- return /*#__PURE__*/ jsx(GitBranch, {
54
- className: "h-4 w-4"
55
- });
56
- case 'bpmn':
57
- return /*#__PURE__*/ jsx(Blocks, {
58
- className: "h-4 w-4"
59
- });
60
- case 'case':
61
- return /*#__PURE__*/ jsx(FolderKanban, {
62
- className: "h-4 w-4"
63
- });
64
- case 'autopilot':
65
- return /*#__PURE__*/ jsx(Bot, {
66
- className: "h-4 w-4"
67
- });
68
- }
69
- }
70
- function getTypeLabel(type) {
71
- switch(type){
72
- case 'flow':
73
- return 'Flow';
74
- case 'bpmn':
75
- return 'BPMN';
76
- case 'case':
77
- return 'Case Management';
78
- case 'autopilot':
79
- return 'Autopilot';
80
- }
81
- }
82
- function getStatusVariant(status) {
83
- switch(status){
84
- case 'published':
85
- return 'default';
86
- case 'draft':
87
- return 'secondary';
88
- case 'archived':
89
- return 'outline';
90
- default:
91
- return 'secondary';
92
- }
93
- }
94
- function RecentProjectCard({ project, onSelect }) {
95
- return /*#__PURE__*/ jsx(Card, {
96
- className: "group cursor-pointer transition-all duration-200 hover:border-primary/50 hover:shadow-sm",
97
- onClick: onSelect,
98
- children: /*#__PURE__*/ jsx(CardContent, {
99
- className: "p-4",
100
- children: /*#__PURE__*/ jsxs(Row, {
101
- gap: 3,
102
- align: "start",
103
- children: [
104
- /*#__PURE__*/ jsx("div", {
105
- className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground",
106
- children: getTypeIcon(project.type)
107
- }),
108
- /*#__PURE__*/ jsxs(Column, {
109
- gap: 1,
110
- flex: 1,
111
- className: "min-w-0",
112
- children: [
113
- /*#__PURE__*/ jsxs(Row, {
114
- justify: "between",
115
- align: "center",
116
- gap: 2,
117
- children: [
118
- /*#__PURE__*/ jsx("span", {
119
- className: "truncate font-medium text-sm",
120
- children: project.name
121
- }),
122
- project.status && /*#__PURE__*/ jsx(Badge, {
123
- variant: getStatusVariant(project.status),
124
- className: "shrink-0 text-[10px]",
125
- children: project.status
126
- })
127
- ]
128
- }),
129
- /*#__PURE__*/ jsx("span", {
130
- className: "text-xs text-muted-foreground",
131
- children: project.lastModified
132
- })
133
- ]
134
- })
135
- ]
136
- })
137
- })
138
- });
139
- }
140
- function SkeletonSection() {
141
- return /*#__PURE__*/ jsxs(Column, {
142
- gap: 4,
143
- children: [
144
- /*#__PURE__*/ jsx(Skeleton, {
145
- className: "h-5 w-32"
146
- }),
147
- /*#__PURE__*/ jsxs(Column, {
148
- gap: 3,
149
- children: [
150
- /*#__PURE__*/ jsx(Row, {
151
- gap: 2,
152
- children: /*#__PURE__*/ jsx(Skeleton, {
153
- className: "h-4 flex-1 max-w-[280px]"
154
- })
155
- }),
156
- /*#__PURE__*/ jsx(Row, {
157
- gap: 2,
158
- children: /*#__PURE__*/ jsx(Skeleton, {
159
- className: "h-4 flex-1 max-w-[240px]"
160
- })
161
- }),
162
- /*#__PURE__*/ jsx(Row, {
163
- gap: 2,
164
- children: /*#__PURE__*/ jsx(Skeleton, {
165
- className: "h-4 flex-1 max-w-[320px]"
166
- })
167
- }),
168
- /*#__PURE__*/ jsx(Row, {
169
- gap: 2,
170
- children: /*#__PURE__*/ jsx(Skeleton, {
171
- className: "h-4 flex-1 max-w-[200px]"
172
- })
173
- }),
174
- /*#__PURE__*/ jsx(Row, {
175
- gap: 2,
176
- children: /*#__PURE__*/ jsx(Skeleton, {
177
- className: "h-4 flex-1 max-w-[260px]"
178
- })
179
- })
180
- ]
181
- })
182
- ]
183
- });
184
- }
185
- function createProjectColumns(onProjectSelect) {
186
- return [
187
- {
188
- accessorKey: 'name',
189
- header: ({ column })=>/*#__PURE__*/ jsx(DataTableColumnHeader, {
190
- column: column,
191
- title: "Name"
192
- }),
193
- cell: ({ row })=>/*#__PURE__*/ jsxs(Row, {
194
- gap: 2,
195
- align: "center",
196
- children: [
197
- /*#__PURE__*/ jsx("div", {
198
- className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground",
199
- children: getTypeIcon(row.original.type)
200
- }),
201
- /*#__PURE__*/ jsx("span", {
202
- className: "font-medium",
203
- children: row.original.name
204
- })
205
- ]
206
- })
207
- },
208
- {
209
- accessorKey: 'type',
210
- header: ({ column })=>/*#__PURE__*/ jsx(DataTableColumnHeader, {
211
- column: column,
212
- title: "Type"
213
- }),
214
- cell: ({ row })=>/*#__PURE__*/ jsx("span", {
215
- className: "text-muted-foreground",
216
- children: getTypeLabel(row.original.type)
217
- })
218
- },
219
- {
220
- accessorKey: 'status',
221
- header: ({ column })=>/*#__PURE__*/ jsx(DataTableColumnHeader, {
222
- column: column,
223
- title: "Status"
224
- }),
225
- cell: ({ row })=>{
226
- const status = row.original.status;
227
- return status ? /*#__PURE__*/ jsx(Badge, {
228
- variant: getStatusVariant(status),
229
- className: "capitalize",
230
- children: status
231
- }) : null;
232
- }
233
- },
234
- {
235
- accessorKey: 'lastModified',
236
- header: ({ column })=>/*#__PURE__*/ jsx(DataTableColumnHeader, {
237
- column: column,
238
- title: "Last Modified"
239
- }),
240
- cell: ({ row })=>/*#__PURE__*/ jsx("span", {
241
- className: "text-muted-foreground",
242
- children: row.original.lastModified
243
- })
244
- },
245
- {
246
- id: 'actions',
247
- cell: ({ row })=>/*#__PURE__*/ jsxs(DropdownMenu, {
248
- children: [
249
- /*#__PURE__*/ jsx(DropdownMenuTrigger, {
250
- asChild: true,
251
- children: /*#__PURE__*/ jsx(Button, {
252
- variant: "ghost",
253
- size: "icon",
254
- className: "h-8 w-8",
255
- children: /*#__PURE__*/ jsx(MoreHorizontal, {
256
- className: "h-4 w-4"
257
- })
258
- })
259
- }),
260
- /*#__PURE__*/ jsxs(DropdownMenuContent, {
261
- align: "end",
262
- children: [
263
- /*#__PURE__*/ jsx(DropdownMenuItem, {
264
- onClick: ()=>onProjectSelect?.(row.original.id),
265
- children: "Open"
266
- }),
267
- /*#__PURE__*/ jsx(DropdownMenuItem, {
268
- children: "Duplicate"
269
- }),
270
- /*#__PURE__*/ jsx(DropdownMenuItem, {
271
- children: "Archive"
272
- })
273
- ]
274
- })
275
- ]
276
- })
277
- }
278
- ];
279
- }
280
- function FlowStartExample({ className, title = 'BUILD YOUR FIRST AGENTIC PROCESS', subtitle = 'What would you like to start with?', processOptions = [], recentProjects = [], showSkeleton = false, defaultViewMode = 'cards', onOptionSelect, onProjectSelect }) {
281
- const [selectedOption, setSelectedOption] = useState(null);
282
- const [viewMode, setViewMode] = useState(defaultViewMode);
283
- const handleOptionSelect = (optionId)=>{
284
- setSelectedOption(optionId);
285
- onOptionSelect?.(optionId);
286
- };
287
- const columns = useMemo(()=>createProjectColumns(onProjectSelect), [
288
- onProjectSelect
289
- ]);
290
- return /*#__PURE__*/ jsxs(Column, {
291
- minH: "screen",
292
- className: className,
293
- children: [
294
- /*#__PURE__*/ jsxs("div", {
295
- className: "bg-muted/40",
296
- children: [
297
- /*#__PURE__*/ jsx("header", {
298
- className: "border-b border-border/50 ",
299
- children: /*#__PURE__*/ jsxs(Row, {
300
- justify: "between",
301
- align: "center",
302
- className: "h-14 px-6",
303
- children: [
304
- /*#__PURE__*/ jsx("span", {
305
- className: "font-semibold text-lg",
306
- children: "UiPath Maestro"
307
- }),
308
- /*#__PURE__*/ jsx(Skeleton, {
309
- className: "h-8 w-8 rounded-full"
310
- })
311
- ]
312
- })
313
- }),
314
- /*#__PURE__*/ jsxs(Column, {
315
- className: "px-8 py-16 md:px-16",
316
- children: [
317
- /*#__PURE__*/ jsxs(Column, {
318
- gap: 3,
319
- align: "center",
320
- className: "mb-12 text-center",
321
- children: [
322
- /*#__PURE__*/ jsx("h1", {
323
- className: "text-3xl md:text-4xl font-bold tracking-tight uppercase",
324
- children: title
325
- }),
326
- /*#__PURE__*/ jsx("p", {
327
- className: "text-muted-foreground text-lg",
328
- children: subtitle
329
- })
330
- ]
331
- }),
332
- /*#__PURE__*/ jsx(Grid, {
333
- cols: 1,
334
- gap: 4,
335
- className: "sm:grid-cols-2 lg:grid-cols-4 max-w-6xl mx-auto w-full",
336
- children: processOptions.map((option)=>/*#__PURE__*/ jsx(ProcessOptionCard, {
337
- option: option,
338
- isSelected: selectedOption === option.id,
339
- onSelect: ()=>handleOptionSelect(option.id)
340
- }, option.id))
341
- }),
342
- showSkeleton && /*#__PURE__*/ jsx(Column, {
343
- gap: 12,
344
- className: "max-w-6xl mx-auto w-full mt-16",
345
- children: /*#__PURE__*/ jsxs(Grid, {
346
- cols: 1,
347
- gap: 8,
348
- className: "lg:grid-cols-3",
349
- children: [
350
- /*#__PURE__*/ jsx(SkeletonSection, {}),
351
- /*#__PURE__*/ jsx(SkeletonSection, {}),
352
- /*#__PURE__*/ jsx(SkeletonSection, {})
353
- ]
354
- })
355
- })
356
- ]
357
- })
358
- ]
359
- }),
360
- recentProjects.length > 0 && !showSkeleton && /*#__PURE__*/ jsx(Column, {
361
- flex: 1,
362
- className: "px-8 py-12 md:px-16",
363
- children: /*#__PURE__*/ jsxs(Column, {
364
- gap: 6,
365
- className: "max-w-6xl mx-auto w-full",
366
- children: [
367
- /*#__PURE__*/ jsxs(Row, {
368
- justify: "between",
369
- align: "center",
370
- children: [
371
- /*#__PURE__*/ jsx("h2", {
372
- className: "text-xl font-semibold",
373
- children: "Recent Projects"
374
- }),
375
- /*#__PURE__*/ jsxs(ButtonGroup, {
376
- children: [
377
- /*#__PURE__*/ jsx(Button, {
378
- variant: 'cards' === viewMode ? 'secondary' : 'outline',
379
- size: "icon",
380
- onClick: ()=>setViewMode('cards'),
381
- "aria-label": "Card view",
382
- children: /*#__PURE__*/ jsx(LayoutGrid, {
383
- className: "h-4 w-4"
384
- })
385
- }),
386
- /*#__PURE__*/ jsx(Button, {
387
- variant: 'table' === viewMode ? 'secondary' : 'outline',
388
- size: "icon",
389
- onClick: ()=>setViewMode('table'),
390
- "aria-label": "Table view",
391
- children: /*#__PURE__*/ jsx(List, {
392
- className: "h-4 w-4"
393
- })
394
- })
395
- ]
396
- })
397
- ]
398
- }),
399
- 'cards' === viewMode && /*#__PURE__*/ jsx(Grid, {
400
- cols: 1,
401
- gap: 4,
402
- className: "sm:grid-cols-2 lg:grid-cols-4",
403
- children: recentProjects.map((project)=>/*#__PURE__*/ jsx(RecentProjectCard, {
404
- project: project,
405
- onSelect: ()=>onProjectSelect?.(project.id)
406
- }, project.id))
407
- }),
408
- 'table' === viewMode && /*#__PURE__*/ jsx(DataTable, {
409
- columns: columns,
410
- data: recentProjects,
411
- searchKey: "name",
412
- searchPlaceholder: "Search projects...",
413
- showColumnToggle: false,
414
- showPagination: recentProjects.length > 10,
415
- compact: true
416
- })
417
- ]
418
- })
419
- }),
420
- showSkeleton && /*#__PURE__*/ jsx("div", {
421
- className: "bg-background border-t flex-1",
422
- children: /*#__PURE__*/ jsx(Row, {
423
- justify: "center",
424
- className: "px-8 py-8",
425
- children: /*#__PURE__*/ jsx(Skeleton, {
426
- className: "h-24 w-full max-w-4xl rounded-lg"
427
- })
428
- })
429
- })
430
- ]
431
- });
432
- }
433
- export { FlowStartExample };