@wealthx/shadcn 1.5.6 → 1.5.7

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.
Files changed (91) hide show
  1. package/.turbo/turbo-build.log +141 -135
  2. package/CHANGELOG.md +6 -0
  3. package/dist/{chunk-2LLFNGJZ.mjs → chunk-3OOUI5TO.mjs} +1 -1
  4. package/dist/{chunk-AUEUTZIC.mjs → chunk-3QAQQBCM.mjs} +2 -2
  5. package/dist/chunk-3Z75IKFO.mjs +34 -0
  6. package/dist/{chunk-RAKBWNQH.mjs → chunk-5WCIGJ3E.mjs} +26 -65
  7. package/dist/chunk-65PZNG4Y.mjs +129 -0
  8. package/dist/{chunk-D447W45Z.mjs → chunk-7OLKVKJF.mjs} +41 -49
  9. package/dist/{chunk-UEREFDAE.mjs → chunk-AZGLSIHF.mjs} +1 -1
  10. package/dist/{chunk-QRVEI6J3.mjs → chunk-BQBSYM2I.mjs} +1 -3
  11. package/dist/{chunk-BFB3UH7V.mjs → chunk-C2QMHKLT.mjs} +1 -1
  12. package/dist/chunk-CEEVYRQA.mjs +61 -0
  13. package/dist/{chunk-VJ3GC7W3.mjs → chunk-CXGZSIQN.mjs} +4 -30
  14. package/dist/{chunk-VLELWBEW.mjs → chunk-E2BNCA6L.mjs} +1 -1
  15. package/dist/{chunk-46Q4335I.mjs → chunk-F73QFUZH.mjs} +10 -20
  16. package/dist/{chunk-Q35PNFJ7.mjs → chunk-FBNEIYSE.mjs} +1 -1
  17. package/dist/{chunk-HO6S3ECM.mjs → chunk-G4WLCKFV.mjs} +1 -1
  18. package/dist/{chunk-ODO6BUOF.mjs → chunk-HRHXZIX5.mjs} +1 -3
  19. package/dist/{chunk-IXR4BQSQ.mjs → chunk-I6QVWQCD.mjs} +1 -1
  20. package/dist/{chunk-Q5SGEIJV.mjs → chunk-IXKE6LHN.mjs} +1 -1
  21. package/dist/{chunk-OL65UQHQ.mjs → chunk-JCH2BG24.mjs} +26 -60
  22. package/dist/{chunk-PV3Y7QGK.mjs → chunk-LHWJQNLG.mjs} +3 -3
  23. package/dist/{chunk-JTG5R5YV.mjs → chunk-MS4PDUSU.mjs} +284 -58
  24. package/dist/{chunk-VFH632TB.mjs → chunk-SDNG4XL6.mjs} +1 -1
  25. package/dist/{chunk-DFL5CV75.mjs → chunk-T6MMCOX6.mjs} +1 -1
  26. package/dist/{chunk-6TX73WG7.mjs → chunk-TCE5L44O.mjs} +3 -2
  27. package/dist/{chunk-HROG643K.mjs → chunk-W5QJ57PU.mjs} +1 -1
  28. package/dist/{chunk-EW72FINW.mjs → chunk-XVZGXPIX.mjs} +1 -1
  29. package/dist/components/ui/about-you-form.mjs +3 -3
  30. package/dist/components/ui/add-column-modal.js +56 -227
  31. package/dist/components/ui/add-column-modal.mjs +1 -2
  32. package/dist/components/ui/ai-conversations.js +278 -58
  33. package/dist/components/ui/ai-conversations.mjs +1 -1
  34. package/dist/components/ui/appointment-action-dialogs.mjs +3 -3
  35. package/dist/components/ui/appointment-availability-settings.js +2 -28
  36. package/dist/components/ui/appointment-availability-settings.mjs +4 -4
  37. package/dist/components/ui/appointment-book-dialog.js +11 -21
  38. package/dist/components/ui/appointment-book-dialog.mjs +3 -3
  39. package/dist/components/ui/appointment-calendar-view.mjs +2 -2
  40. package/dist/components/ui/appointment-detail-sheet.mjs +4 -4
  41. package/dist/components/ui/appointment-upcoming-card.mjs +3 -3
  42. package/dist/components/ui/bank-statement-generate-dialog.mjs +4 -4
  43. package/dist/components/ui/calendar.mjs +2 -2
  44. package/dist/components/ui/dashboard-transactions-table.mjs +1 -1
  45. package/dist/components/ui/date-picker.mjs +3 -3
  46. package/dist/components/ui/financial-cards.mjs +2 -2
  47. package/dist/components/ui/financial-sections.mjs +3 -3
  48. package/dist/components/ui/integration-card.js +326 -0
  49. package/dist/components/ui/integration-card.mjs +11 -0
  50. package/dist/components/ui/kanban-column.js +151 -243
  51. package/dist/components/ui/kanban-column.mjs +3 -4
  52. package/dist/components/ui/loan-application-cards.mjs +1 -1
  53. package/dist/components/ui/onboarding-layout.js +65 -4
  54. package/dist/components/ui/onboarding-layout.mjs +6 -4
  55. package/dist/components/ui/opportunity-card.js +126 -216
  56. package/dist/components/ui/opportunity-card.mjs +2 -3
  57. package/dist/components/ui/opportunity-edit-modals.mjs +4 -4
  58. package/dist/components/ui/opportunity-summary-tab.mjs +6 -6
  59. package/dist/components/ui/pipeline-board.js +167 -261
  60. package/dist/components/ui/pipeline-board.mjs +4 -5
  61. package/dist/components/ui/pipeline-chart.js +128 -55
  62. package/dist/components/ui/pipeline-chart.mjs +2 -1
  63. package/dist/components/ui/pipeline-dialogs.mjs +4 -4
  64. package/dist/components/ui/savings-goal-modal.mjs +3 -3
  65. package/dist/components/ui/selectable-card.js +163 -0
  66. package/dist/components/ui/selectable-card.mjs +9 -0
  67. package/dist/components/ui/signup-shell.js +3 -2
  68. package/dist/components/ui/signup-shell.mjs +2 -2
  69. package/dist/components/ui/stepper.js +3 -2
  70. package/dist/components/ui/stepper.mjs +1 -1
  71. package/dist/index.js +2121 -1878
  72. package/dist/index.mjs +56 -46
  73. package/dist/styles.css +1 -1
  74. package/package.json +11 -1
  75. package/src/components/index.tsx +13 -1
  76. package/src/components/ui/add-column-modal.tsx +9 -58
  77. package/src/components/ui/ai-conversations.tsx +308 -42
  78. package/src/components/ui/appointment-availability-settings.tsx +2 -35
  79. package/src/components/ui/appointment-book-dialog.tsx +25 -48
  80. package/src/components/ui/integration-card.tsx +88 -0
  81. package/src/components/ui/kanban-column.tsx +0 -7
  82. package/src/components/ui/onboarding-layout.tsx +102 -1
  83. package/src/components/ui/opportunity-card.tsx +5 -53
  84. package/src/components/ui/pipeline-board.tsx +0 -3
  85. package/src/components/ui/pipeline-chart.tsx +47 -53
  86. package/src/components/ui/selectable-card.tsx +37 -0
  87. package/src/components/ui/stepper.tsx +3 -2
  88. package/src/lib/format-date.ts +6 -6
  89. package/src/styles/styles-css.ts +1 -1
  90. package/tsup.config.ts +2 -0
  91. package/dist/chunk-2P7HP7LR.mjs +0 -68
@@ -248,11 +248,11 @@ function formatDateShort(iso) {
248
248
  }
249
249
  }
250
250
  function formatDateLong(date) {
251
- const d = typeof date === "string" ? safeParse(date) : date;
252
251
  try {
253
- return (0, import_date_fns.format)(d, "EEEE, d MMMM");
252
+ const d = typeof date === "string" ? safeParse(date) : date;
253
+ return (0, import_date_fns.format)(d, "EEEE, d MMMM yyyy");
254
254
  } catch (e) {
255
- return d.toLocaleDateString();
255
+ return String(date);
256
256
  }
257
257
  }
258
258
 
@@ -1448,13 +1448,9 @@ var FORMAT_OPTIONS = [
1448
1448
  icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react7.MapPin, { className: "h-4 w-4" })
1449
1449
  }
1450
1450
  ];
1451
- var FORMAT_CALL = FORMAT_OPTIONS[0];
1452
- var FORMAT_OFFLINE = FORMAT_OPTIONS[3];
1453
- var ONLINE_MEETING_ICON = /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react7.Video, { className: "h-4 w-4" });
1454
1451
  function MeetingFormatSection({
1455
1452
  format: format2,
1456
1453
  onFormatChange,
1457
- options = FORMAT_OPTIONS,
1458
1454
  offlineLocation,
1459
1455
  onOfflineLocationChange,
1460
1456
  customAddress,
@@ -1464,7 +1460,7 @@ function MeetingFormatSection({
1464
1460
  isClientMode
1465
1461
  }) {
1466
1462
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col gap-2", children: [
1467
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex gap-2", children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1463
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex gap-2", children: FORMAT_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1468
1464
  Toggle,
1469
1465
  {
1470
1466
  variant: "outline",
@@ -1596,15 +1592,6 @@ function AppointmentBookDialog({
1596
1592
  var _a, _b, _c;
1597
1593
  const isClientMode = clients.length === 0;
1598
1594
  const showGuestForm = isClientMode && !((guestInfo == null ? void 0 : guestInfo.name) && (guestInfo == null ? void 0 : guestInfo.email));
1599
- const visibleFormatOptions = isClientMode && defaultMeetingFormat ? [
1600
- FORMAT_CALL,
1601
- {
1602
- value: defaultMeetingFormat,
1603
- label: "Online Meeting",
1604
- icon: ONLINE_MEETING_ICON
1605
- },
1606
- FORMAT_OFFLINE
1607
- ] : FORMAT_OPTIONS;
1608
1595
  const disabledDayOfWeek = import_react3.default.useMemo(
1609
1596
  () => schedule == null ? void 0 : schedule.filter((d) => !d.enabled).map((d) => DAY_MAP[d.day]).filter((n) => n !== void 0),
1610
1597
  [schedule]
@@ -1668,7 +1655,7 @@ function AppointmentBookDialog({
1668
1655
  }
1669
1656
  onOpenChange(next);
1670
1657
  };
1671
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Dialog, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogContent, { size: "2xl", children: submittedBooking ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1658
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Dialog, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogContent, { size: "2xl", align: "top", children: submittedBooking ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1672
1659
  BookingConfirmationScreen,
1673
1660
  {
1674
1661
  booking: submittedBooking,
@@ -1753,14 +1740,13 @@ function AppointmentBookDialog({
1753
1740
  )
1754
1741
  ] })
1755
1742
  ] }),
1756
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
1743
+ !(isClientMode && defaultMeetingFormat) && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
1757
1744
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Label, { children: "Meeting format" }),
1758
1745
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1759
1746
  MeetingFormatSection,
1760
1747
  {
1761
1748
  format: meetingFormat,
1762
1749
  onFormatChange: setMeetingFormat,
1763
- options: visibleFormatOptions,
1764
1750
  offlineLocation,
1765
1751
  onOfflineLocationChange: setOfflineLocation,
1766
1752
  customAddress,
@@ -1826,7 +1812,11 @@ function AppointmentBookDialog({
1826
1812
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
1827
1813
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Label, { children: "Time slot" }),
1828
1814
  date ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col gap-3", children: [
1829
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-xs text-muted-foreground", children: formatDateLong(date) }),
1815
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-xs text-muted-foreground", children: date.toLocaleDateString("en-AU", {
1816
+ weekday: "long",
1817
+ day: "numeric",
1818
+ month: "long"
1819
+ }) }),
1830
1820
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1831
1821
  AppointmentSlotSection,
1832
1822
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AppointmentBookDialog
3
- } from "../../chunk-46Q4335I.mjs";
3
+ } from "../../chunk-F73QFUZH.mjs";
4
4
  import "../../chunk-JTK6VJXY.mjs";
5
5
  import "../../chunk-MXP2RX2V.mjs";
6
6
  import "../../chunk-ISUA7DSB.mjs";
@@ -11,8 +11,8 @@ import "../../chunk-BS75ICOO.mjs";
11
11
  import "../../chunk-NCUH54IZ.mjs";
12
12
  import "../../chunk-H6NQTIF4.mjs";
13
13
  import "../../chunk-WL6WVV47.mjs";
14
- import "../../chunk-Q35PNFJ7.mjs";
15
- import "../../chunk-PV3Y7QGK.mjs";
14
+ import "../../chunk-FBNEIYSE.mjs";
15
+ import "../../chunk-LHWJQNLG.mjs";
16
16
  import "../../chunk-P7CEBZM6.mjs";
17
17
  import "../../chunk-OWFQSXVD.mjs";
18
18
  import "../../chunk-6QAFGZC2.mjs";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  AppointmentCalendarView
3
- } from "../../chunk-EW72FINW.mjs";
3
+ } from "../../chunk-XVZGXPIX.mjs";
4
4
  import "../../chunk-WE4YKBDE.mjs";
5
5
  import "../../chunk-2GIYVERS.mjs";
6
6
  import "../../chunk-H6NQTIF4.mjs";
7
7
  import "../../chunk-WL6WVV47.mjs";
8
- import "../../chunk-PV3Y7QGK.mjs";
8
+ import "../../chunk-LHWJQNLG.mjs";
9
9
  import "../../chunk-NOOEKOWY.mjs";
10
10
  import "../../chunk-R4HCRDU5.mjs";
11
11
  import "../../chunk-AFML43VJ.mjs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AppointmentDetailSheet
3
- } from "../../chunk-HO6S3ECM.mjs";
4
- import "../../chunk-2LLFNGJZ.mjs";
3
+ } from "../../chunk-G4WLCKFV.mjs";
4
+ import "../../chunk-3OOUI5TO.mjs";
5
5
  import "../../chunk-FRT3S72S.mjs";
6
6
  import "../../chunk-J5NW5NCT.mjs";
7
7
  import "../../chunk-2GIYVERS.mjs";
@@ -10,8 +10,8 @@ import "../../chunk-NCUH54IZ.mjs";
10
10
  import "../../chunk-H6NQTIF4.mjs";
11
11
  import "../../chunk-WL6WVV47.mjs";
12
12
  import "../../chunk-BD3DWDT4.mjs";
13
- import "../../chunk-Q35PNFJ7.mjs";
14
- import "../../chunk-PV3Y7QGK.mjs";
13
+ import "../../chunk-FBNEIYSE.mjs";
14
+ import "../../chunk-LHWJQNLG.mjs";
15
15
  import "../../chunk-P7CEBZM6.mjs";
16
16
  import "../../chunk-6QAFGZC2.mjs";
17
17
  import "../../chunk-WDTXHLYM.mjs";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  AppointmentUpcomingCard
3
- } from "../../chunk-DFL5CV75.mjs";
3
+ } from "../../chunk-T6MMCOX6.mjs";
4
4
  import "../../chunk-FRT3S72S.mjs";
5
5
  import "../../chunk-2GIYVERS.mjs";
6
6
  import "../../chunk-BS75ICOO.mjs";
7
7
  import "../../chunk-NCUH54IZ.mjs";
8
8
  import "../../chunk-H6NQTIF4.mjs";
9
9
  import "../../chunk-WL6WVV47.mjs";
10
- import "../../chunk-Q35PNFJ7.mjs";
11
- import "../../chunk-PV3Y7QGK.mjs";
10
+ import "../../chunk-FBNEIYSE.mjs";
11
+ import "../../chunk-LHWJQNLG.mjs";
12
12
  import "../../chunk-P7CEBZM6.mjs";
13
13
  import "../../chunk-6QAFGZC2.mjs";
14
14
  import "../../chunk-WDTXHLYM.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BankStatementGenerateDialog
3
- } from "../../chunk-IXR4BQSQ.mjs";
3
+ } from "../../chunk-I6QVWQCD.mjs";
4
4
  import "../../chunk-MUV4EGDW.mjs";
5
5
  import "../../chunk-GT3RU6GA.mjs";
6
6
  import "../../chunk-IKXYTCSB.mjs";
@@ -8,10 +8,10 @@ import "../../chunk-TAX3KL66.mjs";
8
8
  import "../../chunk-JVMXMFBB.mjs";
9
9
  import "../../chunk-2GIYVERS.mjs";
10
10
  import "../../chunk-NCUH54IZ.mjs";
11
- import "../../chunk-BFB3UH7V.mjs";
11
+ import "../../chunk-C2QMHKLT.mjs";
12
12
  import "../../chunk-C6SWS7OW.mjs";
13
- import "../../chunk-Q35PNFJ7.mjs";
14
- import "../../chunk-PV3Y7QGK.mjs";
13
+ import "../../chunk-FBNEIYSE.mjs";
14
+ import "../../chunk-LHWJQNLG.mjs";
15
15
  import "../../chunk-P7CEBZM6.mjs";
16
16
  import "../../chunk-OWFQSXVD.mjs";
17
17
  import "../../chunk-6QAFGZC2.mjs";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Calendar,
3
3
  CalendarDayButton
4
- } from "../../chunk-Q35PNFJ7.mjs";
5
- import "../../chunk-PV3Y7QGK.mjs";
4
+ } from "../../chunk-FBNEIYSE.mjs";
5
+ import "../../chunk-LHWJQNLG.mjs";
6
6
  import "../../chunk-NOOEKOWY.mjs";
7
7
  import "../../chunk-R4HCRDU5.mjs";
8
8
  import "../../chunk-AFML43VJ.mjs";
@@ -20,7 +20,7 @@ import {
20
20
  } from "../../chunk-WL6WVV47.mjs";
21
21
  import {
22
22
  formatDateShort
23
- } from "../../chunk-PV3Y7QGK.mjs";
23
+ } from "../../chunk-LHWJQNLG.mjs";
24
24
  import "../../chunk-LBTHZSBT.mjs";
25
25
  import "../../chunk-WDTXHLYM.mjs";
26
26
  import "../../chunk-S4CTM3UE.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  DatePicker
3
- } from "../../chunk-BFB3UH7V.mjs";
3
+ } from "../../chunk-C2QMHKLT.mjs";
4
4
  import "../../chunk-C6SWS7OW.mjs";
5
- import "../../chunk-Q35PNFJ7.mjs";
6
- import "../../chunk-PV3Y7QGK.mjs";
5
+ import "../../chunk-FBNEIYSE.mjs";
6
+ import "../../chunk-LHWJQNLG.mjs";
7
7
  import "../../chunk-LBTHZSBT.mjs";
8
8
  import "../../chunk-WDTXHLYM.mjs";
9
9
  import "../../chunk-S4CTM3UE.mjs";
@@ -6,11 +6,11 @@ import {
6
6
  IncomeCard,
7
7
  OtherLiabilityCard,
8
8
  PropertyCard
9
- } from "../../chunk-HROG643K.mjs";
9
+ } from "../../chunk-W5QJ57PU.mjs";
10
10
  import "../../chunk-DQB4EPIS.mjs";
11
11
  import "../../chunk-JTK6VJXY.mjs";
12
12
  import "../../chunk-WL6WVV47.mjs";
13
- import "../../chunk-PV3Y7QGK.mjs";
13
+ import "../../chunk-LHWJQNLG.mjs";
14
14
  import "../../chunk-UNACI2YK.mjs";
15
15
  import "../../chunk-NOOEKOWY.mjs";
16
16
  import "../../chunk-R4HCRDU5.mjs";
@@ -7,13 +7,13 @@ import {
7
7
  LoanScenarioSection,
8
8
  OtherLiabilitiesSection,
9
9
  PropertyHoldingsSection
10
- } from "../../chunk-VLELWBEW.mjs";
11
- import "../../chunk-HROG643K.mjs";
10
+ } from "../../chunk-E2BNCA6L.mjs";
11
+ import "../../chunk-W5QJ57PU.mjs";
12
12
  import "../../chunk-DQB4EPIS.mjs";
13
13
  import "../../chunk-JTK6VJXY.mjs";
14
14
  import "../../chunk-2GIYVERS.mjs";
15
15
  import "../../chunk-WL6WVV47.mjs";
16
- import "../../chunk-PV3Y7QGK.mjs";
16
+ import "../../chunk-LHWJQNLG.mjs";
17
17
  import "../../chunk-UNACI2YK.mjs";
18
18
  import "../../chunk-NOOEKOWY.mjs";
19
19
  import "../../chunk-R4HCRDU5.mjs";
@@ -0,0 +1,326 @@
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/integration-card.tsx
60
+ var integration_card_exports = {};
61
+ __export(integration_card_exports, {
62
+ IntegrationCard: () => IntegrationCard
63
+ });
64
+ module.exports = __toCommonJS(integration_card_exports);
65
+ var import_lucide_react2 = require("lucide-react");
66
+
67
+ // src/components/ui/badge.tsx
68
+ var import_class_variance_authority = require("class-variance-authority");
69
+
70
+ // src/lib/utils.ts
71
+ var import_clsx = require("clsx");
72
+ var import_tailwind_merge = require("tailwind-merge");
73
+ var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
74
+ extend: {
75
+ classGroups: {
76
+ "font-size": [
77
+ {
78
+ text: [
79
+ "display-large",
80
+ "display-medium",
81
+ "display-small",
82
+ "h1",
83
+ "h2",
84
+ "h3",
85
+ "h4",
86
+ "h5",
87
+ "h6",
88
+ "body-large",
89
+ "body-medium",
90
+ "body-small",
91
+ "label-large",
92
+ "label-medium",
93
+ "label-small",
94
+ "button",
95
+ "button-xs",
96
+ "caption",
97
+ "overline",
98
+ "code"
99
+ ]
100
+ }
101
+ ]
102
+ }
103
+ }
104
+ });
105
+ function cn(...inputs) {
106
+ return twMerge((0, import_clsx.clsx)(inputs));
107
+ }
108
+
109
+ // src/lib/slot.tsx
110
+ var React = __toESM(require("react"));
111
+ function mergeRefs(...refs) {
112
+ return (value) => {
113
+ for (const ref of refs) {
114
+ if (typeof ref === "function") ref(value);
115
+ else if (ref !== null)
116
+ ref.current = value;
117
+ }
118
+ };
119
+ }
120
+ var Slot = React.forwardRef(
121
+ (_a, forwardedRef) => {
122
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
123
+ const child = React.Children.only(children);
124
+ if (!React.isValidElement(child)) return null;
125
+ const childProps = child.props;
126
+ const merged = __spreadValues({}, props);
127
+ for (const key of Object.keys(childProps)) {
128
+ if (key === "className") {
129
+ merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
130
+ } else if (key === "style") {
131
+ merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
132
+ } else if (key.startsWith("on") && typeof childProps[key] === "function") {
133
+ const parentHandler = props[key];
134
+ if (typeof parentHandler === "function") {
135
+ merged[key] = (...args) => {
136
+ childProps[key](...args);
137
+ parentHandler(...args);
138
+ };
139
+ } else {
140
+ merged[key] = childProps[key];
141
+ }
142
+ } else {
143
+ merged[key] = childProps[key];
144
+ }
145
+ }
146
+ const childRef = child.ref;
147
+ merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
148
+ return React.cloneElement(
149
+ child,
150
+ merged
151
+ );
152
+ }
153
+ );
154
+ Slot.displayName = "Slot";
155
+
156
+ // src/components/ui/badge.tsx
157
+ var import_jsx_runtime = require("react/jsx-runtime");
158
+ var badgeVariants = (0, import_class_variance_authority.cva)(
159
+ "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",
160
+ {
161
+ variants: {
162
+ variant: {
163
+ default: "border-primary/40 bg-primary/10 text-foreground [a&]:hover:bg-primary/15",
164
+ secondary: "border-border bg-muted text-muted-foreground [a&]:hover:bg-muted/80",
165
+ 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",
166
+ success: "border-success/40 bg-success/10 text-success-text [a&]:hover:bg-success/15",
167
+ warning: "border-warning/40 bg-warning/10 text-warning-text [a&]:hover:bg-warning/15",
168
+ info: "border-info/40 bg-info/10 text-info-text [a&]:hover:bg-info/15",
169
+ outline: "border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
170
+ ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
171
+ link: "text-primary underline-offset-4 [a&]:hover:underline"
172
+ }
173
+ },
174
+ defaultVariants: {
175
+ variant: "default"
176
+ }
177
+ }
178
+ );
179
+ function Badge(_a) {
180
+ var _b = _a, {
181
+ className,
182
+ variant = "default",
183
+ asChild = false
184
+ } = _b, props = __objRest(_b, [
185
+ "className",
186
+ "variant",
187
+ "asChild"
188
+ ]);
189
+ const Comp = asChild ? Slot : "span";
190
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
191
+ Comp,
192
+ __spreadValues({
193
+ className: cn(badgeVariants({ variant }), className),
194
+ "data-slot": "badge",
195
+ "data-variant": variant
196
+ }, props)
197
+ );
198
+ }
199
+
200
+ // src/components/ui/button.tsx
201
+ var import_react = require("react");
202
+ var import_class_variance_authority2 = require("class-variance-authority");
203
+ var import_lucide_react = require("lucide-react");
204
+ var import_jsx_runtime2 = require("react/jsx-runtime");
205
+ var buttonVariants = (0, import_class_variance_authority2.cva)(
206
+ "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",
207
+ {
208
+ variants: {
209
+ variant: {
210
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
211
+ secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
212
+ 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",
213
+ outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:border-border focus-visible:ring-border/50 dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
214
+ "outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
215
+ "outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:border-brand-secondary focus-visible:ring-brand-secondary/30",
216
+ ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs focus-visible:ring-border/50 dark:hover:bg-accent/50",
217
+ link: "text-primary underline-offset-4 hover:underline"
218
+ },
219
+ size: {
220
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
221
+ xs: "h-6 gap-1 px-2 text-button-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
222
+ sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
223
+ lg: "h-10 px-6 has-[>svg]:px-4",
224
+ icon: "size-9",
225
+ "icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
226
+ "icon-sm": "size-8",
227
+ "icon-lg": "size-10"
228
+ }
229
+ },
230
+ defaultVariants: {
231
+ variant: "default",
232
+ size: "default"
233
+ }
234
+ }
235
+ );
236
+ var Button = (0, import_react.forwardRef)(function Button2(_a, ref) {
237
+ var _b = _a, {
238
+ className,
239
+ variant,
240
+ size,
241
+ asChild = false,
242
+ loading = false,
243
+ disabled,
244
+ type = "button",
245
+ children
246
+ } = _b, props = __objRest(_b, [
247
+ "className",
248
+ "variant",
249
+ "size",
250
+ "asChild",
251
+ "loading",
252
+ "disabled",
253
+ "type",
254
+ "children"
255
+ ]);
256
+ const Comp = asChild ? Slot : "button";
257
+ const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
258
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
259
+ Comp,
260
+ __spreadProps(__spreadValues({
261
+ className: cn(buttonVariants({ variant, size, className })),
262
+ "data-size": size,
263
+ "data-slot": "button",
264
+ "data-variant": variant,
265
+ disabled: loading || disabled,
266
+ ref,
267
+ type
268
+ }, props), {
269
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
270
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
271
+ !isIconOnly && children
272
+ ] }) : children
273
+ })
274
+ );
275
+ });
276
+
277
+ // src/components/ui/integration-card.tsx
278
+ var import_jsx_runtime3 = require("react/jsx-runtime");
279
+ function IntegrationCard({
280
+ name,
281
+ description,
282
+ logoSrc,
283
+ logoFallback,
284
+ connected = false,
285
+ onConnect,
286
+ onDisconnect,
287
+ children,
288
+ className
289
+ }) {
290
+ const hasLogo = Boolean(logoSrc || logoFallback);
291
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
292
+ "div",
293
+ {
294
+ className: cn(
295
+ "flex flex-col gap-3 border border-border p-4",
296
+ connected && "bg-muted/20",
297
+ className
298
+ ),
299
+ children: [
300
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex items-center gap-2", children: [
301
+ hasLogo && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex shrink-0 items-center", children: logoSrc ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
302
+ "img",
303
+ {
304
+ src: logoSrc,
305
+ alt: `${name} logo`,
306
+ className: "h-8 w-16 object-contain object-left"
307
+ }
308
+ ) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex h-9 w-9 items-center justify-center", children: logoFallback }) }),
309
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-label-medium", children: name }),
310
+ connected && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Badge, { variant: "success", className: "gap-1", children: [
311
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react2.Check, { className: "h-3 w-3" }),
312
+ "Connected"
313
+ ] })
314
+ ] }),
315
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "text-body-small text-muted-foreground", children: description }),
316
+ children,
317
+ !connected && onConnect && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Button, { variant: "outline", size: "sm", onClick: onConnect, children: "Connect" }) }),
318
+ connected && onDisconnect && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Button, { variant: "outline", size: "sm", onClick: onDisconnect, children: "Disconnect" }) })
319
+ ]
320
+ }
321
+ );
322
+ }
323
+ // Annotate the CommonJS export names for ESM import in node:
324
+ 0 && (module.exports = {
325
+ IntegrationCard
326
+ });
@@ -0,0 +1,11 @@
1
+ import {
2
+ IntegrationCard
3
+ } from "../../chunk-CEEVYRQA.mjs";
4
+ import "../../chunk-WL6WVV47.mjs";
5
+ import "../../chunk-NOOEKOWY.mjs";
6
+ import "../../chunk-R4HCRDU5.mjs";
7
+ import "../../chunk-AFML43VJ.mjs";
8
+ import "../../chunk-WNQUEZJF.mjs";
9
+ export {
10
+ IntegrationCard
11
+ };