@enderfall/ui 0.2.6 → 0.2.9
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,8 +1,8 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes } from "react";
|
|
2
2
|
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3
3
|
variant?: "primary" | "ghost" | "locked" | "danger" | "delete" | "warning" | "info" | "success" | "tab";
|
|
4
|
-
subvariant?: "default" | "glow";
|
|
4
|
+
subvariant?: "default" | "glow" | "hover-glow";
|
|
5
5
|
};
|
|
6
6
|
export declare const Button: ({ variant, subvariant, className, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
8
|
-
//# sourceMappingURL=Button.d.ts.map
|
|
8
|
+
//# sourceMappingURL=Button.d.ts.map
|
package/package.json
CHANGED
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
box-shadow: var(--ef-button-glow-shadow, 0 0 24px rgba(124, 77, 255, 0.45));
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
.ef-button--glow:not(:disabled):hover,
|
|
32
|
+
.ef-button--glow:focus-visible {
|
|
33
|
+
box-shadow: var(--ef-button-glow-shadow, 0 0 24px rgba(124, 77, 255, 0.45));
|
|
34
|
+
}
|
|
35
|
+
|
|
31
36
|
.ef-button--hover-glow:not(:disabled):hover,
|
|
32
37
|
.ef-button--hover-glow:focus-visible {
|
|
33
38
|
box-shadow: var(--ef-button-glow-shadow, 0 0 24px rgba(124, 77, 255, 0.45));
|
package/src/components/Tabs.tsx
CHANGED
|
@@ -40,8 +40,8 @@ export const Tabs = ({
|
|
|
40
40
|
return (
|
|
41
41
|
<Button
|
|
42
42
|
key={tab.id}
|
|
43
|
-
variant="tab"
|
|
44
|
-
subvariant="
|
|
43
|
+
variant={isActive ? "primary" : "tab"}
|
|
44
|
+
subvariant={isActive ? "glow" : "hover-glow"}
|
|
45
45
|
className={["ef-tab", isVertical ? "ef-tab--vertical" : "", isActive ? "is-active" : ""]
|
|
46
46
|
.filter(Boolean)
|
|
47
47
|
.join(" ")}
|