@moontra/moonui-pro 2.3.0 → 2.3.2
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
|
@@ -52243,8 +52243,8 @@ function DataTable({
|
|
|
52243
52243
|
onExport(dataToExport);
|
|
52244
52244
|
}
|
|
52245
52245
|
};
|
|
52246
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("
|
|
52247
|
-
/* @__PURE__ */ jsxs("div", { className: "flex
|
|
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: [
|
|
52248
52248
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
52249
52249
|
searchable && /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
52250
52250
|
/* @__PURE__ */ jsx(Search, { className: "absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" }),
|
|
@@ -52274,11 +52274,11 @@ function DataTable({
|
|
|
52274
52274
|
] })
|
|
52275
52275
|
] })
|
|
52276
52276
|
] }),
|
|
52277
|
-
/* @__PURE__ */ jsx("div", { className: "rounded-md border", children: /* @__PURE__ */ jsxs("table", { className: "
|
|
52278
|
-
/* @__PURE__ */ jsx("thead", { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx("tr", { className: "border-b", children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx(
|
|
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: [
|
|
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(
|
|
52279
52279
|
"th",
|
|
52280
52280
|
{
|
|
52281
|
-
className: "h-12 px-4 text-left align-middle font-medium text-muted-foreground",
|
|
52281
|
+
className: "moonui-data-table-th h-12 px-4 text-left align-middle font-medium text-muted-foreground",
|
|
52282
52282
|
children: header.isPlaceholder ? null : /* @__PURE__ */ jsxs(
|
|
52283
52283
|
"div",
|
|
52284
52284
|
{
|
|
@@ -52296,7 +52296,7 @@ function DataTable({
|
|
|
52296
52296
|
},
|
|
52297
52297
|
header.id
|
|
52298
52298
|
)) }, headerGroup.id)) }),
|
|
52299
|
-
/* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: isPaginationLoading ? /* @__PURE__ */ jsx(
|
|
52299
|
+
/* @__PURE__ */ jsx("tbody", { className: "moonui-data-table-body", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: isPaginationLoading ? /* @__PURE__ */ jsx(
|
|
52300
52300
|
motion.tr,
|
|
52301
52301
|
{
|
|
52302
52302
|
initial: { opacity: 0 },
|
|
@@ -52328,7 +52328,7 @@ function DataTable({
|
|
|
52328
52328
|
row.getIsSelected() && "bg-muted",
|
|
52329
52329
|
isExpanded && "border-b-0"
|
|
52330
52330
|
),
|
|
52331
|
-
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx("td", { className: "p-4 align-middle", children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))
|
|
52331
|
+
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx("td", { className: "moonui-data-table-td p-4 align-middle", children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))
|
|
52332
52332
|
},
|
|
52333
52333
|
row.id
|
|
52334
52334
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
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",
|
|
@@ -207,9 +207,9 @@ export function DataTable<TData, TValue>({
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
return (
|
|
210
|
-
<div className={cn("
|
|
210
|
+
<div className={cn("moonui-pro-datatable-container", className)} style={{ display: 'flex', flexDirection: 'column', gap: '1rem' }}>
|
|
211
211
|
{/* Toolbar */}
|
|
212
|
-
<div className="flex
|
|
212
|
+
<div className="moonui-pro-datatable-toolbar" style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
|
213
213
|
<div className="flex items-center space-x-2">
|
|
214
214
|
{searchable && (
|
|
215
215
|
<div className="relative">
|
|
@@ -247,15 +247,15 @@ export function DataTable<TData, TValue>({
|
|
|
247
247
|
</div>
|
|
248
248
|
|
|
249
249
|
{/* Table */}
|
|
250
|
-
<div className="rounded-md border">
|
|
251
|
-
<table className="
|
|
252
|
-
<thead>
|
|
250
|
+
<div className="moonui-pro-datatable-wrapper rounded-md border overflow-hidden">
|
|
251
|
+
<table className="moonui-pro-datatable" style={{ width: '100%' }}>
|
|
252
|
+
<thead className="moonui-data-table-header">
|
|
253
253
|
{table.getHeaderGroups().map((headerGroup) => (
|
|
254
|
-
<tr key={headerGroup.id} className="border-b">
|
|
254
|
+
<tr key={headerGroup.id} className="moonui-data-table-row border-b">
|
|
255
255
|
{headerGroup.headers.map((header) => (
|
|
256
256
|
<th
|
|
257
257
|
key={header.id}
|
|
258
|
-
className="h-12 px-4 text-left align-middle font-medium text-muted-foreground"
|
|
258
|
+
className="moonui-data-table-th h-12 px-4 text-left align-middle font-medium text-muted-foreground"
|
|
259
259
|
>
|
|
260
260
|
{header.isPlaceholder ? null : (
|
|
261
261
|
<div
|
|
@@ -284,7 +284,7 @@ export function DataTable<TData, TValue>({
|
|
|
284
284
|
</tr>
|
|
285
285
|
))}
|
|
286
286
|
</thead>
|
|
287
|
-
<tbody>
|
|
287
|
+
<tbody className="moonui-data-table-body">
|
|
288
288
|
<AnimatePresence mode="wait">
|
|
289
289
|
{isPaginationLoading ? (
|
|
290
290
|
<motion.tr
|
|
@@ -324,7 +324,7 @@ export function DataTable<TData, TValue>({
|
|
|
324
324
|
)}
|
|
325
325
|
>
|
|
326
326
|
{row.getVisibleCells().map((cell) => (
|
|
327
|
-
<td key={cell.id} className="p-4 align-middle">
|
|
327
|
+
<td key={cell.id} className="moonui-data-table-td p-4 align-middle">
|
|
328
328
|
{flexRender(cell.column.columnDef.cell, cell.getContext())}
|
|
329
329
|
</td>
|
|
330
330
|
))}
|