@arbidocs/blocks 0.3.179 → 0.3.180

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/dist/index.d.cts CHANGED
@@ -593,6 +593,20 @@ interface EntityIdentityField {
593
593
  * value run the full width, which is what a description wants.
594
594
  */
595
595
  trailing?: ReactNode;
596
+ /**
597
+ * Content rendered immediately BEFORE the value — the entity's own mark.
598
+ * Sits outside the edit swap, so starting to edit the name doesn't make the
599
+ * icon jump or disappear.
600
+ */
601
+ leading?: ReactNode;
602
+ /**
603
+ * Drops the caption from view for this row, leaving the value flush left.
604
+ * For a field whose value already says what it is — a workspace's name and
605
+ * description read as exactly that — the caption is a word the eye has to
606
+ * step over on the way in. The caption stays in the markup for screen
607
+ * readers, which have no such visual cue to fall back on.
608
+ */
609
+ hideLabel?: boolean;
596
610
  /** Row test id; the pencil and input derive `-edit` and `-input`. */
597
611
  testId?: string;
598
612
  }
package/dist/index.d.ts CHANGED
@@ -593,6 +593,20 @@ interface EntityIdentityField {
593
593
  * value run the full width, which is what a description wants.
594
594
  */
595
595
  trailing?: ReactNode;
596
+ /**
597
+ * Content rendered immediately BEFORE the value — the entity's own mark.
598
+ * Sits outside the edit swap, so starting to edit the name doesn't make the
599
+ * icon jump or disappear.
600
+ */
601
+ leading?: ReactNode;
602
+ /**
603
+ * Drops the caption from view for this row, leaving the value flush left.
604
+ * For a field whose value already says what it is — a workspace's name and
605
+ * description read as exactly that — the caption is a word the eye has to
606
+ * step over on the way in. The caption stays in the markup for screen
607
+ * readers, which have no such visual cue to fall back on.
608
+ */
609
+ hideLabel?: boolean;
596
610
  /** Row test id; the pencil and input derive `-edit` and `-input`. */
597
611
  testId?: string;
598
612
  }
package/dist/index.js CHANGED
@@ -1297,6 +1297,8 @@ function IdentityFieldRow({ field, canEdit }) {
1297
1297
  multiline = false,
1298
1298
  maxLength,
1299
1299
  valueClassName,
1300
+ leading,
1301
+ hideLabel,
1300
1302
  trailing,
1301
1303
  testId
1302
1304
  } = field;
@@ -1340,8 +1342,7 @@ function IdentityFieldRow({ field, canEdit }) {
1340
1342
  "dt",
1341
1343
  {
1342
1344
  className: cn(
1343
- "w-24 shrink-0 text-sm font-medium text-muted-foreground",
1344
- multiline && "pt-1"
1345
+ hideLabel ? "sr-only" : cn("w-24 shrink-0 text-sm font-medium text-muted-foreground", multiline && "pt-1")
1345
1346
  ),
1346
1347
  children: [
1347
1348
  label,
@@ -1350,6 +1351,7 @@ function IdentityFieldRow({ field, canEdit }) {
1350
1351
  }
1351
1352
  ),
1352
1353
  /* @__PURE__ */ jsxs("dd", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
1354
+ leading,
1353
1355
  isEditing ? /* @__PURE__ */ jsxs("div", { className: "relative min-w-0 flex-1", children: [
1354
1356
  multiline ? /* @__PURE__ */ jsx(
1355
1357
  Textarea,
@@ -1579,7 +1581,7 @@ function RecentActivityCard({
1579
1581
  /* @__PURE__ */ jsx(
1580
1582
  "p",
1581
1583
  {
1582
- className: "mt-1 px-4 pb-1 text-[11px] font-medium uppercase tracking-wide text-muted-foreground",
1584
+ className: "mt-1 px-4 pb-1 text-right text-[11px] font-medium uppercase tracking-wide text-muted-foreground",
1583
1585
  "data-testid": testId && `${testId}-caption`,
1584
1586
  children: caption
1585
1587
  }
@@ -1793,7 +1795,7 @@ function QuickActionCards({
1793
1795
  title: item.disabled ? item.disabledReason : void 0,
1794
1796
  "aria-describedby": void 0,
1795
1797
  className: cn(
1796
- "group flex h-full items-start gap-3 rounded-2xl border border-border/70 bg-card p-4 text-left",
1798
+ "group flex h-full items-start gap-3 rounded-2xl border-2 border-border bg-card p-4 text-left",
1797
1799
  "transition-colors",
1798
1800
  // `[&:hover]` rather than `hover:` — Tailwind v4 wraps the hover
1799
1801
  // variant in @media (hover: hover), so on a touchscreen the
@@ -1801,7 +1803,7 @@ function QuickActionCards({
1801
1803
  "[&:hover]:border-theme-cyan/50 [&:hover]:bg-theme-cyan/5",
1802
1804
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-theme-cyan focus-visible:ring-offset-2",
1803
1805
  "disabled:cursor-default disabled:opacity-55",
1804
- "disabled:[&:hover]:border-border/70 disabled:[&:hover]:bg-card"
1806
+ "disabled:[&:hover]:border-border disabled:[&:hover]:bg-card"
1805
1807
  ),
1806
1808
  "data-testid": item.testId,
1807
1809
  children: [
@@ -1843,7 +1845,10 @@ function SectionStrip({
1843
1845
  return /* @__PURE__ */ jsxs(
1844
1846
  "div",
1845
1847
  {
1846
- className: cn("rounded-xl border border-border/60 bg-card p-2 shadow-sm", className),
1848
+ className: cn(
1849
+ "@container rounded-xl border border-border/60 bg-card p-2 shadow-sm",
1850
+ className
1851
+ ),
1847
1852
  "data-testid": testId,
1848
1853
  children: [
1849
1854
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
@@ -1912,7 +1917,7 @@ function SectionStrip({
1912
1917
  ]
1913
1918
  }
1914
1919
  ) : null : /* @__PURE__ */ jsx("div", { className: "grid gap-x-4 @2xl:grid-cols-2", children: filledGroups.map((group) => /* @__PURE__ */ jsxs("div", { children: [
1915
- /* @__PURE__ */ jsx("p", { className: "mt-1 px-2 pb-0.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: group.caption }),
1920
+ /* @__PURE__ */ jsx("p", { className: "mt-1 px-2 pb-0.5 text-right text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: group.caption }),
1916
1921
  /* @__PURE__ */ jsx("ul", { children: group.rows.map((row) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
1917
1922
  "button",
1918
1923
  {