@uipath/apollo-wind 0.9.0 → 0.10.0-pr257.2a4b17b

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 (145) hide show
  1. package/dist/components/forms/field-renderer.cjs +120 -69
  2. package/dist/components/forms/field-renderer.js +120 -69
  3. package/dist/components/forms/form-designer.cjs +2352 -1488
  4. package/dist/components/forms/form-designer.js +2353 -1489
  5. package/dist/components/forms/form-examples.cjs +10 -10
  6. package/dist/components/forms/form-examples.js +10 -10
  7. package/dist/components/forms/form-state-viewer.cjs +988 -433
  8. package/dist/components/forms/form-state-viewer.js +988 -433
  9. package/dist/components/forms/metadata-form.cjs +446 -170
  10. package/dist/components/forms/metadata-form.js +446 -170
  11. package/dist/components/forms/schema-viewer.cjs +173 -80
  12. package/dist/components/forms/schema-viewer.js +173 -80
  13. package/dist/components/ui/accordion.cjs +131 -27
  14. package/dist/components/ui/accordion.js +131 -27
  15. package/dist/components/ui/alert-dialog.cjs +273 -45
  16. package/dist/components/ui/alert-dialog.js +273 -45
  17. package/dist/components/ui/alert.cjs +106 -17
  18. package/dist/components/ui/alert.js +106 -17
  19. package/dist/components/ui/avatar.cjs +100 -15
  20. package/dist/components/ui/avatar.js +100 -15
  21. package/dist/components/ui/badge.cjs +36 -6
  22. package/dist/components/ui/badge.js +36 -6
  23. package/dist/components/ui/breadcrumb.cjs +258 -52
  24. package/dist/components/ui/breadcrumb.js +258 -52
  25. package/dist/components/ui/button-group.cjs +119 -19
  26. package/dist/components/ui/button-group.js +119 -19
  27. package/dist/components/ui/button.cjs +48 -8
  28. package/dist/components/ui/button.js +48 -8
  29. package/dist/components/ui/calendar.cjs +88 -30
  30. package/dist/components/ui/calendar.js +88 -30
  31. package/dist/components/ui/card.cjs +199 -30
  32. package/dist/components/ui/card.js +199 -30
  33. package/dist/components/ui/checkbox.cjs +42 -8
  34. package/dist/components/ui/checkbox.js +42 -8
  35. package/dist/components/ui/combobox.cjs +150 -53
  36. package/dist/components/ui/combobox.js +150 -53
  37. package/dist/components/ui/command.cjs +291 -53
  38. package/dist/components/ui/command.js +291 -53
  39. package/dist/components/ui/context-menu.cjs +370 -72
  40. package/dist/components/ui/context-menu.js +370 -72
  41. package/dist/components/ui/data-table.cjs +76 -39
  42. package/dist/components/ui/data-table.js +76 -39
  43. package/dist/components/ui/date-picker.cjs +179 -68
  44. package/dist/components/ui/date-picker.js +179 -68
  45. package/dist/components/ui/datetime-picker.cjs +225 -104
  46. package/dist/components/ui/datetime-picker.js +225 -104
  47. package/dist/components/ui/dialog.cjs +290 -78
  48. package/dist/components/ui/dialog.js +290 -78
  49. package/dist/components/ui/drawer.cjs +220 -39
  50. package/dist/components/ui/drawer.js +220 -39
  51. package/dist/components/ui/dropdown-menu.cjs +376 -73
  52. package/dist/components/ui/dropdown-menu.js +376 -73
  53. package/dist/components/ui/editable-cell.cjs +106 -42
  54. package/dist/components/ui/editable-cell.js +106 -42
  55. package/dist/components/ui/empty-state.cjs +106 -33
  56. package/dist/components/ui/empty-state.js +106 -33
  57. package/dist/components/ui/file-upload.cjs +405 -187
  58. package/dist/components/ui/file-upload.d.ts +3 -1
  59. package/dist/components/ui/file-upload.js +405 -187
  60. package/dist/components/ui/hover-card.cjs +46 -7
  61. package/dist/components/ui/hover-card.js +46 -7
  62. package/dist/components/ui/index.cjs +4 -4
  63. package/dist/components/ui/input.cjs +39 -6
  64. package/dist/components/ui/input.js +39 -6
  65. package/dist/components/ui/label.cjs +34 -5
  66. package/dist/components/ui/label.js +34 -5
  67. package/dist/components/ui/layout/column.cjs +209 -41
  68. package/dist/components/ui/layout/column.js +209 -41
  69. package/dist/components/ui/layout/grid.cjs +275 -60
  70. package/dist/components/ui/layout/grid.js +275 -60
  71. package/dist/components/ui/layout/row.cjs +209 -41
  72. package/dist/components/ui/layout/row.js +209 -41
  73. package/dist/components/ui/menubar.cjs +540 -106
  74. package/dist/components/ui/menubar.js +540 -106
  75. package/dist/components/ui/multi-select.cjs +289 -135
  76. package/dist/components/ui/multi-select.js +289 -135
  77. package/dist/components/ui/navigation-menu.cjs +244 -47
  78. package/dist/components/ui/navigation-menu.js +244 -47
  79. package/dist/components/ui/pagination.cjs +301 -65
  80. package/dist/components/ui/pagination.js +301 -65
  81. package/dist/components/ui/popover.cjs +48 -9
  82. package/dist/components/ui/popover.js +48 -9
  83. package/dist/components/ui/progress.cjs +48 -8
  84. package/dist/components/ui/progress.js +48 -8
  85. package/dist/components/ui/radio-group.cjs +74 -12
  86. package/dist/components/ui/radio-group.js +74 -12
  87. package/dist/components/ui/resizable.cjs +75 -10
  88. package/dist/components/ui/resizable.js +75 -10
  89. package/dist/components/ui/scroll-area.cjs +113 -21
  90. package/dist/components/ui/scroll-area.js +113 -21
  91. package/dist/components/ui/search.cjs +280 -98
  92. package/dist/components/ui/search.js +280 -98
  93. package/dist/components/ui/select.cjs +334 -68
  94. package/dist/components/ui/select.js +334 -68
  95. package/dist/components/ui/separator.cjs +48 -7
  96. package/dist/components/ui/separator.js +48 -7
  97. package/dist/components/ui/sheet.cjs +236 -50
  98. package/dist/components/ui/sheet.js +236 -50
  99. package/dist/components/ui/skeleton.cjs +31 -5
  100. package/dist/components/ui/skeleton.js +31 -5
  101. package/dist/components/ui/slider.cjs +71 -21
  102. package/dist/components/ui/slider.js +71 -21
  103. package/dist/components/ui/sonner.cjs +43 -15
  104. package/dist/components/ui/sonner.js +43 -15
  105. package/dist/components/ui/spinner.cjs +83 -21
  106. package/dist/components/ui/spinner.js +83 -21
  107. package/dist/components/ui/stats-card.cjs +169 -60
  108. package/dist/components/ui/stats-card.js +169 -60
  109. package/dist/components/ui/stepper.cjs +126 -57
  110. package/dist/components/ui/stepper.js +126 -57
  111. package/dist/components/ui/switch.cjs +42 -8
  112. package/dist/components/ui/switch.js +42 -8
  113. package/dist/components/ui/table.cjs +267 -42
  114. package/dist/components/ui/table.js +267 -42
  115. package/dist/components/ui/tabs.cjs +100 -15
  116. package/dist/components/ui/tabs.js +100 -15
  117. package/dist/components/ui/textarea.cjs +34 -5
  118. package/dist/components/ui/textarea.js +34 -5
  119. package/dist/components/ui/toggle-group.cjs +112 -19
  120. package/dist/components/ui/toggle-group.js +112 -19
  121. package/dist/components/ui/toggle.cjs +43 -6
  122. package/dist/components/ui/toggle.js +43 -6
  123. package/dist/components/ui/tooltip.cjs +40 -6
  124. package/dist/components/ui/tooltip.js +40 -6
  125. package/dist/examples/admin-layout-example.cjs +879 -347
  126. package/dist/examples/admin-layout-example.js +879 -347
  127. package/dist/examples/app-shell-example.cjs +14 -14
  128. package/dist/examples/app-shell-example.js +14 -14
  129. package/dist/examples/dashboard-example.cjs +495 -334
  130. package/dist/examples/dashboard-example.js +495 -334
  131. package/dist/examples/data-management-example.cjs +501 -303
  132. package/dist/examples/data-management-example.js +502 -304
  133. package/dist/examples/flow-editor-layout-example.cjs +435 -231
  134. package/dist/examples/flow-editor-layout-example.js +436 -232
  135. package/dist/examples/flow-start-example.cjs +508 -251
  136. package/dist/examples/flow-start-example.js +509 -252
  137. package/dist/examples/form-builder-example.cjs +1006 -602
  138. package/dist/examples/form-builder-example.js +1007 -603
  139. package/dist/examples/new-project-example.cjs +806 -474
  140. package/dist/examples/new-project-example.js +807 -475
  141. package/dist/examples/settings-example.cjs +792 -704
  142. package/dist/examples/settings-example.js +792 -704
  143. package/dist/examples/vscode-example.cjs +731 -236
  144. package/dist/examples/vscode-example.js +731 -236
  145. package/package.json +4 -1
@@ -1,6 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { Blocks, Bot, FolderKanban, GitBranch, LayoutGrid, List, MoreHorizontal } from "lucide-react";
3
- import { useMemo, useState } from "react";
4
+ import { useState } from "react";
4
5
  import { Badge } from "../components/ui/badge.js";
5
6
  import { Button } from "../components/ui/button.js";
6
7
  import { ButtonGroup } from "../components/ui/button-group.js";
@@ -10,42 +11,93 @@ import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigge
10
11
  import { Skeleton } from "../components/ui/skeleton.js";
11
12
  import { Column, Grid, Row } from "../components/ui/layout/index.js";
12
13
  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
- })
14
+ function ProcessOptionCard(t0) {
15
+ const $ = c(20);
16
+ const { option, isSelected, onSelect } = t0;
17
+ const t1 = isSelected && "border-primary ring-2 ring-primary/20";
18
+ let t2;
19
+ if ($[0] !== t1) {
20
+ t2 = cn("group relative cursor-pointer transition-all duration-200 hover:border-primary/50 hover:shadow-md", t1);
21
+ $[0] = t1;
22
+ $[1] = t2;
23
+ } else t2 = $[1];
24
+ let t3;
25
+ if ($[2] !== option.badge || $[3] !== option.badgeVariant) {
26
+ t3 = option.badge && /*#__PURE__*/ jsx(Badge, {
27
+ variant: option.badgeVariant,
28
+ className: "absolute -top-2 right-4 text-[10px] px-2 py-0.5",
29
+ children: option.badge
30
+ });
31
+ $[2] = option.badge;
32
+ $[3] = option.badgeVariant;
33
+ $[4] = t3;
34
+ } else t3 = $[4];
35
+ let t4;
36
+ if ($[5] !== option.icon) {
37
+ t4 = /*#__PURE__*/ jsx(CardHeader, {
38
+ className: "pb-3",
39
+ children: /*#__PURE__*/ jsx(Row, {
40
+ gap: 3,
41
+ align: "center",
42
+ children: /*#__PURE__*/ jsx("div", {
43
+ 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",
44
+ children: option.icon
32
45
  })
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
46
  })
47
- ]
48
- });
47
+ });
48
+ $[5] = option.icon;
49
+ $[6] = t4;
50
+ } else t4 = $[6];
51
+ let t5;
52
+ if ($[7] !== option.title) {
53
+ t5 = /*#__PURE__*/ jsx(CardTitle, {
54
+ className: "text-base mb-2",
55
+ children: option.title
56
+ });
57
+ $[7] = option.title;
58
+ $[8] = t5;
59
+ } else t5 = $[8];
60
+ let t6;
61
+ if ($[9] !== option.description) {
62
+ t6 = /*#__PURE__*/ jsx(CardDescription, {
63
+ className: "text-sm leading-relaxed",
64
+ children: option.description
65
+ });
66
+ $[9] = option.description;
67
+ $[10] = t6;
68
+ } else t6 = $[10];
69
+ let t7;
70
+ if ($[11] !== t5 || $[12] !== t6) {
71
+ t7 = /*#__PURE__*/ jsxs(CardContent, {
72
+ className: "pt-0",
73
+ children: [
74
+ t5,
75
+ t6
76
+ ]
77
+ });
78
+ $[11] = t5;
79
+ $[12] = t6;
80
+ $[13] = t7;
81
+ } else t7 = $[13];
82
+ let t8;
83
+ if ($[14] !== onSelect || $[15] !== t2 || $[16] !== t3 || $[17] !== t4 || $[18] !== t7) {
84
+ t8 = /*#__PURE__*/ jsxs(Card, {
85
+ className: t2,
86
+ onClick: onSelect,
87
+ children: [
88
+ t3,
89
+ t4,
90
+ t7
91
+ ]
92
+ });
93
+ $[14] = onSelect;
94
+ $[15] = t2;
95
+ $[16] = t3;
96
+ $[17] = t4;
97
+ $[18] = t7;
98
+ $[19] = t8;
99
+ } else t8 = $[19];
100
+ return t8;
49
101
  }
50
102
  function getTypeIcon(type) {
51
103
  switch(type){
@@ -91,96 +143,187 @@ function getStatusVariant(status) {
91
143
  return 'secondary';
92
144
  }
93
145
  }
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, {
146
+ function RecentProjectCard(t0) {
147
+ const $ = c(22);
148
+ const { project, onSelect } = t0;
149
+ let t1;
150
+ if ($[0] !== project.type) {
151
+ t1 = getTypeIcon(project.type);
152
+ $[0] = project.type;
153
+ $[1] = t1;
154
+ } else t1 = $[1];
155
+ let t2;
156
+ if ($[2] !== t1) {
157
+ t2 = /*#__PURE__*/ jsx("div", {
158
+ className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground",
159
+ children: t1
160
+ });
161
+ $[2] = t1;
162
+ $[3] = t2;
163
+ } else t2 = $[3];
164
+ let t3;
165
+ if ($[4] !== project.name) {
166
+ t3 = /*#__PURE__*/ jsx("span", {
167
+ className: "truncate font-medium text-sm",
168
+ children: project.name
169
+ });
170
+ $[4] = project.name;
171
+ $[5] = t3;
172
+ } else t3 = $[5];
173
+ let t4;
174
+ if ($[6] !== project.status) {
175
+ t4 = project.status && /*#__PURE__*/ jsx(Badge, {
176
+ variant: getStatusVariant(project.status),
177
+ className: "shrink-0 text-[10px]",
178
+ children: project.status
179
+ });
180
+ $[6] = project.status;
181
+ $[7] = t4;
182
+ } else t4 = $[7];
183
+ let t5;
184
+ if ($[8] !== t3 || $[9] !== t4) {
185
+ t5 = /*#__PURE__*/ jsxs(Row, {
186
+ justify: "between",
187
+ align: "center",
188
+ gap: 2,
189
+ children: [
190
+ t3,
191
+ t4
192
+ ]
193
+ });
194
+ $[8] = t3;
195
+ $[9] = t4;
196
+ $[10] = t5;
197
+ } else t5 = $[10];
198
+ let t6;
199
+ if ($[11] !== project.lastModified) {
200
+ t6 = /*#__PURE__*/ jsx("span", {
201
+ className: "text-xs text-muted-foreground",
202
+ children: project.lastModified
203
+ });
204
+ $[11] = project.lastModified;
205
+ $[12] = t6;
206
+ } else t6 = $[12];
207
+ let t7;
208
+ if ($[13] !== t5 || $[14] !== t6) {
209
+ t7 = /*#__PURE__*/ jsxs(Column, {
210
+ gap: 1,
211
+ flex: 1,
212
+ className: "min-w-0",
213
+ children: [
214
+ t5,
215
+ t6
216
+ ]
217
+ });
218
+ $[13] = t5;
219
+ $[14] = t6;
220
+ $[15] = t7;
221
+ } else t7 = $[15];
222
+ let t8;
223
+ if ($[16] !== t2 || $[17] !== t7) {
224
+ t8 = /*#__PURE__*/ jsx(CardContent, {
99
225
  className: "p-4",
100
226
  children: /*#__PURE__*/ jsxs(Row, {
101
227
  gap: 3,
102
228
  align: "start",
103
229
  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
- })
230
+ t2,
231
+ t7
135
232
  ]
136
233
  })
137
- })
138
- });
234
+ });
235
+ $[16] = t2;
236
+ $[17] = t7;
237
+ $[18] = t8;
238
+ } else t8 = $[18];
239
+ let t9;
240
+ if ($[19] !== onSelect || $[20] !== t8) {
241
+ t9 = /*#__PURE__*/ jsx(Card, {
242
+ className: "group cursor-pointer transition-all duration-200 hover:border-primary/50 hover:shadow-sm",
243
+ onClick: onSelect,
244
+ children: t8
245
+ });
246
+ $[19] = onSelect;
247
+ $[20] = t8;
248
+ $[21] = t9;
249
+ } else t9 = $[21];
250
+ return t9;
139
251
  }
140
252
  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
- ]
253
+ const $ = c(6);
254
+ let t0;
255
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
256
+ t0 = /*#__PURE__*/ jsx(Skeleton, {
257
+ className: "h-5 w-32"
258
+ });
259
+ $[0] = t0;
260
+ } else t0 = $[0];
261
+ let t1;
262
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
263
+ t1 = /*#__PURE__*/ jsx(Row, {
264
+ gap: 2,
265
+ children: /*#__PURE__*/ jsx(Skeleton, {
266
+ className: "h-4 flex-1 max-w-[280px]"
267
+ })
268
+ });
269
+ $[1] = t1;
270
+ } else t1 = $[1];
271
+ let t2;
272
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
273
+ t2 = /*#__PURE__*/ jsx(Row, {
274
+ gap: 2,
275
+ children: /*#__PURE__*/ jsx(Skeleton, {
276
+ className: "h-4 flex-1 max-w-[240px]"
277
+ })
278
+ });
279
+ $[2] = t2;
280
+ } else t2 = $[2];
281
+ let t3;
282
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
283
+ t3 = /*#__PURE__*/ jsx(Row, {
284
+ gap: 2,
285
+ children: /*#__PURE__*/ jsx(Skeleton, {
286
+ className: "h-4 flex-1 max-w-[320px]"
181
287
  })
182
- ]
183
- });
288
+ });
289
+ $[3] = t3;
290
+ } else t3 = $[3];
291
+ let t4;
292
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
293
+ t4 = /*#__PURE__*/ jsx(Row, {
294
+ gap: 2,
295
+ children: /*#__PURE__*/ jsx(Skeleton, {
296
+ className: "h-4 flex-1 max-w-[200px]"
297
+ })
298
+ });
299
+ $[4] = t4;
300
+ } else t4 = $[4];
301
+ let t5;
302
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
303
+ t5 = /*#__PURE__*/ jsxs(Column, {
304
+ gap: 4,
305
+ children: [
306
+ t0,
307
+ /*#__PURE__*/ jsxs(Column, {
308
+ gap: 3,
309
+ children: [
310
+ t1,
311
+ t2,
312
+ t3,
313
+ t4,
314
+ /*#__PURE__*/ jsx(Row, {
315
+ gap: 2,
316
+ children: /*#__PURE__*/ jsx(Skeleton, {
317
+ className: "h-4 flex-1 max-w-[260px]"
318
+ })
319
+ })
320
+ ]
321
+ })
322
+ ]
323
+ });
324
+ $[5] = t5;
325
+ } else t5 = $[5];
326
+ return t5;
184
327
  }
185
328
  function createProjectColumns(onProjectSelect) {
186
329
  return [
@@ -277,157 +420,271 @@ function createProjectColumns(onProjectSelect) {
277
420
  }
278
421
  ];
279
422
  }
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 }) {
423
+ function FlowStartExample(t0) {
424
+ const $ = c(44);
425
+ const { className, title: t1, subtitle: t2, processOptions: t3, recentProjects: t4, showSkeleton: t5, defaultViewMode: t6, onOptionSelect, onProjectSelect } = t0;
426
+ const title = void 0 === t1 ? "BUILD YOUR FIRST AGENTIC PROCESS" : t1;
427
+ const subtitle = void 0 === t2 ? "What would you like to start with?" : t2;
428
+ let t7;
429
+ if ($[0] !== t3) {
430
+ t7 = void 0 === t3 ? [] : t3;
431
+ $[0] = t3;
432
+ $[1] = t7;
433
+ } else t7 = $[1];
434
+ const processOptions = t7;
435
+ let t8;
436
+ if ($[2] !== t4) {
437
+ t8 = void 0 === t4 ? [] : t4;
438
+ $[2] = t4;
439
+ $[3] = t8;
440
+ } else t8 = $[3];
441
+ const recentProjects = t8;
442
+ const showSkeleton = void 0 === t5 ? false : t5;
443
+ const defaultViewMode = void 0 === t6 ? "cards" : t6;
281
444
  const [selectedOption, setSelectedOption] = useState(null);
282
445
  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",
446
+ let t9;
447
+ if ($[4] !== onOptionSelect) {
448
+ t9 = (optionId)=>{
449
+ setSelectedOption(optionId);
450
+ onOptionSelect?.(optionId);
451
+ };
452
+ $[4] = onOptionSelect;
453
+ $[5] = t9;
454
+ } else t9 = $[5];
455
+ const handleOptionSelect = t9;
456
+ let t10;
457
+ if ($[6] !== onProjectSelect) {
458
+ t10 = createProjectColumns(onProjectSelect);
459
+ $[6] = onProjectSelect;
460
+ $[7] = t10;
461
+ } else t10 = $[7];
462
+ const columns = t10;
463
+ let t11;
464
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
465
+ t11 = /*#__PURE__*/ jsx("header", {
466
+ className: "border-b border-border/50 ",
467
+ children: /*#__PURE__*/ jsxs(Row, {
468
+ justify: "between",
469
+ align: "center",
470
+ className: "h-14 px-6",
296
471
  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
- })
472
+ /*#__PURE__*/ jsx("span", {
473
+ className: "font-semibold text-lg",
474
+ children: "UiPath Maestro"
313
475
  }),
314
- /*#__PURE__*/ jsxs(Column, {
315
- className: "px-8 py-16 md:px-16",
476
+ /*#__PURE__*/ jsx(Skeleton, {
477
+ className: "h-8 w-8 rounded-full"
478
+ })
479
+ ]
480
+ })
481
+ });
482
+ $[8] = t11;
483
+ } else t11 = $[8];
484
+ let t12;
485
+ if ($[9] !== title) {
486
+ t12 = /*#__PURE__*/ jsx("h1", {
487
+ className: "text-3xl md:text-4xl font-bold tracking-tight uppercase",
488
+ children: title
489
+ });
490
+ $[9] = title;
491
+ $[10] = t12;
492
+ } else t12 = $[10];
493
+ let t13;
494
+ if ($[11] !== subtitle) {
495
+ t13 = /*#__PURE__*/ jsx("p", {
496
+ className: "text-muted-foreground text-lg",
497
+ children: subtitle
498
+ });
499
+ $[11] = subtitle;
500
+ $[12] = t13;
501
+ } else t13 = $[12];
502
+ let t14;
503
+ if ($[13] !== t12 || $[14] !== t13) {
504
+ t14 = /*#__PURE__*/ jsxs(Column, {
505
+ gap: 3,
506
+ align: "center",
507
+ className: "mb-12 text-center",
508
+ children: [
509
+ t12,
510
+ t13
511
+ ]
512
+ });
513
+ $[13] = t12;
514
+ $[14] = t13;
515
+ $[15] = t14;
516
+ } else t14 = $[15];
517
+ let t15;
518
+ if ($[16] !== handleOptionSelect || $[17] !== processOptions || $[18] !== selectedOption) {
519
+ let t16;
520
+ if ($[20] !== handleOptionSelect || $[21] !== selectedOption) {
521
+ t16 = (option)=>/*#__PURE__*/ jsx(ProcessOptionCard, {
522
+ option: option,
523
+ isSelected: selectedOption === option.id,
524
+ onSelect: ()=>handleOptionSelect(option.id)
525
+ }, option.id);
526
+ $[20] = handleOptionSelect;
527
+ $[21] = selectedOption;
528
+ $[22] = t16;
529
+ } else t16 = $[22];
530
+ t15 = processOptions.map(t16);
531
+ $[16] = handleOptionSelect;
532
+ $[17] = processOptions;
533
+ $[18] = selectedOption;
534
+ $[19] = t15;
535
+ } else t15 = $[19];
536
+ let t16;
537
+ if ($[23] !== t15) {
538
+ t16 = /*#__PURE__*/ jsx(Grid, {
539
+ cols: 1,
540
+ gap: 4,
541
+ className: "sm:grid-cols-2 lg:grid-cols-4 max-w-6xl mx-auto w-full",
542
+ children: t15
543
+ });
544
+ $[23] = t15;
545
+ $[24] = t16;
546
+ } else t16 = $[24];
547
+ let t17;
548
+ if ($[25] !== showSkeleton) {
549
+ t17 = showSkeleton && /*#__PURE__*/ jsx(Column, {
550
+ gap: 12,
551
+ className: "max-w-6xl mx-auto w-full mt-16",
552
+ children: /*#__PURE__*/ jsxs(Grid, {
553
+ cols: 1,
554
+ gap: 8,
555
+ className: "lg:grid-cols-3",
556
+ children: [
557
+ /*#__PURE__*/ jsx(SkeletonSection, {}),
558
+ /*#__PURE__*/ jsx(SkeletonSection, {}),
559
+ /*#__PURE__*/ jsx(SkeletonSection, {})
560
+ ]
561
+ })
562
+ });
563
+ $[25] = showSkeleton;
564
+ $[26] = t17;
565
+ } else t17 = $[26];
566
+ let t18;
567
+ if ($[27] !== t14 || $[28] !== t16 || $[29] !== t17) {
568
+ t18 = /*#__PURE__*/ jsxs("div", {
569
+ className: "bg-muted/40",
570
+ children: [
571
+ t11,
572
+ /*#__PURE__*/ jsxs(Column, {
573
+ className: "px-8 py-16 md:px-16",
574
+ children: [
575
+ t14,
576
+ t16,
577
+ t17
578
+ ]
579
+ })
580
+ ]
581
+ });
582
+ $[27] = t14;
583
+ $[28] = t16;
584
+ $[29] = t17;
585
+ $[30] = t18;
586
+ } else t18 = $[30];
587
+ let t19;
588
+ if ($[31] !== columns || $[32] !== onProjectSelect || $[33] !== recentProjects || $[34] !== showSkeleton || $[35] !== viewMode) {
589
+ t19 = recentProjects.length > 0 && !showSkeleton && /*#__PURE__*/ jsx(Column, {
590
+ flex: 1,
591
+ className: "px-8 py-12 md:px-16",
592
+ children: /*#__PURE__*/ jsxs(Column, {
593
+ gap: 6,
594
+ className: "max-w-6xl mx-auto w-full",
595
+ children: [
596
+ /*#__PURE__*/ jsxs(Row, {
597
+ justify: "between",
598
+ align: "center",
316
599
  children: [
317
- /*#__PURE__*/ jsxs(Column, {
318
- gap: 3,
319
- align: "center",
320
- className: "mb-12 text-center",
600
+ /*#__PURE__*/ jsx("h2", {
601
+ className: "text-xl font-semibold",
602
+ children: "Recent Projects"
603
+ }),
604
+ /*#__PURE__*/ jsxs(ButtonGroup, {
321
605
  children: [
322
- /*#__PURE__*/ jsx("h1", {
323
- className: "text-3xl md:text-4xl font-bold tracking-tight uppercase",
324
- children: title
606
+ /*#__PURE__*/ jsx(Button, {
607
+ variant: "cards" === viewMode ? "secondary" : "outline",
608
+ size: "icon",
609
+ onClick: ()=>setViewMode("cards"),
610
+ "aria-label": "Card view",
611
+ children: /*#__PURE__*/ jsx(LayoutGrid, {
612
+ className: "h-4 w-4"
613
+ })
325
614
  }),
326
- /*#__PURE__*/ jsx("p", {
327
- className: "text-muted-foreground text-lg",
328
- children: subtitle
615
+ /*#__PURE__*/ jsx(Button, {
616
+ variant: "table" === viewMode ? "secondary" : "outline",
617
+ size: "icon",
618
+ onClick: ()=>setViewMode("table"),
619
+ "aria-label": "Table view",
620
+ children: /*#__PURE__*/ jsx(List, {
621
+ className: "h-4 w-4"
622
+ })
329
623
  })
330
624
  ]
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
625
  })
356
626
  ]
627
+ }),
628
+ "cards" === viewMode && /*#__PURE__*/ jsx(Grid, {
629
+ cols: 1,
630
+ gap: 4,
631
+ className: "sm:grid-cols-2 lg:grid-cols-4",
632
+ children: recentProjects.map((project)=>/*#__PURE__*/ jsx(RecentProjectCard, {
633
+ project: project,
634
+ onSelect: ()=>onProjectSelect?.(project.id)
635
+ }, project.id))
636
+ }),
637
+ "table" === viewMode && /*#__PURE__*/ jsx(DataTable, {
638
+ columns: columns,
639
+ data: recentProjects,
640
+ searchKey: "name",
641
+ searchPlaceholder: "Search projects...",
642
+ showColumnToggle: false,
643
+ showPagination: recentProjects.length > 10,
644
+ compact: true
357
645
  })
358
646
  ]
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
- })
647
+ })
648
+ });
649
+ $[31] = columns;
650
+ $[32] = onProjectSelect;
651
+ $[33] = recentProjects;
652
+ $[34] = showSkeleton;
653
+ $[35] = viewMode;
654
+ $[36] = t19;
655
+ } else t19 = $[36];
656
+ let t20;
657
+ if ($[37] !== showSkeleton) {
658
+ t20 = showSkeleton && /*#__PURE__*/ jsx("div", {
659
+ className: "bg-background border-t flex-1",
660
+ children: /*#__PURE__*/ jsx(Row, {
661
+ justify: "center",
662
+ className: "px-8 py-8",
663
+ children: /*#__PURE__*/ jsx(Skeleton, {
664
+ className: "h-24 w-full max-w-4xl rounded-lg"
428
665
  })
429
666
  })
430
- ]
431
- });
667
+ });
668
+ $[37] = showSkeleton;
669
+ $[38] = t20;
670
+ } else t20 = $[38];
671
+ let t21;
672
+ if ($[39] !== className || $[40] !== t18 || $[41] !== t19 || $[42] !== t20) {
673
+ t21 = /*#__PURE__*/ jsxs(Column, {
674
+ minH: "screen",
675
+ className: className,
676
+ children: [
677
+ t18,
678
+ t19,
679
+ t20
680
+ ]
681
+ });
682
+ $[39] = className;
683
+ $[40] = t18;
684
+ $[41] = t19;
685
+ $[42] = t20;
686
+ $[43] = t21;
687
+ } else t21 = $[43];
688
+ return t21;
432
689
  }
433
690
  export { FlowStartExample };