@danxbot/ui 15.34.0 → 15.35.0

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.
@@ -16,16 +16,21 @@ export interface PopoverProps {
16
16
  /** Draws the little pointer at the trigger. Off by default — see below. */
17
17
  arrow?: boolean;
18
18
  /**
19
- * The panel's DESIGN width — any CSS length, e.g. `"30rem"`.
19
+ * The popup's width — any CSS length, e.g. `"30rem"` — as the REAL width of
20
+ * the popup, not a ceiling: the popup renders at exactly this width unless
21
+ * the room runs out, so a panel inside it is `w-full min-w-0` and carries no
22
+ * width of its own.
20
23
  *
21
- * A prop rather than a `max-w-*` in `className`, and the difference is not
22
- * cosmetic: `className` is merged last and would take the viewport clamp
24
+ * A prop rather than a `w-*`/`max-w-*` in `className`, and the difference is
25
+ * not cosmetic: `className` is merged last and would take the viewport clamp
23
26
  * with it (see THE SIZE CLAMP above). This writes `--dx-popover-w`, which
24
27
  * sits INSIDE the `min()` — so a design size can be as large as it likes and
25
28
  * still cannot render wider than 90vw or than the room the positioner found.
29
+ * The width includes the popup's padding and border; write it in `rem`
30
+ * multiplied by `var(--ui-scale)` to scale with the size control as spacing does.
26
31
  *
27
- * Unset, the popup keeps the library default of 20rem at the current
28
- * `--ui-scale`.
32
+ * Unset, the popup is content-sized, capped at the library default of 20rem
33
+ * at the current `--ui-scale`.
29
34
  */
30
35
  width?: string;
31
36
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "15.34.0",
3
+ "version": "15.35.0",
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",