@wealthx/shadcn 1.2.1 → 1.3.0
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 +203 -150
- package/CHANGELOG.md +29 -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-SYOD63OZ.mjs → chunk-5FQIKDKP.mjs} +6 -6
- 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-WOEHFRGB.mjs → chunk-BDYZCBRT.mjs} +4 -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-KUDCQ4FI.mjs → chunk-DUJTAXMH.mjs} +9 -4
- package/dist/{chunk-GGM2UYGG.mjs → chunk-EBXQWIYG.mjs} +10 -4
- package/dist/{chunk-PMB3A7V3.mjs → chunk-EI5F6FMT.mjs} +1 -1
- package/dist/chunk-EWRB4PAD.mjs +468 -0
- package/dist/chunk-FAKPBKLT.mjs +253 -0
- package/dist/chunk-FNQXOAYJ.mjs +169 -0
- package/dist/{chunk-4CX4SBRO.mjs → chunk-GHC7LLUX.mjs} +14 -5
- package/dist/chunk-HBZLGDIN.mjs +507 -0
- package/dist/{chunk-SIZMLSRU.mjs → chunk-HISNT2MG.mjs} +8 -6
- package/dist/{chunk-PR6V5XKM.mjs → chunk-HVY6KCCF.mjs} +7 -4
- package/dist/chunk-I3RZS7V2.mjs +136 -0
- package/dist/chunk-IAE3F7DR.mjs +1962 -0
- package/dist/{chunk-ZRO5JO3H.mjs → chunk-IHMFS7NZ.mjs} +81 -84
- 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-CSDO6VBW.mjs → chunk-LBMRIB3G.mjs} +10 -10
- 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-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-3WMX6KWS.mjs → chunk-PU4YZQXV.mjs} +11 -12
- 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-U4NDAF2P.mjs +207 -0
- package/dist/{chunk-DOH3EHX7.mjs → chunk-U5X52X37.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/chunk-ZC45IGZO.mjs +388 -0
- package/dist/components/ui/add-column-modal.js +42 -14
- package/dist/components/ui/add-column-modal.mjs +4 -4
- 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 +497 -0
- package/dist/components/ui/advisor-card.mjs +13 -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 +547 -0
- package/dist/components/ui/color-picker.mjs +24 -0
- package/dist/components/ui/data-table.js +182 -129
- 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/form-primitives.js +4 -4
- package/dist/components/ui/form-primitives.mjs +3 -3
- 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 +1371 -1267
- package/dist/components/ui/opportunity-edit-modals.mjs +10 -10
- package/dist/components/ui/opportunity-summary-tab.js +2748 -2161
- package/dist/components/ui/opportunity-summary-tab.mjs +16 -16
- 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 +209 -195
- package/dist/components/ui/pipeline-board.mjs +10 -8
- package/dist/components/ui/pipeline-dialogs.js +118 -69
- package/dist/components/ui/pipeline-dialogs.mjs +8 -7
- 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 +679 -0
- package/dist/components/ui/sidebar-nav.mjs +14 -0
- package/dist/components/ui/stage-timeline.js +6 -6
- package/dist/components/ui/stage-timeline.mjs +3 -3
- package/dist/components/ui/stepper.js +283 -0
- package/dist/components/ui/stepper.mjs +18 -0
- package/dist/components/ui/toggle-group.js +4 -4
- package/dist/components/ui/toggle-group.mjs +2 -2
- package/dist/components/ui/toggle.js +4 -4
- package/dist/components/ui/toggle.mjs +1 -1
- 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 +12927 -8522
- package/dist/index.mjs +288 -190
- package/dist/lib/typography.js +10 -10
- package/dist/lib/typography.mjs +1 -1
- package/dist/styles.css +1 -1
- package/package.json +86 -1
- package/src/components/index.tsx +146 -0
- 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 +227 -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 +309 -0
- package/src/components/ui/data-table.tsx +117 -83
- 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 +516 -0
- package/src/components/ui/stepper.tsx +347 -0
- package/src/components/ui/toggle.tsx +4 -4
- 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/lib/typography.ts +11 -11
- package/src/styles/globals.css +36 -34
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +17 -0
- package/dist/chunk-PG6K5XEC.mjs +0 -475
- package/dist/chunk-WA6O6EUR.mjs +0 -1885
- package/dist/chunk-WNGWBVLV.mjs +0 -148
- 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
|
+
};
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
SelectItem,
|
|
5
5
|
SelectTrigger
|
|
6
6
|
} from "./chunk-7PYJD5JI.mjs";
|
|
7
|
-
import {
|
|
8
|
-
Separator
|
|
9
|
-
} from "./chunk-FH6QVUVZ.mjs";
|
|
10
7
|
import {
|
|
11
8
|
Label
|
|
12
9
|
} from "./chunk-NSLMILBT.mjs";
|
|
10
|
+
import {
|
|
11
|
+
Separator
|
|
12
|
+
} from "./chunk-FH6QVUVZ.mjs";
|
|
13
13
|
import {
|
|
14
14
|
Input
|
|
15
15
|
} from "./chunk-GYMYRIZP.mjs";
|
|
@@ -19,11 +19,10 @@ import {
|
|
|
19
19
|
DialogFooter,
|
|
20
20
|
DialogHeader,
|
|
21
21
|
DialogTitle
|
|
22
|
-
} from "./chunk-
|
|
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,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";
|
|
@@ -5,9 +5,11 @@ import {
|
|
|
5
5
|
DATASET_ALPHAS,
|
|
6
6
|
DoughnutLegendRow,
|
|
7
7
|
FALLBACK_PRIMARY,
|
|
8
|
-
formatAbbrev,
|
|
9
8
|
hexToRgba
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M3FV7LOK.mjs";
|
|
10
|
+
import {
|
|
11
|
+
formatCurrencyAbbrev
|
|
12
|
+
} from "./chunk-MN5NYQCL.mjs";
|
|
11
13
|
import {
|
|
12
14
|
Empty,
|
|
13
15
|
EmptyDescription
|
|
@@ -17,7 +19,7 @@ import {
|
|
|
17
19
|
CardContent,
|
|
18
20
|
CardHeader,
|
|
19
21
|
CardTitle
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-C7CQJNMR.mjs";
|
|
21
23
|
import {
|
|
22
24
|
useThemeVars
|
|
23
25
|
} from "./chunk-FEZKMUCF.mjs";
|
|
@@ -96,7 +98,7 @@ function TransactionsExpenseCategoriesDoughnutChart({
|
|
|
96
98
|
label: (ctx) => {
|
|
97
99
|
const val = ctx.raw;
|
|
98
100
|
const pct = total > 0 ? `${(val / total * 100).toFixed(1)}%` : "0%";
|
|
99
|
-
return ` ${ctx.label}: ${
|
|
101
|
+
return ` ${ctx.label}: ${formatCurrencyAbbrev(val)} (${pct})`;
|
|
100
102
|
}
|
|
101
103
|
}
|
|
102
104
|
}
|
|
@@ -110,7 +112,7 @@ function TransactionsExpenseCategoriesDoughnutChart({
|
|
|
110
112
|
className: cn("w-full py-4 sm:py-6 gap-2", className),
|
|
111
113
|
style: { maxWidth: width, fontFamily },
|
|
112
114
|
children: [
|
|
113
|
-
/* @__PURE__ */ jsx(CardHeader, { className: "px-3 sm:px-6", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-
|
|
115
|
+
/* @__PURE__ */ jsx(CardHeader, { className: "px-3 sm:px-6", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-xs font-semibold uppercase tracking-wide", children: title }) }),
|
|
114
116
|
/* @__PURE__ */ jsx(CardContent, { className: "px-3 sm:px-6", children: isLoading ? /* @__PURE__ */ jsx(Skeleton, { style: { height, width: "100%" } }) : !hasData ? /* @__PURE__ */ jsx(Empty, { className: "flex-none p-4", style: { height }, children: /* @__PURE__ */ jsx(EmptyDescription, { children: "No data available" }) }) : /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
115
117
|
/* @__PURE__ */ jsxs("div", { style: { height, width: "100%", position: "relative" }, children: [
|
|
116
118
|
/* @__PURE__ */ jsx(
|
|
@@ -135,7 +137,7 @@ function TransactionsExpenseCategoriesDoughnutChart({
|
|
|
135
137
|
pointerEvents: "none"
|
|
136
138
|
},
|
|
137
139
|
children: [
|
|
138
|
-
/* @__PURE__ */ jsx("div", { className: "text-base font-semibold leading-tight", children:
|
|
140
|
+
/* @__PURE__ */ jsx("div", { className: "text-base font-semibold leading-tight", children: formatCurrencyAbbrev(total) }),
|
|
139
141
|
/* @__PURE__ */ jsx("div", { className: "text-[11px] text-muted-foreground leading-none mt-1", children: "Total" })
|
|
140
142
|
]
|
|
141
143
|
}
|