@wealthx/shadcn 1.5.32 → 1.5.33

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 (58) hide show
  1. package/.turbo/turbo-build.log +92 -92
  2. package/CHANGELOG.md +6 -0
  3. package/dist/{chunk-SYJ6LVJ6.mjs → chunk-3ZU5BH6X.mjs} +1 -1
  4. package/dist/{chunk-FTQ2AKZ2.mjs → chunk-4QTHK7ML.mjs} +1 -1
  5. package/dist/{chunk-T5HU4S4X.mjs → chunk-C7ZTZTEW.mjs} +1 -1
  6. package/dist/{chunk-KI57CBJR.mjs → chunk-DQNNP6I4.mjs} +33 -24
  7. package/dist/{chunk-AE4JKISB.mjs → chunk-EEI4FLEE.mjs} +1 -1
  8. package/dist/{chunk-IEQX4UVP.mjs → chunk-EY36WDCF.mjs} +1 -1
  9. package/dist/{chunk-HB5BKRMH.mjs → chunk-F3CU6KEI.mjs} +11 -1
  10. package/dist/chunk-H65NB7KI.mjs +182 -0
  11. package/dist/{chunk-TRM3KIHT.mjs → chunk-ICCPK3J2.mjs} +1 -1
  12. package/dist/{chunk-KGVVK6OS.mjs → chunk-ORMC3TV3.mjs} +3 -1
  13. package/dist/{chunk-HSXMTFIM.mjs → chunk-UD5UF5OC.mjs} +1 -1
  14. package/dist/{chunk-IW33VLL5.mjs → chunk-X3VEDQPO.mjs} +7 -3
  15. package/dist/{chunk-AAZSLTER.mjs → chunk-XGRSPFFC.mjs} +16 -7
  16. package/dist/components/ui/about-you-form.js +9 -6
  17. package/dist/components/ui/about-you-form.mjs +2 -2
  18. package/dist/components/ui/ai-conversations/index.js +4 -1
  19. package/dist/components/ui/ai-conversations/index.mjs +2 -2
  20. package/dist/components/ui/appointment-availability-settings.js +24 -12
  21. package/dist/components/ui/appointment-availability-settings.mjs +3 -3
  22. package/dist/components/ui/appointment-book-dialog.js +33 -24
  23. package/dist/components/ui/appointment-book-dialog.mjs +1 -1
  24. package/dist/components/ui/appointment-detail-sheet.js +3 -1
  25. package/dist/components/ui/appointment-detail-sheet.mjs +1 -1
  26. package/dist/components/ui/appointment-gmail-connect.js +127 -70
  27. package/dist/components/ui/appointment-gmail-connect.mjs +1 -1
  28. package/dist/components/ui/backoffice-signup-steps.js +23 -16
  29. package/dist/components/ui/backoffice-signup-steps.mjs +3 -3
  30. package/dist/components/ui/bank-statement-generate-dialog.js +12 -9
  31. package/dist/components/ui/bank-statement-generate-dialog.mjs +3 -3
  32. package/dist/components/ui/color-picker.js +21 -14
  33. package/dist/components/ui/color-picker.mjs +2 -2
  34. package/dist/components/ui/date-picker.js +6 -3
  35. package/dist/components/ui/date-picker.mjs +2 -2
  36. package/dist/components/ui/opportunity-edit-modals.js +45 -42
  37. package/dist/components/ui/opportunity-edit-modals.mjs +3 -3
  38. package/dist/components/ui/opportunity-summary-tab.js +48 -45
  39. package/dist/components/ui/opportunity-summary-tab.mjs +4 -4
  40. package/dist/components/ui/pipeline-dialogs.js +12 -9
  41. package/dist/components/ui/pipeline-dialogs.mjs +3 -3
  42. package/dist/components/ui/popover.js +22 -1
  43. package/dist/components/ui/popover.mjs +3 -1
  44. package/dist/components/ui/savings-goal-modal.js +11 -8
  45. package/dist/components/ui/savings-goal-modal.mjs +2 -2
  46. package/dist/index.js +349 -257
  47. package/dist/index.mjs +15 -13
  48. package/dist/styles.css +1 -1
  49. package/package.json +1 -1
  50. package/src/components/index.tsx +4 -0
  51. package/src/components/ui/appointment-availability-settings.tsx +32 -19
  52. package/src/components/ui/appointment-book-dialog.tsx +52 -73
  53. package/src/components/ui/appointment-detail-sheet.tsx +3 -1
  54. package/src/components/ui/appointment-gmail-connect.tsx +89 -29
  55. package/src/components/ui/color-picker.tsx +12 -4
  56. package/src/components/ui/popover.tsx +33 -2
  57. package/src/styles/styles-css.ts +1 -1
  58. package/dist/chunk-7TMPOZDE.mjs +0 -122
@@ -1,122 +0,0 @@
1
- import {
2
- Separator
3
- } from "./chunk-2GIYVERS.mjs";
4
- import {
5
- Badge
6
- } from "./chunk-X6RC5UWB.mjs";
7
- import {
8
- Input
9
- } from "./chunk-LBTHZSBT.mjs";
10
- import {
11
- Button
12
- } from "./chunk-NOOEKOWY.mjs";
13
-
14
- // src/components/ui/appointment-gmail-connect.tsx
15
- import { Check, Copy, ExternalLink, Link2, Mail, Settings } from "lucide-react";
16
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
17
- var PERMISSIONS = [
18
- "Read your calendar availability",
19
- "Send appointment confirmation emails",
20
- "Create calendar events on your behalf"
21
- ];
22
- function AppointmentGmailConnect({
23
- connection,
24
- calendarLink,
25
- onCopyLink,
26
- onGoToIntegrations
27
- }) {
28
- if (connection.connected) {
29
- return /* @__PURE__ */ jsxs("div", { className: "flex flex-col border border-border bg-card", children: [
30
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 px-5 py-4", children: [
31
- /* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 shrink-0 items-center justify-center bg-primary/10", children: /* @__PURE__ */ jsx(Mail, { className: "h-5 w-5 text-primary" }) }),
32
- /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
33
- /* @__PURE__ */ jsx("p", { className: "text-base font-semibold", children: "Gmail Connected" }),
34
- /* @__PURE__ */ jsx("p", { className: "truncate text-sm text-muted-foreground", children: connection.email })
35
- ] }),
36
- /* @__PURE__ */ jsxs(Badge, { variant: "success", children: [
37
- /* @__PURE__ */ jsx(Check, { size: 10 }),
38
- "Active"
39
- ] }),
40
- connection.connectedAt && /* @__PURE__ */ jsxs("p", { className: "shrink-0 text-xs text-muted-foreground", children: [
41
- "Connected since ",
42
- connection.connectedAt
43
- ] }),
44
- /* @__PURE__ */ jsxs(
45
- Button,
46
- {
47
- size: "sm",
48
- variant: "ghost",
49
- className: "shrink-0 gap-1.5 text-muted-foreground",
50
- onClick: onGoToIntegrations,
51
- children: [
52
- /* @__PURE__ */ jsx(Settings, { className: "h-3.5 w-3.5" }),
53
- "Manage"
54
- ]
55
- }
56
- )
57
- ] }),
58
- /* @__PURE__ */ jsx(Separator, {}),
59
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 px-5 py-4", children: [
60
- /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-muted-foreground", children: "Permissions granted" }),
61
- PERMISSIONS.map((perm) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
62
- /* @__PURE__ */ jsx(Check, { className: "h-3.5 w-3.5 shrink-0 text-success" }),
63
- /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: perm })
64
- ] }, perm))
65
- ] }),
66
- calendarLink && /* @__PURE__ */ jsxs(Fragment, { children: [
67
- /* @__PURE__ */ jsx(Separator, {}),
68
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2.5 px-5 py-4", children: [
69
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
70
- /* @__PURE__ */ jsx(Link2, { className: "h-4 w-4 text-muted-foreground" }),
71
- /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold", children: "Calendar Appointment Link" })
72
- ] }),
73
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Share with clients so they can self-book." }),
74
- /* @__PURE__ */ jsxs("div", { className: "relative", children: [
75
- /* @__PURE__ */ jsx(
76
- Input,
77
- {
78
- id: "calendar-link",
79
- readOnly: true,
80
- value: calendarLink,
81
- className: "cursor-default select-all pr-10 text-muted-foreground"
82
- }
83
- ),
84
- /* @__PURE__ */ jsx(
85
- Button,
86
- {
87
- type: "button",
88
- variant: "ghost",
89
- size: "icon",
90
- onClick: onCopyLink,
91
- className: "absolute right-1 top-1/2 h-8 w-8 -translate-y-1/2",
92
- children: /* @__PURE__ */ jsx(Copy, { className: "h-4 w-4" })
93
- }
94
- )
95
- ] })
96
- ] })
97
- ] })
98
- ] });
99
- }
100
- return /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-4 border border-border bg-card px-6 py-8 text-center", children: [
101
- /* @__PURE__ */ jsx("div", { className: "flex h-12 w-12 items-center justify-center bg-muted", children: /* @__PURE__ */ jsx(Mail, { className: "h-6 w-6 text-muted-foreground" }) }),
102
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
103
- /* @__PURE__ */ jsx("p", { className: "text-base font-semibold", children: "Gmail not connected" }),
104
- /* @__PURE__ */ jsx("p", { className: "max-w-xs text-sm text-muted-foreground", children: "Connect your Gmail account in Integrations to enable calendar booking and appointment confirmations." })
105
- ] }),
106
- /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-xs flex-col gap-2 text-left", children: [
107
- /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-muted-foreground", children: "Once connected, WealthX will be able to:" }),
108
- PERMISSIONS.map((perm) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
109
- /* @__PURE__ */ jsx(Check, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
110
- /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: perm })
111
- ] }, perm))
112
- ] }),
113
- /* @__PURE__ */ jsxs(Button, { onClick: onGoToIntegrations, className: "gap-2", children: [
114
- /* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4" }),
115
- "Go to Integrations"
116
- ] })
117
- ] });
118
- }
119
-
120
- export {
121
- AppointmentGmailConnect
122
- };