gridsmith-ui 0.2.11 → 0.2.13

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.02)" };
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" }) }),
@@ -96814,8 +96815,7 @@ function Alert({ variant, title, children, dismissible, onDismiss, action, class
96814
96815
  "shrink-0 text-xs font-medium px-ds-2.5 py-ds-1 rounded-[var(--ds-radius-sm)]",
96815
96816
  "border-[length:var(--ds-border-width)] border-current",
96816
96817
  "transition-colors cursor-pointer",
96817
- "hover:bg-[var(--ds-bg-muted)]",
96818
- variant === "error" ? "text-[var(--ds-status-error)]" : variant === "warning" ? "text-[var(--ds-status-warning)]" : variant === "success" ? "text-[var(--ds-status-success)]" : "text-[var(--ds-accent-primary)]"
96818
+ variant === "error" ? "text-[var(--ds-status-error)] hover:bg-[color-mix(in_srgb,var(--ds-status-error)_12%,transparent)]" : variant === "warning" ? "text-[var(--ds-status-warning)] hover:bg-[color-mix(in_srgb,var(--ds-status-warning)_15%,transparent)]" : variant === "success" ? "text-[var(--ds-status-success)] hover:bg-[color-mix(in_srgb,var(--ds-status-success)_12%,transparent)]" : "text-[var(--ds-accent-primary)] hover:bg-[color-mix(in_srgb,var(--ds-accent-primary)_12%,transparent)]"
96819
96819
  ),
96820
96820
  children: action.label
96821
96821
  }