@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,4 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { useState } from "react";
3
4
  import { Activity, CreditCard, DollarSign, MoreHorizontal, Users } from "lucide-react";
4
5
  import { Avatar, AvatarFallback, AvatarImage } from "../components/ui/avatar.js";
@@ -184,44 +185,460 @@ const columns = [
184
185
  })
185
186
  }
186
187
  ];
187
- function DashboardExample({ className, title = 'Dashboard', description = "Welcome back! Here's an overview of your business.", user = {
188
- name: 'John Doe',
189
- email: 'john@example.com'
190
- } }) {
191
- const [activeTab, setActiveTab] = useState('overview');
188
+ function DashboardExample(t0) {
189
+ const $ = c(39);
190
+ const { className, title: t1, description: t2, user: t3 } = t0;
191
+ const title = void 0 === t1 ? "Dashboard" : t1;
192
+ const description = void 0 === t2 ? "Welcome back! Here's an overview of your business." : t2;
193
+ const user = void 0 === t3 ? {
194
+ name: "John Doe",
195
+ email: "john@example.com"
196
+ } : t3;
197
+ const [activeTab, setActiveTab] = useState("overview");
198
+ let t4;
199
+ if ($[0] !== className) {
200
+ t4 = cn("min-h-screen bg-background", className);
201
+ $[0] = className;
202
+ $[1] = t4;
203
+ } else t4 = $[1];
204
+ let t5;
205
+ if ($[2] !== title) {
206
+ t5 = /*#__PURE__*/ jsx("h1", {
207
+ className: "text-2xl font-bold",
208
+ children: title
209
+ });
210
+ $[2] = title;
211
+ $[3] = t5;
212
+ } else t5 = $[3];
213
+ let t6;
214
+ if ($[4] !== description) {
215
+ t6 = /*#__PURE__*/ jsx("p", {
216
+ className: "text-sm text-muted-foreground",
217
+ children: description
218
+ });
219
+ $[4] = description;
220
+ $[5] = t6;
221
+ } else t6 = $[5];
222
+ let t7;
223
+ if ($[6] !== t5 || $[7] !== t6) {
224
+ t7 = /*#__PURE__*/ jsxs("div", {
225
+ children: [
226
+ t5,
227
+ t6
228
+ ]
229
+ });
230
+ $[6] = t5;
231
+ $[7] = t6;
232
+ $[8] = t7;
233
+ } else t7 = $[8];
234
+ let t8;
235
+ let t9;
236
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
237
+ t8 = /*#__PURE__*/ jsx(Button, {
238
+ variant: "outline",
239
+ size: "sm",
240
+ children: "Download Report"
241
+ });
242
+ t9 = /*#__PURE__*/ jsx(Separator, {
243
+ orientation: "vertical",
244
+ className: "h-8"
245
+ });
246
+ $[9] = t8;
247
+ $[10] = t9;
248
+ } else {
249
+ t8 = $[9];
250
+ t9 = $[10];
251
+ }
252
+ const T0 = AvatarFallback;
253
+ const t10 = user.name.split(" ").map(_temp).join("").toUpperCase();
254
+ let t11;
255
+ if ($[11] !== T0 || $[12] !== t10) {
256
+ t11 = /*#__PURE__*/ jsx(T0, {
257
+ children: t10
258
+ });
259
+ $[11] = T0;
260
+ $[12] = t10;
261
+ $[13] = t11;
262
+ } else t11 = $[13];
263
+ let t12;
264
+ if ($[14] !== user.name) {
265
+ t12 = /*#__PURE__*/ jsx("span", {
266
+ className: "font-medium",
267
+ children: user.name
268
+ });
269
+ $[14] = user.name;
270
+ $[15] = t12;
271
+ } else t12 = $[15];
272
+ let t13;
273
+ if ($[16] !== user.email) {
274
+ t13 = /*#__PURE__*/ jsx("span", {
275
+ className: "text-xs text-muted-foreground",
276
+ children: user.email
277
+ });
278
+ $[16] = user.email;
279
+ $[17] = t13;
280
+ } else t13 = $[17];
281
+ let t14;
282
+ if ($[18] !== t12 || $[19] !== t13) {
283
+ t14 = /*#__PURE__*/ jsxs(Column, {
284
+ gap: 0,
285
+ className: "hidden text-sm md:flex",
286
+ children: [
287
+ t12,
288
+ t13
289
+ ]
290
+ });
291
+ $[18] = t12;
292
+ $[19] = t13;
293
+ $[20] = t14;
294
+ } else t14 = $[20];
295
+ let t15;
296
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
297
+ t15 = /*#__PURE__*/ jsxs(TabsList, {
298
+ children: [
299
+ /*#__PURE__*/ jsx(TabsTrigger, {
300
+ value: "overview",
301
+ children: "Overview"
302
+ }),
303
+ /*#__PURE__*/ jsx(TabsTrigger, {
304
+ value: "analytics",
305
+ children: "Analytics"
306
+ }),
307
+ /*#__PURE__*/ jsx(TabsTrigger, {
308
+ value: "reports",
309
+ children: "Reports"
310
+ })
311
+ ]
312
+ });
313
+ $[21] = t15;
314
+ } else t15 = $[21];
315
+ let t16;
316
+ if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
317
+ t16 = /*#__PURE__*/ jsx(StatsCard, {
318
+ title: "Total Revenue",
319
+ value: "$45,231.89",
320
+ description: "+20.1% from last month",
321
+ icon: /*#__PURE__*/ jsx(DollarSign, {
322
+ className: "h-4 w-4 text-muted-foreground"
323
+ })
324
+ });
325
+ $[22] = t16;
326
+ } else t16 = $[22];
327
+ let t17;
328
+ if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
329
+ t17 = /*#__PURE__*/ jsx(StatsCard, {
330
+ title: "Subscriptions",
331
+ value: "+2,350",
332
+ description: "+180.1% from last month",
333
+ icon: /*#__PURE__*/ jsx(Users, {
334
+ className: "h-4 w-4 text-muted-foreground"
335
+ })
336
+ });
337
+ $[23] = t17;
338
+ } else t17 = $[23];
339
+ let t18;
340
+ if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
341
+ t18 = /*#__PURE__*/ jsx(StatsCard, {
342
+ title: "Sales",
343
+ value: "+12,234",
344
+ description: "+19% from last month",
345
+ icon: /*#__PURE__*/ jsx(CreditCard, {
346
+ className: "h-4 w-4 text-muted-foreground"
347
+ })
348
+ });
349
+ $[24] = t18;
350
+ } else t18 = $[24];
351
+ let t19;
352
+ if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
353
+ t19 = /*#__PURE__*/ jsxs(Grid, {
354
+ gap: 4,
355
+ cols: 4,
356
+ className: "md:grid-cols-2 lg:grid-cols-4",
357
+ children: [
358
+ t16,
359
+ t17,
360
+ t18,
361
+ /*#__PURE__*/ jsx(StatsCard, {
362
+ title: "Active Now",
363
+ value: "+573",
364
+ description: "+201 since last hour",
365
+ icon: /*#__PURE__*/ jsx(Activity, {
366
+ className: "h-4 w-4 text-muted-foreground"
367
+ })
368
+ })
369
+ ]
370
+ });
371
+ $[25] = t19;
372
+ } else t19 = $[25];
373
+ let t20;
374
+ if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
375
+ t20 = /*#__PURE__*/ jsxs(CardHeader, {
376
+ children: [
377
+ /*#__PURE__*/ jsx(CardTitle, {
378
+ children: "Recent Transactions"
379
+ }),
380
+ /*#__PURE__*/ jsx(CardDescription, {
381
+ children: "Latest customer transactions"
382
+ })
383
+ ]
384
+ });
385
+ $[26] = t20;
386
+ } else t20 = $[26];
387
+ let t21;
388
+ if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
389
+ t21 = /*#__PURE__*/ jsxs(Card, {
390
+ className: "lg:col-span-4",
391
+ children: [
392
+ t20,
393
+ /*#__PURE__*/ jsx(CardContent, {
394
+ children: /*#__PURE__*/ jsx(DataTable, {
395
+ columns: columns,
396
+ data: transactions,
397
+ searchKey: "customer",
398
+ searchPlaceholder: "Search customers...",
399
+ compact: true,
400
+ showColumnToggle: false
401
+ })
402
+ })
403
+ ]
404
+ });
405
+ $[27] = t21;
406
+ } else t21 = $[27];
407
+ let t22;
408
+ if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
409
+ t22 = /*#__PURE__*/ jsxs(CardHeader, {
410
+ children: [
411
+ /*#__PURE__*/ jsx(CardTitle, {
412
+ children: "Recent Activity"
413
+ }),
414
+ /*#__PURE__*/ jsx(CardDescription, {
415
+ children: "Latest updates from your team"
416
+ })
417
+ ]
418
+ });
419
+ $[28] = t22;
420
+ } else t22 = $[28];
421
+ let t23;
422
+ if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
423
+ t23 = /*#__PURE__*/ jsxs(Grid, {
424
+ gap: 4,
425
+ cols: 7,
426
+ className: "lg:grid-cols-7",
427
+ children: [
428
+ t21,
429
+ /*#__PURE__*/ jsxs(Card, {
430
+ className: "lg:col-span-3",
431
+ children: [
432
+ t22,
433
+ /*#__PURE__*/ jsx(CardContent, {
434
+ className: "space-y-4",
435
+ children: recentActivity.map(_temp3)
436
+ })
437
+ ]
438
+ })
439
+ ]
440
+ });
441
+ $[29] = t23;
442
+ } else t23 = $[29];
443
+ let t24;
444
+ if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
445
+ t24 = /*#__PURE__*/ jsxs(CardHeader, {
446
+ children: [
447
+ /*#__PURE__*/ jsx(CardTitle, {
448
+ children: "Monthly Goals"
449
+ }),
450
+ /*#__PURE__*/ jsx(CardDescription, {
451
+ children: "Track your progress towards monthly targets"
452
+ })
453
+ ]
454
+ });
455
+ $[30] = t24;
456
+ } else t24 = $[30];
457
+ let t25;
458
+ if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
459
+ t25 = /*#__PURE__*/ jsxs(Column, {
460
+ gap: 2,
461
+ children: [
462
+ /*#__PURE__*/ jsxs(Row, {
463
+ justify: "between",
464
+ align: "center",
465
+ className: "text-sm",
466
+ children: [
467
+ /*#__PURE__*/ jsx("span", {
468
+ children: "Revenue Target"
469
+ }),
470
+ /*#__PURE__*/ jsx("span", {
471
+ className: "font-medium",
472
+ children: "$45,231 / $50,000"
473
+ })
474
+ ]
475
+ }),
476
+ /*#__PURE__*/ jsx(Progress, {
477
+ value: 90
478
+ })
479
+ ]
480
+ });
481
+ $[31] = t25;
482
+ } else t25 = $[31];
483
+ let t26;
484
+ if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
485
+ t26 = /*#__PURE__*/ jsxs(Column, {
486
+ gap: 2,
487
+ children: [
488
+ /*#__PURE__*/ jsxs(Row, {
489
+ justify: "between",
490
+ align: "center",
491
+ className: "text-sm",
492
+ children: [
493
+ /*#__PURE__*/ jsx("span", {
494
+ children: "New Customers"
495
+ }),
496
+ /*#__PURE__*/ jsx("span", {
497
+ className: "font-medium",
498
+ children: "2,350 / 3,000"
499
+ })
500
+ ]
501
+ }),
502
+ /*#__PURE__*/ jsx(Progress, {
503
+ value: 78
504
+ })
505
+ ]
506
+ });
507
+ $[32] = t26;
508
+ } else t26 = $[32];
509
+ let t27;
510
+ if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
511
+ t27 = /*#__PURE__*/ jsxs(TabsContent, {
512
+ value: "overview",
513
+ className: "space-y-6",
514
+ children: [
515
+ t19,
516
+ t23,
517
+ /*#__PURE__*/ jsxs(Card, {
518
+ children: [
519
+ t24,
520
+ /*#__PURE__*/ jsxs(CardContent, {
521
+ className: "space-y-4",
522
+ children: [
523
+ t25,
524
+ t26,
525
+ /*#__PURE__*/ jsxs(Column, {
526
+ gap: 2,
527
+ children: [
528
+ /*#__PURE__*/ jsxs(Row, {
529
+ justify: "between",
530
+ align: "center",
531
+ className: "text-sm",
532
+ children: [
533
+ /*#__PURE__*/ jsx("span", {
534
+ children: "Support Tickets Resolved"
535
+ }),
536
+ /*#__PURE__*/ jsx("span", {
537
+ className: "font-medium",
538
+ children: "145 / 150"
539
+ })
540
+ ]
541
+ }),
542
+ /*#__PURE__*/ jsx(Progress, {
543
+ value: 97
544
+ })
545
+ ]
546
+ })
547
+ ]
548
+ })
549
+ ]
550
+ })
551
+ ]
552
+ });
553
+ $[33] = t27;
554
+ } else t27 = $[33];
555
+ let t28;
556
+ if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
557
+ t28 = /*#__PURE__*/ jsx(TabsContent, {
558
+ value: "analytics",
559
+ className: "space-y-6",
560
+ children: /*#__PURE__*/ jsxs(Card, {
561
+ children: [
562
+ /*#__PURE__*/ jsxs(CardHeader, {
563
+ children: [
564
+ /*#__PURE__*/ jsx(CardTitle, {
565
+ children: "Analytics"
566
+ }),
567
+ /*#__PURE__*/ jsx(CardDescription, {
568
+ children: "Detailed analytics coming soon"
569
+ })
570
+ ]
571
+ }),
572
+ /*#__PURE__*/ jsx(CardContent, {
573
+ className: "h-[400px] flex items-center justify-center text-muted-foreground",
574
+ children: "Analytics charts and graphs would go here"
575
+ })
576
+ ]
577
+ })
578
+ });
579
+ $[34] = t28;
580
+ } else t28 = $[34];
581
+ let t29;
582
+ if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
583
+ t29 = /*#__PURE__*/ jsx(TabsContent, {
584
+ value: "reports",
585
+ className: "space-y-6",
586
+ children: /*#__PURE__*/ jsxs(Card, {
587
+ children: [
588
+ /*#__PURE__*/ jsxs(CardHeader, {
589
+ children: [
590
+ /*#__PURE__*/ jsx(CardTitle, {
591
+ children: "Reports"
592
+ }),
593
+ /*#__PURE__*/ jsx(CardDescription, {
594
+ children: "Generate and download reports"
595
+ })
596
+ ]
597
+ }),
598
+ /*#__PURE__*/ jsx(CardContent, {
599
+ className: "h-[400px] flex items-center justify-center text-muted-foreground",
600
+ children: "Report generation interface would go here"
601
+ })
602
+ ]
603
+ })
604
+ });
605
+ $[35] = t29;
606
+ } else t29 = $[35];
607
+ let t30;
608
+ if ($[36] !== activeTab || $[37] !== setActiveTab) {
609
+ t30 = /*#__PURE__*/ jsx("main", {
610
+ className: "container mx-auto p-4 md:p-6",
611
+ children: /*#__PURE__*/ jsxs(Tabs, {
612
+ value: activeTab,
613
+ onValueChange: setActiveTab,
614
+ className: "space-y-6",
615
+ children: [
616
+ t15,
617
+ t27,
618
+ t28,
619
+ t29
620
+ ]
621
+ })
622
+ });
623
+ $[36] = activeTab;
624
+ $[37] = setActiveTab;
625
+ $[38] = t30;
626
+ } else t30 = $[38];
192
627
  return /*#__PURE__*/ jsxs("div", {
193
- className: cn('min-h-screen bg-background', className),
628
+ className: t4,
194
629
  children: [
195
630
  /*#__PURE__*/ jsx("header", {
196
631
  className: "border-b",
197
632
  children: /*#__PURE__*/ jsxs("div", {
198
633
  className: "container mx-auto flex h-16 items-center justify-between px-4",
199
634
  children: [
200
- /*#__PURE__*/ jsxs("div", {
201
- children: [
202
- /*#__PURE__*/ jsx("h1", {
203
- className: "text-2xl font-bold",
204
- children: title
205
- }),
206
- /*#__PURE__*/ jsx("p", {
207
- className: "text-sm text-muted-foreground",
208
- children: description
209
- })
210
- ]
211
- }),
635
+ t7,
212
636
  /*#__PURE__*/ jsxs(Row, {
213
637
  gap: 4,
214
638
  align: "center",
215
639
  children: [
216
- /*#__PURE__*/ jsx(Button, {
217
- variant: "outline",
218
- size: "sm",
219
- children: "Download Report"
220
- }),
221
- /*#__PURE__*/ jsx(Separator, {
222
- orientation: "vertical",
223
- className: "h-8"
224
- }),
640
+ t8,
641
+ t9,
225
642
  /*#__PURE__*/ jsxs(Row, {
226
643
  gap: 2,
227
644
  align: "center",
@@ -233,25 +650,10 @@ function DashboardExample({ className, title = 'Dashboard', description = "Welco
233
650
  src: user.avatar,
234
651
  alt: user.name
235
652
  }),
236
- /*#__PURE__*/ jsx(AvatarFallback, {
237
- children: user.name.split(' ').map((n)=>n[0]).join('').toUpperCase()
238
- })
653
+ t11
239
654
  ]
240
655
  }),
241
- /*#__PURE__*/ jsxs(Column, {
242
- gap: 0,
243
- className: "hidden text-sm md:flex",
244
- children: [
245
- /*#__PURE__*/ jsx("span", {
246
- className: "font-medium",
247
- children: user.name
248
- }),
249
- /*#__PURE__*/ jsx("span", {
250
- className: "text-xs text-muted-foreground",
251
- children: user.email
252
- })
253
- ]
254
- })
656
+ t14
255
657
  ]
256
658
  })
257
659
  ]
@@ -259,298 +661,57 @@ function DashboardExample({ className, title = 'Dashboard', description = "Welco
259
661
  ]
260
662
  })
261
663
  }),
262
- /*#__PURE__*/ jsx("main", {
263
- className: "container mx-auto p-4 md:p-6",
264
- children: /*#__PURE__*/ jsxs(Tabs, {
265
- value: activeTab,
266
- onValueChange: setActiveTab,
267
- className: "space-y-6",
268
- children: [
269
- /*#__PURE__*/ jsxs(TabsList, {
270
- children: [
271
- /*#__PURE__*/ jsx(TabsTrigger, {
272
- value: "overview",
273
- children: "Overview"
274
- }),
275
- /*#__PURE__*/ jsx(TabsTrigger, {
276
- value: "analytics",
277
- children: "Analytics"
278
- }),
279
- /*#__PURE__*/ jsx(TabsTrigger, {
280
- value: "reports",
281
- children: "Reports"
282
- })
283
- ]
284
- }),
285
- /*#__PURE__*/ jsxs(TabsContent, {
286
- value: "overview",
287
- className: "space-y-6",
288
- children: [
289
- /*#__PURE__*/ jsxs(Grid, {
290
- gap: 4,
291
- cols: 4,
292
- className: "md:grid-cols-2 lg:grid-cols-4",
293
- children: [
294
- /*#__PURE__*/ jsx(StatsCard, {
295
- title: "Total Revenue",
296
- value: "$45,231.89",
297
- description: "+20.1% from last month",
298
- icon: /*#__PURE__*/ jsx(DollarSign, {
299
- className: "h-4 w-4 text-muted-foreground"
300
- })
301
- }),
302
- /*#__PURE__*/ jsx(StatsCard, {
303
- title: "Subscriptions",
304
- value: "+2,350",
305
- description: "+180.1% from last month",
306
- icon: /*#__PURE__*/ jsx(Users, {
307
- className: "h-4 w-4 text-muted-foreground"
308
- })
309
- }),
310
- /*#__PURE__*/ jsx(StatsCard, {
311
- title: "Sales",
312
- value: "+12,234",
313
- description: "+19% from last month",
314
- icon: /*#__PURE__*/ jsx(CreditCard, {
315
- className: "h-4 w-4 text-muted-foreground"
316
- })
317
- }),
318
- /*#__PURE__*/ jsx(StatsCard, {
319
- title: "Active Now",
320
- value: "+573",
321
- description: "+201 since last hour",
322
- icon: /*#__PURE__*/ jsx(Activity, {
323
- className: "h-4 w-4 text-muted-foreground"
324
- })
325
- })
326
- ]
327
- }),
328
- /*#__PURE__*/ jsxs(Grid, {
329
- gap: 4,
330
- cols: 7,
331
- className: "lg:grid-cols-7",
332
- children: [
333
- /*#__PURE__*/ jsxs(Card, {
334
- className: "lg:col-span-4",
335
- children: [
336
- /*#__PURE__*/ jsxs(CardHeader, {
337
- children: [
338
- /*#__PURE__*/ jsx(CardTitle, {
339
- children: "Recent Transactions"
340
- }),
341
- /*#__PURE__*/ jsx(CardDescription, {
342
- children: "Latest customer transactions"
343
- })
344
- ]
345
- }),
346
- /*#__PURE__*/ jsx(CardContent, {
347
- children: /*#__PURE__*/ jsx(DataTable, {
348
- columns: columns,
349
- data: transactions,
350
- searchKey: "customer",
351
- searchPlaceholder: "Search customers...",
352
- compact: true,
353
- showColumnToggle: false
354
- })
355
- })
356
- ]
357
- }),
358
- /*#__PURE__*/ jsxs(Card, {
359
- className: "lg:col-span-3",
360
- children: [
361
- /*#__PURE__*/ jsxs(CardHeader, {
362
- children: [
363
- /*#__PURE__*/ jsx(CardTitle, {
364
- children: "Recent Activity"
365
- }),
366
- /*#__PURE__*/ jsx(CardDescription, {
367
- children: "Latest updates from your team"
368
- })
369
- ]
370
- }),
371
- /*#__PURE__*/ jsx(CardContent, {
372
- className: "space-y-4",
373
- children: recentActivity.map((activity)=>/*#__PURE__*/ jsxs(Row, {
374
- gap: 3,
375
- align: "start",
376
- children: [
377
- /*#__PURE__*/ jsxs(Avatar, {
378
- className: "h-8 w-8",
379
- children: [
380
- /*#__PURE__*/ jsx(AvatarImage, {
381
- src: activity.avatar
382
- }),
383
- /*#__PURE__*/ jsx(AvatarFallback, {
384
- children: activity.user.split(' ').map((n)=>n[0]).join('')
385
- })
386
- ]
387
- }),
388
- /*#__PURE__*/ jsxs(Column, {
389
- gap: 1,
390
- flex: 1,
391
- children: [
392
- /*#__PURE__*/ jsxs("p", {
393
- className: "text-sm",
394
- children: [
395
- /*#__PURE__*/ jsx("span", {
396
- className: "font-medium",
397
- children: activity.user
398
- }),
399
- ' ',
400
- /*#__PURE__*/ jsx("span", {
401
- className: "text-muted-foreground",
402
- children: activity.action
403
- })
404
- ]
405
- }),
406
- /*#__PURE__*/ jsx("p", {
407
- className: "text-xs text-muted-foreground",
408
- children: activity.time
409
- })
410
- ]
411
- })
412
- ]
413
- }, activity.id))
414
- })
415
- ]
416
- })
417
- ]
418
- }),
419
- /*#__PURE__*/ jsxs(Card, {
420
- children: [
421
- /*#__PURE__*/ jsxs(CardHeader, {
422
- children: [
423
- /*#__PURE__*/ jsx(CardTitle, {
424
- children: "Monthly Goals"
425
- }),
426
- /*#__PURE__*/ jsx(CardDescription, {
427
- children: "Track your progress towards monthly targets"
428
- })
429
- ]
430
- }),
431
- /*#__PURE__*/ jsxs(CardContent, {
432
- className: "space-y-4",
433
- children: [
434
- /*#__PURE__*/ jsxs(Column, {
435
- gap: 2,
436
- children: [
437
- /*#__PURE__*/ jsxs(Row, {
438
- justify: "between",
439
- align: "center",
440
- className: "text-sm",
441
- children: [
442
- /*#__PURE__*/ jsx("span", {
443
- children: "Revenue Target"
444
- }),
445
- /*#__PURE__*/ jsx("span", {
446
- className: "font-medium",
447
- children: "$45,231 / $50,000"
448
- })
449
- ]
450
- }),
451
- /*#__PURE__*/ jsx(Progress, {
452
- value: 90
453
- })
454
- ]
455
- }),
456
- /*#__PURE__*/ jsxs(Column, {
457
- gap: 2,
458
- children: [
459
- /*#__PURE__*/ jsxs(Row, {
460
- justify: "between",
461
- align: "center",
462
- className: "text-sm",
463
- children: [
464
- /*#__PURE__*/ jsx("span", {
465
- children: "New Customers"
466
- }),
467
- /*#__PURE__*/ jsx("span", {
468
- className: "font-medium",
469
- children: "2,350 / 3,000"
470
- })
471
- ]
472
- }),
473
- /*#__PURE__*/ jsx(Progress, {
474
- value: 78
475
- })
476
- ]
477
- }),
478
- /*#__PURE__*/ jsxs(Column, {
479
- gap: 2,
480
- children: [
481
- /*#__PURE__*/ jsxs(Row, {
482
- justify: "between",
483
- align: "center",
484
- className: "text-sm",
485
- children: [
486
- /*#__PURE__*/ jsx("span", {
487
- children: "Support Tickets Resolved"
488
- }),
489
- /*#__PURE__*/ jsx("span", {
490
- className: "font-medium",
491
- children: "145 / 150"
492
- })
493
- ]
494
- }),
495
- /*#__PURE__*/ jsx(Progress, {
496
- value: 97
497
- })
498
- ]
499
- })
500
- ]
501
- })
502
- ]
503
- })
504
- ]
505
- }),
506
- /*#__PURE__*/ jsx(TabsContent, {
507
- value: "analytics",
508
- className: "space-y-6",
509
- children: /*#__PURE__*/ jsxs(Card, {
510
- children: [
511
- /*#__PURE__*/ jsxs(CardHeader, {
512
- children: [
513
- /*#__PURE__*/ jsx(CardTitle, {
514
- children: "Analytics"
515
- }),
516
- /*#__PURE__*/ jsx(CardDescription, {
517
- children: "Detailed analytics coming soon"
518
- })
519
- ]
520
- }),
521
- /*#__PURE__*/ jsx(CardContent, {
522
- className: "h-[400px] flex items-center justify-center text-muted-foreground",
523
- children: "Analytics charts and graphs would go here"
524
- })
525
- ]
526
- })
527
- }),
528
- /*#__PURE__*/ jsx(TabsContent, {
529
- value: "reports",
530
- className: "space-y-6",
531
- children: /*#__PURE__*/ jsxs(Card, {
532
- children: [
533
- /*#__PURE__*/ jsxs(CardHeader, {
534
- children: [
535
- /*#__PURE__*/ jsx(CardTitle, {
536
- children: "Reports"
537
- }),
538
- /*#__PURE__*/ jsx(CardDescription, {
539
- children: "Generate and download reports"
540
- })
541
- ]
542
- }),
543
- /*#__PURE__*/ jsx(CardContent, {
544
- className: "h-[400px] flex items-center justify-center text-muted-foreground",
545
- children: "Report generation interface would go here"
546
- })
547
- ]
664
+ t30
665
+ ]
666
+ });
667
+ }
668
+ function _temp3(activity) {
669
+ return /*#__PURE__*/ jsxs(Row, {
670
+ gap: 3,
671
+ align: "start",
672
+ children: [
673
+ /*#__PURE__*/ jsxs(Avatar, {
674
+ className: "h-8 w-8",
675
+ children: [
676
+ /*#__PURE__*/ jsx(AvatarImage, {
677
+ src: activity.avatar
678
+ }),
679
+ /*#__PURE__*/ jsx(AvatarFallback, {
680
+ children: activity.user.split(" ").map(_temp2).join("")
681
+ })
682
+ ]
683
+ }),
684
+ /*#__PURE__*/ jsxs(Column, {
685
+ gap: 1,
686
+ flex: 1,
687
+ children: [
688
+ /*#__PURE__*/ jsxs("p", {
689
+ className: "text-sm",
690
+ children: [
691
+ /*#__PURE__*/ jsx("span", {
692
+ className: "font-medium",
693
+ children: activity.user
694
+ }),
695
+ " ",
696
+ /*#__PURE__*/ jsx("span", {
697
+ className: "text-muted-foreground",
698
+ children: activity.action
548
699
  })
549
- })
550
- ]
551
- })
700
+ ]
701
+ }),
702
+ /*#__PURE__*/ jsx("p", {
703
+ className: "text-xs text-muted-foreground",
704
+ children: activity.time
705
+ })
706
+ ]
552
707
  })
553
708
  ]
554
- });
709
+ }, activity.id);
710
+ }
711
+ function _temp2(n_0) {
712
+ return n_0[0];
713
+ }
714
+ function _temp(n) {
715
+ return n[0];
555
716
  }
556
717
  export { DashboardExample };