@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.
- package/.turbo/turbo-build.log +92 -92
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-SYJ6LVJ6.mjs → chunk-3ZU5BH6X.mjs} +1 -1
- package/dist/{chunk-FTQ2AKZ2.mjs → chunk-4QTHK7ML.mjs} +1 -1
- package/dist/{chunk-T5HU4S4X.mjs → chunk-C7ZTZTEW.mjs} +1 -1
- package/dist/{chunk-KI57CBJR.mjs → chunk-DQNNP6I4.mjs} +33 -24
- package/dist/{chunk-AE4JKISB.mjs → chunk-EEI4FLEE.mjs} +1 -1
- package/dist/{chunk-IEQX4UVP.mjs → chunk-EY36WDCF.mjs} +1 -1
- package/dist/{chunk-HB5BKRMH.mjs → chunk-F3CU6KEI.mjs} +11 -1
- package/dist/chunk-H65NB7KI.mjs +182 -0
- package/dist/{chunk-TRM3KIHT.mjs → chunk-ICCPK3J2.mjs} +1 -1
- package/dist/{chunk-KGVVK6OS.mjs → chunk-ORMC3TV3.mjs} +3 -1
- package/dist/{chunk-HSXMTFIM.mjs → chunk-UD5UF5OC.mjs} +1 -1
- package/dist/{chunk-IW33VLL5.mjs → chunk-X3VEDQPO.mjs} +7 -3
- package/dist/{chunk-AAZSLTER.mjs → chunk-XGRSPFFC.mjs} +16 -7
- package/dist/components/ui/about-you-form.js +9 -6
- package/dist/components/ui/about-you-form.mjs +2 -2
- package/dist/components/ui/ai-conversations/index.js +4 -1
- package/dist/components/ui/ai-conversations/index.mjs +2 -2
- package/dist/components/ui/appointment-availability-settings.js +24 -12
- package/dist/components/ui/appointment-availability-settings.mjs +3 -3
- package/dist/components/ui/appointment-book-dialog.js +33 -24
- package/dist/components/ui/appointment-book-dialog.mjs +1 -1
- package/dist/components/ui/appointment-detail-sheet.js +3 -1
- package/dist/components/ui/appointment-detail-sheet.mjs +1 -1
- package/dist/components/ui/appointment-gmail-connect.js +127 -70
- package/dist/components/ui/appointment-gmail-connect.mjs +1 -1
- package/dist/components/ui/backoffice-signup-steps.js +23 -16
- package/dist/components/ui/backoffice-signup-steps.mjs +3 -3
- package/dist/components/ui/bank-statement-generate-dialog.js +12 -9
- package/dist/components/ui/bank-statement-generate-dialog.mjs +3 -3
- package/dist/components/ui/color-picker.js +21 -14
- package/dist/components/ui/color-picker.mjs +2 -2
- package/dist/components/ui/date-picker.js +6 -3
- package/dist/components/ui/date-picker.mjs +2 -2
- package/dist/components/ui/opportunity-edit-modals.js +45 -42
- package/dist/components/ui/opportunity-edit-modals.mjs +3 -3
- package/dist/components/ui/opportunity-summary-tab.js +48 -45
- package/dist/components/ui/opportunity-summary-tab.mjs +4 -4
- package/dist/components/ui/pipeline-dialogs.js +12 -9
- package/dist/components/ui/pipeline-dialogs.mjs +3 -3
- package/dist/components/ui/popover.js +22 -1
- package/dist/components/ui/popover.mjs +3 -1
- package/dist/components/ui/savings-goal-modal.js +11 -8
- package/dist/components/ui/savings-goal-modal.mjs +2 -2
- package/dist/index.js +349 -257
- package/dist/index.mjs +15 -13
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/index.tsx +4 -0
- package/src/components/ui/appointment-availability-settings.tsx +32 -19
- package/src/components/ui/appointment-book-dialog.tsx +52 -73
- package/src/components/ui/appointment-detail-sheet.tsx +3 -1
- package/src/components/ui/appointment-gmail-connect.tsx +89 -29
- package/src/components/ui/color-picker.tsx +12 -4
- package/src/components/ui/popover.tsx +33 -2
- package/src/styles/styles-css.ts +1 -1
- package/dist/chunk-7TMPOZDE.mjs +0 -122
|
@@ -4,6 +4,35 @@ import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
|
4
4
|
import { cn } from "@/lib/utils";
|
|
5
5
|
import { useThemeVars } from "@/lib/theme-provider";
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Provides a DOM container for Popover portals rendered inside a Drawer/Dialog.
|
|
9
|
+
* Without this, Base UI's FloatingPortal renders to document.body, which sits
|
|
10
|
+
* outside Radix's DismissableLayer — causing outside-click detection to fire
|
|
11
|
+
* and close the Drawer when the user clicks inside the popover.
|
|
12
|
+
*
|
|
13
|
+
* Usage: wrap DrawerContent body with <PopoverPortalProvider container={ref}>
|
|
14
|
+
* and place a <div ref={...} /> inside DrawerContent as the portal target.
|
|
15
|
+
*/
|
|
16
|
+
const PopoverPortalContext = React.createContext<
|
|
17
|
+
HTMLElement | null | undefined
|
|
18
|
+
>(undefined);
|
|
19
|
+
|
|
20
|
+
export type PopoverPortalProviderProps = {
|
|
21
|
+
container: HTMLElement | null | undefined;
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
function PopoverPortalProvider({
|
|
26
|
+
container,
|
|
27
|
+
children,
|
|
28
|
+
}: PopoverPortalProviderProps): ReactElement {
|
|
29
|
+
return (
|
|
30
|
+
<PopoverPortalContext.Provider value={container}>
|
|
31
|
+
{children}
|
|
32
|
+
</PopoverPortalContext.Provider>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
7
36
|
export type PopoverProps = React.ComponentProps<typeof PopoverPrimitive.Root>;
|
|
8
37
|
|
|
9
38
|
function Popover({ ...props }: PopoverProps): ReactElement {
|
|
@@ -33,8 +62,9 @@ function PopoverContent({
|
|
|
33
62
|
...props
|
|
34
63
|
}: PopoverContentProps): ReactElement {
|
|
35
64
|
const themeVars = useThemeVars();
|
|
65
|
+
const portalContainer = React.useContext(PopoverPortalContext);
|
|
36
66
|
return (
|
|
37
|
-
<PopoverPrimitive.Portal>
|
|
67
|
+
<PopoverPrimitive.Portal container={portalContainer ?? undefined}>
|
|
38
68
|
<PopoverPrimitive.Positioner
|
|
39
69
|
className="z-[200]"
|
|
40
70
|
align={align}
|
|
@@ -43,7 +73,7 @@ function PopoverContent({
|
|
|
43
73
|
<PopoverPrimitive.Popup
|
|
44
74
|
className={cn(
|
|
45
75
|
"z-50 w-72 border border-border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 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",
|
|
46
|
-
className
|
|
76
|
+
className
|
|
47
77
|
)}
|
|
48
78
|
data-slot="popover-content"
|
|
49
79
|
style={{ ...themeVars, ...style } as React.CSSProperties}
|
|
@@ -114,4 +144,5 @@ export {
|
|
|
114
144
|
PopoverHeader,
|
|
115
145
|
PopoverTitle,
|
|
116
146
|
PopoverDescription,
|
|
147
|
+
PopoverPortalProvider,
|
|
117
148
|
};
|