@moontra/moonui-pro 2.26.28 → 2.26.30
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 +44 -19
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -74000,25 +74000,50 @@ function DataTable({
|
|
|
74000
74000
|
if (selectable || enableRowSelection) {
|
|
74001
74001
|
const checkboxColumn = {
|
|
74002
74002
|
id: "select",
|
|
74003
|
-
header: ({ table: table2 }) =>
|
|
74004
|
-
|
|
74005
|
-
|
|
74006
|
-
|
|
74007
|
-
|
|
74008
|
-
|
|
74009
|
-
|
|
74010
|
-
|
|
74011
|
-
|
|
74012
|
-
|
|
74013
|
-
|
|
74014
|
-
|
|
74015
|
-
|
|
74016
|
-
|
|
74017
|
-
|
|
74018
|
-
|
|
74019
|
-
|
|
74020
|
-
|
|
74021
|
-
|
|
74003
|
+
header: ({ table: table2 }) => {
|
|
74004
|
+
const isAllSelected = table2.getIsAllPageRowsSelected();
|
|
74005
|
+
const isSomeSelected = table2.getIsSomePageRowsSelected();
|
|
74006
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
74007
|
+
"input",
|
|
74008
|
+
{
|
|
74009
|
+
type: "checkbox",
|
|
74010
|
+
checked: isAllSelected,
|
|
74011
|
+
ref: (el) => {
|
|
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();
|
|
74021
|
+
},
|
|
74022
|
+
"aria-label": "Select all",
|
|
74023
|
+
className: "h-4 w-4 rounded border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 accent-primary",
|
|
74024
|
+
style: { accentColor: "hsl(var(--primary))" }
|
|
74025
|
+
}
|
|
74026
|
+
) });
|
|
74027
|
+
},
|
|
74028
|
+
cell: ({ row }) => {
|
|
74029
|
+
const isSelected = row.getIsSelected();
|
|
74030
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
74031
|
+
"input",
|
|
74032
|
+
{
|
|
74033
|
+
type: "checkbox",
|
|
74034
|
+
checked: isSelected,
|
|
74035
|
+
onChange: (e) => {
|
|
74036
|
+
row.toggleSelected(e.target.checked);
|
|
74037
|
+
},
|
|
74038
|
+
onClick: (e) => {
|
|
74039
|
+
e.stopPropagation();
|
|
74040
|
+
},
|
|
74041
|
+
"aria-label": "Select row",
|
|
74042
|
+
className: "h-4 w-4 rounded border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 accent-primary",
|
|
74043
|
+
style: { accentColor: "hsl(var(--primary))" }
|
|
74044
|
+
}
|
|
74045
|
+
) });
|
|
74046
|
+
},
|
|
74022
74047
|
enableSorting: false,
|
|
74023
74048
|
enableHiding: false,
|
|
74024
74049
|
size: 40,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.30",
|
|
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",
|