@wealthx/shadcn 1.5.25 → 1.5.27

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 (120) hide show
  1. package/.turbo/turbo-build.log +165 -165
  2. package/CHANGELOG.md +12 -0
  3. package/dist/{chunk-7JVKSZ4O.mjs → chunk-2CHH5QOA.mjs} +1 -1
  4. package/dist/{chunk-5ST6BK7R.mjs → chunk-36IN7YRM.mjs} +1 -1
  5. package/dist/{chunk-RGHKARAK.mjs → chunk-7PTRHNUV.mjs} +1 -1
  6. package/dist/{chunk-QM7LU2BR.mjs → chunk-AAZSLTER.mjs} +7 -7
  7. package/dist/{chunk-OFQFD2E2.mjs → chunk-C35JMOII.mjs} +1 -1
  8. package/dist/{chunk-4FJC64FV.mjs → chunk-CE2WONIY.mjs} +15 -14
  9. package/dist/{chunk-YV7XF32X.mjs → chunk-DSVKEVX6.mjs} +1 -1
  10. package/dist/{chunk-EY5YPFKX.mjs → chunk-EVUY67CY.mjs} +4 -4
  11. package/dist/{chunk-5G2M45CA.mjs → chunk-FYZBGWYR.mjs} +1 -1
  12. package/dist/{chunk-RVDBYV2B.mjs → chunk-HONTZFLO.mjs} +1 -1
  13. package/dist/chunk-HSL23TOM.mjs +443 -0
  14. package/dist/{chunk-VNB5E7SI.mjs → chunk-HSXMTFIM.mjs} +4 -4
  15. package/dist/{chunk-ABVCQWDY.mjs → chunk-KGVVK6OS.mjs} +5 -5
  16. package/dist/{chunk-IG7DEIWU.mjs → chunk-KI57CBJR.mjs} +7 -7
  17. package/dist/{chunk-IT3QJF3D.mjs → chunk-LBXIYS34.mjs} +4 -4
  18. package/dist/{chunk-K35TFQUB.mjs → chunk-LSSIWLYU.mjs} +1 -1
  19. package/dist/{chunk-UMR3HVZF.mjs → chunk-M32QNCD3.mjs} +7 -7
  20. package/dist/{chunk-ECC2LLZM.mjs → chunk-MD66TGX7.mjs} +7 -7
  21. package/dist/{chunk-ZSMQZ3VN.mjs → chunk-NGKTJRFN.mjs} +7 -7
  22. package/dist/{chunk-2PWTXE66.mjs → chunk-OG2VM34K.mjs} +1 -1
  23. package/dist/{chunk-SQ54W3JH.mjs → chunk-OKIWXOJL.mjs} +4 -4
  24. package/dist/{chunk-WIDZVCH3.mjs → chunk-S7SBLNX4.mjs} +7 -7
  25. package/dist/{chunk-PX2B3Q3A.mjs → chunk-SYJ6LVJ6.mjs} +1 -1
  26. package/dist/{chunk-OIETBBXQ.mjs → chunk-T5FRVEJQ.mjs} +1 -1
  27. package/dist/{chunk-Z5QI7CW2.mjs → chunk-T5HU4S4X.mjs} +1 -1
  28. package/dist/{chunk-KENLXFJ7.mjs → chunk-ULQ53FRJ.mjs} +4 -4
  29. package/dist/{chunk-NTIFG5A7.mjs → chunk-USIRKDYQ.mjs} +4 -4
  30. package/dist/{chunk-QJ3RSZF4.mjs → chunk-VVURVETY.mjs} +4 -4
  31. package/dist/components/ui/add-column-modal.js +1 -1
  32. package/dist/components/ui/add-column-modal.mjs +2 -2
  33. package/dist/components/ui/add-lead-modal.js +1 -1
  34. package/dist/components/ui/add-lead-modal.mjs +2 -2
  35. package/dist/components/ui/advisor-card.mjs +2 -2
  36. package/dist/components/ui/{ai-builder.js → ai-builder/index.js} +288 -187
  37. package/dist/components/ui/ai-builder/index.mjs +26 -0
  38. package/dist/components/ui/ai-conversations/index.js +4 -3
  39. package/dist/components/ui/ai-conversations/index.mjs +3 -3
  40. package/dist/components/ui/appointment-action-dialogs.js +1 -1
  41. package/dist/components/ui/appointment-action-dialogs.mjs +2 -2
  42. package/dist/components/ui/appointment-availability-settings.js +1 -1
  43. package/dist/components/ui/appointment-availability-settings.mjs +3 -3
  44. package/dist/components/ui/appointment-book-dialog.js +1 -1
  45. package/dist/components/ui/appointment-book-dialog.mjs +3 -3
  46. package/dist/components/ui/appointment-calendar-view.mjs +2 -2
  47. package/dist/components/ui/appointment-detail-sheet.js +1 -1
  48. package/dist/components/ui/appointment-detail-sheet.mjs +4 -4
  49. package/dist/components/ui/appointment-upcoming-card.js +1 -1
  50. package/dist/components/ui/appointment-upcoming-card.mjs +3 -3
  51. package/dist/components/ui/bank-statement-generate-dialog.js +1 -1
  52. package/dist/components/ui/bank-statement-generate-dialog.mjs +2 -2
  53. package/dist/components/ui/bank-statement-pdf-viewer.mjs +2 -2
  54. package/dist/components/ui/cash-balance-line-chart.mjs +2 -2
  55. package/dist/components/ui/category-edit-dialog.js +1 -1
  56. package/dist/components/ui/category-edit-dialog.mjs +2 -2
  57. package/dist/components/ui/chat-widget.mjs +1 -1
  58. package/dist/components/ui/contact-alert-dialog/index.js +1 -1
  59. package/dist/components/ui/contact-alert-dialog/index.mjs +2 -2
  60. package/dist/components/ui/create-contact-modal.js +1 -1
  61. package/dist/components/ui/create-contact-modal.mjs +2 -2
  62. package/dist/components/ui/csv-import-modal.js +1 -1
  63. package/dist/components/ui/csv-import-modal.mjs +2 -2
  64. package/dist/components/ui/dashboard-expense-categories.mjs +3 -3
  65. package/dist/components/ui/dashboard-transactions-table.js +1 -1
  66. package/dist/components/ui/dashboard-transactions-table.mjs +5 -5
  67. package/dist/components/ui/dialog.js +1 -1
  68. package/dist/components/ui/dialog.mjs +1 -1
  69. package/dist/components/ui/document-checklist-template.mjs +2 -2
  70. package/dist/components/ui/expense-detail-item.mjs +2 -2
  71. package/dist/components/ui/expense-work-details.mjs +8 -8
  72. package/dist/components/ui/file-preview-dialog.js +1 -1
  73. package/dist/components/ui/file-preview-dialog.mjs +2 -2
  74. package/dist/components/ui/income-sources-card.mjs +3 -3
  75. package/dist/components/ui/income-work-details.mjs +2 -2
  76. package/dist/components/ui/kanban-column.mjs +4 -4
  77. package/dist/components/ui/opportunity-card.mjs +3 -3
  78. package/dist/components/ui/opportunity-edit-modals.js +1 -1
  79. package/dist/components/ui/opportunity-edit-modals.mjs +2 -2
  80. package/dist/components/ui/opportunity-summary-tab.js +1 -1
  81. package/dist/components/ui/opportunity-summary-tab.mjs +4 -4
  82. package/dist/components/ui/pipeline-board.mjs +5 -5
  83. package/dist/components/ui/pipeline-dialogs.js +1 -1
  84. package/dist/components/ui/pipeline-dialogs.mjs +2 -2
  85. package/dist/components/ui/pipeline-primitives.mjs +2 -2
  86. package/dist/components/ui/property-report-dialog.js +1 -1
  87. package/dist/components/ui/property-report-dialog.mjs +2 -2
  88. package/dist/components/ui/resource-center/index.js +1 -1
  89. package/dist/components/ui/resource-center/index.mjs +2 -2
  90. package/dist/components/ui/review-alerts-dialog.js +1 -1
  91. package/dist/components/ui/review-alerts-dialog.mjs +2 -2
  92. package/dist/components/ui/savings-goal-modal.js +1 -1
  93. package/dist/components/ui/savings-goal-modal.mjs +1 -1
  94. package/dist/components/ui/share-details-dialog.js +1 -1
  95. package/dist/components/ui/share-details-dialog.mjs +2 -2
  96. package/dist/components/ui/stage-timeline.mjs +3 -3
  97. package/dist/components/ui/transactions-income-expense-bar-chart.mjs +2 -2
  98. package/dist/index.js +4302 -4241
  99. package/dist/index.mjs +114 -114
  100. package/package.json +4 -4
  101. package/src/components/index.tsx +1 -0
  102. package/src/components/ui/ai-builder/agent-card.tsx +181 -0
  103. package/src/components/ui/ai-builder/index.tsx +21 -0
  104. package/src/components/ui/ai-builder/integration-card.tsx +144 -0
  105. package/src/components/ui/ai-builder/service-config-modal.tsx +283 -0
  106. package/src/components/ui/ai-builder/types.ts +34 -0
  107. package/src/components/ui/ai-conversations/thread.tsx +14 -9
  108. package/src/components/ui/dialog.tsx +1 -1
  109. package/tsup.config.ts +1 -1
  110. package/dist/chunk-INGYBZGU.mjs +0 -394
  111. package/dist/components/ui/ai-builder.mjs +0 -25
  112. package/src/components/ui/ai-builder.tsx +0 -558
  113. package/dist/{chunk-G2W754UJ.mjs → chunk-6UKOJLXO.mjs} +3 -3
  114. package/dist/{chunk-S6AYZJYO.mjs → chunk-CZ6IEOM5.mjs} +3 -3
  115. package/dist/{chunk-K2KX3NX7.mjs → chunk-I433SC7S.mjs} +3 -3
  116. package/dist/{chunk-57QES5LX.mjs → chunk-JHS2T6JZ.mjs} +3 -3
  117. package/dist/{chunk-EXI64H46.mjs → chunk-L6LE4OIM.mjs} +3 -3
  118. package/dist/{chunk-DCKT635J.mjs → chunk-LHQACMZY.mjs} +3 -3
  119. package/dist/{chunk-V23CBULF.mjs → chunk-SZLAPJKD.mjs} +3 -3
  120. package/dist/{chunk-KGBLORCQ.mjs → chunk-ZA37ZWZW.mjs} +4 -4
@@ -1,558 +0,0 @@
1
- import React, { useState } from "react";
2
- import {
3
- Check,
4
- CheckCircle2,
5
- Clock,
6
- Copy,
7
- Mail,
8
- MoreHorizontal,
9
- Settings,
10
- Shield,
11
- User,
12
- } from "lucide-react";
13
- import { Avatar, AvatarFallback, AvatarImage } from "./avatar";
14
- import { Badge } from "./badge";
15
- import { Button } from "./button";
16
- import { Card, CardContent } from "./card";
17
- import {
18
- Dialog,
19
- DialogContent,
20
- DialogDescription,
21
- DialogFooter,
22
- DialogHeader,
23
- DialogTitle,
24
- } from "./dialog";
25
- import { Switch } from "./switch";
26
- import { cn } from "../../lib/utils";
27
-
28
- // ─── Types ────────────────────────────────────────────────────────────────────
29
-
30
- export type AiBuilderAgentItem = {
31
- id: string;
32
- title: string;
33
- description: string;
34
- tags: string[];
35
- isEnabled: boolean;
36
- slug?: string;
37
- infoBadge?: string;
38
- isComingSoon?: boolean;
39
- };
40
-
41
- export type AiBuilderServiceType = "email" | "app";
42
-
43
- export type AiBuilderServiceData = {
44
- accountIdentifier: string;
45
- accountIdentifierLabel: string;
46
- connectedOn: string;
47
- lastSynced: string;
48
- permissions: string[];
49
- syncLabel: string;
50
- syncDescription: string;
51
- syncEnabled: boolean;
52
- onSyncToggle: (enabled: boolean) => void;
53
- };
54
-
55
- // ─── AgentCard ────────────────────────────────────────────────────────────────
56
-
57
- export type AgentCardProps = {
58
- agent: AiBuilderAgentItem;
59
- onToggle: (agentId: string, enabled: boolean) => void;
60
- onMenuClick: (agentId: string) => void;
61
- className?: string;
62
- };
63
-
64
- const AGENT_FEATURES = [
65
- {
66
- title: "Lead Capture",
67
- description:
68
- "Automatically collect and qualify leads from website visitors.",
69
- },
70
- {
71
- title: "Initial Engagement",
72
- description:
73
- "Instantly respond to inquiries with personalised mortgage guidance.",
74
- },
75
- {
76
- title: "Smart Follow-Up",
77
- description:
78
- "Re-engage cold leads with timely, context-aware follow-up messages.",
79
- },
80
- {
81
- title: "Appointment Scheduling",
82
- description:
83
- "Book qualified leads directly into advisor calendars without manual coordination.",
84
- },
85
- {
86
- title: "Performance Tracking",
87
- description:
88
- "Monitor agent activity, response rates, and conversion metrics.",
89
- },
90
- ];
91
-
92
- export function AgentCard({
93
- agent,
94
- onToggle,
95
- onMenuClick,
96
- className,
97
- }: AgentCardProps) {
98
- const { id, title, description, tags, isEnabled, infoBadge, isComingSoon } =
99
- agent;
100
-
101
- return (
102
- <Card
103
- className={cn(
104
- "flex flex-col gap-3 p-4 transition-opacity",
105
- isComingSoon && "opacity-60",
106
- className,
107
- )}
108
- >
109
- <div className="flex items-start justify-between gap-2">
110
- <div className="flex flex-1 items-center gap-2 min-w-0">
111
- <span
112
- className={cn(
113
- "mt-0.5 size-2 shrink-0 rounded-full",
114
- isEnabled && !isComingSoon
115
- ? "bg-success"
116
- : "bg-muted-foreground/40",
117
- )}
118
- />
119
- <span className="truncate text-sm font-semibold leading-tight">
120
- {title}
121
- </span>
122
- {isComingSoon && (
123
- <Badge variant="outline" className="shrink-0 text-xs">
124
- Coming Soon
125
- </Badge>
126
- )}
127
- </div>
128
- <div className="flex shrink-0 items-center gap-1">
129
- <Switch
130
- checked={isEnabled}
131
- disabled={isComingSoon}
132
- onCheckedChange={(checked) => onToggle(id, checked)}
133
- aria-label={`Toggle ${title}`}
134
- />
135
- <Button
136
- variant="ghost"
137
- size="icon"
138
- className="h-7 w-7"
139
- onClick={() => onMenuClick(id)}
140
- aria-label={`View details for ${title}`}
141
- >
142
- <MoreHorizontal className="h-4 w-4" />
143
- </Button>
144
- </div>
145
- </div>
146
-
147
- <p className="text-muted-foreground text-xs leading-relaxed flex-1">
148
- {description}
149
- </p>
150
-
151
- <div className="flex flex-col gap-2">
152
- {infoBadge && (
153
- <p className="bg-info/10 text-info px-2 py-1 text-xs">{infoBadge}</p>
154
- )}
155
- {tags.length > 0 && (
156
- <div className="flex flex-wrap gap-1">
157
- {tags.map((tag) => (
158
- <Badge key={tag} variant="secondary" className="text-xs">
159
- {tag}
160
- </Badge>
161
- ))}
162
- </div>
163
- )}
164
- </div>
165
- </Card>
166
- );
167
- }
168
-
169
- // ─── AgentMenuModal ───────────────────────────────────────────────────────────
170
-
171
- export type AgentMenuModalProps = {
172
- open: boolean;
173
- onOpenChange: (open: boolean) => void;
174
- agentTitle: string;
175
- description?: string;
176
- features?: Array<{ title: string; description: string }>;
177
- };
178
-
179
- export function AgentMenuModal({
180
- open,
181
- onOpenChange,
182
- agentTitle,
183
- description = "AI-powered lead management that works around the clock to grow your mortgage business.",
184
- features = AGENT_FEATURES,
185
- }: AgentMenuModalProps) {
186
- return (
187
- <Dialog open={open} onOpenChange={onOpenChange}>
188
- <DialogContent className="max-w-lg">
189
- <DialogHeader>
190
- <DialogTitle>{agentTitle}</DialogTitle>
191
- <DialogDescription>{description}</DialogDescription>
192
- </DialogHeader>
193
-
194
- <div className="flex flex-col gap-3 py-2">
195
- {features.map((feature, index) => (
196
- <div key={feature.title} className="flex gap-3">
197
- <Badge
198
- variant="default"
199
- className="h-6 w-6 shrink-0 p-0 text-xs font-bold"
200
- >
201
- {index + 1}
202
- </Badge>
203
- <div className="flex flex-col gap-0.5">
204
- <p className="text-sm font-semibold">{feature.title}</p>
205
- <p className="text-muted-foreground text-xs leading-relaxed">
206
- {feature.description}
207
- </p>
208
- </div>
209
- </div>
210
- ))}
211
- </div>
212
- </DialogContent>
213
- </Dialog>
214
- );
215
- }
216
-
217
- // ─── IntegrationServiceCard ───────────────────────────────────────────────────
218
-
219
- export type IntegrationServiceCardProps = {
220
- title: string;
221
- imageUrl?: string;
222
- iconNode?: React.ReactNode;
223
- description: string;
224
- isConnected: boolean;
225
- onCardClick: () => void;
226
- onSettingsClick: () => void;
227
- className?: string;
228
- };
229
-
230
- export function IntegrationServiceCard({
231
- title,
232
- imageUrl,
233
- iconNode,
234
- description,
235
- isConnected,
236
- onCardClick,
237
- onSettingsClick,
238
- className,
239
- }: IntegrationServiceCardProps) {
240
- return (
241
- <Card
242
- className={cn(
243
- "flex flex-col gap-3 p-4",
244
- !isConnected && "cursor-pointer transition-colors hover:bg-accent/50",
245
- className,
246
- )}
247
- onClick={!isConnected ? onCardClick : undefined}
248
- >
249
- <div className="flex items-start gap-3">
250
- <Avatar className="h-10 w-10 shrink-0">
251
- {imageUrl && <AvatarImage src={imageUrl} alt={title} />}
252
- <AvatarFallback className={iconNode ? "bg-transparent p-0.5" : ""}>
253
- {iconNode ?? <User className="h-5 w-5" />}
254
- </AvatarFallback>
255
- </Avatar>
256
-
257
- <div className="flex min-w-0 flex-1 flex-col gap-0.5">
258
- <div className="flex items-center gap-2">
259
- <span className="text-base font-semibold">{title}</span>
260
- {isConnected && (
261
- <Badge variant="success" className="gap-1 text-xs">
262
- <CheckCircle2 className="h-3 w-3" />
263
- Connected
264
- </Badge>
265
- )}
266
- </div>
267
- </div>
268
-
269
- {isConnected && (
270
- <Button
271
- variant="ghost"
272
- size="icon"
273
- className="h-7 w-7 shrink-0"
274
- onClick={(e) => {
275
- e.stopPropagation();
276
- onSettingsClick();
277
- }}
278
- aria-label={`Settings for ${title}`}
279
- >
280
- <Settings className="h-4 w-4" />
281
- </Button>
282
- )}
283
- </div>
284
-
285
- <p className="text-sm leading-relaxed text-muted-foreground">
286
- {description}
287
- </p>
288
- </Card>
289
- );
290
- }
291
-
292
- // ─── IntegrationInstructionCard ───────────────────────────────────────────────
293
-
294
- export type IntegrationInstructionCardProps = {
295
- title: string;
296
- codeBlock: string;
297
- onCopy?: () => void;
298
- className?: string;
299
- };
300
-
301
- export function IntegrationInstructionCard({
302
- title,
303
- codeBlock,
304
- onCopy,
305
- className,
306
- }: IntegrationInstructionCardProps) {
307
- const [copied, setCopied] = useState(false);
308
-
309
- const handleCopy = async () => {
310
- try {
311
- await navigator.clipboard.writeText(codeBlock);
312
- setCopied(true);
313
- onCopy?.();
314
- setTimeout(() => setCopied(false), 2000);
315
- } catch {
316
- // clipboard unavailable (non-HTTPS or permissions denied)
317
- }
318
- };
319
-
320
- return (
321
- <Card className={cn("flex flex-col gap-3 p-4", className)}>
322
- <div className="flex items-center justify-between gap-2">
323
- <h3 className="text-sm font-semibold">{title}</h3>
324
- <Button
325
- variant="outline"
326
- size="sm"
327
- className="h-7 gap-1.5 text-xs"
328
- onClick={handleCopy}
329
- >
330
- {copied ? (
331
- <>
332
- <Check className="h-3 w-3" />
333
- Copied
334
- </>
335
- ) : (
336
- <>
337
- <Copy className="h-3 w-3" />
338
- Copy
339
- </>
340
- )}
341
- </Button>
342
- </div>
343
- <pre className="bg-muted overflow-x-auto p-3 text-xs leading-relaxed">
344
- <code>{codeBlock}</code>
345
- </pre>
346
- </Card>
347
- );
348
- }
349
-
350
- // ─── ServiceConfigurationModal ────────────────────────────────────────────────
351
-
352
- export type ServiceConfigurationModalProps = {
353
- open: boolean;
354
- onOpenChange: (open: boolean) => void;
355
- serviceTitle: string;
356
- isConnected: boolean;
357
- serviceData?: AiBuilderServiceData;
358
- /** Brand icon node shown in the not-connected centered layout */
359
- iconNode?: React.ReactNode;
360
- /** Permissions shown in the not-connected state */
361
- connectPermissions?: string[];
362
- /** Subtitle shown below the service name in the not-connected state */
363
- connectDescription?: string;
364
- onConnect: () => void;
365
- onDisconnect: () => void;
366
- onReconnect: () => void;
367
- };
368
-
369
- export function ServiceConfigurationModal({
370
- open,
371
- onOpenChange,
372
- serviceTitle,
373
- isConnected,
374
- serviceData,
375
- iconNode,
376
- connectPermissions,
377
- connectDescription = "Link your account to enable automated workflows with WealthX.",
378
- onConnect,
379
- onDisconnect,
380
- onReconnect,
381
- }: ServiceConfigurationModalProps) {
382
- return (
383
- <Dialog open={open} onOpenChange={onOpenChange}>
384
- <DialogContent className="max-w-md">
385
- {isConnected ? (
386
- <>
387
- <DialogHeader>
388
- <DialogTitle>{serviceTitle}</DialogTitle>
389
- <DialogDescription>
390
- Manage your integration settings.
391
- </DialogDescription>
392
- </DialogHeader>
393
-
394
- <div className="flex flex-col gap-4 py-2">
395
- <div className="flex items-center gap-2 px-3 py-2 text-xs font-medium bg-success/10 text-success">
396
- <CheckCircle2 className="h-3.5 w-3.5 shrink-0" />
397
- Active — integration is running
398
- </div>
399
-
400
- {serviceData && (
401
- <>
402
- <div className="flex flex-col gap-2">
403
- <p className="text-muted-foreground text-xs font-medium uppercase tracking-wide">
404
- Account Information
405
- </p>
406
- <Card className="py-0">
407
- <CardContent className="flex flex-col gap-3 p-3">
408
- <div className="flex items-center gap-2 text-xs">
409
- <User className="text-muted-foreground h-3.5 w-3.5 shrink-0" />
410
- <span className="text-muted-foreground">
411
- {serviceData.accountIdentifierLabel}:
412
- </span>
413
- <span className="font-medium">
414
- {serviceData.accountIdentifier}
415
- </span>
416
- </div>
417
- <div className="flex items-center gap-2 text-xs">
418
- <Clock className="text-muted-foreground h-3.5 w-3.5 shrink-0" />
419
- <span className="text-muted-foreground">
420
- Connected on:
421
- </span>
422
- <span className="font-medium">
423
- {serviceData.connectedOn}
424
- </span>
425
- </div>
426
- <div className="flex items-center gap-2 text-xs">
427
- <Clock className="text-muted-foreground h-3.5 w-3.5 shrink-0" />
428
- <span className="text-muted-foreground">
429
- Last synced:
430
- </span>
431
- <span className="font-medium">
432
- {serviceData.lastSynced}
433
- </span>
434
- </div>
435
- </CardContent>
436
- </Card>
437
- </div>
438
-
439
- <div className="flex flex-col gap-2">
440
- <p className="text-muted-foreground text-xs font-medium uppercase tracking-wide">
441
- Granted Permissions
442
- </p>
443
- <Card className="py-0">
444
- <CardContent className="flex flex-col gap-2 p-3">
445
- {serviceData.permissions.map((permission) => (
446
- <div
447
- key={permission}
448
- className="flex items-center gap-2 text-xs"
449
- >
450
- <Shield className="text-success h-3.5 w-3.5 shrink-0" />
451
- <span>{permission}</span>
452
- </div>
453
- ))}
454
- </CardContent>
455
- </Card>
456
- </div>
457
-
458
- <div className="flex flex-col gap-2">
459
- <p className="text-muted-foreground text-xs font-medium uppercase tracking-wide">
460
- Sync Settings
461
- </p>
462
- <Card className="py-0">
463
- <CardContent className="flex items-center justify-between gap-3 p-3">
464
- <div className="flex flex-col gap-0.5">
465
- <p className="text-sm font-medium">
466
- {serviceData.syncLabel}
467
- </p>
468
- <p className="text-muted-foreground text-xs">
469
- {serviceData.syncDescription}
470
- </p>
471
- </div>
472
- <Switch
473
- checked={serviceData.syncEnabled}
474
- onCheckedChange={serviceData.onSyncToggle}
475
- aria-label={serviceData.syncLabel}
476
- />
477
- </CardContent>
478
- </Card>
479
- </div>
480
- </>
481
- )}
482
- </div>
483
-
484
- <DialogFooter>
485
- <Button
486
- variant="destructive"
487
- size="sm"
488
- onClick={onDisconnect}
489
- className="mr-auto"
490
- >
491
- Disconnect
492
- </Button>
493
- <Button
494
- variant="outline-secondary"
495
- size="sm"
496
- onClick={() => onOpenChange(false)}
497
- >
498
- Cancel
499
- </Button>
500
- <Button size="sm" onClick={onReconnect}>
501
- Reconnect
502
- </Button>
503
- </DialogFooter>
504
- </>
505
- ) : (
506
- <>
507
- <div className="flex flex-col gap-4 py-2">
508
- <div className="flex items-center gap-3">
509
- <div className="flex h-10 w-10 shrink-0 items-center justify-center bg-muted">
510
- {iconNode ?? (
511
- <Mail className="h-5 w-5 text-muted-foreground" />
512
- )}
513
- </div>
514
- <div className="flex flex-col gap-0.5">
515
- <p className="text-sm font-semibold">
516
- Connect {serviceTitle}
517
- </p>
518
- <p className="text-muted-foreground text-xs">
519
- {connectDescription}
520
- </p>
521
- </div>
522
- </div>
523
-
524
- {connectPermissions && connectPermissions.length > 0 && (
525
- <div className="flex flex-col gap-2 border border-border px-4 py-3">
526
- <p className="text-xs font-medium text-muted-foreground uppercase tracking-wide">
527
- Permissions requested
528
- </p>
529
- {connectPermissions.map((perm) => (
530
- <div key={perm} className="flex items-center gap-2">
531
- <Check className="h-3.5 w-3.5 shrink-0 text-success" />
532
- <span className="text-sm text-muted-foreground">
533
- {perm}
534
- </span>
535
- </div>
536
- ))}
537
- </div>
538
- )}
539
- </div>
540
-
541
- <DialogFooter>
542
- <Button
543
- variant="outline-secondary"
544
- size="sm"
545
- onClick={() => onOpenChange(false)}
546
- >
547
- Cancel
548
- </Button>
549
- <Button size="sm" onClick={onConnect}>
550
- Connect
551
- </Button>
552
- </DialogFooter>
553
- </>
554
- )}
555
- </DialogContent>
556
- </Dialog>
557
- );
558
- }
@@ -7,15 +7,15 @@ import {
7
7
  Empty,
8
8
  EmptyDescription
9
9
  } from "./chunk-R2ON6CAN.mjs";
10
- import {
11
- Spinner
12
- } from "./chunk-JVMXMFBB.mjs";
13
10
  import {
14
11
  Card,
15
12
  CardContent,
16
13
  CardHeader,
17
14
  CardTitle
18
15
  } from "./chunk-3VDET466.mjs";
16
+ import {
17
+ Spinner
18
+ } from "./chunk-JVMXMFBB.mjs";
19
19
  import {
20
20
  useThemeVars
21
21
  } from "./chunk-XYSRRDBH.mjs";
@@ -4,14 +4,14 @@ import {
4
4
  DropdownMenuItem,
5
5
  DropdownMenuTrigger
6
6
  } from "./chunk-H5DTKPJ2.mjs";
7
- import {
8
- Separator
9
- } from "./chunk-2GIYVERS.mjs";
10
7
  import {
11
8
  Avatar,
12
9
  AvatarFallback,
13
10
  AvatarImage
14
11
  } from "./chunk-H6NQTIF4.mjs";
12
+ import {
13
+ Separator
14
+ } from "./chunk-2GIYVERS.mjs";
15
15
  import {
16
16
  Badge
17
17
  } from "./chunk-X6RC5UWB.mjs";
@@ -1,9 +1,9 @@
1
- import {
2
- CurrencyInputWithSlider
3
- } from "./chunk-LDC6V6DJ.mjs";
4
1
  import {
5
2
  Switch
6
3
  } from "./chunk-PNSYFE3K.mjs";
4
+ import {
5
+ CurrencyInputWithSlider
6
+ } from "./chunk-LDC6V6DJ.mjs";
7
7
  import {
8
8
  Input
9
9
  } from "./chunk-LBTHZSBT.mjs";
@@ -1,3 +1,6 @@
1
+ import {
2
+ Switch
3
+ } from "./chunk-PNSYFE3K.mjs";
1
4
  import {
2
5
  Select,
3
6
  SelectContent,
@@ -5,9 +8,6 @@ import {
5
8
  SelectTrigger,
6
9
  SelectValue
7
10
  } from "./chunk-K6VCC2MK.mjs";
8
- import {
9
- Switch
10
- } from "./chunk-PNSYFE3K.mjs";
11
11
  import {
12
12
  Input
13
13
  } from "./chunk-LBTHZSBT.mjs";
@@ -1,9 +1,9 @@
1
- import {
2
- Checkbox
3
- } from "./chunk-IKXYTCSB.mjs";
4
1
  import {
5
2
  Switch
6
3
  } from "./chunk-PNSYFE3K.mjs";
4
+ import {
5
+ Checkbox
6
+ } from "./chunk-IKXYTCSB.mjs";
7
7
  import {
8
8
  Badge
9
9
  } from "./chunk-X6RC5UWB.mjs";
@@ -10,15 +10,15 @@ import {
10
10
  Empty,
11
11
  EmptyDescription
12
12
  } from "./chunk-R2ON6CAN.mjs";
13
- import {
14
- Spinner
15
- } from "./chunk-JVMXMFBB.mjs";
16
13
  import {
17
14
  Card,
18
15
  CardContent,
19
16
  CardHeader,
20
17
  CardTitle
21
18
  } from "./chunk-3VDET466.mjs";
19
+ import {
20
+ Spinner
21
+ } from "./chunk-JVMXMFBB.mjs";
22
22
  import {
23
23
  useThemeVars
24
24
  } from "./chunk-XYSRRDBH.mjs";
@@ -4,13 +4,13 @@ import {
4
4
  TabsList,
5
5
  TabsTrigger
6
6
  } from "./chunk-WE4YKBDE.mjs";
7
- import {
8
- Separator
9
- } from "./chunk-2GIYVERS.mjs";
10
7
  import {
11
8
  Avatar,
12
9
  AvatarFallback
13
10
  } from "./chunk-H6NQTIF4.mjs";
11
+ import {
12
+ Separator
13
+ } from "./chunk-2GIYVERS.mjs";
14
14
  import {
15
15
  Badge
16
16
  } from "./chunk-X6RC5UWB.mjs";
@@ -1,6 +1,10 @@
1
1
  import {
2
2
  IncomeBarChart
3
3
  } from "./chunk-IRZWYTGV.mjs";
4
+ import {
5
+ Card,
6
+ CardContent
7
+ } from "./chunk-3VDET466.mjs";
4
8
  import {
5
9
  RadioGroup,
6
10
  RadioGroupItem
@@ -12,10 +16,6 @@ import {
12
16
  import {
13
17
  Checkbox
14
18
  } from "./chunk-IKXYTCSB.mjs";
15
- import {
16
- Card,
17
- CardContent
18
- } from "./chunk-3VDET466.mjs";
19
19
  import {
20
20
  LoanOptionGroup
21
21
  } from "./chunk-FFXTQTB4.mjs";