@bouko/react 2.5.0 → 2.5.1

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.
@@ -13,7 +13,7 @@ export function Button({ size, variant, style, icon, action, disabled, children
13
13
  catch { }
14
14
  setLoading(false);
15
15
  };
16
- return (_jsxs("button", { className: cn(styles({ variant, size }), style), onClick: submit, disabled: disabled || isLoading, children: [icon && isLoading
16
+ return (_jsxs("button", { className: cn(styles({ variant, size }), variant === "ghost" && "p-0", style), onClick: submit, disabled: disabled || isLoading, children: [icon && isLoading
17
17
  ? _jsx(Spinner, { className: "animate-spin" }, void 0)
18
18
  : icon, children] }, void 0));
19
19
  }
@@ -23,8 +23,8 @@ const styles = tv({
23
23
  variants: {
24
24
  variant: {
25
25
  primary: "bg-primary hover:bg-primary-dark border-primary-dark",
26
- outline: "!bg-transparent border-accent hover:border-accent-dark text-primary",
27
- ghost: "!p-0 !bg-transparent border-transparent text-accent hover:text-accent-dark hover:brightness-110"
26
+ outline: "bg-transparent border-accent hover:border-accent-dark text-primary",
27
+ ghost: "bg-transparent border-transparent text-accent hover:text-accent-dark hover:brightness-110"
28
28
  },
29
29
  size: {
30
30
  xs: "px-3 py-1 text-xs",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
 
3
3
  "name": "@bouko/react",
4
- "version": "2.5.0",
4
+ "version": "2.5.1",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "MIT",