@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.cjs +12 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/grid.css +10 -0
package/dist/index.cjs
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: react.cn(
|
|
1343
|
-
"w-24 shrink-0 text-sm font-medium text-muted-foreground",
|
|
1344
|
-
multiline && "pt-1"
|
|
1345
|
+
hideLabel ? "sr-only" : react.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__ */ jsxRuntime.jsxs("dd", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
1354
|
+
leading,
|
|
1353
1355
|
isEditing ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative min-w-0 flex-1", children: [
|
|
1354
1356
|
multiline ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1355
1357
|
react.Textarea,
|
|
@@ -1579,7 +1581,7 @@ function RecentActivityCard({
|
|
|
1579
1581
|
/* @__PURE__ */ jsxRuntime.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: react.cn(
|
|
1796
|
-
"group flex h-full items-start gap-3 rounded-2xl border border-border
|
|
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
|
|
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__ */ jsxRuntime.jsxs(
|
|
1844
1846
|
"div",
|
|
1845
1847
|
{
|
|
1846
|
-
className: react.cn(
|
|
1848
|
+
className: react.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__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
@@ -1912,7 +1917,7 @@ function SectionStrip({
|
|
|
1912
1917
|
]
|
|
1913
1918
|
}
|
|
1914
1919
|
) : null : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-x-4 @2xl:grid-cols-2", children: filledGroups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1915
|
-
/* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.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__ */ jsxRuntime.jsx("ul", { children: group.rows.map((row) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1917
1922
|
"button",
|
|
1918
1923
|
{
|