@moontra/moonui-pro 2.20.2 → 2.20.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.
Files changed (153) hide show
  1. package/package.json +8 -3
  2. package/plugin/index.d.ts +86 -0
  3. package/plugin/index.js +308 -0
  4. package/scripts/postinstall.js +191 -23
  5. package/src/components/advanced-chart/index.tsx +0 -1246
  6. package/src/components/advanced-forms/index.tsx +0 -585
  7. package/src/components/animated-button/index.tsx +0 -385
  8. package/src/components/calendar/event-dialog.tsx +0 -377
  9. package/src/components/calendar/index.tsx +0 -1220
  10. package/src/components/calendar-pro/index.tsx +0 -1697
  11. package/src/components/color-picker/index.tsx +0 -432
  12. package/src/components/credit-card-input/index.tsx +0 -406
  13. package/src/components/dashboard/dashboard-grid.tsx +0 -480
  14. package/src/components/dashboard/demo.tsx +0 -425
  15. package/src/components/dashboard/index.tsx +0 -1046
  16. package/src/components/dashboard/time-range-picker.tsx +0 -336
  17. package/src/components/dashboard/types.ts +0 -225
  18. package/src/components/dashboard/widgets/activity-feed.tsx +0 -349
  19. package/src/components/dashboard/widgets/chart-widget.tsx +0 -418
  20. package/src/components/dashboard/widgets/comparison-widget.tsx +0 -177
  21. package/src/components/dashboard/widgets/index.ts +0 -5
  22. package/src/components/dashboard/widgets/metric-card.tsx +0 -363
  23. package/src/components/dashboard/widgets/progress-widget.tsx +0 -113
  24. package/src/components/data-table/data-table-bulk-actions.tsx +0 -204
  25. package/src/components/data-table/data-table-column-toggle.tsx +0 -169
  26. package/src/components/data-table/data-table-export.ts +0 -156
  27. package/src/components/data-table/data-table-filter-drawer.tsx +0 -448
  28. package/src/components/data-table/index.tsx +0 -845
  29. package/src/components/draggable-list/index.tsx +0 -100
  30. package/src/components/error-boundary/index.tsx +0 -232
  31. package/src/components/file-upload/index.tsx +0 -1660
  32. package/src/components/floating-action-button/index.tsx +0 -206
  33. package/src/components/form-wizard/form-wizard-context.tsx +0 -335
  34. package/src/components/form-wizard/form-wizard-navigation.tsx +0 -118
  35. package/src/components/form-wizard/form-wizard-progress.tsx +0 -329
  36. package/src/components/form-wizard/form-wizard-step.tsx +0 -111
  37. package/src/components/form-wizard/index.tsx +0 -102
  38. package/src/components/form-wizard/types.ts +0 -77
  39. package/src/components/gesture-drawer/index.tsx +0 -551
  40. package/src/components/github-stars/github-api.ts +0 -426
  41. package/src/components/github-stars/hooks.ts +0 -517
  42. package/src/components/github-stars/index.tsx +0 -375
  43. package/src/components/github-stars/types.ts +0 -148
  44. package/src/components/github-stars/variants.tsx +0 -515
  45. package/src/components/health-check/index.tsx +0 -439
  46. package/src/components/hover-card-3d/index.tsx +0 -529
  47. package/src/components/index.ts +0 -130
  48. package/src/components/internal/index.ts +0 -78
  49. package/src/components/kanban/add-card-modal.tsx +0 -502
  50. package/src/components/kanban/card-detail-modal.tsx +0 -761
  51. package/src/components/kanban/index.ts +0 -13
  52. package/src/components/kanban/kanban.tsx +0 -1689
  53. package/src/components/kanban/types.ts +0 -168
  54. package/src/components/lazy-component/index.tsx +0 -823
  55. package/src/components/license-error/index.tsx +0 -31
  56. package/src/components/magnetic-button/index.tsx +0 -216
  57. package/src/components/memory-efficient-data/index.tsx +0 -1018
  58. package/src/components/moonui-quiz-form/index.tsx +0 -817
  59. package/src/components/navbar/index.tsx +0 -781
  60. package/src/components/optimized-image/index.tsx +0 -425
  61. package/src/components/performance-debugger/index.tsx +0 -613
  62. package/src/components/performance-monitor/index.tsx +0 -808
  63. package/src/components/phone-number-input/index.tsx +0 -343
  64. package/src/components/phone-number-input/phone-number-input-simple.tsx +0 -167
  65. package/src/components/pinch-zoom/index.tsx +0 -566
  66. package/src/components/quiz-form/index.tsx +0 -479
  67. package/src/components/rich-text-editor/index.tsx +0 -2322
  68. package/src/components/rich-text-editor/slash-commands-extension.ts +0 -230
  69. package/src/components/rich-text-editor/slash-commands.css +0 -35
  70. package/src/components/rich-text-editor/table-styles.css +0 -65
  71. package/src/components/sidebar/index.tsx +0 -884
  72. package/src/components/spotlight-card/index.tsx +0 -191
  73. package/src/components/swipeable-card/index.tsx +0 -100
  74. package/src/components/timeline/index.tsx +0 -1183
  75. package/src/components/ui/accordion.tsx +0 -581
  76. package/src/components/ui/alert-dialog.tsx +0 -141
  77. package/src/components/ui/alert.tsx +0 -141
  78. package/src/components/ui/aspect-ratio.tsx +0 -245
  79. package/src/components/ui/avatar.tsx +0 -155
  80. package/src/components/ui/badge.tsx +0 -230
  81. package/src/components/ui/breadcrumb.tsx +0 -216
  82. package/src/components/ui/button.tsx +0 -228
  83. package/src/components/ui/calendar.tsx +0 -387
  84. package/src/components/ui/card.tsx +0 -216
  85. package/src/components/ui/checkbox.tsx +0 -259
  86. package/src/components/ui/collapsible.tsx +0 -631
  87. package/src/components/ui/color-picker.tsx +0 -97
  88. package/src/components/ui/command.tsx +0 -948
  89. package/src/components/ui/dialog.tsx +0 -752
  90. package/src/components/ui/dropdown-menu.tsx +0 -706
  91. package/src/components/ui/gesture-drawer.tsx +0 -11
  92. package/src/components/ui/hover-card.tsx +0 -29
  93. package/src/components/ui/index.ts +0 -222
  94. package/src/components/ui/input.tsx +0 -224
  95. package/src/components/ui/label.tsx +0 -29
  96. package/src/components/ui/lightbox.tsx +0 -606
  97. package/src/components/ui/magnetic-button.tsx +0 -129
  98. package/src/components/ui/media-gallery.tsx +0 -611
  99. package/src/components/ui/navigation-menu.tsx +0 -130
  100. package/src/components/ui/pagination.tsx +0 -125
  101. package/src/components/ui/popover.tsx +0 -185
  102. package/src/components/ui/progress.tsx +0 -30
  103. package/src/components/ui/radio-group.tsx +0 -257
  104. package/src/components/ui/scroll-area.tsx +0 -47
  105. package/src/components/ui/select.tsx +0 -378
  106. package/src/components/ui/separator.tsx +0 -145
  107. package/src/components/ui/sheet.tsx +0 -139
  108. package/src/components/ui/skeleton.tsx +0 -20
  109. package/src/components/ui/slider.tsx +0 -354
  110. package/src/components/ui/spotlight-card.tsx +0 -119
  111. package/src/components/ui/switch.tsx +0 -86
  112. package/src/components/ui/table.tsx +0 -331
  113. package/src/components/ui/tabs-pro.tsx +0 -542
  114. package/src/components/ui/tabs.tsx +0 -54
  115. package/src/components/ui/textarea.tsx +0 -28
  116. package/src/components/ui/toast.tsx +0 -317
  117. package/src/components/ui/toggle.tsx +0 -119
  118. package/src/components/ui/tooltip.tsx +0 -151
  119. package/src/components/virtual-list/index.tsx +0 -668
  120. package/src/hooks/use-chart.ts +0 -205
  121. package/src/hooks/use-data-table.ts +0 -182
  122. package/src/hooks/use-docs-pro-access.ts +0 -13
  123. package/src/hooks/use-license-check.ts +0 -65
  124. package/src/hooks/use-subscription.ts +0 -19
  125. package/src/hooks/use-toast.ts +0 -15
  126. package/src/index.ts +0 -22
  127. package/src/lib/ai-providers.ts +0 -377
  128. package/src/lib/component-metadata.ts +0 -18
  129. package/src/lib/micro-interactions.ts +0 -255
  130. package/src/lib/paddle.ts +0 -17
  131. package/src/lib/utils.ts +0 -6
  132. package/src/patterns/login-form/index.tsx +0 -276
  133. package/src/patterns/login-form/types.ts +0 -67
  134. package/src/setupTests.ts +0 -41
  135. package/src/styles/advanced-chart.css +0 -239
  136. package/src/styles/calendar.css +0 -35
  137. package/src/styles/design-system.css +0 -363
  138. package/src/styles/index.css +0 -681
  139. package/src/styles/tailwind.css +0 -7
  140. package/src/styles/tokens.css +0 -455
  141. package/src/types/next-auth.d.ts +0 -21
  142. package/src/use-intersection-observer.tsx +0 -154
  143. package/src/use-local-storage.tsx +0 -71
  144. package/src/use-paddle.ts +0 -138
  145. package/src/use-performance-optimizer.ts +0 -389
  146. package/src/use-pro-access.ts +0 -141
  147. package/src/use-scroll-animation.ts +0 -219
  148. package/src/use-subscription.ts +0 -37
  149. package/src/use-toast.ts +0 -32
  150. package/src/utils/chart-helpers.ts +0 -357
  151. package/src/utils/cn.ts +0 -6
  152. package/src/utils/data-processing.ts +0 -151
  153. package/src/utils/license-validator.tsx +0 -183
@@ -1,276 +0,0 @@
1
- import React, { useState } from 'react'
2
- import { cn } from '../../utils/cn'
3
- import { useLicenseCheck } from '../../hooks/use-license-check'
4
- import { LicenseError } from '../../components/license-error'
5
- import { Skeleton } from '../../components/ui/skeleton'
6
- import type { LoginFormProps, LoginData } from './types'
7
-
8
- export function LoginFormCore({
9
- theme = {},
10
- className,
11
- layout = 'single',
12
- logo,
13
- header,
14
- footer,
15
- features = {},
16
- onSubmit,
17
- onSocialLogin,
18
- onForgotPassword,
19
- validation,
20
- texts = {},
21
- autoFocus = true,
22
- disabled = false,
23
- }: LoginFormProps) {
24
- const { isValid, isLoading } = useLicenseCheck()
25
- const [formData, setFormData] = useState<LoginData>({
26
- email: '',
27
- password: '',
28
- rememberMe: false,
29
- })
30
- const [errors, setErrors] = useState<Partial<LoginData>>({})
31
- const [isSubmitting, setIsSubmitting] = useState(false)
32
-
33
- // License kontrolü
34
- if (isLoading) {
35
- return <Skeleton className="w-full h-96" />
36
- }
37
-
38
- if (!isValid) {
39
- return <LicenseError className={className} />
40
- }
41
-
42
- // Form submit handler
43
- const handleSubmit = async (e: React.FormEvent) => {
44
- e.preventDefault()
45
-
46
- if (disabled || isSubmitting) return
47
-
48
- // Validation
49
- const newErrors: Partial<LoginData> = {}
50
-
51
- if (validation?.email) {
52
- const emailError = validation.email(formData.email)
53
- if (emailError) newErrors.email = emailError
54
- } else if (!formData.email) {
55
- newErrors.email = 'Email is required'
56
- }
57
-
58
- if (validation?.password) {
59
- const passwordError = validation.password(formData.password)
60
- if (passwordError) newErrors.password = passwordError
61
- } else if (!formData.password) {
62
- newErrors.password = 'Password is required'
63
- }
64
-
65
- if (Object.keys(newErrors).length > 0) {
66
- setErrors(newErrors)
67
- return
68
- }
69
-
70
- setIsSubmitting(true)
71
- try {
72
- await onSubmit?.(formData)
73
- } catch (error) {
74
- console.error('Login error:', error)
75
- } finally {
76
- setIsSubmitting(false)
77
- }
78
- }
79
-
80
- // Social login handler
81
- const handleSocialLogin = async (provider: string) => {
82
- if (disabled || isSubmitting) return
83
-
84
- setIsSubmitting(true)
85
- try {
86
- await onSocialLogin?.(provider)
87
- } catch (error) {
88
- console.error('Social login error:', error)
89
- } finally {
90
- setIsSubmitting(false)
91
- }
92
- }
93
-
94
- // Layout classes
95
- const layoutClasses = {
96
- single: 'max-w-md mx-auto',
97
- 'two-column': 'grid md:grid-cols-2 gap-8',
98
- centered: 'max-w-md mx-auto text-center',
99
- }
100
-
101
- // Theme styles
102
- const themeStyles = {
103
- '--login-primary': theme.primary || '#6366f1',
104
- '--login-secondary': theme.secondary || '#8b5cf6',
105
- '--login-background': theme.background || '#ffffff',
106
- '--login-text': theme.text || '#1f2937',
107
- '--login-border-radius': theme.borderRadius || '0.5rem',
108
- '--login-spacing': theme.spacing === 'compact' ? '0.5rem' : theme.spacing === 'relaxed' ? '1.5rem' : '1rem',
109
- } as React.CSSProperties
110
-
111
- return (
112
- <div
113
- className={cn(
114
- 'w-full',
115
- layoutClasses[layout],
116
- className
117
- )}
118
- style={themeStyles}
119
- >
120
- <div className="space-y-6 p-8 rounded-lg border bg-[var(--login-background)] shadow-sm">
121
- {/* Logo & Header */}
122
- {(logo || header) && (
123
- <div className="space-y-4">
124
- {logo && <div className="flex justify-center">{logo}</div>}
125
- {header}
126
- </div>
127
- )}
128
-
129
- {/* Title */}
130
- <div className="space-y-2 text-center">
131
- <h2 className="text-2xl font-bold text-[var(--login-text)]">
132
- {texts.title || 'Welcome back'}
133
- </h2>
134
- {texts.subtitle && (
135
- <p className="text-sm text-gray-600">{texts.subtitle}</p>
136
- )}
137
- </div>
138
-
139
- {/* Form */}
140
- <form onSubmit={handleSubmit} className="space-y-4">
141
- {/* Email field */}
142
- <div className="space-y-2">
143
- <label className="text-sm font-medium text-[var(--login-text)]">
144
- {texts.emailLabel || 'Email'}
145
- </label>
146
- <input
147
- type="email"
148
- value={formData.email}
149
- onChange={(e) => {
150
- setFormData({ ...formData, email: e.target.value })
151
- setErrors({ ...errors, email: undefined })
152
- }}
153
- className={cn(
154
- "w-full px-3 py-2 border rounded-[var(--login-border-radius)] focus:outline-none focus:ring-2 focus:ring-[var(--login-primary)]",
155
- errors.email && "border-red-500"
156
- )}
157
- placeholder="name@example.com"
158
- autoFocus={autoFocus}
159
- disabled={disabled || isSubmitting}
160
- />
161
- {errors.email && (
162
- <p className="text-sm text-red-500">{errors.email}</p>
163
- )}
164
- </div>
165
-
166
- {/* Password field */}
167
- <div className="space-y-2">
168
- <label className="text-sm font-medium text-[var(--login-text)]">
169
- {texts.passwordLabel || 'Password'}
170
- </label>
171
- <input
172
- type="password"
173
- value={formData.password}
174
- onChange={(e) => {
175
- setFormData({ ...formData, password: e.target.value })
176
- setErrors({ ...errors, password: undefined })
177
- }}
178
- className={cn(
179
- "w-full px-3 py-2 border rounded-[var(--login-border-radius)] focus:outline-none focus:ring-2 focus:ring-[var(--login-primary)]",
180
- errors.password && "border-red-500"
181
- )}
182
- placeholder="••••••••"
183
- disabled={disabled || isSubmitting}
184
- />
185
- {errors.password && (
186
- <p className="text-sm text-red-500">{errors.password}</p>
187
- )}
188
- </div>
189
-
190
- {/* Remember me & Forgot password */}
191
- {(features.rememberMe || features.forgotPassword) && (
192
- <div className="flex items-center justify-between">
193
- {features.rememberMe && (
194
- <label className="flex items-center">
195
- <input
196
- type="checkbox"
197
- checked={formData.rememberMe}
198
- onChange={(e) => setFormData({ ...formData, rememberMe: e.target.checked })}
199
- className="mr-2"
200
- disabled={disabled || isSubmitting}
201
- />
202
- <span className="text-sm text-gray-600">
203
- {texts.rememberMeLabel || 'Remember me'}
204
- </span>
205
- </label>
206
- )}
207
- {features.forgotPassword && (
208
- <button
209
- type="button"
210
- onClick={onForgotPassword}
211
- className="text-sm text-[var(--login-primary)] hover:underline"
212
- disabled={disabled || isSubmitting}
213
- >
214
- {texts.forgotPasswordLink || 'Forgot password?'}
215
- </button>
216
- )}
217
- </div>
218
- )}
219
-
220
- {/* Submit button */}
221
- <button
222
- type="submit"
223
- disabled={disabled || isSubmitting}
224
- className={cn(
225
- "w-full py-2 px-4 bg-[var(--login-primary)] text-white rounded-[var(--login-border-radius)] font-medium",
226
- "hover:opacity-90 transition-opacity",
227
- "disabled:opacity-50 disabled:cursor-not-allowed"
228
- )}
229
- >
230
- {isSubmitting ? 'Loading...' : (texts.submitButton || 'Sign in')}
231
- </button>
232
- </form>
233
-
234
- {/* Social login */}
235
- {features.socialLogin && (
236
- <>
237
- <div className="relative">
238
- <div className="absolute inset-0 flex items-center">
239
- <div className="w-full border-t"></div>
240
- </div>
241
- <div className="relative flex justify-center text-sm">
242
- <span className="px-2 bg-[var(--login-background)] text-gray-500">
243
- {texts.orContinueWith || 'Or continue with'}
244
- </span>
245
- </div>
246
- </div>
247
-
248
- <div className="grid grid-cols-2 gap-3">
249
- {(Array.isArray(features.socialLogin) ? features.socialLogin : ['google', 'github']).map((provider) => (
250
- <button
251
- key={provider}
252
- type="button"
253
- onClick={() => handleSocialLogin(provider)}
254
- disabled={disabled || isSubmitting}
255
- className={cn(
256
- "flex items-center justify-center py-2 px-4 border rounded-[var(--login-border-radius)]",
257
- "hover:bg-gray-50 transition-colors",
258
- "disabled:opacity-50 disabled:cursor-not-allowed"
259
- )}
260
- >
261
- {provider.charAt(0).toUpperCase() + provider.slice(1)}
262
- </button>
263
- ))}
264
- </div>
265
- </>
266
- )}
267
-
268
- {/* Footer */}
269
- {footer}
270
- </div>
271
- </div>
272
- )
273
- }
274
-
275
- // Export types
276
- export type { LoginFormProps, LoginData, LoginFormTheme, LoginFormFeatures, LoginFormTexts } from './types'
@@ -1,67 +0,0 @@
1
- export interface LoginFormTheme {
2
- primary?: string
3
- secondary?: string
4
- background?: string
5
- text?: string
6
- borderRadius?: string
7
- spacing?: 'compact' | 'normal' | 'relaxed'
8
- }
9
-
10
- export interface LoginFormFeatures {
11
- socialLogin?: boolean | string[]
12
- rememberMe?: boolean
13
- forgotPassword?: boolean
14
- twoFactor?: boolean
15
- passwordStrength?: boolean
16
- }
17
-
18
- export interface LoginFormTexts {
19
- title?: string
20
- subtitle?: string
21
- emailLabel?: string
22
- passwordLabel?: string
23
- submitButton?: string
24
- forgotPasswordLink?: string
25
- signUpLink?: string
26
- rememberMeLabel?: string
27
- orContinueWith?: string
28
- }
29
-
30
- export interface LoginData {
31
- email: string
32
- password: string
33
- rememberMe?: boolean
34
- }
35
-
36
- export interface ValidationRules {
37
- email?: (value: string) => string | null
38
- password?: (value: string) => string | null
39
- }
40
-
41
- export interface LoginFormProps {
42
- // Stil özelleştirme
43
- theme?: LoginFormTheme
44
- className?: string
45
-
46
- // Yapı özelleştirme
47
- layout?: 'single' | 'two-column' | 'centered'
48
- logo?: React.ReactNode
49
- header?: React.ReactNode
50
- footer?: React.ReactNode
51
-
52
- // Özellik kontrolü
53
- features?: LoginFormFeatures
54
-
55
- // Davranış özelleştirme
56
- onSubmit?: (data: LoginData) => Promise<void> | void
57
- onSocialLogin?: (provider: string) => Promise<void> | void
58
- onForgotPassword?: () => void
59
- validation?: ValidationRules
60
-
61
- // İçerik özelleştirme
62
- texts?: LoginFormTexts
63
-
64
- // Diğer
65
- autoFocus?: boolean
66
- disabled?: boolean
67
- }
package/src/setupTests.ts DELETED
@@ -1,41 +0,0 @@
1
- import '@testing-library/jest-dom'
2
-
3
- // Mock ResizeObserver
4
- global.ResizeObserver = jest.fn().mockImplementation(() => ({
5
- observe: jest.fn(),
6
- unobserve: jest.fn(),
7
- disconnect: jest.fn(),
8
- }))
9
-
10
- // Mock IntersectionObserver
11
- global.IntersectionObserver = jest.fn().mockImplementation(() => ({
12
- observe: jest.fn(),
13
- unobserve: jest.fn(),
14
- disconnect: jest.fn(),
15
- }))
16
-
17
- // Mock matchMedia
18
- Object.defineProperty(window, 'matchMedia', {
19
- writable: true,
20
- value: jest.fn().mockImplementation(query => ({
21
- matches: false,
22
- media: query,
23
- onchange: null,
24
- addListener: jest.fn(),
25
- removeListener: jest.fn(),
26
- addEventListener: jest.fn(),
27
- removeEventListener: jest.fn(),
28
- dispatchEvent: jest.fn(),
29
- })),
30
- })
31
-
32
- // Mock console methods to reduce noise in tests
33
- global.console = {
34
- ...console,
35
- warn: jest.fn(),
36
- error: jest.fn(),
37
- }
38
-
39
- // Mock URL.createObjectURL
40
- URL.createObjectURL = jest.fn(() => 'mocked-url')
41
- URL.revokeObjectURL = jest.fn()
@@ -1,239 +0,0 @@
1
- /* Advanced Chart Styles */
2
-
3
- /* Chart animation classes */
4
- .chart-animate-in {
5
- animation: chartFadeIn 0.5s ease-out;
6
- }
7
-
8
- .chart-point-pulse {
9
- animation: pointPulse 2s ease-in-out infinite;
10
- }
11
-
12
- .chart-gradient-shift {
13
- animation: gradientShift 3s ease-in-out infinite;
14
- }
15
-
16
- /* Custom chart tooltips */
17
- .recharts-tooltip-wrapper {
18
- outline: none !important;
19
- }
20
-
21
- .recharts-tooltip-cursor {
22
- fill: hsl(var(--muted) / 0.1);
23
- }
24
-
25
- /* Legend hover effects */
26
- .recharts-legend-item {
27
- cursor: pointer;
28
- transition: all 0.2s ease;
29
- }
30
-
31
- .recharts-legend-item:hover {
32
- transform: translateY(-1px);
33
- }
34
-
35
- /* Smooth chart transitions */
36
- .recharts-line-curve,
37
- .recharts-area-curve {
38
- transition: all 0.3s ease;
39
- }
40
-
41
- .recharts-bar-rectangle {
42
- transition: all 0.2s ease;
43
- }
44
-
45
- .recharts-bar-rectangle:hover {
46
- filter: brightness(1.1);
47
- }
48
-
49
- /* Pie chart enhancements */
50
- .recharts-pie-sector {
51
- transition: all 0.2s ease;
52
- cursor: pointer;
53
- }
54
-
55
- .recharts-pie-sector:hover {
56
- filter: brightness(1.1);
57
- transform: scale(1.02);
58
- }
59
-
60
- /* Brush styling */
61
- .recharts-brush {
62
- fill: hsl(var(--primary) / 0.1);
63
- stroke: hsl(var(--primary) / 0.3);
64
- }
65
-
66
- .recharts-brush-slide {
67
- fill: hsl(var(--primary) / 0.2);
68
- fill-opacity: 0.5;
69
- }
70
-
71
- /* Grid styling */
72
- .recharts-cartesian-grid-horizontal line,
73
- .recharts-cartesian-grid-vertical line {
74
- stroke-dasharray: 3 3;
75
- opacity: 0.3;
76
- }
77
-
78
- /* Axis styling */
79
- .recharts-xAxis .recharts-cartesian-axis-tick-value,
80
- .recharts-yAxis .recharts-cartesian-axis-tick-value {
81
- fill: hsl(var(--muted-foreground));
82
- font-size: 11px;
83
- }
84
-
85
- /* Dark mode enhancements */
86
- .dark .recharts-tooltip-wrapper {
87
- filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
88
- }
89
-
90
- .dark .recharts-cartesian-grid-horizontal line,
91
- .dark .recharts-cartesian-grid-vertical line {
92
- opacity: 0.2;
93
- }
94
-
95
- /* Sparkline mode */
96
- .sparkline-chart .recharts-surface {
97
- overflow: visible !important;
98
- }
99
-
100
- /* Loading skeleton animation */
101
- @keyframes chartSkeletonPulse {
102
- 0%, 100% {
103
- opacity: 0.5;
104
- transform: scaleY(0.8);
105
- }
106
- 50% {
107
- opacity: 1;
108
- transform: scaleY(1);
109
- }
110
- }
111
-
112
- /* Chart animations */
113
- @keyframes chartFadeIn {
114
- from {
115
- opacity: 0;
116
- transform: translateY(10px);
117
- }
118
- to {
119
- opacity: 1;
120
- transform: translateY(0);
121
- }
122
- }
123
-
124
- @keyframes pointPulse {
125
- 0%, 100% {
126
- transform: scale(1);
127
- opacity: 1;
128
- }
129
- 50% {
130
- transform: scale(1.2);
131
- opacity: 0.8;
132
- }
133
- }
134
-
135
- @keyframes gradientShift {
136
- 0%, 100% {
137
- stop-opacity: 0.8;
138
- }
139
- 50% {
140
- stop-opacity: 0.4;
141
- }
142
- }
143
-
144
- /* Interactive legend styles */
145
- .chart-legend-item {
146
- position: relative;
147
- overflow: hidden;
148
- }
149
-
150
- .chart-legend-item::before {
151
- content: '';
152
- position: absolute;
153
- top: 0;
154
- left: -100%;
155
- width: 100%;
156
- height: 100%;
157
- background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.1), transparent);
158
- transition: left 0.5s ease;
159
- }
160
-
161
- .chart-legend-item:hover::before {
162
- left: 100%;
163
- }
164
-
165
- /* Crosshair cursor */
166
- .chart-crosshair {
167
- stroke: hsl(var(--muted-foreground));
168
- stroke-width: 1;
169
- stroke-dasharray: 5 5;
170
- opacity: 0.5;
171
- }
172
-
173
- /* Mini map styles */
174
- .chart-minimap {
175
- border: 1px solid hsl(var(--border));
176
- border-radius: var(--radius-md);
177
- background: hsl(var(--background) / 0.8);
178
- backdrop-filter: blur(8px);
179
- }
180
-
181
- /* Export menu animation */
182
- .chart-export-menu {
183
- animation: slideDown 0.2s ease-out;
184
- }
185
-
186
- @keyframes slideDown {
187
- from {
188
- opacity: 0;
189
- transform: translateY(-10px);
190
- }
191
- to {
192
- opacity: 1;
193
- transform: translateY(0);
194
- }
195
- }
196
-
197
- /* Zoom indicator */
198
- .chart-zoom-indicator {
199
- background: hsl(var(--background) / 0.9);
200
- backdrop-filter: blur(8px);
201
- border: 1px solid hsl(var(--border));
202
- border-radius: var(--radius-full);
203
- padding: 0.25rem 0.5rem;
204
- font-size: 0.75rem;
205
- font-weight: 500;
206
- }
207
-
208
- /* Performance optimizations */
209
- .recharts-surface {
210
- will-change: transform;
211
- }
212
-
213
- .recharts-line,
214
- .recharts-area,
215
- .recharts-bar {
216
- will-change: opacity, transform;
217
- }
218
-
219
- /* Responsive adjustments */
220
- @media (max-width: 640px) {
221
- .recharts-wrapper {
222
- font-size: 0.875rem;
223
- }
224
-
225
- .recharts-legend-wrapper {
226
- margin-top: 1rem !important;
227
- }
228
- }
229
-
230
- /* Print styles */
231
- @media print {
232
- .chart-controls {
233
- display: none !important;
234
- }
235
-
236
- .recharts-tooltip-wrapper {
237
- display: none !important;
238
- }
239
- }
@@ -1,35 +0,0 @@
1
- /* Calendar Component Styles - Custom Implementation */
2
- .moonui-calendar {
3
- width: 100%;
4
- }
5
-
6
- /* Mobile adjustments */
7
- @media (max-width: 640px) {
8
- .moonui-calendar {
9
- font-size: 0.875rem;
10
- }
11
-
12
- .moonui-calendar button {
13
- font-size: 0.8125rem;
14
- }
15
- }
16
-
17
- /* Popover responsive */
18
- @media (max-width: 640px) {
19
- .time-range-popover {
20
- max-width: calc(100vw - 2rem) !important;
21
- margin: 0 auto;
22
- }
23
-
24
- /* Make calendar months stack vertically on mobile */
25
- .moonui-calendar .grid-cols-7 {
26
- font-size: 0.75rem;
27
- }
28
- }
29
-
30
- /* Ensure proper layout on desktop */
31
- @media (min-width: 641px) {
32
- .time-range-popover {
33
- min-width: 640px;
34
- }
35
- }