@firecms/ui 3.0.0-canary.216 → 3.0.0-canary.218

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,9 +1,9 @@
1
1
  import React from "react";
2
2
  export type ButtonProps<C extends React.ElementType = "button"> = {
3
3
  children?: React.ReactNode;
4
- variant?: "filled" | "neutral" | "outlined" | "text";
4
+ variant?: "filled" | "outlined" | "text";
5
5
  disabled?: boolean;
6
- color?: "primary" | "secondary" | "text" | "error";
6
+ color?: "primary" | "secondary" | "text" | "error" | "neutral";
7
7
  size?: "small" | "medium" | "large" | "xl" | "2xl";
8
8
  startIcon?: React.ReactNode;
9
9
  fullWidth?: boolean;
package/dist/index.es.js CHANGED
@@ -834,20 +834,20 @@ const ButtonInner = React__default.forwardRef((t0, ref) => {
834
834
  const t9 = variant === "filled" && color === "secondary" && !disabled;
835
835
  const t10 = variant === "filled" && color === "error" && !disabled;
836
836
  const t11 = variant === "filled" && color === "text" && !disabled;
837
- const t12 = variant === "text" && color === "primary" && !disabled;
838
- const t13 = variant === "text" && color === "secondary" && !disabled;
839
- const t14 = variant === "text" && color === "error" && !disabled;
840
- const t15 = variant === "text" && color === "text" && !disabled;
841
- const t16 = variant === "outlined" && color === "primary" && !disabled;
842
- const t17 = variant === "outlined" && color === "secondary" && !disabled;
843
- const t18 = variant === "outlined" && color === "error" && !disabled;
844
- const t19 = variant === "outlined" && color === "text" && !disabled;
845
- const t20 = variant === "neutral" && (color === "primary" || color === "text") && !disabled;
846
- const t21 = variant === "neutral" && color === "secondary" && !disabled;
847
- const t22 = variant === "neutral" && color === "error" && !disabled;
837
+ const t12 = variant === "filled" && color === "neutral" && !disabled;
838
+ const t13 = variant === "text" && color === "primary" && !disabled;
839
+ const t14 = variant === "text" && color === "secondary" && !disabled;
840
+ const t15 = variant === "text" && color === "error" && !disabled;
841
+ const t16 = variant === "text" && color === "text" && !disabled;
842
+ const t17 = variant === "text" && color === "neutral" && !disabled;
843
+ const t18 = variant === "outlined" && color === "primary" && !disabled;
844
+ const t19 = variant === "outlined" && color === "secondary" && !disabled;
845
+ const t20 = variant === "outlined" && color === "error" && !disabled;
846
+ const t21 = variant === "outlined" && color === "text" && !disabled;
847
+ const t22 = variant === "outlined" && color === "neutral" && !disabled;
848
848
  const t23 = variant === "text" && disabled;
849
849
  const t24 = variant === "outlined" && disabled;
850
- const t25 = (variant === "filled" || variant === "neutral") && disabled;
850
+ const t25 = variant === "filled" && disabled;
851
851
  let t26;
852
852
  let t27;
853
853
  let t28;
@@ -863,17 +863,17 @@ const ButtonInner = React__default.forwardRef((t0, ref) => {
863
863
  "border border-secondary bg-secondary focus:ring-secondary shadow hover:ring-1 hover:ring-secondary text-white hover:text-white": t9,
864
864
  "border border-red-500 bg-red-500 hover:bg-red-500 focus:ring-red-500 shadow hover:ring-1 hover:ring-red-600 text-white hover:text-white": t10,
865
865
  "border border-surface-accent-200 bg-surface-accent-200 hover:bg-surface-accent-300 focus:ring-surface-accent-400 shadow hover:ring-1 hover:ring-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark": t11,
866
- "border border-transparent text-primary hover:text-primary hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800": t12,
867
- "border border-transparent text-secondary hover:text-secondary hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800": t13,
868
- "border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10": t14,
869
- "border border-transparent text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark hover:bg-surface-accent-200 hover:dark:bg-surface-700": t15,
870
- "border border-primary text-primary hover:text-primary hover:bg-primary-bg": t16,
871
- "border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": t17,
872
- "border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": t18,
873
- "border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:bg-surface-accent-200": t19,
874
- "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": t20,
875
- "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": t21,
876
- "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": t22,
866
+ "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-text-primary-dark": t12,
867
+ "border border-transparent text-primary hover:text-primary hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800": t13,
868
+ "border border-transparent text-secondary hover:text-secondary hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800": t14,
869
+ "border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10": t15,
870
+ "border border-transparent text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark hover:bg-surface-accent-200 hover:dark:bg-surface-700": t16,
871
+ "border border-transparent text-text-primary hover:text-text-primary hover:bg-surface-accent-200 dark:text-text-primary-dark dark:hover:bg-surface-accent-700": t17,
872
+ "border border-primary text-primary hover:text-primary hover:bg-primary-bg": t18,
873
+ "border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": t19,
874
+ "border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": t20,
875
+ "border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:bg-surface-accent-200": t21,
876
+ "border border-surface-400 text-text-primary hover:bg-surface-accent-200 dark:border-surface-600 dark:text-text-primary-dark dark:hover:bg-surface-accent-700": t22,
877
877
  "text-text-disabled dark:text-text-disabled-dark": disabled,
878
878
  "border border-transparent opacity-50": t23,
879
879
  "border border-surface-500 opacity-50": t24,