@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.
- package/package.json +8 -3
- package/plugin/index.d.ts +86 -0
- package/plugin/index.js +308 -0
- package/scripts/postinstall.js +176 -23
- package/src/components/advanced-chart/index.tsx +0 -1246
- package/src/components/advanced-forms/index.tsx +0 -585
- package/src/components/animated-button/index.tsx +0 -385
- package/src/components/calendar/event-dialog.tsx +0 -377
- package/src/components/calendar/index.tsx +0 -1220
- package/src/components/calendar-pro/index.tsx +0 -1697
- package/src/components/color-picker/index.tsx +0 -432
- package/src/components/credit-card-input/index.tsx +0 -406
- package/src/components/dashboard/dashboard-grid.tsx +0 -480
- package/src/components/dashboard/demo.tsx +0 -425
- package/src/components/dashboard/index.tsx +0 -1046
- package/src/components/dashboard/time-range-picker.tsx +0 -336
- package/src/components/dashboard/types.ts +0 -225
- package/src/components/dashboard/widgets/activity-feed.tsx +0 -349
- package/src/components/dashboard/widgets/chart-widget.tsx +0 -418
- package/src/components/dashboard/widgets/comparison-widget.tsx +0 -177
- package/src/components/dashboard/widgets/index.ts +0 -5
- package/src/components/dashboard/widgets/metric-card.tsx +0 -363
- package/src/components/dashboard/widgets/progress-widget.tsx +0 -113
- package/src/components/data-table/data-table-bulk-actions.tsx +0 -204
- package/src/components/data-table/data-table-column-toggle.tsx +0 -169
- package/src/components/data-table/data-table-export.ts +0 -156
- package/src/components/data-table/data-table-filter-drawer.tsx +0 -448
- package/src/components/data-table/index.tsx +0 -845
- package/src/components/draggable-list/index.tsx +0 -100
- package/src/components/error-boundary/index.tsx +0 -232
- package/src/components/file-upload/index.tsx +0 -1660
- package/src/components/floating-action-button/index.tsx +0 -206
- package/src/components/form-wizard/form-wizard-context.tsx +0 -335
- package/src/components/form-wizard/form-wizard-navigation.tsx +0 -118
- package/src/components/form-wizard/form-wizard-progress.tsx +0 -329
- package/src/components/form-wizard/form-wizard-step.tsx +0 -111
- package/src/components/form-wizard/index.tsx +0 -102
- package/src/components/form-wizard/types.ts +0 -77
- package/src/components/gesture-drawer/index.tsx +0 -551
- package/src/components/github-stars/github-api.ts +0 -426
- package/src/components/github-stars/hooks.ts +0 -517
- package/src/components/github-stars/index.tsx +0 -375
- package/src/components/github-stars/types.ts +0 -148
- package/src/components/github-stars/variants.tsx +0 -515
- package/src/components/health-check/index.tsx +0 -439
- package/src/components/hover-card-3d/index.tsx +0 -529
- package/src/components/index.ts +0 -130
- package/src/components/internal/index.ts +0 -78
- package/src/components/kanban/add-card-modal.tsx +0 -502
- package/src/components/kanban/card-detail-modal.tsx +0 -761
- package/src/components/kanban/index.ts +0 -13
- package/src/components/kanban/kanban.tsx +0 -1689
- package/src/components/kanban/types.ts +0 -168
- package/src/components/lazy-component/index.tsx +0 -823
- package/src/components/license-error/index.tsx +0 -31
- package/src/components/magnetic-button/index.tsx +0 -216
- package/src/components/memory-efficient-data/index.tsx +0 -1018
- package/src/components/moonui-quiz-form/index.tsx +0 -817
- package/src/components/navbar/index.tsx +0 -781
- package/src/components/optimized-image/index.tsx +0 -425
- package/src/components/performance-debugger/index.tsx +0 -613
- package/src/components/performance-monitor/index.tsx +0 -808
- package/src/components/phone-number-input/index.tsx +0 -343
- package/src/components/phone-number-input/phone-number-input-simple.tsx +0 -167
- package/src/components/pinch-zoom/index.tsx +0 -566
- package/src/components/quiz-form/index.tsx +0 -479
- package/src/components/rich-text-editor/index.tsx +0 -2322
- package/src/components/rich-text-editor/slash-commands-extension.ts +0 -230
- package/src/components/rich-text-editor/slash-commands.css +0 -35
- package/src/components/rich-text-editor/table-styles.css +0 -65
- package/src/components/sidebar/index.tsx +0 -884
- package/src/components/spotlight-card/index.tsx +0 -191
- package/src/components/swipeable-card/index.tsx +0 -100
- package/src/components/timeline/index.tsx +0 -1183
- package/src/components/ui/accordion.tsx +0 -581
- package/src/components/ui/alert-dialog.tsx +0 -141
- package/src/components/ui/alert.tsx +0 -141
- package/src/components/ui/aspect-ratio.tsx +0 -245
- package/src/components/ui/avatar.tsx +0 -155
- package/src/components/ui/badge.tsx +0 -230
- package/src/components/ui/breadcrumb.tsx +0 -216
- package/src/components/ui/button.tsx +0 -228
- package/src/components/ui/calendar.tsx +0 -387
- package/src/components/ui/card.tsx +0 -216
- package/src/components/ui/checkbox.tsx +0 -259
- package/src/components/ui/collapsible.tsx +0 -631
- package/src/components/ui/color-picker.tsx +0 -97
- package/src/components/ui/command.tsx +0 -948
- package/src/components/ui/dialog.tsx +0 -752
- package/src/components/ui/dropdown-menu.tsx +0 -706
- package/src/components/ui/gesture-drawer.tsx +0 -11
- package/src/components/ui/hover-card.tsx +0 -29
- package/src/components/ui/index.ts +0 -222
- package/src/components/ui/input.tsx +0 -224
- package/src/components/ui/label.tsx +0 -29
- package/src/components/ui/lightbox.tsx +0 -606
- package/src/components/ui/magnetic-button.tsx +0 -129
- package/src/components/ui/media-gallery.tsx +0 -611
- package/src/components/ui/navigation-menu.tsx +0 -130
- package/src/components/ui/pagination.tsx +0 -125
- package/src/components/ui/popover.tsx +0 -185
- package/src/components/ui/progress.tsx +0 -30
- package/src/components/ui/radio-group.tsx +0 -257
- package/src/components/ui/scroll-area.tsx +0 -47
- package/src/components/ui/select.tsx +0 -378
- package/src/components/ui/separator.tsx +0 -145
- package/src/components/ui/sheet.tsx +0 -139
- package/src/components/ui/skeleton.tsx +0 -20
- package/src/components/ui/slider.tsx +0 -354
- package/src/components/ui/spotlight-card.tsx +0 -119
- package/src/components/ui/switch.tsx +0 -86
- package/src/components/ui/table.tsx +0 -331
- package/src/components/ui/tabs-pro.tsx +0 -542
- package/src/components/ui/tabs.tsx +0 -54
- package/src/components/ui/textarea.tsx +0 -28
- package/src/components/ui/toast.tsx +0 -317
- package/src/components/ui/toggle.tsx +0 -119
- package/src/components/ui/tooltip.tsx +0 -151
- package/src/components/virtual-list/index.tsx +0 -668
- package/src/hooks/use-chart.ts +0 -205
- package/src/hooks/use-data-table.ts +0 -182
- package/src/hooks/use-docs-pro-access.ts +0 -13
- package/src/hooks/use-license-check.ts +0 -65
- package/src/hooks/use-subscription.ts +0 -19
- package/src/hooks/use-toast.ts +0 -15
- package/src/index.ts +0 -22
- package/src/lib/ai-providers.ts +0 -377
- package/src/lib/component-metadata.ts +0 -18
- package/src/lib/micro-interactions.ts +0 -255
- package/src/lib/paddle.ts +0 -17
- package/src/lib/utils.ts +0 -6
- package/src/patterns/login-form/index.tsx +0 -276
- package/src/patterns/login-form/types.ts +0 -67
- package/src/setupTests.ts +0 -41
- package/src/styles/advanced-chart.css +0 -239
- package/src/styles/calendar.css +0 -35
- package/src/styles/design-system.css +0 -363
- package/src/styles/index.css +0 -681
- package/src/styles/tailwind.css +0 -7
- package/src/styles/tokens.css +0 -455
- package/src/types/next-auth.d.ts +0 -21
- package/src/use-intersection-observer.tsx +0 -154
- package/src/use-local-storage.tsx +0 -71
- package/src/use-paddle.ts +0 -138
- package/src/use-performance-optimizer.ts +0 -389
- package/src/use-pro-access.ts +0 -141
- package/src/use-scroll-animation.ts +0 -219
- package/src/use-subscription.ts +0 -37
- package/src/use-toast.ts +0 -32
- package/src/utils/chart-helpers.ts +0 -357
- package/src/utils/cn.ts +0 -6
- package/src/utils/data-processing.ts +0 -151
- package/src/utils/license-validator.tsx +0 -183
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu"
|
|
5
|
-
import { cva } from "class-variance-authority"
|
|
6
|
-
import { ChevronDown } from "lucide-react"
|
|
7
|
-
|
|
8
|
-
import { cn } from "../../lib/utils"
|
|
9
|
-
|
|
10
|
-
const NavigationMenu = React.forwardRef<
|
|
11
|
-
React.ElementRef<typeof NavigationMenuPrimitive.Root>,
|
|
12
|
-
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>
|
|
13
|
-
>(({ className, children, ...props }, ref) => (
|
|
14
|
-
<NavigationMenuPrimitive.Root
|
|
15
|
-
ref={ref}
|
|
16
|
-
className={cn(
|
|
17
|
-
"relative z-10 flex max-w-max flex-1 items-center justify-center",
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
{...props}
|
|
21
|
-
>
|
|
22
|
-
{children}
|
|
23
|
-
<NavigationMenuViewport />
|
|
24
|
-
</NavigationMenuPrimitive.Root>
|
|
25
|
-
))
|
|
26
|
-
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName
|
|
27
|
-
|
|
28
|
-
const NavigationMenuList = React.forwardRef<
|
|
29
|
-
React.ElementRef<typeof NavigationMenuPrimitive.List>,
|
|
30
|
-
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>
|
|
31
|
-
>(({ className, ...props }, ref) => (
|
|
32
|
-
<NavigationMenuPrimitive.List
|
|
33
|
-
ref={ref}
|
|
34
|
-
className={cn(
|
|
35
|
-
"group flex flex-1 list-none items-center justify-center space-x-1",
|
|
36
|
-
className
|
|
37
|
-
)}
|
|
38
|
-
{...props}
|
|
39
|
-
/>
|
|
40
|
-
))
|
|
41
|
-
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName
|
|
42
|
-
|
|
43
|
-
const NavigationMenuItem = NavigationMenuPrimitive.Item
|
|
44
|
-
|
|
45
|
-
const navigationMenuTriggerStyle = cva(
|
|
46
|
-
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
47
|
-
)
|
|
48
|
-
|
|
49
|
-
const NavigationMenuTrigger = React.forwardRef<
|
|
50
|
-
React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,
|
|
51
|
-
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>
|
|
52
|
-
>(({ className, children, ...props }, ref) => (
|
|
53
|
-
<NavigationMenuPrimitive.Trigger
|
|
54
|
-
ref={ref}
|
|
55
|
-
className={cn(navigationMenuTriggerStyle(), "group", className)}
|
|
56
|
-
{...props}
|
|
57
|
-
>
|
|
58
|
-
{children}{" "}
|
|
59
|
-
<ChevronDown
|
|
60
|
-
className="relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180"
|
|
61
|
-
aria-hidden="true"
|
|
62
|
-
/>
|
|
63
|
-
</NavigationMenuPrimitive.Trigger>
|
|
64
|
-
))
|
|
65
|
-
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName
|
|
66
|
-
|
|
67
|
-
const NavigationMenuContent = React.forwardRef<
|
|
68
|
-
React.ElementRef<typeof NavigationMenuPrimitive.Content>,
|
|
69
|
-
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>
|
|
70
|
-
>(({ className, ...props }, ref) => (
|
|
71
|
-
<NavigationMenuPrimitive.Content
|
|
72
|
-
ref={ref}
|
|
73
|
-
className={cn(
|
|
74
|
-
"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",
|
|
75
|
-
className
|
|
76
|
-
)}
|
|
77
|
-
{...props}
|
|
78
|
-
/>
|
|
79
|
-
))
|
|
80
|
-
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName
|
|
81
|
-
|
|
82
|
-
const NavigationMenuLink = NavigationMenuPrimitive.Link
|
|
83
|
-
|
|
84
|
-
const NavigationMenuViewport = React.forwardRef<
|
|
85
|
-
React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,
|
|
86
|
-
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>
|
|
87
|
-
>(({ className, ...props }, ref) => (
|
|
88
|
-
<div className={cn("absolute left-0 top-full flex justify-center")}>
|
|
89
|
-
<NavigationMenuPrimitive.Viewport
|
|
90
|
-
className={cn(
|
|
91
|
-
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
92
|
-
className
|
|
93
|
-
)}
|
|
94
|
-
ref={ref}
|
|
95
|
-
{...props}
|
|
96
|
-
/>
|
|
97
|
-
</div>
|
|
98
|
-
))
|
|
99
|
-
NavigationMenuViewport.displayName =
|
|
100
|
-
NavigationMenuPrimitive.Viewport.displayName
|
|
101
|
-
|
|
102
|
-
const NavigationMenuIndicator = React.forwardRef<
|
|
103
|
-
React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,
|
|
104
|
-
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>
|
|
105
|
-
>(({ className, ...props }, ref) => (
|
|
106
|
-
<NavigationMenuPrimitive.Indicator
|
|
107
|
-
ref={ref}
|
|
108
|
-
className={cn(
|
|
109
|
-
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
|
|
110
|
-
className
|
|
111
|
-
)}
|
|
112
|
-
{...props}
|
|
113
|
-
>
|
|
114
|
-
<div className="relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" />
|
|
115
|
-
</NavigationMenuPrimitive.Indicator>
|
|
116
|
-
))
|
|
117
|
-
NavigationMenuIndicator.displayName =
|
|
118
|
-
NavigationMenuPrimitive.Indicator.displayName
|
|
119
|
-
|
|
120
|
-
export {
|
|
121
|
-
navigationMenuTriggerStyle,
|
|
122
|
-
NavigationMenu,
|
|
123
|
-
NavigationMenuList,
|
|
124
|
-
NavigationMenuItem,
|
|
125
|
-
NavigationMenuContent,
|
|
126
|
-
NavigationMenuTrigger,
|
|
127
|
-
NavigationMenuLink,
|
|
128
|
-
NavigationMenuIndicator,
|
|
129
|
-
NavigationMenuViewport,
|
|
130
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"
|
|
5
|
-
import { cn } from "../../lib/utils"
|
|
6
|
-
import { moonUIButtonProVariants } from "./button"
|
|
7
|
-
import type { ButtonProps } from "./button"
|
|
8
|
-
|
|
9
|
-
const MoonUIPaginationPro = ({ className, ...props }: React.ComponentProps<"nav">) => (
|
|
10
|
-
<nav
|
|
11
|
-
role="navigation"
|
|
12
|
-
aria-label="pagination"
|
|
13
|
-
className={cn("mx-auto flex w-full justify-center", className)}
|
|
14
|
-
{...props}
|
|
15
|
-
/>
|
|
16
|
-
)
|
|
17
|
-
MoonUIPaginationPro.displayName = "PaginationPro"
|
|
18
|
-
|
|
19
|
-
const MoonUIPaginationContentPro = React.forwardRef<
|
|
20
|
-
HTMLUListElement,
|
|
21
|
-
React.ComponentProps<"ul">
|
|
22
|
-
>(({ className, ...props }, ref) => (
|
|
23
|
-
<ul
|
|
24
|
-
ref={ref}
|
|
25
|
-
className={cn("flex flex-row items-center gap-1", className)}
|
|
26
|
-
{...props}
|
|
27
|
-
/>
|
|
28
|
-
))
|
|
29
|
-
MoonUIPaginationContentPro.displayName = "PaginationContentPro"
|
|
30
|
-
|
|
31
|
-
const MoonUIPaginationItemPro = React.forwardRef<
|
|
32
|
-
HTMLLIElement,
|
|
33
|
-
React.ComponentProps<"li">
|
|
34
|
-
>(({ className, ...props }, ref) => (
|
|
35
|
-
<li ref={ref} className={cn("", className)} {...props} />
|
|
36
|
-
))
|
|
37
|
-
MoonUIPaginationItemPro.displayName = "PaginationItemPro"
|
|
38
|
-
|
|
39
|
-
type PaginationLinkProps = {
|
|
40
|
-
isActive?: boolean
|
|
41
|
-
} & Pick<ButtonProps, "size"> &
|
|
42
|
-
React.ComponentProps<"a">
|
|
43
|
-
|
|
44
|
-
const MoonUIPaginationLinkPro = ({
|
|
45
|
-
className,
|
|
46
|
-
isActive,
|
|
47
|
-
size = "icon",
|
|
48
|
-
...props
|
|
49
|
-
}: PaginationLinkProps) => (
|
|
50
|
-
<a
|
|
51
|
-
aria-current={isActive ? "page" : undefined}
|
|
52
|
-
className={cn(
|
|
53
|
-
moonUIButtonProVariants({
|
|
54
|
-
variant: isActive ? "outline" : "ghost",
|
|
55
|
-
size,
|
|
56
|
-
}),
|
|
57
|
-
className
|
|
58
|
-
)}
|
|
59
|
-
{...props}
|
|
60
|
-
/>
|
|
61
|
-
)
|
|
62
|
-
MoonUIPaginationLinkPro.displayName = "PaginationLinkPro"
|
|
63
|
-
|
|
64
|
-
const MoonUIPaginationPreviousPro = ({
|
|
65
|
-
className,
|
|
66
|
-
...props
|
|
67
|
-
}: React.ComponentProps<typeof MoonUIPaginationLinkPro>) => (
|
|
68
|
-
<MoonUIPaginationLinkPro
|
|
69
|
-
aria-label="Go to previous page"
|
|
70
|
-
size="md"
|
|
71
|
-
className={cn("gap-1 pl-2.5", className)}
|
|
72
|
-
{...props}
|
|
73
|
-
>
|
|
74
|
-
<ChevronLeft className="h-4 w-4" />
|
|
75
|
-
<span>Previous</span>
|
|
76
|
-
</MoonUIPaginationLinkPro>
|
|
77
|
-
)
|
|
78
|
-
MoonUIPaginationPreviousPro.displayName = "PaginationPreviousPro"
|
|
79
|
-
|
|
80
|
-
const MoonUIPaginationNextPro = ({
|
|
81
|
-
className,
|
|
82
|
-
...props
|
|
83
|
-
}: React.ComponentProps<typeof MoonUIPaginationLinkPro>) => (
|
|
84
|
-
<MoonUIPaginationLinkPro
|
|
85
|
-
aria-label="Go to next page"
|
|
86
|
-
size="md"
|
|
87
|
-
className={cn("gap-1 pr-2.5", className)}
|
|
88
|
-
{...props}
|
|
89
|
-
>
|
|
90
|
-
<span>Next</span>
|
|
91
|
-
<ChevronRight className="h-4 w-4" />
|
|
92
|
-
</MoonUIPaginationLinkPro>
|
|
93
|
-
)
|
|
94
|
-
MoonUIPaginationNextPro.displayName = "PaginationNextPro"
|
|
95
|
-
|
|
96
|
-
const MoonUIPaginationEllipsisPro = ({
|
|
97
|
-
className,
|
|
98
|
-
...props
|
|
99
|
-
}: React.ComponentProps<"span">) => (
|
|
100
|
-
<span
|
|
101
|
-
aria-hidden
|
|
102
|
-
className={cn("flex h-9 w-9 items-center justify-center", className)}
|
|
103
|
-
{...props}
|
|
104
|
-
>
|
|
105
|
-
<MoreHorizontal className="h-4 w-4" />
|
|
106
|
-
<span className="sr-only">More pages</span>
|
|
107
|
-
</span>
|
|
108
|
-
)
|
|
109
|
-
MoonUIPaginationEllipsisPro.displayName = "PaginationEllipsisPro"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
// Internal aliases for Pro component usage
|
|
113
|
-
export const PaginationInternal = MoonUIPaginationPro
|
|
114
|
-
export const PaginationContentInternal = MoonUIPaginationContentPro
|
|
115
|
-
export const PaginationItemInternal = MoonUIPaginationItemPro
|
|
116
|
-
export const PaginationLinkInternal = MoonUIPaginationLinkPro
|
|
117
|
-
export const PaginationPreviousInternal = MoonUIPaginationPreviousPro
|
|
118
|
-
export const PaginationNextInternal = MoonUIPaginationNextPro
|
|
119
|
-
export const PaginationEllipsisInternal = MoonUIPaginationEllipsisPro
|
|
120
|
-
|
|
121
|
-
// Pro exports
|
|
122
|
-
export { MoonUIPaginationPro, MoonUIPaginationContentPro, MoonUIPaginationItemPro, MoonUIPaginationLinkPro, MoonUIPaginationPreviousPro, MoonUIPaginationNextPro, MoonUIPaginationEllipsisPro }
|
|
123
|
-
|
|
124
|
-
// Clean exports (without MoonUI prefix for easier usage)
|
|
125
|
-
export { MoonUIPaginationPro as Pagination, MoonUIPaginationContentPro as PaginationContent, MoonUIPaginationItemPro as PaginationItem, MoonUIPaginationLinkPro as PaginationLink, MoonUIPaginationPreviousPro as PaginationPrevious, MoonUIPaginationNextPro as PaginationNext, MoonUIPaginationEllipsisPro as PaginationEllipsis }
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
5
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
6
|
-
|
|
7
|
-
import { cn } from "../../lib/utils";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Popover Bileşeni
|
|
11
|
-
*
|
|
12
|
-
* Tıklanabilir bir öğeden açılan, tema sistemiyle tam entegre bir içerik bileşeni.
|
|
13
|
-
* Filtreler, ayarlar ve diğer içerikler için kullanışlı ve erişilebilir bir arayüz sağlar.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
const popoverContentVariants = cva(
|
|
17
|
-
"z-50 w-72 rounded-md border border-border bg-background p-4 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
18
|
-
{
|
|
19
|
-
variants: {
|
|
20
|
-
variant: {
|
|
21
|
-
default: "",
|
|
22
|
-
destructive: "border-destructive bg-destructive/5",
|
|
23
|
-
outline: "border-border bg-transparent",
|
|
24
|
-
subtle: "border-transparent bg-muted/50",
|
|
25
|
-
},
|
|
26
|
-
size: {
|
|
27
|
-
sm: "w-48 p-3",
|
|
28
|
-
default: "w-72 p-4",
|
|
29
|
-
lg: "w-96 p-5",
|
|
30
|
-
},
|
|
31
|
-
side: {
|
|
32
|
-
top: "data-[side=top]:slide-in-from-bottom-2",
|
|
33
|
-
right: "data-[side=right]:slide-in-from-left-2",
|
|
34
|
-
bottom: "data-[side=bottom]:slide-in-from-top-2",
|
|
35
|
-
left: "data-[side=left]:slide-in-from-right-2",
|
|
36
|
-
},
|
|
37
|
-
position: {
|
|
38
|
-
pointerEventsNone: "pointer-events-none",
|
|
39
|
-
default: "",
|
|
40
|
-
},
|
|
41
|
-
radius: {
|
|
42
|
-
none: "rounded-none",
|
|
43
|
-
sm: "rounded-sm",
|
|
44
|
-
default: "rounded-md",
|
|
45
|
-
lg: "rounded-lg",
|
|
46
|
-
full: "rounded-full",
|
|
47
|
-
},
|
|
48
|
-
shadow: {
|
|
49
|
-
none: "shadow-none",
|
|
50
|
-
sm: "shadow-sm",
|
|
51
|
-
default: "shadow-md",
|
|
52
|
-
md: "shadow-md",
|
|
53
|
-
lg: "shadow-lg",
|
|
54
|
-
xl: "shadow-xl",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
defaultVariants: {
|
|
58
|
-
variant: "default",
|
|
59
|
-
size: "default",
|
|
60
|
-
radius: "default",
|
|
61
|
-
shadow: "default",
|
|
62
|
-
},
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
const MoonUIPopoverPro = PopoverPrimitive.Root;
|
|
67
|
-
const MoonUIPopoverTriggerPro = PopoverPrimitive.Trigger;
|
|
68
|
-
const MoonUIPopoverAnchorPro = PopoverPrimitive.Anchor;
|
|
69
|
-
|
|
70
|
-
export interface MoonUIPopoverContentProProps
|
|
71
|
-
extends Omit<React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, 'side'>,
|
|
72
|
-
VariantProps<typeof popoverContentVariants> {
|
|
73
|
-
/**
|
|
74
|
-
* Popover'ın arka plan bulanıklığı etkin mi
|
|
75
|
-
*/
|
|
76
|
-
backdrop?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Popover'a tıklandığında kapanıp kapanmayacağı
|
|
79
|
-
*/
|
|
80
|
-
closeOnInteractOutside?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Popover açıkken arka planın karartılması
|
|
83
|
-
*/
|
|
84
|
-
overlayBackdrop?: boolean;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
const MoonUIPopoverContentPro = React.forwardRef<
|
|
88
|
-
React.ElementRef<typeof PopoverPrimitive.Content>,
|
|
89
|
-
MoonUIPopoverContentProProps
|
|
90
|
-
>(({
|
|
91
|
-
className,
|
|
92
|
-
variant,
|
|
93
|
-
size,
|
|
94
|
-
side,
|
|
95
|
-
position,
|
|
96
|
-
radius,
|
|
97
|
-
shadow,
|
|
98
|
-
backdrop = false,
|
|
99
|
-
closeOnInteractOutside = true,
|
|
100
|
-
overlayBackdrop = false,
|
|
101
|
-
sideOffset = 4,
|
|
102
|
-
...props
|
|
103
|
-
}, ref) => (
|
|
104
|
-
<>
|
|
105
|
-
{overlayBackdrop && (
|
|
106
|
-
<div className="fixed inset-0 z-40 bg-overlay opacity-30" />
|
|
107
|
-
)}
|
|
108
|
-
<PopoverPrimitive.Content
|
|
109
|
-
ref={ref}
|
|
110
|
-
sideOffset={sideOffset}
|
|
111
|
-
collisionPadding={8}
|
|
112
|
-
onInteractOutside={(e) => {
|
|
113
|
-
if (!closeOnInteractOutside) {
|
|
114
|
-
e.preventDefault();
|
|
115
|
-
}
|
|
116
|
-
}}
|
|
117
|
-
className={cn(
|
|
118
|
-
popoverContentVariants({
|
|
119
|
-
variant,
|
|
120
|
-
size,
|
|
121
|
-
side,
|
|
122
|
-
position,
|
|
123
|
-
radius,
|
|
124
|
-
shadow
|
|
125
|
-
}),
|
|
126
|
-
backdrop && "backdrop-blur-md bg-opacity-80",
|
|
127
|
-
className
|
|
128
|
-
)}
|
|
129
|
-
{...props}
|
|
130
|
-
/>
|
|
131
|
-
</>
|
|
132
|
-
));
|
|
133
|
-
MoonUIPopoverContentPro.displayName = PopoverPrimitive.Content.displayName;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* PopoverClose bileşeni
|
|
137
|
-
*/
|
|
138
|
-
const MoonUIPopoverClosePro = PopoverPrimitive.Close;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Popover için bölüm ayırıcı
|
|
142
|
-
*/
|
|
143
|
-
const MoonUIPopoverSeparatorPro = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
|
|
144
|
-
<div
|
|
145
|
-
className={cn("my-2 h-px bg-border", className)}
|
|
146
|
-
{...props}
|
|
147
|
-
/>
|
|
148
|
-
);
|
|
149
|
-
MoonUIPopoverSeparatorPro.displayName = "PopoverSeparator";
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Popover başlık bileşeni
|
|
153
|
-
*/
|
|
154
|
-
const MoonUIPopoverHeaderPro = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
|
|
155
|
-
<div
|
|
156
|
-
className={cn("-mx-4 -mt-4 mb-3 px-4 pt-4 pb-3 border-b border-border", className)}
|
|
157
|
-
{...props}
|
|
158
|
-
/>
|
|
159
|
-
);
|
|
160
|
-
MoonUIPopoverHeaderPro.displayName = "PopoverHeader";
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Popover footer bileşeni
|
|
164
|
-
*/
|
|
165
|
-
const MoonUIPopoverFooterPro = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
|
|
166
|
-
<div
|
|
167
|
-
className={cn("-mx-4 -mb-4 mt-3 px-4 pt-3 pb-4 border-t border-border", className)}
|
|
168
|
-
{...props}
|
|
169
|
-
/>
|
|
170
|
-
);
|
|
171
|
-
MoonUIPopoverFooterPro.displayName = "PopoverFooter";
|
|
172
|
-
|
|
173
|
-
export { MoonUIPopoverPro,
|
|
174
|
-
MoonUIPopoverTriggerPro,
|
|
175
|
-
MoonUIPopoverContentPro,
|
|
176
|
-
MoonUIPopoverAnchorPro,
|
|
177
|
-
MoonUIPopoverClosePro,
|
|
178
|
-
MoonUIPopoverSeparatorPro,
|
|
179
|
-
MoonUIPopoverHeaderPro,
|
|
180
|
-
MoonUIPopoverFooterPro,
|
|
181
|
-
popoverContentVariants,
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
// Backward compatibility exports
|
|
185
|
-
export { MoonUIPopoverPro as Popover, MoonUIPopoverSeparatorPro as PopoverSeparator, MoonUIPopoverTriggerPro as PopoverTrigger, MoonUIPopoverContentPro as PopoverContent, MoonUIPopoverAnchorPro as PopoverAnchor, MoonUIPopoverClosePro as PopoverClose, MoonUIPopoverHeaderPro as PopoverHeader, MoonUIPopoverFooterPro as PopoverFooter };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as ProgressPrimitive from "@radix-ui/react-progress"
|
|
5
|
-
import { cn } from "../../lib/utils"
|
|
6
|
-
|
|
7
|
-
const MoonUIProgressPro = React.forwardRef<
|
|
8
|
-
React.ElementRef<typeof ProgressPrimitive.Root>,
|
|
9
|
-
React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>
|
|
10
|
-
>(({ className, value, ...props }, ref) => (
|
|
11
|
-
<ProgressPrimitive.Root
|
|
12
|
-
ref={ref}
|
|
13
|
-
className={cn(
|
|
14
|
-
"relative h-4 w-full overflow-hidden rounded-full bg-secondary",
|
|
15
|
-
className
|
|
16
|
-
)}
|
|
17
|
-
{...props}
|
|
18
|
-
>
|
|
19
|
-
<ProgressPrimitive.Indicator
|
|
20
|
-
className="h-full w-full flex-1 bg-primary transition-all"
|
|
21
|
-
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
|
|
22
|
-
/>
|
|
23
|
-
</ProgressPrimitive.Root>
|
|
24
|
-
))
|
|
25
|
-
MoonUIProgressPro.displayName = ProgressPrimitive.Root.displayName
|
|
26
|
-
|
|
27
|
-
export { MoonUIProgressPro };
|
|
28
|
-
|
|
29
|
-
// Backward compatibility exports
|
|
30
|
-
export { MoonUIProgressPro as Progress }
|