@moontra/moonui-pro 2.26.38 → 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.mjs CHANGED
@@ -74004,41 +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
- "input",
74007
+ MoonUICheckboxPro,
74008
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();
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 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))" }
74014
+ className: "h-4 w-4"
74025
74015
  }
74026
74016
  ) });
74027
74017
  },
74028
74018
  cell: ({ row }) => {
74029
74019
  return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
74030
- "input",
74020
+ MoonUICheckboxPro,
74031
74021
  {
74032
- type: "checkbox",
74033
74022
  checked: row.getIsSelected(),
74034
- disabled: !row.getCanSelect(),
74035
- onChange: row.getToggleSelectedHandler(),
74036
- onClick: (e) => {
74037
- e.stopPropagation();
74023
+ onCheckedChange: (value) => {
74024
+ row.toggleSelected(!!value);
74038
74025
  },
74026
+ disabled: !row.getCanSelect(),
74039
74027
  "aria-label": "Select row",
74040
- 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",
74041
- style: { accentColor: "hsl(var(--primary))" }
74028
+ className: "h-4 w-4"
74042
74029
  }
74043
74030
  ) });
74044
74031
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.26.38",
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",