@ai-matrx/design-system 0.61.2 → 0.61.3
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 +13 -0
- package/dist/controls.cjs +11 -2
- package/dist/controls.cjs.map +1 -1
- package/dist/controls.css +40 -3
- package/dist/controls.d.cts +11 -2
- package/dist/controls.d.ts +11 -2
- package/dist/controls.js +11 -2
- package/dist/controls.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.61.3 — the controls cover the sample pages
|
|
4
|
+
|
|
5
|
+
- `SplitButton` (controls): two Buttons joined — the act and its menu — carrying one half-gap.
|
|
6
|
+
- `Field`/`SearchField` take `end` (trailing content inside the capsule: a clear button).
|
|
7
|
+
- `Tabs` take `rule={false}` when the row they sit in already draws the hairline.
|
|
8
|
+
- `SegmentOption.title` (an icon-only segment's hover name).
|
|
9
|
+
- A control Button's `justify-content` is no longer locked: content alignment is placement
|
|
10
|
+
(ui-drift's one table), so a full-width action row may say `justify-start`.
|
|
11
|
+
- `--matrx-control-field-radius` (9999px) — fields stay capsules through one token.
|
|
12
|
+
- Quiet row actions come up to full ink on a hovered `SettingRow`, not only a list row.
|
|
13
|
+
|
|
14
|
+
No consumer action.
|
|
15
|
+
|
|
3
16
|
## 0.61.2 — the glyph trim actually applies
|
|
4
17
|
|
|
5
18
|
- 0.60.10's OPTICAL GLYPH TRIM was a normal declaration in `matrx-tap-lock`, the FIRST cascade
|
package/dist/controls.cjs
CHANGED
|
@@ -47,6 +47,7 @@ __export(controls_exports, {
|
|
|
47
47
|
SegmentedControl: () => SegmentedControl,
|
|
48
48
|
Select: () => Select,
|
|
49
49
|
SettingRow: () => SettingRow,
|
|
50
|
+
SplitButton: () => SplitButton,
|
|
50
51
|
Switch: () => Switch,
|
|
51
52
|
Tabs: () => Tabs,
|
|
52
53
|
Textarea: () => Textarea
|
|
@@ -809,8 +810,12 @@ var Button2 = React7.forwardRef(
|
|
|
809
810
|
}
|
|
810
811
|
);
|
|
811
812
|
Button2.displayName = "Button";
|
|
813
|
+
var SplitButton = React7.forwardRef(
|
|
814
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { ref, role: "group", "data-matrx-control": "split", className: cn("matrx-control-split", className), ...props })
|
|
815
|
+
);
|
|
816
|
+
SplitButton.displayName = "SplitButton";
|
|
812
817
|
var Field = React7.forwardRef(
|
|
813
|
-
({ className, style, icon, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
818
|
+
({ className, style, icon, end, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
814
819
|
"label",
|
|
815
820
|
{
|
|
816
821
|
"data-matrx-control": "field",
|
|
@@ -819,7 +824,8 @@ var Field = React7.forwardRef(
|
|
|
819
824
|
style,
|
|
820
825
|
children: [
|
|
821
826
|
icon,
|
|
822
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("input", { ref, ...props })
|
|
827
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("input", { ref, ...props }),
|
|
828
|
+
end
|
|
823
829
|
]
|
|
824
830
|
}
|
|
825
831
|
)
|
|
@@ -892,6 +898,7 @@ function SegmentItems({
|
|
|
892
898
|
"aria-selected": role ? on : void 0,
|
|
893
899
|
"aria-pressed": role ? void 0 : on,
|
|
894
900
|
"aria-label": o.ariaLabel,
|
|
901
|
+
title: o.title,
|
|
895
902
|
disabled: o.disabled,
|
|
896
903
|
"data-state": on ? "on" : "off",
|
|
897
904
|
className: "matrx-control-segment",
|
|
@@ -927,6 +934,7 @@ function SegmentedControl({
|
|
|
927
934
|
}
|
|
928
935
|
function Tabs({
|
|
929
936
|
variant = "underline",
|
|
937
|
+
rule = true,
|
|
930
938
|
value,
|
|
931
939
|
onValueChange,
|
|
932
940
|
data,
|
|
@@ -953,6 +961,7 @@ function Tabs({
|
|
|
953
961
|
role: "tablist",
|
|
954
962
|
"aria-label": ariaLabel,
|
|
955
963
|
"data-matrx-control": "tabs",
|
|
964
|
+
"data-rule": rule ? void 0 : "none",
|
|
956
965
|
className: cn("matrx-control-tabs", className),
|
|
957
966
|
style,
|
|
958
967
|
children: data.map((o) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|