gridsmith-ui 0.2.10 → 0.2.11
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.js +4 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -94752,7 +94752,7 @@ function PageHeader({
|
|
|
94752
94752
|
"header",
|
|
94753
94753
|
{
|
|
94754
94754
|
className: cn(
|
|
94755
|
-
"space-y-ds-2",
|
|
94755
|
+
"space-y-ds-2 pb-ds-4",
|
|
94756
94756
|
hasBanner && [
|
|
94757
94757
|
"relative overflow-hidden rounded-[var(--ds-radius-lg)]",
|
|
94758
94758
|
"bg-[var(--ds-bg-muted)]"
|
|
@@ -94767,7 +94767,7 @@ function PageHeader({
|
|
|
94767
94767
|
hasBanner && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[var(--ds-bg-canvas)]/85" }),
|
|
94768
94768
|
/* @__PURE__ */ jsxs("div", { className: cn(hasBanner && "relative z-10"), children: [
|
|
94769
94769
|
breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsx("ol", { className: "flex items-center gap-ds-1.5 text-sm", children: breadcrumbs.map((item, i) => {
|
|
94770
|
-
const
|
|
94770
|
+
const isNavigable = !!(item.onClick || item.href);
|
|
94771
94771
|
return /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-ds-1.5", children: [
|
|
94772
94772
|
i > 0 && /* @__PURE__ */ jsx(
|
|
94773
94773
|
"span",
|
|
@@ -94777,14 +94777,7 @@ function PageHeader({
|
|
|
94777
94777
|
children: /* @__PURE__ */ jsx(Icon, { name: "chevron-right", size: 12 })
|
|
94778
94778
|
}
|
|
94779
94779
|
),
|
|
94780
|
-
|
|
94781
|
-
"span",
|
|
94782
|
-
{
|
|
94783
|
-
"aria-current": "page",
|
|
94784
|
-
className: "font-medium text-[var(--ds-text-primary)]",
|
|
94785
|
-
children: item.label
|
|
94786
|
-
}
|
|
94787
|
-
) : /* @__PURE__ */ jsx(
|
|
94780
|
+
isNavigable ? /* @__PURE__ */ jsx(
|
|
94788
94781
|
"a",
|
|
94789
94782
|
{
|
|
94790
94783
|
href: item.href ?? "#",
|
|
@@ -94795,7 +94788,7 @@ function PageHeader({
|
|
|
94795
94788
|
className: "text-[var(--ds-text-muted)] hover:text-[var(--ds-text-primary)] transition-colors duration-[var(--ds-transition-speed)]",
|
|
94796
94789
|
children: item.label
|
|
94797
94790
|
}
|
|
94798
|
-
)
|
|
94791
|
+
) : /* @__PURE__ */ jsx("span", { className: "font-medium text-[var(--ds-text-primary)]", children: item.label })
|
|
94799
94792
|
] }, i);
|
|
94800
94793
|
}) }) }),
|
|
94801
94794
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col @sm:flex-row @sm:items-center justify-between gap-ds-4", children: [
|