motion-ui-skill 2.0.0 → 2.1.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.
Files changed (166) hide show
  1. package/README.md +71 -21
  2. package/SKILL.md +83 -9
  3. package/bin/index.mjs +2 -2
  4. package/bin/installer.mjs +6 -0
  5. package/catalog.json +1044 -139
  6. package/components/agents/thinking-states.tsx +156 -0
  7. package/components/buttons/aqua-button.tsx +145 -0
  8. package/components/buttons/ash-burst-button.tsx +528 -0
  9. package/components/buttons/brutal-button.tsx +68 -0
  10. package/components/buttons/chrome-button.tsx +444 -0
  11. package/components/buttons/click-powerup.tsx +203 -0
  12. package/components/buttons/command-button.tsx +226 -0
  13. package/components/buttons/confetti-button.tsx +132 -0
  14. package/components/buttons/cooldown-button.tsx +169 -0
  15. package/components/buttons/demonic-button.tsx +470 -0
  16. package/components/buttons/dither-button.tsx +192 -0
  17. package/components/buttons/doubt-button.tsx +240 -0
  18. package/components/buttons/evil-eye-button.tsx +563 -0
  19. package/components/buttons/frame-button.tsx +211 -0
  20. package/components/buttons/glitch-button.tsx +243 -0
  21. package/components/buttons/highlight-button.tsx +196 -0
  22. package/components/buttons/hold-button.tsx +245 -0
  23. package/components/buttons/minecraft-button.tsx +651 -0
  24. package/components/buttons/minimal-button.tsx +50 -0
  25. package/components/buttons/morph-status-button.tsx +264 -0
  26. package/components/buttons/movie-pass-button.tsx +205 -0
  27. package/components/buttons/realistic-switch.tsx +298 -0
  28. package/components/buttons/reveal-button.tsx +197 -0
  29. package/components/buttons/shiny-button.tsx +87 -0
  30. package/components/buttons/slide-to-detonate.tsx +444 -0
  31. package/components/buttons/sticky-button.tsx +184 -0
  32. package/components/buttons/thruster-button.tsx +920 -0
  33. package/components/buttons/troll-button.tsx +264 -0
  34. package/components/motion/banner-stacking.tsx +124 -0
  35. package/components/motion/delete-with-smoky-dissolve.tsx +145 -0
  36. package/components/motion/donut-chart.tsx +112 -0
  37. package/components/motion/drag-drop-with-physics.tsx +116 -0
  38. package/components/motion/dropdown-menu-morph.tsx +157 -0
  39. package/components/motion/get-pro-button.tsx +54 -0
  40. package/components/motion/image-open-tilt.tsx +79 -0
  41. package/components/motion/input-clear-with-dissolve.tsx +111 -0
  42. package/components/motion/learn-more-hover.tsx +71 -0
  43. package/components/motion/matrix-dot-loader.tsx +68 -0
  44. package/components/motion/organic-shimmer.tsx +49 -0
  45. package/components/motion/pro-gradient-text.tsx +46 -0
  46. package/components/motion/skeleton-loader-and-reveal.tsx +81 -0
  47. package/components/motion/spinner-to-check-morph.tsx +99 -0
  48. package/components/motion/spinning-counter.tsx +64 -0
  49. package/components/motion/text-morph.tsx +80 -0
  50. package/components/motion/texts-reveal.tsx +49 -0
  51. package/data/app-interface.csv +33 -0
  52. package/data/charts.csv +26 -0
  53. package/data/colors.csv +193 -0
  54. package/data/google-fonts.csv +1935 -0
  55. package/data/icons.csv +106 -0
  56. package/data/landing.csv +35 -0
  57. package/data/motion.csv +18 -0
  58. package/data/products.csv +193 -0
  59. package/data/react-performance.csv +45 -0
  60. package/data/stacks/angular.csv +51 -0
  61. package/data/stacks/astro.csv +54 -0
  62. package/data/stacks/avalonia.csv +57 -0
  63. package/data/stacks/flutter.csv +53 -0
  64. package/data/stacks/html-tailwind.csv +60 -0
  65. package/data/stacks/javafx.csv +76 -0
  66. package/data/stacks/jetpack-compose.csv +53 -0
  67. package/data/stacks/laravel.csv +51 -0
  68. package/data/stacks/nextjs.csv +62 -0
  69. package/data/stacks/nuxt-ui.csv +77 -0
  70. package/data/stacks/nuxtjs.csv +68 -0
  71. package/data/stacks/react-native.csv +52 -0
  72. package/data/stacks/react.csv +67 -0
  73. package/data/stacks/shadcn.csv +69 -0
  74. package/data/stacks/svelte.csv +56 -0
  75. package/data/stacks/swiftui.csv +51 -0
  76. package/data/stacks/threejs.csv +54 -0
  77. package/data/stacks/uno.csv +60 -0
  78. package/data/stacks/uwp.csv +56 -0
  79. package/data/stacks/vue.csv +50 -0
  80. package/data/stacks/winui.csv +60 -0
  81. package/data/stacks/wpf.csv +57 -0
  82. package/data/styles.csv +89 -0
  83. package/data/typography.csv +75 -0
  84. package/data/ui-reasoning.csv +193 -0
  85. package/data/ux-guidelines.csv +120 -0
  86. package/evals/catalog_eval.py +56 -0
  87. package/icons/annotations/loop-arrow.tsx +61 -0
  88. package/icons/brands/anthropic.tsx +26 -0
  89. package/icons/brands/apple.tsx +26 -0
  90. package/icons/brands/canva.tsx +26 -0
  91. package/icons/brands/claude-ai.tsx +26 -0
  92. package/icons/brands/discord.tsx +26 -0
  93. package/icons/brands/github.tsx +26 -0
  94. package/icons/brands/gmail.tsx +26 -0
  95. package/icons/brands/google.tsx +26 -0
  96. package/icons/brands/linkedin.tsx +29 -0
  97. package/icons/brands/microsoft.tsx +26 -0
  98. package/icons/brands/next-js.tsx +26 -0
  99. package/icons/brands/producthunt.tsx +26 -0
  100. package/icons/brands/react-js.tsx +29 -0
  101. package/icons/brands/shadcn-ui.tsx +26 -0
  102. package/icons/brands/tailwind-css.tsx +26 -0
  103. package/icons/brands/twitter.tsx +30 -0
  104. package/icons/brands/typescript.tsx +26 -0
  105. package/icons/brands/unsplash.tsx +27 -0
  106. package/icons/brands/vercel.tsx +26 -0
  107. package/icons/brands/whatsapp.tsx +26 -0
  108. package/package.json +9 -3
  109. package/prompts/install-motion-ui.md +17 -0
  110. package/references/agents/thinking-states.md +56 -0
  111. package/references/craft/aqua-button.md +53 -0
  112. package/references/craft/ash-burst-button.md +55 -0
  113. package/references/craft/brutal-button.md +52 -0
  114. package/references/craft/chrome-button.md +53 -0
  115. package/references/craft/click-powerup.md +53 -0
  116. package/references/craft/command-button.md +53 -0
  117. package/references/craft/confetti-button.md +54 -0
  118. package/references/craft/cooldown-button.md +54 -0
  119. package/references/craft/demonic-button.md +53 -0
  120. package/references/craft/dither-button.md +52 -0
  121. package/references/craft/doubt-button.md +53 -0
  122. package/references/craft/evil-eye-button.md +52 -0
  123. package/references/craft/frame-button.md +54 -0
  124. package/references/craft/glitch-button.md +52 -0
  125. package/references/craft/highlight-button.md +53 -0
  126. package/references/craft/hold-button.md +53 -0
  127. package/references/craft/minecraft-button.md +53 -0
  128. package/references/craft/minimal-button.md +52 -0
  129. package/references/craft/morph-status-button.md +53 -0
  130. package/references/craft/movie-pass-button.md +53 -0
  131. package/references/craft/realistic-switch.md +54 -0
  132. package/references/craft/reveal-button.md +53 -0
  133. package/references/craft/shiny-button.md +52 -0
  134. package/references/craft/slide-to-detonate.md +53 -0
  135. package/references/craft/sticky-button.md +54 -0
  136. package/references/craft/thruster-button.md +53 -0
  137. package/references/craft/troll-button.md +54 -0
  138. package/references/guides/design-intelligence.md +125 -0
  139. package/references/guides/interaction-transitions.md +56 -38
  140. package/references/guides/motion-polish-rules.md +75 -0
  141. package/references/guides/stack-best-practices.md +38 -0
  142. package/references/motion/banner-stacking.md +67 -0
  143. package/references/motion/delete-with-smoky-dissolve.md +60 -0
  144. package/references/motion/donut-chart.md +79 -0
  145. package/references/motion/drag-drop-with-physics.md +61 -0
  146. package/references/motion/dropdown-menu-morph.md +55 -0
  147. package/references/motion/get-pro-button.md +56 -0
  148. package/references/motion/image-open-tilt.md +60 -0
  149. package/references/motion/input-clear-with-dissolve.md +58 -0
  150. package/references/motion/learn-more-hover.md +56 -0
  151. package/references/motion/matrix-dot-loader.md +58 -0
  152. package/references/motion/organic-shimmer.md +63 -0
  153. package/references/motion/pro-gradient-text.md +57 -0
  154. package/references/motion/skeleton-loader-and-reveal.md +67 -0
  155. package/references/motion/spinner-to-check-morph.md +67 -0
  156. package/references/motion/spinning-counter.md +74 -0
  157. package/references/motion/text-morph.md +64 -0
  158. package/references/motion/texts-reveal.md +56 -0
  159. package/scripts/build_docs.py +39 -4
  160. package/scripts/core.py +993 -0
  161. package/scripts/design_system.py +1668 -0
  162. package/scripts/reasoning_contract.py +123 -0
  163. package/scripts/search.py +177 -0
  164. package/scripts/test_release.py +12 -0
  165. package/scripts/verify_skill.py +4 -4
  166. package/test/test_installer.mjs +133 -0
@@ -0,0 +1,156 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import { useState, useEffect } from "react";
5
+ import { motion, AnimatePresence, useReducedMotion } from "motion/react";
6
+ import { cn } from "@/lib/utils";
7
+ import { SPRING_SWAP, SPRING_PANEL } from "@/lib/ease";
8
+
9
+ export type AgentStage =
10
+ | "evaluating"
11
+ | "searching"
12
+ | "reasoning"
13
+ | "synthesizing"
14
+ | "finalizing";
15
+
16
+ export interface ThinkingStatesProps {
17
+ stage?: AgentStage;
18
+ autoCycle?: boolean;
19
+ className?: string;
20
+ }
21
+
22
+ const STAGE_LABELS: Record<AgentStage, { label: string; detail: string; color: string }> = {
23
+ evaluating: {
24
+ label: "Evaluating context",
25
+ detail: "Analyzing constraints and contract criteria...",
26
+ color: "bg-sky-500",
27
+ },
28
+ searching: {
29
+ label: "Searching codebase",
30
+ detail: "Querying token definitions and component indices...",
31
+ color: "bg-indigo-500",
32
+ },
33
+ reasoning: {
34
+ label: "Deep reasoning",
35
+ detail: "Determining zero-redundancy integration topology...",
36
+ color: "bg-purple-500",
37
+ },
38
+ synthesizing: {
39
+ label: "Synthesizing output",
40
+ detail: "Compiling verified TypeScript and design tokens...",
41
+ color: "bg-amber-500",
42
+ },
43
+ finalizing: {
44
+ label: "Verifying integrity",
45
+ detail: "Running test gates and evaluation matrix...",
46
+ color: "bg-emerald-500",
47
+ },
48
+ };
49
+
50
+ const STAGES: AgentStage[] = [
51
+ "evaluating",
52
+ "searching",
53
+ "reasoning",
54
+ "synthesizing",
55
+ "finalizing",
56
+ ];
57
+
58
+ export function ThinkingStates({
59
+ stage: controlledStage,
60
+ autoCycle = true,
61
+ className,
62
+ }: ThinkingStatesProps) {
63
+ const [internalStageIndex, setInternalStageIndex] = useState(0);
64
+ const shouldReduceMotion = useReducedMotion();
65
+
66
+ useEffect(() => {
67
+ if (!autoCycle || controlledStage !== undefined) return;
68
+ const interval = setInterval(() => {
69
+ setInternalStageIndex((prev) => (prev + 1) % STAGES.length);
70
+ }, 2400);
71
+ return () => clearInterval(interval);
72
+ }, [autoCycle, controlledStage]);
73
+
74
+ const currentStage = controlledStage || STAGES[internalStageIndex];
75
+ const info = STAGE_LABELS[currentStage];
76
+
77
+ return (
78
+ <div
79
+ className={cn(
80
+ "inline-flex flex-col gap-2 p-4 rounded-2xl border border-neutral-200 dark:border-neutral-800",
81
+ "bg-white/80 dark:bg-neutral-900/80 backdrop-blur-md shadow-lg w-full max-w-sm",
82
+ className
83
+ )}
84
+ >
85
+ <div className="flex items-center justify-between">
86
+ <div className="flex items-center gap-2">
87
+ <div className="relative flex size-3">
88
+ {!shouldReduceMotion && (
89
+ <span
90
+ className={cn(
91
+ "animate-ping absolute inline-flex h-full w-full rounded-full opacity-75",
92
+ info.color
93
+ )}
94
+ />
95
+ )}
96
+ <span
97
+ className={cn("relative inline-flex rounded-full size-3", info.color)}
98
+ />
99
+ </div>
100
+ <AnimatePresence mode="wait">
101
+ <motion.span
102
+ key={currentStage}
103
+ initial={shouldReduceMotion ? { opacity: 0 } : { opacity: 0, y: -6 }}
104
+ animate={shouldReduceMotion ? { opacity: 1 } : { opacity: 1, y: 0 }}
105
+ exit={shouldReduceMotion ? { opacity: 0 } : { opacity: 0, y: 6 }}
106
+ transition={shouldReduceMotion ? { duration: 0.15 } : SPRING_SWAP}
107
+ className="text-xs font-bold uppercase tracking-wider text-neutral-800 dark:text-neutral-200"
108
+ >
109
+ {info.label}
110
+ </motion.span>
111
+ </AnimatePresence>
112
+ </div>
113
+
114
+ <div className="flex items-center gap-1">
115
+ {[0, 1, 2].map((i) => (
116
+ <motion.div
117
+ key={i}
118
+ animate={
119
+ shouldReduceMotion
120
+ ? { opacity: 0.6 }
121
+ : {
122
+ scale: [0.7, 1.2, 0.7],
123
+ opacity: [0.3, 1, 0.3],
124
+ }
125
+ }
126
+ transition={
127
+ shouldReduceMotion
128
+ ? { duration: 0 }
129
+ : {
130
+ duration: 1,
131
+ repeat: Infinity,
132
+ delay: i * 0.2,
133
+ ease: "easeInOut",
134
+ }
135
+ }
136
+ className="size-1.5 rounded-full bg-neutral-400 dark:bg-neutral-500"
137
+ />
138
+ ))}
139
+ </div>
140
+ </div>
141
+
142
+ <AnimatePresence mode="wait">
143
+ <motion.p
144
+ key={currentStage}
145
+ initial={{ opacity: 0, filter: shouldReduceMotion ? "none" : "blur(2px)" }}
146
+ animate={{ opacity: 1, filter: "none" }}
147
+ exit={{ opacity: 0, filter: shouldReduceMotion ? "none" : "blur(2px)" }}
148
+ transition={{ duration: 0.2 }}
149
+ className="text-xs text-neutral-500 dark:text-neutral-400 pl-5 leading-relaxed"
150
+ >
151
+ {info.detail}
152
+ </motion.p>
153
+ </AnimatePresence>
154
+ </div>
155
+ );
156
+ }
@@ -0,0 +1,145 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import { cn } from "@/lib/utils";
5
+
6
+ export type AquaButtonVariant = "primary" | "secondary";
7
+
8
+ export interface AquaButtonProps
9
+ extends React.ButtonHTMLAttributes<HTMLButtonElement> {
10
+ variant?: AquaButtonVariant;
11
+ }
12
+
13
+ const EASE = "cubic-bezier(0.4, 0, 0.2, 1)";
14
+
15
+ const VARIANTS = {
16
+ primary: {
17
+ text: "text-[rgb(20,30,55)]",
18
+ textShadow: "0 1px 0 rgba(255, 255, 255, 0.35)",
19
+ bg: "linear-gradient(rgb(95, 160, 230), rgb(50, 115, 205) 55%, rgb(95, 160, 230))",
20
+ shadow:
21
+ "0 0.25em 0.375em rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(0, 30, 95, 0.55), inset 0 0.125em 0.25em rgba(0, 20, 80, 0.3)",
22
+ hoverExtra: ", 0 0 0.875em 0.0625em rgba(60, 150, 235, 0.55)",
23
+ focusExtra:
24
+ ", 0 0 0 0.125em rgba(255, 255, 255, 0.95), 0 0 0 0.3125em rgba(40, 150, 255, 0.95), 0 0 1.25em 0.1875em rgba(60, 170, 255, 0.7)",
25
+ active:
26
+ "0 0.0625em 0.125em rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(0, 30, 95, 0.65), inset 0 0.25em 0.5em rgba(0, 20, 80, 0.55)",
27
+ },
28
+ secondary: {
29
+ text: "text-[rgb(35,35,40)] dark:text-white",
30
+ textShadow: "var(--aqua-text-shadow)",
31
+ bg: "var(--aqua-bg)",
32
+ shadow: "var(--aqua-shadow)",
33
+ hoverExtra: "",
34
+ focusExtra: "",
35
+ active: "var(--aqua-shadow-active)",
36
+ },
37
+ } as const;
38
+
39
+ const SECONDARY_THEME_CLASSES = [
40
+ "[--aqua-bg:linear-gradient(rgb(225,_226,_228),_rgb(245,_246,_248)_55%,_rgb(230,_230,_232))]",
41
+ "[--aqua-shadow:0_0.25em_0.375em_rgba(0,_0,_0,_0.18),inset_0_0_0_1px_rgba(120,_122,_130,_0.5),inset_0_0.125em_0.25em_rgba(0,_0,_0,_0.15)]",
42
+ "[--aqua-shadow-hover:0_0.25em_0.375em_rgba(0,_0,_0,_0.18),inset_0_0_0_1px_rgba(120,_122,_130,_0.5),inset_0_0.125em_0.25em_rgba(0,_0,_0,_0.15),0_0_0.875em_0.0625em_rgba(0,_0,_0,_0.18)]",
43
+ "[--aqua-shadow-focus:0_0.25em_0.375em_rgba(0,_0,_0,_0.18),inset_0_0_0_1px_rgba(120,_122,_130,_0.5),inset_0_0.125em_0.25em_rgba(0,_0,_0,_0.15),0_0_0_0.125em_rgba(255,_255,_255,_0.95),0_0_0_0.3125em_rgba(40,_150,_255,_0.95),0_0_1.25em_0.1875em_rgba(60,_170,_255,_0.55)]",
44
+ "[--aqua-shadow-active:0_0.0625em_0.125em_rgba(0,_0,_0,_0.18),inset_0_0_0_1px_rgba(120,_122,_130,_0.6),inset_0_0.25em_0.5em_rgba(0,_0,_0,_0.3)]",
45
+ "[--aqua-text-shadow:0_1px_0_rgba(255,_255,_255,_0.7)]",
46
+ "[--aqua-top-highlight:linear-gradient(rgba(255,_255,_255,_0.85),_rgba(255,_255,_255,_0.25))]",
47
+ "[--aqua-bottom-highlight:linear-gradient(rgba(255,_255,_255,_0.15),_rgba(255,_255,_255,_0.5))]",
48
+ "dark:[--aqua-bg:linear-gradient(rgb(40,_40,_45),_rgb(22,_22,_28)_55%,_rgb(40,_40,_45))]",
49
+ "dark:[--aqua-shadow:0_0.25em_0.375em_rgba(0,_0,_0,_0.4),inset_0_0_0_1px_rgba(255,_255,_255,_0.08),inset_0_0.125em_0.25em_rgba(0,_0,_0,_0.3)]",
50
+ "dark:[--aqua-shadow-hover:0_0.25em_0.375em_rgba(0,_0,_0,_0.4),inset_0_0_0_1px_rgba(255,_255,_255,_0.08),inset_0_0.125em_0.25em_rgba(0,_0,_0,_0.3),0_0_0.875em_0.0625em_rgba(100,_100,_255,_0.2)]",
51
+ "dark:[--aqua-shadow-focus:0_0.25em_0.375em_rgba(0,_0,_0,_0.4),inset_0_0_0_1px_rgba(255,_255,_255,_0.08),inset_0_0.125em_0.25em_rgba(0,_0,_0,_0.3),0_0_0_0.125em_rgba(255,_255,_255,_0.95),0_0_0_0.3125em_rgba(100,_120,_255,_0.8),0_0_1.25em_0.1875em_rgba(80,_100,_255,_0.5)]",
52
+ "dark:[--aqua-shadow-active:0_0.0625em_0.125em_rgba(0,_0,_0,_0.4),inset_0_0_0_1px_rgba(255,_255,_255,_0.1),inset_0_0.25em_0.5em_rgba(0,_0,_0,_0.5)]",
53
+ "dark:[--aqua-text-shadow:0_1px_2px_rgba(0,_0,_0,_0.5)]",
54
+ "dark:[--aqua-top-highlight:linear-gradient(rgba(255,_255,_255,_0.12),_rgba(255,_255,_255,_0.03))]",
55
+ "dark:[--aqua-bottom-highlight:linear-gradient(rgba(255,_255,_255,_0.04),_rgba(255,_255,_255,_0.08))]",
56
+ ] as const;
57
+
58
+ export const AquaButton = React.forwardRef<HTMLButtonElement, AquaButtonProps>(
59
+ ({ className, variant = "primary", style, children, ...props }, ref) => {
60
+ const v = VARIANTS[variant];
61
+ const isSecondary = variant === "secondary";
62
+
63
+ return (
64
+ <button
65
+ ref={ref}
66
+ className={cn(
67
+ "group relative inline-flex h-[1.75em] min-w-[6em] max-w-full cursor-pointer items-center justify-center overflow-hidden rounded-full px-[2em] text-base font-medium outline-none will-change-transform",
68
+ v.text,
69
+ isSecondary && SECONDARY_THEME_CLASSES,
70
+ "transition-[transform,box-shadow] duration-[320ms] [transition-timing-function:var(--aqua-ease)]",
71
+ "hover:-translate-y-px hover:[box-shadow:var(--aqua-shadow-hover)]",
72
+ "focus-visible:-translate-y-px focus-visible:ring-2 focus-visible:ring-white/95 focus-visible:ring-offset-2 focus-visible:ring-offset-sky-500/90 focus-visible:[box-shadow:var(--aqua-shadow-focus)]",
73
+ "active:translate-y-0 active:scale-[0.97] active:duration-[140ms] active:[box-shadow:var(--aqua-shadow-active)]",
74
+ "motion-reduce:transition-none motion-reduce:hover:translate-y-0 motion-reduce:focus-visible:translate-y-0 motion-reduce:active:scale-100",
75
+ className,
76
+ )}
77
+ style={
78
+ {
79
+ background: v.bg,
80
+ "--aqua-ease": EASE,
81
+ ...(isSecondary
82
+ ? {}
83
+ : {
84
+ "--aqua-shadow": v.shadow,
85
+ "--aqua-shadow-hover": v.shadow + v.hoverExtra,
86
+ "--aqua-shadow-focus": v.shadow + v.focusExtra,
87
+ "--aqua-shadow-active": v.active,
88
+ }),
89
+ boxShadow: "var(--aqua-shadow)",
90
+ ...style,
91
+ } as React.CSSProperties
92
+ }
93
+ {...props}
94
+ >
95
+ <span
96
+ aria-hidden
97
+ className={cn(
98
+ "pointer-events-none absolute left-1/2 top-[6%] z-[2] h-[42%] w-[calc(100%-0.625em)] -translate-x-1/2 rounded-[2em_2em_0.75em_0.75em] opacity-90 blur-[0.5px]",
99
+ "origin-top transition-[opacity,transform] duration-[320ms] [transition-timing-function:var(--aqua-ease)]",
100
+ "group-hover:scale-y-[1.04] group-hover:opacity-100",
101
+ "group-focus-visible:scale-y-[1.04] group-focus-visible:opacity-100",
102
+ "group-active:scale-y-[0.82] group-active:opacity-75 group-active:duration-[140ms]",
103
+ "motion-reduce:transition-none motion-reduce:group-hover:scale-y-100 motion-reduce:group-focus-visible:scale-y-100 motion-reduce:group-active:scale-y-100",
104
+ )}
105
+ style={{
106
+ background: isSecondary
107
+ ? "var(--aqua-top-highlight)"
108
+ : "linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.25))",
109
+ }}
110
+ />
111
+ <span
112
+ aria-hidden
113
+ className={cn(
114
+ "pointer-events-none absolute bottom-[8%] left-1/2 h-[28%] w-[calc(100%-1.25em)] -translate-x-1/2 rounded-[0.75em] opacity-70 blur-[2px]",
115
+ "transition-opacity duration-[320ms] [transition-timing-function:var(--aqua-ease)]",
116
+ "group-hover:opacity-90",
117
+ "group-focus-visible:opacity-90",
118
+ "group-active:opacity-40 group-active:duration-[140ms]",
119
+ "motion-reduce:transition-none",
120
+ )}
121
+ style={{
122
+ background: isSecondary
123
+ ? "var(--aqua-bottom-highlight)"
124
+ : "linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.5))",
125
+ }}
126
+ />
127
+ <span
128
+ className={cn(
129
+ "relative z-[1] tracking-[0.005em]",
130
+ "transition-transform duration-[320ms] [transition-timing-function:var(--aqua-ease)]",
131
+ "group-active:translate-y-[0.5px] group-active:duration-[140ms]",
132
+ "motion-reduce:transition-none motion-reduce:group-active:translate-y-0",
133
+ )}
134
+ style={{ textShadow: v.textShadow }}
135
+ >
136
+ {children}
137
+ </span>
138
+ </button>
139
+ );
140
+ },
141
+ );
142
+
143
+ AquaButton.displayName = "AquaButton";
144
+
145
+ export default AquaButton;