next-helios-fe 1.7.14 → 1.7.16

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.7.14",
3
+ "version": "1.7.16",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -47,10 +47,10 @@ export const Button: React.FC<ButtonProps> = ({
47
47
  const width = options?.width === "fit" ? "w-fit" : "w-full";
48
48
  const height =
49
49
  options?.height === "short"
50
- ? "py-1 gap-2"
50
+ ? "h-[35px] gap-2"
51
51
  : options?.height === "high"
52
- ? "py-2 gap-4"
53
- : "py-1.5 gap-2";
52
+ ? "h-[43px] gap-4"
53
+ : "h-[39px] gap-2";
54
54
  const position =
55
55
  options?.position === "center"
56
56
  ? "justify-center"
@@ -65,10 +65,16 @@ export const Button: React.FC<ButtonProps> = ({
65
65
  return (
66
66
  <button
67
67
  className={`relative flex ${position} items-center ${width} px-3 ${height} rounded-md text-left ${variant} ${border} ${isActive} select-none disabled:pointer-events-none ${className}`}
68
+ disabled={rest.disabled || loading ? true : false}
68
69
  {...rest}
69
70
  >
70
71
  {loading ? (
71
- <Icon icon="mingcute:loading-fill" className="text-2xl animate-spin" />
72
+ <Icon
73
+ icon="mingcute:loading-fill"
74
+ className={`animate-spin ${
75
+ options?.height === "high" ? "text-2xl" : "text-xl"
76
+ }`}
77
+ />
72
78
  ) : (
73
79
  children
74
80
  )}