@ai-matrx/design-system 0.61.6 → 0.61.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.61.7 — fields type at 13px; setting-row controls hold their width; status-toned buttons; the pill guard reads only a capsule's own text
4
+
5
+ - `Field` / `SearchField`: the input's `font: inherit` / `color: inherit` are now locked (`!important`
6
+ in `matrx-tap-lock`). Unlocked, they lost to a host's base-layer `input { font-size }` — in
7
+ matrx-frontend every field typed and showed its placeholder at 17px inside a 13px capsule.
8
+ - `SettingRow`: its controls never shrink (`flex-shrink: 0`); the label and line truncate first. On a
9
+ 375px phone a long line squeezed each row's Switch to a different x, one onto the card edge.
10
+ - `Button` takes `tone` (`primary | success | warning | destructive | info`), the Badge's role-token
11
+ tint, for a button that reports a state (a drift door with its severity). A call-site class
12
+ cannot tint a locked control; this is the sanctioned way.
13
+ - Pill guard: only the capsule's own in-flow text is its label. A count badge pinned to an icon disc
14
+ (`absolute`) and `sr-only` labels are no longer read as the disc's text, and the line count reads
15
+ text line boxes only (a range over the element also returned its svg and positioned children).
16
+ Fixes the false "[pill-guard] pill wraps to 2 lines holding \"4\"" on the shell's assists dock on
17
+ every page, and the 346px "ViewBuildRun…" false positive on an icon-only tab group. Guard case
18
+ added (red on 0.61.6).
19
+
20
+ Consumer action: none required; a status door can now pass `tone` instead of a className tint.
21
+
3
22
  ## 0.61.6 — the pill guard does not judge a spinner mid-turn
4
23
 
5
24
  - `findPillInsetWarning` judges a rotating glyph (a busy control's spinner) by its layout box,
package/dist/controls.cjs CHANGED
@@ -781,7 +781,7 @@ function glyphSlot(icon, iconEnd, label) {
781
781
  return void 0;
782
782
  }
783
783
  var Button2 = React7.forwardRef(
784
- ({ className, variant = "outline", icon, iconEnd, asChild = false, children, onClick, type, ...props }, ref) => {
784
+ ({ className, variant = "outline", tone, icon, iconEnd, asChild = false, children, onClick, type, ...props }, ref) => {
785
785
  const Component = asChild ? import_react_slot2.Slot : "button";
786
786
  const ariaDisabled = props["aria-disabled"];
787
787
  const disabledChild = asChild && Boolean(props.disabled);
@@ -794,6 +794,7 @@ var Button2 = React7.forwardRef(
794
794
  type: asChild ? void 0 : type ?? "button",
795
795
  "data-matrx-control": "button",
796
796
  "data-variant": variant,
797
+ "data-tone": tone && tone !== "neutral" ? tone : void 0,
797
798
  "data-glyph": glyphSlot(icon, iconEnd, label),
798
799
  className: cn("matrx-control matrx-control-button matrx-glyph-trim", className),
799
800
  ...props,