@moontra/moonui-pro 2.26.23 → 2.26.24
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.global.js +53 -53
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +15 -14
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -74001,26 +74001,27 @@ function DataTable({
|
|
|
74001
74001
|
const checkboxColumn = {
|
|
74002
74002
|
id: "select",
|
|
74003
74003
|
header: ({ table: table2 }) => /* @__PURE__ */ jsx(
|
|
74004
|
-
|
|
74004
|
+
MoonUICheckboxPro,
|
|
74005
74005
|
{
|
|
74006
|
-
|
|
74007
|
-
|
|
74008
|
-
|
|
74009
|
-
className: "
|
|
74006
|
+
checked: table2.getIsAllPageRowsSelected() || table2.getIsSomePageRowsSelected() && "indeterminate",
|
|
74007
|
+
onCheckedChange: (value) => table2.toggleAllPageRowsSelected(!!value),
|
|
74008
|
+
"aria-label": "Select all",
|
|
74009
|
+
className: "translate-y-[2px]"
|
|
74010
74010
|
}
|
|
74011
74011
|
),
|
|
74012
74012
|
cell: ({ row }) => /* @__PURE__ */ jsx(
|
|
74013
|
-
|
|
74013
|
+
MoonUICheckboxPro,
|
|
74014
74014
|
{
|
|
74015
|
-
type: "checkbox",
|
|
74016
74015
|
checked: row.getIsSelected(),
|
|
74017
|
-
|
|
74018
|
-
|
|
74016
|
+
onCheckedChange: (value) => row.toggleSelected(!!value),
|
|
74017
|
+
"aria-label": "Select row",
|
|
74018
|
+
className: "translate-y-[2px]"
|
|
74019
74019
|
}
|
|
74020
74020
|
),
|
|
74021
74021
|
enableSorting: false,
|
|
74022
74022
|
enableHiding: false,
|
|
74023
|
-
size:
|
|
74023
|
+
size: 40,
|
|
74024
|
+
maxSize: 40
|
|
74024
74025
|
};
|
|
74025
74026
|
cols = [checkboxColumn, ...cols];
|
|
74026
74027
|
}
|
|
@@ -74197,8 +74198,8 @@ function DataTable({
|
|
|
74197
74198
|
table.resetRowSelection();
|
|
74198
74199
|
};
|
|
74199
74200
|
return /* @__PURE__ */ jsxs("div", { className: cn("moonui-pro-datatable-container flex flex-col gap-4", className), children: [
|
|
74200
|
-
/* @__PURE__ */ jsxs("div", { className: "moonui-pro-datatable-toolbar flex items-center justify-between", children: [
|
|
74201
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center
|
|
74201
|
+
/* @__PURE__ */ jsxs("div", { className: "moonui-pro-datatable-toolbar flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between", children: [
|
|
74202
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
74202
74203
|
searchable && /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
74203
74204
|
/* @__PURE__ */ jsx("span", { suppressHydrationWarning: true, children: /* @__PURE__ */ jsx(Search, { className: "absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" }) }),
|
|
74204
74205
|
/* @__PURE__ */ jsx(
|
|
@@ -74207,7 +74208,7 @@ function DataTable({
|
|
|
74207
74208
|
placeholder: filterPlaceholder,
|
|
74208
74209
|
value: globalFilter,
|
|
74209
74210
|
onChange: (e) => setGlobalFilter(e.target.value),
|
|
74210
|
-
className: "pl-8 w-64"
|
|
74211
|
+
className: "pl-8 w-full sm:w-64"
|
|
74211
74212
|
}
|
|
74212
74213
|
)
|
|
74213
74214
|
] }),
|
|
@@ -74256,7 +74257,7 @@ function DataTable({
|
|
|
74256
74257
|
}
|
|
74257
74258
|
)
|
|
74258
74259
|
] }),
|
|
74259
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center
|
|
74260
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
74260
74261
|
exportable && exportFormats.length > 0 && /* @__PURE__ */ jsxs(MoonUIDropdownMenuPro, { children: [
|
|
74261
74262
|
/* @__PURE__ */ jsx(MoonUIDropdownMenuTriggerPro, { asChild: true, children: /* @__PURE__ */ jsxs(MoonUIButtonPro, { variant: "outline", size: "sm", children: [
|
|
74262
74263
|
/* @__PURE__ */ jsx("span", { suppressHydrationWarning: true, children: /* @__PURE__ */ jsx(Download, { className: "mr-2 h-4 w-4" }) }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.24",
|
|
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",
|