@moontra/moonui-pro 2.26.37 → 2.26.39
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 +12 -28
- package/package.json +1 -2
package/dist/index.mjs
CHANGED
|
@@ -74004,44 +74004,28 @@ function DataTable({
|
|
|
74004
74004
|
const isAllSelected = table2.getIsAllPageRowsSelected();
|
|
74005
74005
|
const isSomeSelected = table2.getIsSomePageRowsSelected();
|
|
74006
74006
|
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
74007
|
-
|
|
74007
|
+
MoonUICheckboxPro,
|
|
74008
74008
|
{
|
|
74009
|
-
|
|
74010
|
-
|
|
74011
|
-
|
|
74012
|
-
if (el) {
|
|
74013
|
-
el.indeterminate = !isAllSelected && isSomeSelected;
|
|
74014
|
-
}
|
|
74015
|
-
},
|
|
74016
|
-
onChange: (e) => {
|
|
74017
|
-
table2.toggleAllPageRowsSelected(e.target.checked);
|
|
74018
|
-
},
|
|
74019
|
-
onClick: (e) => {
|
|
74020
|
-
e.stopPropagation();
|
|
74009
|
+
checked: isAllSelected ? true : isSomeSelected ? "indeterminate" : false,
|
|
74010
|
+
onCheckedChange: (value) => {
|
|
74011
|
+
table2.toggleAllPageRowsSelected(!!value);
|
|
74021
74012
|
},
|
|
74022
74013
|
"aria-label": "Select all",
|
|
74023
|
-
className: "h-4 w-4
|
|
74024
|
-
style: { accentColor: "hsl(var(--primary))" }
|
|
74014
|
+
className: "h-4 w-4"
|
|
74025
74015
|
}
|
|
74026
74016
|
) });
|
|
74027
74017
|
},
|
|
74028
74018
|
cell: ({ row }) => {
|
|
74029
|
-
const rowId = row.id;
|
|
74030
|
-
const isSelected = !!rowSelection[rowId];
|
|
74031
74019
|
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
74032
|
-
|
|
74020
|
+
MoonUICheckboxPro,
|
|
74033
74021
|
{
|
|
74034
|
-
|
|
74035
|
-
|
|
74036
|
-
|
|
74037
|
-
row.toggleSelected(e.target.checked);
|
|
74038
|
-
},
|
|
74039
|
-
onClick: (e) => {
|
|
74040
|
-
e.stopPropagation();
|
|
74022
|
+
checked: row.getIsSelected(),
|
|
74023
|
+
onCheckedChange: (value) => {
|
|
74024
|
+
row.toggleSelected(!!value);
|
|
74041
74025
|
},
|
|
74026
|
+
disabled: !row.getCanSelect(),
|
|
74042
74027
|
"aria-label": "Select row",
|
|
74043
|
-
className: "h-4 w-4
|
|
74044
|
-
style: { accentColor: "hsl(var(--primary))" }
|
|
74028
|
+
className: "h-4 w-4"
|
|
74045
74029
|
}
|
|
74046
74030
|
) });
|
|
74047
74031
|
},
|
|
@@ -74053,7 +74037,7 @@ function DataTable({
|
|
|
74053
74037
|
cols = [checkboxColumn, ...cols];
|
|
74054
74038
|
}
|
|
74055
74039
|
return cols;
|
|
74056
|
-
}, [columns, selectable, enableRowSelection
|
|
74040
|
+
}, [columns, selectable, enableRowSelection]);
|
|
74057
74041
|
const table = useReactTable({
|
|
74058
74042
|
data: stableData,
|
|
74059
74043
|
columns: processedColumns,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.39",
|
|
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",
|
|
@@ -81,7 +81,6 @@
|
|
|
81
81
|
"react-dom": ">=18.0.0 || ^19.0.0"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@moontra/moonui-pro": "^2.26.36",
|
|
85
84
|
"@radix-ui/react-accordion": "^1.2.11",
|
|
86
85
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
87
86
|
"@radix-ui/react-checkbox": "^1.3.2",
|