@moontra/moonui 2.1.9 → 2.2.0

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 (45) hide show
  1. package/dist/index.d.mts +1579 -0
  2. package/dist/index.d.ts +1579 -0
  3. package/dist/index.js +182 -149
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +182 -149
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +4 -4
  8. package/src/components/ui/accordion.tsx +1 -1
  9. package/src/components/ui/alert.tsx +3 -3
  10. package/src/components/ui/aspect-ratio.tsx +1 -1
  11. package/src/components/ui/avatar.tsx +6 -6
  12. package/src/components/ui/badge.tsx +1 -1
  13. package/src/components/ui/breadcrumb.tsx +10 -10
  14. package/src/components/ui/button.tsx +48 -51
  15. package/src/components/ui/calendar.tsx +1 -1
  16. package/src/components/ui/card.tsx +7 -7
  17. package/src/components/ui/checkbox.tsx +1 -1
  18. package/src/components/ui/collapsible.tsx +3 -3
  19. package/src/components/ui/color-picker.tsx +2 -2
  20. package/src/components/ui/command.tsx +4 -4
  21. package/src/components/ui/data-table.tsx +1 -1
  22. package/src/components/ui/date-picker.tsx +9 -8
  23. package/src/components/ui/dialog.tsx +2 -2
  24. package/src/components/ui/draggable-list.tsx +1 -1
  25. package/src/components/ui/dropdown-menu.tsx +2 -2
  26. package/src/components/ui/file-upload.tsx +2 -2
  27. package/src/components/ui/github-stars.tsx +1 -1
  28. package/src/components/ui/index.ts +0 -1
  29. package/src/components/ui/input.tsx +1 -1
  30. package/src/components/ui/moon-logo.tsx +1 -1
  31. package/src/components/ui/pagination.tsx +8 -8
  32. package/src/components/ui/popover.tsx +3 -3
  33. package/src/components/ui/progress.tsx +1 -1
  34. package/src/components/ui/radio-group.tsx +1 -1
  35. package/src/components/ui/select.tsx +2 -2
  36. package/src/components/ui/skeleton.tsx +19 -7
  37. package/src/components/ui/slider.tsx +1 -1
  38. package/src/components/ui/switch.tsx +1 -1
  39. package/src/components/ui/table.tsx +5 -5
  40. package/src/components/ui/tabs.tsx +4 -1
  41. package/src/components/ui/textarea.tsx +1 -1
  42. package/src/components/ui/toast.tsx +3 -3
  43. package/src/components/ui/toggle.tsx +2 -3
  44. package/src/components/ui/tooltip.tsx +2 -5
  45. package/src/lib/micro-interactions.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui",
3
- "version": "2.1.9",
3
+ "version": "2.2.0",
4
4
  "description": "Premium React component library with modern design and customization",
5
5
  "author": "MoonUI",
6
6
  "license": "MIT",
@@ -44,10 +44,10 @@
44
44
  "radix-ui"
45
45
  ],
46
46
  "scripts": {
47
- "dev": "tsup src/index.tsx --format esm,cjs --dts --watch",
48
- "build": "npm run build:js",
47
+ "dev": "tsup src/index.tsx --format esm,cjs --dts --watch --sourcemap",
48
+ "build": "npm run build:js && npm run build:dts",
49
49
  "build:js": "tsup src/index.tsx --format esm,cjs",
50
- "build:dts": "tsup src/index.tsx --format esm,cjs --dts",
50
+ "build:dts": "tsup src/index.tsx --format esm,cjs --dts-only",
51
51
  "lint": "eslint \"src/**/*.{ts,tsx}\" --fix",
52
52
  "clean": "rm -rf dist",
53
53
  "prepublishOnly": "npm run clean && npm run build",
@@ -14,7 +14,7 @@ const AccordionItem = React.forwardRef<
14
14
  >(({ className, ...props }, ref) => (
15
15
  <AccordionPrimitive.Item
16
16
  ref={ref}
17
- className={cn("border-b border-gray-200 dark:border-gray-800", className)}
17
+ className={cn("moonui-theme", "border-b border-gray-200 dark:border-gray-800", className)}
18
18
  {...props}
19
19
  />
20
20
  ))
@@ -83,7 +83,7 @@ const Alert = React.forwardRef<HTMLDivElement, AlertProps>(
83
83
  <div
84
84
  ref={ref}
85
85
  role="alert"
86
- className={cn(alertVariants({ variant, size, radius, withClose: closable }), className)}
86
+ className={cn("moonui-theme", alertVariants({ variant, size, radius, withClose: closable }), className)}
87
87
  {...props}
88
88
  >
89
89
  {!hideIcon && <Icon className="h-5 w-5" />}
@@ -109,7 +109,7 @@ const AlertTitle = React.forwardRef<
109
109
  >(({ className, ...props }, ref) => (
110
110
  <h5
111
111
  ref={ref}
112
- className={cn("font-semibold leading-tight tracking-tight mb-1", className)}
112
+ className={cn("moonui-theme", "font-semibold leading-tight tracking-tight mb-1", className)}
113
113
  {...props}
114
114
  />
115
115
  ));
@@ -121,7 +121,7 @@ const AlertDescription = React.forwardRef<
121
121
  >(({ className, ...props }, ref) => (
122
122
  <div
123
123
  ref={ref}
124
- className={cn("text-sm leading-5 text-muted-foreground", className)}
124
+ className={cn("moonui-theme", "text-sm leading-5 text-muted-foreground", className)}
125
125
  {...props}
126
126
  />
127
127
  ));
@@ -53,7 +53,7 @@ const AspectRatio = React.forwardRef<
53
53
  >(({ className, variant, radius, ratio = 16 / 9, style, children, ...props }, ref) => (
54
54
  <div
55
55
  ref={ref}
56
- className={cn(aspectRatioVariants({ variant, radius }), className)}
56
+ className={cn("moonui-theme", aspectRatioVariants({ variant, radius }), className)}
57
57
  style={{
58
58
  position: "relative",
59
59
  paddingBottom: `${(1 / ratio) * 100}%`,
@@ -26,9 +26,9 @@ const avatarVariants = cva(
26
26
  },
27
27
  variant: {
28
28
  default: "",
29
- ring: "ring-2 ring-gray-300 dark:ring-gray-600",
30
- ringOffset: "ring-2 ring-gray-300 dark:ring-gray-600 ring-offset-2 ring-offset-background dark:ring-offset-gray-950",
31
- border: "border-2 border-gray-200 dark:border-gray-800"
29
+ ring: "ring-2 ring-border",
30
+ ringOffset: "ring-2 ring-border ring-offset-2 ring-offset-background",
31
+ border: "border-2 border-border"
32
32
  }
33
33
  },
34
34
  defaultVariants: {
@@ -49,7 +49,7 @@ const Avatar = React.forwardRef<
49
49
  >(({ className, size, radius, variant, ...props }, ref) => (
50
50
  <AvatarPrimitive.Root
51
51
  ref={ref}
52
- className={cn(avatarVariants({ size, radius, variant }), className)}
52
+ className={cn("moonui-theme", avatarVariants({ size, radius, variant }), className)}
53
53
  {...props}
54
54
  />
55
55
  ));
@@ -61,7 +61,7 @@ const AvatarImage = React.forwardRef<
61
61
  >(({ className, ...props }, ref) => (
62
62
  <AvatarPrimitive.Image
63
63
  ref={ref}
64
- className={cn("aspect-square h-full w-full", className)}
64
+ className={cn("moonui-theme", "aspect-square h-full w-full", className)}
65
65
  {...props}
66
66
  />
67
67
  ));
@@ -97,7 +97,7 @@ const AvatarGroup = React.forwardRef<HTMLDivElement, AvatarGroupProps>(
97
97
  return (
98
98
  <div
99
99
  ref={ref}
100
- className={cn("flex items-center", className)}
100
+ className={cn("moonui-theme", "flex items-center", className)}
101
101
  {...props}
102
102
  >
103
103
  <div className="flex">
@@ -162,7 +162,7 @@ function Badge({
162
162
 
163
163
  return (
164
164
  <div
165
- className={cn(badgeVariants({ variant, size, radius }), className)}
165
+ className={cn("moonui-theme", badgeVariants({ variant, size, radius }), className)}
166
166
  data-removable={removable ? "" : undefined}
167
167
  {...props}
168
168
  >
@@ -9,9 +9,9 @@ const breadcrumbVariants = cva(
9
9
  {
10
10
  variants: {
11
11
  variant: {
12
- default: "dark:text-gray-100 transition-colors",
13
- muted: "text-muted-foreground dark:text-gray-400 transition-colors",
14
- ghost: "text-foreground/60 dark:text-gray-300/60 transition-colors",
12
+ default: "text-foreground transition-colors",
13
+ muted: "text-muted-foreground transition-colors",
14
+ ghost: "text-foreground/60 transition-colors",
15
15
  },
16
16
  size: {
17
17
  default: "text-sm",
@@ -58,7 +58,7 @@ const Breadcrumb = React.forwardRef<HTMLElement, BreadcrumbProps>(
58
58
  ({ className, variant, size, ...props }, ref) => (
59
59
  <nav
60
60
  ref={ref}
61
- className={cn(breadcrumbVariants({ variant, size }), className)}
61
+ className={cn("moonui-theme", breadcrumbVariants({ variant, size }), className)}
62
62
  aria-label="breadcrumb"
63
63
  {...props}
64
64
  />
@@ -114,7 +114,7 @@ const BreadcrumbItem = React.forwardRef<HTMLLIElement, BreadcrumbItemProps>(
114
114
  return (
115
115
  <li
116
116
  ref={ref}
117
- className={cn("inline-flex items-center gap-1.5", className)}
117
+ className={cn("moonui-theme", "inline-flex items-center gap-1.5", className)}
118
118
  aria-current={isCurrent ? "page" : undefined}
119
119
  {...props}
120
120
  >
@@ -122,8 +122,8 @@ const BreadcrumbItem = React.forwardRef<HTMLLIElement, BreadcrumbItemProps>(
122
122
  className={cn(
123
123
  "transition-colors duration-200 hover:text-foreground",
124
124
  isCurrent
125
- ? "font-medium text-foreground dark:text-white dark:text-opacity-95"
126
- : "text-muted-foreground hover:text-foreground dark:text-gray-400 dark:hover:text-gray-200 dark:hover:text-opacity-95 hover:underline hover:underline-offset-4 hover:decoration-gray-300/30"
125
+ ? "font-medium text-foreground"
126
+ : "text-muted-foreground hover:text-foreground hover:underline hover:underline-offset-4 hover:decoration-muted-foreground/30"
127
127
  )}
128
128
  {...itemProps}
129
129
  >
@@ -143,7 +143,7 @@ const BreadcrumbSeparator = ({
143
143
  <span
144
144
  role="presentation"
145
145
  aria-hidden="true"
146
- className={cn("text-muted-foreground dark:text-gray-500 opacity-70", className)}
146
+ className={cn("moonui-theme", "text-muted-foreground opacity-70", className)}
147
147
  {...props}
148
148
  >
149
149
  {children || <ChevronRight className="h-3.5 w-3.5" />}
@@ -158,7 +158,7 @@ const BreadcrumbEllipsis = ({
158
158
  <span
159
159
  role="presentation"
160
160
  aria-hidden="true"
161
- className={cn("flex items-center text-muted-foreground dark:text-gray-500 dark:hover:text-gray-400 transition-colors duration-200", className)}
161
+ className={cn("moonui-theme", "flex items-center text-muted-foreground hover:text-foreground/80 transition-colors duration-200", className)}
162
162
  {...props}
163
163
  >
164
164
  <MoreHorizontal className="h-4 w-4" />
@@ -173,7 +173,7 @@ const BreadcrumbLink = React.forwardRef<HTMLAnchorElement, React.AnchorHTMLAttri
173
173
  ref={ref}
174
174
  href={href}
175
175
  className={cn(
176
- "transition-colors duration-200 hover:text-foreground text-muted-foreground hover:underline hover:underline-offset-4 hover:decoration-gray-300/30 dark:text-gray-400 dark:hover:text-gray-200",
176
+ "transition-colors duration-200 hover:text-foreground text-muted-foreground hover:underline hover:underline-offset-4 hover:decoration-muted-foreground/30",
177
177
  className
178
178
  )}
179
179
  {...props}
@@ -13,73 +13,70 @@ const buttonVariants = cva(
13
13
  ["inline-flex items-center justify-center gap-2 whitespace-nowrap",
14
14
  "font-medium relative",
15
15
  "transition-all duration-200 ease-out",
16
- "premium-hover", /* Standart premium hover efekti */
16
+ "transform active:scale-[0.98]",
17
17
  "focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
18
- "disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none"],
18
+ "disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none disabled:transform-none"],
19
19
  {
20
20
  variants: {
21
21
  variant: {
22
22
  primary: [
23
23
  "bg-primary text-primary-foreground",
24
- "hover:bg-primary-hover dark:hover:bg-primary/90",
25
- "active:bg-primary-active dark:active:bg-primary/80",
26
- "shadow-sm dark:shadow-primary/20 dark:shadow-md",
27
- "focus-visible:ring-primary/50 dark:focus-visible:ring-primary/30",
28
- "dark:bg-primary dark:text-white",
24
+ "dark:bg-primary dark:text-primary-foreground",
25
+ "hover:bg-primary/90 dark:hover:bg-primary/90",
26
+ "active:bg-primary/80 dark:active:bg-primary/80",
27
+ "shadow-sm hover:shadow-md",
28
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
29
29
  "transition-all duration-200",
30
30
  ],
31
31
  secondary: [
32
- "bg-secondary text-secondary-foreground",
33
- "hover:bg-gray-200 dark:hover:bg-gray-700/90",
34
- "active:bg-gray-300 dark:active:bg-gray-600/90",
35
- "border border-transparent dark:border-gray-700",
36
- "focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40",
37
- "dark:bg-gray-800 dark:text-gray-100",
38
- "dark:shadow-sm dark:shadow-gray-900/20",
32
+ "bg-muted text-muted-foreground",
33
+ "dark:bg-muted dark:text-muted-foreground",
34
+ "hover:bg-muted/80 dark:hover:bg-muted/80",
35
+ "active:bg-muted/70 dark:active:bg-muted/70",
36
+ "border border-input dark:border-input",
37
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
38
+ "shadow-sm hover:shadow-md",
39
39
  ],
40
40
  outline: [
41
41
  "bg-background text-foreground",
42
- "border border-gray-300 dark:border-gray-700",
43
- "hover:border-gray-400 dark:hover:border-gray-500",
44
- "hover:bg-gray-50 dark:hover:bg-gray-800/80",
45
- "active:bg-gray-100 dark:active:bg-gray-800/90",
46
- "focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40",
47
- "dark:text-gray-200 dark:bg-gray-900/50",
48
- "dark:shadow-sm dark:shadow-gray-950/10",
42
+ "dark:bg-background dark:text-foreground",
43
+ "border border-input dark:border-input",
44
+ "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent dark:hover:text-accent-foreground",
45
+ "active:bg-accent/80 dark:active:bg-accent/80",
46
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
47
+ "transition-all duration-200",
49
48
  ],
50
49
  ghost: [
51
50
  "text-foreground",
52
- "hover:bg-gray-100 dark:hover:bg-gray-800/90",
53
- "active:bg-gray-200 dark:active:bg-gray-700/90",
54
- "focus-visible:ring-gray-400/30 dark:focus-visible:ring-gray-500/40",
55
- "dark:text-gray-200",
56
- "transition-colors duration-200",
51
+ "dark:text-foreground",
52
+ "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent dark:hover:text-accent-foreground",
53
+ "active:bg-accent/80 dark:active:bg-accent/80",
54
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
55
+ "transition-all duration-200",
57
56
  ],
58
57
  destructive: [
59
- "bg-error text-white",
60
- "hover:bg-error/90 dark:hover:bg-error/80",
61
- "active:bg-error/80 dark:active:bg-error/70",
62
- "shadow-sm dark:shadow-error/10 dark:shadow-md",
63
- "focus-visible:ring-error/50 dark:focus-visible:ring-error/30",
64
- "dark:text-white dark:border-error/20",
65
- "transition-colors duration-200",
58
+ "bg-destructive text-destructive-foreground",
59
+ "dark:bg-destructive dark:text-destructive-foreground",
60
+ "hover:bg-destructive/90 dark:hover:bg-destructive/90",
61
+ "active:bg-destructive/80 dark:active:bg-destructive/80",
62
+ "shadow-sm hover:shadow-md",
63
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
64
+ "transition-all duration-200",
66
65
  ],
67
66
  success: [
68
- "bg-success text-white",
69
- "hover:bg-success/90 dark:hover:bg-success/80",
70
- "active:bg-success/80 dark:active:bg-success/70",
71
- "shadow-sm dark:shadow-success/10 dark:shadow-md",
72
- "focus-visible:ring-success/50 dark:focus-visible:ring-success/30",
73
- "dark:text-white dark:border-success/20",
74
- "transition-colors duration-200",
67
+ "bg-success text-success-foreground",
68
+ "dark:bg-success dark:text-success-foreground",
69
+ "hover:bg-success/90 dark:hover:bg-success/90",
70
+ "active:bg-success/80 dark:active:bg-success/80",
71
+ "shadow-sm hover:shadow-md",
72
+ "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
73
+ "transition-all duration-200",
75
74
  ],
76
75
  link: [
77
76
  "text-primary bg-transparent",
78
77
  "underline-offset-4 hover:underline",
79
- "hover:text-primary-hover active:text-primary-active",
78
+ "hover:text-primary/80 active:text-primary/70",
80
79
  "p-0 h-auto",
81
- "dark:text-blue-400 dark:hover:text-blue-300",
82
- "dark:active:text-blue-500",
83
80
  "transition-colors duration-200",
84
81
  ],
85
82
  gradient: [
@@ -129,14 +126,14 @@ const buttonVariants = cva(
129
126
  ],
130
127
  },
131
128
  size: {
132
- xs: "h-7 px-2.5 text-xs rounded",
133
- sm: "h-8 px-3 text-sm rounded",
134
- md: "h-10 px-4 text-base rounded-md",
129
+ xs: "h-7 px-2.5 text-xs rounded-md",
130
+ sm: "h-8 px-3 text-sm rounded-md",
131
+ md: "h-10 px-4 text-base rounded-lg",
135
132
  lg: "h-12 px-6 text-lg rounded-lg",
136
- xl: "h-14 px-8 text-xl rounded-lg",
137
- icon: "h-10 w-10 p-2 rounded-md",
138
- "icon-sm": "h-8 w-8 p-1.5 rounded",
139
- "icon-lg": "h-12 w-12 p-3 rounded-lg",
133
+ xl: "h-14 px-8 text-xl rounded-xl",
134
+ icon: "h-10 w-10 p-2 rounded-lg",
135
+ "icon-sm": "h-8 w-8 p-1.5 rounded-md",
136
+ "icon-lg": "h-12 w-12 p-3 rounded-xl",
140
137
  },
141
138
  rounded: {
142
139
  default: "",
@@ -199,7 +196,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
199
196
 
200
197
  return (
201
198
  <Comp
202
- className={cn(buttonVariants({ variant, size, rounded, fullWidth, className }))}
199
+ className={cn("moonui-theme", buttonVariants({ variant, size, rounded, fullWidth, className }))}
203
200
  ref={ref}
204
201
  disabled={disabled || loading}
205
202
  data-loading={loading ? "" : undefined}
@@ -164,7 +164,7 @@ function Calendar({
164
164
  const days = getDaysInMonth();
165
165
 
166
166
  return (
167
- <div className={cn("p-0", className)}>
167
+ <div className={cn("moonui-theme", "p-0", className)}>
168
168
  {/* Header */}
169
169
  <div className="flex items-center justify-between px-6 py-4">
170
170
  <button
@@ -63,7 +63,7 @@ const Card = React.forwardRef<HTMLDivElement, CardProps>(
63
63
  return (
64
64
  <motion.div
65
65
  ref={ref}
66
- className={cn(cardVariants({ variant, size, radius, interactive, className }))}
66
+ className={cn("moonui-theme", cardVariants({ variant, size, radius, interactive, className }))}
67
67
  {...interactionProps}
68
68
  {...(props as any)}
69
69
  />
@@ -74,7 +74,7 @@ const Card = React.forwardRef<HTMLDivElement, CardProps>(
74
74
  return (
75
75
  <div
76
76
  ref={ref}
77
- className={cn(cardVariants({ variant, size, radius, interactive, className }))}
77
+ className={cn("moonui-theme", cardVariants({ variant, size, radius, interactive, className }))}
78
78
  {...props}
79
79
  />
80
80
  );
@@ -88,7 +88,7 @@ const CardHeader = React.forwardRef<
88
88
  >(({ className, ...props }, ref) => (
89
89
  <div
90
90
  ref={ref}
91
- className={cn("flex flex-col space-y-1.5", className)}
91
+ className={cn("moonui-theme", "flex flex-col space-y-1.5", className)}
92
92
  {...props}
93
93
  />
94
94
  ));
@@ -100,7 +100,7 @@ const CardTitle = React.forwardRef<
100
100
  >(({ className, ...props }, ref) => (
101
101
  <h3
102
102
  ref={ref}
103
- className={cn("text-lg font-semibold leading-none tracking-tight", className)}
103
+ className={cn("moonui-theme", "text-lg font-semibold leading-none tracking-tight", className)}
104
104
  {...props}
105
105
  />
106
106
  ));
@@ -112,7 +112,7 @@ const CardDescription = React.forwardRef<
112
112
  >(({ className, ...props }, ref) => (
113
113
  <p
114
114
  ref={ref}
115
- className={cn("text-sm text-muted-foreground", className)}
115
+ className={cn("moonui-theme", "text-sm text-muted-foreground", className)}
116
116
  {...props}
117
117
  />
118
118
  ));
@@ -122,7 +122,7 @@ const CardContent = React.forwardRef<
122
122
  HTMLDivElement,
123
123
  React.HTMLAttributes<HTMLDivElement>
124
124
  >(({ className, ...props }, ref) => (
125
- <div ref={ref} className={cn("pt-0", className)} {...props} />
125
+ <div ref={ref} className={cn("moonui-theme", "pt-0", className)} {...props} />
126
126
  ));
127
127
  CardContent.displayName = "CardContent";
128
128
 
@@ -132,7 +132,7 @@ const CardFooter = React.forwardRef<
132
132
  >(({ className, ...props }, ref) => (
133
133
  <div
134
134
  ref={ref}
135
- className={cn("flex items-center pt-4", className)}
135
+ className={cn("moonui-theme", "flex items-center pt-4", className)}
136
136
  {...props}
137
137
  />
138
138
  ));
@@ -94,7 +94,7 @@ const Checkbox = React.forwardRef<
94
94
  <CheckboxPrimitive.Root
95
95
  ref={ref}
96
96
  checked={effectiveChecked}
97
- className={cn(checkboxVariants({ variant, size, radius, animation }), className)}
97
+ className={cn("moonui-theme", checkboxVariants({ variant, size, radius, animation }), className)}
98
98
  {...props}
99
99
  >
100
100
  <CheckboxPrimitive.Indicator
@@ -52,7 +52,7 @@ const CollapsibleTrigger = React.forwardRef<
52
52
  return (
53
53
  <CollapsiblePrimitive.Trigger
54
54
  ref={ref}
55
- className={cn(collapsibleTriggerVariants({ variant, size }), className)}
55
+ className={cn("moonui-theme", collapsibleTriggerVariants({ variant, size }), className)}
56
56
  asChild={asChild}
57
57
  {...props}
58
58
  >
@@ -64,7 +64,7 @@ const CollapsibleTrigger = React.forwardRef<
64
64
  return (
65
65
  <CollapsiblePrimitive.Trigger
66
66
  ref={ref}
67
- className={cn(collapsibleTriggerVariants({ variant, size }), className)}
67
+ className={cn("moonui-theme", collapsibleTriggerVariants({ variant, size }), className)}
68
68
  {...props}
69
69
  >
70
70
  {children}
@@ -107,7 +107,7 @@ const CollapsibleContent = React.forwardRef<
107
107
  >(({ className, children, variant, size, ...props }, ref) => (
108
108
  <CollapsiblePrimitive.Content
109
109
  ref={ref}
110
- className={cn(collapsibleContentVariants({ variant, size }), className)}
110
+ className={cn("moonui-theme", collapsibleContentVariants({ variant, size }), className)}
111
111
  {...props}
112
112
  >
113
113
  <div className="p-4">{children}</div>
@@ -574,7 +574,7 @@ export function SimpleColorPicker({
574
574
  };
575
575
 
576
576
  return (
577
- <div className={cn("flex flex-wrap gap-2", className)}>
577
+ <div className={cn("moonui-theme", "flex flex-wrap gap-2", className)}>
578
578
  {colors.map((color) => (
579
579
  <button
580
580
  key={color}
@@ -617,7 +617,7 @@ export function GradientPicker({
617
617
  };
618
618
 
619
619
  return (
620
- <div className={cn("space-y-4", className)}>
620
+ <div className={cn("moonui-theme", "space-y-4", className)}>
621
621
  <div
622
622
  className="h-20 rounded-lg border-2"
623
623
  style={{
@@ -48,7 +48,7 @@ const Command = React.forwardRef<
48
48
  >(({ className, variant, size, ...props }, ref) => (
49
49
  <CommandPrimitive
50
50
  ref={ref}
51
- className={cn(commandVariants({ variant, size }), className)}
51
+ className={cn("moonui-theme", commandVariants({ variant, size }), className)}
52
52
  {...props}
53
53
  />
54
54
  ))
@@ -112,7 +112,7 @@ const CommandList = React.forwardRef<
112
112
  >(({ className, ...props }, ref) => (
113
113
  <CommandPrimitive.List
114
114
  ref={ref}
115
- className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}
115
+ className={cn("moonui-theme", "max-h-[300px] overflow-y-auto overflow-x-hidden", className)}
116
116
  {...props}
117
117
  />
118
118
  ))
@@ -128,7 +128,7 @@ const CommandEmpty = React.forwardRef<
128
128
  >(({ className, ...props }, ref) => (
129
129
  <CommandPrimitive.Empty
130
130
  ref={ref}
131
- className={cn("py-6 text-center text-sm text-muted-foreground", className)}
131
+ className={cn("moonui-theme", "py-6 text-center text-sm text-muted-foreground", className)}
132
132
  {...props}
133
133
  />
134
134
  ))
@@ -163,7 +163,7 @@ const CommandSeparator = React.forwardRef<
163
163
  >(({ className, ...props }, ref) => (
164
164
  <CommandPrimitive.Separator
165
165
  ref={ref}
166
- className={cn("-mx-1 h-px bg-border", className)}
166
+ className={cn("moonui-theme", "-mx-1 h-px bg-border", className)}
167
167
  {...props}
168
168
  />
169
169
  ))
@@ -292,7 +292,7 @@ export function DataTable<TData, TValue>({
292
292
  const selectedRows = table.getFilteredSelectedRowModel().rows;
293
293
 
294
294
  return (
295
- <div className={cn("space-y-4", className)}>
295
+ <div className={cn("moonui-theme", "space-y-4", className)}>
296
296
  {/* Header */}
297
297
  {(title || description) && (
298
298
  <div className="space-y-1">
@@ -13,7 +13,7 @@ import {
13
13
  } from "./popover";
14
14
  import { cva, type VariantProps } from "class-variance-authority";
15
15
  import { motion, AnimatePresence } from "framer-motion";
16
- import { microInteractionVariants } from "@/lib/micro-interactions";
16
+ import { pageTransitions } from "@/lib/micro-interactions";
17
17
 
18
18
  /**
19
19
  * DatePicker Component
@@ -29,7 +29,6 @@ const datePickerVariants = cva(
29
29
  default: "",
30
30
  outline: "border-2",
31
31
  ghost: "hover:bg-accent hover:text-accent-foreground",
32
- minimal: "h-auto p-0 border-0 shadow-none",
33
32
  },
34
33
  size: {
35
34
  default: "h-10 px-4 py-2",
@@ -180,10 +179,11 @@ export function DatePicker({
180
179
  const iconElement = icon || <CalendarIcon className="h-4 w-4" />;
181
180
 
182
181
  return (
183
- <Popover open={open} onOpenChange={setOpen}>
182
+ <div className="moonui-theme">
183
+ <Popover open={open} onOpenChange={setOpen}>
184
184
  <PopoverTrigger asChild>
185
185
  <Button
186
- variant={variant === "minimal" ? "ghost" : variant || "outline"}
186
+ variant={variant === "ghost" ? "ghost" : "outline"}
187
187
  className={cn(
188
188
  datePickerVariants({ variant, size, state }),
189
189
  !displayValue && "text-muted-foreground",
@@ -251,7 +251,7 @@ export function DatePicker({
251
251
  sideOffset={12}
252
252
  >
253
253
  <motion.div
254
- {...microInteractionVariants.fadeIn}
254
+ {...pageTransitions.fadeIn}
255
255
  className="rounded-2xl bg-background overflow-hidden"
256
256
  >
257
257
  <Calendar
@@ -278,6 +278,7 @@ export function DatePicker({
278
278
  </motion.div>
279
279
  </PopoverContent>
280
280
  </Popover>
281
+ </div>
281
282
  );
282
283
  }
283
284
 
@@ -342,7 +343,7 @@ export function DateRangePicker({
342
343
  <Popover open={open} onOpenChange={setOpen}>
343
344
  <PopoverTrigger asChild>
344
345
  <Button
345
- variant={props.variant === "minimal" ? "ghost" : props.variant || "outline"}
346
+ variant={props.variant === "ghost" ? "ghost" : "outline"}
346
347
  className={cn(
347
348
  datePickerVariants({
348
349
  variant: props.variant,
@@ -540,7 +541,7 @@ export function MonthPicker({
540
541
  <Popover open={open} onOpenChange={setOpen}>
541
542
  <PopoverTrigger asChild>
542
543
  <Button
543
- variant={props.variant || "outline"}
544
+ variant={props.variant === "default" ? "outline" : (props.variant || "outline")}
544
545
  className={cn(
545
546
  datePickerVariants({
546
547
  variant: props.variant,
@@ -581,7 +582,7 @@ export function MonthPicker({
581
582
  {months.map((month, index) => (
582
583
  <Button
583
584
  key={month}
584
- variant={value && value.getMonth() === index ? "default" : "outline"}
585
+ variant={value && value.getMonth() === index ? "primary" : "outline"}
585
586
  size="sm"
586
587
  onClick={() => handleMonthSelect(index)}
587
588
  className="h-8 text-xs"
@@ -53,7 +53,7 @@ const DialogOverlay = React.forwardRef<
53
53
  >(({ className, variant, animation, ...props }, ref) => (
54
54
  <DialogPrimitive.Overlay
55
55
  ref={ref}
56
- className={cn(overlayVariants({ variant, animation }), className)}
56
+ className={cn("moonui-theme", overlayVariants({ variant, animation }), className)}
57
57
  {...props}
58
58
  />
59
59
  ));
@@ -313,7 +313,7 @@ const DialogForm = React.forwardRef<
313
313
  >(({ className, ...props }, ref) => (
314
314
  <form
315
315
  ref={ref}
316
- className={cn("flex flex-col gap-4", className)}
316
+ className={cn("moonui-theme", "flex flex-col gap-4", className)}
317
317
  {...props}
318
318
  />
319
319
  ));
@@ -57,7 +57,7 @@ export function DraggableList<T>({
57
57
  }
58
58
 
59
59
  return (
60
- <div className={cn("space-y-2", className)}>
60
+ <div className={cn("moonui-theme", "space-y-2", className)}>
61
61
  {items.map((item, index) => (
62
62
  <div
63
63
  key={keyExtractor(item)}
@@ -162,7 +162,7 @@ const DropdownMenuSeparator = React.forwardRef<
162
162
  >(({ className, ...props }, ref) => (
163
163
  <DropdownMenuPrimitive.Separator
164
164
  ref={ref}
165
- className={cn("-mx-1 my-1 h-px bg-muted", className)}
165
+ className={cn("moonui-theme", "-mx-1 my-1 h-px bg-muted", className)}
166
166
  {...props}
167
167
  />
168
168
  ))
@@ -174,7 +174,7 @@ const DropdownMenuShortcut = ({
174
174
  }: React.HTMLAttributes<HTMLSpanElement>) => {
175
175
  return (
176
176
  <span
177
- className={cn("ml-auto text-xs tracking-widest opacity-60", className)}
177
+ className={cn("moonui-theme", "ml-auto text-xs tracking-widest opacity-60", className)}
178
178
  {...props}
179
179
  />
180
180
  )
@@ -111,7 +111,7 @@ const FileItem = ({
111
111
  </Badge>
112
112
  )}
113
113
  {status === 'success' && (
114
- <Badge variant="default" className="h-5 bg-green-500">
114
+ <Badge variant="success" className="h-5">
115
115
  <CheckCircle className="h-3 w-3 mr-1" />
116
116
  Done
117
117
  </Badge>
@@ -302,7 +302,7 @@ export const FileUpload = React.forwardRef<HTMLDivElement, FileUploadProps>(
302
302
  }, [onRemove])
303
303
 
304
304
  return (
305
- <div ref={ref} className={cn("space-y-4", className)} {...props}>
305
+ <div ref={ref} className={cn("moonui-theme", "space-y-4", className)} {...props}>
306
306
  {/* Upload Area */}
307
307
  <motion.div
308
308
  className={cn(