@bizapps/ui 1.3.3 → 1.3.4
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/dist/main.cjs +5 -3
- package/dist/main.cjs.map +1 -1
- package/dist/main.d.cts +15 -2
- package/dist/main.d.ts +15 -2
- package/dist/main.js +5 -3
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.d.cts
CHANGED
|
@@ -353,7 +353,14 @@ declare function TooltipContent({ className, sideOffset, variant, size, children
|
|
|
353
353
|
|
|
354
354
|
declare function Popover({ ...props }: ComponentProps<typeof Popover$1.Root>): react.JSX.Element;
|
|
355
355
|
declare function PopoverTrigger({ ...props }: ComponentProps<typeof Popover$1.Trigger>): react.JSX.Element;
|
|
356
|
-
declare function PopoverContent({ className, align, sideOffset, ...props }: ComponentProps<typeof Popover$1.Content>
|
|
356
|
+
declare function PopoverContent({ className, align, sideOffset, container, ...props }: ComponentProps<typeof Popover$1.Content> & {
|
|
357
|
+
/**
|
|
358
|
+
* Portal target for the popover content. Pass the Dialog content node when
|
|
359
|
+
* the popover lives inside a modal Dialog so the content stays within the
|
|
360
|
+
* Dialog's scroll-lock shard — otherwise wheel/touch scrolling is blocked.
|
|
361
|
+
*/
|
|
362
|
+
container?: ComponentProps<typeof Popover$1.Portal>['container'];
|
|
363
|
+
}): react.JSX.Element;
|
|
357
364
|
declare function PopoverAnchor({ ...props }: ComponentProps<typeof Popover$1.Anchor>): react.JSX.Element;
|
|
358
365
|
declare function PopoverHeader({ className, ...props }: ComponentProps<'div'>): react.JSX.Element;
|
|
359
366
|
declare function PopoverTitle({ className, ...props }: ComponentProps<'h2'>): react.JSX.Element;
|
|
@@ -432,8 +439,14 @@ interface ComboboxProps {
|
|
|
432
439
|
emptyMessage?: string;
|
|
433
440
|
disabled?: boolean;
|
|
434
441
|
className?: string;
|
|
442
|
+
/**
|
|
443
|
+
* Portal target for the dropdown. Pass the Dialog content node when the
|
|
444
|
+
* Combobox is rendered inside a modal Dialog so the list stays within the
|
|
445
|
+
* Dialog's scroll-lock shard — otherwise wheel/touch scrolling is blocked.
|
|
446
|
+
*/
|
|
447
|
+
container?: HTMLElement | null;
|
|
435
448
|
}
|
|
436
|
-
declare function Combobox({ options, value, onValueChange, placeholder, searchPlaceholder, emptyMessage, disabled, className, }: ComboboxProps): react.JSX.Element;
|
|
449
|
+
declare function Combobox({ options, value, onValueChange, placeholder, searchPlaceholder, emptyMessage, disabled, className, container, }: ComboboxProps): react.JSX.Element;
|
|
437
450
|
|
|
438
451
|
declare function DropdownMenu({ ...props }: ComponentProps<typeof DropdownMenu$1.Root>): react.JSX.Element;
|
|
439
452
|
declare function DropdownMenuPortal({ ...props }: ComponentProps<typeof DropdownMenu$1.Portal>): react.JSX.Element;
|
package/dist/main.d.ts
CHANGED
|
@@ -353,7 +353,14 @@ declare function TooltipContent({ className, sideOffset, variant, size, children
|
|
|
353
353
|
|
|
354
354
|
declare function Popover({ ...props }: ComponentProps<typeof Popover$1.Root>): react.JSX.Element;
|
|
355
355
|
declare function PopoverTrigger({ ...props }: ComponentProps<typeof Popover$1.Trigger>): react.JSX.Element;
|
|
356
|
-
declare function PopoverContent({ className, align, sideOffset, ...props }: ComponentProps<typeof Popover$1.Content>
|
|
356
|
+
declare function PopoverContent({ className, align, sideOffset, container, ...props }: ComponentProps<typeof Popover$1.Content> & {
|
|
357
|
+
/**
|
|
358
|
+
* Portal target for the popover content. Pass the Dialog content node when
|
|
359
|
+
* the popover lives inside a modal Dialog so the content stays within the
|
|
360
|
+
* Dialog's scroll-lock shard — otherwise wheel/touch scrolling is blocked.
|
|
361
|
+
*/
|
|
362
|
+
container?: ComponentProps<typeof Popover$1.Portal>['container'];
|
|
363
|
+
}): react.JSX.Element;
|
|
357
364
|
declare function PopoverAnchor({ ...props }: ComponentProps<typeof Popover$1.Anchor>): react.JSX.Element;
|
|
358
365
|
declare function PopoverHeader({ className, ...props }: ComponentProps<'div'>): react.JSX.Element;
|
|
359
366
|
declare function PopoverTitle({ className, ...props }: ComponentProps<'h2'>): react.JSX.Element;
|
|
@@ -432,8 +439,14 @@ interface ComboboxProps {
|
|
|
432
439
|
emptyMessage?: string;
|
|
433
440
|
disabled?: boolean;
|
|
434
441
|
className?: string;
|
|
442
|
+
/**
|
|
443
|
+
* Portal target for the dropdown. Pass the Dialog content node when the
|
|
444
|
+
* Combobox is rendered inside a modal Dialog so the list stays within the
|
|
445
|
+
* Dialog's scroll-lock shard — otherwise wheel/touch scrolling is blocked.
|
|
446
|
+
*/
|
|
447
|
+
container?: HTMLElement | null;
|
|
435
448
|
}
|
|
436
|
-
declare function Combobox({ options, value, onValueChange, placeholder, searchPlaceholder, emptyMessage, disabled, className, }: ComboboxProps): react.JSX.Element;
|
|
449
|
+
declare function Combobox({ options, value, onValueChange, placeholder, searchPlaceholder, emptyMessage, disabled, className, container, }: ComboboxProps): react.JSX.Element;
|
|
437
450
|
|
|
438
451
|
declare function DropdownMenu({ ...props }: ComponentProps<typeof DropdownMenu$1.Root>): react.JSX.Element;
|
|
439
452
|
declare function DropdownMenuPortal({ ...props }: ComponentProps<typeof DropdownMenu$1.Portal>): react.JSX.Element;
|
package/dist/main.js
CHANGED
|
@@ -2121,9 +2121,10 @@ function PopoverContent({
|
|
|
2121
2121
|
className,
|
|
2122
2122
|
align = "center",
|
|
2123
2123
|
sideOffset = 4,
|
|
2124
|
+
container,
|
|
2124
2125
|
...props
|
|
2125
2126
|
}) {
|
|
2126
|
-
return /* @__PURE__ */ jsx(Popover$1.Portal, { children: /* @__PURE__ */ jsx(
|
|
2127
|
+
return /* @__PURE__ */ jsx(Popover$1.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
2127
2128
|
Popover$1.Content,
|
|
2128
2129
|
{
|
|
2129
2130
|
"data-slot": "popover-content",
|
|
@@ -2636,7 +2637,8 @@ function Combobox({
|
|
|
2636
2637
|
searchPlaceholder = "Search...",
|
|
2637
2638
|
emptyMessage = "No results found.",
|
|
2638
2639
|
disabled = false,
|
|
2639
|
-
className
|
|
2640
|
+
className,
|
|
2641
|
+
container
|
|
2640
2642
|
}) {
|
|
2641
2643
|
const [open, setOpen] = useState(false);
|
|
2642
2644
|
const selected = options.find((opt) => opt.value === value);
|
|
@@ -2659,7 +2661,7 @@ function Combobox({
|
|
|
2659
2661
|
]
|
|
2660
2662
|
}
|
|
2661
2663
|
) }),
|
|
2662
|
-
/* @__PURE__ */ jsx(PopoverContent, { className: "w-64 rounded-lg p-0", align: "start", children: /* @__PURE__ */ jsxs(Command, { className: "rounded-lg", children: [
|
|
2664
|
+
/* @__PURE__ */ jsx(PopoverContent, { className: "w-64 rounded-lg p-0", align: "start", container, children: /* @__PURE__ */ jsxs(Command, { className: "rounded-lg", children: [
|
|
2663
2665
|
/* @__PURE__ */ jsxs("div", { className: "border-border flex items-center gap-2 border-b px-3", children: [
|
|
2664
2666
|
/* @__PURE__ */ jsx(SearchIcon, { size: 14, className: "text-muted-foreground shrink-0" }),
|
|
2665
2667
|
/* @__PURE__ */ jsx(
|