@wealthx/shadcn 1.2.2 → 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 +200 -156
- package/CHANGELOG.md +22 -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-FNQXOAYJ.mjs +169 -0
- 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-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-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/{chunk-ZRSDX6OW.mjs → chunk-ZC45IGZO.mjs} +33 -30
- 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 +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 +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 +234 -95
- package/dist/components/ui/sidebar-nav.mjs +4 -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 +12899 -9343
- package/dist/index.mjs +256 -190
- package/dist/styles.css +1 -1
- package/package.json +71 -1
- package/src/components/index.tsx +114 -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 +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 +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 +36 -37
- 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-LLVQKSU3.mjs → chunk-GD4BJDJR.mjs} +3 -3
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
var __export = (target, all) => {
|
|
38
|
+
for (var name in all)
|
|
39
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
|
+
};
|
|
41
|
+
var __copyProps = (to, from, except, desc) => {
|
|
42
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
43
|
+
for (let key of __getOwnPropNames(from))
|
|
44
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
45
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
|
+
}
|
|
47
|
+
return to;
|
|
48
|
+
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
57
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
|
+
|
|
59
|
+
// src/components/ui/advisor-card.tsx
|
|
60
|
+
var advisor_card_exports = {};
|
|
61
|
+
__export(advisor_card_exports, {
|
|
62
|
+
AdvisorCard: () => AdvisorCard
|
|
63
|
+
});
|
|
64
|
+
module.exports = __toCommonJS(advisor_card_exports);
|
|
65
|
+
|
|
66
|
+
// src/components/ui/badge.tsx
|
|
67
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
68
|
+
|
|
69
|
+
// src/lib/utils.ts
|
|
70
|
+
var import_clsx = require("clsx");
|
|
71
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
72
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
73
|
+
extend: {
|
|
74
|
+
classGroups: {
|
|
75
|
+
"font-size": [
|
|
76
|
+
{
|
|
77
|
+
text: [
|
|
78
|
+
"display-large",
|
|
79
|
+
"display-medium",
|
|
80
|
+
"display-small",
|
|
81
|
+
"h1",
|
|
82
|
+
"h2",
|
|
83
|
+
"h3",
|
|
84
|
+
"h4",
|
|
85
|
+
"h5",
|
|
86
|
+
"h6",
|
|
87
|
+
"body-large",
|
|
88
|
+
"body-medium",
|
|
89
|
+
"body-small",
|
|
90
|
+
"label-large",
|
|
91
|
+
"label-medium",
|
|
92
|
+
"label-small",
|
|
93
|
+
"button",
|
|
94
|
+
"button-xs",
|
|
95
|
+
"caption",
|
|
96
|
+
"overline",
|
|
97
|
+
"code"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
function cn(...inputs) {
|
|
105
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// src/lib/slot.tsx
|
|
109
|
+
var React = __toESM(require("react"));
|
|
110
|
+
function mergeRefs(...refs) {
|
|
111
|
+
return (value) => {
|
|
112
|
+
for (const ref of refs) {
|
|
113
|
+
if (typeof ref === "function") ref(value);
|
|
114
|
+
else if (ref !== null)
|
|
115
|
+
ref.current = value;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
var Slot = React.forwardRef(
|
|
120
|
+
(_a, forwardedRef) => {
|
|
121
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
122
|
+
const child = React.Children.only(children);
|
|
123
|
+
if (!React.isValidElement(child)) return null;
|
|
124
|
+
const childProps = child.props;
|
|
125
|
+
const merged = __spreadValues({}, props);
|
|
126
|
+
for (const key of Object.keys(childProps)) {
|
|
127
|
+
if (key === "className") {
|
|
128
|
+
merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
|
|
129
|
+
} else if (key === "style") {
|
|
130
|
+
merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
|
|
131
|
+
} else if (key.startsWith("on") && typeof childProps[key] === "function") {
|
|
132
|
+
const parentHandler = props[key];
|
|
133
|
+
if (typeof parentHandler === "function") {
|
|
134
|
+
merged[key] = (...args) => {
|
|
135
|
+
childProps[key](...args);
|
|
136
|
+
parentHandler(...args);
|
|
137
|
+
};
|
|
138
|
+
} else {
|
|
139
|
+
merged[key] = childProps[key];
|
|
140
|
+
}
|
|
141
|
+
} else {
|
|
142
|
+
merged[key] = childProps[key];
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const childRef = child.ref;
|
|
146
|
+
merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
|
|
147
|
+
return React.cloneElement(
|
|
148
|
+
child,
|
|
149
|
+
merged
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
Slot.displayName = "Slot";
|
|
154
|
+
|
|
155
|
+
// src/components/ui/badge.tsx
|
|
156
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
157
|
+
var badgeVariants = (0, import_class_variance_authority.cva)(
|
|
158
|
+
"inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2.5 py-0.5 text-xs font-medium font-sans whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",
|
|
159
|
+
{
|
|
160
|
+
variants: {
|
|
161
|
+
variant: {
|
|
162
|
+
default: "border-primary/40 bg-primary/10 text-foreground [a&]:hover:bg-primary/15",
|
|
163
|
+
secondary: "border-border bg-muted text-muted-foreground [a&]:hover:bg-muted/80",
|
|
164
|
+
destructive: "border-destructive/40 bg-destructive/10 text-destructive-text focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/15",
|
|
165
|
+
success: "border-success/40 bg-success/10 text-success-text [a&]:hover:bg-success/15",
|
|
166
|
+
warning: "border-warning/40 bg-warning/10 text-warning-text [a&]:hover:bg-warning/15",
|
|
167
|
+
info: "border-info/40 bg-info/10 text-info-text [a&]:hover:bg-info/15",
|
|
168
|
+
outline: "border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
169
|
+
ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
170
|
+
link: "text-primary underline-offset-4 [a&]:hover:underline"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
defaultVariants: {
|
|
174
|
+
variant: "default"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
function Badge(_a) {
|
|
179
|
+
var _b = _a, {
|
|
180
|
+
className,
|
|
181
|
+
variant = "default",
|
|
182
|
+
asChild = false
|
|
183
|
+
} = _b, props = __objRest(_b, [
|
|
184
|
+
"className",
|
|
185
|
+
"variant",
|
|
186
|
+
"asChild"
|
|
187
|
+
]);
|
|
188
|
+
const Comp = asChild ? Slot : "span";
|
|
189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
190
|
+
Comp,
|
|
191
|
+
__spreadValues({
|
|
192
|
+
className: cn(badgeVariants({ variant }), className),
|
|
193
|
+
"data-slot": "badge",
|
|
194
|
+
"data-variant": variant
|
|
195
|
+
}, props)
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// src/components/ui/button.tsx
|
|
200
|
+
var import_react = require("react");
|
|
201
|
+
var import_class_variance_authority2 = require("class-variance-authority");
|
|
202
|
+
var import_lucide_react = require("lucide-react");
|
|
203
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
204
|
+
var buttonVariants = (0, import_class_variance_authority2.cva)(
|
|
205
|
+
"inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 font-sans text-button whitespace-nowrap transition-all active:scale-[0.98] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
206
|
+
{
|
|
207
|
+
variants: {
|
|
208
|
+
variant: {
|
|
209
|
+
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
210
|
+
secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
|
|
211
|
+
destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
|
|
212
|
+
outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:ring-border/50 dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
213
|
+
"outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
|
|
214
|
+
"outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:ring-brand-secondary/30",
|
|
215
|
+
ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs focus-visible:ring-border/50 dark:hover:bg-accent/50",
|
|
216
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
217
|
+
},
|
|
218
|
+
size: {
|
|
219
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
220
|
+
xs: "h-6 gap-1 px-2 text-button-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
221
|
+
sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
222
|
+
lg: "h-10 px-6 has-[>svg]:px-4",
|
|
223
|
+
icon: "size-9",
|
|
224
|
+
"icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
|
|
225
|
+
"icon-sm": "size-8",
|
|
226
|
+
"icon-lg": "size-10"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
defaultVariants: {
|
|
230
|
+
variant: "default",
|
|
231
|
+
size: "default"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
);
|
|
235
|
+
var Button = (0, import_react.forwardRef)(function Button2(_a, ref) {
|
|
236
|
+
var _b = _a, {
|
|
237
|
+
className,
|
|
238
|
+
variant,
|
|
239
|
+
size,
|
|
240
|
+
asChild = false,
|
|
241
|
+
loading = false,
|
|
242
|
+
disabled,
|
|
243
|
+
type = "button",
|
|
244
|
+
children
|
|
245
|
+
} = _b, props = __objRest(_b, [
|
|
246
|
+
"className",
|
|
247
|
+
"variant",
|
|
248
|
+
"size",
|
|
249
|
+
"asChild",
|
|
250
|
+
"loading",
|
|
251
|
+
"disabled",
|
|
252
|
+
"type",
|
|
253
|
+
"children"
|
|
254
|
+
]);
|
|
255
|
+
const Comp = asChild ? Slot : "button";
|
|
256
|
+
const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
|
|
257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
258
|
+
Comp,
|
|
259
|
+
__spreadProps(__spreadValues({
|
|
260
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
261
|
+
"data-size": size,
|
|
262
|
+
"data-slot": "button",
|
|
263
|
+
"data-variant": variant,
|
|
264
|
+
disabled: loading || disabled,
|
|
265
|
+
ref,
|
|
266
|
+
type
|
|
267
|
+
}, props), {
|
|
268
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
269
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
|
|
270
|
+
!isIconOnly && children
|
|
271
|
+
] }) : children
|
|
272
|
+
})
|
|
273
|
+
);
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
// src/components/ui/avatar.tsx
|
|
277
|
+
var import_avatar = require("@base-ui/react/avatar");
|
|
278
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
279
|
+
function Avatar(_a) {
|
|
280
|
+
var _b = _a, {
|
|
281
|
+
className,
|
|
282
|
+
size = "default"
|
|
283
|
+
} = _b, props = __objRest(_b, [
|
|
284
|
+
"className",
|
|
285
|
+
"size"
|
|
286
|
+
]);
|
|
287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
288
|
+
import_avatar.Avatar.Root,
|
|
289
|
+
__spreadValues({
|
|
290
|
+
className: cn(
|
|
291
|
+
"group/avatar relative flex size-8 shrink-0 rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",
|
|
292
|
+
className
|
|
293
|
+
),
|
|
294
|
+
"data-size": size,
|
|
295
|
+
"data-slot": "avatar"
|
|
296
|
+
}, props)
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
function AvatarImage(_a) {
|
|
300
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
302
|
+
import_avatar.Avatar.Image,
|
|
303
|
+
__spreadValues({
|
|
304
|
+
className: cn("aspect-square size-full rounded-full", className),
|
|
305
|
+
"data-slot": "avatar-image"
|
|
306
|
+
}, props)
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
function AvatarFallback(_a) {
|
|
310
|
+
var _b = _a, {
|
|
311
|
+
className
|
|
312
|
+
} = _b, props = __objRest(_b, [
|
|
313
|
+
"className"
|
|
314
|
+
]);
|
|
315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
316
|
+
import_avatar.Avatar.Fallback,
|
|
317
|
+
__spreadValues({
|
|
318
|
+
className: cn(
|
|
319
|
+
"flex size-full items-center justify-center rounded-full overflow-hidden bg-muted text-body-small font-sans text-muted-foreground group-data-[size=sm]/avatar:text-caption",
|
|
320
|
+
className
|
|
321
|
+
),
|
|
322
|
+
"data-slot": "avatar-fallback"
|
|
323
|
+
}, props)
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// src/components/ui/separator.tsx
|
|
328
|
+
var import_separator = require("@base-ui/react/separator");
|
|
329
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
330
|
+
function Separator(_a) {
|
|
331
|
+
var _b = _a, {
|
|
332
|
+
className,
|
|
333
|
+
orientation = "horizontal"
|
|
334
|
+
} = _b, props = __objRest(_b, [
|
|
335
|
+
"className",
|
|
336
|
+
"orientation"
|
|
337
|
+
]);
|
|
338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
339
|
+
import_separator.Separator,
|
|
340
|
+
__spreadValues({
|
|
341
|
+
className: cn(
|
|
342
|
+
"shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
343
|
+
className
|
|
344
|
+
),
|
|
345
|
+
"data-orientation": orientation,
|
|
346
|
+
"data-slot": "separator"
|
|
347
|
+
}, props)
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// src/components/ui/advisor-card.tsx
|
|
352
|
+
var import_lucide_react2 = require("lucide-react");
|
|
353
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
354
|
+
var STATUS_VARIANT = {
|
|
355
|
+
pending: "warning",
|
|
356
|
+
confirmed: "success",
|
|
357
|
+
cancelled: "destructive",
|
|
358
|
+
rescheduled: "info"
|
|
359
|
+
};
|
|
360
|
+
var STATUS_LABEL = {
|
|
361
|
+
pending: "Pending",
|
|
362
|
+
confirmed: "Confirmed",
|
|
363
|
+
cancelled: "Cancelled",
|
|
364
|
+
rescheduled: "Rescheduled"
|
|
365
|
+
};
|
|
366
|
+
var STRIP_BG = {
|
|
367
|
+
pending: "bg-warning/5",
|
|
368
|
+
confirmed: "bg-success/5",
|
|
369
|
+
cancelled: "bg-destructive/5",
|
|
370
|
+
rescheduled: "bg-info/5"
|
|
371
|
+
};
|
|
372
|
+
function AdvisorCard({
|
|
373
|
+
name,
|
|
374
|
+
role,
|
|
375
|
+
phone,
|
|
376
|
+
email,
|
|
377
|
+
companyLogoUrl,
|
|
378
|
+
avatarInitials,
|
|
379
|
+
isPrimary = false,
|
|
380
|
+
appointment,
|
|
381
|
+
onRefer,
|
|
382
|
+
onMoreOptions,
|
|
383
|
+
onBookAppointment,
|
|
384
|
+
onViewAppointment
|
|
385
|
+
}) {
|
|
386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col border border-border bg-card", children: [
|
|
387
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-start gap-4 p-4", children: [
|
|
388
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Avatar, { className: "h-10 w-10 shrink-0", children: [
|
|
389
|
+
companyLogoUrl && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AvatarImage, { src: companyLogoUrl, alt: `${name} company logo` }),
|
|
390
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AvatarFallback, { className: "text-sm", children: avatarInitials != null ? avatarInitials : name.slice(0, 2).toUpperCase() })
|
|
391
|
+
] }),
|
|
392
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
393
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm font-semibold leading-tight", children: name }),
|
|
394
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm text-muted-foreground", children: role }),
|
|
395
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "mt-2 flex flex-col gap-1", children: [
|
|
396
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
|
|
397
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.Phone, { className: "h-3 w-3 shrink-0" }),
|
|
398
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: phone })
|
|
399
|
+
] }),
|
|
400
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
|
|
401
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.Mail, { className: "h-3 w-3 shrink-0" }),
|
|
402
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: email })
|
|
403
|
+
] })
|
|
404
|
+
] })
|
|
405
|
+
] }),
|
|
406
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex shrink-0 items-center gap-1.5", children: [
|
|
407
|
+
isPrimary && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Badge, { variant: "success", children: "Primary" }),
|
|
408
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
409
|
+
Button,
|
|
410
|
+
{
|
|
411
|
+
variant: "ghost",
|
|
412
|
+
size: "icon",
|
|
413
|
+
className: "h-7 w-7",
|
|
414
|
+
onClick: onMoreOptions,
|
|
415
|
+
"aria-label": "More options",
|
|
416
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.MoreVertical, { className: "h-4 w-4" })
|
|
417
|
+
}
|
|
418
|
+
)
|
|
419
|
+
] })
|
|
420
|
+
] }),
|
|
421
|
+
appointment !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
422
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Separator, {}),
|
|
423
|
+
appointment ? (
|
|
424
|
+
/* Has appointment */
|
|
425
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
426
|
+
"div",
|
|
427
|
+
{
|
|
428
|
+
className: `flex items-center gap-3 px-4 py-3 ${STRIP_BG[appointment.status]}`,
|
|
429
|
+
children: [
|
|
430
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.CalendarCheck, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
|
|
431
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
432
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
433
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
434
|
+
Badge,
|
|
435
|
+
{
|
|
436
|
+
variant: STATUS_VARIANT[appointment.status],
|
|
437
|
+
className: "text-[10px]",
|
|
438
|
+
children: STATUS_LABEL[appointment.status]
|
|
439
|
+
}
|
|
440
|
+
),
|
|
441
|
+
appointment.appointmentType && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "truncate text-xs text-muted-foreground", children: appointment.appointmentType })
|
|
442
|
+
] }),
|
|
443
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { className: "text-xs text-muted-foreground", children: [
|
|
444
|
+
appointment.date,
|
|
445
|
+
" \xB7 ",
|
|
446
|
+
appointment.timeStart,
|
|
447
|
+
"\u2013",
|
|
448
|
+
appointment.timeEnd
|
|
449
|
+
] })
|
|
450
|
+
] }),
|
|
451
|
+
onViewAppointment && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
452
|
+
Button,
|
|
453
|
+
{
|
|
454
|
+
variant: "ghost",
|
|
455
|
+
size: "sm",
|
|
456
|
+
className: "h-7 shrink-0 gap-1 px-2 text-xs",
|
|
457
|
+
onClick: onViewAppointment,
|
|
458
|
+
children: [
|
|
459
|
+
"View",
|
|
460
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.ChevronRight, { className: "h-3 w-3" })
|
|
461
|
+
]
|
|
462
|
+
}
|
|
463
|
+
)
|
|
464
|
+
]
|
|
465
|
+
}
|
|
466
|
+
)
|
|
467
|
+
) : (
|
|
468
|
+
/* No appointment */
|
|
469
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center gap-3 px-4 py-3", children: [
|
|
470
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.Calendar, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
|
|
471
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "flex-1 text-xs text-muted-foreground", children: "No upcoming appointments" })
|
|
472
|
+
] })
|
|
473
|
+
)
|
|
474
|
+
] }),
|
|
475
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Separator, {}),
|
|
476
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center gap-2 px-4 py-3", children: [
|
|
477
|
+
onBookAppointment && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
478
|
+
Button,
|
|
479
|
+
{
|
|
480
|
+
variant: "outline-primary",
|
|
481
|
+
size: "sm",
|
|
482
|
+
onClick: onBookAppointment,
|
|
483
|
+
children: "Book Appointment"
|
|
484
|
+
}
|
|
485
|
+
),
|
|
486
|
+
onRefer && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Button, { variant: "outline", size: "sm", onClick: onRefer, children: [
|
|
487
|
+
"Refer ",
|
|
488
|
+
name,
|
|
489
|
+
" to Others"
|
|
490
|
+
] })
|
|
491
|
+
] })
|
|
492
|
+
] });
|
|
493
|
+
}
|
|
494
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
495
|
+
0 && (module.exports = {
|
|
496
|
+
AdvisorCard
|
|
497
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AdvisorCard
|
|
3
|
+
} from "../../chunk-FNQXOAYJ.mjs";
|
|
4
|
+
import "../../chunk-24FUO7TD.mjs";
|
|
5
|
+
import "../../chunk-BKNFWEH2.mjs";
|
|
6
|
+
import "../../chunk-FH6QVUVZ.mjs";
|
|
7
|
+
import "../../chunk-XREGSKX3.mjs";
|
|
8
|
+
import "../../chunk-DBHJ5KC3.mjs";
|
|
9
|
+
import "../../chunk-VLQZANBF.mjs";
|
|
10
|
+
import "../../chunk-FWCSY2DS.mjs";
|
|
11
|
+
export {
|
|
12
|
+
AdvisorCard
|
|
13
|
+
};
|
|
@@ -258,10 +258,10 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
|
258
258
|
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
259
259
|
secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
|
|
260
260
|
destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
|
|
261
|
-
outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
261
|
+
outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:ring-border/50 dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
262
262
|
"outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
|
|
263
263
|
"outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:ring-brand-secondary/30",
|
|
264
|
-
ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs dark:hover:bg-accent/50",
|
|
264
|
+
ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs focus-visible:ring-border/50 dark:hover:bg-accent/50",
|
|
265
265
|
link: "text-primary underline-offset-4 hover:underline"
|
|
266
266
|
},
|
|
267
267
|
size: {
|
|
@@ -330,12 +330,12 @@ var badgeVariants = (0, import_class_variance_authority2.cva)(
|
|
|
330
330
|
{
|
|
331
331
|
variants: {
|
|
332
332
|
variant: {
|
|
333
|
-
default: "bg-primary text-
|
|
334
|
-
secondary: "bg-muted text-muted-foreground [a&]:hover:bg-muted/80",
|
|
335
|
-
destructive: "bg-destructive text-destructive-
|
|
336
|
-
success: "bg-success text-success-
|
|
337
|
-
warning: "bg-warning text-warning-
|
|
338
|
-
info: "bg-info text-info-
|
|
333
|
+
default: "border-primary/40 bg-primary/10 text-foreground [a&]:hover:bg-primary/15",
|
|
334
|
+
secondary: "border-border bg-muted text-muted-foreground [a&]:hover:bg-muted/80",
|
|
335
|
+
destructive: "border-destructive/40 bg-destructive/10 text-destructive-text focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/15",
|
|
336
|
+
success: "border-success/40 bg-success/10 text-success-text [a&]:hover:bg-success/15",
|
|
337
|
+
warning: "border-warning/40 bg-warning/10 text-warning-text [a&]:hover:bg-warning/15",
|
|
338
|
+
info: "border-info/40 bg-info/10 text-info-text [a&]:hover:bg-info/15",
|
|
339
339
|
outline: "border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
340
340
|
ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
341
341
|
link: "text-primary underline-offset-4 [a&]:hover:underline"
|
|
@@ -455,11 +455,12 @@ function AiTaskCard({
|
|
|
455
455
|
onSelect
|
|
456
456
|
}) {
|
|
457
457
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
458
|
-
|
|
458
|
+
Button,
|
|
459
459
|
{
|
|
460
460
|
type: "button",
|
|
461
|
+
variant: "ghost",
|
|
461
462
|
onClick: () => onSelect(suggestion.title),
|
|
462
|
-
className: "
|
|
463
|
+
className: "h-auto w-full flex-col items-start gap-1 border border-border bg-background p-3 text-left hover:bg-muted/50",
|
|
463
464
|
children: [
|
|
464
465
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-sm font-medium text-foreground", children: suggestion.title }),
|
|
465
466
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-xs text-muted-foreground", children: suggestion.description })
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AiAssistantDrawer
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-CFMQP5QS.mjs";
|
|
4
4
|
import "../../chunk-462HMNO4.mjs";
|
|
5
5
|
import "../../chunk-34NWQURD.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-BKNFWEH2.mjs";
|
|
7
7
|
import "../../chunk-7YAU5CY6.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-XREGSKX3.mjs";
|
|
9
9
|
import "../../chunk-DBHJ5KC3.mjs";
|
|
10
10
|
import "../../chunk-FEZKMUCF.mjs";
|
|
11
11
|
import "../../chunk-QOJ2DQD6.mjs";
|
|
@@ -184,10 +184,10 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
|
184
184
|
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
185
185
|
secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
|
|
186
186
|
destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
|
|
187
|
-
outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
187
|
+
outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:ring-border/50 dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
188
188
|
"outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
|
|
189
189
|
"outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:ring-brand-secondary/30",
|
|
190
|
-
ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs dark:hover:bg-accent/50",
|
|
190
|
+
ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs focus-visible:ring-border/50 dark:hover:bg-accent/50",
|
|
191
191
|
link: "text-primary underline-offset-4 hover:underline"
|
|
192
192
|
},
|
|
193
193
|
size: {
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
AlertDialogPortal,
|
|
12
12
|
AlertDialogTitle,
|
|
13
13
|
AlertDialogTrigger
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
14
|
+
} from "../../chunk-JMHR3YGZ.mjs";
|
|
15
|
+
import "../../chunk-XREGSKX3.mjs";
|
|
16
16
|
import "../../chunk-DBHJ5KC3.mjs";
|
|
17
17
|
import "../../chunk-FEZKMUCF.mjs";
|
|
18
18
|
import "../../chunk-QOJ2DQD6.mjs";
|