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