@firecms/ui 3.0.0-canary.146 → 3.0.0-canary.148

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.
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  export type ButtonProps<P extends React.ElementType> = Omit<(P extends "button" ? React.ButtonHTMLAttributes<HTMLButtonElement> : React.ComponentProps<P>), "onClick"> & {
3
- variant?: "filled" | "outlined" | "text";
3
+ variant?: "filled" | "ghost" | "outlined" | "text";
4
4
  disabled?: boolean;
5
5
  color?: "primary" | "secondary" | "text" | "error";
6
6
  size?: "small" | "medium" | "large" | "xl" | "2xl";
package/dist/index.es.js CHANGED
@@ -585,10 +585,14 @@ const ButtonInner = React__default.forwardRef(({
585
585
  "border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": variant === "outlined" && color === "secondary" && !disabled,
586
586
  "border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": variant === "outlined" && color === "error" && !disabled,
587
587
  "border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:bg-surface-accent-200": variant === "outlined" && color === "text" && !disabled,
588
+ // Ghost Variants
589
+ "border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-text-primary dark:bg-surface-800 dark:hover:bg-surface-accent-700 dark:text-white": variant === "ghost" && (color === "primary" || color === "text") && !disabled,
590
+ "border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-text-secondary dark:bg-surface-800 dark:hover:bg-surface-accent-700 dark:text-white": variant === "ghost" && color === "secondary" && !disabled,
591
+ "border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-error dark:bg-surface-800 dark:hover:bg-surface-accent-700 dark:text-white": variant === "ghost" && color === "error" && !disabled,
588
592
  // Disabled states for all variants
589
593
  "border border-transparent opacity-50": variant === "text" && disabled,
590
594
  "border border-surface-500 opacity-50": variant === "outlined" && disabled,
591
- "border border-surface-500 bg-surface-500 opacity-50": variant === "filled" && disabled
595
+ "border border-surface-500 bg-surface-500 opacity-50": (variant === "filled" || variant === "ghost") && disabled
592
596
  });
593
597
  const sizeClasses2 = cls(
594
598
  {
@@ -13663,7 +13667,7 @@ function Chip({
13663
13667
  }
13664
13668
  );
13665
13669
  }
13666
- const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800";
13670
+ const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800 hover:scale-110 transition-transform";
13667
13671
  const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
13668
13672
  const colorClasses$1 = "text-surface-accent-600 visited:text-surface-accent-600 dark:text-surface-accent-300 dark:visited:text-surface-300";
13669
13673
  const sizeClasses = {
@@ -14835,6 +14839,7 @@ const MultiSelect = React.forwardRef(
14835
14839
  } else {
14836
14840
  updateValues(allValues);
14837
14841
  }
14842
+ onPopoverOpenChange(false);
14838
14843
  };
14839
14844
  useInjectStyles("MultiSelect", `
14840
14845
  [cmdk-group] {