@ai-matrx/records-ui 0.101.9 → 0.101.10

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,13 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.101.10
4
+
5
+ - **The Action Inbox header never breaks a word.** At a phone width the header row squeezed its view
6
+ tabs and the Kind/Table/None grouping control until labels drew one or two letters per line
7
+ ("In / bo / x"). The row now wraps as whole groups; every group is `shrink-0` and every label
8
+ `whitespace-nowrap`. Guard: `src/the-inbox-header-never-breaks-a-word.test.tsx`.
9
+ - Consumer action: none — bump to latest.
10
+
3
11
  ## 0.101.9
4
12
 
5
13
  Automatic changed-only republish (docs/metadata drift since the last tag — see
package/dist/index.cjs CHANGED
@@ -33378,9 +33378,9 @@ function ActionInbox({
33378
33378
  onKeyDown,
33379
33379
  "aria-label": "Inbox",
33380
33380
  children: [
33381
- /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex items-center gap-2", children: [
33381
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex flex-wrap items-center gap-x-2 gap-y-1", children: [
33382
33382
  /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("h3", { className: "sr-only", children: "Inbox" }),
33383
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { role: "tablist", "aria-label": "Inbox views", className: "flex items-center gap-0.5", children: INBOX_VIEWS.map((v) => {
33383
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { role: "tablist", "aria-label": "Inbox views", className: "flex shrink-0 items-center gap-0.5", children: INBOX_VIEWS.map((v) => {
33384
33384
  const n = counts === null ? v === view ? shown3.length : null : v === "inbox" ? counts.waiting : v === "snoozed" ? counts.snoozed : counts.cleared;
33385
33385
  return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
33386
33386
  "button",
@@ -33395,7 +33395,7 @@ function ActionInbox({
33395
33395
  setSnoozing(null);
33396
33396
  },
33397
33397
  className: (0, import_design_system94.cn)(
33398
- "flex items-baseline gap-1 rounded px-1.5 py-0.5 text-xs",
33398
+ "flex items-baseline gap-1 whitespace-nowrap rounded px-1.5 py-0.5 text-xs",
33399
33399
  view === v ? "bg-accent font-medium text-foreground" : "text-muted-foreground"
33400
33400
  ),
33401
33401
  children: [
@@ -33412,7 +33412,7 @@ function ActionInbox({
33412
33412
  {
33413
33413
  role: "group",
33414
33414
  "aria-label": "Group by",
33415
- className: "ml-auto flex items-center rounded-md border border-border p-0.5 lg:ml-0",
33415
+ className: "ml-auto flex shrink-0 items-center rounded-md border border-border p-0.5 lg:ml-0",
33416
33416
  children: INBOX_GROUPINGS.map((g) => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33417
33417
  "button",
33418
33418
  {
@@ -33420,7 +33420,7 @@ function ActionInbox({
33420
33420
  "aria-pressed": groupBy === g,
33421
33421
  onClick: () => setGroupBy(g),
33422
33422
  className: (0, import_design_system94.cn)(
33423
- "rounded px-1.5 py-0.5 text-[11px]",
33423
+ "whitespace-nowrap rounded px-1.5 py-0.5 text-[11px]",
33424
33424
  groupBy === g ? "bg-accent font-medium text-foreground" : "text-muted-foreground"
33425
33425
  ),
33426
33426
  children: GROUPING_WORD[g]
@@ -33429,8 +33429,26 @@ function ActionInbox({
33429
33429
  ))
33430
33430
  }
33431
33431
  ),
33432
- view === "inbox" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_design_system94.Button, { size: "sm", variant: "ghost", className: "h-7 px-2 text-xs", onClick: () => setShowDecided((s) => !s), children: showDecided ? "Hide decided" : "Show decided" }) : null,
33433
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_design_system94.Button, { size: "sm", variant: "ghost", className: "h-7 px-2 text-xs", onClick: () => void load(), children: "Refresh" })
33432
+ view === "inbox" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33433
+ import_design_system94.Button,
33434
+ {
33435
+ size: "sm",
33436
+ variant: "ghost",
33437
+ className: "h-7 shrink-0 whitespace-nowrap px-2 text-xs",
33438
+ onClick: () => setShowDecided((s) => !s),
33439
+ children: showDecided ? "Hide decided" : "Show decided"
33440
+ }
33441
+ ) : null,
33442
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33443
+ import_design_system94.Button,
33444
+ {
33445
+ size: "sm",
33446
+ variant: "ghost",
33447
+ className: "h-7 shrink-0 whitespace-nowrap px-2 text-xs",
33448
+ onClick: () => void load(),
33449
+ children: "Refresh"
33450
+ }
33451
+ )
33434
33452
  ] }),
33435
33453
  error ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(RefusalNotice, { error }) : null,
33436
33454
  selected.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(