@danxbot/ui 4.1.8 → 4.1.10

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.
@@ -1,6 +1,16 @@
1
1
  import type { ReactNode, Ref } from "react";
2
2
  export interface PopoverProps {
3
3
  trigger: ReactNode;
4
+ /**
5
+ * Controlled open state — for a caller that must open this popover from
6
+ * somewhere other than its own trigger (another control elsewhere on the
7
+ * screen pointing at the same content). `Dialog` and `Menu` already carry
8
+ * this exact prop; `Popover` was the one overlay a consumer could not drive
9
+ * externally, which is a real gap rather than a deliberate omission — there
10
+ * is nothing about a popover's semantics that makes it less legitimate to
11
+ * open by remote control than a dialog.
12
+ */
13
+ open?: boolean;
4
14
  side?: "top" | "bottom" | "left" | "right";
5
15
  align?: "start" | "center" | "end";
6
16
  /** Draws the little pointer at the trigger. Off by default — see below. */
@@ -56,7 +66,7 @@ export interface PopoverProps {
56
66
  "aria-labelledby"?: string;
57
67
  "aria-label"?: string;
58
68
  }
59
- export declare function Popover({ trigger, side, align, arrow, width, className, children, ref, defaultOpen, onOpenChange, "aria-labelledby": ariaLabelledBy, "aria-label": ariaLabel, }: PopoverProps): import("react").JSX.Element;
69
+ export declare function Popover({ trigger, open, side, align, arrow, width, className, children, ref, defaultOpen, onOpenChange, "aria-labelledby": ariaLabelledBy, "aria-label": ariaLabel, }: PopoverProps): import("react").JSX.Element;
60
70
  /** Closes the nearest Popover. */
61
71
  export declare function PopoverClose({ children }: {
62
72
  children: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "4.1.8",
3
+ "version": "4.1.10",
4
4
  "type": "module",
5
5
  "description": "Danxbot — a domain-agnostic React design system with motion as a first-class primitive.",
6
6
  "license": "MIT",