@ai-matrx/design-system 0.61.7 → 0.61.8

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,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.61.8 — the pill guard leaves capsule tracks to their tabs
4
+
5
+ - Pill guard: text inside an interactive child (link, button, tab, radio, menu item, option) is not
6
+ the capsule's own label. A capsule tab bar or mode switcher is a TRACK; each tab is judged alone.
7
+ Measured: /education/overview's capsule nav (534px "HomeCreate kitKits…") and the agent builder's
8
+ 346px icon mode switcher were outlined as sentence pills. Guard case added (red on 0.61.7).
9
+
10
+ No consumer action.
11
+
3
12
  ## 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
13
 
5
14
  - `Field` / `SearchField`: the input's `font: inherit` / `color: inherit` are now locked (`!important`
@@ -26,16 +35,12 @@ Consumer action: none required; a status door can now pass `tone` instead of a c
26
35
  /demos/ui-unification/system: a disabled "Exporting" Button read 24.9px vs 11.0px and was
27
36
  outlined red while it was balanced. Guard case added (red on 0.61.5).
28
37
 
29
- No consumer action.
30
-
31
- ## Unreleased — the local-sort fact moves onto the sort control
32
-
33
38
  - A local sort over a partial source no longer prints a sentence under the toolbar ("Sorted within
34
39
  this source page; other pages keep the server order."). The fact rides the sorted column's own
35
40
  sort control: its tooltip and a screen-reader line (`data-matrx-table-local-sort-scope`), via the
36
41
  new `ColumnHeaderCell` `sortScope` prop. Interface text is layout, never prose (owner, 2026-10-04).
37
42
 
38
- Consumer action: a host whose source really sorts every row declares
43
+ Consumer action (local-sort move): a host whose source really sorts every row declares
39
44
  `sourceProcessing: { sort: "source" }` so the table never claims otherwise.
40
45
 
41
46
  ## 0.61.5 — the pill-inset guard asks only about centred content
package/dist/index.cjs CHANGED
@@ -681,6 +681,7 @@ function describe(el) {
681
681
  const t = (el.textContent ?? "").replace(/\s+/g, " ").trim();
682
682
  return t.length > 60 ? `${t.slice(0, 57)}\u2026` : t;
683
683
  }
684
+ var INTERACTIVE = 'a[href],button,[role="tab"],[role="button"],[role="radio"],[role="link"],[role="menuitem"],[role="option"]';
684
685
  function ownTextNodes(el, view) {
685
686
  const out = [];
686
687
  const walker = el.ownerDocument.createTreeWalker(
@@ -692,7 +693,7 @@ function ownTextNodes(el, view) {
692
693
  let offFlow = false;
693
694
  for (let p = n.parentElement; p && p !== el; p = p.parentElement) {
694
695
  const pcs = view.getComputedStyle(p);
695
- if (pcs.position === "absolute" || pcs.position === "fixed" || pcs.display === "none") {
696
+ if (pcs.position === "absolute" || pcs.position === "fixed" || pcs.display === "none" || p.matches(INTERACTIVE)) {
696
697
  offFlow = true;
697
698
  break;
698
699
  }