@arbidocs/blocks 0.3.180 → 0.3.181
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 +39 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +39 -25
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1526,7 +1526,7 @@ function RecentActivityCard({
|
|
|
1526
1526
|
),
|
|
1527
1527
|
"data-testid": testId,
|
|
1528
1528
|
children: [
|
|
1529
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1 px-2 pt-2", children: [
|
|
1529
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-1 flex items-center gap-1 border-b border-border/60 px-2 pb-2 pt-2", children: [
|
|
1530
1530
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1531
1531
|
"button",
|
|
1532
1532
|
{
|
|
@@ -1795,8 +1795,12 @@ function QuickActionCards({
|
|
|
1795
1795
|
title: item.disabled ? item.disabledReason : void 0,
|
|
1796
1796
|
"aria-describedby": void 0,
|
|
1797
1797
|
className: react.cn(
|
|
1798
|
-
"group flex h-full items-start gap-3 rounded-2xl border
|
|
1799
|
-
|
|
1798
|
+
"group flex h-full items-start gap-3 rounded-2xl border border-border bg-card p-4 text-left",
|
|
1799
|
+
// A soft lift instead of a heavy outline: the shadow separates the
|
|
1800
|
+
// tile from the page, and deepens on hover so the card reads as
|
|
1801
|
+
// liftable rather than merely tinted.
|
|
1802
|
+
"shadow-sm [&:hover]:shadow-md",
|
|
1803
|
+
"transition-[color,background-color,border-color,box-shadow]",
|
|
1800
1804
|
// `[&:hover]` rather than `hover:` — Tailwind v4 wraps the hover
|
|
1801
1805
|
// variant in @media (hover: hover), so on a touchscreen the
|
|
1802
1806
|
// affordance would never appear at all.
|
|
@@ -1846,12 +1850,16 @@ function SectionStrip({
|
|
|
1846
1850
|
"div",
|
|
1847
1851
|
{
|
|
1848
1852
|
className: react.cn(
|
|
1849
|
-
|
|
1853
|
+
// `p-0`, with the padding pushed onto the children — the same box
|
|
1854
|
+
// model the activity cards use. It is what lets a row's meta (the
|
|
1855
|
+
// date) sit on the card's own right inset, so the Facts dates line up
|
|
1856
|
+
// with the Files ones instead of 8px short of them.
|
|
1857
|
+
"@container rounded-xl border border-border/60 bg-card p-0 shadow-sm",
|
|
1850
1858
|
className
|
|
1851
1859
|
),
|
|
1852
1860
|
"data-testid": testId,
|
|
1853
1861
|
children: [
|
|
1854
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
1862
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-1 flex items-center gap-1 border-b border-border/60 px-2 pb-2 pt-2", children: [
|
|
1855
1863
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1856
1864
|
"button",
|
|
1857
1865
|
{
|
|
@@ -1895,7 +1903,7 @@ function SectionStrip({
|
|
|
1895
1903
|
{
|
|
1896
1904
|
type: "button",
|
|
1897
1905
|
onClick: empty.onClick,
|
|
1898
|
-
className: "group
|
|
1906
|
+
className: "group m-2 flex w-[calc(100%-1rem)] cursor-pointer flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed border-border px-4 py-8 text-center transition-colors hover:border-border hover:bg-accent/50 focus-visible:border-border focus-visible:bg-accent/50 focus-visible:outline-none",
|
|
1899
1907
|
"data-testid": empty.testId,
|
|
1900
1908
|
children: [
|
|
1901
1909
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-2 flex size-11 items-center justify-center rounded-full bg-primary/10 text-primary transition-colors group-hover:bg-primary group-hover:text-primary-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(empty.icon, { className: "size-5" }) }),
|
|
@@ -1909,31 +1917,37 @@ function SectionStrip({
|
|
|
1909
1917
|
{
|
|
1910
1918
|
type: "button",
|
|
1911
1919
|
onClick: empty.onClick,
|
|
1912
|
-
className: "flex
|
|
1920
|
+
className: "m-2 flex items-center gap-2 rounded-lg px-2 py-1.5 text-left text-sm text-muted-foreground transition-colors hover:bg-primary/5 hover:text-foreground",
|
|
1913
1921
|
"data-testid": empty.testId,
|
|
1914
1922
|
children: [
|
|
1915
1923
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-3.5 shrink-0" }),
|
|
1916
1924
|
empty.label
|
|
1917
1925
|
]
|
|
1918
1926
|
}
|
|
1919
|
-
) : null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
"
|
|
1923
|
-
{
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1927
|
+
) : null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1928
|
+
"div",
|
|
1929
|
+
{
|
|
1930
|
+
className: "grid gap-x-4 pb-2",
|
|
1931
|
+
children: filledGroups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
1932
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 px-4 pb-0.5 text-right text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: group.caption }),
|
|
1933
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { children: group.rows.map((row) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1934
|
+
"button",
|
|
1935
|
+
{
|
|
1936
|
+
type: "button",
|
|
1937
|
+
onClick: row.onClick,
|
|
1938
|
+
title: row.title,
|
|
1939
|
+
className: "group flex w-full min-w-0 items-center gap-2 rounded-lg py-1.5 pl-4 pr-2 text-left transition-colors [&:hover]:bg-primary/10",
|
|
1940
|
+
"data-testid": group.rowTestId ?? (testId && `${testId}-row`),
|
|
1941
|
+
children: [
|
|
1942
|
+
row.leading,
|
|
1943
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate text-sm text-foreground group-hover:text-primary", children: row.title }),
|
|
1944
|
+
row.meta && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-[11px] tabular-nums text-muted-foreground", children: row.meta })
|
|
1945
|
+
]
|
|
1946
|
+
}
|
|
1947
|
+
) }, row.id)) })
|
|
1948
|
+
] }, group.caption))
|
|
1949
|
+
}
|
|
1950
|
+
)
|
|
1937
1951
|
]
|
|
1938
1952
|
}
|
|
1939
1953
|
);
|