@bouko/react 2.5.3 → 2.5.4

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,7 +1,7 @@
1
1
  import { ReactNode } from "react";
2
- import { Component } from "../../core/types";
2
+ import type { Component } from "../../core/types";
3
3
  export type ButtonProps = Component & {
4
- variant?: "primary" | "outline" | "ghost";
4
+ variant?: "primary" | "outline" | "ghost" | "secondary";
5
5
  size?: "xs" | "sm" | "md" | "lg";
6
6
  icon?: ReactNode;
7
7
  action?: () => void;
@@ -18,17 +18,18 @@ export function Button({ size, variant, style, icon, action, disabled, children
18
18
  : icon, children] }));
19
19
  }
20
20
  const styles = tv({
21
- base: "flex justify-center 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",
21
+ base: "flex justify-center items-center gap-2 bg-accent border border-accent-darker rounded font-semibold text-background-light duration-200 cursor-pointer disabled:cursor-not-allowed hover:brightness-110",
22
22
  defaultVariants: { size: "md" },
23
23
  variants: {
24
24
  variant: {
25
- primary: "bg-primary hover:bg-primary-dark border-primary-dark",
25
+ primary: "bg-primary border-primary-dark",
26
26
  outline: "bg-transparent border-accent hover:border-accent-dark text-primary",
27
- ghost: "bg-transparent border-transparent text-accent hover:brightness-110"
27
+ ghost: "bg-transparent border-transparent text-accent hover:brightness-110",
28
+ secondary: "bg-background-dark dark:bg-background-light border-border-dark dark:border-border-light text-background-darker dark:text-primary"
28
29
  },
29
30
  size: {
30
31
  xs: "px-3 py-1 text-xs",
31
- sm: "px-4 py-2 text-xs sm:text-sm",
32
+ sm: "px-3 py-2 text-xs sm:text-sm",
32
33
  md: "px-4 py-2",
33
34
  lg: "px-5 py-3 text-lg"
34
35
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  "name": "@bouko/react",
4
4
 
5
- "version": "2.5.3",
5
+ "version": "2.5.4",
6
6
 
7
7
  "main": "./dist/index.js",
8
8