@bouko/react 0.5.4 → 0.5.6

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.
@@ -4,6 +4,7 @@ export type ButtonProps = {
4
4
  size?: "sm" | "md" | "lg";
5
5
  style?: string;
6
6
  onClick?: () => void;
7
+ disabled?: boolean;
7
8
  children: ReactNode;
8
9
  };
9
10
  export declare function Button({ variant, style, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -4,16 +4,18 @@ export function Button({ variant, style, ...props }) {
4
4
  return (_jsx("button", { className: cn(styles({ variant }), style), ...props }));
5
5
  }
6
6
  const styles = tv({
7
- base: "flex items-center gap-2 px-4 py-2 bg-accent hover:bg-accent-dark border border-accent-dark rounded font-semibold text-background-light duration-200 cursor-pointer",
7
+ base: "flex items-center gap-2 bg-accent hover:bg-accent-dark border border-accent-dark rounded font-semibold text-background-light duration-200 cursor-pointer disabled:cursor-not-allowed",
8
+ defaultVariants: { size: "md" },
8
9
  variants: {
9
10
  variant: {
10
11
  primary: "bg-primary hover:bg-primary-dark border-primary-dark",
11
- outline: "!bg-transparent border-2 border-accent hover:border-accent-dark text-primary",
12
+ outline: "!bg-transparent border-accent hover:border-accent-dark text-primary",
12
13
  ghost: "!bg-transparent border-transparent text-accent hover:text-accent-dark"
13
14
  },
14
15
  size: {
15
16
  sm: "px-3 py-1 text-sm",
16
- lg: "text-lg"
17
+ md: "px-4 py-2",
18
+ lg: "px-5 py-3 text-lg"
17
19
  }
18
20
  }
19
21
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
 
3
3
  "name": "@bouko/react",
4
- "version": "0.5.4",
4
+ "version": "0.5.6",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "MIT",