@firecms/ui 3.0.0-canary.147 → 3.0.0-canary.149

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" | "neutral" | "outlined" | "text";
4
4
  disabled?: boolean;
5
5
  color?: "primary" | "secondary" | "text" | "error";
6
6
  size?: "small" | "medium" | "large" | "xl" | "2xl";
@@ -2,14 +2,16 @@ import React from "react";
2
2
  export type TabsProps = {
3
3
  value: string;
4
4
  children: React.ReactNode;
5
+ innerClassName?: string;
5
6
  className?: string;
6
7
  onValueChange: (value: string) => void;
7
8
  };
8
- export declare function Tabs({ value, onValueChange, className, children }: TabsProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function Tabs({ value, onValueChange, className, innerClassName, children }: TabsProps): import("react/jsx-runtime").JSX.Element;
9
10
  export type TabProps = {
10
11
  value: string;
11
12
  className?: string;
13
+ innerClassName?: string;
12
14
  children: React.ReactNode;
13
15
  disabled?: boolean;
14
16
  };
15
- export declare function Tab({ value, className, children, disabled }: TabProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function Tab({ value, className, innerClassName, children, disabled }: TabProps): import("react/jsx-runtime").JSX.Element;
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
+ // Neutral 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 === "neutral" && (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 === "neutral" && 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-error": variant === "neutral" && 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 === "neutral") && 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] {
@@ -14953,7 +14958,7 @@ const MultiSelect = React.forwardRef(
14953
14958
  /* @__PURE__ */ jsx(
14954
14959
  Command.Input,
14955
14960
  {
14956
- className: cls(focusedDisabled, "bg-transparent outline-none flex-1 h-full w-full m-4 flex-grow"),
14961
+ className: cls(focusedDisabled, "bg-transparent outline-none flex-1 h-full w-full m-4 flex-grow "),
14957
14962
  placeholder: "Search...",
14958
14963
  onKeyDown: handleInputKeyDown
14959
14964
  }
@@ -16034,16 +16039,18 @@ function Tabs({
16034
16039
  value,
16035
16040
  onValueChange,
16036
16041
  className,
16042
+ innerClassName,
16037
16043
  children
16038
16044
  }) {
16039
- return /* @__PURE__ */ jsx(TabsPrimitive.Root, { value, onValueChange, children: /* @__PURE__ */ jsx(TabsPrimitive.List, { className: cls(
16045
+ return /* @__PURE__ */ jsx(TabsPrimitive.Root, { value, onValueChange, className, children: /* @__PURE__ */ jsx(TabsPrimitive.List, { className: cls(
16040
16046
  "flex text-sm font-medium text-center text-surface-accent-800 dark:text-white max-w-full overflow-auto no-scrollbar",
16041
- className
16047
+ innerClassName
16042
16048
  ), children }) });
16043
16049
  }
16044
16050
  function Tab({
16045
16051
  value,
16046
16052
  className,
16053
+ innerClassName,
16047
16054
  children,
16048
16055
  disabled
16049
16056
  }) {
@@ -16066,7 +16073,8 @@ function Tab({
16066
16073
  ),
16067
16074
  children: /* @__PURE__ */ jsx("div", { className: cls(
16068
16075
  "uppercase inline-block p-2 px-4 m-2 rounded",
16069
- "hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800"
16076
+ "hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800",
16077
+ innerClassName
16070
16078
  ), children })
16071
16079
  }
16072
16080
  );