@zmzai/theme 0.2.2 → 0.2.4

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": "@zmzai/theme",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "zmzai 全品牌设计系统 — Radix UI + framer-motion + Tailwind v4 + MiSans",
@@ -86,5 +86,9 @@
86
86
  "tailwindcss": "^4.0.0",
87
87
  "typescript": "^5.9.0",
88
88
  "vite": "^5.4.0"
89
+ },
90
+ "dependencies": {
91
+ "clsx": "^2.1.0",
92
+ "tailwind-merge": "^2.5.0"
89
93
  }
90
94
  }
@@ -29,8 +29,9 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
29
29
  return (
30
30
  <motion.button
31
31
  ref={ref}
32
- whileHover={disabled || loading ? undefined : { scale: 1.03 }}
33
- whileTap={disabled || loading ? undefined : { scale: 0.98 }}
32
+ // ghost 是列表项/行选择场景,hover 缩放会跳;仅 primary/secondary 保留微交互
33
+ whileHover={disabled || loading || variant === "ghost" ? undefined : { scale: 1.03 }}
34
+ whileTap={disabled || loading || variant === "ghost" ? undefined : { scale: 0.98 }}
34
35
  transition={{ duration: 0.15, ease: [0.16, 1, 0.3, 1] }}
35
36
  className={cn(buttonVariants({ variant, size }), className)}
36
37
  disabled={disabled || loading}