@ai-matrx/design-system 0.61.6 → 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 +29 -5
- package/dist/controls.cjs +2 -1
- package/dist/controls.cjs.map +1 -1
- package/dist/controls.css +22 -7
- package/dist/controls.d.cts +3 -0
- package/dist/controls.d.ts +3 -0
- package/dist/controls.js +2 -1
- package/dist/controls.js.map +1 -1
- package/dist/index.cjs +31 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +31 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
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
|
+
|
|
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
|
|
13
|
+
|
|
14
|
+
- `Field` / `SearchField`: the input's `font: inherit` / `color: inherit` are now locked (`!important`
|
|
15
|
+
in `matrx-tap-lock`). Unlocked, they lost to a host's base-layer `input { font-size }` — in
|
|
16
|
+
matrx-frontend every field typed and showed its placeholder at 17px inside a 13px capsule.
|
|
17
|
+
- `SettingRow`: its controls never shrink (`flex-shrink: 0`); the label and line truncate first. On a
|
|
18
|
+
375px phone a long line squeezed each row's Switch to a different x, one onto the card edge.
|
|
19
|
+
- `Button` takes `tone` (`primary | success | warning | destructive | info`), the Badge's role-token
|
|
20
|
+
tint, for a button that reports a state (a drift door with its severity). A call-site class
|
|
21
|
+
cannot tint a locked control; this is the sanctioned way.
|
|
22
|
+
- Pill guard: only the capsule's own in-flow text is its label. A count badge pinned to an icon disc
|
|
23
|
+
(`absolute`) and `sr-only` labels are no longer read as the disc's text, and the line count reads
|
|
24
|
+
text line boxes only (a range over the element also returned its svg and positioned children).
|
|
25
|
+
Fixes the false "[pill-guard] pill wraps to 2 lines holding \"4\"" on the shell's assists dock on
|
|
26
|
+
every page, and the 346px "ViewBuildRun…" false positive on an icon-only tab group. Guard case
|
|
27
|
+
added (red on 0.61.6).
|
|
28
|
+
|
|
29
|
+
Consumer action: none required; a status door can now pass `tone` instead of a className tint.
|
|
30
|
+
|
|
3
31
|
## 0.61.6 — the pill guard does not judge a spinner mid-turn
|
|
4
32
|
|
|
5
33
|
- `findPillInsetWarning` judges a rotating glyph (a busy control's spinner) by its layout box,
|
|
@@ -7,16 +35,12 @@
|
|
|
7
35
|
/demos/ui-unification/system: a disabled "Exporting" Button read 24.9px vs 11.0px and was
|
|
8
36
|
outlined red while it was balanced. Guard case added (red on 0.61.5).
|
|
9
37
|
|
|
10
|
-
No consumer action.
|
|
11
|
-
|
|
12
|
-
## Unreleased — the local-sort fact moves onto the sort control
|
|
13
|
-
|
|
14
38
|
- A local sort over a partial source no longer prints a sentence under the toolbar ("Sorted within
|
|
15
39
|
this source page; other pages keep the server order."). The fact rides the sorted column's own
|
|
16
40
|
sort control: its tooltip and a screen-reader line (`data-matrx-table-local-sort-scope`), via the
|
|
17
41
|
new `ColumnHeaderCell` `sortScope` prop. Interface text is layout, never prose (owner, 2026-10-04).
|
|
18
42
|
|
|
19
|
-
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
|
|
20
44
|
`sourceProcessing: { sort: "source" }` so the table never claims otherwise.
|
|
21
45
|
|
|
22
46
|
## 0.61.5 — the pill-inset guard asks only about centred content
|
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,
|