@moontra/moonui-pro 2.3.1 → 2.3.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/dist/index.d.ts
CHANGED
|
@@ -309,7 +309,7 @@ interface MoonUIDialogContentProProps extends Omit<React$1.ComponentPropsWithout
|
|
|
309
309
|
/** Özel onClose handler */
|
|
310
310
|
onClose?: () => void;
|
|
311
311
|
}
|
|
312
|
-
declare const MoonUIDialogContentPro: React$1.ForwardRefExoticComponent<MoonUIDialogContentProProps & React$1.RefAttributes<
|
|
312
|
+
declare const MoonUIDialogContentPro: React$1.ForwardRefExoticComponent<MoonUIDialogContentProProps & React$1.RefAttributes<never>>;
|
|
313
313
|
declare const MoonUIDialogHeaderPro: {
|
|
314
314
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
315
315
|
displayName: string;
|
|
@@ -318,8 +318,8 @@ declare const MoonUIDialogFooterPro: {
|
|
|
318
318
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
319
319
|
displayName: string;
|
|
320
320
|
};
|
|
321
|
-
declare const MoonUIDialogTitlePro: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<
|
|
322
|
-
declare const MoonUIDialogDescriptionPro: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<
|
|
321
|
+
declare const MoonUIDialogTitlePro: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<never>>;
|
|
322
|
+
declare const MoonUIDialogDescriptionPro: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<never>>;
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
325
|
* Command (Komut Paleti) Bileşeni
|
|
@@ -1644,7 +1644,7 @@ interface DialogProContentProps extends React$1.ComponentPropsWithoutRef<typeof
|
|
|
1644
1644
|
overlay?: boolean;
|
|
1645
1645
|
overlayProps?: DialogProOverlayProps;
|
|
1646
1646
|
}
|
|
1647
|
-
declare const DialogProContent: React$1.ForwardRefExoticComponent<DialogProContentProps & React$1.RefAttributes<
|
|
1647
|
+
declare const DialogProContent: React$1.ForwardRefExoticComponent<DialogProContentProps & React$1.RefAttributes<never>>;
|
|
1648
1648
|
declare const DialogProHeader: {
|
|
1649
1649
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1650
1650
|
displayName: string;
|
|
@@ -1653,8 +1653,8 @@ declare const DialogProFooter: {
|
|
|
1653
1653
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1654
1654
|
displayName: string;
|
|
1655
1655
|
};
|
|
1656
|
-
declare const DialogProTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<
|
|
1657
|
-
declare const DialogProDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<
|
|
1656
|
+
declare const DialogProTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<never>>;
|
|
1657
|
+
declare const DialogProDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<never>>;
|
|
1658
1658
|
|
|
1659
1659
|
declare const badgeVariants: (props?: ({
|
|
1660
1660
|
variant?: "default" | "success" | "warning" | "outline" | "secondary" | "destructive" | "pro" | null | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -52153,9 +52153,6 @@ function FileUpload({
|
|
|
52153
52153
|
] })
|
|
52154
52154
|
] });
|
|
52155
52155
|
}
|
|
52156
|
-
|
|
52157
|
-
// src/components/data-table/data-table.css
|
|
52158
|
-
styleInject(".moonui-data-table-container {\n}\n.moonui-data-table-wrapper {\n}\n.moonui-data-table {\n border-collapse: collapse;\n table-layout: fixed;\n}\n.moonui-data-table-header {\n}\n.moonui-data-table-body {\n}\n.moonui-data-table-row {\n}\n.moonui-data-table-th {\n}\n.moonui-data-table-td {\n}\n.moonui-data-table-toolbar {\n}\n.moonui-data-table-container * {\n box-sizing: border-box;\n}\n.moonui-data-table-container table {\n margin: 0;\n padding: 0;\n}\n.moonui-data-table-container th,\n.moonui-data-table-container td {\n margin: 0;\n}\n");
|
|
52159
52156
|
function DataTable({
|
|
52160
52157
|
columns,
|
|
52161
52158
|
data,
|
|
@@ -52246,8 +52243,8 @@ function DataTable({
|
|
|
52246
52243
|
onExport(dataToExport);
|
|
52247
52244
|
}
|
|
52248
52245
|
};
|
|
52249
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("moonui-
|
|
52250
|
-
/* @__PURE__ */ jsxs("div", { className: "moonui-
|
|
52246
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("moonui-pro-datatable-container", className), style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
52247
|
+
/* @__PURE__ */ jsxs("div", { className: "moonui-pro-datatable-toolbar", style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
52251
52248
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
52252
52249
|
searchable && /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
52253
52250
|
/* @__PURE__ */ jsx(Search, { className: "absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" }),
|
|
@@ -52277,7 +52274,7 @@ function DataTable({
|
|
|
52277
52274
|
] })
|
|
52278
52275
|
] })
|
|
52279
52276
|
] }),
|
|
52280
|
-
/* @__PURE__ */ jsx("div", { className: "moonui-
|
|
52277
|
+
/* @__PURE__ */ jsx("div", { className: "moonui-pro-datatable-wrapper rounded-md border overflow-hidden", children: /* @__PURE__ */ jsxs("table", { className: "moonui-pro-datatable", style: { width: "100%" }, children: [
|
|
52281
52278
|
/* @__PURE__ */ jsx("thead", { className: "moonui-data-table-header", children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx("tr", { className: "moonui-data-table-row border-b", children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx(
|
|
52282
52279
|
"th",
|
|
52283
52280
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
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",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"clsx": "^2.1.1",
|
|
95
95
|
"date-fns": "^3.6.0",
|
|
96
96
|
"framer-motion": "^11.11.17",
|
|
97
|
-
"lucide-react": "^0.
|
|
97
|
+
"lucide-react": "^0.525.0",
|
|
98
98
|
"react-dropzone": "^14.3.5",
|
|
99
99
|
"react-hook-form": "^7.53.2",
|
|
100
100
|
"react-intersection-observer": "^9.13.1",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import React from 'react'
|
|
4
|
-
import './data-table.css'
|
|
5
4
|
import {
|
|
6
5
|
useReactTable,
|
|
7
6
|
getCoreRowModel,
|
|
@@ -208,9 +207,9 @@ export function DataTable<TData, TValue>({
|
|
|
208
207
|
}
|
|
209
208
|
|
|
210
209
|
return (
|
|
211
|
-
<div className={cn("moonui-
|
|
210
|
+
<div className={cn("moonui-pro-datatable-container", className)} style={{ display: 'flex', flexDirection: 'column', gap: '1rem' }}>
|
|
212
211
|
{/* Toolbar */}
|
|
213
|
-
<div className="moonui-
|
|
212
|
+
<div className="moonui-pro-datatable-toolbar" style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
|
214
213
|
<div className="flex items-center space-x-2">
|
|
215
214
|
{searchable && (
|
|
216
215
|
<div className="relative">
|
|
@@ -248,8 +247,8 @@ export function DataTable<TData, TValue>({
|
|
|
248
247
|
</div>
|
|
249
248
|
|
|
250
249
|
{/* Table */}
|
|
251
|
-
<div className="moonui-
|
|
252
|
-
<table className="moonui-
|
|
250
|
+
<div className="moonui-pro-datatable-wrapper rounded-md border overflow-hidden">
|
|
251
|
+
<table className="moonui-pro-datatable" style={{ width: '100%' }}>
|
|
253
252
|
<thead className="moonui-data-table-header">
|
|
254
253
|
{table.getHeaderGroups().map((headerGroup) => (
|
|
255
254
|
<tr key={headerGroup.id} className="moonui-data-table-row border-b">
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/* MoonUI DataTable Component Styles */
|
|
2
|
-
.moonui-data-table-container {
|
|
3
|
-
/* Container specific styles */
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.moonui-data-table-wrapper {
|
|
7
|
-
/* Wrapper specific styles */
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.moonui-data-table {
|
|
11
|
-
/* Table specific styles */
|
|
12
|
-
border-collapse: collapse;
|
|
13
|
-
table-layout: fixed;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.moonui-data-table-header {
|
|
17
|
-
/* Header specific styles */
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.moonui-data-table-body {
|
|
21
|
-
/* Body specific styles */
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.moonui-data-table-row {
|
|
25
|
-
/* Row specific styles */
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.moonui-data-table-th {
|
|
29
|
-
/* Table header cell specific styles */
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.moonui-data-table-td {
|
|
33
|
-
/* Table data cell specific styles */
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.moonui-data-table-toolbar {
|
|
37
|
-
/* Toolbar specific styles */
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/* Prevent style leakage */
|
|
41
|
-
.moonui-data-table-container * {
|
|
42
|
-
box-sizing: border-box;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* Ensure DataTable styles don't affect global styles */
|
|
46
|
-
.moonui-data-table-container table {
|
|
47
|
-
margin: 0;
|
|
48
|
-
padding: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.moonui-data-table-container th,
|
|
52
|
-
.moonui-data-table-container td {
|
|
53
|
-
margin: 0;
|
|
54
|
-
}
|