@danxbot/ui 2.1.0 → 2.1.1

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.
@@ -18,8 +18,19 @@ export interface PopoverProps {
18
18
  * documentation surface cannot dispatch a click.
19
19
  */
20
20
  defaultOpen?: boolean;
21
+ /**
22
+ * Names the popup for assistive technology.
23
+ *
24
+ * Base UI gives the popup `role="dialog"`, and an unlabelled dialog
25
+ * announces itself as nothing. Declared here rather than left to a caller
26
+ * passing `aria-labelledby` through: an undeclared prop on a component that
27
+ * destructures its props is silently DROPPED — it type-checks, renders, and
28
+ * does nothing, which is how this was shipped once already.
29
+ */
30
+ "aria-labelledby"?: string;
31
+ "aria-label"?: string;
21
32
  }
22
- export declare function Popover({ trigger, side, align, arrow, className, children, ref, defaultOpen, }: PopoverProps): import("react").JSX.Element;
33
+ export declare function Popover({ trigger, side, align, arrow, className, children, ref, defaultOpen, "aria-labelledby": ariaLabelledBy, "aria-label": ariaLabel, }: PopoverProps): import("react").JSX.Element;
23
34
  /** Closes the nearest Popover. */
24
35
  export declare function PopoverClose({ children }: {
25
36
  children: ReactNode;
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from "react";
1
+ import { type ReactNode } from "react";
2
2
  import type { ProvenanceRecord } from "./types";
3
3
  export interface ProvenanceDisclosureProps {
4
4
  record: ProvenanceRecord;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
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",