gridsmith-ui 0.2.10 → 0.2.12

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 CHANGED
@@ -1742,6 +1742,7 @@ var iconPaddingReduce = {
1742
1742
  md: 4,
1743
1743
  lg: 6
1744
1744
  };
1745
+ var HOVER_SCALE_CAP = { "--_btn-scale": "min(var(--ds-hover-scale), 1.04)" };
1745
1746
  function Button({ variant = "default", size = "md", iconLeft, iconRight, loading, className, children, disabled, style: style2, ...props }) {
1746
1747
  const spinnerSize = size === "lg" || size === "icon-lg" ? "md" : "sm";
1747
1748
  let paddingStyle;
@@ -1761,7 +1762,7 @@ function Button({ variant = "default", size = "md", iconLeft, iconRight, loading
1761
1762
  "border-[length:var(--ds-border-width)]",
1762
1763
  "rounded-[var(--ds-radius-md)]",
1763
1764
  "shadow-[var(--ds-shadow-button)]",
1764
- "hover:scale-[var(--ds-hover-scale)] hover:-translate-y-[var(--ds-hover-lift)]",
1765
+ "hover:scale-[var(--_btn-scale)] hover:-translate-y-[var(--ds-hover-lift)]",
1765
1766
  "active:shadow-[var(--ds-shadow-button-pressed)] active:translate-x-[var(--ds-press-depth)] active:translate-y-[var(--ds-press-depth)]",
1766
1767
  "transition-all duration-[var(--ds-interactive-hover-speed)] ease-[var(--ds-interactive-hover-ease)]",
1767
1768
  "focus-visible:outline-none focus-visible:shadow-[var(--ds-shadow-focus)]",
@@ -1771,7 +1772,7 @@ function Button({ variant = "default", size = "md", iconLeft, iconRight, loading
1771
1772
  className
1772
1773
  ),
1773
1774
  disabled: disabled || loading,
1774
- style: { ...paddingStyle, ...style2 },
1775
+ style: { ...HOVER_SCALE_CAP, ...paddingStyle, ...style2 },
1775
1776
  ...props,
1776
1777
  children: [
1777
1778
  loading && /* @__PURE__ */ jsx("span", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx(Spinner, { size: spinnerSize, color: "inherit" }) }),
@@ -94752,7 +94753,7 @@ function PageHeader({
94752
94753
  "header",
94753
94754
  {
94754
94755
  className: cn(
94755
- "space-y-ds-2",
94756
+ "space-y-ds-2 pb-ds-4",
94756
94757
  hasBanner && [
94757
94758
  "relative overflow-hidden rounded-[var(--ds-radius-lg)]",
94758
94759
  "bg-[var(--ds-bg-muted)]"
@@ -94767,7 +94768,7 @@ function PageHeader({
94767
94768
  hasBanner && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[var(--ds-bg-canvas)]/85" }),
94768
94769
  /* @__PURE__ */ jsxs("div", { className: cn(hasBanner && "relative z-10"), children: [
94769
94770
  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 isLast = i === breadcrumbs.length - 1;
94771
+ const isNavigable = !!(item.onClick || item.href);
94771
94772
  return /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-ds-1.5", children: [
94772
94773
  i > 0 && /* @__PURE__ */ jsx(
94773
94774
  "span",
@@ -94777,14 +94778,7 @@ function PageHeader({
94777
94778
  children: /* @__PURE__ */ jsx(Icon, { name: "chevron-right", size: 12 })
94778
94779
  }
94779
94780
  ),
94780
- isLast ? /* @__PURE__ */ jsx(
94781
- "span",
94782
- {
94783
- "aria-current": "page",
94784
- className: "font-medium text-[var(--ds-text-primary)]",
94785
- children: item.label
94786
- }
94787
- ) : /* @__PURE__ */ jsx(
94781
+ isNavigable ? /* @__PURE__ */ jsx(
94788
94782
  "a",
94789
94783
  {
94790
94784
  href: item.href ?? "#",
@@ -94795,7 +94789,7 @@ function PageHeader({
94795
94789
  className: "text-[var(--ds-text-muted)] hover:text-[var(--ds-text-primary)] transition-colors duration-[var(--ds-transition-speed)]",
94796
94790
  children: item.label
94797
94791
  }
94798
- )
94792
+ ) : /* @__PURE__ */ jsx("span", { className: "font-medium text-[var(--ds-text-primary)]", children: item.label })
94799
94793
  ] }, i);
94800
94794
  }) }) }),
94801
94795
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col @sm:flex-row @sm:items-center justify-between gap-ds-4", children: [