@moontra/moonui-pro 2.20.1 → 2.20.3

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 (162) hide show
  1. package/dist/index.d.ts +691 -261
  2. package/dist/index.mjs +7418 -4934
  3. package/package.json +11 -5
  4. package/plugin/index.d.ts +86 -0
  5. package/plugin/index.js +308 -0
  6. package/scripts/postbuild.js +27 -0
  7. package/scripts/postinstall.js +176 -23
  8. package/src/__tests__/use-intersection-observer.test.tsx +0 -216
  9. package/src/__tests__/use-local-storage.test.tsx +0 -174
  10. package/src/__tests__/use-pro-access.test.tsx +0 -183
  11. package/src/components/advanced-chart/advanced-chart.test.tsx +0 -281
  12. package/src/components/advanced-chart/index.tsx +0 -1242
  13. package/src/components/advanced-forms/index.tsx +0 -426
  14. package/src/components/animated-button/index.tsx +0 -385
  15. package/src/components/calendar/event-dialog.tsx +0 -372
  16. package/src/components/calendar/index.tsx +0 -1073
  17. package/src/components/calendar-pro/index.tsx +0 -1697
  18. package/src/components/color-picker/index.tsx +0 -432
  19. package/src/components/credit-card-input/index.tsx +0 -406
  20. package/src/components/dashboard/dashboard-grid.tsx +0 -462
  21. package/src/components/dashboard/demo.tsx +0 -425
  22. package/src/components/dashboard/index.tsx +0 -1046
  23. package/src/components/dashboard/time-range-picker.tsx +0 -336
  24. package/src/components/dashboard/types.ts +0 -222
  25. package/src/components/dashboard/widgets/activity-feed.tsx +0 -344
  26. package/src/components/dashboard/widgets/chart-widget.tsx +0 -418
  27. package/src/components/dashboard/widgets/metric-card.tsx +0 -343
  28. package/src/components/data-table/data-table-bulk-actions.tsx +0 -204
  29. package/src/components/data-table/data-table-column-toggle.tsx +0 -169
  30. package/src/components/data-table/data-table-export.ts +0 -156
  31. package/src/components/data-table/data-table-filter-drawer.tsx +0 -448
  32. package/src/components/data-table/data-table.test.tsx +0 -187
  33. package/src/components/data-table/index.tsx +0 -845
  34. package/src/components/draggable-list/index.tsx +0 -100
  35. package/src/components/enhanced/badge.tsx +0 -191
  36. package/src/components/enhanced/button.tsx +0 -362
  37. package/src/components/enhanced/card.tsx +0 -266
  38. package/src/components/enhanced/dialog.tsx +0 -246
  39. package/src/components/enhanced/index.ts +0 -4
  40. package/src/components/error-boundary/index.tsx +0 -109
  41. package/src/components/file-upload/file-upload.test.tsx +0 -243
  42. package/src/components/file-upload/index.tsx +0 -1660
  43. package/src/components/floating-action-button/index.tsx +0 -206
  44. package/src/components/form-wizard/form-wizard-context.tsx +0 -307
  45. package/src/components/form-wizard/form-wizard-navigation.tsx +0 -118
  46. package/src/components/form-wizard/form-wizard-progress.tsx +0 -298
  47. package/src/components/form-wizard/form-wizard-step.tsx +0 -111
  48. package/src/components/form-wizard/index.tsx +0 -102
  49. package/src/components/form-wizard/types.ts +0 -76
  50. package/src/components/gesture-drawer/index.tsx +0 -551
  51. package/src/components/github-stars/github-api.ts +0 -426
  52. package/src/components/github-stars/hooks.ts +0 -516
  53. package/src/components/github-stars/index.tsx +0 -375
  54. package/src/components/github-stars/types.ts +0 -148
  55. package/src/components/github-stars/variants.tsx +0 -513
  56. package/src/components/health-check/index.tsx +0 -439
  57. package/src/components/hover-card-3d/index.tsx +0 -530
  58. package/src/components/index.ts +0 -128
  59. package/src/components/internal/index.ts +0 -78
  60. package/src/components/kanban/add-card-modal.tsx +0 -502
  61. package/src/components/kanban/card-detail-modal.tsx +0 -761
  62. package/src/components/kanban/index.ts +0 -13
  63. package/src/components/kanban/kanban.tsx +0 -1684
  64. package/src/components/kanban/types.ts +0 -168
  65. package/src/components/lazy-component/index.tsx +0 -823
  66. package/src/components/license-error/index.tsx +0 -29
  67. package/src/components/magnetic-button/index.tsx +0 -167
  68. package/src/components/memory-efficient-data/index.tsx +0 -1016
  69. package/src/components/moonui-quiz-form/index.tsx +0 -817
  70. package/src/components/optimized-image/index.tsx +0 -425
  71. package/src/components/performance-debugger/index.tsx +0 -589
  72. package/src/components/performance-monitor/index.tsx +0 -794
  73. package/src/components/phone-number-input/index.tsx +0 -338
  74. package/src/components/pinch-zoom/index.tsx +0 -566
  75. package/src/components/quiz-form/index.tsx +0 -479
  76. package/src/components/rich-text-editor/index-old-backup.tsx +0 -437
  77. package/src/components/rich-text-editor/index.tsx +0 -2324
  78. package/src/components/rich-text-editor/slash-commands-extension.ts +0 -220
  79. package/src/components/rich-text-editor/slash-commands.css +0 -35
  80. package/src/components/rich-text-editor/table-styles.css +0 -65
  81. package/src/components/sidebar/index.tsx +0 -865
  82. package/src/components/spotlight-card/index.tsx +0 -191
  83. package/src/components/swipeable-card/index.tsx +0 -100
  84. package/src/components/timeline/index.tsx +0 -1148
  85. package/src/components/ui/accordion.tsx +0 -73
  86. package/src/components/ui/alert-dialog.tsx +0 -141
  87. package/src/components/ui/alert.tsx +0 -141
  88. package/src/components/ui/aspect-ratio.tsx +0 -245
  89. package/src/components/ui/avatar.tsx +0 -153
  90. package/src/components/ui/badge.tsx +0 -228
  91. package/src/components/ui/breadcrumb.tsx +0 -214
  92. package/src/components/ui/button.tsx +0 -222
  93. package/src/components/ui/calendar.tsx +0 -387
  94. package/src/components/ui/card.tsx +0 -214
  95. package/src/components/ui/checkbox.tsx +0 -259
  96. package/src/components/ui/collapsible.tsx +0 -135
  97. package/src/components/ui/color-picker.tsx +0 -97
  98. package/src/components/ui/command.tsx +0 -225
  99. package/src/components/ui/dialog.tsx +0 -334
  100. package/src/components/ui/dropdown-menu.tsx +0 -218
  101. package/src/components/ui/gesture-drawer.tsx +0 -11
  102. package/src/components/ui/hover-card.tsx +0 -29
  103. package/src/components/ui/index.ts +0 -190
  104. package/src/components/ui/input.tsx +0 -222
  105. package/src/components/ui/label.tsx +0 -29
  106. package/src/components/ui/lightbox.tsx +0 -606
  107. package/src/components/ui/magnetic-button.tsx +0 -129
  108. package/src/components/ui/media-gallery.tsx +0 -612
  109. package/src/components/ui/pagination.tsx +0 -123
  110. package/src/components/ui/popover.tsx +0 -185
  111. package/src/components/ui/progress.tsx +0 -30
  112. package/src/components/ui/radio-group.tsx +0 -257
  113. package/src/components/ui/scroll-area.tsx +0 -47
  114. package/src/components/ui/select.tsx +0 -374
  115. package/src/components/ui/separator.tsx +0 -145
  116. package/src/components/ui/sheet.tsx +0 -139
  117. package/src/components/ui/skeleton.tsx +0 -20
  118. package/src/components/ui/slider.tsx +0 -354
  119. package/src/components/ui/spotlight-card.tsx +0 -119
  120. package/src/components/ui/switch.tsx +0 -86
  121. package/src/components/ui/table.tsx +0 -329
  122. package/src/components/ui/tabs.tsx +0 -198
  123. package/src/components/ui/textarea.tsx +0 -28
  124. package/src/components/ui/toast.tsx +0 -317
  125. package/src/components/ui/toggle.tsx +0 -119
  126. package/src/components/ui/tooltip.tsx +0 -151
  127. package/src/components/virtual-list/index.tsx +0 -668
  128. package/src/hooks/use-chart.ts +0 -205
  129. package/src/hooks/use-data-table.ts +0 -182
  130. package/src/hooks/use-docs-pro-access.ts +0 -13
  131. package/src/hooks/use-license-check.ts +0 -65
  132. package/src/hooks/use-subscription.ts +0 -19
  133. package/src/hooks/use-toast.ts +0 -15
  134. package/src/index.ts +0 -14
  135. package/src/lib/ai-providers.ts +0 -377
  136. package/src/lib/component-metadata.ts +0 -18
  137. package/src/lib/micro-interactions.ts +0 -255
  138. package/src/lib/paddle.ts +0 -17
  139. package/src/lib/utils.ts +0 -6
  140. package/src/patterns/login-form/index.tsx +0 -276
  141. package/src/patterns/login-form/types.ts +0 -67
  142. package/src/setupTests.ts +0 -41
  143. package/src/styles/advanced-chart.css +0 -239
  144. package/src/styles/calendar.css +0 -35
  145. package/src/styles/design-system.css +0 -363
  146. package/src/styles/index.css +0 -85
  147. package/src/styles/tailwind.css +0 -7
  148. package/src/styles/tokens.css +0 -455
  149. package/src/types/moonui.d.ts +0 -22
  150. package/src/types/next-auth.d.ts +0 -21
  151. package/src/use-intersection-observer.tsx +0 -154
  152. package/src/use-local-storage.tsx +0 -71
  153. package/src/use-paddle.ts +0 -138
  154. package/src/use-performance-optimizer.ts +0 -389
  155. package/src/use-pro-access.ts +0 -141
  156. package/src/use-scroll-animation.ts +0 -219
  157. package/src/use-subscription.ts +0 -37
  158. package/src/use-toast.ts +0 -32
  159. package/src/utils/chart-helpers.ts +0 -357
  160. package/src/utils/cn.ts +0 -6
  161. package/src/utils/data-processing.ts +0 -151
  162. 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
- }