@moontra/moonui-pro 2.1.3 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.1.3",
3
+ "version": "2.2.0",
4
4
  "description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -1,10 +1,9 @@
1
1
  "use client"
2
2
 
3
3
  import React from 'react'
4
- import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card'
5
- import { Button } from './button'
6
- import { Progress } from './progress'
7
- import { Badge } from './badge'
4
+ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../ui/card'
5
+ import { Button } from '../ui/button'
6
+ import { Badge } from '../ui/badge'
8
7
  import {
9
8
  Upload,
10
9
  File,
@@ -22,7 +21,6 @@ import {
22
21
  Sparkles
23
22
  } from 'lucide-react'
24
23
  import { cn } from '../../lib/utils'
25
- import { useDocsProAccess } from '@/components/docs/docs-pro-provider'
26
24
  import { useSubscription } from '../../hooks/use-subscription'
27
25
 
28
26
  interface FileUploadProps {
@@ -316,7 +314,12 @@ export function FileUpload({
316
314
  </div>
317
315
 
318
316
  {uploadedFile.status === 'uploading' && (
319
- <Progress value={uploadedFile.progress} className="mt-2" />
317
+ <div className="mt-2 h-2 bg-secondary rounded-full overflow-hidden">
318
+ <div
319
+ className="h-full bg-primary transition-all duration-300 ease-out"
320
+ style={{ width: `${uploadedFile.progress}%` }}
321
+ />
322
+ </div>
320
323
  )}
321
324
 
322
325
  {uploadedFile.error && (
@@ -73,4 +73,10 @@ export * from "./optimized-image"
73
73
  export * from "./performance-debugger"
74
74
 
75
75
  // Performance Monitor
76
- export * from "./performance-monitor"
76
+ export * from "./performance-monitor"
77
+
78
+ // File Upload
79
+ export * from "./file-upload"
80
+
81
+ // Data Table
82
+ export * from "./data-table"
@@ -4,12 +4,12 @@ import { cn } from "../../lib/utils";
4
4
  import { Loader2 } from "lucide-react";
5
5
 
6
6
  /**
7
- * Premium Button Component
7
+ * MoonUI Button Pro Component
8
8
  *
9
9
  * A world-class, accessible, and versatile button component.
10
10
  * Pixel-perfect design with extensive variants and states.
11
11
  */
12
- const buttonVariants = cva(
12
+ const moonUIButtonProVariants = 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",
@@ -156,10 +156,10 @@ const buttonVariants = cva(
156
156
  }
157
157
  );
158
158
 
159
- // Button component props
160
- export interface ButtonProps
159
+ // MoonUI Button Pro component props
160
+ export interface MoonUIButtonProProps
161
161
  extends React.ButtonHTMLAttributes<HTMLButtonElement>,
162
- VariantProps<typeof buttonVariants> {
162
+ VariantProps<typeof moonUIButtonProVariants> {
163
163
  asChild?: boolean;
164
164
  loading?: boolean;
165
165
  leftIcon?: React.ReactNode;
@@ -167,9 +167,9 @@ export interface ButtonProps
167
167
  }
168
168
 
169
169
  /**
170
- * Premium Button Component
170
+ * MoonUI Button Pro Component
171
171
  *
172
- * @param props - Button component properties
172
+ * @param props - MoonUI Button Pro component properties
173
173
  * @param props.variant - Visual variant (primary, secondary, ghost, etc.)
174
174
  * @param props.size - Button size (xs, sm, md, lg, xl)
175
175
  * @param props.loading - Loading state display
@@ -179,7 +179,7 @@ export interface ButtonProps
179
179
  * @param props.rounded - Corner rounding style (default, full, none)
180
180
  * @param props.asChild - For Radix UI polymorphic component
181
181
  */
182
- const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
182
+ const MoonUIButtonPro = React.forwardRef<HTMLButtonElement, MoonUIButtonProProps>(
183
183
  ({
184
184
  className,
185
185
  variant,
@@ -199,7 +199,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
199
199
 
200
200
  return (
201
201
  <Comp
202
- className={cn(buttonVariants({ variant, size, rounded, fullWidth, className }))}
202
+ className={cn(moonUIButtonProVariants({ variant, size, rounded, fullWidth, className }))}
203
203
  ref={ref}
204
204
  disabled={disabled || loading}
205
205
  data-loading={loading ? "" : undefined}
@@ -216,6 +216,10 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
216
216
  }
217
217
  );
218
218
 
219
- Button.displayName = "Button";
219
+ MoonUIButtonPro.displayName = "MoonUIButtonPro";
220
220
 
221
- export { Button, buttonVariants };
221
+ export { MoonUIButtonPro, moonUIButtonProVariants };
222
+
223
+ // Backward compatibility exports
224
+ export { MoonUIButtonPro as Button, moonUIButtonProVariants as buttonVariants };
225
+ export type { MoonUIButtonProProps as ButtonProps };