@wealthx/shadcn 1.5.13 → 1.5.15

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wealthx/shadcn",
3
- "version": "1.5.13",
3
+ "version": "1.5.15",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./src/index.ts",
@@ -19,6 +19,7 @@ import {
19
19
  MapPin,
20
20
  MessageSquare,
21
21
  MoreHorizontal,
22
+ Navigation,
22
23
  Paperclip,
23
24
  Phone,
24
25
  PhoneCall,
@@ -154,6 +155,8 @@ export interface AiConvDataField {
154
155
  export interface AiConvAppointmentData {
155
156
  datetime: string;
156
157
  meetingType: AiConvMeetingType;
158
+ /** Meeting link (video), phone number (phone), or address (in-person). */
159
+ meetingDetail?: string;
157
160
  status: "requested" | "confirmed" | "pending" | "cancelled";
158
161
  }
159
162
 
@@ -1298,6 +1301,12 @@ const MEETING_LABEL: Record<AiConvMeetingType, string> = {
1298
1301
  "in-person": "In Person",
1299
1302
  };
1300
1303
 
1304
+ const MEETING_DETAIL_ICON: Record<AiConvMeetingType, React.ElementType> = {
1305
+ video: Link2,
1306
+ phone: PhoneCall,
1307
+ "in-person": Navigation,
1308
+ };
1309
+
1301
1310
  interface AppointmentSectionProps {
1302
1311
  appointment: AiConvAppointmentData;
1303
1312
  contactId: string;
@@ -1307,6 +1316,36 @@ interface AppointmentSectionProps {
1307
1316
  onRescheduleAppointment?: (contactId: string) => void;
1308
1317
  }
1309
1318
 
1319
+ function MeetingDetailRow({
1320
+ meetingType,
1321
+ detail,
1322
+ }: {
1323
+ meetingType: AiConvMeetingType;
1324
+ detail: string;
1325
+ }) {
1326
+ const DetailIcon = MEETING_DETAIL_ICON[meetingType];
1327
+ const isLink = detail.startsWith("http");
1328
+ return (
1329
+ <div className="flex items-center gap-2">
1330
+ <DetailIcon className="size-4 shrink-0 text-muted-foreground" />
1331
+ {isLink ? (
1332
+ <a
1333
+ href={detail}
1334
+ target="_blank"
1335
+ rel="noopener noreferrer"
1336
+ className="text-sm text-primary underline underline-offset-2 break-all hover:text-primary/80"
1337
+ >
1338
+ {detail}
1339
+ </a>
1340
+ ) : (
1341
+ <span className="text-sm text-muted-foreground break-all">
1342
+ {detail}
1343
+ </span>
1344
+ )}
1345
+ </div>
1346
+ );
1347
+ }
1348
+
1310
1349
  function AppointmentSection({
1311
1350
  appointment,
1312
1351
  contactId,
@@ -1332,6 +1371,12 @@ function AppointmentSection({
1332
1371
  {MEETING_LABEL[appointment.meetingType]}
1333
1372
  </span>
1334
1373
  </div>
1374
+ {appointment.meetingDetail && (
1375
+ <MeetingDetailRow
1376
+ meetingType={appointment.meetingType}
1377
+ detail={appointment.meetingDetail}
1378
+ />
1379
+ )}
1335
1380
  <span
1336
1381
  className={cn("text-sm font-medium", {
1337
1382
  "text-warning-text": appointment.status === "requested",
@@ -612,7 +612,7 @@ export function AppointmentBookDialog({
612
612
 
613
613
  <Separator />
614
614
 
615
- <div className="flex flex-col gap-4">
615
+ <div className="flex flex-col gap-4 overflow-y-auto max-h-[calc(90vh-200px)]">
616
616
  {!isClientMode && (
617
617
  <div className="flex flex-col gap-1.5">
618
618
  <Label>Client</Label>
@@ -117,7 +117,7 @@ export function BankStatementDocumentTable({
117
117
  </div>
118
118
 
119
119
  {/* ── Table ── */}
120
- <Table>
120
+ <Table className="table-fixed">
121
121
  <TableHeader>
122
122
  <TableRow>
123
123
  <TableHead className="w-10">
@@ -130,8 +130,8 @@ export function BankStatementDocumentTable({
130
130
  />
131
131
  </TableHead>
132
132
  <TableHead>Name</TableHead>
133
- <TableHead>Type</TableHead>
134
- <TableHead>Date</TableHead>
133
+ <TableHead className="w-36">Type</TableHead>
134
+ <TableHead className="w-32">Date</TableHead>
135
135
  <TableHead className="w-20">Action</TableHead>
136
136
  </TableRow>
137
137
  </TableHeader>
@@ -167,7 +167,7 @@ export function BankStatementDocumentTable({
167
167
  <TableCell>
168
168
  <p
169
169
  className={cn(
170
- "text-body-medium max-w-[360px] overflow-hidden text-ellipsis whitespace-nowrap font-semibold align-bottom inline-block",
170
+ "truncate text-body-medium font-semibold",
171
171
  doc.hasDownload && doc.statementReady
172
172
  ? "cursor-pointer text-primary hover:underline"
173
173
  : "cursor-default",
@@ -182,8 +182,14 @@ export function BankStatementDocumentTable({
182
182
  </p>
183
183
  </TableCell>
184
184
 
185
- <TableCell>{doc.type}</TableCell>
186
- <TableCell>{doc.updatedDate}</TableCell>
185
+ <TableCell>
186
+ <span className="truncate text-body-medium">{doc.type}</span>
187
+ </TableCell>
188
+ <TableCell>
189
+ <span className="truncate text-body-medium">
190
+ {doc.updatedDate}
191
+ </span>
192
+ </TableCell>
187
193
 
188
194
  {/* Actions */}
189
195
  <TableCell>
@@ -402,15 +402,15 @@ export function BankStatementGenerateDialog({
402
402
  />
403
403
  </TableCell>
404
404
  <TableCell>
405
- <div className="flex items-center gap-2">
405
+ <div className="flex min-w-0 items-center gap-2">
406
406
  {account.institutionLogo && (
407
407
  <img
408
408
  src={account.institutionLogo}
409
409
  alt={account.institutionName ?? ""}
410
- className="size-8 object-cover"
410
+ className="size-8 shrink-0 object-cover"
411
411
  />
412
412
  )}
413
- <span className="text-body-medium font-semibold">
413
+ <span className="truncate text-body-medium font-semibold">
414
414
  {account.name ||
415
415
  account.institutionName ||
416
416
  "—"}
@@ -418,17 +418,17 @@ export function BankStatementGenerateDialog({
418
418
  </div>
419
419
  </TableCell>
420
420
  <TableCell>
421
- <span className="text-body-medium">
421
+ <span className="truncate text-body-medium">
422
422
  {account.accountNo ?? "—"}
423
423
  </span>
424
424
  </TableCell>
425
425
  <TableCell>
426
- <span className="text-body-medium">
426
+ <span className="truncate text-body-medium">
427
427
  {periodLabel}
428
428
  </span>
429
429
  </TableCell>
430
430
  <TableCell>
431
- <span className="text-body-medium">
431
+ <span className="truncate text-body-medium">
432
432
  {account.lastUpdated
433
433
  ? format(
434
434
  parseISO(account.lastUpdated),
@@ -143,8 +143,8 @@ export function BankStatementPDFViewer({
143
143
  data-slot="bank-statement-pdf-viewer"
144
144
  >
145
145
  {/* Navigation bar */}
146
- <div className="flex shrink-0 items-center justify-between border-b border-border px-3 py-2">
147
- <div className="flex items-center gap-2">
146
+ <div className="flex min-w-0 shrink-0 items-center justify-between border-b border-border px-3 py-2">
147
+ <div className="flex min-w-0 items-center gap-2">
148
148
  <Button
149
149
  variant="ghost"
150
150
  size="icon-sm"
@@ -155,7 +155,7 @@ export function BankStatementPDFViewer({
155
155
  <ChevronLeft className="size-4" />
156
156
  </Button>
157
157
 
158
- <span className="text-body-medium tabular-nums">
158
+ <span className="shrink-0 text-body-medium tabular-nums">
159
159
  Account {currentAccountIndex + 1} of {accounts.length}
160
160
  </span>
161
161
 
@@ -169,7 +169,7 @@ export function BankStatementPDFViewer({
169
169
  <ChevronRight className="size-4" />
170
170
  </Button>
171
171
 
172
- <span className="ml-2 text-body-medium text-muted-foreground">
172
+ <span className="ml-2 min-w-0 truncate text-body-medium text-muted-foreground">
173
173
  {accountLabel}
174
174
  </span>
175
175
  </div>