@wealthx/shadcn 1.5.18 → 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 +12 -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-ZAXZBOWI.mjs → chunk-EHQ35FYA.mjs} +4 -1
- package/dist/{chunk-WZFBLRNP.mjs → chunk-ETT5JAXF.mjs} +2 -2
- package/dist/{chunk-L7IZ3YHI.mjs → chunk-F3MIRXRF.mjs} +2 -2
- package/dist/{chunk-G7YCLJ53.mjs → chunk-G6RCC2SF.mjs} +2 -2
- package/dist/{chunk-NCMV3LTP.mjs → chunk-H3PTREG6.mjs} +4 -1
- package/dist/{chunk-7II6QRCZ.mjs → chunk-H5NI6ZIU.mjs} +1 -1
- 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-TLLD5IU6.mjs → chunk-PSBQ4I3M.mjs} +1 -1
- 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-assistant-drawer.mjs +2 -2
- 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 +4 -4
- 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/drawer.js +4 -1
- package/dist/components/ui/drawer.mjs +1 -1
- package/dist/components/ui/file-preview-dialog.js +13 -6
- package/dist/components/ui/file-preview-dialog.mjs +3 -3
- package/dist/components/ui/financial-drawers.mjs +2 -2
- 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/scenario-drawer.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/sheet.js +4 -1
- package/dist/components/ui/sheet.mjs +1 -1
- package/dist/components/ui/signup-form-primitives.js +6 -1
- package/dist/components/ui/signup-form-primitives.mjs +2 -2
- package/dist/index.js +168 -147
- package/dist/index.mjs +36 -34
- 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/drawer.tsx +4 -1
- package/src/components/ui/select.tsx +34 -1
- package/src/components/ui/sheet.tsx +4 -1
- package/src/styles/globals.css +6 -0
- 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"
|
|
@@ -125,7 +125,10 @@ function DrawerFooter({
|
|
|
125
125
|
}: DrawerFooterProps): ReactElement {
|
|
126
126
|
return (
|
|
127
127
|
<div
|
|
128
|
-
className={cn(
|
|
128
|
+
className={cn(
|
|
129
|
+
"mt-auto flex flex-row justify-end gap-2 border-t border-border p-4",
|
|
130
|
+
className,
|
|
131
|
+
)}
|
|
129
132
|
data-slot="drawer-footer"
|
|
130
133
|
{...props}
|
|
131
134
|
/>
|
|
@@ -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,
|
|
@@ -136,7 +136,10 @@ export type SheetFooterProps = React.ComponentProps<"div">;
|
|
|
136
136
|
function SheetFooter({ className, ...props }: SheetFooterProps): ReactElement {
|
|
137
137
|
return (
|
|
138
138
|
<div
|
|
139
|
-
className={cn(
|
|
139
|
+
className={cn(
|
|
140
|
+
"mt-auto flex flex-row justify-end gap-2 border-t border-border p-4",
|
|
141
|
+
className,
|
|
142
|
+
)}
|
|
140
143
|
data-slot="sheet-footer"
|
|
141
144
|
{...props}
|
|
142
145
|
/>
|
package/src/styles/globals.css
CHANGED
|
@@ -664,3 +664,9 @@ textarea::selection {
|
|
|
664
664
|
[data-sonner-toast][data-type="info"] {
|
|
665
665
|
box-shadow: inset 4px 0 0 var(--info) !important;
|
|
666
666
|
}
|
|
667
|
+
|
|
668
|
+
/* DrawerFooter: stretch buttons to fill full row for bottom/top drawers */
|
|
669
|
+
[data-vaul-drawer-direction="bottom"] [data-slot="drawer-footer"] > *,
|
|
670
|
+
[data-vaul-drawer-direction="top"] [data-slot="drawer-footer"] > * {
|
|
671
|
+
flex: 1 1 0%;
|
|
672
|
+
}
|