@wealthx/shadcn 1.5.19 → 1.5.20
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 +148 -148
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-PUGQVHQL.mjs → chunk-2SDEURIQ.mjs} +2 -2
- package/dist/{chunk-STDCXTUU.mjs → chunk-3S4XQTAL.mjs} +2 -2
- package/dist/{chunk-ANERULZS.mjs → chunk-4UCRTTVL.mjs} +1 -1
- package/dist/{chunk-6LWCFAB4.mjs → chunk-57QES5LX.mjs} +1 -1
- package/dist/{chunk-KICT4VQL.mjs → chunk-5G2M45CA.mjs} +1 -1
- package/dist/{chunk-K3XP5ETH.mjs → chunk-66NM4AX2.mjs} +2 -2
- package/dist/{chunk-LWYMZHN7.mjs → chunk-6HTE24TP.mjs} +3 -3
- package/dist/{chunk-SSUK6C2K.mjs → chunk-6WRDXE7A.mjs} +1 -1
- package/dist/{chunk-RPOIXMHW.mjs → chunk-AADJ5IT6.mjs} +1 -1
- package/dist/{chunk-DKH35J4U.mjs → chunk-BWG7AX6X.mjs} +2 -2
- package/dist/{chunk-UBHBIWIA.mjs → chunk-DK55HZPN.mjs} +2 -2
- package/dist/{chunk-2UA4CPE5.mjs → chunk-DWJHPNFL.mjs} +1 -1
- package/dist/{chunk-WZFBLRNP.mjs → chunk-ETT5JAXF.mjs} +2 -2
- package/dist/{chunk-GDBM2GL5.mjs → chunk-F3MIRXRF.mjs} +1 -1
- package/dist/{chunk-G7YCLJ53.mjs → chunk-G6RCC2SF.mjs} +2 -2
- package/dist/{chunk-TUC2BNUR.mjs → chunk-IG7JBQZO.mjs} +2 -2
- package/dist/{chunk-GAXNO4JB.mjs → chunk-INGYBZGU.mjs} +1 -1
- package/dist/{chunk-UXWNUMQA.mjs → chunk-IT3QJF3D.mjs} +1 -1
- package/dist/{chunk-45V7X563.mjs → chunk-JGUC3KCA.mjs} +2 -2
- package/dist/{chunk-C4ESZLGT.mjs → chunk-K4GJTP6N.mjs} +1 -1
- package/dist/{chunk-USOVLDGS.mjs → chunk-K6VCC2MK.mjs} +13 -1
- package/dist/{chunk-5BU7TNB4.mjs → chunk-NEMWMXGL.mjs} +2 -2
- package/dist/{chunk-B3CTBLIY.mjs → chunk-NTIFG5A7.mjs} +2 -2
- package/dist/{chunk-33VT74R4.mjs → chunk-OFQFD2E2.mjs} +1 -1
- package/dist/{chunk-LI2CTS5O.mjs → chunk-OIETBBXQ.mjs} +4 -2
- package/dist/{chunk-XNX3XJ2F.mjs → chunk-QJ3RSZF4.mjs} +1 -1
- package/dist/{chunk-3NJPNSJG.mjs → chunk-RGHKARAK.mjs} +1 -1
- package/dist/{chunk-RFWP2325.mjs → chunk-RJHE3V4M.mjs} +1 -1
- package/dist/{chunk-SH5L5VG6.mjs → chunk-RVDBYV2B.mjs} +1 -1
- package/dist/{chunk-SU6TPDEU.mjs → chunk-SET6GFGL.mjs} +1 -1
- package/dist/{chunk-JJSA772M.mjs → chunk-WIDZVCH3.mjs} +1 -1
- package/dist/components/ui/add-column-modal.js +4 -2
- package/dist/components/ui/add-column-modal.mjs +2 -2
- package/dist/components/ui/add-lead-modal.js +13 -6
- package/dist/components/ui/add-lead-modal.mjs +4 -4
- package/dist/components/ui/ai-builder.js +4 -2
- package/dist/components/ui/ai-builder.mjs +2 -2
- package/dist/components/ui/ai-conversations.js +4 -2
- package/dist/components/ui/ai-conversations.mjs +2 -2
- package/dist/components/ui/appointment-action-dialogs.js +4 -2
- package/dist/components/ui/appointment-action-dialogs.mjs +2 -2
- package/dist/components/ui/appointment-availability-settings.js +10 -3
- package/dist/components/ui/appointment-availability-settings.mjs +3 -3
- package/dist/components/ui/appointment-book-dialog.js +10 -3
- package/dist/components/ui/appointment-book-dialog.mjs +3 -3
- package/dist/components/ui/appointment-detail-sheet.js +4 -2
- package/dist/components/ui/appointment-detail-sheet.mjs +3 -3
- package/dist/components/ui/appointment-upcoming-card.js +4 -2
- package/dist/components/ui/appointment-upcoming-card.mjs +2 -2
- package/dist/components/ui/backoffice-signup-steps.js +6 -1
- package/dist/components/ui/backoffice-signup-steps.mjs +3 -3
- package/dist/components/ui/bank-statement-generate-dialog.js +13 -6
- package/dist/components/ui/bank-statement-generate-dialog.mjs +4 -4
- package/dist/components/ui/bank-statement-pdf-viewer.js +4 -2
- package/dist/components/ui/bank-statement-pdf-viewer.mjs +2 -2
- package/dist/components/ui/category-edit-dialog.js +4 -2
- package/dist/components/ui/category-edit-dialog.mjs +2 -2
- package/dist/components/ui/contact-alert-dialog/index.js +22 -15
- package/dist/components/ui/contact-alert-dialog/index.mjs +3 -3
- package/dist/components/ui/create-contact-modal.js +25 -18
- package/dist/components/ui/create-contact-modal.mjs +3 -3
- package/dist/components/ui/csv-import-modal.js +4 -2
- package/dist/components/ui/csv-import-modal.mjs +2 -2
- package/dist/components/ui/dashboard-transactions-table.js +4 -2
- package/dist/components/ui/dashboard-transactions-table.mjs +2 -2
- package/dist/components/ui/data-table.js +13 -8
- package/dist/components/ui/data-table.mjs +3 -3
- package/dist/components/ui/dialog.js +4 -2
- package/dist/components/ui/dialog.mjs +1 -1
- package/dist/components/ui/document-checklist-template.js +6 -1
- package/dist/components/ui/document-checklist-template.mjs +2 -2
- package/dist/components/ui/file-preview-dialog.js +13 -6
- package/dist/components/ui/file-preview-dialog.mjs +3 -3
- package/dist/components/ui/frontend-signup-steps.js +4 -0
- package/dist/components/ui/frontend-signup-steps.mjs +3 -3
- package/dist/components/ui/opportunity-edit-modals.js +54 -47
- package/dist/components/ui/opportunity-edit-modals.mjs +3 -3
- package/dist/components/ui/opportunity-summary-tab.js +59 -52
- package/dist/components/ui/opportunity-summary-tab.mjs +4 -4
- package/dist/components/ui/pagination.js +6 -1
- package/dist/components/ui/pagination.mjs +2 -2
- package/dist/components/ui/pipeline-dialogs.js +24 -17
- package/dist/components/ui/pipeline-dialogs.mjs +3 -3
- package/dist/components/ui/property-report-dialog.js +4 -2
- package/dist/components/ui/property-report-dialog.mjs +2 -2
- package/dist/components/ui/resource-center/index.js +4 -2
- package/dist/components/ui/resource-center/index.mjs +2 -2
- package/dist/components/ui/review-alerts-dialog.js +4 -2
- package/dist/components/ui/review-alerts-dialog.mjs +2 -2
- package/dist/components/ui/savings-goal-modal.js +4 -2
- package/dist/components/ui/savings-goal-modal.mjs +1 -1
- package/dist/components/ui/select.js +24 -1
- package/dist/components/ui/select.mjs +3 -1
- package/dist/components/ui/share-details-dialog.js +4 -2
- package/dist/components/ui/share-details-dialog.mjs +2 -2
- package/dist/components/ui/signup-form-primitives.js +6 -1
- package/dist/components/ui/signup-form-primitives.mjs +2 -2
- package/dist/index.js +160 -145
- package/dist/index.mjs +32 -30
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/index.tsx +2 -0
- package/src/components/ui/dialog.tsx +4 -2
- package/src/components/ui/select.tsx +34 -1
- package/src/styles/styles-css.ts +1 -1
|
@@ -461,7 +461,7 @@ function DialogOverlay(_a) {
|
|
|
461
461
|
__spreadValues({
|
|
462
462
|
className: cn(
|
|
463
463
|
// WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
|
|
464
|
-
"fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
464
|
+
"fixed inset-0 z-50 bg-foreground/50 pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
465
465
|
className
|
|
466
466
|
),
|
|
467
467
|
"data-slot": "dialog-overlay"
|
|
@@ -512,7 +512,9 @@ function DialogContent(_a) {
|
|
|
512
512
|
// max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
|
|
513
513
|
// Fixed max-width is applied via inline style (sizeStyle) to avoid
|
|
514
514
|
// Tailwind v4 class-scanning gaps with dynamic class lookups.
|
|
515
|
-
|
|
515
|
+
// pointer-events-auto: Vaul Drawer (Radix DismissableLayer) sets body{pointer-events:none}
|
|
516
|
+
// when open — dialog portals to body and must override that on its own element.
|
|
517
|
+
"fixed left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 border bg-background p-6 duration-200 outline-none pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
|
|
516
518
|
// "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
|
|
517
519
|
isAuto ? "w-auto" : "w-full",
|
|
518
520
|
align === "center" ? "top-[50%] translate-y-[-50%]" : "top-4 translate-y-0",
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
ConversationStatusChip,
|
|
10
10
|
ConversationsPage,
|
|
11
11
|
LeadInfoPanel
|
|
12
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-K4GJTP6N.mjs";
|
|
13
13
|
import "../../chunk-3S6KVFF5.mjs";
|
|
14
14
|
import "../../chunk-WE4YKBDE.mjs";
|
|
15
15
|
import "../../chunk-H5DTKPJ2.mjs";
|
|
16
16
|
import "../../chunk-2GIYVERS.mjs";
|
|
17
17
|
import "../../chunk-BS75ICOO.mjs";
|
|
18
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-OIETBBXQ.mjs";
|
|
19
19
|
import "../../chunk-H6NQTIF4.mjs";
|
|
20
20
|
import "../../chunk-X6RC5UWB.mjs";
|
|
21
21
|
import "../../chunk-OWFQSXVD.mjs";
|
|
@@ -646,7 +646,7 @@ function DialogOverlay(_a) {
|
|
|
646
646
|
__spreadValues({
|
|
647
647
|
className: cn(
|
|
648
648
|
// WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
|
|
649
|
-
"fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
649
|
+
"fixed inset-0 z-50 bg-foreground/50 pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
650
650
|
className
|
|
651
651
|
),
|
|
652
652
|
"data-slot": "dialog-overlay"
|
|
@@ -697,7 +697,9 @@ function DialogContent(_a) {
|
|
|
697
697
|
// max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
|
|
698
698
|
// Fixed max-width is applied via inline style (sizeStyle) to avoid
|
|
699
699
|
// Tailwind v4 class-scanning gaps with dynamic class lookups.
|
|
700
|
-
|
|
700
|
+
// pointer-events-auto: Vaul Drawer (Radix DismissableLayer) sets body{pointer-events:none}
|
|
701
|
+
// when open — dialog portals to body and must override that on its own element.
|
|
702
|
+
"fixed left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 border bg-background p-6 duration-200 outline-none pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
|
|
701
703
|
// "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
|
|
702
704
|
isAuto ? "w-auto" : "w-full",
|
|
703
705
|
align === "center" ? "top-[50%] translate-y-[-50%]" : "top-4 translate-y-0",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppointmentConfirmDialog,
|
|
3
3
|
AppointmentRescheduleDialog
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-SET6GFGL.mjs";
|
|
5
5
|
import "../../chunk-CQ7HKBEX.mjs";
|
|
6
6
|
import "../../chunk-2GIYVERS.mjs";
|
|
7
7
|
import "../../chunk-BS75ICOO.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-OIETBBXQ.mjs";
|
|
9
9
|
import "../../chunk-X6RC5UWB.mjs";
|
|
10
10
|
import "../../chunk-CEYEK3TI.mjs";
|
|
11
11
|
import "../../chunk-FBNEIYSE.mjs";
|
|
@@ -655,7 +655,7 @@ function DialogOverlay(_a) {
|
|
|
655
655
|
__spreadValues({
|
|
656
656
|
className: cn(
|
|
657
657
|
// WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
|
|
658
|
-
"fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
658
|
+
"fixed inset-0 z-50 bg-foreground/50 pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
659
659
|
className
|
|
660
660
|
),
|
|
661
661
|
"data-slot": "dialog-overlay"
|
|
@@ -706,7 +706,9 @@ function DialogContent(_a) {
|
|
|
706
706
|
// max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
|
|
707
707
|
// Fixed max-width is applied via inline style (sizeStyle) to avoid
|
|
708
708
|
// Tailwind v4 class-scanning gaps with dynamic class lookups.
|
|
709
|
-
|
|
709
|
+
// pointer-events-auto: Vaul Drawer (Radix DismissableLayer) sets body{pointer-events:none}
|
|
710
|
+
// when open — dialog portals to body and must override that on its own element.
|
|
711
|
+
"fixed left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 border bg-background p-6 duration-200 outline-none pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
|
|
710
712
|
// "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
|
|
711
713
|
isAuto ? "w-auto" : "w-full",
|
|
712
714
|
align === "center" ? "top-[50%] translate-y-[-50%]" : "top-4 translate-y-0",
|
|
@@ -839,9 +841,13 @@ function Label(_a) {
|
|
|
839
841
|
}
|
|
840
842
|
|
|
841
843
|
// src/components/ui/select.tsx
|
|
844
|
+
var React5 = __toESM(require("react"));
|
|
842
845
|
var import_lucide_react5 = require("lucide-react");
|
|
843
846
|
var import_select = require("@base-ui/react/select");
|
|
844
847
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
848
|
+
var SelectPortalContext = React5.createContext(
|
|
849
|
+
void 0
|
|
850
|
+
);
|
|
845
851
|
function Select(_a) {
|
|
846
852
|
var props = __objRest(_a, []);
|
|
847
853
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_select.Select.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
@@ -888,7 +894,8 @@ function SelectContent(_a) {
|
|
|
888
894
|
"style"
|
|
889
895
|
]);
|
|
890
896
|
const themeVars = useThemeVars();
|
|
891
|
-
|
|
897
|
+
const portalContainer = React5.useContext(SelectPortalContext);
|
|
898
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_select.Select.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
892
899
|
import_select.Select.Positioner,
|
|
893
900
|
{
|
|
894
901
|
className: "z-[200]",
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
AppointmentAvailabilitySettings,
|
|
3
3
|
MEETING_PLATFORM_OPTIONS,
|
|
4
4
|
TIMEZONE_OPTIONS
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-66NM4AX2.mjs";
|
|
6
|
+
import "../../chunk-K6VCC2MK.mjs";
|
|
7
7
|
import "../../chunk-PNSYFE3K.mjs";
|
|
8
8
|
import "../../chunk-WE4YKBDE.mjs";
|
|
9
9
|
import "../../chunk-2GIYVERS.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-OIETBBXQ.mjs";
|
|
11
11
|
import "../../chunk-UMF6LLQK.mjs";
|
|
12
12
|
import "../../chunk-FBNEIYSE.mjs";
|
|
13
13
|
import "../../chunk-LHWJQNLG.mjs";
|
|
@@ -490,7 +490,7 @@ function DialogOverlay(_a) {
|
|
|
490
490
|
__spreadValues({
|
|
491
491
|
className: cn(
|
|
492
492
|
// WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
|
|
493
|
-
"fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
493
|
+
"fixed inset-0 z-50 bg-foreground/50 pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
494
494
|
className
|
|
495
495
|
),
|
|
496
496
|
"data-slot": "dialog-overlay"
|
|
@@ -541,7 +541,9 @@ function DialogContent(_a) {
|
|
|
541
541
|
// max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
|
|
542
542
|
// Fixed max-width is applied via inline style (sizeStyle) to avoid
|
|
543
543
|
// Tailwind v4 class-scanning gaps with dynamic class lookups.
|
|
544
|
-
|
|
544
|
+
// pointer-events-auto: Vaul Drawer (Radix DismissableLayer) sets body{pointer-events:none}
|
|
545
|
+
// when open — dialog portals to body and must override that on its own element.
|
|
546
|
+
"fixed left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 border bg-background p-6 duration-200 outline-none pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
|
|
545
547
|
// "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
|
|
546
548
|
isAuto ? "w-auto" : "w-full",
|
|
547
549
|
align === "center" ? "top-[50%] translate-y-[-50%]" : "top-4 translate-y-0",
|
|
@@ -1086,9 +1088,13 @@ function RadioGroupCard(_a) {
|
|
|
1086
1088
|
}
|
|
1087
1089
|
|
|
1088
1090
|
// src/components/ui/select.tsx
|
|
1091
|
+
var React7 = __toESM(require("react"));
|
|
1089
1092
|
var import_lucide_react6 = require("lucide-react");
|
|
1090
1093
|
var import_select = require("@base-ui/react/select");
|
|
1091
1094
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1095
|
+
var SelectPortalContext = React7.createContext(
|
|
1096
|
+
void 0
|
|
1097
|
+
);
|
|
1092
1098
|
function Select(_a) {
|
|
1093
1099
|
var props = __objRest(_a, []);
|
|
1094
1100
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_select.Select.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
@@ -1135,7 +1141,8 @@ function SelectContent(_a) {
|
|
|
1135
1141
|
"style"
|
|
1136
1142
|
]);
|
|
1137
1143
|
const themeVars = useThemeVars();
|
|
1138
|
-
|
|
1144
|
+
const portalContainer = React7.useContext(SelectPortalContext);
|
|
1145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_select.Select.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1139
1146
|
import_select.Select.Positioner,
|
|
1140
1147
|
{
|
|
1141
1148
|
className: "z-[200]",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppointmentBookDialog
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-NEMWMXGL.mjs";
|
|
4
4
|
import "../../chunk-JTK6VJXY.mjs";
|
|
5
5
|
import "../../chunk-ET4MTPIY.mjs";
|
|
6
6
|
import "../../chunk-ISUA7DSB.mjs";
|
|
7
7
|
import "../../chunk-CQ7HKBEX.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-K6VCC2MK.mjs";
|
|
9
9
|
import "../../chunk-2GIYVERS.mjs";
|
|
10
10
|
import "../../chunk-BS75ICOO.mjs";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-OIETBBXQ.mjs";
|
|
12
12
|
import "../../chunk-H6NQTIF4.mjs";
|
|
13
13
|
import "../../chunk-X6RC5UWB.mjs";
|
|
14
14
|
import "../../chunk-FBNEIYSE.mjs";
|
|
@@ -842,7 +842,7 @@ function DialogOverlay(_a) {
|
|
|
842
842
|
__spreadValues({
|
|
843
843
|
className: cn(
|
|
844
844
|
// WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
|
|
845
|
-
"fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
845
|
+
"fixed inset-0 z-50 bg-foreground/50 pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
846
846
|
className
|
|
847
847
|
),
|
|
848
848
|
"data-slot": "dialog-overlay"
|
|
@@ -893,7 +893,9 @@ function DialogContent(_a) {
|
|
|
893
893
|
// max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
|
|
894
894
|
// Fixed max-width is applied via inline style (sizeStyle) to avoid
|
|
895
895
|
// Tailwind v4 class-scanning gaps with dynamic class lookups.
|
|
896
|
-
|
|
896
|
+
// pointer-events-auto: Vaul Drawer (Radix DismissableLayer) sets body{pointer-events:none}
|
|
897
|
+
// when open — dialog portals to body and must override that on its own element.
|
|
898
|
+
"fixed left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 border bg-background p-6 duration-200 outline-none pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
|
|
897
899
|
// "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
|
|
898
900
|
isAuto ? "w-auto" : "w-full",
|
|
899
901
|
align === "center" ? "top-[50%] translate-y-[-50%]" : "top-4 translate-y-0",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppointmentDetailSheet
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-F3MIRXRF.mjs";
|
|
4
|
+
import "../../chunk-SET6GFGL.mjs";
|
|
5
5
|
import "../../chunk-CQ7HKBEX.mjs";
|
|
6
6
|
import "../../chunk-H3PTREG6.mjs";
|
|
7
7
|
import "../../chunk-2GIYVERS.mjs";
|
|
8
8
|
import "../../chunk-BS75ICOO.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-OIETBBXQ.mjs";
|
|
10
10
|
import "../../chunk-H6NQTIF4.mjs";
|
|
11
11
|
import "../../chunk-X6RC5UWB.mjs";
|
|
12
12
|
import "../../chunk-CEYEK3TI.mjs";
|
|
@@ -571,7 +571,7 @@ function DialogOverlay(_a) {
|
|
|
571
571
|
__spreadValues({
|
|
572
572
|
className: cn(
|
|
573
573
|
// WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
|
|
574
|
-
"fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
574
|
+
"fixed inset-0 z-50 bg-foreground/50 pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
575
575
|
className
|
|
576
576
|
),
|
|
577
577
|
"data-slot": "dialog-overlay"
|
|
@@ -622,7 +622,9 @@ function DialogContent(_a) {
|
|
|
622
622
|
// max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
|
|
623
623
|
// Fixed max-width is applied via inline style (sizeStyle) to avoid
|
|
624
624
|
// Tailwind v4 class-scanning gaps with dynamic class lookups.
|
|
625
|
-
|
|
625
|
+
// pointer-events-auto: Vaul Drawer (Radix DismissableLayer) sets body{pointer-events:none}
|
|
626
|
+
// when open — dialog portals to body and must override that on its own element.
|
|
627
|
+
"fixed left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 border bg-background p-6 duration-200 outline-none pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
|
|
626
628
|
// "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
|
|
627
629
|
isAuto ? "w-auto" : "w-full",
|
|
628
630
|
align === "center" ? "top-[50%] translate-y-[-50%]" : "top-4 translate-y-0",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppointmentUpcomingCard
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-WIDZVCH3.mjs";
|
|
4
4
|
import "../../chunk-CQ7HKBEX.mjs";
|
|
5
5
|
import "../../chunk-2GIYVERS.mjs";
|
|
6
6
|
import "../../chunk-BS75ICOO.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-OIETBBXQ.mjs";
|
|
8
8
|
import "../../chunk-H6NQTIF4.mjs";
|
|
9
9
|
import "../../chunk-X6RC5UWB.mjs";
|
|
10
10
|
import "../../chunk-FBNEIYSE.mjs";
|
|
@@ -745,9 +745,13 @@ function FieldError(_a) {
|
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
// src/components/ui/select.tsx
|
|
748
|
+
var React4 = __toESM(require("react"));
|
|
748
749
|
var import_lucide_react3 = require("lucide-react");
|
|
749
750
|
var import_select = require("@base-ui/react/select");
|
|
750
751
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
752
|
+
var SelectPortalContext = React4.createContext(
|
|
753
|
+
void 0
|
|
754
|
+
);
|
|
751
755
|
function Select(_a) {
|
|
752
756
|
var props = __objRest(_a, []);
|
|
753
757
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_select.Select.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
@@ -794,7 +798,8 @@ function SelectContent(_a) {
|
|
|
794
798
|
"style"
|
|
795
799
|
]);
|
|
796
800
|
const themeVars = useThemeVars();
|
|
797
|
-
|
|
801
|
+
const portalContainer = React4.useContext(SelectPortalContext);
|
|
802
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_select.Select.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
798
803
|
import_select.Select.Positioner,
|
|
799
804
|
{
|
|
800
805
|
className: "z-[200]",
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
PaymentView,
|
|
7
7
|
PersonalDetailsStep,
|
|
8
8
|
StripeView
|
|
9
|
-
} from "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
} from "../../chunk-3S4XQTAL.mjs";
|
|
10
|
+
import "../../chunk-DWJHPNFL.mjs";
|
|
11
11
|
import "../../chunk-WHIW6KOB.mjs";
|
|
12
12
|
import "../../chunk-IW33VLL5.mjs";
|
|
13
13
|
import "../../chunk-I4KVSZCH.mjs";
|
|
14
14
|
import "../../chunk-KPGARKFC.mjs";
|
|
15
15
|
import "../../chunk-IKXYTCSB.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-K6VCC2MK.mjs";
|
|
17
17
|
import "../../chunk-3S6KVFF5.mjs";
|
|
18
18
|
import "../../chunk-2GIYVERS.mjs";
|
|
19
19
|
import "../../chunk-LSRGA5BI.mjs";
|
|
@@ -688,7 +688,7 @@ function DialogOverlay(_a) {
|
|
|
688
688
|
__spreadValues({
|
|
689
689
|
className: cn(
|
|
690
690
|
// WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
|
|
691
|
-
"fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
691
|
+
"fixed inset-0 z-50 bg-foreground/50 pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
692
692
|
className
|
|
693
693
|
),
|
|
694
694
|
"data-slot": "dialog-overlay"
|
|
@@ -739,7 +739,9 @@ function DialogContent(_a) {
|
|
|
739
739
|
// max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
|
|
740
740
|
// Fixed max-width is applied via inline style (sizeStyle) to avoid
|
|
741
741
|
// Tailwind v4 class-scanning gaps with dynamic class lookups.
|
|
742
|
-
|
|
742
|
+
// pointer-events-auto: Vaul Drawer (Radix DismissableLayer) sets body{pointer-events:none}
|
|
743
|
+
// when open — dialog portals to body and must override that on its own element.
|
|
744
|
+
"fixed left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 border bg-background p-6 duration-200 outline-none pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
|
|
743
745
|
// "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
|
|
744
746
|
isAuto ? "w-auto" : "w-full",
|
|
745
747
|
align === "center" ? "top-[50%] translate-y-[-50%]" : "top-4 translate-y-0",
|
|
@@ -928,9 +930,13 @@ function FieldLabel(_a) {
|
|
|
928
930
|
var import_lucide_react7 = require("lucide-react");
|
|
929
931
|
|
|
930
932
|
// src/components/ui/select.tsx
|
|
933
|
+
var React5 = __toESM(require("react"));
|
|
931
934
|
var import_lucide_react6 = require("lucide-react");
|
|
932
935
|
var import_select = require("@base-ui/react/select");
|
|
933
936
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
937
|
+
var SelectPortalContext = React5.createContext(
|
|
938
|
+
void 0
|
|
939
|
+
);
|
|
934
940
|
function Select(_a) {
|
|
935
941
|
var props = __objRest(_a, []);
|
|
936
942
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_select.Select.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
@@ -977,7 +983,8 @@ function SelectContent(_a) {
|
|
|
977
983
|
"style"
|
|
978
984
|
]);
|
|
979
985
|
const themeVars = useThemeVars();
|
|
980
|
-
|
|
986
|
+
const portalContainer = React5.useContext(SelectPortalContext);
|
|
987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_select.Select.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
981
988
|
import_select.Select.Positioner,
|
|
982
989
|
{
|
|
983
990
|
className: "z-[200]",
|
|
@@ -1243,7 +1250,7 @@ function TableCell(_a) {
|
|
|
1243
1250
|
}
|
|
1244
1251
|
|
|
1245
1252
|
// src/components/ui/toggle-group.tsx
|
|
1246
|
-
var
|
|
1253
|
+
var React6 = __toESM(require("react"));
|
|
1247
1254
|
var import_toggle_group = require("@base-ui/react/toggle-group");
|
|
1248
1255
|
var import_toggle2 = require("@base-ui/react/toggle");
|
|
1249
1256
|
|
|
@@ -1274,7 +1281,7 @@ var toggleVariants = (0, import_class_variance_authority4.cva)(
|
|
|
1274
1281
|
|
|
1275
1282
|
// src/components/ui/toggle-group.tsx
|
|
1276
1283
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1277
|
-
var ToggleGroupContext =
|
|
1284
|
+
var ToggleGroupContext = React6.createContext({
|
|
1278
1285
|
size: "default",
|
|
1279
1286
|
variant: "default",
|
|
1280
1287
|
spacing: 0
|
|
@@ -1326,7 +1333,7 @@ function ToggleGroupItem(_a) {
|
|
|
1326
1333
|
"variant",
|
|
1327
1334
|
"size"
|
|
1328
1335
|
]);
|
|
1329
|
-
const context =
|
|
1336
|
+
const context = React6.useContext(ToggleGroupContext);
|
|
1330
1337
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1331
1338
|
import_toggle2.Toggle,
|
|
1332
1339
|
__spreadProps(__spreadValues({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BankStatementGenerateDialog
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-6HTE24TP.mjs";
|
|
4
4
|
import "../../chunk-KPGARKFC.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-6WRDXE7A.mjs";
|
|
6
6
|
import "../../chunk-GT3RU6GA.mjs";
|
|
7
7
|
import "../../chunk-IKXYTCSB.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-K6VCC2MK.mjs";
|
|
9
9
|
import "../../chunk-JVMXMFBB.mjs";
|
|
10
10
|
import "../../chunk-2GIYVERS.mjs";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-OIETBBXQ.mjs";
|
|
12
12
|
import "../../chunk-UMF6LLQK.mjs";
|
|
13
13
|
import "../../chunk-FBNEIYSE.mjs";
|
|
14
14
|
import "../../chunk-LHWJQNLG.mjs";
|
|
@@ -263,7 +263,7 @@ function DialogOverlay(_a) {
|
|
|
263
263
|
__spreadValues({
|
|
264
264
|
className: cn(
|
|
265
265
|
// WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
|
|
266
|
-
"fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
266
|
+
"fixed inset-0 z-50 bg-foreground/50 pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
267
267
|
className
|
|
268
268
|
),
|
|
269
269
|
"data-slot": "dialog-overlay"
|
|
@@ -314,7 +314,9 @@ function DialogContent(_a) {
|
|
|
314
314
|
// max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
|
|
315
315
|
// Fixed max-width is applied via inline style (sizeStyle) to avoid
|
|
316
316
|
// Tailwind v4 class-scanning gaps with dynamic class lookups.
|
|
317
|
-
|
|
317
|
+
// pointer-events-auto: Vaul Drawer (Radix DismissableLayer) sets body{pointer-events:none}
|
|
318
|
+
// when open — dialog portals to body and must override that on its own element.
|
|
319
|
+
"fixed left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 border bg-background p-6 duration-200 outline-none pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
|
|
318
320
|
// "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
|
|
319
321
|
isAuto ? "w-auto" : "w-full",
|
|
320
322
|
align === "center" ? "top-[50%] translate-y-[-50%]" : "top-4 translate-y-0",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BankStatementPDFViewer
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-IT3QJF3D.mjs";
|
|
4
4
|
import "../../chunk-JVMXMFBB.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-OIETBBXQ.mjs";
|
|
6
6
|
import "../../chunk-XYSRRDBH.mjs";
|
|
7
7
|
import "../../chunk-FRCTOAKZ.mjs";
|
|
8
8
|
import "../../chunk-NOOEKOWY.mjs";
|
|
@@ -263,7 +263,7 @@ function DialogOverlay(_a) {
|
|
|
263
263
|
__spreadValues({
|
|
264
264
|
className: cn(
|
|
265
265
|
// WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
|
|
266
|
-
"fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
266
|
+
"fixed inset-0 z-50 bg-foreground/50 pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
267
267
|
className
|
|
268
268
|
),
|
|
269
269
|
"data-slot": "dialog-overlay"
|
|
@@ -314,7 +314,9 @@ function DialogContent(_a) {
|
|
|
314
314
|
// max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
|
|
315
315
|
// Fixed max-width is applied via inline style (sizeStyle) to avoid
|
|
316
316
|
// Tailwind v4 class-scanning gaps with dynamic class lookups.
|
|
317
|
-
|
|
317
|
+
// pointer-events-auto: Vaul Drawer (Radix DismissableLayer) sets body{pointer-events:none}
|
|
318
|
+
// when open — dialog portals to body and must override that on its own element.
|
|
319
|
+
"fixed left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 border bg-background p-6 duration-200 outline-none pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
|
|
318
320
|
// "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
|
|
319
321
|
isAuto ? "w-auto" : "w-full",
|
|
320
322
|
align === "center" ? "top-[50%] translate-y-[-50%]" : "top-4 translate-y-0",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CategoryEditDialog
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-OFQFD2E2.mjs";
|
|
4
4
|
import "../../chunk-PNSYFE3K.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-OIETBBXQ.mjs";
|
|
6
6
|
import "../../chunk-LBTHZSBT.mjs";
|
|
7
7
|
import "../../chunk-XYSRRDBH.mjs";
|
|
8
8
|
import "../../chunk-FRCTOAKZ.mjs";
|
|
@@ -68,7 +68,7 @@ __export(contact_alert_dialog_exports, {
|
|
|
68
68
|
module.exports = __toCommonJS(contact_alert_dialog_exports);
|
|
69
69
|
|
|
70
70
|
// src/components/ui/contact-alert-dialog/contact-alert-dialog.tsx
|
|
71
|
-
var
|
|
71
|
+
var React6 = __toESM(require("react"));
|
|
72
72
|
var import_lucide_react6 = require("lucide-react");
|
|
73
73
|
var import_ui4 = require("@react-awesome-query-builder/ui");
|
|
74
74
|
|
|
@@ -270,7 +270,7 @@ function DialogOverlay(_a) {
|
|
|
270
270
|
__spreadValues({
|
|
271
271
|
className: cn(
|
|
272
272
|
// WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
|
|
273
|
-
"fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
273
|
+
"fixed inset-0 z-50 bg-foreground/50 pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
|
|
274
274
|
className
|
|
275
275
|
),
|
|
276
276
|
"data-slot": "dialog-overlay"
|
|
@@ -321,7 +321,9 @@ function DialogContent(_a) {
|
|
|
321
321
|
// max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
|
|
322
322
|
// Fixed max-width is applied via inline style (sizeStyle) to avoid
|
|
323
323
|
// Tailwind v4 class-scanning gaps with dynamic class lookups.
|
|
324
|
-
|
|
324
|
+
// pointer-events-auto: Vaul Drawer (Radix DismissableLayer) sets body{pointer-events:none}
|
|
325
|
+
// when open — dialog portals to body and must override that on its own element.
|
|
326
|
+
"fixed left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 border bg-background p-6 duration-200 outline-none pointer-events-auto data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
|
|
325
327
|
// "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
|
|
326
328
|
isAuto ? "w-auto" : "w-full",
|
|
327
329
|
align === "center" ? "top-[50%] translate-y-[-50%]" : "top-4 translate-y-0",
|
|
@@ -922,7 +924,7 @@ function isTreeValid(tree) {
|
|
|
922
924
|
}
|
|
923
925
|
|
|
924
926
|
// src/components/ui/contact-alert-dialog/builder-ui.tsx
|
|
925
|
-
var
|
|
927
|
+
var React5 = __toESM(require("react"));
|
|
926
928
|
var import_lucide_react5 = require("lucide-react");
|
|
927
929
|
var import_accordion = require("@base-ui/react/accordion");
|
|
928
930
|
var import_ui3 = require("@react-awesome-query-builder/ui");
|
|
@@ -1060,9 +1062,13 @@ function InputGroupInput(_a) {
|
|
|
1060
1062
|
}
|
|
1061
1063
|
|
|
1062
1064
|
// src/components/ui/select.tsx
|
|
1065
|
+
var React4 = __toESM(require("react"));
|
|
1063
1066
|
var import_lucide_react4 = require("lucide-react");
|
|
1064
1067
|
var import_select = require("@base-ui/react/select");
|
|
1065
1068
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1069
|
+
var SelectPortalContext = React4.createContext(
|
|
1070
|
+
void 0
|
|
1071
|
+
);
|
|
1066
1072
|
function Select(_a) {
|
|
1067
1073
|
var props = __objRest(_a, []);
|
|
1068
1074
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_select.Select.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
@@ -1109,7 +1115,8 @@ function SelectContent(_a) {
|
|
|
1109
1115
|
"style"
|
|
1110
1116
|
]);
|
|
1111
1117
|
const themeVars = useThemeVars();
|
|
1112
|
-
|
|
1118
|
+
const portalContainer = React4.useContext(SelectPortalContext);
|
|
1119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_select.Select.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1113
1120
|
import_select.Select.Positioner,
|
|
1114
1121
|
{
|
|
1115
1122
|
className: "z-[200]",
|
|
@@ -1527,11 +1534,11 @@ function CustomBuilderUI({
|
|
|
1527
1534
|
const rootId = (_a = treeJson == null ? void 0 : treeJson.id) != null ? _a : "root";
|
|
1528
1535
|
const conjunction = (_c = (_b = treeJson == null ? void 0 : treeJson.properties) == null ? void 0 : _b.conjunction) != null ? _c : "AND";
|
|
1529
1536
|
const children = (_d = treeJson == null ? void 0 : treeJson.children1) != null ? _d : [];
|
|
1530
|
-
const longestFieldLabel =
|
|
1537
|
+
const longestFieldLabel = React5.useMemo(
|
|
1531
1538
|
() => longestOf(fields.map((f) => f.label)),
|
|
1532
1539
|
[fields]
|
|
1533
1540
|
);
|
|
1534
|
-
const longestOperatorLabel =
|
|
1541
|
+
const longestOperatorLabel = React5.useMemo(
|
|
1535
1542
|
() => longestOf(allOperatorLabels(fields)),
|
|
1536
1543
|
[fields]
|
|
1537
1544
|
);
|
|
@@ -1641,7 +1648,7 @@ function ContactAlertQueryBuilder({
|
|
|
1641
1648
|
fields = ALERT_QUERY_FIELDS,
|
|
1642
1649
|
className
|
|
1643
1650
|
}) {
|
|
1644
|
-
const defaultOpenItems =
|
|
1651
|
+
const defaultOpenItems = React6.useMemo(() => {
|
|
1645
1652
|
var _a;
|
|
1646
1653
|
const json = import_ui4.Utils.getTree(value);
|
|
1647
1654
|
return ((_a = json == null ? void 0 : json.children1) != null ? _a : []).map((c) => {
|
|
@@ -1649,7 +1656,7 @@ function ContactAlertQueryBuilder({
|
|
|
1649
1656
|
return (_a2 = c.id) != null ? _a2 : "";
|
|
1650
1657
|
}).filter(Boolean);
|
|
1651
1658
|
}, []);
|
|
1652
|
-
const renderBuilder =
|
|
1659
|
+
const renderBuilder = React6.useCallback(
|
|
1653
1660
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1654
1661
|
(props) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1655
1662
|
CustomBuilderUI,
|
|
@@ -1686,15 +1693,15 @@ function ContactAlertDialog({
|
|
|
1686
1693
|
isLoading = false,
|
|
1687
1694
|
className
|
|
1688
1695
|
}) {
|
|
1689
|
-
const [name, setName] =
|
|
1690
|
-
const [severity, setSeverity] =
|
|
1691
|
-
const [tree, setTree] =
|
|
1696
|
+
const [name, setName] = React6.useState(initialName);
|
|
1697
|
+
const [severity, setSeverity] = React6.useState(initialSeverity);
|
|
1698
|
+
const [tree, setTree] = React6.useState(
|
|
1692
1699
|
() => createAlertTree(initialQuery)
|
|
1693
1700
|
);
|
|
1694
|
-
const [shareAcrossCompany, setShareAcrossCompany] =
|
|
1701
|
+
const [shareAcrossCompany, setShareAcrossCompany] = React6.useState(
|
|
1695
1702
|
initialShareAcrossCompany
|
|
1696
1703
|
);
|
|
1697
|
-
|
|
1704
|
+
React6.useEffect(() => {
|
|
1698
1705
|
if (open) {
|
|
1699
1706
|
setName(initialName);
|
|
1700
1707
|
setSeverity(initialSeverity);
|
|
@@ -1702,7 +1709,7 @@ function ContactAlertDialog({
|
|
|
1702
1709
|
setShareAcrossCompany(initialShareAcrossCompany);
|
|
1703
1710
|
}
|
|
1704
1711
|
}, [open]);
|
|
1705
|
-
const hasValidRule =
|
|
1712
|
+
const hasValidRule = React6.useMemo(() => isTreeValid(tree), [tree]);
|
|
1706
1713
|
const canSave = name.trim().length > 0 && hasValidRule && !isLoading;
|
|
1707
1714
|
function handleSave() {
|
|
1708
1715
|
if (!canSave) return;
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
ContactAlertDialog,
|
|
5
5
|
ContactAlertQueryBuilder,
|
|
6
6
|
createAlertTree
|
|
7
|
-
} from "../../../chunk-
|
|
7
|
+
} from "../../../chunk-G6RCC2SF.mjs";
|
|
8
8
|
import "../../../chunk-7YI3HEBH.mjs";
|
|
9
9
|
import "../../../chunk-KPGARKFC.mjs";
|
|
10
10
|
import "../../../chunk-IKXYTCSB.mjs";
|
|
11
|
-
import "../../../chunk-
|
|
11
|
+
import "../../../chunk-K6VCC2MK.mjs";
|
|
12
12
|
import "../../../chunk-2GIYVERS.mjs";
|
|
13
13
|
import "../../../chunk-BS75ICOO.mjs";
|
|
14
|
-
import "../../../chunk-
|
|
14
|
+
import "../../../chunk-OIETBBXQ.mjs";
|
|
15
15
|
import "../../../chunk-LSRGA5BI.mjs";
|
|
16
16
|
import "../../../chunk-OWFQSXVD.mjs";
|
|
17
17
|
import "../../../chunk-6QAFGZC2.mjs";
|