@moontra/moonui-pro 2.20.2 → 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 (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 +176 -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,259 +0,0 @@
1
- "use client";
2
-
3
- import * as React from "react";
4
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
5
- import { Check, Minus } from "lucide-react";
6
- import { cva, type VariantProps } from "class-variance-authority";
7
-
8
- import { cn } from "../../lib/utils";
9
-
10
- /**
11
- * Checkbox Bileşeni
12
- *
13
- * Erişilebilir, özelleştirilebilir ve tema sistemiyle tam entegre checkbox bileşeni.
14
- * Form elemanları ve seçim listeleri için kullanılır.
15
- */
16
-
17
- const moonUICheckboxVariantsPro = cva(
18
- "peer shrink-0 border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary-foreground",
19
- {
20
- variants: {
21
- variant: {
22
- default: "border-border bg-background data-[state=checked]:bg-primary data-[state=checked]:border-primary",
23
- outline: "border-border bg-transparent data-[state=checked]:bg-primary data-[state=checked]:border-primary",
24
- muted: "border-border bg-accent data-[state=checked]:bg-primary data-[state=checked]:border-primary",
25
- ghost: "border-transparent bg-transparent hover:bg-accent data-[state=checked]:bg-primary data-[state=checked]:border-primary",
26
- },
27
- size: {
28
- sm: "h-3.5 w-3.5",
29
- default: "h-4 w-4",
30
- md: "h-5 w-5",
31
- lg: "h-6 w-6",
32
- },
33
- radius: {
34
- none: "rounded-none",
35
- sm: "rounded-sm",
36
- default: "rounded-sm",
37
- md: "rounded-md",
38
- full: "rounded-full",
39
- },
40
- animation: {
41
- none: "",
42
- subtle: "transition-all duration-200",
43
- default: "transition-all duration-200",
44
- bounce: "transition-all duration-200",
45
- },
46
- },
47
- defaultVariants: {
48
- variant: "default",
49
- size: "default",
50
- radius: "default",
51
- animation: "default",
52
- },
53
- }
54
- );
55
-
56
- export interface MoonUICheckboxProProps
57
- extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>,
58
- VariantProps<typeof moonUICheckboxVariantsPro> {
59
- /**
60
- * İndeterminate durumu - grup seçimlerinde bazı öğeler seçilmişse kullanılır
61
- */
62
- indeterminate?: boolean;
63
- /**
64
- * Özel ikon komponenti
65
- */
66
- icon?: React.ReactNode;
67
- }
68
-
69
- const MoonUICheckboxPro = React.forwardRef<
70
- React.ElementRef<typeof CheckboxPrimitive.Root>,
71
- MoonUICheckboxProProps
72
- >(({
73
- className,
74
- variant,
75
- size,
76
- radius,
77
- animation,
78
- indeterminate = false,
79
- icon,
80
- checked,
81
- ...props
82
- }, ref) => {
83
- // Indeterminate state yönetimi
84
- const [isIndeterminate, setIsIndeterminate] = React.useState(indeterminate);
85
-
86
- React.useEffect(() => {
87
- setIsIndeterminate(indeterminate);
88
- }, [indeterminate]);
89
-
90
- // Checked state override, indeterminate olduğunda
91
- const effectiveChecked = isIndeterminate ? false : checked;
92
-
93
- return (
94
- <CheckboxPrimitive.Root
95
- ref={ref}
96
- checked={effectiveChecked}
97
- className={cn(moonUICheckboxVariantsPro({ variant, size, radius, animation }), className)}
98
- {...props}
99
- >
100
- <CheckboxPrimitive.Indicator
101
- className={cn(
102
- "flex items-center justify-center text-current",
103
- animation === "bounce" && "data-[state=checked]:animate-bounce"
104
- )}
105
- >
106
- {isIndeterminate ? (
107
- <Minus className="h-[65%] w-[65%]" />
108
- ) : icon ? (
109
- icon
110
- ) : (
111
- <Check className="h-[65%] w-[65%]" />
112
- )}
113
- </CheckboxPrimitive.Indicator>
114
- </CheckboxPrimitive.Root>
115
- );
116
- });
117
- MoonUICheckboxPro.displayName = CheckboxPrimitive.Root.displayName;
118
-
119
- // CheckboxGroup bileşeni
120
- interface CheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
121
- /**
122
- * Grup içi yerleşim - dikey veya yatay
123
- */
124
- orientation?: "horizontal" | "vertical";
125
- /**
126
- * Öğeler arasındaki boşluk (piksel)
127
- */
128
- spacing?: number | string;
129
- /**
130
- * Alt bileşenler
131
- */
132
- children: React.ReactNode;
133
- }
134
-
135
- const MoonUICheckboxGroupPro = React.forwardRef<HTMLDivElement, CheckboxGroupProps>(
136
- ({ className, orientation = "vertical", spacing = "1rem", children, ...props }, ref) => {
137
- return (
138
- <div
139
- ref={ref}
140
- className={cn(
141
- "flex",
142
- orientation === "vertical" ? "flex-col" : "flex-row flex-wrap",
143
- className
144
- )}
145
- style={{ gap: spacing }}
146
- role="group"
147
- {...props}
148
- >
149
- {children}
150
- </div>
151
- );
152
- }
153
- );
154
- MoonUICheckboxGroupPro.displayName = "CheckboxGroup";
155
-
156
- // CheckboxLabel bileşeni
157
- interface CheckboxLabelProps extends React.HTMLAttributes<HTMLLabelElement> {
158
- /**
159
- * Checkbox bileşeni için HTML id
160
- */
161
- htmlFor?: string;
162
- /**
163
- * Label içeriği
164
- */
165
- children: React.ReactNode;
166
- /**
167
- * Checkbox öncesi veya sonrası
168
- */
169
- position?: "start" | "end";
170
- /**
171
- * Devre dışı durum stili
172
- */
173
- disabled?: boolean;
174
- }
175
-
176
- const MoonUICheckboxLabelPro = React.forwardRef<HTMLLabelElement, CheckboxLabelProps>(
177
- ({ className, htmlFor, children, position = "end", disabled = false, ...props }, ref) => {
178
- return (
179
- <label
180
- ref={ref}
181
- htmlFor={htmlFor}
182
- className={cn(
183
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
184
- position === "start" ? "mr-2" : "ml-2",
185
- disabled && "cursor-not-allowed opacity-70",
186
- className
187
- )}
188
- {...props}
189
- >
190
- {children}
191
- </label>
192
- );
193
- }
194
- );
195
- MoonUICheckboxLabelPro.displayName = "CheckboxLabel";
196
-
197
- // Checkbox ve Label içeren bileşen
198
- interface CheckboxWithLabelProps extends MoonUICheckboxProProps {
199
- /**
200
- * Label içeriği
201
- */
202
- label: React.ReactNode;
203
- /**
204
- * Label pozisyonu
205
- */
206
- labelPosition?: "start" | "end";
207
- /**
208
- * Label için HTML sınıfları
209
- */
210
- labelClassName?: string;
211
- }
212
-
213
- const MoonUICheckboxWithLabelPro = React.forwardRef<
214
- React.ElementRef<typeof CheckboxPrimitive.Root>,
215
- CheckboxWithLabelProps
216
- >(({
217
- id,
218
- label,
219
- labelPosition = "end",
220
- labelClassName,
221
- ...checkboxProps
222
- }, ref) => {
223
- const generatedId = React.useId();
224
- const checkboxId = id || generatedId;
225
-
226
- return (
227
- <div className="flex items-center">
228
- {labelPosition === "start" && (
229
- <MoonUICheckboxLabelPro
230
- htmlFor={checkboxId}
231
- position="start"
232
- disabled={checkboxProps.disabled}
233
- className={labelClassName}
234
- >
235
- {label}
236
- </MoonUICheckboxLabelPro>
237
- )}
238
-
239
- <MoonUICheckboxPro ref={ref} id={checkboxId} {...checkboxProps} />
240
-
241
- {labelPosition === "end" && (
242
- <MoonUICheckboxLabelPro
243
- htmlFor={checkboxId}
244
- position="end"
245
- disabled={checkboxProps.disabled}
246
- className={labelClassName}
247
- >
248
- {label}
249
- </MoonUICheckboxLabelPro>
250
- )}
251
- </div>
252
- );
253
- });
254
- MoonUICheckboxWithLabelPro.displayName = "CheckboxWithLabel";
255
-
256
- export { MoonUICheckboxPro, MoonUICheckboxGroupPro as CheckboxGroup, MoonUICheckboxLabelPro as CheckboxLabel, MoonUICheckboxWithLabelPro as CheckboxWithLabel };
257
-
258
- // Clean exports (only checkbox specific)
259
- export { MoonUICheckboxPro as Checkbox };