@loafmarkets/ui 0.1.7 → 0.1.8
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/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5,9 +5,9 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
5
5
|
import * as LightweightCharts from 'lightweight-charts';
|
|
6
6
|
|
|
7
7
|
declare const buttonVariants: (props?: ({
|
|
8
|
-
variant?: "primary" | "accent" | "accentOutline" | "media" | "outline" | "ghost" | "danger" | null | undefined;
|
|
8
|
+
variant?: "primary" | "onboarding" | "onboardingOutline" | "accent" | "accentOutline" | "media" | "outline" | "ghost" | "danger" | null | undefined;
|
|
9
9
|
size?: "sm" | "md" | "lg" | "icon" | null | undefined;
|
|
10
|
-
radius?: "md" | "pill" | null | undefined;
|
|
10
|
+
radius?: "md" | "pill" | "square" | null | undefined;
|
|
11
11
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
12
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
13
13
|
asChild?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
5
5
|
import * as LightweightCharts from 'lightweight-charts';
|
|
6
6
|
|
|
7
7
|
declare const buttonVariants: (props?: ({
|
|
8
|
-
variant?: "primary" | "accent" | "accentOutline" | "media" | "outline" | "ghost" | "danger" | null | undefined;
|
|
8
|
+
variant?: "primary" | "onboarding" | "onboardingOutline" | "accent" | "accentOutline" | "media" | "outline" | "ghost" | "danger" | null | undefined;
|
|
9
9
|
size?: "sm" | "md" | "lg" | "icon" | null | undefined;
|
|
10
|
-
radius?: "md" | "pill" | null | undefined;
|
|
10
|
+
radius?: "md" | "pill" | "square" | null | undefined;
|
|
11
11
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
12
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
13
13
|
asChild?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,8 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
39
39
|
variants: {
|
|
40
40
|
variant: {
|
|
41
41
|
primary: "bg-teal-500 text-slate-950 hover:bg-teal-400 focus-visible:ring-teal-200",
|
|
42
|
+
onboarding: "rounded-lg bg-[#F2D898] text-[#0A0C15] shadow-[0_20px_60px_rgba(242,216,152,0.35)] transition will-change-transform hover:-translate-y-0.5 hover:brightness-110 focus-visible:ring-[#F2D898]/50 focus-visible:ring-offset-[#0A0C15]",
|
|
43
|
+
onboardingOutline: "rounded-lg border border-[#F2D898] bg-transparent text-white hover:bg-white/5 focus-visible:ring-[#F2D898]/50 focus-visible:ring-offset-[#0A0C15]",
|
|
42
44
|
accent: "bg-[var(--color-accent,#e6c87e)] text-black hover:bg-[var(--color-accent-hover,#f8d12f)] focus-visible:ring-[var(--color-accent,#e6c87e)]",
|
|
43
45
|
accentOutline: "border border-[var(--color-accent,#e6c87e)] bg-transparent text-[var(--color-accent,#e6c87e)] hover:bg-[rgba(230,200,126,0.10)] focus-visible:ring-[var(--color-accent,#e6c87e)]",
|
|
44
46
|
media: "border border-white/10 bg-transparent text-white/90 hover:bg-white/5 hover:border-[var(--color-accent,#e6c87e)] hover:text-[var(--color-accent,#e6c87e)] focus-visible:ring-[var(--color-accent,#e6c87e)]",
|
|
@@ -54,7 +56,8 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
54
56
|
},
|
|
55
57
|
radius: {
|
|
56
58
|
pill: "rounded-full",
|
|
57
|
-
md: "rounded"
|
|
59
|
+
md: "rounded",
|
|
60
|
+
square: "rounded-lg"
|
|
58
61
|
}
|
|
59
62
|
},
|
|
60
63
|
defaultVariants: {
|
|
@@ -67,11 +70,12 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
67
70
|
var Button = o__namespace.forwardRef(
|
|
68
71
|
({ className, variant, size, radius, asChild = false, ...props }, ref) => {
|
|
69
72
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
73
|
+
const coercedRadius = radius ?? (variant === "onboarding" || variant === "onboardingOutline" ? "square" : void 0);
|
|
70
74
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
71
75
|
Comp,
|
|
72
76
|
{
|
|
73
77
|
ref,
|
|
74
|
-
className: cn(buttonVariants({ variant, size, radius }), className),
|
|
78
|
+
className: cn(buttonVariants({ variant, size, radius: coercedRadius }), className),
|
|
75
79
|
...props
|
|
76
80
|
}
|
|
77
81
|
);
|