@salemcobalt/ui 0.2.0-rc.31 → 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 CHANGED
@@ -1908,7 +1908,7 @@ interface ToastProviderProps {
1908
1908
  * Provider inside another adds nothing (its `timeout` and `limit` are ignored), so a component may wrap itself in one
1909
1909
  * and still share the app's.
1910
1910
  */
1911
- declare function Provider({ children, timeout, limit }: ToastProviderProps): string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
1911
+ declare function Provider({ children, timeout, limit }: ToastProviderProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null | undefined;
1912
1912
  interface ToastApi {
1913
1913
  /** Shows a toast and returns its id. */
1914
1914
  add: (options: ToastOptions) => string;
@@ -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
- /** Default `false`: the page stays interactive and focus may leave. `true` makes the page inert until it closes. */
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 non-modal panel anchored to a trigger, for a small form, a status summary or a legend. Built on Base UI's Popover. */
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 = false, children }) {
3305
+ function Root6({ open, defaultOpen, onOpenChange, modal = true, children }) {
3306
3306
  return /* @__PURE__ */ jsx32(
3307
3307
  BasePopover.Root,
3308
3308
  {