@wealthx/shadcn 1.2.2 → 1.3.1
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/.turbo/turbo-build.log +193 -149
- package/CHANGELOG.md +28 -0
- package/dist/{chunk-4Y6R4WEC.mjs → chunk-2A5RRQGG.mjs} +9 -22
- package/dist/{chunk-TS2ZX2VS.mjs → chunk-2UM72RJ7.mjs} +11 -15
- package/dist/{chunk-A56YQQHG.mjs → chunk-3NCUZIFP.mjs} +2 -2
- package/dist/chunk-3OYFOX3X.mjs +79 -0
- package/dist/{chunk-RP3SQYA3.mjs → chunk-3TTACBDP.mjs} +9 -4
- package/dist/chunk-4GAWMKMI.mjs +710 -0
- package/dist/{chunk-VGSESELX.mjs → chunk-5FQIKDKP.mjs} +5 -5
- package/dist/{chunk-K3JYD4IU.mjs → chunk-5IS7G74I.mjs} +11 -4
- package/dist/chunk-6AW4KJHE.mjs +235 -0
- package/dist/chunk-6CR5N2JW.mjs +302 -0
- package/dist/{chunk-XIRTEFKH.mjs → chunk-6DZEXFNB.mjs} +36 -8
- package/dist/chunk-6O6KD7CE.mjs +271 -0
- package/dist/chunk-7PV3IWCN.mjs +33 -0
- package/dist/{chunk-SPJ5KXW7.mjs → chunk-7S5AESZO.mjs} +5 -5
- package/dist/{chunk-RYCLWMZ7.mjs → chunk-ABFDMHOR.mjs} +9 -7
- package/dist/{chunk-SWGT756Z.mjs → chunk-AMQZRHEZ.mjs} +10 -4
- package/dist/{chunk-WAZD7NFU.mjs → chunk-BKNFWEH2.mjs} +6 -6
- package/dist/{chunk-CLIN5525.mjs → chunk-C7CQJNMR.mjs} +1 -1
- package/dist/{chunk-D4ILTPOG.mjs → chunk-CFMQP5QS.mjs} +5 -4
- package/dist/{chunk-VPBN3WOO.mjs → chunk-DGHAXJBN.mjs} +9 -7
- package/dist/chunk-DOEO3CDL.mjs +27 -0
- package/dist/{chunk-5MEWU56Z.mjs → chunk-DUJTAXMH.mjs} +11 -6
- package/dist/{chunk-GGM2UYGG.mjs → chunk-EBXQWIYG.mjs} +10 -4
- package/dist/chunk-EWRB4PAD.mjs +468 -0
- package/dist/{chunk-ZSHYDDRB.mjs → chunk-FAKPBKLT.mjs} +6 -2
- package/dist/{chunk-A6AAWBPF.mjs → chunk-GHC7LLUX.mjs} +13 -4
- package/dist/chunk-HBZLGDIN.mjs +507 -0
- package/dist/{chunk-SIZMLSRU.mjs → chunk-HISNT2MG.mjs} +8 -6
- package/dist/{chunk-CGH4DRNG.mjs → chunk-HVY6KCCF.mjs} +10 -7
- package/dist/chunk-I3RZS7V2.mjs +136 -0
- package/dist/chunk-IAE3F7DR.mjs +1962 -0
- package/dist/{chunk-UT4KJR7V.mjs → chunk-IHMFS7NZ.mjs} +35 -74
- package/dist/{chunk-PCPLO5HT.mjs → chunk-IOJRDS6V.mjs} +96 -14
- package/dist/{chunk-LHYCMLVA.mjs → chunk-JKGDCQTZ.mjs} +11 -4
- package/dist/{chunk-H45TKD34.mjs → chunk-JMHR3YGZ.mjs} +1 -1
- package/dist/{chunk-4MN6UQHG.mjs → chunk-K5A5L6T2.mjs} +17 -39
- package/dist/chunk-LV35NGVG.mjs +272 -0
- package/dist/{chunk-FZIXGLMV.mjs → chunk-M3FV7LOK.mjs} +5 -12
- package/dist/{chunk-FMAXJ2SI.mjs → chunk-MBON7YRJ.mjs} +1 -1
- package/dist/chunk-MIZQHHUO.mjs +441 -0
- package/dist/chunk-MLNEWRWV.mjs +449 -0
- package/dist/chunk-MN5NYQCL.mjs +29 -0
- package/dist/chunk-NL3ZO62D.mjs +31 -0
- package/dist/{chunk-Q76O3RIQ.mjs → chunk-NMOI6CQD.mjs} +1 -1
- package/dist/{chunk-P6AM5V7O.mjs → chunk-OODBHKG7.mjs} +1 -1
- package/dist/chunk-PBL4OQV2.mjs +283 -0
- package/dist/{chunk-Y4QFWRNR.mjs → chunk-PU4YZQXV.mjs} +17 -18
- package/dist/chunk-Q2BGOAMG.mjs +202 -0
- package/dist/chunk-QMY3AZJH.mjs +80 -0
- package/dist/{chunk-BL3DXM2X.mjs → chunk-QZ4RE6NA.mjs} +11 -4
- package/dist/{chunk-VACKZOMY.mjs → chunk-R3VSPKNP.mjs} +3 -3
- package/dist/{chunk-OPNQAVVH.mjs → chunk-RJI6GKVF.mjs} +8 -6
- package/dist/{chunk-WG6JGJXB.mjs → chunk-T4BJLT57.mjs} +1 -1
- package/dist/chunk-UMTOX62O.mjs +415 -0
- package/dist/{chunk-7MMXNK3C.mjs → chunk-VLARHE5V.mjs} +8 -6
- package/dist/{chunk-2I5S2AMY.mjs → chunk-XREGSKX3.mjs} +2 -2
- package/dist/{chunk-JNQORUPP.mjs → chunk-YJG55G2H.mjs} +14 -11
- package/dist/components/ui/add-column-modal.js +42 -14
- package/dist/components/ui/add-column-modal.mjs +5 -5
- package/dist/components/ui/add-lead-modal.js +42 -11
- package/dist/components/ui/add-lead-modal.mjs +3 -3
- package/dist/components/ui/advisor-card.js +530 -0
- package/dist/components/ui/advisor-card.mjs +15 -0
- package/dist/components/ui/ai-assistant-drawer.js +11 -10
- package/dist/components/ui/ai-assistant-drawer.mjs +3 -3
- package/dist/components/ui/alert-dialog.js +2 -2
- package/dist/components/ui/alert-dialog.mjs +2 -2
- package/dist/components/ui/appointment-action-dialogs.js +1160 -0
- package/dist/components/ui/appointment-action-dialogs.mjs +23 -0
- package/dist/components/ui/appointment-availability-settings.js +1590 -0
- package/dist/components/ui/appointment-availability-settings.mjs +23 -0
- package/dist/components/ui/appointment-book-dialog.js +1744 -0
- package/dist/components/ui/appointment-book-dialog.mjs +27 -0
- package/dist/components/ui/appointment-calendar-view.js +833 -0
- package/dist/components/ui/appointment-calendar-view.mjs +14 -0
- package/dist/components/ui/appointment-detail-sheet.js +1517 -0
- package/dist/components/ui/appointment-detail-sheet.mjs +24 -0
- package/dist/components/ui/appointment-gmail-connect.js +467 -0
- package/dist/components/ui/appointment-gmail-connect.mjs +14 -0
- package/dist/components/ui/appointment-mini-card.js +345 -0
- package/dist/components/ui/appointment-mini-card.mjs +11 -0
- package/dist/components/ui/appointment-time-slot-picker.js +311 -0
- package/dist/components/ui/appointment-time-slot-picker.mjs +13 -0
- package/dist/components/ui/appointment-upcoming-card.js +1268 -0
- package/dist/components/ui/appointment-upcoming-card.mjs +21 -0
- package/dist/components/ui/backoffice-alert-history-chart.js +11 -5
- package/dist/components/ui/backoffice-alert-history-chart.mjs +5 -4
- package/dist/components/ui/backoffice-alerts-chart.js +786 -0
- package/dist/components/ui/backoffice-alerts-chart.mjs +19 -0
- package/dist/components/ui/backoffice-connections-chart.js +817 -0
- package/dist/components/ui/backoffice-connections-chart.mjs +19 -0
- package/dist/components/ui/backoffice-contact-history-chart.js +11 -5
- package/dist/components/ui/backoffice-contact-history-chart.mjs +5 -4
- package/dist/components/ui/badge.js +6 -6
- package/dist/components/ui/badge.mjs +1 -1
- package/dist/components/ui/borrowing-capacity-line-chart.js +30 -21
- package/dist/components/ui/borrowing-capacity-line-chart.mjs +5 -4
- package/dist/components/ui/button.js +2 -2
- package/dist/components/ui/button.mjs +1 -1
- package/dist/components/ui/calendar.js +2 -2
- package/dist/components/ui/calendar.mjs +2 -2
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/card.mjs +1 -1
- package/dist/components/ui/cash-balance-line-chart.js +31 -23
- package/dist/components/ui/cash-balance-line-chart.mjs +5 -4
- package/dist/components/ui/cashflow-bar-chart.js +12 -5
- package/dist/components/ui/cashflow-bar-chart.mjs +5 -4
- package/dist/components/ui/chip.js +97 -18
- package/dist/components/ui/chip.mjs +3 -2
- package/dist/components/ui/color-picker.js +158 -28
- package/dist/components/ui/color-picker.mjs +3 -1
- package/dist/components/ui/data-table.js +140 -119
- package/dist/components/ui/data-table.mjs +3 -2
- package/dist/components/ui/date-picker.js +48 -27
- package/dist/components/ui/date-picker.mjs +4 -3
- package/dist/components/ui/dialog.js +37 -9
- package/dist/components/ui/dialog.mjs +2 -2
- package/dist/components/ui/expense-bar-chart.js +12 -5
- package/dist/components/ui/expense-bar-chart.mjs +5 -4
- package/dist/components/ui/field.mjs +2 -2
- package/dist/components/ui/financial-cards.js +322 -155
- package/dist/components/ui/financial-cards.mjs +5 -3
- package/dist/components/ui/financial-drawers.js +2 -2
- package/dist/components/ui/financial-drawers.mjs +3 -3
- package/dist/components/ui/financial-sections.js +14 -10
- package/dist/components/ui/financial-sections.mjs +6 -5
- package/dist/components/ui/income-bar-chart.js +12 -5
- package/dist/components/ui/income-bar-chart.mjs +5 -4
- package/dist/components/ui/input-group.js +2 -2
- package/dist/components/ui/input-group.mjs +2 -2
- package/dist/components/ui/kanban-column.js +52 -44
- package/dist/components/ui/kanban-column.mjs +7 -5
- package/dist/components/ui/opportunity-card.js +52 -44
- package/dist/components/ui/opportunity-card.mjs +6 -4
- package/dist/components/ui/opportunity-edit-modals.js +1367 -1263
- package/dist/components/ui/opportunity-edit-modals.mjs +8 -8
- package/dist/components/ui/opportunity-summary-tab.js +2744 -2157
- package/dist/components/ui/opportunity-summary-tab.mjs +14 -14
- package/dist/components/ui/page-header.js +92 -0
- package/dist/components/ui/page-header.mjs +8 -0
- package/dist/components/ui/page-top-bar.js +88 -0
- package/dist/components/ui/page-top-bar.mjs +8 -0
- package/dist/components/ui/pagination.js +303 -19
- package/dist/components/ui/pagination.mjs +11 -4
- package/dist/components/ui/pipeline-board.js +205 -191
- package/dist/components/ui/pipeline-board.mjs +9 -7
- package/dist/components/ui/pipeline-dialogs.js +114 -65
- package/dist/components/ui/pipeline-dialogs.mjs +7 -6
- package/dist/components/ui/pipeline-primitives.js +6 -6
- package/dist/components/ui/pipeline-primitives.mjs +2 -2
- package/dist/components/ui/property-cashflow-doughnut-chart.js +14 -12
- package/dist/components/ui/property-cashflow-doughnut-chart.mjs +5 -4
- package/dist/components/ui/property-debt-equity-doughnut-chart.js +14 -12
- package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +5 -4
- package/dist/components/ui/property-mobile-estimate-line-chart.js +16 -14
- package/dist/components/ui/property-mobile-estimate-line-chart.mjs +5 -4
- package/dist/components/ui/sidebar-nav.js +426 -191
- package/dist/components/ui/sidebar-nav.mjs +5 -1
- package/dist/components/ui/stage-timeline.js +6 -6
- package/dist/components/ui/stage-timeline.mjs +3 -3
- package/dist/components/ui/transactions-expense-categories-doughnut-chart.js +18 -16
- package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +5 -4
- package/dist/components/ui/transactions-income-expense-bar-chart.js +28 -12
- package/dist/components/ui/transactions-income-expense-bar-chart.mjs +5 -4
- package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js +18 -16
- package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +5 -4
- package/dist/index.js +12258 -8611
- package/dist/index.mjs +258 -190
- package/dist/styles.css +1 -1
- package/package.json +71 -1
- package/src/components/index.tsx +115 -9
- package/src/components/ui/add-column-modal.tsx +7 -7
- package/src/components/ui/add-lead-modal.tsx +6 -3
- package/src/components/ui/advisor-card.tsx +284 -0
- package/src/components/ui/ai-assistant-drawer.tsx +4 -3
- package/src/components/ui/appointment-action-dialogs.tsx +297 -0
- package/src/components/ui/appointment-availability-settings.tsx +645 -0
- package/src/components/ui/appointment-book-dialog.tsx +618 -0
- package/src/components/ui/appointment-calendar-view.tsx +510 -0
- package/src/components/ui/appointment-detail-sheet.tsx +415 -0
- package/src/components/ui/appointment-gmail-connect.tsx +188 -0
- package/src/components/ui/appointment-mini-card.tsx +104 -0
- package/src/components/ui/appointment-time-slot-picker.tsx +123 -0
- package/src/components/ui/appointment-upcoming-card.tsx +635 -0
- package/src/components/ui/backoffice-alert-history-chart.tsx +10 -2
- package/src/components/ui/backoffice-alerts-chart.tsx +312 -0
- package/src/components/ui/backoffice-connections-chart.tsx +339 -0
- package/src/components/ui/backoffice-contact-history-chart.tsx +10 -2
- package/src/components/ui/badge.tsx +12 -6
- package/src/components/ui/borrowing-capacity-line-chart.tsx +4 -11
- package/src/components/ui/button.tsx +2 -2
- package/src/components/ui/card.tsx +1 -1
- package/src/components/ui/cash-balance-line-chart.tsx +4 -23
- package/src/components/ui/cashflow-bar-chart.tsx +9 -2
- package/src/components/ui/chart-shared.tsx +4 -11
- package/src/components/ui/chip.tsx +23 -19
- package/src/components/ui/color-picker.tsx +4 -2
- package/src/components/ui/data-table.tsx +28 -74
- package/src/components/ui/date-picker.tsx +42 -37
- package/src/components/ui/dialog.tsx +72 -6
- package/src/components/ui/expense-bar-chart.tsx +11 -2
- package/src/components/ui/financial-cards.tsx +99 -10
- package/src/components/ui/income-bar-chart.tsx +11 -2
- package/src/components/ui/opportunity-card.tsx +10 -39
- package/src/components/ui/opportunity-edit-modals.tsx +98 -36
- package/src/components/ui/opportunity-summary-tab.tsx +548 -232
- package/src/components/ui/page-header.tsx +57 -0
- package/src/components/ui/page-top-bar.tsx +48 -0
- package/src/components/ui/pagination.tsx +171 -22
- package/src/components/ui/pipeline-board.tsx +12 -5
- package/src/components/ui/property-cashflow-doughnut-chart.tsx +3 -1
- package/src/components/ui/property-debt-equity-doughnut-chart.tsx +3 -1
- package/src/components/ui/property-mobile-estimate-line-chart.tsx +3 -1
- package/src/components/ui/sidebar-nav.tsx +213 -157
- package/src/components/ui/transactions-expense-categories-doughnut-chart.tsx +3 -1
- package/src/components/ui/transactions-income-expense-bar-chart.tsx +12 -9
- package/src/components/ui/transactions-liabilities-breakdown-doughnut-chart.tsx +3 -1
- package/src/lib/format-currency.ts +44 -0
- package/src/lib/format-date.ts +50 -0
- package/src/lib/opportunity-constants.ts +12 -0
- package/src/styles/globals.css +17 -15
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +14 -0
- package/dist/chunk-S4QRUQNW.mjs +0 -475
- package/dist/chunk-URGMJAE3.mjs +0 -1885
- package/dist/chunk-WNGWBVLV.mjs +0 -148
- package/dist/chunk-ZRSDX6OW.mjs +0 -385
- package/dist/{chunk-LLVQKSU3.mjs → chunk-GD4BJDJR.mjs} +3 -3
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AppointmentSlotSection
|
|
3
|
+
} from "./chunk-3OYFOX3X.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Textarea
|
|
6
|
+
} from "./chunk-34NWQURD.mjs";
|
|
7
|
+
import {
|
|
8
|
+
Calendar
|
|
9
|
+
} from "./chunk-OODBHKG7.mjs";
|
|
10
|
+
import {
|
|
11
|
+
Avatar,
|
|
12
|
+
AvatarFallback
|
|
13
|
+
} from "./chunk-24FUO7TD.mjs";
|
|
14
|
+
import {
|
|
15
|
+
Badge
|
|
16
|
+
} from "./chunk-BKNFWEH2.mjs";
|
|
17
|
+
import {
|
|
18
|
+
Label
|
|
19
|
+
} from "./chunk-NSLMILBT.mjs";
|
|
20
|
+
import {
|
|
21
|
+
Separator
|
|
22
|
+
} from "./chunk-FH6QVUVZ.mjs";
|
|
23
|
+
import {
|
|
24
|
+
Dialog,
|
|
25
|
+
DialogClose,
|
|
26
|
+
DialogContent,
|
|
27
|
+
DialogDescription,
|
|
28
|
+
DialogFooter,
|
|
29
|
+
DialogHeader,
|
|
30
|
+
DialogTitle
|
|
31
|
+
} from "./chunk-6DZEXFNB.mjs";
|
|
32
|
+
import {
|
|
33
|
+
Button
|
|
34
|
+
} from "./chunk-XREGSKX3.mjs";
|
|
35
|
+
|
|
36
|
+
// src/components/ui/appointment-upcoming-card.tsx
|
|
37
|
+
import React from "react";
|
|
38
|
+
import {
|
|
39
|
+
Calendar as CalendarIcon,
|
|
40
|
+
CalendarCheck,
|
|
41
|
+
Clock,
|
|
42
|
+
ExternalLink
|
|
43
|
+
} from "lucide-react";
|
|
44
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
45
|
+
function AppointmentUpcomingCard({
|
|
46
|
+
appointment,
|
|
47
|
+
amSlots = [],
|
|
48
|
+
pmSlots = [],
|
|
49
|
+
onBookAppointment,
|
|
50
|
+
onReschedule,
|
|
51
|
+
onCancel,
|
|
52
|
+
onAcceptReschedule
|
|
53
|
+
}) {
|
|
54
|
+
var _a, _b, _c;
|
|
55
|
+
const [calendarDialogOpen, setCalendarDialogOpen] = React.useState(false);
|
|
56
|
+
const [acceptDialogOpen, setAcceptDialogOpen] = React.useState(false);
|
|
57
|
+
const [rescheduleDialogOpen, setRescheduleDialogOpen] = React.useState(false);
|
|
58
|
+
const [cancelDialogOpen, setCancelDialogOpen] = React.useState(false);
|
|
59
|
+
const [rescheduleDate, setRescheduleDate] = React.useState(
|
|
60
|
+
/* @__PURE__ */ new Date()
|
|
61
|
+
);
|
|
62
|
+
const [rescheduleSlot, setRescheduleSlot] = React.useState(void 0);
|
|
63
|
+
const [rescheduleNote, setRescheduleNote] = React.useState("");
|
|
64
|
+
const [cancelReason, setCancelReason] = React.useState("");
|
|
65
|
+
const resetRescheduleForm = () => {
|
|
66
|
+
setRescheduleDate(/* @__PURE__ */ new Date());
|
|
67
|
+
setRescheduleSlot(void 0);
|
|
68
|
+
setRescheduleNote("");
|
|
69
|
+
};
|
|
70
|
+
const hasSlotsData = amSlots.length > 0 || pmSlots.length > 0;
|
|
71
|
+
const canSubmitReschedule = hasSlotsData ? !!rescheduleDate && !!rescheduleSlot : !!rescheduleDate;
|
|
72
|
+
if (!appointment) {
|
|
73
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-4 border border-border bg-card px-6 py-10 text-center", children: [
|
|
74
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-12 w-12 items-center justify-center bg-muted", children: /* @__PURE__ */ jsx(CalendarIcon, { className: "h-6 w-6 text-muted-foreground" }) }),
|
|
75
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
76
|
+
/* @__PURE__ */ jsx("p", { className: "text-base font-semibold", children: "No upcoming appointments" }),
|
|
77
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Schedule time with your advisor to discuss your financial goals." })
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ jsx(Button, { onClick: onBookAppointment, className: "w-full", children: "Book an Appointment" })
|
|
80
|
+
] });
|
|
81
|
+
}
|
|
82
|
+
const isPending = appointment.status === "pending";
|
|
83
|
+
const isRescheduled = appointment.status === "rescheduled";
|
|
84
|
+
const isCancelled = appointment.status === "cancelled";
|
|
85
|
+
const statusBadge = (() => {
|
|
86
|
+
if (isPending) return /* @__PURE__ */ jsx(Badge, { variant: "warning", children: "Pending" });
|
|
87
|
+
if (isRescheduled) return /* @__PURE__ */ jsx(Badge, { variant: "info", children: "Rescheduled" });
|
|
88
|
+
if (isCancelled) return /* @__PURE__ */ jsx(Badge, { variant: "destructive", children: "Cancelled" });
|
|
89
|
+
return /* @__PURE__ */ jsx(Badge, { variant: "success", children: "Confirmed" });
|
|
90
|
+
})();
|
|
91
|
+
const noticeBanner = (() => {
|
|
92
|
+
if (isPending) {
|
|
93
|
+
return /* @__PURE__ */ jsx("div", { className: "bg-warning/10 px-5 py-3", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-foreground", children: "Your booking request has been sent. Your advisor will confirm the appointment shortly." }) });
|
|
94
|
+
}
|
|
95
|
+
if (isRescheduled) {
|
|
96
|
+
return /* @__PURE__ */ jsx("div", { className: "bg-info/10 px-5 py-3", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-foreground", children: "Your advisor has proposed a new time. Please review and respond below." }) });
|
|
97
|
+
}
|
|
98
|
+
if (isCancelled) {
|
|
99
|
+
return /* @__PURE__ */ jsx("div", { className: "bg-destructive/10 px-5 py-3", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-foreground", children: "This appointment has been cancelled by your advisor." }) });
|
|
100
|
+
}
|
|
101
|
+
return null;
|
|
102
|
+
})();
|
|
103
|
+
const headerTitle = appointment.appointmentType ? appointment.appointmentType.toUpperCase() : "UPCOMING APPOINTMENT";
|
|
104
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
105
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col border border-border bg-card", children: [
|
|
106
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-5 py-4", children: [
|
|
107
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
108
|
+
/* @__PURE__ */ jsx(CalendarCheck, { className: "h-4 w-4 text-muted-foreground" }),
|
|
109
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-semibold uppercase tracking-wide text-muted-foreground", children: headerTitle })
|
|
110
|
+
] }),
|
|
111
|
+
statusBadge
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
114
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 px-5 py-4", children: [
|
|
115
|
+
/* @__PURE__ */ jsx(Avatar, { className: "h-12 w-12 shrink-0", children: /* @__PURE__ */ jsx(AvatarFallback, { className: "text-base", children: appointment.advisor.avatarInitials }) }),
|
|
116
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
117
|
+
/* @__PURE__ */ jsx("p", { className: "text-base font-semibold", children: appointment.advisor.name }),
|
|
118
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: appointment.advisor.role }),
|
|
119
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: appointment.advisor.company })
|
|
120
|
+
] })
|
|
121
|
+
] }),
|
|
122
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
123
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4 px-5 py-4", children: isRescheduled ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
124
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
125
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: "Original time" }),
|
|
126
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 text-sm text-muted-foreground/50 line-through", children: [
|
|
127
|
+
/* @__PURE__ */ jsx(CalendarIcon, { className: "h-4 w-4 shrink-0" }),
|
|
128
|
+
/* @__PURE__ */ jsx("span", { children: (_a = appointment.originalDate) != null ? _a : appointment.date })
|
|
129
|
+
] }),
|
|
130
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 text-sm text-muted-foreground/50 line-through", children: [
|
|
131
|
+
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 shrink-0" }),
|
|
132
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
133
|
+
(_b = appointment.originalTimeStart) != null ? _b : appointment.timeStart,
|
|
134
|
+
" \u2013",
|
|
135
|
+
" ",
|
|
136
|
+
(_c = appointment.originalTimeEnd) != null ? _c : appointment.timeEnd
|
|
137
|
+
] })
|
|
138
|
+
] })
|
|
139
|
+
] }),
|
|
140
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
141
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-medium uppercase tracking-wide text-info", children: "New proposed time" }),
|
|
142
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 text-sm text-foreground", children: [
|
|
143
|
+
/* @__PURE__ */ jsx(CalendarIcon, { className: "h-4 w-4 shrink-0" }),
|
|
144
|
+
/* @__PURE__ */ jsx("span", { children: appointment.date })
|
|
145
|
+
] }),
|
|
146
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 text-sm text-foreground", children: [
|
|
147
|
+
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 shrink-0" }),
|
|
148
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
149
|
+
appointment.timeStart,
|
|
150
|
+
" \u2013 ",
|
|
151
|
+
appointment.timeEnd
|
|
152
|
+
] })
|
|
153
|
+
] })
|
|
154
|
+
] })
|
|
155
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
156
|
+
/* @__PURE__ */ jsxs(
|
|
157
|
+
"div",
|
|
158
|
+
{
|
|
159
|
+
className: `flex items-center gap-2.5 text-sm ${isCancelled ? "text-muted-foreground/50 line-through" : "text-muted-foreground"}`,
|
|
160
|
+
children: [
|
|
161
|
+
/* @__PURE__ */ jsx(CalendarIcon, { className: "h-4 w-4 shrink-0" }),
|
|
162
|
+
/* @__PURE__ */ jsx("span", { children: appointment.date })
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
/* @__PURE__ */ jsxs(
|
|
167
|
+
"div",
|
|
168
|
+
{
|
|
169
|
+
className: `flex items-center gap-2.5 text-sm ${isCancelled ? "text-muted-foreground/50 line-through" : "text-muted-foreground"}`,
|
|
170
|
+
children: [
|
|
171
|
+
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 shrink-0" }),
|
|
172
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
173
|
+
appointment.timeStart,
|
|
174
|
+
" \u2013 ",
|
|
175
|
+
appointment.timeEnd
|
|
176
|
+
] })
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
] }) }),
|
|
181
|
+
noticeBanner && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
182
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
183
|
+
noticeBanner
|
|
184
|
+
] }),
|
|
185
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
186
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 px-5 py-4", children: [
|
|
187
|
+
!isPending && !isRescheduled && !isCancelled && appointment.calendarLink && /* @__PURE__ */ jsxs(
|
|
188
|
+
Button,
|
|
189
|
+
{
|
|
190
|
+
className: "w-full gap-2",
|
|
191
|
+
onClick: () => setCalendarDialogOpen(true),
|
|
192
|
+
children: [
|
|
193
|
+
/* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
194
|
+
"Add to Calendar"
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
isRescheduled && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
199
|
+
/* @__PURE__ */ jsx(
|
|
200
|
+
Button,
|
|
201
|
+
{
|
|
202
|
+
className: "w-full",
|
|
203
|
+
onClick: () => setAcceptDialogOpen(true),
|
|
204
|
+
children: "Accept New Time"
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
/* @__PURE__ */ jsx(
|
|
208
|
+
Button,
|
|
209
|
+
{
|
|
210
|
+
variant: "outline",
|
|
211
|
+
className: "w-full",
|
|
212
|
+
onClick: () => {
|
|
213
|
+
resetRescheduleForm();
|
|
214
|
+
setRescheduleDialogOpen(true);
|
|
215
|
+
},
|
|
216
|
+
children: "Request Another Time"
|
|
217
|
+
}
|
|
218
|
+
)
|
|
219
|
+
] }),
|
|
220
|
+
isCancelled && /* @__PURE__ */ jsx(Button, { className: "w-full", onClick: onBookAppointment, children: "Book a New Appointment" }),
|
|
221
|
+
!isRescheduled && !isCancelled && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
222
|
+
/* @__PURE__ */ jsx(
|
|
223
|
+
Button,
|
|
224
|
+
{
|
|
225
|
+
variant: "ghost",
|
|
226
|
+
className: "w-full",
|
|
227
|
+
onClick: () => {
|
|
228
|
+
resetRescheduleForm();
|
|
229
|
+
setRescheduleDialogOpen(true);
|
|
230
|
+
},
|
|
231
|
+
children: "Request Reschedule"
|
|
232
|
+
}
|
|
233
|
+
),
|
|
234
|
+
/* @__PURE__ */ jsx(
|
|
235
|
+
Button,
|
|
236
|
+
{
|
|
237
|
+
variant: "ghost",
|
|
238
|
+
className: "w-full text-destructive hover:text-destructive",
|
|
239
|
+
onClick: () => {
|
|
240
|
+
setCancelReason("");
|
|
241
|
+
setCancelDialogOpen(true);
|
|
242
|
+
},
|
|
243
|
+
children: "Cancel Booking"
|
|
244
|
+
}
|
|
245
|
+
)
|
|
246
|
+
] })
|
|
247
|
+
] })
|
|
248
|
+
] }),
|
|
249
|
+
/* @__PURE__ */ jsx(Dialog, { open: acceptDialogOpen, onOpenChange: setAcceptDialogOpen, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
250
|
+
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
251
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "Accept New Time" }),
|
|
252
|
+
/* @__PURE__ */ jsxs(DialogDescription, { children: [
|
|
253
|
+
"Confirm you want to accept",
|
|
254
|
+
" ",
|
|
255
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-foreground", children: appointment.date }),
|
|
256
|
+
" ",
|
|
257
|
+
"from",
|
|
258
|
+
" ",
|
|
259
|
+
/* @__PURE__ */ jsxs("span", { className: "font-medium text-foreground", children: [
|
|
260
|
+
appointment.timeStart,
|
|
261
|
+
" \u2013 ",
|
|
262
|
+
appointment.timeEnd
|
|
263
|
+
] }),
|
|
264
|
+
" ",
|
|
265
|
+
"as your new appointment time. Your advisor will be notified."
|
|
266
|
+
] })
|
|
267
|
+
] }),
|
|
268
|
+
/* @__PURE__ */ jsxs(DialogFooter, { children: [
|
|
269
|
+
/* @__PURE__ */ jsx(DialogClose, { render: /* @__PURE__ */ jsx(Button, { variant: "outline" }), children: "Keep Waiting" }),
|
|
270
|
+
/* @__PURE__ */ jsx(
|
|
271
|
+
Button,
|
|
272
|
+
{
|
|
273
|
+
onClick: () => {
|
|
274
|
+
onAcceptReschedule == null ? void 0 : onAcceptReschedule();
|
|
275
|
+
setAcceptDialogOpen(false);
|
|
276
|
+
},
|
|
277
|
+
children: "Accept New Time"
|
|
278
|
+
}
|
|
279
|
+
)
|
|
280
|
+
] })
|
|
281
|
+
] }) }),
|
|
282
|
+
/* @__PURE__ */ jsx(Dialog, { open: calendarDialogOpen, onOpenChange: setCalendarDialogOpen, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
283
|
+
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
284
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "Add to Google Calendar" }),
|
|
285
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: "You'll be taken to Google Calendar to save this appointment. Make sure you're signed in to the correct account." })
|
|
286
|
+
] }),
|
|
287
|
+
/* @__PURE__ */ jsxs(DialogFooter, { children: [
|
|
288
|
+
/* @__PURE__ */ jsx(DialogClose, { render: /* @__PURE__ */ jsx(Button, { variant: "outline" }), children: "Cancel" }),
|
|
289
|
+
/* @__PURE__ */ jsxs(
|
|
290
|
+
Button,
|
|
291
|
+
{
|
|
292
|
+
className: "gap-1.5",
|
|
293
|
+
onClick: () => {
|
|
294
|
+
window.open(appointment.calendarLink, "_blank");
|
|
295
|
+
setCalendarDialogOpen(false);
|
|
296
|
+
},
|
|
297
|
+
children: [
|
|
298
|
+
/* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
299
|
+
"Open Google Calendar"
|
|
300
|
+
]
|
|
301
|
+
}
|
|
302
|
+
)
|
|
303
|
+
] })
|
|
304
|
+
] }) }),
|
|
305
|
+
/* @__PURE__ */ jsx(
|
|
306
|
+
Dialog,
|
|
307
|
+
{
|
|
308
|
+
open: rescheduleDialogOpen,
|
|
309
|
+
onOpenChange: (next) => {
|
|
310
|
+
if (!next) resetRescheduleForm();
|
|
311
|
+
setRescheduleDialogOpen(next);
|
|
312
|
+
},
|
|
313
|
+
children: /* @__PURE__ */ jsxs(DialogContent, { size: "2xl", children: [
|
|
314
|
+
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
315
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "Request Reschedule" }),
|
|
316
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: "Choose your preferred date and time. Your advisor will review the request and confirm a new slot." })
|
|
317
|
+
] }),
|
|
318
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
319
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
320
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: "Current booking" }),
|
|
321
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 border border-border bg-muted/30 px-3 py-2.5 text-sm text-muted-foreground", children: [
|
|
322
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5", children: [
|
|
323
|
+
/* @__PURE__ */ jsx(CalendarIcon, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
324
|
+
appointment.date
|
|
325
|
+
] }),
|
|
326
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5", children: [
|
|
327
|
+
/* @__PURE__ */ jsx(Clock, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
328
|
+
appointment.timeStart,
|
|
329
|
+
" \u2013 ",
|
|
330
|
+
appointment.timeEnd
|
|
331
|
+
] })
|
|
332
|
+
] })
|
|
333
|
+
] }),
|
|
334
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[auto_1fr] items-start gap-5", children: [
|
|
335
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
336
|
+
/* @__PURE__ */ jsx(Label, { children: "Preferred date" }),
|
|
337
|
+
/* @__PURE__ */ jsx(
|
|
338
|
+
Calendar,
|
|
339
|
+
{
|
|
340
|
+
mode: "single",
|
|
341
|
+
selected: rescheduleDate,
|
|
342
|
+
onSelect: (d) => {
|
|
343
|
+
setRescheduleDate(d);
|
|
344
|
+
setRescheduleSlot(void 0);
|
|
345
|
+
},
|
|
346
|
+
captionLayout: "label",
|
|
347
|
+
fromDate: /* @__PURE__ */ new Date(),
|
|
348
|
+
disabled: { before: /* @__PURE__ */ new Date() },
|
|
349
|
+
className: "border border-border"
|
|
350
|
+
}
|
|
351
|
+
)
|
|
352
|
+
] }),
|
|
353
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4", children: hasSlotsData ? rescheduleDate ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
354
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-semibold", children: "Preferred time" }),
|
|
355
|
+
/* @__PURE__ */ jsx(
|
|
356
|
+
AppointmentSlotSection,
|
|
357
|
+
{
|
|
358
|
+
label: "Morning",
|
|
359
|
+
slots: amSlots,
|
|
360
|
+
selectedSlotId: rescheduleSlot == null ? void 0 : rescheduleSlot.id,
|
|
361
|
+
onSelect: setRescheduleSlot
|
|
362
|
+
}
|
|
363
|
+
),
|
|
364
|
+
/* @__PURE__ */ jsx(
|
|
365
|
+
AppointmentSlotSection,
|
|
366
|
+
{
|
|
367
|
+
label: "Afternoon",
|
|
368
|
+
slots: pmSlots,
|
|
369
|
+
selectedSlotId: rescheduleSlot == null ? void 0 : rescheduleSlot.id,
|
|
370
|
+
onSelect: setRescheduleSlot
|
|
371
|
+
}
|
|
372
|
+
)
|
|
373
|
+
] }) : /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col items-center justify-center gap-2 py-8 text-center", children: [
|
|
374
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-semibold", children: "Preferred time" }),
|
|
375
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Pick a date on the left to see available slots." })
|
|
376
|
+
] }) : null })
|
|
377
|
+
] }),
|
|
378
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
379
|
+
/* @__PURE__ */ jsxs(Label, { htmlFor: "reschedule-note", children: [
|
|
380
|
+
"Note",
|
|
381
|
+
" ",
|
|
382
|
+
/* @__PURE__ */ jsx("span", { className: "font-normal text-muted-foreground", children: "(optional)" })
|
|
383
|
+
] }),
|
|
384
|
+
/* @__PURE__ */ jsx(
|
|
385
|
+
Textarea,
|
|
386
|
+
{
|
|
387
|
+
id: "reschedule-note",
|
|
388
|
+
placeholder: "e.g. I have a conflict at this time and would like to move to a later slot\u2026",
|
|
389
|
+
value: rescheduleNote,
|
|
390
|
+
onChange: (e) => setRescheduleNote(e.target.value),
|
|
391
|
+
className: "w-full resize-none",
|
|
392
|
+
rows: 2
|
|
393
|
+
}
|
|
394
|
+
)
|
|
395
|
+
] }),
|
|
396
|
+
/* @__PURE__ */ jsxs(DialogFooter, { children: [
|
|
397
|
+
/* @__PURE__ */ jsx(DialogClose, { render: /* @__PURE__ */ jsx(Button, { variant: "outline" }), children: "Cancel" }),
|
|
398
|
+
/* @__PURE__ */ jsx(
|
|
399
|
+
Button,
|
|
400
|
+
{
|
|
401
|
+
disabled: !canSubmitReschedule,
|
|
402
|
+
onClick: () => {
|
|
403
|
+
onReschedule == null ? void 0 : onReschedule(rescheduleDate, rescheduleSlot, rescheduleNote);
|
|
404
|
+
resetRescheduleForm();
|
|
405
|
+
setRescheduleDialogOpen(false);
|
|
406
|
+
},
|
|
407
|
+
children: "Submit Request"
|
|
408
|
+
}
|
|
409
|
+
)
|
|
410
|
+
] })
|
|
411
|
+
] })
|
|
412
|
+
}
|
|
413
|
+
),
|
|
414
|
+
/* @__PURE__ */ jsx(
|
|
415
|
+
Dialog,
|
|
416
|
+
{
|
|
417
|
+
open: cancelDialogOpen,
|
|
418
|
+
onOpenChange: (next) => {
|
|
419
|
+
if (!next) setCancelReason("");
|
|
420
|
+
setCancelDialogOpen(next);
|
|
421
|
+
},
|
|
422
|
+
children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
423
|
+
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
424
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "Cancel Booking" }),
|
|
425
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: "Are you sure you want to cancel this appointment? Your advisor will be notified. This action cannot be undone." })
|
|
426
|
+
] }),
|
|
427
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
428
|
+
/* @__PURE__ */ jsxs(Label, { htmlFor: "cancel-reason", children: [
|
|
429
|
+
"Reason",
|
|
430
|
+
" ",
|
|
431
|
+
/* @__PURE__ */ jsx("span", { className: "font-normal text-muted-foreground", children: "(optional)" })
|
|
432
|
+
] }),
|
|
433
|
+
/* @__PURE__ */ jsx(
|
|
434
|
+
Textarea,
|
|
435
|
+
{
|
|
436
|
+
id: "cancel-reason",
|
|
437
|
+
placeholder: "e.g. I need to reschedule due to a conflict\u2026",
|
|
438
|
+
value: cancelReason,
|
|
439
|
+
onChange: (e) => setCancelReason(e.target.value),
|
|
440
|
+
className: "w-full resize-none",
|
|
441
|
+
rows: 2
|
|
442
|
+
}
|
|
443
|
+
)
|
|
444
|
+
] }),
|
|
445
|
+
/* @__PURE__ */ jsxs(DialogFooter, { children: [
|
|
446
|
+
/* @__PURE__ */ jsx(DialogClose, { render: /* @__PURE__ */ jsx(Button, { variant: "outline" }), children: "Keep Booking" }),
|
|
447
|
+
/* @__PURE__ */ jsx(
|
|
448
|
+
Button,
|
|
449
|
+
{
|
|
450
|
+
variant: "destructive",
|
|
451
|
+
onClick: () => {
|
|
452
|
+
onCancel == null ? void 0 : onCancel(cancelReason);
|
|
453
|
+
setCancelReason("");
|
|
454
|
+
setCancelDialogOpen(false);
|
|
455
|
+
},
|
|
456
|
+
children: "Cancel Booking"
|
|
457
|
+
}
|
|
458
|
+
)
|
|
459
|
+
] })
|
|
460
|
+
] })
|
|
461
|
+
}
|
|
462
|
+
)
|
|
463
|
+
] });
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export {
|
|
467
|
+
AppointmentUpcomingCard
|
|
468
|
+
};
|
|
@@ -6,6 +6,9 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
Input
|
|
8
8
|
} from "./chunk-GYMYRIZP.mjs";
|
|
9
|
+
import {
|
|
10
|
+
Button
|
|
11
|
+
} from "./chunk-XREGSKX3.mjs";
|
|
9
12
|
import {
|
|
10
13
|
cn
|
|
11
14
|
} from "./chunk-VLQZANBF.mjs";
|
|
@@ -65,15 +68,16 @@ function ColorSwatch({
|
|
|
65
68
|
className
|
|
66
69
|
}) {
|
|
67
70
|
return /* @__PURE__ */ jsx(
|
|
68
|
-
|
|
71
|
+
Button,
|
|
69
72
|
{
|
|
70
73
|
type: "button",
|
|
74
|
+
variant: "ghost",
|
|
71
75
|
title: color,
|
|
72
76
|
"aria-label": `Select color ${color}`,
|
|
73
77
|
"aria-pressed": selected,
|
|
74
78
|
onClick: () => onClick == null ? void 0 : onClick(color),
|
|
75
79
|
className: cn(
|
|
76
|
-
"relative shrink-0 transition-all outline-none shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]",
|
|
80
|
+
"relative shrink-0 p-0 transition-all outline-none shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]",
|
|
77
81
|
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
78
82
|
size === "md" ? "size-7" : "size-5",
|
|
79
83
|
selected && "ring-2 ring-foreground ring-offset-1 ring-offset-background",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KanbanColumn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R3VSPKNP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ToggleGroup,
|
|
6
6
|
ToggleGroupItem
|
|
@@ -8,6 +8,9 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
Input
|
|
10
10
|
} from "./chunk-GYMYRIZP.mjs";
|
|
11
|
+
import {
|
|
12
|
+
Button
|
|
13
|
+
} from "./chunk-XREGSKX3.mjs";
|
|
11
14
|
import {
|
|
12
15
|
cn
|
|
13
16
|
} from "./chunk-VLQZANBF.mjs";
|
|
@@ -36,10 +39,13 @@ function Toolbar({
|
|
|
36
39
|
}
|
|
37
40
|
),
|
|
38
41
|
searchValue && /* @__PURE__ */ jsx(
|
|
39
|
-
|
|
42
|
+
Button,
|
|
40
43
|
{
|
|
44
|
+
type: "button",
|
|
45
|
+
variant: "ghost",
|
|
46
|
+
size: "icon",
|
|
41
47
|
onClick: () => onSearchChange(""),
|
|
42
|
-
className: "absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",
|
|
48
|
+
className: "absolute right-2 top-1/2 size-6 -translate-y-1/2 text-muted-foreground hover:text-foreground",
|
|
43
49
|
"aria-label": "Clear search",
|
|
44
50
|
children: /* @__PURE__ */ jsx(X, { className: "size-3.5" })
|
|
45
51
|
}
|
|
@@ -62,8 +68,11 @@ function Toolbar({
|
|
|
62
68
|
}
|
|
63
69
|
),
|
|
64
70
|
onRefresh && /* @__PURE__ */ jsx(
|
|
65
|
-
|
|
71
|
+
Button,
|
|
66
72
|
{
|
|
73
|
+
type: "button",
|
|
74
|
+
variant: "ghost",
|
|
75
|
+
size: "icon",
|
|
67
76
|
onClick: onRefresh,
|
|
68
77
|
className: "ml-auto text-muted-foreground hover:text-foreground",
|
|
69
78
|
"aria-label": "Refresh board",
|