@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
package/package.json
CHANGED
package/src/components/index.tsx
CHANGED
|
@@ -995,6 +995,7 @@ export {
|
|
|
995
995
|
SelectGroup,
|
|
996
996
|
SelectItem,
|
|
997
997
|
SelectLabel,
|
|
998
|
+
SelectPortalProvider,
|
|
998
999
|
SelectScrollDownButton,
|
|
999
1000
|
SelectScrollUpButton,
|
|
1000
1001
|
SelectSeparator,
|
|
@@ -1007,6 +1008,7 @@ export type {
|
|
|
1007
1008
|
SelectGroupProps,
|
|
1008
1009
|
SelectItemProps,
|
|
1009
1010
|
SelectLabelProps,
|
|
1011
|
+
SelectPortalProviderProps,
|
|
1010
1012
|
SelectScrollDownButtonProps,
|
|
1011
1013
|
SelectScrollUpButtonProps,
|
|
1012
1014
|
SelectSeparatorProps,
|
|
@@ -59,7 +59,7 @@ function DialogOverlay({
|
|
|
59
59
|
<DialogPrimitive.Backdrop
|
|
60
60
|
className={cn(
|
|
61
61
|
// WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
|
|
62
|
-
"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",
|
|
62
|
+
"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",
|
|
63
63
|
className,
|
|
64
64
|
)}
|
|
65
65
|
data-slot="dialog-overlay"
|
|
@@ -146,7 +146,9 @@ function DialogContent({
|
|
|
146
146
|
// max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
|
|
147
147
|
// Fixed max-width is applied via inline style (sizeStyle) to avoid
|
|
148
148
|
// Tailwind v4 class-scanning gaps with dynamic class lookups.
|
|
149
|
-
|
|
149
|
+
// pointer-events-auto: Vaul Drawer (Radix DismissableLayer) sets body{pointer-events:none}
|
|
150
|
+
// when open — dialog portals to body and must override that on its own element.
|
|
151
|
+
"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",
|
|
150
152
|
// "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
|
|
151
153
|
isAuto ? "w-auto" : "w-full",
|
|
152
154
|
align === "center"
|
|
@@ -5,6 +5,37 @@ import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
|
5
5
|
import { cn } from "@/lib/utils";
|
|
6
6
|
import { useThemeVars } from "@/lib/theme-provider";
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Provides a DOM container for Select portals so they render inside the
|
|
10
|
+
* DrawerContent element (which has pointer-events:auto from Radix
|
|
11
|
+
* DismissableLayer) rather than at document.body (which Radix sets to
|
|
12
|
+
* pointer-events:none when a modal dialog is open).
|
|
13
|
+
*
|
|
14
|
+
* Usage inside a Vaul Drawer:
|
|
15
|
+
* const [portalEl, setPortalEl] = useState<HTMLElement | undefined>();
|
|
16
|
+
* <SelectPortalProvider container={portalEl}>…</SelectPortalProvider>
|
|
17
|
+
* <div ref={el => el && setPortalEl(el)} /> ← place inside DrawerContent
|
|
18
|
+
*/
|
|
19
|
+
const SelectPortalContext = React.createContext<HTMLElement | undefined>(
|
|
20
|
+
undefined,
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
export type SelectPortalProviderProps = {
|
|
24
|
+
container: HTMLElement | undefined;
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
function SelectPortalProvider({
|
|
29
|
+
container,
|
|
30
|
+
children,
|
|
31
|
+
}: SelectPortalProviderProps): ReactElement {
|
|
32
|
+
return (
|
|
33
|
+
<SelectPortalContext.Provider value={container}>
|
|
34
|
+
{children}
|
|
35
|
+
</SelectPortalContext.Provider>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
8
39
|
export type SelectProps = React.ComponentProps<typeof SelectPrimitive.Root>;
|
|
9
40
|
|
|
10
41
|
function Select({ ...props }: SelectProps): ReactElement {
|
|
@@ -68,8 +99,9 @@ function SelectContent({
|
|
|
68
99
|
...props
|
|
69
100
|
}: SelectContentProps): ReactElement {
|
|
70
101
|
const themeVars = useThemeVars();
|
|
102
|
+
const portalContainer = React.useContext(SelectPortalContext);
|
|
71
103
|
return (
|
|
72
|
-
<SelectPrimitive.Portal>
|
|
104
|
+
<SelectPrimitive.Portal container={portalContainer}>
|
|
73
105
|
<SelectPrimitive.Positioner
|
|
74
106
|
className="z-[200]"
|
|
75
107
|
align="start"
|
|
@@ -206,6 +238,7 @@ export {
|
|
|
206
238
|
SelectGroup,
|
|
207
239
|
SelectItem,
|
|
208
240
|
SelectLabel,
|
|
241
|
+
SelectPortalProvider,
|
|
209
242
|
SelectScrollDownButton,
|
|
210
243
|
SelectScrollUpButton,
|
|
211
244
|
SelectSeparator,
|