@tensor_1/react 2.67.0 → 2.67.2

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.
@@ -40,7 +40,7 @@ function AvatarGroup({ children, className, ...props }) {
40
40
  function UserChip({ avatar, name, sub, className, children, ...props }) {
41
41
  return /* @__PURE__ */ jsxs("span", { className: cx("uix-user-chip", className), ...props, children: [
42
42
  avatar,
43
- /* @__PURE__ */ jsxs("span", { children: [
43
+ /* @__PURE__ */ jsxs("span", { className: "uix-user-chip__text", children: [
44
44
  name != null && /* @__PURE__ */ jsx("span", { className: "uix-user-chip__name", children: name }),
45
45
  sub != null && /* @__PURE__ */ jsx("span", { className: "uix-user-chip__sub", style: { display: "block" }, children: sub })
46
46
  ] }),
@@ -21,6 +21,8 @@ import { ReactNode, HTMLAttributes } from 'react';
21
21
  * compound child for hand-authored content. Both render `<dt>`/`<dd>` pairs as
22
22
  * direct children of the grid `<dl>`, so they align into the same columns.
23
23
  *
24
+ * In two columns, terms take at most half the list and wrap; short terms retain
25
+ * their natural width. This keeps long labels from crushing the value column.
24
26
  * Below 22rem of its own width (a phone, a side rail, a narrow column) each label
25
27
  * sits above its value and both take the full width (HAR-2032), so a long label
26
28
  * never squeezes the value. A `DetailLayout` side column always stacks.
@@ -47,6 +47,7 @@ function Menu({ trigger, children, open: controlledOpen, defaultOpen = false, on
47
47
  if (refocus) triggerRef.current?.focus();
48
48
  };
49
49
  useEffect(() => {
50
+ typeahead.current = { text: "", at: 0 };
50
51
  const el = menu();
51
52
  if (!el) return;
52
53
  const shown = () => {
package/dist/index.cjs CHANGED
@@ -9416,7 +9416,7 @@ function AvatarGroup({ children, className, ...props }) {
9416
9416
  function UserChip({ avatar, name, sub, className, children, ...props }) {
9417
9417
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { className: cx("uix-user-chip", className), ...props, children: [
9418
9418
  avatar,
9419
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { children: [
9419
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { className: "uix-user-chip__text", children: [
9420
9420
  name != null && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "uix-user-chip__name", children: name }),
9421
9421
  sub != null && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "uix-user-chip__sub", style: { display: "block" }, children: sub })
9422
9422
  ] }),
@@ -9466,6 +9466,7 @@ function Menu({ trigger, children, open: controlledOpen, defaultOpen = false, on
9466
9466
  if (refocus) triggerRef.current?.focus();
9467
9467
  };
9468
9468
  (0, import_react64.useEffect)(() => {
9469
+ typeahead2.current = { text: "", at: 0 };
9469
9470
  const el = menu();
9470
9471
  if (!el) return;
9471
9472
  const shown = () => {
package/dist/index.d.cts CHANGED
@@ -6909,6 +6909,8 @@ declare function ListItem({ title, meta, trail, leading, children, className, ..
6909
6909
  * compound child for hand-authored content. Both render `<dt>`/`<dd>` pairs as
6910
6910
  * direct children of the grid `<dl>`, so they align into the same columns.
6911
6911
  *
6912
+ * In two columns, terms take at most half the list and wrap; short terms retain
6913
+ * their natural width. This keeps long labels from crushing the value column.
6912
6914
  * Below 22rem of its own width (a phone, a side rail, a narrow column) each label
6913
6915
  * sits above its value and both take the full width (HAR-2032), so a long label
6914
6916
  * never squeezes the value. A `DetailLayout` side column always stacks.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tensor_1/react",
3
- "version": "2.67.0",
3
+ "version": "2.67.2",
4
4
  "description": "Thin React wrappers over the UIx v2 CSS component library.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",