@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,394 +0,0 @@
1
- import {
2
- Card,
3
- CardContent
4
- } from "./chunk-3VDET466.mjs";
5
- import {
6
- Switch
7
- } from "./chunk-PNSYFE3K.mjs";
8
- import {
9
- Dialog,
10
- DialogContent,
11
- DialogDescription,
12
- DialogFooter,
13
- DialogHeader,
14
- DialogTitle
15
- } from "./chunk-OIETBBXQ.mjs";
16
- import {
17
- Avatar,
18
- AvatarFallback,
19
- AvatarImage
20
- } from "./chunk-H6NQTIF4.mjs";
21
- import {
22
- Badge
23
- } from "./chunk-X6RC5UWB.mjs";
24
- import {
25
- Button
26
- } from "./chunk-NOOEKOWY.mjs";
27
- import {
28
- cn
29
- } from "./chunk-AFML43VJ.mjs";
30
- import {
31
- __async
32
- } from "./chunk-WNQUEZJF.mjs";
33
-
34
- // src/components/ui/ai-builder.tsx
35
- import { useState } from "react";
36
- import {
37
- Check,
38
- CheckCircle2,
39
- Clock,
40
- Copy,
41
- Mail,
42
- MoreHorizontal,
43
- Settings,
44
- Shield,
45
- User
46
- } from "lucide-react";
47
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
48
- var AGENT_FEATURES = [
49
- {
50
- title: "Lead Capture",
51
- description: "Automatically collect and qualify leads from website visitors."
52
- },
53
- {
54
- title: "Initial Engagement",
55
- description: "Instantly respond to inquiries with personalised mortgage guidance."
56
- },
57
- {
58
- title: "Smart Follow-Up",
59
- description: "Re-engage cold leads with timely, context-aware follow-up messages."
60
- },
61
- {
62
- title: "Appointment Scheduling",
63
- description: "Book qualified leads directly into advisor calendars without manual coordination."
64
- },
65
- {
66
- title: "Performance Tracking",
67
- description: "Monitor agent activity, response rates, and conversion metrics."
68
- }
69
- ];
70
- function AgentCard({
71
- agent,
72
- onToggle,
73
- onMenuClick,
74
- className
75
- }) {
76
- const { id, title, description, tags, isEnabled, infoBadge, isComingSoon } = agent;
77
- return /* @__PURE__ */ jsxs(
78
- Card,
79
- {
80
- className: cn(
81
- "flex flex-col gap-3 p-4 transition-opacity",
82
- isComingSoon && "opacity-60",
83
- className
84
- ),
85
- children: [
86
- /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
87
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 items-center gap-2 min-w-0", children: [
88
- /* @__PURE__ */ jsx(
89
- "span",
90
- {
91
- className: cn(
92
- "mt-0.5 size-2 shrink-0 rounded-full",
93
- isEnabled && !isComingSoon ? "bg-success" : "bg-muted-foreground/40"
94
- )
95
- }
96
- ),
97
- /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold leading-tight", children: title }),
98
- isComingSoon && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "shrink-0 text-xs", children: "Coming Soon" })
99
- ] }),
100
- /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-1", children: [
101
- /* @__PURE__ */ jsx(
102
- Switch,
103
- {
104
- checked: isEnabled,
105
- disabled: isComingSoon,
106
- onCheckedChange: (checked) => onToggle(id, checked),
107
- "aria-label": `Toggle ${title}`
108
- }
109
- ),
110
- /* @__PURE__ */ jsx(
111
- Button,
112
- {
113
- variant: "ghost",
114
- size: "icon",
115
- className: "h-7 w-7",
116
- onClick: () => onMenuClick(id),
117
- "aria-label": `View details for ${title}`,
118
- children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" })
119
- }
120
- )
121
- ] })
122
- ] }),
123
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs leading-relaxed flex-1", children: description }),
124
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
125
- infoBadge && /* @__PURE__ */ jsx("p", { className: "bg-info/10 text-info px-2 py-1 text-xs", children: infoBadge }),
126
- tags.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1", children: tags.map((tag) => /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "text-xs", children: tag }, tag)) })
127
- ] })
128
- ]
129
- }
130
- );
131
- }
132
- function AgentMenuModal({
133
- open,
134
- onOpenChange,
135
- agentTitle,
136
- description = "AI-powered lead management that works around the clock to grow your mortgage business.",
137
- features = AGENT_FEATURES
138
- }) {
139
- return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-lg", children: [
140
- /* @__PURE__ */ jsxs(DialogHeader, { children: [
141
- /* @__PURE__ */ jsx(DialogTitle, { children: agentTitle }),
142
- /* @__PURE__ */ jsx(DialogDescription, { children: description })
143
- ] }),
144
- /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3 py-2", children: features.map((feature, index) => /* @__PURE__ */ jsxs("div", { className: "flex gap-3", children: [
145
- /* @__PURE__ */ jsx(
146
- Badge,
147
- {
148
- variant: "default",
149
- className: "h-6 w-6 shrink-0 p-0 text-xs font-bold",
150
- children: index + 1
151
- }
152
- ),
153
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
154
- /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold", children: feature.title }),
155
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs leading-relaxed", children: feature.description })
156
- ] })
157
- ] }, feature.title)) })
158
- ] }) });
159
- }
160
- function IntegrationServiceCard({
161
- title,
162
- imageUrl,
163
- iconNode,
164
- description,
165
- isConnected,
166
- onCardClick,
167
- onSettingsClick,
168
- className
169
- }) {
170
- return /* @__PURE__ */ jsxs(
171
- Card,
172
- {
173
- className: cn(
174
- "flex flex-col gap-3 p-4",
175
- !isConnected && "cursor-pointer transition-colors hover:bg-accent/50",
176
- className
177
- ),
178
- onClick: !isConnected ? onCardClick : void 0,
179
- children: [
180
- /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
181
- /* @__PURE__ */ jsxs(Avatar, { className: "h-10 w-10 shrink-0", children: [
182
- imageUrl && /* @__PURE__ */ jsx(AvatarImage, { src: imageUrl, alt: title }),
183
- /* @__PURE__ */ jsx(AvatarFallback, { className: iconNode ? "bg-transparent p-0.5" : "", children: iconNode != null ? iconNode : /* @__PURE__ */ jsx(User, { className: "h-5 w-5" }) })
184
- ] }),
185
- /* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
186
- /* @__PURE__ */ jsx("span", { className: "text-base font-semibold", children: title }),
187
- isConnected && /* @__PURE__ */ jsxs(Badge, { variant: "success", className: "gap-1 text-xs", children: [
188
- /* @__PURE__ */ jsx(CheckCircle2, { className: "h-3 w-3" }),
189
- "Connected"
190
- ] })
191
- ] }) }),
192
- isConnected && /* @__PURE__ */ jsx(
193
- Button,
194
- {
195
- variant: "ghost",
196
- size: "icon",
197
- className: "h-7 w-7 shrink-0",
198
- onClick: (e) => {
199
- e.stopPropagation();
200
- onSettingsClick();
201
- },
202
- "aria-label": `Settings for ${title}`,
203
- children: /* @__PURE__ */ jsx(Settings, { className: "h-4 w-4" })
204
- }
205
- )
206
- ] }),
207
- /* @__PURE__ */ jsx("p", { className: "text-sm leading-relaxed text-muted-foreground", children: description })
208
- ]
209
- }
210
- );
211
- }
212
- function IntegrationInstructionCard({
213
- title,
214
- codeBlock,
215
- onCopy,
216
- className
217
- }) {
218
- const [copied, setCopied] = useState(false);
219
- const handleCopy = () => __async(null, null, function* () {
220
- try {
221
- yield navigator.clipboard.writeText(codeBlock);
222
- setCopied(true);
223
- onCopy == null ? void 0 : onCopy();
224
- setTimeout(() => setCopied(false), 2e3);
225
- } catch (e) {
226
- }
227
- });
228
- return /* @__PURE__ */ jsxs(Card, { className: cn("flex flex-col gap-3 p-4", className), children: [
229
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
230
- /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold", children: title }),
231
- /* @__PURE__ */ jsx(
232
- Button,
233
- {
234
- variant: "outline",
235
- size: "sm",
236
- className: "h-7 gap-1.5 text-xs",
237
- onClick: handleCopy,
238
- children: copied ? /* @__PURE__ */ jsxs(Fragment, { children: [
239
- /* @__PURE__ */ jsx(Check, { className: "h-3 w-3" }),
240
- "Copied"
241
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
242
- /* @__PURE__ */ jsx(Copy, { className: "h-3 w-3" }),
243
- "Copy"
244
- ] })
245
- }
246
- )
247
- ] }),
248
- /* @__PURE__ */ jsx("pre", { className: "bg-muted overflow-x-auto p-3 text-xs leading-relaxed", children: /* @__PURE__ */ jsx("code", { children: codeBlock }) })
249
- ] });
250
- }
251
- function ServiceConfigurationModal({
252
- open,
253
- onOpenChange,
254
- serviceTitle,
255
- isConnected,
256
- serviceData,
257
- iconNode,
258
- connectPermissions,
259
- connectDescription = "Link your account to enable automated workflows with WealthX.",
260
- onConnect,
261
- onDisconnect,
262
- onReconnect
263
- }) {
264
- return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsx(DialogContent, { className: "max-w-md", children: isConnected ? /* @__PURE__ */ jsxs(Fragment, { children: [
265
- /* @__PURE__ */ jsxs(DialogHeader, { children: [
266
- /* @__PURE__ */ jsx(DialogTitle, { children: serviceTitle }),
267
- /* @__PURE__ */ jsx(DialogDescription, { children: "Manage your integration settings." })
268
- ] }),
269
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 py-2", children: [
270
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-3 py-2 text-xs font-medium bg-success/10 text-success", children: [
271
- /* @__PURE__ */ jsx(CheckCircle2, { className: "h-3.5 w-3.5 shrink-0" }),
272
- "Active \u2014 integration is running"
273
- ] }),
274
- serviceData && /* @__PURE__ */ jsxs(Fragment, { children: [
275
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
276
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs font-medium uppercase tracking-wide", children: "Account Information" }),
277
- /* @__PURE__ */ jsx(Card, { className: "py-0", children: /* @__PURE__ */ jsxs(CardContent, { className: "flex flex-col gap-3 p-3", children: [
278
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs", children: [
279
- /* @__PURE__ */ jsx(User, { className: "text-muted-foreground h-3.5 w-3.5 shrink-0" }),
280
- /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground", children: [
281
- serviceData.accountIdentifierLabel,
282
- ":"
283
- ] }),
284
- /* @__PURE__ */ jsx("span", { className: "font-medium", children: serviceData.accountIdentifier })
285
- ] }),
286
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs", children: [
287
- /* @__PURE__ */ jsx(Clock, { className: "text-muted-foreground h-3.5 w-3.5 shrink-0" }),
288
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Connected on:" }),
289
- /* @__PURE__ */ jsx("span", { className: "font-medium", children: serviceData.connectedOn })
290
- ] }),
291
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs", children: [
292
- /* @__PURE__ */ jsx(Clock, { className: "text-muted-foreground h-3.5 w-3.5 shrink-0" }),
293
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Last synced:" }),
294
- /* @__PURE__ */ jsx("span", { className: "font-medium", children: serviceData.lastSynced })
295
- ] })
296
- ] }) })
297
- ] }),
298
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
299
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs font-medium uppercase tracking-wide", children: "Granted Permissions" }),
300
- /* @__PURE__ */ jsx(Card, { className: "py-0", children: /* @__PURE__ */ jsx(CardContent, { className: "flex flex-col gap-2 p-3", children: serviceData.permissions.map((permission) => /* @__PURE__ */ jsxs(
301
- "div",
302
- {
303
- className: "flex items-center gap-2 text-xs",
304
- children: [
305
- /* @__PURE__ */ jsx(Shield, { className: "text-success h-3.5 w-3.5 shrink-0" }),
306
- /* @__PURE__ */ jsx("span", { children: permission })
307
- ]
308
- },
309
- permission
310
- )) }) })
311
- ] }),
312
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
313
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs font-medium uppercase tracking-wide", children: "Sync Settings" }),
314
- /* @__PURE__ */ jsx(Card, { className: "py-0", children: /* @__PURE__ */ jsxs(CardContent, { className: "flex items-center justify-between gap-3 p-3", children: [
315
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
316
- /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: serviceData.syncLabel }),
317
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: serviceData.syncDescription })
318
- ] }),
319
- /* @__PURE__ */ jsx(
320
- Switch,
321
- {
322
- checked: serviceData.syncEnabled,
323
- onCheckedChange: serviceData.onSyncToggle,
324
- "aria-label": serviceData.syncLabel
325
- }
326
- )
327
- ] }) })
328
- ] })
329
- ] })
330
- ] }),
331
- /* @__PURE__ */ jsxs(DialogFooter, { children: [
332
- /* @__PURE__ */ jsx(
333
- Button,
334
- {
335
- variant: "destructive",
336
- size: "sm",
337
- onClick: onDisconnect,
338
- className: "mr-auto",
339
- children: "Disconnect"
340
- }
341
- ),
342
- /* @__PURE__ */ jsx(
343
- Button,
344
- {
345
- variant: "outline-secondary",
346
- size: "sm",
347
- onClick: () => onOpenChange(false),
348
- children: "Cancel"
349
- }
350
- ),
351
- /* @__PURE__ */ jsx(Button, { size: "sm", onClick: onReconnect, children: "Reconnect" })
352
- ] })
353
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
354
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 py-2", children: [
355
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
356
- /* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 shrink-0 items-center justify-center bg-muted", children: iconNode != null ? iconNode : /* @__PURE__ */ jsx(Mail, { className: "h-5 w-5 text-muted-foreground" }) }),
357
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
358
- /* @__PURE__ */ jsxs("p", { className: "text-sm font-semibold", children: [
359
- "Connect ",
360
- serviceTitle
361
- ] }),
362
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: connectDescription })
363
- ] })
364
- ] }),
365
- connectPermissions && connectPermissions.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 border border-border px-4 py-3", children: [
366
- /* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide", children: "Permissions requested" }),
367
- connectPermissions.map((perm) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
368
- /* @__PURE__ */ jsx(Check, { className: "h-3.5 w-3.5 shrink-0 text-success" }),
369
- /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: perm })
370
- ] }, perm))
371
- ] })
372
- ] }),
373
- /* @__PURE__ */ jsxs(DialogFooter, { children: [
374
- /* @__PURE__ */ jsx(
375
- Button,
376
- {
377
- variant: "outline-secondary",
378
- size: "sm",
379
- onClick: () => onOpenChange(false),
380
- children: "Cancel"
381
- }
382
- ),
383
- /* @__PURE__ */ jsx(Button, { size: "sm", onClick: onConnect, children: "Connect" })
384
- ] })
385
- ] }) }) });
386
- }
387
-
388
- export {
389
- AgentCard,
390
- AgentMenuModal,
391
- IntegrationServiceCard,
392
- IntegrationInstructionCard,
393
- ServiceConfigurationModal
394
- };
@@ -1,25 +0,0 @@
1
- import {
2
- AgentCard,
3
- AgentMenuModal,
4
- IntegrationInstructionCard,
5
- IntegrationServiceCard,
6
- ServiceConfigurationModal
7
- } from "../../chunk-INGYBZGU.mjs";
8
- import "../../chunk-3VDET466.mjs";
9
- import "../../chunk-PNSYFE3K.mjs";
10
- import "../../chunk-OIETBBXQ.mjs";
11
- import "../../chunk-H6NQTIF4.mjs";
12
- import "../../chunk-X6RC5UWB.mjs";
13
- import "../../chunk-XYSRRDBH.mjs";
14
- import "../../chunk-FRCTOAKZ.mjs";
15
- import "../../chunk-NOOEKOWY.mjs";
16
- import "../../chunk-R4HCRDU5.mjs";
17
- import "../../chunk-AFML43VJ.mjs";
18
- import "../../chunk-WNQUEZJF.mjs";
19
- export {
20
- AgentCard,
21
- AgentMenuModal,
22
- IntegrationInstructionCard,
23
- IntegrationServiceCard,
24
- ServiceConfigurationModal
25
- };