@moontra/moonui-pro 2.26.27 → 2.26.29
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 +49 -49
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +21 -24
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -74000,34 +74000,31 @@ function DataTable({
|
|
|
74000
74000
|
if (selectable || enableRowSelection) {
|
|
74001
74001
|
const checkboxColumn = {
|
|
74002
74002
|
id: "select",
|
|
74003
|
-
header: ({ table: table2 }) => /* @__PURE__ */ jsx(
|
|
74004
|
-
|
|
74003
|
+
header: ({ table: table2 }) => /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
74004
|
+
"input",
|
|
74005
74005
|
{
|
|
74006
|
-
|
|
74007
|
-
|
|
74006
|
+
type: "checkbox",
|
|
74007
|
+
checked: table2.getIsAllPageRowsSelected(),
|
|
74008
|
+
ref: (el) => {
|
|
74009
|
+
if (el) {
|
|
74010
|
+
el.indeterminate = !table2.getIsAllPageRowsSelected() && table2.getIsSomePageRowsSelected();
|
|
74011
|
+
}
|
|
74012
|
+
},
|
|
74013
|
+
onChange: (e) => table2.toggleAllPageRowsSelected(e.target.checked),
|
|
74008
74014
|
"aria-label": "Select all",
|
|
74009
|
-
className: "
|
|
74015
|
+
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"
|
|
74010
74016
|
}
|
|
74011
|
-
),
|
|
74012
|
-
cell: ({ row }) => {
|
|
74013
|
-
|
|
74014
|
-
|
|
74015
|
-
|
|
74016
|
-
|
|
74017
|
-
|
|
74018
|
-
|
|
74019
|
-
|
|
74017
|
+
) }),
|
|
74018
|
+
cell: ({ row }) => /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
74019
|
+
"input",
|
|
74020
|
+
{
|
|
74021
|
+
type: "checkbox",
|
|
74022
|
+
checked: row.getIsSelected(),
|
|
74023
|
+
onChange: (e) => row.toggleSelected(e.target.checked),
|
|
74024
|
+
"aria-label": "Select row",
|
|
74025
|
+
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"
|
|
74020
74026
|
}
|
|
74021
|
-
|
|
74022
|
-
MoonUICheckboxPro,
|
|
74023
|
-
{
|
|
74024
|
-
checked: isSelected,
|
|
74025
|
-
onCheckedChange: (value) => row.toggleSelected(!!value),
|
|
74026
|
-
"aria-label": "Select row",
|
|
74027
|
-
className: "translate-y-[2px]"
|
|
74028
|
-
}
|
|
74029
|
-
);
|
|
74030
|
-
},
|
|
74027
|
+
) }),
|
|
74031
74028
|
enableSorting: false,
|
|
74032
74029
|
enableHiding: false,
|
|
74033
74030
|
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.29",
|
|
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",
|