@danxbot/ui 20.7.0 → 20.8.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.
@@ -7,9 +7,14 @@ export interface AttentionProps<E extends AttentionEffects = AttentionEffects> e
7
7
  /** What to draw the eye to. Rendered untouched; its box is the box the effect hugs. */
8
8
  children: ReactNode;
9
9
  /**
10
- * The shape of the effect, which should match the child's own corners:
11
- * `circle` (a circular icon button), `pill`, `rounded` (the library's large
12
- * radius), `square`, or `inherit` to MEASURE the child's own border-radius.
10
+ * The shape of the control AND of its effect (DX-4504): `circle` (a circular
11
+ * icon button), `pill`, `rounded` (the library's large radius) or `square`
12
+ * re-cut the wrapped control's own corners (its border-radius, with an
13
+ * `!important` that beats a `rounded-md` utility), so there is never a square
14
+ * button inside a circular effect. Only the corners change: the box, hit area
15
+ * and layout stay the control's own. `circle` is 50%, so it is a circle on a
16
+ * square control and an ellipse on any other: use `pill` there. `inherit`
17
+ * leaves the control alone and MEASURES its own border-radius for the effect.
13
18
  *
14
19
  * @default "inherit"
15
20
  */
@@ -39,6 +44,11 @@ export interface AttentionProps<E extends AttentionEffects = AttentionEffects> e
39
44
  * (`true`), or let them grow out past its edge (`false`). Only `ripple` has
40
45
  * circles to clip; every other effect ignores it.
41
46
  *
47
+ * The circles paint BEHIND the control's content, so a contained ripple
48
+ * shows on a transparent control (a ghost or outline button, a card with no
49
+ * background) and is hidden by a solid background. On a solid control use
50
+ * `contain={false}`: the circles then grow out past its edge, where they show.
51
+ *
42
52
  * @default true
43
53
  */
44
54
  contain?: boolean;
@@ -15,5 +15,12 @@ export interface DevToolsPopoverProps {
15
15
  * have nothing to do with the sim layer.
16
16
  */
17
17
  showSimControls?: boolean;
18
+ /**
19
+ * Renders the trigger as a square wrench-only button with no "Dev tools"
20
+ * label, the same mode as `ThemeMenu.iconOnly` (whose doc explains why it is
21
+ * a mode and not a class). The accessible name stays
22
+ * `aria-label="Developer tools"` either way.
23
+ */
24
+ iconOnly?: boolean;
18
25
  }
19
- export declare function DevToolsPopover({ onOpenUseCaseLedger, showSimControls }?: DevToolsPopoverProps): import("react").JSX.Element | null;
26
+ export declare function DevToolsPopover({ onOpenUseCaseLedger, showSimControls, iconOnly, }?: DevToolsPopoverProps): import("react").JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "20.7.0",
3
+ "version": "20.8.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",