@salemcobalt/ui 0.2.0-rc.32 → 0.2.0-rc.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/dist/index.d.ts +6 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +6 -6
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2742,7 +2742,11 @@ interface PopoverRootProps {
|
|
|
2742
2742
|
defaultOpen?: boolean | undefined;
|
|
2743
2743
|
/** Called when the popover opens or closes. */
|
|
2744
2744
|
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
2745
|
-
/**
|
|
2745
|
+
/**
|
|
2746
|
+
* Default `true` (2026-11-11): the page doesn't scroll and focus stays in the popover until it closes, so an anchored
|
|
2747
|
+
* panel never drifts away from its trigger on a phone. `false` for a popover that opens on hover or must let the page
|
|
2748
|
+
* keep scrolling.
|
|
2749
|
+
*/
|
|
2746
2750
|
modal?: boolean | undefined;
|
|
2747
2751
|
children?: ReactNode | undefined;
|
|
2748
2752
|
}
|
|
@@ -2793,7 +2797,7 @@ interface PopoverCloseProps extends Omit<Popover$1.Close.Props, 'className'> {
|
|
|
2793
2797
|
}
|
|
2794
2798
|
/** With no children or `render`, the × in the corner. Otherwise wraps any Button: `<Popover.Close render={<Button variant="ghost" />}>Done</Popover.Close>`. */
|
|
2795
2799
|
declare function Close({ className, children, render, ...rest }: PopoverCloseProps): react.JSX.Element;
|
|
2796
|
-
/** A
|
|
2800
|
+
/** A panel anchored to a trigger (modal by default: the page doesn't scroll while it's open), for a small form, a status summary or a legend. Built on Base UI's Popover. */
|
|
2797
2801
|
declare const Popover: {
|
|
2798
2802
|
Root: typeof Root$1;
|
|
2799
2803
|
Trigger: typeof Trigger;
|
package/dist/index.js
CHANGED
|
@@ -3302,7 +3302,7 @@ function PriorityNav({
|
|
|
3302
3302
|
// src/components/Popover/Popover.tsx
|
|
3303
3303
|
import { Popover as BasePopover } from "@base-ui/react/popover";
|
|
3304
3304
|
import { jsx as jsx32, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3305
|
-
function Root6({ open, defaultOpen, onOpenChange, modal =
|
|
3305
|
+
function Root6({ open, defaultOpen, onOpenChange, modal = true, children }) {
|
|
3306
3306
|
return /* @__PURE__ */ jsx32(
|
|
3307
3307
|
BasePopover.Root,
|
|
3308
3308
|
{
|