@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,283 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Select,
|
|
3
|
+
SelectContent,
|
|
4
|
+
SelectItem,
|
|
5
|
+
SelectTrigger,
|
|
6
|
+
SelectValue
|
|
7
|
+
} from "./chunk-7PYJD5JI.mjs";
|
|
8
|
+
import {
|
|
9
|
+
Button,
|
|
10
|
+
buttonVariants
|
|
11
|
+
} from "./chunk-XREGSKX3.mjs";
|
|
12
|
+
import {
|
|
13
|
+
cn
|
|
14
|
+
} from "./chunk-VLQZANBF.mjs";
|
|
15
|
+
import {
|
|
16
|
+
__objRest,
|
|
17
|
+
__spreadProps,
|
|
18
|
+
__spreadValues
|
|
19
|
+
} from "./chunk-FWCSY2DS.mjs";
|
|
20
|
+
|
|
21
|
+
// src/components/ui/pagination.tsx
|
|
22
|
+
import {
|
|
23
|
+
ChevronLeftIcon,
|
|
24
|
+
ChevronRightIcon,
|
|
25
|
+
ChevronsLeftIcon,
|
|
26
|
+
ChevronsRightIcon,
|
|
27
|
+
MoreHorizontalIcon
|
|
28
|
+
} from "lucide-react";
|
|
29
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
|
+
function Pagination(_a) {
|
|
31
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
32
|
+
return /* @__PURE__ */ jsx(
|
|
33
|
+
"nav",
|
|
34
|
+
__spreadValues({
|
|
35
|
+
"aria-label": "pagination",
|
|
36
|
+
className: cn("mx-auto flex w-full justify-center", className),
|
|
37
|
+
"data-slot": "pagination",
|
|
38
|
+
role: "navigation"
|
|
39
|
+
}, props)
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function PaginationContent(_a) {
|
|
43
|
+
var _b = _a, {
|
|
44
|
+
className
|
|
45
|
+
} = _b, props = __objRest(_b, [
|
|
46
|
+
"className"
|
|
47
|
+
]);
|
|
48
|
+
return /* @__PURE__ */ jsx(
|
|
49
|
+
"ul",
|
|
50
|
+
__spreadValues({
|
|
51
|
+
className: cn("flex flex-row items-center gap-1", className),
|
|
52
|
+
"data-slot": "pagination-content"
|
|
53
|
+
}, props)
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
function PaginationItem(_a) {
|
|
57
|
+
var props = __objRest(_a, []);
|
|
58
|
+
return /* @__PURE__ */ jsx("li", __spreadValues({ "data-slot": "pagination-item" }, props));
|
|
59
|
+
}
|
|
60
|
+
function PaginationLink(_a) {
|
|
61
|
+
var _b = _a, {
|
|
62
|
+
className,
|
|
63
|
+
isActive,
|
|
64
|
+
size = "icon"
|
|
65
|
+
} = _b, props = __objRest(_b, [
|
|
66
|
+
"className",
|
|
67
|
+
"isActive",
|
|
68
|
+
"size"
|
|
69
|
+
]);
|
|
70
|
+
return (
|
|
71
|
+
// eslint-disable-next-line jsx-a11y/anchor-has-content -- children passed via props spread
|
|
72
|
+
/* @__PURE__ */ jsx(
|
|
73
|
+
"a",
|
|
74
|
+
__spreadValues({
|
|
75
|
+
"aria-current": isActive ? "page" : void 0,
|
|
76
|
+
className: cn(
|
|
77
|
+
buttonVariants({
|
|
78
|
+
variant: isActive ? "outline" : "ghost",
|
|
79
|
+
size
|
|
80
|
+
}),
|
|
81
|
+
className
|
|
82
|
+
),
|
|
83
|
+
"data-active": isActive,
|
|
84
|
+
"data-slot": "pagination-link"
|
|
85
|
+
}, props)
|
|
86
|
+
)
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
function PaginationPrevious(_a) {
|
|
90
|
+
var _b = _a, {
|
|
91
|
+
className
|
|
92
|
+
} = _b, props = __objRest(_b, [
|
|
93
|
+
"className"
|
|
94
|
+
]);
|
|
95
|
+
return /* @__PURE__ */ jsxs(
|
|
96
|
+
PaginationLink,
|
|
97
|
+
__spreadProps(__spreadValues({
|
|
98
|
+
"aria-label": "Go to previous page",
|
|
99
|
+
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
100
|
+
size: "default"
|
|
101
|
+
}, props), {
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ jsx(ChevronLeftIcon, {}),
|
|
104
|
+
/* @__PURE__ */ jsx("span", { className: "hidden sm:block", children: "Previous" })
|
|
105
|
+
]
|
|
106
|
+
})
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
function PaginationNext(_a) {
|
|
110
|
+
var _b = _a, {
|
|
111
|
+
className
|
|
112
|
+
} = _b, props = __objRest(_b, [
|
|
113
|
+
"className"
|
|
114
|
+
]);
|
|
115
|
+
return /* @__PURE__ */ jsxs(
|
|
116
|
+
PaginationLink,
|
|
117
|
+
__spreadProps(__spreadValues({
|
|
118
|
+
"aria-label": "Go to next page",
|
|
119
|
+
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
120
|
+
size: "default"
|
|
121
|
+
}, props), {
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ jsx("span", { className: "hidden sm:block", children: "Next" }),
|
|
124
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, {})
|
|
125
|
+
]
|
|
126
|
+
})
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
function PaginationEllipsis(_a) {
|
|
130
|
+
var _b = _a, {
|
|
131
|
+
className
|
|
132
|
+
} = _b, props = __objRest(_b, [
|
|
133
|
+
"className"
|
|
134
|
+
]);
|
|
135
|
+
return /* @__PURE__ */ jsxs(
|
|
136
|
+
"span",
|
|
137
|
+
__spreadProps(__spreadValues({
|
|
138
|
+
"aria-hidden": true,
|
|
139
|
+
className: cn("flex size-9 items-center justify-center", className),
|
|
140
|
+
"data-slot": "pagination-ellipsis"
|
|
141
|
+
}, props), {
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ jsx(MoreHorizontalIcon, { className: "size-4" }),
|
|
144
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
|
|
145
|
+
]
|
|
146
|
+
})
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
function PaginationNavButtons({
|
|
150
|
+
hasPrev,
|
|
151
|
+
hasNext,
|
|
152
|
+
onFirst,
|
|
153
|
+
onPrev,
|
|
154
|
+
onNext,
|
|
155
|
+
onLast
|
|
156
|
+
}) {
|
|
157
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
158
|
+
/* @__PURE__ */ jsx(
|
|
159
|
+
Button,
|
|
160
|
+
{
|
|
161
|
+
"aria-label": "Go to first page",
|
|
162
|
+
disabled: !hasPrev,
|
|
163
|
+
onClick: onFirst,
|
|
164
|
+
size: "icon-sm",
|
|
165
|
+
variant: "outline",
|
|
166
|
+
children: /* @__PURE__ */ jsx(ChevronsLeftIcon, { className: "size-4" })
|
|
167
|
+
}
|
|
168
|
+
),
|
|
169
|
+
/* @__PURE__ */ jsx(
|
|
170
|
+
Button,
|
|
171
|
+
{
|
|
172
|
+
"aria-label": "Go to previous page",
|
|
173
|
+
disabled: !hasPrev,
|
|
174
|
+
onClick: onPrev,
|
|
175
|
+
size: "icon-sm",
|
|
176
|
+
variant: "outline",
|
|
177
|
+
children: /* @__PURE__ */ jsx(ChevronLeftIcon, { className: "size-4" })
|
|
178
|
+
}
|
|
179
|
+
),
|
|
180
|
+
/* @__PURE__ */ jsx(
|
|
181
|
+
Button,
|
|
182
|
+
{
|
|
183
|
+
"aria-label": "Go to next page",
|
|
184
|
+
disabled: !hasNext,
|
|
185
|
+
onClick: onNext,
|
|
186
|
+
size: "icon-sm",
|
|
187
|
+
variant: "outline",
|
|
188
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4" })
|
|
189
|
+
}
|
|
190
|
+
),
|
|
191
|
+
/* @__PURE__ */ jsx(
|
|
192
|
+
Button,
|
|
193
|
+
{
|
|
194
|
+
"aria-label": "Go to last page",
|
|
195
|
+
disabled: !hasNext,
|
|
196
|
+
onClick: onLast,
|
|
197
|
+
size: "icon-sm",
|
|
198
|
+
variant: "outline",
|
|
199
|
+
children: /* @__PURE__ */ jsx(ChevronsRightIcon, { className: "size-4" })
|
|
200
|
+
}
|
|
201
|
+
)
|
|
202
|
+
] });
|
|
203
|
+
}
|
|
204
|
+
function TablePagination({
|
|
205
|
+
page,
|
|
206
|
+
pageCount,
|
|
207
|
+
pageSize,
|
|
208
|
+
pageSizeOptions = [10, 20, 30, 50],
|
|
209
|
+
onPageChange,
|
|
210
|
+
onPageSizeChange,
|
|
211
|
+
selectedCount,
|
|
212
|
+
totalCount,
|
|
213
|
+
className
|
|
214
|
+
}) {
|
|
215
|
+
return /* @__PURE__ */ jsxs(
|
|
216
|
+
"div",
|
|
217
|
+
{
|
|
218
|
+
className: cn("flex items-center gap-4 py-4", className),
|
|
219
|
+
"data-slot": "table-pagination",
|
|
220
|
+
children: [
|
|
221
|
+
selectedCount != null && selectedCount > 0 && totalCount != null && /* @__PURE__ */ jsxs("span", { className: "text-body-small text-muted-foreground", children: [
|
|
222
|
+
selectedCount,
|
|
223
|
+
" of ",
|
|
224
|
+
totalCount,
|
|
225
|
+
" row(s) selected."
|
|
226
|
+
] }),
|
|
227
|
+
/* @__PURE__ */ jsxs("div", { className: "ml-auto flex items-center gap-6", children: [
|
|
228
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
229
|
+
/* @__PURE__ */ jsx("span", { className: "text-body-small text-muted-foreground whitespace-nowrap", children: "Rows per page" }),
|
|
230
|
+
/* @__PURE__ */ jsxs(
|
|
231
|
+
Select,
|
|
232
|
+
{
|
|
233
|
+
onValueChange: (value) => onPageSizeChange(Number(value)),
|
|
234
|
+
value: `${pageSize}`,
|
|
235
|
+
children: [
|
|
236
|
+
/* @__PURE__ */ jsx(
|
|
237
|
+
SelectTrigger,
|
|
238
|
+
{
|
|
239
|
+
"aria-label": "Rows per page",
|
|
240
|
+
className: "w-[70px]",
|
|
241
|
+
size: "sm",
|
|
242
|
+
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
243
|
+
}
|
|
244
|
+
),
|
|
245
|
+
/* @__PURE__ */ jsx(SelectContent, { children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx(SelectItem, { value: `${size}`, children: size }, size)) })
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
)
|
|
249
|
+
] }),
|
|
250
|
+
/* @__PURE__ */ jsxs("span", { className: "text-body-small text-muted-foreground whitespace-nowrap", children: [
|
|
251
|
+
"Page ",
|
|
252
|
+
page,
|
|
253
|
+
" of ",
|
|
254
|
+
pageCount
|
|
255
|
+
] }),
|
|
256
|
+
/* @__PURE__ */ jsx(
|
|
257
|
+
PaginationNavButtons,
|
|
258
|
+
{
|
|
259
|
+
hasNext: page < pageCount,
|
|
260
|
+
hasPrev: page > 1,
|
|
261
|
+
onFirst: () => onPageChange(1),
|
|
262
|
+
onLast: () => onPageChange(pageCount),
|
|
263
|
+
onNext: () => onPageChange(page + 1),
|
|
264
|
+
onPrev: () => onPageChange(page - 1)
|
|
265
|
+
}
|
|
266
|
+
)
|
|
267
|
+
] })
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export {
|
|
274
|
+
Pagination,
|
|
275
|
+
PaginationContent,
|
|
276
|
+
PaginationItem,
|
|
277
|
+
PaginationLink,
|
|
278
|
+
PaginationPrevious,
|
|
279
|
+
PaginationNext,
|
|
280
|
+
PaginationEllipsis,
|
|
281
|
+
PaginationNavButtons,
|
|
282
|
+
TablePagination
|
|
283
|
+
};
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Separator
|
|
3
|
-
} from "./chunk-FH6QVUVZ.mjs";
|
|
4
|
-
import {
|
|
5
|
-
Label
|
|
6
|
-
} from "./chunk-NSLMILBT.mjs";
|
|
7
1
|
import {
|
|
8
2
|
Select,
|
|
9
3
|
SelectContent,
|
|
10
4
|
SelectItem,
|
|
11
5
|
SelectTrigger
|
|
12
6
|
} from "./chunk-7PYJD5JI.mjs";
|
|
7
|
+
import {
|
|
8
|
+
Label
|
|
9
|
+
} from "./chunk-NSLMILBT.mjs";
|
|
10
|
+
import {
|
|
11
|
+
Separator
|
|
12
|
+
} from "./chunk-FH6QVUVZ.mjs";
|
|
13
|
+
import {
|
|
14
|
+
Input
|
|
15
|
+
} from "./chunk-GYMYRIZP.mjs";
|
|
13
16
|
import {
|
|
14
17
|
Dialog,
|
|
15
18
|
DialogContent,
|
|
16
19
|
DialogFooter,
|
|
17
20
|
DialogHeader,
|
|
18
21
|
DialogTitle
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
Input
|
|
22
|
-
} from "./chunk-GYMYRIZP.mjs";
|
|
22
|
+
} from "./chunk-6DZEXFNB.mjs";
|
|
23
23
|
import {
|
|
24
|
-
Button
|
|
25
|
-
|
|
26
|
-
} from "./chunk-2I5S2AMY.mjs";
|
|
24
|
+
Button
|
|
25
|
+
} from "./chunk-XREGSKX3.mjs";
|
|
27
26
|
import {
|
|
28
27
|
cn
|
|
29
28
|
} from "./chunk-VLQZANBF.mjs";
|
|
@@ -188,14 +187,14 @@ function AddColumnModal({
|
|
|
188
187
|
}
|
|
189
188
|
),
|
|
190
189
|
/* @__PURE__ */ jsx(
|
|
191
|
-
|
|
190
|
+
Button,
|
|
192
191
|
{
|
|
192
|
+
type: "button",
|
|
193
|
+
variant: "ghost",
|
|
194
|
+
size: "icon",
|
|
193
195
|
onClick: () => removeTask(task.id),
|
|
194
196
|
disabled: loading,
|
|
195
|
-
className:
|
|
196
|
-
buttonVariants({ variant: "ghost", size: "icon" }),
|
|
197
|
-
"size-9 shrink-0 text-muted-foreground hover:text-destructive"
|
|
198
|
-
),
|
|
197
|
+
className: "size-9 shrink-0 text-muted-foreground hover:text-destructive",
|
|
199
198
|
"aria-label": "Remove task",
|
|
200
199
|
children: /* @__PURE__ */ jsx(Trash2, { className: "size-4" })
|
|
201
200
|
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Avatar,
|
|
3
|
+
AvatarFallback,
|
|
4
|
+
AvatarImage
|
|
5
|
+
} from "./chunk-24FUO7TD.mjs";
|
|
6
|
+
import {
|
|
7
|
+
Badge
|
|
8
|
+
} from "./chunk-BKNFWEH2.mjs";
|
|
9
|
+
import {
|
|
10
|
+
Separator
|
|
11
|
+
} from "./chunk-FH6QVUVZ.mjs";
|
|
12
|
+
import {
|
|
13
|
+
Button
|
|
14
|
+
} from "./chunk-XREGSKX3.mjs";
|
|
15
|
+
|
|
16
|
+
// src/components/ui/advisor-card.tsx
|
|
17
|
+
import React from "react";
|
|
18
|
+
import {
|
|
19
|
+
Calendar,
|
|
20
|
+
CalendarCheck,
|
|
21
|
+
ChevronRight,
|
|
22
|
+
Mail,
|
|
23
|
+
MoreVertical,
|
|
24
|
+
Phone,
|
|
25
|
+
Plus
|
|
26
|
+
} from "lucide-react";
|
|
27
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
28
|
+
var STATUS_VARIANT = {
|
|
29
|
+
pending: "warning",
|
|
30
|
+
confirmed: "success",
|
|
31
|
+
cancelled: "destructive",
|
|
32
|
+
rescheduled: "info"
|
|
33
|
+
};
|
|
34
|
+
var STATUS_LABEL = {
|
|
35
|
+
pending: "Pending",
|
|
36
|
+
confirmed: "Confirmed",
|
|
37
|
+
cancelled: "Cancelled",
|
|
38
|
+
rescheduled: "Rescheduled"
|
|
39
|
+
};
|
|
40
|
+
var STRIP_BG = {
|
|
41
|
+
pending: "bg-warning/5",
|
|
42
|
+
confirmed: "bg-success/5",
|
|
43
|
+
cancelled: "bg-destructive/5",
|
|
44
|
+
rescheduled: "bg-info/5"
|
|
45
|
+
};
|
|
46
|
+
function AdvisorCard({
|
|
47
|
+
name,
|
|
48
|
+
role,
|
|
49
|
+
phone,
|
|
50
|
+
email,
|
|
51
|
+
companyName,
|
|
52
|
+
companyLogoUrl,
|
|
53
|
+
avatarInitials,
|
|
54
|
+
isPrimary = false,
|
|
55
|
+
appointments,
|
|
56
|
+
onRefer,
|
|
57
|
+
onMoreOptions,
|
|
58
|
+
onBookAppointment,
|
|
59
|
+
onViewAppointment
|
|
60
|
+
}) {
|
|
61
|
+
const hasAppointments = appointments !== void 0;
|
|
62
|
+
const appointmentList = appointments === null || Array.isArray(appointments) && appointments.length === 0 ? null : appointments;
|
|
63
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col border border-border bg-card", children: [
|
|
64
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4 p-4", children: [
|
|
65
|
+
/* @__PURE__ */ jsxs(Avatar, { className: "h-10 w-10 shrink-0", children: [
|
|
66
|
+
companyLogoUrl && /* @__PURE__ */ jsx(AvatarImage, { src: companyLogoUrl, alt: `${name} company logo` }),
|
|
67
|
+
/* @__PURE__ */ jsx(AvatarFallback, { className: "text-sm", children: avatarInitials != null ? avatarInitials : companyName ? companyName.split(" ").map((w) => w[0]).join("").slice(0, 2).toUpperCase() : name.slice(0, 2).toUpperCase() })
|
|
68
|
+
] }),
|
|
69
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
70
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-semibold leading-tight", children: name }),
|
|
71
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: role }),
|
|
72
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex flex-col gap-1", children: [
|
|
73
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-sm text-muted-foreground", children: [
|
|
74
|
+
/* @__PURE__ */ jsx(Phone, { className: "h-4 w-4 shrink-0" }),
|
|
75
|
+
/* @__PURE__ */ jsx("span", { children: phone })
|
|
76
|
+
] }),
|
|
77
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-sm text-muted-foreground", children: [
|
|
78
|
+
/* @__PURE__ */ jsx(Mail, { className: "h-4 w-4 shrink-0" }),
|
|
79
|
+
/* @__PURE__ */ jsx("span", { children: email })
|
|
80
|
+
] })
|
|
81
|
+
] })
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-1.5", children: [
|
|
84
|
+
isPrimary && /* @__PURE__ */ jsx(Badge, { variant: "success", children: "Primary" }),
|
|
85
|
+
/* @__PURE__ */ jsx(
|
|
86
|
+
Button,
|
|
87
|
+
{
|
|
88
|
+
variant: "ghost",
|
|
89
|
+
size: "icon",
|
|
90
|
+
className: "h-7 w-7",
|
|
91
|
+
onClick: onMoreOptions,
|
|
92
|
+
"aria-label": "More options",
|
|
93
|
+
children: /* @__PURE__ */ jsx(MoreVertical, { className: "h-4 w-4" })
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
] })
|
|
97
|
+
] }),
|
|
98
|
+
hasAppointments && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
99
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
100
|
+
appointmentList ? appointmentList.map((appt, i) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
101
|
+
i > 0 && /* @__PURE__ */ jsx(Separator, {}),
|
|
102
|
+
/* @__PURE__ */ jsxs(
|
|
103
|
+
"div",
|
|
104
|
+
{
|
|
105
|
+
className: `flex items-center gap-3 px-4 py-3 ${STRIP_BG[appt.status]}`,
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ jsx(CalendarCheck, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
|
|
108
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
109
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
110
|
+
/* @__PURE__ */ jsx(
|
|
111
|
+
Badge,
|
|
112
|
+
{
|
|
113
|
+
variant: STATUS_VARIANT[appt.status],
|
|
114
|
+
className: "text-[10px]",
|
|
115
|
+
children: STATUS_LABEL[appt.status]
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
appt.appointmentType && /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold", children: appt.appointmentType })
|
|
119
|
+
] }),
|
|
120
|
+
/* @__PURE__ */ jsxs("p", { className: "whitespace-nowrap text-sm text-muted-foreground", children: [
|
|
121
|
+
appt.date,
|
|
122
|
+
" \xB7 ",
|
|
123
|
+
appt.timeStart,
|
|
124
|
+
"\u2013",
|
|
125
|
+
appt.timeEnd
|
|
126
|
+
] })
|
|
127
|
+
] }),
|
|
128
|
+
onViewAppointment && /* @__PURE__ */ jsxs(
|
|
129
|
+
Button,
|
|
130
|
+
{
|
|
131
|
+
variant: "ghost",
|
|
132
|
+
size: "sm",
|
|
133
|
+
className: "h-7 shrink-0 gap-1 px-2 text-xs",
|
|
134
|
+
onClick: () => onViewAppointment(i),
|
|
135
|
+
children: [
|
|
136
|
+
"View",
|
|
137
|
+
/* @__PURE__ */ jsx(ChevronRight, { className: "h-3 w-3" })
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
] }, i)) : (
|
|
145
|
+
/* Empty state */
|
|
146
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 px-4 py-3", children: [
|
|
147
|
+
/* @__PURE__ */ jsx(Calendar, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
|
|
148
|
+
/* @__PURE__ */ jsx("p", { className: "flex-1 text-xs text-muted-foreground", children: "No upcoming appointments" })
|
|
149
|
+
] })
|
|
150
|
+
)
|
|
151
|
+
] }),
|
|
152
|
+
/* @__PURE__ */ jsx(Separator, {}),
|
|
153
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 px-4 py-3", children: [
|
|
154
|
+
onBookAppointment && /* @__PURE__ */ jsx(
|
|
155
|
+
Button,
|
|
156
|
+
{
|
|
157
|
+
variant: "outline-primary",
|
|
158
|
+
size: "sm",
|
|
159
|
+
className: "w-full",
|
|
160
|
+
onClick: onBookAppointment,
|
|
161
|
+
children: "Book Appointment"
|
|
162
|
+
}
|
|
163
|
+
),
|
|
164
|
+
onRefer && /* @__PURE__ */ jsxs(
|
|
165
|
+
Button,
|
|
166
|
+
{
|
|
167
|
+
variant: "outline",
|
|
168
|
+
size: "sm",
|
|
169
|
+
className: "w-full",
|
|
170
|
+
onClick: onRefer,
|
|
171
|
+
children: [
|
|
172
|
+
"Refer ",
|
|
173
|
+
name,
|
|
174
|
+
" to Others"
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
)
|
|
178
|
+
] })
|
|
179
|
+
] });
|
|
180
|
+
}
|
|
181
|
+
function AdvisorInviteCard({ onInvite }) {
|
|
182
|
+
return /* @__PURE__ */ jsxs(
|
|
183
|
+
Button,
|
|
184
|
+
{
|
|
185
|
+
variant: "ghost",
|
|
186
|
+
onClick: onInvite,
|
|
187
|
+
className: "flex h-auto w-full flex-col items-center justify-center gap-3 border border-dashed border-border bg-card p-8 text-center transition-colors hover:bg-muted/40",
|
|
188
|
+
children: [
|
|
189
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center border border-dashed border-muted-foreground/40", children: /* @__PURE__ */ jsx(Plus, { className: "h-5 w-5 text-muted-foreground" }) }),
|
|
190
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
191
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: "Add Another Advisor" }),
|
|
192
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Connect more advisors to your account" })
|
|
193
|
+
] })
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export {
|
|
200
|
+
AdvisorCard,
|
|
201
|
+
AdvisorInviteCard
|
|
202
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Avatar,
|
|
3
|
+
AvatarFallback
|
|
4
|
+
} from "./chunk-24FUO7TD.mjs";
|
|
5
|
+
import {
|
|
6
|
+
Button
|
|
7
|
+
} from "./chunk-XREGSKX3.mjs";
|
|
8
|
+
|
|
9
|
+
// src/components/ui/appointment-mini-card.tsx
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
var STATUS_BG = {
|
|
12
|
+
pending: "border-warning bg-warning/10",
|
|
13
|
+
confirmed: "border-success bg-success/10",
|
|
14
|
+
cancelled: "border-destructive bg-destructive/10 opacity-60",
|
|
15
|
+
rescheduled: "border-info bg-info/10"
|
|
16
|
+
};
|
|
17
|
+
function AppointmentMiniCard({
|
|
18
|
+
appointment,
|
|
19
|
+
onAccept,
|
|
20
|
+
onDecline,
|
|
21
|
+
onReschedule
|
|
22
|
+
}) {
|
|
23
|
+
const isConfirmed = appointment.status === "confirmed";
|
|
24
|
+
const isRescheduled = appointment.status === "rescheduled";
|
|
25
|
+
const isCancelled = appointment.status === "cancelled";
|
|
26
|
+
return /* @__PURE__ */ jsxs(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
className: `flex items-center gap-4 border px-5 py-4 ${STATUS_BG[appointment.status]}`,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ jsx(Avatar, { className: "h-10 w-10 shrink-0", children: /* @__PURE__ */ jsx(AvatarFallback, { className: "text-sm", children: appointment.clientAvatarInitials }) }),
|
|
32
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33
|
+
/* @__PURE__ */ jsx("p", { className: "truncate text-base font-semibold", children: appointment.clientName }),
|
|
34
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm text-muted-foreground", children: [
|
|
35
|
+
appointment.date,
|
|
36
|
+
" \xB7 ",
|
|
37
|
+
appointment.timeStart,
|
|
38
|
+
" \u2013 ",
|
|
39
|
+
appointment.timeEnd
|
|
40
|
+
] })
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
43
|
+
/* @__PURE__ */ jsx(
|
|
44
|
+
Button,
|
|
45
|
+
{
|
|
46
|
+
size: "sm",
|
|
47
|
+
disabled: isConfirmed || isCancelled,
|
|
48
|
+
onClick: onAccept,
|
|
49
|
+
children: "Accept"
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ jsx(
|
|
53
|
+
Button,
|
|
54
|
+
{
|
|
55
|
+
size: "sm",
|
|
56
|
+
variant: "outline",
|
|
57
|
+
disabled: isCancelled,
|
|
58
|
+
onClick: onDecline,
|
|
59
|
+
children: "Decline"
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ jsx(
|
|
63
|
+
Button,
|
|
64
|
+
{
|
|
65
|
+
size: "sm",
|
|
66
|
+
variant: "ghost",
|
|
67
|
+
disabled: isCancelled || isRescheduled,
|
|
68
|
+
onClick: onReschedule,
|
|
69
|
+
children: "Reschedule"
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
] })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export {
|
|
79
|
+
AppointmentMiniCard
|
|
80
|
+
};
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
FALLBACK_TICK,
|
|
12
12
|
formatTooltipDate,
|
|
13
13
|
hexToRgba
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-M3FV7LOK.mjs";
|
|
15
15
|
import {
|
|
16
16
|
Empty,
|
|
17
17
|
EmptyDescription
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
CardContent,
|
|
23
23
|
CardHeader,
|
|
24
24
|
CardTitle
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-C7CQJNMR.mjs";
|
|
26
26
|
import {
|
|
27
27
|
useThemeVars
|
|
28
28
|
} from "./chunk-FEZKMUCF.mjs";
|
|
@@ -47,7 +47,14 @@ import {
|
|
|
47
47
|
} from "chart.js";
|
|
48
48
|
import { Chart } from "react-chartjs-2";
|
|
49
49
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
50
|
-
ChartJS.register(
|
|
50
|
+
ChartJS.register(
|
|
51
|
+
CategoryScale,
|
|
52
|
+
LinearScale,
|
|
53
|
+
BarController,
|
|
54
|
+
BarElement,
|
|
55
|
+
Tooltip,
|
|
56
|
+
Legend
|
|
57
|
+
);
|
|
51
58
|
function IncomeBarChart({
|
|
52
59
|
incomeData,
|
|
53
60
|
title = "Income",
|
|
@@ -185,7 +192,7 @@ function IncomeBarChart({
|
|
|
185
192
|
style: { maxWidth: width, fontFamily },
|
|
186
193
|
children: [
|
|
187
194
|
/* @__PURE__ */ jsxs(CardHeader, { className: "px-3 sm:px-6", children: [
|
|
188
|
-
/* @__PURE__ */ jsx(CardTitle, { className: "text-
|
|
195
|
+
/* @__PURE__ */ jsx(CardTitle, { className: "text-xs font-semibold uppercase tracking-wide", children: title }),
|
|
189
196
|
/* @__PURE__ */ jsx(CardAction, { children: /* @__PURE__ */ jsx("div", { className: "flex gap-0.5 sm:gap-1", children: periods.map((p) => /* @__PURE__ */ jsx(
|
|
190
197
|
ChartPeriodButton,
|
|
191
198
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LeadCard,
|
|
3
3
|
OpportunityCard
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-K5A5L6T2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DropdownMenu,
|
|
7
7
|
DropdownMenuContent,
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
} from "./chunk-EFRENWEJ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
Badge
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BKNFWEH2.mjs";
|
|
15
15
|
import {
|
|
16
16
|
Spinner
|
|
17
17
|
} from "./chunk-7YAU5CY6.mjs";
|
|
18
18
|
import {
|
|
19
19
|
buttonVariants
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XREGSKX3.mjs";
|
|
21
21
|
import {
|
|
22
22
|
useThemeVars
|
|
23
23
|
} from "./chunk-FEZKMUCF.mjs";
|