@geomak/ui 7.4.4 → 7.5.0

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 CHANGED
@@ -509,6 +509,9 @@ function IconButton({
509
509
  if (type === "bordered") {
510
510
  return "bg-surface text-foreground hover:bg-surface-raised border border-border-strong";
511
511
  }
512
+ if (type === "ghost") {
513
+ return "bg-transparent text-foreground-muted hover:bg-surface-raised hover:text-foreground";
514
+ }
512
515
  return "";
513
516
  }, [type]);
514
517
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -520,7 +523,7 @@ function IconButton({
520
523
  title,
521
524
  "aria-label": title,
522
525
  style,
523
- className: `${size === "sm" ? "p-1" : size === "md" ? "p-1.5" : "p-2"} rounded-lg shadow-md transition-colors duration-150 ${colorScheme} disabled:bg-surface-raised disabled:text-foreground-muted disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-accent ${className}`.trim(),
526
+ className: `${size === "sm" ? "p-1" : size === "md" ? "p-1.5" : "p-2"} rounded-lg ${type !== "ghost" ? "shadow-md" : ""} transition-colors duration-150 ${colorScheme} disabled:bg-surface-raised disabled:text-foreground-muted disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-accent ${className}`.trim(),
524
527
  children: loading ? loadingIcon : icon
525
528
  }
526
529
  );