@moontra/moonui-pro 2.3.1 → 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
|
@@ -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.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",
|
|
@@ -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
|
-
}
|