@moontra/moonui-pro 2.2.17 → 2.2.19

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/dist/index.mjs CHANGED
@@ -2703,19 +2703,20 @@ var moonUICardVariantsPro = cva(
2703
2703
  }
2704
2704
  );
2705
2705
  var MoonUICardPro = t.forwardRef(
2706
- ({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
2706
+ ({ className, variant, size, radius, interactive, microInteraction = "lift", asChild, ...props }, ref) => {
2707
2707
  if (interactive && microInteraction !== "none") {
2708
2708
  const interactionProps = {
2709
2709
  whileHover: microInteraction === "scale" ? hoverAnimations.scale : microInteraction === "glow" ? hoverAnimations.glow : hoverAnimations.lift,
2710
2710
  whileTap: tapAnimations.scale
2711
2711
  };
2712
+ const { onDrag, onDragStart, onDragEnd, ...divProps } = props;
2712
2713
  return /* @__PURE__ */ jsx(
2713
2714
  motion.div,
2714
2715
  {
2715
2716
  ref,
2716
2717
  className: cn(moonUICardVariantsPro({ variant, size, radius, interactive, className })),
2717
2718
  ...interactionProps,
2718
- ...props
2719
+ ...divProps
2719
2720
  }
2720
2721
  );
2721
2722
  }
@@ -2894,7 +2895,7 @@ var MoonUICheckboxWithLabelPro = t.forwardRef(({
2894
2895
  const checkboxId = id || generatedId;
2895
2896
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
2896
2897
  labelPosition === "start" && /* @__PURE__ */ jsx(
2897
- MoonUICheckboxLabel,
2898
+ MoonUICheckboxLabelPro,
2898
2899
  {
2899
2900
  htmlFor: checkboxId,
2900
2901
  position: "start",
@@ -2905,7 +2906,7 @@ var MoonUICheckboxWithLabelPro = t.forwardRef(({
2905
2906
  ),
2906
2907
  /* @__PURE__ */ jsx(MoonUICheckboxPro, { ref, id: checkboxId, ...checkboxProps }),
2907
2908
  labelPosition === "end" && /* @__PURE__ */ jsx(
2908
- MoonUICheckboxLabel,
2909
+ MoonUICheckboxLabelPro,
2909
2910
  {
2910
2911
  htmlFor: checkboxId,
2911
2912
  position: "end",
@@ -4252,7 +4253,7 @@ var MoonUICommandDialogPro = ({
4252
4253
  }) => {
4253
4254
  return /* @__PURE__ */ jsx(MoonUIDialogPro, { ...props, children: /* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "overflow-hidden p-0 shadow-lg", hideCloseButton: true, children: [
4254
4255
  /* @__PURE__ */ jsx(MoonUIDialogTitlePro, { className: "sr-only", children: "Command Menu" }),
4255
- /* @__PURE__ */ jsx(Command, { className: cn(
4256
+ /* @__PURE__ */ jsx(MoonUICommandPro, { className: cn(
4256
4257
  "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
4257
4258
  commandClassName
4258
4259
  ), children })
@@ -4656,7 +4657,7 @@ var MoonUIPaginationLinkPro = ({
4656
4657
  {
4657
4658
  "aria-current": isActive2 ? "page" : void 0,
4658
4659
  className: cn(
4659
- MoonUIbuttonVariantsPro({
4660
+ moonUIButtonProVariants({
4660
4661
  variant: isActive2 ? "outline" : "ghost",
4661
4662
  size
4662
4663
  }),
@@ -4670,10 +4671,10 @@ var MoonUIPaginationPreviousPro = ({
4670
4671
  className,
4671
4672
  ...props
4672
4673
  }) => /* @__PURE__ */ jsxs(
4673
- PaginationLink,
4674
+ MoonUIPaginationLinkPro,
4674
4675
  {
4675
4676
  "aria-label": "Go to previous page",
4676
- size: "default",
4677
+ size: "md",
4677
4678
  className: cn("gap-1 pl-2.5", className),
4678
4679
  ...props,
4679
4680
  children: [
@@ -4687,10 +4688,10 @@ var MoonUIPaginationNextPro = ({
4687
4688
  className,
4688
4689
  ...props
4689
4690
  }) => /* @__PURE__ */ jsxs(
4690
- PaginationLink,
4691
+ MoonUIPaginationLinkPro,
4691
4692
  {
4692
4693
  "aria-label": "Go to next page",
4693
- size: "default",
4694
+ size: "md",
4694
4695
  className: cn("gap-1 pr-2.5", className),
4695
4696
  ...props,
4696
4697
  children: [
@@ -5196,7 +5197,7 @@ var MoonUISelectContentPro = t.forwardRef(({ className, children, position = "it
5196
5197
  position,
5197
5198
  ...props,
5198
5199
  children: [
5199
- /* @__PURE__ */ jsx(MoonUISelectScrollUpButton, {}),
5200
+ /* @__PURE__ */ jsx(MoonUISelectScrollUpButtonPro, {}),
5200
5201
  /* @__PURE__ */ jsx(
5201
5202
  SelectPrimitive.Viewport,
5202
5203
  {
@@ -5207,7 +5208,7 @@ var MoonUISelectContentPro = t.forwardRef(({ className, children, position = "it
5207
5208
  children
5208
5209
  }
5209
5210
  ),
5210
- /* @__PURE__ */ jsx(MoonUISelectScrollDownButton, {})
5211
+ /* @__PURE__ */ jsx(MoonUISelectScrollDownButtonPro, {})
5211
5212
  ]
5212
5213
  }
5213
5214
  ) }));
@@ -5369,7 +5370,7 @@ var MoonUISeparatorPro = t.forwardRef(
5369
5370
  decorative,
5370
5371
  orientation,
5371
5372
  className: cn(
5372
- separatorVariants({ orientation, variant, size }),
5373
+ moonUISeparatorVariantsPro({ orientation, variant, size }),
5373
5374
  className
5374
5375
  ),
5375
5376
  ...props
@@ -5710,12 +5711,13 @@ var MoonUITablePro = t.forwardRef(({
5710
5711
  // getRowId,
5711
5712
  ...props
5712
5713
  }, ref) => {
5713
- t.Children.map(props.children, (child) => {
5714
+ const MoonUIstripedPro = variant === "striped";
5715
+ const MoonUIchildrenWithPropsPro = t.Children.map(props.children, (child) => {
5714
5716
  if (t.isValidElement(child)) {
5715
5717
  if (child.type === "tbody") {
5716
- child.props;
5718
+ const MoonUItbodyPropsPro = child.props;
5717
5719
  return t.cloneElement(child, {
5718
- className: cn(tbodyProps.className, striped && "even:[&>tr]:bg-muted/50")
5720
+ className: cn(MoonUItbodyPropsPro.className, MoonUIstripedPro && "even:[&>tr]:bg-muted/50")
5719
5721
  });
5720
5722
  }
5721
5723
  }
@@ -5733,7 +5735,7 @@ var MoonUITablePro = t.forwardRef(({
5733
5735
  className
5734
5736
  ),
5735
5737
  ...props,
5736
- children: childrenWithProps
5738
+ children: MoonUIchildrenWithPropsPro
5737
5739
  }
5738
5740
  )
5739
5741
  ] });
@@ -5742,14 +5744,14 @@ MoonUITablePro.displayName = "TablePro";
5742
5744
  var MoonUITableHeaderPro = t.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
5743
5745
  MoonUITableHeaderPro.displayName = "TableHeaderPro";
5744
5746
  var MoonUITableBodyPro = t.forwardRef(({ className, emptyContent, emptyMessage = "No data available", children, ...props }, ref) => {
5745
- t.Children.count(children) > 0;
5747
+ const MoonUIhasChildrenPro = t.Children.count(children) > 0;
5746
5748
  return /* @__PURE__ */ jsx(
5747
5749
  "tbody",
5748
5750
  {
5749
5751
  ref,
5750
5752
  className: cn("[&_tr:last-child]:border-0", className),
5751
5753
  ...props,
5752
- children: hasChildren ? children : /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 100, className: "h-24 text-center", children: emptyContent || /* @__PURE__ */ jsx("div", { className: "py-6 text-muted-foreground", children: /* @__PURE__ */ jsx("div", { className: "text-sm", children: emptyMessage }) }) }) })
5754
+ children: MoonUIhasChildrenPro ? children : /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 100, className: "h-24 text-center", children: emptyContent || /* @__PURE__ */ jsx("div", { className: "py-6 text-muted-foreground", children: /* @__PURE__ */ jsx("div", { className: "text-sm", children: emptyMessage }) }) }) })
5753
5755
  }
5754
5756
  );
5755
5757
  });
@@ -5777,6 +5779,65 @@ var MoonUITableRowPro = t.forwardRef(({ className, ...props }, ref) => /* @__PUR
5777
5779
  MoonUITableRowPro.displayName = "TableRowPro";
5778
5780
  var MoonUITableHeadPro = t.forwardRef(
5779
5781
  ({ className, sortable, sorted, onSort, children, ...props }, ref) => {
5782
+ const MoonUIrenderSortIconPro = () => {
5783
+ if (!sortable)
5784
+ return null;
5785
+ if (sorted === "asc") {
5786
+ return /* @__PURE__ */ jsx(
5787
+ "svg",
5788
+ {
5789
+ xmlns: "http://www.w3.org/2000/svg",
5790
+ className: "ml-1 h-4 w-4 inline-block",
5791
+ viewBox: "0 0 20 20",
5792
+ fill: "currentColor",
5793
+ children: /* @__PURE__ */ jsx(
5794
+ "path",
5795
+ {
5796
+ fillRule: "evenodd",
5797
+ d: "M14.707 10.293a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 111.414-1.414L9 12.586V5a1 1 0 012 0v7.586l2.293-2.293a1 1 0 011.414 0z",
5798
+ clipRule: "evenodd"
5799
+ }
5800
+ )
5801
+ }
5802
+ );
5803
+ }
5804
+ if (sorted === "desc") {
5805
+ return /* @__PURE__ */ jsx(
5806
+ "svg",
5807
+ {
5808
+ xmlns: "http://www.w3.org/2000/svg",
5809
+ className: "ml-1 h-4 w-4 inline-block",
5810
+ viewBox: "0 0 20 20",
5811
+ fill: "currentColor",
5812
+ children: /* @__PURE__ */ jsx(
5813
+ "path",
5814
+ {
5815
+ fillRule: "evenodd",
5816
+ d: "M5.293 9.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 7.414V15a1 1 0 11-2 0V7.414L6.707 9.707a1 1 0 01-1.414 0z",
5817
+ clipRule: "evenodd"
5818
+ }
5819
+ )
5820
+ }
5821
+ );
5822
+ }
5823
+ return /* @__PURE__ */ jsx(
5824
+ "svg",
5825
+ {
5826
+ xmlns: "http://www.w3.org/2000/svg",
5827
+ className: "ml-1 h-4 w-4 inline-block opacity-30",
5828
+ viewBox: "0 0 20 20",
5829
+ fill: "currentColor",
5830
+ children: /* @__PURE__ */ jsx(
5831
+ "path",
5832
+ {
5833
+ fillRule: "evenodd",
5834
+ d: "M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",
5835
+ clipRule: "evenodd"
5836
+ }
5837
+ )
5838
+ }
5839
+ );
5840
+ };
5780
5841
  return /* @__PURE__ */ jsx(
5781
5842
  "th",
5782
5843
  {
@@ -5790,7 +5851,7 @@ var MoonUITableHeadPro = t.forwardRef(
5790
5851
  ...props,
5791
5852
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
5792
5853
  children,
5793
- sortable && renderSortIcon()
5854
+ sortable && MoonUIrenderSortIconPro()
5794
5855
  ] })
5795
5856
  }
5796
5857
  );
@@ -6095,6 +6156,8 @@ var reducer = (state, action) => {
6095
6156
  ...state,
6096
6157
  toasts: state.toasts.filter((t2) => t2.id !== action.toastId)
6097
6158
  };
6159
+ default:
6160
+ return state;
6098
6161
  }
6099
6162
  };
6100
6163
  var listeners = [];
@@ -6321,7 +6384,6 @@ var MoonUISimpleTooltipPro = t.forwardRef(
6321
6384
  side = "top",
6322
6385
  align = "center",
6323
6386
  delayDuration = 400,
6324
- skipDelayDuration = 300,
6325
6387
  sideOffset = 4,
6326
6388
  showArrow = false,
6327
6389
  className,
@@ -6337,7 +6399,6 @@ var MoonUISimpleTooltipPro = t.forwardRef(
6337
6399
  defaultOpen,
6338
6400
  onOpenChange,
6339
6401
  delayDuration,
6340
- skipDelayDuration,
6341
6402
  children: [
6342
6403
  /* @__PURE__ */ jsx(MoonUITooltipTriggerPro, { asChild: true, children }),
6343
6404
  /* @__PURE__ */ jsx(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.2.17",
3
+ "version": "2.2.19",
4
4
  "description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { cva, type VariantProps } from "class-variance-authority";
3
- import { motion, type HTMLMotionProps } from "framer-motion";
3
+ import { motion } from "framer-motion";
4
4
  import { cn } from "../../lib/utils";
5
5
  import { microInteractionVariants, hoverAnimations, tapAnimations } from "../../lib/micro-interactions";
6
6
 
@@ -50,7 +50,7 @@ export interface MoonUICardProProps
50
50
  }
51
51
 
52
52
  const MoonUICardPro = React.forwardRef<HTMLDivElement, MoonUICardProProps>(
53
- ({ className, variant, size, radius, interactive, microInteraction = "lift", ...props }, ref) => {
53
+ ({ className, variant, size, radius, interactive, microInteraction = "lift", asChild, ...props }, ref) => {
54
54
  // Interactive özelliği varsa motion.div, yoksa normal div kullan
55
55
  if (interactive && microInteraction !== "none") {
56
56
  const interactionProps = {
@@ -60,12 +60,14 @@ const MoonUICardPro = React.forwardRef<HTMLDivElement, MoonUICardProProps>(
60
60
  whileTap: tapAnimations.scale,
61
61
  };
62
62
 
63
+ const { onDrag, onDragStart, onDragEnd, ...divProps } = props as any;
64
+
63
65
  return (
64
66
  <motion.div
65
67
  ref={ref}
66
68
  className={cn(moonUICardVariantsPro({ variant, size, radius, interactive, className }))}
67
69
  {...interactionProps}
68
- {...props}
70
+ {...divProps}
69
71
  />
70
72
  );
71
73
  }
@@ -226,27 +226,27 @@ const MoonUICheckboxWithLabelPro = React.forwardRef<
226
226
  return (
227
227
  <div className="flex items-center">
228
228
  {labelPosition === "start" && (
229
- <MoonUICheckboxLabel
229
+ <MoonUICheckboxLabelPro
230
230
  htmlFor={checkboxId}
231
231
  position="start"
232
232
  disabled={checkboxProps.disabled}
233
233
  className={labelClassName}
234
234
  >
235
235
  {label}
236
- </MoonUICheckboxLabel>
236
+ </MoonUICheckboxLabelPro>
237
237
  )}
238
238
 
239
239
  <MoonUICheckboxPro ref={ref} id={checkboxId} {...checkboxProps} />
240
240
 
241
241
  {labelPosition === "end" && (
242
- <MoonUICheckboxLabel
242
+ <MoonUICheckboxLabelPro
243
243
  htmlFor={checkboxId}
244
244
  position="end"
245
245
  disabled={checkboxProps.disabled}
246
246
  className={labelClassName}
247
247
  >
248
248
  {label}
249
- </MoonUICheckboxLabel>
249
+ </MoonUICheckboxLabelPro>
250
250
  )}
251
251
  </div>
252
252
  );
@@ -69,12 +69,12 @@ const MoonUICommandDialogPro = ({
69
69
  <Dialog {...props}>
70
70
  <DialogContent className="overflow-hidden p-0 shadow-lg" hideCloseButton>
71
71
  <DialogTitle className="sr-only">Command Menu</DialogTitle>
72
- <Command className={cn(
72
+ <MoonUICommandPro className={cn(
73
73
  "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
74
74
  commandClassName
75
75
  )}>
76
76
  {children}
77
- </Command>
77
+ </MoonUICommandPro>
78
78
  </DialogContent>
79
79
  </Dialog>
80
80
  )
@@ -1,7 +1,8 @@
1
1
  import * as React from "react"
2
2
  import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"
3
3
  import { cn } from "../../lib/utils"
4
- import { ButtonProps, buttonVariants } from "./button"
4
+ import { moonUIButtonProVariants } from "./button"
5
+ import type { ButtonProps } from "./button"
5
6
 
6
7
  const MoonUIPaginationPro = ({ className, ...props }: React.ComponentProps<"nav">) => (
7
8
  <nav
@@ -47,7 +48,7 @@ const MoonUIPaginationLinkPro = ({
47
48
  <a
48
49
  aria-current={isActive ? "page" : undefined}
49
50
  className={cn(
50
- MoonUIbuttonVariantsPro({
51
+ moonUIButtonProVariants({
51
52
  variant: isActive ? "outline" : "ghost",
52
53
  size,
53
54
  }),
@@ -61,32 +62,32 @@ MoonUIPaginationLinkPro.displayName = "PaginationLinkPro"
61
62
  const MoonUIPaginationPreviousPro = ({
62
63
  className,
63
64
  ...props
64
- }: React.ComponentProps<typeof PaginationLink>) => (
65
- <PaginationLink
65
+ }: React.ComponentProps<typeof MoonUIPaginationLinkPro>) => (
66
+ <MoonUIPaginationLinkPro
66
67
  aria-label="Go to previous page"
67
- size="default"
68
+ size="md"
68
69
  className={cn("gap-1 pl-2.5", className)}
69
70
  {...props}
70
71
  >
71
72
  <ChevronLeft className="h-4 w-4" />
72
73
  <span>Previous</span>
73
- </PaginationLink>
74
+ </MoonUIPaginationLinkPro>
74
75
  )
75
76
  MoonUIPaginationPreviousPro.displayName = "PaginationPreviousPro"
76
77
 
77
78
  const MoonUIPaginationNextPro = ({
78
79
  className,
79
80
  ...props
80
- }: React.ComponentProps<typeof PaginationLink>) => (
81
- <PaginationLink
81
+ }: React.ComponentProps<typeof MoonUIPaginationLinkPro>) => (
82
+ <MoonUIPaginationLinkPro
82
83
  aria-label="Go to next page"
83
- size="default"
84
+ size="md"
84
85
  className={cn("gap-1 pr-2.5", className)}
85
86
  {...props}
86
87
  >
87
88
  <span>Next</span>
88
89
  <ChevronRight className="h-4 w-4" />
89
- </PaginationLink>
90
+ </MoonUIPaginationLinkPro>
90
91
  )
91
92
  MoonUIPaginationNextPro.displayName = "PaginationNextPro"
92
93
 
@@ -163,7 +163,7 @@ const MoonUISelectContentPro = React.forwardRef<
163
163
  position={position}
164
164
  {...props}
165
165
  >
166
- <MoonUISelectScrollUpButton />
166
+ <MoonUISelectScrollUpButtonPro />
167
167
  <SelectPrimitive.Viewport
168
168
  className={cn(
169
169
  "p-1",
@@ -173,7 +173,7 @@ const MoonUISelectContentPro = React.forwardRef<
173
173
  >
174
174
  {children}
175
175
  </SelectPrimitive.Viewport>
176
- <MoonUISelectScrollDownButton />
176
+ <MoonUISelectScrollDownButtonPro />
177
177
  </SelectPrimitive.Content>
178
178
  </SelectPrimitive.Portal>
179
179
  ))
@@ -105,12 +105,14 @@ const moonUISeparatorVariantsPro = cva(
105
105
  )
106
106
 
107
107
  export interface MoonUISeparatorProProps
108
- extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>,
109
- VariantProps<typeof moonUISeparatorVariantsPro> {}
108
+ extends Omit<React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>, 'orientation'>,
109
+ VariantProps<typeof moonUISeparatorVariantsPro> {
110
+ orientation?: "horizontal" | "vertical";
111
+ }
110
112
 
111
113
  const MoonUISeparatorPro = React.forwardRef<
112
114
  React.ElementRef<typeof SeparatorPrimitive.Root>,
113
- SeparatorProps
115
+ MoonUISeparatorProProps
114
116
  >(
115
117
  (
116
118
  {
@@ -128,7 +130,7 @@ const MoonUISeparatorPro = React.forwardRef<
128
130
  decorative={decorative}
129
131
  orientation={orientation}
130
132
  className={cn(
131
- separatorVariants({ orientation, variant, size }),
133
+ moonUISeparatorVariantsPro({ orientation, variant, size }),
132
134
  className
133
135
  )}
134
136
  {...props}
@@ -25,7 +25,7 @@ export interface MoonUISwitchProProps extends React.ComponentPropsWithoutRef<typ
25
25
 
26
26
  const MoonUISwitchPro = React.forwardRef<
27
27
  React.ElementRef<typeof SwitchPrimitives.Root>,
28
- SwitchProps
28
+ MoonUISwitchProProps
29
29
  >(({ className, size = "md", variant = "primary", loading, leftIcon, rightIcon, description, ...props }, ref) => (
30
30
  <div className="inline-flex items-center gap-2">
31
31
  {leftIcon && <span className="text-muted-foreground">{leftIcon}</span>}
@@ -90,7 +90,7 @@ const MoonUITablePro = React.forwardRef<
90
90
  // Tip güvenliği için props'ları düzgün şekilde ele alıyoruz
91
91
  const MoonUItbodyPropsPro = child.props as Record<string, unknown>;
92
92
  return React.cloneElement(child as React.ReactElement<React.HTMLAttributes<HTMLTableSectionElement>>, {
93
- className: cn(tbodyProps.className as string | undefined, striped && "even:[&>tr]:bg-muted/50")
93
+ className: cn(MoonUItbodyPropsPro.className as string | undefined, MoonUIstripedPro && "even:[&>tr]:bg-muted/50")
94
94
  });
95
95
  }
96
96
  }
@@ -115,7 +115,7 @@ const MoonUITablePro = React.forwardRef<
115
115
  )}
116
116
  {...props}
117
117
  >
118
- {childrenWithProps}
118
+ {MoonUIchildrenWithPropsPro}
119
119
  </table>
120
120
 
121
121
  </div>
@@ -151,7 +151,7 @@ const MoonUITableBodyPro = React.forwardRef<
151
151
  className={cn("[&_tr:last-child]:border-0", className)}
152
152
  {...props}
153
153
  >
154
- {hasChildren ? (
154
+ {MoonUIhasChildrenPro ? (
155
155
  children
156
156
  ) : (
157
157
  <tr>
@@ -276,7 +276,7 @@ const MoonUITableHeadPro = React.forwardRef<HTMLTableCellElement, TableHeadProps
276
276
  >
277
277
  <div className="flex items-center">
278
278
  {children}
279
- {sortable && renderSortIcon()}
279
+ {sortable && MoonUIrenderSortIconPro()}
280
280
  </div>
281
281
  </th>
282
282
  );
@@ -128,7 +128,7 @@ interface MoonUITabsTriggerProProps
128
128
 
129
129
  const MoonUITabsTriggerPro = React.forwardRef<
130
130
  React.ElementRef<typeof TabsPrimitive.Trigger>,
131
- TabsTriggerProps
131
+ MoonUITabsTriggerProProps
132
132
  >(({
133
133
  className,
134
134
  variant,
@@ -177,7 +177,7 @@ interface MoonUITabsContentProProps
177
177
 
178
178
  const MoonUITabsContentPro = React.forwardRef<
179
179
  React.ElementRef<typeof TabsPrimitive.Content>,
180
- TabsContentProps
180
+ MoonUITabsContentProProps
181
181
  >(({ className, animated = false, ...props }, ref) => (
182
182
  <TabsPrimitive.Content
183
183
  ref={ref}
@@ -207,6 +207,8 @@ const reducer = (state: State, action: any): State => {
207
207
  ...state,
208
208
  toasts: state.toasts.filter((t) => t.id !== action.toastId),
209
209
  };
210
+ default:
211
+ return state;
210
212
  }
211
213
  };
212
214
 
@@ -28,11 +28,11 @@ const MoonUItoggleVariantsPro = cva(
28
28
  }
29
29
  )
30
30
 
31
- export interface ToggleProps extends React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>, VariantProps<typeof MoonUItoggleVariantsPro> {}
31
+ export interface MoonUIToggleProProps extends React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>, VariantProps<typeof MoonUItoggleVariantsPro> {}
32
32
 
33
33
  const MoonUITogglePro = React.forwardRef<
34
34
  React.ElementRef<typeof TogglePrimitive.Root>,
35
- ToggleProps
35
+ MoonUIToggleProProps
36
36
  >(({ className, variant, size, ...props }, ref) => (
37
37
  <TogglePrimitive.Root
38
38
  ref={ref}
@@ -53,4 +53,4 @@ export { MoonUItoggleVariantsPro, MoonUITogglePro }
53
53
 
54
54
  // Clean exports (without MoonUI prefix for easier usage)
55
55
  export { MoonUItoggleVariantsPro as toggleVariants, MoonUITogglePro as Toggle }
56
- export type { ToggleProps }
56
+ export type { MoonUIToggleProProps as ToggleProps }
@@ -80,7 +80,6 @@ interface SimpleTooltipProps {
80
80
  side?: "top" | "right" | "bottom" | "left"
81
81
  align?: "start" | "center" | "end"
82
82
  delayDuration?: number
83
- skipDelayDuration?: number
84
83
  sideOffset?: number
85
84
  showArrow?: boolean
86
85
  className?: string
@@ -102,7 +101,6 @@ const MoonUISimpleTooltipPro = React.forwardRef<
102
101
  side = "top",
103
102
  align = "center",
104
103
  delayDuration = 400,
105
- skipDelayDuration = 300,
106
104
  sideOffset = 4,
107
105
  showArrow = false,
108
106
  className,
@@ -119,7 +117,6 @@ const MoonUISimpleTooltipPro = React.forwardRef<
119
117
  defaultOpen={defaultOpen}
120
118
  onOpenChange={onOpenChange}
121
119
  delayDuration={delayDuration}
122
- skipDelayDuration={skipDelayDuration}
123
120
  >
124
121
  <MoonUITooltipTriggerPro asChild>{children}</MoonUITooltipTriggerPro>
125
122
  <MoonUITooltipContentPro