love-ui 1.2.22 → 1.2.23

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.
Files changed (68) hide show
  1. package/dist/{chunk-L7XDZOUL.js → chunk-CH2CHRA7.js} +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/mcp-server.js +1 -1
  4. package/package.json +1 -1
  5. package/registry/default/blocks/404-2/components/not-found.tsx +1 -1
  6. package/registry/default/blocks/auth1/components/auth-page.tsx +0 -7
  7. package/registry/default/blocks/auth1/components/logo.tsx +3 -14
  8. package/registry/default/blocks/auth2/components/auth.tsx +1 -1
  9. package/registry/default/blocks/auth2/components/ui/decor-icon.tsx +49 -36
  10. package/registry/default/blocks/auth3/components/logo.tsx +3 -14
  11. package/registry/default/blocks/auth3/components/ui/decor-icon.tsx +49 -36
  12. package/registry/default/blocks/contact5/components/decor-icon.tsx +49 -36
  13. package/registry/default/blocks/cta-3/components/cta.tsx +1 -1
  14. package/registry/default/blocks/cta-3/components/decor-icon.tsx +49 -36
  15. package/registry/default/blocks/cta-5/components/cta.tsx +3 -9
  16. package/registry/default/blocks/faq-3/components/decor-icon.tsx +49 -36
  17. package/registry/default/blocks/features1/components/feature-section.tsx +1 -1
  18. package/registry/default/blocks/features2/components/decor-icon.tsx +49 -36
  19. package/registry/default/blocks/features2/components/feature-section.tsx +1 -1
  20. package/registry/default/blocks/features4/components/decor-icon.tsx +49 -36
  21. package/registry/default/blocks/features4/components/feature-section.tsx +0 -2
  22. package/registry/default/blocks/features5/components/feature-section.tsx +1 -1
  23. package/registry/default/blocks/features6/components/feature-section.tsx +5 -21
  24. package/registry/default/blocks/footer1/components/logo.tsx +3 -14
  25. package/registry/default/blocks/footer2/components/footer.tsx +1 -1
  26. package/registry/default/blocks/footer2/components/logo.tsx +3 -14
  27. package/registry/default/blocks/footer3/components/footer.tsx +2 -2
  28. package/registry/default/blocks/footer3/components/logo.tsx +3 -14
  29. package/registry/default/blocks/footer4/components/footer.tsx +1 -1
  30. package/registry/default/blocks/footer4/components/logo.tsx +3 -14
  31. package/registry/default/blocks/footer5/components/footer.tsx +27 -30
  32. package/registry/default/blocks/footer5/components/logo.tsx +3 -14
  33. package/registry/default/blocks/footer6/components/footer.tsx +3 -3
  34. package/registry/default/blocks/footer6/components/logo.tsx +3 -14
  35. package/registry/default/blocks/header1/components/logo.tsx +3 -14
  36. package/registry/default/blocks/header2/components/logo.tsx +3 -14
  37. package/registry/default/blocks/header3/components/logo.tsx +3 -14
  38. package/registry/default/blocks/hero1/components/hero.tsx +7 -7
  39. package/registry/default/blocks/hero1/components/logo.tsx +3 -14
  40. package/registry/default/blocks/hero2/components/decor-icon.tsx +49 -36
  41. package/registry/default/blocks/hero2/components/hero.tsx +4 -5
  42. package/registry/default/blocks/hero2/components/logo.tsx +3 -14
  43. package/registry/default/blocks/hero3/components/hero.tsx +2 -3
  44. package/registry/default/blocks/hero3/components/logo.tsx +3 -14
  45. package/registry/default/blocks/integrations1/components/integrations.tsx +7 -1
  46. package/registry/default/blocks/integrations2/components/decor-icon.tsx +49 -36
  47. package/registry/default/blocks/integrations2/components/integrations.tsx +7 -1
  48. package/registry/default/blocks/integrations3/components/integrations.tsx +25 -34
  49. package/registry/default/blocks/integrations4/components/integrations.tsx +2 -5
  50. package/registry/default/blocks/integrations5/components/integrations.tsx +8 -5
  51. package/registry/default/blocks/logo-cloud-2/components/decor-icon.tsx +49 -36
  52. package/registry/default/blocks/logo-cloud-3/app/page.tsx +2 -2
  53. package/registry/default/blocks/logo-cloud-3/components/logo-cloud.tsx +1 -1
  54. package/registry/default/blocks/logo-cloud-4/components/logo-cloud.tsx +1 -1
  55. package/registry/default/blocks/logo-cloud-4/components/progressive-blur.tsx +30 -36
  56. package/registry/default/blocks/pricing1/components/decor-icon.tsx +49 -36
  57. package/registry/default/blocks/stats10/components/stats.tsx +1 -9
  58. package/registry/default/blocks/testimonials1/components/logo.tsx +3 -14
  59. package/registry/default/blocks/testimonials1/components/testimonials.tsx +1 -1
  60. package/registry/default/blocks/testimonials2/components/testimonials.tsx +3 -3
  61. package/registry/default/blocks/testimonials3/components/decor-icon.tsx +49 -36
  62. package/registry/default/blocks/testimonials3/components/testimonials.tsx +0 -1
  63. package/registry/default/blocks/testimonials5/components/testimonials.tsx +1 -1
  64. package/registry/default/blocks/testimonials6/components/testimonials.tsx +1 -1
  65. package/registry/default/examples/preview-card-profile.tsx +3 -3
  66. package/registry/default/ui/button.tsx +1 -1
  67. package/registry/default/ui/toggle.tsx +2 -1
  68. package/registry/default/blocks/auth1/components/particles.tsx +0 -321
@@ -1,63 +1,57 @@
1
1
  "use client";
2
- import { cn } from "@/lib/utils";
3
- import { type HTMLMotionProps, motion } from "motion/react";
2
+ import { motion, type HTMLMotionProps } from "motion/react";
4
3
 
5
- export const GRADIENT_ANGLES = {
6
- top: 0,
7
- right: 90,
8
- bottom: 180,
9
- left: 270,
4
+ export const BLUR_DIRECTIONS = {
5
+ top: "to bottom",
6
+ right: "to left",
7
+ bottom: "to top",
8
+ left: "to right",
10
9
  };
11
10
 
12
11
  export type ProgressiveBlurProps = {
13
- direction?: keyof typeof GRADIENT_ANGLES;
12
+ direction?: keyof typeof BLUR_DIRECTIONS;
14
13
  blurLayers?: number;
15
14
  className?: string;
16
15
  blurIntensity?: number;
17
16
  } & HTMLMotionProps<"div">;
18
17
 
19
18
  export function ProgressiveBlur({
20
- direction = "bottom",
19
+ direction = "left",
21
20
  blurLayers = 8,
22
21
  className,
23
- blurIntensity = 0.25,
22
+ blurIntensity = 1,
23
+ style,
24
24
  ...props
25
25
  }: ProgressiveBlurProps) {
26
- const layers = Math.max(blurLayers, 2);
27
- const segmentSize = 1 / (blurLayers + 1);
26
+ const layers = Math.max(1, blurLayers);
27
+ const gradientDirection = BLUR_DIRECTIONS[direction];
28
28
 
29
29
  return (
30
- <div className={cn("relative", className)}>
30
+ <motion.div
31
+ aria-hidden="true"
32
+ className={className}
33
+ style={{ overflow: "hidden", ...style }}
34
+ {...props}
35
+ >
31
36
  {Array.from({ length: layers }).map((_, index) => {
32
- const angle = GRADIENT_ANGLES[direction];
33
- const gradientStops = [
34
- index * segmentSize,
35
- (index + 1) * segmentSize,
36
- (index + 2) * segmentSize,
37
- (index + 3) * segmentSize,
38
- ].map(
39
- (pos, posIndex) =>
40
- `rgba(255, 255, 255, ${posIndex === 1 || posIndex === 2 ? 1 : 0}) ${pos * 100}%`
41
- );
42
-
43
- const gradient = `linear-gradient(${angle}deg, ${gradientStops.join(
44
- ", "
45
- )})`;
37
+ const blur = (index + 1) * blurIntensity * 2;
38
+ const coverage = ((layers - index) / layers) * 100;
39
+ const fadeEnd = Math.min(coverage + 16, 100);
40
+ const mask = `linear-gradient(${gradientDirection}, black 0%, black ${coverage}%, transparent ${fadeEnd}%)`;
46
41
 
47
42
  return (
48
- <motion.div
49
- className="pointer-events-none absolute inset-0 rounded-[inherit]"
50
- key={index}
43
+ <div
44
+ key={String(index)}
45
+ className="absolute inset-0"
51
46
  style={{
52
- maskImage: gradient,
53
- WebkitMaskImage: gradient,
54
- backdropFilter: `blur(${index * blurIntensity}px)`,
55
- WebkitBackdropFilter: `blur(${index * blurIntensity}px)`,
47
+ backdropFilter: `blur(${blur}px)`,
48
+ WebkitBackdropFilter: `blur(${blur}px)`,
49
+ maskImage: mask,
50
+ WebkitMaskImage: mask,
56
51
  }}
57
- {...props}
58
52
  />
59
53
  );
60
54
  })}
61
- </div>
55
+ </motion.div>
62
56
  );
63
57
  }
@@ -2,44 +2,57 @@ import { cn } from "@/lib/utils";
2
2
  import { cva, type VariantProps } from "class-variance-authority";
3
3
 
4
4
  const DecorIconVariants = cva(
5
- "pointer-events-none absolute z-1 size-5 shrink-0 stroke-1 stroke-muted-foreground",
6
- {
7
- variants: {
8
- position: {
9
- "top-left":
10
- "top-0 left-0 -translate-x-[calc(50%+0.5px)] -translate-y-[calc(50%+0.5px)]",
11
- "top-right":
12
- "top-0 right-0 translate-x-[calc(50%+0.5px)] -translate-y-[calc(50%+0.5px)]",
13
- "bottom-right":
14
- "right-0 bottom-0 translate-x-[calc(50%+0.5px)] translate-y-[calc(50%+0.5px)]",
15
- "bottom-left":
16
- "bottom-0 left-0 -translate-x-[calc(50%+0.5px)] translate-y-[calc(50%+0.5px)]",
17
- },
18
- },
19
- defaultVariants: {
20
- position: "top-left",
21
- },
22
- }
5
+ "pointer-events-none absolute z-1 size-4 shrink-0 stroke-1 stroke-muted-foreground transition-transform",
6
+ {
7
+ variants: {
8
+ position: {
9
+ // We also rotate the SVG inside the variant so the bracket always points inward
10
+ "top-left":
11
+ "top-0 left-0 -translate-x-1/2 -translate-y-1/2",
12
+ "top-right":
13
+ "top-0 right-0 translate-x-1/2 -translate-y-1/2 rotate-90",
14
+ "bottom-right":
15
+ "right-0 bottom-0 translate-x-1/2 translate-y-1/2 rotate-180",
16
+ "bottom-left":
17
+ "bottom-0 left-0 -translate-x-1/2 translate-y-1/2 -rotate-90",
18
+ },
19
+ },
20
+ defaultVariants: {
21
+ position: "top-left",
22
+ },
23
+ }
23
24
  );
24
25
 
25
26
  type DecorIconProps = React.ComponentProps<"svg"> &
26
- VariantProps<typeof DecorIconVariants>;
27
+ VariantProps<typeof DecorIconVariants> & {
28
+ variant?: "bracket" | "dot" | "diagonal";
29
+ };
27
30
 
28
- export function DecorIcon({ position, className, ...props }: DecorIconProps) {
29
- return (
30
- <svg
31
- aria-hidden="true"
32
- className={cn(DecorIconVariants({ position, className }))}
33
- fill="none"
34
- stroke="currentColor"
35
- strokeLinecap="round"
36
- strokeLinejoin="round"
37
- viewBox="0 0 24 24"
38
- xmlns="http://www.w3.org/2000/svg"
39
- {...props}
40
- >
41
- <path d="M5 12h14" />
42
- <path d="M12 5v14" />
43
- </svg>
44
- );
31
+ export function DecorIcon({ position, variant = "bracket", className, ...props }: DecorIconProps) {
32
+ return (
33
+ <svg
34
+ aria-hidden="true"
35
+ className={cn(DecorIconVariants({ position, className }))}
36
+ fill="none"
37
+ stroke="currentColor"
38
+ viewBox="0 0 24 24"
39
+ xmlns="http://www.w3.org/2000/svg"
40
+ {...props}
41
+ >
42
+ {/* OPTION 1: Corner Bracket (Default) */}
43
+ {variant === "bracket" && (
44
+ <path strokeLinecap="round" strokeLinejoin="round" d="M12 4H4v8" />
45
+ )}
46
+
47
+ {/* OPTION 2: Minimalist Dot (Change fill to currentColor in class if using this) */}
48
+ {variant === "dot" && (
49
+ <circle cx="12" cy="12" r="3" fill="currentColor" />
50
+ )}
51
+
52
+ {/* OPTION 3: Diagonal Accent Line */}
53
+ {variant === "diagonal" && (
54
+ <path strokeLinecap="round" d="M4 20L20 4" />
55
+ )}
56
+ </svg>
57
+ );
45
58
  }
@@ -138,8 +138,6 @@ export default function Stats10() {
138
138
  <dl className="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 w-full">
139
139
  {summary.map((item) => {
140
140
  const sanitizedName = sanitizeName(item.name);
141
- const gradientId = `gradient-${sanitizedName}`;
142
-
143
141
  const color =
144
142
  item.changeType === "positive" ? "hsl(142.1 76.2% 36.3%)" : "hsl(0 72.2% 50.6%)";
145
143
 
@@ -188,17 +186,11 @@ export default function Stats10() {
188
186
  }}
189
187
  >
190
188
  <AreaChart data={data}>
191
- <defs>
192
- <linearGradient id={gradientId} x1="0" y1="0" x2="0" y2="1">
193
- <stop offset="5%" stopColor={color} stopOpacity={0.3} />
194
- <stop offset="95%" stopColor={color} stopOpacity={0} />
195
- </linearGradient>
196
- </defs>
197
189
  <XAxis dataKey="date" hide={true} />
198
190
  <Area
199
191
  dataKey={item.name}
200
192
  stroke={color}
201
- fill={`url(#${gradientId})`}
193
+ fill={color}
202
194
  fillOpacity={0.4}
203
195
  strokeWidth={1.5}
204
196
  type="monotone"
@@ -7,21 +7,10 @@ export const Logo = (props: React.ComponentProps<"svg">) => (
7
7
  xmlns="http://www.w3.org/2000/svg"
8
8
  {...props}
9
9
  >
10
- <defs>
11
- <linearGradient id="loveui-blue" x1="0" x2="48" y1="0" y2="48">
12
- <stop stopColor="#38A3FF" />
13
- <stop offset="0.55" stopColor="#1266F1" />
14
- <stop offset="1" stopColor="#0B3FD8" />
15
- </linearGradient>
16
-
17
- <linearGradient id="loveui-shine" x1="0" x2="1" y1="0" y2="1">
18
- <stop stopColor="#FFFFFF" stopOpacity="0.9" />
19
- <stop offset="1" stopColor="#BBD8FF" stopOpacity="0.4" />
20
- </linearGradient>
21
- </defs>
10
+
22
11
 
23
12
  <g transform="translate(0 0)">
24
- <rect fill="url(#loveui-blue)" height="48" rx="12" width="48" x="0" y="0" />
13
+ <rect fill="#1266F1" height="48" rx="12" width="48" x="0" y="0" />
25
14
 
26
15
  <path
27
16
  d="
@@ -56,7 +45,7 @@ export const Logo = (props: React.ComponentProps<"svg">) => (
56
45
  H18
57
46
  C19.7 29 21 27.7 21 25
58
47
  Z"
59
- fill="url(#loveui-shine)"
48
+ fill="#BBD8FF"
60
49
  opacity="0.5"
61
50
  />
62
51
  </g>
@@ -18,7 +18,7 @@ export function TestimonialsSection() {
18
18
  control of the code.&quot;
19
19
  </blockquote>
20
20
 
21
- <div className="mask-[linear-gradient(to_right,transparent,black,transparent)] mx-auto my-5 h-px w-full max-w-sm bg-border" />
21
+ <div className=" mx-auto my-5 h-px w-full max-w-sm bg-border" />
22
22
 
23
23
  <figcaption className="flex flex-col items-center gap-5">
24
24
  <div className="space-y-0.5 text-center">
@@ -16,7 +16,7 @@ export function TestimonialsSection() {
16
16
  <MaskLine className="top-0 md:w-xl" orientation="horizontal" />
17
17
  <MaskLine className="bottom-0 md:w-xl" orientation="horizontal" />
18
18
 
19
- <Avatar className="mask-[radial-gradient(circle,black_60%,transparent)] size-24 rounded-none *:rounded-none md:size-32">
19
+ <Avatar className=" size-24 rounded-none *:rounded-none md:size-32">
20
20
  <AvatarImage
21
21
  alt="Connor Love's profile picture"
22
22
  src="https://github.com/loveconnor.png"
@@ -54,9 +54,9 @@ export function MaskLine({
54
54
  className={cn(
55
55
  "absolute bg-foreground/20",
56
56
  orientation === "vertical" &&
57
- "mask-t-from-80% mask-b-from-80% -inset-y-1/2 w-px",
57
+ " -inset-y-1/2 w-px",
58
58
  orientation === "horizontal" &&
59
- "mask-l-from-80% mask-r-from-80% -inset-x-1/2 h-px",
59
+ " -inset-x-1/2 h-px",
60
60
  className
61
61
  )}
62
62
  {...props}
@@ -2,44 +2,57 @@ import { cn } from "@/lib/utils";
2
2
  import { cva, type VariantProps } from "class-variance-authority";
3
3
 
4
4
  const DecorIconVariants = cva(
5
- "pointer-events-none absolute z-1 size-5 shrink-0 stroke-1 stroke-muted-foreground",
6
- {
7
- variants: {
8
- position: {
9
- "top-left":
10
- "top-0 left-0 -translate-x-[calc(50%+0.5px)] -translate-y-[calc(50%+0.5px)]",
11
- "top-right":
12
- "top-0 right-0 translate-x-[calc(50%+0.5px)] -translate-y-[calc(50%+0.5px)]",
13
- "bottom-right":
14
- "right-0 bottom-0 translate-x-[calc(50%+0.5px)] translate-y-[calc(50%+0.5px)]",
15
- "bottom-left":
16
- "bottom-0 left-0 -translate-x-[calc(50%+0.5px)] translate-y-[calc(50%+0.5px)]",
17
- },
18
- },
19
- defaultVariants: {
20
- position: "top-left",
21
- },
22
- }
5
+ "pointer-events-none absolute z-1 size-4 shrink-0 stroke-1 stroke-muted-foreground transition-transform",
6
+ {
7
+ variants: {
8
+ position: {
9
+ // We also rotate the SVG inside the variant so the bracket always points inward
10
+ "top-left":
11
+ "top-0 left-0 -translate-x-1/2 -translate-y-1/2",
12
+ "top-right":
13
+ "top-0 right-0 translate-x-1/2 -translate-y-1/2 rotate-90",
14
+ "bottom-right":
15
+ "right-0 bottom-0 translate-x-1/2 translate-y-1/2 rotate-180",
16
+ "bottom-left":
17
+ "bottom-0 left-0 -translate-x-1/2 translate-y-1/2 -rotate-90",
18
+ },
19
+ },
20
+ defaultVariants: {
21
+ position: "top-left",
22
+ },
23
+ }
23
24
  );
24
25
 
25
26
  type DecorIconProps = React.ComponentProps<"svg"> &
26
- VariantProps<typeof DecorIconVariants>;
27
+ VariantProps<typeof DecorIconVariants> & {
28
+ variant?: "bracket" | "dot" | "diagonal";
29
+ };
27
30
 
28
- export function DecorIcon({ position, className, ...props }: DecorIconProps) {
29
- return (
30
- <svg
31
- aria-hidden="true"
32
- className={cn(DecorIconVariants({ position, className }))}
33
- fill="none"
34
- stroke="currentColor"
35
- strokeLinecap="round"
36
- strokeLinejoin="round"
37
- viewBox="0 0 24 24"
38
- xmlns="http://www.w3.org/2000/svg"
39
- {...props}
40
- >
41
- <path d="M5 12h14" />
42
- <path d="M12 5v14" />
43
- </svg>
44
- );
31
+ export function DecorIcon({ position, variant = "bracket", className, ...props }: DecorIconProps) {
32
+ return (
33
+ <svg
34
+ aria-hidden="true"
35
+ className={cn(DecorIconVariants({ position, className }))}
36
+ fill="none"
37
+ stroke="currentColor"
38
+ viewBox="0 0 24 24"
39
+ xmlns="http://www.w3.org/2000/svg"
40
+ {...props}
41
+ >
42
+ {/* OPTION 1: Corner Bracket (Default) */}
43
+ {variant === "bracket" && (
44
+ <path strokeLinecap="round" strokeLinejoin="round" d="M12 4H4v8" />
45
+ )}
46
+
47
+ {/* OPTION 2: Minimalist Dot (Change fill to currentColor in class if using this) */}
48
+ {variant === "dot" && (
49
+ <circle cx="12" cy="12" r="3" fill="currentColor" />
50
+ )}
51
+
52
+ {/* OPTION 3: Diagonal Accent Line */}
53
+ {variant === "diagonal" && (
54
+ <path strokeLinecap="round" d="M4 20L20 4" />
55
+ )}
56
+ </svg>
57
+ );
45
58
  }
@@ -71,7 +71,6 @@ function TestimonialCard({
71
71
  <figure
72
72
  className={cn(
73
73
  "relative flex flex-col justify-between gap-6 px-8 pt-8 pb-6 shadow-xs md:translate-y-[calc(3rem*var(--t-card-index))]",
74
- "dark:bg-[radial-gradient(50%_80%_at_25%_0%,--theme(--color-foreground/.1),transparent)]",
75
74
  className
76
75
  )}
77
76
  style={
@@ -155,7 +155,7 @@ function TestimonialsCard({
155
155
  )}
156
156
  {...props}
157
157
  >
158
- <div className="mask-[radial-gradient(farthest-side_at_top,white,transparent)] pointer-events-none absolute top-0 left-1/2 -mt-2 -ml-20 size-full">
158
+ <div className=" pointer-events-none absolute top-0 left-1/2 -mt-2 -ml-20 size-full">
159
159
  <GridPattern
160
160
  className="absolute inset-0 size-full stroke-border"
161
161
  height={25}
@@ -114,7 +114,7 @@ export function TestimonialsSection() {
114
114
  <div
115
115
  className={cn(
116
116
  "mt-10 flex max-h-160 justify-center gap-6 overflow-hidden",
117
- "mask-[linear-gradient(to_bottom,transparent,black_25%,black_75%,transparent)]"
117
+ ""
118
118
  )}
119
119
  >
120
120
  <InfiniteSlider direction="vertical" speed={30} speedOnHover={15}>
@@ -5,11 +5,11 @@ import { PreviewCard, PreviewCardPopup, PreviewCardTrigger } from "@/registry/de
5
5
  export default function PreviewCardProfile() {
6
6
  return (
7
7
  <PreviewCard>
8
- <PreviewCardTrigger render={<Button variant="ghost" />}>Morgan Chen</PreviewCardTrigger>
8
+ <PreviewCardTrigger render={<Button variant="ghost" />}>Connor Love</PreviewCardTrigger>
9
9
  <PreviewCardPopup>
10
10
  <div className="flex gap-3">
11
- <Avatar><AvatarImage src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=96&h=96&fit=crop" alt="Morgan" /><AvatarFallback>MC</AvatarFallback></Avatar>
12
- <div><div className="font-medium">Morgan Chen</div><p className="text-sm text-muted-foreground">Design systems engineer</p></div>
11
+ <Avatar><AvatarImage src="https://github.com/loveconnor" alt="Connor" /><AvatarFallback>CL</AvatarFallback></Avatar>
12
+ <div><div className="font-medium">Connor Love</div><p className="text-sm text-muted-foreground">Designer & Developer</p></div>
13
13
  </div>
14
14
  </PreviewCardPopup>
15
15
  </PreviewCard>
@@ -15,7 +15,7 @@ const buttonVariants = cva(
15
15
  outline:
16
16
  "border-border bg-background shadow-xs not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border dark:not-disabled:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] [&:is(:disabled,:active,[data-pressed])]:shadow-none [&:is(:hover,[data-pressed])]:bg-accent/50 dark:[&:is(:hover,[data-pressed])]:bg-input/64",
17
17
  secondary:
18
- "border-secondary bg-secondary text-secondary-foreground hover:bg-secondary/90 data-pressed:bg-secondary/90",
18
+ "border-border bg-secondary text-secondary-foreground shadow-xs not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] hover:bg-secondary/80 data-pressed:bg-secondary/80 dark:border-secondary dark:shadow-none dark:not-disabled:not-active:not-data-pressed:before:shadow-none dark:hover:bg-secondary/90 dark:data-pressed:bg-secondary/90",
19
19
  destructive:
20
20
  "border-destructive bg-destructive text-white shadow-xs shadow-destructive/24 not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] hover:bg-destructive/90 [&:is(:active,[data-pressed])]:inset-shadow-[0_1px_--theme(--color-black/8%)] [&:is(:disabled,:active,[data-pressed])]:shadow-none",
21
21
  "destructive-outline":
@@ -13,7 +13,8 @@ const toggleVariants = cva(
13
13
  {
14
14
  variants: {
15
15
  variant: {
16
- default: "border-transparent",
16
+ default:
17
+ "border-transparent bg-transparent text-foreground shadow-none data-pressed:border-border data-pressed:bg-accent data-pressed:text-accent-foreground dark:data-pressed:border-transparent dark:data-pressed:bg-input/80",
17
18
  outline:
18
19
  "border-border bg-clip-padding shadow-xs not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-disabled:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/4%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/8%)] dark:hover:bg-input/64 [&:is(:disabled,:active,[data-pressed])]:shadow-none",
19
20
  },